yellowgrid-api-ts 3.2.89-dev.0 → 3.2.91-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +3 -0
- package/README.md +8 -1
- package/api.ts +292 -1
- package/base.ts +2 -2
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +210 -1
- package/dist/api.js +190 -4
- package/dist/base.d.ts +1 -1
- package/dist/base.js +2 -2
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- 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 +1 -1
- package/docs/CreditNoteItemModel.md +29 -0
- package/docs/CreditNoteModel.md +2 -0
- package/docs/MyPBXToolsApi.md +1 -1
- package/docs/NumberPortingApi.md +1 -1
- package/docs/OAuth20Api.md +4 -4
- package/docs/OrdersApi.md +59 -1
- package/docs/PricingApi.md +1 -1
- package/docs/ProductsApi.md +1 -1
- package/docs/ProvisioningApi.md +1 -1
- package/docs/SIPTrunksApi.md +1 -1
- package/docs/SMSApi.md +57 -1
- package/docs/ServicesApi.md +1 -1
- package/docs/ShippingApi.md +1 -1
- package/docs/SmsAccountDTO.md +31 -0
- package/docs/SmsAccountRequestDTO.md +29 -0
- package/docs/StockManagementApi.md +1 -1
- package/docs/SystemApi.md +1 -1
- package/docs/TicketsApi.md +1 -1
- package/docs/WebhooksApi.md +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Yellowgrid
|
|
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://api.yellowgrid.
|
|
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://api.local.yellowgrid.co.uk` For questions or technical support, please contact support@yellowgrid.co.uk.
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 0
|
|
6
6
|
*
|
|
@@ -2124,6 +2124,43 @@ export interface CreditNoteItemEntity {
|
|
|
2124
2124
|
*/
|
|
2125
2125
|
'amount'?: number;
|
|
2126
2126
|
}
|
|
2127
|
+
/**
|
|
2128
|
+
* Credit Note Item
|
|
2129
|
+
* @export
|
|
2130
|
+
* @interface CreditNoteItemModel
|
|
2131
|
+
*/
|
|
2132
|
+
export interface CreditNoteItemModel {
|
|
2133
|
+
/**
|
|
2134
|
+
* id
|
|
2135
|
+
* @type {number}
|
|
2136
|
+
* @memberof CreditNoteItemModel
|
|
2137
|
+
*/
|
|
2138
|
+
'id'?: number;
|
|
2139
|
+
/**
|
|
2140
|
+
* creditNoteId
|
|
2141
|
+
* @type {number}
|
|
2142
|
+
* @memberof CreditNoteItemModel
|
|
2143
|
+
*/
|
|
2144
|
+
'creditNoteId'?: number;
|
|
2145
|
+
/**
|
|
2146
|
+
* orderId
|
|
2147
|
+
* @type {number}
|
|
2148
|
+
* @memberof CreditNoteItemModel
|
|
2149
|
+
*/
|
|
2150
|
+
'orderId'?: number;
|
|
2151
|
+
/**
|
|
2152
|
+
* itemId
|
|
2153
|
+
* @type {number}
|
|
2154
|
+
* @memberof CreditNoteItemModel
|
|
2155
|
+
*/
|
|
2156
|
+
'itemId'?: number;
|
|
2157
|
+
/**
|
|
2158
|
+
* amount
|
|
2159
|
+
* @type {number}
|
|
2160
|
+
* @memberof CreditNoteItemModel
|
|
2161
|
+
*/
|
|
2162
|
+
'amount'?: number;
|
|
2163
|
+
}
|
|
2127
2164
|
/**
|
|
2128
2165
|
* Credit Note Model
|
|
2129
2166
|
* @export
|
|
@@ -2160,6 +2197,12 @@ export interface CreditNoteModel {
|
|
|
2160
2197
|
* @memberof CreditNoteModel
|
|
2161
2198
|
*/
|
|
2162
2199
|
'timestamp'?: string;
|
|
2200
|
+
/**
|
|
2201
|
+
* Credit Note Items
|
|
2202
|
+
* @type {Array<CreditNoteItemModel>}
|
|
2203
|
+
* @memberof CreditNoteModel
|
|
2204
|
+
*/
|
|
2205
|
+
'items'?: Array<CreditNoteItemModel>;
|
|
2163
2206
|
}
|
|
2164
2207
|
/**
|
|
2165
2208
|
* CRM Contact
|
|
@@ -7552,6 +7595,49 @@ export interface SipTrunksResponseModel {
|
|
|
7552
7595
|
*/
|
|
7553
7596
|
'totalResults'?: number;
|
|
7554
7597
|
}
|
|
7598
|
+
/**
|
|
7599
|
+
* SMS Account
|
|
7600
|
+
* @export
|
|
7601
|
+
* @interface SmsAccountDTO
|
|
7602
|
+
*/
|
|
7603
|
+
export interface SmsAccountDTO {
|
|
7604
|
+
/**
|
|
7605
|
+
* Send URL
|
|
7606
|
+
* @type {string}
|
|
7607
|
+
* @memberof SmsAccountDTO
|
|
7608
|
+
*/
|
|
7609
|
+
'sendUrl'?: string;
|
|
7610
|
+
/**
|
|
7611
|
+
* Webhook URL
|
|
7612
|
+
* @type {string}
|
|
7613
|
+
* @memberof SmsAccountDTO
|
|
7614
|
+
*/
|
|
7615
|
+
'webhookUrl'?: string;
|
|
7616
|
+
/**
|
|
7617
|
+
* API Key
|
|
7618
|
+
* @type {string}
|
|
7619
|
+
* @memberof SmsAccountDTO
|
|
7620
|
+
*/
|
|
7621
|
+
'apiKey'?: string;
|
|
7622
|
+
/**
|
|
7623
|
+
* Numbers
|
|
7624
|
+
* @type {Array<SmsNumbersEntity>}
|
|
7625
|
+
* @memberof SmsAccountDTO
|
|
7626
|
+
*/
|
|
7627
|
+
'numbers'?: Array<SmsNumbersEntity>;
|
|
7628
|
+
/**
|
|
7629
|
+
* Name
|
|
7630
|
+
* @type {string}
|
|
7631
|
+
* @memberof SmsAccountDTO
|
|
7632
|
+
*/
|
|
7633
|
+
'name'?: string;
|
|
7634
|
+
/**
|
|
7635
|
+
* Sender Whitelist
|
|
7636
|
+
* @type {Array<SmsWhitelistEntity>}
|
|
7637
|
+
* @memberof SmsAccountDTO
|
|
7638
|
+
*/
|
|
7639
|
+
'whitelist'?: Array<SmsWhitelistEntity>;
|
|
7640
|
+
}
|
|
7555
7641
|
/**
|
|
7556
7642
|
* SmsEntity
|
|
7557
7643
|
* @export
|
|
@@ -7601,6 +7687,55 @@ export interface SmsAccountEntity {
|
|
|
7601
7687
|
*/
|
|
7602
7688
|
'name'?: string;
|
|
7603
7689
|
}
|
|
7690
|
+
/**
|
|
7691
|
+
* SMS Account Request
|
|
7692
|
+
* @export
|
|
7693
|
+
* @interface SmsAccountRequestDTO
|
|
7694
|
+
*/
|
|
7695
|
+
export interface SmsAccountRequestDTO {
|
|
7696
|
+
/**
|
|
7697
|
+
* SMS Provider
|
|
7698
|
+
* @type {number}
|
|
7699
|
+
* @memberof SmsAccountRequestDTO
|
|
7700
|
+
*/
|
|
7701
|
+
'provider'?: SmsAccountRequestDTOProviderEnum;
|
|
7702
|
+
/**
|
|
7703
|
+
* Customer Name
|
|
7704
|
+
* @type {string}
|
|
7705
|
+
* @memberof SmsAccountRequestDTO
|
|
7706
|
+
*/
|
|
7707
|
+
'name'?: string;
|
|
7708
|
+
/**
|
|
7709
|
+
* SMS Webhook
|
|
7710
|
+
* @type {string}
|
|
7711
|
+
* @memberof SmsAccountRequestDTO
|
|
7712
|
+
*/
|
|
7713
|
+
'webhookUrl'?: string;
|
|
7714
|
+
/**
|
|
7715
|
+
* Number Country
|
|
7716
|
+
* @type {string}
|
|
7717
|
+
* @memberof SmsAccountRequestDTO
|
|
7718
|
+
*/
|
|
7719
|
+
'iso'?: string;
|
|
7720
|
+
/**
|
|
7721
|
+
* Number Type
|
|
7722
|
+
* @type {string}
|
|
7723
|
+
* @memberof SmsAccountRequestDTO
|
|
7724
|
+
*/
|
|
7725
|
+
'type'?: SmsAccountRequestDTOTypeEnum;
|
|
7726
|
+
}
|
|
7727
|
+
export declare const SmsAccountRequestDTOProviderEnum: {
|
|
7728
|
+
readonly NUMBER_1: 1;
|
|
7729
|
+
};
|
|
7730
|
+
export type SmsAccountRequestDTOProviderEnum = typeof SmsAccountRequestDTOProviderEnum[keyof typeof SmsAccountRequestDTOProviderEnum];
|
|
7731
|
+
export declare const SmsAccountRequestDTOTypeEnum: {
|
|
7732
|
+
readonly Local: "local";
|
|
7733
|
+
readonly TollFree: "toll_free";
|
|
7734
|
+
readonly Mobile: "mobile";
|
|
7735
|
+
readonly National: "national";
|
|
7736
|
+
readonly SharedCost: "shared_cost";
|
|
7737
|
+
};
|
|
7738
|
+
export type SmsAccountRequestDTOTypeEnum = typeof SmsAccountRequestDTOTypeEnum[keyof typeof SmsAccountRequestDTOTypeEnum];
|
|
7604
7739
|
/**
|
|
7605
7740
|
* SMS Data Model
|
|
7606
7741
|
* @export
|
|
@@ -15455,6 +15590,8 @@ export declare const PostAccessTokenScopeEnum: {
|
|
|
15455
15590
|
readonly ProductsRead: "products.read";
|
|
15456
15591
|
readonly ProvisioningRead: "provisioning.read";
|
|
15457
15592
|
readonly ProvisioningWrite: "provisioning.write";
|
|
15593
|
+
readonly SmsRead: "sms.read";
|
|
15594
|
+
readonly SmsWrite: "sms.write";
|
|
15458
15595
|
readonly TrunksRead: "trunks.read";
|
|
15459
15596
|
readonly TrunksWrite: "trunks.write";
|
|
15460
15597
|
readonly TcxIntegrationsRead: "tcx_integrations.read";
|
|
@@ -15495,6 +15632,8 @@ export declare const PostAuthoriseScopeEnum: {
|
|
|
15495
15632
|
readonly ProductsRead: "products.read";
|
|
15496
15633
|
readonly ProvisioningRead: "provisioning.read";
|
|
15497
15634
|
readonly ProvisioningWrite: "provisioning.write";
|
|
15635
|
+
readonly SmsRead: "sms.read";
|
|
15636
|
+
readonly SmsWrite: "sms.write";
|
|
15498
15637
|
readonly TrunksRead: "trunks.read";
|
|
15499
15638
|
readonly TrunksWrite: "trunks.write";
|
|
15500
15639
|
readonly TcxIntegrationsRead: "tcx_integrations.read";
|
|
@@ -15602,6 +15741,15 @@ export declare const OrdersApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
15602
15741
|
* @throws {RequiredError}
|
|
15603
15742
|
*/
|
|
15604
15743
|
getGetOrders: (pageSize?: number, page?: number, search?: string, fulfillable?: boolean | null, status?: GetGetOrdersStatusEnum, filter?: GetGetOrdersFilterEnum, customerId?: number | null, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
15744
|
+
/**
|
|
15745
|
+
* Change Payment Status (Admin)
|
|
15746
|
+
* @summary Change Payment Status (Admin)
|
|
15747
|
+
* @param {number} id Order ID
|
|
15748
|
+
* @param {boolean} id2 Paid
|
|
15749
|
+
* @param {*} [options] Override http request option.
|
|
15750
|
+
* @throws {RequiredError}
|
|
15751
|
+
*/
|
|
15752
|
+
getUpdatePaymentStatus: (id: number, id2: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
15605
15753
|
/**
|
|
15606
15754
|
* Add Order Note
|
|
15607
15755
|
* @summary Add Order Note
|
|
@@ -15842,6 +15990,15 @@ export declare const OrdersApiFp: (configuration?: Configuration) => {
|
|
|
15842
15990
|
* @throws {RequiredError}
|
|
15843
15991
|
*/
|
|
15844
15992
|
getGetOrders(pageSize?: number, page?: number, search?: string, fulfillable?: boolean | null, status?: GetGetOrdersStatusEnum, filter?: GetGetOrdersFilterEnum, customerId?: number | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderSummariesModel>>;
|
|
15993
|
+
/**
|
|
15994
|
+
* Change Payment Status (Admin)
|
|
15995
|
+
* @summary Change Payment Status (Admin)
|
|
15996
|
+
* @param {number} id Order ID
|
|
15997
|
+
* @param {boolean} id2 Paid
|
|
15998
|
+
* @param {*} [options] Override http request option.
|
|
15999
|
+
* @throws {RequiredError}
|
|
16000
|
+
*/
|
|
16001
|
+
getUpdatePaymentStatus(id: number, id2: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderDetailsDTO>>;
|
|
15845
16002
|
/**
|
|
15846
16003
|
* Add Order Note
|
|
15847
16004
|
* @summary Add Order Note
|
|
@@ -16082,6 +16239,15 @@ export declare const OrdersApiFactory: (configuration?: Configuration, basePath?
|
|
|
16082
16239
|
* @throws {RequiredError}
|
|
16083
16240
|
*/
|
|
16084
16241
|
getGetOrders(pageSize?: number, page?: number, search?: string, fulfillable?: boolean | null, status?: GetGetOrdersStatusEnum, filter?: GetGetOrdersFilterEnum, customerId?: number | null, options?: RawAxiosRequestConfig): AxiosPromise<OrderSummariesModel>;
|
|
16242
|
+
/**
|
|
16243
|
+
* Change Payment Status (Admin)
|
|
16244
|
+
* @summary Change Payment Status (Admin)
|
|
16245
|
+
* @param {number} id Order ID
|
|
16246
|
+
* @param {boolean} id2 Paid
|
|
16247
|
+
* @param {*} [options] Override http request option.
|
|
16248
|
+
* @throws {RequiredError}
|
|
16249
|
+
*/
|
|
16250
|
+
getUpdatePaymentStatus(id: number, id2: boolean, options?: RawAxiosRequestConfig): AxiosPromise<OrderDetailsDTO>;
|
|
16085
16251
|
/**
|
|
16086
16252
|
* Add Order Note
|
|
16087
16253
|
* @summary Add Order Note
|
|
@@ -16334,6 +16500,16 @@ export declare class OrdersApi extends BaseAPI {
|
|
|
16334
16500
|
* @memberof OrdersApi
|
|
16335
16501
|
*/
|
|
16336
16502
|
getGetOrders(pageSize?: number, page?: number, search?: string, fulfillable?: boolean | null, status?: GetGetOrdersStatusEnum, filter?: GetGetOrdersFilterEnum, customerId?: number | null, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OrderSummariesModel, any, {}>>;
|
|
16503
|
+
/**
|
|
16504
|
+
* Change Payment Status (Admin)
|
|
16505
|
+
* @summary Change Payment Status (Admin)
|
|
16506
|
+
* @param {number} id Order ID
|
|
16507
|
+
* @param {boolean} id2 Paid
|
|
16508
|
+
* @param {*} [options] Override http request option.
|
|
16509
|
+
* @throws {RequiredError}
|
|
16510
|
+
* @memberof OrdersApi
|
|
16511
|
+
*/
|
|
16512
|
+
getUpdatePaymentStatus(id: number, id2: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OrderDetailsDTO, any, {}>>;
|
|
16337
16513
|
/**
|
|
16338
16514
|
* Add Order Note
|
|
16339
16515
|
* @summary Add Order Note
|
|
@@ -18190,6 +18366,14 @@ export declare class SIPTrunksApi extends BaseAPI {
|
|
|
18190
18366
|
* @export
|
|
18191
18367
|
*/
|
|
18192
18368
|
export declare const SMSApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
18369
|
+
/**
|
|
18370
|
+
* Create SMS Account
|
|
18371
|
+
* @summary Create SMS Account
|
|
18372
|
+
* @param {SmsAccountRequestDTO} [smsAccountRequestDTO] SMS Account Request
|
|
18373
|
+
* @param {*} [options] Override http request option.
|
|
18374
|
+
* @throws {RequiredError}
|
|
18375
|
+
*/
|
|
18376
|
+
postCreateSmsAccount: (smsAccountRequestDTO?: SmsAccountRequestDTO, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
18193
18377
|
/**
|
|
18194
18378
|
* Send SMS
|
|
18195
18379
|
* @param {string} authorization Bearer Token
|
|
@@ -18204,6 +18388,14 @@ export declare const SMSApiAxiosParamCreator: (configuration?: Configuration) =>
|
|
|
18204
18388
|
* @export
|
|
18205
18389
|
*/
|
|
18206
18390
|
export declare const SMSApiFp: (configuration?: Configuration) => {
|
|
18391
|
+
/**
|
|
18392
|
+
* Create SMS Account
|
|
18393
|
+
* @summary Create SMS Account
|
|
18394
|
+
* @param {SmsAccountRequestDTO} [smsAccountRequestDTO] SMS Account Request
|
|
18395
|
+
* @param {*} [options] Override http request option.
|
|
18396
|
+
* @throws {RequiredError}
|
|
18397
|
+
*/
|
|
18398
|
+
postCreateSmsAccount(smsAccountRequestDTO?: SmsAccountRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SmsAccountDTO>>;
|
|
18207
18399
|
/**
|
|
18208
18400
|
* Send SMS
|
|
18209
18401
|
* @param {string} authorization Bearer Token
|
|
@@ -18218,6 +18410,14 @@ export declare const SMSApiFp: (configuration?: Configuration) => {
|
|
|
18218
18410
|
* @export
|
|
18219
18411
|
*/
|
|
18220
18412
|
export declare const SMSApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
18413
|
+
/**
|
|
18414
|
+
* Create SMS Account
|
|
18415
|
+
* @summary Create SMS Account
|
|
18416
|
+
* @param {SmsAccountRequestDTO} [smsAccountRequestDTO] SMS Account Request
|
|
18417
|
+
* @param {*} [options] Override http request option.
|
|
18418
|
+
* @throws {RequiredError}
|
|
18419
|
+
*/
|
|
18420
|
+
postCreateSmsAccount(smsAccountRequestDTO?: SmsAccountRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<SmsAccountDTO>;
|
|
18221
18421
|
/**
|
|
18222
18422
|
* Send SMS
|
|
18223
18423
|
* @param {string} authorization Bearer Token
|
|
@@ -18234,6 +18434,15 @@ export declare const SMSApiFactory: (configuration?: Configuration, basePath?: s
|
|
|
18234
18434
|
* @extends {BaseAPI}
|
|
18235
18435
|
*/
|
|
18236
18436
|
export declare class SMSApi extends BaseAPI {
|
|
18437
|
+
/**
|
|
18438
|
+
* Create SMS Account
|
|
18439
|
+
* @summary Create SMS Account
|
|
18440
|
+
* @param {SmsAccountRequestDTO} [smsAccountRequestDTO] SMS Account Request
|
|
18441
|
+
* @param {*} [options] Override http request option.
|
|
18442
|
+
* @throws {RequiredError}
|
|
18443
|
+
* @memberof SMSApi
|
|
18444
|
+
*/
|
|
18445
|
+
postCreateSmsAccount(smsAccountRequestDTO?: SmsAccountRequestDTO, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SmsAccountDTO, any, {}>>;
|
|
18237
18446
|
/**
|
|
18238
18447
|
* Send SMS
|
|
18239
18448
|
* @param {string} authorization Bearer Token
|
package/dist/api.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
/**
|
|
5
5
|
* Yellowgrid
|
|
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://api.yellowgrid.
|
|
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://api.local.yellowgrid.co.uk` For questions or technical support, please contact support@yellowgrid.co.uk.
|
|
7
7
|
*
|
|
8
8
|
* The version of the OpenAPI document: 0
|
|
9
9
|
*
|
|
@@ -84,9 +84,9 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
84
84
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
85
85
|
};
|
|
86
86
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
87
|
-
exports.
|
|
88
|
-
exports.
|
|
89
|
-
exports.PostAddWebhookWebhookUriEnum = exports.WebhooksApi = exports.WebhooksApiFactory = exports.WebhooksApiFp = exports.WebhooksApiAxiosParamCreator = exports.TicketsApi = exports.TicketsApiFactory = exports.TicketsApiFp = exports.TicketsApiAxiosParamCreator = exports.SystemApi = exports.SystemApiFactory = exports.SystemApiFp = exports.SystemApiAxiosParamCreator = exports.StockManagementApi = exports.StockManagementApiFactory = exports.StockManagementApiFp = exports.StockManagementApiAxiosParamCreator = exports.ShippingApi = exports.ShippingApiFactory = exports.ShippingApiFp = exports.ShippingApiAxiosParamCreator = exports.ServicesApi = exports.ServicesApiFactory = exports.ServicesApiFp = exports.ServicesApiAxiosParamCreator = exports.SMSApi = exports.SMSApiFactory = exports.SMSApiFp = exports.SMSApiAxiosParamCreator = exports.SIPTrunksApi = exports.SIPTrunksApiFactory = exports.SIPTrunksApiFp = exports.SIPTrunksApiAxiosParamCreator = exports.ProvisioningApi = exports.ProvisioningApiFactory = exports.ProvisioningApiFp = exports.ProvisioningApiAxiosParamCreator = exports.GetGetLegacyStockListFormatEnum = exports.ProductsApi = exports.ProductsApiFactory = exports.ProductsApiFp = exports.ProductsApiAxiosParamCreator = exports.PostSendPriceListCategoryEnum = void 0;
|
|
87
|
+
exports.Class3CXInstallationWizardApi = exports.Class3CXInstallationWizardApiFactory = exports.Class3CXInstallationWizardApiFp = exports.Class3CXInstallationWizardApiAxiosParamCreator = exports.Class3CXApi = exports.Class3CXApiFactory = exports.Class3CXApiFp = exports.Class3CXApiAxiosParamCreator = exports.CRMApi = exports.CRMApiFactory = exports.CRMApiFp = exports.CRMApiAxiosParamCreator = exports.AccountsApi = exports.AccountsApiFactory = exports.AccountsApiFp = exports.AccountsApiAxiosParamCreator = exports.UpgradeRequestModelSchoolTypeEnum = exports.UpgradeRequestModelLicenceTypeEnum = exports.TcxWizardModelInstallationStatusEnum = exports.TcxWizardModelInstallTypeEnum = exports.TcxSetupEntityRegionEnum = exports.TcxSetupEntityInstallTypeEnum = exports.TcxMultiTenantModelPackageEnum = exports.StockOrderModelPaidEnum = exports.StockOrderModelDeliveryMethodEnum = exports.SmsResponseModelEventTypeEnum = exports.SmsPhoneNumberModelStatusEnum = exports.SmsAccountRequestDTOTypeEnum = exports.SmsAccountRequestDTOProviderEnum = exports.SipTrunkChangeResponseModelTypeEnum = exports.ShippingServiceModelCourierEnum = exports.ShippingServiceDTOCourierEnum = exports.ShippingRequestDTOPrinterEnum = exports.ShippingRequestDTOCourierEnum = exports.ShipmentRequestDTOCourierEnum = exports.ShipmentDTOCourierEnum = exports.ServiceStatusDTOStatusEnum = exports.ServiceHealthDTOGlobalStatusEnum = exports.OrderTotalModelCurrencyEnum = exports.OrderRequestModelSchoolTypeEnum = exports.OrderRequestModelLicenceTypeEnum = exports.MultiTenantChangeResponseModelTypeEnum = exports.ItemDiscountEntityTypeEnum = exports.HostingRegionDTOCodeEnum = exports.HostingChangeResponseModelTypeEnum = exports.EventDTOStatusEnum = exports.DivertResponseModelStatusEnum = exports.AuditLogEntityTypeEnum = exports.AuditLogEntityActionEnum = exports.AdminUserModelRoleEnum = void 0;
|
|
88
|
+
exports.GetGetPriceListCategoryEnum = exports.GetGetPriceListFormatEnum = exports.GetGetPriceListTypeEnum = exports.PricingApi = exports.PricingApiFactory = exports.PricingApiFp = exports.PricingApiAxiosParamCreator = exports.PostPrintShippingLabelPrinterEnum = exports.GetGetOrdersFilterEnum = exports.GetGetOrdersStatusEnum = exports.OrdersApi = exports.OrdersApiFactory = exports.OrdersApiFp = exports.OrdersApiAxiosParamCreator = exports.PostAuthoriseScopeEnum = exports.PostAccessTokenTokenExchangeTypeEnum = exports.PostAccessTokenScopeEnum = exports.PostAccessTokenGrantTypeEnum = exports.OAuth20Api = exports.OAuth20ApiFactory = exports.OAuth20ApiFp = exports.OAuth20ApiAxiosParamCreator = exports.NumberPortingApi = exports.NumberPortingApiFactory = exports.NumberPortingApiFp = exports.NumberPortingApiAxiosParamCreator = exports.MyPBXToolsApi = exports.MyPBXToolsApiFactory = exports.MyPBXToolsApiFp = exports.MyPBXToolsApiAxiosParamCreator = exports.GetGetTenantsStatusEnum = exports.Class3CXMultiTenantApi = exports.Class3CXMultiTenantApiFactory = exports.Class3CXMultiTenantApiFp = exports.Class3CXMultiTenantApiAxiosParamCreator = exports.GetGetPriceSchoolTypeEnum = exports.GetGetPriceLicenceTypeEnum = exports.Class3CXIntegrationsApi = exports.Class3CXIntegrationsApiFactory = exports.Class3CXIntegrationsApiFp = exports.Class3CXIntegrationsApiAxiosParamCreator = exports.PostResizeInstanceSizeEnum = exports.PostFailoverInstanceTypeEnum = exports.GetGetInstallationsInstallTypeEnum = exports.GetGetInstallationsHostingEnum = exports.GetGetInstallationsStatusEnum = exports.Class3CXInstallationsApi = exports.Class3CXInstallationsApiFactory = exports.Class3CXInstallationsApiFp = exports.Class3CXInstallationsApiAxiosParamCreator = void 0;
|
|
89
|
+
exports.PostAddWebhookWebhookUriEnum = exports.WebhooksApi = exports.WebhooksApiFactory = exports.WebhooksApiFp = exports.WebhooksApiAxiosParamCreator = exports.TicketsApi = exports.TicketsApiFactory = exports.TicketsApiFp = exports.TicketsApiAxiosParamCreator = exports.SystemApi = exports.SystemApiFactory = exports.SystemApiFp = exports.SystemApiAxiosParamCreator = exports.StockManagementApi = exports.StockManagementApiFactory = exports.StockManagementApiFp = exports.StockManagementApiAxiosParamCreator = exports.ShippingApi = exports.ShippingApiFactory = exports.ShippingApiFp = exports.ShippingApiAxiosParamCreator = exports.ServicesApi = exports.ServicesApiFactory = exports.ServicesApiFp = exports.ServicesApiAxiosParamCreator = exports.SMSApi = exports.SMSApiFactory = exports.SMSApiFp = exports.SMSApiAxiosParamCreator = exports.SIPTrunksApi = exports.SIPTrunksApiFactory = exports.SIPTrunksApiFp = exports.SIPTrunksApiAxiosParamCreator = exports.ProvisioningApi = exports.ProvisioningApiFactory = exports.ProvisioningApiFp = exports.ProvisioningApiAxiosParamCreator = exports.GetGetLegacyStockListFormatEnum = exports.ProductsApi = exports.ProductsApiFactory = exports.ProductsApiFp = exports.ProductsApiAxiosParamCreator = exports.PostSendPriceListCategoryEnum = exports.PostSendPriceListFormatEnum = exports.PostSendPriceListTypeEnum = void 0;
|
|
90
90
|
var axios_1 = require("axios");
|
|
91
91
|
// Some imports not used depending on template conditions
|
|
92
92
|
// @ts-ignore
|
|
@@ -326,6 +326,16 @@ exports.SipTrunkChangeResponseModelTypeEnum = {
|
|
|
326
326
|
Fraud: 'Fraud',
|
|
327
327
|
CallBarring: 'Call Barring'
|
|
328
328
|
};
|
|
329
|
+
exports.SmsAccountRequestDTOProviderEnum = {
|
|
330
|
+
NUMBER_1: 1
|
|
331
|
+
};
|
|
332
|
+
exports.SmsAccountRequestDTOTypeEnum = {
|
|
333
|
+
Local: 'local',
|
|
334
|
+
TollFree: 'toll_free',
|
|
335
|
+
Mobile: 'mobile',
|
|
336
|
+
National: 'national',
|
|
337
|
+
SharedCost: 'shared_cost'
|
|
338
|
+
};
|
|
329
339
|
exports.SmsPhoneNumberModelStatusEnum = {
|
|
330
340
|
Queued: 'queued',
|
|
331
341
|
Sending: 'sending',
|
|
@@ -9798,6 +9808,8 @@ exports.PostAccessTokenScopeEnum = {
|
|
|
9798
9808
|
ProductsRead: 'products.read',
|
|
9799
9809
|
ProvisioningRead: 'provisioning.read',
|
|
9800
9810
|
ProvisioningWrite: 'provisioning.write',
|
|
9811
|
+
SmsRead: 'sms.read',
|
|
9812
|
+
SmsWrite: 'sms.write',
|
|
9801
9813
|
TrunksRead: 'trunks.read',
|
|
9802
9814
|
TrunksWrite: 'trunks.write',
|
|
9803
9815
|
TcxIntegrationsRead: 'tcx_integrations.read',
|
|
@@ -9836,6 +9848,8 @@ exports.PostAuthoriseScopeEnum = {
|
|
|
9836
9848
|
ProductsRead: 'products.read',
|
|
9837
9849
|
ProvisioningRead: 'provisioning.read',
|
|
9838
9850
|
ProvisioningWrite: 'provisioning.write',
|
|
9851
|
+
SmsRead: 'sms.read',
|
|
9852
|
+
SmsWrite: 'sms.write',
|
|
9839
9853
|
TrunksRead: 'trunks.read',
|
|
9840
9854
|
TrunksWrite: 'trunks.write',
|
|
9841
9855
|
TcxIntegrationsRead: 'tcx_integrations.read',
|
|
@@ -10264,6 +10278,49 @@ var OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
10264
10278
|
});
|
|
10265
10279
|
});
|
|
10266
10280
|
},
|
|
10281
|
+
/**
|
|
10282
|
+
* Change Payment Status (Admin)
|
|
10283
|
+
* @summary Change Payment Status (Admin)
|
|
10284
|
+
* @param {number} id Order ID
|
|
10285
|
+
* @param {boolean} id2 Paid
|
|
10286
|
+
* @param {*} [options] Override http request option.
|
|
10287
|
+
* @throws {RequiredError}
|
|
10288
|
+
*/
|
|
10289
|
+
getUpdatePaymentStatus: function (id_1, id2_1) {
|
|
10290
|
+
var args_1 = [];
|
|
10291
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
10292
|
+
args_1[_i - 2] = arguments[_i];
|
|
10293
|
+
}
|
|
10294
|
+
return __awaiter(_this, __spreadArray([id_1, id2_1], args_1, true), void 0, function (id, id2, options) {
|
|
10295
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
10296
|
+
if (options === void 0) { options = {}; }
|
|
10297
|
+
return __generator(this, function (_a) {
|
|
10298
|
+
// verify required parameter 'id' is not null or undefined
|
|
10299
|
+
(0, common_1.assertParamExists)('getUpdatePaymentStatus', 'id', id);
|
|
10300
|
+
// verify required parameter 'id2' is not null or undefined
|
|
10301
|
+
(0, common_1.assertParamExists)('getUpdatePaymentStatus', 'id2', id2);
|
|
10302
|
+
localVarPath = "/admin/orders/{id}/paid"
|
|
10303
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
10304
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10305
|
+
if (configuration) {
|
|
10306
|
+
baseOptions = configuration.baseOptions;
|
|
10307
|
+
}
|
|
10308
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
10309
|
+
localVarHeaderParameter = {};
|
|
10310
|
+
localVarQueryParameter = {};
|
|
10311
|
+
if (id2 !== undefined) {
|
|
10312
|
+
localVarQueryParameter['id'] = id2;
|
|
10313
|
+
}
|
|
10314
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10315
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10316
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10317
|
+
return [2 /*return*/, {
|
|
10318
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10319
|
+
options: localVarRequestOptions,
|
|
10320
|
+
}];
|
|
10321
|
+
});
|
|
10322
|
+
});
|
|
10323
|
+
},
|
|
10267
10324
|
/**
|
|
10268
10325
|
* Add Order Note
|
|
10269
10326
|
* @summary Add Order Note
|
|
@@ -11165,6 +11222,30 @@ var OrdersApiFp = function (configuration) {
|
|
|
11165
11222
|
});
|
|
11166
11223
|
});
|
|
11167
11224
|
},
|
|
11225
|
+
/**
|
|
11226
|
+
* Change Payment Status (Admin)
|
|
11227
|
+
* @summary Change Payment Status (Admin)
|
|
11228
|
+
* @param {number} id Order ID
|
|
11229
|
+
* @param {boolean} id2 Paid
|
|
11230
|
+
* @param {*} [options] Override http request option.
|
|
11231
|
+
* @throws {RequiredError}
|
|
11232
|
+
*/
|
|
11233
|
+
getUpdatePaymentStatus: function (id, id2, options) {
|
|
11234
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
11235
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
11236
|
+
var _a, _b, _c;
|
|
11237
|
+
return __generator(this, function (_d) {
|
|
11238
|
+
switch (_d.label) {
|
|
11239
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getUpdatePaymentStatus(id, id2, options)];
|
|
11240
|
+
case 1:
|
|
11241
|
+
localVarAxiosArgs = _d.sent();
|
|
11242
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
11243
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.getUpdatePaymentStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
11244
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
11245
|
+
}
|
|
11246
|
+
});
|
|
11247
|
+
});
|
|
11248
|
+
},
|
|
11168
11249
|
/**
|
|
11169
11250
|
* Add Order Note
|
|
11170
11251
|
* @summary Add Order Note
|
|
@@ -11654,6 +11735,17 @@ var OrdersApiFactory = function (configuration, basePath, axios) {
|
|
|
11654
11735
|
getGetOrders: function (pageSize, page, search, fulfillable, status, filter, customerId, options) {
|
|
11655
11736
|
return localVarFp.getGetOrders(pageSize, page, search, fulfillable, status, filter, customerId, options).then(function (request) { return request(axios, basePath); });
|
|
11656
11737
|
},
|
|
11738
|
+
/**
|
|
11739
|
+
* Change Payment Status (Admin)
|
|
11740
|
+
* @summary Change Payment Status (Admin)
|
|
11741
|
+
* @param {number} id Order ID
|
|
11742
|
+
* @param {boolean} id2 Paid
|
|
11743
|
+
* @param {*} [options] Override http request option.
|
|
11744
|
+
* @throws {RequiredError}
|
|
11745
|
+
*/
|
|
11746
|
+
getUpdatePaymentStatus: function (id, id2, options) {
|
|
11747
|
+
return localVarFp.getUpdatePaymentStatus(id, id2, options).then(function (request) { return request(axios, basePath); });
|
|
11748
|
+
},
|
|
11657
11749
|
/**
|
|
11658
11750
|
* Add Order Note
|
|
11659
11751
|
* @summary Add Order Note
|
|
@@ -11972,6 +12064,19 @@ var OrdersApi = /** @class */ (function (_super) {
|
|
|
11972
12064
|
var _this = this;
|
|
11973
12065
|
return (0, exports.OrdersApiFp)(this.configuration).getGetOrders(pageSize, page, search, fulfillable, status, filter, customerId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
11974
12066
|
};
|
|
12067
|
+
/**
|
|
12068
|
+
* Change Payment Status (Admin)
|
|
12069
|
+
* @summary Change Payment Status (Admin)
|
|
12070
|
+
* @param {number} id Order ID
|
|
12071
|
+
* @param {boolean} id2 Paid
|
|
12072
|
+
* @param {*} [options] Override http request option.
|
|
12073
|
+
* @throws {RequiredError}
|
|
12074
|
+
* @memberof OrdersApi
|
|
12075
|
+
*/
|
|
12076
|
+
OrdersApi.prototype.getUpdatePaymentStatus = function (id, id2, options) {
|
|
12077
|
+
var _this = this;
|
|
12078
|
+
return (0, exports.OrdersApiFp)(this.configuration).getUpdatePaymentStatus(id, id2, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
12079
|
+
};
|
|
11975
12080
|
/**
|
|
11976
12081
|
* Add Order Note
|
|
11977
12082
|
* @summary Add Order Note
|
|
@@ -16042,6 +16147,42 @@ exports.SIPTrunksApi = SIPTrunksApi;
|
|
|
16042
16147
|
var SMSApiAxiosParamCreator = function (configuration) {
|
|
16043
16148
|
var _this = this;
|
|
16044
16149
|
return {
|
|
16150
|
+
/**
|
|
16151
|
+
* Create SMS Account
|
|
16152
|
+
* @summary Create SMS Account
|
|
16153
|
+
* @param {SmsAccountRequestDTO} [smsAccountRequestDTO] SMS Account Request
|
|
16154
|
+
* @param {*} [options] Override http request option.
|
|
16155
|
+
* @throws {RequiredError}
|
|
16156
|
+
*/
|
|
16157
|
+
postCreateSmsAccount: function (smsAccountRequestDTO_1) {
|
|
16158
|
+
var args_1 = [];
|
|
16159
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
16160
|
+
args_1[_i - 1] = arguments[_i];
|
|
16161
|
+
}
|
|
16162
|
+
return __awaiter(_this, __spreadArray([smsAccountRequestDTO_1], args_1, true), void 0, function (smsAccountRequestDTO, options) {
|
|
16163
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
16164
|
+
if (options === void 0) { options = {}; }
|
|
16165
|
+
return __generator(this, function (_a) {
|
|
16166
|
+
localVarPath = "/messaging/sms/account";
|
|
16167
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
16168
|
+
if (configuration) {
|
|
16169
|
+
baseOptions = configuration.baseOptions;
|
|
16170
|
+
}
|
|
16171
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
16172
|
+
localVarHeaderParameter = {};
|
|
16173
|
+
localVarQueryParameter = {};
|
|
16174
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16175
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
16176
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16177
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
16178
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(smsAccountRequestDTO, localVarRequestOptions, configuration);
|
|
16179
|
+
return [2 /*return*/, {
|
|
16180
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
16181
|
+
options: localVarRequestOptions,
|
|
16182
|
+
}];
|
|
16183
|
+
});
|
|
16184
|
+
});
|
|
16185
|
+
},
|
|
16045
16186
|
/**
|
|
16046
16187
|
* Send SMS
|
|
16047
16188
|
* @param {string} authorization Bearer Token
|
|
@@ -16093,6 +16234,29 @@ exports.SMSApiAxiosParamCreator = SMSApiAxiosParamCreator;
|
|
|
16093
16234
|
var SMSApiFp = function (configuration) {
|
|
16094
16235
|
var localVarAxiosParamCreator = (0, exports.SMSApiAxiosParamCreator)(configuration);
|
|
16095
16236
|
return {
|
|
16237
|
+
/**
|
|
16238
|
+
* Create SMS Account
|
|
16239
|
+
* @summary Create SMS Account
|
|
16240
|
+
* @param {SmsAccountRequestDTO} [smsAccountRequestDTO] SMS Account Request
|
|
16241
|
+
* @param {*} [options] Override http request option.
|
|
16242
|
+
* @throws {RequiredError}
|
|
16243
|
+
*/
|
|
16244
|
+
postCreateSmsAccount: function (smsAccountRequestDTO, options) {
|
|
16245
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
16246
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
16247
|
+
var _a, _b, _c;
|
|
16248
|
+
return __generator(this, function (_d) {
|
|
16249
|
+
switch (_d.label) {
|
|
16250
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postCreateSmsAccount(smsAccountRequestDTO, options)];
|
|
16251
|
+
case 1:
|
|
16252
|
+
localVarAxiosArgs = _d.sent();
|
|
16253
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
16254
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SMSApi.postCreateSmsAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
16255
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
16256
|
+
}
|
|
16257
|
+
});
|
|
16258
|
+
});
|
|
16259
|
+
},
|
|
16096
16260
|
/**
|
|
16097
16261
|
* Send SMS
|
|
16098
16262
|
* @param {string} authorization Bearer Token
|
|
@@ -16126,6 +16290,16 @@ exports.SMSApiFp = SMSApiFp;
|
|
|
16126
16290
|
var SMSApiFactory = function (configuration, basePath, axios) {
|
|
16127
16291
|
var localVarFp = (0, exports.SMSApiFp)(configuration);
|
|
16128
16292
|
return {
|
|
16293
|
+
/**
|
|
16294
|
+
* Create SMS Account
|
|
16295
|
+
* @summary Create SMS Account
|
|
16296
|
+
* @param {SmsAccountRequestDTO} [smsAccountRequestDTO] SMS Account Request
|
|
16297
|
+
* @param {*} [options] Override http request option.
|
|
16298
|
+
* @throws {RequiredError}
|
|
16299
|
+
*/
|
|
16300
|
+
postCreateSmsAccount: function (smsAccountRequestDTO, options) {
|
|
16301
|
+
return localVarFp.postCreateSmsAccount(smsAccountRequestDTO, options).then(function (request) { return request(axios, basePath); });
|
|
16302
|
+
},
|
|
16129
16303
|
/**
|
|
16130
16304
|
* Send SMS
|
|
16131
16305
|
* @param {string} authorization Bearer Token
|
|
@@ -16150,6 +16324,18 @@ var SMSApi = /** @class */ (function (_super) {
|
|
|
16150
16324
|
function SMSApi() {
|
|
16151
16325
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
16152
16326
|
}
|
|
16327
|
+
/**
|
|
16328
|
+
* Create SMS Account
|
|
16329
|
+
* @summary Create SMS Account
|
|
16330
|
+
* @param {SmsAccountRequestDTO} [smsAccountRequestDTO] SMS Account Request
|
|
16331
|
+
* @param {*} [options] Override http request option.
|
|
16332
|
+
* @throws {RequiredError}
|
|
16333
|
+
* @memberof SMSApi
|
|
16334
|
+
*/
|
|
16335
|
+
SMSApi.prototype.postCreateSmsAccount = function (smsAccountRequestDTO, options) {
|
|
16336
|
+
var _this = this;
|
|
16337
|
+
return (0, exports.SMSApiFp)(this.configuration).postCreateSmsAccount(smsAccountRequestDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
16338
|
+
};
|
|
16153
16339
|
/**
|
|
16154
16340
|
* Send SMS
|
|
16155
16341
|
* @param {string} authorization Bearer Token
|
package/dist/base.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Yellowgrid
|
|
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://api.yellowgrid.
|
|
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://api.local.yellowgrid.co.uk` 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/base.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
/**
|
|
5
5
|
* Yellowgrid
|
|
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://api.yellowgrid.
|
|
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://api.local.yellowgrid.co.uk` 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,7 +30,7 @@ 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://api.yellowgrid.
|
|
33
|
+
exports.BASE_PATH = "https://api.local.yellowgrid.co.uk".replace(/\/+$/, "");
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @export
|
package/dist/common.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Yellowgrid
|
|
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://api.yellowgrid.
|
|
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://api.local.yellowgrid.co.uk` For questions or technical support, please contact support@yellowgrid.co.uk.
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 0
|
|
6
6
|
*
|