@wix/himalaya-cli 0.1763.0 → 0.1764.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/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/screens/src/file-share-client.d.ts +115 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/screens/src/file-share-screen.d.ts +57 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/screens/src/file-share-service.d.ts +441 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/screens/src/index.d.ts +2 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/screens.mjs +1032 -117
- package/dist/cli.mjs +169 -10
- package/guides/getting-started.md +2 -0
- package/guides/himi-skill.md +2 -0
- package/guides/index.json +6 -0
- package/guides/wix-file-share.md +168 -0
- package/guides/wix-site-to-himi-app.md +1 -0
- package/package.json +2 -2
- package/templates/branded-lite/l10n/ar.json +0 -135
- package/templates/branded-lite/l10n/cs.json +0 -135
- package/templates/branded-lite/l10n/da.json +0 -135
- package/templates/branded-lite/l10n/de.json +0 -135
- package/templates/branded-lite/l10n/el.json +0 -135
- package/templates/branded-lite/l10n/es.json +0 -135
- package/templates/branded-lite/l10n/fi.json +0 -135
- package/templates/branded-lite/l10n/fr.json +0 -135
- package/templates/branded-lite/l10n/he.json +0 -108
- package/templates/branded-lite/l10n/hu.json +0 -135
- package/templates/branded-lite/l10n/id.json +0 -135
- package/templates/branded-lite/l10n/it.json +0 -135
- package/templates/branded-lite/l10n/ja.json +0 -135
- package/templates/branded-lite/l10n/ko.json +0 -135
- package/templates/branded-lite/l10n/lt.json +0 -135
- package/templates/branded-lite/l10n/nl.json +0 -135
- package/templates/branded-lite/l10n/no.json +0 -135
- package/templates/branded-lite/l10n/pl.json +0 -135
- package/templates/branded-lite/l10n/pt.json +0 -135
- package/templates/branded-lite/l10n/ru.json +0 -135
- package/templates/branded-lite/l10n/sv.json +0 -135
- package/templates/branded-lite/l10n/th.json +0 -135
- package/templates/branded-lite/l10n/tr.json +0 -135
- package/templates/branded-lite/l10n/uk.json +0 -135
- package/templates/branded-lite/l10n/vi.json +0 -135
- package/templates/branded-lite/l10n/zh.json +0 -135
- package/templates/branded-lite/tier5-src/himi-branded-lite-file-share/index.ts +8 -631
- package/templates/branded-lite/tier5-src/_shared/wix-file-share.ts +0 -332
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
export declare const FILE_SHARE_APP_DEF_ID = "1537b24e-29d1-6d8f-b8e1-d6860f2f70b9";
|
|
2
|
+
export declare const FILE_SHARE_BASE = "/file-sharing/api/v1/file-sharing";
|
|
3
|
+
/** Every capability the File Share screen's worker calls: the reads (`wix_api`), Open
|
|
4
|
+
* (`open_url`), Save (`files`) and Upload (`file_picker`, `presigned_upload`). A screen running
|
|
5
|
+
* the worker declares all of them, and the app's config.ts lists them. */
|
|
6
|
+
export declare const FILE_SHARE_CAPABILITIES: readonly string[];
|
|
7
|
+
/** Rows per page. The service allows 1..100. */
|
|
8
|
+
export declare const PAGE_SIZE = 50;
|
|
9
|
+
/** `LibraryItemFilter.search` is 1..50 characters. */
|
|
10
|
+
export declare const SEARCH_MAX = 50;
|
|
11
|
+
/** `CompleteFileUploadAction.uploadResponse` is at most 4096 characters. */
|
|
12
|
+
export declare const UPLOAD_RESPONSE_MAX = 4096;
|
|
13
|
+
/** The largest file this app uploads. The upload is a multipart body sent through
|
|
14
|
+
* `presigned_upload.put`, whose inline bound is 8 MiB (MAX_INLINE_BASE64_BYTES); 7 MiB leaves
|
|
15
|
+
* room for the form fields. A larger file is refused before any request, with a message. */
|
|
16
|
+
export declare const UPLOAD_MAX_BYTES: number;
|
|
17
|
+
export type Availability = "PUBLIC" | "MEMBER" | "PAID" | string;
|
|
18
|
+
export type AllowedAction = "MOVE" | "RENAME" | "DELETE" | "DOWNLOAD" | "CREATE_FOLDER" | "UPLOAD_FILE" | "VIEW" | "FAVORITE" | "MANAGE_PERMISSIONS";
|
|
19
|
+
export interface WixLibraryItem {
|
|
20
|
+
id?: string;
|
|
21
|
+
name?: string;
|
|
22
|
+
parentFolderId?: string;
|
|
23
|
+
createdAt?: string;
|
|
24
|
+
createdByName?: string | {
|
|
25
|
+
value?: string;
|
|
26
|
+
};
|
|
27
|
+
path?: Array<{
|
|
28
|
+
libraryItemId?: string;
|
|
29
|
+
name?: string;
|
|
30
|
+
}>;
|
|
31
|
+
availability?: Availability;
|
|
32
|
+
fileFields?: {
|
|
33
|
+
extension?: string;
|
|
34
|
+
sizeInBytes?: string | number;
|
|
35
|
+
size?: number;
|
|
36
|
+
category?: string;
|
|
37
|
+
previewable?: boolean;
|
|
38
|
+
};
|
|
39
|
+
folderFields?: {
|
|
40
|
+
childrenCount?: number;
|
|
41
|
+
lastModified?: string;
|
|
42
|
+
availability?: Availability;
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
export interface LibraryPage {
|
|
46
|
+
items: WixLibraryItem[];
|
|
47
|
+
nextCursor: string;
|
|
48
|
+
}
|
|
49
|
+
export interface AuthorizedAction {
|
|
50
|
+
itemId?: string;
|
|
51
|
+
action?: AllowedAction;
|
|
52
|
+
status?: "ALLOWED" | "FORBIDDEN";
|
|
53
|
+
reason?: string;
|
|
54
|
+
}
|
|
55
|
+
export interface Authorization {
|
|
56
|
+
/** itemId → the actions the server will allow on it. */
|
|
57
|
+
items: Map<string, Set<AllowedAction>>;
|
|
58
|
+
/** itemId → why each refused action is refused (`MUST_BE_A_MEMBER`, `MISSING_PERMISSION`, …). */
|
|
59
|
+
refusals: Map<string, Map<AllowedAction, string>>;
|
|
60
|
+
/** Actions allowed in the folder passed as `parentFolderId`. */
|
|
61
|
+
folder: Set<AllowedAction>;
|
|
62
|
+
}
|
|
63
|
+
export interface FileShareSettings {
|
|
64
|
+
rootFolderId: string;
|
|
65
|
+
whoCanDownload: string;
|
|
66
|
+
}
|
|
67
|
+
export interface UploadTarget {
|
|
68
|
+
url: string;
|
|
69
|
+
requestParameters: Record<string, string>;
|
|
70
|
+
actionId: string;
|
|
71
|
+
}
|
|
72
|
+
/** A refusal `start-upload` or `complete-upload` returned instead of a URL or an item. */
|
|
73
|
+
export interface UploadRefusal {
|
|
74
|
+
kind: "tooBig" | "extension" | "quota" | "video" | "unknown";
|
|
75
|
+
maxSize?: number;
|
|
76
|
+
extension?: string;
|
|
77
|
+
}
|
|
78
|
+
/** The HTTP status of a bridge failure. The bridges put it first in the message (`HTTP 403 …`);
|
|
79
|
+
* some also set a field. A status quoted inside the body is data, not the answer. */
|
|
80
|
+
export declare function httpStatus(error: unknown): number | undefined;
|
|
81
|
+
/** One page of a folder's direct children. `folderId` "" is the library root (the service
|
|
82
|
+
* defaults to it when no parent is given). */
|
|
83
|
+
export declare function queryFolder(folderId: string, cursor?: string): Promise<LibraryPage>;
|
|
84
|
+
/** One page of a name / uploader search under `folderId` (the whole library for ""). */
|
|
85
|
+
export declare function searchLibrary(text: string, folderId: string, cursor?: string): Promise<LibraryPage>;
|
|
86
|
+
export declare function appSettings(): Promise<FileShareSettings>;
|
|
87
|
+
/** What the caller may do on `itemIds` (at most 100) and inside `parentFolderId`. */
|
|
88
|
+
export declare function authorize(itemIds: string[], parentFolderId: string): Promise<Authorization>;
|
|
89
|
+
/** A fresh, expiring `Content-Disposition: attachment` URL for one file. */
|
|
90
|
+
export declare function downloadUrl(itemId: string): Promise<string>;
|
|
91
|
+
/** A fresh `Content-Disposition: inline` URL for one file. The service counts it as a view. */
|
|
92
|
+
export declare function viewUrl(itemId: string): Promise<string>;
|
|
93
|
+
/** Phase 1: ask for an upload URL for one file into `folderId` ("" = root). */
|
|
94
|
+
export declare function startUpload(file: {
|
|
95
|
+
name: string;
|
|
96
|
+
sizeBytes: number;
|
|
97
|
+
}, folderId: string, actionId: string): Promise<{
|
|
98
|
+
target?: UploadTarget;
|
|
99
|
+
refusal?: UploadRefusal;
|
|
100
|
+
}>;
|
|
101
|
+
/** Phase 3: hand the upload host's answer back, so the file becomes a library item. */
|
|
102
|
+
export declare function completeUpload(uploadResponse: string, folderId: string, actionId: string): Promise<{
|
|
103
|
+
item?: WixLibraryItem;
|
|
104
|
+
refusal?: UploadRefusal;
|
|
105
|
+
}>;
|
|
106
|
+
export declare function utf8Bytes(text: string): number[];
|
|
107
|
+
export declare function base64Encode(bytes: number[]): string;
|
|
108
|
+
export declare function multipartBase64(fields: Record<string, string>, file: {
|
|
109
|
+
name: string;
|
|
110
|
+
mimeType: string;
|
|
111
|
+
base64: string;
|
|
112
|
+
}, boundary: string): string;
|
|
113
|
+
/** Human file size: 0 B, 12 KB, 3.4 MB. */
|
|
114
|
+
export declare function formatSize(bytes: number): string;
|
|
115
|
+
export declare function sizeOf(item: WixLibraryItem): number;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/** Every fixed string on the screen. The service's own strings are `createFileShareService({ copy })`. */
|
|
2
|
+
export interface FileShareScreenCopy {
|
|
3
|
+
title: string;
|
|
4
|
+
subtitle: string;
|
|
5
|
+
searchPlaceholder: string;
|
|
6
|
+
back: string;
|
|
7
|
+
upload: string;
|
|
8
|
+
loading: string;
|
|
9
|
+
save: string;
|
|
10
|
+
more: string;
|
|
11
|
+
errorTitle: string;
|
|
12
|
+
errorBody: string;
|
|
13
|
+
retry: string;
|
|
14
|
+
signInTitle: string;
|
|
15
|
+
signInBody: string;
|
|
16
|
+
signIn: string;
|
|
17
|
+
forbiddenTitle: string;
|
|
18
|
+
forbiddenBody: string;
|
|
19
|
+
notInstalledTitle: string;
|
|
20
|
+
notInstalledBody: string;
|
|
21
|
+
}
|
|
22
|
+
export interface FileShareScreenOptions {
|
|
23
|
+
/** Where the built worker bundle is served from (`/v1/bundles/<worker dir>`). */
|
|
24
|
+
bundleUrl: string;
|
|
25
|
+
screenId?: string;
|
|
26
|
+
/** Service name. Must match `createFileShareService({ service })`. Default `fileShare`. */
|
|
27
|
+
service?: string;
|
|
28
|
+
/** The app's sign-in screen, opened from the visitor state. Default `signin` (`authScreen`'s). */
|
|
29
|
+
signInScreenId?: string;
|
|
30
|
+
copy?: Partial<FileShareScreenCopy>;
|
|
31
|
+
}
|
|
32
|
+
export interface FileShareScreenEnvelope {
|
|
33
|
+
screenId: string;
|
|
34
|
+
renderer: string;
|
|
35
|
+
title: string;
|
|
36
|
+
schemaVersion: number;
|
|
37
|
+
cacheControl: {
|
|
38
|
+
maxAge: number;
|
|
39
|
+
staleWhileRevalidate: number;
|
|
40
|
+
};
|
|
41
|
+
logicBundle: {
|
|
42
|
+
url: string;
|
|
43
|
+
integrity: string;
|
|
44
|
+
declaredCapabilities: string[];
|
|
45
|
+
};
|
|
46
|
+
payload: {
|
|
47
|
+
id: string;
|
|
48
|
+
body: unknown;
|
|
49
|
+
modifiers?: Record<string, unknown>;
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* The Documents screen: the library root, folders with Back, server search, "Show more" pages,
|
|
54
|
+
* Open, Save, and Upload where the folder allows it, plus the loading, empty, error, sign-in,
|
|
55
|
+
* no-access and not-set-up states. Never cached (`maxAge: 0`): the listing is the reader's own.
|
|
56
|
+
*/
|
|
57
|
+
export declare function fileShareScreen(opts: FileShareScreenOptions): FileShareScreenEnvelope;
|
|
@@ -0,0 +1,441 @@
|
|
|
1
|
+
export { FILE_SHARE_APP_DEF_ID, FILE_SHARE_CAPABILITIES } from "./file-share-client.js";
|
|
2
|
+
export interface FileShareRow {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
isFolder: boolean;
|
|
6
|
+
subtitle: string;
|
|
7
|
+
icon: string;
|
|
8
|
+
sizeBytes: number;
|
|
9
|
+
/** hiddenWhen gate for the row's Save button: true for folders, and for files the server
|
|
10
|
+
* said this reader may not download. */
|
|
11
|
+
saveHidden: boolean;
|
|
12
|
+
}
|
|
13
|
+
interface Crumb {
|
|
14
|
+
id: string;
|
|
15
|
+
name: string;
|
|
16
|
+
}
|
|
17
|
+
/** `signIn`: a visitor was refused. `forbidden`: a signed-in member was refused (folder or plan).
|
|
18
|
+
* `notInstalled`: the site has no File Share library (428). `error`: anything else; never shown as
|
|
19
|
+
* an empty library. */
|
|
20
|
+
export type FileShareStatus = "loading" | "ready" | "error" | "signIn" | "forbidden" | "notInstalled";
|
|
21
|
+
export interface FileShareState {
|
|
22
|
+
status: FileShareStatus;
|
|
23
|
+
/** "" is the library root. */
|
|
24
|
+
folderId: string;
|
|
25
|
+
trail: Crumb[];
|
|
26
|
+
folderTitle: string;
|
|
27
|
+
query: string;
|
|
28
|
+
rows: FileShareRow[];
|
|
29
|
+
nextCursor: string;
|
|
30
|
+
canUpload: boolean;
|
|
31
|
+
/** An open, save or upload is running: their buttons are disabled. */
|
|
32
|
+
busy: boolean;
|
|
33
|
+
/** A "Show more" page is being read. */
|
|
34
|
+
moreBusy: boolean;
|
|
35
|
+
/** One line about the last open, save, upload or page read. */
|
|
36
|
+
message: string;
|
|
37
|
+
emptyText: string;
|
|
38
|
+
loadingHidden: boolean;
|
|
39
|
+
contentHidden: boolean;
|
|
40
|
+
emptyHidden: boolean;
|
|
41
|
+
errorHidden: boolean;
|
|
42
|
+
signInHidden: boolean;
|
|
43
|
+
forbiddenHidden: boolean;
|
|
44
|
+
notInstalledHidden: boolean;
|
|
45
|
+
moreHidden: boolean;
|
|
46
|
+
backHidden: boolean;
|
|
47
|
+
uploadHidden: boolean;
|
|
48
|
+
messageHidden: boolean;
|
|
49
|
+
}
|
|
50
|
+
export declare const FILE_SHARE_INITIAL: FileShareState;
|
|
51
|
+
export interface FileShareServiceOptions {
|
|
52
|
+
/** Service name. Must match `fileShareScreen({ service })`. Default `fileShare`. */
|
|
53
|
+
service?: string;
|
|
54
|
+
/** Overrides for the strings the service writes, by key (`fileShare.emptyLibrary`, …). Keys not
|
|
55
|
+
* given keep their English text. */
|
|
56
|
+
copy?: Record<string, string>;
|
|
57
|
+
/** An app with its own copy catalog reads every service string through this instead of `copy`. */
|
|
58
|
+
text?: (key: string, fallback: string) => string;
|
|
59
|
+
/** Called with the onAppear argument before a load (an app's copy-pack stash). */
|
|
60
|
+
onAppearArgs?: (arg: unknown) => void;
|
|
61
|
+
}
|
|
62
|
+
/** What one read produced. Plain data: it crosses `svc.settleRead`. */
|
|
63
|
+
interface ReadResult {
|
|
64
|
+
generation: number;
|
|
65
|
+
cursor: string;
|
|
66
|
+
rows?: FileShareRow[];
|
|
67
|
+
nextCursor?: string;
|
|
68
|
+
canUpload?: boolean;
|
|
69
|
+
failure?: Exclude<FileShareStatus, "loading" | "ready">;
|
|
70
|
+
/** The account changed while the read was in flight. */
|
|
71
|
+
readerChanged?: boolean;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* The worker behind `fileShareScreen`. An app's whole worker file is:
|
|
75
|
+
*
|
|
76
|
+
* import { createFileShareService } from "@wix/himalaya/screens";
|
|
77
|
+
* export const svc = createFileShareService();
|
|
78
|
+
*
|
|
79
|
+
* Declare `FILE_SHARE_CAPABILITIES` on the screen (`fileShareScreen` does) and in config.ts. Nothing of the screen is
|
|
80
|
+
* persisted or restored on a cold boot: the listing is a reader's restricted data.
|
|
81
|
+
*/
|
|
82
|
+
export declare function createFileShareService(opts?: FileShareServiceOptions): import("@wix/himalaya/state", { with: { "resolution-mode": "import" } }).ServiceHandle<{
|
|
83
|
+
status: FileShareStatus;
|
|
84
|
+
/** "" is the library root. */
|
|
85
|
+
folderId: string;
|
|
86
|
+
trail: Crumb[];
|
|
87
|
+
folderTitle: string;
|
|
88
|
+
query: string;
|
|
89
|
+
rows: FileShareRow[];
|
|
90
|
+
nextCursor: string;
|
|
91
|
+
canUpload: boolean;
|
|
92
|
+
/** An open, save or upload is running: their buttons are disabled. */
|
|
93
|
+
busy: boolean;
|
|
94
|
+
/** A "Show more" page is being read. */
|
|
95
|
+
moreBusy: boolean;
|
|
96
|
+
/** One line about the last open, save, upload or page read. */
|
|
97
|
+
message: string;
|
|
98
|
+
emptyText: string;
|
|
99
|
+
loadingHidden: boolean;
|
|
100
|
+
contentHidden: boolean;
|
|
101
|
+
emptyHidden: boolean;
|
|
102
|
+
errorHidden: boolean;
|
|
103
|
+
signInHidden: boolean;
|
|
104
|
+
forbiddenHidden: boolean;
|
|
105
|
+
notInstalledHidden: boolean;
|
|
106
|
+
moreHidden: boolean;
|
|
107
|
+
backHidden: boolean;
|
|
108
|
+
uploadHidden: boolean;
|
|
109
|
+
messageHidden: boolean;
|
|
110
|
+
}> & {
|
|
111
|
+
load: (arg?: unknown) => Promise<{
|
|
112
|
+
status: FileShareStatus;
|
|
113
|
+
/** "" is the library root. */
|
|
114
|
+
folderId: string;
|
|
115
|
+
trail: Crumb[];
|
|
116
|
+
folderTitle: string;
|
|
117
|
+
query: string;
|
|
118
|
+
rows: FileShareRow[];
|
|
119
|
+
nextCursor: string;
|
|
120
|
+
canUpload: boolean;
|
|
121
|
+
/** An open, save or upload is running: their buttons are disabled. */
|
|
122
|
+
busy: boolean;
|
|
123
|
+
/** A "Show more" page is being read. */
|
|
124
|
+
moreBusy: boolean;
|
|
125
|
+
/** One line about the last open, save, upload or page read. */
|
|
126
|
+
message: string;
|
|
127
|
+
emptyText: string;
|
|
128
|
+
loadingHidden: boolean;
|
|
129
|
+
contentHidden: boolean;
|
|
130
|
+
emptyHidden: boolean;
|
|
131
|
+
errorHidden: boolean;
|
|
132
|
+
signInHidden: boolean;
|
|
133
|
+
forbiddenHidden: boolean;
|
|
134
|
+
notInstalledHidden: boolean;
|
|
135
|
+
moreHidden: boolean;
|
|
136
|
+
backHidden: boolean;
|
|
137
|
+
uploadHidden: boolean;
|
|
138
|
+
messageHidden: boolean;
|
|
139
|
+
}>;
|
|
140
|
+
retry: () => Promise<{
|
|
141
|
+
status: FileShareStatus;
|
|
142
|
+
/** "" is the library root. */
|
|
143
|
+
folderId: string;
|
|
144
|
+
trail: Crumb[];
|
|
145
|
+
folderTitle: string;
|
|
146
|
+
query: string;
|
|
147
|
+
rows: FileShareRow[];
|
|
148
|
+
nextCursor: string;
|
|
149
|
+
canUpload: boolean;
|
|
150
|
+
/** An open, save or upload is running: their buttons are disabled. */
|
|
151
|
+
busy: boolean;
|
|
152
|
+
/** A "Show more" page is being read. */
|
|
153
|
+
moreBusy: boolean;
|
|
154
|
+
/** One line about the last open, save, upload or page read. */
|
|
155
|
+
message: string;
|
|
156
|
+
emptyText: string;
|
|
157
|
+
loadingHidden: boolean;
|
|
158
|
+
contentHidden: boolean;
|
|
159
|
+
emptyHidden: boolean;
|
|
160
|
+
errorHidden: boolean;
|
|
161
|
+
signInHidden: boolean;
|
|
162
|
+
forbiddenHidden: boolean;
|
|
163
|
+
notInstalledHidden: boolean;
|
|
164
|
+
moreHidden: boolean;
|
|
165
|
+
backHidden: boolean;
|
|
166
|
+
uploadHidden: boolean;
|
|
167
|
+
messageHidden: boolean;
|
|
168
|
+
}>;
|
|
169
|
+
back: () => Promise<{
|
|
170
|
+
status: FileShareStatus;
|
|
171
|
+
/** "" is the library root. */
|
|
172
|
+
folderId: string;
|
|
173
|
+
trail: Crumb[];
|
|
174
|
+
folderTitle: string;
|
|
175
|
+
query: string;
|
|
176
|
+
rows: FileShareRow[];
|
|
177
|
+
nextCursor: string;
|
|
178
|
+
canUpload: boolean;
|
|
179
|
+
/** An open, save or upload is running: their buttons are disabled. */
|
|
180
|
+
busy: boolean;
|
|
181
|
+
/** A "Show more" page is being read. */
|
|
182
|
+
moreBusy: boolean;
|
|
183
|
+
/** One line about the last open, save, upload or page read. */
|
|
184
|
+
message: string;
|
|
185
|
+
emptyText: string;
|
|
186
|
+
loadingHidden: boolean;
|
|
187
|
+
contentHidden: boolean;
|
|
188
|
+
emptyHidden: boolean;
|
|
189
|
+
errorHidden: boolean;
|
|
190
|
+
signInHidden: boolean;
|
|
191
|
+
forbiddenHidden: boolean;
|
|
192
|
+
notInstalledHidden: boolean;
|
|
193
|
+
moreHidden: boolean;
|
|
194
|
+
backHidden: boolean;
|
|
195
|
+
uploadHidden: boolean;
|
|
196
|
+
messageHidden: boolean;
|
|
197
|
+
}>;
|
|
198
|
+
search: (arg?: {
|
|
199
|
+
value?: unknown;
|
|
200
|
+
}) => Promise<{
|
|
201
|
+
status: FileShareStatus;
|
|
202
|
+
/** "" is the library root. */
|
|
203
|
+
folderId: string;
|
|
204
|
+
trail: Crumb[];
|
|
205
|
+
folderTitle: string;
|
|
206
|
+
query: string;
|
|
207
|
+
rows: FileShareRow[];
|
|
208
|
+
nextCursor: string;
|
|
209
|
+
canUpload: boolean;
|
|
210
|
+
/** An open, save or upload is running: their buttons are disabled. */
|
|
211
|
+
busy: boolean;
|
|
212
|
+
/** A "Show more" page is being read. */
|
|
213
|
+
moreBusy: boolean;
|
|
214
|
+
/** One line about the last open, save, upload or page read. */
|
|
215
|
+
message: string;
|
|
216
|
+
emptyText: string;
|
|
217
|
+
loadingHidden: boolean;
|
|
218
|
+
contentHidden: boolean;
|
|
219
|
+
emptyHidden: boolean;
|
|
220
|
+
errorHidden: boolean;
|
|
221
|
+
signInHidden: boolean;
|
|
222
|
+
forbiddenHidden: boolean;
|
|
223
|
+
notInstalledHidden: boolean;
|
|
224
|
+
moreHidden: boolean;
|
|
225
|
+
backHidden: boolean;
|
|
226
|
+
uploadHidden: boolean;
|
|
227
|
+
messageHidden: boolean;
|
|
228
|
+
}>;
|
|
229
|
+
loadMore: () => Promise<{
|
|
230
|
+
status: FileShareStatus;
|
|
231
|
+
/** "" is the library root. */
|
|
232
|
+
folderId: string;
|
|
233
|
+
trail: Crumb[];
|
|
234
|
+
folderTitle: string;
|
|
235
|
+
query: string;
|
|
236
|
+
rows: FileShareRow[];
|
|
237
|
+
nextCursor: string;
|
|
238
|
+
canUpload: boolean;
|
|
239
|
+
/** An open, save or upload is running: their buttons are disabled. */
|
|
240
|
+
busy: boolean;
|
|
241
|
+
/** A "Show more" page is being read. */
|
|
242
|
+
moreBusy: boolean;
|
|
243
|
+
/** One line about the last open, save, upload or page read. */
|
|
244
|
+
message: string;
|
|
245
|
+
emptyText: string;
|
|
246
|
+
loadingHidden: boolean;
|
|
247
|
+
contentHidden: boolean;
|
|
248
|
+
emptyHidden: boolean;
|
|
249
|
+
errorHidden: boolean;
|
|
250
|
+
signInHidden: boolean;
|
|
251
|
+
forbiddenHidden: boolean;
|
|
252
|
+
notInstalledHidden: boolean;
|
|
253
|
+
moreHidden: boolean;
|
|
254
|
+
backHidden: boolean;
|
|
255
|
+
uploadHidden: boolean;
|
|
256
|
+
messageHidden: boolean;
|
|
257
|
+
}>;
|
|
258
|
+
open: (arg?: {
|
|
259
|
+
id?: unknown;
|
|
260
|
+
}) => Promise<{
|
|
261
|
+
status: FileShareStatus;
|
|
262
|
+
/** "" is the library root. */
|
|
263
|
+
folderId: string;
|
|
264
|
+
trail: Crumb[];
|
|
265
|
+
folderTitle: string;
|
|
266
|
+
query: string;
|
|
267
|
+
rows: FileShareRow[];
|
|
268
|
+
nextCursor: string;
|
|
269
|
+
canUpload: boolean;
|
|
270
|
+
/** An open, save or upload is running: their buttons are disabled. */
|
|
271
|
+
busy: boolean;
|
|
272
|
+
/** A "Show more" page is being read. */
|
|
273
|
+
moreBusy: boolean;
|
|
274
|
+
/** One line about the last open, save, upload or page read. */
|
|
275
|
+
message: string;
|
|
276
|
+
emptyText: string;
|
|
277
|
+
loadingHidden: boolean;
|
|
278
|
+
contentHidden: boolean;
|
|
279
|
+
emptyHidden: boolean;
|
|
280
|
+
errorHidden: boolean;
|
|
281
|
+
signInHidden: boolean;
|
|
282
|
+
forbiddenHidden: boolean;
|
|
283
|
+
notInstalledHidden: boolean;
|
|
284
|
+
moreHidden: boolean;
|
|
285
|
+
backHidden: boolean;
|
|
286
|
+
uploadHidden: boolean;
|
|
287
|
+
messageHidden: boolean;
|
|
288
|
+
}>;
|
|
289
|
+
save: (arg?: {
|
|
290
|
+
id?: unknown;
|
|
291
|
+
}) => Promise<{
|
|
292
|
+
status: FileShareStatus;
|
|
293
|
+
/** "" is the library root. */
|
|
294
|
+
folderId: string;
|
|
295
|
+
trail: Crumb[];
|
|
296
|
+
folderTitle: string;
|
|
297
|
+
query: string;
|
|
298
|
+
rows: FileShareRow[];
|
|
299
|
+
nextCursor: string;
|
|
300
|
+
canUpload: boolean;
|
|
301
|
+
/** An open, save or upload is running: their buttons are disabled. */
|
|
302
|
+
busy: boolean;
|
|
303
|
+
/** A "Show more" page is being read. */
|
|
304
|
+
moreBusy: boolean;
|
|
305
|
+
/** One line about the last open, save, upload or page read. */
|
|
306
|
+
message: string;
|
|
307
|
+
emptyText: string;
|
|
308
|
+
loadingHidden: boolean;
|
|
309
|
+
contentHidden: boolean;
|
|
310
|
+
emptyHidden: boolean;
|
|
311
|
+
errorHidden: boolean;
|
|
312
|
+
signInHidden: boolean;
|
|
313
|
+
forbiddenHidden: boolean;
|
|
314
|
+
notInstalledHidden: boolean;
|
|
315
|
+
moreHidden: boolean;
|
|
316
|
+
backHidden: boolean;
|
|
317
|
+
uploadHidden: boolean;
|
|
318
|
+
messageHidden: boolean;
|
|
319
|
+
}>;
|
|
320
|
+
upload: () => Promise<{
|
|
321
|
+
status: FileShareStatus;
|
|
322
|
+
/** "" is the library root. */
|
|
323
|
+
folderId: string;
|
|
324
|
+
trail: Crumb[];
|
|
325
|
+
folderTitle: string;
|
|
326
|
+
query: string;
|
|
327
|
+
rows: FileShareRow[];
|
|
328
|
+
nextCursor: string;
|
|
329
|
+
canUpload: boolean;
|
|
330
|
+
/** An open, save or upload is running: their buttons are disabled. */
|
|
331
|
+
busy: boolean;
|
|
332
|
+
/** A "Show more" page is being read. */
|
|
333
|
+
moreBusy: boolean;
|
|
334
|
+
/** One line about the last open, save, upload or page read. */
|
|
335
|
+
message: string;
|
|
336
|
+
emptyText: string;
|
|
337
|
+
loadingHidden: boolean;
|
|
338
|
+
contentHidden: boolean;
|
|
339
|
+
emptyHidden: boolean;
|
|
340
|
+
errorHidden: boolean;
|
|
341
|
+
signInHidden: boolean;
|
|
342
|
+
forbiddenHidden: boolean;
|
|
343
|
+
notInstalledHidden: boolean;
|
|
344
|
+
moreHidden: boolean;
|
|
345
|
+
backHidden: boolean;
|
|
346
|
+
uploadHidden: boolean;
|
|
347
|
+
messageHidden: boolean;
|
|
348
|
+
}>;
|
|
349
|
+
settleRead: (result: ReadResult) => Promise<{
|
|
350
|
+
status: FileShareStatus;
|
|
351
|
+
/** "" is the library root. */
|
|
352
|
+
folderId: string;
|
|
353
|
+
trail: Crumb[];
|
|
354
|
+
folderTitle: string;
|
|
355
|
+
query: string;
|
|
356
|
+
rows: FileShareRow[];
|
|
357
|
+
nextCursor: string;
|
|
358
|
+
canUpload: boolean;
|
|
359
|
+
/** An open, save or upload is running: their buttons are disabled. */
|
|
360
|
+
busy: boolean;
|
|
361
|
+
/** A "Show more" page is being read. */
|
|
362
|
+
moreBusy: boolean;
|
|
363
|
+
/** One line about the last open, save, upload or page read. */
|
|
364
|
+
message: string;
|
|
365
|
+
emptyText: string;
|
|
366
|
+
loadingHidden: boolean;
|
|
367
|
+
contentHidden: boolean;
|
|
368
|
+
emptyHidden: boolean;
|
|
369
|
+
errorHidden: boolean;
|
|
370
|
+
signInHidden: boolean;
|
|
371
|
+
forbiddenHidden: boolean;
|
|
372
|
+
notInstalledHidden: boolean;
|
|
373
|
+
moreHidden: boolean;
|
|
374
|
+
backHidden: boolean;
|
|
375
|
+
uploadHidden: boolean;
|
|
376
|
+
messageHidden: boolean;
|
|
377
|
+
}>;
|
|
378
|
+
settle: (arg?: {
|
|
379
|
+
message?: unknown;
|
|
380
|
+
refreshFolder?: unknown;
|
|
381
|
+
}) => Promise<{
|
|
382
|
+
status: FileShareStatus;
|
|
383
|
+
/** "" is the library root. */
|
|
384
|
+
folderId: string;
|
|
385
|
+
trail: Crumb[];
|
|
386
|
+
folderTitle: string;
|
|
387
|
+
query: string;
|
|
388
|
+
rows: FileShareRow[];
|
|
389
|
+
nextCursor: string;
|
|
390
|
+
canUpload: boolean;
|
|
391
|
+
/** An open, save or upload is running: their buttons are disabled. */
|
|
392
|
+
busy: boolean;
|
|
393
|
+
/** A "Show more" page is being read. */
|
|
394
|
+
moreBusy: boolean;
|
|
395
|
+
/** One line about the last open, save, upload or page read. */
|
|
396
|
+
message: string;
|
|
397
|
+
emptyText: string;
|
|
398
|
+
loadingHidden: boolean;
|
|
399
|
+
contentHidden: boolean;
|
|
400
|
+
emptyHidden: boolean;
|
|
401
|
+
errorHidden: boolean;
|
|
402
|
+
signInHidden: boolean;
|
|
403
|
+
forbiddenHidden: boolean;
|
|
404
|
+
notInstalledHidden: boolean;
|
|
405
|
+
moreHidden: boolean;
|
|
406
|
+
backHidden: boolean;
|
|
407
|
+
uploadHidden: boolean;
|
|
408
|
+
messageHidden: boolean;
|
|
409
|
+
}>;
|
|
410
|
+
progress: (arg?: {
|
|
411
|
+
message?: unknown;
|
|
412
|
+
}) => Promise<{
|
|
413
|
+
status: FileShareStatus;
|
|
414
|
+
/** "" is the library root. */
|
|
415
|
+
folderId: string;
|
|
416
|
+
trail: Crumb[];
|
|
417
|
+
folderTitle: string;
|
|
418
|
+
query: string;
|
|
419
|
+
rows: FileShareRow[];
|
|
420
|
+
nextCursor: string;
|
|
421
|
+
canUpload: boolean;
|
|
422
|
+
/** An open, save or upload is running: their buttons are disabled. */
|
|
423
|
+
busy: boolean;
|
|
424
|
+
/** A "Show more" page is being read. */
|
|
425
|
+
moreBusy: boolean;
|
|
426
|
+
/** One line about the last open, save, upload or page read. */
|
|
427
|
+
message: string;
|
|
428
|
+
emptyText: string;
|
|
429
|
+
loadingHidden: boolean;
|
|
430
|
+
contentHidden: boolean;
|
|
431
|
+
emptyHidden: boolean;
|
|
432
|
+
errorHidden: boolean;
|
|
433
|
+
signInHidden: boolean;
|
|
434
|
+
forbiddenHidden: boolean;
|
|
435
|
+
notInstalledHidden: boolean;
|
|
436
|
+
moreHidden: boolean;
|
|
437
|
+
backHidden: boolean;
|
|
438
|
+
uploadHidden: boolean;
|
|
439
|
+
messageHidden: boolean;
|
|
440
|
+
}>;
|
|
441
|
+
};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export * from "./business-contact.js";
|
|
2
2
|
export * from "./business-contact-service.js";
|
|
3
|
+
export * from "./file-share-service.js";
|
|
4
|
+
export * from "./file-share-screen.js";
|
|
3
5
|
export * from "./one-app-page.js";
|
|
4
6
|
export * from "./one-app-visibility.js";
|
|
5
7
|
export * from "./one-app-section.js";
|