@imaginamossas/farmabien-common 1.0.32 → 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/index.d.ts +1 -0
- package/dist/entities/index.js +1 -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
package/dist/entities/index.d.ts
CHANGED
package/dist/entities/index.js
CHANGED
|
@@ -24,4 +24,5 @@ __exportStar(require("./email-verification-token.entity"), exports);
|
|
|
24
24
|
__exportStar(require("./refresh-token.entity"), exports);
|
|
25
25
|
__exportStar(require("./password-reset-token.entity"), exports);
|
|
26
26
|
__exportStar(require("./login-attempt.entity"), exports);
|
|
27
|
+
__exportStar(require("./store.entity"), exports);
|
|
27
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,KA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