@laboratoria/sdk-js 1.6.0 → 2.0.0-alpha.2
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/index.js +2 -0
- package/lib/core.js +14 -2
- package/package.json +1 -1
package/index.js
CHANGED
@@ -4,6 +4,7 @@ import {
|
|
4
4
|
onAuthStateChanged,
|
5
5
|
signInWithEmailAndPassword,
|
6
6
|
signOut,
|
7
|
+
sendPasswordResetEmail,
|
7
8
|
} from 'firebase/auth';
|
8
9
|
import { createAPI as createCoreAPI } from './lib/core';
|
9
10
|
import { createAPI as createCurriculumAPI } from './lib/curriculum';
|
@@ -52,6 +53,7 @@ export const createApp = ({
|
|
52
53
|
password,
|
53
54
|
),
|
54
55
|
signOut: () => signOut(firebaseAuth),
|
56
|
+
sendPasswordResetEmail: email => sendPasswordResetEmail(firebaseAuth, email),
|
55
57
|
};
|
56
58
|
|
57
59
|
return {
|
package/lib/core.js
CHANGED
@@ -19,6 +19,11 @@ const extended = {
|
|
19
19
|
'github',
|
20
20
|
'linkedin',
|
21
21
|
'bio',
|
22
|
+
'countryOfResidence',
|
23
|
+
'countryOfOrigin',
|
24
|
+
'workStatus',
|
25
|
+
'educationStatus',
|
26
|
+
'phone',
|
22
27
|
'role',
|
23
28
|
'signupCohort',
|
24
29
|
'disabled',
|
@@ -66,7 +71,9 @@ const extended = {
|
|
66
71
|
'name',
|
67
72
|
'start',
|
68
73
|
'end',
|
69
|
-
'
|
74
|
+
'vacancies',
|
75
|
+
'placementStart',
|
76
|
+
'placementDuration',
|
70
77
|
],
|
71
78
|
searchProps: ['name'],
|
72
79
|
getOptionLabel: ({ id, name, stage }) => (
|
@@ -75,7 +82,7 @@ const extended = {
|
|
75
82
|
properties: {},
|
76
83
|
parse: (props) => {
|
77
84
|
const now = Date.now();
|
78
|
-
// TODO: Handle case where start and/or end have not been
|
85
|
+
// TODO: Handle case where start and/or end have not been selected in query
|
79
86
|
const status = (
|
80
87
|
props.start > now
|
81
88
|
? 'upcoming'
|
@@ -151,6 +158,11 @@ const extended = {
|
|
151
158
|
'end',
|
152
159
|
],
|
153
160
|
},
|
161
|
+
Application: {
|
162
|
+
inputProps: [
|
163
|
+
// ...
|
164
|
+
],
|
165
|
+
},
|
154
166
|
};
|
155
167
|
|
156
168
|
export const createAPI = (url, state) => createModels(url, state, {
|