@izak0s/spacebring-api 1.11.0 → 1.12.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.cjs +507 -140
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +106 -106
- package/dist/index.d.ts +106 -106
- package/dist/index.js +507 -140
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -22535,13 +22535,13 @@ type CheckInVisitBody = NonNullable<operations["checkInVisit"]["requestBody"]>["
|
|
|
22535
22535
|
/** Request body for `sb.visitors.visits.checkOut()`. */
|
|
22536
22536
|
type CheckOutVisitBody = NonNullable<operations["checkOutVisit"]["requestBody"]>["content"]["application/json"];
|
|
22537
22537
|
/** Request body for `sb.visitors.contacts.create()`. */
|
|
22538
|
-
type CreateContactBody = NonNullable<operations["createContact"]["requestBody"]>["content"]["application/json"]
|
|
22538
|
+
type CreateContactBody = NonNullable<NonNullable<operations["createContact"]["requestBody"]>["content"]["application/json"]["contact"]>;
|
|
22539
22539
|
/** Request body for `sb.visitors.requests.create()`. */
|
|
22540
|
-
type CreateRequestBody = NonNullable<operations["createRequest"]["requestBody"]>["content"]["application/json"]
|
|
22540
|
+
type CreateRequestBody = NonNullable<NonNullable<operations["createRequest"]["requestBody"]>["content"]["application/json"]["request"]>;
|
|
22541
22541
|
/** Request body for `sb.visitors.visits.create()`. */
|
|
22542
|
-
type CreateVisitBody = NonNullable<operations["createVisit"]["requestBody"]>["content"]["application/json"]
|
|
22542
|
+
type CreateVisitBody = NonNullable<NonNullable<operations["createVisit"]["requestBody"]>["content"]["application/json"]["visit"]>;
|
|
22543
22543
|
/** Request body for `sb.visitors.visits.update()`. */
|
|
22544
|
-
type UpdateVisitBody = NonNullable<operations["updateVisit"]["requestBody"]>["content"]["application/json"]
|
|
22544
|
+
type UpdateVisitBody = NonNullable<NonNullable<operations["updateVisit"]["requestBody"]>["content"]["application/json"]["visit"]>;
|
|
22545
22545
|
|
|
22546
22546
|
/** A Balance entity as returned by the Spacebring API. */
|
|
22547
22547
|
type Balance = NonNullable<components["schemas"]["balance"]>;
|
|
@@ -22609,9 +22609,9 @@ interface GetMoneyTransactionsQuery {
|
|
|
22609
22609
|
nextPageToken?: string;
|
|
22610
22610
|
}
|
|
22611
22611
|
/** Request body for `sb.transactions.credits.create()`. */
|
|
22612
|
-
type CreateCreditsTransactionBody = NonNullable<operations["createCreditsTransaction"]["requestBody"]>["content"]["application/json"]
|
|
22612
|
+
type CreateCreditsTransactionBody = NonNullable<NonNullable<operations["createCreditsTransaction"]["requestBody"]>["content"]["application/json"]["transaction"]>;
|
|
22613
22613
|
/** Request body for `sb.transactions.dayPasses.create()`. */
|
|
22614
|
-
type CreateDayPassesTransactionBody = NonNullable<operations["createDayPassesTransaction"]["requestBody"]>["content"]["application/json"]
|
|
22614
|
+
type CreateDayPassesTransactionBody = NonNullable<NonNullable<operations["createDayPassesTransaction"]["requestBody"]>["content"]["application/json"]["transaction"]>;
|
|
22615
22615
|
|
|
22616
22616
|
/** A Activity entity as returned by the Spacebring API. */
|
|
22617
22617
|
type Activity = NonNullable<components["schemas"]["ticketActivity"]>;
|
|
@@ -22627,15 +22627,15 @@ interface GetSupportTicketsQuery {
|
|
|
22627
22627
|
nextPageToken?: string;
|
|
22628
22628
|
}
|
|
22629
22629
|
/** Request body for `sb.support.tickets.create()`. */
|
|
22630
|
-
type CreateSupportTicketBody = NonNullable<operations["createSupportTicket"]["requestBody"]>["content"]["application/json"]
|
|
22630
|
+
type CreateSupportTicketBody = NonNullable<NonNullable<operations["createSupportTicket"]["requestBody"]>["content"]["application/json"]["ticket"]>;
|
|
22631
22631
|
/** Request body for `sb.support.tickets.comment.create()`. */
|
|
22632
|
-
type CreateSupportTicketCommentBody = NonNullable<operations["createSupportTicketComment"]["requestBody"]>["content"]["application/json"]
|
|
22632
|
+
type CreateSupportTicketCommentBody = NonNullable<NonNullable<operations["createSupportTicketComment"]["requestBody"]>["content"]["application/json"]["activity"]>;
|
|
22633
22633
|
/** Request body for `sb.support.tickets.updateAssignee()`. */
|
|
22634
|
-
type UpdateSupportTicketAssigneeBody = NonNullable<operations["updateSupportTicketAssignee"]["requestBody"]>["content"]["application/json"]
|
|
22634
|
+
type UpdateSupportTicketAssigneeBody = NonNullable<NonNullable<operations["updateSupportTicketAssignee"]["requestBody"]>["content"]["application/json"]["ticket"]>;
|
|
22635
22635
|
/** Request body for `sb.support.tickets.updateStatus()`. */
|
|
22636
|
-
type UpdateSupportTicketStatusBody = NonNullable<operations["updateSupportTicketStatus"]["requestBody"]>["content"]["application/json"]
|
|
22636
|
+
type UpdateSupportTicketStatusBody = NonNullable<NonNullable<operations["updateSupportTicketStatus"]["requestBody"]>["content"]["application/json"]["ticket"]>;
|
|
22637
22637
|
/** Request body for `sb.support.tickets.updateType()`. */
|
|
22638
|
-
type UpdateSupportTicketTypeBody = NonNullable<operations["updateSupportTicketType"]["requestBody"]>["content"]["application/json"]
|
|
22638
|
+
type UpdateSupportTicketTypeBody = NonNullable<NonNullable<operations["updateSupportTicketType"]["requestBody"]>["content"]["application/json"]["ticket"]>;
|
|
22639
22639
|
|
|
22640
22640
|
/** A Subscription entity as returned by the Spacebring API. */
|
|
22641
22641
|
type Subscription = NonNullable<components["schemas"]["subscription"]>;
|
|
@@ -22670,18 +22670,18 @@ interface GetSubscriptionsQuery {
|
|
|
22670
22670
|
/** Request body for `sb.subscriptions.create()`. */
|
|
22671
22671
|
type CreateSubscriptionBody = NonNullable<operations["createSubscription"]["requestBody"]>["content"]["application/json"];
|
|
22672
22672
|
/** Request body for `sb.subscriptions.createItem()`. */
|
|
22673
|
-
type CreateSubscriptionItemBody = NonNullable<operations["createSubscriptionItem"]["requestBody"]>["content"]["application/json"]
|
|
22673
|
+
type CreateSubscriptionItemBody = NonNullable<NonNullable<operations["createSubscriptionItem"]["requestBody"]>["content"]["application/json"]["item"]>;
|
|
22674
22674
|
/** Request body for `sb.subscriptions.update()`. */
|
|
22675
|
-
type UpdateSubscriptionBody = NonNullable<operations["updateSubscription"]["requestBody"]>["content"]["application/json"]
|
|
22675
|
+
type UpdateSubscriptionBody = NonNullable<NonNullable<operations["updateSubscription"]["requestBody"]>["content"]["application/json"]["subscription"]>;
|
|
22676
22676
|
/** Request body for `sb.subscriptions.updateItem()`. */
|
|
22677
|
-
type UpdateSubscriptionItemBody = NonNullable<operations["updateSubscriptionItem"]["requestBody"]>["content"]["application/json"]
|
|
22677
|
+
type UpdateSubscriptionItemBody = NonNullable<NonNullable<operations["updateSubscriptionItem"]["requestBody"]>["content"]["application/json"]["item"]>;
|
|
22678
22678
|
|
|
22679
22679
|
/** A Order entity as returned by the Spacebring API. */
|
|
22680
22680
|
type Order = NonNullable<operations["getOrder"]["responses"][200]["content"]["application/json"]["order"]>;
|
|
22681
22681
|
/** A Product entity as returned by the Spacebring API. */
|
|
22682
22682
|
type Product = NonNullable<components["schemas"]["product"]>;
|
|
22683
22683
|
/** A ShopCategory entity as returned by the Spacebring API. */
|
|
22684
|
-
type ShopCategory = NonNullable<
|
|
22684
|
+
type ShopCategory = NonNullable<components["schemas"]["shopCategory"]>;
|
|
22685
22685
|
/** Query parameters for `sb.shop.orders.list()`. */
|
|
22686
22686
|
interface GetOrdersQuery {
|
|
22687
22687
|
/** Comma-separated shop category UUIDs used to filter orders, e.g. `uuid1,uuid2`. */
|
|
@@ -22730,13 +22730,13 @@ interface GetShopCategoriesQuery {
|
|
|
22730
22730
|
locationRef: string;
|
|
22731
22731
|
}
|
|
22732
22732
|
/** Request body for `sb.shop.products.create()`. */
|
|
22733
|
-
type CreateProductBody = NonNullable<operations["createProduct"]["requestBody"]>["content"]["application/json"]
|
|
22733
|
+
type CreateProductBody = NonNullable<NonNullable<operations["createProduct"]["requestBody"]>["content"]["application/json"]["product"]>;
|
|
22734
22734
|
/** Request body for `sb.shop.categories.create()`. */
|
|
22735
|
-
type CreateShopCategoryBody = NonNullable<operations["createShopCategory"]["requestBody"]>["content"]["application/json"]
|
|
22735
|
+
type CreateShopCategoryBody = NonNullable<NonNullable<operations["createShopCategory"]["requestBody"]>["content"]["application/json"]["category"]>;
|
|
22736
22736
|
/** Request body for `sb.shop.products.update()`. */
|
|
22737
|
-
type UpdateProductBody = NonNullable<operations["updateProduct"]["requestBody"]>["content"]["application/json"]
|
|
22737
|
+
type UpdateProductBody = NonNullable<NonNullable<operations["updateProduct"]["requestBody"]>["content"]["application/json"]["product"]>;
|
|
22738
22738
|
/** Request body for `sb.shop.categories.update()`. */
|
|
22739
|
-
type UpdateShopCategoryBody = NonNullable<operations["updateShopCategory"]["requestBody"]>["content"]["application/json"]
|
|
22739
|
+
type UpdateShopCategoryBody = NonNullable<NonNullable<operations["updateShopCategory"]["requestBody"]>["content"]["application/json"]["category"]>;
|
|
22740
22740
|
|
|
22741
22741
|
/** A Booking entity as returned by the Spacebring API. */
|
|
22742
22742
|
type Booking = NonNullable<components["schemas"]["booking"]>;
|
|
@@ -22785,11 +22785,11 @@ interface GetResourcesQuery {
|
|
|
22785
22785
|
limit?: number;
|
|
22786
22786
|
}
|
|
22787
22787
|
/** Request body for `sb.resources.bookings.create()`. */
|
|
22788
|
-
type CreateBookingBody = NonNullable<operations["createBooking"]["requestBody"]>["content"]["application/json"]
|
|
22788
|
+
type CreateBookingBody = NonNullable<NonNullable<operations["createBooking"]["requestBody"]>["content"]["application/json"]["booking"]>;
|
|
22789
22789
|
/** Request body for `sb.resources.create()`. */
|
|
22790
|
-
type CreateResourceBody = NonNullable<operations["createResource"]["requestBody"]>["content"]["application/json"]
|
|
22790
|
+
type CreateResourceBody = NonNullable<NonNullable<operations["createResource"]["requestBody"]>["content"]["application/json"]["resource"]>;
|
|
22791
22791
|
/** Request body for `sb.resources.update()`. */
|
|
22792
|
-
type PatchResourceBody = NonNullable<operations["patchResource"]["requestBody"]>["content"]["application/json"]
|
|
22792
|
+
type PatchResourceBody = NonNullable<NonNullable<operations["patchResource"]["requestBody"]>["content"]["application/json"]["resource"]>;
|
|
22793
22793
|
|
|
22794
22794
|
/** A Registration entity as returned by the Spacebring API. */
|
|
22795
22795
|
type Registration = NonNullable<components["schemas"]["registration"]>;
|
|
@@ -22817,9 +22817,9 @@ interface GetPlansQuery {
|
|
|
22817
22817
|
resourceRef?: string;
|
|
22818
22818
|
}
|
|
22819
22819
|
/** Request body for `sb.plans.create()`. */
|
|
22820
|
-
type CreatePlanBody = NonNullable<operations["createPlan"]["requestBody"]>["content"]["application/json"]
|
|
22820
|
+
type CreatePlanBody = NonNullable<NonNullable<operations["createPlan"]["requestBody"]>["content"]["application/json"]["plan"]>;
|
|
22821
22821
|
/** Request body for `sb.plans.update()`. */
|
|
22822
|
-
type UpdatePlanBody = NonNullable<operations["updatePlan"]["requestBody"]>["content"]["application/json"]
|
|
22822
|
+
type UpdatePlanBody = NonNullable<NonNullable<operations["updatePlan"]["requestBody"]>["content"]["application/json"]["plan"]>;
|
|
22823
22823
|
|
|
22824
22824
|
/** A Network entity as returned by the Spacebring API. */
|
|
22825
22825
|
type Network = NonNullable<components["schemas"]["network"]>;
|
|
@@ -22839,9 +22839,9 @@ interface GetGuidesQuery {
|
|
|
22839
22839
|
nextPageToken?: string;
|
|
22840
22840
|
}
|
|
22841
22841
|
/** Request body for `sb.guides.create()`. */
|
|
22842
|
-
type CreateGuideBody = NonNullable<operations["createGuide"]["requestBody"]>["content"]["application/json"]
|
|
22842
|
+
type CreateGuideBody = NonNullable<NonNullable<operations["createGuide"]["requestBody"]>["content"]["application/json"]["guide"]>;
|
|
22843
22843
|
/** Request body for `sb.guides.update()`. */
|
|
22844
|
-
type PatchGuideBody = NonNullable<operations["patchGuide"]["requestBody"]>["content"]["application/json"]
|
|
22844
|
+
type PatchGuideBody = NonNullable<NonNullable<operations["patchGuide"]["requestBody"]>["content"]["application/json"]["guide"]>;
|
|
22845
22845
|
|
|
22846
22846
|
/** Query parameters for `sb.floors.list()`. */
|
|
22847
22847
|
interface GetFloorsQuery {
|
|
@@ -22873,11 +22873,11 @@ interface GetFeedPostsQuery {
|
|
|
22873
22873
|
limit?: number;
|
|
22874
22874
|
}
|
|
22875
22875
|
/** Request body for `sb.feed.posts.create()`. */
|
|
22876
|
-
type CreateFeedPostBody = NonNullable<operations["createFeedPost"]["requestBody"]>["content"]["application/json"]
|
|
22876
|
+
type CreateFeedPostBody = NonNullable<NonNullable<operations["createFeedPost"]["requestBody"]>["content"]["application/json"]["post"]>;
|
|
22877
22877
|
/** Request body for `sb.feed.comments.create()`. */
|
|
22878
|
-
type CreateFeedPostCommentBody = NonNullable<operations["createFeedPostComment"]["requestBody"]>["content"]["application/json"]
|
|
22878
|
+
type CreateFeedPostCommentBody = NonNullable<NonNullable<operations["createFeedPostComment"]["requestBody"]>["content"]["application/json"]["comment"]>;
|
|
22879
22879
|
/** Request body for `sb.feed.posts.update()`. */
|
|
22880
|
-
type UpdateFeedPostBody = NonNullable<operations["updateFeedPost"]["requestBody"]>["content"]["application/json"]
|
|
22880
|
+
type UpdateFeedPostBody = NonNullable<NonNullable<operations["updateFeedPost"]["requestBody"]>["content"]["application/json"]["post"]>;
|
|
22881
22881
|
|
|
22882
22882
|
/** A Event entity as returned by the Spacebring API. */
|
|
22883
22883
|
type Event = NonNullable<components["schemas"]["event"]>;
|
|
@@ -22904,7 +22904,7 @@ interface GetEventTicketsQuery {
|
|
|
22904
22904
|
nextPageToken?: string;
|
|
22905
22905
|
}
|
|
22906
22906
|
/** Request body for `sb.events.create()`. */
|
|
22907
|
-
type CreateEventBody = NonNullable<operations["createEvent"]["requestBody"]>["content"]["application/json"]
|
|
22907
|
+
type CreateEventBody = NonNullable<NonNullable<operations["createEvent"]["requestBody"]>["content"]["application/json"]["event"]>;
|
|
22908
22908
|
|
|
22909
22909
|
/** A Coupon entity as returned by the Spacebring API. */
|
|
22910
22910
|
type Coupon = NonNullable<components["schemas"]["coupon"]>;
|
|
@@ -22942,11 +22942,11 @@ interface GetPromocodesQuery {
|
|
|
22942
22942
|
couponRef?: string;
|
|
22943
22943
|
}
|
|
22944
22944
|
/** Request body for `sb.discounts.coupons.create()`. */
|
|
22945
|
-
type CreateCouponBody = NonNullable<operations["createCoupon"]["requestBody"]>["content"]["application/json"]
|
|
22945
|
+
type CreateCouponBody = NonNullable<NonNullable<operations["createCoupon"]["requestBody"]>["content"]["application/json"]["coupon"]>;
|
|
22946
22946
|
/** Request body for `sb.discounts.promocodes.create()`. */
|
|
22947
|
-
type CreatePromocodeBody = NonNullable<operations["createPromocode"]["requestBody"]>["content"]["application/json"]
|
|
22947
|
+
type CreatePromocodeBody = NonNullable<NonNullable<operations["createPromocode"]["requestBody"]>["content"]["application/json"]["promocode"]>;
|
|
22948
22948
|
/** Request body for `sb.discounts.coupons.update()`. */
|
|
22949
|
-
type UpdateCouponBody = NonNullable<operations["updateCoupon"]["requestBody"]>["content"]["application/json"]
|
|
22949
|
+
type UpdateCouponBody = NonNullable<NonNullable<operations["updateCoupon"]["requestBody"]>["content"]["application/json"]["coupon"]>;
|
|
22950
22950
|
|
|
22951
22951
|
/** A Contract entity as returned by the Spacebring API. */
|
|
22952
22952
|
type Contract = NonNullable<operations["getContract"]["responses"][200]["content"]["application/json"]["contract"]>;
|
|
@@ -22973,11 +22973,11 @@ interface GetContractsQuery {
|
|
|
22973
22973
|
status?: string;
|
|
22974
22974
|
}
|
|
22975
22975
|
/** Request body for `sb.contracts.create()`. */
|
|
22976
|
-
type CreateContractBody = NonNullable<operations["createContract"]["requestBody"]>["content"]["application/json"]
|
|
22976
|
+
type CreateContractBody = NonNullable<NonNullable<operations["createContract"]["requestBody"]>["content"]["application/json"]["contract"]>;
|
|
22977
22977
|
/** Request body for `sb.contracts.issue()`. */
|
|
22978
|
-
type IssueContractBody = NonNullable<operations["issueContract"]["requestBody"]>["content"]["application/json"]
|
|
22978
|
+
type IssueContractBody = NonNullable<NonNullable<operations["issueContract"]["requestBody"]>["content"]["application/json"]["signatureMethod"]>;
|
|
22979
22979
|
/** Request body for `sb.contracts.terminate()`. */
|
|
22980
|
-
type TerminateContractBody = NonNullable<operations["terminateContract"]["requestBody"]>["content"]["application/json"]
|
|
22980
|
+
type TerminateContractBody = NonNullable<NonNullable<operations["terminateContract"]["requestBody"]>["content"]["application/json"]["reason"]>;
|
|
22981
22981
|
|
|
22982
22982
|
/** A Company entity as returned by the Spacebring API. */
|
|
22983
22983
|
type Company = NonNullable<components["schemas"]["company"]>;
|
|
@@ -23027,13 +23027,13 @@ interface GetMembershipsQuery {
|
|
|
23027
23027
|
types?: "member" | "nonmember";
|
|
23028
23028
|
}
|
|
23029
23029
|
/** Request body for `sb.community.companies.create()`. */
|
|
23030
|
-
type CreateCompanyBody = NonNullable<operations["createCompany"]["requestBody"]>["content"]["application/json"]
|
|
23030
|
+
type CreateCompanyBody = NonNullable<NonNullable<operations["createCompany"]["requestBody"]>["content"]["application/json"]["company"]>;
|
|
23031
23031
|
/** Request body for `sb.community.memberships.create()`. */
|
|
23032
23032
|
type CreateMembershipBody = NonNullable<operations["createMembership"]["requestBody"]>["content"]["application/json"];
|
|
23033
23033
|
/** Request body for `sb.community.companies.update()`. */
|
|
23034
|
-
type UpdateCompanyBody = NonNullable<operations["updateCompany"]["requestBody"]>["content"]["application/json"]
|
|
23034
|
+
type UpdateCompanyBody = NonNullable<NonNullable<operations["updateCompany"]["requestBody"]>["content"]["application/json"]["company"]>;
|
|
23035
23035
|
/** Request body for `sb.community.memberships.update()`. */
|
|
23036
|
-
type UpdateMembershipBody = NonNullable<operations["updateMembership"]["requestBody"]>["content"]["application/json"]
|
|
23036
|
+
type UpdateMembershipBody = NonNullable<NonNullable<operations["updateMembership"]["requestBody"]>["content"]["application/json"]["membership"]>;
|
|
23037
23037
|
|
|
23038
23038
|
/** A CreditNote entity as returned by the Spacebring API. */
|
|
23039
23039
|
type CreditNote = NonNullable<components["schemas"]["creditNote"]>;
|
|
@@ -23137,30 +23137,30 @@ interface ListInvoiceItemsQuery {
|
|
|
23137
23137
|
type?: string;
|
|
23138
23138
|
}
|
|
23139
23139
|
/** Request body for `sb.billing.creditNotes.create()`. */
|
|
23140
|
-
type CreateCreditNoteBody = NonNullable<operations["createCreditNote"]["requestBody"]>["content"]["application/json"]
|
|
23140
|
+
type CreateCreditNoteBody = NonNullable<NonNullable<operations["createCreditNote"]["requestBody"]>["content"]["application/json"]["creditNote"]>;
|
|
23141
23141
|
/** Request body for `sb.billing.invoices.create()`. */
|
|
23142
23142
|
type CreateInvoiceBody = NonNullable<operations["createInvoice"]["requestBody"]>["content"]["application/json"];
|
|
23143
23143
|
/** Request body for `sb.billing.invoices.items.create()`. */
|
|
23144
|
-
type CreateInvoiceItemBody = NonNullable<operations["createInvoiceItem"]["requestBody"]>["content"]["application/json"]
|
|
23144
|
+
type CreateInvoiceItemBody = NonNullable<NonNullable<operations["createInvoiceItem"]["requestBody"]>["content"]["application/json"]["invoiceItem"]>;
|
|
23145
23145
|
/** Request body for `sb.billing.invoices.issue()`. */
|
|
23146
|
-
type IssueInvoiceBody = NonNullable<operations["issueInvoice"]["requestBody"]>["content"]["application/json"]
|
|
23146
|
+
type IssueInvoiceBody = NonNullable<NonNullable<operations["issueInvoice"]["requestBody"]>["content"]["application/json"]["skipAutoCharge"]>;
|
|
23147
23147
|
/** Request body for `sb.billing.invoices.pay()`. */
|
|
23148
23148
|
type PayInvoiceBody = NonNullable<operations["payInvoice"]["requestBody"]>["content"]["application/json"];
|
|
23149
23149
|
/** Request body for `sb.billing.creditNotes.preview()`. */
|
|
23150
|
-
type PreviewCreditNoteBody = NonNullable<operations["previewCreditNote"]["requestBody"]>["content"]["application/json"]
|
|
23150
|
+
type PreviewCreditNoteBody = NonNullable<NonNullable<operations["previewCreditNote"]["requestBody"]>["content"]["application/json"]["creditNote"]>;
|
|
23151
23151
|
/** Request body for `sb.billing.creditNotes.update()`. */
|
|
23152
|
-
type UpdateCreditNoteBody = NonNullable<operations["updateCreditNote"]["requestBody"]>["content"]["application/json"]
|
|
23152
|
+
type UpdateCreditNoteBody = NonNullable<NonNullable<operations["updateCreditNote"]["requestBody"]>["content"]["application/json"]["creditNote"]>;
|
|
23153
23153
|
/** Request body for `sb.billing.invoices.update()`. */
|
|
23154
|
-
type UpdateInvoiceBody = NonNullable<operations["updateInvoice"]["requestBody"]>["content"]["application/json"]
|
|
23154
|
+
type UpdateInvoiceBody = NonNullable<NonNullable<operations["updateInvoice"]["requestBody"]>["content"]["application/json"]["invoice"]>;
|
|
23155
23155
|
/** Request body for `sb.billing.invoices.items.update()`. */
|
|
23156
|
-
type UpdateInvoiceItemBody = NonNullable<operations["updateInvoiceItem"]["requestBody"]>["content"]["application/json"]
|
|
23156
|
+
type UpdateInvoiceItemBody = NonNullable<NonNullable<operations["updateInvoiceItem"]["requestBody"]>["content"]["application/json"]["invoiceItem"]>;
|
|
23157
23157
|
|
|
23158
23158
|
/** A Application entity as returned by the Spacebring API. */
|
|
23159
23159
|
type Application = NonNullable<components["schemas"]["benefitApplication"]>;
|
|
23160
23160
|
/** A Benefit entity as returned by the Spacebring API. */
|
|
23161
23161
|
type Benefit = NonNullable<components["schemas"]["benefit"]>;
|
|
23162
23162
|
/** A BenefitCategory entity as returned by the Spacebring API. */
|
|
23163
|
-
type BenefitCategory = NonNullable<
|
|
23163
|
+
type BenefitCategory = NonNullable<components["schemas"]["benefitCategory"]>;
|
|
23164
23164
|
/** Query parameters for `sb.benefits.applications.list()`. */
|
|
23165
23165
|
interface GetBenefitApplicationsQuery {
|
|
23166
23166
|
/** UUID of the benefit. */
|
|
@@ -23201,15 +23201,15 @@ interface GetBenefitsQuery {
|
|
|
23201
23201
|
nextPageToken?: string;
|
|
23202
23202
|
}
|
|
23203
23203
|
/** Request body for `sb.benefits.applications.create()`. */
|
|
23204
|
-
type ApplyBenefitBody = NonNullable<operations["applyBenefit"]["requestBody"]>["content"]["application/json"]
|
|
23204
|
+
type ApplyBenefitBody = NonNullable<NonNullable<operations["applyBenefit"]["requestBody"]>["content"]["application/json"]["application"]>;
|
|
23205
23205
|
/** Request body for `sb.benefits.create()`. */
|
|
23206
|
-
type CreateBenefitBody = NonNullable<operations["createBenefit"]["requestBody"]>["content"]["application/json"]
|
|
23206
|
+
type CreateBenefitBody = NonNullable<NonNullable<operations["createBenefit"]["requestBody"]>["content"]["application/json"]["benefit"]>;
|
|
23207
23207
|
/** Request body for `sb.benefits.categories.create()`. */
|
|
23208
|
-
type CreateBenefitCategoryBody = NonNullable<operations["createBenefitCategory"]["requestBody"]>["content"]["application/json"]
|
|
23208
|
+
type CreateBenefitCategoryBody = NonNullable<NonNullable<operations["createBenefitCategory"]["requestBody"]>["content"]["application/json"]["category"]>;
|
|
23209
23209
|
/** Request body for `sb.benefits.update()`. */
|
|
23210
|
-
type UpdateBenefitBody = NonNullable<operations["updateBenefit"]["requestBody"]>["content"]["application/json"]
|
|
23210
|
+
type UpdateBenefitBody = NonNullable<NonNullable<operations["updateBenefit"]["requestBody"]>["content"]["application/json"]["benefit"]>;
|
|
23211
23211
|
/** Request body for `sb.benefits.categories.update()`. */
|
|
23212
|
-
type UpdateBenefitCategoryBody = NonNullable<operations["updateBenefitCategory"]["requestBody"]>["content"]["application/json"]
|
|
23212
|
+
type UpdateBenefitCategoryBody = NonNullable<NonNullable<operations["updateBenefitCategory"]["requestBody"]>["content"]["application/json"]["category"]>;
|
|
23213
23213
|
|
|
23214
23214
|
/** A AltCurrency entity as returned by the Spacebring API. */
|
|
23215
23215
|
type AltCurrency = NonNullable<components["schemas"]["altCurrency"]>;
|
|
@@ -23223,9 +23223,9 @@ interface GetAltCurrenciesQuery {
|
|
|
23223
23223
|
limit?: number;
|
|
23224
23224
|
}
|
|
23225
23225
|
/** Request body for `sb.altCurrencies.create()`. */
|
|
23226
|
-
type CreateAltCurrencyBody = NonNullable<operations["createAltCurrency"]["requestBody"]>["content"]["application/json"]
|
|
23226
|
+
type CreateAltCurrencyBody = NonNullable<NonNullable<operations["createAltCurrency"]["requestBody"]>["content"]["application/json"]["altCurrency"]>;
|
|
23227
23227
|
/** Request body for `sb.altCurrencies.update()`. */
|
|
23228
|
-
type UpdateAltCurrencyBody = NonNullable<operations["updateAltCurrency"]["requestBody"]>["content"]["application/json"]
|
|
23228
|
+
type UpdateAltCurrencyBody = NonNullable<NonNullable<operations["updateAltCurrency"]["requestBody"]>["content"]["application/json"]["altCurrency"]>;
|
|
23229
23229
|
|
|
23230
23230
|
declare function createResources(client: Client<paths>, defaults: SpacebringDefaults): {
|
|
23231
23231
|
altCurrencies: {
|
|
@@ -23235,8 +23235,8 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
23235
23235
|
searchQueryNext?: string;
|
|
23236
23236
|
}>;
|
|
23237
23237
|
iterate(query: Omit<GetAltCurrenciesQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<AltCurrency, void, undefined>;
|
|
23238
|
-
create(
|
|
23239
|
-
update(id: string,
|
|
23238
|
+
create(altCurrency: CreateAltCurrencyBody, options?: SpacebringRequestOptions): Promise<AltCurrency>;
|
|
23239
|
+
update(id: string, altCurrency: UpdateAltCurrencyBody, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
23240
23240
|
delete(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
23241
23241
|
};
|
|
23242
23242
|
benefits: {
|
|
@@ -23247,8 +23247,8 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
23247
23247
|
}>;
|
|
23248
23248
|
iterate(query?: Omit<GetBenefitsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Benefit, void, undefined>;
|
|
23249
23249
|
get(benefitId: string, options?: SpacebringRequestOptions): Promise<Benefit>;
|
|
23250
|
-
create(
|
|
23251
|
-
update(benefitId: string,
|
|
23250
|
+
create(benefit: CreateBenefitBody, options?: SpacebringRequestOptions): Promise<operations["createBenefit"]["responses"][201]["content"]["application/json"]>;
|
|
23251
|
+
update(benefitId: string, benefit: UpdateBenefitBody, options?: SpacebringRequestOptions): Promise<Benefit>;
|
|
23252
23252
|
delete(benefitId: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
23253
23253
|
applications: {
|
|
23254
23254
|
list(query?: GetBenefitApplicationsQuery, options?: SpacebringRequestOptions): Promise<{
|
|
@@ -23258,13 +23258,13 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
23258
23258
|
}>;
|
|
23259
23259
|
iterate(query?: Omit<GetBenefitApplicationsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Application, void, undefined>;
|
|
23260
23260
|
get(benefitApplicationId: string, options?: SpacebringRequestOptions): Promise<Application>;
|
|
23261
|
-
create(
|
|
23261
|
+
create(application: ApplyBenefitBody, options?: SpacebringRequestOptions): Promise<Application>;
|
|
23262
23262
|
};
|
|
23263
23263
|
categories: {
|
|
23264
23264
|
list(query: GetBenefitCategoriesQuery, options?: SpacebringRequestOptions): Promise<BenefitCategory[]>;
|
|
23265
23265
|
get(categoryId: string, options?: SpacebringRequestOptions): Promise<BenefitCategory>;
|
|
23266
|
-
create(
|
|
23267
|
-
update(categoryId: string,
|
|
23266
|
+
create(category: CreateBenefitCategoryBody, options?: SpacebringRequestOptions): Promise<BenefitCategory>;
|
|
23267
|
+
update(categoryId: string, category: UpdateBenefitCategoryBody, options?: SpacebringRequestOptions): Promise<BenefitCategory>;
|
|
23268
23268
|
delete(categoryId: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
23269
23269
|
};
|
|
23270
23270
|
};
|
|
@@ -23277,9 +23277,9 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
23277
23277
|
}>;
|
|
23278
23278
|
iterate(query?: Omit<GetCreditNotesQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<CreditNote, void, undefined>;
|
|
23279
23279
|
get(id: string, options?: SpacebringRequestOptions): Promise<CreditNote>;
|
|
23280
|
-
create(
|
|
23281
|
-
update(id: string,
|
|
23282
|
-
preview(
|
|
23280
|
+
create(creditNote: CreateCreditNoteBody, options?: SpacebringRequestOptions): Promise<CreditNote>;
|
|
23281
|
+
update(id: string, creditNote: UpdateCreditNoteBody, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
23282
|
+
preview(creditNote: PreviewCreditNoteBody, options?: SpacebringRequestOptions): Promise<CreditNote>;
|
|
23283
23283
|
};
|
|
23284
23284
|
invoices: {
|
|
23285
23285
|
list(query?: GetInvoicesQuery, options?: SpacebringRequestOptions): Promise<{
|
|
@@ -23290,13 +23290,13 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
23290
23290
|
iterate(query?: Omit<GetInvoicesQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Invoice, void, undefined>;
|
|
23291
23291
|
get(invoiceId: string, options?: SpacebringRequestOptions): Promise<Invoice>;
|
|
23292
23292
|
create(body: CreateInvoiceBody, options?: SpacebringRequestOptions): Promise<Invoice>;
|
|
23293
|
-
update(invoiceId: string,
|
|
23293
|
+
update(invoiceId: string, invoice: UpdateInvoiceBody, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
23294
23294
|
delete(invoiceId: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
23295
23295
|
cancelPayment(invoiceId: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
23296
23296
|
duplicate(invoiceId: string, options?: SpacebringRequestOptions): Promise<Invoice>;
|
|
23297
23297
|
getItems(invoiceId: string, options?: SpacebringRequestOptions): Promise<operations["getInvoiceItems"]["responses"][200]["content"]["application/json"]>;
|
|
23298
23298
|
getUpcoming(query?: GetUpcomingInvoiceQuery, options?: SpacebringRequestOptions): Promise<operations["getUpcomingInvoice"]["responses"][200]["content"]["application/json"]>;
|
|
23299
|
-
issue(invoiceId: string,
|
|
23299
|
+
issue(invoiceId: string, skipAutoCharge?: IssueInvoiceBody, options?: SpacebringRequestOptions): Promise<operations["issueInvoice"]["responses"][200]["content"]["application/json"]>;
|
|
23300
23300
|
pay(invoiceId: string, body: PayInvoiceBody, options?: SpacebringRequestOptions): Promise<operations["payInvoice"]["responses"][200]["content"]["application/json"]>;
|
|
23301
23301
|
resend(invoiceId: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
23302
23302
|
void(invoiceId: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
@@ -23308,8 +23308,8 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
23308
23308
|
}>;
|
|
23309
23309
|
iterate(query?: Omit<ListInvoiceItemsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<InvoiceItem, void, undefined>;
|
|
23310
23310
|
get(id: string, options?: SpacebringRequestOptions): Promise<InvoiceItem>;
|
|
23311
|
-
create(
|
|
23312
|
-
update(id: string,
|
|
23311
|
+
create(invoiceItem: CreateInvoiceItemBody, options?: SpacebringRequestOptions): Promise<InvoiceItem>;
|
|
23312
|
+
update(id: string, invoiceItem: UpdateInvoiceItemBody, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
23313
23313
|
delete(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
23314
23314
|
getUpcoming(query?: GetUpcomingInvoiceItemsQuery, options?: SpacebringRequestOptions): Promise<InvoiceItem[]>;
|
|
23315
23315
|
};
|
|
@@ -23323,8 +23323,8 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
23323
23323
|
}>;
|
|
23324
23324
|
iterate(query: Omit<GetCompaniesQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Company, void, undefined>;
|
|
23325
23325
|
get(id: string, options?: SpacebringRequestOptions): Promise<Company>;
|
|
23326
|
-
create(
|
|
23327
|
-
update(id: string,
|
|
23326
|
+
create(company: CreateCompanyBody, options?: SpacebringRequestOptions): Promise<Company>;
|
|
23327
|
+
update(id: string, company: UpdateCompanyBody, options?: SpacebringRequestOptions): Promise<Company>;
|
|
23328
23328
|
};
|
|
23329
23329
|
memberships: {
|
|
23330
23330
|
list(query: GetMembershipsQuery, options?: SpacebringRequestOptions): Promise<{
|
|
@@ -23335,7 +23335,7 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
23335
23335
|
iterate(query: Omit<GetMembershipsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Membership, void, undefined>;
|
|
23336
23336
|
get(id: string, options?: SpacebringRequestOptions): Promise<Membership>;
|
|
23337
23337
|
create(body: CreateMembershipBody, options?: SpacebringRequestOptions): Promise<Membership>;
|
|
23338
|
-
update(id: number,
|
|
23338
|
+
update(id: number, membership: UpdateMembershipBody, options?: SpacebringRequestOptions): Promise<Membership>;
|
|
23339
23339
|
delete(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
23340
23340
|
iterateDeleted(query: Omit<GetMembershipsDeletedQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Membership, void, undefined>;
|
|
23341
23341
|
listDeleted(query: GetMembershipsDeletedQuery, options?: SpacebringRequestOptions): Promise<{
|
|
@@ -23352,10 +23352,10 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
23352
23352
|
}>;
|
|
23353
23353
|
iterate(query?: Omit<GetContractsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Contract, void, undefined>;
|
|
23354
23354
|
get(contractId: string, options?: SpacebringRequestOptions): Promise<Contract>;
|
|
23355
|
-
create(
|
|
23355
|
+
create(contract: CreateContractBody, options?: SpacebringRequestOptions): Promise<Contract>;
|
|
23356
23356
|
delete(contractId: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
23357
|
-
issue(contractId: string,
|
|
23358
|
-
terminate(contractId: string,
|
|
23357
|
+
issue(contractId: string, signatureMethod: IssueContractBody, options?: SpacebringRequestOptions): Promise<Contract>;
|
|
23358
|
+
terminate(contractId: string, reason: TerminateContractBody, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
23359
23359
|
};
|
|
23360
23360
|
discounts: {
|
|
23361
23361
|
coupons: {
|
|
@@ -23366,14 +23366,14 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
23366
23366
|
}>;
|
|
23367
23367
|
iterate(query: Omit<GetCouponsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Coupon, void, undefined>;
|
|
23368
23368
|
get(id: string, options?: SpacebringRequestOptions): Promise<Coupon>;
|
|
23369
|
-
create(
|
|
23370
|
-
update(id: string,
|
|
23369
|
+
create(coupon: CreateCouponBody, options?: SpacebringRequestOptions): Promise<Coupon>;
|
|
23370
|
+
update(id: string, coupon: UpdateCouponBody, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
23371
23371
|
delete(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
23372
23372
|
};
|
|
23373
23373
|
promocodes: {
|
|
23374
23374
|
list(query?: GetPromocodesQuery, options?: SpacebringRequestOptions): Promise<Promocode[]>;
|
|
23375
23375
|
get(id: string, options?: SpacebringRequestOptions): Promise<Promocode>;
|
|
23376
|
-
create(
|
|
23376
|
+
create(promocode: CreatePromocodeBody, options?: SpacebringRequestOptions): Promise<Promocode>;
|
|
23377
23377
|
archive(id: string, options?: SpacebringRequestOptions): Promise<Promocode>;
|
|
23378
23378
|
};
|
|
23379
23379
|
redemptions: {
|
|
@@ -23388,7 +23388,7 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
23388
23388
|
events: {
|
|
23389
23389
|
list(query: GetEventsByOrganizationQuery, options?: SpacebringRequestOptions): Promise<operations["getEventsByOrganization"]["responses"][200]["content"]["application/json"]>;
|
|
23390
23390
|
get(id: string, options?: SpacebringRequestOptions): Promise<Event>;
|
|
23391
|
-
create(
|
|
23391
|
+
create(event: CreateEventBody, options?: SpacebringRequestOptions): Promise<Event>;
|
|
23392
23392
|
delete(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
23393
23393
|
cancel(id: string, options?: SpacebringRequestOptions): Promise<Event>;
|
|
23394
23394
|
copy(id: string, options?: SpacebringRequestOptions): Promise<Event>;
|
|
@@ -23404,7 +23404,7 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
23404
23404
|
};
|
|
23405
23405
|
feed: {
|
|
23406
23406
|
comments: {
|
|
23407
|
-
create(
|
|
23407
|
+
create(comment: CreateFeedPostCommentBody, options?: SpacebringRequestOptions): Promise<FeedComment>;
|
|
23408
23408
|
delete(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
23409
23409
|
createLike(id: string, options?: SpacebringRequestOptions): Promise<CommentLike>;
|
|
23410
23410
|
deleteLike(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
@@ -23417,8 +23417,8 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
23417
23417
|
}>;
|
|
23418
23418
|
iterate(query: Omit<GetFeedPostsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Post, void, undefined>;
|
|
23419
23419
|
get(id: string, options?: SpacebringRequestOptions): Promise<Post>;
|
|
23420
|
-
create(
|
|
23421
|
-
update(id: string,
|
|
23420
|
+
create(post: CreateFeedPostBody, options?: SpacebringRequestOptions): Promise<Post>;
|
|
23421
|
+
update(id: string, post: UpdateFeedPostBody, options?: SpacebringRequestOptions): Promise<Post>;
|
|
23422
23422
|
delete(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
23423
23423
|
createLike(id: string, options?: SpacebringRequestOptions): Promise<PostLike>;
|
|
23424
23424
|
deleteLike(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
@@ -23438,8 +23438,8 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
23438
23438
|
}>;
|
|
23439
23439
|
iterate(query: Omit<GetGuidesQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Guide, void, undefined>;
|
|
23440
23440
|
get(guideId: string, options?: SpacebringRequestOptions): Promise<Guide>;
|
|
23441
|
-
create(
|
|
23442
|
-
update(guideId: string,
|
|
23441
|
+
create(guide: CreateGuideBody, options?: SpacebringRequestOptions): Promise<Guide>;
|
|
23442
|
+
update(guideId: string, guide: PatchGuideBody, options?: SpacebringRequestOptions): Promise<Guide>;
|
|
23443
23443
|
delete(guideId: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
23444
23444
|
};
|
|
23445
23445
|
locations: {
|
|
@@ -23457,8 +23457,8 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
23457
23457
|
}>;
|
|
23458
23458
|
iterate(query?: Omit<GetPlansQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Plan, void, undefined>;
|
|
23459
23459
|
get(planId: string, options?: SpacebringRequestOptions): Promise<Plan>;
|
|
23460
|
-
create(
|
|
23461
|
-
update(planId: string,
|
|
23460
|
+
create(plan: CreatePlanBody, options?: SpacebringRequestOptions): Promise<Plan>;
|
|
23461
|
+
update(planId: string, plan: UpdatePlanBody, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
23462
23462
|
delete(planId: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
23463
23463
|
};
|
|
23464
23464
|
registrations: {
|
|
@@ -23477,8 +23477,8 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
23477
23477
|
}>;
|
|
23478
23478
|
iterate(query: Omit<GetResourcesQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Resource, void, undefined>;
|
|
23479
23479
|
get(id: string, options?: SpacebringRequestOptions): Promise<Resource>;
|
|
23480
|
-
create(
|
|
23481
|
-
update(id: string,
|
|
23480
|
+
create(resource: CreateResourceBody, options?: SpacebringRequestOptions): Promise<Resource>;
|
|
23481
|
+
update(id: string, resource: PatchResourceBody, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
23482
23482
|
bookings: {
|
|
23483
23483
|
list(query?: GetBookingsQuery, options?: SpacebringRequestOptions): Promise<{
|
|
23484
23484
|
bookings?: Booking[];
|
|
@@ -23487,7 +23487,7 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
23487
23487
|
}>;
|
|
23488
23488
|
iterate(query?: Omit<GetBookingsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Booking, void, undefined>;
|
|
23489
23489
|
get(id: string, options?: SpacebringRequestOptions): Promise<Booking>;
|
|
23490
|
-
create(
|
|
23490
|
+
create(booking: CreateBookingBody, options?: SpacebringRequestOptions): Promise<Booking>;
|
|
23491
23491
|
delete(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
23492
23492
|
};
|
|
23493
23493
|
};
|
|
@@ -23495,8 +23495,8 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
23495
23495
|
categories: {
|
|
23496
23496
|
list(query: GetShopCategoriesQuery, options?: SpacebringRequestOptions): Promise<ShopCategory[]>;
|
|
23497
23497
|
get(categoryId: string, options?: SpacebringRequestOptions): Promise<ShopCategory>;
|
|
23498
|
-
create(
|
|
23499
|
-
update(categoryId: string,
|
|
23498
|
+
create(category: CreateShopCategoryBody, options?: SpacebringRequestOptions): Promise<ShopCategory>;
|
|
23499
|
+
update(categoryId: string, category: UpdateShopCategoryBody, options?: SpacebringRequestOptions): Promise<ShopCategory>;
|
|
23500
23500
|
delete(categoryId: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
23501
23501
|
};
|
|
23502
23502
|
orders: {
|
|
@@ -23516,8 +23516,8 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
23516
23516
|
}>;
|
|
23517
23517
|
iterate(query?: Omit<GetProductsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Product, void, undefined>;
|
|
23518
23518
|
get(productId: string, options?: SpacebringRequestOptions): Promise<Product>;
|
|
23519
|
-
create(
|
|
23520
|
-
update(productId: string,
|
|
23519
|
+
create(product: CreateProductBody, options?: SpacebringRequestOptions): Promise<Product>;
|
|
23520
|
+
update(productId: string, product: UpdateProductBody, options?: SpacebringRequestOptions): Promise<Product>;
|
|
23521
23521
|
delete(productId: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
23522
23522
|
};
|
|
23523
23523
|
};
|
|
@@ -23530,11 +23530,11 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
23530
23530
|
iterate(query?: Omit<GetSubscriptionsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Subscription, void, undefined>;
|
|
23531
23531
|
get(subscriptionId: string, options?: SpacebringRequestOptions): Promise<Subscription>;
|
|
23532
23532
|
create(body: CreateSubscriptionBody, options?: SpacebringRequestOptions): Promise<Subscription>;
|
|
23533
|
-
update(subscriptionId: string,
|
|
23533
|
+
update(subscriptionId: string, subscription: UpdateSubscriptionBody, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
23534
23534
|
delete(subscriptionId: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
23535
|
-
createItem(subscriptionId: string,
|
|
23535
|
+
createItem(subscriptionId: string, item: CreateSubscriptionItemBody, options?: SpacebringRequestOptions): Promise<Subscription>;
|
|
23536
23536
|
deleteItem(subscriptionId: string, itemId: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
23537
|
-
updateItem(subscriptionId: string, itemId: string,
|
|
23537
|
+
updateItem(subscriptionId: string, itemId: string, item: UpdateSubscriptionItemBody, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
23538
23538
|
};
|
|
23539
23539
|
support: {
|
|
23540
23540
|
tickets: {
|
|
@@ -23545,12 +23545,12 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
23545
23545
|
}>;
|
|
23546
23546
|
iterate(query: Omit<GetSupportTicketsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<SupportTicket, void, undefined>;
|
|
23547
23547
|
get(id: string, options?: SpacebringRequestOptions): Promise<operations["getSupportTicket"]["responses"][200]["content"]["application/json"]>;
|
|
23548
|
-
create(
|
|
23549
|
-
updateAssignee(id: string,
|
|
23550
|
-
updateStatus(id: string,
|
|
23551
|
-
updateType(id: string,
|
|
23548
|
+
create(ticket: CreateSupportTicketBody, options?: SpacebringRequestOptions): Promise<operations["createSupportTicket"]["responses"][201]["content"]["application/json"]>;
|
|
23549
|
+
updateAssignee(id: string, ticket: UpdateSupportTicketAssigneeBody, options?: SpacebringRequestOptions): Promise<operations["updateSupportTicketAssignee"]["responses"][200]["content"]["application/json"]>;
|
|
23550
|
+
updateStatus(id: string, ticket: UpdateSupportTicketStatusBody, options?: SpacebringRequestOptions): Promise<operations["updateSupportTicketStatus"]["responses"][200]["content"]["application/json"]>;
|
|
23551
|
+
updateType(id: string, ticket: UpdateSupportTicketTypeBody, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
23552
23552
|
comment: {
|
|
23553
|
-
create(
|
|
23553
|
+
create(activity: CreateSupportTicketCommentBody, options?: SpacebringRequestOptions): Promise<Activity>;
|
|
23554
23554
|
delete(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
23555
23555
|
};
|
|
23556
23556
|
};
|
|
@@ -23566,7 +23566,7 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
23566
23566
|
nextPageToken?: string;
|
|
23567
23567
|
}>;
|
|
23568
23568
|
iterate(query?: Omit<GetCreditsTransactionsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<CreditTransaction, void, undefined>;
|
|
23569
|
-
create(
|
|
23569
|
+
create(transaction: CreateCreditsTransactionBody, options?: SpacebringRequestOptions): Promise<CreditTransaction>;
|
|
23570
23570
|
};
|
|
23571
23571
|
dayPasses: {
|
|
23572
23572
|
list(query?: GetDayPassesTransactionsQuery, options?: SpacebringRequestOptions): Promise<{
|
|
@@ -23574,7 +23574,7 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
23574
23574
|
transactions: DayPassTransaction[];
|
|
23575
23575
|
}>;
|
|
23576
23576
|
iterate(query?: Omit<GetDayPassesTransactionsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<DayPassTransaction, void, undefined>;
|
|
23577
|
-
create(
|
|
23577
|
+
create(transaction: CreateDayPassesTransactionBody, options?: SpacebringRequestOptions): Promise<DayPassTransaction>;
|
|
23578
23578
|
};
|
|
23579
23579
|
money: {
|
|
23580
23580
|
list(query: GetMoneyTransactionsQuery, options?: SpacebringRequestOptions): Promise<{
|
|
@@ -23594,7 +23594,7 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
23594
23594
|
}>;
|
|
23595
23595
|
iterate(query: Omit<GetContactsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Contact, void, undefined>;
|
|
23596
23596
|
get(contactId: string, options?: SpacebringRequestOptions): Promise<Contact>;
|
|
23597
|
-
create(
|
|
23597
|
+
create(contact: CreateContactBody, options?: SpacebringRequestOptions): Promise<Contact>;
|
|
23598
23598
|
};
|
|
23599
23599
|
requests: {
|
|
23600
23600
|
list(query: GetRequestsQuery, options?: SpacebringRequestOptions): Promise<{
|
|
@@ -23604,7 +23604,7 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
23604
23604
|
}>;
|
|
23605
23605
|
iterate(query: Omit<GetRequestsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Request$1, void, undefined>;
|
|
23606
23606
|
get(id: string, options?: SpacebringRequestOptions): Promise<Request$1>;
|
|
23607
|
-
create(
|
|
23607
|
+
create(request: CreateRequestBody, options?: SpacebringRequestOptions): Promise<Request$1>;
|
|
23608
23608
|
approve(id: string, options?: SpacebringRequestOptions): Promise<RequestVisit>;
|
|
23609
23609
|
reject(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
23610
23610
|
};
|
|
@@ -23616,8 +23616,8 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
23616
23616
|
}>;
|
|
23617
23617
|
iterate(query: Omit<GetVisitsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<VisitorVisit, void, undefined>;
|
|
23618
23618
|
get(id: string, options?: SpacebringRequestOptions): Promise<VisitorVisit>;
|
|
23619
|
-
create(
|
|
23620
|
-
update(id: string,
|
|
23619
|
+
create(visit: CreateVisitBody, options?: SpacebringRequestOptions): Promise<VisitorVisit>;
|
|
23620
|
+
update(id: string, visit: UpdateVisitBody, options?: SpacebringRequestOptions): Promise<VisitorVisit>;
|
|
23621
23621
|
delete(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
23622
23622
|
checkIn(body: CheckInVisitBody, options?: SpacebringRequestOptions): Promise<VisitorVisit>;
|
|
23623
23623
|
checkOut(body: CheckOutVisitBody, options?: SpacebringRequestOptions): Promise<VisitorVisit>;
|