@gooday_corp/gooday-api-client 1.2.19 → 1.2.21

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 +678 -0
  2. package/package.json +1 -1
package/api.ts CHANGED
@@ -319,6 +319,31 @@ export interface AttributesDto {
319
319
  */
320
320
  'dislikes': Array<string>;
321
321
  }
322
+ /**
323
+ *
324
+ * @export
325
+ * @interface AvailabilityDayDto
326
+ */
327
+ export interface AvailabilityDayDto {
328
+ /**
329
+ * Day of the week
330
+ * @type {string}
331
+ * @memberof AvailabilityDayDto
332
+ */
333
+ 'day': string;
334
+ /**
335
+ * Whether the day is enabled
336
+ * @type {boolean}
337
+ * @memberof AvailabilityDayDto
338
+ */
339
+ 'enabled': boolean;
340
+ /**
341
+ * Time slots for the day
342
+ * @type {Array<TimeSlotDto>}
343
+ * @memberof AvailabilityDayDto
344
+ */
345
+ 'slots': Array<TimeSlotDto>;
346
+ }
322
347
  /**
323
348
  *
324
349
  * @export
@@ -745,6 +770,263 @@ export interface BusinessOnBoardingResponseDTO {
745
770
  */
746
771
  'data': BusinessEntity;
747
772
  }
