@rasadov/lumoar-sdk 1.2.0 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +2 -3
- package/api.ts +198 -158
- package/dist/api.d.ts +158 -152
- package/dist/api.js +84 -15
- package/docs/AuthenticationSuccess.md +2 -2
- package/docs/CompanyApi.md +4 -4
- package/docs/CompanyInDBBase.md +2 -16
- package/docs/CompanyWithControls.md +2 -0
- package/docs/CompanyWithRoles.md +2 -0
- package/docs/ControlWithRelationships.md +1 -1
- package/docs/PaginationResponseCompanyInDBBase.md +1 -1
- package/docs/UserApi.md +61 -7
- package/docs/UserAuth.md +26 -0
- package/docs/UserPermissionsWithCompany.md +1 -1
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -14,6 +14,7 @@ docs/CheckoutSessionResponse.md
|
|
|
14
14
|
docs/CompanyApi.md
|
|
15
15
|
docs/CompanyComplianceInDB.md
|
|
16
16
|
docs/CompanyCreate.md
|
|
17
|
+
docs/CompanyInDBBase.md
|
|
17
18
|
docs/CompanyUpdate.md
|
|
18
19
|
docs/CompanyWithControls.md
|
|
19
20
|
docs/CompanyWithRoles.md
|
|
@@ -62,15 +63,12 @@ docs/RemoveFromCompany.md
|
|
|
62
63
|
docs/ReportBase.md
|
|
63
64
|
docs/ReportGenerate.md
|
|
64
65
|
docs/ReportsApi.md
|
|
65
|
-
docs/ResendOTPSchema.md
|
|
66
66
|
docs/ResetPasswordSchema.md
|
|
67
67
|
docs/ResponseGetCustomerManagementSessionV1PaymentsCustomerManagementGet.md
|
|
68
68
|
docs/ResponseGetSubscriptionV1PaymentsSubscriptionGet.md
|
|
69
69
|
docs/RolesApi.md
|
|
70
70
|
docs/RolesWithUser.md
|
|
71
71
|
docs/SchedulerRequest.md
|
|
72
|
-
docs/SrcDomainsOrganizationSchemasCompanyCompanyInDBBase.md
|
|
73
|
-
docs/SrcSharedSchemasCompanyCompanyInDBBase.md
|
|
74
72
|
docs/SubscriptionResponse.md
|
|
75
73
|
docs/TaskPriority.md
|
|
76
74
|
docs/TaskRead.md
|
|
@@ -82,6 +80,7 @@ docs/UpdatePassword.md
|
|
|
82
80
|
docs/UpdateTaskSchema.md
|
|
83
81
|
docs/UpdateTaskStatus.md
|
|
84
82
|
docs/UserApi.md
|
|
83
|
+
docs/UserAuth.md
|
|
85
84
|
docs/UserBase.md
|
|
86
85
|
docs/UserInDBBase.md
|
|
87
86
|
docs/UserPermissionsWithCompany.md
|
package/api.ts
CHANGED
|
@@ -111,7 +111,7 @@ export interface AuditLogSchema {
|
|
|
111
111
|
|
|
112
112
|
|
|
113
113
|
/**
|
|
114
|
-
* Authentication success response schema. Attributes: -
|
|
114
|
+
* Authentication success response schema. Attributes: - detail: dict[str, str] - access_token: str - user: UserAuth | None
|
|
115
115
|
* @export
|
|
116
116
|
* @interface AuthenticationSuccess
|
|
117
117
|
*/
|
|
@@ -130,10 +130,10 @@ export interface AuthenticationSuccess {
|
|
|
130
130
|
'access_token': string;
|
|
131
131
|
/**
|
|
132
132
|
*
|
|
133
|
-
* @type {
|
|
133
|
+
* @type {UserAuth}
|
|
134
134
|
* @memberof AuthenticationSuccess
|
|
135
135
|
*/
|
|
136
|
-
'user'
|
|
136
|
+
'user': UserAuth | null;
|
|
137
137
|
}
|
|
138
138
|
/**
|
|
139
139
|
*
|
|
@@ -282,6 +282,61 @@ export interface CompanyCreate {
|
|
|
282
282
|
}
|
|
283
283
|
|
|
284
284
|
|
|
285
|
+
/**
|
|
286
|
+
*
|
|
287
|
+
* @export
|
|
288
|
+
* @interface CompanyInDBBase
|
|
289
|
+
*/
|
|
290
|
+
export interface CompanyInDBBase {
|
|
291
|
+
/**
|
|
292
|
+
*
|
|
293
|
+
* @type {string}
|
|
294
|
+
* @memberof CompanyInDBBase
|
|
295
|
+
*/
|
|
296
|
+
'name': string;
|
|
297
|
+
/**
|
|
298
|
+
*
|
|
299
|
+
* @type {string}
|
|
300
|
+
* @memberof CompanyInDBBase
|
|
301
|
+
*/
|
|
302
|
+
'industry': string;
|
|
303
|
+
/**
|
|
304
|
+
*
|
|
305
|
+
* @type {number}
|
|
306
|
+
* @memberof CompanyInDBBase
|
|
307
|
+
*/
|
|
308
|
+
'employee_count': number;
|
|
309
|
+
/**
|
|
310
|
+
*
|
|
311
|
+
* @type {string}
|
|
312
|
+
* @memberof CompanyInDBBase
|
|
313
|
+
*/
|
|
314
|
+
'domain': string;
|
|
315
|
+
/**
|
|
316
|
+
*
|
|
317
|
+
* @type {string}
|
|
318
|
+
* @memberof CompanyInDBBase
|
|
319
|
+
*/
|
|
320
|
+
'status'?: string | null;
|
|
321
|
+
/**
|
|
322
|
+
*
|
|
323
|
+
* @type {string}
|
|
324
|
+
* @memberof CompanyInDBBase
|
|
325
|
+
*/
|
|
326
|
+
'id': string;
|
|
327
|
+
/**
|
|
328
|
+
*
|
|
329
|
+
* @type {string}
|
|
330
|
+
* @memberof CompanyInDBBase
|
|
331
|
+
*/
|
|
332
|
+
'updated_at': string;
|
|
333
|
+
/**
|
|
334
|
+
*
|
|
335
|
+
* @type {CompanyComplianceInDB}
|
|
336
|
+
* @memberof CompanyInDBBase
|
|
337
|
+
*/
|
|
338
|
+
'compliance'?: CompanyComplianceInDB | null;
|
|
339
|
+
}
|
|
285
340
|
/**
|
|
286
341
|
*
|
|
287
342
|
* @export
|
|
@@ -367,6 +422,12 @@ export interface CompanyWithControls {
|
|
|
367
422
|
* @memberof CompanyWithControls
|
|
368
423
|
*/
|
|
369
424
|
'updated_at': string;
|
|
425
|
+
/**
|
|
426
|
+
*
|
|
427
|
+
* @type {CompanyComplianceInDB}
|
|
428
|
+
* @memberof CompanyWithControls
|
|
429
|
+
*/
|
|
430
|
+
'compliance'?: CompanyComplianceInDB | null;
|
|
370
431
|
/**
|
|
371
432
|
*
|
|
372
433
|
* @type {Array<ControlWithEvidences>}
|
|
@@ -422,6 +483,12 @@ export interface CompanyWithRoles {
|
|
|
422
483
|
* @memberof CompanyWithRoles
|
|
423
484
|
*/
|
|
424
485
|
'updated_at': string;
|
|
486
|
+
/**
|
|
487
|
+
*
|
|
488
|
+
* @type {CompanyComplianceInDB}
|
|
489
|
+
* @memberof CompanyWithRoles
|
|
490
|
+
*/
|
|
491
|
+
'compliance'?: CompanyComplianceInDB | null;
|
|
425
492
|
/**
|
|
426
493
|
*
|
|
427
494
|
* @type {Array<RolesWithUser>}
|
|
@@ -609,10 +676,10 @@ export interface ControlWithRelationships {
|
|
|
609
676
|
'data': FrameworkControlsBase;
|
|
610
677
|
/**
|
|
611
678
|
*
|
|
612
|
-
* @type {
|
|
679
|
+
* @type {CompanyInDBBase}
|
|
613
680
|
* @memberof ControlWithRelationships
|
|
614
681
|
*/
|
|
615
|
-
'company':
|
|
682
|
+
'company': CompanyInDBBase;
|
|
616
683
|
/**
|
|
617
684
|
*
|
|
618
685
|
* @type {Array<EvidenceBase>}
|
|
@@ -1164,10 +1231,10 @@ export interface PaginationResponseAuditLogSchema {
|
|
|
1164
1231
|
export interface PaginationResponseCompanyInDBBase {
|
|
1165
1232
|
/**
|
|
1166
1233
|
*
|
|
1167
|
-
* @type {Array<
|
|
1234
|
+
* @type {Array<CompanyInDBBase>}
|
|
1168
1235
|
* @memberof PaginationResponseCompanyInDBBase
|
|
1169
1236
|
*/
|
|
1170
|
-
'items': Array<
|
|
1237
|
+
'items': Array<CompanyInDBBase>;
|
|
1171
1238
|
/**
|
|
1172
1239
|
*
|
|
1173
1240
|
* @type {number}
|
|
@@ -1517,31 +1584,6 @@ export interface ReportGenerate {
|
|
|
1517
1584
|
*/
|
|
1518
1585
|
'report_id': string;
|
|
1519
1586
|
}
|
|
1520
|
-
/**
|
|
1521
|
-
* Schema for resending OTP
|
|
1522
|
-
* @export
|
|
1523
|
-
* @interface ResendOTPSchema
|
|
1524
|
-
*/
|
|
1525
|
-
export interface ResendOTPSchema {
|
|
1526
|
-
/**
|
|
1527
|
-
*
|
|
1528
|
-
* @type {string}
|
|
1529
|
-
* @memberof ResendOTPSchema
|
|
1530
|
-
*/
|
|
1531
|
-
'email': string;
|
|
1532
|
-
/**
|
|
1533
|
-
*
|
|
1534
|
-
* @type {string}
|
|
1535
|
-
* @memberof ResendOTPSchema
|
|
1536
|
-
*/
|
|
1537
|
-
'otp_type': string;
|
|
1538
|
-
/**
|
|
1539
|
-
*
|
|
1540
|
-
* @type {string}
|
|
1541
|
-
* @memberof ResendOTPSchema
|
|
1542
|
-
*/
|
|
1543
|
-
'turnstile_token': string;
|
|
1544
|
-
}
|
|
1545
1587
|
/**
|
|
1546
1588
|
* Schema for password reset
|
|
1547
1589
|
* @export
|
|
@@ -1685,110 +1727,6 @@ export interface SchedulerRequest {
|
|
|
1685
1727
|
*/
|
|
1686
1728
|
'user_ids_to_assign'?: Array<string>;
|
|
1687
1729
|
}
|
|
1688
|
-
/**
|
|
1689
|
-
*
|
|
1690
|
-
* @export
|
|
1691
|
-
* @interface SrcDomainsOrganizationSchemasCompanyCompanyInDBBase
|
|
1692
|
-
*/
|
|
1693
|
-
export interface SrcDomainsOrganizationSchemasCompanyCompanyInDBBase {
|
|
1694
|
-
/**
|
|
1695
|
-
*
|
|
1696
|
-
* @type {string}
|
|
1697
|
-
* @memberof SrcDomainsOrganizationSchemasCompanyCompanyInDBBase
|
|
1698
|
-
*/
|
|
1699
|
-
'name': string;
|
|
1700
|
-
/**
|
|
1701
|
-
*
|
|
1702
|
-
* @type {string}
|
|
1703
|
-
* @memberof SrcDomainsOrganizationSchemasCompanyCompanyInDBBase
|
|
1704
|
-
*/
|
|
1705
|
-
'industry': string;
|
|
1706
|
-
/**
|
|
1707
|
-
*
|
|
1708
|
-
* @type {number}
|
|
1709
|
-
* @memberof SrcDomainsOrganizationSchemasCompanyCompanyInDBBase
|
|
1710
|
-
*/
|
|
1711
|
-
'employee_count': number;
|
|
1712
|
-
/**
|
|
1713
|
-
*
|
|
1714
|
-
* @type {string}
|
|
1715
|
-
* @memberof SrcDomainsOrganizationSchemasCompanyCompanyInDBBase
|
|
1716
|
-
*/
|
|
1717
|
-
'domain': string;
|
|
1718
|
-
/**
|
|
1719
|
-
*
|
|
1720
|
-
* @type {string}
|
|
1721
|
-
* @memberof SrcDomainsOrganizationSchemasCompanyCompanyInDBBase
|
|
1722
|
-
*/
|
|
1723
|
-
'status'?: string | null;
|
|
1724
|
-
/**
|
|
1725
|
-
*
|
|
1726
|
-
* @type {string}
|
|
1727
|
-
* @memberof SrcDomainsOrganizationSchemasCompanyCompanyInDBBase
|
|
1728
|
-
*/
|
|
1729
|
-
'id': string;
|
|
1730
|
-
/**
|
|
1731
|
-
*
|
|
1732
|
-
* @type {string}
|
|
1733
|
-
* @memberof SrcDomainsOrganizationSchemasCompanyCompanyInDBBase
|
|
1734
|
-
*/
|
|
1735
|
-
'updated_at': string;
|
|
1736
|
-
}
|
|
1737
|
-
/**
|
|
1738
|
-
*
|
|
1739
|
-
* @export
|
|
1740
|
-
* @interface SrcSharedSchemasCompanyCompanyInDBBase
|
|
1741
|
-
*/
|
|
1742
|
-
export interface SrcSharedSchemasCompanyCompanyInDBBase {
|
|
1743
|
-
/**
|
|
1744
|
-
*
|
|
1745
|
-
* @type {string}
|
|
1746
|
-
* @memberof SrcSharedSchemasCompanyCompanyInDBBase
|
|
1747
|
-
*/
|
|
1748
|
-
'name': string;
|
|
1749
|
-
/**
|
|
1750
|
-
*
|
|
1751
|
-
* @type {string}
|
|
1752
|
-
* @memberof SrcSharedSchemasCompanyCompanyInDBBase
|
|
1753
|
-
*/
|
|
1754
|
-
'industry': string;
|
|
1755
|
-
/**
|
|
1756
|
-
*
|
|
1757
|
-
* @type {number}
|
|
1758
|
-
* @memberof SrcSharedSchemasCompanyCompanyInDBBase
|
|
1759
|
-
*/
|
|
1760
|
-
'employee_count': number;
|
|
1761
|
-
/**
|
|
1762
|
-
*
|
|
1763
|
-
* @type {string}
|
|
1764
|
-
* @memberof SrcSharedSchemasCompanyCompanyInDBBase
|
|
1765
|
-
*/
|
|
1766
|
-
'domain': string;
|
|
1767
|
-
/**
|
|
1768
|
-
*
|
|
1769
|
-
* @type {string}
|
|
1770
|
-
* @memberof SrcSharedSchemasCompanyCompanyInDBBase
|
|
1771
|
-
*/
|
|
1772
|
-
'status'?: string | null;
|
|
1773
|
-
/**
|
|
1774
|
-
*
|
|
1775
|
-
* @type {string}
|
|
1776
|
-
* @memberof SrcSharedSchemasCompanyCompanyInDBBase
|
|
1777
|
-
*/
|
|
1778
|
-
'id': string;
|
|
1779
|
-
/**
|
|
1780
|
-
*
|
|
1781
|
-
* @type {string}
|
|
1782
|
-
* @memberof SrcSharedSchemasCompanyCompanyInDBBase
|
|
1783
|
-
*/
|
|
1784
|
-
'updated_at': string;
|
|
1785
|
-
/**
|
|
1786
|
-
*
|
|
1787
|
-
* @type {CompanyComplianceInDB}
|
|
1788
|
-
* @memberof SrcSharedSchemasCompanyCompanyInDBBase
|
|
1789
|
-
*/
|
|
1790
|
-
'compliance'?: CompanyComplianceInDB | null;
|
|
1791
|
-
}
|
|
1792
1730
|
/**
|
|
1793
1731
|
*
|
|
1794
1732
|
* @export
|
|
@@ -2110,6 +2048,37 @@ export interface UpdateTaskStatus {
|
|
|
2110
2048
|
}
|
|
2111
2049
|
|
|
2112
2050
|
|
|
2051
|
+
/**
|
|
2052
|
+
*
|
|
2053
|
+
* @export
|
|
2054
|
+
* @interface UserAuth
|
|
2055
|
+
*/
|
|
2056
|
+
export interface UserAuth {
|
|
2057
|
+
/**
|
|
2058
|
+
*
|
|
2059
|
+
* @type {string}
|
|
2060
|
+
* @memberof UserAuth
|
|
2061
|
+
*/
|
|
2062
|
+
'name': string;
|
|
2063
|
+
/**
|
|
2064
|
+
*
|
|
2065
|
+
* @type {string}
|
|
2066
|
+
* @memberof UserAuth
|
|
2067
|
+
*/
|
|
2068
|
+
'email': string;
|
|
2069
|
+
/**
|
|
2070
|
+
*
|
|
2071
|
+
* @type {string}
|
|
2072
|
+
* @memberof UserAuth
|
|
2073
|
+
*/
|
|
2074
|
+
'role': string;
|
|
2075
|
+
/**
|
|
2076
|
+
*
|
|
2077
|
+
* @type {boolean}
|
|
2078
|
+
* @memberof UserAuth
|
|
2079
|
+
*/
|
|
2080
|
+
'email_confirmed': boolean;
|
|
2081
|
+
}
|
|
2113
2082
|
/**
|
|
2114
2083
|
*
|
|
2115
2084
|
* @export
|
|
@@ -2192,10 +2161,10 @@ export interface UserPermissionsWithCompany {
|
|
|
2192
2161
|
'role': string | null;
|
|
2193
2162
|
/**
|
|
2194
2163
|
*
|
|
2195
|
-
* @type {
|
|
2164
|
+
* @type {CompanyInDBBase}
|
|
2196
2165
|
* @memberof UserPermissionsWithCompany
|
|
2197
2166
|
*/
|
|
2198
|
-
'company':
|
|
2167
|
+
'company': CompanyInDBBase | null;
|
|
2199
2168
|
}
|
|
2200
2169
|
/**
|
|
2201
2170
|
*
|
|
@@ -3554,7 +3523,7 @@ export const CompanyApiFp = function(configuration?: Configuration) {
|
|
|
3554
3523
|
* @param {*} [options] Override http request option.
|
|
3555
3524
|
* @throws {RequiredError}
|
|
3556
3525
|
*/
|
|
3557
|
-
async createCompanyV1CompanyCreatePost(companyCreate: CompanyCreate, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
3526
|
+
async createCompanyV1CompanyCreatePost(companyCreate: CompanyCreate, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompanyInDBBase>> {
|
|
3558
3527
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createCompanyV1CompanyCreatePost(companyCreate, authorization, sessionId, options);
|
|
3559
3528
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3560
3529
|
const localVarOperationServerBasePath = operationServerMap['CompanyApi.createCompanyV1CompanyCreatePost']?.[localVarOperationServerIndex]?.url;
|
|
@@ -3615,7 +3584,7 @@ export const CompanyApiFp = function(configuration?: Configuration) {
|
|
|
3615
3584
|
* @param {*} [options] Override http request option.
|
|
3616
3585
|
* @throws {RequiredError}
|
|
3617
3586
|
*/
|
|
3618
|
-
async updateCompanyV1CompanyUpdatePatch(companyUpdate: CompanyUpdate, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
3587
|
+
async updateCompanyV1CompanyUpdatePatch(companyUpdate: CompanyUpdate, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompanyInDBBase>> {
|
|
3619
3588
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updateCompanyV1CompanyUpdatePatch(companyUpdate, authorization, sessionId, options);
|
|
3620
3589
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3621
3590
|
const localVarOperationServerBasePath = operationServerMap['CompanyApi.updateCompanyV1CompanyUpdatePatch']?.[localVarOperationServerIndex]?.url;
|
|
@@ -3640,7 +3609,7 @@ export const CompanyApiFactory = function (configuration?: Configuration, basePa
|
|
|
3640
3609
|
* @param {*} [options] Override http request option.
|
|
3641
3610
|
* @throws {RequiredError}
|
|
3642
3611
|
*/
|
|
3643
|
-
createCompanyV1CompanyCreatePost(companyCreate: CompanyCreate, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
3612
|
+
createCompanyV1CompanyCreatePost(companyCreate: CompanyCreate, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<CompanyInDBBase> {
|
|
3644
3613
|
return localVarFp.createCompanyV1CompanyCreatePost(companyCreate, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
3645
3614
|
},
|
|
3646
3615
|
/**
|
|
@@ -3689,7 +3658,7 @@ export const CompanyApiFactory = function (configuration?: Configuration, basePa
|
|
|
3689
3658
|
* @param {*} [options] Override http request option.
|
|
3690
3659
|
* @throws {RequiredError}
|
|
3691
3660
|
*/
|
|
3692
|
-
updateCompanyV1CompanyUpdatePatch(companyUpdate: CompanyUpdate, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
3661
|
+
updateCompanyV1CompanyUpdatePatch(companyUpdate: CompanyUpdate, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<CompanyInDBBase> {
|
|
3693
3662
|
return localVarFp.updateCompanyV1CompanyUpdatePatch(companyUpdate, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
3694
3663
|
},
|
|
3695
3664
|
};
|
|
@@ -7489,6 +7458,40 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
7489
7458
|
|
|
7490
7459
|
|
|
7491
7460
|
|
|
7461
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7462
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7463
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
7464
|
+
|
|
7465
|
+
return {
|
|
7466
|
+
url: toPathString(localVarUrlObj),
|
|
7467
|
+
options: localVarRequestOptions,
|
|
7468
|
+
};
|
|
7469
|
+
},
|
|
7470
|
+
/**
|
|
7471
|
+
*
|
|
7472
|
+
* @summary Resend Otp By Email
|
|
7473
|
+
* @param {string} email
|
|
7474
|
+
* @param {*} [options] Override http request option.
|
|
7475
|
+
* @throws {RequiredError}
|
|
7476
|
+
*/
|
|
7477
|
+
resendOtpByEmailV1UserResendOtpEmailPost: async (email: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
7478
|
+
// verify required parameter 'email' is not null or undefined
|
|
7479
|
+
assertParamExists('resendOtpByEmailV1UserResendOtpEmailPost', 'email', email)
|
|
7480
|
+
const localVarPath = `/v1/user/resend-otp/{email}`
|
|
7481
|
+
.replace(`{${"email"}}`, encodeURIComponent(String(email)));
|
|
7482
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7483
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7484
|
+
let baseOptions;
|
|
7485
|
+
if (configuration) {
|
|
7486
|
+
baseOptions = configuration.baseOptions;
|
|
7487
|
+
}
|
|
7488
|
+
|
|
7489
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
7490
|
+
const localVarHeaderParameter = {} as any;
|
|
7491
|
+
const localVarQueryParameter = {} as any;
|
|
7492
|
+
|
|
7493
|
+
|
|
7494
|
+
|
|
7492
7495
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7493
7496
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7494
7497
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -7501,13 +7504,12 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
7501
7504
|
/**
|
|
7502
7505
|
*
|
|
7503
7506
|
* @summary Resend Otp
|
|
7504
|
-
* @param {
|
|
7507
|
+
* @param {string} [authorization]
|
|
7508
|
+
* @param {string} [sessionId]
|
|
7505
7509
|
* @param {*} [options] Override http request option.
|
|
7506
7510
|
* @throws {RequiredError}
|
|
7507
7511
|
*/
|
|
7508
|
-
resendOtpV1UserResendOtpPost: async (
|
|
7509
|
-
// verify required parameter 'resendOTPSchema' is not null or undefined
|
|
7510
|
-
assertParamExists('resendOtpV1UserResendOtpPost', 'resendOTPSchema', resendOTPSchema)
|
|
7512
|
+
resendOtpV1UserResendOtpPost: async (authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
7511
7513
|
const localVarPath = `/v1/user/resend-otp`;
|
|
7512
7514
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7513
7515
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -7522,12 +7524,12 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
7522
7524
|
|
|
7523
7525
|
|
|
7524
7526
|
|
|
7525
|
-
|
|
7526
|
-
|
|
7527
|
+
if (authorization != null) {
|
|
7528
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
7529
|
+
}
|
|
7527
7530
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7528
7531
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7529
7532
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
7530
|
-
localVarRequestOptions.data = serializeDataIfNeeded(resendOTPSchema, localVarRequestOptions, configuration)
|
|
7531
7533
|
|
|
7532
7534
|
return {
|
|
7533
7535
|
url: toPathString(localVarUrlObj),
|
|
@@ -7759,15 +7761,29 @@ export const UserApiFp = function(configuration?: Configuration) {
|
|
|
7759
7761
|
const localVarOperationServerBasePath = operationServerMap['UserApi.getUserV1UserMeGet']?.[localVarOperationServerIndex]?.url;
|
|
7760
7762
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7761
7763
|
},
|
|
7764
|
+
/**
|
|
7765
|
+
*
|
|
7766
|
+
* @summary Resend Otp By Email
|
|
7767
|
+
* @param {string} email
|
|
7768
|
+
* @param {*} [options] Override http request option.
|
|
7769
|
+
* @throws {RequiredError}
|
|
7770
|
+
*/
|
|
7771
|
+
async resendOtpByEmailV1UserResendOtpEmailPost(email: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Details>> {
|
|
7772
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.resendOtpByEmailV1UserResendOtpEmailPost(email, options);
|
|
7773
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7774
|
+
const localVarOperationServerBasePath = operationServerMap['UserApi.resendOtpByEmailV1UserResendOtpEmailPost']?.[localVarOperationServerIndex]?.url;
|
|
7775
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7776
|
+
},
|
|
7762
7777
|
/**
|
|
7763
7778
|
*
|
|
7764
7779
|
* @summary Resend Otp
|
|
7765
|
-
* @param {
|
|
7780
|
+
* @param {string} [authorization]
|
|
7781
|
+
* @param {string} [sessionId]
|
|
7766
7782
|
* @param {*} [options] Override http request option.
|
|
7767
7783
|
* @throws {RequiredError}
|
|
7768
7784
|
*/
|
|
7769
|
-
async resendOtpV1UserResendOtpPost(
|
|
7770
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.resendOtpV1UserResendOtpPost(
|
|
7785
|
+
async resendOtpV1UserResendOtpPost(authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Details>> {
|
|
7786
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.resendOtpV1UserResendOtpPost(authorization, sessionId, options);
|
|
7771
7787
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7772
7788
|
const localVarOperationServerBasePath = operationServerMap['UserApi.resendOtpV1UserResendOtpPost']?.[localVarOperationServerIndex]?.url;
|
|
7773
7789
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -7889,15 +7905,26 @@ export const UserApiFactory = function (configuration?: Configuration, basePath?
|
|
|
7889
7905
|
getUserV1UserMeGet(sessionId?: string | null, options?: RawAxiosRequestConfig): AxiosPromise<UserInDBBase> {
|
|
7890
7906
|
return localVarFp.getUserV1UserMeGet(sessionId, options).then((request) => request(axios, basePath));
|
|
7891
7907
|
},
|
|
7908
|
+
/**
|
|
7909
|
+
*
|
|
7910
|
+
* @summary Resend Otp By Email
|
|
7911
|
+
* @param {string} email
|
|
7912
|
+
* @param {*} [options] Override http request option.
|
|
7913
|
+
* @throws {RequiredError}
|
|
7914
|
+
*/
|
|
7915
|
+
resendOtpByEmailV1UserResendOtpEmailPost(email: string, options?: RawAxiosRequestConfig): AxiosPromise<Details> {
|
|
7916
|
+
return localVarFp.resendOtpByEmailV1UserResendOtpEmailPost(email, options).then((request) => request(axios, basePath));
|
|
7917
|
+
},
|
|
7892
7918
|
/**
|
|
7893
7919
|
*
|
|
7894
7920
|
* @summary Resend Otp
|
|
7895
|
-
* @param {
|
|
7921
|
+
* @param {string} [authorization]
|
|
7922
|
+
* @param {string} [sessionId]
|
|
7896
7923
|
* @param {*} [options] Override http request option.
|
|
7897
7924
|
* @throws {RequiredError}
|
|
7898
7925
|
*/
|
|
7899
|
-
resendOtpV1UserResendOtpPost(
|
|
7900
|
-
return localVarFp.resendOtpV1UserResendOtpPost(
|
|
7926
|
+
resendOtpV1UserResendOtpPost(authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Details> {
|
|
7927
|
+
return localVarFp.resendOtpV1UserResendOtpPost(authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
7901
7928
|
},
|
|
7902
7929
|
/**
|
|
7903
7930
|
*
|
|
@@ -8014,16 +8041,29 @@ export class UserApi extends BaseAPI {
|
|
|
8014
8041
|
return UserApiFp(this.configuration).getUserV1UserMeGet(sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
8015
8042
|
}
|
|
8016
8043
|
|
|
8044
|
+
/**
|
|
8045
|
+
*
|
|
8046
|
+
* @summary Resend Otp By Email
|
|
8047
|
+
* @param {string} email
|
|
8048
|
+
* @param {*} [options] Override http request option.
|
|
8049
|
+
* @throws {RequiredError}
|
|
8050
|
+
* @memberof UserApi
|
|
8051
|
+
*/
|
|
8052
|
+
public resendOtpByEmailV1UserResendOtpEmailPost(email: string, options?: RawAxiosRequestConfig) {
|
|
8053
|
+
return UserApiFp(this.configuration).resendOtpByEmailV1UserResendOtpEmailPost(email, options).then((request) => request(this.axios, this.basePath));
|
|
8054
|
+
}
|
|
8055
|
+
|
|
8017
8056
|
/**
|
|
8018
8057
|
*
|
|
8019
8058
|
* @summary Resend Otp
|
|
8020
|
-
* @param {
|
|
8059
|
+
* @param {string} [authorization]
|
|
8060
|
+
* @param {string} [sessionId]
|
|
8021
8061
|
* @param {*} [options] Override http request option.
|
|
8022
8062
|
* @throws {RequiredError}
|
|
8023
8063
|
* @memberof UserApi
|
|
8024
8064
|
*/
|
|
8025
|
-
public resendOtpV1UserResendOtpPost(
|
|
8026
|
-
return UserApiFp(this.configuration).resendOtpV1UserResendOtpPost(
|
|
8065
|
+
public resendOtpV1UserResendOtpPost(authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
|
|
8066
|
+
return UserApiFp(this.configuration).resendOtpV1UserResendOtpPost(authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
8027
8067
|
}
|
|
8028
8068
|
|
|
8029
8069
|
/**
|