@izak0s/spacebring-api 11.3.0 → 12.0.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.ts CHANGED
@@ -2928,7 +2928,7 @@ interface paths {
2928
2928
  head?: never;
2929
2929
  /**
2930
2930
  * Update a money transaction
2931
- * @description Approve or cancel a pending money transaction paid externally. <h3>OAuth</h3>Required scopes: <code>transactions</code>
2931
+ * @description Change the internal note of a money transaction, or approve or cancel a pending money transaction paid externally. A user needs the Billing permission in the transaction's location. <h3>OAuth</h3>Required scopes: <code>transactions</code>
2932
2932
  */
2933
2933
  patch: operations["patchMoneyTransaction"];
2934
2934
  trace?: never;
@@ -3343,6 +3343,7 @@ interface components {
3343
3343
  * @enum {string}
3344
3344
  */
3345
3345
  buttonLabel: "apply" | "buy" | "contact" | "get" | "learnMore";
3346
+ /** @description Confirmation email settings for applications. */
3346
3347
  confirmationEmail: {
3347
3348
  /** @description Whether a confirmation email is sent after applying. */
3348
3349
  enabled: boolean;
@@ -3371,7 +3372,7 @@ interface components {
3371
3372
  * @description Unique identifier of the benefit.
3372
3373
  */
3373
3374
  id: string;
3374
- /** @description Auto-detected language of the description. */
3375
+ /** @description Auto-detected language of the description. Empty when there is no description. */
3375
3376
  locale: string;
3376
3377
  /**
3377
3378
  * Format: uuid
@@ -3423,6 +3424,7 @@ interface components {
3423
3424
  * @enum {string}
3424
3425
  */
3425
3426
  buttonLabel: "apply" | "buy" | "contact" | "get" | "learnMore";
3427
+ /** @description Confirmation email settings for applications. */
3426
3428
  confirmationEmail: {
3427
3429
  /** @description Whether a confirmation email is sent after applying. */
3428
3430
  enabled: boolean;
@@ -3451,7 +3453,7 @@ interface components {
3451
3453
  * @description Unique identifier of the benefit.
3452
3454
  */
3453
3455
  id: string;
3454
- /** @description Auto-detected language of the description. */
3456
+ /** @description Auto-detected language of the description. Empty when there is no description. */
3455
3457
  locale: string;
3456
3458
  /**
3457
3459
  * Format: uuid
@@ -3500,6 +3502,7 @@ interface components {
3500
3502
  * @enum {string}
3501
3503
  */
3502
3504
  buttonLabel: "apply" | "buy" | "contact" | "get" | "learnMore";
3505
+ /** @description Confirmation email settings for applications. */
3503
3506
  confirmationEmail: {
3504
3507
  /** @description Whether a confirmation email is sent after applying. */
3505
3508
  enabled: boolean;
@@ -3528,7 +3531,7 @@ interface components {
3528
3531
  * @description Unique identifier of the benefit.
3529
3532
  */
3530
3533
  id: string;
3531
- /** @description Auto-detected language of the description. */
3534
+ /** @description Auto-detected language of the description. Empty when there is no description. */
3532
3535
  locale: string;
3533
3536
  /**
3534
3537
  * Format: uuid
@@ -7859,6 +7862,11 @@ interface components {
7859
7862
  * @description ID of the ticket's check-in in the check-ins service. Present when check-in is enabled for the event.
7860
7863
  */
7861
7864
  checkInRef?: string;
7865
+ /**
7866
+ * Format: date-time
7867
+ * @description ISO timestamp of when the attendee last checked out. Cleared when they check in again.
7868
+ */
7869
+ checkOutDate?: string;
7862
7870
  /** @description Six-digit code the attendee enters on the Reception app to check in. Visible to the ticket owner and admins when check-in is enabled for the event. */
7863
7871
  code?: string;
7864
7872
  /** @description Note the attendee left when purchasing the ticket. Visible to the ticket owner and location admins only. */
@@ -8321,7 +8329,7 @@ interface components {
8321
8329
  };
8322
8330
  post: {
8323
8331
  /** @description Number of comments on the post. */
8324
- comments: number;
8332
+ comments?: number | null;
8325
8333
  /**
8326
8334
  * Format: date-time
8327
8335
  * @description ISO timestamp of when the post was created.
@@ -8340,7 +8348,7 @@ interface components {
8340
8348
  /** @description Whether the current user has liked the post. */
8341
8349
  liked?: boolean;
8342
8350
  /** @description Number of likes on the post. */
8343
- likes: number;
8351
+ likes?: number | null;
8344
8352
  /** @description Detected language locale of the post text. */
8345
8353
  locale?: string;
8346
8354
  /**
@@ -8351,20 +8359,20 @@ interface components {
8351
8359
  /** @description Media files attached to the post. */
8352
8360
  media: {
8353
8361
  /** @description Image height in pixels. */
8354
- height: number;
8362
+ height?: number | null;
8355
8363
  /**
8356
8364
  * Format: uuid
8357
8365
  * @description Unique identifier of the media item.
8358
8366
  */
8359
- id: string;
8367
+ id?: string | null;
8360
8368
  /** @description Storage key of the media file. */
8361
8369
  key: string;
8362
8370
  /** @description MIME type of the media file. */
8363
- mime: string;
8371
+ mime?: string | null;
8364
8372
  /** @description Public URL of the media file. */
8365
- url: string;
8373
+ url?: string | null;
8366
8374
  /** @description Image width in pixels. */
8367
- width: number;
8375
+ width?: number | null;
8368
8376
  }[];
8369
8377
  /** @description Membership of the post author. */
8370
8378
  membership: {
@@ -8372,7 +8380,7 @@ interface components {
8372
8380
  * Format: uuid
8373
8381
  * @description Unique identifier of the membership.
8374
8382
  */
8375
- id: string;
8383
+ id?: string | null;
8376
8384
  /** @description User associated with the membership. */
8377
8385
  user?: {
8378
8386
  /** @description User bio. */
@@ -8403,7 +8411,7 @@ interface components {
8403
8411
  * Format: uuid
8404
8412
  * @description ID of the membership that created the post.
8405
8413
  */
8406
- membershipRef: string;
8414
+ membershipRef?: string | null;
8407
8415
  /** @description Open Graph metadata for link previews. */
8408
8416
  og?: {
8409
8417
  /** @description Open Graph description. */
@@ -8415,12 +8423,12 @@ interface components {
8415
8423
  /** @description Open Graph type. */
8416
8424
  type?: string | null;
8417
8425
  /** @description Open Graph URL. */
8418
- url: string;
8426
+ url?: string | null;
8419
8427
  /** @description Open Graph video URL. */
8420
8428
  videoUrl?: string | null;
8421
8429
  };
8422
8430
  /** @description Whether the post is pinned. */
8423
- pinned: boolean;
8431
+ pinned?: boolean | null;
8424
8432
  /** @description Post text content. */
8425
8433
  text?: string;
8426
8434
  /** @description User who created the post. */
@@ -8463,14 +8471,14 @@ interface components {
8463
8471
  /** @description Whether the current user has liked the comment. */
8464
8472
  liked?: boolean;
8465
8473
  /** @description Number of likes on the comment. */
8466
- likes: number;
8474
+ likes?: number | null;
8467
8475
  /** @description Membership of the comment author. */
8468
8476
  membership: {
8469
8477
  /**
8470
8478
  * Format: uuid
8471
8479
  * @description Unique identifier of the membership.
8472
8480
  */
8473
- id: string;
8481
+ id?: string | null;
8474
8482
  /** @description User associated with the membership. */
8475
8483
  user?: {
8476
8484
  /**
@@ -8498,8 +8506,8 @@ interface components {
8498
8506
  * @description Unique identifier of the mention.
8499
8507
  */
8500
8508
  id: string;
8501
- /** @description Mention value. */
8502
- value: string;
8509
+ /** @description Full name of the mentioned user. Absent when the users service no longer knows the user. */
8510
+ value?: string;
8503
8511
  }[];
8504
8512
  /**
8505
8513
  * Format: uuid
@@ -8529,14 +8537,14 @@ interface components {
8529
8537
  * Format: uuid
8530
8538
  * @description Unique identifier of the like.
8531
8539
  */
8532
- id: string;
8540
+ id?: string | null;
8533
8541
  /** @description Membership of the user who liked. */
8534
8542
  membership: {
8535
8543
  /**
8536
8544
  * Format: uuid
8537
8545
  * @description Unique identifier of the membership.
8538
8546
  */
8539
- id: string;
8547
+ id?: string | null;
8540
8548
  /** @description User associated with the membership. */
8541
8549
  user?: {
8542
8550
  /**
@@ -9010,9 +9018,9 @@ interface components {
9010
9018
  duration?: number;
9011
9019
  /**
9012
9020
  * Format: uuid
9013
- * @description Unique identifier of the grant.
9021
+ * @description Unique identifier of the grant. Absent on grants of packages created before grants had IDs.
9014
9022
  */
9015
- id: string;
9023
+ id?: string;
9016
9024
  /**
9017
9025
  * @description Type of balance this grant provides.
9018
9026
  * @enum {string}
@@ -9072,9 +9080,9 @@ interface components {
9072
9080
  duration?: number;
9073
9081
  /**
9074
9082
  * Format: uuid
9075
- * @description Unique identifier of the grant.
9083
+ * @description Unique identifier of the grant. Absent on grants of packages created before grants had IDs.
9076
9084
  */
9077
- id: string;
9085
+ id?: string;
9078
9086
  /**
9079
9087
  * @description Type of balance this grant provides.
9080
9088
  * @enum {string}
@@ -9667,7 +9675,7 @@ interface components {
9667
9675
  * @description ISO timestamp of when the user was last seen in the network.
9668
9676
  */
9669
9677
  lastSeenDate?: string;
9670
- /** @description Location-scoped admin permissions. Included only for owners or when viewing the current user's registration. */
9678
+ /** @description Location-scoped admin permissions. Included only for owners and super admins or when viewing the current user's registration. */
9671
9679
  locationPermissions?: {
9672
9680
  /** @description Whether the admin can manage other admins. */
9673
9681
  admins: boolean;
@@ -9702,7 +9710,7 @@ interface components {
9702
9710
  * @description Role of the user in the network.
9703
9711
  * @enum {string}
9704
9712
  */
9705
- role?: "owner" | "admin" | "member";
9713
+ role?: "owner" | "superAdmin" | "admin" | "member";
9706
9714
  /** @description ISO timestamp or date when terms consent was given. */
9707
9715
  termsConsentDate?: string;
9708
9716
  /**
@@ -9763,6 +9771,11 @@ interface components {
9763
9771
  * @description Customer id.
9764
9772
  */
9765
9773
  id: string;
9774
+ /** @description Company logo when the customer is a company. */
9775
+ logo?: {
9776
+ key: string;
9777
+ url: string;
9778
+ };
9766
9779
  /** @description Company name when the customer is a company. */
9767
9780
  title?: string;
9768
9781
  /**
@@ -9781,6 +9794,8 @@ interface components {
9781
9794
  id: string;
9782
9795
  /** @description User first name. */
9783
9796
  name?: string | null;
9797
+ /** @description Profile photo URL. */
9798
+ photoUrl?: string | null;
9784
9799
  /** @description User last name. */
9785
9800
  surname?: string | null;
9786
9801
  };
@@ -10460,6 +10475,11 @@ interface components {
10460
10475
  * @description Customer id.
10461
10476
  */
10462
10477
  id: string;
10478
+ /** @description Company logo when the customer is a company. */
10479
+ logo?: {
10480
+ key: string;
10481
+ url: string;
10482
+ };
10463
10483
  /** @description Company name when the customer is a company. */
10464
10484
  title?: string;
10465
10485
  /**
@@ -10478,6 +10498,8 @@ interface components {
10478
10498
  id: string;
10479
10499
  /** @description User first name. */
10480
10500
  name?: string | null;
10501
+ /** @description Profile photo URL. */
10502
+ photoUrl?: string | null;
10481
10503
  /** @description User last name. */
10482
10504
  surname?: string | null;
10483
10505
  };
@@ -11153,6 +11175,11 @@ interface components {
11153
11175
  * @description Customer id.
11154
11176
  */
11155
11177
  id: string;
11178
+ /** @description Company logo when the customer is a company. */
11179
+ logo?: {
11180
+ key: string;
11181
+ url: string;
11182
+ };
11156
11183
  /** @description Company name when the customer is a company. */
11157
11184
  title?: string;
11158
11185
  /**
@@ -11171,6 +11198,8 @@ interface components {
11171
11198
  id: string;
11172
11199
  /** @description User first name. */
11173
11200
  name?: string | null;
11201
+ /** @description Profile photo URL. */
11202
+ photoUrl?: string | null;
11174
11203
  /** @description User last name. */
11175
11204
  surname?: string | null;
11176
11205
  };
@@ -11281,6 +11310,11 @@ interface components {
11281
11310
  * @description Customer id.
11282
11311
  */
11283
11312
  id: string;
11313
+ /** @description Company logo when the customer is a company. */
11314
+ logo?: {
11315
+ key: string;
11316
+ url: string;
11317
+ };
11284
11318
  /** @description Company name when the customer is a company. */
11285
11319
  title?: string;
11286
11320
  /**
@@ -11299,6 +11333,8 @@ interface components {
11299
11333
  id: string;
11300
11334
  /** @description User first name. */
11301
11335
  name?: string | null;
11336
+ /** @description Profile photo URL. */
11337
+ photoUrl?: string | null;
11302
11338
  /** @description User last name. */
11303
11339
  surname?: string | null;
11304
11340
  };
@@ -20194,6 +20230,8 @@ interface components {
20194
20230
  * @description Unique identifier of the transaction.
20195
20231
  */
20196
20232
  id: string;
20233
+ /** @description Note about the payment that only administrators see, such as how an external payment was collected. Absent when there is no note or the viewer is not an administrator. */
20234
+ internalNote?: string;
20197
20235
  /**
20198
20236
  * @deprecated
20199
20237
  * @description Deprecated. Use product instead.
@@ -20906,6 +20944,8 @@ interface components {
20906
20944
  * @description Unique identifier of the transaction.
20907
20945
  */
20908
20946
  id: string;
20947
+ /** @description Note about the payment that only administrators see, such as how an external payment was collected. Absent when there is no note or the viewer is not an administrator. */
20948
+ internalNote?: string;
20909
20949
  /**
20910
20950
  * @deprecated
20911
20951
  * @description Deprecated. Use product instead.
@@ -21618,6 +21658,8 @@ interface components {
21618
21658
  * @description Unique identifier of the transaction.
21619
21659
  */
21620
21660
  id: string;
21661
+ /** @description Note about the payment that only administrators see, such as how an external payment was collected. Absent when there is no note or the viewer is not an administrator. */
21662
+ internalNote?: string;
21621
21663
  /**
21622
21664
  * @deprecated
21623
21665
  * @description Deprecated. Use product instead.
@@ -26804,11 +26846,13 @@ interface components {
26804
26846
  "application/json": {
26805
26847
  /** @description Transaction fields to update. */
26806
26848
  transaction: {
26849
+ /** @description Note about the payment that only administrators see, such as how an external payment was collected. Can be changed on any money transaction. An empty string clears it. */
26850
+ internalNote?: string;
26807
26851
  /**
26808
- * @description New status of the pending external payment: `succeeded` approves it, `canceled` rejects it.
26852
+ * @description New status of the pending external payment: `succeeded` approves it, `canceled` rejects it. Only a pending external payment can change its status.
26809
26853
  * @enum {string}
26810
26854
  */
26811
- status: "canceled" | "succeeded";
26855
+ status?: "canceled" | "succeeded";
26812
26856
  };
26813
26857
  };
26814
26858
  };
@@ -27488,7 +27532,7 @@ interface operations {
27488
27532
  query?: {
27489
27533
  /** @description UUID of the benefit. */
27490
27534
  benefitRef?: string;
27491
- /** @description Comma-separated benefit category UUIDs, e.g. `uuid1,uuid2`. */
27535
+ /** @description Filter by the category of the benefit applied for: the IDs of benefit categories. Comma-separated, one or more UUIDs. */
27492
27536
  categoryRef?: string;
27493
27537
  /** @description Filter applications submitted on or after this date (ISO 8601). Use with createDate[lte] for a range. */
27494
27538
  "createDate[gte]"?: string;
@@ -29292,16 +29336,7 @@ interface operations {
29292
29336
  nextPageToken?: string;
29293
29337
  /** @description Case-insensitive search by contract title. Requires customerRef or locationRef to scope the search. */
29294
29338
  q?: string;
29295
- /**
29296
- * @description Filter by contract status. Comma-separated values, e.g. `draft,issued`.
29297
- *
29298
- * Supported values:
29299
- * - **draft** — created but not sent
29300
- * - **issued** — sent, awaiting signature
29301
- * - **signed** — active
29302
- * - **declined** — rejected
29303
- * - **terminated** — cancelled after signing
29304
- */
29339
+ /** @description Filter by status: 'draft' created and not sent yet, 'issued' sent and waiting for signatures, 'signed' signed by everyone and active, 'declined' a signer declined it or it expired unsigned, 'terminated' ended by an admin after it was signed. Defaults to every status. Comma-separated, one or more of: draft, issued, signed, declined, terminated. */
29305
29340
  status?: string;
29306
29341
  };
29307
29342
  header?: {
@@ -33388,20 +33423,11 @@ interface operations {
33388
33423
  locationRef?: string;
33389
33424
  /** @description Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
33390
33425
  nextPageToken?: string;
33391
- /** @description Sort order for results. */
33426
+ /** @description Sort order as field:direction, where field is startDate, endDate, createDate or renewDate and direction is asc or desc, such as startDate:asc. Applies to a location's subscriptions; defaults to createDate:desc. */
33392
33427
  order?: string;
33393
- /** @description UUID of the plan to filter subscriptions by. */
33428
+ /** @description UUID of the plan to filter subscriptions by. Applies to a location's subscriptions. */
33394
33429
  planRef?: string;
33395
- /**
33396
- * @description Filter by subscription status. Comma-separated values, e.g. `active,scheduled`. Defaults to `active`, `scheduled`, and `incomplete` when omitted.
33397
- *
33398
- * Supported values:
33399
- * - **active** — currently active
33400
- * - **scheduled** — scheduled to start
33401
- * - **incomplete** — pending setup or payment
33402
- * - **incompleteExpired** — incomplete and expired
33403
- * - **canceled** — canceled
33404
- */
33430
+ /** @description Filter by status: 'active' started and not ended or canceled, 'scheduled' starts in the future, 'incomplete' setup not finished (such as an unsigned contract or an unpaid purchase), 'incompleteExpired' setup was never finished (the contract was declined or the payment canceled), 'canceled' canceled or ended. Defaults to active, scheduled and incomplete. Comma-separated, one or more of: active, scheduled, incomplete, incompleteExpired, canceled. */
33405
33431
  status?: string;
33406
33432
  };
33407
33433
  header?: {
@@ -35461,18 +35487,11 @@ interface GetSubscriptionsQuery {
35461
35487
  locationRef?: string;
35462
35488
  /** Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
35463
35489
  nextPageToken?: string;
35464
- /** Sort order for results. */
35490
+ /** Sort order as field:direction, where field is startDate, endDate, createDate or renewDate and direction is asc or desc, such as startDate:asc. Applies to a location's subscriptions; defaults to createDate:desc. */
35465
35491
  order?: string;
35466
- /** UUID of the plan to filter subscriptions by. */
35492
+ /** UUID of the plan to filter subscriptions by. Applies to a location's subscriptions. */
35467
35493
  planRef?: string;
35468
- /** Filter by subscription status. Comma-separated values, e.g. `active,scheduled`. Defaults to `active`, `scheduled`, and `incomplete` when omitted.
35469
-
35470
- Supported values:
35471
- - **active** — currently active
35472
- - **scheduled** — scheduled to start
35473
- - **incomplete** — pending setup or payment
35474
- - **incompleteExpired** — incomplete and expired
35475
- - **canceled** — canceled */
35494
+ /** Filter by status: 'active' started and not ended or canceled, 'scheduled' starts in the future, 'incomplete' setup not finished (such as an unsigned contract or an unpaid purchase), 'incompleteExpired' setup was never finished (the contract was declined or the payment canceled), 'canceled' canceled or ended. Defaults to active, scheduled and incomplete. Comma-separated, one or more of: active, scheduled, incomplete, incompleteExpired, canceled. */
35476
35495
  status?: string;
35477
35496
  }
35478
35497
  /** Request body for `sb.subscriptions.create()`. */
@@ -35883,14 +35902,7 @@ interface GetContractsQuery {
35883
35902
  nextPageToken?: string;
35884
35903
  /** Case-insensitive search by contract title. Requires customerRef or locationRef to scope the search. */
35885
35904
  q?: string;
35886
- /** Filter by contract status. Comma-separated values, e.g. `draft,issued`.
35887
-
35888
- Supported values:
35889
- - **draft** — created but not sent
35890
- - **issued** — sent, awaiting signature
35891
- - **signed** — active
35892
- - **declined** — rejected
35893
- - **terminated** — cancelled after signing */
35905
+ /** Filter by status: 'draft' created and not sent yet, 'issued' sent and waiting for signatures, 'signed' signed by everyone and active, 'declined' a signer declined it or it expired unsigned, 'terminated' ended by an admin after it was signed. Defaults to every status. Comma-separated, one or more of: draft, issued, signed, declined, terminated. */
35894
35906
  status?: string;
35895
35907
  }
35896
35908
  /** Query parameters for `sb.contracts.templates.list()`. */
@@ -36145,7 +36157,7 @@ type BenefitMedia = NonNullable<operations["createBenefitMedia"]["responses"][20
36145
36157
  interface GetBenefitApplicationsQuery {
36146
36158
  /** UUID of the benefit. */
36147
36159
  benefitRef?: string;
36148
- /** Comma-separated benefit category UUIDs, e.g. `uuid1,uuid2`. */
36160
+ /** Filter by the category of the benefit applied for: the IDs of benefit categories. Comma-separated, one or more UUIDs. */
36149
36161
  categoryRef?: string;
36150
36162
  /** Filter applications submitted on or after this date (ISO 8601). Use with createDate[lte] for a range. */
36151
36163
  "createDate[gte]"?: string;
package/dist/index.js CHANGED
@@ -2808,7 +2808,7 @@ function createTransactions(client, defaults) {
2808
2808
  /**
2809
2809
  * Update a money transaction
2810
2810
  *
2811
- * Approve or cancel a pending money transaction paid externally.
2811
+ * Change the internal note of a money transaction, or approve or cancel a pending money transaction paid externally. A user needs the Billing permission in the transaction's location.
2812
2812
  *
2813
2813
  * @param transactionId The id of the transaction.
2814
2814
  * @param transaction The `transaction` payload.