@laboratoria/sdk-js 2.1.0 → 2.1.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.
Files changed (2) hide show
  1. package/package.json +7 -7
  2. package/schemas/core.json +111 -111
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@laboratoria/sdk-js",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "description": "Laboratoria JavaScript (browser) SDK",
5
5
  "scripts": {
6
6
  "test": "jest --verbose --coverage",
@@ -9,14 +9,14 @@
9
9
  "license": "MIT",
10
10
  "dependencies": {
11
11
  "blueimp-md5": "^2.19.0",
12
- "firebase": "^9.8.3"
12
+ "firebase": "^9.8.4"
13
13
  },
14
14
  "devDependencies": {
15
- "@babel/core": "^7.18.5",
16
- "@babel/plugin-transform-modules-commonjs": "^7.18.2",
17
- "babel-jest": "^28.1.1",
18
- "jest": "^28.1.1",
19
- "jest-environment-jsdom": "^28.1.1",
15
+ "@babel/core": "^7.18.6",
16
+ "@babel/plugin-transform-modules-commonjs": "^7.18.6",
17
+ "babel-jest": "^28.1.2",
18
+ "jest": "^28.1.2",
19
+ "jest-environment-jsdom": "^28.1.2",
20
20
  "webpack": "^5.73.0",
21
21
  "webpack-cli": "^4.10.0"
22
22
  },
package/schemas/core.json CHANGED
@@ -50,17 +50,6 @@
50
50
  "null"
51
51
  ]
52
52
  },
53
- "lang": {
54
- "type": [
55
- "string",
56
- "null"
57
- ],
58
- "enum": [
59
- "en",
60
- "es",
61
- "pt"
62
- ]
63
- },
64
53
  "github": {
65
54
  "type": [
66
55
  "string",
@@ -95,17 +84,16 @@
95
84
  "type": "boolean",
96
85
  "default": false
97
86
  },
98
- "students": {
99
- "type": "array",
100
- "items": {
101
- "$ref": "#/definitions/Student"
102
- }
103
- },
104
- "dropouts": {
105
- "type": "array",
106
- "items": {
107
- "$ref": "#/definitions/Dropout"
108
- }
87
+ "lang": {
88
+ "type": [
89
+ "string",
90
+ "null"
91
+ ],
92
+ "enum": [
93
+ "en",
94
+ "es",
95
+ "pt"
96
+ ]
109
97
  },
110
98
  "signupCohort": {
111
99
  "anyOf": [
@@ -117,10 +105,10 @@
117
105
  }
118
106
  ]
119
107
  },
120
- "contracts": {
108
+ "applications": {
121
109
  "type": "array",
122
110
  "items": {
123
- "$ref": "#/definitions/Contract"
111
+ "$ref": "#/definitions/Application"
124
112
  }
125
113
  },
126
114
  "contractsAsCheckPilot": {
@@ -129,16 +117,22 @@
129
117
  "$ref": "#/definitions/Contract"
130
118
  }
131
119
  },
132
- "gigs": {
120
+ "contracts": {
133
121
  "type": "array",
134
122
  "items": {
135
- "$ref": "#/definitions/Gig"
123
+ "$ref": "#/definitions/Contract"
136
124
  }
137
125
  },
138
- "applications": {
126
+ "dropouts": {
139
127
  "type": "array",
140
128
  "items": {
141
- "$ref": "#/definitions/Application"
129
+ "$ref": "#/definitions/Dropout"
130
+ }
131
+ },
132
+ "gigs": {
133
+ "type": "array",
134
+ "items": {
135
+ "$ref": "#/definitions/Gig"
142
136
  }
143
137
  },
144
138
  "messages": {
@@ -146,6 +140,12 @@
146
140
  "items": {
147
141
  "$ref": "#/definitions/Message"
148
142
  }
143
+ },
144
+ "students": {
145
+ "type": "array",
146
+ "items": {
147
+ "$ref": "#/definitions/Student"
148
+ }
149
149
  }
150
150
  }
151
151
  },
@@ -200,16 +200,16 @@
200
200
  "track": {
201
201
  "$ref": "#/definitions/Track"
202
202
  },
203
- "stages": {
203
+ "cohorts": {
204
204
  "type": "array",
205
205
  "items": {
206
- "$ref": "#/definitions/Stage"
206
+ "$ref": "#/definitions/Cohort"
207
207
  }
208
208
  },
209
- "cohorts": {
209
+ "stages": {
210
210
  "type": "array",
211
211
  "items": {
212
- "$ref": "#/definitions/Cohort"
212
+ "$ref": "#/definitions/Stage"
213
213
  }
214
214
  }
215
215
  }
@@ -265,17 +265,6 @@
265
265
  "null"
266
266
  ]
267
267
  },
