@imaginamossas/farmabien-common 1.0.31 → 1.0.33
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/country.entity.d.ts +6 -0
- package/dist/entities/country.entity.js +40 -0
- package/dist/entities/country.entity.js.map +1 -0
- package/dist/entities/customer-address.entity.d.ts +2 -0
- package/dist/entities/customer-address.entity.js +7 -0
- package/dist/entities/customer-address.entity.js.map +1 -1
- package/dist/entities/index.d.ts +2 -0
- package/dist/entities/index.js +2 -0
- package/dist/entities/index.js.map +1 -1
- package/dist/entities/store.entity.d.ts +16 -0
- package/dist/entities/store.entity.js +90 -0
- package/dist/entities/store.entity.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,40 @@
|
|
|
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.CountryEntity = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
let CountryEntity = class CountryEntity {
|
|
15
|
+
code;
|
|
16
|
+
name;
|
|
17
|
+
currency;
|
|
18
|
+
isActive;
|
|
19
|
+
};
|
|
20
|
+
exports.CountryEntity = CountryEntity;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, typeorm_1.PrimaryColumn)({ type: 'char', length: 2 }),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], CountryEntity.prototype, "code", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100 }),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], CountryEntity.prototype, "name", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 10 }),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], CountryEntity.prototype, "currency", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ name: 'is_active', type: 'boolean', default: true }),
|
|
35
|
+
__metadata("design:type", Boolean)
|
|
36
|
+
], CountryEntity.prototype, "isActive", void 0);
|
|
37
|
+
exports.CountryEntity = CountryEntity = __decorate([
|
|
38
|
+
(0, typeorm_1.Entity)('countries')
|
|
39
|
+
], CountryEntity);
|
|
40
|
+
//# sourceMappingURL=country.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"country.entity.js","sourceRoot":"","sources":["../../src/entities/country.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAwD;AAcjD,IAAM,aAAa,GAAnB,MAAM,aAAa;IAMxB,IAAI,CAAS;IAMb,IAAI,CAAS;IAOb,QAAQ,CAAS;IAOjB,QAAQ,CAAU;CACnB,CAAA;AA3BY,sCAAa;AAMxB;IADC,IAAA,uBAAa,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC;;2CAC9B;AAMb;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;2CAC5B;AAOb;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;+CACvB;AAOjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;+CAC5C;wBA1BP,aAAa;IADzB,IAAA,gBAAM,EAAC,WAAW,CAAC;GACP,aAAa,CA2BzB"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CustomerEntity } from './customer.entity';
|
|
2
|
+
import { CountryEntity } from './country.entity';
|
|
2
3
|
export declare class CustomerAddressEntity {
|
|
3
4
|
id: number;
|
|
4
5
|
customerId: number;
|
|
@@ -22,4 +23,5 @@ export declare class CustomerAddressEntity {
|
|
|
22
23
|
updatedAt: Date;
|
|
23
24
|
deletedAt: Date | null;
|
|
24
25
|
customer: CustomerEntity;
|
|
26
|
+
country: CountryEntity;
|
|
25
27
|
}
|
|
@@ -12,6 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.CustomerAddressEntity = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const customer_entity_1 = require("./customer.entity");
|
|
15
|
+
const country_entity_1 = require("./country.entity");
|
|
15
16
|
let CustomerAddressEntity = class CustomerAddressEntity {
|
|
16
17
|
id;
|
|
17
18
|
customerId;
|
|
@@ -35,6 +36,7 @@ let CustomerAddressEntity = class CustomerAddressEntity {
|
|
|
35
36
|
updatedAt;
|
|
36
37
|
deletedAt;
|
|
37
38
|
customer;
|
|
39
|
+
country;
|
|
38
40
|
};
|
|
39
41
|
exports.CustomerAddressEntity = CustomerAddressEntity;
|
|
40
42
|
__decorate([
|
|
@@ -144,6 +146,11 @@ __decorate([
|
|
|
144
146
|
(0, typeorm_1.JoinColumn)({ name: 'customer_id' }),
|
|
145
147
|
__metadata("design:type", customer_entity_1.CustomerEntity)
|
|
146
148
|
], CustomerAddressEntity.prototype, "customer", void 0);
|
|
149
|
+
__decorate([
|
|
150
|
+
(0, typeorm_1.ManyToOne)(() => country_entity_1.CountryEntity),
|
|
151
|
+
(0, typeorm_1.JoinColumn)({ name: 'country_id' }),
|
|
152
|
+
__metadata("design:type", country_entity_1.CountryEntity)
|
|
153
|
+
], CustomerAddressEntity.prototype, "country", void 0);
|
|
147
154
|
exports.CustomerAddressEntity = CustomerAddressEntity = __decorate([
|
|
148
155
|
(0, typeorm_1.Entity)('customer_addresses'),
|
|
149
156
|
(0, typeorm_1.Index)('idx_customer_addresses_customer_id', ['customerId']),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customer-address.entity.js","sourceRoot":"","sources":["../../src/entities/customer-address.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAUiB;AACjB,uDAAmD;
|
|
1
|
+
{"version":3,"file":"customer-address.entity.js","sourceRoot":"","sources":["../../src/entities/customer-address.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAUiB;AACjB,uDAAmD;AACnD,qDAAiD;AAqB1C,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;IAKhC,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,YAAY,CAAgB;IAM5B,UAAU,CAAgB;IAgB1B,QAAQ,CAAS;IAgBjB,SAAS,CAAS;IAOlB,aAAa,CAAS;IAOtB,iBAAiB,CAAgB;IAOjC,oBAAoB,CAAgB;IAMpC,MAAM,CAAU;IAMhB,QAAQ,CAAU;IAOlB,SAAS,CAAO;IAGhB,SAAS,CAAO;IAGhB,SAAS,CAAc;IAWvB,QAAQ,CAAiB;IAOzB,OAAO,CAAgB;CACxB,CAAA;AAvKY,sDAAqB;AAKhC;IADC,IAAA,gCAAsB,GAAE;;iDACd;AAMX;IADC,IAAA,g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EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BACnD,IAAI;wDAAC;AAGhB;IADC,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BACnD,IAAI;wDAAC;AAGhB;IADC,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wDACvD;AAWvB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,gCAAc,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,SAAS,CAAC;IACjE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BAC1B,gCAAc;uDAAC;AAOzB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,8BAAa,CAAC;IAC9B,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;8BAC1B,8BAAa;sDAAC;gCAtKZ,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,CAuKjC"}
|
package/dist/entities/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from './base.entity';
|
|
2
|
+
export * from './country.entity';
|
|
2
3
|
export * from './customer.entity';
|
|
3
4
|
export * from './customer-address.entity';
|
|
4
5
|
export * from './providers-code.entity';
|
|
@@ -7,3 +8,4 @@ export * from './email-verification-token.entity';
|
|
|
7
8
|
export * from './refresh-token.entity';
|
|
8
9
|
export * from './password-reset-token.entity';
|
|
9
10
|
export * from './login-attempt.entity';
|
|
11
|
+
export * from './store.entity';
|
package/dist/entities/index.js
CHANGED
|
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./base.entity"), exports);
|
|
18
|
+
__exportStar(require("./country.entity"), exports);
|
|
18
19
|
__exportStar(require("./customer.entity"), exports);
|
|
19
20
|
__exportStar(require("./customer-address.entity"), exports);
|
|
20
21
|
__exportStar(require("./providers-code.entity"), exports);
|
|
@@ -23,4 +24,5 @@ __exportStar(require("./email-verification-token.entity"), exports);
|
|
|
23
24
|
__exportStar(require("./refresh-token.entity"), exports);
|
|
24
25
|
__exportStar(require("./password-reset-token.entity"), exports);
|
|
25
26
|
__exportStar(require("./login-attempt.entity"), exports);
|
|
27
|
+
__exportStar(require("./store.entity"), exports);
|
|
26
28
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;
|
|
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"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BaseEntity } from './base.entity';
|
|
2
|
+
export declare class StoreEntity extends BaseEntity {
|
|
3
|
+
id: number;
|
|
4
|
+
externalId: number;
|
|
5
|
+
countryId: string;
|
|
6
|
+
name: string;
|
|
7
|
+
address: string;
|
|
8
|
+
latitude: number;
|
|
9
|
+
longitude: number;
|
|
10
|
+
isActive: boolean;
|
|
11
|
+
locality?: string;
|
|
12
|
+
state?: string;
|
|
13
|
+
imageUrl?: string;
|
|
14
|
+
phone?: string;
|
|
15
|
+
mobile?: string;
|
|
16
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
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.StoreEntity = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const base_entity_1 = require("./base.entity");
|
|
15
|
+
let StoreEntity = class StoreEntity extends base_entity_1.BaseEntity {
|
|
16
|
+
id;
|
|
17
|
+
externalId;
|
|
18
|
+
countryId;
|
|
19
|
+
name;
|
|
20
|
+
address;
|
|
21
|
+
latitude;
|
|
22
|
+
longitude;
|
|
23
|
+
isActive;
|
|
24
|
+
locality;
|
|
25
|
+
state;
|
|
26
|
+
imageUrl;
|
|
27
|
+
phone;
|
|
28
|
+
mobile;
|
|
29
|
+
};
|
|
30
|
+
exports.StoreEntity = StoreEntity;
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('increment'),
|
|
33
|
+
__metadata("design:type", Number)
|
|
34
|
+
], StoreEntity.prototype, "id", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, typeorm_1.Column)({ name: 'external_id', type: 'int', unique: true }),
|
|
37
|
+
__metadata("design:type", Number)
|
|
38
|
+
], StoreEntity.prototype, "externalId", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, typeorm_1.Column)({ name: 'country_id', type: 'char', length: 2 }),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], StoreEntity.prototype, "countryId", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100 }),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], StoreEntity.prototype, "name", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500 }),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], StoreEntity.prototype, "address", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, typeorm_1.Column)({ type: 'decimal', precision: 10, scale: 8 }),
|
|
53
|
+
__metadata("design:type", Number)
|
|
54
|
+
], StoreEntity.prototype, "latitude", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, typeorm_1.Column)({ type: 'decimal', precision: 11, scale: 8 }),
|
|
57
|
+
__metadata("design:type", Number)
|
|
58
|
+
], StoreEntity.prototype, "longitude", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, typeorm_1.Column)({ name: 'is_active', type: 'boolean', default: true }),
|
|
61
|
+
__metadata("design:type", Boolean)
|
|
62
|
+
], StoreEntity.prototype, "isActive", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
65
|
+
__metadata("design:type", String)
|
|
66
|
+
], StoreEntity.prototype, "locality", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
69
|
+
__metadata("design:type", String)
|
|
70
|
+
], StoreEntity.prototype, "state", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, typeorm_1.Column)({ name: 'image_url', type: 'varchar', length: 500, nullable: true }),
|
|
73
|
+
__metadata("design:type", String)
|
|
74
|
+
], StoreEntity.prototype, "imageUrl", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 30, nullable: true }),
|
|
77
|
+
__metadata("design:type", String)
|
|
78
|
+
], StoreEntity.prototype, "phone", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 30, nullable: true }),
|
|
81
|
+
__metadata("design:type", String)
|
|
82
|
+
], StoreEntity.prototype, "mobile", void 0);
|
|
83
|
+
exports.StoreEntity = StoreEntity = __decorate([
|
|
84
|
+
(0, typeorm_1.Entity)('stores'),
|
|
85
|
+
(0, typeorm_1.Index)('idx_stores_external_id', ['externalId'], { unique: true }),
|
|
86
|
+
(0, typeorm_1.Index)('idx_stores_country', ['countryId']),
|
|
87
|
+
(0, typeorm_1.Index)('idx_stores_active', ['isActive']),
|
|
88
|
+
(0, typeorm_1.Index)('idx_stores_location', ['latitude', 'longitude'])
|
|
89
|
+
], StoreEntity);
|
|
90
|
+
//# sourceMappingURL=store.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store.entity.js","sourceRoot":"","sources":["../../src/entities/store.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAwE;AACxE,+CAA2C;AAsBpC,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,wBAAU;IAMzC,EAAE,CAAS;IAQX,UAAU,CAAS;IAQnB,SAAS,CAAS;IAQlB,IAAI,CAAS;IAQb,OAAO,CAAS;IAQhB,QAAQ,CAAS;IAQjB,SAAS,CAAS;IAOlB,QAAQ,CAAU;IAQlB,QAAQ,CAAU;IAQlB,KAAK,CAAU;IAOf,QAAQ,CAAU;IAOlB,KAAK,CAAU;IA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