@jaypie/dynamodb 0.4.4 → 0.6.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 +0 -5
- package/dist/cjs/entities.d.ts +8 -13
- package/dist/cjs/index.cjs +210 -324
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/index.d.ts +3 -3
- package/dist/cjs/keyBuilders.d.ts +11 -49
- package/dist/cjs/mcp/index.cjs +184 -223
- package/dist/cjs/mcp/index.cjs.map +1 -1
- package/dist/cjs/queries.d.ts +39 -41
- package/dist/cjs/query.d.ts +20 -20
- package/dist/cjs/types.d.ts +26 -41
- package/dist/esm/constants.d.ts +0 -5
- package/dist/esm/entities.d.ts +8 -13
- package/dist/esm/index.d.ts +3 -3
- package/dist/esm/index.js +211 -315
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/keyBuilders.d.ts +11 -49
- package/dist/esm/mcp/index.js +185 -224
- package/dist/esm/mcp/index.js.map +1 -1
- package/dist/esm/queries.d.ts +39 -41
- package/dist/esm/query.d.ts +20 -20
- package/dist/esm/types.d.ts +26 -41
- package/package.json +1 -1
package/dist/cjs/constants.d.ts
CHANGED
|
@@ -1,6 +1 @@
|
|
|
1
1
|
export { APEX, ARCHIVED_SUFFIX, DELETED_SUFFIX, SEPARATOR, } from "@jaypie/fabric";
|
|
2
|
-
export declare const INDEX_ALIAS = "indexAlias";
|
|
3
|
-
export declare const INDEX_CATEGORY = "indexCategory";
|
|
4
|
-
export declare const INDEX_SCOPE = "indexScope";
|
|
5
|
-
export declare const INDEX_TYPE = "indexType";
|
|
6
|
-
export declare const INDEX_XID = "indexXid";
|
package/dist/cjs/entities.d.ts
CHANGED
|
@@ -1,24 +1,19 @@
|
|
|
1
1
|
import type { StorableEntity } from "./types.js";
|
|
2
2
|
/**
|
|
3
|
-
* Get a single entity by primary key
|
|
3
|
+
* Get a single entity by primary key (id)
|
|
4
4
|
*/
|
|
5
5
|
export declare const getEntity: import("@jaypie/fabric").Service<Record<string, unknown>, StorableEntity | null, StorableEntity | null>;
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
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.
|
|
7
|
+
* Create an entity. Fails the conditional write if `id` already exists,
|
|
8
|
+
* returning `null` instead of throwing. Use `updateEntity` to overwrite.
|
|
9
|
+
* `indexEntity` auto-bumps `updatedAt` and backfills `createdAt`.
|
|
12
10
|
*/
|
|
13
|
-
export declare function
|
|
11
|
+
export declare function createEntity({ entity, }: {
|
|
14
12
|
entity: StorableEntity;
|
|
15
|
-
}): Promise<StorableEntity>;
|
|
13
|
+
}): Promise<StorableEntity | null>;
|
|
16
14
|
/**
|
|
17
|
-
* Update an existing entity
|
|
18
|
-
*
|
|
19
|
-
*
|
|
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.
|
|
15
|
+
* Update an existing entity.
|
|
16
|
+
* `indexEntity` auto-bumps `updatedAt` — callers never set it manually.
|
|
22
17
|
*/
|
|
23
18
|
export declare function updateEntity({ entity, }: {
|
|
24
19
|
entity: StorableEntity;
|