@overtable/schemas 0.0.0-stage → 0.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.
Files changed (44) hide show
  1. package/CHANGELOG.md +13 -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,50 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "availability",
4
+ "type": "object",
5
+ "properties": {
6
+ "title": {
7
+ "type": "string",
8
+ "minLength": 1,
9
+ "maxLength": 80,
10
+ "pattern": "^[^\\r\\n<>]+$",
11
+ "description": "A short label the owner reads on the hold screen: Allergy note, Home address. Not the data itself."
12
+ },
13
+ "timeZone": {
14
+ "type": "string",
15
+ "minLength": 1,
16
+ "maxLength": 64,
17
+ "pattern": "^[^\\r\\n<>]+$",
18
+ "description": "IANA time zone, e.g. Europe/Paris"
19
+ },
20
+ "free": {
21
+ "type": "array",
22
+ "items": {
23
+ "type": "object",
24
+ "properties": {
25
+ "from": {
26
+ "type": "string",
27
+ "format": "date-time"
28
+ },
29
+ "to": {
30
+ "type": "string",
31
+ "format": "date-time"
32
+ }
33
+ },
34
+ "required": [
35
+ "from",
36
+ "to"
37
+ ],
38
+ "additionalProperties": false
39
+ },
40
+ "minItems": 1,
41
+ "maxItems": 50,
42
+ "description": "Free windows, ISO 8601 with offset"
43
+ }
44
+ },
45
+ "required": [
46
+ "title",
47
+ "free"
48
+ ],
49
+ "additionalProperties": false
50
+ }
@@ -0,0 +1,45 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "contact_details",
4
+ "type": "object",
5
+ "properties": {
6
+ "title": {
7
+ "type": "string",
8
+ "minLength": 1,
9
+ "maxLength": 80,
10
+ "pattern": "^[^\\r\\n<>]+$",
11
+ "description": "A short label the owner reads on the hold screen: Allergy note, Home address. Not the data itself."
12
+ },
13
+ "name": {
14
+ "type": "string",
15
+ "minLength": 1,
16
+ "maxLength": 120,
17
+ "pattern": "^[^\\r\\n<>]+$"
18
+ },
19
+ "email": {
20
+ "type": "string",
21
+ "format": "email",
22
+ "maxLength": 254
23
+ },
24
+ "phone": {
25
+ "type": "string",
26
+ "pattern": "^\\+?[0-9][0-9 ().-]{5,24}$"
27
+ },
28
+ "address": {
29
+ "type": "string",
30
+ "minLength": 1,
31
+ "maxLength": 300,
32
+ "pattern": "^[^<>]+$"
33
+ },
34
+ "handle": {
35
+ "type": "string",
36
+ "minLength": 1,
37
+ "maxLength": 64,
38
+ "pattern": "^[^\\r\\n<>]+$"
39
+ }
40
+ },
41
+ "required": [
42
+ "title"
43
+ ],
44
+ "additionalProperties": false
45
+ }
@@ -0,0 +1,59 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "documents",
4
+ "type": "object",
5
+ "properties": {
6
+ "title": {
7
+ "type": "string",
8
+ "minLength": 1,
9
+ "maxLength": 80,
10
+ "pattern": "^[^\\r\\n<>]+$",
11
+ "description": "A short label the owner reads on the hold screen: Allergy note, Home address. Not the data itself."
12
+ },
13
+ "items": {
14
+ "type": "array",
15
+ "items": {
16
+ "type": "object",
17
+ "properties": {
18
+ "name": {
19
+ "type": "string",
20
+ "minLength": 1,
21
+ "maxLength": 200,
22
+ "pattern": "^[^\\r\\n<>]+$"
23
+ },
24
+ "mediaType": {
25
+ "type": "string",
26
+ "pattern": "^[a-z]+\\/[a-z0-9.+-]+$",
27
+ "maxLength": 100
28
+ },
29
+ "sizeBytes": {
30
+ "type": "integer",
31
+ "minimum": 0,
32
+ "maximum": 10000000000
33
+ },
34
+ "sha256": {
35
+ "type": "string",
36
+ "pattern": "^[a-f0-9]{64}$"
37
+ },
38
+ "url": {
39
+ "type": "string",
40
+ "format": "uri",
41
+ "maxLength": 2000,
42
+ "pattern": "^https:\\/\\/"
43
+ }
44
+ },
45
+ "required": [
46
+ "name"
47
+ ],
48
+ "additionalProperties": false
49
+ },
50
+ "minItems": 1,
51
+ "maxItems": 20
52
+ }
53
+ },
54
+ "required": [
55
+ "title",
56
+ "items"
57
+ ],
58
+ "additionalProperties": false
59
+ }
@@ -0,0 +1,71 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "finance",
4
+ "type": "object",
5
+ "properties": {
6
+ "title": {
7
+ "type": "string",
8
+ "minLength": 1,
9
+ "maxLength": 80,
10
+ "pattern": "^[^\\r\\n<>]+$",
11
+ "description": "A short label the owner reads on the hold screen: Allergy note, Home address. Not the data itself."
12
+ },
13
+ "kind": {
14
+ "type": "string",
15
+ "enum": [
16
+ "amount",
17
+ "budget",
18
+ "bank_details",
19
+ "invoice",
20
+ "other"
21
+ ]
22
+ },
23
+ "amount": {
24
+ "type": "object",
25
+ "properties": {
26
+ "value": {
27
+ "type": "number",
28
+ "minimum": 0,
29
+ "maximum": 1000000000000
30
+ },
31
+ "currency": {
32
+ "type": "string",
33
+ "pattern": "^[A-Z]{3}$"
34
+ }
35
+ },
36
+ "required": [
37
+ "value",
38
+ "currency"
39
+ ],
40
+ "additionalProperties": false
41
+ },
42
+ "iban": {
43
+ "allOf": [
44
+ {
45
+ "type": "string"
46
+ },
47
+ {
48
+ "type": "string",
49
+ "pattern": "^[A-Z]{2}[0-9]{2}[A-Z0-9]{10,30}$"
50
+ }
51
+ ]
52
+ },
53
+ "reference": {
54
+ "type": "string",
55
+ "minLength": 1,
56
+ "maxLength": 120,
57
+ "pattern": "^[^\\r\\n<>]+$"
58
+ },
59
+ "note": {
60
+ "type": "string",
61
+ "minLength": 1,
62
+ "maxLength": 500,
63
+ "pattern": "^[^<>]+$"
64
+ }
65
+ },
66
+ "required": [
67
+ "title",
68
+ "kind"
69
+ ],
70
+ "additionalProperties": false
71
+ }
@@ -0,0 +1,52 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "health",
4
+ "type": "object",
5
+ "properties": {
6
+ "title": {
7
+ "type": "string",
8
+ "minLength": 1,
9
+ "maxLength": 80,
10
+ "pattern": "^[^\\r\\n<>]+$",
11
+ "description": "A short label the owner reads on the hold screen: Allergy note, Home address. Not the data itself."
12
+ },
13
+ "kind": {
14
+ "type": "string",
15
+ "enum": [
16
+ "allergy",
17
+ "medication",
18
+ "condition",
19
+ "appointment",
20
+ "vaccination",
21
+ "other"
22
+ ]
23
+ },
24
+ "subject": {
25
+ "type": "string",
26
+ "minLength": 1,
27
+ "maxLength": 80,
28
+ "pattern": "^[^\\r\\n<>]+$",
29
+ "description": "Whom it is about, e.g. Lily"
30
+ },
31
+ "details": {
32
+ "type": "string",
33
+ "minLength": 1,
34
+ "maxLength": 1000,
35
+ "pattern": "^[^<>]+$"
36
+ },
37
+ "severity": {
38
+ "type": "string",
39
+ "enum": [
40
+ "low",
41
+ "medium",
42
+ "high"
43
+ ]
44
+ }
45
+ },
46
+ "required": [
47
+ "title",
48
+ "kind",
49
+ "details"
50
+ ],
51
+ "additionalProperties": false
52
+ }
@@ -0,0 +1,45 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "location",
4
+ "type": "object",
5
+ "properties": {
6
+ "title": {
7
+ "type": "string",
8
+ "minLength": 1,
9
+ "maxLength": 80,
10
+ "pattern": "^[^\\r\\n<>]+$",
11
+ "description": "A short label the owner reads on the hold screen: Allergy note, Home address. Not the data itself."
12
+ },
13
+ "place": {
14
+ "type": "string",
15
+ "minLength": 1,
16
+ "maxLength": 200,
17
+ "pattern": "^[^\\r\\n<>]+$"
18
+ },
19
+ "address": {
20
+ "type": "string",
21
+ "minLength": 1,
22
+ "maxLength": 300,
23
+ "pattern": "^[^<>]+$"
24
+ },
25
+ "lat": {
26
+ "type": "number",
27
+ "minimum": -90,
28
+ "maximum": 90
29
+ },
30
+ "lng": {
31
+ "type": "number",
32
+ "minimum": -180,
33
+ "maximum": 180
34
+ },
35
+ "until": {
36
+ "type": "string",
37
+ "format": "date-time",
38
+ "description": "Until when this holds"
39
+ }
40
+ },
41
+ "required": [
42
+ "title"
43
+ ],
44
+ "additionalProperties": false
45
+ }
@@ -0,0 +1,46 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "preferences",
4
+ "type": "object",
5
+ "properties": {
6
+ "title": {
7
+ "type": "string",
8
+ "minLength": 1,
9
+ "maxLength": 80,
10
+ "pattern": "^[^\\r\\n<>]+$",
11
+ "description": "A short label the owner reads on the hold screen: Allergy note, Home address. Not the data itself."
12
+ },
13
+ "items": {
14
+ "type": "array",
15
+ "items": {
16
+ "type": "object",
17
+ "properties": {
18
+ "topic": {
19
+ "type": "string",
20
+ "minLength": 1,
21
+ "maxLength": 80,
22
+ "pattern": "^[^\\r\\n<>]+$"
23
+ },
24
+ "value": {
25
+ "type": "string",
26
+ "minLength": 1,
27
+ "maxLength": 200,
28
+ "pattern": "^[^\\r\\n<>]+$"
29
+ }
30
+ },
31
+ "required": [
32
+ "topic",
33
+ "value"
34
+ ],
35
+ "additionalProperties": false
36
+ },
37
+ "minItems": 1,
38
+ "maxItems": 30
39
+ }
40
+ },
41
+ "required": [
42
+ "title",
43
+ "items"
44
+ ],
45
+ "additionalProperties": false
46
+ }