yellowgrid-api-ts 3.2.170-dev.0 → 3.2.170

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.
Files changed (97) hide show
  1. package/.openapi-generator/FILES +293 -270
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +56 -3
  4. package/api.ts +3432 -5391
  5. package/base.ts +2 -26
  6. package/common.ts +16 -39
  7. package/config.json +3 -3
  8. package/configuration.ts +27 -21
  9. package/dist/api.d.ts +1541 -4530
  10. package/dist/api.js +3356 -1030
  11. package/dist/base.d.ts +1 -25
  12. package/dist/base.js +2 -21
  13. package/dist/common.d.ts +5 -36
  14. package/dist/common.js +17 -39
  15. package/dist/configuration.d.ts +25 -18
  16. package/dist/configuration.js +4 -4
  17. package/dist/index.d.ts +1 -1
  18. package/dist/index.js +1 -1
  19. package/dist/models/CourierEnum.d.ts +5 -0
  20. package/dist/models/CourierEnum.js +5 -0
  21. package/docs/AbstractOrderRequestDTO.md +1 -1
  22. package/docs/AccountAddressesDTO.md +25 -0
  23. package/docs/AccountFinanceDTO.md +39 -0
  24. package/docs/AccountsApi.md +1486 -54
  25. package/docs/AddressDTO.md +31 -0
  26. package/docs/AdminOrderRequestDTO.md +1 -1
  27. package/docs/AdminUserModel.md +2 -0
  28. package/docs/BillingApi.md +66 -1
  29. package/docs/CRMApi.md +121 -1
  30. package/docs/Class3CXApi.md +49 -1
  31. package/docs/Class3CXInstallationWizardApi.md +1 -1
  32. package/docs/Class3CXInstallationsApi.md +56 -1
  33. package/docs/Class3CXIntegrationsApi.md +1 -1
  34. package/docs/Class3CXMultiTenantApi.md +1 -1
  35. package/docs/{PostAddAdminNoteRequest.md → CreateCrmNoteBody.md} +3 -3
  36. package/docs/CreditAccountEntity.md +4 -0
  37. package/docs/CrmActivitiesResponseDTO.md +23 -0
  38. package/docs/CrmActivityDTO.md +33 -0
  39. package/docs/CrmDateActivitiesDTO.md +23 -0
  40. package/docs/CrmNoteEntity.md +39 -0
  41. package/docs/CrmNoteModel.md +39 -0
  42. package/docs/CustomerListAccountDTO.md +45 -0
  43. package/docs/CustomerOrderRequestDTO.md +1 -1
  44. package/docs/DetailedOrderRequestDTO.md +1 -1
  45. package/docs/MyPBXToolsApi.md +1 -1
  46. package/docs/NumberPortAdminNoteBody.md +20 -0
  47. package/docs/NumberPortingApi.md +6 -6
  48. package/docs/OAuth20Api.md +49 -1
  49. package/docs/OrdersApi.md +1 -1
  50. package/docs/PartnerDTO.md +41 -0
  51. package/docs/{PatchSetTcxWizardCnameRequest.md → PatchUpdateAccountCnameRequest.md} +3 -3
  52. package/docs/PatchUpdateAccountCompanyNumberRequest.md +20 -0
  53. package/docs/PatchUpdateAccountPhoneRequest.md +20 -0
  54. package/docs/PatchUpdateAccountVatNumberRequest.md +20 -0
  55. package/docs/PatchUpdateCreditLimitRequest.md +20 -0
  56. package/docs/PatchUpdatePriceListRequest.md +20 -0
  57. package/docs/PatchUpdateSipChannelCostRequest.md +20 -0
  58. package/docs/PatchUpdateTcxHostingPriceListRequest.md +20 -0
  59. package/docs/PatchUpdateTcxPartnerIdRequest.md +20 -0
  60. package/docs/PortalAccountModel.md +4 -2
  61. package/docs/PostSendWelcomeEmailRequest.md +20 -0
  62. package/docs/PricingApi.md +1 -1
  63. package/docs/ProductSummaryDTO.md +2 -2
  64. package/docs/ProductsApi.md +1 -1
  65. package/docs/ProspectDTO.md +4 -2
  66. package/docs/ProspectsApi.md +1 -1
  67. package/docs/ProvisioningApi.md +1 -1
  68. package/docs/PutTransferConnectionRequest.md +20 -0
  69. package/docs/RecordingBackupAzureModel.md +2 -0
  70. package/docs/RecordingsBackupInfoDTO.md +2 -2
  71. package/docs/SIPTrunksApi.md +1 -1
  72. package/docs/SMSApi.md +1 -1
  73. package/docs/ServicesApi.md +1 -1
  74. package/docs/ShipmentRequestDTO.md +2 -2
  75. package/docs/ShippingApi.md +1 -1
  76. package/docs/StockManagementApi.md +1 -1
  77. package/docs/SystemApi.md +1 -1
  78. package/docs/TableHistoryEntity.md +35 -0
  79. package/docs/TcxKeySummaryDTO.md +1 -1
  80. package/docs/TicketsApi.md +1 -1
  81. package/docs/WebhooksApi.md +1 -1
  82. package/getEnums.php +31 -31
  83. package/index.ts +1 -1
  84. package/models/CourierEnum.ts +5 -0
  85. package/openapitools.json +1 -1
  86. package/package.json +2 -2
  87. package/dist/models/GroupEnum.d.ts +0 -43
  88. package/dist/models/GroupEnum.js +0 -45
  89. package/docs/NumberPortModel.md +0 -51
  90. package/docs/PostGetProductRequest.md +0 -24
  91. package/docs/TcxInstallationDetailsModel.md +0 -45
  92. package/docs/TelephonySupportTicketModel.md +0 -41
  93. package/hs_err_pid16044.log +0 -249
  94. package/hs_err_pid44560.log +0 -249
  95. package/hs_err_pid53988.log +0 -249
  96. package/hs_err_pid58728.log +0 -40
  97. package/models/GroupEnum.ts +0 -44
