yellowgrid-api-ts 3.2.94-dev.0 → 3.2.95-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/README.md CHANGED
@@ -140,6 +140,7 @@ Class | Method | HTTP request | Description
140
140
  *NumberPortingApi* | [**getGetAdminNumberPort**](docs/NumberPortingApi.md#getgetadminnumberport) | **GET** /admin/sip/numbers/ports/{id} |
141
141
  *NumberPortingApi* | [**getGetAdminNumberPorts**](docs/NumberPortingApi.md#getgetadminnumberports) | **GET** /admin/sip/numbers/ports |
142
142
  *NumberPortingApi* | [**getUpdateNumberPort**](docs/NumberPortingApi.md#getupdatenumberport) | **GET** /sip/numbers/ports/{id} |
143
+ *NumberPortingApi* | [**patchCancelAdminNumberPort**](docs/NumberPortingApi.md#patchcanceladminnumberport) | **PATCH** /admin/sip/numbers/ports/{id}/cancel |
143
144
  *NumberPortingApi* | [**patchCloseAdminNumberPort**](docs/NumberPortingApi.md#patchcloseadminnumberport) | **PATCH** /admin/sip/numbers/ports/{id}/close |
144
145
  *NumberPortingApi* | [**postAddAdminNote**](docs/NumberPortingApi.md#postaddadminnote) | **POST** /admin/sip/numbers/ports/{id}/notes |
145
146
  *NumberPortingApi* | [**postCreateNumberPort**](docs/NumberPortingApi.md#postcreatenumberport) | **POST** /sip/numbers/ports |
package/api.ts CHANGED
@@ -783,6 +783,12 @@ export interface AdminNumberPortDTO {
783
783
  * @memberof AdminNumberPortDTO
784
784
  */
785
785
  'cloas'?: Array<AttachmentModel>;
786
+ /**
787
+ * Created At
788
+ * @type {string}
789
+ * @memberof AdminNumberPortDTO
790
+ */
791
+ 'createdAt'?: string;
786
792
  }
787
793
  /**
788
794
  * Admin Order Request
@@ -18420,6 +18426,39 @@ export const NumberPortingApiAxiosParamCreator = function (configuration?: Confi
18420
18426
 
18421
18427
 
18422
18428
 
18429
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
18430
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18431
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18432
+
18433
+ return {
18434
+ url: toPathString(localVarUrlObj),
18435
+ options: localVarRequestOptions,
18436
+ };
18437
+ },
18438
+ /**
18439
+ *
18440
+ * @param {number} id Number Port ID
18441
+ * @param {*} [options] Override http request option.
18442
+ * @throws {RequiredError}
18443
+ */
18444
+ patchCancelAdminNumberPort: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18445
+ // verify required parameter 'id' is not null or undefined
18446
+ assertParamExists('patchCancelAdminNumberPort', 'id', id)
18447
+ const localVarPath = `/admin/sip/numbers/ports/{id}/cancel`
18448
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
18449
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18450
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18451
+ let baseOptions;
18452
+ if (configuration) {
18453
+ baseOptions = configuration.baseOptions;
18454
+ }
18455
+
18456
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
18457
+ const localVarHeaderParameter = {} as any;
18458
+ const localVarQueryParameter = {} as any;
18459
+
18460
+
18461
+
18423
18462
  setSearchParams(localVarUrlObj, localVarQueryParameter);
18424
18463
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18425
18464
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -18901,6 +18940,18 @@ export const NumberPortingApiFp = function(configuration?: Configuration) {
18901
18940
  const localVarOperationServerBasePath = operationServerMap['NumberPortingApi.getUpdateNumberPort']?.[localVarOperationServerIndex]?.url;
18902
18941
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18903
18942
  },
18943
+ /**
18944
+ *
18945
+ * @param {number} id Number Port ID
18946
+ * @param {*} [options] Override http request option.
18947
+ * @throws {RequiredError}
18948
+ */
18949
+ async patchCancelAdminNumberPort(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminNumberPortDTO>> {
18950
+ const localVarAxiosArgs = await localVarAxiosParamCreator.patchCancelAdminNumberPort(id, options);
18951
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
18952
+ const localVarOperationServerBasePath = operationServerMap['NumberPortingApi.patchCancelAdminNumberPort']?.[localVarOperationServerIndex]?.url;
18953
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18954
+ },
18904
18955
  /**
18905
18956
  *
18906
18957
  * @param {number} id Number Port ID
@@ -19069,6 +19120,15 @@ export const NumberPortingApiFactory = function (configuration?: Configuration,
19069
19120
  getUpdateNumberPort(id: number, options?: RawAxiosRequestConfig): AxiosPromise<NumberPortDTO> {
19070
19121
  return localVarFp.getUpdateNumberPort(id, options).then((request) => request(axios, basePath));
19071
19122
  },
19123
+ /**
19124
+ *
19125
+ * @param {number} id Number Port ID
19126
+ * @param {*} [options] Override http request option.
19127
+ * @throws {RequiredError}
19128
+ */
19129
+ patchCancelAdminNumberPort(id: number, options?: RawAxiosRequestConfig): AxiosPromise<AdminNumberPortDTO> {
19130
+ return localVarFp.patchCancelAdminNumberPort(id, options).then((request) => request(axios, basePath));
19131
+ },
19072
19132
  /**
19073
19133
  *
19074
19134
  * @param {number} id Number Port ID
@@ -19229,6 +19289,17 @@ export class NumberPortingApi extends BaseAPI {
19229
19289
  return NumberPortingApiFp(this.configuration).getUpdateNumberPort(id, options).then((request) => request(this.axios, this.basePath));
19230
19290
  }
19231
19291
 
19292
+ /**
19293
+ *
19294
+ * @param {number} id Number Port ID
19295
+ * @param {*} [options] Override http request option.
19296
+ * @throws {RequiredError}
19297
+ * @memberof NumberPortingApi
19298
+ */
19299
+ public patchCancelAdminNumberPort(id: number, options?: RawAxiosRequestConfig) {
19300
+ return NumberPortingApiFp(this.configuration).patchCancelAdminNumberPort(id, options).then((request) => request(this.axios, this.basePath));
19301
+ }
19302
+
19232
19303
  /**
19233
19304
  *
19234
19305
  * @param {number} id Number Port ID
package/dist/api.d.ts CHANGED
@@ -773,6 +773,12 @@ export interface AdminNumberPortDTO {
773
773
  * @memberof AdminNumberPortDTO
774
774
  */
775
775
  'cloas'?: Array<AttachmentModel>;
776
+ /**
777
+ * Created At
778
+ * @type {string}
779
+ * @memberof AdminNumberPortDTO
780
+ */
781
+ 'createdAt'?: string;
776
782
  }
777
783
  /**
778
784
  * Admin Order Request
@@ -14838,6 +14844,13 @@ export declare const NumberPortingApiAxiosParamCreator: (configuration?: Configu
14838
14844
  * @throws {RequiredError}
14839
14845
  */
14840
14846
  getUpdateNumberPort: (id: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
14847
+ /**
14848
+ *
14849
+ * @param {number} id Number Port ID
14850
+ * @param {*} [options] Override http request option.
14851
+ * @throws {RequiredError}
14852
+ */
14853
+ patchCancelAdminNumberPort: (id: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
14841
14854
  /**
14842
14855
  *
14843
14856
  * @param {number} id Number Port ID
@@ -14962,6 +14975,13 @@ export declare const NumberPortingApiFp: (configuration?: Configuration) => {
14962
14975
  * @throws {RequiredError}
14963
14976
  */
14964
14977
  getUpdateNumberPort(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<NumberPortDTO>>;
14978
+ /**
14979
+ *
14980
+ * @param {number} id Number Port ID
14981
+ * @param {*} [options] Override http request option.
14982
+ * @throws {RequiredError}
14983
+ */
14984
+ patchCancelAdminNumberPort(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminNumberPortDTO>>;
14965
14985
  /**
14966
14986
  *
14967
14987
  * @param {number} id Number Port ID
@@ -15086,6 +15106,13 @@ export declare const NumberPortingApiFactory: (configuration?: Configuration, ba
15086
15106
  * @throws {RequiredError}
15087
15107
  */
15088
15108
  getUpdateNumberPort(id: number, options?: RawAxiosRequestConfig): AxiosPromise<NumberPortDTO>;
15109
+ /**
15110
+ *
15111
+ * @param {number} id Number Port ID
15112
+ * @param {*} [options] Override http request option.
15113
+ * @throws {RequiredError}
15114
+ */
15115
+ patchCancelAdminNumberPort(id: number, options?: RawAxiosRequestConfig): AxiosPromise<AdminNumberPortDTO>;
15089
15116
  /**
15090
15117
  *
15091
15118
  * @param {number} id Number Port ID
@@ -15217,6 +15244,14 @@ export declare class NumberPortingApi extends BaseAPI {
15217
15244
  * @memberof NumberPortingApi
15218
15245
  */
15219
15246
  getUpdateNumberPort(id: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<NumberPortDTO, any, {}>>;
15247
+ /**
15248
+ *
15249
+ * @param {number} id Number Port ID
15250
+ * @param {*} [options] Override http request option.
15251
+ * @throws {RequiredError}
15252
+ * @memberof NumberPortingApi
15253
+ */
15254
+ patchCancelAdminNumberPort(id: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AdminNumberPortDTO, any, {}>>;
15220
15255
  /**
15221
15256
  *
15222
15257
  * @param {number} id Number Port ID
package/dist/api.js CHANGED
@@ -8138,6 +8138,42 @@ var NumberPortingApiAxiosParamCreator = function (configuration) {
8138
8138
  });
8139
8139
  });
8140
8140
  },
8141
+ /**
8142
+ *
8143
+ * @param {number} id Number Port ID
8144
+ * @param {*} [options] Override http request option.
8145
+ * @throws {RequiredError}
8146
+ */
8147
+ patchCancelAdminNumberPort: function (id_1) {
8148
+ var args_1 = [];
8149
+ for (var _i = 1; _i < arguments.length; _i++) {
8150
+ args_1[_i - 1] = arguments[_i];
8151
+ }
8152
+ return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
8153
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
8154
+ if (options === void 0) { options = {}; }
8155
+ return __generator(this, function (_a) {
8156
+ // verify required parameter 'id' is not null or undefined
8157
+ (0, common_1.assertParamExists)('patchCancelAdminNumberPort', 'id', id);
8158
+ localVarPath = "/admin/sip/numbers/ports/{id}/cancel"
8159
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
8160
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8161
+ if (configuration) {
8162
+ baseOptions = configuration.baseOptions;
8163
+ }
8164
+ localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
8165
+ localVarHeaderParameter = {};
8166
+ localVarQueryParameter = {};
8167
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8168
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8169
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8170
+ return [2 /*return*/, {
8171
+ url: (0, common_1.toPathString)(localVarUrlObj),
8172
+ options: localVarRequestOptions,
8173
+ }];
8174
+ });
8175
+ });
8176
+ },
8141
8177
  /**
8142
8178
  *
8143
8179
  * @param {number} id Number Port ID
@@ -8637,6 +8673,28 @@ var NumberPortingApiFp = function (configuration) {
8637
8673
  });
8638
8674
  });
8639
8675
  },
8676
+ /**
8677
+ *
8678
+ * @param {number} id Number Port ID
8679
+ * @param {*} [options] Override http request option.
8680
+ * @throws {RequiredError}
8681
+ */
8682
+ patchCancelAdminNumberPort: function (id, options) {
8683
+ return __awaiter(this, void 0, void 0, function () {
8684
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
8685
+ var _a, _b, _c;
8686
+ return __generator(this, function (_d) {
8687
+ switch (_d.label) {
8688
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchCancelAdminNumberPort(id, options)];
8689
+ case 1:
8690
+ localVarAxiosArgs = _d.sent();
8691
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8692
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['NumberPortingApi.patchCancelAdminNumberPort']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8693
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
8694
+ }
8695
+ });
8696
+ });
8697
+ },
8640
8698
  /**
8641
8699
  *
8642
8700
  * @param {number} id Number Port ID
@@ -8865,6 +8923,15 @@ var NumberPortingApiFactory = function (configuration, basePath, axios) {
8865
8923
  getUpdateNumberPort: function (id, options) {
8866
8924
  return localVarFp.getUpdateNumberPort(id, options).then(function (request) { return request(axios, basePath); });
8867
8925
  },
8926
+ /**
8927
+ *
8928
+ * @param {number} id Number Port ID
8929
+ * @param {*} [options] Override http request option.
8930
+ * @throws {RequiredError}
8931
+ */
8932
+ patchCancelAdminNumberPort: function (id, options) {
8933
+ return localVarFp.patchCancelAdminNumberPort(id, options).then(function (request) { return request(axios, basePath); });
8934
+ },
8868
8935
  /**
8869
8936
  *
8870
8937
  * @param {number} id Number Port ID
@@ -9029,6 +9096,17 @@ var NumberPortingApi = /** @class */ (function (_super) {
9029
9096
  var _this = this;
9030
9097
  return (0, exports.NumberPortingApiFp)(this.configuration).getUpdateNumberPort(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
9031
9098
  };
9099
+ /**
9100
+ *
9101
+ * @param {number} id Number Port ID
9102
+ * @param {*} [options] Override http request option.
9103
+ * @throws {RequiredError}
9104
+ * @memberof NumberPortingApi
9105
+ */
9106
+ NumberPortingApi.prototype.patchCancelAdminNumberPort = function (id, options) {
9107
+ var _this = this;
9108
+ return (0, exports.NumberPortingApiFp)(this.configuration).patchCancelAdminNumberPort(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
9109
+ };
9032
9110
  /**
9033
9111
  *
9034
9112
  * @param {number} id Number Port ID
@@ -14,5 +14,10 @@ export declare const PortStatusEnum: {
14
14
  readonly value: 2;
15
15
  readonly publicValue: "Closed";
16
16
  };
17
+ readonly CANCELLED: {
18
+ readonly name: "CANCELLED";
19
+ readonly value: 3;
20
+ readonly publicValue: "Cancelled";
21
+ };
17
22
  };
18
23
  export type PortStatusEnum = typeof PortStatusEnum;
@@ -16,5 +16,10 @@ exports.PortStatusEnum = {
16
16
  "name": "CLOSED",
17
17
  "value": 2,
18
18
  "publicValue": "Closed"
19
+ },
20
+ "CANCELLED": {
21
+ "name": "CANCELLED",
22
+ "value": 3,
23
+ "publicValue": "Cancelled"
19
24
  }
20
25
  };
@@ -26,6 +26,7 @@ Name | Type | Description | Notes
26
26
  **ticketId** | **number** | Ticket ID | [optional] [default to undefined]
27
27
  **notes** | [**Array&lt;NumberPortNoteDTO&gt;**](NumberPortNoteDTO.md) | Notes | [optional] [default to undefined]
28
28
  **cloas** | [**Array&lt;AttachmentModel&gt;**](AttachmentModel.md) | Attachments | [optional] [default to undefined]
29
+ **createdAt** | **string** | Created At | [optional] [default to undefined]
29
30
 
30
31
  ## Example
31
32
 
@@ -53,6 +54,7 @@ const instance: AdminNumberPortDTO = {
53
54
  ticketId,
54
55
  notes,
55
56
  cloas,
57
+ createdAt,
56
58
  };
57
59
  ```
58
60
 
@@ -9,6 +9,7 @@ All URIs are relative to *https://api.local.yellowgrid.co.uk*
9
9
  |[**getGetAdminNumberPort**](#getgetadminnumberport) | **GET** /admin/sip/numbers/ports/{id} | |
10
10
  |[**getGetAdminNumberPorts**](#getgetadminnumberports) | **GET** /admin/sip/numbers/ports | |
11
11
  |[**getUpdateNumberPort**](#getupdatenumberport) | **GET** /sip/numbers/ports/{id} | |
12
+ |[**patchCancelAdminNumberPort**](#patchcanceladminnumberport) | **PATCH** /admin/sip/numbers/ports/{id}/cancel | |
12
13
  |[**patchCloseAdminNumberPort**](#patchcloseadminnumberport) | **PATCH** /admin/sip/numbers/ports/{id}/close | |
13
14
  |[**postAddAdminNote**](#postaddadminnote) | **POST** /admin/sip/numbers/ports/{id}/notes | |
14
15
  |[**postCreateNumberPort**](#postcreatenumberport) | **POST** /sip/numbers/ports | |
@@ -283,6 +284,59 @@ No authorization required
283
284
  - **Accept**: application/json
284
285
 
285
286
 
287
+ ### HTTP response details
288
+ | Status code | Description | Response headers |
289
+ |-------------|-------------|------------------|
290
+ |**200** | NumberPortResponseDTO | - |
291
+ |**400** | Bad Request | - |
292
+ |**401** | Unauthorised | - |
293
+ |**403** | Access Denied | - |
294
+
295
+ [[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)
296
+
297
+ # **patchCancelAdminNumberPort**
298
+ > AdminNumberPortDTO patchCancelAdminNumberPort()
299
+
300
+
301
+ ### Example
302
+
303
+ ```typescript
304
+ import {
305
+ NumberPortingApi,
306
+ Configuration
307
+ } from 'yellowgrid-api-ts';
308
+
309
+ const configuration = new Configuration();
310
+ const apiInstance = new NumberPortingApi(configuration);
311
+
312
+ let id: number; //Number Port ID (default to undefined)
313
+
314
+ const { status, data } = await apiInstance.patchCancelAdminNumberPort(
315
+ id
316
+ );
317
+ ```
318
+
319
+ ### Parameters
320
+
321
+ |Name | Type | Description | Notes|
322
+ |------------- | ------------- | ------------- | -------------|
323
+ | **id** | [**number**] | Number Port ID | defaults to undefined|
324
+
325
+
326
+ ### Return type
327
+
328
+ **AdminNumberPortDTO**
329
+
330
+ ### Authorization
331
+
332
+ No authorization required
333
+
334
+ ### HTTP request headers
335
+
336
+ - **Content-Type**: Not defined
337
+ - **Accept**: application/json
338
+
339
+
286
340
  ### HTTP response details
287
341
  | Status code | Description | Response headers |
288
342
  |-------------|-------------|------------------|
@@ -13,6 +13,11 @@ export const PortStatusEnum = {
13
13
  "name": "CLOSED",
14
14
  "value": 2,
15
15
  "publicValue": "Closed"
16
+ },
17
+ "CANCELLED": {
18
+ "name": "CANCELLED",
19
+ "value": 3,
20
+ "publicValue": "Cancelled"
16
21
  }
17
22
  } as const;
18
23
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yellowgrid-api-ts",
3
- "version": "3.2.94-dev.0",
3
+ "version": "3.2.95-dev.0",
4
4
  "description": "OpenAPI client for yellowgrid-api-ts",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {