@saritasa/renewaire-frontend-sdk 0.290.0 → 0.291.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
@@ -1,5 +1,5 @@
1
- # @@saritasa/renewaire-frontend-sdk@0.290.0
1
+ # @@saritasa/renewaire-frontend-sdk@0.291.0
2
2
 
3
3
  ```bash
4
- npm install @saritasa/renewaire-frontend-sdk@0.290.0 --save
4
+ npm install @saritasa/renewaire-frontend-sdk@0.291.0 --save
5
5
  ```
@@ -5684,6 +5684,44 @@ class ProjectLinesApiService extends BaseService {
5684
5684
  reportProgress: reportProgress,
5685
5685
  });
5686
5686
  }
5687
+ projectLinesCancelCustomizations(requestParameters, observe = "body", reportProgress = false, options) {
5688
+ const projectLineId = requestParameters?.projectLineId;
5689
+ if (projectLineId === null || projectLineId === undefined) {
5690
+ throw new Error("Required parameter projectLineId was null or undefined when calling projectLinesCancelCustomizations.");
5691
+ }
5692
+ let localVarHeaders = this.defaultHeaders;
5693
+ // authentication (Bearer) required
5694
+ localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
5695
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
5696
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
5697
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
5698
+ }
5699
+ const localVarHttpContext = options?.context ?? new HttpContext();
5700
+ const localVarTransferCache = options?.transferCache ?? true;
5701
+ let responseType_ = "json";
5702
+ if (localVarHttpHeaderAcceptSelected) {
5703
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
5704
+ responseType_ = "text";
5705
+ }
5706
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
5707
+ responseType_ = "json";
5708
+ }
5709
+ else {
5710
+ responseType_ = "blob";
5711
+ }
5712
+ }
5713
+ let localVarPath = `/api/project-lines/${this.configuration.encodeParam({ name: "projectLineId", value: projectLineId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}/customizations`;
5714
+ const { basePath, withCredentials } = this.configuration;
5715
+ return this.httpClient.request("delete", `${basePath}${localVarPath}`, {
5716
+ context: localVarHttpContext,
5717
+ responseType: responseType_,
5718
+ ...(withCredentials ? { withCredentials } : {}),
5719
+ headers: localVarHeaders,
5720
+ observe: observe,
5721
+ transferCache: localVarTransferCache,
5722
+ reportProgress: reportProgress,
5723
+ });
5724
+ }
5687
5725
  projectLinesCreateProjectLine(requestParameters, observe = "body", reportProgress = false, options) {
5688
5726
  const saveLineDto = requestParameters?.saveLineDto;
5689
5727
  let localVarHeaders = this.defaultHeaders;
@@ -8136,12 +8174,12 @@ class ProjectStatusesApiService extends BaseService {
8136
8174
  reportProgress: reportProgress,
8137
8175
  });
8138
8176
  }
