@doorstepai/dropoff-sdk-capacitor 1.0.1 → 1.0.3

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.
Files changed (38) hide show
  1. package/android/build.gradle +1 -1
  2. package/android/src/main/java/ai/doorstep/dropoffsdk/capacitor/DoorstepAIDropoffSDKPlugin.kt +140 -2
  3. package/dist/docs.json +282 -1
  4. package/dist/esm/definitions.d.ts +82 -8
  5. package/dist/esm/index.js.map +1 -1
  6. package/dist/esm/web.d.ts +13 -1
  7. package/dist/esm/web.js +15 -0
  8. package/dist/esm/web.js.map +1 -1
  9. package/dist/plugin.cjs.js +15 -2
  10. package/dist/plugin.cjs.js.map +1 -1
  11. package/dist/plugin.js +15 -2
  12. package/dist/plugin.js.map +1 -1
  13. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64/DoorstepDropoffSDK.framework/DoorstepDropoffSDK +0 -0
  14. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64/DoorstepDropoffSDK.framework/Info.plist +0 -0
  15. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/arm64-apple-ios.abi.json +5365 -1558
  16. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +82 -9
  17. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  18. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/arm64-apple-ios.swiftinterface +82 -9
  19. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64/DoorstepDropoffSDK.framework/_CodeSignature/CodeResources +11 -11
  20. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64/dSYMs/DoorstepDropoffSDK.framework.dSYM/Contents/Resources/DWARF/DoorstepDropoffSDK +0 -0
  21. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64/dSYMs/DoorstepDropoffSDK.framework.dSYM/Contents/Resources/Relocations/aarch64/DoorstepDropoffSDK.yml +2630 -2113
  22. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/DoorstepDropoffSDK +0 -0
  23. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/Info.plist +0 -0
  24. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/arm64-apple-ios-simulator.abi.json +5365 -1558
  25. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +82 -9
  26. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  27. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface +82 -9
  28. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +5365 -1558
  29. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +82 -9
  30. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  31. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +82 -9
  32. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/_CodeSignature/CodeResources +21 -21
  33. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/DoorstepDropoffSDK.framework.dSYM/Contents/Resources/DWARF/DoorstepDropoffSDK +0 -0
  34. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/DoorstepDropoffSDK.framework.dSYM/Contents/Resources/Relocations/aarch64/DoorstepDropoffSDK.yml +2630 -2113
  35. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/DoorstepDropoffSDK.framework.dSYM/Contents/Resources/Relocations/x86_64/DoorstepDropoffSDK.yml +2616 -2102
  36. package/ios/Plugin/DoorstepAIDropoffSDKPlugin.m +5 -0
  37. package/ios/Plugin/DoorstepAIDropoffSDKPlugin.swift +132 -1
  38. package/package.json +1 -1
@@ -1,3 +1,4 @@
1
+ import type { PluginListenerHandle } from '@capacitor/core';
1
2
  /**
2
3
  * Structured address used by {@link DoorstepAIDropoffSDKPlugin.startDeliveryByAddress}.
3
4
  * Field names mirror the Google Places address-component types.
@@ -16,11 +17,36 @@ export interface LatLngObject {
16
17
  lat: number;
17
18
  lng: number;
18
19
  }
20
+ /** A stop monitored for route geofencing. Mirrors the native `DeliveryStop`. */
21
+ export interface DeliveryStop {
22
+ deliveryId: string;
23
+ address: string;
24
+ latitude: number;
25
+ longitude: number;
26
+ radiusMeters?: number;
27
+ customerId?: string;
28
+ driverId?: string;
29
+ }
30
+ /** Options for {@link DoorstepAIDropoffSDKPlugin.startRouteGeofencing}. */
31
+ export interface RouteGeofenceOptions {
32
+ defaultRadiusMeters?: number;
33
+ timeoutSeconds?: number;
34
+ autoStopAfterDropoffSeconds?: number;
35
+ /** Android only; ignored on iOS (the OS owns background region monitoring). */
36
+ manualForeground?: boolean;
37
+ }
38
+ export type GeofenceSessionEventType = 'STARTED' | 'STOPPED';
39
+ /** Payload delivered to the `'geofenceSessionEvent'` listener. */
40
+ export interface GeofenceSessionEvent {
41
+ deliveryId: string;
42
+ type: GeofenceSessionEventType;
43
+ reason: string;
44
+ }
19
45
  /**
20
46
  * Type of dropoff for {@link DoorstepAIDropoffSDKPlugin.markDropoff}.
21
47
  * Maps to the native SDK's `"pod"` / `"non_pod"` strings.
22
48
  */
