@aeriajs/builtins 0.0.95 → 0.0.96
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/download.d.ts +1 -1
- package/dist/collections/file/index.d.ts +4 -4
- package/dist/collections/log/index.d.ts +12 -4
- package/dist/collections/user/activate.d.ts +3 -3
- package/dist/collections/user/authenticate.d.ts +17 -13
- package/dist/collections/user/authenticate.js +7 -7
- package/dist/collections/user/authenticate.mjs +6 -6
- package/dist/collections/user/createAccount.js +3 -4
- package/dist/collections/user/createAccount.mjs +3 -4
- package/dist/collections/user/getCurrentUser.d.ts +2 -2
- package/dist/collections/user/getCurrentUser.js +3 -5
- package/dist/collections/user/getCurrentUser.mjs +3 -5
- package/dist/collections/user/getInfo.d.ts +3 -3
- package/dist/collections/user/index.d.ts +266 -256
- package/dist/functions/describe.d.ts +18 -14
- package/dist/functions/describe.js +3 -3
- package/dist/functions/describe.mjs +4 -4
- package/dist/index.d.ts +280 -262
- package/package.json +6 -6
package/dist/index.d.ts
CHANGED
|
@@ -60,7 +60,7 @@ export declare const collections: {
|
|
|
60
60
|
};
|
|
61
61
|
};
|
|
62
62
|
functions: {
|
|
63
|
-
readonly get: (payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").GetOptions | undefined) => Promise<any
|
|
63
|
+
readonly get: (payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").GetOptions | undefined) => Promise<import("@aeriajs/types").GetReturnType<any>>;
|
|
64
64
|
readonly insert: (payload: {
|
|
65
65
|
what: {
|
|
66
66
|
content: string;
|
|
@@ -266,7 +266,7 @@ export declare const collections: {
|
|
|
266
266
|
readonly ask: true;
|
|
267
267
|
};
|
|
268
268
|
};
|
|
269
|
-
}>) => Promise<import("
|
|
269
|
+
}>) => Promise<import("../../types/dist/result.js").Result.Error<{
|
|
270
270
|
readonly code: import("@aeriajs/types").ACError.ResourceNotFound;
|
|
271
271
|
} & {
|
|
272
272
|
httpStatus: import("@aeriajs/types").HTTPStatus.NotFound;
|
|
@@ -530,7 +530,7 @@ export declare const collections: {
|
|
|
530
530
|
};
|
|
531
531
|
};
|
|
532
532
|
functions: {
|
|
533
|
-
readonly get: (payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").GetOptions | undefined) => Promise<any
|
|
533
|
+
readonly get: (payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").GetOptions | undefined) => Promise<import("@aeriajs/types").GetReturnType<any>>;
|
|
534
534
|
readonly insert: (payload: {
|
|
535
535
|
what: {
|
|
536
536
|
content: string;
|
|
@@ -736,7 +736,7 @@ export declare const collections: {
|
|
|
736
736
|
readonly ask: true;
|
|
737
737
|
};
|
|
738
738
|
};
|
|
739
|
-
}>) => Promise<import("
|
|
739
|
+
}>) => Promise<import("../../types/dist/result.js").Result.Error<{
|
|
740
740
|
readonly code: import("@aeriajs/types").ACError.ResourceNotFound;
|
|
741
741
|
} & {
|
|
742
742
|
httpStatus: import("@aeriajs/types").HTTPStatus.NotFound;
|
|
@@ -1019,8 +1019,12 @@ export declare const collections: {
|
|
|
1019
1019
|
readonly filters: readonly ["context", "message", "owner"];
|
|
1020
1020
|
};
|
|
1021
1021
|
functions: {
|
|
1022
|
-
readonly get: (payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").GetOptions | undefined) => Promise<any
|
|
1023
|
-
readonly getAll: (_payload: import("@aeriajs/types").GetAllPayload<import("@aeriajs/types").SchemaWithId<import("@aeriajs/types").Description>> | undefined, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").GetAllOptions | undefined) => Promise<
|
|
1022
|
+
readonly get: (payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").GetOptions | undefined) => Promise<import("@aeriajs/types").GetReturnType<any>>;
|
|
1023
|
+
readonly getAll: (_payload: import("@aeriajs/types").GetAllPayload<import("@aeriajs/types").SchemaWithId<import("@aeriajs/types").Description>> | undefined, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").GetAllOptions | undefined) => Promise<{
|
|
1024
|
+
readonly _tag: "Result";
|
|
1025
|
+
readonly error: undefined;
|
|
1026
|
+
readonly result: import("@aeriajs/types").SchemaWithId<any>[];
|
|
1027
|
+
}>;
|
|
1024
1028
|
readonly insert: (payload: import("@aeriajs/types").InsertPayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").InsertOptions | undefined) => Promise<import("@aeriajs/types").InsertReturnType<import("@aeriajs/types").SchemaWithId<any>>>;
|
|
1025
1029
|
};
|
|
1026
1030
|
exposedFunctions: {
|
|
@@ -1084,8 +1088,12 @@ export declare const collections: {
|
|
|
1084
1088
|
readonly filters: readonly ["context", "message", "owner"];
|
|
1085
1089
|
};
|
|
1086
1090
|
functions: {
|
|
1087
|
-
readonly get: (payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").GetOptions | undefined) => Promise<any
|
|
1088
|
-
readonly getAll: (_payload: import("@aeriajs/types").GetAllPayload<import("@aeriajs/types").SchemaWithId<import("@aeriajs/types").Description>> | undefined, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").GetAllOptions | undefined) => Promise<
|
|
1091
|
+
readonly get: (payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").GetOptions | undefined) => Promise<import("@aeriajs/types").GetReturnType<any>>;
|
|
1092
|
+
readonly getAll: (_payload: import("@aeriajs/types").GetAllPayload<import("@aeriajs/types").SchemaWithId<import("@aeriajs/types").Description>> | undefined, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").GetAllOptions | undefined) => Promise<{
|
|
1093
|
+
readonly _tag: "Result";
|
|
1094
|
+
readonly error: undefined;
|
|
1095
|
+
readonly result: import("@aeriajs/types").SchemaWithId<any>[];
|
|
1096
|
+
}>;
|
|
1089
1097
|
readonly insert: (payload: import("@aeriajs/types").InsertPayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").InsertOptions | undefined) => Promise<import("@aeriajs/types").InsertReturnType<import("@aeriajs/types").SchemaWithId<any>>>;
|
|
1090
1098
|
};
|
|
1091
1099
|
contracts: {
|
|
@@ -1305,18 +1313,19 @@ export declare const collections: {
|
|
|
1305
1313
|
};
|
|
1306
1314
|
};
|
|
1307
1315
|
functions: {
|
|
1308
|
-
readonly get: (payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").GetOptions | undefined) => Promise<any
|
|
1309
|
-
readonly getAll: (_payload: import("@aeriajs/types").GetAllPayload<import("@aeriajs/types").SchemaWithId<import("@aeriajs/types").Description>> | undefined, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").GetAllOptions | undefined) => Promise<
|
|
1316
|
+
readonly get: (payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").GetOptions | undefined) => Promise<import("@aeriajs/types").GetReturnType<any>>;
|
|
1317
|
+
readonly getAll: (_payload: import("@aeriajs/types").GetAllPayload<import("@aeriajs/types").SchemaWithId<import("@aeriajs/types").Description>> | undefined, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").GetAllOptions | undefined) => Promise<{
|
|
1318
|
+
readonly _tag: "Result";
|
|
1319
|
+
readonly error: undefined;
|
|
1320
|
+
readonly result: import("@aeriajs/types").SchemaWithId<any>[];
|
|
1321
|
+
}>;
|
|
1310
1322
|
readonly remove: (payload: import("@aeriajs/types").RemovePayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").StrictContext<any>) => Promise<any>;
|
|
1311
|
-
readonly upload: (_props: unknown, context: import("@aeriajs/types").StrictContext<any>) => Promise<
|
|
1312
|
-
|
|
1313
|
-
readonly
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
}> | {
|
|
1317
|
-
tempId: any;
|
|
1323
|
+
readonly upload: (_props: unknown, context: import("@aeriajs/types").StrictContext<any>) => Promise<any>;
|
|
1324
|
+
readonly removeFile: (payload: import("@aeriajs/types").RemoveFilePayload, context: import("@aeriajs/types").StrictContext<any>) => Promise<{
|
|
1325
|
+
readonly _tag: "Result";
|
|
1326
|
+
readonly error: undefined;
|
|
1327
|
+
readonly result: any;
|
|
1318
1328
|
}>;
|
|
1319
|
-
readonly removeFile: (payload: import("@aeriajs/types").RemoveFilePayload, context: import("@aeriajs/types").StrictContext<any>) => Promise<any>;
|
|
1320
1329
|
readonly insert: (payload: {
|
|
1321
1330
|
what: Omit<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<{
|
|
1322
1331
|
readonly $id: "user";
|
|
@@ -1722,131 +1731,135 @@ export declare const collections: {
|
|
|
1722
1731
|
};
|
|
1723
1732
|
};
|
|
1724
1733
|
};
|
|
1725
|
-
}>) => Promise<{
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
readonly
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
readonly
|
|
1739
|
-
readonly
|
|
1740
|
-
};
|
|
1741
|
-
readonly family_name: {
|
|
1742
|
-
readonly getter: (document: any) => string;
|
|
1743
|
-
};
|
|
1744
|
-
readonly active: {
|
|
1745
|
-
readonly type: "boolean";
|
|
1734
|
+
}>) => Promise<import("../../types/dist/result.js").Result.Error<{
|
|
1735
|
+
readonly code: import("@aeriajs/types").ACError.AuthorizationError;
|
|
1736
|
+
} & {
|
|
1737
|
+
httpStatus: import("@aeriajs/types").HTTPStatus.Unauthorized;
|
|
1738
|
+
}> | {
|
|
1739
|
+
readonly _tag: "Result";
|
|
1740
|
+
readonly error: undefined;
|
|
1741
|
+
readonly result: {
|
|
1742
|
+
user: Pick<import("@aeriajs/types").SchemaWithId<{
|
|
1743
|
+
readonly $id: "user";
|
|
1744
|
+
readonly required: readonly ["name", "roles", "email"];
|
|
1745
|
+
readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
|
|
1746
|
+
readonly indexes: readonly ["name"];
|
|
1747
|
+
readonly freshItem: {
|
|
1748
|
+
readonly active: true;
|
|
1746
1749
|
};
|
|
1747
|
-
readonly
|
|
1748
|
-
readonly
|
|
1749
|
-
readonly items: {
|
|
1750
|
+
readonly properties: {
|
|
1751
|
+
readonly name: {
|
|
1750
1752
|
readonly type: "string";
|
|
1751
1753
|
};
|
|
1752
|
-
readonly
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
readonly
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
readonly
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
readonly
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1754
|
+
readonly given_name: {
|
|
1755
|
+
readonly getter: (document: any) => string;
|
|
1756
|
+
};
|
|
1757
|
+
readonly family_name: {
|
|
1758
|
+
readonly getter: (document: any) => string;
|
|
1759
|
+
};
|
|
1760
|
+
readonly active: {
|
|
1761
|
+
readonly type: "boolean";
|
|
1762
|
+
};
|
|
1763
|
+
readonly roles: {
|
|
1764
|
+
readonly type: "array";
|
|
1765
|
+
readonly items: {
|
|
1766
|
+
readonly type: "string";
|
|
1767
|
+
};
|
|
1768
|
+
readonly uniqueItems: true;
|
|
1769
|
+
};
|
|
1770
|
+
readonly email: {
|
|
1771
|
+
readonly type: "string";
|
|
1772
|
+
readonly inputType: "email";
|
|
1773
|
+
readonly unique: true;
|
|
1774
|
+
};
|
|
1775
|
+
readonly password: {
|
|
1776
|
+
readonly type: "string";
|
|
1777
|
+
readonly inputType: "password";
|
|
1778
|
+
readonly hidden: true;
|
|
1779
|
+
};
|
|
1780
|
+
readonly phone_number: {
|
|
1781
|
+
readonly type: "string";
|
|
1782
|
+
readonly mask: "(##) #####-####";
|
|
1783
|
+
};
|
|
1784
|
+
readonly picture_file: {
|
|
1785
|
+
readonly $ref: "file";
|
|
1786
|
+
readonly accept: readonly ["image/*"];
|
|
1787
|
+
};
|
|
1788
|
+
readonly picture: {
|
|
1789
|
+
readonly getter: (value: any) => any;
|
|
1790
|
+
};
|
|
1791
|
+
readonly group: {
|
|
1792
|
+
readonly type: "string";
|
|
1793
|
+
};
|
|
1794
|
+
readonly self_registered: {
|
|
1795
|
+
readonly type: "boolean";
|
|
1796
|
+
readonly readOnly: true;
|
|
1797
|
+
};
|
|
1798
|
+
readonly updated_at: {
|
|
1799
|
+
readonly type: "string";
|
|
1800
|
+
readonly format: "date-time";
|
|
1801
|
+
};
|
|
1777
1802
|
};
|
|
1778
|
-
readonly
|
|
1779
|
-
|
|
1780
|
-
readonly
|
|
1803
|
+
readonly presets: readonly ["crud", "view", "duplicate"];
|
|
1804
|
+
readonly layout: {
|
|
1805
|
+
readonly name: "grid";
|
|
1806
|
+
readonly options: {
|
|
1807
|
+
readonly title: "name";
|
|
1808
|
+
readonly badge: "roles";
|
|
1809
|
+
readonly picture: "picture_file";
|
|
1810
|
+
readonly information: "email";
|
|
1811
|
+
readonly active: "active";
|
|
1812
|
+
};
|
|
1781
1813
|
};
|
|
1782
|
-
readonly
|
|
1783
|
-
readonly
|
|
1784
|
-
|
|
1814
|
+
readonly individualActions: {
|
|
1815
|
+
readonly 'ui:spawnEdit': {
|
|
1816
|
+
readonly label: "action.edit";
|
|
1817
|
+
readonly icon: "pencil";
|
|
1818
|
+
readonly translate: true;
|
|
1819
|
+
};
|
|
1820
|
+
readonly 'route:/dashboard/user/changepass': {
|
|
1821
|
+
readonly label: "change_password";
|
|
1822
|
+
readonly icon: "key";
|
|
1823
|
+
readonly fetchItem: true;
|
|
1824
|
+
readonly translate: true;
|
|
1825
|
+
};
|
|
1785
1826
|
};
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
readonly
|
|
1790
|
-
readonly
|
|
1791
|
-
readonly
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1827
|
+
readonly icon: "users";
|
|
1828
|
+
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
1829
|
+
readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
|
|
1830
|
+
readonly tableMeta: readonly ["email"];
|
|
1831
|
+
readonly formLayout: {
|
|
1832
|
+
readonly fields: {
|
|
1833
|
+
readonly given_name: {
|
|
1834
|
+
readonly span: 3;
|
|
1835
|
+
};
|
|
1836
|
+
readonly family_name: {
|
|
1837
|
+
readonly span: 3;
|
|
1838
|
+
};
|
|
1839
|
+
};
|
|
1796
1840
|
};
|
|
1841
|
+
}>, "name" | "roles" | "email" | "active"> & {
|
|
1842
|
+
_id: import("mongodb").ObjectId | null;
|
|
1797
1843
|
};
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
readonly icon: "key";
|
|
1807
|
-
readonly fetchItem: true;
|
|
1808
|
-
readonly translate: true;
|
|
1809
|
-
};
|
|
1844
|
+
token: import("@aeriajs/types").TokenRecipient;
|
|
1845
|
+
} | {
|
|
1846
|
+
user: {
|
|
1847
|
+
_id: null;
|
|
1848
|
+
name: string;
|
|
1849
|
+
email: string;
|
|
1850
|
+
roles: string[];
|
|
1851
|
+
active: boolean;
|
|
1810
1852
|
};
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
readonly tableMeta: readonly ["email"];
|
|
1815
|
-
readonly formLayout: {
|
|
1816
|
-
readonly fields: {
|
|
1817
|
-
readonly given_name: {
|
|
1818
|
-
readonly span: 3;
|
|
1819
|
-
};
|
|
1820
|
-
readonly family_name: {
|
|
1821
|
-
readonly span: 3;
|
|
1822
|
-
};
|
|
1823
|
-
};
|
|
1853
|
+
token: {
|
|
1854
|
+
type: string;
|
|
1855
|
+
content: string;
|
|
1824
1856
|
};
|
|
1825
|
-
}>, "name" | "roles" | "email" | "active"> & {
|
|
1826
|
-
_id: import("mongodb").ObjectId | null;
|
|
1827
|
-
};
|
|
1828
|
-
token: import("@aeriajs/types").TokenRecipient;
|
|
1829
|
-
} | import("@aeriajs/types").EndpointError<{
|
|
1830
|
-
readonly code: import("@aeriajs/types").ACError.AuthorizationError;
|
|
1831
|
-
} & {
|
|
1832
|
-
httpStatus: import("@aeriajs/types").HTTPStatus.Unauthorized;
|
|
1833
|
-
}> | {
|
|
1834
|
-
user: {
|
|
1835
|
-
_id: null;
|
|
1836
|
-
name: string;
|
|
1837
|
-
email: string;
|
|
1838
|
-
roles: string[];
|
|
1839
|
-
active: boolean;
|
|
1840
|
-
};
|
|
1841
|
-
token: {
|
|
1842
|
-
type: string;
|
|
1843
|
-
content: string;
|
|
1844
1857
|
};
|
|
1845
|
-
} | import("
|
|
1858
|
+
} | import("../../types/dist/result.js").Result.Error<{
|
|
1846
1859
|
readonly code: import("./collections/user/authenticate.js").AuthenticationError.InvalidCredentials;
|
|
1847
1860
|
} & {
|
|
1848
1861
|
httpStatus: import("@aeriajs/types").HTTPStatus.Unauthorized;
|
|
1849
|
-
}> | import("
|
|
1862
|
+
}> | import("../../types/dist/result.js").Result.Error<{
|
|
1850
1863
|
readonly code: import("./collections/user/authenticate.js").AuthenticationError.InactiveUser;
|
|
1851
1864
|
} & {
|
|
1852
1865
|
httpStatus: import("@aeriajs/types").HTTPStatus.Unauthorized;
|
|
@@ -1952,15 +1965,15 @@ export declare const collections: {
|
|
|
1952
1965
|
};
|
|
1953
1966
|
};
|
|
1954
1967
|
};
|
|
1955
|
-
}>) => Promise<import("@aeriajs/types").GenericResponse | import("
|
|
1968
|
+
}>) => Promise<import("@aeriajs/types").GenericResponse | import("../../types/dist/result.js").Result.Error<{
|
|
1956
1969
|
readonly code: import("./collections/user/activate.js").ActivationError.InvalidLink;
|
|
1957
1970
|
} & {
|
|
1958
1971
|
httpStatus: import("@aeriajs/types").HTTPStatus.NotFound;
|
|
1959
|
-
}> | import("
|
|
1972
|
+
}> | import("../../types/dist/result.js").Result.Error<{
|
|
1960
1973
|
readonly code: import("./collections/user/activate.js").ActivationError.UserNotFound;
|
|
1961
1974
|
} & {
|
|
1962
1975
|
httpStatus: import("@aeriajs/types").HTTPStatus.NotFound;
|
|
1963
|
-
}> | import("
|
|
1976
|
+
}> | import("../../types/dist/result.js").Result.Error<{
|
|
1964
1977
|
readonly code: import("./collections/user/activate.js").ActivationError.AlreadyActiveUser;
|
|
1965
1978
|
} & {
|
|
1966
1979
|
httpStatus: import("@aeriajs/types").HTTPStatus.Forbidden;
|
|
@@ -2402,15 +2415,15 @@ export declare const collections: {
|
|
|
2402
2415
|
};
|
|
2403
2416
|
};
|
|
2404
2417
|
};
|
|
2405
|
-
}>) => Promise<import("
|
|
2418
|
+
}>) => Promise<import("../../types/dist/result.js").Result.Error<{
|
|
2406
2419
|
readonly code: import("./collections/user/getInfo.js").ActivationError.InvalidLink;
|
|
2407
2420
|
} & {
|
|
2408
2421
|
httpStatus: import("@aeriajs/types").HTTPStatus.NotFound;
|
|
2409
|
-
}> | import("
|
|
2422
|
+
}> | import("../../types/dist/result.js").Result.Error<{
|
|
2410
2423
|
readonly code: import("./collections/user/getInfo.js").ActivationError.UserNotFound;
|
|
2411
2424
|
} & {
|
|
2412
2425
|
httpStatus: import("@aeriajs/types").HTTPStatus.NotFound;
|
|
2413
|
-
}> | import("
|
|
2426
|
+
}> | import("../../types/dist/result.js").Result.Error<{
|
|
2414
2427
|
readonly code: import("./collections/user/getInfo.js").ActivationError.AlreadyActiveUser;
|
|
2415
2428
|
} & {
|
|
2416
2429
|
httpStatus: import("@aeriajs/types").HTTPStatus.Forbidden;
|
|
@@ -2829,18 +2842,19 @@ export declare const collections: {
|
|
|
2829
2842
|
};
|
|
2830
2843
|
};
|
|
2831
2844
|
functions: {
|
|
2832
|
-
readonly get: (payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").GetOptions | undefined) => Promise<any
|
|
2833
|
-
readonly getAll: (_payload: import("@aeriajs/types").GetAllPayload<import("@aeriajs/types").SchemaWithId<import("@aeriajs/types").Description>> | undefined, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").GetAllOptions | undefined) => Promise<
|
|
2845
|
+
readonly get: (payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").GetOptions | undefined) => Promise<import("@aeriajs/types").GetReturnType<any>>;
|
|
2846
|
+
readonly getAll: (_payload: import("@aeriajs/types").GetAllPayload<import("@aeriajs/types").SchemaWithId<import("@aeriajs/types").Description>> | undefined, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").GetAllOptions | undefined) => Promise<{
|
|
2847
|
+
readonly _tag: "Result";
|
|
2848
|
+
readonly error: undefined;
|
|
2849
|
+
readonly result: import("@aeriajs/types").SchemaWithId<any>[];
|
|
2850
|
+
}>;
|
|
2834
2851
|
readonly remove: (payload: import("@aeriajs/types").RemovePayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").StrictContext<any>) => Promise<any>;
|
|
2835
|
-
readonly upload: (_props: unknown, context: import("@aeriajs/types").StrictContext<any>) => Promise<
|
|
2836
|
-
|
|
2837
|
-
readonly
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
}> | {
|
|
2841
|
-
tempId: any;
|
|
2852
|
+
readonly upload: (_props: unknown, context: import("@aeriajs/types").StrictContext<any>) => Promise<any>;
|
|
2853
|
+
readonly removeFile: (payload: import("@aeriajs/types").RemoveFilePayload, context: import("@aeriajs/types").StrictContext<any>) => Promise<{
|
|
2854
|
+
readonly _tag: "Result";
|
|
2855
|
+
readonly error: undefined;
|
|
2856
|
+
readonly result: any;
|
|
2842
2857
|
}>;
|
|
2843
|
-
readonly removeFile: (payload: import("@aeriajs/types").RemoveFilePayload, context: import("@aeriajs/types").StrictContext<any>) => Promise<any>;
|
|
2844
2858
|
readonly insert: (payload: {
|
|
2845
2859
|
what: Omit<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<{
|
|
2846
2860
|
readonly $id: "user";
|
|
@@ -3246,131 +3260,135 @@ export declare const collections: {
|
|
|
3246
3260
|
};
|
|
3247
3261
|
};
|
|
3248
3262
|
};
|
|
3249
|
-
}>) => Promise<{
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
readonly
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
readonly
|
|
3263
|
-
readonly
|
|
3264
|
-
};
|
|
3265
|
-
readonly family_name: {
|
|
3266
|
-
readonly getter: (document: any) => string;
|
|
3267
|
-
};
|
|
3268
|
-
readonly active: {
|
|
3269
|
-
readonly type: "boolean";
|
|
3263
|
+
}>) => Promise<import("../../types/dist/result.js").Result.Error<{
|
|
3264
|
+
readonly code: import("@aeriajs/types").ACError.AuthorizationError;
|
|
3265
|
+
} & {
|
|
3266
|
+
httpStatus: import("@aeriajs/types").HTTPStatus.Unauthorized;
|
|
3267
|
+
}> | {
|
|
3268
|
+
readonly _tag: "Result";
|
|
3269
|
+
readonly error: undefined;
|
|
3270
|
+
readonly result: {
|
|
3271
|
+
user: Pick<import("@aeriajs/types").SchemaWithId<{
|
|
3272
|
+
readonly $id: "user";
|
|
3273
|
+
readonly required: readonly ["name", "roles", "email"];
|
|
3274
|
+
readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
|
|
3275
|
+
readonly indexes: readonly ["name"];
|
|
3276
|
+
readonly freshItem: {
|
|
3277
|
+
readonly active: true;
|
|
3270
3278
|
};
|
|
3271
|
-
readonly
|
|
3272
|
-
readonly
|
|
3273
|
-
readonly items: {
|
|
3279
|
+
readonly properties: {
|
|
3280
|
+
readonly name: {
|
|
3274
3281
|
readonly type: "string";
|
|
3275
3282
|
};
|
|
3276
|
-
readonly
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
readonly
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
|
|
3284
|
-
|
|
3285
|
-
readonly
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
|
|
3289
|
-
|
|
3290
|
-
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
readonly
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
-
|
|
3283
|
+
readonly given_name: {
|
|
3284
|
+
readonly getter: (document: any) => string;
|
|
3285
|
+
};
|
|
3286
|
+
readonly family_name: {
|
|
3287
|
+
readonly getter: (document: any) => string;
|
|
3288
|
+
};
|
|
3289
|
+
readonly active: {
|
|
3290
|
+
readonly type: "boolean";
|
|
3291
|
+
};
|
|
3292
|
+
readonly roles: {
|
|
3293
|
+
readonly type: "array";
|
|
3294
|
+
readonly items: {
|
|
3295
|
+
readonly type: "string";
|
|
3296
|
+
};
|
|
3297
|
+
readonly uniqueItems: true;
|
|
3298
|
+
};
|
|
3299
|
+
readonly email: {
|
|
3300
|
+
readonly type: "string";
|
|
3301
|
+
readonly inputType: "email";
|
|
3302
|
+
readonly unique: true;
|
|
3303
|
+
};
|
|
3304
|
+
readonly password: {
|
|
3305
|
+
readonly type: "string";
|
|
3306
|
+
readonly inputType: "password";
|
|
3307
|
+
readonly hidden: true;
|
|
3308
|
+
};
|
|
3309
|
+
readonly phone_number: {
|
|
3310
|
+
readonly type: "string";
|
|
3311
|
+
readonly mask: "(##) #####-####";
|
|
3312
|
+
};
|
|
3313
|
+
readonly picture_file: {
|
|
3314
|
+
readonly $ref: "file";
|
|
3315
|
+
readonly accept: readonly ["image/*"];
|
|
3316
|
+
};
|
|
3317
|
+
readonly picture: {
|
|
3318
|
+
readonly getter: (value: any) => any;
|
|
3319
|
+
};
|
|
3320
|
+
readonly group: {
|
|
3321
|
+
readonly type: "string";
|
|
3322
|
+
};
|
|
3323
|
+
readonly self_registered: {
|
|
3324
|
+
readonly type: "boolean";
|
|
3325
|
+
readonly readOnly: true;
|
|
3326
|
+
};
|
|
3327
|
+
readonly updated_at: {
|
|
3328
|
+
readonly type: "string";
|
|
3329
|
+
readonly format: "date-time";
|
|
3330
|
+
};
|
|
3301
3331
|
};
|
|
3302
|
-
readonly
|
|
3303
|
-
|
|
3304
|
-
readonly
|
|
3332
|
+
readonly presets: readonly ["crud", "view", "duplicate"];
|
|
3333
|
+
readonly layout: {
|
|
3334
|
+
readonly name: "grid";
|
|
3335
|
+
readonly options: {
|
|
3336
|
+
readonly title: "name";
|
|
3337
|
+
readonly badge: "roles";
|
|
3338
|
+
readonly picture: "picture_file";
|
|
3339
|
+
readonly information: "email";
|
|
3340
|
+
readonly active: "active";
|
|
3341
|
+
};
|
|
3305
3342
|
};
|
|
3306
|
-
readonly
|
|
3307
|
-
readonly
|
|
3308
|
-
|
|
3343
|
+
readonly individualActions: {
|
|
3344
|
+
readonly 'ui:spawnEdit': {
|
|
3345
|
+
readonly label: "action.edit";
|
|
3346
|
+
readonly icon: "pencil";
|
|
3347
|
+
readonly translate: true;
|
|
3348
|
+
};
|
|
3349
|
+
readonly 'route:/dashboard/user/changepass': {
|
|
3350
|
+
readonly label: "change_password";
|
|
3351
|
+
readonly icon: "key";
|
|
3352
|
+
readonly fetchItem: true;
|
|
3353
|
+
readonly translate: true;
|
|
3354
|
+
};
|
|
3309
3355
|
};
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
readonly
|
|
3314
|
-
readonly
|
|
3315
|
-
readonly
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
|
|
3356
|
+
readonly icon: "users";
|
|
3357
|
+
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
3358
|
+
readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
|
|
3359
|
+
readonly tableMeta: readonly ["email"];
|
|
3360
|
+
readonly formLayout: {
|
|
3361
|
+
readonly fields: {
|
|
3362
|
+
readonly given_name: {
|
|
3363
|
+
readonly span: 3;
|
|
3364
|
+
};
|
|
3365
|
+
readonly family_name: {
|
|
3366
|
+
readonly span: 3;
|
|
3367
|
+
};
|
|
3368
|
+
};
|
|
3320
3369
|
};
|
|
3370
|
+
}>, "name" | "roles" | "email" | "active"> & {
|
|
3371
|
+
_id: import("mongodb").ObjectId | null;
|
|
3321
3372
|
};
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
|
|
3325
|
-
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
readonly icon: "key";
|
|
3331
|
-
readonly fetchItem: true;
|
|
3332
|
-
readonly translate: true;
|
|
3333
|
-
};
|
|
3373
|
+
token: import("@aeriajs/types").TokenRecipient;
|
|
3374
|
+
} | {
|
|
3375
|
+
user: {
|
|
3376
|
+
_id: null;
|
|
3377
|
+
name: string;
|
|
3378
|
+
email: string;
|
|
3379
|
+
roles: string[];
|
|
3380
|
+
active: boolean;
|
|
3334
3381
|
};
|
|
3335
|
-
|
|
3336
|
-
|
|
3337
|
-
|
|
3338
|
-
readonly tableMeta: readonly ["email"];
|
|
3339
|
-
readonly formLayout: {
|
|
3340
|
-
readonly fields: {
|
|
3341
|
-
readonly given_name: {
|
|
3342
|
-
readonly span: 3;
|
|
3343
|
-
};
|
|
3344
|
-
readonly family_name: {
|
|
3345
|
-
readonly span: 3;
|
|
3346
|
-
};
|
|
3347
|
-
};
|
|
3382
|
+
token: {
|
|
3383
|
+
type: string;
|
|
3384
|
+
content: string;
|
|
3348
3385
|
};
|
|
3349
|
-
}>, "name" | "roles" | "email" | "active"> & {
|
|
3350
|
-
_id: import("mongodb").ObjectId | null;
|
|
3351
|
-
};
|
|
3352
|
-
token: import("@aeriajs/types").TokenRecipient;
|
|
3353
|
-
} | import("@aeriajs/types").EndpointError<{
|
|
3354
|
-
readonly code: import("@aeriajs/types").ACError.AuthorizationError;
|
|
3355
|
-
} & {
|
|
3356
|
-
httpStatus: import("@aeriajs/types").HTTPStatus.Unauthorized;
|
|
3357
|
-
}> | {
|
|
3358
|
-
user: {
|
|
3359
|
-
_id: null;
|
|
3360
|
-
name: string;
|
|
3361
|
-
email: string;
|
|
3362
|
-
roles: string[];
|
|
3363
|
-
active: boolean;
|
|
3364
|
-
};
|
|
3365
|
-
token: {
|
|
3366
|
-
type: string;
|
|
3367
|
-
content: string;
|
|
3368
3386
|
};
|
|
3369
|
-
} | import("
|
|
3387
|
+
} | import("../../types/dist/result.js").Result.Error<{
|
|
3370
3388
|
readonly code: import("./collections/user/authenticate.js").AuthenticationError.InvalidCredentials;
|
|
3371
3389
|
} & {
|
|
3372
3390
|
httpStatus: import("@aeriajs/types").HTTPStatus.Unauthorized;
|
|
3373
|
-
}> | import("
|
|
3391
|
+
}> | import("../../types/dist/result.js").Result.Error<{
|
|
3374
3392
|
readonly code: import("./collections/user/authenticate.js").AuthenticationError.InactiveUser;
|
|
3375
3393
|
} & {
|
|
3376
3394
|
httpStatus: import("@aeriajs/types").HTTPStatus.Unauthorized;
|
|
@@ -3476,15 +3494,15 @@ export declare const collections: {
|
|
|
3476
3494
|
};
|
|
3477
3495
|
};
|
|
3478
3496
|
};
|
|
3479
|
-
}>) => Promise<import("@aeriajs/types").GenericResponse | import("
|
|
3497
|
+
}>) => Promise<import("@aeriajs/types").GenericResponse | import("../../types/dist/result.js").Result.Error<{
|
|
3480
3498
|
readonly code: import("./collections/user/activate.js").ActivationError.InvalidLink;
|
|
3481
3499
|
} & {
|
|
3482
3500
|
httpStatus: import("@aeriajs/types").HTTPStatus.NotFound;
|
|
3483
|
-
}> | import("
|
|
3501
|
+
}> | import("../../types/dist/result.js").Result.Error<{
|
|
3484
3502
|
readonly code: import("./collections/user/activate.js").ActivationError.UserNotFound;
|
|
3485
3503
|
} & {
|
|
3486
3504
|
httpStatus: import("@aeriajs/types").HTTPStatus.NotFound;
|
|
3487
|
-
}> | import("
|
|
3505
|
+
}> | import("../../types/dist/result.js").Result.Error<{
|
|
3488
3506
|
readonly code: import("./collections/user/activate.js").ActivationError.AlreadyActiveUser;
|
|
3489
3507
|
} & {
|
|
3490
3508
|
httpStatus: import("@aeriajs/types").HTTPStatus.Forbidden;
|
|
@@ -3926,15 +3944,15 @@ export declare const collections: {
|
|
|
3926
3944
|
};
|
|
3927
3945
|
};
|
|
3928
3946
|
};
|
|
3929
|
-
}>) => Promise<import("
|
|
3947
|
+
}>) => Promise<import("../../types/dist/result.js").Result.Error<{
|
|
3930
3948
|
readonly code: import("./collections/user/getInfo.js").ActivationError.InvalidLink;
|
|
3931
3949
|
} & {
|
|
3932
3950
|
httpStatus: import("@aeriajs/types").HTTPStatus.NotFound;
|
|
3933
|
-
}> | import("
|
|
3951
|
+
}> | import("../../types/dist/result.js").Result.Error<{
|
|
3934
3952
|
readonly code: import("./collections/user/getInfo.js").ActivationError.UserNotFound;
|
|
3935
3953
|
} & {
|
|
3936
3954
|
httpStatus: import("@aeriajs/types").HTTPStatus.NotFound;
|
|
3937
|
-
}> | import("
|
|
3955
|
+
}> | import("../../types/dist/result.js").Result.Error<{
|
|
3938
3956
|
readonly code: import("./collections/user/getInfo.js").ActivationError.AlreadyActiveUser;
|
|
3939
3957
|
} & {
|
|
3940
3958
|
httpStatus: import("@aeriajs/types").HTTPStatus.Forbidden;
|