@erp-galoper/types 1.0.2012 → 1.0.2013
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/openapi.ts +122 -1
- package/package.json +1 -1
package/openapi.ts
CHANGED
|
@@ -22856,6 +22856,63 @@ export interface paths {
|
|
|
22856
22856
|
patch: operations["appointment_views_update_appointment"];
|
|
22857
22857
|
trace?: never;
|
|
22858
22858
|
};
|
|
22859
|
+
"/api/v1/appointments/{id}/send-whatsapp/": {
|
|
22860
|
+
parameters: {
|
|
22861
|
+
query?: never;
|
|
22862
|
+
header?: never;
|
|
22863
|
+
path?: never;
|
|
22864
|
+
cookie?: never;
|
|
22865
|
+
};
|
|
22866
|
+
get?: never;
|
|
22867
|
+
put?: never;
|
|
22868
|
+
/**
|
|
22869
|
+
* Send Appointment Whatsapp
|
|
22870
|
+
* @description Endpoint for sending an appointment reminder via WhatsApp.
|
|
22871
|
+
*
|
|
22872
|
+
* Args:
|
|
22873
|
+
* id: Appointment UUID
|
|
22874
|
+
* template_id: Optional WhatsApp template UUID. If not provided, uses the first active template linked to appointments.
|
|
22875
|
+
* Note: Only active templates with entity_type='appointment' will be used when template_id is not specified.
|
|
22876
|
+
* payload.receiver: Optional recipient phone number. If omitted, uses the customer's primary phone number.
|
|
22877
|
+
*
|
|
22878
|
+
* To get available templates for appointments:
|
|
22879
|
+
* GET /api/v1/integration/whatsapp/templates/?entityType=appointment
|
|
22880
|
+
*
|
|
22881
|
+
* Template Validation:
|
|
22882
|
+
* - If template_id is provided, the template must have entity_type='appointment', and active.
|
|
22883
|
+
* - If validation fails, returns 400 error with code 'templateEntityTypeMismatch'
|
|
22884
|
+
*
|
|
22885
|
+
* Responses:
|
|
22886
|
+
* - 200: whatsappMessageSent
|
|
22887
|
+
* - 400: whatsappIntegrationNotConfigured
|
|
22888
|
+
* - whatsappTemplateNotFound
|
|
22889
|
+
* - templateEntityTypeMismatch
|
|
22890
|
+
* - customerPhoneNumberMissing
|
|
22891
|
+
* - invalidPhoneNumber
|
|
22892
|
+
* - numberNotOnWhatsApp
|
|
22893
|
+
* - invalidSenderNumber
|
|
22894
|
+
* - templateNotApproved
|
|
22895
|
+
* - templateVariableMismatch
|
|
22896
|
+
* - rateLimitExceeded
|
|
22897
|
+
* - authenticationFailed
|
|
22898
|
+
* - insufficientBalance
|
|
22899
|
+
* - templateError
|
|
22900
|
+
* - recipientOptedOut
|
|
22901
|
+
* - twilioApiError
|
|
22902
|
+
* - 403: permissionDenied
|
|
22903
|
+
* - noModuleAccess
|
|
22904
|
+
* - 404: appointmentDoesNotExist
|
|
22905
|
+
* - 500: serverError
|
|
22906
|
+
*
|
|
22907
|
+
* Permission key: appointment: ["send"]
|
|
22908
|
+
*/
|
|
22909
|
+
post: operations["appointment_views_send_appointment_whatsapp"];
|
|
22910
|
+
delete?: never;
|
|
22911
|
+
options?: never;
|
|
22912
|
+
head?: never;
|
|
22913
|
+
patch?: never;
|
|
22914
|
+
trace?: never;
|
|
22915
|
+
};
|
|
22859
22916
|
"/api/v1/maintenance/repair-orders/": {
|
|
22860
22917
|
parameters: {
|
|
22861
22918
|
query?: never;
|
|
@@ -64359,7 +64416,7 @@ export interface components {
|
|
|
64359
64416
|
* @description Enum for entity types that can be linked to WhatsApp templates
|
|
64360
64417
|
* @enum {string}
|
|
64361
64418
|
*/
|
|
64362
|
-
EntityType: "salesOrder" | "salesInvoice" | "salesQuotation" | "goodsDeliveryNote";
|
|
64419
|
+
EntityType: "salesOrder" | "salesInvoice" | "salesQuotation" | "goodsDeliveryNote" | "appointment";
|
|
64363
64420
|
/**
|
|
64364
64421
|
* GetTemplatesResponseSchema
|
|
64365
64422
|
* @description Schema for getting paginated templates from database.
|
|
@@ -112493,6 +112550,70 @@ export interface operations {
|
|
|
112493
112550
|
};
|
|
112494
112551
|
};
|
|
112495
112552
|
};
|
|
112553
|
+
appointment_views_send_appointment_whatsapp: {
|
|
112554
|
+
parameters: {
|
|
112555
|
+
query?: {
|
|
112556
|
+
templateId?: string | null;
|
|
112557
|
+
};
|
|
112558
|
+
header?: never;
|
|
112559
|
+
path: {
|
|
112560
|
+
id: string;
|
|
112561
|
+
};
|
|
112562
|
+
cookie?: never;
|
|
112563
|
+
};
|
|
112564
|
+
requestBody?: {
|
|
112565
|
+
content: {
|
|
112566
|
+
"application/json": components["schemas"]["SendWhatsAppSchema"] | null;
|
|
112567
|
+
};
|
|
112568
|
+
};
|
|
112569
|
+
responses: {
|
|
112570
|
+
/** @description OK */
|
|
112571
|
+
200: {
|
|
112572
|
+
headers: {
|
|
112573
|
+
[name: string]: unknown;
|
|
112574
|
+
};
|
|
112575
|
+
content: {
|
|
112576
|
+
"application/json": components["schemas"]["MessageWithCode"];
|
|
112577
|
+
};
|
|
112578
|
+
};
|
|
112579
|
+
/** @description Bad Request */
|
|
112580
|
+
400: {
|
|
112581
|
+
headers: {
|
|
112582
|
+
[name: string]: unknown;
|
|
112583
|
+
};
|
|
112584
|
+
content: {
|
|
112585
|
+
"application/json": components["schemas"]["ErrorMessages"];
|
|
112586
|
+
};
|
|
112587
|
+
};
|
|
112588
|
+
/** @description Forbidden */
|
|
112589
|
+
403: {
|
|
112590
|
+
headers: {
|
|
112591
|
+
[name: string]: unknown;
|
|
112592
|
+
};
|
|
112593
|
+
content: {
|
|
112594
|
+
"application/json": components["schemas"]["MessageWithCode"];
|
|
112595
|
+
};
|
|
112596
|
+
};
|
|
112597
|
+
/** @description Not Found */
|
|
112598
|
+
404: {
|
|
112599
|
+
headers: {
|
|
112600
|
+
[name: string]: unknown;
|
|
112601
|
+
};
|
|
112602
|
+
content: {
|
|
112603
|
+
"application/json": components["schemas"]["MessageWithCode"];
|
|
112604
|
+
};
|
|
112605
|
+
};
|
|
112606
|
+
/** @description Internal Server Error */
|
|
112607
|
+
500: {
|
|
112608
|
+
headers: {
|
|
112609
|
+
[name: string]: unknown;
|
|
112610
|
+
};
|
|
112611
|
+
content: {
|
|
112612
|
+
"application/json": components["schemas"]["MessageWithCode"];
|
|
112613
|
+
};
|
|
112614
|
+
};
|
|
112615
|
+
};
|
|
112616
|
+
};
|
|
112496
112617
|
maintenance_views_list_repair_orders: {
|
|
112497
112618
|
parameters: {
|
|
112498
112619
|
query?: {
|