@saritasa/renewaire-frontend-sdk 0.123.0 → 0.124.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
|
@@ -2208,6 +2208,8 @@ class ProjectNotesApiService extends BaseService {
|
|
|
2208
2208
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
2209
2209
|
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, projectRevisionId, "projectRevisionId");
|
|
2210
2210
|
let localVarHeaders = this.defaultHeaders;
|
|
2211
|
+
// authentication (Bearer) required
|
|
2212
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
2211
2213
|
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
|
|
2212
2214
|
this.configuration.selectHeaderAccept([
|
|
2213
2215
|
"text/plain",
|
|
@@ -2256,12 +2258,98 @@ class ProjectNotesApiService extends BaseService {
|
|
|
2256
2258
|
reportProgress: reportProgress,
|
|
2257
2259
|
});
|
|
2258
2260
|
}
|
|
2261
|
+
projectNotesGetProjectNoteAttachmentDownloadUrl(requestParameters, observe = "body", reportProgress = false, options) {
|
|
2262
|
+
const projectNoteId = requestParameters?.projectNoteId;
|
|
2263
|
+
if (projectNoteId === null || projectNoteId === undefined) {
|
|
2264
|
+
throw new Error("Required parameter projectNoteId was null or undefined when calling projectNotesGetProjectNoteAttachmentDownloadUrl.");
|
|
2265
|
+
}
|
|
2266
|
+
const attachmentId = requestParameters?.attachmentId;
|
|
2267
|
+
if (attachmentId === null || attachmentId === undefined) {
|
|
2268
|
+
throw new Error("Required parameter attachmentId was null or undefined when calling projectNotesGetProjectNoteAttachmentDownloadUrl.");
|
|
2269
|
+
}
|
|
2270
|
+
let localVarHeaders = this.defaultHeaders;
|
|
2271
|
+
// authentication (Bearer) required
|
|
2272
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
2273
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
|
2274
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
2275
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
2276
|
+
}
|
|
2277
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
2278
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
2279
|
+
let responseType_ = "json";
|
|
2280
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
2281
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
2282
|
+
responseType_ = "text";
|
|
2283
|
+
}
|
|
2284
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
2285
|
+
responseType_ = "json";
|
|
2286
|
+
}
|
|
2287
|
+
else {
|
|
2288
|
+
responseType_ = "blob";
|
|
2289
|
+
}
|
|
2290
|
+
}
|
|
2291
|
+
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`;
|
|
2292
|
+
const { basePath, withCredentials } = this.configuration;
|
|
2293
|
+
return this.httpClient.request("get", `${basePath}${localVarPath}`, {
|
|
2294
|
+
context: localVarHttpContext,
|
|
2295
|
+
responseType: responseType_,
|
|
2296
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
2297
|
+
headers: localVarHeaders,
|
|
2298
|
+
observe: observe,
|
|
2299
|
+
transferCache: localVarTransferCache,
|
|
2300
|
+
reportProgress: reportProgress,
|
|
2301
|
+
});
|
|
2302
|
+
}
|
|
2303
|
+
projectNotesGetProjectNoteAttachmentPreview(requestParameters, observe = "body", reportProgress = false, options) {
|
|
2304
|
+
const projectNoteId = requestParameters?.projectNoteId;
|
|
2305
|
+
if (projectNoteId === null || projectNoteId === undefined) {
|
|
2306
|
+
throw new Error("Required parameter projectNoteId was null or undefined when calling projectNotesGetProjectNoteAttachmentPreview.");
|
|
2307
|
+
}
|
|
2308
|
+
const attachmentId = requestParameters?.attachmentId;
|
|
2309
|
+
if (attachmentId === null || attachmentId === undefined) {
|
|
2310
|
+
throw new Error("Required parameter attachmentId was null or undefined when calling projectNotesGetProjectNoteAttachmentPreview.");
|
|
2311
|
+
}
|
|
2312
|
+
let localVarHeaders = this.defaultHeaders;
|
|
2313
|
+
// authentication (Bearer) required
|
|
2314
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
2315
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
|
2316
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
2317
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
2318
|
+
}
|
|
2319
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
2320
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
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-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`;
|
|
2334
|
+
const { basePath, withCredentials } = this.configuration;
|
|
2335
|
+
return this.httpClient.request("get", `${basePath}${localVarPath}`, {
|
|
2336
|
+
context: localVarHttpContext,
|
|
2337
|
+
responseType: responseType_,
|
|
2338
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
2339
|
+
headers: localVarHeaders,
|
|
2340
|
+
observe: observe,
|
|
2341
|
+
transferCache: localVarTransferCache,
|
|
2342
|
+
reportProgress: reportProgress,
|
|
2343
|
+
});
|
|
2344
|
+
}
|
|
2259
2345
|
projectNotesRemoveProjectNote(requestParameters, observe = "body", reportProgress = false, options) {
|
|
2260
2346
|
const projectNoteId = requestParameters?.projectNoteId;
|
|
2261
2347
|
if (projectNoteId === null || projectNoteId === undefined) {
|
|
2262
2348
|
throw new Error("Required parameter projectNoteId was null or undefined when calling projectNotesRemoveProjectNote.");
|
|
2263
2349
|
}
|
|
2264
2350
|
let localVarHeaders = this.defaultHeaders;
|
|
2351
|
+
// authentication (Bearer) required
|
|
2352
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
2265
2353
|
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
|
2266
2354
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
2267
2355
|
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
@@ -2292,6 +2380,61 @@ class ProjectNotesApiService extends BaseService {
|
|
|
2292
2380
|
reportProgress: reportProgress,
|
|
2293
2381
|
});
|
|
2294
2382
|
}
|
|
2383
|
+
projectNotesSearchProjects(requestParameters, observe = "body", reportProgress = false, options) {
|
|
2384
|
+
const projectRevisionId = requestParameters?.projectRevisionId;
|
|
2385
|
+
const text = requestParameters?.text;
|
|
2386
|
+
const type = requestParameters?.type;
|
|
2387
|
+
const createdAt = requestParameters?.createdAt;
|
|
2388
|
+
const orderBy = requestParameters?.orderBy;
|
|
2389
|
+
const page = requestParameters?.page;
|
|
2390
|
+
const pageSize = requestParameters?.pageSize;
|
|
2391
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
2392
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, projectRevisionId, "ProjectRevisionId");
|
|
2393
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, text, "Text");
|
|
2394
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, type, "Type");
|
|
2395
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, createdAt, "CreatedAt");
|
|
2396
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, orderBy, "OrderBy");
|
|
2397
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, page, "Page");
|
|
2398
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, pageSize, "PageSize");
|
|
2399
|
+
let localVarHeaders = this.defaultHeaders;
|
|
2400
|
+
// authentication (Bearer) required
|
|
2401
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
2402
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
|
|
2403
|
+
this.configuration.selectHeaderAccept([
|
|
2404
|
+
"text/plain",
|
|
2405
|
+
"application/json",
|
|
2406
|
+
"text/json",
|
|
2407
|
+
]);
|
|
2408
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
2409
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
2410
|
+
}
|
|
2411
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
2412
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
2413
|
+
let responseType_ = "json";
|
|
2414
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
2415
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
2416
|
+
responseType_ = "text";
|
|
2417
|
+
}
|
|
2418
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
2419
|
+
responseType_ = "json";
|
|
2420
|
+
}
|
|
2421
|
+
else {
|
|
2422
|
+
responseType_ = "blob";
|
|
2423
|
+
}
|
|
2424
|
+
}
|
|
2425
|
+
let localVarPath = `/api/project-notes`;
|
|
2426
|
+
const { basePath, withCredentials } = this.configuration;
|
|
2427
|
+
return this.httpClient.request("get", `${basePath}${localVarPath}`, {
|
|
2428
|
+
context: localVarHttpContext,
|
|
2429
|
+
params: localVarQueryParameters,
|
|
2430
|
+
responseType: responseType_,
|
|
2431
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
2432
|
+
headers: localVarHeaders,
|
|
2433
|
+
observe: observe,
|
|
2434
|
+
transferCache: localVarTransferCache,
|
|
2435
|
+
reportProgress: reportProgress,
|
|
2436
|
+
});
|
|
2437
|
+
}
|
|
2295
2438
|
projectNotesUpdateProjectNote(requestParameters, observe = "body", reportProgress = false, options) {
|
|
2296
2439
|
const projectNoteId = requestParameters?.projectNoteId;
|
|
2297
2440
|
if (projectNoteId === null || projectNoteId === undefined) {
|
|
@@ -2299,6 +2442,8 @@ class ProjectNotesApiService extends BaseService {
|
|
|
2299
2442
|
}
|
|
2300
2443
|
const updateProjectNoteDto = requestParameters?.updateProjectNoteDto;
|
|
2301
2444
|
let localVarHeaders = this.defaultHeaders;
|
|
2445
|
+
// authentication (Bearer) required
|
|
2446
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
2302
2447
|
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
|
2303
2448
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
2304
2449
|
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
@@ -8361,11 +8506,11 @@ var Permission;
|
|
|
8361
8506
|
* Do not edit the class manually.
|
|
8362
8507
|
*/
|
|
8363
8508
|
/**
|
|
8364
|
-
* Note type.<br />ProjectNoteType<br />0 =
|
|
8509
|
+
* Note type.<br />ProjectNoteType<br />0 = Project<br />1 = QualifiedSpecification<br />2 = Internal<br />3 = SalesChannel
|
|
8365
8510
|
*/
|
|
8366
8511
|
var ProjectNoteType;
|
|
8367
8512
|
(function (ProjectNoteType) {
|
|
8368
|
-
ProjectNoteType["
|
|
8513
|
+
ProjectNoteType["Project"] = "Project";
|
|
8369
8514
|
ProjectNoteType["QualifiedSpecification"] = "QualifiedSpecification";
|
|
8370
8515
|
ProjectNoteType["Internal"] = "Internal";
|
|
8371
8516
|
ProjectNoteType["SalesChannel"] = "SalesChannel";
|