@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.
- package/dist/cjs/constants.d.ts +2 -5
- package/dist/cjs/entities.d.ts +13 -13
- package/dist/cjs/index.cjs +312 -124
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/index.d.ts +6 -4
- package/dist/cjs/keyBuilders.d.ts +36 -21
- package/dist/cjs/mcp/admin/createTable.d.ts +1 -1
- package/dist/cjs/mcp/admin/dockerCompose.d.ts +1 -1
- package/dist/cjs/mcp/admin/status.d.ts +1 -1
- package/dist/cjs/mcp/index.cjs +245 -197
- package/dist/cjs/mcp/index.cjs.map +1 -1
- package/dist/cjs/queries.d.ts +16 -16
- package/dist/cjs/query.d.ts +58 -0
- package/dist/cjs/seedExport.d.ts +11 -11
- package/dist/cjs/types.d.ts +25 -27
- package/dist/esm/constants.d.ts +2 -5
- package/dist/esm/entities.d.ts +13 -13
- package/dist/esm/index.d.ts +6 -4
- package/dist/esm/index.js +281 -110
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/keyBuilders.d.ts +36 -21
- package/dist/esm/mcp/admin/createTable.d.ts +1 -1
- package/dist/esm/mcp/admin/dockerCompose.d.ts +1 -1
- package/dist/esm/mcp/admin/status.d.ts +1 -1
- package/dist/esm/mcp/index.js +239 -191
- package/dist/esm/mcp/index.js.map +1 -1
- package/dist/esm/queries.d.ts +16 -16
- package/dist/esm/query.d.ts +58 -0
- package/dist/esm/seedExport.d.ts +11 -11
- package/dist/esm/types.d.ts +25 -27
- package/package.json +2 -2
package/dist/cjs/constants.d.ts
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
export
|
|
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
|
|
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";
|
package/dist/cjs/entities.d.ts
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import type {
|
|
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/
|
|
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
|
|
11
|
-
* complex
|
|
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:
|
|
15
|
-
}): Promise<
|
|
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
|
|
21
|
-
* complex
|
|
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:
|
|
25
|
-
}): Promise<
|
|
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/
|
|
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/
|
|
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/
|
|
40
|
+
export declare const destroyEntity: import("@jaypie/fabric").Service<Record<string, unknown>, boolean>;
|