yellowgrid-api-ts 3.2.24-dev.0 → 3.2.25-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 +10 -7
- package/README.md +15 -17
- package/api.ts +1373 -2024
- package/dist/api.d.ts +543 -874
- package/dist/api.js +1259 -1847
- package/docs/IncidentDTO.md +31 -0
- package/docs/IncidentRequestDTO.md +25 -0
- package/docs/IncidentSubscriptionModel.md +23 -0
- package/docs/IncidentUpdateDTO.md +25 -0
- package/docs/IncidentUpdateEntity.md +29 -0
- package/docs/IncidentUpdateRequestDTO.md +23 -0
- package/docs/OAuth20Api.md +3 -3
- package/docs/ServiceHealthDTO.md +23 -0
- package/docs/ServiceStatusDTO.md +25 -0
- package/docs/ServicesApi.md +330 -0
- package/docs/TelephonySupportTicketModel.md +41 -0
- package/docs/TicketsApi.md +8 -8
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -1763,6 +1763,171 @@ export const HostingRegionDTOCodeEnum = {
|
|
|
1763
1763
|
|
|
1764
1764
|
export type HostingRegionDTOCodeEnum = typeof HostingRegionDTOCodeEnum[keyof typeof HostingRegionDTOCodeEnum];
|
|
1765
1765
|
|
|
1766
|
+
/**
|
|
1767
|
+
* Incident DTO
|
|
1768
|
+
*/
|
|
1769
|
+
export interface IncidentDTO {
|
|
1770
|
+
/**
|
|
1771
|
+
* Incident Title
|
|
1772
|
+
*/
|
|
1773
|
+
'title'?: string;
|
|
1774
|
+
/**
|
|
1775
|
+
* Incident Type
|
|
1776
|
+
*/
|
|
1777
|
+
'type'?: IncidentDTOTypeEnum;
|
|
1778
|
+
/**
|
|
1779
|
+
* Service Impacted
|
|
1780
|
+
*/
|
|
1781
|
+
'service'?: IncidentDTOServiceEnum;
|
|
1782
|
+
/**
|
|
1783
|
+
* Incident ID
|
|
1784
|
+
*/
|
|
1785
|
+
'id'?: number;
|
|
1786
|
+
/**
|
|
1787
|
+
* Incident Status
|
|
1788
|
+
*/
|
|
1789
|
+
'status'?: IncidentDTOStatusEnum;
|
|
1790
|
+
/**
|
|
1791
|
+
* Incident Updates
|
|
1792
|
+
*/
|
|
1793
|
+
'updates'?: Array<IncidentUpdateDTO>;
|
|
1794
|
+
}
|
|
1795
|
+
|
|
1796
|
+
export const IncidentDTOTypeEnum = {
|
|
1797
|
+
NUMBER_0: 0,
|
|
1798
|
+
NUMBER_1: 1
|
|
1799
|
+
} as const;
|
|
1800
|
+
|
|
1801
|
+
export type IncidentDTOTypeEnum = typeof IncidentDTOTypeEnum[keyof typeof IncidentDTOTypeEnum];
|
|
1802
|
+
export const IncidentDTOServiceEnum = {
|
|
1803
|
+
NUMBER_0: 0
|
|
1804
|
+
} as const;
|
|
1805
|
+
|
|
1806
|
+
export type IncidentDTOServiceEnum = typeof IncidentDTOServiceEnum[keyof typeof IncidentDTOServiceEnum];
|
|
1807
|
+
export const IncidentDTOStatusEnum = {
|
|
1808
|
+
NUMBER_0: 0,
|
|
1809
|
+
NUMBER_1: 1,
|
|
1810
|
+
NUMBER_2: 2
|
|
1811
|
+
} as const;
|
|
1812
|
+
|
|
1813
|
+
export type IncidentDTOStatusEnum = typeof IncidentDTOStatusEnum[keyof typeof IncidentDTOStatusEnum];
|
|
1814
|
+
|
|
1815
|
+
/**
|
|
1816
|
+
* Incident Request DTO
|
|
1817
|
+
*/
|
|
1818
|
+
export interface IncidentRequestDTO {
|
|
1819
|
+
/**
|
|
1820
|
+
* Incident Title
|
|
1821
|
+
*/
|
|
1822
|
+
'title'?: string;
|
|
1823
|
+
/**
|
|
1824
|
+
* Incident Type
|
|
1825
|
+
*/
|
|
1826
|
+
'type'?: IncidentRequestDTOTypeEnum;
|
|
1827
|
+
/**
|
|
1828
|
+
* Service Impacted
|
|
1829
|
+
*/
|
|
1830
|
+
'service'?: IncidentRequestDTOServiceEnum;
|
|
1831
|
+
}
|
|
1832
|
+
|
|
1833
|
+
export const IncidentRequestDTOTypeEnum = {
|
|
1834
|
+
NUMBER_0: 0,
|
|
1835
|
+
NUMBER_1: 1
|
|
1836
|
+
} as const;
|
|
1837
|
+
|
|
1838
|
+
export type IncidentRequestDTOTypeEnum = typeof IncidentRequestDTOTypeEnum[keyof typeof IncidentRequestDTOTypeEnum];
|
|
1839
|
+
export const IncidentRequestDTOServiceEnum = {
|
|
1840
|
+
NUMBER_0: 0
|
|
1841
|
+
} as const;
|
|
1842
|
+
|
|
1843
|
+
export type IncidentRequestDTOServiceEnum = typeof IncidentRequestDTOServiceEnum[keyof typeof IncidentRequestDTOServiceEnum];
|
|
1844
|
+
|
|
1845
|
+
/**
|
|
1846
|
+
* Incident Subscribption Model
|
|
1847
|
+
*/
|
|
1848
|
+
export interface IncidentSubscriptionModel {
|
|
1849
|
+
/**
|
|
1850
|
+
* id
|
|
1851
|
+
*/
|
|
1852
|
+
'id'?: string;
|
|
1853
|
+
/**
|
|
1854
|
+
* email
|
|
1855
|
+
*/
|
|
1856
|
+
'email'?: string;
|
|
1857
|
+
}
|
|
1858
|
+
/**
|
|
1859
|
+
* Incident Update DTO
|
|
1860
|
+
*/
|
|
1861
|
+
export interface IncidentUpdateDTO {
|
|
1862
|
+
/**
|
|
1863
|
+
* Incident Update Message
|
|
1864
|
+
*/
|
|
1865
|
+
'message'?: string;
|
|
1866
|
+
/**
|
|
1867
|
+
* Incident Update Type
|
|
1868
|
+
*/
|
|
1869
|
+
'type'?: IncidentUpdateDTOTypeEnum;
|
|
1870
|
+
/**
|
|
1871
|
+
* Date Time
|
|
1872
|
+
*/
|
|
1873
|
+
'createdAt'?: string;
|
|
1874
|
+
}
|
|
1875
|
+
|
|
1876
|
+
export const IncidentUpdateDTOTypeEnum = {
|
|
1877
|
+
NUMBER_0: 0,
|
|
1878
|
+
NUMBER_1: 1,
|
|
1879
|
+
NUMBER_2: 2
|
|
1880
|
+
} as const;
|
|
1881
|
+
|
|
1882
|
+
export type IncidentUpdateDTOTypeEnum = typeof IncidentUpdateDTOTypeEnum[keyof typeof IncidentUpdateDTOTypeEnum];
|
|
1883
|
+
|
|
1884
|
+
/**
|
|
1885
|
+
* IncidentUpdatesEntity
|
|
1886
|
+
*/
|
|
1887
|
+
export interface IncidentUpdateEntity {
|
|
1888
|
+
/**
|
|
1889
|
+
* id
|
|
1890
|
+
*/
|
|
1891
|
+
'id'?: number;
|
|
1892
|
+
/**
|
|
1893
|
+
* incidentId
|
|
1894
|
+
*/
|
|
1895
|
+
'incidentId'?: number;
|
|
1896
|
+
/**
|
|
1897
|
+
* message
|
|
1898
|
+
*/
|
|
1899
|
+
'message'?: string;
|
|
1900
|
+
/**
|
|
1901
|
+
* type
|
|
1902
|
+
*/
|
|
1903
|
+
'type'?: number;
|
|
1904
|
+
/**
|
|
1905
|
+
* createdAt
|
|
1906
|
+
*/
|
|
1907
|
+
'createdAt'?: string;
|
|
1908
|
+
}
|
|
1909
|
+
/**
|
|
1910
|
+
* Incident Update Request DTO
|
|
1911
|
+
*/
|
|
1912
|
+
export interface IncidentUpdateRequestDTO {
|
|
1913
|
+
/**
|
|
1914
|
+
* Incident Update Message
|
|
1915
|
+
*/
|
|
1916
|
+
'message'?: string;
|
|
1917
|
+
/**
|
|
1918
|
+
* Incident Update Type
|
|
1919
|
+
*/
|
|
1920
|
+
'type'?: IncidentUpdateRequestDTOTypeEnum;
|
|
1921
|
+
}
|
|
1922
|
+
|
|
1923
|
+
export const IncidentUpdateRequestDTOTypeEnum = {
|
|
1924
|
+
NUMBER_0: 0,
|
|
1925
|
+
NUMBER_1: 1,
|
|
1926
|
+
NUMBER_2: 2
|
|
1927
|
+
} as const;
|
|
1928
|
+
|
|
1929
|
+
export type IncidentUpdateRequestDTOTypeEnum = typeof IncidentUpdateRequestDTOTypeEnum[keyof typeof IncidentUpdateRequestDTOTypeEnum];
|
|
1930
|
+
|
|
1766
1931
|
/**
|
|
1767
1932
|
* InstanceFailoverIpsEntity
|
|
1768
1933
|
*/
|
|
@@ -2389,219 +2554,6 @@ export interface NavigationModel {
|
|
|
2389
2554
|
*/
|
|
2390
2555
|
'openNewPage'?: boolean;
|
|
2391
2556
|
}
|
|
2392
|
-
/**
|
|
2393
|
-
* Number Port Response
|
|
2394
|
-
*/
|
|
2395
|
-
export interface NumberPortDTO {
|
|
2396
|
-
/**
|
|
2397
|
-
* Company Name
|
|
2398
|
-
*/
|
|
2399
|
-
'companyName'?: string | null;
|
|
2400
|
-
/**
|
|
2401
|
-
* Address Line 1
|
|
2402
|
-
*/
|
|
2403
|
-
'addressLine1'?: string | null;
|
|
2404
|
-
/**
|
|
2405
|
-
* Address Line 2
|
|
2406
|
-
*/
|
|
2407
|
-
'addressLine2'?: string | null;
|
|
2408
|
-
/**
|
|
2409
|
-
* City
|
|
2410
|
-
*/
|
|
2411
|
-
'city'?: string | null;
|
|
2412
|
-
/**
|
|
2413
|
-
* Post Code
|
|
2414
|
-
*/
|
|
2415
|
-
'postCode'?: string | null;
|
|
2416
|
-
/**
|
|
2417
|
-
* Trunk ID
|
|
2418
|
-
*/
|
|
2419
|
-
'trunkId'?: number | null;
|
|
2420
|
-
/**
|
|
2421
|
-
* Starter Bundle ID
|
|
2422
|
-
*/
|
|
2423
|
-
'tenantId'?: string | null;
|
|
2424
|
-
/**
|
|
2425
|
-
* Requested Port Date
|
|
2426
|
-
*/
|
|
2427
|
-
'requestedPortDate'?: string | null;
|
|
2428
|
-
/**
|
|
2429
|
-
* Port Date ASAP
|
|
2430
|
-
*/
|
|
2431
|
-
'asap'?: boolean | null;
|
|
2432
|
-
/**
|
|
2433
|
-
* Comment
|
|
2434
|
-
*/
|
|
2435
|
-
'comment'?: string | null;
|
|
2436
|
-
/**
|
|
2437
|
-
* Number Port ID
|
|
2438
|
-
*/
|
|
2439
|
-
'id'?: number;
|
|
2440
|
-
/**
|
|
2441
|
-
* Customer Name
|
|
2442
|
-
*/
|
|
2443
|
-
'customerName'?: string;
|
|
2444
|
-
/**
|
|
2445
|
-
* Porting Date
|
|
2446
|
-
*/
|
|
2447
|
-
'portDate'?: string;
|
|
2448
|
-
/**
|
|
2449
|
-
* Number Ranges
|
|
2450
|
-
*/
|
|
2451
|
-
'numberRanges'?: Array<NumberPortRangeDTO>;
|
|
2452
|
-
/**
|
|
2453
|
-
* Status
|
|
2454
|
-
*/
|
|
2455
|
-
'status'?: number;
|
|
2456
|
-
/**
|
|
2457
|
-
* Ticket ID
|
|
2458
|
-
*/
|
|
2459
|
-
'ticketId'?: number | null;
|
|
2460
|
-
}
|
|
2461
|
-
/**
|
|
2462
|
-
* Number Port Model
|
|
2463
|
-
*/
|
|
2464
|
-
export interface NumberPortModel {
|
|
2465
|
-
/**
|
|
2466
|
-
* Number Port ID
|
|
2467
|
-
*/
|
|
2468
|
-
'id'?: number;
|
|
2469
|
-
/**
|
|
2470
|
-
* Customer ID
|
|
2471
|
-
*/
|
|
2472
|
-
'customerId'?: number;
|
|
2473
|
-
/**
|
|
2474
|
-
* End User
|
|
2475
|
-
*/
|
|
2476
|
-
'endUser'?: string | null;
|
|
2477
|
-
/**
|
|
2478
|
-
* Address Line 1
|
|
2479
|
-
*/
|
|
2480
|
-
'addressLine1'?: string | null;
|
|
2481
|
-
/**
|
|
2482
|
-
* Address Line 2
|
|
2483
|
-
*/
|
|
2484
|
-
'addressLine2'?: string | null;
|
|
2485
|
-
/**
|
|
2486
|
-
* City
|
|
2487
|
-
*/
|
|
2488
|
-
'city'?: string | null;
|
|
2489
|
-
/**
|
|
2490
|
-
* Post Code
|
|
2491
|
-
*/
|
|
2492
|
-
'postCode'?: string | null;
|
|
2493
|
-
/**
|
|
2494
|
-
* Trunk ID
|
|
2495
|
-
*/
|
|
2496
|
-
'trunkId'?: number | null;
|
|
2497
|
-
/**
|
|
2498
|
-
* Tenant ID
|
|
2499
|
-
*/
|
|
2500
|
-
'tenantId'?: string | null;
|
|
2501
|
-
/**
|
|
2502
|
-
* Requested Port Date
|
|
2503
|
-
*/
|
|
2504
|
-
'requestedPortDate'?: string | null;
|
|
2505
|
-
/**
|
|
2506
|
-
* Port Date
|
|
2507
|
-
*/
|
|
2508
|
-
'portDate'?: string | null;
|
|
2509
|
-
/**
|
|
2510
|
-
* Comment
|
|
2511
|
-
*/
|
|
2512
|
-
'comment'?: string | null;
|
|
2513
|
-
/**
|
|
2514
|
-
* Status
|
|
2515
|
-
*/
|
|
2516
|
-
'status'?: number | null;
|
|
2517
|
-
/**
|
|
2518
|
-
* Ticket ID
|
|
2519
|
-
*/
|
|
2520
|
-
'ticketId'?: number | null;
|
|
2521
|
-
/**
|
|
2522
|
-
* Number Port Ranges
|
|
2523
|
-
*/
|
|
2524
|
-
'ranges'?: Array<any>;
|
|
2525
|
-
/**
|
|
2526
|
-
* Customer Company Name
|
|
2527
|
-
*/
|
|
2528
|
-
'customerName'?: string;
|
|
2529
|
-
}
|
|
2530
|
-
/**
|
|
2531
|
-
* Number Port Range Response
|
|
2532
|
-
*/
|
|
2533
|
-
export interface NumberPortRangeDTO {
|
|
2534
|
-
/**
|
|
2535
|
-
* Range Start Number
|
|
2536
|
-
*/
|
|
2537
|
-
'rangeStart'?: string | null;
|
|
2538
|
-
/**
|
|
2539
|
-
* Range End Number
|
|
2540
|
-
*/
|
|
2541
|
-
'rangeEnd'?: string | null;
|
|
2542
|
-
/**
|
|
2543
|
-
* Losing Communications Provider
|
|
2544
|
-
*/
|
|
2545
|
-
'lcp'?: string | null;
|
|
2546
|
-
/**
|
|
2547
|
-
* Range Post Code
|
|
2548
|
-
*/
|
|
2549
|
-
'postCode'?: string | null;
|
|
2550
|
-
/**
|
|
2551
|
-
* Number Port Range ID
|
|
2552
|
-
*/
|
|
2553
|
-
'id'?: number;
|
|
2554
|
-
/**
|
|
2555
|
-
* Number Port ID
|
|
2556
|
-
*/
|
|
2557
|
-
'portId'?: number;
|
|
2558
|
-
/**
|
|
2559
|
-
* Range Holder
|
|
2560
|
-
*/
|
|
2561
|
-
'rangeHolder'?: string | null;
|
|
2562
|
-
}
|
|
2563
|
-
/**
|
|
2564
|
-
* NumberPortRangeDTO
|
|
2565
|
-
*/
|
|
2566
|
-
export interface NumberPortRangeRequestDTO {
|
|
2567
|
-
/**
|
|
2568
|
-
* Range Start Number
|
|
2569
|
-
*/
|
|
2570
|
-
'rangeStart'?: string | null;
|
|
2571
|
-
/**
|
|
2572
|
-
* Range End Number
|
|
2573
|
-
*/
|
|
2574
|
-
'rangeEnd'?: string | null;
|
|
2575
|
-
/**
|
|
2576
|
-
* Losing Communications Provider
|
|
2577
|
-
*/
|
|
2578
|
-
'lcp'?: string | null;
|
|
2579
|
-
/**
|
|
2580
|
-
* Range Post Code
|
|
2581
|
-
*/
|
|
2582
|
-
'postCode'?: string | null;
|
|
2583
|
-
}
|
|
2584
|
-
/**
|
|
2585
|
-
* Number Ports
|
|
2586
|
-
*/
|
|
2587
|
-
export interface NumberPortsModel {
|
|
2588
|
-
/**
|
|
2589
|
-
* Results
|
|
2590
|
-
*/
|
|
2591
|
-
'results'?: Array<NumberPortDTO>;
|
|
2592
|
-
/**
|
|
2593
|
-
* Page
|
|
2594
|
-
*/
|
|
2595
|
-
'page'?: number;
|
|
2596
|
-
/**
|
|
2597
|
-
* Per Page
|
|
2598
|
-
*/
|
|
2599
|
-
'perPage'?: number;
|
|
2600
|
-
/**
|
|
2601
|
-
* Total Results
|
|
2602
|
-
*/
|
|
2603
|
-
'totalResults'?: number;
|
|
2604
|
-
}
|
|
2605
2557
|
/**
|
|
2606
2558
|
* OfflineInstancesEntity
|
|
2607
2559
|
*/
|
|
@@ -3739,10 +3691,52 @@ export interface ScopeModel {
|
|
|
3739
3691
|
'description'?: string;
|
|
3740
3692
|
}
|
|
3741
3693
|
/**
|
|
3742
|
-
*
|
|
3694
|
+
* Service Health DTO
|
|
3743
3695
|
*/
|
|
3744
|
-
export interface
|
|
3745
|
-
|
|
3696
|
+
export interface ServiceHealthDTO {
|
|
3697
|
+
'services'?: Array<ServiceStatusDTO>;
|
|
3698
|
+
'globalStatus'?: ServiceHealthDTOGlobalStatusEnum;
|
|
3699
|
+
}
|
|
3700
|
+
|
|
3701
|
+
export const ServiceHealthDTOGlobalStatusEnum = {
|
|
3702
|
+
NUMBER_0: 0,
|
|
3703
|
+
NUMBER_1: 1,
|
|
3704
|
+
NUMBER_2: 2
|
|
3705
|
+
} as const;
|
|
3706
|
+
|
|
3707
|
+
export type ServiceHealthDTOGlobalStatusEnum = typeof ServiceHealthDTOGlobalStatusEnum[keyof typeof ServiceHealthDTOGlobalStatusEnum];
|
|
3708
|
+
|
|
3709
|
+
/**
|
|
3710
|
+
* Service Status DTO
|
|
3711
|
+
*/
|
|
3712
|
+
export interface ServiceStatusDTO {
|
|
3713
|
+
/**
|
|
3714
|
+
* Service Name
|
|
3715
|
+
*/
|
|
3716
|
+
'serviceName'?: string;
|
|
3717
|
+
/**
|
|
3718
|
+
* Service Status
|
|
3719
|
+
*/
|
|
3720
|
+
'status'?: ServiceStatusDTOStatusEnum;
|
|
3721
|
+
/**
|
|
3722
|
+
* Service Incidents
|
|
3723
|
+
*/
|
|
3724
|
+
'incidents'?: Array<IncidentDTO>;
|
|
3725
|
+
}
|
|
3726
|
+
|
|
3727
|
+
export const ServiceStatusDTOStatusEnum = {
|
|
3728
|
+
NUMBER_0: 0,
|
|
3729
|
+
NUMBER_1: 1,
|
|
3730
|
+
NUMBER_2: 2
|
|
3731
|
+
} as const;
|
|
3732
|
+
|
|
3733
|
+
export type ServiceStatusDTOStatusEnum = typeof ServiceStatusDTOStatusEnum[keyof typeof ServiceStatusDTOStatusEnum];
|
|
3734
|
+
|
|
3735
|
+
/**
|
|
3736
|
+
* ShipmentAddressEntity
|
|
3737
|
+
*/
|
|
3738
|
+
export interface ShipmentAddressEntity {
|
|
3739
|
+
/**
|
|
3746
3740
|
* id
|
|
3747
3741
|
*/
|
|
3748
3742
|
'id'?: number;
|
|
@@ -4963,55 +4957,6 @@ export interface SupplierItemEntity {
|
|
|
4963
4957
|
*/
|
|
4964
4958
|
'supplierSku'?: string;
|
|
4965
4959
|
}
|
|
4966
|
-
/**
|
|
4967
|
-
* Telephony Support Ticket
|
|
4968
|
-
*/
|
|
4969
|
-
export interface SupportTicketModel {
|
|
4970
|
-
/**
|
|
4971
|
-
* Ticket ID
|
|
4972
|
-
*/
|
|
4973
|
-
'id'?: number;
|
|
4974
|
-
/**
|
|
4975
|
-
* Ticket status
|
|
4976
|
-
*/
|
|
4977
|
-
'status'?: string;
|
|
4978
|
-
/**
|
|
4979
|
-
* Ticket status ID
|
|
4980
|
-
*/
|
|
4981
|
-
'statusId'?: number;
|
|
4982
|
-
/**
|
|
4983
|
-
* Ticket subject
|
|
4984
|
-
*/
|
|
4985
|
-
'subject'?: string;
|
|
4986
|
-
/**
|
|
4987
|
-
* Support email address
|
|
4988
|
-
*/
|
|
4989
|
-
'supportEmail'?: string | null;
|
|
4990
|
-
/**
|
|
4991
|
-
* Recipient emails
|
|
4992
|
-
*/
|
|
4993
|
-
'toEmails'?: Array<string>;
|
|
4994
|
-
/**
|
|
4995
|
-
* Ticket description (HTML)
|
|
4996
|
-
*/
|
|
4997
|
-
'description'?: string;
|
|
4998
|
-
/**
|
|
4999
|
-
* Ticket description (plain text)
|
|
5000
|
-
*/
|
|
5001
|
-
'descriptionText'?: string;
|
|
5002
|
-
/**
|
|
5003
|
-
* Creation timestamp
|
|
5004
|
-
*/
|
|
5005
|
-
'createdAt'?: string;
|
|
5006
|
-
/**
|
|
5007
|
-
* Attachments
|
|
5008
|
-
*/
|
|
5009
|
-
'attachments'?: Array<AttachmentModel>;
|
|
5010
|
-
/**
|
|
5011
|
-
* Conversations
|
|
5012
|
-
*/
|
|
5013
|
-
'conversations'?: Array<ConversationModel>;
|
|
5014
|
-
}
|
|
5015
4960
|
/**
|
|
5016
4961
|
* 3CX Wizard Restore From Backup
|
|
5017
4962
|
*/
|
|
@@ -6392,6 +6337,55 @@ export interface TechSupportCompanySummaryDTO {
|
|
|
6392
6337
|
*/
|
|
6393
6338
|
'monthlyReportEmailAddress'?: string;
|
|
6394
6339
|
}
|
|
6340
|
+
/**
|
|
6341
|
+
* Telephony Support Ticket
|
|
6342
|
+
*/
|
|
6343
|
+
export interface TelephonySupportTicketModel {
|
|
6344
|
+
/**
|
|
6345
|
+
* Ticket ID
|
|
6346
|
+
*/
|
|
6347
|
+
'id'?: number;
|
|
6348
|
+
/**
|
|
6349
|
+
* Ticket status
|
|
6350
|
+
*/
|
|
6351
|
+
'status'?: string;
|
|
6352
|
+
/**
|
|
6353
|
+
* Ticket status ID
|
|
6354
|
+
*/
|
|
6355
|
+
'statusId'?: number;
|
|
6356
|
+
/**
|
|
6357
|
+
* Ticket subject
|
|
6358
|
+
*/
|
|
6359
|
+
'subject'?: string;
|
|
6360
|
+
/**
|
|
6361
|
+
* Support email address
|
|
6362
|
+
*/
|
|
6363
|
+
'supportEmail'?: string | null;
|
|
6364
|
+
/**
|
|
6365
|
+
* Recipient emails
|
|
6366
|
+
*/
|
|
6367
|
+
'toEmails'?: Array<string>;
|
|
6368
|
+
/**
|
|
6369
|
+
* Ticket description (HTML)
|
|
6370
|
+
*/
|
|
6371
|
+
'description'?: string;
|
|
6372
|
+
/**
|
|
6373
|
+
* Ticket description (plain text)
|
|
6374
|
+
*/
|
|
6375
|
+
'descriptionText'?: string;
|
|
6376
|
+
/**
|
|
6377
|
+
* Creation timestamp
|
|
6378
|
+
*/
|
|
6379
|
+
'createdAt'?: string;
|
|
6380
|
+
/**
|
|
6381
|
+
* Attachments
|
|
6382
|
+
*/
|
|
6383
|
+
'attachments'?: Array<AttachmentModel>;
|
|
6384
|
+
/**
|
|
6385
|
+
* Conversations
|
|
6386
|
+
*/
|
|
6387
|
+
'conversations'?: Array<ConversationModel>;
|
|
6388
|
+
}
|
|
6395
6389
|
/**
|
|
6396
6390
|
* Ticket Summary Model
|
|
6397
6391
|
*/
|
|
@@ -12667,21 +12661,18 @@ export class MyPBXToolsApi extends BaseAPI {
|
|
|
12667
12661
|
|
|
12668
12662
|
|
|
12669
12663
|
/**
|
|
12670
|
-
*
|
|
12664
|
+
* OAuth20Api - axios parameter creator
|
|
12671
12665
|
*/
|
|
12672
|
-
export const
|
|
12666
|
+
export const OAuth20ApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
12673
12667
|
return {
|
|
12674
12668
|
/**
|
|
12675
|
-
*
|
|
12676
|
-
* @
|
|
12669
|
+
* Get MFA QR Code
|
|
12670
|
+
* @summary Get MFA QR Code
|
|
12677
12671
|
* @param {*} [options] Override http request option.
|
|
12678
12672
|
* @throws {RequiredError}
|
|
12679
12673
|
*/
|
|
12680
|
-
|
|
12681
|
-
|
|
12682
|
-
assertParamExists('deleteGetAdminNumberPort', 'id', id)
|
|
12683
|
-
const localVarPath = `/admin/sip/numbers/ports/{id}`
|
|
12684
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
12674
|
+
getGetMfaQrCode: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
12675
|
+
const localVarPath = `/oauth2/qr/code`;
|
|
12685
12676
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12686
12677
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12687
12678
|
let baseOptions;
|
|
@@ -12689,7 +12680,7 @@ export const NumberPortingApiAxiosParamCreator = function (configuration?: Confi
|
|
|
12689
12680
|
baseOptions = configuration.baseOptions;
|
|
12690
12681
|
}
|
|
12691
12682
|
|
|
12692
|
-
const localVarRequestOptions = { method: '
|
|
12683
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
12693
12684
|
const localVarHeaderParameter = {} as any;
|
|
12694
12685
|
const localVarQueryParameter = {} as any;
|
|
12695
12686
|
|
|
@@ -12705,15 +12696,13 @@ export const NumberPortingApiAxiosParamCreator = function (configuration?: Confi
|
|
|
12705
12696
|
};
|
|
12706
12697
|
},
|
|
12707
12698
|
/**
|
|
12708
|
-
*
|
|
12709
|
-
* @
|
|
12710
|
-
* @param {number} [page] Page Number
|
|
12711
|
-
* @param {string} [search] Search
|
|
12699
|
+
* Get Scopes
|
|
12700
|
+
* @summary Get Scopes
|
|
12712
12701
|
* @param {*} [options] Override http request option.
|
|
12713
12702
|
* @throws {RequiredError}
|
|
12714
12703
|
*/
|
|
12715
|
-
|
|
12716
|
-
const localVarPath = `/
|
|
12704
|
+
getGetScopes: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
12705
|
+
const localVarPath = `/oauth2/scopes`;
|
|
12717
12706
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12718
12707
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12719
12708
|
let baseOptions;
|
|
@@ -12725,18 +12714,6 @@ export const NumberPortingApiAxiosParamCreator = function (configuration?: Confi
|
|
|
12725
12714
|
const localVarHeaderParameter = {} as any;
|
|
12726
12715
|
const localVarQueryParameter = {} as any;
|
|
12727
12716
|
|
|
12728
|
-
if (pageSize !== undefined) {
|
|
12729
|
-
localVarQueryParameter['pageSize'] = pageSize;
|
|
12730
|
-
}
|
|
12731
|
-
|
|
12732
|
-
if (page !== undefined) {
|
|
12733
|
-
localVarQueryParameter['page'] = page;
|
|
12734
|
-
}
|
|
12735
|
-
|
|
12736
|
-
if (search !== undefined) {
|
|
12737
|
-
localVarQueryParameter['search'] = search;
|
|
12738
|
-
}
|
|
12739
|
-
|
|
12740
12717
|
|
|
12741
12718
|
|
|
12742
12719
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -12749,16 +12726,25 @@ export const NumberPortingApiAxiosParamCreator = function (configuration?: Confi
|
|
|
12749
12726
|
};
|
|
12750
12727
|
},
|
|
12751
12728
|
/**
|
|
12752
|
-
*
|
|
12753
|
-
* @
|
|
12729
|
+
* Get an OAuth 2.0 access token
|
|
12730
|
+
* @summary Validates client credentials and returns access token
|
|
12731
|
+
* @param {string | null} [clientId] OAuth 2.0 Client ID
|
|
12732
|
+
* @param {string | null} [clientSecret] OAuth 2.0 Client Secret
|
|
12733
|
+
* @param {PostAccessTokenGrantTypeEnum} [grantType] OAuth 2.0 Grant Type
|
|
12734
|
+
* @param {PostAccessTokenScopeEnum} [scope] OAuth 2.0 Scope
|
|
12735
|
+
* @param {string | null} [redirectUri] OAuth 2.0 Redirect URI
|
|
12736
|
+
* @param {string | null} [code] OAuth 2.0 Auth Code
|
|
12737
|
+
* @param {string | null} [refreshToken] OAuth 2.0 Refresh Token
|
|
12738
|
+
* @param {string | null} [codeVerifier] OAuth 2.0 Code Verifier
|
|
12739
|
+
* @param {string | null} [token] OAuth 2.0 Token (Only used in Token Exchange)
|
|
12740
|
+
* @param {PostAccessTokenTokenExchangeTypeEnum} [tokenExchangeType] Token Exchange Type (Only used in Token Exchange)
|
|
12741
|
+
* @param {string | null} [licenceKey] 3CX Licence Key (Only used in Token Exchange)
|
|
12742
|
+
* @param {boolean | null} [endUser] End User (Only used in Token Exchange)
|
|
12754
12743
|
* @param {*} [options] Override http request option.
|
|
12755
12744
|
* @throws {RequiredError}
|
|
12756
12745
|
*/
|
|
12757
|
-
|
|
12758
|
-
|
|
12759
|
-
assertParamExists('getGetAdminNumberPort', 'id', id)
|
|
12760
|
-
const localVarPath = `/admin/sip/numbers/ports/{id}`
|
|
12761
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
12746
|
+
postAccessToken: async (clientId?: string | null, clientSecret?: string | null, grantType?: PostAccessTokenGrantTypeEnum, scope?: PostAccessTokenScopeEnum, redirectUri?: string | null, code?: string | null, refreshToken?: string | null, codeVerifier?: string | null, token?: string | null, tokenExchangeType?: PostAccessTokenTokenExchangeTypeEnum, licenceKey?: string | null, endUser?: boolean | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
12747
|
+
const localVarPath = `/oauth2/access_token`;
|
|
12762
12748
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12763
12749
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12764
12750
|
let baseOptions;
|
|
@@ -12766,15 +12752,67 @@ export const NumberPortingApiAxiosParamCreator = function (configuration?: Confi
|
|
|
12766
12752
|
baseOptions = configuration.baseOptions;
|
|
12767
12753
|
}
|
|
12768
12754
|
|
|
12769
|
-
const localVarRequestOptions = { method: '
|
|
12755
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
12770
12756
|
const localVarHeaderParameter = {} as any;
|
|
12771
12757
|
const localVarQueryParameter = {} as any;
|
|
12758
|
+
const localVarFormParams = new URLSearchParams();
|
|
12772
12759
|
|
|
12773
12760
|
|
|
12761
|
+
if (clientId !== undefined) {
|
|
12762
|
+
localVarFormParams.set('client_id', clientId as any);
|
|
12763
|
+
}
|
|
12764
|
+
|
|
12765
|
+
if (clientSecret !== undefined) {
|
|
12766
|
+
localVarFormParams.set('client_secret', clientSecret as any);
|
|
12767
|
+
}
|
|
12768
|
+
|
|
12769
|
+
if (grantType !== undefined) {
|
|
12770
|
+
localVarFormParams.set('grant_type', grantType as any);
|
|
12771
|
+
}
|
|
12772
|
+
|
|
12773
|
+
if (scope !== undefined) {
|
|
12774
|
+
localVarFormParams.set('scope', scope as any);
|
|
12775
|
+
}
|
|
12776
|
+
|
|
12777
|
+
if (redirectUri !== undefined) {
|
|
12778
|
+
localVarFormParams.set('redirect_uri', redirectUri as any);
|
|
12779
|
+
}
|
|
12780
|
+
|
|
12781
|
+
if (code !== undefined) {
|
|
12782
|
+
localVarFormParams.set('code', code as any);
|
|
12783
|
+
}
|
|
12784
|
+
|
|
12785
|
+
if (refreshToken !== undefined) {
|
|
12786
|
+
localVarFormParams.set('refresh_token', refreshToken as any);
|
|
12787
|
+
}
|
|
12788
|
+
|
|
12789
|
+
if (codeVerifier !== undefined) {
|
|
12790
|
+
localVarFormParams.set('code_verifier', codeVerifier as any);
|
|
12791
|
+
}
|
|
12792
|
+
|
|
12793
|
+
if (token !== undefined) {
|
|
12794
|
+
localVarFormParams.set('token', token as any);
|
|
12795
|
+
}
|
|
12796
|
+
|
|
12797
|
+
if (tokenExchangeType !== undefined) {
|
|
12798
|
+
localVarFormParams.set('token_exchange_type', tokenExchangeType as any);
|
|
12799
|
+
}
|
|
12800
|
+
|
|
12801
|
+
if (licenceKey !== undefined) {
|
|
12802
|
+
localVarFormParams.set('licence_key', licenceKey as any);
|
|
12803
|
+
}
|
|
12804
|
+
|
|
12805
|
+
if (endUser !== undefined) {
|
|
12806
|
+
localVarFormParams.set('end_user', endUser as any);
|
|
12807
|
+
}
|
|
12808
|
+
|
|
12809
|
+
|
|
12810
|
+
localVarHeaderParameter['Content-Type'] = 'application/x-www-form-urlencoded';
|
|
12774
12811
|
|
|
12775
12812
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12776
12813
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12777
12814
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
12815
|
+
localVarRequestOptions.data = localVarFormParams.toString();
|
|
12778
12816
|
|
|
12779
12817
|
return {
|
|
12780
12818
|
url: toPathString(localVarUrlObj),
|
|
@@ -12782,15 +12820,26 @@ export const NumberPortingApiAxiosParamCreator = function (configuration?: Confi
|
|
|
12782
12820
|
};
|
|
12783
12821
|
},
|
|
12784
12822
|
/**
|
|
12785
|
-
*
|
|
12786
|
-
* @
|
|
12787
|
-
* @param {
|
|
12788
|
-
* @param {string}
|
|
12823
|
+
* Get an OAuth 2.0 auth code
|
|
12824
|
+
* @summary Get OAuth2.0 Auth Code
|
|
12825
|
+
* @param {string} clientId OAuth 2.0 Client ID
|
|
12826
|
+
* @param {string} responseType OAuth 2.0 Response Type
|
|
12827
|
+
* @param {PostAuthoriseScopeEnum} scope OAuth 2.0 Scope
|
|
12828
|
+
* @param {string} [redirectUri] OAuth 2.0 Redirect URI
|
|
12829
|
+
* @param {string} [state] OAuth 2.0 State
|
|
12830
|
+
* @param {string} [codeChallenge] OAuth 2.0 Code Challenge
|
|
12831
|
+
* @param {string} [codeChallengeMethod] OAuth 2.0 Code Challenge Method
|
|
12789
12832
|
* @param {*} [options] Override http request option.
|
|
12790
12833
|
* @throws {RequiredError}
|
|
12791
12834
|
*/
|
|
12792
|
-
|
|
12793
|
-
|
|
12835
|
+
postAuthorise: async (clientId: string, responseType: string, scope: PostAuthoriseScopeEnum, redirectUri?: string, state?: string, codeChallenge?: string, codeChallengeMethod?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
12836
|
+
// verify required parameter 'clientId' is not null or undefined
|
|
12837
|
+
assertParamExists('postAuthorise', 'clientId', clientId)
|
|
12838
|
+
// verify required parameter 'responseType' is not null or undefined
|
|
12839
|
+
assertParamExists('postAuthorise', 'responseType', responseType)
|
|
12840
|
+
// verify required parameter 'scope' is not null or undefined
|
|
12841
|
+
assertParamExists('postAuthorise', 'scope', scope)
|
|
12842
|
+
const localVarPath = `/oauth2/authorise`;
|
|
12794
12843
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12795
12844
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12796
12845
|
let baseOptions;
|
|
@@ -12798,250 +12847,43 @@ export const NumberPortingApiAxiosParamCreator = function (configuration?: Confi
|
|
|
12798
12847
|
baseOptions = configuration.baseOptions;
|
|
12799
12848
|
}
|
|
12800
12849
|
|
|
12801
|
-
const localVarRequestOptions = { method: '
|
|
12850
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
12802
12851
|
const localVarHeaderParameter = {} as any;
|
|
12803
12852
|
const localVarQueryParameter = {} as any;
|
|
12804
12853
|
|
|
12805
|
-
if (
|
|
12806
|
-
localVarQueryParameter['
|
|
12807
|
-
}
|
|
12808
|
-
|
|
12809
|
-
if (page !== undefined) {
|
|
12810
|
-
localVarQueryParameter['page'] = page;
|
|
12854
|
+
if (clientId !== undefined) {
|
|
12855
|
+
localVarQueryParameter['client_id'] = clientId;
|
|
12811
12856
|
}
|
|
12812
12857
|
|
|
12813
|
-
if (
|
|
12814
|
-
localVarQueryParameter['
|
|
12858
|
+
if (responseType !== undefined) {
|
|
12859
|
+
localVarQueryParameter['response_type'] = responseType;
|
|
12815
12860
|
}
|
|
12816
12861
|
|
|
12817
|
-
|
|
12818
|
-
|
|
12819
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12820
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12821
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
12822
|
-
|
|
12823
|
-
return {
|
|
12824
|
-
url: toPathString(localVarUrlObj),
|
|
12825
|
-
options: localVarRequestOptions,
|
|
12826
|
-
};
|
|
12827
|
-
},
|
|
12828
|
-
/**
|
|
12829
|
-
*
|
|
12830
|
-
* @param {number} id Number Port ID
|
|
12831
|
-
* @param {*} [options] Override http request option.
|
|
12832
|
-
* @throws {RequiredError}
|
|
12833
|
-
*/
|
|
12834
|
-
getUpdateNumberPort: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
12835
|
-
// verify required parameter 'id' is not null or undefined
|
|
12836
|
-
assertParamExists('getUpdateNumberPort', 'id', id)
|
|
12837
|
-
const localVarPath = `/sip/numbers/ports/{id}`
|
|
12838
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
12839
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12840
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12841
|
-
let baseOptions;
|
|
12842
|
-
if (configuration) {
|
|
12843
|
-
baseOptions = configuration.baseOptions;
|
|
12862
|
+
if (redirectUri !== undefined) {
|
|
12863
|
+
localVarQueryParameter['redirect_uri'] = redirectUri;
|
|
12844
12864
|
}
|
|
12845
12865
|
|
|
12846
|
-
|
|
12847
|
-
|
|
12848
|
-
const localVarQueryParameter = {} as any;
|
|
12849
|
-
|
|
12850
|
-
|
|
12851
|
-
|
|
12852
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12853
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12854
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
12855
|
-
|
|
12856
|
-
return {
|
|
12857
|
-
url: toPathString(localVarUrlObj),
|
|
12858
|
-
options: localVarRequestOptions,
|
|
12859
|
-
};
|
|
12860
|
-
},
|
|
12861
|
-
/**
|
|
12862
|
-
*
|
|
12863
|
-
* @param {string | null} [companyName] Company Name
|
|
12864
|
-
* @param {string | null} [addressLine1] Address Line 1
|
|
12865
|
-
* @param {string | null} [addressLine2] Address Line 2
|
|
12866
|
-
* @param {string | null} [city] City
|
|
12867
|
-
* @param {string | null} [postCode] Post Code
|
|
12868
|
-
* @param {number | null} [trunkId] Trunk ID
|
|
12869
|
-
* @param {string | null} [tenantId] Starter Bundle ID
|
|
12870
|
-
* @param {string | null} [requestedPortDate] Requested Port Date
|
|
12871
|
-
* @param {boolean | null} [asap] Port Date ASAP
|
|
12872
|
-
* @param {string | null} [comment] Comment
|
|
12873
|
-
* @param {Array<NumberPortRangeRequestDTO>} [numberRanges] Number Ranges
|
|
12874
|
-
* @param {File} [cloa] CLOA (only provide on submission)
|
|
12875
|
-
* @param {*} [options] Override http request option.
|
|
12876
|
-
* @throws {RequiredError}
|
|
12877
|
-
*/
|
|
12878
|
-
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> => {
|
|
12879
|
-
const localVarPath = `/sip/numbers/ports`;
|
|
12880
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12881
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12882
|
-
let baseOptions;
|
|
12883
|
-
if (configuration) {
|
|
12884
|
-
baseOptions = configuration.baseOptions;
|
|
12866
|
+
if (scope !== undefined) {
|
|
12867
|
+
localVarQueryParameter['scope'] = scope;
|
|
12885
12868
|
}
|
|
12886
12869
|
|
|
12887
|
-
|
|
12888
|
-
|
|
12889
|
-
const localVarQueryParameter = {} as any;
|
|
12890
|
-
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
12891
|
-
|
|
12892
|
-
|
|
12893
|
-
if (companyName !== undefined) {
|
|
12894
|
-
localVarFormParams.append('companyName', companyName as any);
|
|
12895
|
-
}
|
|
12896
|
-
|
|
12897
|
-
if (addressLine1 !== undefined) {
|
|
12898
|
-
localVarFormParams.append('addressLine1', addressLine1 as any);
|
|
12899
|
-
}
|
|
12900
|
-
|
|
12901
|
-
if (addressLine2 !== undefined) {
|
|
12902
|
-
localVarFormParams.append('addressLine2', addressLine2 as any);
|
|
12903
|
-
}
|
|
12904
|
-
|
|
12905
|
-
if (city !== undefined) {
|
|
12906
|
-
localVarFormParams.append('city', city as any);
|
|
12907
|
-
}
|
|
12908
|
-
|
|
12909
|
-
if (postCode !== undefined) {
|
|
12910
|
-
localVarFormParams.append('postCode', postCode as any);
|
|
12911
|
-
}
|
|
12912
|
-
|
|
12913
|
-
if (trunkId !== undefined) {
|
|
12914
|
-
localVarFormParams.append('trunkId', trunkId as any);
|
|
12915
|
-
}
|
|
12916
|
-
|
|
12917
|
-
if (tenantId !== undefined) {
|
|
12918
|
-
localVarFormParams.append('tenantId', tenantId as any);
|
|
12919
|
-
}
|
|
12920
|
-
|
|
12921
|
-
if (requestedPortDate !== undefined) {
|
|
12922
|
-
localVarFormParams.append('requestedPortDate', requestedPortDate as any);
|
|
12923
|
-
}
|
|
12924
|
-
|
|
12925
|
-
if (asap !== undefined) {
|
|
12926
|
-
localVarFormParams.append('asap', String(asap) as any);
|
|
12927
|
-
}
|
|
12928
|
-
|
|
12929
|
-
if (comment !== undefined) {
|
|
12930
|
-
localVarFormParams.append('comment', comment as any);
|
|
12931
|
-
}
|
|
12932
|
-
if (numberRanges) {
|
|
12933
|
-
localVarFormParams.append('numberRanges', numberRanges.join(COLLECTION_FORMATS.csv));
|
|
12870
|
+
if (state !== undefined) {
|
|
12871
|
+
localVarQueryParameter['state'] = state;
|
|
12934
12872
|
}
|
|
12935
12873
|
|
|
12936
|
-
|
|
12937
|
-
|
|
12938
|
-
localVarFormParams.append('cloa', cloa as any);
|
|
12874
|
+
if (codeChallenge !== undefined) {
|
|
12875
|
+
localVarQueryParameter['code_challenge'] = codeChallenge;
|
|
12939
12876
|
}
|
|
12940
|
-
|
|
12941
|
-
|
|
12942
|
-
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
|
|
12943
|
-
|
|
12944
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12945
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12946
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
12947
|
-
localVarRequestOptions.data = localVarFormParams;
|
|
12948
12877
|
|
|
12949
|
-
|
|
12950
|
-
|
|
12951
|
-
options: localVarRequestOptions,
|
|
12952
|
-
};
|
|
12953
|
-
},
|
|
12954
|
-
/**
|
|
12955
|
-
*
|
|
12956
|
-
* @param {number} id Number Port ID
|
|
12957
|
-
* @param {string | null} [companyName] Company Name
|
|
12958
|
-
* @param {string | null} [addressLine1] Address Line 1
|
|
12959
|
-
* @param {string | null} [addressLine2] Address Line 2
|
|
12960
|
-
* @param {string | null} [city] City
|
|
12961
|
-
* @param {string | null} [postCode] Post Code
|
|
12962
|
-
* @param {number | null} [trunkId] Trunk ID
|
|
12963
|
-
* @param {string | null} [tenantId] Starter Bundle ID
|
|
12964
|
-
* @param {string | null} [requestedPortDate] Requested Port Date
|
|
12965
|
-
* @param {boolean | null} [asap] Port Date ASAP
|
|
12966
|
-
* @param {string | null} [comment] Comment
|
|
12967
|
-
* @param {Array<NumberPortRangeRequestDTO>} [numberRanges] Number Ranges
|
|
12968
|
-
* @param {File} [cloa] CLOA (only provide on submission)
|
|
12969
|
-
* @param {*} [options] Override http request option.
|
|
12970
|
-
* @throws {RequiredError}
|
|
12971
|
-
*/
|
|
12972
|
-
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> => {
|
|
12973
|
-
// verify required parameter 'id' is not null or undefined
|
|
12974
|
-
assertParamExists('postSubmitNumberPort', 'id', id)
|
|
12975
|
-
const localVarPath = `/sip/numbers/ports/{id}/submit`
|
|
12976
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
12977
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12978
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12979
|
-
let baseOptions;
|
|
12980
|
-
if (configuration) {
|
|
12981
|
-
baseOptions = configuration.baseOptions;
|
|
12878
|
+
if (codeChallengeMethod !== undefined) {
|
|
12879
|
+
localVarQueryParameter['code_challenge_method'] = codeChallengeMethod;
|
|
12982
12880
|
}
|
|
12983
12881
|
|
|
12984
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
12985
|
-
const localVarHeaderParameter = {} as any;
|
|
12986
|
-
const localVarQueryParameter = {} as any;
|
|
12987
|
-
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
12988
|
-
|
|
12989
|
-
|
|
12990
|
-
if (companyName !== undefined) {
|
|
12991
|
-
localVarFormParams.append('companyName', companyName as any);
|
|
12992
|
-
}
|
|
12993
|
-
|
|
12994
|
-
if (addressLine1 !== undefined) {
|
|
12995
|
-
localVarFormParams.append('addressLine1', addressLine1 as any);
|
|
12996
|
-
}
|
|
12997
|
-
|
|
12998
|
-
if (addressLine2 !== undefined) {
|
|
12999
|
-
localVarFormParams.append('addressLine2', addressLine2 as any);
|
|
13000
|
-
}
|
|
13001
|
-
|
|
13002
|
-
if (city !== undefined) {
|
|
13003
|
-
localVarFormParams.append('city', city as any);
|
|
13004
|
-
}
|
|
13005
|
-
|
|
13006
|
-
if (postCode !== undefined) {
|
|
13007
|
-
localVarFormParams.append('postCode', postCode as any);
|
|
13008
|
-
}
|
|
13009
|
-
|
|
13010
|
-
if (trunkId !== undefined) {
|
|
13011
|
-
localVarFormParams.append('trunkId', trunkId as any);
|
|
13012
|
-
}
|
|
13013
|
-
|
|
13014
|
-
if (tenantId !== undefined) {
|
|
13015
|
-
localVarFormParams.append('tenantId', tenantId as any);
|
|
13016
|
-
}
|
|
13017
|
-
|
|
13018
|
-
if (requestedPortDate !== undefined) {
|
|
13019
|
-
localVarFormParams.append('requestedPortDate', requestedPortDate as any);
|
|
13020
|
-
}
|
|
13021
|
-
|
|
13022
|
-
if (asap !== undefined) {
|
|
13023
|
-
localVarFormParams.append('asap', String(asap) as any);
|
|
13024
|
-
}
|
|
13025
|
-
|
|
13026
|
-
if (comment !== undefined) {
|
|
13027
|
-
localVarFormParams.append('comment', comment as any);
|
|
13028
|
-
}
|
|
13029
|
-
if (numberRanges) {
|
|
13030
|
-
localVarFormParams.append('numberRanges', numberRanges.join(COLLECTION_FORMATS.csv));
|
|
13031
|
-
}
|
|
13032
12882
|
|
|
13033
12883
|
|
|
13034
|
-
if (cloa !== undefined) {
|
|
13035
|
-
localVarFormParams.append('cloa', cloa as any);
|
|
13036
|
-
}
|
|
13037
|
-
|
|
13038
|
-
|
|
13039
|
-
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
|
|
13040
|
-
|
|
13041
12884
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13042
12885
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13043
12886
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
13044
|
-
localVarRequestOptions.data = localVarFormParams;
|
|
13045
12887
|
|
|
13046
12888
|
return {
|
|
13047
12889
|
url: toPathString(localVarUrlObj),
|
|
@@ -13049,28 +12891,13 @@ export const NumberPortingApiAxiosParamCreator = function (configuration?: Confi
|
|
|
13049
12891
|
};
|
|
13050
12892
|
},
|
|
13051
12893
|
/**
|
|
13052
|
-
*
|
|
13053
|
-
* @
|
|
13054
|
-
* @param {
|
|
13055
|
-
* @
|
|
13056
|
-
|
|
13057
|
-
|
|
13058
|
-
|
|
13059
|
-
* @param {number | null} [trunkId] Trunk ID
|
|
13060
|
-
* @param {string | null} [tenantId] Starter Bundle ID
|
|
13061
|
-
* @param {string | null} [requestedPortDate] Requested Port Date
|
|
13062
|
-
* @param {boolean | null} [asap] Port Date ASAP
|
|
13063
|
-
* @param {string | null} [comment] Comment
|
|
13064
|
-
* @param {Array<NumberPortRangeRequestDTO>} [numberRanges] Number Ranges
|
|
13065
|
-
* @param {File} [cloa] CLOA (only provide on submission)
|
|
13066
|
-
* @param {*} [options] Override http request option.
|
|
13067
|
-
* @throws {RequiredError}
|
|
13068
|
-
*/
|
|
13069
|
-
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> => {
|
|
13070
|
-
// verify required parameter 'id' is not null or undefined
|
|
13071
|
-
assertParamExists('postUpdateNumberPort', 'id', id)
|
|
13072
|
-
const localVarPath = `/sip/numbers/ports/{id}`
|
|
13073
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
12894
|
+
* Get Token Identity
|
|
12895
|
+
* @summary Get Token Identity
|
|
12896
|
+
* @param {*} [options] Override http request option.
|
|
12897
|
+
* @throws {RequiredError}
|
|
12898
|
+
*/
|
|
12899
|
+
postGetIdentity: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
12900
|
+
const localVarPath = `/oauth2/me`;
|
|
13074
12901
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13075
12902
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13076
12903
|
let baseOptions;
|
|
@@ -13081,64 +12908,12 @@ export const NumberPortingApiAxiosParamCreator = function (configuration?: Confi
|
|
|
13081
12908
|
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
13082
12909
|
const localVarHeaderParameter = {} as any;
|
|
13083
12910
|
const localVarQueryParameter = {} as any;
|
|
13084
|
-
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
13085
12911
|
|
|
13086
12912
|
|
|
13087
|
-
if (companyName !== undefined) {
|
|
13088
|
-
localVarFormParams.append('companyName', companyName as any);
|
|
13089
|
-
}
|
|
13090
|
-
|
|
13091
|
-
if (addressLine1 !== undefined) {
|
|
13092
|
-
localVarFormParams.append('addressLine1', addressLine1 as any);
|
|
13093
|
-
}
|
|
13094
|
-
|
|
13095
|
-
if (addressLine2 !== undefined) {
|
|
13096
|
-
localVarFormParams.append('addressLine2', addressLine2 as any);
|
|
13097
|
-
}
|
|
13098
|
-
|
|
13099
|
-
if (city !== undefined) {
|
|
13100
|
-
localVarFormParams.append('city', city as any);
|
|
13101
|
-
}
|
|
13102
|
-
|
|
13103
|
-
if (postCode !== undefined) {
|
|
13104
|
-
localVarFormParams.append('postCode', postCode as any);
|
|
13105
|
-
}
|
|
13106
|
-
|
|
13107
|
-
if (trunkId !== undefined) {
|
|
13108
|
-
localVarFormParams.append('trunkId', trunkId as any);
|
|
13109
|
-
}
|
|
13110
|
-
|
|
13111
|
-
if (tenantId !== undefined) {
|
|
13112
|
-
localVarFormParams.append('tenantId', tenantId as any);
|
|
13113
|
-
}
|
|
13114
|
-
|
|
13115
|
-
if (requestedPortDate !== undefined) {
|
|
13116
|
-
localVarFormParams.append('requestedPortDate', requestedPortDate as any);
|
|
13117
|
-
}
|
|
13118
|
-
|
|
13119
|
-
if (asap !== undefined) {
|
|
13120
|
-
localVarFormParams.append('asap', String(asap) as any);
|
|
13121
|
-
}
|
|
13122
|
-
|
|
13123
|
-
if (comment !== undefined) {
|
|
13124
|
-
localVarFormParams.append('comment', comment as any);
|
|
13125
|
-
}
|
|
13126
|
-
if (numberRanges) {
|
|
13127
|
-
localVarFormParams.append('numberRanges', numberRanges.join(COLLECTION_FORMATS.csv));
|
|
13128
|
-
}
|
|
13129
|
-
|
|
13130
|
-
|
|
13131
|
-
if (cloa !== undefined) {
|
|
13132
|
-
localVarFormParams.append('cloa', cloa as any);
|
|
13133
|
-
}
|
|
13134
|
-
|
|
13135
|
-
|
|
13136
|
-
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
|
|
13137
12913
|
|
|
13138
12914
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13139
12915
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13140
12916
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
13141
|
-
localVarRequestOptions.data = localVarFormParams;
|
|
13142
12917
|
|
|
13143
12918
|
return {
|
|
13144
12919
|
url: toPathString(localVarUrlObj),
|
|
@@ -13146,32 +12921,14 @@ export const NumberPortingApiAxiosParamCreator = function (configuration?: Confi
|
|
|
13146
12921
|
};
|
|
13147
12922
|
},
|
|
13148
12923
|
/**
|
|
13149
|
-
*
|
|
13150
|
-
* @
|
|
13151
|
-
* @param {
|
|
13152
|
-
* @param {
|
|
13153
|
-
* @
|
|
13154
|
-
|
|
13155
|
-
|
|
13156
|
-
|
|
13157
|
-
* @param {string | null} [tenantId] Starter Bundle ID
|
|
13158
|
-
* @param {string | null} [requestedPortDate] Requested Port Date
|
|
13159
|
-
* @param {boolean | null} [asap] Port Date ASAP
|
|
13160
|
-
* @param {string | null} [comment] Comment
|
|
13161
|
-
* @param {number} [id2] Number Port ID
|
|
13162
|
-
* @param {string} [customerName] Customer Name
|
|
13163
|
-
* @param {string} [portDate] Porting Date
|
|
13164
|
-
* @param {Array<NumberPortRangeDTO>} [numberRanges] Number Ranges
|
|
13165
|
-
* @param {number} [status] Status
|
|
13166
|
-
* @param {number | null} [ticketId] Ticket ID
|
|
13167
|
-
* @param {*} [options] Override http request option.
|
|
13168
|
-
* @throws {RequiredError}
|
|
13169
|
-
*/
|
|
13170
|
-
putGetAdminNumberPort: 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, id2?: number, customerName?: string, portDate?: string, numberRanges?: Array<NumberPortRangeDTO>, status?: number, ticketId?: number | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13171
|
-
// verify required parameter 'id' is not null or undefined
|
|
13172
|
-
assertParamExists('putGetAdminNumberPort', 'id', id)
|
|
13173
|
-
const localVarPath = `/admin/sip/numbers/ports/{id}`
|
|
13174
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
12924
|
+
* Portal Login
|
|
12925
|
+
* @summary Portal Login
|
|
12926
|
+
* @param {PortalLoginModel} [portalLoginModel] Login Credentials
|
|
12927
|
+
* @param {*} [options] Override http request option.
|
|
12928
|
+
* @throws {RequiredError}
|
|
12929
|
+
*/
|
|
12930
|
+
postPortalLogin: async (portalLoginModel?: PortalLoginModel, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
12931
|
+
const localVarPath = `/oauth2/portal/login`;
|
|
13175
12932
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13176
12933
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13177
12934
|
let baseOptions;
|
|
@@ -13179,83 +12936,18 @@ export const NumberPortingApiAxiosParamCreator = function (configuration?: Confi
|
|
|
13179
12936
|
baseOptions = configuration.baseOptions;
|
|
13180
12937
|
}
|
|
13181
12938
|
|
|
13182
|
-
const localVarRequestOptions = { method: '
|
|
12939
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
13183
12940
|
const localVarHeaderParameter = {} as any;
|
|
13184
12941
|
const localVarQueryParameter = {} as any;
|
|
13185
|
-
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
13186
12942
|
|
|
13187
12943
|
|
|
13188
|
-
if (companyName !== undefined) {
|
|
13189
|
-
localVarFormParams.append('companyName', companyName as any);
|
|
13190
|
-
}
|
|
13191
|
-
|
|
13192
|
-
if (addressLine1 !== undefined) {
|
|
13193
|
-
localVarFormParams.append('addressLine1', addressLine1 as any);
|
|
13194
|
-
}
|
|
13195
|
-
|
|
13196
|
-
if (addressLine2 !== undefined) {
|
|
13197
|
-
localVarFormParams.append('addressLine2', addressLine2 as any);
|
|
13198
|
-
}
|
|
13199
|
-
|
|
13200
|
-
if (city !== undefined) {
|
|
13201
|
-
localVarFormParams.append('city', city as any);
|
|
13202
|
-
}
|
|
13203
|
-
|
|
13204
|
-
if (postCode !== undefined) {
|
|
13205
|
-
localVarFormParams.append('postCode', postCode as any);
|
|
13206
|
-
}
|
|
13207
|
-
|
|
13208
|
-
if (trunkId !== undefined) {
|
|
13209
|
-
localVarFormParams.append('trunkId', trunkId as any);
|
|
13210
|
-
}
|
|
13211
12944
|
|
|
13212
|
-
|
|
13213
|
-
localVarFormParams.append('tenantId', tenantId as any);
|
|
13214
|
-
}
|
|
13215
|
-
|
|
13216
|
-
if (requestedPortDate !== undefined) {
|
|
13217
|
-
localVarFormParams.append('requestedPortDate', requestedPortDate as any);
|
|
13218
|
-
}
|
|
13219
|
-
|
|
13220
|
-
if (asap !== undefined) {
|
|
13221
|
-
localVarFormParams.append('asap', String(asap) as any);
|
|
13222
|
-
}
|
|
13223
|
-
|
|
13224
|
-
if (comment !== undefined) {
|
|
13225
|
-
localVarFormParams.append('comment', comment as any);
|
|
13226
|
-
}
|
|
13227
|
-
|
|
13228
|
-
if (id2 !== undefined) {
|
|
13229
|
-
localVarFormParams.append('id', id2 as any);
|
|
13230
|
-
}
|
|
13231
|
-
|
|
13232
|
-
if (customerName !== undefined) {
|
|
13233
|
-
localVarFormParams.append('customerName', customerName as any);
|
|
13234
|
-
}
|
|
13235
|
-
|
|
13236
|
-
if (portDate !== undefined) {
|
|
13237
|
-
localVarFormParams.append('portDate', portDate as any);
|
|
13238
|
-
}
|
|
13239
|
-
if (numberRanges) {
|
|
13240
|
-
localVarFormParams.append('numberRanges', numberRanges.join(COLLECTION_FORMATS.csv));
|
|
13241
|
-
}
|
|
12945
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13242
12946
|
|
|
13243
|
-
|
|
13244
|
-
if (status !== undefined) {
|
|
13245
|
-
localVarFormParams.append('status', status as any);
|
|
13246
|
-
}
|
|
13247
|
-
|
|
13248
|
-
if (ticketId !== undefined) {
|
|
13249
|
-
localVarFormParams.append('ticketId', ticketId as any);
|
|
13250
|
-
}
|
|
13251
|
-
|
|
13252
|
-
|
|
13253
|
-
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
|
|
13254
|
-
|
|
13255
12947
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13256
12948
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13257
12949
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
13258
|
-
localVarRequestOptions.data =
|
|
12950
|
+
localVarRequestOptions.data = serializeDataIfNeeded(portalLoginModel, localVarRequestOptions, configuration)
|
|
13259
12951
|
|
|
13260
12952
|
return {
|
|
13261
12953
|
url: toPathString(localVarUrlObj),
|
|
@@ -13266,517 +12958,362 @@ export const NumberPortingApiAxiosParamCreator = function (configuration?: Confi
|
|
|
13266
12958
|
};
|
|
13267
12959
|
|
|
13268
12960
|
/**
|
|
13269
|
-
*
|
|
12961
|
+
* OAuth20Api - functional programming interface
|
|
13270
12962
|
*/
|
|
13271
|
-
export const
|
|
13272
|
-
const localVarAxiosParamCreator =
|
|
12963
|
+
export const OAuth20ApiFp = function(configuration?: Configuration) {
|
|
12964
|
+
const localVarAxiosParamCreator = OAuth20ApiAxiosParamCreator(configuration)
|
|
13273
12965
|
return {
|
|
13274
12966
|
/**
|
|
13275
|
-
*
|
|
13276
|
-
* @
|
|
12967
|
+
* Get MFA QR Code
|
|
12968
|
+
* @summary Get MFA QR Code
|
|
13277
12969
|
* @param {*} [options] Override http request option.
|
|
13278
12970
|
* @throws {RequiredError}
|
|
13279
12971
|
*/
|
|
13280
|
-
async
|
|
13281
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
12972
|
+
async getGetMfaQrCode(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
|
|
12973
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetMfaQrCode(options);
|
|
13282
12974
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
13283
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
12975
|
+
const localVarOperationServerBasePath = operationServerMap['OAuth20Api.getGetMfaQrCode']?.[localVarOperationServerIndex]?.url;
|
|
13284
12976
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13285
12977
|
},
|
|
13286
12978
|
/**
|
|
13287
|
-
*
|
|
13288
|
-
* @
|
|
13289
|
-
* @param {number} [page] Page Number
|
|
13290
|
-
* @param {string} [search] Search
|
|
12979
|
+
* Get Scopes
|
|
12980
|
+
* @summary Get Scopes
|
|
13291
12981
|
* @param {*} [options] Override http request option.
|
|
13292
12982
|
* @throws {RequiredError}
|
|
13293
12983
|
*/
|
|
13294
|
-
async
|
|
13295
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
12984
|
+
async getGetScopes(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ScopeModel>>> {
|
|
12985
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetScopes(options);
|
|
13296
12986
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
13297
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
12987
|
+
const localVarOperationServerBasePath = operationServerMap['OAuth20Api.getGetScopes']?.[localVarOperationServerIndex]?.url;
|
|
13298
12988
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13299
12989
|
},
|
|
13300
12990
|
/**
|
|
13301
|
-
*
|
|
13302
|
-
* @
|
|
13303
|
-
* @param {
|
|
13304
|
-
* @
|
|
13305
|
-
|
|
13306
|
-
|
|
13307
|
-
|
|
13308
|
-
|
|
13309
|
-
|
|
13310
|
-
|
|
13311
|
-
|
|
13312
|
-
|
|
13313
|
-
*
|
|
13314
|
-
* @param {
|
|
13315
|
-
* @param {number} [page] Page Number
|
|
13316
|
-
* @param {string} [search] Search
|
|
12991
|
+
* Get an OAuth 2.0 access token
|
|
12992
|
+
* @summary Validates client credentials and returns access token
|
|
12993
|
+
* @param {string | null} [clientId] OAuth 2.0 Client ID
|
|
12994
|
+
* @param {string | null} [clientSecret] OAuth 2.0 Client Secret
|
|
12995
|
+
* @param {PostAccessTokenGrantTypeEnum} [grantType] OAuth 2.0 Grant Type
|
|
12996
|
+
* @param {PostAccessTokenScopeEnum} [scope] OAuth 2.0 Scope
|
|
12997
|
+
* @param {string | null} [redirectUri] OAuth 2.0 Redirect URI
|
|
12998
|
+
* @param {string | null} [code] OAuth 2.0 Auth Code
|
|
12999
|
+
* @param {string | null} [refreshToken] OAuth 2.0 Refresh Token
|
|
13000
|
+
* @param {string | null} [codeVerifier] OAuth 2.0 Code Verifier
|
|
13001
|
+
* @param {string | null} [token] OAuth 2.0 Token (Only used in Token Exchange)
|
|
13002
|
+
* @param {PostAccessTokenTokenExchangeTypeEnum} [tokenExchangeType] Token Exchange Type (Only used in Token Exchange)
|
|
13003
|
+
* @param {string | null} [licenceKey] 3CX Licence Key (Only used in Token Exchange)
|
|
13004
|
+
* @param {boolean | null} [endUser] End User (Only used in Token Exchange)
|
|
13317
13005
|
* @param {*} [options] Override http request option.
|
|
13318
13006
|
* @throws {RequiredError}
|
|
13319
13007
|
*/
|
|
13320
|
-
async
|
|
13321
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
13008
|
+
async postAccessToken(clientId?: string | null, clientSecret?: string | null, grantType?: PostAccessTokenGrantTypeEnum, scope?: PostAccessTokenScopeEnum, redirectUri?: string | null, code?: string | null, refreshToken?: string | null, codeVerifier?: string | null, token?: string | null, tokenExchangeType?: PostAccessTokenTokenExchangeTypeEnum, licenceKey?: string | null, endUser?: boolean | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TokenResponseModel>> {
|
|
13009
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postAccessToken(clientId, clientSecret, grantType, scope, redirectUri, code, refreshToken, codeVerifier, token, tokenExchangeType, licenceKey, endUser, options);
|
|
13322
13010
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
13323
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
13011
|
+
const localVarOperationServerBasePath = operationServerMap['OAuth20Api.postAccessToken']?.[localVarOperationServerIndex]?.url;
|
|
13324
13012
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13325
13013
|
},
|
|
13326
13014
|
/**
|
|
13327
|
-
*
|
|
13328
|
-
* @
|
|
13015
|
+
* Get an OAuth 2.0 auth code
|
|
13016
|
+
* @summary Get OAuth2.0 Auth Code
|
|
13017
|
+
* @param {string} clientId OAuth 2.0 Client ID
|
|
13018
|
+
* @param {string} responseType OAuth 2.0 Response Type
|
|
13019
|
+
* @param {PostAuthoriseScopeEnum} scope OAuth 2.0 Scope
|
|
13020
|
+
* @param {string} [redirectUri] OAuth 2.0 Redirect URI
|
|
13021
|
+
* @param {string} [state] OAuth 2.0 State
|
|
13022
|
+
* @param {string} [codeChallenge] OAuth 2.0 Code Challenge
|
|
13023
|
+
* @param {string} [codeChallengeMethod] OAuth 2.0 Code Challenge Method
|
|
13329
13024
|
* @param {*} [options] Override http request option.
|
|
13330
13025
|
* @throws {RequiredError}
|
|
13331
13026
|
*/
|
|
13332
|
-
async
|
|
13333
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
13334
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
13335
|
-
const localVarOperationServerBasePath = operationServerMap['NumberPortingApi.getUpdateNumberPort']?.[localVarOperationServerIndex]?.url;
|
|
13336
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13337
|
-
},
|
|
13338
|
-
/**
|
|
13339
|
-
*
|
|
13340
|
-
* @param {string | null} [companyName] Company Name
|
|
13341
|
-
* @param {string | null} [addressLine1] Address Line 1
|
|
13342
|
-
* @param {string | null} [addressLine2] Address Line 2
|
|
13343
|
-
* @param {string | null} [city] City
|
|
13344
|
-
* @param {string | null} [postCode] Post Code
|
|
13345
|
-
* @param {number | null} [trunkId] Trunk ID
|
|
13346
|
-
* @param {string | null} [tenantId] Starter Bundle ID
|
|
13347
|
-
* @param {string | null} [requestedPortDate] Requested Port Date
|
|
13348
|
-
* @param {boolean | null} [asap] Port Date ASAP
|
|
13349
|
-
* @param {string | null} [comment] Comment
|
|
13350
|
-
* @param {Array<NumberPortRangeRequestDTO>} [numberRanges] Number Ranges
|
|
13351
|
-
* @param {File} [cloa] CLOA (only provide on submission)
|
|
13352
|
-
* @param {*} [options] Override http request option.
|
|
13353
|
-
* @throws {RequiredError}
|
|
13354
|
-
*/
|
|
13355
|
-
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>> {
|
|
13356
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.postCreateNumberPort(companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, numberRanges, cloa, options);
|
|
13357
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
13358
|
-
const localVarOperationServerBasePath = operationServerMap['NumberPortingApi.postCreateNumberPort']?.[localVarOperationServerIndex]?.url;
|
|
13359
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13360
|
-
},
|
|
13361
|
-
/**
|
|
13362
|
-
*
|
|
13363
|
-
* @param {number} id Number Port ID
|
|
13364
|
-
* @param {string | null} [companyName] Company Name
|
|
13365
|
-
* @param {string | null} [addressLine1] Address Line 1
|
|
13366
|
-
* @param {string | null} [addressLine2] Address Line 2
|
|
13367
|
-
* @param {string | null} [city] City
|
|
13368
|
-
* @param {string | null} [postCode] Post Code
|
|
13369
|
-
* @param {number | null} [trunkId] Trunk ID
|
|
13370
|
-
* @param {string | null} [tenantId] Starter Bundle ID
|
|
13371
|
-
* @param {string | null} [requestedPortDate] Requested Port Date
|
|
13372
|
-
* @param {boolean | null} [asap] Port Date ASAP
|
|
13373
|
-
* @param {string | null} [comment] Comment
|
|
13374
|
-
* @param {Array<NumberPortRangeRequestDTO>} [numberRanges] Number Ranges
|
|
13375
|
-
* @param {File} [cloa] CLOA (only provide on submission)
|
|
13376
|
-
* @param {*} [options] Override http request option.
|
|
13377
|
-
* @throws {RequiredError}
|
|
13378
|
-
*/
|
|
13379
|
-
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>> {
|
|
13380
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.postSubmitNumberPort(id, companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, numberRanges, cloa, options);
|
|
13027
|
+
async postAuthorise(clientId: string, responseType: string, scope: PostAuthoriseScopeEnum, redirectUri?: string, state?: string, codeChallenge?: string, codeChallengeMethod?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
13028
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postAuthorise(clientId, responseType, scope, redirectUri, state, codeChallenge, codeChallengeMethod, options);
|
|
13381
13029
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
13382
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
13030
|
+
const localVarOperationServerBasePath = operationServerMap['OAuth20Api.postAuthorise']?.[localVarOperationServerIndex]?.url;
|
|
13383
13031
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13384
13032
|
},
|
|
13385
13033
|
/**
|
|
13386
|
-
*
|
|
13387
|
-
* @
|
|
13388
|
-
* @param {
|
|
13389
|
-
* @
|
|
13390
|
-
|
|
13391
|
-
|
|
13392
|
-
|
|
13393
|
-
* @param {number | null} [trunkId] Trunk ID
|
|
13394
|
-
* @param {string | null} [tenantId] Starter Bundle ID
|
|
13395
|
-
* @param {string | null} [requestedPortDate] Requested Port Date
|
|
13396
|
-
* @param {boolean | null} [asap] Port Date ASAP
|
|
13397
|
-
* @param {string | null} [comment] Comment
|
|
13398
|
-
* @param {Array<NumberPortRangeRequestDTO>} [numberRanges] Number Ranges
|
|
13399
|
-
* @param {File} [cloa] CLOA (only provide on submission)
|
|
13400
|
-
* @param {*} [options] Override http request option.
|
|
13401
|
-
* @throws {RequiredError}
|
|
13402
|
-
*/
|
|
13403
|
-
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>> {
|
|
13404
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.postUpdateNumberPort(id, companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, numberRanges, cloa, options);
|
|
13034
|
+
* Get Token Identity
|
|
13035
|
+
* @summary Get Token Identity
|
|
13036
|
+
* @param {*} [options] Override http request option.
|
|
13037
|
+
* @throws {RequiredError}
|
|
13038
|
+
*/
|
|
13039
|
+
async postGetIdentity(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientDetailsModel>> {
|
|
13040
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postGetIdentity(options);
|
|
13405
13041
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
13406
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
13042
|
+
const localVarOperationServerBasePath = operationServerMap['OAuth20Api.postGetIdentity']?.[localVarOperationServerIndex]?.url;
|
|
13407
13043
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13408
13044
|
},
|
|
13409
13045
|
/**
|
|
13410
|
-
*
|
|
13411
|
-
* @
|
|
13412
|
-
* @param {
|
|
13413
|
-
* @param {
|
|
13414
|
-
* @
|
|
13415
|
-
|
|
13416
|
-
|
|
13417
|
-
|
|
13418
|
-
* @param {string | null} [tenantId] Starter Bundle ID
|
|
13419
|
-
* @param {string | null} [requestedPortDate] Requested Port Date
|
|
13420
|
-
* @param {boolean | null} [asap] Port Date ASAP
|
|
13421
|
-
* @param {string | null} [comment] Comment
|
|
13422
|
-
* @param {number} [id2] Number Port ID
|
|
13423
|
-
* @param {string} [customerName] Customer Name
|
|
13424
|
-
* @param {string} [portDate] Porting Date
|
|
13425
|
-
* @param {Array<NumberPortRangeDTO>} [numberRanges] Number Ranges
|
|
13426
|
-
* @param {number} [status] Status
|
|
13427
|
-
* @param {number | null} [ticketId] Ticket ID
|
|
13428
|
-
* @param {*} [options] Override http request option.
|
|
13429
|
-
* @throws {RequiredError}
|
|
13430
|
-
*/
|
|
13431
|
-
async putGetAdminNumberPort(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, id2?: number, customerName?: string, portDate?: string, numberRanges?: Array<NumberPortRangeDTO>, status?: number, ticketId?: number | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<NumberPortDTO>> {
|
|
13432
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.putGetAdminNumberPort(id, companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, id2, customerName, portDate, numberRanges, status, ticketId, options);
|
|
13046
|
+
* Portal Login
|
|
13047
|
+
* @summary Portal Login
|
|
13048
|
+
* @param {PortalLoginModel} [portalLoginModel] Login Credentials
|
|
13049
|
+
* @param {*} [options] Override http request option.
|
|
13050
|
+
* @throws {RequiredError}
|
|
13051
|
+
*/
|
|
13052
|
+
async postPortalLogin(portalLoginModel?: PortalLoginModel, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthCodeResponseModel>> {
|
|
13053
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postPortalLogin(portalLoginModel, options);
|
|
13433
13054
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
13434
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
13055
|
+
const localVarOperationServerBasePath = operationServerMap['OAuth20Api.postPortalLogin']?.[localVarOperationServerIndex]?.url;
|
|
13435
13056
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13436
13057
|
},
|
|
13437
13058
|
}
|
|
13438
13059
|
};
|
|
13439
13060
|
|
|
13440
13061
|
/**
|
|
13441
|
-
*
|
|
13062
|
+
* OAuth20Api - factory interface
|
|
13442
13063
|
*/
|
|
13443
|
-
export const
|
|
13444
|
-
const localVarFp =
|
|
13064
|
+
export const OAuth20ApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
13065
|
+
const localVarFp = OAuth20ApiFp(configuration)
|
|
13445
13066
|
return {
|
|
13446
13067
|
/**
|
|
13447
|
-
*
|
|
13448
|
-
* @
|
|
13449
|
-
* @param {*} [options] Override http request option.
|
|
13450
|
-
* @throws {RequiredError}
|
|
13451
|
-
*/
|
|
13452
|
-
deleteGetAdminNumberPort(id: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
13453
|
-
return localVarFp.deleteGetAdminNumberPort(id, options).then((request) => request(axios, basePath));
|
|
13454
|
-
},
|
|
13455
|
-
/**
|
|
13456
|
-
*
|
|
13457
|
-
* @param {number} [pageSize] Number Of Results
|
|
13458
|
-
* @param {number} [page] Page Number
|
|
13459
|
-
* @param {string} [search] Search
|
|
13460
|
-
* @param {*} [options] Override http request option.
|
|
13461
|
-
* @throws {RequiredError}
|
|
13462
|
-
*/
|
|
13463
|
-
getCreateNumberPort(pageSize?: number, page?: number, search?: string, options?: RawAxiosRequestConfig): AxiosPromise<NumberPortsModel> {
|
|
13464
|
-
return localVarFp.getCreateNumberPort(pageSize, page, search, options).then((request) => request(axios, basePath));
|
|
13465
|
-
},
|
|
13466
|
-
/**
|
|
13467
|
-
*
|
|
13468
|
-
* @param {number} id Number Port ID
|
|
13068
|
+
* Get MFA QR Code
|
|
13069
|
+
* @summary Get MFA QR Code
|
|
13469
13070
|
* @param {*} [options] Override http request option.
|
|
13470
13071
|
* @throws {RequiredError}
|
|
13471
13072
|
*/
|
|
13472
|
-
|
|
13473
|
-
return localVarFp.
|
|
13073
|
+
getGetMfaQrCode(options?: RawAxiosRequestConfig): AxiosPromise<string> {
|
|
13074
|
+
return localVarFp.getGetMfaQrCode(options).then((request) => request(axios, basePath));
|
|
13474
13075
|
},
|
|
13475
13076
|
/**
|
|
13476
|
-
*
|
|
13477
|
-
* @
|
|
13478
|
-
* @param {number} [page] Page Number
|
|
13479
|
-
* @param {string} [search] Search
|
|
13077
|
+
* Get Scopes
|
|
13078
|
+
* @summary Get Scopes
|
|
13480
13079
|
* @param {*} [options] Override http request option.
|
|
13481
13080
|
* @throws {RequiredError}
|
|
13482
13081
|
*/
|
|
13483
|
-
|
|
13484
|
-
return localVarFp.
|
|
13082
|
+
getGetScopes(options?: RawAxiosRequestConfig): AxiosPromise<Array<ScopeModel>> {
|
|
13083
|
+
return localVarFp.getGetScopes(options).then((request) => request(axios, basePath));
|
|
13485
13084
|
},
|
|
13486
13085
|
/**
|
|
13487
|
-
*
|
|
13488
|
-
* @
|
|
13086
|
+
* Get an OAuth 2.0 access token
|
|
13087
|
+
* @summary Validates client credentials and returns access token
|
|
13088
|
+
* @param {string | null} [clientId] OAuth 2.0 Client ID
|
|
13089
|
+
* @param {string | null} [clientSecret] OAuth 2.0 Client Secret
|
|
13090
|
+
* @param {PostAccessTokenGrantTypeEnum} [grantType] OAuth 2.0 Grant Type
|
|
13091
|
+
* @param {PostAccessTokenScopeEnum} [scope] OAuth 2.0 Scope
|
|
13092
|
+
* @param {string | null} [redirectUri] OAuth 2.0 Redirect URI
|
|
13093
|
+
* @param {string | null} [code] OAuth 2.0 Auth Code
|
|
13094
|
+
* @param {string | null} [refreshToken] OAuth 2.0 Refresh Token
|
|
13095
|
+
* @param {string | null} [codeVerifier] OAuth 2.0 Code Verifier
|
|
13096
|
+
* @param {string | null} [token] OAuth 2.0 Token (Only used in Token Exchange)
|
|
13097
|
+
* @param {PostAccessTokenTokenExchangeTypeEnum} [tokenExchangeType] Token Exchange Type (Only used in Token Exchange)
|
|
13098
|
+
* @param {string | null} [licenceKey] 3CX Licence Key (Only used in Token Exchange)
|
|
13099
|
+
* @param {boolean | null} [endUser] End User (Only used in Token Exchange)
|
|
13489
13100
|
* @param {*} [options] Override http request option.
|
|
13490
13101
|
* @throws {RequiredError}
|
|
13491
13102
|
*/
|
|
13492
|
-
|
|
13493
|
-
return localVarFp.
|
|
13103
|
+
postAccessToken(clientId?: string | null, clientSecret?: string | null, grantType?: PostAccessTokenGrantTypeEnum, scope?: PostAccessTokenScopeEnum, redirectUri?: string | null, code?: string | null, refreshToken?: string | null, codeVerifier?: string | null, token?: string | null, tokenExchangeType?: PostAccessTokenTokenExchangeTypeEnum, licenceKey?: string | null, endUser?: boolean | null, options?: RawAxiosRequestConfig): AxiosPromise<TokenResponseModel> {
|
|
13104
|
+
return localVarFp.postAccessToken(clientId, clientSecret, grantType, scope, redirectUri, code, refreshToken, codeVerifier, token, tokenExchangeType, licenceKey, endUser, options).then((request) => request(axios, basePath));
|
|
13494
13105
|
},
|
|
13495
13106
|
/**
|
|
13496
|
-
*
|
|
13497
|
-
* @
|
|
13498
|
-
* @param {string
|
|
13499
|
-
* @param {string
|
|
13500
|
-
* @param {
|
|
13501
|
-
* @param {string
|
|
13502
|
-
* @param {
|
|
13503
|
-
* @param {string
|
|
13504
|
-
* @param {string
|
|
13505
|
-
* @param {boolean | null} [asap] Port Date ASAP
|
|
13506
|
-
* @param {string | null} [comment] Comment
|
|
13507
|
-
* @param {Array<NumberPortRangeRequestDTO>} [numberRanges] Number Ranges
|
|
13508
|
-
* @param {File} [cloa] CLOA (only provide on submission)
|
|
13107
|
+
* Get an OAuth 2.0 auth code
|
|
13108
|
+
* @summary Get OAuth2.0 Auth Code
|
|
13109
|
+
* @param {string} clientId OAuth 2.0 Client ID
|
|
13110
|
+
* @param {string} responseType OAuth 2.0 Response Type
|
|
13111
|
+
* @param {PostAuthoriseScopeEnum} scope OAuth 2.0 Scope
|
|
13112
|
+
* @param {string} [redirectUri] OAuth 2.0 Redirect URI
|
|
13113
|
+
* @param {string} [state] OAuth 2.0 State
|
|
13114
|
+
* @param {string} [codeChallenge] OAuth 2.0 Code Challenge
|
|
13115
|
+
* @param {string} [codeChallengeMethod] OAuth 2.0 Code Challenge Method
|
|
13509
13116
|
* @param {*} [options] Override http request option.
|
|
13510
13117
|
* @throws {RequiredError}
|
|
13511
13118
|
*/
|
|
13512
|
-
|
|
13513
|
-
return localVarFp.
|
|
13119
|
+
postAuthorise(clientId: string, responseType: string, scope: PostAuthoriseScopeEnum, redirectUri?: string, state?: string, codeChallenge?: string, codeChallengeMethod?: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
13120
|
+
return localVarFp.postAuthorise(clientId, responseType, scope, redirectUri, state, codeChallenge, codeChallengeMethod, options).then((request) => request(axios, basePath));
|
|
13514
13121
|
},
|
|
13515
13122
|
/**
|
|
13516
|
-
*
|
|
13517
|
-
* @
|
|
13518
|
-
* @param {string | null} [companyName] Company Name
|
|
13519
|
-
* @param {string | null} [addressLine1] Address Line 1
|
|
13520
|
-
* @param {string | null} [addressLine2] Address Line 2
|
|
13521
|
-
* @param {string | null} [city] City
|
|
13522
|
-
* @param {string | null} [postCode] Post Code
|
|
13523
|
-
* @param {number | null} [trunkId] Trunk ID
|
|
13524
|
-
* @param {string | null} [tenantId] Starter Bundle ID
|
|
13525
|
-
* @param {string | null} [requestedPortDate] Requested Port Date
|
|
13526
|
-
* @param {boolean | null} [asap] Port Date ASAP
|
|
13527
|
-
* @param {string | null} [comment] Comment
|
|
13528
|
-
* @param {Array<NumberPortRangeRequestDTO>} [numberRanges] Number Ranges
|
|
13529
|
-
* @param {File} [cloa] CLOA (only provide on submission)
|
|
13123
|
+
* Get Token Identity
|
|
13124
|
+
* @summary Get Token Identity
|
|
13530
13125
|
* @param {*} [options] Override http request option.
|
|
13531
13126
|
* @throws {RequiredError}
|
|
13532
13127
|
*/
|
|
13533
|
-
|
|
13534
|
-
return localVarFp.
|
|
13128
|
+
postGetIdentity(options?: RawAxiosRequestConfig): AxiosPromise<ClientDetailsModel> {
|
|
13129
|
+
return localVarFp.postGetIdentity(options).then((request) => request(axios, basePath));
|
|
13535
13130
|
},
|
|
13536
13131
|
/**
|
|
13537
|
-
*
|
|
13538
|
-
* @
|
|
13539
|
-
* @param {
|
|
13540
|
-
* @param {string | null} [addressLine1] Address Line 1
|
|
13541
|
-
* @param {string | null} [addressLine2] Address Line 2
|
|
13542
|
-
* @param {string | null} [city] City
|
|
13543
|
-
* @param {string | null} [postCode] Post Code
|
|
13544
|
-
* @param {number | null} [trunkId] Trunk ID
|
|
13545
|
-
* @param {string | null} [tenantId] Starter Bundle ID
|
|
13546
|
-
* @param {string | null} [requestedPortDate] Requested Port Date
|
|
13547
|
-
* @param {boolean | null} [asap] Port Date ASAP
|
|
13548
|
-
* @param {string | null} [comment] Comment
|
|
13549
|
-
* @param {Array<NumberPortRangeRequestDTO>} [numberRanges] Number Ranges
|
|
13550
|
-
* @param {File} [cloa] CLOA (only provide on submission)
|
|
13132
|
+
* Portal Login
|
|
13133
|
+
* @summary Portal Login
|
|
13134
|
+
* @param {PortalLoginModel} [portalLoginModel] Login Credentials
|
|
13551
13135
|
* @param {*} [options] Override http request option.
|
|
13552
13136
|
* @throws {RequiredError}
|
|
13553
13137
|
*/
|
|
13554
|
-
|
|
13555
|
-
return localVarFp.
|
|
13556
|
-
},
|
|
13557
|
-
/**
|
|
13558
|
-
*
|
|
13559
|
-
* @param {number} id Number Port ID
|
|
13560
|
-
* @param {string | null} [companyName] Company Name
|
|
13561
|
-
* @param {string | null} [addressLine1] Address Line 1
|
|
13562
|
-
* @param {string | null} [addressLine2] Address Line 2
|
|
13563
|
-
* @param {string | null} [city] City
|
|
13564
|
-
* @param {string | null} [postCode] Post Code
|
|
13565
|
-
* @param {number | null} [trunkId] Trunk ID
|
|
13566
|
-
* @param {string | null} [tenantId] Starter Bundle ID
|
|
13567
|
-
* @param {string | null} [requestedPortDate] Requested Port Date
|
|
13568
|
-
* @param {boolean | null} [asap] Port Date ASAP
|
|
13569
|
-
* @param {string | null} [comment] Comment
|
|
13570
|
-
* @param {number} [id2] Number Port ID
|
|
13571
|
-
* @param {string} [customerName] Customer Name
|
|
13572
|
-
* @param {string} [portDate] Porting Date
|
|
13573
|
-
* @param {Array<NumberPortRangeDTO>} [numberRanges] Number Ranges
|
|
13574
|
-
* @param {number} [status] Status
|
|
13575
|
-
* @param {number | null} [ticketId] Ticket ID
|
|
13576
|
-
* @param {*} [options] Override http request option.
|
|
13577
|
-
* @throws {RequiredError}
|
|
13578
|
-
*/
|
|
13579
|
-
putGetAdminNumberPort(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, id2?: number, customerName?: string, portDate?: string, numberRanges?: Array<NumberPortRangeDTO>, status?: number, ticketId?: number | null, options?: RawAxiosRequestConfig): AxiosPromise<NumberPortDTO> {
|
|
13580
|
-
return localVarFp.putGetAdminNumberPort(id, companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, id2, customerName, portDate, numberRanges, status, ticketId, options).then((request) => request(axios, basePath));
|
|
13138
|
+
postPortalLogin(portalLoginModel?: PortalLoginModel, options?: RawAxiosRequestConfig): AxiosPromise<AuthCodeResponseModel> {
|
|
13139
|
+
return localVarFp.postPortalLogin(portalLoginModel, options).then((request) => request(axios, basePath));
|
|
13581
13140
|
},
|
|
13582
13141
|
};
|
|
13583
13142
|
};
|
|
13584
13143
|
|
|
13585
13144
|
/**
|
|
13586
|
-
*
|
|
13145
|
+
* OAuth20Api - object-oriented interface
|
|
13587
13146
|
*/
|
|
13588
|
-
export class
|
|
13589
|
-
/**
|
|
13590
|
-
*
|
|
13591
|
-
* @param {number} id Number Port ID
|
|
13592
|
-
* @param {*} [options] Override http request option.
|
|
13593
|
-
* @throws {RequiredError}
|
|
13594
|
-
*/
|
|
13595
|
-
public deleteGetAdminNumberPort(id: number, options?: RawAxiosRequestConfig) {
|
|
13596
|
-
return NumberPortingApiFp(this.configuration).deleteGetAdminNumberPort(id, options).then((request) => request(this.axios, this.basePath));
|
|
13597
|
-
}
|
|
13598
|
-
|
|
13599
|
-
/**
|
|
13600
|
-
*
|
|
13601
|
-
* @param {number} [pageSize] Number Of Results
|
|
13602
|
-
* @param {number} [page] Page Number
|
|
13603
|
-
* @param {string} [search] Search
|
|
13604
|
-
* @param {*} [options] Override http request option.
|
|
13605
|
-
* @throws {RequiredError}
|
|
13606
|
-
*/
|
|
13607
|
-
public getCreateNumberPort(pageSize?: number, page?: number, search?: string, options?: RawAxiosRequestConfig) {
|
|
13608
|
-
return NumberPortingApiFp(this.configuration).getCreateNumberPort(pageSize, page, search, options).then((request) => request(this.axios, this.basePath));
|
|
13609
|
-
}
|
|
13610
|
-
|
|
13611
|
-
/**
|
|
13612
|
-
*
|
|
13613
|
-
* @param {number} id Number Port ID
|
|
13614
|
-
* @param {*} [options] Override http request option.
|
|
13615
|
-
* @throws {RequiredError}
|
|
13616
|
-
*/
|
|
13617
|
-
public getGetAdminNumberPort(id: number, options?: RawAxiosRequestConfig) {
|
|
13618
|
-
return NumberPortingApiFp(this.configuration).getGetAdminNumberPort(id, options).then((request) => request(this.axios, this.basePath));
|
|
13619
|
-
}
|
|
13620
|
-
|
|
13147
|
+
export class OAuth20Api extends BaseAPI {
|
|
13621
13148
|
/**
|
|
13622
|
-
*
|
|
13623
|
-
* @
|
|
13624
|
-
* @param {number} [page] Page Number
|
|
13625
|
-
* @param {string} [search] Search
|
|
13149
|
+
* Get MFA QR Code
|
|
13150
|
+
* @summary Get MFA QR Code
|
|
13626
13151
|
* @param {*} [options] Override http request option.
|
|
13627
13152
|
* @throws {RequiredError}
|
|
13628
13153
|
*/
|
|
13629
|
-
public
|
|
13630
|
-
return
|
|
13154
|
+
public getGetMfaQrCode(options?: RawAxiosRequestConfig) {
|
|
13155
|
+
return OAuth20ApiFp(this.configuration).getGetMfaQrCode(options).then((request) => request(this.axios, this.basePath));
|
|
13631
13156
|
}
|
|
13632
13157
|
|
|
13633
13158
|
/**
|
|
13634
|
-
*
|
|
13635
|
-
* @
|
|
13159
|
+
* Get Scopes
|
|
13160
|
+
* @summary Get Scopes
|
|
13636
13161
|
* @param {*} [options] Override http request option.
|
|
13637
13162
|
* @throws {RequiredError}
|
|
13638
13163
|
*/
|
|
13639
|
-
public
|
|
13640
|
-
return
|
|
13164
|
+
public getGetScopes(options?: RawAxiosRequestConfig) {
|
|
13165
|
+
return OAuth20ApiFp(this.configuration).getGetScopes(options).then((request) => request(this.axios, this.basePath));
|
|
13641
13166
|
}
|
|
13642
13167
|
|
|
13643
13168
|
/**
|
|
13644
|
-
*
|
|
13645
|
-
* @
|
|
13646
|
-
* @param {string | null} [
|
|
13647
|
-
* @param {string | null} [
|
|
13648
|
-
* @param {
|
|
13649
|
-
* @param {
|
|
13650
|
-
* @param {
|
|
13651
|
-
* @param {string | null} [
|
|
13652
|
-
* @param {string | null} [
|
|
13653
|
-
* @param {
|
|
13654
|
-
* @param {string | null} [
|
|
13655
|
-
* @param {
|
|
13656
|
-
* @param {
|
|
13169
|
+
* Get an OAuth 2.0 access token
|
|
13170
|
+
* @summary Validates client credentials and returns access token
|
|
13171
|
+
* @param {string | null} [clientId] OAuth 2.0 Client ID
|
|
13172
|
+
* @param {string | null} [clientSecret] OAuth 2.0 Client Secret
|
|
13173
|
+
* @param {PostAccessTokenGrantTypeEnum} [grantType] OAuth 2.0 Grant Type
|
|
13174
|
+
* @param {PostAccessTokenScopeEnum} [scope] OAuth 2.0 Scope
|
|
13175
|
+
* @param {string | null} [redirectUri] OAuth 2.0 Redirect URI
|
|
13176
|
+
* @param {string | null} [code] OAuth 2.0 Auth Code
|
|
13177
|
+
* @param {string | null} [refreshToken] OAuth 2.0 Refresh Token
|
|
13178
|
+
* @param {string | null} [codeVerifier] OAuth 2.0 Code Verifier
|
|
13179
|
+
* @param {string | null} [token] OAuth 2.0 Token (Only used in Token Exchange)
|
|
13180
|
+
* @param {PostAccessTokenTokenExchangeTypeEnum} [tokenExchangeType] Token Exchange Type (Only used in Token Exchange)
|
|
13181
|
+
* @param {string | null} [licenceKey] 3CX Licence Key (Only used in Token Exchange)
|
|
13182
|
+
* @param {boolean | null} [endUser] End User (Only used in Token Exchange)
|
|
13657
13183
|
* @param {*} [options] Override http request option.
|
|
13658
13184
|
* @throws {RequiredError}
|
|
13659
13185
|
*/
|
|
13660
|
-
public
|
|
13661
|
-
return
|
|
13186
|
+
public postAccessToken(clientId?: string | null, clientSecret?: string | null, grantType?: PostAccessTokenGrantTypeEnum, scope?: PostAccessTokenScopeEnum, redirectUri?: string | null, code?: string | null, refreshToken?: string | null, codeVerifier?: string | null, token?: string | null, tokenExchangeType?: PostAccessTokenTokenExchangeTypeEnum, licenceKey?: string | null, endUser?: boolean | null, options?: RawAxiosRequestConfig) {
|
|
13187
|
+
return OAuth20ApiFp(this.configuration).postAccessToken(clientId, clientSecret, grantType, scope, redirectUri, code, refreshToken, codeVerifier, token, tokenExchangeType, licenceKey, endUser, options).then((request) => request(this.axios, this.basePath));
|
|
13662
13188
|
}
|
|
13663
13189
|
|
|
13664
13190
|
/**
|
|
13665
|
-
*
|
|
13666
|
-
* @
|
|
13667
|
-
* @param {string
|
|
13668
|
-
* @param {string
|
|
13669
|
-
* @param {
|
|
13670
|
-
* @param {string
|
|
13671
|
-
* @param {string
|
|
13672
|
-
* @param {
|
|
13673
|
-
* @param {string
|
|
13674
|
-
* @param {string | null} [requestedPortDate] Requested Port Date
|
|
13675
|
-
* @param {boolean | null} [asap] Port Date ASAP
|
|
13676
|
-
* @param {string | null} [comment] Comment
|
|
13677
|
-
* @param {Array<NumberPortRangeRequestDTO>} [numberRanges] Number Ranges
|
|
13678
|
-
* @param {File} [cloa] CLOA (only provide on submission)
|
|
13191
|
+
* Get an OAuth 2.0 auth code
|
|
13192
|
+
* @summary Get OAuth2.0 Auth Code
|
|
13193
|
+
* @param {string} clientId OAuth 2.0 Client ID
|
|
13194
|
+
* @param {string} responseType OAuth 2.0 Response Type
|
|
13195
|
+
* @param {PostAuthoriseScopeEnum} scope OAuth 2.0 Scope
|
|
13196
|
+
* @param {string} [redirectUri] OAuth 2.0 Redirect URI
|
|
13197
|
+
* @param {string} [state] OAuth 2.0 State
|
|
13198
|
+
* @param {string} [codeChallenge] OAuth 2.0 Code Challenge
|
|
13199
|
+
* @param {string} [codeChallengeMethod] OAuth 2.0 Code Challenge Method
|
|
13679
13200
|
* @param {*} [options] Override http request option.
|
|
13680
13201
|
* @throws {RequiredError}
|
|
13681
13202
|
*/
|
|
13682
|
-
public
|
|
13683
|
-
return
|
|
13203
|
+
public postAuthorise(clientId: string, responseType: string, scope: PostAuthoriseScopeEnum, redirectUri?: string, state?: string, codeChallenge?: string, codeChallengeMethod?: string, options?: RawAxiosRequestConfig) {
|
|
13204
|
+
return OAuth20ApiFp(this.configuration).postAuthorise(clientId, responseType, scope, redirectUri, state, codeChallenge, codeChallengeMethod, options).then((request) => request(this.axios, this.basePath));
|
|
13684
13205
|
}
|
|
13685
13206
|
|
|
13686
13207
|
/**
|
|
13687
|
-
*
|
|
13688
|
-
* @
|
|
13689
|
-
* @param {string | null} [companyName] Company Name
|
|
13690
|
-
* @param {string | null} [addressLine1] Address Line 1
|
|
13691
|
-
* @param {string | null} [addressLine2] Address Line 2
|
|
13692
|
-
* @param {string | null} [city] City
|
|
13693
|
-
* @param {string | null} [postCode] Post Code
|
|
13694
|
-
* @param {number | null} [trunkId] Trunk ID
|
|
13695
|
-
* @param {string | null} [tenantId] Starter Bundle ID
|
|
13696
|
-
* @param {string | null} [requestedPortDate] Requested Port Date
|
|
13697
|
-
* @param {boolean | null} [asap] Port Date ASAP
|
|
13698
|
-
* @param {string | null} [comment] Comment
|
|
13699
|
-
* @param {Array<NumberPortRangeRequestDTO>} [numberRanges] Number Ranges
|
|
13700
|
-
* @param {File} [cloa] CLOA (only provide on submission)
|
|
13208
|
+
* Get Token Identity
|
|
13209
|
+
* @summary Get Token Identity
|
|
13701
13210
|
* @param {*} [options] Override http request option.
|
|
13702
13211
|
* @throws {RequiredError}
|
|
13703
13212
|
*/
|
|
13704
|
-
public
|
|
13705
|
-
return
|
|
13213
|
+
public postGetIdentity(options?: RawAxiosRequestConfig) {
|
|
13214
|
+
return OAuth20ApiFp(this.configuration).postGetIdentity(options).then((request) => request(this.axios, this.basePath));
|
|
13706
13215
|
}
|
|
13707
13216
|
|
|
13708
13217
|
/**
|
|
13709
|
-
*
|
|
13710
|
-
* @
|
|
13711
|
-
* @param {
|
|
13712
|
-
* @param {string | null} [addressLine1] Address Line 1
|
|
13713
|
-
* @param {string | null} [addressLine2] Address Line 2
|
|
13714
|
-
* @param {string | null} [city] City
|
|
13715
|
-
* @param {string | null} [postCode] Post Code
|
|
13716
|
-
* @param {number | null} [trunkId] Trunk ID
|
|
13717
|
-
* @param {string | null} [tenantId] Starter Bundle ID
|
|
13718
|
-
* @param {string | null} [requestedPortDate] Requested Port Date
|
|
13719
|
-
* @param {boolean | null} [asap] Port Date ASAP
|
|
13720
|
-
* @param {string | null} [comment] Comment
|
|
13721
|
-
* @param {number} [id2] Number Port ID
|
|
13722
|
-
* @param {string} [customerName] Customer Name
|
|
13723
|
-
* @param {string} [portDate] Porting Date
|
|
13724
|
-
* @param {Array<NumberPortRangeDTO>} [numberRanges] Number Ranges
|
|
13725
|
-
* @param {number} [status] Status
|
|
13726
|
-
* @param {number | null} [ticketId] Ticket ID
|
|
13218
|
+
* Portal Login
|
|
13219
|
+
* @summary Portal Login
|
|
13220
|
+
* @param {PortalLoginModel} [portalLoginModel] Login Credentials
|
|
13727
13221
|
* @param {*} [options] Override http request option.
|
|
13728
13222
|
* @throws {RequiredError}
|
|
13729
13223
|
*/
|
|
13730
|
-
public
|
|
13731
|
-
return
|
|
13224
|
+
public postPortalLogin(portalLoginModel?: PortalLoginModel, options?: RawAxiosRequestConfig) {
|
|
13225
|
+
return OAuth20ApiFp(this.configuration).postPortalLogin(portalLoginModel, options).then((request) => request(this.axios, this.basePath));
|
|
13732
13226
|
}
|
|
13733
13227
|
}
|
|
13734
13228
|
|
|
13735
|
-
|
|
13736
|
-
|
|
13737
|
-
|
|
13738
|
-
|
|
13739
|
-
|
|
13740
|
-
|
|
13741
|
-
|
|
13742
|
-
|
|
13743
|
-
|
|
13744
|
-
|
|
13745
|
-
|
|
13746
|
-
|
|
13747
|
-
|
|
13748
|
-
|
|
13749
|
-
|
|
13750
|
-
|
|
13751
|
-
|
|
13752
|
-
|
|
13753
|
-
|
|
13754
|
-
|
|
13755
|
-
|
|
13756
|
-
|
|
13757
|
-
|
|
13758
|
-
|
|
13759
|
-
|
|
13760
|
-
|
|
13761
|
-
|
|
13762
|
-
|
|
13763
|
-
|
|
13764
|
-
|
|
13765
|
-
|
|
13766
|
-
|
|
13767
|
-
|
|
13768
|
-
|
|
13769
|
-
|
|
13770
|
-
|
|
13771
|
-
|
|
13229
|
+
export const PostAccessTokenGrantTypeEnum = {
|
|
13230
|
+
ClientCredentials: 'client_credentials',
|
|
13231
|
+
Code: 'code',
|
|
13232
|
+
RefreshToken: 'refresh_token',
|
|
13233
|
+
AuthorizationCode: 'authorization_code',
|
|
13234
|
+
MsAuth: 'ms_auth',
|
|
13235
|
+
TokenExchange: 'token_exchange',
|
|
13236
|
+
Password: 'password'
|
|
13237
|
+
} as const;
|
|
13238
|
+
export type PostAccessTokenGrantTypeEnum = typeof PostAccessTokenGrantTypeEnum[keyof typeof PostAccessTokenGrantTypeEnum];
|
|
13239
|
+
export const PostAccessTokenScopeEnum = {
|
|
13240
|
+
Star: '*',
|
|
13241
|
+
Fdps: 'fdps',
|
|
13242
|
+
Scope: 'scope',
|
|
13243
|
+
Portal: 'portal',
|
|
13244
|
+
TcxWizard: 'tcx_wizard',
|
|
13245
|
+
AccountsRead: 'accounts.read',
|
|
13246
|
+
AccountsWrite: 'accounts.write',
|
|
13247
|
+
PricingRead: 'pricing.read',
|
|
13248
|
+
OrdersRead: 'orders.read',
|
|
13249
|
+
OrdersWrite: 'orders.write',
|
|
13250
|
+
ProductsRead: 'products.read',
|
|
13251
|
+
ProvisioningRead: 'provisioning.read',
|
|
13252
|
+
ProvisioningWrite: 'provisioning.write',
|
|
13253
|
+
TrunksRead: 'trunks.read',
|
|
13254
|
+
TrunksWrite: 'trunks.write',
|
|
13255
|
+
TcxIntegrationsRead: 'tcx_integrations.read',
|
|
13256
|
+
TcxIntegrationsWrite: 'tcx_integrations.write',
|
|
13257
|
+
TcxLicenceDetailsRead: 'tcx_licence_details.read',
|
|
13258
|
+
TcxInstallationsRead: 'tcx_installations.read',
|
|
13259
|
+
TcxInstallationsWrite: 'tcx_installations.write',
|
|
13260
|
+
TcxMtRead: 'tcx_mt.read',
|
|
13261
|
+
TcxMtWrite: 'tcx_mt.write',
|
|
13262
|
+
TicketsRead: 'tickets.read',
|
|
13263
|
+
TicketsWrite: 'tickets.write'
|
|
13264
|
+
} as const;
|
|
13265
|
+
export type PostAccessTokenScopeEnum = typeof PostAccessTokenScopeEnum[keyof typeof PostAccessTokenScopeEnum];
|
|
13266
|
+
export const PostAccessTokenTokenExchangeTypeEnum = {
|
|
13267
|
+
TcxWizard: 'tcx_wizard',
|
|
13268
|
+
Portal: 'portal'
|
|
13269
|
+
} as const;
|
|
13270
|
+
export type PostAccessTokenTokenExchangeTypeEnum = typeof PostAccessTokenTokenExchangeTypeEnum[keyof typeof PostAccessTokenTokenExchangeTypeEnum];
|
|
13271
|
+
export const PostAuthoriseScopeEnum = {
|
|
13272
|
+
Star: '*',
|
|
13273
|
+
Fdps: 'fdps',
|
|
13274
|
+
Scope: 'scope',
|
|
13275
|
+
Portal: 'portal',
|
|
13276
|
+
TcxWizard: 'tcx_wizard',
|
|
13277
|
+
AccountsRead: 'accounts.read',
|
|
13278
|
+
AccountsWrite: 'accounts.write',
|
|
13279
|
+
PricingRead: 'pricing.read',
|
|
13280
|
+
OrdersRead: 'orders.read',
|
|
13281
|
+
OrdersWrite: 'orders.write',
|
|
13282
|
+
ProductsRead: 'products.read',
|
|
13283
|
+
ProvisioningRead: 'provisioning.read',
|
|
13284
|
+
ProvisioningWrite: 'provisioning.write',
|
|
13285
|
+
TrunksRead: 'trunks.read',
|
|
13286
|
+
TrunksWrite: 'trunks.write',
|
|
13287
|
+
TcxIntegrationsRead: 'tcx_integrations.read',
|
|
13288
|
+
TcxIntegrationsWrite: 'tcx_integrations.write',
|
|
13289
|
+
TcxLicenceDetailsRead: 'tcx_licence_details.read',
|
|
13290
|
+
TcxInstallationsRead: 'tcx_installations.read',
|
|
13291
|
+
TcxInstallationsWrite: 'tcx_installations.write',
|
|
13292
|
+
TcxMtRead: 'tcx_mt.read',
|
|
13293
|
+
TcxMtWrite: 'tcx_mt.write',
|
|
13294
|
+
TicketsRead: 'tickets.read',
|
|
13295
|
+
TicketsWrite: 'tickets.write'
|
|
13296
|
+
} as const;
|
|
13297
|
+
export type PostAuthoriseScopeEnum = typeof PostAuthoriseScopeEnum[keyof typeof PostAuthoriseScopeEnum];
|
|
13298
|
+
|
|
13299
|
+
|
|
13300
|
+
/**
|
|
13301
|
+
* OrdersApi - axios parameter creator
|
|
13302
|
+
*/
|
|
13303
|
+
export const OrdersApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
13304
|
+
return {
|
|
13772
13305
|
/**
|
|
13773
|
-
*
|
|
13774
|
-
* @summary
|
|
13306
|
+
* Delete Orders (Beta)
|
|
13307
|
+
* @summary Delete Orders (Beta)
|
|
13308
|
+
* @param {number} id Order ID
|
|
13775
13309
|
* @param {*} [options] Override http request option.
|
|
13776
13310
|
* @throws {RequiredError}
|
|
13777
13311
|
*/
|
|
13778
|
-
|
|
13779
|
-
|
|
13312
|
+
deleteUpdateOrder: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13313
|
+
// verify required parameter 'id' is not null or undefined
|
|
13314
|
+
assertParamExists('deleteUpdateOrder', 'id', id)
|
|
13315
|
+
const localVarPath = `/orders/{id}`
|
|
13316
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
13780
13317
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13781
13318
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13782
13319
|
let baseOptions;
|
|
@@ -13784,7 +13321,7 @@ export const OAuth20ApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
13784
13321
|
baseOptions = configuration.baseOptions;
|
|
13785
13322
|
}
|
|
13786
13323
|
|
|
13787
|
-
const localVarRequestOptions = { method: '
|
|
13324
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
13788
13325
|
const localVarHeaderParameter = {} as any;
|
|
13789
13326
|
const localVarQueryParameter = {} as any;
|
|
13790
13327
|
|
|
@@ -13800,25 +13337,17 @@ export const OAuth20ApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
13800
13337
|
};
|
|
13801
13338
|
},
|
|
13802
13339
|
/**
|
|
13803
|
-
* Get
|
|
13804
|
-
* @summary
|
|
13805
|
-
* @param {
|
|
13806
|
-
* @param {string | null} [clientSecret] OAuth 2.0 Client Secret
|
|
13807
|
-
* @param {PostAccessTokenGrantTypeEnum} [grantType] OAuth 2.0 Grant Type
|
|
13808
|
-
* @param {PostAccessTokenScopeEnum} [scope] OAuth 2.0 Scope
|
|
13809
|
-
* @param {string | null} [redirectUri] OAuth 2.0 Redirect URI
|
|
13810
|
-
* @param {string | null} [code] OAuth 2.0 Auth Code
|
|
13811
|
-
* @param {string | null} [refreshToken] OAuth 2.0 Refresh Token
|
|
13812
|
-
* @param {string | null} [codeVerifier] OAuth 2.0 Code Verifier
|
|
13813
|
-
* @param {string | null} [token] OAuth 2.0 Token (Only used in Token Exchange)
|
|
13814
|
-
* @param {PostAccessTokenTokenExchangeTypeEnum} [tokenExchangeType] Token Exchange Type (Only used in Token Exchange)
|
|
13815
|
-
* @param {string | null} [licenceKey] 3CX Licence Key (Only used in Token Exchange)
|
|
13816
|
-
* @param {boolean | null} [endUser] End User (Only used in Token Exchange)
|
|
13340
|
+
* Get Editable Order (Admin)
|
|
13341
|
+
* @summary Get Editable Order (Admin)
|
|
13342
|
+
* @param {number} id Order ID
|
|
13817
13343
|
* @param {*} [options] Override http request option.
|
|
13818
13344
|
* @throws {RequiredError}
|
|
13819
13345
|
*/
|
|
13820
|
-
|
|
13821
|
-
|
|
13346
|
+
getGetAdminEditableOrder: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13347
|
+
// verify required parameter 'id' is not null or undefined
|
|
13348
|
+
assertParamExists('getGetAdminEditableOrder', 'id', id)
|
|
13349
|
+
const localVarPath = `/admin/orders/{id}/views/editable`
|
|
13350
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
13822
13351
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13823
13352
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13824
13353
|
let baseOptions;
|
|
@@ -13826,67 +13355,49 @@ export const OAuth20ApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
13826
13355
|
baseOptions = configuration.baseOptions;
|
|
13827
13356
|
}
|
|
13828
13357
|
|
|
13829
|
-
const localVarRequestOptions = { method: '
|
|
13358
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
13830
13359
|
const localVarHeaderParameter = {} as any;
|
|
13831
13360
|
const localVarQueryParameter = {} as any;
|
|
13832
|
-
const localVarFormParams = new URLSearchParams();
|
|
13833
13361
|
|
|
13834
13362
|
|
|
13835
|
-
if (clientId !== undefined) {
|
|
13836
|
-
localVarFormParams.set('client_id', clientId as any);
|
|
13837
|
-
}
|
|
13838
|
-
|
|
13839
|
-
if (clientSecret !== undefined) {
|
|
13840
|
-
localVarFormParams.set('client_secret', clientSecret as any);
|
|
13841
|
-
}
|
|
13842
|
-
|
|
13843
|
-
if (grantType !== undefined) {
|
|
13844
|
-
localVarFormParams.set('grant_type', grantType as any);
|
|
13845
|
-
}
|
|
13846
13363
|
|
|
13847
|
-
|
|
13848
|
-
|
|
13849
|
-
}
|
|
13850
|
-
|
|
13851
|
-
|
|
13852
|
-
|
|
13853
|
-
|
|
13854
|
-
|
|
13855
|
-
|
|
13856
|
-
|
|
13857
|
-
|
|
13858
|
-
|
|
13859
|
-
|
|
13860
|
-
|
|
13861
|
-
|
|
13862
|
-
|
|
13863
|
-
|
|
13864
|
-
|
|
13865
|
-
|
|
13866
|
-
|
|
13867
|
-
|
|
13868
|
-
|
|
13869
|
-
|
|
13870
|
-
|
|
13871
|
-
if (
|
|
13872
|
-
|
|
13873
|
-
}
|
|
13874
|
-
|
|
13875
|
-
if (licenceKey !== undefined) {
|
|
13876
|
-
localVarFormParams.set('licence_key', licenceKey as any);
|
|
13877
|
-
}
|
|
13878
|
-
|
|
13879
|
-
if (endUser !== undefined) {
|
|
13880
|
-
localVarFormParams.set('end_user', endUser as any);
|
|
13364
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13365
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13366
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
13367
|
+
|
|
13368
|
+
return {
|
|
13369
|
+
url: toPathString(localVarUrlObj),
|
|
13370
|
+
options: localVarRequestOptions,
|
|
13371
|
+
};
|
|
13372
|
+
},
|
|
13373
|
+
/**
|
|
13374
|
+
* Get Editable Order (Beta)
|
|
13375
|
+
* @summary Get Editable Order (Beta)
|
|
13376
|
+
* @param {number} id Order ID
|
|
13377
|
+
* @param {*} [options] Override http request option.
|
|
13378
|
+
* @throws {RequiredError}
|
|
13379
|
+
*/
|
|
13380
|
+
getGetEditableOrder: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13381
|
+
// verify required parameter 'id' is not null or undefined
|
|
13382
|
+
assertParamExists('getGetEditableOrder', 'id', id)
|
|
13383
|
+
const localVarPath = `/orders/{id}/views/editable`
|
|
13384
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
13385
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13386
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13387
|
+
let baseOptions;
|
|
13388
|
+
if (configuration) {
|
|
13389
|
+
baseOptions = configuration.baseOptions;
|
|
13881
13390
|
}
|
|
13882
|
-
|
|
13883
|
-
|
|
13884
|
-
localVarHeaderParameter
|
|
13391
|
+
|
|
13392
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
13393
|
+
const localVarHeaderParameter = {} as any;
|
|
13394
|
+
const localVarQueryParameter = {} as any;
|
|
13395
|
+
|
|
13396
|
+
|
|
13885
13397
|
|
|
13886
13398
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13887
13399
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13888
13400
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
13889
|
-
localVarRequestOptions.data = localVarFormParams.toString();
|
|
13890
13401
|
|
|
13891
13402
|
return {
|
|
13892
13403
|
url: toPathString(localVarUrlObj),
|
|
@@ -13894,26 +13405,20 @@ export const OAuth20ApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
13894
13405
|
};
|
|
13895
13406
|
},
|
|
13896
13407
|
/**
|
|
13897
|
-
* Get
|
|
13898
|
-
* @summary Get
|
|
13899
|
-
* @param {
|
|
13900
|
-
* @param {
|
|
13901
|
-
* @param {
|
|
13902
|
-
* @param {
|
|
13903
|
-
* @param {
|
|
13904
|
-
* @param {
|
|
13905
|
-
* @param {
|
|
13408
|
+
* Get Orders (Beta)
|
|
13409
|
+
* @summary Get Orders (Beta)
|
|
13410
|
+
* @param {number} [pageSize] Number Of Results
|
|
13411
|
+
* @param {number} [page] Page Number
|
|
13412
|
+
* @param {string} [search] Search
|
|
13413
|
+
* @param {boolean | null} [fulfillable] Fulfillable
|
|
13414
|
+
* @param {GetGetOrdersStatusEnum} [status] Status
|
|
13415
|
+
* @param {GetGetOrdersFilterEnum} [filter] Filter
|
|
13416
|
+
* @param {number | null} [customerId] Customer ID
|
|
13906
13417
|
* @param {*} [options] Override http request option.
|
|
13907
13418
|
* @throws {RequiredError}
|
|
13908
13419
|
*/
|
|
13909
|
-
|
|
13910
|
-
|
|
13911
|
-
assertParamExists('postAuthorise', 'clientId', clientId)
|
|
13912
|
-
// verify required parameter 'responseType' is not null or undefined
|
|
13913
|
-
assertParamExists('postAuthorise', 'responseType', responseType)
|
|
13914
|
-
// verify required parameter 'scope' is not null or undefined
|
|
13915
|
-
assertParamExists('postAuthorise', 'scope', scope)
|
|
13916
|
-
const localVarPath = `/oauth2/authorise`;
|
|
13420
|
+
getGetOrders: async (pageSize?: number, page?: number, search?: string, fulfillable?: boolean | null, status?: GetGetOrdersStatusEnum, filter?: GetGetOrdersFilterEnum, customerId?: number | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13421
|
+
const localVarPath = `/orders`;
|
|
13917
13422
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13918
13423
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13919
13424
|
let baseOptions;
|
|
@@ -13921,36 +13426,36 @@ export const OAuth20ApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
13921
13426
|
baseOptions = configuration.baseOptions;
|
|
13922
13427
|
}
|
|
13923
13428
|
|
|
13924
|
-
const localVarRequestOptions = { method: '
|
|
13429
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
13925
13430
|
const localVarHeaderParameter = {} as any;
|
|
13926
13431
|
const localVarQueryParameter = {} as any;
|
|
13927
13432
|
|
|
13928
|
-
if (
|
|
13929
|
-
localVarQueryParameter['
|
|
13433
|
+
if (pageSize !== undefined) {
|
|
13434
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
13930
13435
|
}
|
|
13931
13436
|
|
|
13932
|
-
if (
|
|
13933
|
-
localVarQueryParameter['
|
|
13437
|
+
if (page !== undefined) {
|
|
13438
|
+
localVarQueryParameter['page'] = page;
|
|
13934
13439
|
}
|
|
13935
13440
|
|
|
13936
|
-
if (
|
|
13937
|
-
localVarQueryParameter['
|
|
13441
|
+
if (search !== undefined) {
|
|
13442
|
+
localVarQueryParameter['search'] = search;
|
|
13938
13443
|
}
|
|
13939
13444
|
|
|
13940
|
-
if (
|
|
13941
|
-
localVarQueryParameter['
|
|
13445
|
+
if (fulfillable !== undefined) {
|
|
13446
|
+
localVarQueryParameter['fulfillable'] = fulfillable;
|
|
13942
13447
|
}
|
|
13943
13448
|
|
|
13944
|
-
if (
|
|
13945
|
-
localVarQueryParameter['
|
|
13449
|
+
if (status !== undefined) {
|
|
13450
|
+
localVarQueryParameter['status'] = status;
|
|
13946
13451
|
}
|
|
13947
13452
|
|
|
13948
|
-
if (
|
|
13949
|
-
localVarQueryParameter['
|
|
13453
|
+
if (filter !== undefined) {
|
|
13454
|
+
localVarQueryParameter['filter'] = filter;
|
|
13950
13455
|
}
|
|
13951
13456
|
|
|
13952
|
-
if (
|
|
13953
|
-
localVarQueryParameter['
|
|
13457
|
+
if (customerId !== undefined) {
|
|
13458
|
+
localVarQueryParameter['customerId'] = customerId;
|
|
13954
13459
|
}
|
|
13955
13460
|
|
|
13956
13461
|
|
|
@@ -13965,13 +13470,15 @@ export const OAuth20ApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
13965
13470
|
};
|
|
13966
13471
|
},
|
|
13967
13472
|
/**
|
|
13968
|
-
*
|
|
13969
|
-
* @summary
|
|
13473
|
+
* Create An Order (Admin)
|
|
13474
|
+
* @summary Create An Order (Admin)
|
|
13475
|
+
* @param {boolean} [readonly] Readonly Order
|
|
13476
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
|
|
13970
13477
|
* @param {*} [options] Override http request option.
|
|
13971
13478
|
* @throws {RequiredError}
|
|
13972
13479
|
*/
|
|
13973
|
-
|
|
13974
|
-
const localVarPath = `/
|
|
13480
|
+
postCreateAdminOrder: async (readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13481
|
+
const localVarPath = `/admin/orders`;
|
|
13975
13482
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13976
13483
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13977
13484
|
let baseOptions;
|
|
@@ -13983,11 +13490,18 @@ export const OAuth20ApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
13983
13490
|
const localVarHeaderParameter = {} as any;
|
|
13984
13491
|
const localVarQueryParameter = {} as any;
|
|
13985
13492
|
|
|
13493
|
+
if (readonly !== undefined) {
|
|
13494
|
+
localVarQueryParameter['readonly'] = readonly;
|
|
13495
|
+
}
|
|
13496
|
+
|
|
13986
13497
|
|
|
13987
13498
|
|
|
13499
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13500
|
+
|
|
13988
13501
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13989
13502
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13990
13503
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
13504
|
+
localVarRequestOptions.data = serializeDataIfNeeded(adminOrderRequestDTO, localVarRequestOptions, configuration)
|
|
13991
13505
|
|
|
13992
13506
|
return {
|
|
13993
13507
|
url: toPathString(localVarUrlObj),
|
|
@@ -13995,14 +13509,15 @@ export const OAuth20ApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
13995
13509
|
};
|
|
13996
13510
|
},
|
|
13997
13511
|
/**
|
|
13998
|
-
*
|
|
13999
|
-
* @summary
|
|
14000
|
-
* @param {
|
|
13512
|
+
* Create An Order (Beta)
|
|
13513
|
+
* @summary Create An Order (Beta)
|
|
13514
|
+
* @param {boolean} [readonly] Readonly Order
|
|
13515
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
14001
13516
|
* @param {*} [options] Override http request option.
|
|
14002
13517
|
* @throws {RequiredError}
|
|
14003
13518
|
*/
|
|
14004
|
-
|
|
14005
|
-
const localVarPath = `/
|
|
13519
|
+
postGetOrders: async (readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13520
|
+
const localVarPath = `/orders`;
|
|
14006
13521
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14007
13522
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
14008
13523
|
let baseOptions;
|
|
@@ -14014,6 +13529,10 @@ export const OAuth20ApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
14014
13529
|
const localVarHeaderParameter = {} as any;
|
|
14015
13530
|
const localVarQueryParameter = {} as any;
|
|
14016
13531
|
|
|
13532
|
+
if (readonly !== undefined) {
|
|
13533
|
+
localVarQueryParameter['readonly'] = readonly;
|
|
13534
|
+
}
|
|
13535
|
+
|
|
14017
13536
|
|
|
14018
13537
|
|
|
14019
13538
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -14021,7 +13540,93 @@ export const OAuth20ApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
14021
13540
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14022
13541
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14023
13542
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
14024
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
13543
|
+
localVarRequestOptions.data = serializeDataIfNeeded(customerOrderRequestDTO, localVarRequestOptions, configuration)
|
|
13544
|
+
|
|
13545
|
+
return {
|
|
13546
|
+
url: toPathString(localVarUrlObj),
|
|
13547
|
+
options: localVarRequestOptions,
|
|
13548
|
+
};
|
|
13549
|
+
},
|
|
13550
|
+
/**
|
|
13551
|
+
* Update An Order (Admin)
|
|
13552
|
+
* @summary Update An Order (Admin)
|
|
13553
|
+
* @param {number} id Order ID
|
|
13554
|
+
* @param {boolean} [readonly] Readonly Order
|
|
13555
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
|
|
13556
|
+
* @param {*} [options] Override http request option.
|
|
13557
|
+
* @throws {RequiredError}
|
|
13558
|
+
*/
|
|
13559
|
+
putUpdateAdminOrder: async (id: number, readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13560
|
+
// verify required parameter 'id' is not null or undefined
|
|
13561
|
+
assertParamExists('putUpdateAdminOrder', 'id', id)
|
|
13562
|
+
const localVarPath = `/admin/orders/{id}`
|
|
13563
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
13564
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13565
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13566
|
+
let baseOptions;
|
|
13567
|
+
if (configuration) {
|
|
13568
|
+
baseOptions = configuration.baseOptions;
|
|
13569
|
+
}
|
|
13570
|
+
|
|
13571
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
13572
|
+
const localVarHeaderParameter = {} as any;
|
|
13573
|
+
const localVarQueryParameter = {} as any;
|
|
13574
|
+
|
|
13575
|
+
if (readonly !== undefined) {
|
|
13576
|
+
localVarQueryParameter['readonly'] = readonly;
|
|
13577
|
+
}
|
|
13578
|
+
|
|
13579
|
+
|
|
13580
|
+
|
|
13581
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13582
|
+
|
|
13583
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13584
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13585
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
13586
|
+
localVarRequestOptions.data = serializeDataIfNeeded(adminOrderRequestDTO, localVarRequestOptions, configuration)
|
|
13587
|
+
|
|
13588
|
+
return {
|
|
13589
|
+
url: toPathString(localVarUrlObj),
|
|
13590
|
+
options: localVarRequestOptions,
|
|
13591
|
+
};
|
|
13592
|
+
},
|
|
13593
|
+
/**
|
|
13594
|
+
* Update An Order (Beta)
|
|
13595
|
+
* @summary Update An Order (Beta)
|
|
13596
|
+
* @param {number} id Order ID
|
|
13597
|
+
* @param {boolean} [readonly] Readonly Order
|
|
13598
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
13599
|
+
* @param {*} [options] Override http request option.
|
|
13600
|
+
* @throws {RequiredError}
|
|
13601
|
+
*/
|
|
13602
|
+
putUpdateOrder: async (id: number, readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13603
|
+
// verify required parameter 'id' is not null or undefined
|
|
13604
|
+
assertParamExists('putUpdateOrder', 'id', id)
|
|
13605
|
+
const localVarPath = `/orders/{id}`
|
|
13606
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
13607
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13608
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13609
|
+
let baseOptions;
|
|
13610
|
+
if (configuration) {
|
|
13611
|
+
baseOptions = configuration.baseOptions;
|
|
13612
|
+
}
|
|
13613
|
+
|
|
13614
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
13615
|
+
const localVarHeaderParameter = {} as any;
|
|
13616
|
+
const localVarQueryParameter = {} as any;
|
|
13617
|
+
|
|
13618
|
+
if (readonly !== undefined) {
|
|
13619
|
+
localVarQueryParameter['readonly'] = readonly;
|
|
13620
|
+
}
|
|
13621
|
+
|
|
13622
|
+
|
|
13623
|
+
|
|
13624
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13625
|
+
|
|
13626
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13627
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13628
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
13629
|
+
localVarRequestOptions.data = serializeDataIfNeeded(customerOrderRequestDTO, localVarRequestOptions, configuration)
|
|
14025
13630
|
|
|
14026
13631
|
return {
|
|
14027
13632
|
url: toPathString(localVarUrlObj),
|
|
@@ -14032,801 +13637,118 @@ export const OAuth20ApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
14032
13637
|
};
|
|
14033
13638
|
|
|
14034
13639
|
/**
|
|
14035
|
-
*
|
|
13640
|
+
* OrdersApi - functional programming interface
|
|
14036
13641
|
*/
|
|
14037
|
-
export const
|
|
14038
|
-
const localVarAxiosParamCreator =
|
|
13642
|
+
export const OrdersApiFp = function(configuration?: Configuration) {
|
|
13643
|
+
const localVarAxiosParamCreator = OrdersApiAxiosParamCreator(configuration)
|
|
14039
13644
|
return {
|
|
14040
13645
|
/**
|
|
14041
|
-
*
|
|
14042
|
-
* @summary
|
|
13646
|
+
* Delete Orders (Beta)
|
|
13647
|
+
* @summary Delete Orders (Beta)
|
|
13648
|
+
* @param {number} id Order ID
|
|
14043
13649
|
* @param {*} [options] Override http request option.
|
|
14044
13650
|
* @throws {RequiredError}
|
|
14045
13651
|
*/
|
|
14046
|
-
async
|
|
14047
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
13652
|
+
async deleteUpdateOrder(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
13653
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUpdateOrder(id, options);
|
|
14048
13654
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
14049
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
13655
|
+
const localVarOperationServerBasePath = operationServerMap['OrdersApi.deleteUpdateOrder']?.[localVarOperationServerIndex]?.url;
|
|
14050
13656
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14051
13657
|
},
|
|
14052
13658
|
/**
|
|
14053
|
-
* Get
|
|
14054
|
-
* @summary Get
|
|
13659
|
+
* Get Editable Order (Admin)
|
|
13660
|
+
* @summary Get Editable Order (Admin)
|
|
13661
|
+
* @param {number} id Order ID
|
|
14055
13662
|
* @param {*} [options] Override http request option.
|
|
14056
13663
|
* @throws {RequiredError}
|
|
14057
13664
|
*/
|
|
14058
|
-
async
|
|
14059
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
13665
|
+
async getGetAdminEditableOrder(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminOrderRequestDTO>> {
|
|
13666
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetAdminEditableOrder(id, options);
|
|
14060
13667
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
14061
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
13668
|
+
const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetAdminEditableOrder']?.[localVarOperationServerIndex]?.url;
|
|
14062
13669
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14063
13670
|
},
|
|
14064
13671
|
/**
|
|
14065
|
-
* Get
|
|
14066
|
-
* @summary
|
|
14067
|
-
* @param {
|
|
14068
|
-
* @param {string | null} [clientSecret] OAuth 2.0 Client Secret
|
|
14069
|
-
* @param {PostAccessTokenGrantTypeEnum} [grantType] OAuth 2.0 Grant Type
|
|
14070
|
-
* @param {PostAccessTokenScopeEnum} [scope] OAuth 2.0 Scope
|
|
14071
|
-
* @param {string | null} [redirectUri] OAuth 2.0 Redirect URI
|
|
14072
|
-
* @param {string | null} [code] OAuth 2.0 Auth Code
|
|
14073
|
-
* @param {string | null} [refreshToken] OAuth 2.0 Refresh Token
|
|
14074
|
-
* @param {string | null} [codeVerifier] OAuth 2.0 Code Verifier
|
|
14075
|
-
* @param {string | null} [token] OAuth 2.0 Token (Only used in Token Exchange)
|
|
14076
|
-
* @param {PostAccessTokenTokenExchangeTypeEnum} [tokenExchangeType] Token Exchange Type (Only used in Token Exchange)
|
|
14077
|
-
* @param {string | null} [licenceKey] 3CX Licence Key (Only used in Token Exchange)
|
|
14078
|
-
* @param {boolean | null} [endUser] End User (Only used in Token Exchange)
|
|
13672
|
+
* Get Editable Order (Beta)
|
|
13673
|
+
* @summary Get Editable Order (Beta)
|
|
13674
|
+
* @param {number} id Order ID
|
|
14079
13675
|
* @param {*} [options] Override http request option.
|
|
14080
13676
|
* @throws {RequiredError}
|
|
14081
13677
|
*/
|
|
14082
|
-
async
|
|
14083
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
13678
|
+
async getGetEditableOrder(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DetailedOrderRequestDTO>> {
|
|
13679
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetEditableOrder(id, options);
|
|
14084
13680
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
14085
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
13681
|
+
const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetEditableOrder']?.[localVarOperationServerIndex]?.url;
|
|
14086
13682
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14087
13683
|
},
|
|
14088
13684
|
/**
|
|
14089
|
-
* Get
|
|
14090
|
-
* @summary Get
|
|
14091
|
-
* @param {
|
|
14092
|
-
* @param {
|
|
14093
|
-
* @param {
|
|
14094
|
-
* @param {
|
|
14095
|
-
* @param {
|
|
14096
|
-
* @param {
|
|
14097
|
-
* @param {
|
|
13685
|
+
* Get Orders (Beta)
|
|
13686
|
+
* @summary Get Orders (Beta)
|
|
13687
|
+
* @param {number} [pageSize] Number Of Results
|
|
13688
|
+
* @param {number} [page] Page Number
|
|
13689
|
+
* @param {string} [search] Search
|
|
13690
|
+
* @param {boolean | null} [fulfillable] Fulfillable
|
|
13691
|
+
* @param {GetGetOrdersStatusEnum} [status] Status
|
|
13692
|
+
* @param {GetGetOrdersFilterEnum} [filter] Filter
|
|
13693
|
+
* @param {number | null} [customerId] Customer ID
|
|
14098
13694
|
* @param {*} [options] Override http request option.
|
|
14099
13695
|
* @throws {RequiredError}
|
|
14100
13696
|
*/
|
|
14101
|
-
async
|
|
14102
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
13697
|
+
async getGetOrders(pageSize?: number, page?: number, search?: string, fulfillable?: boolean | null, status?: GetGetOrdersStatusEnum, filter?: GetGetOrdersFilterEnum, customerId?: number | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderSummariesModel>> {
|
|
13698
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetOrders(pageSize, page, search, fulfillable, status, filter, customerId, options);
|
|
14103
13699
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
14104
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
13700
|
+
const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetOrders']?.[localVarOperationServerIndex]?.url;
|
|
14105
13701
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14106
13702
|
},
|
|
14107
13703
|
/**
|
|
14108
|
-
*
|
|
14109
|
-
* @summary
|
|
13704
|
+
* Create An Order (Admin)
|
|
13705
|
+
* @summary Create An Order (Admin)
|
|
13706
|
+
* @param {boolean} [readonly] Readonly Order
|
|
13707
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
|
|
14110
13708
|
* @param {*} [options] Override http request option.
|
|
14111
13709
|
* @throws {RequiredError}
|
|
14112
13710
|
*/
|
|
14113
|
-
async
|
|
14114
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
13711
|
+
async postCreateAdminOrder(readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OrderSummaryDTO>>> {
|
|
13712
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postCreateAdminOrder(readonly, adminOrderRequestDTO, options);
|
|
14115
13713
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
14116
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
13714
|
+
const localVarOperationServerBasePath = operationServerMap['OrdersApi.postCreateAdminOrder']?.[localVarOperationServerIndex]?.url;
|
|
14117
13715
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14118
13716
|
},
|
|
14119
13717
|
/**
|
|
14120
|
-
*
|
|
14121
|
-
* @summary
|
|
14122
|
-
* @param {
|
|
13718
|
+
* Create An Order (Beta)
|
|
13719
|
+
* @summary Create An Order (Beta)
|
|
13720
|
+
* @param {boolean} [readonly] Readonly Order
|
|
13721
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
14123
13722
|
* @param {*} [options] Override http request option.
|
|
14124
13723
|
* @throws {RequiredError}
|
|
14125
13724
|
*/
|
|
14126
|
-
async
|
|
14127
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
13725
|
+
async postGetOrders(readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OrderSummaryDTO>>> {
|
|
13726
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postGetOrders(readonly, customerOrderRequestDTO, options);
|
|
14128
13727
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
14129
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
13728
|
+
const localVarOperationServerBasePath = operationServerMap['OrdersApi.postGetOrders']?.[localVarOperationServerIndex]?.url;
|
|
14130
13729
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14131
13730
|
},
|
|
14132
|
-
}
|
|
14133
|
-
};
|
|
14134
|
-
|
|
14135
|
-
/**
|
|
14136
|
-
* OAuth20Api - factory interface
|
|
14137
|
-
*/
|
|
14138
|
-
export const OAuth20ApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
14139
|
-
const localVarFp = OAuth20ApiFp(configuration)
|
|
14140
|
-
return {
|
|
14141
13731
|
/**
|
|
14142
|
-
*
|
|
14143
|
-
* @summary
|
|
13732
|
+
* Update An Order (Admin)
|
|
13733
|
+
* @summary Update An Order (Admin)
|
|
13734
|
+
* @param {number} id Order ID
|
|
13735
|
+
* @param {boolean} [readonly] Readonly Order
|
|
13736
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
|
|
14144
13737
|
* @param {*} [options] Override http request option.
|
|
14145
13738
|
* @throws {RequiredError}
|
|
14146
13739
|
*/
|
|
14147
|
-
|
|
14148
|
-
|
|
13740
|
+
async putUpdateAdminOrder(id: number, readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OrderSummaryDTO>>> {
|
|
13741
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.putUpdateAdminOrder(id, readonly, adminOrderRequestDTO, options);
|
|
13742
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
13743
|
+
const localVarOperationServerBasePath = operationServerMap['OrdersApi.putUpdateAdminOrder']?.[localVarOperationServerIndex]?.url;
|
|
13744
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14149
13745
|
},
|
|
14150
13746
|
/**
|
|
14151
|
-
*
|
|
14152
|
-
* @summary
|
|
14153
|
-
* @param {
|
|
14154
|
-
* @
|
|
14155
|
-
|
|
14156
|
-
getGetScopes(options?: RawAxiosRequestConfig): AxiosPromise<Array<ScopeModel>> {
|
|
14157
|
-
return localVarFp.getGetScopes(options).then((request) => request(axios, basePath));
|
|
14158
|
-
},
|
|
14159
|
-
/**
|
|
14160
|
-
* Get an OAuth 2.0 access token
|
|
14161
|
-
* @summary Validates client credentials and returns access token
|
|
14162
|
-
* @param {string | null} [clientId] OAuth 2.0 Client ID
|
|
14163
|
-
* @param {string | null} [clientSecret] OAuth 2.0 Client Secret
|
|
14164
|
-
* @param {PostAccessTokenGrantTypeEnum} [grantType] OAuth 2.0 Grant Type
|
|
14165
|
-
* @param {PostAccessTokenScopeEnum} [scope] OAuth 2.0 Scope
|
|
14166
|
-
* @param {string | null} [redirectUri] OAuth 2.0 Redirect URI
|
|
14167
|
-
* @param {string | null} [code] OAuth 2.0 Auth Code
|
|
14168
|
-
* @param {string | null} [refreshToken] OAuth 2.0 Refresh Token
|
|
14169
|
-
* @param {string | null} [codeVerifier] OAuth 2.0 Code Verifier
|
|
14170
|
-
* @param {string | null} [token] OAuth 2.0 Token (Only used in Token Exchange)
|
|
14171
|
-
* @param {PostAccessTokenTokenExchangeTypeEnum} [tokenExchangeType] Token Exchange Type (Only used in Token Exchange)
|
|
14172
|
-
* @param {string | null} [licenceKey] 3CX Licence Key (Only used in Token Exchange)
|
|
14173
|
-
* @param {boolean | null} [endUser] End User (Only used in Token Exchange)
|
|
14174
|
-
* @param {*} [options] Override http request option.
|
|
14175
|
-
* @throws {RequiredError}
|
|
14176
|
-
*/
|
|
14177
|
-
postAccessToken(clientId?: string | null, clientSecret?: string | null, grantType?: PostAccessTokenGrantTypeEnum, scope?: PostAccessTokenScopeEnum, redirectUri?: string | null, code?: string | null, refreshToken?: string | null, codeVerifier?: string | null, token?: string | null, tokenExchangeType?: PostAccessTokenTokenExchangeTypeEnum, licenceKey?: string | null, endUser?: boolean | null, options?: RawAxiosRequestConfig): AxiosPromise<TokenResponseModel> {
|
|
14178
|
-
return localVarFp.postAccessToken(clientId, clientSecret, grantType, scope, redirectUri, code, refreshToken, codeVerifier, token, tokenExchangeType, licenceKey, endUser, options).then((request) => request(axios, basePath));
|
|
14179
|
-
},
|
|
14180
|
-
/**
|
|
14181
|
-
* Get an OAuth 2.0 auth code
|
|
14182
|
-
* @summary Get OAuth2.0 Auth Code
|
|
14183
|
-
* @param {string} clientId OAuth 2.0 Client ID
|
|
14184
|
-
* @param {string} responseType OAuth 2.0 Response Type
|
|
14185
|
-
* @param {PostAuthoriseScopeEnum} scope OAuth 2.0 Scope
|
|
14186
|
-
* @param {string} [redirectUri] OAuth 2.0 Redirect URI
|
|
14187
|
-
* @param {string} [state] OAuth 2.0 State
|
|
14188
|
-
* @param {string} [codeChallenge] OAuth 2.0 Code Challenge
|
|
14189
|
-
* @param {string} [codeChallengeMethod] OAuth 2.0 Code Challenge Method
|
|
14190
|
-
* @param {*} [options] Override http request option.
|
|
14191
|
-
* @throws {RequiredError}
|
|
14192
|
-
*/
|
|
14193
|
-
postAuthorise(clientId: string, responseType: string, scope: PostAuthoriseScopeEnum, redirectUri?: string, state?: string, codeChallenge?: string, codeChallengeMethod?: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
14194
|
-
return localVarFp.postAuthorise(clientId, responseType, scope, redirectUri, state, codeChallenge, codeChallengeMethod, options).then((request) => request(axios, basePath));
|
|
14195
|
-
},
|
|
14196
|
-
/**
|
|
14197
|
-
* Get Token Identity
|
|
14198
|
-
* @summary Get Token Identity
|
|
14199
|
-
* @param {*} [options] Override http request option.
|
|
14200
|
-
* @throws {RequiredError}
|
|
14201
|
-
*/
|
|
14202
|
-
postGetIdentity(options?: RawAxiosRequestConfig): AxiosPromise<ClientDetailsModel> {
|
|
14203
|
-
return localVarFp.postGetIdentity(options).then((request) => request(axios, basePath));
|
|
14204
|
-
},
|
|
14205
|
-
/**
|
|
14206
|
-
* Portal Login
|
|
14207
|
-
* @summary Portal Login
|
|
14208
|
-
* @param {PortalLoginModel} [portalLoginModel] Login Credentials
|
|
14209
|
-
* @param {*} [options] Override http request option.
|
|
14210
|
-
* @throws {RequiredError}
|
|
14211
|
-
*/
|
|
14212
|
-
postPortalLogin(portalLoginModel?: PortalLoginModel, options?: RawAxiosRequestConfig): AxiosPromise<AuthCodeResponseModel> {
|
|
14213
|
-
return localVarFp.postPortalLogin(portalLoginModel, options).then((request) => request(axios, basePath));
|
|
14214
|
-
},
|
|
14215
|
-
};
|
|
14216
|
-
};
|
|
14217
|
-
|
|
14218
|
-
/**
|
|
14219
|
-
* OAuth20Api - object-oriented interface
|
|
14220
|
-
*/
|
|
14221
|
-
export class OAuth20Api extends BaseAPI {
|
|
14222
|
-
/**
|
|
14223
|
-
* Get MFA QR Code
|
|
14224
|
-
* @summary Get MFA QR Code
|
|
14225
|
-
* @param {*} [options] Override http request option.
|
|
14226
|
-
* @throws {RequiredError}
|
|
14227
|
-
*/
|
|
14228
|
-
public getGetMfaQrCode(options?: RawAxiosRequestConfig) {
|
|
14229
|
-
return OAuth20ApiFp(this.configuration).getGetMfaQrCode(options).then((request) => request(this.axios, this.basePath));
|
|
14230
|
-
}
|
|
14231
|
-
|
|
14232
|
-
/**
|
|
14233
|
-
* Get Scopes
|
|
14234
|
-
* @summary Get Scopes
|
|
14235
|
-
* @param {*} [options] Override http request option.
|
|
14236
|
-
* @throws {RequiredError}
|
|
14237
|
-
*/
|
|
14238
|
-
public getGetScopes(options?: RawAxiosRequestConfig) {
|
|
14239
|
-
return OAuth20ApiFp(this.configuration).getGetScopes(options).then((request) => request(this.axios, this.basePath));
|
|
14240
|
-
}
|
|
14241
|
-
|
|
14242
|
-
/**
|
|
14243
|
-
* Get an OAuth 2.0 access token
|
|
14244
|
-
* @summary Validates client credentials and returns access token
|
|
14245
|
-
* @param {string | null} [clientId] OAuth 2.0 Client ID
|
|
14246
|
-
* @param {string | null} [clientSecret] OAuth 2.0 Client Secret
|
|
14247
|
-
* @param {PostAccessTokenGrantTypeEnum} [grantType] OAuth 2.0 Grant Type
|
|
14248
|
-
* @param {PostAccessTokenScopeEnum} [scope] OAuth 2.0 Scope
|
|
14249
|
-
* @param {string | null} [redirectUri] OAuth 2.0 Redirect URI
|
|
14250
|
-
* @param {string | null} [code] OAuth 2.0 Auth Code
|
|
14251
|
-
* @param {string | null} [refreshToken] OAuth 2.0 Refresh Token
|
|
14252
|
-
* @param {string | null} [codeVerifier] OAuth 2.0 Code Verifier
|
|
14253
|
-
* @param {string | null} [token] OAuth 2.0 Token (Only used in Token Exchange)
|
|
14254
|
-
* @param {PostAccessTokenTokenExchangeTypeEnum} [tokenExchangeType] Token Exchange Type (Only used in Token Exchange)
|
|
14255
|
-
* @param {string | null} [licenceKey] 3CX Licence Key (Only used in Token Exchange)
|
|
14256
|
-
* @param {boolean | null} [endUser] End User (Only used in Token Exchange)
|
|
14257
|
-
* @param {*} [options] Override http request option.
|
|
14258
|
-
* @throws {RequiredError}
|
|
14259
|
-
*/
|
|
14260
|
-
public postAccessToken(clientId?: string | null, clientSecret?: string | null, grantType?: PostAccessTokenGrantTypeEnum, scope?: PostAccessTokenScopeEnum, redirectUri?: string | null, code?: string | null, refreshToken?: string | null, codeVerifier?: string | null, token?: string | null, tokenExchangeType?: PostAccessTokenTokenExchangeTypeEnum, licenceKey?: string | null, endUser?: boolean | null, options?: RawAxiosRequestConfig) {
|
|
14261
|
-
return OAuth20ApiFp(this.configuration).postAccessToken(clientId, clientSecret, grantType, scope, redirectUri, code, refreshToken, codeVerifier, token, tokenExchangeType, licenceKey, endUser, options).then((request) => request(this.axios, this.basePath));
|
|
14262
|
-
}
|
|
14263
|
-
|
|
14264
|
-
/**
|
|
14265
|
-
* Get an OAuth 2.0 auth code
|
|
14266
|
-
* @summary Get OAuth2.0 Auth Code
|
|
14267
|
-
* @param {string} clientId OAuth 2.0 Client ID
|
|
14268
|
-
* @param {string} responseType OAuth 2.0 Response Type
|
|
14269
|
-
* @param {PostAuthoriseScopeEnum} scope OAuth 2.0 Scope
|
|
14270
|
-
* @param {string} [redirectUri] OAuth 2.0 Redirect URI
|
|
14271
|
-
* @param {string} [state] OAuth 2.0 State
|
|
14272
|
-
* @param {string} [codeChallenge] OAuth 2.0 Code Challenge
|
|
14273
|
-
* @param {string} [codeChallengeMethod] OAuth 2.0 Code Challenge Method
|
|
14274
|
-
* @param {*} [options] Override http request option.
|
|
14275
|
-
* @throws {RequiredError}
|
|
14276
|
-
*/
|
|
14277
|
-
public postAuthorise(clientId: string, responseType: string, scope: PostAuthoriseScopeEnum, redirectUri?: string, state?: string, codeChallenge?: string, codeChallengeMethod?: string, options?: RawAxiosRequestConfig) {
|
|
14278
|
-
return OAuth20ApiFp(this.configuration).postAuthorise(clientId, responseType, scope, redirectUri, state, codeChallenge, codeChallengeMethod, options).then((request) => request(this.axios, this.basePath));
|
|
14279
|
-
}
|
|
14280
|
-
|
|
14281
|
-
/**
|
|
14282
|
-
* Get Token Identity
|
|
14283
|
-
* @summary Get Token Identity
|
|
14284
|
-
* @param {*} [options] Override http request option.
|
|
14285
|
-
* @throws {RequiredError}
|
|
14286
|
-
*/
|
|
14287
|
-
public postGetIdentity(options?: RawAxiosRequestConfig) {
|
|
14288
|
-
return OAuth20ApiFp(this.configuration).postGetIdentity(options).then((request) => request(this.axios, this.basePath));
|
|
14289
|
-
}
|
|
14290
|
-
|
|
14291
|
-
/**
|
|
14292
|
-
* Portal Login
|
|
14293
|
-
* @summary Portal Login
|
|
14294
|
-
* @param {PortalLoginModel} [portalLoginModel] Login Credentials
|
|
14295
|
-
* @param {*} [options] Override http request option.
|
|
14296
|
-
* @throws {RequiredError}
|
|
14297
|
-
*/
|
|
14298
|
-
public postPortalLogin(portalLoginModel?: PortalLoginModel, options?: RawAxiosRequestConfig) {
|
|
14299
|
-
return OAuth20ApiFp(this.configuration).postPortalLogin(portalLoginModel, options).then((request) => request(this.axios, this.basePath));
|
|
14300
|
-
}
|
|
14301
|
-
}
|
|
14302
|
-
|
|
14303
|
-
export const PostAccessTokenGrantTypeEnum = {
|
|
14304
|
-
ClientCredentials: 'client_credentials',
|
|
14305
|
-
Code: 'code',
|
|
14306
|
-
RefreshToken: 'refresh_token',
|
|
14307
|
-
AuthorizationCode: 'authorization_code',
|
|
14308
|
-
MsAuth: 'ms_auth',
|
|
14309
|
-
TokenExchange: 'token_exchange',
|
|
14310
|
-
Password: 'password'
|
|
14311
|
-
} as const;
|
|
14312
|
-
export type PostAccessTokenGrantTypeEnum = typeof PostAccessTokenGrantTypeEnum[keyof typeof PostAccessTokenGrantTypeEnum];
|
|
14313
|
-
export const PostAccessTokenScopeEnum = {
|
|
14314
|
-
Star: '*',
|
|
14315
|
-
Fdps: 'fdps',
|
|
14316
|
-
Scope: 'scope',
|
|
14317
|
-
Portal: 'portal',
|
|
14318
|
-
TcxWizard: 'tcx_wizard',
|
|
14319
|
-
AccountsRead: 'accounts.read',
|
|
14320
|
-
AccountsWrite: 'accounts.write',
|
|
14321
|
-
NumberPortingRead: 'number_porting.read',
|
|
14322
|
-
NumberPortingWrite: 'number_porting.write',
|
|
14323
|
-
PricingRead: 'pricing.read',
|
|
14324
|
-
OrdersRead: 'orders.read',
|
|
14325
|
-
OrdersWrite: 'orders.write',
|
|
14326
|
-
ProductsRead: 'products.read',
|
|
14327
|
-
ProvisioningRead: 'provisioning.read',
|
|
14328
|
-
ProvisioningWrite: 'provisioning.write',
|
|
14329
|
-
TrunksRead: 'trunks.read',
|
|
14330
|
-
TrunksWrite: 'trunks.write',
|
|
14331
|
-
TcxIntegrationsRead: 'tcx_integrations.read',
|
|
14332
|
-
TcxIntegrationsWrite: 'tcx_integrations.write',
|
|
14333
|
-
TcxLicenceDetailsRead: 'tcx_licence_details.read',
|
|
14334
|
-
TcxInstallationsRead: 'tcx_installations.read',
|
|
14335
|
-
TcxInstallationsWrite: 'tcx_installations.write',
|
|
14336
|
-
TcxMtRead: 'tcx_mt.read',
|
|
14337
|
-
TcxMtWrite: 'tcx_mt.write',
|
|
14338
|
-
TicketsRead: 'tickets.read',
|
|
14339
|
-
TicketsWrite: 'tickets.write'
|
|
14340
|
-
} as const;
|
|
14341
|
-
export type PostAccessTokenScopeEnum = typeof PostAccessTokenScopeEnum[keyof typeof PostAccessTokenScopeEnum];
|
|
14342
|
-
export const PostAccessTokenTokenExchangeTypeEnum = {
|
|
14343
|
-
TcxWizard: 'tcx_wizard',
|
|
14344
|
-
Portal: 'portal'
|
|
14345
|
-
} as const;
|
|
14346
|
-
export type PostAccessTokenTokenExchangeTypeEnum = typeof PostAccessTokenTokenExchangeTypeEnum[keyof typeof PostAccessTokenTokenExchangeTypeEnum];
|
|
14347
|
-
export const PostAuthoriseScopeEnum = {
|
|
14348
|
-
Star: '*',
|
|
14349
|
-
Fdps: 'fdps',
|
|
14350
|
-
Scope: 'scope',
|
|
14351
|
-
Portal: 'portal',
|
|
14352
|
-
TcxWizard: 'tcx_wizard',
|
|
14353
|
-
AccountsRead: 'accounts.read',
|
|
14354
|
-
AccountsWrite: 'accounts.write',
|
|
14355
|
-
NumberPortingRead: 'number_porting.read',
|
|
14356
|
-
NumberPortingWrite: 'number_porting.write',
|
|
14357
|
-
PricingRead: 'pricing.read',
|
|
14358
|
-
OrdersRead: 'orders.read',
|
|
14359
|
-
OrdersWrite: 'orders.write',
|
|
14360
|
-
ProductsRead: 'products.read',
|
|
14361
|
-
ProvisioningRead: 'provisioning.read',
|
|
14362
|
-
ProvisioningWrite: 'provisioning.write',
|
|
14363
|
-
TrunksRead: 'trunks.read',
|
|
14364
|
-
TrunksWrite: 'trunks.write',
|
|
14365
|
-
TcxIntegrationsRead: 'tcx_integrations.read',
|
|
14366
|
-
TcxIntegrationsWrite: 'tcx_integrations.write',
|
|
14367
|
-
TcxLicenceDetailsRead: 'tcx_licence_details.read',
|
|
14368
|
-
TcxInstallationsRead: 'tcx_installations.read',
|
|
14369
|
-
TcxInstallationsWrite: 'tcx_installations.write',
|
|
14370
|
-
TcxMtRead: 'tcx_mt.read',
|
|
14371
|
-
TcxMtWrite: 'tcx_mt.write',
|
|
14372
|
-
TicketsRead: 'tickets.read',
|
|
14373
|
-
TicketsWrite: 'tickets.write'
|
|
14374
|
-
} as const;
|
|
14375
|
-
export type PostAuthoriseScopeEnum = typeof PostAuthoriseScopeEnum[keyof typeof PostAuthoriseScopeEnum];
|
|
14376
|
-
|
|
14377
|
-
|
|
14378
|
-
/**
|
|
14379
|
-
* OrdersApi - axios parameter creator
|
|
14380
|
-
*/
|
|
14381
|
-
export const OrdersApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
14382
|
-
return {
|
|
14383
|
-
/**
|
|
14384
|
-
* Delete Orders (Beta)
|
|
14385
|
-
* @summary Delete Orders (Beta)
|
|
14386
|
-
* @param {number} id Order ID
|
|
14387
|
-
* @param {*} [options] Override http request option.
|
|
14388
|
-
* @throws {RequiredError}
|
|
14389
|
-
*/
|
|
14390
|
-
deleteUpdateOrder: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
14391
|
-
// verify required parameter 'id' is not null or undefined
|
|
14392
|
-
assertParamExists('deleteUpdateOrder', 'id', id)
|
|
14393
|
-
const localVarPath = `/orders/{id}`
|
|
14394
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
14395
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14396
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
14397
|
-
let baseOptions;
|
|
14398
|
-
if (configuration) {
|
|
14399
|
-
baseOptions = configuration.baseOptions;
|
|
14400
|
-
}
|
|
14401
|
-
|
|
14402
|
-
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
14403
|
-
const localVarHeaderParameter = {} as any;
|
|
14404
|
-
const localVarQueryParameter = {} as any;
|
|
14405
|
-
|
|
14406
|
-
|
|
14407
|
-
|
|
14408
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14409
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14410
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
14411
|
-
|
|
14412
|
-
return {
|
|
14413
|
-
url: toPathString(localVarUrlObj),
|
|
14414
|
-
options: localVarRequestOptions,
|
|
14415
|
-
};
|
|
14416
|
-
},
|
|
14417
|
-
/**
|
|
14418
|
-
* Get Editable Order (Admin)
|
|
14419
|
-
* @summary Get Editable Order (Admin)
|
|
14420
|
-
* @param {number} id Order ID
|
|
14421
|
-
* @param {*} [options] Override http request option.
|
|
14422
|
-
* @throws {RequiredError}
|
|
14423
|
-
*/
|
|
14424
|
-
getGetAdminEditableOrder: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
14425
|
-
// verify required parameter 'id' is not null or undefined
|
|
14426
|
-
assertParamExists('getGetAdminEditableOrder', 'id', id)
|
|
14427
|
-
const localVarPath = `/admin/orders/{id}/views/editable`
|
|
14428
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
14429
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14430
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
14431
|
-
let baseOptions;
|
|
14432
|
-
if (configuration) {
|
|
14433
|
-
baseOptions = configuration.baseOptions;
|
|
14434
|
-
}
|
|
14435
|
-
|
|
14436
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
14437
|
-
const localVarHeaderParameter = {} as any;
|
|
14438
|
-
const localVarQueryParameter = {} as any;
|
|
14439
|
-
|
|
14440
|
-
|
|
14441
|
-
|
|
14442
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14443
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14444
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
14445
|
-
|
|
14446
|
-
return {
|
|
14447
|
-
url: toPathString(localVarUrlObj),
|
|
14448
|
-
options: localVarRequestOptions,
|
|
14449
|
-
};
|
|
14450
|
-
},
|
|
14451
|
-
/**
|
|
14452
|
-
* Get Editable Order (Beta)
|
|
14453
|
-
* @summary Get Editable Order (Beta)
|
|
14454
|
-
* @param {number} id Order ID
|
|
14455
|
-
* @param {*} [options] Override http request option.
|
|
14456
|
-
* @throws {RequiredError}
|
|
14457
|
-
*/
|
|
14458
|
-
getGetEditableOrder: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
14459
|
-
// verify required parameter 'id' is not null or undefined
|
|
14460
|
-
assertParamExists('getGetEditableOrder', 'id', id)
|
|
14461
|
-
const localVarPath = `/orders/{id}/views/editable`
|
|
14462
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
14463
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14464
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
14465
|
-
let baseOptions;
|
|
14466
|
-
if (configuration) {
|
|
14467
|
-
baseOptions = configuration.baseOptions;
|
|
14468
|
-
}
|
|
14469
|
-
|
|
14470
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
14471
|
-
const localVarHeaderParameter = {} as any;
|
|
14472
|
-
const localVarQueryParameter = {} as any;
|
|
14473
|
-
|
|
14474
|
-
|
|
14475
|
-
|
|
14476
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14477
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14478
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
14479
|
-
|
|
14480
|
-
return {
|
|
14481
|
-
url: toPathString(localVarUrlObj),
|
|
14482
|
-
options: localVarRequestOptions,
|
|
14483
|
-
};
|
|
14484
|
-
},
|
|
14485
|
-
/**
|
|
14486
|
-
* Get Orders (Beta)
|
|
14487
|
-
* @summary Get Orders (Beta)
|
|
14488
|
-
* @param {number} [pageSize] Number Of Results
|
|
14489
|
-
* @param {number} [page] Page Number
|
|
14490
|
-
* @param {string} [search] Search
|
|
14491
|
-
* @param {boolean | null} [fulfillable] Fulfillable
|
|
14492
|
-
* @param {GetGetOrdersStatusEnum} [status] Status
|
|
14493
|
-
* @param {GetGetOrdersFilterEnum} [filter] Filter
|
|
14494
|
-
* @param {number | null} [customerId] Customer ID
|
|
14495
|
-
* @param {*} [options] Override http request option.
|
|
14496
|
-
* @throws {RequiredError}
|
|
14497
|
-
*/
|
|
14498
|
-
getGetOrders: async (pageSize?: number, page?: number, search?: string, fulfillable?: boolean | null, status?: GetGetOrdersStatusEnum, filter?: GetGetOrdersFilterEnum, customerId?: number | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
14499
|
-
const localVarPath = `/orders`;
|
|
14500
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14501
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
14502
|
-
let baseOptions;
|
|
14503
|
-
if (configuration) {
|
|
14504
|
-
baseOptions = configuration.baseOptions;
|
|
14505
|
-
}
|
|
14506
|
-
|
|
14507
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
14508
|
-
const localVarHeaderParameter = {} as any;
|
|
14509
|
-
const localVarQueryParameter = {} as any;
|
|
14510
|
-
|
|
14511
|
-
if (pageSize !== undefined) {
|
|
14512
|
-
localVarQueryParameter['pageSize'] = pageSize;
|
|
14513
|
-
}
|
|
14514
|
-
|
|
14515
|
-
if (page !== undefined) {
|
|
14516
|
-
localVarQueryParameter['page'] = page;
|
|
14517
|
-
}
|
|
14518
|
-
|
|
14519
|
-
if (search !== undefined) {
|
|
14520
|
-
localVarQueryParameter['search'] = search;
|
|
14521
|
-
}
|
|
14522
|
-
|
|
14523
|
-
if (fulfillable !== undefined) {
|
|
14524
|
-
localVarQueryParameter['fulfillable'] = fulfillable;
|
|
14525
|
-
}
|
|
14526
|
-
|
|
14527
|
-
if (status !== undefined) {
|
|
14528
|
-
localVarQueryParameter['status'] = status;
|
|
14529
|
-
}
|
|
14530
|
-
|
|
14531
|
-
if (filter !== undefined) {
|
|
14532
|
-
localVarQueryParameter['filter'] = filter;
|
|
14533
|
-
}
|
|
14534
|
-
|
|
14535
|
-
if (customerId !== undefined) {
|
|
14536
|
-
localVarQueryParameter['customerId'] = customerId;
|
|
14537
|
-
}
|
|
14538
|
-
|
|
14539
|
-
|
|
14540
|
-
|
|
14541
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14542
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14543
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
14544
|
-
|
|
14545
|
-
return {
|
|
14546
|
-
url: toPathString(localVarUrlObj),
|
|
14547
|
-
options: localVarRequestOptions,
|
|
14548
|
-
};
|
|
14549
|
-
},
|
|
14550
|
-
/**
|
|
14551
|
-
* Create An Order (Admin)
|
|
14552
|
-
* @summary Create An Order (Admin)
|
|
14553
|
-
* @param {boolean} [readonly] Readonly Order
|
|
14554
|
-
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
|
|
14555
|
-
* @param {*} [options] Override http request option.
|
|
14556
|
-
* @throws {RequiredError}
|
|
14557
|
-
*/
|
|
14558
|
-
postCreateAdminOrder: async (readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
14559
|
-
const localVarPath = `/admin/orders`;
|
|
14560
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14561
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
14562
|
-
let baseOptions;
|
|
14563
|
-
if (configuration) {
|
|
14564
|
-
baseOptions = configuration.baseOptions;
|
|
14565
|
-
}
|
|
14566
|
-
|
|
14567
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
14568
|
-
const localVarHeaderParameter = {} as any;
|
|
14569
|
-
const localVarQueryParameter = {} as any;
|
|
14570
|
-
|
|
14571
|
-
if (readonly !== undefined) {
|
|
14572
|
-
localVarQueryParameter['readonly'] = readonly;
|
|
14573
|
-
}
|
|
14574
|
-
|
|
14575
|
-
|
|
14576
|
-
|
|
14577
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
14578
|
-
|
|
14579
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14580
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14581
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
14582
|
-
localVarRequestOptions.data = serializeDataIfNeeded(adminOrderRequestDTO, localVarRequestOptions, configuration)
|
|
14583
|
-
|
|
14584
|
-
return {
|
|
14585
|
-
url: toPathString(localVarUrlObj),
|
|
14586
|
-
options: localVarRequestOptions,
|
|
14587
|
-
};
|
|
14588
|
-
},
|
|
14589
|
-
/**
|
|
14590
|
-
* Create An Order (Beta)
|
|
14591
|
-
* @summary Create An Order (Beta)
|
|
14592
|
-
* @param {boolean} [readonly] Readonly Order
|
|
14593
|
-
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
14594
|
-
* @param {*} [options] Override http request option.
|
|
14595
|
-
* @throws {RequiredError}
|
|
14596
|
-
*/
|
|
14597
|
-
postGetOrders: async (readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
14598
|
-
const localVarPath = `/orders`;
|
|
14599
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14600
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
14601
|
-
let baseOptions;
|
|
14602
|
-
if (configuration) {
|
|
14603
|
-
baseOptions = configuration.baseOptions;
|
|
14604
|
-
}
|
|
14605
|
-
|
|
14606
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
14607
|
-
const localVarHeaderParameter = {} as any;
|
|
14608
|
-
const localVarQueryParameter = {} as any;
|
|
14609
|
-
|
|
14610
|
-
if (readonly !== undefined) {
|
|
14611
|
-
localVarQueryParameter['readonly'] = readonly;
|
|
14612
|
-
}
|
|
14613
|
-
|
|
14614
|
-
|
|
14615
|
-
|
|
14616
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
14617
|
-
|
|
14618
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14619
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14620
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
14621
|
-
localVarRequestOptions.data = serializeDataIfNeeded(customerOrderRequestDTO, localVarRequestOptions, configuration)
|
|
14622
|
-
|
|
14623
|
-
return {
|
|
14624
|
-
url: toPathString(localVarUrlObj),
|
|
14625
|
-
options: localVarRequestOptions,
|
|
14626
|
-
};
|
|
14627
|
-
},
|
|
14628
|
-
/**
|
|
14629
|
-
* Update An Order (Admin)
|
|
14630
|
-
* @summary Update An Order (Admin)
|
|
14631
|
-
* @param {number} id Order ID
|
|
14632
|
-
* @param {boolean} [readonly] Readonly Order
|
|
14633
|
-
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
|
|
14634
|
-
* @param {*} [options] Override http request option.
|
|
14635
|
-
* @throws {RequiredError}
|
|
14636
|
-
*/
|
|
14637
|
-
putUpdateAdminOrder: async (id: number, readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
14638
|
-
// verify required parameter 'id' is not null or undefined
|
|
14639
|
-
assertParamExists('putUpdateAdminOrder', 'id', id)
|
|
14640
|
-
const localVarPath = `/admin/orders/{id}`
|
|
14641
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
14642
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14643
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
14644
|
-
let baseOptions;
|
|
14645
|
-
if (configuration) {
|
|
14646
|
-
baseOptions = configuration.baseOptions;
|
|
14647
|
-
}
|
|
14648
|
-
|
|
14649
|
-
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
14650
|
-
const localVarHeaderParameter = {} as any;
|
|
14651
|
-
const localVarQueryParameter = {} as any;
|
|
14652
|
-
|
|
14653
|
-
if (readonly !== undefined) {
|
|
14654
|
-
localVarQueryParameter['readonly'] = readonly;
|
|
14655
|
-
}
|
|
14656
|
-
|
|
14657
|
-
|
|
14658
|
-
|
|
14659
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
14660
|
-
|
|
14661
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14662
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14663
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
14664
|
-
localVarRequestOptions.data = serializeDataIfNeeded(adminOrderRequestDTO, localVarRequestOptions, configuration)
|
|
14665
|
-
|
|
14666
|
-
return {
|
|
14667
|
-
url: toPathString(localVarUrlObj),
|
|
14668
|
-
options: localVarRequestOptions,
|
|
14669
|
-
};
|
|
14670
|
-
},
|
|
14671
|
-
/**
|
|
14672
|
-
* Update An Order (Beta)
|
|
14673
|
-
* @summary Update An Order (Beta)
|
|
14674
|
-
* @param {number} id Order ID
|
|
14675
|
-
* @param {boolean} [readonly] Readonly Order
|
|
14676
|
-
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
14677
|
-
* @param {*} [options] Override http request option.
|
|
14678
|
-
* @throws {RequiredError}
|
|
14679
|
-
*/
|
|
14680
|
-
putUpdateOrder: async (id: number, readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
14681
|
-
// verify required parameter 'id' is not null or undefined
|
|
14682
|
-
assertParamExists('putUpdateOrder', 'id', id)
|
|
14683
|
-
const localVarPath = `/orders/{id}`
|
|
14684
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
14685
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14686
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
14687
|
-
let baseOptions;
|
|
14688
|
-
if (configuration) {
|
|
14689
|
-
baseOptions = configuration.baseOptions;
|
|
14690
|
-
}
|
|
14691
|
-
|
|
14692
|
-
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
14693
|
-
const localVarHeaderParameter = {} as any;
|
|
14694
|
-
const localVarQueryParameter = {} as any;
|
|
14695
|
-
|
|
14696
|
-
if (readonly !== undefined) {
|
|
14697
|
-
localVarQueryParameter['readonly'] = readonly;
|
|
14698
|
-
}
|
|
14699
|
-
|
|
14700
|
-
|
|
14701
|
-
|
|
14702
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
14703
|
-
|
|
14704
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14705
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14706
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
14707
|
-
localVarRequestOptions.data = serializeDataIfNeeded(customerOrderRequestDTO, localVarRequestOptions, configuration)
|
|
14708
|
-
|
|
14709
|
-
return {
|
|
14710
|
-
url: toPathString(localVarUrlObj),
|
|
14711
|
-
options: localVarRequestOptions,
|
|
14712
|
-
};
|
|
14713
|
-
},
|
|
14714
|
-
}
|
|
14715
|
-
};
|
|
14716
|
-
|
|
14717
|
-
/**
|
|
14718
|
-
* OrdersApi - functional programming interface
|
|
14719
|
-
*/
|
|
14720
|
-
export const OrdersApiFp = function(configuration?: Configuration) {
|
|
14721
|
-
const localVarAxiosParamCreator = OrdersApiAxiosParamCreator(configuration)
|
|
14722
|
-
return {
|
|
14723
|
-
/**
|
|
14724
|
-
* Delete Orders (Beta)
|
|
14725
|
-
* @summary Delete Orders (Beta)
|
|
14726
|
-
* @param {number} id Order ID
|
|
14727
|
-
* @param {*} [options] Override http request option.
|
|
14728
|
-
* @throws {RequiredError}
|
|
14729
|
-
*/
|
|
14730
|
-
async deleteUpdateOrder(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
14731
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUpdateOrder(id, options);
|
|
14732
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
14733
|
-
const localVarOperationServerBasePath = operationServerMap['OrdersApi.deleteUpdateOrder']?.[localVarOperationServerIndex]?.url;
|
|
14734
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14735
|
-
},
|
|
14736
|
-
/**
|
|
14737
|
-
* Get Editable Order (Admin)
|
|
14738
|
-
* @summary Get Editable Order (Admin)
|
|
14739
|
-
* @param {number} id Order ID
|
|
14740
|
-
* @param {*} [options] Override http request option.
|
|
14741
|
-
* @throws {RequiredError}
|
|
14742
|
-
*/
|
|
14743
|
-
async getGetAdminEditableOrder(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminOrderRequestDTO>> {
|
|
14744
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetAdminEditableOrder(id, options);
|
|
14745
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
14746
|
-
const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetAdminEditableOrder']?.[localVarOperationServerIndex]?.url;
|
|
14747
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14748
|
-
},
|
|
14749
|
-
/**
|
|
14750
|
-
* Get Editable Order (Beta)
|
|
14751
|
-
* @summary Get Editable Order (Beta)
|
|
14752
|
-
* @param {number} id Order ID
|
|
14753
|
-
* @param {*} [options] Override http request option.
|
|
14754
|
-
* @throws {RequiredError}
|
|
14755
|
-
*/
|
|
14756
|
-
async getGetEditableOrder(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DetailedOrderRequestDTO>> {
|
|
14757
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetEditableOrder(id, options);
|
|
14758
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
14759
|
-
const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetEditableOrder']?.[localVarOperationServerIndex]?.url;
|
|
14760
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14761
|
-
},
|
|
14762
|
-
/**
|
|
14763
|
-
* Get Orders (Beta)
|
|
14764
|
-
* @summary Get Orders (Beta)
|
|
14765
|
-
* @param {number} [pageSize] Number Of Results
|
|
14766
|
-
* @param {number} [page] Page Number
|
|
14767
|
-
* @param {string} [search] Search
|
|
14768
|
-
* @param {boolean | null} [fulfillable] Fulfillable
|
|
14769
|
-
* @param {GetGetOrdersStatusEnum} [status] Status
|
|
14770
|
-
* @param {GetGetOrdersFilterEnum} [filter] Filter
|
|
14771
|
-
* @param {number | null} [customerId] Customer ID
|
|
14772
|
-
* @param {*} [options] Override http request option.
|
|
14773
|
-
* @throws {RequiredError}
|
|
14774
|
-
*/
|
|
14775
|
-
async getGetOrders(pageSize?: number, page?: number, search?: string, fulfillable?: boolean | null, status?: GetGetOrdersStatusEnum, filter?: GetGetOrdersFilterEnum, customerId?: number | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderSummariesModel>> {
|
|
14776
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetOrders(pageSize, page, search, fulfillable, status, filter, customerId, options);
|
|
14777
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
14778
|
-
const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetOrders']?.[localVarOperationServerIndex]?.url;
|
|
14779
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14780
|
-
},
|
|
14781
|
-
/**
|
|
14782
|
-
* Create An Order (Admin)
|
|
14783
|
-
* @summary Create An Order (Admin)
|
|
14784
|
-
* @param {boolean} [readonly] Readonly Order
|
|
14785
|
-
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
|
|
14786
|
-
* @param {*} [options] Override http request option.
|
|
14787
|
-
* @throws {RequiredError}
|
|
14788
|
-
*/
|
|
14789
|
-
async postCreateAdminOrder(readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OrderSummaryDTO>>> {
|
|
14790
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.postCreateAdminOrder(readonly, adminOrderRequestDTO, options);
|
|
14791
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
14792
|
-
const localVarOperationServerBasePath = operationServerMap['OrdersApi.postCreateAdminOrder']?.[localVarOperationServerIndex]?.url;
|
|
14793
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14794
|
-
},
|
|
14795
|
-
/**
|
|
14796
|
-
* Create An Order (Beta)
|
|
14797
|
-
* @summary Create An Order (Beta)
|
|
14798
|
-
* @param {boolean} [readonly] Readonly Order
|
|
14799
|
-
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
14800
|
-
* @param {*} [options] Override http request option.
|
|
14801
|
-
* @throws {RequiredError}
|
|
14802
|
-
*/
|
|
14803
|
-
async postGetOrders(readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OrderSummaryDTO>>> {
|
|
14804
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.postGetOrders(readonly, customerOrderRequestDTO, options);
|
|
14805
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
14806
|
-
const localVarOperationServerBasePath = operationServerMap['OrdersApi.postGetOrders']?.[localVarOperationServerIndex]?.url;
|
|
14807
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14808
|
-
},
|
|
14809
|
-
/**
|
|
14810
|
-
* Update An Order (Admin)
|
|
14811
|
-
* @summary Update An Order (Admin)
|
|
14812
|
-
* @param {number} id Order ID
|
|
14813
|
-
* @param {boolean} [readonly] Readonly Order
|
|
14814
|
-
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
|
|
14815
|
-
* @param {*} [options] Override http request option.
|
|
14816
|
-
* @throws {RequiredError}
|
|
14817
|
-
*/
|
|
14818
|
-
async putUpdateAdminOrder(id: number, readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OrderSummaryDTO>>> {
|
|
14819
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.putUpdateAdminOrder(id, readonly, adminOrderRequestDTO, options);
|
|
14820
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
14821
|
-
const localVarOperationServerBasePath = operationServerMap['OrdersApi.putUpdateAdminOrder']?.[localVarOperationServerIndex]?.url;
|
|
14822
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14823
|
-
},
|
|
14824
|
-
/**
|
|
14825
|
-
* Update An Order (Beta)
|
|
14826
|
-
* @summary Update An Order (Beta)
|
|
14827
|
-
* @param {number} id Order ID
|
|
14828
|
-
* @param {boolean} [readonly] Readonly Order
|
|
14829
|
-
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
13747
|
+
* Update An Order (Beta)
|
|
13748
|
+
* @summary Update An Order (Beta)
|
|
13749
|
+
* @param {number} id Order ID
|
|
13750
|
+
* @param {boolean} [readonly] Readonly Order
|
|
13751
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
14830
13752
|
* @param {*} [options] Override http request option.
|
|
14831
13753
|
* @throws {RequiredError}
|
|
14832
13754
|
*/
|
|
@@ -18189,61 +17111,302 @@ export class SIPTrunksApi extends BaseAPI {
|
|
|
18189
17111
|
return SIPTrunksApiFp(this.configuration).postGetSipTrunks(sipTrunkCreationRequestModel, options).then((request) => request(this.axios, this.basePath));
|
|
18190
17112
|
}
|
|
18191
17113
|
|
|
18192
|
-
/**
|
|
18193
|
-
* Track SIP Trunk Change Request
|
|
18194
|
-
* @summary Track SIP Trunk Change Request
|
|
18195
|
-
* @param {SipTrunkChangeResponseModel} [sipTrunkChangeResponseModel] Change Request
|
|
18196
|
-
* @param {*} [options] Override http request option.
|
|
18197
|
-
* @throws {RequiredError}
|
|
18198
|
-
*/
|
|
18199
|
-
public postTrackChange(sipTrunkChangeResponseModel?: SipTrunkChangeResponseModel, options?: RawAxiosRequestConfig) {
|
|
18200
|
-
return SIPTrunksApiFp(this.configuration).postTrackChange(sipTrunkChangeResponseModel, options).then((request) => request(this.axios, this.basePath));
|
|
18201
|
-
}
|
|
17114
|
+
/**
|
|
17115
|
+
* Track SIP Trunk Change Request
|
|
17116
|
+
* @summary Track SIP Trunk Change Request
|
|
17117
|
+
* @param {SipTrunkChangeResponseModel} [sipTrunkChangeResponseModel] Change Request
|
|
17118
|
+
* @param {*} [options] Override http request option.
|
|
17119
|
+
* @throws {RequiredError}
|
|
17120
|
+
*/
|
|
17121
|
+
public postTrackChange(sipTrunkChangeResponseModel?: SipTrunkChangeResponseModel, options?: RawAxiosRequestConfig) {
|
|
17122
|
+
return SIPTrunksApiFp(this.configuration).postTrackChange(sipTrunkChangeResponseModel, options).then((request) => request(this.axios, this.basePath));
|
|
17123
|
+
}
|
|
17124
|
+
|
|
17125
|
+
/**
|
|
17126
|
+
* Update SIP Trunk Address
|
|
17127
|
+
* @summary Update SIP Trunk Address
|
|
17128
|
+
* @param {number} id SIP Trunk ID
|
|
17129
|
+
* @param {AddressRequestModel} [addressRequestModel] Address Request
|
|
17130
|
+
* @param {*} [options] Override http request option.
|
|
17131
|
+
* @throws {RequiredError}
|
|
17132
|
+
*/
|
|
17133
|
+
public putGetAddress(id: number, addressRequestModel?: AddressRequestModel, options?: RawAxiosRequestConfig) {
|
|
17134
|
+
return SIPTrunksApiFp(this.configuration).putGetAddress(id, addressRequestModel, options).then((request) => request(this.axios, this.basePath));
|
|
17135
|
+
}
|
|
17136
|
+
|
|
17137
|
+
/**
|
|
17138
|
+
* SIP Trunk Diverts
|
|
17139
|
+
* @summary Update SIP Trunk Diverts
|
|
17140
|
+
* @param {number} id SIP Trunk ID
|
|
17141
|
+
* @param {boolean} enabled Enable Divert
|
|
17142
|
+
* @param {DivertRequestModel} [divertRequestModel] Divert Request
|
|
17143
|
+
* @param {*} [options] Override http request option.
|
|
17144
|
+
* @throws {RequiredError}
|
|
17145
|
+
*/
|
|
17146
|
+
public putGetDiverts(id: number, enabled: boolean, divertRequestModel?: DivertRequestModel, options?: RawAxiosRequestConfig) {
|
|
17147
|
+
return SIPTrunksApiFp(this.configuration).putGetDiverts(id, enabled, divertRequestModel, options).then((request) => request(this.axios, this.basePath));
|
|
17148
|
+
}
|
|
17149
|
+
}
|
|
17150
|
+
|
|
17151
|
+
|
|
17152
|
+
|
|
17153
|
+
/**
|
|
17154
|
+
* SMSApi - axios parameter creator
|
|
17155
|
+
*/
|
|
17156
|
+
export const SMSApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
17157
|
+
return {
|
|
17158
|
+
/**
|
|
17159
|
+
* Send SMS
|
|
17160
|
+
* @param {string} authorization Bearer Token
|
|
17161
|
+
* @param {SmsMessageModel} [smsMessageModel] SMS Message
|
|
17162
|
+
* @param {*} [options] Override http request option.
|
|
17163
|
+
* @throws {RequiredError}
|
|
17164
|
+
*/
|
|
17165
|
+
postSendSms: async (authorization: string, smsMessageModel?: SmsMessageModel, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
17166
|
+
// verify required parameter 'authorization' is not null or undefined
|
|
17167
|
+
assertParamExists('postSendSms', 'authorization', authorization)
|
|
17168
|
+
const localVarPath = `/messaging/sms/send`;
|
|
17169
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
17170
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
17171
|
+
let baseOptions;
|
|
17172
|
+
if (configuration) {
|
|
17173
|
+
baseOptions = configuration.baseOptions;
|
|
17174
|
+
}
|
|
17175
|
+
|
|
17176
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
17177
|
+
const localVarHeaderParameter = {} as any;
|
|
17178
|
+
const localVarQueryParameter = {} as any;
|
|
17179
|
+
|
|
17180
|
+
|
|
17181
|
+
|
|
17182
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
17183
|
+
|
|
17184
|
+
if (authorization != null) {
|
|
17185
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
17186
|
+
}
|
|
17187
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
17188
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17189
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
17190
|
+
localVarRequestOptions.data = serializeDataIfNeeded(smsMessageModel, localVarRequestOptions, configuration)
|
|
17191
|
+
|
|
17192
|
+
return {
|
|
17193
|
+
url: toPathString(localVarUrlObj),
|
|
17194
|
+
options: localVarRequestOptions,
|
|
17195
|
+
};
|
|
17196
|
+
},
|
|
17197
|
+
}
|
|
17198
|
+
};
|
|
17199
|
+
|
|
17200
|
+
/**
|
|
17201
|
+
* SMSApi - functional programming interface
|
|
17202
|
+
*/
|
|
17203
|
+
export const SMSApiFp = function(configuration?: Configuration) {
|
|
17204
|
+
const localVarAxiosParamCreator = SMSApiAxiosParamCreator(configuration)
|
|
17205
|
+
return {
|
|
17206
|
+
/**
|
|
17207
|
+
* Send SMS
|
|
17208
|
+
* @param {string} authorization Bearer Token
|
|
17209
|
+
* @param {SmsMessageModel} [smsMessageModel] SMS Message
|
|
17210
|
+
* @param {*} [options] Override http request option.
|
|
17211
|
+
* @throws {RequiredError}
|
|
17212
|
+
*/
|
|
17213
|
+
async postSendSms(authorization: string, smsMessageModel?: SmsMessageModel, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SmsDataModel>> {
|
|
17214
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postSendSms(authorization, smsMessageModel, options);
|
|
17215
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
17216
|
+
const localVarOperationServerBasePath = operationServerMap['SMSApi.postSendSms']?.[localVarOperationServerIndex]?.url;
|
|
17217
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17218
|
+
},
|
|
17219
|
+
}
|
|
17220
|
+
};
|
|
17221
|
+
|
|
17222
|
+
/**
|
|
17223
|
+
* SMSApi - factory interface
|
|
17224
|
+
*/
|
|
17225
|
+
export const SMSApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
17226
|
+
const localVarFp = SMSApiFp(configuration)
|
|
17227
|
+
return {
|
|
17228
|
+
/**
|
|
17229
|
+
* Send SMS
|
|
17230
|
+
* @param {string} authorization Bearer Token
|
|
17231
|
+
* @param {SmsMessageModel} [smsMessageModel] SMS Message
|
|
17232
|
+
* @param {*} [options] Override http request option.
|
|
17233
|
+
* @throws {RequiredError}
|
|
17234
|
+
*/
|
|
17235
|
+
postSendSms(authorization: string, smsMessageModel?: SmsMessageModel, options?: RawAxiosRequestConfig): AxiosPromise<SmsDataModel> {
|
|
17236
|
+
return localVarFp.postSendSms(authorization, smsMessageModel, options).then((request) => request(axios, basePath));
|
|
17237
|
+
},
|
|
17238
|
+
};
|
|
17239
|
+
};
|
|
17240
|
+
|
|
17241
|
+
/**
|
|
17242
|
+
* SMSApi - object-oriented interface
|
|
17243
|
+
*/
|
|
17244
|
+
export class SMSApi extends BaseAPI {
|
|
17245
|
+
/**
|
|
17246
|
+
* Send SMS
|
|
17247
|
+
* @param {string} authorization Bearer Token
|
|
17248
|
+
* @param {SmsMessageModel} [smsMessageModel] SMS Message
|
|
17249
|
+
* @param {*} [options] Override http request option.
|
|
17250
|
+
* @throws {RequiredError}
|
|
17251
|
+
*/
|
|
17252
|
+
public postSendSms(authorization: string, smsMessageModel?: SmsMessageModel, options?: RawAxiosRequestConfig) {
|
|
17253
|
+
return SMSApiFp(this.configuration).postSendSms(authorization, smsMessageModel, options).then((request) => request(this.axios, this.basePath));
|
|
17254
|
+
}
|
|
17255
|
+
}
|
|
17256
|
+
|
|
17257
|
+
|
|
17258
|
+
|
|
17259
|
+
/**
|
|
17260
|
+
* ServicesApi - axios parameter creator
|
|
17261
|
+
*/
|
|
17262
|
+
export const ServicesApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
17263
|
+
return {
|
|
17264
|
+
/**
|
|
17265
|
+
*
|
|
17266
|
+
* @param {string} [id] Unsubscribe Email ID
|
|
17267
|
+
* @param {string} [email] Unsubscribe Email Address
|
|
17268
|
+
* @param {*} [options] Override http request option.
|
|
17269
|
+
* @throws {RequiredError}
|
|
17270
|
+
*/
|
|
17271
|
+
deleteUnsubscribe: async (id?: string, email?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
17272
|
+
const localVarPath = `/services/incidents/unsubscribe`;
|
|
17273
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
17274
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
17275
|
+
let baseOptions;
|
|
17276
|
+
if (configuration) {
|
|
17277
|
+
baseOptions = configuration.baseOptions;
|
|
17278
|
+
}
|
|
17279
|
+
|
|
17280
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
17281
|
+
const localVarHeaderParameter = {} as any;
|
|
17282
|
+
const localVarQueryParameter = {} as any;
|
|
17283
|
+
|
|
17284
|
+
if (id !== undefined) {
|
|
17285
|
+
localVarQueryParameter['id'] = id;
|
|
17286
|
+
}
|
|
17287
|
+
|
|
17288
|
+
if (email !== undefined) {
|
|
17289
|
+
localVarQueryParameter['email'] = email;
|
|
17290
|
+
}
|
|
17291
|
+
|
|
17292
|
+
|
|
17293
|
+
|
|
17294
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
17295
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17296
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
17297
|
+
|
|
17298
|
+
return {
|
|
17299
|
+
url: toPathString(localVarUrlObj),
|
|
17300
|
+
options: localVarRequestOptions,
|
|
17301
|
+
};
|
|
17302
|
+
},
|
|
17303
|
+
/**
|
|
17304
|
+
*
|
|
17305
|
+
* @param {*} [options] Override http request option.
|
|
17306
|
+
* @throws {RequiredError}
|
|
17307
|
+
*/
|
|
17308
|
+
getGetServiceHealth: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
17309
|
+
const localVarPath = `/services/health`;
|
|
17310
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
17311
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
17312
|
+
let baseOptions;
|
|
17313
|
+
if (configuration) {
|
|
17314
|
+
baseOptions = configuration.baseOptions;
|
|
17315
|
+
}
|
|
17316
|
+
|
|
17317
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
17318
|
+
const localVarHeaderParameter = {} as any;
|
|
17319
|
+
const localVarQueryParameter = {} as any;
|
|
17320
|
+
|
|
17321
|
+
|
|
17322
|
+
|
|
17323
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
17324
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17325
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
17326
|
+
|
|
17327
|
+
return {
|
|
17328
|
+
url: toPathString(localVarUrlObj),
|
|
17329
|
+
options: localVarRequestOptions,
|
|
17330
|
+
};
|
|
17331
|
+
},
|
|
17332
|
+
/**
|
|
17333
|
+
*
|
|
17334
|
+
* @param {string} id Group ID
|
|
17335
|
+
* @param {*} [options] Override http request option.
|
|
17336
|
+
* @throws {RequiredError}
|
|
17337
|
+
*/
|
|
17338
|
+
patchArchiveIncident: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
17339
|
+
// verify required parameter 'id' is not null or undefined
|
|
17340
|
+
assertParamExists('patchArchiveIncident', 'id', id)
|
|
17341
|
+
const localVarPath = `/services/incidents/{id}/archive`
|
|
17342
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
17343
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
17344
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
17345
|
+
let baseOptions;
|
|
17346
|
+
if (configuration) {
|
|
17347
|
+
baseOptions = configuration.baseOptions;
|
|
17348
|
+
}
|
|
17349
|
+
|
|
17350
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
17351
|
+
const localVarHeaderParameter = {} as any;
|
|
17352
|
+
const localVarQueryParameter = {} as any;
|
|
17353
|
+
|
|
18202
17354
|
|
|
18203
|
-
|
|
18204
|
-
|
|
18205
|
-
|
|
18206
|
-
|
|
18207
|
-
* @param {AddressRequestModel} [addressRequestModel] Address Request
|
|
18208
|
-
* @param {*} [options] Override http request option.
|
|
18209
|
-
* @throws {RequiredError}
|
|
18210
|
-
*/
|
|
18211
|
-
public putGetAddress(id: number, addressRequestModel?: AddressRequestModel, options?: RawAxiosRequestConfig) {
|
|
18212
|
-
return SIPTrunksApiFp(this.configuration).putGetAddress(id, addressRequestModel, options).then((request) => request(this.axios, this.basePath));
|
|
18213
|
-
}
|
|
17355
|
+
|
|
17356
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
17357
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17358
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
18214
17359
|
|
|
18215
|
-
|
|
18216
|
-
|
|
18217
|
-
|
|
18218
|
-
|
|
18219
|
-
|
|
18220
|
-
|
|
18221
|
-
|
|
18222
|
-
|
|
18223
|
-
|
|
18224
|
-
|
|
18225
|
-
|
|
18226
|
-
|
|
18227
|
-
|
|
17360
|
+
return {
|
|
17361
|
+
url: toPathString(localVarUrlObj),
|
|
17362
|
+
options: localVarRequestOptions,
|
|
17363
|
+
};
|
|
17364
|
+
},
|
|
17365
|
+
/**
|
|
17366
|
+
*
|
|
17367
|
+
* @param {IncidentRequestDTO} [incidentRequestDTO]
|
|
17368
|
+
* @param {*} [options] Override http request option.
|
|
17369
|
+
* @throws {RequiredError}
|
|
17370
|
+
*/
|
|
17371
|
+
postCreateIncident: async (incidentRequestDTO?: IncidentRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
17372
|
+
const localVarPath = `/services/incidents`;
|
|
17373
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
17374
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
17375
|
+
let baseOptions;
|
|
17376
|
+
if (configuration) {
|
|
17377
|
+
baseOptions = configuration.baseOptions;
|
|
17378
|
+
}
|
|
18228
17379
|
|
|
17380
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
17381
|
+
const localVarHeaderParameter = {} as any;
|
|
17382
|
+
const localVarQueryParameter = {} as any;
|
|
18229
17383
|
|
|
18230
17384
|
|
|
18231
|
-
|
|
18232
|
-
|
|
18233
|
-
|
|
18234
|
-
|
|
18235
|
-
|
|
17385
|
+
|
|
17386
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
17387
|
+
|
|
17388
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
17389
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17390
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
17391
|
+
localVarRequestOptions.data = serializeDataIfNeeded(incidentRequestDTO, localVarRequestOptions, configuration)
|
|
17392
|
+
|
|
17393
|
+
return {
|
|
17394
|
+
url: toPathString(localVarUrlObj),
|
|
17395
|
+
options: localVarRequestOptions,
|
|
17396
|
+
};
|
|
17397
|
+
},
|
|
18236
17398
|
/**
|
|
18237
|
-
*
|
|
18238
|
-
* @param {string}
|
|
18239
|
-
* @param {
|
|
17399
|
+
*
|
|
17400
|
+
* @param {string} id Group ID
|
|
17401
|
+
* @param {IncidentUpdateRequestDTO} [incidentUpdateRequestDTO]
|
|
18240
17402
|
* @param {*} [options] Override http request option.
|
|
18241
17403
|
* @throws {RequiredError}
|
|
18242
17404
|
*/
|
|
18243
|
-
|
|
18244
|
-
// verify required parameter '
|
|
18245
|
-
assertParamExists('
|
|
18246
|
-
const localVarPath = `/
|
|
17405
|
+
postCreateIncidentUpdate: async (id: string, incidentUpdateRequestDTO?: IncidentUpdateRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
17406
|
+
// verify required parameter 'id' is not null or undefined
|
|
17407
|
+
assertParamExists('postCreateIncidentUpdate', 'id', id)
|
|
17408
|
+
const localVarPath = `/services/incidents/{id}/updates`
|
|
17409
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
18247
17410
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
18248
17411
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
18249
17412
|
let baseOptions;
|
|
@@ -18259,13 +17422,44 @@ export const SMSApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
18259
17422
|
|
|
18260
17423
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
18261
17424
|
|
|
18262
|
-
|
|
18263
|
-
|
|
17425
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
17426
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17427
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
17428
|
+
localVarRequestOptions.data = serializeDataIfNeeded(incidentUpdateRequestDTO, localVarRequestOptions, configuration)
|
|
17429
|
+
|
|
17430
|
+
return {
|
|
17431
|
+
url: toPathString(localVarUrlObj),
|
|
17432
|
+
options: localVarRequestOptions,
|
|
17433
|
+
};
|
|
17434
|
+
},
|
|
17435
|
+
/**
|
|
17436
|
+
*
|
|
17437
|
+
* @param {string} [email] Subscription Email Address
|
|
17438
|
+
* @param {*} [options] Override http request option.
|
|
17439
|
+
* @throws {RequiredError}
|
|
17440
|
+
*/
|
|
17441
|
+
postSubscribe: async (email?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
17442
|
+
const localVarPath = `/services/incidents/subscribe`;
|
|
17443
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
17444
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
17445
|
+
let baseOptions;
|
|
17446
|
+
if (configuration) {
|
|
17447
|
+
baseOptions = configuration.baseOptions;
|
|
17448
|
+
}
|
|
17449
|
+
|
|
17450
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
17451
|
+
const localVarHeaderParameter = {} as any;
|
|
17452
|
+
const localVarQueryParameter = {} as any;
|
|
17453
|
+
|
|
17454
|
+
if (email !== undefined) {
|
|
17455
|
+
localVarQueryParameter['email'] = email;
|
|
18264
17456
|
}
|
|
17457
|
+
|
|
17458
|
+
|
|
17459
|
+
|
|
18265
17460
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
18266
17461
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
18267
17462
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
18268
|
-
localVarRequestOptions.data = serializeDataIfNeeded(smsMessageModel, localVarRequestOptions, configuration)
|
|
18269
17463
|
|
|
18270
17464
|
return {
|
|
18271
17465
|
url: toPathString(localVarUrlObj),
|
|
@@ -18276,59 +17470,214 @@ export const SMSApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
18276
17470
|
};
|
|
18277
17471
|
|
|
18278
17472
|
/**
|
|
18279
|
-
*
|
|
17473
|
+
* ServicesApi - functional programming interface
|
|
18280
17474
|
*/
|
|
18281
|
-
export const
|
|
18282
|
-
const localVarAxiosParamCreator =
|
|
17475
|
+
export const ServicesApiFp = function(configuration?: Configuration) {
|
|
17476
|
+
const localVarAxiosParamCreator = ServicesApiAxiosParamCreator(configuration)
|
|
18283
17477
|
return {
|
|
18284
17478
|
/**
|
|
18285
|
-
*
|
|
18286
|
-
* @param {string}
|
|
18287
|
-
* @param {
|
|
17479
|
+
*
|
|
17480
|
+
* @param {string} [id] Unsubscribe Email ID
|
|
17481
|
+
* @param {string} [email] Unsubscribe Email Address
|
|
18288
17482
|
* @param {*} [options] Override http request option.
|
|
18289
17483
|
* @throws {RequiredError}
|
|
18290
17484
|
*/
|
|
18291
|
-
async
|
|
18292
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
17485
|
+
async deleteUnsubscribe(id?: string, email?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
17486
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUnsubscribe(id, email, options);
|
|
18293
17487
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
18294
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
17488
|
+
const localVarOperationServerBasePath = operationServerMap['ServicesApi.deleteUnsubscribe']?.[localVarOperationServerIndex]?.url;
|
|
17489
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17490
|
+
},
|
|
17491
|
+
/**
|
|
17492
|
+
*
|
|
17493
|
+
* @param {*} [options] Override http request option.
|
|
17494
|
+
* @throws {RequiredError}
|
|
17495
|
+
*/
|
|
17496
|
+
async getGetServiceHealth(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServiceHealthDTO>> {
|
|
17497
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetServiceHealth(options);
|
|
17498
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
17499
|
+
const localVarOperationServerBasePath = operationServerMap['ServicesApi.getGetServiceHealth']?.[localVarOperationServerIndex]?.url;
|
|
17500
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17501
|
+
},
|
|
17502
|
+
/**
|
|
17503
|
+
*
|
|
17504
|
+
* @param {string} id Group ID
|
|
17505
|
+
* @param {*} [options] Override http request option.
|
|
17506
|
+
* @throws {RequiredError}
|
|
17507
|
+
*/
|
|
17508
|
+
async patchArchiveIncident(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IncidentDTO>> {
|
|
17509
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.patchArchiveIncident(id, options);
|
|
17510
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
17511
|
+
const localVarOperationServerBasePath = operationServerMap['ServicesApi.patchArchiveIncident']?.[localVarOperationServerIndex]?.url;
|
|
17512
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17513
|
+
},
|
|
17514
|
+
/**
|
|
17515
|
+
*
|
|
17516
|
+
* @param {IncidentRequestDTO} [incidentRequestDTO]
|
|
17517
|
+
* @param {*} [options] Override http request option.
|
|
17518
|
+
* @throws {RequiredError}
|
|
17519
|
+
*/
|
|
17520
|
+
async postCreateIncident(incidentRequestDTO?: IncidentRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IncidentDTO>> {
|
|
17521
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postCreateIncident(incidentRequestDTO, options);
|
|
17522
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
17523
|
+
const localVarOperationServerBasePath = operationServerMap['ServicesApi.postCreateIncident']?.[localVarOperationServerIndex]?.url;
|
|
17524
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17525
|
+
},
|
|
17526
|
+
/**
|
|
17527
|
+
*
|
|
17528
|
+
* @param {string} id Group ID
|
|
17529
|
+
* @param {IncidentUpdateRequestDTO} [incidentUpdateRequestDTO]
|
|
17530
|
+
* @param {*} [options] Override http request option.
|
|
17531
|
+
* @throws {RequiredError}
|
|
17532
|
+
*/
|
|
17533
|
+
async postCreateIncidentUpdate(id: string, incidentUpdateRequestDTO?: IncidentUpdateRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IncidentDTO>> {
|
|
17534
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postCreateIncidentUpdate(id, incidentUpdateRequestDTO, options);
|
|
17535
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
17536
|
+
const localVarOperationServerBasePath = operationServerMap['ServicesApi.postCreateIncidentUpdate']?.[localVarOperationServerIndex]?.url;
|
|
17537
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17538
|
+
},
|
|
17539
|
+
/**
|
|
17540
|
+
*
|
|
17541
|
+
* @param {string} [email] Subscription Email Address
|
|
17542
|
+
* @param {*} [options] Override http request option.
|
|
17543
|
+
* @throws {RequiredError}
|
|
17544
|
+
*/
|
|
17545
|
+
async postSubscribe(email?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
17546
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postSubscribe(email, options);
|
|
17547
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
17548
|
+
const localVarOperationServerBasePath = operationServerMap['ServicesApi.postSubscribe']?.[localVarOperationServerIndex]?.url;
|
|
18295
17549
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
18296
17550
|
},
|
|
18297
17551
|
}
|
|
18298
17552
|
};
|
|
18299
17553
|
|
|
18300
17554
|
/**
|
|
18301
|
-
*
|
|
17555
|
+
* ServicesApi - factory interface
|
|
18302
17556
|
*/
|
|
18303
|
-
export const
|
|
18304
|
-
const localVarFp =
|
|
17557
|
+
export const ServicesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
17558
|
+
const localVarFp = ServicesApiFp(configuration)
|
|
18305
17559
|
return {
|
|
18306
17560
|
/**
|
|
18307
|
-
*
|
|
18308
|
-
* @param {string}
|
|
18309
|
-
* @param {
|
|
17561
|
+
*
|
|
17562
|
+
* @param {string} [id] Unsubscribe Email ID
|
|
17563
|
+
* @param {string} [email] Unsubscribe Email Address
|
|
18310
17564
|
* @param {*} [options] Override http request option.
|
|
18311
17565
|
* @throws {RequiredError}
|
|
18312
17566
|
*/
|
|
18313
|
-
|
|
18314
|
-
return localVarFp.
|
|
17567
|
+
deleteUnsubscribe(id?: string, email?: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
17568
|
+
return localVarFp.deleteUnsubscribe(id, email, options).then((request) => request(axios, basePath));
|
|
17569
|
+
},
|
|
17570
|
+
/**
|
|
17571
|
+
*
|
|
17572
|
+
* @param {*} [options] Override http request option.
|
|
17573
|
+
* @throws {RequiredError}
|
|
17574
|
+
*/
|
|
17575
|
+
getGetServiceHealth(options?: RawAxiosRequestConfig): AxiosPromise<ServiceHealthDTO> {
|
|
17576
|
+
return localVarFp.getGetServiceHealth(options).then((request) => request(axios, basePath));
|
|
17577
|
+
},
|
|
17578
|
+
/**
|
|
17579
|
+
*
|
|
17580
|
+
* @param {string} id Group ID
|
|
17581
|
+
* @param {*} [options] Override http request option.
|
|
17582
|
+
* @throws {RequiredError}
|
|
17583
|
+
*/
|
|
17584
|
+
patchArchiveIncident(id: string, options?: RawAxiosRequestConfig): AxiosPromise<IncidentDTO> {
|
|
17585
|
+
return localVarFp.patchArchiveIncident(id, options).then((request) => request(axios, basePath));
|
|
17586
|
+
},
|
|
17587
|
+
/**
|
|
17588
|
+
*
|
|
17589
|
+
* @param {IncidentRequestDTO} [incidentRequestDTO]
|
|
17590
|
+
* @param {*} [options] Override http request option.
|
|
17591
|
+
* @throws {RequiredError}
|
|
17592
|
+
*/
|
|
17593
|
+
postCreateIncident(incidentRequestDTO?: IncidentRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<IncidentDTO> {
|
|
17594
|
+
return localVarFp.postCreateIncident(incidentRequestDTO, options).then((request) => request(axios, basePath));
|
|
17595
|
+
},
|
|
17596
|
+
/**
|
|
17597
|
+
*
|
|
17598
|
+
* @param {string} id Group ID
|
|
17599
|
+
* @param {IncidentUpdateRequestDTO} [incidentUpdateRequestDTO]
|
|
17600
|
+
* @param {*} [options] Override http request option.
|
|
17601
|
+
* @throws {RequiredError}
|
|
17602
|
+
*/
|
|
17603
|
+
postCreateIncidentUpdate(id: string, incidentUpdateRequestDTO?: IncidentUpdateRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<IncidentDTO> {
|
|
17604
|
+
return localVarFp.postCreateIncidentUpdate(id, incidentUpdateRequestDTO, options).then((request) => request(axios, basePath));
|
|
17605
|
+
},
|
|
17606
|
+
/**
|
|
17607
|
+
*
|
|
17608
|
+
* @param {string} [email] Subscription Email Address
|
|
17609
|
+
* @param {*} [options] Override http request option.
|
|
17610
|
+
* @throws {RequiredError}
|
|
17611
|
+
*/
|
|
17612
|
+
postSubscribe(email?: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
17613
|
+
return localVarFp.postSubscribe(email, options).then((request) => request(axios, basePath));
|
|
18315
17614
|
},
|
|
18316
17615
|
};
|
|
18317
17616
|
};
|
|
18318
17617
|
|
|
18319
17618
|
/**
|
|
18320
|
-
*
|
|
17619
|
+
* ServicesApi - object-oriented interface
|
|
18321
17620
|
*/
|
|
18322
|
-
export class
|
|
17621
|
+
export class ServicesApi extends BaseAPI {
|
|
18323
17622
|
/**
|
|
18324
|
-
*
|
|
18325
|
-
* @param {string}
|
|
18326
|
-
* @param {
|
|
17623
|
+
*
|
|
17624
|
+
* @param {string} [id] Unsubscribe Email ID
|
|
17625
|
+
* @param {string} [email] Unsubscribe Email Address
|
|
18327
17626
|
* @param {*} [options] Override http request option.
|
|
18328
17627
|
* @throws {RequiredError}
|
|
18329
17628
|
*/
|
|
18330
|
-
public
|
|
18331
|
-
return
|
|
17629
|
+
public deleteUnsubscribe(id?: string, email?: string, options?: RawAxiosRequestConfig) {
|
|
17630
|
+
return ServicesApiFp(this.configuration).deleteUnsubscribe(id, email, options).then((request) => request(this.axios, this.basePath));
|
|
17631
|
+
}
|
|
17632
|
+
|
|
17633
|
+
/**
|
|
17634
|
+
*
|
|
17635
|
+
* @param {*} [options] Override http request option.
|
|
17636
|
+
* @throws {RequiredError}
|
|
17637
|
+
*/
|
|
17638
|
+
public getGetServiceHealth(options?: RawAxiosRequestConfig) {
|
|
17639
|
+
return ServicesApiFp(this.configuration).getGetServiceHealth(options).then((request) => request(this.axios, this.basePath));
|
|
17640
|
+
}
|
|
17641
|
+
|
|
17642
|
+
/**
|
|
17643
|
+
*
|
|
17644
|
+
* @param {string} id Group ID
|
|
17645
|
+
* @param {*} [options] Override http request option.
|
|
17646
|
+
* @throws {RequiredError}
|
|
17647
|
+
*/
|
|
17648
|
+
public patchArchiveIncident(id: string, options?: RawAxiosRequestConfig) {
|
|
17649
|
+
return ServicesApiFp(this.configuration).patchArchiveIncident(id, options).then((request) => request(this.axios, this.basePath));
|
|
17650
|
+
}
|
|
17651
|
+
|
|
17652
|
+
/**
|
|
17653
|
+
*
|
|
17654
|
+
* @param {IncidentRequestDTO} [incidentRequestDTO]
|
|
17655
|
+
* @param {*} [options] Override http request option.
|
|
17656
|
+
* @throws {RequiredError}
|
|
17657
|
+
*/
|
|
17658
|
+
public postCreateIncident(incidentRequestDTO?: IncidentRequestDTO, options?: RawAxiosRequestConfig) {
|
|
17659
|
+
return ServicesApiFp(this.configuration).postCreateIncident(incidentRequestDTO, options).then((request) => request(this.axios, this.basePath));
|
|
17660
|
+
}
|
|
17661
|
+
|
|
17662
|
+
/**
|
|
17663
|
+
*
|
|
17664
|
+
* @param {string} id Group ID
|
|
17665
|
+
* @param {IncidentUpdateRequestDTO} [incidentUpdateRequestDTO]
|
|
17666
|
+
* @param {*} [options] Override http request option.
|
|
17667
|
+
* @throws {RequiredError}
|
|
17668
|
+
*/
|
|
17669
|
+
public postCreateIncidentUpdate(id: string, incidentUpdateRequestDTO?: IncidentUpdateRequestDTO, options?: RawAxiosRequestConfig) {
|
|
17670
|
+
return ServicesApiFp(this.configuration).postCreateIncidentUpdate(id, incidentUpdateRequestDTO, options).then((request) => request(this.axios, this.basePath));
|
|
17671
|
+
}
|
|
17672
|
+
|
|
17673
|
+
/**
|
|
17674
|
+
*
|
|
17675
|
+
* @param {string} [email] Subscription Email Address
|
|
17676
|
+
* @param {*} [options] Override http request option.
|
|
17677
|
+
* @throws {RequiredError}
|
|
17678
|
+
*/
|
|
17679
|
+
public postSubscribe(email?: string, options?: RawAxiosRequestConfig) {
|
|
17680
|
+
return ServicesApiFp(this.configuration).postSubscribe(email, options).then((request) => request(this.axios, this.basePath));
|
|
18332
17681
|
}
|
|
18333
17682
|
}
|
|
18334
17683
|
|
|
@@ -20709,7 +20058,7 @@ export const TicketsApiFp = function(configuration?: Configuration) {
|
|
|
20709
20058
|
* @param {*} [options] Override http request option.
|
|
20710
20059
|
* @throws {RequiredError}
|
|
20711
20060
|
*/
|
|
20712
|
-
async getGetTicket(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
20061
|
+
async getGetTicket(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TelephonySupportTicketModel>> {
|
|
20713
20062
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetTicket(id, options);
|
|
20714
20063
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
20715
20064
|
const localVarOperationServerBasePath = operationServerMap['TicketsApi.getGetTicket']?.[localVarOperationServerIndex]?.url;
|
|
@@ -20721,7 +20070,7 @@ export const TicketsApiFp = function(configuration?: Configuration) {
|
|
|
20721
20070
|
* @param {*} [options] Override http request option.
|
|
20722
20071
|
* @throws {RequiredError}
|
|
20723
20072
|
*/
|
|
20724
|
-
async patchCloseTicket(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
20073
|
+
async patchCloseTicket(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TelephonySupportTicketModel>> {
|
|
20725
20074
|
const localVarAxiosArgs = await localVarAxiosParamCreator.patchCloseTicket(id, options);
|
|
20726
20075
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
20727
20076
|
const localVarOperationServerBasePath = operationServerMap['TicketsApi.patchCloseTicket']?.[localVarOperationServerIndex]?.url;
|
|
@@ -20735,7 +20084,7 @@ export const TicketsApiFp = function(configuration?: Configuration) {
|
|
|
20735
20084
|
* @param {*} [options] Override http request option.
|
|
20736
20085
|
* @throws {RequiredError}
|
|
20737
20086
|
*/
|
|
20738
|
-
async postCreateTicket(subject?: string, message?: string, attachments?: Array<File>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
20087
|
+
async postCreateTicket(subject?: string, message?: string, attachments?: Array<File>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TelephonySupportTicketModel>> {
|
|
20739
20088
|
const localVarAxiosArgs = await localVarAxiosParamCreator.postCreateTicket(subject, message, attachments, options);
|
|
20740
20089
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
20741
20090
|
const localVarOperationServerBasePath = operationServerMap['TicketsApi.postCreateTicket']?.[localVarOperationServerIndex]?.url;
|
|
@@ -20749,7 +20098,7 @@ export const TicketsApiFp = function(configuration?: Configuration) {
|
|
|
20749
20098
|
* @param {*} [options] Override http request option.
|
|
20750
20099
|
* @throws {RequiredError}
|
|
20751
20100
|
*/
|
|
20752
|
-
async postTicketReply(id: number, body?: string, attachments?: Array<File>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
20101
|
+
async postTicketReply(id: number, body?: string, attachments?: Array<File>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TelephonySupportTicketModel>> {
|
|
20753
20102
|
const localVarAxiosArgs = await localVarAxiosParamCreator.postTicketReply(id, body, attachments, options);
|
|
20754
20103
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
20755
20104
|
const localVarOperationServerBasePath = operationServerMap['TicketsApi.postTicketReply']?.[localVarOperationServerIndex]?.url;
|
|
@@ -20781,7 +20130,7 @@ export const TicketsApiFactory = function (configuration?: Configuration, basePa
|
|
|
20781
20130
|
* @param {*} [options] Override http request option.
|
|
20782
20131
|
* @throws {RequiredError}
|
|
20783
20132
|
*/
|
|
20784
|
-
getGetTicket(id: number, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
20133
|
+
getGetTicket(id: number, options?: RawAxiosRequestConfig): AxiosPromise<TelephonySupportTicketModel> {
|
|
20785
20134
|
return localVarFp.getGetTicket(id, options).then((request) => request(axios, basePath));
|
|
20786
20135
|
},
|
|
20787
20136
|
/**
|
|
@@ -20790,7 +20139,7 @@ export const TicketsApiFactory = function (configuration?: Configuration, basePa
|
|
|
20790
20139
|
* @param {*} [options] Override http request option.
|
|
20791
20140
|
* @throws {RequiredError}
|
|
20792
20141
|
*/
|
|
20793
|
-
patchCloseTicket(id: number, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
20142
|
+
patchCloseTicket(id: number, options?: RawAxiosRequestConfig): AxiosPromise<TelephonySupportTicketModel> {
|
|
20794
20143
|
return localVarFp.patchCloseTicket(id, options).then((request) => request(axios, basePath));
|
|
20795
20144
|
},
|
|
20796
20145
|
/**
|
|
@@ -20801,7 +20150,7 @@ export const TicketsApiFactory = function (configuration?: Configuration, basePa
|
|
|
20801
20150
|
* @param {*} [options] Override http request option.
|
|
20802
20151
|
* @throws {RequiredError}
|
|
20803
20152
|
*/
|
|
20804
|
-
postCreateTicket(subject?: string, message?: string, attachments?: Array<File>, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
20153
|
+
postCreateTicket(subject?: string, message?: string, attachments?: Array<File>, options?: RawAxiosRequestConfig): AxiosPromise<TelephonySupportTicketModel> {
|
|
20805
20154
|
return localVarFp.postCreateTicket(subject, message, attachments, options).then((request) => request(axios, basePath));
|
|
20806
20155
|
},
|
|
20807
20156
|
/**
|
|
@@ -20812,7 +20161,7 @@ export const TicketsApiFactory = function (configuration?: Configuration, basePa
|
|
|
20812
20161
|
* @param {*} [options] Override http request option.
|
|
20813
20162
|
* @throws {RequiredError}
|
|
20814
20163
|
*/
|
|
20815
|
-
postTicketReply(id: number, body?: string, attachments?: Array<File>, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
20164
|
+
postTicketReply(id: number, body?: string, attachments?: Array<File>, options?: RawAxiosRequestConfig): AxiosPromise<TelephonySupportTicketModel> {
|
|
20816
20165
|
return localVarFp.postTicketReply(id, body, attachments, options).then((request) => request(axios, basePath));
|
|
20817
20166
|
},
|
|
20818
20167
|
};
|