@gethydra/sdk 0.1.50 → 0.1.52
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/index.d.ts +42 -0
- package/dist/index.js +8 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -3770,6 +3770,8 @@ interface components {
|
|
|
3770
3770
|
FormSubmission: {
|
|
3771
3771
|
/** @example fsub_abc123def456ghi789jk */
|
|
3772
3772
|
id: string;
|
|
3773
|
+
/** @example cus_abc123 */
|
|
3774
|
+
customer_id: string | null;
|
|
3773
3775
|
/** @example form_1 */
|
|
3774
3776
|
form_key: string;
|
|
3775
3777
|
/**
|
|
@@ -17440,6 +17442,35 @@ interface operations {
|
|
|
17440
17442
|
};
|
|
17441
17443
|
};
|
|
17442
17444
|
};
|
|
17445
|
+
myAppointments: {
|
|
17446
|
+
parameters: {
|
|
17447
|
+
query?: {
|
|
17448
|
+
/** @description Comma-separated status filter */
|
|
17449
|
+
status?: string;
|
|
17450
|
+
/** @description YYYY-MM-DD */
|
|
17451
|
+
date_from?: string;
|
|
17452
|
+
/** @description YYYY-MM-DD */
|
|
17453
|
+
date_to?: string;
|
|
17454
|
+
};
|
|
17455
|
+
header?: never;
|
|
17456
|
+
path?: never;
|
|
17457
|
+
cookie?: never;
|
|
17458
|
+
};
|
|
17459
|
+
requestBody?: never;
|
|
17460
|
+
responses: {
|
|
17461
|
+
/** @description Customer appointments */
|
|
17462
|
+
200: {
|
|
17463
|
+
headers: {
|
|
17464
|
+
[name: string]: unknown;
|
|
17465
|
+
};
|
|
17466
|
+
content: {
|
|
17467
|
+
"application/json": {
|
|
17468
|
+
data: components["schemas"]["Appointment"][];
|
|
17469
|
+
};
|
|
17470
|
+
};
|
|
17471
|
+
};
|
|
17472
|
+
};
|
|
17473
|
+
};
|
|
17443
17474
|
getAppointment: {
|
|
17444
17475
|
parameters: {
|
|
17445
17476
|
query?: never;
|
|
@@ -17603,6 +17634,8 @@ interface operations {
|
|
|
17603
17634
|
fields?: string;
|
|
17604
17635
|
/** @description Filter by form slug */
|
|
17605
17636
|
form?: string;
|
|
17637
|
+
/** @description Filter by customer ID */
|
|
17638
|
+
customer_id?: string;
|
|
17606
17639
|
};
|
|
17607
17640
|
header?: never;
|
|
17608
17641
|
path?: never;
|
|
@@ -20009,6 +20042,8 @@ interface operations {
|
|
|
20009
20042
|
last_name?: string;
|
|
20010
20043
|
/** @example +14155550123 */
|
|
20011
20044
|
phone?: string | null;
|
|
20045
|
+
/** @example 1990-06-15 */
|
|
20046
|
+
dob?: string | null;
|
|
20012
20047
|
/** @example es-419 */
|
|
20013
20048
|
locale?: string | null;
|
|
20014
20049
|
};
|
|
@@ -21954,6 +21989,13 @@ declare class BookingsResource {
|
|
|
21954
21989
|
date_from?: string;
|
|
21955
21990
|
date_to?: string;
|
|
21956
21991
|
}): Promise<DataResponse<Appointment[]>>;
|
|
21992
|
+
/** Cancel the customer's own appointment. Must be 24h+ before scheduled time. Requires customer JWT. */
|
|
21993
|
+
cancelMyAppointment(id: string): Promise<DataResponse<Appointment>>;
|
|
21994
|
+
/** Reschedule the customer's own appointment. Must be 4h+ before current time. Requires customer JWT. */
|
|
21995
|
+
rescheduleMyAppointment(id: string, body: {
|
|
21996
|
+
scheduled_date: string;
|
|
21997
|
+
start_time: string;
|
|
21998
|
+
}): Promise<DataResponse<Appointment>>;
|
|
21957
21999
|
getAppointment(id: string): Promise<DataResponse<Appointment>>;
|
|
21958
22000
|
updateAppointment(id: string, body: UpdateAppointmentBody): Promise<DataResponse<Appointment>>;
|
|
21959
22001
|
createOverride(body: CreateOverrideBody, options?: ResourceRequestOptions): Promise<DataResponse<AvailabilityOverride>>;
|
package/dist/index.js
CHANGED
|
@@ -1692,6 +1692,14 @@ var BookingsResource = class {
|
|
|
1692
1692
|
async myAppointments(params) {
|
|
1693
1693
|
return this.client.request("GET", "/v1/bookings/my-appointments", { params });
|
|
1694
1694
|
}
|
|
1695
|
+
/** Cancel the customer's own appointment. Must be 24h+ before scheduled time. Requires customer JWT. */
|
|
1696
|
+
async cancelMyAppointment(id) {
|
|
1697
|
+
return this.client.request("POST", `/v1/bookings/my-appointments/${id}/cancel`);
|
|
1698
|
+
}
|
|
1699
|
+
/** Reschedule the customer's own appointment. Must be 4h+ before current time. Requires customer JWT. */
|
|
1700
|
+
async rescheduleMyAppointment(id, body) {
|
|
1701
|
+
return this.client.request("POST", `/v1/bookings/my-appointments/${id}/reschedule`, { body });
|
|
1702
|
+
}
|
|
1695
1703
|
async getAppointment(id) {
|
|
1696
1704
|
return this.client.request("GET", `/v1/bookings/appointments/${id}`);
|
|
1697
1705
|
}
|