@saritasa/renewaire-frontend-sdk 0.124.0 → 0.125.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,180 @@ 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
|
+
projectLinksUpdateProjectLink(requestParameters, observe = "body", reportProgress = false, options) {
|
|
2296
|
+
const projectLinkId = requestParameters?.projectLinkId;
|
|
2297
|
+
if (projectLinkId === null || projectLinkId === undefined) {
|
|
2298
|
+
throw new Error("Required parameter projectLinkId was null or undefined when calling projectLinksUpdateProjectLink.");
|
|
2299
|
+
}
|
|
2300
|
+
const saveProjectLinkDto = requestParameters?.saveProjectLinkDto;
|
|
2301
|
+
let localVarHeaders = this.defaultHeaders;
|
|
2302
|
+
// authentication (Bearer) required
|
|
2303
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
2304
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
|
2305
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
2306
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
2307
|
+
}
|
|
2308
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
2309
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
2310
|
+
// to determine the Content-Type header
|
|
2311
|
+
const consumes = [
|
|
2312
|
+
"application/json-patch+json",
|
|
2313
|
+
"application/json",
|
|
2314
|
+
"text/json",
|
|
2315
|
+
"application/*+json",
|
|
2316
|
+
];
|
|
2317
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
2318
|
+
if (httpContentTypeSelected !== undefined) {
|
|
2319
|
+
localVarHeaders = localVarHeaders.set("Content-Type", httpContentTypeSelected);
|
|
2320
|
+
}
|
|
2321
|
+
let responseType_ = "json";
|
|
2322
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
2323
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
2324
|
+
responseType_ = "text";
|
|
2325
|
+
}
|
|
2326
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
2327
|
+
responseType_ = "json";
|
|
2328
|
+
}
|
|
2329
|
+
else {
|
|
2330
|
+
responseType_ = "blob";
|
|
2331
|
+
}
|
|
2332
|
+
}
|
|
2333
|
+
let localVarPath = `/api/project-links/${this.configuration.encodeParam({ name: "projectLinkId", value: projectLinkId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}`;
|
|
2334
|
+
const { basePath, withCredentials } = this.configuration;
|
|
2335
|
+
return this.httpClient.request("put", `${basePath}${localVarPath}`, {
|
|
2336
|
+
context: localVarHttpContext,
|
|
2337
|
+
body: saveProjectLinkDto,
|
|
2338
|
+
responseType: responseType_,
|
|
2339
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
2340
|
+
headers: localVarHeaders,
|
|
2341
|
+
observe: observe,
|
|
2342
|
+
transferCache: localVarTransferCache,
|
|
2343
|
+
reportProgress: reportProgress,
|
|
2344
|
+
});
|
|
2345
|
+
}
|
|
2346
|
+
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 });
|
|
2347
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.7", ngImport: i0, type: ProjectLinksApiService, providedIn: "root" });
|
|
2348
|
+
}
|
|
2349
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.7", ngImport: i0, type: ProjectLinksApiService, decorators: [{
|
|
2350
|
+
type: Injectable,
|
|
2351
|
+
args: [{
|
|
2352
|
+
providedIn: "root",
|
|
2353
|
+
}]
|
|
2354
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
2355
|
+
type: Optional
|
|
2356
|
+
}, {
|
|
2357
|
+
type: Inject,
|
|
2358
|
+
args: [BASE_PATH]
|
|
2359
|
+
}] }, { type: Configuration, decorators: [{
|
|
2360
|
+
type: Optional
|
|
2361
|
+
}] }] });
|
|
2362
|
+
|
|
2189
2363
|
/**
|
|
2190
2364
|
* RenewAire CORES API
|
|
2191
2365
|
*
|
|
@@ -7802,6 +7976,7 @@ const APIS = [
|
|
|
7802
7976
|
MaintenanceApiService,
|
|
7803
7977
|
PermissionBundlesApiService,
|
|
7804
7978
|
PermissionsApiService,
|
|
7979
|
+
ProjectLinksApiService,
|
|
7805
7980
|
ProjectNotesApiService,
|
|
7806
7981
|
ProjectStatusesApiService,
|
|
7807
7982
|
ProjectsApiService,
|
|
@@ -8496,6 +8671,16 @@ var Permission;
|
|
|
8496
8671
|
* Do not edit the class manually.
|
|
8497
8672
|
*/
|
|
8498
8673
|
|
|
8674
|
+
/**
|
|
8675
|
+
* RenewAire CORES API
|
|
8676
|
+
*
|
|
8677
|
+
* Contact: renewaire@saritasa.com
|
|
8678
|
+
*
|
|
8679
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
8680
|
+
* https://openapi-generator.tech
|
|
8681
|
+
* Do not edit the class manually.
|
|
8682
|
+
*/
|
|
8683
|
+
|
|
8499
8684
|
/**
|
|
8500
8685
|
* RenewAire CORES API
|
|
8501
8686
|
*
|
|
@@ -8821,6 +9006,16 @@ var RegistrationStatus;
|
|
|
8821
9006
|
* Do not edit the class manually.
|
|
8822
9007
|
*/
|
|
8823
9008
|
|
|
9009
|
+
/**
|
|
9010
|
+
* RenewAire CORES API
|
|
9011
|
+
*
|
|
9012
|
+
* Contact: renewaire@saritasa.com
|
|
9013
|
+
*
|
|
9014
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9015
|
+
* https://openapi-generator.tech
|
|
9016
|
+
* Do not edit the class manually.
|
|
9017
|
+
*/
|
|
9018
|
+
|
|
8824
9019
|
/**
|
|
8825
9020
|
* RenewAire CORES API
|
|
8826
9021
|
*
|
|
@@ -8980,5 +9175,5 @@ function provideApi(configOrBasePath) {
|
|
|
8980
9175
|
* Generated bundle index. Do not edit.
|
|
8981
9176
|
*/
|
|
8982
9177
|
|
|
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 };
|
|
9178
|
+
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, RegionLevel, RegionsApiService, RegistrationStatus, RepContactsApiService, RepSalesReportsApiService, RepTerritoriesApiService, RepTerritoryLocationsApiService, RsdRegionsApiService, S3ApiService, StaticFilesApiService, UnitSystem, UserStatus, UserTablesApiService, UsersApiService, UsersManagementApiService, provideApi };
|
|
8984
9179
|
//# sourceMappingURL=saritasa-renewaire-frontend-sdk.mjs.map
|