@@ -0,0 +1,35 @@
1
+ # TableHistoryEntity
2
+
3
+ TableAttribsEntity
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **ownerId** | **string** | ownerId | [optional] [default to undefined]
10
+ **dbTable** | **string** | table | [optional] [default to undefined]
11
+ **orderingField** | **string** | orderingField | [optional] [default to undefined]
12
+ **asc** | **number** | asc | [optional] [default to undefined]
13
+ **perPage** | **number** | perPage | [optional] [default to undefined]
14
+ **currPage** | **number** | currPage | [optional] [default to undefined]
15
+ **filter** | **string** | filter | [optional] [default to undefined]
16
+ **page** | **number** | page | [optional] [default to undefined]
17
+
18
+ ## Example
19
+
20
+ ```typescript
21
+ import { TableHistoryEntity } from 'yellowgrid-api-ts';
22
+
23
+ const instance: TableHistoryEntity = {
24
+ ownerId,
25
+ dbTable,
26
+ orderingField,
27
+ asc,
28
+ perPage,
29
+ currPage,
30
+ filter,
31
+ page,
32
+ };
33
+ ```
34
+
35
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
10
10
  **endUser** | **string** | End User | [optional] [default to undefined]
11
11
  **sc** | **number** | Simultaneous Calls | [optional] [default to undefined]
12
12
  **edition** | **string** | Edition | [optional] [default to undefined]
13
- **expiry** | **string** | Date Time | [optional] [default to undefined]
13
+ **expiry** | **string** | Expiry Date | [optional] [default to undefined]
14
14
 
15
15
  ## Example
16
16
 
@@ -1,6 +1,6 @@
1
1
  # TicketsApi
2
2
 
3
- All URIs are relative to *https://api.local.yellowgrid.co.uk*
3
+ All URIs are relative to *https://bitbucket.org*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
@@ -1,6 +1,6 @@
1
1
  # WebhooksApi
2
2
 
3
- All URIs are relative to *https://api.local.yellowgrid.co.uk*
3
+ All URIs are relative to *https://bitbucket.org*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
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. 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://api.local.yellowgrid.co.uk` For questions or technical support, please contact support@yellowgrid.co.uk.
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
  *
