@izak0s/spacebring-api 1.11.1 → 1.13.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 +10 -3
- package/dist/index.cjs +507 -140
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +178 -155
- package/dist/index.d.ts +178 -155
- package/dist/index.js +507 -140
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -6824,7 +6824,7 @@ interface components {
|
|
|
6824
6824
|
* @description Payment type.
|
|
6825
6825
|
* @enum {string}
|
|
6826
6826
|
*/
|
|
6827
|
-
type: "credits" | "external" | "flow" | "fondy" | "freedompay" | "invoice" | "kakaopay" | "maya" | "mercadopago" | "mollie" | "paypal" | "paystack" | "plata" | "stripe" | "tap" | "wayforpay" | "xendit";
|
|
6827
|
+
type: "credits" | "external" | "flow" | "fondy" | "freedompay" | "invoice" | "kakaopay" | "maya" | "mercadopago" | "mollie" | "paypal" | "paystack" | "payway" | "plata" | "stripe" | "tap" | "wayforpay" | "xendit";
|
|
6828
6828
|
};
|
|
6829
6829
|
/** @description Number of tickets included in this purchase. */
|
|
6830
6830
|
quantity: number;
|
|
@@ -7930,16 +7930,16 @@ interface components {
|
|
|
7930
7930
|
/** @description User assigned to the resource. */
|
|
7931
7931
|
user?: {
|
|
7932
7932
|
/** @description User email. */
|
|
7933
|
-
email
|
|
7933
|
+
email?: string | null;
|
|
7934
7934
|
/**
|
|
7935
7935
|
* Format: uuid
|
|
7936
7936
|
* @description User id.
|
|
7937
7937
|
*/
|
|
7938
7938
|
id: string;
|
|
7939
7939
|
/** @description User first name. */
|
|
7940
|
-
name
|
|
7940
|
+
name?: string | null;
|
|
7941
7941
|
/** @description User last name. */
|
|
7942
|
-
surname
|
|
7942
|
+
surname?: string | null;
|
|
7943
7943
|
};
|
|
7944
7944
|
}[];
|
|
7945
7945
|
/** @description Auto-release settings for no-show bookings. */
|
|
@@ -7953,7 +7953,7 @@ interface components {
|
|
|
7953
7953
|
interval: "fiveMinutes" | "tenMinutes" | "fifteenMinutes";
|
|
7954
7954
|
};
|
|
7955
7955
|
/** @description Avigilon Alta access group reference. */
|
|
7956
|
-
avigilonAltaGroupRef?:
|
|
7956
|
+
avigilonAltaGroupRef?: number | null;
|
|
7957
7957
|
/**
|
|
7958
7958
|
* @description Who can create bookings on this resource.
|
|
7959
7959
|
* @enum {string}
|
|
@@ -7962,7 +7962,7 @@ interface components {
|
|
|
7962
7962
|
/** @description Booking step size in minutes. */
|
|
7963
7963
|
bookingStepMinutes?: number;
|
|
7964
7964
|
/** @description Brivo access group reference. */
|
|
7965
|
-
brivoGroupRef?: number;
|
|
7965
|
+
brivoGroupRef?: number | null;
|
|
7966
7966
|
/** @description Maximum capacity per booking. */
|
|
7967
7967
|
capacity?: number | null;
|
|
7968
7968
|
/** @description Check-in settings. */
|
|
@@ -8049,7 +8049,7 @@ interface components {
|
|
|
8049
8049
|
/** @description Public URL of the resource image. */
|
|
8050
8050
|
imageUrl?: string;
|
|
8051
8051
|
/** @description Kisi access group reference. */
|
|
8052
|
-
kisiGroupRef?: number;
|
|
8052
|
+
kisiGroupRef?: number | null;
|
|
8053
8053
|
/** @description Auto-detected language of the description. */
|
|
8054
8054
|
locale: string;
|
|
8055
8055
|
/**
|
|
@@ -8305,7 +8305,7 @@ interface components {
|
|
|
8305
8305
|
* Format: uuid
|
|
8306
8306
|
* @description Salto KS access group reference.
|
|
8307
8307
|
*/
|
|
8308
|
-
saltoksAccessGroupRef?: string;
|
|
8308
|
+
saltoksAccessGroupRef?: string | null;
|
|
8309
8309
|
/** @description Availability schedule. */
|
|
8310
8310
|
schedule?: {
|
|
8311
8311
|
/** @description Default availability schedule. */
|
|
@@ -8381,7 +8381,7 @@ interface components {
|
|
|
8381
8381
|
* Format: uuid
|
|
8382
8382
|
* @description Tapkey access group reference.
|
|
8383
8383
|
*/
|
|
8384
|
-
tapkeyGroupRef?: string;
|
|
8384
|
+
tapkeyGroupRef?: string | null;
|
|
8385
8385
|
/** @description Display name of the resource. */
|
|
8386
8386
|
title: string;
|
|
8387
8387
|
/**
|
|
@@ -9210,7 +9210,7 @@ interface components {
|
|
|
9210
9210
|
* @description Payment gateway type.
|
|
9211
9211
|
* @enum {string}
|
|
9212
9212
|
*/
|
|
9213
|
-
type?: "flow" | "fondy" | "freedompay" | "kakaopay" | "maya" | "mercadopago" | "paypal" | "paystack" | "plata" | "stripe" | "tap" | "wayforpay" | "mollie" | "xendit";
|
|
9213
|
+
type?: "flow" | "fondy" | "freedompay" | "kakaopay" | "maya" | "mercadopago" | "paypal" | "paystack" | "payway" | "plata" | "stripe" | "tap" | "wayforpay" | "mollie" | "xendit";
|
|
9214
9214
|
};
|
|
9215
9215
|
/**
|
|
9216
9216
|
* @description Payment method type.
|
|
@@ -9678,7 +9678,7 @@ interface components {
|
|
|
9678
9678
|
* @description Payment gateway type.
|
|
9679
9679
|
* @enum {string}
|
|
9680
9680
|
*/
|
|
9681
|
-
type?: "flow" | "fondy" | "freedompay" | "kakaopay" | "maya" | "mercadopago" | "paypal" | "paystack" | "plata" | "stripe" | "tap" | "wayforpay" | "mollie" | "xendit";
|
|
9681
|
+
type?: "flow" | "fondy" | "freedompay" | "kakaopay" | "maya" | "mercadopago" | "paypal" | "paystack" | "payway" | "plata" | "stripe" | "tap" | "wayforpay" | "mollie" | "xendit";
|
|
9682
9682
|
};
|
|
9683
9683
|
/**
|
|
9684
9684
|
* @description Payment method type.
|
|
@@ -13066,7 +13066,7 @@ interface components {
|
|
|
13066
13066
|
* @description Payment gateway type.
|
|
13067
13067
|
* @enum {string}
|
|
13068
13068
|
*/
|
|
13069
|
-
type: "external" | "freedompay" | "kakaopay" | "maya" | "mercadopago" | "mollie" | "paypal" | "paystack" | "plata" | "stripe" | "tap" | "wayforpay" | "xendit";
|
|
13069
|
+
type: "external" | "freedompay" | "kakaopay" | "maya" | "mercadopago" | "mollie" | "paypal" | "paystack" | "payway" | "plata" | "stripe" | "tap" | "wayforpay" | "xendit";
|
|
13070
13070
|
};
|
|
13071
13071
|
/** @description Whether the user has accepted the payment terms. */
|
|
13072
13072
|
termsConsent?: boolean;
|
|
@@ -14168,7 +14168,7 @@ interface components {
|
|
|
14168
14168
|
interval: "fiveMinutes" | "tenMinutes" | "fifteenMinutes";
|
|
14169
14169
|
};
|
|
14170
14170
|
/** @description Avigilon Alta access group reference. */
|
|
14171
|
-
avigilonAltaGroupRef?:
|
|
14171
|
+
avigilonAltaGroupRef?: number | null;
|
|
14172
14172
|
/**
|
|
14173
14173
|
* @description Who can create bookings on this resource.
|
|
14174
14174
|
* @enum {string}
|
|
@@ -14177,7 +14177,7 @@ interface components {
|
|
|
14177
14177
|
/** @description Booking step size in minutes. */
|
|
14178
14178
|
bookingStepMinutes?: number;
|
|
14179
14179
|
/** @description Brivo access group reference. */
|
|
14180
|
-
brivoGroupRef?: number;
|
|
14180
|
+
brivoGroupRef?: number | null;
|
|
14181
14181
|
/** @description Maximum capacity per booking. */
|
|
14182
14182
|
capacity?: number | null;
|
|
14183
14183
|
/** @description Check-in settings. */
|
|
@@ -14259,7 +14259,7 @@ interface components {
|
|
|
14259
14259
|
*/
|
|
14260
14260
|
id?: string;
|
|
14261
14261
|
/** @description Kisi access group reference. */
|
|
14262
|
-
kisiGroupRef?: number;
|
|
14262
|
+
kisiGroupRef?: number | null;
|
|
14263
14263
|
/**
|
|
14264
14264
|
* Format: uuid
|
|
14265
14265
|
* @description ID of the location.
|
|
@@ -14391,7 +14391,7 @@ interface components {
|
|
|
14391
14391
|
* Format: uuid
|
|
14392
14392
|
* @description Salto KS access group reference.
|
|
14393
14393
|
*/
|
|
14394
|
-
saltoksAccessGroupRef?: string;
|
|
14394
|
+
saltoksAccessGroupRef?: string | null;
|
|
14395
14395
|
/** @description Availability schedule. */
|
|
14396
14396
|
schedule?: {
|
|
14397
14397
|
/** @description Default availability schedule. */
|
|
@@ -14467,7 +14467,7 @@ interface components {
|
|
|
14467
14467
|
* Format: uuid
|
|
14468
14468
|
* @description Tapkey access group reference.
|
|
14469
14469
|
*/
|
|
14470
|
-
tapkeyGroupRef?: string;
|
|
14470
|
+
tapkeyGroupRef?: string | null;
|
|
14471
14471
|
/** @description Display name of the resource. */
|
|
14472
14472
|
title: string;
|
|
14473
14473
|
/**
|
|
@@ -14500,7 +14500,7 @@ interface components {
|
|
|
14500
14500
|
interval: "fiveMinutes" | "tenMinutes" | "fifteenMinutes";
|
|
14501
14501
|
};
|
|
14502
14502
|
/** @description Avigilon Alta access group reference. */
|
|
14503
|
-
avigilonAltaGroupRef?:
|
|
14503
|
+
avigilonAltaGroupRef?: number | null;
|
|
14504
14504
|
/**
|
|
14505
14505
|
* @description Who can create bookings on this resource.
|
|
14506
14506
|
* @enum {string}
|
|
@@ -14509,7 +14509,7 @@ interface components {
|
|
|
14509
14509
|
/** @description Booking step size in minutes. */
|
|
14510
14510
|
bookingStepMinutes?: number;
|
|
14511
14511
|
/** @description Brivo access group reference. */
|
|
14512
|
-
brivoGroupRef?: number;
|
|
14512
|
+
brivoGroupRef?: number | null;
|
|
14513
14513
|
/** @description Maximum capacity per booking. */
|
|
14514
14514
|
capacity?: number | null;
|
|
14515
14515
|
/** @description Check-in settings. */
|
|
@@ -14586,7 +14586,7 @@ interface components {
|
|
|
14586
14586
|
twoWaySyncEnabled: boolean;
|
|
14587
14587
|
};
|
|
14588
14588
|
/** @description Kisi access group reference. */
|
|
14589
|
-
kisiGroupRef?: number;
|
|
14589
|
+
kisiGroupRef?: number | null;
|
|
14590
14590
|
/** @description Images to attach when creating the resource. */
|
|
14591
14591
|
media?: {
|
|
14592
14592
|
/** @description Storage key of the uploaded image. */
|
|
@@ -14713,7 +14713,7 @@ interface components {
|
|
|
14713
14713
|
* Format: uuid
|
|
14714
14714
|
* @description Salto KS access group reference.
|
|
14715
14715
|
*/
|
|
14716
|
-
saltoksAccessGroupRef?: string;
|
|
14716
|
+
saltoksAccessGroupRef?: string | null;
|
|
14717
14717
|
/** @description Availability schedule. */
|
|
14718
14718
|
schedule?: {
|
|
14719
14719
|
/** @description Default availability schedule. */
|
|
@@ -14789,7 +14789,7 @@ interface components {
|
|
|
14789
14789
|
* Format: uuid
|
|
14790
14790
|
* @description Tapkey access group reference.
|
|
14791
14791
|
*/
|
|
14792
|
-
tapkeyGroupRef?: string;
|
|
14792
|
+
tapkeyGroupRef?: string | null;
|
|
14793
14793
|
/** @description Display name of the resource. */
|
|
14794
14794
|
title?: string;
|
|
14795
14795
|
/**
|
|
@@ -22477,10 +22477,8 @@ interface operations {
|
|
|
22477
22477
|
type Contact = NonNullable<components["schemas"]["contact"]>;
|
|
22478
22478
|
/** A Request entity as returned by the Spacebring API. */
|
|
22479
22479
|
type Request$1 = NonNullable<components["schemas"]["visitRequest"]>;
|
|
22480
|
-
/** A
|
|
22481
|
-
type
|
|
22482
|
-
/** A VisitorVisit entity as returned by the Spacebring API. */
|
|
22483
|
-
type VisitorVisit = NonNullable<components["schemas"]["visit"]>;
|
|
22480
|
+
/** A Visit entity as returned by the Spacebring API. */
|
|
22481
|
+
type Visit = NonNullable<components["schemas"]["visit"]>;
|
|
22484
22482
|
/** Query parameters for `sb.visitors.contacts.list()`. */
|
|
22485
22483
|
interface GetContactsQuery {
|
|
22486
22484
|
/** The maximum number of contacts to return. Default is 25. */
|
|
@@ -22535,13 +22533,13 @@ type CheckInVisitBody = NonNullable<operations["checkInVisit"]["requestBody"]>["
|
|
|
22535
22533
|
/** Request body for `sb.visitors.visits.checkOut()`. */
|
|
22536
22534
|
type CheckOutVisitBody = NonNullable<operations["checkOutVisit"]["requestBody"]>["content"]["application/json"];
|
|
22537
22535
|
/** Request body for `sb.visitors.contacts.create()`. */
|
|
22538
|
-
type CreateContactBody = NonNullable<operations["createContact"]["requestBody"]>["content"]["application/json"]
|
|
22536
|
+
type CreateContactBody = NonNullable<NonNullable<operations["createContact"]["requestBody"]>["content"]["application/json"]["contact"]>;
|
|
22539
22537
|
/** Request body for `sb.visitors.requests.create()`. */
|
|
22540
|
-
type CreateRequestBody = NonNullable<operations["createRequest"]["requestBody"]>["content"]["application/json"]
|
|
22538
|
+
type CreateRequestBody = NonNullable<NonNullable<operations["createRequest"]["requestBody"]>["content"]["application/json"]["request"]>;
|
|
22541
22539
|
/** Request body for `sb.visitors.visits.create()`. */
|
|
22542
|
-
type CreateVisitBody = NonNullable<operations["createVisit"]["requestBody"]>["content"]["application/json"]
|
|
22540
|
+
type CreateVisitBody = NonNullable<NonNullable<operations["createVisit"]["requestBody"]>["content"]["application/json"]["visit"]>;
|
|
22543
22541
|
/** Request body for `sb.visitors.visits.update()`. */
|
|
22544
|
-
type UpdateVisitBody = NonNullable<operations["updateVisit"]["requestBody"]>["content"]["application/json"]
|
|
22542
|
+
type UpdateVisitBody = NonNullable<NonNullable<operations["updateVisit"]["requestBody"]>["content"]["application/json"]["visit"]>;
|
|
22545
22543
|
|
|
22546
22544
|
/** A Balance entity as returned by the Spacebring API. */
|
|
22547
22545
|
type Balance = NonNullable<components["schemas"]["balance"]>;
|
|
@@ -22609,9 +22607,9 @@ interface GetMoneyTransactionsQuery {
|
|
|
22609
22607
|
nextPageToken?: string;
|
|
22610
22608
|
}
|
|
22611
22609
|
/** Request body for `sb.transactions.credits.create()`. */
|
|
22612
|
-
type CreateCreditsTransactionBody = NonNullable<operations["createCreditsTransaction"]["requestBody"]>["content"]["application/json"]
|
|
22610
|
+
type CreateCreditsTransactionBody = NonNullable<NonNullable<operations["createCreditsTransaction"]["requestBody"]>["content"]["application/json"]["transaction"]>;
|
|
22613
22611
|
/** Request body for `sb.transactions.dayPasses.create()`. */
|
|
22614
|
-
type CreateDayPassesTransactionBody = NonNullable<operations["createDayPassesTransaction"]["requestBody"]>["content"]["application/json"]
|
|
22612
|
+
type CreateDayPassesTransactionBody = NonNullable<NonNullable<operations["createDayPassesTransaction"]["requestBody"]>["content"]["application/json"]["transaction"]>;
|
|
22615
22613
|
|
|
22616
22614
|
/** A Activity entity as returned by the Spacebring API. */
|
|
22617
22615
|
type Activity = NonNullable<components["schemas"]["ticketActivity"]>;
|
|
@@ -22627,15 +22625,15 @@ interface GetSupportTicketsQuery {
|
|
|
22627
22625
|
nextPageToken?: string;
|
|
22628
22626
|
}
|
|
22629
22627
|
/** Request body for `sb.support.tickets.create()`. */
|
|
22630
|
-
type CreateSupportTicketBody = NonNullable<operations["createSupportTicket"]["requestBody"]>["content"]["application/json"]
|
|
22628
|
+
type CreateSupportTicketBody = NonNullable<NonNullable<operations["createSupportTicket"]["requestBody"]>["content"]["application/json"]["ticket"]>;
|
|
22631
22629
|
/** Request body for `sb.support.tickets.comment.create()`. */
|
|
22632
|
-
type CreateSupportTicketCommentBody = NonNullable<operations["createSupportTicketComment"]["requestBody"]>["content"]["application/json"]
|
|
22630
|
+
type CreateSupportTicketCommentBody = NonNullable<NonNullable<operations["createSupportTicketComment"]["requestBody"]>["content"]["application/json"]["activity"]>;
|
|
22633
22631
|
/** Request body for `sb.support.tickets.updateAssignee()`. */
|
|
22634
|
-
type UpdateSupportTicketAssigneeBody = NonNullable<operations["updateSupportTicketAssignee"]["requestBody"]>["content"]["application/json"]
|
|
22632
|
+
type UpdateSupportTicketAssigneeBody = NonNullable<NonNullable<operations["updateSupportTicketAssignee"]["requestBody"]>["content"]["application/json"]["ticket"]>;
|
|
22635
22633
|
/** Request body for `sb.support.tickets.updateStatus()`. */
|
|
22636
|
-
type UpdateSupportTicketStatusBody = NonNullable<operations["updateSupportTicketStatus"]["requestBody"]>["content"]["application/json"]
|
|
22634
|
+
type UpdateSupportTicketStatusBody = NonNullable<NonNullable<operations["updateSupportTicketStatus"]["requestBody"]>["content"]["application/json"]["ticket"]>;
|
|
22637
22635
|
/** Request body for `sb.support.tickets.updateType()`. */
|
|
22638
|
-
type UpdateSupportTicketTypeBody = NonNullable<operations["updateSupportTicketType"]["requestBody"]>["content"]["application/json"]
|
|
22636
|
+
type UpdateSupportTicketTypeBody = NonNullable<NonNullable<operations["updateSupportTicketType"]["requestBody"]>["content"]["application/json"]["ticket"]>;
|
|
22639
22637
|
|
|
22640
22638
|
/** A Subscription entity as returned by the Spacebring API. */
|
|
22641
22639
|
type Subscription = NonNullable<components["schemas"]["subscription"]>;
|
|
@@ -22670,18 +22668,18 @@ interface GetSubscriptionsQuery {
|
|
|
22670
22668
|
/** Request body for `sb.subscriptions.create()`. */
|
|
22671
22669
|
type CreateSubscriptionBody = NonNullable<operations["createSubscription"]["requestBody"]>["content"]["application/json"];
|
|
22672
22670
|
/** Request body for `sb.subscriptions.createItem()`. */
|
|
22673
|
-
type CreateSubscriptionItemBody = NonNullable<operations["createSubscriptionItem"]["requestBody"]>["content"]["application/json"]
|
|
22671
|
+
type CreateSubscriptionItemBody = NonNullable<NonNullable<operations["createSubscriptionItem"]["requestBody"]>["content"]["application/json"]["item"]>;
|
|
22674
22672
|
/** Request body for `sb.subscriptions.update()`. */
|
|
22675
|
-
type UpdateSubscriptionBody = NonNullable<operations["updateSubscription"]["requestBody"]>["content"]["application/json"]
|
|
22673
|
+
type UpdateSubscriptionBody = NonNullable<NonNullable<operations["updateSubscription"]["requestBody"]>["content"]["application/json"]["subscription"]>;
|
|
22676
22674
|
/** Request body for `sb.subscriptions.updateItem()`. */
|
|
22677
|
-
type UpdateSubscriptionItemBody = NonNullable<operations["updateSubscriptionItem"]["requestBody"]>["content"]["application/json"]
|
|
22675
|
+
type UpdateSubscriptionItemBody = NonNullable<NonNullable<operations["updateSubscriptionItem"]["requestBody"]>["content"]["application/json"]["item"]>;
|
|
22678
22676
|
|
|
22679
22677
|
/** A Order entity as returned by the Spacebring API. */
|
|
22680
22678
|
type Order = NonNullable<operations["getOrder"]["responses"][200]["content"]["application/json"]["order"]>;
|
|
22681
22679
|
/** A Product entity as returned by the Spacebring API. */
|
|
22682
22680
|
type Product = NonNullable<components["schemas"]["product"]>;
|
|
22683
22681
|
/** A ShopCategory entity as returned by the Spacebring API. */
|
|
22684
|
-
type ShopCategory = NonNullable<
|
|
22682
|
+
type ShopCategory = NonNullable<components["schemas"]["shopCategory"]>;
|
|
22685
22683
|
/** Query parameters for `sb.shop.orders.list()`. */
|
|
22686
22684
|
interface GetOrdersQuery {
|
|
22687
22685
|
/** Comma-separated shop category UUIDs used to filter orders, e.g. `uuid1,uuid2`. */
|
|
@@ -22730,13 +22728,13 @@ interface GetShopCategoriesQuery {
|
|
|
22730
22728
|
locationRef: string;
|
|
22731
22729
|
}
|
|
22732
22730
|
/** Request body for `sb.shop.products.create()`. */
|
|
22733
|
-
type CreateProductBody = NonNullable<operations["createProduct"]["requestBody"]>["content"]["application/json"]
|
|
22731
|
+
type CreateProductBody = NonNullable<NonNullable<operations["createProduct"]["requestBody"]>["content"]["application/json"]["product"]>;
|
|
22734
22732
|
/** Request body for `sb.shop.categories.create()`. */
|
|
22735
|
-
type CreateShopCategoryBody = NonNullable<operations["createShopCategory"]["requestBody"]>["content"]["application/json"]
|
|
22733
|
+
type CreateShopCategoryBody = NonNullable<NonNullable<operations["createShopCategory"]["requestBody"]>["content"]["application/json"]["category"]>;
|
|
22736
22734
|
/** Request body for `sb.shop.products.update()`. */
|
|
22737
|
-
type UpdateProductBody = NonNullable<operations["updateProduct"]["requestBody"]>["content"]["application/json"]
|
|
22735
|
+
type UpdateProductBody = NonNullable<NonNullable<operations["updateProduct"]["requestBody"]>["content"]["application/json"]["product"]>;
|
|
22738
22736
|
/** Request body for `sb.shop.categories.update()`. */
|
|
22739
|
-
type UpdateShopCategoryBody = NonNullable<operations["updateShopCategory"]["requestBody"]>["content"]["application/json"]
|
|
22737
|
+
type UpdateShopCategoryBody = NonNullable<NonNullable<operations["updateShopCategory"]["requestBody"]>["content"]["application/json"]["category"]>;
|
|
22740
22738
|
|
|
22741
22739
|
/** A Booking entity as returned by the Spacebring API. */
|
|
22742
22740
|
type Booking = NonNullable<components["schemas"]["booking"]>;
|
|
@@ -22785,11 +22783,11 @@ interface GetResourcesQuery {
|
|
|
22785
22783
|
limit?: number;
|
|
22786
22784
|
}
|
|
22787
22785
|
/** Request body for `sb.resources.bookings.create()`. */
|
|
22788
|
-
type CreateBookingBody = NonNullable<operations["createBooking"]["requestBody"]>["content"]["application/json"]
|
|
22786
|
+
type CreateBookingBody = NonNullable<NonNullable<operations["createBooking"]["requestBody"]>["content"]["application/json"]["booking"]>;
|
|
22789
22787
|
/** Request body for `sb.resources.create()`. */
|
|
22790
|
-
type CreateResourceBody = NonNullable<operations["createResource"]["requestBody"]>["content"]["application/json"]
|
|
22788
|
+
type CreateResourceBody = NonNullable<NonNullable<operations["createResource"]["requestBody"]>["content"]["application/json"]["resource"]>;
|
|
22791
22789
|
/** Request body for `sb.resources.update()`. */
|
|
22792
|
-
type PatchResourceBody = NonNullable<operations["patchResource"]["requestBody"]>["content"]["application/json"]
|
|
22790
|
+
type PatchResourceBody = NonNullable<NonNullable<operations["patchResource"]["requestBody"]>["content"]["application/json"]["resource"]>;
|
|
22793
22791
|
|
|
22794
22792
|
/** A Registration entity as returned by the Spacebring API. */
|
|
22795
22793
|
type Registration = NonNullable<components["schemas"]["registration"]>;
|
|
@@ -22817,9 +22815,9 @@ interface GetPlansQuery {
|
|
|
22817
22815
|
resourceRef?: string;
|
|
22818
22816
|
}
|
|
22819
22817
|
/** Request body for `sb.plans.create()`. */
|
|
22820
|
-
type CreatePlanBody = NonNullable<operations["createPlan"]["requestBody"]>["content"]["application/json"]
|
|
22818
|
+
type CreatePlanBody = NonNullable<NonNullable<operations["createPlan"]["requestBody"]>["content"]["application/json"]["plan"]>;
|
|
22821
22819
|
/** Request body for `sb.plans.update()`. */
|
|
22822
|
-
type UpdatePlanBody = NonNullable<operations["updatePlan"]["requestBody"]>["content"]["application/json"]
|
|
22820
|
+
type UpdatePlanBody = NonNullable<NonNullable<operations["updatePlan"]["requestBody"]>["content"]["application/json"]["plan"]>;
|
|
22823
22821
|
|
|
22824
22822
|
/** A Network entity as returned by the Spacebring API. */
|
|
22825
22823
|
type Network = NonNullable<components["schemas"]["network"]>;
|
|
@@ -22839,9 +22837,9 @@ interface GetGuidesQuery {
|
|
|
22839
22837
|
nextPageToken?: string;
|
|
22840
22838
|
}
|
|
22841
22839
|
/** Request body for `sb.guides.create()`. */
|
|
22842
|
-
type CreateGuideBody = NonNullable<operations["createGuide"]["requestBody"]>["content"]["application/json"]
|
|
22840
|
+
type CreateGuideBody = NonNullable<NonNullable<operations["createGuide"]["requestBody"]>["content"]["application/json"]["guide"]>;
|
|
22843
22841
|
/** Request body for `sb.guides.update()`. */
|
|
22844
|
-
type PatchGuideBody = NonNullable<operations["patchGuide"]["requestBody"]>["content"]["application/json"]
|
|
22842
|
+
type PatchGuideBody = NonNullable<NonNullable<operations["patchGuide"]["requestBody"]>["content"]["application/json"]["guide"]>;
|
|
22845
22843
|
|
|
22846
22844
|
/** Query parameters for `sb.floors.list()`. */
|
|
22847
22845
|
interface GetFloorsQuery {
|
|
@@ -22853,16 +22851,12 @@ interface GetFloorsQuery {
|
|
|
22853
22851
|
nextPageToken?: string;
|
|
22854
22852
|
}
|
|
22855
22853
|
|
|
22856
|
-
/** A
|
|
22857
|
-
type
|
|
22858
|
-
/** A
|
|
22859
|
-
type
|
|
22854
|
+
/** A Comment entity as returned by the Spacebring API. */
|
|
22855
|
+
type Comment = NonNullable<components["schemas"]["postComment"]>;
|
|
22856
|
+
/** A Like entity as returned by the Spacebring API. */
|
|
22857
|
+
type Like = NonNullable<components["schemas"]["postLike"]>;
|
|
22860
22858
|
/** A Post entity as returned by the Spacebring API. */
|
|
22861
22859
|
type Post = NonNullable<components["schemas"]["post"]>;
|
|
22862
|
-
/** A PostComment entity as returned by the Spacebring API. */
|
|
22863
|
-
type PostComment = NonNullable<components["schemas"]["postComment"]>;
|
|
22864
|
-
/** A PostLike entity as returned by the Spacebring API. */
|
|
22865
|
-
type PostLike = NonNullable<components["schemas"]["postLike"]>;
|
|
22866
22860
|
/** Query parameters for `sb.feed.posts.list()`. */
|
|
22867
22861
|
interface GetFeedPostsQuery {
|
|
22868
22862
|
/** The id of the location. */
|
|
@@ -22873,11 +22867,11 @@ interface GetFeedPostsQuery {
|
|
|
22873
22867
|
limit?: number;
|
|
22874
22868
|
}
|
|
22875
22869
|
/** Request body for `sb.feed.posts.create()`. */
|
|
22876
|
-
type CreateFeedPostBody = NonNullable<operations["createFeedPost"]["requestBody"]>["content"]["application/json"]
|
|
22870
|
+
type CreateFeedPostBody = NonNullable<NonNullable<operations["createFeedPost"]["requestBody"]>["content"]["application/json"]["post"]>;
|
|
22877
22871
|
/** Request body for `sb.feed.comments.create()`. */
|
|
22878
|
-
type CreateFeedPostCommentBody = NonNullable<operations["createFeedPostComment"]["requestBody"]>["content"]["application/json"]
|
|
22872
|
+
type CreateFeedPostCommentBody = NonNullable<NonNullable<operations["createFeedPostComment"]["requestBody"]>["content"]["application/json"]["comment"]>;
|
|
22879
22873
|
/** Request body for `sb.feed.posts.update()`. */
|
|
22880
|
-
type UpdateFeedPostBody = NonNullable<operations["updateFeedPost"]["requestBody"]>["content"]["application/json"]
|
|
22874
|
+
type UpdateFeedPostBody = NonNullable<NonNullable<operations["updateFeedPost"]["requestBody"]>["content"]["application/json"]["post"]>;
|
|
22881
22875
|
|
|
22882
22876
|
/** A Event entity as returned by the Spacebring API. */
|
|
22883
22877
|
type Event = NonNullable<components["schemas"]["event"]>;
|
|
@@ -22904,7 +22898,7 @@ interface GetEventTicketsQuery {
|
|
|
22904
22898
|
nextPageToken?: string;
|
|
22905
22899
|
}
|
|
22906
22900
|
/** Request body for `sb.events.create()`. */
|
|
22907
|
-
type CreateEventBody = NonNullable<operations["createEvent"]["requestBody"]>["content"]["application/json"]
|
|
22901
|
+
type CreateEventBody = NonNullable<NonNullable<operations["createEvent"]["requestBody"]>["content"]["application/json"]["event"]>;
|
|
22908
22902
|
|
|
22909
22903
|
/** A Coupon entity as returned by the Spacebring API. */
|
|
22910
22904
|
type Coupon = NonNullable<components["schemas"]["coupon"]>;
|
|
@@ -22942,11 +22936,11 @@ interface GetPromocodesQuery {
|
|
|
22942
22936
|
couponRef?: string;
|
|
22943
22937
|
}
|
|
22944
22938
|
/** Request body for `sb.discounts.coupons.create()`. */
|
|
22945
|
-
type CreateCouponBody = NonNullable<operations["createCoupon"]["requestBody"]>["content"]["application/json"]
|
|
22939
|
+
type CreateCouponBody = NonNullable<NonNullable<operations["createCoupon"]["requestBody"]>["content"]["application/json"]["coupon"]>;
|
|
22946
22940
|
/** Request body for `sb.discounts.promocodes.create()`. */
|
|
22947
|
-
type CreatePromocodeBody = NonNullable<operations["createPromocode"]["requestBody"]>["content"]["application/json"]
|
|
22941
|
+
type CreatePromocodeBody = NonNullable<NonNullable<operations["createPromocode"]["requestBody"]>["content"]["application/json"]["promocode"]>;
|
|
22948
22942
|
/** Request body for `sb.discounts.coupons.update()`. */
|
|
22949
|
-
type UpdateCouponBody = NonNullable<operations["updateCoupon"]["requestBody"]>["content"]["application/json"]
|
|
22943
|
+
type UpdateCouponBody = NonNullable<NonNullable<operations["updateCoupon"]["requestBody"]>["content"]["application/json"]["coupon"]>;
|
|
22950
22944
|
|
|
22951
22945
|
/** A Contract entity as returned by the Spacebring API. */
|
|
22952
22946
|
type Contract = NonNullable<operations["getContract"]["responses"][200]["content"]["application/json"]["contract"]>;
|
|
@@ -22973,11 +22967,11 @@ interface GetContractsQuery {
|
|
|
22973
22967
|
status?: string;
|
|
22974
22968
|
}
|
|
22975
22969
|
/** Request body for `sb.contracts.create()`. */
|
|
22976
|
-
type CreateContractBody = NonNullable<operations["createContract"]["requestBody"]>["content"]["application/json"]
|
|
22970
|
+
type CreateContractBody = NonNullable<NonNullable<operations["createContract"]["requestBody"]>["content"]["application/json"]["contract"]>;
|
|
22977
22971
|
/** Request body for `sb.contracts.issue()`. */
|
|
22978
|
-
type IssueContractBody = NonNullable<operations["issueContract"]["requestBody"]>["content"]["application/json"]
|
|
22972
|
+
type IssueContractBody = NonNullable<NonNullable<operations["issueContract"]["requestBody"]>["content"]["application/json"]["signatureMethod"]>;
|
|
22979
22973
|
/** Request body for `sb.contracts.terminate()`. */
|
|
22980
|
-
type TerminateContractBody = NonNullable<operations["terminateContract"]["requestBody"]>["content"]["application/json"]
|
|
22974
|
+
type TerminateContractBody = NonNullable<NonNullable<operations["terminateContract"]["requestBody"]>["content"]["application/json"]["reason"]>;
|
|
22981
22975
|
|
|
22982
22976
|
/** A Company entity as returned by the Spacebring API. */
|
|
22983
22977
|
type Company = NonNullable<components["schemas"]["company"]>;
|
|
@@ -23027,13 +23021,13 @@ interface GetMembershipsQuery {
|
|
|
23027
23021
|
types?: "member" | "nonmember";
|
|
23028
23022
|
}
|
|
23029
23023
|
/** Request body for `sb.community.companies.create()`. */
|
|
23030
|
-
type CreateCompanyBody = NonNullable<operations["createCompany"]["requestBody"]>["content"]["application/json"]
|
|
23024
|
+
type CreateCompanyBody = NonNullable<NonNullable<operations["createCompany"]["requestBody"]>["content"]["application/json"]["company"]>;
|
|
23031
23025
|
/** Request body for `sb.community.memberships.create()`. */
|
|
23032
23026
|
type CreateMembershipBody = NonNullable<operations["createMembership"]["requestBody"]>["content"]["application/json"];
|
|
23033
23027
|
/** Request body for `sb.community.companies.update()`. */
|
|
23034
|
-
type UpdateCompanyBody = NonNullable<operations["updateCompany"]["requestBody"]>["content"]["application/json"]
|
|
23028
|
+
type UpdateCompanyBody = NonNullable<NonNullable<operations["updateCompany"]["requestBody"]>["content"]["application/json"]["company"]>;
|
|
23035
23029
|
/** Request body for `sb.community.memberships.update()`. */
|
|
23036
|
-
type UpdateMembershipBody = NonNullable<operations["updateMembership"]["requestBody"]>["content"]["application/json"]
|
|
23030
|
+
type UpdateMembershipBody = NonNullable<NonNullable<operations["updateMembership"]["requestBody"]>["content"]["application/json"]["membership"]>;
|
|
23037
23031
|
|
|
23038
23032
|
/** A CreditNote entity as returned by the Spacebring API. */
|
|
23039
23033
|
type CreditNote = NonNullable<components["schemas"]["creditNote"]>;
|
|
@@ -23041,6 +23035,10 @@ type CreditNote = NonNullable<components["schemas"]["creditNote"]>;
|
|
|
23041
23035
|
type Invoice = NonNullable<components["schemas"]["invoice"]>;
|
|
23042
23036
|
/** A InvoiceItem entity as returned by the Spacebring API. */
|
|
23043
23037
|
type InvoiceItem = NonNullable<components["schemas"]["invoiceItem"]>;
|
|
23038
|
+
/** A Payment entity as returned by the Spacebring API. */
|
|
23039
|
+
type Payment = NonNullable<components["schemas"]["invoicePayment"]>;
|
|
23040
|
+
/** A UpcomingItem entity as returned by the Spacebring API. */
|
|
23041
|
+
type UpcomingItem = NonNullable<components["schemas"]["invoiceItem"]>;
|
|
23044
23042
|
/** Query parameters for `sb.billing.creditNotes.list()`. */
|
|
23045
23043
|
interface GetCreditNotesQuery {
|
|
23046
23044
|
/** Filter credit notes created on or after this date (ISO 8601). Use with createDate[lte] for a range. */
|
|
@@ -23137,30 +23135,30 @@ interface ListInvoiceItemsQuery {
|
|
|
23137
23135
|
type?: string;
|
|
23138
23136
|
}
|
|
23139
23137
|
/** Request body for `sb.billing.creditNotes.create()`. */
|
|
23140
|
-
type CreateCreditNoteBody = NonNullable<operations["createCreditNote"]["requestBody"]>["content"]["application/json"]
|
|
23138
|
+
type CreateCreditNoteBody = NonNullable<NonNullable<operations["createCreditNote"]["requestBody"]>["content"]["application/json"]["creditNote"]>;
|
|
23141
23139
|
/** Request body for `sb.billing.invoices.create()`. */
|
|
23142
23140
|
type CreateInvoiceBody = NonNullable<operations["createInvoice"]["requestBody"]>["content"]["application/json"];
|
|
23143
23141
|
/** Request body for `sb.billing.invoices.items.create()`. */
|
|
23144
|
-
type CreateInvoiceItemBody = NonNullable<operations["createInvoiceItem"]["requestBody"]>["content"]["application/json"]
|
|
23142
|
+
type CreateInvoiceItemBody = NonNullable<NonNullable<operations["createInvoiceItem"]["requestBody"]>["content"]["application/json"]["invoiceItem"]>;
|
|
23145
23143
|
/** Request body for `sb.billing.invoices.issue()`. */
|
|
23146
|
-
type IssueInvoiceBody = NonNullable<operations["issueInvoice"]["requestBody"]>["content"]["application/json"]
|
|
23144
|
+
type IssueInvoiceBody = NonNullable<NonNullable<operations["issueInvoice"]["requestBody"]>["content"]["application/json"]["skipAutoCharge"]>;
|
|
23147
23145
|
/** Request body for `sb.billing.invoices.pay()`. */
|
|
23148
23146
|
type PayInvoiceBody = NonNullable<operations["payInvoice"]["requestBody"]>["content"]["application/json"];
|
|
23149
23147
|
/** Request body for `sb.billing.creditNotes.preview()`. */
|
|
23150
|
-
type PreviewCreditNoteBody = NonNullable<operations["previewCreditNote"]["requestBody"]>["content"]["application/json"]
|
|
23148
|
+
type PreviewCreditNoteBody = NonNullable<NonNullable<operations["previewCreditNote"]["requestBody"]>["content"]["application/json"]["creditNote"]>;
|
|
23151
23149
|
/** Request body for `sb.billing.creditNotes.update()`. */
|
|
23152
|
-
type UpdateCreditNoteBody = NonNullable<operations["updateCreditNote"]["requestBody"]>["content"]["application/json"]
|
|
23150
|
+
type UpdateCreditNoteBody = NonNullable<NonNullable<operations["updateCreditNote"]["requestBody"]>["content"]["application/json"]["creditNote"]>;
|
|
23153
23151
|
/** Request body for `sb.billing.invoices.update()`. */
|
|
23154
|
-
type UpdateInvoiceBody = NonNullable<operations["updateInvoice"]["requestBody"]>["content"]["application/json"]
|
|
23152
|
+
type UpdateInvoiceBody = NonNullable<NonNullable<operations["updateInvoice"]["requestBody"]>["content"]["application/json"]["invoice"]>;
|
|
23155
23153
|
/** Request body for `sb.billing.invoices.items.update()`. */
|
|
23156
|
-
type UpdateInvoiceItemBody = NonNullable<operations["updateInvoiceItem"]["requestBody"]>["content"]["application/json"]
|
|
23154
|
+
type UpdateInvoiceItemBody = NonNullable<NonNullable<operations["updateInvoiceItem"]["requestBody"]>["content"]["application/json"]["invoiceItem"]>;
|
|
23157
23155
|
|
|
23158
23156
|
/** A Application entity as returned by the Spacebring API. */
|
|
23159
23157
|
type Application = NonNullable<components["schemas"]["benefitApplication"]>;
|
|
23160
23158
|
/** A Benefit entity as returned by the Spacebring API. */
|
|
23161
23159
|
type Benefit = NonNullable<components["schemas"]["benefit"]>;
|
|
23162
23160
|
/** A BenefitCategory entity as returned by the Spacebring API. */
|
|
23163
|
-
type BenefitCategory = NonNullable<
|
|
23161
|
+
type BenefitCategory = NonNullable<components["schemas"]["benefitCategory"]>;
|
|
23164
23162
|
/** Query parameters for `sb.benefits.applications.list()`. */
|
|
23165
23163
|
interface GetBenefitApplicationsQuery {
|
|
23166
23164
|
/** UUID of the benefit. */
|
|
@@ -23201,15 +23199,15 @@ interface GetBenefitsQuery {
|
|
|
23201
23199
|
nextPageToken?: string;
|
|
23202
23200
|
}
|
|
23203
23201
|
/** Request body for `sb.benefits.applications.create()`. */
|
|
23204
|
-
type ApplyBenefitBody = NonNullable<operations["applyBenefit"]["requestBody"]>["content"]["application/json"]
|
|
23202
|
+
type ApplyBenefitBody = NonNullable<NonNullable<operations["applyBenefit"]["requestBody"]>["content"]["application/json"]["application"]>;
|
|
23205
23203
|
/** Request body for `sb.benefits.create()`. */
|
|
23206
|
-
type CreateBenefitBody = NonNullable<operations["createBenefit"]["requestBody"]>["content"]["application/json"]
|
|
23204
|
+
type CreateBenefitBody = NonNullable<NonNullable<operations["createBenefit"]["requestBody"]>["content"]["application/json"]["benefit"]>;
|
|
23207
23205
|
/** Request body for `sb.benefits.categories.create()`. */
|
|
23208
|
-
type CreateBenefitCategoryBody = NonNullable<operations["createBenefitCategory"]["requestBody"]>["content"]["application/json"]
|
|
23206
|
+
type CreateBenefitCategoryBody = NonNullable<NonNullable<operations["createBenefitCategory"]["requestBody"]>["content"]["application/json"]["category"]>;
|
|
23209
23207
|
/** Request body for `sb.benefits.update()`. */
|
|
23210
|
-
type UpdateBenefitBody = NonNullable<operations["updateBenefit"]["requestBody"]>["content"]["application/json"]
|
|
23208
|
+
type UpdateBenefitBody = NonNullable<NonNullable<operations["updateBenefit"]["requestBody"]>["content"]["application/json"]["benefit"]>;
|
|
23211
23209
|
/** Request body for `sb.benefits.categories.update()`. */
|
|
23212
|
-
type UpdateBenefitCategoryBody = NonNullable<operations["updateBenefitCategory"]["requestBody"]>["content"]["application/json"]
|
|
23210
|
+
type UpdateBenefitCategoryBody = NonNullable<NonNullable<operations["updateBenefitCategory"]["requestBody"]>["content"]["application/json"]["category"]>;
|
|
23213
23211
|
|
|
23214
23212
|
/** A AltCurrency entity as returned by the Spacebring API. */
|
|
23215
23213
|
type AltCurrency = NonNullable<components["schemas"]["altCurrency"]>;
|
|
@@ -23223,9 +23221,9 @@ interface GetAltCurrenciesQuery {
|
|
|
23223
23221
|
limit?: number;
|
|
23224
23222
|
}
|
|
23225
23223
|
/** Request body for `sb.altCurrencies.create()`. */
|
|
23226
|
-
type CreateAltCurrencyBody = NonNullable<operations["createAltCurrency"]["requestBody"]>["content"]["application/json"]
|
|
23224
|
+
type CreateAltCurrencyBody = NonNullable<NonNullable<operations["createAltCurrency"]["requestBody"]>["content"]["application/json"]["altCurrency"]>;
|
|
23227
23225
|
/** Request body for `sb.altCurrencies.update()`. */
|
|
23228
|
-
type UpdateAltCurrencyBody = NonNullable<operations["updateAltCurrency"]["requestBody"]>["content"]["application/json"]
|
|
23226
|
+
type UpdateAltCurrencyBody = NonNullable<NonNullable<operations["updateAltCurrency"]["requestBody"]>["content"]["application/json"]["altCurrency"]>;
|
|
23229
23227
|
|
|
23230
23228
|
declare function createResources(client: Client<paths>, defaults: SpacebringDefaults): {
|
|
23231
23229
|
altCurrencies: {
|
|
@@ -23235,8 +23233,8 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
23235
23233
|
searchQueryNext?: string;
|
|
23236
23234
|
}>;
|
|
23237
23235
|
iterate(query: Omit<GetAltCurrenciesQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<AltCurrency, void, undefined>;
|
|
23238
|
-
create(
|
|
23239
|
-
update(id: string,
|
|
23236
|
+
create(altCurrency: CreateAltCurrencyBody, options?: SpacebringRequestOptions): Promise<AltCurrency>;
|
|
23237
|
+
update(id: string, altCurrency: UpdateAltCurrencyBody, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
23240
23238
|
delete(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
23241
23239
|
};
|
|
23242
23240
|
benefits: {
|
|
@@ -23247,8 +23245,8 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
23247
23245
|
}>;
|
|
23248
23246
|
iterate(query?: Omit<GetBenefitsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Benefit, void, undefined>;
|
|
23249
23247
|
get(benefitId: string, options?: SpacebringRequestOptions): Promise<Benefit>;
|
|
23250
|
-
create(
|
|
23251
|
-
update(benefitId: string,
|
|
23248
|
+
create(benefit: CreateBenefitBody, options?: SpacebringRequestOptions): Promise<Benefit>;
|
|
23249
|
+
update(benefitId: string, benefit: UpdateBenefitBody, options?: SpacebringRequestOptions): Promise<Benefit>;
|
|
23252
23250
|
delete(benefitId: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
23253
23251
|
applications: {
|
|
23254
23252
|
list(query?: GetBenefitApplicationsQuery, options?: SpacebringRequestOptions): Promise<{
|
|
@@ -23258,13 +23256,13 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
23258
23256
|
}>;
|
|
23259
23257
|
iterate(query?: Omit<GetBenefitApplicationsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Application, void, undefined>;
|
|
23260
23258
|
get(benefitApplicationId: string, options?: SpacebringRequestOptions): Promise<Application>;
|
|
23261
|
-
create(
|
|
23259
|
+
create(application: ApplyBenefitBody, options?: SpacebringRequestOptions): Promise<Application>;
|
|
23262
23260
|
};
|
|
23263
23261
|
categories: {
|
|
23264
23262
|
list(query: GetBenefitCategoriesQuery, options?: SpacebringRequestOptions): Promise<BenefitCategory[]>;
|
|
23265
23263
|
get(categoryId: string, options?: SpacebringRequestOptions): Promise<BenefitCategory>;
|
|
23266
|
-
create(
|
|
23267
|
-
update(categoryId: string,
|
|
23264
|
+
create(category: CreateBenefitCategoryBody, options?: SpacebringRequestOptions): Promise<BenefitCategory>;
|
|
23265
|
+
update(categoryId: string, category: UpdateBenefitCategoryBody, options?: SpacebringRequestOptions): Promise<BenefitCategory>;
|
|
23268
23266
|
delete(categoryId: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
23269
23267
|
};
|
|
23270
23268
|
};
|
|
@@ -23277,9 +23275,9 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
23277
23275
|
}>;
|
|
23278
23276
|
iterate(query?: Omit<GetCreditNotesQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<CreditNote, void, undefined>;
|
|
23279
23277
|
get(id: string, options?: SpacebringRequestOptions): Promise<CreditNote>;
|
|
23280
|
-
create(
|
|
23281
|
-
update(id: string,
|
|
23282
|
-
preview(
|
|
23278
|
+
create(creditNote: CreateCreditNoteBody, options?: SpacebringRequestOptions): Promise<CreditNote>;
|
|
23279
|
+
update(id: string, creditNote: UpdateCreditNoteBody, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
23280
|
+
preview(creditNote: PreviewCreditNoteBody, options?: SpacebringRequestOptions): Promise<CreditNote>;
|
|
23283
23281
|
};
|
|
23284
23282
|
invoices: {
|
|
23285
23283
|
list(query?: GetInvoicesQuery, options?: SpacebringRequestOptions): Promise<{
|
|
@@ -23290,14 +23288,27 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
23290
23288
|
iterate(query?: Omit<GetInvoicesQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Invoice, void, undefined>;
|
|
23291
23289
|
get(invoiceId: string, options?: SpacebringRequestOptions): Promise<Invoice>;
|
|
23292
23290
|
create(body: CreateInvoiceBody, options?: SpacebringRequestOptions): Promise<Invoice>;
|
|
23293
|
-
update(invoiceId: string,
|
|
23291
|
+
update(invoiceId: string, invoice: UpdateInvoiceBody, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
23294
23292
|
delete(invoiceId: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
23295
23293
|
cancelPayment(invoiceId: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
23296
23294
|
duplicate(invoiceId: string, options?: SpacebringRequestOptions): Promise<Invoice>;
|
|
23297
|
-
getItems(invoiceId: string, options?: SpacebringRequestOptions): Promise<
|
|
23298
|
-
|
|
23299
|
-
|
|
23300
|
-
|
|
23295
|
+
getItems(invoiceId: string, options?: SpacebringRequestOptions): Promise<{
|
|
23296
|
+
invoice?: Invoice;
|
|
23297
|
+
invoiceItems?: InvoiceItem[];
|
|
23298
|
+
}>;
|
|
23299
|
+
getUpcoming(query?: GetUpcomingInvoiceQuery, options?: SpacebringRequestOptions): Promise<{
|
|
23300
|
+
invoice?: Invoice;
|
|
23301
|
+
invoiceItems?: InvoiceItem[];
|
|
23302
|
+
upcomingItems?: UpcomingItem[];
|
|
23303
|
+
}>;
|
|
23304
|
+
issue(invoiceId: string, skipAutoCharge?: IssueInvoiceBody, options?: SpacebringRequestOptions): Promise<{
|
|
23305
|
+
invoice?: Invoice;
|
|
23306
|
+
invoiceItems?: InvoiceItem[];
|
|
23307
|
+
}>;
|
|
23308
|
+
pay(invoiceId: string, body: PayInvoiceBody, options?: SpacebringRequestOptions): Promise<{
|
|
23309
|
+
invoice?: Invoice;
|
|
23310
|
+
payment?: Payment;
|
|
23311
|
+
}>;
|
|
23301
23312
|
resend(invoiceId: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
23302
23313
|
void(invoiceId: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
23303
23314
|
items: {
|
|
@@ -23308,8 +23319,8 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
23308
23319
|
}>;
|
|
23309
23320
|
iterate(query?: Omit<ListInvoiceItemsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<InvoiceItem, void, undefined>;
|
|
23310
23321
|
get(id: string, options?: SpacebringRequestOptions): Promise<InvoiceItem>;
|
|
23311
|
-
create(
|
|
23312
|
-
update(id: string,
|
|
23322
|
+
create(invoiceItem: CreateInvoiceItemBody, options?: SpacebringRequestOptions): Promise<InvoiceItem>;
|
|
23323
|
+
update(id: string, invoiceItem: UpdateInvoiceItemBody, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
23313
23324
|
delete(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
23314
23325
|
getUpcoming(query?: GetUpcomingInvoiceItemsQuery, options?: SpacebringRequestOptions): Promise<InvoiceItem[]>;
|
|
23315
23326
|
};
|
|
@@ -23323,8 +23334,8 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
23323
23334
|
}>;
|
|
23324
23335
|
iterate(query: Omit<GetCompaniesQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Company, void, undefined>;
|
|
23325
23336
|
get(id: string, options?: SpacebringRequestOptions): Promise<Company>;
|
|
23326
|
-
create(
|
|
23327
|
-
update(id: string,
|
|
23337
|
+
create(company: CreateCompanyBody, options?: SpacebringRequestOptions): Promise<Company>;
|
|
23338
|
+
update(id: string, company: UpdateCompanyBody, options?: SpacebringRequestOptions): Promise<Company>;
|
|
23328
23339
|
};
|
|
23329
23340
|
memberships: {
|
|
23330
23341
|
list(query: GetMembershipsQuery, options?: SpacebringRequestOptions): Promise<{
|
|
@@ -23335,7 +23346,7 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
23335
23346
|
iterate(query: Omit<GetMembershipsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Membership, void, undefined>;
|
|
23336
23347
|
get(id: string, options?: SpacebringRequestOptions): Promise<Membership>;
|
|
23337
23348
|
create(body: CreateMembershipBody, options?: SpacebringRequestOptions): Promise<Membership>;
|
|
23338
|
-
update(id: number,
|
|
23349
|
+
update(id: number, membership: UpdateMembershipBody, options?: SpacebringRequestOptions): Promise<Membership>;
|
|
23339
23350
|
delete(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
23340
23351
|
iterateDeleted(query: Omit<GetMembershipsDeletedQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Membership, void, undefined>;
|
|
23341
23352
|
listDeleted(query: GetMembershipsDeletedQuery, options?: SpacebringRequestOptions): Promise<{
|
|
@@ -23352,10 +23363,10 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
23352
23363
|
}>;
|
|
23353
23364
|
iterate(query?: Omit<GetContractsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Contract, void, undefined>;
|
|
23354
23365
|
get(contractId: string, options?: SpacebringRequestOptions): Promise<Contract>;
|
|
23355
|
-
create(
|
|
23366
|
+
create(contract: CreateContractBody, options?: SpacebringRequestOptions): Promise<Contract>;
|
|
23356
23367
|
delete(contractId: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
23357
|
-
issue(contractId: string,
|
|
23358
|
-
terminate(contractId: string,
|
|
23368
|
+
issue(contractId: string, signatureMethod: IssueContractBody, options?: SpacebringRequestOptions): Promise<Contract>;
|
|
23369
|
+
terminate(contractId: string, reason: TerminateContractBody, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
23359
23370
|
};
|
|
23360
23371
|
discounts: {
|
|
23361
23372
|
coupons: {
|
|
@@ -23366,14 +23377,14 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
23366
23377
|
}>;
|
|
23367
23378
|
iterate(query: Omit<GetCouponsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Coupon, void, undefined>;
|
|
23368
23379
|
get(id: string, options?: SpacebringRequestOptions): Promise<Coupon>;
|
|
23369
|
-
create(
|
|
23370
|
-
update(id: string,
|
|
23380
|
+
create(coupon: CreateCouponBody, options?: SpacebringRequestOptions): Promise<Coupon>;
|
|
23381
|
+
update(id: string, coupon: UpdateCouponBody, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
23371
23382
|
delete(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
23372
23383
|
};
|
|
23373
23384
|
promocodes: {
|
|
23374
23385
|
list(query?: GetPromocodesQuery, options?: SpacebringRequestOptions): Promise<Promocode[]>;
|
|
23375
23386
|
get(id: string, options?: SpacebringRequestOptions): Promise<Promocode>;
|
|
23376
|
-
create(
|
|
23387
|
+
create(promocode: CreatePromocodeBody, options?: SpacebringRequestOptions): Promise<Promocode>;
|
|
23377
23388
|
archive(id: string, options?: SpacebringRequestOptions): Promise<Promocode>;
|
|
23378
23389
|
};
|
|
23379
23390
|
redemptions: {
|
|
@@ -23388,7 +23399,7 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
23388
23399
|
events: {
|
|
23389
23400
|
list(query: GetEventsByOrganizationQuery, options?: SpacebringRequestOptions): Promise<operations["getEventsByOrganization"]["responses"][200]["content"]["application/json"]>;
|
|
23390
23401
|
get(id: string, options?: SpacebringRequestOptions): Promise<Event>;
|
|
23391
|
-
create(
|
|
23402
|
+
create(event: CreateEventBody, options?: SpacebringRequestOptions): Promise<Event>;
|
|
23392
23403
|
delete(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
23393
23404
|
cancel(id: string, options?: SpacebringRequestOptions): Promise<Event>;
|
|
23394
23405
|
copy(id: string, options?: SpacebringRequestOptions): Promise<Event>;
|
|
@@ -23404,9 +23415,9 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
23404
23415
|
};
|
|
23405
23416
|
feed: {
|
|
23406
23417
|
comments: {
|
|
23407
|
-
create(
|
|
23418
|
+
create(comment: CreateFeedPostCommentBody, options?: SpacebringRequestOptions): Promise<Comment>;
|
|
23408
23419
|
delete(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
23409
|
-
createLike(id: string, options?: SpacebringRequestOptions): Promise<
|
|
23420
|
+
createLike(id: string, options?: SpacebringRequestOptions): Promise<Like>;
|
|
23410
23421
|
deleteLike(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
23411
23422
|
};
|
|
23412
23423
|
posts: {
|
|
@@ -23417,13 +23428,13 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
23417
23428
|
}>;
|
|
23418
23429
|
iterate(query: Omit<GetFeedPostsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Post, void, undefined>;
|
|
23419
23430
|
get(id: string, options?: SpacebringRequestOptions): Promise<Post>;
|
|
23420
|
-
create(
|
|
23421
|
-
update(id: string,
|
|
23431
|
+
create(post: CreateFeedPostBody, options?: SpacebringRequestOptions): Promise<Post>;
|
|
23432
|
+
update(id: string, post: UpdateFeedPostBody, options?: SpacebringRequestOptions): Promise<Post>;
|
|
23422
23433
|
delete(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
23423
|
-
createLike(id: string, options?: SpacebringRequestOptions): Promise<
|
|
23434
|
+
createLike(id: string, options?: SpacebringRequestOptions): Promise<Like>;
|
|
23424
23435
|
deleteLike(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
23425
|
-
getComments(id: string, options?: SpacebringRequestOptions): Promise<
|
|
23426
|
-
getLikes(id: string, options?: SpacebringRequestOptions): Promise<
|
|
23436
|
+
getComments(id: string, options?: SpacebringRequestOptions): Promise<Comment[]>;
|
|
23437
|
+
getLikes(id: string, options?: SpacebringRequestOptions): Promise<Like[]>;
|
|
23427
23438
|
};
|
|
23428
23439
|
};
|
|
23429
23440
|
floors: {
|
|
@@ -23438,8 +23449,8 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
23438
23449
|
}>;
|
|
23439
23450
|
iterate(query: Omit<GetGuidesQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Guide, void, undefined>;
|
|
23440
23451
|
get(guideId: string, options?: SpacebringRequestOptions): Promise<Guide>;
|
|
23441
|
-
create(
|
|
23442
|
-
update(guideId: string,
|
|
23452
|
+
create(guide: CreateGuideBody, options?: SpacebringRequestOptions): Promise<Guide>;
|
|
23453
|
+
update(guideId: string, guide: PatchGuideBody, options?: SpacebringRequestOptions): Promise<Guide>;
|
|
23443
23454
|
delete(guideId: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
23444
23455
|
};
|
|
23445
23456
|
locations: {
|
|
@@ -23457,8 +23468,8 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
23457
23468
|
}>;
|
|
23458
23469
|
iterate(query?: Omit<GetPlansQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Plan, void, undefined>;
|
|
23459
23470
|
get(planId: string, options?: SpacebringRequestOptions): Promise<Plan>;
|
|
23460
|
-
create(
|
|
23461
|
-
update(planId: string,
|
|
23471
|
+
create(plan: CreatePlanBody, options?: SpacebringRequestOptions): Promise<Plan>;
|
|
23472
|
+
update(planId: string, plan: UpdatePlanBody, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
23462
23473
|
delete(planId: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
23463
23474
|
};
|
|
23464
23475
|
registrations: {
|
|
@@ -23477,8 +23488,8 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
23477
23488
|
}>;
|
|
23478
23489
|
iterate(query: Omit<GetResourcesQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Resource, void, undefined>;
|
|
23479
23490
|
get(id: string, options?: SpacebringRequestOptions): Promise<Resource>;
|
|
23480
|
-
create(
|
|
23481
|
-
update(id: string,
|
|
23491
|
+
create(resource: CreateResourceBody, options?: SpacebringRequestOptions): Promise<Resource>;
|
|
23492
|
+
update(id: string, resource: PatchResourceBody, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
23482
23493
|
bookings: {
|
|
23483
23494
|
list(query?: GetBookingsQuery, options?: SpacebringRequestOptions): Promise<{
|
|
23484
23495
|
bookings?: Booking[];
|
|
@@ -23487,7 +23498,7 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
23487
23498
|
}>;
|
|
23488
23499
|
iterate(query?: Omit<GetBookingsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Booking, void, undefined>;
|
|
23489
23500
|
get(id: string, options?: SpacebringRequestOptions): Promise<Booking>;
|
|
23490
|
-
create(
|
|
23501
|
+
create(booking: CreateBookingBody, options?: SpacebringRequestOptions): Promise<Booking>;
|
|
23491
23502
|
delete(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
23492
23503
|
};
|
|
23493
23504
|
};
|
|
@@ -23495,8 +23506,8 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
23495
23506
|
categories: {
|
|
23496
23507
|
list(query: GetShopCategoriesQuery, options?: SpacebringRequestOptions): Promise<ShopCategory[]>;
|
|
23497
23508
|
get(categoryId: string, options?: SpacebringRequestOptions): Promise<ShopCategory>;
|
|
23498
|
-
create(
|
|
23499
|
-
update(categoryId: string,
|
|
23509
|
+
create(category: CreateShopCategoryBody, options?: SpacebringRequestOptions): Promise<ShopCategory>;
|
|
23510
|
+
update(categoryId: string, category: UpdateShopCategoryBody, options?: SpacebringRequestOptions): Promise<ShopCategory>;
|
|
23500
23511
|
delete(categoryId: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
23501
23512
|
};
|
|
23502
23513
|
orders: {
|
|
@@ -23516,8 +23527,8 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
23516
23527
|
}>;
|
|
23517
23528
|
iterate(query?: Omit<GetProductsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Product, void, undefined>;
|
|
23518
23529
|
get(productId: string, options?: SpacebringRequestOptions): Promise<Product>;
|
|
23519
|
-
create(
|
|
23520
|
-
update(productId: string,
|
|
23530
|
+
create(product: CreateProductBody, options?: SpacebringRequestOptions): Promise<Product>;
|
|
23531
|
+
update(productId: string, product: UpdateProductBody, options?: SpacebringRequestOptions): Promise<Product>;
|
|
23521
23532
|
delete(productId: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
23522
23533
|
};
|
|
23523
23534
|
};
|
|
@@ -23530,11 +23541,11 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
23530
23541
|
iterate(query?: Omit<GetSubscriptionsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Subscription, void, undefined>;
|
|
23531
23542
|
get(subscriptionId: string, options?: SpacebringRequestOptions): Promise<Subscription>;
|
|
23532
23543
|
create(body: CreateSubscriptionBody, options?: SpacebringRequestOptions): Promise<Subscription>;
|
|
23533
|
-
update(subscriptionId: string,
|
|
23544
|
+
update(subscriptionId: string, subscription: UpdateSubscriptionBody, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
23534
23545
|
delete(subscriptionId: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
23535
|
-
createItem(subscriptionId: string,
|
|
23546
|
+
createItem(subscriptionId: string, item: CreateSubscriptionItemBody, options?: SpacebringRequestOptions): Promise<Subscription>;
|
|
23536
23547
|
deleteItem(subscriptionId: string, itemId: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
23537
|
-
updateItem(subscriptionId: string, itemId: string,
|
|
23548
|
+
updateItem(subscriptionId: string, itemId: string, item: UpdateSubscriptionItemBody, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
23538
23549
|
};
|
|
23539
23550
|
support: {
|
|
23540
23551
|
tickets: {
|
|
@@ -23544,13 +23555,25 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
23544
23555
|
tickets?: SupportTicket[];
|
|
23545
23556
|
}>;
|
|
23546
23557
|
iterate(query: Omit<GetSupportTicketsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<SupportTicket, void, undefined>;
|
|
23547
|
-
get(id: string, options?: SpacebringRequestOptions): Promise<
|
|
23548
|
-
|
|
23549
|
-
|
|
23550
|
-
|
|
23551
|
-
|
|
23558
|
+
get(id: string, options?: SpacebringRequestOptions): Promise<{
|
|
23559
|
+
activities?: Activity[];
|
|
23560
|
+
ticket?: SupportTicket;
|
|
23561
|
+
}>;
|
|
23562
|
+
create(ticket: CreateSupportTicketBody, options?: SpacebringRequestOptions): Promise<{
|
|
23563
|
+
activities?: Activity[];
|
|
23564
|
+
ticket?: SupportTicket;
|
|
23565
|
+
}>;
|
|
23566
|
+
updateAssignee(id: string, ticket: UpdateSupportTicketAssigneeBody, options?: SpacebringRequestOptions): Promise<{
|
|
23567
|
+
activity?: Activity;
|
|
23568
|
+
ticket?: SupportTicket;
|
|
23569
|
+
}>;
|
|
23570
|
+
updateStatus(id: string, ticket: UpdateSupportTicketStatusBody, options?: SpacebringRequestOptions): Promise<{
|
|
23571
|
+
activity?: Activity;
|
|
23572
|
+
ticket?: SupportTicket;
|
|
23573
|
+
}>;
|
|
23574
|
+
updateType(id: string, ticket: UpdateSupportTicketTypeBody, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
23552
23575
|
comment: {
|
|
23553
|
-
create(
|
|
23576
|
+
create(activity: CreateSupportTicketCommentBody, options?: SpacebringRequestOptions): Promise<Activity>;
|
|
23554
23577
|
delete(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
23555
23578
|
};
|
|
23556
23579
|
};
|
|
@@ -23566,7 +23589,7 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
23566
23589
|
nextPageToken?: string;
|
|
23567
23590
|
}>;
|
|
23568
23591
|
iterate(query?: Omit<GetCreditsTransactionsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<CreditTransaction, void, undefined>;
|
|
23569
|
-
create(
|
|
23592
|
+
create(transaction: CreateCreditsTransactionBody, options?: SpacebringRequestOptions): Promise<CreditTransaction>;
|
|
23570
23593
|
};
|
|
23571
23594
|
dayPasses: {
|
|
23572
23595
|
list(query?: GetDayPassesTransactionsQuery, options?: SpacebringRequestOptions): Promise<{
|
|
@@ -23574,7 +23597,7 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
23574
23597
|
transactions: DayPassTransaction[];
|
|
23575
23598
|
}>;
|
|
23576
23599
|
iterate(query?: Omit<GetDayPassesTransactionsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<DayPassTransaction, void, undefined>;
|
|
23577
|
-
create(
|
|
23600
|
+
create(transaction: CreateDayPassesTransactionBody, options?: SpacebringRequestOptions): Promise<DayPassTransaction>;
|
|
23578
23601
|
};
|
|
23579
23602
|
money: {
|
|
23580
23603
|
list(query: GetMoneyTransactionsQuery, options?: SpacebringRequestOptions): Promise<{
|
|
@@ -23594,7 +23617,7 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
23594
23617
|
}>;
|
|
23595
23618
|
iterate(query: Omit<GetContactsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Contact, void, undefined>;
|
|
23596
23619
|
get(contactId: string, options?: SpacebringRequestOptions): Promise<Contact>;
|
|
23597
|
-
create(
|
|
23620
|
+
create(contact: CreateContactBody, options?: SpacebringRequestOptions): Promise<Contact>;
|
|
23598
23621
|
};
|
|
23599
23622
|
requests: {
|
|
23600
23623
|
list(query: GetRequestsQuery, options?: SpacebringRequestOptions): Promise<{
|
|
@@ -23604,23 +23627,23 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
23604
23627
|
}>;
|
|
23605
23628
|
iterate(query: Omit<GetRequestsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Request$1, void, undefined>;
|
|
23606
23629
|
get(id: string, options?: SpacebringRequestOptions): Promise<Request$1>;
|
|
23607
|
-
create(
|
|
23608
|
-
approve(id: string, options?: SpacebringRequestOptions): Promise<
|
|
23630
|
+
create(request: CreateRequestBody, options?: SpacebringRequestOptions): Promise<Request$1>;
|
|
23631
|
+
approve(id: string, options?: SpacebringRequestOptions): Promise<Visit>;
|
|
23609
23632
|
reject(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
23610
23633
|
};
|
|
23611
23634
|
visits: {
|
|
23612
23635
|
list(query: GetVisitsQuery, options?: SpacebringRequestOptions): Promise<{
|
|
23613
23636
|
nextPageToken?: string;
|
|
23614
23637
|
searchQueryNext?: string;
|
|
23615
|
-
visits?:
|
|
23638
|
+
visits?: Visit[];
|
|
23616
23639
|
}>;
|
|
23617
|
-
iterate(query: Omit<GetVisitsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<
|
|
23618
|
-
get(id: string, options?: SpacebringRequestOptions): Promise<
|
|
23619
|
-
create(
|
|
23620
|
-
update(id: string,
|
|
23640
|
+
iterate(query: Omit<GetVisitsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Visit, void, undefined>;
|
|
23641
|
+
get(id: string, options?: SpacebringRequestOptions): Promise<Visit>;
|
|
23642
|
+
create(visit: CreateVisitBody, options?: SpacebringRequestOptions): Promise<Visit>;
|
|
23643
|
+
update(id: string, visit: UpdateVisitBody, options?: SpacebringRequestOptions): Promise<Visit>;
|
|
23621
23644
|
delete(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
23622
|
-
checkIn(body: CheckInVisitBody, options?: SpacebringRequestOptions): Promise<
|
|
23623
|
-
checkOut(body: CheckOutVisitBody, options?: SpacebringRequestOptions): Promise<
|
|
23645
|
+
checkIn(body: CheckInVisitBody, options?: SpacebringRequestOptions): Promise<Visit>;
|
|
23646
|
+
checkOut(body: CheckOutVisitBody, options?: SpacebringRequestOptions): Promise<Visit>;
|
|
23624
23647
|
};
|
|
23625
23648
|
};
|
|
23626
23649
|
};
|
|
@@ -23683,4 +23706,4 @@ declare class SpacebringError extends Error {
|
|
|
23683
23706
|
});
|
|
23684
23707
|
}
|
|
23685
23708
|
|
|
23686
|
-
export { type Activity, type AltCurrency, type Application, type ApplyBenefitBody, type Balance, type Benefit, type BenefitCategory, type Booking, type CheckInVisitBody, type CheckOutVisitBody, type
|
|
23709
|
+
export { type Activity, type AltCurrency, type Application, type ApplyBenefitBody, type Balance, type Benefit, type BenefitCategory, type Booking, type CheckInVisitBody, type CheckOutVisitBody, type Comment, type Company, type Contact, type Contract, type Coupon, type CreateAltCurrencyBody, type 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 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 Like, type ListInvoiceItemsQuery, type Location, type Membership, type MoneyTransaction, type Network, type Order, type PatchGuideBody, type PatchResourceBody, type PayInvoiceBody, type Payment, type Plan, type Post, type PreviewCreditNoteBody, type Product, type Promocode, type Redemption, type Registration, type Request$1 as Request, type Resource, type ShopCategory, Spacebring, type SpacebringConfig, SpacebringError, type SpacebringErrorBody, type SpacebringRequestOptions, type SpacebringResources, type Subscription, type SupportTicket, type TerminateContractBody, type UpcomingItem, 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 Visit, type components, type operations, type paths };
|