@saritasa/renewaire-frontend-sdk 0.153.0 → 0.154.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
|
@@ -3737,6 +3737,53 @@ class ProjectShippingApiService extends BaseService {
|
|
|
3737
3737
|
reportProgress: reportProgress,
|
|
3738
3738
|
});
|
|
3739
3739
|
}
|
|
3740
|
+
projectShippingCreateLocationFromCsiCustomer(requestParameters, observe = "body", reportProgress = false, options) {
|
|
3741
|
+
const projectRevisionId = requestParameters?.projectRevisionId;
|
|
3742
|
+
if (projectRevisionId === null || projectRevisionId === undefined) {
|
|
3743
|
+
throw new Error("Required parameter projectRevisionId was null or undefined when calling projectShippingCreateLocationFromCsiCustomer.");
|
|
3744
|
+
}
|
|
3745
|
+
const csiCustomerId = requestParameters?.csiCustomerId;
|
|
3746
|
+
if (csiCustomerId === null || csiCustomerId === undefined) {
|
|
3747
|
+
throw new Error("Required parameter csiCustomerId was null or undefined when calling projectShippingCreateLocationFromCsiCustomer.");
|
|
3748
|
+
}
|
|
3749
|
+
let localVarHeaders = this.defaultHeaders;
|
|
3750
|
+
// authentication (Bearer) required
|
|
3751
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
3752
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
|
|
3753
|
+
this.configuration.selectHeaderAccept([
|
|
3754
|
+
"text/plain",
|
|
3755
|
+
"application/json",
|
|
3756
|
+
"text/json",
|
|
3757
|
+
]);
|
|
3758
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
3759
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
3760
|
+
}
|
|
3761
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
3762
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
3763
|
+
let responseType_ = "json";
|
|
3764
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
3765
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
3766
|
+
responseType_ = "text";
|
|
3767
|
+
}
|
|
3768
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
3769
|
+
responseType_ = "json";
|
|
3770
|
+
}
|
|
3771
|
+
else {
|
|
3772
|
+
responseType_ = "blob";
|
|
3773
|
+
}
|
|
3774
|
+
}
|
|
3775
|
+
let localVarPath = `/api/project-shipping/${this.configuration.encodeParam({ name: "projectRevisionId", value: projectRevisionId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}/locations/csi/customers/${this.configuration.encodeParam({ name: "csiCustomerId", value: csiCustomerId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}`;
|
|
3776
|
+
const { basePath, withCredentials } = this.configuration;
|
|
3777
|
+
return this.httpClient.request("post", `${basePath}${localVarPath}`, {
|
|
3778
|
+
context: localVarHttpContext,
|
|
3779
|
+
responseType: responseType_,
|
|
3780
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
3781
|
+
headers: localVarHeaders,
|
|
3782
|
+
observe: observe,
|
|
3783
|
+
transferCache: localVarTransferCache,
|
|
3784
|
+
reportProgress: reportProgress,
|
|
3785
|
+
});
|
|
3786
|
+
}
|
|
3740
3787
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: ProjectShippingApiService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3741
3788
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: ProjectShippingApiService, providedIn: "root" });
|
|
3742
3789
|
}
|