@jaypie/dynamodb 0.3.0 → 0.4.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/entities.d.ts +4 -4
- package/dist/cjs/mcp/admin/createTable.d.ts +4 -0
- package/dist/cjs/mcp/admin/dockerCompose.d.ts +8 -0
- package/dist/cjs/mcp/admin/status.d.ts +5 -0
- package/dist/cjs/queries.d.ts +2 -2
- package/dist/esm/entities.d.ts +4 -4
- package/dist/esm/mcp/admin/createTable.d.ts +4 -0
- package/dist/esm/mcp/admin/dockerCompose.d.ts +8 -0
- package/dist/esm/mcp/admin/status.d.ts +5 -0
- package/dist/esm/queries.d.ts +2 -2
- package/package.json +5 -5
package/dist/cjs/entities.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ 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/fabric").Service<Record<string, unknown>, StorableEntity | null>;
|
|
5
|
+
export declare const getEntity: import("@jaypie/fabric").Service<Record<string, unknown>, StorableEntity | null, StorableEntity | null>;
|
|
6
6
|
/**
|
|
7
7
|
* Put (create or replace) an entity
|
|
8
8
|
* Auto-populates GSI index keys via indexEntity
|
|
@@ -27,14 +27,14 @@ export declare function updateEntity({ entity, }: {
|
|
|
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/fabric").Service<Record<string, unknown>, boolean>;
|
|
30
|
+
export declare const deleteEntity: import("@jaypie/fabric").Service<Record<string, unknown>, boolean, 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/fabric").Service<Record<string, unknown>, boolean>;
|
|
35
|
+
export declare const archiveEntity: import("@jaypie/fabric").Service<Record<string, unknown>, boolean, 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/fabric").Service<Record<string, unknown>, boolean>;
|
|
40
|
+
export declare const destroyEntity: import("@jaypie/fabric").Service<Record<string, unknown>, boolean, boolean>;
|
|
@@ -9,4 +9,12 @@ export declare const dockerComposeHandler: import("@jaypie/fabric").Service<Reco
|
|
|
9
9
|
DYNAMODB_ENDPOINT: string;
|
|
10
10
|
DYNAMODB_TABLE_NAME: unknown;
|
|
11
11
|
};
|
|
12
|
+
}, {
|
|
13
|
+
dockerCompose: string;
|
|
14
|
+
envFile: string;
|
|
15
|
+
envVars: {
|
|
16
|
+
AWS_REGION: string;
|
|
17
|
+
DYNAMODB_ENDPOINT: string;
|
|
18
|
+
DYNAMODB_TABLE_NAME: unknown;
|
|
19
|
+
};
|
|
12
20
|
}>;
|
package/dist/cjs/queries.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ export declare function queryByScope({ archived, ascending, deleted, limit, mode
|
|
|
18
18
|
* Query a single entity by human-friendly alias
|
|
19
19
|
* Uses indexAlias GSI
|
|
20
20
|
*/
|
|
21
|
-
export declare const queryByAlias: import("@jaypie/fabric").Service<Record<string, unknown>, StorableEntity | null>;
|
|
21
|
+
export declare const queryByAlias: import("@jaypie/fabric").Service<Record<string, unknown>, StorableEntity | null, StorableEntity | null>;
|
|
22
22
|
/**
|
|
23
23
|
* Query parameters for queryByClass
|
|
24
24
|
*/
|
|
@@ -55,5 +55,5 @@ export declare function queryByType({ archived, ascending, deleted, limit, model
|
|
|
55
55
|
* Query a single entity by external ID
|
|
56
56
|
* Uses indexXid GSI
|
|
57
57
|
*/
|
|
58
|
-
export declare const queryByXid: import("@jaypie/fabric").Service<Record<string, unknown>, StorableEntity | null>;
|
|
58
|
+
export declare const queryByXid: import("@jaypie/fabric").Service<Record<string, unknown>, StorableEntity | null, StorableEntity | null>;
|
|
59
59
|
export {};
|
package/dist/esm/entities.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ 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/fabric").Service<Record<string, unknown>, StorableEntity | null>;
|
|
5
|
+
export declare const getEntity: import("@jaypie/fabric").Service<Record<string, unknown>, StorableEntity | null, StorableEntity | null>;
|
|
6
6
|
/**
|
|
7
7
|
* Put (create or replace) an entity
|
|
8
8
|
* Auto-populates GSI index keys via indexEntity
|
|
@@ -27,14 +27,14 @@ export declare function updateEntity({ entity, }: {
|
|
|
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/fabric").Service<Record<string, unknown>, boolean>;
|
|
30
|
+
export declare const deleteEntity: import("@jaypie/fabric").Service<Record<string, unknown>, boolean, 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/fabric").Service<Record<string, unknown>, boolean>;
|
|
35
|
+
export declare const archiveEntity: import("@jaypie/fabric").Service<Record<string, unknown>, boolean, 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/fabric").Service<Record<string, unknown>, boolean>;
|
|
40
|
+
export declare const destroyEntity: import("@jaypie/fabric").Service<Record<string, unknown>, boolean, boolean>;
|
|
@@ -9,4 +9,12 @@ export declare const dockerComposeHandler: import("@jaypie/fabric").Service<Reco
|
|
|
9
9
|
DYNAMODB_ENDPOINT: string;
|
|
10
10
|
DYNAMODB_TABLE_NAME: unknown;
|
|
11
11
|
};
|
|
12
|
+
}, {
|
|
13
|
+
dockerCompose: string;
|
|
14
|
+
envFile: string;
|
|
15
|
+
envVars: {
|
|
16
|
+
AWS_REGION: string;
|
|
17
|
+
DYNAMODB_ENDPOINT: string;
|
|
18
|
+
DYNAMODB_TABLE_NAME: unknown;
|
|
19
|
+
};
|
|
12
20
|
}>;
|
package/dist/esm/queries.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ export declare function queryByScope({ archived, ascending, deleted, limit, mode
|
|
|
18
18
|
* Query a single entity by human-friendly alias
|
|
19
19
|
* Uses indexAlias GSI
|
|
20
20
|
*/
|
|
21
|
-
export declare const queryByAlias: import("@jaypie/fabric").Service<Record<string, unknown>, StorableEntity | null>;
|
|
21
|
+
export declare const queryByAlias: import("@jaypie/fabric").Service<Record<string, unknown>, StorableEntity | null, StorableEntity | null>;
|
|
22
22
|
/**
|
|
23
23
|
* Query parameters for queryByClass
|
|
24
24
|
*/
|
|
@@ -55,5 +55,5 @@ export declare function queryByType({ archived, ascending, deleted, limit, model
|
|
|
55
55
|
* Query a single entity by external ID
|
|
56
56
|
* Uses indexXid GSI
|
|
57
57
|
*/
|
|
58
|
-
export declare const queryByXid: import("@jaypie/fabric").Service<Record<string, unknown>, StorableEntity | null>;
|
|
58
|
+
export declare const queryByXid: import("@jaypie/fabric").Service<Record<string, unknown>, StorableEntity | null, StorableEntity | null>;
|
|
59
59
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jaypie/dynamodb",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/finlaysonstudio/jaypie.git"
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@aws-sdk/client-dynamodb": "^3.726.1",
|
|
43
43
|
"@aws-sdk/lib-dynamodb": "^3.726.1",
|
|
44
|
-
"@jaypie/fabric": "
|
|
44
|
+
"@jaypie/fabric": "*"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@rollup/plugin-typescript": "^12.1.2",
|
|
@@ -49,9 +49,9 @@
|
|
|
49
49
|
"typescript": "^5.3.3"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
|
-
"@jaypie/errors": "
|
|
53
|
-
"@jaypie/kit": "
|
|
54
|
-
"@jaypie/logger": "
|
|
52
|
+
"@jaypie/errors": "*",
|
|
53
|
+
"@jaypie/kit": "*",
|
|
54
|
+
"@jaypie/logger": "*",
|
|
55
55
|
"@modelcontextprotocol/sdk": ">=1.0.0"
|
|
56
56
|
},
|
|
57
57
|
"peerDependenciesMeta": {
|