773
+ /**
774
+ *
775
+ * @export
776
+ * @interface BusinessStaffDTO
777
+ */
778
+ export interface BusinessStaffDTO {
779
+ /**
780
+ * First name of the staff
781
+ * @type {string}
782
+ * @memberof BusinessStaffDTO
783
+ */
784
+ 'firstName': string;
785
+ /**
786
+ * Last name of the staff
787
+ * @type {string}
788
+ * @memberof BusinessStaffDTO
789
+ */
790
+ 'lastName': string;
791
+ /**
792
+ * Gender of the staff
793
+ * @type {string}
794
+ * @memberof BusinessStaffDTO
795
+ */
796
+ 'gender': string;
797
+ /**
798
+ * Date associated with the staff
799
+ * @type {string}
800
+ * @memberof BusinessStaffDTO
801
+ */
802
+ 'date': string;
803
+ /**
804
+ * Email of the staff
805
+ * @type {string}
806
+ * @memberof BusinessStaffDTO
807
+ */
808
+ 'email': string;
809
+ /**
810
+ * Phone number of the staff
811
+ * @type {string}
812
+ * @memberof BusinessStaffDTO
813
+ */
814
+ 'phoneNumber': string;
815
+ /**
816
+ * Gooday ID of the staff
817
+ * @type {string}
818
+ * @memberof BusinessStaffDTO
819
+ */
820
+ 'goodayId': string;
821
+ /**
822
+ * Role of the staff
823
+ * @type {string}
824
+ * @memberof BusinessStaffDTO
825
+ */
826
+ 'role': string;
827
+ /**
828
+ * Venue ID of the staff
829
+ * @type {string}
830
+ * @memberof BusinessStaffDTO
831
+ */
832
+ 'venue': string;
833
+ /**
834
+ * Admin name for the staff
835
+ * @type {string}
836
+ * @memberof BusinessStaffDTO
837
+ */
838
+ 'admin': string;
839
+ /**
840
+ * Country of the staff
841
+ * @type {string}
842
+ * @memberof BusinessStaffDTO
843
+ */
844
+ 'country': string;
845
+ /**
846
+ * Address of the staff
847
+ * @type {string}
848
+ * @memberof BusinessStaffDTO
849
+ */
850
+ 'address': string;
851
+ /**
852
+ * Profile picture URL
853
+ * @type {string}
854
+ * @memberof BusinessStaffDTO
855
+ */
856
+ 'profilePicture': string;
857
+ /**
858
+ * Additional documents URLs
859
+ * @type {Array<string>}
860
+ * @memberof BusinessStaffDTO
861
+ */
862
+ 'additionalDocument': Array<string>;
863
+ /**
864
+ * Availability details of the staff
865
+ * @type {Array<AvailabilityDayDto>}
866
+ * @memberof BusinessStaffDTO
867
+ */
868
+ 'availability': Array<AvailabilityDayDto>;
869
+ }
870
+ /**
871
+ *
872
+ * @export
873
+ * @interface BusinessStaffDeleteResponseDTO
874
+ */
875
+ export interface BusinessStaffDeleteResponseDTO {
876
+ /**
877
+ * Status code of the response
878
+ * @type {number}
879
+ * @memberof BusinessStaffDeleteResponseDTO
880
+ */
881
+ 'statusCode': number;
882
+ /**
883
+ * Staff deleted successfully
884
+ * @type {string}
885
+ * @memberof BusinessStaffDeleteResponseDTO
886
+ */
887
+ 'message': string;
888
+ }
889
+ /**
890
+ *
891
+ * @export
892
+ * @interface BusinessStaffEntity
893
+ */
894
+ export interface BusinessStaffEntity {
895
+ /**
896
+ * Unique identifier for the business staff
897
+ * @type {string}
898
+ * @memberof BusinessStaffEntity
899
+ */
900
+ '_id': string;
901
+ /**
902
+ * First name of the staff member
903
+ * @type {string}
904
+ * @memberof BusinessStaffEntity
905
+ */
906
+ 'firstName': string;
907
+ /**
908
+ * Last name of the staff member
909
+ * @type {string}
910
+ * @memberof BusinessStaffEntity
911
+ */
912
+ 'lastName': string;
913
+ /**
914
+ * Gender of the staff member
915
+ * @type {string}
916
+ * @memberof BusinessStaffEntity
917
+ */
918
+ 'gender'?: string;
919
+ /**
920
+ * Date of birth of the staff member
921
+ * @type {string}
922
+ * @memberof BusinessStaffEntity
923
+ */
924
+ 'date'?: string;
925
+ /**
926
+ * Email of the staff member
927
+ * @type {string}
928
+ * @memberof BusinessStaffEntity
929
+ */
930
+ 'email'?: string;
931
+ /**
932
+ * Phone number of the staff member
933
+ * @type {string}
934
+ * @memberof BusinessStaffEntity
935
+ */
936
+ 'phoneNumber'?: string;
937
+ /**
938
+ * Gooday ID of the staff member
939
+ * @type {string}
940
+ * @memberof BusinessStaffEntity
941
+ */
942
+ 'goodayId': string;
943
+ /**
944
+ * Role of the staff member
945
+ * @type {string}
946
+ * @memberof BusinessStaffEntity
947
+ */
948
+ 'role': string;
949
+ /**
950
+ * Associated business venue
951
+ * @type {object}
952
+ * @memberof BusinessStaffEntity
953
+ */
954
+ 'venue': object;
955
+ /**
956
+ * Admin ID managing the staff
957
+ * @type {string}
958
+ * @memberof BusinessStaffEntity
959
+ */
960
+ 'admin'?: string;
961
+ /**
962
+ * Country of the staff member
963
+ * @type {string}
964
+ * @memberof BusinessStaffEntity
965
+ */
966
+ 'country'?: string;
967
+ /**
968
+ * Address of the staff member
969
+ * @type {string}
970
+ * @memberof BusinessStaffEntity
971
+ */
972
+ 'address'?: string;
973
+ /**
974
+ * Profile picture URL
975
+ * @type {string}
976
+ * @memberof BusinessStaffEntity
977
+ */
978
+ 'profilePicture': string;
979
+ /**
980
+ * Additional documents provided by staff
981
+ * @type {Array<string>}
982
+ * @memberof BusinessStaffEntity
983
+ */
984
+ 'additionalDocument': Array<string>;
985
+ /**
986
+ * Availability of the staff member
987
+ * @type {Array<object>}
988
+ * @memberof BusinessStaffEntity
989
+ */
990
+ 'availability': Array<object>;
991
+ }
992
+ /**
993
+ *
994
+ * @export
995
+ * @interface BusinessStaffResponseDTO
996
+ */
997
+ export interface BusinessStaffResponseDTO {
998
+ /**
999
+ * Status code of the response
1000
+ * @type {number}
1001
+ * @memberof BusinessStaffResponseDTO
1002
+ */
1003
+ 'statusCode': number;
1004
+ /**
1005
+ * Response Message
1006
+ * @type {BusinessStaffEntity}
1007
+ * @memberof BusinessStaffResponseDTO
1008
+ */
1009
+ 'data': BusinessStaffEntity;
1010
+ }
1011
+ /**
1012
+ *
1013
+ * @export
1014
+ * @interface BusinessStaffsResponseDTO
1015
+ */
1016
+ export interface BusinessStaffsResponseDTO {
1017
+ /**
1018
+ * Status code of the response
1019
+ * @type {number}
1020
+ * @memberof BusinessStaffsResponseDTO
1021
+ */
1022
+ 'statusCode': number;
1023
+ /**
1024
+ * Response Message
1025
+ * @type {Array<BusinessStaffEntity>}
1026
+ * @memberof BusinessStaffsResponseDTO
1027
+ */
1028
+ 'data': Array<BusinessStaffEntity>;
1029
+ }
748
1030
  /**
749
1031
  *
750
1032
  * @export
@@ -3548,6 +3830,25 @@ export interface TaskListResponseDTO {
3548
3830
  */
