yellowgrid-api-ts 3.2.99-dev.0 → 3.2.100
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 +267 -261
- package/.openapi-generator/VERSION +1 -1
- package/README.md +18 -2
- package/api.ts +1386 -4830
- 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 +632 -4425
- package/dist/api.js +1324 -491
- 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/ScheduledTaskEnum.d.ts +33 -0
- package/dist/models/ScheduledTaskEnum.js +35 -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 +348 -5
- package/docs/Class3CXIntegrationsApi.md +1 -1
- package/docs/Class3CXMultiTenantApi.md +1 -1
- package/docs/InstallationDetailsDTO.md +39 -0
- package/docs/MyPBXToolsApi.md +1 -1
- package/docs/NumberPortingApi.md +1 -1
- package/docs/OAuth20Api.md +1 -1
- package/docs/OrdersApi.md +122 -2
- package/docs/PricingApi.md +1 -1
- package/docs/ProductSummaryDTO.md +2 -0
- package/docs/ProductsApi.md +1 -1
- package/docs/ProspectDTO.md +33 -0
- package/docs/ProspectEntity.md +41 -0
- package/docs/ProspectsApi.md +226 -0
- package/docs/ProvisioningApi.md +1 -1
- package/docs/RemoteStorageDTO.md +27 -0
- package/docs/SIPTrunksApi.md +1 -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/SystemApi.md +1 -1
- package/docs/TcxSbcDTO.md +2 -0
- package/docs/TcxSbcResponseDTO.md +23 -0
- package/docs/TicketsApi.md +1 -1
- package/docs/WebhooksApi.md +1 -1
- package/getEnums.php +31 -31
- package/index.ts +1 -1
- package/models/ScheduledTaskEnum.ts +34 -0
- package/openapitools.json +1 -1
- package/package.json +2 -2
- package/docs/NumberPortModel.md +0 -51
- package/docs/TcxInstallationDetailsModel.md +0 -45
- package/docs/TelephonySupportTicketModel.md +0 -41
- package/hs_err_pid16044.log +0 -249
- package/hs_err_pid44560.log +0 -249
- package/hs_err_pid53988.log +0 -249
- package/hs_err_pid58728.log +0 -40
package/docs/ProductsApi.md
CHANGED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# ProspectDTO
|
|
2
|
+
|
|
3
|
+
Prospect
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**companyName** | **string** | Company Name | [optional] [default to undefined]
|
|
10
|
+
**telephone** | **string** | Telephone | [optional] [default to undefined]
|
|
11
|
+
**lastOrderDate** | **string** | Date Time | [optional] [default to undefined]
|
|
12
|
+
**callbackDate** | **string** | Date Time | [optional] [default to undefined]
|
|
13
|
+
**xeroId** | **string** | Xero ID | [optional] [default to undefined]
|
|
14
|
+
**removed** | **boolean** | Removed From Prospects | [optional] [default to undefined]
|
|
15
|
+
**status** | **string** | Status | [optional] [default to undefined]
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import { ProspectDTO } from 'yellowgrid-api-ts';
|
|
21
|
+
|
|
22
|
+
const instance: ProspectDTO = {
|
|
23
|
+
companyName,
|
|
24
|
+
telephone,
|
|
25
|
+
lastOrderDate,
|
|
26
|
+
callbackDate,
|
|
27
|
+
xeroId,
|
|
28
|
+
removed,
|
|
29
|
+
status,
|
|
30
|
+
};
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
[[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,41 @@
|
|
|
1
|
+
# ProspectEntity
|
|
2
|
+
|
|
3
|
+
ProspectEntity
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**id** | **number** | id | [optional] [default to undefined]
|
|
10
|
+
**status** | **number** | status | [optional] [default to undefined]
|
|
11
|
+
**customerId** | **number** | customerId | [optional] [default to undefined]
|
|
12
|
+
**companyName** | **string** | companyName | [optional] [default to undefined]
|
|
13
|
+
**contactName** | **string** | contactName | [optional] [default to undefined]
|
|
14
|
+
**telephone** | **string** | telephone | [optional] [default to undefined]
|
|
15
|
+
**email** | **string** | email | [optional] [default to undefined]
|
|
16
|
+
**reason** | **string** | reason | [optional] [default to undefined]
|
|
17
|
+
**lastOrderDate** | **string** | lastOrderDate | [optional] [default to undefined]
|
|
18
|
+
**followUpDate** | **string** | followUpDate | [optional] [default to undefined]
|
|
19
|
+
**notes** | **string** | notes | [optional] [default to undefined]
|
|
20
|
+
|
|
21
|
+
## Example
|
|
22
|
+
|
|
23
|
+
```typescript
|
|
24
|
+
import { ProspectEntity } from 'yellowgrid-api-ts';
|
|
25
|
+
|
|
26
|
+
const instance: ProspectEntity = {
|
|
27
|
+
id,
|
|
28
|
+
status,
|
|
29
|
+
customerId,
|
|
30
|
+
companyName,
|
|
31
|
+
contactName,
|
|
32
|
+
telephone,
|
|
33
|
+
email,
|
|
34
|
+
reason,
|
|
35
|
+
lastOrderDate,
|
|
36
|
+
followUpDate,
|
|
37
|
+
notes,
|
|
38
|
+
};
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
[[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,226 @@
|
|
|
1
|
+
# ProspectsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://bitbucket.org*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**getGetProspect**](#getgetprospect) | **GET** /accounts/prospects/{xero_id} | Get Prospect|
|
|
8
|
+
|[**getGetProspects**](#getgetprospects) | **GET** /accounts/prospects | Get Prospects|
|
|
9
|
+
|[**getRemoveFromProspects**](#getremovefromprospects) | **GET** /accounts/prospects/{xero_id}/remove | Remove From Prospects|
|
|
10
|
+
|[**getSetCallback**](#getsetcallback) | **GET** /accounts/prospects/{xero_id}/date | Set Call Back Date|
|
|
11
|
+
|
|
12
|
+
# **getGetProspect**
|
|
13
|
+
> ProspectDTO getGetProspect()
|
|
14
|
+
|
|
15
|
+
Get Prospect
|
|
16
|
+
|
|
17
|
+
### Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import {
|
|
21
|
+
ProspectsApi,
|
|
22
|
+
Configuration
|
|
23
|
+
} from 'yellowgrid-api-ts';
|
|
24
|
+
|
|
25
|
+
const configuration = new Configuration();
|
|
26
|
+
const apiInstance = new ProspectsApi(configuration);
|
|
27
|
+
|
|
28
|
+
let xeroId: string; //Xero ID (default to undefined)
|
|
29
|
+
|
|
30
|
+
const { status, data } = await apiInstance.getGetProspect(
|
|
31
|
+
xeroId
|
|
32
|
+
);
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### Parameters
|
|
36
|
+
|
|
37
|
+
|Name | Type | Description | Notes|
|
|
38
|
+
|------------- | ------------- | ------------- | -------------|
|
|
39
|
+
| **xeroId** | [**string**] | Xero ID | defaults to undefined|
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
### Return type
|
|
43
|
+
|
|
44
|
+
**ProspectDTO**
|
|
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** | Prospect | - |
|
|
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
|
+
# **getGetProspects**
|
|
67
|
+
> Array<ProspectDTO> getGetProspects()
|
|
68
|
+
|
|
69
|
+
Get Prospects
|
|
70
|
+
|
|
71
|
+
### Example
|
|
72
|
+
|
|
73
|
+
```typescript
|
|
74
|
+
import {
|
|
75
|
+
ProspectsApi,
|
|
76
|
+
Configuration
|
|
77
|
+
} from 'yellowgrid-api-ts';
|
|
78
|
+
|
|
79
|
+
const configuration = new Configuration();
|
|
80
|
+
const apiInstance = new ProspectsApi(configuration);
|
|
81
|
+
|
|
82
|
+
const { status, data } = await apiInstance.getGetProspects();
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
### Parameters
|
|
86
|
+
This endpoint does not have any parameters.
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
### Return type
|
|
90
|
+
|
|
91
|
+
**Array<ProspectDTO>**
|
|
92
|
+
|
|
93
|
+
### Authorization
|
|
94
|
+
|
|
95
|
+
No authorization required
|
|
96
|
+
|
|
97
|
+
### HTTP request headers
|
|
98
|
+
|
|
99
|
+
- **Content-Type**: Not defined
|
|
100
|
+
- **Accept**: application/json
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
### HTTP response details
|
|
104
|
+
| Status code | Description | Response headers |
|
|
105
|
+
|-------------|-------------|------------------|
|
|
106
|
+
|**200** | Prospects | - |
|
|
107
|
+
|**400** | Bad Request | - |
|
|
108
|
+
|**401** | Unauthorised | - |
|
|
109
|
+
|**403** | Access Denied | - |
|
|
110
|
+
|
|
111
|
+
[[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)
|
|
112
|
+
|
|
113
|
+
# **getRemoveFromProspects**
|
|
114
|
+
> ProspectDTO getRemoveFromProspects()
|
|
115
|
+
|
|
116
|
+
Remove From Prospect
|
|
117
|
+
|
|
118
|
+
### Example
|
|
119
|
+
|
|
120
|
+
```typescript
|
|
121
|
+
import {
|
|
122
|
+
ProspectsApi,
|
|
123
|
+
Configuration
|
|
124
|
+
} from 'yellowgrid-api-ts';
|
|
125
|
+
|
|
126
|
+
const configuration = new Configuration();
|
|
127
|
+
const apiInstance = new ProspectsApi(configuration);
|
|
128
|
+
|
|
129
|
+
let xeroId: string; //Xero ID (default to undefined)
|
|
130
|
+
let status: boolean; //Status (default to undefined)
|
|
131
|
+
|
|
132
|
+
const { status, data } = await apiInstance.getRemoveFromProspects(
|
|
133
|
+
xeroId,
|
|
134
|
+
status
|
|
135
|
+
);
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
### Parameters
|
|
139
|
+
|
|
140
|
+
|Name | Type | Description | Notes|
|
|
141
|
+
|------------- | ------------- | ------------- | -------------|
|
|
142
|
+
| **xeroId** | [**string**] | Xero ID | defaults to undefined|
|
|
143
|
+
| **status** | [**boolean**] | Status | defaults to undefined|
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
### Return type
|
|
147
|
+
|
|
148
|
+
**ProspectDTO**
|
|
149
|
+
|
|
150
|
+
### Authorization
|
|
151
|
+
|
|
152
|
+
No authorization required
|
|
153
|
+
|
|
154
|
+
### HTTP request headers
|
|
155
|
+
|
|
156
|
+
- **Content-Type**: Not defined
|
|
157
|
+
- **Accept**: application/json
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
### HTTP response details
|
|
161
|
+
| Status code | Description | Response headers |
|
|
162
|
+
|-------------|-------------|------------------|
|
|
163
|
+
|**200** | Prospect | - |
|
|
164
|
+
|**400** | Bad Request | - |
|
|
165
|
+
|**401** | Unauthorised | - |
|
|
166
|
+
|**403** | Access Denied | - |
|
|
167
|
+
|
|
168
|
+
[[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)
|
|
169
|
+
|
|
170
|
+
# **getSetCallback**
|
|
171
|
+
> ProspectDTO getSetCallback()
|
|
172
|
+
|
|
173
|
+
Set Call Back Date
|
|
174
|
+
|
|
175
|
+
### Example
|
|
176
|
+
|
|
177
|
+
```typescript
|
|
178
|
+
import {
|
|
179
|
+
ProspectsApi,
|
|
180
|
+
Configuration
|
|
181
|
+
} from 'yellowgrid-api-ts';
|
|
182
|
+
|
|
183
|
+
const configuration = new Configuration();
|
|
184
|
+
const apiInstance = new ProspectsApi(configuration);
|
|
185
|
+
|
|
186
|
+
let xeroId: string; //Xero ID (default to undefined)
|
|
187
|
+
let date: string; //Callback Date (default to undefined)
|
|
188
|
+
|
|
189
|
+
const { status, data } = await apiInstance.getSetCallback(
|
|
190
|
+
xeroId,
|
|
191
|
+
date
|
|
192
|
+
);
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
### Parameters
|
|
196
|
+
|
|
197
|
+
|Name | Type | Description | Notes|
|
|
198
|
+
|------------- | ------------- | ------------- | -------------|
|
|
199
|
+
| **xeroId** | [**string**] | Xero ID | defaults to undefined|
|
|
200
|
+
| **date** | [**string**] | Callback Date | defaults to undefined|
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
### Return type
|
|
204
|
+
|
|
205
|
+
**ProspectDTO**
|
|
206
|
+
|
|
207
|
+
### Authorization
|
|
208
|
+
|
|
209
|
+
No authorization required
|
|
210
|
+
|
|
211
|
+
### HTTP request headers
|
|
212
|
+
|
|
213
|
+
- **Content-Type**: Not defined
|
|
214
|
+
- **Accept**: application/json
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
### HTTP response details
|
|
218
|
+
| Status code | Description | Response headers |
|
|
219
|
+
|-------------|-------------|------------------|
|
|
220
|
+
|**200** | Prospect | - |
|
|
221
|
+
|**400** | Bad Request | - |
|
|
222
|
+
|**401** | Unauthorised | - |
|
|
223
|
+
|**403** | Access Denied | - |
|
|
224
|
+
|
|
225
|
+
[[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)
|
|
226
|
+
|
package/docs/ProvisioningApi.md
CHANGED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# RemoteStorageDTO
|
|
2
|
+
|
|
3
|
+
Remote Storage
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**id** | **string** | AWS ID | [optional] [default to undefined]
|
|
10
|
+
**secret** | **string** | AWS Secret | [optional] [default to undefined]
|
|
11
|
+
**name** | **string** | AWS Bucket Name | [optional] [default to undefined]
|
|
12
|
+
**region** | **string** | AWS Region | [optional] [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { RemoteStorageDTO } from 'yellowgrid-api-ts';
|
|
18
|
+
|
|
19
|
+
const instance: RemoteStorageDTO = {
|
|
20
|
+
id,
|
|
21
|
+
secret,
|
|
22
|
+
name,
|
|
23
|
+
region,
|
|
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/SIPTrunksApi.md
CHANGED
package/docs/SMSApi.md
CHANGED
package/docs/ServicesApi.md
CHANGED
package/docs/ShippingApi.md
CHANGED
package/docs/SystemApi.md
CHANGED
package/docs/TcxSbcDTO.md
CHANGED
|
@@ -13,6 +13,7 @@ Name | Type | Description | Notes
|
|
|
13
13
|
**dns** | **string** | DNS | [optional] [default to undefined]
|
|
14
14
|
**tcxUrl** | **string** | 3CX URL | [optional] [default to undefined]
|
|
15
15
|
**tcxKey** | **string** | 3CX SBC Key | [optional] [default to undefined]
|
|
16
|
+
**configured** | **boolean** | 3CX SBC Configured | [optional] [default to undefined]
|
|
16
17
|
|
|
17
18
|
## Example
|
|
18
19
|
|
|
@@ -27,6 +28,7 @@ const instance: TcxSbcDTO = {
|
|
|
27
28
|
dns,
|
|
28
29
|
tcxUrl,
|
|
29
30
|
tcxKey,
|
|
31
|
+
configured,
|
|
30
32
|
};
|
|
31
33
|
```
|
|
32
34
|
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# TcxSbcResponseDTO
|
|
2
|
+
|
|
3
|
+
3CX SBC Response
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**status** | **string** | Status | [optional] [default to undefined]
|
|
10
|
+
**message** | **string** | Message | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { TcxSbcResponseDTO } from 'yellowgrid-api-ts';
|
|
16
|
+
|
|
17
|
+
const instance: TcxSbcResponseDTO = {
|
|
18
|
+
status,
|
|
19
|
+
message,
|
|
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)
|
package/docs/TicketsApi.md
CHANGED
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,34 @@
|
|
|
1
|
+
export const ScheduledTaskEnum = {
|
|
2
|
+
"SUSPEND_INSTANCE": {
|
|
3
|
+
"name": "SUSPEND_INSTANCE",
|
|
4
|
+
"value": "Suspend",
|
|
5
|
+
"publicValue": "Suspend"
|
|
6
|
+
},
|
|
7
|
+
"RESIZE_INSTANCE": {
|
|
8
|
+
"name": "RESIZE_INSTANCE",
|
|
9
|
+
"value": "Resize",
|
|
10
|
+
"publicValue": "Resize"
|
|
11
|
+
},
|
|
12
|
+
"EXTEND_DISK": {
|
|
13
|
+
"name": "EXTEND_DISK",
|
|
14
|
+
"value": "Extend Disk",
|
|
15
|
+
"publicValue": "Extend Disk"
|
|
16
|
+
},
|
|
17
|
+
"TCX_UPGRADE_DEBIAN": {
|
|
18
|
+
"name": "TCX_UPGRADE_DEBIAN",
|
|
19
|
+
"value": "Upgrade Debian",
|
|
20
|
+
"publicValue": "Upgrade Debian"
|
|
21
|
+
},
|
|
22
|
+
"TCX_RESTART_SERVICES": {
|
|
23
|
+
"name": "TCX_RESTART_SERVICES",
|
|
24
|
+
"value": "Restart Services",
|
|
25
|
+
"publicValue": "Restart Services"
|
|
26
|
+
},
|
|
27
|
+
"REBOOT": {
|
|
28
|
+
"name": "REBOOT",
|
|
29
|
+
"value": "Reboot",
|
|
30
|
+
"publicValue": "Reboot"
|
|
31
|
+
}
|
|
32
|
+
} as const;
|
|
33
|
+
|
|
34
|
+
export type ScheduledTaskEnum = typeof ScheduledTaskEnum;
|
package/openapitools.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "yellowgrid-api-ts",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.100",
|
|
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",
|
package/docs/NumberPortModel.md
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
# NumberPortModel
|
|
2
|
-
|
|
3
|
-
Number Port Model
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type | Description | Notes
|
|
8
|
-
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**id** | **number** | Number Port ID | [optional] [default to undefined]
|
|
10
|
-
**customerId** | **number** | Customer ID | [optional] [default to undefined]
|
|
11
|
-
**endUser** | **string** | End User | [optional] [default to undefined]
|
|
12
|
-
**addressLine1** | **string** | Address Line 1 | [optional] [default to undefined]
|
|
13
|
-
**addressLine2** | **string** | Address Line 2 | [optional] [default to undefined]
|
|
14
|
-
**city** | **string** | City | [optional] [default to undefined]
|
|
15
|
-
**postCode** | **string** | Post Code | [optional] [default to undefined]
|
|
16
|
-
**trunkId** | **number** | Trunk ID | [optional] [default to undefined]
|
|
17
|
-
**tenantId** | **string** | Tenant ID | [optional] [default to undefined]
|
|
18
|
-
**requestedPortDate** | **string** | Requested Port Date | [optional] [default to undefined]
|
|
19
|
-
**portDate** | **string** | Port Date | [optional] [default to undefined]
|
|
20
|
-
**comment** | **string** | Comment | [optional] [default to undefined]
|
|
21
|
-
**status** | **number** | Status | [optional] [default to undefined]
|
|
22
|
-
**ticketId** | **number** | Ticket ID | [optional] [default to undefined]
|
|
23
|
-
**ranges** | **Array<any>** | Number Port Ranges | [optional] [default to undefined]
|
|
24
|
-
**customerName** | **string** | Customer Company Name | [optional] [default to undefined]
|
|
25
|
-
|
|
26
|
-
## Example
|
|
27
|
-
|
|
28
|
-
```typescript
|
|
29
|
-
import { NumberPortModel } from 'yellowgrid-api-ts';
|
|
30
|
-
|
|
31
|
-
const instance: NumberPortModel = {
|
|
32
|
-
id,
|
|
33
|
-
customerId,
|
|
34
|
-
endUser,
|
|
35
|
-
addressLine1,
|
|
36
|
-
addressLine2,
|
|
37
|
-
city,
|
|
38
|
-
postCode,
|
|
39
|
-
trunkId,
|
|
40
|
-
tenantId,
|
|
41
|
-
requestedPortDate,
|
|
42
|
-
portDate,
|
|
43
|
-
comment,
|
|
44
|
-
status,
|
|
45
|
-
ticketId,
|
|
46
|
-
ranges,
|
|
47
|
-
customerName,
|
|
48
|
-
};
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|