@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
|
@@ -100,18 +100,19 @@ export declare const user: {
|
|
|
100
100
|
};
|
|
101
101
|
};
|
|
102
102
|
functions: {
|
|
103
|
-
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
|
|
104
|
-
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<
|
|
103
|
+
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>>;
|
|
104
|
+
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<{
|
|
105
|
+
readonly _tag: "Result";
|
|
106
|
+
readonly error: undefined;
|
|
107
|
+
readonly result: import("@aeriajs/types").SchemaWithId<any>[];
|
|
108
|
+
}>;
|
|
105
109
|
readonly remove: (payload: import("@aeriajs/types").RemovePayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").StrictContext<any>) => Promise<any>;
|
|
106
|
-
readonly upload: (_props: unknown, context: import("@aeriajs/types").StrictContext<any>) => Promise<
|
|
107
|
-
|
|
108
|
-
readonly
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
}> | {
|
|
112
|
-
tempId: any;
|
|
110
|
+
readonly upload: (_props: unknown, context: import("@aeriajs/types").StrictContext<any>) => Promise<any>;
|
|
111
|
+
readonly removeFile: (payload: import("@aeriajs/types").RemoveFilePayload, context: import("@aeriajs/types").StrictContext<any>) => Promise<{
|
|
112
|
+
readonly _tag: "Result";
|
|
113
|
+
readonly error: undefined;
|
|
114
|
+
readonly result: any;
|
|
113
115
|
}>;
|
|
114
|
-
readonly removeFile: (payload: import("@aeriajs/types").RemoveFilePayload, context: import("@aeriajs/types").StrictContext<any>) => Promise<any>;
|
|
115
116
|
readonly insert: (payload: {
|
|
116
117
|
what: Omit<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<{
|
|
117
118
|
readonly $id: "user";
|
|
@@ -517,131 +518,135 @@ export declare const user: {
|
|
|
517
518
|
};
|
|
518
519
|
};
|
|
519
520
|
};
|
|
520
|
-
}>) => Promise<{
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
readonly
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
readonly
|
|
534
|
-
readonly
|
|
535
|
-
};
|
|
536
|
-
readonly
|
|
537
|
-
readonly
|
|
538
|
-
};
|
|
539
|
-
readonly active: {
|
|
540
|
-
readonly type: "boolean";
|
|
541
|
-
};
|
|
542
|
-
readonly roles: {
|
|
543
|
-
readonly type: "array";
|
|
544
|
-
readonly items: {
|
|
521
|
+
}>) => Promise<import("../../../../types/dist/result.js").Result.Error<{
|
|
522
|
+
readonly code: import("@aeriajs/types").ACError.AuthorizationError;
|
|
523
|
+
} & {
|
|
524
|
+
httpStatus: import("@aeriajs/types").HTTPStatus.Unauthorized;
|
|
525
|
+
}> | {
|
|
526
|
+
readonly _tag: "Result";
|
|
527
|
+
readonly error: undefined;
|
|
528
|
+
readonly result: {
|
|
529
|
+
user: Pick<import("@aeriajs/types").SchemaWithId<{
|
|
530
|
+
readonly $id: "user";
|
|
531
|
+
readonly required: readonly ["name", "roles", "email"];
|
|
532
|
+
readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
|
|
533
|
+
readonly indexes: readonly ["name"];
|
|
534
|
+
readonly freshItem: {
|
|
535
|
+
readonly active: true;
|
|
536
|
+
};
|
|
537
|
+
readonly properties: {
|
|
538
|
+
readonly name: {
|
|
545
539
|
readonly type: "string";
|
|
546
540
|
};
|
|
547
|
-
readonly
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
readonly
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
readonly
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
readonly
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
541
|
+
readonly given_name: {
|
|
542
|
+
readonly getter: (document: any) => string;
|
|
543
|
+
};
|
|
544
|
+
readonly family_name: {
|
|
545
|
+
readonly getter: (document: any) => string;
|
|
546
|
+
};
|
|
547
|
+
readonly active: {
|
|
548
|
+
readonly type: "boolean";
|
|
549
|
+
};
|
|
550
|
+
readonly roles: {
|
|
551
|
+
readonly type: "array";
|
|
552
|
+
readonly items: {
|
|
553
|
+
readonly type: "string";
|
|
554
|
+
};
|
|
555
|
+
readonly uniqueItems: true;
|
|
556
|
+
};
|
|
557
|
+
readonly email: {
|
|
558
|
+
readonly type: "string";
|
|
559
|
+
readonly inputType: "email";
|
|
560
|
+
readonly unique: true;
|
|
561
|
+
};
|
|
562
|
+
readonly password: {
|
|
563
|
+
readonly type: "string";
|
|
564
|
+
readonly inputType: "password";
|
|
565
|
+
readonly hidden: true;
|
|
566
|
+
};
|
|
567
|
+
readonly phone_number: {
|
|
568
|
+
readonly type: "string";
|
|
569
|
+
readonly mask: "(##) #####-####";
|
|
570
|
+
};
|
|
571
|
+
readonly picture_file: {
|
|
572
|
+
readonly $ref: "file";
|
|
573
|
+
readonly accept: readonly ["image/*"];
|
|
574
|
+
};
|
|
575
|
+
readonly picture: {
|
|
576
|
+
readonly getter: (value: any) => any;
|
|
577
|
+
};
|
|
578
|
+
readonly group: {
|
|
579
|
+
readonly type: "string";
|
|
580
|
+
};
|
|
581
|
+
readonly self_registered: {
|
|
582
|
+
readonly type: "boolean";
|
|
583
|
+
readonly readOnly: true;
|
|
584
|
+
};
|
|
585
|
+
readonly updated_at: {
|
|
586
|
+
readonly type: "string";
|
|
587
|
+
readonly format: "date-time";
|
|
588
|
+
};
|
|
572
589
|
};
|
|
573
|
-
readonly
|
|
574
|
-
|
|
575
|
-
readonly
|
|
590
|
+
readonly presets: readonly ["crud", "view", "duplicate"];
|
|
591
|
+
readonly layout: {
|
|
592
|
+
readonly name: "grid";
|
|
593
|
+
readonly options: {
|
|
594
|
+
readonly title: "name";
|
|
595
|
+
readonly badge: "roles";
|
|
596
|
+
readonly picture: "picture_file";
|
|
597
|
+
readonly information: "email";
|
|
598
|
+
readonly active: "active";
|
|
599
|
+
};
|
|
576
600
|
};
|
|
577
|
-
readonly
|
|
578
|
-
readonly
|
|
579
|
-
|
|
601
|
+
readonly individualActions: {
|
|
602
|
+
readonly 'ui:spawnEdit': {
|
|
603
|
+
readonly label: "action.edit";
|
|
604
|
+
readonly icon: "pencil";
|
|
605
|
+
readonly translate: true;
|
|
606
|
+
};
|
|
607
|
+
readonly 'route:/dashboard/user/changepass': {
|
|
608
|
+
readonly label: "change_password";
|
|
609
|
+
readonly icon: "key";
|
|
610
|
+
readonly fetchItem: true;
|
|
611
|
+
readonly translate: true;
|
|
612
|
+
};
|
|
580
613
|
};
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
readonly
|
|
585
|
-
readonly
|
|
586
|
-
readonly
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
614
|
+
readonly icon: "users";
|
|
615
|
+
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
616
|
+
readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
|
|
617
|
+
readonly tableMeta: readonly ["email"];
|
|
618
|
+
readonly formLayout: {
|
|
619
|
+
readonly fields: {
|
|
620
|
+
readonly given_name: {
|
|
621
|
+
readonly span: 3;
|
|
622
|
+
};
|
|
623
|
+
readonly family_name: {
|
|
624
|
+
readonly span: 3;
|
|
625
|
+
};
|
|
626
|
+
};
|
|
591
627
|
};
|
|
628
|
+
}>, "name" | "roles" | "email" | "active"> & {
|
|
629
|
+
_id: import("@aeriajs/core").ObjectId | null;
|
|
592
630
|
};
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
readonly icon: "key";
|
|
602
|
-
readonly fetchItem: true;
|
|
603
|
-
readonly translate: true;
|
|
604
|
-
};
|
|
631
|
+
token: import("@aeriajs/types").TokenRecipient;
|
|
632
|
+
} | {
|
|
633
|
+
user: {
|
|
634
|
+
_id: null;
|
|
635
|
+
name: string;
|
|
636
|
+
email: string;
|
|
637
|
+
roles: string[];
|
|
638
|
+
active: boolean;
|
|
605
639
|
};
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
readonly tableMeta: readonly ["email"];
|
|
610
|
-
readonly formLayout: {
|
|
611
|
-
readonly fields: {
|
|
612
|
-
readonly given_name: {
|
|
613
|
-
readonly span: 3;
|
|
614
|
-
};
|
|
615
|
-
readonly family_name: {
|
|
616
|
-
readonly span: 3;
|
|
617
|
-
};
|
|
618
|
-
};
|
|
640
|
+
token: {
|
|
641
|
+
type: string;
|
|
642
|
+
content: string;
|
|
619
643
|
};
|
|
620
|
-
}>, "name" | "roles" | "email" | "active"> & {
|
|
621
|
-
_id: import("@aeriajs/core").ObjectId | null;
|
|
622
644
|
};
|
|
623
|
-
|
|
624
|
-
} | import("@aeriajs/types").EndpointError<{
|
|
625
|
-
readonly code: import("@aeriajs/types").ACError.AuthorizationError;
|
|
626
|
-
} & {
|
|
627
|
-
httpStatus: import("@aeriajs/types").HTTPStatus.Unauthorized;
|
|
628
|
-
}> | {
|
|
629
|
-
user: {
|
|
630
|
-
_id: null;
|
|
631
|
-
name: string;
|
|
632
|
-
email: string;
|
|
633
|
-
roles: string[];
|
|
634
|
-
active: boolean;
|
|
635
|
-
};
|
|
636
|
-
token: {
|
|
637
|
-
type: string;
|
|
638
|
-
content: string;
|
|
639
|
-
};
|
|
640
|
-
} | import("@aeriajs/types").EndpointError<{
|
|
645
|
+
} | import("../../../../types/dist/result.js").Result.Error<{
|
|
641
646
|
readonly code: import("./authenticate.js").AuthenticationError.InvalidCredentials;
|
|
642
647
|
} & {
|
|
643
648
|
httpStatus: import("@aeriajs/types").HTTPStatus.Unauthorized;
|
|
644
|
-
}> | import("
|
|
649
|
+
}> | import("../../../../types/dist/result.js").Result.Error<{
|
|
645
650
|
readonly code: import("./authenticate.js").AuthenticationError.InactiveUser;
|
|
646
651
|
} & {
|
|
647
652
|
httpStatus: import("@aeriajs/types").HTTPStatus.Unauthorized;
|
|
@@ -747,15 +752,15 @@ export declare const user: {
|
|
|
747
752
|
};
|
|
748
753
|
};
|
|
749
754
|
};
|
|
750
|
-
}>) => Promise<import("@aeriajs/types").GenericResponse | import("
|
|
755
|
+
}>) => Promise<import("@aeriajs/types").GenericResponse | import("../../../../types/dist/result.js").Result.Error<{
|
|
751
756
|
readonly code: import("./activate.js").ActivationError.InvalidLink;
|
|
752
757
|
} & {
|
|
753
758
|
httpStatus: import("@aeriajs/types").HTTPStatus.NotFound;
|
|
754
|
-
}> | import("
|
|
759
|
+
}> | import("../../../../types/dist/result.js").Result.Error<{
|
|
755
760
|
readonly code: import("./activate.js").ActivationError.UserNotFound;
|
|
756
761
|
} & {
|
|
757
762
|
httpStatus: import("@aeriajs/types").HTTPStatus.NotFound;
|
|
758
|
-
}> | import("
|
|
763
|
+
}> | import("../../../../types/dist/result.js").Result.Error<{
|
|
759
764
|
readonly code: import("./activate.js").ActivationError.AlreadyActiveUser;
|
|
760
765
|
} & {
|
|
761
766
|
httpStatus: import("@aeriajs/types").HTTPStatus.Forbidden;
|
|
@@ -1197,15 +1202,15 @@ export declare const user: {
|
|
|
1197
1202
|
};
|
|
1198
1203
|
};
|
|
1199
1204
|
};
|
|
1200
|
-
}>) => Promise<import("
|
|
1205
|
+
}>) => Promise<import("../../../../types/dist/result.js").Result.Error<{
|
|
1201
1206
|
readonly code: import("./getInfo.js").ActivationError.InvalidLink;
|
|
1202
1207
|
} & {
|
|
1203
1208
|
httpStatus: import("@aeriajs/types").HTTPStatus.NotFound;
|
|
1204
|
-
}> | import("
|
|
1209
|
+
}> | import("../../../../types/dist/result.js").Result.Error<{
|
|
1205
1210
|
readonly code: import("./getInfo.js").ActivationError.UserNotFound;
|
|
1206
1211
|
} & {
|
|
1207
1212
|
httpStatus: import("@aeriajs/types").HTTPStatus.NotFound;
|
|
1208
|
-
}> | import("
|
|
1213
|
+
}> | import("../../../../types/dist/result.js").Result.Error<{
|
|
1209
1214
|
readonly code: import("./getInfo.js").ActivationError.AlreadyActiveUser;
|
|
1210
1215
|
} & {
|
|
1211
1216
|
httpStatus: import("@aeriajs/types").HTTPStatus.Forbidden;
|
|
@@ -1624,18 +1629,19 @@ export declare const user: {
|
|
|
1624
1629
|
};
|
|
1625
1630
|
};
|
|
1626
1631
|
functions: {
|
|
1627
|
-
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
|
|
1628
|
-
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<
|
|
1632
|
+
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>>;
|
|
1633
|
+
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<{
|
|
1634
|
+
readonly _tag: "Result";
|
|
1635
|
+
readonly error: undefined;
|
|
1636
|
+
readonly result: import("@aeriajs/types").SchemaWithId<any>[];
|
|
1637
|
+
}>;
|
|
1629
1638
|
readonly remove: (payload: import("@aeriajs/types").RemovePayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").StrictContext<any>) => Promise<any>;
|
|
1630
|
-
readonly upload: (_props: unknown, context: import("@aeriajs/types").StrictContext<any>) => Promise<
|
|
1631
|
-
|
|
1632
|
-
readonly
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
}> | {
|
|
1636
|
-
tempId: any;
|
|
1639
|
+
readonly upload: (_props: unknown, context: import("@aeriajs/types").StrictContext<any>) => Promise<any>;
|
|
1640
|
+
readonly removeFile: (payload: import("@aeriajs/types").RemoveFilePayload, context: import("@aeriajs/types").StrictContext<any>) => Promise<{
|
|
1641
|
+
readonly _tag: "Result";
|
|
1642
|
+
readonly error: undefined;
|
|
1643
|
+
readonly result: any;
|
|
1637
1644
|
}>;
|
|
1638
|
-
readonly removeFile: (payload: import("@aeriajs/types").RemoveFilePayload, context: import("@aeriajs/types").StrictContext<any>) => Promise<any>;
|
|
1639
1645
|
readonly insert: (payload: {
|
|
1640
1646
|
what: Omit<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<{
|
|
1641
1647
|
readonly $id: "user";
|
|
@@ -2041,131 +2047,135 @@ export declare const user: {
|
|
|
2041
2047
|
};
|
|
2042
2048
|
};
|
|
2043
2049
|
};
|
|
2044
|
-
}>) => Promise<{
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
readonly
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
readonly
|
|
2058
|
-
readonly
|
|
2059
|
-
};
|
|
2060
|
-
readonly
|
|
2061
|
-
readonly
|
|
2062
|
-
};
|
|
2063
|
-
readonly active: {
|
|
2064
|
-
readonly type: "boolean";
|
|
2065
|
-
};
|
|
2066
|
-
readonly roles: {
|
|
2067
|
-
readonly type: "array";
|
|
2068
|
-
readonly items: {
|
|
2050
|
+
}>) => Promise<import("../../../../types/dist/result.js").Result.Error<{
|
|
2051
|
+
readonly code: import("@aeriajs/types").ACError.AuthorizationError;
|
|
2052
|
+
} & {
|
|
2053
|
+
httpStatus: import("@aeriajs/types").HTTPStatus.Unauthorized;
|
|
2054
|
+
}> | {
|
|
2055
|
+
readonly _tag: "Result";
|
|
2056
|
+
readonly error: undefined;
|
|
2057
|
+
readonly result: {
|
|
2058
|
+
user: Pick<import("@aeriajs/types").SchemaWithId<{
|
|
2059
|
+
readonly $id: "user";
|
|
2060
|
+
readonly required: readonly ["name", "roles", "email"];
|
|
2061
|
+
readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
|
|
2062
|
+
readonly indexes: readonly ["name"];
|
|
2063
|
+
readonly freshItem: {
|
|
2064
|
+
readonly active: true;
|
|
2065
|
+
};
|
|
2066
|
+
readonly properties: {
|
|
2067
|
+
readonly name: {
|
|
2069
2068
|
readonly type: "string";
|
|
2070
2069
|
};
|
|
2071
|
-
readonly
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
readonly
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
readonly
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
readonly
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2070
|
+
readonly given_name: {
|
|
2071
|
+
readonly getter: (document: any) => string;
|
|
2072
|
+
};
|
|
2073
|
+
readonly family_name: {
|
|
2074
|
+
readonly getter: (document: any) => string;
|
|
2075
|
+
};
|
|
2076
|
+
readonly active: {
|
|
2077
|
+
readonly type: "boolean";
|
|
2078
|
+
};
|
|
2079
|
+
readonly roles: {
|
|
2080
|
+
readonly type: "array";
|
|
2081
|
+
readonly items: {
|
|
2082
|
+
readonly type: "string";
|
|
2083
|
+
};
|
|
2084
|
+
readonly uniqueItems: true;
|
|
2085
|
+
};
|
|
2086
|
+
readonly email: {
|
|
2087
|
+
readonly type: "string";
|
|
2088
|
+
readonly inputType: "email";
|
|
2089
|
+
readonly unique: true;
|
|
2090
|
+
};
|
|
2091
|
+
readonly password: {
|
|
2092
|
+
readonly type: "string";
|
|
2093
|
+
readonly inputType: "password";
|
|
2094
|
+
readonly hidden: true;
|
|
2095
|
+
};
|
|
2096
|
+
readonly phone_number: {
|
|
2097
|
+
readonly type: "string";
|
|
2098
|
+
readonly mask: "(##) #####-####";
|
|
2099
|
+
};
|
|
2100
|
+
readonly picture_file: {
|
|
2101
|
+
readonly $ref: "file";
|
|
2102
|
+
readonly accept: readonly ["image/*"];
|
|
2103
|
+
};
|
|
2104
|
+
readonly picture: {
|
|
2105
|
+
readonly getter: (value: any) => any;
|
|
2106
|
+
};
|
|
2107
|
+
readonly group: {
|
|
2108
|
+
readonly type: "string";
|
|
2109
|
+
};
|
|
2110
|
+
readonly self_registered: {
|
|
2111
|
+
readonly type: "boolean";
|
|
2112
|
+
readonly readOnly: true;
|
|
2113
|
+
};
|
|
2114
|
+
readonly updated_at: {
|
|
2115
|
+
readonly type: "string";
|
|
2116
|
+
readonly format: "date-time";
|
|
2117
|
+
};
|
|
2096
2118
|
};
|
|
2097
|
-
readonly
|
|
2098
|
-
|
|
2099
|
-
readonly
|
|
2119
|
+
readonly presets: readonly ["crud", "view", "duplicate"];
|
|
2120
|
+
readonly layout: {
|
|
2121
|
+
readonly name: "grid";
|
|
2122
|
+
readonly options: {
|
|
2123
|
+
readonly title: "name";
|
|
2124
|
+
readonly badge: "roles";
|
|
2125
|
+
readonly picture: "picture_file";
|
|
2126
|
+
readonly information: "email";
|
|
2127
|
+
readonly active: "active";
|
|
2128
|
+
};
|
|
2100
2129
|
};
|
|
2101
|
-
readonly
|
|
2102
|
-
readonly
|
|
2103
|
-
|
|
2130
|
+
readonly individualActions: {
|
|
2131
|
+
readonly 'ui:spawnEdit': {
|
|
2132
|
+
readonly label: "action.edit";
|
|
2133
|
+
readonly icon: "pencil";
|
|
2134
|
+
readonly translate: true;
|
|
2135
|
+
};
|
|
2136
|
+
readonly 'route:/dashboard/user/changepass': {
|
|
2137
|
+
readonly label: "change_password";
|
|
2138
|
+
readonly icon: "key";
|
|
2139
|
+
readonly fetchItem: true;
|
|
2140
|
+
readonly translate: true;
|
|
2141
|
+
};
|
|
2104
2142
|
};
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
readonly
|
|
2109
|
-
readonly
|
|
2110
|
-
readonly
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2143
|
+
readonly icon: "users";
|
|
2144
|
+
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
2145
|
+
readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
|
|
2146
|
+
readonly tableMeta: readonly ["email"];
|
|
2147
|
+
readonly formLayout: {
|
|
2148
|
+
readonly fields: {
|
|
2149
|
+
readonly given_name: {
|
|
2150
|
+
readonly span: 3;
|
|
2151
|
+
};
|
|
2152
|
+
readonly family_name: {
|
|
2153
|
+
readonly span: 3;
|
|
2154
|
+
};
|
|
2155
|
+
};
|
|
2115
2156
|
};
|
|
2157
|
+
}>, "name" | "roles" | "email" | "active"> & {
|
|
2158
|
+
_id: import("@aeriajs/core").ObjectId | null;
|
|
2116
2159
|
};
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
readonly icon: "key";
|
|
2126
|
-
readonly fetchItem: true;
|
|
2127
|
-
readonly translate: true;
|
|
2128
|
-
};
|
|
2160
|
+
token: import("@aeriajs/types").TokenRecipient;
|
|
2161
|
+
} | {
|
|
2162
|
+
user: {
|
|
2163
|
+
_id: null;
|
|
2164
|
+
name: string;
|
|
2165
|
+
email: string;
|
|
2166
|
+
roles: string[];
|
|
2167
|
+
active: boolean;
|
|
2129
2168
|
};
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
readonly tableMeta: readonly ["email"];
|
|
2134
|
-
readonly formLayout: {
|
|
2135
|
-
readonly fields: {
|
|
2136
|
-
readonly given_name: {
|
|
2137
|
-
readonly span: 3;
|
|
2138
|
-
};
|
|
2139
|
-
readonly family_name: {
|
|
2140
|
-
readonly span: 3;
|
|
2141
|
-
};
|
|
2142
|
-
};
|
|
2169
|
+
token: {
|
|
2170
|
+
type: string;
|
|
2171
|
+
content: string;
|
|
2143
2172
|
};
|
|
2144
|
-
}>, "name" | "roles" | "email" | "active"> & {
|
|
2145
|
-
_id: import("@aeriajs/core").ObjectId | null;
|
|
2146
2173
|
};
|
|
2147
|
-
|
|
2148
|
-
} | import("@aeriajs/types").EndpointError<{
|
|
2149
|
-
readonly code: import("@aeriajs/types").ACError.AuthorizationError;
|
|
2150
|
-
} & {
|
|
2151
|
-
httpStatus: import("@aeriajs/types").HTTPStatus.Unauthorized;
|
|
2152
|
-
}> | {
|
|
2153
|
-
user: {
|
|
2154
|
-
_id: null;
|
|
2155
|
-
name: string;
|
|
2156
|
-
email: string;
|
|
2157
|
-
roles: string[];
|
|
2158
|
-
active: boolean;
|
|
2159
|
-
};
|
|
2160
|
-
token: {
|
|
2161
|
-
type: string;
|
|
2162
|
-
content: string;
|
|
2163
|
-
};
|
|
2164
|
-
} | import("@aeriajs/types").EndpointError<{
|
|
2174
|
+
} | import("../../../../types/dist/result.js").Result.Error<{
|
|
2165
2175
|
readonly code: import("./authenticate.js").AuthenticationError.InvalidCredentials;
|
|
2166
2176
|
} & {
|
|
2167
2177
|
httpStatus: import("@aeriajs/types").HTTPStatus.Unauthorized;
|
|
2168
|
-
}> | import("
|
|
2178
|
+
}> | import("../../../../types/dist/result.js").Result.Error<{
|
|
2169
2179
|
readonly code: import("./authenticate.js").AuthenticationError.InactiveUser;
|
|
2170
2180
|
} & {
|
|
2171
2181
|
httpStatus: import("@aeriajs/types").HTTPStatus.Unauthorized;
|
|
@@ -2271,15 +2281,15 @@ export declare const user: {
|
|
|
2271
2281
|
};
|
|
2272
2282
|
};
|
|
2273
2283
|
};
|
|
2274
|
-
}>) => Promise<import("@aeriajs/types").GenericResponse | import("
|
|
2284
|
+
}>) => Promise<import("@aeriajs/types").GenericResponse | import("../../../../types/dist/result.js").Result.Error<{
|
|
2275
2285
|
readonly code: import("./activate.js").ActivationError.InvalidLink;
|
|
2276
2286
|
} & {
|
|
2277
2287
|
httpStatus: import("@aeriajs/types").HTTPStatus.NotFound;
|
|
2278
|
-
}> | import("
|
|
2288
|
+
}> | import("../../../../types/dist/result.js").Result.Error<{
|
|
2279
2289
|
readonly code: import("./activate.js").ActivationError.UserNotFound;
|
|
2280
2290
|
} & {
|
|
2281
2291
|
httpStatus: import("@aeriajs/types").HTTPStatus.NotFound;
|
|
2282
|
-
}> | import("
|
|
2292
|
+
}> | import("../../../../types/dist/result.js").Result.Error<{
|
|
2283
2293
|
readonly code: import("./activate.js").ActivationError.AlreadyActiveUser;
|
|
2284
2294
|
} & {
|
|
2285
2295
|
httpStatus: import("@aeriajs/types").HTTPStatus.Forbidden;
|
|
@@ -2721,15 +2731,15 @@ export declare const user: {
|
|
|
2721
2731
|
};
|
|
2722
2732
|
};
|
|
2723
2733
|
};
|
|
2724
|
-
}>) => Promise<import("
|
|
2734
|
+
}>) => Promise<import("../../../../types/dist/result.js").Result.Error<{
|
|
2725
2735
|
readonly code: import("./getInfo.js").ActivationError.InvalidLink;
|
|
2726
2736
|
} & {
|
|
2727
2737
|
httpStatus: import("@aeriajs/types").HTTPStatus.NotFound;
|
|
2728
|
-
}> | import("
|
|
2738
|
+
}> | import("../../../../types/dist/result.js").Result.Error<{
|
|
2729
2739
|
readonly code: import("./getInfo.js").ActivationError.UserNotFound;
|
|
2730
2740
|
} & {
|
|
2731
2741
|
httpStatus: import("@aeriajs/types").HTTPStatus.NotFound;
|
|
2732
|
-
}> | import("
|
|
2742
|
+
}> | import("../../../../types/dist/result.js").Result.Error<{
|
|
2733
2743
|
readonly code: import("./getInfo.js").ActivationError.AlreadyActiveUser;
|
|
2734
2744
|
} & {
|
|
2735
2745
|
httpStatus: import("@aeriajs/types").HTTPStatus.Forbidden;
|