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.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: { from: string; to: string }): Promise<any>;
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[] }>;