@capgo/capacitor-zebra-datawedge 8.0.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/CapgoCapacitorZebraDataWedge.podspec +17 -0
- package/LICENSE +373 -0
- package/Package.swift +28 -0
- package/README.md +939 -0
- package/android/build.gradle +60 -0
- package/android/src/main/AndroidManifest.xml +2 -0
- package/android/src/main/java/app/capgo/zebradatawedge/ZebraDataWedge.java +310 -0
- package/android/src/main/java/app/capgo/zebradatawedge/ZebraDataWedgePlugin.java +990 -0
- package/android/src/main/res/.gitkeep +0 -0
- package/dist/docs.json +1607 -0
- package/dist/esm/definitions.d.ts +263 -0
- package/dist/esm/definitions.js +87 -0
- package/dist/esm/definitions.js.map +1 -0
- package/dist/esm/index.d.ts +49 -0
- package/dist/esm/index.js +77 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/web.d.ts +65 -0
- package/dist/esm/web.js +115 -0
- package/dist/esm/web.js.map +1 -0
- package/dist/plugin.cjs.js +290 -0
- package/dist/plugin.cjs.js.map +1 -0
- package/dist/plugin.js +293 -0
- package/dist/plugin.js.map +1 -0
- package/ios/Sources/ZebraDataWedgePlugin/ZebraDataWedge.swift +7 -0
- package/ios/Sources/ZebraDataWedgePlugin/ZebraDataWedgePlugin.swift +92 -0
- package/ios/Tests/ZebraDataWedgePluginTests/ZebraDataWedgePluginTests.swift +12 -0
- package/package.json +91 -0
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
import type { Plugin, PluginListenerHandle } from '@capacitor/core';
|
|
2
|
+
export interface PluginVersionResult {
|
|
3
|
+
version: string;
|
|
4
|
+
}
|
|
5
|
+
export declare enum DataWedgeConfigMode {
|
|
6
|
+
CREATE_IF_NOT_EXIST = "CREATE_IF_NOT_EXIST",
|
|
7
|
+
OVERWRITE = "OVERWRITE",
|
|
8
|
+
REMOVE = "REMOVE",
|
|
9
|
+
UPDATE = "UPDATE"
|
|
10
|
+
}
|
|
11
|
+
export declare enum DataWedgeNotificationType {
|
|
12
|
+
CONFIGURATION_UPDATE = "CONFIGURATION_UPDATE",
|
|
13
|
+
PROFILE_SWITCH = "PROFILE_SWITCH",
|
|
14
|
+
SCANNER_STATUS = "SCANNER_STATUS"
|
|
15
|
+
}
|
|
16
|
+
export declare enum DataWedgePlugin {
|
|
17
|
+
ADF = "ADF",
|
|
18
|
+
BARCODE = "BARCODE",
|
|
19
|
+
BDF = "BDF",
|
|
20
|
+
DCP = "DCP",
|
|
21
|
+
EKB = "EKB",
|
|
22
|
+
INTENT = "INTENT",
|
|
23
|
+
IP = "IP",
|
|
24
|
+
KEYSTROKE = "KEYSTROKE",
|
|
25
|
+
MSR = "MSR",
|
|
26
|
+
RFID = "RFID",
|
|
27
|
+
SERIAL = "SERIAL",
|
|
28
|
+
TOKENS = "TOKENS",
|
|
29
|
+
VOICE = "VOICE"
|
|
30
|
+
}
|
|
31
|
+
export declare enum ScannerIdentifier {
|
|
32
|
+
AUTO = "AUTO",
|
|
33
|
+
BLUETOOTH_DS3678 = "BLUETOOTH_DS3678",
|
|
34
|
+
BLUETOOTH_RS6000 = "BLUETOOTH_RS6000",
|
|
35
|
+
BLUETOOTH_SSI = "BLUETOOTH_SSI",
|
|
36
|
+
INTERNAL_CAMERA = "INTERNAL_CAMERA",
|
|
37
|
+
INTERNAL_IMAGER = "INTERNAL_IMAGER",
|
|
38
|
+
INTERNAL_LASER = "INTERNAL_LASER",
|
|
39
|
+
PLUGABLE_SSI = "PLUGABLE_SSI",
|
|
40
|
+
PLUGABLE_SSI_RS5000 = "PLUGABLE_SSI_RS5000",
|
|
41
|
+
SERIAL_SSI = "SERIAL_SSI",
|
|
42
|
+
USB_SSI_DS3608 = "USB_SSI_DS3608"
|
|
43
|
+
}
|
|
44
|
+
export declare enum ScannerStatus {
|
|
45
|
+
CONNECTED = "CONNECTED",
|
|
46
|
+
DISABLED = "DISABLED",
|
|
47
|
+
DISCONNECTED = "DISCONNECTED",
|
|
48
|
+
IDLE = "IDLE",
|
|
49
|
+
SCANNING = "SCANNING",
|
|
50
|
+
WAITING = "WAITING"
|
|
51
|
+
}
|
|
52
|
+
export declare enum ZebraErrorCodes {
|
|
53
|
+
APP_ALREADY_ASSOCIATED = "APP_ALREADY_ASSOCIATED",
|
|
54
|
+
APP_ALREADY_IN_DISABLED_LIST = "APP_ALREADY_IN_DISABLED_LIST",
|
|
55
|
+
BUNDLE_EMPTY = "BUNDLE_EMPTY",
|
|
56
|
+
CANNOT_READ_FILE = "CANNOT_READ_FILE",
|
|
57
|
+
CONFIG_FILE_NOT_EXIST = "CONFIG_FILE_NOT_EXIST",
|
|
58
|
+
DATAWEDGE_ALREADY_DISABLED = "DATAWEDGE_ALREADY_DISABLED",
|
|
59
|
+
DATAWEDGE_ALREADY_ENABLED = "DATAWEDGE_ALREADY_ENABLED",
|
|
60
|
+
DATAWEDGE_DISABLED = "DATAWEDGE_DISABLED",
|
|
61
|
+
DEVICE_NOT_CONNECTED = "DEVICE_NOT_CONNECTED",
|
|
62
|
+
DEVICE_NOT_SUPPORTED = "DEVICE_NOT_SUPPORTED",
|
|
63
|
+
INPUT_NOT_ENABLED = "INPUT_NOT_ENABLED",
|
|
64
|
+
INVALID_CONFIG_FILE = "INVALID_CONFIG_FILE",
|
|
65
|
+
INVALID_FILE_NAME = "INVALID_FILE_NAME",
|
|
66
|
+
INVALID_FOLDER_PATH = "INVALID_FOLDER_PATH",
|
|
67
|
+
OPERATION_NOT_ALLOWED = "OPERATION_NOT_ALLOWED",
|
|
68
|
+
PARAMETER_INVALID = "PARAMETER_INVALID",
|
|
69
|
+
PLUGIN_BUNDLE_INVALID = "PLUGIN_BUNDLE_INVALID",
|
|
70
|
+
PLUGIN_DISABLED = "PLUGIN_DISABLED",
|
|
71
|
+
PLUGIN_DISABLED_IN_CONFIG = "PLUGIN_DISABLED_IN_CONFIG",
|
|
72
|
+
PLUGIN_NOT_SUPPORTED = "PLUGIN_NOT_SUPPORTED",
|
|
73
|
+
PROFILE_ALREADY_EXISTS = "PROFILE_ALREADY_EXISTS",
|
|
74
|
+
PROFILE_ALREADY_SET = "PROFILE_ALREADY_SET",
|
|
75
|
+
PROFILE_DISABLED = "PROFILE_DISABLED",
|
|
76
|
+
PROFILE_HAS_APP_ASSOCIATION = "PROFILE_HAS_APP_ASSOCIATION",
|
|
77
|
+
PROFILE_NAME_EMPTY = "PROFILE_NAME_EMPTY",
|
|
78
|
+
PROFILE_NOT_FOUND = "PROFILE_NOT_FOUND",
|
|
79
|
+
SCANNER_ALREADY_DISABLED = "SCANNER_ALREADY_DISABLED",
|
|
80
|
+
SCANNER_ALREADY_ENABLED = "SCANNER_ALREADY_ENABLED",
|
|
81
|
+
SCANNER_DISABLE_FAILED = "SCANNER_DISABLE_FAILED",
|
|
82
|
+
SCANNER_ENABLE_FAILED = "SCANNER_ENABLE_FAILED",
|
|
83
|
+
UNKNOWN = "UNKNOWN"
|
|
84
|
+
}
|
|
85
|
+
export type DataWedgeScalar = string | number | boolean | null;
|
|
86
|
+
export type DataWedgeParameterValue = DataWedgeScalar | DataWedgeScalar[] | DataWedgePluginParameters | DataWedgePluginParameters[];
|
|
87
|
+
export interface DataWedgePluginParameters {
|
|
88
|
+
[key: string]: DataWedgeParameterValue;
|
|
89
|
+
}
|
|
90
|
+
export interface CloneProfileOptions {
|
|
91
|
+
destProfileName: string;
|
|
92
|
+
sourceProfileName: string;
|
|
93
|
+
}
|
|
94
|
+
export interface CreateProfileOptions {
|
|
95
|
+
profileName: string;
|
|
96
|
+
}
|
|
97
|
+
export interface DataWedgeAppConfig {
|
|
98
|
+
activityList: string[];
|
|
99
|
+
packageName: string;
|
|
100
|
+
}
|
|
101
|
+
export interface DataWedgeNotifyOptions {
|
|
102
|
+
deviceIdentifier: string;
|
|
103
|
+
notificationSettings: number[];
|
|
104
|
+
}
|
|
105
|
+
export interface DataWedgePluginConfig {
|
|
106
|
+
outputPluginName?: DataWedgePlugin;
|
|
107
|
+
paramList: DataWedgePluginParameters;
|
|
108
|
+
pluginName: DataWedgePlugin;
|
|
109
|
+
resetConfig?: boolean;
|
|
110
|
+
}
|
|
111
|
+
export interface DeleteProfileOptions {
|
|
112
|
+
profileNames: string[];
|
|
113
|
+
}
|
|
114
|
+
export interface PluginConfigOptions {
|
|
115
|
+
outputPluginName?: DataWedgePlugin;
|
|
116
|
+
pluginName: DataWedgePlugin;
|
|
117
|
+
}
|
|
118
|
+
export interface GetConfigOptions {
|
|
119
|
+
pluginConfigs?: PluginConfigOptions[];
|
|
120
|
+
profileName: string;
|
|
121
|
+
}
|
|
122
|
+
export interface ImportConfigOptions {
|
|
123
|
+
fileList?: string[];
|
|
124
|
+
folderPath: string;
|
|
125
|
+
}
|
|
126
|
+
export interface RegisterForNotificationOptions {
|
|
127
|
+
appName?: string;
|
|
128
|
+
callback?: (notification: ZebraNotificationEvent) => void;
|
|
129
|
+
intentAction?: string;
|
|
130
|
+
notificationType: DataWedgeNotificationType;
|
|
131
|
+
}
|
|
132
|
+
export interface RenameProfileOptions {
|
|
133
|
+
currentProfileName: string;
|
|
134
|
+
newProfileName: string;
|
|
135
|
+
}
|
|
136
|
+
export interface ReportingOptions {
|
|
137
|
+
reportingEnabled: boolean;
|
|
138
|
+
reportingGenerateOption?: 'manual' | 'auto' | 'both';
|
|
139
|
+
reportingShowForManualImport?: boolean;
|
|
140
|
+
}
|
|
141
|
+
export interface SetConfigOptions {
|
|
142
|
+
appList?: DataWedgeAppConfig[];
|
|
143
|
+
configMode?: DataWedgeConfigMode;
|
|
144
|
+
pluginConfigs?: DataWedgePluginConfig[];
|
|
145
|
+
profileEnabled?: boolean;
|
|
146
|
+
profileName: string;
|
|
147
|
+
}
|
|
148
|
+
export interface SetDisabledAppListOptions {
|
|
149
|
+
appList?: DataWedgeAppConfig[];
|
|
150
|
+
configMode: DataWedgeConfigMode;
|
|
151
|
+
}
|
|
152
|
+
export interface SwitchScannerParamsOptions {
|
|
153
|
+
scannerIdentifier: ScannerIdentifier;
|
|
154
|
+
scannerParams: DataWedgePluginParameters;
|
|
155
|
+
}
|
|
156
|
+
export interface ZebraDeviceScanner {
|
|
157
|
+
connectionState: boolean;
|
|
158
|
+
id?: string;
|
|
159
|
+
index: number;
|
|
160
|
+
name: string;
|
|
161
|
+
}
|
|
162
|
+
export interface ZebraDeviceVersionInfo {
|
|
163
|
+
barcodeVersion?: string;
|
|
164
|
+
dataWedgeVersion?: string;
|
|
165
|
+
decoderVersion?: string;
|
|
166
|
+
scannerFirmwareVersions?: string[];
|
|
167
|
+
simulScanVersion?: string;
|
|
168
|
+
}
|
|
169
|
+
export interface ZebraError {
|
|
170
|
+
code: ZebraErrorCodes | string;
|
|
171
|
+
message: string;
|
|
172
|
+
}
|
|
173
|
+
export interface ZebraProfileConfiguration {
|
|
174
|
+
appList?: DataWedgeAppConfig[];
|
|
175
|
+
pluginConfigList: DataWedgePluginConfig[];
|
|
176
|
+
profileEnabled: boolean;
|
|
177
|
+
profileName: string;
|
|
178
|
+
}
|
|
179
|
+
export interface ZebraScanResult {
|
|
180
|
+
data: string;
|
|
181
|
+
decodedMode?: string;
|
|
182
|
+
intentAction?: string;
|
|
183
|
+
labelType?: string;
|
|
184
|
+
source?: string;
|
|
185
|
+
}
|
|
186
|
+
export interface ZebraNotificationEvent {
|
|
187
|
+
notificationType: string;
|
|
188
|
+
profileName?: string;
|
|
189
|
+
scannerStatus?: ScannerStatus | string;
|
|
190
|
+
status?: string;
|
|
191
|
+
raw: Record<string, unknown>;
|
|
192
|
+
}
|
|
193
|
+
export interface DataWedgeStatusResult {
|
|
194
|
+
isEnabled: boolean;
|
|
195
|
+
}
|
|
196
|
+
export interface IgnoreDisabledProfilesResult {
|
|
197
|
+
enabled: boolean;
|
|
198
|
+
}
|
|
199
|
+
export interface ZebraDataWedgePlugin extends Plugin {
|
|
200
|
+
cloneProfile(options: CloneProfileOptions): Promise<void>;
|
|
201
|
+
createProfile(options: CreateProfileOptions): Promise<void>;
|
|
202
|
+
deleteProfile(options: DeleteProfileOptions): Promise<void>;
|
|
203
|
+
importConfig(options: ImportConfigOptions): Promise<void>;
|
|
204
|
+
renameProfile(options: RenameProfileOptions): Promise<void>;
|
|
205
|
+
restoreConfig(): Promise<void>;
|
|
206
|
+
setConfig(options: SetConfigOptions): Promise<void>;
|
|
207
|
+
setDisabledAppList(options: SetDisabledAppListOptions): Promise<void>;
|
|
208
|
+
setIgnoreDisabledProfiles(options: IgnoreDisabledProfilesResult): Promise<void>;
|
|
209
|
+
registerForNotification(options: Omit<RegisterForNotificationOptions, 'callback'>): Promise<void>;
|
|
210
|
+
unRegisterForNotification(options: Omit<RegisterForNotificationOptions, 'callback'>): Promise<void>;
|
|
211
|
+
enumerateScanners(): Promise<{
|
|
212
|
+
scanners: ZebraDeviceScanner[];
|
|
213
|
+
}>;
|
|
214
|
+
getActiveProfile(): Promise<{
|
|
215
|
+
profileName: string;
|
|
216
|
+
}>;
|
|
217
|
+
getAssociatedApps(options: {
|
|
218
|
+
profileName: string;
|
|
219
|
+
}): Promise<{
|
|
220
|
+
appList: DataWedgeAppConfig[];
|
|
221
|
+
}>;
|
|
222
|
+
getConfig(options: GetConfigOptions): Promise<ZebraProfileConfiguration>;
|
|
223
|
+
getDatawedgeStatus(): Promise<DataWedgeStatusResult>;
|
|
224
|
+
getDisabledAppList(): Promise<{
|
|
225
|
+
appList: DataWedgeAppConfig[];
|
|
226
|
+
}>;
|
|
227
|
+
getIgnoreDisabledProfiles(): Promise<IgnoreDisabledProfilesResult>;
|
|
228
|
+
getProfilesList(): Promise<{
|
|
229
|
+
profiles: string[];
|
|
230
|
+
}>;
|
|
231
|
+
getScannerStatus(): Promise<{
|
|
232
|
+
status: ScannerStatus | string;
|
|
233
|
+
}>;
|
|
234
|
+
getVersionInfo(): Promise<ZebraDeviceVersionInfo>;
|
|
235
|
+
disableDatawedge(): Promise<void>;
|
|
236
|
+
disableScannerInput(): Promise<void>;
|
|
237
|
+
enableDatawedge(): Promise<void>;
|
|
238
|
+
enableScannerInput(): Promise<void>;
|
|
239
|
+
enumerateTriggers(): Promise<{
|
|
240
|
+
triggers: string[];
|
|
241
|
+
}>;
|
|
242
|
+
notify(options: DataWedgeNotifyOptions): Promise<void>;
|
|
243
|
+
resetDefaultProfile(): Promise<void>;
|
|
244
|
+
setDefaultProfile(options: {
|
|
245
|
+
profileName: string;
|
|
246
|
+
}): Promise<void>;
|
|
247
|
+
setReportingOptions(options: ReportingOptions): Promise<void>;
|
|
248
|
+
softRfidTrigger(): Promise<ZebraScanResult>;
|
|
249
|
+
softScanTrigger(options: {
|
|
250
|
+
intentAction: string;
|
|
251
|
+
}): Promise<ZebraScanResult>;
|
|
252
|
+
switchScanner(options: {
|
|
253
|
+
scannerIndex?: string;
|
|
254
|
+
scannerIdentifier?: ScannerIdentifier;
|
|
255
|
+
}): Promise<void>;
|
|
256
|
+
switchScannerParams(options: SwitchScannerParamsOptions): Promise<void>;
|
|
257
|
+
switchToProfile(options: {
|
|
258
|
+
profileName: string;
|
|
259
|
+
}): Promise<void>;
|
|
260
|
+
getPluginVersion(): Promise<PluginVersionResult>;
|
|
261
|
+
addListener(eventName: 'scan', listenerFunc: (event: ZebraScanResult) => void): Promise<PluginListenerHandle>;
|
|
262
|
+
addListener(eventName: 'notification', listenerFunc: (event: ZebraNotificationEvent) => void): Promise<PluginListenerHandle>;
|
|
263
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
export var DataWedgeConfigMode;
|
|
2
|
+
(function (DataWedgeConfigMode) {
|
|
3
|
+
DataWedgeConfigMode["CREATE_IF_NOT_EXIST"] = "CREATE_IF_NOT_EXIST";
|
|
4
|
+
DataWedgeConfigMode["OVERWRITE"] = "OVERWRITE";
|
|
5
|
+
DataWedgeConfigMode["REMOVE"] = "REMOVE";
|
|
6
|
+
DataWedgeConfigMode["UPDATE"] = "UPDATE";
|
|
7
|
+
})(DataWedgeConfigMode || (DataWedgeConfigMode = {}));
|
|
8
|
+
export var DataWedgeNotificationType;
|
|
9
|
+
(function (DataWedgeNotificationType) {
|
|
10
|
+
DataWedgeNotificationType["CONFIGURATION_UPDATE"] = "CONFIGURATION_UPDATE";
|
|
11
|
+
DataWedgeNotificationType["PROFILE_SWITCH"] = "PROFILE_SWITCH";
|
|
12
|
+
DataWedgeNotificationType["SCANNER_STATUS"] = "SCANNER_STATUS";
|
|
13
|
+
})(DataWedgeNotificationType || (DataWedgeNotificationType = {}));
|
|
14
|
+
export var DataWedgePlugin;
|
|
15
|
+
(function (DataWedgePlugin) {
|
|
16
|
+
DataWedgePlugin["ADF"] = "ADF";
|
|
17
|
+
DataWedgePlugin["BARCODE"] = "BARCODE";
|
|
18
|
+
DataWedgePlugin["BDF"] = "BDF";
|
|
19
|
+
DataWedgePlugin["DCP"] = "DCP";
|
|
20
|
+
DataWedgePlugin["EKB"] = "EKB";
|
|
21
|
+
DataWedgePlugin["INTENT"] = "INTENT";
|
|
22
|
+
DataWedgePlugin["IP"] = "IP";
|
|
23
|
+
DataWedgePlugin["KEYSTROKE"] = "KEYSTROKE";
|
|
24
|
+
DataWedgePlugin["MSR"] = "MSR";
|
|
25
|
+
DataWedgePlugin["RFID"] = "RFID";
|
|
26
|
+
DataWedgePlugin["SERIAL"] = "SERIAL";
|
|
27
|
+
DataWedgePlugin["TOKENS"] = "TOKENS";
|
|
28
|
+
DataWedgePlugin["VOICE"] = "VOICE";
|
|
29
|
+
})(DataWedgePlugin || (DataWedgePlugin = {}));
|
|
30
|
+
export var ScannerIdentifier;
|
|
31
|
+
(function (ScannerIdentifier) {
|
|
32
|
+
ScannerIdentifier["AUTO"] = "AUTO";
|
|
33
|
+
ScannerIdentifier["BLUETOOTH_DS3678"] = "BLUETOOTH_DS3678";
|
|
34
|
+
ScannerIdentifier["BLUETOOTH_RS6000"] = "BLUETOOTH_RS6000";
|
|
35
|
+
ScannerIdentifier["BLUETOOTH_SSI"] = "BLUETOOTH_SSI";
|
|
36
|
+
ScannerIdentifier["INTERNAL_CAMERA"] = "INTERNAL_CAMERA";
|
|
37
|
+
ScannerIdentifier["INTERNAL_IMAGER"] = "INTERNAL_IMAGER";
|
|
38
|
+
ScannerIdentifier["INTERNAL_LASER"] = "INTERNAL_LASER";
|
|
39
|
+
ScannerIdentifier["PLUGABLE_SSI"] = "PLUGABLE_SSI";
|
|
40
|
+
ScannerIdentifier["PLUGABLE_SSI_RS5000"] = "PLUGABLE_SSI_RS5000";
|
|
41
|
+
ScannerIdentifier["SERIAL_SSI"] = "SERIAL_SSI";
|
|
42
|
+
ScannerIdentifier["USB_SSI_DS3608"] = "USB_SSI_DS3608";
|
|
43
|
+
})(ScannerIdentifier || (ScannerIdentifier = {}));
|
|
44
|
+
export var ScannerStatus;
|
|
45
|
+
(function (ScannerStatus) {
|
|
46
|
+
ScannerStatus["CONNECTED"] = "CONNECTED";
|
|
47
|
+
ScannerStatus["DISABLED"] = "DISABLED";
|
|
48
|
+
ScannerStatus["DISCONNECTED"] = "DISCONNECTED";
|
|
49
|
+
ScannerStatus["IDLE"] = "IDLE";
|
|
50
|
+
ScannerStatus["SCANNING"] = "SCANNING";
|
|
51
|
+
ScannerStatus["WAITING"] = "WAITING";
|
|
52
|
+
})(ScannerStatus || (ScannerStatus = {}));
|
|
53
|
+
export var ZebraErrorCodes;
|
|
54
|
+
(function (ZebraErrorCodes) {
|
|
55
|
+
ZebraErrorCodes["APP_ALREADY_ASSOCIATED"] = "APP_ALREADY_ASSOCIATED";
|
|
56
|
+
ZebraErrorCodes["APP_ALREADY_IN_DISABLED_LIST"] = "APP_ALREADY_IN_DISABLED_LIST";
|
|
57
|
+
ZebraErrorCodes["BUNDLE_EMPTY"] = "BUNDLE_EMPTY";
|
|
58
|
+
ZebraErrorCodes["CANNOT_READ_FILE"] = "CANNOT_READ_FILE";
|
|
59
|
+
ZebraErrorCodes["CONFIG_FILE_NOT_EXIST"] = "CONFIG_FILE_NOT_EXIST";
|
|
60
|
+
ZebraErrorCodes["DATAWEDGE_ALREADY_DISABLED"] = "DATAWEDGE_ALREADY_DISABLED";
|
|
61
|
+
ZebraErrorCodes["DATAWEDGE_ALREADY_ENABLED"] = "DATAWEDGE_ALREADY_ENABLED";
|
|
62
|
+
ZebraErrorCodes["DATAWEDGE_DISABLED"] = "DATAWEDGE_DISABLED";
|
|
63
|
+
ZebraErrorCodes["DEVICE_NOT_CONNECTED"] = "DEVICE_NOT_CONNECTED";
|
|
64
|
+
ZebraErrorCodes["DEVICE_NOT_SUPPORTED"] = "DEVICE_NOT_SUPPORTED";
|
|
65
|
+
ZebraErrorCodes["INPUT_NOT_ENABLED"] = "INPUT_NOT_ENABLED";
|
|
66
|
+
ZebraErrorCodes["INVALID_CONFIG_FILE"] = "INVALID_CONFIG_FILE";
|
|
67
|
+
ZebraErrorCodes["INVALID_FILE_NAME"] = "INVALID_FILE_NAME";
|
|
68
|
+
ZebraErrorCodes["INVALID_FOLDER_PATH"] = "INVALID_FOLDER_PATH";
|
|
69
|
+
ZebraErrorCodes["OPERATION_NOT_ALLOWED"] = "OPERATION_NOT_ALLOWED";
|
|
70
|
+
ZebraErrorCodes["PARAMETER_INVALID"] = "PARAMETER_INVALID";
|
|
71
|
+
ZebraErrorCodes["PLUGIN_BUNDLE_INVALID"] = "PLUGIN_BUNDLE_INVALID";
|
|
72
|
+
ZebraErrorCodes["PLUGIN_DISABLED"] = "PLUGIN_DISABLED";
|
|
73
|
+
ZebraErrorCodes["PLUGIN_DISABLED_IN_CONFIG"] = "PLUGIN_DISABLED_IN_CONFIG";
|
|
74
|
+
ZebraErrorCodes["PLUGIN_NOT_SUPPORTED"] = "PLUGIN_NOT_SUPPORTED";
|
|
75
|
+
ZebraErrorCodes["PROFILE_ALREADY_EXISTS"] = "PROFILE_ALREADY_EXISTS";
|
|
76
|
+
ZebraErrorCodes["PROFILE_ALREADY_SET"] = "PROFILE_ALREADY_SET";
|
|
77
|
+
ZebraErrorCodes["PROFILE_DISABLED"] = "PROFILE_DISABLED";
|
|
78
|
+
ZebraErrorCodes["PROFILE_HAS_APP_ASSOCIATION"] = "PROFILE_HAS_APP_ASSOCIATION";
|
|
79
|
+
ZebraErrorCodes["PROFILE_NAME_EMPTY"] = "PROFILE_NAME_EMPTY";
|
|
80
|
+
ZebraErrorCodes["PROFILE_NOT_FOUND"] = "PROFILE_NOT_FOUND";
|
|
81
|
+
ZebraErrorCodes["SCANNER_ALREADY_DISABLED"] = "SCANNER_ALREADY_DISABLED";
|
|
82
|
+
ZebraErrorCodes["SCANNER_ALREADY_ENABLED"] = "SCANNER_ALREADY_ENABLED";
|
|
83
|
+
ZebraErrorCodes["SCANNER_DISABLE_FAILED"] = "SCANNER_DISABLE_FAILED";
|
|
84
|
+
ZebraErrorCodes["SCANNER_ENABLE_FAILED"] = "SCANNER_ENABLE_FAILED";
|
|
85
|
+
ZebraErrorCodes["UNKNOWN"] = "UNKNOWN";
|
|
86
|
+
})(ZebraErrorCodes || (ZebraErrorCodes = {}));
|
|
87
|
+
//# sourceMappingURL=definitions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":"AAMA,MAAM,CAAN,IAAY,mBAKX;AALD,WAAY,mBAAmB;IAC7B,kEAA2C,CAAA;IAC3C,8CAAuB,CAAA;IACvB,wCAAiB,CAAA;IACjB,wCAAiB,CAAA;AACnB,CAAC,EALW,mBAAmB,KAAnB,mBAAmB,QAK9B;AAED,MAAM,CAAN,IAAY,yBAIX;AAJD,WAAY,yBAAyB;IACnC,0EAA6C,CAAA;IAC7C,8DAAiC,CAAA;IACjC,8DAAiC,CAAA;AACnC,CAAC,EAJW,yBAAyB,KAAzB,yBAAyB,QAIpC;AAED,MAAM,CAAN,IAAY,eAcX;AAdD,WAAY,eAAe;IACzB,8BAAW,CAAA;IACX,sCAAmB,CAAA;IACnB,8BAAW,CAAA;IACX,8BAAW,CAAA;IACX,8BAAW,CAAA;IACX,oCAAiB,CAAA;IACjB,4BAAS,CAAA;IACT,0CAAuB,CAAA;IACvB,8BAAW,CAAA;IACX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ACzC,0DAAuC,CAAA;IACvC,wEAAqD,CAAA;IACrD,sEAAmD,CAAA;IACnD,oEAAiD,CAAA;IACjD,kEAA+C,CAAA;IAC/C,sCAAmB,CAAA;AACrB,CAAC,EAhCW,eAAe,KAAf,eAAe,QAgC1B","sourcesContent":["import type { Plugin, PluginListenerHandle } from '@capacitor/core';\n\nexport interface PluginVersionResult {\n version: string;\n}\n\nexport enum DataWedgeConfigMode {\n CREATE_IF_NOT_EXIST = 'CREATE_IF_NOT_EXIST',\n OVERWRITE = 'OVERWRITE',\n REMOVE = 'REMOVE',\n UPDATE = 'UPDATE',\n}\n\nexport enum DataWedgeNotificationType {\n CONFIGURATION_UPDATE = 'CONFIGURATION_UPDATE',\n PROFILE_SWITCH = 'PROFILE_SWITCH',\n SCANNER_STATUS = 'SCANNER_STATUS',\n}\n\nexport enum DataWedgePlugin {\n ADF = 'ADF',\n BARCODE = 'BARCODE',\n BDF = 'BDF',\n DCP = 'DCP',\n EKB = 'EKB',\n INTENT = 'INTENT',\n IP = 'IP',\n KEYSTROKE = 'KEYSTROKE',\n MSR = 'MSR',\n RFID = 'RFID',\n SERIAL = 'SERIAL',\n TOKENS = 'TOKENS',\n VOICE = 'VOICE',\n}\n\nexport enum ScannerIdentifier {\n AUTO = 'AUTO',\n BLUETOOTH_DS3678 = 'BLUETOOTH_DS3678',\n BLUETOOTH_RS6000 = 'BLUETOOTH_RS6000',\n BLUETOOTH_SSI = 'BLUETOOTH_SSI',\n INTERNAL_CAMERA = 'INTERNAL_CAMERA',\n INTERNAL_IMAGER = 'INTERNAL_IMAGER',\n INTERNAL_LASER = 'INTERNAL_LASER',\n PLUGABLE_SSI = 'PLUGABLE_SSI',\n PLUGABLE_SSI_RS5000 = 'PLUGABLE_SSI_RS5000',\n SERIAL_SSI = 'SERIAL_SSI',\n USB_SSI_DS3608 = 'USB_SSI_DS3608',\n}\n\nexport enum ScannerStatus {\n CONNECTED = 'CONNECTED',\n DISABLED = 'DISABLED',\n DISCONNECTED = 'DISCONNECTED',\n IDLE = 'IDLE',\n SCANNING = 'SCANNING',\n WAITING = 'WAITING',\n}\n\nexport enum ZebraErrorCodes {\n APP_ALREADY_ASSOCIATED = 'APP_ALREADY_ASSOCIATED',\n APP_ALREADY_IN_DISABLED_LIST = 'APP_ALREADY_IN_DISABLED_LIST',\n BUNDLE_EMPTY = 'BUNDLE_EMPTY',\n CANNOT_READ_FILE = 'CANNOT_READ_FILE',\n CONFIG_FILE_NOT_EXIST = 'CONFIG_FILE_NOT_EXIST',\n DATAWEDGE_ALREADY_DISABLED = 'DATAWEDGE_ALREADY_DISABLED',\n DATAWEDGE_ALREADY_ENABLED = 'DATAWEDGE_ALREADY_ENABLED',\n DATAWEDGE_DISABLED = 'DATAWEDGE_DISABLED',\n DEVICE_NOT_CONNECTED = 'DEVICE_NOT_CONNECTED',\n DEVICE_NOT_SUPPORTED = 'DEVICE_NOT_SUPPORTED',\n INPUT_NOT_ENABLED = 'INPUT_NOT_ENABLED',\n INVALID_CONFIG_FILE = 'INVALID_CONFIG_FILE',\n INVALID_FILE_NAME = 'INVALID_FILE_NAME',\n INVALID_FOLDER_PATH = 'INVALID_FOLDER_PATH',\n OPERATION_NOT_ALLOWED = 'OPERATION_NOT_ALLOWED',\n PARAMETER_INVALID = 'PARAMETER_INVALID',\n PLUGIN_BUNDLE_INVALID = 'PLUGIN_BUNDLE_INVALID',\n PLUGIN_DISABLED = 'PLUGIN_DISABLED',\n PLUGIN_DISABLED_IN_CONFIG = 'PLUGIN_DISABLED_IN_CONFIG',\n PLUGIN_NOT_SUPPORTED = 'PLUGIN_NOT_SUPPORTED',\n PROFILE_ALREADY_EXISTS = 'PROFILE_ALREADY_EXISTS',\n PROFILE_ALREADY_SET = 'PROFILE_ALREADY_SET',\n PROFILE_DISABLED = 'PROFILE_DISABLED',\n PROFILE_HAS_APP_ASSOCIATION = 'PROFILE_HAS_APP_ASSOCIATION',\n PROFILE_NAME_EMPTY = 'PROFILE_NAME_EMPTY',\n PROFILE_NOT_FOUND = 'PROFILE_NOT_FOUND',\n SCANNER_ALREADY_DISABLED = 'SCANNER_ALREADY_DISABLED',\n SCANNER_ALREADY_ENABLED = 'SCANNER_ALREADY_ENABLED',\n SCANNER_DISABLE_FAILED = 'SCANNER_DISABLE_FAILED',\n SCANNER_ENABLE_FAILED = 'SCANNER_ENABLE_FAILED',\n UNKNOWN = 'UNKNOWN',\n}\n\nexport type DataWedgeScalar = string | number | boolean | null;\nexport type DataWedgeParameterValue =\n | DataWedgeScalar\n | DataWedgeScalar[]\n | DataWedgePluginParameters\n | DataWedgePluginParameters[];\n\nexport interface DataWedgePluginParameters {\n [key: string]: DataWedgeParameterValue;\n}\n\nexport interface CloneProfileOptions {\n destProfileName: string;\n sourceProfileName: string;\n}\n\nexport interface CreateProfileOptions {\n profileName: string;\n}\n\nexport interface DataWedgeAppConfig {\n activityList: string[];\n packageName: string;\n}\n\nexport interface DataWedgeNotifyOptions {\n deviceIdentifier: string;\n notificationSettings: number[];\n}\n\nexport interface DataWedgePluginConfig {\n outputPluginName?: DataWedgePlugin;\n paramList: DataWedgePluginParameters;\n pluginName: DataWedgePlugin;\n resetConfig?: boolean;\n}\n\nexport interface DeleteProfileOptions {\n profileNames: string[];\n}\n\nexport interface PluginConfigOptions {\n outputPluginName?: DataWedgePlugin;\n pluginName: DataWedgePlugin;\n}\n\nexport interface GetConfigOptions {\n pluginConfigs?: PluginConfigOptions[];\n profileName: string;\n}\n\nexport interface ImportConfigOptions {\n fileList?: string[];\n folderPath: string;\n}\n\nexport interface RegisterForNotificationOptions {\n appName?: string;\n callback?: (notification: ZebraNotificationEvent) => void;\n intentAction?: string;\n notificationType: DataWedgeNotificationType;\n}\n\nexport interface RenameProfileOptions {\n currentProfileName: string;\n newProfileName: string;\n}\n\nexport interface ReportingOptions {\n reportingEnabled: boolean;\n reportingGenerateOption?: 'manual' | 'auto' | 'both';\n reportingShowForManualImport?: boolean;\n}\n\nexport interface SetConfigOptions {\n appList?: DataWedgeAppConfig[];\n configMode?: DataWedgeConfigMode;\n pluginConfigs?: DataWedgePluginConfig[];\n profileEnabled?: boolean;\n profileName: string;\n}\n\nexport interface SetDisabledAppListOptions {\n appList?: DataWedgeAppConfig[];\n configMode: DataWedgeConfigMode;\n}\n\nexport interface SwitchScannerParamsOptions {\n scannerIdentifier: ScannerIdentifier;\n scannerParams: DataWedgePluginParameters;\n}\n\nexport interface ZebraDeviceScanner {\n connectionState: boolean;\n id?: string;\n index: number;\n name: string;\n}\n\nexport interface ZebraDeviceVersionInfo {\n barcodeVersion?: string;\n dataWedgeVersion?: string;\n decoderVersion?: string;\n scannerFirmwareVersions?: string[];\n simulScanVersion?: string;\n}\n\nexport interface ZebraError {\n code: ZebraErrorCodes | string;\n message: string;\n}\n\nexport interface ZebraProfileConfiguration {\n appList?: DataWedgeAppConfig[];\n pluginConfigList: DataWedgePluginConfig[];\n profileEnabled: boolean;\n profileName: string;\n}\n\nexport interface ZebraScanResult {\n data: string;\n decodedMode?: string;\n intentAction?: string;\n labelType?: string;\n source?: string;\n}\n\nexport interface ZebraNotificationEvent {\n notificationType: string;\n profileName?: string;\n scannerStatus?: ScannerStatus | string;\n status?: string;\n raw: Record<string, unknown>;\n}\n\nexport interface DataWedgeStatusResult {\n isEnabled: boolean;\n}\n\nexport interface IgnoreDisabledProfilesResult {\n enabled: boolean;\n}\n\nexport interface ZebraDataWedgePlugin extends Plugin {\n cloneProfile(options: CloneProfileOptions): Promise<void>;\n createProfile(options: CreateProfileOptions): Promise<void>;\n deleteProfile(options: DeleteProfileOptions): Promise<void>;\n importConfig(options: ImportConfigOptions): Promise<void>;\n renameProfile(options: RenameProfileOptions): Promise<void>;\n restoreConfig(): Promise<void>;\n setConfig(options: SetConfigOptions): Promise<void>;\n setDisabledAppList(options: SetDisabledAppListOptions): Promise<void>;\n setIgnoreDisabledProfiles(options: IgnoreDisabledProfilesResult): Promise<void>;\n registerForNotification(options: Omit<RegisterForNotificationOptions, 'callback'>): Promise<void>;\n unRegisterForNotification(options: Omit<RegisterForNotificationOptions, 'callback'>): Promise<void>;\n enumerateScanners(): Promise<{ scanners: ZebraDeviceScanner[] }>;\n getActiveProfile(): Promise<{ profileName: string }>;\n getAssociatedApps(options: { profileName: string }): Promise<{ appList: DataWedgeAppConfig[] }>;\n getConfig(options: GetConfigOptions): Promise<ZebraProfileConfiguration>;\n getDatawedgeStatus(): Promise<DataWedgeStatusResult>;\n getDisabledAppList(): Promise<{ appList: DataWedgeAppConfig[] }>;\n getIgnoreDisabledProfiles(): Promise<IgnoreDisabledProfilesResult>;\n getProfilesList(): Promise<{ profiles: string[] }>;\n getScannerStatus(): Promise<{ status: ScannerStatus | string }>;\n getVersionInfo(): Promise<ZebraDeviceVersionInfo>;\n disableDatawedge(): Promise<void>;\n disableScannerInput(): Promise<void>;\n enableDatawedge(): Promise<void>;\n enableScannerInput(): Promise<void>;\n enumerateTriggers(): Promise<{ triggers: string[] }>;\n notify(options: DataWedgeNotifyOptions): Promise<void>;\n resetDefaultProfile(): Promise<void>;\n setDefaultProfile(options: { profileName: string }): Promise<void>;\n setReportingOptions(options: ReportingOptions): Promise<void>;\n softRfidTrigger(): Promise<ZebraScanResult>;\n softScanTrigger(options: { intentAction: string }): Promise<ZebraScanResult>;\n switchScanner(options: { scannerIndex?: string; scannerIdentifier?: ScannerIdentifier }): Promise<void>;\n switchScannerParams(options: SwitchScannerParamsOptions): Promise<void>;\n switchToProfile(options: { profileName: string }): Promise<void>;\n getPluginVersion(): Promise<PluginVersionResult>;\n addListener(eventName: 'scan', listenerFunc: (event: ZebraScanResult) => void): Promise<PluginListenerHandle>;\n addListener(\n eventName: 'notification',\n listenerFunc: (event: ZebraNotificationEvent) => void,\n ): Promise<PluginListenerHandle>;\n}\n"]}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { CloneProfileOptions, DataWedgeAppConfig, CreateProfileOptions, DataWedgeNotifyOptions, DataWedgeStatusResult, GetConfigOptions, ImportConfigOptions, RegisterForNotificationOptions, RenameProfileOptions, ReportingOptions, ScannerStatus, SetConfigOptions, SetDisabledAppListOptions, SwitchScannerParamsOptions, ZebraDeviceScanner, ZebraDataWedgePlugin, ZebraDeviceVersionInfo, ZebraProfileConfiguration, ZebraScanResult } from './definitions';
|
|
2
|
+
declare const ZebraDataWedge: ZebraDataWedgePlugin;
|
|
3
|
+
export declare const ZebraConfiguration: {
|
|
4
|
+
cloneProfile: (options: CloneProfileOptions) => Promise<void>;
|
|
5
|
+
createProfile: (options: CreateProfileOptions) => Promise<void>;
|
|
6
|
+
deleteProfile: (options: {
|
|
7
|
+
profileNames: string[];
|
|
8
|
+
}) => Promise<void>;
|
|
9
|
+
importConfig: (options: ImportConfigOptions) => Promise<void>;
|
|
10
|
+
renameProfile: (options: RenameProfileOptions) => Promise<void>;
|
|
11
|
+
restoreConfig: () => Promise<void>;
|
|
12
|
+
setConfig: (options: SetConfigOptions) => Promise<void>;
|
|
13
|
+
setDisabledAppList: (options: SetDisabledAppListOptions) => Promise<void>;
|
|
14
|
+
setIgnoreDisabledProfiles: (doIgnoreDisabledProfiles: boolean) => Promise<void>;
|
|
15
|
+
};
|
|
16
|
+
export declare const ZebraNotification: {
|
|
17
|
+
registerForNotification(options: RegisterForNotificationOptions): Promise<void>;
|
|
18
|
+
unRegisterForNotification(options: Omit<RegisterForNotificationOptions, "callback">): Promise<void>;
|
|
19
|
+
};
|
|
20
|
+
export declare const ZebraQuery: {
|
|
21
|
+
enumerateScanners: () => Promise<ZebraDeviceScanner[]>;
|
|
22
|
+
getActiveProfile: () => Promise<string>;
|
|
23
|
+
getAssociatedApps: (profileName: string) => Promise<DataWedgeAppConfig[]>;
|
|
24
|
+
getConfig: (options: GetConfigOptions) => Promise<ZebraProfileConfiguration>;
|
|
25
|
+
getDatawedgeStatus: () => Promise<DataWedgeStatusResult>;
|
|
26
|
+
getDisabledAppList: () => Promise<DataWedgeAppConfig[]>;
|
|
27
|
+
getIgnoreDisabledProfiles: () => Promise<boolean>;
|
|
28
|
+
getProfilesList: () => Promise<string[]>;
|
|
29
|
+
getScannerStatus: () => Promise<ScannerStatus | string>;
|
|
30
|
+
getVersionInfo: () => Promise<ZebraDeviceVersionInfo>;
|
|
31
|
+
};
|
|
32
|
+
export declare const ZebraRuntime: {
|
|
33
|
+
disableDatawedge: () => Promise<void>;
|
|
34
|
+
disableScannerInput: () => Promise<void>;
|
|
35
|
+
enableDatawedge: () => Promise<void>;
|
|
36
|
+
enableScannerInput: () => Promise<void>;
|
|
37
|
+
enumerateTriggers: () => Promise<string[]>;
|
|
38
|
+
notify: (options: DataWedgeNotifyOptions) => Promise<void>;
|
|
39
|
+
resetDefaultProfile: () => Promise<void>;
|
|
40
|
+
setDefaultProfile: (profileName: string) => Promise<void>;
|
|
41
|
+
setReportingOptions: (options: ReportingOptions) => Promise<void>;
|
|
42
|
+
softRfidTrigger: () => Promise<ZebraScanResult>;
|
|
43
|
+
softScanTrigger: (intentAction: string) => Promise<ZebraScanResult>;
|
|
44
|
+
switchScanner: (scanerIndex: string) => Promise<void>;
|
|
45
|
+
switchScannerParams: (options: SwitchScannerParamsOptions) => Promise<void>;
|
|
46
|
+
switchToProfile: (profileName: string) => Promise<void>;
|
|
47
|
+
};
|
|
48
|
+
export * from './definitions';
|
|
49
|
+
export { ZebraDataWedge };
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { registerPlugin } from '@capacitor/core';
|
|
2
|
+
const ZebraDataWedge = registerPlugin('ZebraDataWedge', {
|
|
3
|
+
web: () => import('./web').then((m) => new m.ZebraDataWedgeWeb()),
|
|
4
|
+
});
|
|
5
|
+
const notificationHandles = new Map();
|
|
6
|
+
const notificationKey = (options) => { var _a, _b; return `${(_a = options.appName) !== null && _a !== void 0 ? _a : ''}:${(_b = options.intentAction) !== null && _b !== void 0 ? _b : ''}:${options.notificationType}`; };
|
|
7
|
+
export const ZebraConfiguration = {
|
|
8
|
+
cloneProfile: (options) => ZebraDataWedge.cloneProfile(options),
|
|
9
|
+
createProfile: (options) => ZebraDataWedge.createProfile(options),
|
|
10
|
+
deleteProfile: (options) => ZebraDataWedge.deleteProfile(options),
|
|
11
|
+
importConfig: (options) => ZebraDataWedge.importConfig(options),
|
|
12
|
+
renameProfile: (options) => ZebraDataWedge.renameProfile(options),
|
|
13
|
+
restoreConfig: () => ZebraDataWedge.restoreConfig(),
|
|
14
|
+
setConfig: (options) => ZebraDataWedge.setConfig(options),
|
|
15
|
+
setDisabledAppList: (options) => ZebraDataWedge.setDisabledAppList(options),
|
|
16
|
+
setIgnoreDisabledProfiles: (doIgnoreDisabledProfiles) => ZebraDataWedge.setIgnoreDisabledProfiles({ enabled: doIgnoreDisabledProfiles }),
|
|
17
|
+
};
|
|
18
|
+
export const ZebraNotification = {
|
|
19
|
+
async registerForNotification(options) {
|
|
20
|
+
var _a;
|
|
21
|
+
const nativeOptions = {
|
|
22
|
+
appName: options.appName,
|
|
23
|
+
intentAction: options.intentAction,
|
|
24
|
+
notificationType: options.notificationType,
|
|
25
|
+
};
|
|
26
|
+
await ZebraDataWedge.registerForNotification(nativeOptions);
|
|
27
|
+
if (options.callback) {
|
|
28
|
+
const key = notificationKey(nativeOptions);
|
|
29
|
+
await ((_a = notificationHandles.get(key)) === null || _a === void 0 ? void 0 : _a.remove());
|
|
30
|
+
const handle = await ZebraDataWedge.addListener('notification', (event) => {
|
|
31
|
+
var _a;
|
|
32
|
+
if (event.notificationType === options.notificationType) {
|
|
33
|
+
(_a = options.callback) === null || _a === void 0 ? void 0 : _a.call(options, event);
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
notificationHandles.set(key, handle);
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
async unRegisterForNotification(options) {
|
|
40
|
+
var _a;
|
|
41
|
+
await ZebraDataWedge.unRegisterForNotification(options);
|
|
42
|
+
const key = notificationKey(options);
|
|
43
|
+
await ((_a = notificationHandles.get(key)) === null || _a === void 0 ? void 0 : _a.remove());
|
|
44
|
+
notificationHandles.delete(key);
|
|
45
|
+
},
|
|
46
|
+
};
|
|
47
|
+
export const ZebraQuery = {
|
|
48
|
+
enumerateScanners: async () => (await ZebraDataWedge.enumerateScanners()).scanners,
|
|
49
|
+
getActiveProfile: async () => (await ZebraDataWedge.getActiveProfile()).profileName,
|
|
50
|
+
getAssociatedApps: async (profileName) => (await ZebraDataWedge.getAssociatedApps({ profileName })).appList,
|
|
51
|
+
getConfig: (options) => ZebraDataWedge.getConfig(options),
|
|
52
|
+
getDatawedgeStatus: () => ZebraDataWedge.getDatawedgeStatus(),
|
|
53
|
+
getDisabledAppList: async () => (await ZebraDataWedge.getDisabledAppList()).appList,
|
|
54
|
+
getIgnoreDisabledProfiles: async () => (await ZebraDataWedge.getIgnoreDisabledProfiles()).enabled,
|
|
55
|
+
getProfilesList: async () => (await ZebraDataWedge.getProfilesList()).profiles,
|
|
56
|
+
getScannerStatus: async () => (await ZebraDataWedge.getScannerStatus()).status,
|
|
57
|
+
getVersionInfo: () => ZebraDataWedge.getVersionInfo(),
|
|
58
|
+
};
|
|
59
|
+
export const ZebraRuntime = {
|
|
60
|
+
disableDatawedge: () => ZebraDataWedge.disableDatawedge(),
|
|
61
|
+
disableScannerInput: () => ZebraDataWedge.disableScannerInput(),
|
|
62
|
+
enableDatawedge: () => ZebraDataWedge.enableDatawedge(),
|
|
63
|
+
enableScannerInput: () => ZebraDataWedge.enableScannerInput(),
|
|
64
|
+
enumerateTriggers: async () => (await ZebraDataWedge.enumerateTriggers()).triggers,
|
|
65
|
+
notify: (options) => ZebraDataWedge.notify(options),
|
|
66
|
+
resetDefaultProfile: () => ZebraDataWedge.resetDefaultProfile(),
|
|
67
|
+
setDefaultProfile: (profileName) => ZebraDataWedge.setDefaultProfile({ profileName }),
|
|
68
|
+
setReportingOptions: (options) => ZebraDataWedge.setReportingOptions(options),
|
|
69
|
+
softRfidTrigger: () => ZebraDataWedge.softRfidTrigger(),
|
|
70
|
+
softScanTrigger: (intentAction) => ZebraDataWedge.softScanTrigger({ intentAction }),
|
|
71
|
+
switchScanner: (scanerIndex) => ZebraDataWedge.switchScanner({ scannerIndex: scanerIndex }),
|
|
72
|
+
switchScannerParams: (options) => ZebraDataWedge.switchScannerParams(options),
|
|
73
|
+
switchToProfile: (profileName) => ZebraDataWedge.switchToProfile({ profileName }),
|
|
74
|
+
};
|
|
75
|
+
export * from './definitions';
|
|
76
|
+
export { ZebraDataWedge };
|
|
77
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAwBjD,MAAM,cAAc,GAAG,cAAc,CAAuB,gBAAgB,EAAE;IAC5E,GAAG,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,iBAAiB,EAAE,CAAC;CAClE,CAAC,CAAC;AAEH,MAAM,mBAAmB,GAAG,IAAI,GAAG,EAAkE,CAAC;AAEtG,MAAM,eAAe,GAAG,CAAC,OAAyD,EAAE,EAAE,eACpF,OAAA,GAAG,MAAA,OAAO,CAAC,OAAO,mCAAI,EAAE,IAAI,MAAA,OAAO,CAAC,YAAY,mCAAI,EAAE,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAA,EAAA,CAAC;AAEvF,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,YAAY,EAAE,CAAC,OAA4B,EAAiB,EAAE,CAAC,cAAc,CAAC,YAAY,CAAC,OAAO,CAAC;IACnG,aAAa,EAAE,CAAC,OAA6B,EAAiB,EAAE,CAAC,cAAc,CAAC,aAAa,CAAC,OAAO,CAAC;IACtG,aAAa,EAAE,CAAC,OAAmC,EAAiB,EAAE,CAAC,cAAc,CAAC,aAAa,CAAC,OAAO,CAAC;IAC5G,YAAY,EAAE,CAAC,OAA4B,EAAiB,EAAE,CA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AmB,EAAE,CAAC,OAAmC,EAAiB,EAAE,CAC1E,cAAc,CAAC,mBAAmB,CAAC,OAAO,CAAC;IAC7C,eAAe,EAAE,CAAC,WAAmB,EAAiB,EAAE,CAAC,cAAc,CAAC,eAAe,CAAC,EAAE,WAAW,EAAE,CAAC;CACzG,CAAC;AAEF,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,cAAc,EAAE,CAAC","sourcesContent":["import { registerPlugin } from '@capacitor/core';\n\nimport type {\n CloneProfileOptions,\n DataWedgeAppConfig,\n CreateProfileOptions,\n DataWedgeNotifyOptions,\n DataWedgeStatusResult,\n GetConfigOptions,\n ImportConfigOptions,\n RegisterForNotificationOptions,\n RenameProfileOptions,\n ReportingOptions,\n ScannerStatus,\n SetConfigOptions,\n SetDisabledAppListOptions,\n SwitchScannerParamsOptions,\n ZebraDeviceScanner,\n ZebraDataWedgePlugin,\n ZebraDeviceVersionInfo,\n ZebraProfileConfiguration,\n ZebraScanResult,\n} from './definitions';\n\nconst ZebraDataWedge = registerPlugin<ZebraDataWedgePlugin>('ZebraDataWedge', {\n web: () => import('./web').then((m) => new m.ZebraDataWedgeWeb()),\n});\n\nconst notificationHandles = new Map<string, Awaited<ReturnType<typeof ZebraDataWedge.addListener>>>();\n\nconst notificationKey = (options: Omit<RegisterForNotificationOptions, 'callback'>) =>\n `${options.appName ?? ''}:${options.intentAction ?? ''}:${options.notificationType}`;\n\nexport const ZebraConfiguration = {\n cloneProfile: (options: CloneProfileOptions): Promise<void> => ZebraDataWedge.cloneProfile(options),\n createProfile: (options: CreateProfileOptions): Promise<void> => ZebraDataWedge.createProfile(options),\n deleteProfile: (options: { profileNames: string[] }): Promise<void> => ZebraDataWedge.deleteProfile(options),\n importConfig: (options: ImportConfigOptions): Promise<void> => ZebraDataWedge.importConfig(options),\n renameProfile: (options: RenameProfileOptions): Promise<void> => ZebraDataWedge.renameProfile(options),\n restoreConfig: (): Promise<void> => ZebraDataWedge.restoreConfig(),\n setConfig: (options: SetConfigOptions): Promise<void> => ZebraDataWedge.setConfig(options),\n setDisabledAppList: (options: SetDisabledAppListOptions): Promise<void> => ZebraDataWedge.setDisabledAppList(options),\n setIgnoreDisabledProfiles: (doIgnoreDisabledProfiles: boolean): Promise<void> =>\n ZebraDataWedge.setIgnoreDisabledProfiles({ enabled: doIgnoreDisabledProfiles }),\n};\n\nexport const ZebraNotification = {\n async registerForNotification(options: RegisterForNotificationOptions): Promise<void> {\n const nativeOptions = {\n appName: options.appName,\n intentAction: options.intentAction,\n notificationType: options.notificationType,\n };\n await ZebraDataWedge.registerForNotification(nativeOptions);\n if (options.callback) {\n const key = notificationKey(nativeOptions);\n await notificationHandles.get(key)?.remove();\n const handle = await ZebraDataWedge.addListener('notification', (event) => {\n if (event.notificationType === options.notificationType) {\n options.callback?.(event);\n }\n });\n notificationHandles.set(key, handle);\n }\n },\n async unRegisterForNotification(options: Omit<RegisterForNotificationOptions, 'callback'>): Promise<void> {\n await ZebraDataWedge.unRegisterForNotification(options);\n const key = notificationKey(options);\n await notificationHandles.get(key)?.remove();\n notificationHandles.delete(key);\n },\n};\n\nexport const ZebraQuery = {\n enumerateScanners: async (): Promise<ZebraDeviceScanner[]> => (await ZebraDataWedge.enumerateScanners()).scanners,\n getActiveProfile: async (): Promise<string> => (await ZebraDataWedge.getActiveProfile()).profileName,\n getAssociatedApps: async (profileName: string): Promise<DataWedgeAppConfig[]> =>\n (await ZebraDataWedge.getAssociatedApps({ profileName })).appList,\n getConfig: (options: GetConfigOptions): Promise<ZebraProfileConfiguration> => ZebraDataWedge.getConfig(options),\n getDatawedgeStatus: (): Promise<DataWedgeStatusResult> => ZebraDataWedge.getDatawedgeStatus(),\n getDisabledAppList: async (): Promise<DataWedgeAppConfig[]> => (await ZebraDataWedge.getDisabledAppList()).appList,\n getIgnoreDisabledProfiles: async (): Promise<boolean> => (await ZebraDataWedge.getIgnoreDisabledProfiles()).enabled,\n getProfilesList: async (): Promise<string[]> => (await ZebraDataWedge.getProfilesList()).profiles,\n getScannerStatus: async (): Promise<ScannerStatus | string> => (await ZebraDataWedge.getScannerStatus()).status,\n getVersionInfo: (): Promise<ZebraDeviceVersionInfo> => ZebraDataWedge.getVersionInfo(),\n};\n\nexport const ZebraRuntime = {\n disableDatawedge: (): Promise<void> => ZebraDataWedge.disableDatawedge(),\n disableScannerInput: (): Promise<void> => ZebraDataWedge.disableScannerInput(),\n enableDatawedge: (): Promise<void> => ZebraDataWedge.enableDatawedge(),\n enableScannerInput: (): Promise<void> => ZebraDataWedge.enableScannerInput(),\n enumerateTriggers: async (): Promise<string[]> => (await ZebraDataWedge.enumerateTriggers()).triggers,\n notify: (options: DataWedgeNotifyOptions): Promise<void> => ZebraDataWedge.notify(options),\n resetDefaultProfile: (): Promise<void> => ZebraDataWedge.resetDefaultProfile(),\n setDefaultProfile: (profileName: string): Promise<void> => ZebraDataWedge.setDefaultProfile({ profileName }),\n setReportingOptions: (options: ReportingOptions): Promise<void> => ZebraDataWedge.setReportingOptions(options),\n softRfidTrigger: (): Promise<ZebraScanResult> => ZebraDataWedge.softRfidTrigger(),\n softScanTrigger: (intentAction: string): Promise<ZebraScanResult> => ZebraDataWedge.softScanTrigger({ intentAction }),\n switchScanner: (scanerIndex: string): Promise<void> => ZebraDataWedge.switchScanner({ scannerIndex: scanerIndex }),\n switchScannerParams: (options: SwitchScannerParamsOptions): Promise<void> =>\n ZebraDataWedge.switchScannerParams(options),\n switchToProfile: (profileName: string): Promise<void> => ZebraDataWedge.switchToProfile({ profileName }),\n};\n\nexport * from './definitions';\nexport { ZebraDataWedge };\n"]}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { WebPlugin } from '@capacitor/core';
|
|
2
|
+
import type { CloneProfileOptions, CreateProfileOptions, DataWedgeNotifyOptions, DataWedgeStatusResult, DeleteProfileOptions, GetConfigOptions, IgnoreDisabledProfilesResult, ImportConfigOptions, PluginVersionResult, RegisterForNotificationOptions, RenameProfileOptions, ReportingOptions, SetConfigOptions, SetDisabledAppListOptions, SwitchScannerParamsOptions, ZebraDataWedgePlugin, ZebraProfileConfiguration, ZebraScanResult } from './definitions';
|
|
3
|
+
export declare class ZebraDataWedgeWeb extends WebPlugin implements ZebraDataWedgePlugin {
|
|
4
|
+
cloneProfile(_options: CloneProfileOptions): Promise<void>;
|
|
5
|
+
createProfile(_options: CreateProfileOptions): Promise<void>;
|
|
6
|
+
deleteProfile(_options: DeleteProfileOptions): Promise<void>;
|
|
7
|
+
importConfig(_options: ImportConfigOptions): Promise<void>;
|
|
8
|
+
renameProfile(_options: RenameProfileOptions): Promise<void>;
|
|
9
|
+
restoreConfig(): Promise<void>;
|
|
10
|
+
setConfig(_options: SetConfigOptions): Promise<void>;
|
|
11
|
+
setDisabledAppList(_options: SetDisabledAppListOptions): Promise<void>;
|
|
12
|
+
setIgnoreDisabledProfiles(_options: IgnoreDisabledProfilesResult): Promise<void>;
|
|
13
|
+
registerForNotification(_options: Omit<RegisterForNotificationOptions, 'callback'>): Promise<void>;
|
|
14
|
+
unRegisterForNotification(_options: Omit<RegisterForNotificationOptions, 'callback'>): Promise<void>;
|
|
15
|
+
enumerateScanners(): Promise<{
|
|
16
|
+
scanners: never[];
|
|
17
|
+
}>;
|
|
18
|
+
getActiveProfile(): Promise<{
|
|
19
|
+
profileName: string;
|
|
20
|
+
}>;
|
|
21
|
+
getAssociatedApps(_options: {
|
|
22
|
+
profileName: string;
|
|
23
|
+
}): Promise<{
|
|
24
|
+
appList: never[];
|
|
25
|
+
}>;
|
|
26
|
+
getConfig(_options: GetConfigOptions): Promise<ZebraProfileConfiguration>;
|
|
27
|
+
getDatawedgeStatus(): Promise<DataWedgeStatusResult>;
|
|
28
|
+
getDisabledAppList(): Promise<{
|
|
29
|
+
appList: never[];
|
|
30
|
+
}>;
|
|
31
|
+
getIgnoreDisabledProfiles(): Promise<IgnoreDisabledProfilesResult>;
|
|
32
|
+
getProfilesList(): Promise<{
|
|
33
|
+
profiles: string[];
|
|
34
|
+
}>;
|
|
35
|
+
getScannerStatus(): Promise<{
|
|
36
|
+
status: string;
|
|
37
|
+
}>;
|
|
38
|
+
getVersionInfo(): Promise<Record<string, never>>;
|
|
39
|
+
disableDatawedge(): Promise<void>;
|
|
40
|
+
disableScannerInput(): Promise<void>;
|
|
41
|
+
enableDatawedge(): Promise<void>;
|
|
42
|
+
enableScannerInput(): Promise<void>;
|
|
43
|
+
enumerateTriggers(): Promise<{
|
|
44
|
+
triggers: string[];
|
|
45
|
+
}>;
|
|
46
|
+
notify(_options: DataWedgeNotifyOptions): Promise<void>;
|
|
47
|
+
resetDefaultProfile(): Promise<void>;
|
|
48
|
+
setDefaultProfile(_options: {
|
|
49
|
+
profileName: string;
|
|
50
|
+
}): Promise<void>;
|
|
51
|
+
setReportingOptions(_options: ReportingOptions): Promise<void>;
|
|
52
|
+
softRfidTrigger(): Promise<ZebraScanResult>;
|
|
53
|
+
softScanTrigger(_options: {
|
|
54
|
+
intentAction: string;
|
|
55
|
+
}): Promise<ZebraScanResult>;
|
|
56
|
+
switchScanner(_options: {
|
|
57
|
+
scannerIndex?: string;
|
|
58
|
+
scannerIdentifier?: string;
|
|
59
|
+
}): Promise<void>;
|
|
60
|
+
switchScannerParams(_options: SwitchScannerParamsOptions): Promise<void>;
|
|
61
|
+
switchToProfile(_options: {
|
|
62
|
+
profileName: string;
|
|
63
|
+
}): Promise<void>;
|
|
64
|
+
getPluginVersion(): Promise<PluginVersionResult>;
|
|
65
|
+
}
|