8139
- projectStatusesRequestOrder(requestParameters, observe = "body", reportProgress = false, options) {
8177
+ projectStatusesRejectQuote(requestParameters, observe = "body", reportProgress = false, options) {
8140
8178
  const projectRevisionId = requestParameters?.projectRevisionId;
8141
8179
  if (projectRevisionId === null || projectRevisionId === undefined) {
8142
- throw new Error("Required parameter projectRevisionId was null or undefined when calling projectStatusesRequestOrder.");
8180
+ throw new Error("Required parameter projectRevisionId was null or undefined when calling projectStatusesRejectQuote.");
8143
8181
  }
8144
- const requestOrderCommand = requestParameters?.requestOrderCommand;
8182
+ const rejectQuoteCommand = requestParameters?.rejectQuoteCommand;
8145
8183
  let localVarHeaders = this.defaultHeaders;
8146
8184
  // authentication (Bearer) required
8147
8185
  localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
@@ -8179,11 +8217,11 @@ class ProjectStatusesApiService extends BaseService {
8179
8217
  responseType_ = "blob";
8180
8218
  }
8181
8219
  }
8182
- let localVarPath = `/api/project-statuses/${this.configuration.encodeParam({ name: "projectRevisionId", value: projectRevisionId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}/request-order`;
8220
+ let localVarPath = `/api/project-statuses/${this.configuration.encodeParam({ name: "projectRevisionId", value: projectRevisionId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}/reject-quote`;
8183
8221
  const { basePath, withCredentials } = this.configuration;
8184
8222
  return this.httpClient.request("put", `${basePath}${localVarPath}`, {
8185
8223
  context: localVarHttpContext,
8186
- body: requestOrderCommand,
8224
+ body: rejectQuoteCommand,
8187
8225
  responseType: responseType_,
8188
8226
  ...(withCredentials ? { withCredentials } : {}),
8189
8227
  headers: localVarHeaders,
@@ -8192,12 +8230,12 @@ class ProjectStatusesApiService extends BaseService {
8192
8230
  reportProgress: reportProgress,
8193
8231
  });
8194
8232
  }
8195
- projectStatusesRequestQuote(requestParameters, observe = "body", reportProgress = false, options) {
8233
+ projectStatusesRequestOrder(requestParameters, observe = "body", reportProgress = false, options) {
8196
8234
  const projectRevisionId = requestParameters?.projectRevisionId;
8197
8235
  if (projectRevisionId === null || projectRevisionId === undefined) {
8198
- throw new Error("Required parameter projectRevisionId was null or undefined when calling projectStatusesRequestQuote.");
8236
+ throw new Error("Required parameter projectRevisionId was null or undefined when calling projectStatusesRequestOrder.");
8199
8237
  }
8200
- const requestQuoteCommand = requestParameters?.requestQuoteCommand;
8238
+ const requestOrderCommand = requestParameters?.requestOrderCommand;
8201
8239
  let localVarHeaders = this.defaultHeaders;
8202
8240
  // authentication (Bearer) required
8203
8241
  localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
@@ -8235,11 +8273,11 @@ class ProjectStatusesApiService extends BaseService {
8235
8273
  responseType_ = "blob";
8236
8274
  }
8237
8275
  }
8238
- let localVarPath = `/api/project-statuses/${this.configuration.encodeParam({ name: "projectRevisionId", value: projectRevisionId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}/request-quote`;
8276
+ let localVarPath = `/api/project-statuses/${this.configuration.encodeParam({ name: "projectRevisionId", value: projectRevisionId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}/request-order`;
8239
8277
  const { basePath, withCredentials } = this.configuration;
8240
8278
  return this.httpClient.request("put", `${basePath}${localVarPath}`, {
8241
8279
  context: localVarHttpContext,
8242
- body: requestQuoteCommand,
8280
+ body: requestOrderCommand,
8243
8281
  responseType: responseType_,
8244
8282
  ...(withCredentials ? { withCredentials } : {}),
8245
8283
  headers: localVarHeaders,
@@ -8248,12 +8286,12 @@ class ProjectStatusesApiService extends BaseService {
8248
8286
  reportProgress: reportProgress,
8249
8287
  });
8250
8288
  }
8251
- projectStatusesRequestQuote_1(requestParameters, observe = "body", reportProgress = false, options) {
8289
+ projectStatusesRequestQuote(requestParameters, observe = "body", reportProgress = false, options) {
8252
8290
  const projectRevisionId = requestParameters?.projectRevisionId;
8253
8291
  if (projectRevisionId === null || projectRevisionId === undefined) {
8254
- throw new Error("Required parameter projectRevisionId was null or undefined when calling projectStatusesRequestQuote_1.");
8292
+ throw new Error("Required parameter projectRevisionId was null or undefined when calling projectStatusesRequestQuote.");
8255
8293
  }
8256
- const rejectQuoteCommand = requestParameters?.rejectQuoteCommand;
8294
+ const requestQuoteCommand = requestParameters?.requestQuoteCommand;
8257
8295
  let localVarHeaders = this.defaultHeaders;
8258
8296
  // authentication (Bearer) required
8259
8297
  localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
@@ -8291,11 +8329,11 @@ class ProjectStatusesApiService extends BaseService {
8291
8329
  responseType_ = "blob";
8292
8330
  }
8293
8331
  }
8294
- let localVarPath = `/api/project-statuses/${this.configuration.encodeParam({ name: "projectRevisionId", value: projectRevisionId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}/reject-quote`;
8332
+ let localVarPath = `/api/project-statuses/${this.configuration.encodeParam({ name: "projectRevisionId", value: projectRevisionId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}/request-quote`;
8295
8333
  const { basePath, withCredentials } = this.configuration;
8296
8334
  return this.httpClient.request("put", `${basePath}${localVarPath}`, {
8297
8335
  context: localVarHttpContext,
8298
- body: rejectQuoteCommand,
8336
+ body: requestQuoteCommand,
8299
8337
  responseType: responseType_,
8300
8338
  ...(withCredentials ? { withCredentials } : {}),
8301
8339
  headers: localVarHeaders,