@wix/bookings 1.0.417 → 1.0.419
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/package.json +4 -4
- package/type-bundles/context.bundle.d.ts +131 -534
- package/type-bundles/index.bundle.d.ts +73 -446
|
@@ -568,29 +568,37 @@ interface QueryAvailabilityOptions {
|
|
|
568
568
|
slotsPerDay?: number | null;
|
|
569
569
|
}
|
|
570
570
|
|
|
571
|
-
interface HttpClient
|
|
572
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory
|
|
571
|
+
interface HttpClient {
|
|
572
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
573
573
|
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
574
574
|
}
|
|
575
|
-
type RequestOptionsFactory
|
|
576
|
-
type HttpResponse
|
|
575
|
+
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
576
|
+
type HttpResponse<T = any> = {
|
|
577
577
|
data: T;
|
|
578
578
|
status: number;
|
|
579
579
|
statusText: string;
|
|
580
580
|
headers: any;
|
|
581
581
|
request?: any;
|
|
582
582
|
};
|
|
583
|
-
type RequestOptions
|
|
583
|
+
type RequestOptions<_TResponse = any, Data = any> = {
|
|
584
584
|
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
585
585
|
url: string;
|
|
586
586
|
data?: Data;
|
|
587
587
|
params?: URLSearchParams;
|
|
588
|
-
} & APIMetadata
|
|
589
|
-
type APIMetadata
|
|
588
|
+
} & APIMetadata;
|
|
589
|
+
type APIMetadata = {
|
|
590
590
|
methodFqn?: string;
|
|
591
591
|
entityFqdn?: string;
|
|
592
592
|
packageName?: string;
|
|
593
593
|
};
|
|
594
|
+
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
595
|
+
__type: 'event-definition';
|
|
596
|
+
type: Type;
|
|
597
|
+
isDomainEvent?: boolean;
|
|
598
|
+
transformations?: (envelope: unknown) => Payload;
|
|
599
|
+
__payload: Payload;
|
|
600
|
+
};
|
|
601
|
+
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
594
602
|
|
|
595
603
|
declare global {
|
|
596
604
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
@@ -602,7 +610,7 @@ declare global {
|
|
|
602
610
|
declare const __metadata$b: {
|
|
603
611
|
PACKAGE_NAME: string;
|
|
604
612
|
};
|
|
605
|
-
declare function queryAvailability(httpClient: HttpClient
|
|
613
|
+
declare function queryAvailability(httpClient: HttpClient): (query: QueryV2$6, options?: QueryAvailabilityOptions) => Promise<QueryAvailabilityResponse & QueryAvailabilityResponseNonNullableFields>;
|
|
606
614
|
|
|
607
615
|
type index_d$b_AvailabilityWaitingList = AvailabilityWaitingList;
|
|
608
616
|
type index_d$b_CalculateMultiSlotAvailabilityRequest = CalculateMultiSlotAvailabilityRequest;
|
|
@@ -1601,42 +1609,11 @@ interface GetAvailabilityTimeSlotOptions {
|
|
|
1601
1609
|
includeResourceTypeIds?: string[];
|
|
1602
1610
|
}
|
|
1603
1611
|
|
|
1604
|
-
interface HttpClient$a {
|
|
1605
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory$a<TResponse, TData>): Promise<HttpResponse$a<TResponse>>;
|
|
1606
|
-
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
1607
|
-
}
|
|
1608
|
-
type RequestOptionsFactory$a<TResponse = any, TData = any> = (context: any) => RequestOptions$a<TResponse, TData>;
|
|
1609
|
-
type HttpResponse$a<T = any> = {
|
|
1610
|
-
data: T;
|
|
1611
|
-
status: number;
|
|
1612
|
-
statusText: string;
|
|
1613
|
-
headers: any;
|
|
1614
|
-
request?: any;
|
|
1615
|
-
};
|
|
1616
|
-
type RequestOptions$a<_TResponse = any, Data = any> = {
|
|
1617
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
1618
|
-
url: string;
|
|
1619
|
-
data?: Data;
|
|
1620
|
-
params?: URLSearchParams;
|
|
1621
|
-
} & APIMetadata$a;
|
|
1622
|
-
type APIMetadata$a = {
|
|
1623
|
-
methodFqn?: string;
|
|
1624
|
-
entityFqdn?: string;
|
|
1625
|
-
packageName?: string;
|
|
1626
|
-
};
|
|
1627
|
-
|
|
1628
|
-
declare global {
|
|
1629
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
1630
|
-
interface SymbolConstructor {
|
|
1631
|
-
readonly observable: symbol;
|
|
1632
|
-
}
|
|
1633
|
-
}
|
|
1634
|
-
|
|
1635
1612
|
declare const __metadata$a: {
|
|
1636
1613
|
PACKAGE_NAME: string;
|
|
1637
1614
|
};
|
|
1638
|
-
declare function listAvailabilityTimeSlots(httpClient: HttpClient
|
|
1639
|
-
declare function getAvailabilityTimeSlot(httpClient: HttpClient
|
|
1615
|
+
declare function listAvailabilityTimeSlots(httpClient: HttpClient): (options?: ListAvailabilityTimeSlotsOptions) => Promise<ListAvailabilityTimeSlotsResponse$1 & ListAvailabilityTimeSlotsResponseNonNullableFields$1>;
|
|
1616
|
+
declare function getAvailabilityTimeSlot(httpClient: HttpClient): (serviceId: string, localStartDate: string, localEndDate: string, timeZone: string | null, location: Location$8, options?: GetAvailabilityTimeSlotOptions) => Promise<GetAvailabilityTimeSlotResponse$1 & GetAvailabilityTimeSlotResponseNonNullableFields$1>;
|
|
1640
1617
|
|
|
1641
1618
|
type index_d$a_GetAvailabilityTimeSlotOptions = GetAvailabilityTimeSlotOptions;
|
|
1642
1619
|
type index_d$a_ListAvailabilityTimeSlotsOptions = ListAvailabilityTimeSlotsOptions;
|
|
@@ -2593,42 +2570,11 @@ interface ListMultiServiceAvailabilityTimeSlotsOptions {
|
|
|
2593
2570
|
cursorPaging?: CursorPaging$7;
|
|
2594
2571
|
}
|
|
2595
2572
|
|
|
2596
|
-
interface HttpClient$9 {
|
|
2597
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory$9<TResponse, TData>): Promise<HttpResponse$9<TResponse>>;
|
|
2598
|
-
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
2599
|
-
}
|
|
2600
|
-
type RequestOptionsFactory$9<TResponse = any, TData = any> = (context: any) => RequestOptions$9<TResponse, TData>;
|
|
2601
|
-
type HttpResponse$9<T = any> = {
|
|
2602
|
-
data: T;
|
|
2603
|
-
status: number;
|
|
2604
|
-
statusText: string;
|
|
2605
|
-
headers: any;
|
|
2606
|
-
request?: any;
|
|
2607
|
-
};
|
|
2608
|
-
type RequestOptions$9<_TResponse = any, Data = any> = {
|
|
2609
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
2610
|
-
url: string;
|
|
2611
|
-
data?: Data;
|
|
2612
|
-
params?: URLSearchParams;
|
|
2613
|
-
} & APIMetadata$9;
|
|
2614
|
-
type APIMetadata$9 = {
|
|
2615
|
-
methodFqn?: string;
|
|
2616
|
-
entityFqdn?: string;
|
|
2617
|
-
packageName?: string;
|
|
2618
|
-
};
|
|
2619
|
-
|
|
2620
|
-
declare global {
|
|
2621
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
2622
|
-
interface SymbolConstructor {
|
|
2623
|
-
readonly observable: symbol;
|
|
2624
|
-
}
|
|
2625
|
-
}
|
|
2626
|
-
|
|
2627
2573
|
declare const __metadata$9: {
|
|
2628
2574
|
PACKAGE_NAME: string;
|
|
2629
2575
|
};
|
|
2630
|
-
declare function listMultiServiceAvailabilityTimeSlots(httpClient: HttpClient
|
|
2631
|
-
declare function getMultiServiceAvailabilityTimeSlot(httpClient: HttpClient
|
|
2576
|
+
declare function listMultiServiceAvailabilityTimeSlots(httpClient: HttpClient): (options?: ListMultiServiceAvailabilityTimeSlotsOptions) => Promise<ListMultiServiceAvailabilityTimeSlotsResponse & ListMultiServiceAvailabilityTimeSlotsResponseNonNullableFields>;
|
|
2577
|
+
declare function getMultiServiceAvailabilityTimeSlot(httpClient: HttpClient): (services: Service$2[], localStartDate: string, localEndDate: string, timeZone: string | null, location: Location$7) => Promise<GetMultiServiceAvailabilityTimeSlotResponse & GetMultiServiceAvailabilityTimeSlotResponseNonNullableFields>;
|
|
2632
2578
|
|
|
2633
2579
|
type index_d$9_CalculateEventBasedAvailabilityRequest = CalculateEventBasedAvailabilityRequest;
|
|
2634
2580
|
type index_d$9_CalculateEventBasedAvailabilityResponse = CalculateEventBasedAvailabilityResponse;
|
|
@@ -4260,49 +4206,18 @@ interface ListEventsOptions {
|
|
|
4260
4206
|
partialFailure?: boolean | null;
|
|
4261
4207
|
}
|
|
4262
4208
|
|
|
4263
|
-
interface HttpClient$8 {
|
|
4264
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory$8<TResponse, TData>): Promise<HttpResponse$8<TResponse>>;
|
|
4265
|
-
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
4266
|
-
}
|
|
4267
|
-
type RequestOptionsFactory$8<TResponse = any, TData = any> = (context: any) => RequestOptions$8<TResponse, TData>;
|
|
4268
|
-
type HttpResponse$8<T = any> = {
|
|
4269
|
-
data: T;
|
|
4270
|
-
status: number;
|
|
4271
|
-
statusText: string;
|
|
4272
|
-
headers: any;
|
|
4273
|
-
request?: any;
|
|
4274
|
-
};
|
|
4275
|
-
type RequestOptions$8<_TResponse = any, Data = any> = {
|
|
4276
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
4277
|
-
url: string;
|
|
4278
|
-
data?: Data;
|
|
4279
|
-
params?: URLSearchParams;
|
|
4280
|
-
} & APIMetadata$8;
|
|
4281
|
-
type APIMetadata$8 = {
|
|
4282
|
-
methodFqn?: string;
|
|
4283
|
-
entityFqdn?: string;
|
|
4284
|
-
packageName?: string;
|
|
4285
|
-
};
|
|
4286
|
-
|
|
4287
|
-
declare global {
|
|
4288
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
4289
|
-
interface SymbolConstructor {
|
|
4290
|
-
readonly observable: symbol;
|
|
4291
|
-
}
|
|
4292
|
-
}
|
|
4293
|
-
|
|
4294
4209
|
declare const __metadata$8: {
|
|
4295
4210
|
PACKAGE_NAME: string;
|
|
4296
4211
|
};
|
|
4297
|
-
declare function listProviders(httpClient: HttpClient
|
|
4298
|
-
declare function getConnection(httpClient: HttpClient
|
|
4299
|
-
declare function listConnections(httpClient: HttpClient
|
|
4300
|
-
declare function connectByOAuth(httpClient: HttpClient
|
|
4301
|
-
declare function connectByCredentials(httpClient: HttpClient
|
|
4302
|
-
declare function listCalendars(httpClient: HttpClient
|
|
4303
|
-
declare function updateSyncConfig(httpClient: HttpClient
|
|
4304
|
-
declare function disconnect(httpClient: HttpClient
|
|
4305
|
-
declare function listEvents(httpClient: HttpClient
|
|
4212
|
+
declare function listProviders(httpClient: HttpClient): () => Promise<ListProvidersResponse & ListProvidersResponseNonNullableFields>;
|
|
4213
|
+
declare function getConnection(httpClient: HttpClient): (connectionId: string | null) => Promise<GetConnectionResponse & GetConnectionResponseNonNullableFields>;
|
|
4214
|
+
declare function listConnections(httpClient: HttpClient): (options?: ListConnectionsOptions) => Promise<ListConnectionsResponse & ListConnectionsResponseNonNullableFields>;
|
|
4215
|
+
declare function connectByOAuth(httpClient: HttpClient): (providerId: string | null, scheduleId: string | null, redirectUrl: string | null) => Promise<ConnectByOAuthResponse>;
|
|
4216
|
+
declare function connectByCredentials(httpClient: HttpClient): (providerId: string | null, scheduleId: string | null, email: string | null, password: string | null) => Promise<ConnectByCredentialsResponse & ConnectByCredentialsResponseNonNullableFields>;
|
|
4217
|
+
declare function listCalendars(httpClient: HttpClient): (connectionId: string | null) => Promise<ListCalendarsResponse & ListCalendarsResponseNonNullableFields>;
|
|
4218
|
+
declare function updateSyncConfig(httpClient: HttpClient): (connectionId: string | null, syncConfig: ConnectionSyncConfig) => Promise<UpdateSyncConfigResponse & UpdateSyncConfigResponseNonNullableFields>;
|
|
4219
|
+
declare function disconnect(httpClient: HttpClient): (connectionId: string | null) => Promise<DisconnectResponse & DisconnectResponseNonNullableFields>;
|
|
4220
|
+
declare function listEvents(httpClient: HttpClient): (options?: ListEventsOptions) => Promise<ListEventsResponse & ListEventsResponseNonNullableFields>;
|
|
4306
4221
|
|
|
4307
4222
|
type index_d$8_Calendar = Calendar;
|
|
4308
4223
|
type index_d$8_Calendars = Calendars;
|
|
@@ -5857,49 +5772,10 @@ interface UpdateResource {
|
|
|
5857
5772
|
wixUserId?: string | null;
|
|
5858
5773
|
}
|
|
5859
5774
|
|
|
5860
|
-
interface HttpClient$7 {
|
|
5861
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory$7<TResponse, TData>): Promise<HttpResponse$7<TResponse>>;
|
|
5862
|
-
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
5863
|
-
}
|
|
5864
|
-
type RequestOptionsFactory$7<TResponse = any, TData = any> = (context: any) => RequestOptions$7<TResponse, TData>;
|
|
5865
|
-
type HttpResponse$7<T = any> = {
|
|
5866
|
-
data: T;
|
|
5867
|
-
status: number;
|
|
5868
|
-
statusText: string;
|
|
5869
|
-
headers: any;
|
|
5870
|
-
request?: any;
|
|
5871
|
-
};
|
|
5872
|
-
type RequestOptions$7<_TResponse = any, Data = any> = {
|
|
5873
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
5874
|
-
url: string;
|
|
5875
|
-
data?: Data;
|
|
5876
|
-
params?: URLSearchParams;
|
|
5877
|
-
} & APIMetadata$7;
|
|
5878
|
-
type APIMetadata$7 = {
|
|
5879
|
-
methodFqn?: string;
|
|
5880
|
-
entityFqdn?: string;
|
|
5881
|
-
packageName?: string;
|
|
5882
|
-
};
|
|
5883
|
-
type EventDefinition$4<Payload = unknown, Type extends string = string> = {
|
|
5884
|
-
__type: 'event-definition';
|
|
5885
|
-
type: Type;
|
|
5886
|
-
isDomainEvent?: boolean;
|
|
5887
|
-
transformations?: (envelope: unknown) => Payload;
|
|
5888
|
-
__payload: Payload;
|
|
5889
|
-
};
|
|
5890
|
-
declare function EventDefinition$4<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$4<Payload, Type>;
|
|
5891
|
-
|
|
5892
|
-
declare global {
|
|
5893
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
5894
|
-
interface SymbolConstructor {
|
|
5895
|
-
readonly observable: symbol;
|
|
5896
|
-
}
|
|
5897
|
-
}
|
|
5898
|
-
|
|
5899
5775
|
declare const __metadata$7: {
|
|
5900
5776
|
PACKAGE_NAME: string;
|
|
5901
5777
|
};
|
|
5902
|
-
declare function createResource(httpClient: HttpClient
|
|
5778
|
+
declare function createResource(httpClient: HttpClient): (resource: Resource$2, options?: CreateResourceOptions) => Promise<Resource$2 & {
|
|
5903
5779
|
images: string;
|
|
5904
5780
|
schedules: {
|
|
5905
5781
|
_id: string;
|
|
@@ -5972,7 +5848,7 @@ declare function createResource(httpClient: HttpClient$7): (resource: Resource$2
|
|
|
5972
5848
|
}[];
|
|
5973
5849
|
status: ResourceStatus$2;
|
|
5974
5850
|
}>;
|
|
5975
|
-
declare function updateResource(httpClient: HttpClient
|
|
5851
|
+
declare function updateResource(httpClient: HttpClient): (_id: string | null, resource: UpdateResource) => Promise<Resource$2 & {
|
|
5976
5852
|
images: string;
|
|
5977
5853
|
schedules: {
|
|
5978
5854
|
_id: string;
|
|
@@ -6045,9 +5921,9 @@ declare function updateResource(httpClient: HttpClient$7): (_id: string | null,
|
|
|
6045
5921
|
}[];
|
|
6046
5922
|
status: ResourceStatus$2;
|
|
6047
5923
|
}>;
|
|
6048
|
-
declare function updateSchedule(httpClient: HttpClient
|
|
6049
|
-
declare function deleteResource(httpClient: HttpClient
|
|
6050
|
-
declare const onResourceNotification: EventDefinition
|
|
5924
|
+
declare function updateSchedule(httpClient: HttpClient): (resourceId: string | null, schedule: Schedule$2) => Promise<UpdateScheduleResponse & UpdateScheduleResponseNonNullableFields>;
|
|
5925
|
+
declare function deleteResource(httpClient: HttpClient): (_id: string) => Promise<DeleteResourceResponse & DeleteResourceResponseNonNullableFields>;
|
|
5926
|
+
declare const onResourceNotification: EventDefinition<ResourceNotificationEnvelope, "com.wixpress.bookings.resources.core.api.v1.resource.ResourceNotification">;
|
|
6051
5927
|
|
|
6052
5928
|
type index_d$7_BatchCreateResourceRequest = BatchCreateResourceRequest;
|
|
6053
5929
|
type index_d$7_BatchCreateResourceResponse = BatchCreateResourceResponse;
|
|
@@ -8333,49 +8209,10 @@ interface ServiceOptionsAndVariantsListQueryBuilder {
|
|
|
8333
8209
|
find: () => Promise<ServiceOptionsAndVariantsListQueryResult>;
|
|
8334
8210
|
}
|
|
8335
8211
|
|
|
8336
|
-
interface HttpClient$6 {
|
|
8337
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory$6<TResponse, TData>): Promise<HttpResponse$6<TResponse>>;
|
|
8338
|
-
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
8339
|
-
}
|
|
8340
|
-
type RequestOptionsFactory$6<TResponse = any, TData = any> = (context: any) => RequestOptions$6<TResponse, TData>;
|
|
8341
|
-
type HttpResponse$6<T = any> = {
|
|
8342
|
-
data: T;
|
|
8343
|
-
status: number;
|
|
8344
|
-
statusText: string;
|
|
8345
|
-
headers: any;
|
|
8346
|
-
request?: any;
|
|
8347
|
-
};
|
|
8348
|
-
type RequestOptions$6<_TResponse = any, Data = any> = {
|
|
8349
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
8350
|
-
url: string;
|
|
8351
|
-
data?: Data;
|
|
8352
|
-
params?: URLSearchParams;
|
|
8353
|
-
} & APIMetadata$6;
|
|
8354
|
-
type APIMetadata$6 = {
|
|
8355
|
-
methodFqn?: string;
|
|
8356
|
-
entityFqdn?: string;
|
|
8357
|
-
packageName?: string;
|
|
8358
|
-
};
|
|
8359
|
-
type EventDefinition$3<Payload = unknown, Type extends string = string> = {
|
|
8360
|
-
__type: 'event-definition';
|
|
8361
|
-
type: Type;
|
|
8362
|
-
isDomainEvent?: boolean;
|
|
8363
|
-
transformations?: (envelope: unknown) => Payload;
|
|
8364
|
-
__payload: Payload;
|
|
8365
|
-
};
|
|
8366
|
-
declare function EventDefinition$3<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$3<Payload, Type>;
|
|
8367
|
-
|
|
8368
|
-
declare global {
|
|
8369
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
8370
|
-
interface SymbolConstructor {
|
|
8371
|
-
readonly observable: symbol;
|
|
8372
|
-
}
|
|
8373
|
-
}
|
|
8374
|
-
|
|
8375
8212
|
declare const __metadata$6: {
|
|
8376
8213
|
PACKAGE_NAME: string;
|
|
8377
8214
|
};
|
|
8378
|
-
declare function createServiceOptionsAndVariants(httpClient: HttpClient
|
|
8215
|
+
declare function createServiceOptionsAndVariants(httpClient: HttpClient): (serviceOptionsAndVariants: ServiceOptionsAndVariants) => Promise<ServiceOptionsAndVariants & {
|
|
8379
8216
|
options?: {
|
|
8380
8217
|
values: {
|
|
8381
8218
|
customData?: {
|
|
@@ -8408,8 +8245,8 @@ declare function createServiceOptionsAndVariants(httpClient: HttpClient$6): (ser
|
|
|
8408
8245
|
currency: string;
|
|
8409
8246
|
} | undefined;
|
|
8410
8247
|
}>;
|
|
8411
|
-
declare function cloneServiceOptionsAndVariants(httpClient: HttpClient
|
|
8412
|
-
declare function getServiceOptionsAndVariants(httpClient: HttpClient
|
|
8248
|
+
declare function cloneServiceOptionsAndVariants(httpClient: HttpClient): (cloneFromId: string, targetServiceId: string) => Promise<CloneServiceOptionsAndVariantsResponse & CloneServiceOptionsAndVariantsResponseNonNullableFields>;
|
|
8249
|
+
declare function getServiceOptionsAndVariants(httpClient: HttpClient): (serviceOptionsAndVariantsId: string) => Promise<ServiceOptionsAndVariants & {
|
|
8413
8250
|
options?: {
|
|
8414
8251
|
values: {
|
|
8415
8252
|
customData?: {
|
|
@@ -8442,8 +8279,8 @@ declare function getServiceOptionsAndVariants(httpClient: HttpClient$6): (servic
|
|
|
8442
8279
|
currency: string;
|
|
8443
8280
|
} | undefined;
|
|
8444
8281
|
}>;
|
|
8445
|
-
declare function getServiceOptionsAndVariantsByServiceId(httpClient: HttpClient
|
|
8446
|
-
declare function updateServiceOptionsAndVariants(httpClient: HttpClient
|
|
8282
|
+
declare function getServiceOptionsAndVariantsByServiceId(httpClient: HttpClient): (serviceId: string) => Promise<GetServiceOptionsAndVariantsByServiceIdResponse & GetServiceOptionsAndVariantsByServiceIdResponseNonNullableFields>;
|
|
8283
|
+
declare function updateServiceOptionsAndVariants(httpClient: HttpClient): (_id: string | null, serviceOptionsAndVariants: UpdateServiceOptionsAndVariants) => Promise<ServiceOptionsAndVariants & {
|
|
8447
8284
|
options?: {
|
|
8448
8285
|
values: {
|
|
8449
8286
|
customData?: {
|
|
@@ -8476,11 +8313,11 @@ declare function updateServiceOptionsAndVariants(httpClient: HttpClient$6): (_id
|
|
|
8476
8313
|
currency: string;
|
|
8477
8314
|
} | undefined;
|
|
8478
8315
|
}>;
|
|
8479
|
-
declare function deleteServiceOptionsAndVariants(httpClient: HttpClient
|
|
8480
|
-
declare function queryServiceOptionsAndVariants(httpClient: HttpClient
|
|
8481
|
-
declare const onServiceOptionsAndVariantsCreated: EventDefinition
|
|
8482
|
-
declare const onServiceOptionsAndVariantsUpdated: EventDefinition
|
|
8483
|
-
declare const onServiceOptionsAndVariantsDeleted: EventDefinition
|
|
8316
|
+
declare function deleteServiceOptionsAndVariants(httpClient: HttpClient): (serviceOptionsAndVariantsId: string, options?: DeleteServiceOptionsAndVariantsOptions) => Promise<void>;
|
|
8317
|
+
declare function queryServiceOptionsAndVariants(httpClient: HttpClient): () => ServiceOptionsAndVariantsListQueryBuilder;
|
|
8318
|
+
declare const onServiceOptionsAndVariantsCreated: EventDefinition<ServiceOptionsAndVariantsCreatedEnvelope, "wix.bookings.catalog.v1.service_options_and_variants_created">;
|
|
8319
|
+
declare const onServiceOptionsAndVariantsUpdated: EventDefinition<ServiceOptionsAndVariantsUpdatedEnvelope, "wix.bookings.catalog.v1.service_options_and_variants_updated">;
|
|
8320
|
+
declare const onServiceOptionsAndVariantsDeleted: EventDefinition<ServiceOptionsAndVariantsDeletedEnvelope, "wix.bookings.catalog.v1.service_options_and_variants_deleted">;
|
|
8484
8321
|
|
|
8485
8322
|
type index_d$6_BookingsApprovalPolicy = BookingsApprovalPolicy;
|
|
8486
8323
|
type index_d$6_BusinessServicesPolicy = BusinessServicesPolicy;
|
|
@@ -9373,41 +9210,10 @@ interface QueryExtendedBookingsOptions {
|
|
|
9373
9210
|
withBookingAttendanceInfo?: boolean;
|
|
9374
9211
|
}
|
|
9375
9212
|
|
|
9376
|
-
interface HttpClient$5 {
|
|
9377
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory$5<TResponse, TData>): Promise<HttpResponse$5<TResponse>>;
|
|
9378
|
-
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
9379
|
-
}
|
|
9380
|
-
type RequestOptionsFactory$5<TResponse = any, TData = any> = (context: any) => RequestOptions$5<TResponse, TData>;
|
|
9381
|
-
type HttpResponse$5<T = any> = {
|
|
9382
|
-
data: T;
|
|
9383
|
-
status: number;
|
|
9384
|
-
statusText: string;
|
|
9385
|
-
headers: any;
|
|
9386
|
-
request?: any;
|
|
9387
|
-
};
|
|
9388
|
-
type RequestOptions$5<_TResponse = any, Data = any> = {
|
|
9389
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
9390
|
-
url: string;
|
|
9391
|
-
data?: Data;
|
|
9392
|
-
params?: URLSearchParams;
|
|
9393
|
-
} & APIMetadata$5;
|
|
9394
|
-
type APIMetadata$5 = {
|
|
9395
|
-
methodFqn?: string;
|
|
9396
|
-
entityFqdn?: string;
|
|
9397
|
-
packageName?: string;
|
|
9398
|
-
};
|
|
9399
|
-
|
|
9400
|
-
declare global {
|
|
9401
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
9402
|
-
interface SymbolConstructor {
|
|
9403
|
-
readonly observable: symbol;
|
|
9404
|
-
}
|
|
9405
|
-
}
|
|
9406
|
-
|
|
9407
9213
|
declare const __metadata$5: {
|
|
9408
9214
|
PACKAGE_NAME: string;
|
|
9409
9215
|
};
|
|
9410
|
-
declare function queryExtendedBookings(httpClient: HttpClient
|
|
9216
|
+
declare function queryExtendedBookings(httpClient: HttpClient): (query: CommonQueryV2, options?: QueryExtendedBookingsOptions) => Promise<QueryExtendedBookingsResponse & QueryExtendedBookingsResponseNonNullableFields>;
|
|
9411
9217
|
|
|
9412
9218
|
type index_d$5_BookingFeeDetails = BookingFeeDetails;
|
|
9413
9219
|
type index_d$5_BookingFeeStatus = BookingFeeStatus;
|
|
@@ -10528,7 +10334,7 @@ interface ServiceAvailabilityConstraints {
|
|
|
10528
10334
|
* @readonly
|
|
10529
10335
|
* @deprecated Resource groups required to book the service. For backwards compatibility only. Use `serviceResources` instead.
|
|
10530
10336
|
* @replacedBy service_resources
|
|
10531
|
-
* @
|
|
10337
|
+
* @targetRemovalDate 2024-09-01
|
|
10532
10338
|
*/
|
|
10533
10339
|
resourceGroups?: ResourceGroup[];
|
|
10534
10340
|
/**
|
|
@@ -13526,49 +13332,10 @@ interface CountServicesOptions {
|
|
|
13526
13332
|
filter?: Record<string, any> | null;
|
|
13527
13333
|
}
|
|
13528
13334
|
|
|
13529
|
-
interface HttpClient$4 {
|
|
13530
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory$4<TResponse, TData>): Promise<HttpResponse$4<TResponse>>;
|
|
13531
|
-
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
13532
|
-
}
|
|
13533
|
-
type RequestOptionsFactory$4<TResponse = any, TData = any> = (context: any) => RequestOptions$4<TResponse, TData>;
|
|
13534
|
-
type HttpResponse$4<T = any> = {
|
|
13535
|
-
data: T;
|
|
13536
|
-
status: number;
|
|
13537
|
-
statusText: string;
|
|
13538
|
-
headers: any;
|
|
13539
|
-
request?: any;
|
|
13540
|
-
};
|
|
13541
|
-
type RequestOptions$4<_TResponse = any, Data = any> = {
|
|
13542
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
13543
|
-
url: string;
|
|
13544
|
-
data?: Data;
|
|
13545
|
-
params?: URLSearchParams;
|
|
13546
|
-
} & APIMetadata$4;
|
|
13547
|
-
type APIMetadata$4 = {
|
|
13548
|
-
methodFqn?: string;
|
|
13549
|
-
entityFqdn?: string;
|
|
13550
|
-
packageName?: string;
|
|
13551
|
-
};
|
|
13552
|
-
type EventDefinition$2<Payload = unknown, Type extends string = string> = {
|
|
13553
|
-
__type: 'event-definition';
|
|
13554
|
-
type: Type;
|
|
13555
|
-
isDomainEvent?: boolean;
|
|
13556
|
-
transformations?: (envelope: unknown) => Payload;
|
|
13557
|
-
__payload: Payload;
|
|
13558
|
-
};
|
|
13559
|
-
declare function EventDefinition$2<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$2<Payload, Type>;
|
|
13560
|
-
|
|
13561
|
-
declare global {
|
|
13562
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
13563
|
-
interface SymbolConstructor {
|
|
13564
|
-
readonly observable: symbol;
|
|
13565
|
-
}
|
|
13566
|
-
}
|
|
13567
|
-
|
|
13568
13335
|
declare const __metadata$4: {
|
|
13569
13336
|
PACKAGE_NAME: string;
|
|
13570
13337
|
};
|
|
13571
|
-
declare function createService(httpClient: HttpClient
|
|
13338
|
+
declare function createService(httpClient: HttpClient): (service: Service) => Promise<Service & {
|
|
13572
13339
|
type: ServiceType;
|
|
13573
13340
|
media?: {
|
|
13574
13341
|
items: {
|
|
@@ -13717,7 +13484,7 @@ declare function createService(httpClient: HttpClient$4): (service: Service) =>
|
|
|
13717
13484
|
} | undefined;
|
|
13718
13485
|
} | undefined;
|
|
13719
13486
|
}>;
|
|
13720
|
-
declare function getService(httpClient: HttpClient
|
|
13487
|
+
declare function getService(httpClient: HttpClient): (serviceId: string) => Promise<Service & {
|
|
13721
13488
|
type: ServiceType;
|
|
13722
13489
|
media?: {
|
|
13723
13490
|
items: {
|
|
@@ -13866,7 +13633,7 @@ declare function getService(httpClient: HttpClient$4): (serviceId: string) => Pr
|
|
|
13866
13633
|
} | undefined;
|
|
13867
13634
|
} | undefined;
|
|
13868
13635
|
}>;
|
|
13869
|
-
declare function updateService(httpClient: HttpClient
|
|
13636
|
+
declare function updateService(httpClient: HttpClient): (_id: string | null, service: UpdateService) => Promise<Service & {
|
|
13870
13637
|
type: ServiceType;
|
|
13871
13638
|
media?: {
|
|
13872
13639
|
items: {
|
|
@@ -14015,12 +13782,12 @@ declare function updateService(httpClient: HttpClient$4): (_id: string | null, s
|
|
|
14015
13782
|
} | undefined;
|
|
14016
13783
|
} | undefined;
|
|
14017
13784
|
}>;
|
|
14018
|
-
declare function deleteService(httpClient: HttpClient
|
|
14019
|
-
declare function queryServices(httpClient: HttpClient
|
|
14020
|
-
declare function countServices(httpClient: HttpClient
|
|
14021
|
-
declare const onServiceCreated: EventDefinition
|
|
14022
|
-
declare const onServiceUpdated: EventDefinition
|
|
14023
|
-
declare const onServiceDeleted: EventDefinition
|
|
13785
|
+
declare function deleteService(httpClient: HttpClient): (serviceId: string, options?: DeleteServiceOptions) => Promise<void>;
|
|
13786
|
+
declare function queryServices(httpClient: HttpClient): (options?: QueryServicesOptions) => ServicesQueryBuilder;
|
|
13787
|
+
declare function countServices(httpClient: HttpClient): (options?: CountServicesOptions) => Promise<CountServicesResponse & CountServicesResponseNonNullableFields>;
|
|
13788
|
+
declare const onServiceCreated: EventDefinition<ServiceCreatedEnvelope, "wix.bookings.services.v2.service_created">;
|
|
13789
|
+
declare const onServiceUpdated: EventDefinition<ServiceUpdatedEnvelope, "wix.bookings.services.v2.service_updated">;
|
|
13790
|
+
declare const onServiceDeleted: EventDefinition<ServiceDeletedEnvelope, "wix.bookings.services.v2.service_deleted">;
|
|
14024
13791
|
|
|
14025
13792
|
type index_d$4_Action = Action;
|
|
14026
13793
|
declare const index_d$4_Action: typeof Action;
|
|
@@ -14537,55 +14304,16 @@ interface DeleteCategoryOptions {
|
|
|
14537
14304
|
deleteServices?: boolean | null;
|
|
14538
14305
|
}
|
|
14539
14306
|
|
|
14540
|
-
interface HttpClient$3 {
|
|
14541
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory$3<TResponse, TData>): Promise<HttpResponse$3<TResponse>>;
|
|
14542
|
-
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
14543
|
-
}
|
|
14544
|
-
type RequestOptionsFactory$3<TResponse = any, TData = any> = (context: any) => RequestOptions$3<TResponse, TData>;
|
|
14545
|
-
type HttpResponse$3<T = any> = {
|
|
14546
|
-
data: T;
|
|
14547
|
-
status: number;
|
|
14548
|
-
statusText: string;
|
|
14549
|
-
headers: any;
|
|
14550
|
-
request?: any;
|
|
14551
|
-
};
|
|
14552
|
-
type RequestOptions$3<_TResponse = any, Data = any> = {
|
|
14553
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
14554
|
-
url: string;
|
|
14555
|
-
data?: Data;
|
|
14556
|
-
params?: URLSearchParams;
|
|
14557
|
-
} & APIMetadata$3;
|
|
14558
|
-
type APIMetadata$3 = {
|
|
14559
|
-
methodFqn?: string;
|
|
14560
|
-
entityFqdn?: string;
|
|
14561
|
-
packageName?: string;
|
|
14562
|
-
};
|
|
14563
|
-
type EventDefinition$1<Payload = unknown, Type extends string = string> = {
|
|
14564
|
-
__type: 'event-definition';
|
|
14565
|
-
type: Type;
|
|
14566
|
-
isDomainEvent?: boolean;
|
|
14567
|
-
transformations?: (envelope: unknown) => Payload;
|
|
14568
|
-
__payload: Payload;
|
|
14569
|
-
};
|
|
14570
|
-
declare function EventDefinition$1<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$1<Payload, Type>;
|
|
14571
|
-
|
|
14572
|
-
declare global {
|
|
14573
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
14574
|
-
interface SymbolConstructor {
|
|
14575
|
-
readonly observable: symbol;
|
|
14576
|
-
}
|
|
14577
|
-
}
|
|
14578
|
-
|
|
14579
14307
|
declare const __metadata$3: {
|
|
14580
14308
|
PACKAGE_NAME: string;
|
|
14581
14309
|
};
|
|
14582
|
-
declare function listCategories(httpClient: HttpClient
|
|
14583
|
-
declare function createCategory(httpClient: HttpClient
|
|
14310
|
+
declare function listCategories(httpClient: HttpClient): (options?: ListCategoriesOptions) => Promise<ListCategoryResponse & ListCategoryResponseNonNullableFields>;
|
|
14311
|
+
declare function createCategory(httpClient: HttpClient): (category: Category) => Promise<Category & {
|
|
14584
14312
|
status: Status;
|
|
14585
14313
|
}>;
|
|
14586
|
-
declare function updateCategory(httpClient: HttpClient
|
|
14587
|
-
declare function deleteCategory(httpClient: HttpClient
|
|
14588
|
-
declare const onCategoryNotification: EventDefinition
|
|
14314
|
+
declare function updateCategory(httpClient: HttpClient): (_id: string | null, category: UpdateCategory) => Promise<UpdateCategoryResponse & UpdateCategoryResponseNonNullableFields>;
|
|
14315
|
+
declare function deleteCategory(httpClient: HttpClient): (_id: string | null, options?: DeleteCategoryOptions) => Promise<DeleteCategoryResponse>;
|
|
14316
|
+
declare const onCategoryNotification: EventDefinition<CategoryNotificationEnvelope, "com.wixpress.bookings.services.api.v1.CategoryNotification">;
|
|
14589
14317
|
|
|
14590
14318
|
type index_d$3_BatchCreateCategoryRequest = BatchCreateCategoryRequest;
|
|
14591
14319
|
type index_d$3_BatchCreateCategoryResponse = BatchCreateCategoryResponse;
|
|
@@ -14709,7 +14437,7 @@ interface BulkSetAttendanceRequest {
|
|
|
14709
14437
|
* @deprecated The attendance information for a booked sessions that you want to create or update. Min size 1.
|
|
14710
14438
|
* Deprecated. use `attendance_details`.
|
|
14711
14439
|
* @replacedBy attendance_details
|
|
14712
|
-
* @
|
|
14440
|
+
* @targetRemovalDate 2024-06-01
|
|
14713
14441
|
*/
|
|
14714
14442
|
attendanceList?: Attendance[];
|
|
14715
14443
|
returnFullEntity?: boolean;
|
|
@@ -15044,46 +14772,15 @@ interface AttendancesQueryBuilder {
|
|
|
15044
14772
|
find: () => Promise<AttendancesQueryResult>;
|
|
15045
14773
|
}
|
|
15046
14774
|
|
|
15047
|
-
interface HttpClient$2 {
|
|
15048
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory$2<TResponse, TData>): Promise<HttpResponse$2<TResponse>>;
|
|
15049
|
-
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
15050
|
-
}
|
|
15051
|
-
type RequestOptionsFactory$2<TResponse = any, TData = any> = (context: any) => RequestOptions$2<TResponse, TData>;
|
|
15052
|
-
type HttpResponse$2<T = any> = {
|
|
15053
|
-
data: T;
|
|
15054
|
-
status: number;
|
|
15055
|
-
statusText: string;
|
|
15056
|
-
headers: any;
|
|
15057
|
-
request?: any;
|
|
15058
|
-
};
|
|
15059
|
-
type RequestOptions$2<_TResponse = any, Data = any> = {
|
|
15060
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
15061
|
-
url: string;
|
|
15062
|
-
data?: Data;
|
|
15063
|
-
params?: URLSearchParams;
|
|
15064
|
-
} & APIMetadata$2;
|
|
15065
|
-
type APIMetadata$2 = {
|
|
15066
|
-
methodFqn?: string;
|
|
15067
|
-
entityFqdn?: string;
|
|
15068
|
-
packageName?: string;
|
|
15069
|
-
};
|
|
15070
|
-
|
|
15071
|
-
declare global {
|
|
15072
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
15073
|
-
interface SymbolConstructor {
|
|
15074
|
-
readonly observable: symbol;
|
|
15075
|
-
}
|
|
15076
|
-
}
|
|
15077
|
-
|
|
15078
14775
|
declare const __metadata$2: {
|
|
15079
14776
|
PACKAGE_NAME: string;
|
|
15080
14777
|
};
|
|
15081
|
-
declare function getAttendance(httpClient: HttpClient
|
|
14778
|
+
declare function getAttendance(httpClient: HttpClient): (attendanceId: string) => Promise<Attendance & {
|
|
15082
14779
|
status: AttendanceStatus;
|
|
15083
14780
|
numberOfAttendees: number;
|
|
15084
14781
|
}>;
|
|
15085
|
-
declare function setAttendance(httpClient: HttpClient
|
|
15086
|
-
declare function queryAttendance(httpClient: HttpClient
|
|
14782
|
+
declare function setAttendance(httpClient: HttpClient): (attendance: Attendance, options?: SetAttendanceOptions) => Promise<SetAttendanceResponse & SetAttendanceResponseNonNullableFields>;
|
|
14783
|
+
declare function queryAttendance(httpClient: HttpClient): () => AttendancesQueryBuilder;
|
|
15087
14784
|
|
|
15088
14785
|
type index_d$2_Attendance = Attendance;
|
|
15089
14786
|
type index_d$2_AttendanceDetails = AttendanceDetails;
|
|
@@ -18110,57 +17807,18 @@ interface ConfirmOrDeclineBookingOptions {
|
|
|
18110
17807
|
paymentStatus?: PaymentStatus$1;
|
|
18111
17808
|
}
|
|
18112
17809
|
|
|
18113
|
-
interface HttpClient$1 {
|
|
18114
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory$1<TResponse, TData>): Promise<HttpResponse$1<TResponse>>;
|
|
18115
|
-
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
18116
|
-
}
|
|
18117
|
-
type RequestOptionsFactory$1<TResponse = any, TData = any> = (context: any) => RequestOptions$1<TResponse, TData>;
|
|
18118
|
-
type HttpResponse$1<T = any> = {
|
|
18119
|
-
data: T;
|
|
18120
|
-
status: number;
|
|
18121
|
-
statusText: string;
|
|
18122
|
-
headers: any;
|
|
18123
|
-
request?: any;
|
|
18124
|
-
};
|
|
18125
|
-
type RequestOptions$1<_TResponse = any, Data = any> = {
|
|
18126
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
18127
|
-
url: string;
|
|
18128
|
-
data?: Data;
|
|
18129
|
-
params?: URLSearchParams;
|
|
18130
|
-
} & APIMetadata$1;
|
|
18131
|
-
type APIMetadata$1 = {
|
|
18132
|
-
methodFqn?: string;
|
|
18133
|
-
entityFqdn?: string;
|
|
18134
|
-
packageName?: string;
|
|
18135
|
-
};
|
|
18136
|
-
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
18137
|
-
__type: 'event-definition';
|
|
18138
|
-
type: Type;
|
|
18139
|
-
isDomainEvent?: boolean;
|
|
18140
|
-
transformations?: (envelope: unknown) => Payload;
|
|
18141
|
-
__payload: Payload;
|
|
18142
|
-
};
|
|
18143
|
-
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
18144
|
-
|
|
18145
|
-
declare global {
|
|
18146
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
18147
|
-
interface SymbolConstructor {
|
|
18148
|
-
readonly observable: symbol;
|
|
18149
|
-
}
|
|
18150
|
-
}
|
|
18151
|
-
|
|
18152
17810
|
declare const __metadata$1: {
|
|
18153
17811
|
PACKAGE_NAME: string;
|
|
18154
17812
|
};
|
|
18155
|
-
declare function createBooking(httpClient: HttpClient
|
|
18156
|
-
declare function bulkCreateBooking(httpClient: HttpClient
|
|
18157
|
-
declare function rescheduleBooking(httpClient: HttpClient
|
|
18158
|
-
declare function confirmBooking(httpClient: HttpClient
|
|
18159
|
-
declare function updateExtendedFields(httpClient: HttpClient
|
|
18160
|
-
declare function declineBooking(httpClient: HttpClient
|
|
18161
|
-
declare function cancelBooking(httpClient: HttpClient
|
|
18162
|
-
declare function updateNumberOfParticipants(httpClient: HttpClient
|
|
18163
|
-
declare function confirmOrDeclineBooking(httpClient: HttpClient
|
|
17813
|
+
declare function createBooking(httpClient: HttpClient): (booking: Booking$1, options?: CreateBookingOptions) => Promise<CreateBookingResponse & CreateBookingResponseNonNullableFields>;
|
|
17814
|
+
declare function bulkCreateBooking(httpClient: HttpClient): (createBookingsInfo: CreateBookingInfo[], options?: BulkCreateBookingOptions) => Promise<BulkCreateBookingResponse & BulkCreateBookingResponseNonNullableFields>;
|
|
17815
|
+
declare function rescheduleBooking(httpClient: HttpClient): (bookingId: string, slot: V2Slot, options?: RescheduleBookingOptions) => Promise<RescheduleBookingResponse & RescheduleBookingResponseNonNullableFields>;
|
|
17816
|
+
declare function confirmBooking(httpClient: HttpClient): (bookingId: string, revision: string | null, options?: ConfirmBookingOptions) => Promise<ConfirmBookingResponse & ConfirmBookingResponseNonNullableFields>;
|
|
17817
|
+
declare function updateExtendedFields(httpClient: HttpClient): (_id: string, namespace: string, options: UpdateExtendedFieldsOptions) => Promise<UpdateExtendedFieldsResponse & UpdateExtendedFieldsResponseNonNullableFields>;
|
|
17818
|
+
declare function declineBooking(httpClient: HttpClient): (bookingId: string, revision: string | null, options?: DeclineBookingOptions) => Promise<DeclineBookingResponse & DeclineBookingResponseNonNullableFields>;
|
|
17819
|
+
declare function cancelBooking(httpClient: HttpClient): (bookingId: string, options?: CancelBookingOptions) => Promise<CancelBookingResponse & CancelBookingResponseNonNullableFields>;
|
|
17820
|
+
declare function updateNumberOfParticipants(httpClient: HttpClient): (bookingId: string, options?: UpdateNumberOfParticipantsOptions) => Promise<UpdateNumberOfParticipantsResponse & UpdateNumberOfParticipantsResponseNonNullableFields>;
|
|
17821
|
+
declare function confirmOrDeclineBooking(httpClient: HttpClient): (bookingId: string, options?: ConfirmOrDeclineBookingOptions) => Promise<ConfirmOrDeclineBookingResponse & ConfirmOrDeclineBookingResponseNonNullableFields>;
|
|
18164
17822
|
declare const onBookingCreated: EventDefinition<BookingCreatedEnvelope, "wix.bookings.v2.booking_created">;
|
|
18165
17823
|
declare const onBookingRescheduled: EventDefinition<BookingRescheduledEnvelope, "wix.bookings.v2.booking_rescheduled">;
|
|
18166
17824
|
declare const onBookingCanceled: EventDefinition<BookingCanceledEnvelope, "wix.bookings.v2.booking_canceled">;
|
|
@@ -19022,37 +18680,6 @@ interface CalculatePriceResponseNonNullableFields {
|
|
|
19022
18680
|
};
|
|
19023
18681
|
}
|
|
19024
18682
|
|
|
19025
|
-
interface HttpClient {
|
|
19026
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
19027
|
-
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
19028
|
-
}
|
|
19029
|
-
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
19030
|
-
type HttpResponse<T = any> = {
|
|
19031
|
-
data: T;
|
|
19032
|
-
status: number;
|
|
19033
|
-
statusText: string;
|
|
19034
|
-
headers: any;
|
|
19035
|
-
request?: any;
|
|
19036
|
-
};
|
|
19037
|
-
type RequestOptions<_TResponse = any, Data = any> = {
|
|
19038
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
19039
|
-
url: string;
|
|
19040
|
-
data?: Data;
|
|
19041
|
-
params?: URLSearchParams;
|
|
19042
|
-
} & APIMetadata;
|
|
19043
|
-
type APIMetadata = {
|
|
19044
|
-
methodFqn?: string;
|
|
19045
|
-
entityFqdn?: string;
|
|
19046
|
-
packageName?: string;
|
|
19047
|
-
};
|
|
19048
|
-
|
|
19049
|
-
declare global {
|
|
19050
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
19051
|
-
interface SymbolConstructor {
|
|
19052
|
-
readonly observable: symbol;
|
|
19053
|
-
}
|
|
19054
|
-
}
|
|
19055
|
-
|
|
19056
18683
|
declare const __metadata: {
|
|
19057
18684
|
PACKAGE_NAME: string;
|
|
19058
18685
|
};
|