yellowgrid-api-ts 3.2.236 → 3.2.237
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 +4 -0
- package/README.md +7 -0
- package/api.ts +369 -0
- package/dist/api.d.ts +204 -0
- package/dist/api.js +380 -1
- package/docs/SupplierItemModel.md +2 -0
- package/docs/SupplierItemsResultsDTO.md +21 -0
- package/docs/SupplierProductModel.md +25 -0
- package/docs/SupplierProductResultsModel.md +27 -0
- package/docs/SuppliersApi.md +230 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -250,7 +250,11 @@ docs/StockTransactionsEntity.md
|
|
|
250
250
|
docs/SupplierEntity.md
|
|
251
251
|
docs/SupplierItemEntity.md
|
|
252
252
|
docs/SupplierItemModel.md
|
|
253
|
+
docs/SupplierItemsResultsDTO.md
|
|
253
254
|
docs/SupplierModel.md
|
|
255
|
+
docs/SupplierProductModel.md
|
|
256
|
+
docs/SupplierProductResultsModel.md
|
|
257
|
+
docs/SuppliersApi.md
|
|
254
258
|
docs/SupportTicketModel.md
|
|
255
259
|
docs/SystemApi.md
|
|
256
260
|
docs/TableHistoryEntity.md
|
package/README.md
CHANGED
|
@@ -313,6 +313,10 @@ Class | Method | HTTP request | Description
|
|
|
313
313
|
*StockManagementApi* | [**postUploadStockOrderInvoice**](docs/StockManagementApi.md#postuploadstockorderinvoice) | **POST** /stock/orders/{id}/invoice | Upload Stock Order Supplier Invoice
|
|
314
314
|
*StockManagementApi* | [**putGetStockProduct**](docs/StockManagementApi.md#putgetstockproduct) | **PUT** /stock/products/{id} | Update Stock Product
|
|
315
315
|
*StockManagementApi* | [**putReceiveStockOrderItem**](docs/StockManagementApi.md#putreceivestockorderitem) | **PUT** /stock/orders/{order_id}/items/{item_id}/receive | Receive Stock Order Item
|
|
316
|
+
*SuppliersApi* | [**getGetSupplierItem**](docs/SuppliersApi.md#getgetsupplieritem) | **GET** /suppliers/items/{id} | Get Supplier Item
|
|
317
|
+
*SuppliersApi* | [**getGetSupplierItems**](docs/SuppliersApi.md#getgetsupplieritems) | **GET** /suppliers/items | Get Supplier Items
|
|
318
|
+
*SuppliersApi* | [**getGetSuppliers**](docs/SuppliersApi.md#getgetsuppliers) | **GET** /suppliers | Get Suppliers
|
|
319
|
+
*SuppliersApi* | [**putGetSupplierItem**](docs/SuppliersApi.md#putgetsupplieritem) | **PUT** /suppliers/items/{id} | Update Supplier Product
|
|
316
320
|
*SystemApi* | [**getLogSearch**](docs/SystemApi.md#getlogsearch) | **GET** /system/logs/api/search | Search for logs
|
|
317
321
|
*TicketsApi* | [**getCreateTicket**](docs/TicketsApi.md#getcreateticket) | **GET** /tickets/support |
|
|
318
322
|
*TicketsApi* | [**getGetTicket**](docs/TicketsApi.md#getgetticket) | **GET** /tickets/support/{id} |
|
|
@@ -547,7 +551,10 @@ Class | Method | HTTP request | Description
|
|
|
547
551
|
- [SupplierEntity](docs/SupplierEntity.md)
|
|
548
552
|
- [SupplierItemEntity](docs/SupplierItemEntity.md)
|
|
549
553
|
- [SupplierItemModel](docs/SupplierItemModel.md)
|
|
554
|
+
- [SupplierItemsResultsDTO](docs/SupplierItemsResultsDTO.md)
|
|
550
555
|
- [SupplierModel](docs/SupplierModel.md)
|
|
556
|
+
- [SupplierProductModel](docs/SupplierProductModel.md)
|
|
557
|
+
- [SupplierProductResultsModel](docs/SupplierProductResultsModel.md)
|
|
551
558
|
- [SupportTicketModel](docs/SupportTicketModel.md)
|
|
552
559
|
- [TableHistoryEntity](docs/TableHistoryEntity.md)
|
|
553
560
|
- [TcxBackupEntity](docs/TcxBackupEntity.md)
|
package/api.ts
CHANGED
|
@@ -7125,6 +7125,16 @@ export interface SupplierItemModel {
|
|
|
7125
7125
|
* supplierSku
|
|
7126
7126
|
*/
|
|
7127
7127
|
'supplierSku'?: string;
|
|
7128
|
+
'supplier'?: SupplierModel;
|
|
7129
|
+
}
|
|
7130
|
+
/**
|
|
7131
|
+
* Supplier Item Results
|
|
7132
|
+
*/
|
|
7133
|
+
export interface SupplierItemsResultsDTO {
|
|
7134
|
+
/**
|
|
7135
|
+
* Results
|
|
7136
|
+
*/
|
|
7137
|
+
'results'?: Array<SupplierItemModel>;
|
|
7128
7138
|
}
|
|
7129
7139
|
/**
|
|
7130
7140
|
* Supplier
|
|
@@ -7167,6 +7177,44 @@ export interface SupplierModel {
|
|
|
7167
7177
|
*/
|
|
7168
7178
|
'xeroAccountNumber'?: string;
|
|
7169
7179
|
}
|
|
7180
|
+
/**
|
|
7181
|
+
* Supplier Product
|
|
7182
|
+
*/
|
|
7183
|
+
export interface SupplierProductModel {
|
|
7184
|
+
/**
|
|
7185
|
+
* SKU
|
|
7186
|
+
*/
|
|
7187
|
+
'sku'?: string;
|
|
7188
|
+
/**
|
|
7189
|
+
* Description
|
|
7190
|
+
*/
|
|
7191
|
+
'description'?: string;
|
|
7192
|
+
/**
|
|
7193
|
+
* Items
|
|
7194
|
+
*/
|
|
7195
|
+
'items'?: Array<SupplierItemModel>;
|
|
7196
|
+
}
|
|
7197
|
+
/**
|
|
7198
|
+
* Supplier Product Results
|
|
7199
|
+
*/
|
|
7200
|
+
export interface SupplierProductResultsModel {
|
|
7201
|
+
/**
|
|
7202
|
+
* Results
|
|
7203
|
+
*/
|
|
7204
|
+
'results'?: Array<SupplierProductModel>;
|
|
7205
|
+
/**
|
|
7206
|
+
* Page
|
|
7207
|
+
*/
|
|
7208
|
+
'page'?: number;
|
|
7209
|
+
/**
|
|
7210
|
+
* Per Page
|
|
7211
|
+
*/
|
|
7212
|
+
'perPage'?: number;
|
|
7213
|
+
/**
|
|
7214
|
+
* Total Results
|
|
7215
|
+
*/
|
|
7216
|
+
'totalResults'?: number;
|
|
7217
|
+
}
|
|
7170
7218
|
/**
|
|
7171
7219
|
* Telephony Support Ticket
|
|
7172
7220
|
*/
|
|
@@ -28953,6 +29001,327 @@ export class StockManagementApi extends BaseAPI {
|
|
|
28953
29001
|
|
|
28954
29002
|
|
|
28955
29003
|
|
|
29004
|
+
/**
|
|
29005
|
+
* SuppliersApi - axios parameter creator
|
|
29006
|
+
*/
|
|
29007
|
+
export const SuppliersApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
29008
|
+
return {
|
|
29009
|
+
/**
|
|
29010
|
+
* Get Supplier Item
|
|
29011
|
+
* @summary Get Supplier Item
|
|
29012
|
+
* @param {string} id ID (SKU)
|
|
29013
|
+
* @param {*} [options] Override http request option.
|
|
29014
|
+
* @throws {RequiredError}
|
|
29015
|
+
*/
|
|
29016
|
+
getGetSupplierItem: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
29017
|
+
// verify required parameter 'id' is not null or undefined
|
|
29018
|
+
assertParamExists('getGetSupplierItem', 'id', id)
|
|
29019
|
+
const localVarPath = `/suppliers/items/{id}`
|
|
29020
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
29021
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
29022
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
29023
|
+
let baseOptions;
|
|
29024
|
+
if (configuration) {
|
|
29025
|
+
baseOptions = configuration.baseOptions;
|
|
29026
|
+
}
|
|
29027
|
+
|
|
29028
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
29029
|
+
const localVarHeaderParameter = {} as any;
|
|
29030
|
+
const localVarQueryParameter = {} as any;
|
|
29031
|
+
|
|
29032
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
29033
|
+
|
|
29034
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
29035
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
29036
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
29037
|
+
|
|
29038
|
+
return {
|
|
29039
|
+
url: toPathString(localVarUrlObj),
|
|
29040
|
+
options: localVarRequestOptions,
|
|
29041
|
+
};
|
|
29042
|
+
},
|
|
29043
|
+
/**
|
|
29044
|
+
* Get Supplier Items
|
|
29045
|
+
* @summary Get Supplier Items
|
|
29046
|
+
* @param {number} [pageSize] Number Of Results
|
|
29047
|
+
* @param {number} [page] Page Number
|
|
29048
|
+
* @param {string} [search] Search
|
|
29049
|
+
* @param {*} [options] Override http request option.
|
|
29050
|
+
* @throws {RequiredError}
|
|
29051
|
+
*/
|
|
29052
|
+
getGetSupplierItems: async (pageSize?: number, page?: number, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
29053
|
+
const localVarPath = `/suppliers/items`;
|
|
29054
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
29055
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
29056
|
+
let baseOptions;
|
|
29057
|
+
if (configuration) {
|
|
29058
|
+
baseOptions = configuration.baseOptions;
|
|
29059
|
+
}
|
|
29060
|
+
|
|
29061
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
29062
|
+
const localVarHeaderParameter = {} as any;
|
|
29063
|
+
const localVarQueryParameter = {} as any;
|
|
29064
|
+
|
|
29065
|
+
if (pageSize !== undefined) {
|
|
29066
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
29067
|
+
}
|
|
29068
|
+
|
|
29069
|
+
if (page !== undefined) {
|
|
29070
|
+
localVarQueryParameter['page'] = page;
|
|
29071
|
+
}
|
|
29072
|
+
|
|
29073
|
+
if (search !== undefined) {
|
|
29074
|
+
localVarQueryParameter['search'] = search;
|
|
29075
|
+
}
|
|
29076
|
+
|
|
29077
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
29078
|
+
|
|
29079
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
29080
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
29081
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
29082
|
+
|
|
29083
|
+
return {
|
|
29084
|
+
url: toPathString(localVarUrlObj),
|
|
29085
|
+
options: localVarRequestOptions,
|
|
29086
|
+
};
|
|
29087
|
+
},
|
|
29088
|
+
/**
|
|
29089
|
+
* Get Suppliers
|
|
29090
|
+
* @summary Get Suppliers
|
|
29091
|
+
* @param {*} [options] Override http request option.
|
|
29092
|
+
* @throws {RequiredError}
|
|
29093
|
+
*/
|
|
29094
|
+
getGetSuppliers: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
29095
|
+
const localVarPath = `/suppliers`;
|
|
29096
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
29097
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
29098
|
+
let baseOptions;
|
|
29099
|
+
if (configuration) {
|
|
29100
|
+
baseOptions = configuration.baseOptions;
|
|
29101
|
+
}
|
|
29102
|
+
|
|
29103
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
29104
|
+
const localVarHeaderParameter = {} as any;
|
|
29105
|
+
const localVarQueryParameter = {} as any;
|
|
29106
|
+
|
|
29107
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
29108
|
+
|
|
29109
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
29110
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
29111
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
29112
|
+
|
|
29113
|
+
return {
|
|
29114
|
+
url: toPathString(localVarUrlObj),
|
|
29115
|
+
options: localVarRequestOptions,
|
|
29116
|
+
};
|
|
29117
|
+
},
|
|
29118
|
+
/**
|
|
29119
|
+
* Update Supplier Product
|
|
29120
|
+
* @summary Update Supplier Product
|
|
29121
|
+
* @param {string} id ID (SKU)
|
|
29122
|
+
* @param {SupplierProductModel} [supplierProductModel] Supplier Product
|
|
29123
|
+
* @param {*} [options] Override http request option.
|
|
29124
|
+
* @throws {RequiredError}
|
|
29125
|
+
*/
|
|
29126
|
+
putGetSupplierItem: async (id: string, supplierProductModel?: SupplierProductModel, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
29127
|
+
// verify required parameter 'id' is not null or undefined
|
|
29128
|
+
assertParamExists('putGetSupplierItem', 'id', id)
|
|
29129
|
+
const localVarPath = `/suppliers/items/{id}`
|
|
29130
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
29131
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
29132
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
29133
|
+
let baseOptions;
|
|
29134
|
+
if (configuration) {
|
|
29135
|
+
baseOptions = configuration.baseOptions;
|
|
29136
|
+
}
|
|
29137
|
+
|
|
29138
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
29139
|
+
const localVarHeaderParameter = {} as any;
|
|
29140
|
+
const localVarQueryParameter = {} as any;
|
|
29141
|
+
|
|
29142
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
29143
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
29144
|
+
|
|
29145
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
29146
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
29147
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
29148
|
+
localVarRequestOptions.data = serializeDataIfNeeded(supplierProductModel, localVarRequestOptions, configuration)
|
|
29149
|
+
|
|
29150
|
+
return {
|
|
29151
|
+
url: toPathString(localVarUrlObj),
|
|
29152
|
+
options: localVarRequestOptions,
|
|
29153
|
+
};
|
|
29154
|
+
},
|
|
29155
|
+
}
|
|
29156
|
+
};
|
|
29157
|
+
|
|
29158
|
+
/**
|
|
29159
|
+
* SuppliersApi - functional programming interface
|
|
29160
|
+
*/
|
|
29161
|
+
export const SuppliersApiFp = function(configuration?: Configuration) {
|
|
29162
|
+
const localVarAxiosParamCreator = SuppliersApiAxiosParamCreator(configuration)
|
|
29163
|
+
return {
|
|
29164
|
+
/**
|
|
29165
|
+
* Get Supplier Item
|
|
29166
|
+
* @summary Get Supplier Item
|
|
29167
|
+
* @param {string} id ID (SKU)
|
|
29168
|
+
* @param {*} [options] Override http request option.
|
|
29169
|
+
* @throws {RequiredError}
|
|
29170
|
+
*/
|
|
29171
|
+
async getGetSupplierItem(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SupplierProductModel>> {
|
|
29172
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetSupplierItem(id, options);
|
|
29173
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
29174
|
+
const localVarOperationServerBasePath = operationServerMap['SuppliersApi.getGetSupplierItem']?.[localVarOperationServerIndex]?.url;
|
|
29175
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
29176
|
+
},
|
|
29177
|
+
/**
|
|
29178
|
+
* Get Supplier Items
|
|
29179
|
+
* @summary Get Supplier Items
|
|
29180
|
+
* @param {number} [pageSize] Number Of Results
|
|
29181
|
+
* @param {number} [page] Page Number
|
|
29182
|
+
* @param {string} [search] Search
|
|
29183
|
+
* @param {*} [options] Override http request option.
|
|
29184
|
+
* @throws {RequiredError}
|
|
29185
|
+
*/
|
|
29186
|
+
async getGetSupplierItems(pageSize?: number, page?: number, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SupplierProductResultsModel>> {
|
|
29187
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetSupplierItems(pageSize, page, search, options);
|
|
29188
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
29189
|
+
const localVarOperationServerBasePath = operationServerMap['SuppliersApi.getGetSupplierItems']?.[localVarOperationServerIndex]?.url;
|
|
29190
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
29191
|
+
},
|
|
29192
|
+
/**
|
|
29193
|
+
* Get Suppliers
|
|
29194
|
+
* @summary Get Suppliers
|
|
29195
|
+
* @param {*} [options] Override http request option.
|
|
29196
|
+
* @throws {RequiredError}
|
|
29197
|
+
*/
|
|
29198
|
+
async getGetSuppliers(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<SupplierModel>>> {
|
|
29199
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetSuppliers(options);
|
|
29200
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
29201
|
+
const localVarOperationServerBasePath = operationServerMap['SuppliersApi.getGetSuppliers']?.[localVarOperationServerIndex]?.url;
|
|
29202
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
29203
|
+
},
|
|
29204
|
+
/**
|
|
29205
|
+
* Update Supplier Product
|
|
29206
|
+
* @summary Update Supplier Product
|
|
29207
|
+
* @param {string} id ID (SKU)
|
|
29208
|
+
* @param {SupplierProductModel} [supplierProductModel] Supplier Product
|
|
29209
|
+
* @param {*} [options] Override http request option.
|
|
29210
|
+
* @throws {RequiredError}
|
|
29211
|
+
*/
|
|
29212
|
+
async putGetSupplierItem(id: string, supplierProductModel?: SupplierProductModel, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SupplierProductModel>> {
|
|
29213
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.putGetSupplierItem(id, supplierProductModel, options);
|
|
29214
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
29215
|
+
const localVarOperationServerBasePath = operationServerMap['SuppliersApi.putGetSupplierItem']?.[localVarOperationServerIndex]?.url;
|
|
29216
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
29217
|
+
},
|
|
29218
|
+
}
|
|
29219
|
+
};
|
|
29220
|
+
|
|
29221
|
+
/**
|
|
29222
|
+
* SuppliersApi - factory interface
|
|
29223
|
+
*/
|
|
29224
|
+
export const SuppliersApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
29225
|
+
const localVarFp = SuppliersApiFp(configuration)
|
|
29226
|
+
return {
|
|
29227
|
+
/**
|
|
29228
|
+
* Get Supplier Item
|
|
29229
|
+
* @summary Get Supplier Item
|
|
29230
|
+
* @param {string} id ID (SKU)
|
|
29231
|
+
* @param {*} [options] Override http request option.
|
|
29232
|
+
* @throws {RequiredError}
|
|
29233
|
+
*/
|
|
29234
|
+
getGetSupplierItem(id: string, options?: RawAxiosRequestConfig): AxiosPromise<SupplierProductModel> {
|
|
29235
|
+
return localVarFp.getGetSupplierItem(id, options).then((request) => request(axios, basePath));
|
|
29236
|
+
},
|
|
29237
|
+
/**
|
|
29238
|
+
* Get Supplier Items
|
|
29239
|
+
* @summary Get Supplier Items
|
|
29240
|
+
* @param {number} [pageSize] Number Of Results
|
|
29241
|
+
* @param {number} [page] Page Number
|
|
29242
|
+
* @param {string} [search] Search
|
|
29243
|
+
* @param {*} [options] Override http request option.
|
|
29244
|
+
* @throws {RequiredError}
|
|
29245
|
+
*/
|
|
29246
|
+
getGetSupplierItems(pageSize?: number, page?: number, search?: string, options?: RawAxiosRequestConfig): AxiosPromise<SupplierProductResultsModel> {
|
|
29247
|
+
return localVarFp.getGetSupplierItems(pageSize, page, search, options).then((request) => request(axios, basePath));
|
|
29248
|
+
},
|
|
29249
|
+
/**
|
|
29250
|
+
* Get Suppliers
|
|
29251
|
+
* @summary Get Suppliers
|
|
29252
|
+
* @param {*} [options] Override http request option.
|
|
29253
|
+
* @throws {RequiredError}
|
|
29254
|
+
*/
|
|
29255
|
+
getGetSuppliers(options?: RawAxiosRequestConfig): AxiosPromise<Array<SupplierModel>> {
|
|
29256
|
+
return localVarFp.getGetSuppliers(options).then((request) => request(axios, basePath));
|
|
29257
|
+
},
|
|
29258
|
+
/**
|
|
29259
|
+
* Update Supplier Product
|
|
29260
|
+
* @summary Update Supplier Product
|
|
29261
|
+
* @param {string} id ID (SKU)
|
|
29262
|
+
* @param {SupplierProductModel} [supplierProductModel] Supplier Product
|
|
29263
|
+
* @param {*} [options] Override http request option.
|
|
29264
|
+
* @throws {RequiredError}
|
|
29265
|
+
*/
|
|
29266
|
+
putGetSupplierItem(id: string, supplierProductModel?: SupplierProductModel, options?: RawAxiosRequestConfig): AxiosPromise<SupplierProductModel> {
|
|
29267
|
+
return localVarFp.putGetSupplierItem(id, supplierProductModel, options).then((request) => request(axios, basePath));
|
|
29268
|
+
},
|
|
29269
|
+
};
|
|
29270
|
+
};
|
|
29271
|
+
|
|
29272
|
+
/**
|
|
29273
|
+
* SuppliersApi - object-oriented interface
|
|
29274
|
+
*/
|
|
29275
|
+
export class SuppliersApi extends BaseAPI {
|
|
29276
|
+
/**
|
|
29277
|
+
* Get Supplier Item
|
|
29278
|
+
* @summary Get Supplier Item
|
|
29279
|
+
* @param {string} id ID (SKU)
|
|
29280
|
+
* @param {*} [options] Override http request option.
|
|
29281
|
+
* @throws {RequiredError}
|
|
29282
|
+
*/
|
|
29283
|
+
public getGetSupplierItem(id: string, options?: RawAxiosRequestConfig) {
|
|
29284
|
+
return SuppliersApiFp(this.configuration).getGetSupplierItem(id, options).then((request) => request(this.axios, this.basePath));
|
|
29285
|
+
}
|
|
29286
|
+
|
|
29287
|
+
/**
|
|
29288
|
+
* Get Supplier Items
|
|
29289
|
+
* @summary Get Supplier Items
|
|
29290
|
+
* @param {number} [pageSize] Number Of Results
|
|
29291
|
+
* @param {number} [page] Page Number
|
|
29292
|
+
* @param {string} [search] Search
|
|
29293
|
+
* @param {*} [options] Override http request option.
|
|
29294
|
+
* @throws {RequiredError}
|
|
29295
|
+
*/
|
|
29296
|
+
public getGetSupplierItems(pageSize?: number, page?: number, search?: string, options?: RawAxiosRequestConfig) {
|
|
29297
|
+
return SuppliersApiFp(this.configuration).getGetSupplierItems(pageSize, page, search, options).then((request) => request(this.axios, this.basePath));
|
|
29298
|
+
}
|
|
29299
|
+
|
|
29300
|
+
/**
|
|
29301
|
+
* Get Suppliers
|
|
29302
|
+
* @summary Get Suppliers
|
|
29303
|
+
* @param {*} [options] Override http request option.
|
|
29304
|
+
* @throws {RequiredError}
|
|
29305
|
+
*/
|
|
29306
|
+
public getGetSuppliers(options?: RawAxiosRequestConfig) {
|
|
29307
|
+
return SuppliersApiFp(this.configuration).getGetSuppliers(options).then((request) => request(this.axios, this.basePath));
|
|
29308
|
+
}
|
|
29309
|
+
|
|
29310
|
+
/**
|
|
29311
|
+
* Update Supplier Product
|
|
29312
|
+
* @summary Update Supplier Product
|
|
29313
|
+
* @param {string} id ID (SKU)
|
|
29314
|
+
* @param {SupplierProductModel} [supplierProductModel] Supplier Product
|
|
29315
|
+
* @param {*} [options] Override http request option.
|
|
29316
|
+
* @throws {RequiredError}
|
|
29317
|
+
*/
|
|
29318
|
+
public putGetSupplierItem(id: string, supplierProductModel?: SupplierProductModel, options?: RawAxiosRequestConfig) {
|
|
29319
|
+
return SuppliersApiFp(this.configuration).putGetSupplierItem(id, supplierProductModel, options).then((request) => request(this.axios, this.basePath));
|
|
29320
|
+
}
|
|
29321
|
+
}
|
|
29322
|
+
|
|
29323
|
+
|
|
29324
|
+
|
|
28956
29325
|
/**
|
|
28957
29326
|
* SystemApi - axios parameter creator
|
|
28958
29327
|
*/
|
package/dist/api.d.ts
CHANGED
|
@@ -7022,6 +7022,16 @@ export interface SupplierItemModel {
|
|
|
7022
7022
|
* supplierSku
|
|
7023
7023
|
*/
|
|
7024
7024
|
'supplierSku'?: string;
|
|
7025
|
+
'supplier'?: SupplierModel;
|
|
7026
|
+
}
|
|
7027
|
+
/**
|
|
7028
|
+
* Supplier Item Results
|
|
7029
|
+
*/
|
|
7030
|
+
export interface SupplierItemsResultsDTO {
|
|
7031
|
+
/**
|
|
7032
|
+
* Results
|
|
7033
|
+
*/
|
|
7034
|
+
'results'?: Array<SupplierItemModel>;
|
|
7025
7035
|
}
|
|
7026
7036
|
/**
|
|
7027
7037
|
* Supplier
|
|
@@ -7064,6 +7074,44 @@ export interface SupplierModel {
|
|
|
7064
7074
|
*/
|
|
7065
7075
|
'xeroAccountNumber'?: string;
|
|
7066
7076
|
}
|
|
7077
|
+
/**
|
|
7078
|
+
* Supplier Product
|
|
7079
|
+
*/
|
|
7080
|
+
export interface SupplierProductModel {
|
|
7081
|
+
/**
|
|
7082
|
+
* SKU
|
|
7083
|
+
*/
|
|
7084
|
+
'sku'?: string;
|
|
7085
|
+
/**
|
|
7086
|
+
* Description
|
|
7087
|
+
*/
|
|
7088
|
+
'description'?: string;
|
|
7089
|
+
/**
|
|
7090
|
+
* Items
|
|
7091
|
+
*/
|
|
7092
|
+
'items'?: Array<SupplierItemModel>;
|
|
7093
|
+
}
|
|
7094
|
+
/**
|
|
7095
|
+
* Supplier Product Results
|
|
7096
|
+
*/
|
|
7097
|
+
export interface SupplierProductResultsModel {
|
|
7098
|
+
/**
|
|
7099
|
+
* Results
|
|
7100
|
+
*/
|
|
7101
|
+
'results'?: Array<SupplierProductModel>;
|
|
7102
|
+
/**
|
|
7103
|
+
* Page
|
|
7104
|
+
*/
|
|
7105
|
+
'page'?: number;
|
|
7106
|
+
/**
|
|
7107
|
+
* Per Page
|
|
7108
|
+
*/
|
|
7109
|
+
'perPage'?: number;
|
|
7110
|
+
/**
|
|
7111
|
+
* Total Results
|
|
7112
|
+
*/
|
|
7113
|
+
'totalResults'?: number;
|
|
7114
|
+
}
|
|
7067
7115
|
/**
|
|
7068
7116
|
* Telephony Support Ticket
|
|
7069
7117
|
*/
|
|
@@ -18349,6 +18397,162 @@ export declare class StockManagementApi extends BaseAPI {
|
|
|
18349
18397
|
*/
|
|
18350
18398
|
putReceiveStockOrderItem(orderId: number, itemId: number, received: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
18351
18399
|
}
|
|
18400
|
+
/**
|
|
18401
|
+
* SuppliersApi - axios parameter creator
|
|
18402
|
+
*/
|
|
18403
|
+
export declare const SuppliersApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
18404
|
+
/**
|
|
18405
|
+
* Get Supplier Item
|
|
18406
|
+
* @summary Get Supplier Item
|
|
18407
|
+
* @param {string} id ID (SKU)
|
|
18408
|
+
* @param {*} [options] Override http request option.
|
|
18409
|
+
* @throws {RequiredError}
|
|
18410
|
+
*/
|
|
18411
|
+
getGetSupplierItem: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
18412
|
+
/**
|
|
18413
|
+
* Get Supplier Items
|
|
18414
|
+
* @summary Get Supplier Items
|
|
18415
|
+
* @param {number} [pageSize] Number Of Results
|
|
18416
|
+
* @param {number} [page] Page Number
|
|
18417
|
+
* @param {string} [search] Search
|
|
18418
|
+
* @param {*} [options] Override http request option.
|
|
18419
|
+
* @throws {RequiredError}
|
|
18420
|
+
*/
|
|
18421
|
+
getGetSupplierItems: (pageSize?: number, page?: number, search?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
18422
|
+
/**
|
|
18423
|
+
* Get Suppliers
|
|
18424
|
+
* @summary Get Suppliers
|
|
18425
|
+
* @param {*} [options] Override http request option.
|
|
18426
|
+
* @throws {RequiredError}
|
|
18427
|
+
*/
|
|
18428
|
+
getGetSuppliers: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
18429
|
+
/**
|
|
18430
|
+
* Update Supplier Product
|
|
18431
|
+
* @summary Update Supplier Product
|
|
18432
|
+
* @param {string} id ID (SKU)
|
|
18433
|
+
* @param {SupplierProductModel} [supplierProductModel] Supplier Product
|
|
18434
|
+
* @param {*} [options] Override http request option.
|
|
18435
|
+
* @throws {RequiredError}
|
|
18436
|
+
*/
|
|
18437
|
+
putGetSupplierItem: (id: string, supplierProductModel?: SupplierProductModel, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
18438
|
+
};
|
|
18439
|
+
/**
|
|
18440
|
+
* SuppliersApi - functional programming interface
|
|
18441
|
+
*/
|
|
18442
|
+
export declare const SuppliersApiFp: (configuration?: Configuration) => {
|
|
18443
|
+
/**
|
|
18444
|
+
* Get Supplier Item
|
|
18445
|
+
* @summary Get Supplier Item
|
|
18446
|
+
* @param {string} id ID (SKU)
|
|
18447
|
+
* @param {*} [options] Override http request option.
|
|
18448
|
+
* @throws {RequiredError}
|
|
18449
|
+
*/
|
|
18450
|
+
getGetSupplierItem(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SupplierProductModel>>;
|
|
18451
|
+
/**
|
|
18452
|
+
* Get Supplier Items
|
|
18453
|
+
* @summary Get Supplier Items
|
|
18454
|
+
* @param {number} [pageSize] Number Of Results
|
|
18455
|
+
* @param {number} [page] Page Number
|
|
18456
|
+
* @param {string} [search] Search
|
|
18457
|
+
* @param {*} [options] Override http request option.
|
|
18458
|
+
* @throws {RequiredError}
|
|
18459
|
+
*/
|
|
18460
|
+
getGetSupplierItems(pageSize?: number, page?: number, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SupplierProductResultsModel>>;
|
|
18461
|
+
/**
|
|
18462
|
+
* Get Suppliers
|
|
18463
|
+
* @summary Get Suppliers
|
|
18464
|
+
* @param {*} [options] Override http request option.
|
|
18465
|
+
* @throws {RequiredError}
|
|
18466
|
+
*/
|
|
18467
|
+
getGetSuppliers(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<SupplierModel>>>;
|
|
18468
|
+
/**
|
|
18469
|
+
* Update Supplier Product
|
|
18470
|
+
* @summary Update Supplier Product
|
|
18471
|
+
* @param {string} id ID (SKU)
|
|
18472
|
+
* @param {SupplierProductModel} [supplierProductModel] Supplier Product
|
|
18473
|
+
* @param {*} [options] Override http request option.
|
|
18474
|
+
* @throws {RequiredError}
|
|
18475
|
+
*/
|
|
18476
|
+
putGetSupplierItem(id: string, supplierProductModel?: SupplierProductModel, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SupplierProductModel>>;
|
|
18477
|
+
};
|
|
18478
|
+
/**
|
|
18479
|
+
* SuppliersApi - factory interface
|
|
18480
|
+
*/
|
|
18481
|
+
export declare const SuppliersApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
18482
|
+
/**
|
|
18483
|
+
* Get Supplier Item
|
|
18484
|
+
* @summary Get Supplier Item
|
|
18485
|
+
* @param {string} id ID (SKU)
|
|
18486
|
+
* @param {*} [options] Override http request option.
|
|
18487
|
+
* @throws {RequiredError}
|
|
18488
|
+
*/
|
|
18489
|
+
getGetSupplierItem(id: string, options?: RawAxiosRequestConfig): AxiosPromise<SupplierProductModel>;
|
|
18490
|
+
/**
|
|
18491
|
+
* Get Supplier Items
|
|
18492
|
+
* @summary Get Supplier Items
|
|
18493
|
+
* @param {number} [pageSize] Number Of Results
|
|
18494
|
+
* @param {number} [page] Page Number
|
|
18495
|
+
* @param {string} [search] Search
|
|
18496
|
+
* @param {*} [options] Override http request option.
|
|
18497
|
+
* @throws {RequiredError}
|
|
18498
|
+
*/
|
|
18499
|
+
getGetSupplierItems(pageSize?: number, page?: number, search?: string, options?: RawAxiosRequestConfig): AxiosPromise<SupplierProductResultsModel>;
|
|
18500
|
+
/**
|
|
18501
|
+
* Get Suppliers
|
|
18502
|
+
* @summary Get Suppliers
|
|
18503
|
+
* @param {*} [options] Override http request option.
|
|
18504
|
+
* @throws {RequiredError}
|
|
18505
|
+
*/
|
|
18506
|
+
getGetSuppliers(options?: RawAxiosRequestConfig): AxiosPromise<Array<SupplierModel>>;
|
|
18507
|
+
/**
|
|
18508
|
+
* Update Supplier Product
|
|
18509
|
+
* @summary Update Supplier Product
|
|
18510
|
+
* @param {string} id ID (SKU)
|
|
18511
|
+
* @param {SupplierProductModel} [supplierProductModel] Supplier Product
|
|
18512
|
+
* @param {*} [options] Override http request option.
|
|
18513
|
+
* @throws {RequiredError}
|
|
18514
|
+
*/
|
|
18515
|
+
putGetSupplierItem(id: string, supplierProductModel?: SupplierProductModel, options?: RawAxiosRequestConfig): AxiosPromise<SupplierProductModel>;
|
|
18516
|
+
};
|
|
18517
|
+
/**
|
|
18518
|
+
* SuppliersApi - object-oriented interface
|
|
18519
|
+
*/
|
|
18520
|
+
export declare class SuppliersApi extends BaseAPI {
|
|
18521
|
+
/**
|
|
18522
|
+
* Get Supplier Item
|
|
18523
|
+
* @summary Get Supplier Item
|
|
18524
|
+
* @param {string} id ID (SKU)
|
|
18525
|
+
* @param {*} [options] Override http request option.
|
|
18526
|
+
* @throws {RequiredError}
|
|
18527
|
+
*/
|
|
18528
|
+
getGetSupplierItem(id: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SupplierProductModel, any, {}>>;
|
|
18529
|
+
/**
|
|
18530
|
+
* Get Supplier Items
|
|
18531
|
+
* @summary Get Supplier Items
|
|
18532
|
+
* @param {number} [pageSize] Number Of Results
|
|
18533
|
+
* @param {number} [page] Page Number
|
|
18534
|
+
* @param {string} [search] Search
|
|
18535
|
+
* @param {*} [options] Override http request option.
|
|
18536
|
+
* @throws {RequiredError}
|
|
18537
|
+
*/
|
|
18538
|
+
getGetSupplierItems(pageSize?: number, page?: number, search?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SupplierProductResultsModel, any, {}>>;
|
|
18539
|
+
/**
|
|
18540
|
+
* Get Suppliers
|
|
18541
|
+
* @summary Get Suppliers
|
|
18542
|
+
* @param {*} [options] Override http request option.
|
|
18543
|
+
* @throws {RequiredError}
|
|
18544
|
+
*/
|
|
18545
|
+
getGetSuppliers(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SupplierModel[], any, {}>>;
|
|
18546
|
+
/**
|
|
18547
|
+
* Update Supplier Product
|
|
18548
|
+
* @summary Update Supplier Product
|
|
18549
|
+
* @param {string} id ID (SKU)
|
|
18550
|
+
* @param {SupplierProductModel} [supplierProductModel] Supplier Product
|
|
18551
|
+
* @param {*} [options] Override http request option.
|
|
18552
|
+
* @throws {RequiredError}
|
|
18553
|
+
*/
|
|
18554
|
+
putGetSupplierItem(id: string, supplierProductModel?: SupplierProductModel, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SupplierProductModel, any, {}>>;
|
|
18555
|
+
}
|
|
18352
18556
|
/**
|
|
18353
18557
|
* SystemApi - axios parameter creator
|
|
18354
18558
|
*/
|