@aeriajs/types 0.0.117 → 0.0.118
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/functions.d.ts +5 -3
- package/package.json +1 -1
package/dist/functions.d.ts
CHANGED
|
@@ -65,7 +65,9 @@ export type InsertPayload<TDocument extends WithId<unknown>> = {
|
|
|
65
65
|
export type RemovePayload<TDocument extends WithId<unknown>> = {
|
|
66
66
|
filters: Filters<TDocument>;
|
|
67
67
|
};
|
|
68
|
-
export type RemoveAllPayload
|
|
68
|
+
export type RemoveAllPayload = {
|
|
69
|
+
filters: (ObjectId | string)[];
|
|
70
|
+
};
|
|
69
71
|
export type RemoveFilePayload = UploadAuxProps & {
|
|
70
72
|
filters: {
|
|
71
73
|
_id: ObjectId | string;
|
|
@@ -88,7 +90,7 @@ export type CollectionFunctions<TSchema extends JsonSchema = JsonSchema> = Schem
|
|
|
88
90
|
keepTempIds: true;
|
|
89
91
|
}>>) => Promise<InsertReturnType<InferredDocument>>;
|
|
90
92
|
remove: (payload: RemovePayload<InferredDocument>) => Promise<RemoveReturnType<InferredDocument>>;
|
|
91
|
-
removeAll: (payload: RemoveAllPayload
|
|
93
|
+
removeAll: (payload: RemoveAllPayload) => Promise<unknown>;
|
|
92
94
|
removeFile: (payload: RemoveFilePayload) => Promise<unknown>;
|
|
93
95
|
} : never : never;
|
|
94
96
|
export type CollectionFunctionsSDK<TSchema extends JsonSchema = JsonSchema> = SchemaWithId<TSchema> extends infer InferredDocument ? InferredDocument extends WithId<unknown> ? {
|
|
@@ -99,7 +101,7 @@ export type CollectionFunctionsSDK<TSchema extends JsonSchema = JsonSchema> = Sc
|
|
|
99
101
|
keepTempIds: true;
|
|
100
102
|
}>>) => Promise<WithACErrors<InsertReturnType<InferredDocument>>>;
|
|
101
103
|
remove: (payload: RemovePayload<InferredDocument>) => Promise<WithACErrors<RemoveReturnType<InferredDocument>>>;
|
|
102
|
-
removeAll: (payload: RemoveAllPayload
|
|
104
|
+
removeAll: (payload: RemoveAllPayload) => Promise<unknown>;
|
|
103
105
|
removeFile: (payload: RemoveFilePayload) => Promise<unknown>;
|
|
104
106
|
} : never : never;
|
|
105
107
|
export {};
|