268
- "lang": {
269
- "type": [
270
- "string",
271
- "null"
272
- ],
273
- "enum": [
274
- "en",
275
- "es",
276
- "pt"
277
- ]
278
- },
279
268
  "name": {
280
269
  "type": "string"
281
270
  },
@@ -287,12 +276,21 @@
287
276
  "type": "string",
288
277
  "format": "date-time"
289
278
  },
279
+ "legacySlug": {
280
+ "type": "string"
281
+ },
290
282
  "vacancies": {
291
283
  "type": [
292
284
  "integer",
293
285
  "null"
294
286
  ]
295
287
  },
288
+ "placementDuration": {
289
+ "type": [
290
+ "integer",
291
+ "null"
292
+ ]
293
+ },
296
294
  "placementStart": {
297
295
  "type": [
298
296
  "string",
@@ -300,10 +298,15 @@
300
298
  ],
301
299
  "format": "date-time"
302
300
  },
303
- "placementDuration": {
301
+ "lang": {
304
302
  "type": [
305
- "integer",
303
+ "string",
306
304
  "null"
305
+ ],
306
+ "enum": [
307
+ "en",
308
+ "es",
309
+ "pt"
307
310
  ]
308
311
  },
309
312
  "program": {
@@ -312,10 +315,10 @@
312
315
  "stage": {
313
316
  "$ref": "#/definitions/Stage"
314
317
  },
315
- "gigs": {
318
+ "applications": {
316
319
  "type": "array",
317
320
  "items": {
318
- "$ref": "#/definitions/Gig"
321
+ "$ref": "#/definitions/Application"
319
322
  }
320
323
  },
321
324
  "links": {
@@ -324,22 +327,22 @@
324
327
  "$ref": "#/definitions/CohortLink"
325
328
  }
326
329
  },
327
- "students": {
330
+ "dropouts": {
328
331
  "type": "array",
329
332
  "items": {
330
- "$ref": "#/definitions/Student"
333
+ "$ref": "#/definitions/Dropout"
331
334
  }
332
335
  },
333
- "dropouts": {
336
+ "gigs": {
334
337
  "type": "array",
335
338
  "items": {
336
- "$ref": "#/definitions/Dropout"
339
+ "$ref": "#/definitions/Gig"
337
340
  }
338
341
  },
339
- "applications": {
342
+ "students": {
340
343
  "type": "array",
341
344
  "items": {
342
- "$ref": "#/definitions/Application"
345
+ "$ref": "#/definitions/Student"
343
346
  }
344
347
  },
345
348
  "signupUsers": {
@@ -347,9 +350,6 @@
347
350
  "items": {
348
351
  "$ref": "#/definitions/User"
349
352
  }
350
- },
351
- "legacySlug": {
352
- "type": "string"
353
353
  }
354
354
  }
355
355
  },
@@ -435,30 +435,12 @@
435
435
  "type": "string",
436
436
  "format": "date-time"
437
437
  },
438
- "reason": {
439
- "type": "string",
440
- "enum": [
441
- "dropout",
442
- "noShow",
443
- "invitedToLeave",
444
- "changeCohort"
445
- ]
446
- },
447
438
  "reasonDetail": {
448
439
  "type": [
449
440
  "string",
450
441
  "null"
451
442
  ]
452
443
  },
453
- "lastProject": {
454
- "type": [
455
- "string",
456
- "null"
457
- ]
458
- },
459
- "completedProjects": {
460
- "type": "integer"
461
- },
462
444
  "notes": {
463
445
  "type": [
464
446
  "string",
@@ -474,6 +456,24 @@
474
456
  "null"
475
457
  ]
476
458
  },
459
+ "reason": {
460
+ "type": "string",
461
+ "enum": [
462
+ "dropout",
463
+ "noShow",
464
+ "invitedToLeave",
465
+ "changeCohort"
466
+ ]
467
+ },
468
+ "completedProjects": {
469
+ "type": "integer"
470
+ },
471
+ "lastProject": {
472
+ "type": [
473
+ "string",
474
+ "null"
475
+ ]
476
+ },
477
477
  "cohort": {
478
478
  "$ref": "#/definitions/Cohort"
479
479
  },
@@ -502,11 +502,11 @@
502
502
  "null"
503
503
  ]
504
504
  },
