@rasadov/lumoar-sdk 1.0.4 → 1.0.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/dist/api.d.ts CHANGED
@@ -43,49 +43,49 @@ export type AuditLogEntity = typeof AuditLogEntity[keyof typeof AuditLogEntity];
43
43
  /**
44
44
  *
45
45
  * @export
46
- * @interface AuditLogResponse
46
+ * @interface AuditLogSchema
47
47
  */
48
- export interface AuditLogResponse {
48
+ export interface AuditLogSchema {
49
49
  /**
50
50
  *
51
51
  * @type {string}
52
- * @memberof AuditLogResponse
52
+ * @memberof AuditLogSchema
53
53
  */
54
54
  'company_id': string;
55
55
  /**
56
56
  *
57
57
  * @type {AuditLogAction}
58
- * @memberof AuditLogResponse
58
+ * @memberof AuditLogSchema
59
59
  */
60
60
  'action': AuditLogAction;
61
61
  /**
62
62
  *
63
63
  * @type {AuditLogEntity}
64
- * @memberof AuditLogResponse
64
+ * @memberof AuditLogSchema
65
65
  */
66
66
  'entity_type': AuditLogEntity;
67
67
  /**
68
68
  *
69
69
  * @type {string}
70
- * @memberof AuditLogResponse
70
+ * @memberof AuditLogSchema
71
71
  */
72
72
  'entity_id': string;
73
73
  /**
74
74
  *
75
75
  * @type {string}
76
- * @memberof AuditLogResponse
76
+ * @memberof AuditLogSchema
77
77
  */
78
78
  'entity_name': string;
79
79
  /**
80
80
  *
81
81
  * @type {string}
82
- * @memberof AuditLogResponse
82
+ * @memberof AuditLogSchema
83
83
  */
84
84
  'timestamp': string;
85
85
  /**
86
86
  *
87
87
  * @type {{ [key: string]: any; }}
88
- * @memberof AuditLogResponse
88
+ * @memberof AuditLogSchema
89
89
  */
90
90
  'details': {
91
91
  [key: string]: any;
@@ -1061,6 +1061,63 @@ export interface LoginSchema {
1061
1061
  */
1062
1062
  'turnstile_token': string;
1063
1063
  }
1064
+ /**
1065
+ *
1066
+ * @export
1067
+ * @interface PaginationResponseAuditLogSchema
1068
+ */
1069
+ export interface PaginationResponseAuditLogSchema {
1070
+ /**
1071
+ *
1072
+ * @type {Array<AuditLogSchema>}
1073
+ * @memberof PaginationResponseAuditLogSchema
1074
+ */
1075
+ 'items': Array<AuditLogSchema>;
1076
+ /**
1077
+ *
1078
+ * @type {number}
1079
+ * @memberof PaginationResponseAuditLogSchema
1080
+ */
1081
+ 'total': number;
1082
+ }
1083
+ /**
1084
+ *
1085
+ * @export
1086
+ * @interface PaginationResponseCompanyInDBBase
1087
+ */
1088
+ export interface PaginationResponseCompanyInDBBase {
1089
+ /**
1090
+ *
1091
+ * @type {Array<CompanyInDBBase>}
1092
+ * @memberof PaginationResponseCompanyInDBBase
1093
+ */
1094
+ 'items': Array<CompanyInDBBase>;
1095
+ /**
1096
+ *
1097
+ * @type {number}
1098
+ * @memberof PaginationResponseCompanyInDBBase
1099
+ */
1100
+ 'total': number;
1101
+ }
1102
+ /**
1103
+ *
1104
+ * @export
1105
+ * @interface PaginationResponsePolicyRead
1106
+ */
1107
+ export interface PaginationResponsePolicyRead {
1108
+ /**
1109
+ *
1110
+ * @type {Array<PolicyRead>}
1111
+ * @memberof PaginationResponsePolicyRead
1112
+ */
1113
+ 'items': Array<PolicyRead>;
1114
+ /**
1115
+ *
1116
+ * @type {number}
1117
+ * @memberof PaginationResponsePolicyRead
1118
+ */
1119
+ 'total': number;
1120
+ }
1064
1121
  /**
1065
1122
  *
1066
1123
  * @export
@@ -1531,8 +1588,8 @@ export declare const AuditLogsApiAxiosParamCreator: (configuration?: Configurati
1531
1588
  *
1532
1589
  * @summary List Audit Logs
1533
1590
  * @param {string} companyId
1534
- * @param {number} page
1535
- * @param {number} elements
1591
+ * @param {number} [page]
1592
+ * @param {number} [elements]
1536
1593
  * @param {AuditLogEntity | null} [entityType]
1537
1594
  * @param {AuditLogAction | null} [action]
1538
1595
  * @param {string | null} [startDate]
@@ -1542,7 +1599,7 @@ export declare const AuditLogsApiAxiosParamCreator: (configuration?: Configurati
1542
1599
  * @param {*} [options] Override http request option.
1543
1600
  * @throws {RequiredError}
1544
1601
  */
1545
- 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<RequestArgs>;
1602
+ 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<RequestArgs>;
1546
1603
  };
1547
1604
  /**
1548
1605
  * AuditLogsApi - functional programming interface
@@ -1553,8 +1610,8 @@ export declare const AuditLogsApiFp: (configuration?: Configuration) => {
1553
1610
  *
1554
1611
  * @summary List Audit Logs
1555
1612
  * @param {string} companyId
1556
- * @param {number} page
1557
- * @param {number} elements
1613
+ * @param {number} [page]
1614
+ * @param {number} [elements]
1558
1615
  * @param {AuditLogEntity | null} [entityType]
1559
1616
  * @param {AuditLogAction | null} [action]
1560
1617
  * @param {string | null} [startDate]
@@ -1564,7 +1621,7 @@ export declare const AuditLogsApiFp: (configuration?: Configuration) => {
1564
1621
  * @param {*} [options] Override http request option.
1565
1622
  * @throws {RequiredError}
1566
1623
  */
1567
- 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>>>;
1624
+ 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<PaginationResponseAuditLogSchema>>;
1568
1625
  };
1569
1626
  /**
1570
1627
  * AuditLogsApi - factory interface
@@ -1575,8 +1632,8 @@ export declare const AuditLogsApiFactory: (configuration?: Configuration, basePa
1575
1632
  *
1576
1633
  * @summary List Audit Logs
1577
1634
  * @param {string} companyId
1578
- * @param {number} page
1579
- * @param {number} elements
1635
+ * @param {number} [page]
1636
+ * @param {number} [elements]
1580
1637
  * @param {AuditLogEntity | null} [entityType]
1581
1638
  * @param {AuditLogAction | null} [action]
1582
1639
  * @param {string | null} [startDate]
@@ -1586,7 +1643,7 @@ export declare const AuditLogsApiFactory: (configuration?: Configuration, basePa
1586
1643
  * @param {*} [options] Override http request option.
1587
1644
  * @throws {RequiredError}
1588
1645
  */
1589
- 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>>;
1646
+ 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<PaginationResponseAuditLogSchema>;
1590
1647
  };
