yellowgrid-api-ts 3.2.94-dev.0 → 3.2.96-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 |
@@ -162,6 +163,7 @@ Class | Method | HTTP request | Description
162
163
  *OrdersApi* | [**getGetOrderPdf**](docs/OrdersApi.md#getgetorderpdf) | **GET** /orders/{id}/pdf | Download Order PDF
163
164
  *OrdersApi* | [**getGetOrderSummary**](docs/OrdersApi.md#getgetordersummary) | **GET** /admin/orders/{id}/summary | Get Order Summary (Admin)
164
165
  *OrdersApi* | [**getGetOrders**](docs/OrdersApi.md#getgetorders) | **GET** /orders | Get Orders (Beta)
166
+ *OrdersApi* | [**patchCompleteOrder**](docs/OrdersApi.md#patchcompleteorder) | **PATCH** /admin/orders/{id}/complete | Mark Order As Complete (Admin)
165
167
  *OrdersApi* | [**postAddOrderNote**](docs/OrdersApi.md#postaddordernote) | **POST** /admin/orders/{id}/notes | Add Order Note
166
168
  *OrdersApi* | [**postCreateAdminOrder**](docs/OrdersApi.md#postcreateadminorder) | **POST** /admin/orders | Create An Order (Admin)
167
169
  *OrdersApi* | [**postCreateConsignment**](docs/OrdersApi.md#postcreateconsignment) | **POST** /admin/orders/{id}/shipments/{shipment_id}/consignment | Create Shipping Consignment
@@ -187,6 +189,7 @@ Class | Method | HTTP request | Description
187
189
  *ProductsApi* | [**getGetStockList**](docs/ProductsApi.md#getgetstocklist) | **GET** /products/stock | Get Current Stock & Pricing
188
190
  *ProductsApi* | [**getGetTcxTemplates**](docs/ProductsApi.md#getgettcxtemplates) | **GET** /products/attributes/tcx/templates | Get 3CX Templates
189
191
  *ProductsApi* | [**getSearchProducts**](docs/ProductsApi.md#getsearchproducts) | **GET** /products/search | Search Products
192
+ *ProductsApi* | [**patchAddQuantityToStock**](docs/ProductsApi.md#patchaddquantitytostock) | **PATCH** /products/{sku}/stock/add | Add Item Quantity To Stock
190
193
  *ProductsApi* | [**postGetProduct**](docs/ProductsApi.md#postgetproduct) | **POST** /products/{sku} | Get Product
191
194
  *ProductsApi* | [**postGetProductForCustomer**](docs/ProductsApi.md#postgetproductforcustomer) | **POST** /admin/products/{sku} | Get Product For Customer
192
195
  *ProvisioningApi* | [**deleteAddFanvilMac**](docs/ProvisioningApi.md#deleteaddfanvilmac) | **DELETE** /provisioning/fanvil/groups/{id}/macs/{mac} | Remove MAC address from DB and FDPS group
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
@@ -20387,6 +20458,40 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
20387
20458
 
20388
20459
 
20389
20460
 
20461
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
20462
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20463
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
20464
+
20465
+ return {
20466
+ url: toPathString(localVarUrlObj),
20467
+ options: localVarRequestOptions,
20468
+ };
20469
+ },
20470
+ /**
20471
+ * Mark Order As Complete (Admin)
20472
+ * @summary Mark Order As Complete (Admin)
20473
+ * @param {number} id Order ID
20474
+ * @param {*} [options] Override http request option.
20475
+ * @throws {RequiredError}
20476
+ */
20477
+ patchCompleteOrder: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
20478
+ // verify required parameter 'id' is not null or undefined
20479
+ assertParamExists('patchCompleteOrder', 'id', id)
20480
+ const localVarPath = `/admin/orders/{id}/complete`
20481
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
20482
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
20483
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
20484
+ let baseOptions;
20485
+ if (configuration) {
20486
+ baseOptions = configuration.baseOptions;
20487
+ }
20488
+
20489
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
20490
+ const localVarHeaderParameter = {} as any;
20491
+ const localVarQueryParameter = {} as any;
20492
+
20493
+
20494
+
20390
20495
  setSearchParams(localVarUrlObj, localVarQueryParameter);
20391
20496
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20392
20497
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -21212,6 +21317,19 @@ export const OrdersApiFp = function(configuration?: Configuration) {
21212
21317
  const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetOrders']?.[localVarOperationServerIndex]?.url;
21213
21318
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21214
21319
  },
21320
+ /**
21321
+ * Mark Order As Complete (Admin)
21322
+ * @summary Mark Order As Complete (Admin)
21323
+ * @param {number} id Order ID
21324
+ * @param {*} [options] Override http request option.
21325
+ * @throws {RequiredError}
21326
+ */
21327
+ async patchCompleteOrder(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderDetailsDTO>> {
21328
+ const localVarAxiosArgs = await localVarAxiosParamCreator.patchCompleteOrder(id, options);
21329
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
21330
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.patchCompleteOrder']?.[localVarOperationServerIndex]?.url;
21331
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21332
+ },
21215
21333
  /**
21216
21334
  * Add Order Note
21217
21335
  * @summary Add Order Note
@@ -21565,6 +21683,16 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
21565
21683
  getGetOrders(pageSize?: number, page?: number, search?: string, fulfillable?: boolean | null, status?: GetGetOrdersStatusEnum, filter?: GetGetOrdersFilterEnum, customerId?: number | null, options?: RawAxiosRequestConfig): AxiosPromise<OrderSummariesModel> {
21566
21684
  return localVarFp.getGetOrders(pageSize, page, search, fulfillable, status, filter, customerId, options).then((request) => request(axios, basePath));
21567
21685
  },
21686
+ /**
21687
+ * Mark Order As Complete (Admin)
21688
+ * @summary Mark Order As Complete (Admin)
21689
+ * @param {number} id Order ID
21690
+ * @param {*} [options] Override http request option.
21691
+ * @throws {RequiredError}
21692
+ */
21693
+ patchCompleteOrder(id: number, options?: RawAxiosRequestConfig): AxiosPromise<OrderDetailsDTO> {
21694
+ return localVarFp.patchCompleteOrder(id, options).then((request) => request(axios, basePath));
21695
+ },
21568
21696
  /**
21569
21697
  * Add Order Note
21570
21698
  * @summary Add Order Note
@@ -21890,6 +22018,18 @@ export class OrdersApi extends BaseAPI {
21890
22018
  return OrdersApiFp(this.configuration).getGetOrders(pageSize, page, search, fulfillable, status, filter, customerId, options).then((request) => request(this.axios, this.basePath));
21891
22019
  }
21892
22020
 
22021
+ /**
22022
+ * Mark Order As Complete (Admin)
22023
+ * @summary Mark Order As Complete (Admin)
22024
+ * @param {number} id Order ID
22025
+ * @param {*} [options] Override http request option.
22026
+ * @throws {RequiredError}
22027
+ * @memberof OrdersApi
22028
+ */
22029
+ public patchCompleteOrder(id: number, options?: RawAxiosRequestConfig) {
22030
+ return OrdersApiFp(this.configuration).patchCompleteOrder(id, options).then((request) => request(this.axios, this.basePath));
22031
+ }
22032
+
21893
22033
  /**
21894
22034
  * Add Order Note
21895
22035
  * @summary Add Order Note
@@ -22721,6 +22861,47 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
22721
22861
 
22722
22862
 
22723
22863
 
22864
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
22865
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
22866
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
22867
+
22868
+ return {
22869
+ url: toPathString(localVarUrlObj),
22870
+ options: localVarRequestOptions,
22871
+ };
22872
+ },
22873
+ /**
22874
+ * Add Item Quantity To Stock
22875
+ * @summary Add Item Quantity To Stock
22876
+ * @param {string} sku Product SKU
22877
+ * @param {number} quantity Quantity
22878
+ * @param {*} [options] Override http request option.
22879
+ * @throws {RequiredError}
22880
+ */
22881
+ patchAddQuantityToStock: async (sku: string, quantity: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
22882
+ // verify required parameter 'sku' is not null or undefined
22883
+ assertParamExists('patchAddQuantityToStock', 'sku', sku)
22884
+ // verify required parameter 'quantity' is not null or undefined
22885
+ assertParamExists('patchAddQuantityToStock', 'quantity', quantity)
22886
+ const localVarPath = `/products/{sku}/stock/add`
22887
+ .replace(`{${"sku"}}`, encodeURIComponent(String(sku)));
22888
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
22889
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
22890
+ let baseOptions;
22891
+ if (configuration) {
22892
+ baseOptions = configuration.baseOptions;
22893
+ }
22894
+
22895
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
22896
+ const localVarHeaderParameter = {} as any;
22897
+ const localVarQueryParameter = {} as any;
22898
+
22899
+ if (quantity !== undefined) {
22900
+ localVarQueryParameter['quantity'] = quantity;
22901
+ }
22902
+
22903
+
22904
+
22724
22905
  setSearchParams(localVarUrlObj, localVarQueryParameter);
22725
22906
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
22726
22907
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -22916,6 +23097,20 @@ export const ProductsApiFp = function(configuration?: Configuration) {
22916
23097
  const localVarOperationServerBasePath = operationServerMap['ProductsApi.getSearchProducts']?.[localVarOperationServerIndex]?.url;
22917
23098
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
22918
23099
  },
23100
+ /**
23101
+ * Add Item Quantity To Stock
23102
+ * @summary Add Item Quantity To Stock
23103
+ * @param {string} sku Product SKU
23104
+ * @param {number} quantity Quantity
23105
+ * @param {*} [options] Override http request option.
23106
+ * @throws {RequiredError}
23107
+ */
23108
+ async patchAddQuantityToStock(sku: string, quantity: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
23109
+ const localVarAxiosArgs = await localVarAxiosParamCreator.patchAddQuantityToStock(sku, quantity, options);
23110
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
23111
+ const localVarOperationServerBasePath = operationServerMap['ProductsApi.patchAddQuantityToStock']?.[localVarOperationServerIndex]?.url;
23112
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
23113
+ },
22919
23114
  /**
22920
23115
  * Get Product
22921
23116
  * @summary Get Product
@@ -23023,6 +23218,17 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
23023
23218
  getSearchProducts(pageSize?: number, page?: number, search?: string, options?: RawAxiosRequestConfig): AxiosPromise<ProductSearchResultsModel> {
23024
23219
  return localVarFp.getSearchProducts(pageSize, page, search, options).then((request) => request(axios, basePath));
23025
23220
  },
23221
+ /**
23222
+ * Add Item Quantity To Stock
23223
+ * @summary Add Item Quantity To Stock
23224
+ * @param {string} sku Product SKU
23225
+ * @param {number} quantity Quantity
23226
+ * @param {*} [options] Override http request option.
23227
+ * @throws {RequiredError}
23228
+ */
23229
+ patchAddQuantityToStock(sku: string, quantity: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
23230
+ return localVarFp.patchAddQuantityToStock(sku, quantity, options).then((request) => request(axios, basePath));
23231
+ },
23026
23232
  /**
23027
23233
  * Get Product
23028
23234
  * @summary Get Product
@@ -23138,6 +23344,19 @@ export class ProductsApi extends BaseAPI {
23138
23344
  return ProductsApiFp(this.configuration).getSearchProducts(pageSize, page, search, options).then((request) => request(this.axios, this.basePath));
23139
23345
  }
23140
23346
 
23347
+ /**
23348
+ * Add Item Quantity To Stock
23349
+ * @summary Add Item Quantity To Stock
23350
+ * @param {string} sku Product SKU
23351
+ * @param {number} quantity Quantity
23352
+ * @param {*} [options] Override http request option.
23353
+ * @throws {RequiredError}
23354
+ * @memberof ProductsApi
23355
+ */
23356
+ public patchAddQuantityToStock(sku: string, quantity: number, options?: RawAxiosRequestConfig) {
23357
+ return ProductsApiFp(this.configuration).patchAddQuantityToStock(sku, quantity, options).then((request) => request(this.axios, this.basePath));
23358
+ }
23359
+
23141
23360
  /**
23142
23361
  * Get Product
23143
23362
  * @summary Get Product
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
@@ -15766,6 +15801,14 @@ export declare const OrdersApiAxiosParamCreator: (configuration?: Configuration)
15766
15801
  * @throws {RequiredError}
15767
15802
  */
15768
15803
  getGetOrders: (pageSize?: number, page?: number, search?: string, fulfillable?: boolean | null, status?: GetGetOrdersStatusEnum, filter?: GetGetOrdersFilterEnum, customerId?: number | null, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
15804
+ /**
15805
+ * Mark Order As Complete (Admin)
15806
+ * @summary Mark Order As Complete (Admin)
15807
+ * @param {number} id Order ID
15808
+ * @param {*} [options] Override http request option.
15809
+ * @throws {RequiredError}
15810
+ */
15811
+ patchCompleteOrder: (id: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
15769
15812
  /**
15770
15813
  * Add Order Note
15771
15814
  * @summary Add Order Note
@@ -16015,6 +16058,14 @@ export declare const OrdersApiFp: (configuration?: Configuration) => {
16015
16058
  * @throws {RequiredError}
16016
16059
  */
16017
16060
  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>>;
16061
+ /**
16062
+ * Mark Order As Complete (Admin)
16063
+ * @summary Mark Order As Complete (Admin)
16064
+ * @param {number} id Order ID
16065
+ * @param {*} [options] Override http request option.
16066
+ * @throws {RequiredError}
16067
+ */
16068
+ patchCompleteOrder(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderDetailsDTO>>;
16018
16069
  /**
16019
16070
  * Add Order Note
16020
16071
  * @summary Add Order Note
@@ -16264,6 +16315,14 @@ export declare const OrdersApiFactory: (configuration?: Configuration, basePath?
16264
16315
  * @throws {RequiredError}
16265
16316
  */
16266
16317
  getGetOrders(pageSize?: number, page?: number, search?: string, fulfillable?: boolean | null, status?: GetGetOrdersStatusEnum, filter?: GetGetOrdersFilterEnum, customerId?: number | null, options?: RawAxiosRequestConfig): AxiosPromise<OrderSummariesModel>;
16318
+ /**
16319
+ * Mark Order As Complete (Admin)
16320
+ * @summary Mark Order As Complete (Admin)
16321
+ * @param {number} id Order ID
16322
+ * @param {*} [options] Override http request option.
16323
+ * @throws {RequiredError}
16324
+ */
16325
+ patchCompleteOrder(id: number, options?: RawAxiosRequestConfig): AxiosPromise<OrderDetailsDTO>;
16267
16326
  /**
16268
16327
  * Add Order Note
16269
16328
  * @summary Add Order Note
@@ -16525,6 +16584,15 @@ export declare class OrdersApi extends BaseAPI {
16525
16584
  * @memberof OrdersApi
16526
16585
  */
16527
16586
  getGetOrders(pageSize?: number, page?: number, search?: string, fulfillable?: boolean | null, status?: GetGetOrdersStatusEnum, filter?: GetGetOrdersFilterEnum, customerId?: number | null, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OrderSummariesModel, any, {}>>;
16587
+ /**
16588
+ * Mark Order As Complete (Admin)
16589
+ * @summary Mark Order As Complete (Admin)
16590
+ * @param {number} id Order ID
16591
+ * @param {*} [options] Override http request option.
16592
+ * @throws {RequiredError}
16593
+ * @memberof OrdersApi
16594
+ */
16595
+ patchCompleteOrder(id: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OrderDetailsDTO, any, {}>>;
16528
16596
  /**
16529
16597
  * Add Order Note
16530
16598
  * @summary Add Order Note
@@ -17008,6 +17076,15 @@ export declare const ProductsApiAxiosParamCreator: (configuration?: Configuratio
17008
17076
  * @throws {RequiredError}
17009
17077
  */
17010
17078
  getSearchProducts: (pageSize?: number, page?: number, search?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
17079
+ /**
17080
+ * Add Item Quantity To Stock
17081
+ * @summary Add Item Quantity To Stock
17082
+ * @param {string} sku Product SKU
17083
+ * @param {number} quantity Quantity
17084
+ * @param {*} [options] Override http request option.
17085
+ * @throws {RequiredError}
17086
+ */
17087
+ patchAddQuantityToStock: (sku: string, quantity: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
17011
17088
  /**
17012
17089
  * Get Product
17013
17090
  * @summary Get Product
@@ -17087,6 +17164,15 @@ export declare const ProductsApiFp: (configuration?: Configuration) => {
17087
17164
  * @throws {RequiredError}
17088
17165
  */
17089
17166
  getSearchProducts(pageSize?: number, page?: number, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductSearchResultsModel>>;
17167
+ /**
17168
+ * Add Item Quantity To Stock
17169
+ * @summary Add Item Quantity To Stock
17170
+ * @param {string} sku Product SKU
17171
+ * @param {number} quantity Quantity
17172
+ * @param {*} [options] Override http request option.
17173
+ * @throws {RequiredError}
17174
+ */
17175
+ patchAddQuantityToStock(sku: string, quantity: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
17090
17176
  /**
17091
17177
  * Get Product
17092
17178
  * @summary Get Product
@@ -17166,6 +17252,15 @@ export declare const ProductsApiFactory: (configuration?: Configuration, basePat
17166
17252
  * @throws {RequiredError}
17167
17253
  */
17168
17254
  getSearchProducts(pageSize?: number, page?: number, search?: string, options?: RawAxiosRequestConfig): AxiosPromise<ProductSearchResultsModel>;
17255
+ /**
17256
+ * Add Item Quantity To Stock
17257
+ * @summary Add Item Quantity To Stock
17258
+ * @param {string} sku Product SKU
17259
+ * @param {number} quantity Quantity
17260
+ * @param {*} [options] Override http request option.
17261
+ * @throws {RequiredError}
17262
+ */
17263
+ patchAddQuantityToStock(sku: string, quantity: number, options?: RawAxiosRequestConfig): AxiosPromise<void>;
17169
17264
  /**
17170
17265
  * Get Product
17171
17266
  * @summary Get Product
@@ -17254,6 +17349,16 @@ export declare class ProductsApi extends BaseAPI {
17254
17349
  * @memberof ProductsApi
17255
17350
  */
17256
17351
  getSearchProducts(pageSize?: number, page?: number, search?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ProductSearchResultsModel, any, {}>>;
17352
+ /**
17353
+ * Add Item Quantity To Stock
17354
+ * @summary Add Item Quantity To Stock
17355
+ * @param {string} sku Product SKU
17356
+ * @param {number} quantity Quantity
17357
+ * @param {*} [options] Override http request option.
17358
+ * @throws {RequiredError}
17359
+ * @memberof ProductsApi
17360
+ */
17361
+ patchAddQuantityToStock(sku: string, quantity: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
17257
17362
  /**
17258
17363
  * Get Product
17259
17364
  * @summary Get Product
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
@@ -10278,6 +10356,43 @@ var OrdersApiAxiosParamCreator = function (configuration) {
10278
10356
  });
10279
10357
  });
10280
10358
  },
10359
+ /**
10360
+ * Mark Order As Complete (Admin)
10361
+ * @summary Mark Order As Complete (Admin)
10362
+ * @param {number} id Order ID
10363
+ * @param {*} [options] Override http request option.
10364
+ * @throws {RequiredError}
10365
+ */
10366
+ patchCompleteOrder: function (id_1) {
10367
+ var args_1 = [];
10368
+ for (var _i = 1; _i < arguments.length; _i++) {
10369
+ args_1[_i - 1] = arguments[_i];
10370
+ }
10371
+ return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
10372
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
10373
+ if (options === void 0) { options = {}; }
10374
+ return __generator(this, function (_a) {
10375
+ // verify required parameter 'id' is not null or undefined
10376
+ (0, common_1.assertParamExists)('patchCompleteOrder', 'id', id);
10377
+ localVarPath = "/admin/orders/{id}/complete"
10378
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
10379
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10380
+ if (configuration) {
10381
+ baseOptions = configuration.baseOptions;
10382
+ }
10383
+ localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
10384
+ localVarHeaderParameter = {};
10385
+ localVarQueryParameter = {};
10386
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
10387
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10388
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10389
+ return [2 /*return*/, {
10390
+ url: (0, common_1.toPathString)(localVarUrlObj),
10391
+ options: localVarRequestOptions,
10392
+ }];
10393
+ });
10394
+ });
10395
+ },
10281
10396
  /**
10282
10397
  * Add Order Note
10283
10398
  * @summary Add Order Note
@@ -11222,6 +11337,29 @@ var OrdersApiFp = function (configuration) {
11222
11337
  });
11223
11338
  });
11224
11339
  },
11340
+ /**
11341
+ * Mark Order As Complete (Admin)
11342
+ * @summary Mark Order As Complete (Admin)
11343
+ * @param {number} id Order ID
11344
+ * @param {*} [options] Override http request option.
11345
+ * @throws {RequiredError}
11346
+ */
11347
+ patchCompleteOrder: function (id, options) {
11348
+ return __awaiter(this, void 0, void 0, function () {
11349
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
11350
+ var _a, _b, _c;
11351
+ return __generator(this, function (_d) {
11352
+ switch (_d.label) {
11353
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchCompleteOrder(id, options)];
11354
+ case 1:
11355
+ localVarAxiosArgs = _d.sent();
11356
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11357
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.patchCompleteOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11358
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
11359
+ }
11360
+ });
11361
+ });
11362
+ },
11225
11363
  /**
11226
11364
  * Add Order Note
11227
11365
  * @summary Add Order Note
@@ -11735,6 +11873,16 @@ var OrdersApiFactory = function (configuration, basePath, axios) {
11735
11873
  getGetOrders: function (pageSize, page, search, fulfillable, status, filter, customerId, options) {
11736
11874
  return localVarFp.getGetOrders(pageSize, page, search, fulfillable, status, filter, customerId, options).then(function (request) { return request(axios, basePath); });
11737
11875
  },
11876
+ /**
11877
+ * Mark Order As Complete (Admin)
11878
+ * @summary Mark Order As Complete (Admin)
11879
+ * @param {number} id Order ID
11880
+ * @param {*} [options] Override http request option.
11881
+ * @throws {RequiredError}
11882
+ */
11883
+ patchCompleteOrder: function (id, options) {
11884
+ return localVarFp.patchCompleteOrder(id, options).then(function (request) { return request(axios, basePath); });
11885
+ },
11738
11886
  /**
11739
11887
  * Add Order Note
11740
11888
  * @summary Add Order Note
@@ -12064,6 +12212,18 @@ var OrdersApi = /** @class */ (function (_super) {
12064
12212
  var _this = this;
12065
12213
  return (0, exports.OrdersApiFp)(this.configuration).getGetOrders(pageSize, page, search, fulfillable, status, filter, customerId, options).then(function (request) { return request(_this.axios, _this.basePath); });
12066
12214
  };
12215
+ /**
12216
+ * Mark Order As Complete (Admin)
12217
+ * @summary Mark Order As Complete (Admin)
12218
+ * @param {number} id Order ID
12219
+ * @param {*} [options] Override http request option.
12220
+ * @throws {RequiredError}
12221
+ * @memberof OrdersApi
12222
+ */
12223
+ OrdersApi.prototype.patchCompleteOrder = function (id, options) {
12224
+ var _this = this;
12225
+ return (0, exports.OrdersApiFp)(this.configuration).patchCompleteOrder(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
12226
+ };
12067
12227
  /**
12068
12228
  * Add Order Note
12069
12229
  * @summary Add Order Note
@@ -12935,6 +13095,49 @@ var ProductsApiAxiosParamCreator = function (configuration) {
12935
13095
  });
12936
13096
  });
12937
13097
  },
13098
+ /**
13099
+ * Add Item Quantity To Stock
13100
+ * @summary Add Item Quantity To Stock
13101
+ * @param {string} sku Product SKU
13102
+ * @param {number} quantity Quantity
13103
+ * @param {*} [options] Override http request option.
13104
+ * @throws {RequiredError}
13105
+ */
13106
+ patchAddQuantityToStock: function (sku_1, quantity_1) {
13107
+ var args_1 = [];
13108
+ for (var _i = 2; _i < arguments.length; _i++) {
13109
+ args_1[_i - 2] = arguments[_i];
13110
+ }
13111
+ return __awaiter(_this, __spreadArray([sku_1, quantity_1], args_1, true), void 0, function (sku, quantity, options) {
13112
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
13113
+ if (options === void 0) { options = {}; }
13114
+ return __generator(this, function (_a) {
13115
+ // verify required parameter 'sku' is not null or undefined
13116
+ (0, common_1.assertParamExists)('patchAddQuantityToStock', 'sku', sku);
13117
+ // verify required parameter 'quantity' is not null or undefined
13118
+ (0, common_1.assertParamExists)('patchAddQuantityToStock', 'quantity', quantity);
13119
+ localVarPath = "/products/{sku}/stock/add"
13120
+ .replace("{".concat("sku", "}"), encodeURIComponent(String(sku)));
13121
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
13122
+ if (configuration) {
13123
+ baseOptions = configuration.baseOptions;
13124
+ }
13125
+ localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
13126
+ localVarHeaderParameter = {};
13127
+ localVarQueryParameter = {};
13128
+ if (quantity !== undefined) {
13129
+ localVarQueryParameter['quantity'] = quantity;
13130
+ }
13131
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
13132
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13133
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13134
+ return [2 /*return*/, {
13135
+ url: (0, common_1.toPathString)(localVarUrlObj),
13136
+ options: localVarRequestOptions,
13137
+ }];
13138
+ });
13139
+ });
13140
+ },
12938
13141
  /**
12939
13142
  * Get Product
12940
13143
  * @summary Get Product
@@ -13194,6 +13397,30 @@ var ProductsApiFp = function (configuration) {
13194
13397
  });
13195
13398
  });
13196
13399
  },
13400
+ /**
13401
+ * Add Item Quantity To Stock
13402
+ * @summary Add Item Quantity To Stock
13403
+ * @param {string} sku Product SKU
13404
+ * @param {number} quantity Quantity
13405
+ * @param {*} [options] Override http request option.
13406
+ * @throws {RequiredError}
13407
+ */
13408
+ patchAddQuantityToStock: function (sku, quantity, options) {
13409
+ return __awaiter(this, void 0, void 0, function () {
13410
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
13411
+ var _a, _b, _c;
13412
+ return __generator(this, function (_d) {
13413
+ switch (_d.label) {
13414
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchAddQuantityToStock(sku, quantity, options)];
13415
+ case 1:
13416
+ localVarAxiosArgs = _d.sent();
13417
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
13418
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.patchAddQuantityToStock']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13419
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
13420
+ }
13421
+ });
13422
+ });
13423
+ },
13197
13424
  /**
13198
13425
  * Get Product
13199
13426
  * @summary Get Product
@@ -13321,6 +13548,17 @@ var ProductsApiFactory = function (configuration, basePath, axios) {
13321
13548
  getSearchProducts: function (pageSize, page, search, options) {
13322
13549
  return localVarFp.getSearchProducts(pageSize, page, search, options).then(function (request) { return request(axios, basePath); });
13323
13550
  },
13551
+ /**
13552
+ * Add Item Quantity To Stock
13553
+ * @summary Add Item Quantity To Stock
13554
+ * @param {string} sku Product SKU
13555
+ * @param {number} quantity Quantity
13556
+ * @param {*} [options] Override http request option.
13557
+ * @throws {RequiredError}
13558
+ */
13559
+ patchAddQuantityToStock: function (sku, quantity, options) {
13560
+ return localVarFp.patchAddQuantityToStock(sku, quantity, options).then(function (request) { return request(axios, basePath); });
13561
+ },
13324
13562
  /**
13325
13563
  * Get Product
13326
13564
  * @summary Get Product
@@ -13440,6 +13678,19 @@ var ProductsApi = /** @class */ (function (_super) {
13440
13678
  var _this = this;
13441
13679
  return (0, exports.ProductsApiFp)(this.configuration).getSearchProducts(pageSize, page, search, options).then(function (request) { return request(_this.axios, _this.basePath); });
13442
13680
  };
13681
+ /**
13682
+ * Add Item Quantity To Stock
13683
+ * @summary Add Item Quantity To Stock
13684
+ * @param {string} sku Product SKU
13685
+ * @param {number} quantity Quantity
13686
+ * @param {*} [options] Override http request option.
13687
+ * @throws {RequiredError}
13688
+ * @memberof ProductsApi
13689
+ */
13690
+ ProductsApi.prototype.patchAddQuantityToStock = function (sku, quantity, options) {
13691
+ var _this = this;
13692
+ return (0, exports.ProductsApiFp)(this.configuration).patchAddQuantityToStock(sku, quantity, options).then(function (request) { return request(_this.axios, _this.basePath); });
13693
+ };
13443
13694
  /**
13444
13695
  * Get Product
13445
13696
  * @summary Get Product
@@ -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
  |-------------|-------------|------------------|
package/docs/OrdersApi.md CHANGED
@@ -14,6 +14,7 @@ All URIs are relative to *https://api.local.yellowgrid.co.uk*
14
14
  |[**getGetOrderPdf**](#getgetorderpdf) | **GET** /orders/{id}/pdf | Download Order PDF|
15
15
  |[**getGetOrderSummary**](#getgetordersummary) | **GET** /admin/orders/{id}/summary | Get Order Summary (Admin)|
16
16
  |[**getGetOrders**](#getgetorders) | **GET** /orders | Get Orders (Beta)|
17
+ |[**patchCompleteOrder**](#patchcompleteorder) | **PATCH** /admin/orders/{id}/complete | Mark Order As Complete (Admin)|
17
18
  |[**postAddOrderNote**](#postaddordernote) | **POST** /admin/orders/{id}/notes | Add Order Note|
18
19
  |[**postCreateAdminOrder**](#postcreateadminorder) | **POST** /admin/orders | Create An Order (Admin)|
19
20
  |[**postCreateConsignment**](#postcreateconsignment) | **POST** /admin/orders/{id}/shipments/{shipment_id}/consignment | Create Shipping Consignment|
@@ -601,6 +602,60 @@ No authorization required
601
602
 
602
603
  [[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)
603
604
 
605
+ # **patchCompleteOrder**
606
+ > OrderDetailsDTO patchCompleteOrder()
607
+
608
+ Mark Order As Complete (Admin)
609
+
610
+ ### Example
611
+
612
+ ```typescript
613
+ import {
614
+ OrdersApi,
615
+ Configuration
616
+ } from 'yellowgrid-api-ts';
617
+
618
+ const configuration = new Configuration();
619
+ const apiInstance = new OrdersApi(configuration);
620
+
621
+ let id: number; //Order ID (default to undefined)
622
+
623
+ const { status, data } = await apiInstance.patchCompleteOrder(
624
+ id
625
+ );
626
+ ```
627
+
628
+ ### Parameters
629
+
630
+ |Name | Type | Description | Notes|
631
+ |------------- | ------------- | ------------- | -------------|
632
+ | **id** | [**number**] | Order ID | defaults to undefined|
633
+
634
+
635
+ ### Return type
636
+
637
+ **OrderDetailsDTO**
638
+
639
+ ### Authorization
640
+
641
+ No authorization required
642
+
643
+ ### HTTP request headers
644
+
645
+ - **Content-Type**: Not defined
646
+ - **Accept**: application/json
647
+
648
+
649
+ ### HTTP response details
650
+ | Status code | Description | Response headers |
651
+ |-------------|-------------|------------------|
652
+ |**200** | Order Details | - |
653
+ |**400** | Bad Request | - |
654
+ |**401** | Unauthorised | - |
655
+ |**403** | Access Denied | - |
656
+
657
+ [[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)
658
+
604
659
  # **postAddOrderNote**
605
660
  > AuditLogEntity postAddOrderNote()
606
661
 
@@ -11,6 +11,7 @@ All URIs are relative to *https://api.local.yellowgrid.co.uk*
11
11
  |[**getGetStockList**](#getgetstocklist) | **GET** /products/stock | Get Current Stock &amp; Pricing|
12
12
  |[**getGetTcxTemplates**](#getgettcxtemplates) | **GET** /products/attributes/tcx/templates | Get 3CX Templates|
13
13
  |[**getSearchProducts**](#getsearchproducts) | **GET** /products/search | Search Products|
14
+ |[**patchAddQuantityToStock**](#patchaddquantitytostock) | **PATCH** /products/{sku}/stock/add | Add Item Quantity To Stock|
14
15
  |[**postGetProduct**](#postgetproduct) | **POST** /products/{sku} | Get Product|
15
16
  |[**postGetProductForCustomer**](#postgetproductforcustomer) | **POST** /admin/products/{sku} | Get Product For Customer|
16
17
 
@@ -363,6 +364,63 @@ No authorization required
363
364
 
364
365
  [[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)
365
366
 
367
+ # **patchAddQuantityToStock**
368
+ > patchAddQuantityToStock()
369
+
370
+ Add Item Quantity To Stock
371
+
372
+ ### Example
373
+
374
+ ```typescript
375
+ import {
376
+ ProductsApi,
377
+ Configuration
378
+ } from 'yellowgrid-api-ts';
379
+
380
+ const configuration = new Configuration();
381
+ const apiInstance = new ProductsApi(configuration);
382
+
383
+ let sku: string; //Product SKU (default to undefined)
384
+ let quantity: number; //Quantity (default to undefined)
385
+
386
+ const { status, data } = await apiInstance.patchAddQuantityToStock(
387
+ sku,
388
+ quantity
389
+ );
390
+ ```
391
+
392
+ ### Parameters
393
+
394
+ |Name | Type | Description | Notes|
395
+ |------------- | ------------- | ------------- | -------------|
396
+ | **sku** | [**string**] | Product SKU | defaults to undefined|
397
+ | **quantity** | [**number**] | Quantity | defaults to undefined|
398
+
399
+
400
+ ### Return type
401
+
402
+ void (empty response body)
403
+
404
+ ### Authorization
405
+
406
+ No authorization required
407
+
408
+ ### HTTP request headers
409
+
410
+ - **Content-Type**: Not defined
411
+ - **Accept**: Not defined
412
+
413
+
414
+ ### HTTP response details
415
+ | Status code | Description | Response headers |
416
+ |-------------|-------------|------------------|
417
+ |**200** | No Response | - |
418
+ |**400** | Bad Request | - |
419
+ |**401** | Unauthorised | - |
420
+ |**403** | Access Denied | - |
421
+
422
+ [[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)
423
+
366
424
  # **postGetProduct**
367
425
  > ProductSummaryDTO postGetProduct(postGetProductRequest)
368
426
 
@@ -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.96-dev.0",
4
4
  "description": "OpenAPI client for yellowgrid-api-ts",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {