@aeriajs/builtins 0.0.57 → 0.0.58

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.
@@ -141,7 +141,154 @@ export declare const file: Omit<import("@aeriajs/types").Collection<{
141
141
  };
142
142
  };
143
143
  functions: {
144
- readonly get: <TContext extends import("@aeriajs/types").Context>(payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<TContext["description"]>>, context: TContext extends import("@aeriajs/types").Context<any> ? TContext : never, options?: import("@aeriajs/api").GetOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<TContext["description"]> | null>;
144
+ readonly get: (payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<{
145
+ readonly $id: "file";
146
+ readonly owned: "always";
147
+ readonly presets: readonly ["owned"];
148
+ readonly indexes: readonly ["filename", "link", "mime"];
149
+ readonly properties: {
150
+ readonly mime: {
151
+ readonly type: "string";
152
+ };
153
+ readonly size: {
154
+ readonly type: "number";
155
+ };
156
+ readonly last_modified: {
157
+ readonly type: "string";
158
+ readonly format: "date-time";
159
+ };
160
+ readonly filename: {
161
+ readonly type: "string";
162
+ };
163
+ readonly absolute_path: {
164
+ readonly type: "string";
165
+ };
166
+ readonly relative_path: {
167
+ readonly type: "string";
168
+ };
169
+ readonly immutable: {
170
+ readonly type: "boolean";
171
+ };
172
+ readonly link: {
173
+ readonly getter: (value: any) => Promise<string>;
174
+ };
175
+ readonly download_link: {
176
+ readonly getter: (value: any) => Promise<string>;
177
+ };
178
+ };
179
+ readonly actions: {
180
+ readonly deleteAll: {
181
+ readonly name: "Remover";
182
+ readonly ask: true;
183
+ readonly selection: true;
184
+ };
185
+ };
186
+ readonly individualActions: {
187
+ readonly remove: {
188
+ readonly name: "Remover";
189
+ readonly icon: "trash";
190
+ readonly ask: true;
191
+ };
192
+ };
193
+ }>>, context: import("@aeriajs/types").Context<{
194
+ readonly $id: "file";
195
+ readonly owned: "always";
196
+ readonly presets: readonly ["owned"];
197
+ readonly indexes: readonly ["filename", "link", "mime"];
198
+ readonly properties: {
199
+ readonly mime: {
200
+ readonly type: "string";
201
+ };
202
+ readonly size: {
203
+ readonly type: "number";
204
+ };
205
+ readonly last_modified: {
206
+ readonly type: "string";
207
+ readonly format: "date-time";
208
+ };
209
+ readonly filename: {
210
+ readonly type: "string";
211
+ };
212
+ readonly absolute_path: {
213
+ readonly type: "string";
214
+ };
215
+ readonly relative_path: {
216
+ readonly type: "string";
217
+ };
218
+ readonly immutable: {
219
+ readonly type: "boolean";
220
+ };
221
+ readonly link: {
222
+ readonly getter: (value: any) => Promise<string>;
223
+ };
224
+ readonly download_link: {
225
+ readonly getter: (value: any) => Promise<string>;
226
+ };
227
+ };
228
+ readonly actions: {
229
+ readonly deleteAll: {
230
+ readonly name: "Remover";
231
+ readonly ask: true;
232
+ readonly selection: true;
233
+ };
234
+ };
235
+ readonly individualActions: {
236
+ readonly remove: {
237
+ readonly name: "Remover";
238
+ readonly icon: "trash";
239
+ readonly ask: true;
240
+ };
241
+ };
242
+ }>, options?: import("@aeriajs/api").GetOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<{
243
+ readonly $id: "file";
244
+ readonly owned: "always";
245
+ readonly presets: readonly ["owned"];
246
+ readonly indexes: readonly ["filename", "link", "mime"];
247
+ readonly properties: {
248
+ readonly mime: {
249
+ readonly type: "string";
250
+ };
251
+ readonly size: {
252
+ readonly type: "number";
253
+ };
254
+ readonly last_modified: {
255
+ readonly type: "string";
256
+ readonly format: "date-time";
257
+ };
258
+ readonly filename: {
259
+ readonly type: "string";
260
+ };
261
+ readonly absolute_path: {
262
+ readonly type: "string";
263
+ };
264
+ readonly relative_path: {
265
+ readonly type: "string";
266
+ };
267
+ readonly immutable: {
268
+ readonly type: "boolean";
269
+ };
270
+ readonly link: {
271
+ readonly getter: (value: any) => Promise<string>;
272
+ };
273
+ readonly download_link: {
274
+ readonly getter: (value: any) => Promise<string>;
275
+ };
276
+ };
277
+ readonly actions: {
278
+ readonly deleteAll: {
279
+ readonly name: "Remover";
280
+ readonly ask: true;
281
+ readonly selection: true;
282
+ };
283
+ };
284
+ readonly individualActions: {
285
+ readonly remove: {
286
+ readonly name: "Remover";
287
+ readonly icon: "trash";
288
+ readonly ask: true;
289
+ };
290
+ };
291
+ }> | null>;
145
292
  readonly insert: (payload: {
146
293
  what: {
147
294
  content: string;
@@ -600,7 +747,154 @@ export declare const file: Omit<import("@aeriajs/types").Collection<{
600
747
  };
601
748
  };
602
749
  functions: {
603
- readonly get: <TContext extends import("@aeriajs/types").Context>(payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<TContext["description"]>>, context: TContext extends import("@aeriajs/types").Context<any> ? TContext : never, options?: import("@aeriajs/api").GetOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<TContext["description"]> | null>;
750
+ readonly get: (payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<{
751
+ readonly $id: "file";
752
+ readonly owned: "always";
753
+ readonly presets: readonly ["owned"];
754
+ readonly indexes: readonly ["filename", "link", "mime"];
755
+ readonly properties: {
756
+ readonly mime: {
757
+ readonly type: "string";
758
+ };
759
+ readonly size: {
760
+ readonly type: "number";
761
+ };
762
+ readonly last_modified: {
763
+ readonly type: "string";
764
+ readonly format: "date-time";
765
+ };
766
+ readonly filename: {
767
+ readonly type: "string";
768
+ };
769
+ readonly absolute_path: {
770
+ readonly type: "string";
771
+ };
772
+ readonly relative_path: {
773
+ readonly type: "string";
774
+ };
775
+ readonly immutable: {
776
+ readonly type: "boolean";
777
+ };
778
+ readonly link: {
779
+ readonly getter: (value: any) => Promise<string>;
780
+ };
781
+ readonly download_link: {
782
+ readonly getter: (value: any) => Promise<string>;
783
+ };
784
+ };
785
+ readonly actions: {
786
+ readonly deleteAll: {
787
+ readonly name: "Remover";
788
+ readonly ask: true;
789
+ readonly selection: true;
790
+ };
791
+ };
792
+ readonly individualActions: {
793
+ readonly remove: {
794
+ readonly name: "Remover";
795
+ readonly icon: "trash";
796
+ readonly ask: true;
797
+ };
798
+ };
799
+ }>>, context: import("@aeriajs/types").Context<{
800
+ readonly $id: "file";
801
+ readonly owned: "always";
802
+ readonly presets: readonly ["owned"];
803
+ readonly indexes: readonly ["filename", "link", "mime"];
804
+ readonly properties: {
805
+ readonly mime: {
806
+ readonly type: "string";
807
+ };
808
+ readonly size: {
809
+ readonly type: "number";
810
+ };
811
+ readonly last_modified: {
812
+ readonly type: "string";
813
+ readonly format: "date-time";
814
+ };
815
+ readonly filename: {
816
+ readonly type: "string";
817
+ };
818
+ readonly absolute_path: {
819
+ readonly type: "string";
820
+ };
821
+ readonly relative_path: {
822
+ readonly type: "string";
823
+ };
824
+ readonly immutable: {
825
+ readonly type: "boolean";
826
+ };
827
+ readonly link: {
828
+ readonly getter: (value: any) => Promise<string>;
829
+ };
830
+ readonly download_link: {
831
+ readonly getter: (value: any) => Promise<string>;
832
+ };
833
+ };
834
+ readonly actions: {
835
+ readonly deleteAll: {
836
+ readonly name: "Remover";
837
+ readonly ask: true;
838
+ readonly selection: true;
839
+ };
840
+ };
841
+ readonly individualActions: {
842
+ readonly remove: {
843
+ readonly name: "Remover";
844
+ readonly icon: "trash";
845
+ readonly ask: true;
846
+ };
847
+ };
848
+ }>, options?: import("@aeriajs/api").GetOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<{
849
+ readonly $id: "file";
850
+ readonly owned: "always";
851
+ readonly presets: readonly ["owned"];
852
+ readonly indexes: readonly ["filename", "link", "mime"];
853
+ readonly properties: {
854
+ readonly mime: {
855
+ readonly type: "string";
856
+ };
857
+ readonly size: {
858
+ readonly type: "number";
859
+ };
860
+ readonly last_modified: {
861
+ readonly type: "string";
862
+ readonly format: "date-time";
863
+ };
864
+ readonly filename: {
865
+ readonly type: "string";
866
+ };
867
+ readonly absolute_path: {
868
+ readonly type: "string";
869
+ };
870
+ readonly relative_path: {
871
+ readonly type: "string";
872
+ };
873
+ readonly immutable: {
874
+ readonly type: "boolean";
875
+ };
876
+ readonly link: {
877
+ readonly getter: (value: any) => Promise<string>;
878
+ };
879
+ readonly download_link: {
880
+ readonly getter: (value: any) => Promise<string>;
881
+ };
882
+ };
883
+ readonly actions: {
884
+ readonly deleteAll: {
885
+ readonly name: "Remover";
886
+ readonly ask: true;
887
+ readonly selection: true;
888
+ };
889
+ };
890
+ readonly individualActions: {
891
+ readonly remove: {
892
+ readonly name: "Remover";
893
+ readonly icon: "trash";
894
+ readonly ask: true;
895
+ };
896
+ };
897
+ }> | null>;
604
898
  readonly insert: (payload: {
605
899
  what: {
606
900
  content: string;