@gooday_corp/gooday-api-client 1.0.17-alpha → 1.0.17-delta

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 +839 -20
  2. package/package.json +1 -1
package/api.ts CHANGED
@@ -147,6 +147,297 @@ export interface AttributesDto {
147
147
  */
148
148
  'dislikes': Array<string>;
149
149
  }
150
+ /**
151
+ *
152
+ * @export
153
+ * @interface BusinessEntity
154
+ */
155
+ export interface BusinessEntity {
156
+ /**
157
+ * Unique identifier for the Business
158
+ * @type {string}
159
+ * @memberof BusinessEntity
160
+ */
161
+ '_id': string;
162
+ /**
163
+ * Business Timing
164
+ * @type {Array<BusinessTiming>}
165
+ * @memberof BusinessEntity
166
+ */
167
+ 'timing'?: Array<BusinessTiming>;
168
+ /**
169
+ * Business policies
170
+ * @type {string}
171
+ * @memberof BusinessEntity
172
+ */
173
+ 'policies'?: string;
174
+ /**
175
+ * Business cancellationFree
176
+ * @type {number}
177
+ * @memberof BusinessEntity
178
+ */
179
+ 'cancellationFree'?: number;
180
+ /**
181
+ * Business ID
182
+ * @type {string}
183
+ * @memberof BusinessEntity
184
+ */
185
+ 'businessID'?: string;
186
+ /**
187
+ * Business Country
188
+ * @type {string}
189
+ * @memberof BusinessEntity
190
+ */
191
+ 'businessCountry'?: string;
192
+ /**
193
+ * Business Type
194
+ * @type {string}
195
+ * @memberof BusinessEntity
196
+ */
197
+ 'businessType'?: string;
198
+ /**
199
+ * Business Category
200
+ * @type {Array<string>}
201
+ * @memberof BusinessEntity
202
+ */
203
+ 'businessCategory'?: Array<string>;
204
+ /**
205
+ * Business Employee
206
+ * @type {string}
207
+ * @memberof BusinessEntity
208
+ */
209
+ 'numberOfEmployees'?: string;
210
+ /**
211
+ * Business Type
212
+ * @type {string}
213
+ * @memberof BusinessEntity
214
+ */
215
+ 'priceRange'?: string;
216
+ }
217
+ /**
218
+ *
219
+ * @export
220
+ * @interface BusinessOnBoardingDTO
221
+ */
222
+ export interface BusinessOnBoardingDTO {
223
+ /**
224
+ * Business Timing
225
+ * @type {Array<BusinessTiming>}
226
+ * @memberof BusinessOnBoardingDTO
227
+ */
228
+ 'timing'?: Array<BusinessTiming>;
229
+ /**
230
+ * Business policies
231
+ * @type {string}
232
+ * @memberof BusinessOnBoardingDTO
233
+ */
234
+ 'policies'?: string;
235
+ /**
236
+ * Business cancellationFree
237
+ * @type {number}
238
+ * @memberof BusinessOnBoardingDTO
239
+ */
240
+ 'cancellationFree'?: number;
241
+ /**
242
+ * Business ID
243
+ * @type {string}
244
+ * @memberof BusinessOnBoardingDTO
245
+ */
246
+ 'businessID'?: string;
247
+ /**
248
+ * Business Country
249
+ * @type {string}
250
+ * @memberof BusinessOnBoardingDTO
251
+ */
252
+ 'businessCountry'?: string;
253
+ /**
254
+ * Business Type
255
+ * @type {string}
256
+ * @memberof BusinessOnBoardingDTO
257
+ */
258
+ 'businessType'?: string;
259
+ /**
260
+ * Business Category
261
+ * @type {Array<string>}
262
+ * @memberof BusinessOnBoardingDTO
263
+ */
264
+ 'businessCategory'?: Array<string>;
265
+ /**
266
+ * Business Employee
267
+ * @type {string}
268
+ * @memberof BusinessOnBoardingDTO
269
+ */
270
+ 'numberOfEmployees'?: string;
271
+ /**
272
+ * Assistant ID
273
+ * @type {string}
274
+ * @memberof BusinessOnBoardingDTO
275
+ */
276
+ 'assistant'?: string;
277
+ /**
278
+ * Business Type
279
+ * @type {string}
280
+ * @memberof BusinessOnBoardingDTO
281
+ */
282
+ 'priceRange'?: string;
283
+ /**
284
+ * Business Active
285
+ * @type {boolean}
286
+ * @memberof BusinessOnBoardingDTO
287
+ */
288
+ 'isActive'?: boolean;
289
+ /**
290
+ * Business Account Confirmation
291
+ * @type {boolean}
292
+ * @memberof BusinessOnBoardingDTO
293
+ */
294
+ 'accountConfirmation'?: boolean;
295
+ }
296
+ /**
297
+ *
298
+ * @export
299
+ * @interface BusinessOnBoardingResponseDTO
300
+ */
301
+ export interface BusinessOnBoardingResponseDTO {
302
+ /**
303
+ * statusCode
304
+ * @type {number}
305
+ * @memberof BusinessOnBoardingResponseDTO
306
+ */
307
+ 'statusCode': number;
308
+ /**
309
+ * User
310
+ * @type {BusinessEntity}
311
+ * @memberof BusinessOnBoardingResponseDTO
312
+ */
313
+ 'data': BusinessEntity;
314
+ }
315
+ /**
316
+ *
317
+ * @export
318
+ * @interface BusinessTime
319
+ */
320
+ export interface BusinessTime {
321
+ /**
322
+ * Business open time
323
+ * @type {string}
324
+ * @memberof BusinessTime
325
+ */
326
+ 'openAt': string;
327
+ /**
328
+ * Business close time
329
+ * @type {string}
330
+ * @memberof BusinessTime
331
+ */
332
+ 'closeAt': string;
333
+ }
334
+ /**
335
+ *
336
+ * @export
337
+ * @interface BusinessTiming
338
+ */
339
+ export interface BusinessTiming {
340
+ /**
341
+ *
342
+ * @type {Array<BusinessTime>}
343
+ * @memberof BusinessTiming
344
+ */
345
+ 'time'?: Array<BusinessTime>;
346
+ /**
347
+ * Day name
348
+ * @type {string}
349
+ * @memberof BusinessTiming
350
+ */
351
+ 'day': string;
352
+ /**
353
+ * Business close flag
354
+ * @type {boolean}
355
+ * @memberof BusinessTiming
356
+ */
357
+ 'isClose': boolean;
358
+ }
359
+ /**
360
+ *
361
+ * @export
362
+ * @interface BusinessTypeEntity
363
+ */
364
+ export interface BusinessTypeEntity {
365
+ /**
366
+ * Unique identifier for the business type
367
+ * @type {string}
368
+ * @memberof BusinessTypeEntity
369
+ */
370
+ '_id': string;
371
+ /**
372
+ * name of the business type
373
+ * @type {string}
374
+ * @memberof BusinessTypeEntity
375
+ */
376
+ 'name': string;
377
+ }
378
+ /**
379
+ *
380
+ * @export
381
+ * @interface BusinessTypeListResponse
382
+ */
383
+ export interface BusinessTypeListResponse {
384
+ /**
385
+ * statusCode
386
+ * @type {number}
387
+ * @memberof BusinessTypeListResponse
388
+ */
389
+ 'statusCode': number;
390
+ /**
391
+ * businessTypes
392
+ * @type {Array<BusinessTypeEntity>}
393
+ * @memberof BusinessTypeListResponse
394
+ */
395
+ 'data': Array<BusinessTypeEntity>;
396
+ }
397
+ /**
398
+ *
399
+ * @export
400
+ * @interface CategoryEntity
401
+ */
402
+ export interface CategoryEntity {
403
+ /**
404
+ * Unique identifier for the category
405
+ * @type {string}
406
+ * @memberof CategoryEntity
407
+ */
408
+ '_id': string;
409
+ /**
410
+ * name of the category
411
+ * @type {string}
412
+ * @memberof CategoryEntity
413
+ */
414
+ 'name': string;
415
+ /**
416
+ * Unique identifier or reference of the business Type
417
+ * @type {string}
418
+ * @memberof CategoryEntity
419
+ */
420
+ 'businessTypeId': string;
421
+ }
422
+ /**
423
+ *
424
+ * @export
425
+ * @interface CategoryListResponse
426
+ */
427
+ export interface CategoryListResponse {
428
+ /**
429
+ * statusCode
430
+ * @type {number}
431
+ * @memberof CategoryListResponse
432
+ */
433
+ 'statusCode': number;
434
+ /**
435
+ * Categories
436
+ * @type {Array<CategoryEntity>}
437
+ * @memberof CategoryListResponse
438
+ */
439
+ 'data': Array<CategoryEntity>;
440
+ }
150
441
  /**
151
442
  *
152
443
  * @export
@@ -203,6 +494,50 @@ export interface DeviceEntity {
203
494
  */
