@izak0s/spacebring-api 9.3.0 → 9.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 +12 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +80 -20
- package/dist/index.d.ts +80 -20
- package/dist/index.js +12 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -2481,7 +2481,11 @@ interface paths {
|
|
|
2481
2481
|
delete: operations["deleteSupportTicketComment"];
|
|
2482
2482
|
options?: never;
|
|
2483
2483
|
head?: never;
|
|
2484
|
-
|
|
2484
|
+
/**
|
|
2485
|
+
* Update a ticket comment
|
|
2486
|
+
* @description Update the text of a support ticket comment. Only the comment author can edit it, and only comments without an attachment. <h3>OAuth</h3>Required scopes: <code>support</code>
|
|
2487
|
+
*/
|
|
2488
|
+
patch: operations["updateSupportTicketComment"];
|
|
2485
2489
|
trace?: never;
|
|
2486
2490
|
};
|
|
2487
2491
|
"/transactions/credits/scheduled/v1": {
|
|
@@ -8098,13 +8102,13 @@ interface components {
|
|
|
8098
8102
|
* @deprecated
|
|
8099
8103
|
* @description Maximum credit grant duration in days. Deprecated: use grants instead.
|
|
8100
8104
|
*/
|
|
8101
|
-
duration?:
|
|
8105
|
+
duration?: number;
|
|
8102
8106
|
/** @description Grants included in the package. */
|
|
8103
8107
|
grants: {
|
|
8104
8108
|
/** @description Grant amount in major units for credits, or whole units for day passes. */
|
|
8105
8109
|
amount: number;
|
|
8106
|
-
/** @description
|
|
8107
|
-
duration?:
|
|
8110
|
+
/** @description Number of days after purchase until the granted balance expires, from 1 to 3650. Omit for a non-expiring grant. */
|
|
8111
|
+
duration?: number;
|
|
8108
8112
|
/**
|
|
8109
8113
|
* Format: uuid
|
|
8110
8114
|
* @description Unique identifier of the grant.
|
|
@@ -8160,13 +8164,13 @@ interface components {
|
|
|
8160
8164
|
* @deprecated
|
|
8161
8165
|
* @description Maximum credit grant duration in days. Deprecated: use grants instead.
|
|
8162
8166
|
*/
|
|
8163
|
-
duration?:
|
|
8167
|
+
duration?: number;
|
|
8164
8168
|
/** @description Grants included in the package. */
|
|
8165
8169
|
grants: {
|
|
8166
8170
|
/** @description Grant amount in major units for credits, or whole units for day passes. */
|
|
8167
8171
|
amount: number;
|
|
8168
|
-
/** @description
|
|
8169
|
-
duration?:
|
|
8172
|
+
/** @description Number of days after purchase until the granted balance expires, from 1 to 3650. Omit for a non-expiring grant. */
|
|
8173
|
+
duration?: number;
|
|
8170
8174
|
/**
|
|
8171
8175
|
* Format: uuid
|
|
8172
8176
|
* @description Unique identifier of the grant.
|
|
@@ -8848,8 +8852,8 @@ interface components {
|
|
|
8848
8852
|
* @description Company id.
|
|
8849
8853
|
*/
|
|
8850
8854
|
id: string;
|
|
8851
|
-
/** @description Company name. */
|
|
8852
|
-
title
|
|
8855
|
+
/** @description Company name. Present only for admin callers and the customer's own assignments. */
|
|
8856
|
+
title?: string;
|
|
8853
8857
|
};
|
|
8854
8858
|
/** @description Customer the resource is assigned to. */
|
|
8855
8859
|
customer?: {
|
|
@@ -9472,8 +9476,8 @@ interface components {
|
|
|
9472
9476
|
* @description Company id.
|
|
9473
9477
|
*/
|
|
9474
9478
|
id: string;
|
|
9475
|
-
/** @description Company name. */
|
|
9476
|
-
title
|
|
9479
|
+
/** @description Company name. Present only for admin callers and the customer's own assignments. */
|
|
9480
|
+
title?: string;
|
|
9477
9481
|
};
|
|
9478
9482
|
/** @description Customer the resource is assigned to. */
|
|
9479
9483
|
customer?: {
|
|
@@ -10092,8 +10096,8 @@ interface components {
|
|
|
10092
10096
|
* @description Company id.
|
|
10093
10097
|
*/
|
|
10094
10098
|
id: string;
|
|
10095
|
-
/** @description Company name. */
|
|
10096
|
-
title
|
|
10099
|
+
/** @description Company name. Present only for admin callers and the customer's own assignments. */
|
|
10100
|
+
title?: string;
|
|
10097
10101
|
};
|
|
10098
10102
|
/** @description Customer the resource is assigned to. */
|
|
10099
10103
|
customer?: {
|
|
@@ -10220,8 +10224,8 @@ interface components {
|
|
|
10220
10224
|
* @description Company id.
|
|
10221
10225
|
*/
|
|
10222
10226
|
id: string;
|
|
10223
|
-
/** @description Company name. */
|
|
10224
|
-
title
|
|
10227
|
+
/** @description Company name. Present only for admin callers and the customer's own assignments. */
|
|
10228
|
+
title?: string;
|
|
10225
10229
|
};
|
|
10226
10230
|
/** @description Customer the resource is assigned to. */
|
|
10227
10231
|
customer?: {
|
|
@@ -15899,6 +15903,11 @@ interface components {
|
|
|
15899
15903
|
* @enum {string}
|
|
15900
15904
|
*/
|
|
15901
15905
|
type: "assigneeUpdated" | "comment" | "statusUpdated" | "ticketCreated";
|
|
15906
|
+
/**
|
|
15907
|
+
* Format: date-time
|
|
15908
|
+
* @description ISO timestamp of when the comment text was last edited.
|
|
15909
|
+
*/
|
|
15910
|
+
updateDate?: string;
|
|
15902
15911
|
};
|
|
15903
15912
|
getScheduledCreditsTransactions: {
|
|
15904
15913
|
/** @description Pagination token to fetch the next page of results. Returned when more results exist. */
|
|
@@ -22312,8 +22321,8 @@ interface components {
|
|
|
22312
22321
|
grants: {
|
|
22313
22322
|
/** @description Grant amount in major units for credits, or whole units for day passes. */
|
|
22314
22323
|
amount: number;
|
|
22315
|
-
/** @description
|
|
22316
|
-
duration?:
|
|
22324
|
+
/** @description Number of days after purchase until the granted balance expires, from 1 to 3650. Omit for a non-expiring grant. */
|
|
22325
|
+
duration?: number;
|
|
22317
22326
|
/**
|
|
22318
22327
|
* @description Type of balance this grant provides.
|
|
22319
22328
|
* @enum {string}
|
|
@@ -22340,8 +22349,8 @@ interface components {
|
|
|
22340
22349
|
grants?: {
|
|
22341
22350
|
/** @description Grant amount in major units for credits, or whole units for day passes. */
|
|
22342
22351
|
amount: number;
|
|
22343
|
-
/** @description
|
|
22344
|
-
duration?:
|
|
22352
|
+
/** @description Number of days after purchase until the granted balance expires, from 1 to 3650. Omit for a non-expiring grant. */
|
|
22353
|
+
duration?: number;
|
|
22345
22354
|
/**
|
|
22346
22355
|
* @description Type of balance this grant provides.
|
|
22347
22356
|
* @enum {string}
|
|
@@ -24726,6 +24735,17 @@ interface components {
|
|
|
24726
24735
|
};
|
|
24727
24736
|
};
|
|
24728
24737
|
};
|
|
24738
|
+
updateSupportTicketComment: {
|
|
24739
|
+
content: {
|
|
24740
|
+
"application/json": {
|
|
24741
|
+
/** @description Ticket comment activity fields to update. */
|
|
24742
|
+
activity: {
|
|
24743
|
+
/** @description New comment text. */
|
|
24744
|
+
text: string;
|
|
24745
|
+
};
|
|
24746
|
+
};
|
|
24747
|
+
};
|
|
24748
|
+
};
|
|
24729
24749
|
createCreditsTransaction: {
|
|
24730
24750
|
content: {
|
|
24731
24751
|
"application/json": {
|
|
@@ -31384,6 +31404,43 @@ interface operations {
|
|
|
31384
31404
|
};
|
|
31385
31405
|
};
|
|
31386
31406
|
};
|
|
31407
|
+
updateSupportTicketComment: {
|
|
31408
|
+
parameters: {
|
|
31409
|
+
query?: never;
|
|
31410
|
+
header?: {
|
|
31411
|
+
/** @description The id of the network. Required when using bearer token authentication */
|
|
31412
|
+
"spacebring-network-id"?: string;
|
|
31413
|
+
};
|
|
31414
|
+
path: {
|
|
31415
|
+
/** @description The id of the ticket activity. */
|
|
31416
|
+
id: string;
|
|
31417
|
+
};
|
|
31418
|
+
cookie?: never;
|
|
31419
|
+
};
|
|
31420
|
+
requestBody: components["requestBodies"]["updateSupportTicketComment"];
|
|
31421
|
+
responses: {
|
|
31422
|
+
/** @description OK */
|
|
31423
|
+
200: {
|
|
31424
|
+
headers: {
|
|
31425
|
+
[name: string]: unknown;
|
|
31426
|
+
};
|
|
31427
|
+
content: {
|
|
31428
|
+
"application/json": {
|
|
31429
|
+
activity?: components["schemas"]["ticketActivity"];
|
|
31430
|
+
};
|
|
31431
|
+
};
|
|
31432
|
+
};
|
|
31433
|
+
/** @description Bad Request */
|
|
31434
|
+
400: {
|
|
31435
|
+
headers: {
|
|
31436
|
+
[name: string]: unknown;
|
|
31437
|
+
};
|
|
31438
|
+
content: {
|
|
31439
|
+
"application/json": components["schemas"]["responseError"];
|
|
31440
|
+
};
|
|
31441
|
+
};
|
|
31442
|
+
};
|
|
31443
|
+
};
|
|
31387
31444
|
getScheduledCreditsTransactions: {
|
|
31388
31445
|
parameters: {
|
|
31389
31446
|
query?: {
|
|
@@ -32769,6 +32826,8 @@ type CreateSupportTicketBody = NonNullable<NonNullable<operations["createSupport
|
|
|
32769
32826
|
type CreateSupportTicketCommentBody = NonNullable<NonNullable<operations["createSupportTicketComment"]["requestBody"]>["content"]["application/json"]["activity"]>;
|
|
32770
32827
|
/** Request body for `sb.support.tickets.updateAssignee()`. */
|
|
32771
32828
|
type UpdateSupportTicketAssigneeBody = NonNullable<NonNullable<operations["updateSupportTicketAssignee"]["requestBody"]>["content"]["application/json"]["ticket"]>;
|
|
32829
|
+
/** Request body for `sb.support.tickets.comment.update()`. */
|
|
32830
|
+
type UpdateSupportTicketCommentBody = NonNullable<NonNullable<operations["updateSupportTicketComment"]["requestBody"]>["content"]["application/json"]["activity"]>;
|
|
32772
32831
|
/** Request body for `sb.support.tickets.updateStatus()`. */
|
|
32773
32832
|
type UpdateSupportTicketStatusBody = NonNullable<NonNullable<operations["updateSupportTicketStatus"]["requestBody"]>["content"]["application/json"]["ticket"]>;
|
|
32774
32833
|
/** Request body for `sb.support.tickets.updateType()`. */
|
|
@@ -33860,6 +33919,7 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
33860
33919
|
updateType(id: string, ticket: UpdateSupportTicketTypeBody, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
33861
33920
|
comment: {
|
|
33862
33921
|
create(activity: CreateSupportTicketCommentBody, options?: SpacebringRequestOptions): Promise<Activity>;
|
|
33922
|
+
update(id: string, activity: UpdateSupportTicketCommentBody, options?: SpacebringRequestOptions): Promise<Activity>;
|
|
33863
33923
|
delete(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
33864
33924
|
};
|
|
33865
33925
|
};
|
|
@@ -34016,4 +34076,4 @@ declare class SpacebringError extends Error {
|
|
|
34016
34076
|
});
|
|
34017
34077
|
}
|
|
34018
34078
|
|
|
34019
|
-
export { type Activity, type AddEventHostsBody, type AltCurrency, type Application, type ApplyBenefitBody, type Assignment, type Balance, type Benefit, type BenefitCategory, type Booking, type CheckInVisitBody, type CheckOutVisitBody, type Comment, type Company, type Contact, type Contract, type Coupon, type CreateAltCurrencyBody, type CreateAssignmentBody, type CreateBenefitBody, type CreateBenefitCategoryBody, type CreateBookingBody, type CreateCompanyBody, type CreateContactBody, type CreateContractBody, type CreateCouponBody, type CreateCreditNoteBody, type CreateCreditsTransactionBody, type CreateDayPassesTransactionBody, type CreateEventBody, type CreateEventMediaBody, type CreateFeedPostBody, type CreateFeedPostCommentBody, type CreateGuideBody, type CreateInvoiceBody, type CreateInvoiceItemBody, type CreateMembershipBody, type CreateMoneyTransactionBody, type CreatePackageBody, type CreatePlanBody, type CreateProductBody, type CreatePromocodeBody, type CreateRequestBody, type CreateResourceBody, type CreateShopCategoryBody, type CreateSubscriptionBody, type CreateSubscriptionItemBody, type CreateSupportTicketBody, type CreateSupportTicketCommentBody, type CreateTemplateBody, type CreateVisitBody, type CreditNote, type CreditScheduledTransaction, type CreditTransaction, type DayPassScheduledTransaction, type DayPassTransaction, type Event, type EventTicket, type GetAltCurrenciesQuery, type GetAssignmentsQuery, type GetBenefitApplicationsQuery, type GetBenefitCategoriesQuery, type GetBenefitsQuery, type GetBookingsQuery, type GetCompaniesQuery, type GetContactsQuery, type GetContractsQuery, type GetCouponsQuery, type GetCreditNotesQuery, type GetCreditsTransactionsQuery, type GetDayPassesTransactionsQuery, type GetDiscountRedemptionsQuery, type GetEventTicketsQuery, type GetEventsByOrganizationQuery, type GetFeedPostsQuery, type GetFloorsQuery, type GetGuidesQuery, type GetInvoicesQuery, type GetMembershipsDeletedQuery, type GetMembershipsQuery, type GetMoneyTransactionsQuery, type GetOrdersQuery, type GetPackagesQuery, type GetPlansQuery, type GetProductsQuery, type GetPromocodesQuery, type GetRegistrationsQuery, type GetRequestsQuery, type GetResourcesQuery, type GetScheduledCreditsTransactionsQuery, type GetScheduledDayPassesTransactionsQuery, type GetShopCategoriesQuery, type GetSubscriptionsQuery, type GetSupportTicketsQuery, type GetTemplatesQuery, type GetUpcomingInvoiceItemsQuery, type GetUpcomingInvoiceQuery, type GetVisitsQuery, type Guide, type Invoice, type InvoiceItem, type IssueContractBody, type IssueInvoiceBody, type Like, type ListInvoiceItemsQuery, type Location, type Media, type Membership, type MoneyTransaction, type Network, type Order, type Package, type PatchAssignmentBody, type PatchBookingBody, type PatchGuideBody, type PatchMoneyTransactionBody, type PatchPackageBody, type PatchResourceBody, type PayInvoiceBody, type Payment, type Plan, type Post, type PreviewCreditNoteBody, type Product, type Promocode, type Redemption, type Refund, type RefundMoneyTransactionBody, type Registration, type Request$1 as Request, type Resource, type ShopCategory, Spacebring, type SpacebringConfig, SpacebringError, type SpacebringErrorBody, type SpacebringRequestOptions, type SpacebringResources, type Subscription, type SupportTicket, type Template, type TerminateContractBody, type UpcomingItem, type UpdateAltCurrencyBody, type UpdateBenefitBody, type UpdateBenefitCategoryBody, type UpdateCompanyBody, type UpdateContractBody, type UpdateCouponBody, type UpdateCreditNoteBody, type UpdateEventBody, type UpdateEventTicketBody, type UpdateFeedPostBody, type UpdateInvoiceBody, type UpdateInvoiceItemBody, type UpdateMembershipBody, type UpdatePlanBody, type UpdateProductBody, type UpdateShopCategoryBody, type UpdateSubscriptionBody, type UpdateSubscriptionItemBody, type UpdateSupportTicketAssigneeBody, type UpdateSupportTicketStatusBody, type UpdateSupportTicketTypeBody, type UpdateTemplateBody, type UpdateVisitBody, type Visit, type components, type operations, type paths };
|
|
34079
|
+
export { type Activity, type AddEventHostsBody, type AltCurrency, type Application, type ApplyBenefitBody, type Assignment, type Balance, type Benefit, type BenefitCategory, type Booking, type CheckInVisitBody, type CheckOutVisitBody, type Comment, type Company, type Contact, type Contract, type Coupon, type CreateAltCurrencyBody, type CreateAssignmentBody, type CreateBenefitBody, type CreateBenefitCategoryBody, type CreateBookingBody, type CreateCompanyBody, type CreateContactBody, type CreateContractBody, type CreateCouponBody, type CreateCreditNoteBody, type CreateCreditsTransactionBody, type CreateDayPassesTransactionBody, type CreateEventBody, type CreateEventMediaBody, type CreateFeedPostBody, type CreateFeedPostCommentBody, type CreateGuideBody, type CreateInvoiceBody, type CreateInvoiceItemBody, type CreateMembershipBody, type CreateMoneyTransactionBody, type CreatePackageBody, type CreatePlanBody, type CreateProductBody, type CreatePromocodeBody, type CreateRequestBody, type CreateResourceBody, type CreateShopCategoryBody, type CreateSubscriptionBody, type CreateSubscriptionItemBody, type CreateSupportTicketBody, type CreateSupportTicketCommentBody, type CreateTemplateBody, type CreateVisitBody, type CreditNote, type CreditScheduledTransaction, type CreditTransaction, type DayPassScheduledTransaction, type DayPassTransaction, type Event, type EventTicket, type GetAltCurrenciesQuery, type GetAssignmentsQuery, type GetBenefitApplicationsQuery, type GetBenefitCategoriesQuery, type GetBenefitsQuery, type GetBookingsQuery, type GetCompaniesQuery, type GetContactsQuery, type GetContractsQuery, type GetCouponsQuery, type GetCreditNotesQuery, type GetCreditsTransactionsQuery, type GetDayPassesTransactionsQuery, type GetDiscountRedemptionsQuery, type GetEventTicketsQuery, type GetEventsByOrganizationQuery, type GetFeedPostsQuery, type GetFloorsQuery, type GetGuidesQuery, type GetInvoicesQuery, type GetMembershipsDeletedQuery, type GetMembershipsQuery, type GetMoneyTransactionsQuery, type GetOrdersQuery, type GetPackagesQuery, type GetPlansQuery, type GetProductsQuery, type GetPromocodesQuery, type GetRegistrationsQuery, type GetRequestsQuery, type GetResourcesQuery, type GetScheduledCreditsTransactionsQuery, type GetScheduledDayPassesTransactionsQuery, type GetShopCategoriesQuery, type GetSubscriptionsQuery, type GetSupportTicketsQuery, type GetTemplatesQuery, type GetUpcomingInvoiceItemsQuery, type GetUpcomingInvoiceQuery, type GetVisitsQuery, type Guide, type Invoice, type InvoiceItem, type IssueContractBody, type IssueInvoiceBody, type Like, type ListInvoiceItemsQuery, type Location, type Media, type Membership, type MoneyTransaction, type Network, type Order, type Package, type PatchAssignmentBody, type PatchBookingBody, type PatchGuideBody, type PatchMoneyTransactionBody, type PatchPackageBody, type PatchResourceBody, type PayInvoiceBody, type Payment, type Plan, type Post, type PreviewCreditNoteBody, type Product, type Promocode, type Redemption, type Refund, type RefundMoneyTransactionBody, type Registration, type Request$1 as Request, type Resource, type ShopCategory, Spacebring, type SpacebringConfig, SpacebringError, type SpacebringErrorBody, type SpacebringRequestOptions, type SpacebringResources, type Subscription, type SupportTicket, type Template, type TerminateContractBody, type UpcomingItem, type UpdateAltCurrencyBody, type UpdateBenefitBody, type UpdateBenefitCategoryBody, type UpdateCompanyBody, type UpdateContractBody, type UpdateCouponBody, type UpdateCreditNoteBody, type UpdateEventBody, type UpdateEventTicketBody, type UpdateFeedPostBody, type UpdateInvoiceBody, type UpdateInvoiceItemBody, type UpdateMembershipBody, type UpdatePlanBody, type UpdateProductBody, type UpdateShopCategoryBody, type UpdateSubscriptionBody, type UpdateSubscriptionItemBody, type UpdateSupportTicketAssigneeBody, type UpdateSupportTicketCommentBody, type UpdateSupportTicketStatusBody, type UpdateSupportTicketTypeBody, type UpdateTemplateBody, type UpdateVisitBody, type Visit, type components, type operations, type paths };
|
package/dist/index.d.ts
CHANGED
|
@@ -2481,7 +2481,11 @@ interface paths {
|
|
|
2481
2481
|
delete: operations["deleteSupportTicketComment"];
|
|
2482
2482
|
options?: never;
|
|
2483
2483
|
head?: never;
|
|
2484
|
-
|
|
2484
|
+
/**
|
|
2485
|
+
* Update a ticket comment
|
|
2486
|
+
* @description Update the text of a support ticket comment. Only the comment author can edit it, and only comments without an attachment. <h3>OAuth</h3>Required scopes: <code>support</code>
|
|
2487
|
+
*/
|
|
2488
|
+
patch: operations["updateSupportTicketComment"];
|
|
2485
2489
|
trace?: never;
|
|
2486
2490
|
};
|
|
2487
2491
|
"/transactions/credits/scheduled/v1": {
|
|
@@ -8098,13 +8102,13 @@ interface components {
|
|
|
8098
8102
|
* @deprecated
|
|
8099
8103
|
* @description Maximum credit grant duration in days. Deprecated: use grants instead.
|
|
8100
8104
|
*/
|
|
8101
|
-
duration?:
|
|
8105
|
+
duration?: number;
|
|
8102
8106
|
/** @description Grants included in the package. */
|
|
8103
8107
|
grants: {
|
|
8104
8108
|
/** @description Grant amount in major units for credits, or whole units for day passes. */
|
|
8105
8109
|
amount: number;
|
|
8106
|
-
/** @description
|
|
8107
|
-
duration?:
|
|
8110
|
+
/** @description Number of days after purchase until the granted balance expires, from 1 to 3650. Omit for a non-expiring grant. */
|
|
8111
|
+
duration?: number;
|
|
8108
8112
|
/**
|
|
8109
8113
|
* Format: uuid
|
|
8110
8114
|
* @description Unique identifier of the grant.
|
|
@@ -8160,13 +8164,13 @@ interface components {
|
|
|
8160
8164
|
* @deprecated
|
|
8161
8165
|
* @description Maximum credit grant duration in days. Deprecated: use grants instead.
|
|
8162
8166
|
*/
|
|
8163
|
-
duration?:
|
|
8167
|
+
duration?: number;
|
|
8164
8168
|
/** @description Grants included in the package. */
|
|
8165
8169
|
grants: {
|
|
8166
8170
|
/** @description Grant amount in major units for credits, or whole units for day passes. */
|
|
8167
8171
|
amount: number;
|
|
8168
|
-
/** @description
|
|
8169
|
-
duration?:
|
|
8172
|
+
/** @description Number of days after purchase until the granted balance expires, from 1 to 3650. Omit for a non-expiring grant. */
|
|
8173
|
+
duration?: number;
|
|
8170
8174
|
/**
|
|
8171
8175
|
* Format: uuid
|
|
8172
8176
|
* @description Unique identifier of the grant.
|
|
@@ -8848,8 +8852,8 @@ interface components {
|
|
|
8848
8852
|
* @description Company id.
|
|
8849
8853
|
*/
|
|
8850
8854
|
id: string;
|
|
8851
|
-
/** @description Company name. */
|
|
8852
|
-
title
|
|
8855
|
+
/** @description Company name. Present only for admin callers and the customer's own assignments. */
|
|
8856
|
+
title?: string;
|
|
8853
8857
|
};
|
|
8854
8858
|
/** @description Customer the resource is assigned to. */
|
|
8855
8859
|
customer?: {
|
|
@@ -9472,8 +9476,8 @@ interface components {
|
|
|
9472
9476
|
* @description Company id.
|
|
9473
9477
|
*/
|
|
9474
9478
|
id: string;
|
|
9475
|
-
/** @description Company name. */
|
|
9476
|
-
title
|
|
9479
|
+
/** @description Company name. Present only for admin callers and the customer's own assignments. */
|
|
9480
|
+
title?: string;
|
|
9477
9481
|
};
|
|
9478
9482
|
/** @description Customer the resource is assigned to. */
|
|
9479
9483
|
customer?: {
|
|
@@ -10092,8 +10096,8 @@ interface components {
|
|
|
10092
10096
|
* @description Company id.
|
|
10093
10097
|
*/
|
|
10094
10098
|
id: string;
|
|
10095
|
-
/** @description Company name. */
|
|
10096
|
-
title
|
|
10099
|
+
/** @description Company name. Present only for admin callers and the customer's own assignments. */
|
|
10100
|
+
title?: string;
|
|
10097
10101
|
};
|
|
10098
10102
|
/** @description Customer the resource is assigned to. */
|
|
10099
10103
|
customer?: {
|
|
@@ -10220,8 +10224,8 @@ interface components {
|
|
|
10220
10224
|
* @description Company id.
|
|
10221
10225
|
*/
|
|
10222
10226
|
id: string;
|
|
10223
|
-
/** @description Company name. */
|
|
10224
|
-
title
|
|
10227
|
+
/** @description Company name. Present only for admin callers and the customer's own assignments. */
|
|
10228
|
+
title?: string;
|
|
10225
10229
|
};
|
|
10226
10230
|
/** @description Customer the resource is assigned to. */
|
|
10227
10231
|
customer?: {
|
|
@@ -15899,6 +15903,11 @@ interface components {
|
|
|
15899
15903
|
* @enum {string}
|
|
15900
15904
|
*/
|
|
15901
15905
|
type: "assigneeUpdated" | "comment" | "statusUpdated" | "ticketCreated";
|
|
15906
|
+
/**
|
|
15907
|
+
* Format: date-time
|
|
15908
|
+
* @description ISO timestamp of when the comment text was last edited.
|
|
15909
|
+
*/
|
|
15910
|
+
updateDate?: string;
|
|
15902
15911
|
};
|
|
15903
15912
|
getScheduledCreditsTransactions: {
|
|
15904
15913
|
/** @description Pagination token to fetch the next page of results. Returned when more results exist. */
|
|
@@ -22312,8 +22321,8 @@ interface components {
|
|
|
22312
22321
|
grants: {
|
|
22313
22322
|
/** @description Grant amount in major units for credits, or whole units for day passes. */
|
|
22314
22323
|
amount: number;
|
|
22315
|
-
/** @description
|
|
22316
|
-
duration?:
|
|
22324
|
+
/** @description Number of days after purchase until the granted balance expires, from 1 to 3650. Omit for a non-expiring grant. */
|
|
22325
|
+
duration?: number;
|
|
22317
22326
|
/**
|
|
22318
22327
|
* @description Type of balance this grant provides.
|
|
22319
22328
|
* @enum {string}
|
|
@@ -22340,8 +22349,8 @@ interface components {
|
|
|
22340
22349
|
grants?: {
|
|
22341
22350
|
/** @description Grant amount in major units for credits, or whole units for day passes. */
|
|
22342
22351
|
amount: number;
|
|
22343
|
-
/** @description
|
|
22344
|
-
duration?:
|
|
22352
|
+
/** @description Number of days after purchase until the granted balance expires, from 1 to 3650. Omit for a non-expiring grant. */
|
|
22353
|
+
duration?: number;
|
|
22345
22354
|
/**
|
|
22346
22355
|
* @description Type of balance this grant provides.
|
|
22347
22356
|
* @enum {string}
|
|
@@ -24726,6 +24735,17 @@ interface components {
|
|
|
24726
24735
|
};
|
|
24727
24736
|
};
|
|
24728
24737
|
};
|
|
24738
|
+
updateSupportTicketComment: {
|
|
24739
|
+
content: {
|
|
24740
|
+
"application/json": {
|
|
24741
|
+
/** @description Ticket comment activity fields to update. */
|
|
24742
|
+
activity: {
|
|
24743
|
+
/** @description New comment text. */
|
|
24744
|
+
text: string;
|
|
24745
|
+
};
|
|
24746
|
+
};
|
|
24747
|
+
};
|
|
24748
|
+
};
|
|
24729
24749
|
createCreditsTransaction: {
|
|
24730
24750
|
content: {
|
|
24731
24751
|
"application/json": {
|
|
@@ -31384,6 +31404,43 @@ interface operations {
|
|
|
31384
31404
|
};
|
|
31385
31405
|
};
|
|
31386
31406
|
};
|
|
31407
|
+
updateSupportTicketComment: {
|
|
31408
|
+
parameters: {
|
|
31409
|
+
query?: never;
|
|
31410
|
+
header?: {
|
|
31411
|
+
/** @description The id of the network. Required when using bearer token authentication */
|
|
31412
|
+
"spacebring-network-id"?: string;
|
|
31413
|
+
};
|
|
31414
|
+
path: {
|
|
31415
|
+
/** @description The id of the ticket activity. */
|
|
31416
|
+
id: string;
|
|
31417
|
+
};
|
|
31418
|
+
cookie?: never;
|
|
31419
|
+
};
|
|
31420
|
+
requestBody: components["requestBodies"]["updateSupportTicketComment"];
|
|
31421
|
+
responses: {
|
|
31422
|
+
/** @description OK */
|
|
31423
|
+
200: {
|
|
31424
|
+
headers: {
|
|
31425
|
+
[name: string]: unknown;
|
|
31426
|
+
};
|
|
31427
|
+
content: {
|
|
31428
|
+
"application/json": {
|
|
31429
|
+
activity?: components["schemas"]["ticketActivity"];
|
|
31430
|
+
};
|
|
31431
|
+
};
|
|
31432
|
+
};
|
|
31433
|
+
/** @description Bad Request */
|
|
31434
|
+
400: {
|
|
31435
|
+
headers: {
|
|
31436
|
+
[name: string]: unknown;
|
|
31437
|
+
};
|
|
31438
|
+
content: {
|
|
31439
|
+
"application/json": components["schemas"]["responseError"];
|
|
31440
|
+
};
|
|
31441
|
+
};
|
|
31442
|
+
};
|
|
31443
|
+
};
|
|
31387
31444
|
getScheduledCreditsTransactions: {
|
|
31388
31445
|
parameters: {
|
|
31389
31446
|
query?: {
|
|
@@ -32769,6 +32826,8 @@ type CreateSupportTicketBody = NonNullable<NonNullable<operations["createSupport
|
|
|
32769
32826
|
type CreateSupportTicketCommentBody = NonNullable<NonNullable<operations["createSupportTicketComment"]["requestBody"]>["content"]["application/json"]["activity"]>;
|
|
32770
32827
|
/** Request body for `sb.support.tickets.updateAssignee()`. */
|
|
32771
32828
|
type UpdateSupportTicketAssigneeBody = NonNullable<NonNullable<operations["updateSupportTicketAssignee"]["requestBody"]>["content"]["application/json"]["ticket"]>;
|
|
32829
|
+
/** Request body for `sb.support.tickets.comment.update()`. */
|
|
32830
|
+
type UpdateSupportTicketCommentBody = NonNullable<NonNullable<operations["updateSupportTicketComment"]["requestBody"]>["content"]["application/json"]["activity"]>;
|
|
32772
32831
|
/** Request body for `sb.support.tickets.updateStatus()`. */
|
|
32773
32832
|
type UpdateSupportTicketStatusBody = NonNullable<NonNullable<operations["updateSupportTicketStatus"]["requestBody"]>["content"]["application/json"]["ticket"]>;
|
|
32774
32833
|
/** Request body for `sb.support.tickets.updateType()`. */
|
|
@@ -33860,6 +33919,7 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
33860
33919
|
updateType(id: string, ticket: UpdateSupportTicketTypeBody, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
33861
33920
|
comment: {
|
|
33862
33921
|
create(activity: CreateSupportTicketCommentBody, options?: SpacebringRequestOptions): Promise<Activity>;
|
|
33922
|
+
update(id: string, activity: UpdateSupportTicketCommentBody, options?: SpacebringRequestOptions): Promise<Activity>;
|
|
33863
33923
|
delete(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
33864
33924
|
};
|
|
33865
33925
|
};
|
|
@@ -34016,4 +34076,4 @@ declare class SpacebringError extends Error {
|
|
|
34016
34076
|
});
|
|
34017
34077
|
}
|
|
34018
34078
|
|
|
34019
|
-
export { type Activity, type AddEventHostsBody, type AltCurrency, type Application, type ApplyBenefitBody, type Assignment, type Balance, type Benefit, type BenefitCategory, type Booking, type CheckInVisitBody, type CheckOutVisitBody, type Comment, type Company, type Contact, type Contract, type Coupon, type CreateAltCurrencyBody, type CreateAssignmentBody, type CreateBenefitBody, type CreateBenefitCategoryBody, type CreateBookingBody, type CreateCompanyBody, type CreateContactBody, type CreateContractBody, type CreateCouponBody, type CreateCreditNoteBody, type CreateCreditsTransactionBody, type CreateDayPassesTransactionBody, type CreateEventBody, type CreateEventMediaBody, type CreateFeedPostBody, type CreateFeedPostCommentBody, type CreateGuideBody, type CreateInvoiceBody, type CreateInvoiceItemBody, type CreateMembershipBody, type CreateMoneyTransactionBody, type CreatePackageBody, type CreatePlanBody, type CreateProductBody, type CreatePromocodeBody, type CreateRequestBody, type CreateResourceBody, type CreateShopCategoryBody, type CreateSubscriptionBody, type CreateSubscriptionItemBody, type CreateSupportTicketBody, type CreateSupportTicketCommentBody, type CreateTemplateBody, type CreateVisitBody, type CreditNote, type CreditScheduledTransaction, type CreditTransaction, type DayPassScheduledTransaction, type DayPassTransaction, type Event, type EventTicket, type GetAltCurrenciesQuery, type GetAssignmentsQuery, type GetBenefitApplicationsQuery, type GetBenefitCategoriesQuery, type GetBenefitsQuery, type GetBookingsQuery, type GetCompaniesQuery, type GetContactsQuery, type GetContractsQuery, type GetCouponsQuery, type GetCreditNotesQuery, type GetCreditsTransactionsQuery, type GetDayPassesTransactionsQuery, type GetDiscountRedemptionsQuery, type GetEventTicketsQuery, type GetEventsByOrganizationQuery, type GetFeedPostsQuery, type GetFloorsQuery, type GetGuidesQuery, type GetInvoicesQuery, type GetMembershipsDeletedQuery, type GetMembershipsQuery, type GetMoneyTransactionsQuery, type GetOrdersQuery, type GetPackagesQuery, type GetPlansQuery, type GetProductsQuery, type GetPromocodesQuery, type GetRegistrationsQuery, type GetRequestsQuery, type GetResourcesQuery, type GetScheduledCreditsTransactionsQuery, type GetScheduledDayPassesTransactionsQuery, type GetShopCategoriesQuery, type GetSubscriptionsQuery, type GetSupportTicketsQuery, type GetTemplatesQuery, type GetUpcomingInvoiceItemsQuery, type GetUpcomingInvoiceQuery, type GetVisitsQuery, type Guide, type Invoice, type InvoiceItem, type IssueContractBody, type IssueInvoiceBody, type Like, type ListInvoiceItemsQuery, type Location, type Media, type Membership, type MoneyTransaction, type Network, type Order, type Package, type PatchAssignmentBody, type PatchBookingBody, type PatchGuideBody, type PatchMoneyTransactionBody, type PatchPackageBody, type PatchResourceBody, type PayInvoiceBody, type Payment, type Plan, type Post, type PreviewCreditNoteBody, type Product, type Promocode, type Redemption, type Refund, type RefundMoneyTransactionBody, type Registration, type Request$1 as Request, type Resource, type ShopCategory, Spacebring, type SpacebringConfig, SpacebringError, type SpacebringErrorBody, type SpacebringRequestOptions, type SpacebringResources, type Subscription, type SupportTicket, type Template, type TerminateContractBody, type UpcomingItem, type UpdateAltCurrencyBody, type UpdateBenefitBody, type UpdateBenefitCategoryBody, type UpdateCompanyBody, type UpdateContractBody, type UpdateCouponBody, type UpdateCreditNoteBody, type UpdateEventBody, type UpdateEventTicketBody, type UpdateFeedPostBody, type UpdateInvoiceBody, type UpdateInvoiceItemBody, type UpdateMembershipBody, type UpdatePlanBody, type UpdateProductBody, type UpdateShopCategoryBody, type UpdateSubscriptionBody, type UpdateSubscriptionItemBody, type UpdateSupportTicketAssigneeBody, type UpdateSupportTicketStatusBody, type UpdateSupportTicketTypeBody, type UpdateTemplateBody, type UpdateVisitBody, type Visit, type components, type operations, type paths };
|
|
34079
|
+
export { type Activity, type AddEventHostsBody, type AltCurrency, type Application, type ApplyBenefitBody, type Assignment, type Balance, type Benefit, type BenefitCategory, type Booking, type CheckInVisitBody, type CheckOutVisitBody, type Comment, type Company, type Contact, type Contract, type Coupon, type CreateAltCurrencyBody, type CreateAssignmentBody, type CreateBenefitBody, type CreateBenefitCategoryBody, type CreateBookingBody, type CreateCompanyBody, type CreateContactBody, type CreateContractBody, type CreateCouponBody, type CreateCreditNoteBody, type CreateCreditsTransactionBody, type CreateDayPassesTransactionBody, type CreateEventBody, type CreateEventMediaBody, type CreateFeedPostBody, type CreateFeedPostCommentBody, type CreateGuideBody, type CreateInvoiceBody, type CreateInvoiceItemBody, type CreateMembershipBody, type CreateMoneyTransactionBody, type CreatePackageBody, type CreatePlanBody, type CreateProductBody, type CreatePromocodeBody, type CreateRequestBody, type CreateResourceBody, type CreateShopCategoryBody, type CreateSubscriptionBody, type CreateSubscriptionItemBody, type CreateSupportTicketBody, type CreateSupportTicketCommentBody, type CreateTemplateBody, type CreateVisitBody, type CreditNote, type CreditScheduledTransaction, type CreditTransaction, type DayPassScheduledTransaction, type DayPassTransaction, type Event, type EventTicket, type GetAltCurrenciesQuery, type GetAssignmentsQuery, type GetBenefitApplicationsQuery, type GetBenefitCategoriesQuery, type GetBenefitsQuery, type GetBookingsQuery, type GetCompaniesQuery, type GetContactsQuery, type GetContractsQuery, type GetCouponsQuery, type GetCreditNotesQuery, type GetCreditsTransactionsQuery, type GetDayPassesTransactionsQuery, type GetDiscountRedemptionsQuery, type GetEventTicketsQuery, type GetEventsByOrganizationQuery, type GetFeedPostsQuery, type GetFloorsQuery, type GetGuidesQuery, type GetInvoicesQuery, type GetMembershipsDeletedQuery, type GetMembershipsQuery, type GetMoneyTransactionsQuery, type GetOrdersQuery, type GetPackagesQuery, type GetPlansQuery, type GetProductsQuery, type GetPromocodesQuery, type GetRegistrationsQuery, type GetRequestsQuery, type GetResourcesQuery, type GetScheduledCreditsTransactionsQuery, type GetScheduledDayPassesTransactionsQuery, type GetShopCategoriesQuery, type GetSubscriptionsQuery, type GetSupportTicketsQuery, type GetTemplatesQuery, type GetUpcomingInvoiceItemsQuery, type GetUpcomingInvoiceQuery, type GetVisitsQuery, type Guide, type Invoice, type InvoiceItem, type IssueContractBody, type IssueInvoiceBody, type Like, type ListInvoiceItemsQuery, type Location, type Media, type Membership, type MoneyTransaction, type Network, type Order, type Package, type PatchAssignmentBody, type PatchBookingBody, type PatchGuideBody, type PatchMoneyTransactionBody, type PatchPackageBody, type PatchResourceBody, type PayInvoiceBody, type Payment, type Plan, type Post, type PreviewCreditNoteBody, type Product, type Promocode, type Redemption, type Refund, type RefundMoneyTransactionBody, type Registration, type Request$1 as Request, type Resource, type ShopCategory, Spacebring, type SpacebringConfig, SpacebringError, type SpacebringErrorBody, type SpacebringRequestOptions, type SpacebringResources, type Subscription, type SupportTicket, type Template, type TerminateContractBody, type UpcomingItem, type UpdateAltCurrencyBody, type UpdateBenefitBody, type UpdateBenefitCategoryBody, type UpdateCompanyBody, type UpdateContractBody, type UpdateCouponBody, type UpdateCreditNoteBody, type UpdateEventBody, type UpdateEventTicketBody, type UpdateFeedPostBody, type UpdateInvoiceBody, type UpdateInvoiceItemBody, type UpdateMembershipBody, type UpdatePlanBody, type UpdateProductBody, type UpdateShopCategoryBody, type UpdateSubscriptionBody, type UpdateSubscriptionItemBody, type UpdateSupportTicketAssigneeBody, type UpdateSupportTicketCommentBody, type UpdateSupportTicketStatusBody, type UpdateSupportTicketTypeBody, type UpdateTemplateBody, type UpdateVisitBody, type Visit, type components, type operations, type paths };
|
package/dist/index.js
CHANGED
|
@@ -2454,6 +2454,18 @@ function createSupport(client, defaults) {
|
|
|
2454
2454
|
async create(activity, options) {
|
|
2455
2455
|
return unwrapProp(await client.POST("/support/tickets/v1/comment", { body: { activity }, signal: options?.signal }), "activity", "POST /support/tickets/v1/comment");
|
|
2456
2456
|
},
|
|
2457
|
+
/**
|
|
2458
|
+
* Update a ticket comment
|
|
2459
|
+
*
|
|
2460
|
+
* Update the text of a support ticket comment. Only the comment author can edit it, and only comments without an attachment.
|
|
2461
|
+
*
|
|
2462
|
+
* @param id The id of the ticket activity.
|
|
2463
|
+
* @param activity The `activity` payload.
|
|
2464
|
+
* @param options Request options (abort signal).
|
|
2465
|
+
*/
|
|
2466
|
+
async update(id, activity, options) {
|
|
2467
|
+
return unwrapProp(await client.PATCH("/support/tickets/v1/comment/{id}", { params: { path: { id } }, body: { activity }, signal: options?.signal }), "activity", "PATCH /support/tickets/v1/comment/{id}");
|
|
2468
|
+
},
|
|
2457
2469
|
/**
|
|
2458
2470
|
* Delete a ticket comment
|
|
2459
2471
|
*
|