yellowgrid-api-ts 3.2.69-dev.0 → 3.2.70-dev.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/.openapi-generator/FILES +7 -1
- package/README.md +21 -2
- package/api.ts +1699 -201
- package/dist/api.d.ts +1014 -141
- package/dist/api.js +1379 -97
- package/dist/models/EventStatusEnum.d.ts +18 -0
- package/dist/models/EventStatusEnum.js +20 -0
- package/dist/models/PortStatusEnum.d.ts +18 -0
- package/dist/models/PortStatusEnum.js +20 -0
- package/docs/Class3CXMultiTenantApi.md +55 -0
- package/docs/NumberPortDTO.md +55 -0
- package/docs/NumberPortModel.md +51 -0
- package/docs/NumberPortRangeDTO.md +33 -0
- package/docs/NumberPortRangeRequestDTO.md +27 -0
- package/docs/NumberPortingApi.md +668 -0
- package/docs/NumberPortsModel.md +27 -0
- package/docs/OAuth20Api.md +3 -3
- package/docs/OrdersApi.md +14 -14
- package/docs/SIPTrunksApi.md +55 -0
- package/docs/SupportTicketModel.md +41 -0
- package/docs/TicketsApi.md +8 -8
- package/models/EventStatusEnum.ts +19 -0
- package/models/PortStatusEnum.ts +19 -0
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -1112,6 +1112,8 @@ export const AuditLogEntityTypeEnum = {
|
|
|
1112
1112
|
PopsItemDiscounts: 'pops_item_discounts',
|
|
1113
1113
|
PopsItems: 'pops_items',
|
|
1114
1114
|
PopsLinkedOrders: 'pops_linked_orders',
|
|
1115
|
+
NumberPorts: 'number_ports',
|
|
1116
|
+
NumberPortRanges: 'number_port_ranges',
|
|
1115
1117
|
PopsOfflineInstances: 'pops_offline_instances',
|
|
1116
1118
|
PopsOrderedItems: 'pops_ordered_items',
|
|
1117
1119
|
PopsPrizes: 'pops_prizes',
|
|
@@ -4127,6 +4129,335 @@ export interface NavigationModel {
|
|
|
4127
4129
|
*/
|
|
4128
4130
|
'openNewPage'?: boolean;
|
|
4129
4131
|
}
|
|
4132
|
+
/**
|
|
4133
|
+
* Number Port Response
|
|
4134
|
+
* @export
|
|
4135
|
+
* @interface NumberPortDTO
|
|
4136
|
+
*/
|
|
4137
|
+
export interface NumberPortDTO {
|
|
4138
|
+
/**
|
|
4139
|
+
* Company Name
|
|
4140
|
+
* @type {string}
|
|
4141
|
+
* @memberof NumberPortDTO
|
|
4142
|
+
*/
|
|
4143
|
+
'companyName'?: string | null;
|
|
4144
|
+
/**
|
|
4145
|
+
* Address Line 1
|
|
4146
|
+
* @type {string}
|
|
4147
|
+
* @memberof NumberPortDTO
|
|
4148
|
+
*/
|
|
4149
|
+
'addressLine1'?: string | null;
|
|
4150
|
+
/**
|
|
4151
|
+
* Address Line 2
|
|
4152
|
+
* @type {string}
|
|
4153
|
+
* @memberof NumberPortDTO
|
|
4154
|
+
*/
|
|
4155
|
+
'addressLine2'?: string | null;
|
|
4156
|
+
/**
|
|
4157
|
+
* City
|
|
4158
|
+
* @type {string}
|
|
4159
|
+
* @memberof NumberPortDTO
|
|
4160
|
+
*/
|
|
4161
|
+
'city'?: string | null;
|
|
4162
|
+
/**
|
|
4163
|
+
* Post Code
|
|
4164
|
+
* @type {string}
|
|
4165
|
+
* @memberof NumberPortDTO
|
|
4166
|
+
*/
|
|
4167
|
+
'postCode'?: string | null;
|
|
4168
|
+
/**
|
|
4169
|
+
* Trunk ID
|
|
4170
|
+
* @type {number}
|
|
4171
|
+
* @memberof NumberPortDTO
|
|
4172
|
+
*/
|
|
4173
|
+
'trunkId'?: number | null;
|
|
4174
|
+
/**
|
|
4175
|
+
* Starter Bundle ID
|
|
4176
|
+
* @type {string}
|
|
4177
|
+
* @memberof NumberPortDTO
|
|
4178
|
+
*/
|
|
4179
|
+
'tenantId'?: string | null;
|
|
4180
|
+
/**
|
|
4181
|
+
* Requested Port Date
|
|
4182
|
+
* @type {string}
|
|
4183
|
+
* @memberof NumberPortDTO
|
|
4184
|
+
*/
|
|
4185
|
+
'requestedPortDate'?: string | null;
|
|
4186
|
+
/**
|
|
4187
|
+
* Port Date ASAP
|
|
4188
|
+
* @type {boolean}
|
|
4189
|
+
* @memberof NumberPortDTO
|
|
4190
|
+
*/
|
|
4191
|
+
'asap'?: boolean | null;
|
|
4192
|
+
/**
|
|
4193
|
+
* Comment
|
|
4194
|
+
* @type {string}
|
|
4195
|
+
* @memberof NumberPortDTO
|
|
4196
|
+
*/
|
|
4197
|
+
'comment'?: string | null;
|
|
4198
|
+
/**
|
|
4199
|
+
* Number Port ID
|
|
4200
|
+
* @type {number}
|
|
4201
|
+
* @memberof NumberPortDTO
|
|
4202
|
+
*/
|
|
4203
|
+
'id'?: number;
|
|
4204
|
+
/**
|
|
4205
|
+
* Reseller ID
|
|
4206
|
+
* @type {number}
|
|
4207
|
+
* @memberof NumberPortDTO
|
|
4208
|
+
*/
|
|
4209
|
+
'customerId'?: number;
|
|
4210
|
+
/**
|
|
4211
|
+
* Customer Name
|
|
4212
|
+
* @type {string}
|
|
4213
|
+
* @memberof NumberPortDTO
|
|
4214
|
+
*/
|
|
4215
|
+
'customerName'?: string;
|
|
4216
|
+
/**
|
|
4217
|
+
* Porting Date
|
|
4218
|
+
* @type {string}
|
|
4219
|
+
* @memberof NumberPortDTO
|
|
4220
|
+
*/
|
|
4221
|
+
'portDate'?: string;
|
|
4222
|
+
/**
|
|
4223
|
+
* Number Ranges
|
|
4224
|
+
* @type {Array<NumberPortRangeDTO>}
|
|
4225
|
+
* @memberof NumberPortDTO
|
|
4226
|
+
*/
|
|
4227
|
+
'numberRanges'?: Array<NumberPortRangeDTO>;
|
|
4228
|
+
/**
|
|
4229
|
+
* Status
|
|
4230
|
+
* @type {number}
|
|
4231
|
+
* @memberof NumberPortDTO
|
|
4232
|
+
*/
|
|
4233
|
+
'status'?: number;
|
|
4234
|
+
/**
|
|
4235
|
+
* Status Text
|
|
4236
|
+
* @type {string}
|
|
4237
|
+
* @memberof NumberPortDTO
|
|
4238
|
+
*/
|
|
4239
|
+
'statusText'?: string;
|
|
4240
|
+
/**
|
|
4241
|
+
* Ticket ID
|
|
4242
|
+
* @type {number}
|
|
4243
|
+
* @memberof NumberPortDTO
|
|
4244
|
+
*/
|
|
4245
|
+
'ticketId'?: number | null;
|
|
4246
|
+
}
|
|
4247
|
+
/**
|
|
4248
|
+
* Number Port Model
|
|
4249
|
+
* @export
|
|
4250
|
+
* @interface NumberPortModel
|
|
4251
|
+
*/
|
|
4252
|
+
export interface NumberPortModel {
|
|
4253
|
+
/**
|
|
4254
|
+
* Number Port ID
|
|
4255
|
+
* @type {number}
|
|
4256
|
+
* @memberof NumberPortModel
|
|
4257
|
+
*/
|
|
4258
|
+
'id'?: number;
|
|
4259
|
+
/**
|
|
4260
|
+
* Customer ID
|
|
4261
|
+
* @type {number}
|
|
4262
|
+
* @memberof NumberPortModel
|
|
4263
|
+
*/
|
|
4264
|
+
'customerId'?: number;
|
|
4265
|
+
/**
|
|
4266
|
+
* End User
|
|
4267
|
+
* @type {string}
|
|
4268
|
+
* @memberof NumberPortModel
|
|
4269
|
+
*/
|
|
4270
|
+
'endUser'?: string | null;
|
|
4271
|
+
/**
|
|
4272
|
+
* Address Line 1
|
|
4273
|
+
* @type {string}
|
|
4274
|
+
* @memberof NumberPortModel
|
|
4275
|
+
*/
|
|
4276
|
+
'addressLine1'?: string | null;
|
|
4277
|
+
/**
|
|
4278
|
+
* Address Line 2
|
|
4279
|
+
* @type {string}
|
|
4280
|
+
* @memberof NumberPortModel
|
|
4281
|
+
*/
|
|
4282
|
+
'addressLine2'?: string | null;
|
|
4283
|
+
/**
|
|
4284
|
+
* City
|
|
4285
|
+
* @type {string}
|
|
4286
|
+
* @memberof NumberPortModel
|
|
4287
|
+
*/
|
|
4288
|
+
'city'?: string | null;
|
|
4289
|
+
/**
|
|
4290
|
+
* Post Code
|
|
4291
|
+
* @type {string}
|
|
4292
|
+
* @memberof NumberPortModel
|
|
4293
|
+
*/
|
|
4294
|
+
'postCode'?: string | null;
|
|
4295
|
+
/**
|
|
4296
|
+
* Trunk ID
|
|
4297
|
+
* @type {number}
|
|
4298
|
+
* @memberof NumberPortModel
|
|
4299
|
+
*/
|
|
4300
|
+
'trunkId'?: number | null;
|
|
4301
|
+
/**
|
|
4302
|
+
* Tenant ID
|
|
4303
|
+
* @type {string}
|
|
4304
|
+
* @memberof NumberPortModel
|
|
4305
|
+
*/
|
|
4306
|
+
'tenantId'?: string | null;
|
|
4307
|
+
/**
|
|
4308
|
+
* Requested Port Date
|
|
4309
|
+
* @type {string}
|
|
4310
|
+
* @memberof NumberPortModel
|
|
4311
|
+
*/
|
|
4312
|
+
'requestedPortDate'?: string | null;
|
|
4313
|
+
/**
|
|
4314
|
+
* Port Date
|
|
4315
|
+
* @type {string}
|
|
4316
|
+
* @memberof NumberPortModel
|
|
4317
|
+
*/
|
|
4318
|
+
'portDate'?: string | null;
|
|
4319
|
+
/**
|
|
4320
|
+
* Comment
|
|
4321
|
+
* @type {string}
|
|
4322
|
+
* @memberof NumberPortModel
|
|
4323
|
+
*/
|
|
4324
|
+
'comment'?: string | null;
|
|
4325
|
+
/**
|
|
4326
|
+
* Status
|
|
4327
|
+
* @type {number}
|
|
4328
|
+
* @memberof NumberPortModel
|
|
4329
|
+
*/
|
|
4330
|
+
'status'?: number | null;
|
|
4331
|
+
/**
|
|
4332
|
+
* Ticket ID
|
|
4333
|
+
* @type {number}
|
|
4334
|
+
* @memberof NumberPortModel
|
|
4335
|
+
*/
|
|
4336
|
+
'ticketId'?: number | null;
|
|
4337
|
+
/**
|
|
4338
|
+
* Number Port Ranges
|
|
4339
|
+
* @type {Array<any>}
|
|
4340
|
+
* @memberof NumberPortModel
|
|
4341
|
+
*/
|
|
4342
|
+
'ranges'?: Array<any>;
|
|
4343
|
+
/**
|
|
4344
|
+
* Customer Company Name
|
|
4345
|
+
* @type {string}
|
|
4346
|
+
* @memberof NumberPortModel
|
|
4347
|
+
*/
|
|
4348
|
+
'customerName'?: string;
|
|
4349
|
+
}
|
|
4350
|
+
/**
|
|
4351
|
+
* Number Port Range Response
|
|
4352
|
+
* @export
|
|
4353
|
+
* @interface NumberPortRangeDTO
|
|
4354
|
+
*/
|
|
4355
|
+
export interface NumberPortRangeDTO {
|
|
4356
|
+
/**
|
|
4357
|
+
* Range Start Number
|
|
4358
|
+
* @type {string}
|
|
4359
|
+
* @memberof NumberPortRangeDTO
|
|
4360
|
+
*/
|
|
4361
|
+
'rangeStart'?: string | null;
|
|
4362
|
+
/**
|
|
4363
|
+
* Range End Number
|
|
4364
|
+
* @type {string}
|
|
4365
|
+
* @memberof NumberPortRangeDTO
|
|
4366
|
+
*/
|
|
4367
|
+
'rangeEnd'?: string | null;
|
|
4368
|
+
/**
|
|
4369
|
+
* Losing Communications Provider
|
|
4370
|
+
* @type {string}
|
|
4371
|
+
* @memberof NumberPortRangeDTO
|
|
4372
|
+
*/
|
|
4373
|
+
'lcp'?: string | null;
|
|
4374
|
+
/**
|
|
4375
|
+
* Range Post Code
|
|
4376
|
+
* @type {string}
|
|
4377
|
+
* @memberof NumberPortRangeDTO
|
|
4378
|
+
*/
|
|
4379
|
+
'postCode'?: string | null;
|
|
4380
|
+
/**
|
|
4381
|
+
* Number Port Range ID
|
|
4382
|
+
* @type {number}
|
|
4383
|
+
* @memberof NumberPortRangeDTO
|
|
4384
|
+
*/
|
|
4385
|
+
'id'?: number;
|
|
4386
|
+
/**
|
|
4387
|
+
* Number Port ID
|
|
4388
|
+
* @type {number}
|
|
4389
|
+
* @memberof NumberPortRangeDTO
|
|
4390
|
+
*/
|
|
4391
|
+
'portId'?: number;
|
|
4392
|
+
/**
|
|
4393
|
+
* Range Holder
|
|
4394
|
+
* @type {string}
|
|
4395
|
+
* @memberof NumberPortRangeDTO
|
|
4396
|
+
*/
|
|
4397
|
+
'rangeHolder'?: string | null;
|
|
4398
|
+
}
|
|
4399
|
+
/**
|
|
4400
|
+
* NumberPortRangeDTO
|
|
4401
|
+
* @export
|
|
4402
|
+
* @interface NumberPortRangeRequestDTO
|
|
4403
|
+
*/
|
|
4404
|
+
export interface NumberPortRangeRequestDTO {
|
|
4405
|
+
/**
|
|
4406
|
+
* Range Start Number
|
|
4407
|
+
* @type {string}
|
|
4408
|
+
* @memberof NumberPortRangeRequestDTO
|
|
4409
|
+
*/
|
|
4410
|
+
'rangeStart'?: string | null;
|
|
4411
|
+
/**
|
|
4412
|
+
* Range End Number
|
|
4413
|
+
* @type {string}
|
|
4414
|
+
* @memberof NumberPortRangeRequestDTO
|
|
4415
|
+
*/
|
|
4416
|
+
'rangeEnd'?: string | null;
|
|
4417
|
+
/**
|
|
4418
|
+
* Losing Communications Provider
|
|
4419
|
+
* @type {string}
|
|
4420
|
+
* @memberof NumberPortRangeRequestDTO
|
|
4421
|
+
*/
|
|
4422
|
+
'lcp'?: string | null;
|
|
4423
|
+
/**
|
|
4424
|
+
* Range Post Code
|
|
4425
|
+
* @type {string}
|
|
4426
|
+
* @memberof NumberPortRangeRequestDTO
|
|
4427
|
+
*/
|
|
4428
|
+
'postCode'?: string | null;
|
|
4429
|
+
}
|
|
4430
|
+
/**
|
|
4431
|
+
* Number Ports
|
|
4432
|
+
* @export
|
|
4433
|
+
* @interface NumberPortsModel
|
|
4434
|
+
*/
|
|
4435
|
+
export interface NumberPortsModel {
|
|
4436
|
+
/**
|
|
4437
|
+
* Results
|
|
4438
|
+
* @type {Array<NumberPortDTO>}
|
|
4439
|
+
* @memberof NumberPortsModel
|
|
4440
|
+
*/
|
|
4441
|
+
'results'?: Array<NumberPortDTO>;
|
|
4442
|
+
/**
|
|
4443
|
+
* Page
|
|
4444
|
+
* @type {number}
|
|
4445
|
+
* @memberof NumberPortsModel
|
|
4446
|
+
*/
|
|
4447
|
+
'page'?: number;
|
|
4448
|
+
/**
|
|
4449
|
+
* Per Page
|
|
4450
|
+
* @type {number}
|
|
4451
|
+
* @memberof NumberPortsModel
|
|
4452
|
+
*/
|
|
4453
|
+
'perPage'?: number;
|
|
4454
|
+
/**
|
|
4455
|
+
* Total Results
|
|
4456
|
+
* @type {number}
|
|
4457
|
+
* @memberof NumberPortsModel
|
|
4458
|
+
*/
|
|
4459
|
+
'totalResults'?: number;
|
|
4460
|
+
}
|
|
4130
4461
|
/**
|
|
4131
4462
|
* OfflineInstancesEntity
|
|
4132
4463
|
* @export
|
|
@@ -8639,61 +8970,134 @@ export interface SupplierModel {
|
|
|
8639
8970
|
'xeroAccountNumber'?: string;
|
|
8640
8971
|
}
|
|
8641
8972
|
/**
|
|
8642
|
-
*
|
|
8973
|
+
* Telephony Support Ticket
|
|
8643
8974
|
* @export
|
|
8644
|
-
* @interface
|
|
8975
|
+
* @interface SupportTicketModel
|
|
8645
8976
|
*/
|
|
8646
|
-
export interface
|
|
8977
|
+
export interface SupportTicketModel {
|
|
8647
8978
|
/**
|
|
8648
|
-
*
|
|
8979
|
+
* Ticket ID
|
|
8649
8980
|
* @type {number}
|
|
8650
|
-
* @memberof
|
|
8981
|
+
* @memberof SupportTicketModel
|
|
8651
8982
|
*/
|
|
8652
8983
|
'id'?: number;
|
|
8653
8984
|
/**
|
|
8654
|
-
*
|
|
8985
|
+
* Ticket status
|
|
8655
8986
|
* @type {string}
|
|
8656
|
-
* @memberof
|
|
8987
|
+
* @memberof SupportTicketModel
|
|
8657
8988
|
*/
|
|
8658
|
-
'
|
|
8989
|
+
'status'?: string;
|
|
8659
8990
|
/**
|
|
8660
|
-
*
|
|
8661
|
-
* @type {
|
|
8662
|
-
* @memberof
|
|
8991
|
+
* Ticket status ID
|
|
8992
|
+
* @type {number}
|
|
8993
|
+
* @memberof SupportTicketModel
|
|
8663
8994
|
*/
|
|
8664
|
-
'
|
|
8995
|
+
'statusId'?: number;
|
|
8665
8996
|
/**
|
|
8666
|
-
*
|
|
8997
|
+
* Ticket subject
|
|
8667
8998
|
* @type {string}
|
|
8668
|
-
* @memberof
|
|
8999
|
+
* @memberof SupportTicketModel
|
|
8669
9000
|
*/
|
|
8670
|
-
'
|
|
9001
|
+
'subject'?: string;
|
|
8671
9002
|
/**
|
|
8672
|
-
*
|
|
8673
|
-
* @type {
|
|
8674
|
-
* @memberof
|
|
9003
|
+
* Support email address
|
|
9004
|
+
* @type {string}
|
|
9005
|
+
* @memberof SupportTicketModel
|
|
8675
9006
|
*/
|
|
8676
|
-
'
|
|
9007
|
+
'supportEmail'?: string | null;
|
|
8677
9008
|
/**
|
|
8678
|
-
*
|
|
8679
|
-
* @type {
|
|
8680
|
-
* @memberof
|
|
9009
|
+
* Recipient emails
|
|
9010
|
+
* @type {Array<string>}
|
|
9011
|
+
* @memberof SupportTicketModel
|
|
8681
9012
|
*/
|
|
8682
|
-
'
|
|
9013
|
+
'toEmails'?: Array<string>;
|
|
8683
9014
|
/**
|
|
8684
|
-
*
|
|
8685
|
-
* @type {
|
|
8686
|
-
* @memberof
|
|
9015
|
+
* Ticket description (HTML)
|
|
9016
|
+
* @type {string}
|
|
9017
|
+
* @memberof SupportTicketModel
|
|
8687
9018
|
*/
|
|
8688
|
-
'
|
|
9019
|
+
'description'?: string;
|
|
8689
9020
|
/**
|
|
8690
|
-
*
|
|
8691
|
-
* @type {
|
|
8692
|
-
* @memberof
|
|
9021
|
+
* Ticket description (plain text)
|
|
9022
|
+
* @type {string}
|
|
9023
|
+
* @memberof SupportTicketModel
|
|
8693
9024
|
*/
|
|
8694
|
-
'
|
|
9025
|
+
'descriptionText'?: string;
|
|
8695
9026
|
/**
|
|
8696
|
-
*
|
|
9027
|
+
* Creation timestamp
|
|
9028
|
+
* @type {string}
|
|
9029
|
+
* @memberof SupportTicketModel
|
|
9030
|
+
*/
|
|
9031
|
+
'createdAt'?: string;
|
|
9032
|
+
/**
|
|
9033
|
+
* Attachments
|
|
9034
|
+
* @type {Array<AttachmentModel>}
|
|
9035
|
+
* @memberof SupportTicketModel
|
|
9036
|
+
*/
|
|
9037
|
+
'attachments'?: Array<AttachmentModel>;
|
|
9038
|
+
/**
|
|
9039
|
+
* Conversations
|
|
9040
|
+
* @type {Array<ConversationModel>}
|
|
9041
|
+
* @memberof SupportTicketModel
|
|
9042
|
+
*/
|
|
9043
|
+
'conversations'?: Array<ConversationModel>;
|
|
9044
|
+
}
|
|
9045
|
+
/**
|
|
9046
|
+
* 3CX Wizard Restore From Backup
|
|
9047
|
+
* @export
|
|
9048
|
+
* @interface TcxBackupEntity
|
|
9049
|
+
*/
|
|
9050
|
+
export interface TcxBackupEntity {
|
|
9051
|
+
/**
|
|
9052
|
+
* id
|
|
9053
|
+
* @type {number}
|
|
9054
|
+
* @memberof TcxBackupEntity
|
|
9055
|
+
*/
|
|
9056
|
+
'id'?: number;
|
|
9057
|
+
/**
|
|
9058
|
+
* Backup Filename
|
|
9059
|
+
* @type {string}
|
|
9060
|
+
* @memberof TcxBackupEntity
|
|
9061
|
+
*/
|
|
9062
|
+
'path'?: string;
|
|
9063
|
+
/**
|
|
9064
|
+
* password
|
|
9065
|
+
* @type {string}
|
|
9066
|
+
* @memberof TcxBackupEntity
|
|
9067
|
+
*/
|
|
9068
|
+
'password'?: string;
|
|
9069
|
+
/**
|
|
9070
|
+
* adminUsername
|
|
9071
|
+
* @type {string}
|
|
9072
|
+
* @memberof TcxBackupEntity
|
|
9073
|
+
*/
|
|
9074
|
+
'adminUsername'?: string;
|
|
9075
|
+
/**
|
|
9076
|
+
* HTTP Port
|
|
9077
|
+
* @type {number}
|
|
9078
|
+
* @memberof TcxBackupEntity
|
|
9079
|
+
*/
|
|
9080
|
+
'httpPort'?: number;
|
|
9081
|
+
/**
|
|
9082
|
+
* HTTPS Port
|
|
9083
|
+
* @type {number}
|
|
9084
|
+
* @memberof TcxBackupEntity
|
|
9085
|
+
*/
|
|
9086
|
+
'httpsPort'?: number;
|
|
9087
|
+
/**
|
|
9088
|
+
* SIP Port
|
|
9089
|
+
* @type {number}
|
|
9090
|
+
* @memberof TcxBackupEntity
|
|
9091
|
+
*/
|
|
9092
|
+
'sipPort'?: number;
|
|
9093
|
+
/**
|
|
9094
|
+
* 3CX Tunnel Port
|
|
9095
|
+
* @type {number}
|
|
9096
|
+
* @memberof TcxBackupEntity
|
|
9097
|
+
*/
|
|
9098
|
+
'tunnelPort'?: number;
|
|
9099
|
+
/**
|
|
9100
|
+
* 3CX Wizard Build Schedule
|
|
8697
9101
|
* @type {string}
|
|
8698
9102
|
* @memberof TcxBackupEntity
|
|
8699
9103
|
*/
|
|
@@ -10735,79 +11139,6 @@ export interface TechSupportCompanySummaryDTO {
|
|
|
10735
11139
|
*/
|
|
10736
11140
|
'monthlyReportEmailAddress'?: string;
|
|
10737
11141
|
}
|
|
10738
|
-
/**
|
|
10739
|
-
* Telephony Support Ticket
|
|
10740
|
-
* @export
|
|
10741
|
-
* @interface TelephonySupportTicketModel
|
|
10742
|
-
*/
|
|
10743
|
-
export interface TelephonySupportTicketModel {
|
|
10744
|
-
/**
|
|
10745
|
-
* Ticket ID
|
|
10746
|
-
* @type {number}
|
|
10747
|
-
* @memberof TelephonySupportTicketModel
|
|
10748
|
-
*/
|
|
10749
|
-
'id'?: number;
|
|
10750
|
-
/**
|
|
10751
|
-
* Ticket status
|
|
10752
|
-
* @type {string}
|
|
10753
|
-
* @memberof TelephonySupportTicketModel
|
|
10754
|
-
*/
|
|
10755
|
-
'status'?: string;
|
|
10756
|
-
/**
|
|
10757
|
-
* Ticket status ID
|
|
10758
|
-
* @type {number}
|
|
10759
|
-
* @memberof TelephonySupportTicketModel
|
|
10760
|
-
*/
|
|
10761
|
-
'statusId'?: number;
|
|
10762
|
-
/**
|
|
10763
|
-
* Ticket subject
|
|
10764
|
-
* @type {string}
|
|
10765
|
-
* @memberof TelephonySupportTicketModel
|
|
10766
|
-
*/
|
|
10767
|
-
'subject'?: string;
|
|
10768
|
-
/**
|
|
10769
|
-
* Support email address
|
|
10770
|
-
* @type {string}
|
|
10771
|
-
* @memberof TelephonySupportTicketModel
|
|
10772
|
-
*/
|
|
10773
|
-
'supportEmail'?: string | null;
|
|
10774
|
-
/**
|
|
10775
|
-
* Recipient emails
|
|
10776
|
-
* @type {Array<string>}
|
|
10777
|
-
* @memberof TelephonySupportTicketModel
|
|
10778
|
-
*/
|
|
10779
|
-
'toEmails'?: Array<string>;
|
|
10780
|
-
/**
|
|
10781
|
-
* Ticket description (HTML)
|
|
10782
|
-
* @type {string}
|
|
10783
|
-
* @memberof TelephonySupportTicketModel
|
|
10784
|
-
*/
|
|
10785
|
-
'description'?: string;
|
|
10786
|
-
/**
|
|
10787
|
-
* Ticket description (plain text)
|
|
10788
|
-
* @type {string}
|
|
10789
|
-
* @memberof TelephonySupportTicketModel
|
|
10790
|
-
*/
|
|
10791
|
-
'descriptionText'?: string;
|
|
10792
|
-
/**
|
|
10793
|
-
* Creation timestamp
|
|
10794
|
-
* @type {string}
|
|
10795
|
-
* @memberof TelephonySupportTicketModel
|
|
10796
|
-
*/
|
|
10797
|
-
'createdAt'?: string;
|
|
10798
|
-
/**
|
|
10799
|
-
* Attachments
|
|
10800
|
-
* @type {Array<AttachmentModel>}
|
|
10801
|
-
* @memberof TelephonySupportTicketModel
|
|
10802
|
-
*/
|
|
10803
|
-
'attachments'?: Array<AttachmentModel>;
|
|
10804
|
-
/**
|
|
10805
|
-
* Conversations
|
|
10806
|
-
* @type {Array<ConversationModel>}
|
|
10807
|
-
* @memberof TelephonySupportTicketModel
|
|
10808
|
-
*/
|
|
10809
|
-
'conversations'?: Array<ConversationModel>;
|
|
10810
|
-
}
|
|
10811
11142
|
/**
|
|
10812
11143
|
* Ticket Summary Model
|
|
10813
11144
|
* @export
|
|
@@ -16926,6 +17257,43 @@ export const Class3CXMultiTenantApiAxiosParamCreator = function (configuration?:
|
|
|
16926
17257
|
|
|
16927
17258
|
|
|
16928
17259
|
|
|
17260
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
17261
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17262
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
17263
|
+
|
|
17264
|
+
return {
|
|
17265
|
+
url: toPathString(localVarUrlObj),
|
|
17266
|
+
options: localVarRequestOptions,
|
|
17267
|
+
};
|
|
17268
|
+
},
|
|
17269
|
+
/**
|
|
17270
|
+
* Get 3CX Starter Bundle Tenants
|
|
17271
|
+
* @summary Get 3CX MT Tenants
|
|
17272
|
+
* @param {number} customerId
|
|
17273
|
+
* @param {*} [options] Override http request option.
|
|
17274
|
+
* @throws {RequiredError}
|
|
17275
|
+
*/
|
|
17276
|
+
getGetAdminTenants: async (customerId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
17277
|
+
// verify required parameter 'customerId' is not null or undefined
|
|
17278
|
+
assertParamExists('getGetAdminTenants', 'customerId', customerId)
|
|
17279
|
+
const localVarPath = `/tcx/mt/admin/tenants`;
|
|
17280
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
17281
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
17282
|
+
let baseOptions;
|
|
17283
|
+
if (configuration) {
|
|
17284
|
+
baseOptions = configuration.baseOptions;
|
|
17285
|
+
}
|
|
17286
|
+
|
|
17287
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
17288
|
+
const localVarHeaderParameter = {} as any;
|
|
17289
|
+
const localVarQueryParameter = {} as any;
|
|
17290
|
+
|
|
17291
|
+
if (customerId !== undefined) {
|
|
17292
|
+
localVarQueryParameter['customerId'] = customerId;
|
|
17293
|
+
}
|
|
17294
|
+
|
|
17295
|
+
|
|
17296
|
+
|
|
16929
17297
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16930
17298
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16931
17299
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -17181,6 +17549,19 @@ export const Class3CXMultiTenantApiFp = function(configuration?: Configuration)
|
|
|
17181
17549
|
const localVarOperationServerBasePath = operationServerMap['Class3CXMultiTenantApi.deleteGetTenant']?.[localVarOperationServerIndex]?.url;
|
|
17182
17550
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17183
17551
|
},
|
|
17552
|
+
/**
|
|
17553
|
+
* Get 3CX Starter Bundle Tenants
|
|
17554
|
+
* @summary Get 3CX MT Tenants
|
|
17555
|
+
* @param {number} customerId
|
|
17556
|
+
* @param {*} [options] Override http request option.
|
|
17557
|
+
* @throws {RequiredError}
|
|
17558
|
+
*/
|
|
17559
|
+
async getGetAdminTenants(customerId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<TcxMultiTenantModel>>> {
|
|
17560
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetAdminTenants(customerId, options);
|
|
17561
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
17562
|
+
const localVarOperationServerBasePath = operationServerMap['Class3CXMultiTenantApi.getGetAdminTenants']?.[localVarOperationServerIndex]?.url;
|
|
17563
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17564
|
+
},
|
|
17184
17565
|
/**
|
|
17185
17566
|
* Get 3CX Starter Bundle Tenant
|
|
17186
17567
|
* @summary Get 3CX MT Tenant
|
|
@@ -17282,6 +17663,16 @@ export const Class3CXMultiTenantApiFactory = function (configuration?: Configura
|
|
|
17282
17663
|
deleteGetTenant(reference: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
17283
17664
|
return localVarFp.deleteGetTenant(reference, options).then((request) => request(axios, basePath));
|
|
17284
17665
|
},
|
|
17666
|
+
/**
|
|
17667
|
+
* Get 3CX Starter Bundle Tenants
|
|
17668
|
+
* @summary Get 3CX MT Tenants
|
|
17669
|
+
* @param {number} customerId
|
|
17670
|
+
* @param {*} [options] Override http request option.
|
|
17671
|
+
* @throws {RequiredError}
|
|
17672
|
+
*/
|
|
17673
|
+
getGetAdminTenants(customerId: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<TcxMultiTenantModel>> {
|
|
17674
|
+
return localVarFp.getGetAdminTenants(customerId, options).then((request) => request(axios, basePath));
|
|
17675
|
+
},
|
|
17285
17676
|
/**
|
|
17286
17677
|
* Get 3CX Starter Bundle Tenant
|
|
17287
17678
|
* @summary Get 3CX MT Tenant
|
|
@@ -17367,6 +17758,18 @@ export class Class3CXMultiTenantApi extends BaseAPI {
|
|
|
17367
17758
|
return Class3CXMultiTenantApiFp(this.configuration).deleteGetTenant(reference, options).then((request) => request(this.axios, this.basePath));
|
|
17368
17759
|
}
|
|
17369
17760
|
|
|
17761
|
+
/**
|
|
17762
|
+
* Get 3CX Starter Bundle Tenants
|
|
17763
|
+
* @summary Get 3CX MT Tenants
|
|
17764
|
+
* @param {number} customerId
|
|
17765
|
+
* @param {*} [options] Override http request option.
|
|
17766
|
+
* @throws {RequiredError}
|
|
17767
|
+
* @memberof Class3CXMultiTenantApi
|
|
17768
|
+
*/
|
|
17769
|
+
public getGetAdminTenants(customerId: number, options?: RawAxiosRequestConfig) {
|
|
17770
|
+
return Class3CXMultiTenantApiFp(this.configuration).getGetAdminTenants(customerId, options).then((request) => request(this.axios, this.basePath));
|
|
17771
|
+
}
|
|
17772
|
+
|
|
17370
17773
|
/**
|
|
17371
17774
|
* Get 3CX Starter Bundle Tenant
|
|
17372
17775
|
* @summary Get 3CX MT Tenant
|
|
@@ -17505,72 +17908,1097 @@ export const MyPBXToolsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
17505
17908
|
options: localVarRequestOptions,
|
|
17506
17909
|
};
|
|
17507
17910
|
},
|
|
17508
|
-
}
|
|
17509
|
-
};
|
|
17510
|
-
|
|
17511
|
-
/**
|
|
17512
|
-
* MyPBXToolsApi - functional programming interface
|
|
17513
|
-
* @export
|
|
17514
|
-
*/
|
|
17515
|
-
export const MyPBXToolsApiFp = function(configuration?: Configuration) {
|
|
17516
|
-
const localVarAxiosParamCreator = MyPBXToolsApiAxiosParamCreator(configuration)
|
|
17517
|
-
return {
|
|
17911
|
+
}
|
|
17912
|
+
};
|
|
17913
|
+
|
|
17914
|
+
/**
|
|
17915
|
+
* MyPBXToolsApi - functional programming interface
|
|
17916
|
+
* @export
|
|
17917
|
+
*/
|
|
17918
|
+
export const MyPBXToolsApiFp = function(configuration?: Configuration) {
|
|
17919
|
+
const localVarAxiosParamCreator = MyPBXToolsApiAxiosParamCreator(configuration)
|
|
17920
|
+
return {
|
|
17921
|
+
/**
|
|
17922
|
+
* Get 3CX Installation Details
|
|
17923
|
+
* @summary Fetch recording from a 3CX instance
|
|
17924
|
+
* @param {string} licenceKey Licence Key
|
|
17925
|
+
* @param {string} fileName File Name
|
|
17926
|
+
* @param {*} [options] Override http request option.
|
|
17927
|
+
* @throws {RequiredError}
|
|
17928
|
+
*/
|
|
17929
|
+
async getGetRecording(licenceKey: string, fileName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetGetRecording200Response>> {
|
|
17930
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetRecording(licenceKey, fileName, options);
|
|
17931
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
17932
|
+
const localVarOperationServerBasePath = operationServerMap['MyPBXToolsApi.getGetRecording']?.[localVarOperationServerIndex]?.url;
|
|
17933
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17934
|
+
},
|
|
17935
|
+
}
|
|
17936
|
+
};
|
|
17937
|
+
|
|
17938
|
+
/**
|
|
17939
|
+
* MyPBXToolsApi - factory interface
|
|
17940
|
+
* @export
|
|
17941
|
+
*/
|
|
17942
|
+
export const MyPBXToolsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
17943
|
+
const localVarFp = MyPBXToolsApiFp(configuration)
|
|
17944
|
+
return {
|
|
17945
|
+
/**
|
|
17946
|
+
* Get 3CX Installation Details
|
|
17947
|
+
* @summary Fetch recording from a 3CX instance
|
|
17948
|
+
* @param {string} licenceKey Licence Key
|
|
17949
|
+
* @param {string} fileName File Name
|
|
17950
|
+
* @param {*} [options] Override http request option.
|
|
17951
|
+
* @throws {RequiredError}
|
|
17952
|
+
*/
|
|
17953
|
+
getGetRecording(licenceKey: string, fileName: string, options?: RawAxiosRequestConfig): AxiosPromise<GetGetRecording200Response> {
|
|
17954
|
+
return localVarFp.getGetRecording(licenceKey, fileName, options).then((request) => request(axios, basePath));
|
|
17955
|
+
},
|
|
17956
|
+
};
|
|
17957
|
+
};
|
|
17958
|
+
|
|
17959
|
+
/**
|
|
17960
|
+
* MyPBXToolsApi - object-oriented interface
|
|
17961
|
+
* @export
|
|
17962
|
+
* @class MyPBXToolsApi
|
|
17963
|
+
* @extends {BaseAPI}
|
|
17964
|
+
*/
|
|
17965
|
+
export class MyPBXToolsApi extends BaseAPI {
|
|
17966
|
+
/**
|
|
17967
|
+
* Get 3CX Installation Details
|
|
17968
|
+
* @summary Fetch recording from a 3CX instance
|
|
17969
|
+
* @param {string} licenceKey Licence Key
|
|
17970
|
+
* @param {string} fileName File Name
|
|
17971
|
+
* @param {*} [options] Override http request option.
|
|
17972
|
+
* @throws {RequiredError}
|
|
17973
|
+
* @memberof MyPBXToolsApi
|
|
17974
|
+
*/
|
|
17975
|
+
public getGetRecording(licenceKey: string, fileName: string, options?: RawAxiosRequestConfig) {
|
|
17976
|
+
return MyPBXToolsApiFp(this.configuration).getGetRecording(licenceKey, fileName, options).then((request) => request(this.axios, this.basePath));
|
|
17977
|
+
}
|
|
17978
|
+
}
|
|
17979
|
+
|
|
17980
|
+
|
|
17981
|
+
|
|
17982
|
+
/**
|
|
17983
|
+
* NumberPortingApi - axios parameter creator
|
|
17984
|
+
* @export
|
|
17985
|
+
*/
|
|
17986
|
+
export const NumberPortingApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
17987
|
+
return {
|
|
17988
|
+
/**
|
|
17989
|
+
*
|
|
17990
|
+
* @param {number} id Number Port ID
|
|
17991
|
+
* @param {*} [options] Override http request option.
|
|
17992
|
+
* @throws {RequiredError}
|
|
17993
|
+
*/
|
|
17994
|
+
deleteGetAdminNumberPort: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
17995
|
+
// verify required parameter 'id' is not null or undefined
|
|
17996
|
+
assertParamExists('deleteGetAdminNumberPort', 'id', id)
|
|
17997
|
+
const localVarPath = `/admin/sip/numbers/ports/{id}`
|
|
17998
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
17999
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
18000
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
18001
|
+
let baseOptions;
|
|
18002
|
+
if (configuration) {
|
|
18003
|
+
baseOptions = configuration.baseOptions;
|
|
18004
|
+
}
|
|
18005
|
+
|
|
18006
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
18007
|
+
const localVarHeaderParameter = {} as any;
|
|
18008
|
+
const localVarQueryParameter = {} as any;
|
|
18009
|
+
|
|
18010
|
+
|
|
18011
|
+
|
|
18012
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
18013
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
18014
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
18015
|
+
|
|
18016
|
+
return {
|
|
18017
|
+
url: toPathString(localVarUrlObj),
|
|
18018
|
+
options: localVarRequestOptions,
|
|
18019
|
+
};
|
|
18020
|
+
},
|
|
18021
|
+
/**
|
|
18022
|
+
*
|
|
18023
|
+
* @param {number} [pageSize] Number Of Results
|
|
18024
|
+
* @param {number} [page] Page Number
|
|
18025
|
+
* @param {string} [search] Search
|
|
18026
|
+
* @param {*} [options] Override http request option.
|
|
18027
|
+
* @throws {RequiredError}
|
|
18028
|
+
*/
|
|
18029
|
+
getCreateNumberPort: async (pageSize?: number, page?: number, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
18030
|
+
const localVarPath = `/sip/numbers/ports`;
|
|
18031
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
18032
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
18033
|
+
let baseOptions;
|
|
18034
|
+
if (configuration) {
|
|
18035
|
+
baseOptions = configuration.baseOptions;
|
|
18036
|
+
}
|
|
18037
|
+
|
|
18038
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
18039
|
+
const localVarHeaderParameter = {} as any;
|
|
18040
|
+
const localVarQueryParameter = {} as any;
|
|
18041
|
+
|
|
18042
|
+
if (pageSize !== undefined) {
|
|
18043
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
18044
|
+
}
|
|
18045
|
+
|
|
18046
|
+
if (page !== undefined) {
|
|
18047
|
+
localVarQueryParameter['page'] = page;
|
|
18048
|
+
}
|
|
18049
|
+
|
|
18050
|
+
if (search !== undefined) {
|
|
18051
|
+
localVarQueryParameter['search'] = search;
|
|
18052
|
+
}
|
|
18053
|
+
|
|
18054
|
+
|
|
18055
|
+
|
|
18056
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
18057
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
18058
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
18059
|
+
|
|
18060
|
+
return {
|
|
18061
|
+
url: toPathString(localVarUrlObj),
|
|
18062
|
+
options: localVarRequestOptions,
|
|
18063
|
+
};
|
|
18064
|
+
},
|
|
18065
|
+
/**
|
|
18066
|
+
*
|
|
18067
|
+
* @param {number} id Number Port ID
|
|
18068
|
+
* @param {*} [options] Override http request option.
|
|
18069
|
+
* @throws {RequiredError}
|
|
18070
|
+
*/
|
|
18071
|
+
getGetAdminNumberPort: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
18072
|
+
// verify required parameter 'id' is not null or undefined
|
|
18073
|
+
assertParamExists('getGetAdminNumberPort', 'id', id)
|
|
18074
|
+
const localVarPath = `/admin/sip/numbers/ports/{id}`
|
|
18075
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
18076
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
18077
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
18078
|
+
let baseOptions;
|
|
18079
|
+
if (configuration) {
|
|
18080
|
+
baseOptions = configuration.baseOptions;
|
|
18081
|
+
}
|
|
18082
|
+
|
|
18083
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
18084
|
+
const localVarHeaderParameter = {} as any;
|
|
18085
|
+
const localVarQueryParameter = {} as any;
|
|
18086
|
+
|
|
18087
|
+
|
|
18088
|
+
|
|
18089
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
18090
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
18091
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
18092
|
+
|
|
18093
|
+
return {
|
|
18094
|
+
url: toPathString(localVarUrlObj),
|
|
18095
|
+
options: localVarRequestOptions,
|
|
18096
|
+
};
|
|
18097
|
+
},
|
|
18098
|
+
/**
|
|
18099
|
+
*
|
|
18100
|
+
* @param {number} [pageSize] Number Of Results
|
|
18101
|
+
* @param {number} [page] Page Number
|
|
18102
|
+
* @param {string} [search] Search
|
|
18103
|
+
* @param {*} [options] Override http request option.
|
|
18104
|
+
* @throws {RequiredError}
|
|
18105
|
+
*/
|
|
18106
|
+
getGetAdminNumberPorts: async (pageSize?: number, page?: number, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
18107
|
+
const localVarPath = `/admin/sip/numbers/ports`;
|
|
18108
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
18109
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
18110
|
+
let baseOptions;
|
|
18111
|
+
if (configuration) {
|
|
18112
|
+
baseOptions = configuration.baseOptions;
|
|
18113
|
+
}
|
|
18114
|
+
|
|
18115
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
18116
|
+
const localVarHeaderParameter = {} as any;
|
|
18117
|
+
const localVarQueryParameter = {} as any;
|
|
18118
|
+
|
|
18119
|
+
if (pageSize !== undefined) {
|
|
18120
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
18121
|
+
}
|
|
18122
|
+
|
|
18123
|
+
if (page !== undefined) {
|
|
18124
|
+
localVarQueryParameter['page'] = page;
|
|
18125
|
+
}
|
|
18126
|
+
|
|
18127
|
+
if (search !== undefined) {
|
|
18128
|
+
localVarQueryParameter['search'] = search;
|
|
18129
|
+
}
|
|
18130
|
+
|
|
18131
|
+
|
|
18132
|
+
|
|
18133
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
18134
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
18135
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
18136
|
+
|
|
18137
|
+
return {
|
|
18138
|
+
url: toPathString(localVarUrlObj),
|
|
18139
|
+
options: localVarRequestOptions,
|
|
18140
|
+
};
|
|
18141
|
+
},
|
|
18142
|
+
/**
|
|
18143
|
+
*
|
|
18144
|
+
* @param {number} id Number Port ID
|
|
18145
|
+
* @param {*} [options] Override http request option.
|
|
18146
|
+
* @throws {RequiredError}
|
|
18147
|
+
*/
|
|
18148
|
+
getUpdateNumberPort: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
18149
|
+
// verify required parameter 'id' is not null or undefined
|
|
18150
|
+
assertParamExists('getUpdateNumberPort', 'id', id)
|
|
18151
|
+
const localVarPath = `/sip/numbers/ports/{id}`
|
|
18152
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
18153
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
18154
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
18155
|
+
let baseOptions;
|
|
18156
|
+
if (configuration) {
|
|
18157
|
+
baseOptions = configuration.baseOptions;
|
|
18158
|
+
}
|
|
18159
|
+
|
|
18160
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
18161
|
+
const localVarHeaderParameter = {} as any;
|
|
18162
|
+
const localVarQueryParameter = {} as any;
|
|
18163
|
+
|
|
18164
|
+
|
|
18165
|
+
|
|
18166
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
18167
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
18168
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
18169
|
+
|
|
18170
|
+
return {
|
|
18171
|
+
url: toPathString(localVarUrlObj),
|
|
18172
|
+
options: localVarRequestOptions,
|
|
18173
|
+
};
|
|
18174
|
+
},
|
|
18175
|
+
/**
|
|
18176
|
+
*
|
|
18177
|
+
* @param {number} id Number Port ID
|
|
18178
|
+
* @param {*} [options] Override http request option.
|
|
18179
|
+
* @throws {RequiredError}
|
|
18180
|
+
*/
|
|
18181
|
+
patchCloseAdminNumberPort: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
18182
|
+
// verify required parameter 'id' is not null or undefined
|
|
18183
|
+
assertParamExists('patchCloseAdminNumberPort', 'id', id)
|
|
18184
|
+
const localVarPath = `/admin/sip/numbers/ports/{id}/close`
|
|
18185
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
18186
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
18187
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
18188
|
+
let baseOptions;
|
|
18189
|
+
if (configuration) {
|
|
18190
|
+
baseOptions = configuration.baseOptions;
|
|
18191
|
+
}
|
|
18192
|
+
|
|
18193
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
18194
|
+
const localVarHeaderParameter = {} as any;
|
|
18195
|
+
const localVarQueryParameter = {} as any;
|
|
18196
|
+
|
|
18197
|
+
|
|
18198
|
+
|
|
18199
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
18200
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
18201
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
18202
|
+
|
|
18203
|
+
return {
|
|
18204
|
+
url: toPathString(localVarUrlObj),
|
|
18205
|
+
options: localVarRequestOptions,
|
|
18206
|
+
};
|
|
18207
|
+
},
|
|
18208
|
+
/**
|
|
18209
|
+
*
|
|
18210
|
+
* @param {string | null} [companyName] Company Name
|
|
18211
|
+
* @param {string | null} [addressLine1] Address Line 1
|
|
18212
|
+
* @param {string | null} [addressLine2] Address Line 2
|
|
18213
|
+
* @param {string | null} [city] City
|
|
18214
|
+
* @param {string | null} [postCode] Post Code
|
|
18215
|
+
* @param {number | null} [trunkId] Trunk ID
|
|
18216
|
+
* @param {string | null} [tenantId] Starter Bundle ID
|
|
18217
|
+
* @param {string | null} [requestedPortDate] Requested Port Date
|
|
18218
|
+
* @param {boolean | null} [asap] Port Date ASAP
|
|
18219
|
+
* @param {string | null} [comment] Comment
|
|
18220
|
+
* @param {Array<NumberPortRangeRequestDTO>} [numberRanges] Number Ranges
|
|
18221
|
+
* @param {File} [cloa] CLOA (only provide on submission)
|
|
18222
|
+
* @param {*} [options] Override http request option.
|
|
18223
|
+
* @throws {RequiredError}
|
|
18224
|
+
*/
|
|
18225
|
+
postCreateNumberPort: async (companyName?: string | null, addressLine1?: string | null, addressLine2?: string | null, city?: string | null, postCode?: string | null, trunkId?: number | null, tenantId?: string | null, requestedPortDate?: string | null, asap?: boolean | null, comment?: string | null, numberRanges?: Array<NumberPortRangeRequestDTO>, cloa?: File, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
18226
|
+
const localVarPath = `/sip/numbers/ports`;
|
|
18227
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
18228
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
18229
|
+
let baseOptions;
|
|
18230
|
+
if (configuration) {
|
|
18231
|
+
baseOptions = configuration.baseOptions;
|
|
18232
|
+
}
|
|
18233
|
+
|
|
18234
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
18235
|
+
const localVarHeaderParameter = {} as any;
|
|
18236
|
+
const localVarQueryParameter = {} as any;
|
|
18237
|
+
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
18238
|
+
|
|
18239
|
+
|
|
18240
|
+
if (companyName !== undefined) {
|
|
18241
|
+
localVarFormParams.append('companyName', companyName as any);
|
|
18242
|
+
}
|
|
18243
|
+
|
|
18244
|
+
if (addressLine1 !== undefined) {
|
|
18245
|
+
localVarFormParams.append('addressLine1', addressLine1 as any);
|
|
18246
|
+
}
|
|
18247
|
+
|
|
18248
|
+
if (addressLine2 !== undefined) {
|
|
18249
|
+
localVarFormParams.append('addressLine2', addressLine2 as any);
|
|
18250
|
+
}
|
|
18251
|
+
|
|
18252
|
+
if (city !== undefined) {
|
|
18253
|
+
localVarFormParams.append('city', city as any);
|
|
18254
|
+
}
|
|
18255
|
+
|
|
18256
|
+
if (postCode !== undefined) {
|
|
18257
|
+
localVarFormParams.append('postCode', postCode as any);
|
|
18258
|
+
}
|
|
18259
|
+
|
|
18260
|
+
if (trunkId !== undefined) {
|
|
18261
|
+
localVarFormParams.append('trunkId', trunkId as any);
|
|
18262
|
+
}
|
|
18263
|
+
|
|
18264
|
+
if (tenantId !== undefined) {
|
|
18265
|
+
localVarFormParams.append('tenantId', tenantId as any);
|
|
18266
|
+
}
|
|
18267
|
+
|
|
18268
|
+
if (requestedPortDate !== undefined) {
|
|
18269
|
+
localVarFormParams.append('requestedPortDate', requestedPortDate as any);
|
|
18270
|
+
}
|
|
18271
|
+
|
|
18272
|
+
if (asap !== undefined) {
|
|
18273
|
+
localVarFormParams.append('asap', String(asap) as any);
|
|
18274
|
+
}
|
|
18275
|
+
|
|
18276
|
+
if (comment !== undefined) {
|
|
18277
|
+
localVarFormParams.append('comment', comment as any);
|
|
18278
|
+
}
|
|
18279
|
+
if (numberRanges) {
|
|
18280
|
+
localVarFormParams.append('numberRanges', numberRanges.join(COLLECTION_FORMATS.csv));
|
|
18281
|
+
}
|
|
18282
|
+
|
|
18283
|
+
|
|
18284
|
+
if (cloa !== undefined) {
|
|
18285
|
+
localVarFormParams.append('cloa', cloa as any);
|
|
18286
|
+
}
|
|
18287
|
+
|
|
18288
|
+
|
|
18289
|
+
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
|
|
18290
|
+
|
|
18291
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
18292
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
18293
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
18294
|
+
localVarRequestOptions.data = localVarFormParams;
|
|
18295
|
+
|
|
18296
|
+
return {
|
|
18297
|
+
url: toPathString(localVarUrlObj),
|
|
18298
|
+
options: localVarRequestOptions,
|
|
18299
|
+
};
|
|
18300
|
+
},
|
|
18301
|
+
/**
|
|
18302
|
+
*
|
|
18303
|
+
* @param {number} id Number Port ID
|
|
18304
|
+
* @param {string | null} [companyName] Company Name
|
|
18305
|
+
* @param {string | null} [addressLine1] Address Line 1
|
|
18306
|
+
* @param {string | null} [addressLine2] Address Line 2
|
|
18307
|
+
* @param {string | null} [city] City
|
|
18308
|
+
* @param {string | null} [postCode] Post Code
|
|
18309
|
+
* @param {number | null} [trunkId] Trunk ID
|
|
18310
|
+
* @param {string | null} [tenantId] Starter Bundle ID
|
|
18311
|
+
* @param {string | null} [requestedPortDate] Requested Port Date
|
|
18312
|
+
* @param {boolean | null} [asap] Port Date ASAP
|
|
18313
|
+
* @param {string | null} [comment] Comment
|
|
18314
|
+
* @param {Array<NumberPortRangeRequestDTO>} [numberRanges] Number Ranges
|
|
18315
|
+
* @param {File} [cloa] CLOA (only provide on submission)
|
|
18316
|
+
* @param {*} [options] Override http request option.
|
|
18317
|
+
* @throws {RequiredError}
|
|
18318
|
+
*/
|
|
18319
|
+
postSubmitNumberPort: async (id: number, companyName?: string | null, addressLine1?: string | null, addressLine2?: string | null, city?: string | null, postCode?: string | null, trunkId?: number | null, tenantId?: string | null, requestedPortDate?: string | null, asap?: boolean | null, comment?: string | null, numberRanges?: Array<NumberPortRangeRequestDTO>, cloa?: File, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
18320
|
+
// verify required parameter 'id' is not null or undefined
|
|
18321
|
+
assertParamExists('postSubmitNumberPort', 'id', id)
|
|
18322
|
+
const localVarPath = `/sip/numbers/ports/{id}/submit`
|
|
18323
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
18324
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
18325
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
18326
|
+
let baseOptions;
|
|
18327
|
+
if (configuration) {
|
|
18328
|
+
baseOptions = configuration.baseOptions;
|
|
18329
|
+
}
|
|
18330
|
+
|
|
18331
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
18332
|
+
const localVarHeaderParameter = {} as any;
|
|
18333
|
+
const localVarQueryParameter = {} as any;
|
|
18334
|
+
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
18335
|
+
|
|
18336
|
+
|
|
18337
|
+
if (companyName !== undefined) {
|
|
18338
|
+
localVarFormParams.append('companyName', companyName as any);
|
|
18339
|
+
}
|
|
18340
|
+
|
|
18341
|
+
if (addressLine1 !== undefined) {
|
|
18342
|
+
localVarFormParams.append('addressLine1', addressLine1 as any);
|
|
18343
|
+
}
|
|
18344
|
+
|
|
18345
|
+
if (addressLine2 !== undefined) {
|
|
18346
|
+
localVarFormParams.append('addressLine2', addressLine2 as any);
|
|
18347
|
+
}
|
|
18348
|
+
|
|
18349
|
+
if (city !== undefined) {
|
|
18350
|
+
localVarFormParams.append('city', city as any);
|
|
18351
|
+
}
|
|
18352
|
+
|
|
18353
|
+
if (postCode !== undefined) {
|
|
18354
|
+
localVarFormParams.append('postCode', postCode as any);
|
|
18355
|
+
}
|
|
18356
|
+
|
|
18357
|
+
if (trunkId !== undefined) {
|
|
18358
|
+
localVarFormParams.append('trunkId', trunkId as any);
|
|
18359
|
+
}
|
|
18360
|
+
|
|
18361
|
+
if (tenantId !== undefined) {
|
|
18362
|
+
localVarFormParams.append('tenantId', tenantId as any);
|
|
18363
|
+
}
|
|
18364
|
+
|
|
18365
|
+
if (requestedPortDate !== undefined) {
|
|
18366
|
+
localVarFormParams.append('requestedPortDate', requestedPortDate as any);
|
|
18367
|
+
}
|
|
18368
|
+
|
|
18369
|
+
if (asap !== undefined) {
|
|
18370
|
+
localVarFormParams.append('asap', String(asap) as any);
|
|
18371
|
+
}
|
|
18372
|
+
|
|
18373
|
+
if (comment !== undefined) {
|
|
18374
|
+
localVarFormParams.append('comment', comment as any);
|
|
18375
|
+
}
|
|
18376
|
+
if (numberRanges) {
|
|
18377
|
+
localVarFormParams.append('numberRanges', numberRanges.join(COLLECTION_FORMATS.csv));
|
|
18378
|
+
}
|
|
18379
|
+
|
|
18380
|
+
|
|
18381
|
+
if (cloa !== undefined) {
|
|
18382
|
+
localVarFormParams.append('cloa', cloa as any);
|
|
18383
|
+
}
|
|
18384
|
+
|
|
18385
|
+
|
|
18386
|
+
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
|
|
18387
|
+
|
|
18388
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
18389
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
18390
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
18391
|
+
localVarRequestOptions.data = localVarFormParams;
|
|
18392
|
+
|
|
18393
|
+
return {
|
|
18394
|
+
url: toPathString(localVarUrlObj),
|
|
18395
|
+
options: localVarRequestOptions,
|
|
18396
|
+
};
|
|
18397
|
+
},
|
|
18398
|
+
/**
|
|
18399
|
+
*
|
|
18400
|
+
* @param {number} id Number Port ID
|
|
18401
|
+
* @param {string | null} [companyName] Company Name
|
|
18402
|
+
* @param {string | null} [addressLine1] Address Line 1
|
|
18403
|
+
* @param {string | null} [addressLine2] Address Line 2
|
|
18404
|
+
* @param {string | null} [city] City
|
|
18405
|
+
* @param {string | null} [postCode] Post Code
|
|
18406
|
+
* @param {number | null} [trunkId] Trunk ID
|
|
18407
|
+
* @param {string | null} [tenantId] Starter Bundle ID
|
|
18408
|
+
* @param {string | null} [requestedPortDate] Requested Port Date
|
|
18409
|
+
* @param {boolean | null} [asap] Port Date ASAP
|
|
18410
|
+
* @param {string | null} [comment] Comment
|
|
18411
|
+
* @param {Array<NumberPortRangeRequestDTO>} [numberRanges] Number Ranges
|
|
18412
|
+
* @param {File} [cloa] CLOA (only provide on submission)
|
|
18413
|
+
* @param {*} [options] Override http request option.
|
|
18414
|
+
* @throws {RequiredError}
|
|
18415
|
+
*/
|
|
18416
|
+
postUpdateNumberPort: async (id: number, companyName?: string | null, addressLine1?: string | null, addressLine2?: string | null, city?: string | null, postCode?: string | null, trunkId?: number | null, tenantId?: string | null, requestedPortDate?: string | null, asap?: boolean | null, comment?: string | null, numberRanges?: Array<NumberPortRangeRequestDTO>, cloa?: File, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
18417
|
+
// verify required parameter 'id' is not null or undefined
|
|
18418
|
+
assertParamExists('postUpdateNumberPort', 'id', id)
|
|
18419
|
+
const localVarPath = `/sip/numbers/ports/{id}`
|
|
18420
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
18421
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
18422
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
18423
|
+
let baseOptions;
|
|
18424
|
+
if (configuration) {
|
|
18425
|
+
baseOptions = configuration.baseOptions;
|
|
18426
|
+
}
|
|
18427
|
+
|
|
18428
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
18429
|
+
const localVarHeaderParameter = {} as any;
|
|
18430
|
+
const localVarQueryParameter = {} as any;
|
|
18431
|
+
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
18432
|
+
|
|
18433
|
+
|
|
18434
|
+
if (companyName !== undefined) {
|
|
18435
|
+
localVarFormParams.append('companyName', companyName as any);
|
|
18436
|
+
}
|
|
18437
|
+
|
|
18438
|
+
if (addressLine1 !== undefined) {
|
|
18439
|
+
localVarFormParams.append('addressLine1', addressLine1 as any);
|
|
18440
|
+
}
|
|
18441
|
+
|
|
18442
|
+
if (addressLine2 !== undefined) {
|
|
18443
|
+
localVarFormParams.append('addressLine2', addressLine2 as any);
|
|
18444
|
+
}
|
|
18445
|
+
|
|
18446
|
+
if (city !== undefined) {
|
|
18447
|
+
localVarFormParams.append('city', city as any);
|
|
18448
|
+
}
|
|
18449
|
+
|
|
18450
|
+
if (postCode !== undefined) {
|
|
18451
|
+
localVarFormParams.append('postCode', postCode as any);
|
|
18452
|
+
}
|
|
18453
|
+
|
|
18454
|
+
if (trunkId !== undefined) {
|
|
18455
|
+
localVarFormParams.append('trunkId', trunkId as any);
|
|
18456
|
+
}
|
|
18457
|
+
|
|
18458
|
+
if (tenantId !== undefined) {
|
|
18459
|
+
localVarFormParams.append('tenantId', tenantId as any);
|
|
18460
|
+
}
|
|
18461
|
+
|
|
18462
|
+
if (requestedPortDate !== undefined) {
|
|
18463
|
+
localVarFormParams.append('requestedPortDate', requestedPortDate as any);
|
|
18464
|
+
}
|
|
18465
|
+
|
|
18466
|
+
if (asap !== undefined) {
|
|
18467
|
+
localVarFormParams.append('asap', String(asap) as any);
|
|
18468
|
+
}
|
|
18469
|
+
|
|
18470
|
+
if (comment !== undefined) {
|
|
18471
|
+
localVarFormParams.append('comment', comment as any);
|
|
18472
|
+
}
|
|
18473
|
+
if (numberRanges) {
|
|
18474
|
+
localVarFormParams.append('numberRanges', numberRanges.join(COLLECTION_FORMATS.csv));
|
|
18475
|
+
}
|
|
18476
|
+
|
|
18477
|
+
|
|
18478
|
+
if (cloa !== undefined) {
|
|
18479
|
+
localVarFormParams.append('cloa', cloa as any);
|
|
18480
|
+
}
|
|
18481
|
+
|
|
18482
|
+
|
|
18483
|
+
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
|
|
18484
|
+
|
|
18485
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
18486
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
18487
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
18488
|
+
localVarRequestOptions.data = localVarFormParams;
|
|
18489
|
+
|
|
18490
|
+
return {
|
|
18491
|
+
url: toPathString(localVarUrlObj),
|
|
18492
|
+
options: localVarRequestOptions,
|
|
18493
|
+
};
|
|
18494
|
+
},
|
|
18495
|
+
/**
|
|
18496
|
+
*
|
|
18497
|
+
* @param {number} id Number Port ID
|
|
18498
|
+
* @param {NumberPortDTO} numberPortDTO
|
|
18499
|
+
* @param {*} [options] Override http request option.
|
|
18500
|
+
* @throws {RequiredError}
|
|
18501
|
+
*/
|
|
18502
|
+
putGetAdminNumberPort: async (id: number, numberPortDTO: NumberPortDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
18503
|
+
// verify required parameter 'id' is not null or undefined
|
|
18504
|
+
assertParamExists('putGetAdminNumberPort', 'id', id)
|
|
18505
|
+
// verify required parameter 'numberPortDTO' is not null or undefined
|
|
18506
|
+
assertParamExists('putGetAdminNumberPort', 'numberPortDTO', numberPortDTO)
|
|
18507
|
+
const localVarPath = `/admin/sip/numbers/ports/{id}`
|
|
18508
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
18509
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
18510
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
18511
|
+
let baseOptions;
|
|
18512
|
+
if (configuration) {
|
|
18513
|
+
baseOptions = configuration.baseOptions;
|
|
18514
|
+
}
|
|
18515
|
+
|
|
18516
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
18517
|
+
const localVarHeaderParameter = {} as any;
|
|
18518
|
+
const localVarQueryParameter = {} as any;
|
|
18519
|
+
|
|
18520
|
+
|
|
18521
|
+
|
|
18522
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
18523
|
+
|
|
18524
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
18525
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
18526
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
18527
|
+
localVarRequestOptions.data = serializeDataIfNeeded(numberPortDTO, localVarRequestOptions, configuration)
|
|
18528
|
+
|
|
18529
|
+
return {
|
|
18530
|
+
url: toPathString(localVarUrlObj),
|
|
18531
|
+
options: localVarRequestOptions,
|
|
18532
|
+
};
|
|
18533
|
+
},
|
|
18534
|
+
}
|
|
18535
|
+
};
|
|
18536
|
+
|
|
18537
|
+
/**
|
|
18538
|
+
* NumberPortingApi - functional programming interface
|
|
18539
|
+
* @export
|
|
18540
|
+
*/
|
|
18541
|
+
export const NumberPortingApiFp = function(configuration?: Configuration) {
|
|
18542
|
+
const localVarAxiosParamCreator = NumberPortingApiAxiosParamCreator(configuration)
|
|
18543
|
+
return {
|
|
18544
|
+
/**
|
|
18545
|
+
*
|
|
18546
|
+
* @param {number} id Number Port ID
|
|
18547
|
+
* @param {*} [options] Override http request option.
|
|
18548
|
+
* @throws {RequiredError}
|
|
18549
|
+
*/
|
|
18550
|
+
async deleteGetAdminNumberPort(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
18551
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteGetAdminNumberPort(id, options);
|
|
18552
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
18553
|
+
const localVarOperationServerBasePath = operationServerMap['NumberPortingApi.deleteGetAdminNumberPort']?.[localVarOperationServerIndex]?.url;
|
|
18554
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
18555
|
+
},
|
|
18556
|
+
/**
|
|
18557
|
+
*
|
|
18558
|
+
* @param {number} [pageSize] Number Of Results
|
|
18559
|
+
* @param {number} [page] Page Number
|
|
18560
|
+
* @param {string} [search] Search
|
|
18561
|
+
* @param {*} [options] Override http request option.
|
|
18562
|
+
* @throws {RequiredError}
|
|
18563
|
+
*/
|
|
18564
|
+
async getCreateNumberPort(pageSize?: number, page?: number, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<NumberPortsModel>> {
|
|
18565
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCreateNumberPort(pageSize, page, search, options);
|
|
18566
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
18567
|
+
const localVarOperationServerBasePath = operationServerMap['NumberPortingApi.getCreateNumberPort']?.[localVarOperationServerIndex]?.url;
|
|
18568
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
18569
|
+
},
|
|
18570
|
+
/**
|
|
18571
|
+
*
|
|
18572
|
+
* @param {number} id Number Port ID
|
|
18573
|
+
* @param {*} [options] Override http request option.
|
|
18574
|
+
* @throws {RequiredError}
|
|
18575
|
+
*/
|
|
18576
|
+
async getGetAdminNumberPort(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<NumberPortDTO>> {
|
|
18577
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetAdminNumberPort(id, options);
|
|
18578
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
18579
|
+
const localVarOperationServerBasePath = operationServerMap['NumberPortingApi.getGetAdminNumberPort']?.[localVarOperationServerIndex]?.url;
|
|
18580
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
18581
|
+
},
|
|
18582
|
+
/**
|
|
18583
|
+
*
|
|
18584
|
+
* @param {number} [pageSize] Number Of Results
|
|
18585
|
+
* @param {number} [page] Page Number
|
|
18586
|
+
* @param {string} [search] Search
|
|
18587
|
+
* @param {*} [options] Override http request option.
|
|
18588
|
+
* @throws {RequiredError}
|
|
18589
|
+
*/
|
|
18590
|
+
async getGetAdminNumberPorts(pageSize?: number, page?: number, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<NumberPortsModel>> {
|
|
18591
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetAdminNumberPorts(pageSize, page, search, options);
|
|
18592
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
18593
|
+
const localVarOperationServerBasePath = operationServerMap['NumberPortingApi.getGetAdminNumberPorts']?.[localVarOperationServerIndex]?.url;
|
|
18594
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
18595
|
+
},
|
|
18596
|
+
/**
|
|
18597
|
+
*
|
|
18598
|
+
* @param {number} id Number Port ID
|
|
18599
|
+
* @param {*} [options] Override http request option.
|
|
18600
|
+
* @throws {RequiredError}
|
|
18601
|
+
*/
|
|
18602
|
+
async getUpdateNumberPort(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<NumberPortDTO>> {
|
|
18603
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getUpdateNumberPort(id, options);
|
|
18604
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
18605
|
+
const localVarOperationServerBasePath = operationServerMap['NumberPortingApi.getUpdateNumberPort']?.[localVarOperationServerIndex]?.url;
|
|
18606
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
18607
|
+
},
|
|
18608
|
+
/**
|
|
18609
|
+
*
|
|
18610
|
+
* @param {number} id Number Port ID
|
|
18611
|
+
* @param {*} [options] Override http request option.
|
|
18612
|
+
* @throws {RequiredError}
|
|
18613
|
+
*/
|
|
18614
|
+
async patchCloseAdminNumberPort(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<NumberPortDTO>> {
|
|
18615
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.patchCloseAdminNumberPort(id, options);
|
|
18616
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
18617
|
+
const localVarOperationServerBasePath = operationServerMap['NumberPortingApi.patchCloseAdminNumberPort']?.[localVarOperationServerIndex]?.url;
|
|
18618
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
18619
|
+
},
|
|
18620
|
+
/**
|
|
18621
|
+
*
|
|
18622
|
+
* @param {string | null} [companyName] Company Name
|
|
18623
|
+
* @param {string | null} [addressLine1] Address Line 1
|
|
18624
|
+
* @param {string | null} [addressLine2] Address Line 2
|
|
18625
|
+
* @param {string | null} [city] City
|
|
18626
|
+
* @param {string | null} [postCode] Post Code
|
|
18627
|
+
* @param {number | null} [trunkId] Trunk ID
|
|
18628
|
+
* @param {string | null} [tenantId] Starter Bundle ID
|
|
18629
|
+
* @param {string | null} [requestedPortDate] Requested Port Date
|
|
18630
|
+
* @param {boolean | null} [asap] Port Date ASAP
|
|
18631
|
+
* @param {string | null} [comment] Comment
|
|
18632
|
+
* @param {Array<NumberPortRangeRequestDTO>} [numberRanges] Number Ranges
|
|
18633
|
+
* @param {File} [cloa] CLOA (only provide on submission)
|
|
18634
|
+
* @param {*} [options] Override http request option.
|
|
18635
|
+
* @throws {RequiredError}
|
|
18636
|
+
*/
|
|
18637
|
+
async postCreateNumberPort(companyName?: string | null, addressLine1?: string | null, addressLine2?: string | null, city?: string | null, postCode?: string | null, trunkId?: number | null, tenantId?: string | null, requestedPortDate?: string | null, asap?: boolean | null, comment?: string | null, numberRanges?: Array<NumberPortRangeRequestDTO>, cloa?: File, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<NumberPortDTO>> {
|
|
18638
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postCreateNumberPort(companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, numberRanges, cloa, options);
|
|
18639
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
18640
|
+
const localVarOperationServerBasePath = operationServerMap['NumberPortingApi.postCreateNumberPort']?.[localVarOperationServerIndex]?.url;
|
|
18641
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
18642
|
+
},
|
|
18643
|
+
/**
|
|
18644
|
+
*
|
|
18645
|
+
* @param {number} id Number Port ID
|
|
18646
|
+
* @param {string | null} [companyName] Company Name
|
|
18647
|
+
* @param {string | null} [addressLine1] Address Line 1
|
|
18648
|
+
* @param {string | null} [addressLine2] Address Line 2
|
|
18649
|
+
* @param {string | null} [city] City
|
|
18650
|
+
* @param {string | null} [postCode] Post Code
|
|
18651
|
+
* @param {number | null} [trunkId] Trunk ID
|
|
18652
|
+
* @param {string | null} [tenantId] Starter Bundle ID
|
|
18653
|
+
* @param {string | null} [requestedPortDate] Requested Port Date
|
|
18654
|
+
* @param {boolean | null} [asap] Port Date ASAP
|
|
18655
|
+
* @param {string | null} [comment] Comment
|
|
18656
|
+
* @param {Array<NumberPortRangeRequestDTO>} [numberRanges] Number Ranges
|
|
18657
|
+
* @param {File} [cloa] CLOA (only provide on submission)
|
|
18658
|
+
* @param {*} [options] Override http request option.
|
|
18659
|
+
* @throws {RequiredError}
|
|
18660
|
+
*/
|
|
18661
|
+
async postSubmitNumberPort(id: number, companyName?: string | null, addressLine1?: string | null, addressLine2?: string | null, city?: string | null, postCode?: string | null, trunkId?: number | null, tenantId?: string | null, requestedPortDate?: string | null, asap?: boolean | null, comment?: string | null, numberRanges?: Array<NumberPortRangeRequestDTO>, cloa?: File, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<NumberPortDTO>> {
|
|
18662
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postSubmitNumberPort(id, companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, numberRanges, cloa, options);
|
|
18663
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
18664
|
+
const localVarOperationServerBasePath = operationServerMap['NumberPortingApi.postSubmitNumberPort']?.[localVarOperationServerIndex]?.url;
|
|
18665
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
18666
|
+
},
|
|
18667
|
+
/**
|
|
18668
|
+
*
|
|
18669
|
+
* @param {number} id Number Port ID
|
|
18670
|
+
* @param {string | null} [companyName] Company Name
|
|
18671
|
+
* @param {string | null} [addressLine1] Address Line 1
|
|
18672
|
+
* @param {string | null} [addressLine2] Address Line 2
|
|
18673
|
+
* @param {string | null} [city] City
|
|
18674
|
+
* @param {string | null} [postCode] Post Code
|
|
18675
|
+
* @param {number | null} [trunkId] Trunk ID
|
|
18676
|
+
* @param {string | null} [tenantId] Starter Bundle ID
|
|
18677
|
+
* @param {string | null} [requestedPortDate] Requested Port Date
|
|
18678
|
+
* @param {boolean | null} [asap] Port Date ASAP
|
|
18679
|
+
* @param {string | null} [comment] Comment
|
|
18680
|
+
* @param {Array<NumberPortRangeRequestDTO>} [numberRanges] Number Ranges
|
|
18681
|
+
* @param {File} [cloa] CLOA (only provide on submission)
|
|
18682
|
+
* @param {*} [options] Override http request option.
|
|
18683
|
+
* @throws {RequiredError}
|
|
18684
|
+
*/
|
|
18685
|
+
async postUpdateNumberPort(id: number, companyName?: string | null, addressLine1?: string | null, addressLine2?: string | null, city?: string | null, postCode?: string | null, trunkId?: number | null, tenantId?: string | null, requestedPortDate?: string | null, asap?: boolean | null, comment?: string | null, numberRanges?: Array<NumberPortRangeRequestDTO>, cloa?: File, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<NumberPortDTO>> {
|
|
18686
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postUpdateNumberPort(id, companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, numberRanges, cloa, options);
|
|
18687
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
18688
|
+
const localVarOperationServerBasePath = operationServerMap['NumberPortingApi.postUpdateNumberPort']?.[localVarOperationServerIndex]?.url;
|
|
18689
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
18690
|
+
},
|
|
18691
|
+
/**
|
|
18692
|
+
*
|
|
18693
|
+
* @param {number} id Number Port ID
|
|
18694
|
+
* @param {NumberPortDTO} numberPortDTO
|
|
18695
|
+
* @param {*} [options] Override http request option.
|
|
18696
|
+
* @throws {RequiredError}
|
|
18697
|
+
*/
|
|
18698
|
+
async putGetAdminNumberPort(id: number, numberPortDTO: NumberPortDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<NumberPortDTO>> {
|
|
18699
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.putGetAdminNumberPort(id, numberPortDTO, options);
|
|
18700
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
18701
|
+
const localVarOperationServerBasePath = operationServerMap['NumberPortingApi.putGetAdminNumberPort']?.[localVarOperationServerIndex]?.url;
|
|
18702
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
18703
|
+
},
|
|
18704
|
+
}
|
|
18705
|
+
};
|
|
18706
|
+
|
|
18707
|
+
/**
|
|
18708
|
+
* NumberPortingApi - factory interface
|
|
18709
|
+
* @export
|
|
18710
|
+
*/
|
|
18711
|
+
export const NumberPortingApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
18712
|
+
const localVarFp = NumberPortingApiFp(configuration)
|
|
18713
|
+
return {
|
|
18714
|
+
/**
|
|
18715
|
+
*
|
|
18716
|
+
* @param {number} id Number Port ID
|
|
18717
|
+
* @param {*} [options] Override http request option.
|
|
18718
|
+
* @throws {RequiredError}
|
|
18719
|
+
*/
|
|
18720
|
+
deleteGetAdminNumberPort(id: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
18721
|
+
return localVarFp.deleteGetAdminNumberPort(id, options).then((request) => request(axios, basePath));
|
|
18722
|
+
},
|
|
18723
|
+
/**
|
|
18724
|
+
*
|
|
18725
|
+
* @param {number} [pageSize] Number Of Results
|
|
18726
|
+
* @param {number} [page] Page Number
|
|
18727
|
+
* @param {string} [search] Search
|
|
18728
|
+
* @param {*} [options] Override http request option.
|
|
18729
|
+
* @throws {RequiredError}
|
|
18730
|
+
*/
|
|
18731
|
+
getCreateNumberPort(pageSize?: number, page?: number, search?: string, options?: RawAxiosRequestConfig): AxiosPromise<NumberPortsModel> {
|
|
18732
|
+
return localVarFp.getCreateNumberPort(pageSize, page, search, options).then((request) => request(axios, basePath));
|
|
18733
|
+
},
|
|
18734
|
+
/**
|
|
18735
|
+
*
|
|
18736
|
+
* @param {number} id Number Port ID
|
|
18737
|
+
* @param {*} [options] Override http request option.
|
|
18738
|
+
* @throws {RequiredError}
|
|
18739
|
+
*/
|
|
18740
|
+
getGetAdminNumberPort(id: number, options?: RawAxiosRequestConfig): AxiosPromise<NumberPortDTO> {
|
|
18741
|
+
return localVarFp.getGetAdminNumberPort(id, options).then((request) => request(axios, basePath));
|
|
18742
|
+
},
|
|
18743
|
+
/**
|
|
18744
|
+
*
|
|
18745
|
+
* @param {number} [pageSize] Number Of Results
|
|
18746
|
+
* @param {number} [page] Page Number
|
|
18747
|
+
* @param {string} [search] Search
|
|
18748
|
+
* @param {*} [options] Override http request option.
|
|
18749
|
+
* @throws {RequiredError}
|
|
18750
|
+
*/
|
|
18751
|
+
getGetAdminNumberPorts(pageSize?: number, page?: number, search?: string, options?: RawAxiosRequestConfig): AxiosPromise<NumberPortsModel> {
|
|
18752
|
+
return localVarFp.getGetAdminNumberPorts(pageSize, page, search, options).then((request) => request(axios, basePath));
|
|
18753
|
+
},
|
|
18754
|
+
/**
|
|
18755
|
+
*
|
|
18756
|
+
* @param {number} id Number Port ID
|
|
18757
|
+
* @param {*} [options] Override http request option.
|
|
18758
|
+
* @throws {RequiredError}
|
|
18759
|
+
*/
|
|
18760
|
+
getUpdateNumberPort(id: number, options?: RawAxiosRequestConfig): AxiosPromise<NumberPortDTO> {
|
|
18761
|
+
return localVarFp.getUpdateNumberPort(id, options).then((request) => request(axios, basePath));
|
|
18762
|
+
},
|
|
17518
18763
|
/**
|
|
17519
|
-
*
|
|
17520
|
-
* @
|
|
17521
|
-
* @param {string} licenceKey Licence Key
|
|
17522
|
-
* @param {string} fileName File Name
|
|
18764
|
+
*
|
|
18765
|
+
* @param {number} id Number Port ID
|
|
17523
18766
|
* @param {*} [options] Override http request option.
|
|
17524
18767
|
* @throws {RequiredError}
|
|
17525
18768
|
*/
|
|
17526
|
-
|
|
17527
|
-
|
|
17528
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
17529
|
-
const localVarOperationServerBasePath = operationServerMap['MyPBXToolsApi.getGetRecording']?.[localVarOperationServerIndex]?.url;
|
|
17530
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
18769
|
+
patchCloseAdminNumberPort(id: number, options?: RawAxiosRequestConfig): AxiosPromise<NumberPortDTO> {
|
|
18770
|
+
return localVarFp.patchCloseAdminNumberPort(id, options).then((request) => request(axios, basePath));
|
|
17531
18771
|
},
|
|
17532
|
-
}
|
|
17533
|
-
};
|
|
17534
|
-
|
|
17535
|
-
/**
|
|
17536
|
-
* MyPBXToolsApi - factory interface
|
|
17537
|
-
* @export
|
|
17538
|
-
*/
|
|
17539
|
-
export const MyPBXToolsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
17540
|
-
const localVarFp = MyPBXToolsApiFp(configuration)
|
|
17541
|
-
return {
|
|
17542
18772
|
/**
|
|
17543
|
-
*
|
|
17544
|
-
* @
|
|
17545
|
-
* @param {string}
|
|
17546
|
-
* @param {string}
|
|
18773
|
+
*
|
|
18774
|
+
* @param {string | null} [companyName] Company Name
|
|
18775
|
+
* @param {string | null} [addressLine1] Address Line 1
|
|
18776
|
+
* @param {string | null} [addressLine2] Address Line 2
|
|
18777
|
+
* @param {string | null} [city] City
|
|
18778
|
+
* @param {string | null} [postCode] Post Code
|
|
18779
|
+
* @param {number | null} [trunkId] Trunk ID
|
|
18780
|
+
* @param {string | null} [tenantId] Starter Bundle ID
|
|
18781
|
+
* @param {string | null} [requestedPortDate] Requested Port Date
|
|
18782
|
+
* @param {boolean | null} [asap] Port Date ASAP
|
|
18783
|
+
* @param {string | null} [comment] Comment
|
|
18784
|
+
* @param {Array<NumberPortRangeRequestDTO>} [numberRanges] Number Ranges
|
|
18785
|
+
* @param {File} [cloa] CLOA (only provide on submission)
|
|
17547
18786
|
* @param {*} [options] Override http request option.
|
|
17548
18787
|
* @throws {RequiredError}
|
|
17549
18788
|
*/
|
|
17550
|
-
|
|
17551
|
-
return localVarFp.
|
|
18789
|
+
postCreateNumberPort(companyName?: string | null, addressLine1?: string | null, addressLine2?: string | null, city?: string | null, postCode?: string | null, trunkId?: number | null, tenantId?: string | null, requestedPortDate?: string | null, asap?: boolean | null, comment?: string | null, numberRanges?: Array<NumberPortRangeRequestDTO>, cloa?: File, options?: RawAxiosRequestConfig): AxiosPromise<NumberPortDTO> {
|
|
18790
|
+
return localVarFp.postCreateNumberPort(companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, numberRanges, cloa, options).then((request) => request(axios, basePath));
|
|
18791
|
+
},
|
|
18792
|
+
/**
|
|
18793
|
+
*
|
|
18794
|
+
* @param {number} id Number Port ID
|
|
18795
|
+
* @param {string | null} [companyName] Company Name
|
|
18796
|
+
* @param {string | null} [addressLine1] Address Line 1
|
|
18797
|
+
* @param {string | null} [addressLine2] Address Line 2
|
|
18798
|
+
* @param {string | null} [city] City
|
|
18799
|
+
* @param {string | null} [postCode] Post Code
|
|
18800
|
+
* @param {number | null} [trunkId] Trunk ID
|
|
18801
|
+
* @param {string | null} [tenantId] Starter Bundle ID
|
|
18802
|
+
* @param {string | null} [requestedPortDate] Requested Port Date
|
|
18803
|
+
* @param {boolean | null} [asap] Port Date ASAP
|
|
18804
|
+
* @param {string | null} [comment] Comment
|
|
18805
|
+
* @param {Array<NumberPortRangeRequestDTO>} [numberRanges] Number Ranges
|
|
18806
|
+
* @param {File} [cloa] CLOA (only provide on submission)
|
|
18807
|
+
* @param {*} [options] Override http request option.
|
|
18808
|
+
* @throws {RequiredError}
|
|
18809
|
+
*/
|
|
18810
|
+
postSubmitNumberPort(id: number, companyName?: string | null, addressLine1?: string | null, addressLine2?: string | null, city?: string | null, postCode?: string | null, trunkId?: number | null, tenantId?: string | null, requestedPortDate?: string | null, asap?: boolean | null, comment?: string | null, numberRanges?: Array<NumberPortRangeRequestDTO>, cloa?: File, options?: RawAxiosRequestConfig): AxiosPromise<NumberPortDTO> {
|
|
18811
|
+
return localVarFp.postSubmitNumberPort(id, companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, numberRanges, cloa, options).then((request) => request(axios, basePath));
|
|
18812
|
+
},
|
|
18813
|
+
/**
|
|
18814
|
+
*
|
|
18815
|
+
* @param {number} id Number Port ID
|
|
18816
|
+
* @param {string | null} [companyName] Company Name
|
|
18817
|
+
* @param {string | null} [addressLine1] Address Line 1
|
|
18818
|
+
* @param {string | null} [addressLine2] Address Line 2
|
|
18819
|
+
* @param {string | null} [city] City
|
|
18820
|
+
* @param {string | null} [postCode] Post Code
|
|
18821
|
+
* @param {number | null} [trunkId] Trunk ID
|
|
18822
|
+
* @param {string | null} [tenantId] Starter Bundle ID
|
|
18823
|
+
* @param {string | null} [requestedPortDate] Requested Port Date
|
|
18824
|
+
* @param {boolean | null} [asap] Port Date ASAP
|
|
18825
|
+
* @param {string | null} [comment] Comment
|
|
18826
|
+
* @param {Array<NumberPortRangeRequestDTO>} [numberRanges] Number Ranges
|
|
18827
|
+
* @param {File} [cloa] CLOA (only provide on submission)
|
|
18828
|
+
* @param {*} [options] Override http request option.
|
|
18829
|
+
* @throws {RequiredError}
|
|
18830
|
+
*/
|
|
18831
|
+
postUpdateNumberPort(id: number, companyName?: string | null, addressLine1?: string | null, addressLine2?: string | null, city?: string | null, postCode?: string | null, trunkId?: number | null, tenantId?: string | null, requestedPortDate?: string | null, asap?: boolean | null, comment?: string | null, numberRanges?: Array<NumberPortRangeRequestDTO>, cloa?: File, options?: RawAxiosRequestConfig): AxiosPromise<NumberPortDTO> {
|
|
18832
|
+
return localVarFp.postUpdateNumberPort(id, companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, numberRanges, cloa, options).then((request) => request(axios, basePath));
|
|
18833
|
+
},
|
|
18834
|
+
/**
|
|
18835
|
+
*
|
|
18836
|
+
* @param {number} id Number Port ID
|
|
18837
|
+
* @param {NumberPortDTO} numberPortDTO
|
|
18838
|
+
* @param {*} [options] Override http request option.
|
|
18839
|
+
* @throws {RequiredError}
|
|
18840
|
+
*/
|
|
18841
|
+
putGetAdminNumberPort(id: number, numberPortDTO: NumberPortDTO, options?: RawAxiosRequestConfig): AxiosPromise<NumberPortDTO> {
|
|
18842
|
+
return localVarFp.putGetAdminNumberPort(id, numberPortDTO, options).then((request) => request(axios, basePath));
|
|
17552
18843
|
},
|
|
17553
18844
|
};
|
|
17554
18845
|
};
|
|
17555
18846
|
|
|
17556
18847
|
/**
|
|
17557
|
-
*
|
|
18848
|
+
* NumberPortingApi - object-oriented interface
|
|
17558
18849
|
* @export
|
|
17559
|
-
* @class
|
|
18850
|
+
* @class NumberPortingApi
|
|
17560
18851
|
* @extends {BaseAPI}
|
|
17561
18852
|
*/
|
|
17562
|
-
export class
|
|
18853
|
+
export class NumberPortingApi extends BaseAPI {
|
|
17563
18854
|
/**
|
|
17564
|
-
*
|
|
17565
|
-
* @
|
|
17566
|
-
* @param {string} licenceKey Licence Key
|
|
17567
|
-
* @param {string} fileName File Name
|
|
18855
|
+
*
|
|
18856
|
+
* @param {number} id Number Port ID
|
|
17568
18857
|
* @param {*} [options] Override http request option.
|
|
17569
18858
|
* @throws {RequiredError}
|
|
17570
|
-
* @memberof
|
|
18859
|
+
* @memberof NumberPortingApi
|
|
17571
18860
|
*/
|
|
17572
|
-
public
|
|
17573
|
-
return
|
|
18861
|
+
public deleteGetAdminNumberPort(id: number, options?: RawAxiosRequestConfig) {
|
|
18862
|
+
return NumberPortingApiFp(this.configuration).deleteGetAdminNumberPort(id, options).then((request) => request(this.axios, this.basePath));
|
|
18863
|
+
}
|
|
18864
|
+
|
|
18865
|
+
/**
|
|
18866
|
+
*
|
|
18867
|
+
* @param {number} [pageSize] Number Of Results
|
|
18868
|
+
* @param {number} [page] Page Number
|
|
18869
|
+
* @param {string} [search] Search
|
|
18870
|
+
* @param {*} [options] Override http request option.
|
|
18871
|
+
* @throws {RequiredError}
|
|
18872
|
+
* @memberof NumberPortingApi
|
|
18873
|
+
*/
|
|
18874
|
+
public getCreateNumberPort(pageSize?: number, page?: number, search?: string, options?: RawAxiosRequestConfig) {
|
|
18875
|
+
return NumberPortingApiFp(this.configuration).getCreateNumberPort(pageSize, page, search, options).then((request) => request(this.axios, this.basePath));
|
|
18876
|
+
}
|
|
18877
|
+
|
|
18878
|
+
/**
|
|
18879
|
+
*
|
|
18880
|
+
* @param {number} id Number Port ID
|
|
18881
|
+
* @param {*} [options] Override http request option.
|
|
18882
|
+
* @throws {RequiredError}
|
|
18883
|
+
* @memberof NumberPortingApi
|
|
18884
|
+
*/
|
|
18885
|
+
public getGetAdminNumberPort(id: number, options?: RawAxiosRequestConfig) {
|
|
18886
|
+
return NumberPortingApiFp(this.configuration).getGetAdminNumberPort(id, options).then((request) => request(this.axios, this.basePath));
|
|
18887
|
+
}
|
|
18888
|
+
|
|
18889
|
+
/**
|
|
18890
|
+
*
|
|
18891
|
+
* @param {number} [pageSize] Number Of Results
|
|
18892
|
+
* @param {number} [page] Page Number
|
|
18893
|
+
* @param {string} [search] Search
|
|
18894
|
+
* @param {*} [options] Override http request option.
|
|
18895
|
+
* @throws {RequiredError}
|
|
18896
|
+
* @memberof NumberPortingApi
|
|
18897
|
+
*/
|
|
18898
|
+
public getGetAdminNumberPorts(pageSize?: number, page?: number, search?: string, options?: RawAxiosRequestConfig) {
|
|
18899
|
+
return NumberPortingApiFp(this.configuration).getGetAdminNumberPorts(pageSize, page, search, options).then((request) => request(this.axios, this.basePath));
|
|
18900
|
+
}
|
|
18901
|
+
|
|
18902
|
+
/**
|
|
18903
|
+
*
|
|
18904
|
+
* @param {number} id Number Port ID
|
|
18905
|
+
* @param {*} [options] Override http request option.
|
|
18906
|
+
* @throws {RequiredError}
|
|
18907
|
+
* @memberof NumberPortingApi
|
|
18908
|
+
*/
|
|
18909
|
+
public getUpdateNumberPort(id: number, options?: RawAxiosRequestConfig) {
|
|
18910
|
+
return NumberPortingApiFp(this.configuration).getUpdateNumberPort(id, options).then((request) => request(this.axios, this.basePath));
|
|
18911
|
+
}
|
|
18912
|
+
|
|
18913
|
+
/**
|
|
18914
|
+
*
|
|
18915
|
+
* @param {number} id Number Port ID
|
|
18916
|
+
* @param {*} [options] Override http request option.
|
|
18917
|
+
* @throws {RequiredError}
|
|
18918
|
+
* @memberof NumberPortingApi
|
|
18919
|
+
*/
|
|
18920
|
+
public patchCloseAdminNumberPort(id: number, options?: RawAxiosRequestConfig) {
|
|
18921
|
+
return NumberPortingApiFp(this.configuration).patchCloseAdminNumberPort(id, options).then((request) => request(this.axios, this.basePath));
|
|
18922
|
+
}
|
|
18923
|
+
|
|
18924
|
+
/**
|
|
18925
|
+
*
|
|
18926
|
+
* @param {string | null} [companyName] Company Name
|
|
18927
|
+
* @param {string | null} [addressLine1] Address Line 1
|
|
18928
|
+
* @param {string | null} [addressLine2] Address Line 2
|
|
18929
|
+
* @param {string | null} [city] City
|
|
18930
|
+
* @param {string | null} [postCode] Post Code
|
|
18931
|
+
* @param {number | null} [trunkId] Trunk ID
|
|
18932
|
+
* @param {string | null} [tenantId] Starter Bundle ID
|
|
18933
|
+
* @param {string | null} [requestedPortDate] Requested Port Date
|
|
18934
|
+
* @param {boolean | null} [asap] Port Date ASAP
|
|
18935
|
+
* @param {string | null} [comment] Comment
|
|
18936
|
+
* @param {Array<NumberPortRangeRequestDTO>} [numberRanges] Number Ranges
|
|
18937
|
+
* @param {File} [cloa] CLOA (only provide on submission)
|
|
18938
|
+
* @param {*} [options] Override http request option.
|
|
18939
|
+
* @throws {RequiredError}
|
|
18940
|
+
* @memberof NumberPortingApi
|
|
18941
|
+
*/
|
|
18942
|
+
public postCreateNumberPort(companyName?: string | null, addressLine1?: string | null, addressLine2?: string | null, city?: string | null, postCode?: string | null, trunkId?: number | null, tenantId?: string | null, requestedPortDate?: string | null, asap?: boolean | null, comment?: string | null, numberRanges?: Array<NumberPortRangeRequestDTO>, cloa?: File, options?: RawAxiosRequestConfig) {
|
|
18943
|
+
return NumberPortingApiFp(this.configuration).postCreateNumberPort(companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, numberRanges, cloa, options).then((request) => request(this.axios, this.basePath));
|
|
18944
|
+
}
|
|
18945
|
+
|
|
18946
|
+
/**
|
|
18947
|
+
*
|
|
18948
|
+
* @param {number} id Number Port ID
|
|
18949
|
+
* @param {string | null} [companyName] Company Name
|
|
18950
|
+
* @param {string | null} [addressLine1] Address Line 1
|
|
18951
|
+
* @param {string | null} [addressLine2] Address Line 2
|
|
18952
|
+
* @param {string | null} [city] City
|
|
18953
|
+
* @param {string | null} [postCode] Post Code
|
|
18954
|
+
* @param {number | null} [trunkId] Trunk ID
|
|
18955
|
+
* @param {string | null} [tenantId] Starter Bundle ID
|
|
18956
|
+
* @param {string | null} [requestedPortDate] Requested Port Date
|
|
18957
|
+
* @param {boolean | null} [asap] Port Date ASAP
|
|
18958
|
+
* @param {string | null} [comment] Comment
|
|
18959
|
+
* @param {Array<NumberPortRangeRequestDTO>} [numberRanges] Number Ranges
|
|
18960
|
+
* @param {File} [cloa] CLOA (only provide on submission)
|
|
18961
|
+
* @param {*} [options] Override http request option.
|
|
18962
|
+
* @throws {RequiredError}
|
|
18963
|
+
* @memberof NumberPortingApi
|
|
18964
|
+
*/
|
|
18965
|
+
public postSubmitNumberPort(id: number, companyName?: string | null, addressLine1?: string | null, addressLine2?: string | null, city?: string | null, postCode?: string | null, trunkId?: number | null, tenantId?: string | null, requestedPortDate?: string | null, asap?: boolean | null, comment?: string | null, numberRanges?: Array<NumberPortRangeRequestDTO>, cloa?: File, options?: RawAxiosRequestConfig) {
|
|
18966
|
+
return NumberPortingApiFp(this.configuration).postSubmitNumberPort(id, companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, numberRanges, cloa, options).then((request) => request(this.axios, this.basePath));
|
|
18967
|
+
}
|
|
18968
|
+
|
|
18969
|
+
/**
|
|
18970
|
+
*
|
|
18971
|
+
* @param {number} id Number Port ID
|
|
18972
|
+
* @param {string | null} [companyName] Company Name
|
|
18973
|
+
* @param {string | null} [addressLine1] Address Line 1
|
|
18974
|
+
* @param {string | null} [addressLine2] Address Line 2
|
|
18975
|
+
* @param {string | null} [city] City
|
|
18976
|
+
* @param {string | null} [postCode] Post Code
|
|
18977
|
+
* @param {number | null} [trunkId] Trunk ID
|
|
18978
|
+
* @param {string | null} [tenantId] Starter Bundle ID
|
|
18979
|
+
* @param {string | null} [requestedPortDate] Requested Port Date
|
|
18980
|
+
* @param {boolean | null} [asap] Port Date ASAP
|
|
18981
|
+
* @param {string | null} [comment] Comment
|
|
18982
|
+
* @param {Array<NumberPortRangeRequestDTO>} [numberRanges] Number Ranges
|
|
18983
|
+
* @param {File} [cloa] CLOA (only provide on submission)
|
|
18984
|
+
* @param {*} [options] Override http request option.
|
|
18985
|
+
* @throws {RequiredError}
|
|
18986
|
+
* @memberof NumberPortingApi
|
|
18987
|
+
*/
|
|
18988
|
+
public postUpdateNumberPort(id: number, companyName?: string | null, addressLine1?: string | null, addressLine2?: string | null, city?: string | null, postCode?: string | null, trunkId?: number | null, tenantId?: string | null, requestedPortDate?: string | null, asap?: boolean | null, comment?: string | null, numberRanges?: Array<NumberPortRangeRequestDTO>, cloa?: File, options?: RawAxiosRequestConfig) {
|
|
18989
|
+
return NumberPortingApiFp(this.configuration).postUpdateNumberPort(id, companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, numberRanges, cloa, options).then((request) => request(this.axios, this.basePath));
|
|
18990
|
+
}
|
|
18991
|
+
|
|
18992
|
+
/**
|
|
18993
|
+
*
|
|
18994
|
+
* @param {number} id Number Port ID
|
|
18995
|
+
* @param {NumberPortDTO} numberPortDTO
|
|
18996
|
+
* @param {*} [options] Override http request option.
|
|
18997
|
+
* @throws {RequiredError}
|
|
18998
|
+
* @memberof NumberPortingApi
|
|
18999
|
+
*/
|
|
19000
|
+
public putGetAdminNumberPort(id: number, numberPortDTO: NumberPortDTO, options?: RawAxiosRequestConfig) {
|
|
19001
|
+
return NumberPortingApiFp(this.configuration).putGetAdminNumberPort(id, numberPortDTO, options).then((request) => request(this.axios, this.basePath));
|
|
17574
19002
|
}
|
|
17575
19003
|
}
|
|
17576
19004
|
|
|
@@ -18178,6 +19606,8 @@ export const PostAccessTokenScopeEnum = {
|
|
|
18178
19606
|
TcxWizard: 'tcx_wizard',
|
|
18179
19607
|
AccountsRead: 'accounts.read',
|
|
18180
19608
|
AccountsWrite: 'accounts.write',
|
|
19609
|
+
NumberPortingRead: 'number_porting.read',
|
|
19610
|
+
NumberPortingWrite: 'number_porting.write',
|
|
18181
19611
|
PricingRead: 'pricing.read',
|
|
18182
19612
|
OrdersRead: 'orders.read',
|
|
18183
19613
|
OrdersWrite: 'orders.write',
|
|
@@ -18216,6 +19646,8 @@ export const PostAuthoriseScopeEnum = {
|
|
|
18216
19646
|
TcxWizard: 'tcx_wizard',
|
|
18217
19647
|
AccountsRead: 'accounts.read',
|
|
18218
19648
|
AccountsWrite: 'accounts.write',
|
|
19649
|
+
NumberPortingRead: 'number_porting.read',
|
|
19650
|
+
NumberPortingWrite: 'number_porting.write',
|
|
18219
19651
|
PricingRead: 'pricing.read',
|
|
18220
19652
|
OrdersRead: 'orders.read',
|
|
18221
19653
|
OrdersWrite: 'orders.write',
|
|
@@ -18244,25 +19676,20 @@ export type PostAuthoriseScopeEnum = typeof PostAuthoriseScopeEnum[keyof typeof
|
|
|
18244
19676
|
export const OrdersApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
18245
19677
|
return {
|
|
18246
19678
|
/**
|
|
18247
|
-
* Delete
|
|
18248
|
-
* @summary Delete Shipment (Admin)
|
|
19679
|
+
* Delete Batch (Admin)
|
|
18249
19680
|
* @param {number} id Order ID
|
|
18250
19681
|
* @param {number} batchId Batch ID
|
|
18251
|
-
* @param {number} shipmentId Shipment ID
|
|
18252
19682
|
* @param {*} [options] Override http request option.
|
|
18253
19683
|
* @throws {RequiredError}
|
|
18254
19684
|
*/
|
|
18255
|
-
|
|
19685
|
+
deleteDeleteBatch: async (id: number, batchId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
18256
19686
|
// verify required parameter 'id' is not null or undefined
|
|
18257
|
-
assertParamExists('
|
|
19687
|
+
assertParamExists('deleteDeleteBatch', 'id', id)
|
|
18258
19688
|
// verify required parameter 'batchId' is not null or undefined
|
|
18259
|
-
assertParamExists('
|
|
18260
|
-
|
|
18261
|
-
assertParamExists('deleteCreateShipment', 'shipmentId', shipmentId)
|
|
18262
|
-
const localVarPath = `/admin/orders/{id}/batches/{batch_id}/shipments`
|
|
19689
|
+
assertParamExists('deleteDeleteBatch', 'batchId', batchId)
|
|
19690
|
+
const localVarPath = `/admin/orders/{id}/batches/{batch_id}`
|
|
18263
19691
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
18264
|
-
.replace(`{${"batch_id"}}`, encodeURIComponent(String(batchId)))
|
|
18265
|
-
.replace(`{${"shipment_id"}}`, encodeURIComponent(String(shipmentId)));
|
|
19692
|
+
.replace(`{${"batch_id"}}`, encodeURIComponent(String(batchId)));
|
|
18266
19693
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
18267
19694
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
18268
19695
|
let baseOptions;
|
|
@@ -18286,20 +19713,25 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
18286
19713
|
};
|
|
18287
19714
|
},
|
|
18288
19715
|
/**
|
|
18289
|
-
* Delete
|
|
19716
|
+
* Delete Shipment (Admin)
|
|
19717
|
+
* @summary Delete Shipment (Admin)
|
|
18290
19718
|
* @param {number} id Order ID
|
|
18291
19719
|
* @param {number} batchId Batch ID
|
|
19720
|
+
* @param {number} shipmentId Shipment ID
|
|
18292
19721
|
* @param {*} [options] Override http request option.
|
|
18293
19722
|
* @throws {RequiredError}
|
|
18294
19723
|
*/
|
|
18295
|
-
|
|
19724
|
+
deleteDeleteShipment: async (id: number, batchId: number, shipmentId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
18296
19725
|
// verify required parameter 'id' is not null or undefined
|
|
18297
|
-
assertParamExists('
|
|
19726
|
+
assertParamExists('deleteDeleteShipment', 'id', id)
|
|
18298
19727
|
// verify required parameter 'batchId' is not null or undefined
|
|
18299
|
-
assertParamExists('
|
|
18300
|
-
|
|
19728
|
+
assertParamExists('deleteDeleteShipment', 'batchId', batchId)
|
|
19729
|
+
// verify required parameter 'shipmentId' is not null or undefined
|
|
19730
|
+
assertParamExists('deleteDeleteShipment', 'shipmentId', shipmentId)
|
|
19731
|
+
const localVarPath = `/admin/orders/{id}/batches/{batch_id}/shipments/{shipment_id}`
|
|
18301
19732
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
18302
|
-
.replace(`{${"batch_id"}}`, encodeURIComponent(String(batchId)))
|
|
19733
|
+
.replace(`{${"batch_id"}}`, encodeURIComponent(String(batchId)))
|
|
19734
|
+
.replace(`{${"shipment_id"}}`, encodeURIComponent(String(shipmentId)));
|
|
18303
19735
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
18304
19736
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
18305
19737
|
let baseOptions;
|
|
@@ -19145,31 +20577,31 @@ export const OrdersApiFp = function(configuration?: Configuration) {
|
|
|
19145
20577
|
const localVarAxiosParamCreator = OrdersApiAxiosParamCreator(configuration)
|
|
19146
20578
|
return {
|
|
19147
20579
|
/**
|
|
19148
|
-
* Delete
|
|
19149
|
-
* @summary Delete Shipment (Admin)
|
|
20580
|
+
* Delete Batch (Admin)
|
|
19150
20581
|
* @param {number} id Order ID
|
|
19151
20582
|
* @param {number} batchId Batch ID
|
|
19152
|
-
* @param {number} shipmentId Shipment ID
|
|
19153
20583
|
* @param {*} [options] Override http request option.
|
|
19154
20584
|
* @throws {RequiredError}
|
|
19155
20585
|
*/
|
|
19156
|
-
async
|
|
19157
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
20586
|
+
async deleteDeleteBatch(id: number, batchId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
20587
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteDeleteBatch(id, batchId, options);
|
|
19158
20588
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
19159
|
-
const localVarOperationServerBasePath = operationServerMap['OrdersApi.
|
|
20589
|
+
const localVarOperationServerBasePath = operationServerMap['OrdersApi.deleteDeleteBatch']?.[localVarOperationServerIndex]?.url;
|
|
19160
20590
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
19161
20591
|
},
|
|
19162
20592
|
/**
|
|
19163
|
-
* Delete
|
|
20593
|
+
* Delete Shipment (Admin)
|
|
20594
|
+
* @summary Delete Shipment (Admin)
|
|
19164
20595
|
* @param {number} id Order ID
|
|
19165
20596
|
* @param {number} batchId Batch ID
|
|
20597
|
+
* @param {number} shipmentId Shipment ID
|
|
19166
20598
|
* @param {*} [options] Override http request option.
|
|
19167
20599
|
* @throws {RequiredError}
|
|
19168
20600
|
*/
|
|
19169
|
-
async
|
|
19170
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
20601
|
+
async deleteDeleteShipment(id: number, batchId: number, shipmentId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
20602
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteDeleteShipment(id, batchId, shipmentId, options);
|
|
19171
20603
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
19172
|
-
const localVarOperationServerBasePath = operationServerMap['OrdersApi.
|
|
20604
|
+
const localVarOperationServerBasePath = operationServerMap['OrdersApi.deleteDeleteShipment']?.[localVarOperationServerIndex]?.url;
|
|
19173
20605
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
19174
20606
|
},
|
|
19175
20607
|
/**
|
|
@@ -19471,26 +20903,26 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
|
|
|
19471
20903
|
const localVarFp = OrdersApiFp(configuration)
|
|
19472
20904
|
return {
|
|
19473
20905
|
/**
|
|
19474
|
-
* Delete
|
|
19475
|
-
* @summary Delete Shipment (Admin)
|
|
20906
|
+
* Delete Batch (Admin)
|
|
19476
20907
|
* @param {number} id Order ID
|
|
19477
20908
|
* @param {number} batchId Batch ID
|
|
19478
|
-
* @param {number} shipmentId Shipment ID
|
|
19479
20909
|
* @param {*} [options] Override http request option.
|
|
19480
20910
|
* @throws {RequiredError}
|
|
19481
20911
|
*/
|
|
19482
|
-
|
|
19483
|
-
return localVarFp.
|
|
20912
|
+
deleteDeleteBatch(id: number, batchId: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
20913
|
+
return localVarFp.deleteDeleteBatch(id, batchId, options).then((request) => request(axios, basePath));
|
|
19484
20914
|
},
|
|
19485
20915
|
/**
|
|
19486
|
-
* Delete
|
|
20916
|
+
* Delete Shipment (Admin)
|
|
20917
|
+
* @summary Delete Shipment (Admin)
|
|
19487
20918
|
* @param {number} id Order ID
|
|
19488
20919
|
* @param {number} batchId Batch ID
|
|
20920
|
+
* @param {number} shipmentId Shipment ID
|
|
19489
20921
|
* @param {*} [options] Override http request option.
|
|
19490
20922
|
* @throws {RequiredError}
|
|
19491
20923
|
*/
|
|
19492
|
-
|
|
19493
|
-
return localVarFp.
|
|
20924
|
+
deleteDeleteShipment(id: number, batchId: number, shipmentId: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
20925
|
+
return localVarFp.deleteDeleteShipment(id, batchId, shipmentId, options).then((request) => request(axios, basePath));
|
|
19494
20926
|
},
|
|
19495
20927
|
/**
|
|
19496
20928
|
* Delete Orders (Beta)
|
|
@@ -19731,29 +21163,29 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
|
|
|
19731
21163
|
*/
|
|
19732
21164
|
export class OrdersApi extends BaseAPI {
|
|
19733
21165
|
/**
|
|
19734
|
-
* Delete
|
|
19735
|
-
* @summary Delete Shipment (Admin)
|
|
21166
|
+
* Delete Batch (Admin)
|
|
19736
21167
|
* @param {number} id Order ID
|
|
19737
21168
|
* @param {number} batchId Batch ID
|
|
19738
|
-
* @param {number} shipmentId Shipment ID
|
|
19739
21169
|
* @param {*} [options] Override http request option.
|
|
19740
21170
|
* @throws {RequiredError}
|
|
19741
21171
|
* @memberof OrdersApi
|
|
19742
21172
|
*/
|
|
19743
|
-
public
|
|
19744
|
-
return OrdersApiFp(this.configuration).
|
|
21173
|
+
public deleteDeleteBatch(id: number, batchId: number, options?: RawAxiosRequestConfig) {
|
|
21174
|
+
return OrdersApiFp(this.configuration).deleteDeleteBatch(id, batchId, options).then((request) => request(this.axios, this.basePath));
|
|
19745
21175
|
}
|
|
19746
21176
|
|
|
19747
21177
|
/**
|
|
19748
|
-
* Delete
|
|
21178
|
+
* Delete Shipment (Admin)
|
|
21179
|
+
* @summary Delete Shipment (Admin)
|
|
19749
21180
|
* @param {number} id Order ID
|
|
19750
21181
|
* @param {number} batchId Batch ID
|
|
21182
|
+
* @param {number} shipmentId Shipment ID
|
|
19751
21183
|
* @param {*} [options] Override http request option.
|
|
19752
21184
|
* @throws {RequiredError}
|
|
19753
21185
|
* @memberof OrdersApi
|
|
19754
21186
|
*/
|
|
19755
|
-
public
|
|
19756
|
-
return OrdersApiFp(this.configuration).
|
|
21187
|
+
public deleteDeleteShipment(id: number, batchId: number, shipmentId: number, options?: RawAxiosRequestConfig) {
|
|
21188
|
+
return OrdersApiFp(this.configuration).deleteDeleteShipment(id, batchId, shipmentId, options).then((request) => request(this.axios, this.basePath));
|
|
19757
21189
|
}
|
|
19758
21190
|
|
|
19759
21191
|
/**
|
|
@@ -21735,6 +23167,40 @@ export const SIPTrunksApiAxiosParamCreator = function (configuration?: Configura
|
|
|
21735
23167
|
|
|
21736
23168
|
|
|
21737
23169
|
|
|
23170
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
23171
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
23172
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
23173
|
+
|
|
23174
|
+
return {
|
|
23175
|
+
url: toPathString(localVarUrlObj),
|
|
23176
|
+
options: localVarRequestOptions,
|
|
23177
|
+
};
|
|
23178
|
+
},
|
|
23179
|
+
/**
|
|
23180
|
+
* Get SIP Trunks
|
|
23181
|
+
* @param {number} [customerId] Customer ID
|
|
23182
|
+
* @param {*} [options] Override http request option.
|
|
23183
|
+
* @throws {RequiredError}
|
|
23184
|
+
*/
|
|
23185
|
+
getGetAdminSipTrunks: async (customerId?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
23186
|
+
const localVarPath = `/sip/trunks/admin`;
|
|
23187
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
23188
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
23189
|
+
let baseOptions;
|
|
23190
|
+
if (configuration) {
|
|
23191
|
+
baseOptions = configuration.baseOptions;
|
|
23192
|
+
}
|
|
23193
|
+
|
|
23194
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
23195
|
+
const localVarHeaderParameter = {} as any;
|
|
23196
|
+
const localVarQueryParameter = {} as any;
|
|
23197
|
+
|
|
23198
|
+
if (customerId !== undefined) {
|
|
23199
|
+
localVarQueryParameter['customerId'] = customerId;
|
|
23200
|
+
}
|
|
23201
|
+
|
|
23202
|
+
|
|
23203
|
+
|
|
21738
23204
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
21739
23205
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
21740
23206
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -22517,6 +23983,18 @@ export const SIPTrunksApiFp = function(configuration?: Configuration) {
|
|
|
22517
23983
|
const localVarOperationServerBasePath = operationServerMap['SIPTrunksApi.getGetAddress']?.[localVarOperationServerIndex]?.url;
|
|
22518
23984
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
22519
23985
|
},
|
|
23986
|
+
/**
|
|
23987
|
+
* Get SIP Trunks
|
|
23988
|
+
* @param {number} [customerId] Customer ID
|
|
23989
|
+
* @param {*} [options] Override http request option.
|
|
23990
|
+
* @throws {RequiredError}
|
|
23991
|
+
*/
|
|
23992
|
+
async getGetAdminSipTrunks(customerId?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<SipTrunkEntity>>> {
|
|
23993
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetAdminSipTrunks(customerId, options);
|
|
23994
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
23995
|
+
const localVarOperationServerBasePath = operationServerMap['SIPTrunksApi.getGetAdminSipTrunks']?.[localVarOperationServerIndex]?.url;
|
|
23996
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
23997
|
+
},
|
|
22520
23998
|
/**
|
|
22521
23999
|
* Get UK National Area Codes
|
|
22522
24000
|
* @summary Get UK National Area Codes
|
|
@@ -22817,6 +24295,15 @@ export const SIPTrunksApiFactory = function (configuration?: Configuration, base
|
|
|
22817
24295
|
getGetAddress(id: number, options?: RawAxiosRequestConfig): AxiosPromise<AddressRequestModel> {
|
|
22818
24296
|
return localVarFp.getGetAddress(id, options).then((request) => request(axios, basePath));
|
|
22819
24297
|
},
|
|
24298
|
+
/**
|
|
24299
|
+
* Get SIP Trunks
|
|
24300
|
+
* @param {number} [customerId] Customer ID
|
|
24301
|
+
* @param {*} [options] Override http request option.
|
|
24302
|
+
* @throws {RequiredError}
|
|
24303
|
+
*/
|
|
24304
|
+
getGetAdminSipTrunks(customerId?: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<SipTrunkEntity>> {
|
|
24305
|
+
return localVarFp.getGetAdminSipTrunks(customerId, options).then((request) => request(axios, basePath));
|
|
24306
|
+
},
|
|
22820
24307
|
/**
|
|
22821
24308
|
* Get UK National Area Codes
|
|
22822
24309
|
* @summary Get UK National Area Codes
|
|
@@ -23066,6 +24553,17 @@ export class SIPTrunksApi extends BaseAPI {
|
|
|
23066
24553
|
return SIPTrunksApiFp(this.configuration).getGetAddress(id, options).then((request) => request(this.axios, this.basePath));
|
|
23067
24554
|
}
|
|
23068
24555
|
|
|
24556
|
+
/**
|
|
24557
|
+
* Get SIP Trunks
|
|
24558
|
+
* @param {number} [customerId] Customer ID
|
|
24559
|
+
* @param {*} [options] Override http request option.
|
|
24560
|
+
* @throws {RequiredError}
|
|
24561
|
+
* @memberof SIPTrunksApi
|
|
24562
|
+
*/
|
|
24563
|
+
public getGetAdminSipTrunks(customerId?: number, options?: RawAxiosRequestConfig) {
|
|
24564
|
+
return SIPTrunksApiFp(this.configuration).getGetAdminSipTrunks(customerId, options).then((request) => request(this.axios, this.basePath));
|
|
24565
|
+
}
|
|
24566
|
+
|
|
23069
24567
|
/**
|
|
23070
24568
|
* Get UK National Area Codes
|
|
23071
24569
|
* @summary Get UK National Area Codes
|
|
@@ -26356,7 +27854,7 @@ export const TicketsApiFp = function(configuration?: Configuration) {
|
|
|
26356
27854
|
* @param {*} [options] Override http request option.
|
|
26357
27855
|
* @throws {RequiredError}
|
|
26358
27856
|
*/
|
|
26359
|
-
async getGetTicket(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
27857
|
+
async getGetTicket(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SupportTicketModel>> {
|
|
26360
27858
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetTicket(id, options);
|
|
26361
27859
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
26362
27860
|
const localVarOperationServerBasePath = operationServerMap['TicketsApi.getGetTicket']?.[localVarOperationServerIndex]?.url;
|
|
@@ -26368,7 +27866,7 @@ export const TicketsApiFp = function(configuration?: Configuration) {
|
|
|
26368
27866
|
* @param {*} [options] Override http request option.
|
|
26369
27867
|
* @throws {RequiredError}
|
|
26370
27868
|
*/
|
|
26371
|
-
async patchCloseTicket(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
27869
|
+
async patchCloseTicket(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SupportTicketModel>> {
|
|
26372
27870
|
const localVarAxiosArgs = await localVarAxiosParamCreator.patchCloseTicket(id, options);
|
|
26373
27871
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
26374
27872
|
const localVarOperationServerBasePath = operationServerMap['TicketsApi.patchCloseTicket']?.[localVarOperationServerIndex]?.url;
|
|
@@ -26382,7 +27880,7 @@ export const TicketsApiFp = function(configuration?: Configuration) {
|
|
|
26382
27880
|
* @param {*} [options] Override http request option.
|
|
26383
27881
|
* @throws {RequiredError}
|
|
26384
27882
|
*/
|
|
26385
|
-
async postCreateTicket(subject?: string, message?: string, attachments?: Array<File>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
27883
|
+
async postCreateTicket(subject?: string, message?: string, attachments?: Array<File>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SupportTicketModel>> {
|
|
26386
27884
|
const localVarAxiosArgs = await localVarAxiosParamCreator.postCreateTicket(subject, message, attachments, options);
|
|
26387
27885
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
26388
27886
|
const localVarOperationServerBasePath = operationServerMap['TicketsApi.postCreateTicket']?.[localVarOperationServerIndex]?.url;
|
|
@@ -26396,7 +27894,7 @@ export const TicketsApiFp = function(configuration?: Configuration) {
|
|
|
26396
27894
|
* @param {*} [options] Override http request option.
|
|
26397
27895
|
* @throws {RequiredError}
|
|
26398
27896
|
*/
|
|
26399
|
-
async postTicketReply(id: number, body?: string, attachments?: Array<File>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
27897
|
+
async postTicketReply(id: number, body?: string, attachments?: Array<File>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SupportTicketModel>> {
|
|
26400
27898
|
const localVarAxiosArgs = await localVarAxiosParamCreator.postTicketReply(id, body, attachments, options);
|
|
26401
27899
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
26402
27900
|
const localVarOperationServerBasePath = operationServerMap['TicketsApi.postTicketReply']?.[localVarOperationServerIndex]?.url;
|
|
@@ -26429,7 +27927,7 @@ export const TicketsApiFactory = function (configuration?: Configuration, basePa
|
|
|
26429
27927
|
* @param {*} [options] Override http request option.
|
|
26430
27928
|
* @throws {RequiredError}
|
|
26431
27929
|
*/
|
|
26432
|
-
getGetTicket(id: number, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
27930
|
+
getGetTicket(id: number, options?: RawAxiosRequestConfig): AxiosPromise<SupportTicketModel> {
|
|
26433
27931
|
return localVarFp.getGetTicket(id, options).then((request) => request(axios, basePath));
|
|
26434
27932
|
},
|
|
26435
27933
|
/**
|
|
@@ -26438,7 +27936,7 @@ export const TicketsApiFactory = function (configuration?: Configuration, basePa
|
|
|
26438
27936
|
* @param {*} [options] Override http request option.
|
|
26439
27937
|
* @throws {RequiredError}
|
|
26440
27938
|
*/
|
|
26441
|
-
patchCloseTicket(id: number, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
27939
|
+
patchCloseTicket(id: number, options?: RawAxiosRequestConfig): AxiosPromise<SupportTicketModel> {
|
|
26442
27940
|
return localVarFp.patchCloseTicket(id, options).then((request) => request(axios, basePath));
|
|
26443
27941
|
},
|
|
26444
27942
|
/**
|
|
@@ -26449,7 +27947,7 @@ export const TicketsApiFactory = function (configuration?: Configuration, basePa
|
|
|
26449
27947
|
* @param {*} [options] Override http request option.
|
|
26450
27948
|
* @throws {RequiredError}
|
|
26451
27949
|
*/
|
|
26452
|
-
postCreateTicket(subject?: string, message?: string, attachments?: Array<File>, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
27950
|
+
postCreateTicket(subject?: string, message?: string, attachments?: Array<File>, options?: RawAxiosRequestConfig): AxiosPromise<SupportTicketModel> {
|
|
26453
27951
|
return localVarFp.postCreateTicket(subject, message, attachments, options).then((request) => request(axios, basePath));
|
|
26454
27952
|
},
|
|
26455
27953
|
/**
|
|
@@ -26460,7 +27958,7 @@ export const TicketsApiFactory = function (configuration?: Configuration, basePa
|
|
|
26460
27958
|
* @param {*} [options] Override http request option.
|
|
26461
27959
|
* @throws {RequiredError}
|
|
26462
27960
|
*/
|
|
26463
|
-
postTicketReply(id: number, body?: string, attachments?: Array<File>, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
27961
|
+
postTicketReply(id: number, body?: string, attachments?: Array<File>, options?: RawAxiosRequestConfig): AxiosPromise<SupportTicketModel> {
|
|
26464
27962
|
return localVarFp.postTicketReply(id, body, attachments, options).then((request) => request(axios, basePath));
|
|
26465
27963
|
},
|
|
26466
27964
|
};
|