204
495
  'status': string;
205
496
  }
497
+ /**
498
+ *
499
+ * @export
500
+ * @interface EmployeesSizeEntity
501
+ */
502
+ export interface EmployeesSizeEntity {
503
+ /**
504
+ * Unique identifier for the employee size
505
+ * @type {string}
506
+ * @memberof EmployeesSizeEntity
507
+ */
508
+ 'id': string;
509
+ /**
510
+ * Title of the employee size
511
+ * @type {string}
512
+ * @memberof EmployeesSizeEntity
513
+ */
514
+ 'title': string;
515
+ /**
516
+ * Value of the employee size
517
+ * @type {string}
518
+ * @memberof EmployeesSizeEntity
519
+ */
520
+ 'value': string;
521
+ }
522
+ /**
523
+ *
524
+ * @export
525
+ * @interface EmployeesSizeListResponse
526
+ */
527
+ export interface EmployeesSizeListResponse {
528
+ /**
529
+ * statusCode
530
+ * @type {number}
531
+ * @memberof EmployeesSizeListResponse
532
+ */
533
+ 'statusCode': number;
534
+ /**
535
+ * Employees Size
536
+ * @type {Array<EmployeesSizeEntity>}
537
+ * @memberof EmployeesSizeListResponse
538
+ */
539
+ 'data': Array<EmployeesSizeEntity>;
540
+ }
206
541
  /**
207
542
  *
208
543
  * @export
@@ -591,6 +926,50 @@ export const PriceEntityIntervalEnum = {
591
926
 
592
927
  export type PriceEntityIntervalEnum = typeof PriceEntityIntervalEnum[keyof typeof PriceEntityIntervalEnum];
593
928
 
929
+ /**
930
+ *
931
+ * @export
932
+ * @interface PriceRangeEntity
933
+ */
934
+ export interface PriceRangeEntity {
935
+ /**
936
+ * Unique identifier for the price range
937
+ * @type {string}
938
+ * @memberof PriceRangeEntity
939
+ */
940
+ 'id': string;
941
+ /**
942
+ * Title of the price range
943
+ * @type {string}
944
+ * @memberof PriceRangeEntity
945
+ */
946
+ 'title': string;
947
+ /**
948
+ * Value of the price range
949
+ * @type {string}
950
+ * @memberof PriceRangeEntity
951
+ */
952
+ 'value': string;
953
+ }
954
+ /**
955
+ *
956
+ * @export
957
+ * @interface PriceRangeListResponse
958
+ */
959
+ export interface PriceRangeListResponse {
960
+ /**
961
+ * statusCode
962
+ * @type {number}
963
+ * @memberof PriceRangeListResponse
964
+ */
965
+ 'statusCode': number;
966
+ /**
967
+ * Price Range
968
+ * @type {Array<PriceRangeEntity>}
969
+ * @memberof PriceRangeListResponse
970
+ */
971
+ 'data': Array<PriceRangeEntity>;
972
+ }
594
973
  /**
595
974
  *
596
975
  * @export
@@ -864,7 +1243,7 @@ export interface UserEntity {
864
1243
  * @type {string}
865
1244
  * @memberof UserEntity
866
1245
  */
