@izak0s/spacebring-api 16.2.0 → 16.4.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 +7 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +44 -34
- package/dist/index.d.ts +44 -34
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -778,7 +778,7 @@ function createBilling(client, defaults) {
|
|
|
778
778
|
/**
|
|
779
779
|
* Retrieve credit notes
|
|
780
780
|
*
|
|
781
|
-
* Retrieve
|
|
781
|
+
* Retrieve the credit notes of an invoice, a location, or the whole network when neither invoiceRef nor locationRef is set. An administrator limited to some locations needs invoiceRef or locationRef.
|
|
782
782
|
*/
|
|
783
783
|
async list(query, options) {
|
|
784
784
|
return unwrap(await client.GET("/billing/credit_notes/v1", { params: { query }, signal: options?.signal }), "GET /billing/credit_notes/v1");
|
|
@@ -786,7 +786,7 @@ function createBilling(client, defaults) {
|
|
|
786
786
|
/**
|
|
787
787
|
* Retrieve credit notes — iterates every item across all pages.
|
|
788
788
|
*
|
|
789
|
-
* Retrieve
|
|
789
|
+
* Retrieve the credit notes of an invoice, a location, or the whole network when neither invoiceRef nor locationRef is set. An administrator limited to some locations needs invoiceRef or locationRef.
|
|
790
790
|
*/
|
|
791
791
|
iterate(query, options) {
|
|
792
792
|
return paginate(
|
|
@@ -847,7 +847,7 @@ function createBilling(client, defaults) {
|
|
|
847
847
|
/**
|
|
848
848
|
* Retrieve invoices
|
|
849
849
|
*
|
|
850
|
-
* Retrieve
|
|
850
|
+
* Retrieve the invoices of a customer, a location, or the whole network when neither customerRef nor locationRef is set. An administrator limited to some locations needs customerRef or locationRef.
|
|
851
851
|
*/
|
|
852
852
|
async list(query, options) {
|
|
853
853
|
return unwrap(await client.GET("/billing/invoices/v1", { params: { query }, signal: options?.signal }), "GET /billing/invoices/v1");
|
|
@@ -855,7 +855,7 @@ function createBilling(client, defaults) {
|
|
|
855
855
|
/**
|
|
856
856
|
* Retrieve invoices — iterates every item across all pages.
|
|
857
857
|
*
|
|
858
|
-
* Retrieve
|
|
858
|
+
* Retrieve the invoices of a customer, a location, or the whole network when neither customerRef nor locationRef is set. An administrator limited to some locations needs customerRef or locationRef.
|
|
859
859
|
*/
|
|
860
860
|
iterate(query, options) {
|
|
861
861
|
return paginate(
|
|
@@ -985,7 +985,7 @@ function createBilling(client, defaults) {
|
|
|
985
985
|
/**
|
|
986
986
|
* List invoice items
|
|
987
987
|
*
|
|
988
|
-
* List invoice items filtered by customer, location, invoice, type, status, pending, or date range. Pass invoiceRef for the items of one invoice; they page like the rest of the list. The createDate filter matches when the item was created; the status and issueDate filters match the invoice the item is on, so they return only items connected to an invoice. Pending items are not on an invoice and not part of a subscription: pass pending=true with customerRef for one customer's pending items, or with locationRef for every pending item at a location.
|
|
988
|
+
* List invoice items filtered by customer, location, invoice, type, status, pending, or date range. Pass invoiceRef for the items of one invoice; they page like the rest of the list. The createDate filter matches when the item was created; the status and issueDate filters match the invoice the item is on, so they return only items connected to an invoice. Pending items are not on an invoice and not part of a subscription: pass pending=true with customerRef for one customer's pending items, or with locationRef for every pending item at a location. Without customerRef, invoiceRef or locationRef, lists the items of the whole network; an administrator limited to some locations needs one of them.
|
|
989
989
|
*/
|
|
990
990
|
async list(query, options) {
|
|
991
991
|
return unwrap(await client.GET("/billing/invoices/v1/items", { params: { query }, signal: options?.signal }), "GET /billing/invoices/v1/items");
|
|
@@ -993,7 +993,7 @@ function createBilling(client, defaults) {
|
|
|
993
993
|
/**
|
|
994
994
|
* List invoice items — iterates every item across all pages.
|
|
995
995
|
*
|
|
996
|
-
* List invoice items filtered by customer, location, invoice, type, status, pending, or date range. Pass invoiceRef for the items of one invoice; they page like the rest of the list. The createDate filter matches when the item was created; the status and issueDate filters match the invoice the item is on, so they return only items connected to an invoice. Pending items are not on an invoice and not part of a subscription: pass pending=true with customerRef for one customer's pending items, or with locationRef for every pending item at a location.
|
|
996
|
+
* List invoice items filtered by customer, location, invoice, type, status, pending, or date range. Pass invoiceRef for the items of one invoice; they page like the rest of the list. The createDate filter matches when the item was created; the status and issueDate filters match the invoice the item is on, so they return only items connected to an invoice. Pending items are not on an invoice and not part of a subscription: pass pending=true with customerRef for one customer's pending items, or with locationRef for every pending item at a location. Without customerRef, invoiceRef or locationRef, lists the items of the whole network; an administrator limited to some locations needs one of them.
|
|
997
997
|
*/
|
|
998
998
|
iterate(query, options) {
|
|
999
999
|
return paginate(
|
|
@@ -1106,7 +1106,7 @@ function createCheckins(client, defaults) {
|
|
|
1106
1106
|
/**
|
|
1107
1107
|
* Check in
|
|
1108
1108
|
*
|
|
1109
|
-
* Record an arrival for a booking, an event ticket, a visit, or a member's subscription. Identify what to check in with its check-in id, with the location and a six-digit code, or with the location and a customer ref to check a member in without a code. With bearer token authentication, the user must be an administrator of the location.
|
|
1109
|
+
* Record an arrival for a booking, an event ticket, a visit, or a member's subscription. Identify what to check in with its check-in id, with the location and a six-digit code, or with the location and a customer ref to check a member in without a code. Add a past check-in date to a customer ref to record an arrival nobody checked the member in for: the member stays checked in until they check out, or, with a check-out date too, the check-in is created as checked out, without the events and webhooks of a live arrival. With bearer token authentication, the user must be an administrator of the location.
|
|
1110
1110
|
*/
|
|
1111
1111
|
async checkIn(body, options) {
|
|
1112
1112
|
return unwrapProp(await client.POST("/check_ins/v1/checkin", { body, signal: options?.signal }), "checkIn", "POST /check_ins/v1/checkin");
|