@gooday_corp/gooday-api-client 1.1.12-beta-3 → 1.1.12-delta-3
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 +553 -830
- 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,74 @@ export interface BusinessVenueDTO {
|
|
|
428
504
|
* @memberof BusinessVenueDTO
|
|
429
505
|
*/
|
|
430
506
|
'location': LocationDTO;
|
|
507
|
+
/**
|
|
508
|
+
*
|
|
509
|
+
* @type {string}
|
|
510
|
+
* @memberof BusinessVenueDTO
|
|
511
|
+
*/
|
|
512
|
+
'numberOfEmployee': string;
|
|
513
|
+
}
|
|
514
|
+
/**
|
|
515
|
+
*
|
|
516
|
+
* @export
|
|
517
|
+
* @interface BusinessVenueDetailsDTO
|
|
518
|
+
*/
|
|
519
|
+
export interface BusinessVenueDetailsDTO {
|
|
520
|
+
/**
|
|
521
|
+
* coverPhots
|
|
522
|
+
* @type {string}
|
|
523
|
+
* @memberof BusinessVenueDetailsDTO
|
|
524
|
+
*/
|
|
525
|
+
'coverPhotos': string;
|
|
526
|
+
/**
|
|
527
|
+
*
|
|
528
|
+
* @type {string}
|
|
529
|
+
* @memberof BusinessVenueDetailsDTO
|
|
530
|
+
*/
|
|
531
|
+
'priceRange': string;
|
|
532
|
+
/**
|
|
533
|
+
*
|
|
534
|
+
* @type {LocationDTO}
|
|
535
|
+
* @memberof BusinessVenueDetailsDTO
|
|
536
|
+
*/
|
|
537
|
+
'location': LocationDTO;
|
|
538
|
+
/**
|
|
539
|
+
*
|
|
540
|
+
* @type {string}
|
|
541
|
+
* @memberof BusinessVenueDetailsDTO
|
|
542
|
+
*/
|
|
543
|
+
'numberOfEmployee': string;
|
|
544
|
+
/**
|
|
545
|
+
*
|
|
546
|
+
* @type {UserMeDTO}
|
|
547
|
+
* @memberof BusinessVenueDetailsDTO
|
|
548
|
+
*/
|
|
549
|
+
'user': UserMeDTO;
|
|
550
|
+
/**
|
|
551
|
+
*
|
|
552
|
+
* @type {BusinessEntity}
|
|
553
|
+
* @memberof BusinessVenueDetailsDTO
|
|
554
|
+
*/
|
|
555
|
+
'business': BusinessEntity;
|
|
556
|
+
}
|
|
557
|
+
/**
|
|
558
|
+
*
|
|
559
|
+
* @export
|
|
560
|
+
* @interface BusinessVenueResponseDTO
|
|
561
|
+
*/
|
|
562
|
+
export interface BusinessVenueResponseDTO {
|
|
563
|
+
/**
|
|
564
|
+
* statusCode
|
|
565
|
+
* @type {number}
|
|
566
|
+
* @memberof BusinessVenueResponseDTO
|
|
567
|
+
*/
|
|
568
|
+
'statusCode': number;
|
|
569
|
+
/**
|
|
570
|
+
* Business verification
|
|
571
|
+
* @type {Array<BusinessVenueDetailsDTO>}
|
|
572
|
+
* @memberof BusinessVenueResponseDTO
|
|
573
|
+
*/
|
|
574
|
+
'data': Array<BusinessVenueDetailsDTO>;
|
|
431
575
|
}
|
|
432
576
|
/**
|
|
433
577
|
*
|
|
@@ -492,6 +636,12 @@ export interface CategoryEntity {
|
|
|
492
636
|
* @memberof CategoryEntity
|
|
493
637
|
*/
|
|
494
638
|
'name': string;
|
|
639
|
+
/**
|
|
640
|
+
* Image of category
|
|
641
|
+
* @type {string}
|
|
642
|
+
* @memberof CategoryEntity
|
|
643
|
+
*/
|
|
644
|
+
'image': string;
|
|
495
645
|
/**
|
|
496
646
|
* Unique identifier or reference of the business Type
|
|
497
647
|
* @type {string}
|
|
@@ -555,19 +705,6 @@ export interface CreatePaymentLinkDTO {
|
|
|
555
705
|
*/
|
|
556
706
|
'user': string;
|
|
557
707
|
}
|
|
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
708
|
/**
|
|
572
709
|
*
|
|
573
710
|
* @export
|
|
@@ -719,87 +856,6 @@ export interface ForgotPasswordResponseDTO {
|
|
|
719
856
|
*/
|
|
720
857
|
'message': string;
|
|
721
858
|
}
|
|
722
|
-
/**
|
|
723
|
-
*
|
|
724
|
-
* @export
|
|
725
|
-
* @interface FriendsDTO
|
|
726
|
-
*/
|
|
727
|
-
export interface FriendsDTO {
|
|
728
|
-
/**
|
|
729
|
-
* statusCode
|
|
730
|
-
* @type {number}
|
|
731
|
-
* @memberof FriendsDTO
|
|
732
|
-
*/
|
|
733
|
-
'statusCode': number;
|
|
734
|
-
/**
|
|
735
|
-
* User
|
|
736
|
-
* @type {Array<UserEntity>}
|
|
737
|
-
* @memberof FriendsDTO
|
|
738
|
-
*/
|
|
739
|
-
'data': Array<UserEntity>;
|
|
740
|
-
}
|
|
741
|
-
/**
|
|
742
|
-
*
|
|
743
|
-
* @export
|
|
744
|
-
* @interface FriendsResponseDTO
|
|
745
|
-
*/
|
|
746
|
-
export interface FriendsResponseDTO {
|
|
747
|
-
/**
|
|
748
|
-
* statusCode
|
|
749
|
-
* @type {number}
|
|
750
|
-
* @memberof FriendsResponseDTO
|
|
751
|
-
*/
|
|
752
|
-
'statusCode': number;
|
|
753
|
-
/**
|
|
754
|
-
*
|
|
755
|
-
* @type {boolean}
|
|
756
|
-
* @memberof FriendsResponseDTO
|
|
757
|
-
*/
|
|
758
|
-
'success': boolean;
|
|
759
|
-
}
|
|
760
|
-
/**
|
|
761
|
-
*
|
|
762
|
-
* @export
|
|
763
|
-
* @interface FriendshipStatusCheck
|
|
764
|
-
*/
|
|
765
|
-
export interface FriendshipStatusCheck {
|
|
766
|
-
/**
|
|
767
|
-
*
|
|
768
|
-
* @type {string}
|
|
769
|
-
* @memberof FriendshipStatusCheck
|
|
770
|
-
*/
|
|
771
|
-
'to': string;
|
|
772
|
-
}
|
|
773
|
-
/**
|
|
774
|
-
*
|
|
775
|
-
* @export
|
|
776
|
-
* @interface FriendshipStatusDTO
|
|
777
|
-
*/
|
|
778
|
-
export interface FriendshipStatusDTO {
|
|
779
|
-
/**
|
|
780
|
-
* statusCode
|
|
781
|
-
* @type {number}
|
|
782
|
-
* @memberof FriendshipStatusDTO
|
|
783
|
-
*/
|
|
784
|
-
'statusCode': number;
|
|
785
|
-
/**
|
|
786
|
-
*
|
|
787
|
-
* @type {string}
|
|
788
|
-
* @memberof FriendshipStatusDTO
|
|
789
|
-
*/
|
|
790
|
-
'success': FriendshipStatusDTOSuccessEnum;
|
|
791
|
-
}
|
|
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
859
|
/**
|
|
804
860
|
*
|
|
805
861
|
* @export
|
|
@@ -1397,19 +1453,6 @@ export interface PriceRangeListResponse {
|
|
|
1397
1453
|
*/
|
|
1398
1454
|
'data': Array<PriceRangeEntity>;
|
|
1399
1455
|
}
|
|
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
1456
|
/**
|
|
1414
1457
|
*
|
|
1415
1458
|
* @export
|
|
@@ -1448,19 +1491,6 @@ export interface ResetPasswordResponseDTO {
|
|
|
1448
1491
|
*/
|
|
1449
1492
|
'message': string;
|
|
1450
1493
|
}
|
|
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
1494
|
/**
|
|
1465
1495
|
*
|
|
1466
1496
|
* @export
|
|
@@ -1561,6 +1591,12 @@ export interface SignupDto {
|
|
|
1561
1591
|
* @memberof SignupDto
|
|
1562
1592
|
*/
|
|
1563
1593
|
'lastName': string;
|
|
1594
|
+
/**
|
|
1595
|
+
* Contact Number For User
|
|
1596
|
+
* @type {string}
|
|
1597
|
+
* @memberof SignupDto
|
|
1598
|
+
*/
|
|
1599
|
+
'phoneNo': string;
|
|
1564
1600
|
/**
|
|
1565
1601
|
* The email of the user
|
|
1566
1602
|
* @type {string}
|
|
@@ -1693,6 +1729,12 @@ export interface UserEntity {
|
|
|
1693
1729
|
* @memberof UserEntity
|
|
1694
1730
|
*/
|
|
1695
1731
|
'_id': string;
|
|
1732
|
+
/**
|
|
1733
|
+
* Unique identifier for the Gooday user
|
|
1734
|
+
* @type {string}
|
|
1735
|
+
* @memberof UserEntity
|
|
1736
|
+
*/
|
|
1737
|
+
'goodayId': string;
|
|
1696
1738
|
/**
|
|
1697
1739
|
* First name of the user
|
|
1698
1740
|
* @type {string}
|
|
@@ -1729,6 +1771,12 @@ export interface UserEntity {
|
|
|
1729
1771
|
* @memberof UserEntity
|
|
1730
1772
|
*/
|
|
1731
1773
|
'assistant': string;
|
|
1774
|
+
/**
|
|
1775
|
+
* Phone No
|
|
1776
|
+
* @type {string}
|
|
1777
|
+
* @memberof UserEntity
|
|
1778
|
+
*/
|
|
1779
|
+
'phoneNo': string;
|
|
1732
1780
|
/**
|
|
1733
1781
|
* Indicates whether the user\'s email has been verified
|
|
1734
1782
|
* @type {boolean}
|
|
@@ -2746,7 +2794,7 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
2746
2794
|
* @throws {RequiredError}
|
|
2747
2795
|
*/
|
|
2748
2796
|
businessControllerListBusinesses: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2749
|
-
const localVarPath = `/business`;
|
|
2797
|
+
const localVarPath = `/v1/business`;
|
|
2750
2798
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2751
2799
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2752
2800
|
let baseOptions;
|
|
@@ -2771,11 +2819,18 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
2771
2819
|
},
|
|
2772
2820
|
/**
|
|
2773
2821
|
*
|
|
2822
|
+
* @param {string} [type] Business type ID
|
|
2823
|
+
* @param {string} [search] Business name search
|
|
2824
|
+
* @param {string} [category] Business category ID
|
|
2825
|
+
* @param {number} [longitude] Longitude of the location
|
|
2826
|
+
* @param {number} [latitude] Latitude of the location
|
|
2827
|
+
* @param {number} [page] Page number for pagination
|
|
2828
|
+
* @param {number} [limit] Number of items per page for pagination
|
|
2774
2829
|
* @param {*} [options] Override http request option.
|
|
2775
2830
|
* @throws {RequiredError}
|
|
2776
2831
|
*/
|
|
2777
|
-
|
|
2778
|
-
const localVarPath = `/v1/business/
|
|
2832
|
+
businessTypeControllerGetBusinessVenue: async (type?: string, search?: string, category?: string, longitude?: number, latitude?: number, page?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2833
|
+
const localVarPath = `/v1/business/business-venue`;
|
|
2779
2834
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2780
2835
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2781
2836
|
let baseOptions;
|
|
@@ -2791,6 +2846,34 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
2791
2846
|
// http bearer authentication required
|
|
2792
2847
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
2793
2848
|
|
|
2849
|
+
if (type !== undefined) {
|
|
2850
|
+
localVarQueryParameter['type'] = type;
|
|
2851
|
+
}
|
|
2852
|
+
|
|
2853
|
+
if (search !== undefined) {
|
|
2854
|
+
localVarQueryParameter['search'] = search;
|
|
2855
|
+
}
|
|
2856
|
+
|
|
2857
|
+
if (category !== undefined) {
|
|
2858
|
+
localVarQueryParameter['category'] = category;
|
|
2859
|
+
}
|
|
2860
|
+
|
|
2861
|
+
if (longitude !== undefined) {
|
|
2862
|
+
localVarQueryParameter['longitude'] = longitude;
|
|
2863
|
+
}
|
|
2864
|
+
|
|
2865
|
+
if (latitude !== undefined) {
|
|
2866
|
+
localVarQueryParameter['latitude'] = latitude;
|
|
2867
|
+
}
|
|
2868
|
+
|
|
2869
|
+
if (page !== undefined) {
|
|
2870
|
+
localVarQueryParameter['page'] = page;
|
|
2871
|
+
}
|
|
2872
|
+
|
|
2873
|
+
if (limit !== undefined) {
|
|
2874
|
+
localVarQueryParameter['limit'] = limit;
|
|
2875
|
+
}
|
|
2876
|
+
|
|
2794
2877
|
|
|
2795
2878
|
|
|
2796
2879
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -2804,15 +2887,11 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
2804
2887
|
},
|
|
2805
2888
|
/**
|
|
2806
2889
|
*
|
|
2807
|
-
* @param {string} businessType
|
|
2808
2890
|
* @param {*} [options] Override http request option.
|
|
2809
2891
|
* @throws {RequiredError}
|
|
2810
2892
|
*/
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
assertParamExists('businessTypeControllerListCategories', 'businessType', businessType)
|
|
2814
|
-
const localVarPath = `/v1/business/{businessType}/categories`
|
|
2815
|
-
.replace(`{${"businessType"}}`, encodeURIComponent(String(businessType)));
|
|
2893
|
+
businessTypeControllerListBusinessType: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2894
|
+
const localVarPath = `/v1/business/list`;
|
|
2816
2895
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2817
2896
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2818
2897
|
let baseOptions;
|
|
@@ -2841,11 +2920,15 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
2841
2920
|
},
|
|
2842
2921
|
/**
|
|
2843
2922
|
*
|
|
2923
|
+
* @param {string} businessTypeId ID of the business type
|
|
2844
2924
|
* @param {*} [options] Override http request option.
|
|
2845
2925
|
* @throws {RequiredError}
|
|
2846
2926
|
*/
|
|
2847
|
-
|
|
2848
|
-
|
|
2927
|
+
businessTypeControllerListCategories: async (businessTypeId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2928
|
+
// verify required parameter 'businessTypeId' is not null or undefined
|
|
2929
|
+
assertParamExists('businessTypeControllerListCategories', 'businessTypeId', businessTypeId)
|
|
2930
|
+
const localVarPath = `/v1/business/{businessTypeId}/categories`
|
|
2931
|
+
.replace(`{${"businessTypeId"}}`, encodeURIComponent(String(businessTypeId)));
|
|
2849
2932
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2850
2933
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2851
2934
|
let baseOptions;
|
|
@@ -2877,8 +2960,8 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
2877
2960
|
* @param {*} [options] Override http request option.
|
|
2878
2961
|
* @throws {RequiredError}
|
|
2879
2962
|
*/
|
|
2880
|
-
|
|
2881
|
-
const localVarPath = `/v1/business/
|
|
2963
|
+
businessTypeControllerListEmployeesSize: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2964
|
+
const localVarPath = `/v1/business/employee-size`;
|
|
2882
2965
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2883
2966
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2884
2967
|
let baseOptions;
|
|
@@ -2905,25 +2988,173 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
2905
2988
|
options: localVarRequestOptions,
|
|
2906
2989
|
};
|
|
2907
2990
|
},
|
|
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
2991
|
/**
|
|
2919
2992
|
*
|
|
2920
|
-
* @param {BusinessOnBoardingDTO} businessOnBoardingDTO
|
|
2921
2993
|
* @param {*} [options] Override http request option.
|
|
2922
2994
|
* @throws {RequiredError}
|
|
2923
2995
|
*/
|
|
2924
|
-
async
|
|
2925
|
-
const
|
|
2926
|
-
|
|
2996
|
+
businessTypeControllerListPriceRange: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2997
|
+
const localVarPath = `/v1/business/price-range`;
|
|
2998
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2999
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3000
|
+
let baseOptions;
|
|
3001
|
+
if (configuration) {
|
|
3002
|
+
baseOptions = configuration.baseOptions;
|
|
3003
|
+
}
|
|
3004
|
+
|
|
3005
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
3006
|
+
const localVarHeaderParameter = {} as any;
|
|
3007
|
+
const localVarQueryParameter = {} as any;
|
|
3008
|
+
|
|
3009
|
+
// authentication bearer required
|
|
3010
|
+
// http bearer authentication required
|
|
3011
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
3012
|
+
|
|
3013
|
+
|
|
3014
|
+
|
|
3015
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3016
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3017
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3018
|
+
|
|
3019
|
+
return {
|
|
3020
|
+
url: toPathString(localVarUrlObj),
|
|
3021
|
+
options: localVarRequestOptions,
|
|
3022
|
+
};
|
|
3023
|
+
},
|
|
3024
|
+
/**
|
|
3025
|
+
*
|
|
3026
|
+
* @param {BusinessFavoriteDTO} businessFavoriteDTO
|
|
3027
|
+
* @param {*} [options] Override http request option.
|
|
3028
|
+
* @throws {RequiredError}
|
|
3029
|
+
*/
|
|
3030
|
+
businessTypeControllerMarkBusinessAsFavorite: async (businessFavoriteDTO: BusinessFavoriteDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3031
|
+
// verify required parameter 'businessFavoriteDTO' is not null or undefined
|
|
3032
|
+
assertParamExists('businessTypeControllerMarkBusinessAsFavorite', 'businessFavoriteDTO', businessFavoriteDTO)
|
|
3033
|
+
const localVarPath = `/v1/business/favorite`;
|
|
3034
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3035
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3036
|
+
let baseOptions;
|
|
3037
|
+
if (configuration) {
|
|
3038
|
+
baseOptions = configuration.baseOptions;
|
|
3039
|
+
}
|
|
3040
|
+
|
|
3041
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
3042
|
+
const localVarHeaderParameter = {} as any;
|
|
3043
|
+
const localVarQueryParameter = {} as any;
|
|
3044
|
+
|
|
3045
|
+
// authentication bearer required
|
|
3046
|
+
// http bearer authentication required
|
|
3047
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
3048
|
+
|
|
3049
|
+
|
|
3050
|
+
|
|
3051
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3052
|
+
|
|
3053
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3054
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3055
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3056
|
+
localVarRequestOptions.data = serializeDataIfNeeded(businessFavoriteDTO, localVarRequestOptions, configuration)
|
|
3057
|
+
|
|
3058
|
+
return {
|
|
3059
|
+
url: toPathString(localVarUrlObj),
|
|
3060
|
+
options: localVarRequestOptions,
|
|
3061
|
+
};
|
|
3062
|
+
},
|
|
3063
|
+
/**
|
|
3064
|
+
*
|
|
3065
|
+
* @param {BusinessFavoriteDTO} businessFavoriteDTO
|
|
3066
|
+
* @param {*} [options] Override http request option.
|
|
3067
|
+
* @throws {RequiredError}
|
|
3068
|
+
*/
|
|
3069
|
+
businessTypeControllerUnFavoriteBusiness: async (businessFavoriteDTO: BusinessFavoriteDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3070
|
+
// verify required parameter 'businessFavoriteDTO' is not null or undefined
|
|
3071
|
+
assertParamExists('businessTypeControllerUnFavoriteBusiness', 'businessFavoriteDTO', businessFavoriteDTO)
|
|
3072
|
+
const localVarPath = `/v1/business/unfavorite`;
|
|
3073
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3074
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3075
|
+
let baseOptions;
|
|
3076
|
+
if (configuration) {
|
|
3077
|
+
baseOptions = configuration.baseOptions;
|
|
3078
|
+
}
|
|
3079
|
+
|
|
3080
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
3081
|
+
const localVarHeaderParameter = {} as any;
|
|
3082
|
+
const localVarQueryParameter = {} as any;
|
|
3083
|
+
|
|
3084
|
+
// authentication bearer required
|
|
3085
|
+
// http bearer authentication required
|
|
3086
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
3087
|
+
|
|
3088
|
+
|
|
3089
|
+
|
|
3090
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3091
|
+
|
|
3092
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3093
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3094
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3095
|
+
localVarRequestOptions.data = serializeDataIfNeeded(businessFavoriteDTO, localVarRequestOptions, configuration)
|
|
3096
|
+
|
|
3097
|
+
return {
|
|
3098
|
+
url: toPathString(localVarUrlObj),
|
|
3099
|
+
options: localVarRequestOptions,
|
|
3100
|
+
};
|
|
3101
|
+
},
|
|
3102
|
+
/**
|
|
3103
|
+
*
|
|
3104
|
+
* @param {BusinessVerificationControllerABNVerificationTypeEnum} type The type of business verification number (e.g., ABN, NZBN)
|
|
3105
|
+
* @param {string} businessNumber
|
|
3106
|
+
* @param {*} [options] Override http request option.
|
|
3107
|
+
* @throws {RequiredError}
|
|
3108
|
+
*/
|
|
3109
|
+
businessVerificationControllerABNVerification: async (type: BusinessVerificationControllerABNVerificationTypeEnum, businessNumber: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3110
|
+
// verify required parameter 'type' is not null or undefined
|
|
3111
|
+
assertParamExists('businessVerificationControllerABNVerification', 'type', type)
|
|
3112
|
+
// verify required parameter 'businessNumber' is not null or undefined
|
|
3113
|
+
assertParamExists('businessVerificationControllerABNVerification', 'businessNumber', businessNumber)
|
|
3114
|
+
const localVarPath = `/v1/business/verify/{type}/{businessNumber}`
|
|
3115
|
+
.replace(`{${"type"}}`, encodeURIComponent(String(type)))
|
|
3116
|
+
.replace(`{${"businessNumber"}}`, encodeURIComponent(String(businessNumber)));
|
|
3117
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3118
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3119
|
+
let baseOptions;
|
|
3120
|
+
if (configuration) {
|
|
3121
|
+
baseOptions = configuration.baseOptions;
|
|
3122
|
+
}
|
|
3123
|
+
|
|
3124
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
3125
|
+
const localVarHeaderParameter = {} as any;
|
|
3126
|
+
const localVarQueryParameter = {} as any;
|
|
3127
|
+
|
|
3128
|
+
|
|
3129
|
+
|
|
3130
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3131
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3132
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3133
|
+
|
|
3134
|
+
return {
|
|
3135
|
+
url: toPathString(localVarUrlObj),
|
|
3136
|
+
options: localVarRequestOptions,
|
|
3137
|
+
};
|
|
3138
|
+
},
|
|
3139
|
+
}
|
|
3140
|
+
};
|
|
3141
|
+
|
|
3142
|
+
/**
|
|
3143
|
+
* BusinessApi - functional programming interface
|
|
3144
|
+
* @export
|
|
3145
|
+
*/
|
|
3146
|
+
export const BusinessApiFp = function(configuration?: Configuration) {
|
|
3147
|
+
const localVarAxiosParamCreator = BusinessApiAxiosParamCreator(configuration)
|
|
3148
|
+
return {
|
|
3149
|
+
/**
|
|
3150
|
+
*
|
|
3151
|
+
* @param {BusinessOnBoardingDTO} businessOnBoardingDTO
|
|
3152
|
+
* @param {*} [options] Override http request option.
|
|
3153
|
+
* @throws {RequiredError}
|
|
3154
|
+
*/
|
|
3155
|
+
async businessControllerBusinessOnboarding(businessOnBoardingDTO: BusinessOnBoardingDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BusinessOnBoardingResponseDTO>> {
|
|
3156
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.businessControllerBusinessOnboarding(businessOnBoardingDTO, options);
|
|
3157
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2927
3158
|
const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessControllerBusinessOnboarding']?.[localVarOperationServerIndex]?.url;
|
|
2928
3159
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2929
3160
|
},
|
|
@@ -2943,12 +3174,30 @@ export const BusinessApiFp = function(configuration?: Configuration) {
|
|
|
2943
3174
|
* @param {*} [options] Override http request option.
|
|
2944
3175
|
* @throws {RequiredError}
|
|
2945
3176
|
*/
|
|
2946
|
-
async businessControllerListBusinesses(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
3177
|
+
async businessControllerListBusinesses(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BusinessOnBoardingResponseDTO>>> {
|
|
2947
3178
|
const localVarAxiosArgs = await localVarAxiosParamCreator.businessControllerListBusinesses(options);
|
|
2948
3179
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2949
3180
|
const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessControllerListBusinesses']?.[localVarOperationServerIndex]?.url;
|
|
2950
3181
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2951
3182
|
},
|
|
3183
|
+
/**
|
|
3184
|
+
*
|
|
3185
|
+
* @param {string} [type] Business type ID
|
|
3186
|
+
* @param {string} [search] Business name search
|
|
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, search?: 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, search, 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,24 @@ 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} [search] Business name search
|
|
3322
|
+
* @param {string} [category] Business category ID
|
|
3323
|
+
* @param {number} [longitude] Longitude of the location
|
|
3324
|
+
* @param {number} [latitude] Latitude of the location
|
|
3325
|
+
* @param {number} [page] Page number for pagination
|
|
3326
|
+
* @param {number} [limit] Number of items per page for pagination
|
|
3327
|
+
* @param {*} [options] Override http request option.
|
|
3328
|
+
* @throws {RequiredError}
|
|
3329
|
+
*/
|
|
3330
|
+
businessTypeControllerGetBusinessVenue(type?: string, search?: string, category?: string, longitude?: number, latitude?: number, page?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<BusinessVenueResponseDTO> {
|
|
3331
|
+
return localVarFp.businessTypeControllerGetBusinessVenue(type, search, category, longitude, latitude, page, limit, options).then((request) => request(axios, basePath));
|
|
3332
|
+
},
|
|
3032
3333
|
/**
|
|
3033
3334
|
*
|
|
3034
3335
|
* @param {*} [options] Override http request option.
|
|
@@ -3039,12 +3340,12 @@ export const BusinessApiFactory = function (configuration?: Configuration, baseP
|
|
|
3039
3340
|
},
|
|
3040
3341
|
/**
|
|
3041
3342
|
*
|
|
3042
|
-
* @param {string}
|
|
3343
|
+
* @param {string} businessTypeId ID of the business type
|
|
3043
3344
|
* @param {*} [options] Override http request option.
|
|
3044
3345
|
* @throws {RequiredError}
|
|
3045
3346
|
*/
|
|
3046
|
-
businessTypeControllerListCategories(
|
|
3047
|
-
return localVarFp.businessTypeControllerListCategories(
|
|
3347
|
+
businessTypeControllerListCategories(businessTypeId: string, options?: RawAxiosRequestConfig): AxiosPromise<CategoryListResponse> {
|
|
3348
|
+
return localVarFp.businessTypeControllerListCategories(businessTypeId, options).then((request) => request(axios, basePath));
|
|
3048
3349
|
},
|
|
3049
3350
|
/**
|
|
3050
3351
|
*
|
|
@@ -3062,6 +3363,34 @@ export const BusinessApiFactory = function (configuration?: Configuration, baseP
|
|
|
3062
3363
|
businessTypeControllerListPriceRange(options?: RawAxiosRequestConfig): AxiosPromise<PriceRangeListResponse> {
|
|
3063
3364
|
return localVarFp.businessTypeControllerListPriceRange(options).then((request) => request(axios, basePath));
|
|
3064
3365
|
},
|
|
3366
|
+
/**
|
|
3367
|
+
*
|
|
3368
|
+
* @param {BusinessFavoriteDTO} businessFavoriteDTO
|
|
3369
|
+
* @param {*} [options] Override http request option.
|
|
3370
|
+
* @throws {RequiredError}
|
|
3371
|
+
*/
|
|
3372
|
+
businessTypeControllerMarkBusinessAsFavorite(businessFavoriteDTO: BusinessFavoriteDTO, options?: RawAxiosRequestConfig): AxiosPromise<BusinessFavoriteResponse> {
|
|
3373
|
+
return localVarFp.businessTypeControllerMarkBusinessAsFavorite(businessFavoriteDTO, options).then((request) => request(axios, basePath));
|
|
3374
|
+
},
|
|
3375
|
+
/**
|
|
3376
|
+
*
|
|
3377
|
+
* @param {BusinessFavoriteDTO} businessFavoriteDTO
|
|
3378
|
+
* @param {*} [options] Override http request option.
|
|
3379
|
+
* @throws {RequiredError}
|
|
3380
|
+
*/
|
|
3381
|
+
businessTypeControllerUnFavoriteBusiness(businessFavoriteDTO: BusinessFavoriteDTO, options?: RawAxiosRequestConfig): AxiosPromise<BusinessUnFavoriteResponse> {
|
|
3382
|
+
return localVarFp.businessTypeControllerUnFavoriteBusiness(businessFavoriteDTO, options).then((request) => request(axios, basePath));
|
|
3383
|
+
},
|
|
3384
|
+
/**
|
|
3385
|
+
*
|
|
3386
|
+
* @param {BusinessVerificationControllerABNVerificationTypeEnum} type The type of business verification number (e.g., ABN, NZBN)
|
|
3387
|
+
* @param {string} businessNumber
|
|
3388
|
+
* @param {*} [options] Override http request option.
|
|
3389
|
+
* @throws {RequiredError}
|
|
3390
|
+
*/
|
|
3391
|
+
businessVerificationControllerABNVerification(type: BusinessVerificationControllerABNVerificationTypeEnum, businessNumber: string, options?: RawAxiosRequestConfig): AxiosPromise<BusinessVerificationResponse> {
|
|
3392
|
+
return localVarFp.businessVerificationControllerABNVerification(type, businessNumber, options).then((request) => request(axios, basePath));
|
|
3393
|
+
},
|
|
3065
3394
|
};
|
|
3066
3395
|
};
|
|
3067
3396
|
|
|
@@ -3103,6 +3432,23 @@ export class BusinessApi extends BaseAPI {
|
|
|
3103
3432
|
return BusinessApiFp(this.configuration).businessControllerListBusinesses(options).then((request) => request(this.axios, this.basePath));
|
|
3104
3433
|
}
|
|
3105
3434
|
|
|
3435
|
+
/**
|
|
3436
|
+
*
|
|
3437
|
+
* @param {string} [type] Business type ID
|
|
3438
|
+
* @param {string} [search] Business name search
|
|
3439
|
+
* @param {string} [category] Business category ID
|
|
3440
|
+
* @param {number} [longitude] Longitude of the location
|
|
3441
|
+
* @param {number} [latitude] Latitude of the location
|
|
3442
|
+
* @param {number} [page] Page number for pagination
|
|
3443
|
+
* @param {number} [limit] Number of items per page for pagination
|
|
3444
|
+
* @param {*} [options] Override http request option.
|
|
3445
|
+
* @throws {RequiredError}
|
|
3446
|
+
* @memberof BusinessApi
|
|
3447
|
+
*/
|
|
3448
|
+
public businessTypeControllerGetBusinessVenue(type?: string, search?: string, category?: string, longitude?: number, latitude?: number, page?: number, limit?: number, options?: RawAxiosRequestConfig) {
|
|
3449
|
+
return BusinessApiFp(this.configuration).businessTypeControllerGetBusinessVenue(type, search, category, longitude, latitude, page, limit, options).then((request) => request(this.axios, this.basePath));
|
|
3450
|
+
}
|
|
3451
|
+
|
|
3106
3452
|
/**
|
|
3107
3453
|
*
|
|
3108
3454
|
* @param {*} [options] Override http request option.
|
|
@@ -3115,13 +3461,13 @@ export class BusinessApi extends BaseAPI {
|
|
|
3115
3461
|
|
|
3116
3462
|
/**
|
|
3117
3463
|
*
|
|
3118
|
-
* @param {string}
|
|
3464
|
+
* @param {string} businessTypeId ID of the business type
|
|
3119
3465
|
* @param {*} [options] Override http request option.
|
|
3120
3466
|
* @throws {RequiredError}
|
|
3121
3467
|
* @memberof BusinessApi
|
|
3122
3468
|
*/
|
|
3123
|
-
public businessTypeControllerListCategories(
|
|
3124
|
-
return BusinessApiFp(this.configuration).businessTypeControllerListCategories(
|
|
3469
|
+
public businessTypeControllerListCategories(businessTypeId: string, options?: RawAxiosRequestConfig) {
|
|
3470
|
+
return BusinessApiFp(this.configuration).businessTypeControllerListCategories(businessTypeId, options).then((request) => request(this.axios, this.basePath));
|
|
3125
3471
|
}
|
|
3126
3472
|
|
|
3127
3473
|
/**
|
|
@@ -3143,118 +3489,41 @@ export class BusinessApi extends BaseAPI {
|
|
|
3143
3489
|
public businessTypeControllerListPriceRange(options?: RawAxiosRequestConfig) {
|
|
3144
3490
|
return BusinessApiFp(this.configuration).businessTypeControllerListPriceRange(options).then((request) => request(this.axios, this.basePath));
|
|
3145
3491
|
}
|
|
3146
|
-
}
|
|
3147
3492
|
|
|
3493
|
+
/**
|
|
3494
|
+
*
|
|
3495
|
+
* @param {BusinessFavoriteDTO} businessFavoriteDTO
|
|
3496
|
+
* @param {*} [options] Override http request option.
|
|
3497
|
+
* @throws {RequiredError}
|
|
3498
|
+
* @memberof BusinessApi
|
|
3499
|
+
*/
|
|
3500
|
+
public businessTypeControllerMarkBusinessAsFavorite(businessFavoriteDTO: BusinessFavoriteDTO, options?: RawAxiosRequestConfig) {
|
|
3501
|
+
return BusinessApiFp(this.configuration).businessTypeControllerMarkBusinessAsFavorite(businessFavoriteDTO, options).then((request) => request(this.axios, this.basePath));
|
|
3502
|
+
}
|
|
3503
|
+
|
|
3504
|
+
/**
|
|
3505
|
+
*
|
|
3506
|
+
* @param {BusinessFavoriteDTO} businessFavoriteDTO
|
|
3507
|
+
* @param {*} [options] Override http request option.
|
|
3508
|
+
* @throws {RequiredError}
|
|
3509
|
+
* @memberof BusinessApi
|
|
3510
|
+
*/
|
|
3511
|
+
public businessTypeControllerUnFavoriteBusiness(businessFavoriteDTO: BusinessFavoriteDTO, options?: RawAxiosRequestConfig) {
|
|
3512
|
+
return BusinessApiFp(this.configuration).businessTypeControllerUnFavoriteBusiness(businessFavoriteDTO, options).then((request) => request(this.axios, this.basePath));
|
|
3513
|
+
}
|
|
3148
3514
|
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
|
|
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
|
-
}
|
|
3515
|
+
/**
|
|
3516
|
+
*
|
|
3517
|
+
* @param {BusinessVerificationControllerABNVerificationTypeEnum} type The type of business verification number (e.g., ABN, NZBN)
|
|
3518
|
+
* @param {string} businessNumber
|
|
3519
|
+
* @param {*} [options] Override http request option.
|
|
3520
|
+
* @throws {RequiredError}
|
|
3521
|
+
* @memberof BusinessApi
|
|
3522
|
+
*/
|
|
3523
|
+
public businessVerificationControllerABNVerification(type: BusinessVerificationControllerABNVerificationTypeEnum, businessNumber: string, options?: RawAxiosRequestConfig) {
|
|
3524
|
+
return BusinessApiFp(this.configuration).businessVerificationControllerABNVerification(type, businessNumber, options).then((request) => request(this.axios, this.basePath));
|
|
3525
|
+
}
|
|
3526
|
+
}
|
|
3258
3527
|
|
|
3259
3528
|
/**
|
|
3260
3529
|
* @export
|
|
@@ -3378,552 +3647,6 @@ export class DeviceApi extends BaseAPI {
|
|
|
3378
3647
|
|
|
3379
3648
|
|
|
3380
3649
|
|
|
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
3650
|
/**
|
|
3928
3651
|
* GcsApi - axios parameter creator
|
|
3929
3652
|
* @export
|