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.
@@ -31,6 +31,7 @@ docs/AttachmentModel.md
31
31
  docs/AttributeSetEnum.md
32
32
  docs/AuditLogEntity.md
33
33
  docs/AuthCodeResponseModel.md
34
+ docs/AxisDataDTO.md
34
35
  docs/BasicItemDTO.md
35
36
  docs/BasicProductDTO.md
36
37
  docs/BatchDTO.md
@@ -64,6 +65,7 @@ docs/CrmContactDTO.md
64
65
  docs/CrmDateActivitiesDTO.md
65
66
  docs/CrmNoteEntity.md
66
67
  docs/CrmNoteModel.md
68
+ docs/CustomerCoordinatesDTO.md
67
69
  docs/CustomerInformationModel.md
68
70
  docs/CustomerItemRequestDTO.md
69
71
  docs/CustomerListAccountDTO.md
@@ -95,6 +97,7 @@ docs/GenericFileModel.md
95
97
  docs/GetCheckMacExists200Response.md
96
98
  docs/GetGetPrice200Response.md
97
99
  docs/GetGetRecording200Response.md
100
+ docs/GraphDTO.md
98
101
  docs/HostingChangeResponseModel.md
99
102
  docs/HostingRegionDTO.md
100
103
  docs/InstallationDetailsDTO.md
@@ -158,6 +161,7 @@ docs/PortalAccountModel.md
158
161
  docs/PortalLoginModel.md
159
162
  docs/PostAddOrderNoteRequest.md
160
163
  docs/PostAddWebhook200Response.md
164
+ docs/PostGenerateReport200Response.md
161
165
  docs/PostGetClientCredentialsRequest.md
162
166
  docs/PostGetProductForCustomerRequest.md
163
167
  docs/PostSendWelcomeEmailRequest.md
@@ -186,6 +190,7 @@ docs/PutTransferConnectionRequest.md
186
190
  docs/RecordingBackupAzureModel.md
187
191
  docs/RecordingsBackupInfoDTO.md
188
192
  docs/RemoteStorageDTO.md
193
+ docs/ReportRequestDTO.md
189
194
  docs/ReportsApi.md
190
195
  docs/ResourceNotReadyException.md
191
196
  docs/RootAccessModel.md
@@ -195,6 +200,7 @@ docs/SMSApi.md
195
200
  docs/SbcDTO.md
196
201
  docs/ScannedItemModel.md
197
202
  docs/ScopeModel.md
203
+ docs/SeriesDTO.md
198
204
  docs/ServiceHealthDTO.md
199
205
  docs/ServiceStatusDTO.md
200
206
  docs/ServicesApi.md
@@ -260,7 +266,10 @@ docs/SupplierProductResultsModel.md
260
266
  docs/SuppliersApi.md
261
267
  docs/SupportTicketModel.md
262
268
  docs/SystemApi.md
269
+ docs/TableDTO.md
270
+ docs/TableDataDTO.md
263
271
  docs/TableHistoryEntity.md
272
+ docs/TableRowDTO.md
264
273
  docs/TcxBackupEntity.md
265
274
  docs/TcxBackupModel.md
266
275
  docs/TcxBillingEntity.md
