@vendure/core 2.2.4 → 2.2.5
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/dist/api/api-internal-modules.d.ts +2 -2
- package/dist/api/config/generate-resolvers.d.ts +4 -4
- package/dist/api/config/graphql-custom-fields.js +150 -150
- package/dist/api/resolvers/admin/order.resolver.d.ts +1 -1
- package/dist/api/resolvers/entity/order-entity.resolver.d.ts +1 -0
- package/dist/api/resolvers/entity/order-entity.resolver.js +15 -0
- package/dist/api/resolvers/entity/order-entity.resolver.js.map +1 -1
- package/dist/config/entity/entity-duplicators/index.d.ts +4 -4
- package/dist/config/fulfillment/default-fulfillment-process.js +0 -1
- package/dist/config/fulfillment/default-fulfillment-process.js.map +1 -1
- package/dist/config/promotion/index.d.ts +53 -53
- package/dist/connection/connection.module.d.ts +1 -1
- package/dist/service/helpers/custom-field-relation/custom-field-relation.service.js +6 -2
- package/dist/service/helpers/custom-field-relation/custom-field-relation.service.js.map +1 -1
- package/dist/service/helpers/entity-hydrator/entity-hydrator.service.d.ts +0 -7
- package/dist/service/helpers/entity-hydrator/entity-hydrator.service.js +5 -52
- package/dist/service/helpers/entity-hydrator/entity-hydrator.service.js.map +1 -1
- package/dist/service/helpers/entity-hydrator/merge-deep.d.ts +9 -0
- package/dist/service/helpers/entity-hydrator/merge-deep.js +50 -0
- package/dist/service/helpers/entity-hydrator/merge-deep.js.map +1 -0
- package/dist/service/helpers/order-modifier/order-modifier.d.ts +1 -1
- package/dist/service/helpers/order-modifier/order-modifier.js +7 -0
- package/dist/service/helpers/order-modifier/order-modifier.js.map +1 -1
- package/dist/service/helpers/order-splitter/order-splitter.js +3 -2
- package/dist/service/helpers/order-splitter/order-splitter.js.map +1 -1
- package/dist/service/services/order.service.js +1 -1
- package/dist/service/services/order.service.js.map +1 -1
- package/dist/service/services/shipping-method.service.js +1 -1
- package/dist/service/services/shipping-method.service.js.map +1 -1
- package/package.json +3 -3
|
@@ -26,8 +26,8 @@ import { ShippingMethodEntityResolver } from './resolvers/entity/shipping-method
|
|
|
26
26
|
import { TaxRateEntityResolver } from './resolvers/entity/tax-rate-entity.resolver';
|
|
27
27
|
import { UserEntityResolver } from './resolvers/entity/user-entity.resolver';
|
|
28
28
|
import { ZoneEntityResolver } from './resolvers/entity/zone-entity.resolver';
|
|
29
|
-
export declare const entityResolvers: (typeof AssetEntityResolver | typeof ChannelEntityResolver | typeof CollectionEntityResolver | typeof CountryEntityResolver | typeof CustomerEntityResolver | typeof CustomerGroupEntityResolver | typeof FacetEntityResolver | typeof FacetValueEntityResolver | typeof FulfillmentEntityResolver | typeof FulfillmentLineEntityResolver | typeof OrderEntityResolver | typeof OrderLineEntityResolver | typeof PaymentEntityResolver | typeof
|
|
30
|
-
export declare const adminEntityResolvers: (typeof
|
|
29
|
+
export declare const entityResolvers: (typeof ProductVariantEntityResolver | typeof ProductEntityResolver | typeof AssetEntityResolver | typeof ChannelEntityResolver | typeof CollectionEntityResolver | typeof CountryEntityResolver | typeof CustomerEntityResolver | typeof CustomerGroupEntityResolver | typeof FacetEntityResolver | typeof FacetValueEntityResolver | typeof FulfillmentEntityResolver | typeof FulfillmentLineEntityResolver | typeof OrderEntityResolver | typeof OrderLineEntityResolver | typeof PaymentEntityResolver | typeof ProductOptionEntityResolver | typeof ProductOptionGroupEntityResolver | typeof RefundEntityResolver | typeof RefundLineEntityResolver | typeof RoleEntityResolver | typeof ShippingLineEntityResolver | typeof UserEntityResolver | typeof TaxRateEntityResolver | typeof ShippingMethodEntityResolver | typeof ZoneEntityResolver)[];
|
|
30
|
+
export declare const adminEntityResolvers: (typeof ProductVariantAdminEntityResolver | typeof ProductAdminEntityResolver | typeof AdministratorEntityResolver | typeof CustomerAdminEntityResolver | typeof OrderAdminEntityResolver | typeof PaymentMethodEntityResolver | typeof FulfillmentAdminEntityResolver | typeof PaymentAdminEntityResolver | typeof JobEntityResolver)[];
|
|
31
31
|
/**
|
|
32
32
|
* The internal module containing some shared providers used by more than
|
|
33
33
|
* one API module.
|
|
@@ -117,10 +117,10 @@ export declare function generateResolvers(configService: ConfigService, customFi
|
|
|
117
117
|
__resolveType(value: any): "SinglePrice" | "PriceRange";
|
|
118
118
|
};
|
|
119
119
|
CustomFieldConfig: {
|
|
120
|
-
__resolveType(value: any): "
|
|
120
|
+
__resolveType(value: any): "RelationCustomFieldConfig" | "StringCustomFieldConfig" | "LocaleStringCustomFieldConfig" | "TextCustomFieldConfig" | "LocaleTextCustomFieldConfig" | "IntCustomFieldConfig" | "FloatCustomFieldConfig" | "BooleanCustomFieldConfig" | "DateTimeCustomFieldConfig" | undefined;
|
|
121
121
|
};
|
|
122
122
|
CustomField: {
|
|
123
|
-
__resolveType(value: any): "
|
|
123
|
+
__resolveType(value: any): "RelationCustomFieldConfig" | "StringCustomFieldConfig" | "LocaleStringCustomFieldConfig" | "TextCustomFieldConfig" | "LocaleTextCustomFieldConfig" | "IntCustomFieldConfig" | "FloatCustomFieldConfig" | "BooleanCustomFieldConfig" | "DateTimeCustomFieldConfig" | undefined;
|
|
124
124
|
};
|
|
125
125
|
ErrorResult: {
|
|
126
126
|
__resolveType(value: ErrorResult): string;
|
|
@@ -197,10 +197,10 @@ export declare function generateResolvers(configService: ConfigService, customFi
|
|
|
197
197
|
__resolveType(value: any): "SinglePrice" | "PriceRange";
|
|
198
198
|
};
|
|
199
199
|
CustomFieldConfig: {
|
|
200
|
-
__resolveType(value: any): "
|
|
200
|
+
__resolveType(value: any): "RelationCustomFieldConfig" | "StringCustomFieldConfig" | "LocaleStringCustomFieldConfig" | "TextCustomFieldConfig" | "LocaleTextCustomFieldConfig" | "IntCustomFieldConfig" | "FloatCustomFieldConfig" | "BooleanCustomFieldConfig" | "DateTimeCustomFieldConfig" | undefined;
|
|
201
201
|
};
|
|
202
202
|
CustomField: {
|
|
203
|
-
__resolveType(value: any): "
|
|
203
|
+
__resolveType(value: any): "RelationCustomFieldConfig" | "StringCustomFieldConfig" | "LocaleStringCustomFieldConfig" | "TextCustomFieldConfig" | "LocaleTextCustomFieldConfig" | "IntCustomFieldConfig" | "FloatCustomFieldConfig" | "BooleanCustomFieldConfig" | "DateTimeCustomFieldConfig" | undefined;
|
|
204
204
|
};
|
|
205
205
|
ErrorResult: {
|
|
206
206
|
__resolveType(value: ErrorResult): string;
|
|
@@ -15,13 +15,13 @@ function addGraphQLCustomFields(typeDefsOrSchema, customFieldConfig, publicOnly)
|
|
|
15
15
|
const schema = typeof typeDefsOrSchema === 'string' ? (0, graphql_1.buildSchema)(typeDefsOrSchema) : typeDefsOrSchema;
|
|
16
16
|
let customFieldTypeDefs = '';
|
|
17
17
|
if (!schema.getType('JSON')) {
|
|
18
|
-
customFieldTypeDefs += `
|
|
19
|
-
scalar JSON
|
|
18
|
+
customFieldTypeDefs += `
|
|
19
|
+
scalar JSON
|
|
20
20
|
`;
|
|
21
21
|
}
|
|
22
22
|
if (!schema.getType('DateTime')) {
|
|
23
|
-
customFieldTypeDefs += `
|
|
24
|
-
scalar DateTime
|
|
23
|
+
customFieldTypeDefs += `
|
|
24
|
+
scalar DateTime
|
|
25
25
|
`;
|
|
26
26
|
}
|
|
27
27
|
const customFieldsConfig = (0, get_custom_fields_config_without_interfaces_1.getCustomFieldsConfigWithoutInterfaces)(customFieldConfig, schema);
|
|
@@ -59,72 +59,72 @@ function addGraphQLCustomFields(typeDefsOrSchema, customFieldConfig, publicOnly)
|
|
|
59
59
|
const filterableFields = customEntityFields.filter(field => field.type !== 'relation');
|
|
60
60
|
if (schema.getType(entityName)) {
|
|
61
61
|
if (customEntityFields.length) {
|
|
62
|
-
customFieldTypeDefs += `
|
|
63
|
-
type ${entityName}CustomFields {
|
|
64
|
-
${mapToFields(customEntityFields, wrapListType(getGraphQlType))}
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
extend type ${entityName} {
|
|
68
|
-
customFields: ${entityName}CustomFields
|
|
69
|
-
}
|
|
62
|
+
customFieldTypeDefs += `
|
|
63
|
+
type ${entityName}CustomFields {
|
|
64
|
+
${mapToFields(customEntityFields, wrapListType(getGraphQlType))}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
extend type ${entityName} {
|
|
68
|
+
customFields: ${entityName}CustomFields
|
|
69
|
+
}
|
|
70
70
|
`;
|
|
71
71
|
}
|
|
72
72
|
else {
|
|
73
|
-
customFieldTypeDefs += `
|
|
74
|
-
extend type ${entityName} {
|
|
75
|
-
customFields: JSON
|
|
76
|
-
}
|
|
73
|
+
customFieldTypeDefs += `
|
|
74
|
+
extend type ${entityName} {
|
|
75
|
+
customFields: JSON
|
|
76
|
+
}
|
|
77
77
|
`;
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
if (localizedFields.length && schema.getType(`${entityName}Translation`)) {
|
|
81
|
-
customFieldTypeDefs += `
|
|
82
|
-
type ${entityName}TranslationCustomFields {
|
|
83
|
-
${mapToFields(localizedFields, wrapListType(getGraphQlType))}
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
extend type ${entityName}Translation {
|
|
87
|
-
customFields: ${entityName}TranslationCustomFields
|
|
88
|
-
}
|
|
81
|
+
customFieldTypeDefs += `
|
|
82
|
+
type ${entityName}TranslationCustomFields {
|
|
83
|
+
${mapToFields(localizedFields, wrapListType(getGraphQlType))}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
extend type ${entityName}Translation {
|
|
87
|
+
customFields: ${entityName}TranslationCustomFields
|
|
88
|
+
}
|
|
89
89
|
`;
|
|
90
90
|
}
|
|
91
91
|
if (schema.getType(`Create${entityName}Input`)) {
|
|
92
92
|
if (writeableNonLocalizedFields.length) {
|
|
93
|
-
customFieldTypeDefs += `
|
|
94
|
-
input Create${entityName}CustomFieldsInput {
|
|
95
|
-
${mapToFields(writeableNonLocalizedFields, wrapListType(getGraphQlInputType), shared_utils_1.getGraphQlInputName)}
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
extend input Create${entityName}Input {
|
|
99
|
-
customFields: Create${entityName}CustomFieldsInput
|
|
100
|
-
}
|
|
93
|
+
customFieldTypeDefs += `
|
|
94
|
+
input Create${entityName}CustomFieldsInput {
|
|
95
|
+
${mapToFields(writeableNonLocalizedFields, wrapListType(getGraphQlInputType), shared_utils_1.getGraphQlInputName)}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
extend input Create${entityName}Input {
|
|
99
|
+
customFields: Create${entityName}CustomFieldsInput
|
|
100
|
+
}
|
|
101
101
|
`;
|
|
102
102
|
}
|
|
103
103
|
else {
|
|
104
|
-
customFieldTypeDefs += `
|
|
105
|
-
extend input Create${entityName}Input {
|
|
106
|
-
customFields: JSON
|
|
107
|
-
}
|
|
104
|
+
customFieldTypeDefs += `
|
|
105
|
+
extend input Create${entityName}Input {
|
|
106
|
+
customFields: JSON
|
|
107
|
+
}
|
|
108
108
|
`;
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
if (schema.getType(`Update${entityName}Input`)) {
|
|
112
112
|
if (writeableNonLocalizedFields.length) {
|
|
113
|
-
customFieldTypeDefs += `
|
|
114
|
-
input Update${entityName}CustomFieldsInput {
|
|
115
|
-
${mapToFields(writeableNonLocalizedFields, wrapListType(getGraphQlInputType), shared_utils_1.getGraphQlInputName)}
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
extend input Update${entityName}Input {
|
|
119
|
-
customFields: Update${entityName}CustomFieldsInput
|
|
120
|
-
}
|
|
113
|
+
customFieldTypeDefs += `
|
|
114
|
+
input Update${entityName}CustomFieldsInput {
|
|
115
|
+
${mapToFields(writeableNonLocalizedFields, wrapListType(getGraphQlInputType), shared_utils_1.getGraphQlInputName)}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
extend input Update${entityName}Input {
|
|
119
|
+
customFields: Update${entityName}CustomFieldsInput
|
|
120
|
+
}
|
|
121
121
|
`;
|
|
122
122
|
}
|
|
123
123
|
else {
|
|
124
|
-
customFieldTypeDefs += `
|
|
125
|
-
extend input Update${entityName}Input {
|
|
126
|
-
customFields: JSON
|
|
127
|
-
}
|
|
124
|
+
customFieldTypeDefs += `
|
|
125
|
+
extend input Update${entityName}Input {
|
|
126
|
+
customFields: JSON
|
|
127
|
+
}
|
|
128
128
|
`;
|
|
129
129
|
}
|
|
130
130
|
}
|
|
@@ -132,17 +132,17 @@ function addGraphQLCustomFields(typeDefsOrSchema, customFieldConfig, publicOnly)
|
|
|
132
132
|
if (customEntityNonListFields.length && schema.getType(`${entityName}SortParameter`)) {
|
|
133
133
|
// Sorting list fields makes no sense, so we only add "sort" fields
|
|
134
134
|
// to non-list fields.
|
|
135
|
-
customFieldTypeDefs += `
|
|
136
|
-
extend input ${entityName}SortParameter {
|
|
137
|
-
${mapToFields(customEntityNonListFields, () => 'SortOrder')}
|
|
138
|
-
}
|
|
135
|
+
customFieldTypeDefs += `
|
|
136
|
+
extend input ${entityName}SortParameter {
|
|
137
|
+
${mapToFields(customEntityNonListFields, () => 'SortOrder')}
|
|
138
|
+
}
|
|
139
139
|
`;
|
|
140
140
|
}
|
|
141
141
|
if (filterableFields.length && schema.getType(`${entityName}FilterParameter`)) {
|
|
142
|
-
customFieldTypeDefs += `
|
|
143
|
-
extend input ${entityName}FilterParameter {
|
|
144
|
-
${mapToFields(filterableFields, getFilterOperator)}
|
|
145
|
-
}
|
|
142
|
+
customFieldTypeDefs += `
|
|
143
|
+
extend input ${entityName}FilterParameter {
|
|
144
|
+
${mapToFields(filterableFields, getFilterOperator)}
|
|
145
|
+
}
|
|
146
146
|
`;
|
|
147
147
|
}
|
|
148
148
|
if (writeableLocalizedFields) {
|
|
@@ -154,21 +154,21 @@ function addGraphQLCustomFields(typeDefsOrSchema, customFieldConfig, publicOnly)
|
|
|
154
154
|
for (const inputName of translationInputs) {
|
|
155
155
|
if (schema.getType(inputName)) {
|
|
156
156
|
if (writeableLocalizedFields.length) {
|
|
157
|
-
customFieldTypeDefs += `
|
|
158
|
-
input ${inputName}CustomFields {
|
|
159
|
-
${mapToFields(writeableLocalizedFields, wrapListType(getGraphQlType))}
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
extend input ${inputName} {
|
|
163
|
-
customFields: ${inputName}CustomFields
|
|
164
|
-
}
|
|
157
|
+
customFieldTypeDefs += `
|
|
158
|
+
input ${inputName}CustomFields {
|
|
159
|
+
${mapToFields(writeableLocalizedFields, wrapListType(getGraphQlType))}
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
extend input ${inputName} {
|
|
163
|
+
customFields: ${inputName}CustomFields
|
|
164
|
+
}
|
|
165
165
|
`;
|
|
166
166
|
}
|
|
167
167
|
else {
|
|
168
|
-
customFieldTypeDefs += `
|
|
169
|
-
extend input ${inputName} {
|
|
170
|
-
customFields: JSON
|
|
171
|
-
}
|
|
168
|
+
customFieldTypeDefs += `
|
|
169
|
+
extend input ${inputName} {
|
|
170
|
+
customFields: JSON
|
|
171
|
+
}
|
|
172
172
|
`;
|
|
173
173
|
}
|
|
174
174
|
}
|
|
@@ -180,26 +180,26 @@ function addGraphQLCustomFields(typeDefsOrSchema, customFieldConfig, publicOnly)
|
|
|
180
180
|
// For custom fields on the Address entity, we also extend the OrderAddress
|
|
181
181
|
// type (which is used to store address snapshots on Orders)
|
|
182
182
|
if (schema.getType('OrderAddress')) {
|
|
183
|
-
customFieldTypeDefs += `
|
|
184
|
-
extend type OrderAddress {
|
|
185
|
-
customFields: AddressCustomFields
|
|
186
|
-
}
|
|
183
|
+
customFieldTypeDefs += `
|
|
184
|
+
extend type OrderAddress {
|
|
185
|
+
customFields: AddressCustomFields
|
|
186
|
+
}
|
|
187
187
|
`;
|
|
188
188
|
}
|
|
189
189
|
if (schema.getType('UpdateOrderAddressInput')) {
|
|
190
|
-
customFieldTypeDefs += `
|
|
191
|
-
extend input UpdateOrderAddressInput {
|
|
192
|
-
customFields: UpdateAddressCustomFieldsInput
|
|
193
|
-
}
|
|
190
|
+
customFieldTypeDefs += `
|
|
191
|
+
extend input UpdateOrderAddressInput {
|
|
192
|
+
customFields: UpdateAddressCustomFieldsInput
|
|
193
|
+
}
|
|
194
194
|
`;
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
197
|
else {
|
|
198
198
|
if (schema.getType('OrderAddress')) {
|
|
199
|
-
customFieldTypeDefs += `
|
|
200
|
-
extend type OrderAddress {
|
|
201
|
-
customFields: JSON
|
|
202
|
-
}
|
|
199
|
+
customFieldTypeDefs += `
|
|
200
|
+
extend type OrderAddress {
|
|
201
|
+
customFields: JSON
|
|
202
|
+
}
|
|
203
203
|
`;
|
|
204
204
|
}
|
|
205
205
|
}
|
|
@@ -208,28 +208,28 @@ function addGraphQLCustomFields(typeDefsOrSchema, customFieldConfig, publicOnly)
|
|
|
208
208
|
exports.addGraphQLCustomFields = addGraphQLCustomFields;
|
|
209
209
|
function addServerConfigCustomFields(typeDefsOrSchema, customFieldConfig) {
|
|
210
210
|
const schema = typeof typeDefsOrSchema === 'string' ? (0, graphql_1.buildSchema)(typeDefsOrSchema) : typeDefsOrSchema;
|
|
211
|
-
const customFieldTypeDefs = `
|
|
212
|
-
"""
|
|
213
|
-
This type is deprecated in v2.2 in favor of the EntityCustomFields type,
|
|
214
|
-
which allows custom fields to be defined on user-supplies entities.
|
|
215
|
-
"""
|
|
216
|
-
type CustomFields {
|
|
217
|
-
${Object.keys(customFieldConfig).reduce((output, name) => output + name + ': [CustomFieldConfig!]!\n', '')}
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
type EntityCustomFields {
|
|
221
|
-
entityName: String!
|
|
222
|
-
customFields: [CustomFieldConfig!]!
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
extend type ServerConfig {
|
|
226
|
-
"""
|
|
227
|
-
This field is deprecated in v2.2 in favor of the entityCustomFields field,
|
|
228
|
-
which allows custom fields to be defined on user-supplies entities.
|
|
229
|
-
"""
|
|
230
|
-
customFieldConfig: CustomFields!
|
|
231
|
-
entityCustomFields: [EntityCustomFields!]!
|
|
232
|
-
}
|
|
211
|
+
const customFieldTypeDefs = `
|
|
212
|
+
"""
|
|
213
|
+
This type is deprecated in v2.2 in favor of the EntityCustomFields type,
|
|
214
|
+
which allows custom fields to be defined on user-supplies entities.
|
|
215
|
+
"""
|
|
216
|
+
type CustomFields {
|
|
217
|
+
${Object.keys(customFieldConfig).reduce((output, name) => output + name + ': [CustomFieldConfig!]!\n', '')}
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
type EntityCustomFields {
|
|
221
|
+
entityName: String!
|
|
222
|
+
customFields: [CustomFieldConfig!]!
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
extend type ServerConfig {
|
|
226
|
+
"""
|
|
227
|
+
This field is deprecated in v2.2 in favor of the entityCustomFields field,
|
|
228
|
+
which allows custom fields to be defined on user-supplies entities.
|
|
229
|
+
"""
|
|
230
|
+
customFieldConfig: CustomFields!
|
|
231
|
+
entityCustomFields: [EntityCustomFields!]!
|
|
232
|
+
}
|
|
233
233
|
`;
|
|
234
234
|
return (0, graphql_1.extendSchema)(schema, (0, graphql_1.parse)(customFieldTypeDefs));
|
|
235
235
|
}
|
|
@@ -237,10 +237,10 @@ exports.addServerConfigCustomFields = addServerConfigCustomFields;
|
|
|
237
237
|
function addActiveAdministratorCustomFields(typeDefsOrSchema, administratorCustomFields) {
|
|
238
238
|
const schema = typeof typeDefsOrSchema === 'string' ? (0, graphql_1.buildSchema)(typeDefsOrSchema) : typeDefsOrSchema;
|
|
239
239
|
const writableCustomFields = administratorCustomFields === null || administratorCustomFields === void 0 ? void 0 : administratorCustomFields.filter(field => field.readonly !== true);
|
|
240
|
-
const extension = `
|
|
241
|
-
extend input UpdateActiveAdministratorInput {
|
|
242
|
-
customFields: ${0 < (writableCustomFields === null || writableCustomFields === void 0 ? void 0 : writableCustomFields.length) ? 'UpdateAdministratorCustomFieldsInput' : 'JSON'}
|
|
243
|
-
}
|
|
240
|
+
const extension = `
|
|
241
|
+
extend input UpdateActiveAdministratorInput {
|
|
242
|
+
customFields: ${0 < (writableCustomFields === null || writableCustomFields === void 0 ? void 0 : writableCustomFields.length) ? 'UpdateAdministratorCustomFieldsInput' : 'JSON'}
|
|
243
|
+
}
|
|
244
244
|
`;
|
|
245
245
|
return (0, graphql_1.extendSchema)(schema, (0, graphql_1.parse)(extension));
|
|
246
246
|
}
|
|
@@ -261,14 +261,14 @@ function addRegisterCustomerCustomFieldsInput(typeDefsOrSchema, customerCustomFi
|
|
|
261
261
|
if (publicWritableCustomFields.length < 1) {
|
|
262
262
|
return schema;
|
|
263
263
|
}
|
|
264
|
-
const customFieldTypeDefs = `
|
|
265
|
-
input RegisterCustomerCustomFieldsInput {
|
|
266
|
-
${mapToFields(publicWritableCustomFields, wrapListType(getGraphQlInputType), shared_utils_1.getGraphQlInputName)}
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
extend input RegisterCustomerInput {
|
|
270
|
-
customFields: RegisterCustomerCustomFieldsInput
|
|
271
|
-
}
|
|
264
|
+
const customFieldTypeDefs = `
|
|
265
|
+
input RegisterCustomerCustomFieldsInput {
|
|
266
|
+
${mapToFields(publicWritableCustomFields, wrapListType(getGraphQlInputType), shared_utils_1.getGraphQlInputName)}
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
extend input RegisterCustomerInput {
|
|
270
|
+
customFields: RegisterCustomerCustomFieldsInput
|
|
271
|
+
}
|
|
272
272
|
`;
|
|
273
273
|
return (0, graphql_1.extendSchema)(schema, (0, graphql_1.parse)(customFieldTypeDefs));
|
|
274
274
|
}
|
|
@@ -283,10 +283,10 @@ function addModifyOrderCustomFields(typeDefsOrSchema, orderCustomFields) {
|
|
|
283
283
|
return schema;
|
|
284
284
|
}
|
|
285
285
|
if (schema.getType('ModifyOrderInput') && schema.getType('UpdateOrderCustomFieldsInput')) {
|
|
286
|
-
const customFieldTypeDefs = `
|
|
287
|
-
extend input ModifyOrderInput {
|
|
288
|
-
customFields: UpdateOrderCustomFieldsInput
|
|
289
|
-
}
|
|
286
|
+
const customFieldTypeDefs = `
|
|
287
|
+
extend input ModifyOrderInput {
|
|
288
|
+
customFields: UpdateOrderCustomFieldsInput
|
|
289
|
+
}
|
|
290
290
|
`;
|
|
291
291
|
return (0, graphql_1.extendSchema)(schema, (0, graphql_1.parse)(customFieldTypeDefs));
|
|
292
292
|
}
|
|
@@ -352,34 +352,34 @@ function addOrderLineCustomFieldsInput(typeDefsOrSchema, orderLineCustomFields)
|
|
|
352
352
|
}
|
|
353
353
|
let extendedSchema = new graphql_1.GraphQLSchema(schemaConfig);
|
|
354
354
|
if (schema.getType('AddItemInput')) {
|
|
355
|
-
const customFieldTypeDefs = `
|
|
356
|
-
extend input AddItemInput {
|
|
357
|
-
customFields: OrderLineCustomFieldsInput
|
|
358
|
-
}
|
|
355
|
+
const customFieldTypeDefs = `
|
|
356
|
+
extend input AddItemInput {
|
|
357
|
+
customFields: OrderLineCustomFieldsInput
|
|
358
|
+
}
|
|
359
359
|
`;
|
|
360
360
|
extendedSchema = (0, graphql_1.extendSchema)(extendedSchema, (0, graphql_1.parse)(customFieldTypeDefs));
|
|
361
361
|
}
|
|
362
362
|
if (schema.getType('OrderLineInput')) {
|
|
363
|
-
const customFieldTypeDefs = `
|
|
364
|
-
extend input OrderLineInput {
|
|
365
|
-
customFields: OrderLineCustomFieldsInput
|
|
366
|
-
}
|
|
363
|
+
const customFieldTypeDefs = `
|
|
364
|
+
extend input OrderLineInput {
|
|
365
|
+
customFields: OrderLineCustomFieldsInput
|
|
366
|
+
}
|
|
367
367
|
`;
|
|
368
368
|
extendedSchema = (0, graphql_1.extendSchema)(extendedSchema, (0, graphql_1.parse)(customFieldTypeDefs));
|
|
369
369
|
}
|
|
370
370
|
if (schema.getType('AddItemToDraftOrderInput')) {
|
|
371
|
-
const customFieldTypeDefs = `
|
|
372
|
-
extend input AddItemToDraftOrderInput {
|
|
373
|
-
customFields: OrderLineCustomFieldsInput
|
|
374
|
-
}
|
|
371
|
+
const customFieldTypeDefs = `
|
|
372
|
+
extend input AddItemToDraftOrderInput {
|
|
373
|
+
customFields: OrderLineCustomFieldsInput
|
|
374
|
+
}
|
|
375
375
|
`;
|
|
376
376
|
extendedSchema = (0, graphql_1.extendSchema)(extendedSchema, (0, graphql_1.parse)(customFieldTypeDefs));
|
|
377
377
|
}
|
|
378
378
|
if (schema.getType('AdjustDraftOrderLineInput')) {
|
|
379
|
-
const customFieldTypeDefs = `
|
|
380
|
-
extend input AdjustDraftOrderLineInput {
|
|
381
|
-
customFields: OrderLineCustomFieldsInput
|
|
382
|
-
}
|
|
379
|
+
const customFieldTypeDefs = `
|
|
380
|
+
extend input AdjustDraftOrderLineInput {
|
|
381
|
+
customFields: OrderLineCustomFieldsInput
|
|
382
|
+
}
|
|
383
383
|
`;
|
|
384
384
|
extendedSchema = (0, graphql_1.extendSchema)(extendedSchema, (0, graphql_1.parse)(customFieldTypeDefs));
|
|
385
385
|
}
|
|
@@ -391,17 +391,17 @@ function addShippingMethodQuoteCustomFields(typeDefsOrSchema, shippingMethodCust
|
|
|
391
391
|
let customFieldTypeDefs = '';
|
|
392
392
|
const publicCustomFields = shippingMethodCustomFields.filter(f => f.public !== false);
|
|
393
393
|
if (0 < publicCustomFields.length) {
|
|
394
|
-
customFieldTypeDefs = `
|
|
395
|
-
extend type ShippingMethodQuote {
|
|
396
|
-
customFields: ShippingMethodCustomFields
|
|
397
|
-
}
|
|
394
|
+
customFieldTypeDefs = `
|
|
395
|
+
extend type ShippingMethodQuote {
|
|
396
|
+
customFields: ShippingMethodCustomFields
|
|
397
|
+
}
|
|
398
398
|
`;
|
|
399
399
|
}
|
|
400
400
|
else {
|
|
401
|
-
customFieldTypeDefs = `
|
|
402
|
-
extend type ShippingMethodQuote {
|
|
403
|
-
customFields: JSON
|
|
404
|
-
}
|
|
401
|
+
customFieldTypeDefs = `
|
|
402
|
+
extend type ShippingMethodQuote {
|
|
403
|
+
customFields: JSON
|
|
404
|
+
}
|
|
405
405
|
`;
|
|
406
406
|
}
|
|
407
407
|
return (0, graphql_1.extendSchema)(schema, (0, graphql_1.parse)(customFieldTypeDefs));
|
|
@@ -412,17 +412,17 @@ function addPaymentMethodQuoteCustomFields(typeDefsOrSchema, paymentMethodCustom
|
|
|
412
412
|
let customFieldTypeDefs = '';
|
|
413
413
|
const publicCustomFields = paymentMethodCustomFields.filter(f => f.public !== false);
|
|
414
414
|
if (0 < publicCustomFields.length) {
|
|
415
|
-
customFieldTypeDefs = `
|
|
416
|
-
extend type PaymentMethodQuote {
|
|
417
|
-
customFields: PaymentMethodCustomFields
|
|
418
|
-
}
|
|
415
|
+
customFieldTypeDefs = `
|
|
416
|
+
extend type PaymentMethodQuote {
|
|
417
|
+
customFields: PaymentMethodCustomFields
|
|
418
|
+
}
|
|
419
419
|
`;
|
|
420
420
|
}
|
|
421
421
|
else {
|
|
422
|
-
customFieldTypeDefs = `
|
|
423
|
-
extend type PaymentMethodQuote {
|
|
424
|
-
customFields: JSON
|
|
425
|
-
}
|
|
422
|
+
customFieldTypeDefs = `
|
|
423
|
+
extend type PaymentMethodQuote {
|
|
424
|
+
customFields: JSON
|
|
425
|
+
}
|
|
426
426
|
`;
|
|
427
427
|
}
|
|
428
428
|
return (0, graphql_1.extendSchema)(schema, (0, graphql_1.parse)(customFieldTypeDefs));
|
|
@@ -27,7 +27,7 @@ export declare class OrderResolver {
|
|
|
27
27
|
setOrderCustomFields(ctx: RequestContext, args: MutationSetOrderCustomFieldsArgs): Promise<Order>;
|
|
28
28
|
setOrderCustomer(ctx: RequestContext, { input }: MutationSetOrderCustomerArgs): Promise<Order>;
|
|
29
29
|
transitionOrderToState(ctx: RequestContext, args: MutationTransitionOrderToStateArgs): Promise<Order | import("../../../common/error/generated-graphql-shop-errors").OrderStateTransitionError>;
|
|
30
|
-
transitionFulfillmentToState(ctx: RequestContext, args: MutationTransitionFulfillmentToStateArgs): Promise<import("../../..").FulfillmentStateTransitionError
|
|
30
|
+
transitionFulfillmentToState(ctx: RequestContext, args: MutationTransitionFulfillmentToStateArgs): Promise<Fulfillment | import("../../..").FulfillmentStateTransitionError>;
|
|
31
31
|
transitionPaymentToState(ctx: RequestContext, args: MutationTransitionPaymentToStateArgs): Promise<ErrorResultUnion<TransitionPaymentToStateResult, Payment>>;
|
|
32
32
|
modifyOrder(ctx: RequestContext, args: MutationModifyOrderArgs): Promise<ErrorResultUnion<import("@vendure/common/lib/generated-types").ModifyOrderResult, Order>>;
|
|
33
33
|
addManualPaymentToOrder(ctx: RequestContext, args: MutationAddManualPaymentToOrderArgs): Promise<ErrorResultUnion<import("@vendure/common/lib/generated-types").AddManualPaymentToOrderResult, Order>>;
|
|
@@ -16,6 +16,7 @@ export declare class OrderEntityResolver {
|
|
|
16
16
|
surcharges(ctx: RequestContext, order: Order): Promise<import("../../..").Surcharge[]>;
|
|
17
17
|
customer(ctx: RequestContext, order: Order): Promise<import("../../..").Customer | undefined>;
|
|
18
18
|
lines(ctx: RequestContext, order: Order): Promise<import("../../..").OrderLine[]>;
|
|
19
|
+
shippingLines(ctx: RequestContext, order: Order): Promise<import("../../..").ShippingLine[]>;
|
|
19
20
|
history(ctx: RequestContext, apiType: ApiType, order: Order, args: OrderHistoryArgs): Promise<import("@vendure/common/lib/shared-types").PaginatedList<import("../../../entity/history-entry/order-history-entry.entity").OrderHistoryEntry>>;
|
|
20
21
|
promotions(ctx: RequestContext, order: Order): Promise<import("../../..").Promotion[]>;
|
|
21
22
|
}
|
|
@@ -63,6 +63,13 @@ let OrderEntityResolver = class OrderEntityResolver {
|
|
|
63
63
|
const { lines } = await (0, utils_1.assertFound)(this.orderService.findOne(ctx, order.id));
|
|
64
64
|
return lines;
|
|
65
65
|
}
|
|
66
|
+
async shippingLines(ctx, order) {
|
|
67
|
+
if (order.shippingLines) {
|
|
68
|
+
return order.shippingLines;
|
|
69
|
+
}
|
|
70
|
+
const { shippingLines } = await (0, utils_1.assertFound)(this.orderService.findOne(ctx, order.id, ['shippingLines.shippingMethod']));
|
|
71
|
+
return shippingLines;
|
|
72
|
+
}
|
|
66
73
|
async history(ctx, apiType, order, args) {
|
|
67
74
|
const publicOnly = apiType === 'shop';
|
|
68
75
|
const options = Object.assign({}, args.options);
|
|
@@ -123,6 +130,14 @@ __decorate([
|
|
|
123
130
|
__metadata("design:paramtypes", [request_context_1.RequestContext, order_entity_1.Order]),
|
|
124
131
|
__metadata("design:returntype", Promise)
|
|
125
132
|
], OrderEntityResolver.prototype, "lines", null);
|
|
133
|
+
__decorate([
|
|
134
|
+
(0, graphql_1.ResolveField)(),
|
|
135
|
+
__param(0, (0, request_context_decorator_1.Ctx)()),
|
|
136
|
+
__param(1, (0, graphql_1.Parent)()),
|
|
137
|
+
__metadata("design:type", Function),
|
|
138
|
+
__metadata("design:paramtypes", [request_context_1.RequestContext, order_entity_1.Order]),
|
|
139
|
+
__metadata("design:returntype", Promise)
|
|
140
|
+
], OrderEntityResolver.prototype, "shippingLines", null);
|
|
126
141
|
__decorate([
|
|
127
142
|
(0, graphql_1.ResolveField)(),
|
|
128
143
|
__param(0, (0, request_context_decorator_1.Ctx)()),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"order-entity.resolver.js","sourceRoot":"","sources":["../../../../src/api/resolvers/entity/order-entity.resolver.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,6CAAuE;AACvE,yEAA2G;AAE3G,iDAAiE;AACjE,qEAA2D;AAC3D,kDAA4E;AAC5E,+EAA2E;AAC3E,2EAAuE;AAEvE,kEAA8D;AAC9D,kEAAqD;AACrD,0FAAiE;AAG1D,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IAC5B,YACY,YAA0B,EAC1B,eAAgC,EAChC,cAA8B,EAC9B,UAA6B;QAH7B,iBAAY,GAAZ,YAAY,CAAc;QAC1B,oBAAe,GAAf,eAAe,CAAiB;QAChC,mBAAc,GAAd,cAAc,CAAgB;QAC9B,eAAU,GAAV,UAAU,CAAmB;IACtC,CAAC;IAGE,AAAN,KAAK,CAAC,QAAQ,CAAQ,GAAmB,EAAY,KAAY;QAC7D,IAAI,KAAK,CAAC,QAAQ,EAAE,CAAC;YACjB,OAAO,K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AC;QAC9E,OAAO,KAAK,CAAC;IACjB,CAAC;IAGK,AAAN,KAAK,CAAC,OAAO,CACF,GAAmB,EACnB,OAAgB,EACb,KAAY,EACd,IAAsB;QAE9B,MAAM,UAAU,GAAG,OAAO,KAAK,MAAM,CAAC;QACtC,MAAM,OAAO,qBAAiC,IAAI,CAAC,OAAO,CAAE,CAAC;QAC7D,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;YAChB,OAAO,CAAC,IAAI,GAAG,EAAE,SAAS,EAAE,2BAAS,CAAC,GAAG,EAAE,CAAC;QAChD,CAAC;QACD,OAAO,IAAI,CAAC,cAAc,CAAC,kBAAkB,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;IACtF,CAAC;IAGK,AAAN,KAAK,CAAC,UAAU,CAAQ,GAAmB,EAAY,KAAY;QAC/D,oFAAoF;QACpF,gDAAgD;QAChD,IACI,KAAK,CAAC,UAAU;YAChB,CAAC,KAAK,CAAC,UAAU,CAAC,MAAM,KAAK,CAAC;gBAC1B,CAAC,KAAK,CAAC,UAAU,CAAC,MAAM,GAAG,CAAC,IAAI,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,EACxE,CAAC;YACC,OAAO,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC;QACxE,CAAC;QACD,OAAO,IAAI,CAAC,YAAY,CAAC,kBAAkB,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,CAAC,CAAC;IAC/D,CAAC;CACJ,CAAA;
|
|
1
|
+
{"version":3,"file":"order-entity.resolver.js","sourceRoot":"","sources":["../../../../src/api/resolvers/entity/order-entity.resolver.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,6CAAuE;AACvE,yEAA2G;AAE3G,iDAAiE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C;qCAEoB,4BAAY;GADrC,wBAAwB,CA4CpC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare const defaultEntityDuplicators: (import("../entity-duplicator").EntityDuplicator<{
|
|
2
|
-
|
|
1
|
+
export declare const defaultEntityDuplicators: (import("../entity-duplicator").EntityDuplicator<{
|
|
2
|
+
includeVariants: {
|
|
3
3
|
type: "boolean";
|
|
4
4
|
defaultValue: true;
|
|
5
5
|
label: {
|
|
@@ -7,8 +7,8 @@ export declare const defaultEntityDuplicators: (import("../entity-duplicator").E
|
|
|
7
7
|
value: string;
|
|
8
8
|
}[];
|
|
9
9
|
};
|
|
10
|
-
}> | import("../entity-duplicator").EntityDuplicator<{
|
|
11
|
-
|
|
10
|
+
}> | import("../entity-duplicator").EntityDuplicator<{}> | import("../entity-duplicator").EntityDuplicator<{
|
|
11
|
+
includeFacetValues: {
|
|
12
12
|
type: "boolean";
|
|
13
13
|
defaultValue: true;
|
|
14
14
|
label: {
|
|
@@ -79,7 +79,6 @@ exports.defaultFulfillmentProcess = {
|
|
|
79
79
|
quantity: l.quantity,
|
|
80
80
|
}));
|
|
81
81
|
await stockMovementService.createCancellationsForOrderLines(ctx, orderLineInput);
|
|
82
|
-
// const lines = await groupOrderItemsIntoLines(ctx, orderLineInput);
|
|
83
82
|
await stockMovementService.createAllocationsForOrderLines(ctx, orderLineInput);
|
|
84
83
|
}
|
|
85
84
|
if (fromState === 'Created' && toState === 'Pending') {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default-fulfillment-process.js","sourceRoot":"","sources":["../../../src/config/fulfillment/default-fulfillment-process.ts"],"names":[],"mappings":";;;AAAA,yEAAuE;AAIvE,kEAAuE;AACvE,sDAAgE;AAChE,8CAA8D;AAE9D,kEAAwD;AAGxD,yEAAuG;AAWvG,IAAI,UAAuF,CAAC;AAC5F,IAAI,aAAwD,CAAC;AAC7D,IAAI,YAAwD,CAAC;AAC7D,IAAI,cAA4D,CAAC;AACjE,IAA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CAAC,CAAC;gBAC/C,WAAW,EAAE,CAAC,CAAC,WAAW;gBAC1B,QAAQ,EAAE,CAAC,CAAC,QAAQ;aACvB,CAAC,CAAC,CAAC;YACJ,MAAM,oBAAoB,CAAC,gCAAgC,CAAC,GAAG,EAAE,cAAc,CAAC,CAAC;YACjF,
|
|
1
|
+
{"version":3,"file":"default-fulfillment-process.js","sourceRoot":"","sources":["../../../src/config/fulfillment/default-fulfillment-process.ts"],"names":[],"mappings":";;;AAAA,yEAAuE;AAIvE,kEAAuE;AACvE,sDAAgE;AAChE,8CAA8D;AAE9D,kEAAwD;AAGxD,yEAAuG;AAWvG,IAAI,UAAuF,CAAC;AAC5F,IAAI,aAAwD,CAAC;AAC7D,IAAI,YAAwD,CAAC;AAC7D,IAAI,cAA4D,CAAC;AACjE,IAAI,oBAAwE,CAAC;AAC7E,IAAI,iBAAkE,CAAC;AAEvE;;;;;;;;;;;;;;GAcG;AACU,QAAA,yBAAyB,GAAyC;IAC3E,WAAW,EAAE;QACT,OAAO,EAAE;YACL,EAAE,EAAE,CAAC,SAAS,CAAC;SAClB;QACD,OAAO,EAAE;YACL,EAAE,EAAE,CAAC,SAAS,EAAE,WAAW,EAAE,WAAW,CAAC;SAC5C;QACD,OAAO,EAAE;YACL,EAAE,EAAE,CAAC,WAAW,EAAE,WAAW,CAAC;SACjC;QACD,SAAS,EAAE;YACP,EAAE,EAAE,CAAC,WAAW,CAAC;SACpB;QACD,SAAS,EAAE;YACP,EAAE,EAAE,EAAE;SACT;KACJ;IACD,KAAK,CAAC,IAAI,CAAC,QAAQ;QACf,oEAAoE;QACpE,sDAAsD;QACtD,MAAM,uBAAuB,GAAG,MAAM,MAAM,CAAC,8CAA8C,CAAC,CAAC,IAAI,CAC7F,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,uBAAuB,CACjC,CAAC;QACF,MAAM,aAAa,GAAG,MAAM,MAAM,CAAC,sBAAsB,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CA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