@gooday_corp/gooday-api-client 1.2.69 → 1.2.71

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 +209 -44
  2. package/package.json +1 -1
package/api.ts CHANGED
@@ -4776,6 +4776,25 @@ export interface PlanUpsertPayloadDTO {
4776
4776
  */
4777
4777
  'plan': string;
4778
4778
  }
4779
+ /**
4780
+ *
4781
+ * @export
4782
+ * @interface PrepaidServiceCategoriesDTO
4783
+ */
4784
+ export interface PrepaidServiceCategoriesDTO {
4785
+ /**
4786
+ *
4787
+ * @type {Array<string>}
4788
+ * @memberof PrepaidServiceCategoriesDTO
4789
+ */
4790
+ 'data': Array<string>;
4791
+ /**
4792
+ * statusCode
4793
+ * @type {number}
4794
+ * @memberof PrepaidServiceCategoriesDTO
4795
+ */
4796
+ 'statusCode': number;
4797
+ }
4779
4798
  /**
4780
4799
  *
4781
4800
  * @export
@@ -4795,6 +4814,31 @@ export interface PrepaidServiceDTO {
4795
4814
  */
4796
4815
  'statusCode': number;
4797
4816
  }
4817
+ /**
4818
+ *
4819
+ * @export
4820
+ * @interface PrepaidServiceDiscount
4821
+ */
4822
+ export interface PrepaidServiceDiscount {
4823
+ /**
4824
+ *
4825
+ * @type {string}
4826
+ * @memberof PrepaidServiceDiscount
4827
+ */
4828
+ '_id'?: string;
4829
+ /**
4830
+ *
4831
+ * @type {string}
4832
+ * @memberof PrepaidServiceDiscount
4833
+ */
4834
+ 'name': string;
4835
+ /**
4836
+ *
4837
+ * @type {string}
4838
+ * @memberof PrepaidServiceDiscount
4839
+ */
4840
+ 'percentage': string;
4841
+ }
4798
4842
  /**
4799
4843
  *
4800
4844
  * @export
@@ -4814,17 +4858,17 @@ export interface PrepaidServiceEntity {
4814
4858
  */
4815
4859
  'name': string;
4816
4860
  /**
4817
- * Category
4861
+ *
4818
4862
  * @type {string}
4819
4863
  * @memberof PrepaidServiceEntity
4820
4864
  */
4821
- 'category': PrepaidServiceEntityCategoryEnum;
4865
+ 'category': string;
4822
4866
  /**
4823
4867
  *
4824
- * @type {string}
4868
+ * @type {Array<PrepaidServiceTimeDuration>}
4825
4869
  * @memberof PrepaidServiceEntity
4826
4870
  */
4827
- 'duration': string;
4871
+ 'duration': Array<PrepaidServiceTimeDuration>;
4828
4872
  /**
4829
4873
  *
4830
4874
  * @type {number}
@@ -4916,15 +4960,6 @@ export interface PrepaidServiceEntity {
4916
4960
  */
4917
4961
  'discount': Array<string>;
4918
4962
  }
4919
-
4920
- export const PrepaidServiceEntityCategoryEnum = {
4921
- Beginner: 'BEGINNER',
4922
- Intermediate: 'INTERMEDIATE',
4923
- Advanced: 'ADVANCED'
4924
- } as const;
4925
-
4926
- export type PrepaidServiceEntityCategoryEnum = typeof PrepaidServiceEntityCategoryEnum[keyof typeof PrepaidServiceEntityCategoryEnum];
4927
-
4928
4963
  /**
4929
4964
  *
4930
4965
  * @export
@@ -4973,13 +5008,7 @@ export interface PrepaidServicePayloadDTO {
4973
5008
  * @type {string}
4974
5009
  * @memberof PrepaidServicePayloadDTO
4975
5010
  */
4976
- 'category': PrepaidServicePayloadDTOCategoryEnum;
4977
- /**
4978
- *
4979
- * @type {string}
4980
- * @memberof PrepaidServicePayloadDTO
4981
- */
4982
- 'duration': string;
5011
+ 'category': string;
4983
5012
  /**
4984
5013
  *
4985
5014
  * @type {number}
@@ -5052,16 +5081,25 @@ export interface PrepaidServicePayloadDTO {
5052
5081
  * @memberof PrepaidServicePayloadDTO
5053
5082
  */
5054
5083
  'email': string;