1591
1648
  /**
1592
1649
  * AuditLogsApi - object-oriented interface
@@ -1599,8 +1656,8 @@ export declare class AuditLogsApi extends BaseAPI {
1599
1656
  *
1600
1657
  * @summary List Audit Logs
1601
1658
  * @param {string} companyId
1602
- * @param {number} page
1603
- * @param {number} elements
1659
+ * @param {number} [page]
1660
+ * @param {number} [elements]
1604
1661
  * @param {AuditLogEntity | null} [entityType]
1605
1662
  * @param {AuditLogAction | null} [action]
1606
1663
  * @param {string | null} [startDate]
@@ -1611,7 +1668,7 @@ export declare class AuditLogsApi extends BaseAPI {
1611
1668
  * @throws {RequiredError}
1612
1669
  * @memberof AuditLogsApi
1613
1670
  */
1614
- 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<import("axios").AxiosResponse<AuditLogResponse[], any, {}>>;
1671
+ 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<import("axios").AxiosResponse<PaginationResponseAuditLogSchema, any, {}>>;
1615
1672
  }
1616
1673
  /**
1617
1674
  * AuthApi - axios parameter creator
@@ -2057,25 +2114,14 @@ export declare const CompanyApiAxiosParamCreator: (configuration?: Configuration
2057
2114
  getCompanyV1CompanyGetCompanyIdGet: (companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2058
2115
  /**
2059
2116
  *
2060
- * @summary Get Controls
2117
+ * @summary Get Company With Controls
2061
2118
  * @param {string} companyId
2062
2119
  * @param {string} [authorization]
2063
2120
  * @param {string} [sessionId]
2064
2121
  * @param {*} [options] Override http request option.
2065
2122
  * @throws {RequiredError}
2066
2123
  */
