@jaypie/dynamodb 0.1.3 → 0.3.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.
@@ -1,9 +1,6 @@
1
- export declare const APEX = "@";
2
- export declare const SEPARATOR = "#";
1
+ export { APEX, ARCHIVED_SUFFIX, DELETED_SUFFIX, SEPARATOR, } from "@jaypie/fabric";
3
2
  export declare const INDEX_ALIAS = "indexAlias";
4
3
  export declare const INDEX_CLASS = "indexClass";
5
- export declare const INDEX_OU = "indexOu";
4
+ export declare const INDEX_SCOPE = "indexScope";
6
5
  export declare const INDEX_TYPE = "indexType";
7
6
  export declare const INDEX_XID = "indexXid";
8
- export declare const ARCHIVED_SUFFIX = "#archived";
9
- export declare const DELETED_SUFFIX = "#deleted";
@@ -1,40 +1,40 @@
1
- import type { FabricEntity } from "./types.js";
1
+ import type { StorableEntity } from "./types.js";
2
2
  /**
3
3
  * Get a single entity by primary key
4
4
  */
5
- export declare const getEntity: import("@jaypie/vocabulary").ServiceHandlerFunction<Record<string, unknown>, FabricEntity | null>;
5
+ export declare const getEntity: import("@jaypie/fabric").Service<Record<string, unknown>, StorableEntity | null>;
6
6
  /**
7
7
  * Put (create or replace) an entity
8
8
  * Auto-populates GSI index keys via indexEntity
9
9
  *
10
- * Note: This is a regular async function (not serviceHandler) because it accepts
11
- * complex FabricEntity objects that can't be coerced by vocabulary's type system.
10
+ * Note: This is a regular async function (not fabricService) because it accepts
11
+ * complex StorableEntity objects that can't be coerced by vocabulary's type system.
12
12
  */
13
13
  export declare function putEntity({ entity, }: {
14
- entity: FabricEntity;
15
- }): Promise<FabricEntity>;
14
+ entity: StorableEntity;
15
+ }): Promise<StorableEntity>;
16
16
  /**
17
17
  * Update an existing entity
18
18
  * Auto-populates GSI index keys and sets updatedAt
19
19
  *
20
- * Note: This is a regular async function (not serviceHandler) because it accepts
21
- * complex FabricEntity objects that can't be coerced by vocabulary's type system.
20
+ * Note: This is a regular async function (not fabricService) because it accepts
21
+ * complex StorableEntity objects that can't be coerced by vocabulary's type system.
22
22
  */
23
23
  export declare function updateEntity({ entity, }: {
24
- entity: FabricEntity;
25
- }): Promise<FabricEntity>;
24
+ entity: StorableEntity;
25
+ }): Promise<StorableEntity>;
26
26
  /**
27
27
  * Soft delete an entity by setting deletedAt timestamp
28
28
  * Re-indexes with appropriate suffix based on archived/deleted state
29
29
  */
30
- export declare const deleteEntity: import("@jaypie/vocabulary").ServiceHandlerFunction<Record<string, unknown>, boolean>;
30
+ export declare const deleteEntity: import("@jaypie/fabric").Service<Record<string, unknown>, boolean>;
31
31
  /**
32
32
  * Archive an entity by setting archivedAt timestamp
33
33
  * Re-indexes with appropriate suffix based on archived/deleted state
34
34
  */
35
- export declare const archiveEntity: import("@jaypie/vocabulary").ServiceHandlerFunction<Record<string, unknown>, boolean>;
35
+ export declare const archiveEntity: import("@jaypie/fabric").Service<Record<string, unknown>, boolean>;
36
36
  /**
37
37
  * Hard delete an entity (permanently removes from table)
38
38
  * Use with caution - prefer deleteEntity for soft delete
39
39
  */
40
- export declare const destroyEntity: import("@jaypie/vocabulary").ServiceHandlerFunction<Record<string, unknown>, boolean>;
40
+ export declare const destroyEntity: import("@jaypie/fabric").Service<Record<string, unknown>, boolean>;