@izak0s/spacebring-api 10.5.0 → 10.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +73 -1
- package/dist/index.d.ts +73 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -708,7 +708,7 @@ interface paths {
|
|
|
708
708
|
};
|
|
709
709
|
/**
|
|
710
710
|
* List invoice items
|
|
711
|
-
* @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>
|
|
711
|
+
* @description List invoice items filtered by customer, location, type, status, pending, or date range. Status and issue date filters match items connected to an invoice. Pending items are not on an invoice and not part of a subscription. <h3>OAuth</h3>Required scopes: <code>invoices.readonly</code> or <code>invoices</code>
|
|
712
712
|
*/
|
|
713
713
|
get: operations["listInvoiceItems"];
|
|
714
714
|
put?: never;
|
|
@@ -9888,6 +9888,18 @@ interface components {
|
|
|
9888
9888
|
* @enum {string}
|
|
9889
9889
|
*/
|
|
9890
9890
|
bookingUnit: "hour" | "day";
|
|
9891
|
+
/** @description How soon and how far ahead users can book this resource. While enabled is false, the resource follows the booking window its location sets for the resource type. */
|
|
9892
|
+
bookingWindow: {
|
|
9893
|
+
/**
|
|
9894
|
+
* @description How far ahead users can book the resource.
|
|
9895
|
+
* @enum {string}
|
|
9896
|
+
*/
|
|
9897
|
+
bookAhead?: "oneDay" | "twoDays" | "oneWeek" | "twoWeeks" | "oneMonth" | "threeMonths" | "sixMonths" | "oneYear" | "unlimited";
|
|
9898
|
+
/** @description Whether the resource uses this booking window instead of the one its location sets for the resource type. */
|
|
9899
|
+
enabled: boolean;
|
|
9900
|
+
/** @description How many minutes before it starts a booking of the resource has to be made. */
|
|
9901
|
+
minNotice?: number;
|
|
9902
|
+
};
|
|
9891
9903
|
/** @description Brivo access group reference. */
|
|
9892
9904
|
brivoGroupRef?: number | null;
|
|
9893
9905
|
/**
|
|
@@ -10519,6 +10531,18 @@ interface components {
|
|
|
10519
10531
|
* @enum {string}
|
|
10520
10532
|
*/
|
|
10521
10533
|
bookingUnit: "hour" | "day";
|
|
10534
|
+
/** @description How soon and how far ahead users can book this resource. While enabled is false, the resource follows the booking window its location sets for the resource type. */
|
|
10535
|
+
bookingWindow: {
|
|
10536
|
+
/**
|
|
10537
|
+
* @description How far ahead users can book the resource.
|
|
10538
|
+
* @enum {string}
|
|
10539
|
+
*/
|
|
10540
|
+
bookAhead?: "oneDay" | "twoDays" | "oneWeek" | "twoWeeks" | "oneMonth" | "threeMonths" | "sixMonths" | "oneYear" | "unlimited";
|
|
10541
|
+
/** @description Whether the resource uses this booking window instead of the one its location sets for the resource type. */
|
|
10542
|
+
enabled: boolean;
|
|
10543
|
+
/** @description How many minutes before it starts a booking of the resource has to be made. */
|
|
10544
|
+
minNotice?: number;
|
|
10545
|
+
};
|
|
10522
10546
|
/** @description Brivo access group reference. */
|
|
10523
10547
|
brivoGroupRef?: number | null;
|
|
10524
10548
|
/**
|
|
@@ -11844,6 +11868,11 @@ interface components {
|
|
|
11844
11868
|
};
|
|
11845
11869
|
/** @description ID of the transaction the payment was recorded as. */
|
|
11846
11870
|
transactionRef?: string;
|
|
11871
|
+
/**
|
|
11872
|
+
* @description Whether the transaction took the `price` from the payer or gave it back, as when a booking paid with credits or day passes is shortened. `price` is always positive, so a `refund` subtracts from what the booking cost.
|
|
11873
|
+
* @enum {string}
|
|
11874
|
+
*/
|
|
11875
|
+
transactionType?: "charge" | "refund";
|
|
11847
11876
|
/** @description Shorthand for the payment method: the gateway slug for `paymentGateway` payments, otherwise `method.type`. */
|
|
11848
11877
|
type?: string;
|
|
11849
11878
|
};
|
|
@@ -12269,6 +12298,11 @@ interface components {
|
|
|
12269
12298
|
};
|
|
12270
12299
|
/** @description ID of the transaction the payment was recorded as. */
|
|
12271
12300
|
transactionRef?: string;
|
|
12301
|
+
/**
|
|
12302
|
+
* @description Whether the transaction took the `price` from the payer or gave it back, as when a booking paid with credits or day passes is shortened. `price` is always positive, so a `refund` subtracts from what the booking cost.
|
|
12303
|
+
* @enum {string}
|
|
12304
|
+
*/
|
|
12305
|
+
transactionType?: "charge" | "refund";
|
|
12272
12306
|
/** @description Shorthand for the payment method: the gateway slug for `paymentGateway` payments, otherwise `method.type`. */
|
|
12273
12307
|
type?: string;
|
|
12274
12308
|
}[];
|
|
@@ -12906,6 +12940,11 @@ interface components {
|
|
|
12906
12940
|
};
|
|
12907
12941
|
/** @description ID of the transaction the payment was recorded as. */
|
|
12908
12942
|
transactionRef?: string;
|
|
12943
|
+
/**
|
|
12944
|
+
* @description Whether the transaction took the `price` from the payer or gave it back, as when a booking paid with credits or day passes is shortened. `price` is always positive, so a `refund` subtracts from what the booking cost.
|
|
12945
|
+
* @enum {string}
|
|
12946
|
+
*/
|
|
12947
|
+
transactionType?: "charge" | "refund";
|
|
12909
12948
|
/** @description Shorthand for the payment method: the gateway slug for `paymentGateway` payments, otherwise `method.type`. */
|
|
12910
12949
|
type?: string;
|
|
12911
12950
|
};
|
|
@@ -13331,6 +13370,11 @@ interface components {
|
|
|
13331
13370
|
};
|
|
13332
13371
|
/** @description ID of the transaction the payment was recorded as. */
|
|
13333
13372
|
transactionRef?: string;
|
|
13373
|
+
/**
|
|
13374
|
+
* @description Whether the transaction took the `price` from the payer or gave it back, as when a booking paid with credits or day passes is shortened. `price` is always positive, so a `refund` subtracts from what the booking cost.
|
|
13375
|
+
* @enum {string}
|
|
13376
|
+
*/
|
|
13377
|
+
transactionType?: "charge" | "refund";
|
|
13334
13378
|
/** @description Shorthand for the payment method: the gateway slug for `paymentGateway` payments, otherwise `method.type`. */
|
|
13335
13379
|
type?: string;
|
|
13336
13380
|
}[];
|
|
@@ -24192,6 +24236,18 @@ interface components {
|
|
|
24192
24236
|
* @enum {string}
|
|
24193
24237
|
*/
|
|
24194
24238
|
bookingUnit?: "hour" | "day";
|
|
24239
|
+
/** @description How soon and how far ahead users can book this resource. While enabled is false, the resource follows the booking window its location sets for the resource type and keeps its own values for when it is enabled again. Administrators are not limited by either. */
|
|
24240
|
+
bookingWindow?: {
|
|
24241
|
+
/**
|
|
24242
|
+
* @description How far ahead users can book the resource, the same values the location takes. Required while enabled is true.
|
|
24243
|
+
* @enum {string}
|
|
24244
|
+
*/
|
|
24245
|
+
bookAhead?: "oneDay" | "twoDays" | "oneWeek" | "twoWeeks" | "oneMonth" | "threeMonths" | "sixMonths" | "oneYear" | "unlimited";
|
|
24246
|
+
/** @description Whether the resource uses this booking window instead of the one its location sets for the resource type. */
|
|
24247
|
+
enabled: boolean;
|
|
24248
|
+
/** @description How many minutes before it starts a booking of the resource has to be made, up to 30 days. 0 accepts bookings up to the start time. Required while enabled is true. */
|
|
24249
|
+
minNotice?: number;
|
|
24250
|
+
};
|
|
24195
24251
|
/** @description Brivo access group reference. */
|
|
24196
24252
|
brivoGroupRef?: number | null;
|
|
24197
24253
|
/**
|
|
@@ -24629,6 +24685,18 @@ interface components {
|
|
|
24629
24685
|
* @enum {string}
|
|
24630
24686
|
*/
|
|
24631
24687
|
bookingUnit?: "hour" | "day";
|
|
24688
|
+
/** @description How soon and how far ahead users can book this resource. While enabled is false, the resource follows the booking window its location sets for the resource type and keeps its own values for when it is enabled again. Administrators are not limited by either. */
|
|
24689
|
+
bookingWindow?: {
|
|
24690
|
+
/**
|
|
24691
|
+
* @description How far ahead users can book the resource, the same values the location takes. Required while enabled is true.
|
|
24692
|
+
* @enum {string}
|
|
24693
|
+
*/
|
|
24694
|
+
bookAhead?: "oneDay" | "twoDays" | "oneWeek" | "twoWeeks" | "oneMonth" | "threeMonths" | "sixMonths" | "oneYear" | "unlimited";
|
|
24695
|
+
/** @description Whether the resource uses this booking window instead of the one its location sets for the resource type. */
|
|
24696
|
+
enabled: boolean;
|
|
24697
|
+
/** @description How many minutes before it starts a booking of the resource has to be made, up to 30 days. 0 accepts bookings up to the start time. Required while enabled is true. */
|
|
24698
|
+
minNotice?: number;
|
|
24699
|
+
};
|
|
24632
24700
|
/** @description Brivo access group reference. */
|
|
24633
24701
|
brivoGroupRef?: number | null;
|
|
24634
24702
|
/**
|
|
@@ -27741,6 +27809,8 @@ interface operations {
|
|
|
27741
27809
|
* - **voided** — cancelled and no longer valid
|
|
27742
27810
|
*/
|
|
27743
27811
|
status?: string;
|
|
27812
|
+
/** @description Filter by whether the item is pending: not on an invoice and not part of a subscription. Pass true or false. */
|
|
27813
|
+
pending?: "true" | "false";
|
|
27744
27814
|
/** @description Filter by invoice item type. Comma-separated values, e.g. `custom,order`. */
|
|
27745
27815
|
type?: string;
|
|
27746
27816
|
};
|
|
@@ -35732,6 +35802,8 @@ interface ListInvoiceItemsQuery {
|
|
|
35732
35802
|
- **paid** — fully paid
|
|
35733
35803
|
- **voided** — cancelled and no longer valid */
|
|
35734
35804
|
status?: string;
|
|
35805
|
+
/** Filter by whether the item is pending: not on an invoice and not part of a subscription. Pass true or false. */
|
|
35806
|
+
pending?: "true" | "false";
|
|
35735
35807
|
/** Filter by invoice item type. Comma-separated values, e.g. `custom,order`. */
|
|
35736
35808
|
type?: string;
|
|
35737
35809
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -708,7 +708,7 @@ interface paths {
|
|
|
708
708
|
};
|
|
709
709
|
/**
|
|
710
710
|
* List invoice items
|
|
711
|
-
* @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>
|
|
711
|
+
* @description List invoice items filtered by customer, location, type, status, pending, or date range. Status and issue date filters match items connected to an invoice. Pending items are not on an invoice and not part of a subscription. <h3>OAuth</h3>Required scopes: <code>invoices.readonly</code> or <code>invoices</code>
|
|
712
712
|
*/
|
|
713
713
|
get: operations["listInvoiceItems"];
|
|
714
714
|
put?: never;
|
|
@@ -9888,6 +9888,18 @@ interface components {
|
|
|
9888
9888
|
* @enum {string}
|
|
9889
9889
|
*/
|
|
9890
9890
|
bookingUnit: "hour" | "day";
|
|
9891
|
+
/** @description How soon and how far ahead users can book this resource. While enabled is false, the resource follows the booking window its location sets for the resource type. */
|
|
9892
|
+
bookingWindow: {
|
|
9893
|
+
/**
|
|
9894
|
+
* @description How far ahead users can book the resource.
|
|
9895
|
+
* @enum {string}
|
|
9896
|
+
*/
|
|
9897
|
+
bookAhead?: "oneDay" | "twoDays" | "oneWeek" | "twoWeeks" | "oneMonth" | "threeMonths" | "sixMonths" | "oneYear" | "unlimited";
|
|
9898
|
+
/** @description Whether the resource uses this booking window instead of the one its location sets for the resource type. */
|
|
9899
|
+
enabled: boolean;
|
|
9900
|
+
/** @description How many minutes before it starts a booking of the resource has to be made. */
|
|
9901
|
+
minNotice?: number;
|
|
9902
|
+
};
|
|
9891
9903
|
/** @description Brivo access group reference. */
|
|
9892
9904
|
brivoGroupRef?: number | null;
|
|
9893
9905
|
/**
|
|
@@ -10519,6 +10531,18 @@ interface components {
|
|
|
10519
10531
|
* @enum {string}
|
|
10520
10532
|
*/
|
|
10521
10533
|
bookingUnit: "hour" | "day";
|
|
10534
|
+
/** @description How soon and how far ahead users can book this resource. While enabled is false, the resource follows the booking window its location sets for the resource type. */
|
|
10535
|
+
bookingWindow: {
|
|
10536
|
+
/**
|
|
10537
|
+
* @description How far ahead users can book the resource.
|
|
10538
|
+
* @enum {string}
|
|
10539
|
+
*/
|
|
10540
|
+
bookAhead?: "oneDay" | "twoDays" | "oneWeek" | "twoWeeks" | "oneMonth" | "threeMonths" | "sixMonths" | "oneYear" | "unlimited";
|
|
10541
|
+
/** @description Whether the resource uses this booking window instead of the one its location sets for the resource type. */
|
|
10542
|
+
enabled: boolean;
|
|
10543
|
+
/** @description How many minutes before it starts a booking of the resource has to be made. */
|
|
10544
|
+
minNotice?: number;
|
|
10545
|
+
};
|
|
10522
10546
|
/** @description Brivo access group reference. */
|
|
10523
10547
|
brivoGroupRef?: number | null;
|
|
10524
10548
|
/**
|
|
@@ -11844,6 +11868,11 @@ interface components {
|
|
|
11844
11868
|
};
|
|
11845
11869
|
/** @description ID of the transaction the payment was recorded as. */
|
|
11846
11870
|
transactionRef?: string;
|
|
11871
|
+
/**
|
|
11872
|
+
* @description Whether the transaction took the `price` from the payer or gave it back, as when a booking paid with credits or day passes is shortened. `price` is always positive, so a `refund` subtracts from what the booking cost.
|
|
11873
|
+
* @enum {string}
|
|
11874
|
+
*/
|
|
11875
|
+
transactionType?: "charge" | "refund";
|
|
11847
11876
|
/** @description Shorthand for the payment method: the gateway slug for `paymentGateway` payments, otherwise `method.type`. */
|
|
11848
11877
|
type?: string;
|
|
11849
11878
|
};
|
|
@@ -12269,6 +12298,11 @@ interface components {
|
|
|
12269
12298
|
};
|
|
12270
12299
|
/** @description ID of the transaction the payment was recorded as. */
|
|
12271
12300
|
transactionRef?: string;
|
|
12301
|
+
/**
|
|
12302
|
+
* @description Whether the transaction took the `price` from the payer or gave it back, as when a booking paid with credits or day passes is shortened. `price` is always positive, so a `refund` subtracts from what the booking cost.
|
|
12303
|
+
* @enum {string}
|
|
12304
|
+
*/
|
|
12305
|
+
transactionType?: "charge" | "refund";
|
|
12272
12306
|
/** @description Shorthand for the payment method: the gateway slug for `paymentGateway` payments, otherwise `method.type`. */
|
|
12273
12307
|
type?: string;
|
|
12274
12308
|
}[];
|
|
@@ -12906,6 +12940,11 @@ interface components {
|
|
|
12906
12940
|
};
|
|
12907
12941
|
/** @description ID of the transaction the payment was recorded as. */
|
|
12908
12942
|
transactionRef?: string;
|
|
12943
|
+
/**
|
|
12944
|
+
* @description Whether the transaction took the `price` from the payer or gave it back, as when a booking paid with credits or day passes is shortened. `price` is always positive, so a `refund` subtracts from what the booking cost.
|
|
12945
|
+
* @enum {string}
|
|
12946
|
+
*/
|
|
12947
|
+
transactionType?: "charge" | "refund";
|
|
12909
12948
|
/** @description Shorthand for the payment method: the gateway slug for `paymentGateway` payments, otherwise `method.type`. */
|
|
12910
12949
|
type?: string;
|
|
12911
12950
|
};
|
|
@@ -13331,6 +13370,11 @@ interface components {
|
|
|
13331
13370
|
};
|
|
13332
13371
|
/** @description ID of the transaction the payment was recorded as. */
|
|
13333
13372
|
transactionRef?: string;
|
|
13373
|
+
/**
|
|
13374
|
+
* @description Whether the transaction took the `price` from the payer or gave it back, as when a booking paid with credits or day passes is shortened. `price` is always positive, so a `refund` subtracts from what the booking cost.
|
|
13375
|
+
* @enum {string}
|
|
13376
|
+
*/
|
|
13377
|
+
transactionType?: "charge" | "refund";
|
|
13334
13378
|
/** @description Shorthand for the payment method: the gateway slug for `paymentGateway` payments, otherwise `method.type`. */
|
|
13335
13379
|
type?: string;
|
|
13336
13380
|
}[];
|
|
@@ -24192,6 +24236,18 @@ interface components {
|
|
|
24192
24236
|
* @enum {string}
|
|
24193
24237
|
*/
|
|
24194
24238
|
bookingUnit?: "hour" | "day";
|
|
24239
|
+
/** @description How soon and how far ahead users can book this resource. While enabled is false, the resource follows the booking window its location sets for the resource type and keeps its own values for when it is enabled again. Administrators are not limited by either. */
|
|
24240
|
+
bookingWindow?: {
|
|
24241
|
+
/**
|
|
24242
|
+
* @description How far ahead users can book the resource, the same values the location takes. Required while enabled is true.
|
|
24243
|
+
* @enum {string}
|
|
24244
|
+
*/
|
|
24245
|
+
bookAhead?: "oneDay" | "twoDays" | "oneWeek" | "twoWeeks" | "oneMonth" | "threeMonths" | "sixMonths" | "oneYear" | "unlimited";
|
|
24246
|
+
/** @description Whether the resource uses this booking window instead of the one its location sets for the resource type. */
|
|
24247
|
+
enabled: boolean;
|
|
24248
|
+
/** @description How many minutes before it starts a booking of the resource has to be made, up to 30 days. 0 accepts bookings up to the start time. Required while enabled is true. */
|
|
24249
|
+
minNotice?: number;
|
|
24250
|
+
};
|
|
24195
24251
|
/** @description Brivo access group reference. */
|
|
24196
24252
|
brivoGroupRef?: number | null;
|
|
24197
24253
|
/**
|
|
@@ -24629,6 +24685,18 @@ interface components {
|
|
|
24629
24685
|
* @enum {string}
|
|
24630
24686
|
*/
|
|
24631
24687
|
bookingUnit?: "hour" | "day";
|
|
24688
|
+
/** @description How soon and how far ahead users can book this resource. While enabled is false, the resource follows the booking window its location sets for the resource type and keeps its own values for when it is enabled again. Administrators are not limited by either. */
|
|
24689
|
+
bookingWindow?: {
|
|
24690
|
+
/**
|
|
24691
|
+
* @description How far ahead users can book the resource, the same values the location takes. Required while enabled is true.
|
|
24692
|
+
* @enum {string}
|
|
24693
|
+
*/
|
|
24694
|
+
bookAhead?: "oneDay" | "twoDays" | "oneWeek" | "twoWeeks" | "oneMonth" | "threeMonths" | "sixMonths" | "oneYear" | "unlimited";
|
|
24695
|
+
/** @description Whether the resource uses this booking window instead of the one its location sets for the resource type. */
|
|
24696
|
+
enabled: boolean;
|
|
24697
|
+
/** @description How many minutes before it starts a booking of the resource has to be made, up to 30 days. 0 accepts bookings up to the start time. Required while enabled is true. */
|
|
24698
|
+
minNotice?: number;
|
|
24699
|
+
};
|
|
24632
24700
|
/** @description Brivo access group reference. */
|
|
24633
24701
|
brivoGroupRef?: number | null;
|
|
24634
24702
|
/**
|
|
@@ -27741,6 +27809,8 @@ interface operations {
|
|
|
27741
27809
|
* - **voided** — cancelled and no longer valid
|
|
27742
27810
|
*/
|
|
27743
27811
|
status?: string;
|
|
27812
|
+
/** @description Filter by whether the item is pending: not on an invoice and not part of a subscription. Pass true or false. */
|
|
27813
|
+
pending?: "true" | "false";
|
|
27744
27814
|
/** @description Filter by invoice item type. Comma-separated values, e.g. `custom,order`. */
|
|
27745
27815
|
type?: string;
|
|
27746
27816
|
};
|
|
@@ -35732,6 +35802,8 @@ interface ListInvoiceItemsQuery {
|
|
|
35732
35802
|
- **paid** — fully paid
|
|
35733
35803
|
- **voided** — cancelled and no longer valid */
|
|
35734
35804
|
status?: string;
|
|
35805
|
+
/** Filter by whether the item is pending: not on an invoice and not part of a subscription. Pass true or false. */
|
|
35806
|
+
pending?: "true" | "false";
|
|
35735
35807
|
/** Filter by invoice item type. Comma-separated values, e.g. `custom,order`. */
|
|
35736
35808
|
type?: string;
|
|
35737
35809
|
}
|
package/dist/index.js
CHANGED
|
@@ -964,7 +964,7 @@ function createBilling(client, defaults) {
|
|
|
964
964
|
/**
|
|
965
965
|
* List invoice items
|
|
966
966
|
*
|
|
967
|
-
* List invoice items filtered customer, location, type, status, or date range. Status and issue date filters match items connected to an invoice.
|
|
967
|
+
* List invoice items filtered by customer, location, type, status, pending, or date range. Status and issue date filters match items connected to an invoice. Pending items are not on an invoice and not part of a subscription.
|
|
968
968
|
*/
|
|
969
969
|
async list(query, options) {
|
|
970
970
|
return unwrap(await client.GET("/billing/invoices/v1/items", { params: { query }, signal: options?.signal }), "GET /billing/invoices/v1/items");
|
|
@@ -972,7 +972,7 @@ function createBilling(client, defaults) {
|
|
|
972
972
|
/**
|
|
973
973
|
* List invoice items — iterates every item across all pages.
|
|
974
974
|
*
|
|
975
|
-
* List invoice items filtered customer, location, type, status, or date range. Status and issue date filters match items connected to an invoice.
|
|
975
|
+
* List invoice items filtered by customer, location, type, status, pending, or date range. Status and issue date filters match items connected to an invoice. Pending items are not on an invoice and not part of a subscription.
|
|
976
976
|
*/
|
|
977
977
|
iterate(query, options) {
|
|
978
978
|
return paginate(
|