@izak0s/spacebring-api 11.2.0 → 11.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.ts CHANGED
@@ -2083,10 +2083,18 @@ interface paths {
2083
2083
  * @description Create a plan. <h3>OAuth</h3>Required scopes: <code>plans</code>
2084
2084
  */
2085
2085
  post: operations["createPlan"];
2086
- delete?: never;
2086
+ /**
2087
+ * Delete plans
2088
+ * @description Delete up to 100 plans at once. Plans that are already deleted are skipped. <h3>OAuth</h3>Required scopes: <code>plans</code>
2089
+ */
2090
+ delete: operations["deletePlans"];
2087
2091
  options?: never;
2088
2092
  head?: never;
2089
- patch?: never;
2093
+ /**
2094
+ * Update plans
2095
+ * @description Turn sign-up on with a type, or off, for up to 100 plans at once. Plans that already have this sign-up are left unchanged. A free plan can't use immediate sign-up. <h3>OAuth</h3>Required scopes: <code>plans</code>
2096
+ */
2097
+ patch: operations["patchPlans"];
2090
2098
  trace?: never;
2091
2099
  };
2092
2100
  "/plans/v1/{planId}": {
@@ -2920,7 +2928,7 @@ interface paths {
2920
2928
  head?: never;
2921
2929
  /**
2922
2930
  * Update a money transaction
2923
- * @description Approve or cancel a pending money transaction paid externally. <h3>OAuth</h3>Required scopes: <code>transactions</code>
2931
+ * @description Change the internal note of a money transaction, or approve or cancel a pending money transaction paid externally. A user needs the Billing permission in the transaction's location. <h3>OAuth</h3>Required scopes: <code>transactions</code>
2924
2932
  */
2925
2933
  patch: operations["patchMoneyTransaction"];
2926
2934
  trace?: never;
@@ -7851,6 +7859,11 @@ interface components {
7851
7859
  * @description ID of the ticket's check-in in the check-ins service. Present when check-in is enabled for the event.
7852
7860
  */
7853
7861
  checkInRef?: string;
7862
+ /**
7863
+ * Format: date-time
7864
+ * @description ISO timestamp of when the attendee last checked out. Cleared when they check in again.
7865
+ */
7866
+ checkOutDate?: string;
7854
7867
  /** @description Six-digit code the attendee enters on the Reception app to check in. Visible to the ticket owner and admins when check-in is enabled for the event. */
7855
7868
  code?: string;
7856
7869
  /** @description Note the attendee left when purchasing the ticket. Visible to the ticket owner and location admins only. */
@@ -9755,6 +9768,11 @@ interface components {
9755
9768
  * @description Customer id.
9756
9769
  */
9757
9770
  id: string;
9771
+ /** @description Company logo when the customer is a company. */
9772
+ logo?: {
9773
+ key: string;
9774
+ url: string;
9775
+ };
9758
9776
  /** @description Company name when the customer is a company. */
9759
9777
  title?: string;
9760
9778
  /**
@@ -9773,6 +9791,8 @@ interface components {
9773
9791
  id: string;
9774
9792
  /** @description User first name. */
9775
9793
  name?: string | null;
9794
+ /** @description Profile photo URL. */
9795
+ photoUrl?: string | null;
9776
9796
  /** @description User last name. */
9777
9797
  surname?: string | null;
9778
9798
  };
@@ -10452,6 +10472,11 @@ interface components {
10452
10472
  * @description Customer id.
10453
10473
  */
10454
10474
  id: string;
10475
+ /** @description Company logo when the customer is a company. */
10476
+ logo?: {
10477
+ key: string;
10478
+ url: string;
10479
+ };
10455
10480
  /** @description Company name when the customer is a company. */
10456
10481
  title?: string;
10457
10482
  /**
@@ -10470,6 +10495,8 @@ interface components {
10470
10495
  id: string;
10471
10496
  /** @description User first name. */
10472
10497
  name?: string | null;
10498
+ /** @description Profile photo URL. */
10499
+ photoUrl?: string | null;
10473
10500
  /** @description User last name. */
10474
10501
  surname?: string | null;
10475
10502
  };
@@ -11145,6 +11172,11 @@ interface components {
11145
11172
  * @description Customer id.
11146
11173
  */
11147
11174
  id: string;
11175
+ /** @description Company logo when the customer is a company. */
11176
+ logo?: {
11177
+ key: string;
11178
+ url: string;
11179
+ };
11148
11180
  /** @description Company name when the customer is a company. */
11149
11181
  title?: string;
11150
11182
  /**
@@ -11163,6 +11195,8 @@ interface components {
11163
11195
  id: string;
11164
11196
  /** @description User first name. */
11165
11197
  name?: string | null;
11198
+ /** @description Profile photo URL. */
11199
+ photoUrl?: string | null;
11166
11200
  /** @description User last name. */
11167
11201
  surname?: string | null;
11168
11202
  };
@@ -11273,6 +11307,11 @@ interface components {
11273
11307
  * @description Customer id.
11274
11308
  */
11275
11309
  id: string;
11310
+ /** @description Company logo when the customer is a company. */
11311
+ logo?: {
11312
+ key: string;
11313
+ url: string;
11314
+ };
11276
11315
  /** @description Company name when the customer is a company. */
11277
11316
  title?: string;
11278
11317
  /**
@@ -11291,6 +11330,8 @@ interface components {
11291
11330
  id: string;
11292
11331
  /** @description User first name. */
11293
11332
  name?: string | null;
11333
+ /** @description Profile photo URL. */
11334
+ photoUrl?: string | null;
11294
11335
  /** @description User last name. */
11295
11336
  surname?: string | null;
11296
11337
  };
@@ -20186,6 +20227,8 @@ interface components {
20186
20227
  * @description Unique identifier of the transaction.
20187
20228
  */
20188
20229
  id: string;
20230
+ /** @description Note about the payment that only administrators see, such as how an external payment was collected. Absent when there is no note or the viewer is not an administrator. */
20231
+ internalNote?: string;
20189
20232
  /**
20190
20233
  * @deprecated
20191
20234
  * @description Deprecated. Use product instead.
@@ -20898,6 +20941,8 @@ interface components {
20898
20941
  * @description Unique identifier of the transaction.
20899
20942
  */
20900
20943
  id: string;
20944
+ /** @description Note about the payment that only administrators see, such as how an external payment was collected. Absent when there is no note or the viewer is not an administrator. */
20945
+ internalNote?: string;
20901
20946
  /**
20902
20947
  * @deprecated
20903
20948
  * @description Deprecated. Use product instead.
@@ -21610,6 +21655,8 @@ interface components {
21610
21655
  * @description Unique identifier of the transaction.
21611
21656
  */
21612
21657
  id: string;
21658
+ /** @description Note about the payment that only administrators see, such as how an external payment was collected. Absent when there is no note or the viewer is not an administrator. */
21659
+ internalNote?: string;
21613
21660
  /**
21614
21661
  * @deprecated
21615
21662
  * @description Deprecated. Use product instead.
@@ -22066,10 +22113,21 @@ interface components {
22066
22113
  };
22067
22114
  };
22068
22115
  balance: {
22069
- allocation?: number;
22070
- amount?: number;
22071
- crossLocationUsage?: number;
22072
- expirationDate?: components["schemas"]["dateSchema"];
22116
+ /** @description Amount allocated to this balance, in credits for a credits balance and in day passes for a day passes balance. */
22117
+ allocation: number;
22118
+ /** @description Amount left in this balance. */
22119
+ amount: number;
22120
+ /** @description Amount of this balance already spent at other locations of the network. */
22121
+ crossLocationUsage: number;
22122
+ /**
22123
+ * Format: date-time
22124
+ * @description When this balance expires. Absent for the permanent balance.
22125
+ */
22126
+ expirationDate?: string;
22127
+ /**
22128
+ * Format: uuid
22129
+ * @description Subscription that allocated this balance. Absent for the permanent balance.
22130
+ */
22073
22131
  subscriptionRef?: string;
22074
22132
  };
22075
22133
  contact: {
@@ -24188,6 +24246,44 @@ interface components {
24188
24246
  };
24189
24247
  };
24190
24248
  };
24249
+ deletePlans: {
24250
+ content: {
24251
+ "application/json": {
24252
+ /** @description Array of IDs of plans to delete. Up to 100 per request. */
24253
+ planIds: string[];
24254
+ };
24255
+ };
24256
+ };
24257
+ patchPlans: {
24258
+ content: {
24259
+ "application/json": {
24260
+ /** @description Plans to update and the fields to set on each of them. */
24261
+ plans: {
24262
+ /** @description IDs of the plans to update. Up to 100 per request. */
24263
+ ids: string[];
24264
+ /** @description Self sign-up settings to set on every plan. */
24265
+ selfSignup: {
24266
+ /**
24267
+ * @description Turn self sign-up on.
24268
+ * @enum {boolean}
24269
+ */
24270
+ enabled: true;
24271
+ /**
24272
+ * @description Self sign-up flow type. immediate: customers subscribe at once. request: customers apply and an admin approves.
24273
+ * @enum {string}
24274
+ */
24275
+ type: "immediate" | "request";
24276
+ } | {
24277
+ /**
24278
+ * @description Turn self sign-up off. Each plan keeps its sign-up type.
24279
+ * @enum {boolean}
24280
+ */
24281
+ enabled: false;
24282
+ };
24283
+ };
24284
+ };
24285
+ };
24286
+ };
24191
24287
  updatePlan: {
24192
24288
  content: {
24193
24289
  "application/json": {
@@ -25253,14 +25349,23 @@ interface components {
25253
25349
  content: {
25254
25350
  "application/json": {
25255
25351
  booking: {
25256
- /** @description Attendees to invite to the booking. Supported for room resources. Users without a membership in the location are left out, and so is the owner. */
25352
+ /** @description Attendees to invite to the booking, each an existing user by id or a person by email. Supported for room resources. A person invited by email joins the network without a membership in the location. The owner is left out, and so are all attendees when the owner is not a member of the location. */
25257
25353
  attendees?: {
25258
25354
  user: {
25259
25355
  /**
25260
25356
  * Format: uuid
25261
- * @description User id of the attendee.
25357
+ * @description User id of an existing user.
25262
25358
  */
25263
25359
  id: string;
25360
+ } | {
25361
+ /** @description Email of the person to invite. An existing user with this email is invited, otherwise a user is created. */
25362
+ email: string;
25363
+ /** @description First name of a user created for the email. */
25364
+ name?: string;
25365
+ /** @description Phone number of a user created for the email. */
25366
+ phoneNumber?: string;
25367
+ /** @description Last name of a user created for the email. */
25368
+ surname?: string;
25264
25369
  };
25265
25370
  }[];
25266
25371
  /**
@@ -26716,7 +26821,7 @@ interface components {
26716
26821
  * @description Payment gateway provider. Only gateways that support saved payment methods can be charged.
26717
26822
  * @enum {string}
26718
26823
  */
26719
- gateway: "hyperpay" | "mollie" | "plata" | "stripe" | "tap" | "wayforpay";
26824
+ gateway: "hyperpay" | "mollie" | "paypal" | "plata" | "stripe" | "tap" | "wayforpay";
26720
26825
  /**
26721
26826
  * Format: uuid
26722
26827
  * @description ID of the saved payment method to charge.
@@ -26738,11 +26843,13 @@ interface components {
26738
26843
  "application/json": {
26739
26844
  /** @description Transaction fields to update. */
26740
26845
  transaction: {
26846
+ /** @description Note about the payment that only administrators see, such as how an external payment was collected. Can be changed on any money transaction. An empty string clears it. */
26847
+ internalNote?: string;
26741
26848
  /**
26742
- * @description New status of the pending external payment: `succeeded` approves it, `canceled` rejects it.
26849
+ * @description New status of the pending external payment: `succeeded` approves it, `canceled` rejects it. Only a pending external payment can change its status.
26743
26850
  * @enum {string}
26744
26851
  */
26745
- status: "canceled" | "succeeded";
26852
+ status?: "canceled" | "succeeded";
26746
26853
  };
26747
26854
  };
26748
26855
  };
@@ -28516,9 +28623,9 @@ interface operations {
28516
28623
  locationRef: string;
28517
28624
  /** @description Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
28518
28625
  nextPageToken?: string;
28519
- /** @description Comma-separated list of check-in statuses to filter by, e.g. `scheduled,checkedIn`. Valid values: checkedIn, checkedOut, scheduled, expired. Defaults to all statuses. */
28626
+ /** @description Filter by status: 'scheduled' nobody has arrived yet, 'checkedIn' the person is on site, 'checkedOut' they left, 'expired' the window closed with nobody arriving. Defaults to every status. Comma-separated, one or more of: checkedIn, checkedOut, scheduled, expired. */
28520
28627
  status?: string;
28521
- /** @description Comma-separated list of check-in types to filter by, e.g. `eventTicket,visit`. Valid values: deskBooking, roomBooking, eventTicket, visit, subscription. Defaults to all types. */
28628
+ /** @description Filter by what the check-in is for: 'deskBooking' and 'roomBooking' a booking, 'eventTicket' an event ticket, 'visit' a visit, 'subscription' a member arriving with their personal code. Defaults to every type. Comma-separated, one or more of: deskBooking, roomBooking, eventTicket, visit, subscription. */
28522
28629
  type?: string;
28523
28630
  /** @description UUID of the user to filter check-ins by. Defaults to check-ins of every user. */
28524
28631
  userRef?: string;
@@ -31987,6 +32094,66 @@ interface operations {
31987
32094
  };
31988
32095
  };
31989
32096
  };
32097
+ deletePlans: {
32098
+ parameters: {
32099
+ query?: never;
32100
+ header?: {
32101
+ /** @description The id of the network. Required when using bearer token authentication */
32102
+ "spacebring-network-id"?: string;
32103
+ };
32104
+ path?: never;
32105
+ cookie?: never;
32106
+ };
32107
+ requestBody: components["requestBodies"]["deletePlans"];
32108
+ responses: {
32109
+ /** @description No Content */
32110
+ 204: {
32111
+ headers: {
32112
+ [name: string]: unknown;
32113
+ };
32114
+ content?: never;
32115
+ };
32116
+ /** @description Bad Request */
32117
+ 400: {
32118
+ headers: {
32119
+ [name: string]: unknown;
32120
+ };
32121
+ content: {
32122
+ "application/json": components["schemas"]["responseError"];
32123
+ };
32124
+ };
32125
+ };
32126
+ };
32127
+ patchPlans: {
32128
+ parameters: {
32129
+ query?: never;
32130
+ header?: {
32131
+ /** @description The id of the network. Required when using bearer token authentication */
32132
+ "spacebring-network-id"?: string;
32133
+ };
32134
+ path?: never;
32135
+ cookie?: never;
32136
+ };
32137
+ requestBody: components["requestBodies"]["patchPlans"];
32138
+ responses: {
32139
+ /** @description No Content */
32140
+ 204: {
32141
+ headers: {
32142
+ [name: string]: unknown;
32143
+ };
32144
+ content?: never;
32145
+ };
32146
+ /** @description Bad Request */
32147
+ 400: {
32148
+ headers: {
32149
+ [name: string]: unknown;
32150
+ };
32151
+ content: {
32152
+ "application/json": components["schemas"]["responseError"];
32153
+ };
32154
+ };
32155
+ };
32156
+ };
31990
32157
  getPlan: {
31991
32158
  parameters: {
31992
32159
  query?: never;
@@ -35553,6 +35720,10 @@ interface GetPlansQuery {
35553
35720
  }
35554
35721
  /** Request body for `sb.plans.create()`. */
35555
35722
  type CreatePlanBody = NonNullable<NonNullable<operations["createPlan"]["requestBody"]>["content"]["application/json"]["plan"]>;
35723
+ /** Request body for `sb.plans.deletePlans()`. */
35724
+ type DeletePlansBody = NonNullable<NonNullable<operations["deletePlans"]["requestBody"]>["content"]["application/json"]["planIds"]>;
35725
+ /** Request body for `sb.plans.patchPlans()`. */
35726
+ type PatchPlansBody = NonNullable<NonNullable<operations["patchPlans"]["requestBody"]>["content"]["application/json"]["plans"]>;
35556
35727
  /** Request body for `sb.plans.update()`. */
35557
35728
  type UpdatePlanBody = NonNullable<NonNullable<operations["updatePlan"]["requestBody"]>["content"]["application/json"]["plan"]>;
35558
35729
 
@@ -35861,9 +36032,9 @@ interface GetCheckInsQuery {
35861
36032
  locationRef: string;
35862
36033
  /** Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
35863
36034
  nextPageToken?: string;
35864
- /** Comma-separated list of check-in statuses to filter by, e.g. `scheduled,checkedIn`. Valid values: checkedIn, checkedOut, scheduled, expired. Defaults to all statuses. */
36035
+ /** Filter by status: 'scheduled' nobody has arrived yet, 'checkedIn' the person is on site, 'checkedOut' they left, 'expired' the window closed with nobody arriving. Defaults to every status. Comma-separated, one or more of: checkedIn, checkedOut, scheduled, expired. */
35865
36036
  status?: string;
35866
- /** Comma-separated list of check-in types to filter by, e.g. `eventTicket,visit`. Valid values: deskBooking, roomBooking, eventTicket, visit, subscription. Defaults to all types. */
36037
+ /** Filter by what the check-in is for: 'deskBooking' and 'roomBooking' a booking, 'eventTicket' an event ticket, 'visit' a visit, 'subscription' a member arriving with their personal code. Defaults to every type. Comma-separated, one or more of: deskBooking, roomBooking, eventTicket, visit, subscription. */
35867
36038
  type?: string;
35868
36039
  /** UUID of the user to filter check-ins by. Defaults to check-ins of every user. */
35869
36040
  userRef?: string;
@@ -36370,6 +36541,8 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
36370
36541
  create(plan: CreatePlanBody, options?: SpacebringRequestOptions): Promise<Plan>;
36371
36542
  update(planId: string, plan: UpdatePlanBody, options?: SpacebringRequestOptions): Promise<undefined>;
36372
36543
  delete(planId: string, options?: SpacebringRequestOptions): Promise<undefined>;
36544
+ deletePlans(planIds: DeletePlansBody, options?: SpacebringRequestOptions): Promise<undefined>;
36545
+ patchPlans(plans: PatchPlansBody, options?: SpacebringRequestOptions): Promise<undefined>;
36373
36546
  };
36374
36547
  registrations: {
36375
36548
  list(query?: GetRegistrationsQuery, options?: SpacebringRequestOptions): Promise<{
@@ -36645,4 +36818,4 @@ declare class SpacebringError extends Error {
36645
36818
  });
36646
36819
  }
36647
36820
 
36648
- 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 };
36821
+ 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 DeletePlansBody, 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 PatchPlansBody, 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
@@ -2038,6 +2038,22 @@ function createPlans(client, defaults) {
2038
2038
  */
2039
2039
  async delete(planId, options) {
2040
2040
  return unwrap(await client.DELETE("/plans/v1/{planId}", { params: { path: { planId } }, signal: options?.signal }), "DELETE /plans/v1/{planId}");
2041
+ },
2042
+ /**
2043
+ * Delete plans
2044
+ *
2045
+ * Delete up to 100 plans at once. Plans that are already deleted are skipped.
2046
+ */
2047
+ async deletePlans(planIds, options) {
2048
+ return unwrap(await client.DELETE("/plans/v1", { body: { planIds }, signal: options?.signal }), "DELETE /plans/v1");
2049
+ },
2050
+ /**
2051
+ * Update plans
2052
+ *
2053
+ * Turn sign-up on with a type, or off, for up to 100 plans at once. Plans that already have this sign-up are left unchanged. A free plan can't use immediate sign-up.
2054
+ */
2055
+ async patchPlans(plans, options) {
2056
+ return unwrap(await client.PATCH("/plans/v1", { body: { plans }, signal: options?.signal }), "PATCH /plans/v1");
2041
2057
  }
2042
2058
  };
2043
2059
  }
@@ -2792,7 +2808,7 @@ function createTransactions(client, defaults) {
2792
2808
  /**
2793
2809
  * Update a money transaction
2794
2810
  *
2795
- * Approve or cancel a pending money transaction paid externally.
2811
+ * Change the internal note of a money transaction, or approve or cancel a pending money transaction paid externally. A user needs the Billing permission in the transaction's location.
2796
2812
  *
2797
2813
  * @param transactionId The id of the transaction.
2798
2814
  * @param transaction The `transaction` payload.