@munchi_oy/core 1.9.84 → 1.9.87

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/generated/api.ts CHANGED
@@ -649,6 +649,12 @@ export interface BusinessConfigResponseDto {
649
649
  * @memberof BusinessConfigResponseDto
650
650
  */
651
651
  'hasLoyaltyProgram': boolean;
652
+ /**
653
+ * Indicates if a reservation/booking integration is enabled for this business
654
+ * @type {boolean}
655
+ * @memberof BusinessConfigResponseDto
656
+ */
657
+ 'hasReservations': boolean;
652
658
  /**
653
659
  * Indicates if the business has a invoice company linked
654
660
  * @type {boolean}
@@ -4254,6 +4260,69 @@ export interface CreateRefundPlanDto {
4254
4260
  }
4255
4261
 
4256
4262
 
4263
+ /**
4264
+ *
4265
+ * @export
4266
+ * @interface CreateReservationDto
4267
+ */
4268
+ export interface CreateReservationDto {
4269
+ /**
4270
+ *
4271
+ * @type {number}
4272
+ * @memberof CreateReservationDto
4273
+ */
4274
+ 'businessId': number;
4275
+ /**
4276
+ *
4277
+ * @type {number}
4278
+ * @memberof CreateReservationDto
4279
+ */
4280
+ 'partySize': number;
4281
+ /**
4282
+ *
4283
+ * @type {string}
4284
+ * @memberof CreateReservationDto
4285
+ */
4286
+ 'startsAt': string;
4287
+ /**
4288
+ *
4289
+ * @type {number}
4290
+ * @memberof CreateReservationDto
4291
+ */
4292
+ 'durationMins'?: number;
4293
+ /**
4294
+ *
4295
+ * @type {ReservationSource}
4296
+ * @memberof CreateReservationDto
4297
+ */
4298
+ 'source'?: ReservationSource;
4299
+ /**
4300
+ *
4301
+ * @type {string}
4302
+ * @memberof CreateReservationDto
4303
+ */
4304
+ 'guestName'?: string;
4305
+ /**
4306
+ *
4307
+ * @type {string}
4308
+ * @memberof CreateReservationDto
4309
+ */
4310
+ 'guestPhone'?: string;
4311
+ /**
4312
+ *
4313
+ * @type {string}
4314
+ * @memberof CreateReservationDto
4315
+ */
4316
+ 'notes'?: string;
4317
+ /**
4318
+ *
4319
+ * @type {Array<string>}
4320
+ * @memberof CreateReservationDto
4321
+ */
4322
+ 'tableIds'?: Array<string>;
4323
+ }
4324
+
4325
+
4257
4326
  /**
4258
4327
  *
4259
4328
  * @export
@@ -5959,6 +6028,12 @@ export interface ExternalBusinessConfigDto {
5959
6028
  * @memberof ExternalBusinessConfigDto
5960
6029
  */
5961
6030
  'hasLoyaltyProgram': boolean;
6031
+ /**
6032
+ * Indicates if a reservation/booking integration is enabled for this business
6033
+ * @type {boolean}
6034
+ * @memberof ExternalBusinessConfigDto
6035
+ */
6036
+ 'hasReservations': boolean;
5962
6037
  /**
5963
6038
  * Indicates if the business has a invoice company linked
5964
6039
  * @type {boolean}
@@ -6672,6 +6747,49 @@ export interface ImageBackgroundConfig {
6672
6747
  }
6673
6748
 
6674
6749
 
6750
+ /**
6751
+ *
6752
+ * @export
6753
+ * @interface InboundReservationWebhookDto
6754
+ */
6755
+ export interface InboundReservationWebhookDto {
6756
+ /**
6757
+ * Booking provider key
6758
+ * @type {string}
6759
+ * @memberof InboundReservationWebhookDto
6760
+ */
6761
+ 'provider'?: string;
6762
+ /**
6763
+ *
6764
+ * @type {string}
6765
+ * @memberof InboundReservationWebhookDto
6766
+ */
6767
+ 'event': string;
6768
+ /**
6769
+ *
6770
+ * @type {string}
6771
+ * @memberof InboundReservationWebhookDto
6772
+ */
6773
+ 'event_id': string;
6774
+ /**
6775
+ *
6776
+ * @type {string}
6777
+ * @memberof InboundReservationWebhookDto
6778
+ */
6779
+ 'timestamp': string;
6780
+ /**
6781
+ *
6782
+ * @type {number}
6783
+ * @memberof InboundReservationWebhookDto
6784
+ */
6785
+ 'businessId': number;
6786
+ /**
6787
+ * Provider-specific reservation payload
6788
+ * @type {object}
6789
+ * @memberof InboundReservationWebhookDto
6790
+ */
6791
+ 'payload': object;
6792
+ }
6675
6793
  /**
6676
6794
  *
6677
6795
  * @export
@@ -8783,6 +8901,49 @@ export interface LinkBusinessResultDto {
8783
8901
  */
8784
8902
  'failedBusinessIds': Array<number>;
8785
8903
  }
8904
+ /**
8905
+ *
8906
+ * @export
8907
+ * @interface LinkReservationIntegrationDto
8908
+ */
8909
+ export interface LinkReservationIntegrationDto {
8910
+ /**
8911
+ *
8912
+ * @type {number}
8913
+ * @memberof LinkReservationIntegrationDto
8914
+ */
8915
+ 'businessId': number;
8916
+ /**
8917
+ * Booking provider key
8918
+ * @type {string}
8919
+ * @memberof LinkReservationIntegrationDto
8920
+ */
8921
+ 'provider'?: string;
8922
+ /**
8923
+ *
8924
+ * @type {string}
8925
+ * @memberof LinkReservationIntegrationDto
8926
+ */
8927
+ 'externalRestaurantId': string;
8928
+ /**
8929
+ *
8930
+ * @type {string}
8931
+ * @memberof LinkReservationIntegrationDto
8932
+ */
8933
+ 'inboundWebhookUrl': string;
8934
+ /**
8935
+ *
8936
+ * @type {string}
8937
+ * @memberof LinkReservationIntegrationDto
8938
+ */
8939
+ 'signingSecret': string;
8940
+ /**
8941
+ *
8942
+ * @type {string}
8943
+ * @memberof LinkReservationIntegrationDto
8944
+ */
8945
+ 'externalLocationId'?: string;
8946
+ }
8786
8947
  /**
8787
8948
  *
8788
8949
  * @export
@@ -15340,6 +15501,12 @@ export interface PosMenuReportingCategoryDto {
15340
15501
  * @memberof PosMenuReportingCategoryDto
15341
15502
  */
15342
15503
  'id': number;
15504
+ /**
15505
+ *
15506
+ * @type {string}
15507
+ * @memberof PosMenuReportingCategoryDto
15508
+ */
15509
+ 'reporting_category_name': string | null;
15343
15510
  }
15344
15511
  /**
15345
15512
  *
@@ -19445,6 +19612,183 @@ export interface RequestSessionTokenResponseDto {
19445
19612
  */
19446
19613
  'sessionChannel': string;
19447
19614
  }
