@hypelabs-llc/ts-sdk 0.2.5 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/dist/bearerAuthenticationProvider.d.ts +10 -0
  2. package/dist/bearerAuthenticationProvider.js +14 -0
  3. package/dist/connectClient.d.ts +2 -1
  4. package/dist/connectClient.js +5 -1
  5. package/dist/customerClient.d.ts +16 -0
  6. package/dist/customerClient.js +28 -0
  7. package/dist/generated/customers/index.d.ts +2 -2
  8. package/dist/generated-customer/announcements/index.d.ts +27 -0
  9. package/dist/generated-customer/announcements/index.js +22 -0
  10. package/dist/generated-customer/catalog/capabilities/index.d.ts +44 -0
  11. package/dist/generated-customer/catalog/capabilities/index.js +22 -0
  12. package/dist/generated-customer/catalog/datacenters/index.d.ts +45 -0
  13. package/dist/generated-customer/catalog/datacenters/index.js +25 -0
  14. package/dist/generated-customer/catalog/index.d.ts +39 -0
  15. package/dist/generated-customer/catalog/index.js +39 -0
  16. package/dist/generated-customer/catalog/isps/index.d.ts +45 -0
  17. package/dist/generated-customer/catalog/isps/index.js +25 -0
  18. package/dist/generated-customer/catalog/locations/index.d.ts +41 -0
  19. package/dist/generated-customer/catalog/locations/index.js +25 -0
  20. package/dist/generated-customer/catalog/products/index.d.ts +33 -0
  21. package/dist/generated-customer/catalog/products/index.js +22 -0
  22. package/dist/generated-customer/customerApiClient.d.ts +54 -0
  23. package/dist/generated-customer/customerApiClient.js +92 -0
  24. package/dist/generated-customer/incidents/index.d.ts +30 -0
  25. package/dist/generated-customer/incidents/index.js +28 -0
  26. package/dist/generated-customer/models/index.d.ts +1739 -0
  27. package/dist/generated-customer/models/index.js +1665 -0
  28. package/dist/generated-customer/orders/index.d.ts +55 -0
  29. package/dist/generated-customer/orders/index.js +34 -0
  30. package/dist/generated-customer/orders/item/index.d.ts +37 -0
  31. package/dist/generated-customer/orders/item/index.js +35 -0
  32. package/dist/generated-customer/orders/item/proxies/index.d.ts +28 -0
  33. package/dist/generated-customer/orders/item/proxies/index.js +25 -0
  34. package/dist/generated-customer/organizations/branding/index.d.ts +27 -0
  35. package/dist/generated-customer/organizations/branding/index.js +22 -0
  36. package/dist/generated-customer/organizations/index.d.ts +24 -0
  37. package/dist/generated-customer/organizations/index.js +24 -0
  38. package/dist/generated-customer/organizations/store/index.d.ts +27 -0
  39. package/dist/generated-customer/organizations/store/index.js +22 -0
  40. package/dist/generated-customer/proxies/index.d.ts +38 -0
  41. package/dist/generated-customer/proxies/index.js +34 -0
  42. package/dist/generated-customer/proxies/item/credentials/index.d.ts +41 -0
  43. package/dist/generated-customer/proxies/item/credentials/index.js +30 -0
  44. package/dist/generated-customer/proxies/item/index.d.ts +51 -0
  45. package/dist/generated-customer/proxies/item/index.js +48 -0
  46. package/dist/generated-customer/proxies/item/ipInfo/index.d.ts +29 -0
  47. package/dist/generated-customer/proxies/item/ipInfo/index.js +26 -0
  48. package/dist/generated-customer/proxies/item/ipRotation/index.d.ts +55 -0
  49. package/dist/generated-customer/proxies/item/ipRotation/index.js +45 -0
  50. package/dist/generated-customer/proxies/item/ipRotation/link/index.d.ts +27 -0
  51. package/dist/generated-customer/proxies/item/ipRotation/link/index.js +22 -0
  52. package/dist/generated-customer/proxies/item/ipRotation/trigger/index.d.ts +26 -0
  53. package/dist/generated-customer/proxies/item/ipRotation/trigger/index.js +16 -0
  54. package/dist/generated-customer/proxies/item/options/index.d.ts +27 -0
  55. package/dist/generated-customer/proxies/item/options/index.js +22 -0
  56. package/dist/generated-customer/reviews/index.d.ts +42 -0
  57. package/dist/generated-customer/reviews/index.js +34 -0
  58. package/dist/index.d.ts +3 -0
  59. package/dist/index.js +6 -0
  60. package/package.json +1 -1
