@saritasa/renewaire-frontend-sdk 0.112.0 → 0.114.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 +2 -2
- package/fesm2022/saritasa-renewaire-frontend-sdk.mjs +50 -125
- package/fesm2022/saritasa-renewaire-frontend-sdk.mjs.map +1 -1
- package/index.d.ts +280 -239
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -5197,129 +5197,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.6", ngImpor
|
|
|
5197
5197
|
type: Optional
|
|
5198
5198
|
}] }] });
|
|
5199
5199
|
|
|
5200
|
-
/**
|
|
5201
|
-
* RenewAire CORES API
|
|
5202
|
-
*
|
|
5203
|
-
* Contact: renewaire@saritasa.com
|
|
5204
|
-
*
|
|
5205
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
5206
|
-
* https://openapi-generator.tech
|
|
5207
|
-
* Do not edit the class manually.
|
|
5208
|
-
*/
|
|
5209
|
-
/* tslint:disable:no-unused-variable member-ordering */
|
|
5210
|
-
class UserDesignConditionsApiService extends BaseService {
|
|
5211
|
-
httpClient;
|
|
5212
|
-
constructor(httpClient, basePath, configuration) {
|
|
5213
|
-
super(basePath, configuration);
|
|
5214
|
-
this.httpClient = httpClient;
|
|
5215
|
-
}
|
|
5216
|
-
userDesignConditionsGetProjectDesignConditions(requestParameters, observe = "body", reportProgress = false, options) {
|
|
5217
|
-
const userId = requestParameters?.userId;
|
|
5218
|
-
if (userId === null || userId === undefined) {
|
|
5219
|
-
throw new Error("Required parameter userId was null or undefined when calling userDesignConditionsGetProjectDesignConditions.");
|
|
5220
|
-
}
|
|
5221
|
-
let localVarHeaders = this.defaultHeaders;
|
|
5222
|
-
// authentication (Bearer) required
|
|
5223
|
-
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
5224
|
-
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
|
|
5225
|
-
this.configuration.selectHeaderAccept([
|
|
5226
|
-
"text/plain",
|
|
5227
|
-
"application/json",
|
|
5228
|
-
"text/json",
|
|
5229
|
-
]);
|
|
5230
|
-
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
5231
|
-
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
5232
|
-
}
|
|
5233
|
-
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
5234
|
-
const localVarTransferCache = options?.transferCache ?? true;
|
|
5235
|
-
let responseType_ = "json";
|
|
5236
|
-
if (localVarHttpHeaderAcceptSelected) {
|
|
5237
|
-
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
5238
|
-
responseType_ = "text";
|
|
5239
|
-
}
|
|
5240
|
-
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
5241
|
-
responseType_ = "json";
|
|
5242
|
-
}
|
|
5243
|
-
else {
|
|
5244
|
-
responseType_ = "blob";
|
|
5245
|
-
}
|
|
5246
|
-
}
|
|
5247
|
-
let localVarPath = `/api/users/design-conditions/${this.configuration.encodeParam({ name: "userId", value: userId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}`;
|
|
5248
|
-
const { basePath, withCredentials } = this.configuration;
|
|
5249
|
-
return this.httpClient.request("get", `${basePath}${localVarPath}`, {
|
|
5250
|
-
context: localVarHttpContext,
|
|
5251
|
-
responseType: responseType_,
|
|
5252
|
-
...(withCredentials ? { withCredentials } : {}),
|
|
5253
|
-
headers: localVarHeaders,
|
|
5254
|
-
observe: observe,
|
|
5255
|
-
transferCache: localVarTransferCache,
|
|
5256
|
-
reportProgress: reportProgress,
|
|
5257
|
-
});
|
|
5258
|
-
}
|
|
5259
|
-
userDesignConditionsSaveProjectDesignConditions(requestParameters, observe = "body", reportProgress = false, options) {
|
|
5260
|
-
const saveUserDesignConditionsDto = requestParameters?.saveUserDesignConditionsDto;
|
|
5261
|
-
let localVarHeaders = this.defaultHeaders;
|
|
5262
|
-
// authentication (Bearer) required
|
|
5263
|
-
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
5264
|
-
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
|
5265
|
-
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
5266
|
-
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
5267
|
-
}
|
|
5268
|
-
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
5269
|
-
const localVarTransferCache = options?.transferCache ?? true;
|
|
5270
|
-
// to determine the Content-Type header
|
|
5271
|
-
const consumes = [
|
|
5272
|
-
"application/json-patch+json",
|
|
5273
|
-
"application/json",
|
|
5274
|
-
"text/json",
|
|
5275
|
-
"application/*+json",
|
|
5276
|
-
];
|
|
5277
|
-
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
5278
|
-
if (httpContentTypeSelected !== undefined) {
|
|
5279
|
-
localVarHeaders = localVarHeaders.set("Content-Type", httpContentTypeSelected);
|
|
5280
|
-
}
|
|
5281
|
-
let responseType_ = "json";
|
|
5282
|
-
if (localVarHttpHeaderAcceptSelected) {
|
|
5283
|
-
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
5284
|
-
responseType_ = "text";
|
|
5285
|
-
}
|
|
5286
|
-
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
5287
|
-
responseType_ = "json";
|
|
5288
|
-
}
|
|
5289
|
-
else {
|
|
5290
|
-
responseType_ = "blob";
|
|
5291
|
-
}
|
|
5292
|
-
}
|
|
5293
|
-
let localVarPath = `/api/users/design-conditions`;
|
|
5294
|
-
const { basePath, withCredentials } = this.configuration;
|
|
5295
|
-
return this.httpClient.request("post", `${basePath}${localVarPath}`, {
|
|
5296
|
-
context: localVarHttpContext,
|
|
5297
|
-
body: saveUserDesignConditionsDto,
|
|
5298
|
-
responseType: responseType_,
|
|
5299
|
-
...(withCredentials ? { withCredentials } : {}),
|
|
5300
|
-
headers: localVarHeaders,
|
|
5301
|
-
observe: observe,
|
|
5302
|
-
transferCache: localVarTransferCache,
|
|
5303
|
-
reportProgress: reportProgress,
|
|
5304
|
-
});
|
|
5305
|
-
}
|
|
5306
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: UserDesignConditionsApiService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5307
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: UserDesignConditionsApiService, providedIn: "root" });
|
|
5308
|
-
}
|
|
5309
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: UserDesignConditionsApiService, decorators: [{
|
|
5310
|
-
type: Injectable,
|
|
5311
|
-
args: [{
|
|
5312
|
-
providedIn: "root",
|
|
5313
|
-
}]
|
|
5314
|
-
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
5315
|
-
type: Optional
|
|
5316
|
-
}, {
|
|
5317
|
-
type: Inject,
|
|
5318
|
-
args: [BASE_PATH]
|
|
5319
|
-
}] }, { type: Configuration, decorators: [{
|
|
5320
|
-
type: Optional
|
|
5321
|
-
}] }] });
|
|
5322
|
-
|
|
5323
5200
|
/**
|
|
5324
5201
|
* RenewAire CORES API
|
|
5325
5202
|
*
|
|
@@ -6447,6 +6324,55 @@ class UsersApiService extends BaseService {
|
|
|
6447
6324
|
reportProgress: reportProgress,
|
|
6448
6325
|
});
|
|
6449
6326
|
}
|
|
6327
|
+
usersUpdateUserDesignConditions(requestParameters, observe = "body", reportProgress = false, options) {
|
|
6328
|
+
const userId = requestParameters?.userId;
|
|
6329
|
+
if (userId === null || userId === undefined) {
|
|
6330
|
+
throw new Error("Required parameter userId was null or undefined when calling usersUpdateUserDesignConditions.");
|
|
6331
|
+
}
|
|
6332
|
+
const saveUserDesignConditionsDto = requestParameters?.saveUserDesignConditionsDto;
|
|
6333
|
+
let localVarHeaders = this.defaultHeaders;
|
|
6334
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
|
6335
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
6336
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
6337
|
+
}
|
|
6338
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
6339
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
6340
|
+
// to determine the Content-Type header
|
|
6341
|
+
const consumes = [
|
|
6342
|
+
"application/json-patch+json",
|
|
6343
|
+
"application/json",
|
|
6344
|
+
"text/json",
|
|
6345
|
+
"application/*+json",
|
|
6346
|
+
];
|
|
6347
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
6348
|
+
if (httpContentTypeSelected !== undefined) {
|
|
6349
|
+
localVarHeaders = localVarHeaders.set("Content-Type", httpContentTypeSelected);
|
|
6350
|
+
}
|
|
6351
|
+
let responseType_ = "json";
|
|
6352
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
6353
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
6354
|
+
responseType_ = "text";
|
|
6355
|
+
}
|
|
6356
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
6357
|
+
responseType_ = "json";
|
|
6358
|
+
}
|
|
6359
|
+
else {
|
|
6360
|
+
responseType_ = "blob";
|
|
6361
|
+
}
|
|
6362
|
+
}
|
|
6363
|
+
let localVarPath = `/api/users/${this.configuration.encodeParam({ name: "userId", value: userId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}/settings/design-conditions`;
|
|
6364
|
+
const { basePath, withCredentials } = this.configuration;
|
|
6365
|
+
return this.httpClient.request("put", `${basePath}${localVarPath}`, {
|
|
6366
|
+
context: localVarHttpContext,
|
|
6367
|
+
body: saveUserDesignConditionsDto,
|
|
6368
|
+
responseType: responseType_,
|
|
6369
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
6370
|
+
headers: localVarHeaders,
|
|
6371
|
+
observe: observe,
|
|
6372
|
+
transferCache: localVarTransferCache,
|
|
6373
|
+
reportProgress: reportProgress,
|
|
6374
|
+
});
|
|
6375
|
+
}
|
|
6450
6376
|
usersUpdateUserDetails(requestParameters, observe = "body", reportProgress = false, options) {
|
|
6451
6377
|
const userId = requestParameters?.userId;
|
|
6452
6378
|
if (userId === null || userId === undefined) {
|
|
@@ -7492,7 +7418,6 @@ const APIS = [
|
|
|
7492
7418
|
RsdRegionsApiService,
|
|
7493
7419
|
S3ApiService,
|
|
7494
7420
|
StaticFilesApiService,
|
|
7495
|
-
UserDesignConditionsApiService,
|
|
7496
7421
|
UserTablesApiService,
|
|
7497
7422
|
UsersApiService,
|
|
7498
7423
|
UsersManagementApiService,
|
|
@@ -8618,5 +8543,5 @@ function provideApi(configOrBasePath) {
|
|
|
8618
8543
|
* Generated bundle index. Do not edit.
|
|
8619
8544
|
*/
|
|
8620
8545
|
|
|
8621
|
-
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, ProjectStatus, ProjectStatusesApiService, ProjectsApiService, RegionLevel, RegionsApiService, RegistrationStatus, RepContactsApiService, RepSalesReportsApiService, RepTerritoriesApiService, RepTerritoryLocationsApiService, RsdRegionsApiService, S3ApiService, StaticFilesApiService, UnitSystem,
|
|
8546
|
+
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, ProjectStatus, ProjectStatusesApiService, ProjectsApiService, RegionLevel, RegionsApiService, RegistrationStatus, RepContactsApiService, RepSalesReportsApiService, RepTerritoriesApiService, RepTerritoryLocationsApiService, RsdRegionsApiService, S3ApiService, StaticFilesApiService, UnitSystem, UserStatus, UserTablesApiService, UsersApiService, UsersManagementApiService, provideApi };
|
|
8622
8547
|
//# sourceMappingURL=saritasa-renewaire-frontend-sdk.mjs.map
|