@laboratoria/sdk-js 0.0.0 → 1.0.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/.github/workflows/node.js.yml +31 -0
- package/README.md +40 -3
- package/index.js +12 -20
- package/index.spec.js +12 -12
- package/lib/core.js +113 -12
- package/lib/curriculum.js +59 -0
- package/lib/curriculum.spec.js +194 -0
- package/lib/jobs.js +21 -3
- package/lib/model.js +86 -35
- package/lib/model.spec.js +28 -1
- package/package.json +20 -10
- package/schemas/core.json +217 -12
- package/__mocks__/firebase/app.js +0 -1
- package/__mocks__/firebase/auth.js +0 -10
- package/__snapshots__/index.spec.js.snap +0 -12
- package/lib/__mocks__/client.js +0 -1
- package/lib/campuses.js +0 -23
- package/lib/team.js +0 -50
- package/schemas/team.json +0 -126
package/schemas/team.json
DELETED
@@ -1,126 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
3
|
-
"definitions": {
|
4
|
-
"Contract": {
|
5
|
-
"type": "object",
|
6
|
-
"properties": {
|
7
|
-
"id": {
|
8
|
-
"type": "integer"
|
9
|
-
},
|
10
|
-
"createdAt": {
|
11
|
-
"type": "string",
|
12
|
-
"format": "date-time"
|
13
|
-
},
|
14
|
-
"updatedAt": {
|
15
|
-
"type": "string",
|
16
|
-
"format": "date-time"
|
17
|
-
},
|
18
|
-
"createdBy": {
|
19
|
-
"type": "string"
|
20
|
-
},
|
21
|
-
"uid": {
|
22
|
-
"type": "string"
|
23
|
-
},
|
24
|
-
"isEmployment": {
|
25
|
-
"type": "boolean"
|
26
|
-
},
|
27
|
-
"campus": {
|
28
|
-
"type": "string"
|
29
|
-
},
|
30
|
-
"currency": {
|
31
|
-
"type": "string"
|
32
|
-
},
|
33
|
-
"feeBasis": {
|
34
|
-
"type": "string",
|
35
|
-
"enum": [
|
36
|
-
"HOURLY",
|
37
|
-
"MONTHLY"
|
38
|
-
]
|
39
|
-
},
|
40
|
-
"feeAmount": {
|
41
|
-
"type": "integer"
|
42
|
-
},
|
43
|
-
"hoursPerWeek": {
|
44
|
-
"type": "integer"
|
45
|
-
},
|
46
|
-
"start": {
|
47
|
-
"type": "string",
|
48
|
-
"format": "date-time"
|
49
|
-
},
|
50
|
-
"end": {
|
51
|
-
"type": [
|
52
|
-
"string",
|
53
|
-
"null"
|
54
|
-
],
|
55
|
-
"format": "date-time"
|
56
|
-
},
|
57
|
-
"gigs": {
|
58
|
-
"type": "array",
|
59
|
-
"items": {
|
60
|
-
"$ref": "#/definitions/Gig"
|
61
|
-
}
|
62
|
-
}
|
63
|
-
}
|
64
|
-
},
|
65
|
-
"Gig": {
|
66
|
-
"type": "object",
|
67
|
-
"properties": {
|
68
|
-
"id": {
|
69
|
-
"type": "integer"
|
70
|
-
},
|
71
|
-
"createdAt": {
|
72
|
-
"type": "string",
|
73
|
-
"format": "date-time"
|
74
|
-
},
|
75
|
-
"updatedAt": {
|
76
|
-
"type": "string",
|
77
|
-
"format": "date-time"
|
78
|
-
},
|
79
|
-
"createdBy": {
|
80
|
-
"type": "string"
|
81
|
-
},
|
82
|
-
"role": {
|
83
|
-
"type": "string",
|
84
|
-
"enum": [
|
85
|
-
"bm",
|
86
|
-
"pdc",
|
87
|
-
"js",
|
88
|
-
"ux"
|
89
|
-
]
|
90
|
-
},
|
91
|
-
"hoursPerWeek": {
|
92
|
-
"type": "integer"
|
93
|
-
},
|
94
|
-
"start": {
|
95
|
-
"type": "string",
|
96
|
-
"format": "date-time"
|
97
|
-
},
|
98
|
-
"end": {
|
99
|
-
"type": [
|
100
|
-
"string",
|
101
|
-
"null"
|
102
|
-
],
|
103
|
-
"format": "date-time"
|
104
|
-
},
|
105
|
-
"uid": {
|
106
|
-
"type": "string"
|
107
|
-
},
|
108
|
-
"cohortId": {
|
109
|
-
"type": "integer"
|
110
|
-
},
|
111
|
-
"contract": {
|
112
|
-
"$ref": "#/definitions/Contract"
|
113
|
-
}
|
114
|
-
}
|
115
|
-
}
|
116
|
-
},
|
117
|
-
"type": "object",
|
118
|
-
"properties": {
|
119
|
-
"contract": {
|
120
|
-
"$ref": "#/definitions/Contract"
|
121
|
-
},
|
122
|
-
"gig": {
|
123
|
-
"$ref": "#/definitions/Gig"
|
124
|
-
}
|
125
|
-
}
|
126
|
-
}
|