@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.
Files changed (101) hide show
  1. package/LICENSE.md +42 -42
  2. package/README.md +11 -11
  3. package/dist/api/config/generate-error-code-enum.js +3 -3
  4. package/dist/api/config/generate-permissions.js +29 -29
  5. package/dist/api/config/graphql-custom-fields.js +158 -158
  6. package/dist/api/schema/admin-api/administrator.api.graphql +47 -47
  7. package/dist/api/schema/admin-api/administrator.type.graphql +14 -14
  8. package/dist/api/schema/admin-api/asset.api.graphql +68 -68
  9. package/dist/api/schema/admin-api/auth.api.graphql +22 -22
  10. package/dist/api/schema/admin-api/channel.api.graphql +69 -69
  11. package/dist/api/schema/admin-api/collection-admin.type.graphql +4 -4
  12. package/dist/api/schema/admin-api/collection.api.graphql +94 -94
  13. package/dist/api/schema/admin-api/country.api.graphql +41 -41
  14. package/dist/api/schema/admin-api/customer-admin.type.graphql +4 -4
  15. package/dist/api/schema/admin-api/customer-group.api.graphql +37 -37
  16. package/dist/api/schema/admin-api/customer.api.graphql +63 -63
  17. package/dist/api/schema/admin-api/duplicate-entity.api.graphql +40 -40
  18. package/dist/api/schema/admin-api/facet-admin.type.graphql +3 -3
  19. package/dist/api/schema/admin-api/facet.api.graphql +100 -100
  20. package/dist/api/schema/admin-api/global-settings.api.graphql +26 -26
  21. package/dist/api/schema/admin-api/global-settings.type.graphql +28 -28
  22. package/dist/api/schema/admin-api/history-entry-admin.type.graphql +4 -4
  23. package/dist/api/schema/admin-api/import.api.graphql +3 -3
  24. package/dist/api/schema/admin-api/import.type.graphql +5 -5
  25. package/dist/api/schema/admin-api/job.api.graphql +63 -63
  26. package/dist/api/schema/admin-api/order-admin.type.graphql +37 -37
  27. package/dist/api/schema/admin-api/order.api.graphql +463 -463
  28. package/dist/api/schema/admin-api/payment-method.api.graphql +65 -65
  29. package/dist/api/schema/admin-api/payment.api.graphql +2 -2
  30. package/dist/api/schema/admin-api/product-admin.type.graphql +21 -21
  31. package/dist/api/schema/admin-api/product-option-group.api.graphql +58 -58
  32. package/dist/api/schema/admin-api/product-search-admin.type.graphql +5 -5
  33. package/dist/api/schema/admin-api/product-search.api.graphql +10 -10
  34. package/dist/api/schema/admin-api/product.api.graphql +225 -225
  35. package/dist/api/schema/admin-api/promotion.api.graphql +70 -70
  36. package/dist/api/schema/admin-api/province.api.graphql +37 -37
  37. package/dist/api/schema/admin-api/role.api.graphql +33 -33
  38. package/dist/api/schema/admin-api/seller.api.graphql +31 -31
  39. package/dist/api/schema/admin-api/shipping-method.api.graphql +91 -91
  40. package/dist/api/schema/admin-api/stock-level.type.graphql +9 -9
  41. package/dist/api/schema/admin-api/stock-location.api.graphql +51 -51
  42. package/dist/api/schema/admin-api/stock-location.type.graphql +7 -7
  43. package/dist/api/schema/admin-api/stock-movement.type.graphql +80 -80
  44. package/dist/api/schema/admin-api/tag.api.graphql +25 -25
  45. package/dist/api/schema/admin-api/tax-category.api.graphql +36 -36
  46. package/dist/api/schema/admin-api/tax-rate.api.graphql +37 -37
  47. package/dist/api/schema/admin-api/zone.api.graphql +42 -42
  48. package/dist/api/schema/common/address.type.graphql +16 -16
  49. package/dist/api/schema/common/asset.type.graphql +31 -31
  50. package/dist/api/schema/common/auth.type.graphql +12 -12
  51. package/dist/api/schema/common/channel.type.graphql +24 -24
  52. package/dist/api/schema/common/collection.type.graphql +40 -40
  53. package/dist/api/schema/common/common-enums.graphql +35 -35
  54. package/dist/api/schema/common/common-error-results.graphql +107 -107
  55. package/dist/api/schema/common/common-types.graphql +285 -285
  56. package/dist/api/schema/common/currency-code.graphql +322 -322
  57. package/dist/api/schema/common/custom-field-types.graphql +265 -265
  58. package/dist/api/schema/common/customer-group.type.graphql +10 -10
  59. package/dist/api/schema/common/customer.type.graphql +18 -18
  60. package/dist/api/schema/common/facet-value.type.graphql +19 -19
  61. package/dist/api/schema/common/facet.type.graphql +35 -35
  62. package/dist/api/schema/common/history-entry.type.graphql +43 -43
  63. package/dist/api/schema/common/language-code.graphql +325 -325
  64. package/dist/api/schema/common/order.type.graphql +257 -257
  65. package/dist/api/schema/common/payment-method.type.graphql +21 -21
  66. package/dist/api/schema/common/product-option-group.type.graphql +38 -38
  67. package/dist/api/schema/common/product-search.type.graphql +69 -69
  68. package/dist/api/schema/common/product.type.graphql +70 -70
  69. package/dist/api/schema/common/promotion.type.graphql +31 -31
  70. package/dist/api/schema/common/region.type.graphql +65 -65
  71. package/dist/api/schema/common/role.type.graphql +14 -14
  72. package/dist/api/schema/common/seller.type.graphql +6 -6
  73. package/dist/api/schema/common/shipping-method.type.graphql +27 -27
  74. package/dist/api/schema/common/tag.type.graphql +11 -11
  75. package/dist/api/schema/common/tax-category.type.graphql +7 -7
  76. package/dist/api/schema/common/tax-rate.type.graphql +16 -16
  77. package/dist/api/schema/common/user.type.graphql +17 -17
  78. package/dist/api/schema/common/zone.type.graphql +8 -8
  79. package/dist/api/schema/shop-api/shop-error-results.graphql +114 -114
  80. package/dist/api/schema/shop-api/shop.api.graphql +287 -287
  81. package/dist/config/auth/native-authentication-strategy.js +5 -5
  82. package/dist/i18n/messages/de.json +117 -117
  83. package/dist/i18n/messages/en.json +140 -140
  84. package/dist/i18n/messages/es.json +38 -38
  85. package/dist/i18n/messages/fr.json +138 -138
  86. package/dist/i18n/messages/pt_BR.json +99 -99
  87. package/dist/i18n/messages/pt_PT.json +118 -118
  88. package/dist/i18n/messages/ru.json +118 -118
  89. package/dist/i18n/messages/uk.json +118 -118
  90. package/dist/migrate.js +15 -15
  91. package/dist/plugin/default-search-plugin/api/api-extensions.js +8 -8
  92. package/dist/plugin/default-search-plugin/search-strategy/mysql-search-strategy.js +3 -3
  93. package/dist/plugin/default-search-plugin/search-strategy/postgres-search-strategy.js +5 -5
  94. package/dist/plugin/default-search-plugin/search-strategy/sqlite-search-strategy.js +4 -4
  95. package/package.json +4 -4
  96. package/cli/cli-utils.d.ts +0 -1
  97. package/cli/cli-utils.js +0 -8
  98. package/cli/cli-utils.js.map +0 -1
  99. package/cli/vendure-cli.d.ts +0 -2
  100. package/cli/vendure-cli.js +0 -119
  101. package/cli/vendure-cli.js.map +0 -1
