yellowgrid-api-ts 3.2.62 → 3.2.64-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 +249 -235
- package/.openapi-generator/VERSION +1 -1
- package/README.md +37 -21
- package/api.ts +6603 -1902
- package/base.ts +26 -2
- package/common.ts +39 -16
- package/config.json +3 -3
- package/configuration.ts +19 -25
- package/dist/api.d.ts +5481 -849
- package/dist/api.js +2041 -1698
- 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 +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/models/CourierEnum.d.ts +18 -0
- package/dist/models/CourierEnum.js +20 -0
- package/dist/models/PrinterEnum.d.ts +18 -0
- package/dist/models/PrinterEnum.js +20 -0
- package/docs/AccountsApi.md +1 -1
- package/docs/BatchDTO.md +59 -0
- package/docs/CRMApi.md +1 -1
- 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 -56
- package/docs/CreditNoteDTO.md +21 -0
- package/docs/CreditNoteEntity.md +29 -0
- package/docs/CreditNoteItemDTO.md +25 -0
- package/docs/CreditNoteItemEntity.md +29 -0
- package/docs/CreditNoteModel.md +29 -0
- package/docs/MyPBXToolsApi.md +1 -1
- package/docs/OAuth20Api.md +4 -4
- package/docs/OrderDetailsDTO.md +63 -0
- package/docs/OrderItemDTO.md +53 -0
- package/docs/OrderedItemModel.md +47 -0
- package/docs/OrdersApi.md +856 -22
- package/docs/PostAddOrderNoteRequest.md +20 -0
- package/docs/PostSplitOrderRequest.md +20 -0
- package/docs/PricingApi.md +1 -1
- package/docs/PrinterEntity.md +29 -0
- package/docs/ProductsApi.md +1 -1
- package/docs/ProvisioningApi.md +1 -1
- package/docs/PutAllocateItemsRequest.md +20 -0
- package/docs/PutAllocateItemsRequestItemsInner.md +22 -0
- package/docs/SIPTrunksApi.md +1 -56
- package/docs/SMSApi.md +1 -1
- package/docs/ServicesApi.md +1 -1
- package/docs/ShipmentDTO.md +31 -0
- package/docs/ShipmentItemDTO.md +23 -0
- package/docs/ShipmentItemModel.md +29 -0
- package/docs/ShipmentModel.md +43 -0
- package/docs/ShipmentRequestDTO.md +31 -0
- package/docs/ShippingApi.md +1 -1
- package/docs/ShippingRequestDTO.md +24 -0
- package/docs/StockManagementApi.md +1 -1
- package/docs/SupplierModel.md +37 -0
- package/docs/SystemApi.md +1 -1
- package/docs/{SupportTicketModel.md → TelephonySupportTicketModel.md} +3 -3
- package/docs/TicketsApi.md +9 -9
- package/docs/WebhooksApi.md +1 -1
- package/getEnums.php +31 -31
- package/hs_err_pid58424.log +247 -0
- package/index.ts +1 -1
- package/models/CourierEnum.ts +19 -0
- package/models/PrinterEnum.ts +19 -0
- package/openapitools.json +1 -1
- package/package.json +2 -2
- package/dist/models/EventStatusEnum.d.ts +0 -18
- package/dist/models/EventStatusEnum.js +0 -20
- package/dist/models/PortStatusEnum.d.ts +0 -18
- package/dist/models/PortStatusEnum.js +0 -20
- package/docs/NumberPortDTO.md +0 -55
- package/docs/NumberPortModel.md +0 -51
- package/docs/NumberPortRangeDTO.md +0 -33
- package/docs/NumberPortRangeRequestDTO.md +0 -27
- package/docs/NumberPortingApi.md +0 -668
- package/docs/NumberPortsModel.md +0 -27
- package/models/EventStatusEnum.ts +0 -19
- package/models/PortStatusEnum.ts +0 -19
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# PostAddOrderNoteRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**note** | **string** | Order Note | [optional] [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { PostAddOrderNoteRequest } from 'yellowgrid-api-ts';
|
|
14
|
+
|
|
15
|
+
const instance: PostAddOrderNoteRequest = {
|
|
16
|
+
note,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[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,20 @@
|
|
|
1
|
+
# PostSplitOrderRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**itemIds** | **Array<number>** | Item Ids | [optional] [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { PostSplitOrderRequest } from 'yellowgrid-api-ts';
|
|
14
|
+
|
|
15
|
+
const instance: PostSplitOrderRequest = {
|
|
16
|
+
itemIds,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[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/PricingApi.md
CHANGED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# PrinterEntity
|
|
2
|
+
|
|
3
|
+
PrintersEntity
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**id** | **number** | id | [optional] [default to undefined]
|
|
10
|
+
**brand** | **string** | brand | [optional] [default to undefined]
|
|
11
|
+
**model** | **string** | model | [optional] [default to undefined]
|
|
12
|
+
**sn** | **string** | sn | [optional] [default to undefined]
|
|
13
|
+
**location** | **string** | location | [optional] [default to undefined]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { PrinterEntity } from 'yellowgrid-api-ts';
|
|
19
|
+
|
|
20
|
+
const instance: PrinterEntity = {
|
|
21
|
+
id,
|
|
22
|
+
brand,
|
|
23
|
+
model,
|
|
24
|
+
sn,
|
|
25
|
+
location,
|
|
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)
|
package/docs/ProductsApi.md
CHANGED
package/docs/ProvisioningApi.md
CHANGED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# PutAllocateItemsRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**items** | [**Array<PutAllocateItemsRequestItemsInner>**](PutAllocateItemsRequestItemsInner.md) | Items | [optional] [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { PutAllocateItemsRequest } from 'yellowgrid-api-ts';
|
|
14
|
+
|
|
15
|
+
const instance: PutAllocateItemsRequest = {
|
|
16
|
+
items,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[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,22 @@
|
|
|
1
|
+
# PutAllocateItemsRequestItemsInner
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**itemId** | **number** | Item ID | [optional] [default to undefined]
|
|
9
|
+
**quantity** | **number** | Quantity To Allocate | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { PutAllocateItemsRequestItemsInner } from 'yellowgrid-api-ts';
|
|
15
|
+
|
|
16
|
+
const instance: PutAllocateItemsRequestItemsInner = {
|
|
17
|
+
itemId,
|
|
18
|
+
quantity,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[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/SIPTrunksApi.md
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
# SIPTrunksApi
|
|
2
2
|
|
|
3
|
-
All URIs are relative to *https://
|
|
3
|
+
All URIs are relative to *https://api.yellowgrid.local*
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
7
|
|[**deleteGetSipTrunk**](#deletegetsiptrunk) | **DELETE** /sip/trunks/{id} | Delete SIP Trunk|
|
|
8
8
|
|[**getCanDivert**](#getcandivert) | **GET** /sip/trunks/{id}/diverts/allowed | SIP Trunk Diverts Allowed|
|
|
9
9
|
|[**getGetAddress**](#getgetaddress) | **GET** /sip/trunks/{id}/address | Get SIP Trunk Address|
|
|
10
|
-
|[**getGetAdminSipTrunks**](#getgetadminsiptrunks) | **GET** /sip/trunks/admin | |
|
|
11
10
|
|[**getGetAreaCodes**](#getgetareacodes) | **GET** /sip/trunks/area/codes | Get UK National Area Codes|
|
|
12
11
|
|[**getGetCliFlexibility**](#getgetcliflexibility) | **GET** /sip/trunks/{id}/cli/flexibility | Get SIP Trunk CLI Flexibility Status|
|
|
13
12
|
|[**getGetDdis**](#getgetddis) | **GET** /sip/trunks/{id}/ddis | Get SIP Trunk DDIs|
|
|
@@ -190,60 +189,6 @@ No authorization required
|
|
|
190
189
|
|
|
191
190
|
[[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)
|
|
192
191
|
|
|
193
|
-
# **getGetAdminSipTrunks**
|
|
194
|
-
> Array<SipTrunkEntity> getGetAdminSipTrunks()
|
|
195
|
-
|
|
196
|
-
Get SIP Trunks
|
|
197
|
-
|
|
198
|
-
### Example
|
|
199
|
-
|
|
200
|
-
```typescript
|
|
201
|
-
import {
|
|
202
|
-
SIPTrunksApi,
|
|
203
|
-
Configuration
|
|
204
|
-
} from 'yellowgrid-api-ts';
|
|
205
|
-
|
|
206
|
-
const configuration = new Configuration();
|
|
207
|
-
const apiInstance = new SIPTrunksApi(configuration);
|
|
208
|
-
|
|
209
|
-
let customerId: number; //Customer ID (optional) (default to undefined)
|
|
210
|
-
|
|
211
|
-
const { status, data } = await apiInstance.getGetAdminSipTrunks(
|
|
212
|
-
customerId
|
|
213
|
-
);
|
|
214
|
-
```
|
|
215
|
-
|
|
216
|
-
### Parameters
|
|
217
|
-
|
|
218
|
-
|Name | Type | Description | Notes|
|
|
219
|
-
|------------- | ------------- | ------------- | -------------|
|
|
220
|
-
| **customerId** | [**number**] | Customer ID | (optional) defaults to undefined|
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
### Return type
|
|
224
|
-
|
|
225
|
-
**Array<SipTrunkEntity>**
|
|
226
|
-
|
|
227
|
-
### Authorization
|
|
228
|
-
|
|
229
|
-
No authorization required
|
|
230
|
-
|
|
231
|
-
### HTTP request headers
|
|
232
|
-
|
|
233
|
-
- **Content-Type**: Not defined
|
|
234
|
-
- **Accept**: application/json
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
### HTTP response details
|
|
238
|
-
| Status code | Description | Response headers |
|
|
239
|
-
|-------------|-------------|------------------|
|
|
240
|
-
|**200** | SIP Trunks | - |
|
|
241
|
-
|**400** | Bad Request | - |
|
|
242
|
-
|**401** | Unauthorised | - |
|
|
243
|
-
|**403** | Access Denied | - |
|
|
244
|
-
|
|
245
|
-
[[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)
|
|
246
|
-
|
|
247
192
|
# **getGetAreaCodes**
|
|
248
193
|
> Array<AreaCodeModel> getGetAreaCodes()
|
|
249
194
|
|
package/docs/SMSApi.md
CHANGED
package/docs/ServicesApi.md
CHANGED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# ShipmentDTO
|
|
2
|
+
|
|
3
|
+
Shipment
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**courier** | **string** | Courier | [optional] [default to undefined]
|
|
10
|
+
**reference** | **string** | Courier Reference | [optional] [default to undefined]
|
|
11
|
+
**requestedDate** | **string** | Date Time | [optional] [default to undefined]
|
|
12
|
+
**scannedItems** | [**Array<ScannedItemModel>**](ScannedItemModel.md) | Scanned Items | [optional] [default to undefined]
|
|
13
|
+
**items** | [**Array<ShipmentItemModel>**](ShipmentItemModel.md) | Items | [optional] [default to undefined]
|
|
14
|
+
**address** | [**AddressModel**](AddressModel.md) | | [optional] [default to undefined]
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import { ShipmentDTO } from 'yellowgrid-api-ts';
|
|
20
|
+
|
|
21
|
+
const instance: ShipmentDTO = {
|
|
22
|
+
courier,
|
|
23
|
+
reference,
|
|
24
|
+
requestedDate,
|
|
25
|
+
scannedItems,
|
|
26
|
+
items,
|
|
27
|
+
address,
|
|
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,23 @@
|
|
|
1
|
+
# ShipmentItemDTO
|
|
2
|
+
|
|
3
|
+
Shipment Item
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**itemId** | **number** | Item ID | [optional] [default to undefined]
|
|
10
|
+
**quantity** | **number** | Quantity | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { ShipmentItemDTO } from 'yellowgrid-api-ts';
|
|
16
|
+
|
|
17
|
+
const instance: ShipmentItemDTO = {
|
|
18
|
+
itemId,
|
|
19
|
+
quantity,
|
|
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,29 @@
|
|
|
1
|
+
# ShipmentItemModel
|
|
2
|
+
|
|
3
|
+
Shipment Item
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**id** | **number** | id | [optional] [default to undefined]
|
|
10
|
+
**shipmentId** | **number** | shipmentId | [optional] [default to undefined]
|
|
11
|
+
**batchId** | **number** | batchId | [optional] [default to undefined]
|
|
12
|
+
**quantity** | **number** | quantity | [optional] [default to undefined]
|
|
13
|
+
**itemId** | **string** | item | [optional] [default to undefined]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { ShipmentItemModel } from 'yellowgrid-api-ts';
|
|
19
|
+
|
|
20
|
+
const instance: ShipmentItemModel = {
|
|
21
|
+
id,
|
|
22
|
+
shipmentId,
|
|
23
|
+
batchId,
|
|
24
|
+
quantity,
|
|
25
|
+
itemId,
|
|
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)
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# ShipmentModel
|
|
2
|
+
|
|
3
|
+
Shipment
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**id** | **number** | id | [optional] [default to undefined]
|
|
10
|
+
**batchId** | **number** | batchId | [optional] [default to undefined]
|
|
11
|
+
**courier** | **string** | courier | [optional] [default to undefined]
|
|
12
|
+
**courierService** | **string** | courierService | [optional] [default to undefined]
|
|
13
|
+
**courierServiceDesc** | **string** | courierServiceDesc | [optional] [default to undefined]
|
|
14
|
+
**courierReference** | **string** | courierReference | [optional] [default to undefined]
|
|
15
|
+
**courierTracking** | **string** | courierTracking | [optional] [default to undefined]
|
|
16
|
+
**courierBoxes** | **number** | courierBoxes | [optional] [default to undefined]
|
|
17
|
+
**scannedData** | **string** | mac | [optional] [default to undefined]
|
|
18
|
+
**dateShipped** | **string** | date | [optional] [default to undefined]
|
|
19
|
+
**requestDate** | **string** | requestDate | [optional] [default to undefined]
|
|
20
|
+
**provId** | **number** | provId | [optional] [default to undefined]
|
|
21
|
+
|
|
22
|
+
## Example
|
|
23
|
+
|
|
24
|
+
```typescript
|
|
25
|
+
import { ShipmentModel } from 'yellowgrid-api-ts';
|
|
26
|
+
|
|
27
|
+
const instance: ShipmentModel = {
|
|
28
|
+
id,
|
|
29
|
+
batchId,
|
|
30
|
+
courier,
|
|
31
|
+
courierService,
|
|
32
|
+
courierServiceDesc,
|
|
33
|
+
courierReference,
|
|
34
|
+
courierTracking,
|
|
35
|
+
courierBoxes,
|
|
36
|
+
scannedData,
|
|
37
|
+
dateShipped,
|
|
38
|
+
requestDate,
|
|
39
|
+
provId,
|
|
40
|
+
};
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
[[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
|
+
# ShipmentRequestDTO
|
|
2
|
+
|
|
3
|
+
Shipment Request
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**courier** | **string** | Courier | [optional] [default to undefined]
|
|
10
|
+
**address** | [**AddressModel**](AddressModel.md) | | [optional] [default to undefined]
|
|
11
|
+
**scannedLines** | **Array<string>** | Scanned Lines | [optional] [default to undefined]
|
|
12
|
+
**service** | **string** | Service | [optional] [default to undefined]
|
|
13
|
+
**shipDate** | **string** | Date Time | [optional] [default to undefined]
|
|
14
|
+
**items** | [**Array<ShipmentItemDTO>**](ShipmentItemDTO.md) | Items | [optional] [default to undefined]
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import { ShipmentRequestDTO } from 'yellowgrid-api-ts';
|
|
20
|
+
|
|
21
|
+
const instance: ShipmentRequestDTO = {
|
|
22
|
+
courier,
|
|
23
|
+
address,
|
|
24
|
+
scannedLines,
|
|
25
|
+
service,
|
|
26
|
+
shipDate,
|
|
27
|
+
items,
|
|
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/ShippingApi.md
CHANGED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# ShippingRequestDTO
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**courier** | **string** | Courier | [optional] [default to undefined]
|
|
9
|
+
**service** | **string** | Courier Service | [optional] [default to undefined]
|
|
10
|
+
**boxes** | **number** | Boxes | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { ShippingRequestDTO } from 'yellowgrid-api-ts';
|
|
16
|
+
|
|
17
|
+
const instance: ShippingRequestDTO = {
|
|
18
|
+
courier,
|
|
19
|
+
service,
|
|
20
|
+
boxes,
|
|
21
|
+
};
|
|
22
|
+
```
|
|
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,37 @@
|
|
|
1
|
+
# SupplierModel
|
|
2
|
+
|
|
3
|
+
Supplier
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**id** | **number** | id | [optional] [default to undefined]
|
|
10
|
+
**name** | **string** | name | [optional] [default to undefined]
|
|
11
|
+
**shortName** | **string** | nameShort | [optional] [default to undefined]
|
|
12
|
+
**email** | **string** | email | [optional] [default to undefined]
|
|
13
|
+
**phone** | **string** | phone | [optional] [default to undefined]
|
|
14
|
+
**defaultCourier** | **string** | defaultCourier | [optional] [default to undefined]
|
|
15
|
+
**defaultCarriage** | **number** | defaultCarriage | [optional] [default to undefined]
|
|
16
|
+
**accountNumber** | **string** | account | [optional] [default to undefined]
|
|
17
|
+
**xeroAccountNumber** | **string** | internalAccount | [optional] [default to undefined]
|
|
18
|
+
|
|
19
|
+
## Example
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import { SupplierModel } from 'yellowgrid-api-ts';
|
|
23
|
+
|
|
24
|
+
const instance: SupplierModel = {
|
|
25
|
+
id,
|
|
26
|
+
name,
|
|
27
|
+
shortName,
|
|
28
|
+
email,
|
|
29
|
+
phone,
|
|
30
|
+
defaultCourier,
|
|
31
|
+
defaultCarriage,
|
|
32
|
+
accountNumber,
|
|
33
|
+
xeroAccountNumber,
|
|
34
|
+
};
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
[[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/SystemApi.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# TelephonySupportTicketModel
|
|
2
2
|
|
|
3
3
|
Telephony Support Ticket
|
|
4
4
|
|
|
@@ -21,9 +21,9 @@ Name | Type | Description | Notes
|
|
|
21
21
|
## Example
|
|
22
22
|
|
|
23
23
|
```typescript
|
|
24
|
-
import {
|
|
24
|
+
import { TelephonySupportTicketModel } from 'yellowgrid-api-ts';
|
|
25
25
|
|
|
26
|
-
const instance:
|
|
26
|
+
const instance: TelephonySupportTicketModel = {
|
|
27
27
|
id,
|
|
28
28
|
status,
|
|
29
29
|
statusId,
|
package/docs/TicketsApi.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# TicketsApi
|
|
2
2
|
|
|
3
|
-
All URIs are relative to *https://
|
|
3
|
+
All URIs are relative to *https://api.yellowgrid.local*
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
@@ -71,7 +71,7 @@ No authorization required
|
|
|
71
71
|
[[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)
|
|
72
72
|
|
|
73
73
|
# **getGetTicket**
|
|
74
|
-
>
|
|
74
|
+
> TelephonySupportTicketModel getGetTicket()
|
|
75
75
|
|
|
76
76
|
Retrieve a telephony support ticket
|
|
77
77
|
|
|
@@ -102,7 +102,7 @@ const { status, data } = await apiInstance.getGetTicket(
|
|
|
102
102
|
|
|
103
103
|
### Return type
|
|
104
104
|
|
|
105
|
-
**
|
|
105
|
+
**TelephonySupportTicketModel**
|
|
106
106
|
|
|
107
107
|
### Authorization
|
|
108
108
|
|
|
@@ -125,7 +125,7 @@ No authorization required
|
|
|
125
125
|
[[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)
|
|
126
126
|
|
|
127
127
|
# **patchCloseTicket**
|
|
128
|
-
>
|
|
128
|
+
> TelephonySupportTicketModel patchCloseTicket()
|
|
129
129
|
|
|
130
130
|
Close a telephony support ticket
|
|
131
131
|
|
|
@@ -156,7 +156,7 @@ const { status, data } = await apiInstance.patchCloseTicket(
|
|
|
156
156
|
|
|
157
157
|
### Return type
|
|
158
158
|
|
|
159
|
-
**
|
|
159
|
+
**TelephonySupportTicketModel**
|
|
160
160
|
|
|
161
161
|
### Authorization
|
|
162
162
|
|
|
@@ -179,7 +179,7 @@ No authorization required
|
|
|
179
179
|
[[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)
|
|
180
180
|
|
|
181
181
|
# **postCreateTicket**
|
|
182
|
-
>
|
|
182
|
+
> TelephonySupportTicketModel postCreateTicket()
|
|
183
183
|
|
|
184
184
|
Create a new telephony support ticket
|
|
185
185
|
|
|
@@ -216,7 +216,7 @@ const { status, data } = await apiInstance.postCreateTicket(
|
|
|
216
216
|
|
|
217
217
|
### Return type
|
|
218
218
|
|
|
219
|
-
**
|
|
219
|
+
**TelephonySupportTicketModel**
|
|
220
220
|
|
|
221
221
|
### Authorization
|
|
222
222
|
|
|
@@ -239,7 +239,7 @@ No authorization required
|
|
|
239
239
|
[[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)
|
|
240
240
|
|
|
241
241
|
# **postTicketReply**
|
|
242
|
-
>
|
|
242
|
+
> TelephonySupportTicketModel postTicketReply()
|
|
243
243
|
|
|
244
244
|
Reply to a telephony support ticket
|
|
245
245
|
|
|
@@ -276,7 +276,7 @@ const { status, data } = await apiInstance.postTicketReply(
|
|
|
276
276
|
|
|
277
277
|
### Return type
|
|
278
278
|
|
|
279
|
-
**
|
|
279
|
+
**TelephonySupportTicketModel**
|
|
280
280
|
|
|
281
281
|
### Authorization
|
|
282
282
|
|
package/docs/WebhooksApi.md
CHANGED
package/getEnums.php
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
<?php
|
|
2
|
-
|
|
3
|
-
use App\Contracts\Enums\PublicEnumInterface;
|
|
4
|
-
|
|
5
|
-
require_once __DIR__."/../../../../vendor/autoload.php";
|
|
6
|
-
|
|
7
|
-
$dir = __DIR__."/models";
|
|
8
|
-
if (!is_dir($dir)) {
|
|
9
|
-
mkdir($dir);
|
|
10
|
-
}
|
|
11
|
-
foreach (\App\Enums\Router\PublicEnumEnum::cases() as $publicEnum) {
|
|
12
|
-
$ref = new ReflectionEnum($publicEnum->value);
|
|
13
|
-
$cases = [];
|
|
14
|
-
foreach ($ref->getCases() as $c) {
|
|
15
|
-
/** @var BackedEnum $enum */
|
|
16
|
-
$enum = $c->getEnum()->getName();
|
|
17
|
-
$value = $c->getBackingValue();
|
|
18
|
-
/** @var PublicEnumInterface $case */
|
|
19
|
-
$case = $enum::from($value);
|
|
20
|
-
$cases[$c->getName()] = [
|
|
21
|
-
"name" => $case->name,
|
|
22
|
-
"value" => $case->value,
|
|
23
|
-
"publicValue" => $case->getPublicValue()
|
|
24
|
-
];
|
|
25
|
-
}
|
|
26
|
-
$enumName = $ref->getShortName();
|
|
27
|
-
$enumString = json_encode($cases, JSON_PRETTY_PRINT);
|
|
28
|
-
$content = "export const $enumName = $enumString as const;".
|
|
29
|
-
"\n\n export type $enumName = typeof $enumName;";
|
|
30
|
-
file_put_contents("$dir/$enumName.ts", $content);
|
|
31
|
-
}
|
|
1
|
+
<?php
|
|
2
|
+
|
|
3
|
+
use App\Contracts\Enums\PublicEnumInterface;
|
|
4
|
+
|
|
5
|
+
require_once __DIR__."/../../../../vendor/autoload.php";
|
|
6
|
+
|
|
7
|
+
$dir = __DIR__."/models";
|
|
8
|
+
if (!is_dir($dir)) {
|
|
9
|
+
mkdir($dir);
|
|
10
|
+
}
|
|
11
|
+
foreach (\App\Enums\Router\PublicEnumEnum::cases() as $publicEnum) {
|
|
12
|
+
$ref = new ReflectionEnum($publicEnum->value);
|
|
13
|
+
$cases = [];
|
|
14
|
+
foreach ($ref->getCases() as $c) {
|
|
15
|
+
/** @var BackedEnum $enum */
|
|
16
|
+
$enum = $c->getEnum()->getName();
|
|
17
|
+
$value = $c->getBackingValue();
|
|
18
|
+
/** @var PublicEnumInterface $case */
|
|
19
|
+
$case = $enum::from($value);
|
|
20
|
+
$cases[$c->getName()] = [
|
|
21
|
+
"name" => $case->name,
|
|
22
|
+
"value" => $case->value,
|
|
23
|
+
"publicValue" => $case->getPublicValue()
|
|
24
|
+
];
|
|
25
|
+
}
|
|
26
|
+
$enumName = $ref->getShortName();
|
|
27
|
+
$enumString = json_encode($cases, JSON_PRETTY_PRINT);
|
|
28
|
+
$content = "export const $enumName = $enumString as const;".
|
|
29
|
+
"\n\n export type $enumName = typeof $enumName;";
|
|
30
|
+
file_put_contents("$dir/$enumName.ts", $content);
|
|
31
|
+
}
|