@gooday_corp/gooday-api-client 1.3.36 → 1.3.37

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.
@@ -138,6 +138,7 @@ docs/FindWhatsOnAndPrepaidService.md
138
138
  docs/FineCustomerResponseDTO.md
139
139
  docs/ForgotPasswordPayloadDTO.md
140
140
  docs/ForgotPasswordResponseDTO.md
141
+ docs/FriendSuggestionResponseDTO.md
141
142
  docs/FriendsApi.md
142
143
  docs/FriendsDTO.md
143
144
  docs/FriendsResponseDTO.md
package/api.ts CHANGED
@@ -4344,6 +4344,25 @@ export interface ForgotPasswordResponseDTO {
4344
4344
  */
4345
4345
  'message': string;
4346
4346
  }
4347
+ /**
4348
+ *
4349
+ * @export
4350
+ * @interface FriendSuggestionResponseDTO
4351
+ */
4352
+ export interface FriendSuggestionResponseDTO {
4353
+ /**
4354
+ * statusCode
4355
+ * @type {number}
4356
+ * @memberof FriendSuggestionResponseDTO
4357
+ */
4358
+ 'statusCode': number;
4359
+ /**
4360
+ *
4361
+ * @type {number}
4362
+ * @memberof FriendSuggestionResponseDTO
4363
+ */
4364
+ 'data'?: number;
4365
+ }
4347
4366
  /**
4348
4367
  *
4349
4368
  * @export
@@ -15394,6 +15413,43 @@ export const FriendsApiAxiosParamCreator = function (configuration?: Configurati
15394
15413
  options: localVarRequestOptions,
15395
15414
  };
15396
15415
  },
15416
+ /**
15417
+ *
15418
+ * @param {string} id
15419
+ * @param {*} [options] Override http request option.
15420
+ * @throws {RequiredError}
15421
+ */
15422
+ friendControllerMutualFriendsCount: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15423
+ // verify required parameter 'id' is not null or undefined
15424
+ assertParamExists('friendControllerMutualFriendsCount', 'id', id)
15425
+ const localVarPath = `/v1/friend/mutual-friends-count/{id}`
15426
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
15427
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
15428
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15429
+ let baseOptions;
15430
+ if (configuration) {
15431
+ baseOptions = configuration.baseOptions;
15432
+ }
15433
+
15434
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
15435
+ const localVarHeaderParameter = {} as any;
15436
+ const localVarQueryParameter = {} as any;
15437
+
15438
+ // authentication bearer required
15439
+ // http bearer authentication required
15440
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
15441
+
15442
+
15443
+
15444
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
15445
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15446
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
15447
+
15448
+ return {
15449
+ url: toPathString(localVarUrlObj),
15450
+ options: localVarRequestOptions,
15451
+ };
15452
+ },
15397
15453
  /**
15398
15454
  *
15399
15455
  * @param {RemoveFriendshipRequestPayload} removeFriendshipRequestPayload
@@ -15511,10 +15567,12 @@ export const FriendsApiAxiosParamCreator = function (configuration?: Configurati
15511
15567
  },
15512
15568
  /**
15513
15569
  *
15570
+ * @param {number} [page]
15571
+ * @param {number} [pageSize]
15514
15572
  * @param {*} [options] Override http request option.
15515
15573
  * @throws {RequiredError}
15516
15574
  */