23
- export declare type DropoffType = 'pod' | 'non_pod';
49
+ export type DropoffType = 'pod' | 'non_pod';
24
50
  export interface InitOptions {
25
51
  /** Android only: title shown in the foreground-service notification. */
26
52
  notificationTitle?: string;
@@ -34,10 +60,21 @@ export interface SetApiKeyOptions {
34
60
  * Optional caller-supplied identifier for the customer associated with the
35
61
  * delivery. Forwarded verbatim to the native SDK. Optional on every platform.
36
62
  */
37
- declare type CustomerIdOption = {
63
+ type CustomerIdOption = {
38
64
  customerId?: string;
39
65
  };
40
- export interface StartDeliveryByPlaceIDOptions extends CustomerIdOption {
66
+ /**
67
+ * Android-only option shared by every `startDelivery*` method.
68
+ */
69
+ type ManualForegroundOption = {
70
+ /**
71
+ * Android only: when `true`, the host app is responsible for its own
72
+ * foreground service/notification and the SDK will not start a second one.
73
+ * Ignored on iOS. Defaults to `false`.
74
+ */
75
+ manualForeground?: boolean;
76
+ };
77
+ export interface StartDeliveryByPlaceIDOptions extends CustomerIdOption, ManualForegroundOption {
41
78
  placeID: string;
42
79
  deliveryId: string;
43
80
  timeoutSeconds?: number;
@@ -58,7 +95,7 @@ export interface StartDeliveryByPlusCodeOptions extends CustomerIdOption {
58
95
  */
59
96
  autoStopAfterDropoffSeconds?: number;
60
97
  }
61
- export interface StartDeliveryByAddressOptions extends CustomerIdOption {
98
+ export interface StartDeliveryByAddressOptions extends CustomerIdOption, ManualForegroundOption {
62
99
  address: AddressType;
63
100
  deliveryId: string;
64
101
  coordinates?: LatLngObject;
@@ -69,7 +106,7 @@ export interface StartDeliveryByAddressOptions extends CustomerIdOption {
69
106
  */
70
107
  autoStopAfterDropoffSeconds?: number;
71
108
  }
72
- export interface StartDeliveryByAddressStringOptions extends CustomerIdOption {
109
+ export interface StartDeliveryByAddressStringOptions extends CustomerIdOption, ManualForegroundOption {
73
110
  address: string;
74
111
  deliveryId: string;
75
112
  coordinates?: LatLngObject;
@@ -101,12 +138,14 @@ export interface MarkDropoffOptions {
101
138
  export interface NewEventOptions {
102
139
  eventName: string;
103
140
  deliveryId: string;
141
+ /** Epoch seconds; if omitted the SDK stamps the current time. */
142
+ timestamp?: number;
104
143
  }
105
144
  export interface StopDeliveryOptions {
106
145
  deliveryId: string;
107
146
  }
108
- export declare type PermissionState = 'granted' | 'denied' | 'prompt' | 'prompt-with-rationale';
109
- export declare type DoorstepPermissionType = 'location' | 'activity';
147
+ export type PermissionState = 'granted' | 'denied' | 'prompt' | 'prompt-with-rationale';
148
+ export type DoorstepPermissionType = 'location' | 'activity' | 'bluetooth';
110
149
  export interface PermissionStatus {
111
150
  /** Foreground location (when-in-use). Both platforms. */
112
151
  location: PermissionState;
@@ -115,9 +154,19 @@ export interface PermissionStatus {
115
154
  * Android: `ACTIVITY_RECOGNITION`. iOS: `NSMotionUsageDescription`.
116
155
  */
117
156
  activity: PermissionState;
157
+ /**
158
+ * Bluetooth, needed only for BLE collection (off unless server-enabled).
159
+ * Android: `BLUETOOTH_SCAN` (API 31+). iOS: `NSBluetoothAlwaysUsageDescription`.
160
+ * Opt-in: NOT requested by a no-argument `requestPermissions()` — pass it
161
+ * explicitly (`requestPermissions({ permissions: ['bluetooth'] })`).
162
+ */
163
+ bluetooth: PermissionState;
118
164
  }
119
165
  export interface PermissionRequestOptions {
120
- /** If omitted, requests all permissions. */
166
+ /**
167
+ * Which permissions to request. If omitted, requests the default set
168
+ * (location + activity) — Bluetooth is opt-in and must be listed explicitly.
169
+ */
121
170
  permissions?: DoorstepPermissionType[];
122
171
  }
123
172
  export interface DoorstepAIDropoffSDKPlugin {
@@ -139,6 +188,31 @@ export interface DoorstepAIDropoffSDKPlugin {
139
188
  markDropoff(options: MarkDropoffOptions): Promise<void>;
140
189
  newEvent(options: NewEventOptions): Promise<void>;
141
190
  stopDelivery(options: StopDeliveryOptions): Promise<void>;
191
+ /**
192
+ * Start route geofencing. ENTER auto-starts a session; EXIT stops it only if a
193
+ * dropoff was marked (else the per-session timeout backstops it). Subscribe to
194
+ * session lifecycle via `addListener('geofenceSessionEvent', ...)`.
195
+ */
196
+ startRouteGeofencing(options: {
197
+ stops: DeliveryStop[];
198
+ options?: RouteGeofenceOptions;
199
+ }): Promise<void>;
200
+ /** Replace the monitored stops in place without tearing down still-present stops. */
201
+ updateRouteStops(options: {
202
+ stops: DeliveryStop[];
203
+ }): Promise<void>;
204
+ /** Stop route geofencing and clear all monitored stops. */
205
+ stopRouteGeofencing(): Promise<void>;
206
+ /** Re-arm route geofencing after a process relaunch if a route was active. */
207
+ resumeRouteGeofencingIfNeeded(): Promise<void>;
208
+ /** The stops currently registered for route geofencing (empty if none). */
209
+ getMonitoredStops(): Promise<{
210
+ stops: DeliveryStop[];
211
+ }>;
212
+ /** Subscribe to route-geofence session STARTED/STOPPED events. */
213
+ addListener(eventName: 'geofenceSessionEvent', listenerFunc: (event: GeofenceSessionEvent) => void): Promise<PluginListenerHandle>;
214
+ /** Remove all listeners registered for this plugin. */
215
+ removeAllListeners(): Promise<void>;
142
216
  /** Returns the current grant state for each permission the SDK uses. */
143
217
  checkPermissions(): Promise<PermissionStatus>;
144
218
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAI5D,MAAM,MAAM,GAAG,cAA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AAChF,2EAA2E;AAC3E,sCAAsC;AACtC,MAAM,oBAAoB,GAA+B,IAAI,KAAK,CAAC,MAAM,EAAE;IACzE,GAAG,CAAC,MAAM,EAAE,IAAI,EAAE,QAAQ;QACxB,IAAI,IAAI,KAAK,MAAM,EAAE,CAAC;YACpB,OAAO,CAAC,OAAqB,EAAiB,EAAE;gBAC9C,IAAI,SAAS,CAAC,WAAW,EAAE,KAAK,SAAS,EAAE,CAAC;oBAC1C,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;gBAC3B,CAAC;gBACD,OAAO,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YAC9B,CAAC,CAAC;QACJ,CAAC;QACD,OAAO,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC;IAC7C,CAAC;CACF,CAAC,CAAC;AAEH,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,oBAAoB,EAAE,CAAC"}
package/dist/esm/web.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { WebPlugin } from '@capacitor/core';
2
- import type { DoorstepAIDropoffSDKPlugin, InitOptions, MarkDropoffOptions, NewEventOptions, PermissionRequestOptions, PermissionStatus, SetApiKeyOptions, StartDeliveryByAddressOptions, StartDeliveryByAddressStringOptions, StartDeliveryByLatLngOptions, StartDeliveryByPlaceIDOptions, StartDeliveryByPlusCodeOptions, StopDeliveryOptions } from './definitions';
2
+ import type { DoorstepAIDropoffSDKPlugin, InitOptions, MarkDropoffOptions, NewEventOptions, PermissionRequestOptions, PermissionStatus, SetApiKeyOptions, StartDeliveryByAddressOptions, StartDeliveryByAddressStringOptions, StartDeliveryByLatLngOptions, StartDeliveryByPlaceIDOptions, StartDeliveryByPlusCodeOptions, StopDeliveryOptions, DeliveryStop, RouteGeofenceOptions } from './definitions';
3
3
  /**
4
4
  * Web stub. The Dropoff SDK is native-only — every call rejects with
5
5
  * `UNIMPLEMENTED` so failures surface immediately on the web platform
@@ -18,6 +18,18 @@ export declare class DoorstepAIDropoffSDKWeb extends WebPlugin implements Doorst
18
18
  markDropoff(_options: MarkDropoffOptions): Promise<void>;
19
19
  newEvent(_options: NewEventOptions): Promise<void>;
20
20
  stopDelivery(_options: StopDeliveryOptions): Promise<void>;
21
+ startRouteGeofencing(_options: {
22
+ stops: DeliveryStop[];
23
+ options?: RouteGeofenceOptions;
24
+ }): Promise<void>;
25
+ updateRouteStops(_options: {
26
+ stops: DeliveryStop[];
27
+ }): Promise<void>;
28
+ stopRouteGeofencing(): Promise<void>;
29
+ resumeRouteGeofencingIfNeeded(): Promise<void>;
30
+ getMonitoredStops(): Promise<{
31
+ stops: DeliveryStop[];
32
+ }>;
21
33
  checkPermissions(): Promise<PermissionStatus>;
22
34
  requestPermissions(_options?: PermissionRequestOptions): Promise<PermissionStatus>;
23
35
  }
package/dist/esm/web.js CHANGED
@@ -41,6 +41,21 @@ export class DoorstepAIDropoffSDKWeb extends WebPlugin {
41
41
  stopDelivery(_options) {
42
42
  return this.unsupported('stopDelivery');
43
43
  }
44
+ startRouteGeofencing(_options) {
45
+ return this.unsupported('startRouteGeofencing');
46
+ }
47
+ updateRouteStops(_options) {
48
+ return this.unsupported('updateRouteStops');
49
+ }
50
+ stopRouteGeofencing() {
51
+ return this.unsupported('stopRouteGeofencing');
52
+ }
53
+ resumeRouteGeofencingIfNeeded() {
54
+ return this.unsupported('resumeRouteGeofencingIfNeeded');
55
+ }
56
+ getMonitoredStops() {
57
+ return this.unsupported('getMonitoredStops');
58
+ }
44
59
  checkPermissions() {
45
60
  return this.unsupported('checkPermissions');
46
61
  }
@@ -1 +1 @@
1
- {"version":3,"file":"web.js","sourceRoot":"","sources":["../../src/web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAkB5C;;;;GAIG;AACH,MAAM,OAAO,uBACX,SAAQ,SAAS;IAGT,WAAW,CAAC,MAAc;QAChC,OAAO,OAAO,CAAC,MAAM,CACn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AAyB;QAChC,OAAO,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IACtC,CAAC;IACD,YAAY,CAAC,QAA6B;QACxC,OAAO,IAAI,CAAC,WAAW,CAAC,cAAc,CAAC,CAAC;IAC1C,CAAC;IACD,oBAAoB,CAAC,QAGpB;QACC,OAAO,IAAI,CAAC,WAAW,CAAC,sBAAsB,CAAC,CAAC;IAClD,CAAC;IACD,gBAAgB,CAAC,QAAmC;QAClD,OAAO,IAAI,CAAC,WAAW,CAAC,kBAAkB,CAAC,CAAC;IAC9C,CAAC;IACD,mBAAmB;QACjB,OAAO,IAAI,CAAC,WAAW,CAAC,qBAAqB,CAAC,CAAC;IACjD,CAAC;IACD,6BAA6B;QAC3B,OAAO,IAAI,CAAC,WAAW,CAAC,+BAA+B,CAAC,CAAC;IAC3D,CAAC;IACD,iBAAiB;QACf,OAAO,IAAI,CAAC,WAAW,CAAC,mBAAmB,CAAC,CAAC;IAC/C,CAAC;IACD,gBAAgB;QACd,OAAO,IAAI,CAAC,WAAW,CAAC,kBAAkB,CAAC,CAAC;IAC9C,CAAC;IACD,kBAAkB,CAAC,QAAmC;QACpD,OAAO,IAAI,CAAC,WAAW,CAAC,oBAAoB,CAAC,CAAC;IAChD,CAAC;CACF"}
@@ -1,7 +1,5 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  var core = require('@capacitor/core');
6
4
 
7
5
  const native = core.registerPlugin('DoorstepAIDropoffSDK', {
@@ -70,6 +68,21 @@ class DoorstepAIDropoffSDKWeb extends core.WebPlugin {
70
68
  stopDelivery(_options) {
71
69
  return this.unsupported('stopDelivery');
72
70
  }
71
+ startRouteGeofencing(_options) {
72
+ return this.unsupported('startRouteGeofencing');
73
+ }
74
+ updateRouteStops(_options) {
75
+ return this.unsupported('updateRouteStops');
76
+ }
77
+ stopRouteGeofencing() {
78
+ return this.unsupported('stopRouteGeofencing');
79
+ }
80
+ resumeRouteGeofencingIfNeeded() {
81
+ return this.unsupported('resumeRouteGeofencingIfNeeded');
82
+ }
83
+ getMonitoredStops() {
84
+ return this.unsupported('getMonitoredStops');
85
+ }
73
86
  checkPermissions() {
74
87
  return this.unsupported('checkPermissions');
75
88
  }
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.cjs.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { Capacitor, registerPlugin } from '@capacitor/core';\nconst native = registerPlugin('DoorstepAIDropoffSDK', {\n web: () => import('./web').then(m => new m.DoorstepAIDropoffSDKWeb()),\n});\n// Mirrors the Flutter SDK: `init` is a no-op on iOS (the foreground-service\n// setup it performs is Android-only). Skipping the bridge call on iOS saves\n// a round-trip and matches the Dart implementation exactly.\n//\n// `registerPlugin` returns a Proxy that dispatches calls dynamically; spreading\n// it would drop every method, so we wrap with our own Proxy that overrides\n// only `init` and delegates the rest.\nconst DoorstepAIDropoffSDK = new Proxy(native, {\n get(target, prop, receiver) {\n if (prop === 'init') {\n return (options) => {\n if (Capacitor.getPlatform() !== 'android') {\n return Promise.resolve();\n }\n return target.init(options);\n };\n }\n return Reflect.get(target, prop, receiver);\n },\n});\nexport * from './definitions';\nexport { DoorstepAIDropoffSDK };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\n/**\n * Web stub. The Dropoff SDK is native-only — every call rejects with\n * `UNIMPLEMENTED` so failures surface immediately on the web platform\n * instead of silently no-op'ing.\n */\nexport class DoorstepAIDropoffSDKWeb extends WebPlugin {\n unsupported(method) {\n return Promise.reject(this.unavailable(`DoorstepAIDropoffSDK.${method} is not available on the web platform.`));\n }\n init(_options) {\n return this.unsupported('init');\n }\n setApiKey(_options) {\n return this.unsupported('setApiKey');\n }\n startDeliveryByPlaceID(_options) {\n return this.unsupported('startDeliveryByPlaceID');\n }\n startDeliveryByPlusCode(_options) {\n return this.unsupported('startDeliveryByPlusCode');\n }\n startDeliveryByAddress(_options) {\n return this.unsupported('startDeliveryByAddress');\n }\n startDeliveryByAddressType(_options) {\n return this.unsupported('startDeliveryByAddressType');\n }\n startDeliveryByAddressString(_options) {\n return this.unsupported('startDeliveryByAddressString');\n }\n startDeliveryByLatLng(_options) {\n return this.unsupported('startDeliveryByLatLng');\n }\n markDropoff(_options) {\n return this.unsupported('markDropoff');\n }\n newEvent(_options) {\n return this.unsupported('newEvent');\n }\n stopDelivery(_options) {\n return this.unsupported('stopDelivery');\n }\n checkPermissions() {\n return this.unsupported('checkPermissions');\n }\n requestPermissions(_options) {\n return this.unsupported('requestPermissions');\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","Capacitor","WebPlugin"],"mappings":";;;;;;AACA,MAAM,MAAM,GAAGA,mBAAc,CAAC,sBAAsB,EAAE;AACtD,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,uBAAuB,EAAE,CAAC;AACzE,CAAC,CAAC,CAAC;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACK,MAAC,oBAAoB,GAAG,IAAI,KAAK,CAAC,MAAM,EAAE;AAC/C,IAAI,GAAG,CAAC,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE;AAChC,QAAQ,IAAI,IAAI,KAAK,MAAM,EAAE;AAC7B,YAAY,OAAO,CAAC,OAAO,KAAK;AAChC,gBAAgB,IAAIC,cAAS,CAAC,WAAW,EAAE,KAAK,SAAS,EAAE;AAC3D,oBAAoB,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;AAC7C,iBAAiB;AACjB,gBAAgB,OAAO,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;AAC5C,aAAa,CAAC;AACd,SAAS;AACT,QAAQ,OAAO,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC;AACnD,KAAK;AACL,CAAC;;ACtBD;AACA;AACA;AACA;AACA;AACO,MAAM,uBAAuB,SAASC,cAAS,CAAC;AACvD,IAAI,WAAW,CAA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,OAAO,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;AAC5C,KAAK;AACL,IAAI,YAAY,CAAC,QAAQ,EAAE;AAC3B,QAAQ,OAAO,IAAI,CAAC,WAAW,CAAC,cAAc,CAAC,CAAC;AAChD,KAAK;AACL,IAAI,gBAAgB,GAAG;AACvB,QAAQ,OAAO,IAAI,CAAC,WAAW,CAAC,kBAAkB,CAAC,CAAC;AACpD,KAAK;AACL,IAAI,kBAAkB,CAAC,QAAQ,EAAE;AACjC,QAAQ,OAAO,IAAI,CAAC,WAAW,CAAC,oBAAoB,CAAC,CAAC;AACtD,KAAK;AACL;;;;;;;;;"}
1
+ {"version":3,"file":"plugin.cjs.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { Capacitor, registerPlugin } from '@capacitor/core';\nconst native = registerPlugin('DoorstepAIDropoffSDK', {\n web: () => import('./web').then(m => new m.DoorstepAIDropoffSDKWeb()),\n});\n// Mirrors the Flutter SDK: `init` is a no-op on iOS (the foreground-service\n// setup it performs is Android-only). Skipping the bridge call on iOS saves\n// a round-trip and matches the Dart implementation exactly.\n//\n// `registerPlugin` returns a Proxy that dispatches calls dynamically; spreading\n// it would drop every method, so we wrap with our own Proxy that overrides\n// only `init` and delegates the rest.\nconst DoorstepAIDropoffSDK = new Proxy(native, {\n get(target, prop, receiver) {\n if (prop === 'init') {\n return (options) => {\n if (Capacitor.getPlatform() !== 'android') {\n return Promise.resolve();\n }\n return target.init(options);\n };\n }\n return Reflect.get(target, prop, receiver);\n },\n});\nexport * from './definitions';\nexport { DoorstepAIDropoffSDK };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\n/**\n * Web stub. The Dropoff SDK is native-only — every call rejects with\n * `UNIMPLEMENTED` so failures surface immediately on the web platform\n * instead of silently no-op'ing.\n */\nexport class DoorstepAIDropoffSDKWeb extends WebPlugin {\n unsupported(method) {\n return Promise.reject(this.unavailable(`DoorstepAIDropoffSDK.${method} is not available on the web platform.`));\n }\n init(_options) {\n return this.unsupported('init');\n }\n setApiKey(_options) {\n return this.unsupported('setApiKey');\n }\n startDeliveryByPlaceID(_options) {\n return this.unsupported('startDeliveryByPlaceID');\n }\n startDeliveryByPlusCode(_options) {\n return this.unsupported('startDeliveryByPlusCode');\n }\n startDeliveryByAddress(_options) {\n return this.unsupported('startDeliveryByAddress');\n }\n startDeliveryByAddressType(_options) {\n return this.unsupported('startDeliveryByAddressType');\n }\n startDeliveryByAddressString(_options) {\n return this.unsupported('startDeliveryByAddressString');\n }\n startDeliveryByLatLng(_options) {\n return this.unsupported('startDeliveryByLatLng');\n }\n markDropoff(_options) {\n return this.unsupported('markDropoff');\n }\n newEvent(_options) {\n return this.unsupported('newEvent');\n }\n stopDelivery(_options) {\n return this.unsupported('stopDelivery');\n }\n startRouteGeofencing(_options) {\n return this.unsupported('startRouteGeofencing');\n }\n updateRouteStops(_options) {\n return this.unsupported('updateRouteStops');\n }\n stopRouteGeofencing() {\n return this.unsupported('stopRouteGeofencing');\n }\n resumeRouteGeofencingIfNeeded() {\n return this.unsupported('resumeRouteGeofencingIfNeeded');\n }\n getMonitoredStops() {\n return this.unsupported('getMonitoredStops');\n }\n checkPermissions() {\n return this.unsupported('checkPermissions');\n }\n requestPermissions(_options) {\n return this.unsupported('requestPermissions');\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","Capacitor","WebPlugin"],"mappings":";;;;AACA,MAAM,MAAM,GAAGA,mBAAc,CAAC,sBAAsB,EAAE;AACtD,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,uBAAuB,EAAE,CAAC;AACzE,CAAC,CAAC;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACK,MAAC,oBAAoB,GAAG,IAAI,KAAK,CAAC,MAAM,EAAE;AAC/C,IAAI,GAAG,CAAC,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE;AAChC,QAAQ,IAAI,IAAI,KAAK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OAAO,IAAI,CAAC,WAAW,CAAC,oBAAoB,CAAC;AACrD,IAAI;AACJ;;;;;;;;;"}
package/dist/plugin.js CHANGED
@@ -67,6 +67,21 @@ var capacitorDoorstepAIDropoffSDK = (function (exports, core) {
67
67
  stopDelivery(_options) {
68
68
  return this.unsupported('stopDelivery');
69
69
  }
70
+ startRouteGeofencing(_options) {
71
+ return this.unsupported('startRouteGeofencing');
72
+ }
73
+ updateRouteStops(_options) {
74
+ return this.unsupported('updateRouteStops');
75
+ }
76
+ stopRouteGeofencing() {
77
+ return this.unsupported('stopRouteGeofencing');
78
+ }
79
+ resumeRouteGeofencingIfNeeded() {
80
+ return this.unsupported('resumeRouteGeofencingIfNeeded');
81
+ }
82
+ getMonitoredStops() {
83
+ return this.unsupported('getMonitoredStops');
84
+ }
70
85
  checkPermissions() {
71
86
  return this.unsupported('checkPermissions');
72
87
  }
@@ -82,8 +97,6 @@ var capacitorDoorstepAIDropoffSDK = (function (exports, core) {
82
97
 
83
98
  exports.DoorstepAIDropoffSDK = DoorstepAIDropoffSDK;
84
99
 
85
- Object.defineProperty(exports, '__esModule', { value: true });
86
-
87
100
  return exports;
88
101
 
89
102
  })({}, capacitorExports);
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { Capacitor, registerPlugin } from '@capacitor/core';\nconst native = registerPlugin('DoorstepAIDropoffSDK', {\n web: () => import('./web').then(m => new m.DoorstepAIDropoffSDKWeb()),\n});\n// Mirrors the Flutter SDK: `init` is a no-op on iOS (the foreground-service\n// setup it performs is Android-only). Skipping the bridge call on iOS saves\n// a round-trip and matches the Dart implementation exactly.\n//\n// `registerPlugin` returns a Proxy that dispatches calls dynamically; spreading\n// it would drop every method, so we wrap with our own Proxy that overrides\n// only `init` and delegates the rest.\nconst DoorstepAIDropoffSDK = new Proxy(native, {\n get(target, prop, receiver) {\n if (prop === 'init') {\n return (options) => {\n if (Capacitor.getPlatform() !== 'android') {\n return Promise.resolve();\n }\n return target.init(options);\n };\n }\n return Reflect.get(target, prop, receiver);\n },\n});\nexport * from './definitions';\nexport { DoorstepAIDropoffSDK };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\n/**\n * Web stub. The Dropoff SDK is native-only — every call rejects with\n * `UNIMPLEMENTED` so failures surface immediately on the web platform\n * instead of silently no-op'ing.\n */\nexport class DoorstepAIDropoffSDKWeb extends WebPlugin {\n unsupported(method) {\n return Promise.reject(this.unavailable(`DoorstepAIDropoffSDK.${method} is not available on the web platform.`));\n }\n init(_options) {\n return this.unsupported('init');\n }\n setApiKey(_options) {\n return this.unsupported('setApiKey');\n }\n startDeliveryByPlaceID(_options) {\n return this.unsupported('startDeliveryByPlaceID');\n }\n startDeliveryByPlusCode(_options) {\n return this.unsupported('startDeliveryByPlusCode');\n }\n startDeliveryByAddress(_options) {\n return this.unsupported('startDeliveryByAddress');\n }\n startDeliveryByAddressType(_options) {\n return this.unsupported('startDeliveryByAddressType');\n }\n startDeliveryByAddressString(_options) {\n return this.unsupported('startDeliveryByAddressString');\n }\n startDeliveryByLatLng(_options) {\n return this.unsupported('startDeliveryByLatLng');\n }\n markDropoff(_options) {\n return this.unsupported('markDropoff');\n }\n newEvent(_options) {\n return this.unsupported('newEvent');\n }\n stopDelivery(_options) {\n return this.unsupported('stopDelivery');\n }\n checkPermissions() {\n return this.unsupported('checkPermissions');\n }\n requestPermissions(_options) {\n return this.unsupported('requestPermissions');\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","Capacitor","WebPlugin"],"mappings":";;;IACA,MAAM,MAAM,GAAGA,mBAAc,CAAC,sBAAsB,EAAE;IACtD,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,uBAAuB,EAAE,CAAC;IACzE,CAAC,CAAC,CAAC;IACH;IACA;IACA;IACA;IACA;IACA;IACA;AACK,UAAC,oBAAoB,GAAG,IAAI,KAAK,C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,QAAQ,OAAO,IAAI,CAAC,WAAW,CAAC,wBAAwB,CAAC,CAAC;IAC1D,KAAK;IACL,IAAI,0BAA0B,CAAC,QAAQ,EAAE;IACzC,QAAQ,OAAO,IAAI,CAAC,WAAW,CAAC,4BAA4B,CAAC,CAAC;IAC9D,KAAK;IACL,IAAI,4BAA4B,CAAC,QAAQ,EAAE;IAC3C,QAAQ,OAAO,IAAI,CAAC,WAAW,CAAC,8BAA8B,CAAC,CAAC;IAChE,KAAK;IACL,IAAI,qBAAqB,CAAC,QAAQ,EAAE;IACpC,QAAQ,OAAO,IAAI,CAAC,WAAW,CAAC,uBAAuB,CAAC,CAAC;IACzD,KAAK;IACL,IAAI,WAAW,CAAC,QAAQ,EAAE;IAC1B,QAAQ,OAAO,IAAI,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC;IAC/C,KAAK;IACL,IAAI,QAAQ,CAAC,QAAQ,EAAE;IACvB,QAAQ,OAAO,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IAC5C,KAAK;IACL,IAAI,YAAY,CAAC,QAAQ,EAAE;IAC3B,QAAQ,OAAO,IAAI,CAAC,WAAW,CAAC,cAAc,CAAC,CAAC;IAChD,KAAK;IACL,IAAI,gBAAgB,GAAG;IACvB,QAAQ,OAAO,IAAI,CAAC,WAAW,CAAC,kBAAkB,CAAC,CAAC;IACpD,KAAK;IACL,IAAI,kBAAkB,CAAC,QAAQ,EAAE;IACjC,QAAQ,OAAO,IAAI,CAAC,WAAW,CAAC,oBAAoB,CAAC,CAAC;IACtD,KAAK;IACL;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"plugin.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { Capacitor, registerPlugin } from '@capacitor/core';\nconst native = registerPlugin('DoorstepAIDropoffSDK', {\n web: () => import('./web').then(m => new m.DoorstepAIDropoffSDKWeb()),\n});\n// Mirrors the Flutter SDK: `init` is a no-op on iOS (the foreground-service\n// setup it performs is Android-only). Skipping the bridge call on iOS saves\n// a round-trip and matches the Dart implementation exactly.\n//\n// `registerPlugin` returns a Proxy that dispatches calls dynamically; spreading\n// it would drop every method, so we wrap with our own Proxy that overrides\n// only `init` and delegates the rest.\nconst DoorstepAIDropoffSDK = new Proxy(native, {\n get(target, prop, receiver) {\n if (prop === 'init') {\n return (options) => {\n if (Capacitor.getPlatform() !== 'android') {\n return Promise.resolve();\n }\n return target.init(options);\n };\n }\n return Reflect.get(target, prop, receiver);\n },\n});\nexport * from './definitions';\nexport { DoorstepAIDropoffSDK };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\n/**\n * Web stub. The Dropoff SDK is native-only — every call rejects with\n * `UNIMPLEMENTED` so failures surface immediately on the web platform\n * instead of silently no-op'ing.\n */\nexport class DoorstepAIDropoffSDKWeb extends WebPlugin {\n unsupported(method) {\n return Promise.reject(this.unavailable(`DoorstepAIDropoffSDK.${method} is not available on the web platform.`));\n }\n init(_options) {\n return this.unsupported('init');\n }\n setApiKey(_options) {\n return this.unsupported('setApiKey');\n }\n startDeliveryByPlaceID(_options) {\n return this.unsupported('startDeliveryByPlaceID');\n }\n startDeliveryByPlusCode(_options) {\n return this.unsupported('startDeliveryByPlusCode');\n }\n startDeliveryByAddress(_options) {\n return this.unsupported('startDeliveryByAddress');\n }\n startDeliveryByAddressType(_options) {\n return this.unsupported('startDeliveryByAddressType');\n }\n startDeliveryByAddressString(_options) {\n return this.unsupported('startDeliveryByAddressString');\n }\n startDeliveryByLatLng(_options) {\n return this.unsupported('startDeliveryByLatLng');\n }\n markDropoff(_options) {\n return this.unsupported('markDropoff');\n }\n newEvent(_options) {\n return this.unsupported('newEvent');\n }\n stopDelivery(_options) {\n return this.unsupported('stopDelivery');\n }\n startRouteGeofencing(_options) {\n return this.unsupported('startRouteGeofencing');\n }\n updateRouteStops(_options) {\n return this.unsupported('updateRouteStops');\n }\n stopRouteGeofencing() {\n return this.unsupported('stopRouteGeofencing');\n }\n resumeRouteGeofencingIfNeeded() {\n return this.unsupported('resumeRouteGeofencingIfNeeded');\n }\n getMonitoredStops() {\n return this.unsupported('getMonitoredStops');\n }\n checkPermissions() {\n return this.unsupported('checkPermissions');\n }\n requestPermissions(_options) {\n return this.unsupported('requestPermissions');\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","Capacitor","WebPlugin"],"mappings":";;;IACA,MAAM,MAAM,GAAGA,mBAAc,CAAC,sBAAsB,EAAE;IACtD,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,uBAAuB,EAAE,CAAC;IACzE,CAAC,CAAC;IACF;IACA;IACA;IACA;IACA;IACA;IACA;AACK,UAAC,oBAAoB,GAAG,IAAI,KAAK,CAAC,MAAM,EAAE;IAC/C,IAAI,GAAG,CAAC,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE;IAChC,QAAQ,IAAI,IAAI,KAAK,MAAM,EAAE;IAC7B,YAAY,OAAO,CAAC,OAAO,KAAK;IAChC,gBAAgB,IAAIC,cAAS,CAAC,WAAW,EAAE,KAAK,SAAS,EAAE;IAC3D,oBAAoB,OAAO,OAAO,CAAC,OAAO,EAAE;IAC5C,gBAAgB;IAChB,gBAAgB,OAAO,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC;IAC3C,YAAY,CAAC;IACb,QAAQ;IACR,QAAQ,OAAO,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,EAAE,QAAQ,CAAC;IAClD,IAAI,CAAC;IACL,CAAC;;ICtBD;IACA;IACA;IACA;IACA;IACO,MAAM,uBAAuB,SAASC,cAAS,CAAC;IACvD,IAAI,WAAW,CAAC,MAAM,EAAE;IACxB,QAAQ,OAAO,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,qBAAqB,EAAE,MAAM,CAAC,sCAAsC,CAAC,CAAC,CAAC;IACvH,IAAI;IACJ,IAAI,IAAI,CAAC,QAAQ,EAAE;I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