@rasadov/lumoar-sdk 1.2.4 → 1.2.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/.openapi-generator/FILES +1 -5
- package/api.ts +25 -606
- package/dist/api.d.ts +18 -392
- package/dist/api.js +20 -451
- package/dist/sdk.d.ts +1 -3
- package/dist/sdk.js +1 -3
- package/docs/AuditLogEntity.md +0 -2
- package/docs/ReportBase.md +0 -2
- package/docs/ReportType.md +10 -0
- package/docs/ReportsApi.md +4 -7
- package/package.json +1 -1
- package/sdk.ts +0 -4
package/dist/api.js
CHANGED
|
@@ -45,7 +45,6 @@ export const AuditLogAction = {
|
|
|
45
45
|
export const AuditLogEntity = {
|
|
46
46
|
CompanyControls: 'company_controls',
|
|
47
47
|
Evidences: 'evidences',
|
|
48
|
-
Policies: 'policies',
|
|
49
48
|
Reports: 'reports',
|
|
50
49
|
Companies: 'companies',
|
|
51
50
|
Users: 'users',
|
|
@@ -95,6 +94,15 @@ export const PermissionType = {
|
|
|
95
94
|
Member: 'member',
|
|
96
95
|
Auditor: 'auditor'
|
|
97
96
|
};
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
* @export
|
|
100
|
+
* @enum {string}
|
|
101
|
+
*/
|
|
102
|
+
export const ReportType = {
|
|
103
|
+
AuditReady: 'audit_ready',
|
|
104
|
+
GapAnalysis: 'gap_analysis'
|
|
105
|
+
};
|
|
98
106
|
/**
|
|
99
107
|
*
|
|
100
108
|
* @export
|
|
@@ -2866,437 +2874,6 @@ export class PaymentsApi extends BaseAPI {
|
|
|
2866
2874
|
return PaymentsApiFp(this.configuration).webhookV1PaymentsWebhookPost(options).then((request) => request(this.axios, this.basePath));
|
|
2867
2875
|
}
|
|
2868
2876
|
}
|
|
2869
|
-
/**
|
|
2870
|
-
* PoliciesApi - axios parameter creator
|
|
2871
|
-
* @export
|
|
2872
|
-
*/
|
|
2873
|
-
export const PoliciesApiAxiosParamCreator = function (configuration) {
|
|
2874
|
-
return {
|
|
2875
|
-
/**
|
|
2876
|
-
*
|
|
2877
|
-
* @summary Create Policy
|
|
2878
|
-
* @param {PolicyCreate} policyCreate
|
|
2879
|
-
* @param {string} [authorization]
|
|
2880
|
-
* @param {string} [sessionId]
|
|
2881
|
-
* @param {*} [options] Override http request option.
|
|
2882
|
-
* @throws {RequiredError}
|
|
2883
|
-
*/
|
|
2884
|
-
createPolicyV1PoliciesCreatePost: (policyCreate_1, authorization_1, sessionId_1, ...args_1) => __awaiter(this, [policyCreate_1, authorization_1, sessionId_1, ...args_1], void 0, function* (policyCreate, authorization, sessionId, options = {}) {
|
|
2885
|
-
// verify required parameter 'policyCreate' is not null or undefined
|
|
2886
|
-
assertParamExists('createPolicyV1PoliciesCreatePost', 'policyCreate', policyCreate);
|
|
2887
|
-
const localVarPath = `/v1/policies/create`;
|
|
2888
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2889
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2890
|
-
let baseOptions;
|
|
2891
|
-
if (configuration) {
|
|
2892
|
-
baseOptions = configuration.baseOptions;
|
|
2893
|
-
}
|
|
2894
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
2895
|
-
const localVarHeaderParameter = {};
|
|
2896
|
-
const localVarQueryParameter = {};
|
|
2897
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2898
|
-
if (authorization != null) {
|
|
2899
|
-
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
2900
|
-
}
|
|
2901
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2902
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2903
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2904
|
-
localVarRequestOptions.data = serializeDataIfNeeded(policyCreate, localVarRequestOptions, configuration);
|
|
2905
|
-
return {
|
|
2906
|
-
url: toPathString(localVarUrlObj),
|
|
2907
|
-
options: localVarRequestOptions,
|
|
2908
|
-
};
|
|
2909
|
-
}),
|
|
2910
|
-
/**
|
|
2911
|
-
*
|
|
2912
|
-
* @summary Delete Policy
|
|
2913
|
-
* @param {string} policyId
|
|
2914
|
-
* @param {string} [authorization]
|
|
2915
|
-
* @param {string} [sessionId]
|
|
2916
|
-
* @param {*} [options] Override http request option.
|
|
2917
|
-
* @throws {RequiredError}
|
|
2918
|
-
*/
|
|
2919
|
-
deletePolicyV1PoliciesPolicyIdDelete: (policyId_1, authorization_1, sessionId_1, ...args_1) => __awaiter(this, [policyId_1, authorization_1, sessionId_1, ...args_1], void 0, function* (policyId, authorization, sessionId, options = {}) {
|
|
2920
|
-
// verify required parameter 'policyId' is not null or undefined
|
|
2921
|
-
assertParamExists('deletePolicyV1PoliciesPolicyIdDelete', 'policyId', policyId);
|
|
2922
|
-
const localVarPath = `/v1/policies/{policy_id}`
|
|
2923
|
-
.replace(`{${"policy_id"}}`, encodeURIComponent(String(policyId)));
|
|
2924
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2925
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2926
|
-
let baseOptions;
|
|
2927
|
-
if (configuration) {
|
|
2928
|
-
baseOptions = configuration.baseOptions;
|
|
2929
|
-
}
|
|
2930
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
2931
|
-
const localVarHeaderParameter = {};
|
|
2932
|
-
const localVarQueryParameter = {};
|
|
2933
|
-
if (authorization != null) {
|
|
2934
|
-
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
2935
|
-
}
|
|
2936
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2937
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2938
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2939
|
-
return {
|
|
2940
|
-
url: toPathString(localVarUrlObj),
|
|
2941
|
-
options: localVarRequestOptions,
|
|
2942
|
-
};
|
|
2943
|
-
}),
|
|
2944
|
-
/**
|
|
2945
|
-
*
|
|
2946
|
-
* @summary Get Company Policies
|
|
2947
|
-
* @param {string} companyId
|
|
2948
|
-
* @param {number} [page]
|
|
2949
|
-
* @param {number} [elements]
|
|
2950
|
-
* @param {string} [authorization]
|
|
2951
|
-
* @param {string} [sessionId]
|
|
2952
|
-
* @param {*} [options] Override http request option.
|
|
2953
|
-
* @throws {RequiredError}
|
|
2954
|
-
*/
|
|
2955
|
-
getCompanyPoliciesV1PoliciesCompanyCompanyIdGet: (companyId_1, page_1, elements_1, authorization_1, sessionId_1, ...args_1) => __awaiter(this, [companyId_1, page_1, elements_1, authorization_1, sessionId_1, ...args_1], void 0, function* (companyId, page, elements, authorization, sessionId, options = {}) {
|
|
2956
|
-
// verify required parameter 'companyId' is not null or undefined
|
|
2957
|
-
assertParamExists('getCompanyPoliciesV1PoliciesCompanyCompanyIdGet', 'companyId', companyId);
|
|
2958
|
-
const localVarPath = `/v1/policies/company/{company_id}`
|
|
2959
|
-
.replace(`{${"company_id"}}`, encodeURIComponent(String(companyId)));
|
|
2960
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2961
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2962
|
-
let baseOptions;
|
|
2963
|
-
if (configuration) {
|
|
2964
|
-
baseOptions = configuration.baseOptions;
|
|
2965
|
-
}
|
|
2966
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2967
|
-
const localVarHeaderParameter = {};
|
|
2968
|
-
const localVarQueryParameter = {};
|
|
2969
|
-
if (page !== undefined) {
|
|
2970
|
-
localVarQueryParameter['page'] = page;
|
|
2971
|
-
}
|
|
2972
|
-
if (elements !== undefined) {
|
|
2973
|
-
localVarQueryParameter['elements'] = elements;
|
|
2974
|
-
}
|
|
2975
|
-
if (authorization != null) {
|
|
2976
|
-
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
2977
|
-
}
|
|
2978
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2979
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2980
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2981
|
-
return {
|
|
2982
|
-
url: toPathString(localVarUrlObj),
|
|
2983
|
-
options: localVarRequestOptions,
|
|
2984
|
-
};
|
|
2985
|
-
}),
|
|
2986
|
-
/**
|
|
2987
|
-
*
|
|
2988
|
-
* @summary Get Policy
|
|
2989
|
-
* @param {string} policyId
|
|
2990
|
-
* @param {*} [options] Override http request option.
|
|
2991
|
-
* @throws {RequiredError}
|
|
2992
|
-
*/
|
|
2993
|
-
getPolicyV1PoliciesPolicyIdGet: (policyId_1, ...args_1) => __awaiter(this, [policyId_1, ...args_1], void 0, function* (policyId, options = {}) {
|
|
2994
|
-
// verify required parameter 'policyId' is not null or undefined
|
|
2995
|
-
assertParamExists('getPolicyV1PoliciesPolicyIdGet', 'policyId', policyId);
|
|
2996
|
-
const localVarPath = `/v1/policies/{policy_id}`
|
|
2997
|
-
.replace(`{${"policy_id"}}`, encodeURIComponent(String(policyId)));
|
|
2998
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2999
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3000
|
-
let baseOptions;
|
|
3001
|
-
if (configuration) {
|
|
3002
|
-
baseOptions = configuration.baseOptions;
|
|
3003
|
-
}
|
|
3004
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3005
|
-
const localVarHeaderParameter = {};
|
|
3006
|
-
const localVarQueryParameter = {};
|
|
3007
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3008
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3009
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3010
|
-
return {
|
|
3011
|
-
url: toPathString(localVarUrlObj),
|
|
3012
|
-
options: localVarRequestOptions,
|
|
3013
|
-
};
|
|
3014
|
-
}),
|
|
3015
|
-
/**
|
|
3016
|
-
*
|
|
3017
|
-
* @summary Update Policy
|
|
3018
|
-
* @param {string} policyId
|
|
3019
|
-
* @param {PolicyUpdate} policyUpdate
|
|
3020
|
-
* @param {string} [authorization]
|
|
3021
|
-
* @param {string} [sessionId]
|
|
3022
|
-
* @param {*} [options] Override http request option.
|
|
3023
|
-
* @throws {RequiredError}
|
|
3024
|
-
*/
|
|
3025
|
-
updatePolicyV1PoliciesPolicyIdPut: (policyId_1, policyUpdate_1, authorization_1, sessionId_1, ...args_1) => __awaiter(this, [policyId_1, policyUpdate_1, authorization_1, sessionId_1, ...args_1], void 0, function* (policyId, policyUpdate, authorization, sessionId, options = {}) {
|
|
3026
|
-
// verify required parameter 'policyId' is not null or undefined
|
|
3027
|
-
assertParamExists('updatePolicyV1PoliciesPolicyIdPut', 'policyId', policyId);
|
|
3028
|
-
// verify required parameter 'policyUpdate' is not null or undefined
|
|
3029
|
-
assertParamExists('updatePolicyV1PoliciesPolicyIdPut', 'policyUpdate', policyUpdate);
|
|
3030
|
-
const localVarPath = `/v1/policies/{policy_id}`
|
|
3031
|
-
.replace(`{${"policy_id"}}`, encodeURIComponent(String(policyId)));
|
|
3032
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3033
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3034
|
-
let baseOptions;
|
|
3035
|
-
if (configuration) {
|
|
3036
|
-
baseOptions = configuration.baseOptions;
|
|
3037
|
-
}
|
|
3038
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
3039
|
-
const localVarHeaderParameter = {};
|
|
3040
|
-
const localVarQueryParameter = {};
|
|
3041
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3042
|
-
if (authorization != null) {
|
|
3043
|
-
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
3044
|
-
}
|
|
3045
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3046
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3047
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3048
|
-
localVarRequestOptions.data = serializeDataIfNeeded(policyUpdate, localVarRequestOptions, configuration);
|
|
3049
|
-
return {
|
|
3050
|
-
url: toPathString(localVarUrlObj),
|
|
3051
|
-
options: localVarRequestOptions,
|
|
3052
|
-
};
|
|
3053
|
-
}),
|
|
3054
|
-
};
|
|
3055
|
-
};
|
|
3056
|
-
/**
|
|
3057
|
-
* PoliciesApi - functional programming interface
|
|
3058
|
-
* @export
|
|
3059
|
-
*/
|
|
3060
|
-
export const PoliciesApiFp = function (configuration) {
|
|
3061
|
-
const localVarAxiosParamCreator = PoliciesApiAxiosParamCreator(configuration);
|
|
3062
|
-
return {
|
|
3063
|
-
/**
|
|
3064
|
-
*
|
|
3065
|
-
* @summary Create Policy
|
|
3066
|
-
* @param {PolicyCreate} policyCreate
|
|
3067
|
-
* @param {string} [authorization]
|
|
3068
|
-
* @param {string} [sessionId]
|
|
3069
|
-
* @param {*} [options] Override http request option.
|
|
3070
|
-
* @throws {RequiredError}
|
|
3071
|
-
*/
|
|
3072
|
-
createPolicyV1PoliciesCreatePost(policyCreate, authorization, sessionId, options) {
|
|
3073
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
3074
|
-
var _a, _b, _c;
|
|
3075
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createPolicyV1PoliciesCreatePost(policyCreate, authorization, sessionId, options);
|
|
3076
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3077
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PoliciesApi.createPolicyV1PoliciesCreatePost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3078
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3079
|
-
});
|
|
3080
|
-
},
|
|
3081
|
-
/**
|
|
3082
|
-
*
|
|
3083
|
-
* @summary Delete Policy
|
|
3084
|
-
* @param {string} policyId
|
|
3085
|
-
* @param {string} [authorization]
|
|
3086
|
-
* @param {string} [sessionId]
|
|
3087
|
-
* @param {*} [options] Override http request option.
|
|
3088
|
-
* @throws {RequiredError}
|
|
3089
|
-
*/
|
|
3090
|
-
deletePolicyV1PoliciesPolicyIdDelete(policyId, authorization, sessionId, options) {
|
|
3091
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
3092
|
-
var _a, _b, _c;
|
|
3093
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.deletePolicyV1PoliciesPolicyIdDelete(policyId, authorization, sessionId, options);
|
|
3094
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3095
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PoliciesApi.deletePolicyV1PoliciesPolicyIdDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3096
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3097
|
-
});
|
|
3098
|
-
},
|
|
3099
|
-
/**
|
|
3100
|
-
*
|
|
3101
|
-
* @summary Get Company Policies
|
|
3102
|
-
* @param {string} companyId
|
|
3103
|
-
* @param {number} [page]
|
|
3104
|
-
* @param {number} [elements]
|
|
3105
|
-
* @param {string} [authorization]
|
|
3106
|
-
* @param {string} [sessionId]
|
|
3107
|
-
* @param {*} [options] Override http request option.
|
|
3108
|
-
* @throws {RequiredError}
|
|
3109
|
-
*/
|
|
3110
|
-
getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId, page, elements, authorization, sessionId, options) {
|
|
3111
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
3112
|
-
var _a, _b, _c;
|
|
3113
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId, page, elements, authorization, sessionId, options);
|
|
3114
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3115
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PoliciesApi.getCompanyPoliciesV1PoliciesCompanyCompanyIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3116
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3117
|
-
});
|
|
3118
|
-
},
|
|
3119
|
-
/**
|
|
3120
|
-
*
|
|
3121
|
-
* @summary Get Policy
|
|
3122
|
-
* @param {string} policyId
|
|
3123
|
-
* @param {*} [options] Override http request option.
|
|
3124
|
-
* @throws {RequiredError}
|
|
3125
|
-
*/
|
|
3126
|
-
getPolicyV1PoliciesPolicyIdGet(policyId, options) {
|
|
3127
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
3128
|
-
var _a, _b, _c;
|
|
3129
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPolicyV1PoliciesPolicyIdGet(policyId, options);
|
|
3130
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3131
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PoliciesApi.getPolicyV1PoliciesPolicyIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3132
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3133
|
-
});
|
|
3134
|
-
},
|
|
3135
|
-
/**
|
|
3136
|
-
*
|
|
3137
|
-
* @summary Update Policy
|
|
3138
|
-
* @param {string} policyId
|
|
3139
|
-
* @param {PolicyUpdate} policyUpdate
|
|
3140
|
-
* @param {string} [authorization]
|
|
3141
|
-
* @param {string} [sessionId]
|
|
3142
|
-
* @param {*} [options] Override http request option.
|
|
3143
|
-
* @throws {RequiredError}
|
|
3144
|
-
*/
|
|
3145
|
-
updatePolicyV1PoliciesPolicyIdPut(policyId, policyUpdate, authorization, sessionId, options) {
|
|
3146
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
3147
|
-
var _a, _b, _c;
|
|
3148
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePolicyV1PoliciesPolicyIdPut(policyId, policyUpdate, authorization, sessionId, options);
|
|
3149
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3150
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PoliciesApi.updatePolicyV1PoliciesPolicyIdPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3151
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3152
|
-
});
|
|
3153
|
-
},
|
|
3154
|
-
};
|
|
3155
|
-
};
|
|
3156
|
-
/**
|
|
3157
|
-
* PoliciesApi - factory interface
|
|
3158
|
-
* @export
|
|
3159
|
-
*/
|
|
3160
|
-
export const PoliciesApiFactory = function (configuration, basePath, axios) {
|
|
3161
|
-
const localVarFp = PoliciesApiFp(configuration);
|
|
3162
|
-
return {
|
|
3163
|
-
/**
|
|
3164
|
-
*
|
|
3165
|
-
* @summary Create Policy
|
|
3166
|
-
* @param {PolicyCreate} policyCreate
|
|
3167
|
-
* @param {string} [authorization]
|
|
3168
|
-
* @param {string} [sessionId]
|
|
3169
|
-
* @param {*} [options] Override http request option.
|
|
3170
|
-
* @throws {RequiredError}
|
|
3171
|
-
*/
|
|
3172
|
-
createPolicyV1PoliciesCreatePost(policyCreate, authorization, sessionId, options) {
|
|
3173
|
-
return localVarFp.createPolicyV1PoliciesCreatePost(policyCreate, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
3174
|
-
},
|
|
3175
|
-
/**
|
|
3176
|
-
*
|
|
3177
|
-
* @summary Delete Policy
|
|
3178
|
-
* @param {string} policyId
|
|
3179
|
-
* @param {string} [authorization]
|
|
3180
|
-
* @param {string} [sessionId]
|
|
3181
|
-
* @param {*} [options] Override http request option.
|
|
3182
|
-
* @throws {RequiredError}
|
|
3183
|
-
*/
|
|
3184
|
-
deletePolicyV1PoliciesPolicyIdDelete(policyId, authorization, sessionId, options) {
|
|
3185
|
-
return localVarFp.deletePolicyV1PoliciesPolicyIdDelete(policyId, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
3186
|
-
},
|
|
3187
|
-
/**
|
|
3188
|
-
*
|
|
3189
|
-
* @summary Get Company Policies
|
|
3190
|
-
* @param {string} companyId
|
|
3191
|
-
* @param {number} [page]
|
|
3192
|
-
* @param {number} [elements]
|
|
3193
|
-
* @param {string} [authorization]
|
|
3194
|
-
* @param {string} [sessionId]
|
|
3195
|
-
* @param {*} [options] Override http request option.
|
|
3196
|
-
* @throws {RequiredError}
|
|
3197
|
-
*/
|
|
3198
|
-
getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId, page, elements, authorization, sessionId, options) {
|
|
3199
|
-
return localVarFp.getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId, page, elements, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
3200
|
-
},
|
|
3201
|
-
/**
|
|
3202
|
-
*
|
|
3203
|
-
* @summary Get Policy
|
|
3204
|
-
* @param {string} policyId
|
|
3205
|
-
* @param {*} [options] Override http request option.
|
|
3206
|
-
* @throws {RequiredError}
|
|
3207
|
-
*/
|
|
3208
|
-
getPolicyV1PoliciesPolicyIdGet(policyId, options) {
|
|
3209
|
-
return localVarFp.getPolicyV1PoliciesPolicyIdGet(policyId, options).then((request) => request(axios, basePath));
|
|
3210
|
-
},
|
|
3211
|
-
/**
|
|
3212
|
-
*
|
|
3213
|
-
* @summary Update Policy
|
|
3214
|
-
* @param {string} policyId
|
|
3215
|
-
* @param {PolicyUpdate} policyUpdate
|
|
3216
|
-
* @param {string} [authorization]
|
|
3217
|
-
* @param {string} [sessionId]
|
|
3218
|
-
* @param {*} [options] Override http request option.
|
|
3219
|
-
* @throws {RequiredError}
|
|
3220
|
-
*/
|
|
3221
|
-
updatePolicyV1PoliciesPolicyIdPut(policyId, policyUpdate, authorization, sessionId, options) {
|
|
3222
|
-
return localVarFp.updatePolicyV1PoliciesPolicyIdPut(policyId, policyUpdate, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
3223
|
-
},
|
|
3224
|
-
};
|
|
3225
|
-
};
|
|
3226
|
-
/**
|
|
3227
|
-
* PoliciesApi - object-oriented interface
|
|
3228
|
-
* @export
|
|
3229
|
-
* @class PoliciesApi
|
|
3230
|
-
* @extends {BaseAPI}
|
|
3231
|
-
*/
|
|
3232
|
-
export class PoliciesApi extends BaseAPI {
|
|
3233
|
-
/**
|
|
3234
|
-
*
|
|
3235
|
-
* @summary Create Policy
|
|
3236
|
-
* @param {PolicyCreate} policyCreate
|
|
3237
|
-
* @param {string} [authorization]
|
|
3238
|
-
* @param {string} [sessionId]
|
|
3239
|
-
* @param {*} [options] Override http request option.
|
|
3240
|
-
* @throws {RequiredError}
|
|
3241
|
-
* @memberof PoliciesApi
|
|
3242
|
-
*/
|
|
3243
|
-
createPolicyV1PoliciesCreatePost(policyCreate, authorization, sessionId, options) {
|
|
3244
|
-
return PoliciesApiFp(this.configuration).createPolicyV1PoliciesCreatePost(policyCreate, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
3245
|
-
}
|
|
3246
|
-
/**
|
|
3247
|
-
*
|
|
3248
|
-
* @summary Delete Policy
|
|
3249
|
-
* @param {string} policyId
|
|
3250
|
-
* @param {string} [authorization]
|
|
3251
|
-
* @param {string} [sessionId]
|
|
3252
|
-
* @param {*} [options] Override http request option.
|
|
3253
|
-
* @throws {RequiredError}
|
|
3254
|
-
* @memberof PoliciesApi
|
|
3255
|
-
*/
|
|
3256
|
-
deletePolicyV1PoliciesPolicyIdDelete(policyId, authorization, sessionId, options) {
|
|
3257
|
-
return PoliciesApiFp(this.configuration).deletePolicyV1PoliciesPolicyIdDelete(policyId, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
3258
|
-
}
|
|
3259
|
-
/**
|
|
3260
|
-
*
|
|
3261
|
-
* @summary Get Company Policies
|
|
3262
|
-
* @param {string} companyId
|
|
3263
|
-
* @param {number} [page]
|
|
3264
|
-
* @param {number} [elements]
|
|
3265
|
-
* @param {string} [authorization]
|
|
3266
|
-
* @param {string} [sessionId]
|
|
3267
|
-
* @param {*} [options] Override http request option.
|
|
3268
|
-
* @throws {RequiredError}
|
|
3269
|
-
* @memberof PoliciesApi
|
|
3270
|
-
*/
|
|
3271
|
-
getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId, page, elements, authorization, sessionId, options) {
|
|
3272
|
-
return PoliciesApiFp(this.configuration).getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId, page, elements, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
3273
|
-
}
|
|
3274
|
-
/**
|
|
3275
|
-
*
|
|
3276
|
-
* @summary Get Policy
|
|
3277
|
-
* @param {string} policyId
|
|
3278
|
-
* @param {*} [options] Override http request option.
|
|
3279
|
-
* @throws {RequiredError}
|
|
3280
|
-
* @memberof PoliciesApi
|
|
3281
|
-
*/
|
|
3282
|
-
getPolicyV1PoliciesPolicyIdGet(policyId, options) {
|
|
3283
|
-
return PoliciesApiFp(this.configuration).getPolicyV1PoliciesPolicyIdGet(policyId, options).then((request) => request(this.axios, this.basePath));
|
|
3284
|
-
}
|
|
3285
|
-
/**
|
|
3286
|
-
*
|
|
3287
|
-
* @summary Update Policy
|
|
3288
|
-
* @param {string} policyId
|
|
3289
|
-
* @param {PolicyUpdate} policyUpdate
|
|
3290
|
-
* @param {string} [authorization]
|
|
3291
|
-
* @param {string} [sessionId]
|
|
3292
|
-
* @param {*} [options] Override http request option.
|
|
3293
|
-
* @throws {RequiredError}
|
|
3294
|
-
* @memberof PoliciesApi
|
|
3295
|
-
*/
|
|
3296
|
-
updatePolicyV1PoliciesPolicyIdPut(policyId, policyUpdate, authorization, sessionId, options) {
|
|
3297
|
-
return PoliciesApiFp(this.configuration).updatePolicyV1PoliciesPolicyIdPut(policyId, policyUpdate, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
3298
|
-
}
|
|
3299
|
-
}
|
|
3300
2877
|
/**
|
|
3301
2878
|
* ReportsApi - axios parameter creator
|
|
3302
2879
|
* @export
|
|
@@ -3341,20 +2918,17 @@ export const ReportsApiAxiosParamCreator = function (configuration) {
|
|
|
3341
2918
|
*
|
|
3342
2919
|
* @summary Generate Report
|
|
3343
2920
|
* @param {string} companyId
|
|
3344
|
-
* @param {
|
|
3345
|
-
* @param {{ [key: string]: any; }} requestBody
|
|
2921
|
+
* @param {ReportType} reportType
|
|
3346
2922
|
* @param {string} [authorization]
|
|
3347
2923
|
* @param {string} [sessionId]
|
|
3348
2924
|
* @param {*} [options] Override http request option.
|
|
3349
2925
|
* @throws {RequiredError}
|
|
3350
2926
|
*/
|
|
3351
|
-
generateReportV1ReportsGeneratePost: (companyId_1, reportType_1,
|
|
2927
|
+
generateReportV1ReportsGeneratePost: (companyId_1, reportType_1, authorization_1, sessionId_1, ...args_1) => __awaiter(this, [companyId_1, reportType_1, authorization_1, sessionId_1, ...args_1], void 0, function* (companyId, reportType, authorization, sessionId, options = {}) {
|
|
3352
2928
|
// verify required parameter 'companyId' is not null or undefined
|
|
3353
2929
|
assertParamExists('generateReportV1ReportsGeneratePost', 'companyId', companyId);
|
|
3354
2930
|
// verify required parameter 'reportType' is not null or undefined
|
|
3355
2931
|
assertParamExists('generateReportV1ReportsGeneratePost', 'reportType', reportType);
|
|
3356
|
-
// verify required parameter 'requestBody' is not null or undefined
|
|
3357
|
-
assertParamExists('generateReportV1ReportsGeneratePost', 'requestBody', requestBody);
|
|
3358
2932
|
const localVarPath = `/v1/reports/generate`;
|
|
3359
2933
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3360
2934
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -3371,14 +2945,12 @@ export const ReportsApiAxiosParamCreator = function (configuration) {
|
|
|
3371
2945
|
if (reportType !== undefined) {
|
|
3372
2946
|
localVarQueryParameter['report_type'] = reportType;
|
|
3373
2947
|
}
|
|
3374
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3375
2948
|
if (authorization != null) {
|
|
3376
2949
|
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
3377
2950
|
}
|
|
3378
2951
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3379
2952
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3380
2953
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3381
|
-
localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration);
|
|
3382
2954
|
return {
|
|
3383
2955
|
url: toPathString(localVarUrlObj),
|
|
3384
2956
|
options: localVarRequestOptions,
|
|
@@ -3495,17 +3067,16 @@ export const ReportsApiFp = function (configuration) {
|
|
|
3495
3067
|
*
|
|
3496
3068
|
* @summary Generate Report
|
|
3497
3069
|
* @param {string} companyId
|
|
3498
|
-
* @param {
|
|
3499
|
-
* @param {{ [key: string]: any; }} requestBody
|
|
3070
|
+
* @param {ReportType} reportType
|
|
3500
3071
|
* @param {string} [authorization]
|
|
3501
3072
|
* @param {string} [sessionId]
|
|
3502
3073
|
* @param {*} [options] Override http request option.
|
|
3503
3074
|
* @throws {RequiredError}
|
|
3504
3075
|
*/
|
|
3505
|
-
generateReportV1ReportsGeneratePost(companyId, reportType,
|
|
3076
|
+
generateReportV1ReportsGeneratePost(companyId, reportType, authorization, sessionId, options) {
|
|
3506
3077
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3507
3078
|
var _a, _b, _c;
|
|
3508
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.generateReportV1ReportsGeneratePost(companyId, reportType,
|
|
3079
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.generateReportV1ReportsGeneratePost(companyId, reportType, authorization, sessionId, options);
|
|
3509
3080
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3510
3081
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ReportsApi.generateReportV1ReportsGeneratePost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3511
3082
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -3575,15 +3146,14 @@ export const ReportsApiFactory = function (configuration, basePath, axios) {
|
|
|
3575
3146
|
*
|
|
3576
3147
|
* @summary Generate Report
|
|
3577
3148
|
* @param {string} companyId
|
|
3578
|
-
* @param {
|
|
3579
|
-
* @param {{ [key: string]: any; }} requestBody
|
|
3149
|
+
* @param {ReportType} reportType
|
|
3580
3150
|
* @param {string} [authorization]
|
|
3581
3151
|
* @param {string} [sessionId]
|
|
3582
3152
|
* @param {*} [options] Override http request option.
|
|
3583
3153
|
* @throws {RequiredError}
|
|
3584
3154
|
*/
|
|
3585
|
-
generateReportV1ReportsGeneratePost(companyId, reportType,
|
|
3586
|
-
return localVarFp.generateReportV1ReportsGeneratePost(companyId, reportType,
|
|
3155
|
+
generateReportV1ReportsGeneratePost(companyId, reportType, authorization, sessionId, options) {
|
|
3156
|
+
return localVarFp.generateReportV1ReportsGeneratePost(companyId, reportType, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
3587
3157
|
},
|
|
3588
3158
|
/**
|
|
3589
3159
|
*
|
|
@@ -3638,16 +3208,15 @@ export class ReportsApi extends BaseAPI {
|
|
|
3638
3208
|
*
|
|
3639
3209
|
* @summary Generate Report
|
|
3640
3210
|
* @param {string} companyId
|
|
3641
|
-
* @param {
|
|
3642
|
-
* @param {{ [key: string]: any; }} requestBody
|
|
3211
|
+
* @param {ReportType} reportType
|
|
3643
3212
|
* @param {string} [authorization]
|
|
3644
3213
|
* @param {string} [sessionId]
|
|
3645
3214
|
* @param {*} [options] Override http request option.
|
|
3646
3215
|
* @throws {RequiredError}
|
|
3647
3216
|
* @memberof ReportsApi
|
|
3648
3217
|
*/
|
|
3649
|
-
generateReportV1ReportsGeneratePost(companyId, reportType,
|
|
3650
|
-
return ReportsApiFp(this.configuration).generateReportV1ReportsGeneratePost(companyId, reportType,
|
|
3218
|
+
generateReportV1ReportsGeneratePost(companyId, reportType, authorization, sessionId, options) {
|
|
3219
|
+
return ReportsApiFp(this.configuration).generateReportV1ReportsGeneratePost(companyId, reportType, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
3651
3220
|
}
|
|
3652
3221
|
/**
|
|
3653
3222
|
*
|
package/dist/sdk.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HealthApi, AuthApi, CompanyApi, ControlsApi, AuditLogsApi, EvidenceApi, PaymentsApi,
|
|
1
|
+
import { HealthApi, AuthApi, CompanyApi, ControlsApi, AuditLogsApi, EvidenceApi, PaymentsApi, RolesApi, ReportsApi, TasksApi, UserApi } from './api';
|
|
2
2
|
export declare class ApiSDK {
|
|
3
3
|
private helthApi;
|
|
4
4
|
private authApi;
|
|
@@ -9,7 +9,6 @@ export declare class ApiSDK {
|
|
|
9
9
|
private reportsApi;
|
|
10
10
|
private evidenceApi;
|
|
11
11
|
private paymentsApi;
|
|
12
|
-
private policiesApi;
|
|
13
12
|
private rolesApi;
|
|
14
13
|
private userApi;
|
|
15
14
|
private token;
|
|
@@ -27,7 +26,6 @@ export declare class ApiSDK {
|
|
|
27
26
|
auditLogsApi: AuditLogsApi;
|
|
28
27
|
evidenceApi: EvidenceApi;
|
|
29
28
|
paymentsApi: PaymentsApi;
|
|
30
|
-
policiesApi: PoliciesApi;
|
|
31
29
|
reportsApi: ReportsApi;
|
|
32
30
|
rolesApi: RolesApi;
|
|
33
31
|
userApi: UserApi;
|
package/dist/sdk.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import axios from 'axios';
|
|
2
|
-
import { HealthApi, AuthApi, CompanyApi, ControlsApi, AuditLogsApi, EvidenceApi, PaymentsApi,
|
|
2
|
+
import { HealthApi, AuthApi, CompanyApi, ControlsApi, AuditLogsApi, EvidenceApi, PaymentsApi, RolesApi, ReportsApi, TasksApi, UserApi } from './api';
|
|
3
3
|
import { Configuration } from './configuration';
|
|
4
4
|
export class ApiSDK {
|
|
5
5
|
constructor(basePath) {
|
|
@@ -24,7 +24,6 @@ export class ApiSDK {
|
|
|
24
24
|
this.auditLogsApi = new AuditLogsApi(config, undefined, this.axiosInstance);
|
|
25
25
|
this.evidenceApi = new EvidenceApi(config, undefined, this.axiosInstance);
|
|
26
26
|
this.paymentsApi = new PaymentsApi(config, undefined, this.axiosInstance);
|
|
27
|
-
this.policiesApi = new PoliciesApi(config, undefined, this.axiosInstance);
|
|
28
27
|
this.reportsApi = new ReportsApi(config, undefined, this.axiosInstance);
|
|
29
28
|
this.rolesApi = new RolesApi(config, undefined, this.axiosInstance);
|
|
30
29
|
this.userApi = new UserApi(config, undefined, this.axiosInstance);
|
|
@@ -70,7 +69,6 @@ export class ApiSDK {
|
|
|
70
69
|
auditLogsApi: this.auditLogsApi,
|
|
71
70
|
evidenceApi: this.evidenceApi,
|
|
72
71
|
paymentsApi: this.paymentsApi,
|
|
73
|
-
policiesApi: this.policiesApi,
|
|
74
72
|
reportsApi: this.reportsApi,
|
|
75
73
|
rolesApi: this.rolesApi,
|
|
76
74
|
userApi: this.userApi,
|
package/docs/AuditLogEntity.md
CHANGED
package/docs/ReportBase.md
CHANGED
|
@@ -11,7 +11,6 @@ Name | Type | Description | Notes
|
|
|
11
11
|
**share_expiration** | **string** | | [optional] [default to undefined]
|
|
12
12
|
**status** | **string** | | [default to undefined]
|
|
13
13
|
**created_at** | **string** | | [default to undefined]
|
|
14
|
-
**updated_at** | **string** | | [default to undefined]
|
|
15
14
|
|
|
16
15
|
## Example
|
|
17
16
|
|
|
@@ -25,7 +24,6 @@ const instance: ReportBase = {
|
|
|
25
24
|
share_expiration,
|
|
26
25
|
status,
|
|
27
26
|
created_at,
|
|
28
|
-
updated_at,
|
|
29
27
|
};
|
|
30
28
|
```
|
|
31
29
|
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# ReportType
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Enum
|
|
5
|
+
|
|
6
|
+
* `AuditReady` (value: `'audit_ready'`)
|
|
7
|
+
|
|
8
|
+
* `GapAnalysis` (value: `'gap_analysis'`)
|
|
9
|
+
|
|
10
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|