@gooday_corp/gooday-api-client 1.2.23 → 1.2.25
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 +742 -4
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -750,6 +750,12 @@ export interface BusinessOnBoardingDTO {
|
|
|
750
750
|
* @memberof BusinessOnBoardingDTO
|
|
751
751
|
*/
|
|
752
752
|
'assistant'?: string;
|
|
753
|
+
/**
|
|
754
|
+
*
|
|
755
|
+
* @type {string}
|
|
756
|
+
* @memberof BusinessOnBoardingDTO
|
|
757
|
+
*/
|
|
758
|
+
'cancellationDuration'?: string;
|
|
753
759
|
}
|
|
754
760
|
/**
|
|
755
761
|
*
|
|
@@ -1167,10 +1173,10 @@ export interface BusinessUnFavoriteResponse {
|
|
|
1167
1173
|
export interface BusinessVenueDTO {
|
|
1168
1174
|
/**
|
|
1169
1175
|
* coverPhots
|
|
1170
|
-
* @type {string}
|
|
1176
|
+
* @type {Array<string>}
|
|
1171
1177
|
* @memberof BusinessVenueDTO
|
|
1172
1178
|
*/
|
|
1173
|
-
'coverPhoto': string
|
|
1179
|
+
'coverPhoto': Array<string>;
|
|
1174
1180
|
/**
|
|
1175
1181
|
*
|
|
1176
1182
|
* @type {string}
|
|
@@ -1189,6 +1195,42 @@ export interface BusinessVenueDTO {
|
|
|
1189
1195
|
* @memberof BusinessVenueDTO
|
|
1190
1196
|
*/
|
|
1191
1197
|
'numberOfEmployee': string;
|
|
1198
|
+
/**
|
|
1199
|
+
*
|
|
1200
|
+
* @type {Array<string>}
|
|
1201
|
+
* @memberof BusinessVenueDTO
|
|
1202
|
+
*/
|
|
1203
|
+
'tags': Array<string>;
|
|
1204
|
+
/**
|
|
1205
|
+
*
|
|
1206
|
+
* @type {SocialMedia}
|
|
1207
|
+
* @memberof BusinessVenueDTO
|
|
1208
|
+
*/
|
|
1209
|
+
'socialMedia': SocialMedia;
|
|
1210
|
+
/**
|
|
1211
|
+
*
|
|
1212
|
+
* @type {Array<Contact>}
|
|
1213
|
+
* @memberof BusinessVenueDTO
|
|
1214
|
+
*/
|
|
1215
|
+
'contacts': Array<Contact>;
|
|
1216
|
+
/**
|
|
1217
|
+
*
|
|
1218
|
+
* @type {string}
|
|
1219
|
+
* @memberof BusinessVenueDTO
|
|
1220
|
+
*/
|
|
1221
|
+
'description': string;
|
|
1222
|
+
/**
|
|
1223
|
+
*
|
|
1224
|
+
* @type {string}
|
|
1225
|
+
* @memberof BusinessVenueDTO
|
|
1226
|
+
*/
|
|
1227
|
+
'averageBookingDuration': string;
|
|
1228
|
+
/**
|
|
1229
|
+
*
|
|
1230
|
+
* @type {string}
|
|
1231
|
+
* @memberof BusinessVenueDTO
|
|
1232
|
+
*/
|
|
1233
|
+
'furtherInstructions': string;
|
|
1192
1234
|
}
|
|
1193
1235
|
/**
|
|
1194
1236
|
*
|
|
@@ -1204,22 +1246,34 @@ export interface BusinessVenueDetailsEntity {
|
|
|
1204
1246
|
'_id'?: string;
|
|
1205
1247
|
/**
|
|
1206
1248
|
* coverPhots
|
|
1207
|
-
* @type {string}
|
|
1249
|
+
* @type {Array<string>}
|
|
1208
1250
|
* @memberof BusinessVenueDetailsEntity
|
|
1209
1251
|
*/
|
|
1210
|
-
'coverPhoto': string
|
|
1252
|
+
'coverPhoto': Array<string>;
|
|
1211
1253
|
/**
|
|
1212
1254
|
*
|
|
1213
1255
|
* @type {string}
|
|
1214
1256
|
* @memberof BusinessVenueDetailsEntity
|
|
1215
1257
|
*/
|
|
1216
1258
|
'priceRange': string;
|
|
1259
|
+
/**
|
|
1260
|
+
*
|
|
1261
|
+
* @type {string}
|
|
1262
|
+
* @memberof BusinessVenueDetailsEntity
|
|
1263
|
+
*/
|
|
1264
|
+
'description': string;
|
|
1217
1265
|
/**
|
|
1218
1266
|
*
|
|
1219
1267
|
* @type {LocationDTO}
|
|
1220
1268
|
* @memberof BusinessVenueDetailsEntity
|
|
1221
1269
|
*/
|
|
1222
1270
|
'location': LocationDTO;
|
|
1271
|
+
/**
|
|
1272
|
+
*
|
|
1273
|
+
* @type {Array<Contact>}
|
|
1274
|
+
* @memberof BusinessVenueDetailsEntity
|
|
1275
|
+
*/
|
|
1276
|
+
'contacts': Array<Contact>;
|
|
1223
1277
|
/**
|
|
1224
1278
|
*
|
|
1225
1279
|
* @type {string}
|
|
@@ -1238,6 +1292,30 @@ export interface BusinessVenueDetailsEntity {
|
|
|
1238
1292
|
* @memberof BusinessVenueDetailsEntity
|
|
1239
1293
|
*/
|
|
1240
1294
|
'business': BusinessEntity;
|
|
1295
|
+
/**
|
|
1296
|
+
*
|
|
1297
|
+
* @type {Array<string>}
|
|
1298
|
+
* @memberof BusinessVenueDetailsEntity
|
|
1299
|
+
*/
|
|
1300
|
+
'tags': Array<string>;
|
|
1301
|
+
/**
|
|
1302
|
+
*
|
|
1303
|
+
* @type {SocialMedia}
|
|
1304
|
+
* @memberof BusinessVenueDetailsEntity
|
|
1305
|
+
*/
|
|
1306
|
+
'socialMedia': SocialMedia;
|
|
1307
|
+
/**
|
|
1308
|
+
*
|
|
1309
|
+
* @type {string}
|
|
1310
|
+
* @memberof BusinessVenueDetailsEntity
|
|
1311
|
+
*/
|
|
1312
|
+
'averageBookingDuration': string;
|
|
1313
|
+
/**
|
|
1314
|
+
*
|
|
1315
|
+
* @type {string}
|
|
1316
|
+
* @memberof BusinessVenueDetailsEntity
|
|
1317
|
+
*/
|
|
1318
|
+
'furtherInstructions': string;
|
|
1241
1319
|
}
|
|
1242
1320
|
/**
|
|
1243
1321
|
*
|
|
@@ -1576,6 +1654,31 @@ export interface CategoryListResponse {
|
|
|
1576
1654
|
*/
|
|
1577
1655
|
'data': Array<CategoryEntity>;
|
|
1578
1656
|
}
|
|
1657
|
+
/**
|
|
1658
|
+
*
|
|
1659
|
+
* @export
|
|
1660
|
+
* @interface Contact
|
|
1661
|
+
*/
|
|
1662
|
+
export interface Contact {
|
|
1663
|
+
/**
|
|
1664
|
+
*
|
|
1665
|
+
* @type {string}
|
|
1666
|
+
* @memberof Contact
|
|
1667
|
+
*/
|
|
1668
|
+
'email'?: string;
|
|
1669
|
+
/**
|
|
1670
|
+
*
|
|
1671
|
+
* @type {string}
|
|
1672
|
+
* @memberof Contact
|
|
1673
|
+
*/
|
|
1674
|
+
'mobile'?: string;
|
|
1675
|
+
/**
|
|
1676
|
+
*
|
|
1677
|
+
* @type {string}
|
|
1678
|
+
* @memberof Contact
|
|
1679
|
+
*/
|
|
1680
|
+
'website'?: string;
|
|
1681
|
+
}
|
|
1579
1682
|
/**
|
|
1580
1683
|
*
|
|
1581
1684
|
* @export
|
|
@@ -2402,6 +2505,36 @@ export interface GetBusinessVenueDto {
|
|
|
2402
2505
|
* @memberof GetBusinessVenueDto
|
|
2403
2506
|
*/
|
|
2404
2507
|
'limit'?: number;
|
|
2508
|
+
/**
|
|
2509
|
+
*
|
|
2510
|
+
* @type {string}
|
|
2511
|
+
* @memberof GetBusinessVenueDto
|
|
2512
|
+
*/
|
|
2513
|
+
'price'?: string;
|
|
2514
|
+
/**
|
|
2515
|
+
*
|
|
2516
|
+
* @type {number}
|
|
2517
|
+
* @memberof GetBusinessVenueDto
|
|
2518
|
+
*/
|
|
2519
|
+
'people'?: number;
|
|
2520
|
+
/**
|
|
2521
|
+
*
|
|
2522
|
+
* @type {boolean}
|
|
2523
|
+
* @memberof GetBusinessVenueDto
|
|
2524
|
+
*/
|
|
2525
|
+
'available_today'?: boolean;
|
|
2526
|
+
/**
|
|
2527
|
+
*
|
|
2528
|
+
* @type {string}
|
|
2529
|
+
* @memberof GetBusinessVenueDto
|
|
2530
|
+
*/
|
|
2531
|
+
'distance'?: string;
|
|
2532
|
+
/**
|
|
2533
|
+
*
|
|
2534
|
+
* @type {string}
|
|
2535
|
+
* @memberof GetBusinessVenueDto
|
|
2536
|
+
*/
|
|
2537
|
+
'cuisine'?: string;
|
|
2405
2538
|
}
|
|
2406
2539
|
/**
|
|
2407
2540
|
*
|
|
@@ -3691,6 +3824,25 @@ export interface SkillDto {
|
|
|
3691
3824
|
*/
|
|
3692
3825
|
'weightage': number;
|
|
3693
3826
|
}
|
|
3827
|
+
/**
|
|
3828
|
+
*
|
|
3829
|
+
* @export
|
|
3830
|
+
* @interface SocialMedia
|
|
3831
|
+
*/
|
|
3832
|
+
export interface SocialMedia {
|
|
3833
|
+
/**
|
|
3834
|
+
*
|
|
3835
|
+
* @type {Array<string>}
|
|
3836
|
+
* @memberof SocialMedia
|
|
3837
|
+
*/
|
|
3838
|
+
'images'?: Array<string>;
|
|
3839
|
+
/**
|
|
3840
|
+
*
|
|
3841
|
+
* @type {string}
|
|
3842
|
+
* @memberof SocialMedia
|
|
3843
|
+
*/
|
|
3844
|
+
'link'?: string;
|
|
3845
|
+
}
|
|
3694
3846
|
/**
|
|
3695
3847
|
*
|
|
3696
3848
|
* @export
|
|
@@ -3761,6 +3913,191 @@ export interface StripeSetupPaymentIntentDTO {
|
|
|
3761
3913
|
*/
|
|
3762
3914
|
'clientSecret': string;
|
|
3763
3915
|
}
|
|
3916
|
+
/**
|
|
3917
|
+
*
|
|
3918
|
+
* @export
|
|
3919
|
+
* @interface TagPayloadDTO
|
|
3920
|
+
*/
|
|
3921
|
+
export interface TagPayloadDTO {
|
|
3922
|
+
/**
|
|
3923
|
+
* Tag name
|
|
3924
|
+
* @type {string}
|
|
3925
|
+
* @memberof TagPayloadDTO
|
|
3926
|
+
*/
|
|
3927
|
+
'name': string;
|
|
3928
|
+
/**
|
|
3929
|
+
* Tag category
|
|
3930
|
+
* @type {string}
|
|
3931
|
+
* @memberof TagPayloadDTO
|
|
3932
|
+
*/
|
|
3933
|
+
'category': TagPayloadDTOCategoryEnum;
|
|
3934
|
+
/**
|
|
3935
|
+
* Group name
|
|
3936
|
+
* @type {string}
|
|
3937
|
+
* @memberof TagPayloadDTO
|
|
3938
|
+
*/
|
|
3939
|
+
'group': string;
|
|
3940
|
+
/**
|
|
3941
|
+
* Tag icon
|
|
3942
|
+
* @type {string}
|
|
3943
|
+
* @memberof TagPayloadDTO
|
|
3944
|
+
*/
|
|
3945
|
+
'icon': string;
|
|
3946
|
+
/**
|
|
3947
|
+
*
|
|
3948
|
+
* @type {boolean}
|
|
3949
|
+
* @memberof TagPayloadDTO
|
|
3950
|
+
*/
|
|
3951
|
+
'allVenues': boolean;
|
|
3952
|
+
}
|
|
3953
|
+
|
|
3954
|
+
export const TagPayloadDTOCategoryEnum = {
|
|
3955
|
+
Booking: 'BOOKING',
|
|
3956
|
+
Customer: 'CUSTOMER'
|
|
3957
|
+
} as const;
|
|
3958
|
+
|
|
3959
|
+
export type TagPayloadDTOCategoryEnum = typeof TagPayloadDTOCategoryEnum[keyof typeof TagPayloadDTOCategoryEnum];
|
|
3960
|
+
|
|
3961
|
+
/**
|
|
3962
|
+
*
|
|
3963
|
+
* @export
|
|
3964
|
+
* @interface TagResponseDTO
|
|
3965
|
+
*/
|
|
3966
|
+
export interface TagResponseDTO {
|
|
3967
|
+
/**
|
|
3968
|
+
*
|
|
3969
|
+
* @type {TagsResponse}
|
|
3970
|
+
* @memberof TagResponseDTO
|
|
3971
|
+
*/
|
|
3972
|
+
'data': TagsResponse;
|
|
3973
|
+
/**
|
|
3974
|
+
* statusCode
|
|
3975
|
+
* @type {number}
|
|
3976
|
+
* @memberof TagResponseDTO
|
|
3977
|
+
*/
|
|
3978
|
+
'statusCode': number;
|
|
3979
|
+
}
|
|
3980
|
+
/**
|
|
3981
|
+
*
|
|
3982
|
+
* @export
|
|
3983
|
+
* @interface TagUpdatePayloadDTO
|
|
3984
|
+
*/
|
|
3985
|
+
export interface TagUpdatePayloadDTO {
|
|
3986
|
+
/**
|
|
3987
|
+
* Tag id
|
|
3988
|
+
* @type {string}
|
|
3989
|
+
* @memberof TagUpdatePayloadDTO
|
|
3990
|
+
*/
|
|
3991
|
+
'_id': string;
|
|
3992
|
+
/**
|
|
3993
|
+
* Tag name
|
|
3994
|
+
* @type {string}
|
|
3995
|
+
* @memberof TagUpdatePayloadDTO
|
|
3996
|
+
*/
|
|
3997
|
+
'name': string;
|
|
3998
|
+
/**
|
|
3999
|
+
* Tag category
|
|
4000
|
+
* @type {string}
|
|
4001
|
+
* @memberof TagUpdatePayloadDTO
|
|
4002
|
+
*/
|
|
4003
|
+
'category': TagUpdatePayloadDTOCategoryEnum;
|
|
4004
|
+
/**
|
|
4005
|
+
* Group name
|
|
4006
|
+
* @type {string}
|
|
4007
|
+
* @memberof TagUpdatePayloadDTO
|
|
4008
|
+
*/
|
|
4009
|
+
'group': string;
|
|
4010
|
+
/**
|
|
4011
|
+
* Tag icon
|
|
4012
|
+
* @type {string}
|
|
4013
|
+
* @memberof TagUpdatePayloadDTO
|
|
4014
|
+
*/
|
|
4015
|
+
'icon': string;
|
|
4016
|
+
/**
|
|
4017
|
+
*
|
|
4018
|
+
* @type {boolean}
|
|
4019
|
+
* @memberof TagUpdatePayloadDTO
|
|
4020
|
+
*/
|
|
4021
|
+
'allVenues': boolean;
|
|
4022
|
+
}
|
|
4023
|
+
|
|
4024
|
+
export const TagUpdatePayloadDTOCategoryEnum = {
|
|
4025
|
+
Booking: 'BOOKING',
|
|
4026
|
+
Customer: 'CUSTOMER'
|
|
4027
|
+
} as const;
|
|
4028
|
+
|
|
4029
|
+
export type TagUpdatePayloadDTOCategoryEnum = typeof TagUpdatePayloadDTOCategoryEnum[keyof typeof TagUpdatePayloadDTOCategoryEnum];
|
|
4030
|
+
|
|
4031
|
+
/**
|
|
4032
|
+
*
|
|
4033
|
+
* @export
|
|
4034
|
+
* @interface TagsResponse
|
|
4035
|
+
*/
|
|
4036
|
+
export interface TagsResponse {
|
|
4037
|
+
/**
|
|
4038
|
+
* Tag id
|
|
4039
|
+
* @type {string}
|
|
4040
|
+
* @memberof TagsResponse
|
|
4041
|
+
*/
|
|
4042
|
+
'_id': string;
|
|
4043
|
+
/**
|
|
4044
|
+
* Tag name
|
|
4045
|
+
* @type {string}
|
|
4046
|
+
* @memberof TagsResponse
|
|
4047
|
+
*/
|
|
4048
|
+
'name': string;
|
|
4049
|
+
/**
|
|
4050
|
+
* Tag category
|
|
4051
|
+
* @type {string}
|
|
4052
|
+
* @memberof TagsResponse
|
|
4053
|
+
*/
|
|
4054
|
+
'category': TagsResponseCategoryEnum;
|
|
4055
|
+
/**
|
|
4056
|
+
* Group name
|
|
4057
|
+
* @type {string}
|
|
4058
|
+
* @memberof TagsResponse
|
|
4059
|
+
*/
|
|
4060
|
+
'group': string;
|
|
4061
|
+
/**
|
|
4062
|
+
* Tag icon
|
|
4063
|
+
* @type {string}
|
|
4064
|
+
* @memberof TagsResponse
|
|
4065
|
+
*/
|
|
4066
|
+
'icon': string;
|
|
4067
|
+
/**
|
|
4068
|
+
*
|
|
4069
|
+
* @type {boolean}
|
|
4070
|
+
* @memberof TagsResponse
|
|
4071
|
+
*/
|
|
4072
|
+
'allVenues': boolean;
|
|
4073
|
+
}
|
|
4074
|
+
|
|
4075
|
+
export const TagsResponseCategoryEnum = {
|
|
4076
|
+
Booking: 'BOOKING',
|
|
4077
|
+
Customer: 'CUSTOMER'
|
|
4078
|
+
} as const;
|
|
4079
|
+
|
|
4080
|
+
export type TagsResponseCategoryEnum = typeof TagsResponseCategoryEnum[keyof typeof TagsResponseCategoryEnum];
|
|
4081
|
+
|
|
4082
|
+
/**
|
|
4083
|
+
*
|
|
4084
|
+
* @export
|
|
4085
|
+
* @interface TagsResponseDTO
|
|
4086
|
+
*/
|
|
4087
|
+
export interface TagsResponseDTO {
|
|
4088
|
+
/**
|
|
4089
|
+
*
|
|
4090
|
+
* @type {Array<TagsResponse>}
|
|
4091
|
+
* @memberof TagsResponseDTO
|
|
4092
|
+
*/
|
|
4093
|
+
'data': Array<TagsResponse>;
|
|
4094
|
+
/**
|
|
4095
|
+
* statusCode
|
|
4096
|
+
* @type {number}
|
|
4097
|
+
* @memberof TagsResponseDTO
|
|
4098
|
+
*/
|
|
4099
|
+
'statusCode': number;
|
|
4100
|
+
}
|
|
3764
4101
|
/**
|
|
3765
4102
|
*
|
|
3766
4103
|
* @export
|
|
@@ -10956,6 +11293,407 @@ export class PlansApi extends BaseAPI {
|
|
|
10956
11293
|
|
|
10957
11294
|
|
|
10958
11295
|
|
|
11296
|
+
/**
|
|
11297
|
+
* TagsApi - axios parameter creator
|
|
11298
|
+
* @export
|
|
11299
|
+
*/
|
|
11300
|
+
export const TagsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
11301
|
+
return {
|
|
11302
|
+
/**
|
|
11303
|
+
*
|
|
11304
|
+
* @param {TagPayloadDTO} tagPayloadDTO
|
|
11305
|
+
* @param {*} [options] Override http request option.
|
|
11306
|
+
* @throws {RequiredError}
|
|
11307
|
+
*/
|
|
11308
|
+
tagsControllerCreateTag: async (tagPayloadDTO: TagPayloadDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
11309
|
+
// verify required parameter 'tagPayloadDTO' is not null or undefined
|
|
11310
|
+
assertParamExists('tagsControllerCreateTag', 'tagPayloadDTO', tagPayloadDTO)
|
|
11311
|
+
const localVarPath = `/v1/tag`;
|
|
11312
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11313
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
11314
|
+
let baseOptions;
|
|
11315
|
+
if (configuration) {
|
|
11316
|
+
baseOptions = configuration.baseOptions;
|
|
11317
|
+
}
|
|
11318
|
+
|
|
11319
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
11320
|
+
const localVarHeaderParameter = {} as any;
|
|
11321
|
+
const localVarQueryParameter = {} as any;
|
|
11322
|
+
|
|
11323
|
+
// authentication bearer required
|
|
11324
|
+
// http bearer authentication required
|
|
11325
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
11326
|
+
|
|
11327
|
+
|
|
11328
|
+
|
|
11329
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
11330
|
+
|
|
11331
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11332
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11333
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
11334
|
+
localVarRequestOptions.data = serializeDataIfNeeded(tagPayloadDTO, localVarRequestOptions, configuration)
|
|
11335
|
+
|
|
11336
|
+
return {
|
|
11337
|
+
url: toPathString(localVarUrlObj),
|
|
11338
|
+
options: localVarRequestOptions,
|
|
11339
|
+
};
|
|
11340
|
+
},
|
|
11341
|
+
/**
|
|
11342
|
+
*
|
|
11343
|
+
* @param {string} id
|
|
11344
|
+
* @param {*} [options] Override http request option.
|
|
11345
|
+
* @throws {RequiredError}
|
|
11346
|
+
*/
|
|
11347
|
+
tagsControllerDeleteTagById: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
11348
|
+
// verify required parameter 'id' is not null or undefined
|
|
11349
|
+
assertParamExists('tagsControllerDeleteTagById', 'id', id)
|
|
11350
|
+
const localVarPath = `/v1/tag/{id}`
|
|
11351
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
11352
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11353
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
11354
|
+
let baseOptions;
|
|
11355
|
+
if (configuration) {
|
|
11356
|
+
baseOptions = configuration.baseOptions;
|
|
11357
|
+
}
|
|
11358
|
+
|
|
11359
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
11360
|
+
const localVarHeaderParameter = {} as any;
|
|
11361
|
+
const localVarQueryParameter = {} as any;
|
|
11362
|
+
|
|
11363
|
+
// authentication bearer required
|
|
11364
|
+
// http bearer authentication required
|
|
11365
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
11366
|
+
|
|
11367
|
+
|
|
11368
|
+
|
|
11369
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11370
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11371
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
11372
|
+
|
|
11373
|
+
return {
|
|
11374
|
+
url: toPathString(localVarUrlObj),
|
|
11375
|
+
options: localVarRequestOptions,
|
|
11376
|
+
};
|
|
11377
|
+
},
|
|
11378
|
+
/**
|
|
11379
|
+
*
|
|
11380
|
+
* @param {number} page
|
|
11381
|
+
* @param {number} pageSize
|
|
11382
|
+
* @param {*} [options] Override http request option.
|
|
11383
|
+
* @throws {RequiredError}
|
|
11384
|
+
*/
|
|
11385
|
+
tagsControllerFindTags: async (page: number, pageSize: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
11386
|
+
// verify required parameter 'page' is not null or undefined
|
|
11387
|
+
assertParamExists('tagsControllerFindTags', 'page', page)
|
|
11388
|
+
// verify required parameter 'pageSize' is not null or undefined
|
|
11389
|
+
assertParamExists('tagsControllerFindTags', 'pageSize', pageSize)
|
|
11390
|
+
const localVarPath = `/v1/tags`;
|
|
11391
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11392
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
11393
|
+
let baseOptions;
|
|
11394
|
+
if (configuration) {
|
|
11395
|
+
baseOptions = configuration.baseOptions;
|
|
11396
|
+
}
|
|
11397
|
+
|
|
11398
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
11399
|
+
const localVarHeaderParameter = {} as any;
|
|
11400
|
+
const localVarQueryParameter = {} as any;
|
|
11401
|
+
|
|
11402
|
+
// authentication bearer required
|
|
11403
|
+
// http bearer authentication required
|
|
11404
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
11405
|
+
|
|
11406
|
+
if (page !== undefined) {
|
|
11407
|
+
localVarQueryParameter['page'] = page;
|
|
11408
|
+
}
|
|
11409
|
+
|
|
11410
|
+
if (pageSize !== undefined) {
|
|
11411
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
11412
|
+
}
|
|
11413
|
+
|
|
11414
|
+
|
|
11415
|
+
|
|
11416
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11417
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11418
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
11419
|
+
|
|
11420
|
+
return {
|
|
11421
|
+
url: toPathString(localVarUrlObj),
|
|
11422
|
+
options: localVarRequestOptions,
|
|
11423
|
+
};
|
|
11424
|
+
},
|
|
11425
|
+
/**
|
|
11426
|
+
*
|
|
11427
|
+
* @param {string} id
|
|
11428
|
+
* @param {*} [options] Override http request option.
|
|
11429
|
+
* @throws {RequiredError}
|
|
11430
|
+
*/
|
|
11431
|
+
tagsControllerTagById: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
11432
|
+
// verify required parameter 'id' is not null or undefined
|
|
11433
|
+
assertParamExists('tagsControllerTagById', 'id', id)
|
|
11434
|
+
const localVarPath = `/v1/tag/{id}`
|
|
11435
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
11436
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11437
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
11438
|
+
let baseOptions;
|
|
11439
|
+
if (configuration) {
|
|
11440
|
+
baseOptions = configuration.baseOptions;
|
|
11441
|
+
}
|
|
11442
|
+
|
|
11443
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
11444
|
+
const localVarHeaderParameter = {} as any;
|
|
11445
|
+
const localVarQueryParameter = {} as any;
|
|
11446
|
+
|
|
11447
|
+
// authentication bearer required
|
|
11448
|
+
// http bearer authentication required
|
|
11449
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
11450
|
+
|
|
11451
|
+
|
|
11452
|
+
|
|
11453
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11454
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11455
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
11456
|
+
|
|
11457
|
+
return {
|
|
11458
|
+
url: toPathString(localVarUrlObj),
|
|
11459
|
+
options: localVarRequestOptions,
|
|
11460
|
+
};
|
|
11461
|
+
},
|
|
11462
|
+
/**
|
|
11463
|
+
*
|
|
11464
|
+
* @param {TagUpdatePayloadDTO} tagUpdatePayloadDTO
|
|
11465
|
+
* @param {*} [options] Override http request option.
|
|
11466
|
+
* @throws {RequiredError}
|
|
11467
|
+
*/
|
|
11468
|
+
tagsControllerUpdateTagById: async (tagUpdatePayloadDTO: TagUpdatePayloadDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
11469
|
+
// verify required parameter 'tagUpdatePayloadDTO' is not null or undefined
|
|
11470
|
+
assertParamExists('tagsControllerUpdateTagById', 'tagUpdatePayloadDTO', tagUpdatePayloadDTO)
|
|
11471
|
+
const localVarPath = `/v1/tag`;
|
|
11472
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11473
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
11474
|
+
let baseOptions;
|
|
11475
|
+
if (configuration) {
|
|
11476
|
+
baseOptions = configuration.baseOptions;
|
|
11477
|
+
}
|
|
11478
|
+
|
|
11479
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
11480
|
+
const localVarHeaderParameter = {} as any;
|
|
11481
|
+
const localVarQueryParameter = {} as any;
|
|
11482
|
+
|
|
11483
|
+
// authentication bearer required
|
|
11484
|
+
// http bearer authentication required
|
|
11485
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
11486
|
+
|
|
11487
|
+
|
|
11488
|
+
|
|
11489
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
11490
|
+
|
|
11491
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11492
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11493
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
11494
|
+
localVarRequestOptions.data = serializeDataIfNeeded(tagUpdatePayloadDTO, localVarRequestOptions, configuration)
|
|
11495
|
+
|
|
11496
|
+
return {
|
|
11497
|
+
url: toPathString(localVarUrlObj),
|
|
11498
|
+
options: localVarRequestOptions,
|
|
11499
|
+
};
|
|
11500
|
+
},
|
|
11501
|
+
}
|
|
11502
|
+
};
|
|
11503
|
+
|
|
11504
|
+
/**
|
|
11505
|
+
* TagsApi - functional programming interface
|
|
11506
|
+
* @export
|
|
11507
|
+
*/
|
|
11508
|
+
export const TagsApiFp = function(configuration?: Configuration) {
|
|
11509
|
+
const localVarAxiosParamCreator = TagsApiAxiosParamCreator(configuration)
|
|
11510
|
+
return {
|
|
11511
|
+
/**
|
|
11512
|
+
*
|
|
11513
|
+
* @param {TagPayloadDTO} tagPayloadDTO
|
|
11514
|
+
* @param {*} [options] Override http request option.
|
|
11515
|
+
* @throws {RequiredError}
|
|
11516
|
+
*/
|
|
11517
|
+
async tagsControllerCreateTag(tagPayloadDTO: TagPayloadDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagResponseDTO>> {
|
|
11518
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.tagsControllerCreateTag(tagPayloadDTO, options);
|
|
11519
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
11520
|
+
const localVarOperationServerBasePath = operationServerMap['TagsApi.tagsControllerCreateTag']?.[localVarOperationServerIndex]?.url;
|
|
11521
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11522
|
+
},
|
|
11523
|
+
/**
|
|
11524
|
+
*
|
|
11525
|
+
* @param {string} id
|
|
11526
|
+
* @param {*} [options] Override http request option.
|
|
11527
|
+
* @throws {RequiredError}
|
|
11528
|
+
*/
|
|
11529
|
+
async tagsControllerDeleteTagById(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagResponseDTO>> {
|
|
11530
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.tagsControllerDeleteTagById(id, options);
|
|
11531
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
11532
|
+
const localVarOperationServerBasePath = operationServerMap['TagsApi.tagsControllerDeleteTagById']?.[localVarOperationServerIndex]?.url;
|
|
11533
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11534
|
+
},
|
|
11535
|
+
/**
|
|
11536
|
+
*
|
|
11537
|
+
* @param {number} page
|
|
11538
|
+
* @param {number} pageSize
|
|
11539
|
+
* @param {*} [options] Override http request option.
|
|
11540
|
+
* @throws {RequiredError}
|
|
11541
|
+
*/
|
|
11542
|
+
async tagsControllerFindTags(page: number, pageSize: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagsResponseDTO>> {
|
|
11543
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.tagsControllerFindTags(page, pageSize, options);
|
|
11544
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
11545
|
+
const localVarOperationServerBasePath = operationServerMap['TagsApi.tagsControllerFindTags']?.[localVarOperationServerIndex]?.url;
|
|
11546
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11547
|
+
},
|
|
11548
|
+
/**
|
|
11549
|
+
*
|
|
11550
|
+
* @param {string} id
|
|
11551
|
+
* @param {*} [options] Override http request option.
|
|
11552
|
+
* @throws {RequiredError}
|
|
11553
|
+
*/
|
|
11554
|
+
async tagsControllerTagById(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagResponseDTO>> {
|
|
11555
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.tagsControllerTagById(id, options);
|
|
11556
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
11557
|
+
const localVarOperationServerBasePath = operationServerMap['TagsApi.tagsControllerTagById']?.[localVarOperationServerIndex]?.url;
|
|
11558
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11559
|
+
},
|
|
11560
|
+
/**
|
|
11561
|
+
*
|
|
11562
|
+
* @param {TagUpdatePayloadDTO} tagUpdatePayloadDTO
|
|
11563
|
+
* @param {*} [options] Override http request option.
|
|
11564
|
+
* @throws {RequiredError}
|
|
11565
|
+
*/
|
|
11566
|
+
async tagsControllerUpdateTagById(tagUpdatePayloadDTO: TagUpdatePayloadDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagResponseDTO>> {
|
|
11567
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.tagsControllerUpdateTagById(tagUpdatePayloadDTO, options);
|
|
11568
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
11569
|
+
const localVarOperationServerBasePath = operationServerMap['TagsApi.tagsControllerUpdateTagById']?.[localVarOperationServerIndex]?.url;
|
|
11570
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11571
|
+
},
|
|
11572
|
+
}
|
|
11573
|
+
};
|
|
11574
|
+
|
|
11575
|
+
/**
|
|
11576
|
+
* TagsApi - factory interface
|
|
11577
|
+
* @export
|
|
11578
|
+
*/
|
|
11579
|
+
export const TagsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
11580
|
+
const localVarFp = TagsApiFp(configuration)
|
|
11581
|
+
return {
|
|
11582
|
+
/**
|
|
11583
|
+
*
|
|
11584
|
+
* @param {TagPayloadDTO} tagPayloadDTO
|
|
11585
|
+
* @param {*} [options] Override http request option.
|
|
11586
|
+
* @throws {RequiredError}
|
|
11587
|
+
*/
|
|
11588
|
+
tagsControllerCreateTag(tagPayloadDTO: TagPayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<TagResponseDTO> {
|
|
11589
|
+
return localVarFp.tagsControllerCreateTag(tagPayloadDTO, options).then((request) => request(axios, basePath));
|
|
11590
|
+
},
|
|
11591
|
+
/**
|
|
11592
|
+
*
|
|
11593
|
+
* @param {string} id
|
|
11594
|
+
* @param {*} [options] Override http request option.
|
|
11595
|
+
* @throws {RequiredError}
|
|
11596
|
+
*/
|
|
11597
|
+
tagsControllerDeleteTagById(id: string, options?: RawAxiosRequestConfig): AxiosPromise<TagResponseDTO> {
|
|
11598
|
+
return localVarFp.tagsControllerDeleteTagById(id, options).then((request) => request(axios, basePath));
|
|
11599
|
+
},
|
|
11600
|
+
/**
|
|
11601
|
+
*
|
|
11602
|
+
* @param {number} page
|
|
11603
|
+
* @param {number} pageSize
|
|
11604
|
+
* @param {*} [options] Override http request option.
|
|
11605
|
+
* @throws {RequiredError}
|
|
11606
|
+
*/
|
|
11607
|
+
tagsControllerFindTags(page: number, pageSize: number, options?: RawAxiosRequestConfig): AxiosPromise<TagsResponseDTO> {
|
|
11608
|
+
return localVarFp.tagsControllerFindTags(page, pageSize, options).then((request) => request(axios, basePath));
|
|
11609
|
+
},
|
|
11610
|
+
/**
|
|
11611
|
+
*
|
|
11612
|
+
* @param {string} id
|
|
11613
|
+
* @param {*} [options] Override http request option.
|
|
11614
|
+
* @throws {RequiredError}
|
|
11615
|
+
*/
|
|
11616
|
+
tagsControllerTagById(id: string, options?: RawAxiosRequestConfig): AxiosPromise<TagResponseDTO> {
|
|
11617
|
+
return localVarFp.tagsControllerTagById(id, options).then((request) => request(axios, basePath));
|
|
11618
|
+
},
|
|
11619
|
+
/**
|
|
11620
|
+
*
|
|
11621
|
+
* @param {TagUpdatePayloadDTO} tagUpdatePayloadDTO
|
|
11622
|
+
* @param {*} [options] Override http request option.
|
|
11623
|
+
* @throws {RequiredError}
|
|
11624
|
+
*/
|
|
11625
|
+
tagsControllerUpdateTagById(tagUpdatePayloadDTO: TagUpdatePayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<TagResponseDTO> {
|
|
11626
|
+
return localVarFp.tagsControllerUpdateTagById(tagUpdatePayloadDTO, options).then((request) => request(axios, basePath));
|
|
11627
|
+
},
|
|
11628
|
+
};
|
|
11629
|
+
};
|
|
11630
|
+
|
|
11631
|
+
/**
|
|
11632
|
+
* TagsApi - object-oriented interface
|
|
11633
|
+
* @export
|
|
11634
|
+
* @class TagsApi
|
|
11635
|
+
* @extends {BaseAPI}
|
|
11636
|
+
*/
|
|
11637
|
+
export class TagsApi extends BaseAPI {
|
|
11638
|
+
/**
|
|
11639
|
+
*
|
|
11640
|
+
* @param {TagPayloadDTO} tagPayloadDTO
|
|
11641
|
+
* @param {*} [options] Override http request option.
|
|
11642
|
+
* @throws {RequiredError}
|
|
11643
|
+
* @memberof TagsApi
|
|
11644
|
+
*/
|
|
11645
|
+
public tagsControllerCreateTag(tagPayloadDTO: TagPayloadDTO, options?: RawAxiosRequestConfig) {
|
|
11646
|
+
return TagsApiFp(this.configuration).tagsControllerCreateTag(tagPayloadDTO, options).then((request) => request(this.axios, this.basePath));
|
|
11647
|
+
}
|
|
11648
|
+
|
|
11649
|
+
/**
|
|
11650
|
+
*
|
|
11651
|
+
* @param {string} id
|
|
11652
|
+
* @param {*} [options] Override http request option.
|
|
11653
|
+
* @throws {RequiredError}
|
|
11654
|
+
* @memberof TagsApi
|
|
11655
|
+
*/
|
|
11656
|
+
public tagsControllerDeleteTagById(id: string, options?: RawAxiosRequestConfig) {
|
|
11657
|
+
return TagsApiFp(this.configuration).tagsControllerDeleteTagById(id, options).then((request) => request(this.axios, this.basePath));
|
|
11658
|
+
}
|
|
11659
|
+
|
|
11660
|
+
/**
|
|
11661
|
+
*
|
|
11662
|
+
* @param {number} page
|
|
11663
|
+
* @param {number} pageSize
|
|
11664
|
+
* @param {*} [options] Override http request option.
|
|
11665
|
+
* @throws {RequiredError}
|
|
11666
|
+
* @memberof TagsApi
|
|
11667
|
+
*/
|
|
11668
|
+
public tagsControllerFindTags(page: number, pageSize: number, options?: RawAxiosRequestConfig) {
|
|
11669
|
+
return TagsApiFp(this.configuration).tagsControllerFindTags(page, pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
11670
|
+
}
|
|
11671
|
+
|
|
11672
|
+
/**
|
|
11673
|
+
*
|
|
11674
|
+
* @param {string} id
|
|
11675
|
+
* @param {*} [options] Override http request option.
|
|
11676
|
+
* @throws {RequiredError}
|
|
11677
|
+
* @memberof TagsApi
|
|
11678
|
+
*/
|
|
11679
|
+
public tagsControllerTagById(id: string, options?: RawAxiosRequestConfig) {
|
|
11680
|
+
return TagsApiFp(this.configuration).tagsControllerTagById(id, options).then((request) => request(this.axios, this.basePath));
|
|
11681
|
+
}
|
|
11682
|
+
|
|
11683
|
+
/**
|
|
11684
|
+
*
|
|
11685
|
+
* @param {TagUpdatePayloadDTO} tagUpdatePayloadDTO
|
|
11686
|
+
* @param {*} [options] Override http request option.
|
|
11687
|
+
* @throws {RequiredError}
|
|
11688
|
+
* @memberof TagsApi
|
|
11689
|
+
*/
|
|
11690
|
+
public tagsControllerUpdateTagById(tagUpdatePayloadDTO: TagUpdatePayloadDTO, options?: RawAxiosRequestConfig) {
|
|
11691
|
+
return TagsApiFp(this.configuration).tagsControllerUpdateTagById(tagUpdatePayloadDTO, options).then((request) => request(this.axios, this.basePath));
|
|
11692
|
+
}
|
|
11693
|
+
}
|
|
11694
|
+
|
|
11695
|
+
|
|
11696
|
+
|
|
10959
11697
|
/**
|
|
10960
11698
|
* TodoApi - axios parameter creator
|
|
10961
11699
|
* @export
|