@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.
Files changed (44) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/LICENSE +202 -0
  3. package/README.md +55 -2
  4. package/dist/index.d.ts +215 -0
  5. package/dist/index.js +759 -0
  6. package/dist/json-schema/pairs/calendar.freebusy.answer.json +41 -0
  7. package/dist/json-schema/pairs/calendar.freebusy.ask.json +32 -0
  8. package/dist/json-schema/pairs/contact.channel.answer.json +26 -0
  9. package/dist/json-schema/pairs/contact.channel.ask.json +7 -0
  10. package/dist/json-schema/pairs/message.answer.json +7 -0
  11. package/dist/json-schema/pairs/message.ask.json +17 -0
  12. package/dist/json-schema/pairs/note.answer.json +7 -0
  13. package/dist/json-schema/pairs/note.ask.json +17 -0
  14. package/dist/json-schema/pairs/offers.list.answer.json +68 -0
  15. package/dist/json-schema/pairs/offers.list.ask.json +14 -0
  16. package/dist/json-schema/pairs/overtable.ping.answer.json +17 -0
  17. package/dist/json-schema/pairs/overtable.ping.ask.json +7 -0
  18. package/dist/json-schema/pairs/preferences.ask.answer.json +22 -0
  19. package/dist/json-schema/pairs/preferences.ask.ask.json +17 -0
  20. package/dist/json-schema/pairs/quote.answer.json +57 -0
  21. package/dist/json-schema/pairs/quote.ask.json +85 -0
  22. package/dist/json-schema/pairs/rate.range.answer.json +60 -0
  23. package/dist/json-schema/pairs/rate.range.ask.json +17 -0
  24. package/dist/json-schema/pairs/recommendation.ask.answer.json +21 -0
  25. package/dist/json-schema/pairs/recommendation.ask.ask.json +17 -0
  26. package/dist/json-schema/pairs/scope.ask.answer.json +25 -0
  27. package/dist/json-schema/pairs/scope.ask.ask.json +17 -0
  28. package/dist/json-schema/pairs/slot.answer.json +43 -0
  29. package/dist/json-schema/pairs/slot.ask.json +35 -0
  30. package/dist/json-schema/requests/order.json +56 -0
  31. package/dist/json-schema/requests/poll.json +30 -0
  32. package/dist/json-schema/requests/quote.json +56 -0
  33. package/dist/json-schema/requests/request_answer.json +216 -0
  34. package/dist/json-schema/requests/request_create.json +676 -0
  35. package/dist/json-schema/requests/slot.json +33 -0
  36. package/dist/json-schema/share/availability.json +50 -0
  37. package/dist/json-schema/share/contact_details.json +45 -0
  38. package/dist/json-schema/share/documents.json +59 -0
  39. package/dist/json-schema/share/finance.json +71 -0
  40. package/dist/json-schema/share/health.json +52 -0
  41. package/dist/json-schema/share/location.json +45 -0
  42. package/dist/json-schema/share/preferences.json +46 -0
  43. package/dist/json-schema/share/share.json +458 -0
  44. package/package.json +47 -4
