adamo-types 2.0.84-sit → 2.0.85-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/common.error.constants.d.ts +1 -0
- package/dist/common/constants/common.error.constants.js +2 -1
- package/dist/common/edge-zoho/sale-process/req/create.entity.d.ts +0 -7
- package/dist/common/edge-zoho/sale-process/req/create.entity.js +5 -33
- package/dist/database/lead/index.d.ts +1 -1
- package/dist/database/lead/index.js +1 -1
- package/dist/database/lead/lead-file.entity.d.ts +17 -0
- package/dist/database/lead/{leads-file.entity.js → lead-file.entity.js} +20 -20
- package/dist/database/lead/lead.entity.d.ts +3 -2
- package/dist/database/lead/lead.entity.js +3 -3
- package/dist/sys03/approval/approval.entity.d.ts +0 -4
- package/dist/sys03/approval/approval.entity.js +1 -19
- package/dist/sys03/sale-process/index.d.ts +1 -0
- package/dist/sys03/sale-process/index.js +1 -0
- package/dist/sys03/sale-process/sale-process.entity.d.ts +2 -0
- package/dist/sys03/sale-process/sale-process.entity.js +7 -1
- package/dist/sys03/sale-process/sale-process.file.entity.d.ts +28 -0
- package/dist/sys03/sale-process/sale-process.file.entity.js +89 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/zoho/sale-process/index.d.ts +0 -1
- package/dist/zoho/sale-process/index.js +0 -1
- package/dist/zoho/sale-process/sale-process.entity.d.ts +2 -2
- package/dist/zoho/sale-process/sale-process.entity.js +1 -9
- package/package.json +1 -1
- package/dist/database/lead/leads-file.entity.d.ts +0 -11
- package/dist/digitel/lead-file.entity.d.ts +0 -10
- package/dist/digitel/lead-file.entity.js +0 -10
- package/dist/zoho/sale-process/file.entity.d.ts +0 -12
- package/dist/zoho/sale-process/file.entity.js +0 -10
|
@@ -190,3 +190,4 @@ export declare const E_SHOPPING_CART_CONFIGURATION_FEATURE_GROUP_INCONSISTENT_MI
|
|
|
190
190
|
export declare const E_DROPDOWN_BY_FIELD_VALUE_TYPE_MISMATCHING = "E_DROPDOWN_BY_FIELD_VALUE_TYPE_MISMATCHING";
|
|
191
191
|
export declare const E_PRODUCT_TRANSITION_GROUP_AGGRUPATION_BUNDLE_TYPE_CONFIGURATION_CONFLICT = "E_PRODUCT_TRANSITION_GROUP_AGGRUPATION_BUNDLE_TYPE_CONFIGURATION_CONFLICT";
|
|
192
192
|
export declare const E_PRODUCT_TRANSITION_GROUP_AGGRUPATION_BUNDLE_TYPE_CONFIGURATION_NOT_MAIN_BUNDLE = "E_PRODUCT_TRANSITION_GROUP_AGGRUPATION_BUNDLE_TYPE_CONFIGURATION_NOT_MAIN_BUNDLE";
|
|
193
|
+
export declare const E_SALE_PROCESS_FILE_WITHOUT_APPROVAL = "E_SALE_PROCESS_FILE_WITHOUT_APPROVAL";
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.E_UPDATE_MANDATE = exports.E_CREATE_MANDATE = exports.E_UPDATE_BILLING_ACCOUNT = exports.E_CREATE_BILLING_ACCOUNT = exports.E_FETCH_ADDRESS = exports.E_CREATE_ADDRESS = exports.E_FIBER_NOT_AVAILABLE_FOR_THIS_NETWORK = exports.E_UPDATE_SHOPPING_CART_CONFIGURATION = exports.E_CIF_VALIDATION = exports.E_NIE_VALIDATION = exports.E_DNI_VALIDATION = exports.E_SET_SHOPPING_CART_PROMOTIONS = exports.E_SET_SHOPPING_CART_CONTRACT = exports.E_FETCH_AVAILABLE_NUMBERS_FROM_POOL = exports.E_PROVINCE_WITHOUT_PREFIXES = exports.E_SERVER = exports.E_CONNECTION_REFUSED = exports.E_VALIDATION = exports.E_BODY_NOT_OBJECT = exports.E_BODY_NOT_ARRAY = exports.E_BODY_NOT_PROVIDED = exports.E_NO_CHANNEL_SELECTED = exports.E_CHANGE_CHANNEL = exports.E_SERVICE_UNAVAILABLE = exports.E_INVALID_USER_CREDENTIALS = exports.E_INFONOVA = exports.E_BP_INTERNAL_SERVER_ERROR = exports.E_UPDATE_SHOPPING_CART_EXTRAS = exports.E_EMPTY_SHOPPING_CART = exports.E_BUNDLE_CONFIGURATION_ATTRIBUTE_MISMATCHING = exports.E_PERSIST_SHOPPING_CART = exports.E_SAVE_SHOPPING_CART = exports.E_CREATE_SHOPPING_CART = exports.E_FETCH_PRODUCT_DEFAULT_SUMMARY = exports.E_FETCH_SHOPPING_CART_TRANSITION_ONLY_MOBILES = exports.E_FETCH_SHOPPING_CART_MODIFICATION = exports.E_FETCH_SHOPPING_CART_CONFIGURATION = exports.E_FETCH_SHOPPING_CART_SUMMARY = exports.E_FETCH_SHOPPING_CART_AVAILABLE_EXTRAS = exports.E_FETCH_SHOPPING_CART_AVAILABLE_PRODUCT = exports.E_FETCH_SHOPPING_CART_AVAILABLE_PRODUCTS = exports.E_FETCH_PRODUCT_OFFERINGS = exports.E_ASSIGN_SALESPERSON = exports.E_ASSIGN_ROLE_TENENT = exports.E_CREATE_USER = exports.E_UPDATE_PASSWORD = exports.E_ASSIGN_CHANNELS = exports.E_ENTRAID_LOGIN = exports.E_LOGIN = exports.E_TIMEOUT = void 0;
|
|
4
4
|
exports.E_NO_SELECTED_CHANNEL = exports.E_FETCH_LOOKUP_OPTIONS = exports.E_INVALID_SALE_PROCESS_STATUS = exports.E_USER_ROLE_UNKNOWN = exports.E_USER_WITHOUT_ROLE = exports.E_RESERVE_NUMBER_FROM_POOL = exports.E_FETCH_NUMBER_FROM_POOL = exports.E_WHOLESALE_APARTMENT_BLACKLISTED = exports.E_USER_SALE_PROCESS_PERMISSION = exports.E_UPDATE_CACHE_RECORD = exports.E_DELETE_CACHE_RECORD = exports.E_UPDATE_PRODUCT_CATALOG = exports.E_DELETE_PRODUCT_CATALOG = exports.E_FETCH_ORGANIZATION_PARTY = exports.E_FETCH_INDIVIDUAL_PARTY = exports.E_FETCH_PAYMENT_METHOD = exports.E_FETCH_MANDATE = exports.E_FETCH_BILLING_ACCOUNT = exports.E_FETCH_PRODUCT_INVENTORY = exports.E_FETCH_ORGANIZATION_PARTIES = exports.E_FETCH_INDIVIDUAL_PARTIES = exports.E_DOWNLOAD_INVOICE = exports.E_FETCH_BILLING_ACCOUNT_DETAILS = exports.E_INVALID_IBAN_ACCOUNT_NUMBER_CONTROL_CODE = exports.E_INVALID_IBAN_MOD = exports.E_INVALID_IBAN_FORMAT = exports.E_INVALID_IBAN_LENGTH = exports.E_INVALID_IBAN_ISO_CODE = exports.E_IBAN_SUPPORTED_COUNTRIES_ARE_REQUIRED = exports.E_IBAN_IS_REQUIRED = exports.E_IBAN_COUNTRY_NOT_SUPPORTED = exports.E_SPAIN_NOT_ALLOWED = exports.E_EMAIL_INVALID_FORMAT = exports.E_PHONE_INVALID_FORMAT = exports.E_PHONE_INVALID_LENGTH = exports.E_VALIDATE_SHOPPING_CART = exports.E_FETCH_CHANNEL_USERS = exports.E_SFTP_DOWNLOAD = exports.E_SFTP_UPLOAD = exports.E_SFTP_LIST = exports.E_SFTP_CONNECT = exports.E_FTP_RENAME = exports.E_FTP_REMOVE = exports.E_FTP_DOWNLOAD = exports.E_FTP_UPLOAD = exports.E_SUBMIT_SHOPPING_CART = exports.E_FETCH_SHOPPING_CART = exports.E_CREATE_PAYMENT = exports.E_UPDATE_PAYMENT_METHOD = exports.E_CREATE_PAYMENT_METHOD = void 0;
|
|
5
5
|
exports.E_FETCH_TASK = exports.E_CREATE_TASK = exports.E_DIGITEL_PROCESS_ERROR = exports.E_APPROVAL_FORBIDDEN_VALIDATION = exports.E_APPROVAL_FORBIDDEN_STATUS = exports.E_APPROVAL_DATA_WITHOUT_CHANGES = exports.E_APPROVAL_DATA_WITHOUT_RESPONSE = exports.E_SALE_PROCESS_PENDING_APPROVAL_UNSOLVED = exports.E_SALE_PROCESS_PENDING_APPROVAL = exports.E_CSV_INVALID_RECORDS = exports.E_CSV_INVALID_RECORD_LENGTH = exports.E_PARSE_CSV = exports.E_PUT_LOOKUP_OPTIONS = exports.E_USER_INACTIVE = exports.E_USER_WITHOUT_TENANTS = exports.E_USER_WITH_EMPTY_WORKGROUP_PERMISSIONS = exports.E_USER_WITHOUT_WORKGROUPS = exports.E_USER_WITHOUT_AUTH = exports.E_BI_SALES_EXTRACTION = exports.E_FETCH_PRODUCT_ORDER = exports.E_FETCH_PRODUCT_ORDERS = exports.E_SALE_PROCESS_DOCUMENTS_REQUIRED = exports.E_SALE_PROCESS_UNKNOWN_COMPANY_TYPE = exports.E_SALE_PROCESS_UNKNOWN_CUSTOMER_TYPE = exports.E_SALE_PROCESS_BUSINESS_CUSTOMER_WITHOUT_INFO = exports.E_SALE_PROCESS_BUSINESS_CUSTOMER_WITHOUT_IDENTIFICATION = exports.E_SALE_PROCESS_RESIDENTIAL_CUSTOMER_WITHOUT_IDENTIFICATION = exports.E_SALE_PROCESS_WITHOUT_CHANGES = exports.E_SALE_PROCESS_WITHOUT_IBAN_VALIDATION_ID = exports.E_SALE_PROCESS_WITHOUT_SHOPPING_CART = exports.E_APPLY_CHARGE = exports.E_PRODUCT_SERVICE_MISSING = exports.E_SALE_PROCESS_APARTMENT_BREACHES_RETAIL_EXCLUSIVITY_RULES = exports.E_APARTMENT_BREACHES_RETAIL_EXCLUSIVITY_RULES = exports.E_ADDRESS_BREACHES_RETAIL_EXCLUSIVITY_RULES = exports.E_UPDATE_PRODUCT_CATALOG_CACHE = exports.E_ENTRY_FOREIGN_KEY_CONSTRAINT = exports.E_DUPLICATE_ENTRY = exports.E_UNHANDLED_KEY = exports.E_LOGIN_MAX_ATTEMPTS_REACHED = exports.E_TOO_MANY_REQUESTS = exports.E_UPLOAD_SALE_PROCESS_CONTRACT = exports.E_FETCH_USER_CHANNELS = exports.E_UNAUTHORIZED = exports.E_USER_NOT_FOUND_WITHOUT_CHANNELS = exports.E_USER_WITHOUT_CHANNELS = exports.E_FETCH_SHOPPING_CART_PROMOTIONS_AND_CONTRACTS = exports.E_FETCH_SHOPPING_CART_FEATURES = exports.E_NOT_IMPLEMENTED = exports.E_NOT_BASE_BUNDLE = void 0;
|
|
6
|
-
exports.E_PRODUCT_TRANSITION_GROUP_AGGRUPATION_BUNDLE_TYPE_CONFIGURATION_NOT_MAIN_BUNDLE = exports.E_PRODUCT_TRANSITION_GROUP_AGGRUPATION_BUNDLE_TYPE_CONFIGURATION_CONFLICT = exports.E_DROPDOWN_BY_FIELD_VALUE_TYPE_MISMATCHING = exports.E_SHOPPING_CART_CONFIGURATION_FEATURE_GROUP_INCONSISTENT_MIN_MAX = exports.E_SALE_PROCESS_CREDIT_BUREAU_VALIDATION_REJECTED = exports.E_CHANGE_OF_ADDRESS_INTERMEDIATE_BUNDLE_CONFIGURATION_ATTRIBUTE_MISMATCHING = exports.E_PRODUCT_ACTION_DISABLED_CHANGE_OF_ADDRESS_2ND_PHASE_IN_PROGRESS = exports.E_PRODUCT_ACTION_DISABLED_NOT_INTERMEDIATE_PRODUCT = exports.E_SHOPPING_CART_WITHOUT_PROVINCE_PARAMETER = exports.E_AGGRUPATION_CREATION_NOT_ALLOWED = exports.E_SHOPPING_CART_APARTMENT_BUSINESS_RULE = exports.E_PROVINCE_WITHOUT_AVAILABLE_VOIP_NUMBERS = exports.E_SHOPPING_CART_DEPRECATED = exports.E_APPROVAL_MODIFY_DISABLED_IBAN_VALIDATION_MAX_INTENTS_REACHED = exports.E_APPROVAL_WITHOUT_VALIDATION = exports.E_APPROVAL_IBAN_VALIDATION_UNHANDLED_STATUS = exports.E_APPROVAL_IBAN_VALIDATION_MAX_INTENTS_REACHED = exports.E_APPROVAL_IBAN_VALIDATION_PENDING = exports.E_APPROVAL_IBAN_VALIDATION_ERROR = exports.E_APPROVAL_IBAN_VALIDATION_UNSUPPORTED = exports.E_APPROVAL_IBAN_VALIDATION_REJECTED = exports.E_SALE_PROCESS_FORBIDDEN_APPROVAL = exports.E_SALE_PROCESS_FORBIDDEN_STATUS = exports.E_SALE_PROCESS_IBAN_VALIDATION_UNHANDLED_STATUS = exports.E_SALE_PROCESS_IBAN_VALIDATION_PENDING = exports.E_SALE_PROCESS_IBAN_VALIDATION_REJECTED = exports.E_CHARACTERISTIC_NOT_CHANGEABLE = exports.E_BUNDLE_NOT_AVAILABLE_IN_CHANNEL = exports.E_UNKNOWN_CACHE_KEY = exports.E_FILTER_PRODUCT_BY_PARAMETERS = exports.E_FETCH_CHARGES_AND_CREDITS = exports.E_FETCH_SERVICE_INVENTORY_BY_ID = exports.E_FETCH_PRODUCT_INVENTORY_BY_ID = exports.E_FETCH_BILLS = exports.E_PATCH_BILLING_STATE = exports.E_FETCH_ORDER_HIERARCHY = exports.E_FETCH_ORDERS = exports.E_FILTERS_REQUIRED = exports.E_RESOLVE_TASKS = exports.E_FETCH_TASKS = exports.E_FETCH_TASK_NOTES = exports.E_PATCH_TASK = void 0;
|
|
6
|
+
exports.E_SALE_PROCESS_FILE_WITHOUT_APPROVAL = exports.E_PRODUCT_TRANSITION_GROUP_AGGRUPATION_BUNDLE_TYPE_CONFIGURATION_NOT_MAIN_BUNDLE = exports.E_PRODUCT_TRANSITION_GROUP_AGGRUPATION_BUNDLE_TYPE_CONFIGURATION_CONFLICT = exports.E_DROPDOWN_BY_FIELD_VALUE_TYPE_MISMATCHING = exports.E_SHOPPING_CART_CONFIGURATION_FEATURE_GROUP_INCONSISTENT_MIN_MAX = exports.E_SALE_PROCESS_CREDIT_BUREAU_VALIDATION_REJECTED = exports.E_CHANGE_OF_ADDRESS_INTERMEDIATE_BUNDLE_CONFIGURATION_ATTRIBUTE_MISMATCHING = exports.E_PRODUCT_ACTION_DISABLED_CHANGE_OF_ADDRESS_2ND_PHASE_IN_PROGRESS = exports.E_PRODUCT_ACTION_DISABLED_NOT_INTERMEDIATE_PRODUCT = exports.E_SHOPPING_CART_WITHOUT_PROVINCE_PARAMETER = exports.E_AGGRUPATION_CREATION_NOT_ALLOWED = exports.E_SHOPPING_CART_APARTMENT_BUSINESS_RULE = exports.E_PROVINCE_WITHOUT_AVAILABLE_VOIP_NUMBERS = exports.E_SHOPPING_CART_DEPRECATED = exports.E_APPROVAL_MODIFY_DISABLED_IBAN_VALIDATION_MAX_INTENTS_REACHED = exports.E_APPROVAL_WITHOUT_VALIDATION = exports.E_APPROVAL_IBAN_VALIDATION_UNHANDLED_STATUS = exports.E_APPROVAL_IBAN_VALIDATION_MAX_INTENTS_REACHED = exports.E_APPROVAL_IBAN_VALIDATION_PENDING = exports.E_APPROVAL_IBAN_VALIDATION_ERROR = exports.E_APPROVAL_IBAN_VALIDATION_UNSUPPORTED = exports.E_APPROVAL_IBAN_VALIDATION_REJECTED = exports.E_SALE_PROCESS_FORBIDDEN_APPROVAL = exports.E_SALE_PROCESS_FORBIDDEN_STATUS = exports.E_SALE_PROCESS_IBAN_VALIDATION_UNHANDLED_STATUS = exports.E_SALE_PROCESS_IBAN_VALIDATION_PENDING = exports.E_SALE_PROCESS_IBAN_VALIDATION_REJECTED = exports.E_CHARACTERISTIC_NOT_CHANGEABLE = exports.E_BUNDLE_NOT_AVAILABLE_IN_CHANNEL = exports.E_UNKNOWN_CACHE_KEY = exports.E_FILTER_PRODUCT_BY_PARAMETERS = exports.E_FETCH_CHARGES_AND_CREDITS = exports.E_FETCH_SERVICE_INVENTORY_BY_ID = exports.E_FETCH_PRODUCT_INVENTORY_BY_ID = exports.E_FETCH_BILLS = exports.E_PATCH_BILLING_STATE = exports.E_FETCH_ORDER_HIERARCHY = exports.E_FETCH_ORDERS = exports.E_FILTERS_REQUIRED = exports.E_RESOLVE_TASKS = exports.E_FETCH_TASKS = exports.E_FETCH_TASK_NOTES = exports.E_PATCH_TASK = void 0;
|
|
7
7
|
exports.E_TIMEOUT = 'E_TIMEOUT';
|
|
8
8
|
exports.E_LOGIN = 'E_LOGIN';
|
|
9
9
|
exports.E_ENTRAID_LOGIN = 'E_ENTRAID_LOGIN';
|
|
@@ -196,3 +196,4 @@ exports.E_SHOPPING_CART_CONFIGURATION_FEATURE_GROUP_INCONSISTENT_MIN_MAX = 'E_SH
|
|
|
196
196
|
exports.E_DROPDOWN_BY_FIELD_VALUE_TYPE_MISMATCHING = 'E_DROPDOWN_BY_FIELD_VALUE_TYPE_MISMATCHING';
|
|
197
197
|
exports.E_PRODUCT_TRANSITION_GROUP_AGGRUPATION_BUNDLE_TYPE_CONFIGURATION_CONFLICT = 'E_PRODUCT_TRANSITION_GROUP_AGGRUPATION_BUNDLE_TYPE_CONFIGURATION_CONFLICT';
|
|
198
198
|
exports.E_PRODUCT_TRANSITION_GROUP_AGGRUPATION_BUNDLE_TYPE_CONFIGURATION_NOT_MAIN_BUNDLE = 'E_PRODUCT_TRANSITION_GROUP_AGGRUPATION_BUNDLE_TYPE_CONFIGURATION_NOT_MAIN_BUNDLE';
|
|
199
|
+
exports.E_SALE_PROCESS_FILE_WITHOUT_APPROVAL = 'E_SALE_PROCESS_FILE_WITHOUT_APPROVAL';
|
|
@@ -1,12 +1,5 @@
|
|
|
1
|
-
import { BpCustomerAccountDocumentType } from '../../../../bss/constants';
|
|
2
1
|
import { AdditionalContactMediumType, AdditionalContactRoleType, SaleProcessCallType } from '../../../../zoho/constants';
|
|
3
2
|
import { UtmDto } from '../../../../zoho/sale-process';
|
|
4
|
-
export declare class ArsSaleProcessDocumentDto {
|
|
5
|
-
fileName: string;
|
|
6
|
-
type: BpCustomerAccountDocumentType;
|
|
7
|
-
comment?: string;
|
|
8
|
-
transactionId?: string;
|
|
9
|
-
}
|
|
10
3
|
export declare class ArsSaleProcessAdditionalContactDto {
|
|
11
4
|
partyId?: string;
|
|
12
5
|
firstName: string;
|
|
@@ -9,40 +9,12 @@ 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.ArsSaleProcessCreateDto = exports.ArsSaleProcessAdditionalContactMediumDto = exports.ArsSaleProcessAdditionalContactDto =
|
|
12
|
+
exports.ArsSaleProcessCreateDto = exports.ArsSaleProcessAdditionalContactMediumDto = exports.ArsSaleProcessAdditionalContactDto = void 0;
|
|
13
13
|
const openapi = require("@nestjs/swagger");
|
|
14
|
-
const constants_1 = require("../../../../
|
|
15
|
-
const constants_2 = require("../../../../zoho/constants");
|
|
14
|
+
const constants_1 = require("../../../../zoho/constants");
|
|
16
15
|
const class_transformer_1 = require("class-transformer");
|
|
17
16
|
const class_validator_1 = require("class-validator");
|
|
18
17
|
const sale_process_1 = require("../../../../zoho/sale-process");
|
|
19
|
-
class ArsSaleProcessDocumentDto {
|
|
20
|
-
static _OPENAPI_METADATA_FACTORY() {
|
|
21
|
-
return { fileName: { required: true, type: () => String }, type: { required: true, enum: require("../../../../bss/constants/bp.constants").BpCustomerAccountDocumentType }, comment: { required: false, type: () => String, maxLength: 1000 }, transactionId: { required: false, type: () => String, maxLength: 1000 } };
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
exports.ArsSaleProcessDocumentDto = ArsSaleProcessDocumentDto;
|
|
25
|
-
__decorate([
|
|
26
|
-
(0, class_validator_1.IsString)(),
|
|
27
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
28
|
-
__metadata("design:type", String)
|
|
29
|
-
], ArsSaleProcessDocumentDto.prototype, "fileName", void 0);
|
|
30
|
-
__decorate([
|
|
31
|
-
(0, class_validator_1.IsEnum)(constants_1.BpCustomerAccountDocumentType),
|
|
32
|
-
__metadata("design:type", String)
|
|
33
|
-
], ArsSaleProcessDocumentDto.prototype, "type", void 0);
|
|
34
|
-
__decorate([
|
|
35
|
-
(0, class_validator_1.IsString)(),
|
|
36
|
-
(0, class_validator_1.MaxLength)(1000),
|
|
37
|
-
(0, class_validator_1.IsOptional)(),
|
|
38
|
-
__metadata("design:type", String)
|
|
39
|
-
], ArsSaleProcessDocumentDto.prototype, "comment", void 0);
|
|
40
|
-
__decorate([
|
|
41
|
-
(0, class_validator_1.IsString)(),
|
|
42
|
-
(0, class_validator_1.MaxLength)(1000),
|
|
43
|
-
(0, class_validator_1.IsOptional)(),
|
|
44
|
-
__metadata("design:type", String)
|
|
45
|
-
], ArsSaleProcessDocumentDto.prototype, "transactionId", void 0);
|
|
46
18
|
class ArsSaleProcessAdditionalContactDto {
|
|
47
19
|
static _OPENAPI_METADATA_FACTORY() {
|
|
48
20
|
return { partyId: { required: false, type: () => String }, firstName: { required: true, type: () => String }, lastName: { required: true, type: () => String }, role: { required: true, enum: require("../../../../zoho/constants/zoho.constants").AdditionalContactRoleType }, contactMediums: { required: true, type: () => [require("./create.entity").ArsSaleProcessAdditionalContactMediumDto], minItems: 1, minItems: 1, maxItems: 6 } };
|
|
@@ -66,7 +38,7 @@ __decorate([
|
|
|
66
38
|
__metadata("design:type", String)
|
|
67
39
|
], ArsSaleProcessAdditionalContactDto.prototype, "lastName", void 0);
|
|
68
40
|
__decorate([
|
|
69
|
-
(0, class_validator_1.IsEnum)(
|
|
41
|
+
(0, class_validator_1.IsEnum)(constants_1.AdditionalContactRoleType),
|
|
70
42
|
__metadata("design:type", String)
|
|
71
43
|
], ArsSaleProcessAdditionalContactDto.prototype, "role", void 0);
|
|
72
44
|
__decorate([
|
|
@@ -90,7 +62,7 @@ __decorate([
|
|
|
90
62
|
__metadata("design:type", String)
|
|
91
63
|
], ArsSaleProcessAdditionalContactMediumDto.prototype, "id", void 0);
|
|
92
64
|
__decorate([
|
|
93
|
-
(0, class_validator_1.IsEnum)(
|
|
65
|
+
(0, class_validator_1.IsEnum)(constants_1.AdditionalContactMediumType),
|
|
94
66
|
__metadata("design:type", String)
|
|
95
67
|
], ArsSaleProcessAdditionalContactMediumDto.prototype, "type", void 0);
|
|
96
68
|
__decorate([
|
|
@@ -126,7 +98,7 @@ __decorate([
|
|
|
126
98
|
__metadata("design:type", String)
|
|
127
99
|
], ArsSaleProcessCreateDto.prototype, "campaign", void 0);
|
|
128
100
|
__decorate([
|
|
129
|
-
(0, class_validator_1.IsEnum)(
|
|
101
|
+
(0, class_validator_1.IsEnum)(constants_1.SaleProcessCallType),
|
|
130
102
|
(0, class_validator_1.IsOptional)(),
|
|
131
103
|
__metadata("design:type", String)
|
|
132
104
|
], ArsSaleProcessCreateDto.prototype, "callType", void 0);
|
|
@@ -20,4 +20,4 @@ __exportStar(require("./lead-transactions.entity"), exports);
|
|
|
20
20
|
__exportStar(require("./lead.entity"), exports);
|
|
21
21
|
__exportStar(require("./leads-additional-contact.entity"), exports);
|
|
22
22
|
__exportStar(require("./leads-consent-data.entity"), exports);
|
|
23
|
-
__exportStar(require("./
|
|
23
|
+
__exportStar(require("./lead-file.entity"), exports);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { CreateLeadReferenceEntity, LeadEntity } from './lead.entity';
|
|
2
|
+
export declare class LeadFileEntity {
|
|
3
|
+
id: number;
|
|
4
|
+
lead: LeadEntity;
|
|
5
|
+
documentId?: string;
|
|
6
|
+
fileName: string;
|
|
7
|
+
contentType: string;
|
|
8
|
+
type: string;
|
|
9
|
+
comment?: string;
|
|
10
|
+
transactionId?: string;
|
|
11
|
+
}
|
|
12
|
+
type CreateLeadFileEntityBase = Pick<LeadFileEntity, 'fileName' | 'contentType' | 'type' | 'comment' | 'transactionId'>;
|
|
13
|
+
export interface CreateLeadFileEntity extends CreateLeadFileEntityBase {
|
|
14
|
+
lead: CreateLeadReferenceEntity;
|
|
15
|
+
}
|
|
16
|
+
export type UpdateLeadFileEntity = Pick<LeadFileEntity, 'documentId' | 'fileName' | 'contentType' | 'type' | 'comment' | 'transactionId'>;
|
|
17
|
+
export {};
|
|
@@ -9,49 +9,49 @@ 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.
|
|
12
|
+
exports.LeadFileEntity = void 0;
|
|
13
13
|
const openapi = require("@nestjs/swagger");
|
|
14
14
|
const typeorm_1 = require("typeorm");
|
|
15
15
|
const lead_entity_1 = require("./lead.entity");
|
|
16
|
-
let
|
|
16
|
+
let LeadFileEntity = class LeadFileEntity {
|
|
17
17
|
static _OPENAPI_METADATA_FACTORY() {
|
|
18
|
-
return { id: { required:
|
|
18
|
+
return { id: { required: true, type: () => Number }, lead: { required: true, type: () => require("./lead.entity").LeadEntity }, documentId: { required: false, type: () => String }, fileName: { required: true, type: () => String }, contentType: { required: true, type: () => String }, type: { required: true, type: () => String }, comment: { required: false, type: () => String }, transactionId: { required: false, type: () => String } };
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
|
-
exports.
|
|
21
|
+
exports.LeadFileEntity = LeadFileEntity;
|
|
22
22
|
__decorate([
|
|
23
23
|
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
|
24
24
|
__metadata("design:type", Number)
|
|
25
|
-
],
|
|
25
|
+
], LeadFileEntity.prototype, "id", void 0);
|
|
26
26
|
__decorate([
|
|
27
27
|
(0, typeorm_1.ManyToOne)(() => lead_entity_1.LeadEntity),
|
|
28
28
|
(0, typeorm_1.JoinColumn)({ name: 'lead', referencedColumnName: 'id' }),
|
|
29
29
|
__metadata("design:type", lead_entity_1.LeadEntity)
|
|
30
|
-
],
|
|
30
|
+
], LeadFileEntity.prototype, "lead", void 0);
|
|
31
31
|
__decorate([
|
|
32
|
-
(0, typeorm_1.Column)({ nullable:
|
|
32
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
33
33
|
__metadata("design:type", String)
|
|
34
|
-
],
|
|
34
|
+
], LeadFileEntity.prototype, "documentId", void 0);
|
|
35
35
|
__decorate([
|
|
36
|
-
(0, typeorm_1.Column)({ nullable: false }),
|
|
36
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 256, nullable: false }),
|
|
37
37
|
__metadata("design:type", String)
|
|
38
|
-
],
|
|
38
|
+
], LeadFileEntity.prototype, "fileName", void 0);
|
|
39
39
|
__decorate([
|
|
40
|
-
(0, typeorm_1.Column)({ nullable: false }),
|
|
40
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 256, nullable: false }),
|
|
41
41
|
__metadata("design:type", String)
|
|
42
|
-
],
|
|
42
|
+
], LeadFileEntity.prototype, "contentType", void 0);
|
|
43
43
|
__decorate([
|
|
44
|
-
(0, typeorm_1.Column)({ nullable: false }),
|
|
44
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 256, nullable: false }),
|
|
45
45
|
__metadata("design:type", String)
|
|
46
|
-
],
|
|
46
|
+
], LeadFileEntity.prototype, "type", void 0);
|
|
47
47
|
__decorate([
|
|
48
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
48
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
49
49
|
__metadata("design:type", String)
|
|
50
|
-
],
|
|
50
|
+
], LeadFileEntity.prototype, "comment", void 0);
|
|
51
51
|
__decorate([
|
|
52
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
52
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
53
53
|
__metadata("design:type", String)
|
|
54
|
-
],
|
|
55
|
-
exports.
|
|
54
|
+
], LeadFileEntity.prototype, "transactionId", void 0);
|
|
55
|
+
exports.LeadFileEntity = LeadFileEntity = __decorate([
|
|
56
56
|
(0, typeorm_1.Entity)({ name: 'leads-file' })
|
|
57
|
-
],
|
|
57
|
+
], LeadFileEntity);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LeadsAdditionalContact } from './leads-additional-contact.entity';
|
|
2
|
-
import {
|
|
2
|
+
import { LeadFileEntity } from './lead-file.entity';
|
|
3
3
|
import { LeadsConsentData } from './leads-consent-data.entity';
|
|
4
4
|
import { ApprovalEntity } from './approval.entity';
|
|
5
5
|
declare class LeadSharedColumns {
|
|
@@ -92,10 +92,11 @@ export declare class LeadColumns extends LeadSharedColumns {
|
|
|
92
92
|
export declare class LeadEntity extends LeadColumns {
|
|
93
93
|
data?: LeadDataEntity[];
|
|
94
94
|
approvals?: ApprovalEntity[];
|
|
95
|
-
files?:
|
|
95
|
+
files?: LeadFileEntity[];
|
|
96
96
|
additionalContacts?: LeadsAdditionalContact[];
|
|
97
97
|
consents?: LeadsConsentData[];
|
|
98
98
|
}
|
|
99
|
+
export type CreateLeadReferenceEntity = Pick<LeadEntity, 'id'>;
|
|
99
100
|
declare class LeadDataColumns extends LeadSharedColumns {
|
|
100
101
|
}
|
|
101
102
|
export declare class LeadDataEntity extends LeadDataColumns {
|
|
@@ -13,7 +13,7 @@ exports.LeadDataZohoEntity = exports.SaleEntity = exports.LeadDataEntity = expor
|
|
|
13
13
|
const openapi = require("@nestjs/swagger");
|
|
14
14
|
const typeorm_1 = require("typeorm");
|
|
15
15
|
const leads_additional_contact_entity_1 = require("./leads-additional-contact.entity");
|
|
16
|
-
const
|
|
16
|
+
const lead_file_entity_1 = require("./lead-file.entity");
|
|
17
17
|
const leads_consent_data_entity_1 = require("./leads-consent-data.entity");
|
|
18
18
|
const approval_entity_1 = require("./approval.entity");
|
|
19
19
|
class LeadSharedColumns {
|
|
@@ -361,7 +361,7 @@ __decorate([
|
|
|
361
361
|
], LeadColumns.prototype, "updateByUserChannel", void 0);
|
|
362
362
|
let LeadEntity = class LeadEntity extends LeadColumns {
|
|
363
363
|
static _OPENAPI_METADATA_FACTORY() {
|
|
364
|
-
return { data: { required: false, type: () => [require("./lead.entity").LeadDataEntity] }, approvals: { required: false, type: () => [require("./approval.entity").ApprovalEntity] }, files: { required: false, type: () => [require("./
|
|
364
|
+
return { data: { required: false, type: () => [require("./lead.entity").LeadDataEntity] }, approvals: { required: false, type: () => [require("./approval.entity").ApprovalEntity] }, files: { required: false, type: () => [require("./lead-file.entity").LeadFileEntity] }, additionalContacts: { required: false, type: () => [require("./leads-additional-contact.entity").LeadsAdditionalContact] }, consents: { required: false, type: () => [require("./leads-consent-data.entity").LeadsConsentData] } };
|
|
365
365
|
}
|
|
366
366
|
};
|
|
367
367
|
exports.LeadEntity = LeadEntity;
|
|
@@ -374,7 +374,7 @@ __decorate([
|
|
|
374
374
|
__metadata("design:type", Array)
|
|
375
375
|
], LeadEntity.prototype, "approvals", void 0);
|
|
376
376
|
__decorate([
|
|
377
|
-
(0, typeorm_1.OneToMany)(() =>
|
|
377
|
+
(0, typeorm_1.OneToMany)(() => lead_file_entity_1.LeadFileEntity, (data) => data.lead),
|
|
378
378
|
__metadata("design:type", Array)
|
|
379
379
|
], LeadEntity.prototype, "files", void 0);
|
|
380
380
|
__decorate([
|
|
@@ -20,10 +20,6 @@ export declare class DashboardApprovalFilterDto extends PaginationQueryDto {
|
|
|
20
20
|
approved?: 'all' | 'true' | 'false';
|
|
21
21
|
validation?: string;
|
|
22
22
|
}
|
|
23
|
-
export declare class ApprovalFilterDto extends PaginationQueryDto {
|
|
24
|
-
saleProcessId: number;
|
|
25
|
-
ibanValidationId: string;
|
|
26
|
-
}
|
|
27
23
|
export declare class ApprovalValidationDataFilterDto extends PaginationQueryDto {
|
|
28
24
|
}
|
|
29
25
|
export declare class ApprovalIndividualIdentificationDto extends CustomerIdentificationDto {
|
|
@@ -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.CreateApprovalValidationDataDto = exports.ApprovalValidationDataDtoBuilder = exports.ApprovalValidationDataDto = exports.UpdateApprovalSaleProcessIbanValidationDto = exports.UpdateApprovalSaleProcessActiveCustomerContactMediumValidationDto = exports.UpdateApprovalSaleProcessDto = exports.PatchApprovalValidationDataDto = exports.PatchApprovalDataDto = exports.UpdateApprovalDataDto = exports.PartialCreateApprovalDataDto = exports.CreateApprovalDataDto = exports.ApprovalWithGroupsDto = exports.ApprovalDataGroupDto = exports.ApprovalDataDtoBuilder = exports.ApprovalDataDto = exports.ApprovalDataCustomerDto = exports.UpdateApprovalDto = exports.UpdateApprovalBusinessDto = exports.UpdateApprovalBillingDto = exports.UpdateApprovalCustomerDto = exports.PartialCreateApprovalDto = exports.CreateApprovalDto = exports.ApprovalDto = exports.ApprovalBillingDtoBuilder = exports.ApprovalBillingDto = exports.ApprovalBusinessDtoBuilder = exports.ApprovalBusinessDto = exports.ApprovalCustomerDtoBuilder = exports.ApprovalCustomerDto = exports.ApprovalOrganizationIdentificationDto = exports.ApprovalIndividualIdentificationDto = exports.ApprovalValidationDataFilterDto = exports.
|
|
12
|
+
exports.CreateApprovalValidationDataDto = exports.ApprovalValidationDataDtoBuilder = exports.ApprovalValidationDataDto = exports.UpdateApprovalSaleProcessIbanValidationDto = exports.UpdateApprovalSaleProcessActiveCustomerContactMediumValidationDto = exports.UpdateApprovalSaleProcessDto = exports.PatchApprovalValidationDataDto = exports.PatchApprovalDataDto = exports.UpdateApprovalDataDto = exports.PartialCreateApprovalDataDto = exports.CreateApprovalDataDto = exports.ApprovalWithGroupsDto = exports.ApprovalDataGroupDto = exports.ApprovalDataDtoBuilder = exports.ApprovalDataDto = exports.ApprovalDataCustomerDto = exports.UpdateApprovalDto = exports.UpdateApprovalBusinessDto = exports.UpdateApprovalBillingDto = exports.UpdateApprovalCustomerDto = exports.PartialCreateApprovalDto = exports.CreateApprovalDto = exports.ApprovalDto = exports.ApprovalBillingDtoBuilder = exports.ApprovalBillingDto = exports.ApprovalBusinessDtoBuilder = exports.ApprovalBusinessDto = exports.ApprovalCustomerDtoBuilder = exports.ApprovalCustomerDto = exports.ApprovalOrganizationIdentificationDto = exports.ApprovalIndividualIdentificationDto = exports.ApprovalValidationDataFilterDto = exports.DashboardApprovalFilterDto = void 0;
|
|
13
13
|
const openapi = require("@nestjs/swagger");
|
|
14
14
|
const swagger_1 = require("@nestjs/swagger");
|
|
15
15
|
const constants_1 = require("../../common/constants");
|
|
@@ -109,24 +109,6 @@ __decorate([
|
|
|
109
109
|
(0, class_validator_1.IsOptional)(),
|
|
110
110
|
__metadata("design:type", String)
|
|
111
111
|
], DashboardApprovalFilterDto.prototype, "validation", void 0);
|
|
112
|
-
class ApprovalFilterDto extends common_entity_1.PaginationQueryDto {
|
|
113
|
-
static _OPENAPI_METADATA_FACTORY() {
|
|
114
|
-
return { saleProcessId: { required: true, type: () => Number, minimum: 1 }, ibanValidationId: { required: true, type: () => String } };
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
exports.ApprovalFilterDto = ApprovalFilterDto;
|
|
118
|
-
__decorate([
|
|
119
|
-
(0, class_validator_1.IsInt)(),
|
|
120
|
-
(0, class_validator_1.Min)(1),
|
|
121
|
-
(0, class_transformer_1.Transform)(({ value }) => Number(value)),
|
|
122
|
-
__metadata("design:type", Number)
|
|
123
|
-
], ApprovalFilterDto.prototype, "saleProcessId", void 0);
|
|
124
|
-
__decorate([
|
|
125
|
-
(0, class_validator_1.IsString)(),
|
|
126
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
127
|
-
(0, _validators_1.IsNotBlank)(),
|
|
128
|
-
__metadata("design:type", String)
|
|
129
|
-
], ApprovalFilterDto.prototype, "ibanValidationId", void 0);
|
|
130
112
|
class ApprovalValidationDataFilterDto extends common_entity_1.PaginationQueryDto {
|
|
131
113
|
static _OPENAPI_METADATA_FACTORY() {
|
|
132
114
|
return {};
|
|
@@ -17,3 +17,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./internal/internal.entity"), exports);
|
|
18
18
|
__exportStar(require("./sale-process.credit-bureau-validation.entity"), exports);
|
|
19
19
|
__exportStar(require("./sale-process.entity"), exports);
|
|
20
|
+
__exportStar(require("./sale-process.file.entity"), exports);
|
|
@@ -28,6 +28,8 @@ export declare class SaleProcessFiltersQueryDto extends PaginationQueryDto {
|
|
|
28
28
|
customerId?: string;
|
|
29
29
|
identificationNumber?: string;
|
|
30
30
|
}
|
|
31
|
+
export declare class SaleProcessFilesFiltersQueryDto extends PaginationQueryDto {
|
|
32
|
+
}
|
|
31
33
|
export declare class CreateApprovalDataBaseDto {
|
|
32
34
|
validation: SaleProcessApprovalValidation;
|
|
33
35
|
}
|
|
@@ -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.SaleProcessSaleDto = exports.SaleProcessSaleIbanValidationDto = exports.SaleProcessCacheJobRetryDto = exports.CreateSaleProcessApprovalDto = exports.CreateApprovalDataIbanValidationRejectedDto = exports.CreateApprovalDataIbanValidationRejectedBillingDto = exports.CreateApprovalDataBaseDto = exports.SaleProcessFiltersQueryDto = exports.SaleProcessFiltersDto = void 0;
|
|
12
|
+
exports.SaleProcessSaleDto = exports.SaleProcessSaleIbanValidationDto = exports.SaleProcessCacheJobRetryDto = exports.CreateSaleProcessApprovalDto = exports.CreateApprovalDataIbanValidationRejectedDto = exports.CreateApprovalDataIbanValidationRejectedBillingDto = exports.CreateApprovalDataBaseDto = exports.SaleProcessFilesFiltersQueryDto = exports.SaleProcessFiltersQueryDto = exports.SaleProcessFiltersDto = void 0;
|
|
13
13
|
const openapi = require("@nestjs/swagger");
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
15
|
const class_transformer_1 = require("class-transformer");
|
|
@@ -105,6 +105,12 @@ __decorate([
|
|
|
105
105
|
(0, class_validator_1.IsOptional)(),
|
|
106
106
|
__metadata("design:type", String)
|
|
107
107
|
], SaleProcessFiltersQueryDto.prototype, "identificationNumber", void 0);
|
|
108
|
+
class SaleProcessFilesFiltersQueryDto extends common_entity_1.PaginationQueryDto {
|
|
109
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
110
|
+
return {};
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
exports.SaleProcessFilesFiltersQueryDto = SaleProcessFilesFiltersQueryDto;
|
|
108
114
|
class CreateApprovalDataBaseDto {
|
|
109
115
|
static _OPENAPI_METADATA_FACTORY() {
|
|
110
116
|
return { validation: { required: true, enum: require("../constants/sys03.constants").SaleProcessApprovalValidation } };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { BpCustomerAccountDocumentType } from '../../bss/constants';
|
|
2
|
+
export declare class SaleProcessFileDto {
|
|
3
|
+
id: number;
|
|
4
|
+
saleProcessId: number;
|
|
5
|
+
documentId?: string;
|
|
6
|
+
fileName: string;
|
|
7
|
+
contentType: string;
|
|
8
|
+
type: BpCustomerAccountDocumentType;
|
|
9
|
+
comment?: string;
|
|
10
|
+
transactionId?: string;
|
|
11
|
+
}
|
|
12
|
+
declare const CreateSaleProcessFileDto_base: import("@nestjs/common").Type<Pick<SaleProcessFileDto, "type" | "fileName" | "contentType" | "comment" | "transactionId" | "saleProcessId">>;
|
|
13
|
+
export declare class CreateSaleProcessFileDto extends CreateSaleProcessFileDto_base {
|
|
14
|
+
}
|
|
15
|
+
declare const PatchSaleProcessFileDto_base: import("@nestjs/common").Type<Partial<Pick<SaleProcessFileDto, keyof SaleProcessFileDto>>>;
|
|
16
|
+
export declare class PatchSaleProcessFileDto extends PatchSaleProcessFileDto_base {
|
|
17
|
+
}
|
|
18
|
+
export declare class CreateSaleProcessFileReqDto {
|
|
19
|
+
saleProcessId: number;
|
|
20
|
+
fileName: string;
|
|
21
|
+
type: BpCustomerAccountDocumentType;
|
|
22
|
+
comment?: string;
|
|
23
|
+
transactionId?: string;
|
|
24
|
+
}
|
|
25
|
+
declare const UpdateSaleProcessFileReqDto_base: import("@nestjs/common").Type<Pick<CreateSaleProcessFileReqDto, "type" | "fileName" | "comment">>;
|
|
26
|
+
export declare class UpdateSaleProcessFileReqDto extends UpdateSaleProcessFileReqDto_base {
|
|
27
|
+
}
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,89 @@
|
|
|
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.UpdateSaleProcessFileReqDto = exports.CreateSaleProcessFileReqDto = exports.PatchSaleProcessFileDto = exports.CreateSaleProcessFileDto = exports.SaleProcessFileDto = void 0;
|
|
13
|
+
const openapi = require("@nestjs/swagger");
|
|
14
|
+
const constants_1 = require("../../bss/constants");
|
|
15
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
16
|
+
const _validators_1 = require("../../validators/index");
|
|
17
|
+
const class_transformer_1 = require("class-transformer");
|
|
18
|
+
const class_validator_1 = require("class-validator");
|
|
19
|
+
class SaleProcessFileDto {
|
|
20
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
21
|
+
return { id: { required: true, type: () => Number }, saleProcessId: { required: true, type: () => Number }, documentId: { required: false, type: () => String }, fileName: { required: true, type: () => String }, contentType: { required: true, type: () => String }, type: { required: true, enum: require("../../bss/constants/bp.constants").BpCustomerAccountDocumentType }, comment: { required: false, type: () => String }, transactionId: { required: false, type: () => String } };
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.SaleProcessFileDto = SaleProcessFileDto;
|
|
25
|
+
class CreateSaleProcessFileDto extends (0, swagger_1.PickType)(SaleProcessFileDto, [
|
|
26
|
+
'saleProcessId',
|
|
27
|
+
'fileName',
|
|
28
|
+
'contentType',
|
|
29
|
+
'type',
|
|
30
|
+
'comment',
|
|
31
|
+
'transactionId'
|
|
32
|
+
]) {
|
|
33
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
34
|
+
return {};
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
exports.CreateSaleProcessFileDto = CreateSaleProcessFileDto;
|
|
38
|
+
class PatchSaleProcessFileDto extends (0, swagger_1.PartialType)((0, swagger_1.PickType)(SaleProcessFileDto, ['documentId', 'fileName', 'contentType', 'type', 'comment', 'transactionId'])) {
|
|
39
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
40
|
+
return {};
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.PatchSaleProcessFileDto = PatchSaleProcessFileDto;
|
|
44
|
+
class CreateSaleProcessFileReqDto {
|
|
45
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
46
|
+
return { saleProcessId: { required: true, type: () => Number }, fileName: { required: true, type: () => String }, type: { required: true, enum: require("../../bss/constants/bp.constants").BpCustomerAccountDocumentType }, comment: { required: false, type: () => String, maxLength: 1000 }, transactionId: { required: false, type: () => String } };
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
exports.CreateSaleProcessFileReqDto = CreateSaleProcessFileReqDto;
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, class_validator_1.IsInt)(),
|
|
52
|
+
(0, class_transformer_1.Transform)(({ value }) => {
|
|
53
|
+
if (value) {
|
|
54
|
+
return Number(value);
|
|
55
|
+
}
|
|
56
|
+
}),
|
|
57
|
+
__metadata("design:type", Number)
|
|
58
|
+
], CreateSaleProcessFileReqDto.prototype, "saleProcessId", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, class_validator_1.IsString)(),
|
|
61
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
62
|
+
(0, _validators_1.IsNotBlank)(),
|
|
63
|
+
__metadata("design:type", String)
|
|
64
|
+
], CreateSaleProcessFileReqDto.prototype, "fileName", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, class_validator_1.IsEnum)(constants_1.BpCustomerAccountDocumentType),
|
|
67
|
+
__metadata("design:type", String)
|
|
68
|
+
], CreateSaleProcessFileReqDto.prototype, "type", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, class_validator_1.IsString)(),
|
|
71
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
72
|
+
(0, _validators_1.IsNotBlank)(),
|
|
73
|
+
(0, class_validator_1.MaxLength)(1000),
|
|
74
|
+
(0, class_validator_1.IsOptional)(),
|
|
75
|
+
__metadata("design:type", String)
|
|
76
|
+
], CreateSaleProcessFileReqDto.prototype, "comment", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, class_validator_1.IsString)(),
|
|
79
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
80
|
+
(0, _validators_1.IsNotBlank)(),
|
|
81
|
+
(0, class_validator_1.IsOptional)(),
|
|
82
|
+
__metadata("design:type", String)
|
|
83
|
+
], CreateSaleProcessFileReqDto.prototype, "transactionId", void 0);
|
|
84
|
+
class UpdateSaleProcessFileReqDto extends (0, swagger_1.PickType)(CreateSaleProcessFileReqDto, ['fileName', 'type', 'comment']) {
|
|
85
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
86
|
+
return {};
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
exports.UpdateSaleProcessFileReqDto = UpdateSaleProcessFileReqDto;
|