@@ -0,0 +1,1665 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ // Generated by Microsoft Kiota
4
+ // @ts-ignore
5
+ import { createUntypedNodeFromDiscriminatorValue } from '@microsoft/kiota-abstractions';
6
+ /**
7
+ * Creates a new instance of the appropriate class based on discriminator value
8
+ * @param parseNode The parse node to use to read the discriminator value and create the object
9
+ * @returns {Announcement_metadata}
10
+ */
11
+ // @ts-ignore
12
+ export function createAnnouncement_metadataFromDiscriminatorValue(parseNode) {
13
+ return deserializeIntoAnnouncement_metadata;
14
+ }
15
+ /**
16
+ * Creates a new instance of the appropriate class based on discriminator value
17
+ * @param parseNode The parse node to use to read the discriminator value and create the object
18
+ * @returns {Announcement}
19
+ */
20
+ // @ts-ignore
21
+ export function createAnnouncementFromDiscriminatorValue(parseNode) {
22
+ return deserializeIntoAnnouncement;
23
+ }
24
+ /**
25
+ * Creates a new instance of the appropriate class based on discriminator value
26
+ * @param parseNode The parse node to use to read the discriminator value and create the object
27
+ * @returns {ApiError}
28
+ */
29
+ // @ts-ignore
30
+ export function createApiErrorFromDiscriminatorValue(parseNode) {
31
+ return deserializeIntoApiError;
32
+ }
33
+ /**
34
+ * Creates a new instance of the appropriate class based on discriminator value
35
+ * @param parseNode The parse node to use to read the discriminator value and create the object
36
+ * @returns {ApiResponse}
37
+ */
38
+ // @ts-ignore
39
+ export function createApiResponseFromDiscriminatorValue(parseNode) {
40
+ return deserializeIntoApiResponse;
41
+ }
42
+ /**
43
+ * Creates a new instance of the appropriate class based on discriminator value
44
+ * @param parseNode The parse node to use to read the discriminator value and create the object
45
+ * @returns {Capability}
46
+ */
47
+ // @ts-ignore
48
+ export function createCapabilityFromDiscriminatorValue(parseNode) {
49
+ return deserializeIntoCapability;
50
+ }
51
+ /**
52
+ * Creates a new instance of the appropriate class based on discriminator value
53
+ * @param parseNode The parse node to use to read the discriminator value and create the object
54
+ * @returns {CreateIncidentRequest}
55
+ */
56
+ // @ts-ignore
57
+ export function createCreateIncidentRequestFromDiscriminatorValue(parseNode) {
58
+ return deserializeIntoCreateIncidentRequest;
59
+ }
60
+ /**
61
+ * Creates a new instance of the appropriate class based on discriminator value
62
+ * @param parseNode The parse node to use to read the discriminator value and create the object
63
+ * @returns {CreateReviewRequest}
64
+ */
65
+ // @ts-ignore
66
+ export function createCreateReviewRequestFromDiscriminatorValue(parseNode) {
67
+ return deserializeIntoCreateReviewRequest;
68
+ }
69
+ /**
70
+ * Creates a new instance of the appropriate class based on discriminator value
71
+ * @param parseNode The parse node to use to read the discriminator value and create the object
72
+ * @returns {Datacenter}
73
+ */
74
+ // @ts-ignore
75
+ export function createDatacenterFromDiscriminatorValue(parseNode) {
76
+ return deserializeIntoDatacenter;
77
+ }
78
+ /**
79
+ * Creates a new instance of the appropriate class based on discriminator value
80
+ * @param parseNode The parse node to use to read the discriminator value and create the object
81
+ * @returns {Incident_metadata}
82
+ */
83
+ // @ts-ignore
84
+ export function createIncident_metadataFromDiscriminatorValue(parseNode) {
85
+ return deserializeIntoIncident_metadata;
86
+ }
87
+ /**
88
+ * Creates a new instance of the appropriate class based on discriminator value
89
+ * @param parseNode The parse node to use to read the discriminator value and create the object
90
+ * @returns {Incident}
91
+ */
92
+ // @ts-ignore
93
+ export function createIncidentFromDiscriminatorValue(parseNode) {
94
+ return deserializeIntoIncident;
95
+ }
96
+ /**
97
+ * Creates a new instance of the appropriate class based on discriminator value
98
+ * @param parseNode The parse node to use to read the discriminator value and create the object
99
+ * @returns {IpInformation}
100
+ */
101
+ // @ts-ignore
102
+ export function createIpInformationFromDiscriminatorValue(parseNode) {
103
+ return deserializeIntoIpInformation;
104
+ }
105
+ /**
106
+ * Creates a new instance of the appropriate class based on discriminator value
107
+ * @param parseNode The parse node to use to read the discriminator value and create the object
108
+ * @returns {IpRotationLinkResponse}
109
+ */
110
+ // @ts-ignore
111
+ export function createIpRotationLinkResponseFromDiscriminatorValue(parseNode) {
112
+ return deserializeIntoIpRotationLinkResponse;
113
+ }
114
+ /**
115
+ * Creates a new instance of the appropriate class based on discriminator value
116
+ * @param parseNode The parse node to use to read the discriminator value and create the object
117
+ * @returns {Isp}
118
+ */
119
+ // @ts-ignore
120
+ export function createIspFromDiscriminatorValue(parseNode) {
121
+ return deserializeIntoIsp;
122
+ }
123
+ /**
124
+ * Creates a new instance of the appropriate class based on discriminator value
125
+ * @param parseNode The parse node to use to read the discriminator value and create the object
126
+ * @returns {Location}
127
+ */
128
+ // @ts-ignore
129
+ export function createLocationFromDiscriminatorValue(parseNode) {
130
+ return deserializeIntoLocation;
131
+ }
132
+ /**
133
+ * Creates a new instance of the appropriate class based on discriminator value
134
+ * @param parseNode The parse node to use to read the discriminator value and create the object
135
+ * @returns {Order_metadata}
136
+ */
137
+ // @ts-ignore
138
+ export function createOrder_metadataFromDiscriminatorValue(parseNode) {
139
+ return deserializeIntoOrder_metadata;
140
+ }
141
+ /**
142
+ * Creates a new instance of the appropriate class based on discriminator value
143
+ * @param parseNode The parse node to use to read the discriminator value and create the object
144
+ * @returns {Order}
145
+ */
146
+ // @ts-ignore
147
+ export function createOrderFromDiscriminatorValue(parseNode) {
148
+ return deserializeIntoOrder;
149
+ }
150
+ /**
151
+ * Creates a new instance of the appropriate class based on discriminator value
152
+ * @param parseNode The parse node to use to read the discriminator value and create the object
153
+ * @returns {OrderItem_metadata}
154
+ */
155
+ // @ts-ignore
156
+ export function createOrderItem_metadataFromDiscriminatorValue(parseNode) {
157
+ return deserializeIntoOrderItem_metadata;
158
+ }
159
+ /**
160
+ * Creates a new instance of the appropriate class based on discriminator value
161
+ * @param parseNode The parse node to use to read the discriminator value and create the object
162
+ * @returns {OrderItem}
163
+ */
164
+ // @ts-ignore
165
+ export function createOrderItemFromDiscriminatorValue(parseNode) {
166
+ return deserializeIntoOrderItem;
167
+ }
168
+ /**
169
+ * Creates a new instance of the appropriate class based on discriminator value
170
+ * @param parseNode The parse node to use to read the discriminator value and create the object
171
+ * @returns {OrganizationBranding}
172
+ */
173
+ // @ts-ignore
174
+ export function createOrganizationBrandingFromDiscriminatorValue(parseNode) {
175
+ return deserializeIntoOrganizationBranding;
176
+ }
177
+ /**
178
+ * Creates a new instance of the appropriate class based on discriminator value
179
+ * @param parseNode The parse node to use to read the discriminator value and create the object
180
+ * @returns {OrganizationStore}
181
+ */
182
+ // @ts-ignore
183
+ export function createOrganizationStoreFromDiscriminatorValue(parseNode) {
184
+ return deserializeIntoOrganizationStore;
185
+ }
186
+ /**
187
+ * Creates a new instance of the appropriate class based on discriminator value
188
+ * @param parseNode The parse node to use to read the discriminator value and create the object
189
+ * @returns {Product}
190
+ */
191
+ // @ts-ignore
192
+ export function createProductFromDiscriminatorValue(parseNode) {
193
+ return deserializeIntoProduct;
194
+ }
195
+ /**
196
+ * Creates a new instance of the appropriate class based on discriminator value
197
+ * @param parseNode The parse node to use to read the discriminator value and create the object
198
+ * @returns {ProxyCredentialResponse}
199
+ */
200
+ // @ts-ignore
201
+ export function createProxyCredentialResponseFromDiscriminatorValue(parseNode) {
202
+ return deserializeIntoProxyCredentialResponse;
203
+ }
204
+ /**
205
+ * Creates a new instance of the appropriate class based on discriminator value
206
+ * @param parseNode The parse node to use to read the discriminator value and create the object
207
+ * @returns {ProxyDatacenter}
208
+ */
209
+ // @ts-ignore
210
+ export function createProxyDatacenterFromDiscriminatorValue(parseNode) {
211
+ return deserializeIntoProxyDatacenter;
212
+ }
213
+ /**
214
+ * Creates a new instance of the appropriate class based on discriminator value
215
+ * @param parseNode The parse node to use to read the discriminator value and create the object
216
+ * @returns {ProxyFeatures}
217
+ */
218
+ // @ts-ignore
219
+ export function createProxyFeaturesFromDiscriminatorValue(parseNode) {
220
+ return deserializeIntoProxyFeatures;
221
+ }
222
+ /**
223
+ * Creates a new instance of the appropriate class based on discriminator value
224
+ * @param parseNode The parse node to use to read the discriminator value and create the object
225
+ * @returns {Proxy}
226
+ */
227
+ // @ts-ignore
228
+ export function createProxyFromDiscriminatorValue(parseNode) {
229
+ return deserializeIntoProxy;
230
+ }
231
+ /**
232
+ * Creates a new instance of the appropriate class based on discriminator value
233
+ * @param parseNode The parse node to use to read the discriminator value and create the object
234
+ * @returns {ProxyIpRotationFeature}
235
+ */
236
+ // @ts-ignore
237
+ export function createProxyIpRotationFeatureFromDiscriminatorValue(parseNode) {
238
+ return deserializeIntoProxyIpRotationFeature;
239
+ }
240
+ /**
241
+ * Creates a new instance of the appropriate class based on discriminator value
242
+ * @param parseNode The parse node to use to read the discriminator value and create the object
243
+ * @returns {ProxyIpRotationResponse}
244
+ */
245
+ // @ts-ignore
246
+ export function createProxyIpRotationResponseFromDiscriminatorValue(parseNode) {
247
+ return deserializeIntoProxyIpRotationResponse;
248
+ }
249
+ /**
250
+ * Creates a new instance of the appropriate class based on discriminator value
251
+ * @param parseNode The parse node to use to read the discriminator value and create the object
252
+ * @returns {ProxyIsp}
253
+ */
254
+ // @ts-ignore
255
+ export function createProxyIspFromDiscriminatorValue(parseNode) {
256
+ return deserializeIntoProxyIsp;
257
+ }
258
+ /**
259
+ * Creates a new instance of the appropriate class based on discriminator value
260
+ * @param parseNode The parse node to use to read the discriminator value and create the object
261
+ * @returns {ProxyLocation}
262
+ */
263
+ // @ts-ignore
264
+ export function createProxyLocationFromDiscriminatorValue(parseNode) {
265
+ return deserializeIntoProxyLocation;
266
+ }
267
+ /**
268
+ * Creates a new instance of the appropriate class based on discriminator value
269
+ * @param parseNode The parse node to use to read the discriminator value and create the object
270
+ * @returns {ProxyOptions_metadata}
271
+ */
272
+ // @ts-ignore
273
+ export function createProxyOptions_metadataFromDiscriminatorValue(parseNode) {
274
+ return deserializeIntoProxyOptions_metadata;
275
+ }
276
+ /**
277
+ * Creates a new instance of the appropriate class based on discriminator value
278
+ * @param parseNode The parse node to use to read the discriminator value and create the object
279
+ * @returns {ProxyOptions}
280
+ */
281
+ // @ts-ignore
282
+ export function createProxyOptionsFromDiscriminatorValue(parseNode) {
283
+ return deserializeIntoProxyOptions;
284
+ }
285
+ /**
286
+ * Creates a new instance of the appropriate class based on discriminator value
287
+ * @param parseNode The parse node to use to read the discriminator value and create the object
288
+ * @returns {ProxyProduct}
289
+ */
290
+ // @ts-ignore
291
+ export function createProxyProductFromDiscriminatorValue(parseNode) {
292
+ return deserializeIntoProxyProduct;
293
+ }
294
+ /**
295
+ * Creates a new instance of the appropriate class based on discriminator value
296
+ * @param parseNode The parse node to use to read the discriminator value and create the object
297
+ * @returns {RequestDetails}
298
+ */
299
+ // @ts-ignore
300
+ export function createRequestDetailsFromDiscriminatorValue(parseNode) {
301
+ return deserializeIntoRequestDetails;
302
+ }
303
+ /**
304
+ * Creates a new instance of the appropriate class based on discriminator value
305
+ * @param parseNode The parse node to use to read the discriminator value and create the object
306
+ * @returns {Review_metadata}
307
+ */
308
+ // @ts-ignore
309
+ export function createReview_metadataFromDiscriminatorValue(parseNode) {
310
+ return deserializeIntoReview_metadata;
311
+ }
312
+ /**
313
+ * Creates a new instance of the appropriate class based on discriminator value
314
+ * @param parseNode The parse node to use to read the discriminator value and create the object
315
+ * @returns {Review}
316
+ */
317
+ // @ts-ignore
318
+ export function createReviewFromDiscriminatorValue(parseNode) {
319
+ return deserializeIntoReview;
320
+ }
321
+ /**
322
+ * Creates a new instance of the appropriate class based on discriminator value
323
+ * @param parseNode The parse node to use to read the discriminator value and create the object
324
+ * @returns {UpdateProxyCredentialsRequest}
325
+ */
326
+ // @ts-ignore
327
+ export function createUpdateProxyCredentialsRequestFromDiscriminatorValue(parseNode) {
328
+ return deserializeIntoUpdateProxyCredentialsRequest;
329
+ }
330
+ /**
331
+ * Creates a new instance of the appropriate class based on discriminator value
332
+ * @param parseNode The parse node to use to read the discriminator value and create the object
333
+ * @returns {UpdateProxyIpRotationRequest}
334
+ */
335
+ // @ts-ignore
336
+ export function createUpdateProxyIpRotationRequestFromDiscriminatorValue(parseNode) {
337
+ return deserializeIntoUpdateProxyIpRotationRequest;
338
+ }
339
+ /**
340
+ * The deserialization information for the current model
341
+ * @param Announcement The instance to deserialize into.
342
+ * @returns {Record<string, (node: ParseNode) => void>}
343
+ */
344
+ // @ts-ignore
345
+ export function deserializeIntoAnnouncement(announcement = {}) {
346
+ return {
347
+ "body": n => { announcement.body = n.getStringValue(); },
348
+ "id": n => { announcement.id = n.getGuidValue(); },
349
+ "imageUrl": n => { announcement.imageUrl = n.getStringValue(); },
350
+ "isLive": n => { announcement.isLive = n.getBooleanValue(); },
351
+ "linkLabel": n => { announcement.linkLabel = n.getStringValue(); },
352
+ "linkUrl": n => { announcement.linkUrl = n.getStringValue(); },
353
+ "metadata": n => { announcement.metadata = n.getObjectValue(createAnnouncement_metadataFromDiscriminatorValue); },
354
+ "status": n => { announcement.status = n.getEnumValue(AnnouncementStatusesObject); },
355
+ "title": n => { announcement.title = n.getStringValue(); },
356
+ };
357
+ }
358
+ /**
359
+ * The deserialization information for the current model
360
+ * @param Announcement_metadata The instance to deserialize into.
361
+ * @returns {Record<string, (node: ParseNode) => void>}
362
+ */
363
+ // @ts-ignore
364
+ export function deserializeIntoAnnouncement_metadata(announcement_metadata = {}) {
365
+ return {};
366
+ }
367
+ /**
368
+ * The deserialization information for the current model
369
+ * @param ApiError The instance to deserialize into.
370
+ * @returns {Record<string, (node: ParseNode) => void>}
371
+ */
372
+ // @ts-ignore
373
+ export function deserializeIntoApiError(apiError = {}) {
374
+ return {
375
+ "code": n => { apiError.code = n.getStringValue(); },
376
+ "description": n => { apiError.description = n.getStringValue(); },
377
+ };
378
+ }
379
+ /**
380
+ * The deserialization information for the current model
381
+ * @param ApiResponse The instance to deserialize into.
382
+ * @returns {Record<string, (node: ParseNode) => void>}
383
+ */
384
+ // @ts-ignore
385
+ export function deserializeIntoApiResponse(apiResponse = {}) {
386
+ return {
387
+ "data": n => { apiResponse.data = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
388
+ "errors": n => { apiResponse.errors = n.getCollectionOfObjectValues(createApiErrorFromDiscriminatorValue); },
389
+ "message": n => { apiResponse.messageEscaped = n.getStringValue(); },
390
+ "requestDetails": n => { apiResponse.requestDetails = n.getObjectValue(createRequestDetailsFromDiscriminatorValue); },
391
+ "statusCode": n => { apiResponse.statusCode = n.getNumberValue(); },
392
+ };
393
+ }
394
+ /**
395
+ * The deserialization information for the current model
396
+ * @param Capability The instance to deserialize into.
397
+ * @returns {Record<string, (node: ParseNode) => void>}
398
+ */
399
+ // @ts-ignore
400
+ export function deserializeIntoCapability(capability = {}) {
401
+ return {
402
+ "availableProxies": n => { capability.availableProxies = n.getNumberValue(); },
403
+ "basePrice": n => { capability.basePrice = n.getNumberValue(); },
404
+ "description": n => { capability.description = n.getStringValue(); },
405
+ "id": n => { capability.id = n.getGuidValue(); },
406
+ "isDisabled": n => { capability.isDisabled = n.getBooleanValue(); },
407
+ "name": n => { capability.name = n.getStringValue(); },
408
+ "price": n => { capability.price = n.getNumberValue(); },
409
+ "retailPrice": n => { capability.retailPrice = n.getNumberValue(); },
410
+ "type": n => { capability.type = n.getEnumValue(CapabilityTypesObject); },
411
+ };
412
+ }
413
+ /**
414
+ * The deserialization information for the current model
415
+ * @param CreateIncidentRequest The instance to deserialize into.
416
+ * @returns {Record<string, (node: ParseNode) => void>}
417
+ */
418
+ // @ts-ignore
419
+ export function deserializeIntoCreateIncidentRequest(createIncidentRequest = {}) {
420
+ return {
421
+ "description": n => { createIncidentRequest.description = n.getStringValue(); },
422
+ "reporterEmail": n => { createIncidentRequest.reporterEmail = n.getStringValue(); },
423
+ "subject": n => { createIncidentRequest.subject = n.getStringValue(); },
424
+ "target": n => { createIncidentRequest.target = n.getStringValue(); },
425
+ };
426
+ }
427
+ /**
428
+ * The deserialization information for the current model
429
+ * @param CreateReviewRequest The instance to deserialize into.
430
+ * @returns {Record<string, (node: ParseNode) => void>}
431
+ */
432
+ // @ts-ignore
433
+ export function deserializeIntoCreateReviewRequest(createReviewRequest = {}) {
434
+ return {
435
+ "content": n => { createReviewRequest.content = n.getStringValue(); },
436
+ "customAuthorName": n => { createReviewRequest.customAuthorName = n.getStringValue(); },
437
+ "customerId": n => { createReviewRequest.customerId = n.getGuidValue(); },
438
+ "isFeatured": n => { createReviewRequest.isFeatured = n.getBooleanValue(); },
439
+ "rating": n => { createReviewRequest.rating = n.getNumberValue(); },
440
+ };
441
+ }
442
+ /**
443
+ * The deserialization information for the current model
444
+ * @param Datacenter The instance to deserialize into.
445
+ * @returns {Record<string, (node: ParseNode) => void>}
446
+ */
447
+ // @ts-ignore
448
+ export function deserializeIntoDatacenter(datacenter = {}) {
449
+ return {
450
+ "availableProxies": n => { datacenter.availableProxies = n.getNumberValue(); },
451
+ "basePrice": n => { datacenter.basePrice = n.getNumberValue(); },
452
+ "countryCode": n => { datacenter.countryCode = n.getStringValue(); },
453
+ "id": n => { datacenter.id = n.getGuidValue(); },
454
+ "isDisabled": n => { datacenter.isDisabled = n.getBooleanValue(); },
455
+ "location": n => { datacenter.location = n.getStringValue(); },
456
+ "name": n => { datacenter.name = n.getStringValue(); },
457
+ "price": n => { datacenter.price = n.getNumberValue(); },
458
+ "retailPrice": n => { datacenter.retailPrice = n.getNumberValue(); },
459
+ };
460
+ }
461
+ /**
462
+ * The deserialization information for the current model
463
+ * @param Incident The instance to deserialize into.
464
+ * @returns {Record<string, (node: ParseNode) => void>}
465
+ */
466
+ // @ts-ignore
467
+ export function deserializeIntoIncident(incident = {}) {
468
+ return {
469
+ "description": n => { incident.description = n.getStringValue(); },
470
+ "id": n => { incident.id = n.getGuidValue(); },
471
+ "isOverdue": n => { incident.isOverdue = n.getBooleanValue(); },
472
+ "metadata": n => { incident.metadata = n.getObjectValue(createIncident_metadataFromDiscriminatorValue); },
473
+ "reason": n => { incident.reason = n.getStringValue(); },
474
+ "reporterEmail": n => { incident.reporterEmail = n.getStringValue(); },
475
+ "resolutionNote": n => { incident.resolutionNote = n.getStringValue(); },
476
+ "resolvedAt": n => { incident.resolvedAt = n.getDateValue(); },
477
+ "status": n => { incident.status = n.getEnumValue(IncidentStatusesObject); },
478
+ "subject": n => { incident.subject = n.getStringValue(); },
479
+ "target": n => { incident.target = n.getStringValue(); },
480
+ };
481
+ }
482
+ /**
483
+ * The deserialization information for the current model
484
+ * @param Incident_metadata The instance to deserialize into.
485
+ * @returns {Record<string, (node: ParseNode) => void>}
486
+ */
487
+ // @ts-ignore
488
+ export function deserializeIntoIncident_metadata(incident_metadata = {}) {
489
+ return {};
490
+ }
491
+ /**
492
+ * The deserialization information for the current model
493
+ * @param IpInformation The instance to deserialize into.
494
+ * @returns {Record<string, (node: ParseNode) => void>}
495
+ */
496
+ // @ts-ignore
497
+ export function deserializeIntoIpInformation(ipInformation = {}) {
498
+ return {
499
+ "asn": n => { ipInformation.asn = n.getStringValue(); },
500
+ "asnDomain": n => { ipInformation.asnDomain = n.getStringValue(); },
501
+ "asnLogo": n => { ipInformation.asnLogo = n.getStringValue(); },
502
+ "continent": n => { ipInformation.continent = n.getStringValue(); },
503
+ "continentCode": n => { ipInformation.continentCode = n.getStringValue(); },
504
+ "country": n => { ipInformation.country = n.getStringValue(); },
505
+ "countryCode": n => { ipInformation.countryCode = n.getStringValue(); },
506
+ "countryFlag": n => { ipInformation.countryFlag = n.getStringValue(); },
507
+ "countryFlagUrl": n => { ipInformation.countryFlagUrl = n.getStringValue(); },
508
+ "currencyCode": n => { ipInformation.currencyCode = n.getStringValue(); },
509
+ "currencySymbol": n => { ipInformation.currencySymbol = n.getStringValue(); },
510
+ "ipAddress": n => { ipInformation.ipAddress = n.getStringValue(); },
511
+ "isAnycast": n => { ipInformation.isAnycast = n.getBooleanValue(); },
512
+ "isp": n => { ipInformation.isp = n.getStringValue(); },
513
+ };
514
+ }
515
+ /**
516
+ * The deserialization information for the current model
517
+ * @param IpRotationLinkResponse The instance to deserialize into.
518
+ * @returns {Record<string, (node: ParseNode) => void>}
519
+ */
520
+ // @ts-ignore
521
+ export function deserializeIntoIpRotationLinkResponse(ipRotationLinkResponse = {}) {
522
+ return {
523
+ "link": n => { ipRotationLinkResponse.link = n.getStringValue(); },
524
+ "token": n => { ipRotationLinkResponse.token = n.getStringValue(); },
525
+ };
526
+ }
527
+ /**
528
+ * The deserialization information for the current model
529
+ * @param Isp The instance to deserialize into.
530
+ * @returns {Record<string, (node: ParseNode) => void>}
531
+ */
532
+ // @ts-ignore
533
+ export function deserializeIntoIsp(isp = {}) {
534
+ return {
535
+ "availableProxies": n => { isp.availableProxies = n.getNumberValue(); },
536
+ "basePrice": n => { isp.basePrice = n.getNumberValue(); },
537
+ "id": n => { isp.id = n.getGuidValue(); },
538
+ "isDisabled": n => { isp.isDisabled = n.getBooleanValue(); },
539
+ "logoUrl": n => { isp.logoUrl = n.getStringValue(); },
540
+ "name": n => { isp.name = n.getStringValue(); },
541
+ "price": n => { isp.price = n.getNumberValue(); },
542
+ "retailPrice": n => { isp.retailPrice = n.getNumberValue(); },
543
+ };
544
+ }
545
+ /**
546
+ * The deserialization information for the current model
547
+ * @param Location The instance to deserialize into.
548
+ * @returns {Record<string, (node: ParseNode) => void>}
549
+ */
550
+ // @ts-ignore
551
+ export function deserializeIntoLocation(location = {}) {
552
+ return {
553
+ "availableIsps": n => { location.availableIsps = n.getNumberValue(); },
554
+ "availableProxies": n => { location.availableProxies = n.getNumberValue(); },
555
+ "basePrice": n => { location.basePrice = n.getNumberValue(); },
556
+ "city": n => { location.city = n.getStringValue(); },
557
+ "countryCode": n => { location.countryCode = n.getStringValue(); },
558
+ "id": n => { location.id = n.getGuidValue(); },
559
+ "isDisabled": n => { location.isDisabled = n.getBooleanValue(); },
560
+ "name": n => { location.name = n.getStringValue(); },
561
+ "price": n => { location.price = n.getNumberValue(); },
562
+ "retailPrice": n => { location.retailPrice = n.getNumberValue(); },
563
+ };
564
+ }
565
+ /**
566
+ * The deserialization information for the current model
567
+ * @param Order The instance to deserialize into.
568
+ * @returns {Record<string, (node: ParseNode) => void>}
569
+ */
570
+ // @ts-ignore
571
+ export function deserializeIntoOrder(order = {}) {
572
+ return {
573
+ "billingCycle": n => { order.billingCycle = n.getEnumValue(BillingCyclesObject); },
574
+ "customerId": n => { order.customerId = n.getGuidValue(); },
575
+ "expiresAt": n => { order.expiresAt = n.getDateValue(); },
576
+ "externalReference": n => { order.externalReference = n.getStringValue(); },
577
+ "id": n => { order.id = n.getGuidValue(); },
578
+ "intent": n => { order.intent = n.getEnumValue(OrderIntentsObject); },
579
+ "isActive": n => { order.isActive = n.getBooleanValue(); },
580
+ "isAutoRenew": n => { order.isAutoRenew = n.getBooleanValue(); },
581
+ "isExpiringSoon": n => { order.isExpiringSoon = n.getBooleanValue(); },
582
+ "isInactive": n => { order.isInactive = n.getBooleanValue(); },
583
+ "isTrial": n => { order.isTrial = n.getBooleanValue(); },
584
+ "items": n => { order.items = n.getCollectionOfObjectValues(createOrderItemFromDiscriminatorValue); },
585
+ "lastSettlementReference": n => { order.lastSettlementReference = n.getStringValue(); },
586
+ "lastTransactionId": n => { order.lastTransactionId = n.getGuidValue(); },
587
+ "metadata": n => { order.metadata = n.getObjectValue(createOrder_metadataFromDiscriminatorValue); },
588
+ "paymentMethod": n => { order.paymentMethod = n.getEnumValue(PaymentMethodsObject); },
589
+ "paymentProcessor": n => { order.paymentProcessor = n.getEnumValue(PaymentProcessorsObject); },
590
+ "processorReference": n => { order.processorReference = n.getStringValue(); },
591
+ "quantity": n => { order.quantity = n.getNumberValue(); },
592
+ "status": n => { order.status = n.getEnumValue(OrderStatusesObject); },
593
+ };
594
+ }
595
+ /**
596
+ * The deserialization information for the current model
597
+ * @param Order_metadata The instance to deserialize into.
598
+ * @returns {Record<string, (node: ParseNode) => void>}
599
+ */
600
+ // @ts-ignore
601
+ export function deserializeIntoOrder_metadata(order_metadata = {}) {
602
+ return {};
603
+ }
604
+ /**
605
+ * The deserialization information for the current model
606
+ * @param OrderItem The instance to deserialize into.
607
+ * @returns {Record<string, (node: ParseNode) => void>}
608
+ */
609
+ // @ts-ignore
610
+ export function deserializeIntoOrderItem(orderItem = {}) {
611
+ return {
612
+ "id": n => { orderItem.id = n.getGuidValue(); },
613
+ "kind": n => { orderItem.kind = n.getEnumValue(ProductKindsObject); },
614
+ "metadata": n => { orderItem.metadata = n.getObjectValue(createOrderItem_metadataFromDiscriminatorValue); },
615
+ "productId": n => { orderItem.productId = n.getGuidValue(); },
616
+ "resourceIds": n => { orderItem.resourceIds = n.getCollectionOfPrimitiveValues("string"); },
617
+ };
618
+ }
619
+ /**
620
+ * The deserialization information for the current model
621
+ * @param OrderItem_metadata The instance to deserialize into.
622
+ * @returns {Record<string, (node: ParseNode) => void>}
623
+ */
624
+ // @ts-ignore
625
+ export function deserializeIntoOrderItem_metadata(orderItem_metadata = {}) {
626
+ return {};
627
+ }
628
+ /**
629
+ * The deserialization information for the current model
630
+ * @param OrganizationBranding The instance to deserialize into.
631
+ * @returns {Record<string, (node: ParseNode) => void>}
632
+ */
633
+ // @ts-ignore
634
+ export function deserializeIntoOrganizationBranding(organizationBranding = {}) {
635
+ return {
636
+ "accentColor": n => { organizationBranding.accentColor = n.getStringValue(); },
637
+ "iconUrl": n => { organizationBranding.iconUrl = n.getStringValue(); },
638
+ "logo": n => { organizationBranding.logo = n.getStringValue(); },
639
+ "logoDarkUrl": n => { organizationBranding.logoDarkUrl = n.getStringValue(); },
640
+ "logoLightUrl": n => { organizationBranding.logoLightUrl = n.getStringValue(); },
641
+ };
642
+ }
643
+ /**
644
+ * The deserialization information for the current model
645
+ * @param OrganizationStore The instance to deserialize into.
646
+ * @returns {Record<string, (node: ParseNode) => void>}
647
+ */
648
+ // @ts-ignore
649
+ export function deserializeIntoOrganizationStore(organizationStore = {}) {
650
+ return {
651
+ "crispWorkspaceId": n => { organizationStore.crispWorkspaceId = n.getStringValue(); },
652
+ "customCss": n => { organizationStore.customCss = n.getStringValue(); },
653
+ "customJs": n => { organizationStore.customJs = n.getStringValue(); },
654
+ "documentationMd": n => { organizationStore.documentationMd = n.getStringValue(); },
655
+ "domain": n => { organizationStore.domain = n.getStringValue(); },
656
+ "name": n => { organizationStore.name = n.getStringValue(); },
657
+ "showDocumentationTab": n => { organizationStore.showDocumentationTab = n.getBooleanValue(); },
658
+ "showReviewsTab": n => { organizationStore.showReviewsTab = n.getBooleanValue(); },
659
+ "supportUrl": n => { organizationStore.supportUrl = n.getStringValue(); },
660
+ "tagline": n => { organizationStore.tagline = n.getStringValue(); },
661
+ "topBannerMessage": n => { organizationStore.topBannerMessage = n.getStringValue(); },
662
+ };
663
+ }
664
+ /**
665
+ * The deserialization information for the current model
666
+ * @param Product The instance to deserialize into.
667
+ * @returns {Record<string, (node: ParseNode) => void>}
668
+ */
669
+ // @ts-ignore
670
+ export function deserializeIntoProduct(product = {}) {
671
+ return {
672
+ "availableProxies": n => { product.availableProxies = n.getNumberValue(); },
673
+ "basePrice": n => { product.basePrice = n.getNumberValue(); },
674
+ "description": n => { product.description = n.getStringValue(); },
675
+ "id": n => { product.id = n.getGuidValue(); },
676
+ "isDisabled": n => { product.isDisabled = n.getBooleanValue(); },
677
+ "kind": n => { product.kind = n.getEnumValue(ProductKindsObject); },
678
+ "name": n => { product.name = n.getStringValue(); },
679
+ "price": n => { product.price = n.getNumberValue(); },
680
+ "pricingType": n => { product.pricingType = n.getEnumValue(PricingTypesObject); },
681
+ "retailPrice": n => { product.retailPrice = n.getNumberValue(); },
682
+ };
683
+ }
684
+ /**
685
+ * The deserialization information for the current model
686
+ * @param Proxy The instance to deserialize into.
687
+ * @returns {Record<string, (node: ParseNode) => void>}
688
+ */
689
+ // @ts-ignore
690
+ export function deserializeIntoProxy(proxy = {}) {
691
+ return {
692
+ "capabilities": n => { proxy.capabilities = n.getCollectionOfEnumValues(CapabilityTypesObject); },
693
+ "datacenter": n => { proxy.datacenter = n.getObjectValue(createProxyDatacenterFromDiscriminatorValue); },
694
+ "features": n => { proxy.features = n.getObjectValue(createProxyFeaturesFromDiscriminatorValue); },
695
+ "host": n => { proxy.host = n.getStringValue(); },
696
+ "id": n => { proxy.id = n.getGuidValue(); },
697
+ "ip": n => { proxy.ip = n.getStringValue(); },
698
+ "isp": n => { proxy.isp = n.getObjectValue(createProxyIspFromDiscriminatorValue); },
699
+ "location": n => { proxy.location = n.getObjectValue(createProxyLocationFromDiscriminatorValue); },
700
+ "note": n => { proxy.note = n.getStringValue(); },
701
+ "port": n => { proxy.port = n.getNumberValue(); },
702
+ "product": n => { proxy.product = n.getObjectValue(createProxyProductFromDiscriminatorValue); },
703
+ "tags": n => { proxy.tags = n.getCollectionOfPrimitiveValues("string"); },
704
+ };
705
+ }
706
+ /**
707
+ * The deserialization information for the current model
708
+ * @param ProxyCredentialResponse The instance to deserialize into.
709
+ * @returns {Record<string, (node: ParseNode) => void>}
710
+ */
711
+ // @ts-ignore
712
+ export function deserializeIntoProxyCredentialResponse(proxyCredentialResponse = {}) {
713
+ return {
714
+ "allowedDomains": n => { proxyCredentialResponse.allowedDomains = n.getCollectionOfPrimitiveValues("string"); },
715
+ "allowedIps": n => { proxyCredentialResponse.allowedIps = n.getCollectionOfPrimitiveValues("string"); },
716
+ "appliedAt": n => { proxyCredentialResponse.appliedAt = n.getDateValue(); },
717
+ "password": n => { proxyCredentialResponse.password = n.getStringValue(); },
718
+ "username": n => { proxyCredentialResponse.username = n.getStringValue(); },
719
+ };
720
+ }
721
+ /**
722
+ * The deserialization information for the current model
723
+ * @param ProxyDatacenter The instance to deserialize into.
724
+ * @returns {Record<string, (node: ParseNode) => void>}
725
+ */
726
+ // @ts-ignore
727
+ export function deserializeIntoProxyDatacenter(proxyDatacenter = {}) {
728
+ return {
729
+ "id": n => { proxyDatacenter.id = n.getGuidValue(); },
730
+ "name": n => { proxyDatacenter.name = n.getStringValue(); },
731
+ };
732
+ }
733
+ /**
734
+ * The deserialization information for the current model
735
+ * @param ProxyFeatures The instance to deserialize into.
736
+ * @returns {Record<string, (node: ParseNode) => void>}
737
+ */
738
+ // @ts-ignore
739
+ export function deserializeIntoProxyFeatures(proxyFeatures = {}) {
740
+ return {
741
+ "ipRotation": n => { proxyFeatures.ipRotation = n.getObjectValue(createProxyIpRotationFeatureFromDiscriminatorValue); },
742
+ };
743
+ }
744
+ /**
745
+ * The deserialization information for the current model
746
+ * @param ProxyIpRotationFeature The instance to deserialize into.
747
+ * @returns {Record<string, (node: ParseNode) => void>}
748
+ */
749
+ // @ts-ignore
750
+ export function deserializeIntoProxyIpRotationFeature(proxyIpRotationFeature = {}) {
751
+ return {
752
+ "intervalMinutes": n => { proxyIpRotationFeature.intervalMinutes = n.getNumberValue(); },
753
+ "intervalSeconds": n => { proxyIpRotationFeature.intervalSeconds = n.getNumberValue(); },
754
+ };
755
+ }
756
+ /**
757
+ * The deserialization information for the current model
758
+ * @param ProxyIpRotationResponse The instance to deserialize into.
759
+ * @returns {Record<string, (node: ParseNode) => void>}
760
+ */
761
+ // @ts-ignore
762
+ export function deserializeIntoProxyIpRotationResponse(proxyIpRotationResponse = {}) {
763
+ return {
764
+ "intervalMinutes": n => { proxyIpRotationResponse.intervalMinutes = n.getNumberValue(); },
765
+ "intervalSeconds": n => { proxyIpRotationResponse.intervalSeconds = n.getNumberValue(); },
766
+ };
767
+ }
768
+ /**
769
+ * The deserialization information for the current model
770
+ * @param ProxyIsp The instance to deserialize into.
771
+ * @returns {Record<string, (node: ParseNode) => void>}
772
+ */
773
+ // @ts-ignore
774
+ export function deserializeIntoProxyIsp(proxyIsp = {}) {
775
+ return {
776
+ "id": n => { proxyIsp.id = n.getGuidValue(); },
777
+ "logoUrl": n => { proxyIsp.logoUrl = n.getStringValue(); },
778
+ "name": n => { proxyIsp.name = n.getStringValue(); },
779
+ };
780
+ }
781
+ /**
782
+ * The deserialization information for the current model
783
+ * @param ProxyLocation The instance to deserialize into.
784
+ * @returns {Record<string, (node: ParseNode) => void>}
785
+ */
786
+ // @ts-ignore
787
+ export function deserializeIntoProxyLocation(proxyLocation = {}) {
788
+ return {
789
+ "city": n => { proxyLocation.city = n.getStringValue(); },
790
+ "countryCode": n => { proxyLocation.countryCode = n.getStringValue(); },
791
+ "id": n => { proxyLocation.id = n.getGuidValue(); },
792
+ };
793
+ }
794
+ /**
795
+ * The deserialization information for the current model
796
+ * @param ProxyOptions The instance to deserialize into.
797
+ * @returns {Record<string, (node: ParseNode) => void>}
798
+ */
799
+ // @ts-ignore
800
+ export function deserializeIntoProxyOptions(proxyOptions = {}) {
801
+ return {
802
+ "id": n => { proxyOptions.id = n.getGuidValue(); },
803
+ "metadata": n => { proxyOptions.metadata = n.getObjectValue(createProxyOptions_metadataFromDiscriminatorValue); },
804
+ "proxyId": n => { proxyOptions.proxyId = n.getGuidValue(); },
805
+ "resolutionMode": n => { proxyOptions.resolutionMode = n.getEnumValue(ResolutionModesObject); },
806
+ };
807
+ }
808
+ /**
809
+ * The deserialization information for the current model
810
+ * @param ProxyOptions_metadata The instance to deserialize into.
811
+ * @returns {Record<string, (node: ParseNode) => void>}
812
+ */
813
+ // @ts-ignore
814
+ export function deserializeIntoProxyOptions_metadata(proxyOptions_metadata = {}) {
815
+ return {};
816
+ }
817
+ /**
818
+ * The deserialization information for the current model
819
+ * @param ProxyProduct The instance to deserialize into.
820
+ * @returns {Record<string, (node: ParseNode) => void>}
821
+ */
822
+ // @ts-ignore
823
+ export function deserializeIntoProxyProduct(proxyProduct = {}) {
824
+ return {
825
+ "id": n => { proxyProduct.id = n.getGuidValue(); },
826
+ "kind": n => { proxyProduct.kind = n.getEnumValue(ProductKindsObject); },
827
+ "name": n => { proxyProduct.name = n.getStringValue(); },
828
+ };
829
+ }
830
+ /**
831
+ * The deserialization information for the current model
832
+ * @param RequestDetails The instance to deserialize into.
833
+ * @returns {Record<string, (node: ParseNode) => void>}
834
+ */
835
+ // @ts-ignore
836
+ export function deserializeIntoRequestDetails(requestDetails = {}) {
837
+ return {
838
+ "clientIp": n => { requestDetails.clientIp = n.getStringValue(); },
839
+ "correlationId": n => { requestDetails.correlationId = n.getStringValue(); },
840
+ "date": n => { requestDetails.date = n.getDateValue(); },
841
+ "endpoint": n => { requestDetails.endpoint = n.getStringValue(); },
842
+ "timestamp": n => { requestDetails.timestamp = n.getNumberValue(); },
843
+ "userAgent": n => { requestDetails.userAgent = n.getStringValue(); },
844
+ };
845
+ }
846
+ /**
847
+ * The deserialization information for the current model
848
+ * @param Review The instance to deserialize into.
849
+ * @returns {Record<string, (node: ParseNode) => void>}
850
+ */
851
+ // @ts-ignore
852
+ export function deserializeIntoReview(review = {}) {
853
+ return {
854
+ "authorName": n => { review.authorName = n.getStringValue(); },
855
+ "content": n => { review.content = n.getStringValue(); },
856
+ "customAuthorName": n => { review.customAuthorName = n.getStringValue(); },
857
+ "customerId": n => { review.customerId = n.getGuidValue(); },
858
+ "id": n => { review.id = n.getGuidValue(); },
859
+ "isFeatured": n => { review.isFeatured = n.getBooleanValue(); },
860
+ "isPending": n => { review.isPending = n.getBooleanValue(); },
861
+ "metadata": n => { review.metadata = n.getObjectValue(createReview_metadataFromDiscriminatorValue); },
862
+ "rating": n => { review.rating = n.getNumberValue(); },
863
+ };
864
+ }
865
+ /**
866
+ * The deserialization information for the current model
867
+ * @param Review_metadata The instance to deserialize into.
868
+ * @returns {Record<string, (node: ParseNode) => void>}
869
+ */
870
+ // @ts-ignore
871
+ export function deserializeIntoReview_metadata(review_metadata = {}) {
872
+ return {};
873
+ }
874
+ /**
875
+ * The deserialization information for the current model
876
+ * @param UpdateProxyCredentialsRequest The instance to deserialize into.
877
+ * @returns {Record<string, (node: ParseNode) => void>}
878
+ */
879
+ // @ts-ignore
880
+ export function deserializeIntoUpdateProxyCredentialsRequest(updateProxyCredentialsRequest = {}) {
881
+ return {
882
+ "allowedIps": n => { updateProxyCredentialsRequest.allowedIps = n.getCollectionOfPrimitiveValues("string"); },
883
+ "password": n => { updateProxyCredentialsRequest.password = n.getStringValue(); },
884
+ "username": n => { updateProxyCredentialsRequest.username = n.getStringValue(); },
885
+ };
886
+ }
887
+ /**
888
+ * The deserialization information for the current model
889
+ * @param UpdateProxyIpRotationRequest The instance to deserialize into.
890
+ * @returns {Record<string, (node: ParseNode) => void>}
891
+ */
892
+ // @ts-ignore
893
+ export function deserializeIntoUpdateProxyIpRotationRequest(updateProxyIpRotationRequest = {}) {
894
+ return {
895
+ "intervalSeconds": n => { updateProxyIpRotationRequest.intervalSeconds = n.getNumberValue(); },
896
+ };
897
+ }
898
+ /**
899
+ * Serializes information the current object
900
+ * @param Announcement The instance to serialize from.
901
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
902
+ * @param writer Serialization writer to use to serialize this model
903
+ */
904
+ // @ts-ignore
905
+ export function serializeAnnouncement(writer, announcement = {}, isSerializingDerivedType = false) {
906
+ if (!announcement || isSerializingDerivedType) {
907
+ return;
908
+ }
909
+ writer.writeStringValue("body", announcement.body);
910
+ writer.writeGuidValue("id", announcement.id);
911
+ writer.writeStringValue("imageUrl", announcement.imageUrl);
912
+ writer.writeBooleanValue("isLive", announcement.isLive);
913
+ writer.writeStringValue("linkLabel", announcement.linkLabel);
914
+ writer.writeStringValue("linkUrl", announcement.linkUrl);
915
+ writer.writeObjectValue("metadata", announcement.metadata, serializeAnnouncement_metadata);
916
+ writer.writeEnumValue("status", announcement.status);
917
+ writer.writeStringValue("title", announcement.title);
918
+ writer.writeAdditionalData(announcement.additionalData);
919
+ }
920
+ /**
921
+ * Serializes information the current object
922
+ * @param Announcement_metadata The instance to serialize from.
923
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
924
+ * @param writer Serialization writer to use to serialize this model
925
+ */
926
+ // @ts-ignore
927
+ export function serializeAnnouncement_metadata(writer, announcement_metadata = {}, isSerializingDerivedType = false) {
928
+ if (!announcement_metadata || isSerializingDerivedType) {
929
+ return;
930
+ }
931
+ writer.writeAdditionalData(announcement_metadata.additionalData);
932
+ }
933
+ /**
934
+ * Serializes information the current object
935
+ * @param ApiError The instance to serialize from.
936
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
937
+ * @param writer Serialization writer to use to serialize this model
938
+ */
939
+ // @ts-ignore
940
+ export function serializeApiError(writer, apiError = {}, isSerializingDerivedType = false) {
941
+ if (!apiError || isSerializingDerivedType) {
942
+ return;
943
+ }
944
+ writer.writeStringValue("code", apiError.code);
945
+ writer.writeStringValue("description", apiError.description);
946
+ writer.writeAdditionalData(apiError.additionalData);
947
+ }
948
+ /**
949
+ * Serializes information the current object
950
+ * @param ApiResponse The instance to serialize from.
951
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
952
+ * @param writer Serialization writer to use to serialize this model
953
+ */
954
+ // @ts-ignore
955
+ export function serializeApiResponse(writer, apiResponse = {}, isSerializingDerivedType = false) {
956
+ if (!apiResponse || isSerializingDerivedType) {
957
+ return;
958
+ }
959
+ writer.writeObjectValue("data", apiResponse.data);
960
+ writer.writeCollectionOfObjectValues("errors", apiResponse.errors, serializeApiError);
961
+ writer.writeStringValue("message", apiResponse.messageEscaped);
962
+ writer.writeObjectValue("requestDetails", apiResponse.requestDetails, serializeRequestDetails);
963
+ writer.writeNumberValue("statusCode", apiResponse.statusCode);
964
+ writer.writeAdditionalData(apiResponse.additionalData);
965
+ }
966
+ /**
967
+ * Serializes information the current object
968
+ * @param Capability The instance to serialize from.
969
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
970
+ * @param writer Serialization writer to use to serialize this model
971
+ */
972
+ // @ts-ignore
973
+ export function serializeCapability(writer, capability = {}, isSerializingDerivedType = false) {
974
+ if (!capability || isSerializingDerivedType) {
975
+ return;
976
+ }
977
+ writer.writeNumberValue("availableProxies", capability.availableProxies);
978
+ writer.writeNumberValue("basePrice", capability.basePrice);
979
+ writer.writeStringValue("description", capability.description);
980
+ writer.writeGuidValue("id", capability.id);
981
+ writer.writeBooleanValue("isDisabled", capability.isDisabled);
982
+ writer.writeStringValue("name", capability.name);
983
+ writer.writeNumberValue("price", capability.price);
984
+ writer.writeNumberValue("retailPrice", capability.retailPrice);
985
+ writer.writeEnumValue("type", capability.type);
986
+ writer.writeAdditionalData(capability.additionalData);
987
+ }
988
+ /**
989
+ * Serializes information the current object
990
+ * @param CreateIncidentRequest The instance to serialize from.
991
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
992
+ * @param writer Serialization writer to use to serialize this model
993
+ */
994
+ // @ts-ignore
995
+ export function serializeCreateIncidentRequest(writer, createIncidentRequest = {}, isSerializingDerivedType = false) {
996
+ if (!createIncidentRequest || isSerializingDerivedType) {
997
+ return;
998
+ }
999
+ writer.writeStringValue("description", createIncidentRequest.description);
1000
+ writer.writeStringValue("reporterEmail", createIncidentRequest.reporterEmail);
1001
+ writer.writeStringValue("subject", createIncidentRequest.subject);
1002
+ writer.writeStringValue("target", createIncidentRequest.target);
1003
+ writer.writeAdditionalData(createIncidentRequest.additionalData);
1004
+ }
1005
+ /**
1006
+ * Serializes information the current object
1007
+ * @param CreateReviewRequest The instance to serialize from.
1008
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1009
+ * @param writer Serialization writer to use to serialize this model
1010
+ */
1011
+ // @ts-ignore
1012
+ export function serializeCreateReviewRequest(writer, createReviewRequest = {}, isSerializingDerivedType = false) {
1013
+ if (!createReviewRequest || isSerializingDerivedType) {
1014
+ return;
1015
+ }
1016
+ writer.writeStringValue("content", createReviewRequest.content);
1017
+ writer.writeStringValue("customAuthorName", createReviewRequest.customAuthorName);
1018
+ writer.writeGuidValue("customerId", createReviewRequest.customerId);
1019
+ writer.writeBooleanValue("isFeatured", createReviewRequest.isFeatured);
1020
+ writer.writeNumberValue("rating", createReviewRequest.rating);
1021
+ writer.writeAdditionalData(createReviewRequest.additionalData);
1022
+ }
1023
+ /**
1024
+ * Serializes information the current object
1025
+ * @param Datacenter The instance to serialize from.
1026
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1027
+ * @param writer Serialization writer to use to serialize this model
1028
+ */
1029
+ // @ts-ignore
1030
+ export function serializeDatacenter(writer, datacenter = {}, isSerializingDerivedType = false) {
1031
+ if (!datacenter || isSerializingDerivedType) {
1032
+ return;
1033
+ }
1034
+ writer.writeNumberValue("availableProxies", datacenter.availableProxies);
1035
+ writer.writeNumberValue("basePrice", datacenter.basePrice);
1036
+ writer.writeStringValue("countryCode", datacenter.countryCode);
1037
+ writer.writeGuidValue("id", datacenter.id);
1038
+ writer.writeBooleanValue("isDisabled", datacenter.isDisabled);
1039
+ writer.writeStringValue("location", datacenter.location);
1040
+ writer.writeStringValue("name", datacenter.name);
1041
+ writer.writeNumberValue("price", datacenter.price);
1042
+ writer.writeNumberValue("retailPrice", datacenter.retailPrice);
1043
+ writer.writeAdditionalData(datacenter.additionalData);
1044
+ }
1045
+ /**
1046
+ * Serializes information the current object
1047
+ * @param Incident The instance to serialize from.
1048
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1049
+ * @param writer Serialization writer to use to serialize this model
1050
+ */
1051
+ // @ts-ignore
1052
+ export function serializeIncident(writer, incident = {}, isSerializingDerivedType = false) {
1053
+ if (!incident || isSerializingDerivedType) {
1054
+ return;
1055
+ }
1056
+ writer.writeStringValue("description", incident.description);
1057
+ writer.writeGuidValue("id", incident.id);
1058
+ writer.writeBooleanValue("isOverdue", incident.isOverdue);
1059
+ writer.writeObjectValue("metadata", incident.metadata, serializeIncident_metadata);
1060
+ writer.writeStringValue("reason", incident.reason);
1061
+ writer.writeStringValue("reporterEmail", incident.reporterEmail);
1062
+ writer.writeStringValue("resolutionNote", incident.resolutionNote);
1063
+ writer.writeDateValue("resolvedAt", incident.resolvedAt);
1064
+ writer.writeEnumValue("status", incident.status);
1065
+ writer.writeStringValue("subject", incident.subject);
1066
+ writer.writeStringValue("target", incident.target);
1067
+ writer.writeAdditionalData(incident.additionalData);
1068
+ }
1069
+ /**
1070
+ * Serializes information the current object
1071
+ * @param Incident_metadata The instance to serialize from.
1072
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1073
+ * @param writer Serialization writer to use to serialize this model
1074
+ */
1075
+ // @ts-ignore
1076
+ export function serializeIncident_metadata(writer, incident_metadata = {}, isSerializingDerivedType = false) {
1077
+ if (!incident_metadata || isSerializingDerivedType) {
1078
+ return;
1079
+ }
1080
+ writer.writeAdditionalData(incident_metadata.additionalData);
1081
+ }
1082
+ /**
1083
+ * Serializes information the current object
1084
+ * @param IpInformation The instance to serialize from.
1085
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1086
+ * @param writer Serialization writer to use to serialize this model
1087
+ */
1088
+ // @ts-ignore
1089
+ export function serializeIpInformation(writer, ipInformation = {}, isSerializingDerivedType = false) {
1090
+ if (!ipInformation || isSerializingDerivedType) {
1091
+ return;
1092
+ }
1093
+ writer.writeStringValue("asn", ipInformation.asn);
1094
+ writer.writeStringValue("asnDomain", ipInformation.asnDomain);
1095
+ writer.writeStringValue("asnLogo", ipInformation.asnLogo);
1096
+ writer.writeStringValue("continent", ipInformation.continent);
1097
+ writer.writeStringValue("continentCode", ipInformation.continentCode);
1098
+ writer.writeStringValue("country", ipInformation.country);
1099
+ writer.writeStringValue("countryCode", ipInformation.countryCode);
1100
+ writer.writeStringValue("countryFlag", ipInformation.countryFlag);
1101
+ writer.writeStringValue("countryFlagUrl", ipInformation.countryFlagUrl);
1102
+ writer.writeStringValue("currencyCode", ipInformation.currencyCode);
1103
+ writer.writeStringValue("currencySymbol", ipInformation.currencySymbol);
1104
+ writer.writeStringValue("ipAddress", ipInformation.ipAddress);
1105
+ writer.writeBooleanValue("isAnycast", ipInformation.isAnycast);
1106
+ writer.writeStringValue("isp", ipInformation.isp);
1107
+ writer.writeAdditionalData(ipInformation.additionalData);
1108
+ }
1109
+ /**
1110
+ * Serializes information the current object
1111
+ * @param IpRotationLinkResponse The instance to serialize from.
1112
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1113
+ * @param writer Serialization writer to use to serialize this model
1114
+ */
1115
+ // @ts-ignore
1116
+ export function serializeIpRotationLinkResponse(writer, ipRotationLinkResponse = {}, isSerializingDerivedType = false) {
1117
+ if (!ipRotationLinkResponse || isSerializingDerivedType) {
1118
+ return;
1119
+ }
1120
+ writer.writeStringValue("link", ipRotationLinkResponse.link);
1121
+ writer.writeStringValue("token", ipRotationLinkResponse.token);
1122
+ writer.writeAdditionalData(ipRotationLinkResponse.additionalData);
1123
+ }
1124
+ /**
1125
+ * Serializes information the current object
1126
+ * @param Isp The instance to serialize from.
1127
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1128
+ * @param writer Serialization writer to use to serialize this model
1129
+ */
1130
+ // @ts-ignore
1131
+ export function serializeIsp(writer, isp = {}, isSerializingDerivedType = false) {
1132
+ if (!isp || isSerializingDerivedType) {
1133
+ return;
1134
+ }
1135
+ writer.writeNumberValue("availableProxies", isp.availableProxies);
1136
+ writer.writeNumberValue("basePrice", isp.basePrice);
1137
+ writer.writeGuidValue("id", isp.id);
1138
+ writer.writeBooleanValue("isDisabled", isp.isDisabled);
1139
+ writer.writeStringValue("logoUrl", isp.logoUrl);
1140
+ writer.writeStringValue("name", isp.name);
1141
+ writer.writeNumberValue("price", isp.price);
1142
+ writer.writeNumberValue("retailPrice", isp.retailPrice);
1143
+ writer.writeAdditionalData(isp.additionalData);
1144
+ }
1145
+ /**
1146
+ * Serializes information the current object
1147
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1148
+ * @param Location The instance to serialize from.
1149
+ * @param writer Serialization writer to use to serialize this model
1150
+ */
1151
+ // @ts-ignore
1152
+ export function serializeLocation(writer, location = {}, isSerializingDerivedType = false) {
1153
+ if (!location || isSerializingDerivedType) {
1154
+ return;
1155
+ }
1156
+ writer.writeNumberValue("availableIsps", location.availableIsps);
1157
+ writer.writeNumberValue("availableProxies", location.availableProxies);
1158
+ writer.writeNumberValue("basePrice", location.basePrice);
1159
+ writer.writeStringValue("city", location.city);
1160
+ writer.writeStringValue("countryCode", location.countryCode);
1161
+ writer.writeGuidValue("id", location.id);
1162
+ writer.writeBooleanValue("isDisabled", location.isDisabled);
1163
+ writer.writeStringValue("name", location.name);
1164
+ writer.writeNumberValue("price", location.price);
1165
+ writer.writeNumberValue("retailPrice", location.retailPrice);
1166
+ writer.writeAdditionalData(location.additionalData);
1167
+ }
1168
+ /**
1169
+ * Serializes information the current object
1170
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1171
+ * @param Order The instance to serialize from.
1172
+ * @param writer Serialization writer to use to serialize this model
1173
+ */
1174
+ // @ts-ignore
1175
+ export function serializeOrder(writer, order = {}, isSerializingDerivedType = false) {
1176
+ if (!order || isSerializingDerivedType) {
1177
+ return;
1178
+ }
1179
+ writer.writeEnumValue("billingCycle", order.billingCycle);
1180
+ writer.writeGuidValue("customerId", order.customerId);
1181
+ writer.writeDateValue("expiresAt", order.expiresAt);
1182
+ writer.writeStringValue("externalReference", order.externalReference);
1183
+ writer.writeGuidValue("id", order.id);
1184
+ writer.writeEnumValue("intent", order.intent);
1185
+ writer.writeBooleanValue("isActive", order.isActive);
1186
+ writer.writeBooleanValue("isAutoRenew", order.isAutoRenew);
1187
+ writer.writeBooleanValue("isExpiringSoon", order.isExpiringSoon);
1188
+ writer.writeBooleanValue("isInactive", order.isInactive);
1189
+ writer.writeBooleanValue("isTrial", order.isTrial);
1190
+ writer.writeCollectionOfObjectValues("items", order.items, serializeOrderItem);
1191
+ writer.writeStringValue("lastSettlementReference", order.lastSettlementReference);
1192
+ writer.writeGuidValue("lastTransactionId", order.lastTransactionId);
1193
+ writer.writeObjectValue("metadata", order.metadata, serializeOrder_metadata);
1194
+ writer.writeEnumValue("paymentMethod", order.paymentMethod);
1195
+ writer.writeEnumValue("paymentProcessor", order.paymentProcessor);
1196
+ writer.writeStringValue("processorReference", order.processorReference);
1197
+ writer.writeNumberValue("quantity", order.quantity);
1198
+ writer.writeEnumValue("status", order.status);
1199
+ writer.writeAdditionalData(order.additionalData);
1200
+ }
1201
+ /**
1202
+ * Serializes information the current object
1203
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1204
+ * @param Order_metadata The instance to serialize from.
1205
+ * @param writer Serialization writer to use to serialize this model
1206
+ */
1207
+ // @ts-ignore
1208
+ export function serializeOrder_metadata(writer, order_metadata = {}, isSerializingDerivedType = false) {
1209
+ if (!order_metadata || isSerializingDerivedType) {
1210
+ return;
1211
+ }
1212
+ writer.writeAdditionalData(order_metadata.additionalData);
1213
+ }
1214
+ /**
1215
+ * Serializes information the current object
1216
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1217
+ * @param OrderItem The instance to serialize from.
1218
+ * @param writer Serialization writer to use to serialize this model
1219
+ */
1220
+ // @ts-ignore
1221
+ export function serializeOrderItem(writer, orderItem = {}, isSerializingDerivedType = false) {
1222
+ if (!orderItem || isSerializingDerivedType) {
1223
+ return;
1224
+ }
1225
+ writer.writeGuidValue("id", orderItem.id);
1226
+ writer.writeEnumValue("kind", orderItem.kind);
1227
+ writer.writeObjectValue("metadata", orderItem.metadata, serializeOrderItem_metadata);
1228
+ writer.writeGuidValue("productId", orderItem.productId);
1229
+ writer.writeCollectionOfPrimitiveValues("resourceIds", orderItem.resourceIds);
1230
+ writer.writeAdditionalData(orderItem.additionalData);
1231
+ }
1232
+ /**
1233
+ * Serializes information the current object
1234
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1235
+ * @param OrderItem_metadata The instance to serialize from.
1236
+ * @param writer Serialization writer to use to serialize this model
1237
+ */
1238
+ // @ts-ignore
1239
+ export function serializeOrderItem_metadata(writer, orderItem_metadata = {}, isSerializingDerivedType = false) {
1240
+ if (!orderItem_metadata || isSerializingDerivedType) {
1241
+ return;
1242
+ }
1243
+ writer.writeAdditionalData(orderItem_metadata.additionalData);
1244
+ }
1245
+ /**
1246
+ * Serializes information the current object
1247
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1248
+ * @param OrganizationBranding The instance to serialize from.
1249
+ * @param writer Serialization writer to use to serialize this model
1250
+ */
1251
+ // @ts-ignore
1252
+ export function serializeOrganizationBranding(writer, organizationBranding = {}, isSerializingDerivedType = false) {
1253
+ if (!organizationBranding || isSerializingDerivedType) {
1254
+ return;
1255
+ }
1256
+ writer.writeStringValue("accentColor", organizationBranding.accentColor);
1257
+ writer.writeStringValue("iconUrl", organizationBranding.iconUrl);
1258
+ writer.writeStringValue("logo", organizationBranding.logo);
1259
+ writer.writeStringValue("logoDarkUrl", organizationBranding.logoDarkUrl);
1260
+ writer.writeStringValue("logoLightUrl", organizationBranding.logoLightUrl);
1261
+ writer.writeAdditionalData(organizationBranding.additionalData);
1262
+ }
1263
+ /**
1264
+ * Serializes information the current object
1265
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1266
+ * @param OrganizationStore The instance to serialize from.
1267
+ * @param writer Serialization writer to use to serialize this model
1268
+ */
1269
+ // @ts-ignore
1270
+ export function serializeOrganizationStore(writer, organizationStore = {}, isSerializingDerivedType = false) {
1271
+ if (!organizationStore || isSerializingDerivedType) {
1272
+ return;
1273
+ }
1274
+ writer.writeStringValue("crispWorkspaceId", organizationStore.crispWorkspaceId);
1275
+ writer.writeStringValue("customCss", organizationStore.customCss);
1276
+ writer.writeStringValue("customJs", organizationStore.customJs);
1277
+ writer.writeStringValue("documentationMd", organizationStore.documentationMd);
1278
+ writer.writeStringValue("domain", organizationStore.domain);
1279
+ writer.writeStringValue("name", organizationStore.name);
1280
+ writer.writeBooleanValue("showDocumentationTab", organizationStore.showDocumentationTab);
1281
+ writer.writeBooleanValue("showReviewsTab", organizationStore.showReviewsTab);
1282
+ writer.writeStringValue("supportUrl", organizationStore.supportUrl);
1283
+ writer.writeStringValue("tagline", organizationStore.tagline);
1284
+ writer.writeStringValue("topBannerMessage", organizationStore.topBannerMessage);
1285
+ writer.writeAdditionalData(organizationStore.additionalData);
1286
+ }
1287
+ /**
1288
+ * Serializes information the current object
1289
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1290
+ * @param Product The instance to serialize from.
1291
+ * @param writer Serialization writer to use to serialize this model
1292
+ */
1293
+ // @ts-ignore
1294
+ export function serializeProduct(writer, product = {}, isSerializingDerivedType = false) {
1295
+ if (!product || isSerializingDerivedType) {
1296
+ return;
1297
+ }
1298
+ writer.writeNumberValue("availableProxies", product.availableProxies);
1299
+ writer.writeNumberValue("basePrice", product.basePrice);
1300
+ writer.writeStringValue("description", product.description);
1301
+ writer.writeGuidValue("id", product.id);
1302
+ writer.writeBooleanValue("isDisabled", product.isDisabled);
1303
+ writer.writeEnumValue("kind", product.kind);
1304
+ writer.writeStringValue("name", product.name);
1305
+ writer.writeNumberValue("price", product.price);
1306
+ writer.writeEnumValue("pricingType", product.pricingType);
1307
+ writer.writeNumberValue("retailPrice", product.retailPrice);
1308
+ writer.writeAdditionalData(product.additionalData);
1309
+ }
1310
+ /**
1311
+ * Serializes information the current object
1312
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1313
+ * @param Proxy The instance to serialize from.
1314
+ * @param writer Serialization writer to use to serialize this model
1315
+ */
1316
+ // @ts-ignore
1317
+ export function serializeProxy(writer, proxy = {}, isSerializingDerivedType = false) {
1318
+ if (!proxy || isSerializingDerivedType) {
1319
+ return;
1320
+ }
1321
+ if (proxy.capabilities)
1322
+ writer.writeCollectionOfEnumValues("capabilities", proxy.capabilities);
1323
+ writer.writeObjectValue("datacenter", proxy.datacenter, serializeProxyDatacenter);
1324
+ writer.writeObjectValue("features", proxy.features, serializeProxyFeatures);
1325
+ writer.writeStringValue("host", proxy.host);
1326
+ writer.writeGuidValue("id", proxy.id);
1327
+ writer.writeStringValue("ip", proxy.ip);
1328
+ writer.writeObjectValue("isp", proxy.isp, serializeProxyIsp);
1329
+ writer.writeObjectValue("location", proxy.location, serializeProxyLocation);
1330
+ writer.writeStringValue("note", proxy.note);
1331
+ writer.writeNumberValue("port", proxy.port);
1332
+ writer.writeObjectValue("product", proxy.product, serializeProxyProduct);
1333
+ writer.writeCollectionOfPrimitiveValues("tags", proxy.tags);
1334
+ writer.writeAdditionalData(proxy.additionalData);
1335
+ }
1336
+ /**
1337
+ * Serializes information the current object
1338
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1339
+ * @param ProxyCredentialResponse The instance to serialize from.
1340
+ * @param writer Serialization writer to use to serialize this model
1341
+ */
1342
+ // @ts-ignore
1343
+ export function serializeProxyCredentialResponse(writer, proxyCredentialResponse = {}, isSerializingDerivedType = false) {
1344
+ if (!proxyCredentialResponse || isSerializingDerivedType) {
1345
+ return;
1346
+ }
1347
+ writer.writeCollectionOfPrimitiveValues("allowedDomains", proxyCredentialResponse.allowedDomains);
1348
+ writer.writeCollectionOfPrimitiveValues("allowedIps", proxyCredentialResponse.allowedIps);
1349
+ writer.writeDateValue("appliedAt", proxyCredentialResponse.appliedAt);
1350
+ writer.writeStringValue("password", proxyCredentialResponse.password);
1351
+ writer.writeStringValue("username", proxyCredentialResponse.username);
1352
+ writer.writeAdditionalData(proxyCredentialResponse.additionalData);
1353
+ }
1354
+ /**
1355
+ * Serializes information the current object
1356
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1357
+ * @param ProxyDatacenter The instance to serialize from.
1358
+ * @param writer Serialization writer to use to serialize this model
1359
+ */
1360
+ // @ts-ignore
1361
+ export function serializeProxyDatacenter(writer, proxyDatacenter = {}, isSerializingDerivedType = false) {
1362
+ if (!proxyDatacenter || isSerializingDerivedType) {
1363
+ return;
1364
+ }
1365
+ writer.writeGuidValue("id", proxyDatacenter.id);
1366
+ writer.writeStringValue("name", proxyDatacenter.name);
1367
+ writer.writeAdditionalData(proxyDatacenter.additionalData);
1368
+ }
1369
+ /**
1370
+ * Serializes information the current object
1371
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1372
+ * @param ProxyFeatures The instance to serialize from.
1373
+ * @param writer Serialization writer to use to serialize this model
1374
+ */
1375
+ // @ts-ignore
1376
+ export function serializeProxyFeatures(writer, proxyFeatures = {}, isSerializingDerivedType = false) {
1377
+ if (!proxyFeatures || isSerializingDerivedType) {
1378
+ return;
1379
+ }
1380
+ writer.writeObjectValue("ipRotation", proxyFeatures.ipRotation, serializeProxyIpRotationFeature);
1381
+ writer.writeAdditionalData(proxyFeatures.additionalData);
1382
+ }
1383
+ /**
1384
+ * Serializes information the current object
1385
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1386
+ * @param ProxyIpRotationFeature The instance to serialize from.
1387
+ * @param writer Serialization writer to use to serialize this model
1388
+ */
1389
+ // @ts-ignore
1390
+ export function serializeProxyIpRotationFeature(writer, proxyIpRotationFeature = {}, isSerializingDerivedType = false) {
1391
+ if (!proxyIpRotationFeature || isSerializingDerivedType) {
1392
+ return;
1393
+ }
1394
+ writer.writeNumberValue("intervalMinutes", proxyIpRotationFeature.intervalMinutes);
1395
+ writer.writeNumberValue("intervalSeconds", proxyIpRotationFeature.intervalSeconds);
1396
+ writer.writeAdditionalData(proxyIpRotationFeature.additionalData);
1397
+ }
1398
+ /**
1399
+ * Serializes information the current object
1400
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1401
+ * @param ProxyIpRotationResponse The instance to serialize from.
1402
+ * @param writer Serialization writer to use to serialize this model
1403
+ */
1404
+ // @ts-ignore
1405
+ export function serializeProxyIpRotationResponse(writer, proxyIpRotationResponse = {}, isSerializingDerivedType = false) {
1406
+ if (!proxyIpRotationResponse || isSerializingDerivedType) {
1407
+ return;
1408
+ }
1409
+ writer.writeNumberValue("intervalMinutes", proxyIpRotationResponse.intervalMinutes);
1410
+ writer.writeNumberValue("intervalSeconds", proxyIpRotationResponse.intervalSeconds);
1411
+ writer.writeAdditionalData(proxyIpRotationResponse.additionalData);
1412
+ }
1413
+ /**
1414
+ * Serializes information the current object
1415
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1416
+ * @param ProxyIsp The instance to serialize from.
1417
+ * @param writer Serialization writer to use to serialize this model
1418
+ */
1419
+ // @ts-ignore
1420
+ export function serializeProxyIsp(writer, proxyIsp = {}, isSerializingDerivedType = false) {
1421
+ if (!proxyIsp || isSerializingDerivedType) {
1422
+ return;
1423
+ }
1424
+ writer.writeGuidValue("id", proxyIsp.id);
1425
+ writer.writeStringValue("logoUrl", proxyIsp.logoUrl);
1426
+ writer.writeStringValue("name", proxyIsp.name);
1427
+ writer.writeAdditionalData(proxyIsp.additionalData);
1428
+ }
1429
+ /**
1430
+ * Serializes information the current object
1431
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1432
+ * @param ProxyLocation The instance to serialize from.
1433
+ * @param writer Serialization writer to use to serialize this model
1434
+ */
1435
+ // @ts-ignore
1436
+ export function serializeProxyLocation(writer, proxyLocation = {}, isSerializingDerivedType = false) {
1437
+ if (!proxyLocation || isSerializingDerivedType) {
1438
+ return;
1439
+ }
1440
+ writer.writeStringValue("city", proxyLocation.city);
1441
+ writer.writeStringValue("countryCode", proxyLocation.countryCode);
1442
+ writer.writeGuidValue("id", proxyLocation.id);
1443
+ writer.writeAdditionalData(proxyLocation.additionalData);
1444
+ }
1445
+ /**
1446
+ * Serializes information the current object
1447
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1448
+ * @param ProxyOptions The instance to serialize from.
1449
+ * @param writer Serialization writer to use to serialize this model
1450
+ */
1451
+ // @ts-ignore
1452
+ export function serializeProxyOptions(writer, proxyOptions = {}, isSerializingDerivedType = false) {
1453
+ if (!proxyOptions || isSerializingDerivedType) {
1454
+ return;
1455
+ }
1456
+ writer.writeGuidValue("id", proxyOptions.id);
1457
+ writer.writeObjectValue("metadata", proxyOptions.metadata, serializeProxyOptions_metadata);
1458
+ writer.writeGuidValue("proxyId", proxyOptions.proxyId);
1459
+ writer.writeEnumValue("resolutionMode", proxyOptions.resolutionMode);
1460
+ writer.writeAdditionalData(proxyOptions.additionalData);
1461
+ }
1462
+ /**
1463
+ * Serializes information the current object
1464
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1465
+ * @param ProxyOptions_metadata The instance to serialize from.
1466
+ * @param writer Serialization writer to use to serialize this model
1467
+ */
1468
+ // @ts-ignore
1469
+ export function serializeProxyOptions_metadata(writer, proxyOptions_metadata = {}, isSerializingDerivedType = false) {
1470
+ if (!proxyOptions_metadata || isSerializingDerivedType) {
1471
+ return;
1472
+ }
1473
+ writer.writeAdditionalData(proxyOptions_metadata.additionalData);
1474
+ }
1475
+ /**
1476
+ * Serializes information the current object
1477
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1478
+ * @param ProxyProduct The instance to serialize from.
1479
+ * @param writer Serialization writer to use to serialize this model
1480
+ */
1481
+ // @ts-ignore
1482
+ export function serializeProxyProduct(writer, proxyProduct = {}, isSerializingDerivedType = false) {
1483
+ if (!proxyProduct || isSerializingDerivedType) {
1484
+ return;
1485
+ }
1486
+ writer.writeGuidValue("id", proxyProduct.id);
1487
+ writer.writeEnumValue("kind", proxyProduct.kind);
1488
+ writer.writeStringValue("name", proxyProduct.name);
1489
+ writer.writeAdditionalData(proxyProduct.additionalData);
1490
+ }
1491
+ /**
1492
+ * Serializes information the current object
1493
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1494
+ * @param RequestDetails The instance to serialize from.
1495
+ * @param writer Serialization writer to use to serialize this model
1496
+ */
1497
+ // @ts-ignore
1498
+ export function serializeRequestDetails(writer, requestDetails = {}, isSerializingDerivedType = false) {
1499
+ if (!requestDetails || isSerializingDerivedType) {
1500
+ return;
1501
+ }
1502
+ writer.writeStringValue("clientIp", requestDetails.clientIp);
1503
+ writer.writeStringValue("correlationId", requestDetails.correlationId);
1504
+ writer.writeDateValue("date", requestDetails.date);
1505
+ writer.writeStringValue("endpoint", requestDetails.endpoint);
1506
+ writer.writeNumberValue("timestamp", requestDetails.timestamp);
1507
+ writer.writeStringValue("userAgent", requestDetails.userAgent);
1508
+ writer.writeAdditionalData(requestDetails.additionalData);
1509
+ }
1510
+ /**
1511
+ * Serializes information the current object
1512
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1513
+ * @param Review The instance to serialize from.
1514
+ * @param writer Serialization writer to use to serialize this model
1515
+ */
1516
+ // @ts-ignore
1517
+ export function serializeReview(writer, review = {}, isSerializingDerivedType = false) {
1518
+ if (!review || isSerializingDerivedType) {
1519
+ return;
1520
+ }
1521
+ writer.writeStringValue("authorName", review.authorName);
1522
+ writer.writeStringValue("content", review.content);
1523
+ writer.writeStringValue("customAuthorName", review.customAuthorName);
1524
+ writer.writeGuidValue("customerId", review.customerId);
1525
+ writer.writeGuidValue("id", review.id);
1526
+ writer.writeBooleanValue("isFeatured", review.isFeatured);
1527
+ writer.writeBooleanValue("isPending", review.isPending);
1528
+ writer.writeObjectValue("metadata", review.metadata, serializeReview_metadata);
1529
+ writer.writeNumberValue("rating", review.rating);
1530
+ writer.writeAdditionalData(review.additionalData);
1531
+ }
1532
+ /**
1533
+ * Serializes information the current object
1534
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1535
+ * @param Review_metadata The instance to serialize from.
1536
+ * @param writer Serialization writer to use to serialize this model
1537
+ */
1538
+ // @ts-ignore
1539
+ export function serializeReview_metadata(writer, review_metadata = {}, isSerializingDerivedType = false) {
1540
+ if (!review_metadata || isSerializingDerivedType) {
1541
+ return;
1542
+ }
1543
+ writer.writeAdditionalData(review_metadata.additionalData);
1544
+ }
1545
+ /**
1546
+ * Serializes information the current object
1547
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1548
+ * @param UpdateProxyCredentialsRequest The instance to serialize from.
1549
+ * @param writer Serialization writer to use to serialize this model
1550
+ */
1551
+ // @ts-ignore
1552
+ export function serializeUpdateProxyCredentialsRequest(writer, updateProxyCredentialsRequest = {}, isSerializingDerivedType = false) {
1553
+ if (!updateProxyCredentialsRequest || isSerializingDerivedType) {
1554
+ return;
1555
+ }
1556
+ writer.writeCollectionOfPrimitiveValues("allowedIps", updateProxyCredentialsRequest.allowedIps);
1557
+ writer.writeStringValue("password", updateProxyCredentialsRequest.password);
1558
+ writer.writeStringValue("username", updateProxyCredentialsRequest.username);
1559
+ writer.writeAdditionalData(updateProxyCredentialsRequest.additionalData);
1560
+ }
1561
+ /**
1562
+ * Serializes information the current object
1563
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1564
+ * @param UpdateProxyIpRotationRequest The instance to serialize from.
1565
+ * @param writer Serialization writer to use to serialize this model
1566
+ */
1567
+ // @ts-ignore
1568
+ export function serializeUpdateProxyIpRotationRequest(writer, updateProxyIpRotationRequest = {}, isSerializingDerivedType = false) {
1569
+ if (!updateProxyIpRotationRequest || isSerializingDerivedType) {
1570
+ return;
1571
+ }
1572
+ writer.writeNumberValue("intervalSeconds", updateProxyIpRotationRequest.intervalSeconds);
1573
+ writer.writeAdditionalData(updateProxyIpRotationRequest.additionalData);
1574
+ }
1575
+ /**
1576
+ * Publication state of the announcement: only Published ones are shown.
1577
+ */
1578
+ export const AnnouncementStatusesObject = {
1579
+ Draft: "Draft",
1580
+ Published: "Published",
1581
+ Archived: "Archived",
1582
+ };
1583
+ /**
1584
+ * Billing period the order is charged on (monthly, yearly). Null for a trial (free, time-boxed).
1585
+ */
1586
+ export const BillingCyclesObject = {
1587
+ Daily: "Daily",
1588
+ Weekly: "Weekly",
1589
+ Monthly: "Monthly",
1590
+ Quarterly: "Quarterly",
1591
+ Yearly: "Yearly",
1592
+ OpenapiJsonNullSentinelValue2BF936000FE44250987AE5DDB203E464: "openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464",
1593
+ };
1594
+ export const CapabilityTypesObject = {
1595
+ IpScore: "IpScore",
1596
+ Ipv6: "Ipv6",
1597
+ };
1598
+ /**
1599
+ * Lifecycle state of the incident (open, resolved, etc.).
1600
+ */
1601
+ export const IncidentStatusesObject = {
1602
+ Open: "Open",
1603
+ Resolved: "Resolved",
1604
+ Dismissed: "Dismissed",
1605
+ };
1606
+ /**
1607
+ * Why the order was placed: wholesale (the organization buying for itself, on our platform account) or retail (reselling to its own customer, on its connected account). Persisted so later actions — cancellation, refund — resolve the same Stripe account the order settled on, instead of re-deriving it from the request.
1608
+ */
1609
+ export const OrderIntentsObject = {
1610
+ Wholesale: "Wholesale",
1611
+ Retail: "Retail",
1612
+ };
1613
+ /**
1614
+ * Commercial state of the order. Stored as the source of truth for states that aren't derivable from the dates (`Provisioning`, `Expired` once a worker confirms it, and later cancellations or holds). The transient `GracePeriod` is layered on at read time by `ResolveStatus` from DateTimeOffset? Order.ExpiresAt and the organization's grace policy. Defaults to `Pending` (nothing paid or set up yet); each flow sets the real state through the transition helpers.
1615
+ */
1616
+ export const OrderStatusesObject = {
1617
+ Pending: "Pending",
1618
+ Provisioning: "Provisioning",
1619
+ Active: "Active",
1620
+ GracePeriod: "GracePeriod",
1621
+ Expired: "Expired",
1622
+ Deleted: "Deleted",
1623
+ };
1624
+ /**
1625
+ * How the order is paid. Null for a trial (free).
1626
+ */
1627
+ export const PaymentMethodsObject = {
1628
+ Balance: "Balance",
1629
+ CreditCard: "CreditCard",
1630
+ Cryptocurrency: "Cryptocurrency",
1631
+ Debug: "Debug",
1632
+ OpenapiJsonNullSentinelValue2BF936000FE44250987AE5DDB203E464: "openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464",
1633
+ };
1634
+ /**
1635
+ * Processor that settles the order (Stripe, Heleket). Selects the webhook and reconciliation path that keeps it alive. Null for a trial (nothing to settle).
1636
+ */
1637
+ export const PaymentProcessorsObject = {
1638
+ None: "None",
1639
+ Heleket: "Heleket",
1640
+ Stripe: "Stripe",
1641
+ OpenapiJsonNullSentinelValue2BF936000FE44250987AE5DDB203E464: "openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464",
1642
+ };
1643
+ /**
1644
+ * How the product is billed.
1645
+ */
1646
+ export const PricingTypesObject = {
1647
+ PerUnit: "PerUnit",
1648
+ PerBandwidth: "PerBandwidth",
1649
+ };
1650
+ /**
1651
+ * Kind of resource this product delivers (proxy, host).
1652
+ */
1653
+ export const ProductKindsObject = {
1654
+ Proxy: "Proxy",
1655
+ Host: "Host",
1656
+ };
1657
+ /**
1658
+ * How the proxy resolves addresses. The non-default modes need the proxy's IPv6 capability.
1659
+ */
1660
+ export const ResolutionModesObject = {
1661
+ DefaultEscaped: "Default",
1662
+ Ipv6: "Ipv6",
1663
+ };
1664
+ /* tslint:enable */
1665
+ /* eslint-enable */