@msm-platform/customer-sdk 0.5.1 → 0.5.2
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/CHANGELOG.md +15 -0
- package/dist/generated/api.d.ts +411 -56
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,21 @@ All notable changes to `@msm-platform/customer-sdk`. The format follows [Keep a
|
|
|
4
4
|
|
|
5
5
|
## [Unreleased]
|
|
6
6
|
|
|
7
|
+
## [0.5.2] - 2026-11-24
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
|
|
11
|
+
- Each booking `listOwnBookings` and `getOwnBooking` return has `event.resources` and `event.location`, the event's resources in its order, each `{ id, displayName, person, presentedAs }`, and where it is, `{ name, address, latitude, longitude }` or null, resolved as `listAvailability`'s items are, read live, and also for a cancelled event.
|
|
12
|
+
- `reserveCandidate` returns the hold with `price`, its event type's current price as its checkout charges it (`{ amount, currency, vatRateBp, advanceAmount }`), or null for a time with no price. `releaseReservation`, `DELETE /web/businesses/{businessId}/reservations/{reservationId}`, lets go of your own hold so its seat or slot is free again and it no longer counts toward your 5 holds, answering 204; while its payment is still open at the provider it answers 409 `ReservationPaymentOpen` and keeps the hold, so paying still books the time.
|
|
13
|
+
- Each business `getPublicBusiness`, `getPublicBusinessBySlug` and `listPublicBusinesses` return has `openingHours`: its open weekdays (1 Monday to 7 Sunday), each `{ weekday, periods }` with `{ startsAt, endsAt }` periods in business-local `HH:MM`, where a weekday not listed is closed, or null when the business has not set opening hours. `listPublicPeople`, `GET /web/businesses/{businessId}/people`, lists the people a public business presents, its active staff and those placed with it, by the business's order, each `{ id, displayName, role, bio, image, eventTypeIds }`, where `eventTypeIds` are the business's event types they are on; it answers 404 `BusinessNotFound` for a business that is not public.
|
|
14
|
+
- A business an admin has disabled answers every booking, checkout, purchase and other customer write with 409 `BusinessDisabled` until it is enabled again; payments already under way still complete. Its reads answer as for a business that is not public (404 `BusinessNotFound`, and `listPublicBusinesses` leaves it out), while `cancelOwnBooking` and the customer's own bookings still work, now also in a business that is not public.
|
|
15
|
+
- Each business `getPublicBusiness`, `getPublicBusinessBySlug` and `listPublicBusinesses` return has `gallery`, its photos in the order the business set, each `{ id, image }` where `image` has the same shape as `cover` (empty when it has none, at most 12), and its social links `instagramUrl`, `facebookUrl`, `tiktokUrl` and `websiteUrl`, each an http(s) URL or null when not set.
|
|
16
|
+
- Each `listPublicAvailability` item has `location`, where the event is, as `{ name, address, latitude, longitude }` or null: the location of its first place resource (one that is not a person) that has one, such as `{ name: "Iðnó", … }`; otherwise the address of the business that owns its first place resource, which for a placed resource is the providing business, with `name` null; otherwise, when it has no place resource, its own business's address, with `name` null; null when that business has no address. `name` null shows the address alone, and `latitude` and `longitude` are null when the business has no coordinates. A slot has a place resource only when the query names one. The location is read live, so a business's change shows at once.
|
|
17
|
+
|
|
18
|
+
### Changed
|
|
19
|
+
|
|
20
|
+
- Through Miðgarður's client without `X-Partner`, a business of a partner that Miðgarður's directory does not list answers every `/web/businesses/{businessId}` route, such as `getPublicBusiness`, its event types, people, availability, reservations and the customer's own booking there, with 403 `OutsideClientScope` instead of answering, as `listPublicBusinesses` already leaves it out; the customer's bookings and memberships there leave `GET /web/me/bookings` and `GET /web/me/memberships`. The partner's own host, with `X-Partner`, still reaches it all.
|
|
21
|
+
|
|
7
22
|
## [0.5.1] - 2026-11-23
|
|
8
23
|
|
|
9
24
|
### Added
|
package/dist/generated/api.d.ts
CHANGED
|
@@ -118,6 +118,23 @@ export interface paths {
|
|
|
118
118
|
patch?: never;
|
|
119
119
|
trace?: never;
|
|
120
120
|
};
|
|
121
|
+
"/web/businesses/{businessId}/people": {
|
|
122
|
+
parameters: {
|
|
123
|
+
query?: never;
|
|
124
|
+
header?: never;
|
|
125
|
+
path?: never;
|
|
126
|
+
cookie?: never;
|
|
127
|
+
};
|
|
128
|
+
/** List the people a public business presents: its active staff resources and those placed with it, each with its role, bio, portrait and the business's event types they are on */
|
|
129
|
+
get: operations["listPublicPeople"];
|
|
130
|
+
put?: never;
|
|
131
|
+
post?: never;
|
|
132
|
+
delete?: never;
|
|
133
|
+
options?: never;
|
|
134
|
+
head?: never;
|
|
135
|
+
patch?: never;
|
|
136
|
+
trace?: never;
|
|
137
|
+
};
|
|
121
138
|
"/web/businesses/{businessId}/products": {
|
|
122
139
|
parameters: {
|
|
123
140
|
query?: never;
|
|
@@ -162,7 +179,7 @@ export interface paths {
|
|
|
162
179
|
};
|
|
163
180
|
get?: never;
|
|
164
181
|
put?: never;
|
|
165
|
-
/** Hold a booking candidate for yourself for the platform hold duration: a seat in a scheduled event (409 EventFull when none is free) or an open time slot (422 NotATimeSlot, 409 SlotTaken). A customer holds at most 5 active reservations at once across the businesses this client reaches (409 ReservationLimitReached). A customer the business's no-show ban policy bans is 403 BookingBanned with `bannedUntil` */
|
|
182
|
+
/** Hold a booking candidate for yourself for the platform hold duration: a seat in a scheduled event (409 EventFull when none is free) or an open time slot (422 NotATimeSlot, 409 SlotTaken). A customer holds at most 5 active reservations at once across the businesses this client reaches (409 ReservationLimitReached). A customer the business's no-show ban policy bans is 403 BookingBanned with `bannedUntil`. The hold comes with its event type's current `price`, the one its checkout charges, or null for a time with no price */
|
|
166
183
|
post: operations["reserveCandidate"];
|
|
167
184
|
delete?: never;
|
|
168
185
|
options?: never;
|
|
@@ -170,6 +187,23 @@ export interface paths {
|
|
|
170
187
|
patch?: never;
|
|
171
188
|
trace?: never;
|
|
172
189
|
};
|
|
190
|
+
"/web/businesses/{businessId}/reservations/{reservationId}": {
|
|
191
|
+
parameters: {
|
|
192
|
+
query?: never;
|
|
193
|
+
header?: never;
|
|
194
|
+
path?: never;
|
|
195
|
+
cookie?: never;
|
|
196
|
+
};
|
|
197
|
+
get?: never;
|
|
198
|
+
put?: never;
|
|
199
|
+
post?: never;
|
|
200
|
+
/** Let go of your own hold, as when you choose another time, so its seat or slot is free again and it no longer counts toward your 5 holds; its checkout is released with it. While the hold's payment is still open at the provider it is refused with 409 ReservationPaymentOpen and the hold stays until the payment ends, so paying still books the time. A hold that has already ended or was booked stays as it is */
|
|
201
|
+
delete: operations["releaseReservation"];
|
|
202
|
+
options?: never;
|
|
203
|
+
head?: never;
|
|
204
|
+
patch?: never;
|
|
205
|
+
trace?: never;
|
|
206
|
+
};
|
|
173
207
|
"/web/businesses/{businessId}/reservations/{reservationId}/checkout": {
|
|
174
208
|
parameters: {
|
|
175
209
|
query?: never;
|
|
@@ -507,6 +541,99 @@ export interface components {
|
|
|
507
541
|
};
|
|
508
542
|
};
|
|
509
543
|
};
|
|
544
|
+
/** @description - `BusinessDisabled`: The business is disabled: until an admin enables it, only reads and winding down work, such as cancelling bookings, refunds and settling payments already under way */
|
|
545
|
+
BusinessDisabled: {
|
|
546
|
+
headers: {
|
|
547
|
+
[name: string]: unknown;
|
|
548
|
+
};
|
|
549
|
+
content: {
|
|
550
|
+
"application/json": components["schemas"]["ErrorResponse"] & {
|
|
551
|
+
/** @enum {string} */
|
|
552
|
+
code: "BusinessDisabled";
|
|
553
|
+
};
|
|
554
|
+
};
|
|
555
|
+
};
|
|
556
|
+
/**
|
|
557
|
+
* @description - `BusinessDisabled`: The business is disabled: until an admin enables it, only reads and winding down work, such as cancelling bookings, refunds and settling payments already under way
|
|
558
|
+
* - `DeliveryLimitReached`: The customer already has as many of this product's memberships as one customer may get
|
|
559
|
+
* - `PaymentAlreadySucceeded`: This part of the agreement was already paid, with another amount, collector or provider
|
|
560
|
+
* - `PaymentInProgress`: This part of the agreement has an open payment attempt for another amount, collector or provider; wait until it ends
|
|
561
|
+
*/
|
|
562
|
+
"BusinessDisabled-DeliveryLimitReached-PaymentAlreadySucceeded-PaymentInProgress": {
|
|
563
|
+
headers: {
|
|
564
|
+
[name: string]: unknown;
|
|
565
|
+
};
|
|
566
|
+
content: {
|
|
567
|
+
"application/json": components["schemas"]["ErrorResponse"] & {
|
|
568
|
+
/** @enum {string} */
|
|
569
|
+
code: "BusinessDisabled" | "DeliveryLimitReached" | "PaymentAlreadySucceeded" | "PaymentInProgress";
|
|
570
|
+
};
|
|
571
|
+
};
|
|
572
|
+
};
|
|
573
|
+
/**
|
|
574
|
+
* @description - `BusinessDisabled`: The business is disabled: until an admin enables it, only reads and winding down work, such as cancelling bookings, refunds and settling payments already under way
|
|
575
|
+
* - `EventFull`: The event has no free seat
|
|
576
|
+
* - `ReservationLimitReached`: The customer already holds the most active reservations allowed on Web (5, across the businesses this client reaches); reserve again once a hold lapses or is confirmed
|
|
577
|
+
* - `SlotTaken`: The time slot is taken on every resource that could provide it
|
|
578
|
+
*/
|
|
579
|
+
"BusinessDisabled-EventFull-ReservationLimitReached-SlotTaken": {
|
|
580
|
+
headers: {
|
|
581
|
+
[name: string]: unknown;
|
|
582
|
+
};
|
|
583
|
+
content: {
|
|
584
|
+
"application/json": components["schemas"]["ErrorResponse"] & {
|
|
585
|
+
/** @enum {string} */
|
|
586
|
+
code: "BusinessDisabled" | "EventFull" | "ReservationLimitReached" | "SlotTaken";
|
|
587
|
+
};
|
|
588
|
+
};
|
|
589
|
+
};
|
|
590
|
+
/**
|
|
591
|
+
* @description - `BusinessDisabled`: The business is disabled: until an admin enables it, only reads and winding down work, such as cancelling bookings, refunds and settling payments already under way
|
|
592
|
+
* - `PaymentAlreadySucceeded`: This part of the agreement was already paid, with another amount, collector or provider
|
|
593
|
+
* - `PaymentInProgress`: This part of the agreement has an open payment attempt for another amount, collector or provider; wait until it ends
|
|
594
|
+
* - `ReservationExpired`: The reservation expired and no longer holds its seat or slot
|
|
595
|
+
*/
|
|
596
|
+
"BusinessDisabled-PaymentAlreadySucceeded-PaymentInProgress-ReservationExpired": {
|
|
597
|
+
headers: {
|
|
598
|
+
[name: string]: unknown;
|
|
599
|
+
};
|
|
600
|
+
content: {
|
|
601
|
+
"application/json": components["schemas"]["ErrorResponse"] & {
|
|
602
|
+
/** @enum {string} */
|
|
603
|
+
code: "BusinessDisabled" | "PaymentAlreadySucceeded" | "PaymentInProgress" | "ReservationExpired";
|
|
604
|
+
};
|
|
605
|
+
};
|
|
606
|
+
};
|
|
607
|
+
/**
|
|
608
|
+
* @description - `BusinessDisabled`: The business is disabled: until an admin enables it, only reads and winding down work, such as cancelling bookings, refunds and settling payments already under way
|
|
609
|
+
* - `ReservationExpired`: The reservation expired and no longer holds its seat or slot
|
|
610
|
+
*/
|
|
611
|
+
"BusinessDisabled-ReservationExpired": {
|
|
612
|
+
headers: {
|
|
613
|
+
[name: string]: unknown;
|
|
614
|
+
};
|
|
615
|
+
content: {
|
|
616
|
+
"application/json": components["schemas"]["ErrorResponse"] & {
|
|
617
|
+
/** @enum {string} */
|
|
618
|
+
code: "BusinessDisabled" | "ReservationExpired";
|
|
619
|
+
};
|
|
620
|
+
};
|
|
621
|
+
};
|
|
622
|
+
/**
|
|
623
|
+
* @description - `BusinessDisabled`: The business is disabled: until an admin enables it, only reads and winding down work, such as cancelling bookings, refunds and settling payments already under way
|
|
624
|
+
* - `ReservationPaymentOpen`: The reservation's payment is still open at the provider, so it keeps its seat or slot until the payment ends; paying it still books the time
|
|
625
|
+
*/
|
|
626
|
+
"BusinessDisabled-ReservationPaymentOpen": {
|
|
627
|
+
headers: {
|
|
628
|
+
[name: string]: unknown;
|
|
629
|
+
};
|
|
630
|
+
content: {
|
|
631
|
+
"application/json": components["schemas"]["ErrorResponse"] & {
|
|
632
|
+
/** @enum {string} */
|
|
633
|
+
code: "BusinessDisabled" | "ReservationPaymentOpen";
|
|
634
|
+
};
|
|
635
|
+
};
|
|
636
|
+
};
|
|
510
637
|
/** @description - `BusinessNotFound`: The business does not exist or is not public */
|
|
511
638
|
BusinessNotFound: {
|
|
512
639
|
headers: {
|
|
@@ -651,38 +778,6 @@ export interface components {
|
|
|
651
778
|
};
|
|
652
779
|
};
|
|
653
780
|
};
|
|
654
|
-
/**
|
|
655
|
-
* @description - `DeliveryLimitReached`: The customer already has as many of this product's memberships as one customer may get
|
|
656
|
-
* - `PaymentAlreadySucceeded`: This part of the agreement was already paid, with another amount, collector or provider
|
|
657
|
-
* - `PaymentInProgress`: This part of the agreement has an open payment attempt for another amount, collector or provider; wait until it ends
|
|
658
|
-
*/
|
|
659
|
-
"DeliveryLimitReached-PaymentAlreadySucceeded-PaymentInProgress": {
|
|
660
|
-
headers: {
|
|
661
|
-
[name: string]: unknown;
|
|
662
|
-
};
|
|
663
|
-
content: {
|
|
664
|
-
"application/json": components["schemas"]["ErrorResponse"] & {
|
|
665
|
-
/** @enum {string} */
|
|
666
|
-
code: "DeliveryLimitReached" | "PaymentAlreadySucceeded" | "PaymentInProgress";
|
|
667
|
-
};
|
|
668
|
-
};
|
|
669
|
-
};
|
|
670
|
-
/**
|
|
671
|
-
* @description - `EventFull`: The event has no free seat
|
|
672
|
-
* - `ReservationLimitReached`: The customer already holds the most active reservations allowed on Web (5, across the businesses this client reaches); reserve again once a hold lapses or is confirmed
|
|
673
|
-
* - `SlotTaken`: The time slot is taken on every resource that could provide it
|
|
674
|
-
*/
|
|
675
|
-
"EventFull-ReservationLimitReached-SlotTaken": {
|
|
676
|
-
headers: {
|
|
677
|
-
[name: string]: unknown;
|
|
678
|
-
};
|
|
679
|
-
content: {
|
|
680
|
-
"application/json": components["schemas"]["ErrorResponse"] & {
|
|
681
|
-
/** @enum {string} */
|
|
682
|
-
code: "EventFull" | "ReservationLimitReached" | "SlotTaken";
|
|
683
|
-
};
|
|
684
|
-
};
|
|
685
|
-
};
|
|
686
781
|
/**
|
|
687
782
|
* @description - `EventNotBookable`: Only a scheduled event with a live event type can be reserved or booked
|
|
688
783
|
* - `EventStarted`: The event has started
|
|
@@ -831,22 +926,6 @@ export interface components {
|
|
|
831
926
|
};
|
|
832
927
|
};
|
|
833
928
|
};
|
|
834
|
-
/**
|
|
835
|
-
* @description - `PaymentAlreadySucceeded`: This part of the agreement was already paid, with another amount, collector or provider
|
|
836
|
-
* - `PaymentInProgress`: This part of the agreement has an open payment attempt for another amount, collector or provider; wait until it ends
|
|
837
|
-
* - `ReservationExpired`: The reservation expired and no longer holds its seat or slot
|
|
838
|
-
*/
|
|
839
|
-
"PaymentAlreadySucceeded-PaymentInProgress-ReservationExpired": {
|
|
840
|
-
headers: {
|
|
841
|
-
[name: string]: unknown;
|
|
842
|
-
};
|
|
843
|
-
content: {
|
|
844
|
-
"application/json": components["schemas"]["ErrorResponse"] & {
|
|
845
|
-
/** @enum {string} */
|
|
846
|
-
code: "PaymentAlreadySucceeded" | "PaymentInProgress" | "ReservationExpired";
|
|
847
|
-
};
|
|
848
|
-
};
|
|
849
|
-
};
|
|
850
929
|
/**
|
|
851
930
|
* @description - `PaymentCredentialsUnavailable`: The engine cannot store or read payment provider credentials now; retry after `Retry-After` seconds
|
|
852
931
|
* - `PaymentProviderUnavailable`: The payment provider did not answer, or it is not configured here; the same request retries the same attempt after `Retry-After` seconds
|
|
@@ -920,15 +999,15 @@ export interface components {
|
|
|
920
999
|
};
|
|
921
1000
|
};
|
|
922
1001
|
};
|
|
923
|
-
/** @description - `
|
|
924
|
-
|
|
1002
|
+
/** @description - `ReservationNotFound`: The reservation does not exist, or is not the caller's */
|
|
1003
|
+
ReservationNotFound: {
|
|
925
1004
|
headers: {
|
|
926
1005
|
[name: string]: unknown;
|
|
927
1006
|
};
|
|
928
1007
|
content: {
|
|
929
1008
|
"application/json": components["schemas"]["ErrorResponse"] & {
|
|
930
1009
|
/** @enum {string} */
|
|
931
|
-
code: "
|
|
1010
|
+
code: "ReservationNotFound";
|
|
932
1011
|
};
|
|
933
1012
|
};
|
|
934
1013
|
};
|
|
@@ -1016,8 +1095,34 @@ export interface operations {
|
|
|
1016
1095
|
displayName: string;
|
|
1017
1096
|
/** Format: email */
|
|
1018
1097
|
email: string | null;
|
|
1098
|
+
/**
|
|
1099
|
+
* Format: uri
|
|
1100
|
+
* @description The business's Facebook page, an https URL
|
|
1101
|
+
*/
|
|
1102
|
+
facebookUrl: string | null;
|
|
1103
|
+
gallery: {
|
|
1104
|
+
/** Format: uuid */
|
|
1105
|
+
id: string;
|
|
1106
|
+
image: {
|
|
1107
|
+
height: number;
|
|
1108
|
+
small: {
|
|
1109
|
+
height: number;
|
|
1110
|
+
/** Format: uri */
|
|
1111
|
+
url: string;
|
|
1112
|
+
width: number;
|
|
1113
|
+
};
|
|
1114
|
+
/** Format: uri */
|
|
1115
|
+
url: string;
|
|
1116
|
+
width: number;
|
|
1117
|
+
};
|
|
1118
|
+
}[];
|
|
1019
1119
|
/** Format: uuid */
|
|
1020
1120
|
id: string;
|
|
1121
|
+
/**
|
|
1122
|
+
* Format: uri
|
|
1123
|
+
* @description The business's Instagram page, an https URL
|
|
1124
|
+
*/
|
|
1125
|
+
instagramUrl: string | null;
|
|
1021
1126
|
/** @enum {string} */
|
|
1022
1127
|
kind: "organization" | "contractor";
|
|
1023
1128
|
latitude: number | null;
|
|
@@ -1034,6 +1139,16 @@ export interface operations {
|
|
|
1034
1139
|
width: number;
|
|
1035
1140
|
} | null;
|
|
1036
1141
|
longitude: number | null;
|
|
1142
|
+
/** @description The open weekdays (1 Monday to 7 Sunday) with their periods, business-local; unlisted days are closed. Null when the business has not set opening hours */
|
|
1143
|
+
openingHours: {
|
|
1144
|
+
periods: {
|
|
1145
|
+
/** @description HH:MM, business-local; 24:00 is midnight */
|
|
1146
|
+
endsAt: string;
|
|
1147
|
+
/** @description HH:MM, business-local */
|
|
1148
|
+
startsAt: string;
|
|
1149
|
+
}[];
|
|
1150
|
+
weekday: number;
|
|
1151
|
+
}[] | null;
|
|
1037
1152
|
person: {
|
|
1038
1153
|
displayName: string;
|
|
1039
1154
|
image: {
|
|
@@ -1073,7 +1188,17 @@ export interface operations {
|
|
|
1073
1188
|
/** @description The business's URL slug: lower-case letters and digits in words joined by single hyphens, unique within the partner. Set from the name when the business is created; a rename keeps it */
|
|
1074
1189
|
slug: string;
|
|
1075
1190
|
}[];
|
|
1191
|
+
/**
|
|
1192
|
+
* Format: uri
|
|
1193
|
+
* @description The business's TikTok page, an https URL
|
|
1194
|
+
*/
|
|
1195
|
+
tiktokUrl: string | null;
|
|
1076
1196
|
timezone: string;
|
|
1197
|
+
/**
|
|
1198
|
+
* Format: uri
|
|
1199
|
+
* @description The business's own website, an http or https URL
|
|
1200
|
+
*/
|
|
1201
|
+
websiteUrl: string | null;
|
|
1077
1202
|
}[];
|
|
1078
1203
|
nextCursor: string | null;
|
|
1079
1204
|
};
|
|
@@ -1121,8 +1246,34 @@ export interface operations {
|
|
|
1121
1246
|
displayName: string;
|
|
1122
1247
|
/** Format: email */
|
|
1123
1248
|
email: string | null;
|
|
1249
|
+
/**
|
|
1250
|
+
* Format: uri
|
|
1251
|
+
* @description The business's Facebook page, an https URL
|
|
1252
|
+
*/
|
|
1253
|
+
facebookUrl: string | null;
|
|
1254
|
+
gallery: {
|
|
1255
|
+
/** Format: uuid */
|
|
1256
|
+
id: string;
|
|
1257
|
+
image: {
|
|
1258
|
+
height: number;
|
|
1259
|
+
small: {
|
|
1260
|
+
height: number;
|
|
1261
|
+
/** Format: uri */
|
|
1262
|
+
url: string;
|
|
1263
|
+
width: number;
|
|
1264
|
+
};
|
|
1265
|
+
/** Format: uri */
|
|
1266
|
+
url: string;
|
|
1267
|
+
width: number;
|
|
1268
|
+
};
|
|
1269
|
+
}[];
|
|
1124
1270
|
/** Format: uuid */
|
|
1125
1271
|
id: string;
|
|
1272
|
+
/**
|
|
1273
|
+
* Format: uri
|
|
1274
|
+
* @description The business's Instagram page, an https URL
|
|
1275
|
+
*/
|
|
1276
|
+
instagramUrl: string | null;
|
|
1126
1277
|
/** @enum {string} */
|
|
1127
1278
|
kind: "organization" | "contractor";
|
|
1128
1279
|
latitude: number | null;
|
|
@@ -1139,6 +1290,16 @@ export interface operations {
|
|
|
1139
1290
|
width: number;
|
|
1140
1291
|
} | null;
|
|
1141
1292
|
longitude: number | null;
|
|
1293
|
+
/** @description The open weekdays (1 Monday to 7 Sunday) with their periods, business-local; unlisted days are closed. Null when the business has not set opening hours */
|
|
1294
|
+
openingHours: {
|
|
1295
|
+
periods: {
|
|
1296
|
+
/** @description HH:MM, business-local; 24:00 is midnight */
|
|
1297
|
+
endsAt: string;
|
|
1298
|
+
/** @description HH:MM, business-local */
|
|
1299
|
+
startsAt: string;
|
|
1300
|
+
}[];
|
|
1301
|
+
weekday: number;
|
|
1302
|
+
}[] | null;
|
|
1142
1303
|
person: {
|
|
1143
1304
|
displayName: string;
|
|
1144
1305
|
image: {
|
|
@@ -1178,7 +1339,17 @@ export interface operations {
|
|
|
1178
1339
|
/** @description The business's URL slug: lower-case letters and digits in words joined by single hyphens, unique within the partner. Set from the name when the business is created; a rename keeps it */
|
|
1179
1340
|
slug: string;
|
|
1180
1341
|
}[];
|
|
1342
|
+
/**
|
|
1343
|
+
* Format: uri
|
|
1344
|
+
* @description The business's TikTok page, an https URL
|
|
1345
|
+
*/
|
|
1346
|
+
tiktokUrl: string | null;
|
|
1181
1347
|
timezone: string;
|
|
1348
|
+
/**
|
|
1349
|
+
* Format: uri
|
|
1350
|
+
* @description The business's own website, an http or https URL
|
|
1351
|
+
*/
|
|
1352
|
+
websiteUrl: string | null;
|
|
1182
1353
|
};
|
|
1183
1354
|
};
|
|
1184
1355
|
};
|
|
@@ -1226,6 +1397,12 @@ export interface operations {
|
|
|
1226
1397
|
full: boolean;
|
|
1227
1398
|
/** @enum {string} */
|
|
1228
1399
|
kind: "event" | "slot";
|
|
1400
|
+
location: {
|
|
1401
|
+
address: string;
|
|
1402
|
+
latitude: number | null;
|
|
1403
|
+
longitude: number | null;
|
|
1404
|
+
name: string | null;
|
|
1405
|
+
} | null;
|
|
1229
1406
|
resource: {
|
|
1230
1407
|
displayName: string;
|
|
1231
1408
|
/** Format: uuid */
|
|
@@ -1309,6 +1486,24 @@ export interface operations {
|
|
|
1309
1486
|
/** Format: uuid */
|
|
1310
1487
|
eventTypeId: string | null;
|
|
1311
1488
|
eventTypeName: string | null;
|
|
1489
|
+
/** @description Where the event is, resolved as /web availability's `location` is and read live: its first place resource's location, else the address of the business that owns that resource, else its own business's address; null without any */
|
|
1490
|
+
location: {
|
|
1491
|
+
address: string;
|
|
1492
|
+
latitude: number | null;
|
|
1493
|
+
longitude: number | null;
|
|
1494
|
+
name: string | null;
|
|
1495
|
+
} | null;
|
|
1496
|
+
/** @description The event's resources in its order, as /web availability gives them, read live; a cancelled event still has them */
|
|
1497
|
+
resources: {
|
|
1498
|
+
displayName: string;
|
|
1499
|
+
/** Format: uuid */
|
|
1500
|
+
id: string;
|
|
1501
|
+
person: boolean;
|
|
1502
|
+
presentedAs: {
|
|
1503
|
+
label: string | null;
|
|
1504
|
+
name: string;
|
|
1505
|
+
};
|
|
1506
|
+
}[];
|
|
1312
1507
|
/** Format: date-time */
|
|
1313
1508
|
startsAt: string;
|
|
1314
1509
|
};
|
|
@@ -1384,6 +1579,7 @@ export interface operations {
|
|
|
1384
1579
|
401: components["responses"]["CustomerSessionRequired-NotAuthenticated-SessionExpired"];
|
|
1385
1580
|
403: components["responses"]["NotAuthorized-OutsideClientScope"];
|
|
1386
1581
|
404: components["responses"]["BookingNotFound-BusinessNotFound"];
|
|
1582
|
+
409: components["responses"]["BusinessDisabled"];
|
|
1387
1583
|
413: components["responses"]["BodyTooLarge"];
|
|
1388
1584
|
415: components["responses"]["UnsupportedMediaType"];
|
|
1389
1585
|
422: components["responses"]["EventStarted"];
|
|
@@ -1537,6 +1733,59 @@ export interface operations {
|
|
|
1537
1733
|
500: components["responses"]["InternalError"];
|
|
1538
1734
|
};
|
|
1539
1735
|
};
|
|
1736
|
+
listPublicPeople: {
|
|
1737
|
+
parameters: {
|
|
1738
|
+
query?: never;
|
|
1739
|
+
header?: never;
|
|
1740
|
+
path: {
|
|
1741
|
+
businessId: string;
|
|
1742
|
+
};
|
|
1743
|
+
cookie?: never;
|
|
1744
|
+
};
|
|
1745
|
+
requestBody?: never;
|
|
1746
|
+
responses: {
|
|
1747
|
+
/** @description OK */
|
|
1748
|
+
200: {
|
|
1749
|
+
headers: {
|
|
1750
|
+
[name: string]: unknown;
|
|
1751
|
+
};
|
|
1752
|
+
content: {
|
|
1753
|
+
"application/json": {
|
|
1754
|
+
items: {
|
|
1755
|
+
/** @description The person's bio (#686), null without one */
|
|
1756
|
+
bio: string | null;
|
|
1757
|
+
displayName: string;
|
|
1758
|
+
/** @description The business's event types the person is on, by name; as listed by listPublicEventTypes */
|
|
1759
|
+
eventTypeIds: string[];
|
|
1760
|
+
/** Format: uuid */
|
|
1761
|
+
id: string;
|
|
1762
|
+
/** @description The resource's photo (MVP-226), null without one */
|
|
1763
|
+
image: {
|
|
1764
|
+
height: number;
|
|
1765
|
+
small: {
|
|
1766
|
+
height: number;
|
|
1767
|
+
/** Format: uri */
|
|
1768
|
+
url: string;
|
|
1769
|
+
width: number;
|
|
1770
|
+
};
|
|
1771
|
+
/** Format: uri */
|
|
1772
|
+
url: string;
|
|
1773
|
+
width: number;
|
|
1774
|
+
} | null;
|
|
1775
|
+
/** @description The person's role, such as Barber (#686), null without one */
|
|
1776
|
+
role: string | null;
|
|
1777
|
+
}[];
|
|
1778
|
+
};
|
|
1779
|
+
};
|
|
1780
|
+
};
|
|
1781
|
+
400: components["responses"]["ValidationFailed"];
|
|
1782
|
+
401: components["responses"]["NotAuthenticated-SessionExpired"];
|
|
1783
|
+
403: components["responses"]["OutsideClientScope"];
|
|
1784
|
+
404: components["responses"]["BusinessNotFound"];
|
|
1785
|
+
429: components["responses"]["RateLimited"];
|
|
1786
|
+
500: components["responses"]["InternalError"];
|
|
1787
|
+
};
|
|
1788
|
+
};
|
|
1540
1789
|
listPublicProducts: {
|
|
1541
1790
|
parameters: {
|
|
1542
1791
|
query?: never;
|
|
@@ -1725,7 +1974,7 @@ export interface operations {
|
|
|
1725
1974
|
401: components["responses"]["CustomerSessionRequired-NotAuthenticated-SessionExpired"];
|
|
1726
1975
|
403: components["responses"]["NotAuthorized-OutsideClientScope"];
|
|
1727
1976
|
404: components["responses"]["BusinessNotFound-ProductNotFound"];
|
|
1728
|
-
409: components["responses"]["DeliveryLimitReached-PaymentAlreadySucceeded-PaymentInProgress"];
|
|
1977
|
+
409: components["responses"]["BusinessDisabled-DeliveryLimitReached-PaymentAlreadySucceeded-PaymentInProgress"];
|
|
1729
1978
|
413: components["responses"]["BodyTooLarge"];
|
|
1730
1979
|
415: components["responses"]["UnsupportedMediaType"];
|
|
1731
1980
|
422: components["responses"]["CustomerOutsideBusiness-PaymentProviderNotConnected-PaymentProviderNotOffered-PaymentProviderRejected-ProductInactive"];
|
|
@@ -1776,6 +2025,16 @@ export interface operations {
|
|
|
1776
2025
|
expiresAt: string;
|
|
1777
2026
|
/** Format: uuid */
|
|
1778
2027
|
id: string;
|
|
2028
|
+
price: {
|
|
2029
|
+
/** @description In the currency's ISO 4217 minor unit; ISK has none, so 12.400 kr. is 12400 */
|
|
2030
|
+
advanceAmount: number;
|
|
2031
|
+
/** @description In the currency's ISO 4217 minor unit; ISK has none, so 12.400 kr. is 12400 */
|
|
2032
|
+
amount: number;
|
|
2033
|
+
/** @description The ISO 4217 currency code, such as ISK */
|
|
2034
|
+
currency: string;
|
|
2035
|
+
/** @description The VAT rate in basis points: 24 % is 2400 */
|
|
2036
|
+
vatRateBp: number;
|
|
2037
|
+
} | null;
|
|
1779
2038
|
/** @enum {string} */
|
|
1780
2039
|
status: "active" | "confirmed" | "expired";
|
|
1781
2040
|
};
|
|
@@ -1785,7 +2044,7 @@ export interface operations {
|
|
|
1785
2044
|
401: components["responses"]["CustomerSessionRequired-NotAuthenticated-SessionExpired"];
|
|
1786
2045
|
403: components["responses"]["BookingBanned-NotAuthorized-OutsideClientScope"];
|
|
1787
2046
|
404: components["responses"]["BusinessNotFound-EventNotFound-EventTypeNotFound"];
|
|
1788
|
-
409: components["responses"]["EventFull-ReservationLimitReached-SlotTaken"];
|
|
2047
|
+
409: components["responses"]["BusinessDisabled-EventFull-ReservationLimitReached-SlotTaken"];
|
|
1789
2048
|
413: components["responses"]["BodyTooLarge"];
|
|
1790
2049
|
415: components["responses"]["UnsupportedMediaType"];
|
|
1791
2050
|
422: components["responses"]["EventNotBookable-EventStarted-NotATimeSlot"];
|
|
@@ -1793,6 +2052,38 @@ export interface operations {
|
|
|
1793
2052
|
500: components["responses"]["InternalError"];
|
|
1794
2053
|
};
|
|
1795
2054
|
};
|
|
2055
|
+
releaseReservation: {
|
|
2056
|
+
parameters: {
|
|
2057
|
+
query?: never;
|
|
2058
|
+
header?: never;
|
|
2059
|
+
path: {
|
|
2060
|
+
businessId: string;
|
|
2061
|
+
reservationId: string;
|
|
2062
|
+
};
|
|
2063
|
+
cookie?: never;
|
|
2064
|
+
};
|
|
2065
|
+
requestBody?: never;
|
|
2066
|
+
responses: {
|
|
2067
|
+
/** @description No Content */
|
|
2068
|
+
204: {
|
|
2069
|
+
headers: {
|
|
2070
|
+
[name: string]: unknown;
|
|
2071
|
+
};
|
|
2072
|
+
content: {
|
|
2073
|
+
"application/json": null;
|
|
2074
|
+
};
|
|
2075
|
+
};
|
|
2076
|
+
400: components["responses"]["MalformedBody-ValidationFailed"];
|
|
2077
|
+
401: components["responses"]["CustomerSessionRequired-NotAuthenticated-SessionExpired"];
|
|
2078
|
+
403: components["responses"]["NotAuthorized-OutsideClientScope"];
|
|
2079
|
+
404: components["responses"]["ReservationNotFound"];
|
|
2080
|
+
409: components["responses"]["BusinessDisabled-ReservationPaymentOpen"];
|
|
2081
|
+
413: components["responses"]["BodyTooLarge"];
|
|
2082
|
+
415: components["responses"]["UnsupportedMediaType"];
|
|
2083
|
+
429: components["responses"]["RateLimited"];
|
|
2084
|
+
500: components["responses"]["InternalError"];
|
|
2085
|
+
};
|
|
2086
|
+
};
|
|
1796
2087
|
getCheckout: {
|
|
1797
2088
|
parameters: {
|
|
1798
2089
|
query?: never;
|
|
@@ -1945,7 +2236,7 @@ export interface operations {
|
|
|
1945
2236
|
401: components["responses"]["CustomerSessionRequired-NotAuthenticated-SessionExpired"];
|
|
1946
2237
|
403: components["responses"]["BookingBanned-NotAuthorized-OutsideClientScope"];
|
|
1947
2238
|
404: components["responses"]["BusinessNotFound-ReservationNotFound"];
|
|
1948
|
-
409: components["responses"]["PaymentAlreadySucceeded-PaymentInProgress-ReservationExpired"];
|
|
2239
|
+
409: components["responses"]["BusinessDisabled-PaymentAlreadySucceeded-PaymentInProgress-ReservationExpired"];
|
|
1949
2240
|
413: components["responses"]["BodyTooLarge"];
|
|
1950
2241
|
415: components["responses"]["UnsupportedMediaType"];
|
|
1951
2242
|
422: components["responses"]["CheckoutNotRequired-CustomerOutsideBusiness-EventNotBookable-EventStarted-PaymentProviderNotConnected-PaymentProviderNotOffered-PaymentProviderRejected"];
|
|
@@ -2004,7 +2295,7 @@ export interface operations {
|
|
|
2004
2295
|
401: components["responses"]["CustomerSessionRequired-NotAuthenticated-SessionExpired"];
|
|
2005
2296
|
403: components["responses"]["BookingBanned-NotAuthorized-OutsideClientScope"];
|
|
2006
2297
|
404: components["responses"]["BusinessNotFound-ReservationNotFound"];
|
|
2007
|
-
409: components["responses"]["ReservationExpired"];
|
|
2298
|
+
409: components["responses"]["BusinessDisabled-ReservationExpired"];
|
|
2008
2299
|
413: components["responses"]["BodyTooLarge"];
|
|
2009
2300
|
415: components["responses"]["UnsupportedMediaType"];
|
|
2010
2301
|
422: components["responses"]["CheckoutRequired-CustomerOutsideBusiness-EventNotBookable-EventStarted"];
|
|
@@ -2049,8 +2340,34 @@ export interface operations {
|
|
|
2049
2340
|
displayName: string;
|
|
2050
2341
|
/** Format: email */
|
|
2051
2342
|
email: string | null;
|
|
2343
|
+
/**
|
|
2344
|
+
* Format: uri
|
|
2345
|
+
* @description The business's Facebook page, an https URL
|
|
2346
|
+
*/
|
|
2347
|
+
facebookUrl: string | null;
|
|
2348
|
+
gallery: {
|
|
2349
|
+
/** Format: uuid */
|
|
2350
|
+
id: string;
|
|
2351
|
+
image: {
|
|
2352
|
+
height: number;
|
|
2353
|
+
small: {
|
|
2354
|
+
height: number;
|
|
2355
|
+
/** Format: uri */
|
|
2356
|
+
url: string;
|
|
2357
|
+
width: number;
|
|
2358
|
+
};
|
|
2359
|
+
/** Format: uri */
|
|
2360
|
+
url: string;
|
|
2361
|
+
width: number;
|
|
2362
|
+
};
|
|
2363
|
+
}[];
|
|
2052
2364
|
/** Format: uuid */
|
|
2053
2365
|
id: string;
|
|
2366
|
+
/**
|
|
2367
|
+
* Format: uri
|
|
2368
|
+
* @description The business's Instagram page, an https URL
|
|
2369
|
+
*/
|
|
2370
|
+
instagramUrl: string | null;
|
|
2054
2371
|
/** @enum {string} */
|
|
2055
2372
|
kind: "organization" | "contractor";
|
|
2056
2373
|
latitude: number | null;
|
|
@@ -2067,6 +2384,16 @@ export interface operations {
|
|
|
2067
2384
|
width: number;
|
|
2068
2385
|
} | null;
|
|
2069
2386
|
longitude: number | null;
|
|
2387
|
+
/** @description The open weekdays (1 Monday to 7 Sunday) with their periods, business-local; unlisted days are closed. Null when the business has not set opening hours */
|
|
2388
|
+
openingHours: {
|
|
2389
|
+
periods: {
|
|
2390
|
+
/** @description HH:MM, business-local; 24:00 is midnight */
|
|
2391
|
+
endsAt: string;
|
|
2392
|
+
/** @description HH:MM, business-local */
|
|
2393
|
+
startsAt: string;
|
|
2394
|
+
}[];
|
|
2395
|
+
weekday: number;
|
|
2396
|
+
}[] | null;
|
|
2070
2397
|
person: {
|
|
2071
2398
|
displayName: string;
|
|
2072
2399
|
image: {
|
|
@@ -2106,7 +2433,17 @@ export interface operations {
|
|
|
2106
2433
|
/** @description The business's URL slug: lower-case letters and digits in words joined by single hyphens, unique within the partner. Set from the name when the business is created; a rename keeps it */
|
|
2107
2434
|
slug: string;
|
|
2108
2435
|
}[];
|
|
2436
|
+
/**
|
|
2437
|
+
* Format: uri
|
|
2438
|
+
* @description The business's TikTok page, an https URL
|
|
2439
|
+
*/
|
|
2440
|
+
tiktokUrl: string | null;
|
|
2109
2441
|
timezone: string;
|
|
2442
|
+
/**
|
|
2443
|
+
* Format: uri
|
|
2444
|
+
* @description The business's own website, an http or https URL
|
|
2445
|
+
*/
|
|
2446
|
+
websiteUrl: string | null;
|
|
2110
2447
|
};
|
|
2111
2448
|
};
|
|
2112
2449
|
};
|
|
@@ -2437,6 +2774,24 @@ export interface operations {
|
|
|
2437
2774
|
/** Format: uuid */
|
|
2438
2775
|
eventTypeId: string | null;
|
|
2439
2776
|
eventTypeName: string | null;
|
|
2777
|
+
/** @description Where the event is, resolved as /web availability's `location` is and read live: its first place resource's location, else the address of the business that owns that resource, else its own business's address; null without any */
|
|
2778
|
+
location: {
|
|
2779
|
+
address: string;
|
|
2780
|
+
latitude: number | null;
|
|
2781
|
+
longitude: number | null;
|
|
2782
|
+
name: string | null;
|
|
2783
|
+
} | null;
|
|
2784
|
+
/** @description The event's resources in its order, as /web availability gives them, read live; a cancelled event still has them */
|
|
2785
|
+
resources: {
|
|
2786
|
+
displayName: string;
|
|
2787
|
+
/** Format: uuid */
|
|
2788
|
+
id: string;
|
|
2789
|
+
person: boolean;
|
|
2790
|
+
presentedAs: {
|
|
2791
|
+
label: string | null;
|
|
2792
|
+
name: string;
|
|
2793
|
+
};
|
|
2794
|
+
}[];
|
|
2440
2795
|
/** Format: date-time */
|
|
2441
2796
|
startsAt: string;
|
|
2442
2797
|
};
|