@saritasa/renewaire-frontend-sdk 0.21.0 → 0.21.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,5 +1,5 @@
1
- # @@saritasa/renewaire-frontend-sdk@0.21.0
1
+ # @@saritasa/renewaire-frontend-sdk@0.21.1
2
2
 
3
3
  ```bash
4
- npm install @saritasa/renewaire-frontend-sdk@0.21.0 --save
4
+ npm install @saritasa/renewaire-frontend-sdk@0.21.1 --save
5
5
  ```
@@ -1,7 +1,7 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { InjectionToken, Optional, Inject, Injectable, SkipSelf, NgModule, makeEnvironmentProviders } from '@angular/core';
3
3
  import * as i1 from '@angular/common/http';
4
- import { HttpHeaders, HttpContext, HttpParams } from '@angular/common/http';
4
+ import { HttpHeaders, HttpParams, HttpContext } from '@angular/common/http';
5
5
 
6
6
  const BASE_PATH = new InjectionToken("basePath");
7
7
  const COLLECTION_FORMATS = {
@@ -248,6 +248,96 @@ class BaseService {
248
248
  }
249
249
  }
250
250
 
251
+ /**
252
+ * RenewAire CORES API
253
+ *
254
+ * Contact: renewaire@saritasa.com
255
+ *
256
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
257
+ * https://openapi-generator.tech
258
+ * Do not edit the class manually.
259
+ */
260
+ /* tslint:disable:no-unused-variable member-ordering */
261
+ class AuditLogsApiService extends BaseService {
262
+ httpClient;
263
+ constructor(httpClient, basePath, configuration) {
264
+ super(basePath, configuration);
265
+ this.httpClient = httpClient;
266
+ }
267
+ auditLogsSearchAuditLogs(requestParameters, observe = "body", reportProgress = false, options) {
268
+ const auditEntity = requestParameters?.auditEntity;
269
+ if (auditEntity === null || auditEntity === undefined) {
270
+ throw new Error("Required parameter auditEntity was null or undefined when calling auditLogsSearchAuditLogs.");
271
+ }
272
+ const entityId = requestParameters?.entityId;
273
+ if (entityId === null || entityId === undefined) {
274
+ throw new Error("Required parameter entityId was null or undefined when calling auditLogsSearchAuditLogs.");
275
+ }
276
+ const page = requestParameters?.page;
277
+ const pageSize = requestParameters?.pageSize;
278
+ const orderBy = requestParameters?.orderBy;
279
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
280
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, auditEntity, "AuditEntity");
281
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, entityId, "EntityId");
282
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, page, "Page");
283
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, pageSize, "PageSize");
284
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, orderBy, "OrderBy");
285
+ let localVarHeaders = this.defaultHeaders;
286
+ // authentication (Bearer) required
287
+ localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
288
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
289
+ this.configuration.selectHeaderAccept([
290
+ "text/plain",
291
+ "application/json",
292
+ "text/json",
293
+ ]);
294
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
295
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
296
+ }
297
+ const localVarHttpContext = options?.context ?? new HttpContext();
298
+ const localVarTransferCache = options?.transferCache ?? true;
299
+ let responseType_ = "json";
300
+ if (localVarHttpHeaderAcceptSelected) {
301
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
302
+ responseType_ = "text";
303
+ }
304
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
305
+ responseType_ = "json";
306
+ }
307
+ else {
308
+ responseType_ = "blob";
309
+ }
310
+ }
311
+ let localVarPath = `/api/audit-logs`;
312
+ const { basePath, withCredentials } = this.configuration;
313
+ return this.httpClient.request("get", `${basePath}${localVarPath}`, {
314
+ context: localVarHttpContext,
315
+ params: localVarQueryParameters,
316
+ responseType: responseType_,
317
+ ...(withCredentials ? { withCredentials } : {}),
318
+ headers: localVarHeaders,
319
+ observe: observe,
320
+ transferCache: localVarTransferCache,
321
+ reportProgress: reportProgress,
322
+ });
323
+ }
324
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: AuditLogsApiService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
325
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: AuditLogsApiService, providedIn: "root" });
326
+ }
327
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: AuditLogsApiService, decorators: [{
328
+ type: Injectable,
329
+ args: [{
330
+ providedIn: "root",
331
+ }]
332
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
333
+ type: Optional
334
+ }, {
335
+ type: Inject,
336
+ args: [BASE_PATH]
337
+ }] }, { type: Configuration, decorators: [{
338
+ type: Optional
339
+ }] }] });
340
+
251
341
  /**
252
342
  * RenewAire CORES API
253
343
  *
@@ -4288,6 +4378,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImpor
4288
4378
  }] }] });
4289
4379
 
4290
4380
  const APIS = [
4381
+ AuditLogsApiService,
4291
4382
  AuthApiService,
4292
4383
  FeedbacksApiService,
4293
4384
  GroupsApiService,
@@ -4363,6 +4454,38 @@ var AshraeVersion;
4363
4454
  AshraeVersion["V2022"] = "V2022";
4364
4455
  })(AshraeVersion || (AshraeVersion = {}));
4365
4456
 
4457
+ /**
4458
+ * RenewAire CORES API
4459
+ *
4460
+ * Contact: renewaire@saritasa.com
4461
+ *
4462
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
4463
+ * https://openapi-generator.tech
4464
+ * Do not edit the class manually.
4465
+ */
4466
+ /**
4467
+ * AuditEntity<br />0 = User<br />1 = PermissionBundle<br />2 = RsdRegion<br />3 = RepTerritory<br />4 = UserGroup<br />5 = KnownContact
4468
+ */
4469
+ var AuditEntity;
4470
+ (function (AuditEntity) {
4471
+ AuditEntity["User"] = "User";
4472
+ AuditEntity["PermissionBundle"] = "PermissionBundle";
4473
+ AuditEntity["RsdRegion"] = "RsdRegion";
4474
+ AuditEntity["RepTerritory"] = "RepTerritory";
4475
+ AuditEntity["UserGroup"] = "UserGroup";
4476
+ AuditEntity["KnownContact"] = "KnownContact";
4477
+ })(AuditEntity || (AuditEntity = {}));
4478
+
4479
+ /**
4480
+ * RenewAire CORES API
4481
+ *
4482
+ * Contact: renewaire@saritasa.com
4483
+ *
4484
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
4485
+ * https://openapi-generator.tech
4486
+ * Do not edit the class manually.
4487
+ */
4488
+
4366
4489
  /**
4367
4490
  * RenewAire CORES API
4368
4491
  *
@@ -5149,5 +5272,5 @@ function provideApi(configOrBasePath) {
5149
5272
  * Generated bundle index. Do not edit.
5150
5273
  */
