@vendure/core 2.3.2 → 2.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (106) hide show
  1. package/README.md +11 -11
  2. package/dist/api/config/generate-error-code-enum.js +3 -3
  3. package/dist/api/config/generate-permissions.js +29 -29
  4. package/dist/api/config/graphql-custom-fields.js +150 -150
  5. package/dist/api/schema/admin-api/administrator.api.graphql +47 -47
  6. package/dist/api/schema/admin-api/administrator.type.graphql +14 -14
  7. package/dist/api/schema/admin-api/asset.api.graphql +68 -68
  8. package/dist/api/schema/admin-api/auth.api.graphql +22 -22
  9. package/dist/api/schema/admin-api/channel.api.graphql +69 -69
  10. package/dist/api/schema/admin-api/collection-admin.type.graphql +4 -4
  11. package/dist/api/schema/admin-api/collection.api.graphql +94 -94
  12. package/dist/api/schema/admin-api/country.api.graphql +41 -41
  13. package/dist/api/schema/admin-api/customer-admin.type.graphql +4 -4
  14. package/dist/api/schema/admin-api/customer-group.api.graphql +37 -37
  15. package/dist/api/schema/admin-api/customer.api.graphql +63 -63
  16. package/dist/api/schema/admin-api/duplicate-entity.api.graphql +40 -40
  17. package/dist/api/schema/admin-api/facet-admin.type.graphql +3 -3
  18. package/dist/api/schema/admin-api/facet.api.graphql +100 -100
  19. package/dist/api/schema/admin-api/global-settings.api.graphql +26 -26
  20. package/dist/api/schema/admin-api/global-settings.type.graphql +28 -28
  21. package/dist/api/schema/admin-api/history-entry-admin.type.graphql +4 -4
  22. package/dist/api/schema/admin-api/import.api.graphql +3 -3
  23. package/dist/api/schema/admin-api/import.type.graphql +5 -5
  24. package/dist/api/schema/admin-api/job.api.graphql +63 -63
  25. package/dist/api/schema/admin-api/order-admin.type.graphql +37 -37
  26. package/dist/api/schema/admin-api/order.api.graphql +461 -461
  27. package/dist/api/schema/admin-api/payment-method.api.graphql +65 -65
  28. package/dist/api/schema/admin-api/payment.api.graphql +2 -2
  29. package/dist/api/schema/admin-api/product-admin.type.graphql +21 -21
  30. package/dist/api/schema/admin-api/product-option-group.api.graphql +58 -58
  31. package/dist/api/schema/admin-api/product-search-admin.type.graphql +5 -5
  32. package/dist/api/schema/admin-api/product-search.api.graphql +10 -10
  33. package/dist/api/schema/admin-api/product.api.graphql +214 -214
  34. package/dist/api/schema/admin-api/promotion.api.graphql +70 -70
  35. package/dist/api/schema/admin-api/province.api.graphql +37 -37
  36. package/dist/api/schema/admin-api/role.api.graphql +33 -33
  37. package/dist/api/schema/admin-api/seller.api.graphql +31 -31
  38. package/dist/api/schema/admin-api/shipping-method.api.graphql +91 -91
  39. package/dist/api/schema/admin-api/stock-level.type.graphql +9 -9
  40. package/dist/api/schema/admin-api/stock-location.api.graphql +51 -51
  41. package/dist/api/schema/admin-api/stock-location.type.graphql +7 -7
  42. package/dist/api/schema/admin-api/stock-movement.type.graphql +80 -80
  43. package/dist/api/schema/admin-api/tag.api.graphql +25 -25
  44. package/dist/api/schema/admin-api/tax-category.api.graphql +36 -36
  45. package/dist/api/schema/admin-api/tax-rate.api.graphql +37 -37
  46. package/dist/api/schema/admin-api/zone.api.graphql +42 -42
  47. package/dist/api/schema/common/address.type.graphql +16 -16
  48. package/dist/api/schema/common/asset.type.graphql +31 -31
  49. package/dist/api/schema/common/auth.type.graphql +12 -12
  50. package/dist/api/schema/common/channel.type.graphql +24 -24
  51. package/dist/api/schema/common/collection.type.graphql +40 -40
  52. package/dist/api/schema/common/common-enums.graphql +35 -35
  53. package/dist/api/schema/common/common-error-results.graphql +98 -98
  54. package/dist/api/schema/common/common-types.graphql +284 -284
  55. package/dist/api/schema/common/currency-code.graphql +322 -322
  56. package/dist/api/schema/common/custom-field-types.graphql +166 -166
  57. package/dist/api/schema/common/customer-group.type.graphql +10 -10
  58. package/dist/api/schema/common/customer.type.graphql +18 -18
  59. package/dist/api/schema/common/facet-value.type.graphql +19 -19
  60. package/dist/api/schema/common/facet.type.graphql +35 -35
  61. package/dist/api/schema/common/history-entry.type.graphql +43 -43
  62. package/dist/api/schema/common/language-code.graphql +325 -325
  63. package/dist/api/schema/common/order.type.graphql +257 -257
  64. package/dist/api/schema/common/payment-method.type.graphql +21 -21
  65. package/dist/api/schema/common/product-option-group.type.graphql +38 -38
  66. package/dist/api/schema/common/product-search.type.graphql +69 -69
  67. package/dist/api/schema/common/product.type.graphql +70 -70
  68. package/dist/api/schema/common/promotion.type.graphql +31 -31
  69. package/dist/api/schema/common/region.type.graphql +65 -65
  70. package/dist/api/schema/common/role.type.graphql +14 -14
  71. package/dist/api/schema/common/seller.type.graphql +6 -6
  72. package/dist/api/schema/common/shipping-method.type.graphql +27 -27
  73. package/dist/api/schema/common/tag.type.graphql +11 -11
  74. package/dist/api/schema/common/tax-category.type.graphql +7 -7
  75. package/dist/api/schema/common/tax-rate.type.graphql +16 -16
  76. package/dist/api/schema/common/user.type.graphql +17 -17
  77. package/dist/api/schema/common/zone.type.graphql +8 -8
  78. package/dist/api/schema/shop-api/shop-error-results.graphql +114 -114
  79. package/dist/api/schema/shop-api/shop.api.graphql +250 -250
  80. package/dist/config/auth/native-authentication-strategy.js +5 -5
  81. package/dist/i18n/messages/de.json +116 -116
  82. package/dist/i18n/messages/en.json +138 -138
  83. package/dist/i18n/messages/es.json +38 -38
  84. package/dist/i18n/messages/fr.json +138 -138
  85. package/dist/i18n/messages/pt_BR.json +99 -99
  86. package/dist/i18n/messages/pt_PT.json +118 -118
  87. package/dist/i18n/messages/ru.json +118 -118
  88. package/dist/i18n/messages/uk.json +118 -118
  89. package/dist/migrate.js +15 -15
  90. package/dist/plugin/default-search-plugin/api/api-extensions.js +8 -8
  91. package/dist/plugin/default-search-plugin/search-strategy/mysql-search-strategy.js +3 -3
  92. package/dist/plugin/default-search-plugin/search-strategy/postgres-search-strategy.js +7 -5
  93. package/dist/plugin/default-search-plugin/search-strategy/postgres-search-strategy.js.map +1 -1
  94. package/dist/plugin/default-search-plugin/search-strategy/sqlite-search-strategy.js +4 -4
  95. package/dist/service/helpers/request-context/request-context.service.js +6 -2
  96. package/dist/service/helpers/request-context/request-context.service.js.map +1 -1
  97. package/dist/service/services/product.service.js +5 -3
  98. package/dist/service/services/product.service.js.map +1 -1
  99. package/package.json +3 -3
  100. package/LICENSE +0 -9
  101. package/cli/cli-utils.d.ts +0 -1
  102. package/cli/cli-utils.js +0 -8
  103. package/cli/cli-utils.js.map +0 -1
  104. package/cli/vendure-cli.d.ts +0 -2
  105. package/cli/vendure-cli.js +0 -119
  106. package/cli/vendure-cli.js.map +0 -1
