@laboratoria/sdk-js 1.5.0 → 1.6.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.
Files changed (2) hide show
  1. package/package.json +4 -4
  2. package/schemas/core.json +194 -12
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@laboratoria/sdk-js",
3
- "version": "1.5.0",
3
+ "version": "1.6.0",
4
4
  "description": "Laboratoria JavaScript (browser) SDK",
5
5
  "scripts": {
6
6
  "test": "jest --verbose --coverage",
@@ -9,11 +9,11 @@
9
9
  "license": "MIT",
10
10
  "dependencies": {
11
11
  "blueimp-md5": "^2.19.0",
12
- "firebase": "^9.6.8"
12
+ "firebase": "^9.6.10"
13
13
  },
14
14
  "devDependencies": {
15
- "@babel/core": "^7.17.5",
16
- "@babel/plugin-transform-modules-commonjs": "^7.16.8",
15
+ "@babel/core": "^7.17.8",
16
+ "@babel/plugin-transform-modules-commonjs": "^7.17.7",
17
17
  "babel-jest": "^27.5.1",
18
18
  "jest": "^27.5.1",
19
19
  "webpack": "^5.70.0",
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
  },
@@ -270,10 +352,6 @@
270
352
  "null"
271
353
  ]
272
354
  },
273
- "publicAdmission": {
274
- "type": "boolean",
275
- "default": false
276
- },
277
355
  "placementStart": {
278
356
  "type": [
279
357
  "string",
@@ -287,34 +365,44 @@
287
365
  "null"
288
366
  ]
289
367
  },
368
+ "publicAdmission": {
369
+ "type": "boolean",
370
+ "default": false
371
+ },
290
372
  "program": {
291
373
  "$ref": "#/definitions/Program"
292
374
  },
293
375
  "stage": {
294
376
  "$ref": "#/definitions/Stage"
295
377
  },
296
- "students": {
378
+ "gigs": {
297
379
  "type": "array",
298
380
  "items": {
299
- "$ref": "#/definitions/Student"
381
+ "$ref": "#/definitions/Gig"
300
382
  }
301
383
  },
302
- "dropouts": {
384
+ "links": {
303
385
  "type": "array",
304
386
  "items": {
305
- "$ref": "#/definitions/Dropout"
387
+ "$ref": "#/definitions/CohortLink"
306
388
  }
307
389
  },
308
- "gigs": {
390
+ "students": {
309
391
  "type": "array",
310
392
  "items": {
311
- "$ref": "#/definitions/Gig"
393
+ "$ref": "#/definitions/Student"
312
394
  }
313
395
  },
314
- "links": {
396
+ "dropouts": {
315
397
  "type": "array",
316
398
  "items": {
317
- "$ref": "#/definitions/CohortLink"
399
+ "$ref": "#/definitions/Dropout"
400
+ }
401
+ },
402
+ "applications": {
403
+ "type": "array",
404
+ "items": {
405
+ "$ref": "#/definitions/Application"
318
406
  }
319
407
  },
320
408
  "signupUsers": {
@@ -457,6 +545,97 @@
457
545
  }
458
546
  }
459
547
  },
548
+ "Application": {
549
+ "type": "object",
550
+ "properties": {
551
+ "id": {
552
+ "type": "integer"
553
+ },
554
+ "createdAt": {
555
+ "type": "string",
556
+ "format": "date-time"
557
+ },
558
+ "updatedAt": {
559
+ "type": "string",
560
+ "format": "date-time"
561
+ },
562
+ "createdBy": {
563
+ "type": [
564
+ "string",
565
+ "null"
566
+ ]
567
+ },
568
+ "status": {
569
+ "type": [
570
+ "string",
571
+ "null"
572
+ ],
573
+ "enum": [
574
+ "started",
575
+ "exercisesCompleted",
576
+ "projectCompleted",
577
+ "interviewScheduled",
578
+ "interviewed",
579
+ "admitted",
580
+ "rejected"
581
+ ]
582
+ },
583
+ "workStatus": {
584
+ "type": [
585
+ "string",
586
+ "null"
587
+ ],
588
+ "enum": [
589
+ "student",
590
+ "intern",
591
+ "unemployed",
592
+ "fulltime",
593
+ "partime",
594
+ "freelance",
595
+ "selfemployed"
596
+ ]
597
+ },
598
+ "educationStatus": {
599
+ "type": [
600
+ "string",
601
+ "null"
602
+ ],
603
+ "enum": [
604
+ "ISCED_0",
605
+ "ISCED_1",
606
+ "ISCED_2",
607
+ "ISCED_3",
608
+ "ISCED_4",
609
+ "ISCED_5",
610
+ "ISCED_6",
611
+ "ISCED_7",
612
+ "ISCED_8"
613
+ ]
614
+ },
615
+ "phone": {
616
+ "type": [
617
+ "string",
618
+ "null"
619
+ ]
620
+ },
621
+ "user": {
622
+ "$ref": "#/definitions/User"
623
+ },
624
+ "cohort": {
625
+ "$ref": "#/definitions/Cohort"
626
+ },
627
+ "countryOfResidence": {
628
+ "anyOf": [
629
+ {
630
+ "$ref": "#/definitions/Country"
631
+ },
632
+ {
633
+ "type": "null"
634
+ }
635
+ ]
636
+ }
637
+ }
638
+ },
460
639
  "Contract": {
461
640
  "type": "object",
462
641
  "properties": {
@@ -617,6 +796,9 @@
617
796
  "dropout": {
618
797
  "$ref": "#/definitions/Dropout"
619
798
  },
799
+ "application": {
800
+ "$ref": "#/definitions/Application"
801
+ },
620
802
  "contract": {
621
803
  "$ref": "#/definitions/Contract"
622
804
  },