5151
5274
 
5152
- export { APIS, AddressCountry, AddressDtoCountryEnum, ApiModule, AshraeVersion, AuthApiService, BASE_PATH, COLLECTION_FORMATS, Configuration, CoolingDesignBasis, CurrentUserDtoRegistrationStatusEnum, DesignWeatherMode, FeedbackType, FeedbacksApiService, GroupCustomerType, GroupDtoCustomerTypeEnum, GroupDtoTypeEnum, GroupType, GroupsApiService, KnownContactsApiService, Language, Permission, PermissionBundlesApiService, PermissionsApiService, RegionDtoLevelEnum, RegionLevel, RegionsApiService, RegistrationStatus, RepContactsApiService, RepTerritoriesApiService, RepTerritoryLocationsApiService, RsdRegionsApiService, SaveGroupDtoTypeEnum, SaveUserDesignConditionsDtoCoolingDesignBasisEnum, SearchRegionDtoLevelEnum, SetPreferredLanguageCommandPreferredLanguageEnum, UnitSystem, UserDesignConditionsApiService, UserDesignConditionsDtoCoolingDesignBasisEnum, UserDesignWeatherConditionDtoDesignWeatherModeEnum, UserPermissionDtoPermissionEnum, UserPreferencesDtoPreferredLanguageEnum, UserPreferencesDtoPreferredUnitEnum, UserProfileSettingsDtoRegistrationStatusEnum, UserStatus, UserTablesApiService, UsersApiService, provideApi };
5275
+ export { APIS, AddressCountry, AddressDtoCountryEnum, ApiModule, AshraeVersion, AuditEntity, AuditLogsApiService, AuthApiService, BASE_PATH, COLLECTION_FORMATS, Configuration, CoolingDesignBasis, CurrentUserDtoRegistrationStatusEnum, DesignWeatherMode, FeedbackType, FeedbacksApiService, GroupCustomerType, GroupDtoCustomerTypeEnum, GroupDtoTypeEnum, GroupType, GroupsApiService, KnownContactsApiService, Language, Permission, PermissionBundlesApiService, PermissionsApiService, RegionDtoLevelEnum, RegionLevel, RegionsApiService, RegistrationStatus, RepContactsApiService, RepTerritoriesApiService, RepTerritoryLocationsApiService, RsdRegionsApiService, SaveGroupDtoTypeEnum, SaveUserDesignConditionsDtoCoolingDesignBasisEnum, SearchRegionDtoLevelEnum, SetPreferredLanguageCommandPreferredLanguageEnum, UnitSystem, UserDesignConditionsApiService, UserDesignConditionsDtoCoolingDesignBasisEnum, UserDesignWeatherConditionDtoDesignWeatherModeEnum, UserPermissionDtoPermissionEnum, UserPreferencesDtoPreferredLanguageEnum, UserPreferencesDtoPreferredUnitEnum, UserProfileSettingsDtoRegistrationStatusEnum, UserStatus, UserTablesApiService, UsersApiService, provideApi };
5153
5276
  //# sourceMappingURL=saritasa-renewaire-frontend-sdk.mjs.map