867
- 'role': string;
1246
+ 'role': UserEntityRoleEnum;
868
1247
  /**
869
1248
  * Goals why user is using the product
870
1249
  * @type {Array<string>}
@@ -882,8 +1261,16 @@ export interface UserEntity {
882
1261
  * @type {Array<string>}
883
1262
  * @memberof UserEntity
884
1263
  */
885
- 'pendingAction': Array<string>;
1264
+ 'pendingAction'?: Array<string>;
886
1265
  }
1266
+
1267
+ export const UserEntityRoleEnum = {
1268
+ BusinessOwner: 'business_owner',
1269
+ User: 'user'
1270
+ } as const;
1271
+
1272
+ export type UserEntityRoleEnum = typeof UserEntityRoleEnum[keyof typeof UserEntityRoleEnum];
1273
+
887
1274
  /**
888
1275
  *
889
1276
  * @export
@@ -924,8 +1311,8 @@ export interface UserPlanDTO {
924
1311
  }
925
1312
 
926
1313
  export const UserPlanDTONameEnum = {
927
- Free: 'free',
928
- Pro: 'pro'
1314
+ Free: 'Free',
1315
+ Pro: 'Pro'
929
1316
  } as const;
930
1317
 
931
1318
  export type UserPlanDTONameEnum = typeof UserPlanDTONameEnum[keyof typeof UserPlanDTONameEnum];
@@ -1136,14 +1523,14 @@ export const AuthApiAxiosParamCreator = function (configuration?: Configuration)
1136
1523
  return {
1137
1524
  /**
1138
1525
  *
1139
- * @param {NewPasswordPayloadDTO} newPasswordPayloadDTO
1526
+ * @param {SignupDto} signupDto
1140
1527
  * @param {*} [options] Override http request option.
1141
1528
  * @throws {RequiredError}
1142
1529
  */
