@gooday_corp/gooday-api-client 1.1.12-beta-3 → 1.1.12-zeta
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/api.ts +561 -840
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -60,19 +60,6 @@ export interface AddDevicePayload {
|
|
|
60
60
|
*/
|
|
61
61
|
'version': string;
|
|
62
62
|
}
|
|
63
|
-
/**
|
|
64
|
-
*
|
|
65
|
-
* @export
|
|
66
|
-
* @interface ApproveFriendshipRequestPayload
|
|
67
|
-
*/
|
|
68
|
-
export interface ApproveFriendshipRequestPayload {
|
|
69
|
-
/**
|
|
70
|
-
*
|
|
71
|
-
* @type {string}
|
|
72
|
-
* @memberof ApproveFriendshipRequestPayload
|
|
73
|
-
*/
|
|
74
|
-
'from': string;
|
|
75
|
-
}
|
|
76
63
|
/**
|
|
77
64
|
*
|
|
78
65
|
* @export
|
|
@@ -184,6 +171,12 @@ export interface BusinessEntity {
|
|
|
184
171
|
* @memberof BusinessEntity
|
|
185
172
|
*/
|
|
186
173
|
'policies'?: string;
|
|
174
|
+
/**
|
|
175
|
+
* Business Name
|
|
176
|
+
* @type {string}
|
|
177
|
+
* @memberof BusinessEntity
|
|
178
|
+
*/
|
|
179
|
+
'name'?: string;
|
|
187
180
|
/**
|
|
188
181
|
* Business cancellationFee
|
|
189
182
|
* @type {number}
|
|
@@ -204,10 +197,10 @@ export interface BusinessEntity {
|
|
|
204
197
|
'businessCountry'?: string;
|
|
205
198
|
/**
|
|
206
199
|
* Business Venue
|
|
207
|
-
* @type {Array<
|
|
200
|
+
* @type {Array<string>}
|
|
208
201
|
* @memberof BusinessEntity
|
|
209
202
|
*/
|
|
210
|
-
'venues'?: Array<
|
|
203
|
+
'venues'?: Array<string>;
|
|
211
204
|
/**
|
|
212
205
|
* Business Type
|
|
213
206
|
* @type {string}
|
|
@@ -236,12 +229,45 @@ export interface BusinessEntity {
|
|
|
236
229
|
|
|
237
230
|
export const BusinessEntityStatusEnum = {
|
|
238
231
|
Verified: 'VERIFIED',
|
|
232
|
+
InProgress: 'IN_PROGRESS',
|
|
239
233
|
Pending: 'PENDING',
|
|
240
234
|
QuoteRequested: 'QUOTE_REQUESTED'
|
|
241
235
|
} as const;
|
|
242
236
|
|
|
243
237
|
export type BusinessEntityStatusEnum = typeof BusinessEntityStatusEnum[keyof typeof BusinessEntityStatusEnum];
|
|
244
238
|
|
|
239
|
+
/**
|
|
240
|
+
*
|
|
241
|
+
* @export
|
|
242
|
+
* @interface BusinessFavoriteDTO
|
|
243
|
+
*/
|
|
244
|
+
export interface BusinessFavoriteDTO {
|
|
245
|
+
/**
|
|
246
|
+
* Business Venue Id
|
|
247
|
+
* @type {string}
|
|
248
|
+
* @memberof BusinessFavoriteDTO
|
|
249
|
+
*/
|
|
250
|
+
'venue': string;
|
|
251
|
+
}
|
|
252
|
+
/**
|
|
253
|
+
*
|
|
254
|
+
* @export
|
|
255
|
+
* @interface BusinessFavoriteResponse
|
|
256
|
+
*/
|
|
257
|
+
export interface BusinessFavoriteResponse {
|
|
258
|
+
/**
|
|
259
|
+
* statusCode
|
|
260
|
+
* @type {number}
|
|
261
|
+
* @memberof BusinessFavoriteResponse
|
|
262
|
+
*/
|
|
263
|
+
'statusCode': number;
|
|
264
|
+
/**
|
|
265
|
+
* Business Favorite
|
|
266
|
+
* @type {BusinessFavoriteDTO}
|
|
267
|
+
* @memberof BusinessFavoriteResponse
|
|
268
|
+
*/
|
|
269
|
+
'data': BusinessFavoriteDTO;
|
|
270
|
+
}
|
|
245
271
|
/**
|
|
246
272
|
*
|
|
247
273
|
* @export
|
|
@@ -266,6 +292,12 @@ export interface BusinessOnBoardingDTO {
|
|
|
266
292
|
* @memberof BusinessOnBoardingDTO
|
|
267
293
|
*/
|
|
268
294
|
'policies'?: string;
|
|
295
|
+
/**
|
|
296
|
+
* Business Name
|
|
297
|
+
* @type {string}
|
|
298
|
+
* @memberof BusinessOnBoardingDTO
|
|
299
|
+
*/
|
|
300
|
+
'name'?: string;
|
|
269
301
|
/**
|
|
270
302
|
* Business cancellationFee
|
|
271
303
|
* @type {number}
|
|
@@ -384,6 +416,31 @@ export interface BusinessTypeEntity {
|
|
|
384
416
|
* @memberof BusinessTypeEntity
|
|
385
417
|
*/
|
|
386
418
|
'name': string;
|
|
419
|
+
/**
|
|
420
|
+
* Business Image
|
|
421
|
+
* @type {BusinessTypeImageDTO}
|
|
422
|
+
* @memberof BusinessTypeEntity
|
|
423
|
+
*/
|
|
424
|
+
'images': BusinessTypeImageDTO;
|
|
425
|
+
}
|
|
426
|
+
/**
|
|
427
|
+
*
|
|
428
|
+
* @export
|
|
429
|
+
* @interface BusinessTypeImageDTO
|
|
430
|
+
*/
|
|
431
|
+
export interface BusinessTypeImageDTO {
|
|
432
|
+
/**
|
|
433
|
+
* Business Type Image Small
|
|
434
|
+
* @type {string}
|
|
435
|
+
* @memberof BusinessTypeImageDTO
|
|
436
|
+
*/
|
|
437
|
+
'small': string;
|
|
438
|
+
/**
|
|
439
|
+
* Business Type Image Large
|
|
440
|
+
* @type {string}
|
|
441
|
+
* @memberof BusinessTypeImageDTO
|
|
442
|
+
*/
|
|
443
|
+
'large': string;
|
|
387
444
|
}
|
|
388
445
|
/**
|
|
389
446
|
*
|
|
@@ -404,6 +461,25 @@ export interface BusinessTypeListResponse {
|
|
|
404
461
|
*/
|
|
405
462
|
'data': Array<BusinessTypeEntity>;
|
|
406
463
|
}
|
|
464
|
+
/**
|
|
465
|
+
*
|
|
466
|
+
* @export
|
|
467
|
+
* @interface BusinessUnFavoriteResponse
|
|
468
|
+
*/
|
|
469
|
+
export interface BusinessUnFavoriteResponse {
|
|
470
|
+
/**
|
|
471
|
+
* statusCode
|
|
472
|
+
* @type {number}
|
|
473
|
+
* @memberof BusinessUnFavoriteResponse
|
|
474
|
+
*/
|
|
475
|
+
'statusCode': number;
|
|
476
|
+
/**
|
|
477
|
+
* Business Favorite Rule
|
|
478
|
+
* @type {string}
|
|
479
|
+
* @memberof BusinessUnFavoriteResponse
|
|
480
|
+
*/
|
|
481
|
+
'message': string;
|
|
482
|
+
}
|
|
407
483
|
/**
|
|
408
484
|
*
|
|
409
485
|
* @export
|
|
@@ -411,7 +487,7 @@ export interface BusinessTypeListResponse {
|
|
|
411
487
|
*/
|
|
412
488
|
export interface BusinessVenueDTO {
|
|
413
489
|
/**
|
|
414
|
-
*
|
|
490
|
+
* coverPhots
|
|
415
491
|
* @type {string}
|
|
416
492
|
* @memberof BusinessVenueDTO
|
|
417
493
|
*/
|
|
@@ -428,6 +504,37 @@ export interface BusinessVenueDTO {
|
|
|
428
504
|
* @memberof BusinessVenueDTO
|
|
429
505
|
*/
|
|
430
506
|
'location': LocationDTO;
|
|
507
|
+
/**
|
|
508
|
+
* Description of venue
|
|
509
|
+
* @type {string}
|
|
510
|
+
* @memberof BusinessVenueDTO
|
|
511
|
+
*/
|
|
512
|
+
'description': string;
|
|
513
|
+
/**
|
|
514
|
+
*
|
|
515
|
+
* @type {number}
|
|
516
|
+
* @memberof BusinessVenueDTO
|
|
517
|
+
*/
|
|
518
|
+
'numberOfEmployee': number;
|
|
519
|
+
}
|
|
520
|
+
/**
|
|
521
|
+
*
|
|
522
|
+
* @export
|
|
523
|
+
* @interface BusinessVenueResponseDTO
|
|
524
|
+
*/
|
|
525
|
+
export interface BusinessVenueResponseDTO {
|
|
526
|
+
/**
|
|
527
|
+
* statusCode
|
|
528
|
+
* @type {number}
|
|
529
|
+
* @memberof BusinessVenueResponseDTO
|
|
530
|
+
*/
|
|
531
|
+
'statusCode': number;
|
|
532
|
+
/**
|
|
533
|
+
* Business verification
|
|
534
|
+
* @type {Array<GetBusinessVenueDto>}
|
|
535
|
+
* @memberof BusinessVenueResponseDTO
|
|
536
|
+
*/
|
|
537
|
+
'data': Array<GetBusinessVenueDto>;
|
|
431
538
|
}
|
|
432
539
|
/**
|
|
433
540
|
*
|
|
@@ -492,6 +599,12 @@ export interface CategoryEntity {
|
|
|
492
599
|
* @memberof CategoryEntity
|
|
493
600
|
*/
|
|
494
601
|
'name': string;
|
|
602
|
+
/**
|
|
603
|
+
* Image of category
|
|
604
|
+
* @type {string}
|
|
605
|
+
* @memberof CategoryEntity
|
|
606
|
+
*/
|
|
607
|
+
'image': string;
|
|
495
608
|
/**
|
|
496
609
|
* Unique identifier or reference of the business Type
|
|
497
610
|
* @type {string}
|
|
@@ -555,19 +668,6 @@ export interface CreatePaymentLinkDTO {
|
|
|
555
668
|
*/
|
|
556
669
|
'user': string;
|
|
557
670
|
}
|
|
558
|
-
/**
|
|
559
|
-
*
|
|
560
|
-
* @export
|
|
561
|
-
* @interface DeclineFriendshipRequestPayload
|
|
562
|
-
*/
|
|
563
|
-
export interface DeclineFriendshipRequestPayload {
|
|
564
|
-
/**
|
|
565
|
-
*
|
|
566
|
-
* @type {string}
|
|
567
|
-
* @memberof DeclineFriendshipRequestPayload
|
|
568
|
-
*/
|
|
569
|
-
'from': string;
|
|
570
|
-
}
|
|
571
671
|
/**
|
|
572
672
|
*
|
|
573
673
|
* @export
|
|
@@ -722,84 +822,46 @@ export interface ForgotPasswordResponseDTO {
|
|
|
722
822
|
/**
|
|
723
823
|
*
|
|
724
824
|
* @export
|
|
725
|
-
* @interface
|
|
825
|
+
* @interface GetBusinessVenueDto
|
|
726
826
|
*/
|
|
727
|
-
export interface
|
|
827
|
+
export interface GetBusinessVenueDto {
|
|
728
828
|
/**
|
|
729
|
-
*
|
|
730
|
-
* @type {
|
|
731
|
-
* @memberof
|
|
829
|
+
* Business type ID
|
|
830
|
+
* @type {string}
|
|
831
|
+
* @memberof GetBusinessVenueDto
|
|
732
832
|
*/
|
|
733
|
-
'
|
|
833
|
+
'type'?: string;
|
|
734
834
|
/**
|
|
735
|
-
*
|
|
736
|
-
* @type {
|
|
737
|
-
* @memberof
|
|
835
|
+
* Business category ID
|
|
836
|
+
* @type {string}
|
|
837
|
+
* @memberof GetBusinessVenueDto
|
|
738
838
|
*/
|
|
739
|
-
'
|
|
740
|
-
}
|
|
741
|
-
/**
|
|
742
|
-
*
|
|
743
|
-
* @export
|
|
744
|
-
* @interface FriendsResponseDTO
|
|
745
|
-
*/
|
|
746
|
-
export interface FriendsResponseDTO {
|
|
839
|
+
'category'?: string;
|
|
747
840
|
/**
|
|
748
|
-
*
|
|
841
|
+
* Longitude of the location
|
|
749
842
|
* @type {number}
|
|
750
|
-
* @memberof
|
|
751
|
-
*/
|
|
752
|
-
'statusCode': number;
|
|
753
|
-
/**
|
|
754
|
-
*
|
|
755
|
-
* @type {boolean}
|
|
756
|
-
* @memberof FriendsResponseDTO
|
|
843
|
+
* @memberof GetBusinessVenueDto
|
|
757
844
|
*/
|
|
758
|
-
'
|
|
759
|
-
}
|
|
760
|
-
/**
|
|
761
|
-
*
|
|
762
|
-
* @export
|
|
763
|
-
* @interface FriendshipStatusCheck
|
|
764
|
-
*/
|
|
765
|
-
export interface FriendshipStatusCheck {
|
|
845
|
+
'longitude'?: number;
|
|
766
846
|
/**
|
|
767
|
-
*
|
|
768
|
-
* @type {
|
|
769
|
-
* @memberof
|
|
847
|
+
* Latitude of the location
|
|
848
|
+
* @type {number}
|
|
849
|
+
* @memberof GetBusinessVenueDto
|
|
770
850
|
*/
|
|
771
|
-
'
|
|
772
|
-
}
|
|
773
|
-
/**
|
|
774
|
-
*
|
|
775
|
-
* @export
|
|
776
|
-
* @interface FriendshipStatusDTO
|
|
777
|
-
*/
|
|
778
|
-
export interface FriendshipStatusDTO {
|
|
851
|
+
'latitude'?: number;
|
|
779
852
|
/**
|
|
780
|
-
*
|
|
853
|
+
* Page number for pagination
|
|
781
854
|
* @type {number}
|
|
782
|
-
* @memberof
|
|
855
|
+
* @memberof GetBusinessVenueDto
|
|
783
856
|
*/
|
|
784
|
-
'
|
|
857
|
+
'page'?: number;
|
|
785
858
|
/**
|
|
786
|
-
*
|
|
787
|
-
* @type {
|
|
788
|
-
* @memberof
|
|
859
|
+
* Number of items per page for pagination
|
|
860
|
+
* @type {number}
|
|
861
|
+
* @memberof GetBusinessVenueDto
|
|
789
862
|
*/
|
|
790
|
-
'
|
|
863
|
+
'limit'?: number;
|
|
791
864
|
}
|
|
792
|
-
|
|
793
|
-
export const FriendshipStatusDTOSuccessEnum = {
|
|
794
|
-
Pending: 'PENDING',
|
|
795
|
-
Confirmed: 'CONFIRMED',
|
|
796
|
-
Rejected: 'REJECTED',
|
|
797
|
-
Cancelled: 'CANCELLED',
|
|
798
|
-
Unknown: 'UNKNOWN'
|
|
799
|
-
} as const;
|
|
800
|
-
|
|
801
|
-
export type FriendshipStatusDTOSuccessEnum = typeof FriendshipStatusDTOSuccessEnum[keyof typeof FriendshipStatusDTOSuccessEnum];
|
|
802
|
-
|
|
803
865
|
/**
|
|
804
866
|
*
|
|
805
867
|
* @export
|
|
@@ -1397,19 +1459,6 @@ export interface PriceRangeListResponse {
|
|
|
1397
1459
|
*/
|
|
1398
1460
|
'data': Array<PriceRangeEntity>;
|
|
1399
1461
|
}
|
|
1400
|
-
/**
|
|
1401
|
-
*
|
|
1402
|
-
* @export
|
|
1403
|
-
* @interface RemoveFriendshipRequestPayload
|
|
1404
|
-
*/
|
|
1405
|
-
export interface RemoveFriendshipRequestPayload {
|
|
1406
|
-
/**
|
|
1407
|
-
*
|
|
1408
|
-
* @type {string}
|
|
1409
|
-
* @memberof RemoveFriendshipRequestPayload
|
|
1410
|
-
*/
|
|
1411
|
-
'from': string;
|
|
1412
|
-
}
|
|
1413
1462
|
/**
|
|
1414
1463
|
*
|
|
1415
1464
|
* @export
|
|
@@ -1448,19 +1497,6 @@ export interface ResetPasswordResponseDTO {
|
|
|
1448
1497
|
*/
|
|
1449
1498
|
'message': string;
|
|
1450
1499
|
}
|
|
1451
|
-
/**
|
|
1452
|
-
*
|
|
1453
|
-
* @export
|
|
1454
|
-
* @interface SendFriendshipRequestPayload
|
|
1455
|
-
*/
|
|
1456
|
-
export interface SendFriendshipRequestPayload {
|
|
1457
|
-
/**
|
|
1458
|
-
*
|
|
1459
|
-
* @type {string}
|
|
1460
|
-
* @memberof SendFriendshipRequestPayload
|
|
1461
|
-
*/
|
|
1462
|
-
'to': string;
|
|
1463
|
-
}
|
|
1464
1500
|
/**
|
|
1465
1501
|
*
|
|
1466
1502
|
* @export
|
|
@@ -1561,6 +1597,12 @@ export interface SignupDto {
|
|
|
1561
1597
|
* @memberof SignupDto
|
|
1562
1598
|
*/
|
|
1563
1599
|
'lastName': string;
|
|
1600
|
+
/**
|
|
1601
|
+
* Contact Number For User
|
|
1602
|
+
* @type {string}
|
|
1603
|
+
* @memberof SignupDto
|
|
1604
|
+
*/
|
|
1605
|
+
'phoneNo': string;
|
|
1564
1606
|
/**
|
|
1565
1607
|
* The email of the user
|
|
1566
1608
|
* @type {string}
|
|
@@ -1693,6 +1735,12 @@ export interface UserEntity {
|
|
|
1693
1735
|
* @memberof UserEntity
|
|
1694
1736
|
*/
|
|
1695
1737
|
'_id': string;
|
|
1738
|
+
/**
|
|
1739
|
+
* Unique identifier for the Gooday user
|
|
1740
|
+
* @type {string}
|
|
1741
|
+
* @memberof UserEntity
|
|
1742
|
+
*/
|
|
1743
|
+
'goodayId': string;
|
|
1696
1744
|
/**
|
|
1697
1745
|
* First name of the user
|
|
1698
1746
|
* @type {string}
|
|
@@ -1729,6 +1777,12 @@ export interface UserEntity {
|
|
|
1729
1777
|
* @memberof UserEntity
|
|
1730
1778
|
*/
|
|
1731
1779
|
'assistant': string;
|
|
1780
|
+
/**
|
|
1781
|
+
* Phone No
|
|
1782
|
+
* @type {string}
|
|
1783
|
+
* @memberof UserEntity
|
|
1784
|
+
*/
|
|
1785
|
+
'phoneNo': string;
|
|
1732
1786
|
/**
|
|
1733
1787
|
* Indicates whether the user\'s email has been verified
|
|
1734
1788
|
* @type {boolean}
|
|
@@ -2746,7 +2800,7 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
2746
2800
|
* @throws {RequiredError}
|
|
2747
2801
|
*/
|
|
2748
2802
|
businessControllerListBusinesses: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2749
|
-
const localVarPath = `/business`;
|
|
2803
|
+
const localVarPath = `/v1/business`;
|
|
2750
2804
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2751
2805
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2752
2806
|
let baseOptions;
|
|
@@ -2771,11 +2825,17 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
2771
2825
|
},
|
|
2772
2826
|
/**
|
|
2773
2827
|
*
|
|
2828
|
+
* @param {string} [type] Business type ID
|
|
2829
|
+
* @param {string} [category] Business category ID
|
|
2830
|
+
* @param {number} [longitude] Longitude of the location
|
|
2831
|
+
* @param {number} [latitude] Latitude of the location
|
|
2832
|
+
* @param {number} [page] Page number for pagination
|
|
2833
|
+
* @param {number} [limit] Number of items per page for pagination
|
|
2774
2834
|
* @param {*} [options] Override http request option.
|
|
2775
2835
|
* @throws {RequiredError}
|
|
2776
2836
|
*/
|
|
2777
|
-
|
|
2778
|
-
const localVarPath = `/v1/business/
|
|
2837
|
+
businessTypeControllerGetBusinessVenue: async (type?: string, category?: string, longitude?: number, latitude?: number, page?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2838
|
+
const localVarPath = `/v1/business/business-venue`;
|
|
2779
2839
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2780
2840
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2781
2841
|
let baseOptions;
|
|
@@ -2791,6 +2851,30 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
2791
2851
|
// http bearer authentication required
|
|
2792
2852
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
2793
2853
|
|
|
2854
|
+
if (type !== undefined) {
|
|
2855
|
+
localVarQueryParameter['type'] = type;
|
|
2856
|
+
}
|
|
2857
|
+
|
|
2858
|
+
if (category !== undefined) {
|
|
2859
|
+
localVarQueryParameter['category'] = category;
|
|
2860
|
+
}
|
|
2861
|
+
|
|
2862
|
+
if (longitude !== undefined) {
|
|
2863
|
+
localVarQueryParameter['longitude'] = longitude;
|
|
2864
|
+
}
|
|
2865
|
+
|
|
2866
|
+
if (latitude !== undefined) {
|
|
2867
|
+
localVarQueryParameter['latitude'] = latitude;
|
|
2868
|
+
}
|
|
2869
|
+
|
|
2870
|
+
if (page !== undefined) {
|
|
2871
|
+
localVarQueryParameter['page'] = page;
|
|
2872
|
+
}
|
|
2873
|
+
|
|
2874
|
+
if (limit !== undefined) {
|
|
2875
|
+
localVarQueryParameter['limit'] = limit;
|
|
2876
|
+
}
|
|
2877
|
+
|
|
2794
2878
|
|
|
2795
2879
|
|
|
2796
2880
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -2804,15 +2888,11 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
2804
2888
|
},
|
|
2805
2889
|
/**
|
|
2806
2890
|
*
|
|
2807
|
-
* @param {string} businessType
|
|
2808
2891
|
* @param {*} [options] Override http request option.
|
|
2809
2892
|
* @throws {RequiredError}
|
|
2810
2893
|
*/
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
assertParamExists('businessTypeControllerListCategories', 'businessType', businessType)
|
|
2814
|
-
const localVarPath = `/v1/business/{businessType}/categories`
|
|
2815
|
-
.replace(`{${"businessType"}}`, encodeURIComponent(String(businessType)));
|
|
2894
|
+
businessTypeControllerListBusinessType: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2895
|
+
const localVarPath = `/v1/business/list`;
|
|
2816
2896
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2817
2897
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2818
2898
|
let baseOptions;
|
|
@@ -2841,11 +2921,15 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
2841
2921
|
},
|
|
2842
2922
|
/**
|
|
2843
2923
|
*
|
|
2924
|
+
* @param {string} businessTypeId ID of the business type
|
|
2844
2925
|
* @param {*} [options] Override http request option.
|
|
2845
2926
|
* @throws {RequiredError}
|
|
2846
2927
|
*/
|
|
2847
|
-
|
|
2848
|
-
|
|
2928
|
+
businessTypeControllerListCategories: async (businessTypeId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2929
|
+
// verify required parameter 'businessTypeId' is not null or undefined
|
|
2930
|
+
assertParamExists('businessTypeControllerListCategories', 'businessTypeId', businessTypeId)
|
|
2931
|
+
const localVarPath = `/v1/business/{businessTypeId}/categories`
|
|
2932
|
+
.replace(`{${"businessTypeId"}}`, encodeURIComponent(String(businessTypeId)));
|
|
2849
2933
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2850
2934
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2851
2935
|
let baseOptions;
|
|
@@ -2877,8 +2961,8 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
2877
2961
|
* @param {*} [options] Override http request option.
|
|
2878
2962
|
* @throws {RequiredError}
|
|
2879
2963
|
*/
|
|
2880
|
-
|
|
2881
|
-
const localVarPath = `/v1/business/
|
|
2964
|
+
businessTypeControllerListEmployeesSize: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2965
|
+
const localVarPath = `/v1/business/employee-size`;
|
|
2882
2966
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2883
2967
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2884
2968
|
let baseOptions;
|
|
@@ -2905,50 +2989,215 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
2905
2989
|
options: localVarRequestOptions,
|
|
2906
2990
|
};
|
|
2907
2991
|
},
|
|
2908
|
-
}
|
|
2909
|
-
};
|
|
2910
|
-
|
|
2911
|
-
/**
|
|
2912
|
-
* BusinessApi - functional programming interface
|
|
2913
|
-
* @export
|
|
2914
|
-
*/
|
|
2915
|
-
export const BusinessApiFp = function(configuration?: Configuration) {
|
|
2916
|
-
const localVarAxiosParamCreator = BusinessApiAxiosParamCreator(configuration)
|
|
2917
|
-
return {
|
|
2918
|
-
/**
|
|
2919
|
-
*
|
|
2920
|
-
* @param {BusinessOnBoardingDTO} businessOnBoardingDTO
|
|
2921
|
-
* @param {*} [options] Override http request option.
|
|
2922
|
-
* @throws {RequiredError}
|
|
2923
|
-
*/
|
|
2924
|
-
async businessControllerBusinessOnboarding(businessOnBoardingDTO: BusinessOnBoardingDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BusinessOnBoardingResponseDTO>> {
|
|
2925
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.businessControllerBusinessOnboarding(businessOnBoardingDTO, options);
|
|
2926
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2927
|
-
const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessControllerBusinessOnboarding']?.[localVarOperationServerIndex]?.url;
|
|
2928
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2929
|
-
},
|
|
2930
2992
|
/**
|
|
2931
2993
|
*
|
|
2932
2994
|
* @param {*} [options] Override http request option.
|
|
2933
2995
|
* @throws {RequiredError}
|
|
2934
2996
|
*/
|
|
2935
|
-
async
|
|
2936
|
-
const
|
|
2937
|
-
|
|
2938
|
-
const
|
|
2939
|
-
|
|
2997
|
+
businessTypeControllerListPriceRange: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2998
|
+
const localVarPath = `/v1/business/price-range`;
|
|
2999
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3000
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3001
|
+
let baseOptions;
|
|
3002
|
+
if (configuration) {
|
|
3003
|
+
baseOptions = configuration.baseOptions;
|
|
3004
|
+
}
|
|
3005
|
+
|
|
3006
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
3007
|
+
const localVarHeaderParameter = {} as any;
|
|
3008
|
+
const localVarQueryParameter = {} as any;
|
|
3009
|
+
|
|
3010
|
+
// authentication bearer required
|
|
3011
|
+
// http bearer authentication required
|
|
3012
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
3013
|
+
|
|
3014
|
+
|
|
3015
|
+
|
|
3016
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3017
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3018
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3019
|
+
|
|
3020
|
+
return {
|
|
3021
|
+
url: toPathString(localVarUrlObj),
|
|
3022
|
+
options: localVarRequestOptions,
|
|
3023
|
+
};
|
|
2940
3024
|
},
|
|
2941
3025
|
/**
|
|
2942
3026
|
*
|
|
3027
|
+
* @param {BusinessFavoriteDTO} businessFavoriteDTO
|
|
2943
3028
|
* @param {*} [options] Override http request option.
|
|
2944
3029
|
* @throws {RequiredError}
|
|
2945
3030
|
*/
|
|
2946
|
-
async
|
|
2947
|
-
|
|
2948
|
-
|
|
3031
|
+
businessTypeControllerMarkBusinessAsFavorite: async (businessFavoriteDTO: BusinessFavoriteDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3032
|
+
// verify required parameter 'businessFavoriteDTO' is not null or undefined
|
|
3033
|
+
assertParamExists('businessTypeControllerMarkBusinessAsFavorite', 'businessFavoriteDTO', businessFavoriteDTO)
|
|
3034
|
+
const localVarPath = `/v1/business/favorite`;
|
|
3035
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3036
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3037
|
+
let baseOptions;
|
|
3038
|
+
if (configuration) {
|
|
3039
|
+
baseOptions = configuration.baseOptions;
|
|
3040
|
+
}
|
|
3041
|
+
|
|
3042
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
3043
|
+
const localVarHeaderParameter = {} as any;
|
|
3044
|
+
const localVarQueryParameter = {} as any;
|
|
3045
|
+
|
|
3046
|
+
// authentication bearer required
|
|
3047
|
+
// http bearer authentication required
|
|
3048
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
3049
|
+
|
|
3050
|
+
|
|
3051
|
+
|
|
3052
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3053
|
+
|
|
3054
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3055
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3056
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3057
|
+
localVarRequestOptions.data = serializeDataIfNeeded(businessFavoriteDTO, localVarRequestOptions, configuration)
|
|
3058
|
+
|
|
3059
|
+
return {
|
|
3060
|
+
url: toPathString(localVarUrlObj),
|
|
3061
|
+
options: localVarRequestOptions,
|
|
3062
|
+
};
|
|
3063
|
+
},
|
|
3064
|
+
/**
|
|
3065
|
+
*
|
|
3066
|
+
* @param {BusinessFavoriteDTO} businessFavoriteDTO
|
|
3067
|
+
* @param {*} [options] Override http request option.
|
|
3068
|
+
* @throws {RequiredError}
|
|
3069
|
+
*/
|
|
3070
|
+
businessTypeControllerUnFavoriteBusiness: async (businessFavoriteDTO: BusinessFavoriteDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3071
|
+
// verify required parameter 'businessFavoriteDTO' is not null or undefined
|
|
3072
|
+
assertParamExists('businessTypeControllerUnFavoriteBusiness', 'businessFavoriteDTO', businessFavoriteDTO)
|
|
3073
|
+
const localVarPath = `/v1/business/unfavorite`;
|
|
3074
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3075
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3076
|
+
let baseOptions;
|
|
3077
|
+
if (configuration) {
|
|
3078
|
+
baseOptions = configuration.baseOptions;
|
|
3079
|
+
}
|
|
3080
|
+
|
|
3081
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
3082
|
+
const localVarHeaderParameter = {} as any;
|
|
3083
|
+
const localVarQueryParameter = {} as any;
|
|
3084
|
+
|
|
3085
|
+
// authentication bearer required
|
|
3086
|
+
// http bearer authentication required
|
|
3087
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
3088
|
+
|
|
3089
|
+
|
|
3090
|
+
|
|
3091
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3092
|
+
|
|
3093
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3094
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3095
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3096
|
+
localVarRequestOptions.data = serializeDataIfNeeded(businessFavoriteDTO, localVarRequestOptions, configuration)
|
|
3097
|
+
|
|
3098
|
+
return {
|
|
3099
|
+
url: toPathString(localVarUrlObj),
|
|
3100
|
+
options: localVarRequestOptions,
|
|
3101
|
+
};
|
|
3102
|
+
},
|
|
3103
|
+
/**
|
|
3104
|
+
*
|
|
3105
|
+
* @param {BusinessVerificationControllerABNVerificationTypeEnum} type The type of business verification number (e.g., ABN, NZBN)
|
|
3106
|
+
* @param {string} businessNumber
|
|
3107
|
+
* @param {*} [options] Override http request option.
|
|
3108
|
+
* @throws {RequiredError}
|
|
3109
|
+
*/
|
|
3110
|
+
businessVerificationControllerABNVerification: async (type: BusinessVerificationControllerABNVerificationTypeEnum, businessNumber: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3111
|
+
// verify required parameter 'type' is not null or undefined
|
|
3112
|
+
assertParamExists('businessVerificationControllerABNVerification', 'type', type)
|
|
3113
|
+
// verify required parameter 'businessNumber' is not null or undefined
|
|
3114
|
+
assertParamExists('businessVerificationControllerABNVerification', 'businessNumber', businessNumber)
|
|
3115
|
+
const localVarPath = `/v1/business/verify/{type}/{businessNumber}`
|
|
3116
|
+
.replace(`{${"type"}}`, encodeURIComponent(String(type)))
|
|
3117
|
+
.replace(`{${"businessNumber"}}`, encodeURIComponent(String(businessNumber)));
|
|
3118
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3119
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3120
|
+
let baseOptions;
|
|
3121
|
+
if (configuration) {
|
|
3122
|
+
baseOptions = configuration.baseOptions;
|
|
3123
|
+
}
|
|
3124
|
+
|
|
3125
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
3126
|
+
const localVarHeaderParameter = {} as any;
|
|
3127
|
+
const localVarQueryParameter = {} as any;
|
|
3128
|
+
|
|
3129
|
+
|
|
3130
|
+
|
|
3131
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3132
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3133
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3134
|
+
|
|
3135
|
+
return {
|
|
3136
|
+
url: toPathString(localVarUrlObj),
|
|
3137
|
+
options: localVarRequestOptions,
|
|
3138
|
+
};
|
|
3139
|
+
},
|
|
3140
|
+
}
|
|
3141
|
+
};
|
|
3142
|
+
|
|
3143
|
+
/**
|
|
3144
|
+
* BusinessApi - functional programming interface
|
|
3145
|
+
* @export
|
|
3146
|
+
*/
|
|
3147
|
+
export const BusinessApiFp = function(configuration?: Configuration) {
|
|
3148
|
+
const localVarAxiosParamCreator = BusinessApiAxiosParamCreator(configuration)
|
|
3149
|
+
return {
|
|
3150
|
+
/**
|
|
3151
|
+
*
|
|
3152
|
+
* @param {BusinessOnBoardingDTO} businessOnBoardingDTO
|
|
3153
|
+
* @param {*} [options] Override http request option.
|
|
3154
|
+
* @throws {RequiredError}
|
|
3155
|
+
*/
|
|
3156
|
+
async businessControllerBusinessOnboarding(businessOnBoardingDTO: BusinessOnBoardingDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BusinessOnBoardingResponseDTO>> {
|
|
3157
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.businessControllerBusinessOnboarding(businessOnBoardingDTO, options);
|
|
3158
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3159
|
+
const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessControllerBusinessOnboarding']?.[localVarOperationServerIndex]?.url;
|
|
3160
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3161
|
+
},
|
|
3162
|
+
/**
|
|
3163
|
+
*
|
|
3164
|
+
* @param {*} [options] Override http request option.
|
|
3165
|
+
* @throws {RequiredError}
|
|
3166
|
+
*/
|
|
3167
|
+
async businessControllerGetMe(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BusinessOnBoardingResponseDTO>> {
|
|
3168
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.businessControllerGetMe(options);
|
|
3169
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3170
|
+
const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessControllerGetMe']?.[localVarOperationServerIndex]?.url;
|
|
3171
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3172
|
+
},
|
|
3173
|
+
/**
|
|
3174
|
+
*
|
|
3175
|
+
* @param {*} [options] Override http request option.
|
|
3176
|
+
* @throws {RequiredError}
|
|
3177
|
+
*/
|
|
3178
|
+
async businessControllerListBusinesses(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BusinessOnBoardingResponseDTO>>> {
|
|
3179
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.businessControllerListBusinesses(options);
|
|
3180
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2949
3181
|
const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessControllerListBusinesses']?.[localVarOperationServerIndex]?.url;
|
|
2950
3182
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2951
3183
|
},
|
|
3184
|
+
/**
|
|
3185
|
+
*
|
|
3186
|
+
* @param {string} [type] Business type ID
|
|
3187
|
+
* @param {string} [category] Business category ID
|
|
3188
|
+
* @param {number} [longitude] Longitude of the location
|
|
3189
|
+
* @param {number} [latitude] Latitude of the location
|
|
3190
|
+
* @param {number} [page] Page number for pagination
|
|
3191
|
+
* @param {number} [limit] Number of items per page for pagination
|
|
3192
|
+
* @param {*} [options] Override http request option.
|
|
3193
|
+
* @throws {RequiredError}
|
|
3194
|
+
*/
|
|
3195
|
+
async businessTypeControllerGetBusinessVenue(type?: string, category?: string, longitude?: number, latitude?: number, page?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BusinessVenueResponseDTO>> {
|
|
3196
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.businessTypeControllerGetBusinessVenue(type, category, longitude, latitude, page, limit, options);
|
|
3197
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3198
|
+
const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessTypeControllerGetBusinessVenue']?.[localVarOperationServerIndex]?.url;
|
|
3199
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3200
|
+
},
|
|
2952
3201
|
/**
|
|
2953
3202
|
*
|
|
2954
3203
|
* @param {*} [options] Override http request option.
|
|
@@ -2962,12 +3211,12 @@ export const BusinessApiFp = function(configuration?: Configuration) {
|
|
|
2962
3211
|
},
|
|
2963
3212
|
/**
|
|
2964
3213
|
*
|
|
2965
|
-
* @param {string}
|
|
3214
|
+
* @param {string} businessTypeId ID of the business type
|
|
2966
3215
|
* @param {*} [options] Override http request option.
|
|
2967
3216
|
* @throws {RequiredError}
|
|
2968
3217
|
*/
|
|
2969
|
-
async businessTypeControllerListCategories(
|
|
2970
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.businessTypeControllerListCategories(
|
|
3218
|
+
async businessTypeControllerListCategories(businessTypeId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CategoryListResponse>> {
|
|
3219
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.businessTypeControllerListCategories(businessTypeId, options);
|
|
2971
3220
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2972
3221
|
const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessTypeControllerListCategories']?.[localVarOperationServerIndex]?.url;
|
|
2973
3222
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2994,6 +3243,43 @@ export const BusinessApiFp = function(configuration?: Configuration) {
|
|
|
2994
3243
|
const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessTypeControllerListPriceRange']?.[localVarOperationServerIndex]?.url;
|
|
2995
3244
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2996
3245
|
},
|
|
3246
|
+
/**
|
|
3247
|
+
*
|
|
3248
|
+
* @param {BusinessFavoriteDTO} businessFavoriteDTO
|
|
3249
|
+
* @param {*} [options] Override http request option.
|
|
3250
|
+
* @throws {RequiredError}
|
|
3251
|
+
*/
|
|
3252
|
+
async businessTypeControllerMarkBusinessAsFavorite(businessFavoriteDTO: BusinessFavoriteDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BusinessFavoriteResponse>> {
|
|
3253
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.businessTypeControllerMarkBusinessAsFavorite(businessFavoriteDTO, options);
|
|
3254
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3255
|
+
const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessTypeControllerMarkBusinessAsFavorite']?.[localVarOperationServerIndex]?.url;
|
|
3256
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3257
|
+
},
|
|
3258
|
+
/**
|
|
3259
|
+
*
|
|
3260
|
+
* @param {BusinessFavoriteDTO} businessFavoriteDTO
|
|
3261
|
+
* @param {*} [options] Override http request option.
|
|
3262
|
+
* @throws {RequiredError}
|
|
3263
|
+
*/
|
|
3264
|
+
async businessTypeControllerUnFavoriteBusiness(businessFavoriteDTO: BusinessFavoriteDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BusinessUnFavoriteResponse>> {
|
|
3265
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.businessTypeControllerUnFavoriteBusiness(businessFavoriteDTO, options);
|
|
3266
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3267
|
+
const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessTypeControllerUnFavoriteBusiness']?.[localVarOperationServerIndex]?.url;
|
|
3268
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3269
|
+
},
|
|
3270
|
+
/**
|
|
3271
|
+
*
|
|
3272
|
+
* @param {BusinessVerificationControllerABNVerificationTypeEnum} type The type of business verification number (e.g., ABN, NZBN)
|
|
3273
|
+
* @param {string} businessNumber
|
|
3274
|
+
* @param {*} [options] Override http request option.
|
|
3275
|
+
* @throws {RequiredError}
|
|
3276
|
+
*/
|
|
3277
|
+
async businessVerificationControllerABNVerification(type: BusinessVerificationControllerABNVerificationTypeEnum, businessNumber: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BusinessVerificationResponse>> {
|
|
3278
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.businessVerificationControllerABNVerification(type, businessNumber, options);
|
|
3279
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3280
|
+
const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessVerificationControllerABNVerification']?.[localVarOperationServerIndex]?.url;
|
|
3281
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3282
|
+
},
|
|
2997
3283
|
}
|
|
2998
3284
|
};
|
|
2999
3285
|
|
|
@@ -3026,9 +3312,23 @@ export const BusinessApiFactory = function (configuration?: Configuration, baseP
|
|
|
3026
3312
|
* @param {*} [options] Override http request option.
|
|
3027
3313
|
* @throws {RequiredError}
|
|
3028
3314
|
*/
|
|
3029
|
-
businessControllerListBusinesses(options?: RawAxiosRequestConfig): AxiosPromise<
|
|
3315
|
+
businessControllerListBusinesses(options?: RawAxiosRequestConfig): AxiosPromise<Array<BusinessOnBoardingResponseDTO>> {
|
|
3030
3316
|
return localVarFp.businessControllerListBusinesses(options).then((request) => request(axios, basePath));
|
|
3031
3317
|
},
|
|
3318
|
+
/**
|
|
3319
|
+
*
|
|
3320
|
+
* @param {string} [type] Business type ID
|
|
3321
|
+
* @param {string} [category] Business category ID
|
|
3322
|
+
* @param {number} [longitude] Longitude of the location
|
|
3323
|
+
* @param {number} [latitude] Latitude of the location
|
|
3324
|
+
* @param {number} [page] Page number for pagination
|
|
3325
|
+
* @param {number} [limit] Number of items per page for pagination
|
|
3326
|
+
* @param {*} [options] Override http request option.
|
|
3327
|
+
* @throws {RequiredError}
|
|
3328
|
+
*/
|
|
3329
|
+
businessTypeControllerGetBusinessVenue(type?: string, category?: string, longitude?: number, latitude?: number, page?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<BusinessVenueResponseDTO> {
|
|
3330
|
+
return localVarFp.businessTypeControllerGetBusinessVenue(type, category, longitude, latitude, page, limit, options).then((request) => request(axios, basePath));
|
|
3331
|
+
},
|
|
3032
3332
|
/**
|
|
3033
3333
|
*
|
|
3034
3334
|
* @param {*} [options] Override http request option.
|
|
@@ -3039,12 +3339,12 @@ export const BusinessApiFactory = function (configuration?: Configuration, baseP
|
|
|
3039
3339
|
},
|
|
3040
3340
|
/**
|
|
3041
3341
|
*
|
|
3042
|
-
* @param {string}
|
|
3342
|
+
* @param {string} businessTypeId ID of the business type
|
|
3043
3343
|
* @param {*} [options] Override http request option.
|
|
3044
3344
|
* @throws {RequiredError}
|
|
3045
3345
|
*/
|
|
3046
|
-
businessTypeControllerListCategories(
|
|
3047
|
-
return localVarFp.businessTypeControllerListCategories(
|
|
3346
|
+
businessTypeControllerListCategories(businessTypeId: string, options?: RawAxiosRequestConfig): AxiosPromise<CategoryListResponse> {
|
|
3347
|
+
return localVarFp.businessTypeControllerListCategories(businessTypeId, options).then((request) => request(axios, basePath));
|
|
3048
3348
|
},
|
|
3049
3349
|
/**
|
|
3050
3350
|
*
|
|
@@ -3062,6 +3362,34 @@ export const BusinessApiFactory = function (configuration?: Configuration, baseP
|
|
|
3062
3362
|
businessTypeControllerListPriceRange(options?: RawAxiosRequestConfig): AxiosPromise<PriceRangeListResponse> {
|
|
3063
3363
|
return localVarFp.businessTypeControllerListPriceRange(options).then((request) => request(axios, basePath));
|
|
3064
3364
|
},
|
|
3365
|
+
/**
|
|
3366
|
+
*
|
|
3367
|
+
* @param {BusinessFavoriteDTO} businessFavoriteDTO
|
|
3368
|
+
* @param {*} [options] Override http request option.
|
|
3369
|
+
* @throws {RequiredError}
|
|
3370
|
+
*/
|
|
3371
|
+
businessTypeControllerMarkBusinessAsFavorite(businessFavoriteDTO: BusinessFavoriteDTO, options?: RawAxiosRequestConfig): AxiosPromise<BusinessFavoriteResponse> {
|
|
3372
|
+
return localVarFp.businessTypeControllerMarkBusinessAsFavorite(businessFavoriteDTO, options).then((request) => request(axios, basePath));
|
|
3373
|
+
},
|
|
3374
|
+
/**
|
|
3375
|
+
*
|
|
3376
|
+
* @param {BusinessFavoriteDTO} businessFavoriteDTO
|
|
3377
|
+
* @param {*} [options] Override http request option.
|
|
3378
|
+
* @throws {RequiredError}
|
|
3379
|
+
*/
|
|
3380
|
+
businessTypeControllerUnFavoriteBusiness(businessFavoriteDTO: BusinessFavoriteDTO, options?: RawAxiosRequestConfig): AxiosPromise<BusinessUnFavoriteResponse> {
|
|
3381
|
+
return localVarFp.businessTypeControllerUnFavoriteBusiness(businessFavoriteDTO, options).then((request) => request(axios, basePath));
|
|
3382
|
+
},
|
|
3383
|
+
/**
|
|
3384
|
+
*
|
|
3385
|
+
* @param {BusinessVerificationControllerABNVerificationTypeEnum} type The type of business verification number (e.g., ABN, NZBN)
|
|
3386
|
+
* @param {string} businessNumber
|
|
3387
|
+
* @param {*} [options] Override http request option.
|
|
3388
|
+
* @throws {RequiredError}
|
|
3389
|
+
*/
|
|
3390
|
+
businessVerificationControllerABNVerification(type: BusinessVerificationControllerABNVerificationTypeEnum, businessNumber: string, options?: RawAxiosRequestConfig): AxiosPromise<BusinessVerificationResponse> {
|
|
3391
|
+
return localVarFp.businessVerificationControllerABNVerification(type, businessNumber, options).then((request) => request(axios, basePath));
|
|
3392
|
+
},
|
|
3065
3393
|
};
|
|
3066
3394
|
};
|
|
3067
3395
|
|
|
@@ -3103,6 +3431,22 @@ export class BusinessApi extends BaseAPI {
|
|
|
3103
3431
|
return BusinessApiFp(this.configuration).businessControllerListBusinesses(options).then((request) => request(this.axios, this.basePath));
|
|
3104
3432
|
}
|
|
3105
3433
|
|
|
3434
|
+
/**
|
|
3435
|
+
*
|
|
3436
|
+
* @param {string} [type] Business type ID
|
|
3437
|
+
* @param {string} [category] Business category ID
|
|
3438
|
+
* @param {number} [longitude] Longitude of the location
|
|
3439
|
+
* @param {number} [latitude] Latitude of the location
|
|
3440
|
+
* @param {number} [page] Page number for pagination
|
|
3441
|
+
* @param {number} [limit] Number of items per page for pagination
|
|
3442
|
+
* @param {*} [options] Override http request option.
|
|
3443
|
+
* @throws {RequiredError}
|
|
3444
|
+
* @memberof BusinessApi
|
|
3445
|
+
*/
|
|
3446
|
+
public businessTypeControllerGetBusinessVenue(type?: string, category?: string, longitude?: number, latitude?: number, page?: number, limit?: number, options?: RawAxiosRequestConfig) {
|
|
3447
|
+
return BusinessApiFp(this.configuration).businessTypeControllerGetBusinessVenue(type, category, longitude, latitude, page, limit, options).then((request) => request(this.axios, this.basePath));
|
|
3448
|
+
}
|
|
3449
|
+
|
|
3106
3450
|
/**
|
|
3107
3451
|
*
|
|
3108
3452
|
* @param {*} [options] Override http request option.
|
|
@@ -3115,13 +3459,13 @@ export class BusinessApi extends BaseAPI {
|
|
|
3115
3459
|
|
|
3116
3460
|
/**
|
|
3117
3461
|
*
|
|
3118
|
-
* @param {string}
|
|
3462
|
+
* @param {string} businessTypeId ID of the business type
|
|
3119
3463
|
* @param {*} [options] Override http request option.
|
|
3120
3464
|
* @throws {RequiredError}
|
|
3121
3465
|
* @memberof BusinessApi
|
|
3122
3466
|
*/
|
|
3123
|
-
public businessTypeControllerListCategories(
|
|
3124
|
-
return BusinessApiFp(this.configuration).businessTypeControllerListCategories(
|
|
3467
|
+
public businessTypeControllerListCategories(businessTypeId: string, options?: RawAxiosRequestConfig) {
|
|
3468
|
+
return BusinessApiFp(this.configuration).businessTypeControllerListCategories(businessTypeId, options).then((request) => request(this.axios, this.basePath));
|
|
3125
3469
|
}
|
|
3126
3470
|
|
|
3127
3471
|
/**
|
|
@@ -3143,140 +3487,63 @@ export class BusinessApi extends BaseAPI {
|
|
|
3143
3487
|
public businessTypeControllerListPriceRange(options?: RawAxiosRequestConfig) {
|
|
3144
3488
|
return BusinessApiFp(this.configuration).businessTypeControllerListPriceRange(options).then((request) => request(this.axios, this.basePath));
|
|
3145
3489
|
}
|
|
3490
|
+
|
|
3491
|
+
/**
|
|
3492
|
+
*
|
|
3493
|
+
* @param {BusinessFavoriteDTO} businessFavoriteDTO
|
|
3494
|
+
* @param {*} [options] Override http request option.
|
|
3495
|
+
* @throws {RequiredError}
|
|
3496
|
+
* @memberof BusinessApi
|
|
3497
|
+
*/
|
|
3498
|
+
public businessTypeControllerMarkBusinessAsFavorite(businessFavoriteDTO: BusinessFavoriteDTO, options?: RawAxiosRequestConfig) {
|
|
3499
|
+
return BusinessApiFp(this.configuration).businessTypeControllerMarkBusinessAsFavorite(businessFavoriteDTO, options).then((request) => request(this.axios, this.basePath));
|
|
3500
|
+
}
|
|
3501
|
+
|
|
3502
|
+
/**
|
|
3503
|
+
*
|
|
3504
|
+
* @param {BusinessFavoriteDTO} businessFavoriteDTO
|
|
3505
|
+
* @param {*} [options] Override http request option.
|
|
3506
|
+
* @throws {RequiredError}
|
|
3507
|
+
* @memberof BusinessApi
|
|
3508
|
+
*/
|
|
3509
|
+
public businessTypeControllerUnFavoriteBusiness(businessFavoriteDTO: BusinessFavoriteDTO, options?: RawAxiosRequestConfig) {
|
|
3510
|
+
return BusinessApiFp(this.configuration).businessTypeControllerUnFavoriteBusiness(businessFavoriteDTO, options).then((request) => request(this.axios, this.basePath));
|
|
3511
|
+
}
|
|
3512
|
+
|
|
3513
|
+
/**
|
|
3514
|
+
*
|
|
3515
|
+
* @param {BusinessVerificationControllerABNVerificationTypeEnum} type The type of business verification number (e.g., ABN, NZBN)
|
|
3516
|
+
* @param {string} businessNumber
|
|
3517
|
+
* @param {*} [options] Override http request option.
|
|
3518
|
+
* @throws {RequiredError}
|
|
3519
|
+
* @memberof BusinessApi
|
|
3520
|
+
*/
|
|
3521
|
+
public businessVerificationControllerABNVerification(type: BusinessVerificationControllerABNVerificationTypeEnum, businessNumber: string, options?: RawAxiosRequestConfig) {
|
|
3522
|
+
return BusinessApiFp(this.configuration).businessVerificationControllerABNVerification(type, businessNumber, options).then((request) => request(this.axios, this.basePath));
|
|
3523
|
+
}
|
|
3146
3524
|
}
|
|
3147
3525
|
|
|
3526
|
+
/**
|
|
3527
|
+
* @export
|
|
3528
|
+
*/
|
|
3529
|
+
export const BusinessVerificationControllerABNVerificationTypeEnum = {
|
|
3530
|
+
Abn: 'ABN',
|
|
3531
|
+
Nzbn: 'NZBN',
|
|
3532
|
+
Crn: 'CRN',
|
|
3533
|
+
Ein: 'EIN'
|
|
3534
|
+
} as const;
|
|
3535
|
+
export type BusinessVerificationControllerABNVerificationTypeEnum = typeof BusinessVerificationControllerABNVerificationTypeEnum[keyof typeof BusinessVerificationControllerABNVerificationTypeEnum];
|
|
3148
3536
|
|
|
3149
3537
|
|
|
3150
3538
|
/**
|
|
3151
|
-
*
|
|
3539
|
+
* DeviceApi - axios parameter creator
|
|
3152
3540
|
* @export
|
|
3153
3541
|
*/
|
|
3154
|
-
export const
|
|
3542
|
+
export const DeviceApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
3155
3543
|
return {
|
|
3156
3544
|
/**
|
|
3157
3545
|
*
|
|
3158
|
-
* @param {
|
|
3159
|
-
* @param {string} businessNumber
|
|
3160
|
-
* @param {*} [options] Override http request option.
|
|
3161
|
-
* @throws {RequiredError}
|
|
3162
|
-
*/
|
|
3163
|
-
businessVerificationControllerABNVerification: async (type: BusinessVerificationControllerABNVerificationTypeEnum, businessNumber: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3164
|
-
// verify required parameter 'type' is not null or undefined
|
|
3165
|
-
assertParamExists('businessVerificationControllerABNVerification', 'type', type)
|
|
3166
|
-
// verify required parameter 'businessNumber' is not null or undefined
|
|
3167
|
-
assertParamExists('businessVerificationControllerABNVerification', 'businessNumber', businessNumber)
|
|
3168
|
-
const localVarPath = `/v1/business/verify/{type}/{businessNumber}`
|
|
3169
|
-
.replace(`{${"type"}}`, encodeURIComponent(String(type)))
|
|
3170
|
-
.replace(`{${"businessNumber"}}`, encodeURIComponent(String(businessNumber)));
|
|
3171
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3172
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3173
|
-
let baseOptions;
|
|
3174
|
-
if (configuration) {
|
|
3175
|
-
baseOptions = configuration.baseOptions;
|
|
3176
|
-
}
|
|
3177
|
-
|
|
3178
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
3179
|
-
const localVarHeaderParameter = {} as any;
|
|
3180
|
-
const localVarQueryParameter = {} as any;
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3185
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3186
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3187
|
-
|
|
3188
|
-
return {
|
|
3189
|
-
url: toPathString(localVarUrlObj),
|
|
3190
|
-
options: localVarRequestOptions,
|
|
3191
|
-
};
|
|
3192
|
-
},
|
|
3193
|
-
}
|
|
3194
|
-
};
|
|
3195
|
-
|
|
3196
|
-
/**
|
|
3197
|
-
* BusinessVerificationApi - functional programming interface
|
|
3198
|
-
* @export
|
|
3199
|
-
*/
|
|
3200
|
-
export const BusinessVerificationApiFp = function(configuration?: Configuration) {
|
|
3201
|
-
const localVarAxiosParamCreator = BusinessVerificationApiAxiosParamCreator(configuration)
|
|
3202
|
-
return {
|
|
3203
|
-
/**
|
|
3204
|
-
*
|
|
3205
|
-
* @param {BusinessVerificationControllerABNVerificationTypeEnum} type The type of business verification number (e.g., ABN, NZBN)
|
|
3206
|
-
* @param {string} businessNumber
|
|
3207
|
-
* @param {*} [options] Override http request option.
|
|
3208
|
-
* @throws {RequiredError}
|
|
3209
|
-
*/
|
|
3210
|
-
async businessVerificationControllerABNVerification(type: BusinessVerificationControllerABNVerificationTypeEnum, businessNumber: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BusinessVerificationResponse>> {
|
|
3211
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.businessVerificationControllerABNVerification(type, businessNumber, options);
|
|
3212
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3213
|
-
const localVarOperationServerBasePath = operationServerMap['BusinessVerificationApi.businessVerificationControllerABNVerification']?.[localVarOperationServerIndex]?.url;
|
|
3214
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3215
|
-
},
|
|
3216
|
-
}
|
|
3217
|
-
};
|
|
3218
|
-
|
|
3219
|
-
/**
|
|
3220
|
-
* BusinessVerificationApi - factory interface
|
|
3221
|
-
* @export
|
|
3222
|
-
*/
|
|
3223
|
-
export const BusinessVerificationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
3224
|
-
const localVarFp = BusinessVerificationApiFp(configuration)
|
|
3225
|
-
return {
|
|
3226
|
-
/**
|
|
3227
|
-
*
|
|
3228
|
-
* @param {BusinessVerificationControllerABNVerificationTypeEnum} type The type of business verification number (e.g., ABN, NZBN)
|
|
3229
|
-
* @param {string} businessNumber
|
|
3230
|
-
* @param {*} [options] Override http request option.
|
|
3231
|
-
* @throws {RequiredError}
|
|
3232
|
-
*/
|
|
3233
|
-
businessVerificationControllerABNVerification(type: BusinessVerificationControllerABNVerificationTypeEnum, businessNumber: string, options?: RawAxiosRequestConfig): AxiosPromise<BusinessVerificationResponse> {
|
|
3234
|
-
return localVarFp.businessVerificationControllerABNVerification(type, businessNumber, options).then((request) => request(axios, basePath));
|
|
3235
|
-
},
|
|
3236
|
-
};
|
|
3237
|
-
};
|
|
3238
|
-
|
|
3239
|
-
/**
|
|
3240
|
-
* BusinessVerificationApi - object-oriented interface
|
|
3241
|
-
* @export
|
|
3242
|
-
* @class BusinessVerificationApi
|
|
3243
|
-
* @extends {BaseAPI}
|
|
3244
|
-
*/
|
|
3245
|
-
export class BusinessVerificationApi extends BaseAPI {
|
|
3246
|
-
/**
|
|
3247
|
-
*
|
|
3248
|
-
* @param {BusinessVerificationControllerABNVerificationTypeEnum} type The type of business verification number (e.g., ABN, NZBN)
|
|
3249
|
-
* @param {string} businessNumber
|
|
3250
|
-
* @param {*} [options] Override http request option.
|
|
3251
|
-
* @throws {RequiredError}
|
|
3252
|
-
* @memberof BusinessVerificationApi
|
|
3253
|
-
*/
|
|
3254
|
-
public businessVerificationControllerABNVerification(type: BusinessVerificationControllerABNVerificationTypeEnum, businessNumber: string, options?: RawAxiosRequestConfig) {
|
|
3255
|
-
return BusinessVerificationApiFp(this.configuration).businessVerificationControllerABNVerification(type, businessNumber, options).then((request) => request(this.axios, this.basePath));
|
|
3256
|
-
}
|
|
3257
|
-
}
|
|
3258
|
-
|
|
3259
|
-
/**
|
|
3260
|
-
* @export
|
|
3261
|
-
*/
|
|
3262
|
-
export const BusinessVerificationControllerABNVerificationTypeEnum = {
|
|
3263
|
-
Abn: 'ABN',
|
|
3264
|
-
Nzbn: 'NZBN',
|
|
3265
|
-
Crn: 'CRN',
|
|
3266
|
-
Ein: 'EIN'
|
|
3267
|
-
} as const;
|
|
3268
|
-
export type BusinessVerificationControllerABNVerificationTypeEnum = typeof BusinessVerificationControllerABNVerificationTypeEnum[keyof typeof BusinessVerificationControllerABNVerificationTypeEnum];
|
|
3269
|
-
|
|
3270
|
-
|
|
3271
|
-
/**
|
|
3272
|
-
* DeviceApi - axios parameter creator
|
|
3273
|
-
* @export
|
|
3274
|
-
*/
|
|
3275
|
-
export const DeviceApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
3276
|
-
return {
|
|
3277
|
-
/**
|
|
3278
|
-
*
|
|
3279
|
-
* @param {AddDevicePayload} addDevicePayload
|
|
3546
|
+
* @param {AddDevicePayload} addDevicePayload
|
|
3280
3547
|
* @param {*} [options] Override http request option.
|
|
3281
3548
|
* @throws {RequiredError}
|
|
3282
3549
|
*/
|
|
@@ -3378,552 +3645,6 @@ export class DeviceApi extends BaseAPI {
|
|
|
3378
3645
|
|
|
3379
3646
|
|
|
3380
3647
|
|
|
3381
|
-
/**
|
|
3382
|
-
* FriendsApi - axios parameter creator
|
|
3383
|
-
* @export
|
|
3384
|
-
*/
|
|
3385
|
-
export const FriendsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
3386
|
-
return {
|
|
3387
|
-
/**
|
|
3388
|
-
*
|
|
3389
|
-
* @param {ApproveFriendshipRequestPayload} approveFriendshipRequestPayload
|
|
3390
|
-
* @param {*} [options] Override http request option.
|
|
3391
|
-
* @throws {RequiredError}
|
|
3392
|
-
*/
|
|
3393
|
-
friendControllerApproveFriendRequest: async (approveFriendshipRequestPayload: ApproveFriendshipRequestPayload, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3394
|
-
// verify required parameter 'approveFriendshipRequestPayload' is not null or undefined
|
|
3395
|
-
assertParamExists('friendControllerApproveFriendRequest', 'approveFriendshipRequestPayload', approveFriendshipRequestPayload)
|
|
3396
|
-
const localVarPath = `/v1/friend/approve-request`;
|
|
3397
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3398
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3399
|
-
let baseOptions;
|
|
3400
|
-
if (configuration) {
|
|
3401
|
-
baseOptions = configuration.baseOptions;
|
|
3402
|
-
}
|
|
3403
|
-
|
|
3404
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
3405
|
-
const localVarHeaderParameter = {} as any;
|
|
3406
|
-
const localVarQueryParameter = {} as any;
|
|
3407
|
-
|
|
3408
|
-
// authentication bearer required
|
|
3409
|
-
// http bearer authentication required
|
|
3410
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3415
|
-
|
|
3416
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3417
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3418
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3419
|
-
localVarRequestOptions.data = serializeDataIfNeeded(approveFriendshipRequestPayload, localVarRequestOptions, configuration)
|
|
3420
|
-
|
|
3421
|
-
return {
|
|
3422
|
-
url: toPathString(localVarUrlObj),
|
|
3423
|
-
options: localVarRequestOptions,
|
|
3424
|
-
};
|
|
3425
|
-
},
|
|
3426
|
-
/**
|
|
3427
|
-
*
|
|
3428
|
-
* @param {DeclineFriendshipRequestPayload} declineFriendshipRequestPayload
|
|
3429
|
-
* @param {*} [options] Override http request option.
|
|
3430
|
-
* @throws {RequiredError}
|
|
3431
|
-
*/
|
|
3432
|
-
friendControllerDeclineFriendRequest: async (declineFriendshipRequestPayload: DeclineFriendshipRequestPayload, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3433
|
-
// verify required parameter 'declineFriendshipRequestPayload' is not null or undefined
|
|
3434
|
-
assertParamExists('friendControllerDeclineFriendRequest', 'declineFriendshipRequestPayload', declineFriendshipRequestPayload)
|
|
3435
|
-
const localVarPath = `/v1/friend/decline-request`;
|
|
3436
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3437
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3438
|
-
let baseOptions;
|
|
3439
|
-
if (configuration) {
|
|
3440
|
-
baseOptions = configuration.baseOptions;
|
|
3441
|
-
}
|
|
3442
|
-
|
|
3443
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
3444
|
-
const localVarHeaderParameter = {} as any;
|
|
3445
|
-
const localVarQueryParameter = {} as any;
|
|
3446
|
-
|
|
3447
|
-
// authentication bearer required
|
|
3448
|
-
// http bearer authentication required
|
|
3449
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
3450
|
-
|
|
3451
|
-
|
|
3452
|
-
|
|
3453
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3454
|
-
|
|
3455
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3456
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3457
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3458
|
-
localVarRequestOptions.data = serializeDataIfNeeded(declineFriendshipRequestPayload, localVarRequestOptions, configuration)
|
|
3459
|
-
|
|
3460
|
-
return {
|
|
3461
|
-
url: toPathString(localVarUrlObj),
|
|
3462
|
-
options: localVarRequestOptions,
|
|
3463
|
-
};
|
|
3464
|
-
},
|
|
3465
|
-
/**
|
|
3466
|
-
*
|
|
3467
|
-
* @param {number} page
|
|
3468
|
-
* @param {number} pageSize
|
|
3469
|
-
* @param {string} [query]
|
|
3470
|
-
* @param {*} [options] Override http request option.
|
|
3471
|
-
* @throws {RequiredError}
|
|
3472
|
-
*/
|
|
3473
|
-
friendControllerFindFriends: async (page: number, pageSize: number, query?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3474
|
-
// verify required parameter 'page' is not null or undefined
|
|
3475
|
-
assertParamExists('friendControllerFindFriends', 'page', page)
|
|
3476
|
-
// verify required parameter 'pageSize' is not null or undefined
|
|
3477
|
-
assertParamExists('friendControllerFindFriends', 'pageSize', pageSize)
|
|
3478
|
-
const localVarPath = `/v1/friend/find`;
|
|
3479
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3480
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3481
|
-
let baseOptions;
|
|
3482
|
-
if (configuration) {
|
|
3483
|
-
baseOptions = configuration.baseOptions;
|
|
3484
|
-
}
|
|
3485
|
-
|
|
3486
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
3487
|
-
const localVarHeaderParameter = {} as any;
|
|
3488
|
-
const localVarQueryParameter = {} as any;
|
|
3489
|
-
|
|
3490
|
-
// authentication bearer required
|
|
3491
|
-
// http bearer authentication required
|
|
3492
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
3493
|
-
|
|
3494
|
-
if (query !== undefined) {
|
|
3495
|
-
localVarQueryParameter['query'] = query;
|
|
3496
|
-
}
|
|
3497
|
-
|
|
3498
|
-
if (page !== undefined) {
|
|
3499
|
-
localVarQueryParameter['page'] = page;
|
|
3500
|
-
}
|
|
3501
|
-
|
|
3502
|
-
if (pageSize !== undefined) {
|
|
3503
|
-
localVarQueryParameter['pageSize'] = pageSize;
|
|
3504
|
-
}
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3509
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3510
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3511
|
-
|
|
3512
|
-
return {
|
|
3513
|
-
url: toPathString(localVarUrlObj),
|
|
3514
|
-
options: localVarRequestOptions,
|
|
3515
|
-
};
|
|
3516
|
-
},
|
|
3517
|
-
/**
|
|
3518
|
-
*
|
|
3519
|
-
* @param {FriendshipStatusCheck} friendshipStatusCheck
|
|
3520
|
-
* @param {*} [options] Override http request option.
|
|
3521
|
-
* @throws {RequiredError}
|
|
3522
|
-
*/
|
|
3523
|
-
friendControllerGetFriendshipStatus: async (friendshipStatusCheck: FriendshipStatusCheck, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3524
|
-
// verify required parameter 'friendshipStatusCheck' is not null or undefined
|
|
3525
|
-
assertParamExists('friendControllerGetFriendshipStatus', 'friendshipStatusCheck', friendshipStatusCheck)
|
|
3526
|
-
const localVarPath = `/v1/friend/status`;
|
|
3527
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3528
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3529
|
-
let baseOptions;
|
|
3530
|
-
if (configuration) {
|
|
3531
|
-
baseOptions = configuration.baseOptions;
|
|
3532
|
-
}
|
|
3533
|
-
|
|
3534
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
3535
|
-
const localVarHeaderParameter = {} as any;
|
|
3536
|
-
const localVarQueryParameter = {} as any;
|
|
3537
|
-
|
|
3538
|
-
// authentication bearer required
|
|
3539
|
-
// http bearer authentication required
|
|
3540
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
3541
|
-
|
|
3542
|
-
|
|
3543
|
-
|
|
3544
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3545
|
-
|
|
3546
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3547
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3548
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3549
|
-
localVarRequestOptions.data = serializeDataIfNeeded(friendshipStatusCheck, localVarRequestOptions, configuration)
|
|
3550
|
-
|
|
3551
|
-
return {
|
|
3552
|
-
url: toPathString(localVarUrlObj),
|
|
3553
|
-
options: localVarRequestOptions,
|
|
3554
|
-
};
|
|
3555
|
-
},
|
|
3556
|
-
/**
|
|
3557
|
-
*
|
|
3558
|
-
* @param {*} [options] Override http request option.
|
|
3559
|
-
* @throws {RequiredError}
|
|
3560
|
-
*/
|
|
3561
|
-
friendControllerListMyFriends: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3562
|
-
const localVarPath = `/v1/friend/list`;
|
|
3563
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3564
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3565
|
-
let baseOptions;
|
|
3566
|
-
if (configuration) {
|
|
3567
|
-
baseOptions = configuration.baseOptions;
|
|
3568
|
-
}
|
|
3569
|
-
|
|
3570
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
3571
|
-
const localVarHeaderParameter = {} as any;
|
|
3572
|
-
const localVarQueryParameter = {} as any;
|
|
3573
|
-
|
|
3574
|
-
// authentication bearer required
|
|
3575
|
-
// http bearer authentication required
|
|
3576
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
3577
|
-
|
|
3578
|
-
|
|
3579
|
-
|
|
3580
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3581
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3582
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3583
|
-
|
|
3584
|
-
return {
|
|
3585
|
-
url: toPathString(localVarUrlObj),
|
|
3586
|
-
options: localVarRequestOptions,
|
|
3587
|
-
};
|
|
3588
|
-
},
|
|
3589
|
-
/**
|
|
3590
|
-
*
|
|
3591
|
-
* @param {RemoveFriendshipRequestPayload} removeFriendshipRequestPayload
|
|
3592
|
-
* @param {*} [options] Override http request option.
|
|
3593
|
-
* @throws {RequiredError}
|
|
3594
|
-
*/
|
|
3595
|
-
friendControllerRemoveFriendById: async (removeFriendshipRequestPayload: RemoveFriendshipRequestPayload, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3596
|
-
// verify required parameter 'removeFriendshipRequestPayload' is not null or undefined
|
|
3597
|
-
assertParamExists('friendControllerRemoveFriendById', 'removeFriendshipRequestPayload', removeFriendshipRequestPayload)
|
|
3598
|
-
const localVarPath = `/v1/friend/remove`;
|
|
3599
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3600
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3601
|
-
let baseOptions;
|
|
3602
|
-
if (configuration) {
|
|
3603
|
-
baseOptions = configuration.baseOptions;
|
|
3604
|
-
}
|
|
3605
|
-
|
|
3606
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
3607
|
-
const localVarHeaderParameter = {} as any;
|
|
3608
|
-
const localVarQueryParameter = {} as any;
|
|
3609
|
-
|
|
3610
|
-
// authentication bearer required
|
|
3611
|
-
// http bearer authentication required
|
|
3612
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
3613
|
-
|
|
3614
|
-
|
|
3615
|
-
|
|
3616
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3617
|
-
|
|
3618
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3619
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3620
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3621
|
-
localVarRequestOptions.data = serializeDataIfNeeded(removeFriendshipRequestPayload, localVarRequestOptions, configuration)
|
|
3622
|
-
|
|
3623
|
-
return {
|
|
3624
|
-
url: toPathString(localVarUrlObj),
|
|
3625
|
-
options: localVarRequestOptions,
|
|
3626
|
-
};
|
|
3627
|
-
},
|
|
3628
|
-
/**
|
|
3629
|
-
*
|
|
3630
|
-
* @param {SendFriendshipRequestPayload} sendFriendshipRequestPayload
|
|
3631
|
-
* @param {*} [options] Override http request option.
|
|
3632
|
-
* @throws {RequiredError}
|
|
3633
|
-
*/
|
|
3634
|
-
friendControllerSendFriendRequest: async (sendFriendshipRequestPayload: SendFriendshipRequestPayload, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3635
|
-
// verify required parameter 'sendFriendshipRequestPayload' is not null or undefined
|
|
3636
|
-
assertParamExists('friendControllerSendFriendRequest', 'sendFriendshipRequestPayload', sendFriendshipRequestPayload)
|
|
3637
|
-
const localVarPath = `/v1/friend/send-request`;
|
|
3638
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3639
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3640
|
-
let baseOptions;
|
|
3641
|
-
if (configuration) {
|
|
3642
|
-
baseOptions = configuration.baseOptions;
|
|
3643
|
-
}
|
|
3644
|
-
|
|
3645
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
3646
|
-
const localVarHeaderParameter = {} as any;
|
|
3647
|
-
const localVarQueryParameter = {} as any;
|
|
3648
|
-
|
|
3649
|
-
// authentication bearer required
|
|
3650
|
-
// http bearer authentication required
|
|
3651
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
3652
|
-
|
|
3653
|
-
|
|
3654
|
-
|
|
3655
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3656
|
-
|
|
3657
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3658
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3659
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3660
|
-
localVarRequestOptions.data = serializeDataIfNeeded(sendFriendshipRequestPayload, localVarRequestOptions, configuration)
|
|
3661
|
-
|
|
3662
|
-
return {
|
|
3663
|
-
url: toPathString(localVarUrlObj),
|
|
3664
|
-
options: localVarRequestOptions,
|
|
3665
|
-
};
|
|
3666
|
-
},
|
|
3667
|
-
}
|
|
3668
|
-
};
|
|
3669
|
-
|
|
3670
|
-
/**
|
|
3671
|
-
* FriendsApi - functional programming interface
|
|
3672
|
-
* @export
|
|
3673
|
-
*/
|
|
3674
|
-
export const FriendsApiFp = function(configuration?: Configuration) {
|
|
3675
|
-
const localVarAxiosParamCreator = FriendsApiAxiosParamCreator(configuration)
|
|
3676
|
-
return {
|
|
3677
|
-
/**
|
|
3678
|
-
*
|
|
3679
|
-
* @param {ApproveFriendshipRequestPayload} approveFriendshipRequestPayload
|
|
3680
|
-
* @param {*} [options] Override http request option.
|
|
3681
|
-
* @throws {RequiredError}
|
|
3682
|
-
*/
|
|
3683
|
-
async friendControllerApproveFriendRequest(approveFriendshipRequestPayload: ApproveFriendshipRequestPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FriendsResponseDTO>> {
|
|
3684
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.friendControllerApproveFriendRequest(approveFriendshipRequestPayload, options);
|
|
3685
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3686
|
-
const localVarOperationServerBasePath = operationServerMap['FriendsApi.friendControllerApproveFriendRequest']?.[localVarOperationServerIndex]?.url;
|
|
3687
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3688
|
-
},
|
|
3689
|
-
/**
|
|
3690
|
-
*
|
|
3691
|
-
* @param {DeclineFriendshipRequestPayload} declineFriendshipRequestPayload
|
|
3692
|
-
* @param {*} [options] Override http request option.
|
|
3693
|
-
* @throws {RequiredError}
|
|
3694
|
-
*/
|
|
3695
|
-
async friendControllerDeclineFriendRequest(declineFriendshipRequestPayload: DeclineFriendshipRequestPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FriendsResponseDTO>> {
|
|
3696
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.friendControllerDeclineFriendRequest(declineFriendshipRequestPayload, options);
|
|
3697
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3698
|
-
const localVarOperationServerBasePath = operationServerMap['FriendsApi.friendControllerDeclineFriendRequest']?.[localVarOperationServerIndex]?.url;
|
|
3699
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3700
|
-
},
|
|
3701
|
-
/**
|
|
3702
|
-
*
|
|
3703
|
-
* @param {number} page
|
|
3704
|
-
* @param {number} pageSize
|
|
3705
|
-
* @param {string} [query]
|
|
3706
|
-
* @param {*} [options] Override http request option.
|
|
3707
|
-
* @throws {RequiredError}
|
|
3708
|
-
*/
|
|
3709
|
-
async friendControllerFindFriends(page: number, pageSize: number, query?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FriendsDTO>> {
|
|
3710
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.friendControllerFindFriends(page, pageSize, query, options);
|
|
3711
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3712
|
-
const localVarOperationServerBasePath = operationServerMap['FriendsApi.friendControllerFindFriends']?.[localVarOperationServerIndex]?.url;
|
|
3713
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3714
|
-
},
|
|
3715
|
-
/**
|
|
3716
|
-
*
|
|
3717
|
-
* @param {FriendshipStatusCheck} friendshipStatusCheck
|
|
3718
|
-
* @param {*} [options] Override http request option.
|
|
3719
|
-
* @throws {RequiredError}
|
|
3720
|
-
*/
|
|
3721
|
-
async friendControllerGetFriendshipStatus(friendshipStatusCheck: FriendshipStatusCheck, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FriendshipStatusDTO>> {
|
|
3722
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.friendControllerGetFriendshipStatus(friendshipStatusCheck, options);
|
|
3723
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3724
|
-
const localVarOperationServerBasePath = operationServerMap['FriendsApi.friendControllerGetFriendshipStatus']?.[localVarOperationServerIndex]?.url;
|
|
3725
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3726
|
-
},
|
|
3727
|
-
/**
|
|
3728
|
-
*
|
|
3729
|
-
* @param {*} [options] Override http request option.
|
|
3730
|
-
* @throws {RequiredError}
|
|
3731
|
-
*/
|
|
3732
|
-
async friendControllerListMyFriends(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FriendsDTO>> {
|
|
3733
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.friendControllerListMyFriends(options);
|
|
3734
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3735
|
-
const localVarOperationServerBasePath = operationServerMap['FriendsApi.friendControllerListMyFriends']?.[localVarOperationServerIndex]?.url;
|
|
3736
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3737
|
-
},
|
|
3738
|
-
/**
|
|
3739
|
-
*
|
|
3740
|
-
* @param {RemoveFriendshipRequestPayload} removeFriendshipRequestPayload
|
|
3741
|
-
* @param {*} [options] Override http request option.
|
|
3742
|
-
* @throws {RequiredError}
|
|
3743
|
-
*/
|
|
3744
|
-
async friendControllerRemoveFriendById(removeFriendshipRequestPayload: RemoveFriendshipRequestPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FriendsResponseDTO>> {
|
|
3745
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.friendControllerRemoveFriendById(removeFriendshipRequestPayload, options);
|
|
3746
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3747
|
-
const localVarOperationServerBasePath = operationServerMap['FriendsApi.friendControllerRemoveFriendById']?.[localVarOperationServerIndex]?.url;
|
|
3748
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3749
|
-
},
|
|
3750
|
-
/**
|
|
3751
|
-
*
|
|
3752
|
-
* @param {SendFriendshipRequestPayload} sendFriendshipRequestPayload
|
|
3753
|
-
* @param {*} [options] Override http request option.
|
|
3754
|
-
* @throws {RequiredError}
|
|
3755
|
-
*/
|
|
3756
|
-
async friendControllerSendFriendRequest(sendFriendshipRequestPayload: SendFriendshipRequestPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FriendsResponseDTO>> {
|
|
3757
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.friendControllerSendFriendRequest(sendFriendshipRequestPayload, options);
|
|
3758
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3759
|
-
const localVarOperationServerBasePath = operationServerMap['FriendsApi.friendControllerSendFriendRequest']?.[localVarOperationServerIndex]?.url;
|
|
3760
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3761
|
-
},
|
|
3762
|
-
}
|
|
3763
|
-
};
|
|
3764
|
-
|
|
3765
|
-
/**
|
|
3766
|
-
* FriendsApi - factory interface
|
|
3767
|
-
* @export
|
|
3768
|
-
*/
|
|
3769
|
-
export const FriendsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
3770
|
-
const localVarFp = FriendsApiFp(configuration)
|
|
3771
|
-
return {
|
|
3772
|
-
/**
|
|
3773
|
-
*
|
|
3774
|
-
* @param {ApproveFriendshipRequestPayload} approveFriendshipRequestPayload
|
|
3775
|
-
* @param {*} [options] Override http request option.
|
|
3776
|
-
* @throws {RequiredError}
|
|
3777
|
-
*/
|
|
3778
|
-
friendControllerApproveFriendRequest(approveFriendshipRequestPayload: ApproveFriendshipRequestPayload, options?: RawAxiosRequestConfig): AxiosPromise<FriendsResponseDTO> {
|
|
3779
|
-
return localVarFp.friendControllerApproveFriendRequest(approveFriendshipRequestPayload, options).then((request) => request(axios, basePath));
|
|
3780
|
-
},
|
|
3781
|
-
/**
|
|
3782
|
-
*
|
|
3783
|
-
* @param {DeclineFriendshipRequestPayload} declineFriendshipRequestPayload
|
|
3784
|
-
* @param {*} [options] Override http request option.
|
|
3785
|
-
* @throws {RequiredError}
|
|
3786
|
-
*/
|
|
3787
|
-
friendControllerDeclineFriendRequest(declineFriendshipRequestPayload: DeclineFriendshipRequestPayload, options?: RawAxiosRequestConfig): AxiosPromise<FriendsResponseDTO> {
|
|
3788
|
-
return localVarFp.friendControllerDeclineFriendRequest(declineFriendshipRequestPayload, options).then((request) => request(axios, basePath));
|
|
3789
|
-
},
|
|
3790
|
-
/**
|
|
3791
|
-
*
|
|
3792
|
-
* @param {number} page
|
|
3793
|
-
* @param {number} pageSize
|
|
3794
|
-
* @param {string} [query]
|
|
3795
|
-
* @param {*} [options] Override http request option.
|
|
3796
|
-
* @throws {RequiredError}
|
|
3797
|
-
*/
|
|
3798
|
-
friendControllerFindFriends(page: number, pageSize: number, query?: string, options?: RawAxiosRequestConfig): AxiosPromise<FriendsDTO> {
|
|
3799
|
-
return localVarFp.friendControllerFindFriends(page, pageSize, query, options).then((request) => request(axios, basePath));
|
|
3800
|
-
},
|
|
3801
|
-
/**
|
|
3802
|
-
*
|
|
3803
|
-
* @param {FriendshipStatusCheck} friendshipStatusCheck
|
|
3804
|
-
* @param {*} [options] Override http request option.
|
|
3805
|
-
* @throws {RequiredError}
|
|
3806
|
-
*/
|
|
3807
|
-
friendControllerGetFriendshipStatus(friendshipStatusCheck: FriendshipStatusCheck, options?: RawAxiosRequestConfig): AxiosPromise<FriendshipStatusDTO> {
|
|
3808
|
-
return localVarFp.friendControllerGetFriendshipStatus(friendshipStatusCheck, options).then((request) => request(axios, basePath));
|
|
3809
|
-
},
|
|
3810
|
-
/**
|
|
3811
|
-
*
|
|
3812
|
-
* @param {*} [options] Override http request option.
|
|
3813
|
-
* @throws {RequiredError}
|
|
3814
|
-
*/
|
|
3815
|
-
friendControllerListMyFriends(options?: RawAxiosRequestConfig): AxiosPromise<FriendsDTO> {
|
|
3816
|
-
return localVarFp.friendControllerListMyFriends(options).then((request) => request(axios, basePath));
|
|
3817
|
-
},
|
|
3818
|
-
/**
|
|
3819
|
-
*
|
|
3820
|
-
* @param {RemoveFriendshipRequestPayload} removeFriendshipRequestPayload
|
|
3821
|
-
* @param {*} [options] Override http request option.
|
|
3822
|
-
* @throws {RequiredError}
|
|
3823
|
-
*/
|
|
3824
|
-
friendControllerRemoveFriendById(removeFriendshipRequestPayload: RemoveFriendshipRequestPayload, options?: RawAxiosRequestConfig): AxiosPromise<FriendsResponseDTO> {
|
|
3825
|
-
return localVarFp.friendControllerRemoveFriendById(removeFriendshipRequestPayload, options).then((request) => request(axios, basePath));
|
|
3826
|
-
},
|
|
3827
|
-
/**
|
|
3828
|
-
*
|
|
3829
|
-
* @param {SendFriendshipRequestPayload} sendFriendshipRequestPayload
|
|
3830
|
-
* @param {*} [options] Override http request option.
|
|
3831
|
-
* @throws {RequiredError}
|
|
3832
|
-
*/
|
|
3833
|
-
friendControllerSendFriendRequest(sendFriendshipRequestPayload: SendFriendshipRequestPayload, options?: RawAxiosRequestConfig): AxiosPromise<FriendsResponseDTO> {
|
|
3834
|
-
return localVarFp.friendControllerSendFriendRequest(sendFriendshipRequestPayload, options).then((request) => request(axios, basePath));
|
|
3835
|
-
},
|
|
3836
|
-
};
|
|
3837
|
-
};
|
|
3838
|
-
|
|
3839
|
-
/**
|
|
3840
|
-
* FriendsApi - object-oriented interface
|
|
3841
|
-
* @export
|
|
3842
|
-
* @class FriendsApi
|
|
3843
|
-
* @extends {BaseAPI}
|
|
3844
|
-
*/
|
|
3845
|
-
export class FriendsApi extends BaseAPI {
|
|
3846
|
-
/**
|
|
3847
|
-
*
|
|
3848
|
-
* @param {ApproveFriendshipRequestPayload} approveFriendshipRequestPayload
|
|
3849
|
-
* @param {*} [options] Override http request option.
|
|
3850
|
-
* @throws {RequiredError}
|
|
3851
|
-
* @memberof FriendsApi
|
|
3852
|
-
*/
|
|
3853
|
-
public friendControllerApproveFriendRequest(approveFriendshipRequestPayload: ApproveFriendshipRequestPayload, options?: RawAxiosRequestConfig) {
|
|
3854
|
-
return FriendsApiFp(this.configuration).friendControllerApproveFriendRequest(approveFriendshipRequestPayload, options).then((request) => request(this.axios, this.basePath));
|
|
3855
|
-
}
|
|
3856
|
-
|
|
3857
|
-
/**
|
|
3858
|
-
*
|
|
3859
|
-
* @param {DeclineFriendshipRequestPayload} declineFriendshipRequestPayload
|
|
3860
|
-
* @param {*} [options] Override http request option.
|
|
3861
|
-
* @throws {RequiredError}
|
|
3862
|
-
* @memberof FriendsApi
|
|
3863
|
-
*/
|
|
3864
|
-
public friendControllerDeclineFriendRequest(declineFriendshipRequestPayload: DeclineFriendshipRequestPayload, options?: RawAxiosRequestConfig) {
|
|
3865
|
-
return FriendsApiFp(this.configuration).friendControllerDeclineFriendRequest(declineFriendshipRequestPayload, options).then((request) => request(this.axios, this.basePath));
|
|
3866
|
-
}
|
|
3867
|
-
|
|
3868
|
-
/**
|
|
3869
|
-
*
|
|
3870
|
-
* @param {number} page
|
|
3871
|
-
* @param {number} pageSize
|
|
3872
|
-
* @param {string} [query]
|
|
3873
|
-
* @param {*} [options] Override http request option.
|
|
3874
|
-
* @throws {RequiredError}
|
|
3875
|
-
* @memberof FriendsApi
|
|
3876
|
-
*/
|
|
3877
|
-
public friendControllerFindFriends(page: number, pageSize: number, query?: string, options?: RawAxiosRequestConfig) {
|
|
3878
|
-
return FriendsApiFp(this.configuration).friendControllerFindFriends(page, pageSize, query, options).then((request) => request(this.axios, this.basePath));
|
|
3879
|
-
}
|
|
3880
|
-
|
|
3881
|
-
/**
|
|
3882
|
-
*
|
|
3883
|
-
* @param {FriendshipStatusCheck} friendshipStatusCheck
|
|
3884
|
-
* @param {*} [options] Override http request option.
|
|
3885
|
-
* @throws {RequiredError}
|
|
3886
|
-
* @memberof FriendsApi
|
|
3887
|
-
*/
|
|
3888
|
-
public friendControllerGetFriendshipStatus(friendshipStatusCheck: FriendshipStatusCheck, options?: RawAxiosRequestConfig) {
|
|
3889
|
-
return FriendsApiFp(this.configuration).friendControllerGetFriendshipStatus(friendshipStatusCheck, options).then((request) => request(this.axios, this.basePath));
|
|
3890
|
-
}
|
|
3891
|
-
|
|
3892
|
-
/**
|
|
3893
|
-
*
|
|
3894
|
-
* @param {*} [options] Override http request option.
|
|
3895
|
-
* @throws {RequiredError}
|
|
3896
|
-
* @memberof FriendsApi
|
|
3897
|
-
*/
|
|
3898
|
-
public friendControllerListMyFriends(options?: RawAxiosRequestConfig) {
|
|
3899
|
-
return FriendsApiFp(this.configuration).friendControllerListMyFriends(options).then((request) => request(this.axios, this.basePath));
|
|
3900
|
-
}
|
|
3901
|
-
|
|
3902
|
-
/**
|
|
3903
|
-
*
|
|
3904
|
-
* @param {RemoveFriendshipRequestPayload} removeFriendshipRequestPayload
|
|
3905
|
-
* @param {*} [options] Override http request option.
|
|
3906
|
-
* @throws {RequiredError}
|
|
3907
|
-
* @memberof FriendsApi
|
|
3908
|
-
*/
|
|
3909
|
-
public friendControllerRemoveFriendById(removeFriendshipRequestPayload: RemoveFriendshipRequestPayload, options?: RawAxiosRequestConfig) {
|
|
3910
|
-
return FriendsApiFp(this.configuration).friendControllerRemoveFriendById(removeFriendshipRequestPayload, options).then((request) => request(this.axios, this.basePath));
|
|
3911
|
-
}
|
|
3912
|
-
|
|
3913
|
-
/**
|
|
3914
|
-
*
|
|
3915
|
-
* @param {SendFriendshipRequestPayload} sendFriendshipRequestPayload
|
|
3916
|
-
* @param {*} [options] Override http request option.
|
|
3917
|
-
* @throws {RequiredError}
|
|
3918
|
-
* @memberof FriendsApi
|
|
3919
|
-
*/
|
|
3920
|
-
public friendControllerSendFriendRequest(sendFriendshipRequestPayload: SendFriendshipRequestPayload, options?: RawAxiosRequestConfig) {
|
|
3921
|
-
return FriendsApiFp(this.configuration).friendControllerSendFriendRequest(sendFriendshipRequestPayload, options).then((request) => request(this.axios, this.basePath));
|
|
3922
|
-
}
|
|
3923
|
-
}
|
|
3924
|
-
|
|
3925
|
-
|
|
3926
|
-
|
|
3927
3648
|
/**
|
|
3928
3649
|
* GcsApi - axios parameter creator
|
|
3929
3650
|
* @export
|