19615
+ /**
19616
+ *
19617
+ * @export
19618
+ * @interface ReservationResponseDto
19619
+ */
19620
+ export interface ReservationResponseDto {
19621
+ /**
19622
+ *
19623
+ * @type {string}
19624
+ * @memberof ReservationResponseDto
19625
+ */
19626
+ 'id': string;
19627
+ /**
19628
+ *
19629
+ * @type {number}
19630
+ * @memberof ReservationResponseDto
19631
+ */
19632
+ 'orderingBusinessId': number;
19633
+ /**
19634
+ *
19635
+ * @type {string}
19636
+ * @memberof ReservationResponseDto
19637
+ */
19638
+ 'externalId': string | null;
19639
+ /**
19640
+ *
19641
+ * @type {string}
19642
+ * @memberof ReservationResponseDto
19643
+ */
19644
+ 'referenceCode': string | null;
19645
+ /**
19646
+ *
19647
+ * @type {ReservationSource}
19648
+ * @memberof ReservationResponseDto
19649
+ */
19650
+ 'source': ReservationSource;
19651
+ /**
19652
+ *
19653
+ * @type {ReservationStatus}
19654
+ * @memberof ReservationResponseDto
19655
+ */
19656
+ 'status': ReservationStatus;
19657
+ /**
19658
+ *
19659
+ * @type {number}
19660
+ * @memberof ReservationResponseDto
19661
+ */
19662
+ 'partySize': number;
19663
+ /**
19664
+ *
19665
+ * @type {string}
19666
+ * @memberof ReservationResponseDto
19667
+ */
19668
+ 'startsAt': string;
19669
+ /**
19670
+ *
19671
+ * @type {number}
19672
+ * @memberof ReservationResponseDto
19673
+ */
19674
+ 'durationMins': number | null;
19675
+ /**
19676
+ *
19677
+ * @type {string}
19678
+ * @memberof ReservationResponseDto
19679
+ */
19680
+ 'guestName': string | null;
19681
+ /**
19682
+ *
19683
+ * @type {string}
19684
+ * @memberof ReservationResponseDto
19685
+ */
19686
+ 'guestPhone': string | null;
19687
+ /**
19688
+ *
19689
+ * @type {string}
19690
+ * @memberof ReservationResponseDto
19691
+ */
19692
+ 'guestEmail': string | null;
19693
+ /**
19694
+ *
19695
+ * @type {string}
19696
+ * @memberof ReservationResponseDto
19697
+ */
19698
+ 'notes': string | null;
19699
+ /**
19700
+ *
19701
+ * @type {Array<string>}
19702
+ * @memberof ReservationResponseDto
19703
+ */
19704
+ 'tags': Array<string>;
19705
+ /**
19706
+ *
19707
+ * @type {Array<string>}
19708
+ * @memberof ReservationResponseDto
19709
+ */
19710
+ 'tableIds': Array<string>;
19711
+ /**
19712
+ *
19713
+ * @type {string}
19714
+ * @memberof ReservationResponseDto
19715
+ */
19716
+ 'tableGroupId': string | null;
19717
+ /**
19718
+ *
19719
+ * @type {string}
19720
+ * @memberof ReservationResponseDto
19721
+ */
19722
+ 'orderId': string | null;
19723
+ /**
19724
+ *
19725
+ * @type {string}
19726
+ * @memberof ReservationResponseDto
19727
+ */
19728
+ 'seatedAt': string | null;
19729
+ /**
19730
+ *
19731
+ * @type {string}
19732
+ * @memberof ReservationResponseDto
19733
+ */
19734
+ 'completedAt': string | null;
19735
+ /**
19736
+ *
19737
+ * @type {string}
19738
+ * @memberof ReservationResponseDto
19739
+ */
19740
+ 'cancelledAt': string | null;
19741
+ /**
19742
+ *
19743
+ * @type {string}
19744
+ * @memberof ReservationResponseDto
19745
+ */
19746
+ 'createdAt': string;
19747
+ /**
19748
+ *
19749
+ * @type {string}
19750
+ * @memberof ReservationResponseDto
19751
+ */
19752
+ 'updatedAt': string;
19753
+ }
19754
+
19755
+
19756
+ /**
19757
+ *
19758
+ * @export
19759
+ * @enum {string}
19760
+ */
19761
+
19762
+ export const ReservationSource = {
19763
+ WalkIn: 'WALK_IN',
19764
+ Pos: 'POS',
19765
+ ReservationsApp: 'RESERVATIONS_APP',
19766
+ OnlineWidget: 'ONLINE_WIDGET',
19767
+ Phone: 'PHONE'
19768
+ } as const;
19769
+
19770
+ export type ReservationSource = typeof ReservationSource[keyof typeof ReservationSource];
19771
+
19772
+
19773
+ /**
19774
+ *
19775
+ * @export
19776
+ * @enum {string}
19777
+ */
19778
+
19779
+ export const ReservationStatus = {
19780
+ Requested: 'REQUESTED',
19781
+ Confirmed: 'CONFIRMED',
19782
+ Waitlist: 'WAITLIST',
19783
+ Seated: 'SEATED',
19784
+ NoShow: 'NO_SHOW',
19785
+ Completed: 'COMPLETED',
19786
+ Cancelled: 'CANCELLED'
19787
+ } as const;
19788
+
19789
+ export type ReservationStatus = typeof ReservationStatus[keyof typeof ReservationStatus];
19790
+
19791
+
19448
19792
  /**
19449
19793
  *
19450
19794
  * @export
@@ -23512,6 +23856,133 @@ export interface UpdateProductSkuDto {
23512
23856
  */
23513
23857
  'sku': string;
23514
23858
  }
