@gooday_corp/gooday-api-client 1.2.67 → 1.2.69

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.
Files changed (2) hide show
  1. package/api.ts +717 -81
  2. package/package.json +1 -1
package/api.ts CHANGED
@@ -494,6 +494,18 @@ export interface BlockoutEntity {
494
494
  * @memberof BlockoutEntity
495
495
  */
496
496
  'business': string;
497
+ /**
498
+ * Form
499
+ * @type {string}
500
+ * @memberof BlockoutEntity
501
+ */
502
+ 'from': string;
503
+ /**
504
+ * to
505
+ * @type {string}
506
+ * @memberof BlockoutEntity
507
+ */
508
+ 'to': string;
497
509
  }
498
510
 
499
511
  export const BlockoutEntityRepeatEnum = {
@@ -547,6 +559,18 @@ export interface BlockoutPayloadDTO {
547
559
  * @memberof BlockoutPayloadDTO
548
560
  */
549
561
  'venue': Array<string>;
562
+ /**
563
+ * Form
564
+ * @type {string}
565
+ * @memberof BlockoutPayloadDTO
566
+ */
567
+ 'from': string;
568
+ /**
569
+ * to
570
+ * @type {string}
571
+ * @memberof BlockoutPayloadDTO
572
+ */
573
+ 'to': string;
550
574
  }
551
575
 
552
576
  export const BlockoutPayloadDTORepeatEnum = {
@@ -3077,7 +3101,7 @@ export interface Discount {
3077
3101
  * @type {string}
3078
3102
  * @memberof Discount
3079
3103
  */
3080
- '_id': string;
3104
+ '_id'?: string;
3081
3105
  /**
3082
3106
  *
3083
3107
  * @type {string}
@@ -6901,6 +6925,19 @@ export interface Weather {
6901
6925
  */
6902
6926
  'temperature': number;
6903
6927
  }
6928
+ /**
6929
+ *
6930
+ * @export
6931
+ * @interface WhatsDiscountCodeResponseDTO
6932
+ */
6933
+ export interface WhatsDiscountCodeResponseDTO {
6934
+ /**
6935
+ * statusCode
6936
+ * @type {number}
6937
+ * @memberof WhatsDiscountCodeResponseDTO
6938
+ */
6939
+ 'statusCode': number;
6940
+ }
6904
6941
  /**
6905
6942
  *
6906
6943
  * @export
@@ -6951,18 +6988,6 @@ export interface WhatsOnEntity {
6951
6988
  * @memberof WhatsOnEntity
6952
6989
  */
6953
6990
  'title': string;
6954
- /**
6955
- * Start date for the events
6956
- * @type {string}
6957
- * @memberof WhatsOnEntity
6958
- */
6959
- 'startDate': string;
6960
- /**
6961
- * End date for the events
6962
- * @type {string}
6963
- * @memberof WhatsOnEntity
6964
- */
6965
- 'endDate': string;
6966
6991
  /**
6967
6992
  *
6968
6993
  * @type {Array<string>}
@@ -7031,10 +7056,10 @@ export interface WhatsOnEntity {
7031
7056
  'cancellationHours': string;
7032
7057
  /**
7033
7058
  *
7034
- * @type {LocationDTO}
7059
+ * @type {WhatsOnLocationDTO}
7035
7060
  * @memberof WhatsOnEntity
7036
7061
  */
7037
- 'location': LocationDTO;
7062
+ 'location'?: WhatsOnLocationDTO;
7038
7063
  /**
7039
7064
  *
7040
7065
  * @type {number}
@@ -7054,6 +7079,114 @@ export interface WhatsOnEntity {
7054
7079
  */
7055
7080
  'discount': Array<string>;
7056
7081
  }
7082
+ /**
7083
+ *
7084
+ * @export
7085
+ * @interface WhatsOnFavoriteCount
7086
+ */
7087
+ export interface WhatsOnFavoriteCount {
7088
+ /**
7089
+ *
7090
+ * @type {number}
7091
+ * @memberof WhatsOnFavoriteCount
7092
+ */
7093
+ 'whatsOnFavorite': number;
7094
+ /**
7095
+ *
7096
+ * @type {number}
7097
+ * @memberof WhatsOnFavoriteCount
7098
+ */
7099
+ 'whatsOnFavoriteByFriend': number;
7100
+ }
7101
+ /**
7102
+ *
7103
+ * @export
7104
+ * @interface WhatsOnFavoriteCountResponseDTO
7105
+ */
7106
+ export interface WhatsOnFavoriteCountResponseDTO {
7107
+ /**
7108
+ * statusCode
7109
+ * @type {number}
7110
+ * @memberof WhatsOnFavoriteCountResponseDTO
7111
+ */
7112
+ 'statusCode': number;
7113
+ /**
7114
+ *
7115
+ * @type {WhatsOnFavoriteCount}
7116
+ * @memberof WhatsOnFavoriteCountResponseDTO
7117
+ */
7118
+ 'data': WhatsOnFavoriteCount;
7119
+ }
7120
+ /**
7121
+ *
7122
+ * @export
7123
+ * @interface WhatsOnFavoriteDTO
7124
+ */
7125
+ export interface WhatsOnFavoriteDTO {
7126
+ /**
7127
+ * WhatsOn Venue Id
7128
+ * @type {string}
7129
+ * @memberof WhatsOnFavoriteDTO
7130
+ */
7131
+ 'whatsOn': string;
7132
+ }
7133
+ /**
7134
+ *
7135
+ * @export
7136
+ * @interface WhatsOnFavoriteListResponseDTO
7137
+ */
7138
+ export interface WhatsOnFavoriteListResponseDTO {
7139
+ /**
7140
+ * statusCode
7141
+ * @type {number}
7142
+ * @memberof WhatsOnFavoriteListResponseDTO
7143
+ */
7144
+ 'statusCode': number;
7145
+ /**
7146
+ *
7147
+ * @type {Array<WhatsOnEntity>}
7148
+ * @memberof WhatsOnFavoriteListResponseDTO
7149
+ */
7150
+ 'data': Array<WhatsOnEntity>;
7151
+ }
7152
+ /**
7153
+ *
7154
+ * @export
7155
+ * @interface WhatsOnFavoriteResponse
7156
+ */
7157
+ export interface WhatsOnFavoriteResponse {
7158
+ /**
7159
+ * statusCode
7160
+ * @type {number}
7161
+ * @memberof WhatsOnFavoriteResponse
7162
+ */
7163
+ 'statusCode': number;
7164
+ /**
7165
+ * WhatsOn Favorite
7166
+ * @type {WhatsOnEntity}
7167
+ * @memberof WhatsOnFavoriteResponse
7168
+ */
7169
+ 'data': WhatsOnEntity;
7170
+ }
7171
+ /**
7172
+ *
7173
+ * @export
7174
+ * @interface WhatsOnFavoriteResponseDTO
7175
+ */
7176
+ export interface WhatsOnFavoriteResponseDTO {
7177
+ /**
7178
+ * statusCode
7179
+ * @type {number}
7180
+ * @memberof WhatsOnFavoriteResponseDTO
7181
+ */
7182
+ 'statusCode': number;
7183
+ /**
7184
+ * WhatsOn Favorite
7185
+ * @type {WhatsOnEntity}
7186
+ * @memberof WhatsOnFavoriteResponseDTO
7187
+ */
7188
+ 'data': WhatsOnEntity;
7189
+ }
7057
7190
  /**
7058
7191
  *
7059
7192
  * @export
@@ -7085,6 +7218,63 @@ export interface WhatsOnFindDTO {
7085
7218
  */
7086
7219
  'venue'?: string;
7087
7220
  }