15517
- friendControllerSuggestedFriendList: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15575
+ friendControllerSuggestedFriendList: async (page?: number, pageSize?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15518
15576
  const localVarPath = `/v1/friend/suggested-friends`;
15519
15577
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
15520
15578
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -15531,6 +15589,14 @@ export const FriendsApiAxiosParamCreator = function (configuration?: Configurati
15531
15589
  // http bearer authentication required
15532
15590
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
15533
15591
 
15592
+ if (page !== undefined) {
15593
+ localVarQueryParameter['page'] = page;
15594
+ }
15595
+
15596
+ if (pageSize !== undefined) {
15597
+ localVarQueryParameter['pageSize'] = pageSize;
15598
+ }
15599
+
15534
15600
 
15535
15601
 
15536
15602
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -15671,6 +15737,18 @@ export const FriendsApiFp = function(configuration?: Configuration) {
15671
15737
  const localVarOperationServerBasePath = operationServerMap['FriendsApi.friendControllerListMyFriends']?.[localVarOperationServerIndex]?.url;
15672
15738
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15673
15739
  },
15740
+ /**
15741
+ *
15742
+ * @param {string} id
15743
+ * @param {*} [options] Override http request option.
15744
+ * @throws {RequiredError}
15745
+ */
15746
+ async friendControllerMutualFriendsCount(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FriendSuggestionResponseDTO>> {
15747
+ const localVarAxiosArgs = await localVarAxiosParamCreator.friendControllerMutualFriendsCount(id, options);
15748
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
15749
+ const localVarOperationServerBasePath = operationServerMap['FriendsApi.friendControllerMutualFriendsCount']?.[localVarOperationServerIndex]?.url;
15750
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15751
+ },
15674
15752
  /**
15675
15753
  *
15676
15754
  * @param {RemoveFriendshipRequestPayload} removeFriendshipRequestPayload
@@ -15709,11 +15787,13 @@ export const FriendsApiFp = function(configuration?: Configuration) {
15709
15787
  },
15710
15788
  /**
15711
15789
  *
15790
+ * @param {number} [page]
15791
+ * @param {number} [pageSize]
15712
15792
  * @param {*} [options] Override http request option.
15713
15793
  * @throws {RequiredError}
15714
15794
  */
15715
- async friendControllerSuggestedFriendList(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FriendsDTO>> {
15716
- const localVarAxiosArgs = await localVarAxiosParamCreator.friendControllerSuggestedFriendList(options);
15795
+ async friendControllerSuggestedFriendList(page?: number, pageSize?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FriendsDTO>> {
15796
+ const localVarAxiosArgs = await localVarAxiosParamCreator.friendControllerSuggestedFriendList(page, pageSize, options);
15717
15797
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
15718
15798
  const localVarOperationServerBasePath = operationServerMap['FriendsApi.friendControllerSuggestedFriendList']?.[localVarOperationServerIndex]?.url;
15719
15799
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -15804,6 +15884,15 @@ export const FriendsApiFactory = function (configuration?: Configuration, basePa
15804
15884
  friendControllerListMyFriends(findMyFriendRequestPayload: FindMyFriendRequestPayload, options?: RawAxiosRequestConfig): AxiosPromise<FriendsDTO> {
15805
15885
  return localVarFp.friendControllerListMyFriends(findMyFriendRequestPayload, options).then((request) => request(axios, basePath));
15806
15886
  },
15887
+ /**
15888
+ *
15889
+ * @param {string} id
15890
+ * @param {*} [options] Override http request option.
15891
+ * @throws {RequiredError}
15892
+ */
15893
+ friendControllerMutualFriendsCount(id: string, options?: RawAxiosRequestConfig): AxiosPromise<FriendSuggestionResponseDTO> {
15894
+ return localVarFp.friendControllerMutualFriendsCount(id, options).then((request) => request(axios, basePath));
15895
+ },
15807
15896
  /**
15808
15897
  *
15809
15898
  * @param {RemoveFriendshipRequestPayload} removeFriendshipRequestPayload
@@ -15833,11 +15922,13 @@ export const FriendsApiFactory = function (configuration?: Configuration, basePa
15833
15922
  },
15834
15923
  /**
15835
15924
  *
15925
+ * @param {number} [page]
15926
+ * @param {number} [pageSize]
15836
15927
  * @param {*} [options] Override http request option.
15837
15928
  * @throws {RequiredError}
15838
15929
  */
15839
- friendControllerSuggestedFriendList(options?: RawAxiosRequestConfig): AxiosPromise<FriendsDTO> {
15840
- return localVarFp.friendControllerSuggestedFriendList(options).then((request) => request(axios, basePath));
15930
+ friendControllerSuggestedFriendList(page?: number, pageSize?: number, options?: RawAxiosRequestConfig): AxiosPromise<FriendsDTO> {
15931
+ return localVarFp.friendControllerSuggestedFriendList(page, pageSize, options).then((request) => request(axios, basePath));
15841
15932
  },
15842
15933
  /**
15843
15934
  *
@@ -15936,6 +16027,17 @@ export class FriendsApi extends BaseAPI {
15936
16027
  return FriendsApiFp(this.configuration).friendControllerListMyFriends(findMyFriendRequestPayload, options).then((request) => request(this.axios, this.basePath));
15937
16028
  }
15938
16029
 
16030
+ /**
16031
+ *
16032
+ * @param {string} id
16033
+ * @param {*} [options] Override http request option.
16034
+ * @throws {RequiredError}
16035
+ * @memberof FriendsApi
16036
+ */
16037
+ public friendControllerMutualFriendsCount(id: string, options?: RawAxiosRequestConfig) {
16038
+ return FriendsApiFp(this.configuration).friendControllerMutualFriendsCount(id, options).then((request) => request(this.axios, this.basePath));
16039
+ }
16040
+
15939
16041
  /**
15940
16042
  *
15941
16043
  * @param {RemoveFriendshipRequestPayload} removeFriendshipRequestPayload
@@ -15971,12 +16073,14 @@ export class FriendsApi extends BaseAPI {
15971
16073
 
15972
16074
  /**
15973
16075
  *
16076
+ * @param {number} [page]
16077
+ * @param {number} [pageSize]
15974
16078
  * @param {*} [options] Override http request option.
15975
16079
  * @throws {RequiredError}
15976
16080
  * @memberof FriendsApi
15977
16081
  */
15978
- public friendControllerSuggestedFriendList(options?: RawAxiosRequestConfig) {
15979
- return FriendsApiFp(this.configuration).friendControllerSuggestedFriendList(options).then((request) => request(this.axios, this.basePath));
16082
+ public friendControllerSuggestedFriendList(page?: number, pageSize?: number, options?: RawAxiosRequestConfig) {
16083
+ return FriendsApiFp(this.configuration).friendControllerSuggestedFriendList(page, pageSize, options).then((request) => request(this.axios, this.basePath));
15980
16084
  }
15981
16085
 
15982
16086
  /**
@@ -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-04-29T12:42:47+05:30]
9
+ **date** | **string** | The start date of the booking | [default to 2025-04-29T13:53:15+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]
@@ -0,0 +1,22 @@
1
+ # FriendSuggestionResponseDTO
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **statusCode** | **number** | statusCode | [default to undefined]
9
+ **data** | **number** | | [optional] [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { FriendSuggestionResponseDTO } from './api';
15
+
16
+ const instance: FriendSuggestionResponseDTO = {
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)
@@ -11,6 +11,7 @@ All URIs are relative to *http://localhost:8080*
11
11
  |[**friendControllerFindMutualFriends**](#friendcontrollerfindmutualfriends) | **POST** /v1/friend/mutual/list | |
12
12
  |[**friendControllerGetFriendshipStatus**](#friendcontrollergetfriendshipstatus) | **POST** /v1/friend/status | |
13
13
  |[**friendControllerListMyFriends**](#friendcontrollerlistmyfriends) | **POST** /v1/friend/list | |
14
+ |[**friendControllerMutualFriendsCount**](#friendcontrollermutualfriendscount) | **GET** /v1/friend/mutual-friends-count/{id} | |
14
15
  |[**friendControllerRemoveFriendById**](#friendcontrollerremovefriendbyid) | **POST** /v1/friend/remove | |
15
16
  |[**friendControllerRemoveMutualFriend**](#friendcontrollerremovemutualfriend) | **DELETE** /v1/friend/mutual/{id} | |
16
17
  |[**friendControllerSendFriendRequest**](#friendcontrollersendfriendrequest) | **POST** /v1/friend/send-request | |
@@ -372,6 +373,56 @@ const { status, data } = await apiInstance.friendControllerListMyFriends(
372
373
  - **Accept**: application/json
373
374
 
374
375
 
376
+ ### HTTP response details
377
+ | Status code | Description | Response headers |
378
+ |-------------|-------------|------------------|
379
+ |**200** | | - |
380
+
381
+ [[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)
382
+
383
+ # **friendControllerMutualFriendsCount**
384
+ > FriendSuggestionResponseDTO friendControllerMutualFriendsCount()
385
+
386
+
387
+ ### Example
388
+
389
+ ```typescript
390
+ import {
391
+ FriendsApi,
392
+ Configuration
393
+ } from './api';
394
+
395
+ const configuration = new Configuration();
396
+ const apiInstance = new FriendsApi(configuration);
397
+
398
+ let id: string; // (default to undefined)
399
+
400
+ const { status, data } = await apiInstance.friendControllerMutualFriendsCount(
401
+ id
402
+ );
403
+ ```
404
+
405
+ ### Parameters
406
+
407
+ |Name | Type | Description | Notes|
408
+ |------------- | ------------- | ------------- | -------------|
409
+ | **id** | [**string**] | | defaults to undefined|
410
+
411
+
412
+ ### Return type
413
+
414
+ **FriendSuggestionResponseDTO**
415
+
416
+ ### Authorization
417
+
418
+ [bearer](../README.md#bearer)
419
+
420
+ ### HTTP request headers
421
+
422
+ - **Content-Type**: Not defined
423
+ - **Accept**: application/json
424
+
425
+
375
426
  ### HTTP response details
376
427
  | Status code | Description | Response headers |
377
428
  |-------------|-------------|------------------|
@@ -546,11 +597,21 @@ import {
546
597
  const configuration = new Configuration();
547
598
  const apiInstance = new FriendsApi(configuration);
548
599
 
549
- const { status, data } = await apiInstance.friendControllerSuggestedFriendList();
600
+ let page: number; // (optional) (default to undefined)
601
+ let pageSize: number; // (optional) (default to undefined)
602
+
603
+ const { status, data } = await apiInstance.friendControllerSuggestedFriendList(
604
+ page,
605
+ pageSize
606
+ );
550
607
  ```
551
608
 
552
609
  ### Parameters
553
- This endpoint does not have any parameters.
610
+
611
+ |Name | Type | Description | Notes|
612
+ |------------- | ------------- | ------------- | -------------|
613
+ | **page** | [**number**] | | (optional) defaults to undefined|
614
+ | **pageSize** | [**number**] | | (optional) defaults to undefined|
554
615
 
555
616
 
556
617
  ### Return type
@@ -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-04-29T12:42:47+05:30]
8
+ **date** | **string** | The start date of the booking | [default to 2025-04-29T13:53:15+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-04-29T12:42:47+05:30]
9
- **endDate** | **string** | The end date of the waitlist | [default to 2025-04-29T13:42:47+05:30]
8
+ **startDate** | **string** | The start date of the waitlist | [default to 2025-04-29T13:53:15+05:30]
9
+ **endDate** | **string** | The end date of the waitlist | [default to 2025-04-29T14:53:15+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.36",
3
+ "version": "1.3.37",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},