s3db.js 12.0.0 → 12.1.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/s3db.cjs.js +454 -3833
- package/dist/s3db.cjs.js.map +1 -1
- package/dist/s3db.d.ts +9 -1
- package/dist/s3db.es.js +451 -3830
- package/dist/s3db.es.js.map +1 -1
- package/mcp/entrypoint.js +91 -57
- package/package.json +15 -15
- package/src/client.class.js +40 -5
- package/src/concerns/plugin-storage.js +67 -37
- package/src/plugins/api/index.js +5 -0
- package/src/plugins/api/server.js +4 -0
- package/src/plugins/plugin.class.js +5 -0
- package/src/plugins/relation.plugin.js +183 -47
- package/src/plugins/replicator.plugin.js +2 -1
- package/src/plugins/ttl.plugin.js +478 -303
- package/src/resource.class.js +309 -34
- package/src/s3db.d.ts +9 -1
- package/dist/s3db-cli.js +0 -55543
package/dist/s3db.d.ts
CHANGED
|
@@ -723,6 +723,8 @@ declare module 's3db.js' {
|
|
|
723
723
|
get(id: string): Promise<any>;
|
|
724
724
|
exists(id: string): Promise<boolean>;
|
|
725
725
|
update(id: string, attributes: any): Promise<any>;
|
|
726
|
+
patch(id: string, fields: any, options?: { partition?: string; partitionValues?: Record<string, any> }): Promise<any>;
|
|
727
|
+
replace(id: string, fullData: any, options?: { partition?: string; partitionValues?: Record<string, any> }): Promise<any>;
|
|
726
728
|
upsert(data: any): Promise<any>;
|
|
727
729
|
delete(id: string): Promise<void>;
|
|
728
730
|
deleteMany(ids: string[]): Promise<void>;
|
|
@@ -841,7 +843,13 @@ declare module 's3db.js' {
|
|
|
841
843
|
}): Promise<any>;
|
|
842
844
|
getObject(key: string): Promise<any>;
|
|
843
845
|
headObject(key: string): Promise<any>;
|
|
844
|
-
copyObject(options: {
|
|
846
|
+
copyObject(options: {
|
|
847
|
+
from: string;
|
|
848
|
+
to: string;
|
|
849
|
+
metadata?: Record<string, any>;
|
|
850
|
+
metadataDirective?: 'COPY' | 'REPLACE';
|
|
851
|
+
contentType?: string;
|
|
852
|
+
}): Promise<any>;
|
|
845
853
|
exists(key: string): Promise<boolean>;
|
|
846
854
|
deleteObject(key: string): Promise<any>;
|
|
847
855
|
deleteObjects(keys: string[]): Promise<{ deleted: any[]; notFound: any[] }>;
|