7221
+ /**
7222
+ *
7223
+ * @export
7224
+ * @interface WhatsOnLocationDTO
7225
+ */
7226
+ export interface WhatsOnLocationDTO {
7227
+ /**
7228
+ *
7229
+ * @type {string}
7230
+ * @memberof WhatsOnLocationDTO
7231
+ */
7232
+ 'type': WhatsOnLocationDTOTypeEnum;
7233
+ /**
7234
+ *
7235
+ * @type {Array<number>}
7236
+ * @memberof WhatsOnLocationDTO
7237
+ */
7238
+ 'coordinates': Array<number>;
7239
+ /**
7240
+ * Optional distance from a reference point.
7241
+ * @type {string}
7242
+ * @memberof WhatsOnLocationDTO
7243
+ */
7244
+ 'distance'?: string;
7245
+ /**
7246
+ * Meta information about the location.
7247
+ * @type {WhatsOnLocationMetaDTO}
7248
+ * @memberof WhatsOnLocationDTO
7249
+ */
7250
+ 'meta': WhatsOnLocationMetaDTO;
7251
+ }
7252
+
7253
+ export const WhatsOnLocationDTOTypeEnum = {
7254
+ Point: 'Point'
7255
+ } as const;
7256
+
7257
+ export type WhatsOnLocationDTOTypeEnum = typeof WhatsOnLocationDTOTypeEnum[keyof typeof WhatsOnLocationDTOTypeEnum];
7258
+
7259
+ /**
7260
+ *
7261
+ * @export
7262
+ * @interface WhatsOnLocationMetaDTO
7263
+ */
7264
+ export interface WhatsOnLocationMetaDTO {
7265
+ /**
7266
+ *
7267
+ * @type {string}
7268
+ * @memberof WhatsOnLocationMetaDTO
7269
+ */
7270
+ 'formattedAddress'?: string;
7271
+ /**
7272
+ *
7273
+ * @type {string}
7274
+ * @memberof WhatsOnLocationMetaDTO
7275
+ */
7276
+ 'shortFormattedAddress': string;
7277
+ }
7088
7278
  /**
7089
7279
  *
7090
7280
  * @export
@@ -7165,22 +7355,22 @@ export interface WhatsOnPayloadDTO {
7165
7355
  'cancellationHours': string;
7166
7356
  /**
7167
7357
  *
7168
- * @type {LocationDTO}
7358
+ * @type {WhatsOnLocationDTO}
7169
7359
  * @memberof WhatsOnPayloadDTO
7170
7360
  */
7171
- 'location': LocationDTO;
7361
+ 'location'?: WhatsOnLocationDTO;
7172
7362
  /**
7173
7363
  *
7174
7364
  * @type {Repeat}
7175
7365
  * @memberof WhatsOnPayloadDTO
7176
7366
  */
7177
- 'repeat': Repeat;
7367
+ 'repeat'?: Repeat;
7178
7368
  /**
7179
7369
  *
7180
7370
  * @type {Array<Discount>}
7181
7371
  * @memberof WhatsOnPayloadDTO
7182
7372
  */
7183
- 'discounts': Array<Discount>;
7373
+ 'discounts'?: Array<Discount>;
7184
7374
  }
7185
7375
  /**
7186
7376
  *
@@ -7201,6 +7391,25 @@ export interface WhatsOnResponseDTO {
7201
7391
  */
7202
7392
  'statusCode': number;
7203
7393
  }
