@overtable/schemas 0.0.0-stage → 0.2.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/CHANGELOG.md +17 -0
- package/LICENSE +202 -0
- package/README.md +55 -2
- package/dist/index.d.ts +215 -0
- package/dist/index.js +759 -0
- package/dist/json-schema/pairs/calendar.freebusy.answer.json +41 -0
- package/dist/json-schema/pairs/calendar.freebusy.ask.json +32 -0
- package/dist/json-schema/pairs/contact.channel.answer.json +26 -0
- package/dist/json-schema/pairs/contact.channel.ask.json +7 -0
- package/dist/json-schema/pairs/message.answer.json +7 -0
- package/dist/json-schema/pairs/message.ask.json +17 -0
- package/dist/json-schema/pairs/note.answer.json +7 -0
- package/dist/json-schema/pairs/note.ask.json +17 -0
- package/dist/json-schema/pairs/offers.list.answer.json +68 -0
- package/dist/json-schema/pairs/offers.list.ask.json +14 -0
- package/dist/json-schema/pairs/overtable.ping.answer.json +17 -0
- package/dist/json-schema/pairs/overtable.ping.ask.json +7 -0
- package/dist/json-schema/pairs/preferences.ask.answer.json +22 -0
- package/dist/json-schema/pairs/preferences.ask.ask.json +17 -0
- package/dist/json-schema/pairs/quote.answer.json +57 -0
- package/dist/json-schema/pairs/quote.ask.json +85 -0
- package/dist/json-schema/pairs/rate.range.answer.json +60 -0
- package/dist/json-schema/pairs/rate.range.ask.json +17 -0
- package/dist/json-schema/pairs/recommendation.ask.answer.json +21 -0
- package/dist/json-schema/pairs/recommendation.ask.ask.json +17 -0
- package/dist/json-schema/pairs/scope.ask.answer.json +25 -0
- package/dist/json-schema/pairs/scope.ask.ask.json +17 -0
- package/dist/json-schema/pairs/slot.answer.json +43 -0
- package/dist/json-schema/pairs/slot.ask.json +35 -0
- package/dist/json-schema/requests/order.json +56 -0
- package/dist/json-schema/requests/poll.json +30 -0
- package/dist/json-schema/requests/quote.json +56 -0
- package/dist/json-schema/requests/request_answer.json +216 -0
- package/dist/json-schema/requests/request_create.json +676 -0
- package/dist/json-schema/requests/slot.json +33 -0
- package/dist/json-schema/share/availability.json +50 -0
- package/dist/json-schema/share/contact_details.json +45 -0
- package/dist/json-schema/share/documents.json +59 -0
- package/dist/json-schema/share/finance.json +71 -0
- package/dist/json-schema/share/health.json +52 -0
- package/dist/json-schema/share/location.json +45 -0
- package/dist/json-schema/share/preferences.json +46 -0
- package/dist/json-schema/share/share.json +458 -0
- package/package.json +47 -4
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"title": "slot.ask",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"propose": {
|
|
7
|
+
"type": "array",
|
|
8
|
+
"items": {
|
|
9
|
+
"type": "object",
|
|
10
|
+
"properties": {
|
|
11
|
+
"when": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"minLength": 10,
|
|
14
|
+
"maxLength": 40
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"required": [
|
|
18
|
+
"when"
|
|
19
|
+
],
|
|
20
|
+
"additionalProperties": false
|
|
21
|
+
},
|
|
22
|
+
"minItems": 1,
|
|
23
|
+
"maxItems": 3
|
|
24
|
+
},
|
|
25
|
+
"durationMinutes": {
|
|
26
|
+
"type": "integer",
|
|
27
|
+
"minimum": 5,
|
|
28
|
+
"maximum": 480
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"required": [
|
|
32
|
+
"propose"
|
|
33
|
+
],
|
|
34
|
+
"additionalProperties": false
|
|
35
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"title": "order",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"title": {
|
|
7
|
+
"type": "string",
|
|
8
|
+
"minLength": 1,
|
|
9
|
+
"maxLength": 120
|
|
10
|
+
},
|
|
11
|
+
"items": {
|
|
12
|
+
"type": "array",
|
|
13
|
+
"items": {
|
|
14
|
+
"type": "object",
|
|
15
|
+
"properties": {
|
|
16
|
+
"label": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"minLength": 1,
|
|
19
|
+
"maxLength": 120
|
|
20
|
+
},
|
|
21
|
+
"quantity": {
|
|
22
|
+
"type": "integer",
|
|
23
|
+
"minimum": 1,
|
|
24
|
+
"maximum": 999
|
|
25
|
+
},
|
|
26
|
+
"amount": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"minLength": 1,
|
|
29
|
+
"maxLength": 40
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"required": [
|
|
33
|
+
"label"
|
|
34
|
+
],
|
|
35
|
+
"additionalProperties": false
|
|
36
|
+
},
|
|
37
|
+
"minItems": 1,
|
|
38
|
+
"maxItems": 40
|
|
39
|
+
},
|
|
40
|
+
"total": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"minLength": 1,
|
|
43
|
+
"maxLength": 40
|
|
44
|
+
},
|
|
45
|
+
"notes": {
|
|
46
|
+
"type": "string",
|
|
47
|
+
"minLength": 1,
|
|
48
|
+
"maxLength": 500
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"required": [
|
|
52
|
+
"title",
|
|
53
|
+
"items"
|
|
54
|
+
],
|
|
55
|
+
"additionalProperties": false
|
|
56
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"title": "poll",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"question": {
|
|
7
|
+
"type": "string",
|
|
8
|
+
"minLength": 1,
|
|
9
|
+
"maxLength": 200
|
|
10
|
+
},
|
|
11
|
+
"options": {
|
|
12
|
+
"type": "array",
|
|
13
|
+
"items": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"minLength": 1,
|
|
16
|
+
"maxLength": 120
|
|
17
|
+
},
|
|
18
|
+
"minItems": 2,
|
|
19
|
+
"maxItems": 12
|
|
20
|
+
},
|
|
21
|
+
"multi": {
|
|
22
|
+
"type": "boolean"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"required": [
|
|
26
|
+
"question",
|
|
27
|
+
"options"
|
|
28
|
+
],
|
|
29
|
+
"additionalProperties": false
|
|
30
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"title": "quote",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"title": {
|
|
7
|
+
"type": "string",
|
|
8
|
+
"minLength": 1,
|
|
9
|
+
"maxLength": 120
|
|
10
|
+
},
|
|
11
|
+
"amount": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"minLength": 1,
|
|
14
|
+
"maxLength": 40,
|
|
15
|
+
"description": "Total, e.g. 45 EUR"
|
|
16
|
+
},
|
|
17
|
+
"currency": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"minLength": 1,
|
|
20
|
+
"maxLength": 12
|
|
21
|
+
},
|
|
22
|
+
"items": {
|
|
23
|
+
"type": "array",
|
|
24
|
+
"items": {
|
|
25
|
+
"type": "object",
|
|
26
|
+
"properties": {
|
|
27
|
+
"label": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"minLength": 1,
|
|
30
|
+
"maxLength": 120
|
|
31
|
+
},
|
|
32
|
+
"amount": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"minLength": 1,
|
|
35
|
+
"maxLength": 40
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"required": [
|
|
39
|
+
"label"
|
|
40
|
+
],
|
|
41
|
+
"additionalProperties": false
|
|
42
|
+
},
|
|
43
|
+
"maxItems": 40
|
|
44
|
+
},
|
|
45
|
+
"validUntil": {
|
|
46
|
+
"type": "string",
|
|
47
|
+
"minLength": 1,
|
|
48
|
+
"maxLength": 60
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"required": [
|
|
52
|
+
"title",
|
|
53
|
+
"amount"
|
|
54
|
+
],
|
|
55
|
+
"additionalProperties": false
|
|
56
|
+
}
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"title": "request_answer",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"requestId": {
|
|
7
|
+
"type": "string",
|
|
8
|
+
"format": "uuid"
|
|
9
|
+
},
|
|
10
|
+
"answer": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"enum": [
|
|
13
|
+
"accept",
|
|
14
|
+
"refuse",
|
|
15
|
+
"counter",
|
|
16
|
+
"vote"
|
|
17
|
+
]
|
|
18
|
+
},
|
|
19
|
+
"note": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"minLength": 1,
|
|
22
|
+
"maxLength": 500
|
|
23
|
+
},
|
|
24
|
+
"slot": {
|
|
25
|
+
"type": "object",
|
|
26
|
+
"properties": {
|
|
27
|
+
"when": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"minLength": 1,
|
|
30
|
+
"maxLength": 120,
|
|
31
|
+
"description": "When, as an ISO 8601 date and time with its offset: 2026-11-07T20:00+01:00. Words or a time without an offset may wait for the recipient's human."
|
|
32
|
+
},
|
|
33
|
+
"service": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"minLength": 1,
|
|
36
|
+
"maxLength": 60,
|
|
37
|
+
"description": "What it is for, in a few words: Lunch, Haircut. Nothing personal."
|
|
38
|
+
},
|
|
39
|
+
"partySize": {
|
|
40
|
+
"type": "integer",
|
|
41
|
+
"minimum": 1,
|
|
42
|
+
"maximum": 100
|
|
43
|
+
},
|
|
44
|
+
"place": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"minLength": 1,
|
|
47
|
+
"maxLength": 120
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"required": [
|
|
51
|
+
"when"
|
|
52
|
+
],
|
|
53
|
+
"additionalProperties": false
|
|
54
|
+
},
|
|
55
|
+
"quote": {
|
|
56
|
+
"type": "object",
|
|
57
|
+
"properties": {
|
|
58
|
+
"title": {
|
|
59
|
+
"type": "string",
|
|
60
|
+
"minLength": 1,
|
|
61
|
+
"maxLength": 120
|
|
62
|
+
},
|
|
63
|
+
"amount": {
|
|
64
|
+
"type": "string",
|
|
65
|
+
"minLength": 1,
|
|
66
|
+
"maxLength": 40,
|
|
67
|
+
"description": "Total, e.g. 45 EUR"
|
|
68
|
+
},
|
|
69
|
+
"currency": {
|
|
70
|
+
"type": "string",
|
|
71
|
+
"minLength": 1,
|
|
72
|
+
"maxLength": 12
|
|
73
|
+
},
|
|
74
|
+
"items": {
|
|
75
|
+
"type": "array",
|
|
76
|
+
"items": {
|
|
77
|
+
"type": "object",
|
|
78
|
+
"properties": {
|
|
79
|
+
"label": {
|
|
80
|
+
"type": "string",
|
|
81
|
+
"minLength": 1,
|
|
82
|
+
"maxLength": 120
|
|
83
|
+
},
|
|
84
|
+
"amount": {
|
|
85
|
+
"type": "string",
|
|
86
|
+
"minLength": 1,
|
|
87
|
+
"maxLength": 40
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"required": [
|
|
91
|
+
"label"
|
|
92
|
+
],
|
|
93
|
+
"additionalProperties": false
|
|
94
|
+
},
|
|
95
|
+
"maxItems": 40
|
|
96
|
+
},
|
|
97
|
+
"validUntil": {
|
|
98
|
+
"type": "string",
|
|
99
|
+
"minLength": 1,
|
|
100
|
+
"maxLength": 60
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
"required": [
|
|
104
|
+
"title",
|
|
105
|
+
"amount"
|
|
106
|
+
],
|
|
107
|
+
"additionalProperties": false
|
|
108
|
+
},
|
|
109
|
+
"order": {
|
|
110
|
+
"type": "object",
|
|
111
|
+
"properties": {
|
|
112
|
+
"title": {
|
|
113
|
+
"type": "string",
|
|
114
|
+
"minLength": 1,
|
|
115
|
+
"maxLength": 120
|
|
116
|
+
},
|
|
117
|
+
"items": {
|
|
118
|
+
"type": "array",
|
|
119
|
+
"items": {
|
|
120
|
+
"type": "object",
|
|
121
|
+
"properties": {
|
|
122
|
+
"label": {
|
|
123
|
+
"type": "string",
|
|
124
|
+
"minLength": 1,
|
|
125
|
+
"maxLength": 120
|
|
126
|
+
},
|
|
127
|
+
"quantity": {
|
|
128
|
+
"type": "integer",
|
|
129
|
+
"minimum": 1,
|
|
130
|
+
"maximum": 999
|
|
131
|
+
},
|
|
132
|
+
"amount": {
|
|
133
|
+
"type": "string",
|
|
134
|
+
"minLength": 1,
|
|
135
|
+
"maxLength": 40
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
"required": [
|
|
139
|
+
"label"
|
|
140
|
+
],
|
|
141
|
+
"additionalProperties": false
|
|
142
|
+
},
|
|
143
|
+
"minItems": 1,
|
|
144
|
+
"maxItems": 40
|
|
145
|
+
},
|
|
146
|
+
"total": {
|
|
147
|
+
"type": "string",
|
|
148
|
+
"minLength": 1,
|
|
149
|
+
"maxLength": 40
|
|
150
|
+
},
|
|
151
|
+
"notes": {
|
|
152
|
+
"type": "string",
|
|
153
|
+
"minLength": 1,
|
|
154
|
+
"maxLength": 500
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
"required": [
|
|
158
|
+
"title",
|
|
159
|
+
"items"
|
|
160
|
+
],
|
|
161
|
+
"additionalProperties": false
|
|
162
|
+
},
|
|
163
|
+
"poll": {
|
|
164
|
+
"type": "object",
|
|
165
|
+
"properties": {
|
|
166
|
+
"question": {
|
|
167
|
+
"type": "string",
|
|
168
|
+
"minLength": 1,
|
|
169
|
+
"maxLength": 200
|
|
170
|
+
},
|
|
171
|
+
"options": {
|
|
172
|
+
"type": "array",
|
|
173
|
+
"items": {
|
|
174
|
+
"type": "string",
|
|
175
|
+
"minLength": 1,
|
|
176
|
+
"maxLength": 120
|
|
177
|
+
},
|
|
178
|
+
"minItems": 2,
|
|
179
|
+
"maxItems": 12
|
|
180
|
+
},
|
|
181
|
+
"multi": {
|
|
182
|
+
"type": "boolean"
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
"required": [
|
|
186
|
+
"question",
|
|
187
|
+
"options"
|
|
188
|
+
],
|
|
189
|
+
"additionalProperties": false
|
|
190
|
+
},
|
|
191
|
+
"vote": {
|
|
192
|
+
"anyOf": [
|
|
193
|
+
{
|
|
194
|
+
"type": "string",
|
|
195
|
+
"minLength": 1,
|
|
196
|
+
"maxLength": 120
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"type": "array",
|
|
200
|
+
"items": {
|
|
201
|
+
"type": "string",
|
|
202
|
+
"minLength": 1,
|
|
203
|
+
"maxLength": 120
|
|
204
|
+
},
|
|
205
|
+
"minItems": 1,
|
|
206
|
+
"maxItems": 12
|
|
207
|
+
}
|
|
208
|
+
]
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
"required": [
|
|
212
|
+
"requestId",
|
|
213
|
+
"answer"
|
|
214
|
+
],
|
|
215
|
+
"additionalProperties": false
|
|
216
|
+
}
|