@@ -0,0 +1,41 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "calendar.freebusy.answer",
4
+ "type": "object",
5
+ "properties": {
6
+ "timeZone": {
7
+ "type": "string",
8
+ "minLength": 1,
9
+ "maxLength": 64
10
+ },
11
+ "free": {
12
+ "type": "array",
13
+ "items": {
14
+ "type": "object",
15
+ "properties": {
16
+ "from": {
17
+ "type": "string",
18
+ "minLength": 10,
19
+ "maxLength": 40
20
+ },
21
+ "to": {
22
+ "type": "string",
23
+ "minLength": 10,
24
+ "maxLength": 40
25
+ }
26
+ },
27
+ "required": [
28
+ "from",
29
+ "to"
30
+ ],
31
+ "additionalProperties": false
32
+ },
33
+ "maxItems": 50
34
+ }
35
+ },
36
+ "required": [
37
+ "timeZone",
38
+ "free"
39
+ ],
40
+ "additionalProperties": false
41
+ }
@@ -0,0 +1,32 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "calendar.freebusy.ask",
4
+ "type": "object",
5
+ "properties": {
6
+ "from": {
7
+ "type": "string",
8
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
9
+ },
10
+ "to": {
11
+ "type": "string",
12
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
13
+ },
14
+ "granularity": {
15
+ "type": "string",
16
+ "enum": [
17
+ "day",
18
+ "hour"
19
+ ]
20
+ },
21
+ "timeZone": {
22
+ "type": "string",
23
+ "minLength": 1,
24
+ "maxLength": 64
25
+ }
26
+ },
27
+ "required": [
28
+ "from",
29
+ "to"
30
+ ],
31
+ "additionalProperties": false
32
+ }
@@ -0,0 +1,26 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "contact.channel.answer",
4
+ "type": "object",
5
+ "properties": {
6
+ "channel": {
7
+ "type": "string",
8
+ "enum": [
9
+ "email",
10
+ "phone",
11
+ "form"
12
+ ]
13
+ },
14
+ "value": {
15
+ "type": "string",
16
+ "minLength": 1,
17
+ "maxLength": 200,
18
+ "pattern": "^[^\\r\\n<>]+$"
19
+ }
20
+ },
21
+ "required": [
22
+ "channel",
23
+ "value"
24
+ ],
25
+ "additionalProperties": false
26
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "contact.channel.ask",
4
+ "type": "object",
5
+ "properties": {},
6
+ "additionalProperties": false
7
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "message.answer",
4
+ "type": "object",
5
+ "properties": {},
6
+ "additionalProperties": false
7
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "message.ask",
4
+ "type": "object",
5
+ "properties": {
6
+ "text": {
7
+ "type": "string",
8
+ "minLength": 1,
9
+ "maxLength": 2000,
10
+ "pattern": "^[^\\u0000-\\u0008\\u000b\\u000c\\u000e-\\u001f\\u007f]+$"
11
+ }
12
+ },
13
+ "required": [
14
+ "text"
15
+ ],
16
+ "additionalProperties": false
17
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "note.answer",
4
+ "type": "object",
5
+ "properties": {},
6
+ "additionalProperties": false
7
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "note.ask",
4
+ "type": "object",
5
+ "properties": {
6
+ "text": {
7
+ "type": "string",
8
+ "minLength": 1,
9
+ "maxLength": 4000,
10
+ "pattern": "^[^\\u0000-\\u0008\\u000b\\u000c\\u000e-\\u001f\\u007f]+$"
11
+ }
12
+ },
13
+ "required": [
14
+ "text"
15
+ ],
16
+ "additionalProperties": false
17
+ }
@@ -0,0 +1,68 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "offers.list.answer",
4
+ "type": "object",
5
+ "properties": {
6
+ "currency": {
7
+ "type": "string",
8
+ "pattern": "^[A-Z]{3}$"
9
+ },
10
+ "items": {
11
+ "type": "array",
12
+ "items": {
13
+ "type": "object",
14
+ "properties": {
15
+ "id": {
16
+ "type": "string",
17
+ "minLength": 1,
18
+ "maxLength": 64,
19
+ "pattern": "^[^\\r\\n<>]+$"
20
+ },
21
+ "label": {
22
+ "type": "string",
23
+ "minLength": 1,
24
+ "maxLength": 120,
25
+ "pattern": "^[^\\r\\n<>]+$"
26
+ },
27
+ "amount": {
28
+ "anyOf": [
29
+ {
30
+ "type": "string",
31
+ "pattern": "^\\d{1,9}(?:[.,]\\d{1,2})?$"
32
+ },
33
+ {
34
+ "type": "number",
35
+ "minimum": 0,
36
+ "maximum": 999999999
37
+ }
38
+ ]
39
+ },
40
+ "unit": {
41
+ "type": "string",
42
+ "minLength": 1,
43
+ "maxLength": 40,
44
+ "pattern": "^[^\\r\\n<>]+$"
45
+ },
46
+ "conditions": {
47
+ "type": "string",
48
+ "minLength": 1,
49
+ "maxLength": 300,
50
+ "pattern": "^[^\\r\\n<>]+$"
51
+ }
52
+ },
53
+ "required": [
54
+ "id",
55
+ "label",
56
+ "amount"
57
+ ],
58
+ "additionalProperties": false
59
+ },
60
+ "maxItems": 50
61
+ }
62
+ },
63
+ "required": [
64
+ "currency",
65
+ "items"
66
+ ],
67
+ "additionalProperties": false
68
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "offers.list.ask",
4
+ "type": "object",
5
+ "properties": {
6
+ "query": {
7
+ "type": "string",
8
+ "minLength": 1,
9
+ "maxLength": 200,
10
+ "pattern": "^[^\\r\\n<>]+$"
11
+ }
12
+ },
13
+ "additionalProperties": false
14
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "overtable.ping.answer",
4
+ "type": "object",
5
+ "properties": {
6
+ "reply": {
7
+ "type": "string",
8
+ "minLength": 1,
9
+ "maxLength": 300,
10
+ "pattern": "^[^\\r\\n<>]+$"
11
+ }
12
+ },
13
+ "required": [
14
+ "reply"
15
+ ],
16
+ "additionalProperties": false
17
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "overtable.ping.ask",
4
+ "type": "object",
5
+ "properties": {},
6
+ "additionalProperties": false
7
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "preferences.ask.answer",
4
+ "type": "object",
5
+ "properties": {
6
+ "preferences": {
7
+ "type": "array",
8
+ "items": {
9
+ "type": "string",
10
+ "minLength": 1,
11
+ "maxLength": 200,
12
+ "pattern": "^[^\\r\\n<>]+$"
13
+ },
14
+ "minItems": 1,
15
+ "maxItems": 10
16
+ }
17
+ },
18
+ "required": [
19
+ "preferences"
20
+ ],
21
+ "additionalProperties": false
22
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "preferences.ask.ask",
4
+ "type": "object",
5
+ "properties": {
6
+ "context": {
7
+ "type": "string",
8
+ "minLength": 1,
9
+ "maxLength": 200,
10
+ "pattern": "^[^\\r\\n<>]+$"
11
+ }
12
+ },
13
+ "required": [
14
+ "context"
15
+ ],
16
+ "additionalProperties": false
17
+ }
@@ -0,0 +1,57 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "quote.answer",
4
+ "type": "object",
5
+ "properties": {
6
+ "amount": {
7
+ "anyOf": [
8
+ {
9
+ "type": "string",
10
+ "pattern": "^\\d{1,9}(?:[.,]\\d{1,2})?$"
11
+ },
12
+ {
13
+ "type": "number",
14
+ "minimum": 0,
15
+ "maximum": 999999999
16
+ }
17
+ ]
18
+ },
19
+ "currency": {
20
+ "type": "string",
21
+ "pattern": "^[A-Z]{3}$"
22
+ },
23
+ "unit": {
24
+ "type": "string",
25
+ "enum": [
26
+ "hour",
27
+ "day",
28
+ "session",
29
+ "project",
30
+ "item",
31
+ "month"
32
+ ]
33
+ },
34
+ "quantity": {
35
+ "type": "number",
36
+ "exclusiveMinimum": 0,
37
+ "maximum": 10000
38
+ },
39
+ "validUntil": {
40
+ "type": "string",
41
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
42
+ },
43
+ "conditions": {
44
+ "type": "string",
45
+ "minLength": 1,
46
+ "maxLength": 300,
47
+ "pattern": "^[^\\r\\n<>]+$"
48
+ }
49
+ },
50
+ "required": [
51
+ "amount",
52
+ "currency",
53
+ "unit",
54
+ "validUntil"
55
+ ],
56
+ "additionalProperties": false
57
+ }
@@ -0,0 +1,85 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "quote.ask",
4
+ "anyOf": [
5
+ {
6
+ "type": "object",
7
+ "properties": {
8
+ "service": {
9
+ "type": "string",
10
+ "minLength": 1,
11
+ "maxLength": 120,
12
+ "pattern": "^[^\\r\\n<>]+$"
13
+ },
14
+ "need": {
15
+ "type": "string",
16
+ "minLength": 1,
17
+ "maxLength": 500,
18
+ "pattern": "^[^\\u0000-\\u0008\\u000b\\u000c\\u000e-\\u001f\\u007f]+$"
19
+ },
20
+ "budget": {
21
+ "type": "object",
22
+ "properties": {
23
+ "amount": {
24
+ "anyOf": [
25
+ {
26
+ "type": "string",
27
+ "pattern": "^\\d{1,9}(?:[.,]\\d{1,2})?$"
28
+ },
29
+ {
30
+ "type": "number",
31
+ "minimum": 0,
32
+ "maximum": 999999999
33
+ }
34
+ ]
35
+ },
36
+ "currency": {
37
+ "type": "string",
38
+ "pattern": "^[A-Z]{3}$"
39
+ }
40
+ },
41
+ "required": [
42
+ "amount",
43
+ "currency"
44
+ ],
45
+ "additionalProperties": false
46
+ },
47
+ "dates": {
48
+ "type": "object",
49
+ "properties": {
50
+ "from": {
51
+ "type": "string",
52
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
53
+ },
54
+ "to": {
55
+ "type": "string",
56
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
57
+ }
58
+ },
59
+ "required": [
60
+ "from"
61
+ ],
62
+ "additionalProperties": false
63
+ }
64
+ },
65
+ "required": [
66
+ "service",
67
+ "need"
68
+ ],
69
+ "additionalProperties": false
70
+ },
71
+ {
72
+ "type": "object",
73
+ "properties": {
74
+ "accept": {
75
+ "type": "boolean",
76
+ "const": true
77
+ }
78
+ },
79
+ "required": [
80
+ "accept"
81
+ ],
82
+ "additionalProperties": false
83
+ }
84
+ ]
85
+ }
@@ -0,0 +1,60 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "rate.range.answer",
4
+ "type": "object",
5
+ "properties": {
6
+ "currency": {
7
+ "type": "string",
8
+ "pattern": "^[A-Z]{3}$"
9
+ },
10
+ "min": {
11
+ "anyOf": [
12
+ {
13
+ "type": "string",
14
+ "pattern": "^\\d{1,9}(?:[.,]\\d{1,2})?$"
15
+ },
16
+ {
17
+ "type": "number",
18
+ "minimum": 0,
19
+ "maximum": 999999999
20
+ }
21
+ ]
22
+ },
23
+ "max": {
24
+ "anyOf": [
25
+ {
26
+ "type": "string",
27
+ "pattern": "^\\d{1,9}(?:[.,]\\d{1,2})?$"
28
+ },
29
+ {
30
+ "type": "number",
31
+ "minimum": 0,
32
+ "maximum": 999999999
33
+ }
34
+ ]
35
+ },
36
+ "unit": {
37
+ "type": "string",
38
+ "enum": [
39
+ "hour",
40
+ "day",
41
+ "project",
42
+ "item",
43
+ "month"
44
+ ]
45
+ },
46
+ "conditions": {
47
+ "type": "string",
48
+ "minLength": 1,
49
+ "maxLength": 300,
50
+ "pattern": "^[^\\r\\n<>]+$"
51
+ }
52
+ },
53
+ "required": [
54
+ "currency",
55
+ "min",
56
+ "max",
57
+ "unit"
58
+ ],
59
+ "additionalProperties": false
60
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "rate.range.ask",
4
+ "type": "object",
5
+ "properties": {
6
+ "service": {
7
+ "type": "string",
8
+ "minLength": 1,
9
+ "maxLength": 200,
10
+ "pattern": "^[^\\r\\n<>]+$"
11
+ }
12
+ },
13
+ "required": [
14
+ "service"
15
+ ],
16
+ "additionalProperties": false
17
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "recommendation.ask.answer",
4
+ "type": "object",
5
+ "properties": {
6
+ "recommendation": {
7
+ "type": "string",
8
+ "minLength": 1,
9
+ "maxLength": 500,
10
+ "pattern": "^[^\\r\\n<>]+$"
11
+ },
12
+ "link": {
13
+ "type": "string",
14
+ "maxLength": 500
15
+ }
16
+ },
17
+ "required": [
18
+ "recommendation"
19
+ ],
20
+ "additionalProperties": false
21
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "recommendation.ask.ask",
4
+ "type": "object",
5
+ "properties": {
6
+ "topic": {
7
+ "type": "string",
8
+ "minLength": 1,
9
+ "maxLength": 200,
10
+ "pattern": "^[^\\r\\n<>]+$"
11
+ }
12
+ },
13
+ "required": [
14
+ "topic"
15
+ ],
16
+ "additionalProperties": false
17
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "scope.ask.answer",
4
+ "type": "object",
5
+ "properties": {
6
+ "fit": {
7
+ "type": "string",
8
+ "enum": [
9
+ "yes",
10
+ "partly",
11
+ "no"
12
+ ]
13
+ },
14
+ "note": {
15
+ "type": "string",
16
+ "minLength": 1,
17
+ "maxLength": 300,
18
+ "pattern": "^[^\\r\\n<>]+$"
19
+ }
20
+ },
21
+ "required": [
22
+ "fit"
23
+ ],
24
+ "additionalProperties": false
25
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "scope.ask.ask",
4
+ "type": "object",
5
+ "properties": {
6
+ "need": {
7
+ "type": "string",
8
+ "minLength": 1,
9
+ "maxLength": 500,
10
+ "pattern": "^[^\\u0000-\\u0008\\u000b\\u000c\\u000e-\\u001f\\u007f]+$"
11
+ }
12
+ },
13
+ "required": [
14
+ "need"
15
+ ],
16
+ "additionalProperties": false
17
+ }
@@ -0,0 +1,43 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "slot.answer",
4
+ "anyOf": [
5
+ {
6
+ "type": "object",
7
+ "properties": {
8
+ "accept": {
9
+ "type": "integer",
10
+ "minimum": 0,
11
+ "maximum": 2
12
+ }
13
+ },
14
+ "required": [
15
+ "accept"
16
+ ],
17
+ "additionalProperties": false
18
+ },
19
+ {
20
+ "type": "object",
21
+ "properties": {
22
+ "counter": {
23
+ "type": "object",
24
+ "properties": {
25
+ "when": {
26
+ "type": "string",
27
+ "minLength": 10,
28
+ "maxLength": 40
29
+ }
30
+ },
31
+ "required": [
32
+ "when"
33
+ ],
34
+ "additionalProperties": false
35
+ }
36
+ },
37
+ "required": [
38
+ "counter"
39
+ ],
40
+ "additionalProperties": false
41
+ }
42
+ ]
43
+ }