@gooday_corp/gooday-api-client 1.0.15-beta → 1.0.16-alpha
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 +207 -126
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -135,7 +135,7 @@ export interface AttributesDto {
|
|
|
135
135
|
*/
|
|
136
136
|
'skills': Array<SkillDto>;
|
|
137
137
|
/**
|
|
138
|
-
* List of
|
|
138
|
+
* List of likes of assistants
|
|
139
139
|
* @type {Array<string>}
|
|
140
140
|
* @memberof AttributesDto
|
|
141
141
|
*/
|
|
@@ -229,7 +229,7 @@ export interface FileNameUploadDTO {
|
|
|
229
229
|
*/
|
|
230
230
|
export interface ForgotPasswordPayloadDTO {
|
|
231
231
|
/**
|
|
232
|
-
* Email
|
|
232
|
+
* User Email
|
|
233
233
|
* @type {string}
|
|
234
234
|
* @memberof ForgotPasswordPayloadDTO
|
|
235
235
|
*/
|
|
@@ -242,7 +242,7 @@ export interface ForgotPasswordPayloadDTO {
|
|
|
242
242
|
*/
|
|
243
243
|
export interface ForgotPasswordResponseDTO {
|
|
244
244
|
/**
|
|
245
|
-
*
|
|
245
|
+
* statusCode
|
|
246
246
|
* @type {number}
|
|
247
247
|
* @memberof ForgotPasswordResponseDTO
|
|
248
248
|
*/
|
|
@@ -432,11 +432,11 @@ export interface OnBoardingDTO {
|
|
|
432
432
|
*/
|
|
433
433
|
'assistant'?: string;
|
|
434
434
|
/**
|
|
435
|
-
*
|
|
436
|
-
* @type {
|
|
435
|
+
*
|
|
436
|
+
* @type {UserPlanDTO}
|
|
437
437
|
* @memberof OnBoardingDTO
|
|
438
438
|
*/
|
|
439
|
-
'plan'?:
|
|
439
|
+
'plan'?: UserPlanDTO;
|
|
440
440
|
/**
|
|
441
441
|
* Date of Birth
|
|
442
442
|
* @type {string}
|
|
@@ -740,12 +740,6 @@ export interface SignupDto {
|
|
|
740
740
|
* @type {string}
|
|
741
741
|
* @memberof SignupDto
|
|
742
742
|
*/
|
|
743
|
-
'profile': string;
|
|
744
|
-
/**
|
|
745
|
-
* The password for the user account
|
|
746
|
-
* @type {string}
|
|
747
|
-
* @memberof SignupDto
|
|
748
|
-
*/
|
|
749
743
|
'password': string;
|
|
750
744
|
}
|
|
751
745
|
/**
|
|
@@ -835,12 +829,6 @@ export interface UserEntity {
|
|
|
835
829
|
* @memberof UserEntity
|
|
836
830
|
*/
|
|
837
831
|
'lastName': string;
|
|
838
|
-
/**
|
|
839
|
-
* Profile Picture of User
|
|
840
|
-
* @type {string}
|
|
841
|
-
* @memberof UserEntity
|
|
842
|
-
*/
|
|
843
|
-
'profile': string;
|
|
844
832
|
/**
|
|
845
833
|
* Email address of the user
|
|
846
834
|
* @type {string}
|
|
@@ -885,10 +873,10 @@ export interface UserEntity {
|
|
|
885
873
|
'goals': Array<string>;
|
|
886
874
|
/**
|
|
887
875
|
* Plan subscribed by the user
|
|
888
|
-
* @type {
|
|
876
|
+
* @type {UserPlanDTO}
|
|
889
877
|
* @memberof UserEntity
|
|
890
878
|
*/
|
|
891
|
-
'plan':
|
|
879
|
+
'plan': UserPlanDTO;
|
|
892
880
|
/**
|
|
893
881
|
* Action user has to perform
|
|
894
882
|
* @type {Array<string>}
|
|
@@ -915,6 +903,71 @@ export interface UserMeDTO {
|
|
|
915
903
|
*/
|
|
916
904
|
'data': UserEntity;
|
|
917
905
|
}
|
|
906
|
+
/**
|
|
907
|
+
*
|
|
908
|
+
* @export
|
|
909
|
+
* @interface UserPlanDTO
|
|
910
|
+
*/
|
|
911
|
+
export interface UserPlanDTO {
|
|
912
|
+
/**
|
|
913
|
+
* id
|
|
914
|
+
* @type {string}
|
|
915
|
+
* @memberof UserPlanDTO
|
|
916
|
+
*/
|
|
917
|
+
'name': UserPlanDTONameEnum;
|
|
918
|
+
/**
|
|
919
|
+
* id
|
|
920
|
+
* @type {string}
|
|
921
|
+
* @memberof UserPlanDTO
|
|
922
|
+
*/
|
|
923
|
+
'id': string;
|
|
924
|
+
}
|
|
925
|
+
|
|
926
|
+
export const UserPlanDTONameEnum = {
|
|
927
|
+
Free: 'free',
|
|
928
|
+
Pro: 'pro'
|
|
929
|
+
} as const;
|
|
930
|
+
|
|
931
|
+
export type UserPlanDTONameEnum = typeof UserPlanDTONameEnum[keyof typeof UserPlanDTONameEnum];
|
|
932
|
+
|
|
933
|
+
/**
|
|
934
|
+
*
|
|
935
|
+
* @export
|
|
936
|
+
* @interface VerifyOTPPayloadDTO
|
|
937
|
+
*/
|
|
938
|
+
export interface VerifyOTPPayloadDTO {
|
|
939
|
+
/**
|
|
940
|
+
* 6 digit otp from mail
|
|
941
|
+
* @type {string}
|
|
942
|
+
* @memberof VerifyOTPPayloadDTO
|
|
943
|
+
*/
|
|
944
|
+
'otp': string;
|
|
945
|
+
/**
|
|
946
|
+
* Email of user
|
|
947
|
+
* @type {string}
|
|
948
|
+
* @memberof VerifyOTPPayloadDTO
|
|
949
|
+
*/
|
|
950
|
+
'email': string;
|
|
951
|
+
}
|
|
952
|
+
/**
|
|
953
|
+
*
|
|
954
|
+
* @export
|
|
955
|
+
* @interface VerifyOTPResponseDTO
|
|
956
|
+
*/
|
|
957
|
+
export interface VerifyOTPResponseDTO {
|
|
958
|
+
/**
|
|
959
|
+
* The HTTP status code
|
|
960
|
+
* @type {number}
|
|
961
|
+
* @memberof VerifyOTPResponseDTO
|
|
962
|
+
*/
|
|
963
|
+
'statusCode': number;
|
|
964
|
+
/**
|
|
965
|
+
* The
|
|
966
|
+
* @type {string}
|
|
967
|
+
* @memberof VerifyOTPResponseDTO
|
|
968
|
+
*/
|
|
969
|
+
'message': string;
|
|
970
|
+
}
|
|
918
971
|
|
|
919
972
|
/**
|
|
920
973
|
* AIApi - axios parameter creator
|
|
@@ -1139,6 +1192,41 @@ export const AuthApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
1139
1192
|
|
|
1140
1193
|
|
|
1141
1194
|
|
|
1195
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1196
|
+
|
|
1197
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1198
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1199
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1200
|
+
localVarRequestOptions.data = serializeDataIfNeeded(forgotPasswordPayloadDTO, localVarRequestOptions, configuration)
|
|
1201
|
+
|
|
1202
|
+
return {
|
|
1203
|
+
url: toPathString(localVarUrlObj),
|
|
1204
|
+
options: localVarRequestOptions,
|
|
1205
|
+
};
|
|
1206
|
+
},
|
|
1207
|
+
/**
|
|
1208
|
+
*
|
|
1209
|
+
* @param {ForgotPasswordPayloadDTO} forgotPasswordPayloadDTO
|
|
1210
|
+
* @param {*} [options] Override http request option.
|
|
1211
|
+
* @throws {RequiredError}
|
|
1212
|
+
*/
|
|
1213
|
+
authControllerResentOTP: async (forgotPasswordPayloadDTO: ForgotPasswordPayloadDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1214
|
+
// verify required parameter 'forgotPasswordPayloadDTO' is not null or undefined
|
|
1215
|
+
assertParamExists('authControllerResentOTP', 'forgotPasswordPayloadDTO', forgotPasswordPayloadDTO)
|
|
1216
|
+
const localVarPath = `/v1/auth/resend-otp`;
|
|
1217
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1218
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1219
|
+
let baseOptions;
|
|
1220
|
+
if (configuration) {
|
|
1221
|
+
baseOptions = configuration.baseOptions;
|
|
1222
|
+
}
|
|
1223
|
+
|
|
1224
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1225
|
+
const localVarHeaderParameter = {} as any;
|
|
1226
|
+
const localVarQueryParameter = {} as any;
|
|
1227
|
+
|
|
1228
|
+
|
|
1229
|
+
|
|
1142
1230
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1143
1231
|
|
|
1144
1232
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -1294,6 +1382,41 @@ export const AuthApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
1294
1382
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1295
1383
|
localVarRequestOptions.data = serializeDataIfNeeded(signupDto, localVarRequestOptions, configuration)
|
|
1296
1384
|
|
|
1385
|
+
return {
|
|
1386
|
+
url: toPathString(localVarUrlObj),
|
|
1387
|
+
options: localVarRequestOptions,
|
|
1388
|
+
};
|
|
1389
|
+
},
|
|
1390
|
+
/**
|
|
1391
|
+
*
|
|
1392
|
+
* @param {VerifyOTPPayloadDTO} verifyOTPPayloadDTO
|
|
1393
|
+
* @param {*} [options] Override http request option.
|
|
1394
|
+
* @throws {RequiredError}
|
|
1395
|
+
*/
|
|
1396
|
+
authControllerVerifyOTP: async (verifyOTPPayloadDTO: VerifyOTPPayloadDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1397
|
+
// verify required parameter 'verifyOTPPayloadDTO' is not null or undefined
|
|
1398
|
+
assertParamExists('authControllerVerifyOTP', 'verifyOTPPayloadDTO', verifyOTPPayloadDTO)
|
|
1399
|
+
const localVarPath = `/v1/auth/verify-otp`;
|
|
1400
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1401
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1402
|
+
let baseOptions;
|
|
1403
|
+
if (configuration) {
|
|
1404
|
+
baseOptions = configuration.baseOptions;
|
|
1405
|
+
}
|
|
1406
|
+
|
|
1407
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1408
|
+
const localVarHeaderParameter = {} as any;
|
|
1409
|
+
const localVarQueryParameter = {} as any;
|
|
1410
|
+
|
|
1411
|
+
|
|
1412
|
+
|
|
1413
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1414
|
+
|
|
1415
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1416
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1417
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1418
|
+
localVarRequestOptions.data = serializeDataIfNeeded(verifyOTPPayloadDTO, localVarRequestOptions, configuration)
|
|
1419
|
+
|
|
1297
1420
|
return {
|
|
1298
1421
|
url: toPathString(localVarUrlObj),
|
|
1299
1422
|
options: localVarRequestOptions,
|
|
@@ -1333,6 +1456,18 @@ export const AuthApiFp = function(configuration?: Configuration) {
|
|
|
1333
1456
|
const localVarOperationServerBasePath = operationServerMap['AuthApi.authControllerForgotPassword']?.[localVarOperationServerIndex]?.url;
|
|
1334
1457
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1335
1458
|
},
|
|
1459
|
+
/**
|
|
1460
|
+
*
|
|
1461
|
+
* @param {ForgotPasswordPayloadDTO} forgotPasswordPayloadDTO
|
|
1462
|
+
* @param {*} [options] Override http request option.
|
|
1463
|
+
* @throws {RequiredError}
|
|
1464
|
+
*/
|
|
1465
|
+
async authControllerResentOTP(forgotPasswordPayloadDTO: ForgotPasswordPayloadDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ForgotPasswordResponseDTO>> {
|
|
1466
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerResentOTP(forgotPasswordPayloadDTO, options);
|
|
1467
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1468
|
+
const localVarOperationServerBasePath = operationServerMap['AuthApi.authControllerResentOTP']?.[localVarOperationServerIndex]?.url;
|
|
1469
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1470
|
+
},
|
|
1336
1471
|
/**
|
|
1337
1472
|
*
|
|
1338
1473
|
* @param {ResetPasswordPayloadDTO} resetPasswordPayloadDTO
|
|
@@ -1381,6 +1516,18 @@ export const AuthApiFp = function(configuration?: Configuration) {
|
|
|
1381
1516
|
const localVarOperationServerBasePath = operationServerMap['AuthApi.authControllerSignUp']?.[localVarOperationServerIndex]?.url;
|
|
1382
1517
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1383
1518
|
},
|
|
1519
|
+
/**
|
|
1520
|
+
*
|
|
1521
|
+
* @param {VerifyOTPPayloadDTO} verifyOTPPayloadDTO
|
|
1522
|
+
* @param {*} [options] Override http request option.
|
|
1523
|
+
* @throws {RequiredError}
|
|
1524
|
+
*/
|
|
1525
|
+
async authControllerVerifyOTP(verifyOTPPayloadDTO: VerifyOTPPayloadDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VerifyOTPResponseDTO>> {
|
|
1526
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerVerifyOTP(verifyOTPPayloadDTO, options);
|
|
1527
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1528
|
+
const localVarOperationServerBasePath = operationServerMap['AuthApi.authControllerVerifyOTP']?.[localVarOperationServerIndex]?.url;
|
|
1529
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1530
|
+
},
|
|
1384
1531
|
}
|
|
1385
1532
|
};
|
|
1386
1533
|
|
|
@@ -1409,6 +1556,15 @@ export const AuthApiFactory = function (configuration?: Configuration, basePath?
|
|
|
1409
1556
|
authControllerForgotPassword(forgotPasswordPayloadDTO: ForgotPasswordPayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<ForgotPasswordResponseDTO> {
|
|
1410
1557
|
return localVarFp.authControllerForgotPassword(forgotPasswordPayloadDTO, options).then((request) => request(axios, basePath));
|
|
1411
1558
|
},
|
|
1559
|
+
/**
|
|
1560
|
+
*
|
|
1561
|
+
* @param {ForgotPasswordPayloadDTO} forgotPasswordPayloadDTO
|
|
1562
|
+
* @param {*} [options] Override http request option.
|
|
1563
|
+
* @throws {RequiredError}
|
|
1564
|
+
*/
|
|
1565
|
+
authControllerResentOTP(forgotPasswordPayloadDTO: ForgotPasswordPayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<ForgotPasswordResponseDTO> {
|
|
1566
|
+
return localVarFp.authControllerResentOTP(forgotPasswordPayloadDTO, options).then((request) => request(axios, basePath));
|
|
1567
|
+
},
|
|
1412
1568
|
/**
|
|
1413
1569
|
*
|
|
1414
1570
|
* @param {ResetPasswordPayloadDTO} resetPasswordPayloadDTO
|
|
@@ -1445,6 +1601,15 @@ export const AuthApiFactory = function (configuration?: Configuration, basePath?
|
|
|
1445
1601
|
authControllerSignUp(signupDto: SignupDto, options?: RawAxiosRequestConfig): AxiosPromise<SignupResponseDto> {
|
|
1446
1602
|
return localVarFp.authControllerSignUp(signupDto, options).then((request) => request(axios, basePath));
|
|
1447
1603
|
},
|
|
1604
|
+
/**
|
|
1605
|
+
*
|
|
1606
|
+
* @param {VerifyOTPPayloadDTO} verifyOTPPayloadDTO
|
|
1607
|
+
* @param {*} [options] Override http request option.
|
|
1608
|
+
* @throws {RequiredError}
|
|
1609
|
+
*/
|
|
1610
|
+
authControllerVerifyOTP(verifyOTPPayloadDTO: VerifyOTPPayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<VerifyOTPResponseDTO> {
|
|
1611
|
+
return localVarFp.authControllerVerifyOTP(verifyOTPPayloadDTO, options).then((request) => request(axios, basePath));
|
|
1612
|
+
},
|
|
1448
1613
|
};
|
|
1449
1614
|
};
|
|
1450
1615
|
|
|
@@ -1477,6 +1642,17 @@ export class AuthApi extends BaseAPI {
|
|
|
1477
1642
|
return AuthApiFp(this.configuration).authControllerForgotPassword(forgotPasswordPayloadDTO, options).then((request) => request(this.axios, this.basePath));
|
|
1478
1643
|
}
|
|
1479
1644
|
|
|
1645
|
+
/**
|
|
1646
|
+
*
|
|
1647
|
+
* @param {ForgotPasswordPayloadDTO} forgotPasswordPayloadDTO
|
|
1648
|
+
* @param {*} [options] Override http request option.
|
|
1649
|
+
* @throws {RequiredError}
|
|
1650
|
+
* @memberof AuthApi
|
|
1651
|
+
*/
|
|
1652
|
+
public authControllerResentOTP(forgotPasswordPayloadDTO: ForgotPasswordPayloadDTO, options?: RawAxiosRequestConfig) {
|
|
1653
|
+
return AuthApiFp(this.configuration).authControllerResentOTP(forgotPasswordPayloadDTO, options).then((request) => request(this.axios, this.basePath));
|
|
1654
|
+
}
|
|
1655
|
+
|
|
1480
1656
|
/**
|
|
1481
1657
|
*
|
|
1482
1658
|
* @param {ResetPasswordPayloadDTO} resetPasswordPayloadDTO
|
|
@@ -1520,6 +1696,17 @@ export class AuthApi extends BaseAPI {
|
|
|
1520
1696
|
public authControllerSignUp(signupDto: SignupDto, options?: RawAxiosRequestConfig) {
|
|
1521
1697
|
return AuthApiFp(this.configuration).authControllerSignUp(signupDto, options).then((request) => request(this.axios, this.basePath));
|
|
1522
1698
|
}
|
|
1699
|
+
|
|
1700
|
+
/**
|
|
1701
|
+
*
|
|
1702
|
+
* @param {VerifyOTPPayloadDTO} verifyOTPPayloadDTO
|
|
1703
|
+
* @param {*} [options] Override http request option.
|
|
1704
|
+
* @throws {RequiredError}
|
|
1705
|
+
* @memberof AuthApi
|
|
1706
|
+
*/
|
|
1707
|
+
public authControllerVerifyOTP(verifyOTPPayloadDTO: VerifyOTPPayloadDTO, options?: RawAxiosRequestConfig) {
|
|
1708
|
+
return AuthApiFp(this.configuration).authControllerVerifyOTP(verifyOTPPayloadDTO, options).then((request) => request(this.axios, this.basePath));
|
|
1709
|
+
}
|
|
1523
1710
|
}
|
|
1524
1711
|
|
|
1525
1712
|
|
|
@@ -2040,112 +2227,6 @@ export class PlansApi extends BaseAPI {
|
|
|
2040
2227
|
|
|
2041
2228
|
|
|
2042
2229
|
|
|
2043
|
-
/**
|
|
2044
|
-
* PostApi - axios parameter creator
|
|
2045
|
-
* @export
|
|
2046
|
-
*/
|
|
2047
|
-
export const PostApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
2048
|
-
return {
|
|
2049
|
-
/**
|
|
2050
|
-
*
|
|
2051
|
-
* @param {FileNameUploadDTO} fileNameUploadDTO
|
|
2052
|
-
* @param {*} [options] Override http request option.
|
|
2053
|
-
* @throws {RequiredError}
|
|
2054
|
-
*/
|
|
2055
|
-
gcpControllerUploadFile: async (fileNameUploadDTO: FileNameUploadDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2056
|
-
// verify required parameter 'fileNameUploadDTO' is not null or undefined
|
|
2057
|
-
assertParamExists('gcpControllerUploadFile', 'fileNameUploadDTO', fileNameUploadDTO)
|
|
2058
|
-
const localVarPath = `/v1/gcs/file`;
|
|
2059
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2060
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2061
|
-
let baseOptions;
|
|
2062
|
-
if (configuration) {
|
|
2063
|
-
baseOptions = configuration.baseOptions;
|
|
2064
|
-
}
|
|
2065
|
-
|
|
2066
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
2067
|
-
const localVarHeaderParameter = {} as any;
|
|
2068
|
-
const localVarQueryParameter = {} as any;
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2073
|
-
|
|
2074
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2075
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2076
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2077
|
-
localVarRequestOptions.data = serializeDataIfNeeded(fileNameUploadDTO, localVarRequestOptions, configuration)
|
|
2078
|
-
|
|
2079
|
-
return {
|
|
2080
|
-
url: toPathString(localVarUrlObj),
|
|
2081
|
-
options: localVarRequestOptions,
|
|
2082
|
-
};
|
|
2083
|
-
},
|
|
2084
|
-
}
|
|
2085
|
-
};
|
|
2086
|
-
|
|
2087
|
-
/**
|
|
2088
|
-
* PostApi - functional programming interface
|
|
2089
|
-
* @export
|
|
2090
|
-
*/
|
|
2091
|
-
export const PostApiFp = function(configuration?: Configuration) {
|
|
2092
|
-
const localVarAxiosParamCreator = PostApiAxiosParamCreator(configuration)
|
|
2093
|
-
return {
|
|
2094
|
-
/**
|
|
2095
|
-
*
|
|
2096
|
-
* @param {FileNameUploadDTO} fileNameUploadDTO
|
|
2097
|
-
* @param {*} [options] Override http request option.
|
|
2098
|
-
* @throws {RequiredError}
|
|
2099
|
-
*/
|
|
2100
|
-
async gcpControllerUploadFile(fileNameUploadDTO: FileNameUploadDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SignedUrlResponseDTO>> {
|
|
2101
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.gcpControllerUploadFile(fileNameUploadDTO, options);
|
|
2102
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2103
|
-
const localVarOperationServerBasePath = operationServerMap['PostApi.gcpControllerUploadFile']?.[localVarOperationServerIndex]?.url;
|
|
2104
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2105
|
-
},
|
|
2106
|
-
}
|
|
2107
|
-
};
|
|
2108
|
-
|
|
2109
|
-
/**
|
|
2110
|
-
* PostApi - factory interface
|
|
2111
|
-
* @export
|
|
2112
|
-
*/
|
|
2113
|
-
export const PostApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
2114
|
-
const localVarFp = PostApiFp(configuration)
|
|
2115
|
-
return {
|
|
2116
|
-
/**
|
|
2117
|
-
*
|
|
2118
|
-
* @param {FileNameUploadDTO} fileNameUploadDTO
|
|
2119
|
-
* @param {*} [options] Override http request option.
|
|
2120
|
-
* @throws {RequiredError}
|
|
2121
|
-
*/
|
|
2122
|
-
gcpControllerUploadFile(fileNameUploadDTO: FileNameUploadDTO, options?: RawAxiosRequestConfig): AxiosPromise<SignedUrlResponseDTO> {
|
|
2123
|
-
return localVarFp.gcpControllerUploadFile(fileNameUploadDTO, options).then((request) => request(axios, basePath));
|
|
2124
|
-
},
|
|
2125
|
-
};
|
|
2126
|
-
};
|
|
2127
|
-
|
|
2128
|
-
/**
|
|
2129
|
-
* PostApi - object-oriented interface
|
|
2130
|
-
* @export
|
|
2131
|
-
* @class PostApi
|
|
2132
|
-
* @extends {BaseAPI}
|
|
2133
|
-
*/
|
|
2134
|
-
export class PostApi extends BaseAPI {
|
|
2135
|
-
/**
|
|
2136
|
-
*
|
|
2137
|
-
* @param {FileNameUploadDTO} fileNameUploadDTO
|
|
2138
|
-
* @param {*} [options] Override http request option.
|
|
2139
|
-
* @throws {RequiredError}
|
|
2140
|
-
* @memberof PostApi
|
|
2141
|
-
*/
|
|
2142
|
-
public gcpControllerUploadFile(fileNameUploadDTO: FileNameUploadDTO, options?: RawAxiosRequestConfig) {
|
|
2143
|
-
return PostApiFp(this.configuration).gcpControllerUploadFile(fileNameUploadDTO, options).then((request) => request(this.axios, this.basePath));
|
|
2144
|
-
}
|
|
2145
|
-
}
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
2230
|
/**
|
|
2150
2231
|
* UsersApi - axios parameter creator
|
|
2151
2232
|
* @export
|