@@ -1,285 +1,285 @@
1
- # Third-party custom scalars
2
- scalar JSON
3
- scalar DateTime
4
- scalar Upload
5
-
6
- # Our custom scalars
7
- scalar Money
8
-
9
- interface PaginatedList {
10
- items: [Node!]!
11
- totalItems: Int!
12
- }
13
-
14
- interface Node {
15
- id: ID!
16
- }
17
-
18
- interface ErrorResult {
19
- errorCode: ErrorCode!
20
- message: String!
21
- }
22
-
23
- type Adjustment {
24
- adjustmentSource: String!
25
- type: AdjustmentType!
26
- description: String!
27
- amount: Money!
28
- data: JSON
29
- }
30
-
31
- type TaxLine {
32
- description: String!
33
- taxRate: Float!
34
- }
35
-
36
- type ConfigArg {
37
- name: String!
38
- value: String!
39
- }
40
-
41
- type ConfigArgDefinition {
42
- name: String!
43
- type: String!
44
- list: Boolean!
45
- required: Boolean!
46
- defaultValue: JSON
47
- label: String
48
- description: String
49
- ui: JSON
50
- }
51
-
52
- type ConfigurableOperation {
53
- code: String!
54
- args: [ConfigArg!]!
55
- }
56
-
57
- type ConfigurableOperationDefinition {
58
- code: String!
59
- args: [ConfigArgDefinition!]!
60
- description: String!
61
- }
62
-
63
-
64
- type DeletionResponse {
65
- result: DeletionResult!
66
- message: String
67
- }
68
-
69
- input ConfigArgInput {
70
- name: String!
71
- "A JSON stringified representation of the actual value"
72
- value: String!
73
- }
74
-
75
- input ConfigurableOperationInput {
76
- code: String!
77
- arguments: [ConfigArgInput!]!
78
- }
79
-
80
- "Operators for filtering on a String field"
81
- input StringOperators {
82
- eq: String
83
- notEq: String
84
- contains: String
85
- notContains: String
86
- in: [String!]
87
- notIn: [String!]
88
- regex: String
89
- isNull: Boolean
90
- }
91
-
92
- "Operators for filtering on an ID field"
93
- input IDOperators {
94
- eq: String
95
- notEq: String
96
- in: [String!]
97
- notIn: [String!]
98
- isNull: Boolean
99
- }
100
-
101
- "Operators for filtering on a Boolean field"
102
- input BooleanOperators {
103
- eq: Boolean
104
- isNull: Boolean
105
- }
106
-
107
- input NumberRange {
108
- start: Float!
109
- end: Float!
110
- }
111
-
112
- "Operators for filtering on a Int or Float field"
113
- input NumberOperators {
114
- eq: Float
115
- lt: Float
116
- lte: Float
117
- gt: Float
118
- gte: Float
119
- between: NumberRange
120
- isNull: Boolean
121
- }
122
-
123
- input DateRange {
124
- start: DateTime!
125
- end: DateTime!
126
- }
127
-
128
- "Operators for filtering on a DateTime field"
129
- input DateOperators {
130
- eq: DateTime
131
- before: DateTime
132
- after: DateTime
133
- between: DateRange
134
- isNull: Boolean
135
- }
136
-
137
- "Operators for filtering on a list of String fields"
138
- input StringListOperators {
139
- inList: String!
140
- }
141
-
142
- "Operators for filtering on a list of Number fields"
143
- input NumberListOperators {
144
- inList: Float!
145
- }
146
-
147
- "Operators for filtering on a list of Boolean fields"
148
- input BooleanListOperators {
149
- inList: Boolean!
150
- }
151
-
152
- "Operators for filtering on a list of ID fields"
153
- input IDListOperators {
154
- inList: ID!
155
- }
156
-
157
- "Operators for filtering on a list of Date fields"
158
- input DateListOperators {
159
- inList: DateTime!
160
- }
161
-
162
- """
163
- Used to construct boolean expressions for filtering search results
164
- by FacetValue ID. Examples:
165
-
166
- * ID=1 OR ID=2: `{ facetValueFilters: [{ or: [1,2] }] }`
167
- * ID=1 AND ID=2: `{ facetValueFilters: [{ and: 1 }, { and: 2 }] }`
168
- * ID=1 AND (ID=2 OR ID=3): `{ facetValueFilters: [{ and: 1 }, { or: [2,3] }] }`
169
- """
170
- input FacetValueFilterInput {
171
- and: ID
172
- or: [ID!]
173
- }
174
-
175
- input SearchInput {
176
- term: String
177
- facetValueIds: [ID!] @deprecated(reason: "Use `facetValueFilters` instead")
178
- facetValueOperator: LogicalOperator @deprecated(reason: "Use `facetValueFilters` instead")
179
- facetValueFilters: [FacetValueFilterInput!]
180
- collectionId: ID
181
- collectionSlug: String
182
- groupByProduct: Boolean
183
- take: Int
184
- skip: Int
185
- sort: SearchResultSortParameter
186
- }
187
-
188
- input SearchResultSortParameter {
189
- name: SortOrder
190
- price: SortOrder
191
- }
192
-
193
- input CreateCustomerInput {
194
- title: String
195
- firstName: String!
196
- lastName: String!
197
- phoneNumber: String
198
- emailAddress: String!
199
- }
200
-
201
- """
202
- Input used to create an Address.
203
-
204
- The countryCode must correspond to a `code` property of a Country that has been defined in the
205
- Vendure server. The `code` property is typically a 2-character ISO code such as "GB", "US", "DE" etc.
206
- If an invalid code is passed, the mutation will fail.
207
- """
208
- input CreateAddressInput {
209
- fullName: String
210
- company: String
211
- streetLine1: String!
212
- streetLine2: String
213
- city: String
214
- province: String
215
- postalCode: String
216
- countryCode: String!
217
- phoneNumber: String
218
- defaultShippingAddress: Boolean
219
- defaultBillingAddress: Boolean
220
- }
221
-
222
- """
223
- Input used to update an Address.
224
-
225
- The countryCode must correspond to a `code` property of a Country that has been defined in the
226
- Vendure server. The `code` property is typically a 2-character ISO code such as "GB", "US", "DE" etc.
227
- If an invalid code is passed, the mutation will fail.
228
- """
229
- input UpdateAddressInput {
230
- id: ID!
231
- fullName: String
232
- company: String
233
- streetLine1: String
234
- streetLine2: String
235
- city: String
236
- province: String
237
- postalCode: String
238
- countryCode: String
239
- phoneNumber: String
240
- defaultShippingAddress: Boolean
241
- defaultBillingAddress: Boolean
242
- }
243
-
244
- """
245
- Indicates that an operation succeeded, where we do not want to return any more specific information.
246
- """
247
- type Success {
248
- success: Boolean!
249
- }
250
-
251
- type ShippingMethodQuote {
252
- id: ID!
253
- price: Money!
254
- priceWithTax: Money!
255
- code: String!
256
- name: String!
257
- description: String!
258
- "Any optional metadata returned by the ShippingCalculator in the ShippingCalculationResult"
259
- metadata: JSON
260
- }
261
-
262
- type PaymentMethodQuote {
263
- id: ID!
264
- code: String!
265
- name: String!
266
- description: String!
267
- isEligible: Boolean!
268
- eligibilityMessage: String
269
- }
270
-
271
- union UpdateOrderItemsResult =
272
- Order
273
- | OrderModificationError
274
- | OrderLimitError
275
- | NegativeQuantityError
276
- | InsufficientStockError
277
- | OrderInterceptorError
278
- union RemoveOrderItemsResult = Order | OrderModificationError | OrderInterceptorError
279
- union SetOrderShippingMethodResult =
280
- Order
281
- | OrderModificationError
282
- | IneligibleShippingMethodError
283
- | NoActiveOrderError
284
- union ApplyCouponCodeResult = Order | CouponCodeExpiredError | CouponCodeInvalidError | CouponCodeLimitError
285
-
1
+ # Third-party custom scalars
2
+ scalar JSON
3
+ scalar DateTime
4
+ scalar Upload
5
+
6
+ # Our custom scalars
7
+ scalar Money
8
+
9
+ interface PaginatedList {
10
+ items: [Node!]!
11
+ totalItems: Int!
12
+ }
13
+
14
+ interface Node {
15
+ id: ID!
16
+ }
17
+
18
+ interface ErrorResult {
19
+ errorCode: ErrorCode!
20
+ message: String!
21
+ }
22
+
23
+ type Adjustment {
24
+ adjustmentSource: String!
25
+ type: AdjustmentType!
26
+ description: String!
27
+ amount: Money!
28
+ data: JSON
29
+ }
30
+
31
+ type TaxLine {
32
+ description: String!
33
+ taxRate: Float!
34
+ }
35
+
36
+ type ConfigArg {
37
+ name: String!
38
+ value: String!
39
+ }
40
+
41
+ type ConfigArgDefinition {
42
+ name: String!
43
+ type: String!
44
+ list: Boolean!
45
+ required: Boolean!
46
+ defaultValue: JSON
47
+ label: String
48
+ description: String
49
+ ui: JSON
50
+ }
51
+
52
+ type ConfigurableOperation {
53
+ code: String!
54
+ args: [ConfigArg!]!
55
+ }
56
+
57
+ type ConfigurableOperationDefinition {
58
+ code: String!
59
+ args: [ConfigArgDefinition!]!
60
+ description: String!
61
+ }
62
+
63
+
64
+ type DeletionResponse {
65
+ result: DeletionResult!
66
+ message: String
67
+ }
68
+
69
+ input ConfigArgInput {
70
+ name: String!
71
+ "A JSON stringified representation of the actual value"
72
+ value: String!
73
+ }
74
+
75
+ input ConfigurableOperationInput {
76
+ code: String!
77
+ arguments: [ConfigArgInput!]!
78
+ }
79
+
80
+ "Operators for filtering on a String field"
81
+ input StringOperators {
82
+ eq: String
83
+ notEq: String
84
+ contains: String
85
+ notContains: String
86
+ in: [String!]
87
+ notIn: [String!]
88
+ regex: String
89
+ isNull: Boolean
90
+ }
91
+
92
+ "Operators for filtering on an ID field"
93
+ input IDOperators {
94
+ eq: String
95
+ notEq: String
96
+ in: [String!]
97
+ notIn: [String!]
98
+ isNull: Boolean
99
+ }
100
+
101
+ "Operators for filtering on a Boolean field"
102
+ input BooleanOperators {
103
+ eq: Boolean
104
+ isNull: Boolean
105
+ }
106
+
107
+ input NumberRange {
108
+ start: Float!
109
+ end: Float!
110
+ }
111
+
112
+ "Operators for filtering on a Int or Float field"
113
+ input NumberOperators {
114
+ eq: Float
115
+ lt: Float
116
+ lte: Float
117
+ gt: Float
118
+ gte: Float
119
+ between: NumberRange
120
+ isNull: Boolean
121
+ }
122
+
123
+ input DateRange {
124
+ start: DateTime!
125
+ end: DateTime!
126
+ }
127
+
128
+ "Operators for filtering on a DateTime field"
129
+ input DateOperators {
130
+ eq: DateTime
131
+ before: DateTime
132
+ after: DateTime
133
+ between: DateRange
134
+ isNull: Boolean
135
+ }
136
+
137
+ "Operators for filtering on a list of String fields"
138
+ input StringListOperators {
139
+ inList: String!
140
+ }
141
+
142
+ "Operators for filtering on a list of Number fields"
143
+ input NumberListOperators {
144
+ inList: Float!
145
+ }
146
+
147
+ "Operators for filtering on a list of Boolean fields"
148
+ input BooleanListOperators {
149
+ inList: Boolean!
150
+ }
151
+
152
+ "Operators for filtering on a list of ID fields"
153
+ input IDListOperators {
154
+ inList: ID!
155
+ }
156
+
157
+ "Operators for filtering on a list of Date fields"
158
+ input DateListOperators {
159
+ inList: DateTime!
160
+ }
161
+
162
+ """
163
+ Used to construct boolean expressions for filtering search results
164
+ by FacetValue ID. Examples:
165
+
166
+ * ID=1 OR ID=2: `{ facetValueFilters: [{ or: [1,2] }] }`
167
+ * ID=1 AND ID=2: `{ facetValueFilters: [{ and: 1 }, { and: 2 }] }`
168
+ * ID=1 AND (ID=2 OR ID=3): `{ facetValueFilters: [{ and: 1 }, { or: [2,3] }] }`
169
+ """
170
+ input FacetValueFilterInput {
171
+ and: ID
172
+ or: [ID!]
173
+ }
174
+
175
+ input SearchInput {
176
+ term: String
177
+ facetValueIds: [ID!] @deprecated(reason: "Use `facetValueFilters` instead")
178
+ facetValueOperator: LogicalOperator @deprecated(reason: "Use `facetValueFilters` instead")
179
+ facetValueFilters: [FacetValueFilterInput!]
180
+ collectionId: ID
181
+ collectionSlug: String
182
+ groupByProduct: Boolean
183
+ take: Int
184
+ skip: Int
185
+ sort: SearchResultSortParameter
186
+ }
187
+
188
+ input SearchResultSortParameter {
189
+ name: SortOrder
190
+ price: SortOrder
191
+ }
192
+
193
+ input CreateCustomerInput {
194
+ title: String
195
+ firstName: String!
196
+ lastName: String!
197
+ phoneNumber: String
198
+ emailAddress: String!
199
+ }
200
+
201
+ """
202
+ Input used to create an Address.
203
+
204
+ The countryCode must correspond to a `code` property of a Country that has been defined in the
205
+ Vendure server. The `code` property is typically a 2-character ISO code such as "GB", "US", "DE" etc.
206
+ If an invalid code is passed, the mutation will fail.
207
+ """
208
+ input CreateAddressInput {
209
+ fullName: String
210
+ company: String
211
+ streetLine1: String!
212
+ streetLine2: String
213
+ city: String
214
+ province: String
215
+ postalCode: String
216
+ countryCode: String!
217
+ phoneNumber: String
218
+ defaultShippingAddress: Boolean
219
+ defaultBillingAddress: Boolean
220
+ }
221
+
222
+ """
223
+ Input used to update an Address.
224
+
225
+ The countryCode must correspond to a `code` property of a Country that has been defined in the
226
+ Vendure server. The `code` property is typically a 2-character ISO code such as "GB", "US", "DE" etc.
227
+ If an invalid code is passed, the mutation will fail.
228
+ """
229
+ input UpdateAddressInput {
230
+ id: ID!
231
+ fullName: String
232
+ company: String
233
+ streetLine1: String
234
+ streetLine2: String
235
+ city: String
236
+ province: String
237
+ postalCode: String
238
+ countryCode: String
239
+ phoneNumber: String
240
+ defaultShippingAddress: Boolean
241
+ defaultBillingAddress: Boolean
242
+ }
243
+
244
+ """
245
+ Indicates that an operation succeeded, where we do not want to return any more specific information.
246
+ """
247
+ type Success {
248
+ success: Boolean!
249
+ }
250
+
251
+ type ShippingMethodQuote {
252
+ id: ID!
253
+ price: Money!
254
+ priceWithTax: Money!
255
+ code: String!
256
+ name: String!
257
+ description: String!
258
+ "Any optional metadata returned by the ShippingCalculator in the ShippingCalculationResult"
259
+ metadata: JSON
260
+ }
261
+
262
+ type PaymentMethodQuote {
263
+ id: ID!
264
+ code: String!
265
+ name: String!
266
+ description: String!
267
+ isEligible: Boolean!
268
+ eligibilityMessage: String
269
+ }
270
+
271
+ union UpdateOrderItemsResult =
272
+ Order
273
+ | OrderModificationError
274
+ | OrderLimitError
275
+ | NegativeQuantityError
276
+ | InsufficientStockError
277
+ | OrderInterceptorError
278
+ union RemoveOrderItemsResult = Order | OrderModificationError | OrderInterceptorError
279
+ union SetOrderShippingMethodResult =
280
+ Order
281
+ | OrderModificationError
282
+ | IneligibleShippingMethodError
283
+ | NoActiveOrderError
284
+ union ApplyCouponCodeResult = Order | CouponCodeExpiredError | CouponCodeInvalidError | CouponCodeLimitError
285
+