@izak0s/spacebring-api 10.3.0 → 10.4.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 +248 -5
- package/dist/index.d.ts +248 -5
- package/dist/index.js +17 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
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;
|
|
@@ -8686,6 +8726,50 @@ interface components {
|
|
|
8686
8726
|
visibility: "public" | "admins" | "members" | "networkMembers";
|
|
8687
8727
|
};
|
|
8688
8728
|
};
|
|
8729
|
+
createGuideAttachment: {
|
|
8730
|
+
/** @description The created attachment upload. */
|
|
8731
|
+
attachment: {
|
|
8732
|
+
/** @description Storage key of the file. Pass it in attachments[].key when creating or updating a guide. */
|
|
8733
|
+
key: string;
|
|
8734
|
+
/** @description MIME type of the file. */
|
|
8735
|
+
mimeType: string;
|
|
8736
|
+
/** @description File name shown with the guide. */
|
|
8737
|
+
name: string;
|
|
8738
|
+
/** @description Size of the file in bytes. */
|
|
8739
|
+
size: number;
|
|
8740
|
+
/**
|
|
8741
|
+
* @description Upload status. pending: the file has not been received yet; attach it once the PUT request succeeds.
|
|
8742
|
+
* @enum {string}
|
|
8743
|
+
*/
|
|
8744
|
+
status: "pending";
|
|
8745
|
+
/** @description How to upload the file. Send the raw bytes as the request body, not a multipart form. */
|
|
8746
|
+
upload: {
|
|
8747
|
+
/**
|
|
8748
|
+
* Format: date-time
|
|
8749
|
+
* @description ISO timestamp after which the upload URL is rejected.
|
|
8750
|
+
*/
|
|
8751
|
+
expirationDate: string;
|
|
8752
|
+
/** @description Headers the PUT request must send exactly as given; the signature covers them. */
|
|
8753
|
+
headers: {
|
|
8754
|
+
/** @description Makes browsers download the file rather than open it. */
|
|
8755
|
+
"Content-Disposition": string;
|
|
8756
|
+
/** @description Must equal the size declared when the upload was created. */
|
|
8757
|
+
"Content-Length": string;
|
|
8758
|
+
/** @description Must equal the mimeType declared when the upload was created. */
|
|
8759
|
+
"Content-Type": string;
|
|
8760
|
+
};
|
|
8761
|
+
/**
|
|
8762
|
+
* @description HTTP method of the upload request.
|
|
8763
|
+
* @enum {string}
|
|
8764
|
+
*/
|
|
8765
|
+
method: "PUT";
|
|
8766
|
+
/** @description Presigned URL to send the raw file bytes to. */
|
|
8767
|
+
url: string;
|
|
8768
|
+
};
|
|
8769
|
+
/** @description Public URL the file is served from once uploaded. */
|
|
8770
|
+
url: string;
|
|
8771
|
+
};
|
|
8772
|
+
};
|
|
8689
8773
|
createGuideMedia: {
|
|
8690
8774
|
/** @description The created media upload. */
|
|
8691
8775
|
media: {
|
|
@@ -16995,6 +17079,48 @@ interface components {
|
|
|
16995
17079
|
*/
|
|
16996
17080
|
updateDate?: string;
|
|
16997
17081
|
};
|
|
17082
|
+
createSupportTicketMedia: {
|
|
17083
|
+
/** @description The created media upload. */
|
|
17084
|
+
media: {
|
|
17085
|
+
/** @description Storage key of the file. Pass it as activity.attachments[0].key when creating a ticket comment. */
|
|
17086
|
+
key: string;
|
|
17087
|
+
/** @description MIME type of the file. */
|
|
17088
|
+
mimeType: string;
|
|
17089
|
+
/** @description File name shown with the comment. */
|
|
17090
|
+
name: string;
|
|
17091
|
+
/** @description Size of the file in bytes. */
|
|
17092
|
+
size: number;
|
|
17093
|
+
/**
|
|
17094
|
+
* @description Upload status. pending: the file has not been received yet; attach it once the PUT request succeeds.
|
|
17095
|
+
* @enum {string}
|
|
17096
|
+
*/
|
|
17097
|
+
status: "pending";
|
|
17098
|
+
/** @description How to upload the file. Send the raw bytes as the request body, not a multipart form. */
|
|
17099
|
+
upload: {
|
|
17100
|
+
/**
|
|
17101
|
+
* Format: date-time
|
|
17102
|
+
* @description ISO timestamp after which the upload URL is rejected.
|
|
17103
|
+
*/
|
|
17104
|
+
expirationDate: string;
|
|
17105
|
+
/** @description Headers the PUT request must send exactly as given; the signature covers them. */
|
|
17106
|
+
headers: {
|
|
17107
|
+
/** @description Must equal the size declared when the upload was created. */
|
|
17108
|
+
"Content-Length": string;
|
|
17109
|
+
/** @description Must equal the mimeType declared when the upload was created. */
|
|
17110
|
+
"Content-Type": string;
|
|
17111
|
+
};
|
|
17112
|
+
/**
|
|
17113
|
+
* @description HTTP method of the upload request.
|
|
17114
|
+
* @enum {string}
|
|
17115
|
+
*/
|
|
17116
|
+
method: "PUT";
|
|
17117
|
+
/** @description Presigned URL to send the raw file bytes to. */
|
|
17118
|
+
url: string;
|
|
17119
|
+
};
|
|
17120
|
+
/** @description Public URL the file is served from once uploaded. */
|
|
17121
|
+
url: string;
|
|
17122
|
+
};
|
|
17123
|
+
};
|
|
16998
17124
|
getScheduledCreditsTransactions: {
|
|
16999
17125
|
/** @description Pagination token to fetch the next page of results. Returned when more results exist. */
|
|
17000
17126
|
nextPageToken?: string;
|
|
@@ -23503,7 +23629,7 @@ interface components {
|
|
|
23503
23629
|
* @enum {string}
|
|
23504
23630
|
*/
|
|
23505
23631
|
visibility: "public" | "admins" | "members" | "networkMembers";
|
|
23506
|
-
/** @description
|
|
23632
|
+
/** @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
23633
|
attachments?: {
|
|
23508
23634
|
key: string;
|
|
23509
23635
|
}[];
|
|
@@ -23525,7 +23651,7 @@ interface components {
|
|
|
23525
23651
|
* @enum {string}
|
|
23526
23652
|
*/
|
|
23527
23653
|
visibility?: "public" | "admins" | "members" | "networkMembers";
|
|
23528
|
-
/** @description
|
|
23654
|
+
/** @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
23655
|
attachments?: {
|
|
23530
23656
|
key: string;
|
|
23531
23657
|
}[];
|
|
@@ -23533,6 +23659,21 @@ interface components {
|
|
|
23533
23659
|
};
|
|
23534
23660
|
};
|
|
23535
23661
|
};
|
|
23662
|
+
createGuideAttachment: {
|
|
23663
|
+
content: {
|
|
23664
|
+
"application/json": {
|
|
23665
|
+
/** @description File to upload. */
|
|
23666
|
+
attachment: {
|
|
23667
|
+
/** @description MIME type of the file to upload. */
|
|
23668
|
+
mimeType: string;
|
|
23669
|
+
/** @description File name shown with the guide and used when the file is downloaded. Defaults to the storage key. */
|
|
23670
|
+
name?: string;
|
|
23671
|
+
/** @description Size of the file in bytes. The upload is rejected when the body length differs. */
|
|
23672
|
+
size: number;
|
|
23673
|
+
};
|
|
23674
|
+
};
|
|
23675
|
+
};
|
|
23676
|
+
};
|
|
23536
23677
|
createGuideMedia: {
|
|
23537
23678
|
content: {
|
|
23538
23679
|
"application/json": {
|
|
@@ -26030,7 +26171,7 @@ interface components {
|
|
|
26030
26171
|
activity: {
|
|
26031
26172
|
/** @description Attachments to include with the comment. At most one is allowed. */
|
|
26032
26173
|
attachments?: {
|
|
26033
|
-
/** @description
|
|
26174
|
+
/** @description Key of a media upload whose file has been uploaded. */
|
|
26034
26175
|
key: string;
|
|
26035
26176
|
}[];
|
|
26036
26177
|
/** @description Comment text. Either text or attachments must be provided. */
|
|
@@ -26055,6 +26196,25 @@ interface components {
|
|
|
26055
26196
|
};
|
|
26056
26197
|
};
|
|
26057
26198
|
};
|
|
26199
|
+
createSupportTicketMedia: {
|
|
26200
|
+
content: {
|
|
26201
|
+
"application/json": {
|
|
26202
|
+
/** @description File to upload. */
|
|
26203
|
+
media: {
|
|
26204
|
+
/** @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. */
|
|
26205
|
+
height?: number;
|
|
26206
|
+
/** @description MIME type of the file to upload. */
|
|
26207
|
+
mimeType: string;
|
|
26208
|
+
/** @description File name shown with the comment. Defaults to the storage key. */
|
|
26209
|
+
name?: string;
|
|
26210
|
+
/** @description Size of the file in bytes. The upload is rejected when the body length differs. */
|
|
26211
|
+
size: number;
|
|
26212
|
+
/** @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. */
|
|
26213
|
+
width?: number;
|
|
26214
|
+
};
|
|
26215
|
+
};
|
|
26216
|
+
};
|
|
26217
|
+
};
|
|
26058
26218
|
createCreditsTransaction: {
|
|
26059
26219
|
content: {
|
|
26060
26220
|
"application/json": {
|
|
@@ -31130,6 +31290,38 @@ interface operations {
|
|
|
31130
31290
|
};
|
|
31131
31291
|
};
|
|
31132
31292
|
};
|
|
31293
|
+
createGuideAttachment: {
|
|
31294
|
+
parameters: {
|
|
31295
|
+
query?: never;
|
|
31296
|
+
header?: {
|
|
31297
|
+
/** @description The id of the network. Required when using bearer token authentication */
|
|
31298
|
+
"spacebring-network-id"?: string;
|
|
31299
|
+
};
|
|
31300
|
+
path?: never;
|
|
31301
|
+
cookie?: never;
|
|
31302
|
+
};
|
|
31303
|
+
requestBody: components["requestBodies"]["createGuideAttachment"];
|
|
31304
|
+
responses: {
|
|
31305
|
+
/** @description Created */
|
|
31306
|
+
201: {
|
|
31307
|
+
headers: {
|
|
31308
|
+
[name: string]: unknown;
|
|
31309
|
+
};
|
|
31310
|
+
content: {
|
|
31311
|
+
"application/json": components["schemas"]["createGuideAttachment"];
|
|
31312
|
+
};
|
|
31313
|
+
};
|
|
31314
|
+
/** @description Bad Request */
|
|
31315
|
+
400: {
|
|
31316
|
+
headers: {
|
|
31317
|
+
[name: string]: unknown;
|
|
31318
|
+
};
|
|
31319
|
+
content: {
|
|
31320
|
+
"application/json": components["schemas"]["responseError"];
|
|
31321
|
+
};
|
|
31322
|
+
};
|
|
31323
|
+
};
|
|
31324
|
+
};
|
|
31133
31325
|
createGuideMedia: {
|
|
31134
31326
|
parameters: {
|
|
31135
31327
|
query?: never;
|
|
@@ -33294,6 +33486,15 @@ interface operations {
|
|
|
33294
33486
|
"application/json": components["schemas"]["responseError"];
|
|
33295
33487
|
};
|
|
33296
33488
|
};
|
|
33489
|
+
/** @description Conflict */
|
|
33490
|
+
409: {
|
|
33491
|
+
headers: {
|
|
33492
|
+
[name: string]: unknown;
|
|
33493
|
+
};
|
|
33494
|
+
content: {
|
|
33495
|
+
"application/json": components["schemas"]["responseError"];
|
|
33496
|
+
};
|
|
33497
|
+
};
|
|
33297
33498
|
};
|
|
33298
33499
|
};
|
|
33299
33500
|
deleteSupportTicketComment: {
|
|
@@ -33366,6 +33567,38 @@ interface operations {
|
|
|
33366
33567
|
};
|
|
33367
33568
|
};
|
|
33368
33569
|
};
|
|
33570
|
+
createSupportTicketMedia: {
|
|
33571
|
+
parameters: {
|
|
33572
|
+
query?: never;
|
|
33573
|
+
header?: {
|
|
33574
|
+
/** @description The id of the network. Required when using bearer token authentication */
|
|
33575
|
+
"spacebring-network-id"?: string;
|
|
33576
|
+
};
|
|
33577
|
+
path?: never;
|
|
33578
|
+
cookie?: never;
|
|
33579
|
+
};
|
|
33580
|
+
requestBody: components["requestBodies"]["createSupportTicketMedia"];
|
|
33581
|
+
responses: {
|
|
33582
|
+
/** @description Created */
|
|
33583
|
+
201: {
|
|
33584
|
+
headers: {
|
|
33585
|
+
[name: string]: unknown;
|
|
33586
|
+
};
|
|
33587
|
+
content: {
|
|
33588
|
+
"application/json": components["schemas"]["createSupportTicketMedia"];
|
|
33589
|
+
};
|
|
33590
|
+
};
|
|
33591
|
+
/** @description Bad Request */
|
|
33592
|
+
400: {
|
|
33593
|
+
headers: {
|
|
33594
|
+
[name: string]: unknown;
|
|
33595
|
+
};
|
|
33596
|
+
content: {
|
|
33597
|
+
"application/json": components["schemas"]["responseError"];
|
|
33598
|
+
};
|
|
33599
|
+
};
|
|
33600
|
+
};
|
|
33601
|
+
};
|
|
33369
33602
|
getScheduledCreditsTransactions: {
|
|
33370
33603
|
parameters: {
|
|
33371
33604
|
query?: {
|
|
@@ -34730,6 +34963,8 @@ type RefundMoneyTransactionBody = NonNullable<NonNullable<operations["refundMone
|
|
|
34730
34963
|
type Activity = NonNullable<components["schemas"]["ticketActivity"]>;
|
|
34731
34964
|
/** A SupportTicket entity as returned by the Spacebring API. */
|
|
34732
34965
|
type SupportTicket = NonNullable<components["schemas"]["ticket"]>;
|
|
34966
|
+
/** A TicketMedia entity as returned by the Spacebring API. */
|
|
34967
|
+
type TicketMedia = NonNullable<operations["createSupportTicketMedia"]["responses"][201]["content"]["application/json"]["media"]>;
|
|
34733
34968
|
/** Query parameters for `sb.support.tickets.list()`. */
|
|
34734
34969
|
interface GetSupportTicketsQuery {
|
|
34735
34970
|
/** The id of the location. */
|
|
@@ -34749,6 +34984,8 @@ interface GetSupportTicketsQuery {
|
|
|
34749
34984
|
type CreateSupportTicketBody = NonNullable<NonNullable<operations["createSupportTicket"]["requestBody"]>["content"]["application/json"]["ticket"]>;
|
|
34750
34985
|
/** Request body for `sb.support.tickets.comment.create()`. */
|
|
34751
34986
|
type CreateSupportTicketCommentBody = NonNullable<NonNullable<operations["createSupportTicketComment"]["requestBody"]>["content"]["application/json"]["activity"]>;
|
|
34987
|
+
/** Request body for `sb.support.tickets.createMedia()`. */
|
|
34988
|
+
type CreateSupportTicketMediaBody = NonNullable<NonNullable<operations["createSupportTicketMedia"]["requestBody"]>["content"]["application/json"]["media"]>;
|
|
34752
34989
|
/** Request body for `sb.support.tickets.updateAssignee()`. */
|
|
34753
34990
|
type UpdateSupportTicketAssigneeBody = NonNullable<NonNullable<operations["updateSupportTicketAssignee"]["requestBody"]>["content"]["application/json"]["ticket"]>;
|
|
34754
34991
|
/** Request body for `sb.support.tickets.comment.update()`. */
|
|
@@ -35017,6 +35254,8 @@ type Network = NonNullable<components["schemas"]["network"]>;
|
|
|
35017
35254
|
/** A Location entity as returned by the Spacebring API. */
|
|
35018
35255
|
type Location = NonNullable<components["schemas"]["location"]>;
|
|
35019
35256
|
|
|
35257
|
+
/** A Attachment entity as returned by the Spacebring API. */
|
|
35258
|
+
type Attachment = NonNullable<operations["createGuideAttachment"]["responses"][201]["content"]["application/json"]["attachment"]>;
|
|
35020
35259
|
/** A Guide entity as returned by the Spacebring API. */
|
|
35021
35260
|
type Guide = NonNullable<components["schemas"]["guide"]>;
|
|
35022
35261
|
/** A GuideMedia entity as returned by the Spacebring API. */
|
|
@@ -35030,6 +35269,8 @@ interface GetGuidesQuery {
|
|
|
35030
35269
|
/** Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
|
|
35031
35270
|
nextPageToken?: string;
|
|
35032
35271
|
}
|
|
35272
|
+
/** Request body for `sb.guides.createAttachment()`. */
|
|
35273
|
+
type CreateGuideAttachmentBody = NonNullable<NonNullable<operations["createGuideAttachment"]["requestBody"]>["content"]["application/json"]["attachment"]>;
|
|
35033
35274
|
/** Request body for `sb.guides.create()`. */
|
|
35034
35275
|
type CreateGuideBody = NonNullable<NonNullable<operations["createGuide"]["requestBody"]>["content"]["application/json"]["guide"]>;
|
|
35035
35276
|
/** Request body for `sb.guides.createMedia()`. */
|
|
@@ -35773,6 +36014,7 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
35773
36014
|
create(guide: CreateGuideBody, options?: SpacebringRequestOptions): Promise<Guide>;
|
|
35774
36015
|
update(guideId: string, guide: PatchGuideBody, options?: SpacebringRequestOptions): Promise<Guide>;
|
|
35775
36016
|
delete(guideId: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
36017
|
+
createAttachment(attachment: CreateGuideAttachmentBody, options?: SpacebringRequestOptions): Promise<Attachment>;
|
|
35776
36018
|
createMedia(media: CreateGuideMediaBody, options?: SpacebringRequestOptions): Promise<GuideMedia>;
|
|
35777
36019
|
};
|
|
35778
36020
|
locations: {
|
|
@@ -35910,6 +36152,7 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
35910
36152
|
activities?: Activity[];
|
|
35911
36153
|
ticket?: SupportTicket;
|
|
35912
36154
|
}>;
|
|
36155
|
+
createMedia(media: CreateSupportTicketMediaBody, options?: SpacebringRequestOptions): Promise<TicketMedia>;
|
|
35913
36156
|
updateAssignee(id: string, ticket: UpdateSupportTicketAssigneeBody, options?: SpacebringRequestOptions): Promise<{
|
|
35914
36157
|
activity?: Activity;
|
|
35915
36158
|
ticket?: SupportTicket;
|
|
@@ -36078,4 +36321,4 @@ declare class SpacebringError extends Error {
|
|
|
36078
36321
|
});
|
|
36079
36322
|
}
|
|
36080
36323
|
|
|
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 };
|
|
36324
|
+
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 };
|
package/dist/index.js
CHANGED
|
@@ -1884,6 +1884,14 @@ function createGuides(client, defaults) {
|
|
|
1884
1884
|
async delete(guideId, options) {
|
|
1885
1885
|
return unwrap(await client.DELETE("/guides/v1/{guideId}", { params: { path: { guideId } }, signal: options?.signal }), "DELETE /guides/v1/{guideId}");
|
|
1886
1886
|
},
|
|
1887
|
+
/**
|
|
1888
|
+
* Create an attachment upload
|
|
1889
|
+
*
|
|
1890
|
+
* 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 `attachments[].key` 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.
|
|
1891
|
+
*/
|
|
1892
|
+
async createAttachment(attachment, options) {
|
|
1893
|
+
return unwrapProp(await client.POST("/guides/v1/attachments", { body: { attachment }, signal: options?.signal }), "attachment", "POST /guides/v1/attachments");
|
|
1894
|
+
},
|
|
1887
1895
|
/**
|
|
1888
1896
|
* Create a media upload
|
|
1889
1897
|
*
|
|
@@ -2529,6 +2537,14 @@ function createSupport(client, defaults) {
|
|
|
2529
2537
|
async create(ticket, options) {
|
|
2530
2538
|
return unwrap(await client.POST("/support/tickets/v1", { body: { ticket }, signal: options?.signal }), "POST /support/tickets/v1");
|
|
2531
2539
|
},
|
|
2540
|
+
/**
|
|
2541
|
+
* Create a ticket media upload
|
|
2542
|
+
*
|
|
2543
|
+
* 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 `activity.attachments[0].key` when creating a ticket comment within 25 minutes; a file that is not attached by then is discarded.
|
|
2544
|
+
*/
|
|
2545
|
+
async createMedia(media, options) {
|
|
2546
|
+
return unwrapProp(await client.POST("/support/tickets/v1/media", { body: { media }, signal: options?.signal }), "media", "POST /support/tickets/v1/media");
|
|
2547
|
+
},
|
|
2532
2548
|
/**
|
|
2533
2549
|
* Update a ticket's assignee
|
|
2534
2550
|
*
|
|
@@ -2569,7 +2585,7 @@ function createSupport(client, defaults) {
|
|
|
2569
2585
|
/**
|
|
2570
2586
|
* Create a ticket comment
|
|
2571
2587
|
*
|
|
2572
|
-
* Create a support ticket comment.
|
|
2588
|
+
* Create a support ticket comment. To attach a file, create a media upload first, send the file, then pass its key as `activity.attachments[0].key`; a 409 response means the file has not been received yet, so retry shortly.
|
|
2573
2589
|
*/
|
|
2574
2590
|
async create(activity, options) {
|
|
2575
2591
|
return unwrapProp(await client.POST("/support/tickets/v1/comment", { body: { activity }, signal: options?.signal }), "activity", "POST /support/tickets/v1/comment");
|