@izak0s/spacebring-api 9.2.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/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
- patch?: never;
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": {
@@ -6283,6 +6287,8 @@ interface components {
6283
6287
  order?: number;
6284
6288
  /** @description Phone number. */
6285
6289
  phoneNumber?: string;
6290
+ /** @description Profile photo URL, present when the signer is a user of the contract location. */
6291
+ photoUrl?: string;
6286
6292
  /**
6287
6293
  * Format: date-time
6288
6294
  * @description Date this signer signed.
@@ -6498,6 +6504,8 @@ interface components {
6498
6504
  order?: number;
6499
6505
  /** @description Phone number. */
6500
6506
  phoneNumber?: string;
6507
+ /** @description Profile photo URL, present when the signer is a user of the contract location. */
6508
+ photoUrl?: string;
6501
6509
  /**
6502
6510
  * Format: date-time
6503
6511
  * @description Date this signer signed.
@@ -8094,13 +8102,13 @@ interface components {
8094
8102
  * @deprecated
8095
8103
  * @description Maximum credit grant duration in days. Deprecated: use grants instead.
8096
8104
  */
8097
- duration?: 30 | 90 | 180 | 365;
8105
+ duration?: number;
8098
8106
  /** @description Grants included in the package. */
8099
8107
  grants: {
8100
8108
  /** @description Grant amount in major units for credits, or whole units for day passes. */
8101
8109
  amount: number;
8102
- /** @description Expiration duration in days for credit grants. */
8103
- duration?: 30 | 90 | 180 | 365;
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;
8104
8112
  /**
8105
8113
  * Format: uuid
8106
8114
  * @description Unique identifier of the grant.
@@ -8156,13 +8164,13 @@ interface components {
8156
8164
  * @deprecated
8157
8165
  * @description Maximum credit grant duration in days. Deprecated: use grants instead.
8158
8166
  */
8159
- duration?: 30 | 90 | 180 | 365;
8167
+ duration?: number;
8160
8168
  /** @description Grants included in the package. */
8161
8169
  grants: {
8162
8170
  /** @description Grant amount in major units for credits, or whole units for day passes. */
8163
8171
  amount: number;
8164
- /** @description Expiration duration in days for credit grants. */
8165
- duration?: 30 | 90 | 180 | 365;
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;
8166
8174
  /**
8167
8175
  * Format: uuid
8168
8176
  * @description Unique identifier of the grant.
@@ -8844,8 +8852,8 @@ interface components {
8844
8852
  * @description Company id.
8845
8853
  */
8846
8854
  id: string;
8847
- /** @description Company name. */
8848
- title: string;
8855
+ /** @description Company name. Present only for admin callers and the customer's own assignments. */
8856
+ title?: string;
8849
8857
  };
8850
8858
  /** @description Customer the resource is assigned to. */
8851
8859
  customer?: {
@@ -9468,8 +9476,8 @@ interface components {
9468
9476
  * @description Company id.
9469
9477
  */
9470
9478
  id: string;
9471
- /** @description Company name. */
9472
- title: string;
9479
+ /** @description Company name. Present only for admin callers and the customer's own assignments. */
9480
+ title?: string;
9473
9481
  };
9474
9482
  /** @description Customer the resource is assigned to. */
9475
9483
  customer?: {
@@ -10088,8 +10096,8 @@ interface components {
10088
10096
  * @description Company id.
10089
10097
  */
10090
10098
  id: string;
10091
- /** @description Company name. */
10092
- title: string;
10099
+ /** @description Company name. Present only for admin callers and the customer's own assignments. */
10100
+ title?: string;
10093
10101
  };
10094
10102
  /** @description Customer the resource is assigned to. */
10095
10103
  customer?: {
@@ -10216,8 +10224,8 @@ interface components {
10216
10224
  * @description Company id.
10217
10225
  */
10218
10226
  id: string;
10219
- /** @description Company name. */
10220
- title: string;
10227
+ /** @description Company name. Present only for admin callers and the customer's own assignments. */
10228
+ title?: string;
10221
10229
  };
10222
10230
  /** @description Customer the resource is assigned to. */
10223
10231
  customer?: {
@@ -15895,6 +15903,11 @@ interface components {
15895
15903
  * @enum {string}
15896
15904
  */
15897
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;
15898
15911
  };
15899
15912
  getScheduledCreditsTransactions: {
15900
15913
  /** @description Pagination token to fetch the next page of results. Returned when more results exist. */
@@ -22308,8 +22321,8 @@ interface components {
22308
22321
  grants: {
22309
22322
  /** @description Grant amount in major units for credits, or whole units for day passes. */
22310
22323
  amount: number;
22311
- /** @description Expiration duration in days for credit grants. */
22312
- duration?: 30 | 90 | 180 | 365;
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;
22313
22326
  /**
22314
22327
  * @description Type of balance this grant provides.
22315
22328
  * @enum {string}
@@ -22336,8 +22349,8 @@ interface components {
22336
22349
  grants?: {
22337
22350
  /** @description Grant amount in major units for credits, or whole units for day passes. */
22338
22351
  amount: number;
22339
- /** @description Expiration duration in days for credit grants. */
22340
- duration?: 30 | 90 | 180 | 365;
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;
22341
22354
  /**
22342
22355
  * @description Type of balance this grant provides.
22343
22356
  * @enum {string}
@@ -24722,6 +24735,17 @@ interface components {
24722
24735
  };
24723
24736
  };
24724
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
+ };
24725
24749
  createCreditsTransaction: {
24726
24750
  content: {
24727
24751
  "application/json": {
@@ -31380,6 +31404,43 @@ interface operations {
31380
31404
  };
31381
31405
  };
31382
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
+ };
31383
31444
  getScheduledCreditsTransactions: {
31384
31445
  parameters: {
31385
31446
  query?: {
@@ -32765,6 +32826,8 @@ type CreateSupportTicketBody = NonNullable<NonNullable<operations["createSupport
32765
32826
  type CreateSupportTicketCommentBody = NonNullable<NonNullable<operations["createSupportTicketComment"]["requestBody"]>["content"]["application/json"]["activity"]>;
32766
32827
  /** Request body for `sb.support.tickets.updateAssignee()`. */
32767
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"]>;
32768
32831
  /** Request body for `sb.support.tickets.updateStatus()`. */
32769
32832
  type UpdateSupportTicketStatusBody = NonNullable<NonNullable<operations["updateSupportTicketStatus"]["requestBody"]>["content"]["application/json"]["ticket"]>;
32770
32833
  /** Request body for `sb.support.tickets.updateType()`. */
@@ -33856,6 +33919,7 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
33856
33919
  updateType(id: string, ticket: UpdateSupportTicketTypeBody, options?: SpacebringRequestOptions): Promise<undefined>;
33857
33920
  comment: {
33858
33921
  create(activity: CreateSupportTicketCommentBody, options?: SpacebringRequestOptions): Promise<Activity>;
33922
+ update(id: string, activity: UpdateSupportTicketCommentBody, options?: SpacebringRequestOptions): Promise<Activity>;
33859
33923
  delete(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
33860
33924
  };
33861
33925
  };
@@ -34012,4 +34076,4 @@ declare class SpacebringError extends Error {
34012
34076
  });
34013
34077
  }
34014
34078
 
34015
- 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
- patch?: never;
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": {
@@ -6283,6 +6287,8 @@ interface components {
6283
6287
  order?: number;
6284
6288
  /** @description Phone number. */
6285
6289
  phoneNumber?: string;
6290
+ /** @description Profile photo URL, present when the signer is a user of the contract location. */
6291
+ photoUrl?: string;
6286
6292
  /**
6287
6293
  * Format: date-time
6288
6294
  * @description Date this signer signed.
@@ -6498,6 +6504,8 @@ interface components {
6498
6504
  order?: number;
6499
6505
  /** @description Phone number. */
6500
6506
  phoneNumber?: string;
6507
+ /** @description Profile photo URL, present when the signer is a user of the contract location. */
6508
+ photoUrl?: string;
6501
6509
  /**
6502
6510
  * Format: date-time
6503
6511
  * @description Date this signer signed.
@@ -8094,13 +8102,13 @@ interface components {
8094
8102
  * @deprecated
8095
8103
  * @description Maximum credit grant duration in days. Deprecated: use grants instead.
8096
8104
  */
8097
- duration?: 30 | 90 | 180 | 365;
8105
+ duration?: number;
8098
8106
  /** @description Grants included in the package. */
8099
8107
  grants: {
8100
8108
  /** @description Grant amount in major units for credits, or whole units for day passes. */
8101
8109
  amount: number;
8102
- /** @description Expiration duration in days for credit grants. */
8103
- duration?: 30 | 90 | 180 | 365;
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;
8104
8112
  /**
8105
8113
  * Format: uuid
8106
8114
  * @description Unique identifier of the grant.
@@ -8156,13 +8164,13 @@ interface components {
8156
8164
  * @deprecated
8157
8165
  * @description Maximum credit grant duration in days. Deprecated: use grants instead.
8158
8166
  */
8159
- duration?: 30 | 90 | 180 | 365;
8167
+ duration?: number;
8160
8168
  /** @description Grants included in the package. */
8161
8169
  grants: {
8162
8170
  /** @description Grant amount in major units for credits, or whole units for day passes. */
8163
8171
  amount: number;
8164
- /** @description Expiration duration in days for credit grants. */
8165
- duration?: 30 | 90 | 180 | 365;
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;
8166
8174
  /**
8167
8175
  * Format: uuid
8168
8176
  * @description Unique identifier of the grant.
@@ -8844,8 +8852,8 @@ interface components {
8844
8852
  * @description Company id.
8845
8853
  */
8846
8854
  id: string;
8847
- /** @description Company name. */
8848
- title: string;
8855
+ /** @description Company name. Present only for admin callers and the customer's own assignments. */
8856
+ title?: string;
8849
8857
  };
8850
8858
  /** @description Customer the resource is assigned to. */
8851
8859
  customer?: {
@@ -9468,8 +9476,8 @@ interface components {
9468
9476
  * @description Company id.
9469
9477
  */
9470
9478
  id: string;
9471
- /** @description Company name. */
9472
- title: string;
9479
+ /** @description Company name. Present only for admin callers and the customer's own assignments. */
9480
+ title?: string;
9473
9481
  };
9474
9482
  /** @description Customer the resource is assigned to. */
9475
9483
  customer?: {
@@ -10088,8 +10096,8 @@ interface components {
10088
10096
  * @description Company id.
10089
10097
  */
10090
10098
  id: string;
10091
- /** @description Company name. */
10092
- title: string;
10099
+ /** @description Company name. Present only for admin callers and the customer's own assignments. */
10100
+ title?: string;
10093
10101
  };
10094
10102
  /** @description Customer the resource is assigned to. */
10095
10103
  customer?: {
@@ -10216,8 +10224,8 @@ interface components {
10216
10224
  * @description Company id.
10217
10225
  */
10218
10226
  id: string;
10219
- /** @description Company name. */
10220
- title: string;
10227
+ /** @description Company name. Present only for admin callers and the customer's own assignments. */
10228
+ title?: string;
10221
10229
  };
10222
10230
  /** @description Customer the resource is assigned to. */
10223
10231
  customer?: {
@@ -15895,6 +15903,11 @@ interface components {
15895
15903
  * @enum {string}
15896
15904
  */
15897
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;
15898
15911
  };
15899
15912
  getScheduledCreditsTransactions: {
15900
15913
  /** @description Pagination token to fetch the next page of results. Returned when more results exist. */
@@ -22308,8 +22321,8 @@ interface components {
22308
22321
  grants: {
22309
22322
  /** @description Grant amount in major units for credits, or whole units for day passes. */
22310
22323
  amount: number;
22311
- /** @description Expiration duration in days for credit grants. */
22312
- duration?: 30 | 90 | 180 | 365;
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;
22313
22326
  /**
22314
22327
  * @description Type of balance this grant provides.
22315
22328
  * @enum {string}
@@ -22336,8 +22349,8 @@ interface components {
22336
22349
  grants?: {
22337
22350
  /** @description Grant amount in major units for credits, or whole units for day passes. */
22338
22351
  amount: number;
22339
- /** @description Expiration duration in days for credit grants. */
22340
- duration?: 30 | 90 | 180 | 365;
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;
22341
22354
  /**
22342
22355
  * @description Type of balance this grant provides.
22343
22356
  * @enum {string}
@@ -24722,6 +24735,17 @@ interface components {
24722
24735
  };
24723
24736
  };
24724
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
+ };
24725
24749
  createCreditsTransaction: {
24726
24750
  content: {
24727
24751
  "application/json": {
@@ -31380,6 +31404,43 @@ interface operations {
31380
31404
  };
31381
31405
  };
31382
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
+ };
31383
31444
  getScheduledCreditsTransactions: {
31384
31445
  parameters: {
31385
31446
  query?: {
@@ -32765,6 +32826,8 @@ type CreateSupportTicketBody = NonNullable<NonNullable<operations["createSupport
32765
32826
  type CreateSupportTicketCommentBody = NonNullable<NonNullable<operations["createSupportTicketComment"]["requestBody"]>["content"]["application/json"]["activity"]>;
32766
32827
  /** Request body for `sb.support.tickets.updateAssignee()`. */
32767
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"]>;
32768
32831
  /** Request body for `sb.support.tickets.updateStatus()`. */
32769
32832
  type UpdateSupportTicketStatusBody = NonNullable<NonNullable<operations["updateSupportTicketStatus"]["requestBody"]>["content"]["application/json"]["ticket"]>;
32770
32833
  /** Request body for `sb.support.tickets.updateType()`. */
@@ -33856,6 +33919,7 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
33856
33919
  updateType(id: string, ticket: UpdateSupportTicketTypeBody, options?: SpacebringRequestOptions): Promise<undefined>;
33857
33920
  comment: {
33858
33921
  create(activity: CreateSupportTicketCommentBody, options?: SpacebringRequestOptions): Promise<Activity>;
33922
+ update(id: string, activity: UpdateSupportTicketCommentBody, options?: SpacebringRequestOptions): Promise<Activity>;
33859
33923
  delete(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
33860
33924
  };
33861
33925
  };
@@ -34012,4 +34076,4 @@ declare class SpacebringError extends Error {
34012
34076
  });
34013
34077
  }
34014
34078
 
34015
- 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
  *