@saritasa/renewaire-frontend-sdk 0.124.0 → 0.126.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
|
@@ -2186,6 +2186,232 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.7", ngImpor
|
|
|
2186
2186
|
type: Optional
|
|
2187
2187
|
}] }] });
|
|
2188
2188
|
|
|
2189
|
+
/**
|
|
2190
|
+
* RenewAire CORES API
|
|
2191
|
+
*
|
|
2192
|
+
* Contact: renewaire@saritasa.com
|
|
2193
|
+
*
|
|
2194
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2195
|
+
* https://openapi-generator.tech
|
|
2196
|
+
* Do not edit the class manually.
|
|
2197
|
+
*/
|
|
2198
|
+
/* tslint:disable:no-unused-variable member-ordering */
|
|
2199
|
+
class ProjectLinksApiService extends BaseService {
|
|
2200
|
+
httpClient;
|
|
2201
|
+
constructor(httpClient, basePath, configuration) {
|
|
2202
|
+
super(basePath, configuration);
|
|
2203
|
+
this.httpClient = httpClient;
|
|
2204
|
+
}
|
|
2205
|
+
projectLinksCreateProjectLink(requestParameters, observe = "body", reportProgress = false, options) {
|
|
2206
|
+
const saveProjectLinkDto = requestParameters?.saveProjectLinkDto;
|
|
2207
|
+
let localVarHeaders = this.defaultHeaders;
|
|
2208
|
+
// authentication (Bearer) required
|
|
2209
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
2210
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
|
|
2211
|
+
this.configuration.selectHeaderAccept([
|
|
2212
|
+
"text/plain",
|
|
2213
|
+
"application/json",
|
|
2214
|
+
"text/json",
|
|
2215
|
+
]);
|
|
2216
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
2217
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
2218
|
+
}
|
|
2219
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
2220
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
2221
|
+
// to determine the Content-Type header
|
|
2222
|
+
const consumes = [
|
|
2223
|
+
"application/json-patch+json",
|
|
2224
|
+
"application/json",
|
|
2225
|
+
"text/json",
|
|
2226
|
+
"application/*+json",
|
|
2227
|
+
];
|
|
2228
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
2229
|
+
if (httpContentTypeSelected !== undefined) {
|
|
2230
|
+
localVarHeaders = localVarHeaders.set("Content-Type", httpContentTypeSelected);
|
|
2231
|
+
}
|
|
2232
|
+
let responseType_ = "json";
|
|
2233
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
2234
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
2235
|
+
responseType_ = "text";
|
|
2236
|
+
}
|
|
2237
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
2238
|
+
responseType_ = "json";
|
|
2239
|
+
}
|
|
2240
|
+
else {
|
|
2241
|
+
responseType_ = "blob";
|
|
2242
|
+
}
|
|
2243
|
+
}
|
|
2244
|
+
let localVarPath = `/api/project-links`;
|
|
2245
|
+
const { basePath, withCredentials } = this.configuration;
|
|
2246
|
+
return this.httpClient.request("post", `${basePath}${localVarPath}`, {
|
|
2247
|
+
context: localVarHttpContext,
|
|
2248
|
+
body: saveProjectLinkDto,
|
|
2249
|
+
responseType: responseType_,
|
|
2250
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
2251
|
+
headers: localVarHeaders,
|
|
2252
|
+
observe: observe,
|
|
2253
|
+
transferCache: localVarTransferCache,
|
|
2254
|
+
reportProgress: reportProgress,
|
|
2255
|
+
});
|
|
2256
|
+
}
|
|
2257
|
+
projectLinksRemoveProjectLink(requestParameters, observe = "body", reportProgress = false, options) {
|
|
2258
|
+
const projectLinkId = requestParameters?.projectLinkId;
|
|
2259
|
+
if (projectLinkId === null || projectLinkId === undefined) {
|
|
2260
|
+
throw new Error("Required parameter projectLinkId was null or undefined when calling projectLinksRemoveProjectLink.");
|
|
2261
|
+
}
|
|
2262
|
+
let localVarHeaders = this.defaultHeaders;
|
|
2263
|
+
// authentication (Bearer) required
|
|
2264
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
2265
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
|
2266
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
2267
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
2268
|
+
}
|
|
2269
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
2270
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
2271
|
+
let responseType_ = "json";
|
|
2272
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
2273
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
2274
|
+
responseType_ = "text";
|
|
2275
|
+
}
|
|
2276
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
2277
|
+
responseType_ = "json";
|
|
2278
|
+
}
|
|
2279
|
+
else {
|
|
2280
|
+
responseType_ = "blob";
|
|
2281
|
+
}
|
|
2282
|
+
}
|
|
2283
|
+
let localVarPath = `/api/project-links/${this.configuration.encodeParam({ name: "projectLinkId", value: projectLinkId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}`;
|
|
2284
|
+
const { basePath, withCredentials } = this.configuration;
|
|
2285
|
+
return this.httpClient.request("delete", `${basePath}${localVarPath}`, {
|
|
2286
|
+
context: localVarHttpContext,
|
|
2287
|
+
responseType: responseType_,
|
|
2288
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
2289
|
+
headers: localVarHeaders,
|
|
2290
|
+
observe: observe,
|
|
2291
|
+
transferCache: localVarTransferCache,
|
|
2292
|
+
reportProgress: reportProgress,
|
|
2293
|
+
});
|
|
2294
|
+
}
|
|
2295
|
+
projectLinksSearchProjectLinks(requestParameters, observe = "body", reportProgress = false, options) {
|
|
2296
|
+
const projectId = requestParameters?.projectId;
|
|
2297
|
+
if (projectId === null || projectId === undefined) {
|
|
2298
|
+
throw new Error("Required parameter projectId was null or undefined when calling projectLinksSearchProjectLinks.");
|
|
2299
|
+
}
|
|
2300
|
+
const orderBy = requestParameters?.orderBy;
|
|
2301
|
+
const page = requestParameters?.page;
|
|
2302
|
+
const pageSize = requestParameters?.pageSize;
|
|
2303
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
2304
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, projectId, "ProjectId");
|
|
2305
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, orderBy, "OrderBy");
|
|
2306
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, page, "Page");
|
|
2307
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, pageSize, "PageSize");
|
|
2308
|
+
let localVarHeaders = this.defaultHeaders;
|
|
2309
|
+
// authentication (Bearer) required
|
|
2310
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
2311
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
|
|
2312
|
+
this.configuration.selectHeaderAccept([
|
|
2313
|
+
"text/plain",
|
|
2314
|
+
"application/json",
|
|
2315
|
+
"text/json",
|
|
2316
|
+
]);
|
|
2317
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
2318
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
2319
|
+
}
|
|
2320
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
2321
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
2322
|
+
let responseType_ = "json";
|
|
2323
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
2324
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
2325
|
+
responseType_ = "text";
|
|
2326
|
+
}
|
|
2327
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
2328
|
+
responseType_ = "json";
|
|
2329
|
+
}
|
|
2330
|
+
else {
|
|
2331
|
+
responseType_ = "blob";
|
|
2332
|
+
}
|
|
2333
|
+
}
|
|
2334
|
+
let localVarPath = `/api/project-links`;
|
|
2335
|
+
const { basePath, withCredentials } = this.configuration;
|
|
2336
|
+
return this.httpClient.request("get", `${basePath}${localVarPath}`, {
|
|
2337
|
+
context: localVarHttpContext,
|
|
2338
|
+
params: localVarQueryParameters,
|
|
2339
|
+
responseType: responseType_,
|
|
2340
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
2341
|
+
headers: localVarHeaders,
|
|
2342
|
+
observe: observe,
|
|
2343
|
+
transferCache: localVarTransferCache,
|
|
2344
|
+
reportProgress: reportProgress,
|
|
2345
|
+
});
|
|
2346
|
+
}
|
|
2347
|
+
projectLinksUpdateProjectLink(requestParameters, observe = "body", reportProgress = false, options) {
|
|
2348
|
+
const projectLinkId = requestParameters?.projectLinkId;
|
|
2349
|
+
if (projectLinkId === null || projectLinkId === undefined) {
|
|
2350
|
+
throw new Error("Required parameter projectLinkId was null or undefined when calling projectLinksUpdateProjectLink.");
|
|
2351
|
+
}
|
|
2352
|
+
const saveProjectLinkDto = requestParameters?.saveProjectLinkDto;
|
|
2353
|
+
let localVarHeaders = this.defaultHeaders;
|
|
2354
|
+
// authentication (Bearer) required
|
|
2355
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
2356
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
|
2357
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
2358
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
2359
|
+
}
|
|
2360
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
2361
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
2362
|
+
// to determine the Content-Type header
|
|
2363
|
+
const consumes = [
|
|
2364
|
+
"application/json-patch+json",
|
|
2365
|
+
"application/json",
|
|
2366
|
+
"text/json",
|
|
2367
|
+
"application/*+json",
|
|
2368
|
+
];
|
|
2369
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
2370
|
+
if (httpContentTypeSelected !== undefined) {
|
|
2371
|
+
localVarHeaders = localVarHeaders.set("Content-Type", httpContentTypeSelected);
|
|
2372
|
+
}
|
|
2373
|
+
let responseType_ = "json";
|
|
2374
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
2375
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
2376
|
+
responseType_ = "text";
|
|
2377
|
+
}
|
|
2378
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
2379
|
+
responseType_ = "json";
|
|
2380
|
+
}
|
|
2381
|
+
else {
|
|
2382
|
+
responseType_ = "blob";
|
|
2383
|
+
}
|
|
2384
|
+
}
|
|
2385
|
+
let localVarPath = `/api/project-links/${this.configuration.encodeParam({ name: "projectLinkId", value: projectLinkId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}`;
|
|
2386
|
+
const { basePath, withCredentials } = this.configuration;
|
|
2387
|
+
return this.httpClient.request("put", `${basePath}${localVarPath}`, {
|
|
2388
|
+
context: localVarHttpContext,
|
|
2389
|
+
body: saveProjectLinkDto,
|
|
2390
|
+
responseType: responseType_,
|
|
2391
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
2392
|
+
headers: localVarHeaders,
|
|
2393
|
+
observe: observe,
|
|
2394
|
+
transferCache: localVarTransferCache,
|
|
2395
|
+
reportProgress: reportProgress,
|
|
2396
|
+
});
|
|
2397
|
+
}
|
|
2398
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.7", ngImport: i0, type: ProjectLinksApiService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2399
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.7", ngImport: i0, type: ProjectLinksApiService, providedIn: "root" });
|
|
2400
|
+
}
|
|
2401
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.7", ngImport: i0, type: ProjectLinksApiService, decorators: [{
|
|
2402
|
+
type: Injectable,
|
|
2403
|
+
args: [{
|
|
2404
|
+
providedIn: "root",
|
|
2405
|
+
}]
|
|
2406
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
2407
|
+
type: Optional
|
|
2408
|
+
}, {
|
|
2409
|
+
type: Inject,
|
|
2410
|
+
args: [BASE_PATH]
|
|
2411
|
+
}] }, { type: Configuration, decorators: [{
|
|
2412
|
+
type: Optional
|
|
2413
|
+
}] }] });
|
|
2414
|
+
|
|
2189
2415
|
/**
|
|
2190
2416
|
* RenewAire CORES API
|
|
2191
2417
|
*
|
|
@@ -7802,6 +8028,7 @@ const APIS = [
|
|
|
7802
8028
|
MaintenanceApiService,
|
|
7803
8029
|
PermissionBundlesApiService,
|
|
7804
8030
|
PermissionsApiService,
|
|
8031
|
+
ProjectLinksApiService,
|
|
7805
8032
|
ProjectNotesApiService,
|
|
7806
8033
|
ProjectStatusesApiService,
|
|
7807
8034
|
ProjectsApiService,
|
|
@@ -8496,6 +8723,16 @@ var Permission;
|
|
|
8496
8723
|
* Do not edit the class manually.
|
|
8497
8724
|
*/
|
|
8498
8725
|
|
|
8726
|
+
/**
|
|
8727
|
+
* RenewAire CORES API
|
|
8728
|
+
*
|
|
8729
|
+
* Contact: renewaire@saritasa.com
|
|
8730
|
+
*
|
|
8731
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
8732
|
+
* https://openapi-generator.tech
|
|
8733
|
+
* Do not edit the class manually.
|
|
8734
|
+
*/
|
|
8735
|
+
|
|
8499
8736
|
/**
|
|
8500
8737
|
* RenewAire CORES API
|
|
8501
8738
|
*
|
|
@@ -8560,6 +8797,27 @@ var ProjectStatus;
|
|
|
8560
8797
|
ProjectStatus["Archived"] = "Archived";
|
|
8561
8798
|
})(ProjectStatus || (ProjectStatus = {}));
|
|
8562
8799
|
|
|
8800
|
+
/**
|
|
8801
|
+
* RenewAire CORES API
|
|
8802
|
+
*
|
|
8803
|
+
* Contact: renewaire@saritasa.com
|
|
8804
|
+
*
|
|
8805
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
8806
|
+
* https://openapi-generator.tech
|
|
8807
|
+
* Do not edit the class manually.
|
|
8808
|
+
*/
|
|
8809
|
+
/**
|
|
8810
|
+
* QS status.<br />QualifiedSpecificationStatus<br />0 = Approved<br />1 = ApprovedNoDiscount<br />2 = MoreInfoNeeded<br />3 = Rejected<br />4 = Cancelled
|
|
8811
|
+
*/
|
|
8812
|
+
var QualifiedSpecificationStatus;
|
|
8813
|
+
(function (QualifiedSpecificationStatus) {
|
|
8814
|
+
QualifiedSpecificationStatus["Approved"] = "Approved";
|
|
8815
|
+
QualifiedSpecificationStatus["ApprovedNoDiscount"] = "ApprovedNoDiscount";
|
|
8816
|
+
QualifiedSpecificationStatus["MoreInfoNeeded"] = "MoreInfoNeeded";
|
|
8817
|
+
QualifiedSpecificationStatus["Rejected"] = "Rejected";
|
|
8818
|
+
QualifiedSpecificationStatus["Cancelled"] = "Cancelled";
|
|
8819
|
+
})(QualifiedSpecificationStatus || (QualifiedSpecificationStatus = {}));
|
|
8820
|
+
|
|
8563
8821
|
/**
|
|
8564
8822
|
* RenewAire CORES API
|
|
8565
8823
|
*
|
|
@@ -8821,6 +9079,16 @@ var RegistrationStatus;
|
|
|
8821
9079
|
* Do not edit the class manually.
|
|
8822
9080
|
*/
|
|
8823
9081
|
|
|
9082
|
+
/**
|
|
9083
|
+
* RenewAire CORES API
|
|
9084
|
+
*
|
|
9085
|
+
* Contact: renewaire@saritasa.com
|
|
9086
|
+
*
|
|
9087
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9088
|
+
* https://openapi-generator.tech
|
|
9089
|
+
* Do not edit the class manually.
|
|
9090
|
+
*/
|
|
9091
|
+
|
|
8824
9092
|
/**
|
|
8825
9093
|
* RenewAire CORES API
|
|
8826
9094
|
*
|
|
@@ -8980,5 +9248,5 @@ function provideApi(configOrBasePath) {
|
|
|
8980
9248
|
* Generated bundle index. Do not edit.
|
|
8981
9249
|
*/
|
|
8982
9250
|
|
|
8983
|
-
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, ProjectNoteType, ProjectNotesApiService, ProjectStatus, ProjectStatusesApiService, ProjectsApiService, RegionLevel, RegionsApiService, RegistrationStatus, RepContactsApiService, RepSalesReportsApiService, RepTerritoriesApiService, RepTerritoryLocationsApiService, RsdRegionsApiService, S3ApiService, StaticFilesApiService, UnitSystem, UserStatus, UserTablesApiService, UsersApiService, UsersManagementApiService, provideApi };
|
|
9251
|
+
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, ProjectLinksApiService, ProjectNoteType, ProjectNotesApiService, ProjectStatus, ProjectStatusesApiService, ProjectsApiService, QualifiedSpecificationStatus, RegionLevel, RegionsApiService, RegistrationStatus, RepContactsApiService, RepSalesReportsApiService, RepTerritoriesApiService, RepTerritoryLocationsApiService, RsdRegionsApiService, S3ApiService, StaticFilesApiService, UnitSystem, UserStatus, UserTablesApiService, UsersApiService, UsersManagementApiService, provideApi };
|
|
8984
9252
|
//# sourceMappingURL=saritasa-renewaire-frontend-sdk.mjs.map
|