505
- "user": {
506
- "$ref": "#/definitions/User"
507
- },
508
505
  "cohort": {
509
506
  "$ref": "#/definitions/Cohort"
507
+ },
508
+ "user": {
509
+ "$ref": "#/definitions/User"
510
510
  }
511
511
  }
512
512
  },
@@ -527,6 +527,15 @@
527
527
  "createdBy": {
528
528
  "type": "string"
529
529
  },
530
+ "isEmployment": {
531
+ "type": "boolean"
532
+ },
533
+ "feeAmount": {
534
+ "type": "integer"
535
+ },
536
+ "hoursPerWeek": {
537
+ "type": "integer"
538
+ },
530
539
  "start": {
531
540
  "type": "string",
532
541
  "format": "date-time"
@@ -538,15 +547,6 @@
538
547
  ],
539
548
  "format": "date-time"
540
549
  },
541
- "hoursPerWeek": {
542
- "type": "integer"
543
- },
544
- "isEmployment": {
545
- "type": "boolean"
546
- },
547
- "feeAmount": {
548
- "type": "integer"
549
- },
550
550
  "isTrial": {
551
551
  "type": "boolean",
552
552
  "default": false
@@ -565,9 +565,6 @@
565
565
  "other"
566
566
  ]
567
567
  },
568
- "user": {
569
- "$ref": "#/definitions/User"
570
- },
571
568
  "checkPilot": {
572
569
  "anyOf": [
573
570
  {
@@ -581,6 +578,9 @@
581
578
  "country": {
582
579
  "$ref": "#/definitions/Country"
583
580
  },
581
+ "user": {
582
+ "$ref": "#/definitions/User"
583
+ },
584
584
  "gigs": {
585
585
  "type": "array",
586
586
  "items": {
@@ -606,6 +606,18 @@
606
606
  "createdBy": {
607
607
  "type": "string"
608
608
  },
609
+ "role": {
610
+ "type": "string",
611
+ "enum": [
612
+ "bm",
613
+ "pdc",
614
+ "js",
615
+ "ux"
616
+ ]
617
+ },
618
+ "hoursPerWeek": {
619
+ "type": "integer"
620
+ },
609
621
  "start": {
610
622
  "type": "string",
611
623
  "format": "date-time"
@@ -617,26 +629,14 @@
617
629
  ],
618
630
  "format": "date-time"
619
631
  },
620
- "hoursPerWeek": {
621
- "type": "integer"
622
- },
623
- "role": {
624
- "type": "string",
625
- "enum": [
626
- "bm",
627
- "pdc",
628
- "js",
629
- "ux"
630
- ]
631
- },
632
- "user": {
633
- "$ref": "#/definitions/User"
632
+ "cohort": {
633
+ "$ref": "#/definitions/Cohort"
634
634
  },
635
635
  "contract": {
636
636
  "$ref": "#/definitions/Contract"
637
637
  },
638
- "cohort": {
639
- "$ref": "#/definitions/Cohort"
638
+ "user": {
639
+ "$ref": "#/definitions/User"
640
640
  }
641
641
  }
642
642
  },
@@ -705,12 +705,6 @@
705
705
  "null"
706
706
  ]
707
707
  },
708
- "logs": {
709
- "type": "array",
710
- "items": {
711
- "$ref": "#/definitions/MessageLog"
712
- }
713
- },
714
708
  "user": {
715
709
  "anyOf": [
716
710
  {
@@ -720,6 +714,12 @@
720
714
  "type": "null"
721
715
  }
722
716
  ]
717
+ },
718
+ "logs": {
719
+ "type": "array",
720
+ "items": {
721
+ "$ref": "#/definitions/MessageLog"
722
+ }
723
723
  }
724
724
  }
725
725
  },