@fleetless/contracts 6.3.0 → 6.4.0-next.1

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.
@@ -0,0 +1,219 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "hits": {
6
+ "maxItems": 50,
7
+ "type": "array",
8
+ "items": {
9
+ "oneOf": [
10
+ {
11
+ "type": "object",
12
+ "properties": {
13
+ "kind": {
14
+ "type": "string",
15
+ "const": "org"
16
+ },
17
+ "org_id": {
18
+ "type": "string",
19
+ "format": "uuid",
20
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
21
+ },
22
+ "name": {
23
+ "type": "string"
24
+ }
25
+ },
26
+ "required": [
27
+ "kind",
28
+ "org_id",
29
+ "name"
30
+ ],
31
+ "additionalProperties": false
32
+ },
33
+ {
34
+ "type": "object",
35
+ "properties": {
36
+ "kind": {
37
+ "type": "string",
38
+ "const": "person"
39
+ },
40
+ "user_id": {
41
+ "type": "string",
42
+ "format": "uuid",
43
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
44
+ },
45
+ "email": {
46
+ "type": "string"
47
+ },
48
+ "display_name": {
49
+ "anyOf": [
50
+ {
51
+ "type": "string"
52
+ },
53
+ {
54
+ "type": "null"
55
+ }
56
+ ]
57
+ },
58
+ "org_id": {
59
+ "type": "string",
60
+ "format": "uuid",
61
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
62
+ },
63
+ "org_name": {
64
+ "type": "string"
65
+ }
66
+ },
67
+ "required": [
68
+ "kind",
69
+ "user_id",
70
+ "email",
71
+ "display_name",
72
+ "org_id",
73
+ "org_name"
74
+ ],
75
+ "additionalProperties": false
76
+ },
77
+ {
78
+ "type": "object",
79
+ "properties": {
80
+ "kind": {
81
+ "type": "string",
82
+ "const": "invoice"
83
+ },
84
+ "invoice_id": {
85
+ "type": "string",
86
+ "format": "uuid",
87
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
88
+ },
89
+ "number": {
90
+ "type": "string"
91
+ },
92
+ "org_id": {
93
+ "anyOf": [
94
+ {
95
+ "type": "string",
96
+ "format": "uuid",
97
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
98
+ },
99
+ {
100
+ "type": "null"
101
+ }
102
+ ]
103
+ },
104
+ "org_name": {
105
+ "anyOf": [
106
+ {
107
+ "type": "string"
108
+ },
109
+ {
110
+ "type": "null"
111
+ }
112
+ ]
113
+ }
114
+ },
115
+ "required": [
116
+ "kind",
117
+ "invoice_id",
118
+ "number",
119
+ "org_id",
120
+ "org_name"
121
+ ],
122
+ "additionalProperties": false
123
+ },
124
+ {
125
+ "type": "object",
126
+ "properties": {
127
+ "kind": {
128
+ "type": "string",
129
+ "const": "payment"
130
+ },
131
+ "payment_id": {
132
+ "anyOf": [
133
+ {
134
+ "type": "string",
135
+ "format": "uuid",
136
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
137
+ },
138
+ {
139
+ "type": "null"
140
+ }
141
+ ]
142
+ },
143
+ "mollie_id": {
144
+ "type": "string"
145
+ },
146
+ "matched": {
147
+ "type": "string",
148
+ "enum": [
149
+ "payment",
150
+ "customer",
151
+ "mandate",
152
+ "refund"
153
+ ]
154
+ },
155
+ "org_id": {
156
+ "type": "string",
157
+ "format": "uuid",
158
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
159
+ },
160
+ "org_name": {
161
+ "type": "string"
162
+ }
163
+ },
164
+ "required": [
165
+ "kind",
166
+ "payment_id",
167
+ "mollie_id",
168
+ "matched",
169
+ "org_id",
170
+ "org_name"
171
+ ],
172
+ "additionalProperties": false
173
+ },
174
+ {
175
+ "type": "object",
176
+ "properties": {
177
+ "kind": {
178
+ "type": "string",
179
+ "const": "robot"
180
+ },
181
+ "robot_id": {
182
+ "type": "string",
183
+ "format": "uuid",
184
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
185
+ },
186
+ "name": {
187
+ "type": "string"
188
+ },
189
+ "org_id": {
190
+ "type": "string",
191
+ "format": "uuid",
192
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
193
+ },
194
+ "org_name": {
195
+ "type": "string"
196
+ }
197
+ },
198
+ "required": [
199
+ "kind",
200
+ "robot_id",
201
+ "name",
202
+ "org_id",
203
+ "org_name"
204
+ ],
205
+ "additionalProperties": false
206
+ }
207
+ ]
208
+ }
209
+ },
210
+ "truncated": {
211
+ "type": "boolean"
212
+ }
213
+ },
214
+ "required": [
215
+ "hits",
216
+ "truncated"
217
+ ],
218
+ "additionalProperties": false
219
+ }
@@ -0,0 +1,75 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "oneOf": [
4
+ {
5
+ "type": "object",
6
+ "properties": {
7
+ "mode": {
8
+ "type": "string",
9
+ "const": "preview"
10
+ },
11
+ "input": {
12
+ "type": "object",
13
+ "properties": {
14
+ "org_id": {
15
+ "type": "string",
16
+ "format": "uuid",
17
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
18
+ }
19
+ },
20
+ "required": [
21
+ "org_id"
22
+ ]
23
+ }
24
+ },
25
+ "required": [
26
+ "mode",
27
+ "input"
28
+ ]
29
+ },
30
+ {
31
+ "type": "object",
32
+ "properties": {
33
+ "mode": {
34
+ "type": "string",
35
+ "const": "execute"
36
+ },
37
+ "input": {
38
+ "type": "object",
39
+ "properties": {
40
+ "org_id": {
41
+ "type": "string",
42
+ "format": "uuid",
43
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
44
+ }
45
+ },
46
+ "required": [
47
+ "org_id"
48
+ ]
49
+ },
50
+ "reason": {
51
+ "type": "string",
52
+ "minLength": 10,
53
+ "maxLength": 2000
54
+ },
55
+ "preview_token": {
56
+ "type": "string",
57
+ "minLength": 1,
58
+ "maxLength": 512
59
+ },
60
+ "idempotency_key": {
61
+ "type": "string",
62
+ "format": "uuid",
63
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
64
+ }
65
+ },
66
+ "required": [
67
+ "mode",
68
+ "input",
69
+ "reason",
70
+ "preview_token",
71
+ "idempotency_key"
72
+ ]
73
+ }
74
+ ]
75
+ }
@@ -0,0 +1,134 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "anyOf": [
4
+ {
5
+ "type": "object",
6
+ "properties": {
7
+ "preview": {
8
+ "type": "object",
9
+ "properties": {
10
+ "effects": {
11
+ "minItems": 1,
12
+ "maxItems": 50,
13
+ "type": "array",
14
+ "items": {
15
+ "type": "object",
16
+ "properties": {
17
+ "kind": {
18
+ "type": "string",
19
+ "enum": [
20
+ "changes",
21
+ "triggers",
22
+ "keeps"
23
+ ],
24
+ "description": "`changes`: a value moves from `from` to `to`. `triggers`: something is set off (a mail, a refund, a document). `keeps`: something explicitly stays as it is."
25
+ },
26
+ "label": {
27
+ "type": "string",
28
+ "minLength": 1,
29
+ "maxLength": 300
30
+ },
31
+ "from": {
32
+ "anyOf": [
33
+ {
34
+ "type": "string",
35
+ "maxLength": 300
36
+ },
37
+ {
38
+ "type": "null"
39
+ }
40
+ ]
41
+ },
42
+ "to": {
43
+ "anyOf": [
44
+ {
45
+ "type": "string",
46
+ "maxLength": 300
47
+ },
48
+ {
49
+ "type": "null"
50
+ }
51
+ ]
52
+ },
53
+ "amount_cents": {
54
+ "type": "integer",
55
+ "minimum": -9007199254740991,
56
+ "maximum": 9007199254740991
57
+ }
58
+ },
59
+ "required": [
60
+ "kind",
61
+ "label"
62
+ ],
63
+ "additionalProperties": false
64
+ }
65
+ }
66
+ },
67
+ "required": [
68
+ "effects"
69
+ ],
70
+ "additionalProperties": false
71
+ },
72
+ "preview_token": {
73
+ "type": "string",
74
+ "minLength": 1
75
+ }
76
+ },
77
+ "required": [
78
+ "preview",
79
+ "preview_token"
80
+ ],
81
+ "additionalProperties": false
82
+ },
83
+ {
84
+ "type": "object",
85
+ "properties": {
86
+ "result": {
87
+ "type": "object",
88
+ "properties": {
89
+ "changed": {
90
+ "type": "boolean",
91
+ "const": false
92
+ }
93
+ },
94
+ "required": [
95
+ "changed"
96
+ ],
97
+ "additionalProperties": false
98
+ },
99
+ "audit_ref": {
100
+ "type": "object",
101
+ "properties": {
102
+ "operator_audit": {
103
+ "type": "string",
104
+ "format": "uuid",
105
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
106
+ },
107
+ "org_audit": {
108
+ "anyOf": [
109
+ {
110
+ "type": "string",
111
+ "format": "uuid",
112
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
113
+ },
114
+ {
115
+ "type": "null"
116
+ }
117
+ ]
118
+ }
119
+ },
120
+ "required": [
121
+ "operator_audit",
122
+ "org_audit"
123
+ ],
124
+ "additionalProperties": false
125
+ }
126
+ },
127
+ "required": [
128
+ "result",
129
+ "audit_ref"
130
+ ],
131
+ "additionalProperties": false
132
+ }
133
+ ]
134
+ }
@@ -0,0 +1,28 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "operator_audit": {
6
+ "type": "string",
7
+ "format": "uuid",
8
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
9
+ },
10
+ "org_audit": {
11
+ "anyOf": [
12
+ {
13
+ "type": "string",
14
+ "format": "uuid",
15
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
16
+ },
17
+ {
18
+ "type": "null"
19
+ }
20
+ ]
21
+ }
22
+ },
23
+ "required": [
24
+ "operator_audit",
25
+ "org_audit"
26
+ ],
27
+ "additionalProperties": false
28
+ }
@@ -0,0 +1,66 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "effects": {
6
+ "minItems": 1,
7
+ "maxItems": 50,
8
+ "type": "array",
9
+ "items": {
10
+ "type": "object",
11
+ "properties": {
12
+ "kind": {
13
+ "type": "string",
14
+ "enum": [
15
+ "changes",
16
+ "triggers",
17
+ "keeps"
18
+ ],
19
+ "description": "`changes`: a value moves from `from` to `to`. `triggers`: something is set off (a mail, a refund, a document). `keeps`: something explicitly stays as it is."
20
+ },
21
+ "label": {
22
+ "type": "string",
23
+ "minLength": 1,
24
+ "maxLength": 300
25
+ },
26
+ "from": {
27
+ "anyOf": [
28
+ {
29
+ "type": "string",
30
+ "maxLength": 300
31
+ },
32
+ {
33
+ "type": "null"
34
+ }
35
+ ]
36
+ },
37
+ "to": {
38
+ "anyOf": [
39
+ {
40
+ "type": "string",
41
+ "maxLength": 300
42
+ },
43
+ {
44
+ "type": "null"
45
+ }
46
+ ]
47
+ },
48
+ "amount_cents": {
49
+ "type": "integer",
50
+ "minimum": -9007199254740991,
51
+ "maximum": 9007199254740991
52
+ }
53
+ },
54
+ "required": [
55
+ "kind",
56
+ "label"
57
+ ],
58
+ "additionalProperties": false
59
+ }
60
+ }
61
+ },
62
+ "required": [
63
+ "effects"
64
+ ],
65
+ "additionalProperties": false
66
+ }
@@ -0,0 +1,80 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "preview": {
6
+ "type": "object",
7
+ "properties": {
8
+ "effects": {
9
+ "minItems": 1,
10
+ "maxItems": 50,
11
+ "type": "array",
12
+ "items": {
13
+ "type": "object",
14
+ "properties": {
15
+ "kind": {
16
+ "type": "string",
17
+ "enum": [
18
+ "changes",
19
+ "triggers",
20
+ "keeps"
21
+ ],
22
+ "description": "`changes`: a value moves from `from` to `to`. `triggers`: something is set off (a mail, a refund, a document). `keeps`: something explicitly stays as it is."
23
+ },
24
+ "label": {
25
+ "type": "string",
26
+ "minLength": 1,
27
+ "maxLength": 300
28
+ },
29
+ "from": {
30
+ "anyOf": [
31
+ {
32
+ "type": "string",
33
+ "maxLength": 300
34
+ },
35
+ {
36
+ "type": "null"
37
+ }
38
+ ]
39
+ },
40
+ "to": {
41
+ "anyOf": [
42
+ {
43
+ "type": "string",
44
+ "maxLength": 300
45
+ },
46
+ {
47
+ "type": "null"
48
+ }
49
+ ]
50
+ },
51
+ "amount_cents": {
52
+ "type": "integer",
53
+ "minimum": -9007199254740991,
54
+ "maximum": 9007199254740991
55
+ }
56
+ },
57
+ "required": [
58
+ "kind",
59
+ "label"
60
+ ],
61
+ "additionalProperties": false
62
+ }
63
+ }
64
+ },
65
+ "required": [
66
+ "effects"
67
+ ],
68
+ "additionalProperties": false
69
+ },
70
+ "preview_token": {
71
+ "type": "string",
72
+ "minLength": 1
73
+ }
74
+ },
75
+ "required": [
76
+ "preview",
77
+ "preview_token"
78
+ ],
79
+ "additionalProperties": false
80
+ }