yellowgrid-api-ts 3.0.81 → 3.0.83-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 +208 -190
- package/README.md +34 -7
- package/api.ts +1785 -250
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/config.json +3 -3
- package/configuration.ts +1 -1
- package/dist/api.d.ts +1302 -151
- package/dist/api.js +1065 -201
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/AbstractOrderRequestDTO.md +33 -0
- package/docs/AccountDetailedSummaryDTO.md +35 -0
- package/docs/AccountsApi.md +103 -0
- package/docs/AdminItemRequestDTO.md +37 -0
- package/docs/AdminOrderRequestDTO.md +41 -0
- package/docs/AdminUserModel.md +31 -0
- package/docs/BasicItemDTO.md +23 -0
- package/docs/BasicProductDTO.md +23 -0
- package/docs/Class3CXApi.md +0 -55
- package/docs/ClientDetailsModel.md +0 -2
- package/docs/CourierPriceEntity.md +39 -0
- package/docs/CustomerItemRequestDTO.md +33 -0
- package/docs/CustomerOrderRequestDTO.md +33 -0
- package/docs/ItemDTO.md +10 -4
- package/docs/LinkedOrderEntity.md +23 -0
- package/docs/NavigationItemModel.md +27 -0
- package/docs/OrderSummaryDTO.md +8 -0
- package/docs/OrderTotalModel.md +2 -0
- package/docs/OrdersApi.md +301 -4
- package/docs/ProductSearchResultsModel.md +1 -1
- package/docs/{ProductSummaryModel.md → ProductSummaryDTO.md} +5 -3
- package/docs/ProductsApi.md +159 -34
- package/docs/ProvisioningApi.md +4 -4
- package/docs/{ProvisioningEntity.md → ProvisioningModel.md} +3 -3
- package/docs/ShipmentEntity.md +2 -2
- package/docs/ShippingApi.md +63 -0
- package/docs/ShippingConsignmentModel.md +26 -0
- package/docs/ShippingInformationDTO.md +25 -0
- package/docs/ShippingServiceDTO.md +23 -0
- package/docs/ShippingServiceModel.md +31 -0
- package/docs/{GetGetPasswordHash200Response.md → ShippingServicesModel.md} +5 -5
- package/docs/StockManagementApi.md +2 -2
- package/docs/SubNavigationItemModel.md +25 -0
- package/docs/TcxSbcDTO.md +31 -0
- package/docs/TcxSbcModel.md +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
package/docs/ProductsApi.md
CHANGED
|
@@ -5,11 +5,13 @@ All URIs are relative to *http://api.yellowgrid.local*
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
7
|
|[**getGetAttributeSets**](#getgetattributesets) | **GET** /products/attributes | Get Attribute Sets|
|
|
8
|
-
|[**getGetCustomerPriceLists**](#getgetcustomerpricelists) | **GET** /products/prices/lists | Get Customer Price Lists|
|
|
9
8
|
|[**getGetLegacyStockList**](#getgetlegacystocklist) | **GET** /products/stock/legacy | Get Current Stock & Pricing|
|
|
10
|
-
|[**
|
|
9
|
+
|[**getGetProduct**](#getgetproduct) | **GET** /products/{sku} | Get Product|
|
|
10
|
+
|[**getGetProductForCustomer**](#getgetproductforcustomer) | **GET** /admin/products/{sku} | Get Product For Customer|
|
|
11
|
+
|[**getGetProducts**](#getgetproducts) | **GET** /products | Get Products|
|
|
11
12
|
|[**getGetStockList**](#getgetstocklist) | **GET** /products/stock | Get Current Stock & Pricing|
|
|
12
13
|
|[**getGetTcxTemplates**](#getgettcxtemplates) | **GET** /products/attributes/tcx/templates | Get 3CX Templates|
|
|
14
|
+
|[**getSearchProducts**](#getsearchproducts) | **GET** /products/search | Search Products|
|
|
13
15
|
|
|
14
16
|
# **getGetAttributeSets**
|
|
15
17
|
> Array<AttributeSetEnum> getGetAttributeSets()
|
|
@@ -58,10 +60,10 @@ No authorization required
|
|
|
58
60
|
|
|
59
61
|
[[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)
|
|
60
62
|
|
|
61
|
-
# **
|
|
62
|
-
>
|
|
63
|
+
# **getGetLegacyStockList**
|
|
64
|
+
> string getGetLegacyStockList()
|
|
63
65
|
|
|
64
|
-
Get
|
|
66
|
+
Get Current Stock & Pricing
|
|
65
67
|
|
|
66
68
|
### Example
|
|
67
69
|
|
|
@@ -74,16 +76,23 @@ import {
|
|
|
74
76
|
const configuration = new Configuration();
|
|
75
77
|
const apiInstance = new ProductsApi(configuration);
|
|
76
78
|
|
|
77
|
-
|
|
79
|
+
let format: 'XML' | 'CSV'; //File Format (default to undefined)
|
|
80
|
+
|
|
81
|
+
const { status, data } = await apiInstance.getGetLegacyStockList(
|
|
82
|
+
format
|
|
83
|
+
);
|
|
78
84
|
```
|
|
79
85
|
|
|
80
86
|
### Parameters
|
|
81
|
-
|
|
87
|
+
|
|
88
|
+
|Name | Type | Description | Notes|
|
|
89
|
+
|------------- | ------------- | ------------- | -------------|
|
|
90
|
+
| **format** | [**'XML' | 'CSV'**]**Array<'XML' | 'CSV'>** | File Format | defaults to undefined|
|
|
82
91
|
|
|
83
92
|
|
|
84
93
|
### Return type
|
|
85
94
|
|
|
86
|
-
**
|
|
95
|
+
**string**
|
|
87
96
|
|
|
88
97
|
### Authorization
|
|
89
98
|
|
|
@@ -92,23 +101,23 @@ No authorization required
|
|
|
92
101
|
### HTTP request headers
|
|
93
102
|
|
|
94
103
|
- **Content-Type**: Not defined
|
|
95
|
-
- **Accept**: application/
|
|
104
|
+
- **Accept**: text/csv, application/xml
|
|
96
105
|
|
|
97
106
|
|
|
98
107
|
### HTTP response details
|
|
99
108
|
| Status code | Description | Response headers |
|
|
100
109
|
|-------------|-------------|------------------|
|
|
101
|
-
|**200** |
|
|
110
|
+
|**200** | Products | - |
|
|
102
111
|
|**400** | Bad Request | - |
|
|
103
112
|
|**401** | Unauthorised | - |
|
|
104
113
|
|**403** | Access Denied | - |
|
|
105
114
|
|
|
106
115
|
[[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
116
|
|
|
108
|
-
# **
|
|
109
|
-
>
|
|
117
|
+
# **getGetProduct**
|
|
118
|
+
> ProductSummaryDTO getGetProduct()
|
|
110
119
|
|
|
111
|
-
Get
|
|
120
|
+
Get Product
|
|
112
121
|
|
|
113
122
|
### Example
|
|
114
123
|
|
|
@@ -121,10 +130,14 @@ import {
|
|
|
121
130
|
const configuration = new Configuration();
|
|
122
131
|
const apiInstance = new ProductsApi(configuration);
|
|
123
132
|
|
|
124
|
-
let
|
|
133
|
+
let sku: string; //Product SKU (default to undefined)
|
|
134
|
+
let quantity: number; //Quantity (optional) (default to undefined)
|
|
135
|
+
let licenceKey: string; //3CX Licence Key (optional) (default to undefined)
|
|
125
136
|
|
|
126
|
-
const { status, data } = await apiInstance.
|
|
127
|
-
|
|
137
|
+
const { status, data } = await apiInstance.getGetProduct(
|
|
138
|
+
sku,
|
|
139
|
+
quantity,
|
|
140
|
+
licenceKey
|
|
128
141
|
);
|
|
129
142
|
```
|
|
130
143
|
|
|
@@ -132,12 +145,14 @@ const { status, data } = await apiInstance.getGetLegacyStockList(
|
|
|
132
145
|
|
|
133
146
|
|Name | Type | Description | Notes|
|
|
134
147
|
|------------- | ------------- | ------------- | -------------|
|
|
135
|
-
| **
|
|
148
|
+
| **sku** | [**string**] | Product SKU | defaults to undefined|
|
|
149
|
+
| **quantity** | [**number**] | Quantity | (optional) defaults to undefined|
|
|
150
|
+
| **licenceKey** | [**string**] | 3CX Licence Key | (optional) defaults to undefined|
|
|
136
151
|
|
|
137
152
|
|
|
138
153
|
### Return type
|
|
139
154
|
|
|
140
|
-
**
|
|
155
|
+
**ProductSummaryDTO**
|
|
141
156
|
|
|
142
157
|
### Authorization
|
|
143
158
|
|
|
@@ -146,23 +161,23 @@ No authorization required
|
|
|
146
161
|
### HTTP request headers
|
|
147
162
|
|
|
148
163
|
- **Content-Type**: Not defined
|
|
149
|
-
- **Accept**:
|
|
164
|
+
- **Accept**: application/json
|
|
150
165
|
|
|
151
166
|
|
|
152
167
|
### HTTP response details
|
|
153
168
|
| Status code | Description | Response headers |
|
|
154
169
|
|-------------|-------------|------------------|
|
|
155
|
-
|**200** |
|
|
170
|
+
|**200** | Product | - |
|
|
156
171
|
|**400** | Bad Request | - |
|
|
157
172
|
|**401** | Unauthorised | - |
|
|
158
173
|
|**403** | Access Denied | - |
|
|
159
174
|
|
|
160
175
|
[[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)
|
|
161
176
|
|
|
162
|
-
# **
|
|
163
|
-
>
|
|
177
|
+
# **getGetProductForCustomer**
|
|
178
|
+
> ProductSummaryDTO getGetProductForCustomer()
|
|
164
179
|
|
|
165
|
-
Get
|
|
180
|
+
Get Product For Customer
|
|
166
181
|
|
|
167
182
|
### Example
|
|
168
183
|
|
|
@@ -175,14 +190,16 @@ import {
|
|
|
175
190
|
const configuration = new Configuration();
|
|
176
191
|
const apiInstance = new ProductsApi(configuration);
|
|
177
192
|
|
|
178
|
-
let
|
|
179
|
-
let
|
|
180
|
-
let
|
|
193
|
+
let customerId: number; //Customer ID (default to undefined)
|
|
194
|
+
let sku: string; //Product SKU (default to undefined)
|
|
195
|
+
let quantity: number; //Quantity (optional) (default to undefined)
|
|
196
|
+
let licenceKey: string; //3CX Licence Key (optional) (default to undefined)
|
|
181
197
|
|
|
182
|
-
const { status, data } = await apiInstance.
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
198
|
+
const { status, data } = await apiInstance.getGetProductForCustomer(
|
|
199
|
+
customerId,
|
|
200
|
+
sku,
|
|
201
|
+
quantity,
|
|
202
|
+
licenceKey
|
|
186
203
|
);
|
|
187
204
|
```
|
|
188
205
|
|
|
@@ -190,14 +207,62 @@ const { status, data } = await apiInstance.getGetProducts(
|
|
|
190
207
|
|
|
191
208
|
|Name | Type | Description | Notes|
|
|
192
209
|
|------------- | ------------- | ------------- | -------------|
|
|
193
|
-
| **
|
|
194
|
-
| **
|
|
195
|
-
| **
|
|
210
|
+
| **customerId** | [**number**] | Customer ID | defaults to undefined|
|
|
211
|
+
| **sku** | [**string**] | Product SKU | defaults to undefined|
|
|
212
|
+
| **quantity** | [**number**] | Quantity | (optional) defaults to undefined|
|
|
213
|
+
| **licenceKey** | [**string**] | 3CX Licence Key | (optional) defaults to undefined|
|
|
196
214
|
|
|
197
215
|
|
|
198
216
|
### Return type
|
|
199
217
|
|
|
200
|
-
**
|
|
218
|
+
**ProductSummaryDTO**
|
|
219
|
+
|
|
220
|
+
### Authorization
|
|
221
|
+
|
|
222
|
+
No authorization required
|
|
223
|
+
|
|
224
|
+
### HTTP request headers
|
|
225
|
+
|
|
226
|
+
- **Content-Type**: Not defined
|
|
227
|
+
- **Accept**: application/json
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
### HTTP response details
|
|
231
|
+
| Status code | Description | Response headers |
|
|
232
|
+
|-------------|-------------|------------------|
|
|
233
|
+
|**200** | Product | - |
|
|
234
|
+
|**400** | Bad Request | - |
|
|
235
|
+
|**401** | Unauthorised | - |
|
|
236
|
+
|**403** | Access Denied | - |
|
|
237
|
+
|
|
238
|
+
[[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)
|
|
239
|
+
|
|
240
|
+
# **getGetProducts**
|
|
241
|
+
> Array<BasicProductDTO> getGetProducts()
|
|
242
|
+
|
|
243
|
+
Get Products
|
|
244
|
+
|
|
245
|
+
### Example
|
|
246
|
+
|
|
247
|
+
```typescript
|
|
248
|
+
import {
|
|
249
|
+
ProductsApi,
|
|
250
|
+
Configuration
|
|
251
|
+
} from 'yellowgrid-api-ts';
|
|
252
|
+
|
|
253
|
+
const configuration = new Configuration();
|
|
254
|
+
const apiInstance = new ProductsApi(configuration);
|
|
255
|
+
|
|
256
|
+
const { status, data } = await apiInstance.getGetProducts();
|
|
257
|
+
```
|
|
258
|
+
|
|
259
|
+
### Parameters
|
|
260
|
+
This endpoint does not have any parameters.
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
### Return type
|
|
264
|
+
|
|
265
|
+
**Array<BasicProductDTO>**
|
|
201
266
|
|
|
202
267
|
### Authorization
|
|
203
268
|
|
|
@@ -313,3 +378,63 @@ No authorization required
|
|
|
313
378
|
|
|
314
379
|
[[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)
|
|
315
380
|
|
|
381
|
+
# **getSearchProducts**
|
|
382
|
+
> ProductSearchResultsModel getSearchProducts()
|
|
383
|
+
|
|
384
|
+
Search Products
|
|
385
|
+
|
|
386
|
+
### Example
|
|
387
|
+
|
|
388
|
+
```typescript
|
|
389
|
+
import {
|
|
390
|
+
ProductsApi,
|
|
391
|
+
Configuration
|
|
392
|
+
} from 'yellowgrid-api-ts';
|
|
393
|
+
|
|
394
|
+
const configuration = new Configuration();
|
|
395
|
+
const apiInstance = new ProductsApi(configuration);
|
|
396
|
+
|
|
397
|
+
let pageSize: number; //Number Of Results (optional) (default to 20)
|
|
398
|
+
let page: number; //Page Number (optional) (default to 1)
|
|
399
|
+
let search: string; //Search (optional) (default to undefined)
|
|
400
|
+
|
|
401
|
+
const { status, data } = await apiInstance.getSearchProducts(
|
|
402
|
+
pageSize,
|
|
403
|
+
page,
|
|
404
|
+
search
|
|
405
|
+
);
|
|
406
|
+
```
|
|
407
|
+
|
|
408
|
+
### Parameters
|
|
409
|
+
|
|
410
|
+
|Name | Type | Description | Notes|
|
|
411
|
+
|------------- | ------------- | ------------- | -------------|
|
|
412
|
+
| **pageSize** | [**number**] | Number Of Results | (optional) defaults to 20|
|
|
413
|
+
| **page** | [**number**] | Page Number | (optional) defaults to 1|
|
|
414
|
+
| **search** | [**string**] | Search | (optional) defaults to undefined|
|
|
415
|
+
|
|
416
|
+
|
|
417
|
+
### Return type
|
|
418
|
+
|
|
419
|
+
**ProductSearchResultsModel**
|
|
420
|
+
|
|
421
|
+
### Authorization
|
|
422
|
+
|
|
423
|
+
No authorization required
|
|
424
|
+
|
|
425
|
+
### HTTP request headers
|
|
426
|
+
|
|
427
|
+
- **Content-Type**: Not defined
|
|
428
|
+
- **Accept**: application/json
|
|
429
|
+
|
|
430
|
+
|
|
431
|
+
### HTTP response details
|
|
432
|
+
| Status code | Description | Response headers |
|
|
433
|
+
|-------------|-------------|------------------|
|
|
434
|
+
|**200** | Products | - |
|
|
435
|
+
|**400** | Bad Request | - |
|
|
436
|
+
|**401** | Unauthorised | - |
|
|
437
|
+
|**403** | Access Denied | - |
|
|
438
|
+
|
|
439
|
+
[[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)
|
|
440
|
+
|
package/docs/ProvisioningApi.md
CHANGED
|
@@ -235,7 +235,7 @@ No authorization required
|
|
|
235
235
|
[[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)
|
|
236
236
|
|
|
237
237
|
# **getGetGroups**
|
|
238
|
-
> Array<
|
|
238
|
+
> Array<ProvisioningModel> getGetGroups()
|
|
239
239
|
|
|
240
240
|
Get provisioning groups
|
|
241
241
|
|
|
@@ -266,7 +266,7 @@ const { status, data } = await apiInstance.getGetGroups(
|
|
|
266
266
|
|
|
267
267
|
### Return type
|
|
268
268
|
|
|
269
|
-
**Array<
|
|
269
|
+
**Array<ProvisioningModel>**
|
|
270
270
|
|
|
271
271
|
### Authorization
|
|
272
272
|
|
|
@@ -289,7 +289,7 @@ No authorization required
|
|
|
289
289
|
[[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)
|
|
290
290
|
|
|
291
291
|
# **postAddFanvilGroup**
|
|
292
|
-
>
|
|
292
|
+
> ProvisioningModel postAddFanvilGroup()
|
|
293
293
|
|
|
294
294
|
Create a Fanvil provisioning group
|
|
295
295
|
|
|
@@ -321,7 +321,7 @@ const { status, data } = await apiInstance.postAddFanvilGroup(
|
|
|
321
321
|
|
|
322
322
|
### Return type
|
|
323
323
|
|
|
324
|
-
**
|
|
324
|
+
**ProvisioningModel**
|
|
325
325
|
|
|
326
326
|
### Authorization
|
|
327
327
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# ProvisioningModel
|
|
2
2
|
|
|
3
3
|
Provisioning Group
|
|
4
4
|
|
|
@@ -15,9 +15,9 @@ Name | Type | Description | Notes
|
|
|
15
15
|
## Example
|
|
16
16
|
|
|
17
17
|
```typescript
|
|
18
|
-
import {
|
|
18
|
+
import { ProvisioningModel } from 'yellowgrid-api-ts';
|
|
19
19
|
|
|
20
|
-
const instance:
|
|
20
|
+
const instance: ProvisioningModel = {
|
|
21
21
|
groupName,
|
|
22
22
|
provisioningUrl,
|
|
23
23
|
auth,
|
package/docs/ShipmentEntity.md
CHANGED
|
@@ -15,7 +15,7 @@ Name | Type | Description | Notes
|
|
|
15
15
|
**courierTracking** | **string** | courierTracking | [optional] [default to undefined]
|
|
16
16
|
**courierBoxes** | **number** | courierBoxes | [optional] [default to undefined]
|
|
17
17
|
**scannedData** | **string** | mac | [optional] [default to undefined]
|
|
18
|
-
**
|
|
18
|
+
**dateShipped** | **string** | date | [optional] [default to undefined]
|
|
19
19
|
**requestDate** | **string** | requestDate | [optional] [default to undefined]
|
|
20
20
|
**provId** | **number** | provId | [optional] [default to undefined]
|
|
21
21
|
|
|
@@ -34,7 +34,7 @@ const instance: ShipmentEntity = {
|
|
|
34
34
|
courierTracking,
|
|
35
35
|
courierBoxes,
|
|
36
36
|
scannedData,
|
|
37
|
-
|
|
37
|
+
dateShipped,
|
|
38
38
|
requestDate,
|
|
39
39
|
provId,
|
|
40
40
|
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# ShippingApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://api.yellowgrid.local*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**postGetShippingServices**](#postgetshippingservices) | **POST** /shipping/services | Get Shipping Services|
|
|
8
|
+
|
|
9
|
+
# **postGetShippingServices**
|
|
10
|
+
> ShippingServicesModel postGetShippingServices()
|
|
11
|
+
|
|
12
|
+
Get Shipping Services
|
|
13
|
+
|
|
14
|
+
### Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import {
|
|
18
|
+
ShippingApi,
|
|
19
|
+
Configuration,
|
|
20
|
+
ShippingInformationDTO
|
|
21
|
+
} from 'yellowgrid-api-ts';
|
|
22
|
+
|
|
23
|
+
const configuration = new Configuration();
|
|
24
|
+
const apiInstance = new ShippingApi(configuration);
|
|
25
|
+
|
|
26
|
+
let shippingInformationDTO: ShippingInformationDTO; //Shipping Information (optional)
|
|
27
|
+
|
|
28
|
+
const { status, data } = await apiInstance.postGetShippingServices(
|
|
29
|
+
shippingInformationDTO
|
|
30
|
+
);
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
### Parameters
|
|
34
|
+
|
|
35
|
+
|Name | Type | Description | Notes|
|
|
36
|
+
|------------- | ------------- | ------------- | -------------|
|
|
37
|
+
| **shippingInformationDTO** | **ShippingInformationDTO**| Shipping Information | |
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
### Return type
|
|
41
|
+
|
|
42
|
+
**ShippingServicesModel**
|
|
43
|
+
|
|
44
|
+
### Authorization
|
|
45
|
+
|
|
46
|
+
No authorization required
|
|
47
|
+
|
|
48
|
+
### HTTP request headers
|
|
49
|
+
|
|
50
|
+
- **Content-Type**: application/json
|
|
51
|
+
- **Accept**: application/json
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
### HTTP response details
|
|
55
|
+
| Status code | Description | Response headers |
|
|
56
|
+
|-------------|-------------|------------------|
|
|
57
|
+
|**200** | Shipping Services | - |
|
|
58
|
+
|**400** | Bad Request | - |
|
|
59
|
+
|**401** | Unauthorised | - |
|
|
60
|
+
|**403** | Access Denied | - |
|
|
61
|
+
|
|
62
|
+
[[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)
|
|
63
|
+
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# ShippingConsignmentModel
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**service** | [**ShippingServiceModel**](ShippingServiceModel.md) | | [optional] [default to undefined]
|
|
9
|
+
**id** | **string** | ID/Number | [optional] [default to undefined]
|
|
10
|
+
**trackingNumber** | **string** | Tracking Number | [optional] [default to undefined]
|
|
11
|
+
**parcelIds** | **Array<string>** | Parcels | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { ShippingConsignmentModel } from 'yellowgrid-api-ts';
|
|
17
|
+
|
|
18
|
+
const instance: ShippingConsignmentModel = {
|
|
19
|
+
service,
|
|
20
|
+
id,
|
|
21
|
+
trackingNumber,
|
|
22
|
+
parcelIds,
|
|
23
|
+
};
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
[[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
|
+
# ShippingInformationDTO
|
|
2
|
+
|
|
3
|
+
Shipping Information
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**items** | [**Array<BasicItemDTO>**](BasicItemDTO.md) | Items | [optional] [default to undefined]
|
|
10
|
+
**postalCode** | **string** | Destination Post Code | [optional] [default to undefined]
|
|
11
|
+
**iso** | **string** | Destination ISO | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { ShippingInformationDTO } from 'yellowgrid-api-ts';
|
|
17
|
+
|
|
18
|
+
const instance: ShippingInformationDTO = {
|
|
19
|
+
items,
|
|
20
|
+
postalCode,
|
|
21
|
+
iso,
|
|
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,23 @@
|
|
|
1
|
+
# ShippingServiceDTO
|
|
2
|
+
|
|
3
|
+
Shipping Service
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**courier** | **string** | Courier | [optional] [default to undefined]
|
|
10
|
+
**serviceName** | **string** | Service Name | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { ShippingServiceDTO } from 'yellowgrid-api-ts';
|
|
16
|
+
|
|
17
|
+
const instance: ShippingServiceDTO = {
|
|
18
|
+
courier,
|
|
19
|
+
serviceName,
|
|
20
|
+
};
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
[[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,31 @@
|
|
|
1
|
+
# ShippingServiceModel
|
|
2
|
+
|
|
3
|
+
Shipping Service
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**courier** | **string** | Courier | [optional] [default to undefined]
|
|
10
|
+
**code** | **string** | Code | [optional] [default to undefined]
|
|
11
|
+
**name** | **string** | Name | [optional] [default to undefined]
|
|
12
|
+
**description** | **string** | Description | [optional] [default to undefined]
|
|
13
|
+
**label** | **string** | Label | [optional] [default to undefined]
|
|
14
|
+
**price** | **number** | Price | [optional] [default to undefined]
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import { ShippingServiceModel } from 'yellowgrid-api-ts';
|
|
20
|
+
|
|
21
|
+
const instance: ShippingServiceModel = {
|
|
22
|
+
courier,
|
|
23
|
+
code,
|
|
24
|
+
name,
|
|
25
|
+
description,
|
|
26
|
+
label,
|
|
27
|
+
price,
|
|
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)
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
#
|
|
1
|
+
# ShippingServicesModel
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
## Properties
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**
|
|
8
|
+
**services** | [**Array<ShippingServiceModel>**](ShippingServiceModel.md) | Services | [optional] [default to undefined]
|
|
9
9
|
|
|
10
10
|
## Example
|
|
11
11
|
|
|
12
12
|
```typescript
|
|
13
|
-
import {
|
|
13
|
+
import { ShippingServicesModel } from 'yellowgrid-api-ts';
|
|
14
14
|
|
|
15
|
-
const instance:
|
|
16
|
-
|
|
15
|
+
const instance: ShippingServicesModel = {
|
|
16
|
+
services,
|
|
17
17
|
};
|
|
18
18
|
```
|
|
19
19
|
|
|
@@ -692,7 +692,7 @@ No authorization required
|
|
|
692
692
|
[[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)
|
|
693
693
|
|
|
694
694
|
# **getGetStockSupplierProducts**
|
|
695
|
-
> Array<
|
|
695
|
+
> Array<ProductSummaryDTO> getGetStockSupplierProducts()
|
|
696
696
|
|
|
697
697
|
Get Stock Supplier\'s Products
|
|
698
698
|
|
|
@@ -723,7 +723,7 @@ const { status, data } = await apiInstance.getGetStockSupplierProducts(
|
|
|
723
723
|
|
|
724
724
|
### Return type
|
|
725
725
|
|
|
726
|
-
**Array<
|
|
726
|
+
**Array<ProductSummaryDTO>**
|
|
727
727
|
|
|
728
728
|
### Authorization
|
|
729
729
|
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# SubNavigationItemModel
|
|
2
|
+
|
|
3
|
+
POPS Sub Navigation Item
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**title** | **string** | Title | [optional] [default to undefined]
|
|
10
|
+
**url** | **string** | URL | [optional] [default to undefined]
|
|
11
|
+
**icon** | **string** | Icon (Font Awesome) | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { SubNavigationItemModel } from 'yellowgrid-api-ts';
|
|
17
|
+
|
|
18
|
+
const instance: SubNavigationItemModel = {
|
|
19
|
+
title,
|
|
20
|
+
url,
|
|
21
|
+
icon,
|
|
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,31 @@
|
|
|
1
|
+
# TcxSbcDTO
|
|
2
|
+
|
|
3
|
+
SBC Data
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**ipAddress** | **string** | LAN IP Address | [optional] [default to undefined]
|
|
10
|
+
**defaultGateway** | **string** | LAN Default Gateway | [optional] [default to undefined]
|
|
11
|
+
**netmask** | **string** | LAN Subnet Mask | [optional] [default to undefined]
|
|
12
|
+
**dns** | **string** | DNS | [optional] [default to undefined]
|
|
13
|
+
**tcxUrl** | **string** | 3CX URL | [optional] [default to undefined]
|
|
14
|
+
**tcxKey** | **string** | 3CX SBC Key | [optional] [default to undefined]
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import { TcxSbcDTO } from 'yellowgrid-api-ts';
|
|
20
|
+
|
|
21
|
+
const instance: TcxSbcDTO = {
|
|
22
|
+
ipAddress,
|
|
23
|
+
defaultGateway,
|
|
24
|
+
netmask,
|
|
25
|
+
dns,
|
|
26
|
+
tcxUrl,
|
|
27
|
+
tcxKey,
|
|
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)
|
package/docs/TcxSbcModel.md
CHANGED
package/index.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* Yellowgrid
|
|
5
|
-
* Welcome to the Yellowgrid API documentation.
|
|
5
|
+
* Welcome to the Yellowgrid API documentation. This API provides secure and comprehensive access to the Yellowgrid platform, enabling developers and integrators to manage accounts, contacts, SIP trunks, SMS messaging, 3CX integrations, and provisioning services. ## Key Features: - **Accounts**: View and manage account details, contacts, client credentials, and verification. - **Provisioning**: Automate setup and configuration of devices and groups. - **SIP Trunks**: Manage trunk creation, changes, DDIs, diverts, and configuration. - **Messaging**: Send SMS messages securely via the messaging gateway. - **3CX Integrations**: Automate licence handling, installation, and multi-tenant setup. ## Authentication: The API supports OAuth 2.0 for authentication and authorization. Ensure you use a valid bearer token for all authenticated endpoints. ## Base URL: `http://api.yellowgrid.local` For questions or technical support, please contact support@yellowgrid.co.uk.
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 0
|
|
8
8
|
*
|