5084
+ /**
5085
+ *
5086
+ * @type {ServiceEndRepeat}
5087
+ * @memberof PrepaidServicePayloadDTO
5088
+ */
5089
+ 'repeat': ServiceEndRepeat;
5090
+ /**
5091
+ *
5092
+ * @type {PrepaidServiceDiscount}
5093
+ * @memberof PrepaidServicePayloadDTO
5094
+ */
5095
+ 'discounts': PrepaidServiceDiscount;
5096
+ /**
5097
+ *
5098
+ * @type {Array<PrepaidServiceTimeDuration>}
5099
+ * @memberof PrepaidServicePayloadDTO
5100
+ */
5101
+ 'duration': Array<PrepaidServiceTimeDuration>;
5055
5102
  }
5056
-
5057
- export const PrepaidServicePayloadDTOCategoryEnum = {
5058
- Beginner: 'BEGINNER',
5059
- Intermediate: 'INTERMEDIATE',
5060
- Advanced: 'ADVANCED'
5061
- } as const;
5062
-
5063
- export type PrepaidServicePayloadDTOCategoryEnum = typeof PrepaidServicePayloadDTOCategoryEnum[keyof typeof PrepaidServicePayloadDTOCategoryEnum];
5064
-
5065
5103
  /**
5066
5104
  *
5067
5105
  * @export
@@ -5081,6 +5119,25 @@ export interface PrepaidServiceResponseDTO {
5081
5119
  */
5082
5120
  'statusCode': number;
5083
5121
  }
5122
+ /**
5123
+ *
5124
+ * @export
5125
+ * @interface PrepaidServiceTimeDuration
5126
+ */
5127
+ export interface PrepaidServiceTimeDuration {
5128
+ /**
5129
+ * Time duration
5130
+ * @type {TimeDuration}
5131
+ * @memberof PrepaidServiceTimeDuration
5132
+ */
5133
+ 'time': TimeDuration;
5134
+ /**
5135
+ * Capacity
5136
+ * @type {number}
5137
+ * @memberof PrepaidServiceTimeDuration
5138
+ */
5139
+ 'capacity': number;
5140
+ }
5084
5141
  /**
5085
5142
  *
5086
5143
  * @export
@@ -6147,6 +6204,25 @@ export interface TaskListResponseDTO {
6147
6204
  */
6148
6205
  'data': Array<TaskEntity>;
6149
6206
  }
6207
+ /**
6208
+ *
6209
+ * @export
6210
+ * @interface TimeDuration
6211
+ */
6212
+ export interface TimeDuration {
6213
+ /**
6214
+ * Start time
6215
+ * @type {string}
6216
+ * @memberof TimeDuration
6217
+ */
6218
+ 'start': string;
6219
+ /**
6220
+ * End Time
6221
+ * @type {string}
6222
+ * @memberof TimeDuration
6223
+ */
6224
+ 'end': string;
6225
+ }
6150
6226
  /**
6151
6227
  *
6152
6228
  * @export
@@ -6925,6 +7001,25 @@ export interface Weather {
6925
7001
  */
6926
7002
  'temperature': number;
6927
7003
  }
7004
+ /**
7005
+ *
7006
+ * @export
7007
+ * @interface WhatsDiscountCodePayloadDTO
7008
+ */
7009
+ export interface WhatsDiscountCodePayloadDTO {
7010
+ /**
7011
+ *
7012
+ * @type {string}
7013
+ * @memberof WhatsDiscountCodePayloadDTO
7014
+ */
7015
+ 'name': string;
7016
+ /**
7017
+ *
7018
+ * @type {string}
7019
+ * @memberof WhatsDiscountCodePayloadDTO
7020
+ */
7021
+ 'id': string;
7022
+ }
6928
7023
  /**
6929
7024
  *
6930
7025
  * @export
@@ -7078,6 +7173,12 @@ export interface WhatsOnEntity {
7078
7173
  * @memberof WhatsOnEntity
7079
7174
  */
7080
7175
  'discount': Array<string>;
7176
+ /**
7177
+ *
7178
+ * @type {number}
7179
+ * @memberof WhatsOnEntity
7180
+ */
7181
+ 'favorite'?: number;
7081
7182
  }
7082
7183
  /**
7083
7184
  *
@@ -15577,6 +15678,39 @@ export class PlansApi extends BaseAPI {
15577
15678
  */
