yellowgrid-api-ts 3.2.219 → 3.2.220-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +356 -299
- package/.openapi-generator/VERSION +1 -1
- package/README.md +125 -3
- package/api.ts +19160 -6122
- package/base.ts +26 -2
- package/common.ts +39 -16
- package/config.json +4 -3
- package/configuration.ts +21 -27
- package/dist/api.d.ts +15193 -4992
- package/dist/api.js +7054 -1056
- package/dist/base.d.ts +25 -1
- package/dist/base.js +21 -2
- package/dist/common.d.ts +36 -5
- package/dist/common.js +39 -17
- package/dist/configuration.d.ts +18 -25
- package/dist/configuration.js +4 -4
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/models/GraphTypeEnum.d.ts +13 -0
- package/dist/models/GraphTypeEnum.js +15 -0
- package/dist/models/GroupEnum.d.ts +43 -0
- package/dist/models/GroupEnum.js +45 -0
- package/dist/models/HostingPriceListEnum.d.ts +5 -0
- package/dist/models/HostingPriceListEnum.js +5 -0
- package/dist/models/ReportEnum.d.ts +53 -0
- package/dist/models/ReportEnum.js +55 -0
- package/docs/AbstractItemDiscountModel.md +21 -0
- package/docs/AbstractOrderRequestDTO.md +1 -1
- package/docs/AccountsApi.md +104 -1
- package/docs/AdminOrderRequestDTO.md +1 -1
- package/docs/AxisDataDTO.md +25 -0
- package/docs/BaseService.md +36 -0
- package/docs/BillingApi.md +3246 -26
- package/docs/Bundle.md +34 -0
- package/docs/BundleCustomer.md +34 -0
- package/docs/CRMApi.md +1 -1
- package/docs/CallTariff.md +34 -0
- package/docs/CallTariffPlan.md +36 -0
- package/docs/Cdr.md +112 -0
- package/docs/Class3CXApi.md +1 -1
- package/docs/Class3CXInstallationWizardApi.md +1 -1
- package/docs/Class3CXInstallationsApi.md +1 -1
- package/docs/Class3CXIntegrationsApi.md +1 -1
- package/docs/Class3CXMultiTenantApi.md +1 -1
- package/docs/ConnectionType.md +28 -0
- package/docs/ContactDetail.md +58 -0
- package/docs/CrmActivityDTO.md +3 -3
- package/docs/CrmDateActivitiesDTO.md +1 -1
- package/docs/Customer.md +98 -0
- package/docs/CustomerCoordinatesDTO.md +31 -0
- package/docs/CustomerOrderRequestDTO.md +1 -1
- package/docs/CustomerRate.md +22 -0
- package/docs/CustomerRateType.md +12 -0
- package/docs/DetailedOrderRequestDTO.md +1 -1
- package/docs/GetDisconnectDDIRequest.md +20 -0
- package/docs/GraphDTO.md +33 -0
- package/docs/InboundCli.md +50 -0
- package/docs/InboundTariffPlan.md +32 -0
- package/docs/MiscApi.md +63 -0
- package/docs/MyPBXToolsApi.md +1 -1
- package/docs/NumberPortModel.md +51 -0
- package/docs/NumberPortingApi.md +1 -1
- package/docs/OAuth20Api.md +1 -1
- package/docs/OrdersApi.md +1 -1
- package/docs/OutboundCli.md +70 -0
- package/docs/PartnerDTO.md +1 -1
- package/docs/PasswordSenderDTO.md +37 -0
- package/docs/PasswordSenderEntity.md +33 -0
- package/docs/PatchSetTcxWizardCnameRequest.md +20 -0
- package/docs/PostAddAdminNoteRequest.md +20 -0
- package/docs/PostAddBroadbandRequest.md +28 -0
- package/docs/PostAddCallTariffToCallTariffPlanRequest.md +34 -0
- package/docs/PostAddEthernetRequest.md +28 -0
- package/docs/PostAddRecurringChargeRequest.md +30 -0
- package/docs/PostAddServiceToServicePlanRequest.md +30 -0
- package/docs/PostAddSipTrunkDDIsRequest.md +30 -0
- package/docs/PostGenerateReport200Response.md +36 -0
- package/docs/PostGetBaseServicesRequest.md +22 -0
- package/docs/PostGetPriceGroupsRequest.md +22 -0
- package/docs/PostGetProductRequest.md +24 -0
- package/docs/PostGetServicePlansRequest.md +22 -0
- package/docs/PostGetSipTrunksBillingRequest.md +34 -0
- package/docs/PostUpdateConnectionRequest.md +22 -0
- package/docs/PostUpdateRecurringChargeRequest.md +30 -0
- package/docs/PriceGroup.md +30 -0
- package/docs/PricingApi.md +1 -1
- package/docs/ProcessedCdr.md +96 -0
- package/docs/ProductDetailedSummaryDTO.md +2 -2
- package/docs/ProductSearchDTO.md +37 -0
- package/docs/ProductSummaryDTO.md +1 -1
- package/docs/ProductsApi.md +1 -1
- package/docs/ProspectDTO.md +2 -2
- package/docs/ProspectsApi.md +1 -1
- package/docs/ProvisioningApi.md +1 -1
- package/docs/PutAddCallTariffToCallTariffPlanRequest.md +30 -0
- package/docs/PutAddServiceToServicePlanRequest.md +26 -0
- package/docs/PutConnectionSearchRequest.md +20 -0
- package/docs/PutGetBaseServicesRequest.md +28 -0
- package/docs/PutGetCallTariffPlanRequest.md +28 -0
- package/docs/PutGetPriceGroupsRequest.md +28 -0
- package/docs/RecordingsBackupInfoDTO.md +2 -2
- package/docs/RecurringCharge.md +48 -0
- package/docs/ReportRequestDTO.md +37 -0
- package/docs/ReportsApi.md +107 -0
- package/docs/SIPTrunksApi.md +1 -1
- package/docs/SMSApi.md +1 -1
- package/docs/SdrReferenceType.md +24 -0
- package/docs/SeriesDTO.md +27 -0
- package/docs/Service.md +42 -0
- package/docs/ServicePlan.md +36 -0
- package/docs/ServicesApi.md +1 -1
- package/docs/ShipmentRequestDTO.md +2 -2
- package/docs/ShippingApi.md +1 -1
- package/docs/StockManagementApi.md +1 -1
- package/docs/StockReportItemModel.md +31 -0
- package/docs/StockReportModel.md +29 -0
- 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/docs/SystemApi.md +1 -1
- package/docs/TableDTO.md +25 -0
- package/docs/TableDataDTO.md +21 -0
- package/docs/TableRowDTO.md +21 -0
- package/docs/TariffRate.md +30 -0
- package/docs/TcxHostingPricingEntity.md +35 -0
- package/docs/TcxInstallationDetailsModel.md +45 -0
- package/docs/TcxInstallationModel.md +2 -0
- package/docs/TcxKeySummaryDTO.md +1 -1
- package/docs/TelephonySupportTicketModel.md +41 -0
- package/docs/TicketsApi.md +1 -1
- package/docs/WebhooksApi.md +1 -1
- package/getEnums.php +31 -31
- package/hs_err_pid16044.log +249 -0
- package/hs_err_pid44560.log +249 -0
- package/hs_err_pid53988.log +249 -0
- package/hs_err_pid58728.log +40 -0
- package/index.ts +1 -1
- package/models/GraphTypeEnum.ts +14 -0
- package/models/GroupEnum.ts +44 -0
- package/models/HostingPriceListEnum.ts +5 -0
- package/models/ReportEnum.ts +54 -0
- package/openapitools.json +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
# ReportsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.local.yellowgrid.co.uk*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**getGetStockReport**](#getgetstockreport) | **GET** /reports/stock | |
|
|
8
|
+
|[**postGenerateReport**](#postgeneratereport) | **POST** /reports | Generate Reports|
|
|
9
|
+
|
|
10
|
+
# **getGetStockReport**
|
|
11
|
+
> StockReportModel getGetStockReport()
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import {
|
|
18
|
+
ReportsApi,
|
|
19
|
+
Configuration
|
|
20
|
+
} from 'yellowgrid-api-ts';
|
|
21
|
+
|
|
22
|
+
const configuration = new Configuration();
|
|
23
|
+
const apiInstance = new ReportsApi(configuration);
|
|
24
|
+
|
|
25
|
+
const { status, data } = await apiInstance.getGetStockReport();
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
### Parameters
|
|
29
|
+
This endpoint does not have any parameters.
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
### Return type
|
|
33
|
+
|
|
34
|
+
**StockReportModel**
|
|
35
|
+
|
|
36
|
+
### Authorization
|
|
37
|
+
|
|
38
|
+
No authorization required
|
|
39
|
+
|
|
40
|
+
### HTTP request headers
|
|
41
|
+
|
|
42
|
+
- **Content-Type**: Not defined
|
|
43
|
+
- **Accept**: application/json
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
### HTTP response details
|
|
47
|
+
| Status code | Description | Response headers |
|
|
48
|
+
|-------------|-------------|------------------|
|
|
49
|
+
|**200** | Stock Report | - |
|
|
50
|
+
|**400** | Bad Request | - |
|
|
51
|
+
|
|
52
|
+
[[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)
|
|
53
|
+
|
|
54
|
+
# **postGenerateReport**
|
|
55
|
+
> PostGenerateReport200Response postGenerateReport()
|
|
56
|
+
|
|
57
|
+
Generate Reports
|
|
58
|
+
|
|
59
|
+
### Example
|
|
60
|
+
|
|
61
|
+
```typescript
|
|
62
|
+
import {
|
|
63
|
+
ReportsApi,
|
|
64
|
+
Configuration,
|
|
65
|
+
ReportRequestDTO
|
|
66
|
+
} from 'yellowgrid-api-ts';
|
|
67
|
+
|
|
68
|
+
const configuration = new Configuration();
|
|
69
|
+
const apiInstance = new ReportsApi(configuration);
|
|
70
|
+
|
|
71
|
+
let reportRequestDTO: ReportRequestDTO; //Report Request (optional)
|
|
72
|
+
|
|
73
|
+
const { status, data } = await apiInstance.postGenerateReport(
|
|
74
|
+
reportRequestDTO
|
|
75
|
+
);
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
### Parameters
|
|
79
|
+
|
|
80
|
+
|Name | Type | Description | Notes|
|
|
81
|
+
|------------- | ------------- | ------------- | -------------|
|
|
82
|
+
| **reportRequestDTO** | **ReportRequestDTO**| Report Request | |
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
### Return type
|
|
86
|
+
|
|
87
|
+
**PostGenerateReport200Response**
|
|
88
|
+
|
|
89
|
+
### Authorization
|
|
90
|
+
|
|
91
|
+
No authorization required
|
|
92
|
+
|
|
93
|
+
### HTTP request headers
|
|
94
|
+
|
|
95
|
+
- **Content-Type**: application/json
|
|
96
|
+
- **Accept**: application/json
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
### HTTP response details
|
|
100
|
+
| Status code | Description | Response headers |
|
|
101
|
+
|-------------|-------------|------------------|
|
|
102
|
+
|**200** | Report generated | - |
|
|
103
|
+
|**204** | No Response | - |
|
|
104
|
+
|**400** | Bad Request | - |
|
|
105
|
+
|
|
106
|
+
[[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)
|
|
107
|
+
|
package/docs/SIPTrunksApi.md
CHANGED
package/docs/SMSApi.md
CHANGED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# SdrReferenceType
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Enum
|
|
5
|
+
|
|
6
|
+
* `SipTrunk` (value: `'SIP_TRUNK'`)
|
|
7
|
+
|
|
8
|
+
* `Broadband` (value: `'BROADBAND'`)
|
|
9
|
+
|
|
10
|
+
* `Ethernet` (value: `'ETHERNET'`)
|
|
11
|
+
|
|
12
|
+
* `Mobile` (value: `'MOBILE'`)
|
|
13
|
+
|
|
14
|
+
* `Wlr` (value: `'WLR'`)
|
|
15
|
+
|
|
16
|
+
* `Hzn` (value: `'HZN'`)
|
|
17
|
+
|
|
18
|
+
* `Nts` (value: `'NTS'`)
|
|
19
|
+
|
|
20
|
+
* `Hosting` (value: `'HOSTING'`)
|
|
21
|
+
|
|
22
|
+
* `Crm` (value: `'CRM'`)
|
|
23
|
+
|
|
24
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# SeriesDTO
|
|
2
|
+
|
|
3
|
+
Graph Series Data
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**name** | **string** | Name | [optional] [default to undefined]
|
|
10
|
+
**type** | **string** | Type | [optional] [default to undefined]
|
|
11
|
+
**stack** | **string** | Stack | [optional] [default to undefined]
|
|
12
|
+
**data** | **Array<string>** | Data | [optional] [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { SeriesDTO } from 'yellowgrid-api-ts';
|
|
18
|
+
|
|
19
|
+
const instance: SeriesDTO = {
|
|
20
|
+
name,
|
|
21
|
+
type,
|
|
22
|
+
stack,
|
|
23
|
+
data,
|
|
24
|
+
};
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/docs/Service.md
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# Service
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**createdDate** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**id** | **number** | | [optional] [default to undefined]
|
|
10
|
+
**servicePlanId** | **number** | | [optional] [default to undefined]
|
|
11
|
+
**servicePlan** | [**ServicePlan**](ServicePlan.md) | | [optional] [default to undefined]
|
|
12
|
+
**baseServiceId** | **number** | | [optional] [default to undefined]
|
|
13
|
+
**baseService** | [**BaseService**](BaseService.md) | | [optional] [default to undefined]
|
|
14
|
+
**customerRate** | [**CustomerRate**](CustomerRate.md) | | [optional] [default to undefined]
|
|
15
|
+
**description** | **string** | | [optional] [default to undefined]
|
|
16
|
+
**hideOnInvoice** | **boolean** | | [optional] [default to undefined]
|
|
17
|
+
**bureauRate** | **string** | | [optional] [default to undefined]
|
|
18
|
+
**filePeriod** | **string** | | [optional] [default to undefined]
|
|
19
|
+
**common** | **boolean** | | [optional] [default to undefined]
|
|
20
|
+
|
|
21
|
+
## Example
|
|
22
|
+
|
|
23
|
+
```typescript
|
|
24
|
+
import { Service } from 'yellowgrid-api-ts';
|
|
25
|
+
|
|
26
|
+
const instance: Service = {
|
|
27
|
+
createdDate,
|
|
28
|
+
id,
|
|
29
|
+
servicePlanId,
|
|
30
|
+
servicePlan,
|
|
31
|
+
baseServiceId,
|
|
32
|
+
baseService,
|
|
33
|
+
customerRate,
|
|
34
|
+
description,
|
|
35
|
+
hideOnInvoice,
|
|
36
|
+
bureauRate,
|
|
37
|
+
filePeriod,
|
|
38
|
+
common,
|
|
39
|
+
};
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# ServicePlan
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**createdDate** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**id** | **number** | | [optional] [default to undefined]
|
|
10
|
+
**name** | **string** | | [default to undefined]
|
|
11
|
+
**services** | [**Array<Service>**](Service.md) | | [optional] [readonly] [default to undefined]
|
|
12
|
+
**filePeriod** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**planGroup** | **string** | | [optional] [default to undefined]
|
|
14
|
+
**connectionTypeId** | **number** | | [optional] [default to undefined]
|
|
15
|
+
**connectionType** | [**ConnectionType**](ConnectionType.md) | | [optional] [default to undefined]
|
|
16
|
+
**closed** | **boolean** | | [optional] [default to undefined]
|
|
17
|
+
|
|
18
|
+
## Example
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
import { ServicePlan } from 'yellowgrid-api-ts';
|
|
22
|
+
|
|
23
|
+
const instance: ServicePlan = {
|
|
24
|
+
createdDate,
|
|
25
|
+
id,
|
|
26
|
+
name,
|
|
27
|
+
services,
|
|
28
|
+
filePeriod,
|
|
29
|
+
planGroup,
|
|
30
|
+
connectionTypeId,
|
|
31
|
+
connectionType,
|
|
32
|
+
closed,
|
|
33
|
+
};
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/docs/ServicesApi.md
CHANGED
|
@@ -7,10 +7,10 @@ Shipment Request
|
|
|
7
7
|
Name | Type | Description | Notes
|
|
8
8
|
------------ | ------------- | ------------- | -------------
|
|
9
9
|
**courier** | **string** | Courier | [optional] [default to undefined]
|
|
10
|
-
**address** | [**AddressModel**](AddressModel.md) |
|
|
10
|
+
**address** | [**AddressModel**](AddressModel.md) | | [optional] [default to undefined]
|
|
11
11
|
**scannedLines** | **Array<string>** | Scanned Lines | [optional] [default to undefined]
|
|
12
12
|
**service** | **string** | Service | [optional] [default to undefined]
|
|
13
|
-
**shipDate** | **string** |
|
|
13
|
+
**shipDate** | **string** | Date Time | [optional] [default to undefined]
|
|
14
14
|
**items** | [**Array<ShipmentItemDTO>**](ShipmentItemDTO.md) | Items | [optional] [default to undefined]
|
|
15
15
|
|
|
16
16
|
## Example
|
package/docs/ShippingApi.md
CHANGED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# StockReportItemModel
|
|
2
|
+
|
|
3
|
+
Stock Report Item
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**title** | **string** | Title | [optional] [default to undefined]
|
|
10
|
+
**sku** | **string** | SKU | [optional] [default to undefined]
|
|
11
|
+
**quantity** | **number** | In Stock | [optional] [default to undefined]
|
|
12
|
+
**currency** | **string** | Currency | [optional] [default to undefined]
|
|
13
|
+
**basePrice** | **number** | Cost Price | [optional] [default to undefined]
|
|
14
|
+
**totalValue** | **number** | Line Total | [optional] [default to undefined]
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import { StockReportItemModel } from 'yellowgrid-api-ts';
|
|
20
|
+
|
|
21
|
+
const instance: StockReportItemModel = {
|
|
22
|
+
title,
|
|
23
|
+
sku,
|
|
24
|
+
quantity,
|
|
25
|
+
currency,
|
|
26
|
+
basePrice,
|
|
27
|
+
totalValue,
|
|
28
|
+
};
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# StockReportModel
|
|
2
|
+
|
|
3
|
+
Stock Report
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**products** | [**Array<StockReportItemModel>**](StockReportItemModel.md) | Items | [optional] [default to undefined]
|
|
10
|
+
**unitsInStock** | **number** | Units In Stock | [optional] [default to undefined]
|
|
11
|
+
**usdStock** | **number** | Value Of USD Stock | [optional] [default to undefined]
|
|
12
|
+
**gbpStock** | **number** | Value Of GBP Stock | [optional] [default to undefined]
|
|
13
|
+
**totalStockGbp** | **number** | Total value of stock in GBP | [optional] [default to undefined]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { StockReportModel } from 'yellowgrid-api-ts';
|
|
19
|
+
|
|
20
|
+
const instance: StockReportModel = {
|
|
21
|
+
products,
|
|
22
|
+
unitsInStock,
|
|
23
|
+
usdStock,
|
|
24
|
+
gbpStock,
|
|
25
|
+
totalStockGbp,
|
|
26
|
+
};
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -14,6 +14,7 @@ Name | Type | Description | Notes
|
|
|
14
14
|
**itemPrice** | **number** | itemPrice | [optional] [default to undefined]
|
|
15
15
|
**itemType** | **number** | itemType | [optional] [default to undefined]
|
|
16
16
|
**supplierSku** | **string** | supplierSku | [optional] [default to undefined]
|
|
17
|
+
**supplier** | [**SupplierModel**](SupplierModel.md) | | [optional] [default to undefined]
|
|
17
18
|
|
|
18
19
|
## Example
|
|
19
20
|
|
|
@@ -29,6 +30,7 @@ const instance: SupplierItemModel = {
|
|
|
29
30
|
itemPrice,
|
|
30
31
|
itemType,
|
|
31
32
|
supplierSku,
|
|
33
|
+
supplier,
|
|
32
34
|
};
|
|
33
35
|
```
|
|
34
36
|
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# SupplierItemsResultsDTO
|
|
2
|
+
|
|
3
|
+
Supplier Item Results
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**results** | [**Array<SupplierItemModel>**](SupplierItemModel.md) | Results | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { SupplierItemsResultsDTO } from 'yellowgrid-api-ts';
|
|
15
|
+
|
|
16
|
+
const instance: SupplierItemsResultsDTO = {
|
|
17
|
+
results,
|
|
18
|
+
};
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# SupplierProductModel
|
|
2
|
+
|
|
3
|
+
Supplier Product
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**sku** | **string** | SKU | [optional] [default to undefined]
|
|
10
|
+
**description** | **string** | Description | [optional] [default to undefined]
|
|
11
|
+
**items** | [**Array<SupplierItemModel>**](SupplierItemModel.md) | Items | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { SupplierProductModel } from 'yellowgrid-api-ts';
|
|
17
|
+
|
|
18
|
+
const instance: SupplierProductModel = {
|
|
19
|
+
sku,
|
|
20
|
+
description,
|
|
21
|
+
items,
|
|
22
|
+
};
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# SupplierProductResultsModel
|
|
2
|
+
|
|
3
|
+
Supplier Product Results
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**results** | [**Array<SupplierProductModel>**](SupplierProductModel.md) | Results | [optional] [default to undefined]
|
|
10
|
+
**page** | **number** | Page | [optional] [default to undefined]
|
|
11
|
+
**perPage** | **number** | Per Page | [optional] [default to undefined]
|
|
12
|
+
**totalResults** | **number** | Total Results | [optional] [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { SupplierProductResultsModel } from 'yellowgrid-api-ts';
|
|
18
|
+
|
|
19
|
+
const instance: SupplierProductResultsModel = {
|
|
20
|
+
results,
|
|
21
|
+
page,
|
|
22
|
+
perPage,
|
|
23
|
+
totalResults,
|
|
24
|
+
};
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
# SuppliersApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.local.yellowgrid.co.uk*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**getGetSupplierItem**](#getgetsupplieritem) | **GET** /suppliers/items/{id} | Get Supplier Item|
|
|
8
|
+
|[**getGetSupplierItems**](#getgetsupplieritems) | **GET** /suppliers/items | Get Supplier Items|
|
|
9
|
+
|[**getGetSuppliers**](#getgetsuppliers) | **GET** /suppliers | Get Suppliers|
|
|
10
|
+
|[**putGetSupplierItem**](#putgetsupplieritem) | **PUT** /suppliers/items/{id} | Update Supplier Product|
|
|
11
|
+
|
|
12
|
+
# **getGetSupplierItem**
|
|
13
|
+
> SupplierProductModel getGetSupplierItem()
|
|
14
|
+
|
|
15
|
+
Get Supplier Item
|
|
16
|
+
|
|
17
|
+
### Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import {
|
|
21
|
+
SuppliersApi,
|
|
22
|
+
Configuration
|
|
23
|
+
} from 'yellowgrid-api-ts';
|
|
24
|
+
|
|
25
|
+
const configuration = new Configuration();
|
|
26
|
+
const apiInstance = new SuppliersApi(configuration);
|
|
27
|
+
|
|
28
|
+
let id: string; //ID (SKU) (default to undefined)
|
|
29
|
+
|
|
30
|
+
const { status, data } = await apiInstance.getGetSupplierItem(
|
|
31
|
+
id
|
|
32
|
+
);
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### Parameters
|
|
36
|
+
|
|
37
|
+
|Name | Type | Description | Notes|
|
|
38
|
+
|------------- | ------------- | ------------- | -------------|
|
|
39
|
+
| **id** | [**string**] | ID (SKU) | defaults to undefined|
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
### Return type
|
|
43
|
+
|
|
44
|
+
**SupplierProductModel**
|
|
45
|
+
|
|
46
|
+
### Authorization
|
|
47
|
+
|
|
48
|
+
No authorization required
|
|
49
|
+
|
|
50
|
+
### HTTP request headers
|
|
51
|
+
|
|
52
|
+
- **Content-Type**: Not defined
|
|
53
|
+
- **Accept**: application/json
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
### HTTP response details
|
|
57
|
+
| Status code | Description | Response headers |
|
|
58
|
+
|-------------|-------------|------------------|
|
|
59
|
+
|**200** | Supplier Item | - |
|
|
60
|
+
|**400** | Bad Request | - |
|
|
61
|
+
|**401** | Unauthorised | - |
|
|
62
|
+
|**403** | Access Denied | - |
|
|
63
|
+
|
|
64
|
+
[[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)
|
|
65
|
+
|
|
66
|
+
# **getGetSupplierItems**
|
|
67
|
+
> SupplierProductResultsModel getGetSupplierItems()
|
|
68
|
+
|
|
69
|
+
Get Supplier Items
|
|
70
|
+
|
|
71
|
+
### Example
|
|
72
|
+
|
|
73
|
+
```typescript
|
|
74
|
+
import {
|
|
75
|
+
SuppliersApi,
|
|
76
|
+
Configuration
|
|
77
|
+
} from 'yellowgrid-api-ts';
|
|
78
|
+
|
|
79
|
+
const configuration = new Configuration();
|
|
80
|
+
const apiInstance = new SuppliersApi(configuration);
|
|
81
|
+
|
|
82
|
+
let pageSize: number; //Number Of Results (optional) (default to 20)
|
|
83
|
+
let page: number; //Page Number (optional) (default to 1)
|
|
84
|
+
let search: string; //Search (optional) (default to undefined)
|
|
85
|
+
|
|
86
|
+
const { status, data } = await apiInstance.getGetSupplierItems(
|
|
87
|
+
pageSize,
|
|
88
|
+
page,
|
|
89
|
+
search
|
|
90
|
+
);
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
### Parameters
|
|
94
|
+
|
|
95
|
+
|Name | Type | Description | Notes|
|
|
96
|
+
|------------- | ------------- | ------------- | -------------|
|
|
97
|
+
| **pageSize** | [**number**] | Number Of Results | (optional) defaults to 20|
|
|
98
|
+
| **page** | [**number**] | Page Number | (optional) defaults to 1|
|
|
99
|
+
| **search** | [**string**] | Search | (optional) defaults to undefined|
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
### Return type
|
|
103
|
+
|
|
104
|
+
**SupplierProductResultsModel**
|
|
105
|
+
|
|
106
|
+
### Authorization
|
|
107
|
+
|
|
108
|
+
No authorization required
|
|
109
|
+
|
|
110
|
+
### HTTP request headers
|
|
111
|
+
|
|
112
|
+
- **Content-Type**: Not defined
|
|
113
|
+
- **Accept**: application/json
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
### HTTP response details
|
|
117
|
+
| Status code | Description | Response headers |
|
|
118
|
+
|-------------|-------------|------------------|
|
|
119
|
+
|**200** | Supplier Items | - |
|
|
120
|
+
|**400** | Bad Request | - |
|
|
121
|
+
|**401** | Unauthorised | - |
|
|
122
|
+
|**403** | Access Denied | - |
|
|
123
|
+
|
|
124
|
+
[[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)
|
|
125
|
+
|
|
126
|
+
# **getGetSuppliers**
|
|
127
|
+
> Array<SupplierModel> getGetSuppliers()
|
|
128
|
+
|
|
129
|
+
Get Suppliers
|
|
130
|
+
|
|
131
|
+
### Example
|
|
132
|
+
|
|
133
|
+
```typescript
|
|
134
|
+
import {
|
|
135
|
+
SuppliersApi,
|
|
136
|
+
Configuration
|
|
137
|
+
} from 'yellowgrid-api-ts';
|
|
138
|
+
|
|
139
|
+
const configuration = new Configuration();
|
|
140
|
+
const apiInstance = new SuppliersApi(configuration);
|
|
141
|
+
|
|
142
|
+
const { status, data } = await apiInstance.getGetSuppliers();
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
### Parameters
|
|
146
|
+
This endpoint does not have any parameters.
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
### Return type
|
|
150
|
+
|
|
151
|
+
**Array<SupplierModel>**
|
|
152
|
+
|
|
153
|
+
### Authorization
|
|
154
|
+
|
|
155
|
+
No authorization required
|
|
156
|
+
|
|
157
|
+
### HTTP request headers
|
|
158
|
+
|
|
159
|
+
- **Content-Type**: Not defined
|
|
160
|
+
- **Accept**: application/json
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
### HTTP response details
|
|
164
|
+
| Status code | Description | Response headers |
|
|
165
|
+
|-------------|-------------|------------------|
|
|
166
|
+
|**200** | Suppliers | - |
|
|
167
|
+
|**400** | Bad Request | - |
|
|
168
|
+
|**401** | Unauthorised | - |
|
|
169
|
+
|**403** | Access Denied | - |
|
|
170
|
+
|
|
171
|
+
[[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)
|
|
172
|
+
|
|
173
|
+
# **putGetSupplierItem**
|
|
174
|
+
> SupplierProductModel putGetSupplierItem()
|
|
175
|
+
|
|
176
|
+
Update Supplier Product
|
|
177
|
+
|
|
178
|
+
### Example
|
|
179
|
+
|
|
180
|
+
```typescript
|
|
181
|
+
import {
|
|
182
|
+
SuppliersApi,
|
|
183
|
+
Configuration,
|
|
184
|
+
SupplierProductModel
|
|
185
|
+
} from 'yellowgrid-api-ts';
|
|
186
|
+
|
|
187
|
+
const configuration = new Configuration();
|
|
188
|
+
const apiInstance = new SuppliersApi(configuration);
|
|
189
|
+
|
|
190
|
+
let id: string; //ID (SKU) (default to undefined)
|
|
191
|
+
let supplierProductModel: SupplierProductModel; //Supplier Product (optional)
|
|
192
|
+
|
|
193
|
+
const { status, data } = await apiInstance.putGetSupplierItem(
|
|
194
|
+
id,
|
|
195
|
+
supplierProductModel
|
|
196
|
+
);
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
### Parameters
|
|
200
|
+
|
|
201
|
+
|Name | Type | Description | Notes|
|
|
202
|
+
|------------- | ------------- | ------------- | -------------|
|
|
203
|
+
| **supplierProductModel** | **SupplierProductModel**| Supplier Product | |
|
|
204
|
+
| **id** | [**string**] | ID (SKU) | defaults to undefined|
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
### Return type
|
|
208
|
+
|
|
209
|
+
**SupplierProductModel**
|
|
210
|
+
|
|
211
|
+
### Authorization
|
|
212
|
+
|
|
213
|
+
No authorization required
|
|
214
|
+
|
|
215
|
+
### HTTP request headers
|
|
216
|
+
|
|
217
|
+
- **Content-Type**: application/json
|
|
218
|
+
- **Accept**: application/json
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
### HTTP response details
|
|
222
|
+
| Status code | Description | Response headers |
|
|
223
|
+
|-------------|-------------|------------------|
|
|
224
|
+
|**200** | Supplier Product Model | - |
|
|
225
|
+
|**400** | Bad Request | - |
|
|
226
|
+
|**401** | Unauthorised | - |
|
|
227
|
+
|**403** | Access Denied | - |
|
|
228
|
+
|
|
229
|
+
[[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)
|
|
230
|
+
|