@saritasa/renewaire-frontend-sdk 0.138.3 → 0.140.0

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.138.3
1
+ # @@saritasa/renewaire-frontend-sdk@0.140.0
2
2
 
3
3
  ```bash
4
- npm install @saritasa/renewaire-frontend-sdk@0.138.3 --save
4
+ npm install @saritasa/renewaire-frontend-sdk@0.140.0 --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
  }
@@ -3102,6 +3156,49 @@ class ProjectRevisionsApiService extends BaseService {
3102
3156
  reportProgress: reportProgress,
3103
3157
  });
3104
3158
  }
3159
+ projectRevisionsGetProjectRevisionLogs(requestParameters, observe = "body", reportProgress = false, options) {
3160
+ const projectRevisionId = requestParameters?.projectRevisionId;
3161
+ if (projectRevisionId === null || projectRevisionId === undefined) {
3162
+ throw new Error("Required parameter projectRevisionId was null or undefined when calling projectRevisionsGetProjectRevisionLogs.");
3163
+ }
3164
+ let localVarHeaders = this.defaultHeaders;
3165
+ // authentication (Bearer) required
3166
+ localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
3167
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
3168
+ this.configuration.selectHeaderAccept([
3169
+ "text/plain",
3170
+ "application/json",
3171
+ "text/json",
3172
+ ]);
3173
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
3174
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
3175
+ }
3176
+ const localVarHttpContext = options?.context ?? new HttpContext();
3177
+ const localVarTransferCache = options?.transferCache ?? true;
3178
+ let responseType_ = "json";
3179
+ if (localVarHttpHeaderAcceptSelected) {
3180
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
3181
+ responseType_ = "text";
3182
+ }
3183
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
3184
+ responseType_ = "json";
3185
+ }
3186
+ else {
3187
+ responseType_ = "blob";
3188
+ }
3189
+ }
3190
+ let localVarPath = `/api/project-revisions/${this.configuration.encodeParam({ name: "projectRevisionId", value: projectRevisionId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}/logs`;
3191
+ const { basePath, withCredentials } = this.configuration;
3192
+ return this.httpClient.request("get", `${basePath}${localVarPath}`, {
3193
+ context: localVarHttpContext,
3194
+ responseType: responseType_,
3195
+ ...(withCredentials ? { withCredentials } : {}),
3196
+ headers: localVarHeaders,
3197
+ observe: observe,
3198
+ transferCache: localVarTransferCache,
3199
+ reportProgress: reportProgress,
3200
+ });
3201
+ }
3105
3202
  projectRevisionsRemoveRevision(requestParameters, observe = "body", reportProgress = false, options) {
3106
3203
  const projectRevisionId = requestParameters?.projectRevisionId;
3107
3204
  if (projectRevisionId === null || projectRevisionId === undefined) {
@@ -8836,7 +8933,7 @@ var AshraeVersion;
8836
8933
  * Do not edit the class manually.
8837
8934
  */
8838
8935
  /**
8839
- * 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
8840
8937
  */
8841
8938
  var AuditEntity;
8842
8939
  (function (AuditEntity) {
@@ -8850,6 +8947,7 @@ var AuditEntity;
8850
8947
  AuditEntity["RepTerritoryRepContact"] = "RepTerritoryRepContact";
8851
8948
  AuditEntity["RepTerritoryLocation"] = "RepTerritoryLocation";
8852
8949
  AuditEntity["ProjectRevision"] = "ProjectRevision";
8950
+ AuditEntity["Project"] = "Project";
8853
8951
  })(AuditEntity || (AuditEntity = {}));
8854
8952
 
8855
8953
  /**
@@ -9503,6 +9601,24 @@ var ProjectBidStatusType;
9503
9601
  * Do not edit the class manually.
9504
9602
  */
9505
9603
 
9604
+ /**
9605
+ * RenewAire CORES API
9606
+ *
9607
+ * Contact: renewaire@saritasa.com
9608
+ *
9609
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9610
+ * https://openapi-generator.tech
9611
+ * Do not edit the class manually.
9612
+ */
9613
+ /**
9614
+ * Project log type.<br />ProjectLogType<br />0 = StatusChange<br />1 = Save
9615
+ */
9616
+ var ProjectLogType;
9617
+ (function (ProjectLogType) {
9618
+ ProjectLogType["StatusChange"] = "StatusChange";
9619
+ ProjectLogType["Save"] = "Save";
9620
+ })(ProjectLogType || (ProjectLogType = {}));
9621
+
9506
9622
  /**
9507
9623
  * RenewAire CORES API
9508
9624
  *
@@ -10056,5 +10172,5 @@ function provideApi(configOrBasePath) {
10056
10172
  * Generated bundle index. Do not edit.
10057
10173
  */
10058
10174
 
10059
- export { APIS, AddressCountry, ApiModule, AshraeVersion, AuditEntity, AuditLogsApiService, AuthApiService, BASE_PATH, BuildingCategory, BuildingType, COLLECTION_FORMATS, Configuration, ConstructionOrderType, ControllerProgramReleaseType, ControllerProgramType, ControllerProgramsApiService, CoolingDesignBasis, DesignWeatherMode, FeedbackType, FeedbacksApiService, FileType, GroupCustomerType, GroupType, GroupsApiService, KnownContactsApiService, Language, LeadTimeType, LeadTimesApiService, MaintenanceApiService, OperationType, Permission, PermissionBundlesApiService, PermissionsApiService, ProjectBidStatusType, ProjectBidStatusesApiService, ProjectLinksApiService, ProjectNoteType, ProjectNotesApiService, ProjectRevisionsApiService, ProjectSharingAccessLevel, ProjectSharingApiService, ProjectStatus, ProjectStatusesApiService, ProjectsApiService, QualifiedSpecificationStatus, RegionLevel, RegionsApiService, RegistrationStatus, RepContactsApiService, RepSalesReportsApiService, RepTerritoriesApiService, RepTerritoryLocationsApiService, RsdRegionsApiService, S3ApiService, StaticFilesApiService, UnitSystem, UserStatus, UserTablesApiService, UsersApiService, UsersManagementApiService, provideApi };
10175
+ export { APIS, AddressCountry, ApiModule, AshraeVersion, AuditEntity, AuditLogsApiService, AuthApiService, BASE_PATH, BuildingCategory, BuildingType, COLLECTION_FORMATS, Configuration, ConstructionOrderType, ControllerProgramReleaseType, ControllerProgramType, ControllerProgramsApiService, CoolingDesignBasis, DesignWeatherMode, FeedbackType, FeedbacksApiService, FileType, GroupCustomerType, GroupType, GroupsApiService, KnownContactsApiService, Language, LeadTimeType, LeadTimesApiService, MaintenanceApiService, OperationType, Permission, PermissionBundlesApiService, PermissionsApiService, ProjectBidStatusType, ProjectBidStatusesApiService, ProjectLinksApiService, ProjectLogType, ProjectNoteType, ProjectNotesApiService, ProjectRevisionsApiService, ProjectSharingAccessLevel, ProjectSharingApiService, ProjectStatus, ProjectStatusesApiService, ProjectsApiService, QualifiedSpecificationStatus, RegionLevel, RegionsApiService, RegistrationStatus, RepContactsApiService, RepSalesReportsApiService, RepTerritoriesApiService, RepTerritoryLocationsApiService, RsdRegionsApiService, S3ApiService, StaticFilesApiService, UnitSystem, UserStatus, UserTablesApiService, UsersApiService, UsersManagementApiService, provideApi };
10060
10176
  //# sourceMappingURL=saritasa-renewaire-frontend-sdk.mjs.map