@rasadov/lumoar-sdk 1.1.0 → 1.1.2
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 +44 -56
- package/dist/api.d.ts +20 -20
- package/dist/api.js +33 -42
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/docs/EvidenceApi.md +10 -10
- package/index.ts +1 -0
- package/package.json +1 -1
- package/update.sh +6 -2
package/api.ts
CHANGED
|
@@ -3791,15 +3791,12 @@ export const EvidenceApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
3791
3791
|
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
3792
3792
|
const localVarHeaderParameter = {} as any;
|
|
3793
3793
|
const localVarQueryParameter = {} as any;
|
|
3794
|
-
const localVarFormParams = new URLSearchParams();
|
|
3795
|
-
|
|
3796
3794
|
|
|
3797
|
-
if (evidenceId !== undefined) {
|
|
3798
|
-
|
|
3795
|
+
if (evidenceId !== undefined) {
|
|
3796
|
+
localVarQueryParameter['evidence_id'] = evidenceId;
|
|
3799
3797
|
}
|
|
3800
|
-
|
|
3801
|
-
|
|
3802
|
-
localVarHeaderParameter['Content-Type'] = 'application/x-www-form-urlencoded';
|
|
3798
|
+
|
|
3799
|
+
|
|
3803
3800
|
|
|
3804
3801
|
if (authorization != null) {
|
|
3805
3802
|
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
@@ -3807,7 +3804,6 @@ export const EvidenceApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
3807
3804
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3808
3805
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3809
3806
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3810
|
-
localVarRequestOptions.data = localVarFormParams.toString();
|
|
3811
3807
|
|
|
3812
3808
|
return {
|
|
3813
3809
|
url: toPathString(localVarUrlObj),
|
|
@@ -3896,13 +3892,13 @@ export const EvidenceApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
3896
3892
|
*
|
|
3897
3893
|
* @summary Update Evidence
|
|
3898
3894
|
* @param {string} evidenceId
|
|
3899
|
-
* @param {string} text
|
|
3895
|
+
* @param {string | null} text
|
|
3900
3896
|
* @param {string} [authorization]
|
|
3901
3897
|
* @param {string} [sessionId]
|
|
3902
3898
|
* @param {*} [options] Override http request option.
|
|
3903
3899
|
* @throws {RequiredError}
|
|
3904
3900
|
*/
|
|
3905
|
-
updateEvidenceV1EvidenceUpdatePut: async (evidenceId: string, text: string, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3901
|
+
updateEvidenceV1EvidenceUpdatePut: async (evidenceId: string, text: string | null, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3906
3902
|
// verify required parameter 'evidenceId' is not null or undefined
|
|
3907
3903
|
assertParamExists('updateEvidenceV1EvidenceUpdatePut', 'evidenceId', evidenceId)
|
|
3908
3904
|
// verify required parameter 'text' is not null or undefined
|
|
@@ -3920,11 +3916,11 @@ export const EvidenceApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
3920
3916
|
const localVarQueryParameter = {} as any;
|
|
3921
3917
|
const localVarFormParams = new URLSearchParams();
|
|
3922
3918
|
|
|
3923
|
-
|
|
3924
|
-
|
|
3925
|
-
localVarFormParams.set('evidence_id', evidenceId as any);
|
|
3919
|
+
if (evidenceId !== undefined) {
|
|
3920
|
+
localVarQueryParameter['evidence_id'] = evidenceId;
|
|
3926
3921
|
}
|
|
3927
|
-
|
|
3922
|
+
|
|
3923
|
+
|
|
3928
3924
|
if (text !== undefined) {
|
|
3929
3925
|
localVarFormParams.set('text', text as any);
|
|
3930
3926
|
}
|
|
@@ -3950,23 +3946,23 @@ export const EvidenceApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
3950
3946
|
* @summary Upload Evidence
|
|
3951
3947
|
* @param {string} companyId
|
|
3952
3948
|
* @param {string} controlId
|
|
3953
|
-
* @param {Array<File>
|
|
3954
|
-
* @param {string | null} text
|
|
3949
|
+
* @param {Array<File>} files
|
|
3955
3950
|
* @param {string} [authorization]
|
|
3956
3951
|
* @param {string} [sessionId]
|
|
3952
|
+
* @param {string | null} [text]
|
|
3957
3953
|
* @param {*} [options] Override http request option.
|
|
3958
3954
|
* @throws {RequiredError}
|
|
3959
3955
|
*/
|
|
3960
|
-
|
|
3956
|
+
uploadEvidenceV1EvidenceUploadCompanyIdControlIdPost: async (companyId: string, controlId: string, files: Array<File>, authorization?: string, sessionId?: string, text?: string | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3961
3957
|
// verify required parameter 'companyId' is not null or undefined
|
|
3962
|
-
assertParamExists('
|
|
3958
|
+
assertParamExists('uploadEvidenceV1EvidenceUploadCompanyIdControlIdPost', 'companyId', companyId)
|
|
3963
3959
|
// verify required parameter 'controlId' is not null or undefined
|
|
3964
|
-
assertParamExists('
|
|
3960
|
+
assertParamExists('uploadEvidenceV1EvidenceUploadCompanyIdControlIdPost', 'controlId', controlId)
|
|
3965
3961
|
// verify required parameter 'files' is not null or undefined
|
|
3966
|
-
assertParamExists('
|
|
3967
|
-
|
|
3968
|
-
|
|
3969
|
-
|
|
3962
|
+
assertParamExists('uploadEvidenceV1EvidenceUploadCompanyIdControlIdPost', 'files', files)
|
|
3963
|
+
const localVarPath = `/v1/evidence/upload/{company_id}/{control_id}`
|
|
3964
|
+
.replace(`{${"company_id"}}`, encodeURIComponent(String(companyId)))
|
|
3965
|
+
.replace(`{${"control_id"}}`, encodeURIComponent(String(controlId)));
|
|
3970
3966
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3971
3967
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3972
3968
|
let baseOptions;
|
|
@@ -3977,29 +3973,21 @@ export const EvidenceApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
3977
3973
|
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
3978
3974
|
const localVarHeaderParameter = {} as any;
|
|
3979
3975
|
const localVarQueryParameter = {} as any;
|
|
3980
|
-
const localVarFormParams = new
|
|
3976
|
+
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
3981
3977
|
|
|
3982
|
-
|
|
3983
|
-
if (companyId !== undefined) {
|
|
3984
|
-
localVarFormParams.set('company_id', companyId as any);
|
|
3985
|
-
}
|
|
3986
|
-
|
|
3987
|
-
if (controlId !== undefined) {
|
|
3988
|
-
localVarFormParams.set('control_id', controlId as any);
|
|
3989
|
-
}
|
|
3990
|
-
if (files) {
|
|
3978
|
+
if (files) {
|
|
3991
3979
|
files.forEach((element) => {
|
|
3992
|
-
localVarFormParams.
|
|
3980
|
+
localVarFormParams.append('files', element as any);
|
|
3993
3981
|
})
|
|
3994
3982
|
}
|
|
3995
3983
|
|
|
3996
3984
|
|
|
3997
3985
|
if (text !== undefined) {
|
|
3998
|
-
localVarFormParams.
|
|
3986
|
+
localVarFormParams.append('text', text as any);
|
|
3999
3987
|
}
|
|
4000
3988
|
|
|
4001
3989
|
|
|
4002
|
-
localVarHeaderParameter['Content-Type'] = '
|
|
3990
|
+
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
|
|
4003
3991
|
|
|
4004
3992
|
if (authorization != null) {
|
|
4005
3993
|
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
@@ -4007,7 +3995,7 @@ export const EvidenceApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
4007
3995
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4008
3996
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4009
3997
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4010
|
-
localVarRequestOptions.data = localVarFormParams
|
|
3998
|
+
localVarRequestOptions.data = localVarFormParams;
|
|
4011
3999
|
|
|
4012
4000
|
return {
|
|
4013
4001
|
url: toPathString(localVarUrlObj),
|
|
@@ -4073,13 +4061,13 @@ export const EvidenceApiFp = function(configuration?: Configuration) {
|
|
|
4073
4061
|
*
|
|
4074
4062
|
* @summary Update Evidence
|
|
4075
4063
|
* @param {string} evidenceId
|
|
4076
|
-
* @param {string} text
|
|
4064
|
+
* @param {string | null} text
|
|
4077
4065
|
* @param {string} [authorization]
|
|
4078
4066
|
* @param {string} [sessionId]
|
|
4079
4067
|
* @param {*} [options] Override http request option.
|
|
4080
4068
|
* @throws {RequiredError}
|
|
4081
4069
|
*/
|
|
4082
|
-
async updateEvidenceV1EvidenceUpdatePut(evidenceId: string, text: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EvidenceBase>> {
|
|
4070
|
+
async updateEvidenceV1EvidenceUpdatePut(evidenceId: string, text: string | null, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EvidenceBase>> {
|
|
4083
4071
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updateEvidenceV1EvidenceUpdatePut(evidenceId, text, authorization, sessionId, options);
|
|
4084
4072
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4085
4073
|
const localVarOperationServerBasePath = operationServerMap['EvidenceApi.updateEvidenceV1EvidenceUpdatePut']?.[localVarOperationServerIndex]?.url;
|
|
@@ -4090,17 +4078,17 @@ export const EvidenceApiFp = function(configuration?: Configuration) {
|
|
|
4090
4078
|
* @summary Upload Evidence
|
|
4091
4079
|
* @param {string} companyId
|
|
4092
4080
|
* @param {string} controlId
|
|
4093
|
-
* @param {Array<File>
|
|
4094
|
-
* @param {string | null} text
|
|
4081
|
+
* @param {Array<File>} files
|
|
4095
4082
|
* @param {string} [authorization]
|
|
4096
4083
|
* @param {string} [sessionId]
|
|
4084
|
+
* @param {string | null} [text]
|
|
4097
4085
|
* @param {*} [options] Override http request option.
|
|
4098
4086
|
* @throws {RequiredError}
|
|
4099
4087
|
*/
|
|
4100
|
-
async
|
|
4101
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
4088
|
+
async uploadEvidenceV1EvidenceUploadCompanyIdControlIdPost(companyId: string, controlId: string, files: Array<File>, authorization?: string, sessionId?: string, text?: string | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EvidenceBase>> {
|
|
4089
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.uploadEvidenceV1EvidenceUploadCompanyIdControlIdPost(companyId, controlId, files, authorization, sessionId, text, options);
|
|
4102
4090
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4103
|
-
const localVarOperationServerBasePath = operationServerMap['EvidenceApi.
|
|
4091
|
+
const localVarOperationServerBasePath = operationServerMap['EvidenceApi.uploadEvidenceV1EvidenceUploadCompanyIdControlIdPost']?.[localVarOperationServerIndex]?.url;
|
|
4104
4092
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4105
4093
|
},
|
|
4106
4094
|
}
|
|
@@ -4153,13 +4141,13 @@ export const EvidenceApiFactory = function (configuration?: Configuration, baseP
|
|
|
4153
4141
|
*
|
|
4154
4142
|
* @summary Update Evidence
|
|
4155
4143
|
* @param {string} evidenceId
|
|
4156
|
-
* @param {string} text
|
|
4144
|
+
* @param {string | null} text
|
|
4157
4145
|
* @param {string} [authorization]
|
|
4158
4146
|
* @param {string} [sessionId]
|
|
4159
4147
|
* @param {*} [options] Override http request option.
|
|
4160
4148
|
* @throws {RequiredError}
|
|
4161
4149
|
*/
|
|
4162
|
-
updateEvidenceV1EvidenceUpdatePut(evidenceId: string, text: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<EvidenceBase> {
|
|
4150
|
+
updateEvidenceV1EvidenceUpdatePut(evidenceId: string, text: string | null, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<EvidenceBase> {
|
|
4163
4151
|
return localVarFp.updateEvidenceV1EvidenceUpdatePut(evidenceId, text, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
4164
4152
|
},
|
|
4165
4153
|
/**
|
|
@@ -4167,15 +4155,15 @@ export const EvidenceApiFactory = function (configuration?: Configuration, baseP
|
|
|
4167
4155
|
* @summary Upload Evidence
|
|
4168
4156
|
* @param {string} companyId
|
|
4169
4157
|
* @param {string} controlId
|
|
4170
|
-
* @param {Array<File>
|
|
4171
|
-
* @param {string | null} text
|
|
4158
|
+
* @param {Array<File>} files
|
|
4172
4159
|
* @param {string} [authorization]
|
|
4173
4160
|
* @param {string} [sessionId]
|
|
4161
|
+
* @param {string | null} [text]
|
|
4174
4162
|
* @param {*} [options] Override http request option.
|
|
4175
4163
|
* @throws {RequiredError}
|
|
4176
4164
|
*/
|
|
4177
|
-
|
|
4178
|
-
return localVarFp.
|
|
4165
|
+
uploadEvidenceV1EvidenceUploadCompanyIdControlIdPost(companyId: string, controlId: string, files: Array<File>, authorization?: string, sessionId?: string, text?: string | null, options?: RawAxiosRequestConfig): AxiosPromise<EvidenceBase> {
|
|
4166
|
+
return localVarFp.uploadEvidenceV1EvidenceUploadCompanyIdControlIdPost(companyId, controlId, files, authorization, sessionId, text, options).then((request) => request(axios, basePath));
|
|
4179
4167
|
},
|
|
4180
4168
|
};
|
|
4181
4169
|
};
|
|
@@ -4233,14 +4221,14 @@ export class EvidenceApi extends BaseAPI {
|
|
|
4233
4221
|
*
|
|
4234
4222
|
* @summary Update Evidence
|
|
4235
4223
|
* @param {string} evidenceId
|
|
4236
|
-
* @param {string} text
|
|
4224
|
+
* @param {string | null} text
|
|
4237
4225
|
* @param {string} [authorization]
|
|
4238
4226
|
* @param {string} [sessionId]
|
|
4239
4227
|
* @param {*} [options] Override http request option.
|
|
4240
4228
|
* @throws {RequiredError}
|
|
4241
4229
|
* @memberof EvidenceApi
|
|
4242
4230
|
*/
|
|
4243
|
-
public updateEvidenceV1EvidenceUpdatePut(evidenceId: string, text: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
|
|
4231
|
+
public updateEvidenceV1EvidenceUpdatePut(evidenceId: string, text: string | null, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
|
|
4244
4232
|
return EvidenceApiFp(this.configuration).updateEvidenceV1EvidenceUpdatePut(evidenceId, text, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
4245
4233
|
}
|
|
4246
4234
|
|
|
@@ -4249,16 +4237,16 @@ export class EvidenceApi extends BaseAPI {
|
|
|
4249
4237
|
* @summary Upload Evidence
|
|
4250
4238
|
* @param {string} companyId
|
|
4251
4239
|
* @param {string} controlId
|
|
4252
|
-
* @param {Array<File>
|
|
4253
|
-
* @param {string | null} text
|
|
4240
|
+
* @param {Array<File>} files
|
|
4254
4241
|
* @param {string} [authorization]
|
|
4255
4242
|
* @param {string} [sessionId]
|
|
4243
|
+
* @param {string | null} [text]
|
|
4256
4244
|
* @param {*} [options] Override http request option.
|
|
4257
4245
|
* @throws {RequiredError}
|
|
4258
4246
|
* @memberof EvidenceApi
|
|
4259
4247
|
*/
|
|
4260
|
-
public
|
|
4261
|
-
return EvidenceApiFp(this.configuration).
|
|
4248
|
+
public uploadEvidenceV1EvidenceUploadCompanyIdControlIdPost(companyId: string, controlId: string, files: Array<File>, authorization?: string, sessionId?: string, text?: string | null, options?: RawAxiosRequestConfig) {
|
|
4249
|
+
return EvidenceApiFp(this.configuration).uploadEvidenceV1EvidenceUploadCompanyIdControlIdPost(companyId, controlId, files, authorization, sessionId, text, options).then((request) => request(this.axios, this.basePath));
|
|
4262
4250
|
}
|
|
4263
4251
|
}
|
|
4264
4252
|
|
package/dist/api.d.ts
CHANGED
|
@@ -2964,26 +2964,26 @@ export declare const EvidenceApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
2964
2964
|
*
|
|
2965
2965
|
* @summary Update Evidence
|
|
2966
2966
|
* @param {string} evidenceId
|
|
2967
|
-
* @param {string} text
|
|
2967
|
+
* @param {string | null} text
|
|
2968
2968
|
* @param {string} [authorization]
|
|
2969
2969
|
* @param {string} [sessionId]
|
|
2970
2970
|
* @param {*} [options] Override http request option.
|
|
2971
2971
|
* @throws {RequiredError}
|
|
2972
2972
|
*/
|
|
2973
|
-
updateEvidenceV1EvidenceUpdatePut: (evidenceId: string, text: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2973
|
+
updateEvidenceV1EvidenceUpdatePut: (evidenceId: string, text: string | null, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2974
2974
|
/**
|
|
2975
2975
|
*
|
|
2976
2976
|
* @summary Upload Evidence
|
|
2977
2977
|
* @param {string} companyId
|
|
2978
2978
|
* @param {string} controlId
|
|
2979
|
-
* @param {Array<File>
|
|
2980
|
-
* @param {string | null} text
|
|
2979
|
+
* @param {Array<File>} files
|
|
2981
2980
|
* @param {string} [authorization]
|
|
2982
2981
|
* @param {string} [sessionId]
|
|
2982
|
+
* @param {string | null} [text]
|
|
2983
2983
|
* @param {*} [options] Override http request option.
|
|
2984
2984
|
* @throws {RequiredError}
|
|
2985
2985
|
*/
|
|
2986
|
-
|
|
2986
|
+
uploadEvidenceV1EvidenceUploadCompanyIdControlIdPost: (companyId: string, controlId: string, files: Array<File>, authorization?: string, sessionId?: string, text?: string | null, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2987
2987
|
};
|
|
2988
2988
|
/**
|
|
2989
2989
|
* EvidenceApi - functional programming interface
|
|
@@ -3024,26 +3024,26 @@ export declare const EvidenceApiFp: (configuration?: Configuration) => {
|
|
|
3024
3024
|
*
|
|
3025
3025
|
* @summary Update Evidence
|
|
3026
3026
|
* @param {string} evidenceId
|
|
3027
|
-
* @param {string} text
|
|
3027
|
+
* @param {string | null} text
|
|
3028
3028
|
* @param {string} [authorization]
|
|
3029
3029
|
* @param {string} [sessionId]
|
|
3030
3030
|
* @param {*} [options] Override http request option.
|
|
3031
3031
|
* @throws {RequiredError}
|
|
3032
3032
|
*/
|
|
3033
|
-
updateEvidenceV1EvidenceUpdatePut(evidenceId: string, text: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EvidenceBase>>;
|
|
3033
|
+
updateEvidenceV1EvidenceUpdatePut(evidenceId: string, text: string | null, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EvidenceBase>>;
|
|
3034
3034
|
/**
|
|
3035
3035
|
*
|
|
3036
3036
|
* @summary Upload Evidence
|
|
3037
3037
|
* @param {string} companyId
|
|
3038
3038
|
* @param {string} controlId
|
|
3039
|
-
* @param {Array<File>
|
|
3040
|
-
* @param {string | null} text
|
|
3039
|
+
* @param {Array<File>} files
|
|
3041
3040
|
* @param {string} [authorization]
|
|
3042
3041
|
* @param {string} [sessionId]
|
|
3042
|
+
* @param {string | null} [text]
|
|
3043
3043
|
* @param {*} [options] Override http request option.
|
|
3044
3044
|
* @throws {RequiredError}
|
|
3045
3045
|
*/
|
|
3046
|
-
|
|
3046
|
+
uploadEvidenceV1EvidenceUploadCompanyIdControlIdPost(companyId: string, controlId: string, files: Array<File>, authorization?: string, sessionId?: string, text?: string | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EvidenceBase>>;
|
|
3047
3047
|
};
|
|
3048
3048
|
/**
|
|
3049
3049
|
* EvidenceApi - factory interface
|
|
@@ -3084,26 +3084,26 @@ export declare const EvidenceApiFactory: (configuration?: Configuration, basePat
|
|
|
3084
3084
|
*
|
|
3085
3085
|
* @summary Update Evidence
|
|
3086
3086
|
* @param {string} evidenceId
|
|
3087
|
-
* @param {string} text
|
|
3087
|
+
* @param {string | null} text
|
|
3088
3088
|
* @param {string} [authorization]
|
|
3089
3089
|
* @param {string} [sessionId]
|
|
3090
3090
|
* @param {*} [options] Override http request option.
|
|
3091
3091
|
* @throws {RequiredError}
|
|
3092
3092
|
*/
|
|
3093
|
-
updateEvidenceV1EvidenceUpdatePut(evidenceId: string, text: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<EvidenceBase>;
|
|
3093
|
+
updateEvidenceV1EvidenceUpdatePut(evidenceId: string, text: string | null, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<EvidenceBase>;
|
|
3094
3094
|
/**
|
|
3095
3095
|
*
|
|
3096
3096
|
* @summary Upload Evidence
|
|
3097
3097
|
* @param {string} companyId
|
|
3098
3098
|
* @param {string} controlId
|
|
3099
|
-
* @param {Array<File>
|
|
3100
|
-
* @param {string | null} text
|
|
3099
|
+
* @param {Array<File>} files
|
|
3101
3100
|
* @param {string} [authorization]
|
|
3102
3101
|
* @param {string} [sessionId]
|
|
3102
|
+
* @param {string | null} [text]
|
|
3103
3103
|
* @param {*} [options] Override http request option.
|
|
3104
3104
|
* @throws {RequiredError}
|
|
3105
3105
|
*/
|
|
3106
|
-
|
|
3106
|
+
uploadEvidenceV1EvidenceUploadCompanyIdControlIdPost(companyId: string, controlId: string, files: Array<File>, authorization?: string, sessionId?: string, text?: string | null, options?: RawAxiosRequestConfig): AxiosPromise<EvidenceBase>;
|
|
3107
3107
|
};
|
|
3108
3108
|
/**
|
|
3109
3109
|
* EvidenceApi - object-oriented interface
|
|
@@ -3149,28 +3149,28 @@ export declare class EvidenceApi extends BaseAPI {
|
|
|
3149
3149
|
*
|
|
3150
3150
|
* @summary Update Evidence
|
|
3151
3151
|
* @param {string} evidenceId
|
|
3152
|
-
* @param {string} text
|
|
3152
|
+
* @param {string | null} text
|
|
3153
3153
|
* @param {string} [authorization]
|
|
3154
3154
|
* @param {string} [sessionId]
|
|
3155
3155
|
* @param {*} [options] Override http request option.
|
|
3156
3156
|
* @throws {RequiredError}
|
|
3157
3157
|
* @memberof EvidenceApi
|
|
3158
3158
|
*/
|
|
3159
|
-
updateEvidenceV1EvidenceUpdatePut(evidenceId: string, text: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EvidenceBase, any, {}>>;
|
|
3159
|
+
updateEvidenceV1EvidenceUpdatePut(evidenceId: string, text: string | null, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EvidenceBase, any, {}>>;
|
|
3160
3160
|
/**
|
|
3161
3161
|
*
|
|
3162
3162
|
* @summary Upload Evidence
|
|
3163
3163
|
* @param {string} companyId
|
|
3164
3164
|
* @param {string} controlId
|
|
3165
|
-
* @param {Array<File>
|
|
3166
|
-
* @param {string | null} text
|
|
3165
|
+
* @param {Array<File>} files
|
|
3167
3166
|
* @param {string} [authorization]
|
|
3168
3167
|
* @param {string} [sessionId]
|
|
3168
|
+
* @param {string | null} [text]
|
|
3169
3169
|
* @param {*} [options] Override http request option.
|
|
3170
3170
|
* @throws {RequiredError}
|
|
3171
3171
|
* @memberof EvidenceApi
|
|
3172
3172
|
*/
|
|
3173
|
-
|
|
3173
|
+
uploadEvidenceV1EvidenceUploadCompanyIdControlIdPost(companyId: string, controlId: string, files: Array<File>, authorization?: string, sessionId?: string, text?: string | null, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EvidenceBase, any, {}>>;
|
|
3174
3174
|
}
|
|
3175
3175
|
/**
|
|
3176
3176
|
* HealthApi - axios parameter creator
|
package/dist/api.js
CHANGED
|
@@ -1687,18 +1687,15 @@ export const EvidenceApiAxiosParamCreator = function (configuration) {
|
|
|
1687
1687
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
1688
1688
|
const localVarHeaderParameter = {};
|
|
1689
1689
|
const localVarQueryParameter = {};
|
|
1690
|
-
const localVarFormParams = new URLSearchParams();
|
|
1691
1690
|
if (evidenceId !== undefined) {
|
|
1692
|
-
|
|
1691
|
+
localVarQueryParameter['evidence_id'] = evidenceId;
|
|
1693
1692
|
}
|
|
1694
|
-
localVarHeaderParameter['Content-Type'] = 'application/x-www-form-urlencoded';
|
|
1695
1693
|
if (authorization != null) {
|
|
1696
1694
|
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
1697
1695
|
}
|
|
1698
1696
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1699
1697
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1700
1698
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1701
|
-
localVarRequestOptions.data = localVarFormParams.toString();
|
|
1702
1699
|
return {
|
|
1703
1700
|
url: toPathString(localVarUrlObj),
|
|
1704
1701
|
options: localVarRequestOptions,
|
|
@@ -1776,7 +1773,7 @@ export const EvidenceApiAxiosParamCreator = function (configuration) {
|
|
|
1776
1773
|
*
|
|
1777
1774
|
* @summary Update Evidence
|
|
1778
1775
|
* @param {string} evidenceId
|
|
1779
|
-
* @param {string} text
|
|
1776
|
+
* @param {string | null} text
|
|
1780
1777
|
* @param {string} [authorization]
|
|
1781
1778
|
* @param {string} [sessionId]
|
|
1782
1779
|
* @param {*} [options] Override http request option.
|
|
@@ -1799,7 +1796,7 @@ export const EvidenceApiAxiosParamCreator = function (configuration) {
|
|
|
1799
1796
|
const localVarQueryParameter = {};
|
|
1800
1797
|
const localVarFormParams = new URLSearchParams();
|
|
1801
1798
|
if (evidenceId !== undefined) {
|
|
1802
|
-
|
|
1799
|
+
localVarQueryParameter['evidence_id'] = evidenceId;
|
|
1803
1800
|
}
|
|
1804
1801
|
if (text !== undefined) {
|
|
1805
1802
|
localVarFormParams.set('text', text);
|
|
@@ -1822,23 +1819,23 @@ export const EvidenceApiAxiosParamCreator = function (configuration) {
|
|
|
1822
1819
|
* @summary Upload Evidence
|
|
1823
1820
|
* @param {string} companyId
|
|
1824
1821
|
* @param {string} controlId
|
|
1825
|
-
* @param {Array<File>
|
|
1826
|
-
* @param {string | null} text
|
|
1822
|
+
* @param {Array<File>} files
|
|
1827
1823
|
* @param {string} [authorization]
|
|
1828
1824
|
* @param {string} [sessionId]
|
|
1825
|
+
* @param {string | null} [text]
|
|
1829
1826
|
* @param {*} [options] Override http request option.
|
|
1830
1827
|
* @throws {RequiredError}
|
|
1831
1828
|
*/
|
|
1832
|
-
|
|
1829
|
+
uploadEvidenceV1EvidenceUploadCompanyIdControlIdPost: (companyId_1, controlId_1, files_1, authorization_1, sessionId_1, text_1, ...args_1) => __awaiter(this, [companyId_1, controlId_1, files_1, authorization_1, sessionId_1, text_1, ...args_1], void 0, function* (companyId, controlId, files, authorization, sessionId, text, options = {}) {
|
|
1833
1830
|
// verify required parameter 'companyId' is not null or undefined
|
|
1834
|
-
assertParamExists('
|
|
1831
|
+
assertParamExists('uploadEvidenceV1EvidenceUploadCompanyIdControlIdPost', 'companyId', companyId);
|
|
1835
1832
|
// verify required parameter 'controlId' is not null or undefined
|
|
1836
|
-
assertParamExists('
|
|
1833
|
+
assertParamExists('uploadEvidenceV1EvidenceUploadCompanyIdControlIdPost', 'controlId', controlId);
|
|
1837
1834
|
// verify required parameter 'files' is not null or undefined
|
|
1838
|
-
assertParamExists('
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1835
|
+
assertParamExists('uploadEvidenceV1EvidenceUploadCompanyIdControlIdPost', 'files', files);
|
|
1836
|
+
const localVarPath = `/v1/evidence/upload/{company_id}/{control_id}`
|
|
1837
|
+
.replace(`{${"company_id"}}`, encodeURIComponent(String(companyId)))
|
|
1838
|
+
.replace(`{${"control_id"}}`, encodeURIComponent(String(controlId)));
|
|
1842
1839
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1843
1840
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1844
1841
|
let baseOptions;
|
|
@@ -1848,29 +1845,23 @@ export const EvidenceApiAxiosParamCreator = function (configuration) {
|
|
|
1848
1845
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1849
1846
|
const localVarHeaderParameter = {};
|
|
1850
1847
|
const localVarQueryParameter = {};
|
|
1851
|
-
const localVarFormParams = new
|
|
1852
|
-
if (companyId !== undefined) {
|
|
1853
|
-
localVarFormParams.set('company_id', companyId);
|
|
1854
|
-
}
|
|
1855
|
-
if (controlId !== undefined) {
|
|
1856
|
-
localVarFormParams.set('control_id', controlId);
|
|
1857
|
-
}
|
|
1848
|
+
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
1858
1849
|
if (files) {
|
|
1859
1850
|
files.forEach((element) => {
|
|
1860
|
-
localVarFormParams.
|
|
1851
|
+
localVarFormParams.append('files', element);
|
|
1861
1852
|
});
|
|
1862
1853
|
}
|
|
1863
1854
|
if (text !== undefined) {
|
|
1864
|
-
localVarFormParams.
|
|
1855
|
+
localVarFormParams.append('text', text);
|
|
1865
1856
|
}
|
|
1866
|
-
localVarHeaderParameter['Content-Type'] = '
|
|
1857
|
+
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
|
|
1867
1858
|
if (authorization != null) {
|
|
1868
1859
|
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
1869
1860
|
}
|
|
1870
1861
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1871
1862
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1872
1863
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1873
|
-
localVarRequestOptions.data = localVarFormParams
|
|
1864
|
+
localVarRequestOptions.data = localVarFormParams;
|
|
1874
1865
|
return {
|
|
1875
1866
|
url: toPathString(localVarUrlObj),
|
|
1876
1867
|
options: localVarRequestOptions,
|
|
@@ -1943,7 +1934,7 @@ export const EvidenceApiFp = function (configuration) {
|
|
|
1943
1934
|
*
|
|
1944
1935
|
* @summary Update Evidence
|
|
1945
1936
|
* @param {string} evidenceId
|
|
1946
|
-
* @param {string} text
|
|
1937
|
+
* @param {string | null} text
|
|
1947
1938
|
* @param {string} [authorization]
|
|
1948
1939
|
* @param {string} [sessionId]
|
|
1949
1940
|
* @param {*} [options] Override http request option.
|
|
@@ -1963,19 +1954,19 @@ export const EvidenceApiFp = function (configuration) {
|
|
|
1963
1954
|
* @summary Upload Evidence
|
|
1964
1955
|
* @param {string} companyId
|
|
1965
1956
|
* @param {string} controlId
|
|
1966
|
-
* @param {Array<File>
|
|
1967
|
-
* @param {string | null} text
|
|
1957
|
+
* @param {Array<File>} files
|
|
1968
1958
|
* @param {string} [authorization]
|
|
1969
1959
|
* @param {string} [sessionId]
|
|
1960
|
+
* @param {string | null} [text]
|
|
1970
1961
|
* @param {*} [options] Override http request option.
|
|
1971
1962
|
* @throws {RequiredError}
|
|
1972
1963
|
*/
|
|
1973
|
-
|
|
1964
|
+
uploadEvidenceV1EvidenceUploadCompanyIdControlIdPost(companyId, controlId, files, authorization, sessionId, text, options) {
|
|
1974
1965
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1975
1966
|
var _a, _b, _c;
|
|
1976
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
1967
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.uploadEvidenceV1EvidenceUploadCompanyIdControlIdPost(companyId, controlId, files, authorization, sessionId, text, options);
|
|
1977
1968
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1978
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EvidenceApi.
|
|
1969
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EvidenceApi.uploadEvidenceV1EvidenceUploadCompanyIdControlIdPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1979
1970
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1980
1971
|
});
|
|
1981
1972
|
},
|
|
@@ -2028,7 +2019,7 @@ export const EvidenceApiFactory = function (configuration, basePath, axios) {
|
|
|
2028
2019
|
*
|
|
2029
2020
|
* @summary Update Evidence
|
|
2030
2021
|
* @param {string} evidenceId
|
|
2031
|
-
* @param {string} text
|
|
2022
|
+
* @param {string | null} text
|
|
2032
2023
|
* @param {string} [authorization]
|
|
2033
2024
|
* @param {string} [sessionId]
|
|
2034
2025
|
* @param {*} [options] Override http request option.
|
|
@@ -2042,15 +2033,15 @@ export const EvidenceApiFactory = function (configuration, basePath, axios) {
|
|
|
2042
2033
|
* @summary Upload Evidence
|
|
2043
2034
|
* @param {string} companyId
|
|
2044
2035
|
* @param {string} controlId
|
|
2045
|
-
* @param {Array<File>
|
|
2046
|
-
* @param {string | null} text
|
|
2036
|
+
* @param {Array<File>} files
|
|
2047
2037
|
* @param {string} [authorization]
|
|
2048
2038
|
* @param {string} [sessionId]
|
|
2039
|
+
* @param {string | null} [text]
|
|
2049
2040
|
* @param {*} [options] Override http request option.
|
|
2050
2041
|
* @throws {RequiredError}
|
|
2051
2042
|
*/
|
|
2052
|
-
|
|
2053
|
-
return localVarFp.
|
|
2043
|
+
uploadEvidenceV1EvidenceUploadCompanyIdControlIdPost(companyId, controlId, files, authorization, sessionId, text, options) {
|
|
2044
|
+
return localVarFp.uploadEvidenceV1EvidenceUploadCompanyIdControlIdPost(companyId, controlId, files, authorization, sessionId, text, options).then((request) => request(axios, basePath));
|
|
2054
2045
|
},
|
|
2055
2046
|
};
|
|
2056
2047
|
};
|
|
@@ -2104,7 +2095,7 @@ export class EvidenceApi extends BaseAPI {
|
|
|
2104
2095
|
*
|
|
2105
2096
|
* @summary Update Evidence
|
|
2106
2097
|
* @param {string} evidenceId
|
|
2107
|
-
* @param {string} text
|
|
2098
|
+
* @param {string | null} text
|
|
2108
2099
|
* @param {string} [authorization]
|
|
2109
2100
|
* @param {string} [sessionId]
|
|
2110
2101
|
* @param {*} [options] Override http request option.
|
|
@@ -2119,16 +2110,16 @@ export class EvidenceApi extends BaseAPI {
|
|
|
2119
2110
|
* @summary Upload Evidence
|
|
2120
2111
|
* @param {string} companyId
|
|
2121
2112
|
* @param {string} controlId
|
|
2122
|
-
* @param {Array<File>
|
|
2123
|
-
* @param {string | null} text
|
|
2113
|
+
* @param {Array<File>} files
|
|
2124
2114
|
* @param {string} [authorization]
|
|
2125
2115
|
* @param {string} [sessionId]
|
|
2116
|
+
* @param {string | null} [text]
|
|
2126
2117
|
* @param {*} [options] Override http request option.
|
|
2127
2118
|
* @throws {RequiredError}
|
|
2128
2119
|
* @memberof EvidenceApi
|
|
2129
2120
|
*/
|
|
2130
|
-
|
|
2131
|
-
return EvidenceApiFp(this.configuration).
|
|
2121
|
+
uploadEvidenceV1EvidenceUploadCompanyIdControlIdPost(companyId, controlId, files, authorization, sessionId, text, options) {
|
|
2122
|
+
return EvidenceApiFp(this.configuration).uploadEvidenceV1EvidenceUploadCompanyIdControlIdPost(companyId, controlId, files, authorization, sessionId, text, options).then((request) => request(this.axios, this.basePath));
|
|
2132
2123
|
}
|
|
2133
2124
|
}
|
|
2134
2125
|
/**
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/docs/EvidenceApi.md
CHANGED
|
@@ -8,7 +8,7 @@ All URIs are relative to *http://localhost*
|
|
|
8
8
|
|[**getEvidenceFilesV1EvidenceFileEvidenceIdGet**](#getevidencefilesv1evidencefileevidenceidget) | **GET** /v1/evidence/file/{evidence_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
|
+
|[**uploadEvidenceV1EvidenceUploadCompanyIdControlIdPost**](#uploadevidencev1evidenceuploadcompanyidcontrolidpost) | **POST** /v1/evidence/upload/{company_id}/{control_id} | Upload Evidence|
|
|
12
12
|
|
|
13
13
|
# **deleteEvidenceV1EvidenceDeleteDelete**
|
|
14
14
|
> deleteEvidenceV1EvidenceDeleteDelete()
|
|
@@ -55,7 +55,7 @@ No authorization required
|
|
|
55
55
|
|
|
56
56
|
### HTTP request headers
|
|
57
57
|
|
|
58
|
-
- **Content-Type**:
|
|
58
|
+
- **Content-Type**: Not defined
|
|
59
59
|
- **Accept**: application/json
|
|
60
60
|
|
|
61
61
|
|
|
@@ -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
|
+
# **uploadEvidenceV1EvidenceUploadCompanyIdControlIdPost**
|
|
245
|
+
> EvidenceBase uploadEvidenceV1EvidenceUploadCompanyIdControlIdPost()
|
|
246
246
|
|
|
247
247
|
|
|
248
248
|
### Example
|
|
@@ -259,17 +259,17 @@ const apiInstance = new EvidenceApi(configuration);
|
|
|
259
259
|
let companyId: string; // (default to undefined)
|
|
260
260
|
let controlId: string; // (default to undefined)
|
|
261
261
|
let files: Array<File>; // (default to undefined)
|
|
262
|
-
let text: string; // (default to undefined)
|
|
263
262
|
let authorization: string; // (optional) (default to undefined)
|
|
264
263
|
let sessionId: string; // (optional) (default to undefined)
|
|
264
|
+
let text: string; // (optional) (default to undefined)
|
|
265
265
|
|
|
266
|
-
const { status, data } = await apiInstance.
|
|
266
|
+
const { status, data } = await apiInstance.uploadEvidenceV1EvidenceUploadCompanyIdControlIdPost(
|
|
267
267
|
companyId,
|
|
268
268
|
controlId,
|
|
269
269
|
files,
|
|
270
|
-
text,
|
|
271
270
|
authorization,
|
|
272
|
-
sessionId
|
|
271
|
+
sessionId,
|
|
272
|
+
text
|
|
273
273
|
);
|
|
274
274
|
```
|
|
275
275
|
|
|
@@ -280,9 +280,9 @@ const { status, data } = await apiInstance.uploadEvidenceV1EvidenceUploadPost(
|
|
|
280
280
|
| **companyId** | [**string**] | | defaults to undefined|
|
|
281
281
|
| **controlId** | [**string**] | | defaults to undefined|
|
|
282
282
|
| **files** | **Array<File>** | | defaults to undefined|
|
|
283
|
-
| **text** | [**string**] | | defaults to undefined|
|
|
284
283
|
| **authorization** | [**string**] | | (optional) defaults to undefined|
|
|
285
284
|
| **sessionId** | [**string**] | | (optional) defaults to undefined|
|
|
285
|
+
| **text** | [**string**] | | (optional) defaults to undefined|
|
|
286
286
|
|
|
287
287
|
|
|
288
288
|
### Return type
|
|
@@ -295,7 +295,7 @@ No authorization required
|
|
|
295
295
|
|
|
296
296
|
### HTTP request headers
|
|
297
297
|
|
|
298
|
-
- **Content-Type**:
|
|
298
|
+
- **Content-Type**: multipart/form-data
|
|
299
299
|
- **Accept**: application/json
|
|
300
300
|
|
|
301
301
|
|
package/index.ts
CHANGED
package/package.json
CHANGED
package/update.sh
CHANGED
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
#!/bin/sh
|
|
2
2
|
|
|
3
|
+
|
|
4
|
+
# Get the version type from the command line arg
|
|
5
|
+
version_type=$1
|
|
6
|
+
|
|
3
7
|
# Run openapi cli command
|
|
4
|
-
openapi-generator-cli generate -i http://localhost:8000/openapi.json -g typescript-axios -o .
|
|
8
|
+
openapi-generator-cli generate -i http://localhost:8000/openapi.json -g typescript-axios -o . 2>/dev/null || echo "Error: openapi-generator-cli generate failed"
|
|
5
9
|
|
|
6
10
|
# Add export * from "./sdk" to index.ts
|
|
7
11
|
echo "export * from './sdk';" >> index.ts
|
|
8
12
|
|
|
9
13
|
# Update package version
|
|
10
|
-
npm version
|
|
14
|
+
version=$(npm version $version_type --no-git-tag-version)
|
|
11
15
|
|
|
12
16
|
# Commit changes
|
|
13
17
|
git add .
|