@adtrackify/at-service-common 3.18.0 → 3.18.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/dist/cjs/__tests__/clients/sqs-bundled-client.spec.js +698 -3
  2. package/dist/cjs/__tests__/clients/sqs-bundled-client.spec.js.map +1 -1
  3. package/dist/cjs/__tests__/clients/sqs-client.spec.js +14 -20
  4. package/dist/cjs/__tests__/clients/sqs-client.spec.js.map +1 -1
  5. package/dist/cjs/__tests__/clients/sqs-unbundle.spec.js +409 -8
  6. package/dist/cjs/__tests__/clients/sqs-unbundle.spec.js.map +1 -1
  7. package/dist/cjs/__tests__/helpers/api-key-auth-helper.spec.js +15 -7
  8. package/dist/cjs/__tests__/helpers/api-key-auth-helper.spec.js.map +1 -1
  9. package/dist/cjs/__tests__/integration/sqs-bundling-roundtrip.spec.d.ts +1 -0
  10. package/dist/cjs/__tests__/integration/sqs-bundling-roundtrip.spec.js +582 -0
  11. package/dist/cjs/__tests__/integration/sqs-bundling-roundtrip.spec.js.map +1 -0
  12. package/dist/cjs/__tests__/unit/libs/api-router/public-api-router.spec.js +8 -24
  13. package/dist/cjs/__tests__/unit/libs/api-router/public-api-router.spec.js.map +1 -1
  14. package/dist/cjs/__tests__/unit/libs/api-router/route-matcher.spec.js.map +1 -1
  15. package/dist/cjs/clients/generic/lambda-invoke-client.js.map +1 -1
  16. package/dist/cjs/clients/generic/sqs-bundled-client.js +57 -22
  17. package/dist/cjs/clients/generic/sqs-bundled-client.js.map +1 -1
  18. package/dist/cjs/clients/generic/sqs-bundled-client.types.d.ts +10 -1
  19. package/dist/cjs/clients/generic/sqs-client.js +7 -7
  20. package/dist/cjs/clients/generic/sqs-client.js.map +1 -1
  21. package/dist/cjs/clients/generic/sqs-unbundle.js +1 -1
  22. package/dist/cjs/clients/generic/sqs-unbundle.js.map +1 -1
  23. package/dist/cjs/clients/internal-api/cache-lambda-client.js.map +1 -1
  24. package/dist/cjs/clients/internal-api/destinations-client.js.map +1 -1
  25. package/dist/cjs/clients/third-party/shopify/graphql-order-queries.js +26 -26
  26. package/dist/cjs/clients/third-party/shopify/graphql-product-queries.js +175 -175
  27. package/dist/cjs/constants/sqs.d.ts +2 -2
  28. package/dist/cjs/constants/sqs.js +2 -2
  29. package/dist/cjs/constants/sqs.js.map +1 -1
  30. package/dist/cjs/helpers/api-key-authorizer-helper.js +4 -2
  31. package/dist/cjs/helpers/api-key-authorizer-helper.js.map +1 -1
  32. package/dist/cjs/helpers/sqs-utils.js.map +1 -1
  33. package/dist/cjs/libs/api-router/route-matcher.js +1 -1
  34. package/dist/cjs/libs/api-router/route-matcher.js.map +1 -1
  35. package/dist/cjs/types/shopify-graphql-types/admin.generated.d.ts +38 -38
  36. package/dist/cjs/types/shopify-graphql-types/admin.types.js.map +1 -1
  37. package/dist/cjs/utils/compression.d.ts +1 -1
  38. package/dist/cjs/utils/compression.js +1 -1
  39. package/dist/cjs/utils/compression.js.map +1 -1
  40. package/dist/cjs/utils/retry-envelope.js +1 -3
  41. package/dist/cjs/utils/retry-envelope.js.map +1 -1
  42. package/dist/cjs/utils/size.js.map +1 -1
  43. package/dist/esm/__tests__/clients/sqs-bundled-client.spec.js +698 -3
  44. package/dist/esm/__tests__/clients/sqs-bundled-client.spec.js.map +1 -1
  45. package/dist/esm/__tests__/clients/sqs-client.spec.js +14 -20
  46. package/dist/esm/__tests__/clients/sqs-client.spec.js.map +1 -1
  47. package/dist/esm/__tests__/clients/sqs-unbundle.spec.js +412 -11
  48. package/dist/esm/__tests__/clients/sqs-unbundle.spec.js.map +1 -1
  49. package/dist/esm/__tests__/helpers/api-key-auth-helper.spec.js +15 -7
  50. package/dist/esm/__tests__/helpers/api-key-auth-helper.spec.js.map +1 -1
  51. package/dist/esm/__tests__/integration/sqs-bundling-roundtrip.spec.d.ts +1 -0
  52. package/dist/esm/__tests__/integration/sqs-bundling-roundtrip.spec.js +580 -0
  53. package/dist/esm/__tests__/integration/sqs-bundling-roundtrip.spec.js.map +1 -0
  54. package/dist/esm/__tests__/unit/libs/api-router/public-api-router.spec.js +8 -24
  55. package/dist/esm/__tests__/unit/libs/api-router/public-api-router.spec.js.map +1 -1
  56. package/dist/esm/__tests__/unit/libs/api-router/route-matcher.spec.js.map +1 -1
  57. package/dist/esm/clients/generic/lambda-invoke-client.js.map +1 -1
  58. package/dist/esm/clients/generic/sqs-bundled-client.js +57 -22
  59. package/dist/esm/clients/generic/sqs-bundled-client.js.map +1 -1
  60. package/dist/esm/clients/generic/sqs-bundled-client.types.d.ts +10 -1
  61. package/dist/esm/clients/generic/sqs-client.js +8 -8
  62. package/dist/esm/clients/generic/sqs-client.js.map +1 -1
  63. package/dist/esm/clients/generic/sqs-unbundle.js +2 -2
  64. package/dist/esm/clients/generic/sqs-unbundle.js.map +1 -1
  65. package/dist/esm/clients/internal-api/cache-lambda-client.js.map +1 -1
  66. package/dist/esm/clients/internal-api/destinations-client.js.map +1 -1
  67. package/dist/esm/clients/third-party/shopify/graphql-order-queries.js +26 -26
  68. package/dist/esm/clients/third-party/shopify/graphql-product-queries.js +175 -175
  69. package/dist/esm/constants/sqs.d.ts +2 -2
  70. package/dist/esm/constants/sqs.js +2 -2
  71. package/dist/esm/constants/sqs.js.map +1 -1
  72. package/dist/esm/helpers/api-key-authorizer-helper.js +4 -2
  73. package/dist/esm/helpers/api-key-authorizer-helper.js.map +1 -1
  74. package/dist/esm/helpers/sqs-utils.js.map +1 -1
  75. package/dist/esm/libs/api-router/route-matcher.js +1 -1
  76. package/dist/esm/libs/api-router/route-matcher.js.map +1 -1
  77. package/dist/esm/types/shopify-graphql-types/admin.generated.d.ts +38 -38
  78. package/dist/esm/types/shopify-graphql-types/admin.types.js.map +1 -1
  79. package/dist/esm/utils/compression.d.ts +1 -1
  80. package/dist/esm/utils/compression.js +2 -2
  81. package/dist/esm/utils/compression.js.map +1 -1
  82. package/dist/esm/utils/retry-envelope.js +1 -3
  83. package/dist/esm/utils/retry-envelope.js.map +1 -1
  84. package/dist/esm/utils/size.js.map +1 -1
  85. package/package.json +2 -2
