@izak0s/spacebring-api 11.2.0 → 11.3.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 +16 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +146 -14
- package/dist/index.d.ts +146 -14
- package/dist/index.js +16 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
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
|
-
|
|
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
|
-
|
|
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}": {
|
|
@@ -22066,10 +22074,21 @@ interface components {
|
|
|
22066
22074
|
};
|
|
22067
22075
|
};
|
|
22068
22076
|
balance: {
|
|
22069
|
-
|
|
22070
|
-
|
|
22071
|
-
|
|
22072
|
-
|
|
22077
|
+
/** @description Amount allocated to this balance, in credits for a credits balance and in day passes for a day passes balance. */
|
|
22078
|
+
allocation: number;
|
|
22079
|
+
/** @description Amount left in this balance. */
|
|
22080
|
+
amount: number;
|
|
22081
|
+
/** @description Amount of this balance already spent at other locations of the network. */
|
|
22082
|
+
crossLocationUsage: number;
|
|
22083
|
+
/**
|
|
22084
|
+
* Format: date-time
|
|
22085
|
+
* @description When this balance expires. Absent for the permanent balance.
|
|
22086
|
+
*/
|
|
22087
|
+
expirationDate?: string;
|
|
22088
|
+
/**
|
|
22089
|
+
* Format: uuid
|
|
22090
|
+
* @description Subscription that allocated this balance. Absent for the permanent balance.
|
|
22091
|
+
*/
|
|
22073
22092
|
subscriptionRef?: string;
|
|
22074
22093
|
};
|
|
22075
22094
|
contact: {
|
|
@@ -24188,6 +24207,44 @@ interface components {
|
|
|
24188
24207
|
};
|
|
24189
24208
|
};
|
|
24190
24209
|
};
|
|
24210
|
+
deletePlans: {
|
|
24211
|
+
content: {
|
|
24212
|
+
"application/json": {
|
|
24213
|
+
/** @description Array of IDs of plans to delete. Up to 100 per request. */
|
|
24214
|
+
planIds: string[];
|
|
24215
|
+
};
|
|
24216
|
+
};
|
|
24217
|
+
};
|
|
24218
|
+
patchPlans: {
|
|
24219
|
+
content: {
|
|
24220
|
+
"application/json": {
|
|
24221
|
+
/** @description Plans to update and the fields to set on each of them. */
|
|
24222
|
+
plans: {
|
|
24223
|
+
/** @description IDs of the plans to update. Up to 100 per request. */
|
|
24224
|
+
ids: string[];
|
|
24225
|
+
/** @description Self sign-up settings to set on every plan. */
|
|
24226
|
+
selfSignup: {
|
|
24227
|
+
/**
|
|
24228
|
+
* @description Turn self sign-up on.
|
|
24229
|
+
* @enum {boolean}
|
|
24230
|
+
*/
|
|
24231
|
+
enabled: true;
|
|
24232
|
+
/**
|
|
24233
|
+
* @description Self sign-up flow type. immediate: customers subscribe at once. request: customers apply and an admin approves.
|
|
24234
|
+
* @enum {string}
|
|
24235
|
+
*/
|
|
24236
|
+
type: "immediate" | "request";
|
|
24237
|
+
} | {
|
|
24238
|
+
/**
|
|
24239
|
+
* @description Turn self sign-up off. Each plan keeps its sign-up type.
|
|
24240
|
+
* @enum {boolean}
|
|
24241
|
+
*/
|
|
24242
|
+
enabled: false;
|
|
24243
|
+
};
|
|
24244
|
+
};
|
|
24245
|
+
};
|
|
24246
|
+
};
|
|
24247
|
+
};
|
|
24191
24248
|
updatePlan: {
|
|
24192
24249
|
content: {
|
|
24193
24250
|
"application/json": {
|
|
@@ -25253,14 +25310,23 @@ interface components {
|
|
|
25253
25310
|
content: {
|
|
25254
25311
|
"application/json": {
|
|
25255
25312
|
booking: {
|
|
25256
|
-
/** @description Attendees to invite to the booking. Supported for room resources.
|
|
25313
|
+
/** @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
25314
|
attendees?: {
|
|
25258
25315
|
user: {
|
|
25259
25316
|
/**
|
|
25260
25317
|
* Format: uuid
|
|
25261
|
-
* @description User id of
|
|
25318
|
+
* @description User id of an existing user.
|
|
25262
25319
|
*/
|
|
25263
25320
|
id: string;
|
|
25321
|
+
} | {
|
|
25322
|
+
/** @description Email of the person to invite. An existing user with this email is invited, otherwise a user is created. */
|
|
25323
|
+
email: string;
|
|
25324
|
+
/** @description First name of a user created for the email. */
|
|
25325
|
+
name?: string;
|
|
25326
|
+
/** @description Phone number of a user created for the email. */
|
|
25327
|
+
phoneNumber?: string;
|
|
25328
|
+
/** @description Last name of a user created for the email. */
|
|
25329
|
+
surname?: string;
|
|
25264
25330
|
};
|
|
25265
25331
|
}[];
|
|
25266
25332
|
/**
|
|
@@ -26716,7 +26782,7 @@ interface components {
|
|
|
26716
26782
|
* @description Payment gateway provider. Only gateways that support saved payment methods can be charged.
|
|
26717
26783
|
* @enum {string}
|
|
26718
26784
|
*/
|
|
26719
|
-
gateway: "hyperpay" | "mollie" | "plata" | "stripe" | "tap" | "wayforpay";
|
|
26785
|
+
gateway: "hyperpay" | "mollie" | "paypal" | "plata" | "stripe" | "tap" | "wayforpay";
|
|
26720
26786
|
/**
|
|
26721
26787
|
* Format: uuid
|
|
26722
26788
|
* @description ID of the saved payment method to charge.
|
|
@@ -28516,9 +28582,9 @@ interface operations {
|
|
|
28516
28582
|
locationRef: string;
|
|
28517
28583
|
/** @description Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
|
|
28518
28584
|
nextPageToken?: string;
|
|
28519
|
-
/** @description
|
|
28585
|
+
/** @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
28586
|
status?: string;
|
|
28521
|
-
/** @description
|
|
28587
|
+
/** @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
28588
|
type?: string;
|
|
28523
28589
|
/** @description UUID of the user to filter check-ins by. Defaults to check-ins of every user. */
|
|
28524
28590
|
userRef?: string;
|
|
@@ -31987,6 +32053,66 @@ interface operations {
|
|
|
31987
32053
|
};
|
|
31988
32054
|
};
|
|
31989
32055
|
};
|
|
32056
|
+
deletePlans: {
|
|
32057
|
+
parameters: {
|
|
32058
|
+
query?: never;
|
|
32059
|
+
header?: {
|
|
32060
|
+
/** @description The id of the network. Required when using bearer token authentication */
|
|
32061
|
+
"spacebring-network-id"?: string;
|
|
32062
|
+
};
|
|
32063
|
+
path?: never;
|
|
32064
|
+
cookie?: never;
|
|
32065
|
+
};
|
|
32066
|
+
requestBody: components["requestBodies"]["deletePlans"];
|
|
32067
|
+
responses: {
|
|
32068
|
+
/** @description No Content */
|
|
32069
|
+
204: {
|
|
32070
|
+
headers: {
|
|
32071
|
+
[name: string]: unknown;
|
|
32072
|
+
};
|
|
32073
|
+
content?: never;
|
|
32074
|
+
};
|
|
32075
|
+
/** @description Bad Request */
|
|
32076
|
+
400: {
|
|
32077
|
+
headers: {
|
|
32078
|
+
[name: string]: unknown;
|
|
32079
|
+
};
|
|
32080
|
+
content: {
|
|
32081
|
+
"application/json": components["schemas"]["responseError"];
|
|
32082
|
+
};
|
|
32083
|
+
};
|
|
32084
|
+
};
|
|
32085
|
+
};
|
|
32086
|
+
patchPlans: {
|
|
32087
|
+
parameters: {
|
|
32088
|
+
query?: never;
|
|
32089
|
+
header?: {
|
|
32090
|
+
/** @description The id of the network. Required when using bearer token authentication */
|
|
32091
|
+
"spacebring-network-id"?: string;
|
|
32092
|
+
};
|
|
32093
|
+
path?: never;
|
|
32094
|
+
cookie?: never;
|
|
32095
|
+
};
|
|
32096
|
+
requestBody: components["requestBodies"]["patchPlans"];
|
|
32097
|
+
responses: {
|
|
32098
|
+
/** @description No Content */
|
|
32099
|
+
204: {
|
|
32100
|
+
headers: {
|
|
32101
|
+
[name: string]: unknown;
|
|
32102
|
+
};
|
|
32103
|
+
content?: never;
|
|
32104
|
+
};
|
|
32105
|
+
/** @description Bad Request */
|
|
32106
|
+
400: {
|
|
32107
|
+
headers: {
|
|
32108
|
+
[name: string]: unknown;
|
|
32109
|
+
};
|
|
32110
|
+
content: {
|
|
32111
|
+
"application/json": components["schemas"]["responseError"];
|
|
32112
|
+
};
|
|
32113
|
+
};
|
|
32114
|
+
};
|
|
32115
|
+
};
|
|
31990
32116
|
getPlan: {
|
|
31991
32117
|
parameters: {
|
|
31992
32118
|
query?: never;
|
|
@@ -35553,6 +35679,10 @@ interface GetPlansQuery {
|
|
|
35553
35679
|
}
|
|
35554
35680
|
/** Request body for `sb.plans.create()`. */
|
|
35555
35681
|
type CreatePlanBody = NonNullable<NonNullable<operations["createPlan"]["requestBody"]>["content"]["application/json"]["plan"]>;
|
|
35682
|
+
/** Request body for `sb.plans.deletePlans()`. */
|
|
35683
|
+
type DeletePlansBody = NonNullable<NonNullable<operations["deletePlans"]["requestBody"]>["content"]["application/json"]["planIds"]>;
|
|
35684
|
+
/** Request body for `sb.plans.patchPlans()`. */
|
|
35685
|
+
type PatchPlansBody = NonNullable<NonNullable<operations["patchPlans"]["requestBody"]>["content"]["application/json"]["plans"]>;
|
|
35556
35686
|
/** Request body for `sb.plans.update()`. */
|
|
35557
35687
|
type UpdatePlanBody = NonNullable<NonNullable<operations["updatePlan"]["requestBody"]>["content"]["application/json"]["plan"]>;
|
|
35558
35688
|
|
|
@@ -35861,9 +35991,9 @@ interface GetCheckInsQuery {
|
|
|
35861
35991
|
locationRef: string;
|
|
35862
35992
|
/** Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
|
|
35863
35993
|
nextPageToken?: string;
|
|
35864
|
-
/**
|
|
35994
|
+
/** 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
35995
|
status?: string;
|
|
35866
|
-
/**
|
|
35996
|
+
/** 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
35997
|
type?: string;
|
|
35868
35998
|
/** UUID of the user to filter check-ins by. Defaults to check-ins of every user. */
|
|
35869
35999
|
userRef?: string;
|
|
@@ -36370,6 +36500,8 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
36370
36500
|
create(plan: CreatePlanBody, options?: SpacebringRequestOptions): Promise<Plan>;
|
|
36371
36501
|
update(planId: string, plan: UpdatePlanBody, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
36372
36502
|
delete(planId: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
36503
|
+
deletePlans(planIds: DeletePlansBody, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
36504
|
+
patchPlans(plans: PatchPlansBody, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
36373
36505
|
};
|
|
36374
36506
|
registrations: {
|
|
36375
36507
|
list(query?: GetRegistrationsQuery, options?: SpacebringRequestOptions): Promise<{
|
|
@@ -36645,4 +36777,4 @@ declare class SpacebringError extends Error {
|
|
|
36645
36777
|
});
|
|
36646
36778
|
}
|
|
36647
36779
|
|
|
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 };
|
|
36780
|
+
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.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
|
-
|
|
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
|
-
|
|
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}": {
|
|
@@ -22066,10 +22074,21 @@ interface components {
|
|
|
22066
22074
|
};
|
|
22067
22075
|
};
|
|
22068
22076
|
balance: {
|
|
22069
|
-
|
|
22070
|
-
|
|
22071
|
-
|
|
22072
|
-
|
|
22077
|
+
/** @description Amount allocated to this balance, in credits for a credits balance and in day passes for a day passes balance. */
|
|
22078
|
+
allocation: number;
|
|
22079
|
+
/** @description Amount left in this balance. */
|
|
22080
|
+
amount: number;
|
|
22081
|
+
/** @description Amount of this balance already spent at other locations of the network. */
|
|
22082
|
+
crossLocationUsage: number;
|
|
22083
|
+
/**
|
|
22084
|
+
* Format: date-time
|
|
22085
|
+
* @description When this balance expires. Absent for the permanent balance.
|
|
22086
|
+
*/
|
|
22087
|
+
expirationDate?: string;
|
|
22088
|
+
/**
|
|
22089
|
+
* Format: uuid
|
|
22090
|
+
* @description Subscription that allocated this balance. Absent for the permanent balance.
|
|
22091
|
+
*/
|
|
22073
22092
|
subscriptionRef?: string;
|
|
22074
22093
|
};
|
|
22075
22094
|
contact: {
|
|
@@ -24188,6 +24207,44 @@ interface components {
|
|
|
24188
24207
|
};
|
|
24189
24208
|
};
|
|
24190
24209
|
};
|
|
24210
|
+
deletePlans: {
|
|
24211
|
+
content: {
|
|
24212
|
+
"application/json": {
|
|
24213
|
+
/** @description Array of IDs of plans to delete. Up to 100 per request. */
|
|
24214
|
+
planIds: string[];
|
|
24215
|
+
};
|
|
24216
|
+
};
|
|
24217
|
+
};
|
|
24218
|
+
patchPlans: {
|
|
24219
|
+
content: {
|
|
24220
|
+
"application/json": {
|
|
24221
|
+
/** @description Plans to update and the fields to set on each of them. */
|
|
24222
|
+
plans: {
|
|
24223
|
+
/** @description IDs of the plans to update. Up to 100 per request. */
|
|
24224
|
+
ids: string[];
|
|
24225
|
+
/** @description Self sign-up settings to set on every plan. */
|
|
24226
|
+
selfSignup: {
|
|
24227
|
+
/**
|
|
24228
|
+
* @description Turn self sign-up on.
|
|
24229
|
+
* @enum {boolean}
|
|
24230
|
+
*/
|
|
24231
|
+
enabled: true;
|
|
24232
|
+
/**
|
|
24233
|
+
* @description Self sign-up flow type. immediate: customers subscribe at once. request: customers apply and an admin approves.
|
|
24234
|
+
* @enum {string}
|
|
24235
|
+
*/
|
|
24236
|
+
type: "immediate" | "request";
|
|
24237
|
+
} | {
|
|
24238
|
+
/**
|
|
24239
|
+
* @description Turn self sign-up off. Each plan keeps its sign-up type.
|
|
24240
|
+
* @enum {boolean}
|
|
24241
|
+
*/
|
|
24242
|
+
enabled: false;
|
|
24243
|
+
};
|
|
24244
|
+
};
|
|
24245
|
+
};
|
|
24246
|
+
};
|
|
24247
|
+
};
|
|
24191
24248
|
updatePlan: {
|
|
24192
24249
|
content: {
|
|
24193
24250
|
"application/json": {
|
|
@@ -25253,14 +25310,23 @@ interface components {
|
|
|
25253
25310
|
content: {
|
|
25254
25311
|
"application/json": {
|
|
25255
25312
|
booking: {
|
|
25256
|
-
/** @description Attendees to invite to the booking. Supported for room resources.
|
|
25313
|
+
/** @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
25314
|
attendees?: {
|
|
25258
25315
|
user: {
|
|
25259
25316
|
/**
|
|
25260
25317
|
* Format: uuid
|
|
25261
|
-
* @description User id of
|
|
25318
|
+
* @description User id of an existing user.
|
|
25262
25319
|
*/
|
|
25263
25320
|
id: string;
|
|
25321
|
+
} | {
|
|
25322
|
+
/** @description Email of the person to invite. An existing user with this email is invited, otherwise a user is created. */
|
|
25323
|
+
email: string;
|
|
25324
|
+
/** @description First name of a user created for the email. */
|
|
25325
|
+
name?: string;
|
|
25326
|
+
/** @description Phone number of a user created for the email. */
|
|
25327
|
+
phoneNumber?: string;
|
|
25328
|
+
/** @description Last name of a user created for the email. */
|
|
25329
|
+
surname?: string;
|
|
25264
25330
|
};
|
|
25265
25331
|
}[];
|
|
25266
25332
|
/**
|
|
@@ -26716,7 +26782,7 @@ interface components {
|
|
|
26716
26782
|
* @description Payment gateway provider. Only gateways that support saved payment methods can be charged.
|
|
26717
26783
|
* @enum {string}
|
|
26718
26784
|
*/
|
|
26719
|
-
gateway: "hyperpay" | "mollie" | "plata" | "stripe" | "tap" | "wayforpay";
|
|
26785
|
+
gateway: "hyperpay" | "mollie" | "paypal" | "plata" | "stripe" | "tap" | "wayforpay";
|
|
26720
26786
|
/**
|
|
26721
26787
|
* Format: uuid
|
|
26722
26788
|
* @description ID of the saved payment method to charge.
|
|
@@ -28516,9 +28582,9 @@ interface operations {
|
|
|
28516
28582
|
locationRef: string;
|
|
28517
28583
|
/** @description Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
|
|
28518
28584
|
nextPageToken?: string;
|
|
28519
|
-
/** @description
|
|
28585
|
+
/** @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
28586
|
status?: string;
|
|
28521
|
-
/** @description
|
|
28587
|
+
/** @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
28588
|
type?: string;
|
|
28523
28589
|
/** @description UUID of the user to filter check-ins by. Defaults to check-ins of every user. */
|
|
28524
28590
|
userRef?: string;
|
|
@@ -31987,6 +32053,66 @@ interface operations {
|
|
|
31987
32053
|
};
|
|
31988
32054
|
};
|
|
31989
32055
|
};
|
|
32056
|
+
deletePlans: {
|
|
32057
|
+
parameters: {
|
|
32058
|
+
query?: never;
|
|
32059
|
+
header?: {
|
|
32060
|
+
/** @description The id of the network. Required when using bearer token authentication */
|
|
32061
|
+
"spacebring-network-id"?: string;
|
|
32062
|
+
};
|
|
32063
|
+
path?: never;
|
|
32064
|
+
cookie?: never;
|
|
32065
|
+
};
|
|
32066
|
+
requestBody: components["requestBodies"]["deletePlans"];
|
|
32067
|
+
responses: {
|
|
32068
|
+
/** @description No Content */
|
|
32069
|
+
204: {
|
|
32070
|
+
headers: {
|
|
32071
|
+
[name: string]: unknown;
|
|
32072
|
+
};
|
|
32073
|
+
content?: never;
|
|
32074
|
+
};
|
|
32075
|
+
/** @description Bad Request */
|
|
32076
|
+
400: {
|
|
32077
|
+
headers: {
|
|
32078
|
+
[name: string]: unknown;
|
|
32079
|
+
};
|
|
32080
|
+
content: {
|
|
32081
|
+
"application/json": components["schemas"]["responseError"];
|
|
32082
|
+
};
|
|
32083
|
+
};
|
|
32084
|
+
};
|
|
32085
|
+
};
|
|
32086
|
+
patchPlans: {
|
|
32087
|
+
parameters: {
|
|
32088
|
+
query?: never;
|
|
32089
|
+
header?: {
|
|
32090
|
+
/** @description The id of the network. Required when using bearer token authentication */
|
|
32091
|
+
"spacebring-network-id"?: string;
|
|
32092
|
+
};
|
|
32093
|
+
path?: never;
|
|
32094
|
+
cookie?: never;
|
|
32095
|
+
};
|
|
32096
|
+
requestBody: components["requestBodies"]["patchPlans"];
|
|
32097
|
+
responses: {
|
|
32098
|
+
/** @description No Content */
|
|
32099
|
+
204: {
|
|
32100
|
+
headers: {
|
|
32101
|
+
[name: string]: unknown;
|
|
32102
|
+
};
|
|
32103
|
+
content?: never;
|
|
32104
|
+
};
|
|
32105
|
+
/** @description Bad Request */
|
|
32106
|
+
400: {
|
|
32107
|
+
headers: {
|
|
32108
|
+
[name: string]: unknown;
|
|
32109
|
+
};
|
|
32110
|
+
content: {
|
|
32111
|
+
"application/json": components["schemas"]["responseError"];
|
|
32112
|
+
};
|
|
32113
|
+
};
|
|
32114
|
+
};
|
|
32115
|
+
};
|
|
31990
32116
|
getPlan: {
|
|
31991
32117
|
parameters: {
|
|
31992
32118
|
query?: never;
|
|
@@ -35553,6 +35679,10 @@ interface GetPlansQuery {
|
|
|
35553
35679
|
}
|
|
35554
35680
|
/** Request body for `sb.plans.create()`. */
|
|
35555
35681
|
type CreatePlanBody = NonNullable<NonNullable<operations["createPlan"]["requestBody"]>["content"]["application/json"]["plan"]>;
|
|
35682
|
+
/** Request body for `sb.plans.deletePlans()`. */
|
|
35683
|
+
type DeletePlansBody = NonNullable<NonNullable<operations["deletePlans"]["requestBody"]>["content"]["application/json"]["planIds"]>;
|
|
35684
|
+
/** Request body for `sb.plans.patchPlans()`. */
|
|
35685
|
+
type PatchPlansBody = NonNullable<NonNullable<operations["patchPlans"]["requestBody"]>["content"]["application/json"]["plans"]>;
|
|
35556
35686
|
/** Request body for `sb.plans.update()`. */
|
|
35557
35687
|
type UpdatePlanBody = NonNullable<NonNullable<operations["updatePlan"]["requestBody"]>["content"]["application/json"]["plan"]>;
|
|
35558
35688
|
|
|
@@ -35861,9 +35991,9 @@ interface GetCheckInsQuery {
|
|
|
35861
35991
|
locationRef: string;
|
|
35862
35992
|
/** Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
|
|
35863
35993
|
nextPageToken?: string;
|
|
35864
|
-
/**
|
|
35994
|
+
/** 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
35995
|
status?: string;
|
|
35866
|
-
/**
|
|
35996
|
+
/** 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
35997
|
type?: string;
|
|
35868
35998
|
/** UUID of the user to filter check-ins by. Defaults to check-ins of every user. */
|
|
35869
35999
|
userRef?: string;
|
|
@@ -36370,6 +36500,8 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
36370
36500
|
create(plan: CreatePlanBody, options?: SpacebringRequestOptions): Promise<Plan>;
|
|
36371
36501
|
update(planId: string, plan: UpdatePlanBody, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
36372
36502
|
delete(planId: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
36503
|
+
deletePlans(planIds: DeletePlansBody, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
36504
|
+
patchPlans(plans: PatchPlansBody, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
36373
36505
|
};
|
|
36374
36506
|
registrations: {
|
|
36375
36507
|
list(query?: GetRegistrationsQuery, options?: SpacebringRequestOptions): Promise<{
|
|
@@ -36645,4 +36777,4 @@ declare class SpacebringError extends Error {
|
|
|
36645
36777
|
});
|
|
36646
36778
|
}
|
|
36647
36779
|
|
|
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 };
|
|
36780
|
+
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
|
}
|