@vendure/core 3.2.0 → 3.2.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.
- package/LICENSE.md +42 -42
- package/README.md +11 -11
- package/dist/api/config/generate-error-code-enum.js +3 -3
- package/dist/api/config/generate-permissions.js +29 -29
- package/dist/api/config/graphql-custom-fields.js +158 -158
- package/dist/api/schema/admin-api/administrator.api.graphql +47 -47
- package/dist/api/schema/admin-api/administrator.type.graphql +14 -14
- package/dist/api/schema/admin-api/asset.api.graphql +68 -68
- package/dist/api/schema/admin-api/auth.api.graphql +22 -22
- package/dist/api/schema/admin-api/channel.api.graphql +69 -69
- package/dist/api/schema/admin-api/collection-admin.type.graphql +4 -4
- package/dist/api/schema/admin-api/collection.api.graphql +94 -94
- package/dist/api/schema/admin-api/country.api.graphql +41 -41
- package/dist/api/schema/admin-api/customer-admin.type.graphql +4 -4
- package/dist/api/schema/admin-api/customer-group.api.graphql +37 -37
- package/dist/api/schema/admin-api/customer.api.graphql +63 -63
- package/dist/api/schema/admin-api/duplicate-entity.api.graphql +40 -40
- package/dist/api/schema/admin-api/facet-admin.type.graphql +3 -3
- package/dist/api/schema/admin-api/facet.api.graphql +100 -100
- package/dist/api/schema/admin-api/global-settings.api.graphql +26 -26
- package/dist/api/schema/admin-api/global-settings.type.graphql +28 -28
- package/dist/api/schema/admin-api/history-entry-admin.type.graphql +4 -4
- package/dist/api/schema/admin-api/import.api.graphql +3 -3
- package/dist/api/schema/admin-api/import.type.graphql +5 -5
- package/dist/api/schema/admin-api/job.api.graphql +63 -63
- package/dist/api/schema/admin-api/order-admin.type.graphql +37 -37
- package/dist/api/schema/admin-api/order.api.graphql +463 -463
- package/dist/api/schema/admin-api/payment-method.api.graphql +65 -65
- package/dist/api/schema/admin-api/payment.api.graphql +2 -2
- package/dist/api/schema/admin-api/product-admin.type.graphql +21 -21
- package/dist/api/schema/admin-api/product-option-group.api.graphql +58 -58
- package/dist/api/schema/admin-api/product-search-admin.type.graphql +5 -5
- package/dist/api/schema/admin-api/product-search.api.graphql +10 -10
- package/dist/api/schema/admin-api/product.api.graphql +225 -225
- package/dist/api/schema/admin-api/promotion.api.graphql +70 -70
- package/dist/api/schema/admin-api/province.api.graphql +37 -37
- package/dist/api/schema/admin-api/role.api.graphql +33 -33
- package/dist/api/schema/admin-api/seller.api.graphql +31 -31
- package/dist/api/schema/admin-api/shipping-method.api.graphql +91 -91
- package/dist/api/schema/admin-api/stock-level.type.graphql +9 -9
- package/dist/api/schema/admin-api/stock-location.api.graphql +51 -51
- package/dist/api/schema/admin-api/stock-location.type.graphql +7 -7
- package/dist/api/schema/admin-api/stock-movement.type.graphql +80 -80
- package/dist/api/schema/admin-api/tag.api.graphql +25 -25
- package/dist/api/schema/admin-api/tax-category.api.graphql +36 -36
- package/dist/api/schema/admin-api/tax-rate.api.graphql +37 -37
- package/dist/api/schema/admin-api/zone.api.graphql +42 -42
- package/dist/api/schema/common/address.type.graphql +16 -16
- package/dist/api/schema/common/asset.type.graphql +31 -31
- package/dist/api/schema/common/auth.type.graphql +12 -12
- package/dist/api/schema/common/channel.type.graphql +24 -24
- package/dist/api/schema/common/collection.type.graphql +40 -40
- package/dist/api/schema/common/common-enums.graphql +35 -35
- package/dist/api/schema/common/common-error-results.graphql +107 -107
- package/dist/api/schema/common/common-types.graphql +285 -285
- package/dist/api/schema/common/currency-code.graphql +322 -322
- package/dist/api/schema/common/custom-field-types.graphql +265 -265
- package/dist/api/schema/common/customer-group.type.graphql +10 -10
- package/dist/api/schema/common/customer.type.graphql +18 -18
- package/dist/api/schema/common/facet-value.type.graphql +19 -19
- package/dist/api/schema/common/facet.type.graphql +35 -35
- package/dist/api/schema/common/history-entry.type.graphql +43 -43
- package/dist/api/schema/common/language-code.graphql +325 -325
- package/dist/api/schema/common/order.type.graphql +257 -257
- package/dist/api/schema/common/payment-method.type.graphql +21 -21
- package/dist/api/schema/common/product-option-group.type.graphql +38 -38
- package/dist/api/schema/common/product-search.type.graphql +69 -69
- package/dist/api/schema/common/product.type.graphql +70 -70
- package/dist/api/schema/common/promotion.type.graphql +31 -31
- package/dist/api/schema/common/region.type.graphql +65 -65
- package/dist/api/schema/common/role.type.graphql +14 -14
- package/dist/api/schema/common/seller.type.graphql +6 -6
- package/dist/api/schema/common/shipping-method.type.graphql +27 -27
- package/dist/api/schema/common/tag.type.graphql +11 -11
- package/dist/api/schema/common/tax-category.type.graphql +7 -7
- package/dist/api/schema/common/tax-rate.type.graphql +16 -16
- package/dist/api/schema/common/user.type.graphql +17 -17
- package/dist/api/schema/common/zone.type.graphql +8 -8
- package/dist/api/schema/shop-api/shop-error-results.graphql +114 -114
- package/dist/api/schema/shop-api/shop.api.graphql +287 -287
- package/dist/config/auth/native-authentication-strategy.js +5 -5
- package/dist/i18n/messages/de.json +117 -117
- package/dist/i18n/messages/en.json +140 -140
- package/dist/i18n/messages/es.json +38 -38
- package/dist/i18n/messages/fr.json +138 -138
- package/dist/i18n/messages/pt_BR.json +99 -99
- package/dist/i18n/messages/pt_PT.json +118 -118
- package/dist/i18n/messages/ru.json +118 -118
- package/dist/i18n/messages/uk.json +118 -118
- package/dist/migrate.js +15 -15
- package/dist/plugin/default-search-plugin/api/api-extensions.js +8 -8
- package/dist/plugin/default-search-plugin/search-strategy/mysql-search-strategy.js +3 -3
- package/dist/plugin/default-search-plugin/search-strategy/postgres-search-strategy.js +5 -5
- package/dist/plugin/default-search-plugin/search-strategy/sqlite-search-strategy.js +4 -4
- package/package.json +4 -4
- package/cli/cli-utils.d.ts +0 -1
- package/cli/cli-utils.js +0 -8
- package/cli/cli-utils.js.map +0 -1
- package/cli/vendure-cli.d.ts +0 -2
- package/cli/vendure-cli.js +0 -119
- package/cli/vendure-cli.js.map +0 -1
|
@@ -1,225 +1,225 @@
|
|
|
1
|
-
type Query {
|
|
2
|
-
"List Products"
|
|
3
|
-
products(options: ProductListOptions): ProductList!
|
|
4
|
-
"Get a Product either by id or slug. If neither id nor slug is specified, an error will result."
|
|
5
|
-
product(id: ID, slug: String): Product
|
|
6
|
-
"List ProductVariants either all or for the specific product."
|
|
7
|
-
productVariants(options: ProductVariantListOptions, productId: ID): ProductVariantList!
|
|
8
|
-
"Get a ProductVariant by id"
|
|
9
|
-
productVariant(id: ID!): ProductVariant
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
type Mutation {
|
|
13
|
-
"Create a new Product"
|
|
14
|
-
createProduct(input: CreateProductInput!): Product!
|
|
15
|
-
|
|
16
|
-
"Update an existing Product"
|
|
17
|
-
updateProduct(input: UpdateProductInput!): Product!
|
|
18
|
-
|
|
19
|
-
"Update multiple existing Products"
|
|
20
|
-
updateProducts(input: [UpdateProductInput!]!): [Product!]!
|
|
21
|
-
|
|
22
|
-
"Delete a Product"
|
|
23
|
-
deleteProduct(id: ID!): DeletionResponse!
|
|
24
|
-
|
|
25
|
-
"Delete multiple Products"
|
|
26
|
-
deleteProducts(ids: [ID!]!): [DeletionResponse!]!
|
|
27
|
-
|
|
28
|
-
"Add an OptionGroup to a Product"
|
|
29
|
-
addOptionGroupToProduct(productId: ID!, optionGroupId: ID!): Product!
|
|
30
|
-
|
|
31
|
-
"""
|
|
32
|
-
Remove an OptionGroup from a Product. If the OptionGroup is in use by any ProductVariants
|
|
33
|
-
the mutation will return a ProductOptionInUseError, and the OptionGroup will not be removed.
|
|
34
|
-
Setting the `force` argument to `true` will override this and remove the OptionGroup anyway,
|
|
35
|
-
as well as removing any of the group's options from the Product's ProductVariants.
|
|
36
|
-
"""
|
|
37
|
-
removeOptionGroupFromProduct(productId: ID!, optionGroupId: ID!, force: Boolean): RemoveOptionGroupFromProductResult!
|
|
38
|
-
|
|
39
|
-
"Create a set of ProductVariants based on the OptionGroups assigned to the given Product"
|
|
40
|
-
createProductVariants(input: [CreateProductVariantInput!]!): [ProductVariant]!
|
|
41
|
-
|
|
42
|
-
"Update existing ProductVariants"
|
|
43
|
-
updateProductVariants(input: [UpdateProductVariantInput!]!): [ProductVariant]!
|
|
44
|
-
|
|
45
|
-
"Update an existing ProductVariant"
|
|
46
|
-
updateProductVariant(input: UpdateProductVariantInput!): ProductVariant!
|
|
47
|
-
|
|
48
|
-
"Delete a ProductVariant"
|
|
49
|
-
deleteProductVariant(id: ID!): DeletionResponse!
|
|
50
|
-
|
|
51
|
-
"Delete multiple ProductVariants"
|
|
52
|
-
deleteProductVariants(ids: [ID!]!): [DeletionResponse!]!
|
|
53
|
-
|
|
54
|
-
"Assigns all ProductVariants of Product to the specified Channel"
|
|
55
|
-
assignProductsToChannel(input: AssignProductsToChannelInput!): [Product!]!
|
|
56
|
-
|
|
57
|
-
"Removes all ProductVariants of Product from the specified Channel"
|
|
58
|
-
removeProductsFromChannel(input: RemoveProductsFromChannelInput!): [Product!]!
|
|
59
|
-
|
|
60
|
-
"Assigns ProductVariants to the specified Channel"
|
|
61
|
-
assignProductVariantsToChannel(input: AssignProductVariantsToChannelInput!): [ProductVariant!]!
|
|
62
|
-
|
|
63
|
-
"Removes ProductVariants from the specified Channel"
|
|
64
|
-
removeProductVariantsFromChannel(input: RemoveProductVariantsFromChannelInput!): [ProductVariant!]!
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
input StockMovementListOptions {
|
|
68
|
-
type: StockMovementType
|
|
69
|
-
skip: Int
|
|
70
|
-
take: Int
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
# generated by generateListOptions function
|
|
74
|
-
input ProductListOptions
|
|
75
|
-
|
|
76
|
-
input ProductFilterParameter {
|
|
77
|
-
facetValueId: IDOperators
|
|
78
|
-
sku: StringOperators
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
# generated by generateListOptions function
|
|
82
|
-
input ProductVariantListOptions
|
|
83
|
-
|
|
84
|
-
input ProductVariantFilterParameter {
|
|
85
|
-
facetValueId: IDOperators
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
input ProductTranslationInput {
|
|
89
|
-
id: ID
|
|
90
|
-
languageCode: LanguageCode!
|
|
91
|
-
name: String
|
|
92
|
-
slug: String
|
|
93
|
-
description: String
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
input CreateProductInput {
|
|
97
|
-
featuredAssetId: ID
|
|
98
|
-
enabled: Boolean
|
|
99
|
-
assetIds: [ID!]
|
|
100
|
-
facetValueIds: [ID!]
|
|
101
|
-
translations: [ProductTranslationInput!]!
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
input UpdateProductInput {
|
|
105
|
-
id: ID!
|
|
106
|
-
enabled: Boolean
|
|
107
|
-
featuredAssetId: ID
|
|
108
|
-
assetIds: [ID!]
|
|
109
|
-
facetValueIds: [ID!]
|
|
110
|
-
translations: [ProductTranslationInput!]
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
input ProductVariantTranslationInput {
|
|
114
|
-
id: ID
|
|
115
|
-
languageCode: LanguageCode!
|
|
116
|
-
name: String
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
input ProductOptionTranslationInput {
|
|
120
|
-
id: ID
|
|
121
|
-
languageCode: LanguageCode!
|
|
122
|
-
name: String
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
input CreateProductVariantOptionInput {
|
|
126
|
-
optionGroupId: ID!
|
|
127
|
-
code: String!
|
|
128
|
-
translations: [ProductOptionTranslationInput!]!
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
input StockLevelInput {
|
|
132
|
-
stockLocationId: ID!
|
|
133
|
-
stockOnHand: Int!
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
input CreateProductVariantPriceInput {
|
|
138
|
-
currencyCode: CurrencyCode!
|
|
139
|
-
price: Money!
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
"""
|
|
143
|
-
Used to set up update the price of a ProductVariant in a particular Channel.
|
|
144
|
-
If the `delete` flag is `true`, the price will be deleted for the given Channel.
|
|
145
|
-
"""
|
|
146
|
-
input UpdateProductVariantPriceInput {
|
|
147
|
-
currencyCode: CurrencyCode!
|
|
148
|
-
price: Money!
|
|
149
|
-
delete: Boolean
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
input CreateProductVariantInput {
|
|
153
|
-
productId: ID!
|
|
154
|
-
enabled: Boolean
|
|
155
|
-
translations: [ProductVariantTranslationInput!]!
|
|
156
|
-
facetValueIds: [ID!]
|
|
157
|
-
sku: String!
|
|
158
|
-
price: Money
|
|
159
|
-
prices: [CreateProductVariantPriceInput]
|
|
160
|
-
taxCategoryId: ID
|
|
161
|
-
optionIds: [ID!]
|
|
162
|
-
featuredAssetId: ID
|
|
163
|
-
assetIds: [ID!]
|
|
164
|
-
stockOnHand: Int
|
|
165
|
-
stockLevels: [StockLevelInput!]
|
|
166
|
-
outOfStockThreshold: Int
|
|
167
|
-
useGlobalOutOfStockThreshold: Boolean
|
|
168
|
-
trackInventory: GlobalFlag
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
input UpdateProductVariantInput {
|
|
172
|
-
id: ID!
|
|
173
|
-
enabled: Boolean
|
|
174
|
-
translations: [ProductVariantTranslationInput!]
|
|
175
|
-
facetValueIds: [ID!]
|
|
176
|
-
optionIds: [ID!]
|
|
177
|
-
sku: String
|
|
178
|
-
taxCategoryId: ID
|
|
179
|
-
"""
|
|
180
|
-
Sets the price for the ProductVariant in the Channel's default currency
|
|
181
|
-
"""
|
|
182
|
-
price: Money
|
|
183
|
-
"""
|
|
184
|
-
Allows multiple prices to be set for the ProductVariant in different currencies.
|
|
185
|
-
"""
|
|
186
|
-
prices: [UpdateProductVariantPriceInput!]
|
|
187
|
-
featuredAssetId: ID
|
|
188
|
-
assetIds: [ID!]
|
|
189
|
-
stockOnHand: Int
|
|
190
|
-
stockLevels: [StockLevelInput!]
|
|
191
|
-
outOfStockThreshold: Int
|
|
192
|
-
useGlobalOutOfStockThreshold: Boolean
|
|
193
|
-
trackInventory: GlobalFlag
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
input AssignProductsToChannelInput {
|
|
197
|
-
productIds: [ID!]!
|
|
198
|
-
channelId: ID!
|
|
199
|
-
priceFactor: Float
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
input RemoveProductsFromChannelInput {
|
|
203
|
-
productIds: [ID!]!
|
|
204
|
-
channelId: ID!
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
input AssignProductVariantsToChannelInput {
|
|
208
|
-
productVariantIds: [ID!]!
|
|
209
|
-
channelId: ID!
|
|
210
|
-
priceFactor: Float
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
input RemoveProductVariantsFromChannelInput {
|
|
214
|
-
productVariantIds: [ID!]!
|
|
215
|
-
channelId: ID!
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
type ProductOptionInUseError implements ErrorResult {
|
|
219
|
-
errorCode: ErrorCode!
|
|
220
|
-
message: String!
|
|
221
|
-
optionGroupCode: String!
|
|
222
|
-
productVariantCount: Int!
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
union RemoveOptionGroupFromProductResult = Product | ProductOptionInUseError
|
|
1
|
+
type Query {
|
|
2
|
+
"List Products"
|
|
3
|
+
products(options: ProductListOptions): ProductList!
|
|
4
|
+
"Get a Product either by id or slug. If neither id nor slug is specified, an error will result."
|
|
5
|
+
product(id: ID, slug: String): Product
|
|
6
|
+
"List ProductVariants either all or for the specific product."
|
|
7
|
+
productVariants(options: ProductVariantListOptions, productId: ID): ProductVariantList!
|
|
8
|
+
"Get a ProductVariant by id"
|
|
9
|
+
productVariant(id: ID!): ProductVariant
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
type Mutation {
|
|
13
|
+
"Create a new Product"
|
|
14
|
+
createProduct(input: CreateProductInput!): Product!
|
|
15
|
+
|
|
16
|
+
"Update an existing Product"
|
|
17
|
+
updateProduct(input: UpdateProductInput!): Product!
|
|
18
|
+
|
|
19
|
+
"Update multiple existing Products"
|
|
20
|
+
updateProducts(input: [UpdateProductInput!]!): [Product!]!
|
|
21
|
+
|
|
22
|
+
"Delete a Product"
|
|
23
|
+
deleteProduct(id: ID!): DeletionResponse!
|
|
24
|
+
|
|
25
|
+
"Delete multiple Products"
|
|
26
|
+
deleteProducts(ids: [ID!]!): [DeletionResponse!]!
|
|
27
|
+
|
|
28
|
+
"Add an OptionGroup to a Product"
|
|
29
|
+
addOptionGroupToProduct(productId: ID!, optionGroupId: ID!): Product!
|
|
30
|
+
|
|
31
|
+
"""
|
|
32
|
+
Remove an OptionGroup from a Product. If the OptionGroup is in use by any ProductVariants
|
|
33
|
+
the mutation will return a ProductOptionInUseError, and the OptionGroup will not be removed.
|
|
34
|
+
Setting the `force` argument to `true` will override this and remove the OptionGroup anyway,
|
|
35
|
+
as well as removing any of the group's options from the Product's ProductVariants.
|
|
36
|
+
"""
|
|
37
|
+
removeOptionGroupFromProduct(productId: ID!, optionGroupId: ID!, force: Boolean): RemoveOptionGroupFromProductResult!
|
|
38
|
+
|
|
39
|
+
"Create a set of ProductVariants based on the OptionGroups assigned to the given Product"
|
|
40
|
+
createProductVariants(input: [CreateProductVariantInput!]!): [ProductVariant]!
|
|
41
|
+
|
|
42
|
+
"Update existing ProductVariants"
|
|
43
|
+
updateProductVariants(input: [UpdateProductVariantInput!]!): [ProductVariant]!
|
|
44
|
+
|
|
45
|
+
"Update an existing ProductVariant"
|
|
46
|
+
updateProductVariant(input: UpdateProductVariantInput!): ProductVariant!
|
|
47
|
+
|
|
48
|
+
"Delete a ProductVariant"
|
|
49
|
+
deleteProductVariant(id: ID!): DeletionResponse!
|
|
50
|
+
|
|
51
|
+
"Delete multiple ProductVariants"
|
|
52
|
+
deleteProductVariants(ids: [ID!]!): [DeletionResponse!]!
|
|
53
|
+
|
|
54
|
+
"Assigns all ProductVariants of Product to the specified Channel"
|
|
55
|
+
assignProductsToChannel(input: AssignProductsToChannelInput!): [Product!]!
|
|
56
|
+
|
|
57
|
+
"Removes all ProductVariants of Product from the specified Channel"
|
|
58
|
+
removeProductsFromChannel(input: RemoveProductsFromChannelInput!): [Product!]!
|
|
59
|
+
|
|
60
|
+
"Assigns ProductVariants to the specified Channel"
|
|
61
|
+
assignProductVariantsToChannel(input: AssignProductVariantsToChannelInput!): [ProductVariant!]!
|
|
62
|
+
|
|
63
|
+
"Removes ProductVariants from the specified Channel"
|
|
64
|
+
removeProductVariantsFromChannel(input: RemoveProductVariantsFromChannelInput!): [ProductVariant!]!
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
input StockMovementListOptions {
|
|
68
|
+
type: StockMovementType
|
|
69
|
+
skip: Int
|
|
70
|
+
take: Int
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
# generated by generateListOptions function
|
|
74
|
+
input ProductListOptions
|
|
75
|
+
|
|
76
|
+
input ProductFilterParameter {
|
|
77
|
+
facetValueId: IDOperators
|
|
78
|
+
sku: StringOperators
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
# generated by generateListOptions function
|
|
82
|
+
input ProductVariantListOptions
|
|
83
|
+
|
|
84
|
+
input ProductVariantFilterParameter {
|
|
85
|
+
facetValueId: IDOperators
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
input ProductTranslationInput {
|
|
89
|
+
id: ID
|
|
90
|
+
languageCode: LanguageCode!
|
|
91
|
+
name: String
|
|
92
|
+
slug: String
|
|
93
|
+
description: String
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
input CreateProductInput {
|
|
97
|
+
featuredAssetId: ID
|
|
98
|
+
enabled: Boolean
|
|
99
|
+
assetIds: [ID!]
|
|
100
|
+
facetValueIds: [ID!]
|
|
101
|
+
translations: [ProductTranslationInput!]!
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
input UpdateProductInput {
|
|
105
|
+
id: ID!
|
|
106
|
+
enabled: Boolean
|
|
107
|
+
featuredAssetId: ID
|
|
108
|
+
assetIds: [ID!]
|
|
109
|
+
facetValueIds: [ID!]
|
|
110
|
+
translations: [ProductTranslationInput!]
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
input ProductVariantTranslationInput {
|
|
114
|
+
id: ID
|
|
115
|
+
languageCode: LanguageCode!
|
|
116
|
+
name: String
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
input ProductOptionTranslationInput {
|
|
120
|
+
id: ID
|
|
121
|
+
languageCode: LanguageCode!
|
|
122
|
+
name: String
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
input CreateProductVariantOptionInput {
|
|
126
|
+
optionGroupId: ID!
|
|
127
|
+
code: String!
|
|
128
|
+
translations: [ProductOptionTranslationInput!]!
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
input StockLevelInput {
|
|
132
|
+
stockLocationId: ID!
|
|
133
|
+
stockOnHand: Int!
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
input CreateProductVariantPriceInput {
|
|
138
|
+
currencyCode: CurrencyCode!
|
|
139
|
+
price: Money!
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
"""
|
|
143
|
+
Used to set up update the price of a ProductVariant in a particular Channel.
|
|
144
|
+
If the `delete` flag is `true`, the price will be deleted for the given Channel.
|
|
145
|
+
"""
|
|
146
|
+
input UpdateProductVariantPriceInput {
|
|
147
|
+
currencyCode: CurrencyCode!
|
|
148
|
+
price: Money!
|
|
149
|
+
delete: Boolean
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
input CreateProductVariantInput {
|
|
153
|
+
productId: ID!
|
|
154
|
+
enabled: Boolean
|
|
155
|
+
translations: [ProductVariantTranslationInput!]!
|
|
156
|
+
facetValueIds: [ID!]
|
|
157
|
+
sku: String!
|
|
158
|
+
price: Money
|
|
159
|
+
prices: [CreateProductVariantPriceInput]
|
|
160
|
+
taxCategoryId: ID
|
|
161
|
+
optionIds: [ID!]
|
|
162
|
+
featuredAssetId: ID
|
|
163
|
+
assetIds: [ID!]
|
|
164
|
+
stockOnHand: Int
|
|
165
|
+
stockLevels: [StockLevelInput!]
|
|
166
|
+
outOfStockThreshold: Int
|
|
167
|
+
useGlobalOutOfStockThreshold: Boolean
|
|
168
|
+
trackInventory: GlobalFlag
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
input UpdateProductVariantInput {
|
|
172
|
+
id: ID!
|
|
173
|
+
enabled: Boolean
|
|
174
|
+
translations: [ProductVariantTranslationInput!]
|
|
175
|
+
facetValueIds: [ID!]
|
|
176
|
+
optionIds: [ID!]
|
|
177
|
+
sku: String
|
|
178
|
+
taxCategoryId: ID
|
|
179
|
+
"""
|
|
180
|
+
Sets the price for the ProductVariant in the Channel's default currency
|
|
181
|
+
"""
|
|
182
|
+
price: Money
|
|
183
|
+
"""
|
|
184
|
+
Allows multiple prices to be set for the ProductVariant in different currencies.
|
|
185
|
+
"""
|
|
186
|
+
prices: [UpdateProductVariantPriceInput!]
|
|
187
|
+
featuredAssetId: ID
|
|
188
|
+
assetIds: [ID!]
|
|
189
|
+
stockOnHand: Int
|
|
190
|
+
stockLevels: [StockLevelInput!]
|
|
191
|
+
outOfStockThreshold: Int
|
|
192
|
+
useGlobalOutOfStockThreshold: Boolean
|
|
193
|
+
trackInventory: GlobalFlag
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
input AssignProductsToChannelInput {
|
|
197
|
+
productIds: [ID!]!
|
|
198
|
+
channelId: ID!
|
|
199
|
+
priceFactor: Float
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
input RemoveProductsFromChannelInput {
|
|
203
|
+
productIds: [ID!]!
|
|
204
|
+
channelId: ID!
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
input AssignProductVariantsToChannelInput {
|
|
208
|
+
productVariantIds: [ID!]!
|
|
209
|
+
channelId: ID!
|
|
210
|
+
priceFactor: Float
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
input RemoveProductVariantsFromChannelInput {
|
|
214
|
+
productVariantIds: [ID!]!
|
|
215
|
+
channelId: ID!
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
type ProductOptionInUseError implements ErrorResult {
|
|
219
|
+
errorCode: ErrorCode!
|
|
220
|
+
message: String!
|
|
221
|
+
optionGroupCode: String!
|
|
222
|
+
productVariantCount: Int!
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
union RemoveOptionGroupFromProductResult = Product | ProductOptionInUseError
|
|
@@ -1,70 +1,70 @@
|
|
|
1
|
-
type Query {
|
|
2
|
-
promotion(id: ID!): Promotion
|
|
3
|
-
promotions(options: PromotionListOptions): PromotionList!
|
|
4
|
-
promotionConditions: [ConfigurableOperationDefinition!]!
|
|
5
|
-
promotionActions: [ConfigurableOperationDefinition!]!
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
type Mutation {
|
|
9
|
-
createPromotion(input: CreatePromotionInput!): CreatePromotionResult!
|
|
10
|
-
updatePromotion(input: UpdatePromotionInput!): UpdatePromotionResult!
|
|
11
|
-
deletePromotion(id: ID!): DeletionResponse!
|
|
12
|
-
deletePromotions(ids: [ID!]!): [DeletionResponse!]!
|
|
13
|
-
"Assigns Promotions to the specified Channel"
|
|
14
|
-
assignPromotionsToChannel(input: AssignPromotionsToChannelInput!): [Promotion!]!
|
|
15
|
-
"Removes Promotions from the specified Channel"
|
|
16
|
-
removePromotionsFromChannel(input: RemovePromotionsFromChannelInput!): [Promotion!]!
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
# generated by generateListOptions function
|
|
20
|
-
input PromotionListOptions
|
|
21
|
-
|
|
22
|
-
input PromotionTranslationInput {
|
|
23
|
-
id: ID
|
|
24
|
-
languageCode: LanguageCode!
|
|
25
|
-
name: String
|
|
26
|
-
description: String
|
|
27
|
-
}
|
|
28
|
-
input CreatePromotionInput {
|
|
29
|
-
enabled: Boolean!
|
|
30
|
-
startsAt: DateTime
|
|
31
|
-
endsAt: DateTime
|
|
32
|
-
couponCode: String
|
|
33
|
-
perCustomerUsageLimit: Int
|
|
34
|
-
usageLimit: Int
|
|
35
|
-
conditions: [ConfigurableOperationInput!]!
|
|
36
|
-
actions: [ConfigurableOperationInput!]!
|
|
37
|
-
translations: [PromotionTranslationInput!]!
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
input UpdatePromotionInput {
|
|
41
|
-
id: ID!
|
|
42
|
-
enabled: Boolean
|
|
43
|
-
startsAt: DateTime
|
|
44
|
-
endsAt: DateTime
|
|
45
|
-
couponCode: String
|
|
46
|
-
perCustomerUsageLimit: Int
|
|
47
|
-
usageLimit: Int
|
|
48
|
-
conditions: [ConfigurableOperationInput!]
|
|
49
|
-
actions: [ConfigurableOperationInput!]
|
|
50
|
-
translations: [PromotionTranslationInput!]
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
input AssignPromotionsToChannelInput {
|
|
54
|
-
promotionIds: [ID!]!
|
|
55
|
-
channelId: ID!
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
input RemovePromotionsFromChannelInput {
|
|
59
|
-
promotionIds: [ID!]!
|
|
60
|
-
channelId: ID!
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
"Returned if a PromotionCondition has neither a couponCode nor any conditions set"
|
|
64
|
-
type MissingConditionsError implements ErrorResult {
|
|
65
|
-
errorCode: ErrorCode!
|
|
66
|
-
message: String!
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
union CreatePromotionResult = Promotion | MissingConditionsError
|
|
70
|
-
union UpdatePromotionResult = Promotion | MissingConditionsError
|
|
1
|
+
type Query {
|
|
2
|
+
promotion(id: ID!): Promotion
|
|
3
|
+
promotions(options: PromotionListOptions): PromotionList!
|
|
4
|
+
promotionConditions: [ConfigurableOperationDefinition!]!
|
|
5
|
+
promotionActions: [ConfigurableOperationDefinition!]!
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
type Mutation {
|
|
9
|
+
createPromotion(input: CreatePromotionInput!): CreatePromotionResult!
|
|
10
|
+
updatePromotion(input: UpdatePromotionInput!): UpdatePromotionResult!
|
|
11
|
+
deletePromotion(id: ID!): DeletionResponse!
|
|
12
|
+
deletePromotions(ids: [ID!]!): [DeletionResponse!]!
|
|
13
|
+
"Assigns Promotions to the specified Channel"
|
|
14
|
+
assignPromotionsToChannel(input: AssignPromotionsToChannelInput!): [Promotion!]!
|
|
15
|
+
"Removes Promotions from the specified Channel"
|
|
16
|
+
removePromotionsFromChannel(input: RemovePromotionsFromChannelInput!): [Promotion!]!
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
# generated by generateListOptions function
|
|
20
|
+
input PromotionListOptions
|
|
21
|
+
|
|
22
|
+
input PromotionTranslationInput {
|
|
23
|
+
id: ID
|
|
24
|
+
languageCode: LanguageCode!
|
|
25
|
+
name: String
|
|
26
|
+
description: String
|
|
27
|
+
}
|
|
28
|
+
input CreatePromotionInput {
|
|
29
|
+
enabled: Boolean!
|
|
30
|
+
startsAt: DateTime
|
|
31
|
+
endsAt: DateTime
|
|
32
|
+
couponCode: String
|
|
33
|
+
perCustomerUsageLimit: Int
|
|
34
|
+
usageLimit: Int
|
|
35
|
+
conditions: [ConfigurableOperationInput!]!
|
|
36
|
+
actions: [ConfigurableOperationInput!]!
|
|
37
|
+
translations: [PromotionTranslationInput!]!
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
input UpdatePromotionInput {
|
|
41
|
+
id: ID!
|
|
42
|
+
enabled: Boolean
|
|
43
|
+
startsAt: DateTime
|
|
44
|
+
endsAt: DateTime
|
|
45
|
+
couponCode: String
|
|
46
|
+
perCustomerUsageLimit: Int
|
|
47
|
+
usageLimit: Int
|
|
48
|
+
conditions: [ConfigurableOperationInput!]
|
|
49
|
+
actions: [ConfigurableOperationInput!]
|
|
50
|
+
translations: [PromotionTranslationInput!]
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
input AssignPromotionsToChannelInput {
|
|
54
|
+
promotionIds: [ID!]!
|
|
55
|
+
channelId: ID!
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
input RemovePromotionsFromChannelInput {
|
|
59
|
+
promotionIds: [ID!]!
|
|
60
|
+
channelId: ID!
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
"Returned if a PromotionCondition has neither a couponCode nor any conditions set"
|
|
64
|
+
type MissingConditionsError implements ErrorResult {
|
|
65
|
+
errorCode: ErrorCode!
|
|
66
|
+
message: String!
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
union CreatePromotionResult = Promotion | MissingConditionsError
|
|
70
|
+
union UpdatePromotionResult = Promotion | MissingConditionsError
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
type Query {
|
|
2
|
-
provinces(options: ProvinceListOptions): ProvinceList!
|
|
3
|
-
province(id: ID!): Province
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
type Mutation {
|
|
7
|
-
"Create a new Province"
|
|
8
|
-
createProvince(input: CreateProvinceInput!): Province!
|
|
9
|
-
|
|
10
|
-
"Update an existing Province"
|
|
11
|
-
updateProvince(input: UpdateProvinceInput!): Province!
|
|
12
|
-
|
|
13
|
-
"Delete a Province"
|
|
14
|
-
deleteProvince(id: ID!): DeletionResponse!
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
input ProvinceTranslationInput {
|
|
18
|
-
id: ID
|
|
19
|
-
languageCode: LanguageCode!
|
|
20
|
-
name: String
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
input CreateProvinceInput {
|
|
24
|
-
code: String!
|
|
25
|
-
translations: [ProvinceTranslationInput!]!
|
|
26
|
-
enabled: Boolean!
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
input UpdateProvinceInput {
|
|
30
|
-
id: ID!
|
|
31
|
-
code: String
|
|
32
|
-
translations: [ProvinceTranslationInput!]
|
|
33
|
-
enabled: Boolean
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
# generated by generateListOptions function
|
|
37
|
-
input ProvinceListOptions
|
|
1
|
+
type Query {
|
|
2
|
+
provinces(options: ProvinceListOptions): ProvinceList!
|
|
3
|
+
province(id: ID!): Province
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
type Mutation {
|
|
7
|
+
"Create a new Province"
|
|
8
|
+
createProvince(input: CreateProvinceInput!): Province!
|
|
9
|
+
|
|
10
|
+
"Update an existing Province"
|
|
11
|
+
updateProvince(input: UpdateProvinceInput!): Province!
|
|
12
|
+
|
|
13
|
+
"Delete a Province"
|
|
14
|
+
deleteProvince(id: ID!): DeletionResponse!
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
input ProvinceTranslationInput {
|
|
18
|
+
id: ID
|
|
19
|
+
languageCode: LanguageCode!
|
|
20
|
+
name: String
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
input CreateProvinceInput {
|
|
24
|
+
code: String!
|
|
25
|
+
translations: [ProvinceTranslationInput!]!
|
|
26
|
+
enabled: Boolean!
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
input UpdateProvinceInput {
|
|
30
|
+
id: ID!
|
|
31
|
+
code: String
|
|
32
|
+
translations: [ProvinceTranslationInput!]
|
|
33
|
+
enabled: Boolean
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
# generated by generateListOptions function
|
|
37
|
+
input ProvinceListOptions
|