yellowgrid-api-ts 3.2.239 → 3.2.240
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 +8 -0
- package/README.md +9 -0
- package/api.ts +292 -0
- package/dist/api.d.ts +243 -0
- package/dist/api.js +143 -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/AxisDataDTO.md +25 -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/.openapi-generator/FILES
CHANGED
|
@@ -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
|
|
@@ -95,6 +96,7 @@ docs/GenericFileModel.md
|
|
|
95
96
|
docs/GetCheckMacExists200Response.md
|
|
96
97
|
docs/GetGetPrice200Response.md
|
|
97
98
|
docs/GetGetRecording200Response.md
|
|
99
|
+
docs/GraphDTO.md
|
|
98
100
|
docs/HostingChangeResponseModel.md
|
|
99
101
|
docs/HostingRegionDTO.md
|
|
100
102
|
docs/InstallationDetailsDTO.md
|
|
@@ -158,6 +160,7 @@ docs/PortalAccountModel.md
|
|
|
158
160
|
docs/PortalLoginModel.md
|
|
159
161
|
docs/PostAddOrderNoteRequest.md
|
|
160
162
|
docs/PostAddWebhook200Response.md
|
|
163
|
+
docs/PostGenerateReport200Response.md
|
|
161
164
|
docs/PostGetClientCredentialsRequest.md
|
|
162
165
|
docs/PostGetProductForCustomerRequest.md
|
|
163
166
|
docs/PostSendWelcomeEmailRequest.md
|
|
@@ -186,6 +189,7 @@ docs/PutTransferConnectionRequest.md
|
|
|
186
189
|
docs/RecordingBackupAzureModel.md
|
|
187
190
|
docs/RecordingsBackupInfoDTO.md
|
|
188
191
|
docs/RemoteStorageDTO.md
|
|
192
|
+
docs/ReportRequestDTO.md
|
|
189
193
|
docs/ReportsApi.md
|
|
190
194
|
docs/ResourceNotReadyException.md
|
|
191
195
|
docs/RootAccessModel.md
|
|
@@ -195,6 +199,7 @@ docs/SMSApi.md
|
|
|
195
199
|
docs/SbcDTO.md
|
|
196
200
|
docs/ScannedItemModel.md
|
|
197
201
|
docs/ScopeModel.md
|
|
202
|
+
docs/SeriesDTO.md
|
|
198
203
|
docs/ServiceHealthDTO.md
|
|
199
204
|
docs/ServiceStatusDTO.md
|
|
200
205
|
docs/ServicesApi.md
|
|
@@ -260,7 +265,10 @@ docs/SupplierProductResultsModel.md
|
|
|
260
265
|
docs/SuppliersApi.md
|
|
261
266
|
docs/SupportTicketModel.md
|
|
262
267
|
docs/SystemApi.md
|
|
268
|
+
docs/TableDTO.md
|
|
269
|
+
docs/TableDataDTO.md
|
|
263
270
|
docs/TableHistoryEntity.md
|
|
271
|
+
docs/TableRowDTO.md
|
|
264
272
|
docs/TcxBackupEntity.md
|
|
265
273
|
docs/TcxBackupModel.md
|
|
266
274
|
docs/TcxBillingEntity.md
|
package/README.md
CHANGED
|
@@ -256,6 +256,7 @@ Class | Method | HTTP request | Description
|
|
|
256
256
|
*ProvisioningApi* | [**postAddFanvilMac**](docs/ProvisioningApi.md#postaddfanvilmac) | **POST** /provisioning/fanvil/groups/{id}/macs/{mac} | Add MAC address to DB and FDPS group
|
|
257
257
|
*ProvisioningApi* | [**postCreateMac**](docs/ProvisioningApi.md#postcreatemac) | **POST** /admin/provisioning/fanvil/macs |
|
|
258
258
|
*ReportsApi* | [**getGetStockReport**](docs/ReportsApi.md#getgetstockreport) | **GET** /reports/stock |
|
|
259
|
+
*ReportsApi* | [**postGenerateReport**](docs/ReportsApi.md#postgeneratereport) | **POST** /reports | Generate Reports
|
|
259
260
|
*SIPTrunksApi* | [**deleteGetSipTrunk**](docs/SIPTrunksApi.md#deletegetsiptrunk) | **DELETE** /sip/trunks/{id} | Delete SIP Trunk
|
|
260
261
|
*SIPTrunksApi* | [**getCanDivert**](docs/SIPTrunksApi.md#getcandivert) | **GET** /sip/trunks/{id}/diverts/allowed | SIP Trunk Diverts Allowed
|
|
261
262
|
*SIPTrunksApi* | [**getGetAddress**](docs/SIPTrunksApi.md#getgetaddress) | **GET** /sip/trunks/{id}/address | Get SIP Trunk Address
|
|
@@ -354,6 +355,7 @@ Class | Method | HTTP request | Description
|
|
|
354
355
|
- [AttributeSetEnum](docs/AttributeSetEnum.md)
|
|
355
356
|
- [AuditLogEntity](docs/AuditLogEntity.md)
|
|
356
357
|
- [AuthCodeResponseModel](docs/AuthCodeResponseModel.md)
|
|
358
|
+
- [AxisDataDTO](docs/AxisDataDTO.md)
|
|
357
359
|
- [BasicItemDTO](docs/BasicItemDTO.md)
|
|
358
360
|
- [BasicProductDTO](docs/BasicProductDTO.md)
|
|
359
361
|
- [BatchDTO](docs/BatchDTO.md)
|
|
@@ -411,6 +413,7 @@ Class | Method | HTTP request | Description
|
|
|
411
413
|
- [GetCheckMacExists200Response](docs/GetCheckMacExists200Response.md)
|
|
412
414
|
- [GetGetPrice200Response](docs/GetGetPrice200Response.md)
|
|
413
415
|
- [GetGetRecording200Response](docs/GetGetRecording200Response.md)
|
|
416
|
+
- [GraphDTO](docs/GraphDTO.md)
|
|
414
417
|
- [HostingChangeResponseModel](docs/HostingChangeResponseModel.md)
|
|
415
418
|
- [HostingRegionDTO](docs/HostingRegionDTO.md)
|
|
416
419
|
- [InstallationDetailsDTO](docs/InstallationDetailsDTO.md)
|
|
@@ -469,6 +472,7 @@ Class | Method | HTTP request | Description
|
|
|
469
472
|
- [PortalLoginModel](docs/PortalLoginModel.md)
|
|
470
473
|
- [PostAddOrderNoteRequest](docs/PostAddOrderNoteRequest.md)
|
|
471
474
|
- [PostAddWebhook200Response](docs/PostAddWebhook200Response.md)
|
|
475
|
+
- [PostGenerateReport200Response](docs/PostGenerateReport200Response.md)
|
|
472
476
|
- [PostGetClientCredentialsRequest](docs/PostGetClientCredentialsRequest.md)
|
|
473
477
|
- [PostGetProductForCustomerRequest](docs/PostGetProductForCustomerRequest.md)
|
|
474
478
|
- [PostSendWelcomeEmailRequest](docs/PostSendWelcomeEmailRequest.md)
|
|
@@ -493,12 +497,14 @@ Class | Method | HTTP request | Description
|
|
|
493
497
|
- [RecordingBackupAzureModel](docs/RecordingBackupAzureModel.md)
|
|
494
498
|
- [RecordingsBackupInfoDTO](docs/RecordingsBackupInfoDTO.md)
|
|
495
499
|
- [RemoteStorageDTO](docs/RemoteStorageDTO.md)
|
|
500
|
+
- [ReportRequestDTO](docs/ReportRequestDTO.md)
|
|
496
501
|
- [ResourceNotReadyException](docs/ResourceNotReadyException.md)
|
|
497
502
|
- [RootAccessModel](docs/RootAccessModel.md)
|
|
498
503
|
- [S3BucketEntity](docs/S3BucketEntity.md)
|
|
499
504
|
- [SbcDTO](docs/SbcDTO.md)
|
|
500
505
|
- [ScannedItemModel](docs/ScannedItemModel.md)
|
|
501
506
|
- [ScopeModel](docs/ScopeModel.md)
|
|
507
|
+
- [SeriesDTO](docs/SeriesDTO.md)
|
|
502
508
|
- [ServiceHealthDTO](docs/ServiceHealthDTO.md)
|
|
503
509
|
- [ServiceStatusDTO](docs/ServiceStatusDTO.md)
|
|
504
510
|
- [ShipmentAddressEntity](docs/ShipmentAddressEntity.md)
|
|
@@ -559,7 +565,10 @@ Class | Method | HTTP request | Description
|
|
|
559
565
|
- [SupplierProductModel](docs/SupplierProductModel.md)
|
|
560
566
|
- [SupplierProductResultsModel](docs/SupplierProductResultsModel.md)
|
|
561
567
|
- [SupportTicketModel](docs/SupportTicketModel.md)
|
|
568
|
+
- [TableDTO](docs/TableDTO.md)
|
|
569
|
+
- [TableDataDTO](docs/TableDataDTO.md)
|
|
562
570
|
- [TableHistoryEntity](docs/TableHistoryEntity.md)
|
|
571
|
+
- [TableRowDTO](docs/TableRowDTO.md)
|
|
563
572
|
- [TcxBackupEntity](docs/TcxBackupEntity.md)
|
|
564
573
|
- [TcxBackupModel](docs/TcxBackupModel.md)
|
|
565
574
|
- [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
|
*/
|
|
@@ -2629,6 +2656,76 @@ export interface GetGetPrice200Response {
|
|
|
2629
2656
|
export interface GetGetRecording200Response {
|
|
2630
2657
|
'recordingData'?: string;
|
|
2631
2658
|
}
|
|
2659
|
+
/**
|
|
2660
|
+
* Graph
|
|
2661
|
+
*/
|
|
2662
|
+
export interface GraphDTO {
|
|
2663
|
+
/**
|
|
2664
|
+
* Title
|
|
2665
|
+
*/
|
|
2666
|
+
'title'?: string;
|
|
2667
|
+
/**
|
|
2668
|
+
* X Axis
|
|
2669
|
+
*/
|
|
2670
|
+
'xAxis'?: Array<AxisDataDTO>;
|
|
2671
|
+
/**
|
|
2672
|
+
* Y Axis
|
|
2673
|
+
*/
|
|
2674
|
+
'yAxis'?: Array<AxisDataDTO>;
|
|
2675
|
+
/**
|
|
2676
|
+
* Legend
|
|
2677
|
+
*/
|
|
2678
|
+
'legend'?: Array<string>;
|
|
2679
|
+
/**
|
|
2680
|
+
* Series
|
|
2681
|
+
*/
|
|
2682
|
+
'series'?: Array<SeriesDTO>;
|
|
2683
|
+
/**
|
|
2684
|
+
* Currency
|
|
2685
|
+
*/
|
|
2686
|
+
'currency'?: GraphDTOCurrencyEnum | null;
|
|
2687
|
+
/**
|
|
2688
|
+
* Locale
|
|
2689
|
+
*/
|
|
2690
|
+
'locale'?: string;
|
|
2691
|
+
}
|
|
2692
|
+
|
|
2693
|
+
export const GraphDTOCurrencyEnum = {
|
|
2694
|
+
Eur: 'EUR',
|
|
2695
|
+
Usd: 'USD',
|
|
2696
|
+
Jpy: 'JPY',
|
|
2697
|
+
Bgn: 'BGN',
|
|
2698
|
+
Czk: 'CZK',
|
|
2699
|
+
Dkk: 'DKK',
|
|
2700
|
+
Gbp: 'GBP',
|
|
2701
|
+
Huf: 'HUF',
|
|
2702
|
+
Pln: 'PLN',
|
|
2703
|
+
Ron: 'RON',
|
|
2704
|
+
Sek: 'SEK',
|
|
2705
|
+
Chf: 'CHF',
|
|
2706
|
+
Isk: 'ISK',
|
|
2707
|
+
Nok: 'NOK',
|
|
2708
|
+
Try: 'TRY',
|
|
2709
|
+
Aud: 'AUD',
|
|
2710
|
+
Brl: 'BRL',
|
|
2711
|
+
Cad: 'CAD',
|
|
2712
|
+
Cny: 'CNY',
|
|
2713
|
+
Hkd: 'HKD',
|
|
2714
|
+
Idr: 'IDR',
|
|
2715
|
+
Ils: 'ILS',
|
|
2716
|
+
Inr: 'INR',
|
|
2717
|
+
Krw: 'KRW',
|
|
2718
|
+
Mxn: 'MXN',
|
|
2719
|
+
Myr: 'MYR',
|
|
2720
|
+
Nzd: 'NZD',
|
|
2721
|
+
Php: 'PHP',
|
|
2722
|
+
Sgd: 'SGD',
|
|
2723
|
+
Thb: 'THB',
|
|
2724
|
+
Zar: 'ZAR',
|
|
2725
|
+
} as const;
|
|
2726
|
+
|
|
2727
|
+
export type GraphDTOCurrencyEnum = typeof GraphDTOCurrencyEnum[keyof typeof GraphDTOCurrencyEnum];
|
|
2728
|
+
|
|
2632
2729
|
/**
|
|
2633
2730
|
* Change Response
|
|
2634
2731
|
*/
|
|
@@ -4763,6 +4860,11 @@ export interface PostAddOrderNoteRequest {
|
|
|
4763
4860
|
export interface PostAddWebhook200Response {
|
|
4764
4861
|
'url'?: string;
|
|
4765
4862
|
}
|
|
4863
|
+
/**
|
|
4864
|
+
* @type PostGenerateReport200Response
|
|
4865
|
+
*/
|
|
4866
|
+
export type PostGenerateReport200Response = GraphDTO | TableDTO;
|
|
4867
|
+
|
|
4766
4868
|
export interface PostGetClientCredentialsRequest {
|
|
4767
4869
|
/**
|
|
4768
4870
|
* OAuth 2.0 scopes
|
|
@@ -5350,6 +5452,69 @@ export interface RemoteStorageDTO {
|
|
|
5350
5452
|
*/
|
|
5351
5453
|
'region'?: string;
|
|
5352
5454
|
}
|
|
5455
|
+
/**
|
|
5456
|
+
* Report Request
|
|
5457
|
+
*/
|
|
5458
|
+
export interface ReportRequestDTO {
|
|
5459
|
+
/**
|
|
5460
|
+
* Report
|
|
5461
|
+
*/
|
|
5462
|
+
'report'?: ReportRequestDTOReportEnum;
|
|
5463
|
+
/**
|
|
5464
|
+
* Start
|
|
5465
|
+
*/
|
|
5466
|
+
'start'?: string | null;
|
|
5467
|
+
/**
|
|
5468
|
+
* End
|
|
5469
|
+
*/
|
|
5470
|
+
'end'?: string | null;
|
|
5471
|
+
/**
|
|
5472
|
+
* Month
|
|
5473
|
+
*/
|
|
5474
|
+
'month'?: number | null;
|
|
5475
|
+
/**
|
|
5476
|
+
* Year
|
|
5477
|
+
*/
|
|
5478
|
+
'year'?: number | null;
|
|
5479
|
+
/**
|
|
5480
|
+
* SKU
|
|
5481
|
+
*/
|
|
5482
|
+
'sku'?: string | null;
|
|
5483
|
+
/**
|
|
5484
|
+
* Price
|
|
5485
|
+
*/
|
|
5486
|
+
'price'?: number | null;
|
|
5487
|
+
/**
|
|
5488
|
+
* Recipients
|
|
5489
|
+
*/
|
|
5490
|
+
'recipients'?: Array<string> | null;
|
|
5491
|
+
/**
|
|
5492
|
+
* Graph Type
|
|
5493
|
+
*/
|
|
5494
|
+
'graphType'?: ReportRequestDTOGraphTypeEnum | null;
|
|
5495
|
+
}
|
|
5496
|
+
|
|
5497
|
+
export const ReportRequestDTOReportEnum = {
|
|
5498
|
+
_1: '1',
|
|
5499
|
+
_2: '2',
|
|
5500
|
+
_3: '3',
|
|
5501
|
+
_4: '4',
|
|
5502
|
+
_5: '5',
|
|
5503
|
+
_6: '6',
|
|
5504
|
+
_7: '7',
|
|
5505
|
+
_8: '8',
|
|
5506
|
+
_9: '9',
|
|
5507
|
+
_10: '10',
|
|
5508
|
+
} as const;
|
|
5509
|
+
|
|
5510
|
+
export type ReportRequestDTOReportEnum = typeof ReportRequestDTOReportEnum[keyof typeof ReportRequestDTOReportEnum];
|
|
5511
|
+
export const ReportRequestDTOGraphTypeEnum = {
|
|
5512
|
+
StackedArea: 'stacked-area',
|
|
5513
|
+
Table: 'table',
|
|
5514
|
+
} as const;
|
|
5515
|
+
|
|
5516
|
+
export type ReportRequestDTOGraphTypeEnum = typeof ReportRequestDTOGraphTypeEnum[keyof typeof ReportRequestDTOGraphTypeEnum];
|
|
5517
|
+
|
|
5353
5518
|
/**
|
|
5354
5519
|
* Resource Not Ready
|
|
5355
5520
|
*/
|
|
@@ -5480,6 +5645,34 @@ export interface ScopeModel {
|
|
|
5480
5645
|
*/
|
|
5481
5646
|
'description'?: string;
|
|
5482
5647
|
}
|
|
5648
|
+
/**
|
|
5649
|
+
* Graph Series Data
|
|
5650
|
+
*/
|
|
5651
|
+
export interface SeriesDTO {
|
|
5652
|
+
/**
|
|
5653
|
+
* Name
|
|
5654
|
+
*/
|
|
5655
|
+
'name'?: string;
|
|
5656
|
+
/**
|
|
5657
|
+
* Type
|
|
5658
|
+
*/
|
|
5659
|
+
'type'?: SeriesDTOTypeEnum;
|
|
5660
|
+
/**
|
|
5661
|
+
* Stack
|
|
5662
|
+
*/
|
|
5663
|
+
'stack'?: string | null;
|
|
5664
|
+
/**
|
|
5665
|
+
* Data
|
|
5666
|
+
*/
|
|
5667
|
+
'data'?: Array<string>;
|
|
5668
|
+
}
|
|
5669
|
+
|
|
5670
|
+
export const SeriesDTOTypeEnum = {
|
|
5671
|
+
Line: 'line',
|
|
5672
|
+
} as const;
|
|
5673
|
+
|
|
5674
|
+
export type SeriesDTOTypeEnum = typeof SeriesDTOTypeEnum[keyof typeof SeriesDTOTypeEnum];
|
|
5675
|
+
|
|
5483
5676
|
/**
|
|
5484
5677
|
* Service Health DTO
|
|
5485
5678
|
*/
|
|
@@ -7348,6 +7541,29 @@ export interface SupportTicketModel {
|
|
|
7348
7541
|
*/
|
|
7349
7542
|
'conversations'?: Array<ConversationModel>;
|
|
7350
7543
|
}
|
|
7544
|
+
/**
|
|
7545
|
+
* Table
|
|
7546
|
+
*/
|
|
7547
|
+
export interface TableDTO {
|
|
7548
|
+
/**
|
|
7549
|
+
* Title
|
|
7550
|
+
*/
|
|
7551
|
+
'title'?: string;
|
|
7552
|
+
'headers'?: TableRowDTO;
|
|
7553
|
+
/**
|
|
7554
|
+
* Rows
|
|
7555
|
+
*/
|
|
7556
|
+
'rows'?: Array<TableRowDTO>;
|
|
7557
|
+
}
|
|
7558
|
+
/**
|
|
7559
|
+
* Table Data
|
|
7560
|
+
*/
|
|
7561
|
+
export interface TableDataDTO {
|
|
7562
|
+
/**
|
|
7563
|
+
* Value
|
|
7564
|
+
*/
|
|
7565
|
+
'value'?: string;
|
|
7566
|
+
}
|
|
7351
7567
|
/**
|
|
7352
7568
|
* TableAttribsEntity
|
|
7353
7569
|
*/
|
|
@@ -7385,6 +7601,15 @@ export interface TableHistoryEntity {
|
|
|
7385
7601
|
*/
|
|
7386
7602
|
'page'?: number;
|
|
7387
7603
|
}
|
|
7604
|
+
/**
|
|
7605
|
+
* Table Row
|
|
7606
|
+
*/
|
|
7607
|
+
export interface TableRowDTO {
|
|
7608
|
+
/**
|
|
7609
|
+
* Table Data
|
|
7610
|
+
*/
|
|
7611
|
+
'data'?: Array<TableDataDTO>;
|
|
7612
|
+
}
|
|
7388
7613
|
/**
|
|
7389
7614
|
* 3CX Wizard Restore From Backup
|
|
7390
7615
|
*/
|
|
@@ -24793,6 +25018,39 @@ export const ReportsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
24793
25018
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
24794
25019
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
24795
25020
|
|
|
25021
|
+
return {
|
|
25022
|
+
url: toPathString(localVarUrlObj),
|
|
25023
|
+
options: localVarRequestOptions,
|
|
25024
|
+
};
|
|
25025
|
+
},
|
|
25026
|
+
/**
|
|
25027
|
+
* Generate Reports
|
|
25028
|
+
* @summary Generate Reports
|
|
25029
|
+
* @param {ReportRequestDTO} [reportRequestDTO] Report Request
|
|
25030
|
+
* @param {*} [options] Override http request option.
|
|
25031
|
+
* @throws {RequiredError}
|
|
25032
|
+
*/
|
|
25033
|
+
postGenerateReport: async (reportRequestDTO?: ReportRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
25034
|
+
const localVarPath = `/reports`;
|
|
25035
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
25036
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
25037
|
+
let baseOptions;
|
|
25038
|
+
if (configuration) {
|
|
25039
|
+
baseOptions = configuration.baseOptions;
|
|
25040
|
+
}
|
|
25041
|
+
|
|
25042
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
25043
|
+
const localVarHeaderParameter = {} as any;
|
|
25044
|
+
const localVarQueryParameter = {} as any;
|
|
25045
|
+
|
|
25046
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
25047
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
25048
|
+
|
|
25049
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
25050
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
25051
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
25052
|
+
localVarRequestOptions.data = serializeDataIfNeeded(reportRequestDTO, localVarRequestOptions, configuration)
|
|
25053
|
+
|
|
24796
25054
|
return {
|
|
24797
25055
|
url: toPathString(localVarUrlObj),
|
|
24798
25056
|
options: localVarRequestOptions,
|
|
@@ -24818,6 +25076,19 @@ export const ReportsApiFp = function(configuration?: Configuration) {
|
|
|
24818
25076
|
const localVarOperationServerBasePath = operationServerMap['ReportsApi.getGetStockReport']?.[localVarOperationServerIndex]?.url;
|
|
24819
25077
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
24820
25078
|
},
|
|
25079
|
+
/**
|
|
25080
|
+
* Generate Reports
|
|
25081
|
+
* @summary Generate Reports
|
|
25082
|
+
* @param {ReportRequestDTO} [reportRequestDTO] Report Request
|
|
25083
|
+
* @param {*} [options] Override http request option.
|
|
25084
|
+
* @throws {RequiredError}
|
|
25085
|
+
*/
|
|
25086
|
+
async postGenerateReport(reportRequestDTO?: ReportRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PostGenerateReport200Response>> {
|
|
25087
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postGenerateReport(reportRequestDTO, options);
|
|
25088
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
25089
|
+
const localVarOperationServerBasePath = operationServerMap['ReportsApi.postGenerateReport']?.[localVarOperationServerIndex]?.url;
|
|
25090
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
25091
|
+
},
|
|
24821
25092
|
}
|
|
24822
25093
|
};
|
|
24823
25094
|
|
|
@@ -24835,6 +25106,16 @@ export const ReportsApiFactory = function (configuration?: Configuration, basePa
|
|
|
24835
25106
|
getGetStockReport(options?: RawAxiosRequestConfig): AxiosPromise<StockReportModel> {
|
|
24836
25107
|
return localVarFp.getGetStockReport(options).then((request) => request(axios, basePath));
|
|
24837
25108
|
},
|
|
25109
|
+
/**
|
|
25110
|
+
* Generate Reports
|
|
25111
|
+
* @summary Generate Reports
|
|
25112
|
+
* @param {ReportRequestDTO} [reportRequestDTO] Report Request
|
|
25113
|
+
* @param {*} [options] Override http request option.
|
|
25114
|
+
* @throws {RequiredError}
|
|
25115
|
+
*/
|
|
25116
|
+
postGenerateReport(reportRequestDTO?: ReportRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<PostGenerateReport200Response> {
|
|
25117
|
+
return localVarFp.postGenerateReport(reportRequestDTO, options).then((request) => request(axios, basePath));
|
|
25118
|
+
},
|
|
24838
25119
|
};
|
|
24839
25120
|
};
|
|
24840
25121
|
|
|
@@ -24850,6 +25131,17 @@ export class ReportsApi extends BaseAPI {
|
|
|
24850
25131
|
public getGetStockReport(options?: RawAxiosRequestConfig) {
|
|
24851
25132
|
return ReportsApiFp(this.configuration).getGetStockReport(options).then((request) => request(this.axios, this.basePath));
|
|
24852
25133
|
}
|
|
25134
|
+
|
|
25135
|
+
/**
|
|
25136
|
+
* Generate Reports
|
|
25137
|
+
* @summary Generate Reports
|
|
25138
|
+
* @param {ReportRequestDTO} [reportRequestDTO] Report Request
|
|
25139
|
+
* @param {*} [options] Override http request option.
|
|
25140
|
+
* @throws {RequiredError}
|
|
25141
|
+
*/
|
|
25142
|
+
public postGenerateReport(reportRequestDTO?: ReportRequestDTO, options?: RawAxiosRequestConfig) {
|
|
25143
|
+
return ReportsApiFp(this.configuration).postGenerateReport(reportRequestDTO, options).then((request) => request(this.axios, this.basePath));
|
|
25144
|
+
}
|
|
24853
25145
|
}
|
|
24854
25146
|
|
|
24855
25147
|
|