adamo-types 2.0.1-uat → 2.0.2-sit

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.
Files changed (21) hide show
  1. package/dist/common/constants/common.constants.d.ts +4 -3
  2. package/dist/common/constants/common.constants.js +3 -2
  3. package/dist/common/exception/service.exception.entity.d.ts +29 -17
  4. package/dist/common/exception/service.exception.entity.js +10 -41
  5. package/dist/database/customer-product-change-of-address.entity.d.ts +46 -0
  6. package/dist/database/customer-product-change-of-address.entity.js +203 -0
  7. package/dist/database/customer-product-multiple-transition.entity copy.d.ts +64 -0
  8. package/dist/database/customer-product-multiple-transition.entity copy.js +269 -0
  9. package/dist/sys03/apartment-whitelist/apartment-whitelist.entity.d.ts +4 -1
  10. package/dist/sys03/apartment-whitelist/apartment-whitelist.entity.js +11 -1
  11. package/dist/sys03/approval/approval.entity.d.ts +5 -5
  12. package/dist/sys03/customer-product-change-of-address-process/customer-product-change-of-address-process.constants copy.d.ts +19 -0
  13. package/dist/sys03/customer-product-change-of-address-process/customer-product-change-of-address-process.constants copy.js +23 -0
  14. package/dist/sys03/customer-product-change-of-address-process/customer-product-change-of-address-process.constants.d.ts +18 -0
  15. package/dist/sys03/customer-product-change-of-address-process/customer-product-change-of-address-process.constants.js +22 -0
  16. package/dist/sys03/customer-product-change-of-address-process/customer-product-change-of-address-process.entity.d.ts +78 -0
  17. package/dist/sys03/customer-product-change-of-address-process/customer-product-change-of-address-process.entity.js +221 -0
  18. package/dist/sys03/customer-product-change-of-address-process/index.d.ts +2 -0
  19. package/dist/sys03/customer-product-change-of-address-process/index.js +18 -0
  20. package/dist/tsconfig.build.tsbuildinfo +1 -1
  21. package/package.json +1 -1
@@ -75,12 +75,13 @@ export declare enum MicroserviceType {
75
75
  BSS_BRIDGE = "BSS BRIDGE",
76
76
  DB_BRIDGE = "DB BRIDGE",
77
77
  DIGITEL = "DIGITEL",
78
+ DIGITEL_BRIDGE = "DIGITEL BRIDGE",
78
79
  FTP = "FTP",
79
80
  INFONOVA = "INFONOVA",
80
- SFTP = "SFTP",
81
- MSG_MEDIA = "MESSAGE MEDIA",
81
+ MESSAGE_MEDIA = "MESSAGE MEDIA",
82
82
  OTRS = "OTRS",
83
- SENDGRID = "SENDGRID"
83
+ SENDGRID = "SENDGRID",
84
+ SFTP = "SFTP"
84
85
  }
85
86
  export declare enum Templates {
86
87
  B2C_SMS_TEMPLATE = "B2C_SMS_TEMPLATE",
@@ -94,12 +94,13 @@ var MicroserviceType;
94
94
  MicroserviceType["BSS_BRIDGE"] = "BSS BRIDGE";
95
95
  MicroserviceType["DB_BRIDGE"] = "DB BRIDGE";
96
96
  MicroserviceType["DIGITEL"] = "DIGITEL";
97
+ MicroserviceType["DIGITEL_BRIDGE"] = "DIGITEL BRIDGE";
97
98
  MicroserviceType["FTP"] = "FTP";
98
99
  MicroserviceType["INFONOVA"] = "INFONOVA";
99
- MicroserviceType["SFTP"] = "SFTP";
100
- MicroserviceType["MSG_MEDIA"] = "MESSAGE MEDIA";
100
+ MicroserviceType["MESSAGE_MEDIA"] = "MESSAGE MEDIA";
101
101
  MicroserviceType["OTRS"] = "OTRS";
102
102
  MicroserviceType["SENDGRID"] = "SENDGRID";
103
+ MicroserviceType["SFTP"] = "SFTP";
103
104
  })(MicroserviceType || (exports.MicroserviceType = MicroserviceType = {}));
104
105
  var Templates;
