@vertigis/viewer-spec 50.4.0 → 50.5.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/analytics/MobileAction.d.ts +8 -0
- package/messaging/registry/file.d.ts +84 -0
- package/messaging/registry/file.js +1 -1
- package/package.json +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -28,6 +28,14 @@ export declare type MobileAction = CommonAction
|
|
|
28
28
|
* Generic action. Payload: [wkid, transformation name].
|
|
29
29
|
*/
|
|
30
30
|
| "gnss-device-transformation-override"
|
|
31
|
+
/**
|
|
32
|
+
* RunTimedAction OR EndTimedAction.
|
|
33
|
+
*/
|
|
34
|
+
| "file-initial-download"
|
|
35
|
+
/**
|
|
36
|
+
* RunTimedAction OR EndTimedAction.
|
|
37
|
+
*/
|
|
38
|
+
| "file-update-download"
|
|
31
39
|
/**
|
|
32
40
|
* RunTimedAction OR EndTimedAction.
|
|
33
41
|
*/
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/// <reference types="dotnet-bcl" />
|
|
2
|
+
import type PortalItem from "@arcgis/core/portal/PortalItem.js";
|
|
3
|
+
import type Exception from "dotnet-bcl/System/Exception";
|
|
1
4
|
import type { Command } from "../Command.js";
|
|
2
5
|
import { CommandRegistry } from "../CommandRegistry.js";
|
|
3
6
|
import type { Event } from "../Event.js";
|
|
@@ -41,6 +44,75 @@ export interface OpenFileArgs {
|
|
|
41
44
|
*/
|
|
42
45
|
fileName: string;
|
|
43
46
|
}
|
|
47
|
+
/**
|
|
48
|
+
* Information about a file download.
|
|
49
|
+
*/
|
|
50
|
+
export interface FileDownloadInfo {
|
|
51
|
+
/**
|
|
52
|
+
* The portal item from which this file is being downloaded.
|
|
53
|
+
*/
|
|
54
|
+
portalItem: PortalItem;
|
|
55
|
+
/**
|
|
56
|
+
* The full path of the file being downloaded.
|
|
57
|
+
*/
|
|
58
|
+
filePath: string;
|
|
59
|
+
/**
|
|
60
|
+
* A value indicating whether this download is updating a file. If true, it
|
|
61
|
+
* means that the file already existed on disk and a new version is being downloaded.
|
|
62
|
+
*/
|
|
63
|
+
isUpdating: boolean;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Arguments for the 'file.download-started' event.
|
|
67
|
+
*/
|
|
68
|
+
export interface FileDownloadStartedEventArgs {
|
|
69
|
+
/**
|
|
70
|
+
* The collection of FileDownloadInfos describing the file downloads that
|
|
71
|
+
* have started.
|
|
72
|
+
*/
|
|
73
|
+
fileDownloadInfos: FileDownloadInfo[];
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* The status of a portal item download job.
|
|
77
|
+
*/
|
|
78
|
+
export declare type PortalItemDownloadJobStatus =
|
|
79
|
+
/**
|
|
80
|
+
* Job is not started; either newly created or previously cancelled.
|
|
81
|
+
*/
|
|
82
|
+
"NotStarted"
|
|
83
|
+
/**
|
|
84
|
+
* Download is in progress.
|
|
85
|
+
*/
|
|
86
|
+
| "InProgress"
|
|
87
|
+
/**
|
|
88
|
+
* Download has been interrupted.
|
|
89
|
+
*/
|
|
90
|
+
| "Interrupted"
|
|
91
|
+
/**
|
|
92
|
+
* Download has completed successfully.
|
|
93
|
+
*/
|
|
94
|
+
| "Completed"
|
|
95
|
+
/**
|
|
96
|
+
* The job has failed.
|
|
97
|
+
*/
|
|
98
|
+
| "Failed";
|
|
99
|
+
/**
|
|
100
|
+
* Arguments for the "file.download-ended" event.
|
|
101
|
+
*/
|
|
102
|
+
export interface FileDownloadEndedEventArgs extends FileDownloadInfo {
|
|
103
|
+
/**
|
|
104
|
+
* The status of the file download.
|
|
105
|
+
*/
|
|
106
|
+
status: PortalItemDownloadJobStatus;
|
|
107
|
+
/**
|
|
108
|
+
* The exception that occurred during the file download.
|
|
109
|
+
*/
|
|
110
|
+
exception?: Exception;
|
|
111
|
+
/**
|
|
112
|
+
* The duration of the download, in milliseconds.
|
|
113
|
+
*/
|
|
114
|
+
downloadDuration: number;
|
|
115
|
+
}
|
|
44
116
|
export declare class FileOperations extends OperationRegistry {
|
|
45
117
|
/**
|
|
46
118
|
* Prompt the user to select a file from the file system, and return the
|
|
@@ -65,4 +137,16 @@ export declare class FileEvents extends EventRegistry {
|
|
|
65
137
|
* @mobileOnly
|
|
66
138
|
*/
|
|
67
139
|
get opened(): Event<OpenFileArgs>;
|
|
140
|
+
/**
|
|
141
|
+
* Raised when a file download starts or resumes.
|
|
142
|
+
*
|
|
143
|
+
* @mobileOnly
|
|
144
|
+
*/
|
|
145
|
+
get downloadStarted(): Event<FileDownloadStartedEventArgs>;
|
|
146
|
+
/**
|
|
147
|
+
* Raised when a file download ends.
|
|
148
|
+
*
|
|
149
|
+
* @mobileOnly
|
|
150
|
+
*/
|
|
151
|
+
get downloadEnded(): Event<FileDownloadEndedEventArgs>;
|
|
68
152
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{CommandRegistry}from"../CommandRegistry.js";import{EventRegistry}from"../EventRegistry.js";import{OperationRegistry}from"../OperationRegistry.js";export class FileOperations extends OperationRegistry{get pickFile(){return this._messages.operation("file.pick-file")}}export class FileCommands extends CommandRegistry{get openFile(){return this._messages.command("file.open-file")}}export class FileEvents extends EventRegistry{get opened(){return this._messages.event("file.opened")}}
|
|
1
|
+
import{CommandRegistry}from"../CommandRegistry.js";import{EventRegistry}from"../EventRegistry.js";import{OperationRegistry}from"../OperationRegistry.js";export class FileOperations extends OperationRegistry{get pickFile(){return this._messages.operation("file.pick-file")}}export class FileCommands extends CommandRegistry{get openFile(){return this._messages.command("file.open-file")}}export class FileEvents extends EventRegistry{get opened(){return this._messages.event("file.opened")}get downloadStarted(){return this._messages.event("file.download-started")}get downloadEnded(){return this._messages.event("file.download-ended")}}
|
package/package.json
CHANGED
package/version.d.ts
CHANGED
package/version.js
CHANGED