@@ -1,178 +1,178 @@
1
- export const MediaSnippet = `
2
- ... on MediaImage {
3
- createdAt
4
- fileErrors {
5
- code
6
- details
7
- message
8
- }
9
- fileStatus
10
- id
11
- image {
12
- altText
13
- height
14
- id
15
- originalSrc
16
- src
17
- transformedSrc
18
- width
19
- }
20
- mimeType
21
- }
1
+ export const MediaSnippet = `
2
+ ... on MediaImage {
3
+ createdAt
4
+ fileErrors {
5
+ code
6
+ details
7
+ message
8
+ }
9
+ fileStatus
10
+ id
11
+ image {
12
+ altText
13
+ height
14
+ id
15
+ originalSrc
16
+ src
17
+ transformedSrc
18
+ width
19
+ }
20
+ mimeType
21
+ }
22
22
  `;
23
- export const graphqlProductQueryByProductId = `
24
- #graphql
25
- query GetProduct($id: ID!, $first: Int!, $after: String) {
26
- product(id: $id) {
27
- id
28
- handle
29
- productType
30
- hasOnlyDefaultVariant
31
- hasOutOfStockVariants
32
- isGiftCard
33
- legacyResourceId
34
- onlineStoreUrl
35
- onlineStorePreviewUrl
36
- productType
37
- publishedAt
38
- requiresSellingPlan
39
- status
40
- tags
41
- title
42
- totalInventory
43
- tracksInventory
44
- vendor
45
- createdAt
46
- updatedAt
47
- category {
48
- id
49
- name
50
- fullName
51
- parentId
52
- }
53
- collections (first: 250) {
54
- nodes {
55
- handle
56
- id
57
- image {
58
- url
59
- }
60
- legacyResourceId
61
- productsCount {
62
- count
63
- precision
64
- }
65
- title
66
- }
67
- }
68
- priceRangeV2 {
69
- maxVariantPrice {
70
- amount
71
- currencyCode
72
- }
73
- minVariantPrice {
74
- amount
75
- currencyCode
76
- }
77
- }
78
- variantsCount {
79
- count
80
- }
81
- seo {
82
- title
83
- description
84
- }
85
- featuredMedia {
86
- id
87
- mediaContentType
88
- status
89
- preview {
90
- image {
91
- id
92
- url
93
- }
94
- status
95
- }
96
- }
97
- media (first: 3) {
98
- nodes {
99
- id
100
- mediaContentType
101
- status
102
- preview {
103
- image {
104
- id
105
- url
106
- }
107
- status
108
- }
109
-
110
- }
111
- }
112
- variants (first: $first, after: $after) {
113
- pageInfo {
114
- hasNextPage
115
- endCursor
116
- }
117
- nodes {
118
- availableForSale
119
- barcode
120
- compareAtPrice
121
- createdAt
122
- displayName
123
- id
124
- legacyResourceId
125
- product {
126
- id
127
- handle
128
- legacyResourceId
129
- }
130
- image {
131
- id
132
- url
133
- }
134
- inventoryItem {
135
- createdAt
136
- id
137
- legacyResourceId
138
- requiresShipping
139
- sku
140
- tracked
141
- unitCost {
142
- amount
143
- currencyCode
144
- }
145
- updatedAt
146
- }
147
- inventoryPolicy
148
- inventoryQuantity
149
- price
150
- media (first: 3) {
151
- nodes {
152
- id
153
- mediaContentType
154
- status
155
- preview {
156
- image {
157
- id
158
- url
159
- }
160
- status
161
- }
162
- }
163
- }
164
- selectedOptions {
165
- name
166
- value
167
- }
168
- sellableOnlineQuantity
169
- sku
170
- taxable
171
- title
172
- updatedAt
173
- }
174
- }
175
- }
176
- }
23
+ export const graphqlProductQueryByProductId = `
24
+ #graphql
25
+ query GetProduct($id: ID!, $first: Int!, $after: String) {
26
+ product(id: $id) {
27
+ id
28
+ handle
29
+ productType
30
+ hasOnlyDefaultVariant
31
+ hasOutOfStockVariants
32
+ isGiftCard
33
+ legacyResourceId
34
+ onlineStoreUrl
35
+ onlineStorePreviewUrl
36
+ productType
37
+ publishedAt
38
+ requiresSellingPlan
39
+ status
40
+ tags
41
+ title
42
+ totalInventory
43
+ tracksInventory
44
+ vendor
45
+ createdAt
46
+ updatedAt
47
+ category {
48
+ id
49
+ name
50
+ fullName
51
+ parentId
52
+ }
53
+ collections (first: 250) {
54
+ nodes {
55
+ handle
56
+ id
57
+ image {
58
+ url
59
+ }
60
+ legacyResourceId
61
+ productsCount {
62
+ count
63
+ precision
64
+ }
65
+ title
66
+ }
67
+ }
68
+ priceRangeV2 {
69
+ maxVariantPrice {
70
+ amount
71
+ currencyCode
72
+ }
73
+ minVariantPrice {
74
+ amount
75
+ currencyCode
76
+ }
77
+ }
78
+ variantsCount {
79
+ count
80
+ }
81
+ seo {
82
+ title
83
+ description
84
+ }
85
+ featuredMedia {
86
+ id
87
+ mediaContentType
88
+ status
89
+ preview {
90
+ image {
91
+ id
92
+ url
93
+ }
94
+ status
95
+ }
96
+ }
97
+ media (first: 3) {
98
+ nodes {
99
+ id
100
+ mediaContentType
101
+ status
102
+ preview {
103
+ image {
104
+ id
105
+ url
106
+ }
107
+ status
108
+ }
109
+
110
+ }
111
+ }
112
+ variants (first: $first, after: $after) {
113
+ pageInfo {
114
+ hasNextPage
115
+ endCursor
116
+ }
117
+ nodes {
118
+ availableForSale
119
+ barcode
120
+ compareAtPrice
121
+ createdAt
122
+ displayName
123
+ id
124
+ legacyResourceId
125
+ product {
126
+ id
127
+ handle
128
+ legacyResourceId
129
+ }
130
+ image {
131
+ id
132
+ url
133
+ }
134
+ inventoryItem {
135
+ createdAt
136
+ id
137
+ legacyResourceId
138
+ requiresShipping
139
+ sku
140
+ tracked
141
+ unitCost {
142
+ amount
143
+ currencyCode
144
+ }
145
+ updatedAt
146
+ }
147
+ inventoryPolicy
148
+ inventoryQuantity
149
+ price
150
+ media (first: 3) {
151
+ nodes {
152
+ id
153
+ mediaContentType
154
+ status
155
+ preview {
156
+ image {
157
+ id
158
+ url
159
+ }
160
+ status
161
+ }
162
+ }
163
+ }
164
+ selectedOptions {
165
+ name
166
+ value
167
+ }
168
+ sellableOnlineQuantity
169
+ sku
170
+ taxable
171
+ title
172
+ updatedAt
173
+ }
174
+ }
175
+ }
176
+ }
177
177
  `;
