@gooday_corp/gooday-api-client 1.3.79 → 1.3.81

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.
@@ -153,6 +153,8 @@ docs/FriendsDTO.md
153
153
  docs/FriendsList.md
154
154
  docs/FriendsListDTO.md
155
155
  docs/FriendsResponseDTO.md
156
+ docs/FriendshipDTO.md
157
+ docs/FriendshipEntity.md
156
158
  docs/FriendshipStatusCheck.md
157
159
  docs/FriendshipStatusDTO.md
158
160
  docs/GcsApi.md
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
@@ -16886,6 +16942,46 @@ export const FriendsApiAxiosParamCreator = function (configuration?: Configurati
16886
16942
  options: localVarRequestOptions,
16887
16943
  };
16888
16944
  },
16945
+ /**
16946
+ *
16947
+ * @param {string} to
16948
+ * @param {*} [options] Override http request option.
16949
+ * @throws {RequiredError}
16950
+ */
16951
+ friendControllerGetFriendship: async (to: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16952
+ // verify required parameter 'to' is not null or undefined
16953
+ assertParamExists('friendControllerGetFriendship', 'to', to)
16954
+ const localVarPath = `/v1/friend/request`;
16955
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16956
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16957
+ let baseOptions;
16958
+ if (configuration) {
16959
+ baseOptions = configuration.baseOptions;
16960
+ }
16961
+
16962
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
16963
+ const localVarHeaderParameter = {} as any;
16964
+ const localVarQueryParameter = {} as any;
16965
+
16966
+ // authentication bearer required
16967
+ // http bearer authentication required
16968
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
16969
+
16970
+ if (to !== undefined) {
16971
+ localVarQueryParameter['to'] = to;
16972
+ }
16973
+
16974
+
16975
+
16976
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16977
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16978
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16979
+
16980
+ return {
16981
+ url: toPathString(localVarUrlObj),
16982
+ options: localVarRequestOptions,
16983
+ };
16984
+ },
16889
16985
  /**
16890
16986
  *
16891
16987
  * @param {FriendshipStatusCheck} friendshipStatusCheck
@@ -17244,6 +17340,18 @@ export const FriendsApiFp = function(configuration?: Configuration) {
17244
17340
  const localVarOperationServerBasePath = operationServerMap['FriendsApi.friendControllerFindMutualFriends']?.[localVarOperationServerIndex]?.url;
17245
17341
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17246
17342
  },
17343
+ /**
17344
+ *
17345
+ * @param {string} to
17346
+ * @param {*} [options] Override http request option.
17347
+ * @throws {RequiredError}
17348
+ */
17349
+ async friendControllerGetFriendship(to: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FriendshipDTO>> {
17350
+ const localVarAxiosArgs = await localVarAxiosParamCreator.friendControllerGetFriendship(to, options);
17351
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
17352
+ const localVarOperationServerBasePath = operationServerMap['FriendsApi.friendControllerGetFriendship']?.[localVarOperationServerIndex]?.url;
17353
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17354
+ },
17247
17355
  /**
17248
17356
  *
17249
17357
  * @param {FriendshipStatusCheck} friendshipStatusCheck
@@ -17395,6 +17503,15 @@ export const FriendsApiFactory = function (configuration?: Configuration, basePa
17395
17503
  friendControllerFindMutualFriends(mutualFindFriendRequestPayload: MutualFindFriendRequestPayload, options?: RawAxiosRequestConfig): AxiosPromise<MutualFriendsListDTO> {
17396
17504
  return localVarFp.friendControllerFindMutualFriends(mutualFindFriendRequestPayload, options).then((request) => request(axios, basePath));
17397
17505
  },
17506
+ /**
17507
+ *
17508
+ * @param {string} to
17509
+ * @param {*} [options] Override http request option.
17510
+ * @throws {RequiredError}
17511
+ */
17512
+ friendControllerGetFriendship(to: string, options?: RawAxiosRequestConfig): AxiosPromise<FriendshipDTO> {
17513
+ return localVarFp.friendControllerGetFriendship(to, options).then((request) => request(axios, basePath));
17514
+ },
17398
17515
  /**
17399
17516
  *
17400
17517
  * @param {FriendshipStatusCheck} friendshipStatusCheck
@@ -17537,6 +17654,17 @@ export class FriendsApi extends BaseAPI {
17537
17654
  return FriendsApiFp(this.configuration).friendControllerFindMutualFriends(mutualFindFriendRequestPayload, options).then((request) => request(this.axios, this.basePath));
17538
17655
  }
17539
17656
 
17657
+ /**
17658
+ *
17659
+ * @param {string} to
17660
+ * @param {*} [options] Override http request option.
17661
+ * @throws {RequiredError}
17662
+ * @memberof FriendsApi
17663
+ */
17664
+ public friendControllerGetFriendship(to: string, options?: RawAxiosRequestConfig) {
17665
+ return FriendsApiFp(this.configuration).friendControllerGetFriendship(to, options).then((request) => request(this.axios, this.basePath));
17666
+ }
17667
+
17540
17668
  /**
17541
17669
  *
17542
17670
  * @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-26T18:06:17+05:30]
9
+ **date** | **string** | The start date of the booking | [default to 2025-05-26T19:58:59+05:30]
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]
@@ -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 | [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)
@@ -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-26T18:06:17+05:30]
8
+ **date** | **string** | The start date of the booking | [default to 2025-05-26T19:58:59+05:30]
9
9
  **from** | **string** | | [optional] [default to undefined]
10
10
  **to** | **string** | | [optional] [default to undefined]
11
11
 
@@ -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-26T18:06:17+05:30]
9
- **endDate** | **string** | The end date of the waitlist | [default to 2025-05-26T19:06:17+05:30]
8
+ **startDate** | **string** | The start date of the waitlist | [default to 2025-05-26T19:58:59+05:30]
9
+ **endDate** | **string** | The end date of the waitlist | [default to 2025-05-26T20:58:59+05:30]
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&lt;CreateWaitlistBookingCollaboratorPayload&gt;**](CreateWaitlistBookingCollaboratorPayload.md) | The list of collaborators associated with the waitlist | [default to undefined]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooday_corp/gooday-api-client",
3
- "version": "1.3.79",
3
+ "version": "1.3.81",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},