Skip to content

Commit a1cb819

Browse files
committed
source-shopify-native: update test snapshots
1 parent 7100789 commit a1cb819

File tree

2 files changed

+129
-39
lines changed

2 files changed

+129
-39
lines changed

source-shopify-native/tests/snapshots/snapshots__capture__capture.stdout.json

Lines changed: 75 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"lastName": "Hirano",
2828
"legacyResourceId": "7609762938925",
2929
"locale": "en",
30-
"note": null,
30+
"note": "",
3131
"phone": "+16135550127",
3232
"state": "DISABLED",
3333
"statistics": {
@@ -36,7 +36,7 @@
3636
"tags": [],
3737
"taxExempt": false,
3838
"taxExemptions": [],
39-
"updatedAt": "2025-04-24T20:21:04Z",
39+
"updatedAt": "2025-08-29T12:21:21Z",
4040
"verifiedEmail": true
4141
}
4242
],
@@ -49,8 +49,30 @@
4949
"createdAt": "2025-01-14T15:10:14Z",
5050
"id": "gid://shopify/Customer/7609762938925",
5151
"legacyResourceId": "7609762938925",
52-
"metafields": [],
53-
"updatedAt": "2025-04-24T20:21:04Z"
52+
"metafields": [
53+
{
54+
"__parentId": "gid://shopify/Customer/7609762938925",
55+
"createdAt": "2025-08-29T12:21:21Z",
56+
"definition": {
57+
"description": "Test metafield",
58+
"id": "gid://shopify/MetafieldDefinition/148601176109",
59+
"namespace": "custom",
60+
"type": {
61+
"category": "TEXT",
62+
"name": "single_line_text_field"
63+
}
64+
},
65+
"id": "gid://shopify/Metafield/44248438931501",
66+
"key": "favorate_color",
67+
"legacyResourceId": "44248438931501",
68+
"namespace": "custom",
69+
"ownerType": "CUSTOMER",
70+
"type": "single_line_text_field",
71+
"updatedAt": "2025-08-29T12:21:21Z",
72+
"value": "Blue"
73+
}
74+
],
75+
"updatedAt": "2025-08-29T12:21:21Z"
5476
}
5577
],
5678
[
@@ -147,7 +169,7 @@
147169
"title": "Gift Card",
148170
"totalInventory": 0,
149171
"tracksInventory": false,
150-
"updatedAt": "2025-04-10T17:45:43Z",
172+
"updatedAt": "2025-08-29T12:12:00Z",
151173
"variantsCount": {
152174
"count": 4,
153175
"precision": "EXACT"
@@ -176,27 +198,20 @@
176198
}
177199
}
178200
],
179-
"updatedAt": "2025-04-10T17:45:43Z"
201+
"updatedAt": "2025-08-29T12:12:00Z"
180202
}
181203
],
182204
[
183205
"acmeCo/product_metafields",
184206
{
185-
"__parentId": "gid://shopify/Product/8086707994669",
186207
"_meta": {
187208
"uuid": "DocUUIDPlaceholder-329Bb50aa48EAa9ef"
188209
},
189210
"createdAt": "2025-01-14T15:10:14Z",
190-
"definition": null,
191-
"id": "gid://shopify/Metafield/40843185455149",
192-
"key": "title_tag",
193-
"legacyResourceId": "40843185455149",
211+
"id": "gid://shopify/Product/8086707830829",
212+
"legacyResourceId": "8086707830829",
194213
"metafields": [],
195-
"namespace": "global",
196-
"ownerType": "PRODUCT",
197-
"type": "string",
198-
"updatedAt": "2025-01-14T15:10:14Z",
199-
"value": "Complete Snowboard"
214+
"updatedAt": "2025-08-29T12:12:00Z"
200215
}
201216
],
202217
[
@@ -208,11 +223,11 @@
208223
"createdAt": "2025-01-14T15:10:14Z",
209224
"id": "gid://shopify/Product/8086707830829",
210225
"legacyResourceId": "8086707830829",
211-
"updatedAt": "2025-04-10T17:45:43Z",
226+
"updatedAt": "2025-08-29T12:12:00Z",
212227
"variants": [
213228
{
214229
"__parentId": "gid://shopify/Product/8086707830829",
215-
"barcode": null,
230+
"barcode": "",
216231
"compareAtPrice": null,
217232
"createdAt": "2025-01-14T15:10:14Z",
218233
"id": "gid://shopify/ProductVariant/43217823334445",
@@ -239,7 +254,7 @@
239254
"sku": null,
240255
"taxable": false,
241256
"title": "$10",
242-
"updatedAt": "2025-01-14T15:10:14Z"
257+
"updatedAt": "2025-08-29T12:12:00Z"
243258
},
244259
{
245260
"__parentId": "gid://shopify/Product/8086707830829",
@@ -337,6 +352,42 @@
337352
]
338353
}
339354
],
355+
[
356+
"acmeCo/product_variant_metafields",
357+
{
358+
"__parentId": "gid://shopify/Product/8086707830829",
359+
"_meta": {
360+
"uuid": "DocUUIDPlaceholder-329Bb50aa48EAa9ef"
361+
},
362+
"createdAt": "2025-01-14T15:10:14Z",
363+
"id": "gid://shopify/ProductVariant/43217823334445",
364+
"legacyResourceId": "43217823334445",
365+
"metafields": [
366+
{
367+
"__parentId": "gid://shopify/ProductVariant/43217823334445",
368+
"createdAt": "2025-08-29T12:11:59Z",
369+
"definition": {
370+
"description": "This is an example custom metafield for product variants.",
371+
"id": "gid://shopify/MetafieldDefinition/148599832621",
372+
"namespace": "custom",
373+
"type": {
374+
"category": "TRUE_FALSE",
375+
"name": "boolean"
376+
}
377+
},
378+
"id": "gid://shopify/Metafield/44248408752173",
379+
"key": "custom_meta_field_example",
380+
"legacyResourceId": "44248408752173",
381+
"namespace": "custom",
382+
"ownerType": "PRODUCTVARIANT",
383+
"type": "boolean",
384+
"updatedAt": "2025-08-29T12:11:59Z",
385+
"value": "true"
386+
}
387+
],
388+
"updatedAt": "2025-08-29T12:12:00Z"
389+
}
390+
],
340391
[
341392
"acmeCo/fulfillment_orders",
342393
{
@@ -999,29 +1050,14 @@
9991050
[
10001051
"acmeCo/order_metafields",
10011052
{
1002-
"__parentId": "gid://shopify/Order/5714631688237",
10031053
"_meta": {
10041054
"uuid": "DocUUIDPlaceholder-329Bb50aa48EAa9ef"
10051055
},
1006-
"createdAt": "2025-04-18T13:20:25Z",
1007-
"definition": {
1008-
"description": "Testing out the metafield definition for an order.",
1009-
"id": "gid://shopify/MetafieldDefinition/79388246061",
1010-
"namespace": "custom",
1011-
"type": {
1012-
"category": "NUMBER",
1013-
"name": "number_integer"
1014-
}
1015-
},
1016-
"id": "gid://shopify/Metafield/41993463529517",
1017-
"key": "order_metafield_definition_test",
1018-
"legacyResourceId": "41993463529517",
1056+
"createdAt": "2025-04-10T17:42:58Z",
1057+
"id": "gid://shopify/Order/5714619858989",
1058+
"legacyResourceId": "5714619858989",
10191059
"metafields": [],
1020-
"namespace": "custom",
1021-
"ownerType": "ORDER",
1022-
"type": "number_integer",
1023-
"updatedAt": "2025-04-18T13:20:25Z",
1024-
"value": "5"
1060+
"updatedAt": "2025-04-10T17:54:23Z"
10251061
}
10261062
],
10271063
[
@@ -1128,7 +1164,7 @@
11281164
"sku": null,
11291165
"tracked": false,
11301166
"unitCost": null,
1131-
"updatedAt": "2025-01-14T15:10:14Z",
1167+
"updatedAt": "2025-08-29T12:12:00Z",
11321168
"variant": {
11331169
"id": "gid://shopify/ProductVariant/43217823334445",
11341170
"legacyResourceId": "43217823334445",

source-shopify-native/tests/snapshots/snapshots__discover__capture.stdout.json

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,60 @@
377377
"/id"
378378
]
379379
},
380+
{
381+
"recommendedName": "product_variant_metafields",
382+
"resourceConfig": {
383+
"name": "product_variant_metafields",
384+
"interval": "PT5M"
385+
},
386+
"documentSchema": {
387+
"$defs": {
388+
"Meta": {
389+
"properties": {
390+
"op": {
391+
"default": "u",
392+
"description": "Operation type (c: Create, u: Update, d: Delete)",
393+
"enum": [
394+
"c",
395+
"u",
396+
"d"
397+
],
398+
"title": "Op",
399+
"type": "string"
400+
},
401+
"row_id": {
402+
"default": -1,
403+
"description": "Row ID of the Document, counting up from zero, or -1 if not known",
404+
"title": "Row Id",
405+
"type": "integer"
406+
}
407+
},
408+
"title": "Meta",
409+
"type": "object"
410+
}
411+
},
412+
"additionalProperties": true,
413+
"properties": {
414+
"_meta": {
415+
"$ref": "#/$defs/Meta",
416+
"description": "Document metadata"
417+
},
418+
"id": {
419+
"title": "Id",
420+
"type": "string"
421+
}
422+
},
423+
"required": [
424+
"id"
425+
],
426+
"title": "ShopifyGraphQLResource",
427+
"type": "object",
428+
"x-infer-schema": true
429+
},
430+
"key": [
431+
"/id"
432+
]
433+
},
380434
{
381435
"recommendedName": "fulfillment_orders",
382436
"resourceConfig": {

0 commit comments

Comments
 (0)