adamo-types 2.0.83-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/common.entity.d.ts +3 -4
- package/dist/common/common.entity.js +8 -8
- 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/internal/internal.entity.d.ts +0 -15
- package/dist/sys03/sale-process/internal/internal.entity.js +1 -7
- package/dist/sys03/sale-process/sale-process.entity.d.ts +19 -5
- package/dist/sys03/sale-process/sale-process.entity.js +43 -25
- 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
|
@@ -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;
|