@izak0s/spacebring-api 10.0.0 → 10.2.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.map +1 -1
- package/dist/index.d.cts +12 -10
- package/dist/index.d.ts +12 -10
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -8900,6 +8900,8 @@ interface components {
|
|
|
8900
8900
|
exclusiveLocations: string[];
|
|
8901
8901
|
/** @description Whether the admin can manage the feed. */
|
|
8902
8902
|
feed: boolean;
|
|
8903
|
+
/** @description Whether the admin can manage resources and their bookings. */
|
|
8904
|
+
resources?: boolean;
|
|
8903
8905
|
/** @description Whether the admin can change network settings. */
|
|
8904
8906
|
settings: boolean;
|
|
8905
8907
|
/** @description Whether the admin can manage the shop. */
|
|
@@ -9201,7 +9203,7 @@ interface components {
|
|
|
9201
9203
|
* @description Unique identifier of the resource.
|
|
9202
9204
|
*/
|
|
9203
9205
|
id: string;
|
|
9204
|
-
/** @description Public URL of the resource image. */
|
|
9206
|
+
/** @description Public URL of the resource's cover, the first image in media. */
|
|
9205
9207
|
imageUrl?: string;
|
|
9206
9208
|
/** @description Kisi access group reference. */
|
|
9207
9209
|
kisiGroupRef?: number | null;
|
|
@@ -9212,7 +9214,7 @@ interface components {
|
|
|
9212
9214
|
* @description ID of the location.
|
|
9213
9215
|
*/
|
|
9214
9216
|
locationRef: string;
|
|
9215
|
-
/** @description Images
|
|
9217
|
+
/** @description Images of the resource in display order, the first one being its cover. */
|
|
9216
9218
|
media: {
|
|
9217
9219
|
/** @description Storage key of the image. */
|
|
9218
9220
|
key: string;
|
|
@@ -9832,7 +9834,7 @@ interface components {
|
|
|
9832
9834
|
* @description Unique identifier of the resource.
|
|
9833
9835
|
*/
|
|
9834
9836
|
id: string;
|
|
9835
|
-
/** @description Public URL of the resource image. */
|
|
9837
|
+
/** @description Public URL of the resource's cover, the first image in media. */
|
|
9836
9838
|
imageUrl?: string;
|
|
9837
9839
|
/** @description Kisi access group reference. */
|
|
9838
9840
|
kisiGroupRef?: number | null;
|
|
@@ -9843,7 +9845,7 @@ interface components {
|
|
|
9843
9845
|
* @description ID of the location.
|
|
9844
9846
|
*/
|
|
9845
9847
|
locationRef: string;
|
|
9846
|
-
/** @description Images
|
|
9848
|
+
/** @description Images of the resource in display order, the first one being its cover. */
|
|
9847
9849
|
media: {
|
|
9848
9850
|
/** @description Storage key of the image. */
|
|
9849
9851
|
key: string;
|
|
@@ -23239,7 +23241,7 @@ interface components {
|
|
|
23239
23241
|
* @description ID of the location.
|
|
23240
23242
|
*/
|
|
23241
23243
|
locationRef: string;
|
|
23242
|
-
/** @description Images
|
|
23244
|
+
/** @description Images of the resource in display order, the first one being its cover. On update the list replaces the current images, and an empty list removes them all. */
|
|
23243
23245
|
media?: {
|
|
23244
23246
|
/** @description Storage key of the uploaded image. */
|
|
23245
23247
|
key: string;
|
|
@@ -23650,7 +23652,7 @@ interface components {
|
|
|
23650
23652
|
} | null;
|
|
23651
23653
|
/** @description Kisi access group reference. */
|
|
23652
23654
|
kisiGroupRef?: number | null;
|
|
23653
|
-
/** @description Images
|
|
23655
|
+
/** @description Images of the resource in display order, the first one being its cover. On update the list replaces the current images, and an empty list removes them all. */
|
|
23654
23656
|
media?: {
|
|
23655
23657
|
/** @description Storage key of the uploaded image. */
|
|
23656
23658
|
key: string;
|
|
@@ -30724,7 +30726,7 @@ interface operations {
|
|
|
30724
30726
|
membershipRefOwner?: string;
|
|
30725
30727
|
/** @description Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
|
|
30726
30728
|
nextPageToken?: string;
|
|
30727
|
-
/** @description Sort order as `<field>:<direction>`, where field is startDate, endDate or
|
|
30729
|
+
/** @description Sort order as `<field>:<direction>`, where field is startDate, endDate, createDate or deleteDate and direction is asc or desc. deleteDate lists only cancelled bookings, by when they were cancelled, and cannot be combined with singleBookings. Defaults to startDate:asc when a startDate filter is given, endDate:asc when only an endDate filter is given, and createDate:desc otherwise. */
|
|
30728
30730
|
order?: string;
|
|
30729
30731
|
/** @description UUID of the resource whose bookings to list. Required when both locationRef and userRef are omitted. */
|
|
30730
30732
|
resourceRef?: string;
|
|
@@ -30732,7 +30734,7 @@ interface operations {
|
|
|
30732
30734
|
singleBookings?: string;
|
|
30733
30735
|
/** @description Deprecated. Use bracket-notation fields startDate[gt], startDate[gte], startDate[lt], startDate[lte] instead. */
|
|
30734
30736
|
startDate?: string;
|
|
30735
|
-
/** @description Comma-separated list of booking statuses to filter by, e.g. `confirmed,canceled`. Valid values: tentative, confirmed, canceled. Defaults to tentative, confirmed. */
|
|
30737
|
+
/** @description Comma-separated list of booking statuses to filter by, e.g. `confirmed,canceled`. Valid values: tentative, confirmed, canceled. Defaults to tentative, confirmed, or to canceled when ordering by deleteDate. */
|
|
30736
30738
|
status?: string;
|
|
30737
30739
|
/** @description Comma-separated list of resource types to filter by, e.g. `room,hotDesk`. Valid values: hotDesk, dedicatedDesk, office, parkingLot, room, conferenceRoom, eventSpace, meetingRoom, phoneBooth, studio, equipment, station. Defaults to all bookable types. */
|
|
30738
30740
|
type?: string;
|
|
@@ -33528,7 +33530,7 @@ interface GetBookingsQuery {
|
|
|
33528
33530
|
membershipRefOwner?: string;
|
|
33529
33531
|
/** Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
|
|
33530
33532
|
nextPageToken?: string;
|
|
33531
|
-
/** Sort order as `:`, where field is startDate, endDate or
|
|
33533
|
+
/** Sort order as `:`, where field is startDate, endDate, createDate or deleteDate and direction is asc or desc. deleteDate lists only cancelled bookings, by when they were cancelled, and cannot be combined with singleBookings. Defaults to startDate:asc when a startDate filter is given, endDate:asc when only an endDate filter is given, and createDate:desc otherwise. */
|
|
33532
33534
|
order?: string;
|
|
33533
33535
|
/** UUID of the resource whose bookings to list. Required when both locationRef and userRef are omitted. */
|
|
33534
33536
|
resourceRef?: string;
|
|
@@ -33536,7 +33538,7 @@ interface GetBookingsQuery {
|
|
|
33536
33538
|
singleBookings?: string;
|
|
33537
33539
|
/** @deprecated Use bracket-notation fields startDate[gt], startDate[gte], startDate[lt], startDate[lte] instead. */
|
|
33538
33540
|
startDate?: string;
|
|
33539
|
-
/** Comma-separated list of booking statuses to filter by, e.g. `confirmed,canceled`. Valid values: tentative, confirmed, canceled. Defaults to tentative, confirmed. */
|
|
33541
|
+
/** Comma-separated list of booking statuses to filter by, e.g. `confirmed,canceled`. Valid values: tentative, confirmed, canceled. Defaults to tentative, confirmed, or to canceled when ordering by deleteDate. */
|
|
33540
33542
|
status?: string;
|
|
33541
33543
|
/** Comma-separated list of resource types to filter by, e.g. `room,hotDesk`. Valid values: hotDesk, dedicatedDesk, office, parkingLot, room, conferenceRoom, eventSpace, meetingRoom, phoneBooth, studio, equipment, station. Defaults to all bookable types. */
|
|
33542
33544
|
type?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -8900,6 +8900,8 @@ interface components {
|
|
|
8900
8900
|
exclusiveLocations: string[];
|
|
8901
8901
|
/** @description Whether the admin can manage the feed. */
|
|
8902
8902
|
feed: boolean;
|
|
8903
|
+
/** @description Whether the admin can manage resources and their bookings. */
|
|
8904
|
+
resources?: boolean;
|
|
8903
8905
|
/** @description Whether the admin can change network settings. */
|
|
8904
8906
|
settings: boolean;
|
|
8905
8907
|
/** @description Whether the admin can manage the shop. */
|
|
@@ -9201,7 +9203,7 @@ interface components {
|
|
|
9201
9203
|
* @description Unique identifier of the resource.
|
|
9202
9204
|
*/
|
|
9203
9205
|
id: string;
|
|
9204
|
-
/** @description Public URL of the resource image. */
|
|
9206
|
+
/** @description Public URL of the resource's cover, the first image in media. */
|
|
9205
9207
|
imageUrl?: string;
|
|
9206
9208
|
/** @description Kisi access group reference. */
|
|
9207
9209
|
kisiGroupRef?: number | null;
|
|
@@ -9212,7 +9214,7 @@ interface components {
|
|
|
9212
9214
|
* @description ID of the location.
|
|
9213
9215
|
*/
|
|
9214
9216
|
locationRef: string;
|
|
9215
|
-
/** @description Images
|
|
9217
|
+
/** @description Images of the resource in display order, the first one being its cover. */
|
|
9216
9218
|
media: {
|
|
9217
9219
|
/** @description Storage key of the image. */
|
|
9218
9220
|
key: string;
|
|
@@ -9832,7 +9834,7 @@ interface components {
|
|
|
9832
9834
|
* @description Unique identifier of the resource.
|
|
9833
9835
|
*/
|
|
9834
9836
|
id: string;
|
|
9835
|
-
/** @description Public URL of the resource image. */
|
|
9837
|
+
/** @description Public URL of the resource's cover, the first image in media. */
|
|
9836
9838
|
imageUrl?: string;
|
|
9837
9839
|
/** @description Kisi access group reference. */
|
|
9838
9840
|
kisiGroupRef?: number | null;
|
|
@@ -9843,7 +9845,7 @@ interface components {
|
|
|
9843
9845
|
* @description ID of the location.
|
|
9844
9846
|
*/
|
|
9845
9847
|
locationRef: string;
|
|
9846
|
-
/** @description Images
|
|
9848
|
+
/** @description Images of the resource in display order, the first one being its cover. */
|
|
9847
9849
|
media: {
|
|
9848
9850
|
/** @description Storage key of the image. */
|
|
9849
9851
|
key: string;
|
|
@@ -23239,7 +23241,7 @@ interface components {
|
|
|
23239
23241
|
* @description ID of the location.
|
|
23240
23242
|
*/
|
|
23241
23243
|
locationRef: string;
|
|
23242
|
-
/** @description Images
|
|
23244
|
+
/** @description Images of the resource in display order, the first one being its cover. On update the list replaces the current images, and an empty list removes them all. */
|
|
23243
23245
|
media?: {
|
|
23244
23246
|
/** @description Storage key of the uploaded image. */
|
|
23245
23247
|
key: string;
|
|
@@ -23650,7 +23652,7 @@ interface components {
|
|
|
23650
23652
|
} | null;
|
|
23651
23653
|
/** @description Kisi access group reference. */
|
|
23652
23654
|
kisiGroupRef?: number | null;
|
|
23653
|
-
/** @description Images
|
|
23655
|
+
/** @description Images of the resource in display order, the first one being its cover. On update the list replaces the current images, and an empty list removes them all. */
|
|
23654
23656
|
media?: {
|
|
23655
23657
|
/** @description Storage key of the uploaded image. */
|
|
23656
23658
|
key: string;
|
|
@@ -30724,7 +30726,7 @@ interface operations {
|
|
|
30724
30726
|
membershipRefOwner?: string;
|
|
30725
30727
|
/** @description Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
|
|
30726
30728
|
nextPageToken?: string;
|
|
30727
|
-
/** @description Sort order as `<field>:<direction>`, where field is startDate, endDate or
|
|
30729
|
+
/** @description Sort order as `<field>:<direction>`, where field is startDate, endDate, createDate or deleteDate and direction is asc or desc. deleteDate lists only cancelled bookings, by when they were cancelled, and cannot be combined with singleBookings. Defaults to startDate:asc when a startDate filter is given, endDate:asc when only an endDate filter is given, and createDate:desc otherwise. */
|
|
30728
30730
|
order?: string;
|
|
30729
30731
|
/** @description UUID of the resource whose bookings to list. Required when both locationRef and userRef are omitted. */
|
|
30730
30732
|
resourceRef?: string;
|
|
@@ -30732,7 +30734,7 @@ interface operations {
|
|
|
30732
30734
|
singleBookings?: string;
|
|
30733
30735
|
/** @description Deprecated. Use bracket-notation fields startDate[gt], startDate[gte], startDate[lt], startDate[lte] instead. */
|
|
30734
30736
|
startDate?: string;
|
|
30735
|
-
/** @description Comma-separated list of booking statuses to filter by, e.g. `confirmed,canceled`. Valid values: tentative, confirmed, canceled. Defaults to tentative, confirmed. */
|
|
30737
|
+
/** @description Comma-separated list of booking statuses to filter by, e.g. `confirmed,canceled`. Valid values: tentative, confirmed, canceled. Defaults to tentative, confirmed, or to canceled when ordering by deleteDate. */
|
|
30736
30738
|
status?: string;
|
|
30737
30739
|
/** @description Comma-separated list of resource types to filter by, e.g. `room,hotDesk`. Valid values: hotDesk, dedicatedDesk, office, parkingLot, room, conferenceRoom, eventSpace, meetingRoom, phoneBooth, studio, equipment, station. Defaults to all bookable types. */
|
|
30738
30740
|
type?: string;
|
|
@@ -33528,7 +33530,7 @@ interface GetBookingsQuery {
|
|
|
33528
33530
|
membershipRefOwner?: string;
|
|
33529
33531
|
/** Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
|
|
33530
33532
|
nextPageToken?: string;
|
|
33531
|
-
/** Sort order as `:`, where field is startDate, endDate or
|
|
33533
|
+
/** Sort order as `:`, where field is startDate, endDate, createDate or deleteDate and direction is asc or desc. deleteDate lists only cancelled bookings, by when they were cancelled, and cannot be combined with singleBookings. Defaults to startDate:asc when a startDate filter is given, endDate:asc when only an endDate filter is given, and createDate:desc otherwise. */
|
|
33532
33534
|
order?: string;
|
|
33533
33535
|
/** UUID of the resource whose bookings to list. Required when both locationRef and userRef are omitted. */
|
|
33534
33536
|
resourceRef?: string;
|
|
@@ -33536,7 +33538,7 @@ interface GetBookingsQuery {
|
|
|
33536
33538
|
singleBookings?: string;
|
|
33537
33539
|
/** @deprecated Use bracket-notation fields startDate[gt], startDate[gte], startDate[lt], startDate[lte] instead. */
|
|
33538
33540
|
startDate?: string;
|
|
33539
|
-
/** Comma-separated list of booking statuses to filter by, e.g. `confirmed,canceled`. Valid values: tentative, confirmed, canceled. Defaults to tentative, confirmed. */
|
|
33541
|
+
/** Comma-separated list of booking statuses to filter by, e.g. `confirmed,canceled`. Valid values: tentative, confirmed, canceled. Defaults to tentative, confirmed, or to canceled when ordering by deleteDate. */
|
|
33540
33542
|
status?: string;
|
|
33541
33543
|
/** Comma-separated list of resource types to filter by, e.g. `room,hotDesk`. Valid values: hotDesk, dedicatedDesk, office, parkingLot, room, conferenceRoom, eventSpace, meetingRoom, phoneBooth, studio, equipment, station. Defaults to all bookable types. */
|
|
33542
33544
|
type?: string;
|