@izak0s/spacebring-api 10.3.0 → 10.5.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 +17 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +333 -11
- package/dist/index.d.ts +333 -11
- package/dist/index.js +17 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1936,6 +1936,26 @@ interface paths {
|
|
|
1936
1936
|
patch: operations["patchGuide"];
|
|
1937
1937
|
trace?: never;
|
|
1938
1938
|
};
|
|
1939
|
+
"/guides/v1/attachments": {
|
|
1940
|
+
parameters: {
|
|
1941
|
+
query?: never;
|
|
1942
|
+
header?: never;
|
|
1943
|
+
path?: never;
|
|
1944
|
+
cookie?: never;
|
|
1945
|
+
};
|
|
1946
|
+
get?: never;
|
|
1947
|
+
put?: never;
|
|
1948
|
+
/**
|
|
1949
|
+
* Create an attachment upload
|
|
1950
|
+
* @description Create an upload for a file to attach to a guide, of any type up to 50 MB. 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 in <code>attachments[].key</code> when creating or updating a guide within an hour; a file that is not attached by then is discarded. The file is served as a download under the declared name. <h3>OAuth</h3>Required scopes: <code>support</code>
|
|
1951
|
+
*/
|
|
1952
|
+
post: operations["createGuideAttachment"];
|
|
1953
|
+
delete?: never;
|
|
1954
|
+
options?: never;
|
|
1955
|
+
head?: never;
|
|
1956
|
+
patch?: never;
|
|
1957
|
+
trace?: never;
|
|
1958
|
+
};
|
|
1939
1959
|
"/guides/v1/media": {
|
|
1940
1960
|
parameters: {
|
|
1941
1961
|
query?: never;
|
|
@@ -2695,7 +2715,7 @@ interface paths {
|
|
|
2695
2715
|
put?: never;
|
|
2696
2716
|
/**
|
|
2697
2717
|
* Create a ticket comment
|
|
2698
|
-
* @description Create a support ticket comment. <h3>OAuth</h3>Required scopes: <code>support</code>
|
|
2718
|
+
* @description Create a support ticket comment. To attach a file, create a media upload first, send the file, then pass its key as <code>activity.attachments[0].key</code>; a 409 response means the file has not been received yet, so retry shortly. <h3>OAuth</h3>Required scopes: <code>support</code>
|
|
2699
2719
|
*/
|
|
2700
2720
|
post: operations["createSupportTicketComment"];
|
|
2701
2721
|
delete?: never;
|
|
@@ -2728,6 +2748,26 @@ interface paths {
|
|
|
2728
2748
|
patch: operations["updateSupportTicketComment"];
|
|
2729
2749
|
trace?: never;
|
|
2730
2750
|
};
|
|
2751
|
+
"/support/tickets/v1/media": {
|
|
2752
|
+
parameters: {
|
|
2753
|
+
query?: never;
|
|
2754
|
+
header?: never;
|
|
2755
|
+
path?: never;
|
|
2756
|
+
cookie?: never;
|
|
2757
|
+
};
|
|
2758
|
+
get?: never;
|
|
2759
|
+
put?: never;
|
|
2760
|
+
/**
|
|
2761
|
+
* Create a ticket media upload
|
|
2762
|
+
* @description Create a media upload for a ticket comment attachment, a file of any type up to 50 MB. 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>activity.attachments[0].key</code> when creating a ticket comment within 25 minutes; a file that is not attached by then is discarded. <h3>OAuth</h3>Required scopes: <code>support</code>
|
|
2763
|
+
*/
|
|
2764
|
+
post: operations["createSupportTicketMedia"];
|
|
2765
|
+
delete?: never;
|
|
2766
|
+
options?: never;
|
|
2767
|
+
head?: never;
|
|
2768
|
+
patch?: never;
|
|
2769
|
+
trace?: never;
|
|
2770
|
+
};
|
|
2731
2771
|
"/transactions/credits/scheduled/v1": {
|
|
2732
2772
|
parameters: {
|
|
2733
2773
|
query?: never;
|
|
@@ -5123,6 +5163,46 @@ interface components {
|
|
|
5123
5163
|
};
|
|
5124
5164
|
/** @description ISO currency code. Reflects the alt currency when present, otherwise the base currency. */
|
|
5125
5165
|
currencyCode: string;
|
|
5166
|
+
/** @description Customer the item is billed to. */
|
|
5167
|
+
customer?: {
|
|
5168
|
+
/**
|
|
5169
|
+
* Format: uuid
|
|
5170
|
+
* @description ID of the company or membership.
|
|
5171
|
+
*/
|
|
5172
|
+
id: string;
|
|
5173
|
+
/** @description Company logo. */
|
|
5174
|
+
logo?: {
|
|
5175
|
+
key: string;
|
|
5176
|
+
url: string;
|
|
5177
|
+
};
|
|
5178
|
+
/** @description Company name. */
|
|
5179
|
+
title?: string;
|
|
5180
|
+
/**
|
|
5181
|
+
* @description Whether the customer is a company or a user.
|
|
5182
|
+
* @enum {string}
|
|
5183
|
+
*/
|
|
5184
|
+
type: "company" | "user";
|
|
5185
|
+
/** @description User details for membership customers. */
|
|
5186
|
+
user?: {
|
|
5187
|
+
/** @description User bio. */
|
|
5188
|
+
about?: string | null;
|
|
5189
|
+
/** @description User email address. */
|
|
5190
|
+
email?: string | null;
|
|
5191
|
+
/**
|
|
5192
|
+
* Format: uuid
|
|
5193
|
+
* @description User ID.
|
|
5194
|
+
*/
|
|
5195
|
+
id: string;
|
|
5196
|
+
/** @description First name. */
|
|
5197
|
+
name?: string | null;
|
|
5198
|
+
/** @description Phone number. */
|
|
5199
|
+
phoneNumber?: string | null;
|
|
5200
|
+
/** @description Profile photo URL. */
|
|
5201
|
+
photoUrl?: string | null;
|
|
5202
|
+
/** @description Last name. */
|
|
5203
|
+
surname?: string | null;
|
|
5204
|
+
};
|
|
5205
|
+
};
|
|
5126
5206
|
/**
|
|
5127
5207
|
* Format: date-time
|
|
5128
5208
|
* @description ISO timestamp of when the item was deleted.
|
|
@@ -5479,6 +5559,46 @@ interface components {
|
|
|
5479
5559
|
};
|
|
5480
5560
|
/** @description ISO currency code. Reflects the alt currency when present, otherwise the base currency. */
|
|
5481
5561
|
currencyCode: string;
|
|
5562
|
+
/** @description Customer the item is billed to. */
|
|
5563
|
+
customer?: {
|
|
5564
|
+
/**
|
|
5565
|
+
* Format: uuid
|
|
5566
|
+
* @description ID of the company or membership.
|
|
5567
|
+
*/
|
|
5568
|
+
id: string;
|
|
5569
|
+
/** @description Company logo. */
|
|
5570
|
+
logo?: {
|
|
5571
|
+
key: string;
|
|
5572
|
+
url: string;
|
|
5573
|
+
};
|
|
5574
|
+
/** @description Company name. */
|
|
5575
|
+
title?: string;
|
|
5576
|
+
/**
|
|
5577
|
+
* @description Whether the customer is a company or a user.
|
|
5578
|
+
* @enum {string}
|
|
5579
|
+
*/
|
|
5580
|
+
type: "company" | "user";
|
|
5581
|
+
/** @description User details for membership customers. */
|
|
5582
|
+
user?: {
|
|
5583
|
+
/** @description User bio. */
|
|
5584
|
+
about?: string | null;
|
|
5585
|
+
/** @description User email address. */
|
|
5586
|
+
email?: string | null;
|
|
5587
|
+
/**
|
|
5588
|
+
* Format: uuid
|
|
5589
|
+
* @description User ID.
|
|
5590
|
+
*/
|
|
5591
|
+
id: string;
|
|
5592
|
+
/** @description First name. */
|
|
5593
|
+
name?: string | null;
|
|
5594
|
+
/** @description Phone number. */
|
|
5595
|
+
phoneNumber?: string | null;
|
|
5596
|
+
/** @description Profile photo URL. */
|
|
5597
|
+
photoUrl?: string | null;
|
|
5598
|
+
/** @description Last name. */
|
|
5599
|
+
surname?: string | null;
|
|
5600
|
+
};
|
|
5601
|
+
};
|
|
5482
5602
|
/**
|
|
5483
5603
|
* Format: date-time
|
|
5484
5604
|
* @description ISO timestamp of when the item was deleted.
|
|
@@ -6711,7 +6831,10 @@ interface components {
|
|
|
6711
6831
|
locationRef?: string;
|
|
6712
6832
|
metadata?: components["schemas"]["metadata"];
|
|
6713
6833
|
notes?: string;
|
|
6714
|
-
/**
|
|
6834
|
+
/**
|
|
6835
|
+
* @description Whether the user administers the membership's location. It's read-only, as administrators are managed on the Administrators page.
|
|
6836
|
+
* @enum {string}
|
|
6837
|
+
*/
|
|
6715
6838
|
role?: "member" | "admin";
|
|
6716
6839
|
/** @enum {string} */
|
|
6717
6840
|
status?: "requested" | "approved";
|
|
@@ -8686,6 +8809,50 @@ interface components {
|
|
|
8686
8809
|
visibility: "public" | "admins" | "members" | "networkMembers";
|
|
8687
8810
|
};
|
|
8688
8811
|
};
|
|
8812
|
+
createGuideAttachment: {
|
|
8813
|
+
/** @description The created attachment upload. */
|
|
8814
|
+
attachment: {
|
|
8815
|
+
/** @description Storage key of the file. Pass it in attachments[].key when creating or updating a guide. */
|
|
8816
|
+
key: string;
|
|
8817
|
+
/** @description MIME type of the file. */
|
|
8818
|
+
mimeType: string;
|
|
8819
|
+
/** @description File name shown with the guide. */
|
|
8820
|
+
name: string;
|
|
8821
|
+
/** @description Size of the file in bytes. */
|
|
8822
|
+
size: number;
|
|
8823
|
+
/**
|
|
8824
|
+
* @description Upload status. pending: the file has not been received yet; attach it once the PUT request succeeds.
|
|
8825
|
+
* @enum {string}
|
|
8826
|
+
*/
|
|
8827
|
+
status: "pending";
|
|
8828
|
+
/** @description How to upload the file. Send the raw bytes as the request body, not a multipart form. */
|
|
8829
|
+
upload: {
|
|
8830
|
+
/**
|
|
8831
|
+
* Format: date-time
|
|
8832
|
+
* @description ISO timestamp after which the upload URL is rejected.
|
|
8833
|
+
*/
|
|
8834
|
+
expirationDate: string;
|
|
8835
|
+
/** @description Headers the PUT request must send exactly as given; the signature covers them. */
|
|
8836
|
+
headers: {
|
|
8837
|
+
/** @description Makes browsers download the file rather than open it. */
|
|
8838
|
+
"Content-Disposition": string;
|
|
8839
|
+
/** @description Must equal the size declared when the upload was created. */
|
|
8840
|
+
"Content-Length": string;
|
|
8841
|
+
/** @description Must equal the mimeType declared when the upload was created. */
|
|
8842
|
+
"Content-Type": string;
|
|
8843
|
+
};
|
|
8844
|
+
/**
|
|
8845
|
+
* @description HTTP method of the upload request.
|
|
8846
|
+
* @enum {string}
|
|
8847
|
+
*/
|
|
8848
|
+
method: "PUT";
|
|
8849
|
+
/** @description Presigned URL to send the raw file bytes to. */
|
|
8850
|
+
url: string;
|
|
8851
|
+
};
|
|
8852
|
+
/** @description Public URL the file is served from once uploaded. */
|
|
8853
|
+
url: string;
|
|
8854
|
+
};
|
|
8855
|
+
};
|
|
8689
8856
|
createGuideMedia: {
|
|
8690
8857
|
/** @description The created media upload. */
|
|
8691
8858
|
media: {
|
|
@@ -16995,6 +17162,48 @@ interface components {
|
|
|
16995
17162
|
*/
|
|
16996
17163
|
updateDate?: string;
|
|
16997
17164
|
};
|
|
17165
|
+
createSupportTicketMedia: {
|
|
17166
|
+
/** @description The created media upload. */
|
|
17167
|
+
media: {
|
|
17168
|
+
/** @description Storage key of the file. Pass it as activity.attachments[0].key when creating a ticket comment. */
|
|
17169
|
+
key: string;
|
|
17170
|
+
/** @description MIME type of the file. */
|
|
17171
|
+
mimeType: string;
|
|
17172
|
+
/** @description File name shown with the comment. */
|
|
17173
|
+
name: string;
|
|
17174
|
+
/** @description Size of the file in bytes. */
|
|
17175
|
+
size: number;
|
|
17176
|
+
/**
|
|
17177
|
+
* @description Upload status. pending: the file has not been received yet; attach it once the PUT request succeeds.
|
|
17178
|
+
* @enum {string}
|
|
17179
|
+
*/
|
|
17180
|
+
status: "pending";
|
|
17181
|
+
/** @description How to upload the file. Send the raw bytes as the request body, not a multipart form. */
|
|
17182
|
+
upload: {
|
|
17183
|
+
/**
|
|
17184
|
+
* Format: date-time
|
|
17185
|
+
* @description ISO timestamp after which the upload URL is rejected.
|
|
17186
|
+
*/
|
|
17187
|
+
expirationDate: string;
|
|
17188
|
+
/** @description Headers the PUT request must send exactly as given; the signature covers them. */
|
|
17189
|
+
headers: {
|
|
17190
|
+
/** @description Must equal the size declared when the upload was created. */
|
|
17191
|
+
"Content-Length": string;
|
|
17192
|
+
/** @description Must equal the mimeType declared when the upload was created. */
|
|
17193
|
+
"Content-Type": string;
|
|
17194
|
+
};
|
|
17195
|
+
/**
|
|
17196
|
+
* @description HTTP method of the upload request.
|
|
17197
|
+
* @enum {string}
|
|
17198
|
+
*/
|
|
17199
|
+
method: "PUT";
|
|
17200
|
+
/** @description Presigned URL to send the raw file bytes to. */
|
|
17201
|
+
url: string;
|
|
17202
|
+
};
|
|
17203
|
+
/** @description Public URL the file is served from once uploaded. */
|
|
17204
|
+
url: string;
|
|
17205
|
+
};
|
|
17206
|
+
};
|
|
16998
17207
|
getScheduledCreditsTransactions: {
|
|
16999
17208
|
/** @description Pagination token to fetch the next page of results. Returned when more results exist. */
|
|
17000
17209
|
nextPageToken?: string;
|
|
@@ -22747,8 +22956,6 @@ interface components {
|
|
|
22747
22956
|
legalName?: string;
|
|
22748
22957
|
/** @description The tax id of the membership to create. */
|
|
22749
22958
|
taxId?: string;
|
|
22750
|
-
/** @enum {string} */
|
|
22751
|
-
role: "admin" | "member";
|
|
22752
22959
|
metadata?: components["schemas"]["metadata"];
|
|
22753
22960
|
notes?: string;
|
|
22754
22961
|
/**
|
|
@@ -23503,7 +23710,7 @@ interface components {
|
|
|
23503
23710
|
* @enum {string}
|
|
23504
23711
|
*/
|
|
23505
23712
|
visibility: "public" | "admins" | "members" | "networkMembers";
|
|
23506
|
-
/** @description
|
|
23713
|
+
/** @description Keys of attachment uploads whose files have been uploaded. A key the guide cannot attach, such as an unknown, expired or already attached one, fails the request. */
|
|
23507
23714
|
attachments?: {
|
|
23508
23715
|
key: string;
|
|
23509
23716
|
}[];
|
|
@@ -23525,7 +23732,7 @@ interface components {
|
|
|
23525
23732
|
* @enum {string}
|
|
23526
23733
|
*/
|
|
23527
23734
|
visibility?: "public" | "admins" | "members" | "networkMembers";
|
|
23528
|
-
/** @description
|
|
23735
|
+
/** @description Keys of attachment uploads whose files have been uploaded. A key the guide cannot attach, such as an unknown, expired or already attached one, fails the request. */
|
|
23529
23736
|
attachments?: {
|
|
23530
23737
|
key: string;
|
|
23531
23738
|
}[];
|
|
@@ -23533,6 +23740,21 @@ interface components {
|
|
|
23533
23740
|
};
|
|
23534
23741
|
};
|
|
23535
23742
|
};
|
|
23743
|
+
createGuideAttachment: {
|
|
23744
|
+
content: {
|
|
23745
|
+
"application/json": {
|
|
23746
|
+
/** @description File to upload. */
|
|
23747
|
+
attachment: {
|
|
23748
|
+
/** @description MIME type of the file to upload. */
|
|
23749
|
+
mimeType: string;
|
|
23750
|
+
/** @description File name shown with the guide and used when the file is downloaded. Defaults to the storage key. */
|
|
23751
|
+
name?: string;
|
|
23752
|
+
/** @description Size of the file in bytes. The upload is rejected when the body length differs. */
|
|
23753
|
+
size: number;
|
|
23754
|
+
};
|
|
23755
|
+
};
|
|
23756
|
+
};
|
|
23757
|
+
};
|
|
23536
23758
|
createGuideMedia: {
|
|
23537
23759
|
content: {
|
|
23538
23760
|
"application/json": {
|
|
@@ -24875,7 +25097,7 @@ interface components {
|
|
|
24875
25097
|
recurrence?: string[];
|
|
24876
25098
|
/**
|
|
24877
25099
|
* Format: uuid
|
|
24878
|
-
* @description ID of the resource to move the booking to. The target must belong to the same location, be of an interchangeable type, and
|
|
25100
|
+
* @description ID of the resource to move the booking to. The target must belong to the same location, be of an interchangeable type, and accept the booking's payment method. A booking paid by card or externally can't move to a resource with a lower price, and a move to a pricier one charges the difference as a separate transaction. Not supported for repeating bookings.
|
|
24879
25101
|
*/
|
|
24880
25102
|
resourceRef?: string;
|
|
24881
25103
|
/** @description Number of seats to reserve. Supported for desk and office resources. */
|
|
@@ -26030,7 +26252,7 @@ interface components {
|
|
|
26030
26252
|
activity: {
|
|
26031
26253
|
/** @description Attachments to include with the comment. At most one is allowed. */
|
|
26032
26254
|
attachments?: {
|
|
26033
|
-
/** @description
|
|
26255
|
+
/** @description Key of a media upload whose file has been uploaded. */
|
|
26034
26256
|
key: string;
|
|
26035
26257
|
}[];
|
|
26036
26258
|
/** @description Comment text. Either text or attachments must be provided. */
|
|
@@ -26055,6 +26277,25 @@ interface components {
|
|
|
26055
26277
|
};
|
|
26056
26278
|
};
|
|
26057
26279
|
};
|
|
26280
|
+
createSupportTicketMedia: {
|
|
26281
|
+
content: {
|
|
26282
|
+
"application/json": {
|
|
26283
|
+
/** @description File to upload. */
|
|
26284
|
+
media: {
|
|
26285
|
+
/** @description Height of a video in pixels, which apps use to lay it out before it loads. An image's dimensions are read from the uploaded file, so this is ignored for an image. */
|
|
26286
|
+
height?: number;
|
|
26287
|
+
/** @description MIME type of the file to upload. */
|
|
26288
|
+
mimeType: string;
|
|
26289
|
+
/** @description File name shown with the comment. Defaults to the storage key. */
|
|
26290
|
+
name?: string;
|
|
26291
|
+
/** @description Size of the file in bytes. The upload is rejected when the body length differs. */
|
|
26292
|
+
size: number;
|
|
26293
|
+
/** @description Width of a video in pixels, which apps use to lay it out before it loads. An image's dimensions are read from the uploaded file, so this is ignored for an image. */
|
|
26294
|
+
width?: number;
|
|
26295
|
+
};
|
|
26296
|
+
};
|
|
26297
|
+
};
|
|
26298
|
+
};
|
|
26058
26299
|
createCreditsTransaction: {
|
|
26059
26300
|
content: {
|
|
26060
26301
|
"application/json": {
|
|
@@ -28622,8 +28863,6 @@ interface operations {
|
|
|
28622
28863
|
};
|
|
28623
28864
|
legalName?: string;
|
|
28624
28865
|
metadata?: components["schemas"]["metadata"];
|
|
28625
|
-
/** @enum {string} */
|
|
28626
|
-
role?: "admin" | "member";
|
|
28627
28866
|
taxId?: string;
|
|
28628
28867
|
};
|
|
28629
28868
|
};
|
|
@@ -31130,6 +31369,38 @@ interface operations {
|
|
|
31130
31369
|
};
|
|
31131
31370
|
};
|
|
31132
31371
|
};
|
|
31372
|
+
createGuideAttachment: {
|
|
31373
|
+
parameters: {
|
|
31374
|
+
query?: never;
|
|
31375
|
+
header?: {
|
|
31376
|
+
/** @description The id of the network. Required when using bearer token authentication */
|
|
31377
|
+
"spacebring-network-id"?: string;
|
|
31378
|
+
};
|
|
31379
|
+
path?: never;
|
|
31380
|
+
cookie?: never;
|
|
31381
|
+
};
|
|
31382
|
+
requestBody: components["requestBodies"]["createGuideAttachment"];
|
|
31383
|
+
responses: {
|
|
31384
|
+
/** @description Created */
|
|
31385
|
+
201: {
|
|
31386
|
+
headers: {
|
|
31387
|
+
[name: string]: unknown;
|
|
31388
|
+
};
|
|
31389
|
+
content: {
|
|
31390
|
+
"application/json": components["schemas"]["createGuideAttachment"];
|
|
31391
|
+
};
|
|
31392
|
+
};
|
|
31393
|
+
/** @description Bad Request */
|
|
31394
|
+
400: {
|
|
31395
|
+
headers: {
|
|
31396
|
+
[name: string]: unknown;
|
|
31397
|
+
};
|
|
31398
|
+
content: {
|
|
31399
|
+
"application/json": components["schemas"]["responseError"];
|
|
31400
|
+
};
|
|
31401
|
+
};
|
|
31402
|
+
};
|
|
31403
|
+
};
|
|
31133
31404
|
createGuideMedia: {
|
|
31134
31405
|
parameters: {
|
|
31135
31406
|
query?: never;
|
|
@@ -33294,6 +33565,15 @@ interface operations {
|
|
|
33294
33565
|
"application/json": components["schemas"]["responseError"];
|
|
33295
33566
|
};
|
|
33296
33567
|
};
|
|
33568
|
+
/** @description Conflict */
|
|
33569
|
+
409: {
|
|
33570
|
+
headers: {
|
|
33571
|
+
[name: string]: unknown;
|
|
33572
|
+
};
|
|
33573
|
+
content: {
|
|
33574
|
+
"application/json": components["schemas"]["responseError"];
|
|
33575
|
+
};
|
|
33576
|
+
};
|
|
33297
33577
|
};
|
|
33298
33578
|
};
|
|
33299
33579
|
deleteSupportTicketComment: {
|
|
@@ -33366,6 +33646,38 @@ interface operations {
|
|
|
33366
33646
|
};
|
|
33367
33647
|
};
|
|
33368
33648
|
};
|
|
33649
|
+
createSupportTicketMedia: {
|
|
33650
|
+
parameters: {
|
|
33651
|
+
query?: never;
|
|
33652
|
+
header?: {
|
|
33653
|
+
/** @description The id of the network. Required when using bearer token authentication */
|
|
33654
|
+
"spacebring-network-id"?: string;
|
|
33655
|
+
};
|
|
33656
|
+
path?: never;
|
|
33657
|
+
cookie?: never;
|
|
33658
|
+
};
|
|
33659
|
+
requestBody: components["requestBodies"]["createSupportTicketMedia"];
|
|
33660
|
+
responses: {
|
|
33661
|
+
/** @description Created */
|
|
33662
|
+
201: {
|
|
33663
|
+
headers: {
|
|
33664
|
+
[name: string]: unknown;
|
|
33665
|
+
};
|
|
33666
|
+
content: {
|
|
33667
|
+
"application/json": components["schemas"]["createSupportTicketMedia"];
|
|
33668
|
+
};
|
|
33669
|
+
};
|
|
33670
|
+
/** @description Bad Request */
|
|
33671
|
+
400: {
|
|
33672
|
+
headers: {
|
|
33673
|
+
[name: string]: unknown;
|
|
33674
|
+
};
|
|
33675
|
+
content: {
|
|
33676
|
+
"application/json": components["schemas"]["responseError"];
|
|
33677
|
+
};
|
|
33678
|
+
};
|
|
33679
|
+
};
|
|
33680
|
+
};
|
|
33369
33681
|
getScheduledCreditsTransactions: {
|
|
33370
33682
|
parameters: {
|
|
33371
33683
|
query?: {
|
|
@@ -34730,6 +35042,8 @@ type RefundMoneyTransactionBody = NonNullable<NonNullable<operations["refundMone
|
|
|
34730
35042
|
type Activity = NonNullable<components["schemas"]["ticketActivity"]>;
|
|
34731
35043
|
/** A SupportTicket entity as returned by the Spacebring API. */
|
|
34732
35044
|
type SupportTicket = NonNullable<components["schemas"]["ticket"]>;
|
|
35045
|
+
/** A TicketMedia entity as returned by the Spacebring API. */
|
|
35046
|
+
type TicketMedia = NonNullable<operations["createSupportTicketMedia"]["responses"][201]["content"]["application/json"]["media"]>;
|
|
34733
35047
|
/** Query parameters for `sb.support.tickets.list()`. */
|
|
34734
35048
|
interface GetSupportTicketsQuery {
|
|
34735
35049
|
/** The id of the location. */
|
|
@@ -34749,6 +35063,8 @@ interface GetSupportTicketsQuery {
|
|
|
34749
35063
|
type CreateSupportTicketBody = NonNullable<NonNullable<operations["createSupportTicket"]["requestBody"]>["content"]["application/json"]["ticket"]>;
|
|
34750
35064
|
/** Request body for `sb.support.tickets.comment.create()`. */
|
|
34751
35065
|
type CreateSupportTicketCommentBody = NonNullable<NonNullable<operations["createSupportTicketComment"]["requestBody"]>["content"]["application/json"]["activity"]>;
|
|
35066
|
+
/** Request body for `sb.support.tickets.createMedia()`. */
|
|
35067
|
+
type CreateSupportTicketMediaBody = NonNullable<NonNullable<operations["createSupportTicketMedia"]["requestBody"]>["content"]["application/json"]["media"]>;
|
|
34752
35068
|
/** Request body for `sb.support.tickets.updateAssignee()`. */
|
|
34753
35069
|
type UpdateSupportTicketAssigneeBody = NonNullable<NonNullable<operations["updateSupportTicketAssignee"]["requestBody"]>["content"]["application/json"]["ticket"]>;
|
|
34754
35070
|
/** Request body for `sb.support.tickets.comment.update()`. */
|
|
@@ -35017,6 +35333,8 @@ type Network = NonNullable<components["schemas"]["network"]>;
|
|
|
35017
35333
|
/** A Location entity as returned by the Spacebring API. */
|
|
35018
35334
|
type Location = NonNullable<components["schemas"]["location"]>;
|
|
35019
35335
|
|
|
35336
|
+
/** A Attachment entity as returned by the Spacebring API. */
|
|
35337
|
+
type Attachment = NonNullable<operations["createGuideAttachment"]["responses"][201]["content"]["application/json"]["attachment"]>;
|
|
35020
35338
|
/** A Guide entity as returned by the Spacebring API. */
|
|
35021
35339
|
type Guide = NonNullable<components["schemas"]["guide"]>;
|
|
35022
35340
|
/** A GuideMedia entity as returned by the Spacebring API. */
|
|
@@ -35030,6 +35348,8 @@ interface GetGuidesQuery {
|
|
|
35030
35348
|
/** Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
|
|
35031
35349
|
nextPageToken?: string;
|
|
35032
35350
|
}
|
|
35351
|
+
/** Request body for `sb.guides.createAttachment()`. */
|
|
35352
|
+
type CreateGuideAttachmentBody = NonNullable<NonNullable<operations["createGuideAttachment"]["requestBody"]>["content"]["application/json"]["attachment"]>;
|
|
35033
35353
|
/** Request body for `sb.guides.create()`. */
|
|
35034
35354
|
type CreateGuideBody = NonNullable<NonNullable<operations["createGuide"]["requestBody"]>["content"]["application/json"]["guide"]>;
|
|
35035
35355
|
/** Request body for `sb.guides.createMedia()`. */
|
|
@@ -35773,6 +36093,7 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
35773
36093
|
create(guide: CreateGuideBody, options?: SpacebringRequestOptions): Promise<Guide>;
|
|
35774
36094
|
update(guideId: string, guide: PatchGuideBody, options?: SpacebringRequestOptions): Promise<Guide>;
|
|
35775
36095
|
delete(guideId: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
36096
|
+
createAttachment(attachment: CreateGuideAttachmentBody, options?: SpacebringRequestOptions): Promise<Attachment>;
|
|
35776
36097
|
createMedia(media: CreateGuideMediaBody, options?: SpacebringRequestOptions): Promise<GuideMedia>;
|
|
35777
36098
|
};
|
|
35778
36099
|
locations: {
|
|
@@ -35910,6 +36231,7 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
35910
36231
|
activities?: Activity[];
|
|
35911
36232
|
ticket?: SupportTicket;
|
|
35912
36233
|
}>;
|
|
36234
|
+
createMedia(media: CreateSupportTicketMediaBody, options?: SpacebringRequestOptions): Promise<TicketMedia>;
|
|
35913
36235
|
updateAssignee(id: string, ticket: UpdateSupportTicketAssigneeBody, options?: SpacebringRequestOptions): Promise<{
|
|
35914
36236
|
activity?: Activity;
|
|
35915
36237
|
ticket?: SupportTicket;
|
|
@@ -36078,4 +36400,4 @@ declare class SpacebringError extends Error {
|
|
|
36078
36400
|
});
|
|
36079
36401
|
}
|
|
36080
36402
|
|
|
36081
|
-
export { type Activity, type AddEventHostsBody, type AltCurrency, type Application, type ApplyBenefitBody, type Assignment, type Balance, type Benefit, type BenefitCategory, type BenefitMedia, type Booking, type CheckIn, type CheckInBody, type CheckInVisitBody, type CheckOutBody, type CheckOutVisitBody, type Comment, type Company, type CompanyMedia, type Contact, type Contract, type Coupon, type CreateAltCurrencyBody, type CreateAssignmentBody, type CreateBenefitBody, type CreateBenefitCategoryBody, type CreateBenefitMediaBody, type CreateBookingBody, type CreateCompanyBody, type CreateCompanyMediaBody, type CreateContactBody, type CreateContractBody, type CreateCouponBody, type CreateCreditNoteBody, type CreateCreditsTransactionBody, type CreateDayPassesTransactionBody, type CreateEventBody, type CreateEventMediaBody, type CreateFeedPostBody, type CreateFeedPostCommentBody, type CreateFeedPostMediaBody, type CreateGuideBody, type CreateGuideMediaBody, type CreateInvoiceBody, type CreateInvoiceItemBody, type CreateMembershipBody, type CreateMoneyTransactionBody, type CreatePackageBody, type CreatePlanBody, type CreateProductBody, type CreateProductMediaBody, type CreatePromocodeBody, type CreateRequestBody, type CreateResourceBody, type CreateResourceMediaBody, type CreateShopCategoryBody, type CreateSubscriptionBody, type CreateSubscriptionItemBody, type CreateSupportTicketBody, type CreateSupportTicketCommentBody, type CreateTemplateBody, type CreateTemplateMediaBody, type CreateVisitBody, type CreditNote, type CreditScheduledTransaction, type CreditTransaction, type DayPassScheduledTransaction, type DayPassTransaction, type Event, type EventMedia, type EventTicket, type FeedMedia, type GetAltCurrenciesQuery, type GetAssignmentsQuery, type GetBenefitApplicationsQuery, type GetBenefitCategoriesQuery, type GetBenefitsQuery, type GetBookingsQuery, type GetCheckInsQuery, 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 GuideMedia, 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 ProductMedia, type Promocode, type Redemption, type Refund, type RefundMoneyTransactionBody, type Registration, type Request$1 as Request, type Resource, type ResourceMedia, type ShopCategory, Spacebring, type SpacebringConfig, SpacebringError, type SpacebringErrorBody, type SpacebringRequestOptions, type SpacebringResources, type Subscription, type SupportTicket, type Template, type TemplateMedia, 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 };
|
|
36403
|
+
export { type Activity, type AddEventHostsBody, type AltCurrency, type Application, type ApplyBenefitBody, type Assignment, type Attachment, type Balance, type Benefit, type BenefitCategory, type BenefitMedia, type Booking, type CheckIn, type CheckInBody, type CheckInVisitBody, type CheckOutBody, type CheckOutVisitBody, type Comment, type Company, type CompanyMedia, type Contact, type Contract, type Coupon, type CreateAltCurrencyBody, type CreateAssignmentBody, type CreateBenefitBody, type CreateBenefitCategoryBody, type CreateBenefitMediaBody, type CreateBookingBody, type CreateCompanyBody, type CreateCompanyMediaBody, type CreateContactBody, type CreateContractBody, type CreateCouponBody, type CreateCreditNoteBody, type CreateCreditsTransactionBody, type CreateDayPassesTransactionBody, type CreateEventBody, type CreateEventMediaBody, type CreateFeedPostBody, type CreateFeedPostCommentBody, type CreateFeedPostMediaBody, type CreateGuideAttachmentBody, type CreateGuideBody, type CreateGuideMediaBody, type CreateInvoiceBody, type CreateInvoiceItemBody, type CreateMembershipBody, type CreateMoneyTransactionBody, type CreatePackageBody, type CreatePlanBody, type CreateProductBody, type CreateProductMediaBody, type CreatePromocodeBody, type CreateRequestBody, type CreateResourceBody, type CreateResourceMediaBody, type CreateShopCategoryBody, type CreateSubscriptionBody, type CreateSubscriptionItemBody, type CreateSupportTicketBody, type CreateSupportTicketCommentBody, type CreateSupportTicketMediaBody, type CreateTemplateBody, type CreateTemplateMediaBody, type CreateVisitBody, type CreditNote, type CreditScheduledTransaction, type CreditTransaction, type DayPassScheduledTransaction, type DayPassTransaction, type Event, type EventMedia, type EventTicket, type FeedMedia, type GetAltCurrenciesQuery, type GetAssignmentsQuery, type GetBenefitApplicationsQuery, type GetBenefitCategoriesQuery, type GetBenefitsQuery, type GetBookingsQuery, type GetCheckInsQuery, 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 GuideMedia, 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 ProductMedia, type Promocode, type Redemption, type Refund, type RefundMoneyTransactionBody, type Registration, type Request$1 as Request, type Resource, type ResourceMedia, type ShopCategory, Spacebring, type SpacebringConfig, SpacebringError, type SpacebringErrorBody, type SpacebringRequestOptions, type SpacebringResources, type Subscription, type SupportTicket, type Template, type TemplateMedia, type TerminateContractBody, type TicketMedia, 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 };
|