15578
15679
  export const PrepaidServiceApiAxiosParamCreator = function (configuration?: Configuration) {
15579
15680
  return {
15681
+ /**
15682
+ *
15683
+ * @param {*} [options] Override http request option.
15684
+ * @throws {RequiredError}
15685
+ */
15686
+ prepaidServiceControllerCategories: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15687
+ const localVarPath = `/v1/prepaid-service/categories`;
15688
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
15689
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15690
+ let baseOptions;
15691
+ if (configuration) {
15692
+ baseOptions = configuration.baseOptions;
15693
+ }
15694
+
15695
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
15696
+ const localVarHeaderParameter = {} as any;
15697
+ const localVarQueryParameter = {} as any;
15698
+
15699
+ // authentication bearer required
15700
+ // http bearer authentication required
15701
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
15702
+
15703
+
15704
+
15705
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
15706
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15707
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
15708
+
15709
+ return {
15710
+ url: toPathString(localVarUrlObj),
15711
+ options: localVarRequestOptions,
15712
+ };
15713
+ },
15580
15714
  /**
15581
15715
  *
15582
15716
  * @param {PrepaidServicePayloadDTO} prepaidServicePayloadDTO
@@ -15745,6 +15879,17 @@ export const PrepaidServiceApiAxiosParamCreator = function (configuration?: Conf
15745
15879
  export const PrepaidServiceApiFp = function(configuration?: Configuration) {
15746
15880
  const localVarAxiosParamCreator = PrepaidServiceApiAxiosParamCreator(configuration)
15747
15881
  return {
15882
+ /**
15883
+ *
15884
+ * @param {*} [options] Override http request option.
15885
+ * @throws {RequiredError}
15886
+ */
15887
+ async prepaidServiceControllerCategories(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PrepaidServiceCategoriesDTO>> {
15888
+ const localVarAxiosArgs = await localVarAxiosParamCreator.prepaidServiceControllerCategories(options);
15889
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
15890
+ const localVarOperationServerBasePath = operationServerMap['PrepaidServiceApi.prepaidServiceControllerCategories']?.[localVarOperationServerIndex]?.url;
15891
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15892
+ },
15748
15893
  /**
15749
15894
  *
15750
15895
  * @param {PrepaidServicePayloadDTO} prepaidServicePayloadDTO
@@ -15804,6 +15949,14 @@ export const PrepaidServiceApiFp = function(configuration?: Configuration) {
15804
15949
  export const PrepaidServiceApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
15805
15950
  const localVarFp = PrepaidServiceApiFp(configuration)
15806
15951
  return {
15952
+ /**
15953
+ *
15954
+ * @param {*} [options] Override http request option.
15955
+ * @throws {RequiredError}
15956
+ */
15957
+ prepaidServiceControllerCategories(options?: RawAxiosRequestConfig): AxiosPromise<PrepaidServiceCategoriesDTO> {
15958
+ return localVarFp.prepaidServiceControllerCategories(options).then((request) => request(axios, basePath));
15959
+ },
15807
15960
  /**
15808
15961
  *
15809
15962
  * @param {PrepaidServicePayloadDTO} prepaidServicePayloadDTO
@@ -15851,6 +16004,16 @@ export const PrepaidServiceApiFactory = function (configuration?: Configuration,
15851
16004
  * @extends {BaseAPI}
15852
16005
  */
15853
16006
  export class PrepaidServiceApi extends BaseAPI {
16007
+ /**
16008
+ *
16009
+ * @param {*} [options] Override http request option.
16010
+ * @throws {RequiredError}
16011
+ * @memberof PrepaidServiceApi
16012
+ */
16013
+ public prepaidServiceControllerCategories(options?: RawAxiosRequestConfig) {
16014
+ return PrepaidServiceApiFp(this.configuration).prepaidServiceControllerCategories(options).then((request) => request(this.axios, this.basePath));
16015
+ }
16016
+
15854
16017
  /**
15855
16018
  *
15856
16019
  * @param {PrepaidServicePayloadDTO} prepaidServicePayloadDTO
@@ -18777,15 +18940,14 @@ export const WhatsOnApiAxiosParamCreator = function (configuration?: Configurati
18777
18940
  },
18778
18941
  /**
18779
18942
  *
18780
- * @param {string} id
18943
+ * @param {WhatsDiscountCodePayloadDTO} whatsDiscountCodePayloadDTO
18781
18944
  * @param {*} [options] Override http request option.
18782
18945
  * @throws {RequiredError}
18783
18946
  */
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)));
18947
+ whatsOnControllerDiscountCodeApply: async (whatsDiscountCodePayloadDTO: WhatsDiscountCodePayloadDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18948
+ // verify required parameter 'whatsDiscountCodePayloadDTO' is not null or undefined
18949
+ assertParamExists('whatsOnControllerDiscountCodeApply', 'whatsDiscountCodePayloadDTO', whatsDiscountCodePayloadDTO)
18950
+ const localVarPath = `/v1/whats-on/discount`;
18789
18951
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
18790
18952
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18791
18953
  let baseOptions;
@@ -18803,9 +18965,12 @@ export const WhatsOnApiAxiosParamCreator = function (configuration?: Configurati
18803
18965
 
18804
18966
 
18805
18967
 
18968
+ localVarHeaderParameter['Content-Type'] = 'application/json';
18969
+
18806
18970
  setSearchParams(localVarUrlObj, localVarQueryParameter);
18807
18971
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18808
18972
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18973
+ localVarRequestOptions.data = serializeDataIfNeeded(whatsDiscountCodePayloadDTO, localVarRequestOptions, configuration)
18809
18974
 
18810
18975
  return {
18811
18976
  url: toPathString(localVarUrlObj),
@@ -19162,12 +19327,12 @@ export const WhatsOnApiFp = function(configuration?: Configuration) {
19162
19327
  },
19163
19328
  /**
19164
19329
  *
19165
- * @param {string} id
19330
+ * @param {WhatsDiscountCodePayloadDTO} whatsDiscountCodePayloadDTO
19166
19331
  * @param {*} [options] Override http request option.
19167
19332
  * @throws {RequiredError}
19168
19333
  */
19169
- async whatsOnControllerDiscountCodeApply(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WhatsDiscountCodeResponseDTO>> {
19170
- const localVarAxiosArgs = await localVarAxiosParamCreator.whatsOnControllerDiscountCodeApply(id, options);
19334
+ async whatsOnControllerDiscountCodeApply(whatsDiscountCodePayloadDTO: WhatsDiscountCodePayloadDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WhatsDiscountCodeResponseDTO>> {
19335
+ const localVarAxiosArgs = await localVarAxiosParamCreator.whatsOnControllerDiscountCodeApply(whatsDiscountCodePayloadDTO, options);
19171
19336
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19172
19337
  const localVarOperationServerBasePath = operationServerMap['WhatsOnApi.whatsOnControllerDiscountCodeApply']?.[localVarOperationServerIndex]?.url;
19173
19338
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -19300,12 +19465,12 @@ export const WhatsOnApiFactory = function (configuration?: Configuration, basePa
19300
19465
  },
19301
19466
  /**
19302
19467
  *
19303
- * @param {string} id
19468
+ * @param {WhatsDiscountCodePayloadDTO} whatsDiscountCodePayloadDTO
19304
19469
  * @param {*} [options] Override http request option.
19305
19470
  * @throws {RequiredError}
19306
19471
  */
19307
- whatsOnControllerDiscountCodeApply(id: string, options?: RawAxiosRequestConfig): AxiosPromise<WhatsDiscountCodeResponseDTO> {
19308
- return localVarFp.whatsOnControllerDiscountCodeApply(id, options).then((request) => request(axios, basePath));
19472
+ whatsOnControllerDiscountCodeApply(whatsDiscountCodePayloadDTO: WhatsDiscountCodePayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<WhatsDiscountCodeResponseDTO> {
19473
+ return localVarFp.whatsOnControllerDiscountCodeApply(whatsDiscountCodePayloadDTO, options).then((request) => request(axios, basePath));
19309
19474
  },
19310
19475
  /**
19311
19476
  *
@@ -19415,13 +19580,13 @@ export class WhatsOnApi extends BaseAPI {
19415
19580
 
19416
19581
  /**
19417
19582
  *
19418
- * @param {string} id
19583
+ * @param {WhatsDiscountCodePayloadDTO} whatsDiscountCodePayloadDTO
19419
19584
  * @param {*} [options] Override http request option.
19420
19585
  * @throws {RequiredError}
19421
19586
  * @memberof WhatsOnApi
19422
19587
  */
19423
- public whatsOnControllerDiscountCodeApply(id: string, options?: RawAxiosRequestConfig) {
19424
- return WhatsOnApiFp(this.configuration).whatsOnControllerDiscountCodeApply(id, options).then((request) => request(this.axios, this.basePath));
19588
+ public whatsOnControllerDiscountCodeApply(whatsDiscountCodePayloadDTO: WhatsDiscountCodePayloadDTO, options?: RawAxiosRequestConfig) {
19589
+ return WhatsOnApiFp(this.configuration).whatsOnControllerDiscountCodeApply(whatsDiscountCodePayloadDTO, options).then((request) => request(this.axios, this.basePath));
19425
19590
  }
19426
19591
 
19427
19592
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooday_corp/gooday-api-client",
3
- "version": "1.2.69",
3
+ "version": "1.2.71",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},