@aeriajs/builtins 0.0.264 → 0.0.265
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/description.d.ts +2 -0
- package/dist/collections/file/description.js +2 -0
- package/dist/collections/file/description.mjs +2 -0
- package/dist/collections/file/download.d.ts +1 -0
- package/dist/collections/file/index.d.ts +16 -0
- package/dist/collections/file/insert.d.ts +2 -0
- package/dist/collections/user/activate.d.ts +2 -0
- package/dist/collections/user/authenticate.d.ts +3 -0
- package/dist/collections/user/createAccount.d.ts +6 -0
- package/dist/collections/user/description.d.ts +3 -0
- package/dist/collections/user/description.js +3 -0
- package/dist/collections/user/description.mjs +3 -0
- package/dist/collections/user/editProfile.d.ts +5 -0
- package/dist/collections/user/getActivationLink.d.ts +3 -0
- package/dist/collections/user/getCurrentUser.d.ts +2 -0
- package/dist/collections/user/getInfo.d.ts +2 -0
- package/dist/collections/user/getRedefinePasswordLink.d.ts +3 -0
- package/dist/collections/user/index.d.ts +84 -0
- package/dist/collections/user/redefinePassword.d.ts +3 -0
- package/dist/index.d.ts +100 -0
- package/package.json +6 -6
|
@@ -30,9 +30,11 @@ export declare const description: {
|
|
|
30
30
|
readonly type: "boolean";
|
|
31
31
|
};
|
|
32
32
|
readonly link: {
|
|
33
|
+
readonly type: "getter";
|
|
33
34
|
readonly getter: (doc: object) => Promise<string | undefined>;
|
|
34
35
|
};
|
|
35
36
|
readonly download_link: {
|
|
37
|
+
readonly type: "getter";
|
|
36
38
|
readonly getter: (doc: object) => Promise<string | undefined>;
|
|
37
39
|
};
|
|
38
40
|
};
|
|
@@ -47,6 +47,7 @@ exports.description = (0, core_1.defineDescription)({
|
|
|
47
47
|
type: 'boolean',
|
|
48
48
|
},
|
|
49
49
|
link: {
|
|
50
|
+
type: 'getter',
|
|
50
51
|
getter: async (doc) => {
|
|
51
52
|
if ('_id' in doc && 'last_modified' in doc && doc._id instanceof mongodb_1.ObjectId) {
|
|
52
53
|
return `${await (0, exports.getFileLink)(doc._id)}/${timestamp(doc.last_modified)}`;
|
|
@@ -54,6 +55,7 @@ exports.description = (0, core_1.defineDescription)({
|
|
|
54
55
|
},
|
|
55
56
|
},
|
|
56
57
|
download_link: {
|
|
58
|
+
type: 'getter',
|
|
57
59
|
getter: async (doc) => {
|
|
58
60
|
if ('_id' in doc && 'last_modified' in doc && doc._id instanceof mongodb_1.ObjectId) {
|
|
59
61
|
return `${await (0, exports.getFileLink)(doc._id)}/download/${timestamp(doc.last_modified)}`;
|
|
@@ -42,6 +42,7 @@ export const description = defineDescription({
|
|
|
42
42
|
type: "boolean"
|
|
43
43
|
},
|
|
44
44
|
link: {
|
|
45
|
+
type: "getter",
|
|
45
46
|
getter: async (doc) => {
|
|
46
47
|
if ("_id" in doc && "last_modified" in doc && doc._id instanceof ObjectId) {
|
|
47
48
|
return `${await getFileLink(doc._id)}/${timestamp(doc.last_modified)}`;
|
|
@@ -49,6 +50,7 @@ export const description = defineDescription({
|
|
|
49
50
|
}
|
|
50
51
|
},
|
|
51
52
|
download_link: {
|
|
53
|
+
type: "getter",
|
|
52
54
|
getter: async (doc) => {
|
|
53
55
|
if ("_id" in doc && "last_modified" in doc && doc._id instanceof ObjectId) {
|
|
54
56
|
return `${await getFileLink(doc._id)}/download/${timestamp(doc.last_modified)}`;
|
|
@@ -96,9 +96,11 @@ export declare const file: {
|
|
|
96
96
|
readonly type: "boolean";
|
|
97
97
|
};
|
|
98
98
|
readonly link: {
|
|
99
|
+
readonly type: "getter";
|
|
99
100
|
readonly getter: (doc: object) => Promise<string | undefined>;
|
|
100
101
|
};
|
|
101
102
|
readonly download_link: {
|
|
103
|
+
readonly type: "getter";
|
|
102
104
|
readonly getter: (doc: object) => Promise<string | undefined>;
|
|
103
105
|
};
|
|
104
106
|
};
|
|
@@ -153,9 +155,11 @@ export declare const file: {
|
|
|
153
155
|
readonly type: "boolean";
|
|
154
156
|
};
|
|
155
157
|
readonly link: {
|
|
158
|
+
readonly type: "getter";
|
|
156
159
|
readonly getter: (doc: object) => Promise<string | undefined>;
|
|
157
160
|
};
|
|
158
161
|
readonly download_link: {
|
|
162
|
+
readonly type: "getter";
|
|
159
163
|
readonly getter: (doc: object) => Promise<string | undefined>;
|
|
160
164
|
};
|
|
161
165
|
};
|
|
@@ -238,9 +242,11 @@ export declare const file: {
|
|
|
238
242
|
readonly type: "boolean";
|
|
239
243
|
};
|
|
240
244
|
readonly link: {
|
|
245
|
+
readonly type: "getter";
|
|
241
246
|
readonly getter: (doc: object) => Promise<string | undefined>;
|
|
242
247
|
};
|
|
243
248
|
readonly download_link: {
|
|
249
|
+
readonly type: "getter";
|
|
244
250
|
readonly getter: (doc: object) => Promise<string | undefined>;
|
|
245
251
|
};
|
|
246
252
|
};
|
|
@@ -359,6 +365,7 @@ export declare const file: {
|
|
|
359
365
|
};
|
|
360
366
|
readonly result: {
|
|
361
367
|
readonly const: undefined;
|
|
368
|
+
readonly isConstUndefined: true;
|
|
362
369
|
};
|
|
363
370
|
readonly error: {
|
|
364
371
|
readonly type: "object";
|
|
@@ -417,9 +424,11 @@ export declare const file: {
|
|
|
417
424
|
readonly type: "boolean";
|
|
418
425
|
};
|
|
419
426
|
readonly link: {
|
|
427
|
+
readonly type: "getter";
|
|
420
428
|
readonly getter: (doc: object) => Promise<string | undefined>;
|
|
421
429
|
};
|
|
422
430
|
readonly download_link: {
|
|
431
|
+
readonly type: "getter";
|
|
423
432
|
readonly getter: (doc: object) => Promise<string | undefined>;
|
|
424
433
|
};
|
|
425
434
|
};
|
|
@@ -468,9 +477,11 @@ export declare const file: {
|
|
|
468
477
|
readonly type: "boolean";
|
|
469
478
|
};
|
|
470
479
|
readonly link: {
|
|
480
|
+
readonly type: "getter";
|
|
471
481
|
readonly getter: (doc: object) => Promise<string | undefined>;
|
|
472
482
|
};
|
|
473
483
|
readonly download_link: {
|
|
484
|
+
readonly type: "getter";
|
|
474
485
|
readonly getter: (doc: object) => Promise<string | undefined>;
|
|
475
486
|
};
|
|
476
487
|
};
|
|
@@ -525,9 +536,11 @@ export declare const file: {
|
|
|
525
536
|
readonly type: "boolean";
|
|
526
537
|
};
|
|
527
538
|
readonly link: {
|
|
539
|
+
readonly type: "getter";
|
|
528
540
|
readonly getter: (doc: object) => Promise<string | undefined>;
|
|
529
541
|
};
|
|
530
542
|
readonly download_link: {
|
|
543
|
+
readonly type: "getter";
|
|
531
544
|
readonly getter: (doc: object) => Promise<string | undefined>;
|
|
532
545
|
};
|
|
533
546
|
};
|
|
@@ -610,9 +623,11 @@ export declare const file: {
|
|
|
610
623
|
readonly type: "boolean";
|
|
611
624
|
};
|
|
612
625
|
readonly link: {
|
|
626
|
+
readonly type: "getter";
|
|
613
627
|
readonly getter: (doc: object) => Promise<string | undefined>;
|
|
614
628
|
};
|
|
615
629
|
readonly download_link: {
|
|
630
|
+
readonly type: "getter";
|
|
616
631
|
readonly getter: (doc: object) => Promise<string | undefined>;
|
|
617
632
|
};
|
|
618
633
|
};
|
|
@@ -724,6 +739,7 @@ export declare const file: {
|
|
|
724
739
|
};
|
|
725
740
|
readonly result: {
|
|
726
741
|
readonly const: undefined;
|
|
742
|
+
readonly isConstUndefined: true;
|
|
727
743
|
};
|
|
728
744
|
readonly error: {
|
|
729
745
|
readonly type: "object";
|
|
@@ -34,9 +34,11 @@ export declare const insert: (payload: {
|
|
|
34
34
|
readonly type: "boolean";
|
|
35
35
|
};
|
|
36
36
|
readonly link: {
|
|
37
|
+
readonly type: "getter";
|
|
37
38
|
readonly getter: (doc: object) => Promise<string | undefined>;
|
|
38
39
|
};
|
|
39
40
|
readonly download_link: {
|
|
41
|
+
readonly type: "getter";
|
|
40
42
|
readonly getter: (doc: object) => Promise<string | undefined>;
|
|
41
43
|
};
|
|
42
44
|
};
|
|
@@ -30,6 +30,7 @@ export declare const activateContract: {
|
|
|
30
30
|
};
|
|
31
31
|
readonly result: {
|
|
32
32
|
readonly const: undefined;
|
|
33
|
+
readonly isConstUndefined: true;
|
|
33
34
|
};
|
|
34
35
|
readonly error: {
|
|
35
36
|
readonly type: "object";
|
|
@@ -59,6 +60,7 @@ export declare const activateContract: {
|
|
|
59
60
|
};
|
|
60
61
|
readonly error: {
|
|
61
62
|
readonly const: undefined;
|
|
63
|
+
readonly isConstUndefined: true;
|
|
62
64
|
};
|
|
63
65
|
readonly result: {
|
|
64
66
|
readonly type: "object";
|
|
@@ -35,6 +35,7 @@ export declare const authenticateContract: {
|
|
|
35
35
|
};
|
|
36
36
|
readonly result: {
|
|
37
37
|
readonly const: undefined;
|
|
38
|
+
readonly isConstUndefined: true;
|
|
38
39
|
};
|
|
39
40
|
readonly error: {
|
|
40
41
|
readonly type: "object";
|
|
@@ -64,6 +65,7 @@ export declare const authenticateContract: {
|
|
|
64
65
|
};
|
|
65
66
|
readonly error: {
|
|
66
67
|
readonly const: undefined;
|
|
68
|
+
readonly isConstUndefined: true;
|
|
67
69
|
};
|
|
68
70
|
readonly result: {
|
|
69
71
|
readonly type: "object";
|
|
@@ -93,6 +95,7 @@ export declare const authenticateContract: {
|
|
|
93
95
|
};
|
|
94
96
|
readonly error: {
|
|
95
97
|
readonly const: undefined;
|
|
98
|
+
readonly isConstUndefined: true;
|
|
96
99
|
};
|
|
97
100
|
readonly result: {
|
|
98
101
|
readonly type: "object";
|
|
@@ -14,9 +14,11 @@ export declare const createAccountContract: {
|
|
|
14
14
|
readonly minLength: 1;
|
|
15
15
|
};
|
|
16
16
|
readonly given_name: {
|
|
17
|
+
readonly type: "getter";
|
|
17
18
|
readonly getter: (doc: object) => string | undefined;
|
|
18
19
|
};
|
|
19
20
|
readonly family_name: {
|
|
21
|
+
readonly type: "getter";
|
|
20
22
|
readonly getter: (doc: object) => string | undefined;
|
|
21
23
|
};
|
|
22
24
|
readonly active: {
|
|
@@ -49,6 +51,7 @@ export declare const createAccountContract: {
|
|
|
49
51
|
readonly accept: readonly ["image/*"];
|
|
50
52
|
};
|
|
51
53
|
readonly picture: {
|
|
54
|
+
readonly type: "getter";
|
|
52
55
|
readonly getter: (doc: object) => Promise<string> | undefined;
|
|
53
56
|
};
|
|
54
57
|
readonly self_registered: {
|
|
@@ -69,6 +72,7 @@ export declare const createAccountContract: {
|
|
|
69
72
|
};
|
|
70
73
|
readonly result: {
|
|
71
74
|
readonly const: undefined;
|
|
75
|
+
readonly isConstUndefined: true;
|
|
72
76
|
};
|
|
73
77
|
readonly error: {
|
|
74
78
|
readonly type: "object";
|
|
@@ -98,6 +102,7 @@ export declare const createAccountContract: {
|
|
|
98
102
|
};
|
|
99
103
|
readonly result: {
|
|
100
104
|
readonly const: undefined;
|
|
105
|
+
readonly isConstUndefined: true;
|
|
101
106
|
};
|
|
102
107
|
readonly error: {
|
|
103
108
|
readonly type: "object";
|
|
@@ -127,6 +132,7 @@ export declare const createAccountContract: {
|
|
|
127
132
|
};
|
|
128
133
|
readonly error: {
|
|
129
134
|
readonly const: undefined;
|
|
135
|
+
readonly isConstUndefined: true;
|
|
130
136
|
};
|
|
131
137
|
readonly result: {
|
|
132
138
|
readonly $ref: "user";
|
|
@@ -15,9 +15,11 @@ export declare const description: {
|
|
|
15
15
|
readonly minLength: 1;
|
|
16
16
|
};
|
|
17
17
|
readonly given_name: {
|
|
18
|
+
readonly type: "getter";
|
|
18
19
|
readonly getter: (doc: object) => string | undefined;
|
|
19
20
|
};
|
|
20
21
|
readonly family_name: {
|
|
22
|
+
readonly type: "getter";
|
|
21
23
|
readonly getter: (doc: object) => string | undefined;
|
|
22
24
|
};
|
|
23
25
|
readonly active: {
|
|
@@ -50,6 +52,7 @@ export declare const description: {
|
|
|
50
52
|
readonly accept: readonly ["image/*"];
|
|
51
53
|
};
|
|
52
54
|
readonly picture: {
|
|
55
|
+
readonly type: "getter";
|
|
53
56
|
readonly getter: (doc: object) => Promise<string> | undefined;
|
|
54
57
|
};
|
|
55
58
|
readonly self_registered: {
|
|
@@ -31,6 +31,7 @@ exports.description = (0, core_1.defineDescription)({
|
|
|
31
31
|
minLength: 1,
|
|
32
32
|
},
|
|
33
33
|
given_name: {
|
|
34
|
+
type: 'getter',
|
|
34
35
|
getter: (doc) => {
|
|
35
36
|
if ('name' in doc && typeof doc.name === 'string') {
|
|
36
37
|
return doc.name.split(' ')[0];
|
|
@@ -38,6 +39,7 @@ exports.description = (0, core_1.defineDescription)({
|
|
|
38
39
|
},
|
|
39
40
|
},
|
|
40
41
|
family_name: {
|
|
42
|
+
type: 'getter',
|
|
41
43
|
getter: (doc) => {
|
|
42
44
|
if ('name' in doc && typeof doc.name === 'string') {
|
|
43
45
|
return doc.name.split(' ')[1];
|
|
@@ -74,6 +76,7 @@ exports.description = (0, core_1.defineDescription)({
|
|
|
74
76
|
accept: ['image/*'],
|
|
75
77
|
},
|
|
76
78
|
picture: {
|
|
79
|
+
type: 'getter',
|
|
77
80
|
getter: (doc) => {
|
|
78
81
|
if ('picture_file' in doc && doc.picture_file && typeof doc.picture_file === 'object' && '_id' in doc.picture_file && doc.picture_file._id instanceof core_1.ObjectId) {
|
|
79
82
|
return (0, description_js_1.getFileLink)(doc.picture_file._id);
|
|
@@ -25,6 +25,7 @@ export const description = defineDescription({
|
|
|
25
25
|
minLength: 1
|
|
26
26
|
},
|
|
27
27
|
given_name: {
|
|
28
|
+
type: "getter",
|
|
28
29
|
getter: (doc) => {
|
|
29
30
|
if ("name" in doc && typeof doc.name === "string") {
|
|
30
31
|
return doc.name.split(" ")[0];
|
|
@@ -32,6 +33,7 @@ export const description = defineDescription({
|
|
|
32
33
|
}
|
|
33
34
|
},
|
|
34
35
|
family_name: {
|
|
36
|
+
type: "getter",
|
|
35
37
|
getter: (doc) => {
|
|
36
38
|
if ("name" in doc && typeof doc.name === "string") {
|
|
37
39
|
return doc.name.split(" ")[1];
|
|
@@ -68,6 +70,7 @@ export const description = defineDescription({
|
|
|
68
70
|
accept: ["image/*"]
|
|
69
71
|
},
|
|
70
72
|
picture: {
|
|
73
|
+
type: "getter",
|
|
71
74
|
getter: (doc) => {
|
|
72
75
|
if ("picture_file" in doc && doc.picture_file && typeof doc.picture_file === "object" && "_id" in doc.picture_file && doc.picture_file._id instanceof ObjectId) {
|
|
73
76
|
return getFileLink(doc.picture_file._id);
|
|
@@ -14,9 +14,11 @@ export declare const editProfileContract: {
|
|
|
14
14
|
readonly minLength: 1;
|
|
15
15
|
};
|
|
16
16
|
readonly given_name: {
|
|
17
|
+
readonly type: "getter";
|
|
17
18
|
readonly getter: (doc: object) => string | undefined;
|
|
18
19
|
};
|
|
19
20
|
readonly family_name: {
|
|
21
|
+
readonly type: "getter";
|
|
20
22
|
readonly getter: (doc: object) => string | undefined;
|
|
21
23
|
};
|
|
22
24
|
readonly active: {
|
|
@@ -45,6 +47,7 @@ export declare const editProfileContract: {
|
|
|
45
47
|
readonly mask: "(##) #####-####";
|
|
46
48
|
};
|
|
47
49
|
readonly picture: {
|
|
50
|
+
readonly type: "getter";
|
|
48
51
|
readonly getter: (doc: object) => Promise<string> | undefined;
|
|
49
52
|
};
|
|
50
53
|
readonly self_registered: {
|
|
@@ -65,6 +68,7 @@ export declare const editProfileContract: {
|
|
|
65
68
|
};
|
|
66
69
|
readonly result: {
|
|
67
70
|
readonly const: undefined;
|
|
71
|
+
readonly isConstUndefined: true;
|
|
68
72
|
};
|
|
69
73
|
readonly error: {
|
|
70
74
|
readonly type: "object";
|
|
@@ -94,6 +98,7 @@ export declare const editProfileContract: {
|
|
|
94
98
|
};
|
|
95
99
|
readonly error: {
|
|
96
100
|
readonly const: undefined;
|
|
101
|
+
readonly isConstUndefined: true;
|
|
97
102
|
};
|
|
98
103
|
readonly result: {
|
|
99
104
|
readonly $ref: "user";
|
|
@@ -22,6 +22,7 @@ export declare const getActivationLinkContract: {
|
|
|
22
22
|
};
|
|
23
23
|
readonly result: {
|
|
24
24
|
readonly const: undefined;
|
|
25
|
+
readonly isConstUndefined: true;
|
|
25
26
|
};
|
|
26
27
|
readonly error: {
|
|
27
28
|
readonly type: "object";
|
|
@@ -51,6 +52,7 @@ export declare const getActivationLinkContract: {
|
|
|
51
52
|
};
|
|
52
53
|
readonly result: {
|
|
53
54
|
readonly const: undefined;
|
|
55
|
+
readonly isConstUndefined: true;
|
|
54
56
|
};
|
|
55
57
|
readonly error: {
|
|
56
58
|
readonly type: "object";
|
|
@@ -80,6 +82,7 @@ export declare const getActivationLinkContract: {
|
|
|
80
82
|
};
|
|
81
83
|
readonly error: {
|
|
82
84
|
readonly const: undefined;
|
|
85
|
+
readonly isConstUndefined: true;
|
|
83
86
|
};
|
|
84
87
|
readonly result: {
|
|
85
88
|
readonly type: "object";
|
|
@@ -14,6 +14,7 @@ export declare const getCurrentUserContract: {
|
|
|
14
14
|
};
|
|
15
15
|
readonly error: {
|
|
16
16
|
readonly const: undefined;
|
|
17
|
+
readonly isConstUndefined: true;
|
|
17
18
|
};
|
|
18
19
|
readonly result: {
|
|
19
20
|
readonly $ref: "user";
|
|
@@ -27,6 +28,7 @@ export declare const getCurrentUserContract: {
|
|
|
27
28
|
};
|
|
28
29
|
readonly error: {
|
|
29
30
|
readonly const: undefined;
|
|
31
|
+
readonly isConstUndefined: true;
|
|
30
32
|
};
|
|
31
33
|
readonly result: {
|
|
32
34
|
readonly type: "object";
|
|
@@ -27,6 +27,7 @@ export declare const getInfoContract: {
|
|
|
27
27
|
};
|
|
28
28
|
readonly result: {
|
|
29
29
|
readonly const: undefined;
|
|
30
|
+
readonly isConstUndefined: true;
|
|
30
31
|
};
|
|
31
32
|
readonly error: {
|
|
32
33
|
readonly type: "object";
|
|
@@ -56,6 +57,7 @@ export declare const getInfoContract: {
|
|
|
56
57
|
};
|
|
57
58
|
readonly error: {
|
|
58
59
|
readonly const: undefined;
|
|
60
|
+
readonly isConstUndefined: true;
|
|
59
61
|
};
|
|
60
62
|
readonly result: {
|
|
61
63
|
readonly type: "object";
|
|
@@ -22,6 +22,7 @@ export declare const getRedefinePasswordLinkContract: {
|
|
|
22
22
|
};
|
|
23
23
|
readonly result: {
|
|
24
24
|
readonly const: undefined;
|
|
25
|
+
readonly isConstUndefined: true;
|
|
25
26
|
};
|
|
26
27
|
readonly error: {
|
|
27
28
|
readonly type: "object";
|
|
@@ -51,6 +52,7 @@ export declare const getRedefinePasswordLinkContract: {
|
|
|
51
52
|
};
|
|
52
53
|
readonly result: {
|
|
53
54
|
readonly const: undefined;
|
|
55
|
+
readonly isConstUndefined: true;
|
|
54
56
|
};
|
|
55
57
|
readonly error: {
|
|
56
58
|
readonly type: "object";
|
|
@@ -80,6 +82,7 @@ export declare const getRedefinePasswordLinkContract: {
|
|
|
80
82
|
};
|
|
81
83
|
readonly error: {
|
|
82
84
|
readonly const: undefined;
|
|
85
|
+
readonly isConstUndefined: true;
|
|
83
86
|
};
|
|
84
87
|
readonly result: {
|
|
85
88
|
readonly type: "object";
|