@gooday_corp/gooday-api-client 1.3.36 → 1.3.39

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,13 @@ export const FriendsApiAxiosParamCreator = function (configuration?: Configurati
15511
15567
  },
15512
15568
  /**
15513
15569
  *
15570
+ * @param {string} [search]
15571
+ * @param {number} [page]
15572
+ * @param {number} [pageSize]
15514
15573
  * @param {*} [options] Override http request option.
15515
15574
  * @throws {RequiredError}
15516
15575
  */
15517
- friendControllerSuggestedFriendList: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15576
+ friendControllerSuggestedFriendList: async (search?: string, page?: number, pageSize?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15518
15577
  const localVarPath = `/v1/friend/suggested-friends`;
15519
15578
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
15520
15579
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -15531,6 +15590,18 @@ export const FriendsApiAxiosParamCreator = function (configuration?: Configurati
15531
15590
  // http bearer authentication required
15532
15591
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
15533
15592
 
15593
+ if (search !== undefined) {
15594
+ localVarQueryParameter['search'] = search;
15595
+ }
15596
+
15597
+ if (page !== undefined) {
15598
+ localVarQueryParameter['page'] = page;
15599
+ }
15600
+
15601
+ if (pageSize !== undefined) {
15602
+ localVarQueryParameter['pageSize'] = pageSize;
15603
+ }
15604
+
15534
15605
 
15535
15606
 
15536
15607
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -15671,6 +15742,18 @@ export const FriendsApiFp = function(configuration?: Configuration) {
15671
15742
  const localVarOperationServerBasePath = operationServerMap['FriendsApi.friendControllerListMyFriends']?.[localVarOperationServerIndex]?.url;
15672
15743
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15673
15744
  },
15745
+ /**
15746
+ *
15747
+ * @param {string} id
15748
+ * @param {*} [options] Override http request option.
15749
+ * @throws {RequiredError}
15750
+ */
15751
+ async friendControllerMutualFriendsCount(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FriendSuggestionResponseDTO>> {
15752
+ const localVarAxiosArgs = await localVarAxiosParamCreator.friendControllerMutualFriendsCount(id, options);
15753
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
15754
+ const localVarOperationServerBasePath = operationServerMap['FriendsApi.friendControllerMutualFriendsCount']?.[localVarOperationServerIndex]?.url;
15755
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15756
+ },
15674
15757
  /**
15675
15758
  *
15676
15759
  * @param {RemoveFriendshipRequestPayload} removeFriendshipRequestPayload
@@ -15709,11 +15792,14 @@ export const FriendsApiFp = function(configuration?: Configuration) {
15709
15792
  },
15710
15793
  /**
15711
15794
  *
15795
+ * @param {string} [search]
15796
+ * @param {number} [page]
15797
+ * @param {number} [pageSize]
15712
15798
  * @param {*} [options] Override http request option.
15713
15799
  * @throws {RequiredError}
15714
15800
  */
15715
- async friendControllerSuggestedFriendList(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FriendsDTO>> {
15716
- const localVarAxiosArgs = await localVarAxiosParamCreator.friendControllerSuggestedFriendList(options);
15801
+ async friendControllerSuggestedFriendList(search?: string, page?: number, pageSize?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FriendsDTO>> {
15802
+ const localVarAxiosArgs = await localVarAxiosParamCreator.friendControllerSuggestedFriendList(search, page, pageSize, options);
15717
15803
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
15718
15804
  const localVarOperationServerBasePath = operationServerMap['FriendsApi.friendControllerSuggestedFriendList']?.[localVarOperationServerIndex]?.url;
15719
15805
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -15804,6 +15890,15 @@ export const FriendsApiFactory = function (configuration?: Configuration, basePa
15804
15890
  friendControllerListMyFriends(findMyFriendRequestPayload: FindMyFriendRequestPayload, options?: RawAxiosRequestConfig): AxiosPromise<FriendsDTO> {
15805
15891
  return localVarFp.friendControllerListMyFriends(findMyFriendRequestPayload, options).then((request) => request(axios, basePath));
15806
15892
  },
15893
+ /**
15894
+ *
15895
+ * @param {string} id
15896
+ * @param {*} [options] Override http request option.
15897
+ * @throws {RequiredError}
15898
+ */
15899
+ friendControllerMutualFriendsCount(id: string, options?: RawAxiosRequestConfig): AxiosPromise<FriendSuggestionResponseDTO> {
15900
+ return localVarFp.friendControllerMutualFriendsCount(id, options).then((request) => request(axios, basePath));
15901
+ },
15807
15902
  /**
15808
15903
  *
15809
15904
  * @param {RemoveFriendshipRequestPayload} removeFriendshipRequestPayload
@@ -15833,11 +15928,14 @@ export const FriendsApiFactory = function (configuration?: Configuration, basePa
15833
15928
  },
15834
15929
  /**
15835
15930
  *
15931
+ * @param {string} [search]
15932
+ * @param {number} [page]
15933
+ * @param {number} [pageSize]
15836
15934
  * @param {*} [options] Override http request option.
15837
15935
  * @throws {RequiredError}
15838
15936
  */
15839
- friendControllerSuggestedFriendList(options?: RawAxiosRequestConfig): AxiosPromise<FriendsDTO> {
15840
- return localVarFp.friendControllerSuggestedFriendList(options).then((request) => request(axios, basePath));
15937
+ friendControllerSuggestedFriendList(search?: string, page?: number, pageSize?: number, options?: RawAxiosRequestConfig): AxiosPromise<FriendsDTO> {
15938
+ return localVarFp.friendControllerSuggestedFriendList(search, page, pageSize, options).then((request) => request(axios, basePath));
15841
15939
  },
15842
15940
  /**
15843
15941
  *
@@ -15936,6 +16034,17 @@ export class FriendsApi extends BaseAPI {
15936
16034
  return FriendsApiFp(this.configuration).friendControllerListMyFriends(findMyFriendRequestPayload, options).then((request) => request(this.axios, this.basePath));
15937
16035
  }
15938
16036
 
16037
+ /**
16038
+ *
16039
+ * @param {string} id
16040
+ * @param {*} [options] Override http request option.
16041
+ * @throws {RequiredError}
16042
+ * @memberof FriendsApi
16043
+ */
16044
+ public friendControllerMutualFriendsCount(id: string, options?: RawAxiosRequestConfig) {
16045
+ return FriendsApiFp(this.configuration).friendControllerMutualFriendsCount(id, options).then((request) => request(this.axios, this.basePath));
16046
+ }
16047
+
15939
16048
  /**
15940
16049
  *
15941
16050
  * @param {RemoveFriendshipRequestPayload} removeFriendshipRequestPayload
@@ -15971,12 +16080,15 @@ export class FriendsApi extends BaseAPI {
15971
16080
 
15972
16081
  /**
15973
16082
  *
16083
+ * @param {string} [search]
16084
+ * @param {number} [page]
16085
+ * @param {number} [pageSize]
15974
16086
  * @param {*} [options] Override http request option.
15975
16087
  * @throws {RequiredError}
15976
16088
  * @memberof FriendsApi
15977
16089
  */
15978
- public friendControllerSuggestedFriendList(options?: RawAxiosRequestConfig) {
15979
- return FriendsApiFp(this.configuration).friendControllerSuggestedFriendList(options).then((request) => request(this.axios, this.basePath));
16090
+ public friendControllerSuggestedFriendList(search?: string, page?: number, pageSize?: number, options?: RawAxiosRequestConfig) {
16091
+ return FriendsApiFp(this.configuration).friendControllerSuggestedFriendList(search, page, pageSize, options).then((request) => request(this.axios, this.basePath));
15980
16092
  }
15981
16093
 
15982
16094
  /**
@@ -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-30T10:21:48+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,24 @@ 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 search: string; // (optional) (default to undefined)
601
+ let page: number; // (optional) (default to undefined)
602
+ let pageSize: number; // (optional) (default to undefined)
603
+
604
+ const { status, data } = await apiInstance.friendControllerSuggestedFriendList(
605
+ search,
606
+ page,
607
+ pageSize
608
+ );
550
609
  ```
551
610
 
552
611
  ### Parameters
553
- This endpoint does not have any parameters.
612
+
613
+ |Name | Type | Description | Notes|
614
+ |------------- | ------------- | ------------- | -------------|
615
+ | **search** | [**string**] | | (optional) defaults to undefined|
616
+ | **page** | [**number**] | | (optional) defaults to undefined|
617
+ | **pageSize** | [**number**] | | (optional) defaults to undefined|
554
618
 
555
619
 
556
620
  ### 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-30T10:21:48+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-30T10:21:48+05:30]
9
+ **endDate** | **string** | The end date of the waitlist | [default to 2025-04-30T11:21:48+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.39",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},