reach-api-sdk 1.0.225 → 1.0.228

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
  */
@@ -6323,8 +6392,25 @@ type AttendeePost = {
6323
6392
  * When wallet tracking level is Attendee, a wallet is always created for the attendee.
6324
6393
  * If InitialWalletBalance is provided and greater than 0, the wallet will be topped up with this amount.
6325
6394
  * If not provided or set to 0, the wallet will be created with a balance of 0.
6395
+ * Ignored when enable_wallet_credit_periods is enabled; use credit period fields instead.
6326
6396
  */
6327
6397
  initialWalletBalance?: number | null;
6398
+ /**
6399
+ * Gets or sets the credit period start date. Required when wallet credit periods are enabled.
6400
+ */
6401
+ creditPeriodStartDate?: string | null;
6402
+ /**
6403
+ * Gets or sets the credit period end date. Required when wallet credit periods are enabled.
6404
+ */
6405
+ creditPeriodEndDate?: string | null;
6406
+ /**
6407
+ * Gets or sets the credit allocation for the initial period. Required when wallet credit periods are enabled.
6408
+ */
6409
+ creditAllocation?: number | null;
6410
+ /**
6411
+ * Gets or sets a value indicating whether the credit period auto-renews. Defaults to true when not specified.
6412
+ */
6413
+ creditPeriodAutoRenew?: boolean | null;
6328
6414
  /**
6329
6415
  * Gets or sets the attendee date of birth.
6330
6416
  * This is used to resolve or create the linked end_user_identity record for person-level identity tracking.
@@ -46400,6 +46486,11 @@ type TenantSetting = {
46400
46486
  * When enabled, prices will be displayed as 'credits' rather than currency.
46401
46487
  */
46402
46488
  walletOnlyPayments?: boolean;
46489
+ /**
46490
+ * Gets or sets a value indicating whether wallet credit periods are enabled for the tenant.
46491
+ * When enabled, attendee wallets require an active credit period for bookings and allocation management.
46492
+ */
46493
+ enableWalletCreditPeriods?: boolean;
46403
46494
  /**
46404
46495
  * Gets or sets a value indicating whether customer portal WorkOS login is restricted to pre-provisioned customers only.
46405
46496
  * When true, the authenticated email must match a live customer row (email or display_email) for this tenant.
@@ -62449,6 +62540,10 @@ type DatabaseState = {
62449
62540
  * Gets or sets a value indicating whether facilities database records exist.
62450
62541
  */
62451
62542
  facilitiesExist: boolean;
62543
+ /**
62544
+ * Gets or sets a value indicating whether sellable item (product) database records exist.
62545
+ */
62546
+ sellableItemsExist: boolean;
62452
62547
  /**
62453
62548
  * Gets or sets a value indicating whether scheduled session database records exist.
62454
62549
  */
@@ -65890,7 +65985,7 @@ declare class UsersService {
65890
65985
  * @returns boolean OK
65891
65986
  * @throws ApiError
65892
65987
  */
65893
- globalExists({ ids, roles, name, nameLike, email, inviteStatus, pageNumber, take, skip, limitListRequests, tenantId, modifiedById, modifiedByIds, dateCreatedGte, dateCreatedLte, isLive, sortOrderDirection, }: {
65988
+ globalExists({ ids, roles, name, nameLike, email, inviteStatus, isPlatformAccount, pageNumber, take, skip, limitListRequests, tenantId, modifiedById, modifiedByIds, dateCreatedGte, dateCreatedLte, isLive, sortOrderDirection, }: {
65894
65989
  /**
65895
65990
  * Gets or sets the queryable user ids.
65896
65991
  */
@@ -65915,6 +66010,10 @@ declare class UsersService {
65915
66010
  * Gets or sets the team member invite status for use in a query search.
65916
66011
  */
65917
66012
  inviteStatus?: InviteStatus;
66013
+ /**
66014
+ * Gets or sets a value indicating whether to return only users with a platform role in user_tenant_access for the current tenant.
66015
+ */
66016
+ isPlatformAccount?: boolean;
65918
66017
  /**
65919
66018
  * Gets or sets the page number for paged queries.
65920
66019
  */
@@ -66043,7 +66142,7 @@ declare class UsersService {
66043
66142
  * @returns UserPage OK
66044
66143
  * @throws ApiError
66045
66144
  */
66046
- getPage({ ids, roles, name, nameLike, email, inviteStatus, pageNumber, take, skip, limitListRequests, tenantId, modifiedById, modifiedByIds, dateCreatedGte, dateCreatedLte, isLive, sortOrderDirection, }: {
66145
+ getPage({ ids, roles, name, nameLike, email, inviteStatus, isPlatformAccount, pageNumber, take, skip, limitListRequests, tenantId, modifiedById, modifiedByIds, dateCreatedGte, dateCreatedLte, isLive, sortOrderDirection, }: {
66047
66146
  /**
66048
66147
  * Gets or sets the queryable user ids.
66049
66148
  */
@@ -66068,6 +66167,10 @@ declare class UsersService {
66068
66167
  * Gets or sets the team member invite status for use in a query search.
66069
66168
  */
66070
66169
  inviteStatus?: InviteStatus;
66170
+ /**
66171
+ * Gets or sets a value indicating whether to return only users with a platform role in user_tenant_access for the current tenant.
66172
+ */
66173
+ isPlatformAccount?: boolean;
66071
66174
  /**
66072
66175
  * Gets or sets the page number for paged queries.
66073
66176
  */
@@ -66151,7 +66254,7 @@ declare class UsersService {
66151
66254
  * @returns boolean OK
66152
66255
  * @throws ApiError
66153
66256
  */
66154
- exists({ ids, roles, name, nameLike, email, inviteStatus, pageNumber, take, skip, limitListRequests, tenantId, modifiedById, modifiedByIds, dateCreatedGte, dateCreatedLte, isLive, sortOrderDirection, }: {
66257
+ exists({ ids, roles, name, nameLike, email, inviteStatus, isPlatformAccount, pageNumber, take, skip, limitListRequests, tenantId, modifiedById, modifiedByIds, dateCreatedGte, dateCreatedLte, isLive, sortOrderDirection, }: {
66155
66258
  /**
66156
66259
  * Gets or sets the queryable user ids.
66157
66260
  */
@@ -66176,6 +66279,10 @@ declare class UsersService {
66176
66279
  * Gets or sets the team member invite status for use in a query search.
66177
66280
  */
66178
66281
  inviteStatus?: InviteStatus;
66282
+ /**
66283
+ * Gets or sets a value indicating whether to return only users with a platform role in user_tenant_access for the current tenant.
66284
+ */
66285
+ isPlatformAccount?: boolean;
66179
66286
  /**
66180
66287
  * Gets or sets the page number for paged queries.
66181
66288
  */
@@ -66226,7 +66333,7 @@ declare class UsersService {
66226
66333
  * @returns number OK
66227
66334
  * @throws ApiError
66228
66335
  */
66229
- count({ ids, roles, name, nameLike, email, inviteStatus, pageNumber, take, skip, limitListRequests, tenantId, modifiedById, modifiedByIds, dateCreatedGte, dateCreatedLte, isLive, sortOrderDirection, }: {
66336
+ count({ ids, roles, name, nameLike, email, inviteStatus, isPlatformAccount, pageNumber, take, skip, limitListRequests, tenantId, modifiedById, modifiedByIds, dateCreatedGte, dateCreatedLte, isLive, sortOrderDirection, }: {
66230
66337
  /**
66231
66338
  * Gets or sets the queryable user ids.
66232
66339
  */
@@ -66251,6 +66358,10 @@ declare class UsersService {
66251
66358
  * Gets or sets the team member invite status for use in a query search.
66252
66359
  */
66253
66360
  inviteStatus?: InviteStatus;
66361
+ /**
66362
+ * Gets or sets a value indicating whether to return only users with a platform role in user_tenant_access for the current tenant.
66363
+ */
66364
+ isPlatformAccount?: boolean;
66254
66365
  /**
66255
66366
  * Gets or sets the page number for paged queries.
66256
66367
  */
@@ -66301,7 +66412,7 @@ declare class UsersService {
66301
66412
  * @returns User OK
66302
66413
  * @throws ApiError
66303
66414
  */
66304
- getListWithoutReferences({ ids, roles, name, nameLike, email, inviteStatus, pageNumber, take, skip, limitListRequests, tenantId, modifiedById, modifiedByIds, dateCreatedGte, dateCreatedLte, isLive, sortOrderDirection, }: {
66415
+ getListWithoutReferences({ ids, roles, name, nameLike, email, inviteStatus, isPlatformAccount, pageNumber, take, skip, limitListRequests, tenantId, modifiedById, modifiedByIds, dateCreatedGte, dateCreatedLte, isLive, sortOrderDirection, }: {
66305
66416
  /**
66306
66417
  * Gets or sets the queryable user ids.
66307
66418
  */
@@ -66326,6 +66437,10 @@ declare class UsersService {
66326
66437
  * Gets or sets the team member invite status for use in a query search.
66327
66438
  */
66328
66439
  inviteStatus?: InviteStatus;
66440
+ /**
66441
+ * Gets or sets a value indicating whether to return only users with a platform role in user_tenant_access for the current tenant.
66442
+ */
66443
+ isPlatformAccount?: boolean;
66329
66444
  /**
66330
66445
  * Gets or sets the page number for paged queries.
66331
66446
  */
@@ -66376,7 +66491,7 @@ declare class UsersService {
66376
66491
  * @returns User OK
66377
66492
  * @throws ApiError
66378
66493
  */
66379
- getListIdName({ ids, roles, name, nameLike, email, inviteStatus, pageNumber, take, skip, limitListRequests, tenantId, modifiedById, modifiedByIds, dateCreatedGte, dateCreatedLte, isLive, sortOrderDirection, }: {
66494
+ getListIdName({ ids, roles, name, nameLike, email, inviteStatus, isPlatformAccount, pageNumber, take, skip, limitListRequests, tenantId, modifiedById, modifiedByIds, dateCreatedGte, dateCreatedLte, isLive, sortOrderDirection, }: {
66380
66495
  /**
66381
66496
  * Gets or sets the queryable user ids.
66382
66497
  */
@@ -66401,6 +66516,10 @@ declare class UsersService {
66401
66516
  * Gets or sets the team member invite status for use in a query search.
66402
66517
  */
66403
66518
  inviteStatus?: InviteStatus;
66519
+ /**
66520
+ * Gets or sets a value indicating whether to return only users with a platform role in user_tenant_access for the current tenant.
66521
+ */
66522
+ isPlatformAccount?: boolean;
66404
66523
  /**
66405
66524
  * Gets or sets the page number for paged queries.
66406
66525
  */
@@ -71838,6 +71957,24 @@ declare class WaitlistOpportunityReportService {
71838
71957
  }): CancelablePromise<Array<WaitlistOpportunityReport>>;
71839
71958
  }
71840
71959
 
71960
+ /**
71961
+ * Request body for mid-cycle credit reassessment.
71962
+ */
71963
+ type WalletCreditPeriodReassessPost = {
71964
+ /**
71965
+ * Gets or sets the new credit allocation. Wallet balance is set to this amount immediately.
71966
+ */
71967
+ creditAllocation: number;
71968
+ /**
71969
+ * Gets or sets an optional updated period end date.
71970
+ */
71971
+ periodEndDate?: string | null;
71972
+ /**
71973
+ * Gets or sets an optional auto-renew flag.
71974
+ */
71975
+ autoRenew?: boolean | null;
71976
+ };
71977
+
71841
71978
  type WalletPage = {
71842
71979
  pagination: Pagination;
71843
71980
  readonly items: Array<Wallet>;
@@ -71942,6 +72079,21 @@ declare class WalletsService {
71942
72079
  */
71943
72080
  attendeeId: string;
71944
72081
  }): CancelablePromise<Wallet>;
72082
+ /**
72083
+ * Reassesses the active credit period for a wallet and sets balance to the new allocation.
72084
+ * @returns Wallet OK
72085
+ * @throws ApiError
72086
+ */
72087
+ reassessCreditPeriod({ id, requestBody, }: {
72088
+ /**
72089
+ * The wallet id.
72090
+ */
72091
+ id: string;
72092
+ /**
72093
+ * The reassessment request.
72094
+ */
72095
+ requestBody?: WalletCreditPeriodReassessPost;
72096
+ }): CancelablePromise<Wallet>;
71945
72097
  /**
71946
72098
  * Gets the transaction history for a wallet.
71947
72099
  * @returns WalletTransaction OK
@@ -73110,4 +73262,4 @@ type ValidationResultModel = {
73110
73262
  readonly errors?: Array<ValidationError> | null;
73111
73263
  };
73112
73264
 
73113
- 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 };
73265
+ 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
@@ -47138,6 +47138,7 @@ const request = (config, options, axiosClient = axios) => {
47138
47138
  nameLike,
47139
47139
  email,
47140
47140
  inviteStatus,
47141
+ isPlatformAccount,
47141
47142
  pageNumber,
47142
47143
  take,
47143
47144
  skip,
@@ -47160,6 +47161,7 @@ const request = (config, options, axiosClient = axios) => {
47160
47161
  NameLike: nameLike,
47161
47162
  Email: email,
47162
47163
  InviteStatus: inviteStatus,
47164
+ IsPlatformAccount: isPlatformAccount,
47163
47165
  PageNumber: pageNumber,
47164
47166
  Take: take,
47165
47167
  Skip: skip,
@@ -47344,6 +47346,7 @@ const request = (config, options, axiosClient = axios) => {
47344
47346
  nameLike,
47345
47347
  email,
47346
47348
  inviteStatus,
47349
+ isPlatformAccount,
47347
47350
  pageNumber,
47348
47351
  take,
47349
47352
  skip,
@@ -47366,6 +47369,7 @@ const request = (config, options, axiosClient = axios) => {
47366
47369
  NameLike: nameLike,
47367
47370
  Email: email,
47368
47371
  InviteStatus: inviteStatus,
47372
+ IsPlatformAccount: isPlatformAccount,
47369
47373
  PageNumber: pageNumber,
47370
47374
  Take: take,
47371
47375
  Skip: skip,
@@ -47460,6 +47464,7 @@ const request = (config, options, axiosClient = axios) => {
47460
47464
  nameLike,
47461
47465
  email,
47462
47466
  inviteStatus,
47467
+ isPlatformAccount,
47463
47468
  pageNumber,
47464
47469
  take,
47465
47470
  skip,
@@ -47482,6 +47487,7 @@ const request = (config, options, axiosClient = axios) => {
47482
47487
  NameLike: nameLike,
47483
47488
  Email: email,
47484
47489
  InviteStatus: inviteStatus,
47490
+ IsPlatformAccount: isPlatformAccount,
47485
47491
  PageNumber: pageNumber,
47486
47492
  Take: take,
47487
47493
  Skip: skip,
@@ -47513,6 +47519,7 @@ const request = (config, options, axiosClient = axios) => {
47513
47519
  nameLike,
47514
47520
  email,
47515
47521
  inviteStatus,
47522
+ isPlatformAccount,
47516
47523
  pageNumber,
47517
47524
  take,
47518
47525
  skip,
@@ -47535,6 +47542,7 @@ const request = (config, options, axiosClient = axios) => {
47535
47542
  NameLike: nameLike,
47536
47543
  Email: email,
47537
47544
  InviteStatus: inviteStatus,
47545
+ IsPlatformAccount: isPlatformAccount,
47538
47546
  PageNumber: pageNumber,
47539
47547
  Take: take,
47540
47548
  Skip: skip,
@@ -47566,6 +47574,7 @@ const request = (config, options, axiosClient = axios) => {
47566
47574
  nameLike,
47567
47575
  email,
47568
47576
  inviteStatus,
47577
+ isPlatformAccount,
47569
47578
  pageNumber,
47570
47579
  take,
47571
47580
  skip,
@@ -47588,6 +47597,7 @@ const request = (config, options, axiosClient = axios) => {
47588
47597
  NameLike: nameLike,
47589
47598
  Email: email,
47590
47599
  InviteStatus: inviteStatus,
47600
+ IsPlatformAccount: isPlatformAccount,
47591
47601
  PageNumber: pageNumber,
47592
47602
  Take: take,
47593
47603
  Skip: skip,
@@ -47619,6 +47629,7 @@ const request = (config, options, axiosClient = axios) => {
47619
47629
  nameLike,
47620
47630
  email,
47621
47631
  inviteStatus,
47632
+ isPlatformAccount,
47622
47633
  pageNumber,
47623
47634
  take,
47624
47635
  skip,
@@ -47641,6 +47652,7 @@ const request = (config, options, axiosClient = axios) => {
47641
47652
  NameLike: nameLike,
47642
47653
  Email: email,
47643
47654
  InviteStatus: inviteStatus,
47655
+ IsPlatformAccount: isPlatformAccount,
47644
47656
  PageNumber: pageNumber,
47645
47657
  Take: take,
47646
47658
  Skip: skip,
@@ -52216,6 +52228,30 @@ const request = (config, options, axiosClient = axios) => {
52216
52228
  }
52217
52229
  });
52218
52230
  }
52231
+ /**
52232
+ * Reassesses the active credit period for a wallet and sets balance to the new allocation.
52233
+ * @returns Wallet OK
52234
+ * @throws ApiError
52235
+ */
52236
+ reassessCreditPeriod({
52237
+ id,
52238
+ requestBody
52239
+ }) {
52240
+ return this.httpRequest.request({
52241
+ method: "POST",
52242
+ url: "/api/wallets/{id}/credit-periods/reassess",
52243
+ path: {
52244
+ id
52245
+ },
52246
+ body: requestBody,
52247
+ mediaType: "application/json",
52248
+ errors: {
52249
+ 400: `Bad Request`,
52250
+ 422: `Unprocessable Content`,
52251
+ 500: `Internal Server Error`
52252
+ }
52253
+ });
52254
+ }
52219
52255
  /**
52220
52256
  * Gets the transaction history for a wallet.
52221
52257
  * @returns WalletTransaction OK
@@ -53844,7 +53880,11 @@ const request = (config, options, axiosClient = axios) => {
53844
53880
  UpcomingLayout2["GRID"] = "Grid";
53845
53881
  UpcomingLayout2["CALENDAR"] = "Calendar";
53846
53882
  return UpcomingLayout2;
53847
- })(UpcomingLayout || {});var WalletTrackingLevel = /* @__PURE__ */ ((WalletTrackingLevel2) => {
53883
+ })(UpcomingLayout || {});var WalletCreditPeriodStatus = /* @__PURE__ */ ((WalletCreditPeriodStatus2) => {
53884
+ WalletCreditPeriodStatus2["ACTIVE"] = "Active";
53885
+ WalletCreditPeriodStatus2["CLOSED"] = "Closed";
53886
+ return WalletCreditPeriodStatus2;
53887
+ })(WalletCreditPeriodStatus || {});var WalletTrackingLevel = /* @__PURE__ */ ((WalletTrackingLevel2) => {
53848
53888
  WalletTrackingLevel2["CUSTOMER"] = "Customer";
53849
53889
  WalletTrackingLevel2["ATTENDEE"] = "Attendee";
53850
53890
  return WalletTrackingLevel2;
@@ -53858,4 +53898,4 @@ const request = (config, options, axiosClient = axios) => {
53858
53898
  WebsiteHomepage2["DEFAULT"] = "Default";
53859
53899
  WebsiteHomepage2["MAP"] = "Map";
53860
53900
  return WebsiteHomepage2;
53861
- })(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};
53901
+ })(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.225",
3
+ "version": "1.0.228",
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}`)