23859
+ /**
23860
+ *
23861
+ * @export
23862
+ * @interface UpdateReservationDto
23863
+ */
23864
+ export interface UpdateReservationDto {
23865
+ /**
23866
+ *
23867
+ * @type {number}
23868
+ * @memberof UpdateReservationDto
23869
+ */
23870
+ 'businessId'?: number;
23871
+ /**
23872
+ *
23873
+ * @type {number}
23874
+ * @memberof UpdateReservationDto
23875
+ */
23876
+ 'partySize'?: number;
23877
+ /**
23878
+ *
23879
+ * @type {string}
23880
+ * @memberof UpdateReservationDto
23881
+ */
23882
+ 'startsAt'?: string;
23883
+ /**
23884
+ *
23885
+ * @type {number}
23886
+ * @memberof UpdateReservationDto
23887
+ */
23888
+ 'durationMins'?: number;
23889
+ /**
23890
+ *
23891
+ * @type {ReservationSource}
23892
+ * @memberof UpdateReservationDto
23893
+ */
23894
+ 'source'?: ReservationSource;
23895
+ /**
23896
+ *
23897
+ * @type {string}
23898
+ * @memberof UpdateReservationDto
23899
+ */
23900
+ 'guestName'?: string;
23901
+ /**
23902
+ *
23903
+ * @type {string}
23904
+ * @memberof UpdateReservationDto
23905
+ */
23906
+ 'guestPhone'?: string;
23907
+ /**
23908
+ *
23909
+ * @type {string}
23910
+ * @memberof UpdateReservationDto
23911
+ */
23912
+ 'notes'?: string;
23913
+ /**
23914
+ *
23915
+ * @type {Array<string>}
23916
+ * @memberof UpdateReservationDto
23917
+ */
23918
+ 'tableIds'?: Array<string>;
23919
+ }
23920
+
23921
+
23922
+ /**
23923
+ *
23924
+ * @export
23925
+ * @interface UpdateReservationPolicyDto
23926
+ */
23927
+ export interface UpdateReservationPolicyDto {
23928
+ /**
23929
+ *
23930
+ * @type {number}
23931
+ * @memberof UpdateReservationPolicyDto
23932
+ */
23933
+ 'businessId': number;
23934
+ /**
23935
+ *
23936
+ * @type {number}
23937
+ * @memberof UpdateReservationPolicyDto
23938
+ */
23939
+ 'defaultTurnTimeMins'?: number;
23940
+ /**
23941
+ *
23942
+ * @type {number}
23943
+ * @memberof UpdateReservationPolicyDto
23944
+ */
23945
+ 'slotGranularityMins'?: number;
23946
+ /**
23947
+ *
23948
+ * @type {number}
23949
+ * @memberof UpdateReservationPolicyDto
23950
+ */
23951
+ 'bufferMins'?: number;
23952
+ /**
23953
+ *
23954
+ * @type {number}
23955
+ * @memberof UpdateReservationPolicyDto
23956
+ */
23957
+ 'minLeadTimeMins'?: number;
23958
+ /**
23959
+ *
23960
+ * @type {number}
23961
+ * @memberof UpdateReservationPolicyDto
23962
+ */
23963
+ 'maxOnlinePartySize'?: number;
23964
+ }
23965
+ /**
23966
+ *
23967
+ * @export
23968
+ * @interface UpdateReservationStatusDto
23969
+ */
23970
+ export interface UpdateReservationStatusDto {
23971
+ /**
23972
+ *
23973
+ * @type {ReservationStatus}
23974
+ * @memberof UpdateReservationStatusDto
23975
+ */
23976
+ 'status': ReservationStatus;
23977
+ /**
23978
+ * Tables to assign when seating
23979
+ * @type {Array<string>}
23980
+ * @memberof UpdateReservationStatusDto
23981
+ */
23982
+ 'tableIds'?: Array<string>;
23983
+ }
23984
+
23985
+
23515
23986
  /**
23516
23987
  *
23517
23988
  * @export
@@ -47055,6 +47526,964 @@ export class ReportApi extends BaseAPI implements ReportApiInterface {
47055
47526
  }
47056
47527
 
47057
47528
 
47529
+ /**
47530
+ * ReservationsApi - axios parameter creator
47531
+ * @export
47532
+ */
47533
+ export const ReservationsApiAxiosParamCreator = function (configuration?: Configuration) {
47534
+ return {
47535
+ /**
47536
+ *
47537
+ * @summary Create a reservation (POS/walk-in)
47538
+ * @param {CreateReservationDto} createReservationDto
47539
+ * @param {*} [options] Override http request option.
47540
+ * @throws {RequiredError}
47541
+ */
47542
+ createReservation: async (createReservationDto: CreateReservationDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
47543
+ // verify required parameter 'createReservationDto' is not null or undefined
47544
+ assertParamExists('createReservation', 'createReservationDto', createReservationDto)
47545
+ const localVarPath = `/api/v1/reservations`;
47546
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
47547
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
47548
+ let baseOptions;
47549
+ if (configuration) {
47550
+ baseOptions = configuration.baseOptions;
47551
+ }
47552
+
47553
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
47554
+ const localVarHeaderParameter = {} as any;
47555
+ const localVarQueryParameter = {} as any;
47556
+
47557
+ // authentication JWT-auth required
47558
+ // http bearer authentication required
47559
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
47560
+
47561
+
47562
+
47563
+ localVarHeaderParameter['Content-Type'] = 'application/json';
47564
+
47565
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
47566
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
47567
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
47568
+ localVarRequestOptions.data = serializeDataIfNeeded(createReservationDto, localVarRequestOptions, configuration)
47569
+
47570
+ return {
47571
+ url: toPathString(localVarUrlObj),
47572
+ options: localVarRequestOptions,
47573
+ };
47574
+ },
47575
+ /**
47576
+ *
47577
+ * @summary Get bookable slots for a day
47578
+ * @param {number} businessId
47579
+ * @param {string} date
47580
+ * @param {number} partySize
47581
+ * @param {*} [options] Override http request option.
47582
+ * @throws {RequiredError}
47583
+ */
47584
+ getReservationAvailability: async (businessId: number, date: string, partySize: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
47585
+ // verify required parameter 'businessId' is not null or undefined
47586
+ assertParamExists('getReservationAvailability', 'businessId', businessId)
47587
+ // verify required parameter 'date' is not null or undefined
47588
+ assertParamExists('getReservationAvailability', 'date', date)
47589
+ // verify required parameter 'partySize' is not null or undefined
47590
+ assertParamExists('getReservationAvailability', 'partySize', partySize)
47591
+ const localVarPath = `/api/v1/reservations/availability`;
47592
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
47593
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
47594
+ let baseOptions;
47595
+ if (configuration) {
47596
+ baseOptions = configuration.baseOptions;
47597
+ }
47598
+
47599
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
47600
+ const localVarHeaderParameter = {} as any;
47601
+ const localVarQueryParameter = {} as any;
47602
+
47603
+ // authentication JWT-auth required
47604
+ // http bearer authentication required
47605
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
47606
+
47607
+ if (businessId !== undefined) {
47608
+ localVarQueryParameter['businessId'] = businessId;
47609
+ }
47610
+
47611
+ if (date !== undefined) {
47612
+ localVarQueryParameter['date'] = date;
47613
+ }
47614
+
47615
+ if (partySize !== undefined) {
47616
+ localVarQueryParameter['partySize'] = partySize;
47617
+ }
47618
+
47619
+
47620
+
47621
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
47622
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
47623
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
47624
+
47625
+ return {
47626
+ url: toPathString(localVarUrlObj),
47627
+ options: localVarRequestOptions,
47628
+ };
47629
+ },
47630
+ /**
47631
+ *
47632
+ * @summary Get the reservation policy
47633
+ * @param {number} businessId
47634
+ * @param {*} [options] Override http request option.
47635
+ * @throws {RequiredError}
47636
+ */
47637
+ getReservationPolicy: async (businessId: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
47638
+ // verify required parameter 'businessId' is not null or undefined
47639
+ assertParamExists('getReservationPolicy', 'businessId', businessId)
47640
+ const localVarPath = `/api/v1/reservations/policy`;
47641
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
47642
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
47643
+ let baseOptions;
47644
+ if (configuration) {
47645
+ baseOptions = configuration.baseOptions;
47646
+ }
47647
+
47648
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
47649
+ const localVarHeaderParameter = {} as any;
47650
+ const localVarQueryParameter = {} as any;
47651
+
47652
+ // authentication JWT-auth required
47653
+ // http bearer authentication required
47654
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
47655
+
47656
+ if (businessId !== undefined) {
47657
+ localVarQueryParameter['businessId'] = businessId;
47658
+ }
47659
+
47660
+
47661
+
47662
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
47663
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
47664
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
47665
+
47666
+ return {
47667
+ url: toPathString(localVarUrlObj),
47668
+ options: localVarRequestOptions,
47669
+ };
47670
+ },
47671
+ /**
47672
+ *
47673
+ * @summary Link a booking-provider reservation integration
47674
+ * @param {LinkReservationIntegrationDto} linkReservationIntegrationDto
47675
+ * @param {*} [options] Override http request option.
47676
+ * @throws {RequiredError}
47677
+ */
47678
+ linkReservationIntegration: async (linkReservationIntegrationDto: LinkReservationIntegrationDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
47679
+ // verify required parameter 'linkReservationIntegrationDto' is not null or undefined
47680
+ assertParamExists('linkReservationIntegration', 'linkReservationIntegrationDto', linkReservationIntegrationDto)
47681
+ const localVarPath = `/api/v1/reservations/link`;
47682
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
47683
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
47684
+ let baseOptions;
47685
+ if (configuration) {
47686
+ baseOptions = configuration.baseOptions;
47687
+ }
47688
+
47689
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
47690
+ const localVarHeaderParameter = {} as any;
47691
+ const localVarQueryParameter = {} as any;
47692
+
47693
+ // authentication JWT-auth required
47694
+ // http bearer authentication required
47695
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
47696
+
47697
+
47698
+
47699
+ localVarHeaderParameter['Content-Type'] = 'application/json';
47700
+
47701
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
47702
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
47703
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
47704
+ localVarRequestOptions.data = serializeDataIfNeeded(linkReservationIntegrationDto, localVarRequestOptions, configuration)
47705
+
47706
+ return {
47707
+ url: toPathString(localVarUrlObj),
47708
+ options: localVarRequestOptions,
47709
+ };
47710
+ },
47711
+ /**
47712
+ *
47713
+ * @summary List reservations for a business
47714
+ * @param {number} businessId
47715
+ * @param {string} [date]
47716
+ * @param {'REQUESTED' | 'CONFIRMED' | 'WAITLIST' | 'SEATED' | 'NO_SHOW' | 'COMPLETED' | 'CANCELLED'} [status]
47717
+ * @param {*} [options] Override http request option.
47718
+ * @throws {RequiredError}
47719
+ */
47720
+ listReservations: async (businessId: number, date?: string, status?: 'REQUESTED' | 'CONFIRMED' | 'WAITLIST' | 'SEATED' | 'NO_SHOW' | 'COMPLETED' | 'CANCELLED', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
47721
+ // verify required parameter 'businessId' is not null or undefined
47722
+ assertParamExists('listReservations', 'businessId', businessId)
47723
+ const localVarPath = `/api/v1/reservations`;
47724
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
47725
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
47726
+ let baseOptions;
47727
+ if (configuration) {
47728
+ baseOptions = configuration.baseOptions;
47729
+ }
47730
+
47731
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
47732
+ const localVarHeaderParameter = {} as any;
47733
+ const localVarQueryParameter = {} as any;
47734
+
47735
+ // authentication JWT-auth required
47736
+ // http bearer authentication required
47737
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
47738
+
47739
+ if (businessId !== undefined) {
47740
+ localVarQueryParameter['businessId'] = businessId;
47741
+ }
47742
+
47743
+ if (date !== undefined) {
47744
+ localVarQueryParameter['date'] = date;
47745
+ }
47746
+
47747
+ if (status !== undefined) {
47748
+ localVarQueryParameter['status'] = status;
47749
+ }
47750
+
47751
+
47752
+
47753
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
47754
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
47755
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
47756
+
47757
+ return {
47758
+ url: toPathString(localVarUrlObj),
47759
+ options: localVarRequestOptions,
47760
+ };
47761
+ },
47762
+ /**
47763
+ *
47764
+ * @summary Receive a booking event from the provider
47765
+ * @param {InboundReservationWebhookDto} inboundReservationWebhookDto
47766
+ * @param {*} [options] Override http request option.
47767
+ * @throws {RequiredError}
47768
+ */
47769
+ reservationInboundWebhook: async (inboundReservationWebhookDto: InboundReservationWebhookDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
47770
+ // verify required parameter 'inboundReservationWebhookDto' is not null or undefined
47771
+ assertParamExists('reservationInboundWebhook', 'inboundReservationWebhookDto', inboundReservationWebhookDto)
47772
+ const localVarPath = `/api/v1/reservations/webhook/inbound`;
47773
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
47774
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
47775
+ let baseOptions;
47776
+ if (configuration) {
47777
+ baseOptions = configuration.baseOptions;
47778
+ }
47779
+
47780
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
47781
+ const localVarHeaderParameter = {} as any;
47782
+ const localVarQueryParameter = {} as any;
47783
+
47784
+ // authentication JWT-auth required
47785
+ // http bearer authentication required
47786
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
47787
+
47788
+
47789
+
47790
+ localVarHeaderParameter['Content-Type'] = 'application/json';
47791
+
47792
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
47793
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
47794
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
47795
+ localVarRequestOptions.data = serializeDataIfNeeded(inboundReservationWebhookDto, localVarRequestOptions, configuration)
47796
+
47797
+ return {
47798
+ url: toPathString(localVarUrlObj),
47799
+ options: localVarRequestOptions,
47800
+ };
47801
+ },
47802
+ /**
47803
+ *
47804
+ * @summary Unlink a reservation integration
47805
+ * @param {number} businessId
47806
+ * @param {*} [options] Override http request option.
47807
+ * @throws {RequiredError}
47808
+ */
47809
+ unlinkReservationIntegration: async (businessId: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
47810
+ // verify required parameter 'businessId' is not null or undefined
47811
+ assertParamExists('unlinkReservationIntegration', 'businessId', businessId)
47812
+ const localVarPath = `/api/v1/reservations/link`;
47813
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
47814
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
47815
+ let baseOptions;
47816
+ if (configuration) {
47817
+ baseOptions = configuration.baseOptions;
47818
+ }
47819
+
47820
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
47821
+ const localVarHeaderParameter = {} as any;
47822
+ const localVarQueryParameter = {} as any;
47823
+
47824
+ // authentication JWT-auth required
47825
+ // http bearer authentication required
47826
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
47827
+
47828
+ if (businessId !== undefined) {
47829
+ localVarQueryParameter['businessId'] = businessId;
47830
+ }
47831
+
47832
+
47833
+
47834
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
47835
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
47836
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
47837
+
47838
+ return {
47839
+ url: toPathString(localVarUrlObj),
47840
+ options: localVarRequestOptions,
47841
+ };
47842
+ },
47843
+ /**
47844
+ *
47845
+ * @summary Update a reservation
47846
+ * @param {string} id
47847
+ * @param {number} businessId
47848
+ * @param {UpdateReservationDto} updateReservationDto
47849
+ * @param {*} [options] Override http request option.
47850
+ * @throws {RequiredError}
47851
+ */
47852
+ updateReservation: async (id: string, businessId: number, updateReservationDto: UpdateReservationDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
47853
+ // verify required parameter 'id' is not null or undefined
47854
+ assertParamExists('updateReservation', 'id', id)
47855
+ // verify required parameter 'businessId' is not null or undefined
47856
+ assertParamExists('updateReservation', 'businessId', businessId)
47857
+ // verify required parameter 'updateReservationDto' is not null or undefined
47858
+ assertParamExists('updateReservation', 'updateReservationDto', updateReservationDto)
47859
+ const localVarPath = `/api/v1/reservations/{id}`
47860
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
47861
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
47862
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
47863
+ let baseOptions;
47864
+ if (configuration) {
47865
+ baseOptions = configuration.baseOptions;
47866
+ }
47867
+
47868
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
47869
+ const localVarHeaderParameter = {} as any;
47870
+ const localVarQueryParameter = {} as any;
47871
+
47872
+ // authentication JWT-auth required
47873
+ // http bearer authentication required
47874
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
47875
+
47876
+ if (businessId !== undefined) {
47877
+ localVarQueryParameter['businessId'] = businessId;
47878
+ }
47879
+
47880
+
47881
+
47882
+ localVarHeaderParameter['Content-Type'] = 'application/json';
47883
+
47884
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
47885
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
47886
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
47887
+ localVarRequestOptions.data = serializeDataIfNeeded(updateReservationDto, localVarRequestOptions, configuration)
47888
+
47889
+ return {
47890
+ url: toPathString(localVarUrlObj),
47891
+ options: localVarRequestOptions,
47892
+ };
47893
+ },
47894
+ /**
47895
+ *
47896
+ * @summary Update the reservation policy
47897
+ * @param {UpdateReservationPolicyDto} updateReservationPolicyDto
47898
+ * @param {*} [options] Override http request option.
47899
+ * @throws {RequiredError}
47900
+ */
47901
+ updateReservationPolicy: async (updateReservationPolicyDto: UpdateReservationPolicyDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
47902
+ // verify required parameter 'updateReservationPolicyDto' is not null or undefined
47903
+ assertParamExists('updateReservationPolicy', 'updateReservationPolicyDto', updateReservationPolicyDto)
47904
+ const localVarPath = `/api/v1/reservations/policy`;
47905
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
47906
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
47907
+ let baseOptions;
47908
+ if (configuration) {
47909
+ baseOptions = configuration.baseOptions;
47910
+ }
47911
+
47912
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
47913
+ const localVarHeaderParameter = {} as any;
47914
+ const localVarQueryParameter = {} as any;
47915
+
47916
+ // authentication JWT-auth required
47917
+ // http bearer authentication required
47918
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
47919
+
47920
+
47921
+
47922
+ localVarHeaderParameter['Content-Type'] = 'application/json';
47923
+
47924
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
47925
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
47926
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
47927
+ localVarRequestOptions.data = serializeDataIfNeeded(updateReservationPolicyDto, localVarRequestOptions, configuration)
47928
+
47929
+ return {
47930
+ url: toPathString(localVarUrlObj),
47931
+ options: localVarRequestOptions,
47932
+ };
47933
+ },
47934
+ /**
47935
+ *
47936
+ * @summary Update reservation status
47937
+ * @param {string} id
47938
+ * @param {number} businessId
47939
+ * @param {UpdateReservationStatusDto} updateReservationStatusDto
47940
+ * @param {*} [options] Override http request option.
47941
+ * @throws {RequiredError}
47942
+ */
47943
+ updateReservationStatus: async (id: string, businessId: number, updateReservationStatusDto: UpdateReservationStatusDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
47944
+ // verify required parameter 'id' is not null or undefined
47945
+ assertParamExists('updateReservationStatus', 'id', id)
47946
+ // verify required parameter 'businessId' is not null or undefined
47947
+ assertParamExists('updateReservationStatus', 'businessId', businessId)
47948
+ // verify required parameter 'updateReservationStatusDto' is not null or undefined
47949
+ assertParamExists('updateReservationStatus', 'updateReservationStatusDto', updateReservationStatusDto)
47950
+ const localVarPath = `/api/v1/reservations/{id}/status`
47951
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
47952
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
47953
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
47954
+ let baseOptions;
47955
+ if (configuration) {
47956
+ baseOptions = configuration.baseOptions;
47957
+ }
47958
+
47959
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
47960
+ const localVarHeaderParameter = {} as any;
47961
+ const localVarQueryParameter = {} as any;
47962
+
47963
+ // authentication JWT-auth required
47964
+ // http bearer authentication required
47965
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
47966
+
47967
+ if (businessId !== undefined) {
47968
+ localVarQueryParameter['businessId'] = businessId;
47969
+ }
47970
+
47971
+
47972
+
47973
+ localVarHeaderParameter['Content-Type'] = 'application/json';
47974
+
47975
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
47976
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
47977
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
47978
+ localVarRequestOptions.data = serializeDataIfNeeded(updateReservationStatusDto, localVarRequestOptions, configuration)
47979
+
47980
+ return {
47981
+ url: toPathString(localVarUrlObj),
47982
+ options: localVarRequestOptions,
47983
+ };
47984
+ },
47985
+ }
47986
+ };
47987
+
47988
+ /**
47989
+ * ReservationsApi - functional programming interface
47990
+ * @export
47991
+ */
47992
+ export const ReservationsApiFp = function(configuration?: Configuration) {
47993
+ const localVarAxiosParamCreator = ReservationsApiAxiosParamCreator(configuration)
47994
+ return {
47995
+ /**
47996
+ *
47997
+ * @summary Create a reservation (POS/walk-in)
47998
+ * @param {CreateReservationDto} createReservationDto
47999
+ * @param {*} [options] Override http request option.
48000
+ * @throws {RequiredError}
48001
+ */
48002
+ async createReservation(createReservationDto: CreateReservationDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReservationResponseDto>> {
48003
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createReservation(createReservationDto, options);
48004
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
48005
+ },
48006
+ /**
48007
+ *
48008
+ * @summary Get bookable slots for a day
48009
+ * @param {number} businessId
48010
+ * @param {string} date
48011
+ * @param {number} partySize
48012
+ * @param {*} [options] Override http request option.
48013
+ * @throws {RequiredError}
48014
+ */
48015
+ async getReservationAvailability(businessId: number, date: string, partySize: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
48016
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getReservationAvailability(businessId, date, partySize, options);
48017
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
48018
+ },
48019
+ /**
48020
+ *
48021
+ * @summary Get the reservation policy
48022
+ * @param {number} businessId
48023
+ * @param {*} [options] Override http request option.
48024
+ * @throws {RequiredError}
48025
+ */
48026
+ async getReservationPolicy(businessId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
48027
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getReservationPolicy(businessId, options);
48028
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
48029
+ },
48030
+ /**
48031
+ *
48032
+ * @summary Link a booking-provider reservation integration
48033
+ * @param {LinkReservationIntegrationDto} linkReservationIntegrationDto
48034
+ * @param {*} [options] Override http request option.
48035
+ * @throws {RequiredError}
48036
+ */
48037
+ async linkReservationIntegration(linkReservationIntegrationDto: LinkReservationIntegrationDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
48038
+ const localVarAxiosArgs = await localVarAxiosParamCreator.linkReservationIntegration(linkReservationIntegrationDto, options);
48039
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
48040
+ },
48041
+ /**
48042
+ *
48043
+ * @summary List reservations for a business
48044
+ * @param {number} businessId
48045
+ * @param {string} [date]
48046
+ * @param {'REQUESTED' | 'CONFIRMED' | 'WAITLIST' | 'SEATED' | 'NO_SHOW' | 'COMPLETED' | 'CANCELLED'} [status]
48047
+ * @param {*} [options] Override http request option.
48048
+ * @throws {RequiredError}
48049
+ */
48050
+ async listReservations(businessId: number, date?: string, status?: 'REQUESTED' | 'CONFIRMED' | 'WAITLIST' | 'SEATED' | 'NO_SHOW' | 'COMPLETED' | 'CANCELLED', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ReservationResponseDto>>> {
48051
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listReservations(businessId, date, status, options);
48052
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
48053
+ },
48054
+ /**
48055
+ *
48056
+ * @summary Receive a booking event from the provider
48057
+ * @param {InboundReservationWebhookDto} inboundReservationWebhookDto
48058
+ * @param {*} [options] Override http request option.
48059
+ * @throws {RequiredError}
48060
+ */
48061
+ async reservationInboundWebhook(inboundReservationWebhookDto: InboundReservationWebhookDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
48062
+ const localVarAxiosArgs = await localVarAxiosParamCreator.reservationInboundWebhook(inboundReservationWebhookDto, options);
48063
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
48064
+ },
48065
+ /**
48066
+ *
48067
+ * @summary Unlink a reservation integration
48068
+ * @param {number} businessId
48069
+ * @param {*} [options] Override http request option.
48070
+ * @throws {RequiredError}
48071
+ */
48072
+ async unlinkReservationIntegration(businessId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
48073
+ const localVarAxiosArgs = await localVarAxiosParamCreator.unlinkReservationIntegration(businessId, options);
48074
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
48075
+ },
48076
+ /**
48077
+ *
48078
+ * @summary Update a reservation
48079
+ * @param {string} id
48080
+ * @param {number} businessId
48081
+ * @param {UpdateReservationDto} updateReservationDto
48082
+ * @param {*} [options] Override http request option.
48083
+ * @throws {RequiredError}
48084
+ */
48085
+ async updateReservation(id: string, businessId: number, updateReservationDto: UpdateReservationDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReservationResponseDto>> {
48086
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateReservation(id, businessId, updateReservationDto, options);
48087
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
48088
+ },
48089
+ /**
48090
+ *
48091
+ * @summary Update the reservation policy
48092
+ * @param {UpdateReservationPolicyDto} updateReservationPolicyDto
48093
+ * @param {*} [options] Override http request option.
48094
+ * @throws {RequiredError}
48095
+ */
48096
+ async updateReservationPolicy(updateReservationPolicyDto: UpdateReservationPolicyDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
48097
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateReservationPolicy(updateReservationPolicyDto, options);
48098
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
48099
+ },
48100
+ /**
48101
+ *
48102
+ * @summary Update reservation status
48103
+ * @param {string} id
48104
+ * @param {number} businessId
48105
+ * @param {UpdateReservationStatusDto} updateReservationStatusDto
48106
+ * @param {*} [options] Override http request option.
48107
+ * @throws {RequiredError}
48108
+ */
48109
+ async updateReservationStatus(id: string, businessId: number, updateReservationStatusDto: UpdateReservationStatusDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReservationResponseDto>> {
48110
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateReservationStatus(id, businessId, updateReservationStatusDto, options);
48111
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
48112
+ },
48113
+ }
48114
+ };
48115
+
48116
+ /**
48117
+ * ReservationsApi - factory interface
48118
+ * @export
48119
+ */
48120
+ export const ReservationsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
48121
+ const localVarFp = ReservationsApiFp(configuration)
48122
+ return {
48123
+ /**
48124
+ *
48125
+ * @summary Create a reservation (POS/walk-in)
48126
+ * @param {CreateReservationDto} createReservationDto
48127
+ * @param {*} [options] Override http request option.
48128
+ * @throws {RequiredError}
48129
+ */
48130
+ createReservation(createReservationDto: CreateReservationDto, options?: any): AxiosPromise<ReservationResponseDto> {
48131
+ return localVarFp.createReservation(createReservationDto, options).then((request) => request(axios, basePath));
48132
+ },
48133
+ /**
48134
+ *
48135
+ * @summary Get bookable slots for a day
48136
+ * @param {number} businessId
48137
+ * @param {string} date
48138
+ * @param {number} partySize
48139
+ * @param {*} [options] Override http request option.
48140
+ * @throws {RequiredError}
48141
+ */
48142
+ getReservationAvailability(businessId: number, date: string, partySize: number, options?: any): AxiosPromise<void> {
48143
+ return localVarFp.getReservationAvailability(businessId, date, partySize, options).then((request) => request(axios, basePath));
48144
+ },
48145
+ /**
48146
+ *
48147
+ * @summary Get the reservation policy
48148
+ * @param {number} businessId
48149
+ * @param {*} [options] Override http request option.
48150
+ * @throws {RequiredError}
48151
+ */
48152
+ getReservationPolicy(businessId: number, options?: any): AxiosPromise<void> {
48153
+ return localVarFp.getReservationPolicy(businessId, options).then((request) => request(axios, basePath));
48154
+ },
48155
+ /**
48156
+ *
48157
+ * @summary Link a booking-provider reservation integration
48158
+ * @param {LinkReservationIntegrationDto} linkReservationIntegrationDto
48159
+ * @param {*} [options] Override http request option.
48160
+ * @throws {RequiredError}
48161
+ */
48162
+ linkReservationIntegration(linkReservationIntegrationDto: LinkReservationIntegrationDto, options?: any): AxiosPromise<void> {
48163
+ return localVarFp.linkReservationIntegration(linkReservationIntegrationDto, options).then((request) => request(axios, basePath));
48164
+ },
48165
+ /**
48166
+ *
48167
+ * @summary List reservations for a business
48168
+ * @param {number} businessId
48169
+ * @param {string} [date]
48170
+ * @param {'REQUESTED' | 'CONFIRMED' | 'WAITLIST' | 'SEATED' | 'NO_SHOW' | 'COMPLETED' | 'CANCELLED'} [status]
48171
+ * @param {*} [options] Override http request option.
48172
+ * @throws {RequiredError}
48173
+ */
48174
+ listReservations(businessId: number, date?: string, status?: 'REQUESTED' | 'CONFIRMED' | 'WAITLIST' | 'SEATED' | 'NO_SHOW' | 'COMPLETED' | 'CANCELLED', options?: any): AxiosPromise<Array<ReservationResponseDto>> {
48175
+ return localVarFp.listReservations(businessId, date, status, options).then((request) => request(axios, basePath));
48176
+ },
48177
+ /**
48178
+ *
48179
+ * @summary Receive a booking event from the provider
48180
+ * @param {InboundReservationWebhookDto} inboundReservationWebhookDto
48181
+ * @param {*} [options] Override http request option.
48182
+ * @throws {RequiredError}
48183
+ */
48184
+ reservationInboundWebhook(inboundReservationWebhookDto: InboundReservationWebhookDto, options?: any): AxiosPromise<void> {
48185
+ return localVarFp.reservationInboundWebhook(inboundReservationWebhookDto, options).then((request) => request(axios, basePath));
48186
+ },
48187
+ /**
48188
+ *
48189
+ * @summary Unlink a reservation integration
48190
+ * @param {number} businessId
48191
+ * @param {*} [options] Override http request option.
48192
+ * @throws {RequiredError}
48193
+ */
48194
+ unlinkReservationIntegration(businessId: number, options?: any): AxiosPromise<void> {
48195
+ return localVarFp.unlinkReservationIntegration(businessId, options).then((request) => request(axios, basePath));
48196
+ },
48197
+ /**
48198
+ *
48199
+ * @summary Update a reservation
48200
+ * @param {string} id
48201
+ * @param {number} businessId
48202
+ * @param {UpdateReservationDto} updateReservationDto
48203
+ * @param {*} [options] Override http request option.
48204
+ * @throws {RequiredError}
48205
+ */
48206
+ updateReservation(id: string, businessId: number, updateReservationDto: UpdateReservationDto, options?: any): AxiosPromise<ReservationResponseDto> {
48207
+ return localVarFp.updateReservation(id, businessId, updateReservationDto, options).then((request) => request(axios, basePath));
48208
+ },
48209
+ /**
48210
+ *
48211
+ * @summary Update the reservation policy
48212
+ * @param {UpdateReservationPolicyDto} updateReservationPolicyDto
48213
+ * @param {*} [options] Override http request option.
48214
+ * @throws {RequiredError}
48215
+ */
48216
+ updateReservationPolicy(updateReservationPolicyDto: UpdateReservationPolicyDto, options?: any): AxiosPromise<void> {
48217
+ return localVarFp.updateReservationPolicy(updateReservationPolicyDto, options).then((request) => request(axios, basePath));
48218
+ },
48219
+ /**
48220
+ *
48221
+ * @summary Update reservation status
48222
+ * @param {string} id
48223
+ * @param {number} businessId
48224
+ * @param {UpdateReservationStatusDto} updateReservationStatusDto
48225
+ * @param {*} [options] Override http request option.
48226
+ * @throws {RequiredError}
48227
+ */
48228
+ updateReservationStatus(id: string, businessId: number, updateReservationStatusDto: UpdateReservationStatusDto, options?: any): AxiosPromise<ReservationResponseDto> {
48229
+ return localVarFp.updateReservationStatus(id, businessId, updateReservationStatusDto, options).then((request) => request(axios, basePath));
48230
+ },
48231
+ };
48232
+ };
48233
+
48234
+ /**
48235
+ * ReservationsApi - interface
48236
+ * @export
48237
+ * @interface ReservationsApi
48238
+ */
48239
+ export interface ReservationsApiInterface {
48240
+ /**
48241
+ *
48242
+ * @summary Create a reservation (POS/walk-in)
48243
+ * @param {CreateReservationDto} createReservationDto
48244
+ * @param {*} [options] Override http request option.
48245
+ * @throws {RequiredError}
48246
+ * @memberof ReservationsApiInterface
48247
+ */
48248
+ createReservation(createReservationDto: CreateReservationDto, options?: AxiosRequestConfig): AxiosPromise<ReservationResponseDto>;
48249
+
48250
+ /**
48251
+ *
48252
+ * @summary Get bookable slots for a day
48253
+ * @param {number} businessId
48254
+ * @param {string} date
48255
+ * @param {number} partySize
48256
+ * @param {*} [options] Override http request option.
48257
+ * @throws {RequiredError}
48258
+ * @memberof ReservationsApiInterface
48259
+ */
48260
+ getReservationAvailability(businessId: number, date: string, partySize: number, options?: AxiosRequestConfig): AxiosPromise<void>;
48261
+
48262
+ /**
48263
+ *
48264
+ * @summary Get the reservation policy
48265
+ * @param {number} businessId
48266
+ * @param {*} [options] Override http request option.
48267
+ * @throws {RequiredError}
48268
+ * @memberof ReservationsApiInterface
48269
+ */
48270
+ getReservationPolicy(businessId: number, options?: AxiosRequestConfig): AxiosPromise<void>;
48271
+
48272
+ /**
48273
+ *
48274
+ * @summary Link a booking-provider reservation integration
48275
+ * @param {LinkReservationIntegrationDto} linkReservationIntegrationDto
48276
+ * @param {*} [options] Override http request option.
48277
+ * @throws {RequiredError}
48278
+ * @memberof ReservationsApiInterface
48279
+ */
48280
+ linkReservationIntegration(linkReservationIntegrationDto: LinkReservationIntegrationDto, options?: AxiosRequestConfig): AxiosPromise<void>;
48281
+
48282
+ /**
48283
+ *
48284
+ * @summary List reservations for a business
48285
+ * @param {number} businessId
48286
+ * @param {string} [date]
48287
+ * @param {'REQUESTED' | 'CONFIRMED' | 'WAITLIST' | 'SEATED' | 'NO_SHOW' | 'COMPLETED' | 'CANCELLED'} [status]
48288
+ * @param {*} [options] Override http request option.
48289
+ * @throws {RequiredError}
48290
+ * @memberof ReservationsApiInterface
48291
+ */
48292
+ listReservations(businessId: number, date?: string, status?: 'REQUESTED' | 'CONFIRMED' | 'WAITLIST' | 'SEATED' | 'NO_SHOW' | 'COMPLETED' | 'CANCELLED', options?: AxiosRequestConfig): AxiosPromise<Array<ReservationResponseDto>>;
48293
+
48294
+ /**
48295
+ *
48296
+ * @summary Receive a booking event from the provider
48297
+ * @param {InboundReservationWebhookDto} inboundReservationWebhookDto
48298
+ * @param {*} [options] Override http request option.
48299
+ * @throws {RequiredError}
48300
+ * @memberof ReservationsApiInterface
48301
+ */
48302
+ reservationInboundWebhook(inboundReservationWebhookDto: InboundReservationWebhookDto, options?: AxiosRequestConfig): AxiosPromise<void>;
48303
+
48304
+ /**
48305
+ *
48306
+ * @summary Unlink a reservation integration
48307
+ * @param {number} businessId
48308
+ * @param {*} [options] Override http request option.
48309
+ * @throws {RequiredError}
48310
+ * @memberof ReservationsApiInterface
48311
+ */
48312
+ unlinkReservationIntegration(businessId: number, options?: AxiosRequestConfig): AxiosPromise<void>;
48313
+
48314
+ /**
48315
+ *
48316
+ * @summary Update a reservation
48317
+ * @param {string} id
48318
+ * @param {number} businessId
48319
+ * @param {UpdateReservationDto} updateReservationDto
48320
+ * @param {*} [options] Override http request option.
48321
+ * @throws {RequiredError}
48322
+ * @memberof ReservationsApiInterface
48323
+ */
48324
+ updateReservation(id: string, businessId: number, updateReservationDto: UpdateReservationDto, options?: AxiosRequestConfig): AxiosPromise<ReservationResponseDto>;
48325
+
48326
+ /**
48327
+ *
48328
+ * @summary Update the reservation policy
48329
+ * @param {UpdateReservationPolicyDto} updateReservationPolicyDto
48330
+ * @param {*} [options] Override http request option.
48331
+ * @throws {RequiredError}
48332
+ * @memberof ReservationsApiInterface
48333
+ */
48334
+ updateReservationPolicy(updateReservationPolicyDto: UpdateReservationPolicyDto, options?: AxiosRequestConfig): AxiosPromise<void>;
48335
+
48336
+ /**
48337
+ *
48338
+ * @summary Update reservation status
48339
+ * @param {string} id
48340
+ * @param {number} businessId
48341
+ * @param {UpdateReservationStatusDto} updateReservationStatusDto
48342
+ * @param {*} [options] Override http request option.
48343
+ * @throws {RequiredError}
48344
+ * @memberof ReservationsApiInterface
48345
+ */
48346
+ updateReservationStatus(id: string, businessId: number, updateReservationStatusDto: UpdateReservationStatusDto, options?: AxiosRequestConfig): AxiosPromise<ReservationResponseDto>;
48347
+
48348
+ }
48349
+
48350
+ /**
48351
+ * ReservationsApi - object-oriented interface
48352
+ * @export
48353
+ * @class ReservationsApi
48354
+ * @extends {BaseAPI}
48355
+ */
48356
+ export class ReservationsApi extends BaseAPI implements ReservationsApiInterface {
48357
+ /**
48358
+ *
48359
+ * @summary Create a reservation (POS/walk-in)
48360
+ * @param {CreateReservationDto} createReservationDto
48361
+ * @param {*} [options] Override http request option.
48362
+ * @throws {RequiredError}
48363
+ * @memberof ReservationsApi
48364
+ */
48365
+ public createReservation(createReservationDto: CreateReservationDto, options?: AxiosRequestConfig) {
48366
+ return ReservationsApiFp(this.configuration).createReservation(createReservationDto, options).then((request) => request(this.axios, this.basePath));
48367
+ }
48368
+
48369
+ /**
48370
+ *
48371
+ * @summary Get bookable slots for a day
48372
+ * @param {number} businessId
48373
+ * @param {string} date
48374
+ * @param {number} partySize
48375
+ * @param {*} [options] Override http request option.
48376
+ * @throws {RequiredError}
48377
+ * @memberof ReservationsApi
48378
+ */
48379
+ public getReservationAvailability(businessId: number, date: string, partySize: number, options?: AxiosRequestConfig) {
48380
+ return ReservationsApiFp(this.configuration).getReservationAvailability(businessId, date, partySize, options).then((request) => request(this.axios, this.basePath));
48381
+ }
48382
+
48383
+ /**
48384
+ *
48385
+ * @summary Get the reservation policy
48386
+ * @param {number} businessId
48387
+ * @param {*} [options] Override http request option.
48388
+ * @throws {RequiredError}
48389
+ * @memberof ReservationsApi
48390
+ */
48391
+ public getReservationPolicy(businessId: number, options?: AxiosRequestConfig) {
48392
+ return ReservationsApiFp(this.configuration).getReservationPolicy(businessId, options).then((request) => request(this.axios, this.basePath));
48393
+ }
48394
+
48395
+ /**
48396
+ *
48397
+ * @summary Link a booking-provider reservation integration
48398
+ * @param {LinkReservationIntegrationDto} linkReservationIntegrationDto
48399
+ * @param {*} [options] Override http request option.
48400
+ * @throws {RequiredError}
48401
+ * @memberof ReservationsApi
48402
+ */
48403
+ public linkReservationIntegration(linkReservationIntegrationDto: LinkReservationIntegrationDto, options?: AxiosRequestConfig) {
48404
+ return ReservationsApiFp(this.configuration).linkReservationIntegration(linkReservationIntegrationDto, options).then((request) => request(this.axios, this.basePath));
48405
+ }
48406
+
48407
+ /**
48408
+ *
48409
+ * @summary List reservations for a business
48410
+ * @param {number} businessId
48411
+ * @param {string} [date]
48412
+ * @param {'REQUESTED' | 'CONFIRMED' | 'WAITLIST' | 'SEATED' | 'NO_SHOW' | 'COMPLETED' | 'CANCELLED'} [status]
48413
+ * @param {*} [options] Override http request option.
48414
+ * @throws {RequiredError}
48415
+ * @memberof ReservationsApi
48416
+ */
48417
+ public listReservations(businessId: number, date?: string, status?: 'REQUESTED' | 'CONFIRMED' | 'WAITLIST' | 'SEATED' | 'NO_SHOW' | 'COMPLETED' | 'CANCELLED', options?: AxiosRequestConfig) {
48418
+ return ReservationsApiFp(this.configuration).listReservations(businessId, date, status, options).then((request) => request(this.axios, this.basePath));
48419
+ }
48420
+
48421
+ /**
48422
+ *
48423
+ * @summary Receive a booking event from the provider
48424
+ * @param {InboundReservationWebhookDto} inboundReservationWebhookDto
48425
+ * @param {*} [options] Override http request option.
48426
+ * @throws {RequiredError}
48427
+ * @memberof ReservationsApi
48428
+ */
48429
+ public reservationInboundWebhook(inboundReservationWebhookDto: InboundReservationWebhookDto, options?: AxiosRequestConfig) {
48430
+ return ReservationsApiFp(this.configuration).reservationInboundWebhook(inboundReservationWebhookDto, options).then((request) => request(this.axios, this.basePath));
48431
+ }
48432
+
48433
+ /**
48434
+ *
48435
+ * @summary Unlink a reservation integration
48436
+ * @param {number} businessId
48437
+ * @param {*} [options] Override http request option.
48438
+ * @throws {RequiredError}
48439
+ * @memberof ReservationsApi
48440
+ */
48441
+ public unlinkReservationIntegration(businessId: number, options?: AxiosRequestConfig) {
48442
+ return ReservationsApiFp(this.configuration).unlinkReservationIntegration(businessId, options).then((request) => request(this.axios, this.basePath));
48443
+ }
48444
+
48445
+ /**
48446
+ *
48447
+ * @summary Update a reservation
48448
+ * @param {string} id
48449
+ * @param {number} businessId
48450
+ * @param {UpdateReservationDto} updateReservationDto
48451
+ * @param {*} [options] Override http request option.
48452
+ * @throws {RequiredError}
48453
+ * @memberof ReservationsApi
48454
+ */
48455
+ public updateReservation(id: string, businessId: number, updateReservationDto: UpdateReservationDto, options?: AxiosRequestConfig) {
48456
+ return ReservationsApiFp(this.configuration).updateReservation(id, businessId, updateReservationDto, options).then((request) => request(this.axios, this.basePath));
48457
+ }
48458
+
48459
+ /**
48460
+ *
48461
+ * @summary Update the reservation policy
48462
+ * @param {UpdateReservationPolicyDto} updateReservationPolicyDto
48463
+ * @param {*} [options] Override http request option.
48464
+ * @throws {RequiredError}
48465
+ * @memberof ReservationsApi
48466
+ */
48467
+ public updateReservationPolicy(updateReservationPolicyDto: UpdateReservationPolicyDto, options?: AxiosRequestConfig) {
48468
+ return ReservationsApiFp(this.configuration).updateReservationPolicy(updateReservationPolicyDto, options).then((request) => request(this.axios, this.basePath));
48469
+ }
48470
+
48471
+ /**
48472
+ *
48473
+ * @summary Update reservation status
48474
+ * @param {string} id
48475
+ * @param {number} businessId
48476
+ * @param {UpdateReservationStatusDto} updateReservationStatusDto
48477
+ * @param {*} [options] Override http request option.
48478
+ * @throws {RequiredError}
48479
+ * @memberof ReservationsApi
48480
+ */
48481
+ public updateReservationStatus(id: string, businessId: number, updateReservationStatusDto: UpdateReservationStatusDto, options?: AxiosRequestConfig) {
48482
+ return ReservationsApiFp(this.configuration).updateReservationStatus(id, businessId, updateReservationStatusDto, options).then((request) => request(this.axios, this.basePath));
48483
+ }
48484
+ }
48485
+
48486
+
47058
48487
  /**
47059
48488
  * ShiftTrackingApi - axios parameter creator
47060
48489
  * @export