@izak0s/spacebring-api 1.9.0 → 1.11.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 +2 -2
- package/dist/index.cjs +19 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +652 -97
- package/dist/index.d.ts +652 -97
- package/dist/index.js +19 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -686,7 +686,11 @@ interface paths {
|
|
|
686
686
|
path?: never;
|
|
687
687
|
cookie?: never;
|
|
688
688
|
};
|
|
689
|
-
|
|
689
|
+
/**
|
|
690
|
+
* List invoice items
|
|
691
|
+
* @description List invoice items filtered customer, location, type, status, or date range. Status and issue date filters match items connected to an invoice. <h3>OAuth</h3>Required scopes: <code>invoices.readonly</code> or <code>invoices</code>
|
|
692
|
+
*/
|
|
693
|
+
get: operations["listInvoiceItems"];
|
|
690
694
|
put?: never;
|
|
691
695
|
/**
|
|
692
696
|
* Create an invoice item
|
|
@@ -4583,6 +4587,275 @@ interface components {
|
|
|
4583
4587
|
*/
|
|
4584
4588
|
transactionRef: string;
|
|
4585
4589
|
};
|
|
4590
|
+
getInvoiceItems: {
|
|
4591
|
+
/** @description List of invoice items. */
|
|
4592
|
+
invoiceItems: {
|
|
4593
|
+
/**
|
|
4594
|
+
* @deprecated
|
|
4595
|
+
* @description Deprecated. Use totalAmount instead.
|
|
4596
|
+
*/
|
|
4597
|
+
amount: number;
|
|
4598
|
+
/** @description Amounts in the original base currency, before any alt-currency conversion. */
|
|
4599
|
+
baseAmounts: {
|
|
4600
|
+
/** @description ISO currency code. */
|
|
4601
|
+
currencyCode: string;
|
|
4602
|
+
/** @description Discount deduction in major units. */
|
|
4603
|
+
discountedAmount: number;
|
|
4604
|
+
/** @description Tax details. */
|
|
4605
|
+
tax?: {
|
|
4606
|
+
/** @description Tax amount in major units. */
|
|
4607
|
+
amount: number;
|
|
4608
|
+
/** @description Whether tax is included in the price. */
|
|
4609
|
+
inclusive: boolean;
|
|
4610
|
+
/** @description Tax rate as a decimal. */
|
|
4611
|
+
rate: number;
|
|
4612
|
+
/** @description Amount subject to tax in major units. */
|
|
4613
|
+
taxableAmount: number;
|
|
4614
|
+
};
|
|
4615
|
+
/** @description Total in major units. */
|
|
4616
|
+
totalAmount: number;
|
|
4617
|
+
/** @description Total excluding tax in major units. */
|
|
4618
|
+
totalExcludingTaxAmount: number;
|
|
4619
|
+
/** @description Unit price in major units. */
|
|
4620
|
+
unitAmount: number;
|
|
4621
|
+
/** @description Unit price excluding tax in major units. */
|
|
4622
|
+
unitExcludingTaxAmount: number;
|
|
4623
|
+
};
|
|
4624
|
+
/**
|
|
4625
|
+
* @deprecated
|
|
4626
|
+
* @description Deprecated. Use product.bookingRef instead.
|
|
4627
|
+
*/
|
|
4628
|
+
booking?: {
|
|
4629
|
+
[key: string]: unknown;
|
|
4630
|
+
};
|
|
4631
|
+
/**
|
|
4632
|
+
* Format: uuid
|
|
4633
|
+
* @description ID of the associated company.
|
|
4634
|
+
*/
|
|
4635
|
+
companyRef?: string;
|
|
4636
|
+
/**
|
|
4637
|
+
* Format: date-time
|
|
4638
|
+
* @description ISO timestamp of when the item was created.
|
|
4639
|
+
*/
|
|
4640
|
+
createDate: string;
|
|
4641
|
+
/**
|
|
4642
|
+
* @deprecated
|
|
4643
|
+
* @description Deprecated.
|
|
4644
|
+
*/
|
|
4645
|
+
creditPackage?: {
|
|
4646
|
+
[key: string]: unknown;
|
|
4647
|
+
};
|
|
4648
|
+
/** @description ISO currency code. Reflects the alt currency when present, otherwise the base currency. */
|
|
4649
|
+
currencyCode: string;
|
|
4650
|
+
/**
|
|
4651
|
+
* Format: date-time
|
|
4652
|
+
* @description ISO timestamp of when the item was deleted.
|
|
4653
|
+
*/
|
|
4654
|
+
deleteDate?: string;
|
|
4655
|
+
/**
|
|
4656
|
+
* @deprecated
|
|
4657
|
+
* @description Deprecated. Use product.title instead.
|
|
4658
|
+
*/
|
|
4659
|
+
description: string;
|
|
4660
|
+
/** @description Discount deduction in major units. Reflects the alt currency when present, otherwise the base currency. */
|
|
4661
|
+
discountedAmount: number;
|
|
4662
|
+
/** @description Applied discounts. */
|
|
4663
|
+
discounts: {
|
|
4664
|
+
/** @description Coupon applied to this item. */
|
|
4665
|
+
coupon: {
|
|
4666
|
+
/** @description Fixed discount amount in major units. */
|
|
4667
|
+
amountOff?: number;
|
|
4668
|
+
/** @description Currency code for amountOff. */
|
|
4669
|
+
currencyCode?: string;
|
|
4670
|
+
/** @description Discount duration type. */
|
|
4671
|
+
duration?: string;
|
|
4672
|
+
/** @description Number of months the discount applies. */
|
|
4673
|
+
durationInMonths?: number;
|
|
4674
|
+
/**
|
|
4675
|
+
* Format: uuid
|
|
4676
|
+
* @description Coupon ID.
|
|
4677
|
+
*/
|
|
4678
|
+
id?: string;
|
|
4679
|
+
/** @description Percentage discount. */
|
|
4680
|
+
percentOff?: number;
|
|
4681
|
+
/** @description Product types this coupon applies to. */
|
|
4682
|
+
productTypes?: string[];
|
|
4683
|
+
/** @description Coupon type. */
|
|
4684
|
+
type?: string;
|
|
4685
|
+
};
|
|
4686
|
+
/** @description Promocode applied to this item. */
|
|
4687
|
+
promocode?: {
|
|
4688
|
+
/** @description Promocode string. */
|
|
4689
|
+
code: string;
|
|
4690
|
+
/**
|
|
4691
|
+
* Format: date-time
|
|
4692
|
+
* @description Promocode expiration date.
|
|
4693
|
+
*/
|
|
4694
|
+
expiration?: string;
|
|
4695
|
+
/**
|
|
4696
|
+
* Format: uuid
|
|
4697
|
+
* @description Promocode ID.
|
|
4698
|
+
*/
|
|
4699
|
+
id: string;
|
|
4700
|
+
/** @description Whether limited to first purchase only. */
|
|
4701
|
+
limitByFirstPurchase?: boolean;
|
|
4702
|
+
};
|
|
4703
|
+
/**
|
|
4704
|
+
* Format: uuid
|
|
4705
|
+
* @description ID of the subscription this discount is associated with.
|
|
4706
|
+
*/
|
|
4707
|
+
subscriptionId?: string;
|
|
4708
|
+
}[];
|
|
4709
|
+
/** @description Unique identifier of the invoice item. */
|
|
4710
|
+
id: string;
|
|
4711
|
+
/**
|
|
4712
|
+
* Format: uuid
|
|
4713
|
+
* @description ID of the invoice this item belongs to.
|
|
4714
|
+
*/
|
|
4715
|
+
invoiceRef?: string;
|
|
4716
|
+
/**
|
|
4717
|
+
* Format: uuid
|
|
4718
|
+
* @description ID of the organization (location).
|
|
4719
|
+
*/
|
|
4720
|
+
locationRef: string;
|
|
4721
|
+
/**
|
|
4722
|
+
* Format: uuid
|
|
4723
|
+
* @description ID of the associated membership.
|
|
4724
|
+
*/
|
|
4725
|
+
membershipRef?: string;
|
|
4726
|
+
/**
|
|
4727
|
+
* Format: uuid
|
|
4728
|
+
* @description ID of the membership that created this item.
|
|
4729
|
+
*/
|
|
4730
|
+
membershipRefCreatedBy?: string;
|
|
4731
|
+
/**
|
|
4732
|
+
* @deprecated
|
|
4733
|
+
* @description Deprecated. Use totalExcludingTaxAmount instead.
|
|
4734
|
+
*/
|
|
4735
|
+
netAmount: number;
|
|
4736
|
+
/**
|
|
4737
|
+
* @deprecated
|
|
4738
|
+
* @description Deprecated. Use unitExcludingTaxAmount instead.
|
|
4739
|
+
*/
|
|
4740
|
+
netUnitAmount: number;
|
|
4741
|
+
/**
|
|
4742
|
+
* @deprecated
|
|
4743
|
+
* @description Deprecated. Use product.orderRef instead.
|
|
4744
|
+
*/
|
|
4745
|
+
orderItem?: {
|
|
4746
|
+
[key: string]: unknown;
|
|
4747
|
+
};
|
|
4748
|
+
/** @description Billing period for subscription items. */
|
|
4749
|
+
period?: {
|
|
4750
|
+
/**
|
|
4751
|
+
* Format: date-time
|
|
4752
|
+
* @description Subscription period end date.
|
|
4753
|
+
*/
|
|
4754
|
+
endDate: string;
|
|
4755
|
+
/**
|
|
4756
|
+
* Format: date-time
|
|
4757
|
+
* @description Subscription period start date.
|
|
4758
|
+
*/
|
|
4759
|
+
startDate: string;
|
|
4760
|
+
};
|
|
4761
|
+
/**
|
|
4762
|
+
* @deprecated
|
|
4763
|
+
* @description Deprecated. Use period instead.
|
|
4764
|
+
*/
|
|
4765
|
+
plan?: {
|
|
4766
|
+
[key: string]: unknown;
|
|
4767
|
+
};
|
|
4768
|
+
/** @description Product details. */
|
|
4769
|
+
product: {
|
|
4770
|
+
/**
|
|
4771
|
+
* Format: uuid
|
|
4772
|
+
* @description ID of the associated booking.
|
|
4773
|
+
*/
|
|
4774
|
+
bookingRef?: string;
|
|
4775
|
+
/**
|
|
4776
|
+
* Format: uuid
|
|
4777
|
+
* @description ID of the associated event ticket.
|
|
4778
|
+
*/
|
|
4779
|
+
eventTicketRef?: string;
|
|
4780
|
+
/**
|
|
4781
|
+
* Format: uuid
|
|
4782
|
+
* @description ID of the product option.
|
|
4783
|
+
*/
|
|
4784
|
+
optionRef?: string;
|
|
4785
|
+
/**
|
|
4786
|
+
* Format: uuid
|
|
4787
|
+
* @description ID of the associated order.
|
|
4788
|
+
*/
|
|
4789
|
+
orderRef?: string;
|
|
4790
|
+
/** @description Display title of the product. */
|
|
4791
|
+
title: string;
|
|
4792
|
+
/**
|
|
4793
|
+
* @description Type of the invoice item.
|
|
4794
|
+
* @enum {string}
|
|
4795
|
+
*/
|
|
4796
|
+
type: "creditPackage" | "custom" | "booking" | "eventTicket" | "subscription" | "order";
|
|
4797
|
+
};
|
|
4798
|
+
/** @description Quantity of units. */
|
|
4799
|
+
quantity: number;
|
|
4800
|
+
/**
|
|
4801
|
+
* Format: uuid
|
|
4802
|
+
* @description ID of the associated subscription.
|
|
4803
|
+
*/
|
|
4804
|
+
subscriptionRef?: string;
|
|
4805
|
+
/** @description Tax details. Reflects the alt currency when present, otherwise the base currency. */
|
|
4806
|
+
tax?: {
|
|
4807
|
+
/** @description Tax amount in major units. */
|
|
4808
|
+
amount: number;
|
|
4809
|
+
/** @description Whether tax is included in the price. */
|
|
4810
|
+
inclusive: boolean;
|
|
4811
|
+
/** @description Tax rate as a decimal. */
|
|
4812
|
+
rate: number;
|
|
4813
|
+
/** @description Amount subject to tax in major units. */
|
|
4814
|
+
taxableAmount: number;
|
|
4815
|
+
};
|
|
4816
|
+
/**
|
|
4817
|
+
* @deprecated
|
|
4818
|
+
* @description Deprecated. Use baseAmounts.tax.amount instead.
|
|
4819
|
+
*/
|
|
4820
|
+
taxAmount?: number;
|
|
4821
|
+
/**
|
|
4822
|
+
* @deprecated
|
|
4823
|
+
* @description Deprecated. Use baseAmounts.tax.taxableAmount instead.
|
|
4824
|
+
*/
|
|
4825
|
+
taxableAmount?: number;
|
|
4826
|
+
/**
|
|
4827
|
+
* @deprecated
|
|
4828
|
+
* @description Deprecated. Use product.eventTicketRef instead.
|
|
4829
|
+
*/
|
|
4830
|
+
ticket?: {
|
|
4831
|
+
[key: string]: unknown;
|
|
4832
|
+
};
|
|
4833
|
+
/** @description Total in major units. Reflects the alt currency when present, otherwise the base currency. */
|
|
4834
|
+
totalAmount: number;
|
|
4835
|
+
/** @description Total excluding tax in major units. Reflects the alt currency when present, otherwise the base currency. */
|
|
4836
|
+
totalExcludingTaxAmount: number;
|
|
4837
|
+
/**
|
|
4838
|
+
* @deprecated
|
|
4839
|
+
* @description Deprecated. Use product.type instead.
|
|
4840
|
+
*/
|
|
4841
|
+
type: string;
|
|
4842
|
+
/** @description Unit price in major units. Reflects the alt currency when present, otherwise the base currency. */
|
|
4843
|
+
unitAmount: number;
|
|
4844
|
+
/** @description Unit price excluding tax in major units. Reflects the alt currency when present, otherwise the base currency. */
|
|
4845
|
+
unitExcludingTaxAmount: number;
|
|
4846
|
+
/** @description User who created this item. */
|
|
4847
|
+
userCreatedBy?: {
|
|
4848
|
+
/** Format: uuid */
|
|
4849
|
+
id: string;
|
|
4850
|
+
name?: string;
|
|
4851
|
+
surname?: string;
|
|
4852
|
+
};
|
|
4853
|
+
}[];
|
|
4854
|
+
/** @description Pagination token to fetch the next page of results. */
|
|
4855
|
+
nextPageToken?: string;
|
|
4856
|
+
/** @description Search query parameters for the next page of results. Includes all filters used to fetch the current page. */
|
|
4857
|
+
searchQueryNext?: string;
|
|
4858
|
+
};
|
|
4586
4859
|
getCreditNotes: {
|
|
4587
4860
|
/** @description List of credit notes. */
|
|
4588
4861
|
creditNotes: {
|
|
@@ -4628,6 +4901,34 @@ interface components {
|
|
|
4628
4901
|
creditAmount?: number;
|
|
4629
4902
|
/** @description ISO currency code (from base or alt currency). */
|
|
4630
4903
|
currencyCode: string;
|
|
4904
|
+
/** @description Customer associated with this credit note. */
|
|
4905
|
+
customer: {
|
|
4906
|
+
/**
|
|
4907
|
+
* Format: uuid
|
|
4908
|
+
* @description ID of the company or membership.
|
|
4909
|
+
*/
|
|
4910
|
+
id: string;
|
|
4911
|
+
/** @description Company logo. */
|
|
4912
|
+
logo?: {
|
|
4913
|
+
key: string;
|
|
4914
|
+
url: string;
|
|
4915
|
+
};
|
|
4916
|
+
/** @description Company name. */
|
|
4917
|
+
title?: string;
|
|
4918
|
+
/**
|
|
4919
|
+
* @description Whether the customer is a company or a user.
|
|
4920
|
+
* @enum {string}
|
|
4921
|
+
*/
|
|
4922
|
+
type: "company" | "user";
|
|
4923
|
+
/** @description User details for membership customers. */
|
|
4924
|
+
user?: {
|
|
4925
|
+
/** Format: uuid */
|
|
4926
|
+
id: string;
|
|
4927
|
+
name?: string | null;
|
|
4928
|
+
photoUrl?: string | null;
|
|
4929
|
+
surname?: string | null;
|
|
4930
|
+
};
|
|
4931
|
+
};
|
|
4631
4932
|
/** @description Effective date in YYYY-MM-DD format. */
|
|
4632
4933
|
effectiveDate?: string;
|
|
4633
4934
|
/**
|
|
@@ -4915,6 +5216,34 @@ interface components {
|
|
|
4915
5216
|
creditAmount?: number;
|
|
4916
5217
|
/** @description ISO currency code (from base or alt currency). */
|
|
4917
5218
|
currencyCode: string;
|
|
5219
|
+
/** @description Customer associated with this credit note. */
|
|
5220
|
+
customer: {
|
|
5221
|
+
/**
|
|
5222
|
+
* Format: uuid
|
|
5223
|
+
* @description ID of the company or membership.
|
|
5224
|
+
*/
|
|
5225
|
+
id: string;
|
|
5226
|
+
/** @description Company logo. */
|
|
5227
|
+
logo?: {
|
|
5228
|
+
key: string;
|
|
5229
|
+
url: string;
|
|
5230
|
+
};
|
|
5231
|
+
/** @description Company name. */
|
|
5232
|
+
title?: string;
|
|
5233
|
+
/**
|
|
5234
|
+
* @description Whether the customer is a company or a user.
|
|
5235
|
+
* @enum {string}
|
|
5236
|
+
*/
|
|
5237
|
+
type: "company" | "user";
|
|
5238
|
+
/** @description User details for membership customers. */
|
|
5239
|
+
user?: {
|
|
5240
|
+
/** Format: uuid */
|
|
5241
|
+
id: string;
|
|
5242
|
+
name?: string | null;
|
|
5243
|
+
photoUrl?: string | null;
|
|
5244
|
+
surname?: string | null;
|
|
5245
|
+
};
|
|
5246
|
+
};
|
|
4918
5247
|
/** @description Effective date in YYYY-MM-DD format. */
|
|
4919
5248
|
effectiveDate?: string;
|
|
4920
5249
|
/**
|
|
@@ -5366,6 +5695,11 @@ interface components {
|
|
|
5366
5695
|
* @description ID of the location this contract belongs to.
|
|
5367
5696
|
*/
|
|
5368
5697
|
locationRef: string;
|
|
5698
|
+
/**
|
|
5699
|
+
* @description How the contract will be signed.
|
|
5700
|
+
* @enum {string}
|
|
5701
|
+
*/
|
|
5702
|
+
signatureMethod?: "eSignature" | "manual";
|
|
5369
5703
|
/** @description Signed document file, present after the contract is signed. */
|
|
5370
5704
|
signedDocument?: {
|
|
5371
5705
|
key: string;
|
|
@@ -5576,6 +5910,11 @@ interface components {
|
|
|
5576
5910
|
* @description ID of the location this contract belongs to.
|
|
5577
5911
|
*/
|
|
5578
5912
|
locationRef: string;
|
|
5913
|
+
/**
|
|
5914
|
+
* @description How the contract will be signed.
|
|
5915
|
+
* @enum {string}
|
|
5916
|
+
*/
|
|
5917
|
+
signatureMethod?: "eSignature" | "manual";
|
|
5579
5918
|
/** @description Signed document file, present after the contract is signed. */
|
|
5580
5919
|
signedDocument?: {
|
|
5581
5920
|
key: string;
|
|
@@ -7579,7 +7918,7 @@ interface components {
|
|
|
7579
7918
|
/** @description Subscription backing this assignment. */
|
|
7580
7919
|
subscription: {
|
|
7581
7920
|
/** @description ISO timestamp when the assignment ends. */
|
|
7582
|
-
endDate
|
|
7921
|
+
endDate?: string;
|
|
7583
7922
|
/**
|
|
7584
7923
|
* Format: uuid
|
|
7585
7924
|
* @description Subscription id.
|
|
@@ -13469,6 +13808,7 @@ interface components {
|
|
|
13469
13808
|
patchGuide: {
|
|
13470
13809
|
content: {
|
|
13471
13810
|
"application/json": {
|
|
13811
|
+
/** @description Guide fields to update. */
|
|
13472
13812
|
guide: {
|
|
13473
13813
|
/** @description Markdown content of the guide. */
|
|
13474
13814
|
description?: string;
|
|
@@ -15002,6 +15342,7 @@ interface components {
|
|
|
15002
15342
|
patchSubscription: {
|
|
15003
15343
|
content: {
|
|
15004
15344
|
"application/json": {
|
|
15345
|
+
/** @description Subscription fields to update. */
|
|
15005
15346
|
subscription: {
|
|
15006
15347
|
/** @description Whether pending items are added to the next invoice. */
|
|
15007
15348
|
addPendingItemsToInvoice?: boolean;
|
|
@@ -15357,6 +15698,7 @@ interface components {
|
|
|
15357
15698
|
updateSubscriptionItem: {
|
|
15358
15699
|
content: {
|
|
15359
15700
|
"application/json": {
|
|
15701
|
+
/** @description Subscription item fields to update. */
|
|
15360
15702
|
item: {
|
|
15361
15703
|
/** @description Whether the item syncs from its linked product. */
|
|
15362
15704
|
autoUpdateFromProduct?: boolean;
|
|
@@ -15621,6 +15963,7 @@ interface components {
|
|
|
15621
15963
|
createDayPassesTransaction: {
|
|
15622
15964
|
content: {
|
|
15623
15965
|
"application/json": {
|
|
15966
|
+
/** @description Day passes transaction to create. */
|
|
15624
15967
|
transaction: {
|
|
15625
15968
|
/** @description Day pass amount. Must be greater than zero. */
|
|
15626
15969
|
amount: number;
|
|
@@ -16838,6 +17181,67 @@ interface operations {
|
|
|
16838
17181
|
};
|
|
16839
17182
|
};
|
|
16840
17183
|
};
|
|
17184
|
+
listInvoiceItems: {
|
|
17185
|
+
parameters: {
|
|
17186
|
+
query?: {
|
|
17187
|
+
/** @description Filter invoices created on or after this date (ISO 8601). Use with createDate[lte] for a range. */
|
|
17188
|
+
"createDate[gte]"?: string;
|
|
17189
|
+
/** @description Filter invoices created on or before this date (ISO 8601). Use with createDate[gte] for a range. */
|
|
17190
|
+
"createDate[lte]"?: string;
|
|
17191
|
+
/** @description UUID of the customer whose invoices to list. */
|
|
17192
|
+
customerRef?: string;
|
|
17193
|
+
/** @description Filter invoices issued on or after this date (ISO 8601). Use with issueDate[lte] for a range. */
|
|
17194
|
+
"issueDate[gte]"?: string;
|
|
17195
|
+
/** @description Filter invoices issued on or before this date (ISO 8601). Use with issueDate[gte] for a range. */
|
|
17196
|
+
"issueDate[lte]"?: string;
|
|
17197
|
+
/** @description Maximum number of invoices per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100. */
|
|
17198
|
+
limit?: number;
|
|
17199
|
+
/** @description UUID of the location whose invoices to list. */
|
|
17200
|
+
locationRef?: string;
|
|
17201
|
+
/** @description Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
|
|
17202
|
+
nextPageToken?: string;
|
|
17203
|
+
/**
|
|
17204
|
+
* @description Filter by invoice status. Comma-separated values, e.g. `draft,issued`.
|
|
17205
|
+
*
|
|
17206
|
+
* Supported values:
|
|
17207
|
+
* - **draft** — created but not sent
|
|
17208
|
+
* - **issued** — sent to the customer but unpaid
|
|
17209
|
+
* - **paid** — fully paid
|
|
17210
|
+
* - **voided** — cancelled and no longer valid
|
|
17211
|
+
*/
|
|
17212
|
+
status?: string;
|
|
17213
|
+
/** @description Filter by invoice item type. Comma-separated values, e.g. `custom,order`. */
|
|
17214
|
+
type?: string;
|
|
17215
|
+
};
|
|
17216
|
+
header?: {
|
|
17217
|
+
/** @description The id of the network. Required when using bearer token authentication */
|
|
17218
|
+
"spacebring-network-id"?: string;
|
|
17219
|
+
};
|
|
17220
|
+
path?: never;
|
|
17221
|
+
cookie?: never;
|
|
17222
|
+
};
|
|
17223
|
+
requestBody?: never;
|
|
17224
|
+
responses: {
|
|
17225
|
+
/** @description OK */
|
|
17226
|
+
200: {
|
|
17227
|
+
headers: {
|
|
17228
|
+
[name: string]: unknown;
|
|
17229
|
+
};
|
|
17230
|
+
content: {
|
|
17231
|
+
"application/json": components["schemas"]["getInvoiceItems"];
|
|
17232
|
+
};
|
|
17233
|
+
};
|
|
17234
|
+
/** @description Bad Request */
|
|
17235
|
+
400: {
|
|
17236
|
+
headers: {
|
|
17237
|
+
[name: string]: unknown;
|
|
17238
|
+
};
|
|
17239
|
+
content: {
|
|
17240
|
+
"application/json": components["schemas"]["responseError"];
|
|
17241
|
+
};
|
|
17242
|
+
};
|
|
17243
|
+
};
|
|
17244
|
+
};
|
|
16841
17245
|
createInvoiceItem: {
|
|
16842
17246
|
parameters: {
|
|
16843
17247
|
query?: never;
|
|
@@ -22070,13 +22474,13 @@ interface operations {
|
|
|
22070
22474
|
}
|
|
22071
22475
|
|
|
22072
22476
|
/** A Contact entity as returned by the Spacebring API. */
|
|
22073
|
-
type Contact = NonNullable<
|
|
22477
|
+
type Contact = NonNullable<components["schemas"]["contact"]>;
|
|
22074
22478
|
/** A Request entity as returned by the Spacebring API. */
|
|
22075
|
-
type Request$1 = NonNullable<
|
|
22479
|
+
type Request$1 = NonNullable<components["schemas"]["visitRequest"]>;
|
|
22076
22480
|
/** A RequestVisit entity as returned by the Spacebring API. */
|
|
22077
|
-
type RequestVisit = NonNullable<
|
|
22481
|
+
type RequestVisit = NonNullable<components["schemas"]["visit"]>;
|
|
22078
22482
|
/** A VisitorVisit entity as returned by the Spacebring API. */
|
|
22079
|
-
type VisitorVisit = NonNullable<
|
|
22483
|
+
type VisitorVisit = NonNullable<components["schemas"]["visit"]>;
|
|
22080
22484
|
/** Query parameters for `sb.visitors.contacts.list()`. */
|
|
22081
22485
|
interface GetContactsQuery {
|
|
22082
22486
|
/** The maximum number of contacts to return. Default is 25. */
|
|
@@ -22126,15 +22530,27 @@ interface GetVisitsQuery {
|
|
|
22126
22530
|
/** Token to retrieve the next page of results. */
|
|
22127
22531
|
nextPageToken?: string;
|
|
22128
22532
|
}
|
|
22533
|
+
/** Request body for `sb.visitors.visits.checkIn()`. */
|
|
22534
|
+
type CheckInVisitBody = NonNullable<operations["checkInVisit"]["requestBody"]>["content"]["application/json"];
|
|
22535
|
+
/** Request body for `sb.visitors.visits.checkOut()`. */
|
|
22536
|
+
type CheckOutVisitBody = NonNullable<operations["checkOutVisit"]["requestBody"]>["content"]["application/json"];
|
|
22537
|
+
/** Request body for `sb.visitors.contacts.create()`. */
|
|
22538
|
+
type CreateContactBody = NonNullable<operations["createContact"]["requestBody"]>["content"]["application/json"];
|
|
22539
|
+
/** Request body for `sb.visitors.requests.create()`. */
|
|
22540
|
+
type CreateRequestBody = NonNullable<operations["createRequest"]["requestBody"]>["content"]["application/json"];
|
|
22541
|
+
/** Request body for `sb.visitors.visits.create()`. */
|
|
22542
|
+
type CreateVisitBody = NonNullable<operations["createVisit"]["requestBody"]>["content"]["application/json"];
|
|
22543
|
+
/** Request body for `sb.visitors.visits.update()`. */
|
|
22544
|
+
type UpdateVisitBody = NonNullable<operations["updateVisit"]["requestBody"]>["content"]["application/json"];
|
|
22129
22545
|
|
|
22130
22546
|
/** A Balance entity as returned by the Spacebring API. */
|
|
22131
|
-
type Balance = NonNullable<
|
|
22547
|
+
type Balance = NonNullable<components["schemas"]["balance"]>;
|
|
22132
22548
|
/** A CreditTransaction entity as returned by the Spacebring API. */
|
|
22133
|
-
type CreditTransaction = NonNullable<
|
|
22549
|
+
type CreditTransaction = NonNullable<components["schemas"]["transactionCreditsExpanded"]>;
|
|
22134
22550
|
/** A DayPassTransaction entity as returned by the Spacebring API. */
|
|
22135
22551
|
type DayPassTransaction = NonNullable<operations["getDayPassesTransactions"]["responses"][200]["content"]["application/json"]["transactions"]>[number];
|
|
22136
22552
|
/** A MoneyTransaction entity as returned by the Spacebring API. */
|
|
22137
|
-
type MoneyTransaction = NonNullable<
|
|
22553
|
+
type MoneyTransaction = NonNullable<components["schemas"]["transaction"]>;
|
|
22138
22554
|
/** Query parameters for `sb.transactions.credits.list()`. */
|
|
22139
22555
|
interface GetCreditsTransactionsQuery {
|
|
22140
22556
|
/** The number of items to return */
|
|
@@ -22192,11 +22608,15 @@ interface GetMoneyTransactionsQuery {
|
|
|
22192
22608
|
/** Token to retrieve the next page of results. */
|
|
22193
22609
|
nextPageToken?: string;
|
|
22194
22610
|
}
|
|
22611
|
+
/** Request body for `sb.transactions.credits.create()`. */
|
|
22612
|
+
type CreateCreditsTransactionBody = NonNullable<operations["createCreditsTransaction"]["requestBody"]>["content"]["application/json"];
|
|
22613
|
+
/** Request body for `sb.transactions.dayPasses.create()`. */
|
|
22614
|
+
type CreateDayPassesTransactionBody = NonNullable<operations["createDayPassesTransaction"]["requestBody"]>["content"]["application/json"];
|
|
22195
22615
|
|
|
22196
22616
|
/** A Activity entity as returned by the Spacebring API. */
|
|
22197
|
-
type Activity = NonNullable<
|
|
22617
|
+
type Activity = NonNullable<components["schemas"]["ticketActivity"]>;
|
|
22198
22618
|
/** A SupportTicket entity as returned by the Spacebring API. */
|
|
22199
|
-
type SupportTicket = NonNullable<
|
|
22619
|
+
type SupportTicket = NonNullable<components["schemas"]["ticket"]>;
|
|
22200
22620
|
/** Query parameters for `sb.support.tickets.list()`. */
|
|
22201
22621
|
interface GetSupportTicketsQuery {
|
|
22202
22622
|
/** The id of the location. */
|
|
@@ -22206,9 +22626,19 @@ interface GetSupportTicketsQuery {
|
|
|
22206
22626
|
/** Token to retrieve the next page of results. */
|
|
22207
22627
|
nextPageToken?: string;
|
|
22208
22628
|
}
|
|
22629
|
+
/** Request body for `sb.support.tickets.create()`. */
|
|
22630
|
+
type CreateSupportTicketBody = NonNullable<operations["createSupportTicket"]["requestBody"]>["content"]["application/json"];
|
|
22631
|
+
/** Request body for `sb.support.tickets.comment.create()`. */
|
|
22632
|
+
type CreateSupportTicketCommentBody = NonNullable<operations["createSupportTicketComment"]["requestBody"]>["content"]["application/json"];
|
|
22633
|
+
/** Request body for `sb.support.tickets.updateAssignee()`. */
|
|
22634
|
+
type UpdateSupportTicketAssigneeBody = NonNullable<operations["updateSupportTicketAssignee"]["requestBody"]>["content"]["application/json"];
|
|
22635
|
+
/** Request body for `sb.support.tickets.updateStatus()`. */
|
|
22636
|
+
type UpdateSupportTicketStatusBody = NonNullable<operations["updateSupportTicketStatus"]["requestBody"]>["content"]["application/json"];
|
|
22637
|
+
/** Request body for `sb.support.tickets.updateType()`. */
|
|
22638
|
+
type UpdateSupportTicketTypeBody = NonNullable<operations["updateSupportTicketType"]["requestBody"]>["content"]["application/json"];
|
|
22209
22639
|
|
|
22210
22640
|
/** A Subscription entity as returned by the Spacebring API. */
|
|
22211
|
-
type Subscription = NonNullable<
|
|
22641
|
+
type Subscription = NonNullable<components["schemas"]["subscription"]>;
|
|
22212
22642
|
/** Query parameters for `sb.subscriptions.list()`. */
|
|
22213
22643
|
interface GetSubscriptionsQuery {
|
|
22214
22644
|
/** Filter subscriptions created on or after this date (ISO 8601). Use with createDate[lte] for a range. */
|
|
@@ -22237,11 +22667,19 @@ interface GetSubscriptionsQuery {
|
|
|
22237
22667
|
- **canceled** — canceled */
|
|
22238
22668
|
status?: string;
|
|
22239
22669
|
}
|
|
22670
|
+
/** Request body for `sb.subscriptions.create()`. */
|
|
22671
|
+
type CreateSubscriptionBody = NonNullable<operations["createSubscription"]["requestBody"]>["content"]["application/json"];
|
|
22672
|
+
/** Request body for `sb.subscriptions.createItem()`. */
|
|
22673
|
+
type CreateSubscriptionItemBody = NonNullable<operations["createSubscriptionItem"]["requestBody"]>["content"]["application/json"];
|
|
22674
|
+
/** Request body for `sb.subscriptions.update()`. */
|
|
22675
|
+
type UpdateSubscriptionBody = NonNullable<operations["updateSubscription"]["requestBody"]>["content"]["application/json"];
|
|
22676
|
+
/** Request body for `sb.subscriptions.updateItem()`. */
|
|
22677
|
+
type UpdateSubscriptionItemBody = NonNullable<operations["updateSubscriptionItem"]["requestBody"]>["content"]["application/json"];
|
|
22240
22678
|
|
|
22241
22679
|
/** A Order entity as returned by the Spacebring API. */
|
|
22242
22680
|
type Order = NonNullable<operations["getOrder"]["responses"][200]["content"]["application/json"]["order"]>;
|
|
22243
22681
|
/** A Product entity as returned by the Spacebring API. */
|
|
22244
|
-
type Product = NonNullable<
|
|
22682
|
+
type Product = NonNullable<components["schemas"]["product"]>;
|
|
22245
22683
|
/** A ShopCategory entity as returned by the Spacebring API. */
|
|
22246
22684
|
type ShopCategory = NonNullable<operations["getShopCategory"]["responses"][200]["content"]["application/json"]["category"]>;
|
|
22247
22685
|
/** Query parameters for `sb.shop.orders.list()`. */
|
|
@@ -22291,11 +22729,19 @@ interface GetShopCategoriesQuery {
|
|
|
22291
22729
|
/** UUID of the location whose shop categories to list. */
|
|
22292
22730
|
locationRef: string;
|
|
22293
22731
|
}
|
|
22732
|
+
/** Request body for `sb.shop.products.create()`. */
|
|
22733
|
+
type CreateProductBody = NonNullable<operations["createProduct"]["requestBody"]>["content"]["application/json"];
|
|
22734
|
+
/** Request body for `sb.shop.categories.create()`. */
|
|
22735
|
+
type CreateShopCategoryBody = NonNullable<operations["createShopCategory"]["requestBody"]>["content"]["application/json"];
|
|
22736
|
+
/** Request body for `sb.shop.products.update()`. */
|
|
22737
|
+
type UpdateProductBody = NonNullable<operations["updateProduct"]["requestBody"]>["content"]["application/json"];
|
|
22738
|
+
/** Request body for `sb.shop.categories.update()`. */
|
|
22739
|
+
type UpdateShopCategoryBody = NonNullable<operations["updateShopCategory"]["requestBody"]>["content"]["application/json"];
|
|
22294
22740
|
|
|
22295
22741
|
/** A Booking entity as returned by the Spacebring API. */
|
|
22296
|
-
type Booking = NonNullable<
|
|
22742
|
+
type Booking = NonNullable<components["schemas"]["booking"]>;
|
|
22297
22743
|
/** A Resource entity as returned by the Spacebring API. */
|
|
22298
|
-
type Resource = NonNullable<
|
|
22744
|
+
type Resource = NonNullable<components["schemas"]["resource"]>;
|
|
22299
22745
|
/** Query parameters for `sb.resources.bookings.list()`. */
|
|
22300
22746
|
interface GetBookingsQuery {
|
|
22301
22747
|
/** The id of the resource. Required if `locationRef` is not passed. */
|
|
@@ -22338,9 +22784,15 @@ interface GetResourcesQuery {
|
|
|
22338
22784
|
/** The number of items to return. */
|
|
22339
22785
|
limit?: number;
|
|
22340
22786
|
}
|
|
22787
|
+
/** Request body for `sb.resources.bookings.create()`. */
|
|
22788
|
+
type CreateBookingBody = NonNullable<operations["createBooking"]["requestBody"]>["content"]["application/json"];
|
|
22789
|
+
/** Request body for `sb.resources.create()`. */
|
|
22790
|
+
type CreateResourceBody = NonNullable<operations["createResource"]["requestBody"]>["content"]["application/json"];
|
|
22791
|
+
/** Request body for `sb.resources.update()`. */
|
|
22792
|
+
type PatchResourceBody = NonNullable<operations["patchResource"]["requestBody"]>["content"]["application/json"];
|
|
22341
22793
|
|
|
22342
22794
|
/** A Registration entity as returned by the Spacebring API. */
|
|
22343
|
-
type Registration = NonNullable<
|
|
22795
|
+
type Registration = NonNullable<components["schemas"]["registration"]>;
|
|
22344
22796
|
/** Query parameters for `sb.registrations.list()`. */
|
|
22345
22797
|
interface GetRegistrationsQuery {
|
|
22346
22798
|
/** The number of items to return */
|
|
@@ -22350,7 +22802,7 @@ interface GetRegistrationsQuery {
|
|
|
22350
22802
|
}
|
|
22351
22803
|
|
|
22352
22804
|
/** A Plan entity as returned by the Spacebring API. */
|
|
22353
|
-
type Plan = NonNullable<
|
|
22805
|
+
type Plan = NonNullable<components["schemas"]["plan"]>;
|
|
22354
22806
|
/** Query parameters for `sb.plans.list()`. */
|
|
22355
22807
|
interface GetPlansQuery {
|
|
22356
22808
|
/** When listing plans for a resource, filter by entire resource vs partial tiers. Pass true or false. */
|
|
@@ -22364,15 +22816,19 @@ interface GetPlansQuery {
|
|
|
22364
22816
|
/** UUID of the resource whose tier plans to list. */
|
|
22365
22817
|
resourceRef?: string;
|
|
22366
22818
|
}
|
|
22819
|
+
/** Request body for `sb.plans.create()`. */
|
|
22820
|
+
type CreatePlanBody = NonNullable<operations["createPlan"]["requestBody"]>["content"]["application/json"];
|
|
22821
|
+
/** Request body for `sb.plans.update()`. */
|
|
22822
|
+
type UpdatePlanBody = NonNullable<operations["updatePlan"]["requestBody"]>["content"]["application/json"];
|
|
22367
22823
|
|
|
22368
22824
|
/** A Network entity as returned by the Spacebring API. */
|
|
22369
|
-
type Network = NonNullable<
|
|
22825
|
+
type Network = NonNullable<components["schemas"]["network"]>;
|
|
22370
22826
|
|
|
22371
22827
|
/** A Location entity as returned by the Spacebring API. */
|
|
22372
|
-
type Location = NonNullable<
|
|
22828
|
+
type Location = NonNullable<components["schemas"]["location"]>;
|
|
22373
22829
|
|
|
22374
22830
|
/** A Guide entity as returned by the Spacebring API. */
|
|
22375
|
-
type Guide = NonNullable<
|
|
22831
|
+
type Guide = NonNullable<components["schemas"]["guide"]>;
|
|
22376
22832
|
/** Query parameters for `sb.guides.list()`. */
|
|
22377
22833
|
interface GetGuidesQuery {
|
|
22378
22834
|
/** Maximum number of guides per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100. */
|
|
@@ -22382,6 +22838,10 @@ interface GetGuidesQuery {
|
|
|
22382
22838
|
/** Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
|
|
22383
22839
|
nextPageToken?: string;
|
|
22384
22840
|
}
|
|
22841
|
+
/** Request body for `sb.guides.create()`. */
|
|
22842
|
+
type CreateGuideBody = NonNullable<operations["createGuide"]["requestBody"]>["content"]["application/json"];
|
|
22843
|
+
/** Request body for `sb.guides.update()`. */
|
|
22844
|
+
type PatchGuideBody = NonNullable<operations["patchGuide"]["requestBody"]>["content"]["application/json"];
|
|
22385
22845
|
|
|
22386
22846
|
/** Query parameters for `sb.floors.list()`. */
|
|
22387
22847
|
interface GetFloorsQuery {
|
|
@@ -22394,15 +22854,15 @@ interface GetFloorsQuery {
|
|
|
22394
22854
|
}
|
|
22395
22855
|
|
|
22396
22856
|
/** A CommentLike entity as returned by the Spacebring API. */
|
|
22397
|
-
type CommentLike = NonNullable<
|
|
22857
|
+
type CommentLike = NonNullable<components["schemas"]["postLike"]>;
|
|
22398
22858
|
/** A FeedComment entity as returned by the Spacebring API. */
|
|
22399
|
-
type FeedComment = NonNullable<
|
|
22859
|
+
type FeedComment = NonNullable<components["schemas"]["postComment"]>;
|
|
22400
22860
|
/** A Post entity as returned by the Spacebring API. */
|
|
22401
|
-
type Post = NonNullable<
|
|
22861
|
+
type Post = NonNullable<components["schemas"]["post"]>;
|
|
22402
22862
|
/** A PostComment entity as returned by the Spacebring API. */
|
|
22403
|
-
type PostComment = NonNullable<
|
|
22863
|
+
type PostComment = NonNullable<components["schemas"]["postComment"]>;
|
|
22404
22864
|
/** A PostLike entity as returned by the Spacebring API. */
|
|
22405
|
-
type PostLike = NonNullable<
|
|
22865
|
+
type PostLike = NonNullable<components["schemas"]["postLike"]>;
|
|
22406
22866
|
/** Query parameters for `sb.feed.posts.list()`. */
|
|
22407
22867
|
interface GetFeedPostsQuery {
|
|
22408
22868
|
/** The id of the location. */
|
|
@@ -22412,11 +22872,17 @@ interface GetFeedPostsQuery {
|
|
|
22412
22872
|
/** The number of items to return. */
|
|
22413
22873
|
limit?: number;
|
|
22414
22874
|
}
|
|
22875
|
+
/** Request body for `sb.feed.posts.create()`. */
|
|
22876
|
+
type CreateFeedPostBody = NonNullable<operations["createFeedPost"]["requestBody"]>["content"]["application/json"];
|
|
22877
|
+
/** Request body for `sb.feed.comments.create()`. */
|
|
22878
|
+
type CreateFeedPostCommentBody = NonNullable<operations["createFeedPostComment"]["requestBody"]>["content"]["application/json"];
|
|
22879
|
+
/** Request body for `sb.feed.posts.update()`. */
|
|
22880
|
+
type UpdateFeedPostBody = NonNullable<operations["updateFeedPost"]["requestBody"]>["content"]["application/json"];
|
|
22415
22881
|
|
|
22416
22882
|
/** A Event entity as returned by the Spacebring API. */
|
|
22417
|
-
type Event = NonNullable<
|
|
22883
|
+
type Event = NonNullable<components["schemas"]["event"]>;
|
|
22418
22884
|
/** A EventTicket entity as returned by the Spacebring API. */
|
|
22419
|
-
type EventTicket = NonNullable<
|
|
22885
|
+
type EventTicket = NonNullable<components["schemas"]["eventTicket"]>;
|
|
22420
22886
|
/** Query parameters for `sb.events.list()`. */
|
|
22421
22887
|
interface GetEventsByOrganizationQuery {
|
|
22422
22888
|
/** The id of the location. */
|
|
@@ -22437,13 +22903,15 @@ interface GetEventTicketsQuery {
|
|
|
22437
22903
|
/** Token to retrieve the next page of results. */
|
|
22438
22904
|
nextPageToken?: string;
|
|
22439
22905
|
}
|
|
22906
|
+
/** Request body for `sb.events.create()`. */
|
|
22907
|
+
type CreateEventBody = NonNullable<operations["createEvent"]["requestBody"]>["content"]["application/json"];
|
|
22440
22908
|
|
|
22441
22909
|
/** A Coupon entity as returned by the Spacebring API. */
|
|
22442
|
-
type Coupon = NonNullable<
|
|
22910
|
+
type Coupon = NonNullable<components["schemas"]["coupon"]>;
|
|
22443
22911
|
/** A Promocode entity as returned by the Spacebring API. */
|
|
22444
|
-
type Promocode = NonNullable<
|
|
22912
|
+
type Promocode = NonNullable<components["schemas"]["promocode"]>;
|
|
22445
22913
|
/** A Redemption entity as returned by the Spacebring API. */
|
|
22446
|
-
type Redemption = NonNullable<
|
|
22914
|
+
type Redemption = NonNullable<components["schemas"]["discountRedemption"]>;
|
|
22447
22915
|
/** Query parameters for `sb.discounts.coupons.list()`. */
|
|
22448
22916
|
interface GetCouponsQuery {
|
|
22449
22917
|
/** The id of the location */
|
|
@@ -22473,6 +22941,12 @@ interface GetPromocodesQuery {
|
|
|
22473
22941
|
/** The id of the coupon. At least one of locationRef or couponRef is required */
|
|
22474
22942
|
couponRef?: string;
|
|
22475
22943
|
}
|
|
22944
|
+
/** Request body for `sb.discounts.coupons.create()`. */
|
|
22945
|
+
type CreateCouponBody = NonNullable<operations["createCoupon"]["requestBody"]>["content"]["application/json"];
|
|
22946
|
+
/** Request body for `sb.discounts.promocodes.create()`. */
|
|
22947
|
+
type CreatePromocodeBody = NonNullable<operations["createPromocode"]["requestBody"]>["content"]["application/json"];
|
|
22948
|
+
/** Request body for `sb.discounts.coupons.update()`. */
|
|
22949
|
+
type UpdateCouponBody = NonNullable<operations["updateCoupon"]["requestBody"]>["content"]["application/json"];
|
|
22476
22950
|
|
|
22477
22951
|
/** A Contract entity as returned by the Spacebring API. */
|
|
22478
22952
|
type Contract = NonNullable<operations["getContract"]["responses"][200]["content"]["application/json"]["contract"]>;
|
|
@@ -22498,11 +22972,17 @@ interface GetContractsQuery {
|
|
|
22498
22972
|
- **terminated** — cancelled after signing */
|
|
22499
22973
|
status?: string;
|
|
22500
22974
|
}
|
|
22975
|
+
/** Request body for `sb.contracts.create()`. */
|
|
22976
|
+
type CreateContractBody = NonNullable<operations["createContract"]["requestBody"]>["content"]["application/json"];
|
|
22977
|
+
/** Request body for `sb.contracts.issue()`. */
|
|
22978
|
+
type IssueContractBody = NonNullable<operations["issueContract"]["requestBody"]>["content"]["application/json"];
|
|
22979
|
+
/** Request body for `sb.contracts.terminate()`. */
|
|
22980
|
+
type TerminateContractBody = NonNullable<operations["terminateContract"]["requestBody"]>["content"]["application/json"];
|
|
22501
22981
|
|
|
22502
22982
|
/** A Company entity as returned by the Spacebring API. */
|
|
22503
|
-
type Company = NonNullable<
|
|
22983
|
+
type Company = NonNullable<components["schemas"]["company"]>;
|
|
22504
22984
|
/** A Membership entity as returned by the Spacebring API. */
|
|
22505
|
-
type Membership = NonNullable<
|
|
22985
|
+
type Membership = NonNullable<components["schemas"]["membership"]>;
|
|
22506
22986
|
/** Query parameters for `sb.community.companies.list()`. */
|
|
22507
22987
|
interface GetCompaniesQuery {
|
|
22508
22988
|
/** The id of the location. */
|
|
@@ -22546,13 +23026,21 @@ interface GetMembershipsQuery {
|
|
|
22546
23026
|
/** Filter by types. Pass them as comma separated values. */
|
|
22547
23027
|
types?: "member" | "nonmember";
|
|
22548
23028
|
}
|
|
23029
|
+
/** Request body for `sb.community.companies.create()`. */
|
|
23030
|
+
type CreateCompanyBody = NonNullable<operations["createCompany"]["requestBody"]>["content"]["application/json"];
|
|
23031
|
+
/** Request body for `sb.community.memberships.create()`. */
|
|
23032
|
+
type CreateMembershipBody = NonNullable<operations["createMembership"]["requestBody"]>["content"]["application/json"];
|
|
23033
|
+
/** Request body for `sb.community.companies.update()`. */
|
|
23034
|
+
type UpdateCompanyBody = NonNullable<operations["updateCompany"]["requestBody"]>["content"]["application/json"];
|
|
23035
|
+
/** Request body for `sb.community.memberships.update()`. */
|
|
23036
|
+
type UpdateMembershipBody = NonNullable<operations["updateMembership"]["requestBody"]>["content"]["application/json"];
|
|
22549
23037
|
|
|
22550
23038
|
/** A CreditNote entity as returned by the Spacebring API. */
|
|
22551
|
-
type CreditNote = NonNullable<
|
|
23039
|
+
type CreditNote = NonNullable<components["schemas"]["creditNote"]>;
|
|
22552
23040
|
/** A Invoice entity as returned by the Spacebring API. */
|
|
22553
|
-
type Invoice = NonNullable<
|
|
23041
|
+
type Invoice = NonNullable<components["schemas"]["invoice"]>;
|
|
22554
23042
|
/** A InvoiceItem entity as returned by the Spacebring API. */
|
|
22555
|
-
type InvoiceItem = NonNullable<
|
|
23043
|
+
type InvoiceItem = NonNullable<components["schemas"]["invoiceItem"]>;
|
|
22556
23044
|
/** Query parameters for `sb.billing.creditNotes.list()`. */
|
|
22557
23045
|
interface GetCreditNotesQuery {
|
|
22558
23046
|
/** Filter credit notes created on or after this date (ISO 8601). Use with createDate[lte] for a range. */
|
|
@@ -22619,11 +23107,58 @@ interface GetUpcomingInvoiceQuery {
|
|
|
22619
23107
|
/** The id of the subscription. */
|
|
22620
23108
|
subscriptionRef?: string;
|
|
22621
23109
|
}
|
|
23110
|
+
/** Query parameters for `sb.billing.invoices.items.list()`. */
|
|
23111
|
+
interface ListInvoiceItemsQuery {
|
|
23112
|
+
/** Filter invoices created on or after this date (ISO 8601). Use with createDate[lte] for a range. */
|
|
23113
|
+
"createDate[gte]"?: string;
|
|
23114
|
+
/** Filter invoices created on or before this date (ISO 8601). Use with createDate[gte] for a range. */
|
|
23115
|
+
"createDate[lte]"?: string;
|
|
23116
|
+
/** UUID of the customer whose invoices to list. */
|
|
23117
|
+
customerRef?: string;
|
|
23118
|
+
/** Filter invoices issued on or after this date (ISO 8601). Use with issueDate[lte] for a range. */
|
|
23119
|
+
"issueDate[gte]"?: string;
|
|
23120
|
+
/** Filter invoices issued on or before this date (ISO 8601). Use with issueDate[gte] for a range. */
|
|
23121
|
+
"issueDate[lte]"?: string;
|
|
23122
|
+
/** Maximum number of invoices per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100. */
|
|
23123
|
+
limit?: number;
|
|
23124
|
+
/** UUID of the location whose invoices to list. */
|
|
23125
|
+
locationRef?: string;
|
|
23126
|
+
/** Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
|
|
23127
|
+
nextPageToken?: string;
|
|
23128
|
+
/** Filter by invoice status. Comma-separated values, e.g. `draft,issued`.
|
|
23129
|
+
|
|
23130
|
+
Supported values:
|
|
23131
|
+
- **draft** — created but not sent
|
|
23132
|
+
- **issued** — sent to the customer but unpaid
|
|
23133
|
+
- **paid** — fully paid
|
|
23134
|
+
- **voided** — cancelled and no longer valid */
|
|
23135
|
+
status?: string;
|
|
23136
|
+
/** Filter by invoice item type. Comma-separated values, e.g. `custom,order`. */
|
|
23137
|
+
type?: string;
|
|
23138
|
+
}
|
|
23139
|
+
/** Request body for `sb.billing.creditNotes.create()`. */
|
|
23140
|
+
type CreateCreditNoteBody = NonNullable<operations["createCreditNote"]["requestBody"]>["content"]["application/json"];
|
|
23141
|
+
/** Request body for `sb.billing.invoices.create()`. */
|
|
23142
|
+
type CreateInvoiceBody = NonNullable<operations["createInvoice"]["requestBody"]>["content"]["application/json"];
|
|
23143
|
+
/** Request body for `sb.billing.invoices.items.create()`. */
|
|
23144
|
+
type CreateInvoiceItemBody = NonNullable<operations["createInvoiceItem"]["requestBody"]>["content"]["application/json"];
|
|
23145
|
+
/** Request body for `sb.billing.invoices.issue()`. */
|
|
23146
|
+
type IssueInvoiceBody = NonNullable<operations["issueInvoice"]["requestBody"]>["content"]["application/json"];
|
|
23147
|
+
/** Request body for `sb.billing.invoices.pay()`. */
|
|
23148
|
+
type PayInvoiceBody = NonNullable<operations["payInvoice"]["requestBody"]>["content"]["application/json"];
|
|
23149
|
+
/** Request body for `sb.billing.creditNotes.preview()`. */
|
|
23150
|
+
type PreviewCreditNoteBody = NonNullable<operations["previewCreditNote"]["requestBody"]>["content"]["application/json"];
|
|
23151
|
+
/** Request body for `sb.billing.creditNotes.update()`. */
|
|
23152
|
+
type UpdateCreditNoteBody = NonNullable<operations["updateCreditNote"]["requestBody"]>["content"]["application/json"];
|
|
23153
|
+
/** Request body for `sb.billing.invoices.update()`. */
|
|
23154
|
+
type UpdateInvoiceBody = NonNullable<operations["updateInvoice"]["requestBody"]>["content"]["application/json"];
|
|
23155
|
+
/** Request body for `sb.billing.invoices.items.update()`. */
|
|
23156
|
+
type UpdateInvoiceItemBody = NonNullable<operations["updateInvoiceItem"]["requestBody"]>["content"]["application/json"];
|
|
22622
23157
|
|
|
22623
23158
|
/** A Application entity as returned by the Spacebring API. */
|
|
22624
|
-
type Application = NonNullable<
|
|
23159
|
+
type Application = NonNullable<components["schemas"]["benefitApplication"]>;
|
|
22625
23160
|
/** A Benefit entity as returned by the Spacebring API. */
|
|
22626
|
-
type Benefit = NonNullable<
|
|
23161
|
+
type Benefit = NonNullable<components["schemas"]["benefit"]>;
|
|
22627
23162
|
/** A BenefitCategory entity as returned by the Spacebring API. */
|
|
22628
23163
|
type BenefitCategory = NonNullable<operations["getBenefitCategory"]["responses"][200]["content"]["application/json"]["category"]>;
|
|
22629
23164
|
/** Query parameters for `sb.benefits.applications.list()`. */
|
|
@@ -22665,9 +23200,19 @@ interface GetBenefitsQuery {
|
|
|
22665
23200
|
/** Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
|
|
22666
23201
|
nextPageToken?: string;
|
|
22667
23202
|
}
|
|
23203
|
+
/** Request body for `sb.benefits.applications.create()`. */
|
|
23204
|
+
type ApplyBenefitBody = NonNullable<operations["applyBenefit"]["requestBody"]>["content"]["application/json"];
|
|
23205
|
+
/** Request body for `sb.benefits.create()`. */
|
|
23206
|
+
type CreateBenefitBody = NonNullable<operations["createBenefit"]["requestBody"]>["content"]["application/json"];
|
|
23207
|
+
/** Request body for `sb.benefits.categories.create()`. */
|
|
23208
|
+
type CreateBenefitCategoryBody = NonNullable<operations["createBenefitCategory"]["requestBody"]>["content"]["application/json"];
|
|
23209
|
+
/** Request body for `sb.benefits.update()`. */
|
|
23210
|
+
type UpdateBenefitBody = NonNullable<operations["updateBenefit"]["requestBody"]>["content"]["application/json"];
|
|
23211
|
+
/** Request body for `sb.benefits.categories.update()`. */
|
|
23212
|
+
type UpdateBenefitCategoryBody = NonNullable<operations["updateBenefitCategory"]["requestBody"]>["content"]["application/json"];
|
|
22668
23213
|
|
|
22669
23214
|
/** A AltCurrency entity as returned by the Spacebring API. */
|
|
22670
|
-
type AltCurrency = NonNullable<
|
|
23215
|
+
type AltCurrency = NonNullable<components["schemas"]["altCurrency"]>;
|
|
22671
23216
|
/** Query parameters for `sb.altCurrencies.list()`. */
|
|
22672
23217
|
interface GetAltCurrenciesQuery {
|
|
22673
23218
|
/** The id of the location */
|
|
@@ -22677,6 +23222,10 @@ interface GetAltCurrenciesQuery {
|
|
|
22677
23222
|
/** The number of items to return. */
|
|
22678
23223
|
limit?: number;
|
|
22679
23224
|
}
|
|
23225
|
+
/** Request body for `sb.altCurrencies.create()`. */
|
|
23226
|
+
type CreateAltCurrencyBody = NonNullable<operations["createAltCurrency"]["requestBody"]>["content"]["application/json"];
|
|
23227
|
+
/** Request body for `sb.altCurrencies.update()`. */
|
|
23228
|
+
type UpdateAltCurrencyBody = NonNullable<operations["updateAltCurrency"]["requestBody"]>["content"]["application/json"];
|
|
22680
23229
|
|
|
22681
23230
|
declare function createResources(client: Client<paths>, defaults: SpacebringDefaults): {
|
|
22682
23231
|
altCurrencies: {
|
|
@@ -22686,8 +23235,8 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
22686
23235
|
searchQueryNext?: string;
|
|
22687
23236
|
}>;
|
|
22688
23237
|
iterate(query: Omit<GetAltCurrenciesQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<AltCurrency, void, undefined>;
|
|
22689
|
-
create(body:
|
|
22690
|
-
update(id: string, body:
|
|
23238
|
+
create(body: CreateAltCurrencyBody, options?: SpacebringRequestOptions): Promise<AltCurrency>;
|
|
23239
|
+
update(id: string, body: UpdateAltCurrencyBody, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
22691
23240
|
delete(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
22692
23241
|
};
|
|
22693
23242
|
benefits: {
|
|
@@ -22698,8 +23247,8 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
22698
23247
|
}>;
|
|
22699
23248
|
iterate(query?: Omit<GetBenefitsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Benefit, void, undefined>;
|
|
22700
23249
|
get(benefitId: string, options?: SpacebringRequestOptions): Promise<Benefit>;
|
|
22701
|
-
create(body:
|
|
22702
|
-
update(benefitId: string, body:
|
|
23250
|
+
create(body: CreateBenefitBody, options?: SpacebringRequestOptions): Promise<operations["createBenefit"]["responses"][201]["content"]["application/json"]>;
|
|
23251
|
+
update(benefitId: string, body: UpdateBenefitBody, options?: SpacebringRequestOptions): Promise<Benefit>;
|
|
22703
23252
|
delete(benefitId: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
22704
23253
|
applications: {
|
|
22705
23254
|
list(query?: GetBenefitApplicationsQuery, options?: SpacebringRequestOptions): Promise<{
|
|
@@ -22709,13 +23258,13 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
22709
23258
|
}>;
|
|
22710
23259
|
iterate(query?: Omit<GetBenefitApplicationsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Application, void, undefined>;
|
|
22711
23260
|
get(benefitApplicationId: string, options?: SpacebringRequestOptions): Promise<Application>;
|
|
22712
|
-
create(body:
|
|
23261
|
+
create(body: ApplyBenefitBody, options?: SpacebringRequestOptions): Promise<Application>;
|
|
22713
23262
|
};
|
|
22714
23263
|
categories: {
|
|
22715
23264
|
list(query: GetBenefitCategoriesQuery, options?: SpacebringRequestOptions): Promise<BenefitCategory[]>;
|
|
22716
23265
|
get(categoryId: string, options?: SpacebringRequestOptions): Promise<BenefitCategory>;
|
|
22717
|
-
create(body:
|
|
22718
|
-
update(categoryId: string, body:
|
|
23266
|
+
create(body: CreateBenefitCategoryBody, options?: SpacebringRequestOptions): Promise<BenefitCategory>;
|
|
23267
|
+
update(categoryId: string, body: UpdateBenefitCategoryBody, options?: SpacebringRequestOptions): Promise<BenefitCategory>;
|
|
22719
23268
|
delete(categoryId: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
22720
23269
|
};
|
|
22721
23270
|
};
|
|
@@ -22728,9 +23277,9 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
22728
23277
|
}>;
|
|
22729
23278
|
iterate(query?: Omit<GetCreditNotesQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<CreditNote, void, undefined>;
|
|
22730
23279
|
get(id: string, options?: SpacebringRequestOptions): Promise<CreditNote>;
|
|
22731
|
-
create(body:
|
|
22732
|
-
update(id: string, body:
|
|
22733
|
-
preview(body:
|
|
23280
|
+
create(body: CreateCreditNoteBody, options?: SpacebringRequestOptions): Promise<CreditNote>;
|
|
23281
|
+
update(id: string, body: UpdateCreditNoteBody, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
23282
|
+
preview(body: PreviewCreditNoteBody, options?: SpacebringRequestOptions): Promise<CreditNote>;
|
|
22734
23283
|
};
|
|
22735
23284
|
invoices: {
|
|
22736
23285
|
list(query?: GetInvoicesQuery, options?: SpacebringRequestOptions): Promise<{
|
|
@@ -22740,21 +23289,27 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
22740
23289
|
}>;
|
|
22741
23290
|
iterate(query?: Omit<GetInvoicesQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Invoice, void, undefined>;
|
|
22742
23291
|
get(invoiceId: string, options?: SpacebringRequestOptions): Promise<Invoice>;
|
|
22743
|
-
create(body:
|
|
22744
|
-
update(invoiceId: string, body:
|
|
23292
|
+
create(body: CreateInvoiceBody, options?: SpacebringRequestOptions): Promise<Invoice>;
|
|
23293
|
+
update(invoiceId: string, body: UpdateInvoiceBody, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
22745
23294
|
delete(invoiceId: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
22746
23295
|
cancelPayment(invoiceId: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
22747
23296
|
duplicate(invoiceId: string, options?: SpacebringRequestOptions): Promise<Invoice>;
|
|
22748
23297
|
getItems(invoiceId: string, options?: SpacebringRequestOptions): Promise<operations["getInvoiceItems"]["responses"][200]["content"]["application/json"]>;
|
|
22749
23298
|
getUpcoming(query?: GetUpcomingInvoiceQuery, options?: SpacebringRequestOptions): Promise<operations["getUpcomingInvoice"]["responses"][200]["content"]["application/json"]>;
|
|
22750
|
-
issue(invoiceId: string, body?:
|
|
22751
|
-
pay(invoiceId: string, body:
|
|
23299
|
+
issue(invoiceId: string, body?: IssueInvoiceBody, options?: SpacebringRequestOptions): Promise<operations["issueInvoice"]["responses"][200]["content"]["application/json"]>;
|
|
23300
|
+
pay(invoiceId: string, body: PayInvoiceBody, options?: SpacebringRequestOptions): Promise<operations["payInvoice"]["responses"][200]["content"]["application/json"]>;
|
|
22752
23301
|
resend(invoiceId: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
22753
23302
|
void(invoiceId: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
22754
23303
|
items: {
|
|
23304
|
+
list(query?: ListInvoiceItemsQuery, options?: SpacebringRequestOptions): Promise<{
|
|
23305
|
+
invoiceItems: InvoiceItem[];
|
|
23306
|
+
nextPageToken?: string;
|
|
23307
|
+
searchQueryNext?: string;
|
|
23308
|
+
}>;
|
|
23309
|
+
iterate(query?: Omit<ListInvoiceItemsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<InvoiceItem, void, undefined>;
|
|
22755
23310
|
get(id: string, options?: SpacebringRequestOptions): Promise<InvoiceItem>;
|
|
22756
|
-
create(body:
|
|
22757
|
-
update(id: string, body:
|
|
23311
|
+
create(body: CreateInvoiceItemBody, options?: SpacebringRequestOptions): Promise<InvoiceItem>;
|
|
23312
|
+
update(id: string, body: UpdateInvoiceItemBody, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
22758
23313
|
delete(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
22759
23314
|
getUpcoming(query?: GetUpcomingInvoiceItemsQuery, options?: SpacebringRequestOptions): Promise<InvoiceItem[]>;
|
|
22760
23315
|
};
|
|
@@ -22768,8 +23323,8 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
22768
23323
|
}>;
|
|
22769
23324
|
iterate(query: Omit<GetCompaniesQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Company, void, undefined>;
|
|
22770
23325
|
get(id: string, options?: SpacebringRequestOptions): Promise<Company>;
|
|
22771
|
-
create(body:
|
|
22772
|
-
update(id: string, body:
|
|
23326
|
+
create(body: CreateCompanyBody, options?: SpacebringRequestOptions): Promise<Company>;
|
|
23327
|
+
update(id: string, body: UpdateCompanyBody, options?: SpacebringRequestOptions): Promise<Company>;
|
|
22773
23328
|
};
|
|
22774
23329
|
memberships: {
|
|
22775
23330
|
list(query: GetMembershipsQuery, options?: SpacebringRequestOptions): Promise<{
|
|
@@ -22779,8 +23334,8 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
22779
23334
|
}>;
|
|
22780
23335
|
iterate(query: Omit<GetMembershipsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Membership, void, undefined>;
|
|
22781
23336
|
get(id: string, options?: SpacebringRequestOptions): Promise<Membership>;
|
|
22782
|
-
create(body:
|
|
22783
|
-
update(id: number, body:
|
|
23337
|
+
create(body: CreateMembershipBody, options?: SpacebringRequestOptions): Promise<Membership>;
|
|
23338
|
+
update(id: number, body: UpdateMembershipBody, options?: SpacebringRequestOptions): Promise<Membership>;
|
|
22784
23339
|
delete(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
22785
23340
|
iterateDeleted(query: Omit<GetMembershipsDeletedQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Membership, void, undefined>;
|
|
22786
23341
|
listDeleted(query: GetMembershipsDeletedQuery, options?: SpacebringRequestOptions): Promise<{
|
|
@@ -22797,10 +23352,10 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
22797
23352
|
}>;
|
|
22798
23353
|
iterate(query?: Omit<GetContractsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Contract, void, undefined>;
|
|
22799
23354
|
get(contractId: string, options?: SpacebringRequestOptions): Promise<Contract>;
|
|
22800
|
-
create(body:
|
|
23355
|
+
create(body: CreateContractBody, options?: SpacebringRequestOptions): Promise<Contract>;
|
|
22801
23356
|
delete(contractId: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
22802
|
-
issue(contractId: string, body:
|
|
22803
|
-
terminate(contractId: string, body:
|
|
23357
|
+
issue(contractId: string, body: IssueContractBody, options?: SpacebringRequestOptions): Promise<Contract>;
|
|
23358
|
+
terminate(contractId: string, body: TerminateContractBody, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
22804
23359
|
};
|
|
22805
23360
|
discounts: {
|
|
22806
23361
|
coupons: {
|
|
@@ -22811,14 +23366,14 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
22811
23366
|
}>;
|
|
22812
23367
|
iterate(query: Omit<GetCouponsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Coupon, void, undefined>;
|
|
22813
23368
|
get(id: string, options?: SpacebringRequestOptions): Promise<Coupon>;
|
|
22814
|
-
create(body:
|
|
22815
|
-
update(id: string, body:
|
|
23369
|
+
create(body: CreateCouponBody, options?: SpacebringRequestOptions): Promise<Coupon>;
|
|
23370
|
+
update(id: string, body: UpdateCouponBody, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
22816
23371
|
delete(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
22817
23372
|
};
|
|
22818
23373
|
promocodes: {
|
|
22819
23374
|
list(query?: GetPromocodesQuery, options?: SpacebringRequestOptions): Promise<Promocode[]>;
|
|
22820
23375
|
get(id: string, options?: SpacebringRequestOptions): Promise<Promocode>;
|
|
22821
|
-
create(body:
|
|
23376
|
+
create(body: CreatePromocodeBody, options?: SpacebringRequestOptions): Promise<Promocode>;
|
|
22822
23377
|
archive(id: string, options?: SpacebringRequestOptions): Promise<Promocode>;
|
|
22823
23378
|
};
|
|
22824
23379
|
redemptions: {
|
|
@@ -22833,7 +23388,7 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
22833
23388
|
events: {
|
|
22834
23389
|
list(query: GetEventsByOrganizationQuery, options?: SpacebringRequestOptions): Promise<operations["getEventsByOrganization"]["responses"][200]["content"]["application/json"]>;
|
|
22835
23390
|
get(id: string, options?: SpacebringRequestOptions): Promise<Event>;
|
|
22836
|
-
create(body:
|
|
23391
|
+
create(body: CreateEventBody, options?: SpacebringRequestOptions): Promise<Event>;
|
|
22837
23392
|
delete(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
22838
23393
|
cancel(id: string, options?: SpacebringRequestOptions): Promise<Event>;
|
|
22839
23394
|
copy(id: string, options?: SpacebringRequestOptions): Promise<Event>;
|
|
@@ -22849,7 +23404,7 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
22849
23404
|
};
|
|
22850
23405
|
feed: {
|
|
22851
23406
|
comments: {
|
|
22852
|
-
create(body:
|
|
23407
|
+
create(body: CreateFeedPostCommentBody, options?: SpacebringRequestOptions): Promise<FeedComment>;
|
|
22853
23408
|
delete(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
22854
23409
|
createLike(id: string, options?: SpacebringRequestOptions): Promise<CommentLike>;
|
|
22855
23410
|
deleteLike(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
@@ -22862,8 +23417,8 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
22862
23417
|
}>;
|
|
22863
23418
|
iterate(query: Omit<GetFeedPostsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Post, void, undefined>;
|
|
22864
23419
|
get(id: string, options?: SpacebringRequestOptions): Promise<Post>;
|
|
22865
|
-
create(body:
|
|
22866
|
-
update(id: string, body:
|
|
23420
|
+
create(body: CreateFeedPostBody, options?: SpacebringRequestOptions): Promise<Post>;
|
|
23421
|
+
update(id: string, body: UpdateFeedPostBody, options?: SpacebringRequestOptions): Promise<Post>;
|
|
22867
23422
|
delete(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
22868
23423
|
createLike(id: string, options?: SpacebringRequestOptions): Promise<PostLike>;
|
|
22869
23424
|
deleteLike(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
@@ -22883,8 +23438,8 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
22883
23438
|
}>;
|
|
22884
23439
|
iterate(query: Omit<GetGuidesQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Guide, void, undefined>;
|
|
22885
23440
|
get(guideId: string, options?: SpacebringRequestOptions): Promise<Guide>;
|
|
22886
|
-
create(body:
|
|
22887
|
-
update(guideId: string, body:
|
|
23441
|
+
create(body: CreateGuideBody, options?: SpacebringRequestOptions): Promise<Guide>;
|
|
23442
|
+
update(guideId: string, body: PatchGuideBody, options?: SpacebringRequestOptions): Promise<Guide>;
|
|
22888
23443
|
delete(guideId: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
22889
23444
|
};
|
|
22890
23445
|
locations: {
|
|
@@ -22902,8 +23457,8 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
22902
23457
|
}>;
|
|
22903
23458
|
iterate(query?: Omit<GetPlansQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Plan, void, undefined>;
|
|
22904
23459
|
get(planId: string, options?: SpacebringRequestOptions): Promise<Plan>;
|
|
22905
|
-
create(body:
|
|
22906
|
-
update(planId: string, body:
|
|
23460
|
+
create(body: CreatePlanBody, options?: SpacebringRequestOptions): Promise<Plan>;
|
|
23461
|
+
update(planId: string, body: UpdatePlanBody, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
22907
23462
|
delete(planId: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
22908
23463
|
};
|
|
22909
23464
|
registrations: {
|
|
@@ -22922,8 +23477,8 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
22922
23477
|
}>;
|
|
22923
23478
|
iterate(query: Omit<GetResourcesQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Resource, void, undefined>;
|
|
22924
23479
|
get(id: string, options?: SpacebringRequestOptions): Promise<Resource>;
|
|
22925
|
-
create(body:
|
|
22926
|
-
update(id: string, body:
|
|
23480
|
+
create(body: CreateResourceBody, options?: SpacebringRequestOptions): Promise<Resource>;
|
|
23481
|
+
update(id: string, body: PatchResourceBody, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
22927
23482
|
bookings: {
|
|
22928
23483
|
list(query?: GetBookingsQuery, options?: SpacebringRequestOptions): Promise<{
|
|
22929
23484
|
bookings?: Booking[];
|
|
@@ -22932,7 +23487,7 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
22932
23487
|
}>;
|
|
22933
23488
|
iterate(query?: Omit<GetBookingsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Booking, void, undefined>;
|
|
22934
23489
|
get(id: string, options?: SpacebringRequestOptions): Promise<Booking>;
|
|
22935
|
-
create(body:
|
|
23490
|
+
create(body: CreateBookingBody, options?: SpacebringRequestOptions): Promise<Booking>;
|
|
22936
23491
|
delete(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
22937
23492
|
};
|
|
22938
23493
|
};
|
|
@@ -22940,8 +23495,8 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
22940
23495
|
categories: {
|
|
22941
23496
|
list(query: GetShopCategoriesQuery, options?: SpacebringRequestOptions): Promise<ShopCategory[]>;
|
|
22942
23497
|
get(categoryId: string, options?: SpacebringRequestOptions): Promise<ShopCategory>;
|
|
22943
|
-
create(body:
|
|
22944
|
-
update(categoryId: string, body:
|
|
23498
|
+
create(body: CreateShopCategoryBody, options?: SpacebringRequestOptions): Promise<ShopCategory>;
|
|
23499
|
+
update(categoryId: string, body: UpdateShopCategoryBody, options?: SpacebringRequestOptions): Promise<ShopCategory>;
|
|
22945
23500
|
delete(categoryId: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
22946
23501
|
};
|
|
22947
23502
|
orders: {
|
|
@@ -22961,8 +23516,8 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
22961
23516
|
}>;
|
|
22962
23517
|
iterate(query?: Omit<GetProductsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Product, void, undefined>;
|
|
22963
23518
|
get(productId: string, options?: SpacebringRequestOptions): Promise<Product>;
|
|
22964
|
-
create(body:
|
|
22965
|
-
update(productId: string, body:
|
|
23519
|
+
create(body: CreateProductBody, options?: SpacebringRequestOptions): Promise<Product>;
|
|
23520
|
+
update(productId: string, body: UpdateProductBody, options?: SpacebringRequestOptions): Promise<Product>;
|
|
22966
23521
|
delete(productId: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
22967
23522
|
};
|
|
22968
23523
|
};
|
|
@@ -22974,12 +23529,12 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
22974
23529
|
}>;
|
|
22975
23530
|
iterate(query?: Omit<GetSubscriptionsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Subscription, void, undefined>;
|
|
22976
23531
|
get(subscriptionId: string, options?: SpacebringRequestOptions): Promise<Subscription>;
|
|
22977
|
-
create(body:
|
|
22978
|
-
update(subscriptionId: string, body:
|
|
23532
|
+
create(body: CreateSubscriptionBody, options?: SpacebringRequestOptions): Promise<Subscription>;
|
|
23533
|
+
update(subscriptionId: string, body: UpdateSubscriptionBody, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
22979
23534
|
delete(subscriptionId: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
22980
|
-
createItem(subscriptionId: string, body:
|
|
23535
|
+
createItem(subscriptionId: string, body: CreateSubscriptionItemBody, options?: SpacebringRequestOptions): Promise<Subscription>;
|
|
22981
23536
|
deleteItem(subscriptionId: string, itemId: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
22982
|
-
updateItem(subscriptionId: string, itemId: string, body:
|
|
23537
|
+
updateItem(subscriptionId: string, itemId: string, body: UpdateSubscriptionItemBody, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
22983
23538
|
};
|
|
22984
23539
|
support: {
|
|
22985
23540
|
tickets: {
|
|
@@ -22990,12 +23545,12 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
22990
23545
|
}>;
|
|
22991
23546
|
iterate(query: Omit<GetSupportTicketsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<SupportTicket, void, undefined>;
|
|
22992
23547
|
get(id: string, options?: SpacebringRequestOptions): Promise<operations["getSupportTicket"]["responses"][200]["content"]["application/json"]>;
|
|
22993
|
-
create(body:
|
|
22994
|
-
updateAssignee(id: string, body:
|
|
22995
|
-
updateStatus(id: string, body:
|
|
22996
|
-
updateType(id: string, body:
|
|
23548
|
+
create(body: CreateSupportTicketBody, options?: SpacebringRequestOptions): Promise<operations["createSupportTicket"]["responses"][201]["content"]["application/json"]>;
|
|
23549
|
+
updateAssignee(id: string, body: UpdateSupportTicketAssigneeBody, options?: SpacebringRequestOptions): Promise<operations["updateSupportTicketAssignee"]["responses"][200]["content"]["application/json"]>;
|
|
23550
|
+
updateStatus(id: string, body: UpdateSupportTicketStatusBody, options?: SpacebringRequestOptions): Promise<operations["updateSupportTicketStatus"]["responses"][200]["content"]["application/json"]>;
|
|
23551
|
+
updateType(id: string, body: UpdateSupportTicketTypeBody, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
22997
23552
|
comment: {
|
|
22998
|
-
create(body:
|
|
23553
|
+
create(body: CreateSupportTicketCommentBody, options?: SpacebringRequestOptions): Promise<Activity>;
|
|
22999
23554
|
delete(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
23000
23555
|
};
|
|
23001
23556
|
};
|
|
@@ -23011,7 +23566,7 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
23011
23566
|
nextPageToken?: string;
|
|
23012
23567
|
}>;
|
|
23013
23568
|
iterate(query?: Omit<GetCreditsTransactionsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<CreditTransaction, void, undefined>;
|
|
23014
|
-
create(body:
|
|
23569
|
+
create(body: CreateCreditsTransactionBody, options?: SpacebringRequestOptions): Promise<CreditTransaction>;
|
|
23015
23570
|
};
|
|
23016
23571
|
dayPasses: {
|
|
23017
23572
|
list(query?: GetDayPassesTransactionsQuery, options?: SpacebringRequestOptions): Promise<{
|
|
@@ -23019,7 +23574,7 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
23019
23574
|
transactions: DayPassTransaction[];
|
|
23020
23575
|
}>;
|
|
23021
23576
|
iterate(query?: Omit<GetDayPassesTransactionsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<DayPassTransaction, void, undefined>;
|
|
23022
|
-
create(body:
|
|
23577
|
+
create(body: CreateDayPassesTransactionBody, options?: SpacebringRequestOptions): Promise<DayPassTransaction>;
|
|
23023
23578
|
};
|
|
23024
23579
|
money: {
|
|
23025
23580
|
list(query: GetMoneyTransactionsQuery, options?: SpacebringRequestOptions): Promise<{
|
|
@@ -23039,7 +23594,7 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
23039
23594
|
}>;
|
|
23040
23595
|
iterate(query: Omit<GetContactsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Contact, void, undefined>;
|
|
23041
23596
|
get(contactId: string, options?: SpacebringRequestOptions): Promise<Contact>;
|
|
23042
|
-
create(body:
|
|
23597
|
+
create(body: CreateContactBody, options?: SpacebringRequestOptions): Promise<Contact>;
|
|
23043
23598
|
};
|
|
23044
23599
|
requests: {
|
|
23045
23600
|
list(query: GetRequestsQuery, options?: SpacebringRequestOptions): Promise<{
|
|
@@ -23049,7 +23604,7 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
23049
23604
|
}>;
|
|
23050
23605
|
iterate(query: Omit<GetRequestsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Request$1, void, undefined>;
|
|
23051
23606
|
get(id: string, options?: SpacebringRequestOptions): Promise<Request$1>;
|
|
23052
|
-
create(body:
|
|
23607
|
+
create(body: CreateRequestBody, options?: SpacebringRequestOptions): Promise<Request$1>;
|
|
23053
23608
|
approve(id: string, options?: SpacebringRequestOptions): Promise<RequestVisit>;
|
|
23054
23609
|
reject(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
23055
23610
|
};
|
|
@@ -23061,11 +23616,11 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
23061
23616
|
}>;
|
|
23062
23617
|
iterate(query: Omit<GetVisitsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<VisitorVisit, void, undefined>;
|
|
23063
23618
|
get(id: string, options?: SpacebringRequestOptions): Promise<VisitorVisit>;
|
|
23064
|
-
create(body:
|
|
23065
|
-
update(id: string, body:
|
|
23619
|
+
create(body: CreateVisitBody, options?: SpacebringRequestOptions): Promise<VisitorVisit>;
|
|
23620
|
+
update(id: string, body: UpdateVisitBody, options?: SpacebringRequestOptions): Promise<VisitorVisit>;
|
|
23066
23621
|
delete(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
23067
|
-
checkIn(body:
|
|
23068
|
-
checkOut(body:
|
|
23622
|
+
checkIn(body: CheckInVisitBody, options?: SpacebringRequestOptions): Promise<VisitorVisit>;
|
|
23623
|
+
checkOut(body: CheckOutVisitBody, options?: SpacebringRequestOptions): Promise<VisitorVisit>;
|
|
23069
23624
|
};
|
|
23070
23625
|
};
|
|
23071
23626
|
};
|
|
@@ -23128,4 +23683,4 @@ declare class SpacebringError extends Error {
|
|
|
23128
23683
|
});
|
|
23129
23684
|
}
|
|
23130
23685
|
|
|
23131
|
-
export { type Activity, type AltCurrency, type Application, type Balance, type Benefit, type BenefitCategory, type Booking, type CommentLike, type Company, type Contact, type Contract, type Coupon, type CreditNote, type CreditTransaction, type DayPassTransaction, type Event, type EventTicket, type FeedComment, type GetAltCurrenciesQuery, type GetBenefitApplicationsQuery, type GetBenefitCategoriesQuery, type GetBenefitsQuery, type GetBookingsQuery, type GetCompaniesQuery, type GetContactsQuery, type GetContractsQuery, type GetCouponsQuery, type GetCreditNotesQuery, type GetCreditsTransactionsQuery, type GetDayPassesTransactionsQuery, type GetDiscountRedemptionsQuery, type GetEventTicketsQuery, type GetEventsByOrganizationQuery, type GetFeedPostsQuery, type GetFloorsQuery, type GetGuidesQuery, type GetInvoicesQuery, type GetMembershipsDeletedQuery, type GetMembershipsQuery, type GetMoneyTransactionsQuery, type GetOrdersQuery, type GetPlansQuery, type GetProductsQuery, type GetPromocodesQuery, type GetRegistrationsQuery, type GetRequestsQuery, type GetResourcesQuery, type GetShopCategoriesQuery, type GetSubscriptionsQuery, type GetSupportTicketsQuery, type GetUpcomingInvoiceItemsQuery, type GetUpcomingInvoiceQuery, type GetVisitsQuery, type Guide, type Invoice, type InvoiceItem, type Location, type Membership, type MoneyTransaction, type Network, type Order, type Plan, type Post, type PostComment, type PostLike, type Product, type Promocode, type Redemption, type Registration, type Request$1 as Request, type RequestVisit, type Resource, type ShopCategory, Spacebring, type SpacebringConfig, SpacebringError, type SpacebringErrorBody, type SpacebringRequestOptions, type SpacebringResources, type Subscription, type SupportTicket, type VisitorVisit, type components, type operations, type paths };
|
|
23686
|
+
export { type Activity, type AltCurrency, type Application, type ApplyBenefitBody, type Balance, type Benefit, type BenefitCategory, type Booking, type CheckInVisitBody, type CheckOutVisitBody, type CommentLike, type Company, type Contact, type Contract, type Coupon, type CreateAltCurrencyBody, type CreateBenefitBody, type CreateBenefitCategoryBody, type CreateBookingBody, type CreateCompanyBody, type CreateContactBody, type CreateContractBody, type CreateCouponBody, type CreateCreditNoteBody, type CreateCreditsTransactionBody, type CreateDayPassesTransactionBody, type CreateEventBody, type CreateFeedPostBody, type CreateFeedPostCommentBody, type CreateGuideBody, type CreateInvoiceBody, type CreateInvoiceItemBody, type CreateMembershipBody, type CreatePlanBody, type CreateProductBody, type CreatePromocodeBody, type CreateRequestBody, type CreateResourceBody, type CreateShopCategoryBody, type CreateSubscriptionBody, type CreateSubscriptionItemBody, type CreateSupportTicketBody, type CreateSupportTicketCommentBody, type CreateVisitBody, type CreditNote, type CreditTransaction, type DayPassTransaction, type Event, type EventTicket, type FeedComment, type GetAltCurrenciesQuery, type GetBenefitApplicationsQuery, type GetBenefitCategoriesQuery, type GetBenefitsQuery, type GetBookingsQuery, type GetCompaniesQuery, type GetContactsQuery, type GetContractsQuery, type GetCouponsQuery, type GetCreditNotesQuery, type GetCreditsTransactionsQuery, type GetDayPassesTransactionsQuery, type GetDiscountRedemptionsQuery, type GetEventTicketsQuery, type GetEventsByOrganizationQuery, type GetFeedPostsQuery, type GetFloorsQuery, type GetGuidesQuery, type GetInvoicesQuery, type GetMembershipsDeletedQuery, type GetMembershipsQuery, type GetMoneyTransactionsQuery, type GetOrdersQuery, type GetPlansQuery, type GetProductsQuery, type GetPromocodesQuery, type GetRegistrationsQuery, type GetRequestsQuery, type GetResourcesQuery, type GetShopCategoriesQuery, type GetSubscriptionsQuery, type GetSupportTicketsQuery, type GetUpcomingInvoiceItemsQuery, type GetUpcomingInvoiceQuery, type GetVisitsQuery, type Guide, type Invoice, type InvoiceItem, type IssueContractBody, type IssueInvoiceBody, type ListInvoiceItemsQuery, type Location, type Membership, type MoneyTransaction, type Network, type Order, type PatchGuideBody, type PatchResourceBody, type PayInvoiceBody, type Plan, type Post, type PostComment, type PostLike, type PreviewCreditNoteBody, type Product, type Promocode, type Redemption, type Registration, type Request$1 as Request, type RequestVisit, type Resource, type ShopCategory, Spacebring, type SpacebringConfig, SpacebringError, type SpacebringErrorBody, type SpacebringRequestOptions, type SpacebringResources, type Subscription, type SupportTicket, type TerminateContractBody, type UpdateAltCurrencyBody, type UpdateBenefitBody, type UpdateBenefitCategoryBody, type UpdateCompanyBody, type UpdateCouponBody, type UpdateCreditNoteBody, type UpdateFeedPostBody, type UpdateInvoiceBody, type UpdateInvoiceItemBody, type UpdateMembershipBody, type UpdatePlanBody, type UpdateProductBody, type UpdateShopCategoryBody, type UpdateSubscriptionBody, type UpdateSubscriptionItemBody, type UpdateSupportTicketAssigneeBody, type UpdateSupportTicketStatusBody, type UpdateSupportTicketTypeBody, type UpdateVisitBody, type VisitorVisit, type components, type operations, type paths };
|