1143
- authControllerCreateNewPassword: async (newPasswordPayloadDTO: NewPasswordPayloadDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1144
- // verify required parameter 'newPasswordPayloadDTO' is not null or undefined
1145
- assertParamExists('authControllerCreateNewPassword', 'newPasswordPayloadDTO', newPasswordPayloadDTO)
1146
- const localVarPath = `/v1/auth/new-password`;
1530
+ authControllerBusinessRegister: async (signupDto: SignupDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1531
+ // verify required parameter 'signupDto' is not null or undefined
1532
+ assertParamExists('authControllerBusinessRegister', 'signupDto', signupDto)
1533
+ const localVarPath = `/v1/auth/business-register`;
1147
1534
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1148
1535
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1149
1536
  let baseOptions;
@@ -1162,7 +1549,7 @@ export const AuthApiAxiosParamCreator = function (configuration?: Configuration)
1162
1549
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1163
1550
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1164
1551
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1165
- localVarRequestOptions.data = serializeDataIfNeeded(newPasswordPayloadDTO, localVarRequestOptions, configuration)
1552
+ localVarRequestOptions.data = serializeDataIfNeeded(signupDto, localVarRequestOptions, configuration)
1166
1553
 
1167
1554
  return {
1168
1555
  url: toPathString(localVarUrlObj),
@@ -1171,14 +1558,14 @@ export const AuthApiAxiosParamCreator = function (configuration?: Configuration)
1171
1558
  },
1172
1559
  /**
1173
1560
  *
1174
- * @param {ForgotPasswordPayloadDTO} forgotPasswordPayloadDTO
1561
+ * @param {NewPasswordPayloadDTO} newPasswordPayloadDTO
1175
1562
  * @param {*} [options] Override http request option.
1176
1563
  * @throws {RequiredError}
1177
1564
  */
1178
- authControllerForgotPassword: async (forgotPasswordPayloadDTO: ForgotPasswordPayloadDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1179
- // verify required parameter 'forgotPasswordPayloadDTO' is not null or undefined
1180
- assertParamExists('authControllerForgotPassword', 'forgotPasswordPayloadDTO', forgotPasswordPayloadDTO)
1181
- const localVarPath = `/v1/auth/forgot-password`;
1565
+ authControllerCreateNewPassword: async (newPasswordPayloadDTO: NewPasswordPayloadDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1566
+ // verify required parameter 'newPasswordPayloadDTO' is not null or undefined
1567
+ assertParamExists('authControllerCreateNewPassword', 'newPasswordPayloadDTO', newPasswordPayloadDTO)
1568
+ const localVarPath = `/v1/auth/new-password`;
1182
1569
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1183
1570
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1184
1571
  let baseOptions;
@@ -1197,7 +1584,7 @@ export const AuthApiAxiosParamCreator = function (configuration?: Configuration)
1197
1584
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1198
1585
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1199
1586
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1200
- localVarRequestOptions.data = serializeDataIfNeeded(forgotPasswordPayloadDTO, localVarRequestOptions, configuration)
1587
+ localVarRequestOptions.data = serializeDataIfNeeded(newPasswordPayloadDTO, localVarRequestOptions, configuration)
1201
1588
 
1202
1589
  return {
1203
1590
  url: toPathString(localVarUrlObj),
@@ -1210,10 +1597,10 @@ export const AuthApiAxiosParamCreator = function (configuration?: Configuration)
1210
1597
  * @param {*} [options] Override http request option.
1211
1598
  * @throws {RequiredError}
1212
1599
  */
1213
- authControllerResentOTP: async (forgotPasswordPayloadDTO: ForgotPasswordPayloadDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1600
+ authControllerForgotPassword: async (forgotPasswordPayloadDTO: ForgotPasswordPayloadDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1214
1601
  // verify required parameter 'forgotPasswordPayloadDTO' is not null or undefined
1215
- assertParamExists('authControllerResentOTP', 'forgotPasswordPayloadDTO', forgotPasswordPayloadDTO)
1216
- const localVarPath = `/v1/auth/resend-otp`;
1602
+ assertParamExists('authControllerForgotPassword', 'forgotPasswordPayloadDTO', forgotPasswordPayloadDTO)
1603
+ const localVarPath = `/v1/auth/forgot-password`;
1217
1604
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1218
1605
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1219
1606
  let baseOptions;
@@ -1241,7 +1628,42 @@ export const AuthApiAxiosParamCreator = function (configuration?: Configuration)
1241
1628
  },
1242
1629
  /**
1243
1630
  *
1244
- * @param {ResetPasswordPayloadDTO} resetPasswordPayloadDTO
1631
+ * @param {ForgotPasswordPayloadDTO} forgotPasswordPayloadDTO
1632
+ * @param {*} [options] Override http request option.
1633
+ * @throws {RequiredError}
1634
+ */
1635
+ authControllerResentOTP: async (forgotPasswordPayloadDTO: ForgotPasswordPayloadDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1636
+ // verify required parameter 'forgotPasswordPayloadDTO' is not null or undefined
1637
+ assertParamExists('authControllerResentOTP', 'forgotPasswordPayloadDTO', forgotPasswordPayloadDTO)
1638
+ const localVarPath = `/v1/auth/resend-otp`;
1639
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1640
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1641
+ let baseOptions;
1642
+ if (configuration) {
1643
+ baseOptions = configuration.baseOptions;
1644
+ }
1645
+
1646
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1647
+ const localVarHeaderParameter = {} as any;
1648
+ const localVarQueryParameter = {} as any;
1649
+
1650
+
1651
+
1652
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1653
+
1654
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1655
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1656
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1657
+ localVarRequestOptions.data = serializeDataIfNeeded(forgotPasswordPayloadDTO, localVarRequestOptions, configuration)
1658
+
1659
+ return {
1660
+ url: toPathString(localVarUrlObj),
1661
+ options: localVarRequestOptions,
1662
+ };
1663
+ },
1664
+ /**
1665
+ *
1666
+ * @param {ResetPasswordPayloadDTO} resetPasswordPayloadDTO
1245
1667
  * @param {*} [options] Override http request option.
1246
1668
  * @throws {RequiredError}
1247
1669
  */
@@ -1432,6 +1854,18 @@ export const AuthApiAxiosParamCreator = function (configuration?: Configuration)
1432
1854
  export const AuthApiFp = function(configuration?: Configuration) {
1433
1855
  const localVarAxiosParamCreator = AuthApiAxiosParamCreator(configuration)
1434
1856
  return {
1857
+ /**
1858
+ *
1859
+ * @param {SignupDto} signupDto
1860
+ * @param {*} [options] Override http request option.
1861
+ * @throws {RequiredError}
1862
+ */
1863
+ async authControllerBusinessRegister(signupDto: SignupDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SignupResponseDto>> {
1864
+ const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerBusinessRegister(signupDto, options);
1865
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1866
+ const localVarOperationServerBasePath = operationServerMap['AuthApi.authControllerBusinessRegister']?.[localVarOperationServerIndex]?.url;
1867
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1868
+ },
1435
1869
  /**
1436
1870
  *
1437
1871
  * @param {NewPasswordPayloadDTO} newPasswordPayloadDTO
@@ -1538,6 +1972,15 @@ export const AuthApiFp = function(configuration?: Configuration) {
1538
1972
  export const AuthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1539
1973
  const localVarFp = AuthApiFp(configuration)
1540
1974
  return {
1975
+ /**
1976
+ *
1977
+ * @param {SignupDto} signupDto
1978
+ * @param {*} [options] Override http request option.
1979
+ * @throws {RequiredError}
1980
+ */
1981
+ authControllerBusinessRegister(signupDto: SignupDto, options?: RawAxiosRequestConfig): AxiosPromise<SignupResponseDto> {
1982
+ return localVarFp.authControllerBusinessRegister(signupDto, options).then((request) => request(axios, basePath));
1983
+ },
1541
1984
  /**
1542
1985
  *
1543
1986
  * @param {NewPasswordPayloadDTO} newPasswordPayloadDTO
@@ -1620,6 +2063,17 @@ export const AuthApiFactory = function (configuration?: Configuration, basePath?
1620
2063
  * @extends {BaseAPI}
1621
2064
  */
1622
2065
  export class AuthApi extends BaseAPI {
2066
+ /**
2067
+ *
2068
+ * @param {SignupDto} signupDto
2069
+ * @param {*} [options] Override http request option.
2070
+ * @throws {RequiredError}
2071
+ * @memberof AuthApi
2072
+ */
2073
+ public authControllerBusinessRegister(signupDto: SignupDto, options?: RawAxiosRequestConfig) {
2074
+ return AuthApiFp(this.configuration).authControllerBusinessRegister(signupDto, options).then((request) => request(this.axios, this.basePath));
2075
+ }
2076
+
1623
2077
  /**
1624
2078
  *
1625
2079
  * @param {NewPasswordPayloadDTO} newPasswordPayloadDTO
@@ -1711,6 +2165,371 @@ export class AuthApi extends BaseAPI {
1711
2165
 
1712
2166
 
1713
2167
 
2168
+ /**
2169
+ * BusinessApi - axios parameter creator
2170
+ * @export
2171
+ */
2172
+ export const BusinessApiAxiosParamCreator = function (configuration?: Configuration) {
2173
+ return {
2174
+ /**
2175
+ *
2176
+ * @param {BusinessOnBoardingDTO} businessOnBoardingDTO
2177
+ * @param {*} [options] Override http request option.
2178
+ * @throws {RequiredError}
2179
+ */
2180
+ businessControllerBusinessOnboarding: async (businessOnBoardingDTO: BusinessOnBoardingDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2181
+ // verify required parameter 'businessOnBoardingDTO' is not null or undefined
2182
+ assertParamExists('businessControllerBusinessOnboarding', 'businessOnBoardingDTO', businessOnBoardingDTO)
2183
+ const localVarPath = `/v1/business/onboarding`;
2184
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2185
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2186
+ let baseOptions;
2187
+ if (configuration) {
2188
+ baseOptions = configuration.baseOptions;
2189
+ }
2190
+
2191
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
2192
+ const localVarHeaderParameter = {} as any;
2193
+ const localVarQueryParameter = {} as any;
2194
+
2195
+ // authentication bearer required
2196
+ // http bearer authentication required
2197
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
2198
+
2199
+
2200
+
2201
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2202
+
2203
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2204
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2205
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2206
+ localVarRequestOptions.data = serializeDataIfNeeded(businessOnBoardingDTO, localVarRequestOptions, configuration)
2207
+
2208
+ return {
2209
+ url: toPathString(localVarUrlObj),
2210
+ options: localVarRequestOptions,
2211
+ };
2212
+ },
2213
+ /**
2214
+ *
2215
+ * @param {*} [options] Override http request option.
2216
+ * @throws {RequiredError}
2217
+ */
2218
+ businessTypeControllerListBusinessType: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2219
+ const localVarPath = `/v1/business/list`;
2220
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2221
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2222
+ let baseOptions;
2223
+ if (configuration) {
2224
+ baseOptions = configuration.baseOptions;
2225
+ }
2226
+
2227
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
2228
+ const localVarHeaderParameter = {} as any;
2229
+ const localVarQueryParameter = {} as any;
2230
+
2231
+ // authentication bearer required
2232
+ // http bearer authentication required
2233
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
2234
+
2235
+
2236
+
2237
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2238
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2239
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2240
+
2241
+ return {
2242
+ url: toPathString(localVarUrlObj),
2243
+ options: localVarRequestOptions,
2244
+ };
2245
+ },
2246
+ /**
2247
+ *
2248
+ * @param {string} businessType
2249
+ * @param {*} [options] Override http request option.
2250
+ * @throws {RequiredError}
2251
+ */
2252
+ businessTypeControllerListCategories: async (businessType: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2253
+ // verify required parameter 'businessType' is not null or undefined
2254
+ assertParamExists('businessTypeControllerListCategories', 'businessType', businessType)
2255
+ const localVarPath = `/v1/business/{businessType}/categories`
2256
+ .replace(`{${"businessType"}}`, encodeURIComponent(String(businessType)));
2257
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2258
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2259
+ let baseOptions;
2260
+ if (configuration) {
2261
+ baseOptions = configuration.baseOptions;
2262
+ }
2263
+
2264
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
2265
+ const localVarHeaderParameter = {} as any;
2266
+ const localVarQueryParameter = {} as any;
2267
+
2268
+ // authentication bearer required
2269
+ // http bearer authentication required
2270
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
2271
+
2272
+
2273
+
2274
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2275
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2276
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2277
+
2278
+ return {
2279
+ url: toPathString(localVarUrlObj),
2280
+ options: localVarRequestOptions,
2281
+ };
2282
+ },
2283
+ /**
2284
+ *
2285
+ * @param {*} [options] Override http request option.
2286
+ * @throws {RequiredError}
2287
+ */
2288
+ businessTypeControllerListEmployeesSize: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2289
+ const localVarPath = `/v1/business/employee-size`;
2290
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2291
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2292
+ let baseOptions;
2293
+ if (configuration) {
2294
+ baseOptions = configuration.baseOptions;
2295
+ }
2296
+
2297
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
2298
+ const localVarHeaderParameter = {} as any;
2299
+ const localVarQueryParameter = {} as any;
2300
+
2301
+ // authentication bearer required
2302
+ // http bearer authentication required
2303
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
2304
+
2305
+
2306
+
2307
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2308
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2309
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2310
+
2311
+ return {
2312
+ url: toPathString(localVarUrlObj),
2313
+ options: localVarRequestOptions,
2314
+ };
2315
+ },
2316
+ /**
2317
+ *
2318
+ * @param {*} [options] Override http request option.
2319
+ * @throws {RequiredError}
2320
+ */
2321
+ businessTypeControllerListPriceRange: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2322
+ const localVarPath = `/v1/business/price-range`;
2323
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2324
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2325
+ let baseOptions;
2326
+ if (configuration) {
2327
+ baseOptions = configuration.baseOptions;
2328
+ }
2329
+
2330
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
2331
+ const localVarHeaderParameter = {} as any;
2332
+ const localVarQueryParameter = {} as any;
2333
+
2334
+ // authentication bearer required
2335
+ // http bearer authentication required
2336
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
2337
+
2338
+
2339
+
2340
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2341
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2342
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2343
+
2344
+ return {
2345
+ url: toPathString(localVarUrlObj),
2346
+ options: localVarRequestOptions,
2347
+ };
2348
+ },
2349
+ }
2350
+ };
2351
+
2352
+ /**
2353
+ * BusinessApi - functional programming interface
2354
+ * @export
2355
+ */
2356
+ export const BusinessApiFp = function(configuration?: Configuration) {
2357
+ const localVarAxiosParamCreator = BusinessApiAxiosParamCreator(configuration)
2358
+ return {
2359
+ /**
2360
+ *
2361
+ * @param {BusinessOnBoardingDTO} businessOnBoardingDTO
2362
+ * @param {*} [options] Override http request option.
2363
+ * @throws {RequiredError}
2364
+ */
2365
+ async businessControllerBusinessOnboarding(businessOnBoardingDTO: BusinessOnBoardingDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BusinessOnBoardingResponseDTO>> {
2366
+ const localVarAxiosArgs = await localVarAxiosParamCreator.businessControllerBusinessOnboarding(businessOnBoardingDTO, options);
2367
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2368
+ const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessControllerBusinessOnboarding']?.[localVarOperationServerIndex]?.url;
2369
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2370
+ },
2371
+ /**
2372
+ *
2373
+ * @param {*} [options] Override http request option.
2374
+ * @throws {RequiredError}
2375
+ */
2376
+ async businessTypeControllerListBusinessType(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BusinessTypeListResponse>> {
2377
+ const localVarAxiosArgs = await localVarAxiosParamCreator.businessTypeControllerListBusinessType(options);
2378
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2379
+ const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessTypeControllerListBusinessType']?.[localVarOperationServerIndex]?.url;
2380
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2381
+ },
2382
+ /**
2383
+ *
2384
+ * @param {string} businessType
2385
+ * @param {*} [options] Override http request option.
2386
+ * @throws {RequiredError}
2387
+ */
2388
+ async businessTypeControllerListCategories(businessType: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CategoryListResponse>> {
2389
+ const localVarAxiosArgs = await localVarAxiosParamCreator.businessTypeControllerListCategories(businessType, options);
2390
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2391
+ const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessTypeControllerListCategories']?.[localVarOperationServerIndex]?.url;
2392
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2393
+ },
2394
+ /**
2395
+ *
2396
+ * @param {*} [options] Override http request option.
2397
+ * @throws {RequiredError}
2398
+ */
2399
+ async businessTypeControllerListEmployeesSize(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EmployeesSizeListResponse>> {
2400
+ const localVarAxiosArgs = await localVarAxiosParamCreator.businessTypeControllerListEmployeesSize(options);
2401
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2402
+ const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessTypeControllerListEmployeesSize']?.[localVarOperationServerIndex]?.url;
2403
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2404
+ },
2405
+ /**
2406
+ *
2407
+ * @param {*} [options] Override http request option.
2408
+ * @throws {RequiredError}
2409
+ */
2410
+ async businessTypeControllerListPriceRange(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PriceRangeListResponse>> {
2411
+ const localVarAxiosArgs = await localVarAxiosParamCreator.businessTypeControllerListPriceRange(options);
2412
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2413
+ const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessTypeControllerListPriceRange']?.[localVarOperationServerIndex]?.url;
2414
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2415
+ },
2416
+ }
2417
+ };
2418
+
2419
+ /**
2420
+ * BusinessApi - factory interface
2421
+ * @export
2422
+ */
2423
+ export const BusinessApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
2424
+ const localVarFp = BusinessApiFp(configuration)
2425
+ return {
2426
+ /**
2427
+ *
2428
+ * @param {BusinessOnBoardingDTO} businessOnBoardingDTO
2429
+ * @param {*} [options] Override http request option.
2430
+ * @throws {RequiredError}
2431
+ */
2432
+ businessControllerBusinessOnboarding(businessOnBoardingDTO: BusinessOnBoardingDTO, options?: RawAxiosRequestConfig): AxiosPromise<BusinessOnBoardingResponseDTO> {
2433
+ return localVarFp.businessControllerBusinessOnboarding(businessOnBoardingDTO, options).then((request) => request(axios, basePath));
2434
+ },
2435
+ /**
2436
+ *
2437
+ * @param {*} [options] Override http request option.
2438
+ * @throws {RequiredError}
2439
+ */
2440
+ businessTypeControllerListBusinessType(options?: RawAxiosRequestConfig): AxiosPromise<BusinessTypeListResponse> {
2441
+ return localVarFp.businessTypeControllerListBusinessType(options).then((request) => request(axios, basePath));
2442
+ },
2443
+ /**
2444
+ *
2445
+ * @param {string} businessType
2446
+ * @param {*} [options] Override http request option.
2447
+ * @throws {RequiredError}
2448
+ */
2449
+ businessTypeControllerListCategories(businessType: string, options?: RawAxiosRequestConfig): AxiosPromise<CategoryListResponse> {
2450
+ return localVarFp.businessTypeControllerListCategories(businessType, options).then((request) => request(axios, basePath));
2451
+ },
2452
+ /**
2453
+ *
2454
+ * @param {*} [options] Override http request option.
2455
+ * @throws {RequiredError}
2456
+ */
2457
+ businessTypeControllerListEmployeesSize(options?: RawAxiosRequestConfig): AxiosPromise<EmployeesSizeListResponse> {
2458
+ return localVarFp.businessTypeControllerListEmployeesSize(options).then((request) => request(axios, basePath));
2459
+ },
2460
+ /**
2461
+ *
2462
+ * @param {*} [options] Override http request option.
2463
+ * @throws {RequiredError}
2464
+ */
2465
+ businessTypeControllerListPriceRange(options?: RawAxiosRequestConfig): AxiosPromise<PriceRangeListResponse> {
2466
+ return localVarFp.businessTypeControllerListPriceRange(options).then((request) => request(axios, basePath));
2467
+ },
2468
+ };
2469
+ };
2470
+
2471
+ /**
2472
+ * BusinessApi - object-oriented interface
2473
+ * @export
2474
+ * @class BusinessApi
2475
+ * @extends {BaseAPI}
2476
+ */
2477
+ export class BusinessApi extends BaseAPI {
2478
+ /**
2479
+ *
2480
+ * @param {BusinessOnBoardingDTO} businessOnBoardingDTO
2481
+ * @param {*} [options] Override http request option.
2482
+ * @throws {RequiredError}
2483
+ * @memberof BusinessApi
2484
+ */
2485
+ public businessControllerBusinessOnboarding(businessOnBoardingDTO: BusinessOnBoardingDTO, options?: RawAxiosRequestConfig) {
2486
+ return BusinessApiFp(this.configuration).businessControllerBusinessOnboarding(businessOnBoardingDTO, options).then((request) => request(this.axios, this.basePath));
2487
+ }
2488
+
2489
+ /**
2490
+ *
2491
+ * @param {*} [options] Override http request option.
2492
+ * @throws {RequiredError}
2493
+ * @memberof BusinessApi
2494
+ */
2495
+ public businessTypeControllerListBusinessType(options?: RawAxiosRequestConfig) {
2496
+ return BusinessApiFp(this.configuration).businessTypeControllerListBusinessType(options).then((request) => request(this.axios, this.basePath));
2497
+ }
2498
+
2499
+ /**
2500
+ *
2501
+ * @param {string} businessType
2502
+ * @param {*} [options] Override http request option.
2503
+ * @throws {RequiredError}
2504
+ * @memberof BusinessApi
2505
+ */
2506
+ public businessTypeControllerListCategories(businessType: string, options?: RawAxiosRequestConfig) {
2507
+ return BusinessApiFp(this.configuration).businessTypeControllerListCategories(businessType, options).then((request) => request(this.axios, this.basePath));
2508
+ }
2509
+
2510
+ /**
2511
+ *
2512
+ * @param {*} [options] Override http request option.
2513
+ * @throws {RequiredError}
2514
+ * @memberof BusinessApi
2515
+ */
2516
+ public businessTypeControllerListEmployeesSize(options?: RawAxiosRequestConfig) {
2517
+ return BusinessApiFp(this.configuration).businessTypeControllerListEmployeesSize(options).then((request) => request(this.axios, this.basePath));
2518
+ }
2519
+
2520
+ /**
2521
+ *
2522
+ * @param {*} [options] Override http request option.
2523
+ * @throws {RequiredError}
2524
+ * @memberof BusinessApi
2525
+ */
2526
+ public businessTypeControllerListPriceRange(options?: RawAxiosRequestConfig) {
2527
+ return BusinessApiFp(this.configuration).businessTypeControllerListPriceRange(options).then((request) => request(this.axios, this.basePath));
2528
+ }
2529
+ }
2530
+
2531
+
2532
+
1714
2533
  /**
1715
2534
  * DeviceApi - axios parameter creator
1716
2535
  * @export
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooday_corp/gooday-api-client",
3
- "version": "1.0.17-alpha",
3
+ "version": "1.0.17-delta",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},