@fleetless/contracts 6.3.0-next.5 → 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.
- package/CHANGELOG.md +79 -0
- package/CONTRIBUTING.md +4 -4
- package/artifacts/openapi.json +4386 -1883
- package/artifacts/routes.json +461 -2
- package/artifacts/schema/admin-org-detail.schema.json +641 -0
- package/artifacts/schema/admin-search-query.schema.json +14 -0
- package/artifacts/schema/admin-search-response.schema.json +219 -0
- package/artifacts/schema/billing-address.schema.json +49 -0
- package/artifacts/schema/billing-cancel-request.schema.json +12 -0
- package/artifacts/schema/billing-change-request.schema.json +60 -0
- package/artifacts/schema/billing-change-response.schema.json +799 -0
- package/artifacts/schema/billing-details-update.schema.json +25 -0
- package/artifacts/schema/billing-details.schema.json +176 -0
- package/artifacts/schema/billing-invoice.schema.json +76 -0
- package/artifacts/schema/billing-view.schema.json +705 -0
- package/artifacts/schema/checkout-request.schema.json +252 -0
- package/artifacts/schema/checkout-response.schema.json +22 -0
- package/artifacts/schema/checkout-status.schema.json +49 -0
- package/artifacts/schema/noop-command-request.schema.json +75 -0
- package/artifacts/schema/noop-command-response.schema.json +134 -0
- package/artifacts/schema/operator-audit-ref.schema.json +28 -0
- package/artifacts/schema/operator-preview.schema.json +66 -0
- package/artifacts/schema/payment-method-change-request.schema.json +19 -0
- package/artifacts/schema/payment-method.schema.json +86 -0
- package/artifacts/schema/payment-provider-unavailable-details.schema.json +29 -0
- package/artifacts/schema/preview-stale-details.schema.json +80 -0
- package/artifacts/schema/vat-id-check-request.schema.json +22 -0
- package/artifacts/schema/vat-id-check-response.schema.json +36 -0
- package/dist/admin.d.ts +217 -0
- package/dist/admin.js +39 -0
- package/dist/app-users.d.ts +3 -3
- package/dist/billing.d.ts +812 -0
- package/dist/billing.js +471 -0
- package/dist/errors.d.ts +23 -11
- package/dist/errors.js +47 -0
- package/dist/index.d.ts +12 -4
- package/dist/index.js +10 -2
- package/dist/operator-commands.d.ts +137 -0
- package/dist/operator-commands.js +51 -0
- package/dist/operator.d.ts +63 -0
- package/dist/operator.js +48 -0
- package/dist/plans.d.ts +25 -25
- package/dist/realtime.d.ts +2 -2
- package/dist/rest.d.ts +3 -3
- package/dist/routes.d.ts +21 -2
- package/dist/routes.js +270 -4
- package/package.json +1 -1
|
@@ -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,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"line1": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"minLength": 1,
|
|
8
|
+
"maxLength": 200,
|
|
9
|
+
"description": "Street and number, or the first address line."
|
|
10
|
+
},
|
|
11
|
+
"line2": {
|
|
12
|
+
"anyOf": [
|
|
13
|
+
{
|
|
14
|
+
"type": "string",
|
|
15
|
+
"maxLength": 200
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"type": "null"
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"description": "A second address line, or `null` when there is none."
|
|
22
|
+
},
|
|
23
|
+
"postal_code": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"minLength": 1,
|
|
26
|
+
"maxLength": 20,
|
|
27
|
+
"description": "Postal or ZIP code."
|
|
28
|
+
},
|
|
29
|
+
"city": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"minLength": 1,
|
|
32
|
+
"maxLength": 100,
|
|
33
|
+
"description": "City or town."
|
|
34
|
+
},
|
|
35
|
+
"country": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"pattern": "^[A-Z]{2}$",
|
|
38
|
+
"description": "The billing country. Decides VAT (`vatFor`) and currency (`currencyForCountry`)."
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"required": [
|
|
42
|
+
"line1",
|
|
43
|
+
"line2",
|
|
44
|
+
"postal_code",
|
|
45
|
+
"city",
|
|
46
|
+
"country"
|
|
47
|
+
],
|
|
48
|
+
"additionalProperties": false
|
|
49
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"reason": {
|
|
6
|
+
"description": "An optional free-text reason. Shown to nobody but Fleetless.",
|
|
7
|
+
"type": "string",
|
|
8
|
+
"maxLength": 500
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
"additionalProperties": false
|
|
12
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"plan": {
|
|
6
|
+
"description": "The target plan. Omitted leaves the plan as it is.",
|
|
7
|
+
"type": "string",
|
|
8
|
+
"enum": [
|
|
9
|
+
"plus",
|
|
10
|
+
"pro"
|
|
11
|
+
]
|
|
12
|
+
},
|
|
13
|
+
"cycle": {
|
|
14
|
+
"description": "The target cycle. Omitted leaves the cycle as it is.",
|
|
15
|
+
"type": "string",
|
|
16
|
+
"enum": [
|
|
17
|
+
"monthly",
|
|
18
|
+
"yearly"
|
|
19
|
+
]
|
|
20
|
+
},
|
|
21
|
+
"addons": {
|
|
22
|
+
"description": "Absolute add-on counts to end up with, not a delta. Omitted leaves add-ons as they are.",
|
|
23
|
+
"type": "object",
|
|
24
|
+
"properties": {
|
|
25
|
+
"seats": {
|
|
26
|
+
"type": "integer",
|
|
27
|
+
"minimum": 0,
|
|
28
|
+
"maximum": 9007199254740991,
|
|
29
|
+
"description": "Extra developer seats, one each."
|
|
30
|
+
},
|
|
31
|
+
"robots": {
|
|
32
|
+
"type": "integer",
|
|
33
|
+
"minimum": 0,
|
|
34
|
+
"maximum": 9007199254740991,
|
|
35
|
+
"description": "Extra robots, one each."
|
|
36
|
+
},
|
|
37
|
+
"apps": {
|
|
38
|
+
"type": "integer",
|
|
39
|
+
"minimum": 0,
|
|
40
|
+
"maximum": 9007199254740991,
|
|
41
|
+
"description": "Extra apps, one each."
|
|
42
|
+
},
|
|
43
|
+
"app_user_packs": {
|
|
44
|
+
"type": "integer",
|
|
45
|
+
"minimum": 0,
|
|
46
|
+
"maximum": 9007199254740991,
|
|
47
|
+
"description": "Packs of five extra app users."
|
|
48
|
+
},
|
|
49
|
+
"live_video_packs": {
|
|
50
|
+
"type": "integer",
|
|
51
|
+
"minimum": 0,
|
|
52
|
+
"maximum": 9007199254740991,
|
|
53
|
+
"description": "Packs of 250 extra hours of app-user live video per month."
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"additionalProperties": false
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"additionalProperties": false
|
|
60
|
+
}
|