@infisale-client/api 1.1.5 → 1.1.6
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/README.md +1 -1
- package/dist/api/api.d.ts +52 -59
- package/dist/api/api.js +35 -7
- package/dist/api/api.mjs +33 -5
- package/package.json +2 -2
package/README.md
CHANGED
package/dist/api/api.d.ts
CHANGED
|
@@ -471,6 +471,21 @@ export declare const EmailConfigDnsRecordTypeEnum: {
|
|
|
471
471
|
readonly MX: "MX";
|
|
472
472
|
};
|
|
473
473
|
export type EmailConfigDnsRecordTypeEnum = typeof EmailConfigDnsRecordTypeEnum[keyof typeof EmailConfigDnsRecordTypeEnum];
|
|
474
|
+
/**
|
|
475
|
+
*
|
|
476
|
+
* @export
|
|
477
|
+
* @enum {string}
|
|
478
|
+
*/
|
|
479
|
+
export declare const FileKeywordEnum: {
|
|
480
|
+
readonly CAROUSEL: "carousel";
|
|
481
|
+
readonly BANNER: "banner";
|
|
482
|
+
readonly CONTENT: "content";
|
|
483
|
+
readonly LOGO: "logo";
|
|
484
|
+
readonly PRODUCT: "product";
|
|
485
|
+
readonly ATTACHMENT: "attachment";
|
|
486
|
+
readonly COMMENT: "comment";
|
|
487
|
+
};
|
|
488
|
+
export type FileKeywordEnum = typeof FileKeywordEnum[keyof typeof FileKeywordEnum];
|
|
474
489
|
/**
|
|
475
490
|
*
|
|
476
491
|
* @export
|
|
@@ -3442,10 +3457,10 @@ export interface IFilePatchRequest {
|
|
|
3442
3457
|
'name'?: string;
|
|
3443
3458
|
/**
|
|
3444
3459
|
*
|
|
3445
|
-
* @type {
|
|
3460
|
+
* @type {Array<FileKeywordEnum>}
|
|
3446
3461
|
* @memberof IFilePatchRequest
|
|
3447
3462
|
*/
|
|
3448
|
-
'
|
|
3463
|
+
'keywords'?: Array<FileKeywordEnum>;
|
|
3449
3464
|
}
|
|
3450
3465
|
/**
|
|
3451
3466
|
*
|
|
@@ -3453,18 +3468,6 @@ export interface IFilePatchRequest {
|
|
|
3453
3468
|
* @interface IFileResponse
|
|
3454
3469
|
*/
|
|
3455
3470
|
export interface IFileResponse {
|
|
3456
|
-
/**
|
|
3457
|
-
*
|
|
3458
|
-
* @type {string}
|
|
3459
|
-
* @memberof IFileResponse
|
|
3460
|
-
*/
|
|
3461
|
-
'name': string;
|
|
3462
|
-
/**
|
|
3463
|
-
*
|
|
3464
|
-
* @type {FileStatusEnum}
|
|
3465
|
-
* @memberof IFileResponse
|
|
3466
|
-
*/
|
|
3467
|
-
'status': FileStatusEnum;
|
|
3468
3471
|
/**
|
|
3469
3472
|
*
|
|
3470
3473
|
* @type {string}
|
|
@@ -3491,78 +3494,52 @@ export interface IFileResponse {
|
|
|
3491
3494
|
'updatedAt': string;
|
|
3492
3495
|
/**
|
|
3493
3496
|
*
|
|
3494
|
-
* @type {
|
|
3497
|
+
* @type {string}
|
|
3495
3498
|
* @memberof IFileResponse
|
|
3496
3499
|
*/
|
|
3497
|
-
'
|
|
3500
|
+
'name': string;
|
|
3498
3501
|
/**
|
|
3499
3502
|
*
|
|
3500
|
-
* @type {
|
|
3503
|
+
* @type {string}
|
|
3501
3504
|
* @memberof IFileResponse
|
|
3502
3505
|
*/
|
|
3503
|
-
'
|
|
3506
|
+
'user'?: string;
|
|
3504
3507
|
/**
|
|
3505
3508
|
*
|
|
3506
3509
|
* @type {string}
|
|
3507
3510
|
* @memberof IFileResponse
|
|
3508
3511
|
*/
|
|
3509
|
-
'
|
|
3512
|
+
'company'?: string;
|
|
3510
3513
|
/**
|
|
3511
3514
|
*
|
|
3512
|
-
* @type {
|
|
3515
|
+
* @type {Array<IImagePathsInner>}
|
|
3513
3516
|
* @memberof IFileResponse
|
|
3514
3517
|
*/
|
|
3515
|
-
'
|
|
3518
|
+
'paths': Array<IImagePathsInner>;
|
|
3516
3519
|
/**
|
|
3517
3520
|
*
|
|
3518
|
-
* @type {
|
|
3521
|
+
* @type {FileTypeEnum}
|
|
3519
3522
|
* @memberof IFileResponse
|
|
3520
3523
|
*/
|
|
3521
|
-
'
|
|
3522
|
-
}
|
|
3523
|
-
/**
|
|
3524
|
-
*
|
|
3525
|
-
* @export
|
|
3526
|
-
* @interface IFileResponseCompany
|
|
3527
|
-
*/
|
|
3528
|
-
export interface IFileResponseCompany {
|
|
3529
|
-
/**
|
|
3530
|
-
*
|
|
3531
|
-
* @type {string}
|
|
3532
|
-
* @memberof IFileResponseCompany
|
|
3533
|
-
*/
|
|
3534
|
-
'name': string;
|
|
3535
|
-
/**
|
|
3536
|
-
*
|
|
3537
|
-
* @type {string}
|
|
3538
|
-
* @memberof IFileResponseCompany
|
|
3539
|
-
*/
|
|
3540
|
-
'_id': string;
|
|
3541
|
-
}
|
|
3542
|
-
/**
|
|
3543
|
-
*
|
|
3544
|
-
* @export
|
|
3545
|
-
* @interface IFileResponseUser
|
|
3546
|
-
*/
|
|
3547
|
-
export interface IFileResponseUser {
|
|
3524
|
+
'type': FileTypeEnum;
|
|
3548
3525
|
/**
|
|
3549
3526
|
*
|
|
3550
|
-
* @type {
|
|
3551
|
-
* @memberof
|
|
3527
|
+
* @type {Array<FileKeywordEnum>}
|
|
3528
|
+
* @memberof IFileResponse
|
|
3552
3529
|
*/
|
|
3553
|
-
'
|
|
3530
|
+
'keywords'?: Array<FileKeywordEnum>;
|
|
3554
3531
|
/**
|
|
3555
3532
|
*
|
|
3556
3533
|
* @type {string}
|
|
3557
|
-
* @memberof
|
|
3534
|
+
* @memberof IFileResponse
|
|
3558
3535
|
*/
|
|
3559
|
-
'
|
|
3536
|
+
'mimetype': string;
|
|
3560
3537
|
/**
|
|
3561
3538
|
*
|
|
3562
|
-
* @type {
|
|
3563
|
-
* @memberof
|
|
3539
|
+
* @type {FileStatusEnum}
|
|
3540
|
+
* @memberof IFileResponse
|
|
3564
3541
|
*/
|
|
3565
|
-
'
|
|
3542
|
+
'status': FileStatusEnum;
|
|
3566
3543
|
}
|
|
3567
3544
|
/**
|
|
3568
3545
|
*
|
|
@@ -9766,11 +9743,13 @@ export declare const FileApiAxiosParamCreator: (configuration?: Configuration) =
|
|
|
9766
9743
|
updateFile: (id: string, iFilePatchRequest: IFilePatchRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
9767
9744
|
/**
|
|
9768
9745
|
*
|
|
9746
|
+
* @param {FileKeywordEnum} keyword
|
|
9769
9747
|
* @param {File} file
|
|
9748
|
+
* @param {string} domain
|
|
9770
9749
|
* @param {*} [options] Override http request option.
|
|
9771
9750
|
* @throws {RequiredError}
|
|
9772
9751
|
*/
|
|
9773
|
-
uploadFile: (file: File, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
9752
|
+
uploadFile: (keyword: FileKeywordEnum, file: File, domain: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
9774
9753
|
};
|
|
9775
9754
|
/**
|
|
9776
9755
|
* FileApi - functional programming interface
|
|
@@ -9819,11 +9798,13 @@ export declare const FileApiFp: (configuration?: Configuration) => {
|
|
|
9819
9798
|
updateFile(id: string, iFilePatchRequest: IFilePatchRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IFileResponse>>;
|
|
9820
9799
|
/**
|
|
9821
9800
|
*
|
|
9801
|
+
* @param {FileKeywordEnum} keyword
|
|
9822
9802
|
* @param {File} file
|
|
9803
|
+
* @param {string} domain
|
|
9823
9804
|
* @param {*} [options] Override http request option.
|
|
9824
9805
|
* @throws {RequiredError}
|
|
9825
9806
|
*/
|
|
9826
|
-
uploadFile(file: File, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IImage>>;
|
|
9807
|
+
uploadFile(keyword: FileKeywordEnum, file: File, domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IImage>>;
|
|
9827
9808
|
};
|
|
9828
9809
|
/**
|
|
9829
9810
|
* FileApi - factory interface
|
|
@@ -9996,12 +9977,24 @@ export interface FileApiUpdateFileRequest {
|
|
|
9996
9977
|
* @interface FileApiUploadFileRequest
|
|
9997
9978
|
*/
|
|
9998
9979
|
export interface FileApiUploadFileRequest {
|
|
9980
|
+
/**
|
|
9981
|
+
*
|
|
9982
|
+
* @type {FileKeywordEnum}
|
|
9983
|
+
* @memberof FileApiUploadFile
|
|
9984
|
+
*/
|
|
9985
|
+
readonly keyword: FileKeywordEnum;
|
|
9999
9986
|
/**
|
|
10000
9987
|
*
|
|
10001
9988
|
* @type {File}
|
|
10002
9989
|
* @memberof FileApiUploadFile
|
|
10003
9990
|
*/
|
|
10004
9991
|
readonly file: File;
|
|
9992
|
+
/**
|
|
9993
|
+
*
|
|
9994
|
+
* @type {string}
|
|
9995
|
+
* @memberof FileApiUploadFile
|
|
9996
|
+
*/
|
|
9997
|
+
readonly domain: string;
|
|
10005
9998
|
}
|
|
10006
9999
|
/**
|
|
10007
10000
|
* FileApi - object-oriented interface
|
package/dist/api/api.js
CHANGED
|
@@ -16,8 +16,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
16
16
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
17
|
};
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.
|
|
20
|
-
exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.ThemeApi = exports.ThemeApiFactory = exports.ThemeApiFp = exports.ThemeApiAxiosParamCreator = exports.TemplateApi = exports.TemplateApiFactory = exports.TemplateApiFp = exports.TemplateApiAxiosParamCreator = exports.ProductApi = exports.ProductApiFactory = exports.ProductApiFp = exports.ProductApiAxiosParamCreator = exports.PlanApi = exports.PlanApiFactory = exports.PlanApiFp = exports.PlanApiAxiosParamCreator = exports.PageApi = exports.PageApiFactory = exports.PageApiFp = exports.PageApiAxiosParamCreator = exports.OperationApi = exports.OperationApiFactory = exports.OperationApiFp = exports.OperationApiAxiosParamCreator = exports.NotificationApi = exports.NotificationApiFactory = exports.NotificationApiFp = exports.NotificationApiAxiosParamCreator = exports.FileApi = exports.FileApiFactory = exports.FileApiFp = exports.FileApiAxiosParamCreator = exports.CompanyApi = exports.CompanyApiFactory = exports.CompanyApiFp = exports.CompanyApiAxiosParamCreator = exports.CollectionApi = exports.CollectionApiFactory = void 0;
|
|
19
|
+
exports.CollectionApiAxiosParamCreator = exports.CategoryApi = exports.CategoryApiFactory = exports.CategoryApiFp = exports.CategoryApiAxiosParamCreator = exports.BrandApi = exports.BrandApiFactory = exports.BrandApiFp = exports.BrandApiAxiosParamCreator = exports.AuthApi = exports.AuthApiFactory = exports.AuthApiFp = exports.AuthApiAxiosParamCreator = exports.AddressApi = exports.AddressApiFactory = exports.AddressApiFp = exports.AddressApiAxiosParamCreator = exports.UserStatusEnum = exports.UserRoleEnum = exports.TimezoneEnum = exports.ThemeTypeEnum = exports.TemplateTypeEnum = exports.PlanTypeEnum = exports.PlanStatusEnum = exports.PlanCurrencyEnum = exports.PaginationLimitEnum = exports.PageTypeEnum = exports.OrderEnum = exports.OperationStatusEnum = exports.NotificationStatusEnum = exports.NotificationMessageEnum = exports.NavigationUrlTargetEnum = exports.LanguageEnum = exports.GridTypeEnum = exports.FileTypeEnum = exports.FileStatusEnum = exports.FileKeywordEnum = exports.EmailConfigDnsRecordTypeEnum = exports.CurrencyRateTypeEnum = exports.CurrencyEnum = exports.CountryEnum = exports.ContentStatusEnum = exports.ComponentTypeEnum = exports.ComponentProductTypeEnum = exports.ComponentProductOrderEnum = exports.ComponentProductListTypeEnum = exports.ComponentContentTypeEnum = exports.CompanyUserStatusEnum = exports.CompanyTypeEnum = exports.CompanyStatusEnum = void 0;
|
|
20
|
+
exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.ThemeApi = exports.ThemeApiFactory = exports.ThemeApiFp = exports.ThemeApiAxiosParamCreator = exports.TemplateApi = exports.TemplateApiFactory = exports.TemplateApiFp = exports.TemplateApiAxiosParamCreator = exports.ProductApi = exports.ProductApiFactory = exports.ProductApiFp = exports.ProductApiAxiosParamCreator = exports.PlanApi = exports.PlanApiFactory = exports.PlanApiFp = exports.PlanApiAxiosParamCreator = exports.PageApi = exports.PageApiFactory = exports.PageApiFp = exports.PageApiAxiosParamCreator = exports.OperationApi = exports.OperationApiFactory = exports.OperationApiFp = exports.OperationApiAxiosParamCreator = exports.NotificationApi = exports.NotificationApiFactory = exports.NotificationApiFp = exports.NotificationApiAxiosParamCreator = exports.FileApi = exports.FileApiFactory = exports.FileApiFp = exports.FileApiAxiosParamCreator = exports.CompanyApi = exports.CompanyApiFactory = exports.CompanyApiFp = exports.CompanyApiAxiosParamCreator = exports.CollectionApi = exports.CollectionApiFactory = exports.CollectionApiFp = void 0;
|
|
21
21
|
const axios_1 = __importDefault(require("axios"));
|
|
22
22
|
// Some imports not used depending on template conditions
|
|
23
23
|
// @ts-ignore
|
|
@@ -425,6 +425,20 @@ exports.EmailConfigDnsRecordTypeEnum = {
|
|
|
425
425
|
TXT: 'TXT',
|
|
426
426
|
MX: 'MX'
|
|
427
427
|
};
|
|
428
|
+
/**
|
|
429
|
+
*
|
|
430
|
+
* @export
|
|
431
|
+
* @enum {string}
|
|
432
|
+
*/
|
|
433
|
+
exports.FileKeywordEnum = {
|
|
434
|
+
CAROUSEL: 'carousel',
|
|
435
|
+
BANNER: 'banner',
|
|
436
|
+
CONTENT: 'content',
|
|
437
|
+
LOGO: 'logo',
|
|
438
|
+
PRODUCT: 'product',
|
|
439
|
+
ATTACHMENT: 'attachment',
|
|
440
|
+
COMMENT: 'comment'
|
|
441
|
+
};
|
|
428
442
|
/**
|
|
429
443
|
*
|
|
430
444
|
* @export
|
|
@@ -4318,13 +4332,19 @@ const FileApiAxiosParamCreator = function (configuration) {
|
|
|
4318
4332
|
},
|
|
4319
4333
|
/**
|
|
4320
4334
|
*
|
|
4335
|
+
* @param {FileKeywordEnum} keyword
|
|
4321
4336
|
* @param {File} file
|
|
4337
|
+
* @param {string} domain
|
|
4322
4338
|
* @param {*} [options] Override http request option.
|
|
4323
4339
|
* @throws {RequiredError}
|
|
4324
4340
|
*/
|
|
4325
|
-
uploadFile: async (file, options = {}) => {
|
|
4341
|
+
uploadFile: async (keyword, file, domain, options = {}) => {
|
|
4342
|
+
// verify required parameter 'keyword' is not null or undefined
|
|
4343
|
+
(0, common_1.assertParamExists)('uploadFile', 'keyword', keyword);
|
|
4326
4344
|
// verify required parameter 'file' is not null or undefined
|
|
4327
4345
|
(0, common_1.assertParamExists)('uploadFile', 'file', file);
|
|
4346
|
+
// verify required parameter 'domain' is not null or undefined
|
|
4347
|
+
(0, common_1.assertParamExists)('uploadFile', 'domain', domain);
|
|
4328
4348
|
const localVarPath = `/api/files/upload`;
|
|
4329
4349
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4330
4350
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -4336,9 +4356,15 @@ const FileApiAxiosParamCreator = function (configuration) {
|
|
|
4336
4356
|
const localVarHeaderParameter = {};
|
|
4337
4357
|
const localVarQueryParameter = {};
|
|
4338
4358
|
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
4359
|
+
if (keyword !== undefined) {
|
|
4360
|
+
localVarQueryParameter['keyword'] = keyword;
|
|
4361
|
+
}
|
|
4339
4362
|
if (file !== undefined) {
|
|
4340
4363
|
localVarFormParams.append('file', file);
|
|
4341
4364
|
}
|
|
4365
|
+
if (domain !== undefined) {
|
|
4366
|
+
localVarFormParams.append('domain', domain);
|
|
4367
|
+
}
|
|
4342
4368
|
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
|
|
4343
4369
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4344
4370
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -4421,12 +4447,14 @@ const FileApiFp = function (configuration) {
|
|
|
4421
4447
|
},
|
|
4422
4448
|
/**
|
|
4423
4449
|
*
|
|
4450
|
+
* @param {FileKeywordEnum} keyword
|
|
4424
4451
|
* @param {File} file
|
|
4452
|
+
* @param {string} domain
|
|
4425
4453
|
* @param {*} [options] Override http request option.
|
|
4426
4454
|
* @throws {RequiredError}
|
|
4427
4455
|
*/
|
|
4428
|
-
async uploadFile(file, options) {
|
|
4429
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.uploadFile(file, options);
|
|
4456
|
+
async uploadFile(keyword, file, domain, options) {
|
|
4457
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.uploadFile(keyword, file, domain, options);
|
|
4430
4458
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4431
4459
|
const localVarOperationServerBasePath = base_1.operationServerMap['FileApi.uploadFile']?.[localVarOperationServerIndex]?.url;
|
|
4432
4460
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -4484,7 +4512,7 @@ const FileApiFactory = function (configuration, basePath, axios) {
|
|
|
4484
4512
|
* @throws {RequiredError}
|
|
4485
4513
|
*/
|
|
4486
4514
|
uploadFile(requestParameters, options) {
|
|
4487
|
-
return localVarFp.uploadFile(requestParameters.file, options).then((request) => request(axios, basePath));
|
|
4515
|
+
return localVarFp.uploadFile(requestParameters.keyword, requestParameters.file, requestParameters.domain, options).then((request) => request(axios, basePath));
|
|
4488
4516
|
},
|
|
4489
4517
|
};
|
|
4490
4518
|
};
|
|
@@ -4544,7 +4572,7 @@ class FileApi extends base_1.BaseAPI {
|
|
|
4544
4572
|
* @memberof FileApi
|
|
4545
4573
|
*/
|
|
4546
4574
|
uploadFile(requestParameters, options) {
|
|
4547
|
-
return (0, exports.FileApiFp)(this.configuration).uploadFile(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
4575
|
+
return (0, exports.FileApiFp)(this.configuration).uploadFile(requestParameters.keyword, requestParameters.file, requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
|
|
4548
4576
|
}
|
|
4549
4577
|
}
|
|
4550
4578
|
exports.FileApi = FileApi;
|
package/dist/api/api.mjs
CHANGED
|
@@ -415,6 +415,20 @@ export const EmailConfigDnsRecordTypeEnum = {
|
|
|
415
415
|
TXT: 'TXT',
|
|
416
416
|
MX: 'MX'
|
|
417
417
|
};
|
|
418
|
+
/**
|
|
419
|
+
*
|
|
420
|
+
* @export
|
|
421
|
+
* @enum {string}
|
|
422
|
+
*/
|
|
423
|
+
export const FileKeywordEnum = {
|
|
424
|
+
CAROUSEL: 'carousel',
|
|
425
|
+
BANNER: 'banner',
|
|
426
|
+
CONTENT: 'content',
|
|
427
|
+
LOGO: 'logo',
|
|
428
|
+
PRODUCT: 'product',
|
|
429
|
+
ATTACHMENT: 'attachment',
|
|
430
|
+
COMMENT: 'comment'
|
|
431
|
+
};
|
|
418
432
|
/**
|
|
419
433
|
*
|
|
420
434
|
* @export
|
|
@@ -4284,13 +4298,19 @@ export const FileApiAxiosParamCreator = function (configuration) {
|
|
|
4284
4298
|
},
|
|
4285
4299
|
/**
|
|
4286
4300
|
*
|
|
4301
|
+
* @param {FileKeywordEnum} keyword
|
|
4287
4302
|
* @param {File} file
|
|
4303
|
+
* @param {string} domain
|
|
4288
4304
|
* @param {*} [options] Override http request option.
|
|
4289
4305
|
* @throws {RequiredError}
|
|
4290
4306
|
*/
|
|
4291
|
-
uploadFile: async (file, options = {}) => {
|
|
4307
|
+
uploadFile: async (keyword, file, domain, options = {}) => {
|
|
4308
|
+
// verify required parameter 'keyword' is not null or undefined
|
|
4309
|
+
assertParamExists('uploadFile', 'keyword', keyword);
|
|
4292
4310
|
// verify required parameter 'file' is not null or undefined
|
|
4293
4311
|
assertParamExists('uploadFile', 'file', file);
|
|
4312
|
+
// verify required parameter 'domain' is not null or undefined
|
|
4313
|
+
assertParamExists('uploadFile', 'domain', domain);
|
|
4294
4314
|
const localVarPath = `/api/files/upload`;
|
|
4295
4315
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4296
4316
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -4302,9 +4322,15 @@ export const FileApiAxiosParamCreator = function (configuration) {
|
|
|
4302
4322
|
const localVarHeaderParameter = {};
|
|
4303
4323
|
const localVarQueryParameter = {};
|
|
4304
4324
|
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
4325
|
+
if (keyword !== undefined) {
|
|
4326
|
+
localVarQueryParameter['keyword'] = keyword;
|
|
4327
|
+
}
|
|
4305
4328
|
if (file !== undefined) {
|
|
4306
4329
|
localVarFormParams.append('file', file);
|
|
4307
4330
|
}
|
|
4331
|
+
if (domain !== undefined) {
|
|
4332
|
+
localVarFormParams.append('domain', domain);
|
|
4333
|
+
}
|
|
4308
4334
|
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
|
|
4309
4335
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4310
4336
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -4386,12 +4412,14 @@ export const FileApiFp = function (configuration) {
|
|
|
4386
4412
|
},
|
|
4387
4413
|
/**
|
|
4388
4414
|
*
|
|
4415
|
+
* @param {FileKeywordEnum} keyword
|
|
4389
4416
|
* @param {File} file
|
|
4417
|
+
* @param {string} domain
|
|
4390
4418
|
* @param {*} [options] Override http request option.
|
|
4391
4419
|
* @throws {RequiredError}
|
|
4392
4420
|
*/
|
|
4393
|
-
async uploadFile(file, options) {
|
|
4394
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.uploadFile(file, options);
|
|
4421
|
+
async uploadFile(keyword, file, domain, options) {
|
|
4422
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.uploadFile(keyword, file, domain, options);
|
|
4395
4423
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4396
4424
|
const localVarOperationServerBasePath = operationServerMap['FileApi.uploadFile']?.[localVarOperationServerIndex]?.url;
|
|
4397
4425
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -4448,7 +4476,7 @@ export const FileApiFactory = function (configuration, basePath, axios) {
|
|
|
4448
4476
|
* @throws {RequiredError}
|
|
4449
4477
|
*/
|
|
4450
4478
|
uploadFile(requestParameters, options) {
|
|
4451
|
-
return localVarFp.uploadFile(requestParameters.file, options).then((request) => request(axios, basePath));
|
|
4479
|
+
return localVarFp.uploadFile(requestParameters.keyword, requestParameters.file, requestParameters.domain, options).then((request) => request(axios, basePath));
|
|
4452
4480
|
},
|
|
4453
4481
|
};
|
|
4454
4482
|
};
|
|
@@ -4507,7 +4535,7 @@ export class FileApi extends BaseAPI {
|
|
|
4507
4535
|
* @memberof FileApi
|
|
4508
4536
|
*/
|
|
4509
4537
|
uploadFile(requestParameters, options) {
|
|
4510
|
-
return FileApiFp(this.configuration).uploadFile(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
4538
|
+
return FileApiFp(this.configuration).uploadFile(requestParameters.keyword, requestParameters.file, requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
|
|
4511
4539
|
}
|
|
4512
4540
|
}
|
|
4513
4541
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@infisale-client/api",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.6",
|
|
4
4
|
"description": "api-sdk",
|
|
5
5
|
"author": "Muhammet KÖKLÜ <105980019+byhipernova@users.noreply.github.com>",
|
|
6
6
|
"homepage": "https://github.com/infisale/infisale-client#readme",
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"bugs": {
|
|
37
37
|
"url": "https://github.com/infisale/infisale-client/issues"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "1f706f11b5c78eabb5aeb52e9aed89c5b9961a68"
|
|
40
40
|
}
|