@izak0s/spacebring-api 10.4.0 → 10.5.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.d.cts CHANGED
@@ -5163,6 +5163,46 @@ interface components {
5163
5163
  };
5164
5164
  /** @description ISO currency code. Reflects the alt currency when present, otherwise the base currency. */
5165
5165
  currencyCode: string;
5166
+ /** @description Customer the item is billed to. */
5167
+ customer?: {
5168
+ /**
5169
+ * Format: uuid
5170
+ * @description ID of the company or membership.
5171
+ */
5172
+ id: string;
5173
+ /** @description Company logo. */
5174
+ logo?: {
5175
+ key: string;
5176
+ url: string;
5177
+ };
5178
+ /** @description Company name. */
5179
+ title?: string;
5180
+ /**
5181
+ * @description Whether the customer is a company or a user.
5182
+ * @enum {string}
5183
+ */
5184
+ type: "company" | "user";
5185
+ /** @description User details for membership customers. */
5186
+ user?: {
5187
+ /** @description User bio. */
5188
+ about?: string | null;
5189
+ /** @description User email address. */
5190
+ email?: string | null;
5191
+ /**
5192
+ * Format: uuid
5193
+ * @description User ID.
5194
+ */
5195
+ id: string;
5196
+ /** @description First name. */
5197
+ name?: string | null;
5198
+ /** @description Phone number. */
5199
+ phoneNumber?: string | null;
5200
+ /** @description Profile photo URL. */
5201
+ photoUrl?: string | null;
5202
+ /** @description Last name. */
5203
+ surname?: string | null;
5204
+ };
5205
+ };
5166
5206
  /**
5167
5207
  * Format: date-time
5168
5208
  * @description ISO timestamp of when the item was deleted.
@@ -5519,6 +5559,46 @@ interface components {
5519
5559
  };
5520
5560
  /** @description ISO currency code. Reflects the alt currency when present, otherwise the base currency. */
5521
5561
  currencyCode: string;
5562
+ /** @description Customer the item is billed to. */
5563
+ customer?: {
5564
+ /**
5565
+ * Format: uuid
5566
+ * @description ID of the company or membership.
5567
+ */
5568
+ id: string;
5569
+ /** @description Company logo. */
5570
+ logo?: {
5571
+ key: string;
5572
+ url: string;
5573
+ };
5574
+ /** @description Company name. */
5575
+ title?: string;
5576
+ /**
5577
+ * @description Whether the customer is a company or a user.
5578
+ * @enum {string}
5579
+ */
5580
+ type: "company" | "user";
5581
+ /** @description User details for membership customers. */
5582
+ user?: {
5583
+ /** @description User bio. */
5584
+ about?: string | null;
5585
+ /** @description User email address. */
5586
+ email?: string | null;
5587
+ /**
5588
+ * Format: uuid
5589
+ * @description User ID.
5590
+ */
5591
+ id: string;
5592
+ /** @description First name. */
5593
+ name?: string | null;
5594
+ /** @description Phone number. */
5595
+ phoneNumber?: string | null;
5596
+ /** @description Profile photo URL. */
5597
+ photoUrl?: string | null;
5598
+ /** @description Last name. */
5599
+ surname?: string | null;
5600
+ };
5601
+ };
5522
5602
  /**
5523
5603
  * Format: date-time
5524
5604
  * @description ISO timestamp of when the item was deleted.
@@ -6751,7 +6831,10 @@ interface components {
6751
6831
  locationRef?: string;
6752
6832
  metadata?: components["schemas"]["metadata"];
6753
6833
  notes?: string;
6754
- /** @enum {string} */
6834
+ /**
6835
+ * @description Whether the user administers the membership's location. It's read-only, as administrators are managed on the Administrators page.
6836
+ * @enum {string}
6837
+ */
6755
6838
  role?: "member" | "admin";
6756
6839
  /** @enum {string} */
6757
6840
  status?: "requested" | "approved";
@@ -22873,8 +22956,6 @@ interface components {
22873
22956
  legalName?: string;
22874
22957
  /** @description The tax id of the membership to create. */
22875
22958
  taxId?: string;
22876
- /** @enum {string} */
22877
- role: "admin" | "member";
22878
22959
  metadata?: components["schemas"]["metadata"];
22879
22960
  notes?: string;
22880
22961
  /**
@@ -25016,7 +25097,7 @@ interface components {
25016
25097
  recurrence?: string[];
25017
25098
  /**
25018
25099
  * Format: uuid
25019
- * @description ID of the resource to move the booking to. The target must belong to the same location, be of an interchangeable type, and sell the booking's payment method at the same price. Not supported for repeating bookings.
25100
+ * @description ID of the resource to move the booking to. The target must belong to the same location, be of an interchangeable type, and accept the booking's payment method. A booking paid by card or externally can't move to a resource with a lower price, and a move to a pricier one charges the difference as a separate transaction. Not supported for repeating bookings.
25020
25101
  */
25021
25102
  resourceRef?: string;
25022
25103
  /** @description Number of seats to reserve. Supported for desk and office resources. */
@@ -28782,8 +28863,6 @@ interface operations {
28782
28863
  };
28783
28864
  legalName?: string;
28784
28865
  metadata?: components["schemas"]["metadata"];
28785
- /** @enum {string} */
28786
- role?: "admin" | "member";
28787
28866
  taxId?: string;
28788
28867
  };
28789
28868
  };
package/dist/index.d.ts CHANGED
@@ -5163,6 +5163,46 @@ interface components {
5163
5163
  };
