@saritasa/renewaire-frontend-sdk 0.123.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
|
*
|
|
@@ -2208,6 +2382,8 @@ class ProjectNotesApiService extends BaseService {
|
|
|
2208
2382
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
2209
2383
|
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, projectRevisionId, "projectRevisionId");
|
|
2210
2384
|
let localVarHeaders = this.defaultHeaders;
|
|
2385
|
+
// authentication (Bearer) required
|
|
2386
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
2211
2387
|
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
|
|
2212
2388
|
this.configuration.selectHeaderAccept([
|
|
2213
2389
|
"text/plain",
|
|
@@ -2256,12 +2432,98 @@ class ProjectNotesApiService extends BaseService {
|
|
|
2256
2432
|
reportProgress: reportProgress,
|
|
2257
2433
|
});
|
|
2258
2434
|
}
|
|
2435
|
+
projectNotesGetProjectNoteAttachmentDownloadUrl(requestParameters, observe = "body", reportProgress = false, options) {
|
|
2436
|
+
const projectNoteId = requestParameters?.projectNoteId;
|
|
2437
|
+
if (projectNoteId === null || projectNoteId === undefined) {
|
|
2438
|
+
throw new Error("Required parameter projectNoteId was null or undefined when calling projectNotesGetProjectNoteAttachmentDownloadUrl.");
|
|
2439
|
+
}
|
|
2440
|
+
const attachmentId = requestParameters?.attachmentId;
|
|
2441
|
+
if (attachmentId === null || attachmentId === undefined) {
|
|
2442
|
+
throw new Error("Required parameter attachmentId was null or undefined when calling projectNotesGetProjectNoteAttachmentDownloadUrl.");
|
|
2443
|
+
}
|
|
2444
|
+
let localVarHeaders = this.defaultHeaders;
|
|
2445
|
+
// authentication (Bearer) required
|
|
2446
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
2447
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
|
2448
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
2449
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
2450
|
+
}
|
|
2451
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
2452
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
2453
|
+
let responseType_ = "json";
|
|
2454
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
2455
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
2456
|
+
responseType_ = "text";
|
|
2457
|
+
}
|
|
2458
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
2459
|
+
responseType_ = "json";
|
|
2460
|
+
}
|
|
2461
|
+
else {
|
|
2462
|
+
responseType_ = "blob";
|
|
2463
|
+
}
|
|
2464
|
+
}
|
|
2465
|
+
let localVarPath = `/api/project-notes/${this.configuration.encodeParam({ name: "projectNoteId", value: projectNoteId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}/documents/${this.configuration.encodeParam({ name: "attachmentId", value: attachmentId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}/download-url`;
|
|
2466
|
+
const { basePath, withCredentials } = this.configuration;
|
|
2467
|
+
return this.httpClient.request("get", `${basePath}${localVarPath}`, {
|
|
2468
|
+
context: localVarHttpContext,
|
|
2469
|
+
responseType: responseType_,
|
|
2470
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
2471
|
+
headers: localVarHeaders,
|
|
2472
|
+
observe: observe,
|
|
2473
|
+
transferCache: localVarTransferCache,
|
|
2474
|
+
reportProgress: reportProgress,
|
|
2475
|
+
});
|
|
2476
|
+
}
|
|
2477
|
+
projectNotesGetProjectNoteAttachmentPreview(requestParameters, observe = "body", reportProgress = false, options) {
|
|
2478
|
+
const projectNoteId = requestParameters?.projectNoteId;
|
|
2479
|
+
if (projectNoteId === null || projectNoteId === undefined) {
|
|
2480
|
+
throw new Error("Required parameter projectNoteId was null or undefined when calling projectNotesGetProjectNoteAttachmentPreview.");
|
|
2481
|
+
}
|
|
2482
|
+
const attachmentId = requestParameters?.attachmentId;
|
|
2483
|
+
if (attachmentId === null || attachmentId === undefined) {
|
|
2484
|
+
throw new Error("Required parameter attachmentId was null or undefined when calling projectNotesGetProjectNoteAttachmentPreview.");
|
|
2485
|
+
}
|
|
2486
|
+
let localVarHeaders = this.defaultHeaders;
|
|
2487
|
+
// authentication (Bearer) required
|
|
2488
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
2489
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
|
2490
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
2491
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
2492
|
+
}
|
|
2493
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
2494
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
2495
|
+
let responseType_ = "json";
|
|
2496
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
2497
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
2498
|
+
responseType_ = "text";
|
|
2499
|
+
}
|
|
2500
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
2501
|
+
responseType_ = "json";
|
|
2502
|
+
}
|
|
2503
|
+
else {
|
|
2504
|
+
responseType_ = "blob";
|
|
2505
|
+
}
|
|
2506
|
+
}
|
|
2507
|
+
let localVarPath = `/api/project-notes/${this.configuration.encodeParam({ name: "projectNoteId", value: projectNoteId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}/documents/${this.configuration.encodeParam({ name: "attachmentId", value: attachmentId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}/preview`;
|
|
2508
|
+
const { basePath, withCredentials } = this.configuration;
|
|
2509
|
+
return this.httpClient.request("get", `${basePath}${localVarPath}`, {
|
|
2510
|
+
context: localVarHttpContext,
|
|
2511
|
+
responseType: responseType_,
|
|
2512
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
2513
|
+
headers: localVarHeaders,
|
|
2514
|
+
observe: observe,
|
|
2515
|
+
transferCache: localVarTransferCache,
|
|
2516
|
+
reportProgress: reportProgress,
|
|
2517
|
+
});
|
|
2518
|
+
}
|
|
2259
2519
|
projectNotesRemoveProjectNote(requestParameters, observe = "body", reportProgress = false, options) {
|
|
2260
2520
|
const projectNoteId = requestParameters?.projectNoteId;
|
|
2261
2521
|
if (projectNoteId === null || projectNoteId === undefined) {
|
|
2262
2522
|
throw new Error("Required parameter projectNoteId was null or undefined when calling projectNotesRemoveProjectNote.");
|
|
2263
2523
|
}
|
|
2264
2524
|
let localVarHeaders = this.defaultHeaders;
|
|
2525
|
+
// authentication (Bearer) required
|
|
2526
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
2265
2527
|
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
|
2266
2528
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
2267
2529
|
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
@@ -2292,6 +2554,61 @@ class ProjectNotesApiService extends BaseService {
|
|
|
2292
2554
|
reportProgress: reportProgress,
|
|
2293
2555
|
});
|
|
2294
2556
|
}
|
|
2557
|
+
projectNotesSearchProjects(requestParameters, observe = "body", reportProgress = false, options) {
|
|
2558
|
+
const projectRevisionId = requestParameters?.projectRevisionId;
|
|
2559
|
+
const text = requestParameters?.text;
|
|
2560
|
+
const type = requestParameters?.type;
|
|
2561
|
+
const createdAt = requestParameters?.createdAt;
|
|
2562
|
+
const orderBy = requestParameters?.orderBy;
|
|
2563
|
+
const page = requestParameters?.page;
|
|
2564
|
+
const pageSize = requestParameters?.pageSize;
|
|
2565
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
2566
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, projectRevisionId, "ProjectRevisionId");
|
|
2567
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, text, "Text");
|
|
2568
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, type, "Type");
|
|
2569
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, createdAt, "CreatedAt");
|
|
2570
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, orderBy, "OrderBy");
|
|
2571
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, page, "Page");
|
|
2572
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, pageSize, "PageSize");
|
|
2573
|
+
let localVarHeaders = this.defaultHeaders;
|
|
2574
|
+
// authentication (Bearer) required
|
|
2575
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
2576
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
|
|
2577
|
+
this.configuration.selectHeaderAccept([
|
|
2578
|
+
"text/plain",
|
|
2579
|
+
"application/json",
|
|
2580
|
+
"text/json",
|
|
2581
|
+
]);
|
|
2582
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
2583
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
2584
|
+
}
|
|
2585
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
2586
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
2587
|
+
let responseType_ = "json";
|
|
2588
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
2589
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
2590
|
+
responseType_ = "text";
|
|
2591
|
+
}
|
|
2592
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
2593
|
+
responseType_ = "json";
|
|
2594
|
+
}
|
|
2595
|
+
else {
|
|
2596
|
+
responseType_ = "blob";
|
|
2597
|
+
}
|
|
2598
|
+
}
|
|
2599
|
+
let localVarPath = `/api/project-notes`;
|
|
2600
|
+
const { basePath, withCredentials } = this.configuration;
|
|
2601
|
+
return this.httpClient.request("get", `${basePath}${localVarPath}`, {
|
|
2602
|
+
context: localVarHttpContext,
|
|
2603
|
+
params: localVarQueryParameters,
|
|
2604
|
+
responseType: responseType_,
|
|
2605
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
2606
|
+
headers: localVarHeaders,
|
|
2607
|
+
observe: observe,
|
|
2608
|
+
transferCache: localVarTransferCache,
|
|
2609
|
+
reportProgress: reportProgress,
|
|
2610
|
+
});
|
|
2611
|
+
}
|
|
2295
2612
|
projectNotesUpdateProjectNote(requestParameters, observe = "body", reportProgress = false, options) {
|
|
2296
2613
|
const projectNoteId = requestParameters?.projectNoteId;
|
|
2297
2614
|
if (projectNoteId === null || projectNoteId === undefined) {
|
|
@@ -2299,6 +2616,8 @@ class ProjectNotesApiService extends BaseService {
|
|
|
2299
2616
|
}
|
|
2300
2617
|
const updateProjectNoteDto = requestParameters?.updateProjectNoteDto;
|
|
2301
2618
|
let localVarHeaders = this.defaultHeaders;
|
|
2619
|
+
// authentication (Bearer) required
|
|
2620
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
2302
2621
|
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
|
2303
2622
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
2304
2623
|
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
@@ -7657,6 +7976,7 @@ const APIS = [
|
|
|
7657
7976
|
MaintenanceApiService,
|
|
7658
7977
|
PermissionBundlesApiService,
|
|
7659
7978
|
PermissionsApiService,
|
|
7979
|
+
ProjectLinksApiService,
|
|
7660
7980
|
ProjectNotesApiService,
|
|
7661
7981
|
ProjectStatusesApiService,
|
|
7662
7982
|
ProjectsApiService,
|
|
@@ -8351,6 +8671,16 @@ var Permission;
|
|
|
8351
8671
|
* Do not edit the class manually.
|
|
8352
8672
|
*/
|
|
8353
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
|
+
|
|
8354
8684
|
/**
|
|
8355
8685
|
* RenewAire CORES API
|
|
8356
8686
|
*
|
|
@@ -8361,11 +8691,11 @@ var Permission;
|
|
|
8361
8691
|
* Do not edit the class manually.
|
|
8362
8692
|
*/
|
|
8363
8693
|
/**
|
|
8364
|
-
* Note type.<br />ProjectNoteType<br />0 =
|
|
8694
|
+
* Note type.<br />ProjectNoteType<br />0 = Project<br />1 = QualifiedSpecification<br />2 = Internal<br />3 = SalesChannel
|
|
8365
8695
|
*/
|
|
8366
8696
|
var ProjectNoteType;
|
|
8367
8697
|
(function (ProjectNoteType) {
|
|
8368
|
-
ProjectNoteType["
|
|
8698
|
+
ProjectNoteType["Project"] = "Project";
|
|
8369
8699
|
ProjectNoteType["QualifiedSpecification"] = "QualifiedSpecification";
|
|
8370
8700
|
ProjectNoteType["Internal"] = "Internal";
|
|
8371
8701
|
ProjectNoteType["SalesChannel"] = "SalesChannel";
|
|
@@ -8676,6 +9006,16 @@ var RegistrationStatus;
|
|
|
8676
9006
|
* Do not edit the class manually.
|
|
8677
9007
|
*/
|
|
8678
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
|
+
|
|
8679
9019
|
/**
|
|
8680
9020
|
* RenewAire CORES API
|
|
8681
9021
|
*
|
|
@@ -8835,5 +9175,5 @@ function provideApi(configOrBasePath) {
|
|
|
8835
9175
|
* Generated bundle index. Do not edit.
|
|
8836
9176
|
*/
|
|
8837
9177
|
|
|
8838
|
-
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 };
|
|
8839
9179
|
//# sourceMappingURL=saritasa-renewaire-frontend-sdk.mjs.map
|