@data-fair/lib-common-types 1.0.0 → 1.1.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/account/.type/index.d.ts +1 -3
- package/account/.type/index.js +1 -65
- package/account/.type/validate.js +1 -1
- package/account/schema.d.ts +46 -0
- package/account/schema.js +45 -0
- package/application/.type/index.d.ts +0 -3
- package/application/.type/index.js +1 -155
- package/application/schema.d.ts +128 -0
- package/application/schema.js +138 -0
- package/package.json +4 -1
- package/session/.type/index.d.ts +1 -3
- package/session/.type/index.js +1 -167
- package/session/.type/validate.js +1 -1
- package/session/schema.d.ts +133 -0
- package/session/schema.js +157 -0
- package/account/schema.json +0 -45
- package/application/schema.json +0 -141
- package/session/schema.json +0 -157
package/session/schema.json
DELETED
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$id": "https://github.com/data-fair/lib/session-state",
|
|
3
|
-
"x-exports": ["types", "validate", "schema"],
|
|
4
|
-
"type":"object",
|
|
5
|
-
"title": "session state",
|
|
6
|
-
"additionalProperties":false,
|
|
7
|
-
"properties":{
|
|
8
|
-
"user":{
|
|
9
|
-
"$ref":"#/$defs/user"
|
|
10
|
-
},
|
|
11
|
-
"organization":{
|
|
12
|
-
"$ref":"#/$defs/organizationMembership"
|
|
13
|
-
},
|
|
14
|
-
"account":{
|
|
15
|
-
"$ref":"#/$defs/account"
|
|
16
|
-
},
|
|
17
|
-
"accountRole":{
|
|
18
|
-
"type":"string"
|
|
19
|
-
},
|
|
20
|
-
"lang":{
|
|
21
|
-
"type":"string"
|
|
22
|
-
},
|
|
23
|
-
"dark":{
|
|
24
|
-
"type":"boolean"
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
"$defs":{
|
|
28
|
-
"organizationMembership":{
|
|
29
|
-
"type":"object",
|
|
30
|
-
"additionalProperties":false,
|
|
31
|
-
"required":[
|
|
32
|
-
"id",
|
|
33
|
-
"name",
|
|
34
|
-
"role"
|
|
35
|
-
],
|
|
36
|
-
"properties":{
|
|
37
|
-
"id":{
|
|
38
|
-
"type":"string"
|
|
39
|
-
},
|
|
40
|
-
"name":{
|
|
41
|
-
"type":"string"
|
|
42
|
-
},
|
|
43
|
-
"role":{
|
|
44
|
-
"type":"string"
|
|
45
|
-
},
|
|
46
|
-
"department":{
|
|
47
|
-
"type":"string"
|
|
48
|
-
},
|
|
49
|
-
"departmentName":{
|
|
50
|
-
"type":"string"
|
|
51
|
-
},
|
|
52
|
-
"dflt":{
|
|
53
|
-
"type":"boolean"
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
},
|
|
57
|
-
"userRef":{
|
|
58
|
-
"type":"object",
|
|
59
|
-
"additionalProperties":false,
|
|
60
|
-
"required":[
|
|
61
|
-
"id",
|
|
62
|
-
"name"
|
|
63
|
-
],
|
|
64
|
-
"properties":{
|
|
65
|
-
"id":{
|
|
66
|
-
"type":"string"
|
|
67
|
-
},
|
|
68
|
-
"name":{
|
|
69
|
-
"type":"string"
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
},
|
|
73
|
-
"user":{
|
|
74
|
-
"type":"object",
|
|
75
|
-
"additionalProperties":false,
|
|
76
|
-
"required":[
|
|
77
|
-
"email",
|
|
78
|
-
"id",
|
|
79
|
-
"name",
|
|
80
|
-
"organizations"
|
|
81
|
-
],
|
|
82
|
-
"properties":{
|
|
83
|
-
"email":{
|
|
84
|
-
"type":"string",
|
|
85
|
-
"format":"email"
|
|
86
|
-
},
|
|
87
|
-
"id":{
|
|
88
|
-
"type":"string"
|
|
89
|
-
},
|
|
90
|
-
"name":{
|
|
91
|
-
"type":"string"
|
|
92
|
-
},
|
|
93
|
-
"organizations":{
|
|
94
|
-
"type":"array",
|
|
95
|
-
"items":{
|
|
96
|
-
"$ref":"#/$defs/organizationMembership"
|
|
97
|
-
}
|
|
98
|
-
},
|
|
99
|
-
"isAdmin":{
|
|
100
|
-
"type":"integer",
|
|
101
|
-
"enum":[
|
|
102
|
-
0,
|
|
103
|
-
1
|
|
104
|
-
]
|
|
105
|
-
},
|
|
106
|
-
"adminMode":{
|
|
107
|
-
"type":"integer",
|
|
108
|
-
"enum":[
|
|
109
|
-
0,
|
|
110
|
-
1
|
|
111
|
-
]
|
|
112
|
-
},
|
|
113
|
-
"asAdmin":{
|
|
114
|
-
"$ref":"#/$defs/userRef"
|
|
115
|
-
},
|
|
116
|
-
"pd":{
|
|
117
|
-
"type":"string",
|
|
118
|
-
"format":"date"
|
|
119
|
-
},
|
|
120
|
-
"ipa":{
|
|
121
|
-
"type":"integer",
|
|
122
|
-
"enum":[
|
|
123
|
-
0,
|
|
124
|
-
1
|
|
125
|
-
]
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
},
|
|
129
|
-
"account":{
|
|
130
|
-
"type":"object",
|
|
131
|
-
"additionalProperties":false,
|
|
132
|
-
"required":[
|
|
133
|
-
"type",
|
|
134
|
-
"id",
|
|
135
|
-
"name"
|
|
136
|
-
],
|
|
137
|
-
"properties":{
|
|
138
|
-
"type":{
|
|
139
|
-
"type":"string",
|
|
140
|
-
"enum": ["user", "organization"]
|
|
141
|
-
},
|
|
142
|
-
"id":{
|
|
143
|
-
"type":"string"
|
|
144
|
-
},
|
|
145
|
-
"name":{
|
|
146
|
-
"type":"string"
|
|
147
|
-
},
|
|
148
|
-
"department":{
|
|
149
|
-
"type":"string"
|
|
150
|
-
},
|
|
151
|
-
"departmentName":{
|
|
152
|
-
"type":"string"
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
}
|