@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,33 +1,33 @@
|
|
|
1
|
-
type Query {
|
|
2
|
-
roles(options: RoleListOptions): RoleList!
|
|
3
|
-
role(id: ID!): Role
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
type Mutation {
|
|
7
|
-
"Create a new Role"
|
|
8
|
-
createRole(input: CreateRoleInput!): Role!
|
|
9
|
-
"Update an existing Role"
|
|
10
|
-
updateRole(input: UpdateRoleInput!): Role!
|
|
11
|
-
"Delete an existing Role"
|
|
12
|
-
deleteRole(id: ID!): DeletionResponse!
|
|
13
|
-
"Delete multiple Roles"
|
|
14
|
-
deleteRoles(ids: [ID!]!): [DeletionResponse!]!
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
# generated by generateListOptions function
|
|
18
|
-
input RoleListOptions
|
|
19
|
-
|
|
20
|
-
input CreateRoleInput {
|
|
21
|
-
code: String!
|
|
22
|
-
description: String!
|
|
23
|
-
permissions: [Permission!]!
|
|
24
|
-
channelIds: [ID!]
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
input UpdateRoleInput {
|
|
28
|
-
id: ID!
|
|
29
|
-
code: String
|
|
30
|
-
description: String
|
|
31
|
-
permissions: [Permission!]
|
|
32
|
-
channelIds: [ID!]
|
|
33
|
-
}
|
|
1
|
+
type Query {
|
|
2
|
+
roles(options: RoleListOptions): RoleList!
|
|
3
|
+
role(id: ID!): Role
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
type Mutation {
|
|
7
|
+
"Create a new Role"
|
|
8
|
+
createRole(input: CreateRoleInput!): Role!
|
|
9
|
+
"Update an existing Role"
|
|
10
|
+
updateRole(input: UpdateRoleInput!): Role!
|
|
11
|
+
"Delete an existing Role"
|
|
12
|
+
deleteRole(id: ID!): DeletionResponse!
|
|
13
|
+
"Delete multiple Roles"
|
|
14
|
+
deleteRoles(ids: [ID!]!): [DeletionResponse!]!
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
# generated by generateListOptions function
|
|
18
|
+
input RoleListOptions
|
|
19
|
+
|
|
20
|
+
input CreateRoleInput {
|
|
21
|
+
code: String!
|
|
22
|
+
description: String!
|
|
23
|
+
permissions: [Permission!]!
|
|
24
|
+
channelIds: [ID!]
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
input UpdateRoleInput {
|
|
28
|
+
id: ID!
|
|
29
|
+
code: String
|
|
30
|
+
description: String
|
|
31
|
+
permissions: [Permission!]
|
|
32
|
+
channelIds: [ID!]
|
|
33
|
+
}
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
type Query {
|
|
2
|
-
sellers(options: SellerListOptions): SellerList!
|
|
3
|
-
seller(id: ID!): Seller
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
type Mutation {
|
|
7
|
-
"Create a new Seller"
|
|
8
|
-
createSeller(input: CreateSellerInput!): Seller!
|
|
9
|
-
"Update an existing Seller"
|
|
10
|
-
updateSeller(input: UpdateSellerInput!): Seller!
|
|
11
|
-
"Delete a Seller"
|
|
12
|
-
deleteSeller(id: ID!): DeletionResponse!
|
|
13
|
-
"Delete multiple Sellers"
|
|
14
|
-
deleteSellers(ids: [ID!]!): [DeletionResponse!]!
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
type SellerList implements PaginatedList {
|
|
18
|
-
items: [Seller!]!
|
|
19
|
-
totalItems: Int!
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
input SellerListOptions
|
|
23
|
-
|
|
24
|
-
input CreateSellerInput {
|
|
25
|
-
name: String!
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
input UpdateSellerInput {
|
|
29
|
-
id: ID!
|
|
30
|
-
name: String
|
|
31
|
-
}
|
|
1
|
+
type Query {
|
|
2
|
+
sellers(options: SellerListOptions): SellerList!
|
|
3
|
+
seller(id: ID!): Seller
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
type Mutation {
|
|
7
|
+
"Create a new Seller"
|
|
8
|
+
createSeller(input: CreateSellerInput!): Seller!
|
|
9
|
+
"Update an existing Seller"
|
|
10
|
+
updateSeller(input: UpdateSellerInput!): Seller!
|
|
11
|
+
"Delete a Seller"
|
|
12
|
+
deleteSeller(id: ID!): DeletionResponse!
|
|
13
|
+
"Delete multiple Sellers"
|
|
14
|
+
deleteSellers(ids: [ID!]!): [DeletionResponse!]!
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
type SellerList implements PaginatedList {
|
|
18
|
+
items: [Seller!]!
|
|
19
|
+
totalItems: Int!
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
input SellerListOptions
|
|
23
|
+
|
|
24
|
+
input CreateSellerInput {
|
|
25
|
+
name: String!
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
input UpdateSellerInput {
|
|
29
|
+
id: ID!
|
|
30
|
+
name: String
|
|
31
|
+
}
|
|
@@ -1,91 +1,91 @@
|
|
|
1
|
-
type Query {
|
|
2
|
-
shippingMethods(options: ShippingMethodListOptions): ShippingMethodList!
|
|
3
|
-
shippingMethod(id: ID!): ShippingMethod
|
|
4
|
-
shippingEligibilityCheckers: [ConfigurableOperationDefinition!]!
|
|
5
|
-
shippingCalculators: [ConfigurableOperationDefinition!]!
|
|
6
|
-
fulfillmentHandlers: [ConfigurableOperationDefinition!]!
|
|
7
|
-
testShippingMethod(input: TestShippingMethodInput!): TestShippingMethodResult!
|
|
8
|
-
testEligibleShippingMethods(input: TestEligibleShippingMethodsInput!): [ShippingMethodQuote!]!
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
type Mutation {
|
|
12
|
-
"Create a new ShippingMethod"
|
|
13
|
-
createShippingMethod(input: CreateShippingMethodInput!): ShippingMethod!
|
|
14
|
-
"Update an existing ShippingMethod"
|
|
15
|
-
updateShippingMethod(input: UpdateShippingMethodInput!): ShippingMethod!
|
|
16
|
-
"Delete a ShippingMethod"
|
|
17
|
-
deleteShippingMethod(id: ID!): DeletionResponse!
|
|
18
|
-
"Delete multiple ShippingMethods"
|
|
19
|
-
deleteShippingMethods(ids: [ID!]!): [DeletionResponse!]!
|
|
20
|
-
|
|
21
|
-
"Assigns ShippingMethods to the specified Channel"
|
|
22
|
-
assignShippingMethodsToChannel(input: AssignShippingMethodsToChannelInput!): [ShippingMethod!]!
|
|
23
|
-
|
|
24
|
-
"Removes ShippingMethods from the specified Channel"
|
|
25
|
-
removeShippingMethodsFromChannel(input: RemoveShippingMethodsFromChannelInput!): [ShippingMethod!]!
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
# generated by generateListOptions function
|
|
29
|
-
input ShippingMethodListOptions
|
|
30
|
-
|
|
31
|
-
input ShippingMethodTranslationInput {
|
|
32
|
-
id: ID
|
|
33
|
-
languageCode: LanguageCode!
|
|
34
|
-
name: String
|
|
35
|
-
description: String
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
input CreateShippingMethodInput {
|
|
39
|
-
code: String!
|
|
40
|
-
fulfillmentHandler: String!
|
|
41
|
-
checker: ConfigurableOperationInput!
|
|
42
|
-
calculator: ConfigurableOperationInput!
|
|
43
|
-
translations: [ShippingMethodTranslationInput!]!
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
input UpdateShippingMethodInput {
|
|
47
|
-
id: ID!
|
|
48
|
-
code: String
|
|
49
|
-
fulfillmentHandler: String
|
|
50
|
-
checker: ConfigurableOperationInput
|
|
51
|
-
calculator: ConfigurableOperationInput
|
|
52
|
-
translations: [ShippingMethodTranslationInput!]!
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
input TestShippingMethodInput {
|
|
56
|
-
checker: ConfigurableOperationInput!
|
|
57
|
-
calculator: ConfigurableOperationInput!
|
|
58
|
-
shippingAddress: CreateAddressInput!
|
|
59
|
-
lines: [TestShippingMethodOrderLineInput!]!
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
input TestEligibleShippingMethodsInput {
|
|
63
|
-
shippingAddress: CreateAddressInput!
|
|
64
|
-
lines: [TestShippingMethodOrderLineInput!]!
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
input TestShippingMethodOrderLineInput {
|
|
68
|
-
productVariantId: ID!
|
|
69
|
-
quantity: Int!
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
type TestShippingMethodResult {
|
|
73
|
-
eligible: Boolean!
|
|
74
|
-
quote: TestShippingMethodQuote
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
type TestShippingMethodQuote {
|
|
78
|
-
price: Money!
|
|
79
|
-
priceWithTax: Money!
|
|
80
|
-
metadata: JSON
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
input AssignShippingMethodsToChannelInput {
|
|
84
|
-
shippingMethodIds: [ID!]!
|
|
85
|
-
channelId: ID!
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
input RemoveShippingMethodsFromChannelInput {
|
|
89
|
-
shippingMethodIds: [ID!]!
|
|
90
|
-
channelId: ID!
|
|
91
|
-
}
|
|
1
|
+
type Query {
|
|
2
|
+
shippingMethods(options: ShippingMethodListOptions): ShippingMethodList!
|
|
3
|
+
shippingMethod(id: ID!): ShippingMethod
|
|
4
|
+
shippingEligibilityCheckers: [ConfigurableOperationDefinition!]!
|
|
5
|
+
shippingCalculators: [ConfigurableOperationDefinition!]!
|
|
6
|
+
fulfillmentHandlers: [ConfigurableOperationDefinition!]!
|
|
7
|
+
testShippingMethod(input: TestShippingMethodInput!): TestShippingMethodResult!
|
|
8
|
+
testEligibleShippingMethods(input: TestEligibleShippingMethodsInput!): [ShippingMethodQuote!]!
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
type Mutation {
|
|
12
|
+
"Create a new ShippingMethod"
|
|
13
|
+
createShippingMethod(input: CreateShippingMethodInput!): ShippingMethod!
|
|
14
|
+
"Update an existing ShippingMethod"
|
|
15
|
+
updateShippingMethod(input: UpdateShippingMethodInput!): ShippingMethod!
|
|
16
|
+
"Delete a ShippingMethod"
|
|
17
|
+
deleteShippingMethod(id: ID!): DeletionResponse!
|
|
18
|
+
"Delete multiple ShippingMethods"
|
|
19
|
+
deleteShippingMethods(ids: [ID!]!): [DeletionResponse!]!
|
|
20
|
+
|
|
21
|
+
"Assigns ShippingMethods to the specified Channel"
|
|
22
|
+
assignShippingMethodsToChannel(input: AssignShippingMethodsToChannelInput!): [ShippingMethod!]!
|
|
23
|
+
|
|
24
|
+
"Removes ShippingMethods from the specified Channel"
|
|
25
|
+
removeShippingMethodsFromChannel(input: RemoveShippingMethodsFromChannelInput!): [ShippingMethod!]!
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
# generated by generateListOptions function
|
|
29
|
+
input ShippingMethodListOptions
|
|
30
|
+
|
|
31
|
+
input ShippingMethodTranslationInput {
|
|
32
|
+
id: ID
|
|
33
|
+
languageCode: LanguageCode!
|
|
34
|
+
name: String
|
|
35
|
+
description: String
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
input CreateShippingMethodInput {
|
|
39
|
+
code: String!
|
|
40
|
+
fulfillmentHandler: String!
|
|
41
|
+
checker: ConfigurableOperationInput!
|
|
42
|
+
calculator: ConfigurableOperationInput!
|
|
43
|
+
translations: [ShippingMethodTranslationInput!]!
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
input UpdateShippingMethodInput {
|
|
47
|
+
id: ID!
|
|
48
|
+
code: String
|
|
49
|
+
fulfillmentHandler: String
|
|
50
|
+
checker: ConfigurableOperationInput
|
|
51
|
+
calculator: ConfigurableOperationInput
|
|
52
|
+
translations: [ShippingMethodTranslationInput!]!
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
input TestShippingMethodInput {
|
|
56
|
+
checker: ConfigurableOperationInput!
|
|
57
|
+
calculator: ConfigurableOperationInput!
|
|
58
|
+
shippingAddress: CreateAddressInput!
|
|
59
|
+
lines: [TestShippingMethodOrderLineInput!]!
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
input TestEligibleShippingMethodsInput {
|
|
63
|
+
shippingAddress: CreateAddressInput!
|
|
64
|
+
lines: [TestShippingMethodOrderLineInput!]!
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
input TestShippingMethodOrderLineInput {
|
|
68
|
+
productVariantId: ID!
|
|
69
|
+
quantity: Int!
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
type TestShippingMethodResult {
|
|
73
|
+
eligible: Boolean!
|
|
74
|
+
quote: TestShippingMethodQuote
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
type TestShippingMethodQuote {
|
|
78
|
+
price: Money!
|
|
79
|
+
priceWithTax: Money!
|
|
80
|
+
metadata: JSON
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
input AssignShippingMethodsToChannelInput {
|
|
84
|
+
shippingMethodIds: [ID!]!
|
|
85
|
+
channelId: ID!
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
input RemoveShippingMethodsFromChannelInput {
|
|
89
|
+
shippingMethodIds: [ID!]!
|
|
90
|
+
channelId: ID!
|
|
91
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
type StockLevel implements Node {
|
|
2
|
-
id: ID!
|
|
3
|
-
createdAt: DateTime!
|
|
4
|
-
updatedAt: DateTime!
|
|
5
|
-
stockLocationId: ID!
|
|
6
|
-
stockOnHand: Int!
|
|
7
|
-
stockAllocated: Int!
|
|
8
|
-
stockLocation: StockLocation!
|
|
9
|
-
}
|
|
1
|
+
type StockLevel implements Node {
|
|
2
|
+
id: ID!
|
|
3
|
+
createdAt: DateTime!
|
|
4
|
+
updatedAt: DateTime!
|
|
5
|
+
stockLocationId: ID!
|
|
6
|
+
stockOnHand: Int!
|
|
7
|
+
stockAllocated: Int!
|
|
8
|
+
stockLocation: StockLocation!
|
|
9
|
+
}
|
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
type Query {
|
|
2
|
-
stockLocation(id: ID!): StockLocation
|
|
3
|
-
stockLocations(options: StockLocationListOptions): StockLocationList!
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
type Mutation {
|
|
7
|
-
createStockLocation(input: CreateStockLocationInput!): StockLocation!
|
|
8
|
-
updateStockLocation(input: UpdateStockLocationInput!): StockLocation!
|
|
9
|
-
deleteStockLocation(input: DeleteStockLocationInput!): DeletionResponse!
|
|
10
|
-
deleteStockLocations(input: [DeleteStockLocationInput!]!): [DeletionResponse!]!
|
|
11
|
-
|
|
12
|
-
"Assigns StockLocations to the specified Channel"
|
|
13
|
-
assignStockLocationsToChannel(input: AssignStockLocationsToChannelInput!): [StockLocation!]!
|
|
14
|
-
|
|
15
|
-
"Removes StockLocations from the specified Channel"
|
|
16
|
-
removeStockLocationsFromChannel(input: RemoveStockLocationsFromChannelInput!): [StockLocation!]!
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
# Generated at runtime
|
|
20
|
-
input StockLocationListOptions
|
|
21
|
-
|
|
22
|
-
type StockLocationList implements PaginatedList {
|
|
23
|
-
items: [StockLocation!]!
|
|
24
|
-
totalItems: Int!
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
input CreateStockLocationInput {
|
|
28
|
-
name: String!
|
|
29
|
-
description: String
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
input UpdateStockLocationInput {
|
|
33
|
-
id: ID!
|
|
34
|
-
name: String
|
|
35
|
-
description: String
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
input DeleteStockLocationInput {
|
|
39
|
-
id: ID!
|
|
40
|
-
transferToLocationId: ID
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
input AssignStockLocationsToChannelInput {
|
|
44
|
-
stockLocationIds: [ID!]!
|
|
45
|
-
channelId: ID!
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
input RemoveStockLocationsFromChannelInput {
|
|
49
|
-
stockLocationIds: [ID!]!
|
|
50
|
-
channelId: ID!
|
|
51
|
-
}
|
|
1
|
+
type Query {
|
|
2
|
+
stockLocation(id: ID!): StockLocation
|
|
3
|
+
stockLocations(options: StockLocationListOptions): StockLocationList!
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
type Mutation {
|
|
7
|
+
createStockLocation(input: CreateStockLocationInput!): StockLocation!
|
|
8
|
+
updateStockLocation(input: UpdateStockLocationInput!): StockLocation!
|
|
9
|
+
deleteStockLocation(input: DeleteStockLocationInput!): DeletionResponse!
|
|
10
|
+
deleteStockLocations(input: [DeleteStockLocationInput!]!): [DeletionResponse!]!
|
|
11
|
+
|
|
12
|
+
"Assigns StockLocations to the specified Channel"
|
|
13
|
+
assignStockLocationsToChannel(input: AssignStockLocationsToChannelInput!): [StockLocation!]!
|
|
14
|
+
|
|
15
|
+
"Removes StockLocations from the specified Channel"
|
|
16
|
+
removeStockLocationsFromChannel(input: RemoveStockLocationsFromChannelInput!): [StockLocation!]!
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
# Generated at runtime
|
|
20
|
+
input StockLocationListOptions
|
|
21
|
+
|
|
22
|
+
type StockLocationList implements PaginatedList {
|
|
23
|
+
items: [StockLocation!]!
|
|
24
|
+
totalItems: Int!
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
input CreateStockLocationInput {
|
|
28
|
+
name: String!
|
|
29
|
+
description: String
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
input UpdateStockLocationInput {
|
|
33
|
+
id: ID!
|
|
34
|
+
name: String
|
|
35
|
+
description: String
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
input DeleteStockLocationInput {
|
|
39
|
+
id: ID!
|
|
40
|
+
transferToLocationId: ID
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
input AssignStockLocationsToChannelInput {
|
|
44
|
+
stockLocationIds: [ID!]!
|
|
45
|
+
channelId: ID!
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
input RemoveStockLocationsFromChannelInput {
|
|
49
|
+
stockLocationIds: [ID!]!
|
|
50
|
+
channelId: ID!
|
|
51
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
type StockLocation implements Node {
|
|
2
|
-
id: ID!
|
|
3
|
-
createdAt: DateTime!
|
|
4
|
-
updatedAt: DateTime!
|
|
5
|
-
name: String!
|
|
6
|
-
description: String!
|
|
7
|
-
}
|
|
1
|
+
type StockLocation implements Node {
|
|
2
|
+
id: ID!
|
|
3
|
+
createdAt: DateTime!
|
|
4
|
+
updatedAt: DateTime!
|
|
5
|
+
name: String!
|
|
6
|
+
description: String!
|
|
7
|
+
}
|
|
@@ -1,80 +1,80 @@
|
|
|
1
|
-
enum StockMovementType {
|
|
2
|
-
ADJUSTMENT
|
|
3
|
-
ALLOCATION
|
|
4
|
-
RELEASE
|
|
5
|
-
SALE
|
|
6
|
-
CANCELLATION
|
|
7
|
-
RETURN
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
interface StockMovement {
|
|
11
|
-
id: ID!
|
|
12
|
-
createdAt: DateTime!
|
|
13
|
-
updatedAt: DateTime!
|
|
14
|
-
productVariant: ProductVariant!
|
|
15
|
-
type: StockMovementType!
|
|
16
|
-
quantity: Int!
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
type StockAdjustment implements Node & StockMovement {
|
|
20
|
-
id: ID!
|
|
21
|
-
createdAt: DateTime!
|
|
22
|
-
updatedAt: DateTime!
|
|
23
|
-
productVariant: ProductVariant!
|
|
24
|
-
type: StockMovementType!
|
|
25
|
-
quantity: Int!
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
type Allocation implements Node & StockMovement {
|
|
29
|
-
id: ID!
|
|
30
|
-
createdAt: DateTime!
|
|
31
|
-
updatedAt: DateTime!
|
|
32
|
-
productVariant: ProductVariant!
|
|
33
|
-
type: StockMovementType!
|
|
34
|
-
quantity: Int!
|
|
35
|
-
orderLine: OrderLine!
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
type Sale implements Node & StockMovement {
|
|
39
|
-
id: ID!
|
|
40
|
-
createdAt: DateTime!
|
|
41
|
-
updatedAt: DateTime!
|
|
42
|
-
productVariant: ProductVariant!
|
|
43
|
-
type: StockMovementType!
|
|
44
|
-
quantity: Int!
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
type Cancellation implements Node & StockMovement {
|
|
48
|
-
id: ID!
|
|
49
|
-
createdAt: DateTime!
|
|
50
|
-
updatedAt: DateTime!
|
|
51
|
-
productVariant: ProductVariant!
|
|
52
|
-
type: StockMovementType!
|
|
53
|
-
quantity: Int!
|
|
54
|
-
orderLine: OrderLine!
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
type Return implements Node & StockMovement {
|
|
58
|
-
id: ID!
|
|
59
|
-
createdAt: DateTime!
|
|
60
|
-
updatedAt: DateTime!
|
|
61
|
-
productVariant: ProductVariant!
|
|
62
|
-
type: StockMovementType!
|
|
63
|
-
quantity: Int!
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
type Release implements Node & StockMovement {
|
|
67
|
-
id: ID!
|
|
68
|
-
createdAt: DateTime!
|
|
69
|
-
updatedAt: DateTime!
|
|
70
|
-
productVariant: ProductVariant!
|
|
71
|
-
type: StockMovementType!
|
|
72
|
-
quantity: Int!
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
union StockMovementItem = StockAdjustment | Allocation | Sale | Cancellation | Return | Release
|
|
76
|
-
|
|
77
|
-
type StockMovementList {
|
|
78
|
-
items: [StockMovementItem!]!
|
|
79
|
-
totalItems: Int!
|
|
80
|
-
}
|
|
1
|
+
enum StockMovementType {
|
|
2
|
+
ADJUSTMENT
|
|
3
|
+
ALLOCATION
|
|
4
|
+
RELEASE
|
|
5
|
+
SALE
|
|
6
|
+
CANCELLATION
|
|
7
|
+
RETURN
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
interface StockMovement {
|
|
11
|
+
id: ID!
|
|
12
|
+
createdAt: DateTime!
|
|
13
|
+
updatedAt: DateTime!
|
|
14
|
+
productVariant: ProductVariant!
|
|
15
|
+
type: StockMovementType!
|
|
16
|
+
quantity: Int!
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
type StockAdjustment implements Node & StockMovement {
|
|
20
|
+
id: ID!
|
|
21
|
+
createdAt: DateTime!
|
|
22
|
+
updatedAt: DateTime!
|
|
23
|
+
productVariant: ProductVariant!
|
|
24
|
+
type: StockMovementType!
|
|
25
|
+
quantity: Int!
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
type Allocation implements Node & StockMovement {
|
|
29
|
+
id: ID!
|
|
30
|
+
createdAt: DateTime!
|
|
31
|
+
updatedAt: DateTime!
|
|
32
|
+
productVariant: ProductVariant!
|
|
33
|
+
type: StockMovementType!
|
|
34
|
+
quantity: Int!
|
|
35
|
+
orderLine: OrderLine!
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
type Sale implements Node & StockMovement {
|
|
39
|
+
id: ID!
|
|
40
|
+
createdAt: DateTime!
|
|
41
|
+
updatedAt: DateTime!
|
|
42
|
+
productVariant: ProductVariant!
|
|
43
|
+
type: StockMovementType!
|
|
44
|
+
quantity: Int!
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
type Cancellation implements Node & StockMovement {
|
|
48
|
+
id: ID!
|
|
49
|
+
createdAt: DateTime!
|
|
50
|
+
updatedAt: DateTime!
|
|
51
|
+
productVariant: ProductVariant!
|
|
52
|
+
type: StockMovementType!
|
|
53
|
+
quantity: Int!
|
|
54
|
+
orderLine: OrderLine!
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
type Return implements Node & StockMovement {
|
|
58
|
+
id: ID!
|
|
59
|
+
createdAt: DateTime!
|
|
60
|
+
updatedAt: DateTime!
|
|
61
|
+
productVariant: ProductVariant!
|
|
62
|
+
type: StockMovementType!
|
|
63
|
+
quantity: Int!
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
type Release implements Node & StockMovement {
|
|
67
|
+
id: ID!
|
|
68
|
+
createdAt: DateTime!
|
|
69
|
+
updatedAt: DateTime!
|
|
70
|
+
productVariant: ProductVariant!
|
|
71
|
+
type: StockMovementType!
|
|
72
|
+
quantity: Int!
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
union StockMovementItem = StockAdjustment | Allocation | Sale | Cancellation | Return | Release
|
|
76
|
+
|
|
77
|
+
type StockMovementList {
|
|
78
|
+
items: [StockMovementItem!]!
|
|
79
|
+
totalItems: Int!
|
|
80
|
+
}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
type Query {
|
|
2
|
-
tag(id: ID!): Tag!
|
|
3
|
-
tags(options: TagListOptions): TagList!
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
type Mutation {
|
|
7
|
-
"Create a new Tag"
|
|
8
|
-
createTag(input: CreateTagInput!): Tag!
|
|
9
|
-
"Update an existing Tag"
|
|
10
|
-
updateTag(input: UpdateTagInput!): Tag!
|
|
11
|
-
"Delete an existing Tag"
|
|
12
|
-
deleteTag(id: ID!): DeletionResponse!
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
# generated by generateListOptions function
|
|
16
|
-
input TagListOptions
|
|
17
|
-
|
|
18
|
-
input CreateTagInput {
|
|
19
|
-
value: String!
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
input UpdateTagInput {
|
|
23
|
-
id: ID!
|
|
24
|
-
value: String
|
|
25
|
-
}
|
|
1
|
+
type Query {
|
|
2
|
+
tag(id: ID!): Tag!
|
|
3
|
+
tags(options: TagListOptions): TagList!
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
type Mutation {
|
|
7
|
+
"Create a new Tag"
|
|
8
|
+
createTag(input: CreateTagInput!): Tag!
|
|
9
|
+
"Update an existing Tag"
|
|
10
|
+
updateTag(input: UpdateTagInput!): Tag!
|
|
11
|
+
"Delete an existing Tag"
|
|
12
|
+
deleteTag(id: ID!): DeletionResponse!
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
# generated by generateListOptions function
|
|
16
|
+
input TagListOptions
|
|
17
|
+
|
|
18
|
+
input CreateTagInput {
|
|
19
|
+
value: String!
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
input UpdateTagInput {
|
|
23
|
+
id: ID!
|
|
24
|
+
value: String
|
|
25
|
+
}
|