@gooday_corp/gooday-api-client 1.8.1 → 1.8.4
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.
package/.openapi-generator/FILES
CHANGED
package/api.ts
CHANGED
|
@@ -7969,6 +7969,19 @@ export interface SignInResponseDto {
|
|
|
7969
7969
|
*/
|
|
7970
7970
|
'data': SignInResponse;
|
|
7971
7971
|
}
|
|
7972
|
+
/**
|
|
7973
|
+
*
|
|
7974
|
+
* @export
|
|
7975
|
+
* @interface SignInWithAdminDTO
|
|
7976
|
+
*/
|
|
7977
|
+
export interface SignInWithAdminDTO {
|
|
7978
|
+
/**
|
|
7979
|
+
*
|
|
7980
|
+
* @type {string}
|
|
7981
|
+
* @memberof SignInWithAdminDTO
|
|
7982
|
+
*/
|
|
7983
|
+
'id': string;
|
|
7984
|
+
}
|
|
7972
7985
|
/**
|
|
7973
7986
|
*
|
|
7974
7987
|
* @export
|
|
@@ -11266,6 +11279,41 @@ export const AuthApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
11266
11279
|
options: localVarRequestOptions,
|
|
11267
11280
|
};
|
|
11268
11281
|
},
|
|
11282
|
+
/**
|
|
11283
|
+
*
|
|
11284
|
+
* @param {SignInWithAdminDTO} signInWithAdminDTO
|
|
11285
|
+
* @param {*} [options] Override http request option.
|
|
11286
|
+
* @throws {RequiredError}
|
|
11287
|
+
*/
|
|
11288
|
+
authControllerSignInWithAdmin: async (signInWithAdminDTO: SignInWithAdminDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
11289
|
+
// verify required parameter 'signInWithAdminDTO' is not null or undefined
|
|
11290
|
+
assertParamExists('authControllerSignInWithAdmin', 'signInWithAdminDTO', signInWithAdminDTO)
|
|
11291
|
+
const localVarPath = `/v1/auth/admin-login`;
|
|
11292
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11293
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
11294
|
+
let baseOptions;
|
|
11295
|
+
if (configuration) {
|
|
11296
|
+
baseOptions = configuration.baseOptions;
|
|
11297
|
+
}
|
|
11298
|
+
|
|
11299
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
11300
|
+
const localVarHeaderParameter = {} as any;
|
|
11301
|
+
const localVarQueryParameter = {} as any;
|
|
11302
|
+
|
|
11303
|
+
|
|
11304
|
+
|
|
11305
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
11306
|
+
|
|
11307
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11308
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11309
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
11310
|
+
localVarRequestOptions.data = serializeDataIfNeeded(signInWithAdminDTO, localVarRequestOptions, configuration)
|
|
11311
|
+
|
|
11312
|
+
return {
|
|
11313
|
+
url: toPathString(localVarUrlObj),
|
|
11314
|
+
options: localVarRequestOptions,
|
|
11315
|
+
};
|
|
11316
|
+
},
|
|
11269
11317
|
/**
|
|
11270
11318
|
*
|
|
11271
11319
|
* @param {LoggedOutPayloadDTO} loggedOutPayloadDTO
|
|
@@ -11469,6 +11517,18 @@ export const AuthApiFp = function(configuration?: Configuration) {
|
|
|
11469
11517
|
const localVarOperationServerBasePath = operationServerMap['AuthApi.authControllerSignIn']?.[localVarOperationServerIndex]?.url;
|
|
11470
11518
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11471
11519
|
},
|
|
11520
|
+
/**
|
|
11521
|
+
*
|
|
11522
|
+
* @param {SignInWithAdminDTO} signInWithAdminDTO
|
|
11523
|
+
* @param {*} [options] Override http request option.
|
|
11524
|
+
* @throws {RequiredError}
|
|
11525
|
+
*/
|
|
11526
|
+
async authControllerSignInWithAdmin(signInWithAdminDTO: SignInWithAdminDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SignInResponseDto>> {
|
|
11527
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerSignInWithAdmin(signInWithAdminDTO, options);
|
|
11528
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
11529
|
+
const localVarOperationServerBasePath = operationServerMap['AuthApi.authControllerSignInWithAdmin']?.[localVarOperationServerIndex]?.url;
|
|
11530
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11531
|
+
},
|
|
11472
11532
|
/**
|
|
11473
11533
|
*
|
|
11474
11534
|
* @param {LoggedOutPayloadDTO} loggedOutPayloadDTO
|
|
@@ -11578,6 +11638,15 @@ export const AuthApiFactory = function (configuration?: Configuration, basePath?
|
|
|
11578
11638
|
authControllerSignIn(signInDto: SignInDto, options?: RawAxiosRequestConfig): AxiosPromise<SignInResponseDto> {
|
|
11579
11639
|
return localVarFp.authControllerSignIn(signInDto, options).then((request) => request(axios, basePath));
|
|
11580
11640
|
},
|
|
11641
|
+
/**
|
|
11642
|
+
*
|
|
11643
|
+
* @param {SignInWithAdminDTO} signInWithAdminDTO
|
|
11644
|
+
* @param {*} [options] Override http request option.
|
|
11645
|
+
* @throws {RequiredError}
|
|
11646
|
+
*/
|
|
11647
|
+
authControllerSignInWithAdmin(signInWithAdminDTO: SignInWithAdminDTO, options?: RawAxiosRequestConfig): AxiosPromise<SignInResponseDto> {
|
|
11648
|
+
return localVarFp.authControllerSignInWithAdmin(signInWithAdminDTO, options).then((request) => request(axios, basePath));
|
|
11649
|
+
},
|
|
11581
11650
|
/**
|
|
11582
11651
|
*
|
|
11583
11652
|
* @param {LoggedOutPayloadDTO} loggedOutPayloadDTO
|
|
@@ -11692,6 +11761,17 @@ export class AuthApi extends BaseAPI {
|
|
|
11692
11761
|
return AuthApiFp(this.configuration).authControllerSignIn(signInDto, options).then((request) => request(this.axios, this.basePath));
|
|
11693
11762
|
}
|
|
11694
11763
|
|
|
11764
|
+
/**
|
|
11765
|
+
*
|
|
11766
|
+
* @param {SignInWithAdminDTO} signInWithAdminDTO
|
|
11767
|
+
* @param {*} [options] Override http request option.
|
|
11768
|
+
* @throws {RequiredError}
|
|
11769
|
+
* @memberof AuthApi
|
|
11770
|
+
*/
|
|
11771
|
+
public authControllerSignInWithAdmin(signInWithAdminDTO: SignInWithAdminDTO, options?: RawAxiosRequestConfig) {
|
|
11772
|
+
return AuthApiFp(this.configuration).authControllerSignInWithAdmin(signInWithAdminDTO, options).then((request) => request(this.axios, this.basePath));
|
|
11773
|
+
}
|
|
11774
|
+
|
|
11695
11775
|
/**
|
|
11696
11776
|
*
|
|
11697
11777
|
* @param {LoggedOutPayloadDTO} loggedOutPayloadDTO
|
package/docs/AuthApi.md
CHANGED
|
@@ -11,6 +11,7 @@ All URIs are relative to *http://localhost:8080*
|
|
|
11
11
|
|[**authControllerResentOTP**](#authcontrollerresentotp) | **POST** /v1/auth/resend-otp | |
|
|
12
12
|
|[**authControllerResetPassword**](#authcontrollerresetpassword) | **POST** /v1/auth/reset-password | |
|
|
13
13
|
|[**authControllerSignIn**](#authcontrollersignin) | **POST** /v1/auth/user-login | |
|
|
14
|
+
|[**authControllerSignInWithAdmin**](#authcontrollersigninwithadmin) | **POST** /v1/auth/admin-login | |
|
|
14
15
|
|[**authControllerSignOut**](#authcontrollersignout) | **POST** /v1/auth/user-logout | |
|
|
15
16
|
|[**authControllerSignUp**](#authcontrollersignup) | **POST** /v1/auth/user-register | |
|
|
16
17
|
|[**authControllerVerifyOTP**](#authcontrollerverifyotp) | **POST** /v1/auth/verify-otp | |
|
|
@@ -352,6 +353,58 @@ const { status, data } = await apiInstance.authControllerSignIn(
|
|
|
352
353
|
| **signInDto** | **SignInDto**| | |
|
|
353
354
|
|
|
354
355
|
|
|
356
|
+
### Return type
|
|
357
|
+
|
|
358
|
+
**SignInResponseDto**
|
|
359
|
+
|
|
360
|
+
### Authorization
|
|
361
|
+
|
|
362
|
+
No authorization required
|
|
363
|
+
|
|
364
|
+
### HTTP request headers
|
|
365
|
+
|
|
366
|
+
- **Content-Type**: application/json
|
|
367
|
+
- **Accept**: application/json
|
|
368
|
+
|
|
369
|
+
|
|
370
|
+
### HTTP response details
|
|
371
|
+
| Status code | Description | Response headers |
|
|
372
|
+
|-------------|-------------|------------------|
|
|
373
|
+
|**200** | | - |
|
|
374
|
+
|**409** | User with this email does not exist | - |
|
|
375
|
+
|
|
376
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
377
|
+
|
|
378
|
+
# **authControllerSignInWithAdmin**
|
|
379
|
+
> SignInResponseDto authControllerSignInWithAdmin(signInWithAdminDTO)
|
|
380
|
+
|
|
381
|
+
|
|
382
|
+
### Example
|
|
383
|
+
|
|
384
|
+
```typescript
|
|
385
|
+
import {
|
|
386
|
+
AuthApi,
|
|
387
|
+
Configuration,
|
|
388
|
+
SignInWithAdminDTO
|
|
389
|
+
} from './api';
|
|
390
|
+
|
|
391
|
+
const configuration = new Configuration();
|
|
392
|
+
const apiInstance = new AuthApi(configuration);
|
|
393
|
+
|
|
394
|
+
let signInWithAdminDTO: SignInWithAdminDTO; //
|
|
395
|
+
|
|
396
|
+
const { status, data } = await apiInstance.authControllerSignInWithAdmin(
|
|
397
|
+
signInWithAdminDTO
|
|
398
|
+
);
|
|
399
|
+
```
|
|
400
|
+
|
|
401
|
+
### Parameters
|
|
402
|
+
|
|
403
|
+
|Name | Type | Description | Notes|
|
|
404
|
+
|------------- | ------------- | ------------- | -------------|
|
|
405
|
+
| **signInWithAdminDTO** | **SignInWithAdminDTO**| | |
|
|
406
|
+
|
|
407
|
+
|
|
355
408
|
### Return type
|
|
356
409
|
|
|
357
410
|
**SignInResponseDto**
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**title** | **string** | The title of the booking | [default to 'Default Booking Title']
|
|
9
|
-
**date** | **string** | The start date of the booking | [default to 2025-08-
|
|
10
|
-
**recurrenceEndDate** | **string** | The start date of the booking | [optional] [default to 2025-08-
|
|
9
|
+
**date** | **string** | The start date of the booking | [default to 2025-08-13T14:39:28Z]
|
|
10
|
+
**recurrenceEndDate** | **string** | The start date of the booking | [optional] [default to 2025-08-13T14:39:28Z]
|
|
11
11
|
**from** | **string** | | [optional] [default to undefined]
|
|
12
12
|
**to** | **string** | | [optional] [default to undefined]
|
|
13
13
|
**venue** | **string** | The venue of the booking | [default to undefined]
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**date** | **string** | The start date of the booking | [default to 2025-08-
|
|
8
|
+
**date** | **string** | The start date of the booking | [default to 2025-08-13T14:39:28Z]
|
|
9
9
|
**from** | **string** | | [optional] [default to undefined]
|
|
10
10
|
**to** | **string** | | [optional] [default to undefined]
|
|
11
11
|
**notes** | **string** | | [optional] [default to undefined]
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# SignInWithAdminDTO
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { SignInWithAdminDTO } from './api';
|
|
14
|
+
|
|
15
|
+
const instance: SignInWithAdminDTO = {
|
|
16
|
+
id,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**startDate** | **string** | The start date of the waitlist | [default to 2025-08-
|
|
9
|
-
**endDate** | **string** | The end date of the waitlist | [default to 2025-08-
|
|
8
|
+
**startDate** | **string** | The start date of the waitlist | [default to 2025-08-13T14:39:28Z]
|
|
9
|
+
**endDate** | **string** | The end date of the waitlist | [default to 2025-08-13T15:39:28Z]
|
|
10
10
|
**venue** | **string** | The venue of the waitlist | [default to undefined]
|
|
11
11
|
**business** | **string** | The business associated with the waitlist | [default to undefined]
|
|
12
12
|
**collaborators** | [**Array<CreateWaitlistBookingCollaboratorPayload>**](CreateWaitlistBookingCollaboratorPayload.md) | The list of collaborators associated with the waitlist | [default to undefined]
|