5164
5164
  /** @description ISO currency code. Reflects the alt currency when present, otherwise the base currency. */
5165
5165
  currencyCode: string;
5166
+ /** @description Customer the item is billed to. */
5167
+ customer?: {
5168
+ /**
5169
+ * Format: uuid
5170
+ * @description ID of the company or membership.
5171
+ */
5172
+ id: string;
5173
+ /** @description Company logo. */
5174
+ logo?: {
5175
+ key: string;
5176
+ url: string;
5177
+ };
5178
+ /** @description Company name. */
5179
+ title?: string;
5180
+ /**
5181
+ * @description Whether the customer is a company or a user.
5182
+ * @enum {string}
5183
+ */
5184
+ type: "company" | "user";
5185
+ /** @description User details for membership customers. */
5186
+ user?: {
5187
+ /** @description User bio. */
5188
+ about?: string | null;
5189
+ /** @description User email address. */
5190
+ email?: string | null;
5191
+ /**
5192
+ * Format: uuid
5193
+ * @description User ID.
5194
+ */
5195
+ id: string;
5196
+ /** @description First name. */
5197
+ name?: string | null;
5198
+ /** @description Phone number. */
5199
+ phoneNumber?: string | null;
5200
+ /** @description Profile photo URL. */
5201
+ photoUrl?: string | null;
5202
+ /** @description Last name. */
5203
+ surname?: string | null;
5204
+ };
5205
+ };
5166
5206
  /**
5167
5207
  * Format: date-time
5168
5208
  * @description ISO timestamp of when the item was deleted.
@@ -5519,6 +5559,46 @@ interface components {
5519
5559
  };
5520
5560
  /** @description ISO currency code. Reflects the alt currency when present, otherwise the base currency. */
5521
5561
  currencyCode: string;
5562
+ /** @description Customer the item is billed to. */
5563
+ customer?: {
5564
+ /**
5565
+ * Format: uuid
5566
+ * @description ID of the company or membership.
5567
+ */
5568
+ id: string;
5569
+ /** @description Company logo. */
5570
+ logo?: {
5571
+ key: string;
5572
+ url: string;
5573
+ };
5574
+ /** @description Company name. */
5575
+ title?: string;
5576
+ /**
5577
+ * @description Whether the customer is a company or a user.
5578
+ * @enum {string}
5579
+ */
5580
+ type: "company" | "user";
5581
+ /** @description User details for membership customers. */
5582
+ user?: {
5583
+ /** @description User bio. */
5584
+ about?: string | null;
5585
+ /** @description User email address. */
5586
+ email?: string | null;
5587
+ /**
5588
+ * Format: uuid
5589
+ * @description User ID.
5590
+ */
5591
+ id: string;
5592
+ /** @description First name. */
5593
+ name?: string | null;
5594
+ /** @description Phone number. */
5595
+ phoneNumber?: string | null;
5596
+ /** @description Profile photo URL. */
5597
+ photoUrl?: string | null;
5598
+ /** @description Last name. */
5599
+ surname?: string | null;
5600
+ };
5601
+ };
5522
5602
  /**
5523
5603
  * Format: date-time
5524
5604
  * @description ISO timestamp of when the item was deleted.
@@ -6751,7 +6831,10 @@ interface components {
6751
6831
  locationRef?: string;
6752
6832
  metadata?: components["schemas"]["metadata"];
6753
6833
  notes?: string;
6754
- /** @enum {string} */
6834
+ /**
6835
+ * @description Whether the user administers the membership's location. It's read-only, as administrators are managed on the Administrators page.
6836
+ * @enum {string}
6837
+ */
6755
6838
  role?: "member" | "admin";
6756
6839
  /** @enum {string} */
6757
6840
  status?: "requested" | "approved";
@@ -22873,8 +22956,6 @@ interface components {
22873
22956
  legalName?: string;
22874
22957
  /** @description The tax id of the membership to create. */
22875
22958
  taxId?: string;
22876
- /** @enum {string} */
22877
- role: "admin" | "member";
22878
22959
  metadata?: components["schemas"]["metadata"];
22879
22960
  notes?: string;
22880
22961
  /**
@@ -25016,7 +25097,7 @@ interface components {
25016
25097
  recurrence?: string[];
25017
25098
  /**
25018
25099
  * Format: uuid
25019
- * @description ID of the resource to move the booking to. The target must belong to the same location, be of an interchangeable type, and sell the booking's payment method at the same price. Not supported for repeating bookings.
25100
+ * @description ID of the resource to move the booking to. The target must belong to the same location, be of an interchangeable type, and accept the booking's payment method. A booking paid by card or externally can't move to a resource with a lower price, and a move to a pricier one charges the difference as a separate transaction. Not supported for repeating bookings.
25020
25101
  */
25021
25102
  resourceRef?: string;
25022
25103
  /** @description Number of seats to reserve. Supported for desk and office resources. */
@@ -28782,8 +28863,6 @@ interface operations {
28782
28863
  };
28783
28864
  legalName?: string;
28784
28865
  metadata?: components["schemas"]["metadata"];
28785
- /** @enum {string} */
28786
- role?: "admin" | "member";
28787
28866
  taxId?: string;
28788
28867
  };
28789
28868
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@izak0s/spacebring-api",
3
- "version": "10.4.0",
3
+ "version": "10.5.0",
4
4
  "description": "Community-maintained TypeScript client (SDK) for the Spacebring (formerly andcards) coworking space management API",
5
5
  "license": "MIT",
6
6
  "author": "izak0s",