@fleetless/contracts 9.1.0 → 10.0.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 +22 -0
- package/artifacts/openapi.json +18597 -10329
- package/artifacts/routes.json +96 -16
- package/artifacts/schema/billing-change-response.schema.json +1527 -1727
- package/artifacts/schema/billing-decision-amounts.schema.json +244 -0
- package/artifacts/schema/billing-decision-display-request.schema.json +24 -0
- package/artifacts/schema/billing-decision-display-response.schema.json +3130 -0
- package/artifacts/schema/billing-decision-period.schema.json +550 -0
- package/artifacts/schema/billing-decision-snapshot.schema.json +3103 -0
- package/artifacts/schema/checkout-request.schema.json +3 -4
- package/artifacts/schema/checkout-response.schema.json +492 -402
- package/artifacts/schema/confirmation-proof.schema.json +6 -0
- package/artifacts/schema/plan-change-decision-lookup-query.schema.json +16 -0
- package/artifacts/schema/plan-change-decision-status-response.schema.json +543 -0
- package/artifacts/schema/plan-change-prepare-request.schema.json +84 -0
- package/artifacts/schema/plan-change-prepare-response.schema.json +3162 -0
- package/artifacts/schema/plan-change-request.schema.json +177 -65
- package/artifacts/schema/purchase-conflict-details.schema.json +94 -0
- package/artifacts/schema/purchase-intent-accepted-without-payment.schema.json +95 -0
- package/artifacts/schema/purchase-intent-confirm-request.schema.json +146 -33
- package/artifacts/schema/purchase-intent-draft.schema.json +449 -0
- package/artifacts/schema/purchase-intent-payment-started.schema.json +184 -0
- package/artifacts/schema/purchase-intent-response.schema.json +1235 -168
- package/dist/billing.d.ts +5665 -210
- package/dist/billing.js +224 -29
- package/dist/confirmation-proof.d.ts +5 -0
- package/dist/confirmation-proof.js +6 -0
- package/dist/iana-time-zones.d.ts +2 -0
- package/dist/iana-time-zones.js +426 -0
- package/dist/index.d.ts +5 -4
- package/dist/index.js +3 -2
- package/dist/plans.d.ts +125 -1
- package/dist/plans.js +19 -1
- package/dist/purchase-operation-key.d.ts +4 -0
- package/dist/purchase-operation-key.js +4 -0
- package/dist/routes.js +42 -21
- package/package.json +3 -1
|
@@ -0,0 +1,426 @@
|
|
|
1
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
2
|
+
// Named IANA zone IDs accepted by Node 22 ICU, pinned for stable wire artifacts.
|
|
3
|
+
// Bare abbreviations such as CET are intentionally excluded.
|
|
4
|
+
export const ianaTimeZones = [
|
|
5
|
+
"UTC",
|
|
6
|
+
"Etc/UTC",
|
|
7
|
+
"Etc/GMT",
|
|
8
|
+
"Africa/Abidjan",
|
|
9
|
+
"Africa/Accra",
|
|
10
|
+
"Africa/Addis_Ababa",
|
|
11
|
+
"Africa/Algiers",
|
|
12
|
+
"Africa/Asmera",
|
|
13
|
+
"Africa/Bamako",
|
|
14
|
+
"Africa/Bangui",
|
|
15
|
+
"Africa/Banjul",
|
|
16
|
+
"Africa/Bissau",
|
|
17
|
+
"Africa/Blantyre",
|
|
18
|
+
"Africa/Brazzaville",
|
|
19
|
+
"Africa/Bujumbura",
|
|
20
|
+
"Africa/Cairo",
|
|
21
|
+
"Africa/Casablanca",
|
|
22
|
+
"Africa/Ceuta",
|
|
23
|
+
"Africa/Conakry",
|
|
24
|
+
"Africa/Dakar",
|
|
25
|
+
"Africa/Dar_es_Salaam",
|
|
26
|
+
"Africa/Djibouti",
|
|
27
|
+
"Africa/Douala",
|
|
28
|
+
"Africa/El_Aaiun",
|
|
29
|
+
"Africa/Freetown",
|
|
30
|
+
"Africa/Gaborone",
|
|
31
|
+
"Africa/Harare",
|
|
32
|
+
"Africa/Johannesburg",
|
|
33
|
+
"Africa/Juba",
|
|
34
|
+
"Africa/Kampala",
|
|
35
|
+
"Africa/Khartoum",
|
|
36
|
+
"Africa/Kigali",
|
|
37
|
+
"Africa/Kinshasa",
|
|
38
|
+
"Africa/Lagos",
|
|
39
|
+
"Africa/Libreville",
|
|
40
|
+
"Africa/Lome",
|
|
41
|
+
"Africa/Luanda",
|
|
42
|
+
"Africa/Lubumbashi",
|
|
43
|
+
"Africa/Lusaka",
|
|
44
|
+
"Africa/Malabo",
|
|
45
|
+
"Africa/Maputo",
|
|
46
|
+
"Africa/Maseru",
|
|
47
|
+
"Africa/Mbabane",
|
|
48
|
+
"Africa/Mogadishu",
|
|
49
|
+
"Africa/Monrovia",
|
|
50
|
+
"Africa/Nairobi",
|
|
51
|
+
"Africa/Ndjamena",
|
|
52
|
+
"Africa/Niamey",
|
|
53
|
+
"Africa/Nouakchott",
|
|
54
|
+
"Africa/Ouagadougou",
|
|
55
|
+
"Africa/Porto-Novo",
|
|
56
|
+
"Africa/Sao_Tome",
|
|
57
|
+
"Africa/Tripoli",
|
|
58
|
+
"Africa/Tunis",
|
|
59
|
+
"Africa/Windhoek",
|
|
60
|
+
"America/Adak",
|
|
61
|
+
"America/Anchorage",
|
|
62
|
+
"America/Anguilla",
|
|
63
|
+
"America/Antigua",
|
|
64
|
+
"America/Araguaina",
|
|
65
|
+
"America/Argentina/La_Rioja",
|
|
66
|
+
"America/Argentina/Rio_Gallegos",
|
|
67
|
+
"America/Argentina/Salta",
|
|
68
|
+
"America/Argentina/San_Juan",
|
|
69
|
+
"America/Argentina/San_Luis",
|
|
70
|
+
"America/Argentina/Tucuman",
|
|
71
|
+
"America/Argentina/Ushuaia",
|
|
72
|
+
"America/Aruba",
|
|
73
|
+
"America/Asuncion",
|
|
74
|
+
"America/Bahia",
|
|
75
|
+
"America/Bahia_Banderas",
|
|
76
|
+
"America/Barbados",
|
|
77
|
+
"America/Belem",
|
|
78
|
+
"America/Belize",
|
|
79
|
+
"America/Blanc-Sablon",
|
|
80
|
+
"America/Boa_Vista",
|
|
81
|
+
"America/Bogota",
|
|
82
|
+
"America/Boise",
|
|
83
|
+
"America/Buenos_Aires",
|
|
84
|
+
"America/Cambridge_Bay",
|
|
85
|
+
"America/Campo_Grande",
|
|
86
|
+
"America/Cancun",
|
|
87
|
+
"America/Caracas",
|
|
88
|
+
"America/Catamarca",
|
|
89
|
+
"America/Cayenne",
|
|
90
|
+
"America/Cayman",
|
|
91
|
+
"America/Chicago",
|
|
92
|
+
"America/Chihuahua",
|
|
93
|
+
"America/Ciudad_Juarez",
|
|
94
|
+
"America/Coral_Harbour",
|
|
95
|
+
"America/Cordoba",
|
|
96
|
+
"America/Costa_Rica",
|
|
97
|
+
"America/Coyhaique",
|
|
98
|
+
"America/Creston",
|
|
99
|
+
"America/Cuiaba",
|
|
100
|
+
"America/Curacao",
|
|
101
|
+
"America/Danmarkshavn",
|
|
102
|
+
"America/Dawson",
|
|
103
|
+
"America/Dawson_Creek",
|
|
104
|
+
"America/Denver",
|
|
105
|
+
"America/Detroit",
|
|
106
|
+
"America/Dominica",
|
|
107
|
+
"America/Edmonton",
|
|
108
|
+
"America/Eirunepe",
|
|
109
|
+
"America/El_Salvador",
|
|
110
|
+
"America/Fort_Nelson",
|
|
111
|
+
"America/Fortaleza",
|
|
112
|
+
"America/Glace_Bay",
|
|
113
|
+
"America/Godthab",
|
|
114
|
+
"America/Goose_Bay",
|
|
115
|
+
"America/Grand_Turk",
|
|
116
|
+
"America/Grenada",
|
|
117
|
+
"America/Guadeloupe",
|
|
118
|
+
"America/Guatemala",
|
|
119
|
+
"America/Guayaquil",
|
|
120
|
+
"America/Guyana",
|
|
121
|
+
"America/Halifax",
|
|
122
|
+
"America/Havana",
|
|
123
|
+
"America/Hermosillo",
|
|
124
|
+
"America/Indiana/Knox",
|
|
125
|
+
"America/Indiana/Marengo",
|
|
126
|
+
"America/Indiana/Petersburg",
|
|
127
|
+
"America/Indiana/Tell_City",
|
|
128
|
+
"America/Indiana/Vevay",
|
|
129
|
+
"America/Indiana/Vincennes",
|
|
130
|
+
"America/Indiana/Winamac",
|
|
131
|
+
"America/Indianapolis",
|
|
132
|
+
"America/Inuvik",
|
|
133
|
+
"America/Iqaluit",
|
|
134
|
+
"America/Jamaica",
|
|
135
|
+
"America/Jujuy",
|
|
136
|
+
"America/Juneau",
|
|
137
|
+
"America/Kentucky/Monticello",
|
|
138
|
+
"America/Kralendijk",
|
|
139
|
+
"America/La_Paz",
|
|
140
|
+
"America/Lima",
|
|
141
|
+
"America/Los_Angeles",
|
|
142
|
+
"America/Louisville",
|
|
143
|
+
"America/Lower_Princes",
|
|
144
|
+
"America/Maceio",
|
|
145
|
+
"America/Managua",
|
|
146
|
+
"America/Manaus",
|
|
147
|
+
"America/Marigot",
|
|
148
|
+
"America/Martinique",
|
|
149
|
+
"America/Matamoros",
|
|
150
|
+
"America/Mazatlan",
|
|
151
|
+
"America/Mendoza",
|
|
152
|
+
"America/Menominee",
|
|
153
|
+
"America/Merida",
|
|
154
|
+
"America/Metlakatla",
|
|
155
|
+
"America/Mexico_City",
|
|
156
|
+
"America/Miquelon",
|
|
157
|
+
"America/Moncton",
|
|
158
|
+
"America/Monterrey",
|
|
159
|
+
"America/Montevideo",
|
|
160
|
+
"America/Montserrat",
|
|
161
|
+
"America/Nassau",
|
|
162
|
+
"America/New_York",
|
|
163
|
+
"America/Nome",
|
|
164
|
+
"America/Noronha",
|
|
165
|
+
"America/North_Dakota/Beulah",
|
|
166
|
+
"America/North_Dakota/Center",
|
|
167
|
+
"America/North_Dakota/New_Salem",
|
|
168
|
+
"America/Ojinaga",
|
|
169
|
+
"America/Panama",
|
|
170
|
+
"America/Paramaribo",
|
|
171
|
+
"America/Phoenix",
|
|
172
|
+
"America/Port-au-Prince",
|
|
173
|
+
"America/Port_of_Spain",
|
|
174
|
+
"America/Porto_Velho",
|
|
175
|
+
"America/Puerto_Rico",
|
|
176
|
+
"America/Punta_Arenas",
|
|
177
|
+
"America/Rankin_Inlet",
|
|
178
|
+
"America/Recife",
|
|
179
|
+
"America/Regina",
|
|
180
|
+
"America/Resolute",
|
|
181
|
+
"America/Rio_Branco",
|
|
182
|
+
"America/Santarem",
|
|
183
|
+
"America/Santiago",
|
|
184
|
+
"America/Santo_Domingo",
|
|
185
|
+
"America/Sao_Paulo",
|
|
186
|
+
"America/Scoresbysund",
|
|
187
|
+
"America/Sitka",
|
|
188
|
+
"America/St_Barthelemy",
|
|
189
|
+
"America/St_Johns",
|
|
190
|
+
"America/St_Kitts",
|
|
191
|
+
"America/St_Lucia",
|
|
192
|
+
"America/St_Thomas",
|
|
193
|
+
"America/St_Vincent",
|
|
194
|
+
"America/Swift_Current",
|
|
195
|
+
"America/Tegucigalpa",
|
|
196
|
+
"America/Thule",
|
|
197
|
+
"America/Tijuana",
|
|
198
|
+
"America/Toronto",
|
|
199
|
+
"America/Tortola",
|
|
200
|
+
"America/Vancouver",
|
|
201
|
+
"America/Whitehorse",
|
|
202
|
+
"America/Winnipeg",
|
|
203
|
+
"America/Yakutat",
|
|
204
|
+
"Antarctica/Casey",
|
|
205
|
+
"Antarctica/Davis",
|
|
206
|
+
"Antarctica/DumontDUrville",
|
|
207
|
+
"Antarctica/Macquarie",
|
|
208
|
+
"Antarctica/Mawson",
|
|
209
|
+
"Antarctica/McMurdo",
|
|
210
|
+
"Antarctica/Palmer",
|
|
211
|
+
"Antarctica/Rothera",
|
|
212
|
+
"Antarctica/Syowa",
|
|
213
|
+
"Antarctica/Troll",
|
|
214
|
+
"Antarctica/Vostok",
|
|
215
|
+
"Arctic/Longyearbyen",
|
|
216
|
+
"Asia/Aden",
|
|
217
|
+
"Asia/Almaty",
|
|
218
|
+
"Asia/Amman",
|
|
219
|
+
"Asia/Anadyr",
|
|
220
|
+
"Asia/Aqtau",
|
|
221
|
+
"Asia/Aqtobe",
|
|
222
|
+
"Asia/Ashgabat",
|
|
223
|
+
"Asia/Atyrau",
|
|
224
|
+
"Asia/Baghdad",
|
|
225
|
+
"Asia/Bahrain",
|
|
226
|
+
"Asia/Baku",
|
|
227
|
+
"Asia/Bangkok",
|
|
228
|
+
"Asia/Barnaul",
|
|
229
|
+
"Asia/Beirut",
|
|
230
|
+
"Asia/Bishkek",
|
|
231
|
+
"Asia/Brunei",
|
|
232
|
+
"Asia/Calcutta",
|
|
233
|
+
"Asia/Chita",
|
|
234
|
+
"Asia/Colombo",
|
|
235
|
+
"Asia/Damascus",
|
|
236
|
+
"Asia/Dhaka",
|
|
237
|
+
"Asia/Dili",
|
|
238
|
+
"Asia/Dubai",
|
|
239
|
+
"Asia/Dushanbe",
|
|
240
|
+
"Asia/Famagusta",
|
|
241
|
+
"Asia/Gaza",
|
|
242
|
+
"Asia/Hebron",
|
|
243
|
+
"Asia/Hong_Kong",
|
|
244
|
+
"Asia/Hovd",
|
|
245
|
+
"Asia/Irkutsk",
|
|
246
|
+
"Asia/Jakarta",
|
|
247
|
+
"Asia/Jayapura",
|
|
248
|
+
"Asia/Jerusalem",
|
|
249
|
+
"Asia/Kabul",
|
|
250
|
+
"Asia/Kamchatka",
|
|
251
|
+
"Asia/Karachi",
|
|
252
|
+
"Asia/Katmandu",
|
|
253
|
+
"Asia/Khandyga",
|
|
254
|
+
"Asia/Krasnoyarsk",
|
|
255
|
+
"Asia/Kuala_Lumpur",
|
|
256
|
+
"Asia/Kuching",
|
|
257
|
+
"Asia/Kuwait",
|
|
258
|
+
"Asia/Macau",
|
|
259
|
+
"Asia/Magadan",
|
|
260
|
+
"Asia/Makassar",
|
|
261
|
+
"Asia/Manila",
|
|
262
|
+
"Asia/Muscat",
|
|
263
|
+
"Asia/Nicosia",
|
|
264
|
+
"Asia/Novokuznetsk",
|
|
265
|
+
"Asia/Novosibirsk",
|
|
266
|
+
"Asia/Omsk",
|
|
267
|
+
"Asia/Oral",
|
|
268
|
+
"Asia/Phnom_Penh",
|
|
269
|
+
"Asia/Pontianak",
|
|
270
|
+
"Asia/Pyongyang",
|
|
271
|
+
"Asia/Qatar",
|
|
272
|
+
"Asia/Qostanay",
|
|
273
|
+
"Asia/Qyzylorda",
|
|
274
|
+
"Asia/Rangoon",
|
|
275
|
+
"Asia/Riyadh",
|
|
276
|
+
"Asia/Saigon",
|
|
277
|
+
"Asia/Sakhalin",
|
|
278
|
+
"Asia/Samarkand",
|
|
279
|
+
"Asia/Seoul",
|
|
280
|
+
"Asia/Shanghai",
|
|
281
|
+
"Asia/Singapore",
|
|
282
|
+
"Asia/Srednekolymsk",
|
|
283
|
+
"Asia/Taipei",
|
|
284
|
+
"Asia/Tashkent",
|
|
285
|
+
"Asia/Tbilisi",
|
|
286
|
+
"Asia/Tehran",
|
|
287
|
+
"Asia/Thimphu",
|
|
288
|
+
"Asia/Tokyo",
|
|
289
|
+
"Asia/Tomsk",
|
|
290
|
+
"Asia/Ulaanbaatar",
|
|
291
|
+
"Asia/Urumqi",
|
|
292
|
+
"Asia/Ust-Nera",
|
|
293
|
+
"Asia/Vientiane",
|
|
294
|
+
"Asia/Vladivostok",
|
|
295
|
+
"Asia/Yakutsk",
|
|
296
|
+
"Asia/Yekaterinburg",
|
|
297
|
+
"Asia/Yerevan",
|
|
298
|
+
"Atlantic/Azores",
|
|
299
|
+
"Atlantic/Bermuda",
|
|
300
|
+
"Atlantic/Canary",
|
|
301
|
+
"Atlantic/Cape_Verde",
|
|
302
|
+
"Atlantic/Faeroe",
|
|
303
|
+
"Atlantic/Madeira",
|
|
304
|
+
"Atlantic/Reykjavik",
|
|
305
|
+
"Atlantic/South_Georgia",
|
|
306
|
+
"Atlantic/St_Helena",
|
|
307
|
+
"Atlantic/Stanley",
|
|
308
|
+
"Australia/Adelaide",
|
|
309
|
+
"Australia/Brisbane",
|
|
310
|
+
"Australia/Broken_Hill",
|
|
311
|
+
"Australia/Darwin",
|
|
312
|
+
"Australia/Eucla",
|
|
313
|
+
"Australia/Hobart",
|
|
314
|
+
"Australia/Lindeman",
|
|
315
|
+
"Australia/Lord_Howe",
|
|
316
|
+
"Australia/Melbourne",
|
|
317
|
+
"Australia/Perth",
|
|
318
|
+
"Australia/Sydney",
|
|
319
|
+
"Europe/Amsterdam",
|
|
320
|
+
"Europe/Andorra",
|
|
321
|
+
"Europe/Astrakhan",
|
|
322
|
+
"Europe/Athens",
|
|
323
|
+
"Europe/Belgrade",
|
|
324
|
+
"Europe/Berlin",
|
|
325
|
+
"Europe/Bratislava",
|
|
326
|
+
"Europe/Brussels",
|
|
327
|
+
"Europe/Bucharest",
|
|
328
|
+
"Europe/Budapest",
|
|
329
|
+
"Europe/Busingen",
|
|
330
|
+
"Europe/Chisinau",
|
|
331
|
+
"Europe/Copenhagen",
|
|
332
|
+
"Europe/Dublin",
|
|
333
|
+
"Europe/Gibraltar",
|
|
334
|
+
"Europe/Guernsey",
|
|
335
|
+
"Europe/Helsinki",
|
|
336
|
+
"Europe/Isle_of_Man",
|
|
337
|
+
"Europe/Istanbul",
|
|
338
|
+
"Europe/Jersey",
|
|
339
|
+
"Europe/Kaliningrad",
|
|
340
|
+
"Europe/Kiev",
|
|
341
|
+
"Europe/Kirov",
|
|
342
|
+
"Europe/Lisbon",
|
|
343
|
+
"Europe/Ljubljana",
|
|
344
|
+
"Europe/London",
|
|
345
|
+
"Europe/Luxembourg",
|
|
346
|
+
"Europe/Madrid",
|
|
347
|
+
"Europe/Malta",
|
|
348
|
+
"Europe/Mariehamn",
|
|
349
|
+
"Europe/Minsk",
|
|
350
|
+
"Europe/Monaco",
|
|
351
|
+
"Europe/Moscow",
|
|
352
|
+
"Europe/Oslo",
|
|
353
|
+
"Europe/Paris",
|
|
354
|
+
"Europe/Podgorica",
|
|
355
|
+
"Europe/Prague",
|
|
356
|
+
"Europe/Riga",
|
|
357
|
+
"Europe/Rome",
|
|
358
|
+
"Europe/Samara",
|
|
359
|
+
"Europe/San_Marino",
|
|
360
|
+
"Europe/Sarajevo",
|
|
361
|
+
"Europe/Saratov",
|
|
362
|
+
"Europe/Simferopol",
|
|
363
|
+
"Europe/Skopje",
|
|
364
|
+
"Europe/Sofia",
|
|
365
|
+
"Europe/Stockholm",
|
|
366
|
+
"Europe/Tallinn",
|
|
367
|
+
"Europe/Tirane",
|
|
368
|
+
"Europe/Ulyanovsk",
|
|
369
|
+
"Europe/Vaduz",
|
|
370
|
+
"Europe/Vatican",
|
|
371
|
+
"Europe/Vienna",
|
|
372
|
+
"Europe/Vilnius",
|
|
373
|
+
"Europe/Volgograd",
|
|
374
|
+
"Europe/Warsaw",
|
|
375
|
+
"Europe/Zagreb",
|
|
376
|
+
"Europe/Zurich",
|
|
377
|
+
"Indian/Antananarivo",
|
|
378
|
+
"Indian/Chagos",
|
|
379
|
+
"Indian/Christmas",
|
|
380
|
+
"Indian/Cocos",
|
|
381
|
+
"Indian/Comoro",
|
|
382
|
+
"Indian/Kerguelen",
|
|
383
|
+
"Indian/Mahe",
|
|
384
|
+
"Indian/Maldives",
|
|
385
|
+
"Indian/Mauritius",
|
|
386
|
+
"Indian/Mayotte",
|
|
387
|
+
"Indian/Reunion",
|
|
388
|
+
"Pacific/Apia",
|
|
389
|
+
"Pacific/Auckland",
|
|
390
|
+
"Pacific/Bougainville",
|
|
391
|
+
"Pacific/Chatham",
|
|
392
|
+
"Pacific/Easter",
|
|
393
|
+
"Pacific/Efate",
|
|
394
|
+
"Pacific/Enderbury",
|
|
395
|
+
"Pacific/Fakaofo",
|
|
396
|
+
"Pacific/Fiji",
|
|
397
|
+
"Pacific/Funafuti",
|
|
398
|
+
"Pacific/Galapagos",
|
|
399
|
+
"Pacific/Gambier",
|
|
400
|
+
"Pacific/Guadalcanal",
|
|
401
|
+
"Pacific/Guam",
|
|
402
|
+
"Pacific/Honolulu",
|
|
403
|
+
"Pacific/Kiritimati",
|
|
404
|
+
"Pacific/Kosrae",
|
|
405
|
+
"Pacific/Kwajalein",
|
|
406
|
+
"Pacific/Majuro",
|
|
407
|
+
"Pacific/Marquesas",
|
|
408
|
+
"Pacific/Midway",
|
|
409
|
+
"Pacific/Nauru",
|
|
410
|
+
"Pacific/Niue",
|
|
411
|
+
"Pacific/Norfolk",
|
|
412
|
+
"Pacific/Noumea",
|
|
413
|
+
"Pacific/Pago_Pago",
|
|
414
|
+
"Pacific/Palau",
|
|
415
|
+
"Pacific/Pitcairn",
|
|
416
|
+
"Pacific/Ponape",
|
|
417
|
+
"Pacific/Port_Moresby",
|
|
418
|
+
"Pacific/Rarotonga",
|
|
419
|
+
"Pacific/Saipan",
|
|
420
|
+
"Pacific/Tahiti",
|
|
421
|
+
"Pacific/Tarawa",
|
|
422
|
+
"Pacific/Tongatapu",
|
|
423
|
+
"Pacific/Truk",
|
|
424
|
+
"Pacific/Wake",
|
|
425
|
+
"Pacific/Wallis",
|
|
426
|
+
];
|
package/dist/index.d.ts
CHANGED
|
@@ -61,11 +61,12 @@ export { ROUTES, ROUTE_SECTIONS, IN_HANDLER_ROUTES, developerSignInRoutes } from
|
|
|
61
61
|
export type { RouteEntry, RouteParam, RouteAudience, RouteAuth, RouteSection, RouteMethod, RouteTransport, } from './routes.js';
|
|
62
62
|
export { planId, PLAN_ORDER, planLimitKey, planLimits, planFeature, planFeatures, planPrices, planSupport, planCatalogueEntry, addonKey, addonCatalogueEntry, usdCentsFromEurCents, yearlyEurCents, pricesFromEurMonth, PLANS, ADDONS, requiredPlanFor, nextPlanRaising, } from './plans.js';
|
|
63
63
|
export type { PlanId, PlanLimitKey, PlanLimits, PlanFeature, PlanFeatures, PlanPrices, PlanSupport, PlanCatalogueEntry, AddonKey, AddonCatalogueEntry, } from './plans.js';
|
|
64
|
-
export { planCurrency, orgAddons, orgPlanUsage, planChangeKeep, planChangeReason, pendingPlanChange, orgLock, orgPlan, planChangeRequest, planOverrides, adminPlanChangeRequest, } from './plans.js';
|
|
65
|
-
export type { PlanCurrency, OrgAddons, OrgPlanUsage, PlanChangeKeep, PlanChangeReason, PendingPlanChange, OrgLock, OrgPlan, PlanChangeRequest, PlanOverrides, AdminPlanChangeRequest, } from './plans.js';
|
|
64
|
+
export { planCurrency, orgAddons, orgPlanUsage, planChangeKeep, planChangeReason, pendingPlanChange, orgLock, orgPlan, planChangeRequest, planChangePrepareRequest, planChangeDecisionLookupQuery, planChangeDecisionStatusResponse, planOverrides, adminPlanChangeRequest, } from './plans.js';
|
|
65
|
+
export type { PlanCurrency, OrgAddons, OrgPlanUsage, PlanChangeKeep, PlanChangeReason, PendingPlanChange, OrgLock, OrgPlan, PlanChangeRequest, PlanChangePrepareRequest, PlanChangeDecisionLookupQuery, PlanChangeDecisionStatusResponse, PlanOverrides, AdminPlanChangeRequest, } from './plans.js';
|
|
66
|
+
export { ianaTimeZones } from './iana-time-zones.js';
|
|
66
67
|
export { countryCode, EU_COUNTRIES, SELLER_COUNTRY, DE_VAT_RATE_PERCENT, isEuCountry, currencyForCountry, payerKind, billingCycle, vatTreatment, payerRefusalRule, vatFor, viesCountry, normalizeVatId, periodNetCents, prorateCents, vatCents, chargeAmounts, DAY_MS, periodDays, remainingDays, changeNetCents, checkoutQuote, BILLING_RETRY_DAYS, BILLING_LOCK_DAY, billingAddress, billingDetails, checkoutRequest, checkoutResponse, checkoutStatus, vatIdStatus, vatIdCheckRequest, vatIdCheckResponse, billingChangeRequest, billingCancelRequest, billingDetailsUpdate, paymentMethodKind, paymentMethodChangeRequest, billingAccountStatus, paymentMethod, invoiceStatus, billingInvoice, billingAccount, billingView, billingChangeResponse, billingDocumentKind, billingDocumentStatus, billingDocumentProfile, billingDocumentFormat, billingDocument, billingDocumentList, billingDocumentFileRole, billingDocumentDetail, billingDocumentFileQuery, billingIssuer, billingChargeInvoice, billingCharge, chargePayRequest, } from './billing.js';
|
|
67
68
|
export type { PayerKind, BillingCycle, VatTreatment, PayerRefusalRule, VatDecision, ChargeAmounts, BillingState, QuoteLine, CheckoutQuote, BillingAddress, BillingDetails, CheckoutRequest, CheckoutResponse, CheckoutStatus, VatIdStatus, VatIdCheckRequest, VatIdCheckResponse, BillingChangeRequest, BillingCancelRequest, BillingDetailsUpdate, PaymentMethodKind, PaymentMethodChangeRequest, BillingAccountStatus, PaymentMethod, InvoiceStatus, BillingInvoice, BillingAccount, BillingView, BillingChangeResponse, BillingDocumentKind, BillingDocumentStatus, BillingDocumentProfile, BillingDocumentFormat, BillingDocument, BillingDocumentList, BillingDocumentFileRole, BillingDocumentDetail, BillingDocumentFileQuery, BillingIssuer, BillingChargeInvoice, BillingCharge, ChargePayRequest, } from './billing.js';
|
|
68
69
|
export { controllerRegisterAddress, controllerRegisterPrivacyContact, controllerRegisterRepresentative, controllerRegisterWrite, controllerRegisterOrgRecord, controllerRegisterOrgResponse } from './controller-register.js';
|
|
69
70
|
export type { ControllerRegisterWrite, ControllerRegisterOrgResponse } from './controller-register.js';
|
|
70
|
-
export { purchaseBillingDetails, purchaseOperationKey, purchaseOperation, purchaseQuote, purchaseHoldReason, purchaseRefusalRule, purchaseIntent, purchaseIntentLookupQuery, purchaseIntentConfirmRequest, purchaseConflictDetails, invoicePayRequest, purchaseIntentResponse, vatDecision, viesPendingReason, } from './billing.js';
|
|
71
|
-
export type { PurchaseBillingDetails, PurchaseOperation, PurchaseQuote, PurchaseIntent, PurchaseIntentLookupQuery, PurchaseIntentConfirmRequest, PurchaseConflictDetails, InvoicePayRequest, PurchaseIntentResponse, ViesVerdict, ViesPendingReason, } from './billing.js';
|
|
71
|
+
export { purchaseBillingDetails, purchaseOperationKey, purchaseOperation, purchaseQuote, billingDecisionDisplayRequest, confirmationProof, billingDecisionAmounts, billingDecisionPeriod, billingDecisionSnapshot, billingDecisionDisplayResponse, planChangePrepareResponse, purchaseHoldReason, purchaseRefusalRule, purchaseIntent, purchaseIntentLookupQuery, purchaseIntentDraft, purchaseIntentPaymentStarted, purchaseIntentAcceptedWithoutPayment, purchaseIntentConfirmRequest, purchaseConflictDetails, invoicePayRequest, purchaseIntentResponse, vatDecision, viesPendingReason, } from './billing.js';
|
|
72
|
+
export type { PurchaseBillingDetails, PurchaseOperation, PurchaseQuote, PurchaseIntent, PurchaseIntentDraft, PurchaseIntentPaymentStarted, PurchaseIntentAcceptedWithoutPayment, BillingDecisionDisplayRequest, ConfirmationProof, BillingDecisionAmounts, BillingDecisionPeriod, BillingDecisionSnapshot, BillingDecisionDisplayResponse, PlanChangePrepareResponse, PurchaseIntentLookupQuery, PurchaseIntentConfirmRequest, PurchaseConflictDetails, InvoicePayRequest, PurchaseIntentResponse, ViesVerdict, ViesPendingReason, } from './billing.js';
|
package/dist/index.js
CHANGED
|
@@ -74,7 +74,8 @@ export { ROUTES, ROUTE_SECTIONS, IN_HANDLER_ROUTES, developerSignInRoutes } from
|
|
|
74
74
|
export { planId, PLAN_ORDER, planLimitKey, planLimits, planFeature, planFeatures, planPrices, planSupport, planCatalogueEntry, addonKey, addonCatalogueEntry, usdCentsFromEurCents, yearlyEurCents, pricesFromEurMonth, PLANS, ADDONS, requiredPlanFor, nextPlanRaising, } from './plans.js';
|
|
75
75
|
// 2026-10-02 — plans (#103). The organization's plan, plan changes and the
|
|
76
76
|
// admin request (I-2).
|
|
77
|
-
export { planCurrency, orgAddons, orgPlanUsage, planChangeKeep, planChangeReason, pendingPlanChange, orgLock, orgPlan, planChangeRequest, planOverrides, adminPlanChangeRequest, } from './plans.js';
|
|
77
|
+
export { planCurrency, orgAddons, orgPlanUsage, planChangeKeep, planChangeReason, pendingPlanChange, orgLock, orgPlan, planChangeRequest, planChangePrepareRequest, planChangeDecisionLookupQuery, planChangeDecisionStatusResponse, planOverrides, adminPlanChangeRequest, } from './plans.js';
|
|
78
|
+
export { ianaTimeZones } from './iana-time-zones.js';
|
|
78
79
|
// 2026-10-04 — billing through Mollie (#104).
|
|
79
80
|
export { countryCode, EU_COUNTRIES, SELLER_COUNTRY, DE_VAT_RATE_PERCENT, isEuCountry, currencyForCountry, payerKind, billingCycle, vatTreatment, payerRefusalRule, vatFor, viesCountry, normalizeVatId, periodNetCents, prorateCents, vatCents, chargeAmounts, DAY_MS, periodDays, remainingDays, changeNetCents, checkoutQuote, BILLING_RETRY_DAYS, BILLING_LOCK_DAY, billingAddress, billingDetails, checkoutRequest, checkoutResponse, checkoutStatus, vatIdStatus, vatIdCheckRequest, vatIdCheckResponse, billingChangeRequest, billingCancelRequest, billingDetailsUpdate, paymentMethodKind, paymentMethodChangeRequest, billingAccountStatus, paymentMethod, invoiceStatus, billingInvoice, billingAccount, billingView, billingChangeResponse,
|
|
80
81
|
// 2026-10-19 — Lexware billing documents (fleetless/fleetless#544).
|
|
@@ -82,4 +83,4 @@ billingDocumentKind, billingDocumentStatus, billingDocumentProfile, billingDocum
|
|
|
82
83
|
// 2026-10-19 — the Lexware issuer cutover (fleetless/fleetless#327).
|
|
83
84
|
billingIssuer, billingChargeInvoice, billingCharge, chargePayRequest, } from './billing.js';
|
|
84
85
|
export { controllerRegisterAddress, controllerRegisterPrivacyContact, controllerRegisterRepresentative, controllerRegisterWrite, controllerRegisterOrgRecord, controllerRegisterOrgResponse } from './controller-register.js';
|
|
85
|
-
export { purchaseBillingDetails, purchaseOperationKey, purchaseOperation, purchaseQuote, purchaseHoldReason, purchaseRefusalRule, purchaseIntent, purchaseIntentLookupQuery, purchaseIntentConfirmRequest, purchaseConflictDetails, invoicePayRequest, purchaseIntentResponse, vatDecision, viesPendingReason, } from './billing.js';
|
|
86
|
+
export { purchaseBillingDetails, purchaseOperationKey, purchaseOperation, purchaseQuote, billingDecisionDisplayRequest, confirmationProof, billingDecisionAmounts, billingDecisionPeriod, billingDecisionSnapshot, billingDecisionDisplayResponse, planChangePrepareResponse, purchaseHoldReason, purchaseRefusalRule, purchaseIntent, purchaseIntentLookupQuery, purchaseIntentDraft, purchaseIntentPaymentStarted, purchaseIntentAcceptedWithoutPayment, purchaseIntentConfirmRequest, purchaseConflictDetails, invoicePayRequest, purchaseIntentResponse, vatDecision, viesPendingReason, } from './billing.js';
|
package/dist/plans.d.ts
CHANGED
|
@@ -425,7 +425,8 @@ export type OrgPlan = z.infer<typeof orgPlan>;
|
|
|
425
425
|
* name, `keep` included, and an owner cannot be smuggled into it through a
|
|
426
426
|
* typo that `.strict()` would otherwise swallow in silence.
|
|
427
427
|
*/
|
|
428
|
-
export declare const
|
|
428
|
+
export declare const planChangePrepareRequest: z.ZodObject<{
|
|
429
|
+
operation_key: z.ZodUUID;
|
|
429
430
|
target_plan: z.ZodEnum<{
|
|
430
431
|
basic: "basic";
|
|
431
432
|
plus: "plus";
|
|
@@ -439,7 +440,130 @@ export declare const planChangeRequest: z.ZodObject<{
|
|
|
439
440
|
developers: z.ZodArray<z.ZodUUID>;
|
|
440
441
|
}, z.core.$strict>>;
|
|
441
442
|
}, z.core.$strict>;
|
|
443
|
+
export type PlanChangePrepareRequest = z.infer<typeof planChangePrepareRequest>;
|
|
444
|
+
export declare const planChangeRequest: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
445
|
+
target_plan: z.ZodLiteral<"basic">;
|
|
446
|
+
cancellation_reason: z.ZodOptional<z.ZodString>;
|
|
447
|
+
change_id: z.ZodUUID;
|
|
448
|
+
operation_key: z.ZodUUID;
|
|
449
|
+
keep: z.ZodNullable<z.ZodObject<{
|
|
450
|
+
robots: z.ZodArray<z.ZodUUID>;
|
|
451
|
+
apps: z.ZodArray<z.ZodUUID>;
|
|
452
|
+
app_users: z.ZodArray<z.ZodUUID>;
|
|
453
|
+
developers: z.ZodArray<z.ZodUUID>;
|
|
454
|
+
}, z.core.$strict>>;
|
|
455
|
+
confirmation_proof: z.ZodString;
|
|
456
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
457
|
+
target_plan: z.ZodEnum<{
|
|
458
|
+
plus: "plus";
|
|
459
|
+
pro: "pro";
|
|
460
|
+
enterprise: "enterprise";
|
|
461
|
+
}>;
|
|
462
|
+
change_id: z.ZodUUID;
|
|
463
|
+
operation_key: z.ZodUUID;
|
|
464
|
+
keep: z.ZodNullable<z.ZodObject<{
|
|
465
|
+
robots: z.ZodArray<z.ZodUUID>;
|
|
466
|
+
apps: z.ZodArray<z.ZodUUID>;
|
|
467
|
+
app_users: z.ZodArray<z.ZodUUID>;
|
|
468
|
+
developers: z.ZodArray<z.ZodUUID>;
|
|
469
|
+
}, z.core.$strict>>;
|
|
470
|
+
confirmation_proof: z.ZodString;
|
|
471
|
+
}, z.core.$strict>], "target_plan">;
|
|
442
472
|
export type PlanChangeRequest = z.infer<typeof planChangeRequest>;
|
|
473
|
+
export declare const planChangeDecisionLookupQuery: z.ZodObject<{
|
|
474
|
+
operation_key: z.ZodUUID;
|
|
475
|
+
}, z.core.$strict>;
|
|
476
|
+
export type PlanChangeDecisionLookupQuery = z.infer<typeof planChangeDecisionLookupQuery>;
|
|
477
|
+
export declare const planChangeDecisionStatusResponse: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
478
|
+
state: z.ZodLiteral<"prepared">;
|
|
479
|
+
change_id: z.ZodUUID;
|
|
480
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
481
|
+
state: z.ZodLiteral<"accepted">;
|
|
482
|
+
change_id: z.ZodUUID;
|
|
483
|
+
result: z.ZodObject<{
|
|
484
|
+
plan: z.ZodEnum<{
|
|
485
|
+
basic: "basic";
|
|
486
|
+
plus: "plus";
|
|
487
|
+
pro: "pro";
|
|
488
|
+
enterprise: "enterprise";
|
|
489
|
+
}>;
|
|
490
|
+
currency: z.ZodEnum<{
|
|
491
|
+
eur: "eur";
|
|
492
|
+
usd: "usd";
|
|
493
|
+
}>;
|
|
494
|
+
period_ends_at: z.ZodISODateTime;
|
|
495
|
+
addons: z.ZodObject<{
|
|
496
|
+
seats: z.ZodNumber;
|
|
497
|
+
robots: z.ZodNumber;
|
|
498
|
+
apps: z.ZodNumber;
|
|
499
|
+
app_user_packs: z.ZodNumber;
|
|
500
|
+
live_video_packs: z.ZodNumber;
|
|
501
|
+
}, z.core.$strip>;
|
|
502
|
+
limits: z.ZodObject<{
|
|
503
|
+
seats: z.ZodNullable<z.ZodNumber>;
|
|
504
|
+
robots: z.ZodNullable<z.ZodNumber>;
|
|
505
|
+
apps: z.ZodNullable<z.ZodNumber>;
|
|
506
|
+
app_users: z.ZodNullable<z.ZodNumber>;
|
|
507
|
+
live_video_ms_per_month: z.ZodNullable<z.ZodNumber>;
|
|
508
|
+
asset_bytes_per_robot: z.ZodNullable<z.ZodNumber>;
|
|
509
|
+
history_days: z.ZodNullable<z.ZodNumber>;
|
|
510
|
+
audit_days: z.ZodNullable<z.ZodNumber>;
|
|
511
|
+
}, z.core.$strip>;
|
|
512
|
+
features: z.ZodObject<{
|
|
513
|
+
require_two_factor: z.ZodBoolean;
|
|
514
|
+
two_factor: z.ZodBoolean;
|
|
515
|
+
app_mcp: z.ZodBoolean;
|
|
516
|
+
app_oidc: z.ZodBoolean;
|
|
517
|
+
hosted_logo: z.ZodBoolean;
|
|
518
|
+
audit_export: z.ZodBoolean;
|
|
519
|
+
addons: z.ZodBoolean;
|
|
520
|
+
}, z.core.$strip>;
|
|
521
|
+
usage: z.ZodObject<{
|
|
522
|
+
seats: z.ZodNumber;
|
|
523
|
+
robots: z.ZodNumber;
|
|
524
|
+
apps: z.ZodNumber;
|
|
525
|
+
app_users: z.ZodNumber;
|
|
526
|
+
live_video_ms_this_month: z.ZodNumber;
|
|
527
|
+
asset_bytes: z.ZodNumber;
|
|
528
|
+
}, z.core.$strip>;
|
|
529
|
+
pending_change: z.ZodNullable<z.ZodObject<{
|
|
530
|
+
target_plan: z.ZodEnum<{
|
|
531
|
+
basic: "basic";
|
|
532
|
+
plus: "plus";
|
|
533
|
+
pro: "pro";
|
|
534
|
+
enterprise: "enterprise";
|
|
535
|
+
}>;
|
|
536
|
+
reason: z.ZodEnum<{
|
|
537
|
+
downgrade: "downgrade";
|
|
538
|
+
cancel: "cancel";
|
|
539
|
+
migration: "migration";
|
|
540
|
+
lock: "lock";
|
|
541
|
+
}>;
|
|
542
|
+
effective_at: z.ZodNullable<z.ZodISODateTime>;
|
|
543
|
+
keep: z.ZodNullable<z.ZodObject<{
|
|
544
|
+
robots: z.ZodArray<z.ZodUUID>;
|
|
545
|
+
apps: z.ZodArray<z.ZodUUID>;
|
|
546
|
+
app_users: z.ZodArray<z.ZodUUID>;
|
|
547
|
+
developers: z.ZodArray<z.ZodUUID>;
|
|
548
|
+
}, z.core.$strict>>;
|
|
549
|
+
history_days_after: z.ZodNumber;
|
|
550
|
+
chosen_by: z.ZodUUID;
|
|
551
|
+
chosen_at: z.ZodISODateTime;
|
|
552
|
+
}, z.core.$strip>>;
|
|
553
|
+
lock: z.ZodNullable<z.ZodObject<{
|
|
554
|
+
reason: z.ZodEnum<{
|
|
555
|
+
migration: "migration";
|
|
556
|
+
payment: "payment";
|
|
557
|
+
}>;
|
|
558
|
+
since: z.ZodISODateTime;
|
|
559
|
+
}, z.core.$strip>>;
|
|
560
|
+
switch: z.ZodNullable<z.ZodObject<{
|
|
561
|
+
at: z.ZodNullable<z.ZodISODateTime>;
|
|
562
|
+
needs_choice: z.ZodBoolean;
|
|
563
|
+
}, z.core.$strip>>;
|
|
564
|
+
}, z.core.$strip>;
|
|
565
|
+
}, z.core.$strict>], "state">;
|
|
566
|
+
export type PlanChangeDecisionStatusResponse = z.infer<typeof planChangeDecisionStatusResponse>;
|
|
443
567
|
/**
|
|
444
568
|
* An operator's per-org replacement for one or more catalogue limits —
|
|
445
569
|
* Enterprise's contracted numbers, most of all, which exist nowhere else.
|
package/dist/plans.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
// SPDX-License-Identifier: Apache-2.0
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
+
import { purchaseOperationKey } from './purchase-operation-key.js';
|
|
4
|
+
import { confirmationProof } from './confirmation-proof.js';
|
|
3
5
|
/**
|
|
4
6
|
* The plan catalogue.
|
|
5
7
|
*
|
|
@@ -445,12 +447,28 @@ export const orgPlan = z.object({
|
|
|
445
447
|
* name, `keep` included, and an owner cannot be smuggled into it through a
|
|
446
448
|
* typo that `.strict()` would otherwise swallow in silence.
|
|
447
449
|
*/
|
|
448
|
-
export const
|
|
450
|
+
export const planChangePrepareRequest = z.object({
|
|
451
|
+
operation_key: purchaseOperationKey,
|
|
449
452
|
target_plan: planId.meta({ description: 'The lower plan to move to; `basic` cancels.' }),
|
|
450
453
|
keep: planChangeKeep.nullable().meta({
|
|
451
454
|
description: 'What stays. `null` when the org already fits the target plan, so nothing is deleted.',
|
|
452
455
|
}),
|
|
453
456
|
}).strict();
|
|
457
|
+
const finalPlanChangeFields = {
|
|
458
|
+
change_id: z.uuid(),
|
|
459
|
+
operation_key: purchaseOperationKey,
|
|
460
|
+
keep: planChangeKeep.nullable(),
|
|
461
|
+
confirmation_proof: confirmationProof,
|
|
462
|
+
};
|
|
463
|
+
export const planChangeRequest = z.discriminatedUnion('target_plan', [
|
|
464
|
+
z.object({ ...finalPlanChangeFields, target_plan: z.literal('basic'), cancellation_reason: z.string().max(500).trim().optional() }).strict(),
|
|
465
|
+
z.object({ ...finalPlanChangeFields, target_plan: planId.exclude(['basic']) }).strict(),
|
|
466
|
+
]);
|
|
467
|
+
export const planChangeDecisionLookupQuery = z.object({ operation_key: purchaseOperationKey }).strict();
|
|
468
|
+
export const planChangeDecisionStatusResponse = z.discriminatedUnion('state', [
|
|
469
|
+
z.object({ state: z.literal('prepared'), change_id: z.uuid() }).strict(),
|
|
470
|
+
z.object({ state: z.literal('accepted'), change_id: z.uuid(), result: orgPlan }).strict(),
|
|
471
|
+
]);
|
|
454
472
|
/**
|
|
455
473
|
* An operator's per-org replacement for one or more catalogue limits —
|
|
456
474
|
* Enterprise's contracted numbers, most of all, which exist nowhere else.
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
/** Persist before the start request; reuse only for identical input within one org. */
|
|
4
|
+
export const purchaseOperationKey = z.uuid().meta({ description: 'Client-generated UUID persisted before the start request. Unique per org and reused only for identical input.' });
|