@doorstepai/dropoff-sdk 2.0.7 → 2.0.9
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/android/build.gradle +1 -1
- package/android/src/main/java/com/doorstepai/dropoffsdk/DoorstepAIModule.kt +168 -7
- package/ios/DoorstepAI.mm +25 -1
- package/ios/DoorstepAI.swift +147 -3
- package/ios/DoorstepDropoffSDK.xcframework/ios-arm64/DoorstepDropoffSDK.framework/DoorstepDropoffSDK +0 -0
- package/ios/DoorstepDropoffSDK.xcframework/ios-arm64/DoorstepDropoffSDK.framework/Info.plist +0 -0
- package/ios/DoorstepDropoffSDK.xcframework/ios-arm64/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/arm64-apple-ios.abi.json +5436 -1479
- package/ios/DoorstepDropoffSDK.xcframework/ios-arm64/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +93 -9
- package/ios/DoorstepDropoffSDK.xcframework/ios-arm64/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/ios/DoorstepDropoffSDK.xcframework/ios-arm64/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/arm64-apple-ios.swiftinterface +93 -9
- package/ios/DoorstepDropoffSDK.xcframework/ios-arm64/DoorstepDropoffSDK.framework/_CodeSignature/CodeResources +11 -11
- package/ios/DoorstepDropoffSDK.xcframework/ios-arm64/dSYMs/DoorstepDropoffSDK.framework.dSYM/Contents/Resources/DWARF/DoorstepDropoffSDK +0 -0
- package/ios/DoorstepDropoffSDK.xcframework/ios-arm64/dSYMs/DoorstepDropoffSDK.framework.dSYM/Contents/Resources/Relocations/aarch64/DoorstepDropoffSDK.yml +2560 -2106
- package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/DoorstepDropoffSDK +0 -0
- package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/Info.plist +0 -0
- package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/arm64-apple-ios-simulator.abi.json +5436 -1479
- package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +93 -9
- package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface +93 -9
- package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +5436 -1479
- package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +93 -9
- package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +93 -9
- package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/_CodeSignature/CodeResources +21 -21
- package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/DoorstepDropoffSDK.framework.dSYM/Contents/Resources/DWARF/DoorstepDropoffSDK +0 -0
- package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/DoorstepDropoffSDK.framework.dSYM/Contents/Resources/Relocations/aarch64/DoorstepDropoffSDK.yml +2560 -2106
- package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/DoorstepDropoffSDK.framework.dSYM/Contents/Resources/Relocations/x86_64/DoorstepDropoffSDK.yml +2551 -2096
- package/lib/module/DoorstepAI.js +107 -12
- package/lib/module/DoorstepAI.js.map +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/src/DoorstepAI.d.ts +75 -2
- package/lib/typescript/src/DoorstepAI.d.ts.map +1 -1
- package/lib/typescript/src/RootDoorstepAI.d.ts +1 -1
- package/lib/typescript/src/RootDoorstepAI.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +1 -1
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/DoorstepAI.tsx +199 -18
- package/src/index.tsx +4 -0
package/lib/module/DoorstepAI.js
CHANGED
|
@@ -1,10 +1,26 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import { NativeModules, Platform } from 'react-native';
|
|
3
|
+
import { NativeModules, NativeEventEmitter, Platform } from 'react-native';
|
|
4
4
|
const {
|
|
5
5
|
DoorstepAI
|
|
6
6
|
} = NativeModules;
|
|
7
7
|
|
|
8
|
+
// Bridges the native geofence-session event stream (iOS RCTEventEmitter /
|
|
9
|
+
// Android DeviceEventManagerModule) to JS. See `addGeofenceSessionListener`.
|
|
10
|
+
const GEOFENCE_SESSION_EVENT = 'DoorstepGeofenceSessionEvent';
|
|
11
|
+
const doorstepEventEmitter = DoorstepAI ? new NativeEventEmitter(DoorstepAI) : undefined;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* A single stop the SDK should geofence in `startRouteGeofencing`. On geofence
|
|
15
|
+
* ENTER the SDK auto-starts a delivery session for `deliveryId`; on EXIT it stops
|
|
16
|
+
* it (only if `markDropoff` was called for that id — otherwise the per-session
|
|
17
|
+
* timeout backstop applies).
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
/** Route-wide options for `startRouteGeofencing`. */
|
|
21
|
+
|
|
22
|
+
/** Emitted whenever route geofencing auto-starts or auto-stops a session. */
|
|
23
|
+
|
|
8
24
|
/**
|
|
9
25
|
* Per-delivery options shared across both platforms. Fields not supported on a
|
|
10
26
|
* given platform are silently ignored.
|
|
@@ -69,7 +85,9 @@ class DoorstepAIModule {
|
|
|
69
85
|
try {
|
|
70
86
|
const timeout = timeoutSeconds ?? options?.timeoutSeconds ?? DEFAULT_TIMEOUT_SECONDS;
|
|
71
87
|
const autoStop = options?.autoStopAfterDropoffSeconds ?? null;
|
|
72
|
-
const
|
|
88
|
+
const customerId = options?.customerId ?? null;
|
|
89
|
+
const driverId = options?.driverId ?? null;
|
|
90
|
+
const result = Platform.OS === 'android' ? await DoorstepAI.startDeliveryByPlaceID(placeID, deliveryId, timeout, autoStop, options?.manualForeground ?? false, customerId, driverId) : await DoorstepAI.startDeliveryByPlaceID(placeID, deliveryId, timeout, autoStop, customerId, driverId);
|
|
73
91
|
console.log('DOORSTEPAI - Delivery started successfully by Place ID:', placeID, deliveryId);
|
|
74
92
|
return result;
|
|
75
93
|
} catch (error) {
|
|
@@ -82,9 +100,12 @@ class DoorstepAIModule {
|
|
|
82
100
|
static async startDeliveryByPlusCode(plusCode, deliveryId, timeoutSeconds, options) {
|
|
83
101
|
try {
|
|
84
102
|
const timeout = timeoutSeconds ?? options?.timeoutSeconds ?? DEFAULT_TIMEOUT_SECONDS;
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
103
|
+
const customerId = options?.customerId ?? null;
|
|
104
|
+
const driverId = options?.driverId ?? null;
|
|
105
|
+
// Android's deprecated startDeliveryByPlusCode does not accept
|
|
106
|
+
// autoStopAfterDropoffSeconds, so we forward only the supported
|
|
107
|
+
// parameters there.
|
|
108
|
+
const result = Platform.OS === 'ios' ? await DoorstepAI.startDeliveryByPlusCode(plusCode, deliveryId, timeout, options?.autoStopAfterDropoffSeconds ?? null, customerId, driverId) : await DoorstepAI.startDeliveryByPlusCode(plusCode, deliveryId, timeout, customerId, driverId);
|
|
88
109
|
console.log('DOORSTEPAI - Delivery started successfully by Plus Code:', plusCode, deliveryId);
|
|
89
110
|
return result;
|
|
90
111
|
} catch (error) {
|
|
@@ -96,7 +117,9 @@ class DoorstepAIModule {
|
|
|
96
117
|
try {
|
|
97
118
|
const timeout = timeoutSeconds ?? options?.timeoutSeconds ?? DEFAULT_TIMEOUT_SECONDS;
|
|
98
119
|
const autoStop = options?.autoStopAfterDropoffSeconds ?? null;
|
|
99
|
-
const
|
|
120
|
+
const customerId = options?.customerId ?? null;
|
|
121
|
+
const driverId = options?.driverId ?? null;
|
|
122
|
+
const result = Platform.OS === 'android' ? await DoorstepAI.startDeliveryByAddress(address, deliveryId, coordinates ?? null, timeout, autoStop, options?.manualForeground ?? false, customerId, driverId) : await DoorstepAI.startDeliveryByAddress(address, deliveryId, coordinates ?? null, timeout, autoStop, customerId, driverId);
|
|
100
123
|
console.log('DOORSTEPAI - Delivery started successfully by Address:', address, deliveryId);
|
|
101
124
|
return result;
|
|
102
125
|
} catch (error) {
|
|
@@ -108,7 +131,9 @@ class DoorstepAIModule {
|
|
|
108
131
|
try {
|
|
109
132
|
const timeout = timeoutSeconds ?? options?.timeoutSeconds ?? DEFAULT_TIMEOUT_SECONDS;
|
|
110
133
|
const autoStop = options?.autoStopAfterDropoffSeconds ?? null;
|
|
111
|
-
const
|
|
134
|
+
const customerId = options?.customerId ?? null;
|
|
135
|
+
const driverId = options?.driverId ?? null;
|
|
136
|
+
const result = Platform.OS === 'android' ? await DoorstepAI.startDeliveryByAddressString(address, deliveryId, coordinates ?? null, timeout, autoStop, options?.manualForeground ?? false, customerId, driverId) : await DoorstepAI.startDeliveryByAddressString(address, deliveryId, coordinates ?? null, timeout, autoStop, customerId, driverId);
|
|
112
137
|
console.log('DOORSTEPAI - Delivery started successfully by Address String:', address, deliveryId);
|
|
113
138
|
return result;
|
|
114
139
|
} catch (error) {
|
|
@@ -121,9 +146,12 @@ class DoorstepAIModule {
|
|
|
121
146
|
static async startDeliveryByLatLng(latitude, longitude, subUnit, deliveryId, timeoutSeconds, options) {
|
|
122
147
|
try {
|
|
123
148
|
const timeout = timeoutSeconds ?? options?.timeoutSeconds ?? DEFAULT_TIMEOUT_SECONDS;
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
149
|
+
const customerId = options?.customerId ?? null;
|
|
150
|
+
const driverId = options?.driverId ?? null;
|
|
151
|
+
// Android's deprecated startDeliveryByLatLng does not accept
|
|
152
|
+
// autoStopAfterDropoffSeconds, so we forward only the supported
|
|
153
|
+
// parameters there.
|
|
154
|
+
const result = Platform.OS === 'ios' ? await DoorstepAI.startDeliveryByLatLng(latitude, longitude, subUnit, deliveryId, timeout, options?.autoStopAfterDropoffSeconds ?? null, customerId, driverId) : await DoorstepAI.startDeliveryByLatLng(latitude, longitude, subUnit, deliveryId, timeout, customerId, driverId);
|
|
127
155
|
console.log('DOORSTEPAI - Delivery started successfully by LatLng:', latitude, longitude, subUnit, deliveryId);
|
|
128
156
|
return result;
|
|
129
157
|
} catch (error) {
|
|
@@ -149,9 +177,14 @@ class DoorstepAIModule {
|
|
|
149
177
|
throw error;
|
|
150
178
|
}
|
|
151
179
|
}
|
|
152
|
-
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* Record a custom event on a delivery. `timestamp` is optional epoch SECONDS —
|
|
183
|
+
* when provided the event is recorded at that time instead of "now".
|
|
184
|
+
*/
|
|
185
|
+
static async newEvent(eventName, deliveryId, timestamp) {
|
|
153
186
|
try {
|
|
154
|
-
const result = await DoorstepAI.newEvent(eventName, deliveryId);
|
|
187
|
+
const result = await DoorstepAI.newEvent(eventName, deliveryId, timestamp ?? null);
|
|
155
188
|
console.log('DOORSTEPAI - Event sent successfully:', result);
|
|
156
189
|
return result;
|
|
157
190
|
} catch (error) {
|
|
@@ -160,6 +193,68 @@ class DoorstepAIModule {
|
|
|
160
193
|
}
|
|
161
194
|
}
|
|
162
195
|
|
|
196
|
+
// ---- Route geofencing (in-SDK) ----
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* Begin in-SDK route geofencing. The SDK fences each stop and auto-starts a
|
|
200
|
+
* delivery session on geofence ENTER / stops it on EXIT (EXIT is gated on
|
|
201
|
+
* `markDropoff`). Requires location permission; background operation needs
|
|
202
|
+
* "Allow all the time" (Android) / Always authorization (iOS). Subscribe to
|
|
203
|
+
* start/stop events via `addGeofenceSessionListener`.
|
|
204
|
+
*/
|
|
205
|
+
static async startRouteGeofencing(stops, options) {
|
|
206
|
+
try {
|
|
207
|
+
await DoorstepAI.startRouteGeofencing(stops, options ?? null);
|
|
208
|
+
console.log('DOORSTEPAI - Route geofencing started for', stops.length, 'stop(s)');
|
|
209
|
+
} catch (error) {
|
|
210
|
+
console.error('DOORSTEPAI - Failed to start route geofencing:', error);
|
|
211
|
+
throw error;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
/** Stop route geofencing and clear all monitored stops. */
|
|
216
|
+
static async stopRouteGeofencing() {
|
|
217
|
+
try {
|
|
218
|
+
await DoorstepAI.stopRouteGeofencing();
|
|
219
|
+
} catch (error) {
|
|
220
|
+
console.error('DOORSTEPAI - Failed to stop route geofencing:', error);
|
|
221
|
+
throw error;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* Re-arm route geofencing after a process relaunch if a route was active.
|
|
227
|
+
* Safe no-op when no route is persisted.
|
|
228
|
+
*/
|
|
229
|
+
static async resumeRouteGeofencingIfNeeded() {
|
|
230
|
+
try {
|
|
231
|
+
await DoorstepAI.resumeRouteGeofencingIfNeeded();
|
|
232
|
+
} catch (error) {
|
|
233
|
+
console.error('DOORSTEPAI - Failed to resume route geofencing:', error);
|
|
234
|
+
throw error;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
/** The stops currently registered for route geofencing (empty if none). */
|
|
239
|
+
static async getMonitoredStops() {
|
|
240
|
+
try {
|
|
241
|
+
const stops = await DoorstepAI.getMonitoredStops();
|
|
242
|
+
return stops ?? [];
|
|
243
|
+
} catch (error) {
|
|
244
|
+
console.error('DOORSTEPAI - Failed to get monitored stops:', error);
|
|
245
|
+
return [];
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* Subscribe to geofence-session events (auto start/stop of a delivery on
|
|
251
|
+
* geofence transitions). Returns a subscription — call `.remove()` to
|
|
252
|
+
* unsubscribe. Returns `undefined` if the native module is unavailable.
|
|
253
|
+
*/
|
|
254
|
+
static addGeofenceSessionListener(listener) {
|
|
255
|
+
return doorstepEventEmitter?.addListener(GEOFENCE_SESSION_EVENT, listener);
|
|
256
|
+
}
|
|
257
|
+
|
|
163
258
|
// ---- Dev-mode helpers (Android exposes a richer surface than iOS) ----
|
|
164
259
|
|
|
165
260
|
static async enableDevMode(apiKey) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["NativeModules","Platform","DoorstepAI","SDK_LOG_LEVEL_RAW","debug","info","warning","error","critical","DEFAULT_TIMEOUT_SECONDS","DoorstepAIModule","isInitialized","init","notificationTitle","notificationText","OS","console","log","setApiKey","apiKey","requestAllPermissions","requestAlwaysLocation","configureRemoteLogging","options","minLevelRaw","minLevel","enabled","flushIntervalSeconds","batchSize","maxQueueSize","startDeliveryByPlaceID","placeID","deliveryId","timeoutSeconds","timeout","autoStop","autoStopAfterDropoffSeconds","result","manualForeground","startDeliveryByPlusCode","plusCode","startDeliveryByAddress","address","coordinates","startDeliveryByAddressString","startDeliveryByLatLng","latitude","longitude","subUnit","markDropoff","dropoffType","stopDelivery","newEvent","eventName","enableDevMode","Boolean","validateDevModeAccess","disableDevMode"],"sourceRoot":"../../src","sources":["DoorstepAI.tsx"],"mappings":";;AAAA,SAASA,aAAa,EAAEC,QAAQ,QAAQ,cAAc;
|
|
1
|
+
{"version":3,"names":["NativeModules","NativeEventEmitter","Platform","DoorstepAI","GEOFENCE_SESSION_EVENT","doorstepEventEmitter","undefined","SDK_LOG_LEVEL_RAW","debug","info","warning","error","critical","DEFAULT_TIMEOUT_SECONDS","DoorstepAIModule","isInitialized","init","notificationTitle","notificationText","OS","console","log","setApiKey","apiKey","requestAllPermissions","requestAlwaysLocation","configureRemoteLogging","options","minLevelRaw","minLevel","enabled","flushIntervalSeconds","batchSize","maxQueueSize","startDeliveryByPlaceID","placeID","deliveryId","timeoutSeconds","timeout","autoStop","autoStopAfterDropoffSeconds","customerId","driverId","result","manualForeground","startDeliveryByPlusCode","plusCode","startDeliveryByAddress","address","coordinates","startDeliveryByAddressString","startDeliveryByLatLng","latitude","longitude","subUnit","markDropoff","dropoffType","stopDelivery","newEvent","eventName","timestamp","startRouteGeofencing","stops","length","stopRouteGeofencing","resumeRouteGeofencingIfNeeded","getMonitoredStops","addGeofenceSessionListener","listener","addListener","enableDevMode","Boolean","validateDevModeAccess","disableDevMode"],"sourceRoot":"../../src","sources":["DoorstepAI.tsx"],"mappings":";;AAAA,SAASA,aAAa,EAAEC,kBAAkB,EAAEC,QAAQ,QAAQ,cAAc;AAE1E,MAAM;EAAEC;AAAW,CAAC,GAAGH,aAAa;;AAEpC;AACA;AACA,MAAMI,sBAAsB,GAAG,8BAA8B;AAC7D,MAAMC,oBAAoB,GAAGF,UAAU,GACnC,IAAIF,kBAAkB,CAACE,UAAU,CAAC,GAClCG,SAAS;;AAgBb;AACA;AACA;AACA;AACA;AACA;;AAYA;;AAcA;;AAQA;AACA;AACA;AACA;;AAiCA;AACA;AACA;AACA;;AAGA,MAAMC,iBAA8C,GAAG;EACrDC,KAAK,EAAE,CAAC;EACRC,I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,CAAC,CAAC,CAAC;EAClD;;EAEA;EACA,aAAaE,qBAAqBA,CAAA,EAAqB;IACrD,IAAItE,QAAQ,CAACiB,EAAE,KAAK,SAAS,EAAE,OAAO,KAAK;IAC3C,OAAOoD,OAAO,CAAC,MAAMpE,UAAU,CAACqE,qBAAqB,CAAC,CAAC,CAAC;EAC1D;;EAEA;EACA,aAAaC,cAAcA,CAAA,EAAqB;IAC9C,IAAIvE,QAAQ,CAACiB,EAAE,KAAK,SAAS,EAAE,OAAO,KAAK;IAC3C,OAAOoD,OAAO,CAAC,MAAMpE,UAAU,CAACsE,cAAc,CAAC,CAAC,CAAC;EACnD;AACF;AAEA,SAAS3D,gBAAgB,IAAIX,UAAU","ignoreList":[]}
|
package/lib/module/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["RootDoorstepAI","DoorstepAI"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;AAAA,SAASA,cAAc,QAAQ,qBAAkB;AACjD,SAASC,UAAU,QAAQ,iBAAc;
|
|
1
|
+
{"version":3,"names":["RootDoorstepAI","DoorstepAI"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;AAAA,SAASA,cAAc,QAAQ,qBAAkB;AACjD,SAASC,UAAU,QAAQ,iBAAc;AAYzC,SAASA,UAAU,EAAED,cAAc","ignoreList":[]}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { EmitterSubscription } from 'react-native';
|
|
1
2
|
type AddressType = {
|
|
2
3
|
streetNumber: string;
|
|
3
4
|
route: string;
|
|
@@ -10,6 +11,41 @@ type LatLngObject = {
|
|
|
10
11
|
lat: number;
|
|
11
12
|
lng: number;
|
|
12
13
|
};
|
|
14
|
+
/**
|
|
15
|
+
* A single stop the SDK should geofence in `startRouteGeofencing`. On geofence
|
|
16
|
+
* ENTER the SDK auto-starts a delivery session for `deliveryId`; on EXIT it stops
|
|
17
|
+
* it (only if `markDropoff` was called for that id — otherwise the per-session
|
|
18
|
+
* timeout backstop applies).
|
|
19
|
+
*/
|
|
20
|
+
type DeliveryStop = {
|
|
21
|
+
deliveryId: string;
|
|
22
|
+
address: string;
|
|
23
|
+
latitude: number;
|
|
24
|
+
longitude: number;
|
|
25
|
+
/** Fence radius in meters. Falls back to `RouteGeofenceOptions.defaultRadiusMeters` (250 m). */
|
|
26
|
+
radiusMeters?: number;
|
|
27
|
+
customerId?: string;
|
|
28
|
+
driverId?: string;
|
|
29
|
+
};
|
|
30
|
+
/** Route-wide options for `startRouteGeofencing`. */
|
|
31
|
+
type RouteGeofenceOptions = {
|
|
32
|
+
/** Radius (m) for stops that don't set their own `radiusMeters`. Default 250. */
|
|
33
|
+
defaultRadiusMeters?: number;
|
|
34
|
+
/** Per-session safety timeout (s) forwarded to the auto-started delivery. */
|
|
35
|
+
timeoutSeconds?: number;
|
|
36
|
+
/** Auto-stop countdown (s) applied when `stopDelivery` is called for a stop. */
|
|
37
|
+
autoStopAfterDropoffSeconds?: number;
|
|
38
|
+
/** Android only. Host owns the foreground service; SDK won't promote its own. Ignored on iOS. */
|
|
39
|
+
manualForeground?: boolean;
|
|
40
|
+
};
|
|
41
|
+
type GeofenceSessionEventType = 'STARTED' | 'STOPPED';
|
|
42
|
+
/** Emitted whenever route geofencing auto-starts or auto-stops a session. */
|
|
43
|
+
type GeofenceSessionEvent = {
|
|
44
|
+
deliveryId: string;
|
|
45
|
+
type: GeofenceSessionEventType;
|
|
46
|
+
/** Short trigger tag, e.g. "geofence", "distance", "route_cleared". */
|
|
47
|
+
reason: string;
|
|
48
|
+
};
|
|
13
49
|
/**
|
|
14
50
|
* Per-delivery options shared across both platforms. Fields not supported on a
|
|
15
51
|
* given platform are silently ignored.
|
|
@@ -34,6 +70,16 @@ type StartDeliveryOptions = {
|
|
|
34
70
|
* Ignored on iOS.
|
|
35
71
|
*/
|
|
36
72
|
manualForeground?: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* Optional customer identifier associated with this delivery. Forwarded to
|
|
75
|
+
* the native SDK on both platforms.
|
|
76
|
+
*/
|
|
77
|
+
customerId?: string;
|
|
78
|
+
/**
|
|
79
|
+
* Optional driver identifier associated with this delivery. Forwarded to the
|
|
80
|
+
* native SDK on both platforms.
|
|
81
|
+
*/
|
|
82
|
+
driverId?: string;
|
|
37
83
|
};
|
|
38
84
|
/**
|
|
39
85
|
* Mirrors the iOS SDK's `SDKLogLevel` enum. Only used by
|
|
@@ -71,7 +117,34 @@ declare class DoorstepAIModule {
|
|
|
71
117
|
static startDeliveryByLatLng(latitude: number, longitude: number, subUnit: string, deliveryId: string, timeoutSeconds?: number, options?: StartDeliveryOptions): Promise<any>;
|
|
72
118
|
static markDropoff(deliveryId: string, dropoffType: 'pod' | 'non_pod'): Promise<void>;
|
|
73
119
|
static stopDelivery(deliveryId: string): Promise<void>;
|
|
74
|
-
|
|
120
|
+
/**
|
|
121
|
+
* Record a custom event on a delivery. `timestamp` is optional epoch SECONDS —
|
|
122
|
+
* when provided the event is recorded at that time instead of "now".
|
|
123
|
+
*/
|
|
124
|
+
static newEvent(eventName: string, deliveryId: string, timestamp?: number): Promise<any>;
|
|
125
|
+
/**
|
|
126
|
+
* Begin in-SDK route geofencing. The SDK fences each stop and auto-starts a
|
|
127
|
+
* delivery session on geofence ENTER / stops it on EXIT (EXIT is gated on
|
|
128
|
+
* `markDropoff`). Requires location permission; background operation needs
|
|
129
|
+
* "Allow all the time" (Android) / Always authorization (iOS). Subscribe to
|
|
130
|
+
* start/stop events via `addGeofenceSessionListener`.
|
|
131
|
+
*/
|
|
132
|
+
static startRouteGeofencing(stops: DeliveryStop[], options?: RouteGeofenceOptions): Promise<void>;
|
|
133
|
+
/** Stop route geofencing and clear all monitored stops. */
|
|
134
|
+
static stopRouteGeofencing(): Promise<void>;
|
|
135
|
+
/**
|
|
136
|
+
* Re-arm route geofencing after a process relaunch if a route was active.
|
|
137
|
+
* Safe no-op when no route is persisted.
|
|
138
|
+
*/
|
|
139
|
+
static resumeRouteGeofencingIfNeeded(): Promise<void>;
|
|
140
|
+
/** The stops currently registered for route geofencing (empty if none). */
|
|
141
|
+
static getMonitoredStops(): Promise<DeliveryStop[]>;
|
|
142
|
+
/**
|
|
143
|
+
* Subscribe to geofence-session events (auto start/stop of a delivery on
|
|
144
|
+
* geofence transitions). Returns a subscription — call `.remove()` to
|
|
145
|
+
* unsubscribe. Returns `undefined` if the native module is unavailable.
|
|
146
|
+
*/
|
|
147
|
+
static addGeofenceSessionListener(listener: (event: GeofenceSessionEvent) => void): EmitterSubscription | undefined;
|
|
75
148
|
static enableDevMode(apiKey: string): Promise<boolean>;
|
|
76
149
|
/** Android only. Returns false on iOS. */
|
|
77
150
|
static validateDevModeAccess(): Promise<boolean>;
|
|
@@ -79,5 +152,5 @@ declare class DoorstepAIModule {
|
|
|
79
152
|
static disableDevMode(): Promise<boolean>;
|
|
80
153
|
}
|
|
81
154
|
export { DoorstepAIModule as DoorstepAI };
|
|
82
|
-
export type { AddressType, LatLngObject, StartDeliveryOptions, SDKLogLevel };
|
|
155
|
+
export type { AddressType, LatLngObject, StartDeliveryOptions, SDKLogLevel, DeliveryStop, RouteGeofenceOptions, GeofenceSessionEvent, GeofenceSessionEventType, };
|
|
83
156
|
//# sourceMappingURL=DoorstepAI.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DoorstepAI.d.ts","sourceRoot":"","sources":["../../../src/DoorstepAI.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DoorstepAI.d.ts","sourceRoot":"","sources":["../../../src/DoorstepAI.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAUxD,KAAK,WAAW,GAAG;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,wBAAwB,EAAE,MAAM,CAAC;IACjC,UAAU,EAAE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stepAI.d.ts","sourceRoot":"","sources":["../../../src/RootDoorstepAI.tsx"],"names":[],"mappings":"AAcA,wBAAgB,cAAc,CAAC,KAAK,EAAE;IACpC,MAAM,EAAE,MAAM,CAAC;IACf,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B
|
|
1
|
+
{"version":3,"file":"RootDoorstepAI.d.ts","sourceRoot":"","sources":["../../../src/RootDoorstepAI.tsx"],"names":[],"mappings":"AAcA,wBAAgB,cAAc,CAAC,KAAK,EAAE;IACpC,MAAM,EAAE,MAAM,CAAC;IACf,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,+BAoDA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RootDoorstepAI } from './RootDoorstepAI';
|
|
2
2
|
import { DoorstepAI } from './DoorstepAI';
|
|
3
|
-
export type { AddressType, LatLngObject, StartDeliveryOptions, SDKLogLevel, } from './DoorstepAI';
|
|
3
|
+
export type { AddressType, LatLngObject, StartDeliveryOptions, SDKLogLevel, DeliveryStop, RouteGeofenceOptions, GeofenceSessionEvent, GeofenceSessionEventType, } from './DoorstepAI';
|
|
4
4
|
export { DoorstepAI, RootDoorstepAI };
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,YAAY,EACV,WAAW,EACX,YAAY,EACZ,oBAAoB,EACpB,WAAW,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,YAAY,EACV,WAAW,EACX,YAAY,EACZ,oBAAoB,EACpB,WAAW,EACX,YAAY,EACZ,oBAAoB,EACpB,oBAAoB,EACpB,wBAAwB,GACzB,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,CAAC"}
|