@saritasa/renewaire-frontend-sdk 0.236.0 → 0.237.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
|
@@ -4314,6 +4314,90 @@ class ProjectDiscountsApiService extends BaseService {
|
|
|
4314
4314
|
reportProgress: reportProgress,
|
|
4315
4315
|
});
|
|
4316
4316
|
}
|
|
4317
|
+
projectDiscountsGetDiscountAttachmentDownloadUrl(requestParameters, observe = "body", reportProgress = false, options) {
|
|
4318
|
+
const projectDiscountId = requestParameters?.projectDiscountId;
|
|
4319
|
+
if (projectDiscountId === null || projectDiscountId === undefined) {
|
|
4320
|
+
throw new Error("Required parameter projectDiscountId was null or undefined when calling projectDiscountsGetDiscountAttachmentDownloadUrl.");
|
|
4321
|
+
}
|
|
4322
|
+
const attachmentId = requestParameters?.attachmentId;
|
|
4323
|
+
if (attachmentId === null || attachmentId === undefined) {
|
|
4324
|
+
throw new Error("Required parameter attachmentId was null or undefined when calling projectDiscountsGetDiscountAttachmentDownloadUrl.");
|
|
4325
|
+
}
|
|
4326
|
+
let localVarHeaders = this.defaultHeaders;
|
|
4327
|
+
// authentication (Bearer) required
|
|
4328
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
4329
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
|
4330
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
4331
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
4332
|
+
}
|
|
4333
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
4334
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
4335
|
+
let responseType_ = "json";
|
|
4336
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
4337
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
4338
|
+
responseType_ = "text";
|
|
4339
|
+
}
|
|
4340
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
4341
|
+
responseType_ = "json";
|
|
4342
|
+
}
|
|
4343
|
+
else {
|
|
4344
|
+
responseType_ = "blob";
|
|
4345
|
+
}
|
|
4346
|
+
}
|
|
4347
|
+
let localVarPath = `/api/project-discounts/${this.configuration.encodeParam({ name: "projectDiscountId", value: projectDiscountId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}/attachments/${this.configuration.encodeParam({ name: "attachmentId", value: attachmentId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}`;
|
|
4348
|
+
const { basePath, withCredentials } = this.configuration;
|
|
4349
|
+
return this.httpClient.request("get", `${basePath}${localVarPath}`, {
|
|
4350
|
+
context: localVarHttpContext,
|
|
4351
|
+
responseType: responseType_,
|
|
4352
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
4353
|
+
headers: localVarHeaders,
|
|
4354
|
+
observe: observe,
|
|
4355
|
+
transferCache: localVarTransferCache,
|
|
4356
|
+
reportProgress: reportProgress,
|
|
4357
|
+
});
|
|
4358
|
+
}
|
|
4359
|
+
projectDiscountsGetDiscountAttachmentPreviewUrl(requestParameters, observe = "body", reportProgress = false, options) {
|
|
4360
|
+
const projectDiscountId = requestParameters?.projectDiscountId;
|
|
4361
|
+
if (projectDiscountId === null || projectDiscountId === undefined) {
|
|
4362
|
+
throw new Error("Required parameter projectDiscountId was null or undefined when calling projectDiscountsGetDiscountAttachmentPreviewUrl.");
|
|
4363
|
+
}
|
|
4364
|
+
const attachmentId = requestParameters?.attachmentId;
|
|
4365
|
+
if (attachmentId === null || attachmentId === undefined) {
|
|
4366
|
+
throw new Error("Required parameter attachmentId was null or undefined when calling projectDiscountsGetDiscountAttachmentPreviewUrl.");
|
|
4367
|
+
}
|
|
4368
|
+
let localVarHeaders = this.defaultHeaders;
|
|
4369
|
+
// authentication (Bearer) required
|
|
4370
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
4371
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
|
4372
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
4373
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
4374
|
+
}
|
|
4375
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
4376
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
4377
|
+
let responseType_ = "json";
|
|
4378
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
4379
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
4380
|
+
responseType_ = "text";
|
|
4381
|
+
}
|
|
4382
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
4383
|
+
responseType_ = "json";
|
|
4384
|
+
}
|
|
4385
|
+
else {
|
|
4386
|
+
responseType_ = "blob";
|
|
4387
|
+
}
|
|
4388
|
+
}
|
|
4389
|
+
let localVarPath = `/api/project-discounts/${this.configuration.encodeParam({ name: "projectDiscountId", value: projectDiscountId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}/attachments/${this.configuration.encodeParam({ name: "attachmentId", value: attachmentId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}/preview`;
|
|
4390
|
+
const { basePath, withCredentials } = this.configuration;
|
|
4391
|
+
return this.httpClient.request("get", `${basePath}${localVarPath}`, {
|
|
4392
|
+
context: localVarHttpContext,
|
|
4393
|
+
responseType: responseType_,
|
|
4394
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
4395
|
+
headers: localVarHeaders,
|
|
4396
|
+
observe: observe,
|
|
4397
|
+
transferCache: localVarTransferCache,
|
|
4398
|
+
reportProgress: reportProgress,
|
|
4399
|
+
});
|
|
4400
|
+
}
|
|
4317
4401
|
projectDiscountsReviewProjectDiscount(requestParameters, observe = "body", reportProgress = false, options) {
|
|
4318
4402
|
const projectDiscountId = requestParameters?.projectDiscountId;
|
|
4319
4403
|
if (projectDiscountId === null || projectDiscountId === undefined) {
|