yellowgrid-api-ts 3.2.156-dev.0 → 3.2.156
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 +292 -270
- package/.openapi-generator/VERSION +1 -1
- package/README.md +53 -3
- package/api.ts +3098 -5273
- package/base.ts +2 -26
- package/common.ts +16 -39
- package/config.json +3 -3
- package/configuration.ts +27 -21
- package/dist/api.d.ts +1416 -4534
- package/dist/api.js +3014 -882
- 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 +4 -4
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/models/HostingPriceListEnum.d.ts +28 -0
- package/dist/models/HostingPriceListEnum.js +30 -0
- package/docs/AbstractOrderRequestDTO.md +1 -1
- package/docs/AccountAddressesDTO.md +25 -0
- package/docs/AccountFinanceDTO.md +37 -0
- package/docs/AccountsApi.md +1428 -54
- package/docs/AddressDTO.md +31 -0
- package/docs/AdminOrderRequestDTO.md +1 -1
- package/docs/AdminUserModel.md +2 -0
- package/docs/BillingApi.md +1 -1
- package/docs/CRMApi.md +121 -1
- package/docs/Class3CXApi.md +49 -1
- package/docs/Class3CXInstallationWizardApi.md +1 -1
- package/docs/Class3CXInstallationsApi.md +56 -1
- package/docs/Class3CXIntegrationsApi.md +1 -1
- package/docs/Class3CXMultiTenantApi.md +1 -1
- package/docs/{PostAddAdminNoteRequest.md → CreateCrmNoteBody.md} +3 -3
- package/docs/CreditAccountEntity.md +4 -0
- package/docs/CrmActivitiesResponseDTO.md +23 -0
- package/docs/CrmActivityDTO.md +33 -0
- package/docs/CrmDateActivitiesDTO.md +23 -0
- package/docs/CrmNoteEntity.md +39 -0
- package/docs/CrmNoteModel.md +39 -0
- package/docs/CustomerListAccountDTO.md +29 -0
- package/docs/CustomerOrderRequestDTO.md +1 -1
- package/docs/DetailedOrderRequestDTO.md +1 -1
- package/docs/MyPBXToolsApi.md +1 -1
- package/docs/NumberPortAdminNoteBody.md +20 -0
- package/docs/NumberPortingApi.md +6 -6
- package/docs/OAuth20Api.md +49 -1
- package/docs/OrdersApi.md +1 -1
- package/docs/PartnerDTO.md +39 -0
- package/docs/{PatchSetTcxWizardCnameRequest.md → PatchUpdateAccountCnameRequest.md} +3 -3
- package/docs/PatchUpdateAccountCompanyNumberRequest.md +20 -0
- package/docs/PatchUpdateAccountPhoneRequest.md +20 -0
- package/docs/PatchUpdateAccountVatNumberRequest.md +20 -0
- package/docs/PatchUpdateCreditLimitRequest.md +20 -0
- package/docs/PatchUpdatePriceListRequest.md +20 -0
- package/docs/PatchUpdateSipChannelCostRequest.md +20 -0
- package/docs/PatchUpdateTcxHostingPriceListRequest.md +20 -0
- package/docs/PatchUpdateTcxPartnerIdRequest.md +20 -0
- package/docs/PortalAccountModel.md +4 -2
- package/docs/PostSendWelcomeEmailRequest.md +20 -0
- package/docs/PricingApi.md +1 -1
- package/docs/ProductSummaryDTO.md +2 -2
- package/docs/ProductsApi.md +1 -1
- package/docs/ProspectDTO.md +4 -2
- package/docs/ProspectsApi.md +1 -1
- package/docs/ProvisioningApi.md +1 -1
- package/docs/RecordingBackupAzureModel.md +2 -0
- package/docs/RecordingsBackupInfoDTO.md +2 -2
- package/docs/SIPTrunksApi.md +1 -1
- package/docs/SMSApi.md +1 -1
- package/docs/ServicesApi.md +1 -1
- package/docs/ShipmentRequestDTO.md +2 -2
- package/docs/ShippingApi.md +1 -1
- package/docs/StockManagementApi.md +1 -1
- package/docs/SystemApi.md +1 -1
- package/docs/TableHistoryEntity.md +35 -0
- package/docs/TcxKeySummaryDTO.md +1 -1
- package/docs/TicketsApi.md +1 -1
- package/docs/WebhooksApi.md +1 -1
- package/getEnums.php +31 -31
- package/index.ts +1 -1
- package/models/HostingPriceListEnum.ts +29 -0
- package/openapitools.json +1 -1
- package/package.json +2 -2
- package/dist/models/GroupEnum.d.ts +0 -43
- package/dist/models/GroupEnum.js +0 -45
- package/docs/NumberPortModel.md +0 -51
- package/docs/PostGetProductRequest.md +0 -24
- 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/models/GroupEnum.ts +0 -44
package/dist/base.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Yellowgrid
|
|
3
|
-
* Welcome to the Yellowgrid API documentation.
|
|
3
|
+
* 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.
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 0
|
|
6
6
|
*
|
|
@@ -12,42 +12,22 @@
|
|
|
12
12
|
import type { Configuration } from './configuration';
|
|
13
13
|
import type { AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
14
|
export declare const BASE_PATH: string;
|
|
15
|
-
/**
|
|
16
|
-
*
|
|
17
|
-
* @export
|
|
18
|
-
*/
|
|
19
15
|
export declare const COLLECTION_FORMATS: {
|
|
20
16
|
csv: string;
|
|
21
17
|
ssv: string;
|
|
22
18
|
tsv: string;
|
|
23
19
|
pipes: string;
|
|
24
20
|
};
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
* @export
|
|
28
|
-
* @interface RequestArgs
|
|
29
|
-
*/
|
|
30
21
|
export interface RequestArgs {
|
|
31
22
|
url: string;
|
|
32
23
|
options: RawAxiosRequestConfig;
|
|
33
24
|
}
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @export
|
|
37
|
-
* @class BaseAPI
|
|
38
|
-
*/
|
|
39
25
|
export declare class BaseAPI {
|
|
40
26
|
protected basePath: string;
|
|
41
27
|
protected axios: AxiosInstance;
|
|
42
28
|
protected configuration: Configuration | undefined;
|
|
43
29
|
constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
|
|
44
30
|
}
|
|
45
|
-
/**
|
|
46
|
-
*
|
|
47
|
-
* @export
|
|
48
|
-
* @class RequiredError
|
|
49
|
-
* @extends {Error}
|
|
50
|
-
*/
|
|
51
31
|
export declare class RequiredError extends Error {
|
|
52
32
|
field: string;
|
|
53
33
|
constructor(field: string, msg?: string);
|
|
@@ -58,9 +38,5 @@ interface ServerMap {
|
|
|
58
38
|
description: string;
|
|
59
39
|
}[];
|
|
60
40
|
}
|
|
61
|
-
/**
|
|
62
|
-
*
|
|
63
|
-
* @export
|
|
64
|
-
*/
|
|
65
41
|
export declare const operationServerMap: ServerMap;
|
|
66
42
|
export {};
|
package/dist/base.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
/**
|
|
5
5
|
* Yellowgrid
|
|
6
|
-
* Welcome to the Yellowgrid API documentation.
|
|
6
|
+
* 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.
|
|
7
7
|
*
|
|
8
8
|
* The version of the OpenAPI document: 0
|
|
9
9
|
*
|
|
@@ -30,22 +30,13 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
30
30
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31
31
|
exports.operationServerMap = exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
|
|
32
32
|
var axios_1 = require("axios");
|
|
33
|
-
exports.BASE_PATH = "https://
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @export
|
|
37
|
-
*/
|
|
33
|
+
exports.BASE_PATH = "https://bitbucket.org".replace(/\/+$/, "");
|
|
38
34
|
exports.COLLECTION_FORMATS = {
|
|
39
35
|
csv: ",",
|
|
40
36
|
ssv: " ",
|
|
41
37
|
tsv: "\t",
|
|
42
38
|
pipes: "|",
|
|
43
39
|
};
|
|
44
|
-
/**
|
|
45
|
-
*
|
|
46
|
-
* @export
|
|
47
|
-
* @class BaseAPI
|
|
48
|
-
*/
|
|
49
40
|
var BaseAPI = /** @class */ (function () {
|
|
50
41
|
function BaseAPI(configuration, basePath, axios) {
|
|
51
42
|
if (basePath === void 0) { basePath = exports.BASE_PATH; }
|
|
@@ -62,12 +53,6 @@ var BaseAPI = /** @class */ (function () {
|
|
|
62
53
|
}());
|
|
63
54
|
exports.BaseAPI = BaseAPI;
|
|
64
55
|
;
|
|
65
|
-
/**
|
|
66
|
-
*
|
|
67
|
-
* @export
|
|
68
|
-
* @class RequiredError
|
|
69
|
-
* @extends {Error}
|
|
70
|
-
*/
|
|
71
56
|
var RequiredError = /** @class */ (function (_super) {
|
|
72
57
|
__extends(RequiredError, _super);
|
|
73
58
|
function RequiredError(field, msg) {
|
|
@@ -79,8 +64,4 @@ var RequiredError = /** @class */ (function (_super) {
|
|
|
79
64
|
return RequiredError;
|
|
80
65
|
}(Error));
|
|
81
66
|
exports.RequiredError = RequiredError;
|
|
82
|
-
/**
|
|
83
|
-
*
|
|
84
|
-
* @export
|
|
85
|
-
*/
|
|
86
67
|
exports.operationServerMap = {};
|
package/dist/common.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Yellowgrid
|
|
3
|
-
* Welcome to the Yellowgrid API documentation.
|
|
3
|
+
* 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.
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 0
|
|
6
6
|
*
|
|
@@ -12,54 +12,23 @@
|
|
|
12
12
|
import type { Configuration } from "./configuration";
|
|
13
13
|
import type { RequestArgs } from "./base";
|
|
14
14
|
import type { AxiosInstance, AxiosResponse } from 'axios';
|
|
15
|
-
/**
|
|
16
|
-
*
|
|
17
|
-
* @export
|
|
18
|
-
*/
|
|
19
15
|
export declare const DUMMY_BASE_URL = "https://example.com";
|
|
20
16
|
/**
|
|
21
17
|
*
|
|
22
18
|
* @throws {RequiredError}
|
|
23
|
-
* @export
|
|
24
19
|
*/
|
|
25
20
|
export declare const assertParamExists: (functionName: string, paramName: string, paramValue: unknown) => void;
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* @export
|
|
29
|
-
*/
|
|
30
21
|
export declare const setApiKeyToObject: (object: any, keyParamName: string, configuration?: Configuration) => Promise<void>;
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* @export
|
|
34
|
-
*/
|
|
35
22
|
export declare const setBasicAuthToObject: (object: any, configuration?: Configuration) => void;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @export
|
|
39
|
-
*/
|
|
40
23
|
export declare const setBearerAuthToObject: (object: any, configuration?: Configuration) => Promise<void>;
|
|
41
|
-
/**
|
|
42
|
-
*
|
|
43
|
-
* @export
|
|
44
|
-
*/
|
|
45
24
|
export declare const setOAuthToObject: (object: any, name: string, scopes: string[], configuration?: Configuration) => Promise<void>;
|
|
46
|
-
/**
|
|
47
|
-
*
|
|
48
|
-
* @export
|
|
49
|
-
*/
|
|
50
25
|
export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
|
|
51
26
|
/**
|
|
52
|
-
*
|
|
53
|
-
*
|
|
27
|
+
* JSON serialization helper function which replaces instances of unserializable types with serializable ones.
|
|
28
|
+
* This function will run for every key-value pair encountered by JSON.stringify while traversing an object.
|
|
29
|
+
* Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
|
|
54
30
|
*/
|
|
31
|
+
export declare const replaceWithSerializableTypeIfNeeded: (key: string, value: any) => any;
|
|
55
32
|
export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration) => any;
|
|
56
|
-
/**
|
|
57
|
-
*
|
|
58
|
-
* @export
|
|
59
|
-
*/
|
|
60
33
|
export declare const toPathString: (url: URL) => string;
|
|
61
|
-
/**
|
|
62
|
-
*
|
|
63
|
-
* @export
|
|
64
|
-
*/
|
|
65
34
|
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
|
package/dist/common.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
/**
|
|
5
5
|
* Yellowgrid
|
|
6
|
-
* Welcome to the Yellowgrid API documentation.
|
|
6
|
+
* 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.
|
|
7
7
|
*
|
|
8
8
|
* The version of the OpenAPI document: 0
|
|
9
9
|
*
|
|
@@ -60,17 +60,12 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
60
60
|
}
|
|
61
61
|
};
|
|
62
62
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
63
|
-
exports.createRequestFunction = exports.toPathString = exports.serializeDataIfNeeded = exports.setSearchParams = exports.setOAuthToObject = exports.setBearerAuthToObject = exports.setBasicAuthToObject = exports.setApiKeyToObject = exports.assertParamExists = exports.DUMMY_BASE_URL = void 0;
|
|
63
|
+
exports.createRequestFunction = exports.toPathString = exports.serializeDataIfNeeded = exports.replaceWithSerializableTypeIfNeeded = exports.setSearchParams = exports.setOAuthToObject = exports.setBearerAuthToObject = exports.setBasicAuthToObject = exports.setApiKeyToObject = exports.assertParamExists = exports.DUMMY_BASE_URL = void 0;
|
|
64
64
|
var base_1 = require("./base");
|
|
65
|
-
/**
|
|
66
|
-
*
|
|
67
|
-
* @export
|
|
68
|
-
*/
|
|
69
65
|
exports.DUMMY_BASE_URL = 'https://example.com';
|
|
70
66
|
/**
|
|
71
67
|
*
|
|
72
68
|
* @throws {RequiredError}
|
|
73
|
-
* @export
|
|
74
69
|
*/
|
|
75
70
|
var assertParamExists = function (functionName, paramName, paramValue) {
|
|
76
71
|
if (paramValue === null || paramValue === undefined) {
|
|
@@ -78,10 +73,6 @@ var assertParamExists = function (functionName, paramName, paramValue) {
|
|
|
78
73
|
}
|
|
79
74
|
};
|
|
80
75
|
exports.assertParamExists = assertParamExists;
|
|
81
|
-
/**
|
|
82
|
-
*
|
|
83
|
-
* @export
|
|
84
|
-
*/
|
|
85
76
|
var setApiKeyToObject = function (object, keyParamName, configuration) {
|
|
86
77
|
return __awaiter(this, void 0, void 0, function () {
|
|
87
78
|
var localVarApiKeyValue, _a;
|
|
@@ -108,20 +99,12 @@ var setApiKeyToObject = function (object, keyParamName, configuration) {
|
|
|
108
99
|
});
|
|
109
100
|
};
|
|
110
101
|
exports.setApiKeyToObject = setApiKeyToObject;
|
|
111
|
-
/**
|
|
112
|
-
*
|
|
113
|
-
* @export
|
|
114
|
-
*/
|
|
115
102
|
var setBasicAuthToObject = function (object, configuration) {
|
|
116
103
|
if (configuration && (configuration.username || configuration.password)) {
|
|
117
104
|
object["auth"] = { username: configuration.username, password: configuration.password };
|
|
118
105
|
}
|
|
119
106
|
};
|
|
120
107
|
exports.setBasicAuthToObject = setBasicAuthToObject;
|
|
121
|
-
/**
|
|
122
|
-
*
|
|
123
|
-
* @export
|
|
124
|
-
*/
|
|
125
108
|
var setBearerAuthToObject = function (object, configuration) {
|
|
126
109
|
return __awaiter(this, void 0, void 0, function () {
|
|
127
110
|
var accessToken, _a;
|
|
@@ -148,10 +131,6 @@ var setBearerAuthToObject = function (object, configuration) {
|
|
|
148
131
|
});
|
|
149
132
|
};
|
|
150
133
|
exports.setBearerAuthToObject = setBearerAuthToObject;
|
|
151
|
-
/**
|
|
152
|
-
*
|
|
153
|
-
* @export
|
|
154
|
-
*/
|
|
155
134
|
var setOAuthToObject = function (object, name, scopes, configuration) {
|
|
156
135
|
return __awaiter(this, void 0, void 0, function () {
|
|
157
136
|
var localVarAccessTokenValue, _a;
|
|
@@ -183,7 +162,7 @@ function setFlattenedQueryParams(urlSearchParams, parameter, key) {
|
|
|
183
162
|
if (parameter == null)
|
|
184
163
|
return;
|
|
185
164
|
if (typeof parameter === "object") {
|
|
186
|
-
if (Array.isArray(parameter)) {
|
|
165
|
+
if (Array.isArray(parameter) || parameter instanceof Set) {
|
|
187
166
|
parameter.forEach(function (item) { return setFlattenedQueryParams(urlSearchParams, item, key); });
|
|
188
167
|
}
|
|
189
168
|
else {
|
|
@@ -201,10 +180,6 @@ function setFlattenedQueryParams(urlSearchParams, parameter, key) {
|
|
|
201
180
|
}
|
|
202
181
|
}
|
|
203
182
|
}
|
|
204
|
-
/**
|
|
205
|
-
*
|
|
206
|
-
* @export
|
|
207
|
-
*/
|
|
208
183
|
var setSearchParams = function (url) {
|
|
209
184
|
var objects = [];
|
|
210
185
|
for (var _i = 1; _i < arguments.length; _i++) {
|
|
@@ -216,31 +191,34 @@ var setSearchParams = function (url) {
|
|
|
216
191
|
};
|
|
217
192
|
exports.setSearchParams = setSearchParams;
|
|
218
193
|
/**
|
|
219
|
-
*
|
|
220
|
-
*
|
|
194
|
+
* JSON serialization helper function which replaces instances of unserializable types with serializable ones.
|
|
195
|
+
* This function will run for every key-value pair encountered by JSON.stringify while traversing an object.
|
|
196
|
+
* Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
|
|
221
197
|
*/
|
|
198
|
+
// @ts-ignore
|
|
199
|
+
var replaceWithSerializableTypeIfNeeded = function (key, value) {
|
|
200
|
+
if (value instanceof Set) {
|
|
201
|
+
return Array.from(value);
|
|
202
|
+
}
|
|
203
|
+
else {
|
|
204
|
+
return value;
|
|
205
|
+
}
|
|
206
|
+
};
|
|
207
|
+
exports.replaceWithSerializableTypeIfNeeded = replaceWithSerializableTypeIfNeeded;
|
|
222
208
|
var serializeDataIfNeeded = function (value, requestOptions, configuration) {
|
|
223
209
|
var nonString = typeof value !== 'string';
|
|
224
210
|
var needsSerialization = nonString && configuration && configuration.isJsonMime
|
|
225
211
|
? configuration.isJsonMime(requestOptions.headers['Content-Type'])
|
|
226
212
|
: nonString;
|
|
227
213
|
return needsSerialization
|
|
228
|
-
? JSON.stringify(value !== undefined ? value : {})
|
|
214
|
+
? JSON.stringify(value !== undefined ? value : {}, exports.replaceWithSerializableTypeIfNeeded)
|
|
229
215
|
: (value || "");
|
|
230
216
|
};
|
|
231
217
|
exports.serializeDataIfNeeded = serializeDataIfNeeded;
|
|
232
|
-
/**
|
|
233
|
-
*
|
|
234
|
-
* @export
|
|
235
|
-
*/
|
|
236
218
|
var toPathString = function (url) {
|
|
237
219
|
return url.pathname + url.search + url.hash;
|
|
238
220
|
};
|
|
239
221
|
exports.toPathString = toPathString;
|
|
240
|
-
/**
|
|
241
|
-
*
|
|
242
|
-
* @export
|
|
243
|
-
*/
|
|
244
222
|
var createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
|
|
245
223
|
return function (axios, basePath) {
|
|
246
224
|
var _a;
|
package/dist/configuration.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Yellowgrid
|
|
3
|
-
* Welcome to the Yellowgrid API documentation.
|
|
3
|
+
* 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.
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 0
|
|
6
6
|
*
|
|
@@ -9,11 +9,23 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
interface AWSv4Configuration {
|
|
13
|
+
options?: {
|
|
14
|
+
region?: string;
|
|
15
|
+
service?: string;
|
|
16
|
+
};
|
|
17
|
+
credentials?: {
|
|
18
|
+
accessKeyId?: string;
|
|
19
|
+
secretAccessKey?: string;
|
|
20
|
+
sessionToken?: string;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
12
23
|
export interface ConfigurationParameters {
|
|
13
24
|
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
14
25
|
username?: string;
|
|
15
26
|
password?: string;
|
|
16
27
|
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
28
|
+
awsv4?: AWSv4Configuration;
|
|
17
29
|
basePath?: string;
|
|
18
30
|
serverIndex?: number;
|
|
19
31
|
baseOptions?: any;
|
|
@@ -23,49 +35,43 @@ export declare class Configuration {
|
|
|
23
35
|
/**
|
|
24
36
|
* parameter for apiKey security
|
|
25
37
|
* @param name security name
|
|
26
|
-
* @memberof Configuration
|
|
27
38
|
*/
|
|
28
39
|
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
29
40
|
/**
|
|
30
41
|
* parameter for basic security
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof Configuration
|
|
34
42
|
*/
|
|
35
43
|
username?: string;
|
|
36
44
|
/**
|
|
37
45
|
* parameter for basic security
|
|
38
|
-
*
|
|
39
|
-
* @type {string}
|
|
40
|
-
* @memberof Configuration
|
|
41
46
|
*/
|
|
42
47
|
password?: string;
|
|
43
48
|
/**
|
|
44
49
|
* parameter for oauth2 security
|
|
45
50
|
* @param name security name
|
|
46
51
|
* @param scopes oauth2 scope
|
|
47
|
-
* @memberof Configuration
|
|
48
52
|
*/
|
|
49
53
|
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
50
54
|
/**
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
* @
|
|
55
|
+
* parameter for aws4 signature security
|
|
56
|
+
* @param {Object} AWS4Signature - AWS4 Signature security
|
|
57
|
+
* @param {string} options.region - aws region
|
|
58
|
+
* @param {string} options.service - name of the service.
|
|
59
|
+
* @param {string} credentials.accessKeyId - aws access key id
|
|
60
|
+
* @param {string} credentials.secretAccessKey - aws access key
|
|
61
|
+
* @param {string} credentials.sessionToken - aws session token
|
|
54
62
|
* @memberof Configuration
|
|
55
63
|
*/
|
|
64
|
+
awsv4?: AWSv4Configuration;
|
|
65
|
+
/**
|
|
66
|
+
* override base path
|
|
67
|
+
*/
|
|
56
68
|
basePath?: string;
|
|
57
69
|
/**
|
|
58
70
|
* override server index
|
|
59
|
-
*
|
|
60
|
-
* @type {number}
|
|
61
|
-
* @memberof Configuration
|
|
62
71
|
*/
|
|
63
72
|
serverIndex?: number;
|
|
64
73
|
/**
|
|
65
74
|
* base options for axios calls
|
|
66
|
-
*
|
|
67
|
-
* @type {any}
|
|
68
|
-
* @memberof Configuration
|
|
69
75
|
*/
|
|
70
76
|
baseOptions?: any;
|
|
71
77
|
/**
|
|
@@ -89,3 +95,4 @@ export declare class Configuration {
|
|
|
89
95
|
*/
|
|
90
96
|
isJsonMime(mime: string): boolean;
|
|
91
97
|
}
|
|
98
|
+
export {};
|
package/dist/configuration.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
3
|
/**
|
|
5
4
|
* Yellowgrid
|
|
6
|
-
* 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.
|
|
7
6
|
*
|
|
8
7
|
* The version of the OpenAPI document: 0
|
|
9
8
|
*
|
|
@@ -33,6 +32,7 @@ var Configuration = /** @class */ (function () {
|
|
|
33
32
|
this.username = param.username;
|
|
34
33
|
this.password = param.password;
|
|
35
34
|
this.accessToken = param.accessToken;
|
|
35
|
+
this.awsv4 = param.awsv4;
|
|
36
36
|
this.basePath = param.basePath;
|
|
37
37
|
this.serverIndex = param.serverIndex;
|
|
38
38
|
this.baseOptions = __assign(__assign({}, param.baseOptions), { headers: __assign({}, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
|
|
@@ -49,8 +49,8 @@ var Configuration = /** @class */ (function () {
|
|
|
49
49
|
* @return True if the given MIME is JSON, false otherwise.
|
|
50
50
|
*/
|
|
51
51
|
Configuration.prototype.isJsonMime = function (mime) {
|
|
52
|
-
var jsonMime =
|
|
53
|
-
return mime !== null &&
|
|
52
|
+
var jsonMime = /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i;
|
|
53
|
+
return mime !== null && jsonMime.test(mime);
|
|
54
54
|
};
|
|
55
55
|
return Configuration;
|
|
56
56
|
}());
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Yellowgrid
|
|
3
|
-
* Welcome to the Yellowgrid API documentation.
|
|
3
|
+
* 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.
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 0
|
|
6
6
|
*
|
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
/**
|
|
5
5
|
* Yellowgrid
|
|
6
|
-
* Welcome to the Yellowgrid API documentation.
|
|
6
|
+
* 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.
|
|
7
7
|
*
|
|
8
8
|
* The version of the OpenAPI document: 0
|
|
9
9
|
*
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare const HostingPriceListEnum: {
|
|
2
|
+
readonly HOSTING_ONLY: {
|
|
3
|
+
readonly name: "HOSTING_ONLY";
|
|
4
|
+
readonly value: 1;
|
|
5
|
+
readonly publicValue: "Hosting Only";
|
|
6
|
+
};
|
|
7
|
+
readonly HOSTING_ONLY_BESPOKE: {
|
|
8
|
+
readonly name: "HOSTING_ONLY_BESPOKE";
|
|
9
|
+
readonly value: 2;
|
|
10
|
+
readonly publicValue: "Hosting Only (Bespoke)";
|
|
11
|
+
};
|
|
12
|
+
readonly HOSTING_AND_SUPPORT: {
|
|
13
|
+
readonly name: "HOSTING_AND_SUPPORT";
|
|
14
|
+
readonly value: 3;
|
|
15
|
+
readonly publicValue: "Hosting & Support";
|
|
16
|
+
};
|
|
17
|
+
readonly HOSTING_AND_SUPPORT_BESPOKE: {
|
|
18
|
+
readonly name: "HOSTING_AND_SUPPORT_BESPOKE";
|
|
19
|
+
readonly value: 4;
|
|
20
|
+
readonly publicValue: "Hosting & Support (Bespoke)";
|
|
21
|
+
};
|
|
22
|
+
readonly END_USER: {
|
|
23
|
+
readonly name: "END_USER";
|
|
24
|
+
readonly value: 5;
|
|
25
|
+
readonly publicValue: "End User";
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
export type HostingPriceListEnum = typeof HostingPriceListEnum;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HostingPriceListEnum = void 0;
|
|
4
|
+
exports.HostingPriceListEnum = {
|
|
5
|
+
"HOSTING_ONLY": {
|
|
6
|
+
"name": "HOSTING_ONLY",
|
|
7
|
+
"value": 1,
|
|
8
|
+
"publicValue": "Hosting Only"
|
|
9
|
+
},
|
|
10
|
+
"HOSTING_ONLY_BESPOKE": {
|
|
11
|
+
"name": "HOSTING_ONLY_BESPOKE",
|
|
12
|
+
"value": 2,
|
|
13
|
+
"publicValue": "Hosting Only (Bespoke)"
|
|
14
|
+
},
|
|
15
|
+
"HOSTING_AND_SUPPORT": {
|
|
16
|
+
"name": "HOSTING_AND_SUPPORT",
|
|
17
|
+
"value": 3,
|
|
18
|
+
"publicValue": "Hosting & Support"
|
|
19
|
+
},
|
|
20
|
+
"HOSTING_AND_SUPPORT_BESPOKE": {
|
|
21
|
+
"name": "HOSTING_AND_SUPPORT_BESPOKE",
|
|
22
|
+
"value": 4,
|
|
23
|
+
"publicValue": "Hosting & Support (Bespoke)"
|
|
24
|
+
},
|
|
25
|
+
"END_USER": {
|
|
26
|
+
"name": "END_USER",
|
|
27
|
+
"value": 5,
|
|
28
|
+
"publicValue": "End User"
|
|
29
|
+
}
|
|
30
|
+
};
|
|
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
|
|
|
10
10
|
**items** | [**Array<CustomerItemRequestDTO>**](CustomerItemRequestDTO.md) | Items | [optional] [default to undefined]
|
|
11
11
|
**shippingService** | [**ShippingServiceDTO**](ShippingServiceDTO.md) | | [optional] [default to undefined]
|
|
12
12
|
**provisioningUrl** | **string** | Provisioning URL | [optional] [default to undefined]
|
|
13
|
-
**shippingAddress** | [**AddressModel**](AddressModel.md) |
|
|
13
|
+
**shippingAddress** | [**AddressModel**](AddressModel.md) | Shipping Address | [optional] [default to undefined]
|
|
14
14
|
**partShip** | **boolean** | Part Ship Order | [optional] [default to undefined]
|
|
15
15
|
**quote** | **boolean** | Quote | [optional] [default to undefined]
|
|
16
16
|
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# AccountAddressesDTO
|
|
2
|
+
|
|
3
|
+
Account Addresses
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**billingAddress** | [**AddressDTO**](AddressDTO.md) | | [optional] [default to undefined]
|
|
10
|
+
**shippingAddress** | [**AddressDTO**](AddressDTO.md) | | [optional] [default to undefined]
|
|
11
|
+
**previousShippingAddreses** | [**Array<AddressDTO>**](AddressDTO.md) | Addresses | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { AccountAddressesDTO } from 'yellowgrid-api-ts';
|
|
17
|
+
|
|
18
|
+
const instance: AccountAddressesDTO = {
|
|
19
|
+
billingAddress,
|
|
20
|
+
shippingAddress,
|
|
21
|
+
previousShippingAddreses,
|
|
22
|
+
};
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# AccountFinanceDTO
|
|
2
|
+
|
|
3
|
+
Account Finance DTO
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**id** | **number** | Account ID | [optional] [default to undefined]
|
|
10
|
+
**xeroId** | **string** | Account Xero ID | [optional] [default to undefined]
|
|
11
|
+
**accountNumber** | **string** | Account Number | [optional] [default to undefined]
|
|
12
|
+
**creditLimit** | **number** | Credit Limit | [optional] [default to undefined]
|
|
13
|
+
**balance** | **number** | Balance Used | [optional] [default to undefined]
|
|
14
|
+
**overdue** | **number** | Overdue Amount | [optional] [default to undefined]
|
|
15
|
+
**priceList** | [**CustomerPriceListEnum**](CustomerPriceListEnum.md) | | [optional] [default to undefined]
|
|
16
|
+
**sipChannelCost** | **number** | SIP Trunk Channel Cost | [optional] [default to undefined]
|
|
17
|
+
**xeroUrl** | **string** | Xero Contact URL | [optional] [default to undefined]
|
|
18
|
+
|
|
19
|
+
## Example
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import { AccountFinanceDTO } from 'yellowgrid-api-ts';
|
|
23
|
+
|
|
24
|
+
const instance: AccountFinanceDTO = {
|
|
25
|
+
id,
|
|
26
|
+
xeroId,
|
|
27
|
+
accountNumber,
|
|
28
|
+
creditLimit,
|
|
29
|
+
balance,
|
|
30
|
+
overdue,
|
|
31
|
+
priceList,
|
|
32
|
+
sipChannelCost,
|
|
33
|
+
xeroUrl,
|
|
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)
|