@saritasa/renewaire-frontend-sdk 0.139.0 → 0.140.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.139.0
1
+ # @@saritasa/renewaire-frontend-sdk@0.140.1
2
2
 
3
3
  ```bash
4
- npm install @saritasa/renewaire-frontend-sdk@0.139.0 --save
4
+ npm install @saritasa/renewaire-frontend-sdk@0.140.1 --save
5
5
  ```
@@ -321,6 +321,60 @@ class AuditLogsApiService extends BaseService {
321
321
  reportProgress: reportProgress,
322
322
  });
323
323
  }
324
+ auditLogsSearchProjectRevisionAuditLogs(requestParameters, observe = "body", reportProgress = false, options) {
325
+ const projectRevisionId = requestParameters?.projectRevisionId;
326
+ if (projectRevisionId === null || projectRevisionId === undefined) {
327
+ throw new Error("Required parameter projectRevisionId was null or undefined when calling auditLogsSearchProjectRevisionAuditLogs.");
328
+ }
329
+ const text = requestParameters?.text;
330
+ const orderBy = requestParameters?.orderBy;
331
+ const page = requestParameters?.page;
332
+ const pageSize = requestParameters?.pageSize;
333
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
334
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, projectRevisionId, "ProjectRevisionId");
335
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, text, "Text");
336
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, orderBy, "OrderBy");
337
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, page, "Page");
338
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, pageSize, "PageSize");
339
+ let localVarHeaders = this.defaultHeaders;
340
+ // authentication (Bearer) required
341
+ localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
342
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
343
+ this.configuration.selectHeaderAccept([
344
+ "text/plain",
345
+ "application/json",
346
+ "text/json",
347
+ ]);
348
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
349
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
350
+ }
351
+ const localVarHttpContext = options?.context ?? new HttpContext();
352
+ const localVarTransferCache = options?.transferCache ?? true;
353
+ let responseType_ = "json";
354
+ if (localVarHttpHeaderAcceptSelected) {
355
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
356
+ responseType_ = "text";
357
+ }
358
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
359
+ responseType_ = "json";
360
+ }
361
+ else {
362
+ responseType_ = "blob";
363
+ }
364
+ }
365
+ let localVarPath = `/api/audit-logs/project-revisions`;
366
+ const { basePath, withCredentials } = this.configuration;
367
+ return this.httpClient.request("get", `${basePath}${localVarPath}`, {
368
+ context: localVarHttpContext,
369
+ params: localVarQueryParameters,
370
+ responseType: responseType_,
371
+ ...(withCredentials ? { withCredentials } : {}),
372
+ headers: localVarHeaders,
373
+ observe: observe,
374
+ transferCache: localVarTransferCache,
375
+ reportProgress: reportProgress,
376
+ });
377
+ }
324
378
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: AuditLogsApiService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
325
379
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: AuditLogsApiService, providedIn: "root" });
326
380
  }
@@ -8879,7 +8933,7 @@ var AshraeVersion;
8879
8933
  * Do not edit the class manually.
8880
8934
  */
8881
8935
  /**
8882
- * Type of entity that has an ability to track its audit change log. (When adding new options in this enum, need to add a new database migration.)<br />AuditEntity<br />0 = User<br />1 = PermissionBundle<br />2 = RsdRegion<br />3 = RepTerritory<br />4 = UserGroup<br />5 = KnownContact<br />6 = ControllerProgram<br />7 = RepTerritoryRepContact<br />8 = RepTerritoryLocation<br />9 = ProjectRevision
8936
+ * Type of entity that has an ability to track its audit change log. (When adding new options in this enum, need to add a new database migration.)<br />AuditEntity<br />0 = User<br />1 = PermissionBundle<br />2 = RsdRegion<br />3 = RepTerritory<br />4 = UserGroup<br />5 = KnownContact<br />6 = ControllerProgram<br />7 = RepTerritoryRepContact<br />8 = RepTerritoryLocation<br />9 = ProjectRevision<br />10 = Project
8883
8937
  */
8884
8938
  var AuditEntity;
8885
8939
  (function (AuditEntity) {
@@ -8893,6 +8947,7 @@ var AuditEntity;
8893
8947
  AuditEntity["RepTerritoryRepContact"] = "RepTerritoryRepContact";
8894
8948
  AuditEntity["RepTerritoryLocation"] = "RepTerritoryLocation";
8895
8949
  AuditEntity["ProjectRevision"] = "ProjectRevision";
8950
+ AuditEntity["Project"] = "Project";
8896
8951
  })(AuditEntity || (AuditEntity = {}));
8897
8952
 
8898
8953
  /**