@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,8 +1,8 @@
|
|
|
1
|
-
type Zone implements Node {
|
|
2
|
-
id: ID!
|
|
3
|
-
createdAt: DateTime!
|
|
4
|
-
updatedAt: DateTime!
|
|
5
|
-
name: String!
|
|
6
|
-
members: [Region!]!
|
|
7
|
-
}
|
|
8
|
-
|
|
1
|
+
type Zone implements Node {
|
|
2
|
+
id: ID!
|
|
3
|
+
createdAt: DateTime!
|
|
4
|
+
updatedAt: DateTime!
|
|
5
|
+
name: String!
|
|
6
|
+
members: [Region!]!
|
|
7
|
+
}
|
|
8
|
+
|
|
@@ -1,114 +1,114 @@
|
|
|
1
|
-
"Returned when attempting to add a Payment to an Order that is not in the `ArrangingPayment` state."
|
|
2
|
-
type OrderPaymentStateError implements ErrorResult {
|
|
3
|
-
errorCode: ErrorCode!
|
|
4
|
-
message: String!
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
"Returned when attempting to add a Payment using a PaymentMethod for which the Order is not eligible."
|
|
8
|
-
type IneligiblePaymentMethodError implements ErrorResult {
|
|
9
|
-
errorCode: ErrorCode!
|
|
10
|
-
message: String!
|
|
11
|
-
eligibilityCheckerMessage: String
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
"Returned when a Payment fails due to an error."
|
|
15
|
-
type PaymentFailedError implements ErrorResult {
|
|
16
|
-
errorCode: ErrorCode!
|
|
17
|
-
message: String!
|
|
18
|
-
paymentErrorMessage: String!
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
"Returned when a Payment is declined by the payment provider."
|
|
22
|
-
type PaymentDeclinedError implements ErrorResult {
|
|
23
|
-
errorCode: ErrorCode!
|
|
24
|
-
message: String!
|
|
25
|
-
paymentErrorMessage: String!
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
"Returned when attempting to set the Customer for an Order when already logged in."
|
|
29
|
-
type AlreadyLoggedInError implements ErrorResult {
|
|
30
|
-
errorCode: ErrorCode!
|
|
31
|
-
message: String!
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
"Returned when attempting to register or verify a customer account without a password, when one is required."
|
|
35
|
-
type MissingPasswordError implements ErrorResult {
|
|
36
|
-
errorCode: ErrorCode!
|
|
37
|
-
message: String!
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
"Returned when attempting to register or verify a customer account where the given password fails password validation."
|
|
41
|
-
type PasswordValidationError implements ErrorResult {
|
|
42
|
-
errorCode: ErrorCode!
|
|
43
|
-
message: String!
|
|
44
|
-
validationErrorMessage: String!
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
"Returned when attempting to verify a customer account with a password, when a password has already been set."
|
|
48
|
-
type PasswordAlreadySetError implements ErrorResult {
|
|
49
|
-
errorCode: ErrorCode!
|
|
50
|
-
message: String!
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
"""
|
|
54
|
-
Returned if the verification token (used to verify a Customer's email address) is either
|
|
55
|
-
invalid or does not match any expected tokens.
|
|
56
|
-
"""
|
|
57
|
-
type VerificationTokenInvalidError implements ErrorResult {
|
|
58
|
-
errorCode: ErrorCode!
|
|
59
|
-
message: String!
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
"""
|
|
63
|
-
Returned if the verification token (used to verify a Customer's email address) is valid, but has
|
|
64
|
-
expired according to the `verificationTokenDuration` setting in the AuthOptions.
|
|
65
|
-
"""
|
|
66
|
-
type VerificationTokenExpiredError implements ErrorResult {
|
|
67
|
-
errorCode: ErrorCode!
|
|
68
|
-
message: String!
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
"""
|
|
72
|
-
Returned if the token used to change a Customer's email address is either
|
|
73
|
-
invalid or does not match any expected tokens.
|
|
74
|
-
"""
|
|
75
|
-
type IdentifierChangeTokenInvalidError implements ErrorResult {
|
|
76
|
-
errorCode: ErrorCode!
|
|
77
|
-
message: String!
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
"""
|
|
81
|
-
Returned if the token used to change a Customer's email address is valid, but has
|
|
82
|
-
expired according to the `verificationTokenDuration` setting in the AuthOptions.
|
|
83
|
-
"""
|
|
84
|
-
type IdentifierChangeTokenExpiredError implements ErrorResult {
|
|
85
|
-
errorCode: ErrorCode!
|
|
86
|
-
message: String!
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
"""
|
|
90
|
-
Returned if the token used to reset a Customer's password is either
|
|
91
|
-
invalid or does not match any expected tokens.
|
|
92
|
-
"""
|
|
93
|
-
type PasswordResetTokenInvalidError implements ErrorResult {
|
|
94
|
-
errorCode: ErrorCode!
|
|
95
|
-
message: String!
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
"""
|
|
99
|
-
Returned if the token used to reset a Customer's password is valid, but has
|
|
100
|
-
expired according to the `verificationTokenDuration` setting in the AuthOptions.
|
|
101
|
-
"""
|
|
102
|
-
type PasswordResetTokenExpiredError implements ErrorResult {
|
|
103
|
-
errorCode: ErrorCode!
|
|
104
|
-
message: String!
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
"""
|
|
108
|
-
Returned if `authOptions.requireVerification` is set to `true` (which is the default)
|
|
109
|
-
and an unverified user attempts to authenticate.
|
|
110
|
-
"""
|
|
111
|
-
type NotVerifiedError implements ErrorResult {
|
|
112
|
-
errorCode: ErrorCode!
|
|
113
|
-
message: String!
|
|
114
|
-
}
|
|
1
|
+
"Returned when attempting to add a Payment to an Order that is not in the `ArrangingPayment` state."
|
|
2
|
+
type OrderPaymentStateError implements ErrorResult {
|
|
3
|
+
errorCode: ErrorCode!
|
|
4
|
+
message: String!
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
"Returned when attempting to add a Payment using a PaymentMethod for which the Order is not eligible."
|
|
8
|
+
type IneligiblePaymentMethodError implements ErrorResult {
|
|
9
|
+
errorCode: ErrorCode!
|
|
10
|
+
message: String!
|
|
11
|
+
eligibilityCheckerMessage: String
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
"Returned when a Payment fails due to an error."
|
|
15
|
+
type PaymentFailedError implements ErrorResult {
|
|
16
|
+
errorCode: ErrorCode!
|
|
17
|
+
message: String!
|
|
18
|
+
paymentErrorMessage: String!
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
"Returned when a Payment is declined by the payment provider."
|
|
22
|
+
type PaymentDeclinedError implements ErrorResult {
|
|
23
|
+
errorCode: ErrorCode!
|
|
24
|
+
message: String!
|
|
25
|
+
paymentErrorMessage: String!
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
"Returned when attempting to set the Customer for an Order when already logged in."
|
|
29
|
+
type AlreadyLoggedInError implements ErrorResult {
|
|
30
|
+
errorCode: ErrorCode!
|
|
31
|
+
message: String!
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
"Returned when attempting to register or verify a customer account without a password, when one is required."
|
|
35
|
+
type MissingPasswordError implements ErrorResult {
|
|
36
|
+
errorCode: ErrorCode!
|
|
37
|
+
message: String!
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
"Returned when attempting to register or verify a customer account where the given password fails password validation."
|
|
41
|
+
type PasswordValidationError implements ErrorResult {
|
|
42
|
+
errorCode: ErrorCode!
|
|
43
|
+
message: String!
|
|
44
|
+
validationErrorMessage: String!
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
"Returned when attempting to verify a customer account with a password, when a password has already been set."
|
|
48
|
+
type PasswordAlreadySetError implements ErrorResult {
|
|
49
|
+
errorCode: ErrorCode!
|
|
50
|
+
message: String!
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
"""
|
|
54
|
+
Returned if the verification token (used to verify a Customer's email address) is either
|
|
55
|
+
invalid or does not match any expected tokens.
|
|
56
|
+
"""
|
|
57
|
+
type VerificationTokenInvalidError implements ErrorResult {
|
|
58
|
+
errorCode: ErrorCode!
|
|
59
|
+
message: String!
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
"""
|
|
63
|
+
Returned if the verification token (used to verify a Customer's email address) is valid, but has
|
|
64
|
+
expired according to the `verificationTokenDuration` setting in the AuthOptions.
|
|
65
|
+
"""
|
|
66
|
+
type VerificationTokenExpiredError implements ErrorResult {
|
|
67
|
+
errorCode: ErrorCode!
|
|
68
|
+
message: String!
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
"""
|
|
72
|
+
Returned if the token used to change a Customer's email address is either
|
|
73
|
+
invalid or does not match any expected tokens.
|
|
74
|
+
"""
|
|
75
|
+
type IdentifierChangeTokenInvalidError implements ErrorResult {
|
|
76
|
+
errorCode: ErrorCode!
|
|
77
|
+
message: String!
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
"""
|
|
81
|
+
Returned if the token used to change a Customer's email address is valid, but has
|
|
82
|
+
expired according to the `verificationTokenDuration` setting in the AuthOptions.
|
|
83
|
+
"""
|
|
84
|
+
type IdentifierChangeTokenExpiredError implements ErrorResult {
|
|
85
|
+
errorCode: ErrorCode!
|
|
86
|
+
message: String!
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
"""
|
|
90
|
+
Returned if the token used to reset a Customer's password is either
|
|
91
|
+
invalid or does not match any expected tokens.
|
|
92
|
+
"""
|
|
93
|
+
type PasswordResetTokenInvalidError implements ErrorResult {
|
|
94
|
+
errorCode: ErrorCode!
|
|
95
|
+
message: String!
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
"""
|
|
99
|
+
Returned if the token used to reset a Customer's password is valid, but has
|
|
100
|
+
expired according to the `verificationTokenDuration` setting in the AuthOptions.
|
|
101
|
+
"""
|
|
102
|
+
type PasswordResetTokenExpiredError implements ErrorResult {
|
|
103
|
+
errorCode: ErrorCode!
|
|
104
|
+
message: String!
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
"""
|
|
108
|
+
Returned if `authOptions.requireVerification` is set to `true` (which is the default)
|
|
109
|
+
and an unverified user attempts to authenticate.
|
|
110
|
+
"""
|
|
111
|
+
type NotVerifiedError implements ErrorResult {
|
|
112
|
+
errorCode: ErrorCode!
|
|
113
|
+
message: String!
|
|
114
|
+
}
|