@@ -1,37 +1,37 @@
1
- type Query {
2
- customerGroups(options: CustomerGroupListOptions): CustomerGroupList!
3
- customerGroup(id: ID!): CustomerGroup
4
- }
5
-
6
- type Mutation {
7
- "Create a new CustomerGroup"
8
- createCustomerGroup(input: CreateCustomerGroupInput!): CustomerGroup!
9
- "Update an existing CustomerGroup"
10
- updateCustomerGroup(input: UpdateCustomerGroupInput!): CustomerGroup!
11
- "Delete a CustomerGroup"
12
- deleteCustomerGroup(id: ID!): DeletionResponse!
13
- "Delete multiple CustomerGroups"
14
- deleteCustomerGroups(ids: [ID!]!): [DeletionResponse!]!
15
- "Add Customers to a CustomerGroup"
16
- addCustomersToGroup(customerGroupId: ID!, customerIds: [ID!]!): CustomerGroup!
17
- "Remove Customers from a CustomerGroup"
18
- removeCustomersFromGroup(customerGroupId: ID!, customerIds: [ID!]!): CustomerGroup!
19
- }
20
-
21
- type CustomerGroupList implements PaginatedList {
22
- items: [CustomerGroup!]!
23
- totalItems: Int!
24
- }
25
-
26
- # generated by generateListOptions function
27
- input CustomerGroupListOptions
28
-
29
- input CreateCustomerGroupInput {
30
- name: String!
31
- customerIds: [ID!]
32
- }
33
-
34
- input UpdateCustomerGroupInput {
35
- id: ID!
36
- name: String
37
- }
1
+ type Query {
2
+ customerGroups(options: CustomerGroupListOptions): CustomerGroupList!
3
+ customerGroup(id: ID!): CustomerGroup
4
+ }
5
+
6
+ type Mutation {
7
+ "Create a new CustomerGroup"
8
+ createCustomerGroup(input: CreateCustomerGroupInput!): CustomerGroup!
9
+ "Update an existing CustomerGroup"
10
+ updateCustomerGroup(input: UpdateCustomerGroupInput!): CustomerGroup!
11
+ "Delete a CustomerGroup"
12
+ deleteCustomerGroup(id: ID!): DeletionResponse!
13
+ "Delete multiple CustomerGroups"
14
+ deleteCustomerGroups(ids: [ID!]!): [DeletionResponse!]!
15
+ "Add Customers to a CustomerGroup"
16
+ addCustomersToGroup(customerGroupId: ID!, customerIds: [ID!]!): CustomerGroup!
17
+ "Remove Customers from a CustomerGroup"
18
+ removeCustomersFromGroup(customerGroupId: ID!, customerIds: [ID!]!): CustomerGroup!
19
+ }
20
+
21
+ type CustomerGroupList implements PaginatedList {
22
+ items: [CustomerGroup!]!
23
+ totalItems: Int!
24
+ }
25
+
26
+ # generated by generateListOptions function
27
+ input CustomerGroupListOptions
28
+
29
+ input CreateCustomerGroupInput {
30
+ name: String!
31
+ customerIds: [ID!]
32
+ }
33
+
34
+ input UpdateCustomerGroupInput {
35
+ id: ID!
36
+ name: String
37
+ }
@@ -1,63 +1,63 @@
1
- type Query {
2
- customers(options: CustomerListOptions): CustomerList!
3
- customer(id: ID!): Customer
4
- }
5
-
6
- type Mutation {
7
- "Create a new Customer. If a password is provided, a new User will also be created an linked to the Customer."
8
- createCustomer(input: CreateCustomerInput!, password: String): CreateCustomerResult!
9
-
10
- "Update an existing Customer"
11
- updateCustomer(input: UpdateCustomerInput!): UpdateCustomerResult!
12
-
13
- "Delete a Customer"
14
- deleteCustomer(id: ID!): DeletionResponse!
15
-
16
- "Deletes Customers"
17
- deleteCustomers(ids: [ID!]!): [DeletionResponse!]!
18
-
19
- "Create a new Address and associate it with the Customer specified by customerId"
20
- createCustomerAddress(customerId: ID!, input: CreateAddressInput!): Address!
21
-
22
- "Update an existing Address"
23
- updateCustomerAddress(input: UpdateAddressInput!): Address!
24
-
25
- "Update an existing Address"
26
- deleteCustomerAddress(id: ID!): Success!
27
-
28
- addNoteToCustomer(input: AddNoteToCustomerInput!): Customer!
29
- updateCustomerNote(input: UpdateCustomerNoteInput!): HistoryEntry!
30
- deleteCustomerNote(id: ID!): DeletionResponse!
31
- }
32
-
33
- input UpdateCustomerInput {
34
- id: ID!
35
- title: String
36
- firstName: String
37
- lastName: String
38
- phoneNumber: String
39
- emailAddress: String
40
- }
41
-
42
- input CustomerFilterParameter {
43
- postalCode: StringOperators
44
- }
45
-
46
- # generated by generateListOptions function
47
- input CustomerListOptions
48
-
49
-
50
- input AddNoteToCustomerInput {
51
- id: ID!
52
- note: String!
53
- isPublic: Boolean!
54
- }
55
-
56
- input UpdateCustomerNoteInput {
57
- noteId: ID!
58
- note: String!
59
- }
60
-
61
- union CreateCustomerResult = Customer | EmailAddressConflictError
62
- union UpdateCustomerResult = Customer | EmailAddressConflictError
63
-
1
+ type Query {
2
+ customers(options: CustomerListOptions): CustomerList!
3
+ customer(id: ID!): Customer
4
+ }
5
+
6
+ type Mutation {
7
+ "Create a new Customer. If a password is provided, a new User will also be created an linked to the Customer."
8
+ createCustomer(input: CreateCustomerInput!, password: String): CreateCustomerResult!
9
+
10
+ "Update an existing Customer"
11
+ updateCustomer(input: UpdateCustomerInput!): UpdateCustomerResult!
12
+
13
+ "Delete a Customer"
14
+ deleteCustomer(id: ID!): DeletionResponse!
15
+
16
+ "Deletes Customers"
17
+ deleteCustomers(ids: [ID!]!): [DeletionResponse!]!
18
+
19
+ "Create a new Address and associate it with the Customer specified by customerId"
20
+ createCustomerAddress(customerId: ID!, input: CreateAddressInput!): Address!
21
+
22
+ "Update an existing Address"
23
+ updateCustomerAddress(input: UpdateAddressInput!): Address!
24
+
25
+ "Update an existing Address"
26
+ deleteCustomerAddress(id: ID!): Success!
27
+
28
+ addNoteToCustomer(input: AddNoteToCustomerInput!): Customer!
29
+ updateCustomerNote(input: UpdateCustomerNoteInput!): HistoryEntry!
30
+ deleteCustomerNote(id: ID!): DeletionResponse!
31
+ }
32
+
33
+ input UpdateCustomerInput {
34
+ id: ID!
35
+ title: String
36
+ firstName: String
37
+ lastName: String
38
+ phoneNumber: String
39
+ emailAddress: String
40
+ }
41
+
42
+ input CustomerFilterParameter {
43
+ postalCode: StringOperators
44
+ }
45
+
46
+ # generated by generateListOptions function
47
+ input CustomerListOptions
48
+
49
+
50
+ input AddNoteToCustomerInput {
51
+ id: ID!
52
+ note: String!
53
+ isPublic: Boolean!
54
+ }
55
+
56
+ input UpdateCustomerNoteInput {
57
+ noteId: ID!
58
+ note: String!
59
+ }
60
+
61
+ union CreateCustomerResult = Customer | EmailAddressConflictError
62
+ union UpdateCustomerResult = Customer | EmailAddressConflictError
63
+
@@ -1,40 +1,40 @@
1
- extend type Query {
2
- """
3
- Returns all configured EntityDuplicators.
4
- """
5
- entityDuplicators: [EntityDuplicatorDefinition!]!
6
- }
7
-
8
- extend type Mutation {
9
- """
10
- Duplicate an existing entity using a specific EntityDuplicator.
11
- Since v2.2.0.
12
- """
13
- duplicateEntity(input: DuplicateEntityInput!): DuplicateEntityResult!
14
- }
15
-
16
- type EntityDuplicatorDefinition {
17
- code: String!
18
- args: [ConfigArgDefinition!]!
19
- description: String!
20
- forEntities: [String!]!
21
- requiresPermission: [Permission!]!
22
- }
23
-
24
- type DuplicateEntitySuccess {
25
- newEntityId: ID!
26
- }
27
-
28
- type DuplicateEntityError implements ErrorResult {
29
- errorCode: ErrorCode!
30
- message: String!
31
- duplicationError: String!
32
- }
33
-
34
- union DuplicateEntityResult = DuplicateEntitySuccess | DuplicateEntityError
35
-
36
- input DuplicateEntityInput {
37
- entityName: String!
38
- entityId: ID!
39
- duplicatorInput: ConfigurableOperationInput!
40
- }
1
+ extend type Query {
2
+ """
3
+ Returns all configured EntityDuplicators.
4
+ """
5
+ entityDuplicators: [EntityDuplicatorDefinition!]!
6
+ }
7
+
8
+ extend type Mutation {
9
+ """
10
+ Duplicate an existing entity using a specific EntityDuplicator.
11
+ Since v2.2.0.
12
+ """
13
+ duplicateEntity(input: DuplicateEntityInput!): DuplicateEntityResult!
14
+ }
15
+
16
+ type EntityDuplicatorDefinition {
17
+ code: String!
18
+ args: [ConfigArgDefinition!]!
19
+ description: String!
20
+ forEntities: [String!]!
21
+ requiresPermission: [Permission!]!
22
+ }
23
+
24
+ type DuplicateEntitySuccess {
25
+ newEntityId: ID!
26
+ }
27
+
28
+ type DuplicateEntityError implements ErrorResult {
29
+ errorCode: ErrorCode!
30
+ message: String!
31
+ duplicationError: String!
32
+ }
33
+
34
+ union DuplicateEntityResult = DuplicateEntitySuccess | DuplicateEntityError
35
+
36
+ input DuplicateEntityInput {
37
+ entityName: String!
38
+ entityId: ID!
39
+ duplicatorInput: ConfigurableOperationInput!
40
+ }
@@ -1,3 +1,3 @@
1
- type Facet implements Node {
2
- isPrivate: Boolean!
3
- }
1
+ type Facet implements Node {
2
+ isPrivate: Boolean!
3
+ }
@@ -1,100 +1,100 @@
1
- type Query {
2
- facets(options: FacetListOptions): FacetList!
3
- facet(id: ID!): Facet
4
- facetValues(options: FacetValueListOptions): FacetValueList!
5
- }
6
-
7
- type Mutation {
8
- "Create a new Facet"
9
- createFacet(input: CreateFacetInput!): Facet!
10
-
11
- "Update an existing Facet"
12
- updateFacet(input: UpdateFacetInput!): Facet!
13
-
14
- "Delete an existing Facet"
15
- deleteFacet(id: ID!, force: Boolean): DeletionResponse!
16
-
17
- "Delete multiple existing Facets"
18
- deleteFacets(ids: [ID!]!, force: Boolean): [DeletionResponse!]!
19
-
20
- "Create one or more FacetValues"
21
- createFacetValues(input: [CreateFacetValueInput!]!): [FacetValue!]!
22
-
23
- "Update one or more FacetValues"
24
- updateFacetValues(input: [UpdateFacetValueInput!]!): [FacetValue!]!
25
-
26
- "Delete one or more FacetValues"
27
- deleteFacetValues(ids: [ID!]!, force: Boolean): [DeletionResponse!]!
28
-
29
- "Assigns Facets to the specified Channel"
30
- assignFacetsToChannel(input: AssignFacetsToChannelInput!): [Facet!]!
31
-
32
- "Removes Facets from the specified Channel"
33
- removeFacetsFromChannel(input: RemoveFacetsFromChannelInput!): [RemoveFacetFromChannelResult!]!
34
- }
35
-
36
- # generated by generateListOptions function
37
- input FacetListOptions
38
-
39
- input FacetTranslationInput {
40
- id: ID
41
- languageCode: LanguageCode!
42
- name: String
43
- }
44
-
45
- input CreateFacetInput {
46
- code: String!
47
- isPrivate: Boolean!
48
- translations: [FacetTranslationInput!]!
49
- values: [CreateFacetValueWithFacetInput!]
50
- }
51
-
52
- input UpdateFacetInput {
53
- id: ID!
54
- isPrivate: Boolean
55
- code: String
56
- translations: [FacetTranslationInput!]
57
- }
58
- input FacetValueTranslationInput {
59
- id: ID
60
- languageCode: LanguageCode!
61
- name: String
62
- }
63
-
64
- input CreateFacetValueWithFacetInput {
65
- code: String!
66
- translations: [FacetValueTranslationInput!]!
67
- }
68
-
69
- input CreateFacetValueInput {
70
- facetId: ID!
71
- code: String!
72
- translations: [FacetValueTranslationInput!]!
73
- }
74
-
75
- input UpdateFacetValueInput {
76
- id: ID!
77
- code: String
78
- translations: [FacetValueTranslationInput!]
79
- }
80
-
81
- input AssignFacetsToChannelInput {
82
- facetIds: [ID!]!
83
- channelId: ID!
84
- }
85
-
86
- input RemoveFacetsFromChannelInput {
87
- facetIds: [ID!]!
88
- channelId: ID!
89
- force: Boolean
90
- }
91
-
92
- type FacetInUseError implements ErrorResult {
93
- errorCode: ErrorCode!
94
- message: String!
95
- facetCode: String!
96
- productCount: Int!
97
- variantCount: Int!
98
- }
99
-
100
- union RemoveFacetFromChannelResult = Facet | FacetInUseError
1
+ type Query {
2
+ facets(options: FacetListOptions): FacetList!
3
+ facet(id: ID!): Facet
4
+ facetValues(options: FacetValueListOptions): FacetValueList!
5
+ }
6
+
7
+ type Mutation {
8
+ "Create a new Facet"
9
+ createFacet(input: CreateFacetInput!): Facet!
10
+
11
+ "Update an existing Facet"
12
+ updateFacet(input: UpdateFacetInput!): Facet!
13
+
14
+ "Delete an existing Facet"
15
+ deleteFacet(id: ID!, force: Boolean): DeletionResponse!
16
+
17
+ "Delete multiple existing Facets"
18
+ deleteFacets(ids: [ID!]!, force: Boolean): [DeletionResponse!]!
19
+
20
+ "Create one or more FacetValues"
21
+ createFacetValues(input: [CreateFacetValueInput!]!): [FacetValue!]!
22
+
23
+ "Update one or more FacetValues"
24
+ updateFacetValues(input: [UpdateFacetValueInput!]!): [FacetValue!]!
25
+
26
+ "Delete one or more FacetValues"
27
+ deleteFacetValues(ids: [ID!]!, force: Boolean): [DeletionResponse!]!
28
+
29
+ "Assigns Facets to the specified Channel"
30
+ assignFacetsToChannel(input: AssignFacetsToChannelInput!): [Facet!]!
31
+
32
+ "Removes Facets from the specified Channel"
33
+ removeFacetsFromChannel(input: RemoveFacetsFromChannelInput!): [RemoveFacetFromChannelResult!]!
34
+ }
35
+
36
+ # generated by generateListOptions function
37
+ input FacetListOptions
38
+
39
+ input FacetTranslationInput {
40
+ id: ID
41
+ languageCode: LanguageCode!
42
+ name: String
43
+ }
44
+
45
+ input CreateFacetInput {
46
+ code: String!
47
+ isPrivate: Boolean!
48
+ translations: [FacetTranslationInput!]!
49
+ values: [CreateFacetValueWithFacetInput!]
50
+ }
51
+
52
+ input UpdateFacetInput {
53
+ id: ID!
54
+ isPrivate: Boolean
55
+ code: String
56
+ translations: [FacetTranslationInput!]
57
+ }
58
+ input FacetValueTranslationInput {
59
+ id: ID
60
+ languageCode: LanguageCode!
61
+ name: String
62
+ }
63
+
64
+ input CreateFacetValueWithFacetInput {
65
+ code: String!
66
+ translations: [FacetValueTranslationInput!]!
67
+ }
68
+
69
+ input CreateFacetValueInput {
70
+ facetId: ID!
71
+ code: String!
72
+ translations: [FacetValueTranslationInput!]!
73
+ }
74
+
75
+ input UpdateFacetValueInput {
76
+ id: ID!
77
+ code: String
78
+ translations: [FacetValueTranslationInput!]
79
+ }
80
+
81
+ input AssignFacetsToChannelInput {
82
+ facetIds: [ID!]!
83
+ channelId: ID!
84
+ }
85
+
86
+ input RemoveFacetsFromChannelInput {
87
+ facetIds: [ID!]!
88
+ channelId: ID!
89
+ force: Boolean
90
+ }
91
+
92
+ type FacetInUseError implements ErrorResult {
93
+ errorCode: ErrorCode!
94
+ message: String!
95
+ facetCode: String!
96
+ productCount: Int!
97
+ variantCount: Int!
98
+ }
99
+
100
+ union RemoveFacetFromChannelResult = Facet | FacetInUseError
@@ -1,26 +1,26 @@
1
- type Query {
2
- globalSettings: GlobalSettings!
3
- }
4
-
5
- type Mutation {
6
- updateGlobalSettings(input: UpdateGlobalSettingsInput!): UpdateGlobalSettingsResult!
7
- }
8
-
9
- input UpdateGlobalSettingsInput {
10
- availableLanguages: [LanguageCode!]
11
- trackInventory: Boolean
12
- outOfStockThreshold: Int
13
- }
14
-
15
- """
16
- Returned when the default LanguageCode of a Channel is no longer found in the `availableLanguages`
17
- of the GlobalSettings
18
- """
19
- type ChannelDefaultLanguageError implements ErrorResult {
20
- errorCode: ErrorCode!
21
- message: String!
22
- language: String!
23
- channelCode: String!
24
- }
25
-
26
- union UpdateGlobalSettingsResult = GlobalSettings | ChannelDefaultLanguageError
1
+ type Query {
2
+ globalSettings: GlobalSettings!
3
+ }
4
+
5
+ type Mutation {
6
+ updateGlobalSettings(input: UpdateGlobalSettingsInput!): UpdateGlobalSettingsResult!
7
+ }
8
+
9
+ input UpdateGlobalSettingsInput {
10
+ availableLanguages: [LanguageCode!]
11
+ trackInventory: Boolean
12
+ outOfStockThreshold: Int
13
+ }
14
+
15
+ """
16
+ Returned when the default LanguageCode of a Channel is no longer found in the `availableLanguages`
17
+ of the GlobalSettings
18
+ """
19
+ type ChannelDefaultLanguageError implements ErrorResult {
20
+ errorCode: ErrorCode!
21
+ message: String!
22
+ language: String!
23
+ channelCode: String!
24
+ }
25
+
26
+ union UpdateGlobalSettingsResult = GlobalSettings | ChannelDefaultLanguageError
@@ -1,28 +1,28 @@
1
- type GlobalSettings {
2
- id: ID!
3
- createdAt: DateTime!
4
- updatedAt: DateTime!
5
- availableLanguages: [LanguageCode!]!
6
- trackInventory: Boolean!
7
- outOfStockThreshold: Int!
8
- serverConfig: ServerConfig!
9
- }
10
-
11
- type OrderProcessState {
12
- name: String!
13
- to: [String!]!
14
- }
15
-
16
- type PermissionDefinition {
17
- name: String!
18
- description: String!
19
- assignable: Boolean!
20
- }
21
-
22
- # Programatically extended by the addGraphQLCustomFields function
23
- type ServerConfig {
24
- orderProcess: [OrderProcessState!]!
25
- permittedAssetTypes: [String!]!
26
- permissions: [PermissionDefinition!]!
27
- moneyStrategyPrecision: Int!
28
- }
1
+ type GlobalSettings {
2
+ id: ID!
3
+ createdAt: DateTime!
4
+ updatedAt: DateTime!
5
+ availableLanguages: [LanguageCode!]!
6
+ trackInventory: Boolean!
7
+ outOfStockThreshold: Int!
8
+ serverConfig: ServerConfig!
9
+ }
10
+
11
+ type OrderProcessState {
12
+ name: String!
13
+ to: [String!]!
14
+ }
15
+
16
+ type PermissionDefinition {
17
+ name: String!
18
+ description: String!
19
+ assignable: Boolean!
20
+ }
21
+
22
+ # Programatically extended by the addGraphQLCustomFields function
23
+ type ServerConfig {
24
+ orderProcess: [OrderProcessState!]!
25
+ permittedAssetTypes: [String!]!
26
+ permissions: [PermissionDefinition!]!
27
+ moneyStrategyPrecision: Int!
28
+ }
@@ -1,4 +1,4 @@
1
- type HistoryEntry implements Node {
2
- isPublic: Boolean!
3
- administrator: Administrator
4
- }
1
+ type HistoryEntry implements Node {
2
+ isPublic: Boolean!
3
+ administrator: Administrator
4
+ }
@@ -1,3 +1,3 @@
1
- type Mutation {
2
- importProducts(csvFile: Upload!): ImportInfo
3
- }
1
+ type Mutation {
2
+ importProducts(csvFile: Upload!): ImportInfo
3
+ }
@@ -1,5 +1,5 @@
1
- type ImportInfo {
2
- errors: [String!]
3
- processed: Int!
4
- imported: Int!
5
- }
1
+ type ImportInfo {
2
+ errors: [String!]
3
+ processed: Int!
4
+ imported: Int!
5
+ }