@gooday_corp/gooday-api-client 1.2.68 → 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 +101 -19
  2. package/package.json +1 -1
package/api.ts CHANGED
@@ -6925,6 +6925,19 @@ export interface Weather {
6925
6925
  */
6926
6926
  'temperature': number;
6927
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
+ }
6928
6941
  /**
6929
6942
  *
6930
6943
  * @export
@@ -18768,10 +18781,10 @@ export const WhatsOnApiAxiosParamCreator = function (configuration?: Configurati
18768
18781
  * @param {*} [options] Override http request option.
18769
18782
  * @throws {RequiredError}
18770
18783
  */
18771
- whatsOnControllerFindFavoriteBusinessVenue: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18784
+ whatsOnControllerDiscountCodeApply: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18772
18785
  // verify required parameter 'id' is not null or undefined
18773
- assertParamExists('whatsOnControllerFindFavoriteBusinessVenue', 'id', id)
18774
- const localVarPath = `/v1/whats-on/favorite/{id}`
18786
+ assertParamExists('whatsOnControllerDiscountCodeApply', 'id', id)
18787
+ const localVarPath = `/v1/whats-on/discount`
18775
18788
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
18776
18789
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
18777
18790
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -18780,7 +18793,7 @@ export const WhatsOnApiAxiosParamCreator = function (configuration?: Configurati
18780
18793
  baseOptions = configuration.baseOptions;
18781
18794
  }
18782
18795
 
18783
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
18796
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
18784
18797
  const localVarHeaderParameter = {} as any;
18785
18798
  const localVarQueryParameter = {} as any;
18786
18799
 
