@gethydra/sdk 0.1.49 → 0.1.51
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 +41 -0
- package/dist/index.js +4 -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
|
};
|
|
@@ -21948,6 +21983,12 @@ declare class BookingsResource {
|
|
|
21948
21983
|
toArrayAppointments(params?: Omit<ListAppointmentsParams, 'cursor'>, options?: PaginateOptions & {
|
|
21949
21984
|
limit?: number;
|
|
21950
21985
|
}): Promise<Appointment[]>;
|
|
21986
|
+
/** List the authenticated customer's own appointments. Requires customer JWT. */
|
|
21987
|
+
myAppointments(params?: {
|
|
21988
|
+
status?: string;
|
|
21989
|
+
date_from?: string;
|
|
21990
|
+
date_to?: string;
|
|
21991
|
+
}): Promise<DataResponse<Appointment[]>>;
|
|
21951
21992
|
getAppointment(id: string): Promise<DataResponse<Appointment>>;
|
|
21952
21993
|
updateAppointment(id: string, body: UpdateAppointmentBody): Promise<DataResponse<Appointment>>;
|
|
21953
21994
|
createOverride(body: CreateOverrideBody, options?: ResourceRequestOptions): Promise<DataResponse<AvailabilityOverride>>;
|
package/dist/index.js
CHANGED
|
@@ -1688,6 +1688,10 @@ var BookingsResource = class {
|
|
|
1688
1688
|
async toArrayAppointments(params, options) {
|
|
1689
1689
|
return toArray(this.iterateAppointments(params, options), options);
|
|
1690
1690
|
}
|
|
1691
|
+
/** List the authenticated customer's own appointments. Requires customer JWT. */
|
|
1692
|
+
async myAppointments(params) {
|
|
1693
|
+
return this.client.request("GET", "/v1/bookings/my-appointments", { params });
|
|
1694
|
+
}
|
|
1691
1695
|
async getAppointment(id) {
|
|
1692
1696
|
return this.client.request("GET", `/v1/bookings/appointments/${id}`);
|
|
1693
1697
|
}
|