@imaginamossas/farmabien-common 1.0.34 → 1.0.35
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/entities/address-store-assignment.entity.d.ts +11 -0
- package/dist/entities/address-store-assignment.entity.js +57 -0
- package/dist/entities/address-store-assignment.entity.js.map +1 -0
- package/dist/entities/customer-address.entity.d.ts +2 -4
- package/dist/entities/customer-address.entity.js +2 -16
- package/dist/entities/customer-address.entity.js.map +1 -1
- package/dist/entities/customer.entity.d.ts +2 -4
- package/dist/entities/customer.entity.js +2 -16
- package/dist/entities/customer.entity.js.map +1 -1
- package/dist/entities/index.d.ts +1 -0
- package/dist/entities/index.js +1 -0
- package/dist/entities/index.js.map +1 -1
- package/dist/entities/refresh-token.entity.d.ts +2 -4
- package/dist/entities/refresh-token.entity.js +2 -16
- package/dist/entities/refresh-token.entity.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BaseEntity } from './base.entity';
|
|
2
|
+
import { CustomerAddressEntity } from './customer-address.entity';
|
|
3
|
+
import { StoreEntity } from './store.entity';
|
|
4
|
+
export declare class AddressStoreAssignmentEntity extends BaseEntity {
|
|
5
|
+
id: number;
|
|
6
|
+
addressId: number;
|
|
7
|
+
storeId: number;
|
|
8
|
+
distanceKm: number;
|
|
9
|
+
address: CustomerAddressEntity;
|
|
10
|
+
store: StoreEntity;
|
|
11
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.AddressStoreAssignmentEntity = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const base_entity_1 = require("./base.entity");
|
|
15
|
+
const customer_address_entity_1 = require("./customer-address.entity");
|
|
16
|
+
const store_entity_1 = require("./store.entity");
|
|
17
|
+
let AddressStoreAssignmentEntity = class AddressStoreAssignmentEntity extends base_entity_1.BaseEntity {
|
|
18
|
+
id;
|
|
19
|
+
addressId;
|
|
20
|
+
storeId;
|
|
21
|
+
distanceKm;
|
|
22
|
+
address;
|
|
23
|
+
store;
|
|
24
|
+
};
|
|
25
|
+
exports.AddressStoreAssignmentEntity = AddressStoreAssignmentEntity;
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
|
28
|
+
__metadata("design:type", Number)
|
|
29
|
+
], AddressStoreAssignmentEntity.prototype, "id", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ name: 'address_id', type: 'int' }),
|
|
32
|
+
__metadata("design:type", Number)
|
|
33
|
+
], AddressStoreAssignmentEntity.prototype, "addressId", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ name: 'store_id', type: 'int' }),
|
|
36
|
+
__metadata("design:type", Number)
|
|
37
|
+
], AddressStoreAssignmentEntity.prototype, "storeId", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ name: 'distance_km', type: 'decimal', precision: 10, scale: 2 }),
|
|
40
|
+
__metadata("design:type", Number)
|
|
41
|
+
], AddressStoreAssignmentEntity.prototype, "distanceKm", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.ManyToOne)(() => customer_address_entity_1.CustomerAddressEntity, { onDelete: 'CASCADE' }),
|
|
44
|
+
(0, typeorm_1.JoinColumn)({ name: 'address_id' }),
|
|
45
|
+
__metadata("design:type", customer_address_entity_1.CustomerAddressEntity)
|
|
46
|
+
], AddressStoreAssignmentEntity.prototype, "address", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, typeorm_1.ManyToOne)(() => store_entity_1.StoreEntity),
|
|
49
|
+
(0, typeorm_1.JoinColumn)({ name: 'store_id' }),
|
|
50
|
+
__metadata("design:type", store_entity_1.StoreEntity)
|
|
51
|
+
], AddressStoreAssignmentEntity.prototype, "store", void 0);
|
|
52
|
+
exports.AddressStoreAssignmentEntity = AddressStoreAssignmentEntity = __decorate([
|
|
53
|
+
(0, typeorm_1.Entity)('address_store_assignments'),
|
|
54
|
+
(0, typeorm_1.Index)('idx_address_store_assignments_store_id', ['storeId']),
|
|
55
|
+
(0, typeorm_1.Unique)('uq_address_store_assignments_address_id', ['addressId'])
|
|
56
|
+
], AddressStoreAssignmentEntity);
|
|
57
|
+
//# sourceMappingURL=address-store-assignment.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"address-store-assignment.entity.js","sourceRoot":"","sources":["../../src/entities/address-store-assignment.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAQiB;AACjB,+CAA2C;AAC3C,uEAAkE;AAClE,iDAA6C;AAwBtC,IAAM,4BAA4B,GAAlC,MAAM,4BAA6B,SAAQ,wBAAU;IAK1D,EAAE,CAAS;IAOX,SAAS,CAAS;IAMlB,OAAO,CAAS;IAQhB,UAAU,CAAS;IAUnB,OAAO,CAAwB;IAQ/B,KAAK,CAAc;CACpB,CAAA;AA7CY,oEAA4B;AAKvC;IADC,IAAA,gCAAsB,GAAE;;wDACd;AAOX;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;+DAC1B;AAMlB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;6DAC1B;AAQhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;;gEACvD;AAUnB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,+CAAqB,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IAC/D,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;8BAC1B,+CAAqB;6DAAC;AAQ/B;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,0BAAW,CAAC;IAC5B,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;8BAC1B,0BAAW;2DAAC;uCA5CR,4BAA4B;IAHxC,IAAA,gBAAM,EAAC,2BAA2B,CAAC;IACnC,IAAA,eAAK,EAAC,wCAAwC,EAAE,CAAC,SAAS,CAAC,CAAC;IAC5D,IAAA,gBAAM,EAAC,yCAAyC,EAAE,CAAC,WAAW,CAAC,CAAC;GACpD,4BAA4B,CA6CxC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { BaseEntity } from './base.entity';
|
|
1
2
|
import { CustomerEntity } from './customer.entity';
|
|
2
3
|
import { CountryEntity } from './country.entity';
|
|
3
|
-
export declare class CustomerAddressEntity {
|
|
4
|
+
export declare class CustomerAddressEntity extends BaseEntity {
|
|
4
5
|
id: number;
|
|
5
6
|
customerId: number;
|
|
6
7
|
countryId: string;
|
|
@@ -18,9 +19,6 @@ export declare class CustomerAddressEntity {
|
|
|
18
19
|
deliveryInstructions: string | null;
|
|
19
20
|
isMain: boolean;
|
|
20
21
|
isActive: boolean;
|
|
21
|
-
createdAt: Date;
|
|
22
|
-
updatedAt: Date;
|
|
23
|
-
deletedAt: Date | null;
|
|
24
22
|
customer: CustomerEntity;
|
|
25
23
|
country: CountryEntity;
|
|
26
24
|
}
|
|
@@ -11,9 +11,10 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.CustomerAddressEntity = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
|
+
const base_entity_1 = require("./base.entity");
|
|
14
15
|
const customer_entity_1 = require("./customer.entity");
|
|
15
16
|
const country_entity_1 = require("./country.entity");
|
|
16
|
-
let CustomerAddressEntity = class CustomerAddressEntity {
|
|
17
|
+
let CustomerAddressEntity = class CustomerAddressEntity extends base_entity_1.BaseEntity {
|
|
17
18
|
id;
|
|
18
19
|
customerId;
|
|
19
20
|
countryId;
|
|
@@ -31,9 +32,6 @@ let CustomerAddressEntity = class CustomerAddressEntity {
|
|
|
31
32
|
deliveryInstructions;
|
|
32
33
|
isMain;
|
|
33
34
|
isActive;
|
|
34
|
-
createdAt;
|
|
35
|
-
updatedAt;
|
|
36
|
-
deletedAt;
|
|
37
35
|
customer;
|
|
38
36
|
country;
|
|
39
37
|
};
|
|
@@ -124,18 +122,6 @@ __decorate([
|
|
|
124
122
|
(0, typeorm_1.Column)({ name: 'is_active', type: 'boolean', default: true }),
|
|
125
123
|
__metadata("design:type", Boolean)
|
|
126
124
|
], CustomerAddressEntity.prototype, "isActive", void 0);
|
|
127
|
-
__decorate([
|
|
128
|
-
(0, typeorm_1.CreateDateColumn)({ name: 'created_at', type: 'timestamptz' }),
|
|
129
|
-
__metadata("design:type", Date)
|
|
130
|
-
], CustomerAddressEntity.prototype, "createdAt", void 0);
|
|
131
|
-
__decorate([
|
|
132
|
-
(0, typeorm_1.UpdateDateColumn)({ name: 'updated_at', type: 'timestamptz' }),
|
|
133
|
-
__metadata("design:type", Date)
|
|
134
|
-
], CustomerAddressEntity.prototype, "updatedAt", void 0);
|
|
135
|
-
__decorate([
|
|
136
|
-
(0, typeorm_1.DeleteDateColumn)({ name: 'deleted_at', type: 'timestamptz', nullable: true }),
|
|
137
|
-
__metadata("design:type", Object)
|
|
138
|
-
], CustomerAddressEntity.prototype, "deletedAt", void 0);
|
|
139
125
|
__decorate([
|
|
140
126
|
(0, typeorm_1.ManyToOne)(() => customer_entity_1.CustomerEntity, (customer) => customer.addresses),
|
|
141
127
|
(0, typeorm_1.JoinColumn)({ name: 'customer_id' }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customer-address.entity.js","sourceRoot":"","sources":["../../src/entities/customer-address.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"customer-address.entity.js","sourceRoot":"","sources":["../../src/entities/customer-address.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAOiB;AACjB,+CAA2C;AAC3C,uDAAmD;AACnD,qDAAiD;AAqB1C,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,wBAAU;IAKnD,EAAE,CAAS;IAMX,UAAU,CAAS;IAOnB,SAAS,CAAS;IAMlB,KAAK,CAAS;IAOd,cAAc,CAAS;IAOvB,WAAW,CAAS;IAOpB,IAAI,CAAS;IAOb,KAAK,CAAS;IAMd,UAAU,CAAgB;IAM1B,UAAU,CAAgB;IAgB1B,QAAQ,CAAS;IAgBjB,SAAS,CAAS;IAOlB,aAAa,CAAS;IAOtB,iBAAiB,CAAgB;IAOjC,oBAAoB,CAAgB;IAMpC,MAAM,CAAU;IAMhB,QAAQ,CAAU;IAWlB,QAAQ,CAAiB;IAOzB,OAAO,CAAgB;CACxB,CAAA;AApJY,sDAAqB;AAKhC;IADC,IAAA,gCAAsB,GAAE;;iDACd;AAMX;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,a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FC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,8BAAa,CAAC;IAC9B,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;8BAC1B,8BAAa;sDAAC;gCAnJZ,qBAAqB;IAJjC,IAAA,gBAAM,EAAC,oBAAoB,CAAC;IAC5B,IAAA,eAAK,EAAC,oCAAoC,EAAE,CAAC,YAAY,CAAC,CAAC;IAC3D,IAAA,eAAK,EAAC,mCAAmC,EAAE,CAAC,WAAW,CAAC,CAAC;IACzD,IAAA,eAAK,EAAC,wCAAwC,EAAE,CAAC,eAAe,CAAC,CAAC;GACtD,qBAAqB,CAoJjC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { BaseEntity } from './base.entity';
|
|
1
2
|
import { PasswordResetToken } from './password-reset-token.entity';
|
|
2
3
|
import { RefreshToken } from './refresh-token.entity';
|
|
3
4
|
import { EmailVerificationTokenEntity } from './email-verification-token.entity';
|
|
4
|
-
export declare class CustomerEntity {
|
|
5
|
+
export declare class CustomerEntity extends BaseEntity {
|
|
5
6
|
id: number;
|
|
6
7
|
email: string;
|
|
7
8
|
passwordHash: string;
|
|
@@ -20,9 +21,6 @@ export declare class CustomerEntity {
|
|
|
20
21
|
isProfileComplete: boolean;
|
|
21
22
|
acceptsTerms: boolean;
|
|
22
23
|
acceptsMarketing: boolean;
|
|
23
|
-
createdAt: Date;
|
|
24
|
-
updatedAt: Date;
|
|
25
|
-
deletedAt: Date | null;
|
|
26
24
|
addresses: unknown[];
|
|
27
25
|
refreshTokens: RefreshToken[];
|
|
28
26
|
verificationTokens: EmailVerificationTokenEntity[];
|
|
@@ -11,11 +11,12 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.CustomerEntity = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
|
+
const base_entity_1 = require("./base.entity");
|
|
14
15
|
const password_reset_token_entity_1 = require("./password-reset-token.entity");
|
|
15
16
|
const refresh_token_entity_1 = require("./refresh-token.entity");
|
|
16
17
|
const email_verification_token_entity_1 = require("./email-verification-token.entity");
|
|
17
18
|
const class_transformer_1 = require("class-transformer");
|
|
18
|
-
let CustomerEntity = class CustomerEntity {
|
|
19
|
+
let CustomerEntity = class CustomerEntity extends base_entity_1.BaseEntity {
|
|
19
20
|
id;
|
|
20
21
|
email;
|
|
21
22
|
passwordHash;
|
|
@@ -34,9 +35,6 @@ let CustomerEntity = class CustomerEntity {
|
|
|
34
35
|
isProfileComplete;
|
|
35
36
|
acceptsTerms;
|
|
36
37
|
acceptsMarketing;
|
|
37
|
-
createdAt;
|
|
38
|
-
updatedAt;
|
|
39
|
-
deletedAt;
|
|
40
38
|
addresses;
|
|
41
39
|
refreshTokens;
|
|
42
40
|
verificationTokens;
|
|
@@ -128,18 +126,6 @@ __decorate([
|
|
|
128
126
|
(0, typeorm_1.Column)({ type: 'boolean', default: false, name: 'accepts_marketing' }),
|
|
129
127
|
__metadata("design:type", Boolean)
|
|
130
128
|
], CustomerEntity.prototype, "acceptsMarketing", void 0);
|
|
131
|
-
__decorate([
|
|
132
|
-
(0, typeorm_1.CreateDateColumn)({ name: 'created_at', type: 'timestamptz' }),
|
|
133
|
-
__metadata("design:type", Date)
|
|
134
|
-
], CustomerEntity.prototype, "createdAt", void 0);
|
|
135
|
-
__decorate([
|
|
136
|
-
(0, typeorm_1.UpdateDateColumn)({ name: 'updated_at', type: 'timestamptz' }),
|
|
137
|
-
__metadata("design:type", Date)
|
|
138
|
-
], CustomerEntity.prototype, "updatedAt", void 0);
|
|
139
|
-
__decorate([
|
|
140
|
-
(0, typeorm_1.DeleteDateColumn)({ name: 'deleted_at', type: 'timestamptz', nullable: true }),
|
|
141
|
-
__metadata("design:type", Object)
|
|
142
|
-
], CustomerEntity.prototype, "deletedAt", void 0);
|
|
143
129
|
__decorate([
|
|
144
130
|
(0, typeorm_1.OneToMany)('CustomerAddressEntity', 'customer'),
|
|
145
131
|
__metadata("design:type", Array)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customer.entity.js","sourceRoot":"","sources":["../../src/entities/customer.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"customer.entity.js","sourceRoot":"","sources":["../../src/entities/customer.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAMiB;AACjB,+CAA2C;AAC3C,+EAAmE;AACnE,iEAAsD;AACtD,uFAAiF;AACjF,yDAA4C;AAwBrC,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,wBAAU;IAM5C,EAAE,CAAS;IAWX,KAAK,CAAS;IAQd,YAAY,CAAS;IAMrB,aAAa,CAAU;IAMvB,eAAe,CAAc;IAM7B,IAAI,CAAS;IAUb,SAAS,CAAS;IAMlB,QAAQ,CAAS;IAOjB,MAAM,CAAS;IAMf,QAAQ,CAAS;IAMjB,gBAAgB,CAAS;IAMzB,WAAW,CAAS;IAMpB,MAAM,CAAgB;IAMtB,SAAS,CAAc;IAMvB,QAAQ,CAAU;IAMlB,iBAAiB,CAAU;IAM3B,YAAY,CAAU;IAMtB,gBAAgB,CAAU;IAW1B,SAAS,CAAY;IAMrB,aAAa,CAAiB;IAG9B,kBAAkB,CAAiC;IAGnD,mBAAmB,CAAuB;IAS1C,IAAI,UAAU;QACZ,OAAO,IAAI,CAAC,EAAE,CAAC;IACjB,CAAC;IAKD,IAAI,eAAe;QACjB,OAAO,IAAI,CAAC,aAAa,CAAC;IAC5B,CAAC;IAKD,IAAI,QAAQ;QACV,OAAO,GAAG,IAAI,CAAC,SAAS,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;IAC9C,CAAC;IAKD,IAAI,SAAS;QACX,OAAO,GAAG,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC;IACvD,CAAC;CACF,CAAA;AAhLY,wCAAc;AAMzB;IADC,IAAA,gCAAsB,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,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC;;0DACtB;AAGnD;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,gDAAkB,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC;;2DACrB;yBA/I/B,cAAc;IAJ1B,IAAA,gBAAM,EAAC,WAAW,CAAC;IACnB,IAAA,eAAK,EAAC,qBAAqB,EAAE,CAAC,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IACzD,IAAA,eAAK,EAAC,wBAAwB,EAAE,CAAC,QAAQ,EAAE,UAAU,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IACzE,IAAA,eAAK,EAAC,qBAAqB,EAAE,CAAC,kBAAkB,EAAE,aAAa,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;GACvE,cAAc,CAgL1B"}
|
package/dist/entities/index.d.ts
CHANGED
package/dist/entities/index.js
CHANGED
|
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./address-store-assignment.entity"), exports);
|
|
17
18
|
__exportStar(require("./base.entity"), exports);
|
|
18
19
|
__exportStar(require("./country.entity"), exports);
|
|
19
20
|
__exportStar(require("./customer.entity"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAmBA,gDAA8B;AAC9B,mDAAiC;AACjC,oDAAkC;AAClC,4DAA0C;AAC1C,0DAAwC;AACxC,6DAA2C;AAC3C,oEAAkD;AAClD,yDAAuC;AACvC,gEAA8C;AAC9C,yDAAuC;AACvC,iDAA+B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAmBA,oEAAkD;AAClD,gDAA8B;AAC9B,mDAAiC;AACjC,oDAAkC;AAClC,4DAA0C;AAC1C,0DAAwC;AACxC,6DAA2C;AAC3C,oEAAkD;AAClD,yDAAuC;AACvC,gEAA8C;AAC9C,yDAAuC;AACvC,iDAA+B"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { BaseEntity } from './base.entity';
|
|
1
2
|
import { CustomerEntity } from './customer.entity';
|
|
2
|
-
export declare class RefreshToken {
|
|
3
|
+
export declare class RefreshToken extends BaseEntity {
|
|
3
4
|
id: number;
|
|
4
5
|
refreshToken: string;
|
|
5
6
|
issuedAt: Date;
|
|
@@ -9,7 +10,4 @@ export declare class RefreshToken {
|
|
|
9
10
|
userAgent: string;
|
|
10
11
|
customer: CustomerEntity;
|
|
11
12
|
replacedBy: RefreshToken | null;
|
|
12
|
-
createdAt: Date;
|
|
13
|
-
updatedAt: Date;
|
|
14
|
-
deletedAt: Date | null;
|
|
15
13
|
}
|
|
@@ -11,8 +11,9 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.RefreshToken = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
|
+
const base_entity_1 = require("./base.entity");
|
|
14
15
|
const customer_entity_1 = require("./customer.entity");
|
|
15
|
-
let RefreshToken = class RefreshToken {
|
|
16
|
+
let RefreshToken = class RefreshToken extends base_entity_1.BaseEntity {
|
|
16
17
|
id;
|
|
17
18
|
refreshToken;
|
|
18
19
|
issuedAt;
|
|
@@ -22,9 +23,6 @@ let RefreshToken = class RefreshToken {
|
|
|
22
23
|
userAgent;
|
|
23
24
|
customer;
|
|
24
25
|
replacedBy;
|
|
25
|
-
createdAt;
|
|
26
|
-
updatedAt;
|
|
27
|
-
deletedAt;
|
|
28
26
|
};
|
|
29
27
|
exports.RefreshToken = RefreshToken;
|
|
30
28
|
__decorate([
|
|
@@ -67,18 +65,6 @@ __decorate([
|
|
|
67
65
|
(0, typeorm_1.JoinColumn)({ name: 'replaced_by_token_id' }),
|
|
68
66
|
__metadata("design:type", Object)
|
|
69
67
|
], RefreshToken.prototype, "replacedBy", void 0);
|
|
70
|
-
__decorate([
|
|
71
|
-
(0, typeorm_1.CreateDateColumn)({ name: 'created_at', select: false }),
|
|
72
|
-
__metadata("design:type", Date)
|
|
73
|
-
], RefreshToken.prototype, "createdAt", void 0);
|
|
74
|
-
__decorate([
|
|
75
|
-
(0, typeorm_1.UpdateDateColumn)({ name: 'updated_at', select: false }),
|
|
76
|
-
__metadata("design:type", Date)
|
|
77
|
-
], RefreshToken.prototype, "updatedAt", void 0);
|
|
78
|
-
__decorate([
|
|
79
|
-
(0, typeorm_1.DeleteDateColumn)({ name: 'deleted_at', nullable: true, select: false }),
|
|
80
|
-
__metadata("design:type", Object)
|
|
81
|
-
], RefreshToken.prototype, "deletedAt", void 0);
|
|
82
68
|
exports.RefreshToken = RefreshToken = __decorate([
|
|
83
69
|
(0, typeorm_1.Entity)({ name: 'refresh_tokens' })
|
|
84
70
|
], RefreshToken);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"refresh-token.entity.js","sourceRoot":"","sources":["../../src/entities/refresh-token.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"refresh-token.entity.js","sourceRoot":"","sources":["../../src/entities/refresh-token.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAyG;AACzG,+CAA2C;AAC3C,uDAAmD;AAG5C,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,wBAAU;IAG1C,EAAE,CAAS;IAIX,YAAY,CAAS;IAGrB,QAAQ,CAAO;IAIf,SAAS,CAAO;IAGhB,SAAS,CAAc;IAGvB,EAAE,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