@izak0s/spacebring-api 1.5.0 → 1.7.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 +3 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +664 -68
- package/dist/index.d.ts +664 -68
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -6199,8 +6199,10 @@ interface components {
|
|
|
6199
6199
|
* @description Payment type.
|
|
6200
6200
|
* @enum {string}
|
|
6201
6201
|
*/
|
|
6202
|
-
type: "credits" | "external" | "flow" | "fondy" | "freedompay" | "invoice" | "kakaopay" | "maya" | "mercadopago" | "mollie" | "paypal" | "paystack" | "plata" | "stripe" | "tap" | "wayforpay";
|
|
6202
|
+
type: "credits" | "external" | "flow" | "fondy" | "freedompay" | "invoice" | "kakaopay" | "maya" | "mercadopago" | "mollie" | "paypal" | "paystack" | "plata" | "stripe" | "tap" | "wayforpay" | "xendit";
|
|
6203
6203
|
};
|
|
6204
|
+
/** @description Number of tickets included in this purchase. */
|
|
6205
|
+
quantity: number;
|
|
6204
6206
|
/**
|
|
6205
6207
|
* @description Role of the ticket holder.
|
|
6206
6208
|
* @enum {string}
|
|
@@ -8583,7 +8585,7 @@ interface components {
|
|
|
8583
8585
|
* @description Payment gateway type.
|
|
8584
8586
|
* @enum {string}
|
|
8585
8587
|
*/
|
|
8586
|
-
type?: "flow" | "fondy" | "freedompay" | "kakaopay" | "maya" | "mercadopago" | "paypal" | "paystack" | "plata" | "stripe" | "tap" | "wayforpay" | "mollie";
|
|
8588
|
+
type?: "flow" | "fondy" | "freedompay" | "kakaopay" | "maya" | "mercadopago" | "paypal" | "paystack" | "plata" | "stripe" | "tap" | "wayforpay" | "mollie" | "xendit";
|
|
8587
8589
|
};
|
|
8588
8590
|
/**
|
|
8589
8591
|
* @description Payment method type.
|
|
@@ -9051,7 +9053,7 @@ interface components {
|
|
|
9051
9053
|
* @description Payment gateway type.
|
|
9052
9054
|
* @enum {string}
|
|
9053
9055
|
*/
|
|
9054
|
-
type?: "flow" | "fondy" | "freedompay" | "kakaopay" | "maya" | "mercadopago" | "paypal" | "paystack" | "plata" | "stripe" | "tap" | "wayforpay" | "mollie";
|
|
9056
|
+
type?: "flow" | "fondy" | "freedompay" | "kakaopay" | "maya" | "mercadopago" | "paypal" | "paystack" | "plata" | "stripe" | "tap" | "wayforpay" | "mollie" | "xendit";
|
|
9055
9057
|
};
|
|
9056
9058
|
/**
|
|
9057
9059
|
* @description Payment method type.
|
|
@@ -12439,7 +12441,7 @@ interface components {
|
|
|
12439
12441
|
* @description Payment gateway type.
|
|
12440
12442
|
* @enum {string}
|
|
12441
12443
|
*/
|
|
12442
|
-
type: "external" | "freedompay" | "kakaopay" | "maya" | "mercadopago" | "mollie" | "paypal" | "paystack" | "plata" | "stripe" | "tap" | "wayforpay";
|
|
12444
|
+
type: "external" | "freedompay" | "kakaopay" | "maya" | "mercadopago" | "mollie" | "paypal" | "paystack" | "plata" | "stripe" | "tap" | "wayforpay" | "xendit";
|
|
12443
12445
|
};
|
|
12444
12446
|
/** @description Whether the user has accepted the payment terms. */
|
|
12445
12447
|
termsConsent?: boolean;
|
|
@@ -21755,6 +21757,40 @@ type Request = NonNullable<operations["getRequest"]["responses"][200]["content"]
|
|
|
21755
21757
|
type RequestVisit = NonNullable<operations["approveRequest"]["responses"][201]["content"]["application/json"]["visit"]>;
|
|
21756
21758
|
/** A VisitorVisit entity as returned by the Spacebring API. */
|
|
21757
21759
|
type VisitorVisit = NonNullable<operations["getVisit"]["responses"][200]["content"]["application/json"]["visit"]>;
|
|
21760
|
+
/** Query parameters for `sb.visitors.contacts.list()`. */
|
|
21761
|
+
interface GetContactsQuery {
|
|
21762
|
+
/** The maximum number of contacts to return. Default is 25. */
|
|
21763
|
+
limit?: number;
|
|
21764
|
+
/** Token to retrieve the next page of results. */
|
|
21765
|
+
nextPageToken?: string;
|
|
21766
|
+
/** The id of the location. */
|
|
21767
|
+
locationRef: string;
|
|
21768
|
+
}
|
|
21769
|
+
/** Query parameters for `sb.visitors.requests.list()`. */
|
|
21770
|
+
interface GetRequestsQuery {
|
|
21771
|
+
/** The id of the location. */
|
|
21772
|
+
locationRef: string;
|
|
21773
|
+
/** Token to retrieve the next page of results. */
|
|
21774
|
+
nextPageToken?: string;
|
|
21775
|
+
/** The number of items to return. */
|
|
21776
|
+
limit?: number;
|
|
21777
|
+
}
|
|
21778
|
+
/** Query parameters for `sb.visitors.visits.list()`. */
|
|
21779
|
+
interface GetVisitsQuery {
|
|
21780
|
+
/** The id of the location. */
|
|
21781
|
+
locationRef: string;
|
|
21782
|
+
/** The id of the user, host of the visit. */
|
|
21783
|
+
userRefHost?: string;
|
|
21784
|
+
/** The date filter of items. */
|
|
21785
|
+
createDate?: {
|
|
21786
|
+
lte?: string;
|
|
21787
|
+
gte?: string;
|
|
21788
|
+
};
|
|
21789
|
+
/** The number of items to return */
|
|
21790
|
+
limit?: number;
|
|
21791
|
+
/** Token to retrieve the next page of results. */
|
|
21792
|
+
nextPageToken?: string;
|
|
21793
|
+
}
|
|
21758
21794
|
|
|
21759
21795
|
/** A Balance entity as returned by the Spacebring API. */
|
|
21760
21796
|
type Balance = NonNullable<operations["getCreditsBalance"]["responses"][200]["content"]["application/json"]["balances"]>[number];
|
|
@@ -21764,14 +21800,102 @@ type CreditTransaction = NonNullable<operations["getCreditsTransactions"]["respo
|
|
|
21764
21800
|
type DayPassTransaction = NonNullable<operations["getDayPassesTransactions"]["responses"][200]["content"]["application/json"]["transactions"]>[number];
|
|
21765
21801
|
/** A MoneyTransaction entity as returned by the Spacebring API. */
|
|
21766
21802
|
type MoneyTransaction = NonNullable<operations["getMoneyTransaction"]["responses"][200]["content"]["application/json"]["transaction"]>;
|
|
21803
|
+
/** Query parameters for `sb.transactions.credits.list()`. */
|
|
21804
|
+
interface GetCreditsTransactionsQuery {
|
|
21805
|
+
/** The number of items to return */
|
|
21806
|
+
limit?: number;
|
|
21807
|
+
/** Token to retrieve the next page of results. */
|
|
21808
|
+
nextPageToken?: string;
|
|
21809
|
+
/** The date filter of items. */
|
|
21810
|
+
createDate?: {
|
|
21811
|
+
lte?: string;
|
|
21812
|
+
gte?: string;
|
|
21813
|
+
};
|
|
21814
|
+
/** The id of the location to get transactions for */
|
|
21815
|
+
locationRef?: string;
|
|
21816
|
+
/** The id of the membership to get transactions for */
|
|
21817
|
+
membershipRef?: string;
|
|
21818
|
+
/** The id of the company to get transactions for */
|
|
21819
|
+
companyRef?: string;
|
|
21820
|
+
}
|
|
21821
|
+
/** Query parameters for `sb.transactions.dayPasses.list()`. */
|
|
21822
|
+
interface GetDayPassesTransactionsQuery {
|
|
21823
|
+
/** @deprecated Use customerRef instead. The id of the company to get transactions for. */
|
|
21824
|
+
companyRef?: string;
|
|
21825
|
+
/** Get transactions with greater or equal createDate. Example: createDate[gte]=2021-05-21T10:00:00Z */
|
|
21826
|
+
"createDate[gte]"?: string;
|
|
21827
|
+
/** Get transactions with less or equal createDate. Example: createDate[lte]=2021-05-21T10:00:00Z */
|
|
21828
|
+
"createDate[lte]"?: string;
|
|
21829
|
+
/** UUID of the company or membership whose day pass transactions to list. */
|
|
21830
|
+
customerRef?: string;
|
|
21831
|
+
/** Maximum number of transactions per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100. */
|
|
21832
|
+
limit?: number;
|
|
21833
|
+
/** UUID of the location whose day pass transactions to list. */
|
|
21834
|
+
locationRef?: string;
|
|
21835
|
+
/** @deprecated Use customerRef instead. The id of the membership to get transactions for. */
|
|
21836
|
+
membershipRef?: string;
|
|
21837
|
+
/** Token to retrieve the next page of results. */
|
|
21838
|
+
nextPageToken?: string;
|
|
21839
|
+
/** Filter by transaction type. Comma-separated storage type values, e.g. `type=refund,booking`. Matches analytics report type filters. */
|
|
21840
|
+
type?: string;
|
|
21841
|
+
}
|
|
21842
|
+
/** Query parameters for `sb.transactions.money.list()`. */
|
|
21843
|
+
interface GetMoneyTransactionsQuery {
|
|
21844
|
+
/** The id of the location */
|
|
21845
|
+
locationRef: string;
|
|
21846
|
+
/** The number of items to return */
|
|
21847
|
+
limit?: number;
|
|
21848
|
+
/** The payment status of transactions */
|
|
21849
|
+
status?: "canceled" | "failed" | "pending" | "processing" | "succeeded";
|
|
21850
|
+
/** The type of transactions */
|
|
21851
|
+
type?: "booking" | "creditPackage" | "eventTicket" | "invoice" | "order" | "subscription";
|
|
21852
|
+
/** The date filter of items. */
|
|
21853
|
+
createDate?: {
|
|
21854
|
+
lte?: string;
|
|
21855
|
+
gte?: string;
|
|
21856
|
+
};
|
|
21857
|
+
/** Token to retrieve the next page of results. */
|
|
21858
|
+
nextPageToken?: string;
|
|
21859
|
+
}
|
|
21767
21860
|
|
|
21768
21861
|
/** A Activity entity as returned by the Spacebring API. */
|
|
21769
21862
|
type Activity = NonNullable<operations["createSupportTicketComment"]["responses"][201]["content"]["application/json"]["activity"]>;
|
|
21770
21863
|
/** A SupportTicket entity as returned by the Spacebring API. */
|
|
21771
21864
|
type SupportTicket = NonNullable<operations["getSupportTickets"]["responses"][200]["content"]["application/json"]["tickets"]>[number];
|
|
21865
|
+
/** Query parameters for `sb.support.tickets.list()`. */
|
|
21866
|
+
interface GetSupportTicketsQuery {
|
|
21867
|
+
/** The id of the location. */
|
|
21868
|
+
locationRef: string;
|
|
21869
|
+
/** The number of items to return */
|
|
21870
|
+
limit?: number;
|
|
21871
|
+
/** Token to retrieve the next page of results. */
|
|
21872
|
+
nextPageToken?: string;
|
|
21873
|
+
}
|
|
21772
21874
|
|
|
21773
21875
|
/** A Subscription entity as returned by the Spacebring API. */
|
|
21774
21876
|
type Subscription = NonNullable<operations["getSubscription"]["responses"][200]["content"]["application/json"]["subscription"]>;
|
|
21877
|
+
/** Query parameters for `sb.subscriptions.list()`. */
|
|
21878
|
+
interface GetSubscriptionsQuery {
|
|
21879
|
+
/** UUID of the customer whose subscriptions to list. */
|
|
21880
|
+
customerRef?: string;
|
|
21881
|
+
/** Maximum number of subscriptions per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100. */
|
|
21882
|
+
limit?: number;
|
|
21883
|
+
/** UUID of the location whose subscriptions to list. */
|
|
21884
|
+
locationRef?: string;
|
|
21885
|
+
/** Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
|
|
21886
|
+
nextPageToken?: string;
|
|
21887
|
+
/** Sort order for results. */
|
|
21888
|
+
order?: string;
|
|
21889
|
+
/** Filter by subscription status. Comma-separated values, e.g. `active,scheduled`. Defaults to `active`, `scheduled`, and `incomplete` when omitted.
|
|
21890
|
+
|
|
21891
|
+
Supported values:
|
|
21892
|
+
- **active** — currently active
|
|
21893
|
+
- **scheduled** — scheduled to start
|
|
21894
|
+
- **incomplete** — pending setup or payment
|
|
21895
|
+
- **incompleteExpired** — incomplete and expired
|
|
21896
|
+
- **canceled** — canceled */
|
|
21897
|
+
status?: string;
|
|
21898
|
+
}
|
|
21775
21899
|
|
|
21776
21900
|
/** A Order entity as returned by the Spacebring API. */
|
|
21777
21901
|
type Order = NonNullable<operations["getOrder"]["responses"][200]["content"]["application/json"]["order"]>;
|
|
@@ -21779,17 +21903,126 @@ type Order = NonNullable<operations["getOrder"]["responses"][200]["content"]["ap
|
|
|
21779
21903
|
type Product = NonNullable<operations["getProduct"]["responses"][200]["content"]["application/json"]["product"]>;
|
|
21780
21904
|
/** A ShopCategory entity as returned by the Spacebring API. */
|
|
21781
21905
|
type ShopCategory = NonNullable<operations["getShopCategory"]["responses"][200]["content"]["application/json"]["category"]>;
|
|
21906
|
+
/** Query parameters for `sb.shop.orders.list()`. */
|
|
21907
|
+
interface GetOrdersQuery {
|
|
21908
|
+
/** Comma-separated shop category UUIDs used to filter orders, e.g. `uuid1,uuid2`. */
|
|
21909
|
+
categoryRef?: string;
|
|
21910
|
+
/** Filter orders created on or after this date (ISO 8601). Use with createDate[lte] for a range. */
|
|
21911
|
+
"createDate[gte]"?: string;
|
|
21912
|
+
/** Filter orders created on or before this date (ISO 8601). Use with createDate[gte] for a range. */
|
|
21913
|
+
"createDate[lte]"?: string;
|
|
21914
|
+
/** UUID of the customer whose orders to list. */
|
|
21915
|
+
customerRef?: string;
|
|
21916
|
+
/** Maximum number of orders per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100. */
|
|
21917
|
+
limit?: number;
|
|
21918
|
+
/** UUID of the location whose orders to list. */
|
|
21919
|
+
locationRef?: string;
|
|
21920
|
+
/** Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
|
|
21921
|
+
nextPageToken?: string;
|
|
21922
|
+
/** Comma-separated product UUIDs used to filter orders, e.g. `uuid1,uuid2`. */
|
|
21923
|
+
productRef?: string;
|
|
21924
|
+
/** Filter by order status. Comma-separated values, e.g. `new,inProgress`. Defaults to `new`, `inProgress`, and `completed` when omitted.
|
|
21925
|
+
|
|
21926
|
+
Supported values:
|
|
21927
|
+
- **new** — placed, awaiting fulfillment
|
|
21928
|
+
- **inProgress** — being fulfilled
|
|
21929
|
+
- **completed** — fulfilled
|
|
21930
|
+
- **canceled** — canceled */
|
|
21931
|
+
status?: string;
|
|
21932
|
+
/** UUID of the user whose orders to list. */
|
|
21933
|
+
userRef?: string;
|
|
21934
|
+
}
|
|
21935
|
+
/** Query parameters for `sb.shop.products.list()`. */
|
|
21936
|
+
interface GetProductsQuery {
|
|
21937
|
+
/** UUID of the shop category. */
|
|
21938
|
+
categoryRef?: string;
|
|
21939
|
+
/** Comma-separated product UUIDs, e.g. `uuid1,uuid2`. Up to 25 ids per request. */
|
|
21940
|
+
id?: string;
|
|
21941
|
+
/** Maximum number of products per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100. */
|
|
21942
|
+
limit?: number;
|
|
21943
|
+
/** UUID of the location. */
|
|
21944
|
+
locationRef?: string;
|
|
21945
|
+
/** Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
|
|
21946
|
+
nextPageToken?: string;
|
|
21947
|
+
}
|
|
21948
|
+
/** Query parameters for `sb.shop.categories.list()`. */
|
|
21949
|
+
interface GetShopCategoriesQuery {
|
|
21950
|
+
/** UUID of the location whose shop categories to list. */
|
|
21951
|
+
locationRef: string;
|
|
21952
|
+
}
|
|
21782
21953
|
|
|
21783
21954
|
/** A Booking entity as returned by the Spacebring API. */
|
|
21784
21955
|
type Booking = NonNullable<operations["getBooking"]["responses"][200]["content"]["application/json"]["booking"]>;
|
|
21785
21956
|
/** A Resource entity as returned by the Spacebring API. */
|
|
21786
21957
|
type Resource = NonNullable<operations["getResource"]["responses"][200]["content"]["application/json"]["resource"]>;
|
|
21958
|
+
/** Query parameters for `sb.resources.bookings.list()`. */
|
|
21959
|
+
interface GetBookingsQuery {
|
|
21960
|
+
/** The id of the resource. Required if `locationRef` is not passed. */
|
|
21961
|
+
resourceRef?: string;
|
|
21962
|
+
/** The id of the location. Required if `resourceRef` is not passed. */
|
|
21963
|
+
locationRef?: string;
|
|
21964
|
+
/** The id of the membership owner. */
|
|
21965
|
+
membershipRefOwner?: string;
|
|
21966
|
+
/** The date filter of items. */
|
|
21967
|
+
endDate?: {
|
|
21968
|
+
lte?: string;
|
|
21969
|
+
gte?: string;
|
|
21970
|
+
lt?: string;
|
|
21971
|
+
gt?: string;
|
|
21972
|
+
};
|
|
21973
|
+
/** The date filter of items. */
|
|
21974
|
+
startDate?: {
|
|
21975
|
+
lte?: string;
|
|
21976
|
+
gte?: string;
|
|
21977
|
+
lt?: string;
|
|
21978
|
+
gt?: string;
|
|
21979
|
+
};
|
|
21980
|
+
/** The number of items to return */
|
|
21981
|
+
limit?: number;
|
|
21982
|
+
/** The order of filtered items. Format - `field:order`. Possible field values are `createDate`, `endDate`, `startDate`, `id`. Order values - `asc`, `desc`. */
|
|
21983
|
+
order?: string;
|
|
21984
|
+
/** Token to retrieve the next page of results. */
|
|
21985
|
+
nextPageToken?: string;
|
|
21986
|
+
/** The types of resources to retrieve bookings for. Pass them as comma separated values. */
|
|
21987
|
+
types?: "hotDesk" | "dedicatedDesk" | "office" | "parkingLot" | "room";
|
|
21988
|
+
}
|
|
21989
|
+
/** Query parameters for `sb.resources.list()`. */
|
|
21990
|
+
interface GetResourcesQuery {
|
|
21991
|
+
/** The id of the location. */
|
|
21992
|
+
locationRef: string;
|
|
21993
|
+
/** The types of resources to retrieve. Pass them as comma separated values. */
|
|
21994
|
+
types?: "hotDesk" | "dedicatedDesk" | "office" | "parkingLot" | "room";
|
|
21995
|
+
/** Token to retrieve the next page of results. */
|
|
21996
|
+
nextPageToken?: string;
|
|
21997
|
+
/** The number of items to return. */
|
|
21998
|
+
limit?: number;
|
|
21999
|
+
}
|
|
21787
22000
|
|
|
21788
22001
|
/** A Registration entity as returned by the Spacebring API. */
|
|
21789
22002
|
type Registration = NonNullable<operations["getRegistrations"]["responses"][200]["content"]["application/json"]["registrations"]>[number];
|
|
22003
|
+
/** Query parameters for `sb.registrations.list()`. */
|
|
22004
|
+
interface GetRegistrationsQuery {
|
|
22005
|
+
/** The number of items to return */
|
|
22006
|
+
limit?: number;
|
|
22007
|
+
/** Token to retrieve the next page of results. */
|
|
22008
|
+
nextPageToken?: string;
|
|
22009
|
+
}
|
|
21790
22010
|
|
|
21791
22011
|
/** A Plan entity as returned by the Spacebring API. */
|
|
21792
22012
|
type Plan = NonNullable<operations["getPlan"]["responses"][200]["content"]["application/json"]["plan"]>;
|
|
22013
|
+
/** Query parameters for `sb.plans.list()`. */
|
|
22014
|
+
interface GetPlansQuery {
|
|
22015
|
+
/** When listing plans for a resource, filter by entire resource vs partial tiers. Pass true or false. */
|
|
22016
|
+
entire?: string;
|
|
22017
|
+
/** Maximum number of plans per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100. */
|
|
22018
|
+
limit?: number;
|
|
22019
|
+
/** UUID of the location whose plans to list. */
|
|
22020
|
+
locationRef?: string;
|
|
22021
|
+
/** Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
|
|
22022
|
+
nextPageToken?: string;
|
|
22023
|
+
/** UUID of the resource whose tier plans to list. */
|
|
22024
|
+
resourceRef?: string;
|
|
22025
|
+
}
|
|
21793
22026
|
|
|
21794
22027
|
/** A Network entity as returned by the Spacebring API. */
|
|
21795
22028
|
type Network = NonNullable<operations["getNetworks"]["responses"][200]["content"]["application/json"]["networks"]>[number];
|
|
@@ -21799,6 +22032,25 @@ type Location = NonNullable<operations["getLocation"]["responses"][200]["content
|
|
|
21799
22032
|
|
|
21800
22033
|
/** A Guide entity as returned by the Spacebring API. */
|
|
21801
22034
|
type Guide = NonNullable<operations["getGuide"]["responses"][200]["content"]["application/json"]["guide"]>;
|
|
22035
|
+
/** Query parameters for `sb.guides.list()`. */
|
|
22036
|
+
interface GetGuidesQuery {
|
|
22037
|
+
/** Maximum number of guides per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100. */
|
|
22038
|
+
limit?: number;
|
|
22039
|
+
/** UUID of the location whose guides to list. */
|
|
22040
|
+
locationRef: string;
|
|
22041
|
+
/** Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
|
|
22042
|
+
nextPageToken?: string;
|
|
22043
|
+
}
|
|
22044
|
+
|
|
22045
|
+
/** Query parameters for `sb.floors.list()`. */
|
|
22046
|
+
interface GetFloorsQuery {
|
|
22047
|
+
/** The limit of the floors. */
|
|
22048
|
+
limit?: number;
|
|
22049
|
+
/** The id of the location. */
|
|
22050
|
+
locationRef: string;
|
|
22051
|
+
/** Token to retrieve the next page of results. */
|
|
22052
|
+
nextPageToken?: string;
|
|
22053
|
+
}
|
|
21802
22054
|
|
|
21803
22055
|
/** A CommentLike entity as returned by the Spacebring API. */
|
|
21804
22056
|
type CommentLike = NonNullable<operations["createLikeForPostComment"]["responses"][201]["content"]["application/json"]["like"]>;
|
|
@@ -21810,11 +22062,40 @@ type Post = NonNullable<operations["getFeedPost"]["responses"][200]["content"]["
|
|
|
21810
22062
|
type PostComment = NonNullable<operations["getPostComments"]["responses"][200]["content"]["application/json"]["comments"]>[number];
|
|
21811
22063
|
/** A PostLike entity as returned by the Spacebring API. */
|
|
21812
22064
|
type PostLike = NonNullable<operations["getLikesForPost"]["responses"][200]["content"]["application/json"]["likes"]>[number];
|
|
22065
|
+
/** Query parameters for `sb.feed.posts.list()`. */
|
|
22066
|
+
interface GetFeedPostsQuery {
|
|
22067
|
+
/** The id of the location. */
|
|
22068
|
+
locationRef: string;
|
|
22069
|
+
/** Token to retrieve the next page of results. */
|
|
22070
|
+
nextPageToken?: string;
|
|
22071
|
+
/** The number of items to return. */
|
|
22072
|
+
limit?: number;
|
|
22073
|
+
}
|
|
21813
22074
|
|
|
21814
22075
|
/** A Event entity as returned by the Spacebring API. */
|
|
21815
22076
|
type Event = NonNullable<operations["getEvent"]["responses"][200]["content"]["application/json"]["event"]>;
|
|
21816
22077
|
/** A EventTicket entity as returned by the Spacebring API. */
|
|
21817
22078
|
type EventTicket = NonNullable<operations["getEventTicket"]["responses"][200]["content"]["application/json"]["ticket"]>;
|
|
22079
|
+
/** Query parameters for `sb.events.list()`. */
|
|
22080
|
+
interface GetEventsByOrganizationQuery {
|
|
22081
|
+
/** The id of the location. */
|
|
22082
|
+
locationRef: string;
|
|
22083
|
+
/** The number of events to retrieve. Default: 25 */
|
|
22084
|
+
limit?: number;
|
|
22085
|
+
/** Token to retrieve the next page of results. */
|
|
22086
|
+
nextPageToken?: string;
|
|
22087
|
+
/** The order of the events. createDate:asc, createDate:desc, startDate:asc, startDate:desc, endDate:asc, endDate:desc or relevance */
|
|
22088
|
+
order?: string;
|
|
22089
|
+
}
|
|
22090
|
+
/** Query parameters for `sb.events.tickets.list()`. */
|
|
22091
|
+
interface GetEventTicketsQuery {
|
|
22092
|
+
/** The id of the location. */
|
|
22093
|
+
locationRef: string;
|
|
22094
|
+
/** The number of items to return */
|
|
22095
|
+
limit?: number;
|
|
22096
|
+
/** Token to retrieve the next page of results. */
|
|
22097
|
+
nextPageToken?: string;
|
|
22098
|
+
}
|
|
21818
22099
|
|
|
21819
22100
|
/** A Coupon entity as returned by the Spacebring API. */
|
|
21820
22101
|
type Coupon = NonNullable<operations["getCoupon"]["responses"][200]["content"]["application/json"]["coupon"]>;
|
|
@@ -21822,14 +22103,108 @@ type Coupon = NonNullable<operations["getCoupon"]["responses"][200]["content"]["
|
|
|
21822
22103
|
type Promocode = NonNullable<operations["getPromocode"]["responses"][200]["content"]["application/json"]["promocode"]>;
|
|
21823
22104
|
/** A Redemption entity as returned by the Spacebring API. */
|
|
21824
22105
|
type Redemption = NonNullable<operations["getDiscountRedemptions"]["responses"][200]["content"]["application/json"]["redemptions"]>[number];
|
|
22106
|
+
/** Query parameters for `sb.discounts.coupons.list()`. */
|
|
22107
|
+
interface GetCouponsQuery {
|
|
22108
|
+
/** The id of the location */
|
|
22109
|
+
locationRef: string;
|
|
22110
|
+
/** Comma-separated list of coupon types to filter by */
|
|
22111
|
+
type?: "creditPackages" | "desks" | "equipment" | "events" | "products" | "rooms" | "subscriptionItems";
|
|
22112
|
+
/** The number of coupons to retrieve. Default: 25 */
|
|
22113
|
+
limit?: number;
|
|
22114
|
+
/** Token to retrieve the next page of results. */
|
|
22115
|
+
nextPageToken?: string;
|
|
22116
|
+
}
|
|
22117
|
+
/** Query parameters for `sb.discounts.redemptions.list()`. */
|
|
22118
|
+
interface GetDiscountRedemptionsQuery {
|
|
22119
|
+
/** The id of the coupon. Either couponRef or promocodeRef is required */
|
|
22120
|
+
couponRef?: string;
|
|
22121
|
+
/** The id of the promocode. Either couponRef or promocodeRef is required */
|
|
22122
|
+
promocodeRef?: string;
|
|
22123
|
+
/** The number of items to return */
|
|
22124
|
+
limit?: number;
|
|
22125
|
+
/** Token to retrieve the next page of results. */
|
|
22126
|
+
nextPageToken?: string;
|
|
22127
|
+
}
|
|
22128
|
+
/** Query parameters for `sb.discounts.promocodes.list()`. */
|
|
22129
|
+
interface GetPromocodesQuery {
|
|
22130
|
+
/** The id of the location. At least one of locationRef or couponRef is required */
|
|
22131
|
+
locationRef?: string;
|
|
22132
|
+
/** The id of the coupon. At least one of locationRef or couponRef is required */
|
|
22133
|
+
couponRef?: string;
|
|
22134
|
+
}
|
|
21825
22135
|
|
|
21826
22136
|
/** A Contract entity as returned by the Spacebring API. */
|
|
21827
22137
|
type Contract = NonNullable<operations["getContract"]["responses"][200]["content"]["application/json"]["contract"]>;
|
|
22138
|
+
/** Query parameters for `sb.contracts.list()`. */
|
|
22139
|
+
interface GetContractsQuery {
|
|
22140
|
+
/** UUID of the customer (membership or company). Provide customerRef or locationRef; when set, returns only that customer's contracts. */
|
|
22141
|
+
customerRef?: string;
|
|
22142
|
+
/** Maximum number of contracts per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100. */
|
|
22143
|
+
limit?: number;
|
|
22144
|
+
/** UUID of the location. Provide customerRef or locationRef; when set, returns contracts in that location. */
|
|
22145
|
+
locationRef?: string;
|
|
22146
|
+
/** Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
|
|
22147
|
+
nextPageToken?: string;
|
|
22148
|
+
/** Case-insensitive search by contract title. Requires customerRef or locationRef to scope the search. */
|
|
22149
|
+
q?: string;
|
|
22150
|
+
/** Filter by contract status. Comma-separated values, e.g. `draft,issued`.
|
|
22151
|
+
|
|
22152
|
+
Supported values:
|
|
22153
|
+
- **draft** — created but not sent
|
|
22154
|
+
- **issued** — sent, awaiting signature
|
|
22155
|
+
- **signed** — active
|
|
22156
|
+
- **declined** — rejected
|
|
22157
|
+
- **terminated** — cancelled after signing */
|
|
22158
|
+
status?: string;
|
|
22159
|
+
}
|
|
21828
22160
|
|
|
21829
22161
|
/** A Company entity as returned by the Spacebring API. */
|
|
21830
22162
|
type Company = NonNullable<operations["getCompany"]["responses"][200]["content"]["application/json"]["company"]>;
|
|
21831
22163
|
/** A Membership entity as returned by the Spacebring API. */
|
|
21832
22164
|
type Membership = NonNullable<operations["getMembership"]["responses"][200]["content"]["application/json"]["membership"]>;
|
|
22165
|
+
/** Query parameters for `sb.community.companies.list()`. */
|
|
22166
|
+
interface GetCompaniesQuery {
|
|
22167
|
+
/** The id of the location. */
|
|
22168
|
+
locationRef: string;
|
|
22169
|
+
/** The number of items to return */
|
|
22170
|
+
limit?: number;
|
|
22171
|
+
/** Token to retrieve the next page of results. */
|
|
22172
|
+
nextPageToken?: string;
|
|
22173
|
+
/** Filter by company's title */
|
|
22174
|
+
title?: string;
|
|
22175
|
+
/** Filter by types. Pass them as comma separated values. */
|
|
22176
|
+
types?: "member" | "nonmember";
|
|
22177
|
+
}
|
|
22178
|
+
/** Query parameters for `sb.community.memberships.listDeleted()`. */
|
|
22179
|
+
interface GetMembershipsDeletedQuery {
|
|
22180
|
+
/** The id of the location. */
|
|
22181
|
+
locationRef: string;
|
|
22182
|
+
/** The number of items to return */
|
|
22183
|
+
limit?: number;
|
|
22184
|
+
/** Filter by user's email */
|
|
22185
|
+
userEmail?: string;
|
|
22186
|
+
/** Token to retrieve the next page of results. */
|
|
22187
|
+
nextPageToken?: string;
|
|
22188
|
+
}
|
|
22189
|
+
/** Query parameters for `sb.community.memberships.list()`. */
|
|
22190
|
+
interface GetMembershipsQuery {
|
|
22191
|
+
/** Filter by company reference */
|
|
22192
|
+
companyRef?: string;
|
|
22193
|
+
/** The id of the location. */
|
|
22194
|
+
locationRef: string;
|
|
22195
|
+
/** The number of items to return */
|
|
22196
|
+
limit?: number;
|
|
22197
|
+
/** Token to retrieve the next page of results. */
|
|
22198
|
+
nextPageToken?: string;
|
|
22199
|
+
/** Filter by user's email */
|
|
22200
|
+
userEmail?: string;
|
|
22201
|
+
/** The id of the user */
|
|
22202
|
+
userRef?: string;
|
|
22203
|
+
/** use requested to get all membership requests */
|
|
22204
|
+
status?: "requested";
|
|
22205
|
+
/** Filter by types. Pass them as comma separated values. */
|
|
22206
|
+
types?: "member" | "nonmember";
|
|
22207
|
+
}
|
|
21833
22208
|
|
|
21834
22209
|
/** A CreditNote entity as returned by the Spacebring API. */
|
|
21835
22210
|
type CreditNote = NonNullable<operations["getCreditNote"]["responses"][200]["content"]["application/json"]["creditNote"]>;
|
|
@@ -21837,6 +22212,72 @@ type CreditNote = NonNullable<operations["getCreditNote"]["responses"][200]["con
|
|
|
21837
22212
|
type Invoice = NonNullable<operations["getInvoice"]["responses"][200]["content"]["application/json"]["invoice"]>;
|
|
21838
22213
|
/** A InvoiceItem entity as returned by the Spacebring API. */
|
|
21839
22214
|
type InvoiceItem = NonNullable<operations["getInvoiceItem"]["responses"][200]["content"]["application/json"]["invoiceItem"]>;
|
|
22215
|
+
/** Query parameters for `sb.billing.creditNotes.list()`. */
|
|
22216
|
+
interface GetCreditNotesQuery {
|
|
22217
|
+
/** Filter credit notes created on or after this date (ISO 8601). Use with createDate[lte] for a range. */
|
|
22218
|
+
"createDate[gte]"?: string;
|
|
22219
|
+
/** Filter credit notes created on or before this date (ISO 8601). Use with createDate[gte] for a range. */
|
|
22220
|
+
"createDate[lte]"?: string;
|
|
22221
|
+
/** UUID of the invoice whose credit notes to list. */
|
|
22222
|
+
invoiceRef?: string;
|
|
22223
|
+
/** Maximum number of credit notes per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100. */
|
|
22224
|
+
limit?: number;
|
|
22225
|
+
/** UUID of the location whose credit notes to list. */
|
|
22226
|
+
locationRef?: string;
|
|
22227
|
+
/** Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
|
|
22228
|
+
nextPageToken?: string;
|
|
22229
|
+
/** Filter by credit note status. Comma-separated values, e.g. `issued,voided`.
|
|
22230
|
+
|
|
22231
|
+
Supported values:
|
|
22232
|
+
- **issued** — active credit note
|
|
22233
|
+
- **voided** — cancelled and no longer valid */
|
|
22234
|
+
status?: string;
|
|
22235
|
+
}
|
|
22236
|
+
/** Query parameters for `sb.billing.invoices.list()`. */
|
|
22237
|
+
interface GetInvoicesQuery {
|
|
22238
|
+
/** @deprecated Use customerRef instead. UUID of the company whose invoices to list. */
|
|
22239
|
+
companyRef?: string;
|
|
22240
|
+
/** Filter invoices created on or after this date (ISO 8601). Use with createDate[lte] for a range. */
|
|
22241
|
+
"createDate[gte]"?: string;
|
|
22242
|
+
/** Filter invoices created on or before this date (ISO 8601). Use with createDate[gte] for a range. */
|
|
22243
|
+
"createDate[lte]"?: string;
|
|
22244
|
+
/** UUID of the customer whose invoices to list. */
|
|
22245
|
+
customerRef?: string;
|
|
22246
|
+
/** Filter invoices issued on or after this date (ISO 8601). Use with issueDate[lte] for a range. */
|
|
22247
|
+
"issueDate[gte]"?: string;
|
|
22248
|
+
/** Filter invoices issued on or before this date (ISO 8601). Use with issueDate[gte] for a range. */
|
|
22249
|
+
"issueDate[lte]"?: string;
|
|
22250
|
+
/** Maximum number of invoices per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100. */
|
|
22251
|
+
limit?: number;
|
|
22252
|
+
/** UUID of the location whose invoices to list. */
|
|
22253
|
+
locationRef?: string;
|
|
22254
|
+
/** @deprecated Use customerRef instead. UUID of the membership whose invoices to list. */
|
|
22255
|
+
membershipRef?: string;
|
|
22256
|
+
/** Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
|
|
22257
|
+
nextPageToken?: string;
|
|
22258
|
+
/** Case-insensitive search by invoice code or number. Requires customerRef or locationRef. */
|
|
22259
|
+
q?: string;
|
|
22260
|
+
/** Filter by invoice status. Comma-separated values, e.g. `draft,issued`.
|
|
22261
|
+
|
|
22262
|
+
Supported values:
|
|
22263
|
+
- **draft** — created but not sent
|
|
22264
|
+
- **issued** — sent to the customer but unpaid
|
|
22265
|
+
- **paid** — fully paid
|
|
22266
|
+
- **voided** — cancelled and no longer valid */
|
|
22267
|
+
status?: string;
|
|
22268
|
+
}
|
|
22269
|
+
/** Query parameters for `sb.billing.invoices.items.getUpcoming()`. */
|
|
22270
|
+
interface GetUpcomingInvoiceItemsQuery {
|
|
22271
|
+
/** The id of the company. */
|
|
22272
|
+
companyRef?: string;
|
|
22273
|
+
/** The id of the membership. */
|
|
22274
|
+
membershipRef?: string;
|
|
22275
|
+
}
|
|
22276
|
+
/** Query parameters for `sb.billing.invoices.getUpcoming()`. */
|
|
22277
|
+
interface GetUpcomingInvoiceQuery {
|
|
22278
|
+
/** The id of the subscription. */
|
|
22279
|
+
subscriptionRef?: string;
|
|
22280
|
+
}
|
|
21840
22281
|
|
|
21841
22282
|
/** A Application entity as returned by the Spacebring API. */
|
|
21842
22283
|
type Application = NonNullable<operations["getBenefitApplication"]["responses"][200]["content"]["application/json"]["application"]>;
|
|
@@ -21844,33 +22285,93 @@ type Application = NonNullable<operations["getBenefitApplication"]["responses"][
|
|
|
21844
22285
|
type Benefit = NonNullable<operations["getBenefit"]["responses"][200]["content"]["application/json"]["benefit"]>;
|
|
21845
22286
|
/** A BenefitCategory entity as returned by the Spacebring API. */
|
|
21846
22287
|
type BenefitCategory = NonNullable<operations["getBenefitCategory"]["responses"][200]["content"]["application/json"]["category"]>;
|
|
22288
|
+
/** Query parameters for `sb.benefits.applications.list()`. */
|
|
22289
|
+
interface GetBenefitApplicationsQuery {
|
|
22290
|
+
/** UUID of the benefit. */
|
|
22291
|
+
benefitRef?: string;
|
|
22292
|
+
/** Comma-separated benefit category UUIDs, e.g. `uuid1,uuid2`. */
|
|
22293
|
+
categoryRef?: string;
|
|
22294
|
+
/** Filter applications submitted on or after this date (ISO 8601). Use with createDate[lte] for a range. */
|
|
22295
|
+
"createDate[gte]"?: string;
|
|
22296
|
+
/** Filter applications submitted on or before this date (ISO 8601). Use with createDate[gte] for a range. */
|
|
22297
|
+
"createDate[lte]"?: string;
|
|
22298
|
+
/** UUID of the customer whose applications to list. */
|
|
22299
|
+
customerRef?: string;
|
|
22300
|
+
/** Maximum number of applications per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100. */
|
|
22301
|
+
limit?: number;
|
|
22302
|
+
/** UUID of the location. */
|
|
22303
|
+
locationRef?: string;
|
|
22304
|
+
/** Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
|
|
22305
|
+
nextPageToken?: string;
|
|
22306
|
+
/** UUID of the user whose applications to list. */
|
|
22307
|
+
userRef?: string;
|
|
22308
|
+
}
|
|
22309
|
+
/** Query parameters for `sb.benefits.categories.list()`. */
|
|
22310
|
+
interface GetBenefitCategoriesQuery {
|
|
22311
|
+
/** UUID of the location whose benefit categories to list. */
|
|
22312
|
+
locationRef: string;
|
|
22313
|
+
}
|
|
22314
|
+
/** Query parameters for `sb.benefits.list()`. */
|
|
22315
|
+
interface GetBenefitsQuery {
|
|
22316
|
+
/** UUID of the benefit category. */
|
|
22317
|
+
categoryRef?: string;
|
|
22318
|
+
/** Filter by featured status. Pass true or false. */
|
|
22319
|
+
featured?: boolean;
|
|
22320
|
+
/** Maximum number of benefits per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100. */
|
|
22321
|
+
limit?: number;
|
|
22322
|
+
/** UUID of the location. */
|
|
22323
|
+
locationRef?: string;
|
|
22324
|
+
/** Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
|
|
22325
|
+
nextPageToken?: string;
|
|
22326
|
+
}
|
|
21847
22327
|
|
|
21848
22328
|
/** A AltCurrency entity as returned by the Spacebring API. */
|
|
21849
22329
|
type AltCurrency = NonNullable<operations["getAltCurrencies"]["responses"][200]["content"]["application/json"]["altCurrencies"]>[number];
|
|
22330
|
+
/** Query parameters for `sb.altCurrencies.list()`. */
|
|
22331
|
+
interface GetAltCurrenciesQuery {
|
|
22332
|
+
/** The id of the location */
|
|
22333
|
+
locationRef: string;
|
|
22334
|
+
/** Token to retrieve the next page of results. */
|
|
22335
|
+
nextPageToken?: string;
|
|
22336
|
+
/** The number of items to return. */
|
|
22337
|
+
limit?: number;
|
|
22338
|
+
}
|
|
21850
22339
|
|
|
21851
22340
|
declare function createResources(client: Client<paths>, defaults: SpacebringDefaults): {
|
|
21852
22341
|
altCurrencies: {
|
|
21853
|
-
list(query:
|
|
21854
|
-
|
|
22342
|
+
list(query: GetAltCurrenciesQuery, options?: SpacebringRequestOptions): Promise<{
|
|
22343
|
+
altCurrencies?: AltCurrency[];
|
|
22344
|
+
nextPageToken?: string;
|
|
22345
|
+
searchQueryNext?: string;
|
|
22346
|
+
}>;
|
|
22347
|
+
iterate(query: Omit<GetAltCurrenciesQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<AltCurrency, void, undefined>;
|
|
21855
22348
|
create(body: NonNullable<operations["createAltCurrency"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<AltCurrency>;
|
|
21856
22349
|
update(id: string, body: NonNullable<operations["updateAltCurrency"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<undefined>;
|
|
21857
22350
|
delete(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
21858
22351
|
};
|
|
21859
22352
|
benefits: {
|
|
21860
|
-
list(query?:
|
|
21861
|
-
|
|
22353
|
+
list(query?: GetBenefitsQuery, options?: SpacebringRequestOptions): Promise<{
|
|
22354
|
+
benefits: Benefit[];
|
|
22355
|
+
nextPageToken?: string;
|
|
22356
|
+
searchQueryNext?: string;
|
|
22357
|
+
}>;
|
|
22358
|
+
iterate(query?: Omit<GetBenefitsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Benefit, void, undefined>;
|
|
21862
22359
|
get(benefitId: string, options?: SpacebringRequestOptions): Promise<Benefit>;
|
|
21863
22360
|
create(body: NonNullable<operations["createBenefit"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<operations["createBenefit"]["responses"][201]["content"]["application/json"]>;
|
|
21864
22361
|
update(benefitId: string, body: NonNullable<operations["updateBenefit"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<Benefit>;
|
|
21865
22362
|
delete(benefitId: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
21866
22363
|
applications: {
|
|
21867
|
-
list(query?:
|
|
21868
|
-
|
|
22364
|
+
list(query?: GetBenefitApplicationsQuery, options?: SpacebringRequestOptions): Promise<{
|
|
22365
|
+
applications: Application[];
|
|
22366
|
+
nextPageToken?: string;
|
|
22367
|
+
searchQueryNext?: string;
|
|
22368
|
+
}>;
|
|
22369
|
+
iterate(query?: Omit<GetBenefitApplicationsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Application, void, undefined>;
|
|
21869
22370
|
get(benefitApplicationId: string, options?: SpacebringRequestOptions): Promise<Application>;
|
|
21870
22371
|
create(body: NonNullable<operations["applyBenefit"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<Application>;
|
|
21871
22372
|
};
|
|
21872
22373
|
categories: {
|
|
21873
|
-
list(query:
|
|
22374
|
+
list(query: GetBenefitCategoriesQuery, options?: SpacebringRequestOptions): Promise<BenefitCategory[]>;
|
|
21874
22375
|
get(categoryId: string, options?: SpacebringRequestOptions): Promise<BenefitCategory>;
|
|
21875
22376
|
create(body: NonNullable<operations["createBenefitCategory"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<BenefitCategory>;
|
|
21876
22377
|
update(categoryId: string, body: NonNullable<operations["updateBenefitCategory"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<BenefitCategory>;
|
|
@@ -21879,16 +22380,24 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
21879
22380
|
};
|
|
21880
22381
|
billing: {
|
|
21881
22382
|
creditNotes: {
|
|
21882
|
-
list(query?:
|
|
21883
|
-
|
|
22383
|
+
list(query?: GetCreditNotesQuery, options?: SpacebringRequestOptions): Promise<{
|
|
22384
|
+
creditNotes: CreditNote[];
|
|
22385
|
+
nextPageToken?: string;
|
|
22386
|
+
searchQueryNext?: string;
|
|
22387
|
+
}>;
|
|
22388
|
+
iterate(query?: Omit<GetCreditNotesQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<CreditNote, void, undefined>;
|
|
21884
22389
|
get(id: string, options?: SpacebringRequestOptions): Promise<CreditNote>;
|
|
21885
22390
|
create(body: NonNullable<operations["createCreditNote"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<CreditNote>;
|
|
21886
22391
|
update(id: string, body: NonNullable<operations["updateCreditNote"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<undefined>;
|
|
21887
22392
|
preview(body: NonNullable<operations["previewCreditNote"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<CreditNote>;
|
|
21888
22393
|
};
|
|
21889
22394
|
invoices: {
|
|
21890
|
-
list(query?:
|
|
21891
|
-
|
|
22395
|
+
list(query?: GetInvoicesQuery, options?: SpacebringRequestOptions): Promise<{
|
|
22396
|
+
invoices: Invoice[];
|
|
22397
|
+
nextPageToken?: string;
|
|
22398
|
+
searchQueryNext?: string;
|
|
22399
|
+
}>;
|
|
22400
|
+
iterate(query?: Omit<GetInvoicesQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Invoice, void, undefined>;
|
|
21892
22401
|
get(invoiceId: string, options?: SpacebringRequestOptions): Promise<Invoice>;
|
|
21893
22402
|
create(body: NonNullable<operations["createInvoice"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<Invoice>;
|
|
21894
22403
|
update(invoiceId: string, body: NonNullable<operations["updateInvoice"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<undefined>;
|
|
@@ -21896,7 +22405,7 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
21896
22405
|
cancelPayment(invoiceId: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
21897
22406
|
duplicate(invoiceId: string, options?: SpacebringRequestOptions): Promise<Invoice>;
|
|
21898
22407
|
getItems(invoiceId: string, options?: SpacebringRequestOptions): Promise<operations["getInvoiceItems"]["responses"][200]["content"]["application/json"]>;
|
|
21899
|
-
getUpcoming(query?:
|
|
22408
|
+
getUpcoming(query?: GetUpcomingInvoiceQuery, options?: SpacebringRequestOptions): Promise<operations["getUpcomingInvoice"]["responses"][200]["content"]["application/json"]>;
|
|
21900
22409
|
issue(invoiceId: string, body?: NonNullable<operations["issueInvoice"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<operations["issueInvoice"]["responses"][200]["content"]["application/json"]>;
|
|
21901
22410
|
pay(invoiceId: string, body: NonNullable<operations["payInvoice"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<operations["payInvoice"]["responses"][200]["content"]["application/json"]>;
|
|
21902
22411
|
resend(invoiceId: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
@@ -21906,32 +22415,46 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
21906
22415
|
create(body: NonNullable<operations["createInvoiceItem"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<InvoiceItem>;
|
|
21907
22416
|
update(id: string, body: NonNullable<operations["updateInvoiceItem"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<undefined>;
|
|
21908
22417
|
delete(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
21909
|
-
getUpcoming(query?:
|
|
22418
|
+
getUpcoming(query?: GetUpcomingInvoiceItemsQuery, options?: SpacebringRequestOptions): Promise<InvoiceItem[]>;
|
|
21910
22419
|
};
|
|
21911
22420
|
};
|
|
21912
22421
|
};
|
|
21913
22422
|
community: {
|
|
21914
22423
|
companies: {
|
|
21915
|
-
list(query:
|
|
21916
|
-
|
|
22424
|
+
list(query: GetCompaniesQuery, options?: SpacebringRequestOptions): Promise<{
|
|
22425
|
+
companies?: Company[];
|
|
22426
|
+
nextPageToken?: string;
|
|
22427
|
+
}>;
|
|
22428
|
+
iterate(query: Omit<GetCompaniesQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Company, void, undefined>;
|
|
21917
22429
|
get(id: string, options?: SpacebringRequestOptions): Promise<Company>;
|
|
21918
22430
|
create(body: NonNullable<operations["createCompany"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<Company>;
|
|
21919
22431
|
update(id: string, body: NonNullable<operations["updateCompany"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<Company>;
|
|
21920
22432
|
};
|
|
21921
22433
|
memberships: {
|
|
21922
|
-
list(query:
|
|
21923
|
-
|
|
22434
|
+
list(query: GetMembershipsQuery, options?: SpacebringRequestOptions): Promise<{
|
|
22435
|
+
memberships?: Membership[];
|
|
22436
|
+
nextPageToken?: string;
|
|
22437
|
+
searchQueryNext?: string;
|
|
22438
|
+
}>;
|
|
22439
|
+
iterate(query: Omit<GetMembershipsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Membership, void, undefined>;
|
|
21924
22440
|
get(id: string, options?: SpacebringRequestOptions): Promise<Membership>;
|
|
21925
22441
|
create(body: NonNullable<operations["createMembership"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<Membership>;
|
|
21926
22442
|
update(id: number, body: NonNullable<operations["updateMembership"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<Membership>;
|
|
21927
22443
|
delete(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
21928
|
-
iterateDeleted(query: Omit<
|
|
21929
|
-
listDeleted(query:
|
|
22444
|
+
iterateDeleted(query: Omit<GetMembershipsDeletedQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Membership, void, undefined>;
|
|
22445
|
+
listDeleted(query: GetMembershipsDeletedQuery, options?: SpacebringRequestOptions): Promise<{
|
|
22446
|
+
memberships?: Membership[];
|
|
22447
|
+
nextPageToken?: string;
|
|
22448
|
+
}>;
|
|
21930
22449
|
};
|
|
21931
22450
|
};
|
|
21932
22451
|
contracts: {
|
|
21933
|
-
list(query?:
|
|
21934
|
-
|
|
22452
|
+
list(query?: GetContractsQuery, options?: SpacebringRequestOptions): Promise<{
|
|
22453
|
+
contracts: Contract[];
|
|
22454
|
+
nextPageToken?: string;
|
|
22455
|
+
searchQueryNext?: string;
|
|
22456
|
+
}>;
|
|
22457
|
+
iterate(query?: Omit<GetContractsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Contract, void, undefined>;
|
|
21935
22458
|
get(contractId: string, options?: SpacebringRequestOptions): Promise<Contract>;
|
|
21936
22459
|
create(body: NonNullable<operations["createContract"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<Contract>;
|
|
21937
22460
|
delete(contractId: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
@@ -21940,34 +22463,46 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
21940
22463
|
};
|
|
21941
22464
|
discounts: {
|
|
21942
22465
|
coupons: {
|
|
21943
|
-
list(query:
|
|
21944
|
-
|
|
22466
|
+
list(query: GetCouponsQuery, options?: SpacebringRequestOptions): Promise<{
|
|
22467
|
+
coupons?: Coupon[];
|
|
22468
|
+
nextPageToken?: string;
|
|
22469
|
+
searchQueryNext?: string;
|
|
22470
|
+
}>;
|
|
22471
|
+
iterate(query: Omit<GetCouponsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Coupon, void, undefined>;
|
|
21945
22472
|
get(id: string, options?: SpacebringRequestOptions): Promise<Coupon>;
|
|
21946
22473
|
create(body: NonNullable<operations["createCoupon"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<Coupon>;
|
|
21947
22474
|
update(id: string, body: NonNullable<operations["updateCoupon"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<undefined>;
|
|
21948
22475
|
delete(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
21949
22476
|
};
|
|
21950
22477
|
promocodes: {
|
|
21951
|
-
list(query?:
|
|
22478
|
+
list(query?: GetPromocodesQuery, options?: SpacebringRequestOptions): Promise<Promocode[]>;
|
|
21952
22479
|
get(id: string, options?: SpacebringRequestOptions): Promise<Promocode>;
|
|
21953
22480
|
create(body: NonNullable<operations["createPromocode"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<Promocode>;
|
|
21954
22481
|
archive(id: string, options?: SpacebringRequestOptions): Promise<Promocode>;
|
|
21955
22482
|
};
|
|
21956
22483
|
redemptions: {
|
|
21957
|
-
list(query?:
|
|
21958
|
-
|
|
22484
|
+
list(query?: GetDiscountRedemptionsQuery, options?: SpacebringRequestOptions): Promise<{
|
|
22485
|
+
redemptions?: Redemption[];
|
|
22486
|
+
nextPageToken?: string;
|
|
22487
|
+
searchQueryNext?: string;
|
|
22488
|
+
}>;
|
|
22489
|
+
iterate(query?: Omit<GetDiscountRedemptionsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Redemption, void, undefined>;
|
|
21959
22490
|
};
|
|
21960
22491
|
};
|
|
21961
22492
|
events: {
|
|
21962
|
-
list(query:
|
|
22493
|
+
list(query: GetEventsByOrganizationQuery, options?: SpacebringRequestOptions): Promise<operations["getEventsByOrganization"]["responses"][200]["content"]["application/json"]>;
|
|
21963
22494
|
get(id: string, options?: SpacebringRequestOptions): Promise<Event>;
|
|
21964
22495
|
create(body: NonNullable<operations["createEvent"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<Event>;
|
|
21965
22496
|
delete(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
21966
22497
|
cancel(id: string, options?: SpacebringRequestOptions): Promise<Event>;
|
|
21967
22498
|
copy(id: string, options?: SpacebringRequestOptions): Promise<Event>;
|
|
21968
22499
|
tickets: {
|
|
21969
|
-
list(query:
|
|
21970
|
-
|
|
22500
|
+
list(query: GetEventTicketsQuery, options?: SpacebringRequestOptions): Promise<{
|
|
22501
|
+
tickets?: EventTicket[];
|
|
22502
|
+
nextPageToken?: string;
|
|
22503
|
+
searchQueryNext?: string;
|
|
22504
|
+
}>;
|
|
22505
|
+
iterate(query: Omit<GetEventTicketsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<EventTicket, void, undefined>;
|
|
21971
22506
|
get(id: string, options?: SpacebringRequestOptions): Promise<EventTicket>;
|
|
21972
22507
|
};
|
|
21973
22508
|
};
|
|
@@ -21979,8 +22514,12 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
21979
22514
|
deleteLike(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
21980
22515
|
};
|
|
21981
22516
|
posts: {
|
|
21982
|
-
list(query:
|
|
21983
|
-
|
|
22517
|
+
list(query: GetFeedPostsQuery, options?: SpacebringRequestOptions): Promise<{
|
|
22518
|
+
nextPageToken?: string;
|
|
22519
|
+
posts?: Post[];
|
|
22520
|
+
searchQueryNext?: string;
|
|
22521
|
+
}>;
|
|
22522
|
+
iterate(query: Omit<GetFeedPostsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Post, void, undefined>;
|
|
21984
22523
|
get(id: string, options?: SpacebringRequestOptions): Promise<Post>;
|
|
21985
22524
|
create(body: NonNullable<operations["createFeedPost"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<Post>;
|
|
21986
22525
|
update(id: string, body: NonNullable<operations["updateFeedPost"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<Post>;
|
|
@@ -21992,12 +22531,16 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
21992
22531
|
};
|
|
21993
22532
|
};
|
|
21994
22533
|
floors: {
|
|
21995
|
-
list(query:
|
|
22534
|
+
list(query: GetFloorsQuery, options?: SpacebringRequestOptions): Promise<operations["getFloors"]["responses"][200]["content"]["application/json"]>;
|
|
21996
22535
|
delete(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
21997
22536
|
};
|
|
21998
22537
|
guides: {
|
|
21999
|
-
list(query:
|
|
22000
|
-
|
|
22538
|
+
list(query: GetGuidesQuery, options?: SpacebringRequestOptions): Promise<{
|
|
22539
|
+
guides: Guide[];
|
|
22540
|
+
nextPageToken?: string;
|
|
22541
|
+
searchQueryNext?: string;
|
|
22542
|
+
}>;
|
|
22543
|
+
iterate(query: Omit<GetGuidesQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Guide, void, undefined>;
|
|
22001
22544
|
get(guideId: string, options?: SpacebringRequestOptions): Promise<Guide>;
|
|
22002
22545
|
create(body: NonNullable<operations["createGuide"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<Guide>;
|
|
22003
22546
|
update(guideId: string, body: NonNullable<operations["patchGuide"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<Guide>;
|
|
@@ -22011,26 +22554,42 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
22011
22554
|
list(options?: SpacebringRequestOptions): Promise<Network[]>;
|
|
22012
22555
|
};
|
|
22013
22556
|
plans: {
|
|
22014
|
-
list(query?:
|
|
22015
|
-
|
|
22557
|
+
list(query?: GetPlansQuery, options?: SpacebringRequestOptions): Promise<{
|
|
22558
|
+
nextPageToken?: string;
|
|
22559
|
+
plans: Plan[];
|
|
22560
|
+
searchQueryNext?: string;
|
|
22561
|
+
}>;
|
|
22562
|
+
iterate(query?: Omit<GetPlansQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Plan, void, undefined>;
|
|
22016
22563
|
get(planId: string, options?: SpacebringRequestOptions): Promise<Plan>;
|
|
22017
22564
|
create(body: NonNullable<operations["createPlan"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<Plan>;
|
|
22018
22565
|
update(planId: string, body: NonNullable<operations["updatePlan"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<undefined>;
|
|
22019
22566
|
delete(planId: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
22020
22567
|
};
|
|
22021
22568
|
registrations: {
|
|
22022
|
-
list(query?:
|
|
22023
|
-
|
|
22569
|
+
list(query?: GetRegistrationsQuery, options?: SpacebringRequestOptions): Promise<{
|
|
22570
|
+
registrations?: Registration[];
|
|
22571
|
+
nextPageToken?: string;
|
|
22572
|
+
searchQueryNext?: string;
|
|
22573
|
+
}>;
|
|
22574
|
+
iterate(query?: Omit<GetRegistrationsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Registration, void, undefined>;
|
|
22024
22575
|
};
|
|
22025
22576
|
resources: {
|
|
22026
|
-
list(query:
|
|
22027
|
-
|
|
22577
|
+
list(query: GetResourcesQuery, options?: SpacebringRequestOptions): Promise<{
|
|
22578
|
+
nextPageToken?: string;
|
|
22579
|
+
resources?: Resource[];
|
|
22580
|
+
searchQueryNext?: string;
|
|
22581
|
+
}>;
|
|
22582
|
+
iterate(query: Omit<GetResourcesQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Resource, void, undefined>;
|
|
22028
22583
|
get(id: string, options?: SpacebringRequestOptions): Promise<Resource>;
|
|
22029
22584
|
create(body: NonNullable<operations["createResource"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<Resource>;
|
|
22030
22585
|
update(id: string, body: NonNullable<operations["patchResource"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<undefined>;
|
|
22031
22586
|
bookings: {
|
|
22032
|
-
list(query?:
|
|
22033
|
-
|
|
22587
|
+
list(query?: GetBookingsQuery, options?: SpacebringRequestOptions): Promise<{
|
|
22588
|
+
bookings?: Booking[];
|
|
22589
|
+
nextPageToken?: string;
|
|
22590
|
+
searchQueryNext?: string;
|
|
22591
|
+
}>;
|
|
22592
|
+
iterate(query?: Omit<GetBookingsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Booking, void, undefined>;
|
|
22034
22593
|
get(id: string, options?: SpacebringRequestOptions): Promise<Booking>;
|
|
22035
22594
|
create(body: NonNullable<operations["createBooking"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<Booking>;
|
|
22036
22595
|
delete(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
@@ -22038,20 +22597,28 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
22038
22597
|
};
|
|
22039
22598
|
shop: {
|
|
22040
22599
|
categories: {
|
|
22041
|
-
list(query:
|
|
22600
|
+
list(query: GetShopCategoriesQuery, options?: SpacebringRequestOptions): Promise<ShopCategory[]>;
|
|
22042
22601
|
get(categoryId: string, options?: SpacebringRequestOptions): Promise<ShopCategory>;
|
|
22043
22602
|
create(body: NonNullable<operations["createShopCategory"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<ShopCategory>;
|
|
22044
22603
|
update(categoryId: string, body: NonNullable<operations["updateShopCategory"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<ShopCategory>;
|
|
22045
22604
|
delete(categoryId: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
22046
22605
|
};
|
|
22047
22606
|
orders: {
|
|
22048
|
-
list(query?:
|
|
22049
|
-
|
|
22607
|
+
list(query?: GetOrdersQuery, options?: SpacebringRequestOptions): Promise<{
|
|
22608
|
+
nextPageToken?: string;
|
|
22609
|
+
orders: Order[];
|
|
22610
|
+
searchQueryNext?: string;
|
|
22611
|
+
}>;
|
|
22612
|
+
iterate(query?: Omit<GetOrdersQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Order, void, undefined>;
|
|
22050
22613
|
get(orderId: string, options?: SpacebringRequestOptions): Promise<Order>;
|
|
22051
22614
|
};
|
|
22052
22615
|
products: {
|
|
22053
|
-
list(query?:
|
|
22054
|
-
|
|
22616
|
+
list(query?: GetProductsQuery, options?: SpacebringRequestOptions): Promise<{
|
|
22617
|
+
nextPageToken?: string;
|
|
22618
|
+
products: Product[];
|
|
22619
|
+
searchQueryNext?: string;
|
|
22620
|
+
}>;
|
|
22621
|
+
iterate(query?: Omit<GetProductsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Product, void, undefined>;
|
|
22055
22622
|
get(productId: string, options?: SpacebringRequestOptions): Promise<Product>;
|
|
22056
22623
|
create(body: NonNullable<operations["createProduct"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<Product>;
|
|
22057
22624
|
update(productId: string, body: NonNullable<operations["updateProduct"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<Product>;
|
|
@@ -22059,8 +22626,12 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
22059
22626
|
};
|
|
22060
22627
|
};
|
|
22061
22628
|
subscriptions: {
|
|
22062
|
-
list(query?:
|
|
22063
|
-
|
|
22629
|
+
list(query?: GetSubscriptionsQuery, options?: SpacebringRequestOptions): Promise<{
|
|
22630
|
+
nextPageToken?: string;
|
|
22631
|
+
searchQueryNext?: string;
|
|
22632
|
+
subscriptions: Subscription[];
|
|
22633
|
+
}>;
|
|
22634
|
+
iterate(query?: Omit<GetSubscriptionsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Subscription, void, undefined>;
|
|
22064
22635
|
get(subscriptionId: string, options?: SpacebringRequestOptions): Promise<Subscription>;
|
|
22065
22636
|
create(body: NonNullable<operations["createSubscription"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<Subscription>;
|
|
22066
22637
|
update(subscriptionId: string, body: NonNullable<operations["updateSubscription"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<undefined>;
|
|
@@ -22071,8 +22642,12 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
22071
22642
|
};
|
|
22072
22643
|
support: {
|
|
22073
22644
|
tickets: {
|
|
22074
|
-
list(query:
|
|
22075
|
-
|
|
22645
|
+
list(query: GetSupportTicketsQuery, options?: SpacebringRequestOptions): Promise<{
|
|
22646
|
+
nextPageToken?: string;
|
|
22647
|
+
searchQueryNext?: string;
|
|
22648
|
+
tickets?: SupportTicket[];
|
|
22649
|
+
}>;
|
|
22650
|
+
iterate(query: Omit<GetSupportTicketsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<SupportTicket, void, undefined>;
|
|
22076
22651
|
get(id: string, options?: SpacebringRequestOptions): Promise<operations["getSupportTicket"]["responses"][200]["content"]["application/json"]>;
|
|
22077
22652
|
create(body: NonNullable<operations["createSupportTicket"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<operations["createSupportTicket"]["responses"][201]["content"]["application/json"]>;
|
|
22078
22653
|
updateAssignee(id: string, body: NonNullable<operations["updateSupportTicketAssignee"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<operations["updateSupportTicketAssignee"]["responses"][200]["content"]["application/json"]>;
|
|
@@ -22090,39 +22665,60 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
22090
22665
|
getDayPasses(id: string, options?: SpacebringRequestOptions): Promise<Balance[]>;
|
|
22091
22666
|
};
|
|
22092
22667
|
credits: {
|
|
22093
|
-
list(query?:
|
|
22094
|
-
|
|
22668
|
+
list(query?: GetCreditsTransactionsQuery, options?: SpacebringRequestOptions): Promise<{
|
|
22669
|
+
transactions?: CreditTransaction[];
|
|
22670
|
+
nextPageToken?: string;
|
|
22671
|
+
}>;
|
|
22672
|
+
iterate(query?: Omit<GetCreditsTransactionsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<CreditTransaction, void, undefined>;
|
|
22095
22673
|
create(body: NonNullable<operations["createCreditsTransaction"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<CreditTransaction>;
|
|
22096
22674
|
};
|
|
22097
22675
|
dayPasses: {
|
|
22098
|
-
list(query?:
|
|
22099
|
-
|
|
22676
|
+
list(query?: GetDayPassesTransactionsQuery, options?: SpacebringRequestOptions): Promise<{
|
|
22677
|
+
nextPageToken?: string;
|
|
22678
|
+
transactions: DayPassTransaction[];
|
|
22679
|
+
}>;
|
|
22680
|
+
iterate(query?: Omit<GetDayPassesTransactionsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<DayPassTransaction, void, undefined>;
|
|
22100
22681
|
create(body: NonNullable<operations["createDayPassesTransaction"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<DayPassTransaction>;
|
|
22101
22682
|
};
|
|
22102
22683
|
money: {
|
|
22103
|
-
list(query:
|
|
22104
|
-
|
|
22684
|
+
list(query: GetMoneyTransactionsQuery, options?: SpacebringRequestOptions): Promise<{
|
|
22685
|
+
transactions?: MoneyTransaction[];
|
|
22686
|
+
nextPageToken?: string;
|
|
22687
|
+
}>;
|
|
22688
|
+
iterate(query: Omit<GetMoneyTransactionsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<MoneyTransaction, void, undefined>;
|
|
22105
22689
|
get(id: string, options?: SpacebringRequestOptions): Promise<MoneyTransaction>;
|
|
22106
22690
|
};
|
|
22107
22691
|
};
|
|
22108
22692
|
visitors: {
|
|
22109
22693
|
contacts: {
|
|
22110
|
-
list(query:
|
|
22111
|
-
|
|
22694
|
+
list(query: GetContactsQuery, options?: SpacebringRequestOptions): Promise<{
|
|
22695
|
+
contacts?: Contact[];
|
|
22696
|
+
nextPageToken?: string;
|
|
22697
|
+
searchQueryNext?: string;
|
|
22698
|
+
}>;
|
|
22699
|
+
iterate(query: Omit<GetContactsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Contact, void, undefined>;
|
|
22112
22700
|
get(contactId: string, options?: SpacebringRequestOptions): Promise<Contact>;
|
|
22113
22701
|
create(body: NonNullable<operations["createContact"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<Contact>;
|
|
22114
22702
|
};
|
|
22115
22703
|
requests: {
|
|
22116
|
-
list(query:
|
|
22117
|
-
|
|
22704
|
+
list(query: GetRequestsQuery, options?: SpacebringRequestOptions): Promise<{
|
|
22705
|
+
nextPageToken?: string;
|
|
22706
|
+
requests?: Request[];
|
|
22707
|
+
searchQueryNext?: string;
|
|
22708
|
+
}>;
|
|
22709
|
+
iterate(query: Omit<GetRequestsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Request, void, undefined>;
|
|
22118
22710
|
get(id: string, options?: SpacebringRequestOptions): Promise<Request>;
|
|
22119
22711
|
create(body: NonNullable<operations["createRequest"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<Request>;
|
|
22120
22712
|
approve(id: string, options?: SpacebringRequestOptions): Promise<RequestVisit>;
|
|
22121
22713
|
reject(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
22122
22714
|
};
|
|
22123
22715
|
visits: {
|
|
22124
|
-
list(query:
|
|
22125
|
-
|
|
22716
|
+
list(query: GetVisitsQuery, options?: SpacebringRequestOptions): Promise<{
|
|
22717
|
+
nextPageToken?: string;
|
|
22718
|
+
searchQueryNext?: string;
|
|
22719
|
+
visits?: VisitorVisit[];
|
|
22720
|
+
}>;
|
|
22721
|
+
iterate(query: Omit<GetVisitsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<VisitorVisit, void, undefined>;
|
|
22126
22722
|
get(id: string, options?: SpacebringRequestOptions): Promise<VisitorVisit>;
|
|
22127
22723
|
create(body: NonNullable<operations["createVisit"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<VisitorVisit>;
|
|
22128
22724
|
update(id: string, body: NonNullable<operations["updateVisit"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<VisitorVisit>;
|
|
@@ -22191,4 +22787,4 @@ declare class SpacebringError extends Error {
|
|
|
22191
22787
|
});
|
|
22192
22788
|
}
|
|
22193
22789
|
|
|
22194
|
-
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 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, 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 };
|
|
22790
|
+
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, 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 };
|