@@ -13,6 +13,11 @@ export const CourierEnum = {
13
13
  "name": "BUILT_IN",
14
14
  "value": "POPS",
15
15
  "publicValue": "POPS"
16
+ },
17
+ "INTERPARCEL": {
18
+ "name": "INTERPARCEL",
19
+ "value": "Interparcel",
20
+ "publicValue": "Interparcel"
16
21
  }
17
22
  } as const;
18
23
 
package/openapitools.json CHANGED
@@ -2,6 +2,6 @@
2
2
  "$schema": "./node_modules/@openapitools/openapi-generator-cli/config.schema.json",
3
3
  "spaces": 2,
4
4
  "generator-cli": {
5
- "version": "7.14.0"
5
+ "version": "7.22.0"
6
6
  }
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yellowgrid-api-ts",
3
- "version": "3.2.170-dev.0",
3
+ "version": "3.2.170",
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.6.1"
25
+ "axios": "^1.15.2"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/node": "12.11.5 - 12.20.42",
@@ -1,43 +0,0 @@
1
- export declare const GroupEnum: {
2
- readonly ACCOUNTS: {
3
- readonly name: "ACCOUNTS";
4
- readonly value: "Accounts";
5
- readonly publicValue: "Accounts";
6
- };
7
- readonly ALL: {
8
- readonly name: "ALL";
9
- readonly value: "All";
10
- readonly publicValue: "All";
11
- };
12
- readonly BOARD: {
13
- readonly name: "BOARD";
14
- readonly value: "Board";
15
- readonly publicValue: "Board";
16
- };
17
- readonly DEVELOPMENT: {
18
- readonly name: "DEVELOPMENT";
19
- readonly value: "Development";
20
- readonly publicValue: "Development";
21
- };
22
- readonly SALES_MARKETING: {
23
- readonly name: "SALES_MARKETING";
24
- readonly value: "SalesMarketing";
25
- readonly publicValue: "SalesMarketing";
26
- };
27
- readonly TELEPHONY: {
28
- readonly name: "TELEPHONY";
29
- readonly value: "Telephony";
30
- readonly publicValue: "Telephony";
31
- };
32
- readonly TELESALES: {
33
- readonly name: "TELESALES";
34
- readonly value: "Telesales";
35
- readonly publicValue: "Telesales";
36
- };
37
- readonly TECH: {
38
- readonly name: "TECH";
39
- readonly value: "Tech";
40
- readonly publicValue: "Tech";
41
- };
42
- };
43
- export type GroupEnum = typeof GroupEnum;
@@ -1,45 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GroupEnum = void 0;
4
- exports.GroupEnum = {
5
- "ACCOUNTS": {
6
- "name": "ACCOUNTS",
7
- "value": "Accounts",
8
- "publicValue": "Accounts"
9
- },
10
- "ALL": {
11
- "name": "ALL",
12
- "value": "All",
13
- "publicValue": "All"
14
- },
15
- "BOARD": {
16
- "name": "BOARD",
17
- "value": "Board",
18
- "publicValue": "Board"
19
- },
20
- "DEVELOPMENT": {
21
- "name": "DEVELOPMENT",
22
- "value": "Development",
23
- "publicValue": "Development"
24
- },
25
- "SALES_MARKETING": {
26
- "name": "SALES_MARKETING",
27
- "value": "SalesMarketing",
28
- "publicValue": "SalesMarketing"
29
- },
30
- "TELEPHONY": {
31
- "name": "TELEPHONY",
32
- "value": "Telephony",
33
- "publicValue": "Telephony"
34
- },
35
- "TELESALES": {
36
- "name": "TELESALES",
37
- "value": "Telesales",
38
- "publicValue": "Telesales"
39
- },
40
- "TECH": {
41
- "name": "TECH",
42
- "value": "Tech",
43
- "publicValue": "Tech"
44
- }
45
- };
@@ -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&lt;any&gt;** | 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)
@@ -1,24 +0,0 @@
1
- # PostGetProductRequest
2
-
3
-
4
- ## Properties
5
-
6
- Name | Type | Description | Notes
7
- ------------ | ------------- | ------------- | -------------
8
- **quantity** | **number** | Quantity | [optional] [default to undefined]
9
- **licenceKey** | **string** | 3CX Licence Key | [optional] [default to undefined]
10
- **hosting** | **boolean** | 3CX Hosting | [optional] [default to undefined]
11
-
12
- ## Example
13
-
14
- ```typescript
15
- import { PostGetProductRequest } from 'yellowgrid-api-ts';
16
-
17
- const instance: PostGetProductRequest = {
18
- quantity,
19
- licenceKey,
20
- hosting,
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)
@@ -1,45 +0,0 @@
1
- # TcxInstallationDetailsModel
2
-
3
- 3CX Installation Details
4
-
5
- ## Properties
6
-
7
- Name | Type | Description | Notes
8
- ------------ | ------------- | ------------- | -------------
9
- **ipAddress** | **string** | PBX IP Address | [optional] [default to undefined]
10
- **instanceId** | **string** | Instance ID | [optional] [default to undefined]
11
- **project** | **string** | Project ID | [optional] [default to undefined]
12
- **privateKey** | [**GenericFileModel**](GenericFileModel.md) | | [optional] [default to undefined]
13
- **rootPassword** | **string** | Root Password | [optional] [default to undefined]
14
- **ownerExtension** | [**TcxUsersEntity**](TcxUsersEntity.md) | | [optional] [default to undefined]
15
- **adminEmail** | **string** | Admin Email | [optional] [default to undefined]
16
- **url** | **string** | Console URL | [optional] [default to undefined]
17
- **adminUsername** | **string** | Admin Username | [optional] [default to undefined]
18
- **adminPassword** | **string** | Admin Password | [optional] [default to undefined]
19
- **ftpHost** | **string** | Config Backup FTP Host | [optional] [default to undefined]
20
- **ftpUsername** | **string** | Config Backup FTP Username | [optional] [default to undefined]
21
- **ftpPassword** | **string** | Config Backup FTP Password | [optional] [default to undefined]
22
-
23
- ## Example
24
-
25
- ```typescript
26
- import { TcxInstallationDetailsModel } from 'yellowgrid-api-ts';
27
-
28
- const instance: TcxInstallationDetailsModel = {
29
- ipAddress,
30
- instanceId,
31
- project,
32
- privateKey,
33
- rootPassword,
34
- ownerExtension,
35
- adminEmail,
36
- url,
37
- adminUsername,
38
- adminPassword,
39
- ftpHost,
40
- ftpUsername,
41
- ftpPassword,
42
- };
43
- ```
44
-
45
- [[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,41 +0,0 @@
1
- # TelephonySupportTicketModel
2
-
3
- Telephony Support Ticket
4
-
5
- ## Properties
6
-
7
- Name | Type | Description | Notes
8
- ------------ | ------------- | ------------- | -------------
9
- **id** | **number** | Ticket ID | [optional] [default to undefined]
10
- **status** | **string** | Ticket status | [optional] [default to undefined]
11
- **statusId** | **number** | Ticket status ID | [optional] [default to undefined]
12
- **subject** | **string** | Ticket subject | [optional] [default to undefined]
13
- **supportEmail** | **string** | Support email address | [optional] [default to undefined]
14
- **toEmails** | **Array&lt;string&gt;** | Recipient emails | [optional] [default to undefined]
15
- **description** | **string** | Ticket description (HTML) | [optional] [default to undefined]
16
- **descriptionText** | **string** | Ticket description (plain text) | [optional] [default to undefined]
17
- **createdAt** | **string** | Creation timestamp | [optional] [default to undefined]
18
- **attachments** | [**Array&lt;AttachmentModel&gt;**](AttachmentModel.md) | Attachments | [optional] [default to undefined]
19
- **conversations** | [**Array&lt;ConversationModel&gt;**](ConversationModel.md) | Conversations | [optional] [default to undefined]
20
-
21
- ## Example
22
-
23
- ```typescript
24
- import { TelephonySupportTicketModel } from 'yellowgrid-api-ts';
25
-
26
- const instance: TelephonySupportTicketModel = {
27
- id,
28
- status,
29
- statusId,
30
- subject,
31
- supportEmail,
32
- toEmails,
33
- description,
34
- descriptionText,
35
- createdAt,
36
- attachments,
37
- conversations,
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)