@@ -18843,7 +18856,7 @@ export const WhatsOnApiAxiosParamCreator = function (configuration?: Configurati
18843
18856
  * @param {*} [options] Override http request option.
18844
18857
  * @throws {RequiredError}
18845
18858
  */
18846
- whatsOnControllerFindFriendsFavoriteBusinessVenueList: async (page?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18859
+ whatsOnControllerFindFavoriteWhatsOnList: async (page?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18847
18860
  const localVarPath = `/v1/whats-on/friends/favorite`;
18848
18861
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
18849
18862
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -18918,6 +18931,43 @@ export const WhatsOnApiAxiosParamCreator = function (configuration?: Configurati
18918
18931
  options: localVarRequestOptions,
18919
18932
  };
18920
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
+ },
18921
18971
  /**
18922
18972
  *
18923
18973
  * @param {WhatsOnFavoriteDTO} whatsOnFavoriteDTO
@@ -19116,10 +19166,10 @@ export const WhatsOnApiFp = function(configuration?: Configuration) {
19116
19166
  * @param {*} [options] Override http request option.
19117
19167
  * @throws {RequiredError}
19118
19168
  */
19119
- async whatsOnControllerFindFavoriteBusinessVenue(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WhatsOnFavoriteResponseDTO>> {
19120
- const localVarAxiosArgs = await localVarAxiosParamCreator.whatsOnControllerFindFavoriteBusinessVenue(id, options);
19169
+ async whatsOnControllerDiscountCodeApply(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WhatsDiscountCodeResponseDTO>> {
19170
+ const localVarAxiosArgs = await localVarAxiosParamCreator.whatsOnControllerDiscountCodeApply(id, options);
19121
19171
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19122
- const localVarOperationServerBasePath = operationServerMap['WhatsOnApi.whatsOnControllerFindFavoriteBusinessVenue']?.[localVarOperationServerIndex]?.url;
19172
+ const localVarOperationServerBasePath = operationServerMap['WhatsOnApi.whatsOnControllerDiscountCodeApply']?.[localVarOperationServerIndex]?.url;
19123
19173
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19124
19174
  },
19125
19175
  /**
@@ -19141,10 +19191,10 @@ export const WhatsOnApiFp = function(configuration?: Configuration) {
19141
19191
  * @param {*} [options] Override http request option.
19142
19192
  * @throws {RequiredError}
19143
19193
  */
19144
- async whatsOnControllerFindFriendsFavoriteBusinessVenueList(page?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WhatsOnFavoriteListResponseDTO>> {
19145
- const localVarAxiosArgs = await localVarAxiosParamCreator.whatsOnControllerFindFriendsFavoriteBusinessVenueList(page, limit, options);
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);
19146
19196
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19147
- const localVarOperationServerBasePath = operationServerMap['WhatsOnApi.whatsOnControllerFindFriendsFavoriteBusinessVenueList']?.[localVarOperationServerIndex]?.url;
19197
+ const localVarOperationServerBasePath = operationServerMap['WhatsOnApi.whatsOnControllerFindFavoriteWhatsOnList']?.[localVarOperationServerIndex]?.url;
19148
19198
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19149
19199
  },
19150
19200
  /**
@@ -19159,6 +19209,18 @@ export const WhatsOnApiFp = function(configuration?: Configuration) {
19159
19209
  const localVarOperationServerBasePath = operationServerMap['WhatsOnApi.whatsOnControllerFindWhatsOn']?.[localVarOperationServerIndex]?.url;
19160
19210
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19161
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
+ },
19162
19224
  /**
19163
19225
  *
19164
19226
  * @param {WhatsOnFavoriteDTO} whatsOnFavoriteDTO
@@ -19242,8 +19304,8 @@ export const WhatsOnApiFactory = function (configuration?: Configuration, basePa
19242
19304
  * @param {*} [options] Override http request option.
19243
19305
  * @throws {RequiredError}
19244
19306
  */
19245
- whatsOnControllerFindFavoriteBusinessVenue(id: string, options?: RawAxiosRequestConfig): AxiosPromise<WhatsOnFavoriteResponseDTO> {
19246
- return localVarFp.whatsOnControllerFindFavoriteBusinessVenue(id, options).then((request) => request(axios, basePath));
19307
+ whatsOnControllerDiscountCodeApply(id: string, options?: RawAxiosRequestConfig): AxiosPromise<WhatsDiscountCodeResponseDTO> {
19308
+ return localVarFp.whatsOnControllerDiscountCodeApply(id, options).then((request) => request(axios, basePath));
19247
19309
  },
19248
19310
  /**
19249
19311
  *
@@ -19261,8 +19323,8 @@ export const WhatsOnApiFactory = function (configuration?: Configuration, basePa
19261
19323
  * @param {*} [options] Override http request option.
19262
19324
  * @throws {RequiredError}
19263
19325
  */
19264
- whatsOnControllerFindFriendsFavoriteBusinessVenueList(page?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<WhatsOnFavoriteListResponseDTO> {
19265
- return localVarFp.whatsOnControllerFindFriendsFavoriteBusinessVenueList(page, limit, options).then((request) => request(axios, basePath));
19326
+ whatsOnControllerFindFavoriteWhatsOnList(page?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<WhatsOnFavoriteListResponseDTO> {
19327
+ return localVarFp.whatsOnControllerFindFavoriteWhatsOnList(page, limit, options).then((request) => request(axios, basePath));
19266
19328
  },
19267
19329
  /**
19268
19330
  *
@@ -19273,6 +19335,15 @@ export const WhatsOnApiFactory = function (configuration?: Configuration, basePa
19273
19335
  whatsOnControllerFindWhatsOn(whatsOnFindDTO: WhatsOnFindDTO, options?: RawAxiosRequestConfig): AxiosPromise<WhatsOnResponseDTO> {
19274
19336
  return localVarFp.whatsOnControllerFindWhatsOn(whatsOnFindDTO, options).then((request) => request(axios, basePath));
19275
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
+ },
19276
19347
  /**
19277
19348
  *
19278
19349
  * @param {WhatsOnFavoriteDTO} whatsOnFavoriteDTO
@@ -19349,8 +19420,8 @@ export class WhatsOnApi extends BaseAPI {
19349
19420
  * @throws {RequiredError}
19350
19421
  * @memberof WhatsOnApi
19351
19422
  */
19352
- public whatsOnControllerFindFavoriteBusinessVenue(id: string, options?: RawAxiosRequestConfig) {
19353
- return WhatsOnApiFp(this.configuration).whatsOnControllerFindFavoriteBusinessVenue(id, options).then((request) => request(this.axios, this.basePath));
19423
+ public whatsOnControllerDiscountCodeApply(id: string, options?: RawAxiosRequestConfig) {
19424
+ return WhatsOnApiFp(this.configuration).whatsOnControllerDiscountCodeApply(id, options).then((request) => request(this.axios, this.basePath));
19354
19425
  }
19355
19426
 
19356
19427
  /**
@@ -19372,8 +19443,8 @@ export class WhatsOnApi extends BaseAPI {
19372
19443
  * @throws {RequiredError}
19373
19444
  * @memberof WhatsOnApi
19374
19445
  */
19375
- public whatsOnControllerFindFriendsFavoriteBusinessVenueList(page?: number, limit?: number, options?: RawAxiosRequestConfig) {
19376
- return WhatsOnApiFp(this.configuration).whatsOnControllerFindFriendsFavoriteBusinessVenueList(page, limit, options).then((request) => request(this.axios, this.basePath));
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));
19377
19448
  }
19378
19449
 
19379
19450
  /**
@@ -19387,6 +19458,17 @@ export class WhatsOnApi extends BaseAPI {
19387
19458
  return WhatsOnApiFp(this.configuration).whatsOnControllerFindWhatsOn(whatsOnFindDTO, options).then((request) => request(this.axios, this.basePath));
19388
19459
  }
19389
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
+
19390
19472
  /**
19391
19473
  *
19392
19474
  * @param {WhatsOnFavoriteDTO} whatsOnFavoriteDTO
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooday_corp/gooday-api-client",
3
- "version": "1.2.68",
3
+ "version": "1.2.69",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},