178
178
  //# sourceMappingURL=graphql-product-queries.js.map
@@ -1,7 +1,7 @@
1
1
  export declare const SQS_LIMITS: {
2
- readonly MAX_MESSAGE_SIZE_BYTES: 1048576;
2
+ readonly MAX_MESSAGE_SIZE_BYTES: 262144;
3
3
  readonly MAX_BATCH_SIZE: 10;
4
- readonly MAX_BATCH_PAYLOAD_BYTES: 1048576;
4
+ readonly MAX_BATCH_PAYLOAD_BYTES: 262144;
5
5
  readonly BILLING_CHUNK_BYTES: 65536;
6
6
  readonly SAFETY_MARGIN_PERCENT: 0.05;
7
7
  };
@@ -1,7 +1,7 @@
1
1
  export const SQS_LIMITS = {
2
- MAX_MESSAGE_SIZE_BYTES: 1048576,
2
+ MAX_MESSAGE_SIZE_BYTES: 262144,
3
3
  MAX_BATCH_SIZE: 10,
4
- MAX_BATCH_PAYLOAD_BYTES: 1048576,
4
+ MAX_BATCH_PAYLOAD_BYTES: 262144,
5
5
  BILLING_CHUNK_BYTES: 65536,
6
6
  SAFETY_MARGIN_PERCENT: 0.05,
7
7
  };