7394
+ /**
7395
+ *
7396
+ * @export
7397
+ * @interface WhatsOnUnFavoriteResponse
7398
+ */
7399
+ export interface WhatsOnUnFavoriteResponse {
7400
+ /**
7401
+ * statusCode
7402
+ * @type {number}
7403
+ * @memberof WhatsOnUnFavoriteResponse
7404
+ */
7405
+ 'statusCode': number;
7406
+ /**
7407
+ * WhatsOn Favorite Rule
7408
+ * @type {string}
7409
+ * @memberof WhatsOnUnFavoriteResponse
7410
+ */
7411
+ 'message': string;
7412
+ }
7204
7413
 
7205
7414
  /**
7206
7415
  * AIApi - axios parameter creator
@@ -18568,14 +18777,15 @@ export const WhatsOnApiAxiosParamCreator = function (configuration?: Configurati
18568
18777
  },
18569
18778
  /**
18570
18779
  *
18571
- * @param {WhatsOnFindDTO} whatsOnFindDTO
18780
+ * @param {string} id
18572
18781
  * @param {*} [options] Override http request option.
18573
18782
  * @throws {RequiredError}
18574
18783
  */
18575
- whatsOnControllerFindWhatsOn: async (whatsOnFindDTO: WhatsOnFindDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18576
- // verify required parameter 'whatsOnFindDTO' is not null or undefined
18577
- assertParamExists('whatsOnControllerFindWhatsOn', 'whatsOnFindDTO', whatsOnFindDTO)
18578
- const localVarPath = `/v1/whats-on/list`;
18784
+ whatsOnControllerDiscountCodeApply: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18785
+ // verify required parameter 'id' is not null or undefined
18786
+ assertParamExists('whatsOnControllerDiscountCodeApply', 'id', id)
18787
+ const localVarPath = `/v1/whats-on/discount`
18788
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
18579
18789
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
18580
18790
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18581
18791
  let baseOptions;
@@ -18593,12 +18803,9 @@ export const WhatsOnApiAxiosParamCreator = function (configuration?: Configurati
18593
18803
 
18594
18804
 
18595
18805
 
18596
- localVarHeaderParameter['Content-Type'] = 'application/json';
18597
-
18598
18806
  setSearchParams(localVarUrlObj, localVarQueryParameter);
18599
18807
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18600
18808
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18601
- localVarRequestOptions.data = serializeDataIfNeeded(whatsOnFindDTO, localVarRequestOptions, configuration)
18602
18809
 
18603
18810
  return {
18604
18811
  url: toPathString(localVarUrlObj),
@@ -18608,16 +18815,13 @@ export const WhatsOnApiAxiosParamCreator = function (configuration?: Configurati
18608
18815
  /**
18609
18816
  *
18610
18817
  * @param {string} id
18611
- * @param {WhatsOnPayloadDTO} whatsOnPayloadDTO
18612
18818
  * @param {*} [options] Override http request option.
18613
18819
  * @throws {RequiredError}
18614
18820
  */
18615
- whatsOnControllerUpdateById: async (id: string, whatsOnPayloadDTO: WhatsOnPayloadDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18821
+ whatsOnControllerFindFavoriteWhatOnCount: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18616
18822
  // verify required parameter 'id' is not null or undefined
18617
- assertParamExists('whatsOnControllerUpdateById', 'id', id)
18618
- // verify required parameter 'whatsOnPayloadDTO' is not null or undefined
18619
- assertParamExists('whatsOnControllerUpdateById', 'whatsOnPayloadDTO', whatsOnPayloadDTO)
18620
- const localVarPath = `/v1/whats-on/{id}`
18823
+ assertParamExists('whatsOnControllerFindFavoriteWhatOnCount', 'id', id)
18824
+ const localVarPath = `/v1/whats-on/favorite/count/{id}`
18621
18825
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
18622
18826
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
18623
18827
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -18626,7 +18830,7 @@ export const WhatsOnApiAxiosParamCreator = function (configuration?: Configurati
18626
18830
  baseOptions = configuration.baseOptions;
18627
18831
  }
18628
18832
 
18629
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
18833
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
18630
18834
  const localVarHeaderParameter = {} as any;
18631
18835
  const localVarQueryParameter = {} as any;
18632
18836
 
@@ -18636,12 +18840,9 @@ export const WhatsOnApiAxiosParamCreator = function (configuration?: Configurati
18636
18840
 
18637
18841
 
18638
18842
 
18639
- localVarHeaderParameter['Content-Type'] = 'application/json';
18640
-
18641
18843
  setSearchParams(localVarUrlObj, localVarQueryParameter);
18642
18844
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18643
18845
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18644
- localVarRequestOptions.data = serializeDataIfNeeded(whatsOnPayloadDTO, localVarRequestOptions, configuration)
18645
18846
 
18646
18847
  return {
18647
18848
  url: toPathString(localVarUrlObj),
@@ -18650,15 +18851,13 @@ export const WhatsOnApiAxiosParamCreator = function (configuration?: Configurati
18650
18851
  },
18651
18852
  /**
18652
18853
  *
18653
- * @param {string} id
18854
+ * @param {number} [page] Page number for pagination
18855
+ * @param {number} [limit] Number of items per page for pagination
18654
18856
  * @param {*} [options] Override http request option.
18655
18857
  * @throws {RequiredError}
18656
18858
  */
18657
- whatsOnControllerWhatsOnById: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18658
- // verify required parameter 'id' is not null or undefined
18659
- assertParamExists('whatsOnControllerWhatsOnById', 'id', id)
18660
- const localVarPath = `/v1/whats-on/{id}`
18661
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
18859
+ whatsOnControllerFindFavoriteWhatsOnList: async (page?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18860
+ const localVarPath = `/v1/whats-on/friends/favorite`;
18662
18861
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
18663
18862
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18664
18863
  let baseOptions;
@@ -18674,6 +18873,14 @@ export const WhatsOnApiAxiosParamCreator = function (configuration?: Configurati
18674
18873
  // http bearer authentication required
18675
18874
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
18676
18875
 
18876
+ if (page !== undefined) {
18877
+ localVarQueryParameter['page'] = page;
18878
+ }
18879
+
18880
+ if (limit !== undefined) {
18881
+ localVarQueryParameter['limit'] = limit;
18882
+ }
18883
+
18677
18884
 
18678
18885
 
18679
18886
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -18685,50 +18892,357 @@ export const WhatsOnApiAxiosParamCreator = function (configuration?: Configurati
18685
18892
  options: localVarRequestOptions,
18686
18893
  };
18687
18894
  },
18688
- }
18689
- };
18690
-
18691
- /**
18692
- * WhatsOnApi - functional programming interface
18693
- * @export
18694
- */
18695
- export const WhatsOnApiFp = function(configuration?: Configuration) {
18696
- const localVarAxiosParamCreator = WhatsOnApiAxiosParamCreator(configuration)
18697
- return {
18698
- /**
18699
- *
18700
- * @param {WhatsOnPayloadDTO} whatsOnPayloadDTO
18701
- * @param {*} [options] Override http request option.
18702
- * @throws {RequiredError}
18703
- */
18704
- async whatsOnControllerCreateWhatsOn(whatsOnPayloadDTO: WhatsOnPayloadDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WhatsOnDTO>> {
18705
- const localVarAxiosArgs = await localVarAxiosParamCreator.whatsOnControllerCreateWhatsOn(whatsOnPayloadDTO, options);
18706
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
18707
- const localVarOperationServerBasePath = operationServerMap['WhatsOnApi.whatsOnControllerCreateWhatsOn']?.[localVarOperationServerIndex]?.url;
18708
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18709
- },
18710
- /**
18711
- *
18712
- * @param {string} id
18713
- * @param {*} [options] Override http request option.
18714
- * @throws {RequiredError}
18715
- */
18716
- async whatsOnControllerDeleteWhatsOn(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WhatsOnDeleteResponseDTO>> {
18717
- const localVarAxiosArgs = await localVarAxiosParamCreator.whatsOnControllerDeleteWhatsOn(id, options);
18718
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
18719
- const localVarOperationServerBasePath = operationServerMap['WhatsOnApi.whatsOnControllerDeleteWhatsOn']?.[localVarOperationServerIndex]?.url;
18720
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18721
- },
18722
18895
  /**
18723
18896
  *
18724
18897
  * @param {WhatsOnFindDTO} whatsOnFindDTO
18725
18898
  * @param {*} [options] Override http request option.
18726
18899
  * @throws {RequiredError}
18727
18900
  */
18728
- async whatsOnControllerFindWhatsOn(whatsOnFindDTO: WhatsOnFindDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WhatsOnResponseDTO>> {
18729
- const localVarAxiosArgs = await localVarAxiosParamCreator.whatsOnControllerFindWhatsOn(whatsOnFindDTO, options);
18730
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
18731
- const localVarOperationServerBasePath = operationServerMap['WhatsOnApi.whatsOnControllerFindWhatsOn']?.[localVarOperationServerIndex]?.url;
18901
+ whatsOnControllerFindWhatsOn: async (whatsOnFindDTO: WhatsOnFindDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18902
+ // verify required parameter 'whatsOnFindDTO' is not null or undefined
18903
+ assertParamExists('whatsOnControllerFindWhatsOn', 'whatsOnFindDTO', whatsOnFindDTO)
18904
+ const localVarPath = `/v1/whats-on/list`;
18905
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18906
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18907
+ let baseOptions;
18908
+ if (configuration) {
18909
+ baseOptions = configuration.baseOptions;
18910
+ }
18911
+
18912
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
18913
+ const localVarHeaderParameter = {} as any;
18914
+ const localVarQueryParameter = {} as any;
18915
+
18916
+ // authentication bearer required
18917
+ // http bearer authentication required
18918
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
18919
+
18920
+
18921
+
18922
+ localVarHeaderParameter['Content-Type'] = 'application/json';
18923
+
18924
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
18925
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18926
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18927
+ localVarRequestOptions.data = serializeDataIfNeeded(whatsOnFindDTO, localVarRequestOptions, configuration)
18928
+
18929
+ return {
18930
+ url: toPathString(localVarUrlObj),
18931
+ options: localVarRequestOptions,
18932
+ };
18933
+ },
18934
+ /**
18935
+ *
18936
+ * @param {string} id
18937
+ * @param {*} [options] Override http request option.
18938
+ * @throws {RequiredError}
18939
+ */
18940
+ whatsOnControllerFindWhatsOnById: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18941
+ // verify required parameter 'id' is not null or undefined
18942
+ assertParamExists('whatsOnControllerFindWhatsOnById', 'id', id)
18943
+ const localVarPath = `/v1/whats-on/favorite/{id}`
18944
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
18945
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18946
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18947
+ let baseOptions;
18948
+ if (configuration) {
18949
+ baseOptions = configuration.baseOptions;
18950
+ }
18951
+
18952
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
18953
+ const localVarHeaderParameter = {} as any;
18954
+ const localVarQueryParameter = {} as any;
18955
+
18956
+ // authentication bearer required
18957
+ // http bearer authentication required
18958
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
18959
+
18960
+
18961
+
18962
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
18963
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18964
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18965
+
18966
+ return {
18967
+ url: toPathString(localVarUrlObj),
18968
+ options: localVarRequestOptions,
18969
+ };
18970
+ },
18971
+ /**
18972
+ *
18973
+ * @param {WhatsOnFavoriteDTO} whatsOnFavoriteDTO
18974
+ * @param {*} [options] Override http request option.
18975
+ * @throws {RequiredError}
18976
+ */
18977
+ whatsOnControllerMarkFavoriteWhatsOn: async (whatsOnFavoriteDTO: WhatsOnFavoriteDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18978
+ // verify required parameter 'whatsOnFavoriteDTO' is not null or undefined
18979
+ assertParamExists('whatsOnControllerMarkFavoriteWhatsOn', 'whatsOnFavoriteDTO', whatsOnFavoriteDTO)
18980
+ const localVarPath = `/v1/whats-on/favorite`;
18981
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18982
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18983
+ let baseOptions;
18984
+ if (configuration) {
18985
+ baseOptions = configuration.baseOptions;
18986
+ }
18987
+
18988
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
18989
+ const localVarHeaderParameter = {} as any;
18990
+ const localVarQueryParameter = {} as any;
18991
+
18992
+ // authentication bearer required
18993
+ // http bearer authentication required
18994
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
18995
+
18996
+
18997
+
18998
+ localVarHeaderParameter['Content-Type'] = 'application/json';
18999
+
19000
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
19001
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19002
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
19003
+ localVarRequestOptions.data = serializeDataIfNeeded(whatsOnFavoriteDTO, localVarRequestOptions, configuration)
19004
+
19005
+ return {
19006
+ url: toPathString(localVarUrlObj),
19007
+ options: localVarRequestOptions,
19008
+ };
19009
+ },
19010
+ /**
19011
+ *
19012
+ * @param {WhatsOnFavoriteDTO} whatsOnFavoriteDTO
19013
+ * @param {*} [options] Override http request option.
19014
+ * @throws {RequiredError}
19015
+ */
19016
+ whatsOnControllerUnfavoriteWhatsOn: async (whatsOnFavoriteDTO: WhatsOnFavoriteDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
19017
+ // verify required parameter 'whatsOnFavoriteDTO' is not null or undefined
19018
+ assertParamExists('whatsOnControllerUnfavoriteWhatsOn', 'whatsOnFavoriteDTO', whatsOnFavoriteDTO)
19019
+ const localVarPath = `/v1/whats-on/unfavorite`;
19020
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
19021
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
19022
+ let baseOptions;
19023
+ if (configuration) {
19024
+ baseOptions = configuration.baseOptions;
19025
+ }
19026
+
19027
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
19028
+ const localVarHeaderParameter = {} as any;
19029
+ const localVarQueryParameter = {} as any;
19030
+
19031
+ // authentication bearer required
19032
+ // http bearer authentication required
19033
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
19034
+
19035
+
19036
+
19037
+ localVarHeaderParameter['Content-Type'] = 'application/json';
19038
+
19039
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
19040
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19041
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
19042
+ localVarRequestOptions.data = serializeDataIfNeeded(whatsOnFavoriteDTO, localVarRequestOptions, configuration)
19043
+
19044
+ return {
19045
+ url: toPathString(localVarUrlObj),
19046
+ options: localVarRequestOptions,
19047
+ };
19048
+ },
19049
+ /**
19050
+ *
19051
+ * @param {string} id
19052
+ * @param {WhatsOnPayloadDTO} whatsOnPayloadDTO
19053
+ * @param {*} [options] Override http request option.
19054
+ * @throws {RequiredError}
19055
+ */
19056
+ whatsOnControllerUpdateById: async (id: string, whatsOnPayloadDTO: WhatsOnPayloadDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
19057
+ // verify required parameter 'id' is not null or undefined
19058
+ assertParamExists('whatsOnControllerUpdateById', 'id', id)
19059
+ // verify required parameter 'whatsOnPayloadDTO' is not null or undefined
19060
+ assertParamExists('whatsOnControllerUpdateById', 'whatsOnPayloadDTO', whatsOnPayloadDTO)
19061
+ const localVarPath = `/v1/whats-on/{id}`
19062
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
19063
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
19064
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
19065
+ let baseOptions;
19066
+ if (configuration) {
19067
+ baseOptions = configuration.baseOptions;
19068
+ }
19069
+
19070
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
19071
+ const localVarHeaderParameter = {} as any;
19072
+ const localVarQueryParameter = {} as any;
19073
+
19074
+ // authentication bearer required
19075
+ // http bearer authentication required
19076
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
19077
+
19078
+
19079
+
19080
+ localVarHeaderParameter['Content-Type'] = 'application/json';
19081
+
19082
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
19083
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19084
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
19085
+ localVarRequestOptions.data = serializeDataIfNeeded(whatsOnPayloadDTO, localVarRequestOptions, configuration)
19086
+
19087
+ return {
19088
+ url: toPathString(localVarUrlObj),
19089
+ options: localVarRequestOptions,
19090
+ };
19091
+ },
19092
+ /**
19093
+ *
19094
+ * @param {string} id
19095
+ * @param {*} [options] Override http request option.
19096
+ * @throws {RequiredError}
19097
+ */
19098
+ whatsOnControllerWhatsOnById: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
19099
+ // verify required parameter 'id' is not null or undefined
19100
+ assertParamExists('whatsOnControllerWhatsOnById', 'id', id)
19101
+ const localVarPath = `/v1/whats-on/{id}`
19102
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
19103
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
19104
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
19105
+ let baseOptions;
19106
+ if (configuration) {
19107
+ baseOptions = configuration.baseOptions;
19108
+ }
19109
+
19110
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
19111
+ const localVarHeaderParameter = {} as any;
19112
+ const localVarQueryParameter = {} as any;
19113
+
19114
+ // authentication bearer required
19115
+ // http bearer authentication required
19116
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
19117
+
19118
+
19119
+
19120
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
19121
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19122
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
19123
+
19124
+ return {
19125
+ url: toPathString(localVarUrlObj),
19126
+ options: localVarRequestOptions,
19127
+ };
19128
+ },
19129
+ }
19130
+ };
19131
+
19132
+ /**
19133
+ * WhatsOnApi - functional programming interface
19134
+ * @export
19135
+ */
19136
+ export const WhatsOnApiFp = function(configuration?: Configuration) {
19137
+ const localVarAxiosParamCreator = WhatsOnApiAxiosParamCreator(configuration)
19138
+ return {
19139
+ /**
19140
+ *
19141
+ * @param {WhatsOnPayloadDTO} whatsOnPayloadDTO
19142
+ * @param {*} [options] Override http request option.
19143
+ * @throws {RequiredError}
19144
+ */
19145
+ async whatsOnControllerCreateWhatsOn(whatsOnPayloadDTO: WhatsOnPayloadDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WhatsOnDTO>> {
19146
+ const localVarAxiosArgs = await localVarAxiosParamCreator.whatsOnControllerCreateWhatsOn(whatsOnPayloadDTO, options);
19147
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19148
+ const localVarOperationServerBasePath = operationServerMap['WhatsOnApi.whatsOnControllerCreateWhatsOn']?.[localVarOperationServerIndex]?.url;
19149
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19150
+ },
19151
+ /**
19152
+ *
19153
+ * @param {string} id
19154
+ * @param {*} [options] Override http request option.
19155
+ * @throws {RequiredError}
19156
+ */
19157
+ async whatsOnControllerDeleteWhatsOn(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WhatsOnDeleteResponseDTO>> {
19158
+ const localVarAxiosArgs = await localVarAxiosParamCreator.whatsOnControllerDeleteWhatsOn(id, options);
19159
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19160
+ const localVarOperationServerBasePath = operationServerMap['WhatsOnApi.whatsOnControllerDeleteWhatsOn']?.[localVarOperationServerIndex]?.url;
19161
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19162
+ },
19163
+ /**
19164
+ *
19165
+ * @param {string} id
19166
+ * @param {*} [options] Override http request option.
19167
+ * @throws {RequiredError}
19168
+ */
19169
+ async whatsOnControllerDiscountCodeApply(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WhatsDiscountCodeResponseDTO>> {
19170
+ const localVarAxiosArgs = await localVarAxiosParamCreator.whatsOnControllerDiscountCodeApply(id, options);
19171
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19172
+ const localVarOperationServerBasePath = operationServerMap['WhatsOnApi.whatsOnControllerDiscountCodeApply']?.[localVarOperationServerIndex]?.url;
19173
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19174
+ },
19175
+ /**
19176
+ *
19177
+ * @param {string} id
19178
+ * @param {*} [options] Override http request option.
19179
+ * @throws {RequiredError}
19180
+ */
19181
+ async whatsOnControllerFindFavoriteWhatOnCount(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WhatsOnFavoriteCountResponseDTO>> {
19182
+ const localVarAxiosArgs = await localVarAxiosParamCreator.whatsOnControllerFindFavoriteWhatOnCount(id, options);
19183
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19184
+ const localVarOperationServerBasePath = operationServerMap['WhatsOnApi.whatsOnControllerFindFavoriteWhatOnCount']?.[localVarOperationServerIndex]?.url;
19185
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19186
+ },
19187
+ /**
19188
+ *
19189
+ * @param {number} [page] Page number for pagination
19190
+ * @param {number} [limit] Number of items per page for pagination
19191
+ * @param {*} [options] Override http request option.
19192
+ * @throws {RequiredError}
19193
+ */
19194
+ async whatsOnControllerFindFavoriteWhatsOnList(page?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WhatsOnFavoriteListResponseDTO>> {
19195
+ const localVarAxiosArgs = await localVarAxiosParamCreator.whatsOnControllerFindFavoriteWhatsOnList(page, limit, options);
19196
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19197
+ const localVarOperationServerBasePath = operationServerMap['WhatsOnApi.whatsOnControllerFindFavoriteWhatsOnList']?.[localVarOperationServerIndex]?.url;
19198
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19199
+ },
19200
+ /**
19201
+ *
19202
+ * @param {WhatsOnFindDTO} whatsOnFindDTO
19203
+ * @param {*} [options] Override http request option.
19204
+ * @throws {RequiredError}
19205
+ */
19206
+ async whatsOnControllerFindWhatsOn(whatsOnFindDTO: WhatsOnFindDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WhatsOnResponseDTO>> {
19207
+ const localVarAxiosArgs = await localVarAxiosParamCreator.whatsOnControllerFindWhatsOn(whatsOnFindDTO, options);
19208
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19209
+ const localVarOperationServerBasePath = operationServerMap['WhatsOnApi.whatsOnControllerFindWhatsOn']?.[localVarOperationServerIndex]?.url;
19210
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19211
+ },
19212
+ /**
19213
+ *
19214
+ * @param {string} id
19215
+ * @param {*} [options] Override http request option.
19216
+ * @throws {RequiredError}
19217
+ */
19218
+ async whatsOnControllerFindWhatsOnById(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WhatsOnFavoriteResponseDTO>> {
19219
+ const localVarAxiosArgs = await localVarAxiosParamCreator.whatsOnControllerFindWhatsOnById(id, options);
19220
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19221
+ const localVarOperationServerBasePath = operationServerMap['WhatsOnApi.whatsOnControllerFindWhatsOnById']?.[localVarOperationServerIndex]?.url;
19222
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19223
+ },
19224
+ /**
19225
+ *
19226
+ * @param {WhatsOnFavoriteDTO} whatsOnFavoriteDTO
19227
+ * @param {*} [options] Override http request option.
19228
+ * @throws {RequiredError}
19229
+ */
19230
+ async whatsOnControllerMarkFavoriteWhatsOn(whatsOnFavoriteDTO: WhatsOnFavoriteDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WhatsOnFavoriteResponse>> {
19231
+ const localVarAxiosArgs = await localVarAxiosParamCreator.whatsOnControllerMarkFavoriteWhatsOn(whatsOnFavoriteDTO, options);
19232
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19233
+ const localVarOperationServerBasePath = operationServerMap['WhatsOnApi.whatsOnControllerMarkFavoriteWhatsOn']?.[localVarOperationServerIndex]?.url;
19234
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19235
+ },
19236
+ /**
19237
+ *
19238
+ * @param {WhatsOnFavoriteDTO} whatsOnFavoriteDTO
19239
+ * @param {*} [options] Override http request option.
19240
+ * @throws {RequiredError}
19241
+ */
19242
+ async whatsOnControllerUnfavoriteWhatsOn(whatsOnFavoriteDTO: WhatsOnFavoriteDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WhatsOnUnFavoriteResponse>> {
19243
+ const localVarAxiosArgs = await localVarAxiosParamCreator.whatsOnControllerUnfavoriteWhatsOn(whatsOnFavoriteDTO, options);
19244
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19245
+ const localVarOperationServerBasePath = operationServerMap['WhatsOnApi.whatsOnControllerUnfavoriteWhatsOn']?.[localVarOperationServerIndex]?.url;
18732
19246
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18733
19247
  },
18734
19248
  /**
@@ -18784,6 +19298,34 @@ export const WhatsOnApiFactory = function (configuration?: Configuration, basePa
18784
19298
  whatsOnControllerDeleteWhatsOn(id: string, options?: RawAxiosRequestConfig): AxiosPromise<WhatsOnDeleteResponseDTO> {
18785
19299
  return localVarFp.whatsOnControllerDeleteWhatsOn(id, options).then((request) => request(axios, basePath));
18786
19300
  },
19301
+ /**
19302
+ *
19303
+ * @param {string} id
19304
+ * @param {*} [options] Override http request option.
19305
+ * @throws {RequiredError}
19306
+ */
19307
+ whatsOnControllerDiscountCodeApply(id: string, options?: RawAxiosRequestConfig): AxiosPromise<WhatsDiscountCodeResponseDTO> {
19308
+ return localVarFp.whatsOnControllerDiscountCodeApply(id, options).then((request) => request(axios, basePath));
19309
+ },
19310
+ /**
19311
+ *
19312
+ * @param {string} id
19313
+ * @param {*} [options] Override http request option.
19314
+ * @throws {RequiredError}
19315
+ */
19316
+ whatsOnControllerFindFavoriteWhatOnCount(id: string, options?: RawAxiosRequestConfig): AxiosPromise<WhatsOnFavoriteCountResponseDTO> {
19317
+ return localVarFp.whatsOnControllerFindFavoriteWhatOnCount(id, options).then((request) => request(axios, basePath));
19318
+ },
19319
+ /**
19320
+ *
19321
+ * @param {number} [page] Page number for pagination
19322
+ * @param {number} [limit] Number of items per page for pagination
19323
+ * @param {*} [options] Override http request option.
19324
+ * @throws {RequiredError}
19325
+ */
19326
+ whatsOnControllerFindFavoriteWhatsOnList(page?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<WhatsOnFavoriteListResponseDTO> {
19327
+ return localVarFp.whatsOnControllerFindFavoriteWhatsOnList(page, limit, options).then((request) => request(axios, basePath));
19328
+ },
18787
19329
  /**
18788
19330
  *
18789
19331
  * @param {WhatsOnFindDTO} whatsOnFindDTO
@@ -18793,6 +19335,33 @@ export const WhatsOnApiFactory = function (configuration?: Configuration, basePa
18793
19335
  whatsOnControllerFindWhatsOn(whatsOnFindDTO: WhatsOnFindDTO, options?: RawAxiosRequestConfig): AxiosPromise<WhatsOnResponseDTO> {
18794
19336
  return localVarFp.whatsOnControllerFindWhatsOn(whatsOnFindDTO, options).then((request) => request(axios, basePath));
18795
19337
  },
19338
+ /**
19339
+ *
19340
+ * @param {string} id
19341
+ * @param {*} [options] Override http request option.
19342
+ * @throws {RequiredError}
19343
+ */
19344
+ whatsOnControllerFindWhatsOnById(id: string, options?: RawAxiosRequestConfig): AxiosPromise<WhatsOnFavoriteResponseDTO> {
19345
+ return localVarFp.whatsOnControllerFindWhatsOnById(id, options).then((request) => request(axios, basePath));
19346
+ },
19347
+ /**
19348
+ *
19349
+ * @param {WhatsOnFavoriteDTO} whatsOnFavoriteDTO
19350
+ * @param {*} [options] Override http request option.
19351
+ * @throws {RequiredError}
19352
+ */
19353
+ whatsOnControllerMarkFavoriteWhatsOn(whatsOnFavoriteDTO: WhatsOnFavoriteDTO, options?: RawAxiosRequestConfig): AxiosPromise<WhatsOnFavoriteResponse> {
19354
+ return localVarFp.whatsOnControllerMarkFavoriteWhatsOn(whatsOnFavoriteDTO, options).then((request) => request(axios, basePath));
19355
+ },
19356
+ /**
19357
+ *
19358
+ * @param {WhatsOnFavoriteDTO} whatsOnFavoriteDTO
19359
+ * @param {*} [options] Override http request option.
19360
+ * @throws {RequiredError}
19361
+ */
19362
+ whatsOnControllerUnfavoriteWhatsOn(whatsOnFavoriteDTO: WhatsOnFavoriteDTO, options?: RawAxiosRequestConfig): AxiosPromise<WhatsOnUnFavoriteResponse> {
19363
+ return localVarFp.whatsOnControllerUnfavoriteWhatsOn(whatsOnFavoriteDTO, options).then((request) => request(axios, basePath));
19364
+ },
18796
19365
  /**
18797
19366
  *
18798
19367
  * @param {string} id
@@ -18844,6 +19413,40 @@ export class WhatsOnApi extends BaseAPI {
18844
19413
  return WhatsOnApiFp(this.configuration).whatsOnControllerDeleteWhatsOn(id, options).then((request) => request(this.axios, this.basePath));
18845
19414
  }
18846
19415
 
19416
+ /**
19417
+ *
19418
+ * @param {string} id
19419
+ * @param {*} [options] Override http request option.
19420
+ * @throws {RequiredError}
19421
+ * @memberof WhatsOnApi
19422
+ */
19423
+ public whatsOnControllerDiscountCodeApply(id: string, options?: RawAxiosRequestConfig) {
19424
+ return WhatsOnApiFp(this.configuration).whatsOnControllerDiscountCodeApply(id, options).then((request) => request(this.axios, this.basePath));
19425
+ }
19426
+
19427
+ /**
19428
+ *
19429
+ * @param {string} id
19430
+ * @param {*} [options] Override http request option.
19431
+ * @throws {RequiredError}
19432
+ * @memberof WhatsOnApi
19433
+ */
19434
+ public whatsOnControllerFindFavoriteWhatOnCount(id: string, options?: RawAxiosRequestConfig) {
19435
+ return WhatsOnApiFp(this.configuration).whatsOnControllerFindFavoriteWhatOnCount(id, options).then((request) => request(this.axios, this.basePath));
19436
+ }
19437
+
19438
+ /**
19439
+ *
19440
+ * @param {number} [page] Page number for pagination
19441
+ * @param {number} [limit] Number of items per page for pagination
19442
+ * @param {*} [options] Override http request option.
19443
+ * @throws {RequiredError}
19444
+ * @memberof WhatsOnApi
19445
+ */
19446
+ public whatsOnControllerFindFavoriteWhatsOnList(page?: number, limit?: number, options?: RawAxiosRequestConfig) {
19447
+ return WhatsOnApiFp(this.configuration).whatsOnControllerFindFavoriteWhatsOnList(page, limit, options).then((request) => request(this.axios, this.basePath));
19448
+ }
19449
+
18847
19450
  /**
18848
19451
  *
18849
19452
  * @param {WhatsOnFindDTO} whatsOnFindDTO
@@ -18855,6 +19458,39 @@ export class WhatsOnApi extends BaseAPI {
18855
19458
  return WhatsOnApiFp(this.configuration).whatsOnControllerFindWhatsOn(whatsOnFindDTO, options).then((request) => request(this.axios, this.basePath));
18856
19459
  }
18857
19460
 
19461
+ /**
19462
+ *
19463
+ * @param {string} id
19464
+ * @param {*} [options] Override http request option.
19465
+ * @throws {RequiredError}
19466
+ * @memberof WhatsOnApi
19467
+ */
19468
+ public whatsOnControllerFindWhatsOnById(id: string, options?: RawAxiosRequestConfig) {
19469
+ return WhatsOnApiFp(this.configuration).whatsOnControllerFindWhatsOnById(id, options).then((request) => request(this.axios, this.basePath));
19470
+ }
19471
+
19472
+ /**
19473
+ *
19474
+ * @param {WhatsOnFavoriteDTO} whatsOnFavoriteDTO
19475
+ * @param {*} [options] Override http request option.
19476
+ * @throws {RequiredError}
19477
+ * @memberof WhatsOnApi
19478
+ */
19479
+ public whatsOnControllerMarkFavoriteWhatsOn(whatsOnFavoriteDTO: WhatsOnFavoriteDTO, options?: RawAxiosRequestConfig) {
19480
+ return WhatsOnApiFp(this.configuration).whatsOnControllerMarkFavoriteWhatsOn(whatsOnFavoriteDTO, options).then((request) => request(this.axios, this.basePath));
19481
+ }
19482
+
19483
+ /**
19484
+ *
19485
+ * @param {WhatsOnFavoriteDTO} whatsOnFavoriteDTO
19486
+ * @param {*} [options] Override http request option.
19487
+ * @throws {RequiredError}
19488
+ * @memberof WhatsOnApi
19489
+ */
19490
+ public whatsOnControllerUnfavoriteWhatsOn(whatsOnFavoriteDTO: WhatsOnFavoriteDTO, options?: RawAxiosRequestConfig) {
19491
+ return WhatsOnApiFp(this.configuration).whatsOnControllerUnfavoriteWhatsOn(whatsOnFavoriteDTO, options).then((request) => request(this.axios, this.basePath));
19492
+ }
19493
+
18858
19494
  /**
18859
19495
  *
18860
19496
  * @param {string} id
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooday_corp/gooday-api-client",
3
- "version": "1.2.67",
3
+ "version": "1.2.69",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},