reach-api-sdk 1.0.227 → 1.0.229

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 CHANGED
@@ -1,10 +1,52 @@
1
1
  # reach-sdk usage
2
- When changes are made to reach-api that affect exposed models and services, perform the following to update the SDK
3
2
 
4
- - With reach-api running browse to https://localhost:44310/swagger/v1/swagger.yaml
5
- - copy the contents and paste in \src\definition\swagger.yaml
6
- - run `npm run build` to build models and services from the new yaml definition
7
- - check the current build version in package.json and increment by one `npm version 1.0.xxx`
3
+ When changes are made to reach-api that affect exposed models and services, regenerate the SDK from OpenAPI — do not hand-edit generated files under `src/models`, `src/services`, `src/core`, or `src/index.ts`.
8
4
 
9
- # publishing to registry
10
- Shervin will publish to NPM, contact him
5
+ ## Regenerate from reach-api
6
+
7
+ 1. Run **reach-api** locally.
8
+ 2. Sync swagger and rebuild:
9
+
10
+ ```bash
11
+ npm run sync
12
+ ```
13
+
14
+ `npm run sync` fetches `https://localhost:44310/swagger/v1/swagger.yaml` (override with `REACH_API_SWAGGER_URL`) and runs the full build.
15
+
16
+ ## Local development with played-partner-platform
17
+
18
+ played-partner-platform overlays this package locally via `npm run sdk:local` (does not modify package.json). After regenerating:
19
+
20
+ ```bash
21
+ # In played-partner-platform
22
+ npm run sdk:local
23
+ ```
24
+
25
+ Or sync + dev server in one step:
26
+
27
+ ```bash
28
+ npm run sync:sdk
29
+ ```
30
+
31
+ Before commit, restore the published SDK:
32
+
33
+ ```bash
34
+ npm run sdk:published
35
+ ```
36
+
37
+ ## Publishing to registry
38
+
39
+ Check the current version in `package.json`, increment, then publish:
40
+
41
+ ```bash
42
+ npm version 1.0.xxx
43
+ ```
44
+
45
+ Contact Shervin to publish to NPM.
46
+
47
+ After publishing, restore the published SDK in partner platform when not doing local API work:
48
+
49
+ ```bash
50
+ # In played-partner-platform
51
+ npm run sdk:published
52
+ ```
@@ -1888,6 +1888,66 @@ type Customer = {
1888
1888
  wallet?: Wallet;
1889
1889
  };
1890
1890
 
1891
+ /**
1892
+ * Controls the wallet credit period status.
1893
+ */
1894
+ declare enum WalletCreditPeriodStatus {
1895
+ ACTIVE = "Active",
1896
+ CLOSED = "Closed"
1897
+ }
1898
+
1899
+ /**
1900
+ * Represents a credit entitlement window for a wallet.
1901
+ */
1902
+ type WalletCreditPeriod = {
1903
+ /**
1904
+ * Gets or sets the entities Id.
1905
+ */
1906
+ id?: string;
1907
+ /**
1908
+ * Gets or sets the tenant Id.
1909
+ */
1910
+ tenantId: string;
1911
+ /**
1912
+ * Gets or sets the created date of this entity.
1913
+ */
1914
+ dateCreated: string;
1915
+ /**
1916
+ * Gets or sets the last modified date of this entity.
1917
+ */
1918
+ dateModified: string;
1919
+ /**
1920
+ * Gets or sets the modified by Id.
1921
+ */
1922
+ modifiedById?: string | null;
1923
+ /**
1924
+ * Gets or sets a value indicating whether the record is live and available for use within the application.
1925
+ */
1926
+ isLive: boolean;
1927
+ /**
1928
+ * Gets or sets the wallet id.
1929
+ */
1930
+ walletId: string;
1931
+ /**
1932
+ * Gets or sets the first day credits are usable (inclusive).
1933
+ */
1934
+ periodStartDate: string;
1935
+ /**
1936
+ * Gets or sets the last day credits are usable (inclusive).
1937
+ */
1938
+ periodEndDate: string;
1939
+ /**
1940
+ * Gets or sets the credit award amount for this period.
1941
+ */
1942
+ creditAllocation: number;
1943
+ /**
1944
+ * Gets or sets a value indicating whether this period should auto-renew when it ends.
1945
+ */
1946
+ autoRenew: boolean;
1947
+ status: WalletCreditPeriodStatus;
1948
+ wallet?: Wallet;
1949
+ };
1950
+
1891
1951
  /**
1892
1952
  * Controls the customer cancellation options.
1893
1953
  */
