yellowgrid-api-ts 3.2.239 → 3.2.241
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 +9 -0
- package/README.md +11 -0
- package/api.ts +378 -0
- package/dist/api.d.ts +296 -0
- package/dist/api.js +214 -4
- package/dist/models/GraphTypeEnum.d.ts +13 -0
- package/dist/models/GraphTypeEnum.js +15 -0
- package/dist/models/ReportEnum.d.ts +53 -0
- package/dist/models/ReportEnum.js +55 -0
- package/docs/AccountsApi.md +48 -0
- package/docs/AxisDataDTO.md +25 -0
- package/docs/CustomerCoordinatesDTO.md +31 -0
- package/docs/GraphDTO.md +33 -0
- package/docs/PostGenerateReport200Response.md +36 -0
- package/docs/ReportRequestDTO.md +37 -0
- package/docs/ReportsApi.md +55 -0
- package/docs/SeriesDTO.md +27 -0
- package/docs/TableDTO.md +25 -0
- package/docs/TableDataDTO.md +21 -0
- package/docs/TableRowDTO.md +21 -0
- package/models/GraphTypeEnum.ts +14 -0
- package/models/ReportEnum.ts +54 -0
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -1020,6 +1020,30 @@ export interface AuthCodeResponseModel {
|
|
|
1020
1020
|
*/
|
|
1021
1021
|
'redirect_uri'?: string | null;
|
|
1022
1022
|
}
|
|
1023
|
+
/**
|
|
1024
|
+
* Graph Axis Data
|
|
1025
|
+
*/
|
|
1026
|
+
export interface AxisDataDTO {
|
|
1027
|
+
/**
|
|
1028
|
+
* Type
|
|
1029
|
+
*/
|
|
1030
|
+
'type'?: AxisDataDTOTypeEnum;
|
|
1031
|
+
/**
|
|
1032
|
+
* Data
|
|
1033
|
+
*/
|
|
1034
|
+
'data'?: Array<string> | null;
|
|
1035
|
+
/**
|
|
1036
|
+
* Name
|
|
1037
|
+
*/
|
|
1038
|
+
'name'?: string | null;
|
|
1039
|
+
}
|
|
1040
|
+
export declare const AxisDataDTOTypeEnum: {
|
|
1041
|
+
readonly Value: "value";
|
|
1042
|
+
readonly Category: "category";
|
|
1043
|
+
readonly Time: "time";
|
|
1044
|
+
readonly Log: "log";
|
|
1045
|
+
};
|
|
1046
|
+
export type AxisDataDTOTypeEnum = typeof AxisDataDTOTypeEnum[keyof typeof AxisDataDTOTypeEnum];
|
|
1023
1047
|
/**
|
|
1024
1048
|
* Basic Order Item
|
|
1025
1049
|
*/
|
|
@@ -1844,6 +1868,35 @@ export interface CrmNoteModel {
|
|
|
1844
1868
|
*/
|
|
1845
1869
|
'callId'?: number;
|
|
1846
1870
|
}
|
|
1871
|
+
/**
|
|
1872
|
+
* Customer Coordinates
|
|
1873
|
+
*/
|
|
1874
|
+
export interface CustomerCoordinatesDTO {
|
|
1875
|
+
/**
|
|
1876
|
+
* ID
|
|
1877
|
+
*/
|
|
1878
|
+
'id'?: string;
|
|
1879
|
+
/**
|
|
1880
|
+
* Company
|
|
1881
|
+
*/
|
|
1882
|
+
'company'?: string;
|
|
1883
|
+
/**
|
|
1884
|
+
* 3CX Reseller ID
|
|
1885
|
+
*/
|
|
1886
|
+
'resellerId'?: string | null;
|
|
1887
|
+
/**
|
|
1888
|
+
* Post Code
|
|
1889
|
+
*/
|
|
1890
|
+
'postCode'?: string;
|
|
1891
|
+
/**
|
|
1892
|
+
* Latitude
|
|
1893
|
+
*/
|
|
1894
|
+
'latitude'?: string;
|
|
1895
|
+
/**
|
|
1896
|
+
* Longitude
|
|
1897
|
+
*/
|
|
1898
|
+
'longitude'?: string;
|
|
1899
|
+
}
|
|
1847
1900
|
/**
|
|
1848
1901
|
* SIP Trunk Customer
|
|
1849
1902
|
*/
|
|
@@ -2600,6 +2653,73 @@ export interface GetGetPrice200Response {
|
|
|
2600
2653
|
export interface GetGetRecording200Response {
|
|
2601
2654
|
'recordingData'?: string;
|
|
2602
2655
|
}
|
|
2656
|
+
/**
|
|
2657
|
+
* Graph
|
|
2658
|
+
*/
|
|
2659
|
+
export interface GraphDTO {
|
|
2660
|
+
/**
|
|
2661
|
+
* Title
|
|
2662
|
+
*/
|
|
2663
|
+
'title'?: string;
|
|
2664
|
+
/**
|
|
2665
|
+
* X Axis
|
|
2666
|
+
*/
|
|
2667
|
+
'xAxis'?: Array<AxisDataDTO>;
|
|
2668
|
+
/**
|
|
2669
|
+
* Y Axis
|
|
2670
|
+
*/
|
|
2671
|
+
'yAxis'?: Array<AxisDataDTO>;
|
|
2672
|
+
/**
|
|
2673
|
+
* Legend
|
|
2674
|
+
*/
|
|
2675
|
+
'legend'?: Array<string>;
|
|
2676
|
+
/**
|
|
2677
|
+
* Series
|
|
2678
|
+
*/
|
|
2679
|
+
'series'?: Array<SeriesDTO>;
|
|
2680
|
+
/**
|
|
2681
|
+
* Currency
|
|
2682
|
+
*/
|
|
2683
|
+
'currency'?: GraphDTOCurrencyEnum | null;
|
|
2684
|
+
/**
|
|
2685
|
+
* Locale
|
|
2686
|
+
*/
|
|
2687
|
+
'locale'?: string;
|
|
2688
|
+
}
|
|
2689
|
+
export declare const GraphDTOCurrencyEnum: {
|
|
2690
|
+
readonly Eur: "EUR";
|
|
2691
|
+
readonly Usd: "USD";
|
|
2692
|
+
readonly Jpy: "JPY";
|
|
2693
|
+
readonly Bgn: "BGN";
|
|
2694
|
+
readonly Czk: "CZK";
|
|
2695
|
+
readonly Dkk: "DKK";
|
|
2696
|
+
readonly Gbp: "GBP";
|
|
2697
|
+
readonly Huf: "HUF";
|
|
2698
|
+
readonly Pln: "PLN";
|
|
2699
|
+
readonly Ron: "RON";
|
|
2700
|
+
readonly Sek: "SEK";
|
|
2701
|
+
readonly Chf: "CHF";
|
|
2702
|
+
readonly Isk: "ISK";
|
|
2703
|
+
readonly Nok: "NOK";
|
|
2704
|
+
readonly Try: "TRY";
|
|
2705
|
+
readonly Aud: "AUD";
|
|
2706
|
+
readonly Brl: "BRL";
|
|
2707
|
+
readonly Cad: "CAD";
|
|
2708
|
+
readonly Cny: "CNY";
|
|
2709
|
+
readonly Hkd: "HKD";
|
|
2710
|
+
readonly Idr: "IDR";
|
|
2711
|
+
readonly Ils: "ILS";
|
|
2712
|
+
readonly Inr: "INR";
|
|
2713
|
+
readonly Krw: "KRW";
|
|
2714
|
+
readonly Mxn: "MXN";
|
|
2715
|
+
readonly Myr: "MYR";
|
|
2716
|
+
readonly Nzd: "NZD";
|
|
2717
|
+
readonly Php: "PHP";
|
|
2718
|
+
readonly Sgd: "SGD";
|
|
2719
|
+
readonly Thb: "THB";
|
|
2720
|
+
readonly Zar: "ZAR";
|
|
2721
|
+
};
|
|
2722
|
+
export type GraphDTOCurrencyEnum = typeof GraphDTOCurrencyEnum[keyof typeof GraphDTOCurrencyEnum];
|
|
2603
2723
|
/**
|
|
2604
2724
|
* Change Response
|
|
2605
2725
|
*/
|
|
@@ -4706,6 +4826,10 @@ export interface PostAddOrderNoteRequest {
|
|
|
4706
4826
|
export interface PostAddWebhook200Response {
|
|
4707
4827
|
'url'?: string;
|
|
4708
4828
|
}
|
|
4829
|
+
/**
|
|
4830
|
+
* @type PostGenerateReport200Response
|
|
4831
|
+
*/
|
|
4832
|
+
export type PostGenerateReport200Response = GraphDTO | TableDTO;
|
|
4709
4833
|
export interface PostGetClientCredentialsRequest {
|
|
4710
4834
|
/**
|
|
4711
4835
|
* OAuth 2.0 scopes
|
|
@@ -5290,6 +5414,65 @@ export interface RemoteStorageDTO {
|
|
|
5290
5414
|
*/
|
|
5291
5415
|
'region'?: string;
|
|
5292
5416
|
}
|
|
5417
|
+
/**
|
|
5418
|
+
* Report Request
|
|
5419
|
+
*/
|
|
5420
|
+
export interface ReportRequestDTO {
|
|
5421
|
+
/**
|
|
5422
|
+
* Report
|
|
5423
|
+
*/
|
|
5424
|
+
'report'?: ReportRequestDTOReportEnum;
|
|
5425
|
+
/**
|
|
5426
|
+
* Start
|
|
5427
|
+
*/
|
|
5428
|
+
'start'?: string | null;
|
|
5429
|
+
/**
|
|
5430
|
+
* End
|
|
5431
|
+
*/
|
|
5432
|
+
'end'?: string | null;
|
|
5433
|
+
/**
|
|
5434
|
+
* Month
|
|
5435
|
+
*/
|
|
5436
|
+
'month'?: number | null;
|
|
5437
|
+
/**
|
|
5438
|
+
* Year
|
|
5439
|
+
*/
|
|
5440
|
+
'year'?: number | null;
|
|
5441
|
+
/**
|
|
5442
|
+
* SKU
|
|
5443
|
+
*/
|
|
5444
|
+
'sku'?: string | null;
|
|
5445
|
+
/**
|
|
5446
|
+
* Price
|
|
5447
|
+
*/
|
|
5448
|
+
'price'?: number | null;
|
|
5449
|
+
/**
|
|
5450
|
+
* Recipients
|
|
5451
|
+
*/
|
|
5452
|
+
'recipients'?: Array<string> | null;
|
|
5453
|
+
/**
|
|
5454
|
+
* Graph Type
|
|
5455
|
+
*/
|
|
5456
|
+
'graphType'?: ReportRequestDTOGraphTypeEnum | null;
|
|
5457
|
+
}
|
|
5458
|
+
export declare const ReportRequestDTOReportEnum: {
|
|
5459
|
+
readonly _1: "1";
|
|
5460
|
+
readonly _2: "2";
|
|
5461
|
+
readonly _3: "3";
|
|
5462
|
+
readonly _4: "4";
|
|
5463
|
+
readonly _5: "5";
|
|
5464
|
+
readonly _6: "6";
|
|
5465
|
+
readonly _7: "7";
|
|
5466
|
+
readonly _8: "8";
|
|
5467
|
+
readonly _9: "9";
|
|
5468
|
+
readonly _10: "10";
|
|
5469
|
+
};
|
|
5470
|
+
export type ReportRequestDTOReportEnum = typeof ReportRequestDTOReportEnum[keyof typeof ReportRequestDTOReportEnum];
|
|
5471
|
+
export declare const ReportRequestDTOGraphTypeEnum: {
|
|
5472
|
+
readonly StackedArea: "stacked-area";
|
|
5473
|
+
readonly Table: "table";
|
|
5474
|
+
};
|
|
5475
|
+
export type ReportRequestDTOGraphTypeEnum = typeof ReportRequestDTOGraphTypeEnum[keyof typeof ReportRequestDTOGraphTypeEnum];
|
|
5293
5476
|
/**
|
|
5294
5477
|
* Resource Not Ready
|
|
5295
5478
|
*/
|
|
@@ -5420,6 +5603,31 @@ export interface ScopeModel {
|
|
|
5420
5603
|
*/
|
|
5421
5604
|
'description'?: string;
|
|
5422
5605
|
}
|
|
5606
|
+
/**
|
|
5607
|
+
* Graph Series Data
|
|
5608
|
+
*/
|
|
5609
|
+
export interface SeriesDTO {
|
|
5610
|
+
/**
|
|
5611
|
+
* Name
|
|
5612
|
+
*/
|
|
5613
|
+
'name'?: string;
|
|
5614
|
+
/**
|
|
5615
|
+
* Type
|
|
5616
|
+
*/
|
|
5617
|
+
'type'?: SeriesDTOTypeEnum;
|
|
5618
|
+
/**
|
|
5619
|
+
* Stack
|
|
5620
|
+
*/
|
|
5621
|
+
'stack'?: string | null;
|
|
5622
|
+
/**
|
|
5623
|
+
* Data
|
|
5624
|
+
*/
|
|
5625
|
+
'data'?: Array<string>;
|
|
5626
|
+
}
|
|
5627
|
+
export declare const SeriesDTOTypeEnum: {
|
|
5628
|
+
readonly Line: "line";
|
|
5629
|
+
};
|
|
5630
|
+
export type SeriesDTOTypeEnum = typeof SeriesDTOTypeEnum[keyof typeof SeriesDTOTypeEnum];
|
|
5423
5631
|
/**
|
|
5424
5632
|
* Service Health DTO
|
|
5425
5633
|
*/
|
|
@@ -7242,6 +7450,29 @@ export interface SupportTicketModel {
|
|
|
7242
7450
|
*/
|
|
7243
7451
|
'conversations'?: Array<ConversationModel>;
|
|
7244
7452
|
}
|
|
7453
|
+
/**
|
|
7454
|
+
* Table
|
|
7455
|
+
*/
|
|
7456
|
+
export interface TableDTO {
|
|
7457
|
+
/**
|
|
7458
|
+
* Title
|
|
7459
|
+
*/
|
|
7460
|
+
'title'?: string;
|
|
7461
|
+
'headers'?: TableRowDTO;
|
|
7462
|
+
/**
|
|
7463
|
+
* Rows
|
|
7464
|
+
*/
|
|
7465
|
+
'rows'?: Array<TableRowDTO>;
|
|
7466
|
+
}
|
|
7467
|
+
/**
|
|
7468
|
+
* Table Data
|
|
7469
|
+
*/
|
|
7470
|
+
export interface TableDataDTO {
|
|
7471
|
+
/**
|
|
7472
|
+
* Value
|
|
7473
|
+
*/
|
|
7474
|
+
'value'?: string;
|
|
7475
|
+
}
|
|
7245
7476
|
/**
|
|
7246
7477
|
* TableAttribsEntity
|
|
7247
7478
|
*/
|
|
@@ -7279,6 +7510,15 @@ export interface TableHistoryEntity {
|
|
|
7279
7510
|
*/
|
|
7280
7511
|
'page'?: number;
|
|
7281
7512
|
}
|
|
7513
|
+
/**
|
|
7514
|
+
* Table Row
|
|
7515
|
+
*/
|
|
7516
|
+
export interface TableRowDTO {
|
|
7517
|
+
/**
|
|
7518
|
+
* Table Data
|
|
7519
|
+
*/
|
|
7520
|
+
'data'?: Array<TableDataDTO>;
|
|
7521
|
+
}
|
|
7282
7522
|
/**
|
|
7283
7523
|
* 3CX Wizard Restore From Backup
|
|
7284
7524
|
*/
|
|
@@ -8934,6 +9174,12 @@ export declare const AccountsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
8934
9174
|
* @throws {RequiredError}
|
|
8935
9175
|
*/
|
|
8936
9176
|
getGetCustomerKeys: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
9177
|
+
/**
|
|
9178
|
+
* Get Customer Map
|
|
9179
|
+
* @param {*} [options] Override http request option.
|
|
9180
|
+
* @throws {RequiredError}
|
|
9181
|
+
*/
|
|
9182
|
+
getGetCustomerMap: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
8937
9183
|
/**
|
|
8938
9184
|
* Get Account Finance
|
|
8939
9185
|
* @param {string} id Account Xero ID
|
|
@@ -9310,6 +9556,12 @@ export declare const AccountsApiFp: (configuration?: Configuration) => {
|
|
|
9310
9556
|
* @throws {RequiredError}
|
|
9311
9557
|
*/
|
|
9312
9558
|
getGetCustomerKeys(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<TcxKeySummaryDTO>>>;
|
|
9559
|
+
/**
|
|
9560
|
+
* Get Customer Map
|
|
9561
|
+
* @param {*} [options] Override http request option.
|
|
9562
|
+
* @throws {RequiredError}
|
|
9563
|
+
*/
|
|
9564
|
+
getGetCustomerMap(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CustomerCoordinatesDTO>>>;
|
|
9313
9565
|
/**
|
|
9314
9566
|
* Get Account Finance
|
|
9315
9567
|
* @param {string} id Account Xero ID
|
|
@@ -9686,6 +9938,12 @@ export declare const AccountsApiFactory: (configuration?: Configuration, basePat
|
|
|
9686
9938
|
* @throws {RequiredError}
|
|
9687
9939
|
*/
|
|
9688
9940
|
getGetCustomerKeys(options?: RawAxiosRequestConfig): AxiosPromise<Array<TcxKeySummaryDTO>>;
|
|
9941
|
+
/**
|
|
9942
|
+
* Get Customer Map
|
|
9943
|
+
* @param {*} [options] Override http request option.
|
|
9944
|
+
* @throws {RequiredError}
|
|
9945
|
+
*/
|
|
9946
|
+
getGetCustomerMap(options?: RawAxiosRequestConfig): AxiosPromise<Array<CustomerCoordinatesDTO>>;
|
|
9689
9947
|
/**
|
|
9690
9948
|
* Get Account Finance
|
|
9691
9949
|
* @param {string} id Account Xero ID
|
|
@@ -10062,6 +10320,12 @@ export declare class AccountsApi extends BaseAPI {
|
|
|
10062
10320
|
* @throws {RequiredError}
|
|
10063
10321
|
*/
|
|
10064
10322
|
getGetCustomerKeys(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TcxKeySummaryDTO[], any, {}>>;
|
|
10323
|
+
/**
|
|
10324
|
+
* Get Customer Map
|
|
10325
|
+
* @param {*} [options] Override http request option.
|
|
10326
|
+
* @throws {RequiredError}
|
|
10327
|
+
*/
|
|
10328
|
+
getGetCustomerMap(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CustomerCoordinatesDTO[], any, {}>>;
|
|
10065
10329
|
/**
|
|
10066
10330
|
* Get Account Finance
|
|
10067
10331
|
* @param {string} id Account Xero ID
|
|
@@ -16440,6 +16704,14 @@ export declare const ReportsApiAxiosParamCreator: (configuration?: Configuration
|
|
|
16440
16704
|
* @throws {RequiredError}
|
|
16441
16705
|
*/
|
|
16442
16706
|
getGetStockReport: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
16707
|
+
/**
|
|
16708
|
+
* Generate Reports
|
|
16709
|
+
* @summary Generate Reports
|
|
16710
|
+
* @param {ReportRequestDTO} [reportRequestDTO] Report Request
|
|
16711
|
+
* @param {*} [options] Override http request option.
|
|
16712
|
+
* @throws {RequiredError}
|
|
16713
|
+
*/
|
|
16714
|
+
postGenerateReport: (reportRequestDTO?: ReportRequestDTO, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
16443
16715
|
};
|
|
16444
16716
|
/**
|
|
16445
16717
|
* ReportsApi - functional programming interface
|
|
@@ -16451,6 +16723,14 @@ export declare const ReportsApiFp: (configuration?: Configuration) => {
|
|
|
16451
16723
|
* @throws {RequiredError}
|
|
16452
16724
|
*/
|
|
16453
16725
|
getGetStockReport(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StockReportModel>>;
|
|
16726
|
+
/**
|
|
16727
|
+
* Generate Reports
|
|
16728
|
+
* @summary Generate Reports
|
|
16729
|
+
* @param {ReportRequestDTO} [reportRequestDTO] Report Request
|
|
16730
|
+
* @param {*} [options] Override http request option.
|
|
16731
|
+
* @throws {RequiredError}
|
|
16732
|
+
*/
|
|
16733
|
+
postGenerateReport(reportRequestDTO?: ReportRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PostGenerateReport200Response>>;
|
|
16454
16734
|
};
|
|
16455
16735
|
/**
|
|
16456
16736
|
* ReportsApi - factory interface
|
|
@@ -16462,6 +16742,14 @@ export declare const ReportsApiFactory: (configuration?: Configuration, basePath
|
|
|
16462
16742
|
* @throws {RequiredError}
|
|
16463
16743
|
*/
|
|
16464
16744
|
getGetStockReport(options?: RawAxiosRequestConfig): AxiosPromise<StockReportModel>;
|
|
16745
|
+
/**
|
|
16746
|
+
* Generate Reports
|
|
16747
|
+
* @summary Generate Reports
|
|
16748
|
+
* @param {ReportRequestDTO} [reportRequestDTO] Report Request
|
|
16749
|
+
* @param {*} [options] Override http request option.
|
|
16750
|
+
* @throws {RequiredError}
|
|
16751
|
+
*/
|
|
16752
|
+
postGenerateReport(reportRequestDTO?: ReportRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<PostGenerateReport200Response>;
|
|
16465
16753
|
};
|
|
16466
16754
|
/**
|
|
16467
16755
|
* ReportsApi - object-oriented interface
|
|
@@ -16473,6 +16761,14 @@ export declare class ReportsApi extends BaseAPI {
|
|
|
16473
16761
|
* @throws {RequiredError}
|
|
16474
16762
|
*/
|
|
16475
16763
|
getGetStockReport(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<StockReportModel, any, {}>>;
|
|
16764
|
+
/**
|
|
16765
|
+
* Generate Reports
|
|
16766
|
+
* @summary Generate Reports
|
|
16767
|
+
* @param {ReportRequestDTO} [reportRequestDTO] Report Request
|
|
16768
|
+
* @param {*} [options] Override http request option.
|
|
16769
|
+
* @throws {RequiredError}
|
|
16770
|
+
*/
|
|
16771
|
+
postGenerateReport(reportRequestDTO?: ReportRequestDTO, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PostGenerateReport200Response, any, {}>>;
|
|
16476
16772
|
}
|
|
16477
16773
|
/**
|
|
16478
16774
|
* SIPTrunksApi - axios parameter creator
|