@latlng/sdk 0.1.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/LICENSE +21 -0
- package/README.md +343 -0
- package/dist/auth/token.d.ts +2 -0
- package/dist/auth/token.d.ts.map +1 -0
- package/dist/client.d.ts +385 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/errors/index.d.ts +66 -0
- package/dist/errors/index.d.ts.map +1 -0
- package/dist/http/routes.d.ts +41 -0
- package/dist/http/routes.d.ts.map +1 -0
- package/dist/http/transport.d.ts +26 -0
- package/dist/http/transport.d.ts.map +1 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1455 -0
- package/dist/index.js.map +1 -0
- package/dist/internal/assert.d.ts +6 -0
- package/dist/internal/assert.d.ts.map +1 -0
- package/dist/internal/json.d.ts +3 -0
- package/dist/internal/json.d.ts.map +1 -0
- package/dist/internal/response-parsers.d.ts +26 -0
- package/dist/internal/response-parsers.d.ts.map +1 -0
- package/dist/routing/read-preference.d.ts +7 -0
- package/dist/routing/read-preference.d.ts.map +1 -0
- package/dist/routing/replicas.d.ts +22 -0
- package/dist/routing/replicas.d.ts.map +1 -0
- package/dist/types/events.d.ts +122 -0
- package/dist/types/events.d.ts.map +1 -0
- package/dist/types/json.d.ts +7 -0
- package/dist/types/json.d.ts.map +1 -0
- package/dist/types/models.d.ts +408 -0
- package/dist/types/models.d.ts.map +1 -0
- package/dist/types/requests.d.ts +96 -0
- package/dist/types/requests.d.ts.map +1 -0
- package/dist/types/responses.d.ts +108 -0
- package/dist/types/responses.d.ts.map +1 -0
- package/dist/ws/socket.d.ts +66 -0
- package/dist/ws/socket.d.ts.map +1 -0
- package/dist/ws/subscriptions.d.ts +46 -0
- package/dist/ws/subscriptions.d.ts.map +1 -0
- package/package.json +49 -0
package/dist/client.d.ts
ADDED
|
@@ -0,0 +1,385 @@
|
|
|
1
|
+
import { LatLngWebSocketClient } from "./ws/socket.js";
|
|
2
|
+
import type { ChannelDef, HookDef, HookInfo } from "./types/events.js";
|
|
3
|
+
import { type CollectionStats, type CollectionInfo, type CompactionResult, type FieldEntry, type FieldMap, type FieldValue, type GeoObject, type LatLngObject, type SearchOptions, type SearchResults, type ServerInfo } from "./types/models.js";
|
|
4
|
+
import type { DeleteMatchingOptions, FsetOptions, GetObjectOptions, JsetOptions, LatLngClientConfig, RenameOptions, SearchAreaRequest, SetHookRequest, SetObjectOptions, SetChannelRequest, TimeoutRequest, WebSocketConnectOptions } from "./types/requests.js";
|
|
5
|
+
import type { ChannelsResponse, InfoResponse, WebhookQueueStatsResponse } from "./types/responses.js";
|
|
6
|
+
/**
|
|
7
|
+
* High-level HTTP and WebSocket client for a `latlng` server.
|
|
8
|
+
*/
|
|
9
|
+
export declare class LatLngClient {
|
|
10
|
+
private readonly transport;
|
|
11
|
+
private readonly replicaRouter;
|
|
12
|
+
private readonly token?;
|
|
13
|
+
private readonly webSocketFactory?;
|
|
14
|
+
/**
|
|
15
|
+
* Creates a new client instance for a `latlng` deployment.
|
|
16
|
+
*/
|
|
17
|
+
constructor(config: LatLngClientConfig);
|
|
18
|
+
/**
|
|
19
|
+
* Verifies that the configured leader is reachable and authenticated.
|
|
20
|
+
*
|
|
21
|
+
* @returns `{ ok: true, pong: true }` when the leader responds successfully.
|
|
22
|
+
*/
|
|
23
|
+
ping(): Promise<{
|
|
24
|
+
ok: true;
|
|
25
|
+
pong: true;
|
|
26
|
+
}>;
|
|
27
|
+
/**
|
|
28
|
+
* Returns the server health response for the configured leader.
|
|
29
|
+
*
|
|
30
|
+
* @returns `{ ok: true }` when the leader reports healthy status.
|
|
31
|
+
*/
|
|
32
|
+
healthz(): Promise<{
|
|
33
|
+
ok: true;
|
|
34
|
+
}>;
|
|
35
|
+
/**
|
|
36
|
+
* Returns the current server status for the configured leader.
|
|
37
|
+
*
|
|
38
|
+
* @returns Parsed server status object.
|
|
39
|
+
*/
|
|
40
|
+
server(): Promise<ServerInfo>;
|
|
41
|
+
/**
|
|
42
|
+
* Returns the server info response, optionally scoped to a section.
|
|
43
|
+
*
|
|
44
|
+
* @param section Optional info section requested from the server.
|
|
45
|
+
* @returns Parsed info response.
|
|
46
|
+
*/
|
|
47
|
+
info(section?: string): Promise<InfoResponse>;
|
|
48
|
+
/**
|
|
49
|
+
* Returns the current Prometheus text exposition metrics from the configured leader.
|
|
50
|
+
*
|
|
51
|
+
* @returns Metrics in Prometheus text exposition format.
|
|
52
|
+
*/
|
|
53
|
+
metrics(): Promise<string>;
|
|
54
|
+
/**
|
|
55
|
+
* Lists visible collection names, optionally filtered by a match pattern.
|
|
56
|
+
*
|
|
57
|
+
* @param matchPattern Optional glob-like match pattern for collection names.
|
|
58
|
+
* @returns Visible collection names.
|
|
59
|
+
*/
|
|
60
|
+
collections(matchPattern?: string): Promise<string[]>;
|
|
61
|
+
/**
|
|
62
|
+
* Creates an empty collection explicitly.
|
|
63
|
+
*
|
|
64
|
+
* @param collection Collection name.
|
|
65
|
+
* Returns `true` when the collection was created and `false` when it already existed.
|
|
66
|
+
* @returns Whether a new collection was created.
|
|
67
|
+
*/
|
|
68
|
+
createCollection(collection: string): Promise<boolean>;
|
|
69
|
+
/**
|
|
70
|
+
* Returns collection metadata for a single collection, or `null` when it does not exist.
|
|
71
|
+
*
|
|
72
|
+
* @param collection Collection name.
|
|
73
|
+
* @returns Collection metadata or `null`.
|
|
74
|
+
*/
|
|
75
|
+
getCollection(collection: string): Promise<CollectionInfo | null>;
|
|
76
|
+
/**
|
|
77
|
+
* Renames a collection.
|
|
78
|
+
*
|
|
79
|
+
* @param collection Source collection name.
|
|
80
|
+
* @param newName Target collection name.
|
|
81
|
+
* @param options Rename options.
|
|
82
|
+
* @returns Whether the rename was applied.
|
|
83
|
+
*/
|
|
84
|
+
rename(collection: string, newName: string, options?: RenameOptions): Promise<boolean>;
|
|
85
|
+
/**
|
|
86
|
+
* Returns the geographic bounds for a collection.
|
|
87
|
+
*
|
|
88
|
+
* @param collection Collection name.
|
|
89
|
+
* @returns Bounding box for the collection.
|
|
90
|
+
*/
|
|
91
|
+
bounds(collection: string): Promise<import("./index.js").BoundingBox>;
|
|
92
|
+
/**
|
|
93
|
+
* Returns collection statistics.
|
|
94
|
+
*
|
|
95
|
+
* @param collection Collection name.
|
|
96
|
+
* @returns Collection statistics array from the server.
|
|
97
|
+
*/
|
|
98
|
+
stats(collection: string): Promise<CollectionStats[]>;
|
|
99
|
+
/**
|
|
100
|
+
* Stores or updates a single object in a collection.
|
|
101
|
+
*
|
|
102
|
+
* @param collection Collection name.
|
|
103
|
+
* @param id Object identifier.
|
|
104
|
+
* @param object Object payload.
|
|
105
|
+
* @param options Write options.
|
|
106
|
+
* @returns Whether the object was stored.
|
|
107
|
+
*/
|
|
108
|
+
setObject(collection: string, id: string, object: GeoObject, options?: SetObjectOptions): Promise<boolean>;
|
|
109
|
+
/**
|
|
110
|
+
* Convenience wrapper for storing a point object.
|
|
111
|
+
*
|
|
112
|
+
* @param collection Collection name.
|
|
113
|
+
* @param id Object identifier.
|
|
114
|
+
* @param coordinates Point coordinates.
|
|
115
|
+
* @param options Write options.
|
|
116
|
+
* @returns Whether the point was stored.
|
|
117
|
+
*/
|
|
118
|
+
setPoint(collection: string, id: string, coordinates: {
|
|
119
|
+
lat: number;
|
|
120
|
+
lon: number;
|
|
121
|
+
z?: number | null;
|
|
122
|
+
}, options?: SetObjectOptions): Promise<boolean>;
|
|
123
|
+
/**
|
|
124
|
+
* Fetches a single object by collection and ID.
|
|
125
|
+
*
|
|
126
|
+
* @param collection Collection name.
|
|
127
|
+
* @param id Object identifier.
|
|
128
|
+
* @param options Read options.
|
|
129
|
+
* Returns `null` when the object does not exist.
|
|
130
|
+
* @returns Parsed object or `null`.
|
|
131
|
+
*/
|
|
132
|
+
get(collection: string, id: string, options?: GetObjectOptions): Promise<LatLngObject | null>;
|
|
133
|
+
/**
|
|
134
|
+
* Deletes a single object.
|
|
135
|
+
*
|
|
136
|
+
* @param collection Collection name.
|
|
137
|
+
* @param id Object identifier.
|
|
138
|
+
* @returns Whether an object was deleted.
|
|
139
|
+
*/
|
|
140
|
+
delete(collection: string, id: string): Promise<boolean>;
|
|
141
|
+
/**
|
|
142
|
+
* Deletes objects matching the supplied ID pattern and returns the deleted count.
|
|
143
|
+
*
|
|
144
|
+
* @param collection Collection name.
|
|
145
|
+
* @param options Delete options.
|
|
146
|
+
* @returns Number of deleted objects.
|
|
147
|
+
*/
|
|
148
|
+
deleteMatching(collection: string, options?: DeleteMatchingOptions): Promise<number>;
|
|
149
|
+
/**
|
|
150
|
+
* Updates one or more fields on an existing object.
|
|
151
|
+
*
|
|
152
|
+
* @param collection Collection name.
|
|
153
|
+
* @param id Object identifier.
|
|
154
|
+
* @param fields Field values to write.
|
|
155
|
+
* @param options Field update options.
|
|
156
|
+
* @returns Whether the fields were updated.
|
|
157
|
+
*/
|
|
158
|
+
setFields(collection: string, id: string, fields: FieldMap | FieldEntry[], options?: FsetOptions): Promise<boolean>;
|
|
159
|
+
/**
|
|
160
|
+
* Fetches a single field value from an object.
|
|
161
|
+
*
|
|
162
|
+
* @param collection Collection name.
|
|
163
|
+
* @param id Object identifier.
|
|
164
|
+
* @param field Field name.
|
|
165
|
+
* @returns Field value or `null`.
|
|
166
|
+
*/
|
|
167
|
+
getField(collection: string, id: string, field: string): Promise<FieldValue | null>;
|
|
168
|
+
/**
|
|
169
|
+
* Sets or replaces the TTL for an object.
|
|
170
|
+
*
|
|
171
|
+
* @param collection Collection name.
|
|
172
|
+
* @param id Object identifier.
|
|
173
|
+
* @param seconds TTL in seconds.
|
|
174
|
+
*/
|
|
175
|
+
expire(collection: string, id: string, seconds: number): Promise<void>;
|
|
176
|
+
/**
|
|
177
|
+
* Removes any TTL from an object.
|
|
178
|
+
*
|
|
179
|
+
* @param collection Collection name.
|
|
180
|
+
* @param id Object identifier.
|
|
181
|
+
*/
|
|
182
|
+
persist(collection: string, id: string): Promise<void>;
|
|
183
|
+
/**
|
|
184
|
+
* Returns the remaining TTL in seconds for an object, or `null` if no TTL is set.
|
|
185
|
+
*
|
|
186
|
+
* @param collection Collection name.
|
|
187
|
+
* @param id Object identifier.
|
|
188
|
+
* @returns Remaining TTL in seconds or `null`.
|
|
189
|
+
*/
|
|
190
|
+
ttl(collection: string, id: string): Promise<number | null>;
|
|
191
|
+
/**
|
|
192
|
+
* Writes a JSON value at the given JSON path on an object.
|
|
193
|
+
*
|
|
194
|
+
* @param collection Collection name.
|
|
195
|
+
* @param id Object identifier.
|
|
196
|
+
* @param path JSON path.
|
|
197
|
+
* @param value JSON value string or raw payload, depending on `options.raw`.
|
|
198
|
+
* @param options JSON write options.
|
|
199
|
+
*/
|
|
200
|
+
setJson(collection: string, id: string, path: string, value: string, options?: JsetOptions): Promise<void>;
|
|
201
|
+
/**
|
|
202
|
+
* Reads a JSON value from the given JSON path on an object.
|
|
203
|
+
*
|
|
204
|
+
* @param collection Collection name.
|
|
205
|
+
* @param id Object identifier.
|
|
206
|
+
* @param path JSON path.
|
|
207
|
+
* @returns Parsed JSON value.
|
|
208
|
+
*/
|
|
209
|
+
getJson(collection: string, id: string, path: string): Promise<unknown>;
|
|
210
|
+
/**
|
|
211
|
+
* Deletes a JSON value at the given JSON path on an object.
|
|
212
|
+
*
|
|
213
|
+
* @param collection Collection name.
|
|
214
|
+
* @param id Object identifier.
|
|
215
|
+
* @param path JSON path.
|
|
216
|
+
* @returns Whether a JSON value was deleted.
|
|
217
|
+
*/
|
|
218
|
+
deleteJson(collection: string, id: string, path: string): Promise<boolean>;
|
|
219
|
+
/**
|
|
220
|
+
* Runs a `NEARBY` search against a collection.
|
|
221
|
+
*
|
|
222
|
+
* @param collection Collection name.
|
|
223
|
+
* @param query Nearby query payload.
|
|
224
|
+
* @returns Search results.
|
|
225
|
+
*/
|
|
226
|
+
nearby(collection: string, query: import("./types/models.js").NearbyQuery): Promise<SearchResults>;
|
|
227
|
+
/**
|
|
228
|
+
* Runs a `WITHIN` search against a collection.
|
|
229
|
+
*
|
|
230
|
+
* @param collection Collection name.
|
|
231
|
+
* @param request Area search request.
|
|
232
|
+
* @returns Search results.
|
|
233
|
+
*/
|
|
234
|
+
within(collection: string, request: SearchAreaRequest): Promise<SearchResults>;
|
|
235
|
+
/**
|
|
236
|
+
* Runs an `INTERSECTS` search against a collection.
|
|
237
|
+
*
|
|
238
|
+
* @param collection Collection name.
|
|
239
|
+
* @param request Area search request.
|
|
240
|
+
* @returns Search results.
|
|
241
|
+
*/
|
|
242
|
+
intersects(collection: string, request: SearchAreaRequest): Promise<SearchResults>;
|
|
243
|
+
/**
|
|
244
|
+
* Runs a `SCAN` query against a collection.
|
|
245
|
+
*
|
|
246
|
+
* @param collection Collection name.
|
|
247
|
+
* @param options Search options.
|
|
248
|
+
* @returns Search results.
|
|
249
|
+
*/
|
|
250
|
+
scan(collection: string, options?: SearchOptions): Promise<SearchResults>;
|
|
251
|
+
/**
|
|
252
|
+
* Runs a text search query against a collection.
|
|
253
|
+
*
|
|
254
|
+
* @param collection Collection name.
|
|
255
|
+
* @param options Search options.
|
|
256
|
+
* @returns Search results.
|
|
257
|
+
*/
|
|
258
|
+
search(collection: string, options?: SearchOptions): Promise<SearchResults>;
|
|
259
|
+
/**
|
|
260
|
+
* Creates or replaces a geofence channel definition.
|
|
261
|
+
*
|
|
262
|
+
* @param request Channel definition request.
|
|
263
|
+
* Returns the stored channel name.
|
|
264
|
+
* @returns Stored channel name.
|
|
265
|
+
*/
|
|
266
|
+
setChannel(request: SetChannelRequest): Promise<string>;
|
|
267
|
+
/**
|
|
268
|
+
* Deletes a channel definition by name.
|
|
269
|
+
*
|
|
270
|
+
* @param name Channel name.
|
|
271
|
+
* @returns Whether a channel was deleted.
|
|
272
|
+
*/
|
|
273
|
+
deleteChannel(name: string): Promise<boolean>;
|
|
274
|
+
/**
|
|
275
|
+
* Lists visible channel names, optionally filtered by a match pattern.
|
|
276
|
+
*
|
|
277
|
+
* @param matchPattern Optional glob-like match pattern for channel names.
|
|
278
|
+
* @returns Visible channel names.
|
|
279
|
+
*/
|
|
280
|
+
channels(matchPattern?: string): Promise<ChannelsResponse>;
|
|
281
|
+
/**
|
|
282
|
+
* Returns a full channel definition by name, or `null` when it does not exist.
|
|
283
|
+
*
|
|
284
|
+
* @param name Channel name.
|
|
285
|
+
* @returns Full channel definition or `null`.
|
|
286
|
+
*/
|
|
287
|
+
getChannel(name: string): Promise<ChannelDef | null>;
|
|
288
|
+
/**
|
|
289
|
+
* Creates or replaces a webhook hook definition.
|
|
290
|
+
*
|
|
291
|
+
* @param request Hook definition request.
|
|
292
|
+
*/
|
|
293
|
+
setHook(request: SetHookRequest): Promise<void>;
|
|
294
|
+
/**
|
|
295
|
+
* Deletes a hook definition by name.
|
|
296
|
+
*
|
|
297
|
+
* @param name Hook name.
|
|
298
|
+
* @returns Whether a hook was deleted.
|
|
299
|
+
*/
|
|
300
|
+
deleteHook(name: string): Promise<boolean>;
|
|
301
|
+
/**
|
|
302
|
+
* Lists visible hook summaries, optionally filtered by a match pattern.
|
|
303
|
+
*
|
|
304
|
+
* @param matchPattern Optional glob-like match pattern for hook names.
|
|
305
|
+
* @returns Visible hook summaries.
|
|
306
|
+
*/
|
|
307
|
+
hooks(matchPattern?: string): Promise<HookInfo[]>;
|
|
308
|
+
/**
|
|
309
|
+
* Returns a full hook definition by name, or `null` when it does not exist.
|
|
310
|
+
*
|
|
311
|
+
* @param name Hook name.
|
|
312
|
+
* @returns Full hook definition or `null`.
|
|
313
|
+
*/
|
|
314
|
+
getHook(name: string): Promise<HookDef | null>;
|
|
315
|
+
/**
|
|
316
|
+
* Reads a single runtime configuration value from the leader.
|
|
317
|
+
*
|
|
318
|
+
* @param name Config key.
|
|
319
|
+
* @returns Config value as a string.
|
|
320
|
+
*/
|
|
321
|
+
configGet(name: string): Promise<string>;
|
|
322
|
+
/**
|
|
323
|
+
* Updates a runtime configuration value on the leader.
|
|
324
|
+
*
|
|
325
|
+
* @param name Config key.
|
|
326
|
+
* @param value Config value.
|
|
327
|
+
*/
|
|
328
|
+
configSet(name: string, value: string): Promise<void>;
|
|
329
|
+
/**
|
|
330
|
+
* Persists the current runtime configuration to disk.
|
|
331
|
+
*/
|
|
332
|
+
configRewrite(): Promise<void>;
|
|
333
|
+
/**
|
|
334
|
+
* Flushes all data from the database.
|
|
335
|
+
*/
|
|
336
|
+
flushdb(): Promise<void>;
|
|
337
|
+
/**
|
|
338
|
+
* Runs garbage collection / maintenance on the leader.
|
|
339
|
+
*/
|
|
340
|
+
gc(): Promise<void>;
|
|
341
|
+
/**
|
|
342
|
+
* Triggers AOF compaction and returns before/after statistics.
|
|
343
|
+
*
|
|
344
|
+
* @returns Compaction result statistics.
|
|
345
|
+
*/
|
|
346
|
+
aofshrink(): Promise<CompactionResult>;
|
|
347
|
+
/**
|
|
348
|
+
* Returns webhook queue statistics from the leader.
|
|
349
|
+
*
|
|
350
|
+
* @returns Webhook queue statistics.
|
|
351
|
+
*/
|
|
352
|
+
webhookQueue(): Promise<WebhookQueueStatsResponse>;
|
|
353
|
+
/**
|
|
354
|
+
* Enables or disables read-only mode on the leader.
|
|
355
|
+
*
|
|
356
|
+
* @param enabled Whether read-only mode should be enabled.
|
|
357
|
+
* @returns Effective read-only state.
|
|
358
|
+
*/
|
|
359
|
+
readonly(enabled: boolean): Promise<boolean>;
|
|
360
|
+
/**
|
|
361
|
+
* Configures per-command server timeouts.
|
|
362
|
+
*
|
|
363
|
+
* @param request Timeout request payload.
|
|
364
|
+
* @returns Effective timeout in seconds, or `null` when unset.
|
|
365
|
+
*/
|
|
366
|
+
timeout(request: TimeoutRequest): Promise<number | null>;
|
|
367
|
+
/**
|
|
368
|
+
* Drops a collection explicitly.
|
|
369
|
+
*
|
|
370
|
+
* @param collection Collection name.
|
|
371
|
+
* @returns Whether a collection was dropped.
|
|
372
|
+
*/
|
|
373
|
+
dropCollection(collection: string): Promise<boolean>;
|
|
374
|
+
/**
|
|
375
|
+
* Opens a WebSocket client for subscriptions against the configured leader.
|
|
376
|
+
*
|
|
377
|
+
* @param options WebSocket connection options.
|
|
378
|
+
* @returns Connected WebSocket client.
|
|
379
|
+
*/
|
|
380
|
+
connectWebSocket(options?: WebSocketConnectOptions): Promise<LatLngWebSocketClient>;
|
|
381
|
+
private requestWrite;
|
|
382
|
+
private requestLeader;
|
|
383
|
+
private requestRead;
|
|
384
|
+
}
|
|
385
|
+
//# sourceMappingURL=client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAiCA,OAAO,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAEvE,OAAO,EASL,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,UAAU,EACf,KAAK,QAAQ,EACb,KAAK,UAAU,EACf,KAAK,SAAS,EACd,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,UAAU,EAChB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EACV,qBAAqB,EACrB,WAAW,EACX,gBAAgB,EAChB,WAAW,EACX,kBAAkB,EAClB,aAAa,EACb,iBAAiB,EACjB,cAAc,EACd,gBAAgB,EAChB,iBAAiB,EACjB,cAAc,EACd,uBAAuB,EACxB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EACV,gBAAgB,EAChB,YAAY,EACZ,yBAAyB,EAC1B,MAAM,sBAAsB,CAAC;AA8B9B;;GAEG;AACH,qBAAa,YAAY;IACvB,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAgB;IAC1C,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAgB;IAC9C,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAS;IAChC,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAA6B;IAE/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c,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAQjE;;;;;OAKG;IACU,gBAAgB,CAC3B,OAAO,CAAC,EAAE,uBAAuB,GAChC,OAAO,CAAC,qBAAqB,CAAC;YAQnB,YAAY;YASZ,aAAa;YASb,WAAW;CA2C1B"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Base SDK error type.
|
|
3
|
+
*/
|
|
4
|
+
export declare class LatLngError extends Error {
|
|
5
|
+
/** Optional underlying cause. */
|
|
6
|
+
readonly cause?: unknown;
|
|
7
|
+
/**
|
|
8
|
+
* Creates a new SDK error.
|
|
9
|
+
*
|
|
10
|
+
* @param message Human-readable error message.
|
|
11
|
+
* @param options Additional error metadata.
|
|
12
|
+
*/
|
|
13
|
+
constructor(message: string, options?: {
|
|
14
|
+
cause?: unknown;
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Error raised when an HTTP request exceeds the configured timeout.
|
|
19
|
+
*/
|
|
20
|
+
export declare class TimeoutError extends LatLngError {
|
|
21
|
+
/** Configured timeout in milliseconds. */
|
|
22
|
+
readonly timeoutMs: number;
|
|
23
|
+
/**
|
|
24
|
+
* Creates a timeout error.
|
|
25
|
+
*
|
|
26
|
+
* @param timeoutMs Timeout that was exceeded.
|
|
27
|
+
* @param options Additional error metadata.
|
|
28
|
+
*/
|
|
29
|
+
constructor(timeoutMs: number, options?: {
|
|
30
|
+
cause?: unknown;
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Error raised for non-success HTTP responses.
|
|
35
|
+
*/
|
|
36
|
+
export declare class HttpError extends LatLngError {
|
|
37
|
+
/** HTTP status code returned by the server. */
|
|
38
|
+
readonly status: number;
|
|
39
|
+
/** Request URL that produced the error. */
|
|
40
|
+
readonly url: string;
|
|
41
|
+
/** Parsed response body, when available. */
|
|
42
|
+
readonly body?: unknown;
|
|
43
|
+
/**
|
|
44
|
+
* Creates an HTTP error wrapper.
|
|
45
|
+
*
|
|
46
|
+
* @param message Human-readable error message.
|
|
47
|
+
* @param options HTTP error metadata.
|
|
48
|
+
*/
|
|
49
|
+
constructor(message: string, options: {
|
|
50
|
+
status: number;
|
|
51
|
+
url: string;
|
|
52
|
+
body?: unknown;
|
|
53
|
+
cause?: unknown;
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* HTTP error raised for authentication failures.
|
|
58
|
+
*/
|
|
59
|
+
export declare class AuthError extends HttpError {
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* HTTP error raised when the server is temporarily unavailable.
|
|
63
|
+
*/
|
|
64
|
+
export declare class ServerUnavailableError extends HttpError {
|
|
65
|
+
}
|
|
66
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/errors/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,qBAAa,WAAY,SAAQ,KAAK;IACpC,iCAAiC;IACjC,SAAgB,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhC;;;;;OAKG;gBACgB,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,OAAO,CAAA;KAAE;CAKlE;AAED;;GAEG;AACH,qBAAa,YAAa,SAAQ,WAAW;IAC3C,0CAA0C;IAC1C,SAAgB,SAAS,EAAE,MAAM,CAAC;IAElC;;;;;OAKG;gBACgB,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,OAAO,CAAA;KAAE;CAIpE;AAED;;GAEG;AACH,qBAAa,SAAU,SAAQ,WAAW;IACxC,+CAA+C;IAC/C,SAAgB,MAAM,EAAE,MAAM,CAAC;IAC/B,2CAA2C;IAC3C,SAAgB,GAAG,EAAE,MAAM,CAAC;IAC5B,4CAA4C;IAC5C,SAAgB,IAAI,CAAC,EAAE,OAAO,CAAC;IAE/B;;;;;OAKG;gBAED,OAAO,EAAE,MAAM,EACf,OAAO,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,OAAO,CAAC;QAAC,KAAK,CAAC,EAAE,OAAO,CAAA;KAAE;CAO5E;AAED;;GAEG;AACH,qBAAa,SAAU,SAAQ,SAAS;CAAG;AAE3C;;GAEG;AACH,qBAAa,sBAAuB,SAAQ,SAAS;CAAG"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export declare function joinUrl(baseUrl: string, path: string): string;
|
|
2
|
+
export declare function buildQuery(query: Record<string, string | number | boolean | null | undefined>): string;
|
|
3
|
+
export declare const routes: {
|
|
4
|
+
ping: () => string;
|
|
5
|
+
healthz: () => string;
|
|
6
|
+
server: () => string;
|
|
7
|
+
info: (section?: string) => string;
|
|
8
|
+
metrics: () => string;
|
|
9
|
+
collections: (matchPattern?: string) => string;
|
|
10
|
+
collection: (collection: string) => string;
|
|
11
|
+
renameCollection: (collection: string) => string;
|
|
12
|
+
bounds: (collection: string) => string;
|
|
13
|
+
stats: (collection: string) => string;
|
|
14
|
+
object: (collection: string, id: string) => string;
|
|
15
|
+
objects: (collection: string, matchPattern?: string) => string;
|
|
16
|
+
fields: (collection: string, id: string) => string;
|
|
17
|
+
field: (collection: string, id: string, field: string) => string;
|
|
18
|
+
expire: (collection: string, id: string) => string;
|
|
19
|
+
ttl: (collection: string, id: string) => string;
|
|
20
|
+
jsonRoot: (collection: string, id: string) => string;
|
|
21
|
+
jsonPath: (collection: string, id: string, path: string) => string;
|
|
22
|
+
nearby: (collection: string) => string;
|
|
23
|
+
within: (collection: string) => string;
|
|
24
|
+
intersects: (collection: string) => string;
|
|
25
|
+
scan: (collection: string) => string;
|
|
26
|
+
search: (collection: string) => string;
|
|
27
|
+
channels: (matchPattern?: string) => string;
|
|
28
|
+
channel: (name: string) => string;
|
|
29
|
+
hooks: (matchPattern?: string) => string;
|
|
30
|
+
hook: (name: string) => string;
|
|
31
|
+
config: (name: string) => string;
|
|
32
|
+
flushdb: () => string;
|
|
33
|
+
gc: () => string;
|
|
34
|
+
aofshrink: () => string;
|
|
35
|
+
webhookQueue: () => string;
|
|
36
|
+
configRewrite: () => string;
|
|
37
|
+
readonly: () => string;
|
|
38
|
+
timeout: () => string;
|
|
39
|
+
ws: () => string;
|
|
40
|
+
};
|
|
41
|
+
//# sourceMappingURL=routes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../src/http/routes.ts"],"names":[],"mappings":"AAAA,wBAAgB,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAG7D;AAED,wBAAgB,UAAU,CACxB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,SAAS,CAAC,GAClE,MAAM,CAUR;AAED,eAAO,MAAM,MAAM;;;;qBAIA,MAAM;;iCAEM,MAAM;6BAEV,MAAM;mCAEA,MAAM;yBAEhB,MAAM;wBAEP,MAAM;yBAEL,MAAM,MAAM,MAAM;0BAEjB,MAAM,iBAAiB,MAAM;yBAI9B,MAAM,MAAM,MAAM;wBAEnB,MAAM,MAAM,MAAM,SAAS,MAAM;yBAEhC,MAAM,MAAM,MAAM;sBAErB,MAAM,MAAM,MAAM;2BAEb,MAAM,MAAM,MAAM;2BAElB,MAAM,MAAM,MAAM,QAAQ,MAAM;yBAElC,MAAM;yBAEN,MAAM;6BAEF,MAAM;uBAEZ,MAAM;yBAEJ,MAAM;8BAED,MAAM;oBAEhB,MAAM;2BACC,MAAM;iBAEhB,MAAM;mBACJ,MAAM;;;;;;;;;CAStB,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export interface HttpTransportConfig {
|
|
2
|
+
baseUrl: string;
|
|
3
|
+
token?: string;
|
|
4
|
+
timeoutMs?: number;
|
|
5
|
+
headers?: HeadersInit;
|
|
6
|
+
fetch?: typeof globalThis.fetch;
|
|
7
|
+
}
|
|
8
|
+
export interface RequestOptions<T> {
|
|
9
|
+
method?: "GET" | "POST" | "DELETE";
|
|
10
|
+
path: string;
|
|
11
|
+
body?: unknown;
|
|
12
|
+
baseUrl?: string;
|
|
13
|
+
parser?: (value: unknown) => T;
|
|
14
|
+
}
|
|
15
|
+
export declare class HttpTransport {
|
|
16
|
+
private readonly baseUrl;
|
|
17
|
+
private readonly token?;
|
|
18
|
+
private readonly timeoutMs;
|
|
19
|
+
private readonly headers?;
|
|
20
|
+
private readonly fetchImpl;
|
|
21
|
+
constructor(config: HttpTransportConfig);
|
|
22
|
+
request<T>(options: RequestOptions<T>): Promise<T>;
|
|
23
|
+
requestText(options: Omit<RequestOptions<string>, "parser">): Promise<string>;
|
|
24
|
+
private toHttpError;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=transport.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transport.d.ts","sourceRoot":"","sources":["../../src/http/transport.ts"],"names":[],"mappings":"AAUA,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,KAAK,CAAC,EAAE,OAAO,UAAU,CAAC,KAAK,CAAC;CACjC;AAED,MAAM,WAAW,cAAc,CAAC,CAAC;IAC/B,MAAM,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,QAAQ,CAAC;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,CAAC,CAAC;CAChC;AAED,qBAAa,aAAa;IACxB,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAS;IACjC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAS;IAChC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAS;IACnC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAc;IACvC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAA0B;gBAEjC,MAAM,EAAE,mBAAmB;IAQjC,OAAO,CAAC,CAAC,EAAE,OAAO,EAAE,cAAc,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;IAoClD,WAAW,CAAC,OAAO,EAAE,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,QAAQ,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC;IAoC1F,OAAO,CAAC,WAAW;CAuBpB"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { LatLngClient } from "./client.js";
|
|
2
|
+
export { AuthError, HttpError, LatLngError, ServerUnavailableError, TimeoutError, } from "./errors/index.js";
|
|
3
|
+
export { LatLngWebSocketClient, type LatLngWebSocketConfig } from "./ws/socket.js";
|
|
4
|
+
export { LatLngSubscription } from "./ws/subscriptions.js";
|
|
5
|
+
export type { JsonPrimitive, JsonValue } from "./types/json.js";
|
|
6
|
+
export { bounds, fieldEntries, geojson, hash, jsonField, numberField, point, stringObject, textField, } from "./types/models.js";
|
|
7
|
+
export type { Area, BoundingBox, CollectionInfo, CollectionStats, CompactionResult, FieldEntry, FieldMap, FieldValue, GeoObject, LatLngObject, NearbyQuery, OutputFormat, SearchItem, SearchOptions, SearchResults, ServerInfo, SortOrder, WhereComparison, WhereExprFilter, WhereFilter, WhereInFilter, } from "./types/models.js";
|
|
8
|
+
export { parseGeofenceEvent } from "./types/events.js";
|
|
9
|
+
export type { ChannelDef, DetectType, GeofenceDef, GeofenceEvent, GeofenceQuery, HookDef, HookInfo, MutationCommand, RoamingInfo, } from "./types/events.js";
|
|
10
|
+
export type { DeleteMatchingOptions, FsetOptions, GetObjectOptions, JsetOptions, LatLngClientConfig, NearbyRequest, ReadPreference, RenameOptions, SearchAreaRequest, SetChannelRequest, SetHookRequest, SetObjectOptions, TimeoutRequest, WebSocketConnectOptions, } from "./types/requests.js";
|
|
11
|
+
export type { AofshrinkResponse, BoundsResponse, ChannelsResponse, CollectionInfoResponse, CollectionsResponse, ConfigValueResponse, CreateCollectionResponse, DeleteResponse, DropCollectionResponse, FieldResponse, GetObjectResponse, HooksResponse, InfoResponse, JsonValueResponse, MetricsResponse, OkResponse, PingResponse, ReadOnlyResponse, RenameResponse, SearchResponse, ServerResponse, SetObjectResponse, StatsResponse, TimeoutResponse, TtlResponse, UpdatedResponse, WebhookQueueStatsResponse, } from "./types/responses.js";
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EACL,SAAS,EACT,SAAS,EACT,WAAW,EACX,sBAAsB,EACtB,YAAY,GACb,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,qBAAqB,EAAE,KAAK,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AACnF,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,YAAY,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAChE,OAAO,EACL,MAAM,EACN,YAAY,EACZ,OAAO,EACP,IAAI,EACJ,SAAS,EACT,WAAW,EACX,KAAK,EACL,YAAY,EACZ,SAAS,GACV,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EACV,IAAI,EACJ,WAAW,EACX,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,UAAU,EACV,QAAQ,EACR,UAAU,EACV,SAAS,EAC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