n8n-nodes-shopify-custom 2.0.0
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.
- package/LICENSE.md +19 -0
- package/README.md +68 -0
- package/dist/credentials/ShopifyCustomAdminApi.credentials.d.ts +10 -0
- package/dist/credentials/ShopifyCustomAdminApi.credentials.js +65 -0
- package/dist/credentials/ShopifyCustomAdminApi.credentials.js.map +1 -0
- package/dist/icons/shopify.dark.svg +12 -0
- package/dist/icons/shopify.svg +12 -0
- package/dist/nodes/ShopifyCustom/ShopifyCustom.node.d.ts +15 -0
- package/dist/nodes/ShopifyCustom/ShopifyCustom.node.js +358 -0
- package/dist/nodes/ShopifyCustom/ShopifyCustom.node.js.map +1 -0
- package/dist/nodes/ShopifyCustom/ShopifyCustom.node.json +18 -0
- package/dist/nodes/ShopifyCustom/config/operations/collection.d.ts +2 -0
- package/dist/nodes/ShopifyCustom/config/operations/collection.js +306 -0
- package/dist/nodes/ShopifyCustom/config/operations/collection.js.map +1 -0
- package/dist/nodes/ShopifyCustom/config/operations/common.d.ts +13 -0
- package/dist/nodes/ShopifyCustom/config/operations/common.js +222 -0
- package/dist/nodes/ShopifyCustom/config/operations/common.js.map +1 -0
- package/dist/nodes/ShopifyCustom/config/operations/customer.d.ts +2 -0
- package/dist/nodes/ShopifyCustom/config/operations/customer.js +107 -0
- package/dist/nodes/ShopifyCustom/config/operations/customer.js.map +1 -0
- package/dist/nodes/ShopifyCustom/config/operations/draftOrder.d.ts +2 -0
- package/dist/nodes/ShopifyCustom/config/operations/draftOrder.js +118 -0
- package/dist/nodes/ShopifyCustom/config/operations/draftOrder.js.map +1 -0
- package/dist/nodes/ShopifyCustom/config/operations/index.d.ts +7 -0
- package/dist/nodes/ShopifyCustom/config/operations/index.js +48 -0
- package/dist/nodes/ShopifyCustom/config/operations/index.js.map +1 -0
- package/dist/nodes/ShopifyCustom/config/operations/metafieldDefinition.d.ts +2 -0
- package/dist/nodes/ShopifyCustom/config/operations/metafieldDefinition.js +192 -0
- package/dist/nodes/ShopifyCustom/config/operations/metafieldDefinition.js.map +1 -0
- package/dist/nodes/ShopifyCustom/config/operations/metafieldValue.d.ts +2 -0
- package/dist/nodes/ShopifyCustom/config/operations/metafieldValue.js +125 -0
- package/dist/nodes/ShopifyCustom/config/operations/metafieldValue.js.map +1 -0
- package/dist/nodes/ShopifyCustom/config/operations/metaobject.d.ts +2 -0
- package/dist/nodes/ShopifyCustom/config/operations/metaobject.js +198 -0
- package/dist/nodes/ShopifyCustom/config/operations/metaobject.js.map +1 -0
- package/dist/nodes/ShopifyCustom/config/operations/order.d.ts +2 -0
- package/dist/nodes/ShopifyCustom/config/operations/order.js +111 -0
- package/dist/nodes/ShopifyCustom/config/operations/order.js.map +1 -0
- package/dist/nodes/ShopifyCustom/config/operations/product.d.ts +2 -0
- package/dist/nodes/ShopifyCustom/config/operations/product.js +118 -0
- package/dist/nodes/ShopifyCustom/config/operations/product.js.map +1 -0
- package/dist/nodes/ShopifyCustom/config/operations/productVariant.d.ts +2 -0
- package/dist/nodes/ShopifyCustom/config/operations/productVariant.js +109 -0
- package/dist/nodes/ShopifyCustom/config/operations/productVariant.js.map +1 -0
- package/dist/nodes/ShopifyCustom/config/operations/service.d.ts +2 -0
- package/dist/nodes/ShopifyCustom/config/operations/service.js +14 -0
- package/dist/nodes/ShopifyCustom/config/operations/service.js.map +1 -0
- package/dist/nodes/ShopifyCustom/config/operations/types.d.ts +13 -0
- package/dist/nodes/ShopifyCustom/config/operations/types.js +3 -0
- package/dist/nodes/ShopifyCustom/config/operations/types.js.map +1 -0
- package/dist/nodes/ShopifyCustom/config/resources.d.ts +9 -0
- package/dist/nodes/ShopifyCustom/config/resources.js +62 -0
- package/dist/nodes/ShopifyCustom/config/resources.js.map +1 -0
- package/dist/nodes/ShopifyCustom/shared/collections/ruleConditions.d.ts +17 -0
- package/dist/nodes/ShopifyCustom/shared/collections/ruleConditions.js +281 -0
- package/dist/nodes/ShopifyCustom/shared/collections/ruleConditions.js.map +1 -0
- package/dist/nodes/ShopifyCustom/shared/errors.d.ts +8 -0
- package/dist/nodes/ShopifyCustom/shared/errors.js +37 -0
- package/dist/nodes/ShopifyCustom/shared/errors.js.map +1 -0
- package/dist/nodes/ShopifyCustom/shared/graphql/client.d.ts +26 -0
- package/dist/nodes/ShopifyCustom/shared/graphql/client.js +73 -0
- package/dist/nodes/ShopifyCustom/shared/graphql/client.js.map +1 -0
- package/dist/nodes/ShopifyCustom/shared/graphql/registry.d.ts +17 -0
- package/dist/nodes/ShopifyCustom/shared/graphql/registry.js +962 -0
- package/dist/nodes/ShopifyCustom/shared/graphql/registry.js.map +1 -0
- package/dist/nodes/ShopifyCustom/shared/graphql/templates/collection.d.ts +5 -0
- package/dist/nodes/ShopifyCustom/shared/graphql/templates/collection.js +99 -0
- package/dist/nodes/ShopifyCustom/shared/graphql/templates/collection.js.map +1 -0
- package/dist/nodes/ShopifyCustom/shared/graphql/templates/commonFragments.d.ts +7 -0
- package/dist/nodes/ShopifyCustom/shared/graphql/templates/commonFragments.js +69 -0
- package/dist/nodes/ShopifyCustom/shared/graphql/templates/commonFragments.js.map +1 -0
- package/dist/nodes/ShopifyCustom/shared/graphql/templates/customer.d.ts +5 -0
- package/dist/nodes/ShopifyCustom/shared/graphql/templates/customer.js +94 -0
- package/dist/nodes/ShopifyCustom/shared/graphql/templates/customer.js.map +1 -0
- package/dist/nodes/ShopifyCustom/shared/graphql/templates/draftOrder.d.ts +5 -0
- package/dist/nodes/ShopifyCustom/shared/graphql/templates/draftOrder.js +91 -0
- package/dist/nodes/ShopifyCustom/shared/graphql/templates/draftOrder.js.map +1 -0
- package/dist/nodes/ShopifyCustom/shared/graphql/templates/metafields.d.ts +10 -0
- package/dist/nodes/ShopifyCustom/shared/graphql/templates/metafields.js +223 -0
- package/dist/nodes/ShopifyCustom/shared/graphql/templates/metafields.js.map +1 -0
- package/dist/nodes/ShopifyCustom/shared/graphql/templates/metaobject.d.ts +5 -0
- package/dist/nodes/ShopifyCustom/shared/graphql/templates/metaobject.js +92 -0
- package/dist/nodes/ShopifyCustom/shared/graphql/templates/metaobject.js.map +1 -0
- package/dist/nodes/ShopifyCustom/shared/graphql/templates/order.d.ts +5 -0
- package/dist/nodes/ShopifyCustom/shared/graphql/templates/order.js +95 -0
- package/dist/nodes/ShopifyCustom/shared/graphql/templates/order.js.map +1 -0
- package/dist/nodes/ShopifyCustom/shared/graphql/templates/product.d.ts +5 -0
- package/dist/nodes/ShopifyCustom/shared/graphql/templates/product.js +107 -0
- package/dist/nodes/ShopifyCustom/shared/graphql/templates/product.js.map +1 -0
- package/dist/nodes/ShopifyCustom/shared/graphql/templates/productVariant.d.ts +5 -0
- package/dist/nodes/ShopifyCustom/shared/graphql/templates/productVariant.js +99 -0
- package/dist/nodes/ShopifyCustom/shared/graphql/templates/productVariant.js.map +1 -0
- package/dist/nodes/ShopifyCustom/shared/metafields/definitions.d.ts +24 -0
- package/dist/nodes/ShopifyCustom/shared/metafields/definitions.js +65 -0
- package/dist/nodes/ShopifyCustom/shared/metafields/definitions.js.map +1 -0
- package/dist/nodes/ShopifyCustom/shared/metafields/ownerTypeMap.d.ts +3 -0
- package/dist/nodes/ShopifyCustom/shared/metafields/ownerTypeMap.js +19 -0
- package/dist/nodes/ShopifyCustom/shared/metafields/ownerTypeMap.js.map +1 -0
- package/dist/nodes/ShopifyCustom/shared/metafields/referenceLoaders.d.ts +2 -0
- package/dist/nodes/ShopifyCustom/shared/metafields/referenceLoaders.js +122 -0
- package/dist/nodes/ShopifyCustom/shared/metafields/referenceLoaders.js.map +1 -0
- package/dist/nodes/ShopifyCustom/shared/metafields/types.d.ts +17 -0
- package/dist/nodes/ShopifyCustom/shared/metafields/types.js +57 -0
- package/dist/nodes/ShopifyCustom/shared/metafields/types.js.map +1 -0
- package/dist/nodes/ShopifyCustom/shared/metafields/uiFactory.d.ts +2 -0
- package/dist/nodes/ShopifyCustom/shared/metafields/uiFactory.js +395 -0
- package/dist/nodes/ShopifyCustom/shared/metafields/uiFactory.js.map +1 -0
- package/dist/nodes/ShopifyCustom/shared/metafields/valueAdapters/constants.d.ts +20 -0
- package/dist/nodes/ShopifyCustom/shared/metafields/valueAdapters/constants.js +61 -0
- package/dist/nodes/ShopifyCustom/shared/metafields/valueAdapters/constants.js.map +1 -0
- package/dist/nodes/ShopifyCustom/shared/metafields/valueAdapters/index.d.ts +3 -0
- package/dist/nodes/ShopifyCustom/shared/metafields/valueAdapters/index.js +43 -0
- package/dist/nodes/ShopifyCustom/shared/metafields/valueAdapters/index.js.map +1 -0
- package/dist/nodes/ShopifyCustom/shared/metafields/valueAdapters/list.d.ts +2 -0
- package/dist/nodes/ShopifyCustom/shared/metafields/valueAdapters/list.js +103 -0
- package/dist/nodes/ShopifyCustom/shared/metafields/valueAdapters/list.js.map +1 -0
- package/dist/nodes/ShopifyCustom/shared/metafields/valueAdapters/reference.d.ts +2 -0
- package/dist/nodes/ShopifyCustom/shared/metafields/valueAdapters/reference.js +80 -0
- package/dist/nodes/ShopifyCustom/shared/metafields/valueAdapters/reference.js.map +1 -0
- package/dist/nodes/ShopifyCustom/shared/metafields/valueAdapters/scalar.d.ts +2 -0
- package/dist/nodes/ShopifyCustom/shared/metafields/valueAdapters/scalar.js +110 -0
- package/dist/nodes/ShopifyCustom/shared/metafields/valueAdapters/scalar.js.map +1 -0
- package/dist/nodes/ShopifyCustom/shared/metafields/valueAdapters/structured.d.ts +2 -0
- package/dist/nodes/ShopifyCustom/shared/metafields/valueAdapters/structured.js +64 -0
- package/dist/nodes/ShopifyCustom/shared/metafields/valueAdapters/structured.js.map +1 -0
- package/dist/nodes/ShopifyCustom/shared/metafields/valuePayload.d.ts +3 -0
- package/dist/nodes/ShopifyCustom/shared/metafields/valuePayload.js +89 -0
- package/dist/nodes/ShopifyCustom/shared/metafields/valuePayload.js.map +1 -0
- package/dist/nodes/ShopifyCustom/shared/output/outputMapper.d.ts +3 -0
- package/dist/nodes/ShopifyCustom/shared/output/outputMapper.js +82 -0
- package/dist/nodes/ShopifyCustom/shared/output/outputMapper.js.map +1 -0
- package/dist/nodes/ShopifyCustom/shared/themes/templateSuffixes.d.ts +2 -0
- package/dist/nodes/ShopifyCustom/shared/themes/templateSuffixes.js +83 -0
- package/dist/nodes/ShopifyCustom/shared/themes/templateSuffixes.js.map +1 -0
- package/dist/nodes/ShopifyCustom/shopify.dark.svg +12 -0
- package/dist/nodes/ShopifyCustom/shopify.svg +12 -0
- package/dist/package.json +62 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +62 -0
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.METAFIELD_DEFINITION_TYPES_QUERY = exports.METAFIELD_DEFINITION_DELETE_MUTATION = exports.METAFIELD_DEFINITION_UPDATE_MUTATION = exports.METAFIELD_DEFINITION_CREATE_MUTATION = exports.METAFIELD_DEFINITION_GET_QUERY = exports.METAFIELD_DEFINITION_LIST_QUERY = exports.METAFIELD_GET_MANY_QUERY = exports.METAFIELD_GET_QUERY = exports.METAFIELD_DELETE_MUTATION = exports.METAFIELD_SET_MUTATION = void 0;
|
|
4
|
+
const commonFragments_1 = require("./commonFragments");
|
|
5
|
+
const OWNER_SINGLE_METAFIELD_SELECTION = `
|
|
6
|
+
... on Product {
|
|
7
|
+
id
|
|
8
|
+
metafield(namespace: $namespace, key: $key) {
|
|
9
|
+
${commonFragments_1.METAFIELD_FIELDS}
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
... on ProductVariant {
|
|
13
|
+
id
|
|
14
|
+
metafield(namespace: $namespace, key: $key) {
|
|
15
|
+
${commonFragments_1.METAFIELD_FIELDS}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
... on Collection {
|
|
19
|
+
id
|
|
20
|
+
metafield(namespace: $namespace, key: $key) {
|
|
21
|
+
${commonFragments_1.METAFIELD_FIELDS}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
... on Customer {
|
|
25
|
+
id
|
|
26
|
+
metafield(namespace: $namespace, key: $key) {
|
|
27
|
+
${commonFragments_1.METAFIELD_FIELDS}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
... on Order {
|
|
31
|
+
id
|
|
32
|
+
metafield(namespace: $namespace, key: $key) {
|
|
33
|
+
${commonFragments_1.METAFIELD_FIELDS}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
... on DraftOrder {
|
|
37
|
+
id
|
|
38
|
+
metafield(namespace: $namespace, key: $key) {
|
|
39
|
+
${commonFragments_1.METAFIELD_FIELDS}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
`;
|
|
43
|
+
const OWNER_CONNECTION_METAFIELDS_SELECTION = `
|
|
44
|
+
... on Product {
|
|
45
|
+
id
|
|
46
|
+
metafields(first: $first, after: $after, namespace: $namespace) {
|
|
47
|
+
nodes {
|
|
48
|
+
${commonFragments_1.METAFIELD_FIELDS}
|
|
49
|
+
}
|
|
50
|
+
pageInfo {
|
|
51
|
+
hasNextPage
|
|
52
|
+
endCursor
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
... on ProductVariant {
|
|
57
|
+
id
|
|
58
|
+
metafields(first: $first, after: $after, namespace: $namespace) {
|
|
59
|
+
nodes {
|
|
60
|
+
${commonFragments_1.METAFIELD_FIELDS}
|
|
61
|
+
}
|
|
62
|
+
pageInfo {
|
|
63
|
+
hasNextPage
|
|
64
|
+
endCursor
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
... on Collection {
|
|
69
|
+
id
|
|
70
|
+
metafields(first: $first, after: $after, namespace: $namespace) {
|
|
71
|
+
nodes {
|
|
72
|
+
${commonFragments_1.METAFIELD_FIELDS}
|
|
73
|
+
}
|
|
74
|
+
pageInfo {
|
|
75
|
+
hasNextPage
|
|
76
|
+
endCursor
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
... on Customer {
|
|
81
|
+
id
|
|
82
|
+
metafields(first: $first, after: $after, namespace: $namespace) {
|
|
83
|
+
nodes {
|
|
84
|
+
${commonFragments_1.METAFIELD_FIELDS}
|
|
85
|
+
}
|
|
86
|
+
pageInfo {
|
|
87
|
+
hasNextPage
|
|
88
|
+
endCursor
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
... on Order {
|
|
93
|
+
id
|
|
94
|
+
metafields(first: $first, after: $after, namespace: $namespace) {
|
|
95
|
+
nodes {
|
|
96
|
+
${commonFragments_1.METAFIELD_FIELDS}
|
|
97
|
+
}
|
|
98
|
+
pageInfo {
|
|
99
|
+
hasNextPage
|
|
100
|
+
endCursor
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
... on DraftOrder {
|
|
105
|
+
id
|
|
106
|
+
metafields(first: $first, after: $after, namespace: $namespace) {
|
|
107
|
+
nodes {
|
|
108
|
+
${commonFragments_1.METAFIELD_FIELDS}
|
|
109
|
+
}
|
|
110
|
+
pageInfo {
|
|
111
|
+
hasNextPage
|
|
112
|
+
endCursor
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
`;
|
|
117
|
+
exports.METAFIELD_SET_MUTATION = `
|
|
118
|
+
mutation MetafieldsSet($metafields: [MetafieldsSetInput!]!) {
|
|
119
|
+
metafieldsSet(metafields: $metafields) {
|
|
120
|
+
metafields {
|
|
121
|
+
${commonFragments_1.METAFIELD_FIELDS}
|
|
122
|
+
}
|
|
123
|
+
${commonFragments_1.USER_ERRORS_FIELDS}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
`;
|
|
127
|
+
exports.METAFIELD_DELETE_MUTATION = `
|
|
128
|
+
mutation MetafieldsDelete($metafields: [MetafieldIdentifierInput!]!) {
|
|
129
|
+
metafieldsDelete(metafields: $metafields) {
|
|
130
|
+
deletedMetafields {
|
|
131
|
+
ownerId
|
|
132
|
+
namespace
|
|
133
|
+
key
|
|
134
|
+
}
|
|
135
|
+
${commonFragments_1.USER_ERRORS_FIELDS}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
`;
|
|
139
|
+
exports.METAFIELD_GET_QUERY = `
|
|
140
|
+
query MetafieldGet($ownerId: ID!, $namespace: String!, $key: String!) {
|
|
141
|
+
nodes(ids: [$ownerId]) {
|
|
142
|
+
${OWNER_SINGLE_METAFIELD_SELECTION}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
`;
|
|
146
|
+
exports.METAFIELD_GET_MANY_QUERY = `
|
|
147
|
+
query MetafieldGetMany($ownerId: ID!, $first: Int!, $after: String, $namespace: String) {
|
|
148
|
+
nodes(ids: [$ownerId]) {
|
|
149
|
+
${OWNER_CONNECTION_METAFIELDS_SELECTION}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
`;
|
|
153
|
+
exports.METAFIELD_DEFINITION_LIST_QUERY = `
|
|
154
|
+
query MetafieldDefinitionList($ownerType: MetafieldOwnerType!, $first: Int!, $after: String, $query: String) {
|
|
155
|
+
metafieldDefinitions(ownerType: $ownerType, first: $first, after: $after, query: $query) {
|
|
156
|
+
nodes {
|
|
157
|
+
${commonFragments_1.METAFIELD_DEFINITION_FIELDS}
|
|
158
|
+
}
|
|
159
|
+
pageInfo {
|
|
160
|
+
hasNextPage
|
|
161
|
+
endCursor
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
`;
|
|
166
|
+
exports.METAFIELD_DEFINITION_GET_QUERY = `
|
|
167
|
+
query MetafieldDefinitionGet($id: ID!) {
|
|
168
|
+
node(id: $id) {
|
|
169
|
+
... on MetafieldDefinition {
|
|
170
|
+
${commonFragments_1.METAFIELD_DEFINITION_FIELDS}
|
|
171
|
+
validations {
|
|
172
|
+
name
|
|
173
|
+
value
|
|
174
|
+
type
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
`;
|
|
180
|
+
exports.METAFIELD_DEFINITION_CREATE_MUTATION = `
|
|
181
|
+
mutation MetafieldDefinitionCreate($definition: MetafieldDefinitionInput!) {
|
|
182
|
+
metafieldDefinitionCreate(definition: $definition) {
|
|
183
|
+
createdDefinition {
|
|
184
|
+
${commonFragments_1.METAFIELD_DEFINITION_FIELDS}
|
|
185
|
+
}
|
|
186
|
+
${commonFragments_1.USER_ERRORS_FIELDS}
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
`;
|
|
190
|
+
exports.METAFIELD_DEFINITION_UPDATE_MUTATION = `
|
|
191
|
+
mutation MetafieldDefinitionUpdate($definition: MetafieldDefinitionUpdateInput!) {
|
|
192
|
+
metafieldDefinitionUpdate(definition: $definition) {
|
|
193
|
+
updatedDefinition {
|
|
194
|
+
${commonFragments_1.METAFIELD_DEFINITION_FIELDS}
|
|
195
|
+
}
|
|
196
|
+
${commonFragments_1.USER_ERRORS_FIELDS}
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
`;
|
|
200
|
+
exports.METAFIELD_DEFINITION_DELETE_MUTATION = `
|
|
201
|
+
mutation MetafieldDefinitionDelete($id: ID!, $deleteAllAssociatedMetafields: Boolean) {
|
|
202
|
+
metafieldDefinitionDelete(
|
|
203
|
+
id: $id
|
|
204
|
+
deleteAllAssociatedMetafields: $deleteAllAssociatedMetafields
|
|
205
|
+
) {
|
|
206
|
+
deletedDefinitionId
|
|
207
|
+
${commonFragments_1.USER_ERRORS_FIELDS}
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
`;
|
|
211
|
+
exports.METAFIELD_DEFINITION_TYPES_QUERY = `
|
|
212
|
+
query MetafieldDefinitionTypes {
|
|
213
|
+
metafieldDefinitionTypes {
|
|
214
|
+
name
|
|
215
|
+
category
|
|
216
|
+
supportedValidations {
|
|
217
|
+
name
|
|
218
|
+
type
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
`;
|
|
223
|
+
//# sourceMappingURL=metafields.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"metafields.js","sourceRoot":"","sources":["../../../../../../nodes/ShopifyCustom/shared/graphql/templates/metafields.ts"],"names":[],"mappings":";;;AAAA,uDAAsG;AAEtG,MAAM,gCAAgC,GAAG;;;;IAIrC,kCAAgB;;;;;;IAMhB,kCAAgB;;;;;;IAMhB,kCAAgB;;;;;;IAMhB,kCAAgB;;;;;;IAMhB,kCAAgB;;;;;;IAMhB,kCAAgB;;;CAGnB,CAAC;AAEF,MAAM,qCAAqC,GAAG;;;;;KAKzC,kCAAgB;;;;;;;;;;;;KAYhB,kCAAgB;;;;;;;;;;;;KAYhB,kCAAgB;;;;;;;;;;;;KAYhB,kCAAgB;;;;;;;;;;;;KAYhB,kCAAgB;;;;;;;;;;;;KAYhB,kCAAgB;;;;;;;;CAQpB,CAAC;AAEW,QAAA,sBAAsB,GAAG;;;;KAIjC,kCAAgB;;IAEjB,oCAAkB;;;CAGrB,CAAC;AAEW,QAAA,yBAAyB,GAAG;;;;;;;;IAQrC,oCAAkB;;;CAGrB,CAAC;AAEW,QAAA,mBAAmB,GAAG;;;IAG/B,gCAAgC;;;CAGnC,CAAC;AAEW,QAAA,wBAAwB,GAAG;;;IAGpC,qCAAqC;;;CAGxC,CAAC;AAEW,QAAA,+BAA+B,GAAG;;;;KAI1C,6CAA2B;;;;;;;;CAQ/B,CAAC;AAEW,QAAA,8BAA8B,GAAG;;;;KAIzC,6CAA2B;;;;;;;;;CAS/B,CAAC;AAEW,QAAA,oCAAoC,GAAG;;;;KAI/C,6CAA2B;;IAE5B,oCAAkB;;;CAGrB,CAAC;AAEW,QAAA,oCAAoC,GAAG;;;;KAI/C,6CAA2B;;IAE5B,oCAAkB;;;CAGrB,CAAC;AAEW,QAAA,oCAAoC,GAAG;;;;;;;IAOhD,oCAAkB;;;CAGrB,CAAC;AAEW,QAAA,gCAAgC,GAAG;;;;;;;;;;;CAW/C,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const METAOBJECT_GET_QUERY = "\nquery MetaobjectGet($id: ID!) {\n\tmetaobject(id: $id) {\n\t\t\n\tid\n\ttype\n\thandle\n\tdisplayName\n\tupdatedAt\n\tfields {\n\t\tkey\n\t\ttype\n\t\tvalue\n\t\tjsonValue\n\t\treference {\n\t\t\t\n\t__typename\n\t... on Node {\n\t\tid\n\t}\n\t... on Metaobject {\n\t\ttype\n\t\thandle\n\t\tdisplayName\n\t}\n\n\t\t}\n\t\treferences(first: 50) {\n\t\t\tnodes {\n\t\t\t\t\n\t__typename\n\t... on Node {\n\t\tid\n\t}\n\t... on Metaobject {\n\t\ttype\n\t\thandle\n\t\tdisplayName\n\t}\n\n\t\t\t}\n\t\t}\n\t}\n\n\t}\n}\n";
|
|
2
|
+
export declare const METAOBJECT_GET_MANY_QUERY = "\nquery MetaobjectGetMany(\n\t$type: String!\n\t$first: Int!\n\t$after: String\n\t$query: String\n\t$sortKey: String\n\t$reverse: Boolean\n) {\n\tmetaobjects(type: $type, first: $first, after: $after, query: $query, sortKey: $sortKey, reverse: $reverse) {\n\t\tnodes {\n\t\t\t\n\tid\n\ttype\n\thandle\n\tdisplayName\n\tupdatedAt\n\tfields {\n\t\tkey\n\t\ttype\n\t\tvalue\n\t\tjsonValue\n\t\treference {\n\t\t\t\n\t__typename\n\t... on Node {\n\t\tid\n\t}\n\t... on Metaobject {\n\t\ttype\n\t\thandle\n\t\tdisplayName\n\t}\n\n\t\t}\n\t\treferences(first: 50) {\n\t\t\tnodes {\n\t\t\t\t\n\t__typename\n\t... on Node {\n\t\tid\n\t}\n\t... on Metaobject {\n\t\ttype\n\t\thandle\n\t\tdisplayName\n\t}\n\n\t\t\t}\n\t\t}\n\t}\n\n\t\t}\n\t\tpageInfo {\n\t\t\thasNextPage\n\t\t\tendCursor\n\t\t}\n\t}\n}\n";
|
|
3
|
+
export declare const METAOBJECT_CREATE_MUTATION = "\nmutation MetaobjectCreate($metaobject: MetaobjectCreateInput!) {\n\tmetaobjectCreate(metaobject: $metaobject) {\n\t\tmetaobject {\n\t\t\t\n\tid\n\ttype\n\thandle\n\tdisplayName\n\tupdatedAt\n\tfields {\n\t\tkey\n\t\ttype\n\t\tvalue\n\t\tjsonValue\n\t\treference {\n\t\t\t\n\t__typename\n\t... on Node {\n\t\tid\n\t}\n\t... on Metaobject {\n\t\ttype\n\t\thandle\n\t\tdisplayName\n\t}\n\n\t\t}\n\t\treferences(first: 50) {\n\t\t\tnodes {\n\t\t\t\t\n\t__typename\n\t... on Node {\n\t\tid\n\t}\n\t... on Metaobject {\n\t\ttype\n\t\thandle\n\t\tdisplayName\n\t}\n\n\t\t\t}\n\t\t}\n\t}\n\n\t\t}\n\t\t\n\tuserErrors {\n\t\tfield\n\t\tmessage\n\t}\n\n\t}\n}\n";
|
|
4
|
+
export declare const METAOBJECT_UPDATE_MUTATION = "\nmutation MetaobjectUpdate($id: ID!, $metaobject: MetaobjectUpdateInput!) {\n\tmetaobjectUpdate(id: $id, metaobject: $metaobject) {\n\t\tmetaobject {\n\t\t\t\n\tid\n\ttype\n\thandle\n\tdisplayName\n\tupdatedAt\n\tfields {\n\t\tkey\n\t\ttype\n\t\tvalue\n\t\tjsonValue\n\t\treference {\n\t\t\t\n\t__typename\n\t... on Node {\n\t\tid\n\t}\n\t... on Metaobject {\n\t\ttype\n\t\thandle\n\t\tdisplayName\n\t}\n\n\t\t}\n\t\treferences(first: 50) {\n\t\t\tnodes {\n\t\t\t\t\n\t__typename\n\t... on Node {\n\t\tid\n\t}\n\t... on Metaobject {\n\t\ttype\n\t\thandle\n\t\tdisplayName\n\t}\n\n\t\t\t}\n\t\t}\n\t}\n\n\t\t}\n\t\t\n\tuserErrors {\n\t\tfield\n\t\tmessage\n\t}\n\n\t}\n}\n";
|
|
5
|
+
export declare const METAOBJECT_DELETE_MUTATION = "\nmutation MetaobjectDelete($id: ID!) {\n\tmetaobjectDelete(id: $id) {\n\t\tdeletedId\n\t\t\n\tuserErrors {\n\t\tfield\n\t\tmessage\n\t}\n\n\t}\n}\n";
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.METAOBJECT_DELETE_MUTATION = exports.METAOBJECT_UPDATE_MUTATION = exports.METAOBJECT_CREATE_MUTATION = exports.METAOBJECT_GET_MANY_QUERY = exports.METAOBJECT_GET_QUERY = void 0;
|
|
4
|
+
const commonFragments_1 = require("./commonFragments");
|
|
5
|
+
const METAOBJECT_REFERENCE_FIELDS = `
|
|
6
|
+
__typename
|
|
7
|
+
... on Node {
|
|
8
|
+
id
|
|
9
|
+
}
|
|
10
|
+
... on Metaobject {
|
|
11
|
+
type
|
|
12
|
+
handle
|
|
13
|
+
displayName
|
|
14
|
+
}
|
|
15
|
+
`;
|
|
16
|
+
const METAOBJECT_FIELDS = `
|
|
17
|
+
id
|
|
18
|
+
type
|
|
19
|
+
handle
|
|
20
|
+
displayName
|
|
21
|
+
updatedAt
|
|
22
|
+
fields {
|
|
23
|
+
key
|
|
24
|
+
type
|
|
25
|
+
value
|
|
26
|
+
jsonValue
|
|
27
|
+
reference {
|
|
28
|
+
${METAOBJECT_REFERENCE_FIELDS}
|
|
29
|
+
}
|
|
30
|
+
references(first: 50) {
|
|
31
|
+
nodes {
|
|
32
|
+
${METAOBJECT_REFERENCE_FIELDS}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
`;
|
|
37
|
+
exports.METAOBJECT_GET_QUERY = `
|
|
38
|
+
query MetaobjectGet($id: ID!) {
|
|
39
|
+
metaobject(id: $id) {
|
|
40
|
+
${METAOBJECT_FIELDS}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
`;
|
|
44
|
+
exports.METAOBJECT_GET_MANY_QUERY = `
|
|
45
|
+
query MetaobjectGetMany(
|
|
46
|
+
$type: String!
|
|
47
|
+
$first: Int!
|
|
48
|
+
$after: String
|
|
49
|
+
$query: String
|
|
50
|
+
$sortKey: String
|
|
51
|
+
$reverse: Boolean
|
|
52
|
+
) {
|
|
53
|
+
metaobjects(type: $type, first: $first, after: $after, query: $query, sortKey: $sortKey, reverse: $reverse) {
|
|
54
|
+
nodes {
|
|
55
|
+
${METAOBJECT_FIELDS}
|
|
56
|
+
}
|
|
57
|
+
pageInfo {
|
|
58
|
+
hasNextPage
|
|
59
|
+
endCursor
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
`;
|
|
64
|
+
exports.METAOBJECT_CREATE_MUTATION = `
|
|
65
|
+
mutation MetaobjectCreate($metaobject: MetaobjectCreateInput!) {
|
|
66
|
+
metaobjectCreate(metaobject: $metaobject) {
|
|
67
|
+
metaobject {
|
|
68
|
+
${METAOBJECT_FIELDS}
|
|
69
|
+
}
|
|
70
|
+
${commonFragments_1.USER_ERRORS_FIELDS}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
`;
|
|
74
|
+
exports.METAOBJECT_UPDATE_MUTATION = `
|
|
75
|
+
mutation MetaobjectUpdate($id: ID!, $metaobject: MetaobjectUpdateInput!) {
|
|
76
|
+
metaobjectUpdate(id: $id, metaobject: $metaobject) {
|
|
77
|
+
metaobject {
|
|
78
|
+
${METAOBJECT_FIELDS}
|
|
79
|
+
}
|
|
80
|
+
${commonFragments_1.USER_ERRORS_FIELDS}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
`;
|
|
84
|
+
exports.METAOBJECT_DELETE_MUTATION = `
|
|
85
|
+
mutation MetaobjectDelete($id: ID!) {
|
|
86
|
+
metaobjectDelete(id: $id) {
|
|
87
|
+
deletedId
|
|
88
|
+
${commonFragments_1.USER_ERRORS_FIELDS}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
`;
|
|
92
|
+
//# sourceMappingURL=metaobject.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"metaobject.js","sourceRoot":"","sources":["../../../../../../nodes/ShopifyCustom/shared/graphql/templates/metaobject.ts"],"names":[],"mappings":";;;AAAA,uDAAuD;AAEvD,MAAM,2BAA2B,GAAG;;;;;;;;;;CAUnC,CAAC;AAEF,MAAM,iBAAiB,GAAG;;;;;;;;;;;;KAYrB,2BAA2B;;;;MAI1B,2BAA2B;;;;CAIhC,CAAC;AAEW,QAAA,oBAAoB,GAAG;;;IAGhC,iBAAiB;;;CAGpB,CAAC;AAEW,QAAA,yBAAyB,GAAG;;;;;;;;;;;KAWpC,iBAAiB;;;;;;;;CAQrB,CAAC;AAEW,QAAA,0BAA0B,GAAG;;;;KAIrC,iBAAiB;;IAElB,oCAAkB;;;CAGrB,CAAC;AAEW,QAAA,0BAA0B,GAAG;;;;KAIrC,iBAAiB;;IAElB,oCAAkB;;;CAGrB,CAAC;AAEW,QAAA,0BAA0B,GAAG;;;;IAItC,oCAAkB;;;CAGrB,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const ORDER_CREATE_MUTATION = "\nmutation OrderCreate($order: OrderCreateOrderInput!) {\n\torderCreate(order: $order) {\n\t\torder {\n\t\t\tid\n\t\t\tname\n\t\t\temail\n\t\t\tdisplayFinancialStatus\n\t\t\tdisplayFulfillmentStatus\n\t\t\tupdatedAt\n\t\t}\n\t\t\n\tuserErrors {\n\t\tfield\n\t\tmessage\n\t}\n\n\t}\n}\n";
|
|
2
|
+
export declare const ORDER_GET_QUERY = "\nquery OrderGet(\n\t$id: ID!\n\t$includeMetafields: Boolean!\n\t$metafieldsFirst: Int!\n\t$metafieldKeys: [String!]\n\t$resolveMetafieldReferences: Boolean!\n\t$metafieldReferencesFirst: Int!\n) {\n\torder(id: $id) {\n\t\tid\n\t\tname\n\t\temail\n\t\tnote\n\t\ttags\n\t\tdisplayFinancialStatus\n\t\tdisplayFulfillmentStatus\n\t\tupdatedAt\n\t\t\n\tmetafields(first: $metafieldsFirst, keys: $metafieldKeys) @include(if: $includeMetafields) {\n\t\tnodes {\n\t\t\t\n\tid\n\tnamespace\n\tkey\n\ttype\n\tvalue\n\tcompareDigest\n\tupdatedAt\n\n\t\t\t\n\treference @include(if: $resolveMetafieldReferences) {\n\t\t\n\t__typename\n\t... on Node {\n\t\tid\n\t}\n\t... on Metaobject {\n\t\ttype\n\t\thandle\n\t\tdisplayName\n\t\tfields {\n\t\t\tkey\n\t\t\ttype\n\t\t\tvalue\n\t\t\tjsonValue\n\t\t}\n\t}\n\n\t}\n\treferences(first: $metafieldReferencesFirst) @include(if: $resolveMetafieldReferences) {\n\t\tnodes {\n\t\t\t\n\t__typename\n\t... on Node {\n\t\tid\n\t}\n\t... on Metaobject {\n\t\ttype\n\t\thandle\n\t\tdisplayName\n\t\tfields {\n\t\t\tkey\n\t\t\ttype\n\t\t\tvalue\n\t\t\tjsonValue\n\t\t}\n\t}\n\n\t\t}\n\t}\n\n\t\t}\n\t}\n\n\t}\n}\n";
|
|
3
|
+
export declare const ORDER_GET_MANY_QUERY = "\nquery OrderGetMany(\n\t$first: Int!\n\t$after: String\n\t$query: String\n\t$sortKey: OrderSortKeys\n\t$reverse: Boolean\n\t$includeMetafields: Boolean!\n\t$metafieldsFirst: Int!\n\t$metafieldKeys: [String!]\n\t$resolveMetafieldReferences: Boolean!\n\t$metafieldReferencesFirst: Int!\n) {\n\torders(first: $first, after: $after, query: $query, sortKey: $sortKey, reverse: $reverse) {\n\t\tnodes {\n\t\t\tid\n\t\t\tname\n\t\t\temail\n\t\t\tdisplayFinancialStatus\n\t\t\tdisplayFulfillmentStatus\n\t\t\tupdatedAt\n\t\t\t\n\tmetafields(first: $metafieldsFirst, keys: $metafieldKeys) @include(if: $includeMetafields) {\n\t\tnodes {\n\t\t\t\n\tid\n\tnamespace\n\tkey\n\ttype\n\tvalue\n\tcompareDigest\n\tupdatedAt\n\n\t\t\t\n\treference @include(if: $resolveMetafieldReferences) {\n\t\t\n\t__typename\n\t... on Node {\n\t\tid\n\t}\n\t... on Metaobject {\n\t\ttype\n\t\thandle\n\t\tdisplayName\n\t\tfields {\n\t\t\tkey\n\t\t\ttype\n\t\t\tvalue\n\t\t\tjsonValue\n\t\t}\n\t}\n\n\t}\n\treferences(first: $metafieldReferencesFirst) @include(if: $resolveMetafieldReferences) {\n\t\tnodes {\n\t\t\t\n\t__typename\n\t... on Node {\n\t\tid\n\t}\n\t... on Metaobject {\n\t\ttype\n\t\thandle\n\t\tdisplayName\n\t\tfields {\n\t\t\tkey\n\t\t\ttype\n\t\t\tvalue\n\t\t\tjsonValue\n\t\t}\n\t}\n\n\t\t}\n\t}\n\n\t\t}\n\t}\n\n\t\t}\n\t\tpageInfo {\n\t\t\thasNextPage\n\t\t\tendCursor\n\t\t}\n\t}\n}\n";
|
|
4
|
+
export declare const ORDER_UPDATE_MUTATION = "\nmutation OrderUpdate($input: OrderInput!) {\n\torderUpdate(input: $input) {\n\t\torder {\n\t\t\tid\n\t\t\tname\n\t\t\temail\n\t\t\tnote\n\t\t\ttags\n\t\t\tupdatedAt\n\t\t}\n\t\t\n\tuserErrors {\n\t\tfield\n\t\tmessage\n\t}\n\n\t}\n}\n";
|
|
5
|
+
export declare const ORDER_DELETE_MUTATION = "\nmutation OrderDelete($orderId: ID!) {\n\torderDelete(orderId: $orderId) {\n\t\tdeletedId\n\t\t\n\tuserErrors {\n\t\tfield\n\t\tmessage\n\t}\n\n\t}\n}\n";
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ORDER_DELETE_MUTATION = exports.ORDER_UPDATE_MUTATION = exports.ORDER_GET_MANY_QUERY = exports.ORDER_GET_QUERY = exports.ORDER_CREATE_MUTATION = void 0;
|
|
4
|
+
const commonFragments_1 = require("./commonFragments");
|
|
5
|
+
exports.ORDER_CREATE_MUTATION = `
|
|
6
|
+
mutation OrderCreate($order: OrderCreateOrderInput!) {
|
|
7
|
+
orderCreate(order: $order) {
|
|
8
|
+
order {
|
|
9
|
+
id
|
|
10
|
+
name
|
|
11
|
+
email
|
|
12
|
+
displayFinancialStatus
|
|
13
|
+
displayFulfillmentStatus
|
|
14
|
+
updatedAt
|
|
15
|
+
}
|
|
16
|
+
${commonFragments_1.USER_ERRORS_FIELDS}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
`;
|
|
20
|
+
exports.ORDER_GET_QUERY = `
|
|
21
|
+
query OrderGet(
|
|
22
|
+
$id: ID!
|
|
23
|
+
$includeMetafields: Boolean!
|
|
24
|
+
$metafieldsFirst: Int!
|
|
25
|
+
$metafieldKeys: [String!]
|
|
26
|
+
$resolveMetafieldReferences: Boolean!
|
|
27
|
+
$metafieldReferencesFirst: Int!
|
|
28
|
+
) {
|
|
29
|
+
order(id: $id) {
|
|
30
|
+
id
|
|
31
|
+
name
|
|
32
|
+
email
|
|
33
|
+
note
|
|
34
|
+
tags
|
|
35
|
+
displayFinancialStatus
|
|
36
|
+
displayFulfillmentStatus
|
|
37
|
+
updatedAt
|
|
38
|
+
${commonFragments_1.OPTIONAL_METAFIELDS_CONNECTION}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
`;
|
|
42
|
+
exports.ORDER_GET_MANY_QUERY = `
|
|
43
|
+
query OrderGetMany(
|
|
44
|
+
$first: Int!
|
|
45
|
+
$after: String
|
|
46
|
+
$query: String
|
|
47
|
+
$sortKey: OrderSortKeys
|
|
48
|
+
$reverse: Boolean
|
|
49
|
+
$includeMetafields: Boolean!
|
|
50
|
+
$metafieldsFirst: Int!
|
|
51
|
+
$metafieldKeys: [String!]
|
|
52
|
+
$resolveMetafieldReferences: Boolean!
|
|
53
|
+
$metafieldReferencesFirst: Int!
|
|
54
|
+
) {
|
|
55
|
+
orders(first: $first, after: $after, query: $query, sortKey: $sortKey, reverse: $reverse) {
|
|
56
|
+
nodes {
|
|
57
|
+
id
|
|
58
|
+
name
|
|
59
|
+
email
|
|
60
|
+
displayFinancialStatus
|
|
61
|
+
displayFulfillmentStatus
|
|
62
|
+
updatedAt
|
|
63
|
+
${commonFragments_1.OPTIONAL_METAFIELDS_CONNECTION}
|
|
64
|
+
}
|
|
65
|
+
pageInfo {
|
|
66
|
+
hasNextPage
|
|
67
|
+
endCursor
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
`;
|
|
72
|
+
exports.ORDER_UPDATE_MUTATION = `
|
|
73
|
+
mutation OrderUpdate($input: OrderInput!) {
|
|
74
|
+
orderUpdate(input: $input) {
|
|
75
|
+
order {
|
|
76
|
+
id
|
|
77
|
+
name
|
|
78
|
+
email
|
|
79
|
+
note
|
|
80
|
+
tags
|
|
81
|
+
updatedAt
|
|
82
|
+
}
|
|
83
|
+
${commonFragments_1.USER_ERRORS_FIELDS}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
`;
|
|
87
|
+
exports.ORDER_DELETE_MUTATION = `
|
|
88
|
+
mutation OrderDelete($orderId: ID!) {
|
|
89
|
+
orderDelete(orderId: $orderId) {
|
|
90
|
+
deletedId
|
|
91
|
+
${commonFragments_1.USER_ERRORS_FIELDS}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
`;
|
|
95
|
+
//# sourceMappingURL=order.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"order.js","sourceRoot":"","sources":["../../../../../../nodes/ShopifyCustom/shared/graphql/templates/order.ts"],"names":[],"mappings":";;;AAAA,uDAAuF;AAE1E,QAAA,qBAAqB,GAAG;;;;;;;;;;;IAWjC,oCAAkB;;;CAGrB,CAAC;AAEW,QAAA,eAAe,GAAG;;;;;;;;;;;;;;;;;;IAkB3B,gDAA8B;;;CAGjC,CAAC;AAEW,QAAA,oBAAoB,GAAG;;;;;;;;;;;;;;;;;;;;;KAqB/B,gDAA8B;;;;;;;;CAQlC,CAAC;AAEW,QAAA,qBAAqB,GAAG;;;;;;;;;;;IAWjC,oCAAkB;;;CAGrB,CAAC;AAEW,QAAA,qBAAqB,GAAG;;;;IAIjC,oCAAkB;;;CAGrB,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const PRODUCT_CREATE_MUTATION = "\nmutation ProductCreate($product: ProductCreateInput!) {\n\tproductCreate(product: $product) {\n\t\tproduct {\n\t\t\tid\n\t\t\ttitle\n\t\t\thandle\n\t\t\tstatus\n\t\t\tseo {\n\t\t\t\t\n\ttitle\n\tdescription\n\n\t\t\t}\n\t\t\tupdatedAt\n\t\t}\n\t\t\n\tuserErrors {\n\t\tfield\n\t\tmessage\n\t}\n\n\t}\n}\n";
|
|
2
|
+
export declare const PRODUCT_GET_QUERY = "\nquery ProductGet(\n\t$id: ID!\n\t$includeMetafields: Boolean!\n\t$metafieldsFirst: Int!\n\t$metafieldKeys: [String!]\n\t$resolveMetafieldReferences: Boolean!\n\t$metafieldReferencesFirst: Int!\n) {\n\tproduct(id: $id) {\n\t\tid\n\t\ttitle\n\t\thandle\n\t\tstatus\n\t\tdescriptionHtml\n\t\tvendor\n\t\tproductType\n\t\ttags\n\t\tseo {\n\t\t\t\n\ttitle\n\tdescription\n\n\t\t}\n\t\tupdatedAt\n\t\t\n\tmetafields(first: $metafieldsFirst, keys: $metafieldKeys) @include(if: $includeMetafields) {\n\t\tnodes {\n\t\t\t\n\tid\n\tnamespace\n\tkey\n\ttype\n\tvalue\n\tcompareDigest\n\tupdatedAt\n\n\t\t\t\n\treference @include(if: $resolveMetafieldReferences) {\n\t\t\n\t__typename\n\t... on Node {\n\t\tid\n\t}\n\t... on Metaobject {\n\t\ttype\n\t\thandle\n\t\tdisplayName\n\t\tfields {\n\t\t\tkey\n\t\t\ttype\n\t\t\tvalue\n\t\t\tjsonValue\n\t\t}\n\t}\n\n\t}\n\treferences(first: $metafieldReferencesFirst) @include(if: $resolveMetafieldReferences) {\n\t\tnodes {\n\t\t\t\n\t__typename\n\t... on Node {\n\t\tid\n\t}\n\t... on Metaobject {\n\t\ttype\n\t\thandle\n\t\tdisplayName\n\t\tfields {\n\t\t\tkey\n\t\t\ttype\n\t\t\tvalue\n\t\t\tjsonValue\n\t\t}\n\t}\n\n\t\t}\n\t}\n\n\t\t}\n\t}\n\n\t}\n}\n";
|
|
3
|
+
export declare const PRODUCT_GET_MANY_QUERY = "\nquery ProductGetMany(\n\t$first: Int!\n\t$after: String\n\t$query: String\n\t$sortKey: ProductSortKeys\n\t$reverse: Boolean\n\t$includeMetafields: Boolean!\n\t$metafieldsFirst: Int!\n\t$metafieldKeys: [String!]\n\t$resolveMetafieldReferences: Boolean!\n\t$metafieldReferencesFirst: Int!\n) {\n\tproducts(first: $first, after: $after, query: $query, sortKey: $sortKey, reverse: $reverse) {\n\t\tnodes {\n\t\t\tid\n\t\t\ttitle\n\t\t\thandle\n\t\t\tstatus\n\t\t\tvendor\n\t\t\tproductType\n\t\t\tseo {\n\t\t\t\t\n\ttitle\n\tdescription\n\n\t\t\t}\n\t\t\tupdatedAt\n\t\t\t\n\tmetafields(first: $metafieldsFirst, keys: $metafieldKeys) @include(if: $includeMetafields) {\n\t\tnodes {\n\t\t\t\n\tid\n\tnamespace\n\tkey\n\ttype\n\tvalue\n\tcompareDigest\n\tupdatedAt\n\n\t\t\t\n\treference @include(if: $resolveMetafieldReferences) {\n\t\t\n\t__typename\n\t... on Node {\n\t\tid\n\t}\n\t... on Metaobject {\n\t\ttype\n\t\thandle\n\t\tdisplayName\n\t\tfields {\n\t\t\tkey\n\t\t\ttype\n\t\t\tvalue\n\t\t\tjsonValue\n\t\t}\n\t}\n\n\t}\n\treferences(first: $metafieldReferencesFirst) @include(if: $resolveMetafieldReferences) {\n\t\tnodes {\n\t\t\t\n\t__typename\n\t... on Node {\n\t\tid\n\t}\n\t... on Metaobject {\n\t\ttype\n\t\thandle\n\t\tdisplayName\n\t\tfields {\n\t\t\tkey\n\t\t\ttype\n\t\t\tvalue\n\t\t\tjsonValue\n\t\t}\n\t}\n\n\t\t}\n\t}\n\n\t\t}\n\t}\n\n\t\t}\n\t\tpageInfo {\n\t\t\thasNextPage\n\t\t\tendCursor\n\t\t}\n\t}\n}\n";
|
|
4
|
+
export declare const PRODUCT_UPDATE_MUTATION = "\nmutation ProductUpdate($product: ProductUpdateInput!) {\n\tproductUpdate(product: $product) {\n\t\tproduct {\n\t\t\tid\n\t\t\ttitle\n\t\t\thandle\n\t\t\tstatus\n\t\t\tseo {\n\t\t\t\t\n\ttitle\n\tdescription\n\n\t\t\t}\n\t\t\tupdatedAt\n\t\t}\n\t\t\n\tuserErrors {\n\t\tfield\n\t\tmessage\n\t}\n\n\t}\n}\n";
|
|
5
|
+
export declare const PRODUCT_DELETE_MUTATION = "\nmutation ProductDelete($input: ProductDeleteInput!) {\n\tproductDelete(input: $input) {\n\t\tdeletedProductId\n\t\t\n\tuserErrors {\n\t\tfield\n\t\tmessage\n\t}\n\n\t}\n}\n";
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PRODUCT_DELETE_MUTATION = exports.PRODUCT_UPDATE_MUTATION = exports.PRODUCT_GET_MANY_QUERY = exports.PRODUCT_GET_QUERY = exports.PRODUCT_CREATE_MUTATION = void 0;
|
|
4
|
+
const commonFragments_1 = require("./commonFragments");
|
|
5
|
+
exports.PRODUCT_CREATE_MUTATION = `
|
|
6
|
+
mutation ProductCreate($product: ProductCreateInput!) {
|
|
7
|
+
productCreate(product: $product) {
|
|
8
|
+
product {
|
|
9
|
+
id
|
|
10
|
+
title
|
|
11
|
+
handle
|
|
12
|
+
status
|
|
13
|
+
seo {
|
|
14
|
+
${commonFragments_1.SEO_FIELDS}
|
|
15
|
+
}
|
|
16
|
+
updatedAt
|
|
17
|
+
}
|
|
18
|
+
${commonFragments_1.USER_ERRORS_FIELDS}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
`;
|
|
22
|
+
exports.PRODUCT_GET_QUERY = `
|
|
23
|
+
query ProductGet(
|
|
24
|
+
$id: ID!
|
|
25
|
+
$includeMetafields: Boolean!
|
|
26
|
+
$metafieldsFirst: Int!
|
|
27
|
+
$metafieldKeys: [String!]
|
|
28
|
+
$resolveMetafieldReferences: Boolean!
|
|
29
|
+
$metafieldReferencesFirst: Int!
|
|
30
|
+
) {
|
|
31
|
+
product(id: $id) {
|
|
32
|
+
id
|
|
33
|
+
title
|
|
34
|
+
handle
|
|
35
|
+
status
|
|
36
|
+
descriptionHtml
|
|
37
|
+
vendor
|
|
38
|
+
productType
|
|
39
|
+
tags
|
|
40
|
+
seo {
|
|
41
|
+
${commonFragments_1.SEO_FIELDS}
|
|
42
|
+
}
|
|
43
|
+
updatedAt
|
|
44
|
+
${commonFragments_1.OPTIONAL_METAFIELDS_CONNECTION}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
`;
|
|
48
|
+
exports.PRODUCT_GET_MANY_QUERY = `
|
|
49
|
+
query ProductGetMany(
|
|
50
|
+
$first: Int!
|
|
51
|
+
$after: String
|
|
52
|
+
$query: String
|
|
53
|
+
$sortKey: ProductSortKeys
|
|
54
|
+
$reverse: Boolean
|
|
55
|
+
$includeMetafields: Boolean!
|
|
56
|
+
$metafieldsFirst: Int!
|
|
57
|
+
$metafieldKeys: [String!]
|
|
58
|
+
$resolveMetafieldReferences: Boolean!
|
|
59
|
+
$metafieldReferencesFirst: Int!
|
|
60
|
+
) {
|
|
61
|
+
products(first: $first, after: $after, query: $query, sortKey: $sortKey, reverse: $reverse) {
|
|
62
|
+
nodes {
|
|
63
|
+
id
|
|
64
|
+
title
|
|
65
|
+
handle
|
|
66
|
+
status
|
|
67
|
+
vendor
|
|
68
|
+
productType
|
|
69
|
+
seo {
|
|
70
|
+
${commonFragments_1.SEO_FIELDS}
|
|
71
|
+
}
|
|
72
|
+
updatedAt
|
|
73
|
+
${commonFragments_1.OPTIONAL_METAFIELDS_CONNECTION}
|
|
74
|
+
}
|
|
75
|
+
pageInfo {
|
|
76
|
+
hasNextPage
|
|
77
|
+
endCursor
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
`;
|
|
82
|
+
exports.PRODUCT_UPDATE_MUTATION = `
|
|
83
|
+
mutation ProductUpdate($product: ProductUpdateInput!) {
|
|
84
|
+
productUpdate(product: $product) {
|
|
85
|
+
product {
|
|
86
|
+
id
|
|
87
|
+
title
|
|
88
|
+
handle
|
|
89
|
+
status
|
|
90
|
+
seo {
|
|
91
|
+
${commonFragments_1.SEO_FIELDS}
|
|
92
|
+
}
|
|
93
|
+
updatedAt
|
|
94
|
+
}
|
|
95
|
+
${commonFragments_1.USER_ERRORS_FIELDS}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
`;
|
|
99
|
+
exports.PRODUCT_DELETE_MUTATION = `
|
|
100
|
+
mutation ProductDelete($input: ProductDeleteInput!) {
|
|
101
|
+
productDelete(input: $input) {
|
|
102
|
+
deletedProductId
|
|
103
|
+
${commonFragments_1.USER_ERRORS_FIELDS}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
`;
|
|
107
|
+
//# sourceMappingURL=product.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product.js","sourceRoot":"","sources":["../../../../../../nodes/ShopifyCustom/shared/graphql/templates/product.ts"],"names":[],"mappings":";;;AAAA,uDAAmG;AAEtF,QAAA,uBAAuB,GAAG;;;;;;;;;MASjC,4BAAU;;;;IAIZ,oCAAkB;;;CAGrB,CAAC;AAEW,QAAA,iBAAiB,GAAG;;;;;;;;;;;;;;;;;;;KAmB5B,4BAAU;;;IAGX,gDAA8B;;;CAGjC,CAAC;AAEW,QAAA,sBAAsB,GAAG;;;;;;;;;;;;;;;;;;;;;;MAsBhC,4BAAU;;;KAGX,gDAA8B;;;;;;;;CAQlC,CAAC;AAEW,QAAA,uBAAuB,GAAG;;;;;;;;;MASjC,4BAAU;;;;IAIZ,oCAAkB;;;CAGrB,CAAC;AAEW,QAAA,uBAAuB,GAAG;;;;IAInC,oCAAkB;;;CAGrB,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const PRODUCT_VARIANT_CREATE_MUTATION = "\nmutation ProductVariantCreate($productId: ID!, $variants: [ProductVariantsBulkInput!]!) {\n\tproductVariantsBulkCreate(productId: $productId, variants: $variants) {\n\t\tproductVariants {\n\t\t\tid\n\t\t\ttitle\n\t\t\tsku\n\t\t\tprice\n\t\t\tupdatedAt\n\t\t}\n\t\t\n\tuserErrors {\n\t\tfield\n\t\tmessage\n\t}\n\n\t}\n}\n";
|
|
2
|
+
export declare const PRODUCT_VARIANT_GET_QUERY = "\nquery ProductVariantGet(\n\t$id: ID!\n\t$includeMetafields: Boolean!\n\t$metafieldsFirst: Int!\n\t$metafieldKeys: [String!]\n\t$resolveMetafieldReferences: Boolean!\n\t$metafieldReferencesFirst: Int!\n) {\n\tproductVariant(id: $id) {\n\t\tid\n\t\ttitle\n\t\tsku\n\t\tbarcode\n\t\tprice\n\t\tcompareAtPrice\n\t\ttaxable\n\t\tupdatedAt\n\t\t\n\tmetafields(first: $metafieldsFirst, keys: $metafieldKeys) @include(if: $includeMetafields) {\n\t\tnodes {\n\t\t\t\n\tid\n\tnamespace\n\tkey\n\ttype\n\tvalue\n\tcompareDigest\n\tupdatedAt\n\n\t\t\t\n\treference @include(if: $resolveMetafieldReferences) {\n\t\t\n\t__typename\n\t... on Node {\n\t\tid\n\t}\n\t... on Metaobject {\n\t\ttype\n\t\thandle\n\t\tdisplayName\n\t\tfields {\n\t\t\tkey\n\t\t\ttype\n\t\t\tvalue\n\t\t\tjsonValue\n\t\t}\n\t}\n\n\t}\n\treferences(first: $metafieldReferencesFirst) @include(if: $resolveMetafieldReferences) {\n\t\tnodes {\n\t\t\t\n\t__typename\n\t... on Node {\n\t\tid\n\t}\n\t... on Metaobject {\n\t\ttype\n\t\thandle\n\t\tdisplayName\n\t\tfields {\n\t\t\tkey\n\t\t\ttype\n\t\t\tvalue\n\t\t\tjsonValue\n\t\t}\n\t}\n\n\t\t}\n\t}\n\n\t\t}\n\t}\n\n\t}\n}\n";
|
|
3
|
+
export declare const PRODUCT_VARIANT_GET_MANY_QUERY = "\nquery ProductVariantGetMany(\n\t$first: Int!\n\t$after: String\n\t$query: String\n\t$sortKey: ProductVariantSortKeys\n\t$reverse: Boolean\n\t$includeMetafields: Boolean!\n\t$metafieldsFirst: Int!\n\t$metafieldKeys: [String!]\n\t$resolveMetafieldReferences: Boolean!\n\t$metafieldReferencesFirst: Int!\n) {\n\tproductVariants(first: $first, after: $after, query: $query, sortKey: $sortKey, reverse: $reverse) {\n\t\tnodes {\n\t\t\tid\n\t\t\ttitle\n\t\t\tsku\n\t\t\tprice\n\t\t\tupdatedAt\n\t\t\tproduct {\n\t\t\t\tid\n\t\t\t\ttitle\n\t\t\t}\n\t\t\t\n\tmetafields(first: $metafieldsFirst, keys: $metafieldKeys) @include(if: $includeMetafields) {\n\t\tnodes {\n\t\t\t\n\tid\n\tnamespace\n\tkey\n\ttype\n\tvalue\n\tcompareDigest\n\tupdatedAt\n\n\t\t\t\n\treference @include(if: $resolveMetafieldReferences) {\n\t\t\n\t__typename\n\t... on Node {\n\t\tid\n\t}\n\t... on Metaobject {\n\t\ttype\n\t\thandle\n\t\tdisplayName\n\t\tfields {\n\t\t\tkey\n\t\t\ttype\n\t\t\tvalue\n\t\t\tjsonValue\n\t\t}\n\t}\n\n\t}\n\treferences(first: $metafieldReferencesFirst) @include(if: $resolveMetafieldReferences) {\n\t\tnodes {\n\t\t\t\n\t__typename\n\t... on Node {\n\t\tid\n\t}\n\t... on Metaobject {\n\t\ttype\n\t\thandle\n\t\tdisplayName\n\t\tfields {\n\t\t\tkey\n\t\t\ttype\n\t\t\tvalue\n\t\t\tjsonValue\n\t\t}\n\t}\n\n\t\t}\n\t}\n\n\t\t}\n\t}\n\n\t\t}\n\t\tpageInfo {\n\t\t\thasNextPage\n\t\t\tendCursor\n\t\t}\n\t}\n}\n";
|
|
4
|
+
export declare const PRODUCT_VARIANT_UPDATE_MUTATION = "\nmutation ProductVariantUpdate($productId: ID!, $variants: [ProductVariantsBulkInput!]!) {\n\tproductVariantsBulkUpdate(productId: $productId, variants: $variants) {\n\t\tproductVariants {\n\t\t\tid\n\t\t\ttitle\n\t\t\tsku\n\t\t\tprice\n\t\t\tupdatedAt\n\t\t}\n\t\t\n\tuserErrors {\n\t\tfield\n\t\tmessage\n\t}\n\n\t}\n}\n";
|
|
5
|
+
export declare const PRODUCT_VARIANT_DELETE_MUTATION = "\nmutation ProductVariantDelete($productId: ID!, $variantsIds: [ID!]!) {\n\tproductVariantsBulkDelete(productId: $productId, variantsIds: $variantsIds) {\n\t\tproduct {\n\t\t\tid\n\t\t\ttitle\n\t\t}\n\t\t\n\tuserErrors {\n\t\tfield\n\t\tmessage\n\t}\n\n\t}\n}\n";
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PRODUCT_VARIANT_DELETE_MUTATION = exports.PRODUCT_VARIANT_UPDATE_MUTATION = exports.PRODUCT_VARIANT_GET_MANY_QUERY = exports.PRODUCT_VARIANT_GET_QUERY = exports.PRODUCT_VARIANT_CREATE_MUTATION = void 0;
|
|
4
|
+
const commonFragments_1 = require("./commonFragments");
|
|
5
|
+
exports.PRODUCT_VARIANT_CREATE_MUTATION = `
|
|
6
|
+
mutation ProductVariantCreate($productId: ID!, $variants: [ProductVariantsBulkInput!]!) {
|
|
7
|
+
productVariantsBulkCreate(productId: $productId, variants: $variants) {
|
|
8
|
+
productVariants {
|
|
9
|
+
id
|
|
10
|
+
title
|
|
11
|
+
sku
|
|
12
|
+
price
|
|
13
|
+
updatedAt
|
|
14
|
+
}
|
|
15
|
+
${commonFragments_1.USER_ERRORS_FIELDS}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
`;
|
|
19
|
+
exports.PRODUCT_VARIANT_GET_QUERY = `
|
|
20
|
+
query ProductVariantGet(
|
|
21
|
+
$id: ID!
|
|
22
|
+
$includeMetafields: Boolean!
|
|
23
|
+
$metafieldsFirst: Int!
|
|
24
|
+
$metafieldKeys: [String!]
|
|
25
|
+
$resolveMetafieldReferences: Boolean!
|
|
26
|
+
$metafieldReferencesFirst: Int!
|
|
27
|
+
) {
|
|
28
|
+
productVariant(id: $id) {
|
|
29
|
+
id
|
|
30
|
+
title
|
|
31
|
+
sku
|
|
32
|
+
barcode
|
|
33
|
+
price
|
|
34
|
+
compareAtPrice
|
|
35
|
+
taxable
|
|
36
|
+
updatedAt
|
|
37
|
+
${commonFragments_1.OPTIONAL_METAFIELDS_CONNECTION}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
`;
|
|
41
|
+
exports.PRODUCT_VARIANT_GET_MANY_QUERY = `
|
|
42
|
+
query ProductVariantGetMany(
|
|
43
|
+
$first: Int!
|
|
44
|
+
$after: String
|
|
45
|
+
$query: String
|
|
46
|
+
$sortKey: ProductVariantSortKeys
|
|
47
|
+
$reverse: Boolean
|
|
48
|
+
$includeMetafields: Boolean!
|
|
49
|
+
$metafieldsFirst: Int!
|
|
50
|
+
$metafieldKeys: [String!]
|
|
51
|
+
$resolveMetafieldReferences: Boolean!
|
|
52
|
+
$metafieldReferencesFirst: Int!
|
|
53
|
+
) {
|
|
54
|
+
productVariants(first: $first, after: $after, query: $query, sortKey: $sortKey, reverse: $reverse) {
|
|
55
|
+
nodes {
|
|
56
|
+
id
|
|
57
|
+
title
|
|
58
|
+
sku
|
|
59
|
+
price
|
|
60
|
+
updatedAt
|
|
61
|
+
product {
|
|
62
|
+
id
|
|
63
|
+
title
|
|
64
|
+
}
|
|
65
|
+
${commonFragments_1.OPTIONAL_METAFIELDS_CONNECTION}
|
|
66
|
+
}
|
|
67
|
+
pageInfo {
|
|
68
|
+
hasNextPage
|
|
69
|
+
endCursor
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
`;
|
|
74
|
+
exports.PRODUCT_VARIANT_UPDATE_MUTATION = `
|
|
75
|
+
mutation ProductVariantUpdate($productId: ID!, $variants: [ProductVariantsBulkInput!]!) {
|
|
76
|
+
productVariantsBulkUpdate(productId: $productId, variants: $variants) {
|
|
77
|
+
productVariants {
|
|
78
|
+
id
|
|
79
|
+
title
|
|
80
|
+
sku
|
|
81
|
+
price
|
|
82
|
+
updatedAt
|
|
83
|
+
}
|
|
84
|
+
${commonFragments_1.USER_ERRORS_FIELDS}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
`;
|
|
88
|
+
exports.PRODUCT_VARIANT_DELETE_MUTATION = `
|
|
89
|
+
mutation ProductVariantDelete($productId: ID!, $variantsIds: [ID!]!) {
|
|
90
|
+
productVariantsBulkDelete(productId: $productId, variantsIds: $variantsIds) {
|
|
91
|
+
product {
|
|
92
|
+
id
|
|
93
|
+
title
|
|
94
|
+
}
|
|
95
|
+
${commonFragments_1.USER_ERRORS_FIELDS}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
`;
|
|
99
|
+
//# sourceMappingURL=productVariant.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"productVariant.js","sourceRoot":"","sources":["../../../../../../nodes/ShopifyCustom/shared/graphql/templates/productVariant.ts"],"names":[],"mappings":";;;AAAA,uDAAuF;AAE1E,QAAA,+BAA+B,GAAG;;;;;;;;;;IAU3C,oCAAkB;;;CAGrB,CAAC;AAEW,QAAA,yBAAyB,GAAG;;;;;;;;;;;;;;;;;;IAkBrC,gDAA8B;;;CAGjC,CAAC;AAEW,QAAA,8BAA8B,GAAG;;;;;;;;;;;;;;;;;;;;;;;;KAwBzC,gDAA8B;;;;;;;;CAQlC,CAAC;AAEW,QAAA,+BAA+B,GAAG;;;;;;;;;;IAU3C,oCAAkB;;;CAGrB,CAAC;AAEW,QAAA,+BAA+B,GAAG;;;;;;;IAO3C,oCAAkB;;;CAGrB,CAAC"}
|