@vendure/core 1.9.1 → 1.9.3
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/middleware/validate-custom-fields-interceptor.js +6 -0
- package/dist/api/middleware/validate-custom-fields-interceptor.js.map +1 -1
- package/dist/api/resolvers/entity/customer-entity.resolver.js +1 -1
- package/dist/api/resolvers/entity/customer-entity.resolver.js.map +1 -1
- package/dist/common/constants.d.ts +2 -1
- package/dist/config/auth/native-authentication-strategy.d.ts +1 -1
- package/dist/config/auth/native-authentication-strategy.js +13 -14
- package/dist/config/auth/native-authentication-strategy.js.map +1 -1
- package/dist/config/payment/payment-method-handler.d.ts +2 -2
- package/dist/config/payment/payment-method-handler.js +1 -1
- package/dist/connection/connection.module.d.ts +1 -1
- package/dist/entity/authentication-method/external-authentication-method.entity.js +1 -3
- package/dist/entity/authentication-method/external-authentication-method.entity.js.map +1 -1
- package/dist/entity/authentication-method/native-authentication-method.entity.js +1 -3
- package/dist/entity/authentication-method/native-authentication-method.entity.js.map +1 -1
- package/dist/entity/channel/channel.entity.js +3 -5
- package/dist/entity/channel/channel.entity.js.map +1 -1
- package/dist/entity/collection/collection-asset.entity.js +2 -4
- package/dist/entity/collection/collection-asset.entity.js.map +1 -1
- package/dist/entity/country/country-translation.entity.js +2 -4
- package/dist/entity/country/country-translation.entity.js.map +1 -1
- package/dist/entity/country/country.entity.js +1 -3
- package/dist/entity/country/country.entity.js.map +1 -1
- package/dist/entity/customer-group/customer-group.entity.js +1 -3
- package/dist/entity/customer-group/customer-group.entity.js.map +1 -1
- package/dist/entity/product/product-asset.entity.js +2 -4
- package/dist/entity/product/product-asset.entity.js.map +1 -1
- package/dist/entity/product-variant/product-variant-asset.entity.js +2 -4
- package/dist/entity/product-variant/product-variant-asset.entity.js.map +1 -1
- package/dist/entity/role/role.entity.js +1 -3
- package/dist/entity/role/role.entity.js.map +1 -1
- package/dist/entity/tag/tag.entity.js +1 -3
- package/dist/entity/tag/tag.entity.js.map +1 -1
- package/dist/entity/user/user.entity.d.ts +1 -0
- package/dist/entity/user/user.entity.js +2 -2
- package/dist/entity/user/user.entity.js.map +1 -1
- package/dist/entity/zone/zone.entity.js +1 -3
- package/dist/entity/zone/zone.entity.js.map +1 -1
- package/dist/service/helpers/external-authentication/external-authentication.service.js +6 -5
- package/dist/service/helpers/external-authentication/external-authentication.service.js.map +1 -1
- package/dist/service/services/auth.service.js +4 -2
- package/dist/service/services/auth.service.js.map +1 -1
- package/dist/service/services/collection.service.js +10 -0
- package/dist/service/services/collection.service.js.map +1 -1
- package/dist/service/services/customer.service.js +5 -8
- package/dist/service/services/customer.service.js.map +1 -1
- package/dist/service/services/product-option-group.service.js +2 -1
- package/dist/service/services/product-option-group.service.js.map +1 -1
- package/dist/service/services/product-variant.service.js +2 -1
- package/dist/service/services/product-variant.service.js.map +1 -1
- package/dist/service/services/user.service.d.ts +1 -1
- package/dist/service/services/user.service.js +25 -13
- package/dist/service/services/user.service.js.map +1 -1
- package/package.json +3 -3
|
@@ -34,6 +34,7 @@ let ValidateCustomFieldsInterceptor = class ValidateCustomFieldsInterceptor {
|
|
|
34
34
|
inputs.add(`Update${entityName}Input`);
|
|
35
35
|
return inputs;
|
|
36
36
|
}, new Set());
|
|
37
|
+
this.inputsWithCustomFields.add('OrderLineCustomFieldsInput');
|
|
37
38
|
}
|
|
38
39
|
async intercept(context, next) {
|
|
39
40
|
const parsedContext = parse_context_1.parseContext(context);
|
|
@@ -65,6 +66,11 @@ let ValidateCustomFieldsInterceptor = class ValidateCustomFieldsInterceptor {
|
|
|
65
66
|
if (variableValues) {
|
|
66
67
|
const entityName = typeName.replace(/(Create|Update)(.+)Input/, '$2');
|
|
67
68
|
const customFieldConfig = this.configService.customFields[entityName];
|
|
69
|
+
if (typeName === 'OrderLineCustomFieldsInput') {
|
|
70
|
+
// special case needed to handle custom fields passed via addItemToOrder or adjustOrderLine
|
|
71
|
+
// mutations.
|
|
72
|
+
await this.validateCustomFieldsObject(this.configService.customFields.OrderLine, languageCode, variableValues, injector);
|
|
73
|
+
}
|
|
68
74
|
if (variableValues.customFields) {
|
|
69
75
|
await this.validateCustomFieldsObject(customFieldConfig, languageCode, variableValues.customFields, injector);
|
|
70
76
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validate-custom-fields-interceptor.js","sourceRoot":"","sources":["../../../src/api/middleware/validate-custom-fields-interceptor.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4F;AAC5F,uCAAyC;AACzC,6CAAsD;AAEtD,mEAAuE;AACvE,qCAOiB;AAEjB,sDAA6D;AAC7D,oDAAiD;AACjD,gEAA4D;AAE5D,2DAAuD;AAEvD,uFAAiF;AAEjF;;;;GAIG;AAEH,IAAa,+BAA+B,GAA5C,MAAa,+BAA+B;IAGxC,YAAoB,aAA4B,EAAU,SAAoB;QAA1D,kBAAa,GAAb,aAAa,CAAe;QAAU,cAAS,GAAT,SAAS,CAAW;QAC1E,IAAI,CAAC,sBAAsB,GAAG,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;YAChG,MAAM,CAAC,GAAG,CAAC,SAAS,UAAU,OAAO,CAAC,CAAC;YACvC,MAAM,CAAC,GAAG,CAAC,SAAS,UAAU,OAAO,CAAC,CAAC;YACvC,OAAO,MAAM,CAAC;QAClB,CAAC,EAAE,IAAI,GAAG,EAAU,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"validate-custom-fields-interceptor.js","sourceRoot":"","sources":["../../../src/api/middleware/validate-custom-fields-interceptor.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4F;AAC5F,uCAAyC;AACzC,6CAAsD;AAEtD,mEAAuE;AACvE,qCAOiB;AAEjB,sDAA6D;AAC7D,oDAAiD;AACjD,gEAA4D;AAE5D,2DAAuD;AAEvD,uFAAiF;AAEjF;;;;GAIG;AAE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G,IAAI,SAAS,CAAC,IAAI,EAAE;oBAC9B,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,gBAAgB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;iBACnD;aACJ;SACJ;QACD,OAAO,GAAG,CAAC;IACf,CAAC;IAEO,gBAAgB,CAAC,IAAc;QACnC,IAAI,IAAI,CAAC,IAAI,KAAK,aAAa,IAAI,IAAI,CAAC,IAAI,KAAK,UAAU,EAAE;YACzD,OAAO,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;SAC3C;aAAM;YACH,OAAO,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC;SAC1B;IACL,CAAC;IAEO,gBAAgB,CAAC,IAAsB;QAC3C,IAAI,IAAI,YAAY,wBAAc,EAAE;YAChC,OAAO,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;SAC7C;QACD,IAAI,IAAI,YAAY,qBAAW,EAAE;YAC7B,OAAO,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;SAC7C;QACD,OAAO,IAAI,CAAC,IAAI,CAAC;IACrB,CAAC;CACJ,CAAA;AA9IY,+BAA+B;IAD3C,mBAAU,EAAE;qCAI0B,8BAAa,EAAqB,gBAAS;GAHrE,+BAA+B,CA8I3C;AA9IY,0EAA+B"}
|
|
@@ -49,7 +49,7 @@ let CustomerEntityResolver = class CustomerEntityResolver {
|
|
|
49
49
|
if (customer.user) {
|
|
50
50
|
return customer.user;
|
|
51
51
|
}
|
|
52
|
-
return this.userService.getUserByEmailAddress(ctx, customer.emailAddress);
|
|
52
|
+
return this.userService.getUserByEmailAddress(ctx, customer.emailAddress, 'customer');
|
|
53
53
|
}
|
|
54
54
|
};
|
|
55
55
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customer-entity.resolver.js","sourceRoot":"","sources":["../../../../src/api/resolvers/ent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AED,OAAO,IAAI,CAAC,WAAW,CAAC,qBAAqB,CAAC,GAAG,EAAE,QAAQ,CAAC,YAAY,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"customer-entity.resolver.js","sourceRoot":"","sources":["../../../../src/api/resolvers/entity/customer-entity.resolver.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,6CAAuE;AACvE,yEAA0G;AAI1G,8EAAoE;AACpE,qEAA2D;AAC3D,iFAA6E;AAC7E,+EAA2E;AAC3E,2EAAuE;AACvE,yEAAqE;AAErE,kEAA8D;AAC9D,kEAAqD;AACrD,8EAAgF;AAChF,0FAAiE;AAGjE,IAAa,sBAAsB,GAAnC,MAAa,sBAAsB;IAC/B,YACY,eAAgC,EAChC,YAA0B,EAC1B,WAAwB;QAFxB,oBAAe,GAAf,eAAe,CAAiB;QAChC,iBAAY,GAAZ,YAAY,CAAc;QAC1B,gBAAW,GAAX,WAAW,CAAa;IACjC,CAAC;IAEJ,KAAK,CAAC,SAAS,CACJ,GAAmB,EAChB,QAAkB,EACrB,OAAgB;QAEvB,IAAI,OAAO,KAAK,MAAM,IAAI,CAAC,GAAG,CAAC,YAAY,EAAE;YACzC,sDAAsD;YACtD,OAAO,EAAE,CAAC;SACb;QACD,OAAO,IAAI,CAAC,eAAe,CAAC,yBAAyB,CAAC,GAAG,EAAE,QAAQ,CAAC,EAAE,CAAC,CAAC;IAC5E,CAAC;IAGD,KAAK,CAAC,MAAM,CACD,GAAmB,EAChB,QAAkB,EACpB,IAAqB,EACtB,OAAgB,EACL,SAA+B;QAEjD,IAAI,OAAO,KAAK,MAAM,IAAI,CAAC,GAAG,CAAC,YAAY,EAAE;YACzC,sDAAsD;YACtD,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE,UAAU,EAAE,CAAC,EAAE,CAAC;SACvC;QACD,OAAO,IAAI,CAAC,YAAY,CAAC,gBAAgB,CAAC,GAAG,EAAE,QAAQ,CAAC,EAAE,EAAE,IAAI,CAAC,OAAO,IAAI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AAC,eAAe,CAAC,iBAAiB,CAAC,GAAG,EAAE,QAAQ,CAAC,EAAE,CAAC,CAAC;IACpE,CAAC;IAGD,KAAK,CAAC,OAAO,CACF,GAAmB,EACnB,OAAgB,EACb,KAAY,EACd,IAAS;QAEjB,MAAM,UAAU,GAAG,OAAO,KAAK,MAAM,CAAC;QACtC,MAAM,OAAO,qBAAiC,IAAI,CAAC,OAAO,CAAE,CAAC;QAC7D,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE;YACf,OAAO,CAAC,IAAI,GAAG,EAAE,SAAS,EAAE,2BAAS,CAAC,GAAG,EAAE,CAAC;SAC/C;QACD,OAAO,IAAI,CAAC,cAAc,CAAC,qBAAqB,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;IACzF,CAAC;CACJ,CAAA;AArBG;IADC,sBAAY,EAAE;IACP,WAAA,+BAAG,EAAE,CAAA;IAAuB,WAAA,gBAAM,EAAE,CAAA;;qCAAzB,gCAAc,EAAsB,0BAAQ;;yDAK9D;AAGD;IADC,sBAAY,EAAE;IAEV,WAAA,+BAAG,EAAE,CAAA;IACL,WAAA,mBAAG,EAAE,CAAA;IACL,WAAA,gBAAM,EAAE,CAAA;IACR,WAAA,cAAI,EAAE,CAAA;;qCAHK,gCAAc,UAET,oBAAK;;0DASzB;AAxBQ,2BAA2B;IADvC,kBAAQ,CAAC,UAAU,CAAC;qCAEoB,kCAAe,EAA0B,gCAAc;GADnF,2BAA2B,CAyBvC;AAzBY,kEAA2B"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { LanguageCode } from '@vendure/common/lib/generated-types';
|
|
1
2
|
import { PermissionDefinition, PermissionMetadata } from './permission-definition';
|
|
2
3
|
/**
|
|
3
4
|
* This value should be rarely used - only in those contexts where we have no access to the
|
|
4
5
|
* VendureConfig to ensure at least a valid LanguageCode is available.
|
|
5
6
|
*/
|
|
6
|
-
export declare const DEFAULT_LANGUAGE_CODE
|
|
7
|
+
export declare const DEFAULT_LANGUAGE_CODE = LanguageCode.en;
|
|
7
8
|
export declare const TRANSACTION_MANAGER_KEY: unique symbol;
|
|
8
9
|
export declare const REQUEST_CONTEXT_KEY = "vendureRequestContext";
|
|
9
10
|
export declare const REQUEST_CONTEXT_MAP_KEY = "vendureRequestContextMap";
|
|
@@ -21,10 +21,10 @@ export declare class NativeAuthenticationStrategy implements AuthenticationStrat
|
|
|
21
21
|
readonly name = "native";
|
|
22
22
|
private connection;
|
|
23
23
|
private passwordCipher;
|
|
24
|
+
private userService;
|
|
24
25
|
init(injector: Injector): Promise<void>;
|
|
25
26
|
defineInputType(): DocumentNode;
|
|
26
27
|
authenticate(ctx: RequestContext, data: NativeAuthenticationData): Promise<User | false>;
|
|
27
|
-
private getUserFromIdentifier;
|
|
28
28
|
/**
|
|
29
29
|
* Verify the provided password against the one we have for the given user.
|
|
30
30
|
*/
|
|
@@ -42,20 +42,22 @@ class NativeAuthenticationStrategy {
|
|
|
42
42
|
}
|
|
43
43
|
async init(injector) {
|
|
44
44
|
this.connection = injector.get(transactional_connection_1.TransactionalConnection);
|
|
45
|
-
//
|
|
45
|
+
// These are lazily-loaded to avoid a circular dependency
|
|
46
46
|
const { PasswordCipher } = await Promise.resolve().then(() => __importStar(require('../../service/helpers/password-cipher/password-cipher')));
|
|
47
|
+
const { UserService } = await Promise.resolve().then(() => __importStar(require('../../service/services/user.service')));
|
|
47
48
|
this.passwordCipher = injector.get(PasswordCipher);
|
|
49
|
+
this.userService = injector.get(UserService);
|
|
48
50
|
}
|
|
49
51
|
defineInputType() {
|
|
50
|
-
return graphql_tag_1.default `
|
|
51
|
-
input NativeAuthInput {
|
|
52
|
-
username: String!
|
|
53
|
-
password: String!
|
|
54
|
-
}
|
|
52
|
+
return graphql_tag_1.default `
|
|
53
|
+
input NativeAuthInput {
|
|
54
|
+
username: String!
|
|
55
|
+
password: String!
|
|
56
|
+
}
|
|
55
57
|
`;
|
|
56
58
|
}
|
|
57
59
|
async authenticate(ctx, data) {
|
|
58
|
-
const user = await this.
|
|
60
|
+
const user = await this.userService.getUserByEmailAddress(ctx, data.username);
|
|
59
61
|
if (!user) {
|
|
60
62
|
return false;
|
|
61
63
|
}
|
|
@@ -65,12 +67,6 @@ class NativeAuthenticationStrategy {
|
|
|
65
67
|
}
|
|
66
68
|
return user;
|
|
67
69
|
}
|
|
68
|
-
getUserFromIdentifier(ctx, identifier) {
|
|
69
|
-
return this.connection.getRepository(ctx, user_entity_1.User).findOne({
|
|
70
|
-
where: { identifier, deletedAt: null },
|
|
71
|
-
relations: ['roles', 'roles.channels'],
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
70
|
/**
|
|
75
71
|
* Verify the provided password against the one we have for the given user.
|
|
76
72
|
*/
|
|
@@ -82,7 +78,10 @@ class NativeAuthenticationStrategy {
|
|
|
82
78
|
if (!user) {
|
|
83
79
|
return false;
|
|
84
80
|
}
|
|
85
|
-
const nativeAuthMethod = user.getNativeAuthenticationMethod();
|
|
81
|
+
const nativeAuthMethod = user.getNativeAuthenticationMethod(false);
|
|
82
|
+
if (!nativeAuthMethod) {
|
|
83
|
+
return false;
|
|
84
|
+
}
|
|
86
85
|
const pw = (_b = (_a = (await this.connection
|
|
87
86
|
.getRepository(ctx, native_authentication_method_entity_1.NativeAuthenticationMethod)
|
|
88
87
|
.findOne(nativeAuthMethod.id, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"native-authentication-strategy.js","sourceRoot":"","sources":["../../../src/config/auth/native-authentication-strategy.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,8DAA8B;AAI9B,wFAAoF;AACpF,gIAAoH;AACpH,+DAAqD;AASxC,QAAA,yBAAyB,GAAG,QAAQ,CAAC;AAElD;;;;;;;GAOG;AACH,MAAa,4BAA4B;IAAzC;QACa,SAAI,GAAG,iCAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"native-authentication-strategy.js","sourceRoot":"","sources":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AAE,MAAU,EAAE,QAAgB;;QACtE,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,GAAG,EAAE,kBAAI,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE;YACxE,SAAS,EAAE,CAAC,uBAAuB,CAAC;SACvC,CAAC,CAAC;QACH,IAAI,CAAC,IAAI,EAAE;YACP,OAAO,KAAK,CAAC;SAChB;QACD,MAAM,gBAAgB,GAAG,IAAI,CAAC,6BAA6B,CAAC,KAAK,CAAC,CAAC;QACnE,IAAI,CAAC,gBAAgB,EAAE;YACnB,OAAO,KAAK,CAAC;SAChB;QACD,MAAM,EAAE,GACJ,MAAA,MAAA,CACI,MAAM,IAAI,CAAC,UAAU;aAChB,aAAa,CAAC,GAAG,EAAE,gEAA0B,CAAC;aAC9C,OAAO,CAAC,gBAAgB,CAAC,EAAE,EAAE;YAC1B,MAAM,EAAE,CAAC,cAAc,CAAC;SAC3B,CAAC,CACT,0CAAE,YAAY,mCAAI,EAAE,CAAC;QAC1B,MAAM,eAAe,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;QACtE,IAAI,CAAC,eAAe,EAAE;YAClB,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ;AAjED,oEAiEC"}
|
|
@@ -248,7 +248,7 @@ export interface PaymentMethodConfigOptions<T extends ConfigArgs> extends Config
|
|
|
248
248
|
/**
|
|
249
249
|
* @description
|
|
250
250
|
* A PaymentMethodHandler contains the code which is used to generate a Payment when a call to the
|
|
251
|
-
* `addPaymentToOrder` mutation is made.
|
|
251
|
+
* `addPaymentToOrder` mutation is made. It contains any necessary steps of interfacing with a
|
|
252
252
|
* third-party payment gateway before the Payment is created and can also define actions to fire
|
|
253
253
|
* when the state of the payment is changed.
|
|
254
254
|
*
|
|
@@ -332,7 +332,7 @@ export declare class PaymentMethodHandler<T extends ConfigArgs = ConfigArgs> ext
|
|
|
332
332
|
* If using a {@link CustomPaymentProcess}, may be something else
|
|
333
333
|
* entirely according to your business logic.
|
|
334
334
|
*/
|
|
335
|
-
state: "Created" | "Cancelled" | "
|
|
335
|
+
state: "Created" | "Cancelled" | "Authorized" | "Settled" | "Declined";
|
|
336
336
|
/**
|
|
337
337
|
* @description
|
|
338
338
|
* The unique payment reference code typically assigned by
|
|
@@ -5,7 +5,7 @@ const configurable_operation_1 = require("../../common/configurable-operation");
|
|
|
5
5
|
/**
|
|
6
6
|
* @description
|
|
7
7
|
* A PaymentMethodHandler contains the code which is used to generate a Payment when a call to the
|
|
8
|
-
* `addPaymentToOrder` mutation is made.
|
|
8
|
+
* `addPaymentToOrder` mutation is made. It contains any necessary steps of interfacing with a
|
|
9
9
|
* third-party payment gateway before the Payment is created and can also define actions to fire
|
|
10
10
|
* when the state of the payment is changed.
|
|
11
11
|
*
|
|
@@ -3,5 +3,5 @@ import { ConnectionOptions } from 'typeorm';
|
|
|
3
3
|
export declare class ConnectionModule {
|
|
4
4
|
static forRoot(): DynamicModule;
|
|
5
5
|
static forPlugin(): DynamicModule;
|
|
6
|
-
static getTypeOrmLogger(dbConnectionOptions: ConnectionOptions):
|
|
6
|
+
static getTypeOrmLogger(dbConnectionOptions: ConnectionOptions): import("typeorm").Logger | "debug" | "advanced-console" | "simple-console" | "file";
|
|
7
7
|
}
|
|
@@ -8,10 +8,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
|
-
var _a;
|
|
12
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
12
|
exports.ExternalAuthenticationMethod = void 0;
|
|
14
|
-
const shared_types_1 = require("@vendure/common/lib/shared-types");
|
|
15
13
|
const typeorm_1 = require("typeorm");
|
|
16
14
|
const authentication_method_entity_1 = require("./authentication-method.entity");
|
|
17
15
|
/**
|
|
@@ -41,7 +39,7 @@ __decorate([
|
|
|
41
39
|
], ExternalAuthenticationMethod.prototype, "metadata", void 0);
|
|
42
40
|
ExternalAuthenticationMethod = __decorate([
|
|
43
41
|
typeorm_1.ChildEntity(),
|
|
44
|
-
__metadata("design:paramtypes", [
|
|
42
|
+
__metadata("design:paramtypes", [Object])
|
|
45
43
|
], ExternalAuthenticationMethod);
|
|
46
44
|
exports.ExternalAuthenticationMethod = ExternalAuthenticationMethod;
|
|
47
45
|
//# sourceMappingURL=external-authentication-method.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"external-authentication-method.entity.js","sourceRoot":"","sources":["../../../src/entity/authentication-method/external-authentication-method.entity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"external-authentication-method.entity.js","sourceRoot":"","sources":["../../../src/entity/authentication-method/external-authentication-method.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,qCAA8C;AAE9C,iFAAsE;AAEtE;;;;;;;GAOG;AAEH,IAAa,4BAA4B,GAAzC,MAAa,4BAA6B,SAAQ,mDAAoB;IAClE,YAAY,KAAgD;QACxD,KAAK,CAAC,KAAK,CAAC,CAAC;IACjB,CAAC;CAUJ,CAAA;AAPG;IADC,gBAAM,EAAE;;8DACQ;AAGjB;IADC,gBAAM,EAAE;;wEACkB;AAG3B;IADC,gBAAM,CAAC,aAAa,CAAC;;8DACR;AAZL,4BAA4B;IADxC,qBAAW,EAAE;;GACD,4BAA4B,CAaxC;AAbY,oEAA4B"}
|
|
@@ -8,10 +8,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
|
-
var _a;
|
|
12
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
12
|
exports.NativeAuthenticationMethod = void 0;
|
|
14
|
-
const shared_types_1 = require("@vendure/common/lib/shared-types");
|
|
15
13
|
const typeorm_1 = require("typeorm");
|
|
16
14
|
const authentication_method_entity_1 = require("./authentication-method.entity");
|
|
17
15
|
/**
|
|
@@ -53,7 +51,7 @@ __decorate([
|
|
|
53
51
|
], NativeAuthenticationMethod.prototype, "pendingIdentifier", void 0);
|
|
54
52
|
NativeAuthenticationMethod = __decorate([
|
|
55
53
|
typeorm_1.ChildEntity(),
|
|
56
|
-
__metadata("design:paramtypes", [
|
|
54
|
+
__metadata("design:paramtypes", [Object])
|
|
57
55
|
], NativeAuthenticationMethod);
|
|
58
56
|
exports.NativeAuthenticationMethod = NativeAuthenticationMethod;
|
|
59
57
|
//# sourceMappingURL=native-authentication-method.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"native-authentication-method.entity.js","sourceRoot":"","sources":["../../../src/entity/authentication-method/native-authentication-method.entity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"native-authentication-method.entity.js","sourceRoot":"","sources":["../../../src/entity/authentication-method/native-authentication-method.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,qCAA8C;AAE9C,iFAAsE;AAEtE;;;;;;;GAOG;AAEH,IAAa,0BAA0B,GAAvC,MAAa,0BAA2B,SAAQ,mDAAoB;IAChE,YAAY,KAA+C;QACvD,KAAK,CAAC,KAAK,CAAC,CAAC;IACjB,CAAC;CA6BJ,CAAA;AA1BG;IADC,gBAAM,EAAE;;8DACU;AAEQ;IAA1B,gBAAM,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;;gEAAsB;AAGhD;IADC,gBAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qEACX;AAGjC;IADC,gBAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sEACV;AAQlC;IADC,gBAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yEACP;AASrC;IADC,gBAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qEACX;AA/BxB,0BAA0B;IADtC,qBAAW,EAAE;;GACD,0BAA0B,CAgCtC;AAhCY,gEAA0B"}
|
|
@@ -8,11 +8,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
|
-
var _a, _b, _c;
|
|
12
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
12
|
exports.Channel = void 0;
|
|
14
13
|
const generated_types_1 = require("@vendure/common/lib/generated-types");
|
|
15
|
-
const shared_types_1 = require("@vendure/common/lib/shared-types");
|
|
16
14
|
const typeorm_1 = require("typeorm");
|
|
17
15
|
const base_entity_1 = require("../base/base.entity");
|
|
18
16
|
const custom_entity_fields_1 = require("../custom-entity-fields");
|
|
@@ -46,7 +44,7 @@ __decorate([
|
|
|
46
44
|
], Channel.prototype, "token", void 0);
|
|
47
45
|
__decorate([
|
|
48
46
|
typeorm_1.Column('varchar'),
|
|
49
|
-
__metadata("design:type",
|
|
47
|
+
__metadata("design:type", String)
|
|
50
48
|
], Channel.prototype, "defaultLanguageCode", void 0);
|
|
51
49
|
__decorate([
|
|
52
50
|
typeorm_1.ManyToOne(type => zone_entity_1.Zone),
|
|
@@ -58,7 +56,7 @@ __decorate([
|
|
|
58
56
|
], Channel.prototype, "defaultShippingZone", void 0);
|
|
59
57
|
__decorate([
|
|
60
58
|
typeorm_1.Column('varchar'),
|
|
61
|
-
__metadata("design:type",
|
|
59
|
+
__metadata("design:type", String)
|
|
62
60
|
], Channel.prototype, "currencyCode", void 0);
|
|
63
61
|
__decorate([
|
|
64
62
|
typeorm_1.Column(type => custom_entity_fields_1.CustomChannelFields),
|
|
@@ -70,7 +68,7 @@ __decorate([
|
|
|
70
68
|
], Channel.prototype, "pricesIncludeTax", void 0);
|
|
71
69
|
Channel = __decorate([
|
|
72
70
|
typeorm_1.Entity(),
|
|
73
|
-
__metadata("design:paramtypes", [
|
|
71
|
+
__metadata("design:paramtypes", [Object])
|
|
74
72
|
], Channel);
|
|
75
73
|
exports.Channel = Channel;
|
|
76
74
|
//# sourceMappingURL=channel.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"channel.entity.js","sourceRoot":"","sources":["../../../src/entity/channel/channel.entity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"channel.entity.js","sourceRoot":"","sources":["../../../src/entity/channel/channel.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yEAAiF;AAEjF,qCAAoD;AAEpD,qDAAoD;AACpD,kEAA8D;AAC9D,qDAA2C;AAE3C;;;;;;GAMG;AAEH,IAAa,OAAO,GAApB,MAAa,OAAQ,SAAQ,2BAAa;IACtC,YAAY,KAA4B;QACpC,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,KAAK,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE;YACxB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,aAAa,EAAE,CAAC;SACrC;IACL,CAAC;IAwBO,aAAa;QACjB,MAAM,YAAY,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QACpE,OAAO,GAAG,YAAY,EAAE,GAAG,YAAY,EAAE,EAAE,CAAC;IAChD,CAAC;CACJ,CAAA;AAzBG;IADC,gBAAM,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;qCACZ;AAGb;IADC,gBAAM,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;sCACX;AAEK;IAAlB,gBAAM,CAAC,SAAS,CAAC;;oDAAmC;AAGrD;IADC,mBAAS,CAAC,IAAI,CAAC,EAAE,CAAC,kBAAI,CAAC;8BACR,kBAAI;+CAAC;AAGrB;IADC,mBAAS,CAAC,IAAI,CAAC,EAAE,CAAC,kBAAI,CAAC;8BACH,kBAAI;oDAAC;AAG1B;IADC,gBAAM,CAAC,SAAS,CAAC;;6CACS;AAG3B;IADC,gBAAM,CAAC,IAAI,CAAC,EAAE,CAAC,0CAAmB,CAAC;8BACtB,0CAAmB;6CAAC;AAExB;IAAT,gBAAM,EAAE;;iDAA2B;AA5B3B,OAAO;IADnB,gBAAM,EAAE;;GACI,OAAO,CAkCnB;AAlCY,0BAAO"}
|
|
@@ -8,10 +8,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
|
-
var _a, _b;
|
|
12
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
12
|
exports.CollectionAsset = void 0;
|
|
14
|
-
const shared_types_1 = require("@vendure/common/lib/shared-types");
|
|
15
13
|
const typeorm_1 = require("typeorm");
|
|
16
14
|
const orderable_asset_entity_1 = require("../asset/orderable-asset.entity");
|
|
17
15
|
const collection_entity_1 = require("./collection.entity");
|
|
@@ -22,7 +20,7 @@ let CollectionAsset = class CollectionAsset extends orderable_asset_entity_1.Ord
|
|
|
22
20
|
};
|
|
23
21
|
__decorate([
|
|
24
22
|
typeorm_1.Column(),
|
|
25
|
-
__metadata("design:type",
|
|
23
|
+
__metadata("design:type", Object)
|
|
26
24
|
], CollectionAsset.prototype, "collectionId", void 0);
|
|
27
25
|
__decorate([
|
|
28
26
|
typeorm_1.ManyToOne((type) => collection_entity_1.Collection, (collection) => collection.assets, { onDelete: 'CASCADE' }),
|
|
@@ -30,7 +28,7 @@ __decorate([
|
|
|
30
28
|
], CollectionAsset.prototype, "collection", void 0);
|
|
31
29
|
CollectionAsset = __decorate([
|
|
32
30
|
typeorm_1.Entity(),
|
|
33
|
-
__metadata("design:paramtypes", [
|
|
31
|
+
__metadata("design:paramtypes", [Object])
|
|
34
32
|
], CollectionAsset);
|
|
35
33
|
exports.CollectionAsset = CollectionAsset;
|
|
36
34
|
//# sourceMappingURL=collection-asset.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collection-asset.entity.js","sourceRoot":"","sources":["../../../src/entity/collection/collection-asset.entity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"collection-asset.entity.js","sourceRoot":"","sources":["../../../src/entity/collection/collection-asset.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,qCAAoD;AAEpD,4EAAiE;AAEjE,2DAAiD;AAGjD,IAAa,eAAe,GAA5B,MAAa,eAAgB,SAAQ,uCAAc;IAC/C,YAAY,KAAoC;QAC5C,KAAK,CAAC,KAAK,CAAC,CAAC;IACjB,CAAC;CAMJ,CAAA;AAJG;IADC,gBAAM,EAAE;;qDACQ;AAGjB;IADC,mBAAS,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,8BAAU,EAAE,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;8BAChF,8BAAU;mDAAC;AARd,eAAe;IAD3B,gBAAM,EAAE;;GACI,eAAe,CAS3B;AATY,0CAAe"}
|
|
@@ -8,11 +8,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
|
-
var _a, _b;
|
|
12
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
12
|
exports.CountryTranslation = void 0;
|
|
14
13
|
const generated_types_1 = require("@vendure/common/lib/generated-types");
|
|
15
|
-
const shared_types_1 = require("@vendure/common/lib/shared-types");
|
|
16
14
|
const typeorm_1 = require("typeorm");
|
|
17
15
|
const base_entity_1 = require("../base/base.entity");
|
|
18
16
|
const custom_entity_fields_1 = require("../custom-entity-fields");
|
|
@@ -24,7 +22,7 @@ let CountryTranslation = class CountryTranslation extends base_entity_1.VendureE
|
|
|
24
22
|
};
|
|
25
23
|
__decorate([
|
|
26
24
|
typeorm_1.Column('varchar'),
|
|
27
|
-
__metadata("design:type",
|
|
25
|
+
__metadata("design:type", String)
|
|
28
26
|
], CountryTranslation.prototype, "languageCode", void 0);
|
|
29
27
|
__decorate([
|
|
30
28
|
typeorm_1.Column(),
|
|
@@ -40,7 +38,7 @@ __decorate([
|
|
|
40
38
|
], CountryTranslation.prototype, "customFields", void 0);
|
|
41
39
|
CountryTranslation = __decorate([
|
|
42
40
|
typeorm_1.Entity(),
|
|
43
|
-
__metadata("design:paramtypes", [
|
|
41
|
+
__metadata("design:paramtypes", [Object])
|
|
44
42
|
], CountryTranslation);
|
|
45
43
|
exports.CountryTranslation = CountryTranslation;
|
|
46
44
|
//# sourceMappingURL=country-translation.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"country-translation.entity.js","sourceRoot":"","sources":["../../../src/entity/country/country-translation.entity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"country-translation.entity.js","sourceRoot":"","sources":["../../../src/entity/country/country-translation.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yEAAmE;AAEnE,qCAAoD;AAIpD,qDAAoD;AACpD,kEAAyE;AAEzE,qDAA2C;AAG3C,IAAa,kBAAkB,GAA/B,MAAa,kBAAmB,SAAQ,2BAAa;IACjD,YAAY,KAAoD;QAC5D,KAAK,CAAC,KAAK,CAAC,CAAC;IACjB,CAAC;CAWJ,CAAA;AATsB;IAAlB,gBAAM,CAAC,SAAS,CAAC;;wDAA4B;AAEpC;IAAT,gBAAM,EAAE;;gDAAc;AAGvB;IADC,mBAAS,CAAC,IAAI,CAAC,EAAE,CAAC,wBAAO,EAAE,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,YAAY,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;8BACzE,wBAAO;gDAAC;AAGd;IADC,gBAAM,CAAC,IAAI,CAAC,EAAE,CAAC,qDAA8B,CAAC;8BACjC,qDAA8B;wDAAC;AAbpC,kBAAkB;IAD9B,gBAAM,EAAE;;GACI,kBAAkB,CAc9B;AAdY,gDAAkB"}
|
|
@@ -8,10 +8,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
|
-
var _a;
|
|
12
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
12
|
exports.Country = void 0;
|
|
14
|
-
const shared_types_1 = require("@vendure/common/lib/shared-types");
|
|
15
13
|
const typeorm_1 = require("typeorm");
|
|
16
14
|
const base_entity_1 = require("../base/base.entity");
|
|
17
15
|
const custom_entity_fields_1 = require("../custom-entity-fields");
|
|
@@ -47,7 +45,7 @@ __decorate([
|
|
|
47
45
|
], Country.prototype, "customFields", void 0);
|
|
48
46
|
Country = __decorate([
|
|
49
47
|
typeorm_1.Entity(),
|
|
50
|
-
__metadata("design:paramtypes", [
|
|
48
|
+
__metadata("design:paramtypes", [Object])
|
|
51
49
|
], Country);
|
|
52
50
|
exports.Country = Country;
|
|
53
51
|
//# sourceMappingURL=country.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"country.entity.js","sourceRoot":"","sources":["../../../src/entity/country/country.entity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"country.entity.js","sourceRoot":"","sources":["../../../src/entity/country/country.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,qCAAoD;AAIpD,qDAAoD;AACpD,kEAA8D;AAE9D,6EAAkE;AAElE;;;;;;;GAOG;AAEH,IAAa,OAAO,GAApB,MAAa,OAAQ,SAAQ,2BAAa;IACtC,YAAY,KAA4B;QACpC,KAAK,CAAC,KAAK,CAAC,CAAC;IACjB,CAAC;CAaJ,CAAA;AAXa;IAAT,gBAAM,EAAE;;qCAAc;AAIb;IAAT,gBAAM,EAAE;;wCAAkB;AAG3B;IADC,mBAAS,CAAC,IAAI,CAAC,EAAE,CAAC,+CAAkB,EAAE,WAAW,CAAC,EAAE,CAAC,WAAW,CAAC,IAAI,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;8BAC1E,KAAK;6CAAuB;AAG1C;IADC,gBAAM,CAAC,IAAI,CAAC,EAAE,CAAC,0CAAmB,CAAC;8BACtB,0CAAmB;6CAAC;AAfzB,OAAO;IADnB,gBAAM,EAAE;;GACI,OAAO,CAgBnB;AAhBY,0BAAO"}
|
|
@@ -8,10 +8,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
|
-
var _a;
|
|
12
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
12
|
exports.CustomerGroup = void 0;
|
|
14
|
-
const shared_types_1 = require("@vendure/common/lib/shared-types");
|
|
15
13
|
const typeorm_1 = require("typeorm");
|
|
16
14
|
const base_entity_1 = require("../base/base.entity");
|
|
17
15
|
const custom_entity_fields_1 = require("../custom-entity-fields");
|
|
@@ -42,7 +40,7 @@ __decorate([
|
|
|
42
40
|
], CustomerGroup.prototype, "customFields", void 0);
|
|
43
41
|
CustomerGroup = __decorate([
|
|
44
42
|
typeorm_1.Entity(),
|
|
45
|
-
__metadata("design:paramtypes", [
|
|
43
|
+
__metadata("design:paramtypes", [Object])
|
|
46
44
|
], CustomerGroup);
|
|
47
45
|
exports.CustomerGroup = CustomerGroup;
|
|
48
46
|
//# sourceMappingURL=customer-group.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customer-group.entity.js","sourceRoot":"","sources":["../../../src/entity/customer-group/customer-group.entity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"customer-group.entity.js","sourceRoot":"","sources":["../../../src/entity/customer-group/customer-group.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,qCAAqD;AAGrD,qDAAoD;AACpD,kEAAoE;AACpE,iEAAuD;AAEvD;;;;;;GAMG;AAEH,IAAa,aAAa,GAA1B,MAAa,aAAc,SAAQ,2BAAa;IAC5C,YAAY,KAAkC;QAC1C,KAAK,CAAC,KAAK,CAAC,CAAC;IACjB,CAAC;CASJ,CAAA;AAPa;IAAT,gBAAM,EAAE;;2CAAc;AAGvB;IADC,oBAAU,CAAC,IAAI,CAAC,EAAE,CAAC,0BAAQ,EAAE,QAAQ,CAAC,EAAE,CAAC,QAAQ,CAAC,MAAM,CAAC;;gDACpC;AAGtB;IADC,gBAAM,CAAC,IAAI,CAAC,EAAE,CAAC,gDAAyB,CAAC;8BAC5B,gDAAyB;mDAAC;AAX/B,aAAa;IADzB,gBAAM,EAAE;;GACI,aAAa,CAYzB;AAZY,sCAAa"}
|
|
@@ -8,10 +8,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
|
-
var _a, _b;
|
|
12
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
12
|
exports.ProductAsset = void 0;
|
|
14
|
-
const shared_types_1 = require("@vendure/common/lib/shared-types");
|
|
15
13
|
const typeorm_1 = require("typeorm");
|
|
16
14
|
const orderable_asset_entity_1 = require("../asset/orderable-asset.entity");
|
|
17
15
|
const product_entity_1 = require("./product.entity");
|
|
@@ -22,7 +20,7 @@ let ProductAsset = class ProductAsset extends orderable_asset_entity_1.Orderable
|
|
|
22
20
|
};
|
|
23
21
|
__decorate([
|
|
24
22
|
typeorm_1.Column(),
|
|
25
|
-
__metadata("design:type",
|
|
23
|
+
__metadata("design:type", Object)
|
|
26
24
|
], ProductAsset.prototype, "productId", void 0);
|
|
27
25
|
__decorate([
|
|
28
26
|
typeorm_1.ManyToOne((type) => product_entity_1.Product, (product) => product.assets, { onDelete: 'CASCADE' }),
|
|
@@ -30,7 +28,7 @@ __decorate([
|
|
|
30
28
|
], ProductAsset.prototype, "product", void 0);
|
|
31
29
|
ProductAsset = __decorate([
|
|
32
30
|
typeorm_1.Entity(),
|
|
33
|
-
__metadata("design:paramtypes", [
|
|
31
|
+
__metadata("design:paramtypes", [Object])
|
|
34
32
|
], ProductAsset);
|
|
35
33
|
exports.ProductAsset = ProductAsset;
|
|
36
34
|
//# sourceMappingURL=product-asset.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-asset.entity.js","sourceRoot":"","sources":["../../../src/entity/product/product-asset.entity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"product-asset.entity.js","sourceRoot":"","sources":["../../../src/entity/product/product-asset.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,qCAAoD;AAEpD,4EAAiE;AAEjE,qDAA2C;AAG3C,IAAa,YAAY,GAAzB,MAAa,YAAa,SAAQ,uCAAc;IAC5C,YAAY,KAAiC;QACzC,KAAK,CAAC,KAAK,CAAC,CAAC;IACjB,CAAC;CAMJ,CAAA;AAJG;IADC,gBAAM,EAAE;;+CACK;AAGd;IADC,mBAAS,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,wBAAO,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;8BAC1E,wBAAO;6CAAC;AARR,YAAY;IADxB,gBAAM,EAAE;;GACI,YAAY,CASxB;AATY,oCAAY"}
|
|
@@ -8,10 +8,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
|
-
var _a, _b;
|
|
12
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
12
|
exports.ProductVariantAsset = void 0;
|
|
14
|
-
const shared_types_1 = require("@vendure/common/lib/shared-types");
|
|
15
13
|
const typeorm_1 = require("typeorm");
|
|
16
14
|
const orderable_asset_entity_1 = require("../asset/orderable-asset.entity");
|
|
17
15
|
const product_variant_entity_1 = require("./product-variant.entity");
|
|
@@ -22,7 +20,7 @@ let ProductVariantAsset = class ProductVariantAsset extends orderable_asset_enti
|
|
|
22
20
|
};
|
|
23
21
|
__decorate([
|
|
24
22
|
typeorm_1.Column(),
|
|
25
|
-
__metadata("design:type",
|
|
23
|
+
__metadata("design:type", Object)
|
|
26
24
|
], ProductVariantAsset.prototype, "productVariantId", void 0);
|
|
27
25
|
__decorate([
|
|
28
26
|
typeorm_1.ManyToOne((type) => product_variant_entity_1.ProductVariant, (variant) => variant.assets, { onDelete: 'CASCADE' }),
|
|
@@ -30,7 +28,7 @@ __decorate([
|
|
|
30
28
|
], ProductVariantAsset.prototype, "productVariant", void 0);
|
|
31
29
|
ProductVariantAsset = __decorate([
|
|
32
30
|
typeorm_1.Entity(),
|
|
33
|
-
__metadata("design:paramtypes", [
|
|
31
|
+
__metadata("design:paramtypes", [Object])
|
|
34
32
|
], ProductVariantAsset);
|
|
35
33
|
exports.ProductVariantAsset = ProductVariantAsset;
|
|
36
34
|
//# sourceMappingURL=product-variant-asset.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-variant-asset.entity.js","sourceRoot":"","sources":["../../../src/entity/product-variant/product-variant-asset.entity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"product-variant-asset.entity.js","sourceRoot":"","sources":["../../../src/entity/product-variant/product-variant-asset.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,qCAAoD;AAEpD,4EAAiE;AAEjE,qEAA0D;AAG1D,IAAa,mBAAmB,GAAhC,MAAa,mBAAoB,SAAQ,uCAAc;IACnD,YAAY,KAAwC;QAChD,KAAK,CAAC,KAAK,CAAC,CAAC;IACjB,CAAC;CAMJ,CAAA;AAJG;IADC,gBAAM,EAAE;;6DACY;AAGrB;IADC,mBAAS,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,uCAAc,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;8BAC1E,uCAAc;2DAAC;AARtB,mBAAmB;IAD/B,gBAAM,EAAE;;GACI,mBAAmB,CAS/B;AATY,kDAAmB"}
|
|
@@ -8,10 +8,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
|
-
var _a;
|
|
12
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
12
|
exports.Role = void 0;
|
|
14
|
-
const shared_types_1 = require("@vendure/common/lib/shared-types");
|
|
15
13
|
const typeorm_1 = require("typeorm");
|
|
16
14
|
const base_entity_1 = require("../base/base.entity");
|
|
17
15
|
const channel_entity_1 = require("../channel/channel.entity");
|
|
@@ -46,7 +44,7 @@ __decorate([
|
|
|
46
44
|
], Role.prototype, "channels", void 0);
|
|
47
45
|
Role = __decorate([
|
|
48
46
|
typeorm_1.Entity(),
|
|
49
|
-
__metadata("design:paramtypes", [
|
|
47
|
+
__metadata("design:paramtypes", [Object])
|
|
50
48
|
], Role);
|
|
51
49
|
exports.Role = Role;
|
|
52
50
|
//# sourceMappingURL=role.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"role.entity.js","sourceRoot":"","sources":["../../../src/entity/role/role.entity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"role.entity.js","sourceRoot":"","sources":["../../../src/entity/role/role.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,qCAAgE;AAGhE,qDAAoD;AACpD,8DAAoD;AAEpD;;;;;;GAMG;AAEH,IAAa,IAAI,GAAjB,MAAa,IAAK,SAAQ,2BAAa;IACnC,YAAY,KAAyB;QACjC,KAAK,CAAC,KAAK,CAAC,CAAC;IACjB,CAAC;CAWJ,CAAA;AATa;IAAT,gBAAM,EAAE;;kCAAc;AAEb;IAAT,gBAAM,EAAE;;yCAAqB;AAEN;IAAvB,gBAAM,CAAC,cAAc,CAAC;;yCAA2B;AAIlD;IAFC,oBAAU,CAAC,IAAI,CAAC,EAAE,CAAC,wBAAO,CAAC;IAC3B,mBAAS,EAAE;;sCACQ;AAbX,IAAI;IADhB,gBAAM,EAAE;;GACI,IAAI,CAchB;AAdY,oBAAI"}
|
|
@@ -8,10 +8,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
|
-
var _a;
|
|
12
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
12
|
exports.Tag = void 0;
|
|
14
|
-
const shared_types_1 = require("@vendure/common/lib/shared-types");
|
|
15
13
|
const typeorm_1 = require("typeorm");
|
|
16
14
|
const base_entity_1 = require("../base/base.entity");
|
|
17
15
|
/**
|
|
@@ -32,7 +30,7 @@ __decorate([
|
|
|
32
30
|
], Tag.prototype, "value", void 0);
|
|
33
31
|
Tag = __decorate([
|
|
34
32
|
typeorm_1.Entity(),
|
|
35
|
-
__metadata("design:paramtypes", [
|
|
33
|
+
__metadata("design:paramtypes", [Object])
|
|
36
34
|
], Tag);
|
|
37
35
|
exports.Tag = Tag;
|
|
38
36
|
//# sourceMappingURL=tag.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tag.entity.js","sourceRoot":"","sources":["../../../src/entity/tag/tag.entity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tag.entity.js","sourceRoot":"","sources":["../../../src/entity/tag/tag.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,qCAAyC;AAEzC,qDAAoD;AAEpD;;;;;;GAMG;AAEH,IAAa,GAAG,GAAhB,MAAa,GAAI,SAAQ,2BAAa;IAClC,YAAY,KAAwB;QAChC,KAAK,CAAC,KAAK,CAAC,CAAC;IACjB,CAAC;CAIJ,CAAA;AADG;IADC,gBAAM,EAAE;;kCACK;AANL,GAAG;IADf,gBAAM,EAAE;;GACI,GAAG,CAOf;AAPY,kBAAG"}
|
|
@@ -23,4 +23,5 @@ export declare class User extends VendureEntity implements HasCustomFields, Soft
|
|
|
23
23
|
lastLogin: Date | null;
|
|
24
24
|
customFields: CustomUserFields;
|
|
25
25
|
getNativeAuthenticationMethod(): NativeAuthenticationMethod;
|
|
26
|
+
getNativeAuthenticationMethod(strict?: boolean): NativeAuthenticationMethod | undefined;
|
|
26
27
|
}
|
|
@@ -28,12 +28,12 @@ let User = class User extends base_entity_1.VendureEntity {
|
|
|
28
28
|
constructor(input) {
|
|
29
29
|
super(input);
|
|
30
30
|
}
|
|
31
|
-
getNativeAuthenticationMethod() {
|
|
31
|
+
getNativeAuthenticationMethod(strict) {
|
|
32
32
|
if (!this.authenticationMethods) {
|
|
33
33
|
throw new errors_1.InternalServerError('error.user-authentication-methods-not-loaded');
|
|
34
34
|
}
|
|
35
35
|
const match = this.authenticationMethods.find((m) => m instanceof native_authentication_method_entity_1.NativeAuthenticationMethod);
|
|
36
|
-
if (!match) {
|
|
36
|
+
if (!match && (strict === undefined || strict)) {
|
|
37
37
|
throw new errors_1.InternalServerError('error.native-authentication-methods-not-found');
|
|
38
38
|
}
|
|
39
39
|
return match;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.entity.js","sourceRoot":"","sources":["../../../src/entity/user/user.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,qCAA2E;AAE3E,sDAAgE;AAGhE,wGAA6F;AAC7F,sHAA0G;AAC1G,qDAAoD;AACpD,kEAA2D;AAC3D,qDAA2C;AAE3C;;;;;;GAMG;AAEH,IAAa,IAAI,GAAjB,MAAa,IAAK,SAAQ,2BAAa;IACnC,YAAY,KAAyB;QACjC,KAAK,CAAC,KAAK,CAAC,CAAC;IACjB,CAAC;
|
|
1
|
+
{"version":3,"file":"user.entity.js","sourceRoot":"","sources":["../../../src/entity/user/user.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,qCAA2E;AAE3E,sDAAgE;AAGhE,wGAA6F;AAC7F,sHAA0G;AAC1G,qDAAoD;AACpD,kEAA2D;AAC3D,qDAA2C;AAE3C;;;;;;GAMG;AAEH,IAAa,IAAI,GAAjB,MAAa,IAAK,SAAQ,2BAAa;IACnC,YAAY,KAAyB;QACjC,KAAK,CAAC,KAAK,CAAC,CAAC;IACjB,CAAC;IA8BD,6BAA6B,CAAC,MAAiB;QAC3C,IAAI,CAAC,IAAI,CAAC,qBAAqB,EAAE;YAC7B,MAAM,IAAI,4BAAmB,CAAC,8CAA8C,CAAC,CAAC;SACjF;QACD,MAAM,KAAK,GAAG,IAAI,CAAC,qBAAqB,CAAC,IAAI,CACzC,CAAC,CAAC,EAAmC,EAAE,CAAC,CAAC,YAAY,gEAA0B,CAClF,CAAC;QACF,IAAI,CAAC,KAAK,IAAI,CAA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