@gooday_corp/gooday-api-client 1.3.79 → 1.3.83
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 +2 -0
- package/api.ts +141 -1
- package/docs/CreateBookingPayload.md +1 -1
- package/docs/FriendsApi.md +51 -0
- package/docs/FriendshipDTO.md +22 -0
- package/docs/FriendshipEntity.md +28 -0
- package/docs/NewPasswordPayloadDTO.md +1 -1
- package/docs/RescheduleBookingPayload.md +1 -1
- package/docs/SignupDto.md +2 -0
- package/docs/UserEntity.md +2 -0
- package/docs/WaitlistPayloadDTO.md +2 -2
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
package/api.ts
CHANGED
|
@@ -4754,6 +4754,62 @@ export interface FriendsResponseDTO {
|
|
|
4754
4754
|
*/
|
|
4755
4755
|
'success': boolean;
|
|
4756
4756
|
}
|
|
4757
|
+
/**
|
|
4758
|
+
*
|
|
4759
|
+
* @export
|
|
4760
|
+
* @interface FriendshipDTO
|
|
4761
|
+
*/
|
|
4762
|
+
export interface FriendshipDTO {
|
|
4763
|
+
/**
|
|
4764
|
+
* statusCode
|
|
4765
|
+
* @type {number}
|
|
4766
|
+
* @memberof FriendshipDTO
|
|
4767
|
+
*/
|
|
4768
|
+
'statusCode': number;
|
|
4769
|
+
/**
|
|
4770
|
+
*
|
|
4771
|
+
* @type {FriendshipEntity}
|
|
4772
|
+
* @memberof FriendshipDTO
|
|
4773
|
+
*/
|
|
4774
|
+
'data': FriendshipEntity;
|
|
4775
|
+
}
|
|
4776
|
+
/**
|
|
4777
|
+
*
|
|
4778
|
+
* @export
|
|
4779
|
+
* @interface FriendshipEntity
|
|
4780
|
+
*/
|
|
4781
|
+
export interface FriendshipEntity {
|
|
4782
|
+
/**
|
|
4783
|
+
* Unique identifier for the user
|
|
4784
|
+
* @type {string}
|
|
4785
|
+
* @memberof FriendshipEntity
|
|
4786
|
+
*/
|
|
4787
|
+
'_id'?: string;
|
|
4788
|
+
/**
|
|
4789
|
+
*
|
|
4790
|
+
* @type {string}
|
|
4791
|
+
* @memberof FriendshipEntity
|
|
4792
|
+
*/
|
|
4793
|
+
'from': string;
|
|
4794
|
+
/**
|
|
4795
|
+
*
|
|
4796
|
+
* @type {string}
|
|
4797
|
+
* @memberof FriendshipEntity
|
|
4798
|
+
*/
|
|
4799
|
+
'to': string;
|
|
4800
|
+
/**
|
|
4801
|
+
*
|
|
4802
|
+
* @type {string}
|
|
4803
|
+
* @memberof FriendshipEntity
|
|
4804
|
+
*/
|
|
4805
|
+
'status': string;
|
|
4806
|
+
/**
|
|
4807
|
+
*
|
|
4808
|
+
* @type {string}
|
|
4809
|
+
* @memberof FriendshipEntity
|
|
4810
|
+
*/
|
|
4811
|
+
'type': string;
|
|
4812
|
+
}
|
|
4757
4813
|
/**
|
|
4758
4814
|
*
|
|
4759
4815
|
* @export
|
|
@@ -5713,7 +5769,7 @@ export interface NewPasswordPayloadDTO {
|
|
|
5713
5769
|
*/
|
|
5714
5770
|
'email': string;
|
|
5715
5771
|
/**
|
|
5716
|
-
* New password
|
|
5772
|
+
* New password for the user
|
|
5717
5773
|
* @type {string}
|
|
5718
5774
|
* @memberof NewPasswordPayloadDTO
|
|
5719
5775
|
*/
|
|
@@ -7354,6 +7410,12 @@ export interface SignupDto {
|
|
|
7354
7410
|
* @memberof SignupDto
|
|
7355
7411
|
*/
|
|
7356
7412
|
'password': string;
|
|
7413
|
+
/**
|
|
7414
|
+
*
|
|
7415
|
+
* @type {string}
|
|
7416
|
+
* @memberof SignupDto
|
|
7417
|
+
*/
|
|
7418
|
+
'planId'?: string;
|
|
7357
7419
|
}
|
|
7358
7420
|
/**
|
|
7359
7421
|
*
|
|
@@ -8235,6 +8297,12 @@ export interface UserEntity {
|
|
|
8235
8297
|
* @memberof UserEntity
|
|
8236
8298
|
*/
|
|
8237
8299
|
'hangout': boolean;
|
|
8300
|
+
/**
|
|
8301
|
+
*
|
|
8302
|
+
* @type {string}
|
|
8303
|
+
* @memberof UserEntity
|
|
8304
|
+
*/
|
|
8305
|
+
'planId': string;
|
|
8238
8306
|
/**
|
|
8239
8307
|
*
|
|
8240
8308
|
* @type {Array<string>}
|
|
@@ -16886,6 +16954,46 @@ export const FriendsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
16886
16954
|
options: localVarRequestOptions,
|
|
16887
16955
|
};
|
|
16888
16956
|
},
|
|
16957
|
+
/**
|
|
16958
|
+
*
|
|
16959
|
+
* @param {string} to
|
|
16960
|
+
* @param {*} [options] Override http request option.
|
|
16961
|
+
* @throws {RequiredError}
|
|
16962
|
+
*/
|
|
16963
|
+
friendControllerGetFriendship: async (to: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16964
|
+
// verify required parameter 'to' is not null or undefined
|
|
16965
|
+
assertParamExists('friendControllerGetFriendship', 'to', to)
|
|
16966
|
+
const localVarPath = `/v1/friend/request`;
|
|
16967
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16968
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16969
|
+
let baseOptions;
|
|
16970
|
+
if (configuration) {
|
|
16971
|
+
baseOptions = configuration.baseOptions;
|
|
16972
|
+
}
|
|
16973
|
+
|
|
16974
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
16975
|
+
const localVarHeaderParameter = {} as any;
|
|
16976
|
+
const localVarQueryParameter = {} as any;
|
|
16977
|
+
|
|
16978
|
+
// authentication bearer required
|
|
16979
|
+
// http bearer authentication required
|
|
16980
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
16981
|
+
|
|
16982
|
+
if (to !== undefined) {
|
|
16983
|
+
localVarQueryParameter['to'] = to;
|
|
16984
|
+
}
|
|
16985
|
+
|
|
16986
|
+
|
|
16987
|
+
|
|
16988
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16989
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16990
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
16991
|
+
|
|
16992
|
+
return {
|
|
16993
|
+
url: toPathString(localVarUrlObj),
|
|
16994
|
+
options: localVarRequestOptions,
|
|
16995
|
+
};
|
|
16996
|
+
},
|
|
16889
16997
|
/**
|
|
16890
16998
|
*
|
|
16891
16999
|
* @param {FriendshipStatusCheck} friendshipStatusCheck
|
|
@@ -17244,6 +17352,18 @@ export const FriendsApiFp = function(configuration?: Configuration) {
|
|
|
17244
17352
|
const localVarOperationServerBasePath = operationServerMap['FriendsApi.friendControllerFindMutualFriends']?.[localVarOperationServerIndex]?.url;
|
|
17245
17353
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17246
17354
|
},
|
|
17355
|
+
/**
|
|
17356
|
+
*
|
|
17357
|
+
* @param {string} to
|
|
17358
|
+
* @param {*} [options] Override http request option.
|
|
17359
|
+
* @throws {RequiredError}
|
|
17360
|
+
*/
|
|
17361
|
+
async friendControllerGetFriendship(to: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FriendshipDTO>> {
|
|
17362
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.friendControllerGetFriendship(to, options);
|
|
17363
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
17364
|
+
const localVarOperationServerBasePath = operationServerMap['FriendsApi.friendControllerGetFriendship']?.[localVarOperationServerIndex]?.url;
|
|
17365
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17366
|
+
},
|
|
17247
17367
|
/**
|
|
17248
17368
|
*
|
|
17249
17369
|
* @param {FriendshipStatusCheck} friendshipStatusCheck
|
|
@@ -17395,6 +17515,15 @@ export const FriendsApiFactory = function (configuration?: Configuration, basePa
|
|
|
17395
17515
|
friendControllerFindMutualFriends(mutualFindFriendRequestPayload: MutualFindFriendRequestPayload, options?: RawAxiosRequestConfig): AxiosPromise<MutualFriendsListDTO> {
|
|
17396
17516
|
return localVarFp.friendControllerFindMutualFriends(mutualFindFriendRequestPayload, options).then((request) => request(axios, basePath));
|
|
17397
17517
|
},
|
|
17518
|
+
/**
|
|
17519
|
+
*
|
|
17520
|
+
* @param {string} to
|
|
17521
|
+
* @param {*} [options] Override http request option.
|
|
17522
|
+
* @throws {RequiredError}
|
|
17523
|
+
*/
|
|
17524
|
+
friendControllerGetFriendship(to: string, options?: RawAxiosRequestConfig): AxiosPromise<FriendshipDTO> {
|
|
17525
|
+
return localVarFp.friendControllerGetFriendship(to, options).then((request) => request(axios, basePath));
|
|
17526
|
+
},
|
|
17398
17527
|
/**
|
|
17399
17528
|
*
|
|
17400
17529
|
* @param {FriendshipStatusCheck} friendshipStatusCheck
|
|
@@ -17537,6 +17666,17 @@ export class FriendsApi extends BaseAPI {
|
|
|
17537
17666
|
return FriendsApiFp(this.configuration).friendControllerFindMutualFriends(mutualFindFriendRequestPayload, options).then((request) => request(this.axios, this.basePath));
|
|
17538
17667
|
}
|
|
17539
17668
|
|
|
17669
|
+
/**
|
|
17670
|
+
*
|
|
17671
|
+
* @param {string} to
|
|
17672
|
+
* @param {*} [options] Override http request option.
|
|
17673
|
+
* @throws {RequiredError}
|
|
17674
|
+
* @memberof FriendsApi
|
|
17675
|
+
*/
|
|
17676
|
+
public friendControllerGetFriendship(to: string, options?: RawAxiosRequestConfig) {
|
|
17677
|
+
return FriendsApiFp(this.configuration).friendControllerGetFriendship(to, options).then((request) => request(this.axios, this.basePath));
|
|
17678
|
+
}
|
|
17679
|
+
|
|
17540
17680
|
/**
|
|
17541
17681
|
*
|
|
17542
17682
|
* @param {FriendshipStatusCheck} friendshipStatusCheck
|
|
@@ -6,7 +6,7 @@
|
|
|
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-05-
|
|
9
|
+
**date** | **string** | The start date of the booking | [default to 2025-05-27T04:13:51Z]
|
|
10
10
|
**from** | **string** | | [optional] [default to undefined]
|
|
11
11
|
**to** | **string** | | [optional] [default to undefined]
|
|
12
12
|
**venue** | **string** | The venue of the booking | [default to undefined]
|
package/docs/FriendsApi.md
CHANGED
|
@@ -10,6 +10,7 @@ All URIs are relative to *http://localhost:8080*
|
|
|
10
10
|
|[**friendControllerFindFriendConfirmedVenueList**](#friendcontrollerfindfriendconfirmedvenuelist) | **GET** /v1/friend/venue-booked | |
|
|
11
11
|
|[**friendControllerFindFriends**](#friendcontrollerfindfriends) | **GET** /v1/friend/find | |
|
|
12
12
|
|[**friendControllerFindMutualFriends**](#friendcontrollerfindmutualfriends) | **POST** /v1/friend/mutual/list | |
|
|
13
|
+
|[**friendControllerGetFriendship**](#friendcontrollergetfriendship) | **GET** /v1/friend/request | |
|
|
13
14
|
|[**friendControllerGetFriendshipStatus**](#friendcontrollergetfriendshipstatus) | **POST** /v1/friend/status | |
|
|
14
15
|
|[**friendControllerListMyFriends**](#friendcontrollerlistmyfriends) | **POST** /v1/friend/list | |
|
|
15
16
|
|[**friendControllerRemoveFriendById**](#friendcontrollerremovefriendbyid) | **POST** /v1/friend/remove | |
|
|
@@ -321,6 +322,56 @@ const { status, data } = await apiInstance.friendControllerFindMutualFriends(
|
|
|
321
322
|
- **Accept**: application/json
|
|
322
323
|
|
|
323
324
|
|
|
325
|
+
### HTTP response details
|
|
326
|
+
| Status code | Description | Response headers |
|
|
327
|
+
|-------------|-------------|------------------|
|
|
328
|
+
|**200** | | - |
|
|
329
|
+
|
|
330
|
+
[[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)
|
|
331
|
+
|
|
332
|
+
# **friendControllerGetFriendship**
|
|
333
|
+
> FriendshipDTO friendControllerGetFriendship()
|
|
334
|
+
|
|
335
|
+
|
|
336
|
+
### Example
|
|
337
|
+
|
|
338
|
+
```typescript
|
|
339
|
+
import {
|
|
340
|
+
FriendsApi,
|
|
341
|
+
Configuration
|
|
342
|
+
} from './api';
|
|
343
|
+
|
|
344
|
+
const configuration = new Configuration();
|
|
345
|
+
const apiInstance = new FriendsApi(configuration);
|
|
346
|
+
|
|
347
|
+
let to: string; // (default to undefined)
|
|
348
|
+
|
|
349
|
+
const { status, data } = await apiInstance.friendControllerGetFriendship(
|
|
350
|
+
to
|
|
351
|
+
);
|
|
352
|
+
```
|
|
353
|
+
|
|
354
|
+
### Parameters
|
|
355
|
+
|
|
356
|
+
|Name | Type | Description | Notes|
|
|
357
|
+
|------------- | ------------- | ------------- | -------------|
|
|
358
|
+
| **to** | [**string**] | | defaults to undefined|
|
|
359
|
+
|
|
360
|
+
|
|
361
|
+
### Return type
|
|
362
|
+
|
|
363
|
+
**FriendshipDTO**
|
|
364
|
+
|
|
365
|
+
### Authorization
|
|
366
|
+
|
|
367
|
+
[bearer](../README.md#bearer)
|
|
368
|
+
|
|
369
|
+
### HTTP request headers
|
|
370
|
+
|
|
371
|
+
- **Content-Type**: Not defined
|
|
372
|
+
- **Accept**: application/json
|
|
373
|
+
|
|
374
|
+
|
|
324
375
|
### HTTP response details
|
|
325
376
|
| Status code | Description | Response headers |
|
|
326
377
|
|-------------|-------------|------------------|
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# FriendshipDTO
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**statusCode** | **number** | statusCode | [default to undefined]
|
|
9
|
+
**data** | [**FriendshipEntity**](FriendshipEntity.md) | | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { FriendshipDTO } from './api';
|
|
15
|
+
|
|
16
|
+
const instance: FriendshipDTO = {
|
|
17
|
+
statusCode,
|
|
18
|
+
data,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# FriendshipEntity
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**_id** | **string** | Unique identifier for the user | [optional] [default to undefined]
|
|
9
|
+
**from** | **string** | | [default to undefined]
|
|
10
|
+
**to** | **string** | | [default to undefined]
|
|
11
|
+
**status** | **string** | | [default to undefined]
|
|
12
|
+
**type** | **string** | | [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { FriendshipEntity } from './api';
|
|
18
|
+
|
|
19
|
+
const instance: FriendshipEntity = {
|
|
20
|
+
_id,
|
|
21
|
+
from,
|
|
22
|
+
to,
|
|
23
|
+
status,
|
|
24
|
+
type,
|
|
25
|
+
};
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**email** | **string** | email | [default to undefined]
|
|
9
|
-
**password** | **string** | New password
|
|
9
|
+
**password** | **string** | New password for the user | [default to undefined]
|
|
10
10
|
|
|
11
11
|
## Example
|
|
12
12
|
|
|
@@ -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-05-
|
|
8
|
+
**date** | **string** | The start date of the booking | [default to 2025-05-27T04:13:51Z]
|
|
9
9
|
**from** | **string** | | [optional] [default to undefined]
|
|
10
10
|
**to** | **string** | | [optional] [default to undefined]
|
|
11
11
|
|
package/docs/SignupDto.md
CHANGED
|
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
|
|
|
11
11
|
**gender** | **string** | User gender | [optional] [default to undefined]
|
|
12
12
|
**email** | **string** | The email of the user | [default to undefined]
|
|
13
13
|
**password** | **string** | User Profile Name | [default to undefined]
|
|
14
|
+
**planId** | **string** | | [optional] [default to undefined]
|
|
14
15
|
|
|
15
16
|
## Example
|
|
16
17
|
|
|
@@ -24,6 +25,7 @@ const instance: SignupDto = {
|
|
|
24
25
|
gender,
|
|
25
26
|
email,
|
|
26
27
|
password,
|
|
28
|
+
planId,
|
|
27
29
|
};
|
|
28
30
|
```
|
|
29
31
|
|
package/docs/UserEntity.md
CHANGED
|
@@ -31,6 +31,7 @@ Name | Type | Description | Notes
|
|
|
31
31
|
**streak** | **number** | User daily streak | [default to undefined]
|
|
32
32
|
**pendingAction** | **Array<string>** | Action user has to perform | [optional] [default to undefined]
|
|
33
33
|
**hangout** | **boolean** | | [default to false]
|
|
34
|
+
**planId** | **string** | | [default to undefined]
|
|
34
35
|
**friends** | **Array<string>** | | [default to undefined]
|
|
35
36
|
|
|
36
37
|
## Example
|
|
@@ -65,6 +66,7 @@ const instance: UserEntity = {
|
|
|
65
66
|
streak,
|
|
66
67
|
pendingAction,
|
|
67
68
|
hangout,
|
|
69
|
+
planId,
|
|
68
70
|
friends,
|
|
69
71
|
};
|
|
70
72
|
```
|
|
@@ -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-05-
|
|
9
|
-
**endDate** | **string** | The end date of the waitlist | [default to 2025-05-
|
|
8
|
+
**startDate** | **string** | The start date of the waitlist | [default to 2025-05-27T04:13:51Z]
|
|
9
|
+
**endDate** | **string** | The end date of the waitlist | [default to 2025-05-27T05:13:51Z]
|
|
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]
|