3549
3831
  'data': Array<TaskEntity>;
3550
3832
  }
3833
+ /**
3834
+ *
3835
+ * @export
3836
+ * @interface TimeSlotDto
3837
+ */
3838
+ export interface TimeSlotDto {
3839
+ /**
3840
+ * Start time of the slot
3841
+ * @type {string}
3842
+ * @memberof TimeSlotDto
3843
+ */
3844
+ 'from': string;
3845
+ /**
3846
+ * End time of the slot
3847
+ * @type {string}
3848
+ * @memberof TimeSlotDto
3849
+ */
3850
+ 'to': string;
3851
+ }
3551
3852
  /**
3552
3853
  *
3553
3854
  * @export
@@ -5661,6 +5962,214 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
5661
5962
  options: localVarRequestOptions,
5662
5963
  };
5663
5964
  },
5965
+ /**
5966
+ *
5967
+ * @param {string} id
5968
+ * @param {*} [options] Override http request option.
5969
+ * @throws {RequiredError}
5970
+ */
5971
+ businessStaffControllerDeleteStaff: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5972
+ // verify required parameter 'id' is not null or undefined
5973
+ assertParamExists('businessStaffControllerDeleteStaff', 'id', id)
5974
+ const localVarPath = `/v1/business-staff/{id}`
5975
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
5976
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5977
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5978
+ let baseOptions;
5979
+ if (configuration) {
5980
+ baseOptions = configuration.baseOptions;
5981
+ }
5982
+
5983
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
5984
+ const localVarHeaderParameter = {} as any;
5985
+ const localVarQueryParameter = {} as any;
5986
+
5987
+ // authentication bearer required
5988
+ // http bearer authentication required
5989
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
5990
+
5991
+
5992
+
5993
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5994
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5995
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5996
+
5997
+ return {
5998
+ url: toPathString(localVarUrlObj),
5999
+ options: localVarRequestOptions,
6000
+ };
6001
+ },
6002
+ /**
6003
+ *
6004
+ * @param {string} id
6005
+ * @param {*} [options] Override http request option.
6006
+ * @throws {RequiredError}
6007
+ */
6008
+ businessStaffControllerFindBusinessStaff: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
6009
+ // verify required parameter 'id' is not null or undefined
6010
+ assertParamExists('businessStaffControllerFindBusinessStaff', 'id', id)
6011
+ const localVarPath = `/v1/business-staff/{id}`
6012
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
6013
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6014
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6015
+ let baseOptions;
6016
+ if (configuration) {
6017
+ baseOptions = configuration.baseOptions;
6018
+ }
6019
+
6020
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
6021
+ const localVarHeaderParameter = {} as any;
6022
+ const localVarQueryParameter = {} as any;
6023
+
6024
+ // authentication bearer required
6025
+ // http bearer authentication required
6026
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
6027
+
6028
+
6029
+
6030
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6031
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6032
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
6033
+
6034
+ return {
6035
+ url: toPathString(localVarUrlObj),
6036
+ options: localVarRequestOptions,
6037
+ };
6038
+ },
6039
+ /**
6040
+ *
6041
+ * @param {number} page
6042
+ * @param {number} pageSize
6043
+ * @param {string} [search]
6044
+ * @param {*} [options] Override http request option.
6045
+ * @throws {RequiredError}
6046
+ */
6047
+ businessStaffControllerFindBusinessStaffs: async (page: number, pageSize: number, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
6048
+ // verify required parameter 'page' is not null or undefined
6049
+ assertParamExists('businessStaffControllerFindBusinessStaffs', 'page', page)
6050
+ // verify required parameter 'pageSize' is not null or undefined
6051
+ assertParamExists('businessStaffControllerFindBusinessStaffs', 'pageSize', pageSize)
6052
+ const localVarPath = `/v1/business-staff`;
6053
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6054
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6055
+ let baseOptions;
6056
+ if (configuration) {
6057
+ baseOptions = configuration.baseOptions;
6058
+ }
6059
+
6060
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
6061
+ const localVarHeaderParameter = {} as any;
6062
+ const localVarQueryParameter = {} as any;
6063
+
6064
+ // authentication bearer required
6065
+ // http bearer authentication required
6066
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
6067
+
6068
+ if (page !== undefined) {
6069
+ localVarQueryParameter['page'] = page;
6070
+ }
6071
+
6072
+ if (pageSize !== undefined) {
6073
+ localVarQueryParameter['pageSize'] = pageSize;
6074
+ }
6075
+
6076
+ if (search !== undefined) {
6077
+ localVarQueryParameter['search'] = search;
6078
+ }
6079
+
6080
+
6081
+
6082
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6083
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6084
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
6085
+
6086
+ return {
6087
+ url: toPathString(localVarUrlObj),
6088
+ options: localVarRequestOptions,
6089
+ };
6090
+ },
6091
+ /**
6092
+ *
6093
+ * @param {BusinessStaffDTO} businessStaffDTO
6094
+ * @param {*} [options] Override http request option.
6095
+ * @throws {RequiredError}
6096
+ */
6097
+ businessStaffControllerSaveBusinessStaff: async (businessStaffDTO: BusinessStaffDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
6098
+ // verify required parameter 'businessStaffDTO' is not null or undefined
6099
+ assertParamExists('businessStaffControllerSaveBusinessStaff', 'businessStaffDTO', businessStaffDTO)
6100
+ const localVarPath = `/v1/business-staff`;
6101
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6102
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6103
+ let baseOptions;
6104
+ if (configuration) {
6105
+ baseOptions = configuration.baseOptions;
6106
+ }
6107
+
6108
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
6109
+ const localVarHeaderParameter = {} as any;
6110
+ const localVarQueryParameter = {} as any;
6111
+
6112
+ // authentication bearer required
6113
+ // http bearer authentication required
6114
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
6115
+
6116
+
6117
+
6118
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6119
+
6120
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6121
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6122
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
6123
+ localVarRequestOptions.data = serializeDataIfNeeded(businessStaffDTO, localVarRequestOptions, configuration)
6124
+
6125
+ return {
6126
+ url: toPathString(localVarUrlObj),
6127
+ options: localVarRequestOptions,
6128
+ };
6129
+ },
6130
+ /**
6131
+ *
6132
+ * @param {string} id
6133
+ * @param {BusinessStaffDTO} businessStaffDTO
6134
+ * @param {*} [options] Override http request option.
6135
+ * @throws {RequiredError}
6136
+ */
6137
+ businessStaffControllerUpdateStaff: async (id: string, businessStaffDTO: BusinessStaffDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
6138
+ // verify required parameter 'id' is not null or undefined
6139
+ assertParamExists('businessStaffControllerUpdateStaff', 'id', id)
6140
+ // verify required parameter 'businessStaffDTO' is not null or undefined
6141
+ assertParamExists('businessStaffControllerUpdateStaff', 'businessStaffDTO', businessStaffDTO)
6142
+ const localVarPath = `/v1/business-staff/{id}`
6143
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
6144
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6145
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6146
+ let baseOptions;
6147
+ if (configuration) {
6148
+ baseOptions = configuration.baseOptions;
6149
+ }
6150
+
6151
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
6152
+ const localVarHeaderParameter = {} as any;
6153
+ const localVarQueryParameter = {} as any;
6154
+
6155
+ // authentication bearer required
6156
+ // http bearer authentication required
6157
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
6158
+
6159
+
6160
+
6161
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6162
+
6163
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6164
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6165
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
6166
+ localVarRequestOptions.data = serializeDataIfNeeded(businessStaffDTO, localVarRequestOptions, configuration)
6167
+
6168
+ return {
6169
+ url: toPathString(localVarUrlObj),
6170
+ options: localVarRequestOptions,
6171
+ };
6172
+ },
5664
6173
  /**
5665
6174
  *
5666
6175
  * @param {GetBusinessVenueDto} getBusinessVenueDto
@@ -5999,6 +6508,69 @@ export const BusinessApiFp = function(configuration?: Configuration) {
5999
6508
  const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessControllerListBusinesses']?.[localVarOperationServerIndex]?.url;
6000
6509
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6001
6510
  },
6511
+ /**
6512
+ *
6513
+ * @param {string} id
6514
+ * @param {*} [options] Override http request option.
6515
+ * @throws {RequiredError}
6516
+ */
6517
+ async businessStaffControllerDeleteStaff(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BusinessStaffDeleteResponseDTO>> {
6518
+ const localVarAxiosArgs = await localVarAxiosParamCreator.businessStaffControllerDeleteStaff(id, options);
6519
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6520
+ const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessStaffControllerDeleteStaff']?.[localVarOperationServerIndex]?.url;
6521
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6522
+ },
6523
+ /**
6524
+ *
6525
+ * @param {string} id
6526
+ * @param {*} [options] Override http request option.
6527
+ * @throws {RequiredError}
6528
+ */
6529
+ async businessStaffControllerFindBusinessStaff(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BusinessStaffResponseDTO>> {
6530
+ const localVarAxiosArgs = await localVarAxiosParamCreator.businessStaffControllerFindBusinessStaff(id, options);
6531
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6532
+ const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessStaffControllerFindBusinessStaff']?.[localVarOperationServerIndex]?.url;
6533
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6534
+ },
6535
+ /**
6536
+ *
6537
+ * @param {number} page
6538
+ * @param {number} pageSize
6539
+ * @param {string} [search]
6540
+ * @param {*} [options] Override http request option.
6541
+ * @throws {RequiredError}
6542
+ */
6543
+ async businessStaffControllerFindBusinessStaffs(page: number, pageSize: number, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BusinessStaffsResponseDTO>> {
6544
+ const localVarAxiosArgs = await localVarAxiosParamCreator.businessStaffControllerFindBusinessStaffs(page, pageSize, search, options);
6545
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6546
+ const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessStaffControllerFindBusinessStaffs']?.[localVarOperationServerIndex]?.url;
6547
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6548
+ },
6549
+ /**
6550
+ *
6551
+ * @param {BusinessStaffDTO} businessStaffDTO
6552
+ * @param {*} [options] Override http request option.
6553
+ * @throws {RequiredError}
6554
+ */
6555
+ async businessStaffControllerSaveBusinessStaff(businessStaffDTO: BusinessStaffDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BusinessStaffResponseDTO>> {
6556
+ const localVarAxiosArgs = await localVarAxiosParamCreator.businessStaffControllerSaveBusinessStaff(businessStaffDTO, options);
6557
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6558
+ const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessStaffControllerSaveBusinessStaff']?.[localVarOperationServerIndex]?.url;
6559
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6560
+ },
6561
+ /**
6562
+ *
6563
+ * @param {string} id
6564
+ * @param {BusinessStaffDTO} businessStaffDTO
6565
+ * @param {*} [options] Override http request option.
6566
+ * @throws {RequiredError}
6567
+ */
6568
+ async businessStaffControllerUpdateStaff(id: string, businessStaffDTO: BusinessStaffDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BusinessStaffResponseDTO>> {
6569
+ const localVarAxiosArgs = await localVarAxiosParamCreator.businessStaffControllerUpdateStaff(id, businessStaffDTO, options);
6570
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6571
+ const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessStaffControllerUpdateStaff']?.[localVarOperationServerIndex]?.url;
6572
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6573
+ },
6002
6574
  /**
6003
6575
  *
6004
6576
  * @param {GetBusinessVenueDto} getBusinessVenueDto
@@ -6129,6 +6701,54 @@ export const BusinessApiFactory = function (configuration?: Configuration, baseP
6129
6701
  businessControllerListBusinesses(options?: RawAxiosRequestConfig): AxiosPromise<Array<BusinessOnBoardingResponseDTO>> {
6130
6702
  return localVarFp.businessControllerListBusinesses(options).then((request) => request(axios, basePath));
6131
6703
  },
6704
+ /**
6705
+ *
6706
+ * @param {string} id
6707
+ * @param {*} [options] Override http request option.
6708
+ * @throws {RequiredError}
6709
+ */
6710
+ businessStaffControllerDeleteStaff(id: string, options?: RawAxiosRequestConfig): AxiosPromise<BusinessStaffDeleteResponseDTO> {
6711
+ return localVarFp.businessStaffControllerDeleteStaff(id, options).then((request) => request(axios, basePath));
6712
+ },
6713
+ /**
6714
+ *
6715
+ * @param {string} id
6716
+ * @param {*} [options] Override http request option.
6717
+ * @throws {RequiredError}
6718
+ */
6719
+ businessStaffControllerFindBusinessStaff(id: string, options?: RawAxiosRequestConfig): AxiosPromise<BusinessStaffResponseDTO> {
6720
+ return localVarFp.businessStaffControllerFindBusinessStaff(id, options).then((request) => request(axios, basePath));
6721
+ },
6722
+ /**
6723
+ *
6724
+ * @param {number} page
6725
+ * @param {number} pageSize
6726
+ * @param {string} [search]
6727
+ * @param {*} [options] Override http request option.
6728
+ * @throws {RequiredError}
6729
+ */
6730
+ businessStaffControllerFindBusinessStaffs(page: number, pageSize: number, search?: string, options?: RawAxiosRequestConfig): AxiosPromise<BusinessStaffsResponseDTO> {
6731
+ return localVarFp.businessStaffControllerFindBusinessStaffs(page, pageSize, search, options).then((request) => request(axios, basePath));
6732
+ },
6733
+ /**
6734
+ *
6735
+ * @param {BusinessStaffDTO} businessStaffDTO
6736
+ * @param {*} [options] Override http request option.
6737
+ * @throws {RequiredError}
6738
+ */
6739
+ businessStaffControllerSaveBusinessStaff(businessStaffDTO: BusinessStaffDTO, options?: RawAxiosRequestConfig): AxiosPromise<BusinessStaffResponseDTO> {
6740
+ return localVarFp.businessStaffControllerSaveBusinessStaff(businessStaffDTO, options).then((request) => request(axios, basePath));
6741
+ },
6742
+ /**
6743
+ *
6744
+ * @param {string} id
6745
+ * @param {BusinessStaffDTO} businessStaffDTO
6746
+ * @param {*} [options] Override http request option.
6747
+ * @throws {RequiredError}
6748
+ */
6749
+ businessStaffControllerUpdateStaff(id: string, businessStaffDTO: BusinessStaffDTO, options?: RawAxiosRequestConfig): AxiosPromise<BusinessStaffResponseDTO> {
6750
+ return localVarFp.businessStaffControllerUpdateStaff(id, businessStaffDTO, options).then((request) => request(axios, basePath));
6751
+ },
6132
6752
  /**
6133
6753
  *
6134
6754
  * @param {GetBusinessVenueDto} getBusinessVenueDto
@@ -6241,6 +6861,64 @@ export class BusinessApi extends BaseAPI {
6241
6861
  return BusinessApiFp(this.configuration).businessControllerListBusinesses(options).then((request) => request(this.axios, this.basePath));
6242
6862
  }
6243
6863
 
6864
+ /**
6865
+ *
6866
+ * @param {string} id
6867
+ * @param {*} [options] Override http request option.
6868
+ * @throws {RequiredError}
6869
+ * @memberof BusinessApi
6870
+ */
6871
+ public businessStaffControllerDeleteStaff(id: string, options?: RawAxiosRequestConfig) {
6872
+ return BusinessApiFp(this.configuration).businessStaffControllerDeleteStaff(id, options).then((request) => request(this.axios, this.basePath));
6873
+ }
6874
+
6875
+ /**
6876
+ *
6877
+ * @param {string} id
6878
+ * @param {*} [options] Override http request option.
6879
+ * @throws {RequiredError}
6880
+ * @memberof BusinessApi
6881
+ */
6882
+ public businessStaffControllerFindBusinessStaff(id: string, options?: RawAxiosRequestConfig) {
6883
+ return BusinessApiFp(this.configuration).businessStaffControllerFindBusinessStaff(id, options).then((request) => request(this.axios, this.basePath));
6884
+ }
6885
+
6886
+ /**
6887
+ *
6888
+ * @param {number} page
6889
+ * @param {number} pageSize
6890
+ * @param {string} [search]
6891
+ * @param {*} [options] Override http request option.
6892
+ * @throws {RequiredError}
6893
+ * @memberof BusinessApi
6894
+ */
6895
+ public businessStaffControllerFindBusinessStaffs(page: number, pageSize: number, search?: string, options?: RawAxiosRequestConfig) {
6896
+ return BusinessApiFp(this.configuration).businessStaffControllerFindBusinessStaffs(page, pageSize, search, options).then((request) => request(this.axios, this.basePath));
6897
+ }
6898
+
6899
+ /**
6900
+ *
6901
+ * @param {BusinessStaffDTO} businessStaffDTO
6902
+ * @param {*} [options] Override http request option.
6903
+ * @throws {RequiredError}
6904
+ * @memberof BusinessApi
6905
+ */
6906
+ public businessStaffControllerSaveBusinessStaff(businessStaffDTO: BusinessStaffDTO, options?: RawAxiosRequestConfig) {
6907
+ return BusinessApiFp(this.configuration).businessStaffControllerSaveBusinessStaff(businessStaffDTO, options).then((request) => request(this.axios, this.basePath));
6908
+ }
6909
+
6910
+ /**
6911
+ *
6912
+ * @param {string} id
6913
+ * @param {BusinessStaffDTO} businessStaffDTO
6914
+ * @param {*} [options] Override http request option.
6915
+ * @throws {RequiredError}
6916
+ * @memberof BusinessApi
6917
+ */
6918
+ public businessStaffControllerUpdateStaff(id: string, businessStaffDTO: BusinessStaffDTO, options?: RawAxiosRequestConfig) {
6919
+ return BusinessApiFp(this.configuration).businessStaffControllerUpdateStaff(id, businessStaffDTO, options).then((request) => request(this.axios, this.basePath));
6920
+ }
6921
+
6244
6922
  /**
6245
6923
  *
6246
6924
  * @param {GetBusinessVenueDto} getBusinessVenueDto
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooday_corp/gooday-api-client",
3
- "version": "1.2.19",
3
+ "version": "1.2.21",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},