@gooday_corp/gooday-api-client 1.2.26 → 1.2.28

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 +56 -38
  2. package/package.json +1 -1
package/api.ts CHANGED
@@ -805,7 +805,7 @@ export interface BusinessStaffDTO {
805
805
  * @type {string}
806
806
  * @memberof BusinessStaffDTO
807
807
  */
808
- 'date': string;
808
+ 'dob': string;
809
809
  /**
810
810
  * Email of the staff
811
811
  * @type {string}
@@ -2356,6 +2356,43 @@ export interface FileNameUploadDTO {
2356
2356
  */
2357
2357
  'bucketName': string;
2358
2358
  }
2359
+ /**
2360
+ *
2361
+ * @export
2362
+ * @interface FindBusinessStaff
2363
+ */
2364
+ export interface FindBusinessStaff {
2365
+ /**
2366
+ *
2367
+ * @type {number}
2368
+ * @memberof FindBusinessStaff
2369
+ */
2370
+ 'page': number;
2371
+ /**
2372
+ *
2373
+ * @type {number}
2374
+ * @memberof FindBusinessStaff
2375
+ */
2376
+ 'pageSize': number;
2377
+ /**
2378
+ *
2379
+ * @type {string}
2380
+ * @memberof FindBusinessStaff
2381
+ */
2382
+ 'search'?: string;
2383
+ /**
2384
+ *
2385
+ * @type {string}
2386
+ * @memberof FindBusinessStaff
2387
+ */
2388
+ 'venue'?: string;
2389
+ /**
2390
+ *
2391
+ * @type {boolean}
2392
+ * @memberof FindBusinessStaff
2393
+ */
2394
+ 'allStaff'?: boolean;
2395
+ }
2359
2396
  /**
2360
2397
  *
2361
2398
  * @export
@@ -6979,18 +7016,14 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
6979
7016
  },
6980
7017
  /**
6981
7018
  *
6982
- * @param {number} page
6983
- * @param {number} pageSize
6984
- * @param {string} [search]
7019
+ * @param {FindBusinessStaff} findBusinessStaff
6985
7020
  * @param {*} [options] Override http request option.
6986
7021
  * @throws {RequiredError}
6987
7022
  */
