@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/dist/plugin.js ADDED
@@ -0,0 +1,293 @@
1
+ var capacitorZebraDataWedge = (function (exports, core) {
2
+ 'use strict';
3
+
4
+ exports.DataWedgeConfigMode = void 0;
5
+ (function (DataWedgeConfigMode) {
6
+ DataWedgeConfigMode["CREATE_IF_NOT_EXIST"] = "CREATE_IF_NOT_EXIST";
7
+ DataWedgeConfigMode["OVERWRITE"] = "OVERWRITE";
8
+ DataWedgeConfigMode["REMOVE"] = "REMOVE";
9
+ DataWedgeConfigMode["UPDATE"] = "UPDATE";
10
+ })(exports.DataWedgeConfigMode || (exports.DataWedgeConfigMode = {}));
11
+ exports.DataWedgeNotificationType = void 0;
12
+ (function (DataWedgeNotificationType) {
13
+ DataWedgeNotificationType["CONFIGURATION_UPDATE"] = "CONFIGURATION_UPDATE";
14
+ DataWedgeNotificationType["PROFILE_SWITCH"] = "PROFILE_SWITCH";
15
+ DataWedgeNotificationType["SCANNER_STATUS"] = "SCANNER_STATUS";
16
+ })(exports.DataWedgeNotificationType || (exports.DataWedgeNotificationType = {}));
17
+ exports.DataWedgePlugin = void 0;
18
+ (function (DataWedgePlugin) {
19
+ DataWedgePlugin["ADF"] = "ADF";
20
+ DataWedgePlugin["BARCODE"] = "BARCODE";
21
+ DataWedgePlugin["BDF"] = "BDF";
22
+ DataWedgePlugin["DCP"] = "DCP";
23
+ DataWedgePlugin["EKB"] = "EKB";
24
+ DataWedgePlugin["INTENT"] = "INTENT";
25
+ DataWedgePlugin["IP"] = "IP";
26
+ DataWedgePlugin["KEYSTROKE"] = "KEYSTROKE";
27
+ DataWedgePlugin["MSR"] = "MSR";
28
+ DataWedgePlugin["RFID"] = "RFID";
29
+ DataWedgePlugin["SERIAL"] = "SERIAL";
30
+ DataWedgePlugin["TOKENS"] = "TOKENS";
31
+ DataWedgePlugin["VOICE"] = "VOICE";
32
+ })(exports.DataWedgePlugin || (exports.DataWedgePlugin = {}));
33
+ exports.ScannerIdentifier = void 0;
34
+ (function (ScannerIdentifier) {
35
+ ScannerIdentifier["AUTO"] = "AUTO";
36
+ ScannerIdentifier["BLUETOOTH_DS3678"] = "BLUETOOTH_DS3678";
37
+ ScannerIdentifier["BLUETOOTH_RS6000"] = "BLUETOOTH_RS6000";
38
+ ScannerIdentifier["BLUETOOTH_SSI"] = "BLUETOOTH_SSI";
39
+ ScannerIdentifier["INTERNAL_CAMERA"] = "INTERNAL_CAMERA";
40
+ ScannerIdentifier["INTERNAL_IMAGER"] = "INTERNAL_IMAGER";
41
+ ScannerIdentifier["INTERNAL_LASER"] = "INTERNAL_LASER";
42
+ ScannerIdentifier["PLUGABLE_SSI"] = "PLUGABLE_SSI";
43
+ ScannerIdentifier["PLUGABLE_SSI_RS5000"] = "PLUGABLE_SSI_RS5000";
44
+ ScannerIdentifier["SERIAL_SSI"] = "SERIAL_SSI";
45
+ ScannerIdentifier["USB_SSI_DS3608"] = "USB_SSI_DS3608";
46
+ })(exports.ScannerIdentifier || (exports.ScannerIdentifier = {}));
47
+ exports.ScannerStatus = void 0;
48
+ (function (ScannerStatus) {
49
+ ScannerStatus["CONNECTED"] = "CONNECTED";
50
+ ScannerStatus["DISABLED"] = "DISABLED";
51
+ ScannerStatus["DISCONNECTED"] = "DISCONNECTED";
52
+ ScannerStatus["IDLE"] = "IDLE";
53
+ ScannerStatus["SCANNING"] = "SCANNING";
54
+ ScannerStatus["WAITING"] = "WAITING";
55
+ })(exports.ScannerStatus || (exports.ScannerStatus = {}));
56
+ exports.ZebraErrorCodes = void 0;
57
+ (function (ZebraErrorCodes) {
58
+ ZebraErrorCodes["APP_ALREADY_ASSOCIATED"] = "APP_ALREADY_ASSOCIATED";
59
+ ZebraErrorCodes["APP_ALREADY_IN_DISABLED_LIST"] = "APP_ALREADY_IN_DISABLED_LIST";
60
+ ZebraErrorCodes["BUNDLE_EMPTY"] = "BUNDLE_EMPTY";
61
+ ZebraErrorCodes["CANNOT_READ_FILE"] = "CANNOT_READ_FILE";
62
+ ZebraErrorCodes["CONFIG_FILE_NOT_EXIST"] = "CONFIG_FILE_NOT_EXIST";
63
+ ZebraErrorCodes["DATAWEDGE_ALREADY_DISABLED"] = "DATAWEDGE_ALREADY_DISABLED";
64
+ ZebraErrorCodes["DATAWEDGE_ALREADY_ENABLED"] = "DATAWEDGE_ALREADY_ENABLED";
65
+ ZebraErrorCodes["DATAWEDGE_DISABLED"] = "DATAWEDGE_DISABLED";
66
+ ZebraErrorCodes["DEVICE_NOT_CONNECTED"] = "DEVICE_NOT_CONNECTED";
67
+ ZebraErrorCodes["DEVICE_NOT_SUPPORTED"] = "DEVICE_NOT_SUPPORTED";
68
+ ZebraErrorCodes["INPUT_NOT_ENABLED"] = "INPUT_NOT_ENABLED";
69
+ ZebraErrorCodes["INVALID_CONFIG_FILE"] = "INVALID_CONFIG_FILE";
70
+ ZebraErrorCodes["INVALID_FILE_NAME"] = "INVALID_FILE_NAME";
71
+ ZebraErrorCodes["INVALID_FOLDER_PATH"] = "INVALID_FOLDER_PATH";
72
+ ZebraErrorCodes["OPERATION_NOT_ALLOWED"] = "OPERATION_NOT_ALLOWED";
73
+ ZebraErrorCodes["PARAMETER_INVALID"] = "PARAMETER_INVALID";
74
+ ZebraErrorCodes["PLUGIN_BUNDLE_INVALID"] = "PLUGIN_BUNDLE_INVALID";
75
+ ZebraErrorCodes["PLUGIN_DISABLED"] = "PLUGIN_DISABLED";
76
+ ZebraErrorCodes["PLUGIN_DISABLED_IN_CONFIG"] = "PLUGIN_DISABLED_IN_CONFIG";
77
+ ZebraErrorCodes["PLUGIN_NOT_SUPPORTED"] = "PLUGIN_NOT_SUPPORTED";
78
+ ZebraErrorCodes["PROFILE_ALREADY_EXISTS"] = "PROFILE_ALREADY_EXISTS";
79
+ ZebraErrorCodes["PROFILE_ALREADY_SET"] = "PROFILE_ALREADY_SET";
80
+ ZebraErrorCodes["PROFILE_DISABLED"] = "PROFILE_DISABLED";
81
+ ZebraErrorCodes["PROFILE_HAS_APP_ASSOCIATION"] = "PROFILE_HAS_APP_ASSOCIATION";
82
+ ZebraErrorCodes["PROFILE_NAME_EMPTY"] = "PROFILE_NAME_EMPTY";
83
+ ZebraErrorCodes["PROFILE_NOT_FOUND"] = "PROFILE_NOT_FOUND";
84
+ ZebraErrorCodes["SCANNER_ALREADY_DISABLED"] = "SCANNER_ALREADY_DISABLED";
85
+ ZebraErrorCodes["SCANNER_ALREADY_ENABLED"] = "SCANNER_ALREADY_ENABLED";
86
+ ZebraErrorCodes["SCANNER_DISABLE_FAILED"] = "SCANNER_DISABLE_FAILED";
87
+ ZebraErrorCodes["SCANNER_ENABLE_FAILED"] = "SCANNER_ENABLE_FAILED";
88
+ ZebraErrorCodes["UNKNOWN"] = "UNKNOWN";
89
+ })(exports.ZebraErrorCodes || (exports.ZebraErrorCodes = {}));
90
+
91
+ const ZebraDataWedge = core.registerPlugin('ZebraDataWedge', {
92
+ web: () => Promise.resolve().then(function () { return web; }).then((m) => new m.ZebraDataWedgeWeb()),
93
+ });
94
+ const notificationHandles = new Map();
95
+ 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}`; };
96
+ const ZebraConfiguration = {
97
+ cloneProfile: (options) => ZebraDataWedge.cloneProfile(options),
98
+ createProfile: (options) => ZebraDataWedge.createProfile(options),
99
+ deleteProfile: (options) => ZebraDataWedge.deleteProfile(options),
100
+ importConfig: (options) => ZebraDataWedge.importConfig(options),
101
+ renameProfile: (options) => ZebraDataWedge.renameProfile(options),
102
+ restoreConfig: () => ZebraDataWedge.restoreConfig(),
103
+ setConfig: (options) => ZebraDataWedge.setConfig(options),
104
+ setDisabledAppList: (options) => ZebraDataWedge.setDisabledAppList(options),
105
+ setIgnoreDisabledProfiles: (doIgnoreDisabledProfiles) => ZebraDataWedge.setIgnoreDisabledProfiles({ enabled: doIgnoreDisabledProfiles }),
106
+ };
107
+ const ZebraNotification = {
108
+ async registerForNotification(options) {
109
+ var _a;
110
+ const nativeOptions = {
111
+ appName: options.appName,
112
+ intentAction: options.intentAction,
113
+ notificationType: options.notificationType,
114
+ };
115
+ await ZebraDataWedge.registerForNotification(nativeOptions);
116
+ if (options.callback) {
117
+ const key = notificationKey(nativeOptions);
118
+ await ((_a = notificationHandles.get(key)) === null || _a === void 0 ? void 0 : _a.remove());
119
+ const handle = await ZebraDataWedge.addListener('notification', (event) => {
120
+ var _a;
121
+ if (event.notificationType === options.notificationType) {
122
+ (_a = options.callback) === null || _a === void 0 ? void 0 : _a.call(options, event);
123
+ }
124
+ });
125
+ notificationHandles.set(key, handle);
126
+ }
127
+ },
128
+ async unRegisterForNotification(options) {
129
+ var _a;
130
+ await ZebraDataWedge.unRegisterForNotification(options);
131
+ const key = notificationKey(options);
132
+ await ((_a = notificationHandles.get(key)) === null || _a === void 0 ? void 0 : _a.remove());
133
+ notificationHandles.delete(key);
134
+ },
135
+ };
136
+ const ZebraQuery = {
137
+ enumerateScanners: async () => (await ZebraDataWedge.enumerateScanners()).scanners,
138
+ getActiveProfile: async () => (await ZebraDataWedge.getActiveProfile()).profileName,
139
+ getAssociatedApps: async (profileName) => (await ZebraDataWedge.getAssociatedApps({ profileName })).appList,
140
+ getConfig: (options) => ZebraDataWedge.getConfig(options),
141
+ getDatawedgeStatus: () => ZebraDataWedge.getDatawedgeStatus(),
142
+ getDisabledAppList: async () => (await ZebraDataWedge.getDisabledAppList()).appList,
143
+ getIgnoreDisabledProfiles: async () => (await ZebraDataWedge.getIgnoreDisabledProfiles()).enabled,
144
+ getProfilesList: async () => (await ZebraDataWedge.getProfilesList()).profiles,
145
+ getScannerStatus: async () => (await ZebraDataWedge.getScannerStatus()).status,
146
+ getVersionInfo: () => ZebraDataWedge.getVersionInfo(),
147
+ };
148
+ const ZebraRuntime = {
149
+ disableDatawedge: () => ZebraDataWedge.disableDatawedge(),
150
+ disableScannerInput: () => ZebraDataWedge.disableScannerInput(),
151
+ enableDatawedge: () => ZebraDataWedge.enableDatawedge(),
152
+ enableScannerInput: () => ZebraDataWedge.enableScannerInput(),
153
+ enumerateTriggers: async () => (await ZebraDataWedge.enumerateTriggers()).triggers,
154
+ notify: (options) => ZebraDataWedge.notify(options),
155
+ resetDefaultProfile: () => ZebraDataWedge.resetDefaultProfile(),
156
+ setDefaultProfile: (profileName) => ZebraDataWedge.setDefaultProfile({ profileName }),
157
+ setReportingOptions: (options) => ZebraDataWedge.setReportingOptions(options),
158
+ softRfidTrigger: () => ZebraDataWedge.softRfidTrigger(),
159
+ softScanTrigger: (intentAction) => ZebraDataWedge.softScanTrigger({ intentAction }),
160
+ switchScanner: (scanerIndex) => ZebraDataWedge.switchScanner({ scannerIndex: scanerIndex }),
161
+ switchScannerParams: (options) => ZebraDataWedge.switchScannerParams(options),
162
+ switchToProfile: (profileName) => ZebraDataWedge.switchToProfile({ profileName }),
163
+ };
164
+
165
+ const unavailable = () => {
166
+ throw new Error('Zebra DataWedge is only available on Android devices with Zebra DataWedge installed.');
167
+ };
168
+ class ZebraDataWedgeWeb extends core.WebPlugin {
169
+ cloneProfile(_options) {
170
+ return unavailable();
171
+ }
172
+ createProfile(_options) {
173
+ return unavailable();
174
+ }
175
+ deleteProfile(_options) {
176
+ return unavailable();
177
+ }
178
+ importConfig(_options) {
179
+ return unavailable();
180
+ }
181
+ renameProfile(_options) {
182
+ return unavailable();
183
+ }
184
+ restoreConfig() {
185
+ return unavailable();
186
+ }
187
+ setConfig(_options) {
188
+ return unavailable();
189
+ }
190
+ setDisabledAppList(_options) {
191
+ return unavailable();
192
+ }
193
+ setIgnoreDisabledProfiles(_options) {
194
+ return unavailable();
195
+ }
196
+ registerForNotification(_options) {
197
+ return unavailable();
198
+ }
199
+ unRegisterForNotification(_options) {
200
+ return unavailable();
201
+ }
202
+ enumerateScanners() {
203
+ return unavailable();
204
+ }
205
+ getActiveProfile() {
206
+ return unavailable();
207
+ }
208
+ getAssociatedApps(_options) {
209
+ return unavailable();
210
+ }
211
+ getConfig(_options) {
212
+ return unavailable();
213
+ }
214
+ getDatawedgeStatus() {
215
+ return unavailable();
216
+ }
217
+ getDisabledAppList() {
218
+ return unavailable();
219
+ }
220
+ getIgnoreDisabledProfiles() {
221
+ return unavailable();
222
+ }
223
+ getProfilesList() {
224
+ return unavailable();
225
+ }
226
+ getScannerStatus() {
227
+ return unavailable();
228
+ }
229
+ getVersionInfo() {
230
+ return unavailable();
231
+ }
232
+ disableDatawedge() {
233
+ return unavailable();
234
+ }
235
+ disableScannerInput() {
236
+ return unavailable();
237
+ }
238
+ enableDatawedge() {
239
+ return unavailable();
240
+ }
241
+ enableScannerInput() {
242
+ return unavailable();
243
+ }
244
+ enumerateTriggers() {
245
+ return unavailable();
246
+ }
247
+ notify(_options) {
248
+ return unavailable();
249
+ }
250
+ resetDefaultProfile() {
251
+ return unavailable();
252
+ }
253
+ setDefaultProfile(_options) {
254
+ return unavailable();
255
+ }
256
+ setReportingOptions(_options) {
257
+ return unavailable();
258
+ }
259
+ softRfidTrigger() {
260
+ return unavailable();
261
+ }
262
+ softScanTrigger(_options) {
263
+ return unavailable();
264
+ }
265
+ switchScanner(_options) {
266
+ return unavailable();
267
+ }
268
+ switchScannerParams(_options) {
269
+ return unavailable();
270
+ }
271
+ switchToProfile(_options) {
272
+ return unavailable();
273
+ }
274
+ async getPluginVersion() {
275
+ return { version: 'web' };
276
+ }
277
+ }
278
+
279
+ var web = /*#__PURE__*/Object.freeze({
280
+ __proto__: null,
281
+ ZebraDataWedgeWeb: ZebraDataWedgeWeb
282
+ });
283
+
284
+ exports.ZebraConfiguration = ZebraConfiguration;
285
+ exports.ZebraDataWedge = ZebraDataWedge;
286
+ exports.ZebraNotification = ZebraNotification;
287
+ exports.ZebraQuery = ZebraQuery;
288
+ exports.ZebraRuntime = ZebraRuntime;
289
+
290
+ return exports;
291
+
292
+ })({}, capacitorExports);
293
+ //# sourceMappingURL=plugin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.js","sources":["esm/definitions.js","esm/index.js","esm/web.js"],"sourcesContent":["export var DataWedgeConfigMode;\n(function (DataWedgeConfigMode) {\n DataWedgeConfigMode[\"CREATE_IF_NOT_EXIST\"] = \"CREATE_IF_NOT_EXIST\";\n DataWedgeConfigMode[\"OVERWRITE\"] = \"OVERWRITE\";\n DataWedgeConfigMode[\"REMOVE\"] = \"REMOVE\";\n DataWedgeConfigMode[\"UPDATE\"] = \"UPDATE\";\n})(DataWedgeConfigMode || (DataWedgeConfigMode = {}));\nexport var DataWedgeNotificationType;\n(function (DataWedgeNotificationType) {\n DataWedgeNotificationType[\"CONFIGURATION_UPDATE\"] = \"CONFIGURATION_UPDATE\";\n DataWedgeNotificationType[\"PROFILE_SWITCH\"] = \"PROFILE_SWITCH\";\n DataWedgeNotificationType[\"SCANNER_STATUS\"] = \"SCANNER_STATUS\";\n})(DataWedgeNotificationType || (DataWedgeNotificationType = {}));\nexport var DataWedgePlugin;\n(function (DataWedgePlugin) {\n DataWedgePlugin[\"ADF\"] = \"ADF\";\n DataWedgePlugin[\"BARCODE\"] = \"BARCODE\";\n DataWedgePlugin[\"BDF\"] = \"BDF\";\n DataWedgePlugin[\"DCP\"] = \"DCP\";\n DataWedgePlugin[\"EKB\"] = \"EKB\";\n DataWedgePlugin[\"INTENT\"] = \"INTENT\";\n DataWedgePlugin[\"IP\"] = \"IP\";\n DataWedgePlugin[\"KEYSTROKE\"] = \"KEYSTROKE\";\n DataWedgePlugin[\"MSR\"] = \"MSR\";\n DataWedgePlugin[\"RFID\"] = \"RFID\";\n DataWedgePlugin[\"SERIAL\"] = \"SERIAL\";\n DataWedgePlugin[\"TOKENS\"] = \"TOKENS\";\n DataWedgePlugin[\"VOICE\"] = \"VOICE\";\n})(DataWedgePlugin || (DataWedgePlugin = {}));\nexport var ScannerIdentifier;\n(function (ScannerIdentifier) {\n ScannerIdentifier[\"AUTO\"] = \"AUTO\";\n ScannerIdentifier[\"BLUETOOTH_DS3678\"] = \"BLUETOOTH_DS3678\";\n ScannerIdentifier[\"BLUETOOTH_RS6000\"] = \"BLUETOOTH_RS6000\";\n ScannerIdentifier[\"BLUETOOTH_SSI\"] = \"BLUETOOTH_SSI\";\n ScannerIdentifier[\"INTERNAL_CAMERA\"] = \"INTERNAL_CAMERA\";\n ScannerIdentifier[\"INTERNAL_IMAGER\"] = \"INTERNAL_IMAGER\";\n ScannerIdentifier[\"INTERNAL_LASER\"] = \"INTERNAL_LASER\";\n ScannerIdentifier[\"PLUGABLE_SSI\"] = \"PLUGABLE_SSI\";\n ScannerIdentifier[\"PLUGABLE_SSI_RS5000\"] = \"PLUGABLE_SSI_RS5000\";\n ScannerIdentifier[\"SERIAL_SSI\"] = \"SERIAL_SSI\";\n ScannerIdentifier[\"USB_SSI_DS3608\"] = \"USB_SSI_DS3608\";\n})(ScannerIdentifier || (ScannerIdentifier = {}));\nexport var ScannerStatus;\n(function (ScannerStatus) {\n ScannerStatus[\"CONNECTED\"] = \"CONNECTED\";\n ScannerStatus[\"DISABLED\"] = \"DISABLED\";\n ScannerStatus[\"DISCONNECTED\"] = \"DISCONNECTED\";\n ScannerStatus[\"IDLE\"] = \"IDLE\";\n ScannerStatus[\"SCANNING\"] = \"SCANNING\";\n ScannerStatus[\"WAITING\"] = \"WAITING\";\n})(ScannerStatus || (ScannerStatus = {}));\nexport var ZebraErrorCodes;\n(function (ZebraErrorCodes) {\n ZebraErrorCodes[\"APP_ALREADY_ASSOCIATED\"] = \"APP_ALREADY_ASSOCIATED\";\n ZebraErrorCodes[\"APP_ALREADY_IN_DISABLED_LIST\"] = \"APP_ALREADY_IN_DISABLED_LIST\";\n ZebraErrorCodes[\"BUNDLE_EMPTY\"] = \"BUNDLE_EMPTY\";\n ZebraErrorCodes[\"CANNOT_READ_FILE\"] = \"CANNOT_READ_FILE\";\n ZebraErrorCodes[\"CONFIG_FILE_NOT_EXIST\"] = \"CONFIG_FILE_NOT_EXIST\";\n ZebraErrorCodes[\"DATAWEDGE_ALREADY_DISABLED\"] = \"DATAWEDGE_ALREADY_DISABLED\";\n ZebraErrorCodes[\"DATAWEDGE_ALREADY_ENABLED\"] = \"DATAWEDGE_ALREADY_ENABLED\";\n ZebraErrorCodes[\"DATAWEDGE_DISABLED\"] = \"DATAWEDGE_DISABLED\";\n ZebraErrorCodes[\"DEVICE_NOT_CONNECTED\"] = \"DEVICE_NOT_CONNECTED\";\n ZebraErrorCodes[\"DEVICE_NOT_SUPPORTED\"] = \"DEVICE_NOT_SUPPORTED\";\n ZebraErrorCodes[\"INPUT_NOT_ENABLED\"] = \"INPUT_NOT_ENABLED\";\n ZebraErrorCodes[\"INVALID_CONFIG_FILE\"] = \"INVALID_CONFIG_FILE\";\n ZebraErrorCodes[\"INVALID_FILE_NAME\"] = \"INVALID_FILE_NAME\";\n ZebraErrorCodes[\"INVALID_FOLDER_PATH\"] = \"INVALID_FOLDER_PATH\";\n ZebraErrorCodes[\"OPERATION_NOT_ALLOWED\"] = \"OPERATION_NOT_ALLOWED\";\n ZebraErrorCodes[\"PARAMETER_INVALID\"] = \"PARAMETER_INVALID\";\n ZebraErrorCodes[\"PLUGIN_BUNDLE_INVALID\"] = \"PLUGIN_BUNDLE_INVALID\";\n ZebraErrorCodes[\"PLUGIN_DISABLED\"] = \"PLUGIN_DISABLED\";\n ZebraErrorCodes[\"PLUGIN_DISABLED_IN_CONFIG\"] = \"PLUGIN_DISABLED_IN_CONFIG\";\n ZebraErrorCodes[\"PLUGIN_NOT_SUPPORTED\"] = \"PLUGIN_NOT_SUPPORTED\";\n ZebraErrorCodes[\"PROFILE_ALREADY_EXISTS\"] = \"PROFILE_ALREADY_EXISTS\";\n ZebraErrorCodes[\"PROFILE_ALREADY_SET\"] = \"PROFILE_ALREADY_SET\";\n ZebraErrorCodes[\"PROFILE_DISABLED\"] = \"PROFILE_DISABLED\";\n ZebraErrorCodes[\"PROFILE_HAS_APP_ASSOCIATION\"] = \"PROFILE_HAS_APP_ASSOCIATION\";\n ZebraErrorCodes[\"PROFILE_NAME_EMPTY\"] = \"PROFILE_NAME_EMPTY\";\n ZebraErrorCodes[\"PROFILE_NOT_FOUND\"] = \"PROFILE_NOT_FOUND\";\n ZebraErrorCodes[\"SCANNER_ALREADY_DISABLED\"] = \"SCANNER_ALREADY_DISABLED\";\n ZebraErrorCodes[\"SCANNER_ALREADY_ENABLED\"] = \"SCANNER_ALREADY_ENABLED\";\n ZebraErrorCodes[\"SCANNER_DISABLE_FAILED\"] = \"SCANNER_DISABLE_FAILED\";\n ZebraErrorCodes[\"SCANNER_ENABLE_FAILED\"] = \"SCANNER_ENABLE_FAILED\";\n ZebraErrorCodes[\"UNKNOWN\"] = \"UNKNOWN\";\n})(ZebraErrorCodes || (ZebraErrorCodes = {}));\n//# sourceMappingURL=definitions.js.map","import { registerPlugin } from '@capacitor/core';\nconst ZebraDataWedge = registerPlugin('ZebraDataWedge', {\n web: () => import('./web').then((m) => new m.ZebraDataWedgeWeb()),\n});\nconst notificationHandles = new Map();\nconst notificationKey = (options) => { var _a, _b; return `${(_a = options.appName) !== null && _a !== void 0 ? _a : ''}:${(_b = options.intentAction) !== null && _b !== void 0 ? _b : ''}:${options.notificationType}`; };\nexport const ZebraConfiguration = {\n cloneProfile: (options) => ZebraDataWedge.cloneProfile(options),\n createProfile: (options) => ZebraDataWedge.createProfile(options),\n deleteProfile: (options) => ZebraDataWedge.deleteProfile(options),\n importConfig: (options) => ZebraDataWedge.importConfig(options),\n renameProfile: (options) => ZebraDataWedge.renameProfile(options),\n restoreConfig: () => ZebraDataWedge.restoreConfig(),\n setConfig: (options) => ZebraDataWedge.setConfig(options),\n setDisabledAppList: (options) => ZebraDataWedge.setDisabledAppList(options),\n setIgnoreDisabledProfiles: (doIgnoreDisabledProfiles) => ZebraDataWedge.setIgnoreDisabledProfiles({ enabled: doIgnoreDisabledProfiles }),\n};\nexport const ZebraNotification = {\n async registerForNotification(options) {\n var _a;\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 ((_a = notificationHandles.get(key)) === null || _a === void 0 ? void 0 : _a.remove());\n const handle = await ZebraDataWedge.addListener('notification', (event) => {\n var _a;\n if (event.notificationType === options.notificationType) {\n (_a = options.callback) === null || _a === void 0 ? void 0 : _a.call(options, event);\n }\n });\n notificationHandles.set(key, handle);\n }\n },\n async unRegisterForNotification(options) {\n var _a;\n await ZebraDataWedge.unRegisterForNotification(options);\n const key = notificationKey(options);\n await ((_a = notificationHandles.get(key)) === null || _a === void 0 ? void 0 : _a.remove());\n notificationHandles.delete(key);\n },\n};\nexport const ZebraQuery = {\n enumerateScanners: async () => (await ZebraDataWedge.enumerateScanners()).scanners,\n getActiveProfile: async () => (await ZebraDataWedge.getActiveProfile()).profileName,\n getAssociatedApps: async (profileName) => (await ZebraDataWedge.getAssociatedApps({ profileName })).appList,\n getConfig: (options) => ZebraDataWedge.getConfig(options),\n getDatawedgeStatus: () => ZebraDataWedge.getDatawedgeStatus(),\n getDisabledAppList: async () => (await ZebraDataWedge.getDisabledAppList()).appList,\n getIgnoreDisabledProfiles: async () => (await ZebraDataWedge.getIgnoreDisabledProfiles()).enabled,\n getProfilesList: async () => (await ZebraDataWedge.getProfilesList()).profiles,\n getScannerStatus: async () => (await ZebraDataWedge.getScannerStatus()).status,\n getVersionInfo: () => ZebraDataWedge.getVersionInfo(),\n};\nexport const ZebraRuntime = {\n disableDatawedge: () => ZebraDataWedge.disableDatawedge(),\n disableScannerInput: () => ZebraDataWedge.disableScannerInput(),\n enableDatawedge: () => ZebraDataWedge.enableDatawedge(),\n enableScannerInput: () => ZebraDataWedge.enableScannerInput(),\n enumerateTriggers: async () => (await ZebraDataWedge.enumerateTriggers()).triggers,\n notify: (options) => ZebraDataWedge.notify(options),\n resetDefaultProfile: () => ZebraDataWedge.resetDefaultProfile(),\n setDefaultProfile: (profileName) => ZebraDataWedge.setDefaultProfile({ profileName }),\n setReportingOptions: (options) => ZebraDataWedge.setReportingOptions(options),\n softRfidTrigger: () => ZebraDataWedge.softRfidTrigger(),\n softScanTrigger: (intentAction) => ZebraDataWedge.softScanTrigger({ intentAction }),\n switchScanner: (scanerIndex) => ZebraDataWedge.switchScanner({ scannerIndex: scanerIndex }),\n switchScannerParams: (options) => ZebraDataWedge.switchScannerParams(options),\n switchToProfile: (profileName) => ZebraDataWedge.switchToProfile({ profileName }),\n};\nexport * from './definitions';\nexport { ZebraDataWedge };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nconst unavailable = () => {\n throw new Error('Zebra DataWedge is only available on Android devices with Zebra DataWedge installed.');\n};\nexport class ZebraDataWedgeWeb extends WebPlugin {\n cloneProfile(_options) {\n return unavailable();\n }\n createProfile(_options) {\n return unavailable();\n }\n deleteProfile(_options) {\n return unavailable();\n }\n importConfig(_options) {\n return unavailable();\n }\n renameProfile(_options) {\n return unavailable();\n }\n restoreConfig() {\n return unavailable();\n }\n setConfig(_options) {\n return unavailable();\n }\n setDisabledAppList(_options) {\n return unavailable();\n }\n setIgnoreDisabledProfiles(_options) {\n return unavailable();\n }\n registerForNotification(_options) {\n return unavailable();\n }\n unRegisterForNotification(_options) {\n return unavailable();\n }\n enumerateScanners() {\n return unavailable();\n }\n getActiveProfile() {\n return unavailable();\n }\n getAssociatedApps(_options) {\n return unavailable();\n }\n getConfig(_options) {\n return unavailable();\n }\n getDatawedgeStatus() {\n return unavailable();\n }\n getDisabledAppList() {\n return unavailable();\n }\n getIgnoreDisabledProfiles() {\n return unavailable();\n }\n getProfilesList() {\n return unavailable();\n }\n getScannerStatus() {\n return unavailable();\n }\n getVersionInfo() {\n return unavailable();\n }\n disableDatawedge() {\n return unavailable();\n }\n disableScannerInput() {\n return unavailable();\n }\n enableDatawedge() {\n return unavailable();\n }\n enableScannerInput() {\n return unavailable();\n }\n enumerateTriggers() {\n return unavailable();\n }\n notify(_options) {\n return unavailable();\n }\n resetDefaultProfile() {\n return unavailable();\n }\n setDefaultProfile(_options) {\n return unavailable();\n }\n setReportingOptions(_options) {\n return unavailable();\n }\n softRfidTrigger() {\n return unavailable();\n }\n softScanTrigger(_options) {\n return unavailable();\n }\n switchScanner(_options) {\n return unavailable();\n }\n switchScannerParams(_options) {\n return unavailable();\n }\n switchToProfile(_options) {\n return unavailable();\n }\n async getPluginVersion() {\n return { version: 'web' };\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["DataWedgeConfigMode","DataWedgeNotificationType","DataWedgePlugin","ScannerIdentifier","ScannerStatus","ZebraErrorCodes","registerPlugin","WebPlugin"],"mappings":";;;AAAWA;IACX,CAAC,UAAU,mBAAmB,EAAE;IAChC,IAAI,mBAAmB,CAAC,qBAAqB,CAAC,GAAG,qBAAqB;IACtE,IAAI,mBAAmB,CAAC,WAAW,CAAC,GAAG,WAAW;IAClD,IAAI,mBAAmB,CAAC,QAAQ,CAAC,GAAG,QAAQ;IAC5C,IAAI,mBAAmB,CAAC,QAAQ,CAAC,GAAG,QAAQ;IAC5C,CAAC,EAAEA,2BAAmB,KAAKA,2BAAmB,GAAG,EAAE,CAAC,CAAC;AAC1CC;IACX,CAAC,UAAU,yBAAyB,EAAE;IACtC,IAAI,yBAAyB,CAAC,sBAAsB,CAAC,GAAG,sBAAsB;IAC9E,IAAI,yBAAyB,CAAC,gBAAgB,CAAC,GAAG,gBAAgB;IAClE,IAAI,yBAAyB,CAAC,gBAAgB,CAAC,GAAG,gBAAgB;IAClE,CAAC,EAAEA,iCAAyB,KAAKA,iCAAyB,GAAG,EAAE,CAAC,CAAC;AACtDC;IACX,CAAC,UAAU,eAAe,EAAE;IAC5B,IAAI,eAAe,CAAC,KAAK,CAAC,GAAG,KAAK;IAClC,IAAI,eAAe,CAAC,SAAS,CAAC,GAAG,SAAS;IAC1C,IAAI,eAAe,CAAC,KAAK,CAAC,GAAG,KAAK;IAClC,IAAI,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IAAI;IACJ;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,7 @@
1
+ import Foundation
2
+
3
+ @objc public class ZebraDataWedge: NSObject {
4
+ @objc public func unavailableMessage() -> String {
5
+ "Zebra DataWedge is only available on Android devices with Zebra DataWedge installed."
6
+ }
7
+ }
@@ -0,0 +1,92 @@
1
+ import Capacitor
2
+ import Foundation
3
+
4
+ @objc(ZebraDataWedgePlugin)
5
+ public class ZebraDataWedgePlugin: CAPPlugin, CAPBridgedPlugin {
6
+ public let identifier = "ZebraDataWedgePlugin"
7
+ public let jsName = "ZebraDataWedge"
8
+ public let pluginMethods: [CAPPluginMethod] = [
9
+ CAPPluginMethod(name: "cloneProfile", returnType: CAPPluginReturnPromise),
10
+ CAPPluginMethod(name: "createProfile", returnType: CAPPluginReturnPromise),
11
+ CAPPluginMethod(name: "deleteProfile", returnType: CAPPluginReturnPromise),
12
+ CAPPluginMethod(name: "importConfig", returnType: CAPPluginReturnPromise),
13
+ CAPPluginMethod(name: "renameProfile", returnType: CAPPluginReturnPromise),
14
+ CAPPluginMethod(name: "restoreConfig", returnType: CAPPluginReturnPromise),
15
+ CAPPluginMethod(name: "setConfig", returnType: CAPPluginReturnPromise),
16
+ CAPPluginMethod(name: "setDisabledAppList", returnType: CAPPluginReturnPromise),
17
+ CAPPluginMethod(name: "setIgnoreDisabledProfiles", returnType: CAPPluginReturnPromise),
18
+ CAPPluginMethod(name: "registerForNotification", returnType: CAPPluginReturnPromise),
19
+ CAPPluginMethod(name: "unRegisterForNotification", returnType: CAPPluginReturnPromise),
20
+ CAPPluginMethod(name: "enumerateScanners", returnType: CAPPluginReturnPromise),
21
+ CAPPluginMethod(name: "getActiveProfile", returnType: CAPPluginReturnPromise),
22
+ CAPPluginMethod(name: "getAssociatedApps", returnType: CAPPluginReturnPromise),
23
+ CAPPluginMethod(name: "getConfig", returnType: CAPPluginReturnPromise),
24
+ CAPPluginMethod(name: "getDatawedgeStatus", returnType: CAPPluginReturnPromise),
25
+ CAPPluginMethod(name: "getDisabledAppList", returnType: CAPPluginReturnPromise),
26
+ CAPPluginMethod(name: "getIgnoreDisabledProfiles", returnType: CAPPluginReturnPromise),
27
+ CAPPluginMethod(name: "getProfilesList", returnType: CAPPluginReturnPromise),
28
+ CAPPluginMethod(name: "getScannerStatus", returnType: CAPPluginReturnPromise),
29
+ CAPPluginMethod(name: "getVersionInfo", returnType: CAPPluginReturnPromise),
30
+ CAPPluginMethod(name: "disableDatawedge", returnType: CAPPluginReturnPromise),
31
+ CAPPluginMethod(name: "disableScannerInput", returnType: CAPPluginReturnPromise),
32
+ CAPPluginMethod(name: "enableDatawedge", returnType: CAPPluginReturnPromise),
33
+ CAPPluginMethod(name: "enableScannerInput", returnType: CAPPluginReturnPromise),
34
+ CAPPluginMethod(name: "enumerateTriggers", returnType: CAPPluginReturnPromise),
35
+ CAPPluginMethod(name: "notify", returnType: CAPPluginReturnPromise),
36
+ CAPPluginMethod(name: "resetDefaultProfile", returnType: CAPPluginReturnPromise),
37
+ CAPPluginMethod(name: "setDefaultProfile", returnType: CAPPluginReturnPromise),
38
+ CAPPluginMethod(name: "setReportingOptions", returnType: CAPPluginReturnPromise),
39
+ CAPPluginMethod(name: "softRfidTrigger", returnType: CAPPluginReturnPromise),
40
+ CAPPluginMethod(name: "softScanTrigger", returnType: CAPPluginReturnPromise),
41
+ CAPPluginMethod(name: "switchScanner", returnType: CAPPluginReturnPromise),
42
+ CAPPluginMethod(name: "switchScannerParams", returnType: CAPPluginReturnPromise),
43
+ CAPPluginMethod(name: "switchToProfile", returnType: CAPPluginReturnPromise),
44
+ CAPPluginMethod(name: "getPluginVersion", returnType: CAPPluginReturnPromise)
45
+ ]
46
+
47
+ private let implementation = ZebraDataWedge()
48
+
49
+ private func rejectUnavailable(_ call: CAPPluginCall) {
50
+ call.reject(implementation.unavailableMessage())
51
+ }
52
+
53
+ @objc public func cloneProfile(_ call: CAPPluginCall) { rejectUnavailable(call) }
54
+ @objc public func createProfile(_ call: CAPPluginCall) { rejectUnavailable(call) }
55
+ @objc public func deleteProfile(_ call: CAPPluginCall) { rejectUnavailable(call) }
56
+ @objc public func importConfig(_ call: CAPPluginCall) { rejectUnavailable(call) }
57
+ @objc public func renameProfile(_ call: CAPPluginCall) { rejectUnavailable(call) }
58
+ @objc public func restoreConfig(_ call: CAPPluginCall) { rejectUnavailable(call) }
59
+ @objc public func setConfig(_ call: CAPPluginCall) { rejectUnavailable(call) }
60
+ @objc public func setDisabledAppList(_ call: CAPPluginCall) { rejectUnavailable(call) }
61
+ @objc public func setIgnoreDisabledProfiles(_ call: CAPPluginCall) { rejectUnavailable(call) }
62
+ @objc public func registerForNotification(_ call: CAPPluginCall) { rejectUnavailable(call) }
63
+ @objc public func unRegisterForNotification(_ call: CAPPluginCall) { rejectUnavailable(call) }
64
+ @objc public func enumerateScanners(_ call: CAPPluginCall) { rejectUnavailable(call) }
65
+ @objc public func getActiveProfile(_ call: CAPPluginCall) { rejectUnavailable(call) }
66
+ @objc public func getAssociatedApps(_ call: CAPPluginCall) { rejectUnavailable(call) }
67
+ @objc public func getConfig(_ call: CAPPluginCall) { rejectUnavailable(call) }
68
+ @objc public func getDatawedgeStatus(_ call: CAPPluginCall) { rejectUnavailable(call) }
69
+ @objc public func getDisabledAppList(_ call: CAPPluginCall) { rejectUnavailable(call) }
70
+ @objc public func getIgnoreDisabledProfiles(_ call: CAPPluginCall) { rejectUnavailable(call) }
71
+ @objc public func getProfilesList(_ call: CAPPluginCall) { rejectUnavailable(call) }
72
+ @objc public func getScannerStatus(_ call: CAPPluginCall) { rejectUnavailable(call) }
73
+ @objc public func getVersionInfo(_ call: CAPPluginCall) { rejectUnavailable(call) }
74
+ @objc public func disableDatawedge(_ call: CAPPluginCall) { rejectUnavailable(call) }
75
+ @objc public func disableScannerInput(_ call: CAPPluginCall) { rejectUnavailable(call) }
76
+ @objc public func enableDatawedge(_ call: CAPPluginCall) { rejectUnavailable(call) }
77
+ @objc public func enableScannerInput(_ call: CAPPluginCall) { rejectUnavailable(call) }
78
+ @objc public func enumerateTriggers(_ call: CAPPluginCall) { rejectUnavailable(call) }
79
+ @objc public func notify(_ call: CAPPluginCall) { rejectUnavailable(call) }
80
+ @objc public func resetDefaultProfile(_ call: CAPPluginCall) { rejectUnavailable(call) }
81
+ @objc public func setDefaultProfile(_ call: CAPPluginCall) { rejectUnavailable(call) }
82
+ @objc public func setReportingOptions(_ call: CAPPluginCall) { rejectUnavailable(call) }
83
+ @objc public func softRfidTrigger(_ call: CAPPluginCall) { rejectUnavailable(call) }
84
+ @objc public func softScanTrigger(_ call: CAPPluginCall) { rejectUnavailable(call) }
85
+ @objc public func switchScanner(_ call: CAPPluginCall) { rejectUnavailable(call) }
86
+ @objc public func switchScannerParams(_ call: CAPPluginCall) { rejectUnavailable(call) }
87
+ @objc public func switchToProfile(_ call: CAPPluginCall) { rejectUnavailable(call) }
88
+
89
+ @objc public func getPluginVersion(_ call: CAPPluginCall) {
90
+ call.resolve(["version": "ios"])
91
+ }
92
+ }
@@ -0,0 +1,12 @@
1
+ import XCTest
2
+ @testable import ZebraDataWedgePlugin
3
+
4
+ final class ZebraDataWedgePluginTests: XCTestCase {
5
+ func testUnavailableMessage() {
6
+ let implementation = ZebraDataWedge()
7
+ XCTAssertEqual(
8
+ implementation.unavailableMessage(),
9
+ "Zebra DataWedge is only available on Android devices with Zebra DataWedge installed."
10
+ )
11
+ }
12
+ }
package/package.json ADDED
@@ -0,0 +1,91 @@
1
+ {
2
+ "name": "@capgo/capacitor-zebra-datawedge",
3
+ "version": "8.0.0",
4
+ "description": "Capacitor plugin for Zebra DataWedge profile management, notifications, queries, and soft scanning on Zebra Android devices.",
5
+ "main": "dist/plugin.cjs.js",
6
+ "module": "dist/esm/index.js",
7
+ "types": "dist/esm/index.d.ts",
8
+ "unpkg": "dist/plugin.js",
9
+ "files": [
10
+ "android/src/main/",
11
+ "android/build.gradle",
12
+ "dist/",
13
+ "ios/Sources",
14
+ "ios/Tests",
15
+ "Package.swift",
16
+ "CapgoCapacitorZebraDataWedge.podspec"
17
+ ],
18
+ "author": "Martin Donadieu <martin@capgo.app>",
19
+ "license": "MPL-2.0",
20
+ "repository": {
21
+ "type": "git",
22
+ "url": "git+https://github.com/Cap-go/capacitor-zebra-datawedge.git"
23
+ },
24
+ "bugs": {
25
+ "url": "https://github.com/Cap-go/capacitor-zebra-datawedge/issues"
26
+ },
27
+ "homepage": "https://capgo.app/docs/plugins/zebra-datawedge/",
28
+ "keywords": [
29
+ "capacitor",
30
+ "plugin",
31
+ "zebra",
32
+ "datawedge",
33
+ "barcode",
34
+ "scanner",
35
+ "android"
36
+ ],
37
+ "scripts": {
38
+ "verify": "bun run verify:ios && bun run verify:android && bun run verify:web",
39
+ "verify:ios": "xcodebuild -scheme CapgoCapacitorZebraDataWedge -destination generic/platform=iOS",
40
+ "verify:android": "cd android && ./gradlew clean build test && cd ..",
41
+ "verify:web": "bun run build",
42
+ "lint": "bun run eslint && bun run prettier -- --check && bun run swiftlint -- lint",
43
+ "fmt": "bun run eslint -- --fix && bun run prettier -- --write && bun run swiftlint -- --fix --format",
44
+ "eslint": "eslint . --ext .ts",
45
+ "prettier": "prettier-pretty-check \"**/*.{css,html,ts,js,java,json,md}\" --plugin=prettier-plugin-java",
46
+ "swiftlint": "node-swiftlint",
47
+ "docgen": "docgen --api ZebraDataWedgePlugin --output-readme README.md --output-json dist/docs.json",
48
+ "build": "bun run clean && bun run docgen && tsc && rollup -c rollup.config.mjs",
49
+ "clean": "rimraf ./dist",
50
+ "watch": "tsc --watch",
51
+ "prepublishOnly": "bun run build",
52
+ "check:wiring": "node scripts/check-capacitor-plugin-wiring.mjs"
53
+ },
54
+ "devDependencies": {
55
+ "@capacitor/android": "^8.0.0",
56
+ "@capacitor/cli": "^8.0.0",
57
+ "@capacitor/core": "^8.0.0",
58
+ "@capacitor/docgen": "^0.3.1",
59
+ "@capacitor/ios": "^8.0.0",
60
+ "@ionic/eslint-config": "^0.4.0",
61
+ "@ionic/prettier-config": "^4.0.0",
62
+ "@ionic/swiftlint-config": "^2.0.0",
63
+ "@types/node": "^24.10.1",
64
+ "eslint": "^8.57.1",
65
+ "eslint-plugin-import": "^2.31.0",
66
+ "husky": "^9.1.7",
67
+ "prettier": "^3.6.2",
68
+ "prettier-plugin-java": "^2.7.7",
69
+ "prettier-pretty-check": "^0.2.0",
70
+ "rimraf": "^6.1.0",
71
+ "rollup": "^4.53.2",
72
+ "swiftlint": "^2.0.0",
73
+ "typescript": "^5.9.3"
74
+ },
75
+ "peerDependencies": {
76
+ "@capacitor/core": ">=8.0.0"
77
+ },
78
+ "prettier": "@ionic/prettier-config",
79
+ "swiftlint": "@ionic/swiftlint-config",
80
+ "eslintConfig": {
81
+ "extends": "@ionic/eslint-config/recommended"
82
+ },
83
+ "capacitor": {
84
+ "ios": {
85
+ "src": "ios"
86
+ },
87
+ "android": {
88
+ "src": "android"
89
+ }
90
+ }
91
+ }