@izak0s/spacebring-api 9.5.0 → 9.7.0
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/README.md +1 -1
- package/dist/index.cjs +12 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +221 -15
- package/dist/index.d.ts +221 -15
- package/dist/index.js +12 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -2048,6 +2048,26 @@ interface paths {
|
|
|
2048
2048
|
patch: operations["patchResource"];
|
|
2049
2049
|
trace?: never;
|
|
2050
2050
|
};
|
|
2051
|
+
"/resources/v1/{resourceId}/availability": {
|
|
2052
|
+
parameters: {
|
|
2053
|
+
query?: never;
|
|
2054
|
+
header?: never;
|
|
2055
|
+
path?: never;
|
|
2056
|
+
cookie?: never;
|
|
2057
|
+
};
|
|
2058
|
+
get?: never;
|
|
2059
|
+
put?: never;
|
|
2060
|
+
/**
|
|
2061
|
+
* Check resource availability
|
|
2062
|
+
* @description Check whether a resource can be booked for a slot before creating the booking. The same rules as booking creation apply: capacity, the location and resource schedule, duration limits and the booking window. When the slot is unavailable, the response carries the code the booking would fail with. <h3>OAuth</h3>Required scopes: <code>resources.readonly</code> or <code>resources</code>
|
|
2063
|
+
*/
|
|
2064
|
+
post: operations["getResourceAvailability"];
|
|
2065
|
+
delete?: never;
|
|
2066
|
+
options?: never;
|
|
2067
|
+
head?: never;
|
|
2068
|
+
patch?: never;
|
|
2069
|
+
trace?: never;
|
|
2070
|
+
};
|
|
2051
2071
|
"/resources/bookings/v1": {
|
|
2052
2072
|
parameters: {
|
|
2053
2073
|
query?: never;
|
|
@@ -3792,7 +3812,7 @@ interface components {
|
|
|
3792
3812
|
payments: {
|
|
3793
3813
|
/**
|
|
3794
3814
|
* Format: date-time
|
|
3795
|
-
* @description ISO timestamp of the payment.
|
|
3815
|
+
* @description ISO timestamp of when the payment was recorded.
|
|
3796
3816
|
*/
|
|
3797
3817
|
createDate: string;
|
|
3798
3818
|
/** @description Payment dispute details. */
|
|
@@ -3824,6 +3844,11 @@ interface components {
|
|
|
3824
3844
|
*/
|
|
3825
3845
|
type: "external" | "paymentGateway";
|
|
3826
3846
|
};
|
|
3847
|
+
/**
|
|
3848
|
+
* Format: date-time
|
|
3849
|
+
* @description ISO timestamp of when the money was received. Absent until the payment succeeds. A payment gateway sets it when it approves the payment; an external payment takes the date the administrator recorded, defaulting to when they recorded it.
|
|
3850
|
+
*/
|
|
3851
|
+
paymentDate?: string;
|
|
3827
3852
|
/** @description Payment price details. */
|
|
3828
3853
|
price: {
|
|
3829
3854
|
money: {
|
|
@@ -4189,7 +4214,7 @@ interface components {
|
|
|
4189
4214
|
payments: {
|
|
4190
4215
|
/**
|
|
4191
4216
|
* Format: date-time
|
|
4192
|
-
* @description ISO timestamp of the payment.
|
|
4217
|
+
* @description ISO timestamp of when the payment was recorded.
|
|
4193
4218
|
*/
|
|
4194
4219
|
createDate: string;
|
|
4195
4220
|
/** @description Payment dispute details. */
|
|
@@ -4221,6 +4246,11 @@ interface components {
|
|
|
4221
4246
|
*/
|
|
4222
4247
|
type: "external" | "paymentGateway";
|
|
4223
4248
|
};
|
|
4249
|
+
/**
|
|
4250
|
+
* Format: date-time
|
|
4251
|
+
* @description ISO timestamp of when the money was received. Absent until the payment succeeds. A payment gateway sets it when it approves the payment; an external payment takes the date the administrator recorded, defaulting to when they recorded it.
|
|
4252
|
+
*/
|
|
4253
|
+
paymentDate?: string;
|
|
4224
4254
|
/** @description Payment price details. */
|
|
4225
4255
|
price: {
|
|
4226
4256
|
money: {
|
|
@@ -4583,7 +4613,7 @@ interface components {
|
|
|
4583
4613
|
payments: {
|
|
4584
4614
|
/**
|
|
4585
4615
|
* Format: date-time
|
|
4586
|
-
* @description ISO timestamp of the payment.
|
|
4616
|
+
* @description ISO timestamp of when the payment was recorded.
|
|
4587
4617
|
*/
|
|
4588
4618
|
createDate: string;
|
|
4589
4619
|
/** @description Payment dispute details. */
|
|
@@ -4615,6 +4645,11 @@ interface components {
|
|
|
4615
4645
|
*/
|
|
4616
4646
|
type: "external" | "paymentGateway";
|
|
4617
4647
|
};
|
|
4648
|
+
/**
|
|
4649
|
+
* Format: date-time
|
|
4650
|
+
* @description ISO timestamp of when the money was received. Absent until the payment succeeds. A payment gateway sets it when it approves the payment; an external payment takes the date the administrator recorded, defaulting to when they recorded it.
|
|
4651
|
+
*/
|
|
4652
|
+
paymentDate?: string;
|
|
4618
4653
|
/** @description Payment price details. */
|
|
4619
4654
|
price: {
|
|
4620
4655
|
money: {
|
|
@@ -5034,7 +5069,7 @@ interface components {
|
|
|
5034
5069
|
invoicePayment: {
|
|
5035
5070
|
/**
|
|
5036
5071
|
* Format: date-time
|
|
5037
|
-
* @description ISO timestamp of the payment.
|
|
5072
|
+
* @description ISO timestamp of when the payment was recorded.
|
|
5038
5073
|
*/
|
|
5039
5074
|
createDate: string;
|
|
5040
5075
|
/** @description Payment dispute details. */
|
|
@@ -5066,6 +5101,11 @@ interface components {
|
|
|
5066
5101
|
*/
|
|
5067
5102
|
type: "external" | "paymentGateway";
|
|
5068
5103
|
};
|
|
5104
|
+
/**
|
|
5105
|
+
* Format: date-time
|
|
5106
|
+
* @description ISO timestamp of when the money was received. Absent until the payment succeeds. A payment gateway sets it when it approves the payment; an external payment takes the date the administrator recorded, defaulting to when they recorded it.
|
|
5107
|
+
*/
|
|
5108
|
+
paymentDate?: string;
|
|
5069
5109
|
/** @description Payment price details. */
|
|
5070
5110
|
price: {
|
|
5071
5111
|
money: {
|
|
@@ -7099,6 +7139,8 @@ interface components {
|
|
|
7099
7139
|
checkInRef?: string;
|
|
7100
7140
|
/** @description Six-digit code the attendee enters on the Reception app to check in. Visible to the ticket owner and admins when check-in is enabled for the event. */
|
|
7101
7141
|
code?: string;
|
|
7142
|
+
/** @description Note the attendee left when purchasing the ticket. Visible to the ticket owner and location admins only. */
|
|
7143
|
+
comment?: string;
|
|
7102
7144
|
/**
|
|
7103
7145
|
* Format: date-time
|
|
7104
7146
|
* @description ISO timestamp of when the ticket was created.
|
|
@@ -9053,7 +9095,7 @@ interface components {
|
|
|
9053
9095
|
unitAmount: number;
|
|
9054
9096
|
}[];
|
|
9055
9097
|
};
|
|
9056
|
-
/** @description Whether day passes
|
|
9098
|
+
/** @description Whether members can book this resource with day passes. Only hotDesk resources support day passes. */
|
|
9057
9099
|
dayPassesEnabled?: boolean;
|
|
9058
9100
|
/** @description Description of the resource. */
|
|
9059
9101
|
description: string;
|
|
@@ -9677,7 +9719,7 @@ interface components {
|
|
|
9677
9719
|
unitAmount: number;
|
|
9678
9720
|
}[];
|
|
9679
9721
|
};
|
|
9680
|
-
/** @description Whether day passes
|
|
9722
|
+
/** @description Whether members can book this resource with day passes. Only hotDesk resources support day passes. */
|
|
9681
9723
|
dayPassesEnabled?: boolean;
|
|
9682
9724
|
/** @description Description of the resource. */
|
|
9683
9725
|
description: string;
|
|
@@ -10338,6 +10380,17 @@ interface components {
|
|
|
10338
10380
|
};
|
|
10339
10381
|
};
|
|
10340
10382
|
};
|
|
10383
|
+
getResourceAvailability: {
|
|
10384
|
+
/** @description Whether the resource can be booked for the requested slot. */
|
|
10385
|
+
available: boolean;
|
|
10386
|
+
/** @description The first rule the slot breaks. Present only when available is false. */
|
|
10387
|
+
reason?: {
|
|
10388
|
+
/** @description The error code the booking would fail with, e.g. `bookingConflict` or `bookingScheduleConflict`. */
|
|
10389
|
+
code: string;
|
|
10390
|
+
/** @description The human-readable explanation of why the slot is unavailable. */
|
|
10391
|
+
message: string;
|
|
10392
|
+
};
|
|
10393
|
+
};
|
|
10341
10394
|
getBookings: {
|
|
10342
10395
|
/** @description List of bookings. */
|
|
10343
10396
|
bookings: {
|
|
@@ -11314,6 +11367,37 @@ interface components {
|
|
|
11314
11367
|
resourceRef: string;
|
|
11315
11368
|
/** @description Number of seats reserved. */
|
|
11316
11369
|
seats?: number;
|
|
11370
|
+
/** @description Where the booking was created. Visible to admins only. Absent on bookings made before it was recorded. */
|
|
11371
|
+
source?: {
|
|
11372
|
+
/** @description Set when `type` is `api`. */
|
|
11373
|
+
api?: {
|
|
11374
|
+
/** @description ID of the OAuth client the integration authenticated with. */
|
|
11375
|
+
clientId: string;
|
|
11376
|
+
};
|
|
11377
|
+
/** @description Set when `type` is `app`. */
|
|
11378
|
+
app?: Record<string, never>;
|
|
11379
|
+
/** @description Set when `type` is `googleCalendar`. */
|
|
11380
|
+
googleCalendar?: {
|
|
11381
|
+
/** @description ID of the Google Calendar the event was imported from. */
|
|
11382
|
+
calendarId?: string;
|
|
11383
|
+
/** @description ID of the Google Calendar event the booking mirrors. */
|
|
11384
|
+
eventId?: string;
|
|
11385
|
+
/** @description Link to the Google Calendar event. */
|
|
11386
|
+
eventLink?: string;
|
|
11387
|
+
};
|
|
11388
|
+
/** @description Set when `type` is `mcp`. */
|
|
11389
|
+
mcp?: {
|
|
11390
|
+
/** @description ID of the OAuth client the MCP client authenticated with. */
|
|
11391
|
+
clientId: string;
|
|
11392
|
+
};
|
|
11393
|
+
/** @description Set when `type` is `member`. */
|
|
11394
|
+
member?: Record<string, never>;
|
|
11395
|
+
/**
|
|
11396
|
+
* @description Where the booking was created: the admin app, the member app, an MCP client, a Google Calendar import, or a direct API integration. The matching property below carries the details.
|
|
11397
|
+
* @enum {string}
|
|
11398
|
+
*/
|
|
11399
|
+
type: "api" | "app" | "googleCalendar" | "mcp" | "member";
|
|
11400
|
+
};
|
|
11317
11401
|
/**
|
|
11318
11402
|
* Format: date-time
|
|
11319
11403
|
* @description ISO timestamp when the booking starts.
|
|
@@ -12336,6 +12420,37 @@ interface components {
|
|
|
12336
12420
|
resourceRef: string;
|
|
12337
12421
|
/** @description Number of seats reserved. */
|
|
12338
12422
|
seats?: number;
|
|
12423
|
+
/** @description Where the booking was created. Visible to admins only. Absent on bookings made before it was recorded. */
|
|
12424
|
+
source?: {
|
|
12425
|
+
/** @description Set when `type` is `api`. */
|
|
12426
|
+
api?: {
|
|
12427
|
+
/** @description ID of the OAuth client the integration authenticated with. */
|
|
12428
|
+
clientId: string;
|
|
12429
|
+
};
|
|
12430
|
+
/** @description Set when `type` is `app`. */
|
|
12431
|
+
app?: Record<string, never>;
|
|
12432
|
+
/** @description Set when `type` is `googleCalendar`. */
|
|
12433
|
+
googleCalendar?: {
|
|
12434
|
+
/** @description ID of the Google Calendar the event was imported from. */
|
|
12435
|
+
calendarId?: string;
|
|
12436
|
+
/** @description ID of the Google Calendar event the booking mirrors. */
|
|
12437
|
+
eventId?: string;
|
|
12438
|
+
/** @description Link to the Google Calendar event. */
|
|
12439
|
+
eventLink?: string;
|
|
12440
|
+
};
|
|
12441
|
+
/** @description Set when `type` is `mcp`. */
|
|
12442
|
+
mcp?: {
|
|
12443
|
+
/** @description ID of the OAuth client the MCP client authenticated with. */
|
|
12444
|
+
clientId: string;
|
|
12445
|
+
};
|
|
12446
|
+
/** @description Set when `type` is `member`. */
|
|
12447
|
+
member?: Record<string, never>;
|
|
12448
|
+
/**
|
|
12449
|
+
* @description Where the booking was created: the admin app, the member app, an MCP client, a Google Calendar import, or a direct API integration. The matching property below carries the details.
|
|
12450
|
+
* @enum {string}
|
|
12451
|
+
*/
|
|
12452
|
+
type: "api" | "app" | "googleCalendar" | "mcp" | "member";
|
|
12453
|
+
};
|
|
12339
12454
|
/**
|
|
12340
12455
|
* Format: date-time
|
|
12341
12456
|
* @description ISO timestamp when the booking starts.
|
|
@@ -15670,6 +15785,8 @@ interface components {
|
|
|
15670
15785
|
* @description ID of the assignee user.
|
|
15671
15786
|
*/
|
|
15672
15787
|
userRefAssignee?: string;
|
|
15788
|
+
/** @description IDs of the users Lem AI suggests as assignees, best match first. Only returned to admins with support permission. */
|
|
15789
|
+
userRefsAssigneeSuggested?: string[];
|
|
15673
15790
|
/** @description Requester user details. */
|
|
15674
15791
|
userRequester?: {
|
|
15675
15792
|
/** @description Whether the user is blocked. */
|
|
@@ -18929,6 +19046,11 @@ interface components {
|
|
|
18929
19046
|
/** @description Payment gateway identifier, or external. */
|
|
18930
19047
|
type: string;
|
|
18931
19048
|
};
|
|
19049
|
+
/**
|
|
19050
|
+
* Format: date-time
|
|
19051
|
+
* @description ISO timestamp of when the money was received. Absent until the transaction succeeds. A payment gateway sets it when it approves the payment; an external payment takes the date the administrator recorded, defaulting to when they recorded it. Ordering and the createDate filters always follow createDate, not this field.
|
|
19052
|
+
*/
|
|
19053
|
+
paymentDate?: string;
|
|
18932
19054
|
/**
|
|
18933
19055
|
* @deprecated
|
|
18934
19056
|
* @description Deprecated. Use product instead.
|
|
@@ -19636,6 +19758,11 @@ interface components {
|
|
|
19636
19758
|
/** @description Payment gateway identifier, or external. */
|
|
19637
19759
|
type: string;
|
|
19638
19760
|
};
|
|
19761
|
+
/**
|
|
19762
|
+
* Format: date-time
|
|
19763
|
+
* @description ISO timestamp of when the money was received. Absent until the transaction succeeds. A payment gateway sets it when it approves the payment; an external payment takes the date the administrator recorded, defaulting to when they recorded it. Ordering and the createDate filters always follow createDate, not this field.
|
|
19764
|
+
*/
|
|
19765
|
+
paymentDate?: string;
|
|
19639
19766
|
/**
|
|
19640
19767
|
* @deprecated
|
|
19641
19768
|
* @description Deprecated. Use product instead.
|
|
@@ -20343,6 +20470,11 @@ interface components {
|
|
|
20343
20470
|
/** @description Payment gateway identifier, or external. */
|
|
20344
20471
|
type: string;
|
|
20345
20472
|
};
|
|
20473
|
+
/**
|
|
20474
|
+
* Format: date-time
|
|
20475
|
+
* @description ISO timestamp of when the money was received. Absent until the transaction succeeds. A payment gateway sets it when it approves the payment; an external payment takes the date the administrator recorded, defaulting to when they recorded it. Ordering and the createDate filters always follow createDate, not this field.
|
|
20476
|
+
*/
|
|
20477
|
+
paymentDate?: string;
|
|
20346
20478
|
/**
|
|
20347
20479
|
* @deprecated
|
|
20348
20480
|
* @description Deprecated. Use product instead.
|
|
@@ -21254,7 +21386,13 @@ interface components {
|
|
|
21254
21386
|
/** @description Payment method details. */
|
|
21255
21387
|
method: {
|
|
21256
21388
|
/** @description External payment method, recorded outside the platform. */
|
|
21257
|
-
external?:
|
|
21389
|
+
external?: {
|
|
21390
|
+
/**
|
|
21391
|
+
* Format: date-time
|
|
21392
|
+
* @description ISO timestamp of when the money was received. Defaults to now. Must not be in the future.
|
|
21393
|
+
*/
|
|
21394
|
+
paymentDate?: string;
|
|
21395
|
+
};
|
|
21258
21396
|
/** @description Payment gateway (card) payment method. */
|
|
21259
21397
|
paymentGateway?: {
|
|
21260
21398
|
/**
|
|
@@ -22778,7 +22916,7 @@ interface components {
|
|
|
22778
22916
|
unitAmount: number;
|
|
22779
22917
|
}[];
|
|
22780
22918
|
};
|
|
22781
|
-
/** @description Whether day passes
|
|
22919
|
+
/** @description Whether members can book this resource with day passes. Only hotDesk resources support day passes; enabling it for any other type is rejected. */
|
|
22782
22920
|
dayPassesEnabled?: boolean;
|
|
22783
22921
|
/** @description Description of the resource. */
|
|
22784
22922
|
description?: string;
|
|
@@ -23192,7 +23330,7 @@ interface components {
|
|
|
23192
23330
|
unitAmount: number;
|
|
23193
23331
|
}[];
|
|
23194
23332
|
};
|
|
23195
|
-
/** @description Whether day passes
|
|
23333
|
+
/** @description Whether members can book this resource with day passes. Only hotDesk resources support day passes; enabling it for any other type is rejected. */
|
|
23196
23334
|
dayPassesEnabled?: boolean;
|
|
23197
23335
|
/** @description Description of the resource. */
|
|
23198
23336
|
description?: string;
|
|
@@ -23462,6 +23600,28 @@ interface components {
|
|
|
23462
23600
|
};
|
|
23463
23601
|
};
|
|
23464
23602
|
};
|
|
23603
|
+
getResourceAvailability: {
|
|
23604
|
+
content: {
|
|
23605
|
+
"application/json": {
|
|
23606
|
+
/**
|
|
23607
|
+
* Format: date-time
|
|
23608
|
+
* @description The end of the slot to check, in ISO 8601.
|
|
23609
|
+
*/
|
|
23610
|
+
endDate: string;
|
|
23611
|
+
/** @description Set to true to check the entire resource instead of individual seats. Supported for office resources. */
|
|
23612
|
+
entire?: boolean;
|
|
23613
|
+
/** @description The number of seats to check. Required for seat-based resources such as hot desks, unless entire is true. */
|
|
23614
|
+
quantity?: number;
|
|
23615
|
+
/** @description RRULE lines describing a repeating slot, e.g. `RRULE:FREQ=WEEKLY;COUNT=10`. The DTSTART line is derived from startDate. The slot is unavailable as soon as any occurrence is. */
|
|
23616
|
+
recurrence?: string[];
|
|
23617
|
+
/**
|
|
23618
|
+
* Format: date-time
|
|
23619
|
+
* @description The start of the slot to check, in ISO 8601.
|
|
23620
|
+
*/
|
|
23621
|
+
startDate: string;
|
|
23622
|
+
};
|
|
23623
|
+
};
|
|
23624
|
+
};
|
|
23465
23625
|
createBooking: {
|
|
23466
23626
|
content: {
|
|
23467
23627
|
"application/json": {
|
|
@@ -24656,10 +24816,10 @@ interface components {
|
|
|
24656
24816
|
/** @description Description text of the ticket. */
|
|
24657
24817
|
text: string;
|
|
24658
24818
|
/**
|
|
24659
|
-
* @description Category type of the ticket.
|
|
24819
|
+
* @description Category type of the ticket. When omitted, the type is detected from the text and administrators can change it later.
|
|
24660
24820
|
* @enum {string}
|
|
24661
24821
|
*/
|
|
24662
|
-
type
|
|
24822
|
+
type?: "access" | "accountAndBilling" | "bookings" | "cleaning" | "discriminationAndHarassment" | "internet" | "mailAndPackages" | "noiseAndAcoustics" | "offensiveOrObjectionableContent" | "other" | "printing" | "repairAndMaintenance" | "temperatureAndVentilation" | "websiteAndApp";
|
|
24663
24823
|
/**
|
|
24664
24824
|
* Format: uuid
|
|
24665
24825
|
* @description ID of the user requesting the ticket. Defaults to the authenticated user when omitted.
|
|
@@ -24881,7 +25041,13 @@ interface components {
|
|
|
24881
25041
|
/** @description Payment method details. */
|
|
24882
25042
|
method: {
|
|
24883
25043
|
/** @description External payment method, recorded outside the platform. */
|
|
24884
|
-
external?:
|
|
25044
|
+
external?: {
|
|
25045
|
+
/**
|
|
25046
|
+
* Format: date-time
|
|
25047
|
+
* @description ISO timestamp of when the money was received. Defaults to now. Must not be in the future.
|
|
25048
|
+
*/
|
|
25049
|
+
paymentDate?: string;
|
|
25050
|
+
};
|
|
24885
25051
|
/** @description Payment gateway (card) payment method. */
|
|
24886
25052
|
paymentGateway?: {
|
|
24887
25053
|
/**
|
|
@@ -30149,6 +30315,41 @@ interface operations {
|
|
|
30149
30315
|
};
|
|
30150
30316
|
};
|
|
30151
30317
|
};
|
|
30318
|
+
getResourceAvailability: {
|
|
30319
|
+
parameters: {
|
|
30320
|
+
query?: never;
|
|
30321
|
+
header?: {
|
|
30322
|
+
/** @description The id of the network. Required when using bearer token authentication */
|
|
30323
|
+
"spacebring-network-id"?: string;
|
|
30324
|
+
};
|
|
30325
|
+
path: {
|
|
30326
|
+
/** @description The id of the resource. */
|
|
30327
|
+
resourceId: string;
|
|
30328
|
+
};
|
|
30329
|
+
cookie?: never;
|
|
30330
|
+
};
|
|
30331
|
+
requestBody: components["requestBodies"]["getResourceAvailability"];
|
|
30332
|
+
responses: {
|
|
30333
|
+
/** @description OK */
|
|
30334
|
+
200: {
|
|
30335
|
+
headers: {
|
|
30336
|
+
[name: string]: unknown;
|
|
30337
|
+
};
|
|
30338
|
+
content: {
|
|
30339
|
+
"application/json": components["schemas"]["getResourceAvailability"];
|
|
30340
|
+
};
|
|
30341
|
+
};
|
|
30342
|
+
/** @description Bad Request */
|
|
30343
|
+
400: {
|
|
30344
|
+
headers: {
|
|
30345
|
+
[name: string]: unknown;
|
|
30346
|
+
};
|
|
30347
|
+
content: {
|
|
30348
|
+
"application/json": components["schemas"]["responseError"];
|
|
30349
|
+
};
|
|
30350
|
+
};
|
|
30351
|
+
};
|
|
30352
|
+
};
|
|
30152
30353
|
getBookings: {
|
|
30153
30354
|
parameters: {
|
|
30154
30355
|
query?: {
|
|
@@ -30184,7 +30385,7 @@ interface operations {
|
|
|
30184
30385
|
membershipRefOwner?: string;
|
|
30185
30386
|
/** @description Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
|
|
30186
30387
|
nextPageToken?: string;
|
|
30187
|
-
/** @description Sort order as `<field>:<direction>`, where field is startDate, endDate or createDate and direction is asc or desc. */
|
|
30388
|
+
/** @description Sort order as `<field>:<direction>`, where field is startDate, endDate or createDate and direction is asc or desc. Defaults to startDate:asc when a startDate filter is given, endDate:asc when only an endDate filter is given, and createDate:desc otherwise. */
|
|
30188
30389
|
order?: string;
|
|
30189
30390
|
/** @description UUID of the resource whose bookings to list. Required when both locationRef and userRef are omitted. */
|
|
30190
30391
|
resourceRef?: string;
|
|
@@ -32941,6 +33142,8 @@ type UpdateShopCategoryBody = NonNullable<NonNullable<operations["updateShopCate
|
|
|
32941
33142
|
type Assignment = NonNullable<operations["getAssignments"]["responses"][200]["content"]["application/json"]["assignments"]>[number];
|
|
32942
33143
|
/** A Booking entity as returned by the Spacebring API. */
|
|
32943
33144
|
type Booking = NonNullable<operations["getBooking"]["responses"][200]["content"]["application/json"]["booking"]>;
|
|
33145
|
+
/** A GetResourceAvailability entity as returned by the Spacebring API. */
|
|
33146
|
+
type GetResourceAvailability = NonNullable<components["schemas"]["getResourceAvailability"]>;
|
|
32944
33147
|
/** A Resource entity as returned by the Spacebring API. */
|
|
32945
33148
|
type Resource = NonNullable<operations["getResource"]["responses"][200]["content"]["application/json"]["resource"]>;
|
|
32946
33149
|
/** Query parameters for `sb.resources.assignments.list()`. */
|
|
@@ -32986,7 +33189,7 @@ interface GetBookingsQuery {
|
|
|
32986
33189
|
membershipRefOwner?: string;
|
|
32987
33190
|
/** Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
|
|
32988
33191
|
nextPageToken?: string;
|
|
32989
|
-
/** Sort order as `:`, where field is startDate, endDate or createDate and direction is asc or desc. */
|
|
33192
|
+
/** Sort order as `:`, where field is startDate, endDate or createDate and direction is asc or desc. Defaults to startDate:asc when a startDate filter is given, endDate:asc when only an endDate filter is given, and createDate:desc otherwise. */
|
|
32990
33193
|
order?: string;
|
|
32991
33194
|
/** UUID of the resource whose bookings to list. Required when both locationRef and userRef are omitted. */
|
|
32992
33195
|
resourceRef?: string;
|
|
@@ -33024,6 +33227,8 @@ type CreateAssignmentBody = NonNullable<NonNullable<operations["createAssignment
|
|
|
33024
33227
|
type CreateBookingBody = NonNullable<operations["createBooking"]["requestBody"]>["content"]["application/json"];
|
|
33025
33228
|
/** Request body for `sb.resources.create()`. */
|
|
33026
33229
|
type CreateResourceBody = NonNullable<NonNullable<operations["createResource"]["requestBody"]>["content"]["application/json"]["resource"]>;
|
|
33230
|
+
/** Request body for `sb.resources.getResourceAvailability()`. */
|
|
33231
|
+
type GetResourceAvailabilityBody = NonNullable<operations["getResourceAvailability"]["requestBody"]>["content"]["application/json"];
|
|
33027
33232
|
/** Request body for `sb.resources.assignments.update()`. */
|
|
33028
33233
|
type PatchAssignmentBody = NonNullable<NonNullable<operations["patchAssignment"]["requestBody"]>["content"]["application/json"]["assignment"]>;
|
|
33029
33234
|
/** Request body for `sb.resources.bookings.update()`. */
|
|
@@ -33827,6 +34032,7 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
33827
34032
|
get(resourceId: string, options?: SpacebringRequestOptions): Promise<Resource>;
|
|
33828
34033
|
create(resource: CreateResourceBody, options?: SpacebringRequestOptions): Promise<Resource>;
|
|
33829
34034
|
update(resourceId: string, resource: PatchResourceBody, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
34035
|
+
getResourceAvailability(resourceId: string, body: GetResourceAvailabilityBody, options?: SpacebringRequestOptions): Promise<GetResourceAvailability>;
|
|
33830
34036
|
assignments: {
|
|
33831
34037
|
list(query?: GetAssignmentsQuery, options?: SpacebringRequestOptions): Promise<{
|
|
33832
34038
|
assignments: Assignment[];
|
|
@@ -34079,4 +34285,4 @@ declare class SpacebringError extends Error {
|
|
|
34079
34285
|
});
|
|
34080
34286
|
}
|
|
34081
34287
|
|
|
34082
|
-
export { type Activity, type AddEventHostsBody, type AltCurrency, type Application, type ApplyBenefitBody, type Assignment, type Balance, type Benefit, type BenefitCategory, type Booking, type CheckInVisitBody, type CheckOutVisitBody, type Comment, type Company, type Contact, type Contract, type Coupon, type CreateAltCurrencyBody, type CreateAssignmentBody, type CreateBenefitBody, type CreateBenefitCategoryBody, type CreateBookingBody, type CreateCompanyBody, type CreateContactBody, type CreateContractBody, type CreateCouponBody, type CreateCreditNoteBody, type CreateCreditsTransactionBody, type CreateDayPassesTransactionBody, type CreateEventBody, type CreateEventMediaBody, type CreateFeedPostBody, type CreateFeedPostCommentBody, type CreateGuideBody, type CreateInvoiceBody, type CreateInvoiceItemBody, type CreateMembershipBody, type CreateMoneyTransactionBody, type CreatePackageBody, type CreatePlanBody, type CreateProductBody, type CreatePromocodeBody, type CreateRequestBody, type CreateResourceBody, type CreateShopCategoryBody, type CreateSubscriptionBody, type CreateSubscriptionItemBody, type CreateSupportTicketBody, type CreateSupportTicketCommentBody, type CreateTemplateBody, type CreateVisitBody, type CreditNote, type CreditScheduledTransaction, type CreditTransaction, type DayPassScheduledTransaction, type DayPassTransaction, type Event, type EventTicket, type GetAltCurrenciesQuery, type GetAssignmentsQuery, type GetBenefitApplicationsQuery, type GetBenefitCategoriesQuery, type GetBenefitsQuery, type GetBookingsQuery, type GetCompaniesQuery, type GetContactsQuery, type GetContractsQuery, type GetCouponsQuery, type GetCreditNotesQuery, type GetCreditsTransactionsQuery, type GetDayPassesTransactionsQuery, type GetDiscountRedemptionsQuery, type GetEventTicketsQuery, type GetEventsByOrganizationQuery, type GetFeedPostsQuery, type GetFloorsQuery, type GetGuidesQuery, type GetInvoicesQuery, type GetMembershipsDeletedQuery, type GetMembershipsQuery, type GetMoneyTransactionsQuery, type GetOrdersQuery, type GetPackagesQuery, type GetPlansQuery, type GetProductsQuery, type GetPromocodesQuery, type GetRegistrationsQuery, type GetRequestsQuery, type GetResourcesQuery, type GetScheduledCreditsTransactionsQuery, type GetScheduledDayPassesTransactionsQuery, type GetShopCategoriesQuery, type GetSubscriptionsQuery, type GetSupportTicketsQuery, type GetTemplatesQuery, type GetUpcomingInvoiceItemsQuery, type GetUpcomingInvoiceQuery, type GetVisitsQuery, type Guide, type Invoice, type InvoiceItem, type IssueContractBody, type IssueInvoiceBody, type Like, type ListInvoiceItemsQuery, type Location, type Media, type Membership, type MoneyTransaction, type Network, type Order, type Package, type PatchAssignmentBody, type PatchBookingBody, type PatchGuideBody, type PatchMoneyTransactionBody, type PatchPackageBody, type PatchResourceBody, type PayInvoiceBody, type Payment, type Plan, type Post, type PreviewCreditNoteBody, type Product, type Promocode, type Redemption, type Refund, type RefundMoneyTransactionBody, type Registration, type Request$1 as Request, type Resource, type ShopCategory, Spacebring, type SpacebringConfig, SpacebringError, type SpacebringErrorBody, type SpacebringRequestOptions, type SpacebringResources, type Subscription, type SupportTicket, type Template, type TerminateContractBody, type UpcomingItem, type UpdateAltCurrencyBody, type UpdateBenefitBody, type UpdateBenefitCategoryBody, type UpdateCompanyBody, type UpdateContractBody, type UpdateCouponBody, type UpdateCreditNoteBody, type UpdateEventBody, type UpdateEventTicketBody, type UpdateFeedPostBody, type UpdateInvoiceBody, type UpdateInvoiceItemBody, type UpdateMembershipBody, type UpdatePlanBody, type UpdateProductBody, type UpdateShopCategoryBody, type UpdateSubscriptionBody, type UpdateSubscriptionItemBody, type UpdateSupportTicketAssigneeBody, type UpdateSupportTicketCommentBody, type UpdateSupportTicketStatusBody, type UpdateSupportTicketTypeBody, type UpdateTemplateBody, type UpdateVisitBody, type Visit, type components, type operations, type paths };
|
|
34288
|
+
export { type Activity, type AddEventHostsBody, type AltCurrency, type Application, type ApplyBenefitBody, type Assignment, type Balance, type Benefit, type BenefitCategory, type Booking, type CheckInVisitBody, type CheckOutVisitBody, type Comment, type Company, type Contact, type Contract, type Coupon, type CreateAltCurrencyBody, type CreateAssignmentBody, type CreateBenefitBody, type CreateBenefitCategoryBody, type CreateBookingBody, type CreateCompanyBody, type CreateContactBody, type CreateContractBody, type CreateCouponBody, type CreateCreditNoteBody, type CreateCreditsTransactionBody, type CreateDayPassesTransactionBody, type CreateEventBody, type CreateEventMediaBody, type CreateFeedPostBody, type CreateFeedPostCommentBody, type CreateGuideBody, type CreateInvoiceBody, type CreateInvoiceItemBody, type CreateMembershipBody, type CreateMoneyTransactionBody, type CreatePackageBody, type CreatePlanBody, type CreateProductBody, type CreatePromocodeBody, type CreateRequestBody, type CreateResourceBody, type CreateShopCategoryBody, type CreateSubscriptionBody, type CreateSubscriptionItemBody, type CreateSupportTicketBody, type CreateSupportTicketCommentBody, type CreateTemplateBody, type CreateVisitBody, type CreditNote, type CreditScheduledTransaction, type CreditTransaction, type DayPassScheduledTransaction, type DayPassTransaction, type Event, type EventTicket, type GetAltCurrenciesQuery, type GetAssignmentsQuery, type GetBenefitApplicationsQuery, type GetBenefitCategoriesQuery, type GetBenefitsQuery, type GetBookingsQuery, type GetCompaniesQuery, type GetContactsQuery, type GetContractsQuery, type GetCouponsQuery, type GetCreditNotesQuery, type GetCreditsTransactionsQuery, type GetDayPassesTransactionsQuery, type GetDiscountRedemptionsQuery, type GetEventTicketsQuery, type GetEventsByOrganizationQuery, type GetFeedPostsQuery, type GetFloorsQuery, type GetGuidesQuery, type GetInvoicesQuery, type GetMembershipsDeletedQuery, type GetMembershipsQuery, type GetMoneyTransactionsQuery, type GetOrdersQuery, type GetPackagesQuery, type GetPlansQuery, type GetProductsQuery, type GetPromocodesQuery, type GetRegistrationsQuery, type GetRequestsQuery, type GetResourceAvailability, type GetResourceAvailabilityBody, type GetResourcesQuery, type GetScheduledCreditsTransactionsQuery, type GetScheduledDayPassesTransactionsQuery, type GetShopCategoriesQuery, type GetSubscriptionsQuery, type GetSupportTicketsQuery, type GetTemplatesQuery, type GetUpcomingInvoiceItemsQuery, type GetUpcomingInvoiceQuery, type GetVisitsQuery, type Guide, type Invoice, type InvoiceItem, type IssueContractBody, type IssueInvoiceBody, type Like, type ListInvoiceItemsQuery, type Location, type Media, type Membership, type MoneyTransaction, type Network, type Order, type Package, type PatchAssignmentBody, type PatchBookingBody, type PatchGuideBody, type PatchMoneyTransactionBody, type PatchPackageBody, type PatchResourceBody, type PayInvoiceBody, type Payment, type Plan, type Post, type PreviewCreditNoteBody, type Product, type Promocode, type Redemption, type Refund, type RefundMoneyTransactionBody, type Registration, type Request$1 as Request, type Resource, type ShopCategory, Spacebring, type SpacebringConfig, SpacebringError, type SpacebringErrorBody, type SpacebringRequestOptions, type SpacebringResources, type Subscription, type SupportTicket, type Template, type TerminateContractBody, type UpcomingItem, type UpdateAltCurrencyBody, type UpdateBenefitBody, type UpdateBenefitCategoryBody, type UpdateCompanyBody, type UpdateContractBody, type UpdateCouponBody, type UpdateCreditNoteBody, type UpdateEventBody, type UpdateEventTicketBody, type UpdateFeedPostBody, type UpdateInvoiceBody, type UpdateInvoiceItemBody, type UpdateMembershipBody, type UpdatePlanBody, type UpdateProductBody, type UpdateShopCategoryBody, type UpdateSubscriptionBody, type UpdateSubscriptionItemBody, type UpdateSupportTicketAssigneeBody, type UpdateSupportTicketCommentBody, type UpdateSupportTicketStatusBody, type UpdateSupportTicketTypeBody, type UpdateTemplateBody, type UpdateVisitBody, type Visit, type components, type operations, type paths };
|