tychat-contracts 1.6.68 → 1.6.69
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/configurations/ai-tool-policy.enums.d.ts +1 -1
- package/dist/configurations/ai-tool-policy.enums.d.ts.map +1 -1
- package/dist/configurations/ai-tool-policy.enums.js +1 -0
- package/dist/connections/whatsapp-official.dto.d.ts +4 -0
- package/dist/connections/whatsapp-official.dto.d.ts.map +1 -1
- package/dist/connections/whatsapp-official.dto.js +12 -0
- package/package.json +1 -1
- package/src/configurations/ai-tool-policy.enums.ts +1 -0
- package/src/connections/whatsapp-official.dto.ts +11 -0
- package/src/patients/index.ts +10 -10
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const AI_TOOL_KEYS: readonly ["get_procedures_clinic", "get_clinic_opening_hours", "get_available_slots", "search_health_professionals", "update_patient", "search_patients_by_phone", "create_patient", "create_appointment", "add_appointment_procedures", "list_patient_appointments", "cancel_appointment", "submit_satisfaction"];
|
|
1
|
+
export declare const AI_TOOL_KEYS: readonly ["get_procedures_clinic", "get_clinic_opening_hours", "get_available_slots", "search_health_professionals", "update_patient", "search_patients_by_phone", "create_patient", "create_appointment", "add_appointment_procedures", "list_patient_appointments", "cancel_appointment", "reschedule_appointment", "submit_satisfaction"];
|
|
2
2
|
export type AiToolKey = (typeof AI_TOOL_KEYS)[number];
|
|
3
3
|
export declare const AI_TOOL_POLICY_LEVELS: readonly ["global", "plan", "tenant", "unit"];
|
|
4
4
|
export type AiToolPolicyLevel = (typeof AI_TOOL_POLICY_LEVELS)[number];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai-tool-policy.enums.d.ts","sourceRoot":"","sources":["../../src/configurations/ai-tool-policy.enums.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"ai-tool-policy.enums.d.ts","sourceRoot":"","sources":["../../src/configurations/ai-tool-policy.enums.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,8UAcf,CAAC;AAEX,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC;AAEtD,eAAO,MAAM,qBAAqB,+CAAgD,CAAC;AACnF,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEvE,eAAO,MAAM,sBAAsB,uDAGzB,CAAC;AACX,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -19,6 +19,10 @@ export declare class SendWhatsAppOfficialTemplateDto {
|
|
|
19
19
|
languageCode: string;
|
|
20
20
|
bodyParameters?: string[];
|
|
21
21
|
headerParameters?: string[];
|
|
22
|
+
buttonParameters?: Array<{
|
|
23
|
+
index: number;
|
|
24
|
+
payload: string;
|
|
25
|
+
}>;
|
|
22
26
|
}
|
|
23
27
|
/**
|
|
24
28
|
* Payload to send a free-form text message via WhatsApp Official (Meta Cloud API).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"whatsapp-official.dto.d.ts","sourceRoot":"","sources":["../../src/connections/whatsapp-official.dto.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,qBAAa,iCAAiC;IAO5C,WAAW,EAAE,MAAM,CAAC;IAQpB,aAAa,EAAE,MAAM,CAAC;IAQtB,MAAM,EAAE,MAAM,CAAC;IAQf,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED;;;GAGG;AACH,qBAAa,+BAA+B;IAO1C,EAAE,EAAE,MAAM,CAAC;IAQX,YAAY,EAAE,MAAM,CAAC;IAQrB,YAAY,EAAE,MAAM,CAAC;IAWrB,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAS1B,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"whatsapp-official.dto.d.ts","sourceRoot":"","sources":["../../src/connections/whatsapp-official.dto.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,qBAAa,iCAAiC;IAO5C,WAAW,EAAE,MAAM,CAAC;IAQpB,aAAa,EAAE,MAAM,CAAC;IAQtB,MAAM,EAAE,MAAM,CAAC;IAQf,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED;;;GAGG;AACH,qBAAa,+BAA+B;IAO1C,EAAE,EAAE,MAAM,CAAC;IAQX,YAAY,EAAE,MAAM,CAAC;IAQrB,YAAY,EAAE,MAAM,CAAC;IAWrB,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAS1B,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;IAW5B,gBAAgB,CAAC,EAAE,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAC9D;AAED;;;GAGG;AACH,qBAAa,2BAA2B;IAOtC,EAAE,EAAE,MAAM,CAAC;IAQX,IAAI,EAAE,MAAM,CAAC;CACd"}
|
|
@@ -70,6 +70,7 @@ class SendWhatsAppOfficialTemplateDto {
|
|
|
70
70
|
languageCode;
|
|
71
71
|
bodyParameters;
|
|
72
72
|
headerParameters;
|
|
73
|
+
buttonParameters;
|
|
73
74
|
}
|
|
74
75
|
exports.SendWhatsAppOfficialTemplateDto = SendWhatsAppOfficialTemplateDto;
|
|
75
76
|
__decorate([
|
|
@@ -120,6 +121,17 @@ __decorate([
|
|
|
120
121
|
(0, class_validator_1.IsString)({ each: true }),
|
|
121
122
|
__metadata("design:type", Array)
|
|
122
123
|
], SendWhatsAppOfficialTemplateDto.prototype, "headerParameters", void 0);
|
|
124
|
+
__decorate([
|
|
125
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
126
|
+
description: 'QUICK_REPLY button payloads (0-based index). Echoed by Meta webhook as button.payload.',
|
|
127
|
+
example: [
|
|
128
|
+
{ index: 0, payload: 'confirm_presence' },
|
|
129
|
+
{ index: 1, payload: 'reschedule' },
|
|
130
|
+
],
|
|
131
|
+
}),
|
|
132
|
+
(0, class_validator_1.IsOptional)(),
|
|
133
|
+
__metadata("design:type", Array)
|
|
134
|
+
], SendWhatsAppOfficialTemplateDto.prototype, "buttonParameters", void 0);
|
|
123
135
|
/**
|
|
124
136
|
* Payload to send a free-form text message via WhatsApp Official (Meta Cloud API).
|
|
125
137
|
* Only works within the 24-hour customer service window.
|
package/package.json
CHANGED
|
@@ -88,6 +88,17 @@ export class SendWhatsAppOfficialTemplateDto {
|
|
|
88
88
|
@IsOptional()
|
|
89
89
|
@IsString({ each: true })
|
|
90
90
|
headerParameters?: string[];
|
|
91
|
+
|
|
92
|
+
@ApiPropertyOptional({
|
|
93
|
+
description:
|
|
94
|
+
'QUICK_REPLY button payloads (0-based index). Echoed by Meta webhook as button.payload.',
|
|
95
|
+
example: [
|
|
96
|
+
{ index: 0, payload: 'confirm_presence' },
|
|
97
|
+
{ index: 1, payload: 'reschedule' },
|
|
98
|
+
],
|
|
99
|
+
})
|
|
100
|
+
@IsOptional()
|
|
101
|
+
buttonParameters?: Array<{ index: number; payload: string }>;
|
|
91
102
|
}
|
|
92
103
|
|
|
93
104
|
/**
|
package/src/patients/index.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export * from './create-patient.dto';
|
|
2
|
-
export * from './update-patient.dto';
|
|
3
|
-
export * from './patient-history-entry.dto';
|
|
4
|
-
export * from './list-patients-query.dto';
|
|
5
|
-
export * from './list-patients-filters.dto';
|
|
6
|
-
export * from './upsert-patient-by-phone.dto';
|
|
7
|
-
export * from './patient-status.dto';
|
|
8
|
-
export * from './patient-document-response.dto';
|
|
9
|
-
export * from './update-patient-document.dto';
|
|
10
|
-
|
|
1
|
+
export * from './create-patient.dto';
|
|
2
|
+
export * from './update-patient.dto';
|
|
3
|
+
export * from './patient-history-entry.dto';
|
|
4
|
+
export * from './list-patients-query.dto';
|
|
5
|
+
export * from './list-patients-filters.dto';
|
|
6
|
+
export * from './upsert-patient-by-phone.dto';
|
|
7
|
+
export * from './patient-status.dto';
|
|
8
|
+
export * from './patient-document-response.dto';
|
|
9
|
+
export * from './update-patient-document.dto';
|
|
10
|
+
|