@izak0s/spacebring-api 3.0.0 → 3.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.d.ts CHANGED
@@ -2439,6 +2439,26 @@ interface paths {
2439
2439
  patch?: never;
2440
2440
  trace?: never;
2441
2441
  };
2442
+ "/transactions/day_passes/scheduled/v1": {
2443
+ parameters: {
2444
+ query?: never;
2445
+ header?: never;
2446
+ path?: never;
2447
+ cookie?: never;
2448
+ };
2449
+ /**
2450
+ * Retrieve scheduled day pass transactions
2451
+ * @description Retrieve scheduled day passes transactions of a subscription or a customer. <h3>OAuth</h3>Required scopes: <code>transactions.readonly</code> or <code>transactions</code>
2452
+ */
2453
+ get: operations["getScheduledDayPassesTransactions"];
2454
+ put?: never;
2455
+ post?: never;
2456
+ delete?: never;
2457
+ options?: never;
2458
+ head?: never;
2459
+ patch?: never;
2460
+ trace?: never;
2461
+ };
2442
2462
  "/transactions/day_passes/v1": {
2443
2463
  parameters: {
2444
2464
  query?: never;
@@ -8433,6 +8453,16 @@ interface components {
8433
8453
  */
8434
8454
  interval: "zeroMinutes" | "fiveMinutes" | "tenMinutes" | "fifteenMinutes";
8435
8455
  };
8456
+ /** @description Child resources when this is a parent resource. Bookings on a child resource also block the parent. */
8457
+ children: {
8458
+ /**
8459
+ * Format: uuid
8460
+ * @description Id of the child resource.
8461
+ */
8462
+ id: string;
8463
+ /** @description Title of the child resource. */
8464
+ title: string;
8465
+ }[];
8436
8466
  /** @description Confirmation email settings. */
8437
8467
  confirmationEmail: {
8438
8468
  /** @description Send confirmation when an admin creates a booking. */
@@ -12296,6 +12326,249 @@ interface components {
12296
12326
  /** Format: uuid */
12297
12327
  userRefCreator?: string;
12298
12328
  };
12329
+ getScheduledDayPassesTransactions: {
12330
+ /** @description Pagination token to fetch the next page of results. Returned when more results exist. */
12331
+ nextPageToken?: string;
12332
+ /** @description List of scheduled day pass transactions. */
12333
+ scheduledTransactions: {
12334
+ /** @description Total day pass amount (absolute sum of expiring and permanent). */
12335
+ amount: number;
12336
+ /**
12337
+ * @deprecated
12338
+ * @description Deprecated. Use product instead.
12339
+ */
12340
+ booking?: {
12341
+ /**
12342
+ * Format: uuid
12343
+ * @description Booking id.
12344
+ */
12345
+ id: string;
12346
+ /** @description Booked resource. */
12347
+ resource: {
12348
+ /**
12349
+ * Format: uuid
12350
+ * @description Resource id.
12351
+ */
12352
+ id: string;
12353
+ /** @description Resource title. */
12354
+ title: string;
12355
+ };
12356
+ };
12357
+ /**
12358
+ * @deprecated
12359
+ * @description Deprecated. Use customer instead.
12360
+ */
12361
+ company?: {
12362
+ /**
12363
+ * Format: date-time
12364
+ * @description ISO timestamp of company creation.
12365
+ */
12366
+ createDate: string;
12367
+ /**
12368
+ * Format: uuid
12369
+ * @description Company id.
12370
+ */
12371
+ id: string;
12372
+ /**
12373
+ * Format: uuid
12374
+ * @description Location id.
12375
+ */
12376
+ locationRef: string;
12377
+ /** @description Company logo. */
12378
+ logo?: {
12379
+ /** @description Storage key of the company logo. */
12380
+ key: string;
12381
+ /** @description Public URL of the company logo. */
12382
+ url: string;
12383
+ };
12384
+ /** @description Company metadata. */
12385
+ metadata?: {
12386
+ [key: string]: unknown;
12387
+ };
12388
+ /** @description Internal notes. */
12389
+ notes?: string;
12390
+ /** @description Public logo URL derived from the company website. */
12391
+ publicLogoUrl?: string;
12392
+ /**
12393
+ * Format: uuid
12394
+ * @description Primary subscription id.
12395
+ */
12396
+ subscriptionRef: string | null;
12397
+ /** @description Company name. */
12398
+ title: string;
12399
+ };
12400
+ /**
12401
+ * Format: uuid
12402
+ * @deprecated
12403
+ * @description Deprecated. Use customer instead.
12404
+ */
12405
+ companyRef?: string;
12406
+ /**
12407
+ * Format: date-time
12408
+ * @description ISO timestamp of when the scheduled transaction was created.
12409
+ */
12410
+ createDate: string;
12411
+ /** @description Customer associated with this scheduled transaction. */
12412
+ customer: {
12413
+ /**
12414
+ * Format: uuid
12415
+ * @description ID of the company or membership.
12416
+ */
12417
+ id: string;
12418
+ /** @description Company logo. */
12419
+ logo?: {
12420
+ key: string;
12421
+ url: string;
12422
+ };
12423
+ /** @description Company name. */
12424
+ title?: string;
12425
+ /**
12426
+ * @description Whether the customer is a company or a user.
12427
+ * @enum {string}
12428
+ */
12429
+ type: "company" | "user";
12430
+ /** @description User details for membership customers. */
12431
+ user?: {
12432
+ about?: string | null;
12433
+ email?: string | null;
12434
+ /** Format: uuid */
12435
+ id: string;
12436
+ name?: string | null;
12437
+ phoneNumber?: string | null;
12438
+ photoUrl?: string | null;
12439
+ surname?: string | null;
12440
+ };
12441
+ };
12442
+ /**
12443
+ * Format: uuid
12444
+ * @description Unique identifier of the scheduled transaction.
12445
+ */
12446
+ id: string;
12447
+ /**
12448
+ * Format: uuid
12449
+ * @description ID of the organization (location).
12450
+ */
12451
+ locationRef: string;
12452
+ /**
12453
+ * Format: uuid
12454
+ * @deprecated
12455
+ * @description Deprecated. Use customer instead.
12456
+ */
12457
+ membershipRef?: string;
12458
+ /**
12459
+ * Format: uuid
12460
+ * @deprecated
12461
+ * @description Deprecated. Use userCreatedBy instead.
12462
+ */
12463
+ membershipRefCreator?: string;
12464
+ /**
12465
+ * Format: uuid
12466
+ * @description ID of the network.
12467
+ */
12468
+ networkRef: string;
12469
+ /** @description Product details. */
12470
+ product?: {
12471
+ /**
12472
+ * Format: uuid
12473
+ * @description ID of the associated booking.
12474
+ */
12475
+ bookingRef?: string;
12476
+ /** @description Display title of the product. */
12477
+ title: string;
12478
+ /**
12479
+ * @description Product type.
12480
+ * @enum {string}
12481
+ */
12482
+ type: "booking";
12483
+ };
12484
+ /**
12485
+ * Format: date-time
12486
+ * @description ISO timestamp of when the scheduled transaction was resolved into a day pass transaction.
12487
+ */
12488
+ resolveDate?: string;
12489
+ /**
12490
+ * Format: date-time
12491
+ * @description Date when the transaction is scheduled to resolve, anchored to the subscription interval the booking falls into.
12492
+ */
12493
+ scheduleDate: string;
12494
+ /** @description Transaction status. */
12495
+ status: string;
12496
+ /** @description Timezone of the subscription. */
12497
+ timezoneId: string;
12498
+ /**
12499
+ * @description Scheduled day pass transaction type.
12500
+ * @enum {string}
12501
+ */
12502
+ type: "booking";
12503
+ /**
12504
+ * @deprecated
12505
+ * @description Deprecated. Use userOwner instead.
12506
+ */
12507
+ user?: {
12508
+ about?: string | null;
12509
+ email?: string | null;
12510
+ /** Format: uuid */
12511
+ id: string;
12512
+ name?: string | null;
12513
+ phoneNumber?: string | null;
12514
+ photoUrl?: string | null;
12515
+ surname?: string | null;
12516
+ };
12517
+ /** @description User who created the transaction. */
12518
+ userCreatedBy?: {
12519
+ about?: string | null;
12520
+ email?: string | null;
12521
+ /** Format: uuid */
12522
+ id: string;
12523
+ name?: string | null;
12524
+ phoneNumber?: string | null;
12525
+ photoUrl?: string | null;
12526
+ surname?: string | null;
12527
+ };
12528
+ /**
12529
+ * @deprecated
12530
+ * @description Deprecated. Use userCreatedBy instead.
12531
+ */
12532
+ userCreator?: {
12533
+ about?: string | null;
12534
+ email?: string | null;
12535
+ /** Format: uuid */
12536
+ id: string;
12537
+ name?: string | null;
12538
+ phoneNumber?: string | null;
12539
+ photoUrl?: string | null;
12540
+ surname?: string | null;
12541
+ };
12542
+ /**
12543
+ * @deprecated
12544
+ * @description Deprecated. Use customer.user instead.
12545
+ */
12546
+ userOwner?: {
12547
+ about?: string | null;
12548
+ email?: string | null;
12549
+ /** Format: uuid */
12550
+ id: string;
12551
+ name?: string | null;
12552
+ phoneNumber?: string | null;
12553
+ photoUrl?: string | null;
12554
+ surname?: string | null;
12555
+ };
12556
+ /**
12557
+ * Format: uuid
12558
+ * @deprecated
12559
+ * @description Deprecated. Use userCreatedBy instead.
12560
+ */
12561
+ userRefCreator?: string;
12562
+ /**
12563
+ * Format: uuid
12564
+ * @deprecated
12565
+ * @description Deprecated. Use customer.user instead.
12566
+ */
12567
+ userRefOwner?: string;
12568
+ }[];
12569
+ /** @description Query string with nextPageToken and the request filter to fetch the next page of results. Returned when more results exist. */
12570
+ searchQueryNext?: string;
12571
+ };
12299
12572
  getDayPassesTransactions: {
12300
12573
  /** @description Pagination token to fetch the next page of results. */
12301
12574
  nextPageToken?: string;
@@ -14449,7 +14722,7 @@ interface components {
14449
14722
  * @description Event application type. purchase: paid signup (requires price). none: free/RSVP-style.
14450
14723
  * @enum {string}
14451
14724
  */
14452
- applicationType?: "purchase" | "none";
14725
+ applicationType: "purchase" | "none";
14453
14726
  /** @description Confirmation email settings. */
14454
14727
  confirmationEmail?: {
14455
14728
  /** @description Whether a confirmation email is sent after registration. */
@@ -14544,7 +14817,7 @@ interface components {
14544
14817
  * @description Event application type. purchase: paid signup (requires price). none: free/RSVP-style.
14545
14818
  * @enum {string}
14546
14819
  */
14547
- applicationType?: "purchase" | "none";
14820
+ applicationType: "purchase" | "none";
14548
14821
  /** @description Confirmation email settings. */
14549
14822
  confirmationEmail?: {
14550
14823
  /** @description Whether a confirmation email is sent after registration. */
@@ -15241,13 +15514,13 @@ interface components {
15241
15514
  /** @description Whether dynamic pricing is enabled. */
15242
15515
  enabled: boolean;
15243
15516
  };
15244
- /** @description Google Calendar integration settings. */
15517
+ /** @description Google Calendar integration settings. Pass null to disconnect the calendar from the resource. */
15245
15518
  googleCalendar?: {
15246
15519
  /** @description Google Calendar id. */
15247
15520
  id: string;
15248
15521
  /** @description Whether two-way sync is enabled. */
15249
15522
  twoWaySyncEnabled: boolean;
15250
- };
15523
+ } | null;
15251
15524
  /**
15252
15525
  * Format: uuid
15253
15526
  * @description Optional client-provided resource id.
@@ -15285,7 +15558,7 @@ interface components {
15285
15558
  * Format: uuid
15286
15559
  * @description Parent resource id when creating a child resource.
15287
15560
  */
15288
- parentRef?: string;
15561
+ parentRef?: string | null;
15289
15562
  /** @description Membership plan tiers sold for this resource. */
15290
15563
  plans?: {
15291
15564
  /** @description Whether membership plans can be sold for this resource. */
@@ -15573,13 +15846,13 @@ interface components {
15573
15846
  /** @description Whether dynamic pricing is enabled. */
15574
15847
  enabled: boolean;
15575
15848
  };
15576
- /** @description Google Calendar integration settings. */
15849
+ /** @description Google Calendar integration settings. Pass null to disconnect the calendar from the resource. */
15577
15850
  googleCalendar?: {
15578
15851
  /** @description Google Calendar id. */
15579
15852
  id: string;
15580
15853
  /** @description Whether two-way sync is enabled. */
15581
15854
  twoWaySyncEnabled: boolean;
15582
- };
15855
+ } | null;
15583
15856
  /** @description Kisi access group reference. */
15584
15857
  kisiGroupRef?: number | null;
15585
15858
  /** @description Images to attach when creating the resource. */
@@ -15607,7 +15880,7 @@ interface components {
15607
15880
  * Format: uuid
15608
15881
  * @description Parent resource id when creating a child resource.
15609
15882
  */
15610
- parentRef?: string;
15883
+ parentRef?: string | null;
15611
15884
  /** @description Membership plan tiers sold for this resource. */
15612
15885
  plans?: {
15613
15886
  /** @description Whether membership plans can be sold for this resource. */
@@ -23310,6 +23583,47 @@ interface operations {
23310
23583
  };
23311
23584
  };
23312
23585
  };
23586
+ getScheduledDayPassesTransactions: {
23587
+ parameters: {
23588
+ query?: {
23589
+ /** @description UUID of the company or membership whose scheduled day pass transactions to list. */
23590
+ customerRef?: string;
23591
+ /** @description Maximum number of transactions per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100. */
23592
+ limit?: number;
23593
+ /** @description Token to retrieve the next page of results. */
23594
+ nextPageToken?: string;
23595
+ /** @description UUID of the subscription whose scheduled day pass transactions to list. */
23596
+ subscriptionRef?: string;
23597
+ };
23598
+ header?: {
23599
+ /** @description The id of the network. Required when using bearer token authentication */
23600
+ "spacebring-network-id"?: string;
23601
+ };
23602
+ path?: never;
23603
+ cookie?: never;
23604
+ };
23605
+ requestBody?: never;
23606
+ responses: {
23607
+ /** @description OK */
23608
+ 200: {
23609
+ headers: {
23610
+ [name: string]: unknown;
23611
+ };
23612
+ content: {
23613
+ "application/json": components["schemas"]["getScheduledDayPassesTransactions"];
23614
+ };
23615
+ };
23616
+ /** @description Bad Request */
23617
+ 400: {
23618
+ headers: {
23619
+ [name: string]: unknown;
23620
+ };
23621
+ content: {
23622
+ "application/json": components["schemas"]["responseError"];
23623
+ };
23624
+ };
23625
+ };
23626
+ };
23313
23627
  getDayPassesTransactions: {
23314
23628
  parameters: {
23315
23629
  query?: {
@@ -24276,6 +24590,8 @@ type CreditTransaction = NonNullable<components["schemas"]["transactionCreditsEx
24276
24590
  type DayPassTransaction = NonNullable<components["schemas"]["transactionDayPasses"]>;
24277
24591
  /** A MoneyTransaction entity as returned by the Spacebring API. */
24278
24592
  type MoneyTransaction = NonNullable<components["schemas"]["transaction"]>;
24593
+ /** A ScheduledTransaction entity as returned by the Spacebring API. */
24594
+ type ScheduledTransaction = NonNullable<operations["getScheduledDayPassesTransactions"]["responses"][200]["content"]["application/json"]["scheduledTransactions"]>[number];
24279
24595
  /** Query parameters for `sb.transactions.credits.list()`. */
24280
24596
  interface GetCreditsTransactionsQuery {
24281
24597
  /** The number of items to return */
@@ -24333,6 +24649,17 @@ interface GetMoneyTransactionsQuery {
24333
24649
  /** Token to retrieve the next page of results. */
24334
24650
  nextPageToken?: string;
24335
24651
  }
24652
+ /** Query parameters for `sb.transactions.dayPasses.scheduled.list()`. */
24653
+ interface GetScheduledDayPassesTransactionsQuery {
24654
+ /** UUID of the company or membership whose scheduled day pass transactions to list. */
24655
+ customerRef?: string;
24656
+ /** Maximum number of transactions per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100. */
24657
+ limit?: number;
24658
+ /** Token to retrieve the next page of results. */
24659
+ nextPageToken?: string;
24660
+ /** UUID of the subscription whose scheduled day pass transactions to list. */
24661
+ subscriptionRef?: string;
24662
+ }
24336
24663
  /** Request body for `sb.transactions.credits.create()`. */
24337
24664
  type CreateCreditsTransactionBody = NonNullable<NonNullable<operations["createCreditsTransaction"]["requestBody"]>["content"]["application/json"]["transaction"]>;
24338
24665
  /** Request body for `sb.transactions.dayPasses.create()`. */
@@ -25402,6 +25729,14 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
25402
25729
  iterate(query?: Omit<GetDayPassesTransactionsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<DayPassTransaction, void, undefined>;
25403
25730
  get(id: string, options?: SpacebringRequestOptions): Promise<DayPassTransaction>;
25404
25731
  create(transaction: CreateDayPassesTransactionBody, options?: SpacebringRequestOptions): Promise<DayPassTransaction>;
25732
+ scheduled: {
25733
+ list(query?: GetScheduledDayPassesTransactionsQuery, options?: SpacebringRequestOptions): Promise<{
25734
+ nextPageToken?: string;
25735
+ scheduledTransactions: ScheduledTransaction[];
25736
+ searchQueryNext?: string;
25737
+ }>;
25738
+ iterate(query?: Omit<GetScheduledDayPassesTransactionsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<ScheduledTransaction, void, undefined>;
25739
+ };
25405
25740
  };
25406
25741
  money: {
25407
25742
  list(query: GetMoneyTransactionsQuery, options?: SpacebringRequestOptions): Promise<{
@@ -25510,4 +25845,4 @@ declare class SpacebringError extends Error {
25510
25845
  });
25511
25846
  }
25512
25847
 
25513
- export { type Activity, type AddEventHostsBody, type AltCurrency, type Application, type ApplyBenefitBody, 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 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 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 };
25848
+ export { type Activity, type AddEventHostsBody, type AltCurrency, type Application, type ApplyBenefitBody, 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 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 ScheduledTransaction, 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 };
package/dist/index.js CHANGED
@@ -2499,6 +2499,27 @@ function createTransactions(client, defaults) {
2499
2499
  */
2500
2500
  async create(transaction, options) {
2501
2501
  return unwrapProp(await client.POST("/transactions/day_passes/v1", { body: { transaction }, signal: options?.signal }), "transaction", "POST /transactions/day_passes/v1");
2502
+ },
2503
+ scheduled: {
2504
+ /**
2505
+ * Retrieve scheduled day pass transactions
2506
+ *
2507
+ * Retrieve scheduled day passes transactions of a subscription or a customer.
2508
+ */
2509
+ async list(query, options) {
2510
+ return unwrap(await client.GET("/transactions/day_passes/scheduled/v1", { params: { query }, signal: options?.signal }), "GET /transactions/day_passes/scheduled/v1");
2511
+ },
2512
+ /**
2513
+ * Retrieve scheduled day pass transactions — iterates every item across all pages.
2514
+ *
2515
+ * Retrieve scheduled day passes transactions of a subscription or a customer.
2516
+ */
2517
+ iterate(query, options) {
2518
+ return paginate(
2519
+ async (nextPageToken) => unwrap(await client.GET("/transactions/day_passes/scheduled/v1", { params: { query: { ...query, nextPageToken } }, signal: options?.signal }), "GET /transactions/day_passes/scheduled/v1"),
2520
+ "scheduledTransactions"
2521
+ );
2522
+ }
2502
2523
  }
2503
2524
  },
2504
2525
  money: {