yellowgrid-api-ts 3.2.48-dev.0 → 3.2.49-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 +0 -1
- package/api.ts +15 -138
- package/dist/api.d.ts +8 -68
- package/dist/api.js +19 -126
- package/docs/NumberPortingApi.md +7 -51
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
package/api.ts
CHANGED
|
@@ -13506,28 +13506,15 @@ export const NumberPortingApiAxiosParamCreator = function (configuration?: Confi
|
|
|
13506
13506
|
/**
|
|
13507
13507
|
*
|
|
13508
13508
|
* @param {number} id Number Port ID
|
|
13509
|
-
* @param {
|
|
13510
|
-
* @param {string | null} [addressLine1] Address Line 1
|
|
13511
|
-
* @param {string | null} [addressLine2] Address Line 2
|
|
13512
|
-
* @param {string | null} [city] City
|
|
13513
|
-
* @param {string | null} [postCode] Post Code
|
|
13514
|
-
* @param {number | null} [trunkId] Trunk ID
|
|
13515
|
-
* @param {string | null} [tenantId] Starter Bundle ID
|
|
13516
|
-
* @param {string | null} [requestedPortDate] Requested Port Date
|
|
13517
|
-
* @param {boolean | null} [asap] Port Date ASAP
|
|
13518
|
-
* @param {string | null} [comment] Comment
|
|
13519
|
-
* @param {number} [id2] Number Port ID
|
|
13520
|
-
* @param {string} [customerName] Customer Name
|
|
13521
|
-
* @param {string} [portDate] Porting Date
|
|
13522
|
-
* @param {Array<NumberPortRangeDTO>} [numberRanges] Number Ranges
|
|
13523
|
-
* @param {number} [status] Status
|
|
13524
|
-
* @param {number | null} [ticketId] Ticket ID
|
|
13509
|
+
* @param {NumberPortDTO} numberPortDTO
|
|
13525
13510
|
* @param {*} [options] Override http request option.
|
|
13526
13511
|
* @throws {RequiredError}
|
|
13527
13512
|
*/
|
|
13528
|
-
putGetAdminNumberPort: async (id: number,
|
|
13513
|
+
putGetAdminNumberPort: async (id: number, numberPortDTO: NumberPortDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13529
13514
|
// verify required parameter 'id' is not null or undefined
|
|
13530
13515
|
assertParamExists('putGetAdminNumberPort', 'id', id)
|
|
13516
|
+
// verify required parameter 'numberPortDTO' is not null or undefined
|
|
13517
|
+
assertParamExists('putGetAdminNumberPort', 'numberPortDTO', numberPortDTO)
|
|
13531
13518
|
const localVarPath = `/admin/sip/numbers/ports/{id}`
|
|
13532
13519
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
13533
13520
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -13540,79 +13527,14 @@ export const NumberPortingApiAxiosParamCreator = function (configuration?: Confi
|
|
|
13540
13527
|
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
13541
13528
|
const localVarHeaderParameter = {} as any;
|
|
13542
13529
|
const localVarQueryParameter = {} as any;
|
|
13543
|
-
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
13544
|
-
|
|
13545
|
-
|
|
13546
|
-
if (companyName !== undefined) {
|
|
13547
|
-
localVarFormParams.append('companyName', companyName as any);
|
|
13548
|
-
}
|
|
13549
|
-
|
|
13550
|
-
if (addressLine1 !== undefined) {
|
|
13551
|
-
localVarFormParams.append('addressLine1', addressLine1 as any);
|
|
13552
|
-
}
|
|
13553
|
-
|
|
13554
|
-
if (addressLine2 !== undefined) {
|
|
13555
|
-
localVarFormParams.append('addressLine2', addressLine2 as any);
|
|
13556
|
-
}
|
|
13557
|
-
|
|
13558
|
-
if (city !== undefined) {
|
|
13559
|
-
localVarFormParams.append('city', city as any);
|
|
13560
|
-
}
|
|
13561
|
-
|
|
13562
|
-
if (postCode !== undefined) {
|
|
13563
|
-
localVarFormParams.append('postCode', postCode as any);
|
|
13564
|
-
}
|
|
13565
|
-
|
|
13566
|
-
if (trunkId !== undefined) {
|
|
13567
|
-
localVarFormParams.append('trunkId', trunkId as any);
|
|
13568
|
-
}
|
|
13569
|
-
|
|
13570
|
-
if (tenantId !== undefined) {
|
|
13571
|
-
localVarFormParams.append('tenantId', tenantId as any);
|
|
13572
|
-
}
|
|
13573
|
-
|
|
13574
|
-
if (requestedPortDate !== undefined) {
|
|
13575
|
-
localVarFormParams.append('requestedPortDate', requestedPortDate as any);
|
|
13576
|
-
}
|
|
13577
|
-
|
|
13578
|
-
if (asap !== undefined) {
|
|
13579
|
-
localVarFormParams.append('asap', String(asap) as any);
|
|
13580
|
-
}
|
|
13581
|
-
|
|
13582
|
-
if (comment !== undefined) {
|
|
13583
|
-
localVarFormParams.append('comment', comment as any);
|
|
13584
|
-
}
|
|
13585
|
-
|
|
13586
|
-
if (id2 !== undefined) {
|
|
13587
|
-
localVarFormParams.append('id', id2 as any);
|
|
13588
|
-
}
|
|
13589
|
-
|
|
13590
|
-
if (customerName !== undefined) {
|
|
13591
|
-
localVarFormParams.append('customerName', customerName as any);
|
|
13592
|
-
}
|
|
13593
|
-
|
|
13594
|
-
if (portDate !== undefined) {
|
|
13595
|
-
localVarFormParams.append('portDate', portDate as any);
|
|
13596
|
-
}
|
|
13597
|
-
if (numberRanges) {
|
|
13598
|
-
localVarFormParams.append('numberRanges', numberRanges.join(COLLECTION_FORMATS.csv));
|
|
13599
|
-
}
|
|
13600
|
-
|
|
13601
13530
|
|
|
13602
|
-
|
|
13603
|
-
localVarFormParams.append('status', status as any);
|
|
13604
|
-
}
|
|
13605
|
-
|
|
13606
|
-
if (ticketId !== undefined) {
|
|
13607
|
-
localVarFormParams.append('ticketId', ticketId as any);
|
|
13608
|
-
}
|
|
13609
|
-
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
|
|
13531
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13610
13532
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
13611
13533
|
|
|
13612
13534
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13613
13535
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13614
13536
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
13615
|
-
localVarRequestOptions.data =
|
|
13537
|
+
localVarRequestOptions.data = serializeDataIfNeeded(numberPortDTO, localVarRequestOptions, configuration)
|
|
13616
13538
|
|
|
13617
13539
|
return {
|
|
13618
13540
|
url: toPathString(localVarUrlObj),
|
|
@@ -13766,27 +13688,12 @@ export const NumberPortingApiFp = function(configuration?: Configuration) {
|
|
|
13766
13688
|
/**
|
|
13767
13689
|
*
|
|
13768
13690
|
* @param {number} id Number Port ID
|
|
13769
|
-
* @param {
|
|
13770
|
-
* @param {string | null} [addressLine1] Address Line 1
|
|
13771
|
-
* @param {string | null} [addressLine2] Address Line 2
|
|
13772
|
-
* @param {string | null} [city] City
|
|
13773
|
-
* @param {string | null} [postCode] Post Code
|
|
13774
|
-
* @param {number | null} [trunkId] Trunk ID
|
|
13775
|
-
* @param {string | null} [tenantId] Starter Bundle ID
|
|
13776
|
-
* @param {string | null} [requestedPortDate] Requested Port Date
|
|
13777
|
-
* @param {boolean | null} [asap] Port Date ASAP
|
|
13778
|
-
* @param {string | null} [comment] Comment
|
|
13779
|
-
* @param {number} [id2] Number Port ID
|
|
13780
|
-
* @param {string} [customerName] Customer Name
|
|
13781
|
-
* @param {string} [portDate] Porting Date
|
|
13782
|
-
* @param {Array<NumberPortRangeDTO>} [numberRanges] Number Ranges
|
|
13783
|
-
* @param {number} [status] Status
|
|
13784
|
-
* @param {number | null} [ticketId] Ticket ID
|
|
13691
|
+
* @param {NumberPortDTO} numberPortDTO
|
|
13785
13692
|
* @param {*} [options] Override http request option.
|
|
13786
13693
|
* @throws {RequiredError}
|
|
13787
13694
|
*/
|
|
13788
|
-
async putGetAdminNumberPort(id: number,
|
|
13789
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.putGetAdminNumberPort(id,
|
|
13695
|
+
async putGetAdminNumberPort(id: number, numberPortDTO: NumberPortDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<NumberPortDTO>> {
|
|
13696
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.putGetAdminNumberPort(id, numberPortDTO, options);
|
|
13790
13697
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
13791
13698
|
const localVarOperationServerBasePath = operationServerMap['NumberPortingApi.putGetAdminNumberPort']?.[localVarOperationServerIndex]?.url;
|
|
13792
13699
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -13914,27 +13821,12 @@ export const NumberPortingApiFactory = function (configuration?: Configuration,
|
|
|
13914
13821
|
/**
|
|
13915
13822
|
*
|
|
13916
13823
|
* @param {number} id Number Port ID
|
|
13917
|
-
* @param {
|
|
13918
|
-
* @param {string | null} [addressLine1] Address Line 1
|
|
13919
|
-
* @param {string | null} [addressLine2] Address Line 2
|
|
13920
|
-
* @param {string | null} [city] City
|
|
13921
|
-
* @param {string | null} [postCode] Post Code
|
|
13922
|
-
* @param {number | null} [trunkId] Trunk ID
|
|
13923
|
-
* @param {string | null} [tenantId] Starter Bundle ID
|
|
13924
|
-
* @param {string | null} [requestedPortDate] Requested Port Date
|
|
13925
|
-
* @param {boolean | null} [asap] Port Date ASAP
|
|
13926
|
-
* @param {string | null} [comment] Comment
|
|
13927
|
-
* @param {number} [id2] Number Port ID
|
|
13928
|
-
* @param {string} [customerName] Customer Name
|
|
13929
|
-
* @param {string} [portDate] Porting Date
|
|
13930
|
-
* @param {Array<NumberPortRangeDTO>} [numberRanges] Number Ranges
|
|
13931
|
-
* @param {number} [status] Status
|
|
13932
|
-
* @param {number | null} [ticketId] Ticket ID
|
|
13824
|
+
* @param {NumberPortDTO} numberPortDTO
|
|
13933
13825
|
* @param {*} [options] Override http request option.
|
|
13934
13826
|
* @throws {RequiredError}
|
|
13935
13827
|
*/
|
|
13936
|
-
putGetAdminNumberPort(id: number,
|
|
13937
|
-
return localVarFp.putGetAdminNumberPort(id,
|
|
13828
|
+
putGetAdminNumberPort(id: number, numberPortDTO: NumberPortDTO, options?: RawAxiosRequestConfig): AxiosPromise<NumberPortDTO> {
|
|
13829
|
+
return localVarFp.putGetAdminNumberPort(id, numberPortDTO, options).then((request) => request(axios, basePath));
|
|
13938
13830
|
},
|
|
13939
13831
|
};
|
|
13940
13832
|
};
|
|
@@ -14065,27 +13957,12 @@ export class NumberPortingApi extends BaseAPI {
|
|
|
14065
13957
|
/**
|
|
14066
13958
|
*
|
|
14067
13959
|
* @param {number} id Number Port ID
|
|
14068
|
-
* @param {
|
|
14069
|
-
* @param {string | null} [addressLine1] Address Line 1
|
|
14070
|
-
* @param {string | null} [addressLine2] Address Line 2
|
|
14071
|
-
* @param {string | null} [city] City
|
|
14072
|
-
* @param {string | null} [postCode] Post Code
|
|
14073
|
-
* @param {number | null} [trunkId] Trunk ID
|
|
14074
|
-
* @param {string | null} [tenantId] Starter Bundle ID
|
|
14075
|
-
* @param {string | null} [requestedPortDate] Requested Port Date
|
|
14076
|
-
* @param {boolean | null} [asap] Port Date ASAP
|
|
14077
|
-
* @param {string | null} [comment] Comment
|
|
14078
|
-
* @param {number} [id2] Number Port ID
|
|
14079
|
-
* @param {string} [customerName] Customer Name
|
|
14080
|
-
* @param {string} [portDate] Porting Date
|
|
14081
|
-
* @param {Array<NumberPortRangeDTO>} [numberRanges] Number Ranges
|
|
14082
|
-
* @param {number} [status] Status
|
|
14083
|
-
* @param {number | null} [ticketId] Ticket ID
|
|
13960
|
+
* @param {NumberPortDTO} numberPortDTO
|
|
14084
13961
|
* @param {*} [options] Override http request option.
|
|
14085
13962
|
* @throws {RequiredError}
|
|
14086
13963
|
*/
|
|
14087
|
-
public putGetAdminNumberPort(id: number,
|
|
14088
|
-
return NumberPortingApiFp(this.configuration).putGetAdminNumberPort(id,
|
|
13964
|
+
public putGetAdminNumberPort(id: number, numberPortDTO: NumberPortDTO, options?: RawAxiosRequestConfig) {
|
|
13965
|
+
return NumberPortingApiFp(this.configuration).putGetAdminNumberPort(id, numberPortDTO, options).then((request) => request(this.axios, this.basePath));
|
|
14089
13966
|
}
|
|
14090
13967
|
}
|
|
14091
13968
|
|
package/dist/api.d.ts
CHANGED
|
@@ -9802,26 +9802,11 @@ export declare const NumberPortingApiAxiosParamCreator: (configuration?: Configu
|
|
|
9802
9802
|
/**
|
|
9803
9803
|
*
|
|
9804
9804
|
* @param {number} id Number Port ID
|
|
9805
|
-
* @param {
|
|
9806
|
-
* @param {string | null} [addressLine1] Address Line 1
|
|
9807
|
-
* @param {string | null} [addressLine2] Address Line 2
|
|
9808
|
-
* @param {string | null} [city] City
|
|
9809
|
-
* @param {string | null} [postCode] Post Code
|
|
9810
|
-
* @param {number | null} [trunkId] Trunk ID
|
|
9811
|
-
* @param {string | null} [tenantId] Starter Bundle ID
|
|
9812
|
-
* @param {string | null} [requestedPortDate] Requested Port Date
|
|
9813
|
-
* @param {boolean | null} [asap] Port Date ASAP
|
|
9814
|
-
* @param {string | null} [comment] Comment
|
|
9815
|
-
* @param {number} [id2] Number Port ID
|
|
9816
|
-
* @param {string} [customerName] Customer Name
|
|
9817
|
-
* @param {string} [portDate] Porting Date
|
|
9818
|
-
* @param {Array<NumberPortRangeDTO>} [numberRanges] Number Ranges
|
|
9819
|
-
* @param {number} [status] Status
|
|
9820
|
-
* @param {number | null} [ticketId] Ticket ID
|
|
9805
|
+
* @param {NumberPortDTO} numberPortDTO
|
|
9821
9806
|
* @param {*} [options] Override http request option.
|
|
9822
9807
|
* @throws {RequiredError}
|
|
9823
9808
|
*/
|
|
9824
|
-
putGetAdminNumberPort: (id: number,
|
|
9809
|
+
putGetAdminNumberPort: (id: number, numberPortDTO: NumberPortDTO, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
9825
9810
|
};
|
|
9826
9811
|
/**
|
|
9827
9812
|
* NumberPortingApi - functional programming interface
|
|
@@ -9925,26 +9910,11 @@ export declare const NumberPortingApiFp: (configuration?: Configuration) => {
|
|
|
9925
9910
|
/**
|
|
9926
9911
|
*
|
|
9927
9912
|
* @param {number} id Number Port ID
|
|
9928
|
-
* @param {
|
|
9929
|
-
* @param {string | null} [addressLine1] Address Line 1
|
|
9930
|
-
* @param {string | null} [addressLine2] Address Line 2
|
|
9931
|
-
* @param {string | null} [city] City
|
|
9932
|
-
* @param {string | null} [postCode] Post Code
|
|
9933
|
-
* @param {number | null} [trunkId] Trunk ID
|
|
9934
|
-
* @param {string | null} [tenantId] Starter Bundle ID
|
|
9935
|
-
* @param {string | null} [requestedPortDate] Requested Port Date
|
|
9936
|
-
* @param {boolean | null} [asap] Port Date ASAP
|
|
9937
|
-
* @param {string | null} [comment] Comment
|
|
9938
|
-
* @param {number} [id2] Number Port ID
|
|
9939
|
-
* @param {string} [customerName] Customer Name
|
|
9940
|
-
* @param {string} [portDate] Porting Date
|
|
9941
|
-
* @param {Array<NumberPortRangeDTO>} [numberRanges] Number Ranges
|
|
9942
|
-
* @param {number} [status] Status
|
|
9943
|
-
* @param {number | null} [ticketId] Ticket ID
|
|
9913
|
+
* @param {NumberPortDTO} numberPortDTO
|
|
9944
9914
|
* @param {*} [options] Override http request option.
|
|
9945
9915
|
* @throws {RequiredError}
|
|
9946
9916
|
*/
|
|
9947
|
-
putGetAdminNumberPort(id: number,
|
|
9917
|
+
putGetAdminNumberPort(id: number, numberPortDTO: NumberPortDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<NumberPortDTO>>;
|
|
9948
9918
|
};
|
|
9949
9919
|
/**
|
|
9950
9920
|
* NumberPortingApi - factory interface
|
|
@@ -10048,26 +10018,11 @@ export declare const NumberPortingApiFactory: (configuration?: Configuration, ba
|
|
|
10048
10018
|
/**
|
|
10049
10019
|
*
|
|
10050
10020
|
* @param {number} id Number Port ID
|
|
10051
|
-
* @param {
|
|
10052
|
-
* @param {string | null} [addressLine1] Address Line 1
|
|
10053
|
-
* @param {string | null} [addressLine2] Address Line 2
|
|
10054
|
-
* @param {string | null} [city] City
|
|
10055
|
-
* @param {string | null} [postCode] Post Code
|
|
10056
|
-
* @param {number | null} [trunkId] Trunk ID
|
|
10057
|
-
* @param {string | null} [tenantId] Starter Bundle ID
|
|
10058
|
-
* @param {string | null} [requestedPortDate] Requested Port Date
|
|
10059
|
-
* @param {boolean | null} [asap] Port Date ASAP
|
|
10060
|
-
* @param {string | null} [comment] Comment
|
|
10061
|
-
* @param {number} [id2] Number Port ID
|
|
10062
|
-
* @param {string} [customerName] Customer Name
|
|
10063
|
-
* @param {string} [portDate] Porting Date
|
|
10064
|
-
* @param {Array<NumberPortRangeDTO>} [numberRanges] Number Ranges
|
|
10065
|
-
* @param {number} [status] Status
|
|
10066
|
-
* @param {number | null} [ticketId] Ticket ID
|
|
10021
|
+
* @param {NumberPortDTO} numberPortDTO
|
|
10067
10022
|
* @param {*} [options] Override http request option.
|
|
10068
10023
|
* @throws {RequiredError}
|
|
10069
10024
|
*/
|
|
10070
|
-
putGetAdminNumberPort(id: number,
|
|
10025
|
+
putGetAdminNumberPort(id: number, numberPortDTO: NumberPortDTO, options?: RawAxiosRequestConfig): AxiosPromise<NumberPortDTO>;
|
|
10071
10026
|
};
|
|
10072
10027
|
/**
|
|
10073
10028
|
* NumberPortingApi - object-oriented interface
|
|
@@ -10171,26 +10126,11 @@ export declare class NumberPortingApi extends BaseAPI {
|
|
|
10171
10126
|
/**
|
|
10172
10127
|
*
|
|
10173
10128
|
* @param {number} id Number Port ID
|
|
10174
|
-
* @param {
|
|
10175
|
-
* @param {string | null} [addressLine1] Address Line 1
|
|
10176
|
-
* @param {string | null} [addressLine2] Address Line 2
|
|
10177
|
-
* @param {string | null} [city] City
|
|
10178
|
-
* @param {string | null} [postCode] Post Code
|
|
10179
|
-
* @param {number | null} [trunkId] Trunk ID
|
|
10180
|
-
* @param {string | null} [tenantId] Starter Bundle ID
|
|
10181
|
-
* @param {string | null} [requestedPortDate] Requested Port Date
|
|
10182
|
-
* @param {boolean | null} [asap] Port Date ASAP
|
|
10183
|
-
* @param {string | null} [comment] Comment
|
|
10184
|
-
* @param {number} [id2] Number Port ID
|
|
10185
|
-
* @param {string} [customerName] Customer Name
|
|
10186
|
-
* @param {string} [portDate] Porting Date
|
|
10187
|
-
* @param {Array<NumberPortRangeDTO>} [numberRanges] Number Ranges
|
|
10188
|
-
* @param {number} [status] Status
|
|
10189
|
-
* @param {number | null} [ticketId] Ticket ID
|
|
10129
|
+
* @param {NumberPortDTO} numberPortDTO
|
|
10190
10130
|
* @param {*} [options] Override http request option.
|
|
10191
10131
|
* @throws {RequiredError}
|
|
10192
10132
|
*/
|
|
10193
|
-
putGetAdminNumberPort(id: number,
|
|
10133
|
+
putGetAdminNumberPort(id: number, numberPortDTO: NumberPortDTO, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<NumberPortDTO, any, {}>>;
|
|
10194
10134
|
}
|
|
10195
10135
|
/**
|
|
10196
10136
|
* OAuth20Api - axios parameter creator
|
package/dist/api.js
CHANGED
|
@@ -8107,36 +8107,23 @@ var NumberPortingApiAxiosParamCreator = function (configuration) {
|
|
|
8107
8107
|
/**
|
|
8108
8108
|
*
|
|
8109
8109
|
* @param {number} id Number Port ID
|
|
8110
|
-
* @param {
|
|
8111
|
-
* @param {string | null} [addressLine1] Address Line 1
|
|
8112
|
-
* @param {string | null} [addressLine2] Address Line 2
|
|
8113
|
-
* @param {string | null} [city] City
|
|
8114
|
-
* @param {string | null} [postCode] Post Code
|
|
8115
|
-
* @param {number | null} [trunkId] Trunk ID
|
|
8116
|
-
* @param {string | null} [tenantId] Starter Bundle ID
|
|
8117
|
-
* @param {string | null} [requestedPortDate] Requested Port Date
|
|
8118
|
-
* @param {boolean | null} [asap] Port Date ASAP
|
|
8119
|
-
* @param {string | null} [comment] Comment
|
|
8120
|
-
* @param {number} [id2] Number Port ID
|
|
8121
|
-
* @param {string} [customerName] Customer Name
|
|
8122
|
-
* @param {string} [portDate] Porting Date
|
|
8123
|
-
* @param {Array<NumberPortRangeDTO>} [numberRanges] Number Ranges
|
|
8124
|
-
* @param {number} [status] Status
|
|
8125
|
-
* @param {number | null} [ticketId] Ticket ID
|
|
8110
|
+
* @param {NumberPortDTO} numberPortDTO
|
|
8126
8111
|
* @param {*} [options] Override http request option.
|
|
8127
8112
|
* @throws {RequiredError}
|
|
8128
8113
|
*/
|
|
8129
|
-
putGetAdminNumberPort: function (id_1,
|
|
8114
|
+
putGetAdminNumberPort: function (id_1, numberPortDTO_1) {
|
|
8130
8115
|
var args_1 = [];
|
|
8131
|
-
for (var _i =
|
|
8132
|
-
args_1[_i -
|
|
8116
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8117
|
+
args_1[_i - 2] = arguments[_i];
|
|
8133
8118
|
}
|
|
8134
|
-
return __awaiter(_this, __spreadArray([id_1,
|
|
8135
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
8119
|
+
return __awaiter(_this, __spreadArray([id_1, numberPortDTO_1], args_1, true), void 0, function (id, numberPortDTO, options) {
|
|
8120
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
8136
8121
|
if (options === void 0) { options = {}; }
|
|
8137
8122
|
return __generator(this, function (_a) {
|
|
8138
8123
|
// verify required parameter 'id' is not null or undefined
|
|
8139
8124
|
(0, common_1.assertParamExists)('putGetAdminNumberPort', 'id', id);
|
|
8125
|
+
// verify required parameter 'numberPortDTO' is not null or undefined
|
|
8126
|
+
(0, common_1.assertParamExists)('putGetAdminNumberPort', 'numberPortDTO', numberPortDTO);
|
|
8140
8127
|
localVarPath = "/admin/sip/numbers/ports/{id}"
|
|
8141
8128
|
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
8142
8129
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -8146,61 +8133,12 @@ var NumberPortingApiAxiosParamCreator = function (configuration) {
|
|
|
8146
8133
|
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
8147
8134
|
localVarHeaderParameter = {};
|
|
8148
8135
|
localVarQueryParameter = {};
|
|
8149
|
-
|
|
8150
|
-
if (companyName !== undefined) {
|
|
8151
|
-
localVarFormParams.append('companyName', companyName);
|
|
8152
|
-
}
|
|
8153
|
-
if (addressLine1 !== undefined) {
|
|
8154
|
-
localVarFormParams.append('addressLine1', addressLine1);
|
|
8155
|
-
}
|
|
8156
|
-
if (addressLine2 !== undefined) {
|
|
8157
|
-
localVarFormParams.append('addressLine2', addressLine2);
|
|
8158
|
-
}
|
|
8159
|
-
if (city !== undefined) {
|
|
8160
|
-
localVarFormParams.append('city', city);
|
|
8161
|
-
}
|
|
8162
|
-
if (postCode !== undefined) {
|
|
8163
|
-
localVarFormParams.append('postCode', postCode);
|
|
8164
|
-
}
|
|
8165
|
-
if (trunkId !== undefined) {
|
|
8166
|
-
localVarFormParams.append('trunkId', trunkId);
|
|
8167
|
-
}
|
|
8168
|
-
if (tenantId !== undefined) {
|
|
8169
|
-
localVarFormParams.append('tenantId', tenantId);
|
|
8170
|
-
}
|
|
8171
|
-
if (requestedPortDate !== undefined) {
|
|
8172
|
-
localVarFormParams.append('requestedPortDate', requestedPortDate);
|
|
8173
|
-
}
|
|
8174
|
-
if (asap !== undefined) {
|
|
8175
|
-
localVarFormParams.append('asap', String(asap));
|
|
8176
|
-
}
|
|
8177
|
-
if (comment !== undefined) {
|
|
8178
|
-
localVarFormParams.append('comment', comment);
|
|
8179
|
-
}
|
|
8180
|
-
if (id2 !== undefined) {
|
|
8181
|
-
localVarFormParams.append('id', id2);
|
|
8182
|
-
}
|
|
8183
|
-
if (customerName !== undefined) {
|
|
8184
|
-
localVarFormParams.append('customerName', customerName);
|
|
8185
|
-
}
|
|
8186
|
-
if (portDate !== undefined) {
|
|
8187
|
-
localVarFormParams.append('portDate', portDate);
|
|
8188
|
-
}
|
|
8189
|
-
if (numberRanges) {
|
|
8190
|
-
localVarFormParams.append('numberRanges', numberRanges.join(base_1.COLLECTION_FORMATS.csv));
|
|
8191
|
-
}
|
|
8192
|
-
if (status !== undefined) {
|
|
8193
|
-
localVarFormParams.append('status', status);
|
|
8194
|
-
}
|
|
8195
|
-
if (ticketId !== undefined) {
|
|
8196
|
-
localVarFormParams.append('ticketId', ticketId);
|
|
8197
|
-
}
|
|
8198
|
-
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
|
|
8136
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8199
8137
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
8200
8138
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8201
8139
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8202
8140
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8203
|
-
localVarRequestOptions.data =
|
|
8141
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(numberPortDTO, localVarRequestOptions, configuration);
|
|
8204
8142
|
return [2 /*return*/, {
|
|
8205
8143
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8206
8144
|
options: localVarRequestOptions,
|
|
@@ -8435,32 +8373,17 @@ var NumberPortingApiFp = function (configuration) {
|
|
|
8435
8373
|
/**
|
|
8436
8374
|
*
|
|
8437
8375
|
* @param {number} id Number Port ID
|
|
8438
|
-
* @param {
|
|
8439
|
-
* @param {string | null} [addressLine1] Address Line 1
|
|
8440
|
-
* @param {string | null} [addressLine2] Address Line 2
|
|
8441
|
-
* @param {string | null} [city] City
|
|
8442
|
-
* @param {string | null} [postCode] Post Code
|
|
8443
|
-
* @param {number | null} [trunkId] Trunk ID
|
|
8444
|
-
* @param {string | null} [tenantId] Starter Bundle ID
|
|
8445
|
-
* @param {string | null} [requestedPortDate] Requested Port Date
|
|
8446
|
-
* @param {boolean | null} [asap] Port Date ASAP
|
|
8447
|
-
* @param {string | null} [comment] Comment
|
|
8448
|
-
* @param {number} [id2] Number Port ID
|
|
8449
|
-
* @param {string} [customerName] Customer Name
|
|
8450
|
-
* @param {string} [portDate] Porting Date
|
|
8451
|
-
* @param {Array<NumberPortRangeDTO>} [numberRanges] Number Ranges
|
|
8452
|
-
* @param {number} [status] Status
|
|
8453
|
-
* @param {number | null} [ticketId] Ticket ID
|
|
8376
|
+
* @param {NumberPortDTO} numberPortDTO
|
|
8454
8377
|
* @param {*} [options] Override http request option.
|
|
8455
8378
|
* @throws {RequiredError}
|
|
8456
8379
|
*/
|
|
8457
|
-
putGetAdminNumberPort: function (id,
|
|
8380
|
+
putGetAdminNumberPort: function (id, numberPortDTO, options) {
|
|
8458
8381
|
return __awaiter(this, void 0, void 0, function () {
|
|
8459
8382
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
8460
8383
|
var _a, _b, _c;
|
|
8461
8384
|
return __generator(this, function (_d) {
|
|
8462
8385
|
switch (_d.label) {
|
|
8463
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.putGetAdminNumberPort(id,
|
|
8386
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.putGetAdminNumberPort(id, numberPortDTO, options)];
|
|
8464
8387
|
case 1:
|
|
8465
8388
|
localVarAxiosArgs = _d.sent();
|
|
8466
8389
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
@@ -8593,27 +8516,12 @@ var NumberPortingApiFactory = function (configuration, basePath, axios) {
|
|
|
8593
8516
|
/**
|
|
8594
8517
|
*
|
|
8595
8518
|
* @param {number} id Number Port ID
|
|
8596
|
-
* @param {
|
|
8597
|
-
* @param {string | null} [addressLine1] Address Line 1
|
|
8598
|
-
* @param {string | null} [addressLine2] Address Line 2
|
|
8599
|
-
* @param {string | null} [city] City
|
|
8600
|
-
* @param {string | null} [postCode] Post Code
|
|
8601
|
-
* @param {number | null} [trunkId] Trunk ID
|
|
8602
|
-
* @param {string | null} [tenantId] Starter Bundle ID
|
|
8603
|
-
* @param {string | null} [requestedPortDate] Requested Port Date
|
|
8604
|
-
* @param {boolean | null} [asap] Port Date ASAP
|
|
8605
|
-
* @param {string | null} [comment] Comment
|
|
8606
|
-
* @param {number} [id2] Number Port ID
|
|
8607
|
-
* @param {string} [customerName] Customer Name
|
|
8608
|
-
* @param {string} [portDate] Porting Date
|
|
8609
|
-
* @param {Array<NumberPortRangeDTO>} [numberRanges] Number Ranges
|
|
8610
|
-
* @param {number} [status] Status
|
|
8611
|
-
* @param {number | null} [ticketId] Ticket ID
|
|
8519
|
+
* @param {NumberPortDTO} numberPortDTO
|
|
8612
8520
|
* @param {*} [options] Override http request option.
|
|
8613
8521
|
* @throws {RequiredError}
|
|
8614
8522
|
*/
|
|
8615
|
-
putGetAdminNumberPort: function (id,
|
|
8616
|
-
return localVarFp.putGetAdminNumberPort(id,
|
|
8523
|
+
putGetAdminNumberPort: function (id, numberPortDTO, options) {
|
|
8524
|
+
return localVarFp.putGetAdminNumberPort(id, numberPortDTO, options).then(function (request) { return request(axios, basePath); });
|
|
8617
8525
|
},
|
|
8618
8526
|
};
|
|
8619
8527
|
};
|
|
@@ -8748,28 +8656,13 @@ var NumberPortingApi = /** @class */ (function (_super) {
|
|
|
8748
8656
|
/**
|
|
8749
8657
|
*
|
|
8750
8658
|
* @param {number} id Number Port ID
|
|
8751
|
-
* @param {
|
|
8752
|
-
* @param {string | null} [addressLine1] Address Line 1
|
|
8753
|
-
* @param {string | null} [addressLine2] Address Line 2
|
|
8754
|
-
* @param {string | null} [city] City
|
|
8755
|
-
* @param {string | null} [postCode] Post Code
|
|
8756
|
-
* @param {number | null} [trunkId] Trunk ID
|
|
8757
|
-
* @param {string | null} [tenantId] Starter Bundle ID
|
|
8758
|
-
* @param {string | null} [requestedPortDate] Requested Port Date
|
|
8759
|
-
* @param {boolean | null} [asap] Port Date ASAP
|
|
8760
|
-
* @param {string | null} [comment] Comment
|
|
8761
|
-
* @param {number} [id2] Number Port ID
|
|
8762
|
-
* @param {string} [customerName] Customer Name
|
|
8763
|
-
* @param {string} [portDate] Porting Date
|
|
8764
|
-
* @param {Array<NumberPortRangeDTO>} [numberRanges] Number Ranges
|
|
8765
|
-
* @param {number} [status] Status
|
|
8766
|
-
* @param {number | null} [ticketId] Ticket ID
|
|
8659
|
+
* @param {NumberPortDTO} numberPortDTO
|
|
8767
8660
|
* @param {*} [options] Override http request option.
|
|
8768
8661
|
* @throws {RequiredError}
|
|
8769
8662
|
*/
|
|
8770
|
-
NumberPortingApi.prototype.putGetAdminNumberPort = function (id,
|
|
8663
|
+
NumberPortingApi.prototype.putGetAdminNumberPort = function (id, numberPortDTO, options) {
|
|
8771
8664
|
var _this = this;
|
|
8772
|
-
return (0, exports.NumberPortingApiFp)(this.configuration).putGetAdminNumberPort(id,
|
|
8665
|
+
return (0, exports.NumberPortingApiFp)(this.configuration).putGetAdminNumberPort(id, numberPortDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
8773
8666
|
};
|
|
8774
8667
|
return NumberPortingApi;
|
|
8775
8668
|
}(base_1.BaseAPI));
|
package/docs/NumberPortingApi.md
CHANGED
|
@@ -556,7 +556,7 @@ No authorization required
|
|
|
556
556
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
557
557
|
|
|
558
558
|
# **putGetAdminNumberPort**
|
|
559
|
-
> NumberPortDTO putGetAdminNumberPort()
|
|
559
|
+
> NumberPortDTO putGetAdminNumberPort(numberPortDTO)
|
|
560
560
|
|
|
561
561
|
|
|
562
562
|
### Example
|
|
@@ -564,48 +564,19 @@ No authorization required
|
|
|
564
564
|
```typescript
|
|
565
565
|
import {
|
|
566
566
|
NumberPortingApi,
|
|
567
|
-
Configuration
|
|
567
|
+
Configuration,
|
|
568
|
+
NumberPortDTO
|
|
568
569
|
} from 'yellowgrid-api-ts';
|
|
569
570
|
|
|
570
571
|
const configuration = new Configuration();
|
|
571
572
|
const apiInstance = new NumberPortingApi(configuration);
|
|
572
573
|
|
|
573
574
|
let id: number; //Number Port ID (default to undefined)
|
|
574
|
-
let
|
|
575
|
-
let addressLine1: string; //Address Line 1 (optional) (default to undefined)
|
|
576
|
-
let addressLine2: string; //Address Line 2 (optional) (default to undefined)
|
|
577
|
-
let city: string; //City (optional) (default to undefined)
|
|
578
|
-
let postCode: string; //Post Code (optional) (default to undefined)
|
|
579
|
-
let trunkId: number; //Trunk ID (optional) (default to undefined)
|
|
580
|
-
let tenantId: string; //Starter Bundle ID (optional) (default to undefined)
|
|
581
|
-
let requestedPortDate: string; //Requested Port Date (optional) (default to undefined)
|
|
582
|
-
let asap: boolean; //Port Date ASAP (optional) (default to undefined)
|
|
583
|
-
let comment: string; //Comment (optional) (default to undefined)
|
|
584
|
-
let id2: number; //Number Port ID (optional) (default to undefined)
|
|
585
|
-
let customerName: string; //Customer Name (optional) (default to undefined)
|
|
586
|
-
let portDate: string; //Porting Date (optional) (default to undefined)
|
|
587
|
-
let numberRanges: Array<NumberPortRangeDTO>; //Number Ranges (optional) (default to undefined)
|
|
588
|
-
let status: number; //Status (optional) (default to undefined)
|
|
589
|
-
let ticketId: number; //Ticket ID (optional) (default to undefined)
|
|
575
|
+
let numberPortDTO: NumberPortDTO; //
|
|
590
576
|
|
|
591
577
|
const { status, data } = await apiInstance.putGetAdminNumberPort(
|
|
592
578
|
id,
|
|
593
|
-
|
|
594
|
-
addressLine1,
|
|
595
|
-
addressLine2,
|
|
596
|
-
city,
|
|
597
|
-
postCode,
|
|
598
|
-
trunkId,
|
|
599
|
-
tenantId,
|
|
600
|
-
requestedPortDate,
|
|
601
|
-
asap,
|
|
602
|
-
comment,
|
|
603
|
-
id2,
|
|
604
|
-
customerName,
|
|
605
|
-
portDate,
|
|
606
|
-
numberRanges,
|
|
607
|
-
status,
|
|
608
|
-
ticketId
|
|
579
|
+
numberPortDTO
|
|
609
580
|
);
|
|
610
581
|
```
|
|
611
582
|
|
|
@@ -613,23 +584,8 @@ const { status, data } = await apiInstance.putGetAdminNumberPort(
|
|
|
613
584
|
|
|
614
585
|
|Name | Type | Description | Notes|
|
|
615
586
|
|------------- | ------------- | ------------- | -------------|
|
|
587
|
+
| **numberPortDTO** | **NumberPortDTO**| | |
|
|
616
588
|
| **id** | [**number**] | Number Port ID | defaults to undefined|
|
|
617
|
-
| **companyName** | [**string**] | Company Name | (optional) defaults to undefined|
|
|
618
|
-
| **addressLine1** | [**string**] | Address Line 1 | (optional) defaults to undefined|
|
|
619
|
-
| **addressLine2** | [**string**] | Address Line 2 | (optional) defaults to undefined|
|
|
620
|
-
| **city** | [**string**] | City | (optional) defaults to undefined|
|
|
621
|
-
| **postCode** | [**string**] | Post Code | (optional) defaults to undefined|
|
|
622
|
-
| **trunkId** | [**number**] | Trunk ID | (optional) defaults to undefined|
|
|
623
|
-
| **tenantId** | [**string**] | Starter Bundle ID | (optional) defaults to undefined|
|
|
624
|
-
| **requestedPortDate** | [**string**] | Requested Port Date | (optional) defaults to undefined|
|
|
625
|
-
| **asap** | [**boolean**] | Port Date ASAP | (optional) defaults to undefined|
|
|
626
|
-
| **comment** | [**string**] | Comment | (optional) defaults to undefined|
|
|
627
|
-
| **id2** | [**number**] | Number Port ID | (optional) defaults to undefined|
|
|
628
|
-
| **customerName** | [**string**] | Customer Name | (optional) defaults to undefined|
|
|
629
|
-
| **portDate** | [**string**] | Porting Date | (optional) defaults to undefined|
|
|
630
|
-
| **numberRanges** | **Array<NumberPortRangeDTO>** | Number Ranges | (optional) defaults to undefined|
|
|
631
|
-
| **status** | [**number**] | Status | (optional) defaults to undefined|
|
|
632
|
-
| **ticketId** | [**number**] | Ticket ID | (optional) defaults to undefined|
|
|
633
589
|
|
|
634
590
|
|
|
635
591
|
### Return type
|
|
@@ -642,7 +598,7 @@ No authorization required
|
|
|
642
598
|
|
|
643
599
|
### HTTP request headers
|
|
644
600
|
|
|
645
|
-
- **Content-Type**:
|
|
601
|
+
- **Content-Type**: application/json
|
|
646
602
|
- **Accept**: application/json
|
|
647
603
|
|
|
648
604
|
|