@vendure/core 2.0.0-beta.1 → 2.0.0-beta.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/dist/api/config/graphql-custom-fields.js +136 -136
- package/dist/api/decorators/transaction.decorator.d.ts +13 -1
- package/dist/api/decorators/transaction.decorator.js +4 -3
- package/dist/api/decorators/transaction.decorator.js.map +1 -1
- package/dist/api/middleware/transaction-interceptor.js +2 -1
- package/dist/api/middleware/transaction-interceptor.js.map +1 -1
- package/dist/connection/transaction-wrapper.d.ts +2 -2
- package/dist/connection/transaction-wrapper.js +4 -4
- package/dist/connection/transaction-wrapper.js.map +1 -1
- package/dist/connection/transactional-connection.d.ts +2 -1
- package/dist/connection/transactional-connection.js +3 -3
- package/dist/connection/transactional-connection.js.map +1 -1
- package/dist/entity/payment-method/payment-method-translation.entity.js +6 -1
- package/dist/entity/payment-method/payment-method-translation.entity.js.map +1 -1
- package/dist/entity/promotion/promotion-translation.entity.js +6 -1
- package/dist/entity/promotion/promotion-translation.entity.js.map +1 -1
- package/dist/i18n/i18n.service.js +1 -0
- package/dist/i18n/i18n.service.js.map +1 -1
- package/package.json +3 -3
|
@@ -14,13 +14,13 @@ function addGraphQLCustomFields(typeDefsOrSchema, customFieldConfig, publicOnly)
|
|
|
14
14
|
const schema = typeof typeDefsOrSchema === 'string' ? (0, graphql_1.buildSchema)(typeDefsOrSchema) : typeDefsOrSchema;
|
|
15
15
|
let customFieldTypeDefs = '';
|
|
16
16
|
if (!schema.getType('JSON')) {
|
|
17
|
-
customFieldTypeDefs += `
|
|
18
|
-
scalar JSON
|
|
17
|
+
customFieldTypeDefs += `
|
|
18
|
+
scalar JSON
|
|
19
19
|
`;
|
|
20
20
|
}
|
|
21
21
|
if (!schema.getType('DateTime')) {
|
|
22
|
-
customFieldTypeDefs += `
|
|
23
|
-
scalar DateTime
|
|
22
|
+
customFieldTypeDefs += `
|
|
23
|
+
scalar DateTime
|
|
24
24
|
`;
|
|
25
25
|
}
|
|
26
26
|
const customFieldsConfig = (0, get_custom_fields_config_without_interfaces_1.getCustomFieldsConfigWithoutInterfaces)(customFieldConfig, schema);
|
|
@@ -42,72 +42,72 @@ function addGraphQLCustomFields(typeDefsOrSchema, customFieldConfig, publicOnly)
|
|
|
42
42
|
const filterableFields = customEntityFields.filter(field => field.type !== 'relation');
|
|
43
43
|
if (schema.getType(entityName)) {
|
|
44
44
|
if (customEntityFields.length) {
|
|
45
|
-
customFieldTypeDefs += `
|
|
46
|
-
type ${entityName}CustomFields {
|
|
47
|
-
${mapToFields(customEntityFields, wrapListType(getGraphQlType))}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
extend type ${entityName} {
|
|
51
|
-
customFields: ${entityName}CustomFields
|
|
52
|
-
}
|
|
45
|
+
customFieldTypeDefs += `
|
|
46
|
+
type ${entityName}CustomFields {
|
|
47
|
+
${mapToFields(customEntityFields, wrapListType(getGraphQlType))}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
extend type ${entityName} {
|
|
51
|
+
customFields: ${entityName}CustomFields
|
|
52
|
+
}
|
|
53
53
|
`;
|
|
54
54
|
}
|
|
55
55
|
else {
|
|
56
|
-
customFieldTypeDefs += `
|
|
57
|
-
extend type ${entityName} {
|
|
58
|
-
customFields: JSON
|
|
59
|
-
}
|
|
56
|
+
customFieldTypeDefs += `
|
|
57
|
+
extend type ${entityName} {
|
|
58
|
+
customFields: JSON
|
|
59
|
+
}
|
|
60
60
|
`;
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
if (localeStringFields.length && schema.getType(`${entityName}Translation`)) {
|
|
64
|
-
customFieldTypeDefs += `
|
|
65
|
-
type ${entityName}TranslationCustomFields {
|
|
66
|
-
${mapToFields(localeStringFields, wrapListType(getGraphQlType))}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
extend type ${entityName}Translation {
|
|
70
|
-
customFields: ${entityName}TranslationCustomFields
|
|
71
|
-
}
|
|
64
|
+
customFieldTypeDefs += `
|
|
65
|
+
type ${entityName}TranslationCustomFields {
|
|
66
|
+
${mapToFields(localeStringFields, wrapListType(getGraphQlType))}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
extend type ${entityName}Translation {
|
|
70
|
+
customFields: ${entityName}TranslationCustomFields
|
|
71
|
+
}
|
|
72
72
|
`;
|
|
73
73
|
}
|
|
74
74
|
if (schema.getType(`Create${entityName}Input`)) {
|
|
75
75
|
if (writeableNonLocaleStringFields.length) {
|
|
76
|
-
customFieldTypeDefs += `
|
|
77
|
-
input Create${entityName}CustomFieldsInput {
|
|
78
|
-
${mapToFields(writeableNonLocaleStringFields, wrapListType(getGraphQlInputType), shared_utils_1.getGraphQlInputName)}
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
extend input Create${entityName}Input {
|
|
82
|
-
customFields: Create${entityName}CustomFieldsInput
|
|
83
|
-
}
|
|
76
|
+
customFieldTypeDefs += `
|
|
77
|
+
input Create${entityName}CustomFieldsInput {
|
|
78
|
+
${mapToFields(writeableNonLocaleStringFields, wrapListType(getGraphQlInputType), shared_utils_1.getGraphQlInputName)}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
extend input Create${entityName}Input {
|
|
82
|
+
customFields: Create${entityName}CustomFieldsInput
|
|
83
|
+
}
|
|
84
84
|
`;
|
|
85
85
|
}
|
|
86
86
|
else {
|
|
87
|
-
customFieldTypeDefs += `
|
|
88
|
-
extend input Create${entityName}Input {
|
|
89
|
-
customFields: JSON
|
|
90
|
-
}
|
|
87
|
+
customFieldTypeDefs += `
|
|
88
|
+
extend input Create${entityName}Input {
|
|
89
|
+
customFields: JSON
|
|
90
|
+
}
|
|
91
91
|
`;
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
if (schema.getType(`Update${entityName}Input`)) {
|
|
95
95
|
if (writeableNonLocaleStringFields.length) {
|
|
96
|
-
customFieldTypeDefs += `
|
|
97
|
-
input Update${entityName}CustomFieldsInput {
|
|
98
|
-
${mapToFields(writeableNonLocaleStringFields, wrapListType(getGraphQlInputType), shared_utils_1.getGraphQlInputName)}
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
extend input Update${entityName}Input {
|
|
102
|
-
customFields: Update${entityName}CustomFieldsInput
|
|
103
|
-
}
|
|
96
|
+
customFieldTypeDefs += `
|
|
97
|
+
input Update${entityName}CustomFieldsInput {
|
|
98
|
+
${mapToFields(writeableNonLocaleStringFields, wrapListType(getGraphQlInputType), shared_utils_1.getGraphQlInputName)}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
extend input Update${entityName}Input {
|
|
102
|
+
customFields: Update${entityName}CustomFieldsInput
|
|
103
|
+
}
|
|
104
104
|
`;
|
|
105
105
|
}
|
|
106
106
|
else {
|
|
107
|
-
customFieldTypeDefs += `
|
|
108
|
-
extend input Update${entityName}Input {
|
|
109
|
-
customFields: JSON
|
|
110
|
-
}
|
|
107
|
+
customFieldTypeDefs += `
|
|
108
|
+
extend input Update${entityName}Input {
|
|
109
|
+
customFields: JSON
|
|
110
|
+
}
|
|
111
111
|
`;
|
|
112
112
|
}
|
|
113
113
|
}
|
|
@@ -115,17 +115,17 @@ function addGraphQLCustomFields(typeDefsOrSchema, customFieldConfig, publicOnly)
|
|
|
115
115
|
if (customEntityNonListFields.length && schema.getType(`${entityName}SortParameter`)) {
|
|
116
116
|
// Sorting list fields makes no sense, so we only add "sort" fields
|
|
117
117
|
// to non-list fields.
|
|
118
|
-
customFieldTypeDefs += `
|
|
119
|
-
extend input ${entityName}SortParameter {
|
|
120
|
-
${mapToFields(customEntityNonListFields, () => 'SortOrder')}
|
|
121
|
-
}
|
|
118
|
+
customFieldTypeDefs += `
|
|
119
|
+
extend input ${entityName}SortParameter {
|
|
120
|
+
${mapToFields(customEntityNonListFields, () => 'SortOrder')}
|
|
121
|
+
}
|
|
122
122
|
`;
|
|
123
123
|
}
|
|
124
124
|
if (filterableFields.length && schema.getType(`${entityName}FilterParameter`)) {
|
|
125
|
-
customFieldTypeDefs += `
|
|
126
|
-
extend input ${entityName}FilterParameter {
|
|
127
|
-
${mapToFields(filterableFields, getFilterOperator)}
|
|
128
|
-
}
|
|
125
|
+
customFieldTypeDefs += `
|
|
126
|
+
extend input ${entityName}FilterParameter {
|
|
127
|
+
${mapToFields(filterableFields, getFilterOperator)}
|
|
128
|
+
}
|
|
129
129
|
`;
|
|
130
130
|
}
|
|
131
131
|
if (writeableLocaleStringFields) {
|
|
@@ -137,21 +137,21 @@ function addGraphQLCustomFields(typeDefsOrSchema, customFieldConfig, publicOnly)
|
|
|
137
137
|
for (const inputName of translationInputs) {
|
|
138
138
|
if (schema.getType(inputName)) {
|
|
139
139
|
if (writeableLocaleStringFields.length) {
|
|
140
|
-
customFieldTypeDefs += `
|
|
141
|
-
input ${inputName}CustomFields {
|
|
142
|
-
${mapToFields(writeableLocaleStringFields, wrapListType(getGraphQlType))}
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
extend input ${inputName} {
|
|
146
|
-
customFields: ${inputName}CustomFields
|
|
147
|
-
}
|
|
140
|
+
customFieldTypeDefs += `
|
|
141
|
+
input ${inputName}CustomFields {
|
|
142
|
+
${mapToFields(writeableLocaleStringFields, wrapListType(getGraphQlType))}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
extend input ${inputName} {
|
|
146
|
+
customFields: ${inputName}CustomFields
|
|
147
|
+
}
|
|
148
148
|
`;
|
|
149
149
|
}
|
|
150
150
|
else {
|
|
151
|
-
customFieldTypeDefs += `
|
|
152
|
-
extend input ${inputName} {
|
|
153
|
-
customFields: JSON
|
|
154
|
-
}
|
|
151
|
+
customFieldTypeDefs += `
|
|
152
|
+
extend input ${inputName} {
|
|
153
|
+
customFields: JSON
|
|
154
|
+
}
|
|
155
155
|
`;
|
|
156
156
|
}
|
|
157
157
|
}
|
|
@@ -163,26 +163,26 @@ function addGraphQLCustomFields(typeDefsOrSchema, customFieldConfig, publicOnly)
|
|
|
163
163
|
// For custom fields on the Address entity, we also extend the OrderAddress
|
|
164
164
|
// type (which is used to store address snapshots on Orders)
|
|
165
165
|
if (schema.getType('OrderAddress')) {
|
|
166
|
-
customFieldTypeDefs += `
|
|
167
|
-
extend type OrderAddress {
|
|
168
|
-
customFields: AddressCustomFields
|
|
169
|
-
}
|
|
166
|
+
customFieldTypeDefs += `
|
|
167
|
+
extend type OrderAddress {
|
|
168
|
+
customFields: AddressCustomFields
|
|
169
|
+
}
|
|
170
170
|
`;
|
|
171
171
|
}
|
|
172
172
|
if (schema.getType('UpdateOrderAddressInput')) {
|
|
173
|
-
customFieldTypeDefs += `
|
|
174
|
-
extend input UpdateOrderAddressInput {
|
|
175
|
-
customFields: UpdateAddressCustomFieldsInput
|
|
176
|
-
}
|
|
173
|
+
customFieldTypeDefs += `
|
|
174
|
+
extend input UpdateOrderAddressInput {
|
|
175
|
+
customFields: UpdateAddressCustomFieldsInput
|
|
176
|
+
}
|
|
177
177
|
`;
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
180
|
else {
|
|
181
181
|
if (schema.getType('OrderAddress')) {
|
|
182
|
-
customFieldTypeDefs += `
|
|
183
|
-
extend type OrderAddress {
|
|
184
|
-
customFields: JSON
|
|
185
|
-
}
|
|
182
|
+
customFieldTypeDefs += `
|
|
183
|
+
extend type OrderAddress {
|
|
184
|
+
customFields: JSON
|
|
185
|
+
}
|
|
186
186
|
`;
|
|
187
187
|
}
|
|
188
188
|
}
|
|
@@ -191,24 +191,24 @@ function addGraphQLCustomFields(typeDefsOrSchema, customFieldConfig, publicOnly)
|
|
|
191
191
|
exports.addGraphQLCustomFields = addGraphQLCustomFields;
|
|
192
192
|
function addServerConfigCustomFields(typeDefsOrSchema, customFieldConfig) {
|
|
193
193
|
const schema = typeof typeDefsOrSchema === 'string' ? (0, graphql_1.buildSchema)(typeDefsOrSchema) : typeDefsOrSchema;
|
|
194
|
-
const customFieldTypeDefs = `
|
|
195
|
-
type CustomFields {
|
|
196
|
-
${Object.keys(customFieldConfig).reduce((output, name) => output + name + ': [CustomFieldConfig!]!\n', '')}
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
extend type ServerConfig {
|
|
200
|
-
customFieldConfig: CustomFields!
|
|
201
|
-
}
|
|
194
|
+
const customFieldTypeDefs = `
|
|
195
|
+
type CustomFields {
|
|
196
|
+
${Object.keys(customFieldConfig).reduce((output, name) => output + name + ': [CustomFieldConfig!]!\n', '')}
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
extend type ServerConfig {
|
|
200
|
+
customFieldConfig: CustomFields!
|
|
201
|
+
}
|
|
202
202
|
`;
|
|
203
203
|
return (0, graphql_1.extendSchema)(schema, (0, graphql_1.parse)(customFieldTypeDefs));
|
|
204
204
|
}
|
|
205
205
|
exports.addServerConfigCustomFields = addServerConfigCustomFields;
|
|
206
206
|
function addActiveAdministratorCustomFields(typeDefsOrSchema, administratorCustomFields) {
|
|
207
207
|
const schema = typeof typeDefsOrSchema === 'string' ? (0, graphql_1.buildSchema)(typeDefsOrSchema) : typeDefsOrSchema;
|
|
208
|
-
const extension = `
|
|
209
|
-
extend input UpdateActiveAdministratorInput {
|
|
210
|
-
customFields: ${0 < (administratorCustomFields === null || administratorCustomFields === void 0 ? void 0 : administratorCustomFields.length) ? 'UpdateAdministratorCustomFieldsInput' : 'JSON'}
|
|
211
|
-
}
|
|
208
|
+
const extension = `
|
|
209
|
+
extend input UpdateActiveAdministratorInput {
|
|
210
|
+
customFields: ${0 < (administratorCustomFields === null || administratorCustomFields === void 0 ? void 0 : administratorCustomFields.length) ? 'UpdateAdministratorCustomFieldsInput' : 'JSON'}
|
|
211
|
+
}
|
|
212
212
|
`;
|
|
213
213
|
return (0, graphql_1.extendSchema)(schema, (0, graphql_1.parse)(extension));
|
|
214
214
|
}
|
|
@@ -229,14 +229,14 @@ function addRegisterCustomerCustomFieldsInput(typeDefsOrSchema, customerCustomFi
|
|
|
229
229
|
if (publicWritableCustomFields.length < 1) {
|
|
230
230
|
return schema;
|
|
231
231
|
}
|
|
232
|
-
const customFieldTypeDefs = `
|
|
233
|
-
input RegisterCustomerCustomFieldsInput {
|
|
234
|
-
${mapToFields(publicWritableCustomFields, wrapListType(getGraphQlInputType), shared_utils_1.getGraphQlInputName)}
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
extend input RegisterCustomerInput {
|
|
238
|
-
customFields: RegisterCustomerCustomFieldsInput
|
|
239
|
-
}
|
|
232
|
+
const customFieldTypeDefs = `
|
|
233
|
+
input RegisterCustomerCustomFieldsInput {
|
|
234
|
+
${mapToFields(publicWritableCustomFields, wrapListType(getGraphQlInputType), shared_utils_1.getGraphQlInputName)}
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
extend input RegisterCustomerInput {
|
|
238
|
+
customFields: RegisterCustomerCustomFieldsInput
|
|
239
|
+
}
|
|
240
240
|
`;
|
|
241
241
|
return (0, graphql_1.extendSchema)(schema, (0, graphql_1.parse)(customFieldTypeDefs));
|
|
242
242
|
}
|
|
@@ -251,10 +251,10 @@ function addModifyOrderCustomFields(typeDefsOrSchema, orderCustomFields) {
|
|
|
251
251
|
return schema;
|
|
252
252
|
}
|
|
253
253
|
if (schema.getType('ModifyOrderInput') && schema.getType('UpdateOrderCustomFieldsInput')) {
|
|
254
|
-
const customFieldTypeDefs = `
|
|
255
|
-
extend input ModifyOrderInput {
|
|
256
|
-
customFields: UpdateOrderCustomFieldsInput
|
|
257
|
-
}
|
|
254
|
+
const customFieldTypeDefs = `
|
|
255
|
+
extend input ModifyOrderInput {
|
|
256
|
+
customFields: UpdateOrderCustomFieldsInput
|
|
257
|
+
}
|
|
258
258
|
`;
|
|
259
259
|
return (0, graphql_1.extendSchema)(schema, (0, graphql_1.parse)(customFieldTypeDefs));
|
|
260
260
|
}
|
|
@@ -320,34 +320,34 @@ function addOrderLineCustomFieldsInput(typeDefsOrSchema, orderLineCustomFields)
|
|
|
320
320
|
}
|
|
321
321
|
let extendedSchema = new graphql_1.GraphQLSchema(schemaConfig);
|
|
322
322
|
if (schema.getType('AddItemInput')) {
|
|
323
|
-
const customFieldTypeDefs = `
|
|
324
|
-
extend input AddItemInput {
|
|
325
|
-
customFields: OrderLineCustomFieldsInput
|
|
326
|
-
}
|
|
323
|
+
const customFieldTypeDefs = `
|
|
324
|
+
extend input AddItemInput {
|
|
325
|
+
customFields: OrderLineCustomFieldsInput
|
|
326
|
+
}
|
|
327
327
|
`;
|
|
328
328
|
extendedSchema = (0, graphql_1.extendSchema)(extendedSchema, (0, graphql_1.parse)(customFieldTypeDefs));
|
|
329
329
|
}
|
|
330
330
|
if (schema.getType('OrderLineInput')) {
|
|
331
|
-
const customFieldTypeDefs = `
|
|
332
|
-
extend input OrderLineInput {
|
|
333
|
-
customFields: OrderLineCustomFieldsInput
|
|
334
|
-
}
|
|
331
|
+
const customFieldTypeDefs = `
|
|
332
|
+
extend input OrderLineInput {
|
|
333
|
+
customFields: OrderLineCustomFieldsInput
|
|
334
|
+
}
|
|
335
335
|
`;
|
|
336
336
|
extendedSchema = (0, graphql_1.extendSchema)(extendedSchema, (0, graphql_1.parse)(customFieldTypeDefs));
|
|
337
337
|
}
|
|
338
338
|
if (schema.getType('AddItemToDraftOrderInput')) {
|
|
339
|
-
const customFieldTypeDefs = `
|
|
340
|
-
extend input AddItemToDraftOrderInput {
|
|
341
|
-
customFields: OrderLineCustomFieldsInput
|
|
342
|
-
}
|
|
339
|
+
const customFieldTypeDefs = `
|
|
340
|
+
extend input AddItemToDraftOrderInput {
|
|
341
|
+
customFields: OrderLineCustomFieldsInput
|
|
342
|
+
}
|
|
343
343
|
`;
|
|
344
344
|
extendedSchema = (0, graphql_1.extendSchema)(extendedSchema, (0, graphql_1.parse)(customFieldTypeDefs));
|
|
345
345
|
}
|
|
346
346
|
if (schema.getType('AdjustDraftOrderLineInput')) {
|
|
347
|
-
const customFieldTypeDefs = `
|
|
348
|
-
extend input AdjustDraftOrderLineInput {
|
|
349
|
-
customFields: OrderLineCustomFieldsInput
|
|
350
|
-
}
|
|
347
|
+
const customFieldTypeDefs = `
|
|
348
|
+
extend input AdjustDraftOrderLineInput {
|
|
349
|
+
customFields: OrderLineCustomFieldsInput
|
|
350
|
+
}
|
|
351
351
|
`;
|
|
352
352
|
extendedSchema = (0, graphql_1.extendSchema)(extendedSchema, (0, graphql_1.parse)(customFieldTypeDefs));
|
|
353
353
|
}
|
|
@@ -359,17 +359,17 @@ function addShippingMethodQuoteCustomFields(typeDefsOrSchema, shippingMethodCust
|
|
|
359
359
|
let customFieldTypeDefs = '';
|
|
360
360
|
const publicCustomFields = shippingMethodCustomFields.filter(f => f.public !== false);
|
|
361
361
|
if (0 < publicCustomFields.length) {
|
|
362
|
-
customFieldTypeDefs = `
|
|
363
|
-
extend type ShippingMethodQuote {
|
|
364
|
-
customFields: ShippingMethodCustomFields
|
|
365
|
-
}
|
|
362
|
+
customFieldTypeDefs = `
|
|
363
|
+
extend type ShippingMethodQuote {
|
|
364
|
+
customFields: ShippingMethodCustomFields
|
|
365
|
+
}
|
|
366
366
|
`;
|
|
367
367
|
}
|
|
368
368
|
else {
|
|
369
|
-
customFieldTypeDefs = `
|
|
370
|
-
extend type ShippingMethodQuote {
|
|
371
|
-
customFields: JSON
|
|
372
|
-
}
|
|
369
|
+
customFieldTypeDefs = `
|
|
370
|
+
extend type ShippingMethodQuote {
|
|
371
|
+
customFields: JSON
|
|
372
|
+
}
|
|
373
373
|
`;
|
|
374
374
|
}
|
|
375
375
|
return (0, graphql_1.extendSchema)(schema, (0, graphql_1.parse)(customFieldTypeDefs));
|
|
@@ -380,17 +380,17 @@ function addPaymentMethodQuoteCustomFields(typeDefsOrSchema, paymentMethodCustom
|
|
|
380
380
|
let customFieldTypeDefs = '';
|
|
381
381
|
const publicCustomFields = paymentMethodCustomFields.filter(f => f.public !== false);
|
|
382
382
|
if (0 < publicCustomFields.length) {
|
|
383
|
-
customFieldTypeDefs = `
|
|
384
|
-
extend type PaymentMethodQuote {
|
|
385
|
-
customFields: PaymentMethodCustomFields
|
|
386
|
-
}
|
|
383
|
+
customFieldTypeDefs = `
|
|
384
|
+
extend type PaymentMethodQuote {
|
|
385
|
+
customFields: PaymentMethodCustomFields
|
|
386
|
+
}
|
|
387
387
|
`;
|
|
388
388
|
}
|
|
389
389
|
else {
|
|
390
|
-
customFieldTypeDefs = `
|
|
391
|
-
extend type PaymentMethodQuote {
|
|
392
|
-
customFields: JSON
|
|
393
|
-
}
|
|
390
|
+
customFieldTypeDefs = `
|
|
391
|
+
extend type PaymentMethodQuote {
|
|
392
|
+
customFields: JSON
|
|
393
|
+
}
|
|
394
394
|
`;
|
|
395
395
|
}
|
|
396
396
|
return (0, graphql_1.extendSchema)(schema, (0, graphql_1.parse)(customFieldTypeDefs));
|
|
@@ -26,6 +26,18 @@ export declare const TRANSACTION_MODE_METADATA_KEY = "__transaction_mode__";
|
|
|
26
26
|
* @docsPage Transaction Decorator
|
|
27
27
|
*/
|
|
28
28
|
export type TransactionMode = 'auto' | 'manual';
|
|
29
|
+
export declare const TRANSACTION_ISOLATION_LEVEL_METADATA_KEY = "__transaction_isolation_level__";
|
|
30
|
+
/**
|
|
31
|
+
* @description
|
|
32
|
+
* Transactions can be run at different isolation levels. The default is undefined, which
|
|
33
|
+
* falls back to the default of your database. See the documentation of your database for more
|
|
34
|
+
* information on available isolation levels.
|
|
35
|
+
*
|
|
36
|
+
* @default undefined
|
|
37
|
+
* @docsCategory request
|
|
38
|
+
* @docsPage Transaction Decorator
|
|
39
|
+
*/
|
|
40
|
+
export type TransactionIsolationLevel = 'READ UNCOMMITTED' | 'READ COMMITTED' | 'REPEATABLE READ' | 'SERIALIZABLE';
|
|
29
41
|
/**
|
|
30
42
|
* @description
|
|
31
43
|
* Runs the decorated method in a TypeORM transaction. It works by creating a transactional
|
|
@@ -56,4 +68,4 @@ export type TransactionMode = 'auto' | 'manual';
|
|
|
56
68
|
* @docsPage Transaction Decorator
|
|
57
69
|
* @docsWeight 0
|
|
58
70
|
*/
|
|
59
|
-
export declare const Transaction: (transactionMode?: TransactionMode) => <TFunction extends Function, Y>(target: object | TFunction, propertyKey?: string | symbol | undefined, descriptor?: TypedPropertyDescriptor<Y> | undefined) => void;
|
|
71
|
+
export declare const Transaction: (transactionMode?: TransactionMode, transactionIsolationLevel?: TransactionIsolationLevel) => <TFunction extends Function, Y>(target: object | TFunction, propertyKey?: string | symbol | undefined, descriptor?: TypedPropertyDescriptor<Y> | undefined) => void;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Transaction = exports.TRANSACTION_MODE_METADATA_KEY = void 0;
|
|
3
|
+
exports.Transaction = exports.TRANSACTION_ISOLATION_LEVEL_METADATA_KEY = exports.TRANSACTION_MODE_METADATA_KEY = void 0;
|
|
4
4
|
const common_1 = require("@nestjs/common");
|
|
5
5
|
const transaction_interceptor_1 = require("../middleware/transaction-interceptor");
|
|
6
6
|
exports.TRANSACTION_MODE_METADATA_KEY = '__transaction_mode__';
|
|
7
|
+
exports.TRANSACTION_ISOLATION_LEVEL_METADATA_KEY = '__transaction_isolation_level__';
|
|
7
8
|
/**
|
|
8
9
|
* @description
|
|
9
10
|
* Runs the decorated method in a TypeORM transaction. It works by creating a transactional
|
|
@@ -34,8 +35,8 @@ exports.TRANSACTION_MODE_METADATA_KEY = '__transaction_mode__';
|
|
|
34
35
|
* @docsPage Transaction Decorator
|
|
35
36
|
* @docsWeight 0
|
|
36
37
|
*/
|
|
37
|
-
const Transaction = (transactionMode = 'auto') => {
|
|
38
|
-
return (0, common_1.applyDecorators)((0, common_1.SetMetadata)(exports.TRANSACTION_MODE_METADATA_KEY, transactionMode), (0, common_1.UseInterceptors)(transaction_interceptor_1.TransactionInterceptor));
|
|
38
|
+
const Transaction = (transactionMode = 'auto', transactionIsolationLevel) => {
|
|
39
|
+
return (0, common_1.applyDecorators)((0, common_1.SetMetadata)(exports.TRANSACTION_MODE_METADATA_KEY, transactionMode), (0, common_1.SetMetadata)(exports.TRANSACTION_ISOLATION_LEVEL_METADATA_KEY, transactionIsolationLevel), (0, common_1.UseInterceptors)(transaction_interceptor_1.TransactionInterceptor));
|
|
39
40
|
};
|
|
40
41
|
exports.Transaction = Transaction;
|
|
41
42
|
//# sourceMappingURL=transaction.decorator.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transaction.decorator.js","sourceRoot":"","sources":["../../../src/api/decorators/transaction.decorator.ts"],"names":[],"mappings":";;;AAAA,2CAA+E;AAE/E,mFAA+E;AAElE,QAAA,6BAA6B,GAAG,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"transaction.decorator.js","sourceRoot":"","sources":["../../../src/api/decorators/transaction.decorator.ts"],"names":[],"mappings":";;;AAAA,2CAA+E;AAE/E,mFAA+E;AAElE,QAAA,6BAA6B,GAAG,sBAAsB,CAAC;AA6BvD,QAAA,wCAAwC,GAAG,iCAAiC,CAAC;AAa1F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACI,MAAM,WAAW,GAAG,CAAC,kBAAmC,MAAM,EAAE,yBAAqD,EAAE,EAAE;IAC5H,OAAO,IAAA,wBAAe,EAClB,IAAA,oBAAW,EAAC,qCAA6B,EAAE,eAAe,CAAC,EAC3D,IAAA,oBAAW,EAAC,gDAAwC,EAAE,yBAAyB,CAAC,EAChF,IAAA,wBAAe,EAAC,gDAAsB,CAAC,CAC1C,CAAC;AACN,CAAC,CAAC;AANW,QAAA,WAAW,eAMtB"}
|
|
@@ -34,10 +34,11 @@ let TransactionInterceptor = class TransactionInterceptor {
|
|
|
34
34
|
const ctx = req[constants_1.REQUEST_CONTEXT_KEY];
|
|
35
35
|
if (ctx) {
|
|
36
36
|
const transactionMode = this.reflector.get(transaction_decorator_1.TRANSACTION_MODE_METADATA_KEY, context.getHandler());
|
|
37
|
+
const transactionIsolationLevel = this.reflector.get(transaction_decorator_1.TRANSACTION_ISOLATION_LEVEL_METADATA_KEY, context.getHandler());
|
|
37
38
|
return (0, rxjs_1.of)(this.transactionWrapper.executeInTransaction(ctx, _ctx => {
|
|
38
39
|
this.registerTransactionalContext(_ctx, context.getHandler(), req);
|
|
39
40
|
return next.handle();
|
|
40
|
-
}, transactionMode, this.connection.rawConnection));
|
|
41
|
+
}, transactionMode, transactionIsolationLevel, this.connection.rawConnection));
|
|
41
42
|
}
|
|
42
43
|
else {
|
|
43
44
|
return next.handle();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transaction-interceptor.js","sourceRoot":"","sources":["../../../src/api/middleware/transaction-interceptor.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4F;AAC5F,uCAAyC;AACzC,+BAAsC;AAGtC,sDAAsF;AACtF,8EAA0E;AAC1E,wFAAoF;AACpF,2DAAuD;AACvD,+
|
|
1
|
+
{"version":3,"file":"transaction-interceptor.js","sourceRoot":"","sources":["../../../src/api/middleware/transaction-interceptor.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4F;AAC5F,uCAAyC;AACzC,+BAAsC;AAGtC,sDAAsF;AACtF,8EAA0E;AAC1E,wFAAoF;AACpF,2DAAuD;AACvD,+EAA0K;AAE1K;;;;GAIG;AAEI,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;IAC/B,YACY,UAAmC,EACnC,kBAAsC,EACtC,SAAoB;QAFpB,eAAU,GAAV,UAAU,CAAyB;QACnC,uBAAkB,GAAlB,kBAAkB,CAAoB;QACtC,cAAS,GAAT,SAAS,CAAW;IAC5B,CAAC;IAEL,SAAS,CAAC,OAAyB,EAAE,IAAiB;QAClD,MAAM,EAAE,SAAS,EAAE,GAAG,EAAE,GAAG,IAAA,4BAAY,EAAC,OAAO,CAAC,CAAC;QACjD,MAAM,GAAG,GAAgC,GAAW,CAAC,+BAAmB,CAAC,CAAC;QAE1E,IAAI,GAAG,EAAE;YACL,MAAM,eAAe,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CACtC,qDAA6B,EAC7B,OAAO,CAAC,UAAU,EAAE,CACvB,CAAC;YACF,MAAM,yBAAyB,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAChD,gEAAwC,EACxC,OAAO,CAAC,UAAU,EAAE,CACvB,CAAC;YAEF,OAAO,IAAA,SAAE,EACL,IAAI,CAAC,kBAAkB,CAAC,oBAAoB,CACxC,GAAG,EACH,IAAI,CAAC,EAAE;gBACH,IAAI,CAAC,4BAA4B,CAAC,IAAI,EAAE,OAAO,CAAC,UAAU,EAAE,EAAE,GAAG,CAAC,CAAC;gBAEnE,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC;YACzB,CAAC,EACD,eAAe,EACf,yBAAyB,EACzB,IAAI,CAAC,UAAU,CAAC,aAAa,CAChC,CACJ,CAAC;SACL;aAAM;YACH,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC;SACxB;IACL,CAAC;IAED;;;;;;OAMG;IACH,wDAAwD;IACxD,4BAA4B,CAAC,GAAmB,EAAE,OAAiB,EAAE,GAAQ;QACzE,wDAAwD;QACxD,MAAM,GAAG,GAAkC,GAAG,CAAC,mCAAuB,CAAC,IAAI,IAAI,GAAG,EAAE,CAAC;QACrF,GAAG,CAAC,GAAG,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;QAEtB,GAAG,CAAC,mCAAuB,CAAC,GAAG,GAAG,CAAC;IACvC,CAAC;CACJ,CAAA;AAtDY,sBAAsB;IADlC,IAAA,mBAAU,GAAE;qCAGe,kDAAuB;QACf,wCAAkB;QAC3B,gBAAS;GAJvB,sBAAsB,CAsDlC;AAtDY,wDAAsB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
2
|
import { Connection } from 'typeorm';
|
|
3
3
|
import { RequestContext } from '../api/common/request-context';
|
|
4
|
-
import { TransactionMode } from '../api/decorators/transaction.decorator';
|
|
4
|
+
import { TransactionIsolationLevel, TransactionMode } from '../api/decorators/transaction.decorator';
|
|
5
5
|
/**
|
|
6
6
|
* @description
|
|
7
7
|
* This helper class is used to wrap operations in a TypeORM transaction in order to ensure
|
|
@@ -18,7 +18,7 @@ export declare class TransactionWrapper {
|
|
|
18
18
|
* This function does not mutate your context. Instead, this function makes a copy and passes
|
|
19
19
|
* context to work function.
|
|
20
20
|
*/
|
|
21
|
-
executeInTransaction<T>(originalCtx: RequestContext, work: (ctx: RequestContext) => Observable<T> | Promise<T>, mode: TransactionMode, connection: Connection): Promise<T>;
|
|
21
|
+
executeInTransaction<T>(originalCtx: RequestContext, work: (ctx: RequestContext) => Observable<T> | Promise<T>, mode: TransactionMode, isolationLevel: TransactionIsolationLevel | undefined, connection: Connection): Promise<T>;
|
|
22
22
|
/**
|
|
23
23
|
* Attempts to start a DB transaction, with retry logic in the case that a transaction
|
|
24
24
|
* is already started for the connection (which is mainly a problem with SQLite/Sql.js)
|
|
@@ -21,13 +21,13 @@ class TransactionWrapper {
|
|
|
21
21
|
* This function does not mutate your context. Instead, this function makes a copy and passes
|
|
22
22
|
* context to work function.
|
|
23
23
|
*/
|
|
24
|
-
async executeInTransaction(originalCtx, work, mode, connection) {
|
|
24
|
+
async executeInTransaction(originalCtx, work, mode, isolationLevel, connection) {
|
|
25
25
|
// Copy to make sure original context will remain valid after transaction completes
|
|
26
26
|
const ctx = originalCtx.copy();
|
|
27
27
|
const entityManager = ctx[constants_1.TRANSACTION_MANAGER_KEY];
|
|
28
28
|
const queryRunner = (entityManager === null || entityManager === void 0 ? void 0 : entityManager.queryRunner) || connection.createQueryRunner();
|
|
29
29
|
if (mode === 'auto') {
|
|
30
|
-
await this.startTransaction(queryRunner);
|
|
30
|
+
await this.startTransaction(queryRunner, isolationLevel);
|
|
31
31
|
}
|
|
32
32
|
ctx[constants_1.TRANSACTION_MANAGER_KEY] = queryRunner.manager;
|
|
33
33
|
try {
|
|
@@ -61,14 +61,14 @@ class TransactionWrapper {
|
|
|
61
61
|
* Attempts to start a DB transaction, with retry logic in the case that a transaction
|
|
62
62
|
* is already started for the connection (which is mainly a problem with SQLite/Sql.js)
|
|
63
63
|
*/
|
|
64
|
-
async startTransaction(queryRunner) {
|
|
64
|
+
async startTransaction(queryRunner, isolationLevel) {
|
|
65
65
|
const maxRetries = 25;
|
|
66
66
|
let attempts = 0;
|
|
67
67
|
let lastError;
|
|
68
68
|
// Returns false if a transaction is already in progress
|
|
69
69
|
async function attemptStartTransaction() {
|
|
70
70
|
try {
|
|
71
|
-
await queryRunner.startTransaction();
|
|
71
|
+
await queryRunner.startTransaction(isolationLevel);
|
|
72
72
|
return true;
|
|
73
73
|
}
|
|
74
74
|
catch (err) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transaction-wrapper.js","sourceRoot":"","sources":["../../src/connection/transaction-wrapper.ts"],"names":[],"mappings":";;;AAAA,+BAA2D;AAC3D,8CAAsD;AAEtD,iGAA8F;AAI9F,mDAA8D;AAE9D;;;;GAIG;AACH,MAAa,kBAAkB;IAC3B;;;;;;;;;OASG;IACH,KAAK,CAAC,oBAAoB,CACtB,WAA2B,EAC3B,IAAyD,EACzD,IAAqB,EACrB,UAAsB;QAEtB,mFAAmF;QACnF,MAAM,GAAG,GAAG,WAAW,CAAC,IAAI,EAAE,CAAC;QAE/B,MAAM,aAAa,GAA+B,GAAW,CAAC,mCAAuB,CAAC,CAAC;QACvF,MAAM,WAAW,GAAG,CAAA,aAAa,aAAb,aAAa,uBAAb,aAAa,
|
|
1
|
+
{"version":3,"file":"transaction-wrapper.js","sourceRoot":"","sources":["../../src/connection/transaction-wrapper.ts"],"names":[],"mappings":";;;AAAA,+BAA2D;AAC3D,8CAAsD;AAEtD,iGAA8F;AAI9F,mDAA8D;AAE9D;;;;GAIG;AACH,MAAa,kBAAkB;IAC3B;;;;;;;;;OASG;IACH,KAAK,CAAC,oBAAoB,CACtB,WAA2B,EAC3B,IAAyD,EACzD,IAAqB,EACrB,cAAqD,EACrD,UAAsB;QAEtB,mFAAmF;QACnF,MAAM,GAAG,GAAG,WAAW,CAAC,IAAI,EAA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ACJ;IACL,CAAC;IAED;;;OAGG;IACK,KAAK,CAAC,gBAAgB,CAAC,WAAwB,EAAE,cAAqD;QAC1G,MAAM,UAAU,GAAG,EAAE,CAAC;QACtB,IAAI,QAAQ,GAAG,CAAC,CAAC;QACjB,IAAI,SAAc,CAAC;QAEnB,wDAAwD;QACxD,KAAK,UAAU,uBAAuB;YAClC,IAAI;gBACA,MAAM,WAAW,CAAC,gBAAgB,CAAC,cAAc,CAAC,CAAC;gBACnD,OAAO,IAAI,CAAC;aACf;YAAC,OAAO,GAAQ,EAAE;gBACf,SAAS,GAAG,GAAG,CAAC;gBAChB,IAAI,GAAG,YAAY,+DAA8B,EAAE;oBAC/C,OAAO,KAAK,CAAC;iBAChB;gBACD,MAAM,GAAG,CAAC;aACb;QACL,CAAC;QAED,OAAO,QAAQ,GAAG,UAAU,EAAE;YAC1B,MAAM,MAAM,GAAG,MAAM,uBAAuB,EAAE,CAAC;YAC/C,IAAI,MAAM,EAAE;gBACR,OAAO;aACV;YACD,QAAQ,EAAE,CAAC;YACX,6CAA6C;YAC7C,MAAM,IAAI,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,QAAQ,GAAG,EAAE,CAAC,CAAC,CAAC;SACpE;QACD,MAAM,SAAS,CAAC;IACpB,CAAC;IAED;;;;OAIG;IACK,gBAAgB,CAAC,GAAQ;QAC7B,MAAM,aAAa,GAAG,GAAG,CAAC,IAAI,KAAK,kBAAkB,CAAC;QACtD,MAAM,gBAAgB,GAAG,GAAG,CAAC,IAAI,KAAK,mBAAmB,CAAC;QAC1D,OAAO,aAAa,IAAI,gBAAgB,CAAC;IAC7C,CAAC;CACJ;AA9GD,gDA8GC"}
|
|
@@ -6,6 +6,7 @@ import { ChannelAware } from '../common/types/common-types';
|
|
|
6
6
|
import { VendureEntity } from '../entity/base/base.entity';
|
|
7
7
|
import { TransactionWrapper } from './transaction-wrapper';
|
|
8
8
|
import { GetEntityOrThrowOptions } from './types';
|
|
9
|
+
import { TransactionIsolationLevel } from '../api/decorators/transaction.decorator';
|
|
9
10
|
/**
|
|
10
11
|
* @description
|
|
11
12
|
* The TransactionalConnection is a wrapper around the TypeORM `Connection` object which works in conjunction
|
|
@@ -93,7 +94,7 @@ export declare class TransactionalConnection {
|
|
|
93
94
|
* Manually start a transaction if one is not already in progress. This method should be used in
|
|
94
95
|
* conjunction with the `'manual'` mode of the {@link Transaction} decorator.
|
|
95
96
|
*/
|
|
96
|
-
startTransaction(ctx: RequestContext): Promise<void>;
|
|
97
|
+
startTransaction(ctx: RequestContext, isolationLevel?: TransactionIsolationLevel): Promise<void>;
|
|
97
98
|
/**
|
|
98
99
|
* @description
|
|
99
100
|
* Manually commits any open transaction. Should be very rarely needed, since the {@link Transaction} decorator
|
|
@@ -86,18 +86,18 @@ let TransactionalConnection = class TransactionalConnection {
|
|
|
86
86
|
ctx = request_context_1.RequestContext.empty();
|
|
87
87
|
work = ctxOrWork;
|
|
88
88
|
}
|
|
89
|
-
return this.transactionWrapper.executeInTransaction(ctx, work, 'auto', this.rawConnection);
|
|
89
|
+
return this.transactionWrapper.executeInTransaction(ctx, work, 'auto', undefined, this.rawConnection);
|
|
90
90
|
}
|
|
91
91
|
/**
|
|
92
92
|
* @description
|
|
93
93
|
* Manually start a transaction if one is not already in progress. This method should be used in
|
|
94
94
|
* conjunction with the `'manual'` mode of the {@link Transaction} decorator.
|
|
95
95
|
*/
|
|
96
|
-
async startTransaction(ctx) {
|
|
96
|
+
async startTransaction(ctx, isolationLevel) {
|
|
97
97
|
var _a;
|
|
98
98
|
const transactionManager = this.getTransactionManager(ctx);
|
|
99
99
|
if (((_a = transactionManager === null || transactionManager === void 0 ? void 0 : transactionManager.queryRunner) === null || _a === void 0 ? void 0 : _a.isTransactionActive) === false) {
|
|
100
|
-
await transactionManager.queryRunner.startTransaction();
|
|
100
|
+
await transactionManager.queryRunner.startTransaction(isolationLevel);
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
103
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transactional-connection.js","sourceRoot":"","sources":["../../src/connection/transactional-connection.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,6CAAmD;AAEnD,qCASiB;AAGjB,mEAA+D;AAC/D,mDAA8D;AAC9D,mDAA6D;AAI7D,+DAA2D;
|
|
1
|
+
{"version":3,"file":"transactional-connection.js","sourceRoot":"","sources":["../../src/connection/transactional-connection.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,6CAAmD;AAEnD,qCASiB;AAGjB,mEAA+D;AAC/D,mDAA8D;AAC9D,mDAA6D;AAI7D,+DAA2D;AAI3D;;;;;;;;;;;GAWG;AAEI,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;IAChC,YACgC,UAAsB,EAC1C,kBAAsC;QADlB,eAAU,GAAV,UAAU,CAAY;QAC1C,uBAAkB,GAAlB,kBAAkB,CAAoB;IAC9C,CAAC;IAEL;;;;;OAKG;IACH,IAAI,aAAa;QACb,OAAO,IAAI,CAAC,UAAU,CAAC;IAC3B,CAAC;IAuBD,aAAa,CACT,WAA4F,EAC5F,WAAgE;QAEhE,IAAI,WAAW,YAAY,gCAAc,EAAE;YACvC,MAAM,kBAAkB,GAAG,IAAI,CAAC,qBAAqB,CAAC,WAAW,CAAC,CAAC;YACnE,IAAI,kBAAkB,EAAE;gBACpB,oEAAoE;gBACpE,OAAO,kBAAkB,CAAC,aAAa,CAAC,WAAY,CAAC,CAAC;aACzD;iBAAM;gBACH,oEAAoE;gBACpE,OAAO,IAAI,CAAC,aAAa,CAAC,aAAa,CAAC,WAAY,CAAC,CAAC;aACzD;SACJ;aAAM;YACH,oEAAoE;YACpE,OAAO,IAAI,CAAC,aAAa,CAAC,aAAa,CAAC,WAAW,aAAX,WAAW,cAAX,WAAW,GAAI,WAAY,CAAC,CAAC;SACxE;IACL,CAAC;IA6C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aAClD,OAAO,EAAE,CAAC;IACnB,CAAC;IAEO,qBAAqB,CAAC,GAAmB;QAC7C,OAAQ,GAAW,CAAC,mCAAuB,CAAC,CAAC;IACjD,CAAC;CACJ,CAAA;AA5RY,uBAAuB;IADnC,IAAA,mBAAU,GAAE;IAGJ,WAAA,IAAA,0BAAgB,GAAE,CAAA;qCAAqB,oBAAU;QACtB,wCAAkB;GAHzC,uBAAuB,CA4RnC;AA5RY,0DAAuB"}
|
|
@@ -18,6 +18,11 @@ const payment_method_entity_1 = require("./payment-method.entity");
|
|
|
18
18
|
let PaymentMethodTranslation = class PaymentMethodTranslation extends base_entity_1.VendureEntity {
|
|
19
19
|
constructor(input) {
|
|
20
20
|
super(input);
|
|
21
|
+
// This is a workaround for the fact that
|
|
22
|
+
// MySQL does not support default values on TEXT columns
|
|
23
|
+
if (this.description === undefined) {
|
|
24
|
+
this.description = '';
|
|
25
|
+
}
|
|
21
26
|
}
|
|
22
27
|
};
|
|
23
28
|
__decorate([
|
|
@@ -29,7 +34,7 @@ __decorate([
|
|
|
29
34
|
__metadata("design:type", String)
|
|
30
35
|
], PaymentMethodTranslation.prototype, "name", void 0);
|
|
31
36
|
__decorate([
|
|
32
|
-
(0, typeorm_1.Column)('text'
|
|
37
|
+
(0, typeorm_1.Column)('text'),
|
|
33
38
|
__metadata("design:type", String)
|
|
34
39
|
], PaymentMethodTranslation.prototype, "description", void 0);
|
|
35
40
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payment-method-translation.entity.js","sourceRoot":"","sources":["../../../src/entity/payment-method/payment-method-translation.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yEAAmE;AAEnE,qCAA2D;AAI3D,qDAAoD;AACpD,kEAA+E;AAE/E,mEAAwD;AAGjD,IAAM,wBAAwB,GAA9B,MAAM,wBACT,SAAQ,2BAAa;IAGrB,YAAY,KAA+C;QACvD,KAAK,CAAC,KAAK,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"payment-method-translation.entity.js","sourceRoot":"","sources":["../../../src/entity/payment-method/payment-method-translation.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yEAAmE;AAEnE,qCAA2D;AAI3D,qDAAoD;AACpD,kEAA+E;AAE/E,mEAAwD;AAGjD,IAAM,wBAAwB,GAA9B,MAAM,wBACT,SAAQ,2BAAa;IAGrB,YAAY,KAA+C;QACvD,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,yCAAyC;QACzC,wDAAwD;QACxD,IAAI,IAAI,CAAC,WAAW,KAAK,SAAS,EAAE;YAChC,IAAI,CAAC,WAAW,GAAG,EAAE,CAAC;SACzB;IACL,CAAC;CAcJ,CAAA;AAZG;IAAC,IAAA,gBAAM,EAAC,SAAS,CAAC;;8DAA4B;AAE9C;IAAC,IAAA,gBAAM,GAAE;;sDAAc;AAEvB;IAAC,IAAA,gBAAM,EAAC,MAAM,CAAC;;6DAAqB;AAEpC;IAAC,IAAA,eAAK,GAAE;IACP,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,qCAAa,EAAE,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,YAAY,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;8BAC/E,qCAAa;sDAAC;AAEpB;IAAC,IAAA,gBAAM,EAAC,IAAI,CAAC,EAAE,CAAC,2DAAoC,CAAC;8BACvC,2DAAoC;8DAAC;AAxB1C,wBAAwB;IADpC,IAAA,gBAAM,GAAE;;GACI,wBAAwB,CAyBpC;AAzBY,4DAAwB"}
|
|
@@ -18,6 +18,11 @@ const promotion_entity_1 = require("./promotion.entity");
|
|
|
18
18
|
let PromotionTranslation = class PromotionTranslation extends base_entity_1.VendureEntity {
|
|
19
19
|
constructor(input) {
|
|
20
20
|
super(input);
|
|
21
|
+
// This is a workaround for the fact that
|
|
22
|
+
// MySQL does not support default values on TEXT columns
|
|
23
|
+
if (this.description === undefined) {
|
|
24
|
+
this.description = '';
|
|
25
|
+
}
|
|
21
26
|
}
|
|
22
27
|
};
|
|
23
28
|
__decorate([
|
|
@@ -29,7 +34,7 @@ __decorate([
|
|
|
29
34
|
__metadata("design:type", String)
|
|
30
35
|
], PromotionTranslation.prototype, "name", void 0);
|
|
31
36
|
__decorate([
|
|
32
|
-
(0, typeorm_1.Column)('text'
|
|
37
|
+
(0, typeorm_1.Column)('text'),
|
|
33
38
|
__metadata("design:type", String)
|
|
34
39
|
], PromotionTranslation.prototype, "description", void 0);
|
|
35
40
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"promotion-translation.entity.js","sourceRoot":"","sources":["../../../src/entity/promotion/promotion-translation.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yEAAmE;AAEnE,qCAA2D;AAI3D,qDAAoD;AACpD,kEAA2E;AAE3E,yDAA+C;AAGxC,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,2BAAa;IACnD,YAAY,KAA2C;QACnD,KAAK,CAAC,KAAK,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"promotion-translation.entity.js","sourceRoot":"","sources":["../../../src/entity/promotion/promotion-translation.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yEAAmE;AAEnE,qCAA2D;AAI3D,qDAAoD;AACpD,kEAA2E;AAE3E,yDAA+C;AAGxC,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,2BAAa;IACnD,YAAY,KAA2C;QACnD,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,yCAAyC;QACzC,wDAAwD;QACxD,IAAI,IAAI,CAAC,WAAW,KAAK,SAAS,EAAE;YAChC,IAAI,CAAC,WAAW,GAAG,EAAE,CAAC;SACzB;IACL,CAAC;CAcJ,CAAA;AAZG;IAAC,IAAA,gBAAM,EAAC,SAAS,CAAC;;0DAA4B;AAE9C;IAAC,IAAA,gBAAM,GAAE;;kDAAc;AAEvB;IAAC,IAAA,gBAAM,EAAC,MAAM,CAAC;;yD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AC;SAC5D;QACD,KAAK,CAAC,OAAO,GAAG,WAAW,CAAC;IAChC,CAAC;CACJ,CAAA;AA1GY,WAAW;IADvB,IAAA,mBAAU,GAAE;qCAM0B,8BAAa;GALvC,WAAW,CA0GvB;AA1GY,kCAAW"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vendure/core",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.2",
|
|
4
4
|
"description": "A modern, headless ecommerce framework",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"@nestjs/testing": "9.3.9",
|
|
53
53
|
"@nestjs/typeorm": "9.0.1",
|
|
54
54
|
"@types/fs-extra": "^9.0.1",
|
|
55
|
-
"@vendure/common": "
|
|
55
|
+
"@vendure/common": "2.0.0-beta.2",
|
|
56
56
|
"apollo-server-express": "3.6.3",
|
|
57
57
|
"bcrypt": "^5.1.0",
|
|
58
58
|
"body-parser": "^1.19.0",
|
|
@@ -104,5 +104,5 @@
|
|
|
104
104
|
"sqlite3": "^5.1.4",
|
|
105
105
|
"typescript": "4.9.5"
|
|
106
106
|
},
|
|
107
|
-
"gitHead": "
|
|
107
|
+
"gitHead": "30a297e9afabcfd129d30c843cabd1b5761046a6"
|
|
108
108
|
}
|