@laboratoria/sdk-js 1.5.2 → 1.7.1
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/package.json +8 -7
- package/schemas/core.json +205 -12
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@laboratoria/sdk-js",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.1",
|
|
4
4
|
"description": "Laboratoria JavaScript (browser) SDK",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "jest --verbose --coverage",
|
|
@@ -9,14 +9,15 @@
|
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"blueimp-md5": "^2.19.0",
|
|
12
|
-
"firebase": "^9.
|
|
12
|
+
"firebase": "^9.8.2"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"@babel/core": "^7.
|
|
16
|
-
"@babel/plugin-transform-modules-commonjs": "^7.
|
|
17
|
-
"babel-jest": "^
|
|
18
|
-
"jest": "^
|
|
19
|
-
"
|
|
15
|
+
"@babel/core": "^7.18.2",
|
|
16
|
+
"@babel/plugin-transform-modules-commonjs": "^7.18.2",
|
|
17
|
+
"babel-jest": "^28.1.0",
|
|
18
|
+
"jest": "^28.1.0",
|
|
19
|
+
"jest-environment-jsdom": "^28.1.0",
|
|
20
|
+
"webpack": "^5.73.0",
|
|
20
21
|
"webpack-cli": "^4.9.2"
|
|
21
22
|
},
|
|
22
23
|
"jest": {
|
package/schemas/core.json
CHANGED
|
@@ -15,6 +15,24 @@
|
|
|
15
15
|
"items": {
|
|
16
16
|
"$ref": "#/definitions/Contract"
|
|
17
17
|
}
|
|
18
|
+
},
|
|
19
|
+
"usersResidence": {
|
|
20
|
+
"type": "array",
|
|
21
|
+
"items": {
|
|
22
|
+
"$ref": "#/definitions/User"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"usersOrigin": {
|
|
26
|
+
"type": "array",
|
|
27
|
+
"items": {
|
|
28
|
+
"$ref": "#/definitions/User"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"applications": {
|
|
32
|
+
"type": "array",
|
|
33
|
+
"items": {
|
|
34
|
+
"$ref": "#/definitions/Application"
|
|
35
|
+
}
|
|
18
36
|
}
|
|
19
37
|
}
|
|
20
38
|
},
|
|
@@ -95,6 +113,44 @@
|
|
|
95
113
|
"type": "boolean",
|
|
96
114
|
"default": false
|
|
97
115
|
},
|
|
116
|
+
"workStatus": {
|
|
117
|
+
"type": [
|
|
118
|
+
"string",
|
|
119
|
+
"null"
|
|
120
|
+
],
|
|
121
|
+
"enum": [
|
|
122
|
+
"student",
|
|
123
|
+
"intern",
|
|
124
|
+
"unemployed",
|
|
125
|
+
"fulltime",
|
|
126
|
+
"partime",
|
|
127
|
+
"freelance",
|
|
128
|
+
"selfemployed"
|
|
129
|
+
]
|
|
130
|
+
},
|
|
131
|
+
"educationStatus": {
|
|
132
|
+
"type": [
|
|
133
|
+
"string",
|
|
134
|
+
"null"
|
|
135
|
+
],
|
|
136
|
+
"enum": [
|
|
137
|
+
"ISCED_0",
|
|
138
|
+
"ISCED_1",
|
|
139
|
+
"ISCED_2",
|
|
140
|
+
"ISCED_3",
|
|
141
|
+
"ISCED_4",
|
|
142
|
+
"ISCED_5",
|
|
143
|
+
"ISCED_6",
|
|
144
|
+
"ISCED_7",
|
|
145
|
+
"ISCED_8"
|
|
146
|
+
]
|
|
147
|
+
},
|
|
148
|
+
"phone": {
|
|
149
|
+
"type": [
|
|
150
|
+
"string",
|
|
151
|
+
"null"
|
|
152
|
+
]
|
|
153
|
+
},
|
|
98
154
|
"students": {
|
|
99
155
|
"type": "array",
|
|
100
156
|
"items": {
|
|
@@ -134,6 +190,32 @@
|
|
|
134
190
|
"items": {
|
|
135
191
|
"$ref": "#/definitions/Gig"
|
|
136
192
|
}
|
|
193
|
+
},
|
|
194
|
+
"applications": {
|
|
195
|
+
"type": "array",
|
|
196
|
+
"items": {
|
|
197
|
+
"$ref": "#/definitions/Application"
|
|
198
|
+
}
|
|
199
|
+
},
|
|
200
|
+
"countryOfResidence": {
|
|
201
|
+
"anyOf": [
|
|
202
|
+
{
|
|
203
|
+
"$ref": "#/definitions/Country"
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
"type": "null"
|
|
207
|
+
}
|
|
208
|
+
]
|
|
209
|
+
},
|
|
210
|
+
"countryOfOrigin": {
|
|
211
|
+
"anyOf": [
|
|
212
|
+
{
|
|
213
|
+
"$ref": "#/definitions/Country"
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"type": "null"
|
|
217
|
+
}
|
|
218
|
+
]
|
|
137
219
|
}
|
|
138
220
|
}
|
|
139
221
|
},
|
|
@@ -253,6 +335,17 @@
|
|
|
253
335
|
"null"
|
|
254
336
|
]
|
|
255
337
|
},
|
|
338
|
+
"lang": {
|
|
339
|
+
"type": [
|
|
340
|
+
"string",
|
|
341
|
+
"null"
|
|
342
|
+
],
|
|
343
|
+
"enum": [
|
|
344
|
+
"en",
|
|
345
|
+
"es",
|
|
346
|
+
"pt"
|
|
347
|
+
]
|
|
348
|
+
},
|
|
256
349
|
"name": {
|
|
257
350
|
"type": "string"
|
|
258
351
|
},
|
|
@@ -270,10 +363,6 @@
|
|
|
270
363
|
"null"
|
|
271
364
|
]
|
|
272
365
|
},
|
|
273
|
-
"publicAdmission": {
|
|
274
|
-
"type": "boolean",
|
|
275
|
-
"default": false
|
|
276
|
-
},
|
|
277
366
|
"placementStart": {
|
|
278
367
|
"type": [
|
|
279
368
|
"string",
|
|
@@ -287,34 +376,44 @@
|
|
|
287
376
|
"null"
|
|
288
377
|
]
|
|
289
378
|
},
|
|
379
|
+
"publicAdmission": {
|
|
380
|
+
"type": "boolean",
|
|
381
|
+
"default": false
|
|
382
|
+
},
|
|
290
383
|
"program": {
|
|
291
384
|
"$ref": "#/definitions/Program"
|
|
292
385
|
},
|
|
293
386
|
"stage": {
|
|
294
387
|
"$ref": "#/definitions/Stage"
|
|
295
388
|
},
|
|
296
|
-
"
|
|
389
|
+
"gigs": {
|
|
297
390
|
"type": "array",
|
|
298
391
|
"items": {
|
|
299
|
-
"$ref": "#/definitions/
|
|
392
|
+
"$ref": "#/definitions/Gig"
|
|
300
393
|
}
|
|
301
394
|
},
|
|
302
|
-
"
|
|
395
|
+
"links": {
|
|
303
396
|
"type": "array",
|
|
304
397
|
"items": {
|
|
305
|
-
"$ref": "#/definitions/
|
|
398
|
+
"$ref": "#/definitions/CohortLink"
|
|
306
399
|
}
|
|
307
400
|
},
|
|
308
|
-
"
|
|
401
|
+
"students": {
|
|
309
402
|
"type": "array",
|
|
310
403
|
"items": {
|
|
311
|
-
"$ref": "#/definitions/
|
|
404
|
+
"$ref": "#/definitions/Student"
|
|
312
405
|
}
|
|
313
406
|
},
|
|
314
|
-
"
|
|
407
|
+
"dropouts": {
|
|
315
408
|
"type": "array",
|
|
316
409
|
"items": {
|
|
317
|
-
"$ref": "#/definitions/
|
|
410
|
+
"$ref": "#/definitions/Dropout"
|
|
411
|
+
}
|
|
412
|
+
},
|
|
413
|
+
"applications": {
|
|
414
|
+
"type": "array",
|
|
415
|
+
"items": {
|
|
416
|
+
"$ref": "#/definitions/Application"
|
|
318
417
|
}
|
|
319
418
|
},
|
|
320
419
|
"signupUsers": {
|
|
@@ -457,6 +556,97 @@
|
|
|
457
556
|
}
|
|
458
557
|
}
|
|
459
558
|
},
|
|
559
|
+
"Application": {
|
|
560
|
+
"type": "object",
|
|
561
|
+
"properties": {
|
|
562
|
+
"id": {
|
|
563
|
+
"type": "integer"
|
|
564
|
+
},
|
|
565
|
+
"createdAt": {
|
|
566
|
+
"type": "string",
|
|
567
|
+
"format": "date-time"
|
|
568
|
+
},
|
|
569
|
+
"updatedAt": {
|
|
570
|
+
"type": "string",
|
|
571
|
+
"format": "date-time"
|
|
572
|
+
},
|
|
573
|
+
"createdBy": {
|
|
574
|
+
"type": [
|
|
575
|
+
"string",
|
|
576
|
+
"null"
|
|
577
|
+
]
|
|
578
|
+
},
|
|
579
|
+
"status": {
|
|
580
|
+
"type": [
|
|
581
|
+
"string",
|
|
582
|
+
"null"
|
|
583
|
+
],
|
|
584
|
+
"enum": [
|
|
585
|
+
"started",
|
|
586
|
+
"exercisesCompleted",
|
|
587
|
+
"projectCompleted",
|
|
588
|
+
"interviewScheduled",
|
|
589
|
+
"interviewed",
|
|
590
|
+
"admitted",
|
|
591
|
+
"rejected"
|
|
592
|
+
]
|
|
593
|
+
},
|
|
594
|
+
"workStatus": {
|
|
595
|
+
"type": [
|
|
596
|
+
"string",
|
|
597
|
+
"null"
|
|
598
|
+
],
|
|
599
|
+
"enum": [
|
|
600
|
+
"student",
|
|
601
|
+
"intern",
|
|
602
|
+
"unemployed",
|
|
603
|
+
"fulltime",
|
|
604
|
+
"partime",
|
|
605
|
+
"freelance",
|
|
606
|
+
"selfemployed"
|
|
607
|
+
]
|
|
608
|
+
},
|
|
609
|
+
"educationStatus": {
|
|
610
|
+
"type": [
|
|
611
|
+
"string",
|
|
612
|
+
"null"
|
|
613
|
+
],
|
|
614
|
+
"enum": [
|
|
615
|
+
"ISCED_0",
|
|
616
|
+
"ISCED_1",
|
|
617
|
+
"ISCED_2",
|
|
618
|
+
"ISCED_3",
|
|
619
|
+
"ISCED_4",
|
|
620
|
+
"ISCED_5",
|
|
621
|
+
"ISCED_6",
|
|
622
|
+
"ISCED_7",
|
|
623
|
+
"ISCED_8"
|
|
624
|
+
]
|
|
625
|
+
},
|
|
626
|
+
"phone": {
|
|
627
|
+
"type": [
|
|
628
|
+
"string",
|
|
629
|
+
"null"
|
|
630
|
+
]
|
|
631
|
+
},
|
|
632
|
+
"user": {
|
|
633
|
+
"$ref": "#/definitions/User"
|
|
634
|
+
},
|
|
635
|
+
"cohort": {
|
|
636
|
+
"$ref": "#/definitions/Cohort"
|
|
637
|
+
},
|
|
638
|
+
"countryOfResidence": {
|
|
639
|
+
"anyOf": [
|
|
640
|
+
{
|
|
641
|
+
"$ref": "#/definitions/Country"
|
|
642
|
+
},
|
|
643
|
+
{
|
|
644
|
+
"type": "null"
|
|
645
|
+
}
|
|
646
|
+
]
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
},
|
|
460
650
|
"Contract": {
|
|
461
651
|
"type": "object",
|
|
462
652
|
"properties": {
|
|
@@ -617,6 +807,9 @@
|
|
|
617
807
|
"dropout": {
|
|
618
808
|
"$ref": "#/definitions/Dropout"
|
|
619
809
|
},
|
|
810
|
+
"application": {
|
|
811
|
+
"$ref": "#/definitions/Application"
|
|
812
|
+
},
|
|
620
813
|
"contract": {
|
|
621
814
|
"$ref": "#/definitions/Contract"
|
|
622
815
|
},
|