@laboratoria/sdk-js 2.4.0 → 2.5.0
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/laboratoria-sdk-esm.js +1 -1
- package/dist/laboratoria-sdk-umd.js +1 -1
- package/lib/core.js +5 -12
- package/package.json +4 -4
- package/schemas/core.json +137 -27
package/lib/core.js
CHANGED
@@ -19,11 +19,6 @@ const extended = {
|
|
19
19
|
'github',
|
20
20
|
'linkedin',
|
21
21
|
'bio',
|
22
|
-
// 'countryOfResidence',
|
23
|
-
// 'countryOfOrigin',
|
24
|
-
// 'workStatus',
|
25
|
-
// 'educationStatus',
|
26
|
-
// 'phone',
|
27
22
|
'role',
|
28
23
|
'signupCohort',
|
29
24
|
'disabled',
|
@@ -73,8 +68,9 @@ const extended = {
|
|
73
68
|
'start',
|
74
69
|
'end',
|
75
70
|
'vacancies',
|
71
|
+
'admissionStart',
|
72
|
+
'admissionEnd',
|
76
73
|
'placementStart',
|
77
|
-
'placementDuration',
|
78
74
|
],
|
79
75
|
searchProps: ['name'],
|
80
76
|
getOptionLabel: ({ id, name, stage }) => (
|
@@ -162,12 +158,9 @@ const extended = {
|
|
162
158
|
Application: {
|
163
159
|
inputProps: [
|
164
160
|
'cohort',
|
165
|
-
'
|
166
|
-
|
167
|
-
|
168
|
-
// 'educationStatus',
|
169
|
-
// 'phone',
|
170
|
-
// 'countryOfResidence',
|
161
|
+
'country',
|
162
|
+
'city',
|
163
|
+
'referralSource',
|
171
164
|
],
|
172
165
|
},
|
173
166
|
};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@laboratoria/sdk-js",
|
3
|
-
"version": "2.
|
3
|
+
"version": "2.5.0",
|
4
4
|
"description": "Laboratoria JavaScript (browser) SDK",
|
5
5
|
"license": "MIT",
|
6
6
|
"scripts": {
|
@@ -16,9 +16,9 @@
|
|
16
16
|
"devDependencies": {
|
17
17
|
"@babel/core": "^7.18.13",
|
18
18
|
"@babel/plugin-transform-modules-commonjs": "^7.18.6",
|
19
|
-
"babel-jest": "^
|
20
|
-
"jest": "^
|
21
|
-
"jest-environment-jsdom": "^
|
19
|
+
"babel-jest": "^29.0.1",
|
20
|
+
"jest": "^29.0.1",
|
21
|
+
"jest-environment-jsdom": "^29.0.1",
|
22
22
|
"webpack": "^5.74.0",
|
23
23
|
"webpack-cli": "^4.10.0"
|
24
24
|
},
|
package/schemas/core.json
CHANGED
@@ -15,6 +15,18 @@
|
|
15
15
|
"items": {
|
16
16
|
"$ref": "#/definitions/Contract"
|
17
17
|
}
|
18
|
+
},
|
19
|
+
"users": {
|
20
|
+
"type": "array",
|
21
|
+
"items": {
|
22
|
+
"$ref": "#/definitions/User"
|
23
|
+
}
|
24
|
+
},
|
25
|
+
"applications": {
|
26
|
+
"type": "array",
|
27
|
+
"items": {
|
28
|
+
"$ref": "#/definitions/Application"
|
29
|
+
}
|
18
30
|
}
|
19
31
|
}
|
20
32
|
},
|
@@ -50,24 +62,6 @@
|
|
50
62
|
"null"
|
51
63
|
]
|
52
64
|
},
|
53
|
-
"github": {
|
54
|
-
"type": [
|
55
|
-
"string",
|
56
|
-
"null"
|
57
|
-
]
|
58
|
-
},
|
59
|
-
"linkedin": {
|
60
|
-
"type": [
|
61
|
-
"string",
|
62
|
-
"null"
|
63
|
-
]
|
64
|
-
},
|
65
|
-
"bio": {
|
66
|
-
"type": [
|
67
|
-
"string",
|
68
|
-
"null"
|
69
|
-
]
|
70
|
-
},
|
71
65
|
"role": {
|
72
66
|
"type": [
|
73
67
|
"string",
|
@@ -95,6 +89,52 @@
|
|
95
89
|
"pt"
|
96
90
|
]
|
97
91
|
},
|
92
|
+
"city": {
|
93
|
+
"type": [
|
94
|
+
"string",
|
95
|
+
"null"
|
96
|
+
]
|
97
|
+
},
|
98
|
+
"identificationNumber": {
|
99
|
+
"type": [
|
100
|
+
"string",
|
101
|
+
"null"
|
102
|
+
]
|
103
|
+
},
|
104
|
+
"mobileNumber": {
|
105
|
+
"type": [
|
106
|
+
"string",
|
107
|
+
"null"
|
108
|
+
]
|
109
|
+
},
|
110
|
+
"github": {
|
111
|
+
"type": [
|
112
|
+
"string",
|
113
|
+
"null"
|
114
|
+
]
|
115
|
+
},
|
116
|
+
"linkedin": {
|
117
|
+
"type": [
|
118
|
+
"string",
|
119
|
+
"null"
|
120
|
+
]
|
121
|
+
},
|
122
|
+
"bio": {
|
123
|
+
"type": [
|
124
|
+
"string",
|
125
|
+
"null"
|
126
|
+
]
|
127
|
+
},
|
128
|
+
"country": {
|
129
|
+
"anyOf": [
|
130
|
+
{
|
131
|
+
"$ref": "#/definitions/Country"
|
132
|
+
},
|
133
|
+
{
|
134
|
+
"type": "null"
|
135
|
+
}
|
136
|
+
]
|
137
|
+
},
|
98
138
|
"signupCohort": {
|
99
139
|
"anyOf": [
|
100
140
|
{
|
@@ -268,6 +308,17 @@
|
|
268
308
|
"name": {
|
269
309
|
"type": "string"
|
270
310
|
},
|
311
|
+
"lang": {
|
312
|
+
"type": [
|
313
|
+
"string",
|
314
|
+
"null"
|
315
|
+
],
|
316
|
+
"enum": [
|
317
|
+
"en",
|
318
|
+
"es",
|
319
|
+
"pt"
|
320
|
+
]
|
321
|
+
},
|
271
322
|
"start": {
|
272
323
|
"type": "string",
|
273
324
|
"format": "date-time"
|
@@ -285,28 +336,31 @@
|
|
285
336
|
"null"
|
286
337
|
]
|
287
338
|
},
|
288
|
-
"
|
339
|
+
"admissionStart": {
|
289
340
|
"type": [
|
290
|
-
"
|
341
|
+
"string",
|
291
342
|
"null"
|
292
|
-
]
|
343
|
+
],
|
344
|
+
"format": "date-time"
|
293
345
|
},
|
294
|
-
"
|
346
|
+
"admissionEnd": {
|
295
347
|
"type": [
|
296
348
|
"string",
|
297
349
|
"null"
|
298
350
|
],
|
299
351
|
"format": "date-time"
|
300
352
|
},
|
301
|
-
"
|
353
|
+
"placementStart": {
|
302
354
|
"type": [
|
303
355
|
"string",
|
304
356
|
"null"
|
305
357
|
],
|
306
|
-
"
|
307
|
-
|
308
|
-
|
309
|
-
|
358
|
+
"format": "date-time"
|
359
|
+
},
|
360
|
+
"placementDuration": {
|
361
|
+
"type": [
|
362
|
+
"integer",
|
363
|
+
"null"
|
310
364
|
]
|
311
365
|
},
|
312
366
|
"program": {
|
@@ -502,11 +556,67 @@
|
|
502
556
|
"null"
|
503
557
|
]
|
504
558
|
},
|
559
|
+
"city": {
|
560
|
+
"type": [
|
561
|
+
"string",
|
562
|
+
"null"
|
563
|
+
]
|
564
|
+
},
|
565
|
+
"identificationNumber": {
|
566
|
+
"type": [
|
567
|
+
"string",
|
568
|
+
"null"
|
569
|
+
]
|
570
|
+
},
|
571
|
+
"mobileNumber": {
|
572
|
+
"type": [
|
573
|
+
"string",
|
574
|
+
"null"
|
575
|
+
]
|
576
|
+
},
|
577
|
+
"referralSource": {
|
578
|
+
"type": [
|
579
|
+
"string",
|
580
|
+
"null"
|
581
|
+
],
|
582
|
+
"enum": [
|
583
|
+
"word_of_mouth",
|
584
|
+
"codigo_m",
|
585
|
+
"social",
|
586
|
+
"google",
|
587
|
+
"print",
|
588
|
+
"tv",
|
589
|
+
"radio",
|
590
|
+
"other"
|
591
|
+
]
|
592
|
+
},
|
593
|
+
"isReturningApplicant": {
|
594
|
+
"type": [
|
595
|
+
"boolean",
|
596
|
+
"null"
|
597
|
+
]
|
598
|
+
},
|
599
|
+
"legacyAdmissionCohortSlug": {
|
600
|
+
"type": [
|
601
|
+
"string",
|
602
|
+
"null"
|
603
|
+
]
|
604
|
+
},
|
505
605
|
"cohort": {
|
506
606
|
"$ref": "#/definitions/Cohort"
|
507
607
|
},
|
508
608
|
"user": {
|
509
609
|
"$ref": "#/definitions/User"
|
610
|
+
},
|
611
|
+
"country": {
|
612
|
+
"anyOf": [
|
613
|
+
{
|
614
|
+
"$ref": "#/definitions/Country"
|
615
|
+
},
|
616
|
+
{
|
617
|
+
"type": "null"
|
618
|
+
}
|
619
|
+
]
|
510
620
|
}
|
511
621
|
}
|
512
622
|
},
|