yellowgrid-api-ts 3.2.63-dev.0 → 3.2.63
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 +235 -249
- package/.openapi-generator/VERSION +1 -1
- package/README.md +21 -37
- package/api.ts +1903 -6604
- package/base.ts +2 -26
- package/common.ts +16 -39
- package/config.json +3 -3
- package/configuration.ts +25 -19
- package/dist/api.d.ts +847 -5479
- package/dist/api.js +1676 -2019
- package/dist/base.d.ts +1 -25
- package/dist/base.js +2 -21
- package/dist/common.d.ts +5 -36
- package/dist/common.js +17 -39
- package/dist/configuration.d.ts +25 -18
- package/dist/configuration.js +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/models/EventStatusEnum.d.ts +18 -0
- package/dist/models/EventStatusEnum.js +20 -0
- package/dist/models/PortStatusEnum.d.ts +18 -0
- package/dist/models/PortStatusEnum.js +20 -0
- package/docs/AccountsApi.md +1 -1
- 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 +56 -1
- package/docs/MyPBXToolsApi.md +1 -1
- package/docs/NumberPortDTO.md +55 -0
- package/docs/NumberPortModel.md +51 -0
- package/docs/NumberPortRangeDTO.md +33 -0
- package/docs/NumberPortRangeRequestDTO.md +27 -0
- package/docs/NumberPortingApi.md +668 -0
- package/docs/NumberPortsModel.md +27 -0
- package/docs/OAuth20Api.md +4 -4
- package/docs/OrdersApi.md +22 -856
- package/docs/PricingApi.md +1 -1
- package/docs/ProductsApi.md +1 -1
- package/docs/ProvisioningApi.md +1 -1
- package/docs/SIPTrunksApi.md +56 -1
- package/docs/SMSApi.md +1 -1
- package/docs/ServicesApi.md +1 -1
- package/docs/ShippingApi.md +1 -1
- package/docs/StockManagementApi.md +1 -1
- package/docs/{TelephonySupportTicketModel.md → SupportTicketModel.md} +3 -3
- package/docs/SystemApi.md +1 -1
- package/docs/TicketsApi.md +9 -9
- package/docs/WebhooksApi.md +1 -1
- package/getEnums.php +31 -31
- package/index.ts +1 -1
- package/models/EventStatusEnum.ts +19 -0
- package/models/PortStatusEnum.ts +19 -0
- package/openapitools.json +1 -1
- package/package.json +2 -2
- package/dist/models/CourierEnum.d.ts +0 -18
- package/dist/models/CourierEnum.js +0 -20
- package/dist/models/PrinterEnum.d.ts +0 -18
- package/dist/models/PrinterEnum.js +0 -20
- package/docs/BatchDTO.md +0 -59
- package/docs/CreditNoteDTO.md +0 -21
- package/docs/CreditNoteEntity.md +0 -29
- package/docs/CreditNoteItemDTO.md +0 -25
- package/docs/CreditNoteItemEntity.md +0 -29
- package/docs/CreditNoteModel.md +0 -29
- package/docs/OrderDetailsDTO.md +0 -63
- package/docs/OrderItemDTO.md +0 -53
- package/docs/OrderedItemModel.md +0 -47
- package/docs/PostAddOrderNoteRequest.md +0 -20
- package/docs/PostSplitOrderRequest.md +0 -20
- package/docs/PrinterEntity.md +0 -29
- package/docs/PutAllocateItemsRequest.md +0 -20
- package/docs/PutAllocateItemsRequestItemsInner.md +0 -22
- package/docs/ShipmentDTO.md +0 -31
- package/docs/ShipmentItemDTO.md +0 -23
- package/docs/ShipmentItemModel.md +0 -29
- package/docs/ShipmentModel.md +0 -43
- package/docs/ShipmentRequestDTO.md +0 -31
- package/docs/ShippingRequestDTO.md +0 -24
- package/docs/SupplierModel.md +0 -37
- package/hs_err_pid58424.log +0 -247
- package/models/CourierEnum.ts +0 -19
- package/models/PrinterEnum.ts +0 -19
package/docs/PricingApi.md
CHANGED
package/docs/ProductsApi.md
CHANGED
package/docs/ProvisioningApi.md
CHANGED
package/docs/SIPTrunksApi.md
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
# SIPTrunksApi
|
|
2
2
|
|
|
3
|
-
All URIs are relative to *https://
|
|
3
|
+
All URIs are relative to *https://bitbucket.org*
|
|
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 | |
|
|
10
11
|
|[**getGetAreaCodes**](#getgetareacodes) | **GET** /sip/trunks/area/codes | Get UK National Area Codes|
|
|
11
12
|
|[**getGetCliFlexibility**](#getgetcliflexibility) | **GET** /sip/trunks/{id}/cli/flexibility | Get SIP Trunk CLI Flexibility Status|
|
|
12
13
|
|[**getGetDdis**](#getgetddis) | **GET** /sip/trunks/{id}/ddis | Get SIP Trunk DDIs|
|
|
@@ -189,6 +190,60 @@ No authorization required
|
|
|
189
190
|
|
|
190
191
|
[[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)
|
|
191
192
|
|
|
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
|
+
|
|
192
247
|
# **getGetAreaCodes**
|
|
193
248
|
> Array<AreaCodeModel> getGetAreaCodes()
|
|
194
249
|
|
package/docs/SMSApi.md
CHANGED
package/docs/ServicesApi.md
CHANGED
package/docs/ShippingApi.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# SupportTicketModel
|
|
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 { SupportTicketModel } from 'yellowgrid-api-ts';
|
|
25
25
|
|
|
26
|
-
const instance:
|
|
26
|
+
const instance: SupportTicketModel = {
|
|
27
27
|
id,
|
|
28
28
|
status,
|
|
29
29
|
statusId,
|
package/docs/SystemApi.md
CHANGED
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://bitbucket.org*
|
|
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
|
+
> SupportTicketModel 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
|
+
**SupportTicketModel**
|
|
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
|
+
> SupportTicketModel 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
|
+
**SupportTicketModel**
|
|
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
|
+
> SupportTicketModel 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
|
+
**SupportTicketModel**
|
|
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
|
+
> SupportTicketModel 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
|
+
**SupportTicketModel**
|
|
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
|
+
}
|
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: `https://bitbucket.org` For questions or technical support, please contact support@yellowgrid.co.uk.
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 0
|
|
8
8
|
*
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export const EventStatusEnum = {
|
|
2
|
+
"ONGOING": {
|
|
3
|
+
"name": "ONGOING",
|
|
4
|
+
"value": 0,
|
|
5
|
+
"publicValue": "Ongoing"
|
|
6
|
+
},
|
|
7
|
+
"RESOLVED": {
|
|
8
|
+
"name": "RESOLVED",
|
|
9
|
+
"value": 1,
|
|
10
|
+
"publicValue": "Resolved"
|
|
11
|
+
},
|
|
12
|
+
"ARCHIVED": {
|
|
13
|
+
"name": "ARCHIVED",
|
|
14
|
+
"value": 2,
|
|
15
|
+
"publicValue": "Archived"
|
|
16
|
+
}
|
|
17
|
+
} as const;
|
|
18
|
+
|
|
19
|
+
export type EventStatusEnum = typeof EventStatusEnum;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export const PortStatusEnum = {
|
|
2
|
+
"DRAFT": {
|
|
3
|
+
"name": "DRAFT",
|
|
4
|
+
"value": 0,
|
|
5
|
+
"publicValue": "Draft"
|
|
6
|
+
},
|
|
7
|
+
"OPEN": {
|
|
8
|
+
"name": "OPEN",
|
|
9
|
+
"value": 1,
|
|
10
|
+
"publicValue": "Open"
|
|
11
|
+
},
|
|
12
|
+
"CLOSED": {
|
|
13
|
+
"name": "CLOSED",
|
|
14
|
+
"value": 2,
|
|
15
|
+
"publicValue": "Closed"
|
|
16
|
+
}
|
|
17
|
+
} as const;
|
|
18
|
+
|
|
19
|
+
export type PortStatusEnum = typeof PortStatusEnum;
|
package/openapitools.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "yellowgrid-api-ts",
|
|
3
|
-
"version": "3.2.63
|
|
3
|
+
"version": "3.2.63",
|
|
4
4
|
"description": "OpenAPI client for yellowgrid-api-ts",
|
|
5
5
|
"author": "OpenAPI-Generator Contributors",
|
|
6
6
|
"repository": {
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"prepare": "npm run build"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"axios": "^1.
|
|
25
|
+
"axios": "^1.13.5"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@types/node": "12.11.5 - 12.20.42",
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export declare const CourierEnum: {
|
|
2
|
-
readonly DPD: {
|
|
3
|
-
readonly name: "DPD";
|
|
4
|
-
readonly value: "DPD";
|
|
5
|
-
readonly publicValue: "DPD";
|
|
6
|
-
};
|
|
7
|
-
readonly CHORLTON: {
|
|
8
|
-
readonly name: "CHORLTON";
|
|
9
|
-
readonly value: "Chorlton Pallet";
|
|
10
|
-
readonly publicValue: "Chorlton Pallet";
|
|
11
|
-
};
|
|
12
|
-
readonly BUILT_IN: {
|
|
13
|
-
readonly name: "BUILT_IN";
|
|
14
|
-
readonly value: "POPS";
|
|
15
|
-
readonly publicValue: "POPS";
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
export type CourierEnum = typeof CourierEnum;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CourierEnum = void 0;
|
|
4
|
-
exports.CourierEnum = {
|
|
5
|
-
"DPD": {
|
|
6
|
-
"name": "DPD",
|
|
7
|
-
"value": "DPD",
|
|
8
|
-
"publicValue": "DPD"
|
|
9
|
-
},
|
|
10
|
-
"CHORLTON": {
|
|
11
|
-
"name": "CHORLTON",
|
|
12
|
-
"value": "Chorlton Pallet",
|
|
13
|
-
"publicValue": "Chorlton Pallet"
|
|
14
|
-
},
|
|
15
|
-
"BUILT_IN": {
|
|
16
|
-
"name": "BUILT_IN",
|
|
17
|
-
"value": "POPS",
|
|
18
|
-
"publicValue": "POPS"
|
|
19
|
-
}
|
|
20
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export declare const PrinterEnum: {
|
|
2
|
-
readonly STORE_ROOM: {
|
|
3
|
-
readonly name: "STORE_ROOM";
|
|
4
|
-
readonly value: 1;
|
|
5
|
-
readonly publicValue: "Store Room";
|
|
6
|
-
};
|
|
7
|
-
readonly PI_DESK: {
|
|
8
|
-
readonly name: "PI_DESK";
|
|
9
|
-
readonly value: 2;
|
|
10
|
-
readonly publicValue: "Raspberry Pi Desk";
|
|
11
|
-
};
|
|
12
|
-
readonly SPARE: {
|
|
13
|
-
readonly name: "SPARE";
|
|
14
|
-
readonly value: 3;
|
|
15
|
-
readonly publicValue: "Spare";
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
export type PrinterEnum = typeof PrinterEnum;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PrinterEnum = void 0;
|
|
4
|
-
exports.PrinterEnum = {
|
|
5
|
-
"STORE_ROOM": {
|
|
6
|
-
"name": "STORE_ROOM",
|
|
7
|
-
"value": 1,
|
|
8
|
-
"publicValue": "Store Room"
|
|
9
|
-
},
|
|
10
|
-
"PI_DESK": {
|
|
11
|
-
"name": "PI_DESK",
|
|
12
|
-
"value": 2,
|
|
13
|
-
"publicValue": "Raspberry Pi Desk"
|
|
14
|
-
},
|
|
15
|
-
"SPARE": {
|
|
16
|
-
"name": "SPARE",
|
|
17
|
-
"value": 3,
|
|
18
|
-
"publicValue": "Spare"
|
|
19
|
-
}
|
|
20
|
-
};
|
package/docs/BatchDTO.md
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
# BatchDTO
|
|
2
|
-
|
|
3
|
-
Batch DTO
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type | Description | Notes
|
|
8
|
-
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**id** | **number** | id | [optional] [default to undefined]
|
|
10
|
-
**orderId** | **number** | orderId | [optional] [default to undefined]
|
|
11
|
-
**supplierId** | **number** | supplierId | [optional] [default to undefined]
|
|
12
|
-
**poNumber** | **string** | poNumber | [optional] [default to undefined]
|
|
13
|
-
**carriage** | **number** | carriage | [optional] [default to undefined]
|
|
14
|
-
**courier** | **string** | courier | [optional] [default to undefined]
|
|
15
|
-
**courierService** | **string** | courierService | [optional] [default to undefined]
|
|
16
|
-
**courierReference** | **string** | courierReference | [optional] [default to undefined]
|
|
17
|
-
**courierUnique** | **string** | courierUnique | [optional] [default to undefined]
|
|
18
|
-
**notes** | **string** | notes | [optional] [default to undefined]
|
|
19
|
-
**ordered** | **number** | ordered | [optional] [default to undefined]
|
|
20
|
-
**carriagePaid** | **number** | carriagePaid | [optional] [default to undefined]
|
|
21
|
-
**carriageRefunded** | **number** | carriageRefunded | [optional] [default to undefined]
|
|
22
|
-
**carriageRefundedDue** | **number** | carriageRefundedDue | [optional] [default to undefined]
|
|
23
|
-
**netdespatchLabel** | **string** | netdespatchLabel | [optional] [default to undefined]
|
|
24
|
-
**courierBoxes** | **number** | courierBoxes | [optional] [default to undefined]
|
|
25
|
-
**mac** | **string** | mac | [optional] [default to undefined]
|
|
26
|
-
**shipments** | [**Array<ShipmentDTO>**](ShipmentDTO.md) | Shipments | [optional] [default to undefined]
|
|
27
|
-
**items** | [**Array<OrderedItemModel>**](OrderedItemModel.md) | Items | [optional] [default to undefined]
|
|
28
|
-
**supplier** | [**SupplierModel**](SupplierModel.md) | | [optional] [default to undefined]
|
|
29
|
-
|
|
30
|
-
## Example
|
|
31
|
-
|
|
32
|
-
```typescript
|
|
33
|
-
import { BatchDTO } from 'yellowgrid-api-ts';
|
|
34
|
-
|
|
35
|
-
const instance: BatchDTO = {
|
|
36
|
-
id,
|
|
37
|
-
orderId,
|
|
38
|
-
supplierId,
|
|
39
|
-
poNumber,
|
|
40
|
-
carriage,
|
|
41
|
-
courier,
|
|
42
|
-
courierService,
|
|
43
|
-
courierReference,
|
|
44
|
-
courierUnique,
|
|
45
|
-
notes,
|
|
46
|
-
ordered,
|
|
47
|
-
carriagePaid,
|
|
48
|
-
carriageRefunded,
|
|
49
|
-
carriageRefundedDue,
|
|
50
|
-
netdespatchLabel,
|
|
51
|
-
courierBoxes,
|
|
52
|
-
mac,
|
|
53
|
-
shipments,
|
|
54
|
-
items,
|
|
55
|
-
supplier,
|
|
56
|
-
};
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
[[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/CreditNoteDTO.md
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
# CreditNoteDTO
|
|
2
|
-
|
|
3
|
-
Credit Note
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type | Description | Notes
|
|
8
|
-
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**items** | [**Array<CreditNoteItemDTO>**](CreditNoteItemDTO.md) | Items | [optional] [default to undefined]
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
import { CreditNoteDTO } from 'yellowgrid-api-ts';
|
|
15
|
-
|
|
16
|
-
const instance: CreditNoteDTO = {
|
|
17
|
-
items,
|
|
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)
|
package/docs/CreditNoteEntity.md
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
# CreditNoteEntity
|
|
2
|
-
|
|
3
|
-
CreditNotesEntity
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type | Description | Notes
|
|
8
|
-
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**id** | **number** | id | [optional] [default to undefined]
|
|
10
|
-
**orderId** | **number** | orderId | [optional] [default to undefined]
|
|
11
|
-
**transactionId** | **string** | transactionId | [optional] [default to undefined]
|
|
12
|
-
**amount** | **number** | amount | [optional] [default to undefined]
|
|
13
|
-
**timestamp** | **string** | timestamp | [optional] [default to undefined]
|
|
14
|
-
|
|
15
|
-
## Example
|
|
16
|
-
|
|
17
|
-
```typescript
|
|
18
|
-
import { CreditNoteEntity } from 'yellowgrid-api-ts';
|
|
19
|
-
|
|
20
|
-
const instance: CreditNoteEntity = {
|
|
21
|
-
id,
|
|
22
|
-
orderId,
|
|
23
|
-
transactionId,
|
|
24
|
-
amount,
|
|
25
|
-
timestamp,
|
|
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)
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
# CreditNoteItemDTO
|
|
2
|
-
|
|
3
|
-
Credit Note 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
|
-
**amount** | **number** | Amount | [optional] [default to undefined]
|
|
12
|
-
|
|
13
|
-
## Example
|
|
14
|
-
|
|
15
|
-
```typescript
|
|
16
|
-
import { CreditNoteItemDTO } from 'yellowgrid-api-ts';
|
|
17
|
-
|
|
18
|
-
const instance: CreditNoteItemDTO = {
|
|
19
|
-
itemId,
|
|
20
|
-
quantity,
|
|
21
|
-
amount,
|
|
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)
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
# CreditNoteItemEntity
|
|
2
|
-
|
|
3
|
-
CreditNotesItemsEntity
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type | Description | Notes
|
|
8
|
-
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**id** | **number** | id | [optional] [default to undefined]
|
|
10
|
-
**creditNoteId** | **number** | creditNoteId | [optional] [default to undefined]
|
|
11
|
-
**orderId** | **number** | orderId | [optional] [default to undefined]
|
|
12
|
-
**itemId** | **number** | itemId | [optional] [default to undefined]
|
|
13
|
-
**amount** | **number** | amount | [optional] [default to undefined]
|
|
14
|
-
|
|
15
|
-
## Example
|
|
16
|
-
|
|
17
|
-
```typescript
|
|
18
|
-
import { CreditNoteItemEntity } from 'yellowgrid-api-ts';
|
|
19
|
-
|
|
20
|
-
const instance: CreditNoteItemEntity = {
|
|
21
|
-
id,
|
|
22
|
-
creditNoteId,
|
|
23
|
-
orderId,
|
|
24
|
-
itemId,
|
|
25
|
-
amount,
|
|
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)
|