@@ -1 +1 @@
1
- {"version":3,"file":"sqs.js","sourceRoot":"","sources":["../../../src/constants/sqs.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,MAAM,UAAU,GAAG;IAExB,sBAAsB,EAAE,OAAS;IAGjC,cAAc,EAAE,EAAE;IAGlB,uBAAuB,EAAE,OAAS;IAGlC,mBAAmB,EAAE,KAAM;IAG3B,qBAAqB,EAAE,IAAI;CACnB,CAAC;AAKX,MAAM,CAAC,MAAM,eAAe,GAAG;IAE7B,sBAAsB,EAAE,IAAI,CAAC,KAAK,CAChC,UAAU,CAAC,sBAAsB,GAAG,CAAC,CAAC,GAAG,UAAU,CAAC,qBAAqB,CAAC,CAC3E;IAGD,uBAAuB,EAAE,IAAI,CAAC,KAAK,CACjC,UAAU,CAAC,uBAAuB,GAAG,CAAC,CAAC,GAAG,UAAU,CAAC,qBAAqB,CAAC,CAC5E;CACO,CAAC"}
1
+ {"version":3,"file":"sqs.js","sourceRoot":"","sources":["../../../src/constants/sqs.ts"],"names":[],"mappings":"AAOA,MAAM,CAAC,MAAM,UAAU,GAAG;IAExB,sBAAsB,EAAE,MAAO;IAG/B,cAAc,EAAE,EAAE;IAGlB,uBAAuB,EAAE,MAAO;IAGhC,mBAAmB,EAAE,KAAM;IAG3B,qBAAqB,EAAE,IAAI;CACnB,CAAC;AAKX,MAAM,CAAC,MAAM,eAAe,GAAG;IAE7B,sBAAsB,EAAE,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,sBAAsB,GAAG,CAAC,CAAC,GAAG,UAAU,CAAC,qBAAqB,CAAC,CAAC;IAG9G,uBAAuB,EAAE,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,uBAAuB,GAAG,CAAC,CAAC,GAAG,UAAU,CAAC,qBAAqB,CAAC,CAAC;CACxG,CAAC"}
@@ -59,11 +59,13 @@ export const createApiKeyAuthorizerHandler = (config) => {
59
59
  principalId: apiKeyRecord.pixelId,
60
60
  policyDocument: {
61
61
  Version: '2012-10-17',
62
- Statement: [{
62
+ Statement: [
63
+ {
63
64
  Action: 'execute-api:Invoke',
64
65
  Effect: 'Allow',
65
66
  Resource: toWildcardArn(methodArn),
66
- }],
67
+ },
68
+ ],
67
69
  },
68
70
  context: {
69
71
  pixelId: apiKeyRecord.pixelId,
@@ -1 +1 @@
1
- {"version":3,"file":"api-key-authorizer-helper.js","sourceRoot":"","sources":["../../../src/helpers/api-key-authorizer-helper.ts"],"names":[],"mappings":"AAsBA,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AACnF,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AACzE,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAkCtE,MAAM,aAAa,GAAG,CAAC,SAAiB,EAAU,EAAE;IAElD,MAAM,KAAK,GAAG,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACnC,OAAO,GAAG,KAAK,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC;AACrC,CAAC,CAAC;AAEF,MAAM,kBAAkB,GAAG,CAAC,SAAiB,EAAc,E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AAO,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,CAC1B,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"sqs-utils.js","sourceRoot":"","sources":["../../../src/helpers/sqs-utils.ts"],"names":[],"mappings":"AAQA,MAAM,UAAU,eAAe,CAAI,MAAiB;IAClD,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAM,CAAC;AACtC,CAAC;AAQD,MAAM,UAAU,mBAAmB,CAAI,OAAkC;IACvE,OAAO,OAAO,CAAC,MAAM,CACnB,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE;QACd,MAAM,CAAC,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,CAAC;QAC7D,OAAO,GAAG,CAAC;IACb,CAAC,EACD,EAAE,OAAO,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,CAC1B,CAAC;AACJ,CAAC"}
@@ -1,7 +1,7 @@
1
1
  const escapeRegex = (s) => s.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
2
2
  export const compileRoute = (def) => {
3
3
  const paramNames = [];
4
- const segments = def.path.split('/').map(seg => {
4
+ const segments = def.path.split('/').map((seg) => {
5
5
  if (seg.startsWith(':')) {
6
6
  paramNames.push(seg.slice(1));
7
7
  return '([^/]+)';
@@ -1 +1 @@
1
- {"version":3,"file":"route-matcher.js","sourceRoot":"","sources":["../../../../src/libs/api-router/route-matcher.ts"],"names":[],"mappings":"AA2BA,MAAM,WAAW,GAAG,CAAC,CAAS,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,qBAAqB,EAAE,MAAM,CAAC,CAAC;AAE5E,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,GAAa,EAAiB,EAAE;IAC3D,MAAM,UAAU,GAAa,EAAE,CAAC;IAChC,MAAM,QAAQ,GAAG,GAAG,CAAC,IAAI,CAAC,KAA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,CAAC;AAe3F,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,MAAuB,EAAE,MAAc,EAAE,IAAY,EAAqB,EAAE;IACrG,MAAM,KAAK,GAAG,MAAM,CAAC,WAAW,EAAE,CAAC;IACnC,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE;QAC1B,IAAI,KAAK,CAAC,MAAM,KAAK,KAAK;YAAE,SAAS;QACrC,MAAM,CAAC,GAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACnC,IAAI,CAAC,CAAC;YAAE,SAAS;QACjB,MAAM,cAAc,GAA2B,EAAE,CAAC;QAClD,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YAChD,cAAc,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;SAChD;QACD,OAAO,EAAE,KAAK,EAAE,cAAc,EAAE,CAAC;KAClC;IACD,OAAO,IAAI,CAAC;AACd,CAAC,CAAC"}
@@ -3,15 +3,15 @@ export type GetOrderLineItemsSellingPlanQueryVariables = AdminTypes.Exact<{
3
3
  id: AdminTypes.Scalars['ID']['input'];
4
4
  }>;
5
5
  export type GetOrderLineItemsSellingPlanQuery = {
6
- order?: AdminTypes.Maybe<(Pick<AdminTypes.Order, 'id' | 'legacyResourceId' | 'name'> & {
6
+ order?: AdminTypes.Maybe<Pick<AdminTypes.Order, 'id' | 'legacyResourceId' | 'name'> & {
7
7
  lineItems: {
8
- nodes: Array<(Pick<AdminTypes.LineItem, 'id'> & {
8
+ nodes: Array<Pick<AdminTypes.LineItem, 'id'> & {
9
9
  product?: AdminTypes.Maybe<Pick<AdminTypes.Product, 'id' | 'legacyResourceId'>>;
10
10
  variant?: AdminTypes.Maybe<Pick<AdminTypes.ProductVariant, 'id' | 'legacyResourceId'>>;
11
11
  sellingPlan?: AdminTypes.Maybe<Pick<AdminTypes.LineItemSellingPlan, 'sellingPlanId' | 'name'>>;
12
- })>;
12
+ }>;
13
13
  };
14
- })>;
14
+ }>;
15
15
  };
16
16
  export type GetProductQueryVariables = AdminTypes.Exact<{
17
17
  id: AdminTypes.Scalars['ID']['input'];
@@ -19,13 +19,13 @@ export type GetProductQueryVariables = AdminTypes.Exact<{
19
19
  after?: AdminTypes.InputMaybe<AdminTypes.Scalars['String']['input']>;
20
20
  }>;
21
21
  export type GetProductQuery = {
22
- product?: AdminTypes.Maybe<(Pick<AdminTypes.Product, 'id' | 'handle' | 'productType' | 'hasOnlyDefaultVariant' | 'hasOutOfStockVariants' | 'isGiftCard' | 'legacyResourceId' | 'onlineStoreUrl' | 'onlineStorePreviewUrl' | 'publishedAt' | 'requiresSellingPlan' | 'status' | 'tags' | 'title' | 'totalInventory' | 'tracksInventory' | 'vendor' | 'createdAt' | 'updatedAt'> & {
22
+ product?: AdminTypes.Maybe<Pick<AdminTypes.Product, 'id' | 'handle' | 'productType' | 'hasOnlyDefaultVariant' | 'hasOutOfStockVariants' | 'isGiftCard' | 'legacyResourceId' | 'onlineStoreUrl' | 'onlineStorePreviewUrl' | 'publishedAt' | 'requiresSellingPlan' | 'status' | 'tags' | 'title' | 'totalInventory' | 'tracksInventory' | 'vendor' | 'createdAt' | 'updatedAt'> & {
23
23
  category?: AdminTypes.Maybe<Pick<AdminTypes.TaxonomyCategory, 'id' | 'name' | 'fullName' | 'parentId'>>;
24
24
  collections: {
25
- nodes: Array<(Pick<AdminTypes.Collection, 'handle' | 'id' | 'legacyResourceId' | 'title'> & {
25
+ nodes: Array<Pick<AdminTypes.Collection, 'handle' | 'id' | 'legacyResourceId' | 'title'> & {
26
26
  image?: AdminTypes.Maybe<Pick<AdminTypes.Image, 'url'>>;
27
27
  productsCount?: AdminTypes.Maybe<Pick<AdminTypes.Count, 'count' | 'precision'>>;
28
- })>;
28
+ }>;
29
29
  };
30
30
  priceRangeV2: {
31
31
  maxVariantPrice: Pick<AdminTypes.MoneyV2, 'amount' | 'currencyCode'>;
@@ -34,79 +34,79 @@ export type GetProductQuery = {
34
34
  variantsCount?: AdminTypes.Maybe<Pick<AdminTypes.Count, 'count'>>;
35
35
  seo: Pick<AdminTypes.Seo, 'title' | 'description'>;
36
36
  featuredMedia?: AdminTypes.Maybe<(Pick<AdminTypes.ExternalVideo, 'id' | 'mediaContentType' | 'status'> & {
37
- preview?: AdminTypes.Maybe<(Pick<AdminTypes.MediaPreviewImage, 'status'> & {
37
+ preview?: AdminTypes.Maybe<Pick<AdminTypes.MediaPreviewImage, 'status'> & {
38
38
  image?: AdminTypes.Maybe<Pick<AdminTypes.Image, 'id' | 'url'>>;
39
- })>;
39
+ }>;
40
40
  }) | (Pick<AdminTypes.MediaImage, 'id' | 'mediaContentType' | 'status'> & {
41
- preview?: AdminTypes.Maybe<(Pick<AdminTypes.MediaPreviewImage, 'status'> & {
41
+ preview?: AdminTypes.Maybe<Pick<AdminTypes.MediaPreviewImage, 'status'> & {
42
42
  image?: AdminTypes.Maybe<Pick<AdminTypes.Image, 'id' | 'url'>>;
43
- })>;
43
+ }>;
44
44
  }) | (Pick<AdminTypes.Model3d, 'id' | 'mediaContentType' | 'status'> & {
45
- preview?: AdminTypes.Maybe<(Pick<AdminTypes.MediaPreviewImage, 'status'> & {
45
+ preview?: AdminTypes.Maybe<Pick<AdminTypes.MediaPreviewImage, 'status'> & {
46
46
  image?: AdminTypes.Maybe<Pick<AdminTypes.Image, 'id' | 'url'>>;
47
- })>;
47
+ }>;
48
48
  }) | (Pick<AdminTypes.Video, 'id' | 'mediaContentType' | 'status'> & {
49
- preview?: AdminTypes.Maybe<(Pick<AdminTypes.MediaPreviewImage, 'status'> & {
49
+ preview?: AdminTypes.Maybe<Pick<AdminTypes.MediaPreviewImage, 'status'> & {
50
50
  image?: AdminTypes.Maybe<Pick<AdminTypes.Image, 'id' | 'url'>>;
51
- })>;
51
+ }>;
52
52
  })>;
53
53
  media: {
54
54
  nodes: Array<(Pick<AdminTypes.ExternalVideo, 'id' | 'mediaContentType' | 'status'> & {
55
- preview?: AdminTypes.Maybe<(Pick<AdminTypes.MediaPreviewImage, 'status'> & {
55
+ preview?: AdminTypes.Maybe<Pick<AdminTypes.MediaPreviewImage, 'status'> & {
56
56
  image?: AdminTypes.Maybe<Pick<AdminTypes.Image, 'id' | 'url'>>;
57
- })>;
57
+ }>;
58
58
  }) | (Pick<AdminTypes.MediaImage, 'id' | 'mediaContentType' | 'status'> & {
59
- preview?: AdminTypes.Maybe<(Pick<AdminTypes.MediaPreviewImage, 'status'> & {
59
+ preview?: AdminTypes.Maybe<Pick<AdminTypes.MediaPreviewImage, 'status'> & {
60
60
  image?: AdminTypes.Maybe<Pick<AdminTypes.Image, 'id' | 'url'>>;
61
- })>;
61
+ }>;
62
62
  }) | (Pick<AdminTypes.Model3d, 'id' | 'mediaContentType' | 'status'> & {
63
- preview?: AdminTypes.Maybe<(Pick<AdminTypes.MediaPreviewImage, 'status'> & {
63
+ preview?: AdminTypes.Maybe<Pick<AdminTypes.MediaPreviewImage, 'status'> & {
64
64
  image?: AdminTypes.Maybe<Pick<AdminTypes.Image, 'id' | 'url'>>;
65
- })>;
65
+ }>;
66
66
  }) | (Pick<AdminTypes.Video, 'id' | 'mediaContentType' | 'status'> & {
67
- preview?: AdminTypes.Maybe<(Pick<AdminTypes.MediaPreviewImage, 'status'> & {
67
+ preview?: AdminTypes.Maybe<Pick<AdminTypes.MediaPreviewImage, 'status'> & {
68
68
  image?: AdminTypes.Maybe<Pick<AdminTypes.Image, 'id' | 'url'>>;
69
- })>;
69
+ }>;
70
70
  })>;
71
71
  };
72
72
  variants: {
73
73
  pageInfo: Pick<AdminTypes.PageInfo, 'hasNextPage' | 'endCursor'>;
74
- nodes: Array<(Pick<AdminTypes.ProductVariant, 'availableForSale' | 'barcode' | 'compareAtPrice' | 'createdAt' | 'displayName' | 'id' | 'legacyResourceId' | 'inventoryPolicy' | 'inventoryQuantity' | 'price' | 'sellableOnlineQuantity' | 'sku' | 'taxable' | 'title' | 'updatedAt'> & {
74
+ nodes: Array<Pick<AdminTypes.ProductVariant, 'availableForSale' | 'barcode' | 'compareAtPrice' | 'createdAt' | 'displayName' | 'id' | 'legacyResourceId' | 'inventoryPolicy' | 'inventoryQuantity' | 'price' | 'sellableOnlineQuantity' | 'sku' | 'taxable' | 'title' | 'updatedAt'> & {
75
75
  product: Pick<AdminTypes.Product, 'id' | 'handle' | 'legacyResourceId'>;
76
76
  image?: AdminTypes.Maybe<Pick<AdminTypes.Image, 'id' | 'url'>>;
77
- inventoryItem: (Pick<AdminTypes.InventoryItem, 'createdAt' | 'id' | 'legacyResourceId' | 'requiresShipping' | 'sku' | 'tracked' | 'updatedAt'> & {
77
+ inventoryItem: Pick<AdminTypes.InventoryItem, 'createdAt' | 'id' | 'legacyResourceId' | 'requiresShipping' | 'sku' | 'tracked' | 'updatedAt'> & {
78
78
  unitCost?: AdminTypes.Maybe<Pick<AdminTypes.MoneyV2, 'amount' | 'currencyCode'>>;
79
- });
79
+ };
80
80
  media: {
81
81
  nodes: Array<(Pick<AdminTypes.ExternalVideo, 'id' | 'mediaContentType' | 'status'> & {
82
- preview?: AdminTypes.Maybe<(Pick<AdminTypes.MediaPreviewImage, 'status'> & {
82
+ preview?: AdminTypes.Maybe<Pick<AdminTypes.MediaPreviewImage, 'status'> & {
83
83
  image?: AdminTypes.Maybe<Pick<AdminTypes.Image, 'id' | 'url'>>;
84
- })>;
84
+ }>;
85
85
  }) | (Pick<AdminTypes.MediaImage, 'id' | 'mediaContentType' | 'status'> & {
86
- preview?: AdminTypes.Maybe<(Pick<AdminTypes.MediaPreviewImage, 'status'> & {
86
+ preview?: AdminTypes.Maybe<Pick<AdminTypes.MediaPreviewImage, 'status'> & {
87
87
  image?: AdminTypes.Maybe<Pick<AdminTypes.Image, 'id' | 'url'>>;
88
- })>;
88
+ }>;
89
89
  }) | (Pick<AdminTypes.Model3d, 'id' | 'mediaContentType' | 'status'> & {
90
- preview?: AdminTypes.Maybe<(Pick<AdminTypes.MediaPreviewImage, 'status'> & {
90
+ preview?: AdminTypes.Maybe<Pick<AdminTypes.MediaPreviewImage, 'status'> & {
91
91
  image?: AdminTypes.Maybe<Pick<AdminTypes.Image, 'id' | 'url'>>;
92
- })>;
92
+ }>;
93
93
  }) | (Pick<AdminTypes.Video, 'id' | 'mediaContentType' | 'status'> & {
94
- preview?: AdminTypes.Maybe<(Pick<AdminTypes.MediaPreviewImage, 'status'> & {
94
+ preview?: AdminTypes.Maybe<Pick<AdminTypes.MediaPreviewImage, 'status'> & {
95
95
  image?: AdminTypes.Maybe<Pick<AdminTypes.Image, 'id' | 'url'>>;
96
- })>;
96
+ }>;
97
97
  })>;
98
98
  };
99
99
  selectedOptions: Array<Pick<AdminTypes.SelectedOption, 'name' | 'value'>>;
100
- })>;
100
+ }>;
101
101
  };
102
- })>;
102
+ }>;
103
103
  };
104
104
  interface GeneratedQueryTypes {
105
- "\n#graphql\nquery GetOrderLineItemsSellingPlan($id: ID!) {\n order(id: $id) {\n id\n legacyResourceId\n name\n lineItems(first: 100) {\n nodes {\n id\n product {\n id\n legacyResourceId\n }\n variant {\n id\n legacyResourceId\n }\n sellingPlan {\n sellingPlanId\n name\n }\n }\n }\n }\n}\n": {
105
+ '\n#graphql\nquery GetOrderLineItemsSellingPlan($id: ID!) {\n order(id: $id) {\n id\n legacyResourceId\n name\n lineItems(first: 100) {\n nodes {\n id\n product {\n id\n legacyResourceId\n }\n variant {\n id\n legacyResourceId\n }\n sellingPlan {\n sellingPlanId\n name\n }\n }\n }\n }\n}\n': {
106
106
  return: GetOrderLineItemsSellingPlanQuery;
107
107
  variables: GetOrderLineItemsSellingPlanQueryVariables;
108
108
  };
109
- "\n#graphql\nquery GetProduct($id: ID!, $first: Int!, $after: String) {\n product(id: $id) {\n id\n handle\n productType\n hasOnlyDefaultVariant\n hasOutOfStockVariants\n isGiftCard\n legacyResourceId\n onlineStoreUrl\n onlineStorePreviewUrl\n productType\n publishedAt\n requiresSellingPlan\n status\n tags\n title\n totalInventory\n tracksInventory\n vendor\n createdAt\n updatedAt\n category {\n id\n name\n fullName\n parentId\n }\n collections (first: 250) {\n nodes {\n handle\n id\n image {\n url\n }\n legacyResourceId\n productsCount {\n count\n precision\n }\n title\n }\n }\n priceRangeV2 {\n maxVariantPrice {\n amount\n currencyCode\n }\n minVariantPrice {\n amount\n currencyCode\n }\n }\n variantsCount {\n count\n }\n seo {\n title\n description\n }\n featuredMedia {\n id\n mediaContentType\n status\n preview {\n image {\n id\n url\n }\n status\n }\n }\n media (first: 3) {\n nodes {\n id\n mediaContentType\n status\n preview {\n image {\n id\n url\n }\n status\n }\n\n }\n }\n variants (first: $first, after: $after) {\n pageInfo {\n hasNextPage\n endCursor\n }\n nodes {\n availableForSale\n barcode\n compareAtPrice\n createdAt\n displayName\n id\n legacyResourceId\n product {\n id\n handle\n legacyResourceId\n }\n image {\n id\n url\n }\n inventoryItem {\n createdAt\n id\n legacyResourceId\n requiresShipping\n sku\n tracked\n unitCost {\n amount\n currencyCode\n }\n updatedAt\n }\n inventoryPolicy\n inventoryQuantity\n price\n media (first: 3) {\n nodes {\n id\n mediaContentType\n status\n preview {\n image {\n id\n url\n }\n status\n }\n }\n }\n selectedOptions {\n name\n value\n }\n sellableOnlineQuantity\n sku\n taxable\n title\n updatedAt\n }\n }\n }\n}\n": {
109
+ '\n#graphql\nquery GetProduct($id: ID!, $first: Int!, $after: String) {\n product(id: $id) {\n id\n handle\n productType\n hasOnlyDefaultVariant\n hasOutOfStockVariants\n isGiftCard\n legacyResourceId\n onlineStoreUrl\n onlineStorePreviewUrl\n productType\n publishedAt\n requiresSellingPlan\n status\n tags\n title\n totalInventory\n tracksInventory\n vendor\n createdAt\n updatedAt\n category {\n id\n name\n fullName\n parentId\n }\n collections (first: 250) {\n nodes {\n handle\n id\n image {\n url\n }\n legacyResourceId\n productsCount {\n count\n precision\n }\n title\n }\n }\n priceRangeV2 {\n maxVariantPrice {\n amount\n currencyCode\n }\n minVariantPrice {\n amount\n currencyCode\n }\n }\n variantsCount {\n count\n }\n seo {\n title\n description\n }\n featuredMedia {\n id\n mediaContentType\n status\n preview {\n image {\n id\n url\n }\n status\n }\n }\n media (first: 3) {\n nodes {\n id\n mediaContentType\n status\n preview {\n image {\n id\n url\n }\n status\n }\n\n }\n }\n variants (first: $first, after: $after) {\n pageInfo {\n hasNextPage\n endCursor\n }\n nodes {\n availableForSale\n barcode\n compareAtPrice\n createdAt\n displayName\n id\n legacyResourceId\n product {\n id\n handle\n legacyResourceId\n }\n image {\n id\n url\n }\n inventoryItem {\n createdAt\n id\n legacyResourceId\n requiresShipping\n sku\n tracked\n unitCost {\n amount\n currencyCode\n }\n updatedAt\n }\n inventoryPolicy\n inventoryQuantity\n price\n media (first: 3) {\n nodes {\n id\n mediaContentType\n status\n preview {\n image {\n id\n url\n }\n status\n }\n }\n }\n selectedOptions {\n name\n value\n }\n sellableOnlineQuantity\n sku\n taxable\n title\n updatedAt\n }\n }\n }\n}\n': {
110
110
  return: GetProductQuery;
111
111
  variables: GetProductQueryVariables;
112
112
  };