@rasadov/lumoar-sdk 1.0.2 → 1.0.4

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.
@@ -4,6 +4,10 @@ api.ts
4
4
  base.ts
5
5
  common.ts
6
6
  configuration.ts
7
+ docs/AuditLogAction.md
8
+ docs/AuditLogEntity.md
9
+ docs/AuditLogResponse.md
10
+ docs/AuditLogsApi.md
7
11
  docs/AuthApi.md
8
12
  docs/AuthenticationSuccess.md
9
13
  docs/CheckoutSessionResponse.md
@@ -40,7 +44,7 @@ docs/PolicyRead.md
40
44
  docs/PolicyUpdate.md
41
45
  docs/RegisterSchema.md
42
46
  docs/RemoveFromCompany.md
43
- docs/ResponseGetCustomerManagementSessionPaymentsCustomerManagementGet.md
47
+ docs/ResponseGetCustomerManagementSessionV1PaymentsCustomerManagementGet.md
44
48
  docs/RolesApi.md
45
49
  docs/RolesWithUser.md
46
50
  docs/UpdateControlSchema.md
package/api.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Lumoar API
5
5
  * Compliance as a service
6
6
  *
7
- * The version of the OpenAPI document: 0.1.0
7
+ * The version of the OpenAPI document: 1.0.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -23,6 +23,92 @@ import type { RequestArgs } from './base';
23
23
  // @ts-ignore
24
24
  import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base';
25
25
 
26
+ /**
27
+ *
28
+ * @export
29
+ * @enum {string}
30
+ */
31
+
32
+ export const AuditLogAction = {
33
+ Invite: 'invite',
34
+ Create: 'create',
35
+ Update: 'update',
36
+ Delete: 'delete'
37
+ } as const;
38
+
39
+ export type AuditLogAction = typeof AuditLogAction[keyof typeof AuditLogAction];
40
+
41
+
42
+ /**
43
+ *
44
+ * @export
45
+ * @enum {string}
46
+ */
47
+
48
+ export const AuditLogEntity = {
49
+ CompanyControls: 'company_controls',
50
+ Evidences: 'evidences',
51
+ Policies: 'policies',
52
+ Reports: 'reports',
53
+ Companies: 'companies',
54
+ Users: 'users',
55
+ Tasks: 'tasks'
56
+ } as const;
57
+
58
+ export type AuditLogEntity = typeof AuditLogEntity[keyof typeof AuditLogEntity];
59
+
60
+
61
+ /**
62
+ *
63
+ * @export
64
+ * @interface AuditLogResponse
65
+ */
66
+ export interface AuditLogResponse {
67
+ /**
68
+ *
69
+ * @type {string}
70
+ * @memberof AuditLogResponse
71
+ */
72
+ 'company_id': string;
73
+ /**
74
+ *
75
+ * @type {AuditLogAction}
76
+ * @memberof AuditLogResponse
77
+ */
78
+ 'action': AuditLogAction;
79
+ /**
80
+ *
81
+ * @type {AuditLogEntity}
82
+ * @memberof AuditLogResponse
83
+ */
84
+ 'entity_type': AuditLogEntity;
85
+ /**
86
+ *
87
+ * @type {string}
88
+ * @memberof AuditLogResponse
89
+ */
90
+ 'entity_id': string;
91
+ /**
92
+ *
93
+ * @type {string}
94
+ * @memberof AuditLogResponse
95
+ */
96
+ 'entity_name': string;
97
+ /**
98
+ *
99
+ * @type {string}
100
+ * @memberof AuditLogResponse
101
+ */
102
+ 'timestamp': string;
103
+ /**
104
+ *
105
+ * @type {{ [key: string]: any; }}
106
+ * @memberof AuditLogResponse
107
+ */
108
+ 'details': { [key: string]: any; } | null;
109
+ }
110
+
111
+
26
112
  /**
27
113
  * Authentication success response schema. Attributes: - access_token: str - token_type: str - user_id: str - role: str
28
114
  * @export
@@ -1189,19 +1275,19 @@ export interface RemoveFromCompany {
1189
1275
  /**
1190
1276
  *
1191
1277
  * @export
1192
- * @interface ResponseGetCustomerManagementSessionPaymentsCustomerManagementGet
1278
+ * @interface ResponseGetCustomerManagementSessionV1PaymentsCustomerManagementGet
1193
1279
  */
