@netwo/saas-sdk-v1 0.0.0-stage → 1.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.
- package/LICENSE +21 -0
- package/README.md +118 -2
- package/fesm2022/netwo-saas-sdk-v1-openapi.zod-C8EyoRPK.mjs +3806 -0
- package/fesm2022/netwo-saas-sdk-v1-openapi.zod-C8EyoRPK.mjs.map +1 -0
- package/fesm2022/netwo-saas-sdk-v1.mjs +43 -0
- package/fesm2022/netwo-saas-sdk-v1.mjs.map +1 -0
- package/package.json +36 -3
- package/types/netwo-saas-sdk-v1.d.ts +15955 -0
|
@@ -0,0 +1,3806 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
const AcquisitionTypeHttp = z.enum(['sold', 'rented']);
|
|
5
|
+
const ActorIdentifierResponse = z.looseObject({
|
|
6
|
+
id: z.string(),
|
|
7
|
+
slug: z.string(),
|
|
8
|
+
name: z.string(),
|
|
9
|
+
});
|
|
10
|
+
const ActorSignerHttp = z.looseObject({
|
|
11
|
+
first_name: z.string(),
|
|
12
|
+
last_name: z.string(),
|
|
13
|
+
job_title: z.string(),
|
|
14
|
+
email: z.string(),
|
|
15
|
+
phone: z.string(),
|
|
16
|
+
});
|
|
17
|
+
/** Add an extension to allow more data consumption.
|
|
18
|
+
* Volume is in bytes */
|
|
19
|
+
const AddExtensionPayloadHttp = z.looseObject({
|
|
20
|
+
volume: z.number(),
|
|
21
|
+
});
|
|
22
|
+
const Address = z.looseObject({
|
|
23
|
+
id: z.string().nullable().optional(),
|
|
24
|
+
country: z.string(),
|
|
25
|
+
postal_code: z.string().nullable().optional(),
|
|
26
|
+
city: z.string(),
|
|
27
|
+
locality: z.string().nullable().optional(),
|
|
28
|
+
street: z.string().nullable().optional(),
|
|
29
|
+
rivoli_code: z.string().nullable().optional(),
|
|
30
|
+
street_number: z.string().nullable().optional(),
|
|
31
|
+
insee_municipality_code: z.string(),
|
|
32
|
+
});
|
|
33
|
+
/** GPS coordinates */
|
|
34
|
+
const Coordinates = z.looseObject({
|
|
35
|
+
latitude: z.string(),
|
|
36
|
+
longitude: z.string(),
|
|
37
|
+
});
|
|
38
|
+
const PhoneNumberStatus = z.union([
|
|
39
|
+
z.looseObject({
|
|
40
|
+
phone_number_status: z.literal('active'),
|
|
41
|
+
phone_number: z.string(),
|
|
42
|
+
}),
|
|
43
|
+
z.looseObject({
|
|
44
|
+
phone_number_status: z.literal('inactive'),
|
|
45
|
+
phone_number: z.string(),
|
|
46
|
+
}),
|
|
47
|
+
]);
|
|
48
|
+
const SubAddressDetails = z.looseObject({
|
|
49
|
+
owner: z.string().nullable().optional(),
|
|
50
|
+
building: z.string().nullable().optional(),
|
|
51
|
+
door: z.string().nullable().optional(),
|
|
52
|
+
stair: z.string().nullable().optional(),
|
|
53
|
+
floor: z.string().nullable().optional(),
|
|
54
|
+
residence: z.string().nullable().optional(),
|
|
55
|
+
imb_ref: z.string().nullable().optional(),
|
|
56
|
+
});
|
|
57
|
+
const AddressDetails = z.looseObject({
|
|
58
|
+
country: z.string(),
|
|
59
|
+
coordinates: Coordinates,
|
|
60
|
+
original_coordinates: z.union([Coordinates, z.null()]).optional(),
|
|
61
|
+
phone_number: z.union([PhoneNumberStatus, z.null()]).optional(),
|
|
62
|
+
address: Address,
|
|
63
|
+
details: SubAddressDetails,
|
|
64
|
+
});
|
|
65
|
+
const AddressHttp = z.looseObject({
|
|
66
|
+
street_number: z.string().nullable().optional(),
|
|
67
|
+
street: z.string().nullable().optional(),
|
|
68
|
+
address: z.string().nullable().optional(),
|
|
69
|
+
zip_code: z.string().nullable().optional(),
|
|
70
|
+
city: z.string(),
|
|
71
|
+
country: z.string().nullable().optional(),
|
|
72
|
+
locality: z.string().nullable().optional(),
|
|
73
|
+
owner: z.string().nullable().optional(),
|
|
74
|
+
building: z.string().nullable().optional(),
|
|
75
|
+
floor: z.string().nullable().optional(),
|
|
76
|
+
door: z.string().nullable().optional(),
|
|
77
|
+
stair: z.string().nullable().optional(),
|
|
78
|
+
residence: z.string().nullable().optional(),
|
|
79
|
+
insee_code: z.string().nullable().optional(),
|
|
80
|
+
rivoli_code: z.string().nullable().optional(),
|
|
81
|
+
addition_to_address: z.string().nullable().optional(),
|
|
82
|
+
});
|
|
83
|
+
const AddressQueryApi = z.looseObject({
|
|
84
|
+
address: z.string(),
|
|
85
|
+
});
|
|
86
|
+
const AddressWithSignature = z.looseObject({
|
|
87
|
+
value: AddressDetails,
|
|
88
|
+
signature: z.string(),
|
|
89
|
+
});
|
|
90
|
+
const AllocatedArcepSliceResponse = z.looseObject({
|
|
91
|
+
prefix: z.string(),
|
|
92
|
+
});
|
|
93
|
+
const ApiStateMachineEvent = z.looseObject({
|
|
94
|
+
description: z.string().nullable().optional(),
|
|
95
|
+
name: z.string().nullable().optional(),
|
|
96
|
+
date: z.string().nullable().optional(),
|
|
97
|
+
});
|
|
98
|
+
const ApnHttp = z.enum([
|
|
99
|
+
'datal2tp',
|
|
100
|
+
'datapro',
|
|
101
|
+
'mobile',
|
|
102
|
+
'orange',
|
|
103
|
+
]);
|
|
104
|
+
const ApnfRequestStateResponse = z.enum([
|
|
105
|
+
'Sent',
|
|
106
|
+
'ArOk',
|
|
107
|
+
'Planned',
|
|
108
|
+
'DelayRequested',
|
|
109
|
+
'DelayAccepted',
|
|
110
|
+
'WaitingArOk',
|
|
111
|
+
'CancelRequested',
|
|
112
|
+
'Cancelled',
|
|
113
|
+
'Rejected',
|
|
114
|
+
'Completed',
|
|
115
|
+
'ReliabilityInProgress',
|
|
116
|
+
'ReliabilityCompleted',
|
|
117
|
+
]);
|
|
118
|
+
const MopOfferCodeHttp = z.enum([
|
|
119
|
+
'PS_E',
|
|
120
|
+
'PSG',
|
|
121
|
+
'PSG+',
|
|
122
|
+
'PSNG',
|
|
123
|
+
'PSNG+',
|
|
124
|
+
'PNU',
|
|
125
|
+
'PNU+',
|
|
126
|
+
]);
|
|
127
|
+
const ApnfRequestResponse = z.looseObject({
|
|
128
|
+
operator_code: z.string(),
|
|
129
|
+
state: ApnfRequestStateResponse,
|
|
130
|
+
ope: z.string(),
|
|
131
|
+
opa: z.string(),
|
|
132
|
+
intermediate_id: z.string(),
|
|
133
|
+
main_apnf_reference: z.string(),
|
|
134
|
+
sub_apnf_reference: z.string(),
|
|
135
|
+
mop_id: z.string(),
|
|
136
|
+
mop_reference_internal: z.string(),
|
|
137
|
+
mop_reference_external: z.string().nullable().optional(),
|
|
138
|
+
mop_offer_code: z.union([MopOfferCodeHttp, z.null()]).optional(),
|
|
139
|
+
simplified_process_option: z.boolean().nullable().optional(),
|
|
140
|
+
portability_type: z.string().nullable().optional(),
|
|
141
|
+
scheduled_date: z.string().nullable().optional(),
|
|
142
|
+
numbers: z.array(z.string()),
|
|
143
|
+
});
|
|
144
|
+
const ApplicabilityHttp = z.enum(['working_days', '7_days']);
|
|
145
|
+
const ArcepSliceHostingHttp = z.looseObject({
|
|
146
|
+
prefix: z.string(),
|
|
147
|
+
operator_code_id: z.string(),
|
|
148
|
+
});
|
|
149
|
+
const ArcepSliceSipTrunkC4Response = z.looseObject({
|
|
150
|
+
account_name: z.string(),
|
|
151
|
+
});
|
|
152
|
+
const ArcepSliceResponse = z.looseObject({
|
|
153
|
+
prefix: z.string(),
|
|
154
|
+
sip_trunk_c4_id: z.string().nullable().optional(),
|
|
155
|
+
sip_trunk_c4: z.union([ArcepSliceSipTrunkC4Response, z.null()]).optional(),
|
|
156
|
+
reference: z.string(),
|
|
157
|
+
});
|
|
158
|
+
const AssignedFilterHttp = z.enum([
|
|
159
|
+
'assigned_only',
|
|
160
|
+
'unassigned_only',
|
|
161
|
+
]);
|
|
162
|
+
const AssignedParamsHttp = z.union([
|
|
163
|
+
z.array(z.string()),
|
|
164
|
+
AssignedFilterHttp,
|
|
165
|
+
]);
|
|
166
|
+
const AvailabilityForecastYearMonthHttp = z.looseObject({
|
|
167
|
+
year: z.number(),
|
|
168
|
+
month: z.number(),
|
|
169
|
+
});
|
|
170
|
+
const AvailabilityForecastRangeMonthsHttp = z.looseObject({
|
|
171
|
+
min: z.number(),
|
|
172
|
+
max: z.number(),
|
|
173
|
+
});
|
|
174
|
+
const AvailabilityForecastHttp = z.union([
|
|
175
|
+
z.looseObject({ set_date: z.string() }),
|
|
176
|
+
z.looseObject({ year_month: AvailabilityForecastYearMonthHttp }),
|
|
177
|
+
z.looseObject({ max_months: z.number() }),
|
|
178
|
+
z.looseObject({ min_months: z.number() }),
|
|
179
|
+
z.looseObject({ range_in_months: AvailabilityForecastRangeMonthsHttp }),
|
|
180
|
+
]);
|
|
181
|
+
const AvailabilityStatusUnavailableReason = z.union([
|
|
182
|
+
z.literal('building_deployment_ongoing'),
|
|
183
|
+
z.literal('building_unavailable'),
|
|
184
|
+
z.literal('building_targeted'),
|
|
185
|
+
z.literal('building_connectable_on_demand'),
|
|
186
|
+
z.literal('building_contract_signed'),
|
|
187
|
+
z.literal('area_not_available'),
|
|
188
|
+
]);
|
|
189
|
+
const AvailabilityStatusUnavailable = z.looseObject({
|
|
190
|
+
reason: z.union([AvailabilityStatusUnavailableReason, z.null()]).optional(),
|
|
191
|
+
availability_forecast: z
|
|
192
|
+
.union([AvailabilityForecastHttp, z.null()])
|
|
193
|
+
.optional(),
|
|
194
|
+
});
|
|
195
|
+
const AvailabilityStatusHttp = z.union([
|
|
196
|
+
z.literal('available'),
|
|
197
|
+
z.looseObject({ unavailable: AvailabilityStatusUnavailable }),
|
|
198
|
+
]);
|
|
199
|
+
const AvailableBackbone = z.looseObject({
|
|
200
|
+
reference: z.string(),
|
|
201
|
+
product_name: z.string(),
|
|
202
|
+
external_provider_reference: z.string().nullable().optional(),
|
|
203
|
+
external_consumer_reference: z.string().nullable().optional(),
|
|
204
|
+
service_id: z.string(),
|
|
205
|
+
});
|
|
206
|
+
const BroadbandNetworkGatewayProtocolHttp = z.enum([
|
|
207
|
+
'l2',
|
|
208
|
+
'l2tp',
|
|
209
|
+
'voip',
|
|
210
|
+
]);
|
|
211
|
+
const OtpResponse = z.looseObject({
|
|
212
|
+
otp_id: z.string(),
|
|
213
|
+
customer_name: z.string().nullable().optional(),
|
|
214
|
+
});
|
|
215
|
+
const FloorResponse = z.looseObject({
|
|
216
|
+
name: z.string(),
|
|
217
|
+
otp_ids: z.array(OtpResponse),
|
|
218
|
+
});
|
|
219
|
+
const StaircaseResponse = z.looseObject({
|
|
220
|
+
name: z.string(),
|
|
221
|
+
floors: z.array(FloorResponse),
|
|
222
|
+
});
|
|
223
|
+
const BuildingResponse = z.looseObject({
|
|
224
|
+
name: z.string(),
|
|
225
|
+
imb: z.string().nullable().optional(),
|
|
226
|
+
stairs: z.array(StaircaseResponse),
|
|
227
|
+
});
|
|
228
|
+
const BuyerContactResponse = z.looseObject({
|
|
229
|
+
actor_name: z.string(),
|
|
230
|
+
email: z.string(),
|
|
231
|
+
lastname: z.string(),
|
|
232
|
+
firstname: z.string(),
|
|
233
|
+
phone: z.string(),
|
|
234
|
+
});
|
|
235
|
+
const ContactResponse = z.looseObject({
|
|
236
|
+
name: z.string().nullable().optional(),
|
|
237
|
+
email: z.string().nullable().optional(),
|
|
238
|
+
phone: z.string().nullable().optional(),
|
|
239
|
+
});
|
|
240
|
+
const CallValidationResponse = z.looseObject({
|
|
241
|
+
enabled: z.boolean(),
|
|
242
|
+
contact: z.union([ContactResponse, z.null()]).optional(),
|
|
243
|
+
comment: z.string().nullable().optional(),
|
|
244
|
+
});
|
|
245
|
+
const CatalogProductOptionRequest = z.looseObject({
|
|
246
|
+
product_option_id: z.string(),
|
|
247
|
+
product_option_variant_id: z.string(),
|
|
248
|
+
});
|
|
249
|
+
const CartEligibilityProductRequest = z.looseObject({
|
|
250
|
+
eligibility_id: z.string(),
|
|
251
|
+
entity_id: z.string(),
|
|
252
|
+
options: z.array(CatalogProductOptionRequest),
|
|
253
|
+
});
|
|
254
|
+
const CatalogProductRequest = z.looseObject({
|
|
255
|
+
contract_version_product_id: z.string(),
|
|
256
|
+
variant_id: z.string().nullable().optional(),
|
|
257
|
+
options: z.array(CatalogProductOptionRequest),
|
|
258
|
+
});
|
|
259
|
+
const ProductCategoryHttp = z.enum([
|
|
260
|
+
'accountability_software_installation_and_deployment',
|
|
261
|
+
'accountability_software_licence',
|
|
262
|
+
'accountability_software_maintenance',
|
|
263
|
+
'accountability_software_preliminary_study',
|
|
264
|
+
'accountability_software_saas_subscription',
|
|
265
|
+
'adsl',
|
|
266
|
+
'arcep_slice_hosting',
|
|
267
|
+
'baremetal_hosting_remote_intervention',
|
|
268
|
+
'bundle',
|
|
269
|
+
'business_software_installation_and_deployment',
|
|
270
|
+
'business_software_licence',
|
|
271
|
+
'business_software_maintenance',
|
|
272
|
+
'business_software_preliminary_study',
|
|
273
|
+
'business_software_saas_subscription',
|
|
274
|
+
'cable_and_equipment_hardware',
|
|
275
|
+
'cable_and_equipment_installation_and_deployment',
|
|
276
|
+
'cable_and_equipment_maintenance',
|
|
277
|
+
'cable_and_equipment_preliminary_study',
|
|
278
|
+
'cloud_resources',
|
|
279
|
+
'cloud_storage',
|
|
280
|
+
'conference_equipment',
|
|
281
|
+
'connection_global_consumption',
|
|
282
|
+
'crossco_interconnection',
|
|
283
|
+
'dark_fiber',
|
|
284
|
+
'dedicated_machine',
|
|
285
|
+
'domain_name',
|
|
286
|
+
'earphones_and_headphones',
|
|
287
|
+
'electrical_capacity',
|
|
288
|
+
'enterprise_fleet',
|
|
289
|
+
'esim',
|
|
290
|
+
'expertise',
|
|
291
|
+
'customer_premises_equipement',
|
|
292
|
+
'firewall',
|
|
293
|
+
'flat_rate_shipping_costs',
|
|
294
|
+
'floor_space',
|
|
295
|
+
'ftte',
|
|
296
|
+
'ftth',
|
|
297
|
+
'ftto',
|
|
298
|
+
'hosting',
|
|
299
|
+
'inbound_portability',
|
|
300
|
+
'install_support',
|
|
301
|
+
'ip_block',
|
|
302
|
+
'ip_voice_carrier',
|
|
303
|
+
'ips',
|
|
304
|
+
'l2_transport_link',
|
|
305
|
+
'late_payment_fees',
|
|
306
|
+
'leo_sat',
|
|
307
|
+
'mailbox',
|
|
308
|
+
'mobile_data',
|
|
309
|
+
'mobile_data_top_up',
|
|
310
|
+
'mobile_link',
|
|
311
|
+
'network_service_coverage_study',
|
|
312
|
+
'network_service_install',
|
|
313
|
+
'network_service_maintenance',
|
|
314
|
+
'office_software_installation_and_deployment',
|
|
315
|
+
'office_software_licence',
|
|
316
|
+
'office_software_maintenance',
|
|
317
|
+
'office_software_preliminary_study',
|
|
318
|
+
'office_software_saas_subscription',
|
|
319
|
+
'on_demand_cloud',
|
|
320
|
+
'on_site_intervention',
|
|
321
|
+
'outbound_portability',
|
|
322
|
+
'phones',
|
|
323
|
+
'poi',
|
|
324
|
+
'poi_wholesale',
|
|
325
|
+
'pra_pcs',
|
|
326
|
+
'prefix_hosting',
|
|
327
|
+
'print_and_copy_consumables',
|
|
328
|
+
'print_and_copy_hardware',
|
|
329
|
+
'print_and_copy_installation_and_deployment',
|
|
330
|
+
'print_and_copy_maintenance',
|
|
331
|
+
'print_and_copy_preliminary_study',
|
|
332
|
+
'sase',
|
|
333
|
+
'sd_wan',
|
|
334
|
+
'sdsl',
|
|
335
|
+
'service_provision_remote_intervention',
|
|
336
|
+
'sim_card',
|
|
337
|
+
'sip_trunk_c4',
|
|
338
|
+
'sip_trunk_c5',
|
|
339
|
+
'software_licencing',
|
|
340
|
+
'ss7_interco',
|
|
341
|
+
'swg',
|
|
342
|
+
'tech_support',
|
|
343
|
+
'transit_ip',
|
|
344
|
+
'ucaas_solution',
|
|
345
|
+
'unified_comms_backbone',
|
|
346
|
+
'unified_comms_instance',
|
|
347
|
+
'unified_comms_licence',
|
|
348
|
+
'vdsl',
|
|
349
|
+
'virtual_backbone',
|
|
350
|
+
'virtual_machine',
|
|
351
|
+
'vpn',
|
|
352
|
+
'vpn_mpls',
|
|
353
|
+
'vpn_mpls_termination',
|
|
354
|
+
'vxc_cloud_service',
|
|
355
|
+
'wave',
|
|
356
|
+
'web_hosting',
|
|
357
|
+
'weight_rate_shipping_costs',
|
|
358
|
+
'wifi_hardware',
|
|
359
|
+
'wrong_signalization_penalty',
|
|
360
|
+
]);
|
|
361
|
+
const PaymentTermHttp = z.enum([
|
|
362
|
+
'payable_2_months_in_advance',
|
|
363
|
+
'payable_in_advance',
|
|
364
|
+
'payable_in_arrears',
|
|
365
|
+
]);
|
|
366
|
+
const GenericProductPricingRequest = z.looseObject({
|
|
367
|
+
access_fee: z.union([z.string(), z.number()]).nullable().optional(),
|
|
368
|
+
recurring_price: z.union([z.string(), z.number()]).nullable().optional(),
|
|
369
|
+
commitment_duration: z.number().nullable().optional(),
|
|
370
|
+
billing_periodicity: z.number(),
|
|
371
|
+
payment_term: PaymentTermHttp,
|
|
372
|
+
});
|
|
373
|
+
const GenericProductRequest = z.looseObject({
|
|
374
|
+
name: z.string(),
|
|
375
|
+
category: ProductCategoryHttp,
|
|
376
|
+
pricing: GenericProductPricingRequest,
|
|
377
|
+
quantity: z.number().nullable().optional(),
|
|
378
|
+
});
|
|
379
|
+
const RioOrDid = z.union([
|
|
380
|
+
z.looseObject({ rio: z.string() }),
|
|
381
|
+
z.looseObject({ did: z.array(z.string()) }),
|
|
382
|
+
]);
|
|
383
|
+
const CartPortabilityTypeHttp = z.union([
|
|
384
|
+
z.literal('partial'),
|
|
385
|
+
z.literal('partial_complex'),
|
|
386
|
+
z.literal('total'),
|
|
387
|
+
]);
|
|
388
|
+
const PortabilityProductRequest = z.looseObject({
|
|
389
|
+
idn: z.string(),
|
|
390
|
+
rio_or_did: RioOrDid,
|
|
391
|
+
comments: z.string().nullable().optional(),
|
|
392
|
+
wanted_date: z.string(),
|
|
393
|
+
portability_type: CartPortabilityTypeHttp,
|
|
394
|
+
option_call_validation: z.boolean(),
|
|
395
|
+
option_delegated: z.boolean().optional(),
|
|
396
|
+
});
|
|
397
|
+
const CartItemEntityRequest = z.union([
|
|
398
|
+
z.looseObject({ eligibility: CartEligibilityProductRequest }),
|
|
399
|
+
z.looseObject({ tailored_offer: z.string() }),
|
|
400
|
+
z.looseObject({ catalog_product: CatalogProductRequest }),
|
|
401
|
+
z.looseObject({ generic_product: GenericProductRequest }),
|
|
402
|
+
z.looseObject({ portability: PortabilityProductRequest }),
|
|
403
|
+
]);
|
|
404
|
+
const CartItemSpecificsResponse = z.union([
|
|
405
|
+
z.enum(['generic', 'bundle']),
|
|
406
|
+
z.looseObject({
|
|
407
|
+
catalog: z.looseObject({
|
|
408
|
+
description: z.string().nullable().optional(),
|
|
409
|
+
contract_name: z.string(),
|
|
410
|
+
contract_version_product_id: z.string(),
|
|
411
|
+
variation_id: z.string().nullable().optional(),
|
|
412
|
+
contract_document_bundle_url: z.string().nullable().optional(),
|
|
413
|
+
infra_provider_slug: z.string().nullable().optional(),
|
|
414
|
+
infra_provider_name: z.string().nullable().optional(),
|
|
415
|
+
collected_by: z.string().nullable().optional(),
|
|
416
|
+
orderable_until: z.string().nullable().optional(),
|
|
417
|
+
}),
|
|
418
|
+
}),
|
|
419
|
+
]);
|
|
420
|
+
const HttpDiscountType = z.enum(['fixed', 'percent']);
|
|
421
|
+
const HttpDiscount = z.looseObject({
|
|
422
|
+
amount: z.union([z.string(), z.number()]),
|
|
423
|
+
discount_type: HttpDiscountType,
|
|
424
|
+
});
|
|
425
|
+
const HttpCartDiscount = z.looseObject({
|
|
426
|
+
access_fee: z.union([HttpDiscount, z.null()]).optional(),
|
|
427
|
+
recurring_price: z.union([HttpDiscount, z.null()]).optional(),
|
|
428
|
+
});
|
|
429
|
+
const CartItemUpdateRequest = z.looseObject({
|
|
430
|
+
discount: HttpCartDiscount,
|
|
431
|
+
quantity: z.number().nullable().optional(),
|
|
432
|
+
});
|
|
433
|
+
const CartLineConnectionInfoResponse = z.looseObject({
|
|
434
|
+
imb_ref: z.string(),
|
|
435
|
+
pm_ref: z.string(),
|
|
436
|
+
});
|
|
437
|
+
const CoordinatesHttp = z.looseObject({
|
|
438
|
+
longitude: z.string(),
|
|
439
|
+
latitude: z.string(),
|
|
440
|
+
});
|
|
441
|
+
const CustomerLocationHttp = z.looseObject({
|
|
442
|
+
address: AddressHttp,
|
|
443
|
+
preferred_address: z.union([AddressHttp, z.null()]).optional(),
|
|
444
|
+
idn: z.string().nullable().optional(),
|
|
445
|
+
coordinates: z.union([CoordinatesHttp, z.null()]).optional(),
|
|
446
|
+
});
|
|
447
|
+
const CartLineContextResponse = z.union([
|
|
448
|
+
z.literal('generic'),
|
|
449
|
+
z.looseObject({
|
|
450
|
+
eligibility: z.looseObject({
|
|
451
|
+
eligibility_id: z.string(),
|
|
452
|
+
external_eligibility_reference: z.string().nullable().optional(),
|
|
453
|
+
tailored_offer_id: z.string().nullable().optional(),
|
|
454
|
+
customer_location: CustomerLocationHttp,
|
|
455
|
+
connection_info: z
|
|
456
|
+
.union([CartLineConnectionInfoResponse, z.null()])
|
|
457
|
+
.optional(),
|
|
458
|
+
}),
|
|
459
|
+
}),
|
|
460
|
+
z.looseObject({
|
|
461
|
+
catalog: z.looseObject({
|
|
462
|
+
customer_location: z.union([CustomerLocationHttp, z.null()]).optional(),
|
|
463
|
+
}),
|
|
464
|
+
}),
|
|
465
|
+
z.looseObject({
|
|
466
|
+
portability: z.looseObject({
|
|
467
|
+
idn: z.string(),
|
|
468
|
+
rio_or_did: RioOrDid,
|
|
469
|
+
comments: z.string().nullable().optional(),
|
|
470
|
+
wanted_date: z.string(),
|
|
471
|
+
portability_type: CartPortabilityTypeHttp,
|
|
472
|
+
option_call_validation: z.boolean(),
|
|
473
|
+
option_delegated: z.boolean(),
|
|
474
|
+
}),
|
|
475
|
+
}),
|
|
476
|
+
]);
|
|
477
|
+
const PenaltyHttp = z.looseObject({
|
|
478
|
+
min: z.string(),
|
|
479
|
+
max: z.string().nullable().optional(),
|
|
480
|
+
percentage: z.union([z.string(), z.number()]),
|
|
481
|
+
});
|
|
482
|
+
const ComplianceLevelHttp = z.enum([
|
|
483
|
+
'minimum',
|
|
484
|
+
'intermediate',
|
|
485
|
+
'maximum',
|
|
486
|
+
]);
|
|
487
|
+
const InterfaceTypeHttp = z.enum([
|
|
488
|
+
'ethernet',
|
|
489
|
+
'copper',
|
|
490
|
+
'optical',
|
|
491
|
+
]);
|
|
492
|
+
const CopperPairNumberHttp = z.union([
|
|
493
|
+
z.literal(1),
|
|
494
|
+
z.literal(2),
|
|
495
|
+
z.literal(4),
|
|
496
|
+
]);
|
|
497
|
+
const DeliveryProtocolHttp = z.enum([
|
|
498
|
+
'l3_over_virtual_backbone',
|
|
499
|
+
'l3',
|
|
500
|
+
'l2',
|
|
501
|
+
'l2tp',
|
|
502
|
+
'voip',
|
|
503
|
+
]);
|
|
504
|
+
const DataQuotaValueHttp = z.union([
|
|
505
|
+
z.looseObject({ quota_type: z.literal('disabled') }),
|
|
506
|
+
z.looseObject({ quota_type: z.literal('unlimited') }),
|
|
507
|
+
z.looseObject({
|
|
508
|
+
quota_type: z.literal('quota_bytes'),
|
|
509
|
+
quota_value: z.number(),
|
|
510
|
+
}),
|
|
511
|
+
]);
|
|
512
|
+
const MobileNetworkTechnologyHttp = z.enum([
|
|
513
|
+
'3g',
|
|
514
|
+
'4g',
|
|
515
|
+
'5g',
|
|
516
|
+
]);
|
|
517
|
+
const PoiCollectionScopeHttp = z.enum([
|
|
518
|
+
'national',
|
|
519
|
+
'regional',
|
|
520
|
+
'both',
|
|
521
|
+
]);
|
|
522
|
+
const HnoHttp = z.enum(['orange', 'sfr']);
|
|
523
|
+
const RedundancyHttp = z.enum([
|
|
524
|
+
'none',
|
|
525
|
+
'active_active',
|
|
526
|
+
'nominal_backup',
|
|
527
|
+
'polyvalent',
|
|
528
|
+
]);
|
|
529
|
+
const IpAddressKindHttp = z.enum(['public', 'private']);
|
|
530
|
+
const IpAddressVersionHttp = z.enum(['ipv4', 'ipv6']);
|
|
531
|
+
const WazoLicenceLevelHttp = z.enum(['voice', 'uc']);
|
|
532
|
+
const ProductFeatureSetApiResponse = z.looseObject({
|
|
533
|
+
access_fee: z.union([z.string(), z.number()]).nullable().optional(),
|
|
534
|
+
access_fee_on_quotation: z.boolean().nullable().optional(),
|
|
535
|
+
acquisition_type: z.union([AcquisitionTypeHttp, z.null()]).optional(),
|
|
536
|
+
billing_periodicity: z.number().nullable().optional(),
|
|
537
|
+
broadband_network_gateway_protocol: z
|
|
538
|
+
.union([BroadbandNetworkGatewayProtocolHttp, z.null()])
|
|
539
|
+
.optional(),
|
|
540
|
+
commitment_duration: z.number().nullable().optional(),
|
|
541
|
+
debit_down_guaranteed: z
|
|
542
|
+
.union([z.string(), z.number()])
|
|
543
|
+
.nullable()
|
|
544
|
+
.optional(),
|
|
545
|
+
debit_down_max: z.union([z.string(), z.number()]).nullable().optional(),
|
|
546
|
+
debit_up_guaranteed: z.union([z.string(), z.number()]).nullable().optional(),
|
|
547
|
+
debit_up_max: z.union([z.string(), z.number()]).nullable().optional(),
|
|
548
|
+
deployment_delay_exceed_penalty: z.array(PenaltyHttp).nullable().optional(),
|
|
549
|
+
european_communication_code_compliance: z
|
|
550
|
+
.union([ComplianceLevelHttp, z.null()])
|
|
551
|
+
.optional(),
|
|
552
|
+
gdpr: z.union([ComplianceLevelHttp, z.null()]).optional(),
|
|
553
|
+
grt_exceed_penalty: z.array(PenaltyHttp).nullable().optional(),
|
|
554
|
+
grt_trigger_threshold: z
|
|
555
|
+
.union([z.string(), z.number()])
|
|
556
|
+
.nullable()
|
|
557
|
+
.optional(),
|
|
558
|
+
infra_provider: z.string().nullable().optional(),
|
|
559
|
+
infrastructure_encryption: z.boolean().nullable().optional(),
|
|
560
|
+
infrastructure_encryption_comment: z.string().nullable().optional(),
|
|
561
|
+
interface_type: z.union([InterfaceTypeHttp, z.null()]).optional(),
|
|
562
|
+
intervention_time_guaranteed_delay: z.string().nullable().optional(),
|
|
563
|
+
intervention_time_guaranteed_applicability: z
|
|
564
|
+
.union([ApplicabilityHttp, z.null()])
|
|
565
|
+
.optional(),
|
|
566
|
+
is_sellable: z.boolean().nullable().optional(),
|
|
567
|
+
latency_guarantee: z.number().nullable().optional(),
|
|
568
|
+
legal_deployment_delay: z.string().nullable().optional(),
|
|
569
|
+
mis_exceed_penalty: z.array(PenaltyHttp).nullable().optional(),
|
|
570
|
+
packet_loss_exceed_penalty: z.array(PenaltyHttp).nullable().optional(),
|
|
571
|
+
packet_loss_max: z.union([z.string(), z.number()]).nullable().optional(),
|
|
572
|
+
payment_term: z.union([PaymentTermHttp, z.null()]).optional(),
|
|
573
|
+
recovery_time_guaranteed_delay: z.string().nullable().optional(),
|
|
574
|
+
recovery_time_guaranteed_applicability: z
|
|
575
|
+
.union([ApplicabilityHttp, z.null()])
|
|
576
|
+
.optional(),
|
|
577
|
+
recurring_price: z.union([z.string(), z.number()]).nullable().optional(),
|
|
578
|
+
recurring_price_on_quotation: z.boolean().nullable().optional(),
|
|
579
|
+
sold_only_as_option: z.boolean().nullable().optional(),
|
|
580
|
+
back2back_prohibit: z.boolean().nullable().optional(),
|
|
581
|
+
tariff_zone: z.string().nullable().optional(),
|
|
582
|
+
copper_pair_number: z.union([CopperPairNumberHttp, z.null()]).optional(),
|
|
583
|
+
simultaneous_channel_number: z.number().nullable().optional(),
|
|
584
|
+
input_channel_number: z.number().nullable().optional(),
|
|
585
|
+
output_channel_number: z.number().nullable().optional(),
|
|
586
|
+
estimated_deployment_delay: z.string().nullable().optional(),
|
|
587
|
+
external_product_reference: z.string().nullable().optional(),
|
|
588
|
+
white_label: z.boolean().nullable().optional(),
|
|
589
|
+
cancellation_notice: z.string().nullable().optional(),
|
|
590
|
+
collection_region: z.string().nullable().optional(),
|
|
591
|
+
delivery_protocol: z.union([DeliveryProtocolHttp, z.null()]).optional(),
|
|
592
|
+
mtu: z.number().nullable().optional(),
|
|
593
|
+
final_customer_sae_vlan: z.number().nullable().optional(),
|
|
594
|
+
service_access_specs_url: z.string().nullable().optional(),
|
|
595
|
+
data_quota_commercial_name: z.string().nullable().optional(),
|
|
596
|
+
data_quota_bytes_per_mobile_area: z
|
|
597
|
+
.object({})
|
|
598
|
+
.catchall(DataQuotaValueHttp)
|
|
599
|
+
.nullable()
|
|
600
|
+
.optional(),
|
|
601
|
+
pay_as_you_go: z.boolean().nullable().optional(),
|
|
602
|
+
mobile_network_technology: z
|
|
603
|
+
.union([MobileNetworkTechnologyHttp, z.null()])
|
|
604
|
+
.optional(),
|
|
605
|
+
vertical_eligibility_needed: z.boolean().nullable().optional(),
|
|
606
|
+
voip_tariff_list_id: z.string().nullable().optional(),
|
|
607
|
+
mobile_data_tariff_list_id: z.string().nullable().optional(),
|
|
608
|
+
mobile_voip_tariff_list_id: z.string().nullable().optional(),
|
|
609
|
+
mobile_sms_tariff_list_id: z.string().nullable().optional(),
|
|
610
|
+
mobile_mms_tariff_list_id: z.string().nullable().optional(),
|
|
611
|
+
voip_teams_interconnect: z.boolean().nullable().optional(),
|
|
612
|
+
otp_reference_needed: z.boolean().nullable().optional(),
|
|
613
|
+
tariff_list_url: z.string().nullable().optional(),
|
|
614
|
+
pack_of_n_items: z.number().nullable().optional(),
|
|
615
|
+
appointment_worker_id: z.string().nullable().optional(),
|
|
616
|
+
cpe_model_id: z.string().nullable().optional(),
|
|
617
|
+
national_collection: z.boolean().nullable().optional(),
|
|
618
|
+
offer_validity_duration: z.string().nullable().optional(),
|
|
619
|
+
poi_collection_scope: z.union([PoiCollectionScopeHttp, z.null()]).optional(),
|
|
620
|
+
collection_compatibility_key: z.array(z.string()).nullable().optional(),
|
|
621
|
+
hno: z.union([HnoHttp, z.null()]).optional(),
|
|
622
|
+
voice: z.boolean().nullable().optional(),
|
|
623
|
+
vas: z.boolean().nullable().optional(),
|
|
624
|
+
sms: z.boolean().nullable().optional(),
|
|
625
|
+
cidr_length: z.number().nullable().optional(),
|
|
626
|
+
building_operators_l331_allowing_multiple_pto: z
|
|
627
|
+
.array(z.string())
|
|
628
|
+
.nullable()
|
|
629
|
+
.optional(),
|
|
630
|
+
redundancy: z.union([RedundancyHttp, z.null()]).optional(),
|
|
631
|
+
discounted_access_fee: z
|
|
632
|
+
.union([z.string(), z.number()])
|
|
633
|
+
.nullable()
|
|
634
|
+
.optional(),
|
|
635
|
+
discounted_recurring_price: z
|
|
636
|
+
.union([z.string(), z.number()])
|
|
637
|
+
.nullable()
|
|
638
|
+
.optional(),
|
|
639
|
+
discount_duration_months: z.number().nullable().optional(),
|
|
640
|
+
discount_start: z.string().nullable().optional(),
|
|
641
|
+
discount_end: z.string().nullable().optional(),
|
|
642
|
+
require_mobile_phone_number_for_order: z.boolean().nullable().optional(),
|
|
643
|
+
max_connection_bandwidth: z
|
|
644
|
+
.union([z.string(), z.number()])
|
|
645
|
+
.nullable()
|
|
646
|
+
.optional(),
|
|
647
|
+
max_quantity_per_order: z.number().nullable().optional(),
|
|
648
|
+
esim: z.boolean().nullable().optional(),
|
|
649
|
+
ip_address_kind: z.union([IpAddressKindHttp, z.null()]).optional(),
|
|
650
|
+
ip_address_version: z.union([IpAddressVersionHttp, z.null()]).optional(),
|
|
651
|
+
enable_nsce: z.boolean().nullable().optional(),
|
|
652
|
+
disable_prorata_on_volume: z.boolean().nullable().optional(),
|
|
653
|
+
default_apn: z.union([ApnHttp, z.null()]).optional(),
|
|
654
|
+
is_for_mobile_backup_only: z.boolean().nullable().optional(),
|
|
655
|
+
is_cpe_management_connection: z.boolean().nullable().optional(),
|
|
656
|
+
esignature_template_id: z.string().nullable().optional(),
|
|
657
|
+
wazo_licence_level: z.union([WazoLicenceLevelHttp, z.null()]).optional(),
|
|
658
|
+
voip_wazo_interconnect: z.boolean().nullable().optional(),
|
|
659
|
+
fixed_ip: z.boolean().nullable().optional(),
|
|
660
|
+
sip_trunk_required: z.boolean().nullable().optional(),
|
|
661
|
+
});
|
|
662
|
+
const ProductOptionTypeHttp = z.enum([
|
|
663
|
+
'extended_gtr',
|
|
664
|
+
'desaturation',
|
|
665
|
+
'fast_delivery',
|
|
666
|
+
'custom',
|
|
667
|
+
'cpe_backup',
|
|
668
|
+
'fixed_ip',
|
|
669
|
+
]);
|
|
670
|
+
const CartLineOptionResponse = z.looseObject({
|
|
671
|
+
description: z.string().nullable().optional(),
|
|
672
|
+
name: z.string(),
|
|
673
|
+
cart_option_id: z.string(),
|
|
674
|
+
product_option_id: z.string(),
|
|
675
|
+
product_option_variant_id: z.string(),
|
|
676
|
+
features: ProductFeatureSetApiResponse,
|
|
677
|
+
option_type: ProductOptionTypeHttp,
|
|
678
|
+
});
|
|
679
|
+
const CartLineProductResponse = z.looseObject({
|
|
680
|
+
product_name: z.string(),
|
|
681
|
+
product_category: ProductCategoryHttp,
|
|
682
|
+
specifics: CartItemSpecificsResponse,
|
|
683
|
+
product_feature_set: ProductFeatureSetApiResponse,
|
|
684
|
+
});
|
|
685
|
+
const CartLineRequest = z.looseObject({
|
|
686
|
+
entity: CartItemEntityRequest,
|
|
687
|
+
discount: z.union([HttpCartDiscount, z.null()]).optional(),
|
|
688
|
+
});
|
|
689
|
+
const CartLineResponse = z.looseObject({
|
|
690
|
+
cart_line_id: z.string(),
|
|
691
|
+
quantity: z.number(),
|
|
692
|
+
index: z.number(),
|
|
693
|
+
discount: HttpCartDiscount,
|
|
694
|
+
product: CartLineProductResponse,
|
|
695
|
+
options: z.array(CartLineOptionResponse),
|
|
696
|
+
context: CartLineContextResponse,
|
|
697
|
+
});
|
|
698
|
+
const CartTypeHttp = z.enum(['sales', 'purchase']);
|
|
699
|
+
const CartStatusHttp = z.enum(['draft', 'validated']);
|
|
700
|
+
const CountryId = z.enum([
|
|
701
|
+
'US',
|
|
702
|
+
'BE',
|
|
703
|
+
'EL',
|
|
704
|
+
'LT',
|
|
705
|
+
'PT',
|
|
706
|
+
'BG',
|
|
707
|
+
'ES',
|
|
708
|
+
'LU',
|
|
709
|
+
'RO',
|
|
710
|
+
'CZ',
|
|
711
|
+
'FR',
|
|
712
|
+
'HU',
|
|
713
|
+
'SI',
|
|
714
|
+
'DK',
|
|
715
|
+
'HR',
|
|
716
|
+
'MT',
|
|
717
|
+
'SK',
|
|
718
|
+
'DE',
|
|
719
|
+
'IT',
|
|
720
|
+
'NL',
|
|
721
|
+
'FI',
|
|
722
|
+
'EE',
|
|
723
|
+
'CY',
|
|
724
|
+
'AT',
|
|
725
|
+
'SE',
|
|
726
|
+
'IE',
|
|
727
|
+
'LV',
|
|
728
|
+
'IS',
|
|
729
|
+
'NO',
|
|
730
|
+
'LI',
|
|
731
|
+
'CH',
|
|
732
|
+
'UK',
|
|
733
|
+
'PL',
|
|
734
|
+
]);
|
|
735
|
+
const CompanyTypeHttp = z.enum([
|
|
736
|
+
'Association',
|
|
737
|
+
'EI',
|
|
738
|
+
'EURL',
|
|
739
|
+
'SARL',
|
|
740
|
+
'SASU',
|
|
741
|
+
'SAS',
|
|
742
|
+
'SA',
|
|
743
|
+
'SMF',
|
|
744
|
+
'SNC',
|
|
745
|
+
'SCS',
|
|
746
|
+
'SCA',
|
|
747
|
+
]);
|
|
748
|
+
const PaymentMethod = z.enum([
|
|
749
|
+
'direct_debit',
|
|
750
|
+
'bank_transfer',
|
|
751
|
+
]);
|
|
752
|
+
const CompanyAddress = z.looseObject({
|
|
753
|
+
street_number: z.string().nullable().optional(),
|
|
754
|
+
street: z.string(),
|
|
755
|
+
post_code: z.string(),
|
|
756
|
+
city: z.string(),
|
|
757
|
+
department_name: z.string().nullable().optional(),
|
|
758
|
+
additional_address_details: z.string().nullable().optional(),
|
|
759
|
+
});
|
|
760
|
+
const ContactApi = z.looseObject({
|
|
761
|
+
email: z.string(),
|
|
762
|
+
phone: z.string(),
|
|
763
|
+
lastname: z.string(),
|
|
764
|
+
firstname: z.string(),
|
|
765
|
+
});
|
|
766
|
+
const UserIdentifierHttp = z.looseObject({
|
|
767
|
+
id: z.string(),
|
|
768
|
+
firstname: z.string(),
|
|
769
|
+
lastname: z.string(),
|
|
770
|
+
});
|
|
771
|
+
const CustomerRecordHttp = z.looseObject({
|
|
772
|
+
id: z.string(),
|
|
773
|
+
actor_id: z.string(),
|
|
774
|
+
slug: z.string(),
|
|
775
|
+
name: z.string(),
|
|
776
|
+
country_id: CountryId,
|
|
777
|
+
legal_identifier: z.string(),
|
|
778
|
+
sub_legal_identifier: z.string().nullable().optional(),
|
|
779
|
+
vat_number: z.string().nullable().optional(),
|
|
780
|
+
vat_exempted: z.boolean(),
|
|
781
|
+
company_type: z.union([CompanyTypeHttp, z.null()]).optional(),
|
|
782
|
+
share_capital: z.union([z.string(), z.number()]).nullable().optional(),
|
|
783
|
+
naf_ape: z.string().nullable().optional(),
|
|
784
|
+
rcs: z.string().nullable().optional(),
|
|
785
|
+
actor_signer: z.union([ActorSignerHttp, z.null()]).optional(),
|
|
786
|
+
owner_actor: ActorIdentifierResponse,
|
|
787
|
+
alias: z.string().nullable().optional(),
|
|
788
|
+
external_customer_ref: z.string().nullable().optional(),
|
|
789
|
+
payment_method: PaymentMethod,
|
|
790
|
+
legal_address: CompanyAddress,
|
|
791
|
+
billing_address: CompanyAddress,
|
|
792
|
+
sales_contact: ContactApi,
|
|
793
|
+
deploy_contact: ContactApi,
|
|
794
|
+
adv_contact: ContactApi,
|
|
795
|
+
support_contact: ContactApi,
|
|
796
|
+
billing_contact: ContactApi,
|
|
797
|
+
created_at: z.string(),
|
|
798
|
+
updated_at: z.string().nullable().optional(),
|
|
799
|
+
deleted_at: z.string().nullable().optional(),
|
|
800
|
+
automatic_order_acceptation: z.boolean(),
|
|
801
|
+
customer_manager: z.union([UserIdentifierHttp, z.null()]).optional(),
|
|
802
|
+
customer_internal_category_id: z.string().nullable().optional(),
|
|
803
|
+
salesperson: z.union([UserIdentifierHttp, z.null()]).optional(),
|
|
804
|
+
});
|
|
805
|
+
const CartResponse = z.looseObject({
|
|
806
|
+
description: z.string().nullable().optional(),
|
|
807
|
+
cart_id: z.string(),
|
|
808
|
+
cart_type: CartTypeHttp,
|
|
809
|
+
status: CartStatusHttp,
|
|
810
|
+
buyer_id: z.string().nullable().optional(),
|
|
811
|
+
owner_id: z.string(),
|
|
812
|
+
reference: z.string(),
|
|
813
|
+
external_reference: z.string().nullable().optional(),
|
|
814
|
+
invoiced_customer: z.union([CustomerRecordHttp, z.null()]).optional(),
|
|
815
|
+
lines_count: z.number(),
|
|
816
|
+
total_recurring: z.union([z.string(), z.number()]).nullable().optional(),
|
|
817
|
+
total_access_fee: z.union([z.string(), z.number()]).nullable().optional(),
|
|
818
|
+
direct_provider_actor: z
|
|
819
|
+
.union([ActorIdentifierResponse, z.null()])
|
|
820
|
+
.optional(),
|
|
821
|
+
name: z.string().nullable().optional(),
|
|
822
|
+
created_at: z.string(),
|
|
823
|
+
updated_at: z.string().nullable().optional(),
|
|
824
|
+
expired_at: z.string().nullable().optional(),
|
|
825
|
+
});
|
|
826
|
+
const CatalogProductResponse = z.looseObject({
|
|
827
|
+
description: z.string().nullable().optional(),
|
|
828
|
+
product_id: z.string(),
|
|
829
|
+
variation_id: z.string().nullable().optional(),
|
|
830
|
+
contract_version_product_id: z.string(),
|
|
831
|
+
collected_by: z.string(),
|
|
832
|
+
infra_provider_slug: z.string().nullable().optional(),
|
|
833
|
+
infra_provider_name: z.string().nullable().optional(),
|
|
834
|
+
external_eligibility_reference: z.string().nullable().optional(),
|
|
835
|
+
resold_as_order_line_id: z.string().nullable().optional(),
|
|
836
|
+
});
|
|
837
|
+
const CdrEventDetailsDataResponse = z.looseObject({
|
|
838
|
+
data_consumption_up_bytes: z.number().nullable().optional(),
|
|
839
|
+
data_consumption_down_bytes: z.number().nullable().optional(),
|
|
840
|
+
data_consumption_total_bytes: z.number(),
|
|
841
|
+
});
|
|
842
|
+
const EventDirectionResponse = z.enum(['in', 'out']);
|
|
843
|
+
const CdrEventDetailsVoiceCallResponse = z.looseObject({
|
|
844
|
+
call_duration_seconds: z.union([z.string(), z.number()]),
|
|
845
|
+
bad_pani: z.boolean(),
|
|
846
|
+
bad_pai: z.boolean(),
|
|
847
|
+
pani: z.string().nullable().optional(),
|
|
848
|
+
start_of_communication: z.string().nullable().optional(),
|
|
849
|
+
source_number: z.string(),
|
|
850
|
+
destination_number: z.string(),
|
|
851
|
+
direction: EventDirectionResponse,
|
|
852
|
+
pai: z.string().nullable().optional(),
|
|
853
|
+
hidden_number: z.boolean(),
|
|
854
|
+
});
|
|
855
|
+
const CdrEventDetailsResponse = z.union([
|
|
856
|
+
z.intersection(z.looseObject({ type: z.literal('data') }), CdrEventDetailsDataResponse),
|
|
857
|
+
z.intersection(z.looseObject({ type: z.literal('voice_call') }), CdrEventDetailsVoiceCallResponse),
|
|
858
|
+
]);
|
|
859
|
+
const CdrEventTypeRequest = z.enum(['data', 'voice_call']);
|
|
860
|
+
const CdrExportRecordResponse = z.looseObject({
|
|
861
|
+
export_id: z.string(),
|
|
862
|
+
service_id: z.string(),
|
|
863
|
+
beginning_of_period: z.string(),
|
|
864
|
+
version: z.number(),
|
|
865
|
+
});
|
|
866
|
+
const CdrInfraDetailsMobileResponse = z.looseObject({
|
|
867
|
+
msisdn: z.string(),
|
|
868
|
+
imsi: z.string(),
|
|
869
|
+
iccid: z.string(),
|
|
870
|
+
imei: z.string().nullable().optional(),
|
|
871
|
+
origin_network: z.string().nullable().optional(),
|
|
872
|
+
});
|
|
873
|
+
const CdrInfraDetailsResponse = z.union([
|
|
874
|
+
z.intersection(z.looseObject({ type: z.literal('mobile') }), CdrInfraDetailsMobileResponse),
|
|
875
|
+
z.looseObject({ type: z.literal('phone_line') }),
|
|
876
|
+
]);
|
|
877
|
+
const CdrInfraTypeRequest = z.enum(['mobile', 'phone_line']);
|
|
878
|
+
const VoiceCallRatingDetailsVasStatusResponse = z.union([
|
|
879
|
+
z.looseObject({ vas_status: z.literal('not_vas') }),
|
|
880
|
+
z.looseObject({ vas_status: z.literal('priced_as_local_call') }),
|
|
881
|
+
z.looseObject({ vas_status: z.literal('free') }),
|
|
882
|
+
z.looseObject({
|
|
883
|
+
vas_status: z.literal('vas'),
|
|
884
|
+
vas_price: z.union([z.string(), z.number()]),
|
|
885
|
+
}),
|
|
886
|
+
]);
|
|
887
|
+
const VoiceCallRatingDetailsResponse = z.looseObject({
|
|
888
|
+
tariff_list_version_id: z.string(),
|
|
889
|
+
origin_name: z.string(),
|
|
890
|
+
origin_id: z.string(),
|
|
891
|
+
destination_name: z.string(),
|
|
892
|
+
destination_id: z.string(),
|
|
893
|
+
service_billed_duration_sec: z.number(),
|
|
894
|
+
call_charge: z.union([z.string(), z.number()]),
|
|
895
|
+
duration_charge: z.union([z.string(), z.number()]),
|
|
896
|
+
vas_status: VoiceCallRatingDetailsVasStatusResponse,
|
|
897
|
+
bad_pai_pani_overprice: z.boolean(),
|
|
898
|
+
});
|
|
899
|
+
const RatingDetailsResponse = z.intersection(z.looseObject({ type: z.literal('voice_call') }), VoiceCallRatingDetailsResponse);
|
|
900
|
+
const RatingResponse = z.looseObject({
|
|
901
|
+
price: z.union([z.string(), z.number()]),
|
|
902
|
+
rating_date: z.string(),
|
|
903
|
+
rating_details: RatingDetailsResponse,
|
|
904
|
+
});
|
|
905
|
+
const CdrResponse = z.looseObject({
|
|
906
|
+
cdr_id: z.number(),
|
|
907
|
+
start_date: z.string(),
|
|
908
|
+
end_date: z.string(),
|
|
909
|
+
infra_details: CdrInfraDetailsResponse,
|
|
910
|
+
event_details: CdrEventDetailsResponse,
|
|
911
|
+
rating: z.union([RatingResponse, z.null()]).optional(),
|
|
912
|
+
service_hierarchy_id: z.string(),
|
|
913
|
+
});
|
|
914
|
+
const CloseServiceTicketCustomerRequest = z.looseObject({
|
|
915
|
+
message: z.string(),
|
|
916
|
+
});
|
|
917
|
+
const ServiceTicketResponsibilityHttp = z.enum([
|
|
918
|
+
'provider_in_place',
|
|
919
|
+
'provider',
|
|
920
|
+
'customer',
|
|
921
|
+
]);
|
|
922
|
+
const CloseServiceTicketProviderRequest = z.looseObject({
|
|
923
|
+
responsibility: ServiceTicketResponsibilityHttp,
|
|
924
|
+
gtr_overrun: z.string(),
|
|
925
|
+
message: z.string(),
|
|
926
|
+
cause: z.string(),
|
|
927
|
+
});
|
|
928
|
+
const ConfigurationStatusHttp = z.enum([
|
|
929
|
+
'pending_configuration',
|
|
930
|
+
'configuration_error',
|
|
931
|
+
'configured',
|
|
932
|
+
'error',
|
|
933
|
+
'pending_deconfiguration',
|
|
934
|
+
'pending_deactivation',
|
|
935
|
+
'deactivated',
|
|
936
|
+
'unknown',
|
|
937
|
+
]);
|
|
938
|
+
const DeploymentInfoResponse = z.looseObject({
|
|
939
|
+
deployment_wanted_date: z.string().nullable().optional(),
|
|
940
|
+
technical_visit_wanted_date: z.string().nullable().optional(),
|
|
941
|
+
});
|
|
942
|
+
const ImbInfoCurrentResponse = z.looseObject({
|
|
943
|
+
imb_id: z.string(),
|
|
944
|
+
pm_id: z.string(),
|
|
945
|
+
pto_ref: z.string().nullable().optional(),
|
|
946
|
+
building_name: z.string(),
|
|
947
|
+
staircase_name: z.string(),
|
|
948
|
+
floor_name: z.string(),
|
|
949
|
+
});
|
|
950
|
+
const ImbInfoLegacyResponse = z.looseObject({
|
|
951
|
+
imb_id: z.string(),
|
|
952
|
+
pm_id: z.string(),
|
|
953
|
+
pto_ref: z.string().nullable().optional(),
|
|
954
|
+
pto_installed: z.boolean(),
|
|
955
|
+
});
|
|
956
|
+
const ImbInfoResponse = z.union([
|
|
957
|
+
ImbInfoCurrentResponse,
|
|
958
|
+
ImbInfoLegacyResponse,
|
|
959
|
+
]);
|
|
960
|
+
/** Operational status of the link, as last reported by the network context. */
|
|
961
|
+
const ConnectionStatusHttp = z.enum([
|
|
962
|
+
'up',
|
|
963
|
+
'down',
|
|
964
|
+
'unknown',
|
|
965
|
+
]);
|
|
966
|
+
const ConnectionStatusResponse = z.looseObject({
|
|
967
|
+
status: ConnectionStatusHttp,
|
|
968
|
+
source_timestamp: z.string().nullable().optional(),
|
|
969
|
+
});
|
|
970
|
+
const ConnectionInfoInfrastructureDetailsResponse = z.union([
|
|
971
|
+
z.looseObject({ mobile: z.looseObject({}) }),
|
|
972
|
+
z.looseObject({
|
|
973
|
+
landline: z.looseObject({
|
|
974
|
+
deployment: DeploymentInfoResponse,
|
|
975
|
+
imb: z.union([ImbInfoResponse, z.null()]).optional(),
|
|
976
|
+
connection_status: ConnectionStatusResponse,
|
|
977
|
+
}),
|
|
978
|
+
}),
|
|
979
|
+
]);
|
|
980
|
+
const MobileInfoHttp = z.looseObject({
|
|
981
|
+
iccid: z.string().nullable().optional(),
|
|
982
|
+
data_monthly_quota: z.number().nullable().optional(),
|
|
983
|
+
});
|
|
984
|
+
const PhysicalDeploymentInfoHttp = z.looseObject({
|
|
985
|
+
deployment_wanted_date: z.string().nullable().optional(),
|
|
986
|
+
technical_visit_wanted_date: z.string().nullable().optional(),
|
|
987
|
+
});
|
|
988
|
+
const ImbInfoCurrentHttp = z.intersection(z.looseObject({
|
|
989
|
+
imb_id: z.string(),
|
|
990
|
+
pm_id: z.string(),
|
|
991
|
+
building_name: z.string(),
|
|
992
|
+
staircase_name: z.string(),
|
|
993
|
+
floor_name: z.string(),
|
|
994
|
+
l331_operator_code: z.string().nullable().optional(),
|
|
995
|
+
}), z.union([
|
|
996
|
+
z.looseObject({ pto_status: z.literal('no_pto') }),
|
|
997
|
+
z.looseObject({
|
|
998
|
+
pto_status: z.literal('add_pto_to_existing'),
|
|
999
|
+
pto: z.string().nullable(),
|
|
1000
|
+
}),
|
|
1001
|
+
z.looseObject({
|
|
1002
|
+
pto_status: z.literal('reuse_pto'),
|
|
1003
|
+
pto: z.string().nullable(),
|
|
1004
|
+
}),
|
|
1005
|
+
]));
|
|
1006
|
+
const PtoStatusHttp = z.union([
|
|
1007
|
+
z.looseObject({ status: z.literal('no_pto') }),
|
|
1008
|
+
z.looseObject({ status: z.literal('unknown_existing_pto') }),
|
|
1009
|
+
z.looseObject({ status: z.literal('existing_pto'), pto: z.string() }),
|
|
1010
|
+
]);
|
|
1011
|
+
const ImbInfoLegacyHttp = z.looseObject({
|
|
1012
|
+
imb_id: z.string(),
|
|
1013
|
+
pm_id: z.string(),
|
|
1014
|
+
pto_status: PtoStatusHttp,
|
|
1015
|
+
});
|
|
1016
|
+
const ImbInfoHttp = z.union([
|
|
1017
|
+
ImbInfoCurrentHttp,
|
|
1018
|
+
ImbInfoLegacyHttp,
|
|
1019
|
+
]);
|
|
1020
|
+
const EligibilityAddressHttp = z.looseObject({
|
|
1021
|
+
street_number: z.string(),
|
|
1022
|
+
street: z.string(),
|
|
1023
|
+
postal_code: z.string(),
|
|
1024
|
+
city: z.string(),
|
|
1025
|
+
addition_to_address: z.string().nullable().optional(),
|
|
1026
|
+
});
|
|
1027
|
+
const ConnectionInfoInfrastructureHttp = z.union([
|
|
1028
|
+
z.intersection(z.looseObject({ type: z.literal('mobile') }), MobileInfoHttp),
|
|
1029
|
+
z.looseObject({
|
|
1030
|
+
type: z.literal('landline'),
|
|
1031
|
+
deployment: PhysicalDeploymentInfoHttp,
|
|
1032
|
+
imb: z.union([ImbInfoHttp, z.null()]).optional(),
|
|
1033
|
+
custom_address: z.union([EligibilityAddressHttp, z.null()]).optional(),
|
|
1034
|
+
}),
|
|
1035
|
+
]);
|
|
1036
|
+
const L2RedundancyInfoDetailsResponse = z.union([
|
|
1037
|
+
z.looseObject({
|
|
1038
|
+
ActiveActive: z.looseObject({ poi_id: z.string(), poi_ref: z.string() }),
|
|
1039
|
+
}),
|
|
1040
|
+
z.looseObject({
|
|
1041
|
+
NominalBackup: z.looseObject({ poi_id: z.string(), poi_ref: z.string() }),
|
|
1042
|
+
}),
|
|
1043
|
+
]);
|
|
1044
|
+
const L2xInfoDetailsResponse = z.looseObject({
|
|
1045
|
+
poi_id: z.string(),
|
|
1046
|
+
poi_ref: z.string(),
|
|
1047
|
+
redundancy: z.union([L2RedundancyInfoDetailsResponse, z.null()]).optional(),
|
|
1048
|
+
});
|
|
1049
|
+
const L3IpAssignmentResponse = z.union([
|
|
1050
|
+
z.looseObject({
|
|
1051
|
+
type: z.literal('fixed'),
|
|
1052
|
+
assigned_ipv4: z.string().nullable().optional(),
|
|
1053
|
+
}),
|
|
1054
|
+
z.looseObject({ type: z.literal('dynamic') }),
|
|
1055
|
+
]);
|
|
1056
|
+
const L3OverXDetailsResponse = z.looseObject({
|
|
1057
|
+
virtual_backbone_id: z.string(),
|
|
1058
|
+
virtual_backbone_ref: z.string(),
|
|
1059
|
+
ip_assignment: L3IpAssignmentResponse,
|
|
1060
|
+
});
|
|
1061
|
+
const ConnectionInfoProtocolDetailsResponse = z.union([
|
|
1062
|
+
z.literal('l3'),
|
|
1063
|
+
z.looseObject({ l2x: z.union([L2xInfoDetailsResponse, z.null()]) }),
|
|
1064
|
+
z.looseObject({ l3_over_x: L3OverXDetailsResponse }),
|
|
1065
|
+
]);
|
|
1066
|
+
const L2xInfoSpecificHttp = z.union([
|
|
1067
|
+
z.looseObject({ vlan: z.number(), protocol: z.literal('l2') }),
|
|
1068
|
+
z.looseObject({ protocol: z.literal('l2tp') }),
|
|
1069
|
+
]);
|
|
1070
|
+
const RedundancyKindHttp = z.enum([
|
|
1071
|
+
'active_active',
|
|
1072
|
+
'nominal_backup',
|
|
1073
|
+
]);
|
|
1074
|
+
const L2RedundancyCompatHttp = z.looseObject({
|
|
1075
|
+
poi_customer_reference: z.string(),
|
|
1076
|
+
vlan: z.number(),
|
|
1077
|
+
redundancy_kind: RedundancyKindHttp,
|
|
1078
|
+
});
|
|
1079
|
+
const L2xInfoHttp = z.looseObject({
|
|
1080
|
+
poi_customer_reference: z.string(),
|
|
1081
|
+
specific: L2xInfoSpecificHttp,
|
|
1082
|
+
l2_redundancy: z.union([L2RedundancyCompatHttp, z.null()]).optional(),
|
|
1083
|
+
});
|
|
1084
|
+
const L3OverL2xInfoHttp = z.looseObject({
|
|
1085
|
+
virtual_backbone_reference: z.string().nullable().optional(),
|
|
1086
|
+
});
|
|
1087
|
+
const ConnectionInfoProtocolHttp = z.union([
|
|
1088
|
+
z.intersection(z.looseObject({ type: z.literal('l2x') }), L2xInfoHttp),
|
|
1089
|
+
z.intersection(z.looseObject({ type: z.literal('l3_over_l2x') }), L3OverL2xInfoHttp),
|
|
1090
|
+
z.looseObject({ type: z.literal('l3') }),
|
|
1091
|
+
]);
|
|
1092
|
+
const L3OverL2xInfoResponse = z.looseObject({
|
|
1093
|
+
virtual_backbone_reference: z.string().nullable().optional(),
|
|
1094
|
+
fixed_ip: z.boolean(),
|
|
1095
|
+
});
|
|
1096
|
+
const ConnectionInfoProtocolResponse = z.union([
|
|
1097
|
+
z.intersection(z.looseObject({ type: z.literal('l2x') }), L2xInfoHttp),
|
|
1098
|
+
z.intersection(z.looseObject({ type: z.literal('l3_over_l2x') }), L3OverL2xInfoResponse),
|
|
1099
|
+
z.looseObject({ type: z.literal('l3') }),
|
|
1100
|
+
]);
|
|
1101
|
+
const ConnectionInfoResponse = z.looseObject({
|
|
1102
|
+
protocol: ConnectionInfoProtocolResponse,
|
|
1103
|
+
infrastructure: ConnectionInfoInfrastructureHttp,
|
|
1104
|
+
});
|
|
1105
|
+
const ConnectionRequest = z.looseObject({
|
|
1106
|
+
protocol: ConnectionInfoProtocolHttp,
|
|
1107
|
+
infrastructure: ConnectionInfoInfrastructureHttp,
|
|
1108
|
+
});
|
|
1109
|
+
const ConnectionSpecificInfoDetailsResponse = z.looseObject({
|
|
1110
|
+
protocol: ConnectionInfoProtocolDetailsResponse,
|
|
1111
|
+
infrastructure: ConnectionInfoInfrastructureDetailsResponse,
|
|
1112
|
+
});
|
|
1113
|
+
const QuotaExtensionResponse = z.looseObject({
|
|
1114
|
+
extension_id: z.string(),
|
|
1115
|
+
volume_in_bytes: z.number(),
|
|
1116
|
+
});
|
|
1117
|
+
const ConsumptionAndQuotaWithServiceIdResponse = z.looseObject({
|
|
1118
|
+
service_id: z.string(),
|
|
1119
|
+
daily_volume_in_bytes: z.number(),
|
|
1120
|
+
monthly_volume_in_bytes: z.number(),
|
|
1121
|
+
monthly_quota_in_bytes: z.number(),
|
|
1122
|
+
extensions: z.array(QuotaExtensionResponse),
|
|
1123
|
+
});
|
|
1124
|
+
const ConsumptionHistoryValueResponse = z.looseObject({
|
|
1125
|
+
start_date: z.string(),
|
|
1126
|
+
end_date: z.string(),
|
|
1127
|
+
volume_in_bytes: z.number(),
|
|
1128
|
+
price: z.union([z.string(), z.number()]).nullable().optional(),
|
|
1129
|
+
});
|
|
1130
|
+
const ConsumptionStepHttp = z.enum(['Daily', 'Monthly']);
|
|
1131
|
+
const OpeningHoursHttp = z.looseObject({
|
|
1132
|
+
weekday: z.string(),
|
|
1133
|
+
from_hour: z.string(),
|
|
1134
|
+
to_hour: z.string(),
|
|
1135
|
+
});
|
|
1136
|
+
const ContactDetailsResponse = z.looseObject({
|
|
1137
|
+
contact_id: z.string(),
|
|
1138
|
+
name: z.string(),
|
|
1139
|
+
email: z.string(),
|
|
1140
|
+
phone: z.string(),
|
|
1141
|
+
address: z.string(),
|
|
1142
|
+
additional_details: z.string().nullable().optional(),
|
|
1143
|
+
opening_hours: z.array(OpeningHoursHttp),
|
|
1144
|
+
});
|
|
1145
|
+
const ContactReporterDetailsResponse = z.looseObject({
|
|
1146
|
+
contact_reporter_id: z.string(),
|
|
1147
|
+
name: z.string(),
|
|
1148
|
+
email: z.string(),
|
|
1149
|
+
phone: z.string().nullable().optional(),
|
|
1150
|
+
});
|
|
1151
|
+
const ContactRequest = z.looseObject({
|
|
1152
|
+
name: z.string(),
|
|
1153
|
+
email: z.string(),
|
|
1154
|
+
phone: z.string(),
|
|
1155
|
+
});
|
|
1156
|
+
const LocaleId = z.enum(['fr-FR', 'fr-CH', 'en-EN', 'en-US']);
|
|
1157
|
+
const LocaleHttp = z.looseObject({
|
|
1158
|
+
locale_id: LocaleId,
|
|
1159
|
+
name: z.string(),
|
|
1160
|
+
});
|
|
1161
|
+
const CountryHttp = z.looseObject({
|
|
1162
|
+
country_id: CountryId,
|
|
1163
|
+
name: z.string(),
|
|
1164
|
+
});
|
|
1165
|
+
const CurrencyId = z.enum([
|
|
1166
|
+
'EUR',
|
|
1167
|
+
'USD',
|
|
1168
|
+
'GBP',
|
|
1169
|
+
'CHF',
|
|
1170
|
+
'PLN',
|
|
1171
|
+
]);
|
|
1172
|
+
const CurrencyHttp = z.looseObject({
|
|
1173
|
+
currency_id: CurrencyId,
|
|
1174
|
+
name: z.string(),
|
|
1175
|
+
symbol: z.string(),
|
|
1176
|
+
});
|
|
1177
|
+
const TargetMarketHttp = z.enum([
|
|
1178
|
+
'service_operator',
|
|
1179
|
+
'general_availability',
|
|
1180
|
+
]);
|
|
1181
|
+
const ContractResponse = z.looseObject({
|
|
1182
|
+
id: z.string(),
|
|
1183
|
+
actor: ActorIdentifierResponse,
|
|
1184
|
+
name: z.string(),
|
|
1185
|
+
locale: LocaleHttp,
|
|
1186
|
+
country: CountryHttp,
|
|
1187
|
+
currency: CurrencyHttp,
|
|
1188
|
+
target_market: TargetMarketHttp,
|
|
1189
|
+
autoacceptance_of_new_version: z.boolean(),
|
|
1190
|
+
contractual_update_notice_delay: z.number(),
|
|
1191
|
+
back2back_prohibit: z.boolean(),
|
|
1192
|
+
is_public: z.boolean(),
|
|
1193
|
+
new_order_allowed_if_expired: z.boolean(),
|
|
1194
|
+
document_bundle_url: z.string().nullable().optional(),
|
|
1195
|
+
});
|
|
1196
|
+
const EventResponse = z.looseObject({
|
|
1197
|
+
description: z.string().nullable().optional(),
|
|
1198
|
+
name: z.string().nullable().optional(),
|
|
1199
|
+
date: z.string().nullable().optional(),
|
|
1200
|
+
});
|
|
1201
|
+
const TransitionResponse = z.looseObject({
|
|
1202
|
+
description: z.string().nullable().optional(),
|
|
1203
|
+
name: z.string().nullable().optional(),
|
|
1204
|
+
target_state_name: z.string().nullable().optional(),
|
|
1205
|
+
target_state_description: z.string().nullable().optional(),
|
|
1206
|
+
});
|
|
1207
|
+
const StateResponse = z.looseObject({
|
|
1208
|
+
history: z.array(EventResponse),
|
|
1209
|
+
transitions: z.array(TransitionResponse),
|
|
1210
|
+
});
|
|
1211
|
+
const OrderLineOptionApiResponse = z.looseObject({
|
|
1212
|
+
description: z.string().nullable().optional(),
|
|
1213
|
+
name: z.string(),
|
|
1214
|
+
variant_name: z.string(),
|
|
1215
|
+
variant_description: z.string().nullable().optional(),
|
|
1216
|
+
order_line_option_id: z.string(),
|
|
1217
|
+
product_option_variant_sku: z.string().nullable().optional(),
|
|
1218
|
+
features: ProductFeatureSetApiResponse,
|
|
1219
|
+
kind: ProductOptionTypeHttp,
|
|
1220
|
+
});
|
|
1221
|
+
const ProductKindResponse = z.union([
|
|
1222
|
+
z.enum(['generic', 'bundle']),
|
|
1223
|
+
z.looseObject({ catalog: CatalogProductResponse }),
|
|
1224
|
+
]);
|
|
1225
|
+
const OrderDiscountResponse = z.looseObject({
|
|
1226
|
+
initial_price: z.union([z.string(), z.number()]).nullable().optional(),
|
|
1227
|
+
price_with_offer: z.union([z.string(), z.number()]).nullable().optional(),
|
|
1228
|
+
discount: z.union([HttpDiscount, z.null()]).optional(),
|
|
1229
|
+
});
|
|
1230
|
+
const OrderLineDiscountsResponse = z.looseObject({
|
|
1231
|
+
access_fee: OrderDiscountResponse,
|
|
1232
|
+
recurring_price: OrderDiscountResponse,
|
|
1233
|
+
});
|
|
1234
|
+
const OrderPortabilityType = z.enum([
|
|
1235
|
+
'Partial',
|
|
1236
|
+
'PartialComplex',
|
|
1237
|
+
'Total',
|
|
1238
|
+
]);
|
|
1239
|
+
const PortabilityRoutingHttp = z.union([
|
|
1240
|
+
z.literal('routing_on_prefix'),
|
|
1241
|
+
z.looseObject({ sip_trunk_c5: z.looseObject({ service_id: z.string() }) }),
|
|
1242
|
+
]);
|
|
1243
|
+
const PortabilityInfoResponse = z.looseObject({
|
|
1244
|
+
idn: z.string(),
|
|
1245
|
+
rio_or_did: RioOrDid,
|
|
1246
|
+
wanted_date: z.string(),
|
|
1247
|
+
comments: z.string().nullable().optional(),
|
|
1248
|
+
portability_type: OrderPortabilityType,
|
|
1249
|
+
prefix_service_id: z.string(),
|
|
1250
|
+
routing: PortabilityRoutingHttp,
|
|
1251
|
+
});
|
|
1252
|
+
const RoutingProfile = z.string();
|
|
1253
|
+
const SipTrunkC4InfoResponse = z.looseObject({
|
|
1254
|
+
allowed_ips: z.array(z.string()).nullable().optional(),
|
|
1255
|
+
routing_profile: RoutingProfile,
|
|
1256
|
+
authentication_ips: z.array(z.string()).nullable().optional(),
|
|
1257
|
+
login_password_authentication: z.boolean(),
|
|
1258
|
+
});
|
|
1259
|
+
const EmergencyAddress = z.looseObject({
|
|
1260
|
+
street_number: z.string().nullable().optional(),
|
|
1261
|
+
street: z.string(),
|
|
1262
|
+
zip_code: z.string(),
|
|
1263
|
+
city: z.string(),
|
|
1264
|
+
addition_to_address: z.string().nullable().optional(),
|
|
1265
|
+
insee_code: z.string(),
|
|
1266
|
+
});
|
|
1267
|
+
const SipTrunkC5InfoResponse = z.looseObject({
|
|
1268
|
+
idn: z.string(),
|
|
1269
|
+
emergency_address: EmergencyAddress,
|
|
1270
|
+
});
|
|
1271
|
+
const PrefixHostingInfoResponse = z.looseObject({
|
|
1272
|
+
sip_trunk_reference: z.string().nullable().optional(),
|
|
1273
|
+
number: z.string(),
|
|
1274
|
+
});
|
|
1275
|
+
const GenericInfoResponse = z.looseObject({
|
|
1276
|
+
product_category: ProductCategoryHttp,
|
|
1277
|
+
});
|
|
1278
|
+
const ProductResponse = z.intersection(z.looseObject({
|
|
1279
|
+
ordered_product_id: z.string(),
|
|
1280
|
+
order_line_id: z.string(),
|
|
1281
|
+
name: z.string(),
|
|
1282
|
+
features: ProductFeatureSetApiResponse,
|
|
1283
|
+
state: StateResponse,
|
|
1284
|
+
options: z.array(OrderLineOptionApiResponse),
|
|
1285
|
+
product_category: ProductCategoryHttp,
|
|
1286
|
+
service_id: z.string().nullable().optional(),
|
|
1287
|
+
kind: ProductKindResponse,
|
|
1288
|
+
discounts: OrderLineDiscountsResponse,
|
|
1289
|
+
}), z.union([
|
|
1290
|
+
z.looseObject({ connection: ConnectionInfoResponse }),
|
|
1291
|
+
z.looseObject({ portability: PortabilityInfoResponse }),
|
|
1292
|
+
z.looseObject({ sip_trunk_c4: SipTrunkC4InfoResponse }),
|
|
1293
|
+
z.looseObject({ sip_trunk_c5: SipTrunkC5InfoResponse }),
|
|
1294
|
+
z.looseObject({ prefix_hosting: PrefixHostingInfoResponse }),
|
|
1295
|
+
z.looseObject({ generic: GenericInfoResponse }),
|
|
1296
|
+
z.looseObject({ arcep_slice_hosting: ArcepSliceHostingHttp }),
|
|
1297
|
+
]));
|
|
1298
|
+
const ContractVersionProductBaseResponse = z.looseObject({
|
|
1299
|
+
description: z.string().nullable().optional(),
|
|
1300
|
+
contract_version_product_id: z.string(),
|
|
1301
|
+
name: z.string(),
|
|
1302
|
+
product: ProductResponse,
|
|
1303
|
+
published_at: z.string().nullable().optional(),
|
|
1304
|
+
});
|
|
1305
|
+
const PriceFormattingValueHttp = z.enum([
|
|
1306
|
+
'round_to_euro',
|
|
1307
|
+
'truncate_to_euro',
|
|
1308
|
+
'truncate_to_99cents',
|
|
1309
|
+
'truncate_to_90cents',
|
|
1310
|
+
]);
|
|
1311
|
+
const MarginStepHttp = z.looseObject({
|
|
1312
|
+
format: z.union([PriceFormattingValueHttp, z.null()]).optional(),
|
|
1313
|
+
percentage: z.union([z.string(), z.number()]),
|
|
1314
|
+
additional: z.union([z.string(), z.number()]),
|
|
1315
|
+
min: z.union([z.string(), z.number()]),
|
|
1316
|
+
max: z.union([z.string(), z.number()]),
|
|
1317
|
+
});
|
|
1318
|
+
const MarginGroupHttp = z.looseObject({
|
|
1319
|
+
format: z.union([PriceFormattingValueHttp, z.null()]).optional(),
|
|
1320
|
+
percentage: z.union([z.string(), z.number()]),
|
|
1321
|
+
additional: z.union([z.string(), z.number()]),
|
|
1322
|
+
steps: z.array(MarginStepHttp),
|
|
1323
|
+
});
|
|
1324
|
+
const ContractVersionProductProxyResponse = z.looseObject({
|
|
1325
|
+
base: ContractVersionProductBaseResponse,
|
|
1326
|
+
current_parent_contract_version_product_id: z.string().nullable().optional(),
|
|
1327
|
+
recurring_price_margins: MarginGroupHttp,
|
|
1328
|
+
access_fee_margins: MarginGroupHttp,
|
|
1329
|
+
proxy_only_l3: z.boolean(),
|
|
1330
|
+
add_internet: z.boolean(),
|
|
1331
|
+
});
|
|
1332
|
+
const VariantResponse = z.looseObject({
|
|
1333
|
+
variation_id: z.string(),
|
|
1334
|
+
contract_version_product_id: z.string(),
|
|
1335
|
+
name: z.string(),
|
|
1336
|
+
admin_name: z.string().nullable().optional(),
|
|
1337
|
+
sku: z.string().nullable().optional(),
|
|
1338
|
+
is_default: z.boolean(),
|
|
1339
|
+
product_feature_set: ProductFeatureSetApiResponse,
|
|
1340
|
+
});
|
|
1341
|
+
const ProductFeatureHttp = z.enum([
|
|
1342
|
+
'debit_down_guaranteed',
|
|
1343
|
+
'debit_up_guaranteed',
|
|
1344
|
+
'billing_periodicity',
|
|
1345
|
+
'recurring_price',
|
|
1346
|
+
'access_fee',
|
|
1347
|
+
'commitment_duration',
|
|
1348
|
+
'debit_down_max',
|
|
1349
|
+
'debit_up_max',
|
|
1350
|
+
'recovery_time_guarantee',
|
|
1351
|
+
'intervention_time_guarantee',
|
|
1352
|
+
'guaranteed_recovery_time_trigger_threshold',
|
|
1353
|
+
'interface_type',
|
|
1354
|
+
'is_sellable',
|
|
1355
|
+
'sold_only_as_option',
|
|
1356
|
+
'latency_guarantee',
|
|
1357
|
+
'payment_term',
|
|
1358
|
+
'acquisition_type',
|
|
1359
|
+
'legal_deployment_delay',
|
|
1360
|
+
'packet_loss_max',
|
|
1361
|
+
'infrastructure_encryption',
|
|
1362
|
+
'gdpr',
|
|
1363
|
+
'european_communication_code_compliance',
|
|
1364
|
+
'grt_exceed_penalty',
|
|
1365
|
+
'mis_exceed_penalty',
|
|
1366
|
+
'deployment_delay_exceed_penalty',
|
|
1367
|
+
'broadband_network_gateway_protocol',
|
|
1368
|
+
'packet_loss_exceed_penalty',
|
|
1369
|
+
'back2back_prohibit',
|
|
1370
|
+
'copper_pair_number',
|
|
1371
|
+
'tariff_zone',
|
|
1372
|
+
'simultaneous_channel_number',
|
|
1373
|
+
'input_channel_number',
|
|
1374
|
+
'output_channel_number',
|
|
1375
|
+
'estimated_deployment_delay',
|
|
1376
|
+
'delivery_protocol',
|
|
1377
|
+
'external_product_reference',
|
|
1378
|
+
'collection_region',
|
|
1379
|
+
'mtu',
|
|
1380
|
+
'final_customer_sae_vlan',
|
|
1381
|
+
'service_access_specs_url',
|
|
1382
|
+
'mobile_network_technology',
|
|
1383
|
+
'vertical_eligibility_needed',
|
|
1384
|
+
'voip_tariff_list_id',
|
|
1385
|
+
'mobile_data_tariff_list_id',
|
|
1386
|
+
'mobile_voip_tariff_list_id',
|
|
1387
|
+
'voip_teams_interconnect',
|
|
1388
|
+
'otp_reference_needed',
|
|
1389
|
+
'tariff_list_url',
|
|
1390
|
+
'pack_of_n_items',
|
|
1391
|
+
'appointment_worker_id',
|
|
1392
|
+
'national_collection',
|
|
1393
|
+
'offer_validity_duration',
|
|
1394
|
+
'poi_collection_scope',
|
|
1395
|
+
'collection_compatibility_key',
|
|
1396
|
+
'hno',
|
|
1397
|
+
'sms',
|
|
1398
|
+
'voice',
|
|
1399
|
+
'vas',
|
|
1400
|
+
'cidr_length',
|
|
1401
|
+
'building_operators_l331_allowing_multiple_pto',
|
|
1402
|
+
'redundancy',
|
|
1403
|
+
'discounted_access_fee',
|
|
1404
|
+
'discounted_recurring_price',
|
|
1405
|
+
'discount_duration_months',
|
|
1406
|
+
'discount_start',
|
|
1407
|
+
'discount_end',
|
|
1408
|
+
'require_mobile_phone_number_for_order',
|
|
1409
|
+
'max_connection_bandwidth',
|
|
1410
|
+
'max_quantity_per_order',
|
|
1411
|
+
'esim',
|
|
1412
|
+
'ip_address_version',
|
|
1413
|
+
'ip_address_kind',
|
|
1414
|
+
'default_apn',
|
|
1415
|
+
'pay_as_you_go',
|
|
1416
|
+
'data_quota_bytes_per_mobile_area',
|
|
1417
|
+
'data_quota_commercial_name',
|
|
1418
|
+
'disable_prorata_on_volume',
|
|
1419
|
+
'is_for_mobile_backup_only',
|
|
1420
|
+
'is_cpe_management_connection',
|
|
1421
|
+
'esignature_template_id',
|
|
1422
|
+
'wazo_licence_level',
|
|
1423
|
+
'voip_wazo_interconnect',
|
|
1424
|
+
'fixed_ip',
|
|
1425
|
+
'sip_trunk_required',
|
|
1426
|
+
]);
|
|
1427
|
+
const ContractVersionProductStaticResponse = z.looseObject({
|
|
1428
|
+
base: ContractVersionProductBaseResponse,
|
|
1429
|
+
product_feature_set: ProductFeatureSetApiResponse,
|
|
1430
|
+
variants: z.array(VariantResponse).nullable().optional(),
|
|
1431
|
+
varying_features: z.array(ProductFeatureHttp),
|
|
1432
|
+
});
|
|
1433
|
+
const CoordinatesQueryApi = z.looseObject({
|
|
1434
|
+
latitude: z.string(),
|
|
1435
|
+
longitude: z.string(),
|
|
1436
|
+
});
|
|
1437
|
+
const CreateCartContextRequest = z.union([
|
|
1438
|
+
z.literal('buyer'),
|
|
1439
|
+
z.looseObject({
|
|
1440
|
+
seller: z.looseObject({
|
|
1441
|
+
description: z.string().nullable().optional(),
|
|
1442
|
+
buyer_customer_record_id: z.string().nullable().optional(),
|
|
1443
|
+
}),
|
|
1444
|
+
}),
|
|
1445
|
+
]);
|
|
1446
|
+
const CreateContactRequest = z.looseObject({
|
|
1447
|
+
name: z.string(),
|
|
1448
|
+
email: z.string(),
|
|
1449
|
+
phone: z.string(),
|
|
1450
|
+
address: z.string(),
|
|
1451
|
+
additional_details: z.string().nullable().optional(),
|
|
1452
|
+
opening_hours: z.array(OpeningHoursHttp),
|
|
1453
|
+
});
|
|
1454
|
+
const MailingAddressHttp = z.looseObject({
|
|
1455
|
+
name: z.string().nullable().optional(),
|
|
1456
|
+
first_name: z.string().nullable().optional(),
|
|
1457
|
+
last_name: z.string().nullable().optional(),
|
|
1458
|
+
street_number: z.string().nullable().optional(),
|
|
1459
|
+
street: z.string(),
|
|
1460
|
+
zip_code: z.string(),
|
|
1461
|
+
city: z.string(),
|
|
1462
|
+
addition_to_address: z.string().nullable().optional(),
|
|
1463
|
+
});
|
|
1464
|
+
const CustomerSignerHttp = z.looseObject({
|
|
1465
|
+
first_name: z.string(),
|
|
1466
|
+
last_name: z.string(),
|
|
1467
|
+
job_title: z.string(),
|
|
1468
|
+
email: z.string(),
|
|
1469
|
+
phone: z.string(),
|
|
1470
|
+
});
|
|
1471
|
+
const CustomerRequest = z.looseObject({
|
|
1472
|
+
name: z.string(),
|
|
1473
|
+
company_number: z.string(),
|
|
1474
|
+
share_capital: z.union([z.string(), z.number()]).nullable().optional(),
|
|
1475
|
+
company_type: z.union([CompanyTypeHttp, z.null()]).optional(),
|
|
1476
|
+
customer_location: z.union([CustomerLocationHttp, z.null()]).optional(),
|
|
1477
|
+
extra_building: z.string().nullable().optional(),
|
|
1478
|
+
extra_residence: z.string().nullable().optional(),
|
|
1479
|
+
extra_floor: z.string().nullable().optional(),
|
|
1480
|
+
extra_door: z.string().nullable().optional(),
|
|
1481
|
+
extra_stair: z.string().nullable().optional(),
|
|
1482
|
+
mailing_address: z.union([MailingAddressHttp, z.null()]).optional(),
|
|
1483
|
+
customer_signer: z.union([CustomerSignerHttp, z.null()]).optional(),
|
|
1484
|
+
});
|
|
1485
|
+
const EndCustomerRequest = z.looseObject({
|
|
1486
|
+
end_customer_id: z.string(),
|
|
1487
|
+
end_customer_location_id: z.string(),
|
|
1488
|
+
mailing_address: z.union([MailingAddressHttp, z.null()]).optional(),
|
|
1489
|
+
});
|
|
1490
|
+
const PointOfInterconnectionRequest = z.looseObject({
|
|
1491
|
+
reference: z.string(),
|
|
1492
|
+
cpe_hostname: z.string(),
|
|
1493
|
+
cpe_customer_hostname: z.string().nullable().optional(),
|
|
1494
|
+
fallback: z.boolean(),
|
|
1495
|
+
});
|
|
1496
|
+
const SipTrunkC4Request = z.looseObject({
|
|
1497
|
+
authentication_ips: z.array(z.string()).nullable().optional(),
|
|
1498
|
+
allowed_ips: z.array(z.string()).nullable().optional(),
|
|
1499
|
+
routing_profile: RoutingProfile.optional(),
|
|
1500
|
+
idn: z.string(),
|
|
1501
|
+
login_password_authentication: z.boolean(),
|
|
1502
|
+
block_threshold_hourly: z.number().nullable().optional(),
|
|
1503
|
+
});
|
|
1504
|
+
const SipTrunkC5Request = z.looseObject({
|
|
1505
|
+
idn: z.string(),
|
|
1506
|
+
emergency_address: EmergencyAddress,
|
|
1507
|
+
allowed_ips: z.array(z.string()).nullable().optional(),
|
|
1508
|
+
routing_profile: RoutingProfile.optional(),
|
|
1509
|
+
block_threshold_hourly: z.number().nullable().optional(),
|
|
1510
|
+
});
|
|
1511
|
+
const PrefixHostingRequest = z.looseObject({
|
|
1512
|
+
sip_trunk_reference: z.string().nullable().optional(),
|
|
1513
|
+
number: z.string(),
|
|
1514
|
+
operator_code_id: z.string(),
|
|
1515
|
+
});
|
|
1516
|
+
const PortabilityRequest = z.looseObject({
|
|
1517
|
+
prefix_service_id: z.string(),
|
|
1518
|
+
routing: PortabilityRoutingHttp,
|
|
1519
|
+
});
|
|
1520
|
+
const ProductSpecificAttributes = z.union([
|
|
1521
|
+
z.looseObject({ connection: ConnectionRequest }),
|
|
1522
|
+
z.looseObject({ point_of_interconnection: PointOfInterconnectionRequest }),
|
|
1523
|
+
z.looseObject({ sip_trunk_c4: SipTrunkC4Request }),
|
|
1524
|
+
z.looseObject({ sip_trunk_c5: SipTrunkC5Request }),
|
|
1525
|
+
z.looseObject({ prefix_hosting: PrefixHostingRequest }),
|
|
1526
|
+
z.looseObject({ arcep_slice_hosting: ArcepSliceHostingHttp }),
|
|
1527
|
+
z.looseObject({ portability: PortabilityRequest }),
|
|
1528
|
+
]);
|
|
1529
|
+
const CreateOrderLineRequest = z.intersection(z.looseObject({
|
|
1530
|
+
cart_line_id: z.string(),
|
|
1531
|
+
customer: z.union([CustomerRequest, z.null()]).optional(),
|
|
1532
|
+
end_customer: z.union([EndCustomerRequest, z.null()]).optional(),
|
|
1533
|
+
contact: z.union([ContactRequest, z.null()]).optional(),
|
|
1534
|
+
comment: z.string().nullable().optional(),
|
|
1535
|
+
attributes: z.union([ProductSpecificAttributes, z.null()]).optional(),
|
|
1536
|
+
}), z.union([
|
|
1537
|
+
z.looseObject({
|
|
1538
|
+
customer: z.looseObject({}),
|
|
1539
|
+
end_customer: z.null().nullable().optional(),
|
|
1540
|
+
}),
|
|
1541
|
+
z.looseObject({
|
|
1542
|
+
end_customer: z.looseObject({}),
|
|
1543
|
+
customer: z.null().nullable().optional(),
|
|
1544
|
+
}),
|
|
1545
|
+
]));
|
|
1546
|
+
const CustomFieldHttp = z.looseObject({
|
|
1547
|
+
custom_field_id: z.string(),
|
|
1548
|
+
actor_id: z.string(),
|
|
1549
|
+
custom_field_key: z.string(),
|
|
1550
|
+
custom_field_value: z.string().nullable().optional(),
|
|
1551
|
+
});
|
|
1552
|
+
const CustomerAddress = z.looseObject({
|
|
1553
|
+
street_number: z.string().nullable().optional(),
|
|
1554
|
+
street: z.string(),
|
|
1555
|
+
locality: z.string().nullable().optional(),
|
|
1556
|
+
city: z.string(),
|
|
1557
|
+
zip_code: z.string(),
|
|
1558
|
+
building: z.string().nullable().optional(),
|
|
1559
|
+
floor: z.string().nullable().optional(),
|
|
1560
|
+
stair: z.string().nullable().optional(),
|
|
1561
|
+
door: z.string().nullable().optional(),
|
|
1562
|
+
residence: z.string().nullable().optional(),
|
|
1563
|
+
});
|
|
1564
|
+
const CustomerAddressResponse = z.looseObject({
|
|
1565
|
+
street_number: z.string().nullable().optional(),
|
|
1566
|
+
street: z.string().nullable().optional(),
|
|
1567
|
+
zip_code: z.string().nullable().optional(),
|
|
1568
|
+
city: z.string().nullable().optional(),
|
|
1569
|
+
});
|
|
1570
|
+
const CustomerContact = z.looseObject({
|
|
1571
|
+
name: z.string(),
|
|
1572
|
+
email: z.string(),
|
|
1573
|
+
phone: z.string(),
|
|
1574
|
+
});
|
|
1575
|
+
const MailingAddressResponse = z.looseObject({
|
|
1576
|
+
name: z.string().nullable().optional(),
|
|
1577
|
+
first_name: z.string().nullable().optional(),
|
|
1578
|
+
last_name: z.string().nullable().optional(),
|
|
1579
|
+
street_number: z.string().nullable().optional(),
|
|
1580
|
+
street: z.string(),
|
|
1581
|
+
zip_code: z.string(),
|
|
1582
|
+
city: z.string(),
|
|
1583
|
+
addition_to_address: z.string().nullable().optional(),
|
|
1584
|
+
});
|
|
1585
|
+
const CustomerResponse = z.looseObject({
|
|
1586
|
+
name: z.string(),
|
|
1587
|
+
company_number: z.string(),
|
|
1588
|
+
company_type: z.union([CompanyTypeHttp, z.null()]).optional(),
|
|
1589
|
+
share_capital: z.union([z.string(), z.number()]).nullable().optional(),
|
|
1590
|
+
address: AddressHttp.optional(),
|
|
1591
|
+
preferred_address: z.union([AddressHttp, z.null()]).optional(),
|
|
1592
|
+
idn: z.string().nullable().optional(),
|
|
1593
|
+
coordinates: z.union([CoordinatesHttp, z.null()]).optional(),
|
|
1594
|
+
mailing_address: z.union([MailingAddressResponse, z.null()]).optional(),
|
|
1595
|
+
customer_signer: z.union([CustomerSignerHttp, z.null()]).optional(),
|
|
1596
|
+
});
|
|
1597
|
+
const EligibilityFtthPayload = z.looseObject({
|
|
1598
|
+
imb_ref: z.string(),
|
|
1599
|
+
});
|
|
1600
|
+
const EligibilityGeocodeAddressContentApi = z.looseObject({
|
|
1601
|
+
raw_address: z.string(),
|
|
1602
|
+
});
|
|
1603
|
+
const EligibilityGeocodeCoordinatesContentApi = z.looseObject({ coordinates: Coordinates });
|
|
1604
|
+
const EligibilityGeocodeImbContentApi = z.looseObject({
|
|
1605
|
+
imb: z.string(),
|
|
1606
|
+
});
|
|
1607
|
+
const EligibilityGeocodePhoneContentApi = z.looseObject({
|
|
1608
|
+
phone: z.string(),
|
|
1609
|
+
});
|
|
1610
|
+
const EligibilityGeocodeSignedContentApi = z.looseObject({
|
|
1611
|
+
imb: z.string().nullable().optional(),
|
|
1612
|
+
phone: z.union([PhoneNumberStatus, z.null()]).optional(),
|
|
1613
|
+
signed: AddressWithSignature,
|
|
1614
|
+
});
|
|
1615
|
+
const EligibilityGeocodedResultStatusApi = z.enum([
|
|
1616
|
+
'Valid',
|
|
1617
|
+
'Incomplete',
|
|
1618
|
+
]);
|
|
1619
|
+
const EligibilityKeyApi = z.looseObject({
|
|
1620
|
+
eligibility_id: z.string(),
|
|
1621
|
+
partitioning_date: z.string(),
|
|
1622
|
+
});
|
|
1623
|
+
const OfferType = z.enum(['enterprise', 'professional']);
|
|
1624
|
+
const EligibilityInfo = z.looseObject({
|
|
1625
|
+
eligibility_key: EligibilityKeyApi,
|
|
1626
|
+
address: AddressDetails,
|
|
1627
|
+
offer_type: z.union([OfferType, z.null()]).optional(),
|
|
1628
|
+
requested_at: z.string(),
|
|
1629
|
+
coordinates: Coordinates,
|
|
1630
|
+
});
|
|
1631
|
+
const EligibilityListNdiInputTypeApi = z.enum([
|
|
1632
|
+
'raw_address',
|
|
1633
|
+
'detailed_address',
|
|
1634
|
+
'coordinates',
|
|
1635
|
+
'imb',
|
|
1636
|
+
'phone',
|
|
1637
|
+
]);
|
|
1638
|
+
const EligibilityProductEntity = z.looseObject({
|
|
1639
|
+
entity_id: z.string(),
|
|
1640
|
+
variant_id: z.string().nullable().optional(),
|
|
1641
|
+
name: z.string(),
|
|
1642
|
+
sku: z.string().nullable().optional(),
|
|
1643
|
+
access_fee: z.union([z.string(), z.number()]).nullable().optional(),
|
|
1644
|
+
access_fee_on_quotation: z.boolean().nullable().optional(),
|
|
1645
|
+
acquisition_type: z.union([AcquisitionTypeHttp, z.null()]).optional(),
|
|
1646
|
+
billing_periodicity: z.number().nullable().optional(),
|
|
1647
|
+
broadband_network_gateway_protocol: z
|
|
1648
|
+
.union([BroadbandNetworkGatewayProtocolHttp, z.null()])
|
|
1649
|
+
.optional(),
|
|
1650
|
+
commitment_duration: z.number().nullable().optional(),
|
|
1651
|
+
debit_down_guaranteed: z
|
|
1652
|
+
.union([z.string(), z.number()])
|
|
1653
|
+
.nullable()
|
|
1654
|
+
.optional(),
|
|
1655
|
+
debit_down_max: z.union([z.string(), z.number()]).nullable().optional(),
|
|
1656
|
+
debit_up_guaranteed: z.union([z.string(), z.number()]).nullable().optional(),
|
|
1657
|
+
debit_up_max: z.union([z.string(), z.number()]).nullable().optional(),
|
|
1658
|
+
deployment_delay_exceed_penalty: z.array(PenaltyHttp).nullable().optional(),
|
|
1659
|
+
european_communication_code_compliance: z
|
|
1660
|
+
.union([ComplianceLevelHttp, z.null()])
|
|
1661
|
+
.optional(),
|
|
1662
|
+
gdpr: z.union([ComplianceLevelHttp, z.null()]).optional(),
|
|
1663
|
+
grt_exceed_penalty: z.array(PenaltyHttp).nullable().optional(),
|
|
1664
|
+
grt_trigger_threshold: z
|
|
1665
|
+
.union([z.string(), z.number()])
|
|
1666
|
+
.nullable()
|
|
1667
|
+
.optional(),
|
|
1668
|
+
infra_provider: z.string().nullable().optional(),
|
|
1669
|
+
infrastructure_encryption: z.boolean().nullable().optional(),
|
|
1670
|
+
infrastructure_encryption_comment: z.string().nullable().optional(),
|
|
1671
|
+
interface_type: z.union([InterfaceTypeHttp, z.null()]).optional(),
|
|
1672
|
+
intervention_time_guaranteed_delay: z.string().nullable().optional(),
|
|
1673
|
+
intervention_time_guaranteed_applicability: z
|
|
1674
|
+
.union([ApplicabilityHttp, z.null()])
|
|
1675
|
+
.optional(),
|
|
1676
|
+
is_sellable: z.boolean().nullable().optional(),
|
|
1677
|
+
latency_guarantee: z.number().nullable().optional(),
|
|
1678
|
+
legal_deployment_delay: z.string().nullable().optional(),
|
|
1679
|
+
mis_exceed_penalty: z.array(PenaltyHttp).nullable().optional(),
|
|
1680
|
+
packet_loss_exceed_penalty: z.array(PenaltyHttp).nullable().optional(),
|
|
1681
|
+
packet_loss_max: z.union([z.string(), z.number()]).nullable().optional(),
|
|
1682
|
+
payment_term: z.union([PaymentTermHttp, z.null()]).optional(),
|
|
1683
|
+
recovery_time_guaranteed_delay: z.string().nullable().optional(),
|
|
1684
|
+
recovery_time_guaranteed_applicability: z
|
|
1685
|
+
.union([ApplicabilityHttp, z.null()])
|
|
1686
|
+
.optional(),
|
|
1687
|
+
recurring_price: z.union([z.string(), z.number()]).nullable().optional(),
|
|
1688
|
+
recurring_price_on_quotation: z.boolean().nullable().optional(),
|
|
1689
|
+
sold_only_as_option: z.boolean().nullable().optional(),
|
|
1690
|
+
back2back_prohibit: z.boolean().nullable().optional(),
|
|
1691
|
+
tariff_zone: z.string().nullable().optional(),
|
|
1692
|
+
copper_pair_number: z.union([CopperPairNumberHttp, z.null()]).optional(),
|
|
1693
|
+
simultaneous_channel_number: z.number().nullable().optional(),
|
|
1694
|
+
input_channel_number: z.number().nullable().optional(),
|
|
1695
|
+
output_channel_number: z.number().nullable().optional(),
|
|
1696
|
+
estimated_deployment_delay: z.string().nullable().optional(),
|
|
1697
|
+
external_product_reference: z.string().nullable().optional(),
|
|
1698
|
+
white_label: z.boolean().nullable().optional(),
|
|
1699
|
+
cancellation_notice: z.string().nullable().optional(),
|
|
1700
|
+
collection_region: z.string().nullable().optional(),
|
|
1701
|
+
delivery_protocol: z.union([DeliveryProtocolHttp, z.null()]).optional(),
|
|
1702
|
+
mtu: z.number().nullable().optional(),
|
|
1703
|
+
final_customer_sae_vlan: z.number().nullable().optional(),
|
|
1704
|
+
service_access_specs_url: z.string().nullable().optional(),
|
|
1705
|
+
data_quota_commercial_name: z.string().nullable().optional(),
|
|
1706
|
+
data_quota_bytes_per_mobile_area: z
|
|
1707
|
+
.object({})
|
|
1708
|
+
.catchall(DataQuotaValueHttp)
|
|
1709
|
+
.nullable()
|
|
1710
|
+
.optional(),
|
|
1711
|
+
pay_as_you_go: z.boolean().nullable().optional(),
|
|
1712
|
+
mobile_network_technology: z
|
|
1713
|
+
.union([MobileNetworkTechnologyHttp, z.null()])
|
|
1714
|
+
.optional(),
|
|
1715
|
+
vertical_eligibility_needed: z.boolean().nullable().optional(),
|
|
1716
|
+
voip_tariff_list_id: z.string().nullable().optional(),
|
|
1717
|
+
mobile_data_tariff_list_id: z.string().nullable().optional(),
|
|
1718
|
+
mobile_voip_tariff_list_id: z.string().nullable().optional(),
|
|
1719
|
+
mobile_sms_tariff_list_id: z.string().nullable().optional(),
|
|
1720
|
+
mobile_mms_tariff_list_id: z.string().nullable().optional(),
|
|
1721
|
+
voip_teams_interconnect: z.boolean().nullable().optional(),
|
|
1722
|
+
otp_reference_needed: z.boolean().nullable().optional(),
|
|
1723
|
+
tariff_list_url: z.string().nullable().optional(),
|
|
1724
|
+
pack_of_n_items: z.number().nullable().optional(),
|
|
1725
|
+
appointment_worker_id: z.string().nullable().optional(),
|
|
1726
|
+
cpe_model_id: z.string().nullable().optional(),
|
|
1727
|
+
national_collection: z.boolean().nullable().optional(),
|
|
1728
|
+
offer_validity_duration: z.string().nullable().optional(),
|
|
1729
|
+
poi_collection_scope: z.union([PoiCollectionScopeHttp, z.null()]).optional(),
|
|
1730
|
+
collection_compatibility_key: z.array(z.string()).nullable().optional(),
|
|
1731
|
+
hno: z.union([HnoHttp, z.null()]).optional(),
|
|
1732
|
+
voice: z.boolean().nullable().optional(),
|
|
1733
|
+
vas: z.boolean().nullable().optional(),
|
|
1734
|
+
sms: z.boolean().nullable().optional(),
|
|
1735
|
+
cidr_length: z.number().nullable().optional(),
|
|
1736
|
+
building_operators_l331_allowing_multiple_pto: z
|
|
1737
|
+
.array(z.string())
|
|
1738
|
+
.nullable()
|
|
1739
|
+
.optional(),
|
|
1740
|
+
redundancy: z.union([RedundancyHttp, z.null()]).optional(),
|
|
1741
|
+
discounted_access_fee: z
|
|
1742
|
+
.union([z.string(), z.number()])
|
|
1743
|
+
.nullable()
|
|
1744
|
+
.optional(),
|
|
1745
|
+
discounted_recurring_price: z
|
|
1746
|
+
.union([z.string(), z.number()])
|
|
1747
|
+
.nullable()
|
|
1748
|
+
.optional(),
|
|
1749
|
+
discount_duration_months: z.number().nullable().optional(),
|
|
1750
|
+
discount_start: z.string().nullable().optional(),
|
|
1751
|
+
discount_end: z.string().nullable().optional(),
|
|
1752
|
+
require_mobile_phone_number_for_order: z.boolean().nullable().optional(),
|
|
1753
|
+
max_connection_bandwidth: z
|
|
1754
|
+
.union([z.string(), z.number()])
|
|
1755
|
+
.nullable()
|
|
1756
|
+
.optional(),
|
|
1757
|
+
max_quantity_per_order: z.number().nullable().optional(),
|
|
1758
|
+
esim: z.boolean().nullable().optional(),
|
|
1759
|
+
ip_address_kind: z.union([IpAddressKindHttp, z.null()]).optional(),
|
|
1760
|
+
ip_address_version: z.union([IpAddressVersionHttp, z.null()]).optional(),
|
|
1761
|
+
enable_nsce: z.boolean().nullable().optional(),
|
|
1762
|
+
disable_prorata_on_volume: z.boolean().nullable().optional(),
|
|
1763
|
+
default_apn: z.union([ApnHttp, z.null()]).optional(),
|
|
1764
|
+
is_for_mobile_backup_only: z.boolean().nullable().optional(),
|
|
1765
|
+
is_cpe_management_connection: z.boolean().nullable().optional(),
|
|
1766
|
+
esignature_template_id: z.string().nullable().optional(),
|
|
1767
|
+
wazo_licence_level: z.union([WazoLicenceLevelHttp, z.null()]).optional(),
|
|
1768
|
+
voip_wazo_interconnect: z.boolean().nullable().optional(),
|
|
1769
|
+
fixed_ip: z.boolean().nullable().optional(),
|
|
1770
|
+
sip_trunk_required: z.boolean().nullable().optional(),
|
|
1771
|
+
});
|
|
1772
|
+
const ProductOptionVariantResponse = z.looseObject({
|
|
1773
|
+
description: z.string().nullable().optional(),
|
|
1774
|
+
product_option_variant_id: z.string(),
|
|
1775
|
+
product_feature_set: ProductFeatureSetApiResponse,
|
|
1776
|
+
sku: z.string().nullable().optional(),
|
|
1777
|
+
admin_name: z.string().nullable().optional(),
|
|
1778
|
+
name: z.string(),
|
|
1779
|
+
});
|
|
1780
|
+
const EligibilityProductOptionResponse = z.looseObject({
|
|
1781
|
+
description: z.string().nullable().optional(),
|
|
1782
|
+
product_option_id: z.string(),
|
|
1783
|
+
entity_id: z.string(),
|
|
1784
|
+
option_type: ProductOptionTypeHttp,
|
|
1785
|
+
is_mandatory: z.boolean(),
|
|
1786
|
+
name: z.string(),
|
|
1787
|
+
variants: z.array(ProductOptionVariantResponse),
|
|
1788
|
+
});
|
|
1789
|
+
const EligibilityResolver = z.looseObject({
|
|
1790
|
+
name: z.string(),
|
|
1791
|
+
enabled: z.boolean(),
|
|
1792
|
+
actor_id: z.string(),
|
|
1793
|
+
});
|
|
1794
|
+
const ResolvedLocationResponse = z.looseObject({
|
|
1795
|
+
raw_address: z.string().nullable().optional(),
|
|
1796
|
+
ban_id: z.string().nullable().optional(),
|
|
1797
|
+
country: z.string().nullable().optional(),
|
|
1798
|
+
postal_code: z.string().nullable().optional(),
|
|
1799
|
+
city: z.string().nullable().optional(),
|
|
1800
|
+
locality: z.string().nullable().optional(),
|
|
1801
|
+
rivoli_code: z.string().nullable().optional(),
|
|
1802
|
+
street: z.string().nullable().optional(),
|
|
1803
|
+
street_number: z.string().nullable().optional(),
|
|
1804
|
+
insee_municipality_code: z.string().nullable().optional(),
|
|
1805
|
+
imb_ref: z.string().nullable().optional(),
|
|
1806
|
+
ndi: z.string().nullable().optional(),
|
|
1807
|
+
coordinates: z.union([Coordinates, z.null()]).optional(),
|
|
1808
|
+
hexacle: z.string().nullable().optional(),
|
|
1809
|
+
});
|
|
1810
|
+
const EligibilityResultEntity = z.looseObject({
|
|
1811
|
+
entity_id: z.string(),
|
|
1812
|
+
variant_id: z.string().nullable().optional(),
|
|
1813
|
+
name: z.string(),
|
|
1814
|
+
status: z.union([AvailabilityStatusHttp, z.null()]).optional(),
|
|
1815
|
+
sku: z.string().nullable().optional(),
|
|
1816
|
+
debit: z.number().nullable().optional(),
|
|
1817
|
+
access_fee: z.number().nullable().optional(),
|
|
1818
|
+
access_fee_on_quotation: z.boolean().nullable().optional(),
|
|
1819
|
+
recurring_price: z.number().nullable().optional(),
|
|
1820
|
+
recurring_price_on_quotation: z.boolean().nullable().optional(),
|
|
1821
|
+
commitment_duration: z.number().nullable().optional(),
|
|
1822
|
+
intervention_time_guaranteed_delay: z.string().nullable().optional(),
|
|
1823
|
+
intervention_time_guaranteed_applicability: z
|
|
1824
|
+
.union([ApplicabilityHttp, z.null()])
|
|
1825
|
+
.optional(),
|
|
1826
|
+
recovery_time_guaranteed_delay: z.string().nullable().optional(),
|
|
1827
|
+
recovery_time_guaranteed_applicability: z
|
|
1828
|
+
.union([ApplicabilityHttp, z.null()])
|
|
1829
|
+
.optional(),
|
|
1830
|
+
preferred_offer: z.boolean(),
|
|
1831
|
+
delivery_protocol: z.union([DeliveryProtocolHttp, z.null()]).optional(),
|
|
1832
|
+
discounted_access_fee: z.number().nullable().optional(),
|
|
1833
|
+
discounted_recurring_price: z.number().nullable().optional(),
|
|
1834
|
+
discount_duration_months: z.number().nullable().optional(),
|
|
1835
|
+
discount_start: z.string().nullable().optional(),
|
|
1836
|
+
discount_end: z.string().nullable().optional(),
|
|
1837
|
+
multi_otp_compatible_building_operators: z
|
|
1838
|
+
.array(z.string())
|
|
1839
|
+
.nullable()
|
|
1840
|
+
.optional(),
|
|
1841
|
+
});
|
|
1842
|
+
const EligibilityResult = z.looseObject({
|
|
1843
|
+
eligibility_id: z.string(),
|
|
1844
|
+
resolver: z.string(),
|
|
1845
|
+
product_id: z.string(),
|
|
1846
|
+
contract_version_product_id: z.string(),
|
|
1847
|
+
product_name: z.string(),
|
|
1848
|
+
product_location: z.union([ResolvedLocationResponse, z.null()]).optional(),
|
|
1849
|
+
service_operator: z.string(),
|
|
1850
|
+
service_operator_slug: z.string(),
|
|
1851
|
+
infrastructure_operator: z.string(),
|
|
1852
|
+
infrastructure_operator_slug: z.string(),
|
|
1853
|
+
infrastructure_type: z.string().nullable().optional(),
|
|
1854
|
+
entities: z.array(EligibilityResultEntity),
|
|
1855
|
+
varying_features: z.array(ProductFeatureHttp),
|
|
1856
|
+
category: ProductCategoryHttp,
|
|
1857
|
+
});
|
|
1858
|
+
const EligibilityStatusSuccess = z.looseObject({
|
|
1859
|
+
resolver: z.string(),
|
|
1860
|
+
result_count: z.number(),
|
|
1861
|
+
});
|
|
1862
|
+
const EmergencyAddressUpdatePayload = z.looseObject({
|
|
1863
|
+
street_number: z.string().nullable().optional(),
|
|
1864
|
+
street: z.string(),
|
|
1865
|
+
zip_code: z.string(),
|
|
1866
|
+
city: z.string(),
|
|
1867
|
+
addition_to_address: z.string().nullable().optional(),
|
|
1868
|
+
insee_code: z.string(),
|
|
1869
|
+
});
|
|
1870
|
+
const EsignatureSignedDataHttp = z.looseObject({
|
|
1871
|
+
signed_at: z.string(),
|
|
1872
|
+
});
|
|
1873
|
+
const ProductActor = z.looseObject({
|
|
1874
|
+
id: z.string(),
|
|
1875
|
+
slug: z.string(),
|
|
1876
|
+
name: z.string(),
|
|
1877
|
+
is_infra_provider: z.boolean(),
|
|
1878
|
+
});
|
|
1879
|
+
const VariantsOrPfsResponse = z.union([
|
|
1880
|
+
z.array(VariantResponse),
|
|
1881
|
+
ProductFeatureSetApiResponse,
|
|
1882
|
+
]);
|
|
1883
|
+
const ProductOptionResponse = z.looseObject({
|
|
1884
|
+
description: z.string().nullable().optional(),
|
|
1885
|
+
id: z.string(),
|
|
1886
|
+
contract_version_product_id: z.string(),
|
|
1887
|
+
kind: ProductOptionTypeHttp,
|
|
1888
|
+
name: z.string(),
|
|
1889
|
+
variants: z.array(ProductOptionVariantResponse),
|
|
1890
|
+
});
|
|
1891
|
+
const ExtendedComputedProductResponse = z.looseObject({
|
|
1892
|
+
description: z.string().nullable().optional(),
|
|
1893
|
+
product_id: z.string(),
|
|
1894
|
+
contract_version_product_id: z.string(),
|
|
1895
|
+
contract_name: z.string(),
|
|
1896
|
+
sku: z.string().nullable().optional(),
|
|
1897
|
+
admin_name: z.string().nullable().optional(),
|
|
1898
|
+
name: z.string(),
|
|
1899
|
+
category: ProductCategoryHttp,
|
|
1900
|
+
infra_operator: z.union([ProductActor, z.null()]).optional(),
|
|
1901
|
+
seller: ProductActor,
|
|
1902
|
+
is_public: z.boolean().nullable().optional(),
|
|
1903
|
+
variants_or_pfs: VariantsOrPfsResponse,
|
|
1904
|
+
options: z.array(ProductOptionResponse),
|
|
1905
|
+
varying_features: z.array(ProductFeatureHttp),
|
|
1906
|
+
});
|
|
1907
|
+
const Feature = z.enum([
|
|
1908
|
+
'Debit',
|
|
1909
|
+
'RecurringPrice',
|
|
1910
|
+
'ServiceGuarantee',
|
|
1911
|
+
'AccessFee',
|
|
1912
|
+
'CommitmentDuration',
|
|
1913
|
+
]);
|
|
1914
|
+
const FileLinkRequest = z.looseObject({
|
|
1915
|
+
id: z.string(),
|
|
1916
|
+
name: z.string(),
|
|
1917
|
+
});
|
|
1918
|
+
const FileLinkResponse = z.looseObject({
|
|
1919
|
+
id: z.string(),
|
|
1920
|
+
file_link: z.string(),
|
|
1921
|
+
name: z.string(),
|
|
1922
|
+
});
|
|
1923
|
+
const FinalClientResponse = z.looseObject({
|
|
1924
|
+
street_number: z.string().nullable().optional(),
|
|
1925
|
+
street: z.string().nullable().optional(),
|
|
1926
|
+
city: z.string().nullable().optional(),
|
|
1927
|
+
idn: z.string().nullable().optional(),
|
|
1928
|
+
name: z.string(),
|
|
1929
|
+
zip_code: z.string().nullable().optional(),
|
|
1930
|
+
building: z.string().nullable().optional(),
|
|
1931
|
+
floor: z.string().nullable().optional(),
|
|
1932
|
+
door: z.string().nullable().optional(),
|
|
1933
|
+
});
|
|
1934
|
+
const GenericIncidentCloseDataHttp = z.looseObject({
|
|
1935
|
+
end: z.string(),
|
|
1936
|
+
});
|
|
1937
|
+
const GenericIncidentTechnologyHttp = z.enum([
|
|
1938
|
+
'ftth',
|
|
1939
|
+
'ftto',
|
|
1940
|
+
'ftte',
|
|
1941
|
+
'adsl',
|
|
1942
|
+
'sdsl',
|
|
1943
|
+
'vdsl',
|
|
1944
|
+
'4g',
|
|
1945
|
+
'5g',
|
|
1946
|
+
'sip_trunk_c4',
|
|
1947
|
+
'sip_trunk_c5',
|
|
1948
|
+
'poi',
|
|
1949
|
+
'pop_connect',
|
|
1950
|
+
]);
|
|
1951
|
+
const GenericIncidentOpenDataHttp = z.looseObject({
|
|
1952
|
+
description: z.string(),
|
|
1953
|
+
start: z.string(),
|
|
1954
|
+
provider_name: z.string(),
|
|
1955
|
+
name: z.string(),
|
|
1956
|
+
location: z.string().nullable().optional(),
|
|
1957
|
+
impact: z.string().nullable().optional(),
|
|
1958
|
+
technologies: z.array(GenericIncidentTechnologyHttp),
|
|
1959
|
+
});
|
|
1960
|
+
/** Only changed fields are included */
|
|
1961
|
+
const GenericIncidentUpdateDataHttp = z.looseObject({
|
|
1962
|
+
description: z.string().nullable().optional(),
|
|
1963
|
+
name: z.string().nullable().optional(),
|
|
1964
|
+
location: z.string().nullable().optional(),
|
|
1965
|
+
impact: z.string().nullable().optional(),
|
|
1966
|
+
external_reference: z.string().nullable().optional(),
|
|
1967
|
+
});
|
|
1968
|
+
const IMBStatus = z.enum([
|
|
1969
|
+
'Deployed',
|
|
1970
|
+
'Signed',
|
|
1971
|
+
'Connectable',
|
|
1972
|
+
'DeployInProgress',
|
|
1973
|
+
'Target',
|
|
1974
|
+
'Abandoned',
|
|
1975
|
+
]);
|
|
1976
|
+
const PMStatus = z.enum([
|
|
1977
|
+
'Deployed',
|
|
1978
|
+
'DeployInProgress',
|
|
1979
|
+
'Planned',
|
|
1980
|
+
'Abandoned',
|
|
1981
|
+
]);
|
|
1982
|
+
const ImbPm = z.looseObject({
|
|
1983
|
+
lat: z.number(),
|
|
1984
|
+
lng: z.number(),
|
|
1985
|
+
imb_id: z.string(),
|
|
1986
|
+
imb_status: z.union([IMBStatus, z.null()]).optional(),
|
|
1987
|
+
pm_id: z.string(),
|
|
1988
|
+
pm_status: z.union([PMStatus, z.null()]).optional(),
|
|
1989
|
+
street_number: z.number(),
|
|
1990
|
+
street_number_complement: z.string().nullable().optional(),
|
|
1991
|
+
street: z.string(),
|
|
1992
|
+
city: z.string(),
|
|
1993
|
+
post_code: z.number(),
|
|
1994
|
+
});
|
|
1995
|
+
const ImbPmAddressQuery = z.looseObject({
|
|
1996
|
+
street_number: z.number(),
|
|
1997
|
+
street: z.string(),
|
|
1998
|
+
city: z.string(),
|
|
1999
|
+
post_code: z.number(),
|
|
2000
|
+
});
|
|
2001
|
+
const ImbPmBoundsQuery = z.looseObject({
|
|
2002
|
+
lat: z.number(),
|
|
2003
|
+
lng: z.number(),
|
|
2004
|
+
});
|
|
2005
|
+
const ImbPmHalfSideQuery = z.looseObject({
|
|
2006
|
+
lat: z.number(),
|
|
2007
|
+
lng: z.number(),
|
|
2008
|
+
half_side: z.number(),
|
|
2009
|
+
});
|
|
2010
|
+
const IndexedCartItemRequest = z.looseObject({
|
|
2011
|
+
line: CartLineRequest,
|
|
2012
|
+
index: z.number(),
|
|
2013
|
+
});
|
|
2014
|
+
const InfraTypeHttp = z.enum([
|
|
2015
|
+
'ftto',
|
|
2016
|
+
'ftte',
|
|
2017
|
+
'ftth',
|
|
2018
|
+
'sdsl',
|
|
2019
|
+
'adsl',
|
|
2020
|
+
'vdsl',
|
|
2021
|
+
'data_mobile',
|
|
2022
|
+
'mobile_link',
|
|
2023
|
+
]);
|
|
2024
|
+
const IpBlockResponse = z.looseObject({
|
|
2025
|
+
cidr_length: z.number(),
|
|
2026
|
+
cidr: z.string().nullable().optional(),
|
|
2027
|
+
reference: z.string(),
|
|
2028
|
+
});
|
|
2029
|
+
const L2TPTechnicalInformationResponse = z.looseObject({
|
|
2030
|
+
ppp_id: z.string(),
|
|
2031
|
+
});
|
|
2032
|
+
const L2TechnicalInformationResponse = z.looseObject({
|
|
2033
|
+
vlan: z.number(),
|
|
2034
|
+
});
|
|
2035
|
+
const RadiusServerHttp = z.looseObject({
|
|
2036
|
+
ip_address: z.string(),
|
|
2037
|
+
secret: z.string().nullable().optional(),
|
|
2038
|
+
});
|
|
2039
|
+
const L2tpPoiInfoHttp = z.looseObject({
|
|
2040
|
+
reference: z.string(),
|
|
2041
|
+
pop_name: z.string(),
|
|
2042
|
+
pop_address: z.string(),
|
|
2043
|
+
device: z.string(),
|
|
2044
|
+
status: ConfigurationStatusHttp,
|
|
2045
|
+
});
|
|
2046
|
+
const L2tpInterconnectionTechnicalInfoHttp = z.looseObject({
|
|
2047
|
+
radius: z.array(RadiusServerHttp),
|
|
2048
|
+
realms: z.array(z.string()),
|
|
2049
|
+
point_of_interconnections: z.array(L2tpPoiInfoHttp),
|
|
2050
|
+
});
|
|
2051
|
+
const L3TechnicalInformationResponse = z.looseObject({
|
|
2052
|
+
login: z.string(),
|
|
2053
|
+
password: z.string(),
|
|
2054
|
+
ipv4: z.string(),
|
|
2055
|
+
ipv6: z.string().nullable().optional(),
|
|
2056
|
+
});
|
|
2057
|
+
const SipTrunkC5ResourceUpdatePayload = z.looseObject({
|
|
2058
|
+
emergency_address: z
|
|
2059
|
+
.union([EmergencyAddressUpdatePayload, z.null()])
|
|
2060
|
+
.optional(),
|
|
2061
|
+
idn: z.string().nullable().optional(),
|
|
2062
|
+
numbers: z.array(z.string()).nullable().optional(),
|
|
2063
|
+
routing_profile: z.union([RoutingProfile, z.null()]).optional(),
|
|
2064
|
+
});
|
|
2065
|
+
const LegacyResourceUpdatePayload = SipTrunkC5ResourceUpdatePayload;
|
|
2066
|
+
const MessageAuthorContactResponse = z.looseObject({
|
|
2067
|
+
email: z.string(),
|
|
2068
|
+
phone: z.string().nullable().optional(),
|
|
2069
|
+
mobilephone: z.string().nullable().optional(),
|
|
2070
|
+
job_title: z.string().nullable().optional(),
|
|
2071
|
+
});
|
|
2072
|
+
const MessageActorResponse = z.looseObject({
|
|
2073
|
+
slug: z.string(),
|
|
2074
|
+
name: z.string(),
|
|
2075
|
+
author_firstname: z.string().nullable().optional(),
|
|
2076
|
+
author_lastname: z.string().nullable().optional(),
|
|
2077
|
+
author_contact: z.union([MessageAuthorContactResponse, z.null()]).optional(),
|
|
2078
|
+
});
|
|
2079
|
+
const MessageStatusHttp = z.enum([
|
|
2080
|
+
'pending',
|
|
2081
|
+
'published',
|
|
2082
|
+
'rejected',
|
|
2083
|
+
]);
|
|
2084
|
+
const MessageFileResponse = z.looseObject({
|
|
2085
|
+
content: z.string().nullable().optional(),
|
|
2086
|
+
files: z.array(FileLinkResponse),
|
|
2087
|
+
status: MessageStatusHttp,
|
|
2088
|
+
});
|
|
2089
|
+
const MessageKindRequest = z.enum([
|
|
2090
|
+
'file',
|
|
2091
|
+
'text',
|
|
2092
|
+
'system_event',
|
|
2093
|
+
'user_event',
|
|
2094
|
+
]);
|
|
2095
|
+
const TicketCloseDataHttp = z.looseObject({
|
|
2096
|
+
gtr_overrun: z.string(),
|
|
2097
|
+
responsibility: ServiceTicketResponsibilityHttp,
|
|
2098
|
+
});
|
|
2099
|
+
const UpdateRecurringPriceOptionTargetDataHttp = z.looseObject({
|
|
2100
|
+
option_name: z.string(),
|
|
2101
|
+
option_recurring_price: z.union([z.string(), z.number()]),
|
|
2102
|
+
});
|
|
2103
|
+
const ServiceChangeTargetDataHttp = z.union([
|
|
2104
|
+
z.enum(['add_quoted_option', 'none']),
|
|
2105
|
+
z.looseObject({
|
|
2106
|
+
terminate_landline_option: z.looseObject({ option_name: z.string() }),
|
|
2107
|
+
}),
|
|
2108
|
+
z.looseObject({
|
|
2109
|
+
add_landline_option: z.looseObject({ option_name: z.string() }),
|
|
2110
|
+
}),
|
|
2111
|
+
z.looseObject({
|
|
2112
|
+
update_connection: z.looseObject({
|
|
2113
|
+
debit_up_guaranteed: z
|
|
2114
|
+
.union([z.string(), z.number()])
|
|
2115
|
+
.nullable()
|
|
2116
|
+
.optional(),
|
|
2117
|
+
debit_down_guaranteed: z
|
|
2118
|
+
.union([z.string(), z.number()])
|
|
2119
|
+
.nullable()
|
|
2120
|
+
.optional(),
|
|
2121
|
+
debit_up_max: z.union([z.string(), z.number()]).nullable().optional(),
|
|
2122
|
+
debit_down_max: z.union([z.string(), z.number()]).nullable().optional(),
|
|
2123
|
+
application_date: z.string().nullable().optional(),
|
|
2124
|
+
}),
|
|
2125
|
+
}),
|
|
2126
|
+
z.looseObject({
|
|
2127
|
+
update_mobile_connection: z.looseObject({
|
|
2128
|
+
hno: z.union([HnoHttp, z.null()]).optional(),
|
|
2129
|
+
mobile_network_technology: z
|
|
2130
|
+
.union([MobileNetworkTechnologyHttp, z.null()])
|
|
2131
|
+
.optional(),
|
|
2132
|
+
data_quota_bytes_per_mobile_area: z
|
|
2133
|
+
.object({})
|
|
2134
|
+
.catchall(DataQuotaValueHttp)
|
|
2135
|
+
.nullable()
|
|
2136
|
+
.optional(),
|
|
2137
|
+
}),
|
|
2138
|
+
}),
|
|
2139
|
+
z.looseObject({
|
|
2140
|
+
update_sip_trunk: z.looseObject({
|
|
2141
|
+
simultaneous_channel_number: z.number().nullable().optional(),
|
|
2142
|
+
input_channel_number: z.number().nullable().optional(),
|
|
2143
|
+
output_channel_number: z.number().nullable().optional(),
|
|
2144
|
+
}),
|
|
2145
|
+
}),
|
|
2146
|
+
z.looseObject({
|
|
2147
|
+
update_recurring_price: z.looseObject({
|
|
2148
|
+
main_recurring_price: z
|
|
2149
|
+
.union([z.string(), z.number()])
|
|
2150
|
+
.nullable()
|
|
2151
|
+
.optional(),
|
|
2152
|
+
full_recurring_price: z.union([z.string(), z.number()]),
|
|
2153
|
+
option_recurring_prices: z.array(UpdateRecurringPriceOptionTargetDataHttp),
|
|
2154
|
+
application_date: z.string().nullable().optional(),
|
|
2155
|
+
}),
|
|
2156
|
+
}),
|
|
2157
|
+
]);
|
|
2158
|
+
const ProposalCommitmentHttp = z.union([
|
|
2159
|
+
z.literal('none'),
|
|
2160
|
+
z.looseObject({ duration: z.number() }),
|
|
2161
|
+
z.looseObject({ end_date: z.string() }),
|
|
2162
|
+
]);
|
|
2163
|
+
const ServiceChangeProposalDataHttp = z.union([
|
|
2164
|
+
z.literal('none'),
|
|
2165
|
+
z.looseObject({
|
|
2166
|
+
terminate_landline_option: z.looseObject({
|
|
2167
|
+
new_recurring_price: z.union([z.string(), z.number()]),
|
|
2168
|
+
option_name: z.string(),
|
|
2169
|
+
termination_date: z.string(),
|
|
2170
|
+
termination_fee: z.union([z.string(), z.number()]),
|
|
2171
|
+
}),
|
|
2172
|
+
}),
|
|
2173
|
+
z.looseObject({
|
|
2174
|
+
add_landline_option: z.looseObject({
|
|
2175
|
+
access_fee: z.union([z.string(), z.number()]),
|
|
2176
|
+
recurring_price: z.union([z.string(), z.number()]),
|
|
2177
|
+
new_recurring_price: z.union([z.string(), z.number()]),
|
|
2178
|
+
option_name: z.string(),
|
|
2179
|
+
commissioning_date: z.string(),
|
|
2180
|
+
commitment: ProposalCommitmentHttp,
|
|
2181
|
+
}),
|
|
2182
|
+
}),
|
|
2183
|
+
z.looseObject({
|
|
2184
|
+
add_quoted_option: z.looseObject({
|
|
2185
|
+
option_kind: ProductOptionTypeHttp,
|
|
2186
|
+
option_name: z.string(),
|
|
2187
|
+
recurring_price: z.union([z.string(), z.number()]),
|
|
2188
|
+
access_fee: z.union([z.string(), z.number()]),
|
|
2189
|
+
application_date: z.string(),
|
|
2190
|
+
}),
|
|
2191
|
+
}),
|
|
2192
|
+
z.looseObject({
|
|
2193
|
+
update_connection: z.looseObject({
|
|
2194
|
+
recurring_price: z.union([z.string(), z.number()]),
|
|
2195
|
+
access_fee: z.union([z.string(), z.number()]),
|
|
2196
|
+
commitment: ProposalCommitmentHttp,
|
|
2197
|
+
debit_up_guaranteed: z
|
|
2198
|
+
.union([z.string(), z.number()])
|
|
2199
|
+
.nullable()
|
|
2200
|
+
.optional(),
|
|
2201
|
+
debit_down_guaranteed: z
|
|
2202
|
+
.union([z.string(), z.number()])
|
|
2203
|
+
.nullable()
|
|
2204
|
+
.optional(),
|
|
2205
|
+
debit_up_max: z.union([z.string(), z.number()]).nullable().optional(),
|
|
2206
|
+
debit_down_max: z.union([z.string(), z.number()]).nullable().optional(),
|
|
2207
|
+
estimated_application_date: z.string().nullable().optional(),
|
|
2208
|
+
}),
|
|
2209
|
+
}),
|
|
2210
|
+
]);
|
|
2211
|
+
const ServiceChangeAssignDataHttp = z.looseObject({
|
|
2212
|
+
firstname: z.string(),
|
|
2213
|
+
lastname: z.string(),
|
|
2214
|
+
});
|
|
2215
|
+
const ServiceChangeReassignDataHttp = z.looseObject({
|
|
2216
|
+
firstname: z.string(),
|
|
2217
|
+
lastname: z.string(),
|
|
2218
|
+
old_firstname: z.string(),
|
|
2219
|
+
old_lastname: z.string(),
|
|
2220
|
+
});
|
|
2221
|
+
const ServiceChangeUnassignDataHttp = z.looseObject({
|
|
2222
|
+
old_firstname: z.string(),
|
|
2223
|
+
old_lastname: z.string(),
|
|
2224
|
+
});
|
|
2225
|
+
const ServiceChangeUpdateApplicationDateDataHttp = z.looseObject({ application_date: z.string().nullable().optional() });
|
|
2226
|
+
const SystemEventMessageKindResponse = z.union([
|
|
2227
|
+
z.enum([
|
|
2228
|
+
'ticket_ask_closure',
|
|
2229
|
+
'ticket_assign',
|
|
2230
|
+
'ticket_reassign',
|
|
2231
|
+
'ticket_unassign',
|
|
2232
|
+
'ticket_open',
|
|
2233
|
+
'ticket_freeze',
|
|
2234
|
+
'ticket_customer_frozen',
|
|
2235
|
+
'ticket_unfreeze',
|
|
2236
|
+
'ticket_cancel_ask_closure',
|
|
2237
|
+
'ticket_reopen',
|
|
2238
|
+
'ticket_close_reminder',
|
|
2239
|
+
'appointment_to_book',
|
|
2240
|
+
'appointment_booked',
|
|
2241
|
+
'appointment_rescheduled',
|
|
2242
|
+
'service_change_open',
|
|
2243
|
+
'service_change_migrated',
|
|
2244
|
+
'service_change_pending_process',
|
|
2245
|
+
'service_change_proposal_accepted',
|
|
2246
|
+
'service_change_proposal_refused',
|
|
2247
|
+
'service_change_processing',
|
|
2248
|
+
'service_change_processed',
|
|
2249
|
+
'service_change_cancelled',
|
|
2250
|
+
'service_change_completed',
|
|
2251
|
+
'order_cancelled',
|
|
2252
|
+
'order_cancel_requested',
|
|
2253
|
+
'order_confirmed',
|
|
2254
|
+
'order_created',
|
|
2255
|
+
'order_delay_requested',
|
|
2256
|
+
'order_deploying',
|
|
2257
|
+
'order_rejected',
|
|
2258
|
+
'order_reviewing',
|
|
2259
|
+
'order_scheduled',
|
|
2260
|
+
'order_terminated',
|
|
2261
|
+
'order_transmitted',
|
|
2262
|
+
'esignature_ready',
|
|
2263
|
+
'mobile_portability_failure',
|
|
2264
|
+
]),
|
|
2265
|
+
z.looseObject({ ticket_close: TicketCloseDataHttp }),
|
|
2266
|
+
z.looseObject({
|
|
2267
|
+
service_change_initial_request: ServiceChangeTargetDataHttp,
|
|
2268
|
+
}),
|
|
2269
|
+
z.looseObject({ service_change_proposal: ServiceChangeProposalDataHttp }),
|
|
2270
|
+
z.looseObject({ service_change_assign: ServiceChangeAssignDataHttp }),
|
|
2271
|
+
z.looseObject({ service_change_reassign: ServiceChangeReassignDataHttp }),
|
|
2272
|
+
z.looseObject({ service_change_unassign: ServiceChangeUnassignDataHttp }),
|
|
2273
|
+
z.looseObject({
|
|
2274
|
+
service_change_update_application_date: ServiceChangeUpdateApplicationDateDataHttp,
|
|
2275
|
+
}),
|
|
2276
|
+
z.looseObject({ generic_incident_open: GenericIncidentOpenDataHttp }),
|
|
2277
|
+
z.looseObject({ generic_incident_close: GenericIncidentCloseDataHttp }),
|
|
2278
|
+
z.looseObject({ generic_incident_update: GenericIncidentUpdateDataHttp }),
|
|
2279
|
+
z.looseObject({ esignature_customer_signed: EsignatureSignedDataHttp }),
|
|
2280
|
+
z.looseObject({ esignature_reseller_signed: EsignatureSignedDataHttp }),
|
|
2281
|
+
z.looseObject({ esignature_seller_signed: EsignatureSignedDataHttp }),
|
|
2282
|
+
]);
|
|
2283
|
+
const MessageSystemEventResponse = z.looseObject({
|
|
2284
|
+
description: z.string().nullable().optional(),
|
|
2285
|
+
kind: SystemEventMessageKindResponse,
|
|
2286
|
+
});
|
|
2287
|
+
const MessageTextResponse = z.looseObject({
|
|
2288
|
+
content: z.string(),
|
|
2289
|
+
status: MessageStatusHttp,
|
|
2290
|
+
});
|
|
2291
|
+
const MessageUserEventResponse = z.looseObject({
|
|
2292
|
+
title: z.string(),
|
|
2293
|
+
description: z.string(),
|
|
2294
|
+
});
|
|
2295
|
+
const PackageMonthly = z.literal('monthly');
|
|
2296
|
+
const MobileDataConsumptionResponse = z.looseObject({
|
|
2297
|
+
package_id: PackageMonthly,
|
|
2298
|
+
monthly_quota: z.number(),
|
|
2299
|
+
remaining_volume: z.number(),
|
|
2300
|
+
});
|
|
2301
|
+
const MobileDataExtensionsResponse = z.looseObject({
|
|
2302
|
+
package_id: z.string(),
|
|
2303
|
+
quota: z.number(),
|
|
2304
|
+
remaining_volume: z.number(),
|
|
2305
|
+
});
|
|
2306
|
+
const MobileResponse = z.looseObject({
|
|
2307
|
+
iccid: z.string(),
|
|
2308
|
+
imsi: z.string().nullable().optional(),
|
|
2309
|
+
activation_code: z.string().nullable().optional(),
|
|
2310
|
+
reference: z.string(),
|
|
2311
|
+
});
|
|
2312
|
+
const MobileTechnicalInformationResponseLegacyCompat = z.looseObject({
|
|
2313
|
+
nid: z.string().nullable().optional(),
|
|
2314
|
+
login: z.string().nullable().optional(),
|
|
2315
|
+
password: z.string().nullable().optional(),
|
|
2316
|
+
status: z.string().nullable().optional(),
|
|
2317
|
+
ipv4: z.string().nullable().optional(),
|
|
2318
|
+
ipv6: z.string().nullable().optional(),
|
|
2319
|
+
ipv6_prefix: z.string().nullable().optional(),
|
|
2320
|
+
dns_primary: z.string().nullable().optional(),
|
|
2321
|
+
dns_secondary: z.string().nullable().optional(),
|
|
2322
|
+
msisdn: z.string(),
|
|
2323
|
+
iccid: z.string(),
|
|
2324
|
+
imsi: z.string(),
|
|
2325
|
+
mobile_data_consumption: MobileDataConsumptionResponse,
|
|
2326
|
+
extensions: z.array(MobileDataExtensionsResponse),
|
|
2327
|
+
});
|
|
2328
|
+
const MonthlyConsumptionHistoryResponse = z.looseObject({
|
|
2329
|
+
service_id: z.string(),
|
|
2330
|
+
service_reference: z.string(),
|
|
2331
|
+
service_consumer_reference: z.string().nullable().optional(),
|
|
2332
|
+
customer_name: z.string().nullable().optional(),
|
|
2333
|
+
monthly_volume_in_bytes: z.number(),
|
|
2334
|
+
monthly_volume_update_date: z.string().nullable().optional(),
|
|
2335
|
+
});
|
|
2336
|
+
const NotificationTypeHttp = z.enum([
|
|
2337
|
+
'appointment_created',
|
|
2338
|
+
'appointment_selected',
|
|
2339
|
+
'appointment_rescheduled',
|
|
2340
|
+
'consumption',
|
|
2341
|
+
'order_line_created',
|
|
2342
|
+
'order_line_updated',
|
|
2343
|
+
'order_line_message_created',
|
|
2344
|
+
'order_line_message_pending',
|
|
2345
|
+
'signalization_created',
|
|
2346
|
+
'signalization_updated',
|
|
2347
|
+
'signalization_messaging_created',
|
|
2348
|
+
'signalization_message_pending',
|
|
2349
|
+
'customer_record_updated',
|
|
2350
|
+
'customer_record_created',
|
|
2351
|
+
'outgoing_portability_feedback_cri_requested',
|
|
2352
|
+
'outgoing_portability_apnf_command_received',
|
|
2353
|
+
'service_change_created',
|
|
2354
|
+
'service_change_cancelled',
|
|
2355
|
+
'service_change_completed',
|
|
2356
|
+
'service_change_new_message',
|
|
2357
|
+
'service_change_offer',
|
|
2358
|
+
'service_change_pending_propagation',
|
|
2359
|
+
'service_change_approved',
|
|
2360
|
+
'service_change_hierarchy_accepted',
|
|
2361
|
+
'service_change_refused',
|
|
2362
|
+
'service_change_processing',
|
|
2363
|
+
'mobile_subscription_status_changed',
|
|
2364
|
+
'mobile_border_crossed',
|
|
2365
|
+
'landline_connection_up',
|
|
2366
|
+
'landline_connection_down',
|
|
2367
|
+
]);
|
|
2368
|
+
const OperatorCodesResponse = z.looseObject({
|
|
2369
|
+
ope: z.string().nullable().optional(),
|
|
2370
|
+
opa: z.string(),
|
|
2371
|
+
});
|
|
2372
|
+
const OptionResponse = z.looseObject({
|
|
2373
|
+
'option-name': z.string(),
|
|
2374
|
+
});
|
|
2375
|
+
const OrderBuyerInfoResponse = z.union([
|
|
2376
|
+
z.looseObject({ customer: CustomerRecordHttp }),
|
|
2377
|
+
z.looseObject({ actor: ActorIdentifierResponse }),
|
|
2378
|
+
]);
|
|
2379
|
+
const OrderContextResponse = z.union([
|
|
2380
|
+
z.enum(['catalog', 'generic', 'portability']),
|
|
2381
|
+
z.looseObject({
|
|
2382
|
+
eligibility: z.looseObject({
|
|
2383
|
+
eligibility_id: z.string(),
|
|
2384
|
+
tailored_offer_id: z.string().nullable().optional(),
|
|
2385
|
+
external_eligibility_reference: z.string().nullable().optional(),
|
|
2386
|
+
}),
|
|
2387
|
+
}),
|
|
2388
|
+
]);
|
|
2389
|
+
const OrderModeResponse = z.enum(['Buyer', 'Seller']);
|
|
2390
|
+
const OrderDetailsResponse = z.looseObject({
|
|
2391
|
+
order_id: z.string(),
|
|
2392
|
+
created_at: z.string(),
|
|
2393
|
+
updated_at: z.string(),
|
|
2394
|
+
mode: OrderModeResponse,
|
|
2395
|
+
comment: z.string().nullable().optional(),
|
|
2396
|
+
reference: z.string(),
|
|
2397
|
+
buyer: OrderBuyerInfoResponse,
|
|
2398
|
+
seller: ActorIdentifierResponse,
|
|
2399
|
+
lines_count: z.number(),
|
|
2400
|
+
status: z.string(),
|
|
2401
|
+
});
|
|
2402
|
+
const OrderLineStatusHttp = z.enum([
|
|
2403
|
+
'created',
|
|
2404
|
+
'transmitted',
|
|
2405
|
+
'confirmed',
|
|
2406
|
+
'deploying',
|
|
2407
|
+
'terminated',
|
|
2408
|
+
'cancelled',
|
|
2409
|
+
'reviewing',
|
|
2410
|
+
'scheduled',
|
|
2411
|
+
'completed',
|
|
2412
|
+
'cancel_requested',
|
|
2413
|
+
'delay_requested',
|
|
2414
|
+
'rejected',
|
|
2415
|
+
]);
|
|
2416
|
+
const OrderLineWithCustomerResponse = z.looseObject({
|
|
2417
|
+
order_line_id: z.string(),
|
|
2418
|
+
order_id: z.string(),
|
|
2419
|
+
customer_name: z.string().nullable().optional(),
|
|
2420
|
+
customer_address: z.union([CustomerAddressResponse, z.null()]).optional(),
|
|
2421
|
+
created_at: z.string(),
|
|
2422
|
+
updated_at: z.string().nullable().optional(),
|
|
2423
|
+
infra_provider: z.union([ActorIdentifierResponse, z.null()]).optional(),
|
|
2424
|
+
product_name: z.string(),
|
|
2425
|
+
status: OrderLineStatusHttp,
|
|
2426
|
+
product_category: ProductCategoryHttp,
|
|
2427
|
+
external_reference_buyer: z.string().nullable().optional(),
|
|
2428
|
+
external_reference_seller: z.string().nullable().optional(),
|
|
2429
|
+
reference: z.string(),
|
|
2430
|
+
product_feature_set: ProductFeatureSetApiResponse,
|
|
2431
|
+
discounts: OrderLineDiscountsResponse,
|
|
2432
|
+
options: z.array(OrderLineOptionApiResponse),
|
|
2433
|
+
});
|
|
2434
|
+
const OrderMessageResponse = z.intersection(z.looseObject({
|
|
2435
|
+
message_id: z.string(),
|
|
2436
|
+
message_room_id: z.string(),
|
|
2437
|
+
rank: z.number(),
|
|
2438
|
+
created_at: z.string(),
|
|
2439
|
+
sender: MessageActorResponse,
|
|
2440
|
+
private: z.boolean(),
|
|
2441
|
+
propagator_slug: z.string().nullable().optional(),
|
|
2442
|
+
propagator_name: z.string().nullable().optional(),
|
|
2443
|
+
}), z.union([
|
|
2444
|
+
z.looseObject({ file: MessageFileResponse }),
|
|
2445
|
+
z.looseObject({ text: MessageTextResponse }),
|
|
2446
|
+
z.looseObject({ system_event: MessageSystemEventResponse }),
|
|
2447
|
+
z.looseObject({ user_event: MessageUserEventResponse }),
|
|
2448
|
+
]));
|
|
2449
|
+
const OrderStatusHttp = z.enum([
|
|
2450
|
+
'created',
|
|
2451
|
+
'transmitted',
|
|
2452
|
+
'confirmed',
|
|
2453
|
+
'deploying',
|
|
2454
|
+
'terminated',
|
|
2455
|
+
'cancelled',
|
|
2456
|
+
]);
|
|
2457
|
+
const OrderTransitionRequest = z.union([
|
|
2458
|
+
z.enum([
|
|
2459
|
+
'confirm',
|
|
2460
|
+
'deploy',
|
|
2461
|
+
'terminate',
|
|
2462
|
+
'cancel_creation',
|
|
2463
|
+
'cancel_confirmation',
|
|
2464
|
+
'cancel_deployment',
|
|
2465
|
+
]),
|
|
2466
|
+
z.literal('reject_order_manually'),
|
|
2467
|
+
]);
|
|
2468
|
+
const OrderType = z.enum(['sent', 'received']);
|
|
2469
|
+
const OtherTechnicalInformationResponse = z.looseObject({});
|
|
2470
|
+
const OutgoingPortabilityClientHttp = z.looseObject({
|
|
2471
|
+
name: z.string().nullable().optional(),
|
|
2472
|
+
address: z.string().nullable().optional(),
|
|
2473
|
+
rivoli_code: z.string().nullable().optional(),
|
|
2474
|
+
street_number: z.string().nullable().optional(),
|
|
2475
|
+
ensemble: z.string().nullable().optional(),
|
|
2476
|
+
building: z.string().nullable().optional(),
|
|
2477
|
+
stairs: z.string().nullable().optional(),
|
|
2478
|
+
floor: z.string().nullable().optional(),
|
|
2479
|
+
door: z.string().nullable().optional(),
|
|
2480
|
+
logo: z.string().nullable().optional(),
|
|
2481
|
+
insee_code: z.string().nullable().optional(),
|
|
2482
|
+
postal_code: z.string().nullable().optional(),
|
|
2483
|
+
municipality: z.string().nullable().optional(),
|
|
2484
|
+
contact_name: z.string().nullable().optional(),
|
|
2485
|
+
contact_number: z.string().nullable().optional(),
|
|
2486
|
+
siret: z.string().nullable().optional(),
|
|
2487
|
+
});
|
|
2488
|
+
const OutgoingPortabilityCrOkRequest = z.looseObject({
|
|
2489
|
+
date: z.string(),
|
|
2490
|
+
});
|
|
2491
|
+
const OutgoingPortabilityCrRejectionCodeRequest = z.union([
|
|
2492
|
+
z.literal('f231'),
|
|
2493
|
+
z.literal('nd_pref'),
|
|
2494
|
+
z.literal('nd_nport'),
|
|
2495
|
+
z.literal('rio_inval'),
|
|
2496
|
+
z.literal('pb_tete'),
|
|
2497
|
+
z.literal('ecr_abusif'),
|
|
2498
|
+
z.literal('nd_nonope'),
|
|
2499
|
+
z.literal('nd_errop'),
|
|
2500
|
+
]);
|
|
2501
|
+
const OutgoingPortabilityCrKoRequest = z.looseObject({
|
|
2502
|
+
rejection_code: OutgoingPortabilityCrRejectionCodeRequest,
|
|
2503
|
+
});
|
|
2504
|
+
const OutgoingPortabilityCrStatusRequest = z.union([
|
|
2505
|
+
z.looseObject({ ok: OutgoingPortabilityCrOkRequest }),
|
|
2506
|
+
z.looseObject({ ko: OutgoingPortabilityCrKoRequest }),
|
|
2507
|
+
]);
|
|
2508
|
+
const OutgoingPortabilityCrContentRequest = z.looseObject({
|
|
2509
|
+
comment: z.string(),
|
|
2510
|
+
status: OutgoingPortabilityCrStatusRequest,
|
|
2511
|
+
});
|
|
2512
|
+
const OutgoingPortabilityCriOkRequest = z.looseObject({
|
|
2513
|
+
scheduled_date: z.string().nullable().optional(),
|
|
2514
|
+
});
|
|
2515
|
+
const OutgoingPortabilityCriStatusRequest = z.union([
|
|
2516
|
+
z.looseObject({ ok: OutgoingPortabilityCriOkRequest }),
|
|
2517
|
+
z.looseObject({ ko: OutgoingPortabilityCrKoRequest }),
|
|
2518
|
+
]);
|
|
2519
|
+
const OutgoingPortabilityStateHttp = z.enum([
|
|
2520
|
+
'Received',
|
|
2521
|
+
'ArOk',
|
|
2522
|
+
'CriEtudeOk',
|
|
2523
|
+
'Completed',
|
|
2524
|
+
'Cancelled',
|
|
2525
|
+
'Rejected',
|
|
2526
|
+
'ManualInbox',
|
|
2527
|
+
'ManualProcessing',
|
|
2528
|
+
'ManualScheduled',
|
|
2529
|
+
]);
|
|
2530
|
+
const OutgoingPortabilityMopOfferCodeHttp = z.enum([
|
|
2531
|
+
'PS_E',
|
|
2532
|
+
'PSG',
|
|
2533
|
+
'PSG+',
|
|
2534
|
+
'PSNG',
|
|
2535
|
+
'PSNG+',
|
|
2536
|
+
'PNU',
|
|
2537
|
+
'PNU+',
|
|
2538
|
+
]);
|
|
2539
|
+
const OutgoingPortabilityOperatorsHttp = z.looseObject({
|
|
2540
|
+
opr: z.string(),
|
|
2541
|
+
oprt: z.string(),
|
|
2542
|
+
ope: z.string(),
|
|
2543
|
+
opet: z.string(),
|
|
2544
|
+
opa: z.string(),
|
|
2545
|
+
});
|
|
2546
|
+
const OutgoingPortabilityRequesterOperatorContactHttp = z.looseObject({
|
|
2547
|
+
contact: z.string().nullable().optional(),
|
|
2548
|
+
name: z.string().nullable().optional(),
|
|
2549
|
+
});
|
|
2550
|
+
const OutgoingPortabilityHttp = z.looseObject({
|
|
2551
|
+
outgoing_portability_id: z.string(),
|
|
2552
|
+
operator_code: z.string(),
|
|
2553
|
+
reference: z.string(),
|
|
2554
|
+
current_state: OutgoingPortabilityStateHttp,
|
|
2555
|
+
mop_offer_code: OutgoingPortabilityMopOfferCodeHttp,
|
|
2556
|
+
scheduled_date: z.string().nullable().optional(),
|
|
2557
|
+
idn: z.string().nullable().optional(),
|
|
2558
|
+
rio: z.string().nullable().optional(),
|
|
2559
|
+
time_slot: z.string().nullable().optional(),
|
|
2560
|
+
operators: OutgoingPortabilityOperatorsHttp,
|
|
2561
|
+
requester_operator_contact: OutgoingPortabilityRequesterOperatorContactHttp,
|
|
2562
|
+
client: OutgoingPortabilityClientHttp,
|
|
2563
|
+
});
|
|
2564
|
+
const PackageIdentifierMonthlyHttp = z.literal('monthly');
|
|
2565
|
+
/** Update the monthly package if `package_id` is "monthly", or another package by using its uuid */
|
|
2566
|
+
const PackageIdentifierHttp = z.union([
|
|
2567
|
+
PackageIdentifierMonthlyHttp,
|
|
2568
|
+
z.string(),
|
|
2569
|
+
]);
|
|
2570
|
+
const PhoneNumberQueryApi = z.looseObject({
|
|
2571
|
+
number: z.string(),
|
|
2572
|
+
});
|
|
2573
|
+
const PoiL2VlanHttp = z.looseObject({
|
|
2574
|
+
service_id: z.string(),
|
|
2575
|
+
vlan: z.number(),
|
|
2576
|
+
blacklisted: z.boolean(),
|
|
2577
|
+
reserved_by_order_line_abstract_id: z.string().nullable().optional(),
|
|
2578
|
+
used_by_service_id: z.string().nullable().optional(),
|
|
2579
|
+
});
|
|
2580
|
+
const PoiTechnicalInformationResponse = z.union([
|
|
2581
|
+
z.looseObject({ l2: z.looseObject({ next_vlan: z.number() }) }),
|
|
2582
|
+
z.looseObject({ l2tp: L2tpInterconnectionTechnicalInfoHttp }),
|
|
2583
|
+
]);
|
|
2584
|
+
const PointOfPresenceResponse = z.looseObject({
|
|
2585
|
+
name: z.string(),
|
|
2586
|
+
slug: z.string(),
|
|
2587
|
+
address: z.string(),
|
|
2588
|
+
});
|
|
2589
|
+
const PortabilityCustomer = z.looseObject({
|
|
2590
|
+
name: z.string(),
|
|
2591
|
+
company_number: z.string(),
|
|
2592
|
+
address: CustomerAddress,
|
|
2593
|
+
contact: CustomerContact,
|
|
2594
|
+
});
|
|
2595
|
+
const PortabilityOrderStateResponse = z.enum([
|
|
2596
|
+
'created',
|
|
2597
|
+
'transmitted',
|
|
2598
|
+
'reviewing',
|
|
2599
|
+
'date_accepted',
|
|
2600
|
+
'completed',
|
|
2601
|
+
'cancellation_in_progress',
|
|
2602
|
+
'delay_in_progress',
|
|
2603
|
+
'cancelled',
|
|
2604
|
+
'rejected',
|
|
2605
|
+
]);
|
|
2606
|
+
const PortabilityPrefixResponse = z.looseObject({
|
|
2607
|
+
prefix: z.string(),
|
|
2608
|
+
reference: z.string(),
|
|
2609
|
+
});
|
|
2610
|
+
const ReliabilityCheckState = z.union([
|
|
2611
|
+
z.literal('created'),
|
|
2612
|
+
z.looseObject({
|
|
2613
|
+
completed: z.looseObject({ idn: z.string(), did: z.array(z.string()) }),
|
|
2614
|
+
}),
|
|
2615
|
+
z.looseObject({ rejected: z.looseObject({ reason: z.string() }) }),
|
|
2616
|
+
]);
|
|
2617
|
+
const PortabilityReliabilityCheck = z.looseObject({
|
|
2618
|
+
id: z.string(),
|
|
2619
|
+
actor_id: z.string(),
|
|
2620
|
+
reference: z.string(),
|
|
2621
|
+
idn: z.string(),
|
|
2622
|
+
customer: PortabilityCustomer,
|
|
2623
|
+
state: ReliabilityCheckState,
|
|
2624
|
+
created_at: z.string(),
|
|
2625
|
+
updated_at: z.string(),
|
|
2626
|
+
});
|
|
2627
|
+
const PortabilityResponse = z.looseObject({
|
|
2628
|
+
did: z.array(z.string()),
|
|
2629
|
+
idn: z.string().nullable().optional(),
|
|
2630
|
+
rio: z.string().nullable().optional(),
|
|
2631
|
+
operator_comment: z.string().nullable().optional(),
|
|
2632
|
+
wanted_date: z.string(),
|
|
2633
|
+
delay_wanted_date: z.string().nullable().optional(),
|
|
2634
|
+
});
|
|
2635
|
+
const PricingSideRequest = z.enum([
|
|
2636
|
+
'as_consumer',
|
|
2637
|
+
'as_provider',
|
|
2638
|
+
]);
|
|
2639
|
+
const PurchaseUpdateCartRequest = z.looseObject({
|
|
2640
|
+
description: z.string().nullable().optional(),
|
|
2641
|
+
external_reference: z.string().nullable().optional(),
|
|
2642
|
+
name: z.string().nullable().optional(),
|
|
2643
|
+
});
|
|
2644
|
+
const RelativeTime = z.enum(['now', 'none']);
|
|
2645
|
+
/** Auto-generated discriminant enum variants */
|
|
2646
|
+
const ReliabilityCheckStateDiscriminant = z.enum([
|
|
2647
|
+
'created',
|
|
2648
|
+
'completed',
|
|
2649
|
+
'rejected',
|
|
2650
|
+
]);
|
|
2651
|
+
const SipTrunkC4Response = z.looseObject({
|
|
2652
|
+
nb_chan_total: z.number(),
|
|
2653
|
+
nb_chan_inbound: z.number().nullable().optional(),
|
|
2654
|
+
nb_chan_outbound: z.number().nullable().optional(),
|
|
2655
|
+
reference: z.string(),
|
|
2656
|
+
password: z.string().nullable().optional(),
|
|
2657
|
+
authentication_ips: z.array(z.string()).nullable().optional(),
|
|
2658
|
+
allowed_ips: z.array(z.string()).nullable().optional(),
|
|
2659
|
+
routing_profile: RoutingProfile,
|
|
2660
|
+
account_name: z.string(),
|
|
2661
|
+
idn: z.string().nullable().optional(),
|
|
2662
|
+
allocated_arcep_slice: z.array(AllocatedArcepSliceResponse),
|
|
2663
|
+
});
|
|
2664
|
+
const SipTrunkC5Response = z.looseObject({
|
|
2665
|
+
allowed_ips: z.array(z.string()).nullable().optional(),
|
|
2666
|
+
nb_chan_total: z.number(),
|
|
2667
|
+
nb_chan_inbound: z.number().nullable().optional(),
|
|
2668
|
+
nb_chan_outbound: z.number().nullable().optional(),
|
|
2669
|
+
reference: z.string(),
|
|
2670
|
+
account_name: z.string(),
|
|
2671
|
+
password: z.string(),
|
|
2672
|
+
emergency_address: EmergencyAddress,
|
|
2673
|
+
idn: z.string().nullable().optional(),
|
|
2674
|
+
numbers: z.array(z.string()),
|
|
2675
|
+
routing_profile: RoutingProfile,
|
|
2676
|
+
});
|
|
2677
|
+
const ResourceResponse = z.union([
|
|
2678
|
+
z.intersection(z.looseObject({ type: z.literal('arcep_slice') }), ArcepSliceResponse),
|
|
2679
|
+
z.intersection(z.looseObject({ type: z.literal('sip_trunk_c4') }), SipTrunkC4Response),
|
|
2680
|
+
z.intersection(z.looseObject({ type: z.literal('sip_trunk_c5') }), SipTrunkC5Response),
|
|
2681
|
+
z.intersection(z.looseObject({ type: z.literal('portability_prefix') }), PortabilityPrefixResponse),
|
|
2682
|
+
z.intersection(z.looseObject({ type: z.literal('mobile') }), MobileResponse),
|
|
2683
|
+
z.intersection(z.looseObject({ type: z.literal('ip_block') }), IpBlockResponse),
|
|
2684
|
+
]);
|
|
2685
|
+
const SaleUpdateCartRequest = z.looseObject({
|
|
2686
|
+
description: z.string().nullable().optional(),
|
|
2687
|
+
buyer_customer_record_id: z.string().nullable().optional(),
|
|
2688
|
+
external_reference: z.string().nullable().optional(),
|
|
2689
|
+
name: z.string().nullable().optional(),
|
|
2690
|
+
});
|
|
2691
|
+
const SellerType = z.enum(['internal', 'providers']);
|
|
2692
|
+
const ServiceActorChannelHttp = z.enum([
|
|
2693
|
+
'Direct',
|
|
2694
|
+
'Intermediate',
|
|
2695
|
+
'EndProvider',
|
|
2696
|
+
'EndCustomer',
|
|
2697
|
+
]);
|
|
2698
|
+
const ServiceContextRequest = z.enum([
|
|
2699
|
+
'customer',
|
|
2700
|
+
'provider',
|
|
2701
|
+
]);
|
|
2702
|
+
const ServiceDetailsConnectionResponse = z.looseObject({
|
|
2703
|
+
infra_provider_name: z.string(),
|
|
2704
|
+
infra_provider_slug: z.string(),
|
|
2705
|
+
specifics: ConnectionSpecificInfoDetailsResponse,
|
|
2706
|
+
});
|
|
2707
|
+
const ServiceDetailsPoiResponse = z.looseObject({
|
|
2708
|
+
cpe_hostname: z.string(),
|
|
2709
|
+
point_of_presence: z.union([PointOfPresenceResponse, z.null()]).optional(),
|
|
2710
|
+
});
|
|
2711
|
+
const ServiceDetailsPrefixHostingResponse = z.looseObject({
|
|
2712
|
+
resource: z.string(),
|
|
2713
|
+
sip_trunk_reference: z.string().nullable().optional(),
|
|
2714
|
+
});
|
|
2715
|
+
const ServicePortabilityType = z.enum([
|
|
2716
|
+
'Partial',
|
|
2717
|
+
'PartialComplex',
|
|
2718
|
+
'Total',
|
|
2719
|
+
]);
|
|
2720
|
+
const ServiceDetailsPortability = z.looseObject({
|
|
2721
|
+
idn: z.string(),
|
|
2722
|
+
rio_or_did: RioOrDid,
|
|
2723
|
+
wanted_date: z.string(),
|
|
2724
|
+
routing_prefix_id: z.string(),
|
|
2725
|
+
comments: z.string().nullable().optional(),
|
|
2726
|
+
portability_type: ServicePortabilityType,
|
|
2727
|
+
});
|
|
2728
|
+
const ServiceDetailsInnerProductResponse = z.union([
|
|
2729
|
+
z.intersection(z.looseObject({ type: z.literal('connection') }), ServiceDetailsConnectionResponse),
|
|
2730
|
+
z.intersection(z.looseObject({ type: z.literal('point_of_interconnection') }), ServiceDetailsPoiResponse),
|
|
2731
|
+
z.looseObject({ type: z.literal('sim_pack') }),
|
|
2732
|
+
z.looseObject({ type: z.literal('sip_trunk_c4') }),
|
|
2733
|
+
z.looseObject({ type: z.literal('sip_trunk_c5') }),
|
|
2734
|
+
z.intersection(z.looseObject({ type: z.literal('prefix_hosting') }), ServiceDetailsPrefixHostingResponse),
|
|
2735
|
+
z.looseObject({ type: z.literal('virtual_backbone') }),
|
|
2736
|
+
z.intersection(z.looseObject({ type: z.literal('portability') }), ServiceDetailsPortability),
|
|
2737
|
+
z.looseObject({ type: z.literal('arcep_slice_hosting') }),
|
|
2738
|
+
z.looseObject({ type: z.literal('ip_block') }),
|
|
2739
|
+
z.looseObject({ type: z.literal('unified_comms_backbone') }),
|
|
2740
|
+
z.looseObject({ type: z.literal('unified_comms_instance') }),
|
|
2741
|
+
z.looseObject({ type: z.literal('vpn_mpls') }),
|
|
2742
|
+
z.looseObject({ type: z.literal('vpn_mpls_termination') }),
|
|
2743
|
+
z.looseObject({ type: z.literal('cpe') }),
|
|
2744
|
+
z.looseObject({
|
|
2745
|
+
type: z.literal('generic'),
|
|
2746
|
+
product_category: ProductCategoryHttp,
|
|
2747
|
+
}),
|
|
2748
|
+
]);
|
|
2749
|
+
const ServiceDetailsOptionResponse = z.looseObject({
|
|
2750
|
+
description: z.string().nullable().optional(),
|
|
2751
|
+
service_id: z.string(),
|
|
2752
|
+
name: z.string(),
|
|
2753
|
+
variant_name: z.string().nullable().optional(),
|
|
2754
|
+
variant_description: z.string().nullable().optional(),
|
|
2755
|
+
product_feature_set: ProductFeatureSetApiResponse,
|
|
2756
|
+
});
|
|
2757
|
+
const ServiceKindHttp = z.union([
|
|
2758
|
+
z.enum([
|
|
2759
|
+
'connection',
|
|
2760
|
+
'point_of_interconnection',
|
|
2761
|
+
'sip_trunk',
|
|
2762
|
+
'prefix_hosting',
|
|
2763
|
+
'virtual_backbone',
|
|
2764
|
+
'arcep_slice_hosting',
|
|
2765
|
+
]),
|
|
2766
|
+
z.looseObject({
|
|
2767
|
+
generic: z.looseObject({ product_category: ProductCategoryHttp }),
|
|
2768
|
+
}),
|
|
2769
|
+
]);
|
|
2770
|
+
const ServiceStatusHttp = z.enum([
|
|
2771
|
+
'initialized',
|
|
2772
|
+
'active',
|
|
2773
|
+
'cancellation_in_progress',
|
|
2774
|
+
'cancelled',
|
|
2775
|
+
'suspended',
|
|
2776
|
+
]);
|
|
2777
|
+
const ServiceSpecificsPoiResponse = z.looseObject({
|
|
2778
|
+
point_of_presence: z.union([PointOfPresenceResponse, z.null()]).optional(),
|
|
2779
|
+
broadband_network_gateway_protocol: BroadbandNetworkGatewayProtocolHttp,
|
|
2780
|
+
});
|
|
2781
|
+
const ServiceSpecificsPrefixHostingResponse = z.looseObject({
|
|
2782
|
+
resource: z.string(),
|
|
2783
|
+
sip_trunk_reference: z.string(),
|
|
2784
|
+
});
|
|
2785
|
+
const ServiceSpecificsForListResponse = z.union([
|
|
2786
|
+
z.enum([
|
|
2787
|
+
'virtual_backbone',
|
|
2788
|
+
'sip_trunk_c4',
|
|
2789
|
+
'sip_trunk_c5',
|
|
2790
|
+
'arcep_slice_hosting',
|
|
2791
|
+
'portability_info',
|
|
2792
|
+
'generic',
|
|
2793
|
+
'mobile_data_top_up',
|
|
2794
|
+
'unified_comms_backbone',
|
|
2795
|
+
'vpn_mpls',
|
|
2796
|
+
'vpn_mpls_termination',
|
|
2797
|
+
'cpe',
|
|
2798
|
+
'esim',
|
|
2799
|
+
'sim_pack',
|
|
2800
|
+
]),
|
|
2801
|
+
z.looseObject({
|
|
2802
|
+
connection: z.looseObject({ delivery_protocol: DeliveryProtocolHttp }),
|
|
2803
|
+
}),
|
|
2804
|
+
z.looseObject({ point_of_interconnection: ServiceSpecificsPoiResponse }),
|
|
2805
|
+
z.looseObject({ prefix_hosting: ServiceSpecificsPrefixHostingResponse }),
|
|
2806
|
+
]);
|
|
2807
|
+
const ServiceForListResponse = z.looseObject({
|
|
2808
|
+
service_id: z.string(),
|
|
2809
|
+
service_type: ServiceKindHttp,
|
|
2810
|
+
reference: z.string().nullable().optional(),
|
|
2811
|
+
external_provider_reference: z.string().nullable().optional(),
|
|
2812
|
+
external_consumer_reference: z.string().nullable().optional(),
|
|
2813
|
+
product_name: z.string(),
|
|
2814
|
+
provider_name: z.string(),
|
|
2815
|
+
consumer_name: z.string(),
|
|
2816
|
+
client_name: z.string().nullable().optional(),
|
|
2817
|
+
client_address: z.union([CustomerAddressResponse, z.null()]).optional(),
|
|
2818
|
+
status: ServiceStatusHttp,
|
|
2819
|
+
commissioning_date: z.string().nullable().optional(),
|
|
2820
|
+
termination_date: z.string().nullable().optional(),
|
|
2821
|
+
resold_service_id: z.string().nullable().optional(),
|
|
2822
|
+
bought_service_id: z.string().nullable().optional(),
|
|
2823
|
+
resource: z.union([ResourceResponse, z.null()]).optional(),
|
|
2824
|
+
specifics: ServiceSpecificsForListResponse,
|
|
2825
|
+
category: ProductCategoryHttp,
|
|
2826
|
+
});
|
|
2827
|
+
const ServicePairResponse = z.looseObject({
|
|
2828
|
+
bought: z.union([ServiceForListResponse, z.null()]).optional(),
|
|
2829
|
+
resold: z.union([ServiceForListResponse, z.null()]).optional(),
|
|
2830
|
+
});
|
|
2831
|
+
const ServiceStateHttp = z.enum([
|
|
2832
|
+
'degraded',
|
|
2833
|
+
'interrupted',
|
|
2834
|
+
'other',
|
|
2835
|
+
'never_worked',
|
|
2836
|
+
]);
|
|
2837
|
+
const TicketStatusHttp = z.enum([
|
|
2838
|
+
'open',
|
|
2839
|
+
'close',
|
|
2840
|
+
'frozen',
|
|
2841
|
+
'pending_closure',
|
|
2842
|
+
]);
|
|
2843
|
+
const ServiceTicketOverviewResponse = z.looseObject({
|
|
2844
|
+
service_ticket_id: z.string(),
|
|
2845
|
+
service_id: z.string(),
|
|
2846
|
+
reference: z.string(),
|
|
2847
|
+
external_consumer_reference: z.string().nullable().optional(),
|
|
2848
|
+
external_provider_reference: z.string().nullable().optional(),
|
|
2849
|
+
custom_fields: z.array(CustomFieldHttp),
|
|
2850
|
+
state: ServiceStateHttp,
|
|
2851
|
+
customer_name: z.string(),
|
|
2852
|
+
consumer_name: z.string(),
|
|
2853
|
+
provider_name: z.string(),
|
|
2854
|
+
created_at: z.string(),
|
|
2855
|
+
updated_at: z.string(),
|
|
2856
|
+
recovery_time_guaranteed_delay: z.string().nullable().optional(),
|
|
2857
|
+
recovery_time_guaranteed_applicability: z
|
|
2858
|
+
.union([ApplicabilityHttp, z.null()])
|
|
2859
|
+
.optional(),
|
|
2860
|
+
status: TicketStatusHttp,
|
|
2861
|
+
propagated_ticket_id: z.string().nullable().optional(),
|
|
2862
|
+
propagated_ticket_status: z.union([TicketStatusHttp, z.null()]).optional(),
|
|
2863
|
+
assigned_to: z.union([UserIdentifierHttp, z.null()]).optional(),
|
|
2864
|
+
});
|
|
2865
|
+
const SignedAddressResponse = z.looseObject({
|
|
2866
|
+
value: AddressDetails,
|
|
2867
|
+
signature: z.string(),
|
|
2868
|
+
});
|
|
2869
|
+
/** `Suspend` will disconnect the simcard from the mobile network and block it. There is no way to unsuspend a simcard for now.
|
|
2870
|
+
* `ResetSession` will disconnect and reconnect the simcard from the mobile network (useful to ensure network updates are correctly applied) */
|
|
2871
|
+
const SimCardCommandHttp = z.enum([
|
|
2872
|
+
'suspend',
|
|
2873
|
+
'reset_session',
|
|
2874
|
+
]);
|
|
2875
|
+
const SortableFeature = z.union([
|
|
2876
|
+
z.looseObject({ Asc: Feature }),
|
|
2877
|
+
z.looseObject({ Desc: Feature }),
|
|
2878
|
+
]);
|
|
2879
|
+
const SubOrderResponse = z.looseObject({
|
|
2880
|
+
state: PortabilityOrderStateResponse,
|
|
2881
|
+
portability: PortabilityResponse,
|
|
2882
|
+
options: z.array(OptionResponse),
|
|
2883
|
+
call_validation: CallValidationResponse,
|
|
2884
|
+
});
|
|
2885
|
+
const SupportMessageResponse = z.intersection(z.looseObject({
|
|
2886
|
+
message_id: z.string(),
|
|
2887
|
+
message_room_id: z.string(),
|
|
2888
|
+
rank: z.number(),
|
|
2889
|
+
created_at: z.string(),
|
|
2890
|
+
sender: MessageActorResponse,
|
|
2891
|
+
private: z.boolean(),
|
|
2892
|
+
propagator_slug: z.string().nullable().optional(),
|
|
2893
|
+
propagator_name: z.string().nullable().optional(),
|
|
2894
|
+
}), z.union([
|
|
2895
|
+
z.looseObject({ file: MessageFileResponse }),
|
|
2896
|
+
z.looseObject({ text: MessageTextResponse }),
|
|
2897
|
+
z.looseObject({ system_event: MessageSystemEventResponse }),
|
|
2898
|
+
z.looseObject({ user_event: MessageUserEventResponse }),
|
|
2899
|
+
]));
|
|
2900
|
+
const TargetCatalog = z.enum(['owned', 'provider']);
|
|
2901
|
+
const TerminationDatePayload = z.union([
|
|
2902
|
+
RelativeTime,
|
|
2903
|
+
z.string(),
|
|
2904
|
+
]);
|
|
2905
|
+
/** Update a package data volume.
|
|
2906
|
+
* Volume is in bytes */
|
|
2907
|
+
const UpdatePackagePayloadHttp = z.looseObject({
|
|
2908
|
+
volume: z.number(),
|
|
2909
|
+
package_id: PackageIdentifierHttp,
|
|
2910
|
+
});
|
|
2911
|
+
const UpsertContactReporterRequest = z.looseObject({
|
|
2912
|
+
name: z.string(),
|
|
2913
|
+
email: z.string(),
|
|
2914
|
+
phone: z.string().nullable().optional(),
|
|
2915
|
+
});
|
|
2916
|
+
const WebhookHeaderResponse = z.looseObject({
|
|
2917
|
+
webhook_header_id: z.string(),
|
|
2918
|
+
webhook_id: z.string(),
|
|
2919
|
+
key: z.string(),
|
|
2920
|
+
value: z.string(),
|
|
2921
|
+
});
|
|
2922
|
+
const WebhookObjectTypeHttp = z.enum([
|
|
2923
|
+
'appointment',
|
|
2924
|
+
'consumption',
|
|
2925
|
+
'order_line',
|
|
2926
|
+
'signalization',
|
|
2927
|
+
'customer_record',
|
|
2928
|
+
'portability',
|
|
2929
|
+
'service_change',
|
|
2930
|
+
'mobile_subscription',
|
|
2931
|
+
'service',
|
|
2932
|
+
]);
|
|
2933
|
+
const WebhookResponse = z.looseObject({
|
|
2934
|
+
description: z.string().nullable().optional(),
|
|
2935
|
+
webhook_id: z.string(),
|
|
2936
|
+
notification_type: NotificationTypeHttp,
|
|
2937
|
+
url: z.string(),
|
|
2938
|
+
enabled: z.boolean(),
|
|
2939
|
+
});
|
|
2940
|
+
const WebhookSubObjectTypeHttp = z.union([
|
|
2941
|
+
z.literal('message_room'),
|
|
2942
|
+
z.literal('service_event'),
|
|
2943
|
+
]);
|
|
2944
|
+
/** The schemas of the JSON success responses, by operation (`<method> <path>`) and status code (`200`, `2XX`). */
|
|
2945
|
+
const responses = {
|
|
2946
|
+
'get /api/v1/actor/customer/{actor_id}': {
|
|
2947
|
+
'200': z.looseObject({
|
|
2948
|
+
id: z.string(),
|
|
2949
|
+
actor_id: z.string(),
|
|
2950
|
+
slug: z.string(),
|
|
2951
|
+
name: z.string(),
|
|
2952
|
+
country_id: CountryId,
|
|
2953
|
+
legal_identifier: z.string(),
|
|
2954
|
+
sub_legal_identifier: z.string().nullable().optional(),
|
|
2955
|
+
vat_number: z.string().nullable().optional(),
|
|
2956
|
+
vat_exempted: z.boolean(),
|
|
2957
|
+
company_type: z.union([CompanyTypeHttp, z.null()]).optional(),
|
|
2958
|
+
share_capital: z.union([z.string(), z.number()]).nullable().optional(),
|
|
2959
|
+
naf_ape: z.string().nullable().optional(),
|
|
2960
|
+
rcs: z.string().nullable().optional(),
|
|
2961
|
+
actor_signer: z.union([ActorSignerHttp, z.null()]).optional(),
|
|
2962
|
+
owner_actor: ActorIdentifierResponse,
|
|
2963
|
+
alias: z.string().nullable().optional(),
|
|
2964
|
+
external_customer_ref: z.string().nullable().optional(),
|
|
2965
|
+
payment_method: PaymentMethod,
|
|
2966
|
+
legal_address: CompanyAddress,
|
|
2967
|
+
billing_address: CompanyAddress,
|
|
2968
|
+
sales_contact: ContactApi,
|
|
2969
|
+
deploy_contact: ContactApi,
|
|
2970
|
+
adv_contact: ContactApi,
|
|
2971
|
+
support_contact: ContactApi,
|
|
2972
|
+
billing_contact: ContactApi,
|
|
2973
|
+
created_at: z.string(),
|
|
2974
|
+
updated_at: z.string().nullable().optional(),
|
|
2975
|
+
deleted_at: z.string().nullable().optional(),
|
|
2976
|
+
automatic_order_acceptation: z.boolean(),
|
|
2977
|
+
customer_manager: z.union([UserIdentifierHttp, z.null()]).optional(),
|
|
2978
|
+
customer_internal_category_id: z.string().nullable().optional(),
|
|
2979
|
+
salesperson: z.union([UserIdentifierHttp, z.null()]).optional(),
|
|
2980
|
+
}),
|
|
2981
|
+
},
|
|
2982
|
+
'get /api/v1/cart': {
|
|
2983
|
+
'200': z.looseObject({
|
|
2984
|
+
elements: z.array(CartResponse),
|
|
2985
|
+
total_results: z.number(),
|
|
2986
|
+
limit: z.number(),
|
|
2987
|
+
offset: z.number(),
|
|
2988
|
+
}),
|
|
2989
|
+
},
|
|
2990
|
+
'post /api/v1/cart': {
|
|
2991
|
+
'201': z.looseObject({ cart_id: z.string(), reference: z.string() }),
|
|
2992
|
+
},
|
|
2993
|
+
'put /api/v1/cart/lines/{line_id}': {
|
|
2994
|
+
'200': z.looseObject({
|
|
2995
|
+
cart_line_id: z.string(),
|
|
2996
|
+
quantity: z.number(),
|
|
2997
|
+
index: z.number(),
|
|
2998
|
+
discount: HttpCartDiscount,
|
|
2999
|
+
product: CartLineProductResponse,
|
|
3000
|
+
options: z.array(CartLineOptionResponse),
|
|
3001
|
+
context: CartLineContextResponse,
|
|
3002
|
+
}),
|
|
3003
|
+
},
|
|
3004
|
+
'get /api/v1/cart/lines/{line_id}/vertical': {
|
|
3005
|
+
'200': z.looseObject({ buildings: z.array(BuildingResponse) }),
|
|
3006
|
+
},
|
|
3007
|
+
'get /api/v1/cart/{cart_id}': {
|
|
3008
|
+
'200': z.looseObject({
|
|
3009
|
+
description: z.string().nullable().optional(),
|
|
3010
|
+
cart_id: z.string(),
|
|
3011
|
+
cart_type: CartTypeHttp,
|
|
3012
|
+
status: CartStatusHttp,
|
|
3013
|
+
buyer_id: z.string().nullable().optional(),
|
|
3014
|
+
owner_id: z.string(),
|
|
3015
|
+
reference: z.string(),
|
|
3016
|
+
external_reference: z.string().nullable().optional(),
|
|
3017
|
+
invoiced_customer: z.union([CustomerRecordHttp, z.null()]).optional(),
|
|
3018
|
+
lines_count: z.number(),
|
|
3019
|
+
total_recurring: z.union([z.string(), z.number()]).nullable().optional(),
|
|
3020
|
+
total_access_fee: z.union([z.string(), z.number()]).nullable().optional(),
|
|
3021
|
+
direct_provider_actor: z
|
|
3022
|
+
.union([ActorIdentifierResponse, z.null()])
|
|
3023
|
+
.optional(),
|
|
3024
|
+
name: z.string().nullable().optional(),
|
|
3025
|
+
created_at: z.string(),
|
|
3026
|
+
updated_at: z.string().nullable().optional(),
|
|
3027
|
+
expired_at: z.string().nullable().optional(),
|
|
3028
|
+
}),
|
|
3029
|
+
},
|
|
3030
|
+
'patch /api/v1/cart/{cart_id}': {
|
|
3031
|
+
'200': z.looseObject({
|
|
3032
|
+
description: z.string().nullable().optional(),
|
|
3033
|
+
cart_id: z.string(),
|
|
3034
|
+
cart_type: CartTypeHttp,
|
|
3035
|
+
status: CartStatusHttp,
|
|
3036
|
+
buyer_id: z.string().nullable().optional(),
|
|
3037
|
+
owner_id: z.string(),
|
|
3038
|
+
reference: z.string(),
|
|
3039
|
+
external_reference: z.string().nullable().optional(),
|
|
3040
|
+
invoiced_customer: z.union([CustomerRecordHttp, z.null()]).optional(),
|
|
3041
|
+
lines_count: z.number(),
|
|
3042
|
+
total_recurring: z.union([z.string(), z.number()]).nullable().optional(),
|
|
3043
|
+
total_access_fee: z.union([z.string(), z.number()]).nullable().optional(),
|
|
3044
|
+
direct_provider_actor: z
|
|
3045
|
+
.union([ActorIdentifierResponse, z.null()])
|
|
3046
|
+
.optional(),
|
|
3047
|
+
name: z.string().nullable().optional(),
|
|
3048
|
+
created_at: z.string(),
|
|
3049
|
+
updated_at: z.string().nullable().optional(),
|
|
3050
|
+
expired_at: z.string().nullable().optional(),
|
|
3051
|
+
}),
|
|
3052
|
+
},
|
|
3053
|
+
'get /api/v1/cart/{cart_id}/lines': {
|
|
3054
|
+
'200': z.looseObject({ lines: z.array(CartLineResponse) }),
|
|
3055
|
+
},
|
|
3056
|
+
'put /api/v1/cart/{cart_id}/lines': {
|
|
3057
|
+
'200': z.looseObject({ lines: z.array(CartLineResponse) }),
|
|
3058
|
+
},
|
|
3059
|
+
'post /api/v1/cart/{cart_id}/lines': {
|
|
3060
|
+
'200': z.looseObject({
|
|
3061
|
+
cart_line_id: z.string(),
|
|
3062
|
+
quantity: z.number(),
|
|
3063
|
+
index: z.number(),
|
|
3064
|
+
discount: HttpCartDiscount,
|
|
3065
|
+
product: CartLineProductResponse,
|
|
3066
|
+
options: z.array(CartLineOptionResponse),
|
|
3067
|
+
context: CartLineContextResponse,
|
|
3068
|
+
}),
|
|
3069
|
+
},
|
|
3070
|
+
'get /api/v1/consumption': {
|
|
3071
|
+
'200': z.array(CdrResponse),
|
|
3072
|
+
},
|
|
3073
|
+
'get /api/v1/consumption/export': {
|
|
3074
|
+
'200': z.array(CdrExportRecordResponse),
|
|
3075
|
+
},
|
|
3076
|
+
'get /api/v1/contract/marketplace': {
|
|
3077
|
+
'200': z.looseObject({
|
|
3078
|
+
elements: z.array(ContractResponse),
|
|
3079
|
+
total_results: z.number(),
|
|
3080
|
+
limit: z.number(),
|
|
3081
|
+
offset: z.number(),
|
|
3082
|
+
}),
|
|
3083
|
+
},
|
|
3084
|
+
'get /api/v1/contract/marketplace/connections': {
|
|
3085
|
+
'200': z.looseObject({
|
|
3086
|
+
elements: z.array(ExtendedComputedProductResponse),
|
|
3087
|
+
total_results: z.number(),
|
|
3088
|
+
limit: z.number(),
|
|
3089
|
+
offset: z.number(),
|
|
3090
|
+
}),
|
|
3091
|
+
},
|
|
3092
|
+
'get /api/v1/contract/marketplace/products': {
|
|
3093
|
+
'200': z.array(ExtendedComputedProductResponse),
|
|
3094
|
+
},
|
|
3095
|
+
'get /api/v1/contract/product/{contract_version_product_id}': {
|
|
3096
|
+
'200': z.union([
|
|
3097
|
+
z.intersection(z.looseObject({ kind: z.literal('Static') }), ContractVersionProductStaticResponse),
|
|
3098
|
+
z.intersection(z.looseObject({ kind: z.literal('Proxy') }), ContractVersionProductProxyResponse),
|
|
3099
|
+
]),
|
|
3100
|
+
},
|
|
3101
|
+
'post /api/v1/eligibility': {
|
|
3102
|
+
'201': z.looseObject({ id: z.string() }),
|
|
3103
|
+
},
|
|
3104
|
+
'post /api/v1/eligibility/geocode-input': {
|
|
3105
|
+
'200': z.looseObject({
|
|
3106
|
+
address_status: EligibilityGeocodedResultStatusApi,
|
|
3107
|
+
address: SignedAddressResponse,
|
|
3108
|
+
}),
|
|
3109
|
+
},
|
|
3110
|
+
'get /api/v1/eligibility/history': {
|
|
3111
|
+
'200': z.looseObject({
|
|
3112
|
+
elements: z.array(EligibilityInfo),
|
|
3113
|
+
total_results: z.number(),
|
|
3114
|
+
limit: z.number(),
|
|
3115
|
+
offset: z.number(),
|
|
3116
|
+
}),
|
|
3117
|
+
},
|
|
3118
|
+
'post /api/v1/eligibility/list-ndi': {
|
|
3119
|
+
'200': z.array(SignedAddressResponse),
|
|
3120
|
+
},
|
|
3121
|
+
'post /api/v1/eligibility/preselect': {
|
|
3122
|
+
'200': z.looseObject({
|
|
3123
|
+
default: z.union([SignedAddressResponse, z.null()]).optional(),
|
|
3124
|
+
matches: z.array(SignedAddressResponse),
|
|
3125
|
+
}),
|
|
3126
|
+
},
|
|
3127
|
+
'get /api/v1/eligibility/resolvers': {
|
|
3128
|
+
'200': z.looseObject({ resolvers: z.array(EligibilityResolver) }),
|
|
3129
|
+
},
|
|
3130
|
+
'get /api/v1/eligibility/{eligibility_id}': {
|
|
3131
|
+
'200': z.looseObject({
|
|
3132
|
+
results: z.array(EligibilityResult),
|
|
3133
|
+
filtered_out_results: z.array(EligibilityResult).nullable().optional(),
|
|
3134
|
+
}),
|
|
3135
|
+
},
|
|
3136
|
+
'get /api/v1/eligibility/{eligibility_id}/details/{product_id}': {
|
|
3137
|
+
'200': z.looseObject({
|
|
3138
|
+
description: z.string().nullable().optional(),
|
|
3139
|
+
eligibility_id: z.string(),
|
|
3140
|
+
resolver: z.string(),
|
|
3141
|
+
product_id: z.string(),
|
|
3142
|
+
contract_version_product_id: z.string(),
|
|
3143
|
+
product_name: z.string(),
|
|
3144
|
+
location: z.union([ResolvedLocationResponse, z.null()]).optional(),
|
|
3145
|
+
service_operator_name: z.string(),
|
|
3146
|
+
service_operator_slug: z.string(),
|
|
3147
|
+
infrastructure_operator_name: z.string(),
|
|
3148
|
+
infrastructure_operator_slug: z.string(),
|
|
3149
|
+
entities: z.array(EligibilityProductEntity),
|
|
3150
|
+
tailored_offer_available: z.boolean(),
|
|
3151
|
+
product_category: ProductCategoryHttp,
|
|
3152
|
+
varying_features: z.array(ProductFeatureHttp),
|
|
3153
|
+
}),
|
|
3154
|
+
},
|
|
3155
|
+
'get /api/v1/eligibility/{eligibility_id}/info': {
|
|
3156
|
+
'200': z.looseObject({
|
|
3157
|
+
eligibility_key: EligibilityKeyApi,
|
|
3158
|
+
address: AddressDetails,
|
|
3159
|
+
offer_type: z.union([OfferType, z.null()]).optional(),
|
|
3160
|
+
requested_at: z.string(),
|
|
3161
|
+
coordinates: Coordinates,
|
|
3162
|
+
}),
|
|
3163
|
+
},
|
|
3164
|
+
'get /api/v1/eligibility/{eligibility_id}/options/{entity_id}': {
|
|
3165
|
+
'200': z.looseObject({
|
|
3166
|
+
eligibility_id: z.string(),
|
|
3167
|
+
entity_id: z.string(),
|
|
3168
|
+
options: z.array(EligibilityProductOptionResponse),
|
|
3169
|
+
}),
|
|
3170
|
+
},
|
|
3171
|
+
'get /api/v1/eligibility/{eligibility_id}/status': {
|
|
3172
|
+
'200': z.looseObject({
|
|
3173
|
+
pending: z.array(z.string()).nullable().optional(),
|
|
3174
|
+
successes: z.array(EligibilityStatusSuccess).nullable().optional(),
|
|
3175
|
+
errors: z.array(z.string()).nullable().optional(),
|
|
3176
|
+
}),
|
|
3177
|
+
},
|
|
3178
|
+
'post /api/v1/file': {
|
|
3179
|
+
'200': z.looseObject({ file_id: z.string() }),
|
|
3180
|
+
},
|
|
3181
|
+
'get /api/v1/imb/closest': {
|
|
3182
|
+
'200': z.looseObject({
|
|
3183
|
+
lat: z.number(),
|
|
3184
|
+
lng: z.number(),
|
|
3185
|
+
imb_id: z.string(),
|
|
3186
|
+
imb_status: z.union([IMBStatus, z.null()]).optional(),
|
|
3187
|
+
pm_id: z.string(),
|
|
3188
|
+
pm_status: z.union([PMStatus, z.null()]).optional(),
|
|
3189
|
+
street_number: z.number(),
|
|
3190
|
+
street_number_complement: z.string().nullable().optional(),
|
|
3191
|
+
street: z.string(),
|
|
3192
|
+
city: z.string(),
|
|
3193
|
+
post_code: z.number(),
|
|
3194
|
+
}),
|
|
3195
|
+
},
|
|
3196
|
+
'get /api/v1/imb/list': {
|
|
3197
|
+
'200': z.looseObject({
|
|
3198
|
+
imb_pm: z.array(ImbPm),
|
|
3199
|
+
total_results: z.number(),
|
|
3200
|
+
limit: z.number(),
|
|
3201
|
+
offset: z.number(),
|
|
3202
|
+
}),
|
|
3203
|
+
},
|
|
3204
|
+
'get /api/v1/imb/{imb_ref}': {
|
|
3205
|
+
'200': z.looseObject({
|
|
3206
|
+
lat: z.number(),
|
|
3207
|
+
lng: z.number(),
|
|
3208
|
+
imb_id: z.string(),
|
|
3209
|
+
imb_status: z.union([IMBStatus, z.null()]).optional(),
|
|
3210
|
+
pm_id: z.string(),
|
|
3211
|
+
pm_status: z.union([PMStatus, z.null()]).optional(),
|
|
3212
|
+
street_number: z.number(),
|
|
3213
|
+
street_number_complement: z.string().nullable().optional(),
|
|
3214
|
+
street: z.string(),
|
|
3215
|
+
city: z.string(),
|
|
3216
|
+
post_code: z.number(),
|
|
3217
|
+
}),
|
|
3218
|
+
},
|
|
3219
|
+
'get /api/v1/notification/webhook': {
|
|
3220
|
+
'200': z.looseObject({
|
|
3221
|
+
total_results: z.number(),
|
|
3222
|
+
limit: z.number(),
|
|
3223
|
+
offset: z.number(),
|
|
3224
|
+
webhooks: z.array(WebhookResponse),
|
|
3225
|
+
}),
|
|
3226
|
+
},
|
|
3227
|
+
'post /api/v1/notification/webhook': {
|
|
3228
|
+
'201': z.looseObject({ webhook_id: z.string() }),
|
|
3229
|
+
},
|
|
3230
|
+
'get /api/v1/notification/webhook/{webhook_id}': {
|
|
3231
|
+
'200': z.looseObject({
|
|
3232
|
+
total_results: z.number(),
|
|
3233
|
+
limit: z.number(),
|
|
3234
|
+
offset: z.number(),
|
|
3235
|
+
headers: z.array(WebhookHeaderResponse),
|
|
3236
|
+
}),
|
|
3237
|
+
},
|
|
3238
|
+
'post /api/v1/notification/webhook/{webhook_id}': {
|
|
3239
|
+
'201': z.looseObject({ webhook_header_id: z.string() }),
|
|
3240
|
+
},
|
|
3241
|
+
'get /api/v1/orders': {
|
|
3242
|
+
'200': z.looseObject({
|
|
3243
|
+
elements: z.array(OrderDetailsResponse),
|
|
3244
|
+
total_results: z.number(),
|
|
3245
|
+
limit: z.number(),
|
|
3246
|
+
offset: z.number(),
|
|
3247
|
+
}),
|
|
3248
|
+
},
|
|
3249
|
+
'post /api/v1/orders': {
|
|
3250
|
+
'201': z.looseObject({ order_id: z.string(), reference: z.string() }),
|
|
3251
|
+
},
|
|
3252
|
+
'get /api/v1/orders/lines': {
|
|
3253
|
+
'200': z.looseObject({
|
|
3254
|
+
elements: z.array(OrderLineWithCustomerResponse),
|
|
3255
|
+
total_results: z.number(),
|
|
3256
|
+
limit: z.number(),
|
|
3257
|
+
offset: z.number(),
|
|
3258
|
+
}),
|
|
3259
|
+
},
|
|
3260
|
+
'get /api/v1/orders/lines/{order_line_id}': {
|
|
3261
|
+
'200': z.looseObject({
|
|
3262
|
+
order_line_id: z.string(),
|
|
3263
|
+
related_order_line_id: z.string().nullable().optional(),
|
|
3264
|
+
order_id: z.string(),
|
|
3265
|
+
created_at: z.string(),
|
|
3266
|
+
updated_at: z.string(),
|
|
3267
|
+
customer: z.union([CustomerResponse, z.null()]).optional(),
|
|
3268
|
+
contact: z.union([ContactResponse, z.null()]).optional(),
|
|
3269
|
+
product: ProductResponse,
|
|
3270
|
+
room_id: z.string(),
|
|
3271
|
+
mode: OrderModeResponse,
|
|
3272
|
+
context: z.union([OrderContextResponse, z.null()]).optional(),
|
|
3273
|
+
buyer_contact: z.union([BuyerContactResponse, z.null()]).optional(),
|
|
3274
|
+
comment: z.string().nullable().optional(),
|
|
3275
|
+
external_reference_buyer: z.string().nullable().optional(),
|
|
3276
|
+
external_reference_seller: z.string().nullable().optional(),
|
|
3277
|
+
reference: z.string(),
|
|
3278
|
+
buyer: ActorIdentifierResponse,
|
|
3279
|
+
seller: ActorIdentifierResponse,
|
|
3280
|
+
}),
|
|
3281
|
+
},
|
|
3282
|
+
'get /api/v1/orders/lines/{order_line_id}/messaging': {
|
|
3283
|
+
'200': z.looseObject({
|
|
3284
|
+
elements: z.array(OrderMessageResponse),
|
|
3285
|
+
total_results: z.number(),
|
|
3286
|
+
limit: z.number(),
|
|
3287
|
+
offset: z.number(),
|
|
3288
|
+
}),
|
|
3289
|
+
},
|
|
3290
|
+
'post /api/v1/orders/lines/{order_line_id}/messaging': {
|
|
3291
|
+
'201': z.string(),
|
|
3292
|
+
},
|
|
3293
|
+
'post /api/v1/orders/lines/{order_line_id}/transitions': {
|
|
3294
|
+
'200': z.looseObject({
|
|
3295
|
+
event: EventResponse,
|
|
3296
|
+
transitions: z.array(TransitionResponse),
|
|
3297
|
+
}),
|
|
3298
|
+
},
|
|
3299
|
+
'get /api/v1/orders/{order_id}': {
|
|
3300
|
+
'200': z.looseObject({
|
|
3301
|
+
order_id: z.string(),
|
|
3302
|
+
created_at: z.string(),
|
|
3303
|
+
updated_at: z.string(),
|
|
3304
|
+
mode: OrderModeResponse,
|
|
3305
|
+
comment: z.string().nullable().optional(),
|
|
3306
|
+
reference: z.string(),
|
|
3307
|
+
buyer: OrderBuyerInfoResponse,
|
|
3308
|
+
seller: ActorIdentifierResponse,
|
|
3309
|
+
lines_count: z.number(),
|
|
3310
|
+
status: z.string(),
|
|
3311
|
+
}),
|
|
3312
|
+
},
|
|
3313
|
+
'get /api/v1/orders/{order_id}/lines': {
|
|
3314
|
+
'200': z.looseObject({ lines: z.array(OrderLineWithCustomerResponse) }),
|
|
3315
|
+
},
|
|
3316
|
+
'get /api/v1/portability/operator-code/by-phone-number': {
|
|
3317
|
+
'200': z.object({}).catchall(OperatorCodesResponse),
|
|
3318
|
+
},
|
|
3319
|
+
'get /api/v1/portability/order-line/{order_line_id}': {
|
|
3320
|
+
'200': z.looseObject({ apnf_requests: z.array(ApnfRequestResponse) }),
|
|
3321
|
+
},
|
|
3322
|
+
'get /api/v1/portability/order/{order_id}': {
|
|
3323
|
+
'200': z.looseObject({
|
|
3324
|
+
order_id: z.string(),
|
|
3325
|
+
order_line_id: z.string(),
|
|
3326
|
+
information_complement: z.string().nullable().optional(),
|
|
3327
|
+
created_at: z.string(),
|
|
3328
|
+
amount: z.union([z.string(), z.number()]),
|
|
3329
|
+
sub_orders: z.array(SubOrderResponse),
|
|
3330
|
+
customer: CustomerResponse,
|
|
3331
|
+
contact: z.union([ContactResponse, z.null()]).optional(),
|
|
3332
|
+
}),
|
|
3333
|
+
},
|
|
3334
|
+
'post /api/v1/portability/order/{order_id}/delay': {
|
|
3335
|
+
'202': z.looseObject({
|
|
3336
|
+
order_id: z.string(),
|
|
3337
|
+
order_line_id: z.string(),
|
|
3338
|
+
information_complement: z.string().nullable().optional(),
|
|
3339
|
+
created_at: z.string(),
|
|
3340
|
+
amount: z.union([z.string(), z.number()]),
|
|
3341
|
+
sub_orders: z.array(SubOrderResponse),
|
|
3342
|
+
customer: CustomerResponse,
|
|
3343
|
+
contact: z.union([ContactResponse, z.null()]).optional(),
|
|
3344
|
+
}),
|
|
3345
|
+
},
|
|
3346
|
+
'get /api/v1/portability/outgoing': {
|
|
3347
|
+
'200': z.looseObject({
|
|
3348
|
+
elements: z.array(OutgoingPortabilityHttp),
|
|
3349
|
+
total_results: z.number(),
|
|
3350
|
+
limit: z.number(),
|
|
3351
|
+
offset: z.number(),
|
|
3352
|
+
}),
|
|
3353
|
+
},
|
|
3354
|
+
'get /api/v1/portability/outgoing/{outgoing_portability_id}': {
|
|
3355
|
+
'200': z.looseObject({
|
|
3356
|
+
outgoing_portability_id: z.string(),
|
|
3357
|
+
operator_code: z.string(),
|
|
3358
|
+
reference: z.string(),
|
|
3359
|
+
current_state: OutgoingPortabilityStateHttp,
|
|
3360
|
+
mop_offer_code: OutgoingPortabilityMopOfferCodeHttp,
|
|
3361
|
+
scheduled_date: z.string().nullable().optional(),
|
|
3362
|
+
idn: z.string().nullable().optional(),
|
|
3363
|
+
rio: z.string().nullable().optional(),
|
|
3364
|
+
time_slot: z.string().nullable().optional(),
|
|
3365
|
+
operators: OutgoingPortabilityOperatorsHttp,
|
|
3366
|
+
requester_operator_contact: OutgoingPortabilityRequesterOperatorContactHttp,
|
|
3367
|
+
client: OutgoingPortabilityClientHttp,
|
|
3368
|
+
}),
|
|
3369
|
+
},
|
|
3370
|
+
'get /api/v1/portability/reliability-check': {
|
|
3371
|
+
'200': z.looseObject({
|
|
3372
|
+
elements: z.array(PortabilityReliabilityCheck),
|
|
3373
|
+
total_results: z.number(),
|
|
3374
|
+
limit: z.number(),
|
|
3375
|
+
offset: z.number(),
|
|
3376
|
+
}),
|
|
3377
|
+
},
|
|
3378
|
+
'post /api/v1/portability/reliability-check': {
|
|
3379
|
+
'201': z.looseObject({
|
|
3380
|
+
id: z.string(),
|
|
3381
|
+
actor_id: z.string(),
|
|
3382
|
+
reference: z.string(),
|
|
3383
|
+
idn: z.string(),
|
|
3384
|
+
customer: PortabilityCustomer,
|
|
3385
|
+
state: ReliabilityCheckState,
|
|
3386
|
+
created_at: z.string(),
|
|
3387
|
+
updated_at: z.string(),
|
|
3388
|
+
}),
|
|
3389
|
+
},
|
|
3390
|
+
'get /api/v1/portability/reliability-check/{reliability_check_id}': {
|
|
3391
|
+
'200': z.looseObject({
|
|
3392
|
+
id: z.string(),
|
|
3393
|
+
actor_id: z.string(),
|
|
3394
|
+
reference: z.string(),
|
|
3395
|
+
idn: z.string(),
|
|
3396
|
+
customer: PortabilityCustomer,
|
|
3397
|
+
state: ReliabilityCheckState,
|
|
3398
|
+
created_at: z.string(),
|
|
3399
|
+
updated_at: z.string(),
|
|
3400
|
+
}),
|
|
3401
|
+
},
|
|
3402
|
+
'get /api/v1/provisioning/technical-info/{service_id}': {
|
|
3403
|
+
'200': z.union([
|
|
3404
|
+
z.looseObject({ l2_information: L2TechnicalInformationResponse }),
|
|
3405
|
+
z.looseObject({ l2tp_information: L2TPTechnicalInformationResponse }),
|
|
3406
|
+
z.looseObject({ l3_information: L3TechnicalInformationResponse }),
|
|
3407
|
+
z.looseObject({
|
|
3408
|
+
mobile_information: MobileTechnicalInformationResponseLegacyCompat,
|
|
3409
|
+
}),
|
|
3410
|
+
z.looseObject({ poi_information: PoiTechnicalInformationResponse }),
|
|
3411
|
+
z.looseObject({ other: OtherTechnicalInformationResponse }),
|
|
3412
|
+
]),
|
|
3413
|
+
},
|
|
3414
|
+
'get /api/v1/service': {
|
|
3415
|
+
'200': z.looseObject({
|
|
3416
|
+
services: z.array(ServicePairResponse),
|
|
3417
|
+
total_results: z.number(),
|
|
3418
|
+
limit: z.number(),
|
|
3419
|
+
offset: z.number(),
|
|
3420
|
+
}),
|
|
3421
|
+
},
|
|
3422
|
+
'post /api/v1/service/available-backbone': {
|
|
3423
|
+
'200': z.looseObject({ backbones: z.array(AvailableBackbone) }),
|
|
3424
|
+
},
|
|
3425
|
+
'get /api/v1/service/routing-profile': {
|
|
3426
|
+
'200': z.looseObject({
|
|
3427
|
+
routing_profiles: z.array(RoutingProfile),
|
|
3428
|
+
total_results: z.number(),
|
|
3429
|
+
limit: z.number(),
|
|
3430
|
+
offset: z.number(),
|
|
3431
|
+
}),
|
|
3432
|
+
},
|
|
3433
|
+
'get /api/v1/service/signalization': {
|
|
3434
|
+
'200': z.looseObject({
|
|
3435
|
+
tickets: z.array(ServiceTicketOverviewResponse),
|
|
3436
|
+
total_results: z.number(),
|
|
3437
|
+
limit: z.number(),
|
|
3438
|
+
offset: z.number(),
|
|
3439
|
+
}),
|
|
3440
|
+
},
|
|
3441
|
+
'post /api/v1/service/signalization': {
|
|
3442
|
+
'201': z.looseObject({
|
|
3443
|
+
service_ticket_id: z.string(),
|
|
3444
|
+
service_id: z.string(),
|
|
3445
|
+
state: ServiceStateHttp,
|
|
3446
|
+
}),
|
|
3447
|
+
},
|
|
3448
|
+
'get /api/v1/service/signalization/{service_ticket_id}': {
|
|
3449
|
+
'200': z.looseObject({
|
|
3450
|
+
description: z.string(),
|
|
3451
|
+
service_ticket_id: z.string(),
|
|
3452
|
+
service_id: z.string(),
|
|
3453
|
+
state: ServiceStateHttp,
|
|
3454
|
+
ticket_id: z.string(),
|
|
3455
|
+
reference: z.string(),
|
|
3456
|
+
created_at: z.string(),
|
|
3457
|
+
closed_at: z.string().nullable().optional(),
|
|
3458
|
+
status: TicketStatusHttp,
|
|
3459
|
+
room_id: z.string(),
|
|
3460
|
+
contact: ContactDetailsResponse,
|
|
3461
|
+
contact_reporter: z
|
|
3462
|
+
.union([ContactReporterDetailsResponse, z.null()])
|
|
3463
|
+
.optional(),
|
|
3464
|
+
history: z.array(ApiStateMachineEvent),
|
|
3465
|
+
recovery_time_guaranteed_delay: z.string().nullable().optional(),
|
|
3466
|
+
recovery_time_guaranteed_applicability: z
|
|
3467
|
+
.union([ApplicabilityHttp, z.null()])
|
|
3468
|
+
.optional(),
|
|
3469
|
+
responsibility: z
|
|
3470
|
+
.union([ServiceTicketResponsibilityHttp, z.null()])
|
|
3471
|
+
.optional(),
|
|
3472
|
+
gtr_overrun: z.string().nullable().optional(),
|
|
3473
|
+
provider_slug: z.string(),
|
|
3474
|
+
product_name: z.string(),
|
|
3475
|
+
channel: ServiceActorChannelHttp,
|
|
3476
|
+
external_consumer_reference: z.string().nullable().optional(),
|
|
3477
|
+
external_provider_reference: z.string().nullable().optional(),
|
|
3478
|
+
propagated_ticket_id: z.string().nullable().optional(),
|
|
3479
|
+
propagated_ticket_status: z
|
|
3480
|
+
.union([TicketStatusHttp, z.null()])
|
|
3481
|
+
.optional(),
|
|
3482
|
+
files: z.array(FileLinkResponse),
|
|
3483
|
+
assigned_to: z.union([UserIdentifierHttp, z.null()]).optional(),
|
|
3484
|
+
}),
|
|
3485
|
+
},
|
|
3486
|
+
'patch /api/v1/service/signalization/{service_ticket_id}': {
|
|
3487
|
+
'200': z.looseObject({
|
|
3488
|
+
description: z.string(),
|
|
3489
|
+
service_ticket_id: z.string(),
|
|
3490
|
+
service_id: z.string(),
|
|
3491
|
+
state: ServiceStateHttp,
|
|
3492
|
+
ticket_id: z.string(),
|
|
3493
|
+
reference: z.string(),
|
|
3494
|
+
created_at: z.string(),
|
|
3495
|
+
closed_at: z.string().nullable().optional(),
|
|
3496
|
+
status: TicketStatusHttp,
|
|
3497
|
+
room_id: z.string(),
|
|
3498
|
+
contact: ContactDetailsResponse,
|
|
3499
|
+
contact_reporter: z
|
|
3500
|
+
.union([ContactReporterDetailsResponse, z.null()])
|
|
3501
|
+
.optional(),
|
|
3502
|
+
history: z.array(ApiStateMachineEvent),
|
|
3503
|
+
recovery_time_guaranteed_delay: z.string().nullable().optional(),
|
|
3504
|
+
recovery_time_guaranteed_applicability: z
|
|
3505
|
+
.union([ApplicabilityHttp, z.null()])
|
|
3506
|
+
.optional(),
|
|
3507
|
+
responsibility: z
|
|
3508
|
+
.union([ServiceTicketResponsibilityHttp, z.null()])
|
|
3509
|
+
.optional(),
|
|
3510
|
+
gtr_overrun: z.string().nullable().optional(),
|
|
3511
|
+
provider_slug: z.string(),
|
|
3512
|
+
product_name: z.string(),
|
|
3513
|
+
channel: ServiceActorChannelHttp,
|
|
3514
|
+
external_consumer_reference: z.string().nullable().optional(),
|
|
3515
|
+
external_provider_reference: z.string().nullable().optional(),
|
|
3516
|
+
propagated_ticket_id: z.string().nullable().optional(),
|
|
3517
|
+
propagated_ticket_status: z
|
|
3518
|
+
.union([TicketStatusHttp, z.null()])
|
|
3519
|
+
.optional(),
|
|
3520
|
+
files: z.array(FileLinkResponse),
|
|
3521
|
+
assigned_to: z.union([UserIdentifierHttp, z.null()]).optional(),
|
|
3522
|
+
}),
|
|
3523
|
+
},
|
|
3524
|
+
'patch /api/v1/service/signalization/{service_ticket_id}/close': {
|
|
3525
|
+
'200': z.looseObject({
|
|
3526
|
+
description: z.string(),
|
|
3527
|
+
service_ticket_id: z.string(),
|
|
3528
|
+
service_id: z.string(),
|
|
3529
|
+
state: ServiceStateHttp,
|
|
3530
|
+
ticket_id: z.string(),
|
|
3531
|
+
reference: z.string(),
|
|
3532
|
+
created_at: z.string(),
|
|
3533
|
+
closed_at: z.string().nullable().optional(),
|
|
3534
|
+
status: TicketStatusHttp,
|
|
3535
|
+
room_id: z.string(),
|
|
3536
|
+
contact: ContactDetailsResponse,
|
|
3537
|
+
contact_reporter: z
|
|
3538
|
+
.union([ContactReporterDetailsResponse, z.null()])
|
|
3539
|
+
.optional(),
|
|
3540
|
+
history: z.array(ApiStateMachineEvent),
|
|
3541
|
+
recovery_time_guaranteed_delay: z.string().nullable().optional(),
|
|
3542
|
+
recovery_time_guaranteed_applicability: z
|
|
3543
|
+
.union([ApplicabilityHttp, z.null()])
|
|
3544
|
+
.optional(),
|
|
3545
|
+
responsibility: z
|
|
3546
|
+
.union([ServiceTicketResponsibilityHttp, z.null()])
|
|
3547
|
+
.optional(),
|
|
3548
|
+
gtr_overrun: z.string().nullable().optional(),
|
|
3549
|
+
provider_slug: z.string(),
|
|
3550
|
+
product_name: z.string(),
|
|
3551
|
+
channel: ServiceActorChannelHttp,
|
|
3552
|
+
external_consumer_reference: z.string().nullable().optional(),
|
|
3553
|
+
external_provider_reference: z.string().nullable().optional(),
|
|
3554
|
+
propagated_ticket_id: z.string().nullable().optional(),
|
|
3555
|
+
propagated_ticket_status: z
|
|
3556
|
+
.union([TicketStatusHttp, z.null()])
|
|
3557
|
+
.optional(),
|
|
3558
|
+
files: z.array(FileLinkResponse),
|
|
3559
|
+
assigned_to: z.union([UserIdentifierHttp, z.null()]).optional(),
|
|
3560
|
+
}),
|
|
3561
|
+
},
|
|
3562
|
+
'patch /api/v1/service/signalization/{service_ticket_id}/freeze': {
|
|
3563
|
+
'200': z.looseObject({
|
|
3564
|
+
description: z.string(),
|
|
3565
|
+
service_ticket_id: z.string(),
|
|
3566
|
+
service_id: z.string(),
|
|
3567
|
+
state: ServiceStateHttp,
|
|
3568
|
+
ticket_id: z.string(),
|
|
3569
|
+
reference: z.string(),
|
|
3570
|
+
created_at: z.string(),
|
|
3571
|
+
closed_at: z.string().nullable().optional(),
|
|
3572
|
+
status: TicketStatusHttp,
|
|
3573
|
+
room_id: z.string(),
|
|
3574
|
+
contact: ContactDetailsResponse,
|
|
3575
|
+
contact_reporter: z
|
|
3576
|
+
.union([ContactReporterDetailsResponse, z.null()])
|
|
3577
|
+
.optional(),
|
|
3578
|
+
history: z.array(ApiStateMachineEvent),
|
|
3579
|
+
recovery_time_guaranteed_delay: z.string().nullable().optional(),
|
|
3580
|
+
recovery_time_guaranteed_applicability: z
|
|
3581
|
+
.union([ApplicabilityHttp, z.null()])
|
|
3582
|
+
.optional(),
|
|
3583
|
+
responsibility: z
|
|
3584
|
+
.union([ServiceTicketResponsibilityHttp, z.null()])
|
|
3585
|
+
.optional(),
|
|
3586
|
+
gtr_overrun: z.string().nullable().optional(),
|
|
3587
|
+
provider_slug: z.string(),
|
|
3588
|
+
product_name: z.string(),
|
|
3589
|
+
channel: ServiceActorChannelHttp,
|
|
3590
|
+
external_consumer_reference: z.string().nullable().optional(),
|
|
3591
|
+
external_provider_reference: z.string().nullable().optional(),
|
|
3592
|
+
propagated_ticket_id: z.string().nullable().optional(),
|
|
3593
|
+
propagated_ticket_status: z
|
|
3594
|
+
.union([TicketStatusHttp, z.null()])
|
|
3595
|
+
.optional(),
|
|
3596
|
+
files: z.array(FileLinkResponse),
|
|
3597
|
+
assigned_to: z.union([UserIdentifierHttp, z.null()]).optional(),
|
|
3598
|
+
}),
|
|
3599
|
+
},
|
|
3600
|
+
'get /api/v1/service/signalization/{service_ticket_id}/messaging': {
|
|
3601
|
+
'200': z.looseObject({
|
|
3602
|
+
elements: z.array(SupportMessageResponse),
|
|
3603
|
+
total_results: z.number(),
|
|
3604
|
+
limit: z.number(),
|
|
3605
|
+
offset: z.number(),
|
|
3606
|
+
}),
|
|
3607
|
+
},
|
|
3608
|
+
'post /api/v1/service/signalization/{service_ticket_id}/messaging': {
|
|
3609
|
+
'201': z.string(),
|
|
3610
|
+
},
|
|
3611
|
+
'patch /api/v1/service/signalization/{service_ticket_id}/reopen': {
|
|
3612
|
+
'200': z.looseObject({
|
|
3613
|
+
description: z.string(),
|
|
3614
|
+
service_ticket_id: z.string(),
|
|
3615
|
+
service_id: z.string(),
|
|
3616
|
+
state: ServiceStateHttp,
|
|
3617
|
+
ticket_id: z.string(),
|
|
3618
|
+
reference: z.string(),
|
|
3619
|
+
created_at: z.string(),
|
|
3620
|
+
closed_at: z.string().nullable().optional(),
|
|
3621
|
+
status: TicketStatusHttp,
|
|
3622
|
+
room_id: z.string(),
|
|
3623
|
+
contact: ContactDetailsResponse,
|
|
3624
|
+
contact_reporter: z
|
|
3625
|
+
.union([ContactReporterDetailsResponse, z.null()])
|
|
3626
|
+
.optional(),
|
|
3627
|
+
history: z.array(ApiStateMachineEvent),
|
|
3628
|
+
recovery_time_guaranteed_delay: z.string().nullable().optional(),
|
|
3629
|
+
recovery_time_guaranteed_applicability: z
|
|
3630
|
+
.union([ApplicabilityHttp, z.null()])
|
|
3631
|
+
.optional(),
|
|
3632
|
+
responsibility: z
|
|
3633
|
+
.union([ServiceTicketResponsibilityHttp, z.null()])
|
|
3634
|
+
.optional(),
|
|
3635
|
+
gtr_overrun: z.string().nullable().optional(),
|
|
3636
|
+
provider_slug: z.string(),
|
|
3637
|
+
product_name: z.string(),
|
|
3638
|
+
channel: ServiceActorChannelHttp,
|
|
3639
|
+
external_consumer_reference: z.string().nullable().optional(),
|
|
3640
|
+
external_provider_reference: z.string().nullable().optional(),
|
|
3641
|
+
propagated_ticket_id: z.string().nullable().optional(),
|
|
3642
|
+
propagated_ticket_status: z
|
|
3643
|
+
.union([TicketStatusHttp, z.null()])
|
|
3644
|
+
.optional(),
|
|
3645
|
+
files: z.array(FileLinkResponse),
|
|
3646
|
+
assigned_to: z.union([UserIdentifierHttp, z.null()]).optional(),
|
|
3647
|
+
}),
|
|
3648
|
+
},
|
|
3649
|
+
'patch /api/v1/service/signalization/{service_ticket_id}/unfreeze': {
|
|
3650
|
+
'200': z.looseObject({
|
|
3651
|
+
description: z.string(),
|
|
3652
|
+
service_ticket_id: z.string(),
|
|
3653
|
+
service_id: z.string(),
|
|
3654
|
+
state: ServiceStateHttp,
|
|
3655
|
+
ticket_id: z.string(),
|
|
3656
|
+
reference: z.string(),
|
|
3657
|
+
created_at: z.string(),
|
|
3658
|
+
closed_at: z.string().nullable().optional(),
|
|
3659
|
+
status: TicketStatusHttp,
|
|
3660
|
+
room_id: z.string(),
|
|
3661
|
+
contact: ContactDetailsResponse,
|
|
3662
|
+
contact_reporter: z
|
|
3663
|
+
.union([ContactReporterDetailsResponse, z.null()])
|
|
3664
|
+
.optional(),
|
|
3665
|
+
history: z.array(ApiStateMachineEvent),
|
|
3666
|
+
recovery_time_guaranteed_delay: z.string().nullable().optional(),
|
|
3667
|
+
recovery_time_guaranteed_applicability: z
|
|
3668
|
+
.union([ApplicabilityHttp, z.null()])
|
|
3669
|
+
.optional(),
|
|
3670
|
+
responsibility: z
|
|
3671
|
+
.union([ServiceTicketResponsibilityHttp, z.null()])
|
|
3672
|
+
.optional(),
|
|
3673
|
+
gtr_overrun: z.string().nullable().optional(),
|
|
3674
|
+
provider_slug: z.string(),
|
|
3675
|
+
product_name: z.string(),
|
|
3676
|
+
channel: ServiceActorChannelHttp,
|
|
3677
|
+
external_consumer_reference: z.string().nullable().optional(),
|
|
3678
|
+
external_provider_reference: z.string().nullable().optional(),
|
|
3679
|
+
propagated_ticket_id: z.string().nullable().optional(),
|
|
3680
|
+
propagated_ticket_status: z
|
|
3681
|
+
.union([TicketStatusHttp, z.null()])
|
|
3682
|
+
.optional(),
|
|
3683
|
+
files: z.array(FileLinkResponse),
|
|
3684
|
+
assigned_to: z.union([UserIdentifierHttp, z.null()]).optional(),
|
|
3685
|
+
}),
|
|
3686
|
+
},
|
|
3687
|
+
'get /api/v1/service/simcard/consumption': {
|
|
3688
|
+
'200': z.looseObject({
|
|
3689
|
+
monthly_volume_in_bytes: z.number(),
|
|
3690
|
+
price: z.union([z.string(), z.number()]).nullable().optional(),
|
|
3691
|
+
}),
|
|
3692
|
+
},
|
|
3693
|
+
'get /api/v1/service/simcard/consumption-history': {
|
|
3694
|
+
'200': z.looseObject({
|
|
3695
|
+
step: ConsumptionStepHttp,
|
|
3696
|
+
history: z.array(ConsumptionHistoryValueResponse),
|
|
3697
|
+
}),
|
|
3698
|
+
},
|
|
3699
|
+
'get /api/v1/service/simcard/consumptions': {
|
|
3700
|
+
'200': z.looseObject({
|
|
3701
|
+
elements: z.array(ConsumptionAndQuotaWithServiceIdResponse),
|
|
3702
|
+
total_results: z.number(),
|
|
3703
|
+
limit: z.number(),
|
|
3704
|
+
offset: z.number(),
|
|
3705
|
+
}),
|
|
3706
|
+
},
|
|
3707
|
+
'get /api/v1/service/simcard/fleet-consumptions-history': {
|
|
3708
|
+
'200': z.looseObject({
|
|
3709
|
+
elements: z.array(MonthlyConsumptionHistoryResponse),
|
|
3710
|
+
total_results: z.number(),
|
|
3711
|
+
limit: z.number(),
|
|
3712
|
+
offset: z.number(),
|
|
3713
|
+
}),
|
|
3714
|
+
},
|
|
3715
|
+
'get /api/v1/service/simcard/{service_id}/consumption': {
|
|
3716
|
+
'200': z.looseObject({
|
|
3717
|
+
service_id: z.string(),
|
|
3718
|
+
daily_volume_in_bytes: z.number(),
|
|
3719
|
+
monthly_volume_in_bytes: z.number(),
|
|
3720
|
+
monthly_quota_in_bytes: z.number(),
|
|
3721
|
+
extensions: z.array(QuotaExtensionResponse),
|
|
3722
|
+
}),
|
|
3723
|
+
},
|
|
3724
|
+
'get /api/v1/service/simcard/{service_id}/consumption-history': {
|
|
3725
|
+
'200': z.looseObject({
|
|
3726
|
+
step: ConsumptionStepHttp,
|
|
3727
|
+
history: z.array(ConsumptionHistoryValueResponse),
|
|
3728
|
+
}),
|
|
3729
|
+
},
|
|
3730
|
+
'get /api/v1/service/{service_id}': {
|
|
3731
|
+
'200': z.looseObject({
|
|
3732
|
+
service_id: z.string(),
|
|
3733
|
+
order_line_id: z.string().nullable().optional(),
|
|
3734
|
+
status: ServiceStatusHttp,
|
|
3735
|
+
status_date: z.string(),
|
|
3736
|
+
commissioning_date: z.string().nullable().optional(),
|
|
3737
|
+
termination_date: z.string().nullable().optional(),
|
|
3738
|
+
reference: z.string(),
|
|
3739
|
+
external_provider_reference: z.string().nullable().optional(),
|
|
3740
|
+
external_consumer_reference: z.string().nullable().optional(),
|
|
3741
|
+
product_name: z.string(),
|
|
3742
|
+
product_description: z.string().nullable().optional(),
|
|
3743
|
+
product_feature_set: ProductFeatureSetApiResponse,
|
|
3744
|
+
final_client: z.union([FinalClientResponse, z.null()]).optional(),
|
|
3745
|
+
provider_name: z.string(),
|
|
3746
|
+
provider_slug: z.string(),
|
|
3747
|
+
client_name: z.string(),
|
|
3748
|
+
client_slug: z.string(),
|
|
3749
|
+
resold_service_id: z.string().nullable().optional(),
|
|
3750
|
+
bought_service_id: z.string().nullable().optional(),
|
|
3751
|
+
inner_product: z
|
|
3752
|
+
.union([ServiceDetailsInnerProductResponse, z.null()])
|
|
3753
|
+
.optional(),
|
|
3754
|
+
options: z.array(ServiceDetailsOptionResponse),
|
|
3755
|
+
category: ProductCategoryHttp,
|
|
3756
|
+
resource: z.union([ResourceResponse, z.null()]).optional(),
|
|
3757
|
+
}),
|
|
3758
|
+
},
|
|
3759
|
+
'patch /api/v1/service/{service_id}': {
|
|
3760
|
+
'200': z.looseObject({
|
|
3761
|
+
service_id: z.string(),
|
|
3762
|
+
order_line_id: z.string().nullable().optional(),
|
|
3763
|
+
status: ServiceStatusHttp,
|
|
3764
|
+
status_date: z.string(),
|
|
3765
|
+
commissioning_date: z.string().nullable().optional(),
|
|
3766
|
+
termination_date: z.string().nullable().optional(),
|
|
3767
|
+
reference: z.string(),
|
|
3768
|
+
external_provider_reference: z.string().nullable().optional(),
|
|
3769
|
+
external_consumer_reference: z.string().nullable().optional(),
|
|
3770
|
+
product_name: z.string(),
|
|
3771
|
+
product_description: z.string().nullable().optional(),
|
|
3772
|
+
product_feature_set: ProductFeatureSetApiResponse,
|
|
3773
|
+
final_client: z.union([FinalClientResponse, z.null()]).optional(),
|
|
3774
|
+
provider_name: z.string(),
|
|
3775
|
+
provider_slug: z.string(),
|
|
3776
|
+
client_name: z.string(),
|
|
3777
|
+
client_slug: z.string(),
|
|
3778
|
+
resold_service_id: z.string().nullable().optional(),
|
|
3779
|
+
bought_service_id: z.string().nullable().optional(),
|
|
3780
|
+
inner_product: z
|
|
3781
|
+
.union([ServiceDetailsInnerProductResponse, z.null()])
|
|
3782
|
+
.optional(),
|
|
3783
|
+
options: z.array(ServiceDetailsOptionResponse),
|
|
3784
|
+
category: ProductCategoryHttp,
|
|
3785
|
+
resource: z.union([ResourceResponse, z.null()]).optional(),
|
|
3786
|
+
}),
|
|
3787
|
+
},
|
|
3788
|
+
'get /api/v1/service/{service_id}/vlan': {
|
|
3789
|
+
'200': z.array(PoiL2VlanHttp),
|
|
3790
|
+
},
|
|
3791
|
+
'get /api/v1/vas/{country}/{vas_number}': {
|
|
3792
|
+
'200': z.looseObject({
|
|
3793
|
+
country_id: CountryId,
|
|
3794
|
+
phone_number: z.string(),
|
|
3795
|
+
beginning_of_validity: z.string(),
|
|
3796
|
+
rate_per_sec_without_vat: z.union([z.string(), z.number()]),
|
|
3797
|
+
call_charge_without_vat: z.union([z.string(), z.number()]),
|
|
3798
|
+
rate_per_sec_with_vat: z.union([z.string(), z.number()]),
|
|
3799
|
+
call_charge_with_vat: z.union([z.string(), z.number()]),
|
|
3800
|
+
is_free: z.boolean(),
|
|
3801
|
+
}),
|
|
3802
|
+
},
|
|
3803
|
+
};
|
|
3804
|
+
|
|
3805
|
+
export { AcquisitionTypeHttp, ActorIdentifierResponse, ActorSignerHttp, AddExtensionPayloadHttp, Address, AddressDetails, AddressHttp, AddressQueryApi, AddressWithSignature, AllocatedArcepSliceResponse, ApiStateMachineEvent, ApnHttp, ApnfRequestResponse, ApnfRequestStateResponse, ApplicabilityHttp, ArcepSliceHostingHttp, ArcepSliceResponse, ArcepSliceSipTrunkC4Response, AssignedFilterHttp, AssignedParamsHttp, AvailabilityForecastHttp, AvailabilityForecastRangeMonthsHttp, AvailabilityForecastYearMonthHttp, AvailabilityStatusHttp, AvailabilityStatusUnavailable, AvailabilityStatusUnavailableReason, AvailableBackbone, BroadbandNetworkGatewayProtocolHttp, BuildingResponse, BuyerContactResponse, CallValidationResponse, CartEligibilityProductRequest, CartItemEntityRequest, CartItemSpecificsResponse, CartItemUpdateRequest, CartLineConnectionInfoResponse, CartLineContextResponse, CartLineOptionResponse, CartLineProductResponse, CartLineRequest, CartLineResponse, CartPortabilityTypeHttp, CartResponse, CartStatusHttp, CartTypeHttp, CatalogProductOptionRequest, CatalogProductRequest, CatalogProductResponse, CdrEventDetailsDataResponse, CdrEventDetailsResponse, CdrEventDetailsVoiceCallResponse, CdrEventTypeRequest, CdrExportRecordResponse, CdrInfraDetailsMobileResponse, CdrInfraDetailsResponse, CdrInfraTypeRequest, CdrResponse, CloseServiceTicketCustomerRequest, CloseServiceTicketProviderRequest, CompanyAddress, CompanyTypeHttp, ComplianceLevelHttp, ConfigurationStatusHttp, ConnectionInfoInfrastructureDetailsResponse, ConnectionInfoInfrastructureHttp, ConnectionInfoProtocolDetailsResponse, ConnectionInfoProtocolHttp, ConnectionInfoProtocolResponse, ConnectionInfoResponse, ConnectionRequest, ConnectionSpecificInfoDetailsResponse, ConnectionStatusHttp, ConnectionStatusResponse, ConsumptionAndQuotaWithServiceIdResponse, ConsumptionHistoryValueResponse, ConsumptionStepHttp, ContactApi, ContactDetailsResponse, ContactReporterDetailsResponse, ContactRequest, ContactResponse, ContractResponse, ContractVersionProductBaseResponse, ContractVersionProductProxyResponse, ContractVersionProductStaticResponse, Coordinates, CoordinatesHttp, CoordinatesQueryApi, CopperPairNumberHttp, CountryHttp, CountryId, CreateCartContextRequest, CreateContactRequest, CreateOrderLineRequest, CurrencyHttp, CurrencyId, CustomFieldHttp, CustomerAddress, CustomerAddressResponse, CustomerContact, CustomerLocationHttp, CustomerRecordHttp, CustomerRequest, CustomerResponse, CustomerSignerHttp, DataQuotaValueHttp, DeliveryProtocolHttp, DeploymentInfoResponse, EligibilityAddressHttp, EligibilityFtthPayload, EligibilityGeocodeAddressContentApi, EligibilityGeocodeCoordinatesContentApi, EligibilityGeocodeImbContentApi, EligibilityGeocodePhoneContentApi, EligibilityGeocodeSignedContentApi, EligibilityGeocodedResultStatusApi, EligibilityInfo, EligibilityKeyApi, EligibilityListNdiInputTypeApi, EligibilityProductEntity, EligibilityProductOptionResponse, EligibilityResolver, EligibilityResult, EligibilityResultEntity, EligibilityStatusSuccess, EmergencyAddress, EmergencyAddressUpdatePayload, EndCustomerRequest, EsignatureSignedDataHttp, EventDirectionResponse, EventResponse, ExtendedComputedProductResponse, Feature, FileLinkRequest, FileLinkResponse, FinalClientResponse, FloorResponse, GenericIncidentCloseDataHttp, GenericIncidentOpenDataHttp, GenericIncidentTechnologyHttp, GenericIncidentUpdateDataHttp, GenericInfoResponse, GenericProductPricingRequest, GenericProductRequest, HnoHttp, HttpCartDiscount, HttpDiscount, HttpDiscountType, IMBStatus, ImbInfoCurrentHttp, ImbInfoCurrentResponse, ImbInfoHttp, ImbInfoLegacyHttp, ImbInfoLegacyResponse, ImbInfoResponse, ImbPm, ImbPmAddressQuery, ImbPmBoundsQuery, ImbPmHalfSideQuery, IndexedCartItemRequest, InfraTypeHttp, InterfaceTypeHttp, IpAddressKindHttp, IpAddressVersionHttp, IpBlockResponse, L2RedundancyCompatHttp, L2RedundancyInfoDetailsResponse, L2TPTechnicalInformationResponse, L2TechnicalInformationResponse, L2tpInterconnectionTechnicalInfoHttp, L2tpPoiInfoHttp, L2xInfoDetailsResponse, L2xInfoHttp, L2xInfoSpecificHttp, L3IpAssignmentResponse, L3OverL2xInfoHttp, L3OverL2xInfoResponse, L3OverXDetailsResponse, L3TechnicalInformationResponse, LegacyResourceUpdatePayload, LocaleHttp, LocaleId, MailingAddressHttp, MailingAddressResponse, MarginGroupHttp, MarginStepHttp, MessageActorResponse, MessageAuthorContactResponse, MessageFileResponse, MessageKindRequest, MessageStatusHttp, MessageSystemEventResponse, MessageTextResponse, MessageUserEventResponse, MobileDataConsumptionResponse, MobileDataExtensionsResponse, MobileInfoHttp, MobileNetworkTechnologyHttp, MobileResponse, MobileTechnicalInformationResponseLegacyCompat, MonthlyConsumptionHistoryResponse, MopOfferCodeHttp, NotificationTypeHttp, OfferType, OpeningHoursHttp, OperatorCodesResponse, OptionResponse, OrderBuyerInfoResponse, OrderContextResponse, OrderDetailsResponse, OrderDiscountResponse, OrderLineDiscountsResponse, OrderLineOptionApiResponse, OrderLineStatusHttp, OrderLineWithCustomerResponse, OrderMessageResponse, OrderModeResponse, OrderPortabilityType, OrderStatusHttp, OrderTransitionRequest, OrderType, OtherTechnicalInformationResponse, OtpResponse, OutgoingPortabilityClientHttp, OutgoingPortabilityCrContentRequest, OutgoingPortabilityCrKoRequest, OutgoingPortabilityCrOkRequest, OutgoingPortabilityCrRejectionCodeRequest, OutgoingPortabilityCrStatusRequest, OutgoingPortabilityCriOkRequest, OutgoingPortabilityCriStatusRequest, OutgoingPortabilityHttp, OutgoingPortabilityMopOfferCodeHttp, OutgoingPortabilityOperatorsHttp, OutgoingPortabilityRequesterOperatorContactHttp, OutgoingPortabilityStateHttp, PMStatus, PackageIdentifierHttp, PackageIdentifierMonthlyHttp, PackageMonthly, PaymentMethod, PaymentTermHttp, PenaltyHttp, PhoneNumberQueryApi, PhoneNumberStatus, PhysicalDeploymentInfoHttp, PoiCollectionScopeHttp, PoiL2VlanHttp, PoiTechnicalInformationResponse, PointOfInterconnectionRequest, PointOfPresenceResponse, PortabilityCustomer, PortabilityInfoResponse, PortabilityOrderStateResponse, PortabilityPrefixResponse, PortabilityProductRequest, PortabilityReliabilityCheck, PortabilityRequest, PortabilityResponse, PortabilityRoutingHttp, PrefixHostingInfoResponse, PrefixHostingRequest, PriceFormattingValueHttp, PricingSideRequest, ProductActor, ProductCategoryHttp, ProductFeatureHttp, ProductFeatureSetApiResponse, ProductKindResponse, ProductOptionResponse, ProductOptionTypeHttp, ProductOptionVariantResponse, ProductResponse, ProductSpecificAttributes, ProposalCommitmentHttp, PtoStatusHttp, PurchaseUpdateCartRequest, QuotaExtensionResponse, RadiusServerHttp, RatingDetailsResponse, RatingResponse, RedundancyHttp, RedundancyKindHttp, RelativeTime, ReliabilityCheckState, ReliabilityCheckStateDiscriminant, ResolvedLocationResponse, ResourceResponse, RioOrDid, RoutingProfile, SaleUpdateCartRequest, SellerType, ServiceActorChannelHttp, ServiceChangeAssignDataHttp, ServiceChangeProposalDataHttp, ServiceChangeReassignDataHttp, ServiceChangeTargetDataHttp, ServiceChangeUnassignDataHttp, ServiceChangeUpdateApplicationDateDataHttp, ServiceContextRequest, ServiceDetailsConnectionResponse, ServiceDetailsInnerProductResponse, ServiceDetailsOptionResponse, ServiceDetailsPoiResponse, ServiceDetailsPortability, ServiceDetailsPrefixHostingResponse, ServiceForListResponse, ServiceKindHttp, ServicePairResponse, ServicePortabilityType, ServiceSpecificsForListResponse, ServiceSpecificsPoiResponse, ServiceSpecificsPrefixHostingResponse, ServiceStateHttp, ServiceStatusHttp, ServiceTicketOverviewResponse, ServiceTicketResponsibilityHttp, SignedAddressResponse, SimCardCommandHttp, SipTrunkC4InfoResponse, SipTrunkC4Request, SipTrunkC4Response, SipTrunkC5InfoResponse, SipTrunkC5Request, SipTrunkC5ResourceUpdatePayload, SipTrunkC5Response, SortableFeature, StaircaseResponse, StateResponse, SubAddressDetails, SubOrderResponse, SupportMessageResponse, SystemEventMessageKindResponse, TargetCatalog, TargetMarketHttp, TerminationDatePayload, TicketCloseDataHttp, TicketStatusHttp, TransitionResponse, UpdatePackagePayloadHttp, UpdateRecurringPriceOptionTargetDataHttp, UpsertContactReporterRequest, UserIdentifierHttp, VariantResponse, VariantsOrPfsResponse, VoiceCallRatingDetailsResponse, VoiceCallRatingDetailsVasStatusResponse, WazoLicenceLevelHttp, WebhookHeaderResponse, WebhookObjectTypeHttp, WebhookResponse, WebhookSubObjectTypeHttp, responses };
|
|
3806
|
+
//# sourceMappingURL=netwo-saas-sdk-v1-openapi.zod-C8EyoRPK.mjs.map
|