@rasadov/lumoar-sdk 1.0.16 → 1.1.0
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 +28 -26
- package/dist/api.d.ts +12 -12
- package/dist/api.js +27 -25
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/docs/EvidenceApi.md +3 -3
- package/docs/RolesApi.md +4 -4
- package/index.ts +1 -0
- package/package.json +1 -1
- package/update.sh +18 -0
package/api.ts
CHANGED
|
@@ -3950,20 +3950,20 @@ export const EvidenceApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
3950
3950
|
* @summary Upload Evidence
|
|
3951
3951
|
* @param {string} companyId
|
|
3952
3952
|
* @param {string} controlId
|
|
3953
|
-
* @param {File | null}
|
|
3953
|
+
* @param {Array<File> | null} files
|
|
3954
3954
|
* @param {string | null} text
|
|
3955
3955
|
* @param {string} [authorization]
|
|
3956
3956
|
* @param {string} [sessionId]
|
|
3957
3957
|
* @param {*} [options] Override http request option.
|
|
3958
3958
|
* @throws {RequiredError}
|
|
3959
3959
|
*/
|
|
3960
|
-
uploadEvidenceV1EvidenceUploadPost: async (companyId: string, controlId: string,
|
|
3960
|
+
uploadEvidenceV1EvidenceUploadPost: async (companyId: string, controlId: string, files: Array<File> | null, text: string | null, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3961
3961
|
// verify required parameter 'companyId' is not null or undefined
|
|
3962
3962
|
assertParamExists('uploadEvidenceV1EvidenceUploadPost', 'companyId', companyId)
|
|
3963
3963
|
// verify required parameter 'controlId' is not null or undefined
|
|
3964
3964
|
assertParamExists('uploadEvidenceV1EvidenceUploadPost', 'controlId', controlId)
|
|
3965
|
-
// verify required parameter '
|
|
3966
|
-
assertParamExists('uploadEvidenceV1EvidenceUploadPost', '
|
|
3965
|
+
// verify required parameter 'files' is not null or undefined
|
|
3966
|
+
assertParamExists('uploadEvidenceV1EvidenceUploadPost', 'files', files)
|
|
3967
3967
|
// verify required parameter 'text' is not null or undefined
|
|
3968
3968
|
assertParamExists('uploadEvidenceV1EvidenceUploadPost', 'text', text)
|
|
3969
3969
|
const localVarPath = `/v1/evidence/upload`;
|
|
@@ -3987,10 +3987,12 @@ export const EvidenceApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
3987
3987
|
if (controlId !== undefined) {
|
|
3988
3988
|
localVarFormParams.set('control_id', controlId as any);
|
|
3989
3989
|
}
|
|
3990
|
-
|
|
3991
|
-
|
|
3992
|
-
|
|
3990
|
+
if (files) {
|
|
3991
|
+
files.forEach((element) => {
|
|
3992
|
+
localVarFormParams.set('files', element as any);
|
|
3993
|
+
})
|
|
3993
3994
|
}
|
|
3995
|
+
|
|
3994
3996
|
|
|
3995
3997
|
if (text !== undefined) {
|
|
3996
3998
|
localVarFormParams.set('text', text as any);
|
|
@@ -4088,15 +4090,15 @@ export const EvidenceApiFp = function(configuration?: Configuration) {
|
|
|
4088
4090
|
* @summary Upload Evidence
|
|
4089
4091
|
* @param {string} companyId
|
|
4090
4092
|
* @param {string} controlId
|
|
4091
|
-
* @param {File | null}
|
|
4093
|
+
* @param {Array<File> | null} files
|
|
4092
4094
|
* @param {string | null} text
|
|
4093
4095
|
* @param {string} [authorization]
|
|
4094
4096
|
* @param {string} [sessionId]
|
|
4095
4097
|
* @param {*} [options] Override http request option.
|
|
4096
4098
|
* @throws {RequiredError}
|
|
4097
4099
|
*/
|
|
4098
|
-
async uploadEvidenceV1EvidenceUploadPost(companyId: string, controlId: string,
|
|
4099
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.uploadEvidenceV1EvidenceUploadPost(companyId, controlId,
|
|
4100
|
+
async uploadEvidenceV1EvidenceUploadPost(companyId: string, controlId: string, files: Array<File> | null, text: string | null, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EvidenceBase>> {
|
|
4101
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.uploadEvidenceV1EvidenceUploadPost(companyId, controlId, files, text, authorization, sessionId, options);
|
|
4100
4102
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4101
4103
|
const localVarOperationServerBasePath = operationServerMap['EvidenceApi.uploadEvidenceV1EvidenceUploadPost']?.[localVarOperationServerIndex]?.url;
|
|
4102
4104
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -4165,15 +4167,15 @@ export const EvidenceApiFactory = function (configuration?: Configuration, baseP
|
|
|
4165
4167
|
* @summary Upload Evidence
|
|
4166
4168
|
* @param {string} companyId
|
|
4167
4169
|
* @param {string} controlId
|
|
4168
|
-
* @param {File | null}
|
|
4170
|
+
* @param {Array<File> | null} files
|
|
4169
4171
|
* @param {string | null} text
|
|
4170
4172
|
* @param {string} [authorization]
|
|
4171
4173
|
* @param {string} [sessionId]
|
|
4172
4174
|
* @param {*} [options] Override http request option.
|
|
4173
4175
|
* @throws {RequiredError}
|
|
4174
4176
|
*/
|
|
4175
|
-
uploadEvidenceV1EvidenceUploadPost(companyId: string, controlId: string,
|
|
4176
|
-
return localVarFp.uploadEvidenceV1EvidenceUploadPost(companyId, controlId,
|
|
4177
|
+
uploadEvidenceV1EvidenceUploadPost(companyId: string, controlId: string, files: Array<File> | null, text: string | null, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<EvidenceBase> {
|
|
4178
|
+
return localVarFp.uploadEvidenceV1EvidenceUploadPost(companyId, controlId, files, text, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
4177
4179
|
},
|
|
4178
4180
|
};
|
|
4179
4181
|
};
|
|
@@ -4247,7 +4249,7 @@ export class EvidenceApi extends BaseAPI {
|
|
|
4247
4249
|
* @summary Upload Evidence
|
|
4248
4250
|
* @param {string} companyId
|
|
4249
4251
|
* @param {string} controlId
|
|
4250
|
-
* @param {File | null}
|
|
4252
|
+
* @param {Array<File> | null} files
|
|
4251
4253
|
* @param {string | null} text
|
|
4252
4254
|
* @param {string} [authorization]
|
|
4253
4255
|
* @param {string} [sessionId]
|
|
@@ -4255,8 +4257,8 @@ export class EvidenceApi extends BaseAPI {
|
|
|
4255
4257
|
* @throws {RequiredError}
|
|
4256
4258
|
* @memberof EvidenceApi
|
|
4257
4259
|
*/
|
|
4258
|
-
public uploadEvidenceV1EvidenceUploadPost(companyId: string, controlId: string,
|
|
4259
|
-
return EvidenceApiFp(this.configuration).uploadEvidenceV1EvidenceUploadPost(companyId, controlId,
|
|
4260
|
+
public uploadEvidenceV1EvidenceUploadPost(companyId: string, controlId: string, files: Array<File> | null, text: string | null, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
|
|
4261
|
+
return EvidenceApiFp(this.configuration).uploadEvidenceV1EvidenceUploadPost(companyId, controlId, files, text, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
4260
4262
|
}
|
|
4261
4263
|
}
|
|
4262
4264
|
|
|
@@ -5791,10 +5793,10 @@ export const RolesApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
5791
5793
|
* @param {*} [options] Override http request option.
|
|
5792
5794
|
* @throws {RequiredError}
|
|
5793
5795
|
*/
|
|
5794
|
-
|
|
5796
|
+
getUsersV1RolesCompanyIdUsersGet: async (companyId: string, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5795
5797
|
// verify required parameter 'companyId' is not null or undefined
|
|
5796
|
-
assertParamExists('
|
|
5797
|
-
const localVarPath = `/v1/roles/{company_id}/
|
|
5798
|
+
assertParamExists('getUsersV1RolesCompanyIdUsersGet', 'companyId', companyId)
|
|
5799
|
+
const localVarPath = `/v1/roles/{company_id}/users`
|
|
5798
5800
|
.replace(`{${"company_id"}}`, encodeURIComponent(String(companyId)));
|
|
5799
5801
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5800
5802
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -5937,10 +5939,10 @@ export const RolesApiFp = function(configuration?: Configuration) {
|
|
|
5937
5939
|
* @param {*} [options] Override http request option.
|
|
5938
5940
|
* @throws {RequiredError}
|
|
5939
5941
|
*/
|
|
5940
|
-
async
|
|
5941
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
5942
|
+
async getUsersV1RolesCompanyIdUsersGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<UserWithId>>> {
|
|
5943
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getUsersV1RolesCompanyIdUsersGet(companyId, authorization, sessionId, options);
|
|
5942
5944
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5943
|
-
const localVarOperationServerBasePath = operationServerMap['RolesApi.
|
|
5945
|
+
const localVarOperationServerBasePath = operationServerMap['RolesApi.getUsersV1RolesCompanyIdUsersGet']?.[localVarOperationServerIndex]?.url;
|
|
5944
5946
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5945
5947
|
},
|
|
5946
5948
|
/**
|
|
@@ -6004,8 +6006,8 @@ export const RolesApiFactory = function (configuration?: Configuration, basePath
|
|
|
6004
6006
|
* @param {*} [options] Override http request option.
|
|
6005
6007
|
* @throws {RequiredError}
|
|
6006
6008
|
*/
|
|
6007
|
-
|
|
6008
|
-
return localVarFp.
|
|
6009
|
+
getUsersV1RolesCompanyIdUsersGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<UserWithId>> {
|
|
6010
|
+
return localVarFp.getUsersV1RolesCompanyIdUsersGet(companyId, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
6009
6011
|
},
|
|
6010
6012
|
/**
|
|
6011
6013
|
*
|
|
@@ -6065,8 +6067,8 @@ export class RolesApi extends BaseAPI {
|
|
|
6065
6067
|
* @throws {RequiredError}
|
|
6066
6068
|
* @memberof RolesApi
|
|
6067
6069
|
*/
|
|
6068
|
-
public
|
|
6069
|
-
return RolesApiFp(this.configuration).
|
|
6070
|
+
public getUsersV1RolesCompanyIdUsersGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
|
|
6071
|
+
return RolesApiFp(this.configuration).getUsersV1RolesCompanyIdUsersGet(companyId, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
6070
6072
|
}
|
|
6071
6073
|
|
|
6072
6074
|
/**
|
package/dist/api.d.ts
CHANGED
|
@@ -2976,14 +2976,14 @@ export declare const EvidenceApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
2976
2976
|
* @summary Upload Evidence
|
|
2977
2977
|
* @param {string} companyId
|
|
2978
2978
|
* @param {string} controlId
|
|
2979
|
-
* @param {File | null}
|
|
2979
|
+
* @param {Array<File> | null} files
|
|
2980
2980
|
* @param {string | null} text
|
|
2981
2981
|
* @param {string} [authorization]
|
|
2982
2982
|
* @param {string} [sessionId]
|
|
2983
2983
|
* @param {*} [options] Override http request option.
|
|
2984
2984
|
* @throws {RequiredError}
|
|
2985
2985
|
*/
|
|
2986
|
-
uploadEvidenceV1EvidenceUploadPost: (companyId: string, controlId: string,
|
|
2986
|
+
uploadEvidenceV1EvidenceUploadPost: (companyId: string, controlId: string, files: Array<File> | null, text: string | null, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2987
2987
|
};
|
|
2988
2988
|
/**
|
|
2989
2989
|
* EvidenceApi - functional programming interface
|
|
@@ -3036,14 +3036,14 @@ export declare const EvidenceApiFp: (configuration?: Configuration) => {
|
|
|
3036
3036
|
* @summary Upload Evidence
|
|
3037
3037
|
* @param {string} companyId
|
|
3038
3038
|
* @param {string} controlId
|
|
3039
|
-
* @param {File | null}
|
|
3039
|
+
* @param {Array<File> | null} files
|
|
3040
3040
|
* @param {string | null} text
|
|
3041
3041
|
* @param {string} [authorization]
|
|
3042
3042
|
* @param {string} [sessionId]
|
|
3043
3043
|
* @param {*} [options] Override http request option.
|
|
3044
3044
|
* @throws {RequiredError}
|
|
3045
3045
|
*/
|
|
3046
|
-
uploadEvidenceV1EvidenceUploadPost(companyId: string, controlId: string,
|
|
3046
|
+
uploadEvidenceV1EvidenceUploadPost(companyId: string, controlId: string, files: Array<File> | null, text: string | null, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EvidenceBase>>;
|
|
3047
3047
|
};
|
|
3048
3048
|
/**
|
|
3049
3049
|
* EvidenceApi - factory interface
|
|
@@ -3096,14 +3096,14 @@ export declare const EvidenceApiFactory: (configuration?: Configuration, basePat
|
|
|
3096
3096
|
* @summary Upload Evidence
|
|
3097
3097
|
* @param {string} companyId
|
|
3098
3098
|
* @param {string} controlId
|
|
3099
|
-
* @param {File | null}
|
|
3099
|
+
* @param {Array<File> | null} files
|
|
3100
3100
|
* @param {string | null} text
|
|
3101
3101
|
* @param {string} [authorization]
|
|
3102
3102
|
* @param {string} [sessionId]
|
|
3103
3103
|
* @param {*} [options] Override http request option.
|
|
3104
3104
|
* @throws {RequiredError}
|
|
3105
3105
|
*/
|
|
3106
|
-
uploadEvidenceV1EvidenceUploadPost(companyId: string, controlId: string,
|
|
3106
|
+
uploadEvidenceV1EvidenceUploadPost(companyId: string, controlId: string, files: Array<File> | null, text: string | null, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<EvidenceBase>;
|
|
3107
3107
|
};
|
|
3108
3108
|
/**
|
|
3109
3109
|
* EvidenceApi - object-oriented interface
|
|
@@ -3162,7 +3162,7 @@ export declare class EvidenceApi extends BaseAPI {
|
|
|
3162
3162
|
* @summary Upload Evidence
|
|
3163
3163
|
* @param {string} companyId
|
|
3164
3164
|
* @param {string} controlId
|
|
3165
|
-
* @param {File | null}
|
|
3165
|
+
* @param {Array<File> | null} files
|
|
3166
3166
|
* @param {string | null} text
|
|
3167
3167
|
* @param {string} [authorization]
|
|
3168
3168
|
* @param {string} [sessionId]
|
|
@@ -3170,7 +3170,7 @@ export declare class EvidenceApi extends BaseAPI {
|
|
|
3170
3170
|
* @throws {RequiredError}
|
|
3171
3171
|
* @memberof EvidenceApi
|
|
3172
3172
|
*/
|
|
3173
|
-
uploadEvidenceV1EvidenceUploadPost(companyId: string, controlId: string,
|
|
3173
|
+
uploadEvidenceV1EvidenceUploadPost(companyId: string, controlId: string, files: Array<File> | null, text: string | null, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EvidenceBase, any, {}>>;
|
|
3174
3174
|
}
|
|
3175
3175
|
/**
|
|
3176
3176
|
* HealthApi - axios parameter creator
|
|
@@ -3957,7 +3957,7 @@ export declare const RolesApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
3957
3957
|
* @param {*} [options] Override http request option.
|
|
3958
3958
|
* @throws {RequiredError}
|
|
3959
3959
|
*/
|
|
3960
|
-
|
|
3960
|
+
getUsersV1RolesCompanyIdUsersGet: (companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3961
3961
|
/**
|
|
3962
3962
|
*
|
|
3963
3963
|
* @summary Invite
|
|
@@ -4003,7 +4003,7 @@ export declare const RolesApiFp: (configuration?: Configuration) => {
|
|
|
4003
4003
|
* @param {*} [options] Override http request option.
|
|
4004
4004
|
* @throws {RequiredError}
|
|
4005
4005
|
*/
|
|
4006
|
-
|
|
4006
|
+
getUsersV1RolesCompanyIdUsersGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<UserWithId>>>;
|
|
4007
4007
|
/**
|
|
4008
4008
|
*
|
|
4009
4009
|
* @summary Invite
|
|
@@ -4049,7 +4049,7 @@ export declare const RolesApiFactory: (configuration?: Configuration, basePath?:
|
|
|
4049
4049
|
* @param {*} [options] Override http request option.
|
|
4050
4050
|
* @throws {RequiredError}
|
|
4051
4051
|
*/
|
|
4052
|
-
|
|
4052
|
+
getUsersV1RolesCompanyIdUsersGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<UserWithId>>;
|
|
4053
4053
|
/**
|
|
4054
4054
|
*
|
|
4055
4055
|
* @summary Invite
|
|
@@ -4099,7 +4099,7 @@ export declare class RolesApi extends BaseAPI {
|
|
|
4099
4099
|
* @throws {RequiredError}
|
|
4100
4100
|
* @memberof RolesApi
|
|
4101
4101
|
*/
|
|
4102
|
-
|
|
4102
|
+
getUsersV1RolesCompanyIdUsersGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UserWithId[], any, {}>>;
|
|
4103
4103
|
/**
|
|
4104
4104
|
*
|
|
4105
4105
|
* @summary Invite
|
package/dist/api.js
CHANGED
|
@@ -1822,20 +1822,20 @@ export const EvidenceApiAxiosParamCreator = function (configuration) {
|
|
|
1822
1822
|
* @summary Upload Evidence
|
|
1823
1823
|
* @param {string} companyId
|
|
1824
1824
|
* @param {string} controlId
|
|
1825
|
-
* @param {File | null}
|
|
1825
|
+
* @param {Array<File> | null} files
|
|
1826
1826
|
* @param {string | null} text
|
|
1827
1827
|
* @param {string} [authorization]
|
|
1828
1828
|
* @param {string} [sessionId]
|
|
1829
1829
|
* @param {*} [options] Override http request option.
|
|
1830
1830
|
* @throws {RequiredError}
|
|
1831
1831
|
*/
|
|
1832
|
-
uploadEvidenceV1EvidenceUploadPost: (companyId_1, controlId_1,
|
|
1832
|
+
uploadEvidenceV1EvidenceUploadPost: (companyId_1, controlId_1, files_1, text_1, authorization_1, sessionId_1, ...args_1) => __awaiter(this, [companyId_1, controlId_1, files_1, text_1, authorization_1, sessionId_1, ...args_1], void 0, function* (companyId, controlId, files, text, authorization, sessionId, options = {}) {
|
|
1833
1833
|
// verify required parameter 'companyId' is not null or undefined
|
|
1834
1834
|
assertParamExists('uploadEvidenceV1EvidenceUploadPost', 'companyId', companyId);
|
|
1835
1835
|
// verify required parameter 'controlId' is not null or undefined
|
|
1836
1836
|
assertParamExists('uploadEvidenceV1EvidenceUploadPost', 'controlId', controlId);
|
|
1837
|
-
// verify required parameter '
|
|
1838
|
-
assertParamExists('uploadEvidenceV1EvidenceUploadPost', '
|
|
1837
|
+
// verify required parameter 'files' is not null or undefined
|
|
1838
|
+
assertParamExists('uploadEvidenceV1EvidenceUploadPost', 'files', files);
|
|
1839
1839
|
// verify required parameter 'text' is not null or undefined
|
|
1840
1840
|
assertParamExists('uploadEvidenceV1EvidenceUploadPost', 'text', text);
|
|
1841
1841
|
const localVarPath = `/v1/evidence/upload`;
|
|
@@ -1855,8 +1855,10 @@ export const EvidenceApiAxiosParamCreator = function (configuration) {
|
|
|
1855
1855
|
if (controlId !== undefined) {
|
|
1856
1856
|
localVarFormParams.set('control_id', controlId);
|
|
1857
1857
|
}
|
|
1858
|
-
if (
|
|
1859
|
-
|
|
1858
|
+
if (files) {
|
|
1859
|
+
files.forEach((element) => {
|
|
1860
|
+
localVarFormParams.set('files', element);
|
|
1861
|
+
});
|
|
1860
1862
|
}
|
|
1861
1863
|
if (text !== undefined) {
|
|
1862
1864
|
localVarFormParams.set('text', text);
|
|
@@ -1961,17 +1963,17 @@ export const EvidenceApiFp = function (configuration) {
|
|
|
1961
1963
|
* @summary Upload Evidence
|
|
1962
1964
|
* @param {string} companyId
|
|
1963
1965
|
* @param {string} controlId
|
|
1964
|
-
* @param {File | null}
|
|
1966
|
+
* @param {Array<File> | null} files
|
|
1965
1967
|
* @param {string | null} text
|
|
1966
1968
|
* @param {string} [authorization]
|
|
1967
1969
|
* @param {string} [sessionId]
|
|
1968
1970
|
* @param {*} [options] Override http request option.
|
|
1969
1971
|
* @throws {RequiredError}
|
|
1970
1972
|
*/
|
|
1971
|
-
uploadEvidenceV1EvidenceUploadPost(companyId, controlId,
|
|
1973
|
+
uploadEvidenceV1EvidenceUploadPost(companyId, controlId, files, text, authorization, sessionId, options) {
|
|
1972
1974
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1973
1975
|
var _a, _b, _c;
|
|
1974
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.uploadEvidenceV1EvidenceUploadPost(companyId, controlId,
|
|
1976
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.uploadEvidenceV1EvidenceUploadPost(companyId, controlId, files, text, authorization, sessionId, options);
|
|
1975
1977
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1976
1978
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EvidenceApi.uploadEvidenceV1EvidenceUploadPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1977
1979
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2040,15 +2042,15 @@ export const EvidenceApiFactory = function (configuration, basePath, axios) {
|
|
|
2040
2042
|
* @summary Upload Evidence
|
|
2041
2043
|
* @param {string} companyId
|
|
2042
2044
|
* @param {string} controlId
|
|
2043
|
-
* @param {File | null}
|
|
2045
|
+
* @param {Array<File> | null} files
|
|
2044
2046
|
* @param {string | null} text
|
|
2045
2047
|
* @param {string} [authorization]
|
|
2046
2048
|
* @param {string} [sessionId]
|
|
2047
2049
|
* @param {*} [options] Override http request option.
|
|
2048
2050
|
* @throws {RequiredError}
|
|
2049
2051
|
*/
|
|
2050
|
-
uploadEvidenceV1EvidenceUploadPost(companyId, controlId,
|
|
2051
|
-
return localVarFp.uploadEvidenceV1EvidenceUploadPost(companyId, controlId,
|
|
2052
|
+
uploadEvidenceV1EvidenceUploadPost(companyId, controlId, files, text, authorization, sessionId, options) {
|
|
2053
|
+
return localVarFp.uploadEvidenceV1EvidenceUploadPost(companyId, controlId, files, text, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
2052
2054
|
},
|
|
2053
2055
|
};
|
|
2054
2056
|
};
|
|
@@ -2117,7 +2119,7 @@ export class EvidenceApi extends BaseAPI {
|
|
|
2117
2119
|
* @summary Upload Evidence
|
|
2118
2120
|
* @param {string} companyId
|
|
2119
2121
|
* @param {string} controlId
|
|
2120
|
-
* @param {File | null}
|
|
2122
|
+
* @param {Array<File> | null} files
|
|
2121
2123
|
* @param {string | null} text
|
|
2122
2124
|
* @param {string} [authorization]
|
|
2123
2125
|
* @param {string} [sessionId]
|
|
@@ -2125,8 +2127,8 @@ export class EvidenceApi extends BaseAPI {
|
|
|
2125
2127
|
* @throws {RequiredError}
|
|
2126
2128
|
* @memberof EvidenceApi
|
|
2127
2129
|
*/
|
|
2128
|
-
uploadEvidenceV1EvidenceUploadPost(companyId, controlId,
|
|
2129
|
-
return EvidenceApiFp(this.configuration).uploadEvidenceV1EvidenceUploadPost(companyId, controlId,
|
|
2130
|
+
uploadEvidenceV1EvidenceUploadPost(companyId, controlId, files, text, authorization, sessionId, options) {
|
|
2131
|
+
return EvidenceApiFp(this.configuration).uploadEvidenceV1EvidenceUploadPost(companyId, controlId, files, text, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
2130
2132
|
}
|
|
2131
2133
|
}
|
|
2132
2134
|
/**
|
|
@@ -3571,10 +3573,10 @@ export const RolesApiAxiosParamCreator = function (configuration) {
|
|
|
3571
3573
|
* @param {*} [options] Override http request option.
|
|
3572
3574
|
* @throws {RequiredError}
|
|
3573
3575
|
*/
|
|
3574
|
-
|
|
3576
|
+
getUsersV1RolesCompanyIdUsersGet: (companyId_1, authorization_1, sessionId_1, ...args_1) => __awaiter(this, [companyId_1, authorization_1, sessionId_1, ...args_1], void 0, function* (companyId, authorization, sessionId, options = {}) {
|
|
3575
3577
|
// verify required parameter 'companyId' is not null or undefined
|
|
3576
|
-
assertParamExists('
|
|
3577
|
-
const localVarPath = `/v1/roles/{company_id}/
|
|
3578
|
+
assertParamExists('getUsersV1RolesCompanyIdUsersGet', 'companyId', companyId);
|
|
3579
|
+
const localVarPath = `/v1/roles/{company_id}/users`
|
|
3578
3580
|
.replace(`{${"company_id"}}`, encodeURIComponent(String(companyId)));
|
|
3579
3581
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3580
3582
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -3702,12 +3704,12 @@ export const RolesApiFp = function (configuration) {
|
|
|
3702
3704
|
* @param {*} [options] Override http request option.
|
|
3703
3705
|
* @throws {RequiredError}
|
|
3704
3706
|
*/
|
|
3705
|
-
|
|
3707
|
+
getUsersV1RolesCompanyIdUsersGet(companyId, authorization, sessionId, options) {
|
|
3706
3708
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3707
3709
|
var _a, _b, _c;
|
|
3708
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
3710
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUsersV1RolesCompanyIdUsersGet(companyId, authorization, sessionId, options);
|
|
3709
3711
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3710
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RolesApi.
|
|
3712
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RolesApi.getUsersV1RolesCompanyIdUsersGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3711
3713
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3712
3714
|
});
|
|
3713
3715
|
},
|
|
@@ -3777,8 +3779,8 @@ export const RolesApiFactory = function (configuration, basePath, axios) {
|
|
|
3777
3779
|
* @param {*} [options] Override http request option.
|
|
3778
3780
|
* @throws {RequiredError}
|
|
3779
3781
|
*/
|
|
3780
|
-
|
|
3781
|
-
return localVarFp.
|
|
3782
|
+
getUsersV1RolesCompanyIdUsersGet(companyId, authorization, sessionId, options) {
|
|
3783
|
+
return localVarFp.getUsersV1RolesCompanyIdUsersGet(companyId, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
3782
3784
|
},
|
|
3783
3785
|
/**
|
|
3784
3786
|
*
|
|
@@ -3836,8 +3838,8 @@ export class RolesApi extends BaseAPI {
|
|
|
3836
3838
|
* @throws {RequiredError}
|
|
3837
3839
|
* @memberof RolesApi
|
|
3838
3840
|
*/
|
|
3839
|
-
|
|
3840
|
-
return RolesApiFp(this.configuration).
|
|
3841
|
+
getUsersV1RolesCompanyIdUsersGet(companyId, authorization, sessionId, options) {
|
|
3842
|
+
return RolesApiFp(this.configuration).getUsersV1RolesCompanyIdUsersGet(companyId, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
3841
3843
|
}
|
|
3842
3844
|
/**
|
|
3843
3845
|
*
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/docs/EvidenceApi.md
CHANGED
|
@@ -258,7 +258,7 @@ const apiInstance = new EvidenceApi(configuration);
|
|
|
258
258
|
|
|
259
259
|
let companyId: string; // (default to undefined)
|
|
260
260
|
let controlId: string; // (default to undefined)
|
|
261
|
-
let
|
|
261
|
+
let files: Array<File>; // (default to undefined)
|
|
262
262
|
let text: string; // (default to undefined)
|
|
263
263
|
let authorization: string; // (optional) (default to undefined)
|
|
264
264
|
let sessionId: string; // (optional) (default to undefined)
|
|
@@ -266,7 +266,7 @@ let sessionId: string; // (optional) (default to undefined)
|
|
|
266
266
|
const { status, data } = await apiInstance.uploadEvidenceV1EvidenceUploadPost(
|
|
267
267
|
companyId,
|
|
268
268
|
controlId,
|
|
269
|
-
|
|
269
|
+
files,
|
|
270
270
|
text,
|
|
271
271
|
authorization,
|
|
272
272
|
sessionId
|
|
@@ -279,7 +279,7 @@ const { status, data } = await apiInstance.uploadEvidenceV1EvidenceUploadPost(
|
|
|
279
279
|
|------------- | ------------- | ------------- | -------------|
|
|
280
280
|
| **companyId** | [**string**] | | defaults to undefined|
|
|
281
281
|
| **controlId** | [**string**] | | defaults to undefined|
|
|
282
|
-
| **
|
|
282
|
+
| **files** | **Array<File>** | | defaults to undefined|
|
|
283
283
|
| **text** | [**string**] | | defaults to undefined|
|
|
284
284
|
| **authorization** | [**string**] | | (optional) defaults to undefined|
|
|
285
285
|
| **sessionId** | [**string**] | | (optional) defaults to undefined|
|
package/docs/RolesApi.md
CHANGED
|
@@ -5,7 +5,7 @@ All URIs are relative to *http://localhost*
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
7
|
|[**getUserPermissionsV1RolesCompanyIdMeGet**](#getuserpermissionsv1rolescompanyidmeget) | **GET** /v1/roles/{company_id}/me | Get User Permissions|
|
|
8
|
-
|[**
|
|
8
|
+
|[**getUsersV1RolesCompanyIdUsersGet**](#getusersv1rolescompanyidusersget) | **GET** /v1/roles/{company_id}/users | Get Users|
|
|
9
9
|
|[**inviteV1RolesInvitesPost**](#invitev1rolesinvitespost) | **POST** /v1/roles/invites | Invite|
|
|
10
10
|
|[**removePeopleV1RolesInvitesDelete**](#removepeoplev1rolesinvitesdelete) | **DELETE** /v1/roles/invites | Remove People|
|
|
11
11
|
|
|
@@ -66,8 +66,8 @@ No authorization required
|
|
|
66
66
|
|
|
67
67
|
[[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)
|
|
68
68
|
|
|
69
|
-
# **
|
|
70
|
-
> Array<UserWithId>
|
|
69
|
+
# **getUsersV1RolesCompanyIdUsersGet**
|
|
70
|
+
> Array<UserWithId> getUsersV1RolesCompanyIdUsersGet()
|
|
71
71
|
|
|
72
72
|
|
|
73
73
|
### Example
|
|
@@ -85,7 +85,7 @@ let companyId: string; // (default to undefined)
|
|
|
85
85
|
let authorization: string; // (optional) (default to undefined)
|
|
86
86
|
let sessionId: string; // (optional) (default to undefined)
|
|
87
87
|
|
|
88
|
-
const { status, data } = await apiInstance.
|
|
88
|
+
const { status, data } = await apiInstance.getUsersV1RolesCompanyIdUsersGet(
|
|
89
89
|
companyId,
|
|
90
90
|
authorization,
|
|
91
91
|
sessionId
|
package/index.ts
CHANGED
package/package.json
CHANGED
package/update.sh
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
|
|
3
|
+
# Run openapi cli command
|
|
4
|
+
openapi-generator-cli generate -i http://localhost:8000/openapi.json -g typescript-axios -o .
|
|
5
|
+
|
|
6
|
+
# Add export * from "./sdk" to index.ts
|
|
7
|
+
echo "export * from './sdk';" >> index.ts
|
|
8
|
+
|
|
9
|
+
# Update package version
|
|
10
|
+
npm version minor
|
|
11
|
+
|
|
12
|
+
# Commit changes
|
|
13
|
+
git add .
|
|
14
|
+
git commit -m "Update SDK to version $version"
|
|
15
|
+
|
|
16
|
+
# Push changes
|
|
17
|
+
git push
|
|
18
|
+
npm publish
|