@aeriajs/builtins 0.0.12 → 0.0.14
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/collections/file/index.d.ts +6 -486
- package/dist/collections/log/index.d.ts +6 -191
- package/dist/collections/resourceUsage/index.d.ts +2 -15
- package/dist/collections/user/index.d.ts +9 -1944
- package/dist/functions/describe.js +1 -2
- package/dist/functions/describe.mjs +5 -6
- package/dist/index.d.ts +556 -3169
- package/package.json +7 -7
|
@@ -85,36 +85,8 @@ export declare const tempFile: Omit<import("@aeriajs/types").Collection<{
|
|
|
85
85
|
};
|
|
86
86
|
};
|
|
87
87
|
};
|
|
88
|
-
functions: {
|
|
89
|
-
|
|
90
|
-
readonly $id: "tempFile";
|
|
91
|
-
readonly temporary: {
|
|
92
|
-
readonly index: "created_at";
|
|
93
|
-
readonly expireAfterSeconds: 3600;
|
|
94
|
-
};
|
|
95
|
-
readonly properties: {
|
|
96
|
-
readonly created_at: {
|
|
97
|
-
readonly type: "string";
|
|
98
|
-
readonly format: "date-time";
|
|
99
|
-
};
|
|
100
|
-
readonly absolute_path: {
|
|
101
|
-
readonly type: "string";
|
|
102
|
-
};
|
|
103
|
-
readonly size: {
|
|
104
|
-
readonly type: "number";
|
|
105
|
-
};
|
|
106
|
-
readonly mime: {
|
|
107
|
-
readonly type: "number";
|
|
108
|
-
};
|
|
109
|
-
readonly collection: {
|
|
110
|
-
readonly type: "string";
|
|
111
|
-
};
|
|
112
|
-
readonly filename: {
|
|
113
|
-
readonly type: "string";
|
|
114
|
-
};
|
|
115
|
-
};
|
|
116
|
-
}>, ...args: any[]) => any;
|
|
117
|
-
};
|
|
88
|
+
functions: {};
|
|
89
|
+
functionContracts: {};
|
|
118
90
|
};
|
|
119
91
|
export declare const file: Omit<import("@aeriajs/types").Collection<{
|
|
120
92
|
description: {
|
|
@@ -266,7 +238,7 @@ export declare const file: Omit<import("@aeriajs/types").Collection<{
|
|
|
266
238
|
readonly ask: true;
|
|
267
239
|
};
|
|
268
240
|
};
|
|
269
|
-
}>, options?: import("@aeriajs/api").GetOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<{
|
|
241
|
+
}, any>, options?: import("@aeriajs/api").GetOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<{
|
|
270
242
|
readonly $id: "file";
|
|
271
243
|
readonly owned: "always";
|
|
272
244
|
readonly presets: readonly ["owned"];
|
|
@@ -724,460 +696,8 @@ export declare const file: Omit<import("@aeriajs/types").Collection<{
|
|
|
724
696
|
};
|
|
725
697
|
};
|
|
726
698
|
};
|
|
727
|
-
functions:
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
readonly owned: "always";
|
|
731
|
-
readonly presets: readonly ["owned"];
|
|
732
|
-
readonly indexes: readonly ["filename", "link", "mime"];
|
|
733
|
-
readonly properties: {
|
|
734
|
-
readonly mime: {
|
|
735
|
-
readonly type: "string";
|
|
736
|
-
};
|
|
737
|
-
readonly size: {
|
|
738
|
-
readonly type: "number";
|
|
739
|
-
};
|
|
740
|
-
readonly last_modified: {
|
|
741
|
-
readonly type: "string";
|
|
742
|
-
readonly format: "date-time";
|
|
743
|
-
};
|
|
744
|
-
readonly filename: {
|
|
745
|
-
readonly type: "string";
|
|
746
|
-
};
|
|
747
|
-
readonly absolute_path: {
|
|
748
|
-
readonly type: "string";
|
|
749
|
-
};
|
|
750
|
-
readonly relative_path: {
|
|
751
|
-
readonly type: "string";
|
|
752
|
-
};
|
|
753
|
-
readonly immutable: {
|
|
754
|
-
readonly type: "boolean";
|
|
755
|
-
};
|
|
756
|
-
readonly link: {
|
|
757
|
-
readonly getter: (value: any) => Promise<string>;
|
|
758
|
-
};
|
|
759
|
-
readonly download_link: {
|
|
760
|
-
readonly getter: (value: any) => Promise<string>;
|
|
761
|
-
};
|
|
762
|
-
};
|
|
763
|
-
readonly actions: {
|
|
764
|
-
readonly deleteAll: {
|
|
765
|
-
readonly name: "Remover";
|
|
766
|
-
readonly ask: true;
|
|
767
|
-
readonly selection: true;
|
|
768
|
-
};
|
|
769
|
-
};
|
|
770
|
-
readonly individualActions: {
|
|
771
|
-
readonly remove: {
|
|
772
|
-
readonly name: "Remover";
|
|
773
|
-
readonly icon: "trash";
|
|
774
|
-
readonly ask: true;
|
|
775
|
-
};
|
|
776
|
-
};
|
|
777
|
-
}>>, context: import("@aeriajs/types").Context<{
|
|
778
|
-
readonly $id: "file";
|
|
779
|
-
readonly owned: "always";
|
|
780
|
-
readonly presets: readonly ["owned"];
|
|
781
|
-
readonly indexes: readonly ["filename", "link", "mime"];
|
|
782
|
-
readonly properties: {
|
|
783
|
-
readonly mime: {
|
|
784
|
-
readonly type: "string";
|
|
785
|
-
};
|
|
786
|
-
readonly size: {
|
|
787
|
-
readonly type: "number";
|
|
788
|
-
};
|
|
789
|
-
readonly last_modified: {
|
|
790
|
-
readonly type: "string";
|
|
791
|
-
readonly format: "date-time";
|
|
792
|
-
};
|
|
793
|
-
readonly filename: {
|
|
794
|
-
readonly type: "string";
|
|
795
|
-
};
|
|
796
|
-
readonly absolute_path: {
|
|
797
|
-
readonly type: "string";
|
|
798
|
-
};
|
|
799
|
-
readonly relative_path: {
|
|
800
|
-
readonly type: "string";
|
|
801
|
-
};
|
|
802
|
-
readonly immutable: {
|
|
803
|
-
readonly type: "boolean";
|
|
804
|
-
};
|
|
805
|
-
readonly link: {
|
|
806
|
-
readonly getter: (value: any) => Promise<string>;
|
|
807
|
-
};
|
|
808
|
-
readonly download_link: {
|
|
809
|
-
readonly getter: (value: any) => Promise<string>;
|
|
810
|
-
};
|
|
811
|
-
};
|
|
812
|
-
readonly actions: {
|
|
813
|
-
readonly deleteAll: {
|
|
814
|
-
readonly name: "Remover";
|
|
815
|
-
readonly ask: true;
|
|
816
|
-
readonly selection: true;
|
|
817
|
-
};
|
|
818
|
-
};
|
|
819
|
-
readonly individualActions: {
|
|
820
|
-
readonly remove: {
|
|
821
|
-
readonly name: "Remover";
|
|
822
|
-
readonly icon: "trash";
|
|
823
|
-
readonly ask: true;
|
|
824
|
-
};
|
|
825
|
-
};
|
|
826
|
-
}>, options?: import("@aeriajs/api").GetOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<{
|
|
827
|
-
readonly $id: "file";
|
|
828
|
-
readonly owned: "always";
|
|
829
|
-
readonly presets: readonly ["owned"];
|
|
830
|
-
readonly indexes: readonly ["filename", "link", "mime"];
|
|
831
|
-
readonly properties: {
|
|
832
|
-
readonly mime: {
|
|
833
|
-
readonly type: "string";
|
|
834
|
-
};
|
|
835
|
-
readonly size: {
|
|
836
|
-
readonly type: "number";
|
|
837
|
-
};
|
|
838
|
-
readonly last_modified: {
|
|
839
|
-
readonly type: "string";
|
|
840
|
-
readonly format: "date-time";
|
|
841
|
-
};
|
|
842
|
-
readonly filename: {
|
|
843
|
-
readonly type: "string";
|
|
844
|
-
};
|
|
845
|
-
readonly absolute_path: {
|
|
846
|
-
readonly type: "string";
|
|
847
|
-
};
|
|
848
|
-
readonly relative_path: {
|
|
849
|
-
readonly type: "string";
|
|
850
|
-
};
|
|
851
|
-
readonly immutable: {
|
|
852
|
-
readonly type: "boolean";
|
|
853
|
-
};
|
|
854
|
-
readonly link: {
|
|
855
|
-
readonly getter: (value: any) => Promise<string>;
|
|
856
|
-
};
|
|
857
|
-
readonly download_link: {
|
|
858
|
-
readonly getter: (value: any) => Promise<string>;
|
|
859
|
-
};
|
|
860
|
-
};
|
|
861
|
-
readonly actions: {
|
|
862
|
-
readonly deleteAll: {
|
|
863
|
-
readonly name: "Remover";
|
|
864
|
-
readonly ask: true;
|
|
865
|
-
readonly selection: true;
|
|
866
|
-
};
|
|
867
|
-
};
|
|
868
|
-
readonly individualActions: {
|
|
869
|
-
readonly remove: {
|
|
870
|
-
readonly name: "Remover";
|
|
871
|
-
readonly icon: "trash";
|
|
872
|
-
readonly ask: true;
|
|
873
|
-
};
|
|
874
|
-
};
|
|
875
|
-
}> | null>;
|
|
876
|
-
readonly insert: (payload: {
|
|
877
|
-
what: {
|
|
878
|
-
content: string;
|
|
879
|
-
} & Pick<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<{
|
|
880
|
-
readonly $id: "file";
|
|
881
|
-
readonly owned: "always";
|
|
882
|
-
readonly presets: readonly ["owned"];
|
|
883
|
-
readonly indexes: readonly ["filename", "link", "mime"];
|
|
884
|
-
readonly properties: {
|
|
885
|
-
readonly mime: {
|
|
886
|
-
readonly type: "string";
|
|
887
|
-
};
|
|
888
|
-
readonly size: {
|
|
889
|
-
readonly type: "number";
|
|
890
|
-
};
|
|
891
|
-
readonly last_modified: {
|
|
892
|
-
readonly type: "string";
|
|
893
|
-
readonly format: "date-time";
|
|
894
|
-
};
|
|
895
|
-
readonly filename: {
|
|
896
|
-
readonly type: "string";
|
|
897
|
-
};
|
|
898
|
-
readonly absolute_path: {
|
|
899
|
-
readonly type: "string";
|
|
900
|
-
};
|
|
901
|
-
readonly relative_path: {
|
|
902
|
-
readonly type: "string";
|
|
903
|
-
};
|
|
904
|
-
readonly immutable: {
|
|
905
|
-
readonly type: "boolean";
|
|
906
|
-
};
|
|
907
|
-
readonly link: {
|
|
908
|
-
readonly getter: (value: any) => Promise<string>;
|
|
909
|
-
};
|
|
910
|
-
readonly download_link: {
|
|
911
|
-
readonly getter: (value: any) => Promise<string>;
|
|
912
|
-
};
|
|
913
|
-
};
|
|
914
|
-
readonly actions: {
|
|
915
|
-
readonly deleteAll: {
|
|
916
|
-
readonly name: "Remover";
|
|
917
|
-
readonly ask: true;
|
|
918
|
-
readonly selection: true;
|
|
919
|
-
};
|
|
920
|
-
};
|
|
921
|
-
readonly individualActions: {
|
|
922
|
-
readonly remove: {
|
|
923
|
-
readonly name: "Remover";
|
|
924
|
-
readonly icon: "trash";
|
|
925
|
-
readonly ask: true;
|
|
926
|
-
};
|
|
927
|
-
};
|
|
928
|
-
}>>, "filename" | "absolute_path" | "_id" | "owner">;
|
|
929
|
-
}, context: import("@aeriajs/types").Context<{
|
|
930
|
-
readonly $id: "file";
|
|
931
|
-
readonly owned: "always";
|
|
932
|
-
readonly presets: readonly ["owned"];
|
|
933
|
-
readonly indexes: readonly ["filename", "link", "mime"];
|
|
934
|
-
readonly properties: {
|
|
935
|
-
readonly mime: {
|
|
936
|
-
readonly type: "string";
|
|
937
|
-
};
|
|
938
|
-
readonly size: {
|
|
939
|
-
readonly type: "number";
|
|
940
|
-
};
|
|
941
|
-
readonly last_modified: {
|
|
942
|
-
readonly type: "string";
|
|
943
|
-
readonly format: "date-time";
|
|
944
|
-
};
|
|
945
|
-
readonly filename: {
|
|
946
|
-
readonly type: "string";
|
|
947
|
-
};
|
|
948
|
-
readonly absolute_path: {
|
|
949
|
-
readonly type: "string";
|
|
950
|
-
};
|
|
951
|
-
readonly relative_path: {
|
|
952
|
-
readonly type: "string";
|
|
953
|
-
};
|
|
954
|
-
readonly immutable: {
|
|
955
|
-
readonly type: "boolean";
|
|
956
|
-
};
|
|
957
|
-
readonly link: {
|
|
958
|
-
readonly getter: (value: any) => Promise<string>;
|
|
959
|
-
};
|
|
960
|
-
readonly download_link: {
|
|
961
|
-
readonly getter: (value: any) => Promise<string>;
|
|
962
|
-
};
|
|
963
|
-
};
|
|
964
|
-
readonly actions: {
|
|
965
|
-
readonly deleteAll: {
|
|
966
|
-
readonly name: "Remover";
|
|
967
|
-
readonly ask: true;
|
|
968
|
-
readonly selection: true;
|
|
969
|
-
};
|
|
970
|
-
};
|
|
971
|
-
readonly individualActions: {
|
|
972
|
-
readonly remove: {
|
|
973
|
-
readonly name: "Remover";
|
|
974
|
-
readonly icon: "trash";
|
|
975
|
-
readonly ask: true;
|
|
976
|
-
};
|
|
977
|
-
};
|
|
978
|
-
}>) => Promise<import("@aeriajs/types").Right<any> | import("@aeriajs/types").Left<import("@aeriajs/types").ACErrors | import("@aeriajs/types").ValidationError>>;
|
|
979
|
-
readonly download: (payload: {
|
|
980
|
-
fileId: string;
|
|
981
|
-
options: readonly ("download" | "picture")[];
|
|
982
|
-
noHeaders?: boolean | undefined;
|
|
983
|
-
}, context: import("@aeriajs/types").Context<{
|
|
984
|
-
readonly $id: "file";
|
|
985
|
-
readonly owned: "always";
|
|
986
|
-
readonly presets: readonly ["owned"];
|
|
987
|
-
readonly indexes: readonly ["filename", "link", "mime"];
|
|
988
|
-
readonly properties: {
|
|
989
|
-
readonly mime: {
|
|
990
|
-
readonly type: "string";
|
|
991
|
-
};
|
|
992
|
-
readonly size: {
|
|
993
|
-
readonly type: "number";
|
|
994
|
-
};
|
|
995
|
-
readonly last_modified: {
|
|
996
|
-
readonly type: "string";
|
|
997
|
-
readonly format: "date-time";
|
|
998
|
-
};
|
|
999
|
-
readonly filename: {
|
|
1000
|
-
readonly type: "string";
|
|
1001
|
-
};
|
|
1002
|
-
readonly absolute_path: {
|
|
1003
|
-
readonly type: "string";
|
|
1004
|
-
};
|
|
1005
|
-
readonly relative_path: {
|
|
1006
|
-
readonly type: "string";
|
|
1007
|
-
};
|
|
1008
|
-
readonly immutable: {
|
|
1009
|
-
readonly type: "boolean";
|
|
1010
|
-
};
|
|
1011
|
-
readonly link: {
|
|
1012
|
-
readonly getter: (value: any) => Promise<string>;
|
|
1013
|
-
};
|
|
1014
|
-
readonly download_link: {
|
|
1015
|
-
readonly getter: (value: any) => Promise<string>;
|
|
1016
|
-
};
|
|
1017
|
-
};
|
|
1018
|
-
readonly actions: {
|
|
1019
|
-
readonly deleteAll: {
|
|
1020
|
-
readonly name: "Remover";
|
|
1021
|
-
readonly ask: true;
|
|
1022
|
-
readonly selection: true;
|
|
1023
|
-
};
|
|
1024
|
-
};
|
|
1025
|
-
readonly individualActions: {
|
|
1026
|
-
readonly remove: {
|
|
1027
|
-
readonly name: "Remover";
|
|
1028
|
-
readonly icon: "trash";
|
|
1029
|
-
readonly ask: true;
|
|
1030
|
-
};
|
|
1031
|
-
};
|
|
1032
|
-
}>) => Promise<import("@aeriajs/types").Left<import("./download.js").FileReadError.DocumentNotFound> | import("@aeriajs/types").Left<import("./download.js").FileReadError.FileNotFound> | import("fs").ReadStream>;
|
|
1033
|
-
readonly remove: (payload: import("@aeriajs/types").RemovePayload<import("@aeriajs/types").SchemaWithId<{
|
|
1034
|
-
readonly $id: "file";
|
|
1035
|
-
readonly owned: "always";
|
|
1036
|
-
readonly presets: readonly ["owned"];
|
|
1037
|
-
readonly indexes: readonly ["filename", "link", "mime"];
|
|
1038
|
-
readonly properties: {
|
|
1039
|
-
readonly mime: {
|
|
1040
|
-
readonly type: "string";
|
|
1041
|
-
};
|
|
1042
|
-
readonly size: {
|
|
1043
|
-
readonly type: "number";
|
|
1044
|
-
};
|
|
1045
|
-
readonly last_modified: {
|
|
1046
|
-
readonly type: "string";
|
|
1047
|
-
readonly format: "date-time";
|
|
1048
|
-
};
|
|
1049
|
-
readonly filename: {
|
|
1050
|
-
readonly type: "string";
|
|
1051
|
-
};
|
|
1052
|
-
readonly absolute_path: {
|
|
1053
|
-
readonly type: "string";
|
|
1054
|
-
};
|
|
1055
|
-
readonly relative_path: {
|
|
1056
|
-
readonly type: "string";
|
|
1057
|
-
};
|
|
1058
|
-
readonly immutable: {
|
|
1059
|
-
readonly type: "boolean";
|
|
1060
|
-
};
|
|
1061
|
-
readonly link: {
|
|
1062
|
-
readonly getter: (value: any) => Promise<string>;
|
|
1063
|
-
};
|
|
1064
|
-
readonly download_link: {
|
|
1065
|
-
readonly getter: (value: any) => Promise<string>;
|
|
1066
|
-
};
|
|
1067
|
-
};
|
|
1068
|
-
readonly actions: {
|
|
1069
|
-
readonly deleteAll: {
|
|
1070
|
-
readonly name: "Remover";
|
|
1071
|
-
readonly ask: true;
|
|
1072
|
-
readonly selection: true;
|
|
1073
|
-
};
|
|
1074
|
-
};
|
|
1075
|
-
readonly individualActions: {
|
|
1076
|
-
readonly remove: {
|
|
1077
|
-
readonly name: "Remover";
|
|
1078
|
-
readonly icon: "trash";
|
|
1079
|
-
readonly ask: true;
|
|
1080
|
-
};
|
|
1081
|
-
};
|
|
1082
|
-
}>>, context: import("@aeriajs/types").Context<{
|
|
1083
|
-
readonly $id: "file";
|
|
1084
|
-
readonly owned: "always";
|
|
1085
|
-
readonly presets: readonly ["owned"];
|
|
1086
|
-
readonly indexes: readonly ["filename", "link", "mime"];
|
|
1087
|
-
readonly properties: {
|
|
1088
|
-
readonly mime: {
|
|
1089
|
-
readonly type: "string";
|
|
1090
|
-
};
|
|
1091
|
-
readonly size: {
|
|
1092
|
-
readonly type: "number";
|
|
1093
|
-
};
|
|
1094
|
-
readonly last_modified: {
|
|
1095
|
-
readonly type: "string";
|
|
1096
|
-
readonly format: "date-time";
|
|
1097
|
-
};
|
|
1098
|
-
readonly filename: {
|
|
1099
|
-
readonly type: "string";
|
|
1100
|
-
};
|
|
1101
|
-
readonly absolute_path: {
|
|
1102
|
-
readonly type: "string";
|
|
1103
|
-
};
|
|
1104
|
-
readonly relative_path: {
|
|
1105
|
-
readonly type: "string";
|
|
1106
|
-
};
|
|
1107
|
-
readonly immutable: {
|
|
1108
|
-
readonly type: "boolean";
|
|
1109
|
-
};
|
|
1110
|
-
readonly link: {
|
|
1111
|
-
readonly getter: (value: any) => Promise<string>;
|
|
1112
|
-
};
|
|
1113
|
-
readonly download_link: {
|
|
1114
|
-
readonly getter: (value: any) => Promise<string>;
|
|
1115
|
-
};
|
|
1116
|
-
};
|
|
1117
|
-
readonly actions: {
|
|
1118
|
-
readonly deleteAll: {
|
|
1119
|
-
readonly name: "Remover";
|
|
1120
|
-
readonly ask: true;
|
|
1121
|
-
readonly selection: true;
|
|
1122
|
-
};
|
|
1123
|
-
};
|
|
1124
|
-
readonly individualActions: {
|
|
1125
|
-
readonly remove: {
|
|
1126
|
-
readonly name: "Remover";
|
|
1127
|
-
readonly icon: "trash";
|
|
1128
|
-
readonly ask: true;
|
|
1129
|
-
};
|
|
1130
|
-
};
|
|
1131
|
-
}>) => Promise<any>;
|
|
1132
|
-
readonly removeAll: (payload: import("@aeriajs/types").RemoveAllPayload, context: import("@aeriajs/types").Context<{
|
|
1133
|
-
readonly $id: "file";
|
|
1134
|
-
readonly owned: "always";
|
|
1135
|
-
readonly presets: readonly ["owned"];
|
|
1136
|
-
readonly indexes: readonly ["filename", "link", "mime"];
|
|
1137
|
-
readonly properties: {
|
|
1138
|
-
readonly mime: {
|
|
1139
|
-
readonly type: "string";
|
|
1140
|
-
};
|
|
1141
|
-
readonly size: {
|
|
1142
|
-
readonly type: "number";
|
|
1143
|
-
};
|
|
1144
|
-
readonly last_modified: {
|
|
1145
|
-
readonly type: "string";
|
|
1146
|
-
readonly format: "date-time";
|
|
1147
|
-
};
|
|
1148
|
-
readonly filename: {
|
|
1149
|
-
readonly type: "string";
|
|
1150
|
-
};
|
|
1151
|
-
readonly absolute_path: {
|
|
1152
|
-
readonly type: "string";
|
|
1153
|
-
};
|
|
1154
|
-
readonly relative_path: {
|
|
1155
|
-
readonly type: "string";
|
|
1156
|
-
};
|
|
1157
|
-
readonly immutable: {
|
|
1158
|
-
readonly type: "boolean";
|
|
1159
|
-
};
|
|
1160
|
-
readonly link: {
|
|
1161
|
-
readonly getter: (value: any) => Promise<string>;
|
|
1162
|
-
};
|
|
1163
|
-
readonly download_link: {
|
|
1164
|
-
readonly getter: (value: any) => Promise<string>;
|
|
1165
|
-
};
|
|
1166
|
-
};
|
|
1167
|
-
readonly actions: {
|
|
1168
|
-
readonly deleteAll: {
|
|
1169
|
-
readonly name: "Remover";
|
|
1170
|
-
readonly ask: true;
|
|
1171
|
-
readonly selection: true;
|
|
1172
|
-
};
|
|
1173
|
-
};
|
|
1174
|
-
readonly individualActions: {
|
|
1175
|
-
readonly remove: {
|
|
1176
|
-
readonly name: "Remover";
|
|
1177
|
-
readonly icon: "trash";
|
|
1178
|
-
readonly ask: true;
|
|
1179
|
-
};
|
|
1180
|
-
};
|
|
1181
|
-
}>) => Promise<any>;
|
|
699
|
+
functions: any;
|
|
700
|
+
functionContracts: {
|
|
701
|
+
[x: string]: import("@aeriajs/types").Contract;
|
|
1182
702
|
};
|
|
1183
703
|
};
|