@saritasa/renewaire-frontend-sdk 0.70.0 → 0.71.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
|
@@ -2763,6 +2763,57 @@ class RepSalesReportsApiService extends BaseService {
|
|
|
2763
2763
|
super(basePath, configuration);
|
|
2764
2764
|
this.httpClient = httpClient;
|
|
2765
2765
|
}
|
|
2766
|
+
repSalesReportsCreateRepSalesReport(requestParameters, observe = "body", reportProgress = false, options) {
|
|
2767
|
+
const createRepSalesReportCommand = requestParameters?.createRepSalesReportCommand;
|
|
2768
|
+
let localVarHeaders = this.defaultHeaders;
|
|
2769
|
+
// authentication (Bearer) required
|
|
2770
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
2771
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
|
|
2772
|
+
this.configuration.selectHeaderAccept([
|
|
2773
|
+
"text/plain",
|
|
2774
|
+
"application/json",
|
|
2775
|
+
"text/json",
|
|
2776
|
+
]);
|
|
2777
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
2778
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
2779
|
+
}
|
|
2780
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
2781
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
2782
|
+
// to determine the Content-Type header
|
|
2783
|
+
const consumes = [
|
|
2784
|
+
"application/json",
|
|
2785
|
+
"text/json",
|
|
2786
|
+
"application/*+json",
|
|
2787
|
+
];
|
|
2788
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
2789
|
+
if (httpContentTypeSelected !== undefined) {
|
|
2790
|
+
localVarHeaders = localVarHeaders.set("Content-Type", httpContentTypeSelected);
|
|
2791
|
+
}
|
|
2792
|
+
let responseType_ = "json";
|
|
2793
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
2794
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
2795
|
+
responseType_ = "text";
|
|
2796
|
+
}
|
|
2797
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
2798
|
+
responseType_ = "json";
|
|
2799
|
+
}
|
|
2800
|
+
else {
|
|
2801
|
+
responseType_ = "blob";
|
|
2802
|
+
}
|
|
2803
|
+
}
|
|
2804
|
+
let localVarPath = `/api/rep-sales-reports`;
|
|
2805
|
+
const { basePath, withCredentials } = this.configuration;
|
|
2806
|
+
return this.httpClient.request("post", `${basePath}${localVarPath}`, {
|
|
2807
|
+
context: localVarHttpContext,
|
|
2808
|
+
body: createRepSalesReportCommand,
|
|
2809
|
+
responseType: responseType_,
|
|
2810
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
2811
|
+
headers: localVarHeaders,
|
|
2812
|
+
observe: observe,
|
|
2813
|
+
transferCache: localVarTransferCache,
|
|
2814
|
+
reportProgress: reportProgress,
|
|
2815
|
+
});
|
|
2816
|
+
}
|
|
2766
2817
|
repSalesReportsCreateRepSalesReportDownloadUrl(requestParameters, observe = "body", reportProgress = false, options) {
|
|
2767
2818
|
const repSalesReportId = requestParameters?.repSalesReportId;
|
|
2768
2819
|
if (repSalesReportId === null || repSalesReportId === undefined) {
|
|
@@ -6963,6 +7014,7 @@ var CreateUploadUrlCommandFileTypeEnum;
|
|
|
6963
7014
|
(function (CreateUploadUrlCommandFileTypeEnum) {
|
|
6964
7015
|
CreateUploadUrlCommandFileTypeEnum["RsdRegionDocument"] = "RsdRegionDocument";
|
|
6965
7016
|
CreateUploadUrlCommandFileTypeEnum["ControllerProgram"] = "ControllerProgram";
|
|
7017
|
+
CreateUploadUrlCommandFileTypeEnum["RepSalesReport"] = "RepSalesReport";
|
|
6966
7018
|
})(CreateUploadUrlCommandFileTypeEnum || (CreateUploadUrlCommandFileTypeEnum = {}));
|
|
6967
7019
|
|
|
6968
7020
|
/**
|
|
@@ -7070,12 +7122,13 @@ var FeedbackType;
|
|
|
7070
7122
|
* Do not edit the class manually.
|
|
7071
7123
|
*/
|
|
7072
7124
|
/**
|
|
7073
|
-
* FileType<br />0 = RsdRegionDocument<br />1 = ControllerProgram
|
|
7125
|
+
* FileType<br />0 = RsdRegionDocument<br />1 = ControllerProgram<br />2 = RepSalesReport
|
|
7074
7126
|
*/
|
|
7075
7127
|
var FileType;
|
|
7076
7128
|
(function (FileType) {
|
|
7077
7129
|
FileType["RsdRegionDocument"] = "RsdRegionDocument";
|
|
7078
7130
|
FileType["ControllerProgram"] = "ControllerProgram";
|
|
7131
|
+
FileType["RepSalesReport"] = "RepSalesReport";
|
|
7079
7132
|
})(FileType || (FileType = {}));
|
|
7080
7133
|
|
|
7081
7134
|
/**
|