tychat-contracts 1.6.66 → 1.6.68
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/conversations/followup-events.dto.d.ts +2 -0
- package/dist/conversations/followup-events.dto.d.ts.map +1 -1
- package/dist/conversations/followup-events.dto.js +3 -1
- package/dist/conversations/followup-log-list-query.dto.d.ts +1 -1
- package/dist/conversations/followup-log-list-query.dto.d.ts.map +1 -1
- package/dist/conversations/followup-log-list-query.dto.js +1 -0
- package/dist/conversations/followup-log-response.dto.d.ts +1 -0
- package/dist/conversations/followup-log-response.dto.d.ts.map +1 -1
- package/dist/conversations/followup-log-response.dto.js +9 -0
- 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
- package/src/conversations/followup-events.dto.ts +4 -0
- package/src/conversations/followup-log-list-query.dto.ts +1 -0
- package/src/conversations/followup-log-response.dto.ts +7 -0
|
@@ -8,6 +8,8 @@ export declare const TOPIC_APPOINTMENT_CHANGED = "APPOINTMENT_CHANGED";
|
|
|
8
8
|
export declare const TOPIC_FOLLOWUP_LOG_LIST = "followup.log.list";
|
|
9
9
|
/** Kafka request-reply: latest follow-up log by patient IDs. */
|
|
10
10
|
export declare const TOPIC_FOLLOWUP_LOG_LATEST_BY_PATIENT_IDS = "followup.log.latestByPatientIds";
|
|
11
|
+
/** RPC: dispara satisfação pós-atendimento ao encerrar sessão manualmente. */
|
|
12
|
+
export declare const TOPIC_FOLLOWUP_SESSION_CLOSE_SATISFACTION = "followup.session.close.dispatchSatisfaction";
|
|
11
13
|
export declare class FollowupConversationEventPayload {
|
|
12
14
|
tenant: string;
|
|
13
15
|
patientId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"followup-events.dto.d.ts","sourceRoot":"","sources":["../../src/conversations/followup-events.dto.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,kBAAkB,iBAAiB,CAAC;AACjD,eAAO,MAAM,sBAAsB,qBAAqB,CAAC;AACzD,kFAAkF;AAClF,eAAO,MAAM,sBAAsB,qBAAqB,CAAC;AACzD,eAAO,MAAM,6BAA6B,4BAA4B,CAAC;AACvE,eAAO,MAAM,yBAAyB,wBAAwB,CAAC;AAE/D,qEAAqE;AACrE,eAAO,MAAM,uBAAuB,sBAAsB,CAAC;AAC3D,gEAAgE;AAChE,eAAO,MAAM,wCAAwC,oCAClB,CAAC;AAEpC,qBAAa,gCAAgC;IAK3C,MAAM,EAAE,MAAM,CAAC;IAMf,SAAS,EAAE,MAAM,CAAC;IAIlB,WAAW,EAAE,MAAM,CAAC;IAIpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAMhB,WAAW,EAAE,IAAI,GAAG,OAAO,GAAG,SAAS,CAAC;IAKxC,UAAU,CAAC,EAAE,OAAO,CAAC;IAIrB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,qBAAa,iCAAiC;IAK5C,MAAM,EAAE,MAAM,CAAC;IAIf,MAAM,CAAC,EAAE,MAAM,CAAC;IAMhB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAIhC,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,qBAAa,8BAA8B;IAKzC,MAAM,EAAE,MAAM,CAAC;IAIf,aAAa,EAAE,MAAM,CAAC;IAMtB,SAAS,EAAE,MAAM,CAAC;IAMlB,MAAM,EAAE,MAAM,CAAC;IAMf,cAAc,CAAC,EAAE,MAAM,CAAC;IAKxB,IAAI,CAAC,EAAE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c,CAAC,EAAE,MAAM,CAAC;IAKxB,IAAI,CAAC,EAAE,MAAM,CAAC;IAKd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAKlB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAI3B,UAAU,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -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.AppointmentChangedEventPayload = exports.FollowupConfigUpdatedEventPayload = exports.FollowupConversationEventPayload = exports.TOPIC_FOLLOWUP_LOG_LATEST_BY_PATIENT_IDS = exports.TOPIC_FOLLOWUP_LOG_LIST = exports.TOPIC_APPOINTMENT_CHANGED = exports.TOPIC_FOLLOWUP_CONFIG_UPDATED = exports.TOPIC_MESSAGE_REACTION = exports.TOPIC_MESSAGE_RECEIVED = exports.TOPIC_MESSAGE_SENT = void 0;
|
|
12
|
+
exports.AppointmentChangedEventPayload = exports.FollowupConfigUpdatedEventPayload = exports.FollowupConversationEventPayload = exports.TOPIC_FOLLOWUP_SESSION_CLOSE_SATISFACTION = exports.TOPIC_FOLLOWUP_LOG_LATEST_BY_PATIENT_IDS = exports.TOPIC_FOLLOWUP_LOG_LIST = exports.TOPIC_APPOINTMENT_CHANGED = exports.TOPIC_FOLLOWUP_CONFIG_UPDATED = exports.TOPIC_MESSAGE_REACTION = exports.TOPIC_MESSAGE_RECEIVED = exports.TOPIC_MESSAGE_SENT = void 0;
|
|
13
13
|
const swagger_1 = require("@nestjs/swagger");
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
15
|
exports.TOPIC_MESSAGE_SENT = 'MESSAGE_SENT';
|
|
@@ -22,6 +22,8 @@ exports.TOPIC_APPOINTMENT_CHANGED = 'APPOINTMENT_CHANGED';
|
|
|
22
22
|
exports.TOPIC_FOLLOWUP_LOG_LIST = 'followup.log.list';
|
|
23
23
|
/** Kafka request-reply: latest follow-up log by patient IDs. */
|
|
24
24
|
exports.TOPIC_FOLLOWUP_LOG_LATEST_BY_PATIENT_IDS = 'followup.log.latestByPatientIds';
|
|
25
|
+
/** RPC: dispara satisfação pós-atendimento ao encerrar sessão manualmente. */
|
|
26
|
+
exports.TOPIC_FOLLOWUP_SESSION_CLOSE_SATISFACTION = 'followup.session.close.dispatchSatisfaction';
|
|
25
27
|
class FollowupConversationEventPayload {
|
|
26
28
|
tenant;
|
|
27
29
|
patientId;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ParsedFilterDto } from '../filters/parsed-filter.dto';
|
|
2
2
|
import { ConversationIntentionDto } from './conversation-intention.dto';
|
|
3
3
|
import { FollowupTypeDto } from './followup-type.dto';
|
|
4
|
-
export declare const FOLLOWUP_LOG_LIST_FILTER_KEYS: readonly ["id", "sessionUuid", "patientId", "attempt", "message", "intention", "followupType", "appointmentId", "sentAt"];
|
|
4
|
+
export declare const FOLLOWUP_LOG_LIST_FILTER_KEYS: readonly ["id", "sessionUuid", "patientId", "attempt", "message", "intention", "followupType", "appointmentId", "closedByAttendantId", "sentAt"];
|
|
5
5
|
export type FollowupLogListFilterKeyDto = (typeof FOLLOWUP_LOG_LIST_FILTER_KEYS)[number];
|
|
6
6
|
/**
|
|
7
7
|
* Query parameters for listing follow-up logs (HTTP query + Kafka payload).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"followup-log-list-query.dto.d.ts","sourceRoot":"","sources":["../../src/conversations/followup-log-list-query.dto.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAEL,wBAAwB,EACzB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAkB,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEtE,eAAO,MAAM,6BAA6B,
|
|
1
|
+
{"version":3,"file":"followup-log-list-query.dto.d.ts","sourceRoot":"","sources":["../../src/conversations/followup-log-list-query.dto.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAEL,wBAAwB,EACzB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAkB,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEtE,eAAO,MAAM,6BAA6B,kJAWhC,CAAC;AACX,MAAM,MAAM,2BAA2B,GAAG,CAAC,OAAO,6BAA6B,CAAC,CAAC,MAAM,CAAC,CAAC;AAEzF;;GAEG;AACH,qBAAa,uBAAuB;IAMlC,IAAI,CAAC,EAAE,MAAM,CAAC;IAQd,KAAK,CAAC,EAAE,MAAM,CAAC;IAKf,SAAS,CAAC,EAAE,MAAM,CAAC;IAKnB,WAAW,CAAC,EAAE,MAAM,CAAC;IAQrB,SAAS,CAAC,EAAE,wBAAwB,CAAC;IAQrC,YAAY,CAAC,EAAE,eAAe,CAAC;IAW/B,OAAO,CAAC,EAAE,eAAe,EAAE,CAAC;CAC7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"followup-log-response.dto.d.ts","sourceRoot":"","sources":["../../src/conversations/followup-log-response.dto.ts"],"names":[],"mappings":"AAEA,OAAO,EAAkB,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEtE;;;GAGG;AACH,qBAAa,sBAAsB;IAIjC,EAAE,EAAE,MAAM,CAAC;IAKX,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAK5B,SAAS,EAAE,MAAM,CAAC;IAMlB,OAAO,EAAE,MAAM,CAAC;IAKhB,OAAO,EAAE,MAAM,CAAC;IAKhB,SAAS,CAAC,EAAE,MAAM,CAAC;IAQnB,YAAY,EAAE,eAAe,CAAC;IAK9B,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"followup-log-response.dto.d.ts","sourceRoot":"","sources":["../../src/conversations/followup-log-response.dto.ts"],"names":[],"mappings":"AAEA,OAAO,EAAkB,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEtE;;;GAGG;AACH,qBAAa,sBAAsB;IAIjC,EAAE,EAAE,MAAM,CAAC;IAKX,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAK5B,SAAS,EAAE,MAAM,CAAC;IAMlB,OAAO,EAAE,MAAM,CAAC;IAKhB,OAAO,EAAE,MAAM,CAAC;IAKhB,SAAS,CAAC,EAAE,MAAM,CAAC;IAQnB,YAAY,EAAE,eAAe,CAAC;IAK9B,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAO9B,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAKpC,MAAM,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -26,6 +26,7 @@ class FollowupLogResponseDto {
|
|
|
26
26
|
intention;
|
|
27
27
|
followupType;
|
|
28
28
|
appointmentId;
|
|
29
|
+
closedByAttendantId;
|
|
29
30
|
sentAt;
|
|
30
31
|
}
|
|
31
32
|
exports.FollowupLogResponseDto = FollowupLogResponseDto;
|
|
@@ -81,6 +82,14 @@ __decorate([
|
|
|
81
82
|
(0, class_validator_1.IsString)(),
|
|
82
83
|
__metadata("design:type", Object)
|
|
83
84
|
], FollowupLogResponseDto.prototype, "appointmentId", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
87
|
+
description: 'User id do atendente que concluiu o atendimento (quando aplicável)',
|
|
88
|
+
}),
|
|
89
|
+
(0, class_validator_1.IsOptional)(),
|
|
90
|
+
(0, class_validator_1.IsString)(),
|
|
91
|
+
__metadata("design:type", Object)
|
|
92
|
+
], FollowupLogResponseDto.prototype, "closedByAttendantId", void 0);
|
|
84
93
|
__decorate([
|
|
85
94
|
(0, swagger_1.ApiProperty)({ description: 'Timestamp when the follow-up was sent (ISO 8601)' }),
|
|
86
95
|
(0, class_validator_1.IsString)(),
|
|
@@ -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,CAAC;AACrE,eAAO,MAAM,yBAAyB,8BAA8B,CAAC;AACrE,eAAO,MAAM,4BAA4B,iCAAiC,CAAC;AAC3E,eAAO,MAAM,gCAAgC,qCACT,CAAC;AACrC,eAAO,MAAM,gCAAgC,qCACT,CAAC;
|
|
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,eA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M,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,EAAE,MAAM,CAAC;IAMZ,IAAI,EAAE,MAAM,CAAC;IAMb,OAAO,EAAE,MAAM,CAAC;IAMhB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAMtB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAMtB,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAMpB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAMzB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAMvB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAMvB,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAM7B,UAAU,CAAC,EA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adata) || 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',
|
package/package.json
CHANGED
|
@@ -14,6 +14,10 @@ export const TOPIC_FOLLOWUP_LOG_LIST = 'followup.log.list';
|
|
|
14
14
|
export const TOPIC_FOLLOWUP_LOG_LATEST_BY_PATIENT_IDS =
|
|
15
15
|
'followup.log.latestByPatientIds';
|
|
16
16
|
|
|
17
|
+
/** RPC: dispara satisfação pós-atendimento ao encerrar sessão manualmente. */
|
|
18
|
+
export const TOPIC_FOLLOWUP_SESSION_CLOSE_SATISFACTION =
|
|
19
|
+
'followup.session.close.dispatchSatisfaction';
|
|
20
|
+
|
|
17
21
|
export class FollowupConversationEventPayload {
|
|
18
22
|
@ApiProperty({ example: 'homolog' })
|
|
19
23
|
@IsString()
|
|
@@ -51,6 +51,13 @@ export class FollowupLogResponseDto {
|
|
|
51
51
|
@IsString()
|
|
52
52
|
appointmentId?: string | null;
|
|
53
53
|
|
|
54
|
+
@ApiPropertyOptional({
|
|
55
|
+
description: 'User id do atendente que concluiu o atendimento (quando aplicável)',
|
|
56
|
+
})
|
|
57
|
+
@IsOptional()
|
|
58
|
+
@IsString()
|
|
59
|
+
closedByAttendantId?: string | null;
|
|
60
|
+
|
|
54
61
|
@ApiProperty({ description: 'Timestamp when the follow-up was sent (ISO 8601)' })
|
|
55
62
|
@IsString()
|
|
56
63
|
@IsNotEmpty()
|