1194
- export interface ResponseGetCustomerManagementSessionPaymentsCustomerManagementGet {
1280
+ export interface ResponseGetCustomerManagementSessionV1PaymentsCustomerManagementGet {
1195
1281
  /**
1196
1282
  *
1197
1283
  * @type {string}
1198
- * @memberof ResponseGetCustomerManagementSessionPaymentsCustomerManagementGet
1284
+ * @memberof ResponseGetCustomerManagementSessionV1PaymentsCustomerManagementGet
1199
1285
  */
1200
1286
  'link': string;
1201
1287
  /**
1202
1288
  *
1203
1289
  * @type {string}
1204
- * @memberof ResponseGetCustomerManagementSessionPaymentsCustomerManagementGet
1290
+ * @memberof ResponseGetCustomerManagementSessionV1PaymentsCustomerManagementGet
1205
1291
  */
1206
1292
  'message'?: string;
1207
1293
  }
@@ -1465,6 +1551,184 @@ export interface ValidationError {
1465
1551
  export interface ValidationErrorLocInner {
1466
1552
  }
1467
1553
 
1554
+ /**
1555
+ * AuditLogsApi - axios parameter creator
1556
+ * @export
1557
+ */
1558
+ export const AuditLogsApiAxiosParamCreator = function (configuration?: Configuration) {
1559
+ return {
1560
+ /**
1561
+ *
1562
+ * @summary List Audit Logs
1563
+ * @param {string} companyId
1564
+ * @param {number} page
1565
+ * @param {number} elements
1566
+ * @param {AuditLogEntity | null} [entityType]
1567
+ * @param {AuditLogAction | null} [action]
1568
+ * @param {string | null} [startDate]
1569
+ * @param {string | null} [endDate]
1570
+ * @param {string} [authorization]
1571
+ * @param {string} [sessionId]
1572
+ * @param {*} [options] Override http request option.
1573
+ * @throws {RequiredError}
1574
+ */
1575
+ listAuditLogsV1AuditLogsListGet: async (companyId: string, page: number, elements: number, entityType?: AuditLogEntity | null, action?: AuditLogAction | null, startDate?: string | null, endDate?: string | null, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1576
+ // verify required parameter 'companyId' is not null or undefined
1577
+ assertParamExists('listAuditLogsV1AuditLogsListGet', 'companyId', companyId)
1578
+ // verify required parameter 'page' is not null or undefined
1579
+ assertParamExists('listAuditLogsV1AuditLogsListGet', 'page', page)
1580
+ // verify required parameter 'elements' is not null or undefined
1581
+ assertParamExists('listAuditLogsV1AuditLogsListGet', 'elements', elements)
1582
+ const localVarPath = `/v1/audit-logs/list`;
1583
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1584
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1585
+ let baseOptions;
1586
+ if (configuration) {
1587
+ baseOptions = configuration.baseOptions;
1588
+ }
1589
+
1590
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1591
+ const localVarHeaderParameter = {} as any;
1592
+ const localVarQueryParameter = {} as any;
1593
+
1594
+ if (companyId !== undefined) {
1595
+ localVarQueryParameter['company_id'] = companyId;
1596
+ }
1597
+
1598
+ if (page !== undefined) {
1599
+ localVarQueryParameter['page'] = page;
1600
+ }
1601
+
1602
+ if (elements !== undefined) {
1603
+ localVarQueryParameter['elements'] = elements;
1604
+ }
1605
+
1606
+ if (entityType !== undefined) {
1607
+ localVarQueryParameter['entity_type'] = entityType;
1608
+ }
1609
+
1610
+ if (action !== undefined) {
1611
+ localVarQueryParameter['action'] = action;
1612
+ }
1613
+
1614
+ if (startDate !== undefined) {
1615
+ localVarQueryParameter['start_date'] = (startDate as any instanceof Date) ?
1616
+ (startDate as any).toISOString() :
1617
+ startDate;
1618
+ }
1619
+
1620
+ if (endDate !== undefined) {
1621
+ localVarQueryParameter['end_date'] = (endDate as any instanceof Date) ?
1622
+ (endDate as any).toISOString() :
1623
+ endDate;
1624
+ }
1625
+
1626
+
1627
+
1628
+ if (authorization != null) {
1629
+ localVarHeaderParameter['Authorization'] = String(authorization);
1630
+ }
1631
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1632
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1633
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1634
+
1635
+ return {
1636
+ url: toPathString(localVarUrlObj),
1637
+ options: localVarRequestOptions,
1638
+ };
1639
+ },
1640
+ }
1641
+ };
1642
+
1643
+ /**
1644
+ * AuditLogsApi - functional programming interface
1645
+ * @export
1646
+ */
1647
+ export const AuditLogsApiFp = function(configuration?: Configuration) {
1648
+ const localVarAxiosParamCreator = AuditLogsApiAxiosParamCreator(configuration)
1649
+ return {
1650
+ /**
1651
+ *
1652
+ * @summary List Audit Logs
1653
+ * @param {string} companyId
1654
+ * @param {number} page
1655
+ * @param {number} elements
1656
+ * @param {AuditLogEntity | null} [entityType]
1657
+ * @param {AuditLogAction | null} [action]
1658
+ * @param {string | null} [startDate]
1659
+ * @param {string | null} [endDate]
1660
+ * @param {string} [authorization]
1661
+ * @param {string} [sessionId]
1662
+ * @param {*} [options] Override http request option.
1663
+ * @throws {RequiredError}
1664
+ */
1665
+ async listAuditLogsV1AuditLogsListGet(companyId: string, page: number, elements: number, entityType?: AuditLogEntity | null, action?: AuditLogAction | null, startDate?: string | null, endDate?: string | null, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AuditLogResponse>>> {
1666
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listAuditLogsV1AuditLogsListGet(companyId, page, elements, entityType, action, startDate, endDate, authorization, sessionId, options);
1667
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1668
+ const localVarOperationServerBasePath = operationServerMap['AuditLogsApi.listAuditLogsV1AuditLogsListGet']?.[localVarOperationServerIndex]?.url;
1669
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1670
+ },
1671
+ }
1672
+ };
1673
+
1674
+ /**
1675
+ * AuditLogsApi - factory interface
1676
+ * @export
1677
+ */
1678
+ export const AuditLogsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1679
+ const localVarFp = AuditLogsApiFp(configuration)
1680
+ return {
1681
+ /**
1682
+ *
1683
+ * @summary List Audit Logs
1684
+ * @param {string} companyId
1685
+ * @param {number} page
1686
+ * @param {number} elements
1687
+ * @param {AuditLogEntity | null} [entityType]
1688
+ * @param {AuditLogAction | null} [action]
1689
+ * @param {string | null} [startDate]
1690
+ * @param {string | null} [endDate]
1691
+ * @param {string} [authorization]
1692
+ * @param {string} [sessionId]
1693
+ * @param {*} [options] Override http request option.
1694
+ * @throws {RequiredError}
1695
+ */
1696
+ listAuditLogsV1AuditLogsListGet(companyId: string, page: number, elements: number, entityType?: AuditLogEntity | null, action?: AuditLogAction | null, startDate?: string | null, endDate?: string | null, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<AuditLogResponse>> {
1697
+ return localVarFp.listAuditLogsV1AuditLogsListGet(companyId, page, elements, entityType, action, startDate, endDate, authorization, sessionId, options).then((request) => request(axios, basePath));
1698
+ },
1699
+ };
1700
+ };
1701
+
1702
+ /**
1703
+ * AuditLogsApi - object-oriented interface
1704
+ * @export
1705
+ * @class AuditLogsApi
1706
+ * @extends {BaseAPI}
1707
+ */
1708
+ export class AuditLogsApi extends BaseAPI {
1709
+ /**
1710
+ *
1711
+ * @summary List Audit Logs
1712
+ * @param {string} companyId
1713
+ * @param {number} page
1714
+ * @param {number} elements
1715
+ * @param {AuditLogEntity | null} [entityType]
1716
+ * @param {AuditLogAction | null} [action]
1717
+ * @param {string | null} [startDate]
1718
+ * @param {string | null} [endDate]
1719
+ * @param {string} [authorization]
1720
+ * @param {string} [sessionId]
1721
+ * @param {*} [options] Override http request option.
1722
+ * @throws {RequiredError}
1723
+ * @memberof AuditLogsApi
1724
+ */
1725
+ public listAuditLogsV1AuditLogsListGet(companyId: string, page: number, elements: number, entityType?: AuditLogEntity | null, action?: AuditLogAction | null, startDate?: string | null, endDate?: string | null, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
1726
+ return AuditLogsApiFp(this.configuration).listAuditLogsV1AuditLogsListGet(companyId, page, elements, entityType, action, startDate, endDate, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
1727
+ }
1728
+ }
1729
+
1730
+
1731
+
1468
1732
  /**
1469
1733
  * AuthApi - axios parameter creator
1470
1734
  * @export
@@ -3595,6 +3859,36 @@ export const HealthApiAxiosParamCreator = function (configuration?: Configuratio
3595
3859
 
3596
3860
 
3597
3861
 
3862
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3863
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3864
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3865
+
3866
+ return {
3867
+ url: toPathString(localVarUrlObj),
3868
+ options: localVarRequestOptions,
3869
+ };
3870
+ },
3871
+ /**
3872
+ *
3873
+ * @summary Get Rate Limit Health
3874
+ * @param {*} [options] Override http request option.
3875
+ * @throws {RequiredError}
3876
+ */
3877
+ getRateLimitHealthHealthRateLimitGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3878
+ const localVarPath = `/health/rate_limit`;
3879
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3880
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3881
+ let baseOptions;
3882
+ if (configuration) {
3883
+ baseOptions = configuration.baseOptions;
3884
+ }
3885
+
3886
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3887
+ const localVarHeaderParameter = {} as any;
3888
+ const localVarQueryParameter = {} as any;
3889
+
3890
+
3891
+
3598
3892
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3599
3893
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3600
3894
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -3680,6 +3974,18 @@ export const HealthApiFp = function(configuration?: Configuration) {
3680
3974
  const localVarOperationServerBasePath = operationServerMap['HealthApi.getListmonkHealthHealthListmonkGet']?.[localVarOperationServerIndex]?.url;
3681
3975
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3682
3976
  },
3977
+ /**
3978
+ *
3979
+ * @summary Get Rate Limit Health
3980
+ * @param {*} [options] Override http request option.
3981
+ * @throws {RequiredError}
3982
+ */
3983
+ async getRateLimitHealthHealthRateLimitGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
3984
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getRateLimitHealthHealthRateLimitGet(options);
3985
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3986
+ const localVarOperationServerBasePath = operationServerMap['HealthApi.getRateLimitHealthHealthRateLimitGet']?.[localVarOperationServerIndex]?.url;
3987
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3988
+ },
3683
3989
  /**
3684
3990
  *
3685
3991
  * @summary Get Redis Health
@@ -3729,6 +4035,15 @@ export const HealthApiFactory = function (configuration?: Configuration, basePat
3729
4035
  getListmonkHealthHealthListmonkGet(options?: RawAxiosRequestConfig): AxiosPromise<any> {
3730
4036
  return localVarFp.getListmonkHealthHealthListmonkGet(options).then((request) => request(axios, basePath));
3731
4037
  },
4038
+ /**
4039
+ *
4040
+ * @summary Get Rate Limit Health
4041
+ * @param {*} [options] Override http request option.
4042
+ * @throws {RequiredError}
4043
+ */
4044
+ getRateLimitHealthHealthRateLimitGet(options?: RawAxiosRequestConfig): AxiosPromise<any> {
4045
+ return localVarFp.getRateLimitHealthHealthRateLimitGet(options).then((request) => request(axios, basePath));
4046
+ },
3732
4047
  /**
3733
4048
  *
3734
4049
  * @summary Get Redis Health
@@ -3781,6 +4096,17 @@ export class HealthApi extends BaseAPI {
3781
4096
  return HealthApiFp(this.configuration).getListmonkHealthHealthListmonkGet(options).then((request) => request(this.axios, this.basePath));
3782
4097
  }
3783
4098
 
4099
+ /**
4100
+ *
4101
+ * @summary Get Rate Limit Health
4102
+ * @param {*} [options] Override http request option.
4103
+ * @throws {RequiredError}
4104
+ * @memberof HealthApi
4105
+ */
4106
+ public getRateLimitHealthHealthRateLimitGet(options?: RawAxiosRequestConfig) {
4107
+ return HealthApiFp(this.configuration).getRateLimitHealthHealthRateLimitGet(options).then((request) => request(this.axios, this.basePath));
4108
+ }
4109
+
3784
4110
  /**
3785
4111
  *
3786
4112
  * @summary Get Redis Health
@@ -3811,12 +4137,12 @@ export const PaymentsApiAxiosParamCreator = function (configuration?: Configurat
3811
4137
  * @param {*} [options] Override http request option.
3812
4138
  * @throws {RequiredError}
3813
4139
  */
3814
- getCheckoutSessionPaymentsCheckoutGet: async (companyId: string, productId: string, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4140
+ getCheckoutSessionV1PaymentsCheckoutGet: async (companyId: string, productId: string, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3815
4141
  // verify required parameter 'companyId' is not null or undefined
3816
- assertParamExists('getCheckoutSessionPaymentsCheckoutGet', 'companyId', companyId)
4142
+ assertParamExists('getCheckoutSessionV1PaymentsCheckoutGet', 'companyId', companyId)
3817
4143
  // verify required parameter 'productId' is not null or undefined
3818
- assertParamExists('getCheckoutSessionPaymentsCheckoutGet', 'productId', productId)
3819
- const localVarPath = `/payments/checkout`;
4144
+ assertParamExists('getCheckoutSessionV1PaymentsCheckoutGet', 'productId', productId)
4145
+ const localVarPath = `/v1/payments/checkout`;
3820
4146
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3821
4147
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3822
4148
  let baseOptions;
@@ -3858,8 +4184,8 @@ export const PaymentsApiAxiosParamCreator = function (configuration?: Configurat
3858
4184
  * @param {*} [options] Override http request option.
3859
4185
  * @throws {RequiredError}
3860
4186
  */
3861
- getCustomerManagementSessionPaymentsCustomerManagementGet: async (authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3862
- const localVarPath = `/payments/customer/management`;
4187
+ getCustomerManagementSessionV1PaymentsCustomerManagementGet: async (authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4188
+ const localVarPath = `/v1/payments/customer/management`;
3863
4189
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3864
4190
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3865
4191
  let baseOptions;
@@ -3891,8 +4217,8 @@ export const PaymentsApiAxiosParamCreator = function (configuration?: Configurat
3891
4217
  * @param {*} [options] Override http request option.
3892
4218
  * @throws {RequiredError}
3893
4219
  */
3894
- webhookPaymentsWebhookPost: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3895
- const localVarPath = `/payments/webhook`;
4220
+ webhookV1PaymentsWebhookPost: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4221
+ const localVarPath = `/v1/payments/webhook`;
3896
4222
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3897
4223
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3898
4224
  let baseOptions;
@@ -3935,10 +4261,10 @@ export const PaymentsApiFp = function(configuration?: Configuration) {
3935
4261
  * @param {*} [options] Override http request option.
3936
4262
  * @throws {RequiredError}
3937
4263
  */
3938
- async getCheckoutSessionPaymentsCheckoutGet(companyId: string, productId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CheckoutSessionResponse>> {
3939
- const localVarAxiosArgs = await localVarAxiosParamCreator.getCheckoutSessionPaymentsCheckoutGet(companyId, productId, authorization, sessionId, options);
4264
+ async getCheckoutSessionV1PaymentsCheckoutGet(companyId: string, productId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CheckoutSessionResponse>> {
4265
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getCheckoutSessionV1PaymentsCheckoutGet(companyId, productId, authorization, sessionId, options);
3940
4266
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3941
- const localVarOperationServerBasePath = operationServerMap['PaymentsApi.getCheckoutSessionPaymentsCheckoutGet']?.[localVarOperationServerIndex]?.url;
4267
+ const localVarOperationServerBasePath = operationServerMap['PaymentsApi.getCheckoutSessionV1PaymentsCheckoutGet']?.[localVarOperationServerIndex]?.url;
3942
4268
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3943
4269
  },
3944
4270
  /**
@@ -3949,10 +4275,10 @@ export const PaymentsApiFp = function(configuration?: Configuration) {
3949
4275
  * @param {*} [options] Override http request option.
3950
4276
  * @throws {RequiredError}
3951
4277
  */
3952
- async getCustomerManagementSessionPaymentsCustomerManagementGet(authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ResponseGetCustomerManagementSessionPaymentsCustomerManagementGet>> {
3953
- const localVarAxiosArgs = await localVarAxiosParamCreator.getCustomerManagementSessionPaymentsCustomerManagementGet(authorization, sessionId, options);
4278
+ async getCustomerManagementSessionV1PaymentsCustomerManagementGet(authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ResponseGetCustomerManagementSessionV1PaymentsCustomerManagementGet>> {
4279
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getCustomerManagementSessionV1PaymentsCustomerManagementGet(authorization, sessionId, options);
3954
4280
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3955
- const localVarOperationServerBasePath = operationServerMap['PaymentsApi.getCustomerManagementSessionPaymentsCustomerManagementGet']?.[localVarOperationServerIndex]?.url;
4281
+ const localVarOperationServerBasePath = operationServerMap['PaymentsApi.getCustomerManagementSessionV1PaymentsCustomerManagementGet']?.[localVarOperationServerIndex]?.url;
3956
4282
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3957
4283
  },
3958
4284
  /**
@@ -3961,10 +4287,10 @@ export const PaymentsApiFp = function(configuration?: Configuration) {
3961
4287
  * @param {*} [options] Override http request option.
3962
4288
  * @throws {RequiredError}
3963
4289
  */
3964
- async webhookPaymentsWebhookPost(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
3965
- const localVarAxiosArgs = await localVarAxiosParamCreator.webhookPaymentsWebhookPost(options);
4290
+ async webhookV1PaymentsWebhookPost(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
4291
+ const localVarAxiosArgs = await localVarAxiosParamCreator.webhookV1PaymentsWebhookPost(options);
3966
4292
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3967
- const localVarOperationServerBasePath = operationServerMap['PaymentsApi.webhookPaymentsWebhookPost']?.[localVarOperationServerIndex]?.url;
4293
+ const localVarOperationServerBasePath = operationServerMap['PaymentsApi.webhookV1PaymentsWebhookPost']?.[localVarOperationServerIndex]?.url;
3968
4294
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3969
4295
  },
3970
4296
  }
@@ -3987,8 +4313,8 @@ export const PaymentsApiFactory = function (configuration?: Configuration, baseP
3987
4313
  * @param {*} [options] Override http request option.
3988
4314
  * @throws {RequiredError}
3989
4315
  */
3990
- getCheckoutSessionPaymentsCheckoutGet(companyId: string, productId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<CheckoutSessionResponse> {
3991
- return localVarFp.getCheckoutSessionPaymentsCheckoutGet(companyId, productId, authorization, sessionId, options).then((request) => request(axios, basePath));
4316
+ getCheckoutSessionV1PaymentsCheckoutGet(companyId: string, productId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<CheckoutSessionResponse> {
4317
+ return localVarFp.getCheckoutSessionV1PaymentsCheckoutGet(companyId, productId, authorization, sessionId, options).then((request) => request(axios, basePath));
3992
4318
  },
3993
4319
  /**
3994
4320
  *
@@ -3998,8 +4324,8 @@ export const PaymentsApiFactory = function (configuration?: Configuration, baseP
3998
4324
  * @param {*} [options] Override http request option.
3999
4325
  * @throws {RequiredError}
4000
4326
  */
4001
- getCustomerManagementSessionPaymentsCustomerManagementGet(authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<ResponseGetCustomerManagementSessionPaymentsCustomerManagementGet> {
4002
- return localVarFp.getCustomerManagementSessionPaymentsCustomerManagementGet(authorization, sessionId, options).then((request) => request(axios, basePath));
4327
+ getCustomerManagementSessionV1PaymentsCustomerManagementGet(authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<ResponseGetCustomerManagementSessionV1PaymentsCustomerManagementGet> {
4328
+ return localVarFp.getCustomerManagementSessionV1PaymentsCustomerManagementGet(authorization, sessionId, options).then((request) => request(axios, basePath));
4003
4329
  },
4004
4330
  /**
4005
4331
  *
@@ -4007,8 +4333,8 @@ export const PaymentsApiFactory = function (configuration?: Configuration, baseP
4007
4333
  * @param {*} [options] Override http request option.
4008
4334
  * @throws {RequiredError}
4009
4335
  */
4010
- webhookPaymentsWebhookPost(options?: RawAxiosRequestConfig): AxiosPromise<any> {
4011
- return localVarFp.webhookPaymentsWebhookPost(options).then((request) => request(axios, basePath));
4336
+ webhookV1PaymentsWebhookPost(options?: RawAxiosRequestConfig): AxiosPromise<any> {
4337
+ return localVarFp.webhookV1PaymentsWebhookPost(options).then((request) => request(axios, basePath));
4012
4338
  },
4013
4339
  };
4014
4340
  };
@@ -4031,8 +4357,8 @@ export class PaymentsApi extends BaseAPI {
4031
4357
  * @throws {RequiredError}
4032
4358
  * @memberof PaymentsApi
4033
4359
  */
4034
- public getCheckoutSessionPaymentsCheckoutGet(companyId: string, productId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
4035
- return PaymentsApiFp(this.configuration).getCheckoutSessionPaymentsCheckoutGet(companyId, productId, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
4360
+ public getCheckoutSessionV1PaymentsCheckoutGet(companyId: string, productId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
4361
+ return PaymentsApiFp(this.configuration).getCheckoutSessionV1PaymentsCheckoutGet(companyId, productId, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
4036
4362
  }
4037
4363
 
4038
4364
  /**
@@ -4044,8 +4370,8 @@ export class PaymentsApi extends BaseAPI {
4044
4370
  * @throws {RequiredError}
4045
4371
  * @memberof PaymentsApi
4046
4372
  */
4047
- public getCustomerManagementSessionPaymentsCustomerManagementGet(authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
4048
- return PaymentsApiFp(this.configuration).getCustomerManagementSessionPaymentsCustomerManagementGet(authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
4373
+ public getCustomerManagementSessionV1PaymentsCustomerManagementGet(authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
4374
+ return PaymentsApiFp(this.configuration).getCustomerManagementSessionV1PaymentsCustomerManagementGet(authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
4049
4375
  }
4050
4376
 
4051
4377
  /**
@@ -4055,8 +4381,8 @@ export class PaymentsApi extends BaseAPI {
4055
4381
  * @throws {RequiredError}
4056
4382
  * @memberof PaymentsApi
4057
4383
  */
4058
- public webhookPaymentsWebhookPost(options?: RawAxiosRequestConfig) {
4059
- return PaymentsApiFp(this.configuration).webhookPaymentsWebhookPost(options).then((request) => request(this.axios, this.basePath));
4384
+ public webhookV1PaymentsWebhookPost(options?: RawAxiosRequestConfig) {
4385
+ return PaymentsApiFp(this.configuration).webhookV1PaymentsWebhookPost(options).then((request) => request(this.axios, this.basePath));
4060
4386
  }
4061
4387
  }
4062
4388
 
package/base.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Lumoar API
5
5
  * Compliance as a service
6
6
  *
7
- * The version of the OpenAPI document: 0.1.0
7
+ * The version of the OpenAPI document: 1.0.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/common.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Lumoar API
5
5
  * Compliance as a service
6
6
  *
7
- * The version of the OpenAPI document: 0.1.0
7
+ * The version of the OpenAPI document: 1.0.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).