tychat-contracts 1.6.66 → 1.6.67
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/fiscal/enqueue-nfe.dto.d.ts +35 -0
- package/dist/fiscal/enqueue-nfe.dto.d.ts.map +1 -1
- package/dist/fiscal/enqueue-nfe.dto.js +85 -1
- package/dist/fiscal/fiscal-rmq-patterns.d.ts +5 -0
- package/dist/fiscal/fiscal-rmq-patterns.d.ts.map +1 -1
- package/dist/fiscal/fiscal-rmq-patterns.js +6 -1
- package/dist/patients/create-patient.dto.d.ts +14 -0
- package/dist/patients/create-patient.dto.d.ts.map +1 -1
- package/dist/patients/create-patient.dto.js +102 -1
- package/package.json +1 -1
|
@@ -1,9 +1,44 @@
|
|
|
1
1
|
export declare const FISCAL_DOCUMENT_TYPES: readonly ["nfe", "nfce", "nfse"];
|
|
2
2
|
export type FiscalDocumentType = (typeof FISCAL_DOCUMENT_TYPES)[number];
|
|
3
|
+
export declare const FISCAL_DOCUMENT_STATUSES: readonly ["queued", "processing", "authorized", "rejected", "failed", "cancel_queued", "cancel_processing", "canceled", "cancel_failed"];
|
|
4
|
+
export type FiscalDocumentStatusDto = (typeof FISCAL_DOCUMENT_STATUSES)[number];
|
|
3
5
|
export declare class EnqueueNfeDto {
|
|
4
6
|
documentType?: FiscalDocumentType;
|
|
5
7
|
companyCpfCnpj: string;
|
|
6
8
|
payload: Record<string, unknown>;
|
|
7
9
|
referenceId?: string;
|
|
8
10
|
}
|
|
11
|
+
export declare class ListFiscalDocumentsQueryDto {
|
|
12
|
+
documentType?: FiscalDocumentType;
|
|
13
|
+
status?: FiscalDocumentStatusDto;
|
|
14
|
+
referenceId?: string;
|
|
15
|
+
acbrId?: string;
|
|
16
|
+
createdFrom?: string;
|
|
17
|
+
createdTo?: string;
|
|
18
|
+
page?: number;
|
|
19
|
+
limit?: number;
|
|
20
|
+
}
|
|
21
|
+
export type FiscalDocumentListItemDto = {
|
|
22
|
+
id: string;
|
|
23
|
+
documentType: FiscalDocumentType;
|
|
24
|
+
companyCpfCnpj: string;
|
|
25
|
+
referenceId: string | null;
|
|
26
|
+
acbrId: string | null;
|
|
27
|
+
status: FiscalDocumentStatusDto;
|
|
28
|
+
lastError: string | null;
|
|
29
|
+
createdAt: string;
|
|
30
|
+
updatedAt: string;
|
|
31
|
+
processedAt: string | null;
|
|
32
|
+
canceledAt: string | null;
|
|
33
|
+
archivedAt: string | null;
|
|
34
|
+
};
|
|
35
|
+
export type ListFiscalDocumentsResponseDto = {
|
|
36
|
+
items: FiscalDocumentListItemDto[];
|
|
37
|
+
total: number;
|
|
38
|
+
page: number;
|
|
39
|
+
limit: number;
|
|
40
|
+
};
|
|
41
|
+
export declare class InutilizeFiscalDocumentDto {
|
|
42
|
+
justificativa?: string;
|
|
43
|
+
}
|
|
9
44
|
//# sourceMappingURL=enqueue-nfe.dto.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enqueue-nfe.dto.d.ts","sourceRoot":"","sources":["../../src/fiscal/enqueue-nfe.dto.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"enqueue-nfe.dto.d.ts","sourceRoot":"","sources":["../../src/fiscal/enqueue-nfe.dto.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,qBAAqB,kCAAmC,CAAC;AACtE,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAAC;AAExE,eAAO,MAAM,wBAAwB,0IAU3B,CAAC;AACX,MAAM,MAAM,uBAAuB,GAAG,CAAC,OAAO,wBAAwB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEhF,qBAAa,aAAa;IAIxB,YAAY,CAAC,EAAE,kBAAkB,CAAC;IAIlC,cAAc,EAAE,MAAM,CAAC;IAGvB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAIjC,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,qBAAa,2BAA2B;IAItC,YAAY,CAAC,EAAE,kBAAkB,CAAC;IAKlC,MAAM,CAAC,EAAE,uBAAuB,CAAC;IAKjC,WAAW,CAAC,EAAE,MAAM,CAAC;IAKrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAKhB,WAAW,CAAC,EAAE,MAAM,CAAC;IAKrB,SAAS,CAAC,EAAE,MAAM,CAAC;IAMnB,IAAI,CAAC,EAAE,MAAM,CAAC;IAOd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,MAAM,yBAAyB,GAAG;IACtC,EAAE,EAAE,MAAM,CAAC;IACX,YAAY,EAAE,kBAAkB,CAAC;IACjC,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,MAAM,EAAE,uBAAuB,CAAC;IAChC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,8BAA8B,GAAG;IAC3C,KAAK,EAAE,yBAAyB,EAAE,CAAC;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,qBAAa,0BAA0B;IAIrC,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB"}
|
|
@@ -9,9 +9,21 @@ 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.EnqueueNfeDto = exports.FISCAL_DOCUMENT_TYPES = void 0;
|
|
12
|
+
exports.InutilizeFiscalDocumentDto = exports.ListFiscalDocumentsQueryDto = exports.EnqueueNfeDto = exports.FISCAL_DOCUMENT_STATUSES = exports.FISCAL_DOCUMENT_TYPES = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
13
14
|
const class_validator_1 = require("class-validator");
|
|
14
15
|
exports.FISCAL_DOCUMENT_TYPES = ['nfe', 'nfce', 'nfse'];
|
|
16
|
+
exports.FISCAL_DOCUMENT_STATUSES = [
|
|
17
|
+
'queued',
|
|
18
|
+
'processing',
|
|
19
|
+
'authorized',
|
|
20
|
+
'rejected',
|
|
21
|
+
'failed',
|
|
22
|
+
'cancel_queued',
|
|
23
|
+
'cancel_processing',
|
|
24
|
+
'canceled',
|
|
25
|
+
'cancel_failed',
|
|
26
|
+
];
|
|
15
27
|
class EnqueueNfeDto {
|
|
16
28
|
documentType;
|
|
17
29
|
companyCpfCnpj;
|
|
@@ -39,3 +51,75 @@ __decorate([
|
|
|
39
51
|
(0, class_validator_1.IsOptional)(),
|
|
40
52
|
__metadata("design:type", String)
|
|
41
53
|
], EnqueueNfeDto.prototype, "referenceId", void 0);
|
|
54
|
+
class ListFiscalDocumentsQueryDto {
|
|
55
|
+
documentType;
|
|
56
|
+
status;
|
|
57
|
+
referenceId;
|
|
58
|
+
acbrId;
|
|
59
|
+
createdFrom;
|
|
60
|
+
createdTo;
|
|
61
|
+
page;
|
|
62
|
+
limit;
|
|
63
|
+
}
|
|
64
|
+
exports.ListFiscalDocumentsQueryDto = ListFiscalDocumentsQueryDto;
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, swagger_1.ApiPropertyOptional)({ enum: exports.FISCAL_DOCUMENT_TYPES, default: 'nfse' }),
|
|
67
|
+
(0, class_validator_1.IsOptional)(),
|
|
68
|
+
(0, class_validator_1.IsIn)(exports.FISCAL_DOCUMENT_TYPES),
|
|
69
|
+
__metadata("design:type", String)
|
|
70
|
+
], ListFiscalDocumentsQueryDto.prototype, "documentType", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, swagger_1.ApiPropertyOptional)({ enum: exports.FISCAL_DOCUMENT_STATUSES }),
|
|
73
|
+
(0, class_validator_1.IsOptional)(),
|
|
74
|
+
(0, class_validator_1.IsIn)(exports.FISCAL_DOCUMENT_STATUSES),
|
|
75
|
+
__metadata("design:type", String)
|
|
76
|
+
], ListFiscalDocumentsQueryDto.prototype, "status", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Busca por referência (ex.: appointmentId)' }),
|
|
79
|
+
(0, class_validator_1.IsOptional)(),
|
|
80
|
+
(0, class_validator_1.IsString)(),
|
|
81
|
+
__metadata("design:type", String)
|
|
82
|
+
], ListFiscalDocumentsQueryDto.prototype, "referenceId", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Busca por ACBR ID (parcial ou completo)' }),
|
|
85
|
+
(0, class_validator_1.IsOptional)(),
|
|
86
|
+
(0, class_validator_1.IsString)(),
|
|
87
|
+
__metadata("design:type", String)
|
|
88
|
+
], ListFiscalDocumentsQueryDto.prototype, "acbrId", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Data inicial (ISO: YYYY-MM-DD)' }),
|
|
91
|
+
(0, class_validator_1.IsOptional)(),
|
|
92
|
+
(0, class_validator_1.IsString)(),
|
|
93
|
+
__metadata("design:type", String)
|
|
94
|
+
], ListFiscalDocumentsQueryDto.prototype, "createdFrom", void 0);
|
|
95
|
+
__decorate([
|
|
96
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Data final (ISO: YYYY-MM-DD)' }),
|
|
97
|
+
(0, class_validator_1.IsOptional)(),
|
|
98
|
+
(0, class_validator_1.IsString)(),
|
|
99
|
+
__metadata("design:type", String)
|
|
100
|
+
], ListFiscalDocumentsQueryDto.prototype, "createdTo", void 0);
|
|
101
|
+
__decorate([
|
|
102
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Página (inicia em 1)', default: 1, minimum: 1 }),
|
|
103
|
+
(0, class_validator_1.IsOptional)(),
|
|
104
|
+
(0, class_validator_1.IsInt)(),
|
|
105
|
+
(0, class_validator_1.Min)(1),
|
|
106
|
+
__metadata("design:type", Number)
|
|
107
|
+
], ListFiscalDocumentsQueryDto.prototype, "page", void 0);
|
|
108
|
+
__decorate([
|
|
109
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Registros por página', default: 20, minimum: 1, maximum: 200 }),
|
|
110
|
+
(0, class_validator_1.IsOptional)(),
|
|
111
|
+
(0, class_validator_1.IsInt)(),
|
|
112
|
+
(0, class_validator_1.Min)(1),
|
|
113
|
+
(0, class_validator_1.Max)(200),
|
|
114
|
+
__metadata("design:type", Number)
|
|
115
|
+
], ListFiscalDocumentsQueryDto.prototype, "limit", void 0);
|
|
116
|
+
class InutilizeFiscalDocumentDto {
|
|
117
|
+
justificativa;
|
|
118
|
+
}
|
|
119
|
+
exports.InutilizeFiscalDocumentDto = InutilizeFiscalDocumentDto;
|
|
120
|
+
__decorate([
|
|
121
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Justificativa (opcional)' }),
|
|
122
|
+
(0, class_validator_1.IsOptional)(),
|
|
123
|
+
(0, class_validator_1.IsString)(),
|
|
124
|
+
__metadata("design:type", String)
|
|
125
|
+
], InutilizeFiscalDocumentDto.prototype, "justificativa", void 0);
|
|
@@ -9,12 +9,17 @@ export declare const FISCAL_COMPANIES_LOGO_GET = "fiscal.companies.logo.get";
|
|
|
9
9
|
export declare const FISCAL_COMPANIES_LOGO_DELETE = "fiscal.companies.logo.delete";
|
|
10
10
|
export declare const FISCAL_COMPANIES_NFSE_CONFIG_GET = "fiscal.companies.nfse_config.get";
|
|
11
11
|
export declare const FISCAL_COMPANIES_NFSE_CONFIG_PUT = "fiscal.companies.nfse_config.put";
|
|
12
|
+
export declare const FISCAL_COMPANIES_SETTINGS_GET = "fiscal.companies.settings.get";
|
|
13
|
+
export declare const FISCAL_COMPANIES_SETTINGS_PUT = "fiscal.companies.settings.put";
|
|
12
14
|
export declare const FISCAL_DOCUMENTS_ENQUEUE = "fiscal.documents.enqueue";
|
|
15
|
+
export declare const FISCAL_DOCUMENTS_LIST = "fiscal.documents.list";
|
|
13
16
|
export declare const FISCAL_DOCUMENTS_GET = "fiscal.documents.get";
|
|
14
17
|
export declare const FISCAL_DOCUMENTS_CANCEL = "fiscal.documents.cancel";
|
|
18
|
+
export declare const FISCAL_DOCUMENTS_INUTILIZE = "fiscal.documents.inutilize";
|
|
15
19
|
export declare const FISCAL_DOCUMENTS_SYNC = "fiscal.documents.sync";
|
|
16
20
|
export declare const FISCAL_DOCUMENTS_PDF = "fiscal.documents.pdf";
|
|
17
21
|
export declare const FISCAL_DOCUMENTS_XML = "fiscal.documents.xml";
|
|
22
|
+
export declare const FISCAL_QUOTA_GET = "fiscal.quota.get";
|
|
18
23
|
export declare const FISCAL_NFSE_CIDADES = "fiscal.nfse.cidades";
|
|
19
24
|
export declare const FISCAL_NFSE_CIDADE_METADADOS = "fiscal.nfse.cidade_metadados";
|
|
20
25
|
export declare const FISCAL_NFSE_LIST = "fiscal.nfse.list";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fiscal-rmq-patterns.d.ts","sourceRoot":"","sources":["../../src/fiscal/fiscal-rmq-patterns.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,0BAA0B,CAAC;AAC7D,eAAO,MAAM,oBAAoB,yBAAyB,CAAC;AAC3D,eAAO,MAAM,uBAAuB,4BAA4B,CAAC;AACjE,eAAO,MAAM,yBAAyB,8BAA8B,CAAC;AACrE,eAAO,MAAM,mCAAmC,wCACT,CAAC;AACxC,eAAO,MAAM,gCAAgC,qCACT,CAAC;AACrC,eAAO,MAAM,yBAAyB,8BAA8B,C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M,4BAA4B,iCAAiC,CAAC;AAC3E,eAAO,MAAM,gBAAgB,qBAAqB,CAAC;AACnD,eAAO,MAAM,gBAAgB,qBAAqB,CAAC;AACnD,eAAO,MAAM,eAAe,oBAAoB,CAAC;AACjD,eAAO,MAAM,gBAAgB,qBAAqB,CAAC;AACnD,eAAO,MAAM,kBAAkB,uBAAuB,CAAC;AACvD,eAAO,MAAM,eAAe,oBAAoB,CAAC;AACjD,eAAO,MAAM,eAAe,oBAAoB,CAAC;AACjD,eAAO,MAAM,mBAAmB,wBAAwB,CAAC;AACzD,eAAO,MAAM,4BAA4B,iCAAiC,CAAC;AAC3E,eAAO,MAAM,4BAA4B,iCAAiC,CAAC;AAC3E,eAAO,MAAM,sBAAsB,2BAA2B,CAAC;AAC/D,eAAO,MAAM,sBAAsB,2BAA2B,CAAC;AAC/D,eAAO,MAAM,qBAAqB,0BAA0B,CAAC;AAC7D,eAAO,MAAM,oBAAoB,yBAAyB,CAAC;AAC3D,eAAO,MAAM,0BAA0B,+BAA+B,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FISCAL_NFSE_DPS_LOTES_EMIT = exports.FISCAL_NFSE_DPS_EMIT = exports.FISCAL_NFSE_LOTES_GET = exports.FISCAL_NFSE_LOTES_EMIT = exports.FISCAL_NFSE_LOTES_LIST = exports.FISCAL_NFSE_CANCELAMENTO_XML = exports.FISCAL_NFSE_CANCELAMENTO_GET = exports.FISCAL_NFSE_XML_DPS = exports.FISCAL_NFSE_XML = exports.FISCAL_NFSE_PDF = exports.FISCAL_NFSE_CANCEL = exports.FISCAL_NFSE_SYNC = exports.FISCAL_NFSE_GET = exports.FISCAL_NFSE_EMIT = exports.FISCAL_NFSE_LIST = exports.FISCAL_NFSE_CIDADE_METADADOS = exports.FISCAL_NFSE_CIDADES = exports.FISCAL_DOCUMENTS_XML = exports.FISCAL_DOCUMENTS_PDF = exports.FISCAL_DOCUMENTS_SYNC = exports.FISCAL_DOCUMENTS_CANCEL = exports.FISCAL_DOCUMENTS_GET = exports.FISCAL_DOCUMENTS_ENQUEUE = exports.FISCAL_COMPANIES_NFSE_CONFIG_PUT = exports.FISCAL_COMPANIES_NFSE_CONFIG_GET = exports.FISCAL_COMPANIES_LOGO_DELETE = exports.FISCAL_COMPANIES_LOGO_GET = exports.FISCAL_COMPANIES_LOGO_PUT = exports.FISCAL_COMPANIES_CERTIFICATE_GET = exports.FISCAL_COMPANIES_CERTIFICATE_UPLOAD = exports.FISCAL_COMPANIES_ACBR_GET = exports.FISCAL_COMPANIES_CREATE = exports.FISCAL_COMPANIES_GET = exports.FISCAL_COMPANIES_LIST = void 0;
|
|
3
|
+
exports.FISCAL_NFSE_DPS_LOTES_EMIT = exports.FISCAL_NFSE_DPS_EMIT = exports.FISCAL_NFSE_LOTES_GET = exports.FISCAL_NFSE_LOTES_EMIT = exports.FISCAL_NFSE_LOTES_LIST = exports.FISCAL_NFSE_CANCELAMENTO_XML = exports.FISCAL_NFSE_CANCELAMENTO_GET = exports.FISCAL_NFSE_XML_DPS = exports.FISCAL_NFSE_XML = exports.FISCAL_NFSE_PDF = exports.FISCAL_NFSE_CANCEL = exports.FISCAL_NFSE_SYNC = exports.FISCAL_NFSE_GET = exports.FISCAL_NFSE_EMIT = exports.FISCAL_NFSE_LIST = exports.FISCAL_NFSE_CIDADE_METADADOS = exports.FISCAL_NFSE_CIDADES = exports.FISCAL_QUOTA_GET = exports.FISCAL_DOCUMENTS_XML = exports.FISCAL_DOCUMENTS_PDF = exports.FISCAL_DOCUMENTS_SYNC = exports.FISCAL_DOCUMENTS_INUTILIZE = exports.FISCAL_DOCUMENTS_CANCEL = exports.FISCAL_DOCUMENTS_GET = exports.FISCAL_DOCUMENTS_LIST = exports.FISCAL_DOCUMENTS_ENQUEUE = exports.FISCAL_COMPANIES_SETTINGS_PUT = exports.FISCAL_COMPANIES_SETTINGS_GET = exports.FISCAL_COMPANIES_NFSE_CONFIG_PUT = exports.FISCAL_COMPANIES_NFSE_CONFIG_GET = exports.FISCAL_COMPANIES_LOGO_DELETE = exports.FISCAL_COMPANIES_LOGO_GET = exports.FISCAL_COMPANIES_LOGO_PUT = exports.FISCAL_COMPANIES_CERTIFICATE_GET = exports.FISCAL_COMPANIES_CERTIFICATE_UPLOAD = exports.FISCAL_COMPANIES_ACBR_GET = exports.FISCAL_COMPANIES_CREATE = exports.FISCAL_COMPANIES_GET = exports.FISCAL_COMPANIES_LIST = void 0;
|
|
4
4
|
exports.FISCAL_COMPANIES_LIST = 'fiscal.companies.list';
|
|
5
5
|
exports.FISCAL_COMPANIES_GET = 'fiscal.companies.get';
|
|
6
6
|
exports.FISCAL_COMPANIES_CREATE = 'fiscal.companies.create';
|
|
@@ -12,12 +12,17 @@ exports.FISCAL_COMPANIES_LOGO_GET = 'fiscal.companies.logo.get';
|
|
|
12
12
|
exports.FISCAL_COMPANIES_LOGO_DELETE = 'fiscal.companies.logo.delete';
|
|
13
13
|
exports.FISCAL_COMPANIES_NFSE_CONFIG_GET = 'fiscal.companies.nfse_config.get';
|
|
14
14
|
exports.FISCAL_COMPANIES_NFSE_CONFIG_PUT = 'fiscal.companies.nfse_config.put';
|
|
15
|
+
exports.FISCAL_COMPANIES_SETTINGS_GET = 'fiscal.companies.settings.get';
|
|
16
|
+
exports.FISCAL_COMPANIES_SETTINGS_PUT = 'fiscal.companies.settings.put';
|
|
15
17
|
exports.FISCAL_DOCUMENTS_ENQUEUE = 'fiscal.documents.enqueue';
|
|
18
|
+
exports.FISCAL_DOCUMENTS_LIST = 'fiscal.documents.list';
|
|
16
19
|
exports.FISCAL_DOCUMENTS_GET = 'fiscal.documents.get';
|
|
17
20
|
exports.FISCAL_DOCUMENTS_CANCEL = 'fiscal.documents.cancel';
|
|
21
|
+
exports.FISCAL_DOCUMENTS_INUTILIZE = 'fiscal.documents.inutilize';
|
|
18
22
|
exports.FISCAL_DOCUMENTS_SYNC = 'fiscal.documents.sync';
|
|
19
23
|
exports.FISCAL_DOCUMENTS_PDF = 'fiscal.documents.pdf';
|
|
20
24
|
exports.FISCAL_DOCUMENTS_XML = 'fiscal.documents.xml';
|
|
25
|
+
exports.FISCAL_QUOTA_GET = 'fiscal.quota.get';
|
|
21
26
|
exports.FISCAL_NFSE_CIDADES = 'fiscal.nfse.cidades';
|
|
22
27
|
exports.FISCAL_NFSE_CIDADE_METADADOS = 'fiscal.nfse.cidade_metadados';
|
|
23
28
|
exports.FISCAL_NFSE_LIST = 'fiscal.nfse.list';
|
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
export declare class PatientInvoiceRecipientDto {
|
|
2
|
+
id?: string;
|
|
3
|
+
name: string;
|
|
4
|
+
cpfCnpj: string;
|
|
5
|
+
email?: string | null;
|
|
6
|
+
phone?: string | null;
|
|
7
|
+
cep?: string | null;
|
|
8
|
+
cityIbge?: string | null;
|
|
9
|
+
street?: string | null;
|
|
10
|
+
number?: string | null;
|
|
11
|
+
neighborhood?: string | null;
|
|
12
|
+
complement?: string | null;
|
|
13
|
+
}
|
|
1
14
|
export declare class CreatePatientDto {
|
|
2
15
|
name: string;
|
|
3
16
|
cpf: string;
|
|
@@ -20,6 +33,7 @@ export declare class CreatePatientDto {
|
|
|
20
33
|
disabilityDescription?: string | null;
|
|
21
34
|
initialObservation?: string | null;
|
|
22
35
|
observation?: string | null;
|
|
36
|
+
invoiceRecipients?: PatientInvoiceRecipientDto[] | null;
|
|
23
37
|
avatarStorageId?: string | null;
|
|
24
38
|
avatarObjectKey?: string | null;
|
|
25
39
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-patient.dto.d.ts","sourceRoot":"","sources":["../../src/patients/create-patient.dto.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-patient.dto.d.ts","sourceRoot":"","sources":["../../src/patients/create-patient.dto.ts"],"names":[],"mappings":"AAeA,qBAAa,0BAA0B;IAIrC,EAAE,CAAC,E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AI,CAAC;IASzB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAO1B,aAAa,EAAE,OAAO,CAAC;IAWvB,qBAAqB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAUtC,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAYnC,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAU5B,iBAAiB,CAAC,EAAE,0BAA0B,EAAE,GAAG,IAAI,CAAC;IASxD,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAShC,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACjC"}
|
|
@@ -9,10 +9,100 @@ 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.CreatePatientDto = void 0;
|
|
12
|
+
exports.CreatePatientDto = exports.PatientInvoiceRecipientDto = void 0;
|
|
13
13
|
const swagger_1 = require("@nestjs/swagger");
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
15
|
const class_transformer_1 = require("class-transformer");
|
|
16
|
+
class PatientInvoiceRecipientDto {
|
|
17
|
+
id;
|
|
18
|
+
name;
|
|
19
|
+
cpfCnpj;
|
|
20
|
+
email;
|
|
21
|
+
phone;
|
|
22
|
+
cep;
|
|
23
|
+
cityIbge;
|
|
24
|
+
street;
|
|
25
|
+
number;
|
|
26
|
+
neighborhood;
|
|
27
|
+
complement;
|
|
28
|
+
}
|
|
29
|
+
exports.PatientInvoiceRecipientDto = PatientInvoiceRecipientDto;
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Identificador do tomador (UUID ou string livre)' }),
|
|
32
|
+
(0, class_validator_1.IsOptional)(),
|
|
33
|
+
(0, class_validator_1.IsString)(),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], PatientInvoiceRecipientDto.prototype, "id", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, swagger_1.ApiProperty)({ description: 'Nome/Razão social do tomador' }),
|
|
38
|
+
(0, class_validator_1.IsString)(),
|
|
39
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
40
|
+
(0, class_validator_1.MaxLength)(255),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], PatientInvoiceRecipientDto.prototype, "name", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, swagger_1.ApiProperty)({ description: 'CPF ou CNPJ do tomador (apenas dígitos)' }),
|
|
45
|
+
(0, class_validator_1.IsString)(),
|
|
46
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
47
|
+
(0, class_validator_1.MaxLength)(14),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], PatientInvoiceRecipientDto.prototype, "cpfCnpj", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'E-mail do tomador' }),
|
|
52
|
+
(0, class_validator_1.IsOptional)(),
|
|
53
|
+
(0, class_validator_1.IsEmail)({}, { message: 'email deve ser um e-mail válido' }),
|
|
54
|
+
(0, class_validator_1.MaxLength)(255),
|
|
55
|
+
__metadata("design:type", Object)
|
|
56
|
+
], PatientInvoiceRecipientDto.prototype, "email", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Telefone do tomador (apenas dígitos)' }),
|
|
59
|
+
(0, class_validator_1.IsOptional)(),
|
|
60
|
+
(0, class_validator_1.IsString)(),
|
|
61
|
+
(0, class_validator_1.MaxLength)(30),
|
|
62
|
+
__metadata("design:type", Object)
|
|
63
|
+
], PatientInvoiceRecipientDto.prototype, "phone", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'CEP (apenas dígitos)' }),
|
|
66
|
+
(0, class_validator_1.IsOptional)(),
|
|
67
|
+
(0, class_validator_1.IsString)(),
|
|
68
|
+
(0, class_validator_1.MaxLength)(8),
|
|
69
|
+
__metadata("design:type", Object)
|
|
70
|
+
], PatientInvoiceRecipientDto.prototype, "cep", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Código IBGE do município (cMun)' }),
|
|
73
|
+
(0, class_validator_1.IsOptional)(),
|
|
74
|
+
(0, class_validator_1.IsString)(),
|
|
75
|
+
(0, class_validator_1.MaxLength)(7),
|
|
76
|
+
__metadata("design:type", Object)
|
|
77
|
+
], PatientInvoiceRecipientDto.prototype, "cityIbge", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Logradouro' }),
|
|
80
|
+
(0, class_validator_1.IsOptional)(),
|
|
81
|
+
(0, class_validator_1.IsString)(),
|
|
82
|
+
(0, class_validator_1.MaxLength)(255),
|
|
83
|
+
__metadata("design:type", Object)
|
|
84
|
+
], PatientInvoiceRecipientDto.prototype, "street", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Número' }),
|
|
87
|
+
(0, class_validator_1.IsOptional)(),
|
|
88
|
+
(0, class_validator_1.IsString)(),
|
|
89
|
+
(0, class_validator_1.MaxLength)(30),
|
|
90
|
+
__metadata("design:type", Object)
|
|
91
|
+
], PatientInvoiceRecipientDto.prototype, "number", void 0);
|
|
92
|
+
__decorate([
|
|
93
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Bairro' }),
|
|
94
|
+
(0, class_validator_1.IsOptional)(),
|
|
95
|
+
(0, class_validator_1.IsString)(),
|
|
96
|
+
(0, class_validator_1.MaxLength)(255),
|
|
97
|
+
__metadata("design:type", Object)
|
|
98
|
+
], PatientInvoiceRecipientDto.prototype, "neighborhood", void 0);
|
|
99
|
+
__decorate([
|
|
100
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Complemento' }),
|
|
101
|
+
(0, class_validator_1.IsOptional)(),
|
|
102
|
+
(0, class_validator_1.IsString)(),
|
|
103
|
+
(0, class_validator_1.MaxLength)(255),
|
|
104
|
+
__metadata("design:type", Object)
|
|
105
|
+
], PatientInvoiceRecipientDto.prototype, "complement", void 0);
|
|
16
106
|
class CreatePatientDto {
|
|
17
107
|
name;
|
|
18
108
|
cpf;
|
|
@@ -35,6 +125,7 @@ class CreatePatientDto {
|
|
|
35
125
|
disabilityDescription;
|
|
36
126
|
initialObservation;
|
|
37
127
|
observation;
|
|
128
|
+
invoiceRecipients;
|
|
38
129
|
avatarStorageId;
|
|
39
130
|
avatarObjectKey;
|
|
40
131
|
}
|
|
@@ -257,6 +348,16 @@ __decorate([
|
|
|
257
348
|
(0, class_transformer_1.Transform)(({ value, obj }) => value ?? obj.notes ?? obj.observation),
|
|
258
349
|
__metadata("design:type", Object)
|
|
259
350
|
], CreatePatientDto.prototype, "observation", void 0);
|
|
351
|
+
__decorate([
|
|
352
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
353
|
+
description: 'Lista de tomadores para emissão de nota fiscal (ex.: empresa do paciente).',
|
|
354
|
+
type: [PatientInvoiceRecipientDto],
|
|
355
|
+
}),
|
|
356
|
+
(0, class_validator_1.IsOptional)(),
|
|
357
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
358
|
+
(0, class_transformer_1.Type)(() => PatientInvoiceRecipientDto),
|
|
359
|
+
__metadata("design:type", Object)
|
|
360
|
+
], CreatePatientDto.prototype, "invoiceRecipients", void 0);
|
|
260
361
|
__decorate([
|
|
261
362
|
(0, swagger_1.ApiPropertyOptional)({
|
|
262
363
|
description: 'ID do objeto no storage da foto de perfil',
|