adamo-types 2.1.5 → 2.1.7-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.
- package/dist/common/constants/customer.error.constants.d.ts +1 -0
- package/dist/common/constants/customer.error.constants.js +2 -1
- package/dist/digitel/status-dic.js +1 -3
- package/dist/sys03/aggrupation/aggrupation.constants.d.ts +7 -2
- package/dist/sys03/aggrupation/aggrupation.constants.js +9 -3
- package/dist/sys03/aggrupation/aggrupation.entity.d.ts +12 -9
- package/dist/sys03/aggrupation/aggrupation.entity.js +13 -8
- package/dist/sys03/common/common.entity.d.ts +8 -0
- package/dist/sys03/common/common.entity.js +13 -1
- package/dist/sys03/customer-handover-process/customer-handover-process.entity.d.ts +1 -1
- package/dist/sys03/customer-new-extras-process/customer-new-extras-process.constants.d.ts +2 -0
- package/dist/sys03/customer-new-extras-process/customer-new-extras-process.constants.js +1 -1
- package/dist/sys03/customer-new-extras-process/customer-new-extras-process.entity.d.ts +2 -1
- package/dist/sys03/customer-new-extras-process/customer-new-extras-process.entity.js +1 -1
- package/dist/sys03/customer-product-change-of-address-process/customer-product-change-of-address-process.entity.d.ts +1 -1
- package/dist/sys03/customer-product-deactivation-process/customer-product-deactivation-process.constants.d.ts +2 -0
- package/dist/sys03/customer-product-deactivation-process/customer-product-deactivation-process.constants.js +1 -1
- package/dist/sys03/customer-product-deactivation-process/customer-product-deactivation-process.entity.d.ts +2 -1
- package/dist/sys03/customer-product-deactivation-process/customer-product-deactivation-process.entity.js +1 -1
- package/dist/sys03/customer-product-modification-process/customer-product-modification-process.constants.d.ts +2 -0
- package/dist/sys03/customer-product-modification-process/customer-product-modification-process.constants.js +1 -1
- package/dist/sys03/customer-product-modification-process/customer-product-modification-process.entity.d.ts +2 -1
- package/dist/sys03/customer-product-modification-process/customer-product-modification-process.entity.js +1 -1
- package/dist/sys03/customer-product-multiple-transition-process/customer-product-multiple-transition-process.constants.d.ts +2 -0
- package/dist/sys03/customer-product-multiple-transition-process/customer-product-multiple-transition-process.constants.js +1 -1
- package/dist/sys03/customer-product-multiple-transition-process/customer-product-multiple-transition-process.entity.d.ts +2 -1
- package/dist/sys03/customer-product-multiple-transition-process/customer-product-multiple-transition-process.entity.js +1 -1
- package/dist/sys03/customer-product-transition-process/customer-product-transition-process.constants.d.ts +2 -0
- package/dist/sys03/customer-product-transition-process/customer-product-transition-process.constants.js +1 -1
- package/dist/sys03/customer-product-transition-process/customer-product-transition-process.entity.d.ts +2 -1
- package/dist/sys03/customer-product-transition-process/customer-product-transition-process.entity.js +1 -1
- package/dist/sys03/order-entity-reference/index.d.ts +2 -0
- package/dist/sys03/order-entity-reference/index.js +18 -0
- package/dist/sys03/order-entity-reference/order-entity-reference.constants.d.ts +7 -0
- package/dist/sys03/order-entity-reference/order-entity-reference.constants.js +11 -0
- package/dist/sys03/order-entity-reference/order-entity-reference.entity.d.ts +20 -0
- package/dist/sys03/order-entity-reference/order-entity-reference.entity.js +28 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -56,3 +56,4 @@ export declare const E_REVIEW_CREATED_CUSTOMER_AGRRUPATION_DIRECT_SEND_TO_BSS_WI
|
|
|
56
56
|
export declare const E_CUSTOMERS_TO_CHECK_LIMIT_REACHED = "E_CUSTOMERS_TO_CHECK_LIMIT_REACHED";
|
|
57
57
|
export declare const E_CUSTOMER_HAS_DRAFT_ORDER = "E_CUSTOMER_HAS_DRAFT_ORDER";
|
|
58
58
|
export declare const E_CUSTOMER_HAS_DEBT = "E_CUSTOMER_HAS_DEBT";
|
|
59
|
+
export declare const E_DELETE_CUSTOMER_AGGRUPATION_PROCESS = "E_DELETE_CUSTOMER_AGGRUPATION_PROCESS";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.E_CUSTOMER_TYPE_WITHOUT_BILLING_CYCLE = exports.E_UPLOAD_CUSTOMER_ACCOUNT_DOCUMENT = exports.E_UPDATE_CUSTOMER_POSTAL_AND_BILLING_ADDRESS_FROM_APARTMENT_ID = exports.E_UPDATE_CUSTOMER_ACCOUNT = exports.E_SEARCH_CUSTOMERS = exports.E_REVIEW_CUSTOMER_CHARGES_AND_CREDITS_NEGATIVE_INVOICE = exports.E_REVIEW_CUSTOMER_CHARGES_AND_CREDITS = exports.E_REVIEW_CUSTOMER_AGRRUPATION_DIRECT_SEND_TO_BSS_WITHOUT_SIGNATURE = exports.E_ORDER_NOT_BELONG_TO_CUSTOMER = exports.E_FETCH_CUSTOMERS = exports.E_FETCH_CUSTOMER_WORK_TASKS = exports.E_FETCH_CUSTOMER_PRODUCTS = exports.E_FETCH_CUSTOMER_NOTES = exports.E_FETCH_CUSTOMER_ACCOUNT_FINANCE_BALANCES = exports.E_FETCH_CUSTOMER_ACCOUNT = exports.E_CUSTOMER_WITHOUT_IDENTIFICATION = exports.E_CUSTOMER_WITHOUT_VALID_APARTMENT = exports.E_CUSTOMER_WITHOUT_RELATED_PARTY = exports.E_CUSTOMER_WITHOUT_OWNER_RELATED_PARTY = exports.E_CUSTOMER_UNKNOWN_OWNER_RELATED_PARTY = exports.E_CUSTOMER_PRODUCT_TRANSITION_PROCESS_OWNER_MISMATCHING = exports.E_CUSTOMER_PRODUCT_TRANSITION_PROCESS_ALREADY_EXISTS = exports.E_CUSTOMER_PRODUCT_TERMINATION_PROCESS_OWNER_MISMATCHING = exports.E_CUSTOMER_PRODUCT_MULTIPLE_TRANSITION_PROCESS_WITHOUT_STEPS = exports.E_CUSTOMER_PRODUCT_MULTIPLE_TRANSITION_PROCESS_UNKNOWN_STEP = exports.E_CUSTOMER_PRODUCT_MULTIPLE_TRANSITION_PROCESS_STEP_UNSTARTED = exports.E_CUSTOMER_PRODUCT_MULTIPLE_TRANSITION_PROCESS_ALREADY_EXISTS = exports.E_CUSTOMER_PRODUCT_MODIFICATION_PROCESS_OWNER_MISMATCHING = exports.E_CUSTOMER_PRODUCT_MODIFICATION_PROCESS_ALREADY_EXISTS = exports.E_CUSTOMER_PRODUCT_CHANGE_OF_ADDRESS_WITHOUT_STEPS = exports.E_CUSTOMER_PRODUCT_CHANGE_OF_ADDRESS_PROCESS_VOIP_NUMBER_POOL = exports.E_CUSTOMER_PRODUCT_CHANGE_OF_ADDRESS_PROCESS_UNKNOWN_STEP = exports.E_CUSTOMER_PRODUCT_CHANGE_OF_ADDRESS_PROCESS_STEP_UNSTARTED = exports.E_CUSTOMER_PRODUCT_CHANGE_OF_ADDRESS_PROCESS_INVALID_PRODUCT = exports.E_CUSTOMER_PRODUCT_CHANGE_OF_ADDRESS_PROCESS_FORBIDDEN_STATUS = exports.E_CUSTOMER_PRODUCT_CHANGE_OF_ADDRESS_PROCESS_ALREADY_EXISTS = exports.E_CUSTOMER_ORGANIZATION_OWNER_WITHOUT_CONTACT_PARTY = exports.E_CUSTOMER_NEW_EXTRAS_PROCESS_OWNER_MISMATCHING = exports.E_CUSTOMER_NEW_EXTRAS_PROCESS_ALREADY_EXISTS = exports.E_CUSTOMER_HAS_ALL_EXTRAS = exports.E_CUSTOMER_HANDOVER_PROCESS_STEP_UNSTARTED = exports.E_CUSTOMER_HANDOVER_EXISTS_WITH_STATUS = exports.E_CUSTOMER_CHECK_DEBT = exports.E_CUSTOMER_AGGRUPATION_UNHAPPY_RUNNING = exports.E_CUSTOMER_AGGRUPATION_HAPPY_RUNNING = exports.E_CREATE_CUSTOMER_PRODUCT_CHANGE_OF_ADDRESS_PROCESS = exports.E_CREATE_CUSTOMER_ACCOUNT_PRODUCT_TRANSFER = exports.E_CREATE_CUSTOMER_ACCOUNT_NOTE = exports.E_CREATE_CUSTOMER_ACCOUNT_HISTORY = exports.E_CREATE_CUSTOMER_ACCOUNT = void 0;
|
|
4
|
-
exports.E_CUSTOMER_HAS_DEBT = exports.E_CUSTOMER_HAS_DRAFT_ORDER = exports.E_CUSTOMERS_TO_CHECK_LIMIT_REACHED = exports.E_REVIEW_CREATED_CUSTOMER_AGRRUPATION_DIRECT_SEND_TO_BSS_WITHOUT_SIGNATURE = exports.E_REVIEW_CUSTOMER_AGRRUPATION_DIRECT_SEND_TO_BSS_MULTIPLE_FIBER_BUNDLES = exports.E_REVIEW_CUSTOMER_AGRRUPATION_DIRECT_SEND_TO_BSS_DEACTIVATE = exports.E_REVIEW_MULTIPLE_FIBER_BUNDLES_CUSTOMER_AGRRUPATION_CREATED_DIRECT_SEND_TO_BSS = exports.E_REVIEW_DEACTIVATE_CUSTOMER_AGRRUPATION_CREATED_DIRECT_SEND_TO_BSS = void 0;
|
|
4
|
+
exports.E_DELETE_CUSTOMER_AGGRUPATION_PROCESS = exports.E_CUSTOMER_HAS_DEBT = exports.E_CUSTOMER_HAS_DRAFT_ORDER = exports.E_CUSTOMERS_TO_CHECK_LIMIT_REACHED = exports.E_REVIEW_CREATED_CUSTOMER_AGRRUPATION_DIRECT_SEND_TO_BSS_WITHOUT_SIGNATURE = exports.E_REVIEW_CUSTOMER_AGRRUPATION_DIRECT_SEND_TO_BSS_MULTIPLE_FIBER_BUNDLES = exports.E_REVIEW_CUSTOMER_AGRRUPATION_DIRECT_SEND_TO_BSS_DEACTIVATE = exports.E_REVIEW_MULTIPLE_FIBER_BUNDLES_CUSTOMER_AGRRUPATION_CREATED_DIRECT_SEND_TO_BSS = exports.E_REVIEW_DEACTIVATE_CUSTOMER_AGRRUPATION_CREATED_DIRECT_SEND_TO_BSS = void 0;
|
|
5
5
|
exports.E_CREATE_CUSTOMER_ACCOUNT = 'E_CREATE_CUSTOMER_ACCOUNT';
|
|
6
6
|
exports.E_CREATE_CUSTOMER_ACCOUNT_HISTORY = 'E_CREATE_CUSTOMER_ACCOUNT_HISTORY';
|
|
7
7
|
exports.E_CREATE_CUSTOMER_ACCOUNT_NOTE = 'E_CREATE_CUSTOMER_ACCOUNT_NOTE';
|
|
@@ -60,3 +60,4 @@ exports.E_REVIEW_CREATED_CUSTOMER_AGRRUPATION_DIRECT_SEND_TO_BSS_WITHOUT_SIGNATU
|
|
|
60
60
|
exports.E_CUSTOMERS_TO_CHECK_LIMIT_REACHED = 'E_CUSTOMERS_TO_CHECK_LIMIT_REACHED';
|
|
61
61
|
exports.E_CUSTOMER_HAS_DRAFT_ORDER = 'E_CUSTOMER_HAS_DRAFT_ORDER';
|
|
62
62
|
exports.E_CUSTOMER_HAS_DEBT = 'E_CUSTOMER_HAS_DEBT';
|
|
63
|
+
exports.E_DELETE_CUSTOMER_AGGRUPATION_PROCESS = 'E_DELETE_CUSTOMER_AGGRUPATION_PROCESS';
|
|
@@ -38,7 +38,5 @@ exports.DigitelExtensionsStatusDic = {
|
|
|
38
38
|
Success: aggrupation_1.AggrupationStatus.DIGITEL_SUCCESS,
|
|
39
39
|
Expired: aggrupation_1.AggrupationStatus.DIGITEL_EXPIRED,
|
|
40
40
|
Canceled: aggrupation_1.AggrupationStatus.DIGITEL_CANCELLED,
|
|
41
|
-
Rejected: aggrupation_1.AggrupationStatus.DIGITEL_REJECTED
|
|
42
|
-
processed: aggrupation_1.AggrupationStatus.PROCESSED,
|
|
43
|
-
completed: aggrupation_1.AggrupationStatus.COMPLETED
|
|
41
|
+
Rejected: aggrupation_1.AggrupationStatus.DIGITEL_REJECTED
|
|
44
42
|
};
|
|
@@ -19,8 +19,13 @@ export declare enum AggrupationStatus {
|
|
|
19
19
|
DIGITEL_SMS_SENT = "digitel-msg-sent",
|
|
20
20
|
DIGITEL_SUCCESS = "digitel-success",
|
|
21
21
|
CUSTOMER_ACCOUNT_DOCUMENTS_HANDLED = "customer-account-documents-handled",
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
PROCESSES_SENT = "processes-sent",
|
|
23
|
+
COMPLETED = "completed"
|
|
24
|
+
}
|
|
25
|
+
export declare enum AggrupationProcessStatus {
|
|
26
|
+
GROUPED = "grouped",
|
|
27
|
+
BROKEN = "broken",
|
|
28
|
+
SENT = "sent",
|
|
24
29
|
COMPLETED = "completed"
|
|
25
30
|
}
|
|
26
31
|
export declare const AGRUPATION_DISABLED_STATUS_CREATION: AggrupationStatus[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AGRUPATION_ENABLED_STATUS_CREATION = exports.AGRUPATION_DISABLED_STATUS_CREATION = exports.AggrupationStatus = void 0;
|
|
3
|
+
exports.AGRUPATION_ENABLED_STATUS_CREATION = exports.AGRUPATION_DISABLED_STATUS_CREATION = exports.AggrupationProcessStatus = exports.AggrupationStatus = void 0;
|
|
4
4
|
var AggrupationStatus;
|
|
5
5
|
(function (AggrupationStatus) {
|
|
6
6
|
AggrupationStatus["FRESH"] = "fresh";
|
|
@@ -23,10 +23,16 @@ var AggrupationStatus;
|
|
|
23
23
|
AggrupationStatus["DIGITEL_SMS_SENT"] = "digitel-msg-sent";
|
|
24
24
|
AggrupationStatus["DIGITEL_SUCCESS"] = "digitel-success";
|
|
25
25
|
AggrupationStatus["CUSTOMER_ACCOUNT_DOCUMENTS_HANDLED"] = "customer-account-documents-handled";
|
|
26
|
-
AggrupationStatus["
|
|
27
|
-
AggrupationStatus["UNPROCESSED"] = "unprocessed";
|
|
26
|
+
AggrupationStatus["PROCESSES_SENT"] = "processes-sent";
|
|
28
27
|
AggrupationStatus["COMPLETED"] = "completed";
|
|
29
28
|
})(AggrupationStatus || (exports.AggrupationStatus = AggrupationStatus = {}));
|
|
29
|
+
var AggrupationProcessStatus;
|
|
30
|
+
(function (AggrupationProcessStatus) {
|
|
31
|
+
AggrupationProcessStatus["GROUPED"] = "grouped";
|
|
32
|
+
AggrupationProcessStatus["BROKEN"] = "broken";
|
|
33
|
+
AggrupationProcessStatus["SENT"] = "sent";
|
|
34
|
+
AggrupationProcessStatus["COMPLETED"] = "completed";
|
|
35
|
+
})(AggrupationProcessStatus || (exports.AggrupationProcessStatus = AggrupationProcessStatus = {}));
|
|
30
36
|
exports.AGRUPATION_DISABLED_STATUS_CREATION = [
|
|
31
37
|
AggrupationStatus.DIGITEL_CERTIFICATION,
|
|
32
38
|
AggrupationStatus.DIGITEL_CREATED,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CustomerProcessType } from '../../bss/customer/customer.constants';
|
|
2
2
|
import { PaginationQueryDto } from '../../common/common.entity';
|
|
3
|
-
import { ArsDocumentDto, AuditFieldsDto, GenericFileDto } from '../common';
|
|
4
|
-
import { AggrupationStatus } from './aggrupation.constants';
|
|
3
|
+
import { ArsDocumentDto, AuditFieldsDto, CreateAuditFieldsDto, GenericFileDto } from '../common';
|
|
4
|
+
import { AggrupationProcessStatus, AggrupationStatus } from './aggrupation.constants';
|
|
5
5
|
import { DigitelCircuitType } from '../../bss/constants';
|
|
6
6
|
export declare class AggrupationDto {
|
|
7
7
|
id?: number;
|
|
@@ -18,19 +18,21 @@ export declare class AggrupationDto {
|
|
|
18
18
|
updated?: AuditFieldsDto;
|
|
19
19
|
}
|
|
20
20
|
export declare class AggrupationProcessDto {
|
|
21
|
-
id
|
|
21
|
+
id: number;
|
|
22
22
|
aggrupationId: number;
|
|
23
|
+
aggrupation?: AggrupationDto;
|
|
23
24
|
customerProcessId: number;
|
|
24
25
|
customerProcessType: CustomerProcessType;
|
|
26
|
+
status?: AggrupationProcessStatus;
|
|
25
27
|
created: AuditFieldsDto;
|
|
26
|
-
updated: AuditFieldsDto;
|
|
27
28
|
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
declare const CreateAggrupationProcessDto_base: import("@nestjs/common").Type<Pick<AggrupationProcessDto, "aggrupationId" | "customerProcessId" | "customerProcessType">>;
|
|
30
|
+
export declare class CreateAggrupationProcessDto extends CreateAggrupationProcessDto_base {
|
|
31
|
+
status: AggrupationProcessStatus;
|
|
32
|
+
created: CreateAuditFieldsDto;
|
|
31
33
|
}
|
|
32
|
-
export declare class
|
|
33
|
-
|
|
34
|
+
export declare class PatchAggrupationProcessDto {
|
|
35
|
+
status: AggrupationProcessStatus;
|
|
34
36
|
}
|
|
35
37
|
export declare class AggrupationFilterDto {
|
|
36
38
|
customerId?: string;
|
|
@@ -48,3 +50,4 @@ export declare class ArsAggrupationDocumentDto extends ArsDocumentDto {
|
|
|
48
50
|
comment?: string;
|
|
49
51
|
transactionId?: string;
|
|
50
52
|
}
|
|
53
|
+
export {};
|
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.ArsAggrupationDocumentDto = exports.DashboardAggrupationFilterDto = exports.AggrupationFilterDto = exports.
|
|
12
|
+
exports.ArsAggrupationDocumentDto = exports.DashboardAggrupationFilterDto = exports.AggrupationFilterDto = exports.PatchAggrupationProcessDto = exports.CreateAggrupationProcessDto = exports.AggrupationProcessDto = exports.AggrupationDto = void 0;
|
|
13
13
|
const openapi = require("@nestjs/swagger");
|
|
14
14
|
const common_entity_1 = require("../../common/common.entity");
|
|
15
15
|
const common_1 = require("../common");
|
|
@@ -18,6 +18,7 @@ const aggrupation_constants_1 = require("./aggrupation.constants");
|
|
|
18
18
|
const _validators_1 = require("../../validators/index");
|
|
19
19
|
const constants_1 = require("../../bss/constants");
|
|
20
20
|
const class_transformer_1 = require("class-transformer");
|
|
21
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
21
22
|
class AggrupationDto {
|
|
22
23
|
static _OPENAPI_METADATA_FACTORY() {
|
|
23
24
|
return { id: { required: false, type: () => Number }, customerId: { required: true, type: () => String }, status: { required: false, enum: require("./aggrupation.constants").AggrupationStatus }, shoppingCartId: { required: false, type: () => String }, channel: { required: true, type: () => String }, customerVulnerable: { required: true, type: () => Boolean }, digitelCircuitType: { required: true, enum: require("../../bss/constants/bp.constants").DigitelCircuitType }, contractId: { required: false, type: () => String }, contractUrl: { required: false, type: () => String }, files: { required: false, type: () => [require("../common/common.entity").GenericFileDto] }, created: { required: true, type: () => require("../common/common.entity").AuditFieldsDto }, updated: { required: false, type: () => require("../common/common.entity").AuditFieldsDto } };
|
|
@@ -81,22 +82,26 @@ __decorate([
|
|
|
81
82
|
], AggrupationDto.prototype, "files", void 0);
|
|
82
83
|
class AggrupationProcessDto {
|
|
83
84
|
static _OPENAPI_METADATA_FACTORY() {
|
|
84
|
-
return { id: { required:
|
|
85
|
+
return { id: { required: true, type: () => Number }, aggrupationId: { required: true, type: () => Number }, aggrupation: { required: false, type: () => require("./aggrupation.entity").AggrupationDto }, customerProcessId: { required: true, type: () => Number }, customerProcessType: { required: true, enum: require("../../bss/customer/customer.constants").CustomerProcessType }, status: { required: false, enum: require("./aggrupation.constants").AggrupationProcessStatus }, created: { required: true, type: () => require("../common/common.entity").AuditFieldsDto } };
|
|
85
86
|
}
|
|
86
87
|
}
|
|
87
88
|
exports.AggrupationProcessDto = AggrupationProcessDto;
|
|
88
|
-
class
|
|
89
|
+
class CreateAggrupationProcessDto extends (0, swagger_1.PickType)(AggrupationProcessDto, [
|
|
90
|
+
'aggrupationId',
|
|
91
|
+
'customerProcessId',
|
|
92
|
+
'customerProcessType'
|
|
93
|
+
]) {
|
|
89
94
|
static _OPENAPI_METADATA_FACTORY() {
|
|
90
|
-
return {
|
|
95
|
+
return { status: { required: true, enum: require("./aggrupation.constants").AggrupationProcessStatus }, created: { required: true, type: () => require("../common/common.entity").CreateAuditFieldsDto } };
|
|
91
96
|
}
|
|
92
97
|
}
|
|
93
|
-
exports.
|
|
94
|
-
class
|
|
98
|
+
exports.CreateAggrupationProcessDto = CreateAggrupationProcessDto;
|
|
99
|
+
class PatchAggrupationProcessDto {
|
|
95
100
|
static _OPENAPI_METADATA_FACTORY() {
|
|
96
|
-
return {
|
|
101
|
+
return { status: { required: true, enum: require("./aggrupation.constants").AggrupationProcessStatus } };
|
|
97
102
|
}
|
|
98
103
|
}
|
|
99
|
-
exports.
|
|
104
|
+
exports.PatchAggrupationProcessDto = PatchAggrupationProcessDto;
|
|
100
105
|
class AggrupationFilterDto {
|
|
101
106
|
static _OPENAPI_METADATA_FACTORY() {
|
|
102
107
|
return { customerId: { required: false, type: () => String }, status: { required: true, enum: require("./aggrupation.constants").AggrupationStatus } };
|
|
@@ -30,6 +30,14 @@ export declare class CustomerProcessStepRelatedProductDto {
|
|
|
30
30
|
name: string;
|
|
31
31
|
originalId?: string;
|
|
32
32
|
}
|
|
33
|
+
export declare class CustomerProcessOrderDto {
|
|
34
|
+
id: string;
|
|
35
|
+
completedAt?: Date;
|
|
36
|
+
cancelledAt?: Date;
|
|
37
|
+
}
|
|
38
|
+
declare const UpdateCustomerProcessOrderDto_base: import("@nestjs/common").Type<Pick<CustomerProcessOrderDto, "completedAt" | "cancelledAt">>;
|
|
39
|
+
export declare class UpdateCustomerProcessOrderDto extends UpdateCustomerProcessOrderDto_base {
|
|
40
|
+
}
|
|
33
41
|
export declare class CustomerProductTransitionProcessTransitionDto implements CustomerProductTransitionCombinationDto {
|
|
34
42
|
groupId: number;
|
|
35
43
|
fiber?: CheckProductTransitionGroupOptionFiberDto;
|
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.CreditBureauValidationProcessDto = exports.CreditBureauValidationCacheDto = exports.CreditBureauValidationIdentificationDto = exports.ArsDocumentDto = exports.GenericFileDto = exports.CustomerProductTransitionProcessTransitionDto = exports.CustomerProcessStepRelatedProductDto = exports.CustomerProductActionProcessProductDto = exports.ProcessAuditFieldsDto = exports.AuditFieldsWithValueDto = exports.AuditFieldsDtoBuilder = exports.CreateAuditFieldsDto = exports.AuditFieldsDto = void 0;
|
|
12
|
+
exports.CreditBureauValidationProcessDto = exports.CreditBureauValidationCacheDto = exports.CreditBureauValidationIdentificationDto = exports.ArsDocumentDto = exports.GenericFileDto = exports.CustomerProductTransitionProcessTransitionDto = exports.UpdateCustomerProcessOrderDto = exports.CustomerProcessOrderDto = exports.CustomerProcessStepRelatedProductDto = exports.CustomerProductActionProcessProductDto = exports.ProcessAuditFieldsDto = exports.AuditFieldsWithValueDto = exports.AuditFieldsDtoBuilder = exports.CreateAuditFieldsDto = exports.AuditFieldsDto = void 0;
|
|
13
13
|
const openapi = require("@nestjs/swagger");
|
|
14
14
|
const helpers_1 = require("../../common/helpers/helpers");
|
|
15
15
|
const faker_1 = require("@faker-js/faker");
|
|
@@ -64,6 +64,18 @@ class CustomerProcessStepRelatedProductDto {
|
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
exports.CustomerProcessStepRelatedProductDto = CustomerProcessStepRelatedProductDto;
|
|
67
|
+
class CustomerProcessOrderDto {
|
|
68
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
69
|
+
return { id: { required: true, type: () => String }, completedAt: { required: false, type: () => Date }, cancelledAt: { required: false, type: () => Date } };
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
exports.CustomerProcessOrderDto = CustomerProcessOrderDto;
|
|
73
|
+
class UpdateCustomerProcessOrderDto extends (0, swagger_1.PickType)(CustomerProcessOrderDto, ['completedAt', 'cancelledAt']) {
|
|
74
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
75
|
+
return {};
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
exports.UpdateCustomerProcessOrderDto = UpdateCustomerProcessOrderDto;
|
|
67
79
|
class CustomerProductTransitionProcessTransitionDto {
|
|
68
80
|
static _OPENAPI_METADATA_FACTORY() {
|
|
69
81
|
return { groupId: { required: true, type: () => Number }, fiber: { required: false, type: () => require("../updowngrade/product-transition-group.entity").CheckProductTransitionGroupOptionFiberDto }, mobile: { required: true, type: () => require("../updowngrade/product-transition-group.entity").CheckProductTransitionGroupOptionMobileDto }, voip: { required: true, type: () => require("../updowngrade/product-transition-group.entity").CheckProductTransitionGroupOptionVoipDto }, type: { required: false, enum: require("./common.constants").CustomerProductTransitionProcessTransitionType } };
|
|
@@ -24,7 +24,7 @@ export declare class CustomerHandoverProcessStepDto {
|
|
|
24
24
|
declare const CreateCustomerHandoverProcessStepDto_base: import("@nestjs/common").Type<Pick<CustomerHandoverProcessStepDto, "shoppingCartId" | "customerHandoverProcessId" | "step" | "totalProducts">>;
|
|
25
25
|
export declare class CreateCustomerHandoverProcessStepDto extends CreateCustomerHandoverProcessStepDto_base {
|
|
26
26
|
}
|
|
27
|
-
declare const PatchCustomerHandoverProcessStepDto_base: import("@nestjs/common").Type<Pick<CustomerHandoverProcessStepDto, "
|
|
27
|
+
declare const PatchCustomerHandoverProcessStepDto_base: import("@nestjs/common").Type<Pick<CustomerHandoverProcessStepDto, "completedAt" | "completedProducts" | "relatedProducts" | "startedAt">>;
|
|
28
28
|
export declare class PatchCustomerHandoverProcessStepDto extends PatchCustomerHandoverProcessStepDto_base {
|
|
29
29
|
}
|
|
30
30
|
export declare class CustomerHandoverProcessStepCacheDto {
|
|
@@ -7,6 +7,8 @@ export declare const CustomerNewExtrasProcessStatus: {
|
|
|
7
7
|
readonly SHOPPING_CART_CONFIGURED: "shopping-cart-configured";
|
|
8
8
|
readonly SHOPPING_CART_SAVED: "shopping-cart-saved";
|
|
9
9
|
readonly ORDER_DATA_SAVED: "order-data-saved";
|
|
10
|
+
readonly ORDER_SENT: "order-sent";
|
|
11
|
+
readonly ORDER_CANCELLED: "order-cancelled";
|
|
10
12
|
readonly COMPLETED: "completed";
|
|
11
13
|
};
|
|
12
14
|
export type AllCustomerNewExtrasProcessStatus = (typeof CustomerNewExtrasProcessStatus)[keyof typeof CustomerNewExtrasProcessStatus];
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CustomerNewExtrasProcessStatus = void 0;
|
|
4
4
|
const customer_product_constants_1 = require("../customer/customer-product.constants");
|
|
5
|
-
exports.CustomerNewExtrasProcessStatus = Object.assign({ FRESH: 'fresh', EXTRAS_SELECTED: 'extras-selected', FEATURES_SELECTED: 'features-selected', SHOPPING_CART_CONFIGURED: 'shopping-cart-configured', SHOPPING_CART_SAVED: 'shopping-cart-saved', ORDER_DATA_SAVED: 'order-data-saved', COMPLETED: 'completed' }, customer_product_constants_1.CustomerProductProcessStatus);
|
|
5
|
+
exports.CustomerNewExtrasProcessStatus = Object.assign({ FRESH: 'fresh', EXTRAS_SELECTED: 'extras-selected', FEATURES_SELECTED: 'features-selected', SHOPPING_CART_CONFIGURED: 'shopping-cart-configured', SHOPPING_CART_SAVED: 'shopping-cart-saved', ORDER_DATA_SAVED: 'order-data-saved', ORDER_SENT: 'order-sent', ORDER_CANCELLED: 'order-cancelled', COMPLETED: 'completed' }, customer_product_constants_1.CustomerProductProcessStatus);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AllCustomerNewExtrasProcessStatus } from './customer-new-extras-process.constants';
|
|
2
|
-
import { ProcessAuditFieldsDto } from '../common';
|
|
2
|
+
import { CustomerProcessOrderDto, ProcessAuditFieldsDto } from '../common';
|
|
3
3
|
export declare class CreateCustomerNewExtrasProcessDto {
|
|
4
4
|
customerId: string;
|
|
5
5
|
shoppingCartId: string;
|
|
@@ -22,6 +22,7 @@ export declare class CustomerNewExtrasProcessDto {
|
|
|
22
22
|
id?: number;
|
|
23
23
|
customerId: string;
|
|
24
24
|
shoppingCartId?: string;
|
|
25
|
+
order?: CustomerProcessOrderDto;
|
|
25
26
|
status: AllCustomerNewExtrasProcessStatus;
|
|
26
27
|
salesPerson?: string;
|
|
27
28
|
targetDate?: string;
|
|
@@ -97,7 +97,7 @@ __decorate([
|
|
|
97
97
|
], PatchCustomerNewExtrasProcessOrderDataSavedDto.prototype, "notes", void 0);
|
|
98
98
|
class CustomerNewExtrasProcessDto {
|
|
99
99
|
static _OPENAPI_METADATA_FACTORY() {
|
|
100
|
-
return { id: { required: false, type: () => Number }, customerId: { required: true, type: () => String }, shoppingCartId: { required: false, type: () => String }, status: { required: true, type: () => Object }, salesPerson: { required: false, type: () => String }, targetDate: { required: false, type: () => String }, chargeDate: { required: false, type: () => String }, notes: { required: false, type: () => String }, created: { required: true, type: () => require("../common/common.entity").ProcessAuditFieldsDto }, updated: { required: true, type: () => require("../common/common.entity").ProcessAuditFieldsDto } };
|
|
100
|
+
return { id: { required: false, type: () => Number }, customerId: { required: true, type: () => String }, shoppingCartId: { required: false, type: () => String }, order: { required: false, type: () => require("../common/common.entity").CustomerProcessOrderDto }, status: { required: true, type: () => Object }, salesPerson: { required: false, type: () => String }, targetDate: { required: false, type: () => String }, chargeDate: { required: false, type: () => String }, notes: { required: false, type: () => String }, created: { required: true, type: () => require("../common/common.entity").ProcessAuditFieldsDto }, updated: { required: true, type: () => require("../common/common.entity").ProcessAuditFieldsDto } };
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
103
|
exports.CustomerNewExtrasProcessDto = CustomerNewExtrasProcessDto;
|
|
@@ -17,7 +17,7 @@ export declare class CustomerProductChangeOfAddressProcessStepDto {
|
|
|
17
17
|
declare const CreateCustomerProductChangeOfAddressProcessStepDto_base: import("@nestjs/common").Type<Pick<CustomerProductChangeOfAddressProcessStepDto, "shoppingCartId" | "step" | "totalProducts">>;
|
|
18
18
|
export declare class CreateCustomerProductChangeOfAddressProcessStepDto extends CreateCustomerProductChangeOfAddressProcessStepDto_base {
|
|
19
19
|
}
|
|
20
|
-
declare const UpdateCustomerProductChangeOfAddressProcessStepDto_base: import("@nestjs/common").Type<Pick<CustomerProductChangeOfAddressProcessStepDto, "
|
|
20
|
+
declare const UpdateCustomerProductChangeOfAddressProcessStepDto_base: import("@nestjs/common").Type<Pick<CustomerProductChangeOfAddressProcessStepDto, "completedAt" | "completedProducts" | "relatedProducts" | "startedAt">>;
|
|
21
21
|
export declare class UpdateCustomerProductChangeOfAddressProcessStepDto extends UpdateCustomerProductChangeOfAddressProcessStepDto_base {
|
|
22
22
|
}
|
|
23
23
|
export declare class CustomerProductChangeOfAddressProcessIntermediateProductDto {
|
|
@@ -2,6 +2,8 @@ export declare const CustomerProductDeactivationProcessStatus: {
|
|
|
2
2
|
readonly READY_TO_GROUP: "ready-to-group";
|
|
3
3
|
readonly GROUPED: "grouped";
|
|
4
4
|
readonly FRESH: "fresh";
|
|
5
|
+
readonly ORDER_SENT: "order-sent";
|
|
6
|
+
readonly ORDER_CANCELLED: "order-cancelled";
|
|
5
7
|
readonly COMPLETED: "completed";
|
|
6
8
|
};
|
|
7
9
|
export type AllCustomerProductDeactivationProcessStatus = (typeof CustomerProductDeactivationProcessStatus)[keyof typeof CustomerProductDeactivationProcessStatus];
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CustomerProductDeactivationProcessStatus = void 0;
|
|
4
4
|
const customer_product_constants_1 = require("../customer/customer-product.constants");
|
|
5
|
-
exports.CustomerProductDeactivationProcessStatus = Object.assign({ FRESH: 'fresh', COMPLETED: 'completed' }, customer_product_constants_1.CustomerProductProcessStatus);
|
|
5
|
+
exports.CustomerProductDeactivationProcessStatus = Object.assign({ FRESH: 'fresh', ORDER_SENT: 'order-sent', ORDER_CANCELLED: 'order-cancelled', COMPLETED: 'completed' }, customer_product_constants_1.CustomerProductProcessStatus);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AllCustomerProductDeactivationProcessStatus } from './customer-product-deactivation-process.constants';
|
|
2
|
-
import { ProcessAuditFieldsDto, CustomerProductActionProcessProductDto } from '../common';
|
|
2
|
+
import { ProcessAuditFieldsDto, CustomerProductActionProcessProductDto, CustomerProcessOrderDto } from '../common';
|
|
3
3
|
export declare class CustomerProductSendDeactivationProcessDto {
|
|
4
4
|
reason: string;
|
|
5
5
|
targetDate: string;
|
|
@@ -29,6 +29,7 @@ export declare class CustomerProductDeactivationProcessDto {
|
|
|
29
29
|
customerId: string;
|
|
30
30
|
product: CustomerProductActionProcessProductDto;
|
|
31
31
|
shoppingCartId?: string;
|
|
32
|
+
order?: CustomerProcessOrderDto;
|
|
32
33
|
status: AllCustomerProductDeactivationProcessStatus;
|
|
33
34
|
salesPerson?: string;
|
|
34
35
|
targetDate?: string;
|
|
@@ -129,7 +129,7 @@ __decorate([
|
|
|
129
129
|
], PatchCustomerProductDeactivationProcessOrderDataSavedDto.prototype, "notes", void 0);
|
|
130
130
|
class CustomerProductDeactivationProcessDto {
|
|
131
131
|
static _OPENAPI_METADATA_FACTORY() {
|
|
132
|
-
return { id: { required: false, type: () => Number }, customerId: { required: true, type: () => String }, product: { required: true, type: () => require("../common/common.entity").CustomerProductActionProcessProductDto }, shoppingCartId: { required: false, type: () => String }, status: { required: true, type: () => Object }, salesPerson: { required: false, type: () => String }, targetDate: { required: false, type: () => String }, chargeDate: { required: false, type: () => String }, notes: { required: false, type: () => String }, reason: { required: true, type: () => String }, created: { required: true, type: () => require("../common/common.entity").ProcessAuditFieldsDto }, updated: { required: true, type: () => require("../common/common.entity").ProcessAuditFieldsDto } };
|
|
132
|
+
return { id: { required: false, type: () => Number }, customerId: { required: true, type: () => String }, product: { required: true, type: () => require("../common/common.entity").CustomerProductActionProcessProductDto }, shoppingCartId: { required: false, type: () => String }, order: { required: false, type: () => require("../common/common.entity").CustomerProcessOrderDto }, status: { required: true, type: () => Object }, salesPerson: { required: false, type: () => String }, targetDate: { required: false, type: () => String }, chargeDate: { required: false, type: () => String }, notes: { required: false, type: () => String }, reason: { required: true, type: () => String }, created: { required: true, type: () => require("../common/common.entity").ProcessAuditFieldsDto }, updated: { required: true, type: () => require("../common/common.entity").ProcessAuditFieldsDto } };
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
135
|
exports.CustomerProductDeactivationProcessDto = CustomerProductDeactivationProcessDto;
|
|
@@ -7,6 +7,8 @@ export declare const CustomerProductModificationProcessStatus: {
|
|
|
7
7
|
readonly SHOPPING_CART_CONFIGURED: "shopping-cart-configured";
|
|
8
8
|
readonly SHOPPING_CART_SAVED: "shopping-cart-saved";
|
|
9
9
|
readonly ORDER_DATA_SAVED: "order-data-saved";
|
|
10
|
+
readonly ORDER_SENT: "order-sent";
|
|
11
|
+
readonly ORDER_CANCELLED: "order-cancelled";
|
|
10
12
|
readonly COMPLETED: "completed";
|
|
11
13
|
};
|
|
12
14
|
export type AllCustomerProductModificationProcessStatus = (typeof CustomerProductModificationProcessStatus)[keyof typeof CustomerProductModificationProcessStatus];
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CustomerProductModificationProcessStatus = void 0;
|
|
4
4
|
const customer_product_constants_1 = require("../customer/customer-product.constants");
|
|
5
|
-
exports.CustomerProductModificationProcessStatus = Object.assign({ FRESH: 'fresh', MODIFICATION_SELECTED: 'modification-selected', FEATURES_SELECTED: 'features-selected', SHOPPING_CART_CONFIGURED: 'shopping-cart-configured', SHOPPING_CART_SAVED: 'shopping-cart-saved', ORDER_DATA_SAVED: 'order-data-saved', COMPLETED: 'completed' }, customer_product_constants_1.CustomerProductProcessStatus);
|
|
5
|
+
exports.CustomerProductModificationProcessStatus = Object.assign({ FRESH: 'fresh', MODIFICATION_SELECTED: 'modification-selected', FEATURES_SELECTED: 'features-selected', SHOPPING_CART_CONFIGURED: 'shopping-cart-configured', SHOPPING_CART_SAVED: 'shopping-cart-saved', ORDER_DATA_SAVED: 'order-data-saved', ORDER_SENT: 'order-sent', ORDER_CANCELLED: 'order-cancelled', COMPLETED: 'completed' }, customer_product_constants_1.CustomerProductProcessStatus);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AllCustomerProductModificationProcessStatus } from './customer-product-modification-process.constants';
|
|
2
|
-
import { ProcessAuditFieldsDto, CustomerProductActionProcessProductDto } from '../common';
|
|
2
|
+
import { ProcessAuditFieldsDto, CustomerProductActionProcessProductDto, CustomerProcessOrderDto } from '../common';
|
|
3
3
|
export declare class CreateCustomerProductModificationProcessDto {
|
|
4
4
|
productId: string;
|
|
5
5
|
shoppingCartId: string;
|
|
@@ -23,6 +23,7 @@ export declare class CustomerProductModificationProcessDto {
|
|
|
23
23
|
customerId: string;
|
|
24
24
|
product: CustomerProductActionProcessProductDto;
|
|
25
25
|
shoppingCartId?: string;
|
|
26
|
+
order?: CustomerProcessOrderDto;
|
|
26
27
|
status: AllCustomerProductModificationProcessStatus;
|
|
27
28
|
salesPerson?: string;
|
|
28
29
|
targetDate?: string;
|
|
@@ -97,7 +97,7 @@ __decorate([
|
|
|
97
97
|
], PatchCustomerProductModificationProcessOrderDataSavedDto.prototype, "notes", void 0);
|
|
98
98
|
class CustomerProductModificationProcessDto {
|
|
99
99
|
static _OPENAPI_METADATA_FACTORY() {
|
|
100
|
-
return { id: { required: false, type: () => Number }, customerId: { required: true, type: () => String }, product: { required: true, type: () => require("../common/common.entity").CustomerProductActionProcessProductDto }, shoppingCartId: { required: false, type: () => String }, status: { required: true, type: () => Object }, salesPerson: { required: false, type: () => String }, targetDate: { required: false, type: () => String }, chargeDate: { required: false, type: () => String }, notes: { required: false, type: () => String }, created: { required: true, type: () => require("../common/common.entity").ProcessAuditFieldsDto }, updated: { required: true, type: () => require("../common/common.entity").ProcessAuditFieldsDto } };
|
|
100
|
+
return { id: { required: false, type: () => Number }, customerId: { required: true, type: () => String }, product: { required: true, type: () => require("../common/common.entity").CustomerProductActionProcessProductDto }, shoppingCartId: { required: false, type: () => String }, order: { required: false, type: () => require("../common/common.entity").CustomerProcessOrderDto }, status: { required: true, type: () => Object }, salesPerson: { required: false, type: () => String }, targetDate: { required: false, type: () => String }, chargeDate: { required: false, type: () => String }, notes: { required: false, type: () => String }, created: { required: true, type: () => require("../common/common.entity").ProcessAuditFieldsDto }, updated: { required: true, type: () => require("../common/common.entity").ProcessAuditFieldsDto } };
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
103
|
exports.CustomerProductModificationProcessDto = CustomerProductModificationProcessDto;
|
|
@@ -10,6 +10,8 @@ export declare const CustomerProductMultipleTransitionProcessStatus: {
|
|
|
10
10
|
readonly UNBUNDLE_STEP: "unbundle-step";
|
|
11
11
|
readonly DELETE_STEP: "delete-step";
|
|
12
12
|
readonly BUNDLE_STEP: "bundle-step";
|
|
13
|
+
readonly LAST_ORDER_SENT: "last-order-sent";
|
|
14
|
+
readonly LAST_ORDER_CANCELLED: "last-order-cancelled";
|
|
13
15
|
readonly COMPLETED: "completed";
|
|
14
16
|
readonly BROKEN: "broken";
|
|
15
17
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CustomerProductTransitionStepToCustomerProductMultipleTransitionProcessStatus = exports.CustomerProductTransitionStep = exports.CustomerProductMultipleTransitionProcessAdditionalProductType = exports.CustomerProductMultipleTransitionProcessStatus = void 0;
|
|
4
4
|
const customer_product_constants_1 = require("../customer/customer-product.constants");
|
|
5
|
-
exports.CustomerProductMultipleTransitionProcessStatus = Object.assign({ FRESH: 'fresh', TRANSITION_SELECTED: 'transition-selected', FEATURES_SELECTED: 'features-selected', SHOPPING_CART_CONFIGURED: 'shopping-cart-configured', SHOPPING_CART_SAVED: 'shopping-cart-saved', ORDER_DATA_SAVED: 'order-data-saved', UNBUNDLE_STEP: 'unbundle-step', DELETE_STEP: 'delete-step', BUNDLE_STEP: 'bundle-step', COMPLETED: 'completed', BROKEN: 'broken' }, customer_product_constants_1.CustomerProductProcessStatus);
|
|
5
|
+
exports.CustomerProductMultipleTransitionProcessStatus = Object.assign({ FRESH: 'fresh', TRANSITION_SELECTED: 'transition-selected', FEATURES_SELECTED: 'features-selected', SHOPPING_CART_CONFIGURED: 'shopping-cart-configured', SHOPPING_CART_SAVED: 'shopping-cart-saved', ORDER_DATA_SAVED: 'order-data-saved', UNBUNDLE_STEP: 'unbundle-step', DELETE_STEP: 'delete-step', BUNDLE_STEP: 'bundle-step', LAST_ORDER_SENT: 'last-order-sent', LAST_ORDER_CANCELLED: 'last-order-cancelled', COMPLETED: 'completed', BROKEN: 'broken' }, customer_product_constants_1.CustomerProductProcessStatus);
|
|
6
6
|
var CustomerProductMultipleTransitionProcessAdditionalProductType;
|
|
7
7
|
(function (CustomerProductMultipleTransitionProcessAdditionalProductType) {
|
|
8
8
|
CustomerProductMultipleTransitionProcessAdditionalProductType["ONLY_MOBILES"] = "only-mobiles";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CustomerProductTransitionCombinationDto } from '../customer';
|
|
2
2
|
import { AllCustomerProductMultipleModificationProcessStatus, CustomerProductMultipleTransitionProcessAdditionalProductType, CustomerProductTransitionStep } from './customer-product-multiple-transition-process.constants';
|
|
3
|
-
import { ProcessAuditFieldsDto, CustomerProductActionProcessProductDto, CustomerProductTransitionProcessTransitionDto, CustomerProcessStepRelatedProductDto } from '../common';
|
|
3
|
+
import { ProcessAuditFieldsDto, CustomerProductActionProcessProductDto, CustomerProductTransitionProcessTransitionDto, CustomerProcessStepRelatedProductDto, CustomerProcessOrderDto } from '../common';
|
|
4
4
|
export declare class CreateCustomerProductMultipleTransitionProcessDto {
|
|
5
5
|
productId: string;
|
|
6
6
|
shoppingCartId: string;
|
|
@@ -46,6 +46,7 @@ export declare class CustomerProductMultipleTransitionProcessDto {
|
|
|
46
46
|
product: CustomerProductActionProcessProductDto;
|
|
47
47
|
steps?: CustomerProductMultipleTransitionProcessStepDto[];
|
|
48
48
|
shoppingCartId?: string;
|
|
49
|
+
order?: CustomerProcessOrderDto;
|
|
49
50
|
additionalProductType: CustomerProductMultipleTransitionProcessAdditionalProductType;
|
|
50
51
|
transition?: CustomerProductTransitionProcessTransitionDto;
|
|
51
52
|
status: AllCustomerProductMultipleModificationProcessStatus;
|
|
@@ -144,7 +144,7 @@ class CustomerProductMultipleTransitionProcessStepDto {
|
|
|
144
144
|
exports.CustomerProductMultipleTransitionProcessStepDto = CustomerProductMultipleTransitionProcessStepDto;
|
|
145
145
|
class CustomerProductMultipleTransitionProcessDto {
|
|
146
146
|
static _OPENAPI_METADATA_FACTORY() {
|
|
147
|
-
return { id: { required: false, type: () => Number }, customerId: { required: true, type: () => String }, product: { required: true, type: () => require("../common/common.entity").CustomerProductActionProcessProductDto }, steps: { required: false, type: () => [require("./customer-product-multiple-transition-process.entity").CustomerProductMultipleTransitionProcessStepDto] }, shoppingCartId: { required: false, type: () => String }, additionalProductType: { required: true, enum: require("./customer-product-multiple-transition-process.constants").CustomerProductMultipleTransitionProcessAdditionalProductType }, transition: { required: false, type: () => require("../common/common.entity").CustomerProductTransitionProcessTransitionDto }, status: { required: true, type: () => Object }, salesPerson: { required: false, type: () => String }, reason: { required: false, type: () => String }, targetDate: { required: false, type: () => String }, chargeDate: { required: false, type: () => String }, notes: { required: false, type: () => String }, created: { required: true, type: () => require("../common/common.entity").ProcessAuditFieldsDto }, updated: { required: true, type: () => require("../common/common.entity").ProcessAuditFieldsDto } };
|
|
147
|
+
return { id: { required: false, type: () => Number }, customerId: { required: true, type: () => String }, product: { required: true, type: () => require("../common/common.entity").CustomerProductActionProcessProductDto }, steps: { required: false, type: () => [require("./customer-product-multiple-transition-process.entity").CustomerProductMultipleTransitionProcessStepDto] }, shoppingCartId: { required: false, type: () => String }, order: { required: false, type: () => require("../common/common.entity").CustomerProcessOrderDto }, additionalProductType: { required: true, enum: require("./customer-product-multiple-transition-process.constants").CustomerProductMultipleTransitionProcessAdditionalProductType }, transition: { required: false, type: () => require("../common/common.entity").CustomerProductTransitionProcessTransitionDto }, status: { required: true, type: () => Object }, salesPerson: { required: false, type: () => String }, reason: { required: false, type: () => String }, targetDate: { required: false, type: () => String }, chargeDate: { required: false, type: () => String }, notes: { required: false, type: () => String }, created: { required: true, type: () => require("../common/common.entity").ProcessAuditFieldsDto }, updated: { required: true, type: () => require("../common/common.entity").ProcessAuditFieldsDto } };
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
150
|
exports.CustomerProductMultipleTransitionProcessDto = CustomerProductMultipleTransitionProcessDto;
|
|
@@ -7,6 +7,8 @@ export declare const CustomerProductTransitionProcessStatus: {
|
|
|
7
7
|
readonly SHOPPING_CART_CONFIGURED: "shopping-cart-configured";
|
|
8
8
|
readonly SHOPPING_CART_SAVED: "shopping-cart-saved";
|
|
9
9
|
readonly ORDER_DATA_SAVED: "order-data-saved";
|
|
10
|
+
readonly ORDER_SENT: "order-sent";
|
|
11
|
+
readonly ORDER_CANCELLED: "order-cancelled";
|
|
10
12
|
readonly COMPLETED: "completed";
|
|
11
13
|
};
|
|
12
14
|
export type AllCustomerProductTransitionProcessStatus = (typeof CustomerProductTransitionProcessStatus)[keyof typeof CustomerProductTransitionProcessStatus];
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CustomerProductTransitionProcessStatus = void 0;
|
|
4
4
|
const customer_product_constants_1 = require("../customer/customer-product.constants");
|
|
5
|
-
exports.CustomerProductTransitionProcessStatus = Object.assign({ FRESH: 'fresh', TRANSITION_SELECTED: 'transition-selected', FEATURES_SELECTED: 'features-selected', SHOPPING_CART_CONFIGURED: 'shopping-cart-configured', SHOPPING_CART_SAVED: 'shopping-cart-saved', ORDER_DATA_SAVED: 'order-data-saved', COMPLETED: 'completed' }, customer_product_constants_1.CustomerProductProcessStatus);
|
|
5
|
+
exports.CustomerProductTransitionProcessStatus = Object.assign({ FRESH: 'fresh', TRANSITION_SELECTED: 'transition-selected', FEATURES_SELECTED: 'features-selected', SHOPPING_CART_CONFIGURED: 'shopping-cart-configured', SHOPPING_CART_SAVED: 'shopping-cart-saved', ORDER_DATA_SAVED: 'order-data-saved', ORDER_SENT: 'order-sent', ORDER_CANCELLED: 'order-cancelled', COMPLETED: 'completed' }, customer_product_constants_1.CustomerProductProcessStatus);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CustomerProductTransitionCombinationDto } from '../customer';
|
|
2
2
|
import { AllCustomerProductTransitionProcessStatus } from './customer-product-transition-process.constants';
|
|
3
|
-
import { ProcessAuditFieldsDto, CustomerProductActionProcessProductDto, CustomerProductTransitionProcessTransitionDto } from '../common';
|
|
3
|
+
import { ProcessAuditFieldsDto, CustomerProductActionProcessProductDto, CustomerProductTransitionProcessTransitionDto, CustomerProcessOrderDto } from '../common';
|
|
4
4
|
export declare class CreateCustomerProductTransitionProcessDto {
|
|
5
5
|
productId: string;
|
|
6
6
|
shoppingCartId: string;
|
|
@@ -31,6 +31,7 @@ export declare class CustomerProductTransitionProcessDto {
|
|
|
31
31
|
customerId: string;
|
|
32
32
|
product: CustomerProductActionProcessProductDto;
|
|
33
33
|
shoppingCartId?: string;
|
|
34
|
+
order?: CustomerProcessOrderDto;
|
|
34
35
|
transition?: CustomerProductTransitionProcessTransitionDto;
|
|
35
36
|
status: AllCustomerProductTransitionProcessStatus;
|
|
36
37
|
salesPerson?: string;
|
package/dist/sys03/customer-product-transition-process/customer-product-transition-process.entity.js
CHANGED
|
@@ -134,7 +134,7 @@ __decorate([
|
|
|
134
134
|
], PatchCustomerProductTransitionProcessOrderDataSavedDto.prototype, "notes", void 0);
|
|
135
135
|
class CustomerProductTransitionProcessDto {
|
|
136
136
|
static _OPENAPI_METADATA_FACTORY() {
|
|
137
|
-
return { id: { required: false, type: () => Number }, customerId: { required: true, type: () => String }, product: { required: true, type: () => require("../common/common.entity").CustomerProductActionProcessProductDto }, shoppingCartId: { required: false, type: () => String }, transition: { required: false, type: () => require("../common/common.entity").CustomerProductTransitionProcessTransitionDto }, status: { required: true, type: () => Object }, salesPerson: { required: false, type: () => String }, reason: { required: false, type: () => String }, targetDate: { required: false, type: () => String }, chargeDate: { required: false, type: () => String }, notes: { required: false, type: () => String }, created: { required: true, type: () => require("../common/common.entity").ProcessAuditFieldsDto }, updated: { required: true, type: () => require("../common/common.entity").ProcessAuditFieldsDto } };
|
|
137
|
+
return { id: { required: false, type: () => Number }, customerId: { required: true, type: () => String }, product: { required: true, type: () => require("../common/common.entity").CustomerProductActionProcessProductDto }, shoppingCartId: { required: false, type: () => String }, order: { required: false, type: () => require("../common/common.entity").CustomerProcessOrderDto }, transition: { required: false, type: () => require("../common/common.entity").CustomerProductTransitionProcessTransitionDto }, status: { required: true, type: () => Object }, salesPerson: { required: false, type: () => String }, reason: { required: false, type: () => String }, targetDate: { required: false, type: () => String }, chargeDate: { required: false, type: () => String }, notes: { required: false, type: () => String }, created: { required: true, type: () => require("../common/common.entity").ProcessAuditFieldsDto }, updated: { required: true, type: () => require("../common/common.entity").ProcessAuditFieldsDto } };
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
140
|
exports.CustomerProductTransitionProcessDto = CustomerProductTransitionProcessDto;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./order-entity-reference.constants"), exports);
|
|
18
|
+
__exportStar(require("./order-entity-reference.entity"), exports);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare enum OrderEntityReferenceType {
|
|
2
|
+
CUSTOMER_NEW_EXTRAS_PROCESS = "customer-new-extras-process",
|
|
3
|
+
CUSTOMER_PRODUCT_DEACTIVATION_PROCESS = "customer-product-deactivation-process",
|
|
4
|
+
CUSTOMER_PRODUCT_MODIFICATION_PROCESS = "customer-product-modification-process",
|
|
5
|
+
CUSTOMER_PRODUCT_TRANSITION_PROCESS = "customer-product-transition-process",
|
|
6
|
+
CUSTOMER_PRODUCT_MULTIPLE_TRANSITION_PROCESS = "customer-product-multiple-transition-process"
|
|
7
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OrderEntityReferenceType = void 0;
|
|
4
|
+
var OrderEntityReferenceType;
|
|
5
|
+
(function (OrderEntityReferenceType) {
|
|
6
|
+
OrderEntityReferenceType["CUSTOMER_NEW_EXTRAS_PROCESS"] = "customer-new-extras-process";
|
|
7
|
+
OrderEntityReferenceType["CUSTOMER_PRODUCT_DEACTIVATION_PROCESS"] = "customer-product-deactivation-process";
|
|
8
|
+
OrderEntityReferenceType["CUSTOMER_PRODUCT_MODIFICATION_PROCESS"] = "customer-product-modification-process";
|
|
9
|
+
OrderEntityReferenceType["CUSTOMER_PRODUCT_TRANSITION_PROCESS"] = "customer-product-transition-process";
|
|
10
|
+
OrderEntityReferenceType["CUSTOMER_PRODUCT_MULTIPLE_TRANSITION_PROCESS"] = "customer-product-multiple-transition-process";
|
|
11
|
+
})(OrderEntityReferenceType || (exports.OrderEntityReferenceType = OrderEntityReferenceType = {}));
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { CustomerProcessOrderDto, UpdateCustomerProcessOrderDto } from '../common';
|
|
2
|
+
import { OrderEntityReferenceType } from './order-entity-reference.constants';
|
|
3
|
+
export declare class OrderEntityReferenceDataDto {
|
|
4
|
+
id: number;
|
|
5
|
+
type: OrderEntityReferenceType;
|
|
6
|
+
}
|
|
7
|
+
export declare class OrderEntityReferenceDto {
|
|
8
|
+
id: number;
|
|
9
|
+
order: CustomerProcessOrderDto;
|
|
10
|
+
reference: OrderEntityReferenceDataDto;
|
|
11
|
+
createdAt: Date;
|
|
12
|
+
updatedAt?: Date;
|
|
13
|
+
}
|
|
14
|
+
export declare class UpdateOrderEntityReferenceDto {
|
|
15
|
+
order: UpdateCustomerProcessOrderDto;
|
|
16
|
+
}
|
|
17
|
+
export declare class CheckOrderEntityReferenceEventDto {
|
|
18
|
+
id: string;
|
|
19
|
+
at: string;
|
|
20
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CheckOrderEntityReferenceEventDto = exports.UpdateOrderEntityReferenceDto = exports.OrderEntityReferenceDto = exports.OrderEntityReferenceDataDto = void 0;
|
|
4
|
+
const openapi = require("@nestjs/swagger");
|
|
5
|
+
class OrderEntityReferenceDataDto {
|
|
6
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
7
|
+
return { id: { required: true, type: () => Number }, type: { required: true, enum: require("./order-entity-reference.constants").OrderEntityReferenceType } };
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.OrderEntityReferenceDataDto = OrderEntityReferenceDataDto;
|
|
11
|
+
class OrderEntityReferenceDto {
|
|
12
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
13
|
+
return { id: { required: true, type: () => Number }, order: { required: true, type: () => require("../common/common.entity").CustomerProcessOrderDto }, reference: { required: true, type: () => require("./order-entity-reference.entity").OrderEntityReferenceDataDto }, createdAt: { required: true, type: () => Date }, updatedAt: { required: false, type: () => Date } };
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exports.OrderEntityReferenceDto = OrderEntityReferenceDto;
|
|
17
|
+
class UpdateOrderEntityReferenceDto {
|
|
18
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
19
|
+
return { order: { required: true, type: () => require("../common/common.entity").UpdateCustomerProcessOrderDto } };
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.UpdateOrderEntityReferenceDto = UpdateOrderEntityReferenceDto;
|
|
23
|
+
class CheckOrderEntityReferenceEventDto {
|
|
24
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
25
|
+
return { id: { required: true, type: () => String }, at: { required: true, type: () => String } };
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.CheckOrderEntityReferenceEventDto = CheckOrderEntityReferenceEventDto;
|