@imaginamossas/farmabien-common 1.0.30 → 1.0.32

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.
@@ -0,0 +1,6 @@
1
+ export declare class CountryEntity {
2
+ code: string;
3
+ name: string;
4
+ currency: string;
5
+ isActive: boolean;
6
+ }
@@ -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,19 +1,21 @@
1
1
  import { CustomerEntity } from './customer.entity';
2
- import { CityEntity } from './city.entity';
2
+ import { CountryEntity } from './country.entity';
3
3
  export declare class CustomerAddressEntity {
4
4
  id: number;
5
5
  customerId: number;
6
- cityId: number;
7
6
  countryId: string;
8
7
  label: string;
9
- recipientName: string;
10
8
  recipientPhone: string;
11
- addressLine: string;
9
+ mainAddress: string;
10
+ city: string;
11
+ state: string;
12
12
  complement: string | null;
13
13
  neighborhood: string | null;
14
14
  postalCode: string | null;
15
- latitude: number | null;
16
- longitude: number | null;
15
+ latitude: number;
16
+ longitude: number;
17
+ googlePlaceId: string;
18
+ rawGoogleResponse: object | null;
17
19
  deliveryInstructions: string | null;
18
20
  isMain: boolean;
19
21
  isActive: boolean;
@@ -21,5 +23,5 @@ export declare class CustomerAddressEntity {
21
23
  updatedAt: Date;
22
24
  deletedAt: Date | null;
23
25
  customer: CustomerEntity;
24
- city: CityEntity;
26
+ country: CountryEntity;
25
27
  }
@@ -12,21 +12,23 @@ 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 city_entity_1 = require("./city.entity");
15
+ const country_entity_1 = require("./country.entity");
16
16
  let CustomerAddressEntity = class CustomerAddressEntity {
17
17
  id;
18
18
  customerId;
19
- cityId;
20
19
  countryId;
21
20
  label;
22
- recipientName;
23
21
  recipientPhone;
24
- addressLine;
22
+ mainAddress;
23
+ city;
24
+ state;
25
25
  complement;
26
26
  neighborhood;
27
27
  postalCode;
28
28
  latitude;
29
29
  longitude;
30
+ googlePlaceId;
31
+ rawGoogleResponse;
30
32
  deliveryInstructions;
31
33
  isMain;
32
34
  isActive;
@@ -34,7 +36,7 @@ let CustomerAddressEntity = class CustomerAddressEntity {
34
36
  updatedAt;
35
37
  deletedAt;
36
38
  customer;
37
- city;
39
+ country;
38
40
  };
39
41
  exports.CustomerAddressEntity = CustomerAddressEntity;
40
42
  __decorate([
@@ -45,10 +47,6 @@ __decorate([
45
47
  (0, typeorm_1.Column)({ name: 'customer_id', type: 'int' }),
46
48
  __metadata("design:type", Number)
47
49
  ], CustomerAddressEntity.prototype, "customerId", void 0);
48
- __decorate([
49
- (0, typeorm_1.Column)({ name: 'city_id', type: 'int' }),
50
- __metadata("design:type", Number)
51
- ], CustomerAddressEntity.prototype, "cityId", void 0);
52
50
  __decorate([
53
51
  (0, typeorm_1.Column)({ name: 'country_id', type: 'char', length: 2 }),
54
52
  __metadata("design:type", String)
@@ -57,18 +55,22 @@ __decorate([
57
55
  (0, typeorm_1.Column)({ type: 'varchar', length: 60 }),
58
56
  __metadata("design:type", String)
59
57
  ], CustomerAddressEntity.prototype, "label", void 0);
60
- __decorate([
61
- (0, typeorm_1.Column)({ name: 'recipient_name', type: 'varchar', length: 200 }),
62
- __metadata("design:type", String)
63
- ], CustomerAddressEntity.prototype, "recipientName", void 0);
64
58
  __decorate([
65
59
  (0, typeorm_1.Column)({ name: 'recipient_phone', type: 'varchar', length: 25 }),
66
60
  __metadata("design:type", String)
67
61
  ], CustomerAddressEntity.prototype, "recipientPhone", void 0);
68
62
  __decorate([
69
- (0, typeorm_1.Column)({ name: 'address_line', type: 'varchar', length: 500 }),
63
+ (0, typeorm_1.Column)({ name: 'main_address', type: 'varchar', length: 500 }),
64
+ __metadata("design:type", String)
65
+ ], CustomerAddressEntity.prototype, "mainAddress", void 0);
66
+ __decorate([
67
+ (0, typeorm_1.Column)({ type: 'varchar', length: 100 }),
68
+ __metadata("design:type", String)
69
+ ], CustomerAddressEntity.prototype, "city", void 0);
70
+ __decorate([
71
+ (0, typeorm_1.Column)({ type: 'varchar', length: 100 }),
70
72
  __metadata("design:type", String)
71
- ], CustomerAddressEntity.prototype, "addressLine", void 0);
73
+ ], CustomerAddressEntity.prototype, "state", void 0);
72
74
  __decorate([
73
75
  (0, typeorm_1.Column)({ type: 'varchar', length: 200, nullable: true }),
74
76
  __metadata("design:type", Object)
@@ -86,27 +88,35 @@ __decorate([
86
88
  type: 'decimal',
87
89
  precision: 10,
88
90
  scale: 8,
89
- nullable: true,
91
+ nullable: false,
90
92
  transformer: {
91
93
  to: (value) => value,
92
- from: (value) => (value ? parseFloat(value) : null),
94
+ from: (value) => parseFloat(value),
93
95
  },
94
96
  }),
95
- __metadata("design:type", Object)
97
+ __metadata("design:type", Number)
96
98
  ], CustomerAddressEntity.prototype, "latitude", void 0);
97
99
  __decorate([
98
100
  (0, typeorm_1.Column)({
99
101
  type: 'decimal',
100
102
  precision: 11,
101
103
  scale: 8,
102
- nullable: true,
104
+ nullable: false,
103
105
  transformer: {
104
106
  to: (value) => value,
105
- from: (value) => (value ? parseFloat(value) : null),
107
+ from: (value) => parseFloat(value),
106
108
  },
107
109
  }),
108
- __metadata("design:type", Object)
110
+ __metadata("design:type", Number)
109
111
  ], CustomerAddressEntity.prototype, "longitude", void 0);
112
+ __decorate([
113
+ (0, typeorm_1.Column)({ name: 'google_place_id', type: 'varchar', length: 300 }),
114
+ __metadata("design:type", String)
115
+ ], CustomerAddressEntity.prototype, "googlePlaceId", void 0);
116
+ __decorate([
117
+ (0, typeorm_1.Column)({ name: 'raw_google_response', type: 'jsonb', nullable: true }),
118
+ __metadata("design:type", Object)
119
+ ], CustomerAddressEntity.prototype, "rawGoogleResponse", void 0);
110
120
  __decorate([
111
121
  (0, typeorm_1.Column)({ name: 'delivery_instructions', type: 'varchar', length: 500, nullable: true }),
112
122
  __metadata("design:type", Object)
@@ -137,14 +147,14 @@ __decorate([
137
147
  __metadata("design:type", customer_entity_1.CustomerEntity)
138
148
  ], CustomerAddressEntity.prototype, "customer", void 0);
139
149
  __decorate([
140
- (0, typeorm_1.ManyToOne)(() => city_entity_1.CityEntity, (city) => city.addresses),
141
- (0, typeorm_1.JoinColumn)({ name: 'city_id' }),
142
- __metadata("design:type", city_entity_1.CityEntity)
143
- ], CustomerAddressEntity.prototype, "city", void 0);
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);
144
154
  exports.CustomerAddressEntity = CustomerAddressEntity = __decorate([
145
155
  (0, typeorm_1.Entity)('customer_addresses'),
146
156
  (0, typeorm_1.Index)('idx_customer_addresses_customer_id', ['customerId']),
147
- (0, typeorm_1.Index)('idx_customer_addresses_city_id', ['cityId']),
148
- (0, typeorm_1.Index)('idx_customer_addresses_country_id', ['countryId'])
157
+ (0, typeorm_1.Index)('idx_customer_addresses_country_id', ['countryId']),
158
+ (0, typeorm_1.Index)('idx_customer_addresses_google_place_id', ['googlePlaceId'])
149
159
  ], CustomerAddressEntity);
150
160
  //# sourceMappingURL=customer-address.entity.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"customer-address.entity.js","sourceRoot":"","sources":["../../src/entities/customer-address.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAUiB;AACjB,uDAAmD;AACnD,+CAA2C;AAkBpC,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;IAKhC,EAAE,CAAS;IAQX,UAAU,CAAS;IAMnB,MAAM,CAAS;IAQf,SAAS,CAAS;IAMlB,KAAK,CAAS;IAOd,aAAa,CAAS;IAOtB,cAAc,CAAS;IAMvB,WAAW,CAAS;IAMpB,UAAU,CAAgB;IAM1B,YAAY,CAAgB;IAM5B,UAAU,CAAgB;IAe1B,QAAQ,CAAgB;IAexB,SAAS,CAAgB;IAMzB,oBAAoB,CAAgB;IAMpC,MAAM,CAAU;IAMhB,QAAQ,CAAU;IAOlB,SAAS,CAAO;IAGhB,SAAS,CAAO;IAGhB,SAAS,CAAc;IAWvB,QAAQ,CAAiB;IAOzB,IAAI,CAAa;CAClB,CAAA;AAvJY,sDAAqB;AAKhC;IADC,IAAA,gCAAsB,GAAE;;iDACd;AAQX;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;yDAC1B;AAMnB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;qDAC1B;AAQf;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC;;wDACtC;AAMlB;IADC,IAAA,gBAAM,EAAC,EAAE,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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,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"}
@@ -1,8 +1,7 @@
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
- export * from './state.entity';
5
- export * from './city.entity';
6
5
  export * from './providers-code.entity';
7
6
  export * from './customer-provider.entity';
8
7
  export * from './email-verification-token.entity';
@@ -15,10 +15,9 @@ 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
- __exportStar(require("./state.entity"), exports);
21
- __exportStar(require("./city.entity"), exports);
22
21
  __exportStar(require("./providers-code.entity"), exports);
23
22
  __exportStar(require("./customer-provider.entity"), exports);
24
23
  __exportStar(require("./email-verification-token.entity"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAaA,gDAA8B;AAC9B,oDAAkC;AAClC,4DAA0C;AAC1C,iDAA+B;AAC/B,gDAA8B;AAC9B,0DAAwC;AACxC,6DAA2C;AAC3C,oEAAkD;AAClD,yDAAuC;AACvC,gEAA8C;AAC9C,yDAAuC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAiBA,gDAA8B;AAC9B,mDAAiC;AACjC,oDAAkC;AAClC,4DAA0C;AAC1C,0DAAwC;AACxC,6DAA2C;AAC3C,oEAAkD;AAClD,yDAAuC;AACvC,gEAA8C;AAC9C,yDAAuC"}
@@ -1 +1 @@
1
- {"version":3,"file":"global.repository.js","sourceRoot":"","sources":["../../src/repositories/global.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAuCA,2CAA4C;AAC5C,6CAAsD;AACtD,qCAAqD;AAG9C,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAEiB;IAD5C,YAC4C,aAA4B;QAA5B,kBAAa,GAAb,aAAa,CAAe;IACrE,CAAC;IASG,KAAK,CAAC,iBAAiB;QAC5B,MAAM,WAAW,GAAG,IAAI,CAAC,aAAa,CAAC,UAAU,CAAC,iBAAiB,EAAE,CAAC;QACtE,IAAI,CAAC;YACH,MAAM,WAAW,CAAC,OAAO,EAAE,CAAC;YAC5B,MAAM,WAAW,CA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