@rasadov/lumoar-sdk 1.2.3 → 1.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +1 -5
- package/api.ts +60 -641
- package/dist/api.d.ts +38 -412
- package/dist/api.js +52 -483
- package/dist/sdk.d.ts +1 -3
- package/dist/sdk.js +1 -3
- package/docs/AuditLogEntity.md +0 -2
- package/docs/ReportBase.md +0 -2
- package/docs/ReportType.md +10 -0
- package/docs/ReportsApi.md +4 -7
- package/docs/UserApi.md +9 -9
- package/package.json +1 -1
- package/sdk.ts +0 -4
package/api.ts
CHANGED
|
@@ -48,7 +48,6 @@ export type AuditLogAction = typeof AuditLogAction[keyof typeof AuditLogAction];
|
|
|
48
48
|
export const AuditLogEntity = {
|
|
49
49
|
CompanyControls: 'company_controls',
|
|
50
50
|
Evidences: 'evidences',
|
|
51
|
-
Policies: 'policies',
|
|
52
51
|
Reports: 'reports',
|
|
53
52
|
Companies: 'companies',
|
|
54
53
|
Users: 'users',
|
|
@@ -1242,25 +1241,6 @@ export interface PaginationResponseCompanyInDBBase {
|
|
|
1242
1241
|
*/
|
|
1243
1242
|
'total': number;
|
|
1244
1243
|
}
|
|
1245
|
-
/**
|
|
1246
|
-
*
|
|
1247
|
-
* @export
|
|
1248
|
-
* @interface PaginationResponsePolicyRead
|
|
1249
|
-
*/
|
|
1250
|
-
export interface PaginationResponsePolicyRead {
|
|
1251
|
-
/**
|
|
1252
|
-
*
|
|
1253
|
-
* @type {Array<PolicyRead>}
|
|
1254
|
-
* @memberof PaginationResponsePolicyRead
|
|
1255
|
-
*/
|
|
1256
|
-
'items': Array<PolicyRead>;
|
|
1257
|
-
/**
|
|
1258
|
-
*
|
|
1259
|
-
* @type {number}
|
|
1260
|
-
* @memberof PaginationResponsePolicyRead
|
|
1261
|
-
*/
|
|
1262
|
-
'total': number;
|
|
1263
|
-
}
|
|
1264
1244
|
/**
|
|
1265
1245
|
*
|
|
1266
1246
|
* @export
|
|
@@ -1355,111 +1335,6 @@ export const PermissionType = {
|
|
|
1355
1335
|
export type PermissionType = typeof PermissionType[keyof typeof PermissionType];
|
|
1356
1336
|
|
|
1357
1337
|
|
|
1358
|
-
/**
|
|
1359
|
-
*
|
|
1360
|
-
* @export
|
|
1361
|
-
* @interface PolicyCreate
|
|
1362
|
-
*/
|
|
1363
|
-
export interface PolicyCreate {
|
|
1364
|
-
/**
|
|
1365
|
-
* Name of the policy
|
|
1366
|
-
* @type {string}
|
|
1367
|
-
* @memberof PolicyCreate
|
|
1368
|
-
*/
|
|
1369
|
-
'name': string;
|
|
1370
|
-
/**
|
|
1371
|
-
* Type of policy (e.g., \'security\', \'privacy\')
|
|
1372
|
-
* @type {string}
|
|
1373
|
-
* @memberof PolicyCreate
|
|
1374
|
-
*/
|
|
1375
|
-
'type': string;
|
|
1376
|
-
/**
|
|
1377
|
-
* Policy content as a JSON object
|
|
1378
|
-
* @type {{ [key: string]: any; }}
|
|
1379
|
-
* @memberof PolicyCreate
|
|
1380
|
-
*/
|
|
1381
|
-
'content': { [key: string]: any; };
|
|
1382
|
-
/**
|
|
1383
|
-
* UUID of the company this policy belongs to
|
|
1384
|
-
* @type {string}
|
|
1385
|
-
* @memberof PolicyCreate
|
|
1386
|
-
*/
|
|
1387
|
-
'company_id': string;
|
|
1388
|
-
}
|
|
1389
|
-
/**
|
|
1390
|
-
*
|
|
1391
|
-
* @export
|
|
1392
|
-
* @interface PolicyRead
|
|
1393
|
-
*/
|
|
1394
|
-
export interface PolicyRead {
|
|
1395
|
-
/**
|
|
1396
|
-
* Unique identifier for the policy
|
|
1397
|
-
* @type {string}
|
|
1398
|
-
* @memberof PolicyRead
|
|
1399
|
-
*/
|
|
1400
|
-
'id': string;
|
|
1401
|
-
/**
|
|
1402
|
-
* Name of the policy
|
|
1403
|
-
* @type {string}
|
|
1404
|
-
* @memberof PolicyRead
|
|
1405
|
-
*/
|
|
1406
|
-
'name': string;
|
|
1407
|
-
/**
|
|
1408
|
-
* Type of policy
|
|
1409
|
-
* @type {string}
|
|
1410
|
-
* @memberof PolicyRead
|
|
1411
|
-
*/
|
|
1412
|
-
'type': string;
|
|
1413
|
-
/**
|
|
1414
|
-
* Policy content
|
|
1415
|
-
* @type {{ [key: string]: any; }}
|
|
1416
|
-
* @memberof PolicyRead
|
|
1417
|
-
*/
|
|
1418
|
-
'content': { [key: string]: any; };
|
|
1419
|
-
/**
|
|
1420
|
-
* UUID of the associated company
|
|
1421
|
-
* @type {string}
|
|
1422
|
-
* @memberof PolicyRead
|
|
1423
|
-
*/
|
|
1424
|
-
'company_id': string;
|
|
1425
|
-
/**
|
|
1426
|
-
* UUID of the user who created the policy
|
|
1427
|
-
* @type {string}
|
|
1428
|
-
* @memberof PolicyRead
|
|
1429
|
-
*/
|
|
1430
|
-
'created_by': string;
|
|
1431
|
-
/**
|
|
1432
|
-
* Timestamp when the policy was created
|
|
1433
|
-
* @type {string}
|
|
1434
|
-
* @memberof PolicyRead
|
|
1435
|
-
*/
|
|
1436
|
-
'created_at': string;
|
|
1437
|
-
}
|
|
1438
|
-
/**
|
|
1439
|
-
*
|
|
1440
|
-
* @export
|
|
1441
|
-
* @interface PolicyUpdate
|
|
1442
|
-
*/
|
|
1443
|
-
export interface PolicyUpdate {
|
|
1444
|
-
/**
|
|
1445
|
-
*
|
|
1446
|
-
* @type {string}
|
|
1447
|
-
* @memberof PolicyUpdate
|
|
1448
|
-
*/
|
|
1449
|
-
'name'?: string | null;
|
|
1450
|
-
/**
|
|
1451
|
-
*
|
|
1452
|
-
* @type {string}
|
|
1453
|
-
* @memberof PolicyUpdate
|
|
1454
|
-
*/
|
|
1455
|
-
'type'?: string | null;
|
|
1456
|
-
/**
|
|
1457
|
-
*
|
|
1458
|
-
* @type {{ [key: string]: any; }}
|
|
1459
|
-
* @memberof PolicyUpdate
|
|
1460
|
-
*/
|
|
1461
|
-
'content'?: { [key: string]: any; } | null;
|
|
1462
|
-
}
|
|
1463
1338
|
/**
|
|
1464
1339
|
* Register schema for user registration. Attributes: - email: EmailStr - password: SecretStr - password_repeat: SecretStr - name: str | None - phone: str | None - turnstile_token: str
|
|
1465
1340
|
* @export
|
|
@@ -1564,12 +1439,6 @@ export interface ReportBase {
|
|
|
1564
1439
|
* @memberof ReportBase
|
|
1565
1440
|
*/
|
|
1566
1441
|
'created_at': string;
|
|
1567
|
-
/**
|
|
1568
|
-
*
|
|
1569
|
-
* @type {string}
|
|
1570
|
-
* @memberof ReportBase
|
|
1571
|
-
*/
|
|
1572
|
-
'updated_at': string;
|
|
1573
1442
|
}
|
|
1574
1443
|
/**
|
|
1575
1444
|
*
|
|
@@ -1584,6 +1453,20 @@ export interface ReportGenerate {
|
|
|
1584
1453
|
*/
|
|
1585
1454
|
'report_id': string;
|
|
1586
1455
|
}
|
|
1456
|
+
/**
|
|
1457
|
+
*
|
|
1458
|
+
* @export
|
|
1459
|
+
* @enum {string}
|
|
1460
|
+
*/
|
|
1461
|
+
|
|
1462
|
+
export const ReportType = {
|
|
1463
|
+
AuditReady: 'audit_ready',
|
|
1464
|
+
GapAnalysis: 'gap_analysis'
|
|
1465
|
+
} as const;
|
|
1466
|
+
|
|
1467
|
+
export type ReportType = typeof ReportType[keyof typeof ReportType];
|
|
1468
|
+
|
|
1469
|
+
|
|
1587
1470
|
/**
|
|
1588
1471
|
* Schema for password reset
|
|
1589
1472
|
* @export
|
|
@@ -5226,461 +5109,6 @@ export class PaymentsApi extends BaseAPI {
|
|
|
5226
5109
|
|
|
5227
5110
|
|
|
5228
5111
|
|
|
5229
|
-
/**
|
|
5230
|
-
* PoliciesApi - axios parameter creator
|
|
5231
|
-
* @export
|
|
5232
|
-
*/
|
|
5233
|
-
export const PoliciesApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
5234
|
-
return {
|
|
5235
|
-
/**
|
|
5236
|
-
*
|
|
5237
|
-
* @summary Create Policy
|
|
5238
|
-
* @param {PolicyCreate} policyCreate
|
|
5239
|
-
* @param {string} [authorization]
|
|
5240
|
-
* @param {string} [sessionId]
|
|
5241
|
-
* @param {*} [options] Override http request option.
|
|
5242
|
-
* @throws {RequiredError}
|
|
5243
|
-
*/
|
|
5244
|
-
createPolicyV1PoliciesCreatePost: async (policyCreate: PolicyCreate, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5245
|
-
// verify required parameter 'policyCreate' is not null or undefined
|
|
5246
|
-
assertParamExists('createPolicyV1PoliciesCreatePost', 'policyCreate', policyCreate)
|
|
5247
|
-
const localVarPath = `/v1/policies/create`;
|
|
5248
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5249
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5250
|
-
let baseOptions;
|
|
5251
|
-
if (configuration) {
|
|
5252
|
-
baseOptions = configuration.baseOptions;
|
|
5253
|
-
}
|
|
5254
|
-
|
|
5255
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
5256
|
-
const localVarHeaderParameter = {} as any;
|
|
5257
|
-
const localVarQueryParameter = {} as any;
|
|
5258
|
-
|
|
5259
|
-
|
|
5260
|
-
|
|
5261
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5262
|
-
|
|
5263
|
-
if (authorization != null) {
|
|
5264
|
-
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
5265
|
-
}
|
|
5266
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5267
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5268
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5269
|
-
localVarRequestOptions.data = serializeDataIfNeeded(policyCreate, localVarRequestOptions, configuration)
|
|
5270
|
-
|
|
5271
|
-
return {
|
|
5272
|
-
url: toPathString(localVarUrlObj),
|
|
5273
|
-
options: localVarRequestOptions,
|
|
5274
|
-
};
|
|
5275
|
-
},
|
|
5276
|
-
/**
|
|
5277
|
-
*
|
|
5278
|
-
* @summary Delete Policy
|
|
5279
|
-
* @param {string} policyId
|
|
5280
|
-
* @param {string} [authorization]
|
|
5281
|
-
* @param {string} [sessionId]
|
|
5282
|
-
* @param {*} [options] Override http request option.
|
|
5283
|
-
* @throws {RequiredError}
|
|
5284
|
-
*/
|
|
5285
|
-
deletePolicyV1PoliciesPolicyIdDelete: async (policyId: string, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5286
|
-
// verify required parameter 'policyId' is not null or undefined
|
|
5287
|
-
assertParamExists('deletePolicyV1PoliciesPolicyIdDelete', 'policyId', policyId)
|
|
5288
|
-
const localVarPath = `/v1/policies/{policy_id}`
|
|
5289
|
-
.replace(`{${"policy_id"}}`, encodeURIComponent(String(policyId)));
|
|
5290
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5291
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5292
|
-
let baseOptions;
|
|
5293
|
-
if (configuration) {
|
|
5294
|
-
baseOptions = configuration.baseOptions;
|
|
5295
|
-
}
|
|
5296
|
-
|
|
5297
|
-
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
5298
|
-
const localVarHeaderParameter = {} as any;
|
|
5299
|
-
const localVarQueryParameter = {} as any;
|
|
5300
|
-
|
|
5301
|
-
|
|
5302
|
-
|
|
5303
|
-
if (authorization != null) {
|
|
5304
|
-
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
5305
|
-
}
|
|
5306
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5307
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5308
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5309
|
-
|
|
5310
|
-
return {
|
|
5311
|
-
url: toPathString(localVarUrlObj),
|
|
5312
|
-
options: localVarRequestOptions,
|
|
5313
|
-
};
|
|
5314
|
-
},
|
|
5315
|
-
/**
|
|
5316
|
-
*
|
|
5317
|
-
* @summary Get Company Policies
|
|
5318
|
-
* @param {string} companyId
|
|
5319
|
-
* @param {number} [page]
|
|
5320
|
-
* @param {number} [elements]
|
|
5321
|
-
* @param {string} [authorization]
|
|
5322
|
-
* @param {string} [sessionId]
|
|
5323
|
-
* @param {*} [options] Override http request option.
|
|
5324
|
-
* @throws {RequiredError}
|
|
5325
|
-
*/
|
|
5326
|
-
getCompanyPoliciesV1PoliciesCompanyCompanyIdGet: async (companyId: string, page?: number, elements?: number, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5327
|
-
// verify required parameter 'companyId' is not null or undefined
|
|
5328
|
-
assertParamExists('getCompanyPoliciesV1PoliciesCompanyCompanyIdGet', 'companyId', companyId)
|
|
5329
|
-
const localVarPath = `/v1/policies/company/{company_id}`
|
|
5330
|
-
.replace(`{${"company_id"}}`, encodeURIComponent(String(companyId)));
|
|
5331
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5332
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5333
|
-
let baseOptions;
|
|
5334
|
-
if (configuration) {
|
|
5335
|
-
baseOptions = configuration.baseOptions;
|
|
5336
|
-
}
|
|
5337
|
-
|
|
5338
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
5339
|
-
const localVarHeaderParameter = {} as any;
|
|
5340
|
-
const localVarQueryParameter = {} as any;
|
|
5341
|
-
|
|
5342
|
-
if (page !== undefined) {
|
|
5343
|
-
localVarQueryParameter['page'] = page;
|
|
5344
|
-
}
|
|
5345
|
-
|
|
5346
|
-
if (elements !== undefined) {
|
|
5347
|
-
localVarQueryParameter['elements'] = elements;
|
|
5348
|
-
}
|
|
5349
|
-
|
|
5350
|
-
|
|
5351
|
-
|
|
5352
|
-
if (authorization != null) {
|
|
5353
|
-
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
5354
|
-
}
|
|
5355
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5356
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5357
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5358
|
-
|
|
5359
|
-
return {
|
|
5360
|
-
url: toPathString(localVarUrlObj),
|
|
5361
|
-
options: localVarRequestOptions,
|
|
5362
|
-
};
|
|
5363
|
-
},
|
|
5364
|
-
/**
|
|
5365
|
-
*
|
|
5366
|
-
* @summary Get Policy
|
|
5367
|
-
* @param {string} policyId
|
|
5368
|
-
* @param {*} [options] Override http request option.
|
|
5369
|
-
* @throws {RequiredError}
|
|
5370
|
-
*/
|
|
5371
|
-
getPolicyV1PoliciesPolicyIdGet: async (policyId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5372
|
-
// verify required parameter 'policyId' is not null or undefined
|
|
5373
|
-
assertParamExists('getPolicyV1PoliciesPolicyIdGet', 'policyId', policyId)
|
|
5374
|
-
const localVarPath = `/v1/policies/{policy_id}`
|
|
5375
|
-
.replace(`{${"policy_id"}}`, encodeURIComponent(String(policyId)));
|
|
5376
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5377
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5378
|
-
let baseOptions;
|
|
5379
|
-
if (configuration) {
|
|
5380
|
-
baseOptions = configuration.baseOptions;
|
|
5381
|
-
}
|
|
5382
|
-
|
|
5383
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
5384
|
-
const localVarHeaderParameter = {} as any;
|
|
5385
|
-
const localVarQueryParameter = {} as any;
|
|
5386
|
-
|
|
5387
|
-
|
|
5388
|
-
|
|
5389
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5390
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5391
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5392
|
-
|
|
5393
|
-
return {
|
|
5394
|
-
url: toPathString(localVarUrlObj),
|
|
5395
|
-
options: localVarRequestOptions,
|
|
5396
|
-
};
|
|
5397
|
-
},
|
|
5398
|
-
/**
|
|
5399
|
-
*
|
|
5400
|
-
* @summary Update Policy
|
|
5401
|
-
* @param {string} policyId
|
|
5402
|
-
* @param {PolicyUpdate} policyUpdate
|
|
5403
|
-
* @param {string} [authorization]
|
|
5404
|
-
* @param {string} [sessionId]
|
|
5405
|
-
* @param {*} [options] Override http request option.
|
|
5406
|
-
* @throws {RequiredError}
|
|
5407
|
-
*/
|
|
5408
|
-
updatePolicyV1PoliciesPolicyIdPut: async (policyId: string, policyUpdate: PolicyUpdate, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5409
|
-
// verify required parameter 'policyId' is not null or undefined
|
|
5410
|
-
assertParamExists('updatePolicyV1PoliciesPolicyIdPut', 'policyId', policyId)
|
|
5411
|
-
// verify required parameter 'policyUpdate' is not null or undefined
|
|
5412
|
-
assertParamExists('updatePolicyV1PoliciesPolicyIdPut', 'policyUpdate', policyUpdate)
|
|
5413
|
-
const localVarPath = `/v1/policies/{policy_id}`
|
|
5414
|
-
.replace(`{${"policy_id"}}`, encodeURIComponent(String(policyId)));
|
|
5415
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5416
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5417
|
-
let baseOptions;
|
|
5418
|
-
if (configuration) {
|
|
5419
|
-
baseOptions = configuration.baseOptions;
|
|
5420
|
-
}
|
|
5421
|
-
|
|
5422
|
-
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
5423
|
-
const localVarHeaderParameter = {} as any;
|
|
5424
|
-
const localVarQueryParameter = {} as any;
|
|
5425
|
-
|
|
5426
|
-
|
|
5427
|
-
|
|
5428
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5429
|
-
|
|
5430
|
-
if (authorization != null) {
|
|
5431
|
-
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
5432
|
-
}
|
|
5433
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5434
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5435
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5436
|
-
localVarRequestOptions.data = serializeDataIfNeeded(policyUpdate, localVarRequestOptions, configuration)
|
|
5437
|
-
|
|
5438
|
-
return {
|
|
5439
|
-
url: toPathString(localVarUrlObj),
|
|
5440
|
-
options: localVarRequestOptions,
|
|
5441
|
-
};
|
|
5442
|
-
},
|
|
5443
|
-
}
|
|
5444
|
-
};
|
|
5445
|
-
|
|
5446
|
-
/**
|
|
5447
|
-
* PoliciesApi - functional programming interface
|
|
5448
|
-
* @export
|
|
5449
|
-
*/
|
|
5450
|
-
export const PoliciesApiFp = function(configuration?: Configuration) {
|
|
5451
|
-
const localVarAxiosParamCreator = PoliciesApiAxiosParamCreator(configuration)
|
|
5452
|
-
return {
|
|
5453
|
-
/**
|
|
5454
|
-
*
|
|
5455
|
-
* @summary Create Policy
|
|
5456
|
-
* @param {PolicyCreate} policyCreate
|
|
5457
|
-
* @param {string} [authorization]
|
|
5458
|
-
* @param {string} [sessionId]
|
|
5459
|
-
* @param {*} [options] Override http request option.
|
|
5460
|
-
* @throws {RequiredError}
|
|
5461
|
-
*/
|
|
5462
|
-
async createPolicyV1PoliciesCreatePost(policyCreate: PolicyCreate, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PolicyRead>> {
|
|
5463
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createPolicyV1PoliciesCreatePost(policyCreate, authorization, sessionId, options);
|
|
5464
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5465
|
-
const localVarOperationServerBasePath = operationServerMap['PoliciesApi.createPolicyV1PoliciesCreatePost']?.[localVarOperationServerIndex]?.url;
|
|
5466
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5467
|
-
},
|
|
5468
|
-
/**
|
|
5469
|
-
*
|
|
5470
|
-
* @summary Delete Policy
|
|
5471
|
-
* @param {string} policyId
|
|
5472
|
-
* @param {string} [authorization]
|
|
5473
|
-
* @param {string} [sessionId]
|
|
5474
|
-
* @param {*} [options] Override http request option.
|
|
5475
|
-
* @throws {RequiredError}
|
|
5476
|
-
*/
|
|
5477
|
-
async deletePolicyV1PoliciesPolicyIdDelete(policyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
5478
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deletePolicyV1PoliciesPolicyIdDelete(policyId, authorization, sessionId, options);
|
|
5479
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5480
|
-
const localVarOperationServerBasePath = operationServerMap['PoliciesApi.deletePolicyV1PoliciesPolicyIdDelete']?.[localVarOperationServerIndex]?.url;
|
|
5481
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5482
|
-
},
|
|
5483
|
-
/**
|
|
5484
|
-
*
|
|
5485
|
-
* @summary Get Company Policies
|
|
5486
|
-
* @param {string} companyId
|
|
5487
|
-
* @param {number} [page]
|
|
5488
|
-
* @param {number} [elements]
|
|
5489
|
-
* @param {string} [authorization]
|
|
5490
|
-
* @param {string} [sessionId]
|
|
5491
|
-
* @param {*} [options] Override http request option.
|
|
5492
|
-
* @throws {RequiredError}
|
|
5493
|
-
*/
|
|
5494
|
-
async getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId: string, page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaginationResponsePolicyRead>> {
|
|
5495
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId, page, elements, authorization, sessionId, options);
|
|
5496
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5497
|
-
const localVarOperationServerBasePath = operationServerMap['PoliciesApi.getCompanyPoliciesV1PoliciesCompanyCompanyIdGet']?.[localVarOperationServerIndex]?.url;
|
|
5498
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5499
|
-
},
|
|
5500
|
-
/**
|
|
5501
|
-
*
|
|
5502
|
-
* @summary Get Policy
|
|
5503
|
-
* @param {string} policyId
|
|
5504
|
-
* @param {*} [options] Override http request option.
|
|
5505
|
-
* @throws {RequiredError}
|
|
5506
|
-
*/
|
|
5507
|
-
async getPolicyV1PoliciesPolicyIdGet(policyId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PolicyRead>> {
|
|
5508
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getPolicyV1PoliciesPolicyIdGet(policyId, options);
|
|
5509
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5510
|
-
const localVarOperationServerBasePath = operationServerMap['PoliciesApi.getPolicyV1PoliciesPolicyIdGet']?.[localVarOperationServerIndex]?.url;
|
|
5511
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5512
|
-
},
|
|
5513
|
-
/**
|
|
5514
|
-
*
|
|
5515
|
-
* @summary Update Policy
|
|
5516
|
-
* @param {string} policyId
|
|
5517
|
-
* @param {PolicyUpdate} policyUpdate
|
|
5518
|
-
* @param {string} [authorization]
|
|
5519
|
-
* @param {string} [sessionId]
|
|
5520
|
-
* @param {*} [options] Override http request option.
|
|
5521
|
-
* @throws {RequiredError}
|
|
5522
|
-
*/
|
|
5523
|
-
async updatePolicyV1PoliciesPolicyIdPut(policyId: string, policyUpdate: PolicyUpdate, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PolicyRead>> {
|
|
5524
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updatePolicyV1PoliciesPolicyIdPut(policyId, policyUpdate, authorization, sessionId, options);
|
|
5525
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5526
|
-
const localVarOperationServerBasePath = operationServerMap['PoliciesApi.updatePolicyV1PoliciesPolicyIdPut']?.[localVarOperationServerIndex]?.url;
|
|
5527
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5528
|
-
},
|
|
5529
|
-
}
|
|
5530
|
-
};
|
|
5531
|
-
|
|
5532
|
-
/**
|
|
5533
|
-
* PoliciesApi - factory interface
|
|
5534
|
-
* @export
|
|
5535
|
-
*/
|
|
5536
|
-
export const PoliciesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
5537
|
-
const localVarFp = PoliciesApiFp(configuration)
|
|
5538
|
-
return {
|
|
5539
|
-
/**
|
|
5540
|
-
*
|
|
5541
|
-
* @summary Create Policy
|
|
5542
|
-
* @param {PolicyCreate} policyCreate
|
|
5543
|
-
* @param {string} [authorization]
|
|
5544
|
-
* @param {string} [sessionId]
|
|
5545
|
-
* @param {*} [options] Override http request option.
|
|
5546
|
-
* @throws {RequiredError}
|
|
5547
|
-
*/
|
|
5548
|
-
createPolicyV1PoliciesCreatePost(policyCreate: PolicyCreate, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<PolicyRead> {
|
|
5549
|
-
return localVarFp.createPolicyV1PoliciesCreatePost(policyCreate, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
5550
|
-
},
|
|
5551
|
-
/**
|
|
5552
|
-
*
|
|
5553
|
-
* @summary Delete Policy
|
|
5554
|
-
* @param {string} policyId
|
|
5555
|
-
* @param {string} [authorization]
|
|
5556
|
-
* @param {string} [sessionId]
|
|
5557
|
-
* @param {*} [options] Override http request option.
|
|
5558
|
-
* @throws {RequiredError}
|
|
5559
|
-
*/
|
|
5560
|
-
deletePolicyV1PoliciesPolicyIdDelete(policyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
5561
|
-
return localVarFp.deletePolicyV1PoliciesPolicyIdDelete(policyId, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
5562
|
-
},
|
|
5563
|
-
/**
|
|
5564
|
-
*
|
|
5565
|
-
* @summary Get Company Policies
|
|
5566
|
-
* @param {string} companyId
|
|
5567
|
-
* @param {number} [page]
|
|
5568
|
-
* @param {number} [elements]
|
|
5569
|
-
* @param {string} [authorization]
|
|
5570
|
-
* @param {string} [sessionId]
|
|
5571
|
-
* @param {*} [options] Override http request option.
|
|
5572
|
-
* @throws {RequiredError}
|
|
5573
|
-
*/
|
|
5574
|
-
getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId: string, page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<PaginationResponsePolicyRead> {
|
|
5575
|
-
return localVarFp.getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId, page, elements, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
5576
|
-
},
|
|
5577
|
-
/**
|
|
5578
|
-
*
|
|
5579
|
-
* @summary Get Policy
|
|
5580
|
-
* @param {string} policyId
|
|
5581
|
-
* @param {*} [options] Override http request option.
|
|
5582
|
-
* @throws {RequiredError}
|
|
5583
|
-
*/
|
|
5584
|
-
getPolicyV1PoliciesPolicyIdGet(policyId: string, options?: RawAxiosRequestConfig): AxiosPromise<PolicyRead> {
|
|
5585
|
-
return localVarFp.getPolicyV1PoliciesPolicyIdGet(policyId, options).then((request) => request(axios, basePath));
|
|
5586
|
-
},
|
|
5587
|
-
/**
|
|
5588
|
-
*
|
|
5589
|
-
* @summary Update Policy
|
|
5590
|
-
* @param {string} policyId
|
|
5591
|
-
* @param {PolicyUpdate} policyUpdate
|
|
5592
|
-
* @param {string} [authorization]
|
|
5593
|
-
* @param {string} [sessionId]
|
|
5594
|
-
* @param {*} [options] Override http request option.
|
|
5595
|
-
* @throws {RequiredError}
|
|
5596
|
-
*/
|
|
5597
|
-
updatePolicyV1PoliciesPolicyIdPut(policyId: string, policyUpdate: PolicyUpdate, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<PolicyRead> {
|
|
5598
|
-
return localVarFp.updatePolicyV1PoliciesPolicyIdPut(policyId, policyUpdate, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
5599
|
-
},
|
|
5600
|
-
};
|
|
5601
|
-
};
|
|
5602
|
-
|
|
5603
|
-
/**
|
|
5604
|
-
* PoliciesApi - object-oriented interface
|
|
5605
|
-
* @export
|
|
5606
|
-
* @class PoliciesApi
|
|
5607
|
-
* @extends {BaseAPI}
|
|
5608
|
-
*/
|
|
5609
|
-
export class PoliciesApi extends BaseAPI {
|
|
5610
|
-
/**
|
|
5611
|
-
*
|
|
5612
|
-
* @summary Create Policy
|
|
5613
|
-
* @param {PolicyCreate} policyCreate
|
|
5614
|
-
* @param {string} [authorization]
|
|
5615
|
-
* @param {string} [sessionId]
|
|
5616
|
-
* @param {*} [options] Override http request option.
|
|
5617
|
-
* @throws {RequiredError}
|
|
5618
|
-
* @memberof PoliciesApi
|
|
5619
|
-
*/
|
|
5620
|
-
public createPolicyV1PoliciesCreatePost(policyCreate: PolicyCreate, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
|
|
5621
|
-
return PoliciesApiFp(this.configuration).createPolicyV1PoliciesCreatePost(policyCreate, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
5622
|
-
}
|
|
5623
|
-
|
|
5624
|
-
/**
|
|
5625
|
-
*
|
|
5626
|
-
* @summary Delete Policy
|
|
5627
|
-
* @param {string} policyId
|
|
5628
|
-
* @param {string} [authorization]
|
|
5629
|
-
* @param {string} [sessionId]
|
|
5630
|
-
* @param {*} [options] Override http request option.
|
|
5631
|
-
* @throws {RequiredError}
|
|
5632
|
-
* @memberof PoliciesApi
|
|
5633
|
-
*/
|
|
5634
|
-
public deletePolicyV1PoliciesPolicyIdDelete(policyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
|
|
5635
|
-
return PoliciesApiFp(this.configuration).deletePolicyV1PoliciesPolicyIdDelete(policyId, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
5636
|
-
}
|
|
5637
|
-
|
|
5638
|
-
/**
|
|
5639
|
-
*
|
|
5640
|
-
* @summary Get Company Policies
|
|
5641
|
-
* @param {string} companyId
|
|
5642
|
-
* @param {number} [page]
|
|
5643
|
-
* @param {number} [elements]
|
|
5644
|
-
* @param {string} [authorization]
|
|
5645
|
-
* @param {string} [sessionId]
|
|
5646
|
-
* @param {*} [options] Override http request option.
|
|
5647
|
-
* @throws {RequiredError}
|
|
5648
|
-
* @memberof PoliciesApi
|
|
5649
|
-
*/
|
|
5650
|
-
public getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId: string, page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
|
|
5651
|
-
return PoliciesApiFp(this.configuration).getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId, page, elements, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
5652
|
-
}
|
|
5653
|
-
|
|
5654
|
-
/**
|
|
5655
|
-
*
|
|
5656
|
-
* @summary Get Policy
|
|
5657
|
-
* @param {string} policyId
|
|
5658
|
-
* @param {*} [options] Override http request option.
|
|
5659
|
-
* @throws {RequiredError}
|
|
5660
|
-
* @memberof PoliciesApi
|
|
5661
|
-
*/
|
|
5662
|
-
public getPolicyV1PoliciesPolicyIdGet(policyId: string, options?: RawAxiosRequestConfig) {
|
|
5663
|
-
return PoliciesApiFp(this.configuration).getPolicyV1PoliciesPolicyIdGet(policyId, options).then((request) => request(this.axios, this.basePath));
|
|
5664
|
-
}
|
|
5665
|
-
|
|
5666
|
-
/**
|
|
5667
|
-
*
|
|
5668
|
-
* @summary Update Policy
|
|
5669
|
-
* @param {string} policyId
|
|
5670
|
-
* @param {PolicyUpdate} policyUpdate
|
|
5671
|
-
* @param {string} [authorization]
|
|
5672
|
-
* @param {string} [sessionId]
|
|
5673
|
-
* @param {*} [options] Override http request option.
|
|
5674
|
-
* @throws {RequiredError}
|
|
5675
|
-
* @memberof PoliciesApi
|
|
5676
|
-
*/
|
|
5677
|
-
public updatePolicyV1PoliciesPolicyIdPut(policyId: string, policyUpdate: PolicyUpdate, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
|
|
5678
|
-
return PoliciesApiFp(this.configuration).updatePolicyV1PoliciesPolicyIdPut(policyId, policyUpdate, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
5679
|
-
}
|
|
5680
|
-
}
|
|
5681
|
-
|
|
5682
|
-
|
|
5683
|
-
|
|
5684
5112
|
/**
|
|
5685
5113
|
* ReportsApi - axios parameter creator
|
|
5686
5114
|
* @export
|
|
@@ -5730,20 +5158,17 @@ export const ReportsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
5730
5158
|
*
|
|
5731
5159
|
* @summary Generate Report
|
|
5732
5160
|
* @param {string} companyId
|
|
5733
|
-
* @param {
|
|
5734
|
-
* @param {{ [key: string]: any; }} requestBody
|
|
5161
|
+
* @param {ReportType} reportType
|
|
5735
5162
|
* @param {string} [authorization]
|
|
5736
5163
|
* @param {string} [sessionId]
|
|
5737
5164
|
* @param {*} [options] Override http request option.
|
|
5738
5165
|
* @throws {RequiredError}
|
|
5739
5166
|
*/
|
|
5740
|
-
generateReportV1ReportsGeneratePost: async (companyId: string, reportType:
|
|
5167
|
+
generateReportV1ReportsGeneratePost: async (companyId: string, reportType: ReportType, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5741
5168
|
// verify required parameter 'companyId' is not null or undefined
|
|
5742
5169
|
assertParamExists('generateReportV1ReportsGeneratePost', 'companyId', companyId)
|
|
5743
5170
|
// verify required parameter 'reportType' is not null or undefined
|
|
5744
5171
|
assertParamExists('generateReportV1ReportsGeneratePost', 'reportType', reportType)
|
|
5745
|
-
// verify required parameter 'requestBody' is not null or undefined
|
|
5746
|
-
assertParamExists('generateReportV1ReportsGeneratePost', 'requestBody', requestBody)
|
|
5747
5172
|
const localVarPath = `/v1/reports/generate`;
|
|
5748
5173
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5749
5174
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -5766,15 +5191,12 @@ export const ReportsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
5766
5191
|
|
|
5767
5192
|
|
|
5768
5193
|
|
|
5769
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5770
|
-
|
|
5771
5194
|
if (authorization != null) {
|
|
5772
5195
|
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
5773
5196
|
}
|
|
5774
5197
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5775
5198
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5776
5199
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5777
|
-
localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration)
|
|
5778
5200
|
|
|
5779
5201
|
return {
|
|
5780
5202
|
url: toPathString(localVarUrlObj),
|
|
@@ -5902,15 +5324,14 @@ export const ReportsApiFp = function(configuration?: Configuration) {
|
|
|
5902
5324
|
*
|
|
5903
5325
|
* @summary Generate Report
|
|
5904
5326
|
* @param {string} companyId
|
|
5905
|
-
* @param {
|
|
5906
|
-
* @param {{ [key: string]: any; }} requestBody
|
|
5327
|
+
* @param {ReportType} reportType
|
|
5907
5328
|
* @param {string} [authorization]
|
|
5908
5329
|
* @param {string} [sessionId]
|
|
5909
5330
|
* @param {*} [options] Override http request option.
|
|
5910
5331
|
* @throws {RequiredError}
|
|
5911
5332
|
*/
|
|
5912
|
-
async generateReportV1ReportsGeneratePost(companyId: string, reportType:
|
|
5913
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.generateReportV1ReportsGeneratePost(companyId, reportType,
|
|
5333
|
+
async generateReportV1ReportsGeneratePost(companyId: string, reportType: ReportType, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReportGenerate>> {
|
|
5334
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.generateReportV1ReportsGeneratePost(companyId, reportType, authorization, sessionId, options);
|
|
5914
5335
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5915
5336
|
const localVarOperationServerBasePath = operationServerMap['ReportsApi.generateReportV1ReportsGeneratePost']?.[localVarOperationServerIndex]?.url;
|
|
5916
5337
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -5974,15 +5395,14 @@ export const ReportsApiFactory = function (configuration?: Configuration, basePa
|
|
|
5974
5395
|
*
|
|
5975
5396
|
* @summary Generate Report
|
|
5976
5397
|
* @param {string} companyId
|
|
5977
|
-
* @param {
|
|
5978
|
-
* @param {{ [key: string]: any; }} requestBody
|
|
5398
|
+
* @param {ReportType} reportType
|
|
5979
5399
|
* @param {string} [authorization]
|
|
5980
5400
|
* @param {string} [sessionId]
|
|
5981
5401
|
* @param {*} [options] Override http request option.
|
|
5982
5402
|
* @throws {RequiredError}
|
|
5983
5403
|
*/
|
|
5984
|
-
generateReportV1ReportsGeneratePost(companyId: string, reportType:
|
|
5985
|
-
return localVarFp.generateReportV1ReportsGeneratePost(companyId, reportType,
|
|
5404
|
+
generateReportV1ReportsGeneratePost(companyId: string, reportType: ReportType, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<ReportGenerate> {
|
|
5405
|
+
return localVarFp.generateReportV1ReportsGeneratePost(companyId, reportType, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
5986
5406
|
},
|
|
5987
5407
|
/**
|
|
5988
5408
|
*
|
|
@@ -6039,16 +5459,15 @@ export class ReportsApi extends BaseAPI {
|
|
|
6039
5459
|
*
|
|
6040
5460
|
* @summary Generate Report
|
|
6041
5461
|
* @param {string} companyId
|
|
6042
|
-
* @param {
|
|
6043
|
-
* @param {{ [key: string]: any; }} requestBody
|
|
5462
|
+
* @param {ReportType} reportType
|
|
6044
5463
|
* @param {string} [authorization]
|
|
6045
5464
|
* @param {string} [sessionId]
|
|
6046
5465
|
* @param {*} [options] Override http request option.
|
|
6047
5466
|
* @throws {RequiredError}
|
|
6048
5467
|
* @memberof ReportsApi
|
|
6049
5468
|
*/
|
|
6050
|
-
public generateReportV1ReportsGeneratePost(companyId: string, reportType:
|
|
6051
|
-
return ReportsApiFp(this.configuration).generateReportV1ReportsGeneratePost(companyId, reportType,
|
|
5469
|
+
public generateReportV1ReportsGeneratePost(companyId: string, reportType: ReportType, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
|
|
5470
|
+
return ReportsApiFp(this.configuration).generateReportV1ReportsGeneratePost(companyId, reportType, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
6052
5471
|
}
|
|
6053
5472
|
|
|
6054
5473
|
/**
|
|
@@ -7470,13 +6889,12 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
7470
6889
|
/**
|
|
7471
6890
|
*
|
|
7472
6891
|
* @summary Resend Otp By Email
|
|
7473
|
-
* @param {string}
|
|
6892
|
+
* @param {string} [authorization]
|
|
6893
|
+
* @param {string} [sessionId]
|
|
7474
6894
|
* @param {*} [options] Override http request option.
|
|
7475
6895
|
* @throws {RequiredError}
|
|
7476
6896
|
*/
|
|
7477
|
-
resendOtpByEmailV1UserResendOtpEmailPost: async (
|
|
7478
|
-
// verify required parameter 'email' is not null or undefined
|
|
7479
|
-
assertParamExists('resendOtpByEmailV1UserResendOtpEmailPost', 'email', email)
|
|
6897
|
+
resendOtpByEmailV1UserResendOtpEmailPost: async (authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
7480
6898
|
const localVarPath = `/v1/user/resend-otp/email`;
|
|
7481
6899
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7482
6900
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -7489,12 +6907,11 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
7489
6907
|
const localVarHeaderParameter = {} as any;
|
|
7490
6908
|
const localVarQueryParameter = {} as any;
|
|
7491
6909
|
|
|
7492
|
-
if (email !== undefined) {
|
|
7493
|
-
localVarQueryParameter['email'] = email;
|
|
7494
|
-
}
|
|
7495
|
-
|
|
7496
6910
|
|
|
7497
6911
|
|
|
6912
|
+
if (authorization != null) {
|
|
6913
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
6914
|
+
}
|
|
7498
6915
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7499
6916
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7500
6917
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -7507,12 +6924,13 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
7507
6924
|
/**
|
|
7508
6925
|
*
|
|
7509
6926
|
* @summary Resend Otp
|
|
7510
|
-
* @param {string}
|
|
7511
|
-
* @param {string} [sessionId]
|
|
6927
|
+
* @param {string} email
|
|
7512
6928
|
* @param {*} [options] Override http request option.
|
|
7513
6929
|
* @throws {RequiredError}
|
|
7514
6930
|
*/
|
|
7515
|
-
resendOtpV1UserResendOtpPasswordPost: async (
|
|
6931
|
+
resendOtpV1UserResendOtpPasswordPost: async (email: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6932
|
+
// verify required parameter 'email' is not null or undefined
|
|
6933
|
+
assertParamExists('resendOtpV1UserResendOtpPasswordPost', 'email', email)
|
|
7516
6934
|
const localVarPath = `/v1/user/resend-otp/password`;
|
|
7517
6935
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7518
6936
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -7525,11 +6943,12 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
7525
6943
|
const localVarHeaderParameter = {} as any;
|
|
7526
6944
|
const localVarQueryParameter = {} as any;
|
|
7527
6945
|
|
|
6946
|
+
if (email !== undefined) {
|
|
6947
|
+
localVarQueryParameter['email'] = email;
|
|
6948
|
+
}
|
|
6949
|
+
|
|
7528
6950
|
|
|
7529
6951
|
|
|
7530
|
-
if (authorization != null) {
|
|
7531
|
-
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
7532
|
-
}
|
|
7533
6952
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7534
6953
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7535
6954
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -7767,12 +7186,13 @@ export const UserApiFp = function(configuration?: Configuration) {
|
|
|
7767
7186
|
/**
|
|
7768
7187
|
*
|
|
7769
7188
|
* @summary Resend Otp By Email
|
|
7770
|
-
* @param {string}
|
|
7189
|
+
* @param {string} [authorization]
|
|
7190
|
+
* @param {string} [sessionId]
|
|
7771
7191
|
* @param {*} [options] Override http request option.
|
|
7772
7192
|
* @throws {RequiredError}
|
|
7773
7193
|
*/
|
|
7774
|
-
async resendOtpByEmailV1UserResendOtpEmailPost(
|
|
7775
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.resendOtpByEmailV1UserResendOtpEmailPost(
|
|
7194
|
+
async resendOtpByEmailV1UserResendOtpEmailPost(authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Details>> {
|
|
7195
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.resendOtpByEmailV1UserResendOtpEmailPost(authorization, sessionId, options);
|
|
7776
7196
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7777
7197
|
const localVarOperationServerBasePath = operationServerMap['UserApi.resendOtpByEmailV1UserResendOtpEmailPost']?.[localVarOperationServerIndex]?.url;
|
|
7778
7198
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -7780,13 +7200,12 @@ export const UserApiFp = function(configuration?: Configuration) {
|
|
|
7780
7200
|
/**
|
|
7781
7201
|
*
|
|
7782
7202
|
* @summary Resend Otp
|
|
7783
|
-
* @param {string}
|
|
7784
|
-
* @param {string} [sessionId]
|
|
7203
|
+
* @param {string} email
|
|
7785
7204
|
* @param {*} [options] Override http request option.
|
|
7786
7205
|
* @throws {RequiredError}
|
|
7787
7206
|
*/
|
|
7788
|
-
async resendOtpV1UserResendOtpPasswordPost(
|
|
7789
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.resendOtpV1UserResendOtpPasswordPost(
|
|
7207
|
+
async resendOtpV1UserResendOtpPasswordPost(email: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Details>> {
|
|
7208
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.resendOtpV1UserResendOtpPasswordPost(email, options);
|
|
7790
7209
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7791
7210
|
const localVarOperationServerBasePath = operationServerMap['UserApi.resendOtpV1UserResendOtpPasswordPost']?.[localVarOperationServerIndex]?.url;
|
|
7792
7211
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -7911,23 +7330,23 @@ export const UserApiFactory = function (configuration?: Configuration, basePath?
|
|
|
7911
7330
|
/**
|
|
7912
7331
|
*
|
|
7913
7332
|
* @summary Resend Otp By Email
|
|
7914
|
-
* @param {string}
|
|
7333
|
+
* @param {string} [authorization]
|
|
7334
|
+
* @param {string} [sessionId]
|
|
7915
7335
|
* @param {*} [options] Override http request option.
|
|
7916
7336
|
* @throws {RequiredError}
|
|
7917
7337
|
*/
|
|
7918
|
-
resendOtpByEmailV1UserResendOtpEmailPost(
|
|
7919
|
-
return localVarFp.resendOtpByEmailV1UserResendOtpEmailPost(
|
|
7338
|
+
resendOtpByEmailV1UserResendOtpEmailPost(authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Details> {
|
|
7339
|
+
return localVarFp.resendOtpByEmailV1UserResendOtpEmailPost(authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
7920
7340
|
},
|
|
7921
7341
|
/**
|
|
7922
7342
|
*
|
|
7923
7343
|
* @summary Resend Otp
|
|
7924
|
-
* @param {string}
|
|
7925
|
-
* @param {string} [sessionId]
|
|
7344
|
+
* @param {string} email
|
|
7926
7345
|
* @param {*} [options] Override http request option.
|
|
7927
7346
|
* @throws {RequiredError}
|
|
7928
7347
|
*/
|
|
7929
|
-
resendOtpV1UserResendOtpPasswordPost(
|
|
7930
|
-
return localVarFp.resendOtpV1UserResendOtpPasswordPost(
|
|
7348
|
+
resendOtpV1UserResendOtpPasswordPost(email: string, options?: RawAxiosRequestConfig): AxiosPromise<Details> {
|
|
7349
|
+
return localVarFp.resendOtpV1UserResendOtpPasswordPost(email, options).then((request) => request(axios, basePath));
|
|
7931
7350
|
},
|
|
7932
7351
|
/**
|
|
7933
7352
|
*
|
|
@@ -8047,26 +7466,26 @@ export class UserApi extends BaseAPI {
|
|
|
8047
7466
|
/**
|
|
8048
7467
|
*
|
|
8049
7468
|
* @summary Resend Otp By Email
|
|
8050
|
-
* @param {string}
|
|
7469
|
+
* @param {string} [authorization]
|
|
7470
|
+
* @param {string} [sessionId]
|
|
8051
7471
|
* @param {*} [options] Override http request option.
|
|
8052
7472
|
* @throws {RequiredError}
|
|
8053
7473
|
* @memberof UserApi
|
|
8054
7474
|
*/
|
|
8055
|
-
public resendOtpByEmailV1UserResendOtpEmailPost(
|
|
8056
|
-
return UserApiFp(this.configuration).resendOtpByEmailV1UserResendOtpEmailPost(
|
|
7475
|
+
public resendOtpByEmailV1UserResendOtpEmailPost(authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
|
|
7476
|
+
return UserApiFp(this.configuration).resendOtpByEmailV1UserResendOtpEmailPost(authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
8057
7477
|
}
|
|
8058
7478
|
|
|
8059
7479
|
/**
|
|
8060
7480
|
*
|
|
8061
7481
|
* @summary Resend Otp
|
|
8062
|
-
* @param {string}
|
|
8063
|
-
* @param {string} [sessionId]
|
|
7482
|
+
* @param {string} email
|
|
8064
7483
|
* @param {*} [options] Override http request option.
|
|
8065
7484
|
* @throws {RequiredError}
|
|
8066
7485
|
* @memberof UserApi
|
|
8067
7486
|
*/
|
|
8068
|
-
public resendOtpV1UserResendOtpPasswordPost(
|
|
8069
|
-
return UserApiFp(this.configuration).resendOtpV1UserResendOtpPasswordPost(
|
|
7487
|
+
public resendOtpV1UserResendOtpPasswordPost(email: string, options?: RawAxiosRequestConfig) {
|
|
7488
|
+
return UserApiFp(this.configuration).resendOtpV1UserResendOtpPasswordPost(email, options).then((request) => request(this.axios, this.basePath));
|
|
8070
7489
|
}
|
|
8071
7490
|
|
|
8072
7491
|
/**
|