@rasadov/lumoar-sdk 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/api.ts +21 -15
- package/dist/api.d.ts +4 -4
- package/dist/api.js +19 -15
- package/docs/EvidenceApi.md +4 -4
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -3953,18 +3953,16 @@ export const EvidenceApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
3953
3953
|
* @param {*} [options] Override http request option.
|
|
3954
3954
|
* @throws {RequiredError}
|
|
3955
3955
|
*/
|
|
3956
|
-
|
|
3956
|
+
uploadEvidenceV1EvidenceUploadPost: async (companyId: string, controlId: string, text: string, files: Array<File>, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3957
3957
|
// verify required parameter 'companyId' is not null or undefined
|
|
3958
|
-
assertParamExists('
|
|
3958
|
+
assertParamExists('uploadEvidenceV1EvidenceUploadPost', 'companyId', companyId)
|
|
3959
3959
|
// verify required parameter 'controlId' is not null or undefined
|
|
3960
|
-
assertParamExists('
|
|
3960
|
+
assertParamExists('uploadEvidenceV1EvidenceUploadPost', 'controlId', controlId)
|
|
3961
3961
|
// verify required parameter 'text' is not null or undefined
|
|
3962
|
-
assertParamExists('
|
|
3962
|
+
assertParamExists('uploadEvidenceV1EvidenceUploadPost', 'text', text)
|
|
3963
3963
|
// verify required parameter 'files' is not null or undefined
|
|
3964
|
-
assertParamExists('
|
|
3965
|
-
const localVarPath = `/v1/evidence/upload
|
|
3966
|
-
.replace(`{${"company_id"}}`, encodeURIComponent(String(companyId)))
|
|
3967
|
-
.replace(`{${"control_id"}}`, encodeURIComponent(String(controlId)));
|
|
3964
|
+
assertParamExists('uploadEvidenceV1EvidenceUploadPost', 'files', files)
|
|
3965
|
+
const localVarPath = `/v1/evidence/upload`;
|
|
3968
3966
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3969
3967
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3970
3968
|
let baseOptions;
|
|
@@ -3977,6 +3975,14 @@ export const EvidenceApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
3977
3975
|
const localVarQueryParameter = {} as any;
|
|
3978
3976
|
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
3979
3977
|
|
|
3978
|
+
if (companyId !== undefined) {
|
|
3979
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
3980
|
+
}
|
|
3981
|
+
|
|
3982
|
+
if (controlId !== undefined) {
|
|
3983
|
+
localVarQueryParameter['control_id'] = controlId;
|
|
3984
|
+
}
|
|
3985
|
+
|
|
3980
3986
|
if (text !== undefined) {
|
|
3981
3987
|
localVarQueryParameter['text'] = text;
|
|
3982
3988
|
}
|
|
@@ -4087,10 +4093,10 @@ export const EvidenceApiFp = function(configuration?: Configuration) {
|
|
|
4087
4093
|
* @param {*} [options] Override http request option.
|
|
4088
4094
|
* @throws {RequiredError}
|
|
4089
4095
|
*/
|
|
4090
|
-
async
|
|
4091
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
4096
|
+
async uploadEvidenceV1EvidenceUploadPost(companyId: string, controlId: string, text: string, files: Array<File>, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EvidenceBase>> {
|
|
4097
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.uploadEvidenceV1EvidenceUploadPost(companyId, controlId, text, files, authorization, sessionId, options);
|
|
4092
4098
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4093
|
-
const localVarOperationServerBasePath = operationServerMap['EvidenceApi.
|
|
4099
|
+
const localVarOperationServerBasePath = operationServerMap['EvidenceApi.uploadEvidenceV1EvidenceUploadPost']?.[localVarOperationServerIndex]?.url;
|
|
4094
4100
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4095
4101
|
},
|
|
4096
4102
|
}
|
|
@@ -4164,8 +4170,8 @@ export const EvidenceApiFactory = function (configuration?: Configuration, baseP
|
|
|
4164
4170
|
* @param {*} [options] Override http request option.
|
|
4165
4171
|
* @throws {RequiredError}
|
|
4166
4172
|
*/
|
|
4167
|
-
|
|
4168
|
-
return localVarFp.
|
|
4173
|
+
uploadEvidenceV1EvidenceUploadPost(companyId: string, controlId: string, text: string, files: Array<File>, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<EvidenceBase> {
|
|
4174
|
+
return localVarFp.uploadEvidenceV1EvidenceUploadPost(companyId, controlId, text, files, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
4169
4175
|
},
|
|
4170
4176
|
};
|
|
4171
4177
|
};
|
|
@@ -4247,8 +4253,8 @@ export class EvidenceApi extends BaseAPI {
|
|
|
4247
4253
|
* @throws {RequiredError}
|
|
4248
4254
|
* @memberof EvidenceApi
|
|
4249
4255
|
*/
|
|
4250
|
-
public
|
|
4251
|
-
return EvidenceApiFp(this.configuration).
|
|
4256
|
+
public uploadEvidenceV1EvidenceUploadPost(companyId: string, controlId: string, text: string, files: Array<File>, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
|
|
4257
|
+
return EvidenceApiFp(this.configuration).uploadEvidenceV1EvidenceUploadPost(companyId, controlId, text, files, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
4252
4258
|
}
|
|
4253
4259
|
}
|
|
4254
4260
|
|
package/dist/api.d.ts
CHANGED
|
@@ -2983,7 +2983,7 @@ export declare const EvidenceApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
2983
2983
|
* @param {*} [options] Override http request option.
|
|
2984
2984
|
* @throws {RequiredError}
|
|
2985
2985
|
*/
|
|
2986
|
-
|
|
2986
|
+
uploadEvidenceV1EvidenceUploadPost: (companyId: string, controlId: string, text: string, files: Array<File>, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2987
2987
|
};
|
|
2988
2988
|
/**
|
|
2989
2989
|
* EvidenceApi - functional programming interface
|
|
@@ -3043,7 +3043,7 @@ export declare const EvidenceApiFp: (configuration?: Configuration) => {
|
|
|
3043
3043
|
* @param {*} [options] Override http request option.
|
|
3044
3044
|
* @throws {RequiredError}
|
|
3045
3045
|
*/
|
|
3046
|
-
|
|
3046
|
+
uploadEvidenceV1EvidenceUploadPost(companyId: string, controlId: string, text: string, files: Array<File>, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EvidenceBase>>;
|
|
3047
3047
|
};
|
|
3048
3048
|
/**
|
|
3049
3049
|
* EvidenceApi - factory interface
|
|
@@ -3103,7 +3103,7 @@ export declare const EvidenceApiFactory: (configuration?: Configuration, basePat
|
|
|
3103
3103
|
* @param {*} [options] Override http request option.
|
|
3104
3104
|
* @throws {RequiredError}
|
|
3105
3105
|
*/
|
|
3106
|
-
|
|
3106
|
+
uploadEvidenceV1EvidenceUploadPost(companyId: string, controlId: string, text: string, files: Array<File>, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<EvidenceBase>;
|
|
3107
3107
|
};
|
|
3108
3108
|
/**
|
|
3109
3109
|
* EvidenceApi - object-oriented interface
|
|
@@ -3170,7 +3170,7 @@ export declare class EvidenceApi extends BaseAPI {
|
|
|
3170
3170
|
* @throws {RequiredError}
|
|
3171
3171
|
* @memberof EvidenceApi
|
|
3172
3172
|
*/
|
|
3173
|
-
|
|
3173
|
+
uploadEvidenceV1EvidenceUploadPost(companyId: string, controlId: string, text: string, files: Array<File>, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EvidenceBase, any, {}>>;
|
|
3174
3174
|
}
|
|
3175
3175
|
/**
|
|
3176
3176
|
* HealthApi - axios parameter creator
|
package/dist/api.js
CHANGED
|
@@ -1826,18 +1826,16 @@ export const EvidenceApiAxiosParamCreator = function (configuration) {
|
|
|
1826
1826
|
* @param {*} [options] Override http request option.
|
|
1827
1827
|
* @throws {RequiredError}
|
|
1828
1828
|
*/
|
|
1829
|
-
|
|
1829
|
+
uploadEvidenceV1EvidenceUploadPost: (companyId_1, controlId_1, text_1, files_1, authorization_1, sessionId_1, ...args_1) => __awaiter(this, [companyId_1, controlId_1, text_1, files_1, authorization_1, sessionId_1, ...args_1], void 0, function* (companyId, controlId, text, files, authorization, sessionId, options = {}) {
|
|
1830
1830
|
// verify required parameter 'companyId' is not null or undefined
|
|
1831
|
-
assertParamExists('
|
|
1831
|
+
assertParamExists('uploadEvidenceV1EvidenceUploadPost', 'companyId', companyId);
|
|
1832
1832
|
// verify required parameter 'controlId' is not null or undefined
|
|
1833
|
-
assertParamExists('
|
|
1833
|
+
assertParamExists('uploadEvidenceV1EvidenceUploadPost', 'controlId', controlId);
|
|
1834
1834
|
// verify required parameter 'text' is not null or undefined
|
|
1835
|
-
assertParamExists('
|
|
1835
|
+
assertParamExists('uploadEvidenceV1EvidenceUploadPost', 'text', text);
|
|
1836
1836
|
// verify required parameter 'files' is not null or undefined
|
|
1837
|
-
assertParamExists('
|
|
1838
|
-
const localVarPath = `/v1/evidence/upload
|
|
1839
|
-
.replace(`{${"company_id"}}`, encodeURIComponent(String(companyId)))
|
|
1840
|
-
.replace(`{${"control_id"}}`, encodeURIComponent(String(controlId)));
|
|
1837
|
+
assertParamExists('uploadEvidenceV1EvidenceUploadPost', 'files', files);
|
|
1838
|
+
const localVarPath = `/v1/evidence/upload`;
|
|
1841
1839
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1842
1840
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1843
1841
|
let baseOptions;
|
|
@@ -1848,6 +1846,12 @@ export const EvidenceApiAxiosParamCreator = function (configuration) {
|
|
|
1848
1846
|
const localVarHeaderParameter = {};
|
|
1849
1847
|
const localVarQueryParameter = {};
|
|
1850
1848
|
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
1849
|
+
if (companyId !== undefined) {
|
|
1850
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
1851
|
+
}
|
|
1852
|
+
if (controlId !== undefined) {
|
|
1853
|
+
localVarQueryParameter['control_id'] = controlId;
|
|
1854
|
+
}
|
|
1851
1855
|
if (text !== undefined) {
|
|
1852
1856
|
localVarQueryParameter['text'] = text;
|
|
1853
1857
|
}
|
|
@@ -1963,12 +1967,12 @@ export const EvidenceApiFp = function (configuration) {
|
|
|
1963
1967
|
* @param {*} [options] Override http request option.
|
|
1964
1968
|
* @throws {RequiredError}
|
|
1965
1969
|
*/
|
|
1966
|
-
|
|
1970
|
+
uploadEvidenceV1EvidenceUploadPost(companyId, controlId, text, files, authorization, sessionId, options) {
|
|
1967
1971
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1968
1972
|
var _a, _b, _c;
|
|
1969
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
1973
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.uploadEvidenceV1EvidenceUploadPost(companyId, controlId, text, files, authorization, sessionId, options);
|
|
1970
1974
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1971
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EvidenceApi.
|
|
1975
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EvidenceApi.uploadEvidenceV1EvidenceUploadPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1972
1976
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1973
1977
|
});
|
|
1974
1978
|
},
|
|
@@ -2042,8 +2046,8 @@ export const EvidenceApiFactory = function (configuration, basePath, axios) {
|
|
|
2042
2046
|
* @param {*} [options] Override http request option.
|
|
2043
2047
|
* @throws {RequiredError}
|
|
2044
2048
|
*/
|
|
2045
|
-
|
|
2046
|
-
return localVarFp.
|
|
2049
|
+
uploadEvidenceV1EvidenceUploadPost(companyId, controlId, text, files, authorization, sessionId, options) {
|
|
2050
|
+
return localVarFp.uploadEvidenceV1EvidenceUploadPost(companyId, controlId, text, files, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
2047
2051
|
},
|
|
2048
2052
|
};
|
|
2049
2053
|
};
|
|
@@ -2120,8 +2124,8 @@ export class EvidenceApi extends BaseAPI {
|
|
|
2120
2124
|
* @throws {RequiredError}
|
|
2121
2125
|
* @memberof EvidenceApi
|
|
2122
2126
|
*/
|
|
2123
|
-
|
|
2124
|
-
return EvidenceApiFp(this.configuration).
|
|
2127
|
+
uploadEvidenceV1EvidenceUploadPost(companyId, controlId, text, files, authorization, sessionId, options) {
|
|
2128
|
+
return EvidenceApiFp(this.configuration).uploadEvidenceV1EvidenceUploadPost(companyId, controlId, text, files, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
2125
2129
|
}
|
|
2126
2130
|
}
|
|
2127
2131
|
/**
|
package/docs/EvidenceApi.md
CHANGED
|
@@ -8,7 +8,7 @@ All URIs are relative to *http://localhost*
|
|
|
8
8
|
|[**getEvidenceFilesV1EvidenceFileEvidenceFileIdGet**](#getevidencefilesv1evidencefileevidencefileidget) | **GET** /v1/evidence/file/{evidence_file_id} | Get Evidence Files|
|
|
9
9
|
|[**listCompanyEvidenceV1EvidenceCompanyCompanyIdGet**](#listcompanyevidencev1evidencecompanycompanyidget) | **GET** /v1/evidence/company/{company_id} | List Company Evidence|
|
|
10
10
|
|[**updateEvidenceV1EvidenceUpdatePut**](#updateevidencev1evidenceupdateput) | **PUT** /v1/evidence/update | Update Evidence|
|
|
11
|
-
|[**
|
|
11
|
+
|[**uploadEvidenceV1EvidenceUploadPost**](#uploadevidencev1evidenceuploadpost) | **POST** /v1/evidence/upload | Upload Evidence|
|
|
12
12
|
|
|
13
13
|
# **deleteEvidenceV1EvidenceDeleteDelete**
|
|
14
14
|
> deleteEvidenceV1EvidenceDeleteDelete()
|
|
@@ -241,8 +241,8 @@ No authorization required
|
|
|
241
241
|
|
|
242
242
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
243
243
|
|
|
244
|
-
# **
|
|
245
|
-
> EvidenceBase
|
|
244
|
+
# **uploadEvidenceV1EvidenceUploadPost**
|
|
245
|
+
> EvidenceBase uploadEvidenceV1EvidenceUploadPost()
|
|
246
246
|
|
|
247
247
|
|
|
248
248
|
### Example
|
|
@@ -263,7 +263,7 @@ let files: Array<File>; // (default to undefined)
|
|
|
263
263
|
let authorization: string; // (optional) (default to undefined)
|
|
264
264
|
let sessionId: string; // (optional) (default to undefined)
|
|
265
265
|
|
|
266
|
-
const { status, data } = await apiInstance.
|
|
266
|
+
const { status, data } = await apiInstance.uploadEvidenceV1EvidenceUploadPost(
|
|
267
267
|
companyId,
|
|
268
268
|
controlId,
|
|
269
269
|
text,
|