@izak0s/spacebring-api 1.9.0 → 1.10.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.map +1 -1
- package/dist/index.d.cts +215 -95
- package/dist/index.d.ts +215 -95
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -13469,6 +13469,7 @@ interface components {
|
|
|
13469
13469
|
patchGuide: {
|
|
13470
13470
|
content: {
|
|
13471
13471
|
"application/json": {
|
|
13472
|
+
/** @description Guide fields to update. */
|
|
13472
13473
|
guide: {
|
|
13473
13474
|
/** @description Markdown content of the guide. */
|
|
13474
13475
|
description?: string;
|
|
@@ -15002,6 +15003,7 @@ interface components {
|
|
|
15002
15003
|
patchSubscription: {
|
|
15003
15004
|
content: {
|
|
15004
15005
|
"application/json": {
|
|
15006
|
+
/** @description Subscription fields to update. */
|
|
15005
15007
|
subscription: {
|
|
15006
15008
|
/** @description Whether pending items are added to the next invoice. */
|
|
15007
15009
|
addPendingItemsToInvoice?: boolean;
|
|
@@ -15357,6 +15359,7 @@ interface components {
|
|
|
15357
15359
|
updateSubscriptionItem: {
|
|
15358
15360
|
content: {
|
|
15359
15361
|
"application/json": {
|
|
15362
|
+
/** @description Subscription item fields to update. */
|
|
15360
15363
|
item: {
|
|
15361
15364
|
/** @description Whether the item syncs from its linked product. */
|
|
15362
15365
|
autoUpdateFromProduct?: boolean;
|
|
@@ -15621,6 +15624,7 @@ interface components {
|
|
|
15621
15624
|
createDayPassesTransaction: {
|
|
15622
15625
|
content: {
|
|
15623
15626
|
"application/json": {
|
|
15627
|
+
/** @description Day passes transaction to create. */
|
|
15624
15628
|
transaction: {
|
|
15625
15629
|
/** @description Day pass amount. Must be greater than zero. */
|
|
15626
15630
|
amount: number;
|
|
@@ -22070,13 +22074,13 @@ interface operations {
|
|
|
22070
22074
|
}
|
|
22071
22075
|
|
|
22072
22076
|
/** A Contact entity as returned by the Spacebring API. */
|
|
22073
|
-
type Contact = NonNullable<
|
|
22077
|
+
type Contact = NonNullable<components["schemas"]["contact"]>;
|
|
22074
22078
|
/** A Request entity as returned by the Spacebring API. */
|
|
22075
|
-
type Request$1 = NonNullable<
|
|
22079
|
+
type Request$1 = NonNullable<components["schemas"]["visitRequest"]>;
|
|
22076
22080
|
/** A RequestVisit entity as returned by the Spacebring API. */
|
|
22077
|
-
type RequestVisit = NonNullable<
|
|
22081
|
+
type RequestVisit = NonNullable<components["schemas"]["visit"]>;
|
|
22078
22082
|
/** A VisitorVisit entity as returned by the Spacebring API. */
|
|
22079
|
-
type VisitorVisit = NonNullable<
|
|
22083
|
+
type VisitorVisit = NonNullable<components["schemas"]["visit"]>;
|
|
22080
22084
|
/** Query parameters for `sb.visitors.contacts.list()`. */
|
|
22081
22085
|
interface GetContactsQuery {
|
|
22082
22086
|
/** The maximum number of contacts to return. Default is 25. */
|
|
@@ -22126,15 +22130,27 @@ interface GetVisitsQuery {
|
|
|
22126
22130
|
/** Token to retrieve the next page of results. */
|
|
22127
22131
|
nextPageToken?: string;
|
|
22128
22132
|
}
|
|
22133
|
+
/** Request body for `sb.visitors.visits.checkIn()`. */
|
|
22134
|
+
type CheckInVisitBody = NonNullable<operations["checkInVisit"]["requestBody"]>["content"]["application/json"];
|
|
22135
|
+
/** Request body for `sb.visitors.visits.checkOut()`. */
|
|
22136
|
+
type CheckOutVisitBody = NonNullable<operations["checkOutVisit"]["requestBody"]>["content"]["application/json"];
|
|
22137
|
+
/** Request body for `sb.visitors.contacts.create()`. */
|
|
22138
|
+
type CreateContactBody = NonNullable<operations["createContact"]["requestBody"]>["content"]["application/json"];
|
|
22139
|
+
/** Request body for `sb.visitors.requests.create()`. */
|
|
22140
|
+
type CreateRequestBody = NonNullable<operations["createRequest"]["requestBody"]>["content"]["application/json"];
|
|
22141
|
+
/** Request body for `sb.visitors.visits.create()`. */
|
|
22142
|
+
type CreateVisitBody = NonNullable<operations["createVisit"]["requestBody"]>["content"]["application/json"];
|
|
22143
|
+
/** Request body for `sb.visitors.visits.update()`. */
|
|
22144
|
+
type UpdateVisitBody = NonNullable<operations["updateVisit"]["requestBody"]>["content"]["application/json"];
|
|
22129
22145
|
|
|
22130
22146
|
/** A Balance entity as returned by the Spacebring API. */
|
|
22131
|
-
type Balance = NonNullable<
|
|
22147
|
+
type Balance = NonNullable<components["schemas"]["balance"]>;
|
|
22132
22148
|
/** A CreditTransaction entity as returned by the Spacebring API. */
|
|
22133
|
-
type CreditTransaction = NonNullable<
|
|
22149
|
+
type CreditTransaction = NonNullable<components["schemas"]["transactionCreditsExpanded"]>;
|
|
22134
22150
|
/** A DayPassTransaction entity as returned by the Spacebring API. */
|
|
22135
22151
|
type DayPassTransaction = NonNullable<operations["getDayPassesTransactions"]["responses"][200]["content"]["application/json"]["transactions"]>[number];
|
|
22136
22152
|
/** A MoneyTransaction entity as returned by the Spacebring API. */
|
|
22137
|
-
type MoneyTransaction = NonNullable<
|
|
22153
|
+
type MoneyTransaction = NonNullable<components["schemas"]["transaction"]>;
|
|
22138
22154
|
/** Query parameters for `sb.transactions.credits.list()`. */
|
|
22139
22155
|
interface GetCreditsTransactionsQuery {
|
|
22140
22156
|
/** The number of items to return */
|
|
@@ -22192,11 +22208,15 @@ interface GetMoneyTransactionsQuery {
|
|
|
22192
22208
|
/** Token to retrieve the next page of results. */
|
|
22193
22209
|
nextPageToken?: string;
|
|
22194
22210
|
}
|
|
22211
|
+
/** Request body for `sb.transactions.credits.create()`. */
|
|
22212
|
+
type CreateCreditsTransactionBody = NonNullable<operations["createCreditsTransaction"]["requestBody"]>["content"]["application/json"];
|
|
22213
|
+
/** Request body for `sb.transactions.dayPasses.create()`. */
|
|
22214
|
+
type CreateDayPassesTransactionBody = NonNullable<operations["createDayPassesTransaction"]["requestBody"]>["content"]["application/json"];
|
|
22195
22215
|
|
|
22196
22216
|
/** A Activity entity as returned by the Spacebring API. */
|
|
22197
|
-
type Activity = NonNullable<
|
|
22217
|
+
type Activity = NonNullable<components["schemas"]["ticketActivity"]>;
|
|
22198
22218
|
/** A SupportTicket entity as returned by the Spacebring API. */
|
|
22199
|
-
type SupportTicket = NonNullable<
|
|
22219
|
+
type SupportTicket = NonNullable<components["schemas"]["ticket"]>;
|
|
22200
22220
|
/** Query parameters for `sb.support.tickets.list()`. */
|
|
22201
22221
|
interface GetSupportTicketsQuery {
|
|
22202
22222
|
/** The id of the location. */
|
|
@@ -22206,9 +22226,19 @@ interface GetSupportTicketsQuery {
|
|
|
22206
22226
|
/** Token to retrieve the next page of results. */
|
|
22207
22227
|
nextPageToken?: string;
|
|
22208
22228
|
}
|
|
22229
|
+
/** Request body for `sb.support.tickets.create()`. */
|
|
22230
|
+
type CreateSupportTicketBody = NonNullable<operations["createSupportTicket"]["requestBody"]>["content"]["application/json"];
|
|
22231
|
+
/** Request body for `sb.support.tickets.comment.create()`. */
|
|
22232
|
+
type CreateSupportTicketCommentBody = NonNullable<operations["createSupportTicketComment"]["requestBody"]>["content"]["application/json"];
|
|
22233
|
+
/** Request body for `sb.support.tickets.updateAssignee()`. */
|
|
22234
|
+
type UpdateSupportTicketAssigneeBody = NonNullable<operations["updateSupportTicketAssignee"]["requestBody"]>["content"]["application/json"];
|
|
22235
|
+
/** Request body for `sb.support.tickets.updateStatus()`. */
|
|
22236
|
+
type UpdateSupportTicketStatusBody = NonNullable<operations["updateSupportTicketStatus"]["requestBody"]>["content"]["application/json"];
|
|
22237
|
+
/** Request body for `sb.support.tickets.updateType()`. */
|
|
22238
|
+
type UpdateSupportTicketTypeBody = NonNullable<operations["updateSupportTicketType"]["requestBody"]>["content"]["application/json"];
|
|
22209
22239
|
|
|
22210
22240
|
/** A Subscription entity as returned by the Spacebring API. */
|
|
22211
|
-
type Subscription = NonNullable<
|
|
22241
|
+
type Subscription = NonNullable<components["schemas"]["subscription"]>;
|
|
22212
22242
|
/** Query parameters for `sb.subscriptions.list()`. */
|
|
22213
22243
|
interface GetSubscriptionsQuery {
|
|
22214
22244
|
/** Filter subscriptions created on or after this date (ISO 8601). Use with createDate[lte] for a range. */
|
|
@@ -22237,11 +22267,19 @@ interface GetSubscriptionsQuery {
|
|
|
22237
22267
|
- **canceled** — canceled */
|
|
22238
22268
|
status?: string;
|
|
22239
22269
|
}
|
|
22270
|
+
/** Request body for `sb.subscriptions.create()`. */
|
|
22271
|
+
type CreateSubscriptionBody = NonNullable<operations["createSubscription"]["requestBody"]>["content"]["application/json"];
|
|
22272
|
+
/** Request body for `sb.subscriptions.createItem()`. */
|
|
22273
|
+
type CreateSubscriptionItemBody = NonNullable<operations["createSubscriptionItem"]["requestBody"]>["content"]["application/json"];
|
|
22274
|
+
/** Request body for `sb.subscriptions.update()`. */
|
|
22275
|
+
type UpdateSubscriptionBody = NonNullable<operations["updateSubscription"]["requestBody"]>["content"]["application/json"];
|
|
22276
|
+
/** Request body for `sb.subscriptions.updateItem()`. */
|
|
22277
|
+
type UpdateSubscriptionItemBody = NonNullable<operations["updateSubscriptionItem"]["requestBody"]>["content"]["application/json"];
|
|
22240
22278
|
|
|
22241
22279
|
/** A Order entity as returned by the Spacebring API. */
|
|
22242
22280
|
type Order = NonNullable<operations["getOrder"]["responses"][200]["content"]["application/json"]["order"]>;
|
|
22243
22281
|
/** A Product entity as returned by the Spacebring API. */
|
|
22244
|
-
type Product = NonNullable<
|
|
22282
|
+
type Product = NonNullable<components["schemas"]["product"]>;
|
|
22245
22283
|
/** A ShopCategory entity as returned by the Spacebring API. */
|
|
22246
22284
|
type ShopCategory = NonNullable<operations["getShopCategory"]["responses"][200]["content"]["application/json"]["category"]>;
|
|
22247
22285
|
/** Query parameters for `sb.shop.orders.list()`. */
|
|
@@ -22291,11 +22329,19 @@ interface GetShopCategoriesQuery {
|
|
|
22291
22329
|
/** UUID of the location whose shop categories to list. */
|
|
22292
22330
|
locationRef: string;
|
|
22293
22331
|
}
|
|
22332
|
+
/** Request body for `sb.shop.products.create()`. */
|
|
22333
|
+
type CreateProductBody = NonNullable<operations["createProduct"]["requestBody"]>["content"]["application/json"];
|
|
22334
|
+
/** Request body for `sb.shop.categories.create()`. */
|
|
22335
|
+
type CreateShopCategoryBody = NonNullable<operations["createShopCategory"]["requestBody"]>["content"]["application/json"];
|
|
22336
|
+
/** Request body for `sb.shop.products.update()`. */
|
|
22337
|
+
type UpdateProductBody = NonNullable<operations["updateProduct"]["requestBody"]>["content"]["application/json"];
|
|
22338
|
+
/** Request body for `sb.shop.categories.update()`. */
|
|
22339
|
+
type UpdateShopCategoryBody = NonNullable<operations["updateShopCategory"]["requestBody"]>["content"]["application/json"];
|
|
22294
22340
|
|
|
22295
22341
|
/** A Booking entity as returned by the Spacebring API. */
|
|
22296
|
-
type Booking = NonNullable<
|
|
22342
|
+
type Booking = NonNullable<components["schemas"]["booking"]>;
|
|
22297
22343
|
/** A Resource entity as returned by the Spacebring API. */
|
|
22298
|
-
type Resource = NonNullable<
|
|
22344
|
+
type Resource = NonNullable<components["schemas"]["resource"]>;
|
|
22299
22345
|
/** Query parameters for `sb.resources.bookings.list()`. */
|
|
22300
22346
|
interface GetBookingsQuery {
|
|
22301
22347
|
/** The id of the resource. Required if `locationRef` is not passed. */
|
|
@@ -22338,9 +22384,15 @@ interface GetResourcesQuery {
|
|
|
22338
22384
|
/** The number of items to return. */
|
|
22339
22385
|
limit?: number;
|
|
22340
22386
|
}
|
|
22387
|
+
/** Request body for `sb.resources.bookings.create()`. */
|
|
22388
|
+
type CreateBookingBody = NonNullable<operations["createBooking"]["requestBody"]>["content"]["application/json"];
|
|
22389
|
+
/** Request body for `sb.resources.create()`. */
|
|
22390
|
+
type CreateResourceBody = NonNullable<operations["createResource"]["requestBody"]>["content"]["application/json"];
|
|
22391
|
+
/** Request body for `sb.resources.update()`. */
|
|
22392
|
+
type PatchResourceBody = NonNullable<operations["patchResource"]["requestBody"]>["content"]["application/json"];
|
|
22341
22393
|
|
|
22342
22394
|
/** A Registration entity as returned by the Spacebring API. */
|
|
22343
|
-
type Registration = NonNullable<
|
|
22395
|
+
type Registration = NonNullable<components["schemas"]["registration"]>;
|
|
22344
22396
|
/** Query parameters for `sb.registrations.list()`. */
|
|
22345
22397
|
interface GetRegistrationsQuery {
|
|
22346
22398
|
/** The number of items to return */
|
|
@@ -22350,7 +22402,7 @@ interface GetRegistrationsQuery {
|
|
|
22350
22402
|
}
|
|
22351
22403
|
|
|
22352
22404
|
/** A Plan entity as returned by the Spacebring API. */
|
|
22353
|
-
type Plan = NonNullable<
|
|
22405
|
+
type Plan = NonNullable<components["schemas"]["plan"]>;
|
|
22354
22406
|
/** Query parameters for `sb.plans.list()`. */
|
|
22355
22407
|
interface GetPlansQuery {
|
|
22356
22408
|
/** When listing plans for a resource, filter by entire resource vs partial tiers. Pass true or false. */
|
|
@@ -22364,15 +22416,19 @@ interface GetPlansQuery {
|
|
|
22364
22416
|
/** UUID of the resource whose tier plans to list. */
|
|
22365
22417
|
resourceRef?: string;
|
|
22366
22418
|
}
|
|
22419
|
+
/** Request body for `sb.plans.create()`. */
|
|
22420
|
+
type CreatePlanBody = NonNullable<operations["createPlan"]["requestBody"]>["content"]["application/json"];
|
|
22421
|
+
/** Request body for `sb.plans.update()`. */
|
|
22422
|
+
type UpdatePlanBody = NonNullable<operations["updatePlan"]["requestBody"]>["content"]["application/json"];
|
|
22367
22423
|
|
|
22368
22424
|
/** A Network entity as returned by the Spacebring API. */
|
|
22369
|
-
type Network = NonNullable<
|
|
22425
|
+
type Network = NonNullable<components["schemas"]["network"]>;
|
|
22370
22426
|
|
|
22371
22427
|
/** A Location entity as returned by the Spacebring API. */
|
|
22372
|
-
type Location = NonNullable<
|
|
22428
|
+
type Location = NonNullable<components["schemas"]["location"]>;
|
|
22373
22429
|
|
|
22374
22430
|
/** A Guide entity as returned by the Spacebring API. */
|
|
22375
|
-
type Guide = NonNullable<
|
|
22431
|
+
type Guide = NonNullable<components["schemas"]["guide"]>;
|
|
22376
22432
|
/** Query parameters for `sb.guides.list()`. */
|
|
22377
22433
|
interface GetGuidesQuery {
|
|
22378
22434
|
/** Maximum number of guides per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100. */
|
|
@@ -22382,6 +22438,10 @@ interface GetGuidesQuery {
|
|
|
22382
22438
|
/** Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
|
|
22383
22439
|
nextPageToken?: string;
|
|
22384
22440
|
}
|
|
22441
|
+
/** Request body for `sb.guides.create()`. */
|
|
22442
|
+
type CreateGuideBody = NonNullable<operations["createGuide"]["requestBody"]>["content"]["application/json"];
|
|
22443
|
+
/** Request body for `sb.guides.update()`. */
|
|
22444
|
+
type PatchGuideBody = NonNullable<operations["patchGuide"]["requestBody"]>["content"]["application/json"];
|
|
22385
22445
|
|
|
22386
22446
|
/** Query parameters for `sb.floors.list()`. */
|
|
22387
22447
|
interface GetFloorsQuery {
|
|
@@ -22394,15 +22454,15 @@ interface GetFloorsQuery {
|
|
|
22394
22454
|
}
|
|
22395
22455
|
|
|
22396
22456
|
/** A CommentLike entity as returned by the Spacebring API. */
|
|
22397
|
-
type CommentLike = NonNullable<
|
|
22457
|
+
type CommentLike = NonNullable<components["schemas"]["postLike"]>;
|
|
22398
22458
|
/** A FeedComment entity as returned by the Spacebring API. */
|
|
22399
|
-
type FeedComment = NonNullable<
|
|
22459
|
+
type FeedComment = NonNullable<components["schemas"]["postComment"]>;
|
|
22400
22460
|
/** A Post entity as returned by the Spacebring API. */
|
|
22401
|
-
type Post = NonNullable<
|
|
22461
|
+
type Post = NonNullable<components["schemas"]["post"]>;
|
|
22402
22462
|
/** A PostComment entity as returned by the Spacebring API. */
|
|
22403
|
-
type PostComment = NonNullable<
|
|
22463
|
+
type PostComment = NonNullable<components["schemas"]["postComment"]>;
|
|
22404
22464
|
/** A PostLike entity as returned by the Spacebring API. */
|
|
22405
|
-
type PostLike = NonNullable<
|
|
22465
|
+
type PostLike = NonNullable<components["schemas"]["postLike"]>;
|
|
22406
22466
|
/** Query parameters for `sb.feed.posts.list()`. */
|
|
22407
22467
|
interface GetFeedPostsQuery {
|
|
22408
22468
|
/** The id of the location. */
|
|
@@ -22412,11 +22472,17 @@ interface GetFeedPostsQuery {
|
|
|
22412
22472
|
/** The number of items to return. */
|
|
22413
22473
|
limit?: number;
|
|
22414
22474
|
}
|
|
22475
|
+
/** Request body for `sb.feed.posts.create()`. */
|
|
22476
|
+
type CreateFeedPostBody = NonNullable<operations["createFeedPost"]["requestBody"]>["content"]["application/json"];
|
|
22477
|
+
/** Request body for `sb.feed.comments.create()`. */
|
|
22478
|
+
type CreateFeedPostCommentBody = NonNullable<operations["createFeedPostComment"]["requestBody"]>["content"]["application/json"];
|
|
22479
|
+
/** Request body for `sb.feed.posts.update()`. */
|
|
22480
|
+
type UpdateFeedPostBody = NonNullable<operations["updateFeedPost"]["requestBody"]>["content"]["application/json"];
|
|
22415
22481
|
|
|
22416
22482
|
/** A Event entity as returned by the Spacebring API. */
|
|
22417
|
-
type Event = NonNullable<
|
|
22483
|
+
type Event = NonNullable<components["schemas"]["event"]>;
|
|
22418
22484
|
/** A EventTicket entity as returned by the Spacebring API. */
|
|
22419
|
-
type EventTicket = NonNullable<
|
|
22485
|
+
type EventTicket = NonNullable<components["schemas"]["eventTicket"]>;
|
|
22420
22486
|
/** Query parameters for `sb.events.list()`. */
|
|
22421
22487
|
interface GetEventsByOrganizationQuery {
|
|
22422
22488
|
/** The id of the location. */
|
|
@@ -22437,13 +22503,15 @@ interface GetEventTicketsQuery {
|
|
|
22437
22503
|
/** Token to retrieve the next page of results. */
|
|
22438
22504
|
nextPageToken?: string;
|
|
22439
22505
|
}
|
|
22506
|
+
/** Request body for `sb.events.create()`. */
|
|
22507
|
+
type CreateEventBody = NonNullable<operations["createEvent"]["requestBody"]>["content"]["application/json"];
|
|
22440
22508
|
|
|
22441
22509
|
/** A Coupon entity as returned by the Spacebring API. */
|
|
22442
|
-
type Coupon = NonNullable<
|
|
22510
|
+
type Coupon = NonNullable<components["schemas"]["coupon"]>;
|
|
22443
22511
|
/** A Promocode entity as returned by the Spacebring API. */
|
|
22444
|
-
type Promocode = NonNullable<
|
|
22512
|
+
type Promocode = NonNullable<components["schemas"]["promocode"]>;
|
|
22445
22513
|
/** A Redemption entity as returned by the Spacebring API. */
|
|
22446
|
-
type Redemption = NonNullable<
|
|
22514
|
+
type Redemption = NonNullable<components["schemas"]["discountRedemption"]>;
|
|
22447
22515
|
/** Query parameters for `sb.discounts.coupons.list()`. */
|
|
22448
22516
|
interface GetCouponsQuery {
|
|
22449
22517
|
/** The id of the location */
|
|
@@ -22473,6 +22541,12 @@ interface GetPromocodesQuery {
|
|
|
22473
22541
|
/** The id of the coupon. At least one of locationRef or couponRef is required */
|
|
22474
22542
|
couponRef?: string;
|
|
22475
22543
|
}
|
|
22544
|
+
/** Request body for `sb.discounts.coupons.create()`. */
|
|
22545
|
+
type CreateCouponBody = NonNullable<operations["createCoupon"]["requestBody"]>["content"]["application/json"];
|
|
22546
|
+
/** Request body for `sb.discounts.promocodes.create()`. */
|
|
22547
|
+
type CreatePromocodeBody = NonNullable<operations["createPromocode"]["requestBody"]>["content"]["application/json"];
|
|
22548
|
+
/** Request body for `sb.discounts.coupons.update()`. */
|
|
22549
|
+
type UpdateCouponBody = NonNullable<operations["updateCoupon"]["requestBody"]>["content"]["application/json"];
|
|
22476
22550
|
|
|
22477
22551
|
/** A Contract entity as returned by the Spacebring API. */
|
|
22478
22552
|
type Contract = NonNullable<operations["getContract"]["responses"][200]["content"]["application/json"]["contract"]>;
|
|
@@ -22498,11 +22572,17 @@ interface GetContractsQuery {
|
|
|
22498
22572
|
- **terminated** — cancelled after signing */
|
|
22499
22573
|
status?: string;
|
|
22500
22574
|
}
|
|
22575
|
+
/** Request body for `sb.contracts.create()`. */
|
|
22576
|
+
type CreateContractBody = NonNullable<operations["createContract"]["requestBody"]>["content"]["application/json"];
|
|
22577
|
+
/** Request body for `sb.contracts.issue()`. */
|
|
22578
|
+
type IssueContractBody = NonNullable<operations["issueContract"]["requestBody"]>["content"]["application/json"];
|
|
22579
|
+
/** Request body for `sb.contracts.terminate()`. */
|
|
22580
|
+
type TerminateContractBody = NonNullable<operations["terminateContract"]["requestBody"]>["content"]["application/json"];
|
|
22501
22581
|
|
|
22502
22582
|
/** A Company entity as returned by the Spacebring API. */
|
|
22503
|
-
type Company = NonNullable<
|
|
22583
|
+
type Company = NonNullable<components["schemas"]["company"]>;
|
|
22504
22584
|
/** A Membership entity as returned by the Spacebring API. */
|
|
22505
|
-
type Membership = NonNullable<
|
|
22585
|
+
type Membership = NonNullable<components["schemas"]["membership"]>;
|
|
22506
22586
|
/** Query parameters for `sb.community.companies.list()`. */
|
|
22507
22587
|
interface GetCompaniesQuery {
|
|
22508
22588
|
/** The id of the location. */
|
|
@@ -22546,13 +22626,21 @@ interface GetMembershipsQuery {
|
|
|
22546
22626
|
/** Filter by types. Pass them as comma separated values. */
|
|
22547
22627
|
types?: "member" | "nonmember";
|
|
22548
22628
|
}
|
|
22629
|
+
/** Request body for `sb.community.companies.create()`. */
|
|
22630
|
+
type CreateCompanyBody = NonNullable<operations["createCompany"]["requestBody"]>["content"]["application/json"];
|
|
22631
|
+
/** Request body for `sb.community.memberships.create()`. */
|
|
22632
|
+
type CreateMembershipBody = NonNullable<operations["createMembership"]["requestBody"]>["content"]["application/json"];
|
|
22633
|
+
/** Request body for `sb.community.companies.update()`. */
|
|
22634
|
+
type UpdateCompanyBody = NonNullable<operations["updateCompany"]["requestBody"]>["content"]["application/json"];
|
|
22635
|
+
/** Request body for `sb.community.memberships.update()`. */
|
|
22636
|
+
type UpdateMembershipBody = NonNullable<operations["updateMembership"]["requestBody"]>["content"]["application/json"];
|
|
22549
22637
|
|
|
22550
22638
|
/** A CreditNote entity as returned by the Spacebring API. */
|
|
22551
|
-
type CreditNote = NonNullable<
|
|
22639
|
+
type CreditNote = NonNullable<components["schemas"]["creditNote"]>;
|
|
22552
22640
|
/** A Invoice entity as returned by the Spacebring API. */
|
|
22553
|
-
type Invoice = NonNullable<
|
|
22641
|
+
type Invoice = NonNullable<components["schemas"]["invoice"]>;
|
|
22554
22642
|
/** A InvoiceItem entity as returned by the Spacebring API. */
|
|
22555
|
-
type InvoiceItem = NonNullable<
|
|
22643
|
+
type InvoiceItem = NonNullable<components["schemas"]["invoiceItem"]>;
|
|
22556
22644
|
/** Query parameters for `sb.billing.creditNotes.list()`. */
|
|
22557
22645
|
interface GetCreditNotesQuery {
|
|
22558
22646
|
/** Filter credit notes created on or after this date (ISO 8601). Use with createDate[lte] for a range. */
|
|
@@ -22619,11 +22707,29 @@ interface GetUpcomingInvoiceQuery {
|
|
|
22619
22707
|
/** The id of the subscription. */
|
|
22620
22708
|
subscriptionRef?: string;
|
|
22621
22709
|
}
|
|
22710
|
+
/** Request body for `sb.billing.creditNotes.create()`. */
|
|
22711
|
+
type CreateCreditNoteBody = NonNullable<operations["createCreditNote"]["requestBody"]>["content"]["application/json"];
|
|
22712
|
+
/** Request body for `sb.billing.invoices.create()`. */
|
|
22713
|
+
type CreateInvoiceBody = NonNullable<operations["createInvoice"]["requestBody"]>["content"]["application/json"];
|
|
22714
|
+
/** Request body for `sb.billing.invoices.items.create()`. */
|
|
22715
|
+
type CreateInvoiceItemBody = NonNullable<operations["createInvoiceItem"]["requestBody"]>["content"]["application/json"];
|
|
22716
|
+
/** Request body for `sb.billing.invoices.issue()`. */
|
|
22717
|
+
type IssueInvoiceBody = NonNullable<operations["issueInvoice"]["requestBody"]>["content"]["application/json"];
|
|
22718
|
+
/** Request body for `sb.billing.invoices.pay()`. */
|
|
22719
|
+
type PayInvoiceBody = NonNullable<operations["payInvoice"]["requestBody"]>["content"]["application/json"];
|
|
22720
|
+
/** Request body for `sb.billing.creditNotes.preview()`. */
|
|
22721
|
+
type PreviewCreditNoteBody = NonNullable<operations["previewCreditNote"]["requestBody"]>["content"]["application/json"];
|
|
22722
|
+
/** Request body for `sb.billing.creditNotes.update()`. */
|
|
22723
|
+
type UpdateCreditNoteBody = NonNullable<operations["updateCreditNote"]["requestBody"]>["content"]["application/json"];
|
|
22724
|
+
/** Request body for `sb.billing.invoices.update()`. */
|
|
22725
|
+
type UpdateInvoiceBody = NonNullable<operations["updateInvoice"]["requestBody"]>["content"]["application/json"];
|
|
22726
|
+
/** Request body for `sb.billing.invoices.items.update()`. */
|
|
22727
|
+
type UpdateInvoiceItemBody = NonNullable<operations["updateInvoiceItem"]["requestBody"]>["content"]["application/json"];
|
|
22622
22728
|
|
|
22623
22729
|
/** A Application entity as returned by the Spacebring API. */
|
|
22624
|
-
type Application = NonNullable<
|
|
22730
|
+
type Application = NonNullable<components["schemas"]["benefitApplication"]>;
|
|
22625
22731
|
/** A Benefit entity as returned by the Spacebring API. */
|
|
22626
|
-
type Benefit = NonNullable<
|
|
22732
|
+
type Benefit = NonNullable<components["schemas"]["benefit"]>;
|
|
22627
22733
|
/** A BenefitCategory entity as returned by the Spacebring API. */
|
|
22628
22734
|
type BenefitCategory = NonNullable<operations["getBenefitCategory"]["responses"][200]["content"]["application/json"]["category"]>;
|
|
22629
22735
|
/** Query parameters for `sb.benefits.applications.list()`. */
|
|
@@ -22665,9 +22771,19 @@ interface GetBenefitsQuery {
|
|
|
22665
22771
|
/** Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
|
|
22666
22772
|
nextPageToken?: string;
|
|
22667
22773
|
}
|
|
22774
|
+
/** Request body for `sb.benefits.applications.create()`. */
|
|
22775
|
+
type ApplyBenefitBody = NonNullable<operations["applyBenefit"]["requestBody"]>["content"]["application/json"];
|
|
22776
|
+
/** Request body for `sb.benefits.create()`. */
|
|
22777
|
+
type CreateBenefitBody = NonNullable<operations["createBenefit"]["requestBody"]>["content"]["application/json"];
|
|
22778
|
+
/** Request body for `sb.benefits.categories.create()`. */
|
|
22779
|
+
type CreateBenefitCategoryBody = NonNullable<operations["createBenefitCategory"]["requestBody"]>["content"]["application/json"];
|
|
22780
|
+
/** Request body for `sb.benefits.update()`. */
|
|
22781
|
+
type UpdateBenefitBody = NonNullable<operations["updateBenefit"]["requestBody"]>["content"]["application/json"];
|
|
22782
|
+
/** Request body for `sb.benefits.categories.update()`. */
|
|
22783
|
+
type UpdateBenefitCategoryBody = NonNullable<operations["updateBenefitCategory"]["requestBody"]>["content"]["application/json"];
|
|
22668
22784
|
|
|
22669
22785
|
/** A AltCurrency entity as returned by the Spacebring API. */
|
|
22670
|
-
type AltCurrency = NonNullable<
|
|
22786
|
+
type AltCurrency = NonNullable<components["schemas"]["altCurrency"]>;
|
|
22671
22787
|
/** Query parameters for `sb.altCurrencies.list()`. */
|
|
22672
22788
|
interface GetAltCurrenciesQuery {
|
|
22673
22789
|
/** The id of the location */
|
|
@@ -22677,6 +22793,10 @@ interface GetAltCurrenciesQuery {
|
|
|
22677
22793
|
/** The number of items to return. */
|
|
22678
22794
|
limit?: number;
|
|
22679
22795
|
}
|
|
22796
|
+
/** Request body for `sb.altCurrencies.create()`. */
|
|
22797
|
+
type CreateAltCurrencyBody = NonNullable<operations["createAltCurrency"]["requestBody"]>["content"]["application/json"];
|
|
22798
|
+
/** Request body for `sb.altCurrencies.update()`. */
|
|
22799
|
+
type UpdateAltCurrencyBody = NonNullable<operations["updateAltCurrency"]["requestBody"]>["content"]["application/json"];
|
|
22680
22800
|
|
|
22681
22801
|
declare function createResources(client: Client<paths>, defaults: SpacebringDefaults): {
|
|
22682
22802
|
altCurrencies: {
|
|
@@ -22686,8 +22806,8 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
22686
22806
|
searchQueryNext?: string;
|
|
22687
22807
|
}>;
|
|
22688
22808
|
iterate(query: Omit<GetAltCurrenciesQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<AltCurrency, void, undefined>;
|
|
22689
|
-
create(body:
|
|
22690
|
-
update(id: string, body:
|
|
22809
|
+
create(body: CreateAltCurrencyBody, options?: SpacebringRequestOptions): Promise<AltCurrency>;
|
|
22810
|
+
update(id: string, body: UpdateAltCurrencyBody, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
22691
22811
|
delete(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
22692
22812
|
};
|
|
22693
22813
|
benefits: {
|
|
@@ -22698,8 +22818,8 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
22698
22818
|
}>;
|
|
22699
22819
|
iterate(query?: Omit<GetBenefitsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Benefit, void, undefined>;
|
|
22700
22820
|
get(benefitId: string, options?: SpacebringRequestOptions): Promise<Benefit>;
|
|
22701
|
-
create(body:
|
|
22702
|
-
update(benefitId: string, body:
|
|
22821
|
+
create(body: CreateBenefitBody, options?: SpacebringRequestOptions): Promise<operations["createBenefit"]["responses"][201]["content"]["application/json"]>;
|
|
22822
|
+
update(benefitId: string, body: UpdateBenefitBody, options?: SpacebringRequestOptions): Promise<Benefit>;
|
|
22703
22823
|
delete(benefitId: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
22704
22824
|
applications: {
|
|
22705
22825
|
list(query?: GetBenefitApplicationsQuery, options?: SpacebringRequestOptions): Promise<{
|
|
@@ -22709,13 +22829,13 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
22709
22829
|
}>;
|
|
22710
22830
|
iterate(query?: Omit<GetBenefitApplicationsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Application, void, undefined>;
|
|
22711
22831
|
get(benefitApplicationId: string, options?: SpacebringRequestOptions): Promise<Application>;
|
|
22712
|
-
create(body:
|
|
22832
|
+
create(body: ApplyBenefitBody, options?: SpacebringRequestOptions): Promise<Application>;
|
|
22713
22833
|
};
|
|
22714
22834
|
categories: {
|
|
22715
22835
|
list(query: GetBenefitCategoriesQuery, options?: SpacebringRequestOptions): Promise<BenefitCategory[]>;
|
|
22716
22836
|
get(categoryId: string, options?: SpacebringRequestOptions): Promise<BenefitCategory>;
|
|
22717
|
-
create(body:
|
|
22718
|
-
update(categoryId: string, body:
|
|
22837
|
+
create(body: CreateBenefitCategoryBody, options?: SpacebringRequestOptions): Promise<BenefitCategory>;
|
|
22838
|
+
update(categoryId: string, body: UpdateBenefitCategoryBody, options?: SpacebringRequestOptions): Promise<BenefitCategory>;
|
|
22719
22839
|
delete(categoryId: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
22720
22840
|
};
|
|
22721
22841
|
};
|
|
@@ -22728,9 +22848,9 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
22728
22848
|
}>;
|
|
22729
22849
|
iterate(query?: Omit<GetCreditNotesQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<CreditNote, void, undefined>;
|
|
22730
22850
|
get(id: string, options?: SpacebringRequestOptions): Promise<CreditNote>;
|
|
22731
|
-
create(body:
|
|
22732
|
-
update(id: string, body:
|
|
22733
|
-
preview(body:
|
|
22851
|
+
create(body: CreateCreditNoteBody, options?: SpacebringRequestOptions): Promise<CreditNote>;
|
|
22852
|
+
update(id: string, body: UpdateCreditNoteBody, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
22853
|
+
preview(body: PreviewCreditNoteBody, options?: SpacebringRequestOptions): Promise<CreditNote>;
|
|
22734
22854
|
};
|
|
22735
22855
|
invoices: {
|
|
22736
22856
|
list(query?: GetInvoicesQuery, options?: SpacebringRequestOptions): Promise<{
|
|
@@ -22740,21 +22860,21 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
22740
22860
|
}>;
|
|
22741
22861
|
iterate(query?: Omit<GetInvoicesQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Invoice, void, undefined>;
|
|
22742
22862
|
get(invoiceId: string, options?: SpacebringRequestOptions): Promise<Invoice>;
|
|
22743
|
-
create(body:
|
|
22744
|
-
update(invoiceId: string, body:
|
|
22863
|
+
create(body: CreateInvoiceBody, options?: SpacebringRequestOptions): Promise<Invoice>;
|
|
22864
|
+
update(invoiceId: string, body: UpdateInvoiceBody, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
22745
22865
|
delete(invoiceId: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
22746
22866
|
cancelPayment(invoiceId: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
22747
22867
|
duplicate(invoiceId: string, options?: SpacebringRequestOptions): Promise<Invoice>;
|
|
22748
22868
|
getItems(invoiceId: string, options?: SpacebringRequestOptions): Promise<operations["getInvoiceItems"]["responses"][200]["content"]["application/json"]>;
|
|
22749
22869
|
getUpcoming(query?: GetUpcomingInvoiceQuery, options?: SpacebringRequestOptions): Promise<operations["getUpcomingInvoice"]["responses"][200]["content"]["application/json"]>;
|
|
22750
|
-
issue(invoiceId: string, body?:
|
|
22751
|
-
pay(invoiceId: string, body:
|
|
22870
|
+
issue(invoiceId: string, body?: IssueInvoiceBody, options?: SpacebringRequestOptions): Promise<operations["issueInvoice"]["responses"][200]["content"]["application/json"]>;
|
|
22871
|
+
pay(invoiceId: string, body: PayInvoiceBody, options?: SpacebringRequestOptions): Promise<operations["payInvoice"]["responses"][200]["content"]["application/json"]>;
|
|
22752
22872
|
resend(invoiceId: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
22753
22873
|
void(invoiceId: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
22754
22874
|
items: {
|
|
22755
22875
|
get(id: string, options?: SpacebringRequestOptions): Promise<InvoiceItem>;
|
|
22756
|
-
create(body:
|
|
22757
|
-
update(id: string, body:
|
|
22876
|
+
create(body: CreateInvoiceItemBody, options?: SpacebringRequestOptions): Promise<InvoiceItem>;
|
|
22877
|
+
update(id: string, body: UpdateInvoiceItemBody, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
22758
22878
|
delete(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
22759
22879
|
getUpcoming(query?: GetUpcomingInvoiceItemsQuery, options?: SpacebringRequestOptions): Promise<InvoiceItem[]>;
|
|
22760
22880
|
};
|
|
@@ -22768,8 +22888,8 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
22768
22888
|
}>;
|
|
22769
22889
|
iterate(query: Omit<GetCompaniesQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Company, void, undefined>;
|
|
22770
22890
|
get(id: string, options?: SpacebringRequestOptions): Promise<Company>;
|
|
22771
|
-
create(body:
|
|
22772
|
-
update(id: string, body:
|
|
22891
|
+
create(body: CreateCompanyBody, options?: SpacebringRequestOptions): Promise<Company>;
|
|
22892
|
+
update(id: string, body: UpdateCompanyBody, options?: SpacebringRequestOptions): Promise<Company>;
|
|
22773
22893
|
};
|
|
22774
22894
|
memberships: {
|
|
22775
22895
|
list(query: GetMembershipsQuery, options?: SpacebringRequestOptions): Promise<{
|
|
@@ -22779,8 +22899,8 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
22779
22899
|
}>;
|
|
22780
22900
|
iterate(query: Omit<GetMembershipsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Membership, void, undefined>;
|
|
22781
22901
|
get(id: string, options?: SpacebringRequestOptions): Promise<Membership>;
|
|
22782
|
-
create(body:
|
|
22783
|
-
update(id: number, body:
|
|
22902
|
+
create(body: CreateMembershipBody, options?: SpacebringRequestOptions): Promise<Membership>;
|
|
22903
|
+
update(id: number, body: UpdateMembershipBody, options?: SpacebringRequestOptions): Promise<Membership>;
|
|
22784
22904
|
delete(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
22785
22905
|
iterateDeleted(query: Omit<GetMembershipsDeletedQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Membership, void, undefined>;
|
|
22786
22906
|
listDeleted(query: GetMembershipsDeletedQuery, options?: SpacebringRequestOptions): Promise<{
|
|
@@ -22797,10 +22917,10 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
22797
22917
|
}>;
|
|
22798
22918
|
iterate(query?: Omit<GetContractsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Contract, void, undefined>;
|
|
22799
22919
|
get(contractId: string, options?: SpacebringRequestOptions): Promise<Contract>;
|
|
22800
|
-
create(body:
|
|
22920
|
+
create(body: CreateContractBody, options?: SpacebringRequestOptions): Promise<Contract>;
|
|
22801
22921
|
delete(contractId: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
22802
|
-
issue(contractId: string, body:
|
|
22803
|
-
terminate(contractId: string, body:
|
|
22922
|
+
issue(contractId: string, body: IssueContractBody, options?: SpacebringRequestOptions): Promise<Contract>;
|
|
22923
|
+
terminate(contractId: string, body: TerminateContractBody, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
22804
22924
|
};
|
|
22805
22925
|
discounts: {
|
|
22806
22926
|
coupons: {
|
|
@@ -22811,14 +22931,14 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
22811
22931
|
}>;
|
|
22812
22932
|
iterate(query: Omit<GetCouponsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Coupon, void, undefined>;
|
|
22813
22933
|
get(id: string, options?: SpacebringRequestOptions): Promise<Coupon>;
|
|
22814
|
-
create(body:
|
|
22815
|
-
update(id: string, body:
|
|
22934
|
+
create(body: CreateCouponBody, options?: SpacebringRequestOptions): Promise<Coupon>;
|
|
22935
|
+
update(id: string, body: UpdateCouponBody, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
22816
22936
|
delete(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
22817
22937
|
};
|
|
22818
22938
|
promocodes: {
|
|
22819
22939
|
list(query?: GetPromocodesQuery, options?: SpacebringRequestOptions): Promise<Promocode[]>;
|
|
22820
22940
|
get(id: string, options?: SpacebringRequestOptions): Promise<Promocode>;
|
|
22821
|
-
create(body:
|
|
22941
|
+
create(body: CreatePromocodeBody, options?: SpacebringRequestOptions): Promise<Promocode>;
|
|
22822
22942
|
archive(id: string, options?: SpacebringRequestOptions): Promise<Promocode>;
|
|
22823
22943
|
};
|
|
22824
22944
|
redemptions: {
|
|
@@ -22833,7 +22953,7 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
22833
22953
|
events: {
|
|
22834
22954
|
list(query: GetEventsByOrganizationQuery, options?: SpacebringRequestOptions): Promise<operations["getEventsByOrganization"]["responses"][200]["content"]["application/json"]>;
|
|
22835
22955
|
get(id: string, options?: SpacebringRequestOptions): Promise<Event>;
|
|
22836
|
-
create(body:
|
|
22956
|
+
create(body: CreateEventBody, options?: SpacebringRequestOptions): Promise<Event>;
|
|
22837
22957
|
delete(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
22838
22958
|
cancel(id: string, options?: SpacebringRequestOptions): Promise<Event>;
|
|
22839
22959
|
copy(id: string, options?: SpacebringRequestOptions): Promise<Event>;
|
|
@@ -22849,7 +22969,7 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
22849
22969
|
};
|
|
22850
22970
|
feed: {
|
|
22851
22971
|
comments: {
|
|
22852
|
-
create(body:
|
|
22972
|
+
create(body: CreateFeedPostCommentBody, options?: SpacebringRequestOptions): Promise<FeedComment>;
|
|
22853
22973
|
delete(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
22854
22974
|
createLike(id: string, options?: SpacebringRequestOptions): Promise<CommentLike>;
|
|
22855
22975
|
deleteLike(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
@@ -22862,8 +22982,8 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
22862
22982
|
}>;
|
|
22863
22983
|
iterate(query: Omit<GetFeedPostsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Post, void, undefined>;
|
|
22864
22984
|
get(id: string, options?: SpacebringRequestOptions): Promise<Post>;
|
|
22865
|
-
create(body:
|
|
22866
|
-
update(id: string, body:
|
|
22985
|
+
create(body: CreateFeedPostBody, options?: SpacebringRequestOptions): Promise<Post>;
|
|
22986
|
+
update(id: string, body: UpdateFeedPostBody, options?: SpacebringRequestOptions): Promise<Post>;
|
|
22867
22987
|
delete(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
22868
22988
|
createLike(id: string, options?: SpacebringRequestOptions): Promise<PostLike>;
|
|
22869
22989
|
deleteLike(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
@@ -22883,8 +23003,8 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
22883
23003
|
}>;
|
|
22884
23004
|
iterate(query: Omit<GetGuidesQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Guide, void, undefined>;
|
|
22885
23005
|
get(guideId: string, options?: SpacebringRequestOptions): Promise<Guide>;
|
|
22886
|
-
create(body:
|
|
22887
|
-
update(guideId: string, body:
|
|
23006
|
+
create(body: CreateGuideBody, options?: SpacebringRequestOptions): Promise<Guide>;
|
|
23007
|
+
update(guideId: string, body: PatchGuideBody, options?: SpacebringRequestOptions): Promise<Guide>;
|
|
22888
23008
|
delete(guideId: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
22889
23009
|
};
|
|
22890
23010
|
locations: {
|
|
@@ -22902,8 +23022,8 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
22902
23022
|
}>;
|
|
22903
23023
|
iterate(query?: Omit<GetPlansQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Plan, void, undefined>;
|
|
22904
23024
|
get(planId: string, options?: SpacebringRequestOptions): Promise<Plan>;
|
|
22905
|
-
create(body:
|
|
22906
|
-
update(planId: string, body:
|
|
23025
|
+
create(body: CreatePlanBody, options?: SpacebringRequestOptions): Promise<Plan>;
|
|
23026
|
+
update(planId: string, body: UpdatePlanBody, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
22907
23027
|
delete(planId: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
22908
23028
|
};
|
|
22909
23029
|
registrations: {
|
|
@@ -22922,8 +23042,8 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
22922
23042
|
}>;
|
|
22923
23043
|
iterate(query: Omit<GetResourcesQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Resource, void, undefined>;
|
|
22924
23044
|
get(id: string, options?: SpacebringRequestOptions): Promise<Resource>;
|
|
22925
|
-
create(body:
|
|
22926
|
-
update(id: string, body:
|
|
23045
|
+
create(body: CreateResourceBody, options?: SpacebringRequestOptions): Promise<Resource>;
|
|
23046
|
+
update(id: string, body: PatchResourceBody, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
22927
23047
|
bookings: {
|
|
22928
23048
|
list(query?: GetBookingsQuery, options?: SpacebringRequestOptions): Promise<{
|
|
22929
23049
|
bookings?: Booking[];
|
|
@@ -22932,7 +23052,7 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
22932
23052
|
}>;
|
|
22933
23053
|
iterate(query?: Omit<GetBookingsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Booking, void, undefined>;
|
|
22934
23054
|
get(id: string, options?: SpacebringRequestOptions): Promise<Booking>;
|
|
22935
|
-
create(body:
|
|
23055
|
+
create(body: CreateBookingBody, options?: SpacebringRequestOptions): Promise<Booking>;
|
|
22936
23056
|
delete(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
22937
23057
|
};
|
|
22938
23058
|
};
|
|
@@ -22940,8 +23060,8 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
22940
23060
|
categories: {
|
|
22941
23061
|
list(query: GetShopCategoriesQuery, options?: SpacebringRequestOptions): Promise<ShopCategory[]>;
|
|
22942
23062
|
get(categoryId: string, options?: SpacebringRequestOptions): Promise<ShopCategory>;
|
|
22943
|
-
create(body:
|
|
22944
|
-
update(categoryId: string, body:
|
|
23063
|
+
create(body: CreateShopCategoryBody, options?: SpacebringRequestOptions): Promise<ShopCategory>;
|
|
23064
|
+
update(categoryId: string, body: UpdateShopCategoryBody, options?: SpacebringRequestOptions): Promise<ShopCategory>;
|
|
22945
23065
|
delete(categoryId: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
22946
23066
|
};
|
|
22947
23067
|
orders: {
|
|
@@ -22961,8 +23081,8 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
22961
23081
|
}>;
|
|
22962
23082
|
iterate(query?: Omit<GetProductsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Product, void, undefined>;
|
|
22963
23083
|
get(productId: string, options?: SpacebringRequestOptions): Promise<Product>;
|
|
22964
|
-
create(body:
|
|
22965
|
-
update(productId: string, body:
|
|
23084
|
+
create(body: CreateProductBody, options?: SpacebringRequestOptions): Promise<Product>;
|
|
23085
|
+
update(productId: string, body: UpdateProductBody, options?: SpacebringRequestOptions): Promise<Product>;
|
|
22966
23086
|
delete(productId: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
22967
23087
|
};
|
|
22968
23088
|
};
|
|
@@ -22974,12 +23094,12 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
22974
23094
|
}>;
|
|
22975
23095
|
iterate(query?: Omit<GetSubscriptionsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Subscription, void, undefined>;
|
|
22976
23096
|
get(subscriptionId: string, options?: SpacebringRequestOptions): Promise<Subscription>;
|
|
22977
|
-
create(body:
|
|
22978
|
-
update(subscriptionId: string, body:
|
|
23097
|
+
create(body: CreateSubscriptionBody, options?: SpacebringRequestOptions): Promise<Subscription>;
|
|
23098
|
+
update(subscriptionId: string, body: UpdateSubscriptionBody, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
22979
23099
|
delete(subscriptionId: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
22980
|
-
createItem(subscriptionId: string, body:
|
|
23100
|
+
createItem(subscriptionId: string, body: CreateSubscriptionItemBody, options?: SpacebringRequestOptions): Promise<Subscription>;
|
|
22981
23101
|
deleteItem(subscriptionId: string, itemId: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
22982
|
-
updateItem(subscriptionId: string, itemId: string, body:
|
|
23102
|
+
updateItem(subscriptionId: string, itemId: string, body: UpdateSubscriptionItemBody, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
22983
23103
|
};
|
|
22984
23104
|
support: {
|
|
22985
23105
|
tickets: {
|
|
@@ -22990,12 +23110,12 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
22990
23110
|
}>;
|
|
22991
23111
|
iterate(query: Omit<GetSupportTicketsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<SupportTicket, void, undefined>;
|
|
22992
23112
|
get(id: string, options?: SpacebringRequestOptions): Promise<operations["getSupportTicket"]["responses"][200]["content"]["application/json"]>;
|
|
22993
|
-
create(body:
|
|
22994
|
-
updateAssignee(id: string, body:
|
|
22995
|
-
updateStatus(id: string, body:
|
|
22996
|
-
updateType(id: string, body:
|
|
23113
|
+
create(body: CreateSupportTicketBody, options?: SpacebringRequestOptions): Promise<operations["createSupportTicket"]["responses"][201]["content"]["application/json"]>;
|
|
23114
|
+
updateAssignee(id: string, body: UpdateSupportTicketAssigneeBody, options?: SpacebringRequestOptions): Promise<operations["updateSupportTicketAssignee"]["responses"][200]["content"]["application/json"]>;
|
|
23115
|
+
updateStatus(id: string, body: UpdateSupportTicketStatusBody, options?: SpacebringRequestOptions): Promise<operations["updateSupportTicketStatus"]["responses"][200]["content"]["application/json"]>;
|
|
23116
|
+
updateType(id: string, body: UpdateSupportTicketTypeBody, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
22997
23117
|
comment: {
|
|
22998
|
-
create(body:
|
|
23118
|
+
create(body: CreateSupportTicketCommentBody, options?: SpacebringRequestOptions): Promise<Activity>;
|
|
22999
23119
|
delete(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
23000
23120
|
};
|
|
23001
23121
|
};
|
|
@@ -23011,7 +23131,7 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
23011
23131
|
nextPageToken?: string;
|
|
23012
23132
|
}>;
|
|
23013
23133
|
iterate(query?: Omit<GetCreditsTransactionsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<CreditTransaction, void, undefined>;
|
|
23014
|
-
create(body:
|
|
23134
|
+
create(body: CreateCreditsTransactionBody, options?: SpacebringRequestOptions): Promise<CreditTransaction>;
|
|
23015
23135
|
};
|
|
23016
23136
|
dayPasses: {
|
|
23017
23137
|
list(query?: GetDayPassesTransactionsQuery, options?: SpacebringRequestOptions): Promise<{
|
|
@@ -23019,7 +23139,7 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
23019
23139
|
transactions: DayPassTransaction[];
|
|
23020
23140
|
}>;
|
|
23021
23141
|
iterate(query?: Omit<GetDayPassesTransactionsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<DayPassTransaction, void, undefined>;
|
|
23022
|
-
create(body:
|
|
23142
|
+
create(body: CreateDayPassesTransactionBody, options?: SpacebringRequestOptions): Promise<DayPassTransaction>;
|
|
23023
23143
|
};
|
|
23024
23144
|
money: {
|
|
23025
23145
|
list(query: GetMoneyTransactionsQuery, options?: SpacebringRequestOptions): Promise<{
|
|
@@ -23039,7 +23159,7 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
23039
23159
|
}>;
|
|
23040
23160
|
iterate(query: Omit<GetContactsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Contact, void, undefined>;
|
|
23041
23161
|
get(contactId: string, options?: SpacebringRequestOptions): Promise<Contact>;
|
|
23042
|
-
create(body:
|
|
23162
|
+
create(body: CreateContactBody, options?: SpacebringRequestOptions): Promise<Contact>;
|
|
23043
23163
|
};
|
|
23044
23164
|
requests: {
|
|
23045
23165
|
list(query: GetRequestsQuery, options?: SpacebringRequestOptions): Promise<{
|
|
@@ -23049,7 +23169,7 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
23049
23169
|
}>;
|
|
23050
23170
|
iterate(query: Omit<GetRequestsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Request$1, void, undefined>;
|
|
23051
23171
|
get(id: string, options?: SpacebringRequestOptions): Promise<Request$1>;
|
|
23052
|
-
create(body:
|
|
23172
|
+
create(body: CreateRequestBody, options?: SpacebringRequestOptions): Promise<Request$1>;
|
|
23053
23173
|
approve(id: string, options?: SpacebringRequestOptions): Promise<RequestVisit>;
|
|
23054
23174
|
reject(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
23055
23175
|
};
|
|
@@ -23061,11 +23181,11 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
23061
23181
|
}>;
|
|
23062
23182
|
iterate(query: Omit<GetVisitsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<VisitorVisit, void, undefined>;
|
|
23063
23183
|
get(id: string, options?: SpacebringRequestOptions): Promise<VisitorVisit>;
|
|
23064
|
-
create(body:
|
|
23065
|
-
update(id: string, body:
|
|
23184
|
+
create(body: CreateVisitBody, options?: SpacebringRequestOptions): Promise<VisitorVisit>;
|
|
23185
|
+
update(id: string, body: UpdateVisitBody, options?: SpacebringRequestOptions): Promise<VisitorVisit>;
|
|
23066
23186
|
delete(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
23067
|
-
checkIn(body:
|
|
23068
|
-
checkOut(body:
|
|
23187
|
+
checkIn(body: CheckInVisitBody, options?: SpacebringRequestOptions): Promise<VisitorVisit>;
|
|
23188
|
+
checkOut(body: CheckOutVisitBody, options?: SpacebringRequestOptions): Promise<VisitorVisit>;
|
|
23069
23189
|
};
|
|
23070
23190
|
};
|
|
23071
23191
|
};
|
|
@@ -23128,4 +23248,4 @@ declare class SpacebringError extends Error {
|
|
|
23128
23248
|
});
|
|
23129
23249
|
}
|
|
23130
23250
|
|
|
23131
|
-
export { type Activity, type AltCurrency, type Application, type Balance, type Benefit, type BenefitCategory, type Booking, type CommentLike, type Company, type Contact, type Contract, type Coupon, type CreditNote, type CreditTransaction, type DayPassTransaction, type Event, type EventTicket, type FeedComment, type GetAltCurrenciesQuery, type GetBenefitApplicationsQuery, type GetBenefitCategoriesQuery, type GetBenefitsQuery, type GetBookingsQuery, type GetCompaniesQuery, type GetContactsQuery, type GetContractsQuery, type GetCouponsQuery, type GetCreditNotesQuery, type GetCreditsTransactionsQuery, type GetDayPassesTransactionsQuery, type GetDiscountRedemptionsQuery, type GetEventTicketsQuery, type GetEventsByOrganizationQuery, type GetFeedPostsQuery, type GetFloorsQuery, type GetGuidesQuery, type GetInvoicesQuery, type GetMembershipsDeletedQuery, type GetMembershipsQuery, type GetMoneyTransactionsQuery, type GetOrdersQuery, type GetPlansQuery, type GetProductsQuery, type GetPromocodesQuery, type GetRegistrationsQuery, type GetRequestsQuery, type GetResourcesQuery, type GetShopCategoriesQuery, type GetSubscriptionsQuery, type GetSupportTicketsQuery, type GetUpcomingInvoiceItemsQuery, type GetUpcomingInvoiceQuery, type GetVisitsQuery, type Guide, type Invoice, type InvoiceItem, type Location, type Membership, type MoneyTransaction, type Network, type Order, type Plan, type Post, type PostComment, type PostLike, type Product, type Promocode, type Redemption, type Registration, type Request$1 as Request, type RequestVisit, type Resource, type ShopCategory, Spacebring, type SpacebringConfig, SpacebringError, type SpacebringErrorBody, type SpacebringRequestOptions, type SpacebringResources, type Subscription, type SupportTicket, type VisitorVisit, type components, type operations, type paths };
|
|
23251
|
+
export { type Activity, type AltCurrency, type Application, type ApplyBenefitBody, type Balance, type Benefit, type BenefitCategory, type Booking, type CheckInVisitBody, type CheckOutVisitBody, type CommentLike, type Company, type Contact, type Contract, type Coupon, type CreateAltCurrencyBody, type CreateBenefitBody, type CreateBenefitCategoryBody, type CreateBookingBody, type CreateCompanyBody, type CreateContactBody, type CreateContractBody, type CreateCouponBody, type CreateCreditNoteBody, type CreateCreditsTransactionBody, type CreateDayPassesTransactionBody, type CreateEventBody, type CreateFeedPostBody, type CreateFeedPostCommentBody, type CreateGuideBody, type CreateInvoiceBody, type CreateInvoiceItemBody, type CreateMembershipBody, type CreatePlanBody, type CreateProductBody, type CreatePromocodeBody, type CreateRequestBody, type CreateResourceBody, type CreateShopCategoryBody, type CreateSubscriptionBody, type CreateSubscriptionItemBody, type CreateSupportTicketBody, type CreateSupportTicketCommentBody, type CreateVisitBody, type CreditNote, type CreditTransaction, type DayPassTransaction, type Event, type EventTicket, type FeedComment, type GetAltCurrenciesQuery, type GetBenefitApplicationsQuery, type GetBenefitCategoriesQuery, type GetBenefitsQuery, type GetBookingsQuery, type GetCompaniesQuery, type GetContactsQuery, type GetContractsQuery, type GetCouponsQuery, type GetCreditNotesQuery, type GetCreditsTransactionsQuery, type GetDayPassesTransactionsQuery, type GetDiscountRedemptionsQuery, type GetEventTicketsQuery, type GetEventsByOrganizationQuery, type GetFeedPostsQuery, type GetFloorsQuery, type GetGuidesQuery, type GetInvoicesQuery, type GetMembershipsDeletedQuery, type GetMembershipsQuery, type GetMoneyTransactionsQuery, type GetOrdersQuery, type GetPlansQuery, type GetProductsQuery, type GetPromocodesQuery, type GetRegistrationsQuery, type GetRequestsQuery, type GetResourcesQuery, type GetShopCategoriesQuery, type GetSubscriptionsQuery, type GetSupportTicketsQuery, type GetUpcomingInvoiceItemsQuery, type GetUpcomingInvoiceQuery, type GetVisitsQuery, type Guide, type Invoice, type InvoiceItem, type IssueContractBody, type IssueInvoiceBody, type Location, type Membership, type MoneyTransaction, type Network, type Order, type PatchGuideBody, type PatchResourceBody, type PayInvoiceBody, type Plan, type Post, type PostComment, type PostLike, type PreviewCreditNoteBody, type Product, type Promocode, type Redemption, type Registration, type Request$1 as Request, type RequestVisit, type Resource, type ShopCategory, Spacebring, type SpacebringConfig, SpacebringError, type SpacebringErrorBody, type SpacebringRequestOptions, type SpacebringResources, type Subscription, type SupportTicket, type TerminateContractBody, type UpdateAltCurrencyBody, type UpdateBenefitBody, type UpdateBenefitCategoryBody, type UpdateCompanyBody, type UpdateCouponBody, type UpdateCreditNoteBody, type UpdateFeedPostBody, type UpdateInvoiceBody, type UpdateInvoiceItemBody, type UpdateMembershipBody, type UpdatePlanBody, type UpdateProductBody, type UpdateShopCategoryBody, type UpdateSubscriptionBody, type UpdateSubscriptionItemBody, type UpdateSupportTicketAssigneeBody, type UpdateSupportTicketStatusBody, type UpdateSupportTicketTypeBody, type UpdateVisitBody, type VisitorVisit, type components, type operations, type paths };
|