105
106
  (function (Templates) {
@@ -1,9 +1,5 @@
1
1
  import { MicroserviceType } from '../constants';
2
2
  import { ErrorParameters, MessagePayloadDto } from './exception.entity';
3
- interface LegacyErrorArgs {
4
- code?: string;
5
- args?: any;
6
- }
7
3
  interface ErrorArgs {
8
4
  code?: string;
9
5
  statusCode?: number;
@@ -12,8 +8,24 @@ interface ErrorArgs {
12
8
  parameters?: ErrorParameters;
13
9
  error?: any;
14
10
  }
15
- export declare const DbBridgeError: {
16
- new (errorArgs: LegacyErrorArgs): {
11
+ export declare const AcsEdgeError: {
12
+ new (errorArgs: ErrorArgs): {
13
+ code: string;
14
+ source: MicroserviceType;
15
+ statusCode?: number;
16
+ parameters?: ErrorParameters;
17
+ superMessage: string;
18
+ messages?: MessagePayloadDto[];
19
+ name: string;
20
+ message: string;
21
+ stack?: string;
22
+ };
23
+ captureStackTrace(targetObject: object, constructorOpt?: Function): void;
24
+ prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
25
+ stackTraceLimit: number;
26
+ };
27
+ export declare const ArsEdgeError: {
28
+ new (errorArgs: ErrorArgs): {
17
29
  code: string;
18
30
  source: MicroserviceType;
19
31
  statusCode?: number;
@@ -29,7 +41,7 @@ export declare const DbBridgeError: {
29
41
  stackTraceLimit: number;
30
42
  };
31
43
  export declare const BssBridgeError: {
32
- new (errorArgs: LegacyErrorArgs): {
44
+ new (errorArgs: ErrorArgs): {
33
45
  code: string;
34
46
  source: MicroserviceType;
35
47
  statusCode?: number;
@@ -44,8 +56,8 @@ export declare const BssBridgeError: {
44
56
  prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
45
57
  stackTraceLimit: number;
46
58
  };
47
- export declare const ArsEdgeError: {
48
- new (errorArgs: LegacyErrorArgs): {
59
+ export declare const DbBridgeError: {
60
+ new (errorArgs: ErrorArgs): {
49
61
  code: string;
50
62
  source: MicroserviceType;
51
63
  statusCode?: number;
@@ -60,8 +72,8 @@ export declare const ArsEdgeError: {
60
72
  prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
61
73
  stackTraceLimit: number;
62
74
  };
63
- export declare const AcsEdgeError: {
64
- new (errorArgs: LegacyErrorArgs): {
75
+ export declare const DigitelBridgeError: {
76
+ new (errorArgs: ErrorArgs): {
65
77
  code: string;
66
78
  source: MicroserviceType;
67
79
  statusCode?: number;
@@ -92,7 +104,7 @@ export declare const AmsError: {
92
104
  prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
93
105
  stackTraceLimit: number;
94
106
  };
95
- export declare const FtpError: {
107
+ export declare const DigitelError: {
96
108
  new (errorArgs: ErrorArgs): {
97
109
  code: string;
98
110
  source: MicroserviceType;
@@ -108,7 +120,7 @@ export declare const FtpError: {
108
120
  prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
109
121
  stackTraceLimit: number;
110
122
  };
111
- export declare const SftpError: {
123
+ export declare const FtpError: {
112
124
  new (errorArgs: ErrorArgs): {
113
125
  code: string;
114
126
  source: MicroserviceType;
@@ -140,7 +152,7 @@ export declare const MsgMediaError: {
140
152
  prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
141
153
  stackTraceLimit: number;
142
154
  };
143
- export declare const SendGridError: {
155
+ export declare const OtrsError: {
144
156
  new (errorArgs: ErrorArgs): {
145
157
  code: string;
146
158
  source: MicroserviceType;
@@ -156,7 +168,7 @@ export declare const SendGridError: {
156
168
  prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
157
169
  stackTraceLimit: number;
158
170
  };
159
- export declare const OtrsError: {
171
+ export declare const SendGridError: {
160
172
  new (errorArgs: ErrorArgs): {
161
173
  code: string;
162
174
  source: MicroserviceType;
@@ -172,8 +184,8 @@ export declare const OtrsError: {
172
184
  prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
173
185
  stackTraceLimit: number;
174
186
  };
175
- export declare const DigitelError: {
176
- new (errorArgs: LegacyErrorArgs): {
187
+ export declare const SftpError: {
188
+ new (errorArgs: ErrorArgs): {
177
189
  code: string;
178
190
  source: MicroserviceType;
179
191
  statusCode?: number;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DigitelError = exports.OtrsError = exports.SendGridError = exports.MsgMediaError = exports.SftpError = exports.FtpError = exports.AmsError = exports.AcsEdgeError = exports.ArsEdgeError = exports.BssBridgeError = exports.DbBridgeError = void 0;
3
+ exports.SftpError = exports.SendGridError = exports.OtrsError = exports.MsgMediaError = exports.FtpError = exports.DigitelError = exports.AmsError = exports.DigitelBridgeError = exports.DbBridgeError = exports.BssBridgeError = exports.ArsEdgeError = exports.AcsEdgeError = void 0;
4
4
  const openapi = require("@nestjs/swagger");
5
5
  const constants_1 = require("../constants");
6
6
  const exception_entity_1 = require("./exception.entity");
@@ -11,23 +11,6 @@ function mapErrorCode(code) {
11
11
  return constants_1.E_CONNECTION_REFUSED;
12
12
  return code;
13
13
  }
14
- function mapLegacyErrorArgs({ code, args = {} }) {
15
- var _a, _b;
16
- const { response: { status: responseStatusCode, data: { source, code: dataCode, i18n: dataI18n, status: dataStatusCode, message: dataMessage, parameters: dataParameters } } = {
17
- status: undefined,
18
- data: ({} = {})
19
- }, status, statusCode: argsStatusCode, message, stack, code: argsCode, parameters } = args;
20
- const mappedCode = (_b = (_a = code !== null && code !== void 0 ? code : dataI18n) !== null && _a !== void 0 ? _a : dataCode) !== null && _b !== void 0 ? _b : mapErrorCode(argsCode);
21
- const statusCode = status || dataStatusCode || responseStatusCode || argsStatusCode;
22
- return {
23
- source,
24
- code: mappedCode,
25
- message: dataMessage || message,
26
- statusCode,
27
- stack,
28
- parameters: parameters !== null && parameters !== void 0 ? parameters : dataParameters
29
- };
30
- }
31
14
  function mapErrorArgs({ code: rootCode, message: rootMessage, messages: rootMessages, statusCode: rootStatusCode, parameters: rootParameters, error: args = {} }) {
32
15
  var _a, _b, _c, _d, _e, _f;
33
16
  const { response: argsResponse = {}, code: argsCode, status: argsStatus, statusCode: argsStatusCode, message: argsMessage, stack: argsStack, parameters: argsParameters } = args;
@@ -49,21 +32,6 @@ function mapErrorArgs({ code: rootCode, message: rootMessage, messages: rootMess
49
32
  parameters
50
33
  };
51
34
  }
52
- function createLegacyErrorFactory({ name, source: argSource }) {
53
- const classObj = class DynamicCustomError extends exception_entity_1.CustomError {
54
- constructor(errorArgs) {
55
- const { source: errorArgsSource, code, message, statusCode, stack, parameters } = mapLegacyErrorArgs(errorArgs);
56
- const source = errorArgsSource !== null && errorArgsSource !== void 0 ? errorArgsSource : argSource;
57
- super({ source, code, statusCode, parameters }, message, stack);
58
- this.name = name;
59
- }
60
- };
61
- Object.defineProperty(classObj, 'name', {
62
- writable: false,
63
- value: name
64
- });
65
- return classObj;
66
- }
67
35
  function createErrorFactory({ name, source: argSource }) {
68
36
  const classObj = class DynamicCustomError extends exception_entity_1.CustomError {
69
37
  constructor(errorArgs) {
@@ -79,14 +47,15 @@ function createErrorFactory({ name, source: argSource }) {
79
47
  });
80
48
  return classObj;
81
49
  }
82
- exports.DbBridgeError = createLegacyErrorFactory({ name: 'DbBridgeError', source: constants_1.MicroserviceType.DB_BRIDGE });
83
- exports.BssBridgeError = createLegacyErrorFactory({ name: 'BssBridgeError', source: constants_1.MicroserviceType.BSS_BRIDGE });
84
- exports.ArsEdgeError = createLegacyErrorFactory({ name: 'ArsEdgeError', source: constants_1.MicroserviceType.ARS_EDGE });
85
- exports.AcsEdgeError = createLegacyErrorFactory({ name: 'AcsEdgeError', source: constants_1.MicroserviceType.ACS_EDGE });
50
+ exports.AcsEdgeError = createErrorFactory({ name: 'AcsEdgeError', source: constants_1.MicroserviceType.ACS_EDGE });
51
+ exports.ArsEdgeError = createErrorFactory({ name: 'ArsEdgeError', source: constants_1.MicroserviceType.ARS_EDGE });
52
+ exports.BssBridgeError = createErrorFactory({ name: 'BssBridgeError', source: constants_1.MicroserviceType.BSS_BRIDGE });
53
+ exports.DbBridgeError = createErrorFactory({ name: 'DbBridgeError', source: constants_1.MicroserviceType.DB_BRIDGE });
54
+ exports.DigitelBridgeError = createErrorFactory({ name: 'DigitelBridgeError', source: constants_1.MicroserviceType.DIGITEL_BRIDGE });
86
55
  exports.AmsError = createErrorFactory({ name: 'AmsError', source: constants_1.MicroserviceType.AMS });
56
+ exports.DigitelError = createErrorFactory({ name: 'DigitelError', source: constants_1.MicroserviceType.DIGITEL });
87
57
  exports.FtpError = createErrorFactory({ name: 'FtpError', source: constants_1.MicroserviceType.FTP });
88
- exports.SftpError = createErrorFactory({ name: 'SftpError', source: constants_1.MicroserviceType.SFTP });
89
- exports.MsgMediaError = createErrorFactory({ name: 'MsgMediaError', source: constants_1.MicroserviceType.MSG_MEDIA });
90
- exports.SendGridError = createErrorFactory({ name: 'SendGridError', source: constants_1.MicroserviceType.SENDGRID });
58
+ exports.MsgMediaError = createErrorFactory({ name: 'MsgMediaError', source: constants_1.MicroserviceType.MESSAGE_MEDIA });
91
59
  exports.OtrsError = createErrorFactory({ name: 'OtrsError', source: constants_1.MicroserviceType.OTRS });
92
- exports.DigitelError = createLegacyErrorFactory({ name: 'DigitelError', source: constants_1.MicroserviceType.DIGITEL });
60
+ exports.SendGridError = createErrorFactory({ name: 'SendGridError', source: constants_1.MicroserviceType.SENDGRID });
61
+ exports.SftpError = createErrorFactory({ name: 'SftpError', source: constants_1.MicroserviceType.SFTP });
@@ -0,0 +1,46 @@
1
+ export declare class CustomerProductChangeOfAddressEntity {
2
+ id?: number;
3
+ customerId: string;
4
+ productId: string;
5
+ productName: string;
6
+ productDisplayName: string;
7
+ status: string;
8
+ data?: CustomerProductChangeOfAddressDataEntity[];
9
+ shoppingCartId?: string;
10
+ searchType?: string;
11
+ search?: string;
12
+ googleLatitude?: string;
13
+ googleLongitude?: string;
14
+ googleStreet?: string;
15
+ googleCity?: string;
16
+ googleZip?: string;
17
+ googleProvince?: string;
18
+ addressId?: string;
19
+ apartmentId?: string;
20
+ createdBy: string;
21
+ createdInChannel: string;
22
+ createdAt?: Date;
23
+ updatedBy?: string;
24
+ updatedInChannel?: string;
25
+ updatedAt?: Date;
26
+ }
27
+ export declare class CustomerProductChangeOfAddressDataEntity {
28
+ id?: number;
29
+ status: string;
30
+ customerProductChangeOfAddressId?: number;
31
+ customerProductChangeOfAddress?: CustomerProductChangeOfAddressEntity;
32
+ shoppingCartId?: string;
33
+ searchType?: string;
34
+ search?: string;
35
+ googleLatitude?: string;
36
+ googleLongitude?: string;
37
+ googleStreet?: string;
38
+ googleCity?: string;
39
+ googleZip?: string;
40
+ googleProvince?: string;
41
+ addressId?: string;
42
+ apartmentId?: string;
43
+ createdBy: string;
44
+ createdInChannel: string;
45
+ createdAt?: Date;
46
+ }
@@ -0,0 +1,203 @@
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.CustomerProductChangeOfAddressDataEntity = exports.CustomerProductChangeOfAddressEntity = void 0;
13
+ const openapi = require("@nestjs/swagger");
14
+ const typeorm_1 = require("typeorm");
15
+ let CustomerProductChangeOfAddressEntity = class CustomerProductChangeOfAddressEntity {
16
+ static _OPENAPI_METADATA_FACTORY() {
17
+ return { id: { required: false, type: () => Number }, customerId: { required: true, type: () => String }, productId: { required: true, type: () => String }, productName: { required: true, type: () => String }, productDisplayName: { required: true, type: () => String }, status: { required: true, type: () => String }, data: { required: false, type: () => [require("./customer-product-change-of-address.entity").CustomerProductChangeOfAddressDataEntity] }, shoppingCartId: { required: false, type: () => String }, searchType: { required: false, type: () => String }, search: { required: false, type: () => String }, googleLatitude: { required: false, type: () => String }, googleLongitude: { required: false, type: () => String }, googleStreet: { required: false, type: () => String }, googleCity: { required: false, type: () => String }, googleZip: { required: false, type: () => String }, googleProvince: { required: false, type: () => String }, addressId: { required: false, type: () => String }, apartmentId: { required: false, type: () => String }, createdBy: { required: true, type: () => String }, createdInChannel: { required: true, type: () => String }, createdAt: { required: false, type: () => Date }, updatedBy: { required: false, type: () => String }, updatedInChannel: { required: false, type: () => String }, updatedAt: { required: false, type: () => Date } };
18
+ }
19
+ };
20
+ exports.CustomerProductChangeOfAddressEntity = CustomerProductChangeOfAddressEntity;
21
+ __decorate([
22
+ (0, typeorm_1.PrimaryGeneratedColumn)(),
23
+ __metadata("design:type", Number)
24
+ ], CustomerProductChangeOfAddressEntity.prototype, "id", void 0);
25
+ __decorate([
26
+ (0, typeorm_1.Column)({ type: 'varchar', length: 45, nullable: false }),
27
+ __metadata("design:type", String)
28
+ ], CustomerProductChangeOfAddressEntity.prototype, "customerId", void 0);
29
+ __decorate([
30
+ (0, typeorm_1.Column)({ type: 'varchar', length: 45, nullable: false }),
31
+ __metadata("design:type", String)
32
+ ], CustomerProductChangeOfAddressEntity.prototype, "productId", void 0);
33
+ __decorate([
34
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
35
+ __metadata("design:type", String)
36
+ ], CustomerProductChangeOfAddressEntity.prototype, "productName", void 0);
37
+ __decorate([
38
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
39
+ __metadata("design:type", String)
40
+ ], CustomerProductChangeOfAddressEntity.prototype, "productDisplayName", void 0);
41
+ __decorate([
42
+ (0, typeorm_1.Column)({ type: 'varchar', length: 45, nullable: false }),
43
+ __metadata("design:type", String)
44
+ ], CustomerProductChangeOfAddressEntity.prototype, "status", void 0);
45
+ __decorate([
46
+ (0, typeorm_1.OneToMany)(() => CustomerProductChangeOfAddressDataEntity, (data) => data.customerProductChangeOfAddress, {
47
+ onDelete: 'CASCADE'
48
+ }),
49
+ __metadata("design:type", Array)
50
+ ], CustomerProductChangeOfAddressEntity.prototype, "data", void 0);
51
+ __decorate([
52
+ (0, typeorm_1.Column)({ type: 'varchar', length: 45, nullable: true }),
53
+ __metadata("design:type", String)
54
+ ], CustomerProductChangeOfAddressEntity.prototype, "shoppingCartId", void 0);
55
+ __decorate([
56
+ (0, typeorm_1.Column)({ type: 'varchar', length: 45, nullable: true }),
57
+ __metadata("design:type", String)
58
+ ], CustomerProductChangeOfAddressEntity.prototype, "searchType", void 0);
59
+ __decorate([
60
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
61
+ __metadata("design:type", String)
62
+ ], CustomerProductChangeOfAddressEntity.prototype, "search", void 0);
63
+ __decorate([
64
+ (0, typeorm_1.Column)({ type: 'varchar', length: 45, nullable: true }),
65
+ __metadata("design:type", String)
66
+ ], CustomerProductChangeOfAddressEntity.prototype, "googleLatitude", void 0);
67
+ __decorate([
68
+ (0, typeorm_1.Column)({ type: 'varchar', length: 45, nullable: true }),
69
+ __metadata("design:type", String)
70
+ ], CustomerProductChangeOfAddressEntity.prototype, "googleLongitude", void 0);
71
+ __decorate([
72
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
73
+ __metadata("design:type", String)
74
+ ], CustomerProductChangeOfAddressEntity.prototype, "googleStreet", void 0);
75
+ __decorate([
76
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
77
+ __metadata("design:type", String)
78
+ ], CustomerProductChangeOfAddressEntity.prototype, "googleCity", void 0);
79
+ __decorate([
80
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
81
+ __metadata("design:type", String)
82
+ ], CustomerProductChangeOfAddressEntity.prototype, "googleZip", void 0);
83
+ __decorate([
84
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
85
+ __metadata("design:type", String)
86
+ ], CustomerProductChangeOfAddressEntity.prototype, "googleProvince", void 0);
87
+ __decorate([
88
+ (0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
89
+ __metadata("design:type", String)
90
+ ], CustomerProductChangeOfAddressEntity.prototype, "addressId", void 0);
91
+ __decorate([
92
+ (0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
93
+ __metadata("design:type", String)
94
+ ], CustomerProductChangeOfAddressEntity.prototype, "apartmentId", void 0);
95
+ __decorate([
96
+ (0, typeorm_1.Column)({ type: 'varchar', length: 45, nullable: true, default: null }),
97
+ __metadata("design:type", String)
98
+ ], CustomerProductChangeOfAddressEntity.prototype, "createdBy", void 0);
99
+ __decorate([
100
+ (0, typeorm_1.Column)({ type: 'varchar', length: 45, nullable: true, default: null }),
101
+ __metadata("design:type", String)
102
+ ], CustomerProductChangeOfAddressEntity.prototype, "createdInChannel", void 0);
103
+ __decorate([
104
+ (0, typeorm_1.Column)({ type: 'datetime', nullable: false, default: 'CURRENT_TIMESTAMP' }),
105
+ __metadata("design:type", Date)
106
+ ], CustomerProductChangeOfAddressEntity.prototype, "createdAt", void 0);
107
+ __decorate([
108
+ (0, typeorm_1.Column)({ type: 'varchar', length: 45, nullable: true, default: null }),
109
+ __metadata("design:type", String)
110
+ ], CustomerProductChangeOfAddressEntity.prototype, "updatedBy", void 0);
111
+ __decorate([
112
+ (0, typeorm_1.Column)({ type: 'varchar', length: 45, nullable: true, default: null }),
113
+ __metadata("design:type", String)
114
+ ], CustomerProductChangeOfAddressEntity.prototype, "updatedInChannel", void 0);
115
+ __decorate([
116
+ (0, typeorm_1.Column)({ type: 'datetime', nullable: false, default: 'CURRENT_TIMESTAMP', onUpdate: 'CURRENT_TIMESTAMP' }),
117
+ __metadata("design:type", Date)
118
+ ], CustomerProductChangeOfAddressEntity.prototype, "updatedAt", void 0);
119
+ exports.CustomerProductChangeOfAddressEntity = CustomerProductChangeOfAddressEntity = __decorate([
120
+ (0, typeorm_1.Entity)({ name: 'customer-product-change-of-address' }),
121
+ (0, typeorm_1.Unique)('productId_UNIQUE', ['productId'])
122
+ ], CustomerProductChangeOfAddressEntity);
123
+ let CustomerProductChangeOfAddressDataEntity = class CustomerProductChangeOfAddressDataEntity {
124
+ static _OPENAPI_METADATA_FACTORY() {
125
+ return { id: { required: false, type: () => Number }, status: { required: true, type: () => String }, customerProductChangeOfAddressId: { required: false, type: () => Number }, customerProductChangeOfAddress: { required: false, type: () => require("./customer-product-change-of-address.entity").CustomerProductChangeOfAddressEntity }, shoppingCartId: { required: false, type: () => String }, searchType: { required: false, type: () => String }, search: { required: false, type: () => String }, googleLatitude: { required: false, type: () => String }, googleLongitude: { required: false, type: () => String }, googleStreet: { required: false, type: () => String }, googleCity: { required: false, type: () => String }, googleZip: { required: false, type: () => String }, googleProvince: { required: false, type: () => String }, addressId: { required: false, type: () => String }, apartmentId: { required: false, type: () => String }, createdBy: { required: true, type: () => String }, createdInChannel: { required: true, type: () => String }, createdAt: { required: false, type: () => Date } };
126
+ }
127
+ };
128
+ exports.CustomerProductChangeOfAddressDataEntity = CustomerProductChangeOfAddressDataEntity;
129
+ __decorate([
130
+ (0, typeorm_1.PrimaryGeneratedColumn)(),
131
+ __metadata("design:type", Number)
132
+ ], CustomerProductChangeOfAddressDataEntity.prototype, "id", void 0);
133
+ __decorate([
134
+ (0, typeorm_1.Column)({ type: 'varchar', length: 45, nullable: false }),
135
+ __metadata("design:type", String)
136
+ ], CustomerProductChangeOfAddressDataEntity.prototype, "status", void 0);
137
+ __decorate([
138
+ (0, typeorm_1.Column)({ type: 'int', nullable: false }),
139
+ __metadata("design:type", Number)
140
+ ], CustomerProductChangeOfAddressDataEntity.prototype, "customerProductChangeOfAddressId", void 0);
141
+ __decorate([
142
+ (0, typeorm_1.ManyToOne)(() => CustomerProductChangeOfAddressEntity, (customerProductChangeOfAddress) => customerProductChangeOfAddress.data),
143
+ __metadata("design:type", CustomerProductChangeOfAddressEntity)
144
+ ], CustomerProductChangeOfAddressDataEntity.prototype, "customerProductChangeOfAddress", void 0);
145
+ __decorate([
146
+ (0, typeorm_1.Column)({ type: 'varchar', length: 45, nullable: true }),
147
+ __metadata("design:type", String)
148
+ ], CustomerProductChangeOfAddressDataEntity.prototype, "shoppingCartId", void 0);
149
+ __decorate([
150
+ (0, typeorm_1.Column)({ type: 'varchar', length: 45, nullable: true }),
151
+ __metadata("design:type", String)
152
+ ], CustomerProductChangeOfAddressDataEntity.prototype, "searchType", void 0);
153
+ __decorate([
154
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
155
+ __metadata("design:type", String)
156
+ ], CustomerProductChangeOfAddressDataEntity.prototype, "search", void 0);
157
+ __decorate([
158
+ (0, typeorm_1.Column)({ type: 'varchar', length: 45, nullable: true }),
159
+ __metadata("design:type", String)
160
+ ], CustomerProductChangeOfAddressDataEntity.prototype, "googleLatitude", void 0);
161
+ __decorate([
162
+ (0, typeorm_1.Column)({ type: 'varchar', length: 45, nullable: true }),
163
+ __metadata("design:type", String)
164
+ ], CustomerProductChangeOfAddressDataEntity.prototype, "googleLongitude", void 0);
165
+ __decorate([
166
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
167
+ __metadata("design:type", String)
168
+ ], CustomerProductChangeOfAddressDataEntity.prototype, "googleStreet", void 0);
169
+ __decorate([
170
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
171
+ __metadata("design:type", String)
172
+ ], CustomerProductChangeOfAddressDataEntity.prototype, "googleCity", void 0);
173
+ __decorate([
174
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
175
+ __metadata("design:type", String)
176
+ ], CustomerProductChangeOfAddressDataEntity.prototype, "googleZip", void 0);
177
+ __decorate([
178
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
179
+ __metadata("design:type", String)
180
+ ], CustomerProductChangeOfAddressDataEntity.prototype, "googleProvince", void 0);
181
+ __decorate([
182
+ (0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
183
+ __metadata("design:type", String)
184
+ ], CustomerProductChangeOfAddressDataEntity.prototype, "addressId", void 0);
185
+ __decorate([
186
+ (0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
187
+ __metadata("design:type", String)
188
+ ], CustomerProductChangeOfAddressDataEntity.prototype, "apartmentId", void 0);
189
+ __decorate([
190
+ (0, typeorm_1.Column)({ type: 'varchar', length: 45, nullable: true, default: null }),
191
+ __metadata("design:type", String)
192
+ ], CustomerProductChangeOfAddressDataEntity.prototype, "createdBy", void 0);
193
+ __decorate([
194
+ (0, typeorm_1.Column)({ type: 'varchar', length: 45, nullable: true, default: null }),
195
+ __metadata("design:type", String)
196
+ ], CustomerProductChangeOfAddressDataEntity.prototype, "createdInChannel", void 0);
197
+ __decorate([
198
+ (0, typeorm_1.Column)({ type: 'datetime', nullable: false, default: 'CURRENT_TIMESTAMP' }),
199
+ __metadata("design:type", Date)
200
+ ], CustomerProductChangeOfAddressDataEntity.prototype, "createdAt", void 0);
201
+ exports.CustomerProductChangeOfAddressDataEntity = CustomerProductChangeOfAddressDataEntity = __decorate([
202
+ (0, typeorm_1.Entity)({ name: 'customer-product-change-of-address-data' })
203
+ ], CustomerProductChangeOfAddressDataEntity);
@@ -0,0 +1,64 @@
1
+ export declare class CustomerProductMultipleTransitionEntity {
2
+ id?: number;
3
+ customerId: string;
4
+ productId: string;
5
+ productName: string;
6
+ productDisplayName: string;
7
+ additionalProductType: string;
8
+ status: string;
9
+ data?: CustomerProductMultipleTransitionDataEntity[];
10
+ steps?: CustomerProductMultipleTransitionStepEntity[];
11
+ transitionGroupId: number;
12
+ transitionFiberBandwidth: string;
13
+ transitionVoipQty: number;
14
+ transitionMobileData: number;
15
+ transitionMobileType: string;
16
+ transitionType: string;
17
+ shoppingCartId: string;
18
+ salesPerson?: string;
19
+ reason?: string;
20
+ targetDate: string;
21
+ chargeDate: string;
22
+ notes?: string;
23
+ createdBy: string;
24
+ createdInChannel: string;
25
+ createdAt?: Date;
26
+ updatedBy?: string;
27
+ updatedInChannel?: string;
28
+ updatedAt?: Date;
29
+ }
30
+ export declare class CustomerProductMultipleTransitionDataEntity {
31
+ id?: number;
32
+ status: string;
33
+ customerProductMultipleTransitionId?: number;
34
+ customerProductMultipleTransition?: CustomerProductMultipleTransitionEntity;
35
+ transitionGroupId: number;
36
+ transitionFiberBandwidth: string;
37
+ transitionVoipQty: number;
38
+ transitionMobileData: number;
39
+ transitionMobileType: string;
40
+ transitionType: string;
41
+ shoppingCartId: string;
42
+ salesPerson?: string;
43
+ reason?: string;
44
+ targetDate: string;
45
+ chargeDate: string;
46
+ notes?: string;
47
+ createdBy: string;
48
+ createdInChannel: string;
49
+ createdAt?: Date;
50
+ }
51
+ export declare class CustomerProductMultipleTransitionStepEntity {
52
+ id?: number;
53
+ customerProductMultipleTransitionId?: number;
54
+ customerProductMultipleTransition?: CustomerProductMultipleTransitionEntity;
55
+ step: number;
56
+ shoppingCartId: string;
57
+ totalProducts: number;
58
+ completedProducts: number;
59
+ relatedProducts: any;
60
+ createdAt?: Date;
61
+ updatedAt?: Date;
62
+ startedAt?: Date;
63
+ completedAt?: Date;
64
+ }