2067
- getControlsV1CompanyControlsCompanyIdGet: (companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2068
- /**
2069
- *
2070
- * @summary Get Policies
2071
- * @param {number} [page]
2072
- * @param {number} [elements]
2073
- * @param {string} [authorization]
2074
- * @param {string} [sessionId]
2075
- * @param {*} [options] Override http request option.
2076
- * @throws {RequiredError}
2077
- */
2078
- getPoliciesV1CompanyPoliciesGet: (page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2124
+ getCompanyWithControlsV1CompanyControlsCompanyIdGet: (companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2079
2125
  /**
2080
2126
  *
2081
2127
  * @summary Update Company
@@ -2112,7 +2158,7 @@ export declare const CompanyApiFp: (configuration?: Configuration) => {
2112
2158
  * @param {*} [options] Override http request option.
2113
2159
  * @throws {RequiredError}
2114
2160
  */
2115
- getCompaniesV1CompanyListGet(page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CompanyInDBBase>>>;
2161
+ getCompaniesV1CompanyListGet(page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaginationResponseCompanyInDBBase>>;
2116
2162
  /**
2117
2163
  *
2118
2164
  * @summary Get Company
@@ -2125,25 +2171,14 @@ export declare const CompanyApiFp: (configuration?: Configuration) => {
2125
2171
  getCompanyV1CompanyGetCompanyIdGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompanyWithRoles>>;
2126
2172
  /**
2127
2173
  *
2128
- * @summary Get Controls
2174
+ * @summary Get Company With Controls
2129
2175
  * @param {string} companyId
2130
2176
  * @param {string} [authorization]
2131
2177
  * @param {string} [sessionId]
2132
2178
  * @param {*} [options] Override http request option.
2133
2179
  * @throws {RequiredError}
2134
2180
  */
2135
- getControlsV1CompanyControlsCompanyIdGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompanyWithControls>>;
2136
- /**
2137
- *
2138
- * @summary Get Policies
2139
- * @param {number} [page]
2140
- * @param {number} [elements]
2141
- * @param {string} [authorization]
2142
- * @param {string} [sessionId]
2143
- * @param {*} [options] Override http request option.
2144
- * @throws {RequiredError}
2145
- */
2146
- getPoliciesV1CompanyPoliciesGet(page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PolicyRead>>>;
2181
+ getCompanyWithControlsV1CompanyControlsCompanyIdGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompanyWithControls>>;
2147
2182
  /**
2148
2183
  *
2149
2184
  * @summary Update Company
@@ -2180,7 +2215,7 @@ export declare const CompanyApiFactory: (configuration?: Configuration, basePath
2180
2215
  * @param {*} [options] Override http request option.
2181
2216
  * @throws {RequiredError}
2182
2217
  */
2183
- getCompaniesV1CompanyListGet(page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<CompanyInDBBase>>;
2218
+ getCompaniesV1CompanyListGet(page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<PaginationResponseCompanyInDBBase>;
2184
2219
  /**
2185
2220
  *
2186
2221
  * @summary Get Company
@@ -2193,25 +2228,14 @@ export declare const CompanyApiFactory: (configuration?: Configuration, basePath
2193
2228
  getCompanyV1CompanyGetCompanyIdGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<CompanyWithRoles>;
2194
2229
  /**
2195
2230
  *
2196
- * @summary Get Controls
2231
+ * @summary Get Company With Controls
2197
2232
  * @param {string} companyId
2198
2233
  * @param {string} [authorization]
2199
2234
  * @param {string} [sessionId]
2200
2235
  * @param {*} [options] Override http request option.
2201
2236
  * @throws {RequiredError}
2202
2237
  */
2203
- getControlsV1CompanyControlsCompanyIdGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<CompanyWithControls>;
2204
- /**
2205
- *
2206
- * @summary Get Policies
2207
- * @param {number} [page]
2208
- * @param {number} [elements]
2209
- * @param {string} [authorization]
2210
- * @param {string} [sessionId]
2211
- * @param {*} [options] Override http request option.
2212
- * @throws {RequiredError}
2213
- */
2214
- getPoliciesV1CompanyPoliciesGet(page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<PolicyRead>>;
2238
+ getCompanyWithControlsV1CompanyControlsCompanyIdGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<CompanyWithControls>;
2215
2239
  /**
2216
2240
  *
2217
2241
  * @summary Update Company
@@ -2252,7 +2276,7 @@ export declare class CompanyApi extends BaseAPI {
2252
2276
  * @throws {RequiredError}
2253
2277
  * @memberof CompanyApi
2254
2278
  */
2255
- getCompaniesV1CompanyListGet(page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CompanyInDBBase[], any, {}>>;
2279
+ getCompaniesV1CompanyListGet(page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PaginationResponseCompanyInDBBase, any, {}>>;
2256
2280
  /**
2257
2281
  *
2258
2282
  * @summary Get Company
@@ -2266,7 +2290,7 @@ export declare class CompanyApi extends BaseAPI {
2266
2290
  getCompanyV1CompanyGetCompanyIdGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CompanyWithRoles, any, {}>>;
2267
2291
  /**
2268
2292
  *
2269
- * @summary Get Controls
2293
+ * @summary Get Company With Controls
2270
2294
  * @param {string} companyId
2271
2295
  * @param {string} [authorization]
2272
2296
  * @param {string} [sessionId]
@@ -2274,19 +2298,7 @@ export declare class CompanyApi extends BaseAPI {
2274
2298
  * @throws {RequiredError}
2275
2299
  * @memberof CompanyApi
2276
2300
  */
2277
- getControlsV1CompanyControlsCompanyIdGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CompanyWithControls, any, {}>>;
2278
- /**
2279
- *
2280
- * @summary Get Policies
2281
- * @param {number} [page]
2282
- * @param {number} [elements]
2283
- * @param {string} [authorization]
2284
- * @param {string} [sessionId]
2285
- * @param {*} [options] Override http request option.
2286
- * @throws {RequiredError}
2287
- * @memberof CompanyApi
2288
- */
2289
- getPoliciesV1CompanyPoliciesGet(page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PolicyRead[], any, {}>>;
2301
+ getCompanyWithControlsV1CompanyControlsCompanyIdGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CompanyWithControls, any, {}>>;
2290
2302
  /**
2291
2303
  *
2292
2304
  * @summary Update Company
@@ -3055,7 +3067,7 @@ export declare const PoliciesApiFp: (configuration?: Configuration) => {
3055
3067
  * @param {*} [options] Override http request option.
3056
3068
  * @throws {RequiredError}
3057
3069
  */
3058
- getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId: string, page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PolicyRead>>>;
3070
+ getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId: string, page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaginationResponsePolicyRead>>;
3059
3071
  /**
3060
3072
  *
3061
3073
  * @summary Get Policy
@@ -3112,7 +3124,7 @@ export declare const PoliciesApiFactory: (configuration?: Configuration, basePat
3112
3124
  * @param {*} [options] Override http request option.
3113
3125
  * @throws {RequiredError}
3114
3126
  */
3115
- getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId: string, page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<PolicyRead>>;
3127
+ getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId: string, page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<PaginationResponsePolicyRead>;
3116
3128
  /**
3117
3129
  *
3118
3130
  * @summary Get Policy
@@ -3174,7 +3186,7 @@ export declare class PoliciesApi extends BaseAPI {
3174
3186
  * @throws {RequiredError}
3175
3187
  * @memberof PoliciesApi
3176
3188
  */
3177
- getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId: string, page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PolicyRead[], any, {}>>;
3189
+ getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId: string, page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PaginationResponsePolicyRead, any, {}>>;
3178
3190
  /**
3179
3191
  *
3180
3192
  * @summary Get Policy
package/dist/api.js CHANGED
@@ -93,8 +93,8 @@ export const AuditLogsApiAxiosParamCreator = function (configuration) {
93
93
  *
94
94
  * @summary List Audit Logs
95
95
  * @param {string} companyId
96
- * @param {number} page
97
- * @param {number} elements
96
+ * @param {number} [page]
97
+ * @param {number} [elements]
98
98
  * @param {AuditLogEntity | null} [entityType]
99
99
  * @param {AuditLogAction | null} [action]
100
100
  * @param {string | null} [startDate]
@@ -107,10 +107,6 @@ export const AuditLogsApiAxiosParamCreator = function (configuration) {
107
107
  listAuditLogsV1AuditLogsListGet: (companyId_1, page_1, elements_1, entityType_1, action_1, startDate_1, endDate_1, authorization_1, sessionId_1, ...args_1) => __awaiter(this, [companyId_1, page_1, elements_1, entityType_1, action_1, startDate_1, endDate_1, authorization_1, sessionId_1, ...args_1], void 0, function* (companyId, page, elements, entityType, action, startDate, endDate, authorization, sessionId, options = {}) {
108
108
  // verify required parameter 'companyId' is not null or undefined
109
109
  assertParamExists('listAuditLogsV1AuditLogsListGet', 'companyId', companyId);
110
- // verify required parameter 'page' is not null or undefined
111
- assertParamExists('listAuditLogsV1AuditLogsListGet', 'page', page);
112
- // verify required parameter 'elements' is not null or undefined
113
- assertParamExists('listAuditLogsV1AuditLogsListGet', 'elements', elements);
114
110
  const localVarPath = `/v1/audit-logs/list`;
115
111
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
116
112
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -170,8 +166,8 @@ export const AuditLogsApiFp = function (configuration) {
170
166
  *
171
167
  * @summary List Audit Logs
172
168
  * @param {string} companyId
173
- * @param {number} page
174
- * @param {number} elements
169
+ * @param {number} [page]
170
+ * @param {number} [elements]
175
171
  * @param {AuditLogEntity | null} [entityType]
176
172
  * @param {AuditLogAction | null} [action]
177
173
  * @param {string | null} [startDate]
@@ -203,8 +199,8 @@ export const AuditLogsApiFactory = function (configuration, basePath, axios) {
203
199
  *
204
200
  * @summary List Audit Logs
205
201
  * @param {string} companyId
206
- * @param {number} page
207
- * @param {number} elements
202
+ * @param {number} [page]
203
+ * @param {number} [elements]
208
204
  * @param {AuditLogEntity | null} [entityType]
209
205
  * @param {AuditLogAction | null} [action]
210
206
  * @param {string | null} [startDate]
@@ -230,8 +226,8 @@ export class AuditLogsApi extends BaseAPI {
230
226
  *
231
227
  * @summary List Audit Logs
232
228
  * @param {string} companyId
233
- * @param {number} page
234
- * @param {number} elements
229
+ * @param {number} [page]
230
+ * @param {number} [elements]
235
231
  * @param {AuditLogEntity | null} [entityType]
236
232
  * @param {AuditLogAction | null} [action]
237
233
  * @param {string | null} [startDate]
@@ -1123,16 +1119,16 @@ export const CompanyApiAxiosParamCreator = function (configuration) {
1123
1119
  }),
1124
1120
  /**
1125
1121
  *
1126
- * @summary Get Controls
1122
+ * @summary Get Company With Controls
1127
1123
  * @param {string} companyId
1128
1124
  * @param {string} [authorization]
1129
1125
  * @param {string} [sessionId]
1130
1126
  * @param {*} [options] Override http request option.
1131
1127
  * @throws {RequiredError}
1132
1128
  */
1133
- getControlsV1CompanyControlsCompanyIdGet: (companyId_1, authorization_1, sessionId_1, ...args_1) => __awaiter(this, [companyId_1, authorization_1, sessionId_1, ...args_1], void 0, function* (companyId, authorization, sessionId, options = {}) {
1129
+ getCompanyWithControlsV1CompanyControlsCompanyIdGet: (companyId_1, authorization_1, sessionId_1, ...args_1) => __awaiter(this, [companyId_1, authorization_1, sessionId_1, ...args_1], void 0, function* (companyId, authorization, sessionId, options = {}) {
1134
1130
  // verify required parameter 'companyId' is not null or undefined
1135
- assertParamExists('getControlsV1CompanyControlsCompanyIdGet', 'companyId', companyId);
1131
+ assertParamExists('getCompanyWithControlsV1CompanyControlsCompanyIdGet', 'companyId', companyId);
1136
1132
  const localVarPath = `/v1/company/controls/{company_id}`
1137
1133
  .replace(`{${"company_id"}}`, encodeURIComponent(String(companyId)));
1138
1134
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -1155,44 +1151,6 @@ export const CompanyApiAxiosParamCreator = function (configuration) {
1155
1151
  options: localVarRequestOptions,
1156
1152
  };
1157
1153
  }),
1158
- /**
1159
- *
1160
- * @summary Get Policies
1161
- * @param {number} [page]
1162
- * @param {number} [elements]
1163
- * @param {string} [authorization]
1164
- * @param {string} [sessionId]
1165
- * @param {*} [options] Override http request option.
1166
- * @throws {RequiredError}
1167
- */
1168
- getPoliciesV1CompanyPoliciesGet: (page_1, elements_1, authorization_1, sessionId_1, ...args_1) => __awaiter(this, [page_1, elements_1, authorization_1, sessionId_1, ...args_1], void 0, function* (page, elements, authorization, sessionId, options = {}) {
1169
- const localVarPath = `/v1/company/policies`;
1170
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1171
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1172
- let baseOptions;
1173
- if (configuration) {
1174
- baseOptions = configuration.baseOptions;
1175
- }
1176
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1177
- const localVarHeaderParameter = {};
1178
- const localVarQueryParameter = {};
1179
- if (page !== undefined) {
1180
- localVarQueryParameter['page'] = page;
1181
- }
1182
- if (elements !== undefined) {
1183
- localVarQueryParameter['elements'] = elements;
1184
- }
1185
- if (authorization != null) {
1186
- localVarHeaderParameter['Authorization'] = String(authorization);
1187
- }
1188
- setSearchParams(localVarUrlObj, localVarQueryParameter);
1189
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1190
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1191
- return {
1192
- url: toPathString(localVarUrlObj),
1193
- options: localVarRequestOptions,
1194
- };
1195
- }),
1196
1154
  /**
1197
1155
  *
1198
1156
  * @summary Update Company
@@ -1294,38 +1252,19 @@ export const CompanyApiFp = function (configuration) {
1294
1252
  },
1295
1253
  /**
1296
1254
  *
1297
- * @summary Get Controls
1255
+ * @summary Get Company With Controls
1298
1256
  * @param {string} companyId
1299
1257
  * @param {string} [authorization]
1300
1258
  * @param {string} [sessionId]
1301
1259
  * @param {*} [options] Override http request option.
1302
1260
  * @throws {RequiredError}
1303
1261
  */
1304
- getControlsV1CompanyControlsCompanyIdGet(companyId, authorization, sessionId, options) {
1305
- return __awaiter(this, void 0, void 0, function* () {
1306
- var _a, _b, _c;
1307
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getControlsV1CompanyControlsCompanyIdGet(companyId, authorization, sessionId, options);
1308
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1309
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CompanyApi.getControlsV1CompanyControlsCompanyIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1310
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1311
- });
1312
- },
1313
- /**
1314
- *
1315
- * @summary Get Policies
1316
- * @param {number} [page]
1317
- * @param {number} [elements]
1318
- * @param {string} [authorization]
1319
- * @param {string} [sessionId]
1320
- * @param {*} [options] Override http request option.
1321
- * @throws {RequiredError}
1322
- */
1323
- getPoliciesV1CompanyPoliciesGet(page, elements, authorization, sessionId, options) {
1262
+ getCompanyWithControlsV1CompanyControlsCompanyIdGet(companyId, authorization, sessionId, options) {
1324
1263
  return __awaiter(this, void 0, void 0, function* () {
1325
1264
  var _a, _b, _c;
1326
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getPoliciesV1CompanyPoliciesGet(page, elements, authorization, sessionId, options);
1265
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getCompanyWithControlsV1CompanyControlsCompanyIdGet(companyId, authorization, sessionId, options);
1327
1266
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1328
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CompanyApi.getPoliciesV1CompanyPoliciesGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1267
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CompanyApi.getCompanyWithControlsV1CompanyControlsCompanyIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1329
1268
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1330
1269
  });
1331
1270
  },
@@ -1395,28 +1334,15 @@ export const CompanyApiFactory = function (configuration, basePath, axios) {
1395
1334
  },
1396
1335
  /**
1397
1336
  *
1398
- * @summary Get Controls
1337
+ * @summary Get Company With Controls
1399
1338
  * @param {string} companyId
1400
1339
  * @param {string} [authorization]
1401
1340
  * @param {string} [sessionId]
1402
1341
  * @param {*} [options] Override http request option.
1403
1342
  * @throws {RequiredError}
1404
1343
  */
1405
- getControlsV1CompanyControlsCompanyIdGet(companyId, authorization, sessionId, options) {
1406
- return localVarFp.getControlsV1CompanyControlsCompanyIdGet(companyId, authorization, sessionId, options).then((request) => request(axios, basePath));
1407
- },
1408
- /**
1409
- *
1410
- * @summary Get Policies
1411
- * @param {number} [page]
1412
- * @param {number} [elements]
1413
- * @param {string} [authorization]
1414
- * @param {string} [sessionId]
1415
- * @param {*} [options] Override http request option.
1416
- * @throws {RequiredError}
1417
- */
1418
- getPoliciesV1CompanyPoliciesGet(page, elements, authorization, sessionId, options) {
1419
- return localVarFp.getPoliciesV1CompanyPoliciesGet(page, elements, authorization, sessionId, options).then((request) => request(axios, basePath));
1344
+ getCompanyWithControlsV1CompanyControlsCompanyIdGet(companyId, authorization, sessionId, options) {
1345
+ return localVarFp.getCompanyWithControlsV1CompanyControlsCompanyIdGet(companyId, authorization, sessionId, options).then((request) => request(axios, basePath));
1420
1346
  },
1421
1347
  /**
1422
1348
  *
@@ -1481,7 +1407,7 @@ export class CompanyApi extends BaseAPI {
1481
1407
  }
1482
1408
  /**
1483
1409
  *
1484
- * @summary Get Controls
1410
+ * @summary Get Company With Controls
1485
1411
  * @param {string} companyId
1486
1412
  * @param {string} [authorization]
1487
1413
  * @param {string} [sessionId]
@@ -1489,22 +1415,8 @@ export class CompanyApi extends BaseAPI {
1489
1415
  * @throws {RequiredError}
1490
1416
  * @memberof CompanyApi
1491
1417
  */
1492
- getControlsV1CompanyControlsCompanyIdGet(companyId, authorization, sessionId, options) {
1493
- return CompanyApiFp(this.configuration).getControlsV1CompanyControlsCompanyIdGet(companyId, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
1494
- }
1495
- /**
1496
- *
1497
- * @summary Get Policies
1498
- * @param {number} [page]
1499
- * @param {number} [elements]
1500
- * @param {string} [authorization]
1501
- * @param {string} [sessionId]
1502
- * @param {*} [options] Override http request option.
1503
- * @throws {RequiredError}
1504
- * @memberof CompanyApi
1505
- */
1506
- getPoliciesV1CompanyPoliciesGet(page, elements, authorization, sessionId, options) {
1507
- return CompanyApiFp(this.configuration).getPoliciesV1CompanyPoliciesGet(page, elements, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
1418
+ getCompanyWithControlsV1CompanyControlsCompanyIdGet(companyId, authorization, sessionId, options) {
1419
+ return CompanyApiFp(this.configuration).getCompanyWithControlsV1CompanyControlsCompanyIdGet(companyId, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
1508
1420
  }
1509
1421
  /**
1510
1422
  *
package/dist/sdk.d.ts CHANGED
@@ -1,9 +1,10 @@
1
- import { HealthApi, AuthApi, CompanyApi, ControlsApi, EvidenceApi, PaymentsApi, PoliciesApi, RolesApi, UserApi } from './api';
1
+ import { HealthApi, AuthApi, CompanyApi, ControlsApi, AuditLogsApi, EvidenceApi, PaymentsApi, PoliciesApi, RolesApi, UserApi } from './api';
2
2
  export declare class ApiSDK {
3
3
  private helthApi;
4
4
  private authApi;
5
5
  private companyApi;
6
6
  private controlsApi;
7
+ private auditLogsApi;
7
8
  private evidenceApi;
8
9
  private paymentsApi;
9
10
  private policiesApi;
@@ -20,6 +21,7 @@ export declare class ApiSDK {
20
21
  authApi: AuthApi;
21
22
  companyApi: CompanyApi;
22
23
  controlsApi: ControlsApi;
24
+ auditLogsApi: AuditLogsApi;
23
25
  evidenceApi: EvidenceApi;
24
26
  paymentsApi: PaymentsApi;
25
27
  policiesApi: PoliciesApi;
package/dist/sdk.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import axios from 'axios';
2
- import { HealthApi, AuthApi, CompanyApi, ControlsApi, EvidenceApi, PaymentsApi, PoliciesApi, RolesApi, UserApi } from './api';
2
+ import { HealthApi, AuthApi, CompanyApi, ControlsApi, AuditLogsApi, EvidenceApi, PaymentsApi, PoliciesApi, RolesApi, UserApi } from './api';
3
3
  import { Configuration } from './configuration';
4
4
  export class ApiSDK {
5
5
  constructor(basePath) {
@@ -20,6 +20,7 @@ export class ApiSDK {
20
20
  this.authApi = new AuthApi(config, undefined, this.axiosInstance);
21
21
  this.companyApi = new CompanyApi(config, undefined, this.axiosInstance);
22
22
  this.controlsApi = new ControlsApi(config, undefined, this.axiosInstance);
23
+ this.auditLogsApi = new AuditLogsApi(config, undefined, this.axiosInstance);
23
24
  this.evidenceApi = new EvidenceApi(config, undefined, this.axiosInstance);
24
25
  this.paymentsApi = new PaymentsApi(config, undefined, this.axiosInstance);
25
26
  this.policiesApi = new PoliciesApi(config, undefined, this.axiosInstance);
@@ -63,6 +64,7 @@ export class ApiSDK {
63
64
  authApi: this.authApi,
64
65
  companyApi: this.companyApi,
65
66
  controlsApi: this.controlsApi,
67
+ auditLogsApi: this.auditLogsApi,
66
68
  evidenceApi: this.evidenceApi,
67
69
  paymentsApi: this.paymentsApi,
68
70
  policiesApi: this.policiesApi,