@arbidocs/sdk 0.4.136 → 0.4.138
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/{browser-SjPK03CI.d.cts → browser-B1eZG2h_.d.cts} +2 -0
- package/dist/{browser-SjPK03CI.d.ts → browser-B1eZG2h_.d.ts} +2 -0
- package/dist/browser.cjs +1 -0
- package/dist/browser.cjs.map +1 -1
- package/dist/browser.d.cts +1 -1
- package/dist/browser.d.ts +1 -1
- package/dist/browser.js +1 -0
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +1 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -881,6 +881,8 @@ declare const SUPPORTED_EXTENSIONS: Set<string>;
|
|
|
881
881
|
*/
|
|
882
882
|
declare function sanitizeFolderPath(folderPath: string): string;
|
|
883
883
|
interface UploadOptions {
|
|
884
|
+
/** Shared with the workspace's members (the server's default when absent: shared). */
|
|
885
|
+
shared?: boolean;
|
|
884
886
|
folder?: string;
|
|
885
887
|
configExtId?: string;
|
|
886
888
|
/** Work-product type for the uploaded doc — ``source`` (default),
|
|
@@ -881,6 +881,8 @@ declare const SUPPORTED_EXTENSIONS: Set<string>;
|
|
|
881
881
|
*/
|
|
882
882
|
declare function sanitizeFolderPath(folderPath: string): string;
|
|
883
883
|
interface UploadOptions {
|
|
884
|
+
/** Shared with the workspace's members (the server's default when absent: shared). */
|
|
885
|
+
shared?: boolean;
|
|
884
886
|
folder?: string;
|
|
885
887
|
configExtId?: string;
|
|
886
888
|
/** Work-product type for the uploaded doc — ``source`` (default),
|
package/dist/browser.cjs
CHANGED
|
@@ -4569,6 +4569,7 @@ async function uploadFile(auth, fileData, fileName, options) {
|
|
|
4569
4569
|
const formData = new FormData();
|
|
4570
4570
|
formData.append("files", fileData, fileName);
|
|
4571
4571
|
const params = new URLSearchParams();
|
|
4572
|
+
if (options?.shared !== void 0) params.set("shared", String(options.shared));
|
|
4572
4573
|
if (options?.folder) params.set("folder", sanitizeFolderPath(options.folder));
|
|
4573
4574
|
if (options?.configExtId) params.set("config_ext_id", options.configExtId);
|
|
4574
4575
|
if (options?.wpType) params.set("wp_type", options.wpType);
|