@izak0s/spacebring-api 9.9.0 → 10.1.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 +8 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +258 -18
- package/dist/index.d.ts +258 -18
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -443,6 +443,26 @@ interface paths {
|
|
|
443
443
|
patch?: never;
|
|
444
444
|
trace?: never;
|
|
445
445
|
};
|
|
446
|
+
"/benefits/v1/media": {
|
|
447
|
+
parameters: {
|
|
448
|
+
query?: never;
|
|
449
|
+
header?: never;
|
|
450
|
+
path?: never;
|
|
451
|
+
cookie?: never;
|
|
452
|
+
};
|
|
453
|
+
get?: never;
|
|
454
|
+
put?: never;
|
|
455
|
+
/**
|
|
456
|
+
* Create a media upload
|
|
457
|
+
* @description Create a media upload for a benefit cover image. The response carries a presigned URL: send the raw file bytes with a PUT request within a minute, using exactly the headers returned. Once the file is stored, pass the returned key as <code>media[0].key</code> when creating or updating a benefit within an hour; an image that is not attached by then is discarded. <h3>OAuth</h3>Required scopes: <code>benefits</code>
|
|
458
|
+
*/
|
|
459
|
+
post: operations["createBenefitMedia"];
|
|
460
|
+
delete?: never;
|
|
461
|
+
options?: never;
|
|
462
|
+
head?: never;
|
|
463
|
+
patch?: never;
|
|
464
|
+
trace?: never;
|
|
465
|
+
};
|
|
446
466
|
"/benefits/applications/v1": {
|
|
447
467
|
parameters: {
|
|
448
468
|
query?: never;
|
|
@@ -3314,6 +3334,47 @@ interface components {
|
|
|
3314
3334
|
visibility: "public" | "admins" | "exclusiveMembers" | "members" | "networkMembers";
|
|
3315
3335
|
};
|
|
3316
3336
|
};
|
|
3337
|
+
createBenefitMedia: {
|
|
3338
|
+
/** @description The created media upload. */
|
|
3339
|
+
media: {
|
|
3340
|
+
/** @description Storage key of the media file. Pass it as media[0].key when creating or updating a benefit. */
|
|
3341
|
+
key: string;
|
|
3342
|
+
/**
|
|
3343
|
+
* @description MIME type of the image file.
|
|
3344
|
+
* @enum {string}
|
|
3345
|
+
*/
|
|
3346
|
+
mimeType: "image/gif" | "image/jpeg" | "image/png" | "image/webp";
|
|
3347
|
+
/** @description Size of the image file in bytes. */
|
|
3348
|
+
size: number;
|
|
3349
|
+
/**
|
|
3350
|
+
* @description Upload status. pending: the file has not been received yet. uploaded: the file is stored and can be attached to a benefit. attached: a benefit references the file.
|
|
3351
|
+
* @enum {string}
|
|
3352
|
+
*/
|
|
3353
|
+
status: "pending" | "uploaded" | "attached";
|
|
3354
|
+
/** @description How to upload the file. Send the raw bytes as the request body, not a multipart form. */
|
|
3355
|
+
upload: {
|
|
3356
|
+
/**
|
|
3357
|
+
* Format: date-time
|
|
3358
|
+
* @description ISO timestamp after which the upload URL is rejected.
|
|
3359
|
+
*/
|
|
3360
|
+
expirationDate: string;
|
|
3361
|
+
/** @description Headers the PUT request must send exactly as given; the signature covers them. */
|
|
3362
|
+
headers: {
|
|
3363
|
+
/** @description Must equal the size declared when the upload was created. */
|
|
3364
|
+
"Content-Length": string;
|
|
3365
|
+
/** @description Must equal the mimeType declared when the upload was created. */
|
|
3366
|
+
"Content-Type": string;
|
|
3367
|
+
};
|
|
3368
|
+
/**
|
|
3369
|
+
* @description HTTP method of the upload request.
|
|
3370
|
+
* @enum {string}
|
|
3371
|
+
*/
|
|
3372
|
+
method: "PUT";
|
|
3373
|
+
/** @description Presigned URL to send the raw file bytes to. */
|
|
3374
|
+
url: string;
|
|
3375
|
+
};
|
|
3376
|
+
};
|
|
3377
|
+
};
|
|
3317
3378
|
getBenefitApplications: {
|
|
3318
3379
|
/** @description List of benefit applications. */
|
|
3319
3380
|
applications: {
|
|
@@ -8097,7 +8158,9 @@ interface components {
|
|
|
8097
8158
|
wednesday?: boolean;
|
|
8098
8159
|
};
|
|
8099
8160
|
hours?: {
|
|
8161
|
+
/** @description Opening time in 24-hour format. */
|
|
8100
8162
|
from?: string;
|
|
8163
|
+
/** @description Closing time in 24-hour format, counted from the start of the weekday. A day that stays open past midnight closes after 24:00, for example at 26:00 for 2:00 AM the next day, and at most 24 hours after the opening time. */
|
|
8101
8164
|
to?: string;
|
|
8102
8165
|
};
|
|
8103
8166
|
}[];
|
|
@@ -8117,7 +8180,9 @@ interface components {
|
|
|
8117
8180
|
wednesday?: boolean;
|
|
8118
8181
|
};
|
|
8119
8182
|
hours?: {
|
|
8183
|
+
/** @description Opening time in 24-hour format. */
|
|
8120
8184
|
from?: string;
|
|
8185
|
+
/** @description Closing time in 24-hour format, counted from the start of the weekday. A day that stays open past midnight closes after 24:00, for example at 26:00 for 2:00 AM the next day, and at most 24 hours after the opening time. */
|
|
8121
8186
|
to?: string;
|
|
8122
8187
|
};
|
|
8123
8188
|
}[];
|
|
@@ -9448,7 +9513,7 @@ interface components {
|
|
|
9448
9513
|
hours: {
|
|
9449
9514
|
/** @description Opening time in 24-hour "HH:mm" format. */
|
|
9450
9515
|
from: string;
|
|
9451
|
-
/** @description Closing time in 24-hour
|
|
9516
|
+
/** @description Closing time in 24-hour format, counted from the start of the weekday. A day that stays open past midnight closes after 24:00, for example at 26:00 for 2:00 AM the next day, and at most 24 hours after the opening time. */
|
|
9452
9517
|
to: string;
|
|
9453
9518
|
};
|
|
9454
9519
|
}[];
|
|
@@ -9484,7 +9549,7 @@ interface components {
|
|
|
9484
9549
|
hours: {
|
|
9485
9550
|
/** @description Opening time in 24-hour "HH:mm" format. */
|
|
9486
9551
|
from: string;
|
|
9487
|
-
/** @description Closing time in 24-hour
|
|
9552
|
+
/** @description Closing time in 24-hour format, counted from the start of the weekday. A day that stays open past midnight closes after 24:00, for example at 26:00 for 2:00 AM the next day, and at most 24 hours after the opening time. */
|
|
9488
9553
|
to: string;
|
|
9489
9554
|
};
|
|
9490
9555
|
}[];
|
|
@@ -10079,7 +10144,7 @@ interface components {
|
|
|
10079
10144
|
hours: {
|
|
10080
10145
|
/** @description Opening time in 24-hour "HH:mm" format. */
|
|
10081
10146
|
from: string;
|
|
10082
|
-
/** @description Closing time in 24-hour
|
|
10147
|
+
/** @description Closing time in 24-hour format, counted from the start of the weekday. A day that stays open past midnight closes after 24:00, for example at 26:00 for 2:00 AM the next day, and at most 24 hours after the opening time. */
|
|
10083
10148
|
to: string;
|
|
10084
10149
|
};
|
|
10085
10150
|
}[];
|
|
@@ -10115,7 +10180,7 @@ interface components {
|
|
|
10115
10180
|
hours: {
|
|
10116
10181
|
/** @description Opening time in 24-hour "HH:mm" format. */
|
|
10117
10182
|
from: string;
|
|
10118
|
-
/** @description Closing time in 24-hour
|
|
10183
|
+
/** @description Closing time in 24-hour format, counted from the start of the weekday. A day that stays open past midnight closes after 24:00, for example at 26:00 for 2:00 AM the next day, and at most 24 hours after the opening time. */
|
|
10119
10184
|
to: string;
|
|
10120
10185
|
};
|
|
10121
10186
|
}[];
|
|
@@ -13012,6 +13077,46 @@ interface components {
|
|
|
13012
13077
|
* @description ISO timestamp of when the order was created.
|
|
13013
13078
|
*/
|
|
13014
13079
|
createDate: string;
|
|
13080
|
+
/** @description Customer who owns the order: the company or user it is paid by, or the buyer when the order is free. */
|
|
13081
|
+
customer: {
|
|
13082
|
+
/**
|
|
13083
|
+
* Format: uuid
|
|
13084
|
+
* @description Unique identifier of the customer.
|
|
13085
|
+
*/
|
|
13086
|
+
id: string;
|
|
13087
|
+
/** @description Name of the company. Present when the customer is a company. */
|
|
13088
|
+
title?: string;
|
|
13089
|
+
/**
|
|
13090
|
+
* @description Customer type.
|
|
13091
|
+
* @enum {string}
|
|
13092
|
+
*/
|
|
13093
|
+
type: "company" | "user";
|
|
13094
|
+
/** @description User who owns the order. Present when the customer is a user. */
|
|
13095
|
+
user?: {
|
|
13096
|
+
/** @description Short bio of the user. */
|
|
13097
|
+
about?: string | null;
|
|
13098
|
+
/** @description Email address of the user. */
|
|
13099
|
+
email?: string | null;
|
|
13100
|
+
/**
|
|
13101
|
+
* Format: uuid
|
|
13102
|
+
* @description Unique identifier of the user.
|
|
13103
|
+
*/
|
|
13104
|
+
id: string;
|
|
13105
|
+
/** @description First name of the user. */
|
|
13106
|
+
name?: string | null;
|
|
13107
|
+
/** @description Phone number of the user. */
|
|
13108
|
+
phoneNumber?: string | null;
|
|
13109
|
+
/** @description Profile photo URL of the user. */
|
|
13110
|
+
photoUrl?: string | null;
|
|
13111
|
+
/** @description Last name of the user. */
|
|
13112
|
+
surname?: string | null;
|
|
13113
|
+
};
|
|
13114
|
+
};
|
|
13115
|
+
/**
|
|
13116
|
+
* Format: uuid
|
|
13117
|
+
* @description ID of the customer who created the order in its location. Absent when the creator has no membership in that location.
|
|
13118
|
+
*/
|
|
13119
|
+
customerRefCreatedBy?: string;
|
|
13015
13120
|
/**
|
|
13016
13121
|
* Format: date-time
|
|
13017
13122
|
* @description ISO timestamp of when the order was deleted.
|
|
@@ -13483,6 +13588,18 @@ interface components {
|
|
|
13483
13588
|
/** @description Last name of the user. */
|
|
13484
13589
|
surname?: string | null;
|
|
13485
13590
|
};
|
|
13591
|
+
/** @description User who created the order: the buyer, or an admin who created it on the buyer's behalf. Absent for orders created before this was recorded. */
|
|
13592
|
+
userCreatedBy?: {
|
|
13593
|
+
/**
|
|
13594
|
+
* Format: uuid
|
|
13595
|
+
* @description Unique identifier of the user who created the order.
|
|
13596
|
+
*/
|
|
13597
|
+
id: string;
|
|
13598
|
+
/** @description First name of the user who created the order. */
|
|
13599
|
+
name?: string | null;
|
|
13600
|
+
/** @description Last name of the user who created the order. */
|
|
13601
|
+
surname?: string | null;
|
|
13602
|
+
};
|
|
13486
13603
|
/** @description User who deleted this order, if applicable. */
|
|
13487
13604
|
userDeletedBy?: {
|
|
13488
13605
|
/**
|
|
@@ -13509,6 +13626,46 @@ interface components {
|
|
|
13509
13626
|
* @description ISO timestamp of when the order was created.
|
|
13510
13627
|
*/
|
|
13511
13628
|
createDate: string;
|
|
13629
|
+
/** @description Customer who owns the order: the company or user it is paid by, or the buyer when the order is free. */
|
|
13630
|
+
customer: {
|
|
13631
|
+
/**
|
|
13632
|
+
* Format: uuid
|
|
13633
|
+
* @description Unique identifier of the customer.
|
|
13634
|
+
*/
|
|
13635
|
+
id: string;
|
|
13636
|
+
/** @description Name of the company. Present when the customer is a company. */
|
|
13637
|
+
title?: string;
|
|
13638
|
+
/**
|
|
13639
|
+
* @description Customer type.
|
|
13640
|
+
* @enum {string}
|
|
13641
|
+
*/
|
|
13642
|
+
type: "company" | "user";
|
|
13643
|
+
/** @description User who owns the order. Present when the customer is a user. */
|
|
13644
|
+
user?: {
|
|
13645
|
+
/** @description Short bio of the user. */
|
|
13646
|
+
about?: string | null;
|
|
13647
|
+
/** @description Email address of the user. */
|
|
13648
|
+
email?: string | null;
|
|
13649
|
+
/**
|
|
13650
|
+
* Format: uuid
|
|
13651
|
+
* @description Unique identifier of the user.
|
|
13652
|
+
*/
|
|
13653
|
+
id: string;
|
|
13654
|
+
/** @description First name of the user. */
|
|
13655
|
+
name?: string | null;
|
|
13656
|
+
/** @description Phone number of the user. */
|
|
13657
|
+
phoneNumber?: string | null;
|
|
13658
|
+
/** @description Profile photo URL of the user. */
|
|
13659
|
+
photoUrl?: string | null;
|
|
13660
|
+
/** @description Last name of the user. */
|
|
13661
|
+
surname?: string | null;
|
|
13662
|
+
};
|
|
13663
|
+
};
|
|
13664
|
+
/**
|
|
13665
|
+
* Format: uuid
|
|
13666
|
+
* @description ID of the customer who created the order in its location. Absent when the creator has no membership in that location.
|
|
13667
|
+
*/
|
|
13668
|
+
customerRefCreatedBy?: string;
|
|
13512
13669
|
/**
|
|
13513
13670
|
* Format: date-time
|
|
13514
13671
|
* @description ISO timestamp of when the order was deleted.
|
|
@@ -13980,6 +14137,18 @@ interface components {
|
|
|
13980
14137
|
/** @description Last name of the user. */
|
|
13981
14138
|
surname?: string | null;
|
|
13982
14139
|
};
|
|
14140
|
+
/** @description User who created the order: the buyer, or an admin who created it on the buyer's behalf. Absent for orders created before this was recorded. */
|
|
14141
|
+
userCreatedBy?: {
|
|
14142
|
+
/**
|
|
14143
|
+
* Format: uuid
|
|
14144
|
+
* @description Unique identifier of the user who created the order.
|
|
14145
|
+
*/
|
|
14146
|
+
id: string;
|
|
14147
|
+
/** @description First name of the user who created the order. */
|
|
14148
|
+
name?: string | null;
|
|
14149
|
+
/** @description Last name of the user who created the order. */
|
|
14150
|
+
surname?: string | null;
|
|
14151
|
+
};
|
|
13983
14152
|
/** @description User who deleted this order, if applicable. */
|
|
13984
14153
|
userDeletedBy?: {
|
|
13985
14154
|
/**
|
|
@@ -21210,7 +21379,7 @@ interface components {
|
|
|
21210
21379
|
locationRef: string;
|
|
21211
21380
|
/** @description Media files to attach. The url is generated server-side. */
|
|
21212
21381
|
media?: {
|
|
21213
|
-
/** @description Storage key of the media file. */
|
|
21382
|
+
/** @description Storage key of the media file, as returned by the media upload endpoint. */
|
|
21214
21383
|
key: string;
|
|
21215
21384
|
}[];
|
|
21216
21385
|
/**
|
|
@@ -21295,7 +21464,7 @@ interface components {
|
|
|
21295
21464
|
featured?: boolean;
|
|
21296
21465
|
/** @description Media files to attach. The url is generated server-side. */
|
|
21297
21466
|
media?: {
|
|
21298
|
-
/** @description Storage key of the media file. */
|
|
21467
|
+
/** @description Storage key of the media file, as returned by the media upload endpoint. */
|
|
21299
21468
|
key: string;
|
|
21300
21469
|
}[];
|
|
21301
21470
|
/**
|
|
@@ -21315,6 +21484,22 @@ interface components {
|
|
|
21315
21484
|
};
|
|
21316
21485
|
};
|
|
21317
21486
|
};
|
|
21487
|
+
createBenefitMedia: {
|
|
21488
|
+
content: {
|
|
21489
|
+
"application/json": {
|
|
21490
|
+
/** @description File to upload. */
|
|
21491
|
+
media: {
|
|
21492
|
+
/**
|
|
21493
|
+
* @description MIME type of the file to upload.
|
|
21494
|
+
* @enum {string}
|
|
21495
|
+
*/
|
|
21496
|
+
mimeType: "image/gif" | "image/jpeg" | "image/png" | "image/webp";
|
|
21497
|
+
/** @description Size of the file in bytes. The upload is rejected when the body length differs. */
|
|
21498
|
+
size: number;
|
|
21499
|
+
};
|
|
21500
|
+
};
|
|
21501
|
+
};
|
|
21502
|
+
};
|
|
21318
21503
|
createBenefitApplication: {
|
|
21319
21504
|
content: {
|
|
21320
21505
|
"application/json": {
|
|
@@ -23228,7 +23413,7 @@ interface components {
|
|
|
23228
23413
|
hours: {
|
|
23229
23414
|
/** @description Opening time in 24-hour "HH:mm" format. */
|
|
23230
23415
|
from: string;
|
|
23231
|
-
/** @description Closing time in 24-hour
|
|
23416
|
+
/** @description Closing time in 24-hour format, counted from the start of the weekday. A day that stays open past midnight closes after 24:00, for example at 26:00 for 2:00 AM the next day, and at most 24 hours after the opening time. */
|
|
23232
23417
|
to: string;
|
|
23233
23418
|
};
|
|
23234
23419
|
}[];
|
|
@@ -23264,7 +23449,7 @@ interface components {
|
|
|
23264
23449
|
hours: {
|
|
23265
23450
|
/** @description Opening time in 24-hour "HH:mm" format. */
|
|
23266
23451
|
from: string;
|
|
23267
|
-
/** @description Closing time in 24-hour
|
|
23452
|
+
/** @description Closing time in 24-hour format, counted from the start of the weekday. A day that stays open past midnight closes after 24:00, for example at 26:00 for 2:00 AM the next day, and at most 24 hours after the opening time. */
|
|
23268
23453
|
to: string;
|
|
23269
23454
|
};
|
|
23270
23455
|
}[];
|
|
@@ -23639,7 +23824,7 @@ interface components {
|
|
|
23639
23824
|
hours: {
|
|
23640
23825
|
/** @description Opening time in 24-hour "HH:mm" format. */
|
|
23641
23826
|
from: string;
|
|
23642
|
-
/** @description Closing time in 24-hour
|
|
23827
|
+
/** @description Closing time in 24-hour format, counted from the start of the weekday. A day that stays open past midnight closes after 24:00, for example at 26:00 for 2:00 AM the next day, and at most 24 hours after the opening time. */
|
|
23643
23828
|
to: string;
|
|
23644
23829
|
};
|
|
23645
23830
|
}[];
|
|
@@ -23675,7 +23860,7 @@ interface components {
|
|
|
23675
23860
|
hours: {
|
|
23676
23861
|
/** @description Opening time in 24-hour "HH:mm" format. */
|
|
23677
23862
|
from: string;
|
|
23678
|
-
/** @description Closing time in 24-hour
|
|
23863
|
+
/** @description Closing time in 24-hour format, counted from the start of the weekday. A day that stays open past midnight closes after 24:00, for example at 26:00 for 2:00 AM the next day, and at most 24 hours after the opening time. */
|
|
23679
23864
|
to: string;
|
|
23680
23865
|
};
|
|
23681
23866
|
}[];
|
|
@@ -25711,6 +25896,15 @@ interface operations {
|
|
|
25711
25896
|
"application/json": components["schemas"]["responseError"];
|
|
25712
25897
|
};
|
|
25713
25898
|
};
|
|
25899
|
+
/** @description Conflict */
|
|
25900
|
+
409: {
|
|
25901
|
+
headers: {
|
|
25902
|
+
[name: string]: unknown;
|
|
25903
|
+
};
|
|
25904
|
+
content: {
|
|
25905
|
+
"application/json": components["schemas"]["responseError"];
|
|
25906
|
+
};
|
|
25907
|
+
};
|
|
25714
25908
|
};
|
|
25715
25909
|
};
|
|
25716
25910
|
getBenefit: {
|
|
@@ -25777,6 +25971,15 @@ interface operations {
|
|
|
25777
25971
|
"application/json": components["schemas"]["responseError"];
|
|
25778
25972
|
};
|
|
25779
25973
|
};
|
|
25974
|
+
/** @description Conflict */
|
|
25975
|
+
409: {
|
|
25976
|
+
headers: {
|
|
25977
|
+
[name: string]: unknown;
|
|
25978
|
+
};
|
|
25979
|
+
content: {
|
|
25980
|
+
"application/json": components["schemas"]["responseError"];
|
|
25981
|
+
};
|
|
25982
|
+
};
|
|
25780
25983
|
};
|
|
25781
25984
|
};
|
|
25782
25985
|
deleteBenefit: {
|
|
@@ -25809,6 +26012,38 @@ interface operations {
|
|
|
25809
26012
|
};
|
|
25810
26013
|
};
|
|
25811
26014
|
};
|
|
26015
|
+
createBenefitMedia: {
|
|
26016
|
+
parameters: {
|
|
26017
|
+
query?: never;
|
|
26018
|
+
header?: {
|
|
26019
|
+
/** @description The id of the network. Required when using bearer token authentication */
|
|
26020
|
+
"spacebring-network-id"?: string;
|
|
26021
|
+
};
|
|
26022
|
+
path?: never;
|
|
26023
|
+
cookie?: never;
|
|
26024
|
+
};
|
|
26025
|
+
requestBody: components["requestBodies"]["createBenefitMedia"];
|
|
26026
|
+
responses: {
|
|
26027
|
+
/** @description Created */
|
|
26028
|
+
201: {
|
|
26029
|
+
headers: {
|
|
26030
|
+
[name: string]: unknown;
|
|
26031
|
+
};
|
|
26032
|
+
content: {
|
|
26033
|
+
"application/json": components["schemas"]["createBenefitMedia"];
|
|
26034
|
+
};
|
|
26035
|
+
};
|
|
26036
|
+
/** @description Bad Request */
|
|
26037
|
+
400: {
|
|
26038
|
+
headers: {
|
|
26039
|
+
[name: string]: unknown;
|
|
26040
|
+
};
|
|
26041
|
+
content: {
|
|
26042
|
+
"application/json": components["schemas"]["responseError"];
|
|
26043
|
+
};
|
|
26044
|
+
};
|
|
26045
|
+
};
|
|
26046
|
+
};
|
|
25812
26047
|
getBenefitApplications: {
|
|
25813
26048
|
parameters: {
|
|
25814
26049
|
query?: {
|
|
@@ -30489,7 +30724,7 @@ interface operations {
|
|
|
30489
30724
|
membershipRefOwner?: string;
|
|
30490
30725
|
/** @description Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
|
|
30491
30726
|
nextPageToken?: string;
|
|
30492
|
-
/** @description Sort order as `<field>:<direction>`, where field is startDate, endDate or
|
|
30727
|
+
/** @description Sort order as `<field>:<direction>`, where field is startDate, endDate, createDate or deleteDate and direction is asc or desc. deleteDate lists only cancelled bookings, by when they were cancelled, and cannot be combined with singleBookings. Defaults to startDate:asc when a startDate filter is given, endDate:asc when only an endDate filter is given, and createDate:desc otherwise. */
|
|
30493
30728
|
order?: string;
|
|
30494
30729
|
/** @description UUID of the resource whose bookings to list. Required when both locationRef and userRef are omitted. */
|
|
30495
30730
|
resourceRef?: string;
|
|
@@ -30497,7 +30732,7 @@ interface operations {
|
|
|
30497
30732
|
singleBookings?: string;
|
|
30498
30733
|
/** @description Deprecated. Use bracket-notation fields startDate[gt], startDate[gte], startDate[lt], startDate[lte] instead. */
|
|
30499
30734
|
startDate?: string;
|
|
30500
|
-
/** @description Comma-separated list of booking statuses to filter by, e.g. `confirmed,canceled`. Valid values: tentative, confirmed, canceled. Defaults to tentative, confirmed. */
|
|
30735
|
+
/** @description Comma-separated list of booking statuses to filter by, e.g. `confirmed,canceled`. Valid values: tentative, confirmed, canceled. Defaults to tentative, confirmed, or to canceled when ordering by deleteDate. */
|
|
30501
30736
|
status?: string;
|
|
30502
30737
|
/** @description Comma-separated list of resource types to filter by, e.g. `room,hotDesk`. Valid values: hotDesk, dedicatedDesk, office, parkingLot, room, conferenceRoom, eventSpace, meetingRoom, phoneBooth, studio, equipment, station. Defaults to all bookable types. */
|
|
30503
30738
|
type?: string;
|
|
@@ -33293,7 +33528,7 @@ interface GetBookingsQuery {
|
|
|
33293
33528
|
membershipRefOwner?: string;
|
|
33294
33529
|
/** Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
|
|
33295
33530
|
nextPageToken?: string;
|
|
33296
|
-
/** Sort order as `:`, where field is startDate, endDate or
|
|
33531
|
+
/** Sort order as `:`, where field is startDate, endDate, createDate or deleteDate and direction is asc or desc. deleteDate lists only cancelled bookings, by when they were cancelled, and cannot be combined with singleBookings. Defaults to startDate:asc when a startDate filter is given, endDate:asc when only an endDate filter is given, and createDate:desc otherwise. */
|
|
33297
33532
|
order?: string;
|
|
33298
33533
|
/** UUID of the resource whose bookings to list. Required when both locationRef and userRef are omitted. */
|
|
33299
33534
|
resourceRef?: string;
|
|
@@ -33301,7 +33536,7 @@ interface GetBookingsQuery {
|
|
|
33301
33536
|
singleBookings?: string;
|
|
33302
33537
|
/** @deprecated Use bracket-notation fields startDate[gt], startDate[gte], startDate[lt], startDate[lte] instead. */
|
|
33303
33538
|
startDate?: string;
|
|
33304
|
-
/** Comma-separated list of booking statuses to filter by, e.g. `confirmed,canceled`. Valid values: tentative, confirmed, canceled. Defaults to tentative, confirmed. */
|
|
33539
|
+
/** Comma-separated list of booking statuses to filter by, e.g. `confirmed,canceled`. Valid values: tentative, confirmed, canceled. Defaults to tentative, confirmed, or to canceled when ordering by deleteDate. */
|
|
33305
33540
|
status?: string;
|
|
33306
33541
|
/** Comma-separated list of resource types to filter by, e.g. `room,hotDesk`. Valid values: hotDesk, dedicatedDesk, office, parkingLot, room, conferenceRoom, eventSpace, meetingRoom, phoneBooth, studio, equipment, station. Defaults to all bookable types. */
|
|
33307
33542
|
type?: string;
|
|
@@ -33442,10 +33677,10 @@ type UpdateFeedPostBody = NonNullable<NonNullable<operations["updateFeedPost"]["
|
|
|
33442
33677
|
|
|
33443
33678
|
/** A Event entity as returned by the Spacebring API. */
|
|
33444
33679
|
type Event = NonNullable<components["schemas"]["event"]>;
|
|
33680
|
+
/** A EventMedia entity as returned by the Spacebring API. */
|
|
33681
|
+
type EventMedia = NonNullable<operations["createEventMedia"]["responses"][201]["content"]["application/json"]["media"]>;
|
|
33445
33682
|
/** A EventTicket entity as returned by the Spacebring API. */
|
|
33446
33683
|
type EventTicket = NonNullable<components["schemas"]["eventTicket"]>;
|
|
33447
|
-
/** A Media entity as returned by the Spacebring API. */
|
|
33448
|
-
type Media = NonNullable<operations["createEventMedia"]["responses"][201]["content"]["application/json"]["media"]>;
|
|
33449
33684
|
/** Query parameters for `sb.events.list()`. */
|
|
33450
33685
|
interface GetEventsByOrganizationQuery {
|
|
33451
33686
|
/** The id of the location. */
|
|
@@ -33773,6 +34008,8 @@ type Application = NonNullable<components["schemas"]["benefitApplication"]>;
|
|
|
33773
34008
|
type Benefit = NonNullable<components["schemas"]["benefit"]>;
|
|
33774
34009
|
/** A BenefitCategory entity as returned by the Spacebring API. */
|
|
33775
34010
|
type BenefitCategory = NonNullable<components["schemas"]["benefitCategory"]>;
|
|
34011
|
+
/** A BenefitMedia entity as returned by the Spacebring API. */
|
|
34012
|
+
type BenefitMedia = NonNullable<operations["createBenefitMedia"]["responses"][201]["content"]["application/json"]["media"]>;
|
|
33776
34013
|
/** Query parameters for `sb.benefits.applications.list()`. */
|
|
33777
34014
|
interface GetBenefitApplicationsQuery {
|
|
33778
34015
|
/** UUID of the benefit. */
|
|
@@ -33818,6 +34055,8 @@ type ApplyBenefitBody = NonNullable<NonNullable<operations["applyBenefit"]["requ
|
|
|
33818
34055
|
type CreateBenefitBody = NonNullable<NonNullable<operations["createBenefit"]["requestBody"]>["content"]["application/json"]["benefit"]>;
|
|
33819
34056
|
/** Request body for `sb.benefits.categories.create()`. */
|
|
33820
34057
|
type CreateBenefitCategoryBody = NonNullable<NonNullable<operations["createBenefitCategory"]["requestBody"]>["content"]["application/json"]["category"]>;
|
|
34058
|
+
/** Request body for `sb.benefits.createMedia()`. */
|
|
34059
|
+
type CreateBenefitMediaBody = NonNullable<NonNullable<operations["createBenefitMedia"]["requestBody"]>["content"]["application/json"]["media"]>;
|
|
33821
34060
|
/** Request body for `sb.benefits.update()`. */
|
|
33822
34061
|
type UpdateBenefitBody = NonNullable<NonNullable<operations["updateBenefit"]["requestBody"]>["content"]["application/json"]["benefit"]>;
|
|
33823
34062
|
/** Request body for `sb.benefits.categories.update()`. */
|
|
@@ -33862,6 +34101,7 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
33862
34101
|
create(benefit: CreateBenefitBody, options?: SpacebringRequestOptions): Promise<Benefit>;
|
|
33863
34102
|
update(benefitId: string, benefit: UpdateBenefitBody, options?: SpacebringRequestOptions): Promise<Benefit>;
|
|
33864
34103
|
delete(benefitId: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
34104
|
+
createMedia(media: CreateBenefitMediaBody, options?: SpacebringRequestOptions): Promise<BenefitMedia>;
|
|
33865
34105
|
applications: {
|
|
33866
34106
|
list(query?: GetBenefitApplicationsQuery, options?: SpacebringRequestOptions): Promise<{
|
|
33867
34107
|
applications: Application[];
|
|
@@ -34034,7 +34274,7 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
34034
34274
|
addEventHosts(id: string, tickets: AddEventHostsBody, options?: SpacebringRequestOptions): Promise<EventTicket[]>;
|
|
34035
34275
|
cancel(id: string, options?: SpacebringRequestOptions): Promise<Event>;
|
|
34036
34276
|
copy(id: string, options?: SpacebringRequestOptions): Promise<Event>;
|
|
34037
|
-
createMedia(media: CreateEventMediaBody, options?: SpacebringRequestOptions): Promise<
|
|
34277
|
+
createMedia(media: CreateEventMediaBody, options?: SpacebringRequestOptions): Promise<EventMedia>;
|
|
34038
34278
|
tickets: {
|
|
34039
34279
|
list(query?: GetEventTicketsQuery, options?: SpacebringRequestOptions): Promise<{
|
|
34040
34280
|
tickets?: EventTicket[];
|
|
@@ -34389,4 +34629,4 @@ declare class SpacebringError extends Error {
|
|
|
34389
34629
|
});
|
|
34390
34630
|
}
|
|
34391
34631
|
|
|
34392
|
-
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
|
|
34632
|
+
export { type Activity, type AddEventHostsBody, type AltCurrency, type Application, type ApplyBenefitBody, type Assignment, type Balance, type Benefit, type BenefitCategory, type BenefitMedia, 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 CreateBenefitMediaBody, 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 EventMedia, 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 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 };
|