@diffsome/sdk 3.2.2 → 3.2.5
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.d.mts +7 -3
- package/dist/index.d.ts +7 -3
- package/dist/index.js +10 -4
- package/dist/index.mjs +10 -4
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -11348,6 +11348,10 @@ declare class HttpClient {
|
|
|
11348
11348
|
* Get the base URL with tenant path
|
|
11349
11349
|
*/
|
|
11350
11350
|
getBaseUrl(): string;
|
|
11351
|
+
/**
|
|
11352
|
+
* Get the download URL for a digital file
|
|
11353
|
+
*/
|
|
11354
|
+
getDownloadUrl(token: string): string;
|
|
11351
11355
|
/**
|
|
11352
11356
|
* Set cart session ID (for guest cart persistence)
|
|
11353
11357
|
*/
|
|
@@ -11899,10 +11903,10 @@ declare class ShopResource {
|
|
|
11899
11903
|
getOrderDownloads(orderNumber: string): Promise<DigitalDownloadLink[]>;
|
|
11900
11904
|
/**
|
|
11901
11905
|
* Get download file URL
|
|
11902
|
-
* Returns the
|
|
11903
|
-
*
|
|
11906
|
+
* Returns the web download URL that handles server-side authentication
|
|
11907
|
+
* User must be logged in via session (not just API token)
|
|
11904
11908
|
*/
|
|
11905
|
-
|
|
11909
|
+
getDownloadUrl(token: string): string;
|
|
11906
11910
|
/**
|
|
11907
11911
|
* Get download link info (without triggering download)
|
|
11908
11912
|
* Requires authentication
|
package/dist/index.d.ts
CHANGED
|
@@ -11348,6 +11348,10 @@ declare class HttpClient {
|
|
|
11348
11348
|
* Get the base URL with tenant path
|
|
11349
11349
|
*/
|
|
11350
11350
|
getBaseUrl(): string;
|
|
11351
|
+
/**
|
|
11352
|
+
* Get the download URL for a digital file
|
|
11353
|
+
*/
|
|
11354
|
+
getDownloadUrl(token: string): string;
|
|
11351
11355
|
/**
|
|
11352
11356
|
* Set cart session ID (for guest cart persistence)
|
|
11353
11357
|
*/
|
|
@@ -11899,10 +11903,10 @@ declare class ShopResource {
|
|
|
11899
11903
|
getOrderDownloads(orderNumber: string): Promise<DigitalDownloadLink[]>;
|
|
11900
11904
|
/**
|
|
11901
11905
|
* Get download file URL
|
|
11902
|
-
* Returns the
|
|
11903
|
-
*
|
|
11906
|
+
* Returns the web download URL that handles server-side authentication
|
|
11907
|
+
* User must be logged in via session (not just API token)
|
|
11904
11908
|
*/
|
|
11905
|
-
|
|
11909
|
+
getDownloadUrl(token: string): string;
|
|
11906
11910
|
/**
|
|
11907
11911
|
* Get download link info (without triggering download)
|
|
11908
11912
|
* Requires authentication
|
package/dist/index.js
CHANGED
|
@@ -159,6 +159,12 @@ var HttpClient = class {
|
|
|
159
159
|
getBaseUrl() {
|
|
160
160
|
return `${this.baseUrl}/api/${this.tenantId}`;
|
|
161
161
|
}
|
|
162
|
+
/**
|
|
163
|
+
* Get the download URL for a digital file
|
|
164
|
+
*/
|
|
165
|
+
getDownloadUrl(token) {
|
|
166
|
+
return `${this.baseUrl}/download/${this.tenantId}/${token}`;
|
|
167
|
+
}
|
|
162
168
|
/**
|
|
163
169
|
* Set cart session ID (for guest cart persistence)
|
|
164
170
|
*/
|
|
@@ -1134,11 +1140,11 @@ var ShopResource = class {
|
|
|
1134
1140
|
}
|
|
1135
1141
|
/**
|
|
1136
1142
|
* Get download file URL
|
|
1137
|
-
* Returns the
|
|
1138
|
-
*
|
|
1143
|
+
* Returns the web download URL that handles server-side authentication
|
|
1144
|
+
* User must be logged in via session (not just API token)
|
|
1139
1145
|
*/
|
|
1140
|
-
|
|
1141
|
-
return
|
|
1146
|
+
getDownloadUrl(token) {
|
|
1147
|
+
return this.http.getDownloadUrl(token);
|
|
1142
1148
|
}
|
|
1143
1149
|
/**
|
|
1144
1150
|
* Get download link info (without triggering download)
|
package/dist/index.mjs
CHANGED
|
@@ -129,6 +129,12 @@ var HttpClient = class {
|
|
|
129
129
|
getBaseUrl() {
|
|
130
130
|
return `${this.baseUrl}/api/${this.tenantId}`;
|
|
131
131
|
}
|
|
132
|
+
/**
|
|
133
|
+
* Get the download URL for a digital file
|
|
134
|
+
*/
|
|
135
|
+
getDownloadUrl(token) {
|
|
136
|
+
return `${this.baseUrl}/download/${this.tenantId}/${token}`;
|
|
137
|
+
}
|
|
132
138
|
/**
|
|
133
139
|
* Set cart session ID (for guest cart persistence)
|
|
134
140
|
*/
|
|
@@ -1104,11 +1110,11 @@ var ShopResource = class {
|
|
|
1104
1110
|
}
|
|
1105
1111
|
/**
|
|
1106
1112
|
* Get download file URL
|
|
1107
|
-
* Returns the
|
|
1108
|
-
*
|
|
1113
|
+
* Returns the web download URL that handles server-side authentication
|
|
1114
|
+
* User must be logged in via session (not just API token)
|
|
1109
1115
|
*/
|
|
1110
|
-
|
|
1111
|
-
return
|
|
1116
|
+
getDownloadUrl(token) {
|
|
1117
|
+
return this.http.getDownloadUrl(token);
|
|
1112
1118
|
}
|
|
1113
1119
|
/**
|
|
1114
1120
|
* Get download link info (without triggering download)
|