@geolonia/geonicdb-sdk 0.27.1 → 0.29.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/geonicdb.d.ts CHANGED
@@ -417,6 +417,51 @@ export interface AttributeList {
417
417
  attributeList: string[];
418
418
  "@context"?: string | string[];
419
419
  }
420
+ /** Local asynchronous frozen-query Snapshot (a limited ETSI Snapshot surface). */
421
+ export interface SnapshotQuery {
422
+ type: "Query";
423
+ entities?: Array<{
424
+ id?: string | string[];
425
+ idPattern?: string;
426
+ type?: string;
427
+ }>;
428
+ attrs?: string[];
429
+ q?: string;
430
+ scopeQ?: string;
431
+ geoQ?: {
432
+ georel: string;
433
+ geometry: string;
434
+ coordinates: unknown;
435
+ geoproperty?: string;
436
+ };
437
+ "@context"?: string | Record<string, unknown> | Array<string | Record<string, unknown>>;
438
+ }
439
+ export interface CreateQuerySnapshot {
440
+ "@context"?: SnapshotQuery["@context"];
441
+ id?: string;
442
+ type: "Snapshot";
443
+ snapshotQueries: SnapshotQuery[];
444
+ snapshotPriority?: number;
445
+ snapshotLifetime?: string;
446
+ }
447
+ export interface QuerySnapshot {
448
+ id: string;
449
+ type: "Snapshot";
450
+ snapshotQueries: SnapshotQuery[];
451
+ snapshotPriority: number;
452
+ snapshotStatus: "preparing" | "success" | "partial" | "empty" | "failure";
453
+ snapshotQueriesDetails: Array<{
454
+ resultStatus: "success" | "failure" | "empty";
455
+ problemDetails?: {
456
+ type: string;
457
+ title: string;
458
+ detail: string;
459
+ };
460
+ }>;
461
+ createdAt: string;
462
+ modifiedAt: string;
463
+ expiresAt: string;
464
+ }
420
465
  export type Listener<T> = (data: T) => void;
421
466
  declare class EventEmitter {
422
467
  private _listeners;