@centrali-io/centrali-sdk 2.9.3 → 2.9.4
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/dist/index.js +4 -2
- package/index.ts +4 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1939,7 +1939,8 @@ class CentraliSDK {
|
|
|
1939
1939
|
* ```
|
|
1940
1940
|
*/
|
|
1941
1941
|
getFileRenderUrl(renderId, options) {
|
|
1942
|
-
const
|
|
1942
|
+
const apiUrl = getApiUrl(this.options.baseUrl);
|
|
1943
|
+
const baseUrl = `${apiUrl}/storage/ws/${this.options.workspaceId}/api/v1/render/${renderId}`;
|
|
1943
1944
|
if (!options) {
|
|
1944
1945
|
return baseUrl;
|
|
1945
1946
|
}
|
|
@@ -1968,7 +1969,8 @@ class CentraliSDK {
|
|
|
1968
1969
|
* ```
|
|
1969
1970
|
*/
|
|
1970
1971
|
getFileDownloadUrl(renderId) {
|
|
1971
|
-
|
|
1972
|
+
const apiUrl = getApiUrl(this.options.baseUrl);
|
|
1973
|
+
return `${apiUrl}/storage/ws/${this.options.workspaceId}/api/v1/download/${renderId}`;
|
|
1972
1974
|
}
|
|
1973
1975
|
// ------------------ Search API Methods ------------------
|
|
1974
1976
|
/**
|
package/index.ts
CHANGED
|
@@ -3622,7 +3622,8 @@ export class CentraliSDK {
|
|
|
3622
3622
|
format?: 'jpeg' | 'png' | 'webp';
|
|
3623
3623
|
}
|
|
3624
3624
|
): string {
|
|
3625
|
-
const
|
|
3625
|
+
const apiUrl = getApiUrl(this.options.baseUrl);
|
|
3626
|
+
const baseUrl = `${apiUrl}/storage/ws/${this.options.workspaceId}/api/v1/render/${renderId}`;
|
|
3626
3627
|
|
|
3627
3628
|
if (!options) {
|
|
3628
3629
|
return baseUrl;
|
|
@@ -3651,7 +3652,8 @@ export class CentraliSDK {
|
|
|
3651
3652
|
* ```
|
|
3652
3653
|
*/
|
|
3653
3654
|
public getFileDownloadUrl(renderId: string): string {
|
|
3654
|
-
|
|
3655
|
+
const apiUrl = getApiUrl(this.options.baseUrl);
|
|
3656
|
+
return `${apiUrl}/storage/ws/${this.options.workspaceId}/api/v1/download/${renderId}`;
|
|
3655
3657
|
}
|
|
3656
3658
|
|
|
3657
3659
|
// ------------------ Search API Methods ------------------
|