@izak0s/spacebring-api 4.0.0 → 5.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/README.md +1 -1
- package/dist/index.cjs +21 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +434 -10
- package/dist/index.d.ts +434 -10
- package/dist/index.js +21 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -2435,6 +2435,26 @@ interface paths {
|
|
|
2435
2435
|
patch?: never;
|
|
2436
2436
|
trace?: never;
|
|
2437
2437
|
};
|
|
2438
|
+
"/transactions/credits/scheduled/v1": {
|
|
2439
|
+
parameters: {
|
|
2440
|
+
query?: never;
|
|
2441
|
+
header?: never;
|
|
2442
|
+
path?: never;
|
|
2443
|
+
cookie?: never;
|
|
2444
|
+
};
|
|
2445
|
+
/**
|
|
2446
|
+
* Retrieve scheduled credits transactions
|
|
2447
|
+
* @description Retrieve scheduled credits transactions of a subscription or a customer. <h3>OAuth</h3>Required scopes: <code>transactions.readonly</code> or <code>transactions</code>
|
|
2448
|
+
*/
|
|
2449
|
+
get: operations["getScheduledCreditsTransactions"];
|
|
2450
|
+
put?: never;
|
|
2451
|
+
post?: never;
|
|
2452
|
+
delete?: never;
|
|
2453
|
+
options?: never;
|
|
2454
|
+
head?: never;
|
|
2455
|
+
patch?: never;
|
|
2456
|
+
trace?: never;
|
|
2457
|
+
};
|
|
2438
2458
|
"/transactions/credits/v1": {
|
|
2439
2459
|
parameters: {
|
|
2440
2460
|
query?: never;
|
|
@@ -3551,10 +3571,22 @@ interface components {
|
|
|
3551
3571
|
type: "company" | "user";
|
|
3552
3572
|
/** @description User details for membership customers. */
|
|
3553
3573
|
user?: {
|
|
3554
|
-
/**
|
|
3574
|
+
/** @description User bio. */
|
|
3575
|
+
about?: string | null;
|
|
3576
|
+
/** @description User email address. */
|
|
3577
|
+
email?: string | null;
|
|
3578
|
+
/**
|
|
3579
|
+
* Format: uuid
|
|
3580
|
+
* @description User ID.
|
|
3581
|
+
*/
|
|
3555
3582
|
id: string;
|
|
3583
|
+
/** @description First name. */
|
|
3556
3584
|
name?: string | null;
|
|
3585
|
+
/** @description Phone number. */
|
|
3586
|
+
phoneNumber?: string | null;
|
|
3587
|
+
/** @description Profile photo URL. */
|
|
3557
3588
|
photoUrl?: string | null;
|
|
3589
|
+
/** @description Last name. */
|
|
3558
3590
|
surname?: string | null;
|
|
3559
3591
|
};
|
|
3560
3592
|
};
|
|
@@ -3918,10 +3950,22 @@ interface components {
|
|
|
3918
3950
|
type: "company" | "user";
|
|
3919
3951
|
/** @description User details for membership customers. */
|
|
3920
3952
|
user?: {
|
|
3921
|
-
/**
|
|
3953
|
+
/** @description User bio. */
|
|
3954
|
+
about?: string | null;
|
|
3955
|
+
/** @description User email address. */
|
|
3956
|
+
email?: string | null;
|
|
3957
|
+
/**
|
|
3958
|
+
* Format: uuid
|
|
3959
|
+
* @description User ID.
|
|
3960
|
+
*/
|
|
3922
3961
|
id: string;
|
|
3962
|
+
/** @description First name. */
|
|
3923
3963
|
name?: string | null;
|
|
3964
|
+
/** @description Phone number. */
|
|
3965
|
+
phoneNumber?: string | null;
|
|
3966
|
+
/** @description Profile photo URL. */
|
|
3924
3967
|
photoUrl?: string | null;
|
|
3968
|
+
/** @description Last name. */
|
|
3925
3969
|
surname?: string | null;
|
|
3926
3970
|
};
|
|
3927
3971
|
};
|
|
@@ -4282,10 +4326,22 @@ interface components {
|
|
|
4282
4326
|
type: "company" | "user";
|
|
4283
4327
|
/** @description User details for membership customers. */
|
|
4284
4328
|
user?: {
|
|
4285
|
-
/**
|
|
4329
|
+
/** @description User bio. */
|
|
4330
|
+
about?: string | null;
|
|
4331
|
+
/** @description User email address. */
|
|
4332
|
+
email?: string | null;
|
|
4333
|
+
/**
|
|
4334
|
+
* Format: uuid
|
|
4335
|
+
* @description User ID.
|
|
4336
|
+
*/
|
|
4286
4337
|
id: string;
|
|
4338
|
+
/** @description First name. */
|
|
4287
4339
|
name?: string | null;
|
|
4340
|
+
/** @description Phone number. */
|
|
4341
|
+
phoneNumber?: string | null;
|
|
4342
|
+
/** @description Profile photo URL. */
|
|
4288
4343
|
photoUrl?: string | null;
|
|
4344
|
+
/** @description Last name. */
|
|
4289
4345
|
surname?: string | null;
|
|
4290
4346
|
};
|
|
4291
4347
|
};
|
|
@@ -5238,10 +5294,22 @@ interface components {
|
|
|
5238
5294
|
type: "company" | "user";
|
|
5239
5295
|
/** @description User details for membership customers. */
|
|
5240
5296
|
user?: {
|
|
5241
|
-
/**
|
|
5297
|
+
/** @description User bio. */
|
|
5298
|
+
about?: string | null;
|
|
5299
|
+
/** @description User email address. */
|
|
5300
|
+
email?: string | null;
|
|
5301
|
+
/**
|
|
5302
|
+
* Format: uuid
|
|
5303
|
+
* @description User ID.
|
|
5304
|
+
*/
|
|
5242
5305
|
id: string;
|
|
5306
|
+
/** @description First name. */
|
|
5243
5307
|
name?: string | null;
|
|
5308
|
+
/** @description Phone number. */
|
|
5309
|
+
phoneNumber?: string | null;
|
|
5310
|
+
/** @description Profile photo URL. */
|
|
5244
5311
|
photoUrl?: string | null;
|
|
5312
|
+
/** @description Last name. */
|
|
5245
5313
|
surname?: string | null;
|
|
5246
5314
|
};
|
|
5247
5315
|
};
|
|
@@ -5553,10 +5621,22 @@ interface components {
|
|
|
5553
5621
|
type: "company" | "user";
|
|
5554
5622
|
/** @description User details for membership customers. */
|
|
5555
5623
|
user?: {
|
|
5556
|
-
/**
|
|
5624
|
+
/** @description User bio. */
|
|
5625
|
+
about?: string | null;
|
|
5626
|
+
/** @description User email address. */
|
|
5627
|
+
email?: string | null;
|
|
5628
|
+
/**
|
|
5629
|
+
* Format: uuid
|
|
5630
|
+
* @description User ID.
|
|
5631
|
+
*/
|
|
5557
5632
|
id: string;
|
|
5633
|
+
/** @description First name. */
|
|
5558
5634
|
name?: string | null;
|
|
5635
|
+
/** @description Phone number. */
|
|
5636
|
+
phoneNumber?: string | null;
|
|
5637
|
+
/** @description Profile photo URL. */
|
|
5559
5638
|
photoUrl?: string | null;
|
|
5639
|
+
/** @description Last name. */
|
|
5560
5640
|
surname?: string | null;
|
|
5561
5641
|
};
|
|
5562
5642
|
};
|
|
@@ -12447,6 +12527,286 @@ interface components {
|
|
|
12447
12527
|
*/
|
|
12448
12528
|
type: "assigneeUpdated" | "comment" | "statusUpdated" | "ticketCreated";
|
|
12449
12529
|
};
|
|
12530
|
+
getScheduledCreditsTransactions: {
|
|
12531
|
+
/** @description Pagination token to fetch the next page of results. Returned when more results exist. */
|
|
12532
|
+
nextPageToken?: string;
|
|
12533
|
+
/** @description List of scheduled credits transactions. */
|
|
12534
|
+
scheduledTransactions: {
|
|
12535
|
+
/** @description Total credits amount (absolute sum of expiring and permanent). */
|
|
12536
|
+
amount: number;
|
|
12537
|
+
/**
|
|
12538
|
+
* @deprecated
|
|
12539
|
+
* @description Deprecated. Use product instead.
|
|
12540
|
+
*/
|
|
12541
|
+
booking?: {
|
|
12542
|
+
/**
|
|
12543
|
+
* Format: uuid
|
|
12544
|
+
* @description Booking id.
|
|
12545
|
+
*/
|
|
12546
|
+
id: string;
|
|
12547
|
+
/** @description Booked resource. */
|
|
12548
|
+
resource: {
|
|
12549
|
+
/**
|
|
12550
|
+
* Format: uuid
|
|
12551
|
+
* @description Resource id.
|
|
12552
|
+
*/
|
|
12553
|
+
id: string;
|
|
12554
|
+
/** @description Resource title. */
|
|
12555
|
+
title: string;
|
|
12556
|
+
};
|
|
12557
|
+
};
|
|
12558
|
+
/**
|
|
12559
|
+
* @deprecated
|
|
12560
|
+
* @description Deprecated. Use customer instead.
|
|
12561
|
+
*/
|
|
12562
|
+
company?: {
|
|
12563
|
+
/**
|
|
12564
|
+
* Format: date-time
|
|
12565
|
+
* @description ISO timestamp of company creation.
|
|
12566
|
+
*/
|
|
12567
|
+
createDate: string;
|
|
12568
|
+
/**
|
|
12569
|
+
* Format: uuid
|
|
12570
|
+
* @description Company id.
|
|
12571
|
+
*/
|
|
12572
|
+
id: string;
|
|
12573
|
+
/**
|
|
12574
|
+
* Format: uuid
|
|
12575
|
+
* @description Location id.
|
|
12576
|
+
*/
|
|
12577
|
+
locationRef: string;
|
|
12578
|
+
/** @description Company logo. */
|
|
12579
|
+
logo?: {
|
|
12580
|
+
/** @description Storage key of the company logo. */
|
|
12581
|
+
key: string;
|
|
12582
|
+
/** @description Public URL of the company logo. */
|
|
12583
|
+
url: string;
|
|
12584
|
+
};
|
|
12585
|
+
/** @description Company metadata. */
|
|
12586
|
+
metadata?: {
|
|
12587
|
+
[key: string]: unknown;
|
|
12588
|
+
};
|
|
12589
|
+
/** @description Internal notes. */
|
|
12590
|
+
notes?: string;
|
|
12591
|
+
/** @description Public logo URL derived from the company website. */
|
|
12592
|
+
publicLogoUrl?: string;
|
|
12593
|
+
/**
|
|
12594
|
+
* Format: uuid
|
|
12595
|
+
* @description Primary subscription id.
|
|
12596
|
+
*/
|
|
12597
|
+
subscriptionRef: string | null;
|
|
12598
|
+
/** @description Company name. */
|
|
12599
|
+
title: string;
|
|
12600
|
+
};
|
|
12601
|
+
/**
|
|
12602
|
+
* Format: uuid
|
|
12603
|
+
* @deprecated
|
|
12604
|
+
* @description Deprecated. Use customer instead.
|
|
12605
|
+
*/
|
|
12606
|
+
companyRef?: string;
|
|
12607
|
+
/**
|
|
12608
|
+
* Format: date-time
|
|
12609
|
+
* @description ISO timestamp of when the scheduled transaction was created.
|
|
12610
|
+
*/
|
|
12611
|
+
createDate: string;
|
|
12612
|
+
/** @description Customer associated with this scheduled transaction. */
|
|
12613
|
+
customer: {
|
|
12614
|
+
/**
|
|
12615
|
+
* Format: uuid
|
|
12616
|
+
* @description ID of the company or membership.
|
|
12617
|
+
*/
|
|
12618
|
+
id: string;
|
|
12619
|
+
/** @description Company logo. */
|
|
12620
|
+
logo?: {
|
|
12621
|
+
key: string;
|
|
12622
|
+
url: string;
|
|
12623
|
+
};
|
|
12624
|
+
/** @description Company name. */
|
|
12625
|
+
title?: string;
|
|
12626
|
+
/**
|
|
12627
|
+
* @description Whether the customer is a company or a user.
|
|
12628
|
+
* @enum {string}
|
|
12629
|
+
*/
|
|
12630
|
+
type: "company" | "user";
|
|
12631
|
+
/** @description User details for membership customers. */
|
|
12632
|
+
user?: {
|
|
12633
|
+
about?: string | null;
|
|
12634
|
+
email?: string | null;
|
|
12635
|
+
/** Format: uuid */
|
|
12636
|
+
id: string;
|
|
12637
|
+
name?: string | null;
|
|
12638
|
+
phoneNumber?: string | null;
|
|
12639
|
+
photoUrl?: string | null;
|
|
12640
|
+
surname?: string | null;
|
|
12641
|
+
};
|
|
12642
|
+
};
|
|
12643
|
+
/** @description Discounts applied to the scheduled transaction. */
|
|
12644
|
+
discounts?: {
|
|
12645
|
+
/** @description Applied coupon. */
|
|
12646
|
+
coupon: {
|
|
12647
|
+
/** @description Fixed amount discount. */
|
|
12648
|
+
amountOff?: number;
|
|
12649
|
+
/** @description Currency of the fixed amount discount. */
|
|
12650
|
+
currencyCode?: string;
|
|
12651
|
+
/** @description Coupon id. */
|
|
12652
|
+
id: string;
|
|
12653
|
+
/** @description Percentage discount. */
|
|
12654
|
+
percentOff?: number;
|
|
12655
|
+
/** @description Product types the coupon applies to. */
|
|
12656
|
+
productTypes?: string[];
|
|
12657
|
+
/** @description Coupon type. */
|
|
12658
|
+
type: string;
|
|
12659
|
+
};
|
|
12660
|
+
/** @description Promocode the coupon was applied with. */
|
|
12661
|
+
promocode?: {
|
|
12662
|
+
/** @description Promocode. */
|
|
12663
|
+
code: string;
|
|
12664
|
+
/** @description Promocode expiration date. */
|
|
12665
|
+
expiration?: string;
|
|
12666
|
+
/**
|
|
12667
|
+
* Format: uuid
|
|
12668
|
+
* @description Promocode id.
|
|
12669
|
+
*/
|
|
12670
|
+
id: string;
|
|
12671
|
+
/** @description Whether the promocode is limited to the first purchase. */
|
|
12672
|
+
limitByFirstPurchase?: boolean;
|
|
12673
|
+
};
|
|
12674
|
+
/**
|
|
12675
|
+
* Format: uuid
|
|
12676
|
+
* @description ID of the subscription this discount is associated with.
|
|
12677
|
+
*/
|
|
12678
|
+
subscriptionId?: string;
|
|
12679
|
+
}[];
|
|
12680
|
+
/**
|
|
12681
|
+
* Format: uuid
|
|
12682
|
+
* @description Unique identifier of the scheduled transaction.
|
|
12683
|
+
*/
|
|
12684
|
+
id: string;
|
|
12685
|
+
/**
|
|
12686
|
+
* Format: uuid
|
|
12687
|
+
* @description ID of the organization (location).
|
|
12688
|
+
*/
|
|
12689
|
+
locationRef: string;
|
|
12690
|
+
/**
|
|
12691
|
+
* Format: uuid
|
|
12692
|
+
* @deprecated
|
|
12693
|
+
* @description Deprecated. Use customer instead.
|
|
12694
|
+
*/
|
|
12695
|
+
membershipRef?: string;
|
|
12696
|
+
/**
|
|
12697
|
+
* Format: uuid
|
|
12698
|
+
* @deprecated
|
|
12699
|
+
* @description Deprecated. Use userCreatedBy instead.
|
|
12700
|
+
*/
|
|
12701
|
+
membershipRefCreator?: string;
|
|
12702
|
+
/**
|
|
12703
|
+
* Format: uuid
|
|
12704
|
+
* @description ID of the network.
|
|
12705
|
+
*/
|
|
12706
|
+
networkRef: string;
|
|
12707
|
+
/** @description Product details. */
|
|
12708
|
+
product?: {
|
|
12709
|
+
/**
|
|
12710
|
+
* Format: uuid
|
|
12711
|
+
* @description ID of the associated booking.
|
|
12712
|
+
*/
|
|
12713
|
+
bookingRef?: string;
|
|
12714
|
+
/** @description Display title of the product. */
|
|
12715
|
+
title: string;
|
|
12716
|
+
/**
|
|
12717
|
+
* @description Product type.
|
|
12718
|
+
* @enum {string}
|
|
12719
|
+
*/
|
|
12720
|
+
type: "booking";
|
|
12721
|
+
};
|
|
12722
|
+
/**
|
|
12723
|
+
* Format: date-time
|
|
12724
|
+
* @description ISO timestamp of when the scheduled transaction was resolved into a credits transaction.
|
|
12725
|
+
*/
|
|
12726
|
+
resolveDate?: string;
|
|
12727
|
+
/**
|
|
12728
|
+
* Format: date-time
|
|
12729
|
+
* @description Date when the transaction is scheduled to resolve, anchored to the subscription interval the booking falls into.
|
|
12730
|
+
*/
|
|
12731
|
+
scheduleDate: string;
|
|
12732
|
+
/** @description Transaction status. */
|
|
12733
|
+
status: string;
|
|
12734
|
+
/** @description Timezone of the subscription. */
|
|
12735
|
+
timezoneId: string;
|
|
12736
|
+
/**
|
|
12737
|
+
* @description Scheduled credits transaction type.
|
|
12738
|
+
* @enum {string}
|
|
12739
|
+
*/
|
|
12740
|
+
type: "booking";
|
|
12741
|
+
/**
|
|
12742
|
+
* @deprecated
|
|
12743
|
+
* @description Deprecated. Use userOwner instead.
|
|
12744
|
+
*/
|
|
12745
|
+
user?: {
|
|
12746
|
+
about?: string | null;
|
|
12747
|
+
email?: string | null;
|
|
12748
|
+
/** Format: uuid */
|
|
12749
|
+
id: string;
|
|
12750
|
+
name?: string | null;
|
|
12751
|
+
phoneNumber?: string | null;
|
|
12752
|
+
photoUrl?: string | null;
|
|
12753
|
+
surname?: string | null;
|
|
12754
|
+
};
|
|
12755
|
+
/** @description User who created the transaction. */
|
|
12756
|
+
userCreatedBy?: {
|
|
12757
|
+
about?: string | null;
|
|
12758
|
+
email?: string | null;
|
|
12759
|
+
/** Format: uuid */
|
|
12760
|
+
id: string;
|
|
12761
|
+
name?: string | null;
|
|
12762
|
+
phoneNumber?: string | null;
|
|
12763
|
+
photoUrl?: string | null;
|
|
12764
|
+
surname?: string | null;
|
|
12765
|
+
};
|
|
12766
|
+
/**
|
|
12767
|
+
* @deprecated
|
|
12768
|
+
* @description Deprecated. Use userCreatedBy instead.
|
|
12769
|
+
*/
|
|
12770
|
+
userCreator?: {
|
|
12771
|
+
about?: string | null;
|
|
12772
|
+
email?: string | null;
|
|
12773
|
+
/** Format: uuid */
|
|
12774
|
+
id: string;
|
|
12775
|
+
name?: string | null;
|
|
12776
|
+
phoneNumber?: string | null;
|
|
12777
|
+
photoUrl?: string | null;
|
|
12778
|
+
surname?: string | null;
|
|
12779
|
+
};
|
|
12780
|
+
/**
|
|
12781
|
+
* @deprecated
|
|
12782
|
+
* @description Deprecated. Use customer.user instead.
|
|
12783
|
+
*/
|
|
12784
|
+
userOwner?: {
|
|
12785
|
+
about?: string | null;
|
|
12786
|
+
email?: string | null;
|
|
12787
|
+
/** Format: uuid */
|
|
12788
|
+
id: string;
|
|
12789
|
+
name?: string | null;
|
|
12790
|
+
phoneNumber?: string | null;
|
|
12791
|
+
photoUrl?: string | null;
|
|
12792
|
+
surname?: string | null;
|
|
12793
|
+
};
|
|
12794
|
+
/**
|
|
12795
|
+
* Format: uuid
|
|
12796
|
+
* @deprecated
|
|
12797
|
+
* @description Deprecated. Use userCreatedBy instead.
|
|
12798
|
+
*/
|
|
12799
|
+
userRefCreator?: string;
|
|
12800
|
+
/**
|
|
12801
|
+
* Format: uuid
|
|
12802
|
+
* @deprecated
|
|
12803
|
+
* @description Deprecated. Use customer.user instead.
|
|
12804
|
+
*/
|
|
12805
|
+
userRefOwner?: string;
|
|
12806
|
+
}[];
|
|
12807
|
+
/** @description Query string with nextPageToken and the request filter to fetch the next page of results. Returned when more results exist. */
|
|
12808
|
+
searchQueryNext?: string;
|
|
12809
|
+
};
|
|
12450
12810
|
getCreditsTransactions: {
|
|
12451
12811
|
/** @description Pagination token to fetch the next page of results. */
|
|
12452
12812
|
nextPageToken?: string;
|
|
@@ -17406,6 +17766,8 @@ interface components {
|
|
|
17406
17766
|
* @description The id of membership owner.
|
|
17407
17767
|
*/
|
|
17408
17768
|
membershipRefOwner?: string;
|
|
17769
|
+
/** @description Number of seats to reserve. Required for desk and office resources. */
|
|
17770
|
+
seats?: number;
|
|
17409
17771
|
};
|
|
17410
17772
|
};
|
|
17411
17773
|
};
|
|
@@ -24897,6 +25259,47 @@ interface operations {
|
|
|
24897
25259
|
};
|
|
24898
25260
|
};
|
|
24899
25261
|
};
|
|
25262
|
+
getScheduledCreditsTransactions: {
|
|
25263
|
+
parameters: {
|
|
25264
|
+
query?: {
|
|
25265
|
+
/** @description UUID of the company or membership whose scheduled credits transactions to list. */
|
|
25266
|
+
customerRef?: string;
|
|
25267
|
+
/** @description Maximum number of transactions per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100. */
|
|
25268
|
+
limit?: number;
|
|
25269
|
+
/** @description Token to retrieve the next page of results. */
|
|
25270
|
+
nextPageToken?: string;
|
|
25271
|
+
/** @description UUID of the subscription whose scheduled credits transactions to list. */
|
|
25272
|
+
subscriptionRef?: string;
|
|
25273
|
+
};
|
|
25274
|
+
header?: {
|
|
25275
|
+
/** @description The id of the network. Required when using bearer token authentication */
|
|
25276
|
+
"spacebring-network-id"?: string;
|
|
25277
|
+
};
|
|
25278
|
+
path?: never;
|
|
25279
|
+
cookie?: never;
|
|
25280
|
+
};
|
|
25281
|
+
requestBody?: never;
|
|
25282
|
+
responses: {
|
|
25283
|
+
/** @description OK */
|
|
25284
|
+
200: {
|
|
25285
|
+
headers: {
|
|
25286
|
+
[name: string]: unknown;
|
|
25287
|
+
};
|
|
25288
|
+
content: {
|
|
25289
|
+
"application/json": components["schemas"]["getScheduledCreditsTransactions"];
|
|
25290
|
+
};
|
|
25291
|
+
};
|
|
25292
|
+
/** @description Bad Request */
|
|
25293
|
+
400: {
|
|
25294
|
+
headers: {
|
|
25295
|
+
[name: string]: unknown;
|
|
25296
|
+
};
|
|
25297
|
+
content: {
|
|
25298
|
+
"application/json": components["schemas"]["responseError"];
|
|
25299
|
+
};
|
|
25300
|
+
};
|
|
25301
|
+
};
|
|
25302
|
+
};
|
|
24900
25303
|
getCreditsTransactions: {
|
|
24901
25304
|
parameters: {
|
|
24902
25305
|
query?: {
|
|
@@ -26020,14 +26423,16 @@ type UpdateVisitBody = NonNullable<NonNullable<operations["updateVisit"]["reques
|
|
|
26020
26423
|
|
|
26021
26424
|
/** A Balance entity as returned by the Spacebring API. */
|
|
26022
26425
|
type Balance = NonNullable<components["schemas"]["balance"]>;
|
|
26426
|
+
/** A CreditScheduledTransaction entity as returned by the Spacebring API. */
|
|
26427
|
+
type CreditScheduledTransaction = NonNullable<operations["getScheduledCreditsTransactions"]["responses"][200]["content"]["application/json"]["scheduledTransactions"]>[number];
|
|
26023
26428
|
/** A CreditTransaction entity as returned by the Spacebring API. */
|
|
26024
26429
|
type CreditTransaction = NonNullable<components["schemas"]["transactionCredits"]>;
|
|
26430
|
+
/** A DayPassScheduledTransaction entity as returned by the Spacebring API. */
|
|
26431
|
+
type DayPassScheduledTransaction = NonNullable<operations["getScheduledDayPassesTransactions"]["responses"][200]["content"]["application/json"]["scheduledTransactions"]>[number];
|
|
26025
26432
|
/** A DayPassTransaction entity as returned by the Spacebring API. */
|
|
26026
26433
|
type DayPassTransaction = NonNullable<components["schemas"]["transactionDayPasses"]>;
|
|
26027
26434
|
/** A MoneyTransaction entity as returned by the Spacebring API. */
|
|
26028
26435
|
type MoneyTransaction = NonNullable<components["schemas"]["transaction"]>;
|
|
26029
|
-
/** A ScheduledTransaction entity as returned by the Spacebring API. */
|
|
26030
|
-
type ScheduledTransaction = NonNullable<operations["getScheduledDayPassesTransactions"]["responses"][200]["content"]["application/json"]["scheduledTransactions"]>[number];
|
|
26031
26436
|
/** Query parameters for `sb.transactions.credits.list()`. */
|
|
26032
26437
|
interface GetCreditsTransactionsQuery {
|
|
26033
26438
|
/** @deprecated Use customerRef instead. The id of the company to get transactions for. */
|
|
@@ -26090,6 +26495,17 @@ interface GetMoneyTransactionsQuery {
|
|
|
26090
26495
|
/** Token to retrieve the next page of results. */
|
|
26091
26496
|
nextPageToken?: string;
|
|
26092
26497
|
}
|
|
26498
|
+
/** Query parameters for `sb.transactions.credits.scheduled.list()`. */
|
|
26499
|
+
interface GetScheduledCreditsTransactionsQuery {
|
|
26500
|
+
/** UUID of the company or membership whose scheduled credits transactions to list. */
|
|
26501
|
+
customerRef?: string;
|
|
26502
|
+
/** Maximum number of transactions per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100. */
|
|
26503
|
+
limit?: number;
|
|
26504
|
+
/** Token to retrieve the next page of results. */
|
|
26505
|
+
nextPageToken?: string;
|
|
26506
|
+
/** UUID of the subscription whose scheduled credits transactions to list. */
|
|
26507
|
+
subscriptionRef?: string;
|
|
26508
|
+
}
|
|
26093
26509
|
/** Query parameters for `sb.transactions.dayPasses.scheduled.list()`. */
|
|
26094
26510
|
interface GetScheduledDayPassesTransactionsQuery {
|
|
26095
26511
|
/** UUID of the company or membership whose scheduled day pass transactions to list. */
|
|
@@ -27189,6 +27605,14 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
27189
27605
|
iterate(query?: Omit<GetCreditsTransactionsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<CreditTransaction, void, undefined>;
|
|
27190
27606
|
get(id: string, options?: SpacebringRequestOptions): Promise<CreditTransaction>;
|
|
27191
27607
|
create(transaction: CreateCreditsTransactionBody, options?: SpacebringRequestOptions): Promise<CreditTransaction>;
|
|
27608
|
+
scheduled: {
|
|
27609
|
+
list(query?: GetScheduledCreditsTransactionsQuery, options?: SpacebringRequestOptions): Promise<{
|
|
27610
|
+
nextPageToken?: string;
|
|
27611
|
+
scheduledTransactions: CreditScheduledTransaction[];
|
|
27612
|
+
searchQueryNext?: string;
|
|
27613
|
+
}>;
|
|
27614
|
+
iterate(query?: Omit<GetScheduledCreditsTransactionsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<CreditScheduledTransaction, void, undefined>;
|
|
27615
|
+
};
|
|
27192
27616
|
};
|
|
27193
27617
|
dayPasses: {
|
|
27194
27618
|
list(query?: GetDayPassesTransactionsQuery, options?: SpacebringRequestOptions): Promise<{
|
|
@@ -27202,10 +27626,10 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
27202
27626
|
scheduled: {
|
|
27203
27627
|
list(query?: GetScheduledDayPassesTransactionsQuery, options?: SpacebringRequestOptions): Promise<{
|
|
27204
27628
|
nextPageToken?: string;
|
|
27205
|
-
scheduledTransactions:
|
|
27629
|
+
scheduledTransactions: DayPassScheduledTransaction[];
|
|
27206
27630
|
searchQueryNext?: string;
|
|
27207
27631
|
}>;
|
|
27208
|
-
iterate(query?: Omit<GetScheduledDayPassesTransactionsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<
|
|
27632
|
+
iterate(query?: Omit<GetScheduledDayPassesTransactionsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<DayPassScheduledTransaction, void, undefined>;
|
|
27209
27633
|
};
|
|
27210
27634
|
};
|
|
27211
27635
|
money: {
|
|
@@ -27315,4 +27739,4 @@ declare class SpacebringError extends Error {
|
|
|
27315
27739
|
});
|
|
27316
27740
|
}
|
|
27317
27741
|
|
|
27318
|
-
export { type Activity, type AddEventHostsBody, type AltCurrency, type Application, type ApplyBenefitBody, type Assignment, type Balance, type Benefit, type BenefitCategory, type Booking, type CheckInVisitBody, type CheckOutVisitBody, type Comment, type Company, type Contact, type Contract, type Coupon, type CreateAltCurrencyBody, type CreateBenefitBody, type CreateBenefitCategoryBody, type CreateBookingBody, type CreateCompanyBody, type CreateContactBody, type CreateContractBody, type CreateCouponBody, type CreateCreditNoteBody, type CreateCreditsTransactionBody, type CreateDayPassesTransactionBody, type CreateEventBody, type CreateFeedPostBody, type CreateFeedPostCommentBody, type CreateGuideBody, type CreateInvoiceBody, type CreateInvoiceItemBody, type CreateMembershipBody, type CreatePackageBody, type CreatePlanBody, type CreateProductBody, type CreatePromocodeBody, type CreateRequestBody, type CreateResourceBody, type CreateShopCategoryBody, type CreateSubscriptionBody, type CreateSubscriptionItemBody, type CreateSupportTicketBody, type CreateSupportTicketCommentBody, type CreateTemplateBody, type CreateVisitBody, type CreditNote, type CreditTransaction, type DayPassTransaction, type Event, type EventTicket, type GetAltCurrenciesQuery, type GetAssignmentsQuery, type GetBenefitApplicationsQuery, type GetBenefitCategoriesQuery, type GetBenefitsQuery, type GetBookingsQuery, type GetCompaniesQuery, type GetContactsQuery, type GetContractsQuery, type GetCouponsQuery, type GetCreditNotesQuery, type GetCreditsTransactionsQuery, type GetDayPassesTransactionsQuery, type GetDiscountRedemptionsQuery, type GetEventTicketsQuery, type GetEventsByOrganizationQuery, type GetFeedPostsQuery, type GetFloorsQuery, type GetGuidesQuery, type GetInvoicesQuery, type GetMembershipsDeletedQuery, type GetMembershipsQuery, type GetMoneyTransactionsQuery, type GetOrdersQuery, type GetPackagesQuery, type GetPlansQuery, type GetProductsQuery, type GetPromocodesQuery, type GetRegistrationsQuery, type GetRequestsQuery, type GetResourcesQuery, type GetScheduledDayPassesTransactionsQuery, type GetShopCategoriesQuery, type GetSubscriptionsQuery, type GetSupportTicketsQuery, type GetTemplatesQuery, type GetUpcomingInvoiceItemsQuery, type GetUpcomingInvoiceQuery, type GetVisitsQuery, type Guide, type Invoice, type InvoiceItem, type IssueContractBody, type IssueInvoiceBody, type Like, type ListInvoiceItemsQuery, type Location, type Membership, type MoneyTransaction, type Network, type Order, type Package, type PatchGuideBody, type PatchPackageBody, type PatchResourceBody, type PayInvoiceBody, type Payment, type Plan, type Post, type PreviewCreditNoteBody, type Product, type Promocode, type Redemption, type Registration, type Request$1 as Request, type Resource, type
|
|
27742
|
+
export { type Activity, type AddEventHostsBody, type AltCurrency, type Application, type ApplyBenefitBody, type Assignment, type Balance, type Benefit, type BenefitCategory, type Booking, type CheckInVisitBody, type CheckOutVisitBody, type Comment, type Company, type Contact, type Contract, type Coupon, type CreateAltCurrencyBody, type CreateBenefitBody, type CreateBenefitCategoryBody, type CreateBookingBody, type CreateCompanyBody, type CreateContactBody, type CreateContractBody, type CreateCouponBody, type CreateCreditNoteBody, type CreateCreditsTransactionBody, type CreateDayPassesTransactionBody, type CreateEventBody, type CreateFeedPostBody, type CreateFeedPostCommentBody, type CreateGuideBody, type CreateInvoiceBody, type CreateInvoiceItemBody, type CreateMembershipBody, type CreatePackageBody, type CreatePlanBody, type CreateProductBody, type CreatePromocodeBody, type CreateRequestBody, type CreateResourceBody, type CreateShopCategoryBody, type CreateSubscriptionBody, type CreateSubscriptionItemBody, type CreateSupportTicketBody, type CreateSupportTicketCommentBody, type CreateTemplateBody, type CreateVisitBody, type CreditNote, type CreditScheduledTransaction, type CreditTransaction, type DayPassScheduledTransaction, type DayPassTransaction, type Event, type EventTicket, type GetAltCurrenciesQuery, type GetAssignmentsQuery, type GetBenefitApplicationsQuery, type GetBenefitCategoriesQuery, type GetBenefitsQuery, type GetBookingsQuery, type GetCompaniesQuery, type GetContactsQuery, type GetContractsQuery, type GetCouponsQuery, type GetCreditNotesQuery, type GetCreditsTransactionsQuery, type GetDayPassesTransactionsQuery, type GetDiscountRedemptionsQuery, type GetEventTicketsQuery, type GetEventsByOrganizationQuery, type GetFeedPostsQuery, type GetFloorsQuery, type GetGuidesQuery, type GetInvoicesQuery, type GetMembershipsDeletedQuery, type GetMembershipsQuery, type GetMoneyTransactionsQuery, type GetOrdersQuery, type GetPackagesQuery, type GetPlansQuery, type GetProductsQuery, type GetPromocodesQuery, type GetRegistrationsQuery, type GetRequestsQuery, type GetResourcesQuery, type GetScheduledCreditsTransactionsQuery, type GetScheduledDayPassesTransactionsQuery, type GetShopCategoriesQuery, type GetSubscriptionsQuery, type GetSupportTicketsQuery, type GetTemplatesQuery, type GetUpcomingInvoiceItemsQuery, type GetUpcomingInvoiceQuery, type GetVisitsQuery, type Guide, type Invoice, type InvoiceItem, type IssueContractBody, type IssueInvoiceBody, type Like, type ListInvoiceItemsQuery, type Location, type Membership, type MoneyTransaction, type Network, type Order, type Package, type PatchGuideBody, type PatchPackageBody, type PatchResourceBody, type PayInvoiceBody, type Payment, type Plan, type Post, type PreviewCreditNoteBody, type Product, type Promocode, type Redemption, type Registration, type Request$1 as Request, type Resource, type ShopCategory, Spacebring, type SpacebringConfig, SpacebringError, type SpacebringErrorBody, type SpacebringRequestOptions, type SpacebringResources, type Subscription, type SupportTicket, type Template, type TerminateContractBody, type UpcomingItem, type UpdateAltCurrencyBody, type UpdateBenefitBody, type UpdateBenefitCategoryBody, type UpdateCompanyBody, type UpdateContractBody, type UpdateCouponBody, type UpdateCreditNoteBody, type UpdateEventBody, type UpdateEventTicketBody, type UpdateFeedPostBody, type UpdateInvoiceBody, type UpdateInvoiceItemBody, type UpdateMembershipBody, type UpdatePlanBody, type UpdateProductBody, type UpdateShopCategoryBody, type UpdateSubscriptionBody, type UpdateSubscriptionItemBody, type UpdateSupportTicketAssigneeBody, type UpdateSupportTicketStatusBody, type UpdateSupportTicketTypeBody, type UpdateTemplateBody, type UpdateVisitBody, type Visit, type components, type operations, type paths };
|