@saritasa/renewaire-frontend-sdk 0.81.0 → 0.82.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
|
@@ -3137,6 +3137,44 @@ class RepSalesReportsApiService extends BaseService {
|
|
|
3137
3137
|
reportProgress: reportProgress,
|
|
3138
3138
|
});
|
|
3139
3139
|
}
|
|
3140
|
+
repSalesReportsRemoveRepSalesReport(requestParameters, observe = "body", reportProgress = false, options) {
|
|
3141
|
+
const repSalesReportId = requestParameters?.repSalesReportId;
|
|
3142
|
+
if (repSalesReportId === null || repSalesReportId === undefined) {
|
|
3143
|
+
throw new Error("Required parameter repSalesReportId was null or undefined when calling repSalesReportsRemoveRepSalesReport.");
|
|
3144
|
+
}
|
|
3145
|
+
let localVarHeaders = this.defaultHeaders;
|
|
3146
|
+
// authentication (Bearer) required
|
|
3147
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
3148
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
|
3149
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
3150
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
3151
|
+
}
|
|
3152
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
3153
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
3154
|
+
let responseType_ = "json";
|
|
3155
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
3156
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
3157
|
+
responseType_ = "text";
|
|
3158
|
+
}
|
|
3159
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
3160
|
+
responseType_ = "json";
|
|
3161
|
+
}
|
|
3162
|
+
else {
|
|
3163
|
+
responseType_ = "blob";
|
|
3164
|
+
}
|
|
3165
|
+
}
|
|
3166
|
+
let localVarPath = `/api/rep-sales-reports/${this.configuration.encodeParam({ name: "repSalesReportId", value: repSalesReportId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}`;
|
|
3167
|
+
const { basePath, withCredentials } = this.configuration;
|
|
3168
|
+
return this.httpClient.request("delete", `${basePath}${localVarPath}`, {
|
|
3169
|
+
context: localVarHttpContext,
|
|
3170
|
+
responseType: responseType_,
|
|
3171
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
3172
|
+
headers: localVarHeaders,
|
|
3173
|
+
observe: observe,
|
|
3174
|
+
transferCache: localVarTransferCache,
|
|
3175
|
+
reportProgress: reportProgress,
|
|
3176
|
+
});
|
|
3177
|
+
}
|
|
3140
3178
|
repSalesReportsSearchRepSalesReports(requestParameters, observe = "body", reportProgress = false, options) {
|
|
3141
3179
|
const repTerritoryCode = requestParameters?.repTerritoryCode;
|
|
3142
3180
|
const date = requestParameters?.date;
|