@@ -6200,8 +6260,17 @@ type Wallet = {
6200
6260
  * Gets or sets the wallet currency.
6201
6261
  */
6202
6262
  currency?: string | null;
6263
+ /**
6264
+ * Gets or sets the current active credit period id when wallet credit periods are enabled.
6265
+ */
6266
+ currentCreditPeriodId?: string | null;
6267
+ /**
6268
+ * Gets the period end date for the current credit period. Used by partner platform wallet UI.
6269
+ */
6270
+ readonly cycleEndDate?: string | null;
6203
6271
  customer?: Customer;
6204
6272
  attendee?: Attendee;
6273
+ currentCreditPeriod?: WalletCreditPeriod;
6205
6274
  /**
6206
6275
  * Gets or sets the wallet transactions.
6207
6276
  */
@@ -6252,6 +6321,10 @@ type Attendee = {
6252
6321
  * Gets or sets the last name.
6253
6322
  */
6254
6323
  lastName: string;
6324
+ /**
6325
+ * Gets or sets the tenant-scoped external reference for integration with external systems.
6326
+ */
6327
+ externalReference?: string | null;
6255
6328
  /**
6256
6329
  * Gets the attendees abbreviated name.
6257
6330
  */
@@ -6295,6 +6368,11 @@ type AttendeePatch = {
6295
6368
  * patch fields are applied to that record as well as to the attendee row where applicable.
6296
6369
  */
6297
6370
  dateOfBirth?: string | null;
6371
+ /**
6372
+ * Gets or sets the tenant-scoped external reference for integration with external systems.
6373
+ * Only applicable when enable_attendee_external_reference is enabled for the tenant.
6374
+ */
6375
+ externalReference?: string | null;
6298
6376
  };
6299
6377
 
6300
6378
  /**
@@ -6323,13 +6401,35 @@ type AttendeePost = {
6323
6401
  * When wallet tracking level is Attendee, a wallet is always created for the attendee.
6324
6402
  * If InitialWalletBalance is provided and greater than 0, the wallet will be topped up with this amount.
6325
6403
  * If not provided or set to 0, the wallet will be created with a balance of 0.
6404
+ * Ignored when enable_wallet_credit_periods is enabled; use credit period fields instead.
6326
6405
  */
6327
6406
  initialWalletBalance?: number | null;
6407
+ /**
6408
+ * Gets or sets the credit period start date. Required when wallet credit periods are enabled.
6409
+ */
6410
+ creditPeriodStartDate?: string | null;
6411
+ /**
6412
+ * Gets or sets the credit period end date. Required when wallet credit periods are enabled.
6413
+ */
6414
+ creditPeriodEndDate?: string | null;
6415
+ /**
6416
+ * Gets or sets the credit allocation for the initial period. Required when wallet credit periods are enabled.
6417
+ */
6418
+ creditAllocation?: number | null;
6419
+ /**
6420
+ * Gets or sets a value indicating whether the credit period auto-renews. Defaults to true when not specified.
6421
+ */
6422
+ creditPeriodAutoRenew?: boolean | null;
6328
6423
  /**
6329
6424
  * Gets or sets the attendee date of birth.
6330
6425
  * This is used to resolve or create the linked end_user_identity record for person-level identity tracking.
6331
6426
  */
6332
6427
  dateOfBirth?: string | null;
6428
+ /**
6429
+ * Gets or sets the tenant-scoped external reference for integration with external systems.
6430
+ * Only applicable when enable_attendee_external_reference is enabled for the tenant.
6431
+ */
6432
+ externalReference?: string | null;
6333
6433
  };
6334
6434
 
6335
6435
  declare class AttendeesService {
@@ -6395,7 +6495,7 @@ declare class AttendeesService {
6395
6495
  * @returns AttendeePage OK
6396
6496
  * @throws ApiError
6397
6497
  */
6398
- getPage({ customerId, firstName, lastName, pageNumber, take, skip, limitListRequests, tenantId, modifiedById, modifiedByIds, dateCreatedGte, dateCreatedLte, isLive, sortOrderDirection, }: {
6498
+ getPage({ customerId, firstName, lastName, externalReference, pageNumber, take, skip, limitListRequests, tenantId, modifiedById, modifiedByIds, dateCreatedGte, dateCreatedLte, isLive, sortOrderDirection, }: {
6399
6499
  /**
6400
6500
  * Gets or sets the queryable customer id.
6401
6501
  */
@@ -6408,6 +6508,10 @@ declare class AttendeesService {
6408
6508
  * Gets or sets the queryable attendee last name.
6409
6509
  */
6410
6510
  lastName?: string;
6511
+ /**
6512
+ * Gets or sets the queryable attendee external reference.
6513
+ */
6514
+ externalReference?: string;
6411
6515
  /**
6412
6516
  * Gets or sets the page number for paged queries.
6413
6517
  */
@@ -6491,7 +6595,7 @@ declare class AttendeesService {
6491
6595
  * @returns boolean OK
6492
6596
  * @throws ApiError
6493
6597
  */
6494
- exists({ customerId, firstName, lastName, pageNumber, take, skip, limitListRequests, tenantId, modifiedById, modifiedByIds, dateCreatedGte, dateCreatedLte, isLive, sortOrderDirection, }: {
6598
+ exists({ customerId, firstName, lastName, externalReference, pageNumber, take, skip, limitListRequests, tenantId, modifiedById, modifiedByIds, dateCreatedGte, dateCreatedLte, isLive, sortOrderDirection, }: {
6495
6599
  /**
6496
6600
  * Gets or sets the queryable customer id.
6497
6601
  */
@@ -6504,6 +6608,10 @@ declare class AttendeesService {
6504
6608
  * Gets or sets the queryable attendee last name.
6505
6609
  */
6506
6610
  lastName?: string;
6611
+ /**
6612
+ * Gets or sets the queryable attendee external reference.
6613
+ */
6614
+ externalReference?: string;
6507
6615
  /**
6508
6616
  * Gets or sets the page number for paged queries.
6509
6617
  */
@@ -6554,7 +6662,7 @@ declare class AttendeesService {
6554
6662
  * @returns number OK
6555
6663
  * @throws ApiError
6556
6664
  */
6557
- count({ customerId, firstName, lastName, pageNumber, take, skip, limitListRequests, tenantId, modifiedById, modifiedByIds, dateCreatedGte, dateCreatedLte, isLive, sortOrderDirection, }: {
6665
+ count({ customerId, firstName, lastName, externalReference, pageNumber, take, skip, limitListRequests, tenantId, modifiedById, modifiedByIds, dateCreatedGte, dateCreatedLte, isLive, sortOrderDirection, }: {
6558
6666
  /**
6559
6667
  * Gets or sets the queryable customer id.
6560
6668
  */
@@ -6567,6 +6675,10 @@ declare class AttendeesService {
6567
6675
  * Gets or sets the queryable attendee last name.
6568
6676
  */
6569
6677
  lastName?: string;
6678
+ /**
6679
+ * Gets or sets the queryable attendee external reference.
6680
+ */
6681
+ externalReference?: string;
6570
6682
  /**
6571
6683
  * Gets or sets the page number for paged queries.
6572
6684
  */
@@ -6617,7 +6729,7 @@ declare class AttendeesService {
6617
6729
  * @returns Attendee OK
6618
6730
  * @throws ApiError
6619
6731
  */
6620
- getListWithoutReferences({ customerId, firstName, lastName, pageNumber, take, skip, limitListRequests, tenantId, modifiedById, modifiedByIds, dateCreatedGte, dateCreatedLte, isLive, sortOrderDirection, }: {
6732
+ getListWithoutReferences({ customerId, firstName, lastName, externalReference, pageNumber, take, skip, limitListRequests, tenantId, modifiedById, modifiedByIds, dateCreatedGte, dateCreatedLte, isLive, sortOrderDirection, }: {
6621
6733
  /**
6622
6734
  * Gets or sets the queryable customer id.
6623
6735
  */
@@ -6630,6 +6742,10 @@ declare class AttendeesService {
6630
6742
  * Gets or sets the queryable attendee last name.
6631
6743
  */
6632
6744
  lastName?: string;
6745
+ /**
6746
+ * Gets or sets the queryable attendee external reference.
6747
+ */
6748
+ externalReference?: string;
6633
6749
  /**
6634
6750
  * Gets or sets the page number for paged queries.
6635
6751
  */
@@ -6680,7 +6796,7 @@ declare class AttendeesService {
6680
6796
  * @returns Attendee OK
6681
6797
  * @throws ApiError
6682
6798
  */
6683
- getListIdName({ customerId, firstName, lastName, pageNumber, take, skip, limitListRequests, tenantId, modifiedById, modifiedByIds, dateCreatedGte, dateCreatedLte, isLive, sortOrderDirection, }: {
6799
+ getListIdName({ customerId, firstName, lastName, externalReference, pageNumber, take, skip, limitListRequests, tenantId, modifiedById, modifiedByIds, dateCreatedGte, dateCreatedLte, isLive, sortOrderDirection, }: {
6684
6800
  /**
6685
6801
  * Gets or sets the queryable customer id.
6686
6802
  */
@@ -6693,6 +6809,10 @@ declare class AttendeesService {
6693
6809
  * Gets or sets the queryable attendee last name.
6694
6810
  */
6695
6811
  lastName?: string;
6812
+ /**
6813
+ * Gets or sets the queryable attendee external reference.
6814
+ */
6815
+ externalReference?: string;
6696
6816
  /**
6697
6817
  * Gets or sets the page number for paged queries.
6698
6818
  */
@@ -46400,6 +46520,11 @@ type TenantSetting = {
46400
46520
  * When enabled, prices will be displayed as 'credits' rather than currency.
46401
46521
  */
46402
46522
  walletOnlyPayments?: boolean;
46523
+ /**
46524
+ * Gets or sets a value indicating whether wallet credit periods are enabled for the tenant.
46525
+ * When enabled, attendee wallets require an active credit period for bookings and allocation management.
46526
+ */
46527
+ enableWalletCreditPeriods?: boolean;
46403
46528
  /**
46404
46529
  * Gets or sets a value indicating whether customer portal WorkOS login is restricted to pre-provisioned customers only.
46405
46530
  * When true, the authenticated email must match a live customer row (email or display_email) for this tenant.
@@ -46415,6 +46540,18 @@ type TenantSetting = {
46415
46540
  * When false (default), storefronts should hide WorkOS sign-in; use for phased rollout per tenant.
46416
46541
  */
46417
46542
  customerPortalWorkOsLoginEnabled?: boolean;
46543
+ /**
46544
+ * Gets or sets a value indicating whether attendee external references are enabled for the tenant.
46545
+ */
46546
+ enableAttendeeExternalReference?: boolean;
46547
+ /**
46548
+ * Gets or sets a value indicating whether external_reference is required when creating attendees.
46549
+ */
46550
+ requireAttendeeExternalReference?: boolean;
46551
+ /**
46552
+ * Gets or sets the label shown for the attendee external reference field in partner UI.
46553
+ */
46554
+ attendeeExternalReferenceLabel?: string | null;
46418
46555
  /**
46419
46556
  * Gets the next order number in the sequence.
46420
46557
  */
@@ -62449,6 +62586,10 @@ type DatabaseState = {
62449
62586
  * Gets or sets a value indicating whether facilities database records exist.
62450
62587
  */
62451
62588
  facilitiesExist: boolean;
62589
+ /**
62590
+ * Gets or sets a value indicating whether sellable item (product) database records exist.
62591
+ */
62592
+ sellableItemsExist: boolean;
62452
62593
  /**
62453
62594
  * Gets or sets a value indicating whether scheduled session database records exist.
62454
62595
  */
@@ -71862,6 +72003,24 @@ declare class WaitlistOpportunityReportService {
71862
72003
  }): CancelablePromise<Array<WaitlistOpportunityReport>>;
71863
72004
  }
71864
72005
 
72006
+ /**
72007
+ * Request body for mid-cycle credit reassessment.
72008
+ */
72009
+ type WalletCreditPeriodReassessPost = {
72010
+ /**
72011
+ * Gets or sets the new credit allocation. Wallet balance is set to this amount immediately.
72012
+ */
72013
+ creditAllocation: number;
72014
+ /**
72015
+ * Gets or sets an optional updated period end date.
72016
+ */
72017
+ periodEndDate?: string | null;
72018
+ /**
72019
+ * Gets or sets an optional auto-renew flag.
72020
+ */
72021
+ autoRenew?: boolean | null;
72022
+ };
72023
+
71865
72024
  type WalletPage = {
71866
72025
  pagination: Pagination;
71867
72026
  readonly items: Array<Wallet>;
@@ -71966,6 +72125,21 @@ declare class WalletsService {
71966
72125
  */
71967
72126
  attendeeId: string;
71968
72127
  }): CancelablePromise<Wallet>;
72128
+ /**
72129
+ * Reassesses the active credit period for a wallet and sets balance to the new allocation.
72130
+ * @returns Wallet OK
72131
+ * @throws ApiError
72132
+ */
72133
+ reassessCreditPeriod({ id, requestBody, }: {
72134
+ /**
72135
+ * The wallet id.
72136
+ */
72137
+ id: string;
72138
+ /**
72139
+ * The reassessment request.
72140
+ */
72141
+ requestBody?: WalletCreditPeriodReassessPost;
72142
+ }): CancelablePromise<Wallet>;
71969
72143
  /**
71970
72144
  * Gets the transaction history for a wallet.
71971
72145
  * @returns WalletTransaction OK
@@ -73134,4 +73308,4 @@ type ValidationResultModel = {
73134
73308
  readonly errors?: Array<ValidationError> | null;
73135
73309
  };
73136
73310
 
73137
- export { AccessCredential, AccessCredentialPage, AccessCredentialPatch, AccessCredentialPost, AccessCredentialsService, Activity, ActivityFacet, ActivityPerformance, ActivityPerformancePage, ActivityPerformancePatch, ActivityPerformancePost, ActivityPerformanceService, ActivitySearchResponse, ActivityService, ActivityType, ActivityTypeCategory, ActivityTypeCategoryService, AddressBookItem, AddressBooksRequest, AddressComponent, AdvanceBooking, Amenity, AmenityService, AmenityType, ApiClient, ApiError, AppUserRole, ApplicationRole, Attendee, AttendeePage, AttendeePatch, AttendeePost, AttendeeWalletDeductionPreview, AttendeesService, AutoCompleteResponseModel, AvailabilityIndicator, BadEnglandReportService, BaseHttpRequest, BookingService, BookingStatus, CancelError, CancelablePromise, CancellationPoliciesService, CancellationPolicy, CancellationPolicyPage, CancellationPolicyPatch, CancellationPolicyPost, ChatService, CheckoutPlatform, ChoiceMessage, CodelocksLock, CodelocksLockPage, CodelocksLockPatch, CodelocksLockPost, CodelocksLocksService, CompletionChoice, ContactOnConfirmation, Country, CountryService, Course, CourseBookingCutoff, CourseCreate, CourseEmailAttendeesPatch, CourseEmailWaitlistPatch, CoursePage, CoursePatch, CoursePost, CourseSearchSortBy, CourseSession, CourseSessionPage, CourseSessionPatch, CourseSessionPost, CourseSessionReschedulePatch, CourseSessionSchedule, CourseSessionSchedulePage, CourseSessionSchedulePatch, CourseSessionSchedulePost, CourseSessionSchedulesService, CourseSessionsService, CourseStatus, CoursesService, CreateDeal, CreateEmailSettings, CreateOffer, CreateQuestion, CreateQuestionOption, CreateTemplateDetail, CreateTemplateFieldPermission, CreateVenue, CustomDateRange, CustomDateRangeOption, CustomFieldDataType, CustomFieldDefinition, CustomFieldDefinitionPage, CustomFieldDefinitionPatch, CustomFieldDefinitionPost, CustomFieldDefinitionWithValue, CustomFieldOption, CustomFieldOptionDto, CustomFieldOptionPost, CustomFieldValueEntityType, CustomFieldValueUpdate, CustomFieldsBulkUpdate, CustomFieldsService, Customer, CustomerAccountInvitePatch, CustomerAuthService, CustomerCancellationOption, CustomerEmailPatch, CustomerPage, CustomerPatch, CustomerPortalAccountPatch, CustomerPortalService, CustomerPost, CustomerStats, CustomerType, CustomerWalletDeductionPreview, CustomersService, DatabaseState, DayOfWeek, Deal, DealActivitiesService, DealActivity, DealActivityPage, DealActivityPatch, DealActivityPost, DealCreate, DealDiscountType, DealPage, DealPatch, DealPost, DealTarget, DealType, DealsService, DescriptionCompletionResponse, DiscountCodeUse, DiscountCodeUsePage, DiscountCodeUsePatch, DiscountCodeUsePost, DiscountCodeUsesService, DotdigitalCanonicalField, DotdigitalService, DotdigitalSourceType, EmailReminderSchedule, EmailReminderSchedulePage, EmailReminderSchedulePatch, EmailReminderSchedulePost, EmailReminderSchedulesService, EmailSetting, EmailSettingPage, EmailSettingPatch, EmailSettingPost, EmailSettingsService, EndUserAccessibleTenantDto, EndUserIdentity, EndUserIdentitySecureToken, EndUserIdentitySecureTokenService, EnglandGolfReportService, EventTiming, FacilitiesService, Facility, FacilityIndividual, FacilityIndividualPage, FacilityIndividualPatch, FacilityIndividualPost, FacilityIndividualsService, FacilityIndividualsType, FacilityPage, FacilityPatch, FacilityPost, FeatureAnnouncementDismissPost, FeatureAnnouncementForUserDto, FeatureAnnouncementsService, FieldPermission, FilestackImageMetaResponseModel, FilestackService, Gender, GenericActivity, GenericActivityPage, GenericActivityService, GeocodeResponseModel, GeocodeService, GooglePrediction, HelpersService, HereAddressDetails, HereAutoComplete, HereAutocompleteLookupService, HereLookupResults, HereMapDetails, HerePositionDetails, HttpStatusCode, IOpportunity, Image, ImageLibraryCategory, ImageLibraryCategoryService, ImageLibraryImage, ImageLibraryImageService, ImagePage, ImagePatch, ImagePost, ImageUploadHistory, ImageUploadHistoryPage, ImageUploadHistoryPatch, ImageUploadHistoryPost, ImageUploadHistoryService, ImagesService, IntegrationCodelocksSettings, IntegrationCodelocksSettingsCreate, IntegrationCodelocksSettingsPage, IntegrationCodelocksSettingsPatch, IntegrationCodelocksSettingsPost, IntegrationCodelocksSettingsService, IntegrationDotDigitalSettingsService, IntegrationDotdigitalFieldMap, IntegrationDotdigitalFieldMapPage, IntegrationDotdigitalFieldMapPatch, IntegrationDotdigitalFieldMapPost, IntegrationDotdigitalFieldMapService, IntegrationDotdigitalLog, IntegrationDotdigitalLogPage, IntegrationDotdigitalLogPatch, IntegrationDotdigitalLogPost, IntegrationDotdigitalLogService, IntegrationDotdigitalLogStatus, IntegrationDotdigitalSettings, IntegrationDotdigitalSettingsCreate, IntegrationDotdigitalSettingsPage, IntegrationDotdigitalSettingsPatch, IntegrationDotdigitalSettingsPost, IntegrationQueue, IntegrationQueuePage, IntegrationQueuePatch, IntegrationQueuePost, IntegrationQueueService, IntegrationType, InviteStatus, LeasingService, LocationReport, LocationReportPage, LocationReportPatch, LocationReportPost, LocationReportSummary, LocationsReportService, LoqateGeocode, LoqatePlaceResult, LoqatePlacesService, LoqatePrediction, Northeast, NotificationQueue, NotificationQueuePage, NotificationQueuePatch, NotificationQueuePost, NotificationQueueService, NotificationSetting, NotificationSettingPage, NotificationSettingPatch, NotificationSettingPost, NotificationSettingsService, NotificationType, Offer, OfferPage, OfferPatch, OfferPost, OffersService, OpenAPI, OpenAPIConfig, OpenactiveFeedIntermediate, OpenactiveFeedIntermediatePage, OpenactiveFeedIntermediatePatch, OpenactiveFeedIntermediatePost, OpenactiveFeedIntermediateService, OpenactiveFeedItem, OpenactiveFeedItemPage, OpenactiveFeedItemPatch, OpenactiveFeedItemPost, OpenactiveFeedItemService, OpportunityRegister, OpportunityRegisterPage, OpportunityRegisterPatch, OpportunityRegisterPost, OpportunityRegisterService, OpportunityRegisterStatus, OpportunityType, Order, OrderApplyDiscountCode, OrderDeal, OrderEmailCustomerPatch, OrderItem, OrderItemCodelocksAccess, OrderItemDeal, OrderItemPage, OrderItemPatch, OrderItemPost, OrderItemReport, OrderItemReportPage, OrderItemReportPatch, OrderItemReportPost, OrderItemReportService, OrderItemReportSummary, OrderItemStatus, OrderItemsService, OrderPage, OrderPatch, OrderPatchItem, OrderPost, OrderPostItem, OrderRefresh, OrderSource, OrderStage, OrderToken, OrderTokenPage, OrderTokenPatch, OrderTokenPost, OrderUpdateContact, OrdersService, OrgCourseUtilisation, OrgCourseUtilisationPage, OrgCourseUtilisationPatch, OrgCourseUtilisationPost, OrgCourseUtilisationService, OrganisationApplicationFeeHandling, OrganisationAvailableChannel, OrganisationRefundPolicy, OrganisationTaxMode, OrganisationType, Pagination, Payment, PaymentMethod, PaymentPage, PaymentPatch, PaymentPoliciesService, PaymentPolicy, PaymentPolicyPage, PaymentPolicyPatch, PaymentPolicyPost, PaymentPolicySplitType, PaymentPost, PaymentsService, PeriodsOfWeek, Permission, PermissionPage, PermissionPatch, PermissionPost, PermissionsService, PlaceAddress, PlaceDetailsResponseModel, PlaceGeometry, PlaceLocation, PlaceResult, PlaceViewport, PlacesService, PlatformPayout, PlatformPayoutPage, PlatformPayoutPatch, PlatformPayoutPost, PlatformPayoutsService, PlusCode, Prepayment, Programme, ProgrammePage, ProgrammePatch, ProgrammePost, ProgrammesService, Provider, ProviderActivityLocation, ProviderCreate, ProviderPage, ProviderPatch, ProviderPost, ProviderType, ProviderTypesService, ProvidersService, PublicBookingService, PublicCalendarService, PublicCoursesService, PublicCustomersService, PublicFacilitiesService, PublicFilestackWebhookService, PublicGenericActivityService, PublicHealthCheckService, PublicLeasingService, PublicNetworksService, PublicOpportunityRegisterService, PublicOrderItemsService, PublicOrderTokensService, PublicOrdersService, PublicProgrammesService, PublicProvidersService, PublicScheduledSessionsService, PublicSellableItemsService, PublicSessionsService, PublicSlotsService, PublicStorefrontStaffPreviewService, PublicStripeWebhookService, PublicSurveyCompletionLogsService, PublicSurveyQuestionsService, PublicSurveysService, PublicTenantFaqsService, PublicTenantsService, PublicVenueTypesService, PublicVenuesService, PublicWaitlistActivityService, PublicWaitlistOpportunityService, ReachEntity, ReachError, ReachOperation, RecentOrderActivityReport, RecentOrderActivityReportPage, RecentOrderActivityReportPatch, RecentOrderActivityReportPost, RecentOrderActivityReportService, RefundSource, RefundStatus, RegisterReport, RegisterReportPage, RegisterReportPatch, RegisterReportPost, RegisterReportService, RegisterReportSummary, RescheduleLog, RescheduleLogPage, RescheduleLogPatch, RescheduleLogPost, RescheduleLogService, ResolveSecureAccessTokenRequest, ScheduleStatus, ScheduledSession, ScheduledSessionEmailAttendeesPatch, ScheduledSessionEmailWaitlistPatch, ScheduledSessionPage, ScheduledSessionPatch, ScheduledSessionPost, ScheduledSessionReschedulePatch, ScheduledSessionSchedule, ScheduledSessionSchedulePage, ScheduledSessionSchedulePatch, ScheduledSessionSchedulePost, ScheduledSessionSearchSortBy, ScheduledSessionsSchedulesService, ScheduledSessionsService, SearchSortOrderDirection, SellableItem, SellableItemPage, SellableItemPatch, SellableItemPost, SellableItemsService, Session, SessionCreate, SessionPage, SessionPatch, SessionPost, SessionType, SessionsService, Slot, SlotAvailabilityStatus, SlotOffer, SlotOfferPage, SlotOfferPatch, SlotOfferPost, SlotOffersService, SlotPage, SlotPatch, SlotPost, SlotSchedule, SlotScheduleOffer, SlotScheduleOfferPage, SlotScheduleOfferPatch, SlotScheduleOfferPost, SlotScheduleOffersService, SlotSchedulePage, SlotSchedulePatch, SlotSchedulePost, SlotSchedulesService, SlotStatus, SlotsService, SortIndex, Southwest, StorefrontStaffPreviewService, StorefrontStaffPreviewTokenResponse, StorefrontStaffPreviewValidateRequest, StorefrontStaffPreviewValidateResponse, StripeAccount, StripeAccountLinkedEntityType, StripeAccountPage, StripeAccountPatch, StripeAccountPost, StripeAccountService, StripeSetupRequirement, StripeStatus, StructuredFormatting, Surface, SurfacesService, Survey, SurveyAnswer, SurveyAnswerPage, SurveyAnswerPatch, SurveyAnswerPost, SurveyAnswersService, SurveyCompletionLog, SurveyCompletionLogPage, SurveyCompletionLogPatch, SurveyCompletionLogPost, SurveyCompletionLogService, SurveyCreate, SurveyDuplicatePost, SurveyPage, SurveyPatch, SurveyPost, SurveyQuestion, SurveyQuestionOption, SurveyQuestionPage, SurveyQuestionPatch, SurveyQuestionPatchOption, SurveyQuestionPost, SurveyQuestionPostOption, SurveyQuestionType, SurveyQuestionsService, SurveyQuestionsTarget, SurveyReportExtended, SurveyReportExtendedPage, SurveyReportExtendedPatch, SurveyReportExtendedPost, SurveyReportExtendedService, SurveyResponseMode, SurveySubmissionModel, SurveySubmit, SurveySubmitAttendee, SurveySubmitQuestions, SurveyType, SurveysService, Tax, Template, TemplateCreate, TemplateDeal, TemplateDetail, TemplateDetailPage, TemplateDetailPatch, TemplateDetailPost, TemplateDetailsService, TemplateDuplicatePost, TemplateFieldPermission, TemplateFieldPermissionPage, TemplateFieldPermissionPatch, TemplateFieldPermissionPost, TemplateFieldPermissionsService, TemplateFromPost, TemplateOffer, TemplateOfferPage, TemplateOfferPatch, TemplateOfferPost, TemplateOffersService, TemplatePage, TemplatePatch, TemplatePost, TemplateUseResponse, TemplatesService, Tenant, TenantFaq, TenantFaqPage, TenantFaqPatch, TenantFaqPost, TenantFaqsService, TenantPage, TenantPatch, TenantPost, TenantSetting, TenantStatus, TenantStorefrontSettingsPatch, TenantTier, TenantWebsiteSetting, TenantWebsiteSettingPage, TenantWebsiteSettingPatch, TenantWebsiteSettingPost, TenantWebsiteSettingsService, TenantsService, Timezone, TimezoneService, TotalRevenueReport, TotalRevenueReportPage, TotalRevenueReportPatch, TotalRevenueReportPost, TotalRevenueReportService, UnsplashSearchResponse, UnsplashService, UpcomingLayout, UpdateCustomFieldOption, UpdateEmailSettings, UpdateOffer, User, UserPage, UserPatch, UserPermission, UserPermissionPage, UserPermissionPatch, UserPermissionPost, UserPermissionsService, UserPost, UserProgramme, UserProgrammePage, UserProgrammePatch, UserProgrammePost, UserProgrammesService, UserProvider, UserProviderPage, UserProviderPatch, UserProviderPost, UserProvidersService, UserRole, UsersService, ValidationError, ValidationResultModel, Venue, VenueBadmintonEnglandReport, VenueBadmintonEnglandReportPage, VenueBadmintonEnglandReportPatch, VenueBadmintonEnglandReportPost, VenueCreate, VenueManager, VenueManagerPage, VenueManagerPatch, VenueManagerPost, VenueManagersService, VenueOpeningHourUpdate, VenueOpeningHours, VenuePage, VenuePatch, VenuePerformance, VenuePerformancePage, VenuePerformancePatch, VenuePerformancePost, VenuePerformanceService, VenuePost, VenueType, VenueTypePage, VenueTypePatch, VenueTypePost, VenueTypeService, VenuesReport, VenuesReportPage, VenuesReportPatch, VenuesReportPost, VenuesReportService, VenuesService, WaitlistActivity, WaitlistActivityPage, WaitlistActivityPatch, WaitlistActivityPost, WaitlistActivityReport, WaitlistActivityReportPage, WaitlistActivityReportPatch, WaitlistActivityReportPost, WaitlistActivityReportService, WaitlistActivityService, WaitlistConversionStatsResponseDto, WaitlistOpportunity, WaitlistOpportunityPage, WaitlistOpportunityPatch, WaitlistOpportunityPost, WaitlistOpportunityReport, WaitlistOpportunityReportPage, WaitlistOpportunityReportPatch, WaitlistOpportunityReportPost, WaitlistOpportunityReportService, WaitlistOpportunityService, Wallet, WalletDeductionPreview, WalletPage, WalletPatch, WalletPost, WalletRemoveCreditPost, WalletTopUpPost, WalletTrackingLevel, WalletTransaction, WalletTransactionPage, WalletTransactionPatch, WalletTransactionPost, WalletTransactionType, WalletTransactionsService, WalletsService, WebsiteHomepage };
73311
+ export { AccessCredential, AccessCredentialPage, AccessCredentialPatch, AccessCredentialPost, AccessCredentialsService, Activity, ActivityFacet, ActivityPerformance, ActivityPerformancePage, ActivityPerformancePatch, ActivityPerformancePost, ActivityPerformanceService, ActivitySearchResponse, ActivityService, ActivityType, ActivityTypeCategory, ActivityTypeCategoryService, AddressBookItem, AddressBooksRequest, AddressComponent, AdvanceBooking, Amenity, AmenityService, AmenityType, ApiClient, ApiError, AppUserRole, ApplicationRole, Attendee, AttendeePage, AttendeePatch, AttendeePost, AttendeeWalletDeductionPreview, AttendeesService, AutoCompleteResponseModel, AvailabilityIndicator, BadEnglandReportService, BaseHttpRequest, BookingService, BookingStatus, CancelError, CancelablePromise, CancellationPoliciesService, CancellationPolicy, CancellationPolicyPage, CancellationPolicyPatch, CancellationPolicyPost, ChatService, CheckoutPlatform, ChoiceMessage, CodelocksLock, CodelocksLockPage, CodelocksLockPatch, CodelocksLockPost, CodelocksLocksService, CompletionChoice, ContactOnConfirmation, Country, CountryService, Course, CourseBookingCutoff, CourseCreate, CourseEmailAttendeesPatch, CourseEmailWaitlistPatch, CoursePage, CoursePatch, CoursePost, CourseSearchSortBy, CourseSession, CourseSessionPage, CourseSessionPatch, CourseSessionPost, CourseSessionReschedulePatch, CourseSessionSchedule, CourseSessionSchedulePage, CourseSessionSchedulePatch, CourseSessionSchedulePost, CourseSessionSchedulesService, CourseSessionsService, CourseStatus, CoursesService, CreateDeal, CreateEmailSettings, CreateOffer, CreateQuestion, CreateQuestionOption, CreateTemplateDetail, CreateTemplateFieldPermission, CreateVenue, CustomDateRange, CustomDateRangeOption, CustomFieldDataType, CustomFieldDefinition, CustomFieldDefinitionPage, CustomFieldDefinitionPatch, CustomFieldDefinitionPost, CustomFieldDefinitionWithValue, CustomFieldOption, CustomFieldOptionDto, CustomFieldOptionPost, CustomFieldValueEntityType, CustomFieldValueUpdate, CustomFieldsBulkUpdate, CustomFieldsService, Customer, CustomerAccountInvitePatch, CustomerAuthService, CustomerCancellationOption, CustomerEmailPatch, CustomerPage, CustomerPatch, CustomerPortalAccountPatch, CustomerPortalService, CustomerPost, CustomerStats, CustomerType, CustomerWalletDeductionPreview, CustomersService, DatabaseState, DayOfWeek, Deal, DealActivitiesService, DealActivity, DealActivityPage, DealActivityPatch, DealActivityPost, DealCreate, DealDiscountType, DealPage, DealPatch, DealPost, DealTarget, DealType, DealsService, DescriptionCompletionResponse, DiscountCodeUse, DiscountCodeUsePage, DiscountCodeUsePatch, DiscountCodeUsePost, DiscountCodeUsesService, DotdigitalCanonicalField, DotdigitalService, DotdigitalSourceType, EmailReminderSchedule, EmailReminderSchedulePage, EmailReminderSchedulePatch, EmailReminderSchedulePost, EmailReminderSchedulesService, EmailSetting, EmailSettingPage, EmailSettingPatch, EmailSettingPost, EmailSettingsService, EndUserAccessibleTenantDto, EndUserIdentity, EndUserIdentitySecureToken, EndUserIdentitySecureTokenService, EnglandGolfReportService, EventTiming, FacilitiesService, Facility, FacilityIndividual, FacilityIndividualPage, FacilityIndividualPatch, FacilityIndividualPost, FacilityIndividualsService, FacilityIndividualsType, FacilityPage, FacilityPatch, FacilityPost, FeatureAnnouncementDismissPost, FeatureAnnouncementForUserDto, FeatureAnnouncementsService, FieldPermission, FilestackImageMetaResponseModel, FilestackService, Gender, GenericActivity, GenericActivityPage, GenericActivityService, GeocodeResponseModel, GeocodeService, GooglePrediction, HelpersService, HereAddressDetails, HereAutoComplete, HereAutocompleteLookupService, HereLookupResults, HereMapDetails, HerePositionDetails, HttpStatusCode, IOpportunity, Image, ImageLibraryCategory, ImageLibraryCategoryService, ImageLibraryImage, ImageLibraryImageService, ImagePage, ImagePatch, ImagePost, ImageUploadHistory, ImageUploadHistoryPage, ImageUploadHistoryPatch, ImageUploadHistoryPost, ImageUploadHistoryService, ImagesService, IntegrationCodelocksSettings, IntegrationCodelocksSettingsCreate, IntegrationCodelocksSettingsPage, IntegrationCodelocksSettingsPatch, IntegrationCodelocksSettingsPost, IntegrationCodelocksSettingsService, IntegrationDotDigitalSettingsService, IntegrationDotdigitalFieldMap, IntegrationDotdigitalFieldMapPage, IntegrationDotdigitalFieldMapPatch, IntegrationDotdigitalFieldMapPost, IntegrationDotdigitalFieldMapService, IntegrationDotdigitalLog, IntegrationDotdigitalLogPage, IntegrationDotdigitalLogPatch, IntegrationDotdigitalLogPost, IntegrationDotdigitalLogService, IntegrationDotdigitalLogStatus, IntegrationDotdigitalSettings, IntegrationDotdigitalSettingsCreate, IntegrationDotdigitalSettingsPage, IntegrationDotdigitalSettingsPatch, IntegrationDotdigitalSettingsPost, IntegrationQueue, IntegrationQueuePage, IntegrationQueuePatch, IntegrationQueuePost, IntegrationQueueService, IntegrationType, InviteStatus, LeasingService, LocationReport, LocationReportPage, LocationReportPatch, LocationReportPost, LocationReportSummary, LocationsReportService, LoqateGeocode, LoqatePlaceResult, LoqatePlacesService, LoqatePrediction, Northeast, NotificationQueue, NotificationQueuePage, NotificationQueuePatch, NotificationQueuePost, NotificationQueueService, NotificationSetting, NotificationSettingPage, NotificationSettingPatch, NotificationSettingPost, NotificationSettingsService, NotificationType, Offer, OfferPage, OfferPatch, OfferPost, OffersService, OpenAPI, OpenAPIConfig, OpenactiveFeedIntermediate, OpenactiveFeedIntermediatePage, OpenactiveFeedIntermediatePatch, OpenactiveFeedIntermediatePost, OpenactiveFeedIntermediateService, OpenactiveFeedItem, OpenactiveFeedItemPage, OpenactiveFeedItemPatch, OpenactiveFeedItemPost, OpenactiveFeedItemService, OpportunityRegister, OpportunityRegisterPage, OpportunityRegisterPatch, OpportunityRegisterPost, OpportunityRegisterService, OpportunityRegisterStatus, OpportunityType, Order, OrderApplyDiscountCode, OrderDeal, OrderEmailCustomerPatch, OrderItem, OrderItemCodelocksAccess, OrderItemDeal, OrderItemPage, OrderItemPatch, OrderItemPost, OrderItemReport, OrderItemReportPage, OrderItemReportPatch, OrderItemReportPost, OrderItemReportService, OrderItemReportSummary, OrderItemStatus, OrderItemsService, OrderPage, OrderPatch, OrderPatchItem, OrderPost, OrderPostItem, OrderRefresh, OrderSource, OrderStage, OrderToken, OrderTokenPage, OrderTokenPatch, OrderTokenPost, OrderUpdateContact, OrdersService, OrgCourseUtilisation, OrgCourseUtilisationPage, OrgCourseUtilisationPatch, OrgCourseUtilisationPost, OrgCourseUtilisationService, OrganisationApplicationFeeHandling, OrganisationAvailableChannel, OrganisationRefundPolicy, OrganisationTaxMode, OrganisationType, Pagination, Payment, PaymentMethod, PaymentPage, PaymentPatch, PaymentPoliciesService, PaymentPolicy, PaymentPolicyPage, PaymentPolicyPatch, PaymentPolicyPost, PaymentPolicySplitType, PaymentPost, PaymentsService, PeriodsOfWeek, Permission, PermissionPage, PermissionPatch, PermissionPost, PermissionsService, PlaceAddress, PlaceDetailsResponseModel, PlaceGeometry, PlaceLocation, PlaceResult, PlaceViewport, PlacesService, PlatformPayout, PlatformPayoutPage, PlatformPayoutPatch, PlatformPayoutPost, PlatformPayoutsService, PlusCode, Prepayment, Programme, ProgrammePage, ProgrammePatch, ProgrammePost, ProgrammesService, Provider, ProviderActivityLocation, ProviderCreate, ProviderPage, ProviderPatch, ProviderPost, ProviderType, ProviderTypesService, ProvidersService, PublicBookingService, PublicCalendarService, PublicCoursesService, PublicCustomersService, PublicFacilitiesService, PublicFilestackWebhookService, PublicGenericActivityService, PublicHealthCheckService, PublicLeasingService, PublicNetworksService, PublicOpportunityRegisterService, PublicOrderItemsService, PublicOrderTokensService, PublicOrdersService, PublicProgrammesService, PublicProvidersService, PublicScheduledSessionsService, PublicSellableItemsService, PublicSessionsService, PublicSlotsService, PublicStorefrontStaffPreviewService, PublicStripeWebhookService, PublicSurveyCompletionLogsService, PublicSurveyQuestionsService, PublicSurveysService, PublicTenantFaqsService, PublicTenantsService, PublicVenueTypesService, PublicVenuesService, PublicWaitlistActivityService, PublicWaitlistOpportunityService, ReachEntity, ReachError, ReachOperation, RecentOrderActivityReport, RecentOrderActivityReportPage, RecentOrderActivityReportPatch, RecentOrderActivityReportPost, RecentOrderActivityReportService, RefundSource, RefundStatus, RegisterReport, RegisterReportPage, RegisterReportPatch, RegisterReportPost, RegisterReportService, RegisterReportSummary, RescheduleLog, RescheduleLogPage, RescheduleLogPatch, RescheduleLogPost, RescheduleLogService, ResolveSecureAccessTokenRequest, ScheduleStatus, ScheduledSession, ScheduledSessionEmailAttendeesPatch, ScheduledSessionEmailWaitlistPatch, ScheduledSessionPage, ScheduledSessionPatch, ScheduledSessionPost, ScheduledSessionReschedulePatch, ScheduledSessionSchedule, ScheduledSessionSchedulePage, ScheduledSessionSchedulePatch, ScheduledSessionSchedulePost, ScheduledSessionSearchSortBy, ScheduledSessionsSchedulesService, ScheduledSessionsService, SearchSortOrderDirection, SellableItem, SellableItemPage, SellableItemPatch, SellableItemPost, SellableItemsService, Session, SessionCreate, SessionPage, SessionPatch, SessionPost, SessionType, SessionsService, Slot, SlotAvailabilityStatus, SlotOffer, SlotOfferPage, SlotOfferPatch, SlotOfferPost, SlotOffersService, SlotPage, SlotPatch, SlotPost, SlotSchedule, SlotScheduleOffer, SlotScheduleOfferPage, SlotScheduleOfferPatch, SlotScheduleOfferPost, SlotScheduleOffersService, SlotSchedulePage, SlotSchedulePatch, SlotSchedulePost, SlotSchedulesService, SlotStatus, SlotsService, SortIndex, Southwest, StorefrontStaffPreviewService, StorefrontStaffPreviewTokenResponse, StorefrontStaffPreviewValidateRequest, StorefrontStaffPreviewValidateResponse, StripeAccount, StripeAccountLinkedEntityType, StripeAccountPage, StripeAccountPatch, StripeAccountPost, StripeAccountService, StripeSetupRequirement, StripeStatus, StructuredFormatting, Surface, SurfacesService, Survey, SurveyAnswer, SurveyAnswerPage, SurveyAnswerPatch, SurveyAnswerPost, SurveyAnswersService, SurveyCompletionLog, SurveyCompletionLogPage, SurveyCompletionLogPatch, SurveyCompletionLogPost, SurveyCompletionLogService, SurveyCreate, SurveyDuplicatePost, SurveyPage, SurveyPatch, SurveyPost, SurveyQuestion, SurveyQuestionOption, SurveyQuestionPage, SurveyQuestionPatch, SurveyQuestionPatchOption, SurveyQuestionPost, SurveyQuestionPostOption, SurveyQuestionType, SurveyQuestionsService, SurveyQuestionsTarget, SurveyReportExtended, SurveyReportExtendedPage, SurveyReportExtendedPatch, SurveyReportExtendedPost, SurveyReportExtendedService, SurveyResponseMode, SurveySubmissionModel, SurveySubmit, SurveySubmitAttendee, SurveySubmitQuestions, SurveyType, SurveysService, Tax, Template, TemplateCreate, TemplateDeal, TemplateDetail, TemplateDetailPage, TemplateDetailPatch, TemplateDetailPost, TemplateDetailsService, TemplateDuplicatePost, TemplateFieldPermission, TemplateFieldPermissionPage, TemplateFieldPermissionPatch, TemplateFieldPermissionPost, TemplateFieldPermissionsService, TemplateFromPost, TemplateOffer, TemplateOfferPage, TemplateOfferPatch, TemplateOfferPost, TemplateOffersService, TemplatePage, TemplatePatch, TemplatePost, TemplateUseResponse, TemplatesService, Tenant, TenantFaq, TenantFaqPage, TenantFaqPatch, TenantFaqPost, TenantFaqsService, TenantPage, TenantPatch, TenantPost, TenantSetting, TenantStatus, TenantStorefrontSettingsPatch, TenantTier, TenantWebsiteSetting, TenantWebsiteSettingPage, TenantWebsiteSettingPatch, TenantWebsiteSettingPost, TenantWebsiteSettingsService, TenantsService, Timezone, TimezoneService, TotalRevenueReport, TotalRevenueReportPage, TotalRevenueReportPatch, TotalRevenueReportPost, TotalRevenueReportService, UnsplashSearchResponse, UnsplashService, UpcomingLayout, UpdateCustomFieldOption, UpdateEmailSettings, UpdateOffer, User, UserPage, UserPatch, UserPermission, UserPermissionPage, UserPermissionPatch, UserPermissionPost, UserPermissionsService, UserPost, UserProgramme, UserProgrammePage, UserProgrammePatch, UserProgrammePost, UserProgrammesService, UserProvider, UserProviderPage, UserProviderPatch, UserProviderPost, UserProvidersService, UserRole, UsersService, ValidationError, ValidationResultModel, Venue, VenueBadmintonEnglandReport, VenueBadmintonEnglandReportPage, VenueBadmintonEnglandReportPatch, VenueBadmintonEnglandReportPost, VenueCreate, VenueManager, VenueManagerPage, VenueManagerPatch, VenueManagerPost, VenueManagersService, VenueOpeningHourUpdate, VenueOpeningHours, VenuePage, VenuePatch, VenuePerformance, VenuePerformancePage, VenuePerformancePatch, VenuePerformancePost, VenuePerformanceService, VenuePost, VenueType, VenueTypePage, VenueTypePatch, VenueTypePost, VenueTypeService, VenuesReport, VenuesReportPage, VenuesReportPatch, VenuesReportPost, VenuesReportService, VenuesService, WaitlistActivity, WaitlistActivityPage, WaitlistActivityPatch, WaitlistActivityPost, WaitlistActivityReport, WaitlistActivityReportPage, WaitlistActivityReportPatch, WaitlistActivityReportPost, WaitlistActivityReportService, WaitlistActivityService, WaitlistConversionStatsResponseDto, WaitlistOpportunity, WaitlistOpportunityPage, WaitlistOpportunityPatch, WaitlistOpportunityPost, WaitlistOpportunityReport, WaitlistOpportunityReportPage, WaitlistOpportunityReportPatch, WaitlistOpportunityReportPost, WaitlistOpportunityReportService, WaitlistOpportunityService, Wallet, WalletCreditPeriod, WalletCreditPeriodReassessPost, WalletCreditPeriodStatus, WalletDeductionPreview, WalletPage, WalletPatch, WalletPost, WalletRemoveCreditPost, WalletTopUpPost, WalletTrackingLevel, WalletTransaction, WalletTransactionPage, WalletTransactionPatch, WalletTransactionPost, WalletTransactionType, WalletTransactionsService, WalletsService, WebsiteHomepage };
package/dist/reach-sdk.js CHANGED
@@ -1598,6 +1598,7 @@ const request = (config, options, axiosClient = axios) => {
1598
1598
  customerId,
1599
1599
  firstName,
1600
1600
  lastName,
1601
+ externalReference,
1601
1602
  pageNumber,
1602
1603
  take,
1603
1604
  skip,
@@ -1617,6 +1618,7 @@ const request = (config, options, axiosClient = axios) => {
1617
1618
  CustomerId: customerId,
1618
1619
  FirstName: firstName,
1619
1620
  LastName: lastName,
1621
+ ExternalReference: externalReference,
1620
1622
  PageNumber: pageNumber,
1621
1623
  Take: take,
1622
1624
  Skip: skip,
@@ -1708,6 +1710,7 @@ const request = (config, options, axiosClient = axios) => {
1708
1710
  customerId,
1709
1711
  firstName,
1710
1712
  lastName,
1713
+ externalReference,
1711
1714
  pageNumber,
1712
1715
  take,
1713
1716
  skip,
@@ -1727,6 +1730,7 @@ const request = (config, options, axiosClient = axios) => {
1727
1730
  CustomerId: customerId,
1728
1731
  FirstName: firstName,
1729
1732
  LastName: lastName,
1733
+ ExternalReference: externalReference,
1730
1734
  PageNumber: pageNumber,
1731
1735
  Take: take,
1732
1736
  Skip: skip,
@@ -1755,6 +1759,7 @@ const request = (config, options, axiosClient = axios) => {
1755
1759
  customerId,
1756
1760
  firstName,
1757
1761
  lastName,
1762
+ externalReference,
1758
1763
  pageNumber,
1759
1764
  take,
1760
1765
  skip,
@@ -1774,6 +1779,7 @@ const request = (config, options, axiosClient = axios) => {
1774
1779
  CustomerId: customerId,
1775
1780
  FirstName: firstName,
1776
1781
  LastName: lastName,
1782
+ ExternalReference: externalReference,
1777
1783
  PageNumber: pageNumber,
1778
1784
  Take: take,
1779
1785
  Skip: skip,
@@ -1802,6 +1808,7 @@ const request = (config, options, axiosClient = axios) => {
1802
1808
  customerId,
1803
1809
  firstName,
1804
1810
  lastName,
1811
+ externalReference,
1805
1812
  pageNumber,
1806
1813
  take,
1807
1814
  skip,
@@ -1821,6 +1828,7 @@ const request = (config, options, axiosClient = axios) => {
1821
1828
  CustomerId: customerId,
1822
1829
  FirstName: firstName,
1823
1830
  LastName: lastName,
1831
+ ExternalReference: externalReference,
1824
1832
  PageNumber: pageNumber,
1825
1833
  Take: take,
1826
1834
  Skip: skip,
@@ -1849,6 +1857,7 @@ const request = (config, options, axiosClient = axios) => {
1849
1857
  customerId,
1850
1858
  firstName,
1851
1859
  lastName,
1860
+ externalReference,
1852
1861
  pageNumber,
1853
1862
  take,
1854
1863
  skip,
@@ -1868,6 +1877,7 @@ const request = (config, options, axiosClient = axios) => {
1868
1877
  CustomerId: customerId,
1869
1878
  FirstName: firstName,
1870
1879
  LastName: lastName,
1880
+ ExternalReference: externalReference,
1871
1881
  PageNumber: pageNumber,
1872
1882
  Take: take,
1873
1883
  Skip: skip,
@@ -52228,6 +52238,30 @@ const request = (config, options, axiosClient = axios) => {
52228
52238
  }
52229
52239
  });
52230
52240
  }
52241
+ /**
52242
+ * Reassesses the active credit period for a wallet and sets balance to the new allocation.
52243
+ * @returns Wallet OK
52244
+ * @throws ApiError
52245
+ */
52246
+ reassessCreditPeriod({
52247
+ id,
52248
+ requestBody
52249
+ }) {
52250
+ return this.httpRequest.request({
52251
+ method: "POST",
52252
+ url: "/api/wallets/{id}/credit-periods/reassess",
52253
+ path: {
52254
+ id
52255
+ },
52256
+ body: requestBody,
52257
+ mediaType: "application/json",
52258
+ errors: {
52259
+ 400: `Bad Request`,
52260
+ 422: `Unprocessable Content`,
52261
+ 500: `Internal Server Error`
52262
+ }
52263
+ });
52264
+ }
52231
52265
  /**
52232
52266
  * Gets the transaction history for a wallet.
52233
52267
  * @returns WalletTransaction OK
@@ -53856,7 +53890,11 @@ const request = (config, options, axiosClient = axios) => {
53856
53890
  UpcomingLayout2["GRID"] = "Grid";
53857
53891
  UpcomingLayout2["CALENDAR"] = "Calendar";
53858
53892
  return UpcomingLayout2;
53859
- })(UpcomingLayout || {});var WalletTrackingLevel = /* @__PURE__ */ ((WalletTrackingLevel2) => {
53893
+ })(UpcomingLayout || {});var WalletCreditPeriodStatus = /* @__PURE__ */ ((WalletCreditPeriodStatus2) => {
53894
+ WalletCreditPeriodStatus2["ACTIVE"] = "Active";
53895
+ WalletCreditPeriodStatus2["CLOSED"] = "Closed";
53896
+ return WalletCreditPeriodStatus2;
53897
+ })(WalletCreditPeriodStatus || {});var WalletTrackingLevel = /* @__PURE__ */ ((WalletTrackingLevel2) => {
53860
53898
  WalletTrackingLevel2["CUSTOMER"] = "Customer";
53861
53899
  WalletTrackingLevel2["ATTENDEE"] = "Attendee";
53862
53900
  return WalletTrackingLevel2;
@@ -53870,4 +53908,4 @@ const request = (config, options, axiosClient = axios) => {
53870
53908
  WebsiteHomepage2["DEFAULT"] = "Default";
53871
53909
  WebsiteHomepage2["MAP"] = "Map";
53872
53910
  return WebsiteHomepage2;
53873
- })(WebsiteHomepage || {});export{AccessCredentialsService,ActivityPerformanceService,ActivityService,ActivityType,ActivityTypeCategoryService,AdvanceBooking,AmenityService,AmenityType,ApiClient,ApiError,AppUserRole,ApplicationRole,AttendeesService,AvailabilityIndicator,BadEnglandReportService,BaseHttpRequest,BookingService,BookingStatus,CancelError,CancelablePromise,CancellationPoliciesService,ChatService,CheckoutPlatform,CodelocksLocksService,ContactOnConfirmation,CountryService,CourseBookingCutoff,CourseSearchSortBy,CourseSessionSchedulesService,CourseSessionsService,CourseStatus,CoursesService,CustomDateRange,CustomFieldDataType,CustomFieldValueEntityType,CustomFieldsService,CustomerAuthService,CustomerCancellationOption,CustomerPortalService,CustomerType,CustomersService,DayOfWeek,DealActivitiesService,DealDiscountType,DealTarget,DealType,DealsService,DiscountCodeUsesService,DotdigitalCanonicalField,DotdigitalService,DotdigitalSourceType,EmailReminderSchedulesService,EmailSettingsService,EndUserIdentitySecureTokenService,EnglandGolfReportService,EventTiming,FacilitiesService,FacilityIndividualsService,FacilityIndividualsType,FeatureAnnouncementsService,FieldPermission,FilestackService,Gender,GenericActivityService,GeocodeService,HelpersService,HereAutocompleteLookupService,HttpStatusCode,ImageLibraryCategoryService,ImageLibraryImageService,ImageUploadHistoryService,ImagesService,IntegrationCodelocksSettingsService,IntegrationDotDigitalSettingsService,IntegrationDotdigitalFieldMapService,IntegrationDotdigitalLogService,IntegrationDotdigitalLogStatus,IntegrationQueueService,IntegrationType,InviteStatus,LeasingService,LocationsReportService,LoqatePlacesService,NotificationQueueService,NotificationSettingsService,NotificationType,OffersService,OpenAPI,OpenactiveFeedIntermediateService,OpenactiveFeedItemService,OpportunityRegisterService,OpportunityRegisterStatus,OpportunityType,OrderItemReportService,OrderItemStatus,OrderItemsService,OrderSource,OrderStage,OrdersService,OrgCourseUtilisationService,OrganisationApplicationFeeHandling,OrganisationAvailableChannel,OrganisationRefundPolicy,OrganisationTaxMode,OrganisationType,PaymentMethod,PaymentPoliciesService,PaymentPolicySplitType,PaymentsService,PeriodsOfWeek,PermissionsService,PlacesService,PlatformPayoutsService,Prepayment,ProgrammesService,ProviderTypesService,ProvidersService,PublicBookingService,PublicCalendarService,PublicCoursesService,PublicCustomersService,PublicFacilitiesService,PublicFilestackWebhookService,PublicGenericActivityService,PublicHealthCheckService,PublicLeasingService,PublicNetworksService,PublicOpportunityRegisterService,PublicOrderItemsService,PublicOrderTokensService,PublicOrdersService,PublicProgrammesService,PublicProvidersService,PublicScheduledSessionsService,PublicSellableItemsService,PublicSessionsService,PublicSlotsService,PublicStorefrontStaffPreviewService,PublicStripeWebhookService,PublicSurveyCompletionLogsService,PublicSurveyQuestionsService,PublicSurveysService,PublicTenantFaqsService,PublicTenantsService,PublicVenueTypesService,PublicVenuesService,PublicWaitlistActivityService,PublicWaitlistOpportunityService,ReachEntity,ReachOperation,RecentOrderActivityReportService,RefundSource,RefundStatus,RegisterReportService,RescheduleLogService,ScheduleStatus,ScheduledSessionSearchSortBy,ScheduledSessionsSchedulesService,ScheduledSessionsService,SearchSortOrderDirection,SellableItemsService,SessionType,SessionsService,SlotAvailabilityStatus,SlotOffersService,SlotScheduleOffersService,SlotSchedulesService,SlotStatus,SlotsService,StorefrontStaffPreviewService,StripeAccountLinkedEntityType,StripeAccountService,StripeStatus,SurfacesService,SurveyAnswersService,SurveyCompletionLogService,SurveyQuestionType,SurveyQuestionsService,SurveyQuestionsTarget,SurveyReportExtendedService,SurveyResponseMode,SurveyType,SurveysService,TemplateDetailsService,TemplateFieldPermissionsService,TemplateOffersService,TemplatesService,TenantFaqsService,TenantStatus,TenantTier,TenantWebsiteSettingsService,TenantsService,TimezoneService,TotalRevenueReportService,UnsplashService,UpcomingLayout,UserPermissionsService,UserProgrammesService,UserProvidersService,UsersService,VenueManagersService,VenuePerformanceService,VenueTypeService,VenuesReportService,VenuesService,WaitlistActivityReportService,WaitlistActivityService,WaitlistOpportunityReportService,WaitlistOpportunityService,WalletTrackingLevel,WalletTransactionType,WalletTransactionsService,WalletsService,WebsiteHomepage};
53911
+ })(WebsiteHomepage || {});export{AccessCredentialsService,ActivityPerformanceService,ActivityService,ActivityType,ActivityTypeCategoryService,AdvanceBooking,AmenityService,AmenityType,ApiClient,ApiError,AppUserRole,ApplicationRole,AttendeesService,AvailabilityIndicator,BadEnglandReportService,BaseHttpRequest,BookingService,BookingStatus,CancelError,CancelablePromise,CancellationPoliciesService,ChatService,CheckoutPlatform,CodelocksLocksService,ContactOnConfirmation,CountryService,CourseBookingCutoff,CourseSearchSortBy,CourseSessionSchedulesService,CourseSessionsService,CourseStatus,CoursesService,CustomDateRange,CustomFieldDataType,CustomFieldValueEntityType,CustomFieldsService,CustomerAuthService,CustomerCancellationOption,CustomerPortalService,CustomerType,CustomersService,DayOfWeek,DealActivitiesService,DealDiscountType,DealTarget,DealType,DealsService,DiscountCodeUsesService,DotdigitalCanonicalField,DotdigitalService,DotdigitalSourceType,EmailReminderSchedulesService,EmailSettingsService,EndUserIdentitySecureTokenService,EnglandGolfReportService,EventTiming,FacilitiesService,FacilityIndividualsService,FacilityIndividualsType,FeatureAnnouncementsService,FieldPermission,FilestackService,Gender,GenericActivityService,GeocodeService,HelpersService,HereAutocompleteLookupService,HttpStatusCode,ImageLibraryCategoryService,ImageLibraryImageService,ImageUploadHistoryService,ImagesService,IntegrationCodelocksSettingsService,IntegrationDotDigitalSettingsService,IntegrationDotdigitalFieldMapService,IntegrationDotdigitalLogService,IntegrationDotdigitalLogStatus,IntegrationQueueService,IntegrationType,InviteStatus,LeasingService,LocationsReportService,LoqatePlacesService,NotificationQueueService,NotificationSettingsService,NotificationType,OffersService,OpenAPI,OpenactiveFeedIntermediateService,OpenactiveFeedItemService,OpportunityRegisterService,OpportunityRegisterStatus,OpportunityType,OrderItemReportService,OrderItemStatus,OrderItemsService,OrderSource,OrderStage,OrdersService,OrgCourseUtilisationService,OrganisationApplicationFeeHandling,OrganisationAvailableChannel,OrganisationRefundPolicy,OrganisationTaxMode,OrganisationType,PaymentMethod,PaymentPoliciesService,PaymentPolicySplitType,PaymentsService,PeriodsOfWeek,PermissionsService,PlacesService,PlatformPayoutsService,Prepayment,ProgrammesService,ProviderTypesService,ProvidersService,PublicBookingService,PublicCalendarService,PublicCoursesService,PublicCustomersService,PublicFacilitiesService,PublicFilestackWebhookService,PublicGenericActivityService,PublicHealthCheckService,PublicLeasingService,PublicNetworksService,PublicOpportunityRegisterService,PublicOrderItemsService,PublicOrderTokensService,PublicOrdersService,PublicProgrammesService,PublicProvidersService,PublicScheduledSessionsService,PublicSellableItemsService,PublicSessionsService,PublicSlotsService,PublicStorefrontStaffPreviewService,PublicStripeWebhookService,PublicSurveyCompletionLogsService,PublicSurveyQuestionsService,PublicSurveysService,PublicTenantFaqsService,PublicTenantsService,PublicVenueTypesService,PublicVenuesService,PublicWaitlistActivityService,PublicWaitlistOpportunityService,ReachEntity,ReachOperation,RecentOrderActivityReportService,RefundSource,RefundStatus,RegisterReportService,RescheduleLogService,ScheduleStatus,ScheduledSessionSearchSortBy,ScheduledSessionsSchedulesService,ScheduledSessionsService,SearchSortOrderDirection,SellableItemsService,SessionType,SessionsService,SlotAvailabilityStatus,SlotOffersService,SlotScheduleOffersService,SlotSchedulesService,SlotStatus,SlotsService,StorefrontStaffPreviewService,StripeAccountLinkedEntityType,StripeAccountService,StripeStatus,SurfacesService,SurveyAnswersService,SurveyCompletionLogService,SurveyQuestionType,SurveyQuestionsService,SurveyQuestionsTarget,SurveyReportExtendedService,SurveyResponseMode,SurveyType,SurveysService,TemplateDetailsService,TemplateFieldPermissionsService,TemplateOffersService,TemplatesService,TenantFaqsService,TenantStatus,TenantTier,TenantWebsiteSettingsService,TenantsService,TimezoneService,TotalRevenueReportService,UnsplashService,UpcomingLayout,UserPermissionsService,UserProgrammesService,UserProvidersService,UsersService,VenueManagersService,VenuePerformanceService,VenueTypeService,VenuesReportService,VenuesService,WaitlistActivityReportService,WaitlistActivityService,WaitlistOpportunityReportService,WaitlistOpportunityService,WalletCreditPeriodStatus,WalletTrackingLevel,WalletTransactionType,WalletTransactionsService,WalletsService,WebsiteHomepage};
package/package.json CHANGED
@@ -1,12 +1,16 @@
1
1
  {
2
2
  "name": "reach-api-sdk",
3
- "version": "1.0.227",
3
+ "version": "1.0.229",
4
4
  "description": "sdk for reach api",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "scripts": {
8
+ "sync:swagger": "node scripts/sync-swagger.mjs",
9
+ "sync": "npm run sync:swagger && npm run build",
10
+ "dev:link": "npm run sync && npm link",
8
11
  "build": "npm run generate-client && npm run format && rollup -c",
9
12
  "build-only": "rollup -c",
13
+ "prepare": "npm run build-only",
10
14
  "lint": "eslint --ext .ts src",
11
15
  "generate-client": "openapi --input ./src/definition/swagger.yaml --output ./src/ --client axios --name ApiClient --useOptions",
12
16
  "format": "prettier --write src/"
@@ -0,0 +1,33 @@
1
+ import fs from 'node:fs'
2
+ import https from 'node:https'
3
+ import path from 'node:path'
4
+ import { fileURLToPath } from 'node:url'
5
+
6
+ const __dirname = path.dirname(fileURLToPath(import.meta.url))
7
+ const swaggerUrl =
8
+ process.env.REACH_API_SWAGGER_URL ?? 'https://localhost:44310/swagger/v1/swagger.yaml'
9
+ const outPath = path.join(__dirname, '../src/definition/swagger.yaml')
10
+
11
+ function fetchSwagger(url) {
12
+ return new Promise((resolve, reject) => {
13
+ https
14
+ .get(url, { rejectUnauthorized: false }, (res) => {
15
+ if (res.statusCode !== 200) {
16
+ reject(new Error(`Failed to fetch swagger (${res.statusCode}) from ${url}`))
17
+ res.resume()
18
+ return
19
+ }
20
+
21
+ const chunks = []
22
+ res.on('data', (chunk) => chunks.push(chunk))
23
+ res.on('end', () => resolve(Buffer.concat(chunks).toString('utf8')))
24
+ res.on('error', reject)
25
+ })
26
+ .on('error', reject)
27
+ })
28
+ }
29
+
30
+ const yaml = await fetchSwagger(swaggerUrl)
31
+ fs.mkdirSync(path.dirname(outPath), { recursive: true })
32
+ fs.writeFileSync(outPath, yaml, 'utf8')
33
+ console.log(`Synced swagger to ${outPath}`)