package/README.md CHANGED
@@ -64,6 +64,7 @@ Class | Method | HTTP request | Description
64
64
  *AccountsApi* | [**getGetClientCredentials**](docs/AccountsApi.md#getgetclientcredentials) | **GET** /accounts/me/contacts/credentials | Get user\'s client credentials
65
65
  *AccountsApi* | [**getGetCustomerAccountsList**](docs/AccountsApi.md#getgetcustomeraccountslist) | **GET** /admin/accounts/customers/list |
66
66
  *AccountsApi* | [**getGetCustomerKeys**](docs/AccountsApi.md#getgetcustomerkeys) | **GET** /accounts/me/tcx/keys | Get 3CX Keys
67
+ *AccountsApi* | [**getGetCustomerMap**](docs/AccountsApi.md#getgetcustomermap) | **GET** /admin/accounts/customer/map |
67
68
  *AccountsApi* | [**getGetFinanceSettings**](docs/AccountsApi.md#getgetfinancesettings) | **GET** /admin/accounts/{id}/finance |
68
69
  *AccountsApi* | [**getGetLastAccount**](docs/AccountsApi.md#getgetlastaccount) | **GET** /admin/accounts/last | Get Last Account
69
70
  *AccountsApi* | [**getGetNewPriceList**](docs/AccountsApi.md#getgetnewpricelist) | **GET** /admin/accounts/priceList/new | Download New Price List
@@ -256,6 +257,7 @@ Class | Method | HTTP request | Description
256
257
  *ProvisioningApi* | [**postAddFanvilMac**](docs/ProvisioningApi.md#postaddfanvilmac) | **POST** /provisioning/fanvil/groups/{id}/macs/{mac} | Add MAC address to DB and FDPS group
257
258
  *ProvisioningApi* | [**postCreateMac**](docs/ProvisioningApi.md#postcreatemac) | **POST** /admin/provisioning/fanvil/macs |
258
259
  *ReportsApi* | [**getGetStockReport**](docs/ReportsApi.md#getgetstockreport) | **GET** /reports/stock |
260
+ *ReportsApi* | [**postGenerateReport**](docs/ReportsApi.md#postgeneratereport) | **POST** /reports | Generate Reports
259
261
  *SIPTrunksApi* | [**deleteGetSipTrunk**](docs/SIPTrunksApi.md#deletegetsiptrunk) | **DELETE** /sip/trunks/{id} | Delete SIP Trunk
260
262
  *SIPTrunksApi* | [**getCanDivert**](docs/SIPTrunksApi.md#getcandivert) | **GET** /sip/trunks/{id}/diverts/allowed | SIP Trunk Diverts Allowed
261
263
  *SIPTrunksApi* | [**getGetAddress**](docs/SIPTrunksApi.md#getgetaddress) | **GET** /sip/trunks/{id}/address | Get SIP Trunk Address
@@ -354,6 +356,7 @@ Class | Method | HTTP request | Description
354
356
  - [AttributeSetEnum](docs/AttributeSetEnum.md)
355
357
  - [AuditLogEntity](docs/AuditLogEntity.md)
356
358
  - [AuthCodeResponseModel](docs/AuthCodeResponseModel.md)
359
+ - [AxisDataDTO](docs/AxisDataDTO.md)
357
360
  - [BasicItemDTO](docs/BasicItemDTO.md)
358
361
  - [BasicProductDTO](docs/BasicProductDTO.md)
359
362
  - [BatchDTO](docs/BatchDTO.md)
@@ -380,6 +383,7 @@ Class | Method | HTTP request | Description
380
383
  - [CrmDateActivitiesDTO](docs/CrmDateActivitiesDTO.md)
381
384
  - [CrmNoteEntity](docs/CrmNoteEntity.md)
382
385
  - [CrmNoteModel](docs/CrmNoteModel.md)
386
+ - [CustomerCoordinatesDTO](docs/CustomerCoordinatesDTO.md)
383
387
  - [CustomerInformationModel](docs/CustomerInformationModel.md)
384
388
  - [CustomerItemRequestDTO](docs/CustomerItemRequestDTO.md)
385
389
  - [CustomerListAccountDTO](docs/CustomerListAccountDTO.md)
@@ -411,6 +415,7 @@ Class | Method | HTTP request | Description
411
415
  - [GetCheckMacExists200Response](docs/GetCheckMacExists200Response.md)
412
416
  - [GetGetPrice200Response](docs/GetGetPrice200Response.md)
413
417
  - [GetGetRecording200Response](docs/GetGetRecording200Response.md)
418
+ - [GraphDTO](docs/GraphDTO.md)
414
419
  - [HostingChangeResponseModel](docs/HostingChangeResponseModel.md)
415
420
  - [HostingRegionDTO](docs/HostingRegionDTO.md)
416
421
  - [InstallationDetailsDTO](docs/InstallationDetailsDTO.md)
@@ -469,6 +474,7 @@ Class | Method | HTTP request | Description
469
474
  - [PortalLoginModel](docs/PortalLoginModel.md)
470
475
  - [PostAddOrderNoteRequest](docs/PostAddOrderNoteRequest.md)
471
476
  - [PostAddWebhook200Response](docs/PostAddWebhook200Response.md)
477
+ - [PostGenerateReport200Response](docs/PostGenerateReport200Response.md)
472
478
  - [PostGetClientCredentialsRequest](docs/PostGetClientCredentialsRequest.md)
473
479
  - [PostGetProductForCustomerRequest](docs/PostGetProductForCustomerRequest.md)
474
480
  - [PostSendWelcomeEmailRequest](docs/PostSendWelcomeEmailRequest.md)
@@ -493,12 +499,14 @@ Class | Method | HTTP request | Description
493
499
  - [RecordingBackupAzureModel](docs/RecordingBackupAzureModel.md)
494
500
  - [RecordingsBackupInfoDTO](docs/RecordingsBackupInfoDTO.md)
495
501
  - [RemoteStorageDTO](docs/RemoteStorageDTO.md)
502
+ - [ReportRequestDTO](docs/ReportRequestDTO.md)
496
503
  - [ResourceNotReadyException](docs/ResourceNotReadyException.md)
497
504
  - [RootAccessModel](docs/RootAccessModel.md)
498
505
  - [S3BucketEntity](docs/S3BucketEntity.md)
499
506
  - [SbcDTO](docs/SbcDTO.md)
500
507
  - [ScannedItemModel](docs/ScannedItemModel.md)
501
508
  - [ScopeModel](docs/ScopeModel.md)
509
+ - [SeriesDTO](docs/SeriesDTO.md)
502
510
  - [ServiceHealthDTO](docs/ServiceHealthDTO.md)
503
511
  - [ServiceStatusDTO](docs/ServiceStatusDTO.md)
504
512
  - [ShipmentAddressEntity](docs/ShipmentAddressEntity.md)
@@ -559,7 +567,10 @@ Class | Method | HTTP request | Description
559
567
  - [SupplierProductModel](docs/SupplierProductModel.md)
560
568
  - [SupplierProductResultsModel](docs/SupplierProductResultsModel.md)
561
569
  - [SupportTicketModel](docs/SupportTicketModel.md)
570
+ - [TableDTO](docs/TableDTO.md)
571
+ - [TableDataDTO](docs/TableDataDTO.md)
562
572
  - [TableHistoryEntity](docs/TableHistoryEntity.md)
573
+ - [TableRowDTO](docs/TableRowDTO.md)
563
574
  - [TcxBackupEntity](docs/TcxBackupEntity.md)
564
575
  - [TcxBackupModel](docs/TcxBackupModel.md)
565
576
  - [TcxBillingEntity](docs/TcxBillingEntity.md)
package/api.ts CHANGED
@@ -1043,6 +1043,33 @@ export interface AuthCodeResponseModel {
1043
1043
  */
1044
1044
  'redirect_uri'?: string | null;
1045
1045
  }
1046
+ /**
1047
+ * Graph Axis Data
1048
+ */
1049
+ export interface AxisDataDTO {
1050
+ /**
1051
+ * Type
1052
+ */
1053
+ 'type'?: AxisDataDTOTypeEnum;
1054
+ /**
1055
+ * Data
1056
+ */
1057
+ 'data'?: Array<string> | null;
1058
+ /**
1059
+ * Name
1060
+ */
1061
+ 'name'?: string | null;
1062
+ }
1063
+
1064
+ export const AxisDataDTOTypeEnum = {
1065
+ Value: 'value',
1066
+ Category: 'category',
1067
+ Time: 'time',
1068
+ Log: 'log',
1069
+ } as const;
1070
+
1071
+ export type AxisDataDTOTypeEnum = typeof AxisDataDTOTypeEnum[keyof typeof AxisDataDTOTypeEnum];
1072
+
1046
1073
  /**
1047
1074
  * Basic Order Item
1048
1075
  */
@@ -1867,6 +1894,35 @@ export interface CrmNoteModel {
1867
1894
  */
1868
1895
  'callId'?: number;
1869
1896
  }
1897
+ /**
1898
+ * Customer Coordinates
1899
+ */
1900
+ export interface CustomerCoordinatesDTO {
1901
+ /**
1902
+ * ID
1903
+ */
1904
+ 'id'?: string;
1905
+ /**
1906
+ * Company
1907
+ */
1908
+ 'company'?: string;
1909
+ /**
1910
+ * 3CX Reseller ID
1911
+ */
1912
+ 'resellerId'?: string | null;
1913
+ /**
1914
+ * Post Code
1915
+ */
1916
+ 'postCode'?: string;
1917
+ /**
1918
+ * Latitude
1919
+ */
1920
+ 'latitude'?: string;
1921
+ /**
1922
+ * Longitude
1923
+ */
1924
+ 'longitude'?: string;
1925
+ }
1870
1926
  /**
1871
1927
  * SIP Trunk Customer
1872
1928
  */
@@ -2629,6 +2685,76 @@ export interface GetGetPrice200Response {
2629
2685
  export interface GetGetRecording200Response {
2630
2686
  'recordingData'?: string;
2631
2687
  }
2688
+ /**
2689
+ * Graph
2690
+ */
2691
+ export interface GraphDTO {
2692
+ /**
2693
+ * Title
2694
+ */
2695
+ 'title'?: string;
2696
+ /**
2697
+ * X Axis
2698
+ */
2699
+ 'xAxis'?: Array<AxisDataDTO>;
2700
+ /**
2701
+ * Y Axis
2702
+ */
2703
+ 'yAxis'?: Array<AxisDataDTO>;
2704
+ /**
2705
+ * Legend
2706
+ */
2707
+ 'legend'?: Array<string>;
2708
+ /**
2709
+ * Series
2710
+ */
2711
+ 'series'?: Array<SeriesDTO>;
2712
+ /**
2713
+ * Currency
2714
+ */
2715
+ 'currency'?: GraphDTOCurrencyEnum | null;
2716
+ /**
2717
+ * Locale
2718
+ */
2719
+ 'locale'?: string;
2720
+ }
2721
+
2722
+ export const GraphDTOCurrencyEnum = {
2723
+ Eur: 'EUR',
2724
+ Usd: 'USD',
2725
+ Jpy: 'JPY',
2726
+ Bgn: 'BGN',
2727
+ Czk: 'CZK',
2728
+ Dkk: 'DKK',
2729
+ Gbp: 'GBP',
2730
+ Huf: 'HUF',
2731
+ Pln: 'PLN',
2732
+ Ron: 'RON',
2733
+ Sek: 'SEK',
2734
+ Chf: 'CHF',
2735
+ Isk: 'ISK',
2736
+ Nok: 'NOK',
2737
+ Try: 'TRY',
2738
+ Aud: 'AUD',
2739
+ Brl: 'BRL',
2740
+ Cad: 'CAD',
2741
+ Cny: 'CNY',
2742
+ Hkd: 'HKD',
2743
+ Idr: 'IDR',
2744
+ Ils: 'ILS',
2745
+ Inr: 'INR',
2746
+ Krw: 'KRW',
2747
+ Mxn: 'MXN',
2748
+ Myr: 'MYR',
2749
+ Nzd: 'NZD',
2750
+ Php: 'PHP',
2751
+ Sgd: 'SGD',
2752
+ Thb: 'THB',
2753
+ Zar: 'ZAR',
2754
+ } as const;
2755
+
2756
+ export type GraphDTOCurrencyEnum = typeof GraphDTOCurrencyEnum[keyof typeof GraphDTOCurrencyEnum];
2757
+
2632
2758
  /**
2633
2759
  * Change Response
2634
2760
  */
@@ -4763,6 +4889,11 @@ export interface PostAddOrderNoteRequest {
4763
4889
  export interface PostAddWebhook200Response {
4764
4890
  'url'?: string;
4765
4891
  }
4892
+ /**
4893
+ * @type PostGenerateReport200Response
4894
+ */
4895
+ export type PostGenerateReport200Response = GraphDTO | TableDTO;
4896
+
4766
4897
  export interface PostGetClientCredentialsRequest {
4767
4898
  /**
4768
4899
  * OAuth 2.0 scopes
@@ -5350,6 +5481,69 @@ export interface RemoteStorageDTO {
5350
5481
  */
5351
5482
  'region'?: string;
5352
5483
  }
5484
+ /**
5485
+ * Report Request
5486
+ */
5487
+ export interface ReportRequestDTO {
5488
+ /**
5489
+ * Report
5490
+ */
5491
+ 'report'?: ReportRequestDTOReportEnum;
5492
+ /**
5493
+ * Start
5494
+ */
5495
+ 'start'?: string | null;
5496
+ /**
5497
+ * End
5498
+ */
5499
+ 'end'?: string | null;
5500
+ /**
5501
+ * Month
5502
+ */
5503
+ 'month'?: number | null;
5504
+ /**
5505
+ * Year
5506
+ */
5507
+ 'year'?: number | null;
5508
+ /**
5509
+ * SKU
5510
+ */
5511
+ 'sku'?: string | null;
5512
+ /**
5513
+ * Price
5514
+ */
5515
+ 'price'?: number | null;
5516
+ /**
5517
+ * Recipients
5518
+ */
5519
+ 'recipients'?: Array<string> | null;
5520
+ /**
5521
+ * Graph Type
5522
+ */
5523
+ 'graphType'?: ReportRequestDTOGraphTypeEnum | null;
5524
+ }
5525
+
5526
+ export const ReportRequestDTOReportEnum = {
5527
+ _1: '1',
5528
+ _2: '2',
5529
+ _3: '3',
5530
+ _4: '4',
5531
+ _5: '5',
5532
+ _6: '6',
5533
+ _7: '7',
5534
+ _8: '8',
5535
+ _9: '9',
5536
+ _10: '10',
5537
+ } as const;
5538
+
5539
+ export type ReportRequestDTOReportEnum = typeof ReportRequestDTOReportEnum[keyof typeof ReportRequestDTOReportEnum];
5540
+ export const ReportRequestDTOGraphTypeEnum = {
5541
+ StackedArea: 'stacked-area',
5542
+ Table: 'table',
5543
+ } as const;
5544
+
5545
+ export type ReportRequestDTOGraphTypeEnum = typeof ReportRequestDTOGraphTypeEnum[keyof typeof ReportRequestDTOGraphTypeEnum];
5546
+
5353
5547
  /**
5354
5548
  * Resource Not Ready
5355
5549
  */
@@ -5480,6 +5674,34 @@ export interface ScopeModel {
5480
5674
  */
5481
5675
  'description'?: string;
5482
5676
  }
5677
+ /**
5678
+ * Graph Series Data
5679
+ */
5680
+ export interface SeriesDTO {
5681
+ /**
5682
+ * Name
5683
+ */
5684
+ 'name'?: string;
5685
+ /**
5686
+ * Type
5687
+ */
5688
+ 'type'?: SeriesDTOTypeEnum;
5689
+ /**
5690
+ * Stack
5691
+ */
5692
+ 'stack'?: string | null;
5693
+ /**
5694
+ * Data
5695
+ */
5696
+ 'data'?: Array<string>;
5697
+ }
5698
+
5699
+ export const SeriesDTOTypeEnum = {
5700
+ Line: 'line',
5701
+ } as const;
5702
+
5703
+ export type SeriesDTOTypeEnum = typeof SeriesDTOTypeEnum[keyof typeof SeriesDTOTypeEnum];
5704
+
5483
5705
  /**
5484
5706
  * Service Health DTO
5485
5707
  */
@@ -7348,6 +7570,29 @@ export interface SupportTicketModel {
7348
7570
  */
7349
7571
  'conversations'?: Array<ConversationModel>;
7350
7572
  }
7573
+ /**
7574
+ * Table
7575
+ */
7576
+ export interface TableDTO {
7577
+ /**
7578
+ * Title
7579
+ */
7580
+ 'title'?: string;
7581
+ 'headers'?: TableRowDTO;
7582
+ /**
7583
+ * Rows
7584
+ */
7585
+ 'rows'?: Array<TableRowDTO>;
7586
+ }
7587
+ /**
7588
+ * Table Data
7589
+ */
7590
+ export interface TableDataDTO {
7591
+ /**
7592
+ * Value
7593
+ */
7594
+ 'value'?: string;
7595
+ }
7351
7596
  /**
7352
7597
  * TableAttribsEntity
7353
7598
  */
@@ -7385,6 +7630,15 @@ export interface TableHistoryEntity {
7385
7630
  */
7386
7631
  'page'?: number;
7387
7632
  }
7633
+ /**
7634
+ * Table Row
7635
+ */
7636
+ export interface TableRowDTO {
7637
+ /**
7638
+ * Table Data
7639
+ */
7640
+ 'data'?: Array<TableDataDTO>;
7641
+ }
7388
7642
  /**
7389
7643
  * 3CX Wizard Restore From Backup
7390
7644
  */
@@ -9396,6 +9650,35 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
9396
9650
  options: localVarRequestOptions,
9397
9651
  };
9398
9652
  },
9653
+ /**
9654
+ * Get Customer Map
9655
+ * @param {*} [options] Override http request option.
9656
+ * @throws {RequiredError}
9657
+ */
9658
+ getGetCustomerMap: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
9659
+ const localVarPath = `/admin/accounts/customer/map`;
9660
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9661
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9662
+ let baseOptions;
9663
+ if (configuration) {
9664
+ baseOptions = configuration.baseOptions;
9665
+ }
9666
+
9667
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
9668
+ const localVarHeaderParameter = {} as any;
9669
+ const localVarQueryParameter = {} as any;
9670
+
9671
+ localVarHeaderParameter['Accept'] = 'application/json';
9672
+
9673
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
9674
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9675
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
9676
+
9677
+ return {
9678
+ url: toPathString(localVarUrlObj),
9679
+ options: localVarRequestOptions,
9680
+ };
9681
+ },
9399
9682
  /**
9400
9683
  * Get Account Finance
9401
9684
  * @param {string} id Account Xero ID
@@ -10764,6 +11047,17 @@ export const AccountsApiFp = function(configuration?: Configuration) {
10764
11047
  const localVarOperationServerBasePath = operationServerMap['AccountsApi.getGetCustomerKeys']?.[localVarOperationServerIndex]?.url;
10765
11048
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10766
11049
  },
11050
+ /**
11051
+ * Get Customer Map
11052
+ * @param {*} [options] Override http request option.
11053
+ * @throws {RequiredError}
11054
+ */
11055
+ async getGetCustomerMap(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CustomerCoordinatesDTO>>> {
11056
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGetCustomerMap(options);
11057
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
11058
+ const localVarOperationServerBasePath = operationServerMap['AccountsApi.getGetCustomerMap']?.[localVarOperationServerIndex]?.url;
11059
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11060
+ },
10767
11061
  /**
10768
11062
  * Get Account Finance
10769
11063
  * @param {string} id Account Xero ID
@@ -11340,6 +11634,14 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
11340
11634
  getGetCustomerKeys(options?: RawAxiosRequestConfig): AxiosPromise<Array<TcxKeySummaryDTO>> {
11341
11635
  return localVarFp.getGetCustomerKeys(options).then((request) => request(axios, basePath));
11342
11636
  },
11637
+ /**
11638
+ * Get Customer Map
11639
+ * @param {*} [options] Override http request option.
11640
+ * @throws {RequiredError}
11641
+ */
11642
+ getGetCustomerMap(options?: RawAxiosRequestConfig): AxiosPromise<Array<CustomerCoordinatesDTO>> {
11643
+ return localVarFp.getGetCustomerMap(options).then((request) => request(axios, basePath));
11644
+ },
11343
11645
  /**
11344
11646
  * Get Account Finance
11345
11647
  * @param {string} id Account Xero ID
@@ -11825,6 +12127,15 @@ export class AccountsApi extends BaseAPI {
11825
12127
  return AccountsApiFp(this.configuration).getGetCustomerKeys(options).then((request) => request(this.axios, this.basePath));
11826
12128
  }
11827
12129
 
12130
+ /**
12131
+ * Get Customer Map
12132
+ * @param {*} [options] Override http request option.
12133
+ * @throws {RequiredError}
12134
+ */
12135
+ public getGetCustomerMap(options?: RawAxiosRequestConfig) {
12136
+ return AccountsApiFp(this.configuration).getGetCustomerMap(options).then((request) => request(this.axios, this.basePath));
12137
+ }
12138
+
11828
12139
  /**
11829
12140
  * Get Account Finance
11830
12141
  * @param {string} id Account Xero ID
@@ -24793,6 +25104,39 @@ export const ReportsApiAxiosParamCreator = function (configuration?: Configurati
24793
25104
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
24794
25105
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
24795
25106
 
25107
+ return {
25108
+ url: toPathString(localVarUrlObj),
25109
+ options: localVarRequestOptions,
25110
+ };
25111
+ },
25112
+ /**
25113
+ * Generate Reports
25114
+ * @summary Generate Reports
25115
+ * @param {ReportRequestDTO} [reportRequestDTO] Report Request
25116
+ * @param {*} [options] Override http request option.
25117
+ * @throws {RequiredError}
25118
+ */
25119
+ postGenerateReport: async (reportRequestDTO?: ReportRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
25120
+ const localVarPath = `/reports`;
25121
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
25122
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
25123
+ let baseOptions;
25124
+ if (configuration) {
25125
+ baseOptions = configuration.baseOptions;
25126
+ }
25127
+
25128
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
25129
+ const localVarHeaderParameter = {} as any;
25130
+ const localVarQueryParameter = {} as any;
25131
+
25132
+ localVarHeaderParameter['Content-Type'] = 'application/json';
25133
+ localVarHeaderParameter['Accept'] = 'application/json';
25134
+
25135
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
25136
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
25137
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
25138
+ localVarRequestOptions.data = serializeDataIfNeeded(reportRequestDTO, localVarRequestOptions, configuration)
25139
+
24796
25140
  return {
24797
25141
  url: toPathString(localVarUrlObj),
24798
25142
  options: localVarRequestOptions,
@@ -24818,6 +25162,19 @@ export const ReportsApiFp = function(configuration?: Configuration) {
24818
25162
  const localVarOperationServerBasePath = operationServerMap['ReportsApi.getGetStockReport']?.[localVarOperationServerIndex]?.url;
24819
25163
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
24820
25164
  },
25165
+ /**
25166
+ * Generate Reports
25167
+ * @summary Generate Reports
25168
+ * @param {ReportRequestDTO} [reportRequestDTO] Report Request
25169
+ * @param {*} [options] Override http request option.
25170
+ * @throws {RequiredError}
25171
+ */
25172
+ async postGenerateReport(reportRequestDTO?: ReportRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PostGenerateReport200Response>> {
25173
+ const localVarAxiosArgs = await localVarAxiosParamCreator.postGenerateReport(reportRequestDTO, options);
25174
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
25175
+ const localVarOperationServerBasePath = operationServerMap['ReportsApi.postGenerateReport']?.[localVarOperationServerIndex]?.url;
25176
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
25177
+ },
24821
25178
  }
24822
25179
  };
24823
25180
 
@@ -24835,6 +25192,16 @@ export const ReportsApiFactory = function (configuration?: Configuration, basePa
24835
25192
  getGetStockReport(options?: RawAxiosRequestConfig): AxiosPromise<StockReportModel> {
24836
25193
  return localVarFp.getGetStockReport(options).then((request) => request(axios, basePath));
24837
25194
  },
25195
+ /**
25196
+ * Generate Reports
25197
+ * @summary Generate Reports
25198
+ * @param {ReportRequestDTO} [reportRequestDTO] Report Request
25199
+ * @param {*} [options] Override http request option.
25200
+ * @throws {RequiredError}
25201
+ */
25202
+ postGenerateReport(reportRequestDTO?: ReportRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<PostGenerateReport200Response> {
25203
+ return localVarFp.postGenerateReport(reportRequestDTO, options).then((request) => request(axios, basePath));
25204
+ },
24838
25205
  };
24839
25206
  };
24840
25207
 
@@ -24850,6 +25217,17 @@ export class ReportsApi extends BaseAPI {
24850
25217
  public getGetStockReport(options?: RawAxiosRequestConfig) {
24851
25218
  return ReportsApiFp(this.configuration).getGetStockReport(options).then((request) => request(this.axios, this.basePath));
24852
25219
  }
25220
+
25221
+ /**
25222
+ * Generate Reports
25223
+ * @summary Generate Reports
25224
+ * @param {ReportRequestDTO} [reportRequestDTO] Report Request
25225
+ * @param {*} [options] Override http request option.
25226
+ * @throws {RequiredError}
25227
+ */
25228
+ public postGenerateReport(reportRequestDTO?: ReportRequestDTO, options?: RawAxiosRequestConfig) {
25229
+ return ReportsApiFp(this.configuration).postGenerateReport(reportRequestDTO, options).then((request) => request(this.axios, this.basePath));
25230
+ }
24853
25231
  }
24854
25232
 
24855
25233