@rasadov/lumoar-sdk 1.0.1
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 +60 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/api.ts +5133 -0
- package/base.ts +86 -0
- package/common.ts +150 -0
- package/configuration.ts +228 -0
- package/dist/api.d.ts +3329 -0
- package/dist/api.js +3498 -0
- package/dist/base.d.ts +66 -0
- package/dist/base.js +60 -0
- package/dist/common.d.ts +65 -0
- package/dist/common.js +149 -0
- package/dist/configuration.d.ts +125 -0
- package/dist/configuration.js +124 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +15 -0
- package/docs/AuthApi.md +560 -0
- package/docs/AuthenticationSuccess.md +25 -0
- package/docs/CheckoutSessionResponse.md +22 -0
- package/docs/CompanyApi.md +363 -0
- package/docs/CompanyCreate.md +44 -0
- package/docs/CompanyInDBBase.md +48 -0
- package/docs/CompanyUpdate.md +42 -0
- package/docs/CompanyWithControls.md +50 -0
- package/docs/CompanyWithRoles.md +50 -0
- package/docs/ComplianceGoal.md +8 -0
- package/docs/ControlStatus.md +18 -0
- package/docs/ControlWithEvidences.md +30 -0
- package/docs/ControlWithRelationships.md +32 -0
- package/docs/ControlsApi.md +124 -0
- package/docs/CustomerDoesNotExist.md +20 -0
- package/docs/CustomerPortalSession.md +20 -0
- package/docs/DefaultApi.md +183 -0
- package/docs/Details.md +20 -0
- package/docs/EvidenceApi.md +309 -0
- package/docs/EvidenceBase.md +40 -0
- package/docs/EvidenceFileSchema.md +32 -0
- package/docs/EvidenceTextSchema.md +24 -0
- package/docs/FileDownload.md +26 -0
- package/docs/FrameworkControlsBase.md +26 -0
- package/docs/GetControl.md +22 -0
- package/docs/HTTPValidationError.md +20 -0
- package/docs/InviteToCompany.md +24 -0
- package/docs/LoginSchema.md +25 -0
- package/docs/PaymentsApi.md +164 -0
- package/docs/PermissionType.md +14 -0
- package/docs/PoliciesApi.md +302 -0
- package/docs/PolicyCreate.md +26 -0
- package/docs/PolicyRead.md +32 -0
- package/docs/PolicyUpdate.md +24 -0
- package/docs/RegisterSchema.md +31 -0
- package/docs/RemoveFromCompany.md +22 -0
- package/docs/ResponseGetCheckoutSessionPaymentsCheckoutGet.md +24 -0
- package/docs/ResponseGetCustomerManagementSessionPaymentsCustomerManagementGet.md +22 -0
- package/docs/RolesApi.md +127 -0
- package/docs/RolesWithUser.md +22 -0
- package/docs/UpdateControlSchema.md +24 -0
- package/docs/UpdatePassword.md +22 -0
- package/docs/UserApi.md +280 -0
- package/docs/UserBase.md +24 -0
- package/docs/UserInDBBase.md +30 -0
- package/docs/UserPermissionsWithCompany.md +22 -0
- package/docs/UserRole.md +20 -0
- package/docs/UserUpdate.md +24 -0
- package/docs/UserWithRelations.md +28 -0
- package/docs/ValidationError.md +24 -0
- package/docs/ValidationErrorLocInner.md +18 -0
- package/git_push.sh +57 -0
- package/index.ts +18 -0
- package/openapitools.json +7 -0
- package/package.json +33 -0
- package/tsconfig.json +14 -0
package/dist/api.js
ADDED
|
@@ -0,0 +1,3498 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Lumoar API
|
|
5
|
+
* Compliance as a service
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
import globalAxios from 'axios';
|
|
24
|
+
// Some imports not used depending on template conditions
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { DUMMY_BASE_URL, assertParamExists, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { BASE_PATH, BaseAPI, operationServerMap } from './base';
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @export
|
|
32
|
+
* @enum {string}
|
|
33
|
+
*/
|
|
34
|
+
export const ComplianceGoal = {
|
|
35
|
+
Soc2: 'SOC2'
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @export
|
|
40
|
+
* @enum {string}
|
|
41
|
+
*/
|
|
42
|
+
export const ControlStatus = {
|
|
43
|
+
NotStarted: 'not_started',
|
|
44
|
+
InProgress: 'in_progress',
|
|
45
|
+
Completed: 'completed',
|
|
46
|
+
Failed: 'failed',
|
|
47
|
+
Skipped: 'skipped',
|
|
48
|
+
PendingReview: 'pending_review'
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @export
|
|
53
|
+
* @enum {string}
|
|
54
|
+
*/
|
|
55
|
+
export const PermissionType = {
|
|
56
|
+
Owner: 'owner',
|
|
57
|
+
Admin: 'admin',
|
|
58
|
+
Member: 'member',
|
|
59
|
+
Auditor: 'auditor'
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* AuthApi - axios parameter creator
|
|
63
|
+
* @export
|
|
64
|
+
*/
|
|
65
|
+
export const AuthApiAxiosParamCreator = function (configuration) {
|
|
66
|
+
return {
|
|
67
|
+
/**
|
|
68
|
+
* Delete user session
|
|
69
|
+
* @summary Delete Session
|
|
70
|
+
* @param {string | null} [sessionIdToDelete]
|
|
71
|
+
* @param {string | null} [sessionId]
|
|
72
|
+
* @param {*} [options] Override http request option.
|
|
73
|
+
* @throws {RequiredError}
|
|
74
|
+
*/
|
|
75
|
+
deleteSessionV1AuthSessionDelete: (sessionIdToDelete_1, sessionId_1, ...args_1) => __awaiter(this, [sessionIdToDelete_1, sessionId_1, ...args_1], void 0, function* (sessionIdToDelete, sessionId, options = {}) {
|
|
76
|
+
const localVarPath = `/v1/auth/session`;
|
|
77
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
78
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
79
|
+
let baseOptions;
|
|
80
|
+
if (configuration) {
|
|
81
|
+
baseOptions = configuration.baseOptions;
|
|
82
|
+
}
|
|
83
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
84
|
+
const localVarHeaderParameter = {};
|
|
85
|
+
const localVarQueryParameter = {};
|
|
86
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
87
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
88
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
89
|
+
return {
|
|
90
|
+
url: toPathString(localVarUrlObj),
|
|
91
|
+
options: localVarRequestOptions,
|
|
92
|
+
};
|
|
93
|
+
}),
|
|
94
|
+
/**
|
|
95
|
+
* Delete user sessions
|
|
96
|
+
* @summary Delete Sessions
|
|
97
|
+
* @param {string | null} [sessionId]
|
|
98
|
+
* @param {*} [options] Override http request option.
|
|
99
|
+
* @throws {RequiredError}
|
|
100
|
+
*/
|
|
101
|
+
deleteSessionsV1AuthSessionsDelete: (sessionId_1, ...args_1) => __awaiter(this, [sessionId_1, ...args_1], void 0, function* (sessionId, options = {}) {
|
|
102
|
+
const localVarPath = `/v1/auth/sessions`;
|
|
103
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
104
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
105
|
+
let baseOptions;
|
|
106
|
+
if (configuration) {
|
|
107
|
+
baseOptions = configuration.baseOptions;
|
|
108
|
+
}
|
|
109
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
110
|
+
const localVarHeaderParameter = {};
|
|
111
|
+
const localVarQueryParameter = {};
|
|
112
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
113
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
114
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
115
|
+
return {
|
|
116
|
+
url: toPathString(localVarUrlObj),
|
|
117
|
+
options: localVarRequestOptions,
|
|
118
|
+
};
|
|
119
|
+
}),
|
|
120
|
+
/**
|
|
121
|
+
* Get user sessions
|
|
122
|
+
* @summary Get Sessions
|
|
123
|
+
* @param {string | null} [sessionId]
|
|
124
|
+
* @param {*} [options] Override http request option.
|
|
125
|
+
* @throws {RequiredError}
|
|
126
|
+
*/
|
|
127
|
+
getSessionsV1AuthSessionsGet: (sessionId_1, ...args_1) => __awaiter(this, [sessionId_1, ...args_1], void 0, function* (sessionId, options = {}) {
|
|
128
|
+
const localVarPath = `/v1/auth/sessions`;
|
|
129
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
130
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
131
|
+
let baseOptions;
|
|
132
|
+
if (configuration) {
|
|
133
|
+
baseOptions = configuration.baseOptions;
|
|
134
|
+
}
|
|
135
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
136
|
+
const localVarHeaderParameter = {};
|
|
137
|
+
const localVarQueryParameter = {};
|
|
138
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
139
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
140
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
141
|
+
return {
|
|
142
|
+
url: toPathString(localVarUrlObj),
|
|
143
|
+
options: localVarRequestOptions,
|
|
144
|
+
};
|
|
145
|
+
}),
|
|
146
|
+
/**
|
|
147
|
+
* Handles the callback from GitHub OAuth.
|
|
148
|
+
* @summary Github Callback
|
|
149
|
+
* @param {string} code
|
|
150
|
+
* @param {string | null} [userAgent]
|
|
151
|
+
* @param {string | null} [cFConnectingIP]
|
|
152
|
+
* @param {string | null} [cFIPCountry]
|
|
153
|
+
* @param {*} [options] Override http request option.
|
|
154
|
+
* @throws {RequiredError}
|
|
155
|
+
*/
|
|
156
|
+
githubCallbackV1AuthGithubCallbackPost: (code_1, userAgent_1, cFConnectingIP_1, cFIPCountry_1, ...args_1) => __awaiter(this, [code_1, userAgent_1, cFConnectingIP_1, cFIPCountry_1, ...args_1], void 0, function* (code, userAgent, cFConnectingIP, cFIPCountry, options = {}) {
|
|
157
|
+
// verify required parameter 'code' is not null or undefined
|
|
158
|
+
assertParamExists('githubCallbackV1AuthGithubCallbackPost', 'code', code);
|
|
159
|
+
const localVarPath = `/v1/auth/github/callback`;
|
|
160
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
161
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
162
|
+
let baseOptions;
|
|
163
|
+
if (configuration) {
|
|
164
|
+
baseOptions = configuration.baseOptions;
|
|
165
|
+
}
|
|
166
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
167
|
+
const localVarHeaderParameter = {};
|
|
168
|
+
const localVarQueryParameter = {};
|
|
169
|
+
if (code !== undefined) {
|
|
170
|
+
localVarQueryParameter['code'] = code;
|
|
171
|
+
}
|
|
172
|
+
if (userAgent != null) {
|
|
173
|
+
localVarHeaderParameter['User-Agent'] = String(userAgent);
|
|
174
|
+
}
|
|
175
|
+
if (cFConnectingIP != null) {
|
|
176
|
+
localVarHeaderParameter['CF-Connecting-IP'] = String(cFConnectingIP);
|
|
177
|
+
}
|
|
178
|
+
if (cFIPCountry != null) {
|
|
179
|
+
localVarHeaderParameter['CF-IPCountry'] = String(cFIPCountry);
|
|
180
|
+
}
|
|
181
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
182
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
183
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
184
|
+
return {
|
|
185
|
+
url: toPathString(localVarUrlObj),
|
|
186
|
+
options: localVarRequestOptions,
|
|
187
|
+
};
|
|
188
|
+
}),
|
|
189
|
+
/**
|
|
190
|
+
* Redirects to GitHub\'s OAuth consent screen.
|
|
191
|
+
* @summary Github Login
|
|
192
|
+
* @param {*} [options] Override http request option.
|
|
193
|
+
* @throws {RequiredError}
|
|
194
|
+
*/
|
|
195
|
+
githubLoginV1AuthGithubLoginGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
196
|
+
const localVarPath = `/v1/auth/github/login`;
|
|
197
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
198
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
199
|
+
let baseOptions;
|
|
200
|
+
if (configuration) {
|
|
201
|
+
baseOptions = configuration.baseOptions;
|
|
202
|
+
}
|
|
203
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
204
|
+
const localVarHeaderParameter = {};
|
|
205
|
+
const localVarQueryParameter = {};
|
|
206
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
207
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
208
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
209
|
+
return {
|
|
210
|
+
url: toPathString(localVarUrlObj),
|
|
211
|
+
options: localVarRequestOptions,
|
|
212
|
+
};
|
|
213
|
+
}),
|
|
214
|
+
/**
|
|
215
|
+
* Handles the callback from Google OAuth.
|
|
216
|
+
* @summary Google Callback
|
|
217
|
+
* @param {string} code
|
|
218
|
+
* @param {string | null} [userAgent]
|
|
219
|
+
* @param {string | null} [cFConnectingIP]
|
|
220
|
+
* @param {string | null} [cFIPCountry]
|
|
221
|
+
* @param {*} [options] Override http request option.
|
|
222
|
+
* @throws {RequiredError}
|
|
223
|
+
*/
|
|
224
|
+
googleCallbackV1AuthGoogleCallbackPost: (code_1, userAgent_1, cFConnectingIP_1, cFIPCountry_1, ...args_1) => __awaiter(this, [code_1, userAgent_1, cFConnectingIP_1, cFIPCountry_1, ...args_1], void 0, function* (code, userAgent, cFConnectingIP, cFIPCountry, options = {}) {
|
|
225
|
+
// verify required parameter 'code' is not null or undefined
|
|
226
|
+
assertParamExists('googleCallbackV1AuthGoogleCallbackPost', 'code', code);
|
|
227
|
+
const localVarPath = `/v1/auth/google/callback`;
|
|
228
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
229
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
230
|
+
let baseOptions;
|
|
231
|
+
if (configuration) {
|
|
232
|
+
baseOptions = configuration.baseOptions;
|
|
233
|
+
}
|
|
234
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
235
|
+
const localVarHeaderParameter = {};
|
|
236
|
+
const localVarQueryParameter = {};
|
|
237
|
+
if (code !== undefined) {
|
|
238
|
+
localVarQueryParameter['code'] = code;
|
|
239
|
+
}
|
|
240
|
+
if (userAgent != null) {
|
|
241
|
+
localVarHeaderParameter['User-Agent'] = String(userAgent);
|
|
242
|
+
}
|
|
243
|
+
if (cFConnectingIP != null) {
|
|
244
|
+
localVarHeaderParameter['CF-Connecting-IP'] = String(cFConnectingIP);
|
|
245
|
+
}
|
|
246
|
+
if (cFIPCountry != null) {
|
|
247
|
+
localVarHeaderParameter['CF-IPCountry'] = String(cFIPCountry);
|
|
248
|
+
}
|
|
249
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
250
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
251
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
252
|
+
return {
|
|
253
|
+
url: toPathString(localVarUrlObj),
|
|
254
|
+
options: localVarRequestOptions,
|
|
255
|
+
};
|
|
256
|
+
}),
|
|
257
|
+
/**
|
|
258
|
+
* Redirects to Google\'s OAuth consent screen.
|
|
259
|
+
* @summary Google Login
|
|
260
|
+
* @param {*} [options] Override http request option.
|
|
261
|
+
* @throws {RequiredError}
|
|
262
|
+
*/
|
|
263
|
+
googleLoginV1AuthGoogleLoginGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
264
|
+
const localVarPath = `/v1/auth/google/login`;
|
|
265
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
266
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
267
|
+
let baseOptions;
|
|
268
|
+
if (configuration) {
|
|
269
|
+
baseOptions = configuration.baseOptions;
|
|
270
|
+
}
|
|
271
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
272
|
+
const localVarHeaderParameter = {};
|
|
273
|
+
const localVarQueryParameter = {};
|
|
274
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
275
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
276
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
277
|
+
return {
|
|
278
|
+
url: toPathString(localVarUrlObj),
|
|
279
|
+
options: localVarRequestOptions,
|
|
280
|
+
};
|
|
281
|
+
}),
|
|
282
|
+
/**
|
|
283
|
+
*
|
|
284
|
+
* @summary Login
|
|
285
|
+
* @param {LoginSchema} loginSchema
|
|
286
|
+
* @param {string | null} [userAgent]
|
|
287
|
+
* @param {string | null} [cFConnectingIP]
|
|
288
|
+
* @param {string | null} [cFIPCountry]
|
|
289
|
+
* @param {*} [options] Override http request option.
|
|
290
|
+
* @throws {RequiredError}
|
|
291
|
+
*/
|
|
292
|
+
loginV1AuthLoginPost: (loginSchema_1, userAgent_1, cFConnectingIP_1, cFIPCountry_1, ...args_1) => __awaiter(this, [loginSchema_1, userAgent_1, cFConnectingIP_1, cFIPCountry_1, ...args_1], void 0, function* (loginSchema, userAgent, cFConnectingIP, cFIPCountry, options = {}) {
|
|
293
|
+
// verify required parameter 'loginSchema' is not null or undefined
|
|
294
|
+
assertParamExists('loginV1AuthLoginPost', 'loginSchema', loginSchema);
|
|
295
|
+
const localVarPath = `/v1/auth/login`;
|
|
296
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
297
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
298
|
+
let baseOptions;
|
|
299
|
+
if (configuration) {
|
|
300
|
+
baseOptions = configuration.baseOptions;
|
|
301
|
+
}
|
|
302
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
303
|
+
const localVarHeaderParameter = {};
|
|
304
|
+
const localVarQueryParameter = {};
|
|
305
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
306
|
+
if (userAgent != null) {
|
|
307
|
+
localVarHeaderParameter['User-Agent'] = String(userAgent);
|
|
308
|
+
}
|
|
309
|
+
if (cFConnectingIP != null) {
|
|
310
|
+
localVarHeaderParameter['CF-Connecting-IP'] = String(cFConnectingIP);
|
|
311
|
+
}
|
|
312
|
+
if (cFIPCountry != null) {
|
|
313
|
+
localVarHeaderParameter['CF-IPCountry'] = String(cFIPCountry);
|
|
314
|
+
}
|
|
315
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
316
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
317
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
318
|
+
localVarRequestOptions.data = serializeDataIfNeeded(loginSchema, localVarRequestOptions, configuration);
|
|
319
|
+
return {
|
|
320
|
+
url: toPathString(localVarUrlObj),
|
|
321
|
+
options: localVarRequestOptions,
|
|
322
|
+
};
|
|
323
|
+
}),
|
|
324
|
+
/**
|
|
325
|
+
* Logout user
|
|
326
|
+
* @summary Logout
|
|
327
|
+
* @param {string | null} [sessionId]
|
|
328
|
+
* @param {*} [options] Override http request option.
|
|
329
|
+
* @throws {RequiredError}
|
|
330
|
+
*/
|
|
331
|
+
logoutV1AuthLogoutPost: (sessionId_1, ...args_1) => __awaiter(this, [sessionId_1, ...args_1], void 0, function* (sessionId, options = {}) {
|
|
332
|
+
const localVarPath = `/v1/auth/logout`;
|
|
333
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
334
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
335
|
+
let baseOptions;
|
|
336
|
+
if (configuration) {
|
|
337
|
+
baseOptions = configuration.baseOptions;
|
|
338
|
+
}
|
|
339
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
340
|
+
const localVarHeaderParameter = {};
|
|
341
|
+
const localVarQueryParameter = {};
|
|
342
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
343
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
344
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
345
|
+
return {
|
|
346
|
+
url: toPathString(localVarUrlObj),
|
|
347
|
+
options: localVarRequestOptions,
|
|
348
|
+
};
|
|
349
|
+
}),
|
|
350
|
+
/**
|
|
351
|
+
*
|
|
352
|
+
* @summary Register
|
|
353
|
+
* @param {RegisterSchema} registerSchema
|
|
354
|
+
* @param {string | null} [userAgent]
|
|
355
|
+
* @param {string | null} [cFConnectingIP]
|
|
356
|
+
* @param {string | null} [cFIPCountry]
|
|
357
|
+
* @param {*} [options] Override http request option.
|
|
358
|
+
* @throws {RequiredError}
|
|
359
|
+
*/
|
|
360
|
+
registerV1AuthRegisterPost: (registerSchema_1, userAgent_1, cFConnectingIP_1, cFIPCountry_1, ...args_1) => __awaiter(this, [registerSchema_1, userAgent_1, cFConnectingIP_1, cFIPCountry_1, ...args_1], void 0, function* (registerSchema, userAgent, cFConnectingIP, cFIPCountry, options = {}) {
|
|
361
|
+
// verify required parameter 'registerSchema' is not null or undefined
|
|
362
|
+
assertParamExists('registerV1AuthRegisterPost', 'registerSchema', registerSchema);
|
|
363
|
+
const localVarPath = `/v1/auth/register`;
|
|
364
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
365
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
366
|
+
let baseOptions;
|
|
367
|
+
if (configuration) {
|
|
368
|
+
baseOptions = configuration.baseOptions;
|
|
369
|
+
}
|
|
370
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
371
|
+
const localVarHeaderParameter = {};
|
|
372
|
+
const localVarQueryParameter = {};
|
|
373
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
374
|
+
if (userAgent != null) {
|
|
375
|
+
localVarHeaderParameter['User-Agent'] = String(userAgent);
|
|
376
|
+
}
|
|
377
|
+
if (cFConnectingIP != null) {
|
|
378
|
+
localVarHeaderParameter['CF-Connecting-IP'] = String(cFConnectingIP);
|
|
379
|
+
}
|
|
380
|
+
if (cFIPCountry != null) {
|
|
381
|
+
localVarHeaderParameter['CF-IPCountry'] = String(cFIPCountry);
|
|
382
|
+
}
|
|
383
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
384
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
385
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
386
|
+
localVarRequestOptions.data = serializeDataIfNeeded(registerSchema, localVarRequestOptions, configuration);
|
|
387
|
+
return {
|
|
388
|
+
url: toPathString(localVarUrlObj),
|
|
389
|
+
options: localVarRequestOptions,
|
|
390
|
+
};
|
|
391
|
+
}),
|
|
392
|
+
};
|
|
393
|
+
};
|
|
394
|
+
/**
|
|
395
|
+
* AuthApi - functional programming interface
|
|
396
|
+
* @export
|
|
397
|
+
*/
|
|
398
|
+
export const AuthApiFp = function (configuration) {
|
|
399
|
+
const localVarAxiosParamCreator = AuthApiAxiosParamCreator(configuration);
|
|
400
|
+
return {
|
|
401
|
+
/**
|
|
402
|
+
* Delete user session
|
|
403
|
+
* @summary Delete Session
|
|
404
|
+
* @param {string | null} [sessionIdToDelete]
|
|
405
|
+
* @param {string | null} [sessionId]
|
|
406
|
+
* @param {*} [options] Override http request option.
|
|
407
|
+
* @throws {RequiredError}
|
|
408
|
+
*/
|
|
409
|
+
deleteSessionV1AuthSessionDelete(sessionIdToDelete, sessionId, options) {
|
|
410
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
411
|
+
var _a, _b, _c;
|
|
412
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteSessionV1AuthSessionDelete(sessionIdToDelete, sessionId, options);
|
|
413
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
414
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AuthApi.deleteSessionV1AuthSessionDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
415
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
416
|
+
});
|
|
417
|
+
},
|
|
418
|
+
/**
|
|
419
|
+
* Delete user sessions
|
|
420
|
+
* @summary Delete Sessions
|
|
421
|
+
* @param {string | null} [sessionId]
|
|
422
|
+
* @param {*} [options] Override http request option.
|
|
423
|
+
* @throws {RequiredError}
|
|
424
|
+
*/
|
|
425
|
+
deleteSessionsV1AuthSessionsDelete(sessionId, options) {
|
|
426
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
427
|
+
var _a, _b, _c;
|
|
428
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteSessionsV1AuthSessionsDelete(sessionId, options);
|
|
429
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
430
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AuthApi.deleteSessionsV1AuthSessionsDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
431
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
432
|
+
});
|
|
433
|
+
},
|
|
434
|
+
/**
|
|
435
|
+
* Get user sessions
|
|
436
|
+
* @summary Get Sessions
|
|
437
|
+
* @param {string | null} [sessionId]
|
|
438
|
+
* @param {*} [options] Override http request option.
|
|
439
|
+
* @throws {RequiredError}
|
|
440
|
+
*/
|
|
441
|
+
getSessionsV1AuthSessionsGet(sessionId, options) {
|
|
442
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
443
|
+
var _a, _b, _c;
|
|
444
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSessionsV1AuthSessionsGet(sessionId, options);
|
|
445
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
446
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AuthApi.getSessionsV1AuthSessionsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
447
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
448
|
+
});
|
|
449
|
+
},
|
|
450
|
+
/**
|
|
451
|
+
* Handles the callback from GitHub OAuth.
|
|
452
|
+
* @summary Github Callback
|
|
453
|
+
* @param {string} code
|
|
454
|
+
* @param {string | null} [userAgent]
|
|
455
|
+
* @param {string | null} [cFConnectingIP]
|
|
456
|
+
* @param {string | null} [cFIPCountry]
|
|
457
|
+
* @param {*} [options] Override http request option.
|
|
458
|
+
* @throws {RequiredError}
|
|
459
|
+
*/
|
|
460
|
+
githubCallbackV1AuthGithubCallbackPost(code, userAgent, cFConnectingIP, cFIPCountry, options) {
|
|
461
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
462
|
+
var _a, _b, _c;
|
|
463
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.githubCallbackV1AuthGithubCallbackPost(code, userAgent, cFConnectingIP, cFIPCountry, options);
|
|
464
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
465
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AuthApi.githubCallbackV1AuthGithubCallbackPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
466
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
467
|
+
});
|
|
468
|
+
},
|
|
469
|
+
/**
|
|
470
|
+
* Redirects to GitHub\'s OAuth consent screen.
|
|
471
|
+
* @summary Github Login
|
|
472
|
+
* @param {*} [options] Override http request option.
|
|
473
|
+
* @throws {RequiredError}
|
|
474
|
+
*/
|
|
475
|
+
githubLoginV1AuthGithubLoginGet(options) {
|
|
476
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
477
|
+
var _a, _b, _c;
|
|
478
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.githubLoginV1AuthGithubLoginGet(options);
|
|
479
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
480
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AuthApi.githubLoginV1AuthGithubLoginGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
481
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
482
|
+
});
|
|
483
|
+
},
|
|
484
|
+
/**
|
|
485
|
+
* Handles the callback from Google OAuth.
|
|
486
|
+
* @summary Google Callback
|
|
487
|
+
* @param {string} code
|
|
488
|
+
* @param {string | null} [userAgent]
|
|
489
|
+
* @param {string | null} [cFConnectingIP]
|
|
490
|
+
* @param {string | null} [cFIPCountry]
|
|
491
|
+
* @param {*} [options] Override http request option.
|
|
492
|
+
* @throws {RequiredError}
|
|
493
|
+
*/
|
|
494
|
+
googleCallbackV1AuthGoogleCallbackPost(code, userAgent, cFConnectingIP, cFIPCountry, options) {
|
|
495
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
496
|
+
var _a, _b, _c;
|
|
497
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.googleCallbackV1AuthGoogleCallbackPost(code, userAgent, cFConnectingIP, cFIPCountry, options);
|
|
498
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
499
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AuthApi.googleCallbackV1AuthGoogleCallbackPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
500
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
501
|
+
});
|
|
502
|
+
},
|
|
503
|
+
/**
|
|
504
|
+
* Redirects to Google\'s OAuth consent screen.
|
|
505
|
+
* @summary Google Login
|
|
506
|
+
* @param {*} [options] Override http request option.
|
|
507
|
+
* @throws {RequiredError}
|
|
508
|
+
*/
|
|
509
|
+
googleLoginV1AuthGoogleLoginGet(options) {
|
|
510
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
511
|
+
var _a, _b, _c;
|
|
512
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.googleLoginV1AuthGoogleLoginGet(options);
|
|
513
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
514
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AuthApi.googleLoginV1AuthGoogleLoginGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
515
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
516
|
+
});
|
|
517
|
+
},
|
|
518
|
+
/**
|
|
519
|
+
*
|
|
520
|
+
* @summary Login
|
|
521
|
+
* @param {LoginSchema} loginSchema
|
|
522
|
+
* @param {string | null} [userAgent]
|
|
523
|
+
* @param {string | null} [cFConnectingIP]
|
|
524
|
+
* @param {string | null} [cFIPCountry]
|
|
525
|
+
* @param {*} [options] Override http request option.
|
|
526
|
+
* @throws {RequiredError}
|
|
527
|
+
*/
|
|
528
|
+
loginV1AuthLoginPost(loginSchema, userAgent, cFConnectingIP, cFIPCountry, options) {
|
|
529
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
530
|
+
var _a, _b, _c;
|
|
531
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.loginV1AuthLoginPost(loginSchema, userAgent, cFConnectingIP, cFIPCountry, options);
|
|
532
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
533
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AuthApi.loginV1AuthLoginPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
534
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
535
|
+
});
|
|
536
|
+
},
|
|
537
|
+
/**
|
|
538
|
+
* Logout user
|
|
539
|
+
* @summary Logout
|
|
540
|
+
* @param {string | null} [sessionId]
|
|
541
|
+
* @param {*} [options] Override http request option.
|
|
542
|
+
* @throws {RequiredError}
|
|
543
|
+
*/
|
|
544
|
+
logoutV1AuthLogoutPost(sessionId, options) {
|
|
545
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
546
|
+
var _a, _b, _c;
|
|
547
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.logoutV1AuthLogoutPost(sessionId, options);
|
|
548
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
549
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AuthApi.logoutV1AuthLogoutPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
550
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
551
|
+
});
|
|
552
|
+
},
|
|
553
|
+
/**
|
|
554
|
+
*
|
|
555
|
+
* @summary Register
|
|
556
|
+
* @param {RegisterSchema} registerSchema
|
|
557
|
+
* @param {string | null} [userAgent]
|
|
558
|
+
* @param {string | null} [cFConnectingIP]
|
|
559
|
+
* @param {string | null} [cFIPCountry]
|
|
560
|
+
* @param {*} [options] Override http request option.
|
|
561
|
+
* @throws {RequiredError}
|
|
562
|
+
*/
|
|
563
|
+
registerV1AuthRegisterPost(registerSchema, userAgent, cFConnectingIP, cFIPCountry, options) {
|
|
564
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
565
|
+
var _a, _b, _c;
|
|
566
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.registerV1AuthRegisterPost(registerSchema, userAgent, cFConnectingIP, cFIPCountry, options);
|
|
567
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
568
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AuthApi.registerV1AuthRegisterPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
569
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
570
|
+
});
|
|
571
|
+
},
|
|
572
|
+
};
|
|
573
|
+
};
|
|
574
|
+
/**
|
|
575
|
+
* AuthApi - factory interface
|
|
576
|
+
* @export
|
|
577
|
+
*/
|
|
578
|
+
export const AuthApiFactory = function (configuration, basePath, axios) {
|
|
579
|
+
const localVarFp = AuthApiFp(configuration);
|
|
580
|
+
return {
|
|
581
|
+
/**
|
|
582
|
+
* Delete user session
|
|
583
|
+
* @summary Delete Session
|
|
584
|
+
* @param {string | null} [sessionIdToDelete]
|
|
585
|
+
* @param {string | null} [sessionId]
|
|
586
|
+
* @param {*} [options] Override http request option.
|
|
587
|
+
* @throws {RequiredError}
|
|
588
|
+
*/
|
|
589
|
+
deleteSessionV1AuthSessionDelete(sessionIdToDelete, sessionId, options) {
|
|
590
|
+
return localVarFp.deleteSessionV1AuthSessionDelete(sessionIdToDelete, sessionId, options).then((request) => request(axios, basePath));
|
|
591
|
+
},
|
|
592
|
+
/**
|
|
593
|
+
* Delete user sessions
|
|
594
|
+
* @summary Delete Sessions
|
|
595
|
+
* @param {string | null} [sessionId]
|
|
596
|
+
* @param {*} [options] Override http request option.
|
|
597
|
+
* @throws {RequiredError}
|
|
598
|
+
*/
|
|
599
|
+
deleteSessionsV1AuthSessionsDelete(sessionId, options) {
|
|
600
|
+
return localVarFp.deleteSessionsV1AuthSessionsDelete(sessionId, options).then((request) => request(axios, basePath));
|
|
601
|
+
},
|
|
602
|
+
/**
|
|
603
|
+
* Get user sessions
|
|
604
|
+
* @summary Get Sessions
|
|
605
|
+
* @param {string | null} [sessionId]
|
|
606
|
+
* @param {*} [options] Override http request option.
|
|
607
|
+
* @throws {RequiredError}
|
|
608
|
+
*/
|
|
609
|
+
getSessionsV1AuthSessionsGet(sessionId, options) {
|
|
610
|
+
return localVarFp.getSessionsV1AuthSessionsGet(sessionId, options).then((request) => request(axios, basePath));
|
|
611
|
+
},
|
|
612
|
+
/**
|
|
613
|
+
* Handles the callback from GitHub OAuth.
|
|
614
|
+
* @summary Github Callback
|
|
615
|
+
* @param {string} code
|
|
616
|
+
* @param {string | null} [userAgent]
|
|
617
|
+
* @param {string | null} [cFConnectingIP]
|
|
618
|
+
* @param {string | null} [cFIPCountry]
|
|
619
|
+
* @param {*} [options] Override http request option.
|
|
620
|
+
* @throws {RequiredError}
|
|
621
|
+
*/
|
|
622
|
+
githubCallbackV1AuthGithubCallbackPost(code, userAgent, cFConnectingIP, cFIPCountry, options) {
|
|
623
|
+
return localVarFp.githubCallbackV1AuthGithubCallbackPost(code, userAgent, cFConnectingIP, cFIPCountry, options).then((request) => request(axios, basePath));
|
|
624
|
+
},
|
|
625
|
+
/**
|
|
626
|
+
* Redirects to GitHub\'s OAuth consent screen.
|
|
627
|
+
* @summary Github Login
|
|
628
|
+
* @param {*} [options] Override http request option.
|
|
629
|
+
* @throws {RequiredError}
|
|
630
|
+
*/
|
|
631
|
+
githubLoginV1AuthGithubLoginGet(options) {
|
|
632
|
+
return localVarFp.githubLoginV1AuthGithubLoginGet(options).then((request) => request(axios, basePath));
|
|
633
|
+
},
|
|
634
|
+
/**
|
|
635
|
+
* Handles the callback from Google OAuth.
|
|
636
|
+
* @summary Google Callback
|
|
637
|
+
* @param {string} code
|
|
638
|
+
* @param {string | null} [userAgent]
|
|
639
|
+
* @param {string | null} [cFConnectingIP]
|
|
640
|
+
* @param {string | null} [cFIPCountry]
|
|
641
|
+
* @param {*} [options] Override http request option.
|
|
642
|
+
* @throws {RequiredError}
|
|
643
|
+
*/
|
|
644
|
+
googleCallbackV1AuthGoogleCallbackPost(code, userAgent, cFConnectingIP, cFIPCountry, options) {
|
|
645
|
+
return localVarFp.googleCallbackV1AuthGoogleCallbackPost(code, userAgent, cFConnectingIP, cFIPCountry, options).then((request) => request(axios, basePath));
|
|
646
|
+
},
|
|
647
|
+
/**
|
|
648
|
+
* Redirects to Google\'s OAuth consent screen.
|
|
649
|
+
* @summary Google Login
|
|
650
|
+
* @param {*} [options] Override http request option.
|
|
651
|
+
* @throws {RequiredError}
|
|
652
|
+
*/
|
|
653
|
+
googleLoginV1AuthGoogleLoginGet(options) {
|
|
654
|
+
return localVarFp.googleLoginV1AuthGoogleLoginGet(options).then((request) => request(axios, basePath));
|
|
655
|
+
},
|
|
656
|
+
/**
|
|
657
|
+
*
|
|
658
|
+
* @summary Login
|
|
659
|
+
* @param {LoginSchema} loginSchema
|
|
660
|
+
* @param {string | null} [userAgent]
|
|
661
|
+
* @param {string | null} [cFConnectingIP]
|
|
662
|
+
* @param {string | null} [cFIPCountry]
|
|
663
|
+
* @param {*} [options] Override http request option.
|
|
664
|
+
* @throws {RequiredError}
|
|
665
|
+
*/
|
|
666
|
+
loginV1AuthLoginPost(loginSchema, userAgent, cFConnectingIP, cFIPCountry, options) {
|
|
667
|
+
return localVarFp.loginV1AuthLoginPost(loginSchema, userAgent, cFConnectingIP, cFIPCountry, options).then((request) => request(axios, basePath));
|
|
668
|
+
},
|
|
669
|
+
/**
|
|
670
|
+
* Logout user
|
|
671
|
+
* @summary Logout
|
|
672
|
+
* @param {string | null} [sessionId]
|
|
673
|
+
* @param {*} [options] Override http request option.
|
|
674
|
+
* @throws {RequiredError}
|
|
675
|
+
*/
|
|
676
|
+
logoutV1AuthLogoutPost(sessionId, options) {
|
|
677
|
+
return localVarFp.logoutV1AuthLogoutPost(sessionId, options).then((request) => request(axios, basePath));
|
|
678
|
+
},
|
|
679
|
+
/**
|
|
680
|
+
*
|
|
681
|
+
* @summary Register
|
|
682
|
+
* @param {RegisterSchema} registerSchema
|
|
683
|
+
* @param {string | null} [userAgent]
|
|
684
|
+
* @param {string | null} [cFConnectingIP]
|
|
685
|
+
* @param {string | null} [cFIPCountry]
|
|
686
|
+
* @param {*} [options] Override http request option.
|
|
687
|
+
* @throws {RequiredError}
|
|
688
|
+
*/
|
|
689
|
+
registerV1AuthRegisterPost(registerSchema, userAgent, cFConnectingIP, cFIPCountry, options) {
|
|
690
|
+
return localVarFp.registerV1AuthRegisterPost(registerSchema, userAgent, cFConnectingIP, cFIPCountry, options).then((request) => request(axios, basePath));
|
|
691
|
+
},
|
|
692
|
+
};
|
|
693
|
+
};
|
|
694
|
+
/**
|
|
695
|
+
* AuthApi - object-oriented interface
|
|
696
|
+
* @export
|
|
697
|
+
* @class AuthApi
|
|
698
|
+
* @extends {BaseAPI}
|
|
699
|
+
*/
|
|
700
|
+
export class AuthApi extends BaseAPI {
|
|
701
|
+
/**
|
|
702
|
+
* Delete user session
|
|
703
|
+
* @summary Delete Session
|
|
704
|
+
* @param {string | null} [sessionIdToDelete]
|
|
705
|
+
* @param {string | null} [sessionId]
|
|
706
|
+
* @param {*} [options] Override http request option.
|
|
707
|
+
* @throws {RequiredError}
|
|
708
|
+
* @memberof AuthApi
|
|
709
|
+
*/
|
|
710
|
+
deleteSessionV1AuthSessionDelete(sessionIdToDelete, sessionId, options) {
|
|
711
|
+
return AuthApiFp(this.configuration).deleteSessionV1AuthSessionDelete(sessionIdToDelete, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
712
|
+
}
|
|
713
|
+
/**
|
|
714
|
+
* Delete user sessions
|
|
715
|
+
* @summary Delete Sessions
|
|
716
|
+
* @param {string | null} [sessionId]
|
|
717
|
+
* @param {*} [options] Override http request option.
|
|
718
|
+
* @throws {RequiredError}
|
|
719
|
+
* @memberof AuthApi
|
|
720
|
+
*/
|
|
721
|
+
deleteSessionsV1AuthSessionsDelete(sessionId, options) {
|
|
722
|
+
return AuthApiFp(this.configuration).deleteSessionsV1AuthSessionsDelete(sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
723
|
+
}
|
|
724
|
+
/**
|
|
725
|
+
* Get user sessions
|
|
726
|
+
* @summary Get Sessions
|
|
727
|
+
* @param {string | null} [sessionId]
|
|
728
|
+
* @param {*} [options] Override http request option.
|
|
729
|
+
* @throws {RequiredError}
|
|
730
|
+
* @memberof AuthApi
|
|
731
|
+
*/
|
|
732
|
+
getSessionsV1AuthSessionsGet(sessionId, options) {
|
|
733
|
+
return AuthApiFp(this.configuration).getSessionsV1AuthSessionsGet(sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
734
|
+
}
|
|
735
|
+
/**
|
|
736
|
+
* Handles the callback from GitHub OAuth.
|
|
737
|
+
* @summary Github Callback
|
|
738
|
+
* @param {string} code
|
|
739
|
+
* @param {string | null} [userAgent]
|
|
740
|
+
* @param {string | null} [cFConnectingIP]
|
|
741
|
+
* @param {string | null} [cFIPCountry]
|
|
742
|
+
* @param {*} [options] Override http request option.
|
|
743
|
+
* @throws {RequiredError}
|
|
744
|
+
* @memberof AuthApi
|
|
745
|
+
*/
|
|
746
|
+
githubCallbackV1AuthGithubCallbackPost(code, userAgent, cFConnectingIP, cFIPCountry, options) {
|
|
747
|
+
return AuthApiFp(this.configuration).githubCallbackV1AuthGithubCallbackPost(code, userAgent, cFConnectingIP, cFIPCountry, options).then((request) => request(this.axios, this.basePath));
|
|
748
|
+
}
|
|
749
|
+
/**
|
|
750
|
+
* Redirects to GitHub\'s OAuth consent screen.
|
|
751
|
+
* @summary Github Login
|
|
752
|
+
* @param {*} [options] Override http request option.
|
|
753
|
+
* @throws {RequiredError}
|
|
754
|
+
* @memberof AuthApi
|
|
755
|
+
*/
|
|
756
|
+
githubLoginV1AuthGithubLoginGet(options) {
|
|
757
|
+
return AuthApiFp(this.configuration).githubLoginV1AuthGithubLoginGet(options).then((request) => request(this.axios, this.basePath));
|
|
758
|
+
}
|
|
759
|
+
/**
|
|
760
|
+
* Handles the callback from Google OAuth.
|
|
761
|
+
* @summary Google Callback
|
|
762
|
+
* @param {string} code
|
|
763
|
+
* @param {string | null} [userAgent]
|
|
764
|
+
* @param {string | null} [cFConnectingIP]
|
|
765
|
+
* @param {string | null} [cFIPCountry]
|
|
766
|
+
* @param {*} [options] Override http request option.
|
|
767
|
+
* @throws {RequiredError}
|
|
768
|
+
* @memberof AuthApi
|
|
769
|
+
*/
|
|
770
|
+
googleCallbackV1AuthGoogleCallbackPost(code, userAgent, cFConnectingIP, cFIPCountry, options) {
|
|
771
|
+
return AuthApiFp(this.configuration).googleCallbackV1AuthGoogleCallbackPost(code, userAgent, cFConnectingIP, cFIPCountry, options).then((request) => request(this.axios, this.basePath));
|
|
772
|
+
}
|
|
773
|
+
/**
|
|
774
|
+
* Redirects to Google\'s OAuth consent screen.
|
|
775
|
+
* @summary Google Login
|
|
776
|
+
* @param {*} [options] Override http request option.
|
|
777
|
+
* @throws {RequiredError}
|
|
778
|
+
* @memberof AuthApi
|
|
779
|
+
*/
|
|
780
|
+
googleLoginV1AuthGoogleLoginGet(options) {
|
|
781
|
+
return AuthApiFp(this.configuration).googleLoginV1AuthGoogleLoginGet(options).then((request) => request(this.axios, this.basePath));
|
|
782
|
+
}
|
|
783
|
+
/**
|
|
784
|
+
*
|
|
785
|
+
* @summary Login
|
|
786
|
+
* @param {LoginSchema} loginSchema
|
|
787
|
+
* @param {string | null} [userAgent]
|
|
788
|
+
* @param {string | null} [cFConnectingIP]
|
|
789
|
+
* @param {string | null} [cFIPCountry]
|
|
790
|
+
* @param {*} [options] Override http request option.
|
|
791
|
+
* @throws {RequiredError}
|
|
792
|
+
* @memberof AuthApi
|
|
793
|
+
*/
|
|
794
|
+
loginV1AuthLoginPost(loginSchema, userAgent, cFConnectingIP, cFIPCountry, options) {
|
|
795
|
+
return AuthApiFp(this.configuration).loginV1AuthLoginPost(loginSchema, userAgent, cFConnectingIP, cFIPCountry, options).then((request) => request(this.axios, this.basePath));
|
|
796
|
+
}
|
|
797
|
+
/**
|
|
798
|
+
* Logout user
|
|
799
|
+
* @summary Logout
|
|
800
|
+
* @param {string | null} [sessionId]
|
|
801
|
+
* @param {*} [options] Override http request option.
|
|
802
|
+
* @throws {RequiredError}
|
|
803
|
+
* @memberof AuthApi
|
|
804
|
+
*/
|
|
805
|
+
logoutV1AuthLogoutPost(sessionId, options) {
|
|
806
|
+
return AuthApiFp(this.configuration).logoutV1AuthLogoutPost(sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
807
|
+
}
|
|
808
|
+
/**
|
|
809
|
+
*
|
|
810
|
+
* @summary Register
|
|
811
|
+
* @param {RegisterSchema} registerSchema
|
|
812
|
+
* @param {string | null} [userAgent]
|
|
813
|
+
* @param {string | null} [cFConnectingIP]
|
|
814
|
+
* @param {string | null} [cFIPCountry]
|
|
815
|
+
* @param {*} [options] Override http request option.
|
|
816
|
+
* @throws {RequiredError}
|
|
817
|
+
* @memberof AuthApi
|
|
818
|
+
*/
|
|
819
|
+
registerV1AuthRegisterPost(registerSchema, userAgent, cFConnectingIP, cFIPCountry, options) {
|
|
820
|
+
return AuthApiFp(this.configuration).registerV1AuthRegisterPost(registerSchema, userAgent, cFConnectingIP, cFIPCountry, options).then((request) => request(this.axios, this.basePath));
|
|
821
|
+
}
|
|
822
|
+
}
|
|
823
|
+
/**
|
|
824
|
+
* CompanyApi - axios parameter creator
|
|
825
|
+
* @export
|
|
826
|
+
*/
|
|
827
|
+
export const CompanyApiAxiosParamCreator = function (configuration) {
|
|
828
|
+
return {
|
|
829
|
+
/**
|
|
830
|
+
*
|
|
831
|
+
* @summary Create Company
|
|
832
|
+
* @param {CompanyCreate} companyCreate
|
|
833
|
+
* @param {string} [authorization]
|
|
834
|
+
* @param {string} [sessionId]
|
|
835
|
+
* @param {*} [options] Override http request option.
|
|
836
|
+
* @throws {RequiredError}
|
|
837
|
+
*/
|
|
838
|
+
createCompanyV1CompanyCreatePost: (companyCreate_1, authorization_1, sessionId_1, ...args_1) => __awaiter(this, [companyCreate_1, authorization_1, sessionId_1, ...args_1], void 0, function* (companyCreate, authorization, sessionId, options = {}) {
|
|
839
|
+
// verify required parameter 'companyCreate' is not null or undefined
|
|
840
|
+
assertParamExists('createCompanyV1CompanyCreatePost', 'companyCreate', companyCreate);
|
|
841
|
+
const localVarPath = `/v1/company/create`;
|
|
842
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
843
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
844
|
+
let baseOptions;
|
|
845
|
+
if (configuration) {
|
|
846
|
+
baseOptions = configuration.baseOptions;
|
|
847
|
+
}
|
|
848
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
849
|
+
const localVarHeaderParameter = {};
|
|
850
|
+
const localVarQueryParameter = {};
|
|
851
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
852
|
+
if (authorization != null) {
|
|
853
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
854
|
+
}
|
|
855
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
856
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
857
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
858
|
+
localVarRequestOptions.data = serializeDataIfNeeded(companyCreate, localVarRequestOptions, configuration);
|
|
859
|
+
return {
|
|
860
|
+
url: toPathString(localVarUrlObj),
|
|
861
|
+
options: localVarRequestOptions,
|
|
862
|
+
};
|
|
863
|
+
}),
|
|
864
|
+
/**
|
|
865
|
+
*
|
|
866
|
+
* @summary Get Companies
|
|
867
|
+
* @param {number} [page]
|
|
868
|
+
* @param {number} [limit]
|
|
869
|
+
* @param {string} [authorization]
|
|
870
|
+
* @param {string} [sessionId]
|
|
871
|
+
* @param {*} [options] Override http request option.
|
|
872
|
+
* @throws {RequiredError}
|
|
873
|
+
*/
|
|
874
|
+
getCompaniesV1CompanyListGet: (page_1, limit_1, authorization_1, sessionId_1, ...args_1) => __awaiter(this, [page_1, limit_1, authorization_1, sessionId_1, ...args_1], void 0, function* (page, limit, authorization, sessionId, options = {}) {
|
|
875
|
+
const localVarPath = `/v1/company/list`;
|
|
876
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
877
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
878
|
+
let baseOptions;
|
|
879
|
+
if (configuration) {
|
|
880
|
+
baseOptions = configuration.baseOptions;
|
|
881
|
+
}
|
|
882
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
883
|
+
const localVarHeaderParameter = {};
|
|
884
|
+
const localVarQueryParameter = {};
|
|
885
|
+
if (page !== undefined) {
|
|
886
|
+
localVarQueryParameter['page'] = page;
|
|
887
|
+
}
|
|
888
|
+
if (limit !== undefined) {
|
|
889
|
+
localVarQueryParameter['limit'] = limit;
|
|
890
|
+
}
|
|
891
|
+
if (authorization != null) {
|
|
892
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
893
|
+
}
|
|
894
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
895
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
896
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
897
|
+
return {
|
|
898
|
+
url: toPathString(localVarUrlObj),
|
|
899
|
+
options: localVarRequestOptions,
|
|
900
|
+
};
|
|
901
|
+
}),
|
|
902
|
+
/**
|
|
903
|
+
*
|
|
904
|
+
* @summary Get Company
|
|
905
|
+
* @param {string} companyId
|
|
906
|
+
* @param {string} [authorization]
|
|
907
|
+
* @param {string} [sessionId]
|
|
908
|
+
* @param {*} [options] Override http request option.
|
|
909
|
+
* @throws {RequiredError}
|
|
910
|
+
*/
|
|
911
|
+
getCompanyV1CompanyGetCompanyIdGet: (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 = {}) {
|
|
912
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
913
|
+
assertParamExists('getCompanyV1CompanyGetCompanyIdGet', 'companyId', companyId);
|
|
914
|
+
const localVarPath = `/v1/company/get/{company_id}`
|
|
915
|
+
.replace(`{${"company_id"}}`, encodeURIComponent(String(companyId)));
|
|
916
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
917
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
918
|
+
let baseOptions;
|
|
919
|
+
if (configuration) {
|
|
920
|
+
baseOptions = configuration.baseOptions;
|
|
921
|
+
}
|
|
922
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
923
|
+
const localVarHeaderParameter = {};
|
|
924
|
+
const localVarQueryParameter = {};
|
|
925
|
+
if (authorization != null) {
|
|
926
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
927
|
+
}
|
|
928
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
929
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
930
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
931
|
+
return {
|
|
932
|
+
url: toPathString(localVarUrlObj),
|
|
933
|
+
options: localVarRequestOptions,
|
|
934
|
+
};
|
|
935
|
+
}),
|
|
936
|
+
/**
|
|
937
|
+
*
|
|
938
|
+
* @summary Get Controls
|
|
939
|
+
* @param {string} companyId
|
|
940
|
+
* @param {string} [authorization]
|
|
941
|
+
* @param {string} [sessionId]
|
|
942
|
+
* @param {*} [options] Override http request option.
|
|
943
|
+
* @throws {RequiredError}
|
|
944
|
+
*/
|
|
945
|
+
getControlsV1CompanyControlsCompanyIdGet: (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 = {}) {
|
|
946
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
947
|
+
assertParamExists('getControlsV1CompanyControlsCompanyIdGet', 'companyId', companyId);
|
|
948
|
+
const localVarPath = `/v1/company/controls/{company_id}`
|
|
949
|
+
.replace(`{${"company_id"}}`, encodeURIComponent(String(companyId)));
|
|
950
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
951
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
952
|
+
let baseOptions;
|
|
953
|
+
if (configuration) {
|
|
954
|
+
baseOptions = configuration.baseOptions;
|
|
955
|
+
}
|
|
956
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
957
|
+
const localVarHeaderParameter = {};
|
|
958
|
+
const localVarQueryParameter = {};
|
|
959
|
+
if (authorization != null) {
|
|
960
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
961
|
+
}
|
|
962
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
963
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
964
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
965
|
+
return {
|
|
966
|
+
url: toPathString(localVarUrlObj),
|
|
967
|
+
options: localVarRequestOptions,
|
|
968
|
+
};
|
|
969
|
+
}),
|
|
970
|
+
/**
|
|
971
|
+
*
|
|
972
|
+
* @summary Get Policies
|
|
973
|
+
* @param {number} [page]
|
|
974
|
+
* @param {number} [limit]
|
|
975
|
+
* @param {string} [authorization]
|
|
976
|
+
* @param {string} [sessionId]
|
|
977
|
+
* @param {*} [options] Override http request option.
|
|
978
|
+
* @throws {RequiredError}
|
|
979
|
+
*/
|
|
980
|
+
getPoliciesV1CompanyPoliciesGet: (page_1, limit_1, authorization_1, sessionId_1, ...args_1) => __awaiter(this, [page_1, limit_1, authorization_1, sessionId_1, ...args_1], void 0, function* (page, limit, authorization, sessionId, options = {}) {
|
|
981
|
+
const localVarPath = `/v1/company/policies`;
|
|
982
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
983
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
984
|
+
let baseOptions;
|
|
985
|
+
if (configuration) {
|
|
986
|
+
baseOptions = configuration.baseOptions;
|
|
987
|
+
}
|
|
988
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
989
|
+
const localVarHeaderParameter = {};
|
|
990
|
+
const localVarQueryParameter = {};
|
|
991
|
+
if (page !== undefined) {
|
|
992
|
+
localVarQueryParameter['page'] = page;
|
|
993
|
+
}
|
|
994
|
+
if (limit !== undefined) {
|
|
995
|
+
localVarQueryParameter['limit'] = limit;
|
|
996
|
+
}
|
|
997
|
+
if (authorization != null) {
|
|
998
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
999
|
+
}
|
|
1000
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1001
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1002
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1003
|
+
return {
|
|
1004
|
+
url: toPathString(localVarUrlObj),
|
|
1005
|
+
options: localVarRequestOptions,
|
|
1006
|
+
};
|
|
1007
|
+
}),
|
|
1008
|
+
/**
|
|
1009
|
+
*
|
|
1010
|
+
* @summary Update Company
|
|
1011
|
+
* @param {CompanyUpdate} companyUpdate
|
|
1012
|
+
* @param {string} [authorization]
|
|
1013
|
+
* @param {string} [sessionId]
|
|
1014
|
+
* @param {*} [options] Override http request option.
|
|
1015
|
+
* @throws {RequiredError}
|
|
1016
|
+
*/
|
|
1017
|
+
updateCompanyV1CompanyUpdatePatch: (companyUpdate_1, authorization_1, sessionId_1, ...args_1) => __awaiter(this, [companyUpdate_1, authorization_1, sessionId_1, ...args_1], void 0, function* (companyUpdate, authorization, sessionId, options = {}) {
|
|
1018
|
+
// verify required parameter 'companyUpdate' is not null or undefined
|
|
1019
|
+
assertParamExists('updateCompanyV1CompanyUpdatePatch', 'companyUpdate', companyUpdate);
|
|
1020
|
+
const localVarPath = `/v1/company/update`;
|
|
1021
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1022
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1023
|
+
let baseOptions;
|
|
1024
|
+
if (configuration) {
|
|
1025
|
+
baseOptions = configuration.baseOptions;
|
|
1026
|
+
}
|
|
1027
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
1028
|
+
const localVarHeaderParameter = {};
|
|
1029
|
+
const localVarQueryParameter = {};
|
|
1030
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1031
|
+
if (authorization != null) {
|
|
1032
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
1033
|
+
}
|
|
1034
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1035
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1036
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1037
|
+
localVarRequestOptions.data = serializeDataIfNeeded(companyUpdate, localVarRequestOptions, configuration);
|
|
1038
|
+
return {
|
|
1039
|
+
url: toPathString(localVarUrlObj),
|
|
1040
|
+
options: localVarRequestOptions,
|
|
1041
|
+
};
|
|
1042
|
+
}),
|
|
1043
|
+
};
|
|
1044
|
+
};
|
|
1045
|
+
/**
|
|
1046
|
+
* CompanyApi - functional programming interface
|
|
1047
|
+
* @export
|
|
1048
|
+
*/
|
|
1049
|
+
export const CompanyApiFp = function (configuration) {
|
|
1050
|
+
const localVarAxiosParamCreator = CompanyApiAxiosParamCreator(configuration);
|
|
1051
|
+
return {
|
|
1052
|
+
/**
|
|
1053
|
+
*
|
|
1054
|
+
* @summary Create Company
|
|
1055
|
+
* @param {CompanyCreate} companyCreate
|
|
1056
|
+
* @param {string} [authorization]
|
|
1057
|
+
* @param {string} [sessionId]
|
|
1058
|
+
* @param {*} [options] Override http request option.
|
|
1059
|
+
* @throws {RequiredError}
|
|
1060
|
+
*/
|
|
1061
|
+
createCompanyV1CompanyCreatePost(companyCreate, authorization, sessionId, options) {
|
|
1062
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1063
|
+
var _a, _b, _c;
|
|
1064
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createCompanyV1CompanyCreatePost(companyCreate, authorization, sessionId, options);
|
|
1065
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1066
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CompanyApi.createCompanyV1CompanyCreatePost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1067
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1068
|
+
});
|
|
1069
|
+
},
|
|
1070
|
+
/**
|
|
1071
|
+
*
|
|
1072
|
+
* @summary Get Companies
|
|
1073
|
+
* @param {number} [page]
|
|
1074
|
+
* @param {number} [limit]
|
|
1075
|
+
* @param {string} [authorization]
|
|
1076
|
+
* @param {string} [sessionId]
|
|
1077
|
+
* @param {*} [options] Override http request option.
|
|
1078
|
+
* @throws {RequiredError}
|
|
1079
|
+
*/
|
|
1080
|
+
getCompaniesV1CompanyListGet(page, limit, authorization, sessionId, options) {
|
|
1081
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1082
|
+
var _a, _b, _c;
|
|
1083
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCompaniesV1CompanyListGet(page, limit, authorization, sessionId, options);
|
|
1084
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1085
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CompanyApi.getCompaniesV1CompanyListGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1086
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1087
|
+
});
|
|
1088
|
+
},
|
|
1089
|
+
/**
|
|
1090
|
+
*
|
|
1091
|
+
* @summary Get Company
|
|
1092
|
+
* @param {string} companyId
|
|
1093
|
+
* @param {string} [authorization]
|
|
1094
|
+
* @param {string} [sessionId]
|
|
1095
|
+
* @param {*} [options] Override http request option.
|
|
1096
|
+
* @throws {RequiredError}
|
|
1097
|
+
*/
|
|
1098
|
+
getCompanyV1CompanyGetCompanyIdGet(companyId, authorization, sessionId, options) {
|
|
1099
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1100
|
+
var _a, _b, _c;
|
|
1101
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCompanyV1CompanyGetCompanyIdGet(companyId, authorization, sessionId, options);
|
|
1102
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1103
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CompanyApi.getCompanyV1CompanyGetCompanyIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1104
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1105
|
+
});
|
|
1106
|
+
},
|
|
1107
|
+
/**
|
|
1108
|
+
*
|
|
1109
|
+
* @summary Get Controls
|
|
1110
|
+
* @param {string} companyId
|
|
1111
|
+
* @param {string} [authorization]
|
|
1112
|
+
* @param {string} [sessionId]
|
|
1113
|
+
* @param {*} [options] Override http request option.
|
|
1114
|
+
* @throws {RequiredError}
|
|
1115
|
+
*/
|
|
1116
|
+
getControlsV1CompanyControlsCompanyIdGet(companyId, authorization, sessionId, options) {
|
|
1117
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1118
|
+
var _a, _b, _c;
|
|
1119
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getControlsV1CompanyControlsCompanyIdGet(companyId, authorization, sessionId, options);
|
|
1120
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1121
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CompanyApi.getControlsV1CompanyControlsCompanyIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1122
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1123
|
+
});
|
|
1124
|
+
},
|
|
1125
|
+
/**
|
|
1126
|
+
*
|
|
1127
|
+
* @summary Get Policies
|
|
1128
|
+
* @param {number} [page]
|
|
1129
|
+
* @param {number} [limit]
|
|
1130
|
+
* @param {string} [authorization]
|
|
1131
|
+
* @param {string} [sessionId]
|
|
1132
|
+
* @param {*} [options] Override http request option.
|
|
1133
|
+
* @throws {RequiredError}
|
|
1134
|
+
*/
|
|
1135
|
+
getPoliciesV1CompanyPoliciesGet(page, limit, authorization, sessionId, options) {
|
|
1136
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1137
|
+
var _a, _b, _c;
|
|
1138
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPoliciesV1CompanyPoliciesGet(page, limit, authorization, sessionId, options);
|
|
1139
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1140
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CompanyApi.getPoliciesV1CompanyPoliciesGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1141
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1142
|
+
});
|
|
1143
|
+
},
|
|
1144
|
+
/**
|
|
1145
|
+
*
|
|
1146
|
+
* @summary Update Company
|
|
1147
|
+
* @param {CompanyUpdate} companyUpdate
|
|
1148
|
+
* @param {string} [authorization]
|
|
1149
|
+
* @param {string} [sessionId]
|
|
1150
|
+
* @param {*} [options] Override http request option.
|
|
1151
|
+
* @throws {RequiredError}
|
|
1152
|
+
*/
|
|
1153
|
+
updateCompanyV1CompanyUpdatePatch(companyUpdate, authorization, sessionId, options) {
|
|
1154
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1155
|
+
var _a, _b, _c;
|
|
1156
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateCompanyV1CompanyUpdatePatch(companyUpdate, authorization, sessionId, options);
|
|
1157
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1158
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CompanyApi.updateCompanyV1CompanyUpdatePatch']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1159
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1160
|
+
});
|
|
1161
|
+
},
|
|
1162
|
+
};
|
|
1163
|
+
};
|
|
1164
|
+
/**
|
|
1165
|
+
* CompanyApi - factory interface
|
|
1166
|
+
* @export
|
|
1167
|
+
*/
|
|
1168
|
+
export const CompanyApiFactory = function (configuration, basePath, axios) {
|
|
1169
|
+
const localVarFp = CompanyApiFp(configuration);
|
|
1170
|
+
return {
|
|
1171
|
+
/**
|
|
1172
|
+
*
|
|
1173
|
+
* @summary Create Company
|
|
1174
|
+
* @param {CompanyCreate} companyCreate
|
|
1175
|
+
* @param {string} [authorization]
|
|
1176
|
+
* @param {string} [sessionId]
|
|
1177
|
+
* @param {*} [options] Override http request option.
|
|
1178
|
+
* @throws {RequiredError}
|
|
1179
|
+
*/
|
|
1180
|
+
createCompanyV1CompanyCreatePost(companyCreate, authorization, sessionId, options) {
|
|
1181
|
+
return localVarFp.createCompanyV1CompanyCreatePost(companyCreate, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
1182
|
+
},
|
|
1183
|
+
/**
|
|
1184
|
+
*
|
|
1185
|
+
* @summary Get Companies
|
|
1186
|
+
* @param {number} [page]
|
|
1187
|
+
* @param {number} [limit]
|
|
1188
|
+
* @param {string} [authorization]
|
|
1189
|
+
* @param {string} [sessionId]
|
|
1190
|
+
* @param {*} [options] Override http request option.
|
|
1191
|
+
* @throws {RequiredError}
|
|
1192
|
+
*/
|
|
1193
|
+
getCompaniesV1CompanyListGet(page, limit, authorization, sessionId, options) {
|
|
1194
|
+
return localVarFp.getCompaniesV1CompanyListGet(page, limit, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
1195
|
+
},
|
|
1196
|
+
/**
|
|
1197
|
+
*
|
|
1198
|
+
* @summary Get Company
|
|
1199
|
+
* @param {string} companyId
|
|
1200
|
+
* @param {string} [authorization]
|
|
1201
|
+
* @param {string} [sessionId]
|
|
1202
|
+
* @param {*} [options] Override http request option.
|
|
1203
|
+
* @throws {RequiredError}
|
|
1204
|
+
*/
|
|
1205
|
+
getCompanyV1CompanyGetCompanyIdGet(companyId, authorization, sessionId, options) {
|
|
1206
|
+
return localVarFp.getCompanyV1CompanyGetCompanyIdGet(companyId, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
1207
|
+
},
|
|
1208
|
+
/**
|
|
1209
|
+
*
|
|
1210
|
+
* @summary Get Controls
|
|
1211
|
+
* @param {string} companyId
|
|
1212
|
+
* @param {string} [authorization]
|
|
1213
|
+
* @param {string} [sessionId]
|
|
1214
|
+
* @param {*} [options] Override http request option.
|
|
1215
|
+
* @throws {RequiredError}
|
|
1216
|
+
*/
|
|
1217
|
+
getControlsV1CompanyControlsCompanyIdGet(companyId, authorization, sessionId, options) {
|
|
1218
|
+
return localVarFp.getControlsV1CompanyControlsCompanyIdGet(companyId, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
1219
|
+
},
|
|
1220
|
+
/**
|
|
1221
|
+
*
|
|
1222
|
+
* @summary Get Policies
|
|
1223
|
+
* @param {number} [page]
|
|
1224
|
+
* @param {number} [limit]
|
|
1225
|
+
* @param {string} [authorization]
|
|
1226
|
+
* @param {string} [sessionId]
|
|
1227
|
+
* @param {*} [options] Override http request option.
|
|
1228
|
+
* @throws {RequiredError}
|
|
1229
|
+
*/
|
|
1230
|
+
getPoliciesV1CompanyPoliciesGet(page, limit, authorization, sessionId, options) {
|
|
1231
|
+
return localVarFp.getPoliciesV1CompanyPoliciesGet(page, limit, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
1232
|
+
},
|
|
1233
|
+
/**
|
|
1234
|
+
*
|
|
1235
|
+
* @summary Update Company
|
|
1236
|
+
* @param {CompanyUpdate} companyUpdate
|
|
1237
|
+
* @param {string} [authorization]
|
|
1238
|
+
* @param {string} [sessionId]
|
|
1239
|
+
* @param {*} [options] Override http request option.
|
|
1240
|
+
* @throws {RequiredError}
|
|
1241
|
+
*/
|
|
1242
|
+
updateCompanyV1CompanyUpdatePatch(companyUpdate, authorization, sessionId, options) {
|
|
1243
|
+
return localVarFp.updateCompanyV1CompanyUpdatePatch(companyUpdate, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
1244
|
+
},
|
|
1245
|
+
};
|
|
1246
|
+
};
|
|
1247
|
+
/**
|
|
1248
|
+
* CompanyApi - object-oriented interface
|
|
1249
|
+
* @export
|
|
1250
|
+
* @class CompanyApi
|
|
1251
|
+
* @extends {BaseAPI}
|
|
1252
|
+
*/
|
|
1253
|
+
export class CompanyApi extends BaseAPI {
|
|
1254
|
+
/**
|
|
1255
|
+
*
|
|
1256
|
+
* @summary Create Company
|
|
1257
|
+
* @param {CompanyCreate} companyCreate
|
|
1258
|
+
* @param {string} [authorization]
|
|
1259
|
+
* @param {string} [sessionId]
|
|
1260
|
+
* @param {*} [options] Override http request option.
|
|
1261
|
+
* @throws {RequiredError}
|
|
1262
|
+
* @memberof CompanyApi
|
|
1263
|
+
*/
|
|
1264
|
+
createCompanyV1CompanyCreatePost(companyCreate, authorization, sessionId, options) {
|
|
1265
|
+
return CompanyApiFp(this.configuration).createCompanyV1CompanyCreatePost(companyCreate, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
1266
|
+
}
|
|
1267
|
+
/**
|
|
1268
|
+
*
|
|
1269
|
+
* @summary Get Companies
|
|
1270
|
+
* @param {number} [page]
|
|
1271
|
+
* @param {number} [limit]
|
|
1272
|
+
* @param {string} [authorization]
|
|
1273
|
+
* @param {string} [sessionId]
|
|
1274
|
+
* @param {*} [options] Override http request option.
|
|
1275
|
+
* @throws {RequiredError}
|
|
1276
|
+
* @memberof CompanyApi
|
|
1277
|
+
*/
|
|
1278
|
+
getCompaniesV1CompanyListGet(page, limit, authorization, sessionId, options) {
|
|
1279
|
+
return CompanyApiFp(this.configuration).getCompaniesV1CompanyListGet(page, limit, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
1280
|
+
}
|
|
1281
|
+
/**
|
|
1282
|
+
*
|
|
1283
|
+
* @summary Get Company
|
|
1284
|
+
* @param {string} companyId
|
|
1285
|
+
* @param {string} [authorization]
|
|
1286
|
+
* @param {string} [sessionId]
|
|
1287
|
+
* @param {*} [options] Override http request option.
|
|
1288
|
+
* @throws {RequiredError}
|
|
1289
|
+
* @memberof CompanyApi
|
|
1290
|
+
*/
|
|
1291
|
+
getCompanyV1CompanyGetCompanyIdGet(companyId, authorization, sessionId, options) {
|
|
1292
|
+
return CompanyApiFp(this.configuration).getCompanyV1CompanyGetCompanyIdGet(companyId, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
1293
|
+
}
|
|
1294
|
+
/**
|
|
1295
|
+
*
|
|
1296
|
+
* @summary Get Controls
|
|
1297
|
+
* @param {string} companyId
|
|
1298
|
+
* @param {string} [authorization]
|
|
1299
|
+
* @param {string} [sessionId]
|
|
1300
|
+
* @param {*} [options] Override http request option.
|
|
1301
|
+
* @throws {RequiredError}
|
|
1302
|
+
* @memberof CompanyApi
|
|
1303
|
+
*/
|
|
1304
|
+
getControlsV1CompanyControlsCompanyIdGet(companyId, authorization, sessionId, options) {
|
|
1305
|
+
return CompanyApiFp(this.configuration).getControlsV1CompanyControlsCompanyIdGet(companyId, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
1306
|
+
}
|
|
1307
|
+
/**
|
|
1308
|
+
*
|
|
1309
|
+
* @summary Get Policies
|
|
1310
|
+
* @param {number} [page]
|
|
1311
|
+
* @param {number} [limit]
|
|
1312
|
+
* @param {string} [authorization]
|
|
1313
|
+
* @param {string} [sessionId]
|
|
1314
|
+
* @param {*} [options] Override http request option.
|
|
1315
|
+
* @throws {RequiredError}
|
|
1316
|
+
* @memberof CompanyApi
|
|
1317
|
+
*/
|
|
1318
|
+
getPoliciesV1CompanyPoliciesGet(page, limit, authorization, sessionId, options) {
|
|
1319
|
+
return CompanyApiFp(this.configuration).getPoliciesV1CompanyPoliciesGet(page, limit, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
1320
|
+
}
|
|
1321
|
+
/**
|
|
1322
|
+
*
|
|
1323
|
+
* @summary Update Company
|
|
1324
|
+
* @param {CompanyUpdate} companyUpdate
|
|
1325
|
+
* @param {string} [authorization]
|
|
1326
|
+
* @param {string} [sessionId]
|
|
1327
|
+
* @param {*} [options] Override http request option.
|
|
1328
|
+
* @throws {RequiredError}
|
|
1329
|
+
* @memberof CompanyApi
|
|
1330
|
+
*/
|
|
1331
|
+
updateCompanyV1CompanyUpdatePatch(companyUpdate, authorization, sessionId, options) {
|
|
1332
|
+
return CompanyApiFp(this.configuration).updateCompanyV1CompanyUpdatePatch(companyUpdate, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
1333
|
+
}
|
|
1334
|
+
}
|
|
1335
|
+
/**
|
|
1336
|
+
* ControlsApi - axios parameter creator
|
|
1337
|
+
* @export
|
|
1338
|
+
*/
|
|
1339
|
+
export const ControlsApiAxiosParamCreator = function (configuration) {
|
|
1340
|
+
return {
|
|
1341
|
+
/**
|
|
1342
|
+
*
|
|
1343
|
+
* @summary Get Control
|
|
1344
|
+
* @param {string} controlId
|
|
1345
|
+
* @param {string} [authorization]
|
|
1346
|
+
* @param {string} [sessionId]
|
|
1347
|
+
* @param {*} [options] Override http request option.
|
|
1348
|
+
* @throws {RequiredError}
|
|
1349
|
+
*/
|
|
1350
|
+
getControlV1ControlsControlIdGet: (controlId_1, authorization_1, sessionId_1, ...args_1) => __awaiter(this, [controlId_1, authorization_1, sessionId_1, ...args_1], void 0, function* (controlId, authorization, sessionId, options = {}) {
|
|
1351
|
+
// verify required parameter 'controlId' is not null or undefined
|
|
1352
|
+
assertParamExists('getControlV1ControlsControlIdGet', 'controlId', controlId);
|
|
1353
|
+
const localVarPath = `/v1/controls/{control_id}`
|
|
1354
|
+
.replace(`{${"control_id"}}`, encodeURIComponent(String(controlId)));
|
|
1355
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1356
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1357
|
+
let baseOptions;
|
|
1358
|
+
if (configuration) {
|
|
1359
|
+
baseOptions = configuration.baseOptions;
|
|
1360
|
+
}
|
|
1361
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1362
|
+
const localVarHeaderParameter = {};
|
|
1363
|
+
const localVarQueryParameter = {};
|
|
1364
|
+
if (authorization != null) {
|
|
1365
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
1366
|
+
}
|
|
1367
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1368
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1369
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1370
|
+
return {
|
|
1371
|
+
url: toPathString(localVarUrlObj),
|
|
1372
|
+
options: localVarRequestOptions,
|
|
1373
|
+
};
|
|
1374
|
+
}),
|
|
1375
|
+
/**
|
|
1376
|
+
*
|
|
1377
|
+
* @summary Update Control
|
|
1378
|
+
* @param {UpdateControlSchema} updateControlSchema
|
|
1379
|
+
* @param {string} [authorization]
|
|
1380
|
+
* @param {string} [sessionId]
|
|
1381
|
+
* @param {*} [options] Override http request option.
|
|
1382
|
+
* @throws {RequiredError}
|
|
1383
|
+
*/
|
|
1384
|
+
updateControlV1ControlsUpdatePatch: (updateControlSchema_1, authorization_1, sessionId_1, ...args_1) => __awaiter(this, [updateControlSchema_1, authorization_1, sessionId_1, ...args_1], void 0, function* (updateControlSchema, authorization, sessionId, options = {}) {
|
|
1385
|
+
// verify required parameter 'updateControlSchema' is not null or undefined
|
|
1386
|
+
assertParamExists('updateControlV1ControlsUpdatePatch', 'updateControlSchema', updateControlSchema);
|
|
1387
|
+
const localVarPath = `/v1/controls/update`;
|
|
1388
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1389
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1390
|
+
let baseOptions;
|
|
1391
|
+
if (configuration) {
|
|
1392
|
+
baseOptions = configuration.baseOptions;
|
|
1393
|
+
}
|
|
1394
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
1395
|
+
const localVarHeaderParameter = {};
|
|
1396
|
+
const localVarQueryParameter = {};
|
|
1397
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1398
|
+
if (authorization != null) {
|
|
1399
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
1400
|
+
}
|
|
1401
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1402
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1403
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1404
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateControlSchema, localVarRequestOptions, configuration);
|
|
1405
|
+
return {
|
|
1406
|
+
url: toPathString(localVarUrlObj),
|
|
1407
|
+
options: localVarRequestOptions,
|
|
1408
|
+
};
|
|
1409
|
+
}),
|
|
1410
|
+
};
|
|
1411
|
+
};
|
|
1412
|
+
/**
|
|
1413
|
+
* ControlsApi - functional programming interface
|
|
1414
|
+
* @export
|
|
1415
|
+
*/
|
|
1416
|
+
export const ControlsApiFp = function (configuration) {
|
|
1417
|
+
const localVarAxiosParamCreator = ControlsApiAxiosParamCreator(configuration);
|
|
1418
|
+
return {
|
|
1419
|
+
/**
|
|
1420
|
+
*
|
|
1421
|
+
* @summary Get Control
|
|
1422
|
+
* @param {string} controlId
|
|
1423
|
+
* @param {string} [authorization]
|
|
1424
|
+
* @param {string} [sessionId]
|
|
1425
|
+
* @param {*} [options] Override http request option.
|
|
1426
|
+
* @throws {RequiredError}
|
|
1427
|
+
*/
|
|
1428
|
+
getControlV1ControlsControlIdGet(controlId, authorization, sessionId, options) {
|
|
1429
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1430
|
+
var _a, _b, _c;
|
|
1431
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getControlV1ControlsControlIdGet(controlId, authorization, sessionId, options);
|
|
1432
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1433
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ControlsApi.getControlV1ControlsControlIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1434
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1435
|
+
});
|
|
1436
|
+
},
|
|
1437
|
+
/**
|
|
1438
|
+
*
|
|
1439
|
+
* @summary Update Control
|
|
1440
|
+
* @param {UpdateControlSchema} updateControlSchema
|
|
1441
|
+
* @param {string} [authorization]
|
|
1442
|
+
* @param {string} [sessionId]
|
|
1443
|
+
* @param {*} [options] Override http request option.
|
|
1444
|
+
* @throws {RequiredError}
|
|
1445
|
+
*/
|
|
1446
|
+
updateControlV1ControlsUpdatePatch(updateControlSchema, authorization, sessionId, options) {
|
|
1447
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1448
|
+
var _a, _b, _c;
|
|
1449
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateControlV1ControlsUpdatePatch(updateControlSchema, authorization, sessionId, options);
|
|
1450
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1451
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ControlsApi.updateControlV1ControlsUpdatePatch']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1452
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1453
|
+
});
|
|
1454
|
+
},
|
|
1455
|
+
};
|
|
1456
|
+
};
|
|
1457
|
+
/**
|
|
1458
|
+
* ControlsApi - factory interface
|
|
1459
|
+
* @export
|
|
1460
|
+
*/
|
|
1461
|
+
export const ControlsApiFactory = function (configuration, basePath, axios) {
|
|
1462
|
+
const localVarFp = ControlsApiFp(configuration);
|
|
1463
|
+
return {
|
|
1464
|
+
/**
|
|
1465
|
+
*
|
|
1466
|
+
* @summary Get Control
|
|
1467
|
+
* @param {string} controlId
|
|
1468
|
+
* @param {string} [authorization]
|
|
1469
|
+
* @param {string} [sessionId]
|
|
1470
|
+
* @param {*} [options] Override http request option.
|
|
1471
|
+
* @throws {RequiredError}
|
|
1472
|
+
*/
|
|
1473
|
+
getControlV1ControlsControlIdGet(controlId, authorization, sessionId, options) {
|
|
1474
|
+
return localVarFp.getControlV1ControlsControlIdGet(controlId, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
1475
|
+
},
|
|
1476
|
+
/**
|
|
1477
|
+
*
|
|
1478
|
+
* @summary Update Control
|
|
1479
|
+
* @param {UpdateControlSchema} updateControlSchema
|
|
1480
|
+
* @param {string} [authorization]
|
|
1481
|
+
* @param {string} [sessionId]
|
|
1482
|
+
* @param {*} [options] Override http request option.
|
|
1483
|
+
* @throws {RequiredError}
|
|
1484
|
+
*/
|
|
1485
|
+
updateControlV1ControlsUpdatePatch(updateControlSchema, authorization, sessionId, options) {
|
|
1486
|
+
return localVarFp.updateControlV1ControlsUpdatePatch(updateControlSchema, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
1487
|
+
},
|
|
1488
|
+
};
|
|
1489
|
+
};
|
|
1490
|
+
/**
|
|
1491
|
+
* ControlsApi - object-oriented interface
|
|
1492
|
+
* @export
|
|
1493
|
+
* @class ControlsApi
|
|
1494
|
+
* @extends {BaseAPI}
|
|
1495
|
+
*/
|
|
1496
|
+
export class ControlsApi extends BaseAPI {
|
|
1497
|
+
/**
|
|
1498
|
+
*
|
|
1499
|
+
* @summary Get Control
|
|
1500
|
+
* @param {string} controlId
|
|
1501
|
+
* @param {string} [authorization]
|
|
1502
|
+
* @param {string} [sessionId]
|
|
1503
|
+
* @param {*} [options] Override http request option.
|
|
1504
|
+
* @throws {RequiredError}
|
|
1505
|
+
* @memberof ControlsApi
|
|
1506
|
+
*/
|
|
1507
|
+
getControlV1ControlsControlIdGet(controlId, authorization, sessionId, options) {
|
|
1508
|
+
return ControlsApiFp(this.configuration).getControlV1ControlsControlIdGet(controlId, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
1509
|
+
}
|
|
1510
|
+
/**
|
|
1511
|
+
*
|
|
1512
|
+
* @summary Update Control
|
|
1513
|
+
* @param {UpdateControlSchema} updateControlSchema
|
|
1514
|
+
* @param {string} [authorization]
|
|
1515
|
+
* @param {string} [sessionId]
|
|
1516
|
+
* @param {*} [options] Override http request option.
|
|
1517
|
+
* @throws {RequiredError}
|
|
1518
|
+
* @memberof ControlsApi
|
|
1519
|
+
*/
|
|
1520
|
+
updateControlV1ControlsUpdatePatch(updateControlSchema, authorization, sessionId, options) {
|
|
1521
|
+
return ControlsApiFp(this.configuration).updateControlV1ControlsUpdatePatch(updateControlSchema, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
1522
|
+
}
|
|
1523
|
+
}
|
|
1524
|
+
/**
|
|
1525
|
+
* DefaultApi - axios parameter creator
|
|
1526
|
+
* @export
|
|
1527
|
+
*/
|
|
1528
|
+
export const DefaultApiAxiosParamCreator = function (configuration) {
|
|
1529
|
+
return {
|
|
1530
|
+
/**
|
|
1531
|
+
*
|
|
1532
|
+
* @summary Get Db Health
|
|
1533
|
+
* @param {*} [options] Override http request option.
|
|
1534
|
+
* @throws {RequiredError}
|
|
1535
|
+
*/
|
|
1536
|
+
getDbHealthHealthDbGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1537
|
+
const localVarPath = `/health/db`;
|
|
1538
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1539
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1540
|
+
let baseOptions;
|
|
1541
|
+
if (configuration) {
|
|
1542
|
+
baseOptions = configuration.baseOptions;
|
|
1543
|
+
}
|
|
1544
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1545
|
+
const localVarHeaderParameter = {};
|
|
1546
|
+
const localVarQueryParameter = {};
|
|
1547
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1548
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1549
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1550
|
+
return {
|
|
1551
|
+
url: toPathString(localVarUrlObj),
|
|
1552
|
+
options: localVarRequestOptions,
|
|
1553
|
+
};
|
|
1554
|
+
}),
|
|
1555
|
+
/**
|
|
1556
|
+
*
|
|
1557
|
+
* @summary Get Health
|
|
1558
|
+
* @param {*} [options] Override http request option.
|
|
1559
|
+
* @throws {RequiredError}
|
|
1560
|
+
*/
|
|
1561
|
+
getHealthHealthGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1562
|
+
const localVarPath = `/health`;
|
|
1563
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1564
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1565
|
+
let baseOptions;
|
|
1566
|
+
if (configuration) {
|
|
1567
|
+
baseOptions = configuration.baseOptions;
|
|
1568
|
+
}
|
|
1569
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1570
|
+
const localVarHeaderParameter = {};
|
|
1571
|
+
const localVarQueryParameter = {};
|
|
1572
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1573
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1574
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1575
|
+
return {
|
|
1576
|
+
url: toPathString(localVarUrlObj),
|
|
1577
|
+
options: localVarRequestOptions,
|
|
1578
|
+
};
|
|
1579
|
+
}),
|
|
1580
|
+
/**
|
|
1581
|
+
*
|
|
1582
|
+
* @summary Get Listmonk Health
|
|
1583
|
+
* @param {*} [options] Override http request option.
|
|
1584
|
+
* @throws {RequiredError}
|
|
1585
|
+
*/
|
|
1586
|
+
getListmonkHealthHealthListmonkGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1587
|
+
const localVarPath = `/health/listmonk`;
|
|
1588
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1589
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1590
|
+
let baseOptions;
|
|
1591
|
+
if (configuration) {
|
|
1592
|
+
baseOptions = configuration.baseOptions;
|
|
1593
|
+
}
|
|
1594
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1595
|
+
const localVarHeaderParameter = {};
|
|
1596
|
+
const localVarQueryParameter = {};
|
|
1597
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1598
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1599
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1600
|
+
return {
|
|
1601
|
+
url: toPathString(localVarUrlObj),
|
|
1602
|
+
options: localVarRequestOptions,
|
|
1603
|
+
};
|
|
1604
|
+
}),
|
|
1605
|
+
/**
|
|
1606
|
+
*
|
|
1607
|
+
* @summary Get Redis Health
|
|
1608
|
+
* @param {*} [options] Override http request option.
|
|
1609
|
+
* @throws {RequiredError}
|
|
1610
|
+
*/
|
|
1611
|
+
getRedisHealthHealthRedisGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1612
|
+
const localVarPath = `/health/redis`;
|
|
1613
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1614
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1615
|
+
let baseOptions;
|
|
1616
|
+
if (configuration) {
|
|
1617
|
+
baseOptions = configuration.baseOptions;
|
|
1618
|
+
}
|
|
1619
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1620
|
+
const localVarHeaderParameter = {};
|
|
1621
|
+
const localVarQueryParameter = {};
|
|
1622
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1623
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1624
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1625
|
+
return {
|
|
1626
|
+
url: toPathString(localVarUrlObj),
|
|
1627
|
+
options: localVarRequestOptions,
|
|
1628
|
+
};
|
|
1629
|
+
}),
|
|
1630
|
+
};
|
|
1631
|
+
};
|
|
1632
|
+
/**
|
|
1633
|
+
* DefaultApi - functional programming interface
|
|
1634
|
+
* @export
|
|
1635
|
+
*/
|
|
1636
|
+
export const DefaultApiFp = function (configuration) {
|
|
1637
|
+
const localVarAxiosParamCreator = DefaultApiAxiosParamCreator(configuration);
|
|
1638
|
+
return {
|
|
1639
|
+
/**
|
|
1640
|
+
*
|
|
1641
|
+
* @summary Get Db Health
|
|
1642
|
+
* @param {*} [options] Override http request option.
|
|
1643
|
+
* @throws {RequiredError}
|
|
1644
|
+
*/
|
|
1645
|
+
getDbHealthHealthDbGet(options) {
|
|
1646
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1647
|
+
var _a, _b, _c;
|
|
1648
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getDbHealthHealthDbGet(options);
|
|
1649
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1650
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DefaultApi.getDbHealthHealthDbGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1651
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1652
|
+
});
|
|
1653
|
+
},
|
|
1654
|
+
/**
|
|
1655
|
+
*
|
|
1656
|
+
* @summary Get Health
|
|
1657
|
+
* @param {*} [options] Override http request option.
|
|
1658
|
+
* @throws {RequiredError}
|
|
1659
|
+
*/
|
|
1660
|
+
getHealthHealthGet(options) {
|
|
1661
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1662
|
+
var _a, _b, _c;
|
|
1663
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getHealthHealthGet(options);
|
|
1664
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1665
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DefaultApi.getHealthHealthGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1666
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1667
|
+
});
|
|
1668
|
+
},
|
|
1669
|
+
/**
|
|
1670
|
+
*
|
|
1671
|
+
* @summary Get Listmonk Health
|
|
1672
|
+
* @param {*} [options] Override http request option.
|
|
1673
|
+
* @throws {RequiredError}
|
|
1674
|
+
*/
|
|
1675
|
+
getListmonkHealthHealthListmonkGet(options) {
|
|
1676
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1677
|
+
var _a, _b, _c;
|
|
1678
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getListmonkHealthHealthListmonkGet(options);
|
|
1679
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1680
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DefaultApi.getListmonkHealthHealthListmonkGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1681
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1682
|
+
});
|
|
1683
|
+
},
|
|
1684
|
+
/**
|
|
1685
|
+
*
|
|
1686
|
+
* @summary Get Redis Health
|
|
1687
|
+
* @param {*} [options] Override http request option.
|
|
1688
|
+
* @throws {RequiredError}
|
|
1689
|
+
*/
|
|
1690
|
+
getRedisHealthHealthRedisGet(options) {
|
|
1691
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1692
|
+
var _a, _b, _c;
|
|
1693
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getRedisHealthHealthRedisGet(options);
|
|
1694
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1695
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DefaultApi.getRedisHealthHealthRedisGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1696
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1697
|
+
});
|
|
1698
|
+
},
|
|
1699
|
+
};
|
|
1700
|
+
};
|
|
1701
|
+
/**
|
|
1702
|
+
* DefaultApi - factory interface
|
|
1703
|
+
* @export
|
|
1704
|
+
*/
|
|
1705
|
+
export const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
1706
|
+
const localVarFp = DefaultApiFp(configuration);
|
|
1707
|
+
return {
|
|
1708
|
+
/**
|
|
1709
|
+
*
|
|
1710
|
+
* @summary Get Db Health
|
|
1711
|
+
* @param {*} [options] Override http request option.
|
|
1712
|
+
* @throws {RequiredError}
|
|
1713
|
+
*/
|
|
1714
|
+
getDbHealthHealthDbGet(options) {
|
|
1715
|
+
return localVarFp.getDbHealthHealthDbGet(options).then((request) => request(axios, basePath));
|
|
1716
|
+
},
|
|
1717
|
+
/**
|
|
1718
|
+
*
|
|
1719
|
+
* @summary Get Health
|
|
1720
|
+
* @param {*} [options] Override http request option.
|
|
1721
|
+
* @throws {RequiredError}
|
|
1722
|
+
*/
|
|
1723
|
+
getHealthHealthGet(options) {
|
|
1724
|
+
return localVarFp.getHealthHealthGet(options).then((request) => request(axios, basePath));
|
|
1725
|
+
},
|
|
1726
|
+
/**
|
|
1727
|
+
*
|
|
1728
|
+
* @summary Get Listmonk Health
|
|
1729
|
+
* @param {*} [options] Override http request option.
|
|
1730
|
+
* @throws {RequiredError}
|
|
1731
|
+
*/
|
|
1732
|
+
getListmonkHealthHealthListmonkGet(options) {
|
|
1733
|
+
return localVarFp.getListmonkHealthHealthListmonkGet(options).then((request) => request(axios, basePath));
|
|
1734
|
+
},
|
|
1735
|
+
/**
|
|
1736
|
+
*
|
|
1737
|
+
* @summary Get Redis Health
|
|
1738
|
+
* @param {*} [options] Override http request option.
|
|
1739
|
+
* @throws {RequiredError}
|
|
1740
|
+
*/
|
|
1741
|
+
getRedisHealthHealthRedisGet(options) {
|
|
1742
|
+
return localVarFp.getRedisHealthHealthRedisGet(options).then((request) => request(axios, basePath));
|
|
1743
|
+
},
|
|
1744
|
+
};
|
|
1745
|
+
};
|
|
1746
|
+
/**
|
|
1747
|
+
* DefaultApi - object-oriented interface
|
|
1748
|
+
* @export
|
|
1749
|
+
* @class DefaultApi
|
|
1750
|
+
* @extends {BaseAPI}
|
|
1751
|
+
*/
|
|
1752
|
+
export class DefaultApi extends BaseAPI {
|
|
1753
|
+
/**
|
|
1754
|
+
*
|
|
1755
|
+
* @summary Get Db Health
|
|
1756
|
+
* @param {*} [options] Override http request option.
|
|
1757
|
+
* @throws {RequiredError}
|
|
1758
|
+
* @memberof DefaultApi
|
|
1759
|
+
*/
|
|
1760
|
+
getDbHealthHealthDbGet(options) {
|
|
1761
|
+
return DefaultApiFp(this.configuration).getDbHealthHealthDbGet(options).then((request) => request(this.axios, this.basePath));
|
|
1762
|
+
}
|
|
1763
|
+
/**
|
|
1764
|
+
*
|
|
1765
|
+
* @summary Get Health
|
|
1766
|
+
* @param {*} [options] Override http request option.
|
|
1767
|
+
* @throws {RequiredError}
|
|
1768
|
+
* @memberof DefaultApi
|
|
1769
|
+
*/
|
|
1770
|
+
getHealthHealthGet(options) {
|
|
1771
|
+
return DefaultApiFp(this.configuration).getHealthHealthGet(options).then((request) => request(this.axios, this.basePath));
|
|
1772
|
+
}
|
|
1773
|
+
/**
|
|
1774
|
+
*
|
|
1775
|
+
* @summary Get Listmonk Health
|
|
1776
|
+
* @param {*} [options] Override http request option.
|
|
1777
|
+
* @throws {RequiredError}
|
|
1778
|
+
* @memberof DefaultApi
|
|
1779
|
+
*/
|
|
1780
|
+
getListmonkHealthHealthListmonkGet(options) {
|
|
1781
|
+
return DefaultApiFp(this.configuration).getListmonkHealthHealthListmonkGet(options).then((request) => request(this.axios, this.basePath));
|
|
1782
|
+
}
|
|
1783
|
+
/**
|
|
1784
|
+
*
|
|
1785
|
+
* @summary Get Redis Health
|
|
1786
|
+
* @param {*} [options] Override http request option.
|
|
1787
|
+
* @throws {RequiredError}
|
|
1788
|
+
* @memberof DefaultApi
|
|
1789
|
+
*/
|
|
1790
|
+
getRedisHealthHealthRedisGet(options) {
|
|
1791
|
+
return DefaultApiFp(this.configuration).getRedisHealthHealthRedisGet(options).then((request) => request(this.axios, this.basePath));
|
|
1792
|
+
}
|
|
1793
|
+
}
|
|
1794
|
+
/**
|
|
1795
|
+
* EvidenceApi - axios parameter creator
|
|
1796
|
+
* @export
|
|
1797
|
+
*/
|
|
1798
|
+
export const EvidenceApiAxiosParamCreator = function (configuration) {
|
|
1799
|
+
return {
|
|
1800
|
+
/**
|
|
1801
|
+
*
|
|
1802
|
+
* @summary Delete Evidence
|
|
1803
|
+
* @param {string} evidenceId
|
|
1804
|
+
* @param {string} [authorization]
|
|
1805
|
+
* @param {string} [sessionId]
|
|
1806
|
+
* @param {*} [options] Override http request option.
|
|
1807
|
+
* @throws {RequiredError}
|
|
1808
|
+
*/
|
|
1809
|
+
deleteEvidenceV1EvidenceDeleteDelete: (evidenceId_1, authorization_1, sessionId_1, ...args_1) => __awaiter(this, [evidenceId_1, authorization_1, sessionId_1, ...args_1], void 0, function* (evidenceId, authorization, sessionId, options = {}) {
|
|
1810
|
+
// verify required parameter 'evidenceId' is not null or undefined
|
|
1811
|
+
assertParamExists('deleteEvidenceV1EvidenceDeleteDelete', 'evidenceId', evidenceId);
|
|
1812
|
+
const localVarPath = `/v1/evidence/delete`;
|
|
1813
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1814
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1815
|
+
let baseOptions;
|
|
1816
|
+
if (configuration) {
|
|
1817
|
+
baseOptions = configuration.baseOptions;
|
|
1818
|
+
}
|
|
1819
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
1820
|
+
const localVarHeaderParameter = {};
|
|
1821
|
+
const localVarQueryParameter = {};
|
|
1822
|
+
const localVarFormParams = new URLSearchParams();
|
|
1823
|
+
if (evidenceId !== undefined) {
|
|
1824
|
+
localVarFormParams.set('evidence_id', evidenceId);
|
|
1825
|
+
}
|
|
1826
|
+
localVarHeaderParameter['Content-Type'] = 'application/x-www-form-urlencoded';
|
|
1827
|
+
if (authorization != null) {
|
|
1828
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
1829
|
+
}
|
|
1830
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1831
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1832
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1833
|
+
localVarRequestOptions.data = localVarFormParams.toString();
|
|
1834
|
+
return {
|
|
1835
|
+
url: toPathString(localVarUrlObj),
|
|
1836
|
+
options: localVarRequestOptions,
|
|
1837
|
+
};
|
|
1838
|
+
}),
|
|
1839
|
+
/**
|
|
1840
|
+
*
|
|
1841
|
+
* @summary Get Evidence Files
|
|
1842
|
+
* @param {string} evidenceId
|
|
1843
|
+
* @param {string} [authorization]
|
|
1844
|
+
* @param {string} [sessionId]
|
|
1845
|
+
* @param {*} [options] Override http request option.
|
|
1846
|
+
* @throws {RequiredError}
|
|
1847
|
+
*/
|
|
1848
|
+
getEvidenceFilesV1EvidenceFileEvidenceIdGet: (evidenceId_1, authorization_1, sessionId_1, ...args_1) => __awaiter(this, [evidenceId_1, authorization_1, sessionId_1, ...args_1], void 0, function* (evidenceId, authorization, sessionId, options = {}) {
|
|
1849
|
+
// verify required parameter 'evidenceId' is not null or undefined
|
|
1850
|
+
assertParamExists('getEvidenceFilesV1EvidenceFileEvidenceIdGet', 'evidenceId', evidenceId);
|
|
1851
|
+
const localVarPath = `/v1/evidence/file/{evidence_id}`
|
|
1852
|
+
.replace(`{${"evidence_id"}}`, encodeURIComponent(String(evidenceId)));
|
|
1853
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1854
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1855
|
+
let baseOptions;
|
|
1856
|
+
if (configuration) {
|
|
1857
|
+
baseOptions = configuration.baseOptions;
|
|
1858
|
+
}
|
|
1859
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1860
|
+
const localVarHeaderParameter = {};
|
|
1861
|
+
const localVarQueryParameter = {};
|
|
1862
|
+
if (authorization != null) {
|
|
1863
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
1864
|
+
}
|
|
1865
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1866
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1867
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1868
|
+
return {
|
|
1869
|
+
url: toPathString(localVarUrlObj),
|
|
1870
|
+
options: localVarRequestOptions,
|
|
1871
|
+
};
|
|
1872
|
+
}),
|
|
1873
|
+
/**
|
|
1874
|
+
*
|
|
1875
|
+
* @summary List Company Evidence
|
|
1876
|
+
* @param {string} companyId
|
|
1877
|
+
* @param {string} [authorization]
|
|
1878
|
+
* @param {string} [sessionId]
|
|
1879
|
+
* @param {*} [options] Override http request option.
|
|
1880
|
+
* @throws {RequiredError}
|
|
1881
|
+
*/
|
|
1882
|
+
listCompanyEvidenceV1EvidenceCompanyCompanyIdGet: (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 = {}) {
|
|
1883
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
1884
|
+
assertParamExists('listCompanyEvidenceV1EvidenceCompanyCompanyIdGet', 'companyId', companyId);
|
|
1885
|
+
const localVarPath = `/v1/evidence/company/{company_id}`
|
|
1886
|
+
.replace(`{${"company_id"}}`, encodeURIComponent(String(companyId)));
|
|
1887
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1888
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1889
|
+
let baseOptions;
|
|
1890
|
+
if (configuration) {
|
|
1891
|
+
baseOptions = configuration.baseOptions;
|
|
1892
|
+
}
|
|
1893
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1894
|
+
const localVarHeaderParameter = {};
|
|
1895
|
+
const localVarQueryParameter = {};
|
|
1896
|
+
if (authorization != null) {
|
|
1897
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
1898
|
+
}
|
|
1899
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1900
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1901
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1902
|
+
return {
|
|
1903
|
+
url: toPathString(localVarUrlObj),
|
|
1904
|
+
options: localVarRequestOptions,
|
|
1905
|
+
};
|
|
1906
|
+
}),
|
|
1907
|
+
/**
|
|
1908
|
+
*
|
|
1909
|
+
* @summary Update Evidence
|
|
1910
|
+
* @param {string} evidenceId
|
|
1911
|
+
* @param {string} text
|
|
1912
|
+
* @param {string} [authorization]
|
|
1913
|
+
* @param {string} [sessionId]
|
|
1914
|
+
* @param {*} [options] Override http request option.
|
|
1915
|
+
* @throws {RequiredError}
|
|
1916
|
+
*/
|
|
1917
|
+
updateEvidenceV1EvidenceUpdatePut: (evidenceId_1, text_1, authorization_1, sessionId_1, ...args_1) => __awaiter(this, [evidenceId_1, text_1, authorization_1, sessionId_1, ...args_1], void 0, function* (evidenceId, text, authorization, sessionId, options = {}) {
|
|
1918
|
+
// verify required parameter 'evidenceId' is not null or undefined
|
|
1919
|
+
assertParamExists('updateEvidenceV1EvidenceUpdatePut', 'evidenceId', evidenceId);
|
|
1920
|
+
// verify required parameter 'text' is not null or undefined
|
|
1921
|
+
assertParamExists('updateEvidenceV1EvidenceUpdatePut', 'text', text);
|
|
1922
|
+
const localVarPath = `/v1/evidence/update`;
|
|
1923
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1924
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1925
|
+
let baseOptions;
|
|
1926
|
+
if (configuration) {
|
|
1927
|
+
baseOptions = configuration.baseOptions;
|
|
1928
|
+
}
|
|
1929
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
1930
|
+
const localVarHeaderParameter = {};
|
|
1931
|
+
const localVarQueryParameter = {};
|
|
1932
|
+
const localVarFormParams = new URLSearchParams();
|
|
1933
|
+
if (evidenceId !== undefined) {
|
|
1934
|
+
localVarFormParams.set('evidence_id', evidenceId);
|
|
1935
|
+
}
|
|
1936
|
+
if (text !== undefined) {
|
|
1937
|
+
localVarFormParams.set('text', text);
|
|
1938
|
+
}
|
|
1939
|
+
localVarHeaderParameter['Content-Type'] = 'application/x-www-form-urlencoded';
|
|
1940
|
+
if (authorization != null) {
|
|
1941
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
1942
|
+
}
|
|
1943
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1944
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1945
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1946
|
+
localVarRequestOptions.data = localVarFormParams.toString();
|
|
1947
|
+
return {
|
|
1948
|
+
url: toPathString(localVarUrlObj),
|
|
1949
|
+
options: localVarRequestOptions,
|
|
1950
|
+
};
|
|
1951
|
+
}),
|
|
1952
|
+
/**
|
|
1953
|
+
*
|
|
1954
|
+
* @summary Upload Evidence
|
|
1955
|
+
* @param {string} companyId
|
|
1956
|
+
* @param {string} controlId
|
|
1957
|
+
* @param {File | null} file
|
|
1958
|
+
* @param {string | null} text
|
|
1959
|
+
* @param {string} [authorization]
|
|
1960
|
+
* @param {string} [sessionId]
|
|
1961
|
+
* @param {*} [options] Override http request option.
|
|
1962
|
+
* @throws {RequiredError}
|
|
1963
|
+
*/
|
|
1964
|
+
uploadEvidenceV1EvidenceUploadPost: (companyId_1, controlId_1, file_1, text_1, authorization_1, sessionId_1, ...args_1) => __awaiter(this, [companyId_1, controlId_1, file_1, text_1, authorization_1, sessionId_1, ...args_1], void 0, function* (companyId, controlId, file, text, authorization, sessionId, options = {}) {
|
|
1965
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
1966
|
+
assertParamExists('uploadEvidenceV1EvidenceUploadPost', 'companyId', companyId);
|
|
1967
|
+
// verify required parameter 'controlId' is not null or undefined
|
|
1968
|
+
assertParamExists('uploadEvidenceV1EvidenceUploadPost', 'controlId', controlId);
|
|
1969
|
+
// verify required parameter 'file' is not null or undefined
|
|
1970
|
+
assertParamExists('uploadEvidenceV1EvidenceUploadPost', 'file', file);
|
|
1971
|
+
// verify required parameter 'text' is not null or undefined
|
|
1972
|
+
assertParamExists('uploadEvidenceV1EvidenceUploadPost', 'text', text);
|
|
1973
|
+
const localVarPath = `/v1/evidence/upload`;
|
|
1974
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1975
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1976
|
+
let baseOptions;
|
|
1977
|
+
if (configuration) {
|
|
1978
|
+
baseOptions = configuration.baseOptions;
|
|
1979
|
+
}
|
|
1980
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1981
|
+
const localVarHeaderParameter = {};
|
|
1982
|
+
const localVarQueryParameter = {};
|
|
1983
|
+
const localVarFormParams = new URLSearchParams();
|
|
1984
|
+
if (companyId !== undefined) {
|
|
1985
|
+
localVarFormParams.set('company_id', companyId);
|
|
1986
|
+
}
|
|
1987
|
+
if (controlId !== undefined) {
|
|
1988
|
+
localVarFormParams.set('control_id', controlId);
|
|
1989
|
+
}
|
|
1990
|
+
if (file !== undefined) {
|
|
1991
|
+
localVarFormParams.set('file', file);
|
|
1992
|
+
}
|
|
1993
|
+
if (text !== undefined) {
|
|
1994
|
+
localVarFormParams.set('text', text);
|
|
1995
|
+
}
|
|
1996
|
+
localVarHeaderParameter['Content-Type'] = 'application/x-www-form-urlencoded';
|
|
1997
|
+
if (authorization != null) {
|
|
1998
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
1999
|
+
}
|
|
2000
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2001
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2002
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2003
|
+
localVarRequestOptions.data = localVarFormParams.toString();
|
|
2004
|
+
return {
|
|
2005
|
+
url: toPathString(localVarUrlObj),
|
|
2006
|
+
options: localVarRequestOptions,
|
|
2007
|
+
};
|
|
2008
|
+
}),
|
|
2009
|
+
};
|
|
2010
|
+
};
|
|
2011
|
+
/**
|
|
2012
|
+
* EvidenceApi - functional programming interface
|
|
2013
|
+
* @export
|
|
2014
|
+
*/
|
|
2015
|
+
export const EvidenceApiFp = function (configuration) {
|
|
2016
|
+
const localVarAxiosParamCreator = EvidenceApiAxiosParamCreator(configuration);
|
|
2017
|
+
return {
|
|
2018
|
+
/**
|
|
2019
|
+
*
|
|
2020
|
+
* @summary Delete Evidence
|
|
2021
|
+
* @param {string} evidenceId
|
|
2022
|
+
* @param {string} [authorization]
|
|
2023
|
+
* @param {string} [sessionId]
|
|
2024
|
+
* @param {*} [options] Override http request option.
|
|
2025
|
+
* @throws {RequiredError}
|
|
2026
|
+
*/
|
|
2027
|
+
deleteEvidenceV1EvidenceDeleteDelete(evidenceId, authorization, sessionId, options) {
|
|
2028
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2029
|
+
var _a, _b, _c;
|
|
2030
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteEvidenceV1EvidenceDeleteDelete(evidenceId, authorization, sessionId, options);
|
|
2031
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2032
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EvidenceApi.deleteEvidenceV1EvidenceDeleteDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2033
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2034
|
+
});
|
|
2035
|
+
},
|
|
2036
|
+
/**
|
|
2037
|
+
*
|
|
2038
|
+
* @summary Get Evidence Files
|
|
2039
|
+
* @param {string} evidenceId
|
|
2040
|
+
* @param {string} [authorization]
|
|
2041
|
+
* @param {string} [sessionId]
|
|
2042
|
+
* @param {*} [options] Override http request option.
|
|
2043
|
+
* @throws {RequiredError}
|
|
2044
|
+
*/
|
|
2045
|
+
getEvidenceFilesV1EvidenceFileEvidenceIdGet(evidenceId, authorization, sessionId, options) {
|
|
2046
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2047
|
+
var _a, _b, _c;
|
|
2048
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getEvidenceFilesV1EvidenceFileEvidenceIdGet(evidenceId, authorization, sessionId, options);
|
|
2049
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2050
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EvidenceApi.getEvidenceFilesV1EvidenceFileEvidenceIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2051
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2052
|
+
});
|
|
2053
|
+
},
|
|
2054
|
+
/**
|
|
2055
|
+
*
|
|
2056
|
+
* @summary List Company Evidence
|
|
2057
|
+
* @param {string} companyId
|
|
2058
|
+
* @param {string} [authorization]
|
|
2059
|
+
* @param {string} [sessionId]
|
|
2060
|
+
* @param {*} [options] Override http request option.
|
|
2061
|
+
* @throws {RequiredError}
|
|
2062
|
+
*/
|
|
2063
|
+
listCompanyEvidenceV1EvidenceCompanyCompanyIdGet(companyId, authorization, sessionId, options) {
|
|
2064
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2065
|
+
var _a, _b, _c;
|
|
2066
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listCompanyEvidenceV1EvidenceCompanyCompanyIdGet(companyId, authorization, sessionId, options);
|
|
2067
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2068
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EvidenceApi.listCompanyEvidenceV1EvidenceCompanyCompanyIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2069
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2070
|
+
});
|
|
2071
|
+
},
|
|
2072
|
+
/**
|
|
2073
|
+
*
|
|
2074
|
+
* @summary Update Evidence
|
|
2075
|
+
* @param {string} evidenceId
|
|
2076
|
+
* @param {string} text
|
|
2077
|
+
* @param {string} [authorization]
|
|
2078
|
+
* @param {string} [sessionId]
|
|
2079
|
+
* @param {*} [options] Override http request option.
|
|
2080
|
+
* @throws {RequiredError}
|
|
2081
|
+
*/
|
|
2082
|
+
updateEvidenceV1EvidenceUpdatePut(evidenceId, text, authorization, sessionId, options) {
|
|
2083
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2084
|
+
var _a, _b, _c;
|
|
2085
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateEvidenceV1EvidenceUpdatePut(evidenceId, text, authorization, sessionId, options);
|
|
2086
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2087
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EvidenceApi.updateEvidenceV1EvidenceUpdatePut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2088
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2089
|
+
});
|
|
2090
|
+
},
|
|
2091
|
+
/**
|
|
2092
|
+
*
|
|
2093
|
+
* @summary Upload Evidence
|
|
2094
|
+
* @param {string} companyId
|
|
2095
|
+
* @param {string} controlId
|
|
2096
|
+
* @param {File | null} file
|
|
2097
|
+
* @param {string | null} text
|
|
2098
|
+
* @param {string} [authorization]
|
|
2099
|
+
* @param {string} [sessionId]
|
|
2100
|
+
* @param {*} [options] Override http request option.
|
|
2101
|
+
* @throws {RequiredError}
|
|
2102
|
+
*/
|
|
2103
|
+
uploadEvidenceV1EvidenceUploadPost(companyId, controlId, file, text, authorization, sessionId, options) {
|
|
2104
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2105
|
+
var _a, _b, _c;
|
|
2106
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.uploadEvidenceV1EvidenceUploadPost(companyId, controlId, file, text, authorization, sessionId, options);
|
|
2107
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2108
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EvidenceApi.uploadEvidenceV1EvidenceUploadPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2109
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2110
|
+
});
|
|
2111
|
+
},
|
|
2112
|
+
};
|
|
2113
|
+
};
|
|
2114
|
+
/**
|
|
2115
|
+
* EvidenceApi - factory interface
|
|
2116
|
+
* @export
|
|
2117
|
+
*/
|
|
2118
|
+
export const EvidenceApiFactory = function (configuration, basePath, axios) {
|
|
2119
|
+
const localVarFp = EvidenceApiFp(configuration);
|
|
2120
|
+
return {
|
|
2121
|
+
/**
|
|
2122
|
+
*
|
|
2123
|
+
* @summary Delete Evidence
|
|
2124
|
+
* @param {string} evidenceId
|
|
2125
|
+
* @param {string} [authorization]
|
|
2126
|
+
* @param {string} [sessionId]
|
|
2127
|
+
* @param {*} [options] Override http request option.
|
|
2128
|
+
* @throws {RequiredError}
|
|
2129
|
+
*/
|
|
2130
|
+
deleteEvidenceV1EvidenceDeleteDelete(evidenceId, authorization, sessionId, options) {
|
|
2131
|
+
return localVarFp.deleteEvidenceV1EvidenceDeleteDelete(evidenceId, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
2132
|
+
},
|
|
2133
|
+
/**
|
|
2134
|
+
*
|
|
2135
|
+
* @summary Get Evidence Files
|
|
2136
|
+
* @param {string} evidenceId
|
|
2137
|
+
* @param {string} [authorization]
|
|
2138
|
+
* @param {string} [sessionId]
|
|
2139
|
+
* @param {*} [options] Override http request option.
|
|
2140
|
+
* @throws {RequiredError}
|
|
2141
|
+
*/
|
|
2142
|
+
getEvidenceFilesV1EvidenceFileEvidenceIdGet(evidenceId, authorization, sessionId, options) {
|
|
2143
|
+
return localVarFp.getEvidenceFilesV1EvidenceFileEvidenceIdGet(evidenceId, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
2144
|
+
},
|
|
2145
|
+
/**
|
|
2146
|
+
*
|
|
2147
|
+
* @summary List Company Evidence
|
|
2148
|
+
* @param {string} companyId
|
|
2149
|
+
* @param {string} [authorization]
|
|
2150
|
+
* @param {string} [sessionId]
|
|
2151
|
+
* @param {*} [options] Override http request option.
|
|
2152
|
+
* @throws {RequiredError}
|
|
2153
|
+
*/
|
|
2154
|
+
listCompanyEvidenceV1EvidenceCompanyCompanyIdGet(companyId, authorization, sessionId, options) {
|
|
2155
|
+
return localVarFp.listCompanyEvidenceV1EvidenceCompanyCompanyIdGet(companyId, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
2156
|
+
},
|
|
2157
|
+
/**
|
|
2158
|
+
*
|
|
2159
|
+
* @summary Update Evidence
|
|
2160
|
+
* @param {string} evidenceId
|
|
2161
|
+
* @param {string} text
|
|
2162
|
+
* @param {string} [authorization]
|
|
2163
|
+
* @param {string} [sessionId]
|
|
2164
|
+
* @param {*} [options] Override http request option.
|
|
2165
|
+
* @throws {RequiredError}
|
|
2166
|
+
*/
|
|
2167
|
+
updateEvidenceV1EvidenceUpdatePut(evidenceId, text, authorization, sessionId, options) {
|
|
2168
|
+
return localVarFp.updateEvidenceV1EvidenceUpdatePut(evidenceId, text, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
2169
|
+
},
|
|
2170
|
+
/**
|
|
2171
|
+
*
|
|
2172
|
+
* @summary Upload Evidence
|
|
2173
|
+
* @param {string} companyId
|
|
2174
|
+
* @param {string} controlId
|
|
2175
|
+
* @param {File | null} file
|
|
2176
|
+
* @param {string | null} text
|
|
2177
|
+
* @param {string} [authorization]
|
|
2178
|
+
* @param {string} [sessionId]
|
|
2179
|
+
* @param {*} [options] Override http request option.
|
|
2180
|
+
* @throws {RequiredError}
|
|
2181
|
+
*/
|
|
2182
|
+
uploadEvidenceV1EvidenceUploadPost(companyId, controlId, file, text, authorization, sessionId, options) {
|
|
2183
|
+
return localVarFp.uploadEvidenceV1EvidenceUploadPost(companyId, controlId, file, text, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
2184
|
+
},
|
|
2185
|
+
};
|
|
2186
|
+
};
|
|
2187
|
+
/**
|
|
2188
|
+
* EvidenceApi - object-oriented interface
|
|
2189
|
+
* @export
|
|
2190
|
+
* @class EvidenceApi
|
|
2191
|
+
* @extends {BaseAPI}
|
|
2192
|
+
*/
|
|
2193
|
+
export class EvidenceApi extends BaseAPI {
|
|
2194
|
+
/**
|
|
2195
|
+
*
|
|
2196
|
+
* @summary Delete Evidence
|
|
2197
|
+
* @param {string} evidenceId
|
|
2198
|
+
* @param {string} [authorization]
|
|
2199
|
+
* @param {string} [sessionId]
|
|
2200
|
+
* @param {*} [options] Override http request option.
|
|
2201
|
+
* @throws {RequiredError}
|
|
2202
|
+
* @memberof EvidenceApi
|
|
2203
|
+
*/
|
|
2204
|
+
deleteEvidenceV1EvidenceDeleteDelete(evidenceId, authorization, sessionId, options) {
|
|
2205
|
+
return EvidenceApiFp(this.configuration).deleteEvidenceV1EvidenceDeleteDelete(evidenceId, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
2206
|
+
}
|
|
2207
|
+
/**
|
|
2208
|
+
*
|
|
2209
|
+
* @summary Get Evidence Files
|
|
2210
|
+
* @param {string} evidenceId
|
|
2211
|
+
* @param {string} [authorization]
|
|
2212
|
+
* @param {string} [sessionId]
|
|
2213
|
+
* @param {*} [options] Override http request option.
|
|
2214
|
+
* @throws {RequiredError}
|
|
2215
|
+
* @memberof EvidenceApi
|
|
2216
|
+
*/
|
|
2217
|
+
getEvidenceFilesV1EvidenceFileEvidenceIdGet(evidenceId, authorization, sessionId, options) {
|
|
2218
|
+
return EvidenceApiFp(this.configuration).getEvidenceFilesV1EvidenceFileEvidenceIdGet(evidenceId, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
2219
|
+
}
|
|
2220
|
+
/**
|
|
2221
|
+
*
|
|
2222
|
+
* @summary List Company Evidence
|
|
2223
|
+
* @param {string} companyId
|
|
2224
|
+
* @param {string} [authorization]
|
|
2225
|
+
* @param {string} [sessionId]
|
|
2226
|
+
* @param {*} [options] Override http request option.
|
|
2227
|
+
* @throws {RequiredError}
|
|
2228
|
+
* @memberof EvidenceApi
|
|
2229
|
+
*/
|
|
2230
|
+
listCompanyEvidenceV1EvidenceCompanyCompanyIdGet(companyId, authorization, sessionId, options) {
|
|
2231
|
+
return EvidenceApiFp(this.configuration).listCompanyEvidenceV1EvidenceCompanyCompanyIdGet(companyId, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
2232
|
+
}
|
|
2233
|
+
/**
|
|
2234
|
+
*
|
|
2235
|
+
* @summary Update Evidence
|
|
2236
|
+
* @param {string} evidenceId
|
|
2237
|
+
* @param {string} text
|
|
2238
|
+
* @param {string} [authorization]
|
|
2239
|
+
* @param {string} [sessionId]
|
|
2240
|
+
* @param {*} [options] Override http request option.
|
|
2241
|
+
* @throws {RequiredError}
|
|
2242
|
+
* @memberof EvidenceApi
|
|
2243
|
+
*/
|
|
2244
|
+
updateEvidenceV1EvidenceUpdatePut(evidenceId, text, authorization, sessionId, options) {
|
|
2245
|
+
return EvidenceApiFp(this.configuration).updateEvidenceV1EvidenceUpdatePut(evidenceId, text, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
2246
|
+
}
|
|
2247
|
+
/**
|
|
2248
|
+
*
|
|
2249
|
+
* @summary Upload Evidence
|
|
2250
|
+
* @param {string} companyId
|
|
2251
|
+
* @param {string} controlId
|
|
2252
|
+
* @param {File | null} file
|
|
2253
|
+
* @param {string | null} text
|
|
2254
|
+
* @param {string} [authorization]
|
|
2255
|
+
* @param {string} [sessionId]
|
|
2256
|
+
* @param {*} [options] Override http request option.
|
|
2257
|
+
* @throws {RequiredError}
|
|
2258
|
+
* @memberof EvidenceApi
|
|
2259
|
+
*/
|
|
2260
|
+
uploadEvidenceV1EvidenceUploadPost(companyId, controlId, file, text, authorization, sessionId, options) {
|
|
2261
|
+
return EvidenceApiFp(this.configuration).uploadEvidenceV1EvidenceUploadPost(companyId, controlId, file, text, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
2262
|
+
}
|
|
2263
|
+
}
|
|
2264
|
+
/**
|
|
2265
|
+
* PaymentsApi - axios parameter creator
|
|
2266
|
+
* @export
|
|
2267
|
+
*/
|
|
2268
|
+
export const PaymentsApiAxiosParamCreator = function (configuration) {
|
|
2269
|
+
return {
|
|
2270
|
+
/**
|
|
2271
|
+
*
|
|
2272
|
+
* @summary Get Checkout Session
|
|
2273
|
+
* @param {string} userId
|
|
2274
|
+
* @param {string} companyId
|
|
2275
|
+
* @param {string} productId
|
|
2276
|
+
* @param {*} [options] Override http request option.
|
|
2277
|
+
* @throws {RequiredError}
|
|
2278
|
+
*/
|
|
2279
|
+
getCheckoutSessionPaymentsCheckoutGet: (userId_1, companyId_1, productId_1, ...args_1) => __awaiter(this, [userId_1, companyId_1, productId_1, ...args_1], void 0, function* (userId, companyId, productId, options = {}) {
|
|
2280
|
+
// verify required parameter 'userId' is not null or undefined
|
|
2281
|
+
assertParamExists('getCheckoutSessionPaymentsCheckoutGet', 'userId', userId);
|
|
2282
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
2283
|
+
assertParamExists('getCheckoutSessionPaymentsCheckoutGet', 'companyId', companyId);
|
|
2284
|
+
// verify required parameter 'productId' is not null or undefined
|
|
2285
|
+
assertParamExists('getCheckoutSessionPaymentsCheckoutGet', 'productId', productId);
|
|
2286
|
+
const localVarPath = `/payments/checkout`;
|
|
2287
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2288
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2289
|
+
let baseOptions;
|
|
2290
|
+
if (configuration) {
|
|
2291
|
+
baseOptions = configuration.baseOptions;
|
|
2292
|
+
}
|
|
2293
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2294
|
+
const localVarHeaderParameter = {};
|
|
2295
|
+
const localVarQueryParameter = {};
|
|
2296
|
+
if (userId !== undefined) {
|
|
2297
|
+
localVarQueryParameter['user_id'] = userId;
|
|
2298
|
+
}
|
|
2299
|
+
if (companyId !== undefined) {
|
|
2300
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
2301
|
+
}
|
|
2302
|
+
if (productId !== undefined) {
|
|
2303
|
+
localVarQueryParameter['product_id'] = productId;
|
|
2304
|
+
}
|
|
2305
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2306
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2307
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2308
|
+
return {
|
|
2309
|
+
url: toPathString(localVarUrlObj),
|
|
2310
|
+
options: localVarRequestOptions,
|
|
2311
|
+
};
|
|
2312
|
+
}),
|
|
2313
|
+
/**
|
|
2314
|
+
*
|
|
2315
|
+
* @summary Get Customer Management Session
|
|
2316
|
+
* @param {string} [authorization]
|
|
2317
|
+
* @param {string} [sessionId]
|
|
2318
|
+
* @param {*} [options] Override http request option.
|
|
2319
|
+
* @throws {RequiredError}
|
|
2320
|
+
*/
|
|
2321
|
+
getCustomerManagementSessionPaymentsCustomerManagementGet: (authorization_1, sessionId_1, ...args_1) => __awaiter(this, [authorization_1, sessionId_1, ...args_1], void 0, function* (authorization, sessionId, options = {}) {
|
|
2322
|
+
const localVarPath = `/payments/customer/management`;
|
|
2323
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2324
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2325
|
+
let baseOptions;
|
|
2326
|
+
if (configuration) {
|
|
2327
|
+
baseOptions = configuration.baseOptions;
|
|
2328
|
+
}
|
|
2329
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2330
|
+
const localVarHeaderParameter = {};
|
|
2331
|
+
const localVarQueryParameter = {};
|
|
2332
|
+
if (authorization != null) {
|
|
2333
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
2334
|
+
}
|
|
2335
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2336
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2337
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2338
|
+
return {
|
|
2339
|
+
url: toPathString(localVarUrlObj),
|
|
2340
|
+
options: localVarRequestOptions,
|
|
2341
|
+
};
|
|
2342
|
+
}),
|
|
2343
|
+
/**
|
|
2344
|
+
*
|
|
2345
|
+
* @summary Webhook
|
|
2346
|
+
* @param {*} [options] Override http request option.
|
|
2347
|
+
* @throws {RequiredError}
|
|
2348
|
+
*/
|
|
2349
|
+
webhookPaymentsWebhookPost: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
2350
|
+
const localVarPath = `/payments/webhook`;
|
|
2351
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2352
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2353
|
+
let baseOptions;
|
|
2354
|
+
if (configuration) {
|
|
2355
|
+
baseOptions = configuration.baseOptions;
|
|
2356
|
+
}
|
|
2357
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
2358
|
+
const localVarHeaderParameter = {};
|
|
2359
|
+
const localVarQueryParameter = {};
|
|
2360
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2361
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2362
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2363
|
+
return {
|
|
2364
|
+
url: toPathString(localVarUrlObj),
|
|
2365
|
+
options: localVarRequestOptions,
|
|
2366
|
+
};
|
|
2367
|
+
}),
|
|
2368
|
+
};
|
|
2369
|
+
};
|
|
2370
|
+
/**
|
|
2371
|
+
* PaymentsApi - functional programming interface
|
|
2372
|
+
* @export
|
|
2373
|
+
*/
|
|
2374
|
+
export const PaymentsApiFp = function (configuration) {
|
|
2375
|
+
const localVarAxiosParamCreator = PaymentsApiAxiosParamCreator(configuration);
|
|
2376
|
+
return {
|
|
2377
|
+
/**
|
|
2378
|
+
*
|
|
2379
|
+
* @summary Get Checkout Session
|
|
2380
|
+
* @param {string} userId
|
|
2381
|
+
* @param {string} companyId
|
|
2382
|
+
* @param {string} productId
|
|
2383
|
+
* @param {*} [options] Override http request option.
|
|
2384
|
+
* @throws {RequiredError}
|
|
2385
|
+
*/
|
|
2386
|
+
getCheckoutSessionPaymentsCheckoutGet(userId, companyId, productId, options) {
|
|
2387
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2388
|
+
var _a, _b, _c;
|
|
2389
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCheckoutSessionPaymentsCheckoutGet(userId, companyId, productId, options);
|
|
2390
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2391
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PaymentsApi.getCheckoutSessionPaymentsCheckoutGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2392
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2393
|
+
});
|
|
2394
|
+
},
|
|
2395
|
+
/**
|
|
2396
|
+
*
|
|
2397
|
+
* @summary Get Customer Management Session
|
|
2398
|
+
* @param {string} [authorization]
|
|
2399
|
+
* @param {string} [sessionId]
|
|
2400
|
+
* @param {*} [options] Override http request option.
|
|
2401
|
+
* @throws {RequiredError}
|
|
2402
|
+
*/
|
|
2403
|
+
getCustomerManagementSessionPaymentsCustomerManagementGet(authorization, sessionId, options) {
|
|
2404
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2405
|
+
var _a, _b, _c;
|
|
2406
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCustomerManagementSessionPaymentsCustomerManagementGet(authorization, sessionId, options);
|
|
2407
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2408
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PaymentsApi.getCustomerManagementSessionPaymentsCustomerManagementGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2409
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2410
|
+
});
|
|
2411
|
+
},
|
|
2412
|
+
/**
|
|
2413
|
+
*
|
|
2414
|
+
* @summary Webhook
|
|
2415
|
+
* @param {*} [options] Override http request option.
|
|
2416
|
+
* @throws {RequiredError}
|
|
2417
|
+
*/
|
|
2418
|
+
webhookPaymentsWebhookPost(options) {
|
|
2419
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2420
|
+
var _a, _b, _c;
|
|
2421
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.webhookPaymentsWebhookPost(options);
|
|
2422
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2423
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PaymentsApi.webhookPaymentsWebhookPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2424
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2425
|
+
});
|
|
2426
|
+
},
|
|
2427
|
+
};
|
|
2428
|
+
};
|
|
2429
|
+
/**
|
|
2430
|
+
* PaymentsApi - factory interface
|
|
2431
|
+
* @export
|
|
2432
|
+
*/
|
|
2433
|
+
export const PaymentsApiFactory = function (configuration, basePath, axios) {
|
|
2434
|
+
const localVarFp = PaymentsApiFp(configuration);
|
|
2435
|
+
return {
|
|
2436
|
+
/**
|
|
2437
|
+
*
|
|
2438
|
+
* @summary Get Checkout Session
|
|
2439
|
+
* @param {string} userId
|
|
2440
|
+
* @param {string} companyId
|
|
2441
|
+
* @param {string} productId
|
|
2442
|
+
* @param {*} [options] Override http request option.
|
|
2443
|
+
* @throws {RequiredError}
|
|
2444
|
+
*/
|
|
2445
|
+
getCheckoutSessionPaymentsCheckoutGet(userId, companyId, productId, options) {
|
|
2446
|
+
return localVarFp.getCheckoutSessionPaymentsCheckoutGet(userId, companyId, productId, options).then((request) => request(axios, basePath));
|
|
2447
|
+
},
|
|
2448
|
+
/**
|
|
2449
|
+
*
|
|
2450
|
+
* @summary Get Customer Management Session
|
|
2451
|
+
* @param {string} [authorization]
|
|
2452
|
+
* @param {string} [sessionId]
|
|
2453
|
+
* @param {*} [options] Override http request option.
|
|
2454
|
+
* @throws {RequiredError}
|
|
2455
|
+
*/
|
|
2456
|
+
getCustomerManagementSessionPaymentsCustomerManagementGet(authorization, sessionId, options) {
|
|
2457
|
+
return localVarFp.getCustomerManagementSessionPaymentsCustomerManagementGet(authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
2458
|
+
},
|
|
2459
|
+
/**
|
|
2460
|
+
*
|
|
2461
|
+
* @summary Webhook
|
|
2462
|
+
* @param {*} [options] Override http request option.
|
|
2463
|
+
* @throws {RequiredError}
|
|
2464
|
+
*/
|
|
2465
|
+
webhookPaymentsWebhookPost(options) {
|
|
2466
|
+
return localVarFp.webhookPaymentsWebhookPost(options).then((request) => request(axios, basePath));
|
|
2467
|
+
},
|
|
2468
|
+
};
|
|
2469
|
+
};
|
|
2470
|
+
/**
|
|
2471
|
+
* PaymentsApi - object-oriented interface
|
|
2472
|
+
* @export
|
|
2473
|
+
* @class PaymentsApi
|
|
2474
|
+
* @extends {BaseAPI}
|
|
2475
|
+
*/
|
|
2476
|
+
export class PaymentsApi extends BaseAPI {
|
|
2477
|
+
/**
|
|
2478
|
+
*
|
|
2479
|
+
* @summary Get Checkout Session
|
|
2480
|
+
* @param {string} userId
|
|
2481
|
+
* @param {string} companyId
|
|
2482
|
+
* @param {string} productId
|
|
2483
|
+
* @param {*} [options] Override http request option.
|
|
2484
|
+
* @throws {RequiredError}
|
|
2485
|
+
* @memberof PaymentsApi
|
|
2486
|
+
*/
|
|
2487
|
+
getCheckoutSessionPaymentsCheckoutGet(userId, companyId, productId, options) {
|
|
2488
|
+
return PaymentsApiFp(this.configuration).getCheckoutSessionPaymentsCheckoutGet(userId, companyId, productId, options).then((request) => request(this.axios, this.basePath));
|
|
2489
|
+
}
|
|
2490
|
+
/**
|
|
2491
|
+
*
|
|
2492
|
+
* @summary Get Customer Management Session
|
|
2493
|
+
* @param {string} [authorization]
|
|
2494
|
+
* @param {string} [sessionId]
|
|
2495
|
+
* @param {*} [options] Override http request option.
|
|
2496
|
+
* @throws {RequiredError}
|
|
2497
|
+
* @memberof PaymentsApi
|
|
2498
|
+
*/
|
|
2499
|
+
getCustomerManagementSessionPaymentsCustomerManagementGet(authorization, sessionId, options) {
|
|
2500
|
+
return PaymentsApiFp(this.configuration).getCustomerManagementSessionPaymentsCustomerManagementGet(authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
2501
|
+
}
|
|
2502
|
+
/**
|
|
2503
|
+
*
|
|
2504
|
+
* @summary Webhook
|
|
2505
|
+
* @param {*} [options] Override http request option.
|
|
2506
|
+
* @throws {RequiredError}
|
|
2507
|
+
* @memberof PaymentsApi
|
|
2508
|
+
*/
|
|
2509
|
+
webhookPaymentsWebhookPost(options) {
|
|
2510
|
+
return PaymentsApiFp(this.configuration).webhookPaymentsWebhookPost(options).then((request) => request(this.axios, this.basePath));
|
|
2511
|
+
}
|
|
2512
|
+
}
|
|
2513
|
+
/**
|
|
2514
|
+
* PoliciesApi - axios parameter creator
|
|
2515
|
+
* @export
|
|
2516
|
+
*/
|
|
2517
|
+
export const PoliciesApiAxiosParamCreator = function (configuration) {
|
|
2518
|
+
return {
|
|
2519
|
+
/**
|
|
2520
|
+
*
|
|
2521
|
+
* @summary Create Policy
|
|
2522
|
+
* @param {PolicyCreate} policyCreate
|
|
2523
|
+
* @param {string} [authorization]
|
|
2524
|
+
* @param {string} [sessionId]
|
|
2525
|
+
* @param {*} [options] Override http request option.
|
|
2526
|
+
* @throws {RequiredError}
|
|
2527
|
+
*/
|
|
2528
|
+
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 = {}) {
|
|
2529
|
+
// verify required parameter 'policyCreate' is not null or undefined
|
|
2530
|
+
assertParamExists('createPolicyV1PoliciesCreatePost', 'policyCreate', policyCreate);
|
|
2531
|
+
const localVarPath = `/v1/policies/create`;
|
|
2532
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2533
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2534
|
+
let baseOptions;
|
|
2535
|
+
if (configuration) {
|
|
2536
|
+
baseOptions = configuration.baseOptions;
|
|
2537
|
+
}
|
|
2538
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
2539
|
+
const localVarHeaderParameter = {};
|
|
2540
|
+
const localVarQueryParameter = {};
|
|
2541
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2542
|
+
if (authorization != null) {
|
|
2543
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
2544
|
+
}
|
|
2545
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2546
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2547
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2548
|
+
localVarRequestOptions.data = serializeDataIfNeeded(policyCreate, localVarRequestOptions, configuration);
|
|
2549
|
+
return {
|
|
2550
|
+
url: toPathString(localVarUrlObj),
|
|
2551
|
+
options: localVarRequestOptions,
|
|
2552
|
+
};
|
|
2553
|
+
}),
|
|
2554
|
+
/**
|
|
2555
|
+
*
|
|
2556
|
+
* @summary Delete Policy
|
|
2557
|
+
* @param {string} policyId
|
|
2558
|
+
* @param {string} [authorization]
|
|
2559
|
+
* @param {string} [sessionId]
|
|
2560
|
+
* @param {*} [options] Override http request option.
|
|
2561
|
+
* @throws {RequiredError}
|
|
2562
|
+
*/
|
|
2563
|
+
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 = {}) {
|
|
2564
|
+
// verify required parameter 'policyId' is not null or undefined
|
|
2565
|
+
assertParamExists('deletePolicyV1PoliciesPolicyIdDelete', 'policyId', policyId);
|
|
2566
|
+
const localVarPath = `/v1/policies/{policy_id}`
|
|
2567
|
+
.replace(`{${"policy_id"}}`, encodeURIComponent(String(policyId)));
|
|
2568
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2569
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2570
|
+
let baseOptions;
|
|
2571
|
+
if (configuration) {
|
|
2572
|
+
baseOptions = configuration.baseOptions;
|
|
2573
|
+
}
|
|
2574
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
2575
|
+
const localVarHeaderParameter = {};
|
|
2576
|
+
const localVarQueryParameter = {};
|
|
2577
|
+
if (authorization != null) {
|
|
2578
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
2579
|
+
}
|
|
2580
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2581
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2582
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2583
|
+
return {
|
|
2584
|
+
url: toPathString(localVarUrlObj),
|
|
2585
|
+
options: localVarRequestOptions,
|
|
2586
|
+
};
|
|
2587
|
+
}),
|
|
2588
|
+
/**
|
|
2589
|
+
*
|
|
2590
|
+
* @summary Get Company Policies
|
|
2591
|
+
* @param {string} companyId
|
|
2592
|
+
* @param {number} [skip] Number of records to skip for pagination
|
|
2593
|
+
* @param {number} [limit] Maximum number of records to return
|
|
2594
|
+
* @param {string} [authorization]
|
|
2595
|
+
* @param {string} [sessionId]
|
|
2596
|
+
* @param {*} [options] Override http request option.
|
|
2597
|
+
* @throws {RequiredError}
|
|
2598
|
+
*/
|
|
2599
|
+
getCompanyPoliciesV1PoliciesCompanyCompanyIdGet: (companyId_1, skip_1, limit_1, authorization_1, sessionId_1, ...args_1) => __awaiter(this, [companyId_1, skip_1, limit_1, authorization_1, sessionId_1, ...args_1], void 0, function* (companyId, skip, limit, authorization, sessionId, options = {}) {
|
|
2600
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
2601
|
+
assertParamExists('getCompanyPoliciesV1PoliciesCompanyCompanyIdGet', 'companyId', companyId);
|
|
2602
|
+
const localVarPath = `/v1/policies/company/{company_id}`
|
|
2603
|
+
.replace(`{${"company_id"}}`, encodeURIComponent(String(companyId)));
|
|
2604
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2605
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2606
|
+
let baseOptions;
|
|
2607
|
+
if (configuration) {
|
|
2608
|
+
baseOptions = configuration.baseOptions;
|
|
2609
|
+
}
|
|
2610
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2611
|
+
const localVarHeaderParameter = {};
|
|
2612
|
+
const localVarQueryParameter = {};
|
|
2613
|
+
if (skip !== undefined) {
|
|
2614
|
+
localVarQueryParameter['skip'] = skip;
|
|
2615
|
+
}
|
|
2616
|
+
if (limit !== undefined) {
|
|
2617
|
+
localVarQueryParameter['limit'] = limit;
|
|
2618
|
+
}
|
|
2619
|
+
if (authorization != null) {
|
|
2620
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
2621
|
+
}
|
|
2622
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2623
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2624
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2625
|
+
return {
|
|
2626
|
+
url: toPathString(localVarUrlObj),
|
|
2627
|
+
options: localVarRequestOptions,
|
|
2628
|
+
};
|
|
2629
|
+
}),
|
|
2630
|
+
/**
|
|
2631
|
+
*
|
|
2632
|
+
* @summary Get Policy
|
|
2633
|
+
* @param {string} policyId
|
|
2634
|
+
* @param {*} [options] Override http request option.
|
|
2635
|
+
* @throws {RequiredError}
|
|
2636
|
+
*/
|
|
2637
|
+
getPolicyV1PoliciesPolicyIdGet: (policyId_1, ...args_1) => __awaiter(this, [policyId_1, ...args_1], void 0, function* (policyId, options = {}) {
|
|
2638
|
+
// verify required parameter 'policyId' is not null or undefined
|
|
2639
|
+
assertParamExists('getPolicyV1PoliciesPolicyIdGet', 'policyId', policyId);
|
|
2640
|
+
const localVarPath = `/v1/policies/{policy_id}`
|
|
2641
|
+
.replace(`{${"policy_id"}}`, encodeURIComponent(String(policyId)));
|
|
2642
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2643
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2644
|
+
let baseOptions;
|
|
2645
|
+
if (configuration) {
|
|
2646
|
+
baseOptions = configuration.baseOptions;
|
|
2647
|
+
}
|
|
2648
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2649
|
+
const localVarHeaderParameter = {};
|
|
2650
|
+
const localVarQueryParameter = {};
|
|
2651
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2652
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2653
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2654
|
+
return {
|
|
2655
|
+
url: toPathString(localVarUrlObj),
|
|
2656
|
+
options: localVarRequestOptions,
|
|
2657
|
+
};
|
|
2658
|
+
}),
|
|
2659
|
+
/**
|
|
2660
|
+
*
|
|
2661
|
+
* @summary Update Policy
|
|
2662
|
+
* @param {string} policyId
|
|
2663
|
+
* @param {PolicyUpdate} policyUpdate
|
|
2664
|
+
* @param {string} [authorization]
|
|
2665
|
+
* @param {string} [sessionId]
|
|
2666
|
+
* @param {*} [options] Override http request option.
|
|
2667
|
+
* @throws {RequiredError}
|
|
2668
|
+
*/
|
|
2669
|
+
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 = {}) {
|
|
2670
|
+
// verify required parameter 'policyId' is not null or undefined
|
|
2671
|
+
assertParamExists('updatePolicyV1PoliciesPolicyIdPut', 'policyId', policyId);
|
|
2672
|
+
// verify required parameter 'policyUpdate' is not null or undefined
|
|
2673
|
+
assertParamExists('updatePolicyV1PoliciesPolicyIdPut', 'policyUpdate', policyUpdate);
|
|
2674
|
+
const localVarPath = `/v1/policies/{policy_id}`
|
|
2675
|
+
.replace(`{${"policy_id"}}`, encodeURIComponent(String(policyId)));
|
|
2676
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2677
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2678
|
+
let baseOptions;
|
|
2679
|
+
if (configuration) {
|
|
2680
|
+
baseOptions = configuration.baseOptions;
|
|
2681
|
+
}
|
|
2682
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
2683
|
+
const localVarHeaderParameter = {};
|
|
2684
|
+
const localVarQueryParameter = {};
|
|
2685
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2686
|
+
if (authorization != null) {
|
|
2687
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
2688
|
+
}
|
|
2689
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2690
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2691
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2692
|
+
localVarRequestOptions.data = serializeDataIfNeeded(policyUpdate, localVarRequestOptions, configuration);
|
|
2693
|
+
return {
|
|
2694
|
+
url: toPathString(localVarUrlObj),
|
|
2695
|
+
options: localVarRequestOptions,
|
|
2696
|
+
};
|
|
2697
|
+
}),
|
|
2698
|
+
};
|
|
2699
|
+
};
|
|
2700
|
+
/**
|
|
2701
|
+
* PoliciesApi - functional programming interface
|
|
2702
|
+
* @export
|
|
2703
|
+
*/
|
|
2704
|
+
export const PoliciesApiFp = function (configuration) {
|
|
2705
|
+
const localVarAxiosParamCreator = PoliciesApiAxiosParamCreator(configuration);
|
|
2706
|
+
return {
|
|
2707
|
+
/**
|
|
2708
|
+
*
|
|
2709
|
+
* @summary Create Policy
|
|
2710
|
+
* @param {PolicyCreate} policyCreate
|
|
2711
|
+
* @param {string} [authorization]
|
|
2712
|
+
* @param {string} [sessionId]
|
|
2713
|
+
* @param {*} [options] Override http request option.
|
|
2714
|
+
* @throws {RequiredError}
|
|
2715
|
+
*/
|
|
2716
|
+
createPolicyV1PoliciesCreatePost(policyCreate, authorization, sessionId, options) {
|
|
2717
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2718
|
+
var _a, _b, _c;
|
|
2719
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createPolicyV1PoliciesCreatePost(policyCreate, authorization, sessionId, options);
|
|
2720
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2721
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PoliciesApi.createPolicyV1PoliciesCreatePost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2722
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2723
|
+
});
|
|
2724
|
+
},
|
|
2725
|
+
/**
|
|
2726
|
+
*
|
|
2727
|
+
* @summary Delete Policy
|
|
2728
|
+
* @param {string} policyId
|
|
2729
|
+
* @param {string} [authorization]
|
|
2730
|
+
* @param {string} [sessionId]
|
|
2731
|
+
* @param {*} [options] Override http request option.
|
|
2732
|
+
* @throws {RequiredError}
|
|
2733
|
+
*/
|
|
2734
|
+
deletePolicyV1PoliciesPolicyIdDelete(policyId, authorization, sessionId, options) {
|
|
2735
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2736
|
+
var _a, _b, _c;
|
|
2737
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deletePolicyV1PoliciesPolicyIdDelete(policyId, authorization, sessionId, options);
|
|
2738
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2739
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PoliciesApi.deletePolicyV1PoliciesPolicyIdDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2740
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2741
|
+
});
|
|
2742
|
+
},
|
|
2743
|
+
/**
|
|
2744
|
+
*
|
|
2745
|
+
* @summary Get Company Policies
|
|
2746
|
+
* @param {string} companyId
|
|
2747
|
+
* @param {number} [skip] Number of records to skip for pagination
|
|
2748
|
+
* @param {number} [limit] Maximum number of records to return
|
|
2749
|
+
* @param {string} [authorization]
|
|
2750
|
+
* @param {string} [sessionId]
|
|
2751
|
+
* @param {*} [options] Override http request option.
|
|
2752
|
+
* @throws {RequiredError}
|
|
2753
|
+
*/
|
|
2754
|
+
getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId, skip, limit, authorization, sessionId, options) {
|
|
2755
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2756
|
+
var _a, _b, _c;
|
|
2757
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId, skip, limit, authorization, sessionId, options);
|
|
2758
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2759
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PoliciesApi.getCompanyPoliciesV1PoliciesCompanyCompanyIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2760
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2761
|
+
});
|
|
2762
|
+
},
|
|
2763
|
+
/**
|
|
2764
|
+
*
|
|
2765
|
+
* @summary Get Policy
|
|
2766
|
+
* @param {string} policyId
|
|
2767
|
+
* @param {*} [options] Override http request option.
|
|
2768
|
+
* @throws {RequiredError}
|
|
2769
|
+
*/
|
|
2770
|
+
getPolicyV1PoliciesPolicyIdGet(policyId, options) {
|
|
2771
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2772
|
+
var _a, _b, _c;
|
|
2773
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPolicyV1PoliciesPolicyIdGet(policyId, options);
|
|
2774
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2775
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PoliciesApi.getPolicyV1PoliciesPolicyIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2776
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2777
|
+
});
|
|
2778
|
+
},
|
|
2779
|
+
/**
|
|
2780
|
+
*
|
|
2781
|
+
* @summary Update Policy
|
|
2782
|
+
* @param {string} policyId
|
|
2783
|
+
* @param {PolicyUpdate} policyUpdate
|
|
2784
|
+
* @param {string} [authorization]
|
|
2785
|
+
* @param {string} [sessionId]
|
|
2786
|
+
* @param {*} [options] Override http request option.
|
|
2787
|
+
* @throws {RequiredError}
|
|
2788
|
+
*/
|
|
2789
|
+
updatePolicyV1PoliciesPolicyIdPut(policyId, policyUpdate, authorization, sessionId, options) {
|
|
2790
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2791
|
+
var _a, _b, _c;
|
|
2792
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePolicyV1PoliciesPolicyIdPut(policyId, policyUpdate, authorization, sessionId, options);
|
|
2793
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2794
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PoliciesApi.updatePolicyV1PoliciesPolicyIdPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2795
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2796
|
+
});
|
|
2797
|
+
},
|
|
2798
|
+
};
|
|
2799
|
+
};
|
|
2800
|
+
/**
|
|
2801
|
+
* PoliciesApi - factory interface
|
|
2802
|
+
* @export
|
|
2803
|
+
*/
|
|
2804
|
+
export const PoliciesApiFactory = function (configuration, basePath, axios) {
|
|
2805
|
+
const localVarFp = PoliciesApiFp(configuration);
|
|
2806
|
+
return {
|
|
2807
|
+
/**
|
|
2808
|
+
*
|
|
2809
|
+
* @summary Create Policy
|
|
2810
|
+
* @param {PolicyCreate} policyCreate
|
|
2811
|
+
* @param {string} [authorization]
|
|
2812
|
+
* @param {string} [sessionId]
|
|
2813
|
+
* @param {*} [options] Override http request option.
|
|
2814
|
+
* @throws {RequiredError}
|
|
2815
|
+
*/
|
|
2816
|
+
createPolicyV1PoliciesCreatePost(policyCreate, authorization, sessionId, options) {
|
|
2817
|
+
return localVarFp.createPolicyV1PoliciesCreatePost(policyCreate, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
2818
|
+
},
|
|
2819
|
+
/**
|
|
2820
|
+
*
|
|
2821
|
+
* @summary Delete Policy
|
|
2822
|
+
* @param {string} policyId
|
|
2823
|
+
* @param {string} [authorization]
|
|
2824
|
+
* @param {string} [sessionId]
|
|
2825
|
+
* @param {*} [options] Override http request option.
|
|
2826
|
+
* @throws {RequiredError}
|
|
2827
|
+
*/
|
|
2828
|
+
deletePolicyV1PoliciesPolicyIdDelete(policyId, authorization, sessionId, options) {
|
|
2829
|
+
return localVarFp.deletePolicyV1PoliciesPolicyIdDelete(policyId, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
2830
|
+
},
|
|
2831
|
+
/**
|
|
2832
|
+
*
|
|
2833
|
+
* @summary Get Company Policies
|
|
2834
|
+
* @param {string} companyId
|
|
2835
|
+
* @param {number} [skip] Number of records to skip for pagination
|
|
2836
|
+
* @param {number} [limit] Maximum number of records to return
|
|
2837
|
+
* @param {string} [authorization]
|
|
2838
|
+
* @param {string} [sessionId]
|
|
2839
|
+
* @param {*} [options] Override http request option.
|
|
2840
|
+
* @throws {RequiredError}
|
|
2841
|
+
*/
|
|
2842
|
+
getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId, skip, limit, authorization, sessionId, options) {
|
|
2843
|
+
return localVarFp.getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId, skip, limit, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
2844
|
+
},
|
|
2845
|
+
/**
|
|
2846
|
+
*
|
|
2847
|
+
* @summary Get Policy
|
|
2848
|
+
* @param {string} policyId
|
|
2849
|
+
* @param {*} [options] Override http request option.
|
|
2850
|
+
* @throws {RequiredError}
|
|
2851
|
+
*/
|
|
2852
|
+
getPolicyV1PoliciesPolicyIdGet(policyId, options) {
|
|
2853
|
+
return localVarFp.getPolicyV1PoliciesPolicyIdGet(policyId, options).then((request) => request(axios, basePath));
|
|
2854
|
+
},
|
|
2855
|
+
/**
|
|
2856
|
+
*
|
|
2857
|
+
* @summary Update Policy
|
|
2858
|
+
* @param {string} policyId
|
|
2859
|
+
* @param {PolicyUpdate} policyUpdate
|
|
2860
|
+
* @param {string} [authorization]
|
|
2861
|
+
* @param {string} [sessionId]
|
|
2862
|
+
* @param {*} [options] Override http request option.
|
|
2863
|
+
* @throws {RequiredError}
|
|
2864
|
+
*/
|
|
2865
|
+
updatePolicyV1PoliciesPolicyIdPut(policyId, policyUpdate, authorization, sessionId, options) {
|
|
2866
|
+
return localVarFp.updatePolicyV1PoliciesPolicyIdPut(policyId, policyUpdate, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
2867
|
+
},
|
|
2868
|
+
};
|
|
2869
|
+
};
|
|
2870
|
+
/**
|
|
2871
|
+
* PoliciesApi - object-oriented interface
|
|
2872
|
+
* @export
|
|
2873
|
+
* @class PoliciesApi
|
|
2874
|
+
* @extends {BaseAPI}
|
|
2875
|
+
*/
|
|
2876
|
+
export class PoliciesApi extends BaseAPI {
|
|
2877
|
+
/**
|
|
2878
|
+
*
|
|
2879
|
+
* @summary Create Policy
|
|
2880
|
+
* @param {PolicyCreate} policyCreate
|
|
2881
|
+
* @param {string} [authorization]
|
|
2882
|
+
* @param {string} [sessionId]
|
|
2883
|
+
* @param {*} [options] Override http request option.
|
|
2884
|
+
* @throws {RequiredError}
|
|
2885
|
+
* @memberof PoliciesApi
|
|
2886
|
+
*/
|
|
2887
|
+
createPolicyV1PoliciesCreatePost(policyCreate, authorization, sessionId, options) {
|
|
2888
|
+
return PoliciesApiFp(this.configuration).createPolicyV1PoliciesCreatePost(policyCreate, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
2889
|
+
}
|
|
2890
|
+
/**
|
|
2891
|
+
*
|
|
2892
|
+
* @summary Delete Policy
|
|
2893
|
+
* @param {string} policyId
|
|
2894
|
+
* @param {string} [authorization]
|
|
2895
|
+
* @param {string} [sessionId]
|
|
2896
|
+
* @param {*} [options] Override http request option.
|
|
2897
|
+
* @throws {RequiredError}
|
|
2898
|
+
* @memberof PoliciesApi
|
|
2899
|
+
*/
|
|
2900
|
+
deletePolicyV1PoliciesPolicyIdDelete(policyId, authorization, sessionId, options) {
|
|
2901
|
+
return PoliciesApiFp(this.configuration).deletePolicyV1PoliciesPolicyIdDelete(policyId, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
2902
|
+
}
|
|
2903
|
+
/**
|
|
2904
|
+
*
|
|
2905
|
+
* @summary Get Company Policies
|
|
2906
|
+
* @param {string} companyId
|
|
2907
|
+
* @param {number} [skip] Number of records to skip for pagination
|
|
2908
|
+
* @param {number} [limit] Maximum number of records to return
|
|
2909
|
+
* @param {string} [authorization]
|
|
2910
|
+
* @param {string} [sessionId]
|
|
2911
|
+
* @param {*} [options] Override http request option.
|
|
2912
|
+
* @throws {RequiredError}
|
|
2913
|
+
* @memberof PoliciesApi
|
|
2914
|
+
*/
|
|
2915
|
+
getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId, skip, limit, authorization, sessionId, options) {
|
|
2916
|
+
return PoliciesApiFp(this.configuration).getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId, skip, limit, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
2917
|
+
}
|
|
2918
|
+
/**
|
|
2919
|
+
*
|
|
2920
|
+
* @summary Get Policy
|
|
2921
|
+
* @param {string} policyId
|
|
2922
|
+
* @param {*} [options] Override http request option.
|
|
2923
|
+
* @throws {RequiredError}
|
|
2924
|
+
* @memberof PoliciesApi
|
|
2925
|
+
*/
|
|
2926
|
+
getPolicyV1PoliciesPolicyIdGet(policyId, options) {
|
|
2927
|
+
return PoliciesApiFp(this.configuration).getPolicyV1PoliciesPolicyIdGet(policyId, options).then((request) => request(this.axios, this.basePath));
|
|
2928
|
+
}
|
|
2929
|
+
/**
|
|
2930
|
+
*
|
|
2931
|
+
* @summary Update Policy
|
|
2932
|
+
* @param {string} policyId
|
|
2933
|
+
* @param {PolicyUpdate} policyUpdate
|
|
2934
|
+
* @param {string} [authorization]
|
|
2935
|
+
* @param {string} [sessionId]
|
|
2936
|
+
* @param {*} [options] Override http request option.
|
|
2937
|
+
* @throws {RequiredError}
|
|
2938
|
+
* @memberof PoliciesApi
|
|
2939
|
+
*/
|
|
2940
|
+
updatePolicyV1PoliciesPolicyIdPut(policyId, policyUpdate, authorization, sessionId, options) {
|
|
2941
|
+
return PoliciesApiFp(this.configuration).updatePolicyV1PoliciesPolicyIdPut(policyId, policyUpdate, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
2942
|
+
}
|
|
2943
|
+
}
|
|
2944
|
+
/**
|
|
2945
|
+
* RolesApi - axios parameter creator
|
|
2946
|
+
* @export
|
|
2947
|
+
*/
|
|
2948
|
+
export const RolesApiAxiosParamCreator = function (configuration) {
|
|
2949
|
+
return {
|
|
2950
|
+
/**
|
|
2951
|
+
* Add people to company
|
|
2952
|
+
* @summary Invite
|
|
2953
|
+
* @param {InviteToCompany} inviteToCompany
|
|
2954
|
+
* @param {string} [authorization]
|
|
2955
|
+
* @param {string} [sessionId]
|
|
2956
|
+
* @param {*} [options] Override http request option.
|
|
2957
|
+
* @throws {RequiredError}
|
|
2958
|
+
*/
|
|
2959
|
+
inviteV1RolesInvitesPost: (inviteToCompany_1, authorization_1, sessionId_1, ...args_1) => __awaiter(this, [inviteToCompany_1, authorization_1, sessionId_1, ...args_1], void 0, function* (inviteToCompany, authorization, sessionId, options = {}) {
|
|
2960
|
+
// verify required parameter 'inviteToCompany' is not null or undefined
|
|
2961
|
+
assertParamExists('inviteV1RolesInvitesPost', 'inviteToCompany', inviteToCompany);
|
|
2962
|
+
const localVarPath = `/v1/roles/invites`;
|
|
2963
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2964
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2965
|
+
let baseOptions;
|
|
2966
|
+
if (configuration) {
|
|
2967
|
+
baseOptions = configuration.baseOptions;
|
|
2968
|
+
}
|
|
2969
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
2970
|
+
const localVarHeaderParameter = {};
|
|
2971
|
+
const localVarQueryParameter = {};
|
|
2972
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2973
|
+
if (authorization != null) {
|
|
2974
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
2975
|
+
}
|
|
2976
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2977
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2978
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2979
|
+
localVarRequestOptions.data = serializeDataIfNeeded(inviteToCompany, localVarRequestOptions, configuration);
|
|
2980
|
+
return {
|
|
2981
|
+
url: toPathString(localVarUrlObj),
|
|
2982
|
+
options: localVarRequestOptions,
|
|
2983
|
+
};
|
|
2984
|
+
}),
|
|
2985
|
+
/**
|
|
2986
|
+
* Remove people from company
|
|
2987
|
+
* @summary Remove People
|
|
2988
|
+
* @param {RemoveFromCompany} removeFromCompany
|
|
2989
|
+
* @param {string} [authorization]
|
|
2990
|
+
* @param {string} [sessionId]
|
|
2991
|
+
* @param {*} [options] Override http request option.
|
|
2992
|
+
* @throws {RequiredError}
|
|
2993
|
+
*/
|
|
2994
|
+
removePeopleV1RolesInvitesDelete: (removeFromCompany_1, authorization_1, sessionId_1, ...args_1) => __awaiter(this, [removeFromCompany_1, authorization_1, sessionId_1, ...args_1], void 0, function* (removeFromCompany, authorization, sessionId, options = {}) {
|
|
2995
|
+
// verify required parameter 'removeFromCompany' is not null or undefined
|
|
2996
|
+
assertParamExists('removePeopleV1RolesInvitesDelete', 'removeFromCompany', removeFromCompany);
|
|
2997
|
+
const localVarPath = `/v1/roles/invites`;
|
|
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: 'DELETE' }, baseOptions), options);
|
|
3005
|
+
const localVarHeaderParameter = {};
|
|
3006
|
+
const localVarQueryParameter = {};
|
|
3007
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3008
|
+
if (authorization != null) {
|
|
3009
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
3010
|
+
}
|
|
3011
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3012
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3013
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3014
|
+
localVarRequestOptions.data = serializeDataIfNeeded(removeFromCompany, localVarRequestOptions, configuration);
|
|
3015
|
+
return {
|
|
3016
|
+
url: toPathString(localVarUrlObj),
|
|
3017
|
+
options: localVarRequestOptions,
|
|
3018
|
+
};
|
|
3019
|
+
}),
|
|
3020
|
+
};
|
|
3021
|
+
};
|
|
3022
|
+
/**
|
|
3023
|
+
* RolesApi - functional programming interface
|
|
3024
|
+
* @export
|
|
3025
|
+
*/
|
|
3026
|
+
export const RolesApiFp = function (configuration) {
|
|
3027
|
+
const localVarAxiosParamCreator = RolesApiAxiosParamCreator(configuration);
|
|
3028
|
+
return {
|
|
3029
|
+
/**
|
|
3030
|
+
* Add people to company
|
|
3031
|
+
* @summary Invite
|
|
3032
|
+
* @param {InviteToCompany} inviteToCompany
|
|
3033
|
+
* @param {string} [authorization]
|
|
3034
|
+
* @param {string} [sessionId]
|
|
3035
|
+
* @param {*} [options] Override http request option.
|
|
3036
|
+
* @throws {RequiredError}
|
|
3037
|
+
*/
|
|
3038
|
+
inviteV1RolesInvitesPost(inviteToCompany, authorization, sessionId, options) {
|
|
3039
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3040
|
+
var _a, _b, _c;
|
|
3041
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.inviteV1RolesInvitesPost(inviteToCompany, authorization, sessionId, options);
|
|
3042
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3043
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RolesApi.inviteV1RolesInvitesPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3044
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3045
|
+
});
|
|
3046
|
+
},
|
|
3047
|
+
/**
|
|
3048
|
+
* Remove people from company
|
|
3049
|
+
* @summary Remove People
|
|
3050
|
+
* @param {RemoveFromCompany} removeFromCompany
|
|
3051
|
+
* @param {string} [authorization]
|
|
3052
|
+
* @param {string} [sessionId]
|
|
3053
|
+
* @param {*} [options] Override http request option.
|
|
3054
|
+
* @throws {RequiredError}
|
|
3055
|
+
*/
|
|
3056
|
+
removePeopleV1RolesInvitesDelete(removeFromCompany, authorization, sessionId, options) {
|
|
3057
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3058
|
+
var _a, _b, _c;
|
|
3059
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.removePeopleV1RolesInvitesDelete(removeFromCompany, authorization, sessionId, options);
|
|
3060
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3061
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RolesApi.removePeopleV1RolesInvitesDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3062
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3063
|
+
});
|
|
3064
|
+
},
|
|
3065
|
+
};
|
|
3066
|
+
};
|
|
3067
|
+
/**
|
|
3068
|
+
* RolesApi - factory interface
|
|
3069
|
+
* @export
|
|
3070
|
+
*/
|
|
3071
|
+
export const RolesApiFactory = function (configuration, basePath, axios) {
|
|
3072
|
+
const localVarFp = RolesApiFp(configuration);
|
|
3073
|
+
return {
|
|
3074
|
+
/**
|
|
3075
|
+
* Add people to company
|
|
3076
|
+
* @summary Invite
|
|
3077
|
+
* @param {InviteToCompany} inviteToCompany
|
|
3078
|
+
* @param {string} [authorization]
|
|
3079
|
+
* @param {string} [sessionId]
|
|
3080
|
+
* @param {*} [options] Override http request option.
|
|
3081
|
+
* @throws {RequiredError}
|
|
3082
|
+
*/
|
|
3083
|
+
inviteV1RolesInvitesPost(inviteToCompany, authorization, sessionId, options) {
|
|
3084
|
+
return localVarFp.inviteV1RolesInvitesPost(inviteToCompany, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
3085
|
+
},
|
|
3086
|
+
/**
|
|
3087
|
+
* Remove people from company
|
|
3088
|
+
* @summary Remove People
|
|
3089
|
+
* @param {RemoveFromCompany} removeFromCompany
|
|
3090
|
+
* @param {string} [authorization]
|
|
3091
|
+
* @param {string} [sessionId]
|
|
3092
|
+
* @param {*} [options] Override http request option.
|
|
3093
|
+
* @throws {RequiredError}
|
|
3094
|
+
*/
|
|
3095
|
+
removePeopleV1RolesInvitesDelete(removeFromCompany, authorization, sessionId, options) {
|
|
3096
|
+
return localVarFp.removePeopleV1RolesInvitesDelete(removeFromCompany, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
3097
|
+
},
|
|
3098
|
+
};
|
|
3099
|
+
};
|
|
3100
|
+
/**
|
|
3101
|
+
* RolesApi - object-oriented interface
|
|
3102
|
+
* @export
|
|
3103
|
+
* @class RolesApi
|
|
3104
|
+
* @extends {BaseAPI}
|
|
3105
|
+
*/
|
|
3106
|
+
export class RolesApi extends BaseAPI {
|
|
3107
|
+
/**
|
|
3108
|
+
* Add people to company
|
|
3109
|
+
* @summary Invite
|
|
3110
|
+
* @param {InviteToCompany} inviteToCompany
|
|
3111
|
+
* @param {string} [authorization]
|
|
3112
|
+
* @param {string} [sessionId]
|
|
3113
|
+
* @param {*} [options] Override http request option.
|
|
3114
|
+
* @throws {RequiredError}
|
|
3115
|
+
* @memberof RolesApi
|
|
3116
|
+
*/
|
|
3117
|
+
inviteV1RolesInvitesPost(inviteToCompany, authorization, sessionId, options) {
|
|
3118
|
+
return RolesApiFp(this.configuration).inviteV1RolesInvitesPost(inviteToCompany, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
3119
|
+
}
|
|
3120
|
+
/**
|
|
3121
|
+
* Remove people from company
|
|
3122
|
+
* @summary Remove People
|
|
3123
|
+
* @param {RemoveFromCompany} removeFromCompany
|
|
3124
|
+
* @param {string} [authorization]
|
|
3125
|
+
* @param {string} [sessionId]
|
|
3126
|
+
* @param {*} [options] Override http request option.
|
|
3127
|
+
* @throws {RequiredError}
|
|
3128
|
+
* @memberof RolesApi
|
|
3129
|
+
*/
|
|
3130
|
+
removePeopleV1RolesInvitesDelete(removeFromCompany, authorization, sessionId, options) {
|
|
3131
|
+
return RolesApiFp(this.configuration).removePeopleV1RolesInvitesDelete(removeFromCompany, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
3132
|
+
}
|
|
3133
|
+
}
|
|
3134
|
+
/**
|
|
3135
|
+
* UserApi - axios parameter creator
|
|
3136
|
+
* @export
|
|
3137
|
+
*/
|
|
3138
|
+
export const UserApiAxiosParamCreator = function (configuration) {
|
|
3139
|
+
return {
|
|
3140
|
+
/**
|
|
3141
|
+
* Change user password
|
|
3142
|
+
* @summary Change Password
|
|
3143
|
+
* @param {UpdatePassword} updatePassword
|
|
3144
|
+
* @param {string | null} [sessionId]
|
|
3145
|
+
* @param {*} [options] Override http request option.
|
|
3146
|
+
* @throws {RequiredError}
|
|
3147
|
+
*/
|
|
3148
|
+
changePasswordV1UserPasswordChangePatch: (updatePassword_1, sessionId_1, ...args_1) => __awaiter(this, [updatePassword_1, sessionId_1, ...args_1], void 0, function* (updatePassword, sessionId, options = {}) {
|
|
3149
|
+
// verify required parameter 'updatePassword' is not null or undefined
|
|
3150
|
+
assertParamExists('changePasswordV1UserPasswordChangePatch', 'updatePassword', updatePassword);
|
|
3151
|
+
const localVarPath = `/v1/user/password/change`;
|
|
3152
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3153
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3154
|
+
let baseOptions;
|
|
3155
|
+
if (configuration) {
|
|
3156
|
+
baseOptions = configuration.baseOptions;
|
|
3157
|
+
}
|
|
3158
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
3159
|
+
const localVarHeaderParameter = {};
|
|
3160
|
+
const localVarQueryParameter = {};
|
|
3161
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3162
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3163
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3164
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3165
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updatePassword, localVarRequestOptions, configuration);
|
|
3166
|
+
return {
|
|
3167
|
+
url: toPathString(localVarUrlObj),
|
|
3168
|
+
options: localVarRequestOptions,
|
|
3169
|
+
};
|
|
3170
|
+
}),
|
|
3171
|
+
/**
|
|
3172
|
+
* Delete user
|
|
3173
|
+
* @summary Delete User
|
|
3174
|
+
* @param {string | null} [sessionId]
|
|
3175
|
+
* @param {*} [options] Override http request option.
|
|
3176
|
+
* @throws {RequiredError}
|
|
3177
|
+
*/
|
|
3178
|
+
deleteUserV1UserDeleteDelete: (sessionId_1, ...args_1) => __awaiter(this, [sessionId_1, ...args_1], void 0, function* (sessionId, options = {}) {
|
|
3179
|
+
const localVarPath = `/v1/user/delete`;
|
|
3180
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3181
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3182
|
+
let baseOptions;
|
|
3183
|
+
if (configuration) {
|
|
3184
|
+
baseOptions = configuration.baseOptions;
|
|
3185
|
+
}
|
|
3186
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
3187
|
+
const localVarHeaderParameter = {};
|
|
3188
|
+
const localVarQueryParameter = {};
|
|
3189
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3190
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3191
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3192
|
+
return {
|
|
3193
|
+
url: toPathString(localVarUrlObj),
|
|
3194
|
+
options: localVarRequestOptions,
|
|
3195
|
+
};
|
|
3196
|
+
}),
|
|
3197
|
+
/**
|
|
3198
|
+
* Get current user with relations
|
|
3199
|
+
* @summary Get User Dash
|
|
3200
|
+
* @param {string | null} [sessionId]
|
|
3201
|
+
* @param {*} [options] Override http request option.
|
|
3202
|
+
* @throws {RequiredError}
|
|
3203
|
+
*/
|
|
3204
|
+
getUserDashV1UserMeDashGet: (sessionId_1, ...args_1) => __awaiter(this, [sessionId_1, ...args_1], void 0, function* (sessionId, options = {}) {
|
|
3205
|
+
const localVarPath = `/v1/user/me/dash`;
|
|
3206
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3207
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3208
|
+
let baseOptions;
|
|
3209
|
+
if (configuration) {
|
|
3210
|
+
baseOptions = configuration.baseOptions;
|
|
3211
|
+
}
|
|
3212
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3213
|
+
const localVarHeaderParameter = {};
|
|
3214
|
+
const localVarQueryParameter = {};
|
|
3215
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3216
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3217
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3218
|
+
return {
|
|
3219
|
+
url: toPathString(localVarUrlObj),
|
|
3220
|
+
options: localVarRequestOptions,
|
|
3221
|
+
};
|
|
3222
|
+
}),
|
|
3223
|
+
/**
|
|
3224
|
+
* Get current user
|
|
3225
|
+
* @summary Get User
|
|
3226
|
+
* @param {string | null} [sessionId]
|
|
3227
|
+
* @param {*} [options] Override http request option.
|
|
3228
|
+
* @throws {RequiredError}
|
|
3229
|
+
*/
|
|
3230
|
+
getUserV1UserMeGet: (sessionId_1, ...args_1) => __awaiter(this, [sessionId_1, ...args_1], void 0, function* (sessionId, options = {}) {
|
|
3231
|
+
const localVarPath = `/v1/user/me`;
|
|
3232
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3233
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3234
|
+
let baseOptions;
|
|
3235
|
+
if (configuration) {
|
|
3236
|
+
baseOptions = configuration.baseOptions;
|
|
3237
|
+
}
|
|
3238
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3239
|
+
const localVarHeaderParameter = {};
|
|
3240
|
+
const localVarQueryParameter = {};
|
|
3241
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3242
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3243
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3244
|
+
return {
|
|
3245
|
+
url: toPathString(localVarUrlObj),
|
|
3246
|
+
options: localVarRequestOptions,
|
|
3247
|
+
};
|
|
3248
|
+
}),
|
|
3249
|
+
/**
|
|
3250
|
+
* Update user
|
|
3251
|
+
* @summary Update User
|
|
3252
|
+
* @param {UserUpdate} userUpdate
|
|
3253
|
+
* @param {string | null} [sessionId]
|
|
3254
|
+
* @param {*} [options] Override http request option.
|
|
3255
|
+
* @throws {RequiredError}
|
|
3256
|
+
*/
|
|
3257
|
+
updateUserV1UserUpdatePatch: (userUpdate_1, sessionId_1, ...args_1) => __awaiter(this, [userUpdate_1, sessionId_1, ...args_1], void 0, function* (userUpdate, sessionId, options = {}) {
|
|
3258
|
+
// verify required parameter 'userUpdate' is not null or undefined
|
|
3259
|
+
assertParamExists('updateUserV1UserUpdatePatch', 'userUpdate', userUpdate);
|
|
3260
|
+
const localVarPath = `/v1/user/update`;
|
|
3261
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3262
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3263
|
+
let baseOptions;
|
|
3264
|
+
if (configuration) {
|
|
3265
|
+
baseOptions = configuration.baseOptions;
|
|
3266
|
+
}
|
|
3267
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
3268
|
+
const localVarHeaderParameter = {};
|
|
3269
|
+
const localVarQueryParameter = {};
|
|
3270
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3271
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3272
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3273
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3274
|
+
localVarRequestOptions.data = serializeDataIfNeeded(userUpdate, localVarRequestOptions, configuration);
|
|
3275
|
+
return {
|
|
3276
|
+
url: toPathString(localVarUrlObj),
|
|
3277
|
+
options: localVarRequestOptions,
|
|
3278
|
+
};
|
|
3279
|
+
}),
|
|
3280
|
+
};
|
|
3281
|
+
};
|
|
3282
|
+
/**
|
|
3283
|
+
* UserApi - functional programming interface
|
|
3284
|
+
* @export
|
|
3285
|
+
*/
|
|
3286
|
+
export const UserApiFp = function (configuration) {
|
|
3287
|
+
const localVarAxiosParamCreator = UserApiAxiosParamCreator(configuration);
|
|
3288
|
+
return {
|
|
3289
|
+
/**
|
|
3290
|
+
* Change user password
|
|
3291
|
+
* @summary Change Password
|
|
3292
|
+
* @param {UpdatePassword} updatePassword
|
|
3293
|
+
* @param {string | null} [sessionId]
|
|
3294
|
+
* @param {*} [options] Override http request option.
|
|
3295
|
+
* @throws {RequiredError}
|
|
3296
|
+
*/
|
|
3297
|
+
changePasswordV1UserPasswordChangePatch(updatePassword, sessionId, options) {
|
|
3298
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3299
|
+
var _a, _b, _c;
|
|
3300
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.changePasswordV1UserPasswordChangePatch(updatePassword, sessionId, options);
|
|
3301
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3302
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserApi.changePasswordV1UserPasswordChangePatch']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3303
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3304
|
+
});
|
|
3305
|
+
},
|
|
3306
|
+
/**
|
|
3307
|
+
* Delete user
|
|
3308
|
+
* @summary Delete User
|
|
3309
|
+
* @param {string | null} [sessionId]
|
|
3310
|
+
* @param {*} [options] Override http request option.
|
|
3311
|
+
* @throws {RequiredError}
|
|
3312
|
+
*/
|
|
3313
|
+
deleteUserV1UserDeleteDelete(sessionId, options) {
|
|
3314
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3315
|
+
var _a, _b, _c;
|
|
3316
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteUserV1UserDeleteDelete(sessionId, options);
|
|
3317
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3318
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserApi.deleteUserV1UserDeleteDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3319
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3320
|
+
});
|
|
3321
|
+
},
|
|
3322
|
+
/**
|
|
3323
|
+
* Get current user with relations
|
|
3324
|
+
* @summary Get User Dash
|
|
3325
|
+
* @param {string | null} [sessionId]
|
|
3326
|
+
* @param {*} [options] Override http request option.
|
|
3327
|
+
* @throws {RequiredError}
|
|
3328
|
+
*/
|
|
3329
|
+
getUserDashV1UserMeDashGet(sessionId, options) {
|
|
3330
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3331
|
+
var _a, _b, _c;
|
|
3332
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserDashV1UserMeDashGet(sessionId, options);
|
|
3333
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3334
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserApi.getUserDashV1UserMeDashGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3335
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3336
|
+
});
|
|
3337
|
+
},
|
|
3338
|
+
/**
|
|
3339
|
+
* Get current user
|
|
3340
|
+
* @summary Get User
|
|
3341
|
+
* @param {string | null} [sessionId]
|
|
3342
|
+
* @param {*} [options] Override http request option.
|
|
3343
|
+
* @throws {RequiredError}
|
|
3344
|
+
*/
|
|
3345
|
+
getUserV1UserMeGet(sessionId, options) {
|
|
3346
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3347
|
+
var _a, _b, _c;
|
|
3348
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserV1UserMeGet(sessionId, options);
|
|
3349
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3350
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserApi.getUserV1UserMeGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3351
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3352
|
+
});
|
|
3353
|
+
},
|
|
3354
|
+
/**
|
|
3355
|
+
* Update user
|
|
3356
|
+
* @summary Update User
|
|
3357
|
+
* @param {UserUpdate} userUpdate
|
|
3358
|
+
* @param {string | null} [sessionId]
|
|
3359
|
+
* @param {*} [options] Override http request option.
|
|
3360
|
+
* @throws {RequiredError}
|
|
3361
|
+
*/
|
|
3362
|
+
updateUserV1UserUpdatePatch(userUpdate, sessionId, options) {
|
|
3363
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3364
|
+
var _a, _b, _c;
|
|
3365
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateUserV1UserUpdatePatch(userUpdate, sessionId, options);
|
|
3366
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3367
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserApi.updateUserV1UserUpdatePatch']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3368
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3369
|
+
});
|
|
3370
|
+
},
|
|
3371
|
+
};
|
|
3372
|
+
};
|
|
3373
|
+
/**
|
|
3374
|
+
* UserApi - factory interface
|
|
3375
|
+
* @export
|
|
3376
|
+
*/
|
|
3377
|
+
export const UserApiFactory = function (configuration, basePath, axios) {
|
|
3378
|
+
const localVarFp = UserApiFp(configuration);
|
|
3379
|
+
return {
|
|
3380
|
+
/**
|
|
3381
|
+
* Change user password
|
|
3382
|
+
* @summary Change Password
|
|
3383
|
+
* @param {UpdatePassword} updatePassword
|
|
3384
|
+
* @param {string | null} [sessionId]
|
|
3385
|
+
* @param {*} [options] Override http request option.
|
|
3386
|
+
* @throws {RequiredError}
|
|
3387
|
+
*/
|
|
3388
|
+
changePasswordV1UserPasswordChangePatch(updatePassword, sessionId, options) {
|
|
3389
|
+
return localVarFp.changePasswordV1UserPasswordChangePatch(updatePassword, sessionId, options).then((request) => request(axios, basePath));
|
|
3390
|
+
},
|
|
3391
|
+
/**
|
|
3392
|
+
* Delete user
|
|
3393
|
+
* @summary Delete User
|
|
3394
|
+
* @param {string | null} [sessionId]
|
|
3395
|
+
* @param {*} [options] Override http request option.
|
|
3396
|
+
* @throws {RequiredError}
|
|
3397
|
+
*/
|
|
3398
|
+
deleteUserV1UserDeleteDelete(sessionId, options) {
|
|
3399
|
+
return localVarFp.deleteUserV1UserDeleteDelete(sessionId, options).then((request) => request(axios, basePath));
|
|
3400
|
+
},
|
|
3401
|
+
/**
|
|
3402
|
+
* Get current user with relations
|
|
3403
|
+
* @summary Get User Dash
|
|
3404
|
+
* @param {string | null} [sessionId]
|
|
3405
|
+
* @param {*} [options] Override http request option.
|
|
3406
|
+
* @throws {RequiredError}
|
|
3407
|
+
*/
|
|
3408
|
+
getUserDashV1UserMeDashGet(sessionId, options) {
|
|
3409
|
+
return localVarFp.getUserDashV1UserMeDashGet(sessionId, options).then((request) => request(axios, basePath));
|
|
3410
|
+
},
|
|
3411
|
+
/**
|
|
3412
|
+
* Get current user
|
|
3413
|
+
* @summary Get User
|
|
3414
|
+
* @param {string | null} [sessionId]
|
|
3415
|
+
* @param {*} [options] Override http request option.
|
|
3416
|
+
* @throws {RequiredError}
|
|
3417
|
+
*/
|
|
3418
|
+
getUserV1UserMeGet(sessionId, options) {
|
|
3419
|
+
return localVarFp.getUserV1UserMeGet(sessionId, options).then((request) => request(axios, basePath));
|
|
3420
|
+
},
|
|
3421
|
+
/**
|
|
3422
|
+
* Update user
|
|
3423
|
+
* @summary Update User
|
|
3424
|
+
* @param {UserUpdate} userUpdate
|
|
3425
|
+
* @param {string | null} [sessionId]
|
|
3426
|
+
* @param {*} [options] Override http request option.
|
|
3427
|
+
* @throws {RequiredError}
|
|
3428
|
+
*/
|
|
3429
|
+
updateUserV1UserUpdatePatch(userUpdate, sessionId, options) {
|
|
3430
|
+
return localVarFp.updateUserV1UserUpdatePatch(userUpdate, sessionId, options).then((request) => request(axios, basePath));
|
|
3431
|
+
},
|
|
3432
|
+
};
|
|
3433
|
+
};
|
|
3434
|
+
/**
|
|
3435
|
+
* UserApi - object-oriented interface
|
|
3436
|
+
* @export
|
|
3437
|
+
* @class UserApi
|
|
3438
|
+
* @extends {BaseAPI}
|
|
3439
|
+
*/
|
|
3440
|
+
export class UserApi extends BaseAPI {
|
|
3441
|
+
/**
|
|
3442
|
+
* Change user password
|
|
3443
|
+
* @summary Change Password
|
|
3444
|
+
* @param {UpdatePassword} updatePassword
|
|
3445
|
+
* @param {string | null} [sessionId]
|
|
3446
|
+
* @param {*} [options] Override http request option.
|
|
3447
|
+
* @throws {RequiredError}
|
|
3448
|
+
* @memberof UserApi
|
|
3449
|
+
*/
|
|
3450
|
+
changePasswordV1UserPasswordChangePatch(updatePassword, sessionId, options) {
|
|
3451
|
+
return UserApiFp(this.configuration).changePasswordV1UserPasswordChangePatch(updatePassword, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
3452
|
+
}
|
|
3453
|
+
/**
|
|
3454
|
+
* Delete user
|
|
3455
|
+
* @summary Delete User
|
|
3456
|
+
* @param {string | null} [sessionId]
|
|
3457
|
+
* @param {*} [options] Override http request option.
|
|
3458
|
+
* @throws {RequiredError}
|
|
3459
|
+
* @memberof UserApi
|
|
3460
|
+
*/
|
|
3461
|
+
deleteUserV1UserDeleteDelete(sessionId, options) {
|
|
3462
|
+
return UserApiFp(this.configuration).deleteUserV1UserDeleteDelete(sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
3463
|
+
}
|
|
3464
|
+
/**
|
|
3465
|
+
* Get current user with relations
|
|
3466
|
+
* @summary Get User Dash
|
|
3467
|
+
* @param {string | null} [sessionId]
|
|
3468
|
+
* @param {*} [options] Override http request option.
|
|
3469
|
+
* @throws {RequiredError}
|
|
3470
|
+
* @memberof UserApi
|
|
3471
|
+
*/
|
|
3472
|
+
getUserDashV1UserMeDashGet(sessionId, options) {
|
|
3473
|
+
return UserApiFp(this.configuration).getUserDashV1UserMeDashGet(sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
3474
|
+
}
|
|
3475
|
+
/**
|
|
3476
|
+
* Get current user
|
|
3477
|
+
* @summary Get User
|
|
3478
|
+
* @param {string | null} [sessionId]
|
|
3479
|
+
* @param {*} [options] Override http request option.
|
|
3480
|
+
* @throws {RequiredError}
|
|
3481
|
+
* @memberof UserApi
|
|
3482
|
+
*/
|
|
3483
|
+
getUserV1UserMeGet(sessionId, options) {
|
|
3484
|
+
return UserApiFp(this.configuration).getUserV1UserMeGet(sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
3485
|
+
}
|
|
3486
|
+
/**
|
|
3487
|
+
* Update user
|
|
3488
|
+
* @summary Update User
|
|
3489
|
+
* @param {UserUpdate} userUpdate
|
|
3490
|
+
* @param {string | null} [sessionId]
|
|
3491
|
+
* @param {*} [options] Override http request option.
|
|
3492
|
+
* @throws {RequiredError}
|
|
3493
|
+
* @memberof UserApi
|
|
3494
|
+
*/
|
|
3495
|
+
updateUserV1UserUpdatePatch(userUpdate, sessionId, options) {
|
|
3496
|
+
return UserApiFp(this.configuration).updateUserV1UserUpdatePatch(userUpdate, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
3497
|
+
}
|
|
3498
|
+
}
|