6988
- businessStaffControllerFindBusinessStaffs: async (page: number, pageSize: number, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
6989
- // verify required parameter 'page' is not null or undefined
6990
- assertParamExists('businessStaffControllerFindBusinessStaffs', 'page', page)
6991
- // verify required parameter 'pageSize' is not null or undefined
6992
- assertParamExists('businessStaffControllerFindBusinessStaffs', 'pageSize', pageSize)
6993
- const localVarPath = `/v1/business-staff`;
7023
+ businessStaffControllerFindBusinessStaffs: async (findBusinessStaff: FindBusinessStaff, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
7024
+ // verify required parameter 'findBusinessStaff' is not null or undefined
7025
+ assertParamExists('businessStaffControllerFindBusinessStaffs', 'findBusinessStaff', findBusinessStaff)
7026
+ const localVarPath = `/v1/business-staff/list`;
6994
7027
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
6995
7028
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6996
7029
  let baseOptions;
@@ -6998,7 +7031,7 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
6998
7031
  baseOptions = configuration.baseOptions;
6999
7032
  }
7000
7033
 
7001
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
7034
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
7002
7035
  const localVarHeaderParameter = {} as any;
7003
7036
  const localVarQueryParameter = {} as any;
7004
7037
 
@@ -7006,23 +7039,14 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
7006
7039
  // http bearer authentication required
7007
7040
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
7008
7041
 
7009
- if (page !== undefined) {
7010
- localVarQueryParameter['page'] = page;
7011
- }
7012
-
7013
- if (pageSize !== undefined) {
7014
- localVarQueryParameter['pageSize'] = pageSize;
7015
- }
7016
-
7017
- if (search !== undefined) {
7018
- localVarQueryParameter['search'] = search;
7019
- }
7020
-
7021
7042
 
7022
7043
 
7044
+ localVarHeaderParameter['Content-Type'] = 'application/json';
7045
+
7023
7046
  setSearchParams(localVarUrlObj, localVarQueryParameter);
7024
7047
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7025
7048
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
7049
+ localVarRequestOptions.data = serializeDataIfNeeded(findBusinessStaff, localVarRequestOptions, configuration)
7026
7050
 
7027
7051
  return {
7028
7052
  url: toPathString(localVarUrlObj),
@@ -7500,14 +7524,12 @@ export const BusinessApiFp = function(configuration?: Configuration) {
7500
7524
  },
7501
7525
  /**
7502
7526
  *
7503
- * @param {number} page
7504
- * @param {number} pageSize
7505
- * @param {string} [search]
7527
+ * @param {FindBusinessStaff} findBusinessStaff
7506
7528
  * @param {*} [options] Override http request option.
7507
7529
  * @throws {RequiredError}
7508
7530
  */
7509
- async businessStaffControllerFindBusinessStaffs(page: number, pageSize: number, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BusinessStaffsResponseDTO>> {
7510
- const localVarAxiosArgs = await localVarAxiosParamCreator.businessStaffControllerFindBusinessStaffs(page, pageSize, search, options);
7531
+ async businessStaffControllerFindBusinessStaffs(findBusinessStaff: FindBusinessStaff, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BusinessStaffsResponseDTO>> {
7532
+ const localVarAxiosArgs = await localVarAxiosParamCreator.businessStaffControllerFindBusinessStaffs(findBusinessStaff, options);
7511
7533
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
7512
7534
  const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessStaffControllerFindBusinessStaffs']?.[localVarOperationServerIndex]?.url;
7513
7535
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -7690,14 +7712,12 @@ export const BusinessApiFactory = function (configuration?: Configuration, baseP
7690
7712
  },
7691
7713
  /**
7692
7714
  *
7693
- * @param {number} page
7694
- * @param {number} pageSize
7695
- * @param {string} [search]
7715
+ * @param {FindBusinessStaff} findBusinessStaff
7696
7716
  * @param {*} [options] Override http request option.
7697
7717
  * @throws {RequiredError}
7698
7718
  */
7699
- businessStaffControllerFindBusinessStaffs(page: number, pageSize: number, search?: string, options?: RawAxiosRequestConfig): AxiosPromise<BusinessStaffsResponseDTO> {
7700
- return localVarFp.businessStaffControllerFindBusinessStaffs(page, pageSize, search, options).then((request) => request(axios, basePath));
7719
+ businessStaffControllerFindBusinessStaffs(findBusinessStaff: FindBusinessStaff, options?: RawAxiosRequestConfig): AxiosPromise<BusinessStaffsResponseDTO> {
7720
+ return localVarFp.businessStaffControllerFindBusinessStaffs(findBusinessStaff, options).then((request) => request(axios, basePath));
7701
7721
  },
7702
7722
  /**
7703
7723
  *
@@ -7852,15 +7872,13 @@ export class BusinessApi extends BaseAPI {
7852
7872
 
7853
7873
  /**
7854
7874
  *
7855
- * @param {number} page
7856
- * @param {number} pageSize
7857
- * @param {string} [search]
7875
+ * @param {FindBusinessStaff} findBusinessStaff
7858
7876
  * @param {*} [options] Override http request option.
7859
7877
  * @throws {RequiredError}
7860
7878
  * @memberof BusinessApi
7861
7879
  */
7862
- public businessStaffControllerFindBusinessStaffs(page: number, pageSize: number, search?: string, options?: RawAxiosRequestConfig) {
7863
- return BusinessApiFp(this.configuration).businessStaffControllerFindBusinessStaffs(page, pageSize, search, options).then((request) => request(this.axios, this.basePath));
7880
+ public businessStaffControllerFindBusinessStaffs(findBusinessStaff: FindBusinessStaff, options?: RawAxiosRequestConfig) {
7881
+ return BusinessApiFp(this.configuration).businessStaffControllerFindBusinessStaffs(findBusinessStaff, options).then((request) => request(this.axios, this.basePath));
7864
7882
  }
7865
7883
 
7866
7884
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooday_corp/gooday-api-client",
3
- "version": "1.2.26",
3
+ "version": "1.2.28",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},