@seekora-ai/admin-api 1.0.91 → 1.0.93

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/api.ts CHANGED
@@ -8468,7 +8468,7 @@ export interface DataTypesBillingAlert {
8468
8468
  */
8469
8469
  'alert_id'?: number;
8470
8470
  /**
8471
- *
8471
+ * \"low_balance\", \"expiring_credits\", \"days_remaining\"
8472
8472
  * @type {string}
8473
8473
  * @memberof DataTypesBillingAlert
8474
8474
  */
@@ -8499,10 +8499,10 @@ export interface DataTypesBillingAlert {
8499
8499
  'last_triggered'?: string;
8500
8500
  /**
8501
8501
  *
8502
- * @type {Array<string>}
8502
+ * @type {{ [key: string]: any; }}
8503
8503
  * @memberof DataTypesBillingAlert
8504
8504
  */
8505
- 'notification_channels'?: Array<string>;
8505
+ 'notification_channels'?: { [key: string]: any; };
8506
8506
  /**
8507
8507
  *
8508
8508
  * @type {number}
@@ -8510,7 +8510,7 @@ export interface DataTypesBillingAlert {
8510
8510
  */
8511
8511
  'org_id'?: number;
8512
8512
  /**
8513
- * \"credits\", \"days\", \"percentage\"
8513
+ * \"credits\", \"days\"
8514
8514
  * @type {string}
8515
8515
  * @memberof DataTypesBillingAlert
8516
8516
  */
@@ -8547,11 +8547,11 @@ export interface DataTypesBillingAlertRequest {
8547
8547
  */
8548
8548
  'is_enabled'?: boolean;
8549
8549
  /**
8550
- * \"email\", \"webhook\", \"in_app\"
8551
- * @type {Array<string>}
8550
+ *
8551
+ * @type {{ [key: string]: any; }}
8552
8552
  * @memberof DataTypesBillingAlertRequest
8553
8553
  */
8554
- 'notification_channels': Array<string>;
8554
+ 'notification_channels'?: { [key: string]: any; };
8555
8555
  /**
8556
8556
  *
8557
8557
  * @type {number}
@@ -8594,7 +8594,7 @@ export interface DataTypesBillingAlertsResponse {
8594
8594
  */
8595
8595
  export interface DataTypesBillingOverviewResponse {
8596
8596
  /**
8597
- * Credit Balance Information
8597
+ * Credit balance information (existing system)
8598
8598
  * @type {DataTypesCreditBalanceInfo}
8599
8599
  * @memberof DataTypesBillingOverviewResponse
8600
8600
  */
@@ -8606,29 +8606,35 @@ export interface DataTypesBillingOverviewResponse {
8606
8606
  */
8607
8607
  'currency'?: string;
8608
8608
  /**
8609
- * Current Plan Information
8609
+ * Current plan information
8610
8610
  * @type {DataTypesCurrentPlanInfo}
8611
8611
  * @memberof DataTypesBillingOverviewResponse
8612
8612
  */
8613
8613
  'current_plan'?: DataTypesCurrentPlanInfo;
8614
8614
  /**
8615
- *
8615
+ * Next charge information (for subscriptions)
8616
8616
  * @type {DataTypesNextChargeInfo}
8617
8617
  * @memberof DataTypesBillingOverviewResponse
8618
8618
  */
8619
8619
  'next_charge'?: DataTypesNextChargeInfo;
8620
8620
  /**
8621
- * Projected Usage
8621
+ * Projected runout information
8622
8622
  * @type {DataTypesProjectedRunoutInfo}
8623
8623
  * @memberof DataTypesBillingOverviewResponse
8624
8624
  */
8625
8625
  'projected_runout'?: DataTypesProjectedRunoutInfo;
8626
8626
  /**
8627
- * Summary Stats
8627
+ * Total spent
8628
8628
  * @type {number}
8629
8629
  * @memberof DataTypesBillingOverviewResponse
8630
8630
  */
8631
8631
  'total_spent'?: number;
8632
+ /**
8633
+ * Usage summary for current period
8634
+ * @type {DataTypesUsageSummary}
8635
+ * @memberof DataTypesBillingOverviewResponse
8636
+ */
8637
+ 'usage_summary'?: DataTypesUsageSummary;
8632
8638
  }
8633
8639
  /**
8634
8640
  *
@@ -8737,6 +8743,31 @@ export interface DataTypesBulkUploadResponseWrapper {
8737
8743
  */
8738
8744
  'status'?: number;
8739
8745
  }
8746
+ /**
8747
+ *
8748
+ * @export
8749
+ * @interface DataTypesChartPoint
8750
+ */
8751
+ export interface DataTypesChartPoint {
8752
+ /**
8753
+ *
8754
+ * @type {string}
8755
+ * @memberof DataTypesChartPoint
8756
+ */
8757
+ 'date'?: string;
8758
+ /**
8759
+ * \"Apr, 1\", \"Apr, 30\", etc.
8760
+ * @type {string}
8761
+ * @memberof DataTypesChartPoint
8762
+ */
8763
+ 'label'?: string;
8764
+ /**
8765
+ *
8766
+ * @type {number}
8767
+ * @memberof DataTypesChartPoint
8768
+ */
8769
+ 'value'?: number;
8770
+ }
8740
8771
  /**
8741
8772
  *
8742
8773
  * @export
@@ -10385,6 +10416,43 @@ export interface DataTypesCreditBatchDetailsDto {
10385
10416
  */
10386
10417
  'remaining_credits'?: number;
10387
10418
  }
10419
+ /**
10420
+ *
10421
+ * @export
10422
+ * @interface DataTypesCreditChart
10423
+ */
10424
+ export interface DataTypesCreditChart {
10425
+ /**
10426
+ *
10427
+ * @type {number}
10428
+ * @memberof DataTypesCreditChart
10429
+ */
10430
+ 'current_value'?: number;
10431
+ /**
10432
+ *
10433
+ * @type {Array<DataTypesChartPoint>}
10434
+ * @memberof DataTypesCreditChart
10435
+ */
10436
+ 'data_points'?: Array<DataTypesChartPoint>;
10437
+ /**
10438
+ * \"credits_consumed\", \"search_requests\", etc.
10439
+ * @type {string}
10440
+ * @memberof DataTypesCreditChart
10441
+ */
10442
+ 'metric'?: string;
10443
+ /**
10444
+ *
10445
+ * @type {string}
10446
+ * @memberof DataTypesCreditChart
10447
+ */
10448
+ 'title'?: string;
10449
+ /**
10450
+ *
10451
+ * @type {number}
10452
+ * @memberof DataTypesCreditChart
10453
+ */
10454
+ 'total_credits'?: number;
10455
+ }
10388
10456
  /**
10389
10457
  *
10390
10458
  * @export
@@ -10501,6 +10569,43 @@ export interface DataTypesCreditConsumptionResult {
10501
10569
  */
10502
10570
  'transaction_id'?: number;
10503
10571
  }
10572
+ /**
10573
+ *
10574
+ * @export
10575
+ * @interface DataTypesCreditConsumptionSummary
10576
+ */
10577
+ export interface DataTypesCreditConsumptionSummary {
10578
+ /**
10579
+ *
10580
+ * @type {Array<DataTypesDailyConsumption>}
10581
+ * @memberof DataTypesCreditConsumptionSummary
10582
+ */
10583
+ 'daily_consumption'?: Array<DataTypesDailyConsumption>;
10584
+ /**
10585
+ *
10586
+ * @type {number}
10587
+ * @memberof DataTypesCreditConsumptionSummary
10588
+ */
10589
+ 'records'?: number;
10590
+ /**
10591
+ *
10592
+ * @type {number}
10593
+ * @memberof DataTypesCreditConsumptionSummary
10594
+ */
10595
+ 'search_requests'?: number;
10596
+ /**
10597
+ *
10598
+ * @type {Array<DataTypesEndpointUsage>}
10599
+ * @memberof DataTypesCreditConsumptionSummary
10600
+ */
10601
+ 'top_endpoints'?: Array<DataTypesEndpointUsage>;
10602
+ /**
10603
+ *
10604
+ * @type {number}
10605
+ * @memberof DataTypesCreditConsumptionSummary
10606
+ */
10607
+ 'total_credits_consumed'?: number;
10608
+ }
10504
10609
  /**
10505
10610
  *
10506
10611
  * @export
@@ -10707,7 +10812,7 @@ export interface DataTypesCurrentPlanInfo {
10707
10812
  */
10708
10813
  'auto_renewal'?: boolean;
10709
10814
  /**
10710
- * \"monthly\", \"annual\", \"one-time\"
10815
+ *
10711
10816
  * @type {string}
10712
10817
  * @memberof DataTypesCurrentPlanInfo
10713
10818
  */
@@ -10731,7 +10836,7 @@ export interface DataTypesCurrentPlanInfo {
10731
10836
  */
10732
10837
  'plan_name'?: string;
10733
10838
  /**
10734
- * \"subscription\" or \"credit\"
10839
+ *
10735
10840
  * @type {string}
10736
10841
  * @memberof DataTypesCurrentPlanInfo
10737
10842
  */
@@ -10743,7 +10848,7 @@ export interface DataTypesCurrentPlanInfo {
10743
10848
  */
10744
10849
  'start_date'?: string;
10745
10850
  /**
10746
- * \"active\", \"cancelled\", \"expired\"
10851
+ *
10747
10852
  * @type {string}
10748
10853
  * @memberof DataTypesCurrentPlanInfo
10749
10854
  */
@@ -10959,6 +11064,37 @@ export interface DataTypesCustomerInfoDto {
10959
11064
  */
10960
11065
  'phone'?: string;
10961
11066
  }
11067
+ /**
11068
+ *
11069
+ * @export
11070
+ * @interface DataTypesDailyConsumption
11071
+ */
11072
+ export interface DataTypesDailyConsumption {
11073
+ /**
11074
+ *
11075
+ * @type {number}
11076
+ * @memberof DataTypesDailyConsumption
11077
+ */
11078
+ 'credits_used'?: number;
11079
+ /**
11080
+ *
11081
+ * @type {string}
11082
+ * @memberof DataTypesDailyConsumption
11083
+ */
11084
+ 'date'?: string;
11085
+ /**
11086
+ *
11087
+ * @type {number}
11088
+ * @memberof DataTypesDailyConsumption
11089
+ */
11090
+ 'record_count'?: number;
11091
+ /**
11092
+ *
11093
+ * @type {number}
11094
+ * @memberof DataTypesDailyConsumption
11095
+ */
11096
+ 'search_count'?: number;
11097
+ }
10962
11098
  /**
10963
11099
  *
10964
11100
  * @export
@@ -11305,6 +11441,37 @@ export interface DataTypesDocumentResponseWrapper {
11305
11441
  */
11306
11442
  'status'?: number;
11307
11443
  }
11444
+ /**
11445
+ *
11446
+ * @export
11447
+ * @interface DataTypesEndpointUsage
11448
+ */
11449
+ export interface DataTypesEndpointUsage {
11450
+ /**
11451
+ *
11452
+ * @type {number}
11453
+ * @memberof DataTypesEndpointUsage
11454
+ */
11455
+ 'credits_used'?: number;
11456
+ /**
11457
+ *
11458
+ * @type {string}
11459
+ * @memberof DataTypesEndpointUsage
11460
+ */
11461
+ 'endpoint'?: string;
11462
+ /**
11463
+ *
11464
+ * @type {string}
11465
+ * @memberof DataTypesEndpointUsage
11466
+ */
11467
+ 'method'?: string;
11468
+ /**
11469
+ *
11470
+ * @type {number}
11471
+ * @memberof DataTypesEndpointUsage
11472
+ */
11473
+ 'request_count'?: number;
11474
+ }
11308
11475
  /**
11309
11476
  *
11310
11477
  * @export
@@ -12639,6 +12806,56 @@ export interface DataTypesGenericResponseDataTypesGetRefundHistoryResponseDto {
12639
12806
  */
12640
12807
  'status'?: number;
12641
12808
  }
12809
+ /**
12810
+ *
12811
+ * @export
12812
+ * @interface DataTypesGenericResponseDataTypesInvoice
12813
+ */
12814
+ export interface DataTypesGenericResponseDataTypesInvoice {
12815
+ /**
12816
+ *
12817
+ * @type {DataTypesInvoice}
12818
+ * @memberof DataTypesGenericResponseDataTypesInvoice
12819
+ */
12820
+ 'data'?: DataTypesInvoice;
12821
+ /**
12822
+ *
12823
+ * @type {string}
12824
+ * @memberof DataTypesGenericResponseDataTypesInvoice
12825
+ */
12826
+ 'message'?: string;
12827
+ /**
12828
+ *
12829
+ * @type {number}
12830
+ * @memberof DataTypesGenericResponseDataTypesInvoice
12831
+ */
12832
+ 'status'?: number;
12833
+ }
12834
+ /**
12835
+ *
12836
+ * @export
12837
+ * @interface DataTypesGenericResponseDataTypesInvoiceResponse
12838
+ */
12839
+ export interface DataTypesGenericResponseDataTypesInvoiceResponse {
12840
+ /**
12841
+ *
12842
+ * @type {DataTypesInvoiceResponse}
12843
+ * @memberof DataTypesGenericResponseDataTypesInvoiceResponse
12844
+ */
12845
+ 'data'?: DataTypesInvoiceResponse;
12846
+ /**
12847
+ *
12848
+ * @type {string}
12849
+ * @memberof DataTypesGenericResponseDataTypesInvoiceResponse
12850
+ */
12851
+ 'message'?: string;
12852
+ /**
12853
+ *
12854
+ * @type {number}
12855
+ * @memberof DataTypesGenericResponseDataTypesInvoiceResponse
12856
+ */
12857
+ 'status'?: number;
12858
+ }
12642
12859
  /**
12643
12860
  *
12644
12861
  * @export
@@ -12814,6 +13031,31 @@ export interface DataTypesGenericResponseDataTypesSavedCardsResponse {
12814
13031
  */
12815
13032
  'status'?: number;
12816
13033
  }
13034
+ /**
13035
+ *
13036
+ * @export
13037
+ * @interface DataTypesGenericResponseDataTypesUsageDetailsResponse
13038
+ */
13039
+ export interface DataTypesGenericResponseDataTypesUsageDetailsResponse {
13040
+ /**
13041
+ *
13042
+ * @type {DataTypesUsageDetailsResponse}
13043
+ * @memberof DataTypesGenericResponseDataTypesUsageDetailsResponse
13044
+ */
13045
+ 'data'?: DataTypesUsageDetailsResponse;
13046
+ /**
13047
+ *
13048
+ * @type {string}
13049
+ * @memberof DataTypesGenericResponseDataTypesUsageDetailsResponse
13050
+ */
13051
+ 'message'?: string;
13052
+ /**
13053
+ *
13054
+ * @type {number}
13055
+ * @memberof DataTypesGenericResponseDataTypesUsageDetailsResponse
13056
+ */
13057
+ 'status'?: number;
13058
+ }
12817
13059
  /**
12818
13060
  *
12819
13061
  * @export
@@ -13439,6 +13681,201 @@ export interface DataTypesIndexField {
13439
13681
  */
13440
13682
  'type'?: string;
13441
13683
  }
13684
+ /**
13685
+ *
13686
+ * @export
13687
+ * @interface DataTypesInvoice
13688
+ */
13689
+ export interface DataTypesInvoice {
13690
+ /**
13691
+ *
13692
+ * @type {number}
13693
+ * @memberof DataTypesInvoice
13694
+ */
13695
+ 'amount'?: number;
13696
+ /**
13697
+ *
13698
+ * @type {string}
13699
+ * @memberof DataTypesInvoice
13700
+ */
13701
+ 'created_at'?: string;
13702
+ /**
13703
+ *
13704
+ * @type {string}
13705
+ * @memberof DataTypesInvoice
13706
+ */
13707
+ 'currency'?: string;
13708
+ /**
13709
+ *
13710
+ * @type {string}
13711
+ * @memberof DataTypesInvoice
13712
+ */
13713
+ 'due_date'?: string;
13714
+ /**
13715
+ *
13716
+ * @type {string}
13717
+ * @memberof DataTypesInvoice
13718
+ */
13719
+ 'invoice_id'?: string;
13720
+ /**
13721
+ *
13722
+ * @type {string}
13723
+ * @memberof DataTypesInvoice
13724
+ */
13725
+ 'invoice_number'?: string;
13726
+ /**
13727
+ *
13728
+ * @type {string}
13729
+ * @memberof DataTypesInvoice
13730
+ */
13731
+ 'issue_date'?: string;
13732
+ /**
13733
+ *
13734
+ * @type {Array<DataTypesInvoiceItem>}
13735
+ * @memberof DataTypesInvoice
13736
+ */
13737
+ 'items'?: Array<DataTypesInvoiceItem>;
13738
+ /**
13739
+ *
13740
+ * @type {string}
13741
+ * @memberof DataTypesInvoice
13742
+ */
13743
+ 'notes'?: string;
13744
+ /**
13745
+ *
13746
+ * @type {number}
13747
+ * @memberof DataTypesInvoice
13748
+ */
13749
+ 'org_id'?: number;
13750
+ /**
13751
+ *
13752
+ * @type {string}
13753
+ * @memberof DataTypesInvoice
13754
+ */
13755
+ 'org_name'?: string;
13756
+ /**
13757
+ *
13758
+ * @type {string}
13759
+ * @memberof DataTypesInvoice
13760
+ */
13761
+ 'paid_date'?: string;
13762
+ /**
13763
+ *
13764
+ * @type {string}
13765
+ * @memberof DataTypesInvoice
13766
+ */
13767
+ 'payment_method'?: string;
13768
+ /**
13769
+ * \"draft\", \"sent\", \"paid\", \"overdue\", \"cancelled\"
13770
+ * @type {string}
13771
+ * @memberof DataTypesInvoice
13772
+ */
13773
+ 'status'?: string;
13774
+ /**
13775
+ *
13776
+ * @type {number}
13777
+ * @memberof DataTypesInvoice
13778
+ */
13779
+ 'subtotal'?: number;
13780
+ /**
13781
+ *
13782
+ * @type {number}
13783
+ * @memberof DataTypesInvoice
13784
+ */
13785
+ 'tax_amount'?: number;
13786
+ /**
13787
+ *
13788
+ * @type {number}
13789
+ * @memberof DataTypesInvoice
13790
+ */
13791
+ 'total_amount'?: number;
13792
+ /**
13793
+ *
13794
+ * @type {string}
13795
+ * @memberof DataTypesInvoice
13796
+ */
13797
+ 'updated_at'?: string;
13798
+ }
13799
+ /**
13800
+ *
13801
+ * @export
13802
+ * @interface DataTypesInvoiceItem
13803
+ */
13804
+ export interface DataTypesInvoiceItem {
13805
+ /**
13806
+ *
13807
+ * @type {string}
13808
+ * @memberof DataTypesInvoiceItem
13809
+ */
13810
+ 'description'?: string;
13811
+ /**
13812
+ *
13813
+ * @type {string}
13814
+ * @memberof DataTypesInvoiceItem
13815
+ */
13816
+ 'item_id'?: string;
13817
+ /**
13818
+ *
13819
+ * @type {number}
13820
+ * @memberof DataTypesInvoiceItem
13821
+ */
13822
+ 'quantity'?: number;
13823
+ /**
13824
+ *
13825
+ * @type {number}
13826
+ * @memberof DataTypesInvoiceItem
13827
+ */
13828
+ 'tax_amount'?: number;
13829
+ /**
13830
+ *
13831
+ * @type {number}
13832
+ * @memberof DataTypesInvoiceItem
13833
+ */
13834
+ 'tax_rate'?: number;
13835
+ /**
13836
+ *
13837
+ * @type {number}
13838
+ * @memberof DataTypesInvoiceItem
13839
+ */
13840
+ 'total_price'?: number;
13841
+ /**
13842
+ *
13843
+ * @type {number}
13844
+ * @memberof DataTypesInvoiceItem
13845
+ */
13846
+ 'unit_price'?: number;
13847
+ }
13848
+ /**
13849
+ *
13850
+ * @export
13851
+ * @interface DataTypesInvoiceResponse
13852
+ */
13853
+ export interface DataTypesInvoiceResponse {
13854
+ /**
13855
+ *
13856
+ * @type {Array<DataTypesInvoice>}
13857
+ * @memberof DataTypesInvoiceResponse
13858
+ */
13859
+ 'invoices'?: Array<DataTypesInvoice>;
13860
+ /**
13861
+ *
13862
+ * @type {number}
13863
+ * @memberof DataTypesInvoiceResponse
13864
+ */
13865
+ 'limit'?: number;
13866
+ /**
13867
+ *
13868
+ * @type {number}
13869
+ * @memberof DataTypesInvoiceResponse
13870
+ */
13871
+ 'page'?: number;
13872
+ /**
13873
+ *
13874
+ * @type {number}
13875
+ * @memberof DataTypesInvoiceResponse
13876
+ */
13877
+ 'total'?: number;
13878
+ }
13442
13879
  /**
13443
13880
  *
13444
13881
  * @export
@@ -14177,6 +14614,25 @@ export interface DataTypesMenusListResponse {
14177
14614
  */
14178
14615
  'status'?: number;
14179
14616
  }
14617
+ /**
14618
+ *
14619
+ * @export
14620
+ * @interface DataTypesMetricData
14621
+ */
14622
+ export interface DataTypesMetricData {
14623
+ /**
14624
+ *
14625
+ * @type {Array<number>}
14626
+ * @memberof DataTypesMetricData
14627
+ */
14628
+ 'data_points'?: Array<number>;
14629
+ /**
14630
+ *
14631
+ * @type {string}
14632
+ * @memberof DataTypesMetricData
14633
+ */
14634
+ 'metric_name'?: string;
14635
+ }
14180
14636
  /**
14181
14637
  *
14182
14638
  * @export
@@ -15552,6 +16008,31 @@ export interface DataTypesPaymentsListResponse {
15552
16008
  */
15553
16009
  'status'?: number;
15554
16010
  }
16011
+ /**
16012
+ *
16013
+ * @export
16014
+ * @interface DataTypesPeriodInfo
16015
+ */
16016
+ export interface DataTypesPeriodInfo {
16017
+ /**
16018
+ *
16019
+ * @type {string}
16020
+ * @memberof DataTypesPeriodInfo
16021
+ */
16022
+ 'end_date'?: string;
16023
+ /**
16024
+ * \"April 1, 2025 to October 31, 2025\"
16025
+ * @type {string}
16026
+ * @memberof DataTypesPeriodInfo
16027
+ */
16028
+ 'label'?: string;
16029
+ /**
16030
+ *
16031
+ * @type {string}
16032
+ * @memberof DataTypesPeriodInfo
16033
+ */
16034
+ 'start_date'?: string;
16035
+ }
15555
16036
  /**
15556
16037
  *
15557
16038
  * @export
@@ -16090,7 +16571,7 @@ export interface DataTypesProjectedRunoutInfo {
16090
16571
  */
16091
16572
  'projected_runout_date'?: string;
16092
16573
  /**
16093
- * \"critical\", \"warning\", \"normal\"
16574
+ * \"normal\", \"warning\", \"critical\"
16094
16575
  * @type {string}
16095
16576
  * @memberof DataTypesProjectedRunoutInfo
16096
16577
  */
@@ -17578,19 +18059,19 @@ export interface DataTypesSampleDatasetsResponseWrapper {
17578
18059
  */
17579
18060
  export interface DataTypesSavedCard {
17580
18061
  /**
17581
- * \"Visa\", \"Mastercard\", etc.
18062
+ * \"Visa\", \"MasterCard\", etc.
17582
18063
  * @type {string}
17583
18064
  * @memberof DataTypesSavedCard
17584
18065
  */
17585
18066
  'card_network'?: string;
17586
18067
  /**
17587
- * Masked, e.g., \"XXXX XXXX XXXX 1234\"
18068
+ * Masked: \"**** **** **** 1234\"
17588
18069
  * @type {string}
17589
18070
  * @memberof DataTypesSavedCard
17590
18071
  */
17591
18072
  'card_number'?: string;
17592
18073
  /**
17593
- * \"credit\", \"debit\"
18074
+ * \"Credit\", \"Debit\"
17594
18075
  * @type {string}
17595
18076
  * @memberof DataTypesSavedCard
17596
18077
  */
@@ -17603,16 +18084,16 @@ export interface DataTypesSavedCard {
17603
18084
  'created_at'?: string;
17604
18085
  /**
17605
18086
  *
17606
- * @type {string}
18087
+ * @type {number}
17607
18088
  * @memberof DataTypesSavedCard
17608
18089
  */
17609
- 'expiry_month'?: string;
18090
+ 'expiry_month'?: number;
17610
18091
  /**
17611
18092
  *
17612
- * @type {string}
18093
+ * @type {number}
17613
18094
  * @memberof DataTypesSavedCard
17614
18095
  */
17615
- 'expiry_year'?: string;
18096
+ 'expiry_year'?: number;
17616
18097
  /**
17617
18098
  *
17618
18099
  * @type {boolean}
@@ -17626,7 +18107,7 @@ export interface DataTypesSavedCard {
17626
18107
  */
17627
18108
  'is_expired'?: boolean;
17628
18109
  /**
17629
- *
18110
+ * Bank name
17630
18111
  * @type {string}
17631
18112
  * @memberof DataTypesSavedCard
17632
18113
  */
@@ -18932,6 +19413,25 @@ export interface DataTypesSynonymEntry {
18932
19413
  */
18933
19414
  'synonyms'?: Array<string>;
18934
19415
  }
19416
+ /**
19417
+ *
19418
+ * @export
19419
+ * @interface DataTypesTableCell
19420
+ */
19421
+ export interface DataTypesTableCell {
19422
+ /**
19423
+ * \"header\", \"data\", \"total\"
19424
+ * @type {string}
19425
+ * @memberof DataTypesTableCell
19426
+ */
19427
+ 'type'?: string;
19428
+ /**
19429
+ *
19430
+ * @type {string}
19431
+ * @memberof DataTypesTableCell
19432
+ */
19433
+ 'value'?: string;
19434
+ }
18935
19435
  /**
18936
19436
  *
18937
19437
  * @export
@@ -19257,6 +19757,37 @@ export interface DataTypesUpdateIndexSchemaRequestFieldsInner {
19257
19757
  */
19258
19758
  'sort'?: boolean;
19259
19759
  }
19760
+ /**
19761
+ *
19762
+ * @export
19763
+ * @interface DataTypesUpdateInvoiceRequest
19764
+ */
19765
+ export interface DataTypesUpdateInvoiceRequest {
19766
+ /**
19767
+ *
19768
+ * @type {string}
19769
+ * @memberof DataTypesUpdateInvoiceRequest
19770
+ */
19771
+ 'notes'?: string;
19772
+ /**
19773
+ *
19774
+ * @type {string}
19775
+ * @memberof DataTypesUpdateInvoiceRequest
19776
+ */
19777
+ 'paid_date'?: string;
19778
+ /**
19779
+ *
19780
+ * @type {string}
19781
+ * @memberof DataTypesUpdateInvoiceRequest
19782
+ */
19783
+ 'payment_method'?: string;
19784
+ /**
19785
+ *
19786
+ * @type {string}
19787
+ * @memberof DataTypesUpdateInvoiceRequest
19788
+ */
19789
+ 'status'?: string;
19790
+ }
19260
19791
  /**
19261
19792
  *
19262
19793
  * @export
@@ -19590,6 +20121,93 @@ export interface DataTypesUploadsourceDataResponse {
19590
20121
  */
19591
20122
  'Source'?: DataTypesSource;
19592
20123
  }
20124
+ /**
20125
+ *
20126
+ * @export
20127
+ * @interface DataTypesUsageBreakdown
20128
+ */
20129
+ export interface DataTypesUsageBreakdown {
20130
+ /**
20131
+ *
20132
+ * @type {Array<DataTypesMetricData>}
20133
+ * @memberof DataTypesUsageBreakdown
20134
+ */
20135
+ 'metrics'?: Array<DataTypesMetricData>;
20136
+ /**
20137
+ *
20138
+ * @type {DataTypesPeriodInfo}
20139
+ * @memberof DataTypesUsageBreakdown
20140
+ */
20141
+ 'period'?: DataTypesPeriodInfo;
20142
+ /**
20143
+ *
20144
+ * @type {Array<Array<DataTypesTableCell>>}
20145
+ * @memberof DataTypesUsageBreakdown
20146
+ */
20147
+ 'table_data'?: Array<Array<DataTypesTableCell>>;
20148
+ }
20149
+ /**
20150
+ *
20151
+ * @export
20152
+ * @interface DataTypesUsageDetailsResponse
20153
+ */
20154
+ export interface DataTypesUsageDetailsResponse {
20155
+ /**
20156
+ * Usage breakdown table
20157
+ * @type {DataTypesUsageBreakdown}
20158
+ * @memberof DataTypesUsageDetailsResponse
20159
+ */
20160
+ 'breakdown'?: DataTypesUsageBreakdown;
20161
+ /**
20162
+ * Credit consumption charts
20163
+ * @type {Array<DataTypesCreditChart>}
20164
+ * @memberof DataTypesUsageDetailsResponse
20165
+ */
20166
+ 'credit_charts'?: Array<DataTypesCreditChart>;
20167
+ /**
20168
+ * Credit consumption summary
20169
+ * @type {DataTypesCreditConsumptionSummary}
20170
+ * @memberof DataTypesUsageDetailsResponse
20171
+ */
20172
+ 'credit_summary'?: DataTypesCreditConsumptionSummary;
20173
+ /**
20174
+ * Time period for the data
20175
+ * @type {DataTypesPeriodInfo}
20176
+ * @memberof DataTypesUsageDetailsResponse
20177
+ */
20178
+ 'period'?: DataTypesPeriodInfo;
20179
+ }
20180
+ /**
20181
+ *
20182
+ * @export
20183
+ * @interface DataTypesUsageSummary
20184
+ */
20185
+ export interface DataTypesUsageSummary {
20186
+ /**
20187
+ * \"This month\", \"Last 30 days\", etc.
20188
+ * @type {string}
20189
+ * @memberof DataTypesUsageSummary
20190
+ */
20191
+ 'period'?: string;
20192
+ /**
20193
+ *
20194
+ * @type {number}
20195
+ * @memberof DataTypesUsageSummary
20196
+ */
20197
+ 'records'?: number;
20198
+ /**
20199
+ *
20200
+ * @type {number}
20201
+ * @memberof DataTypesUsageSummary
20202
+ */
20203
+ 'search_requests'?: number;
20204
+ /**
20205
+ *
20206
+ * @type {number}
20207
+ * @memberof DataTypesUsageSummary
20208
+ */
20209
+ 'total_credits_used'?: number;
20210
+ }
19593
20211
  /**
19594
20212
  *
19595
20213
  * @export
@@ -28521,18 +29139,187 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
28521
29139
  };
28522
29140
  },
28523
29141
  /**
28524
- * Retrieves paginated list of credit ledger entries with filtering options for the authenticated user\'s organization
28525
- * @summary Get credit ledger
28526
- * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
28527
- * @param {string} [startDate] Start date (YYYY-MM-DD format)
28528
- * @param {string} [endDate] End date (YYYY-MM-DD format)
28529
- * @param {number} [limit] Number of results per page (default: 50, max: 100)
28530
- * @param {number} [offset] Number of results to skip (default: 0)
29142
+ * Retrieves paginated list of credit ledger entries with filtering options for the authenticated user\'s organization
29143
+ * @summary Get credit ledger
29144
+ * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
29145
+ * @param {string} [startDate] Start date (YYYY-MM-DD format)
29146
+ * @param {string} [endDate] End date (YYYY-MM-DD format)
29147
+ * @param {number} [limit] Number of results per page (default: 50, max: 100)
29148
+ * @param {number} [offset] Number of results to skip (default: 0)
29149
+ * @param {*} [options] Override http request option.
29150
+ * @throws {RequiredError}
29151
+ */
29152
+ adminBillingCreditLedgerGet: async (orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
29153
+ const localVarPath = `/admin/billing/credit-ledger`;
29154
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
29155
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
29156
+ let baseOptions;
29157
+ if (configuration) {
29158
+ baseOptions = configuration.baseOptions;
29159
+ }
29160
+
29161
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
29162
+ const localVarHeaderParameter = {} as any;
29163
+ const localVarQueryParameter = {} as any;
29164
+
29165
+ // authentication BearerAuth required
29166
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
29167
+
29168
+ if (orgId !== undefined) {
29169
+ localVarQueryParameter['org_id'] = orgId;
29170
+ }
29171
+
29172
+ if (startDate !== undefined) {
29173
+ localVarQueryParameter['start_date'] = startDate;
29174
+ }
29175
+
29176
+ if (endDate !== undefined) {
29177
+ localVarQueryParameter['end_date'] = endDate;
29178
+ }
29179
+
29180
+ if (limit !== undefined) {
29181
+ localVarQueryParameter['limit'] = limit;
29182
+ }
29183
+
29184
+ if (offset !== undefined) {
29185
+ localVarQueryParameter['offset'] = offset;
29186
+ }
29187
+
29188
+
29189
+
29190
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
29191
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
29192
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
29193
+
29194
+ return {
29195
+ url: toPathString(localVarUrlObj),
29196
+ options: localVarRequestOptions,
29197
+ };
29198
+ },
29199
+ /**
29200
+ * Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization
29201
+ * @summary Get credit purchases
29202
+ * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
29203
+ * @param {string} [startDate] Start date (YYYY-MM-DD format)
29204
+ * @param {string} [endDate] End date (YYYY-MM-DD format)
29205
+ * @param {number} [limit] Number of results per page (default: 50, max: 100)
29206
+ * @param {number} [offset] Number of results to skip (default: 0)
29207
+ * @param {*} [options] Override http request option.
29208
+ * @throws {RequiredError}
29209
+ */
29210
+ adminBillingCreditPurchasesGet: async (orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
29211
+ const localVarPath = `/admin/billing/credit-purchases`;
29212
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
29213
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
29214
+ let baseOptions;
29215
+ if (configuration) {
29216
+ baseOptions = configuration.baseOptions;
29217
+ }
29218
+
29219
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
29220
+ const localVarHeaderParameter = {} as any;
29221
+ const localVarQueryParameter = {} as any;
29222
+
29223
+ // authentication BearerAuth required
29224
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
29225
+
29226
+ if (orgId !== undefined) {
29227
+ localVarQueryParameter['org_id'] = orgId;
29228
+ }
29229
+
29230
+ if (startDate !== undefined) {
29231
+ localVarQueryParameter['start_date'] = startDate;
29232
+ }
29233
+
29234
+ if (endDate !== undefined) {
29235
+ localVarQueryParameter['end_date'] = endDate;
29236
+ }
29237
+
29238
+ if (limit !== undefined) {
29239
+ localVarQueryParameter['limit'] = limit;
29240
+ }
29241
+
29242
+ if (offset !== undefined) {
29243
+ localVarQueryParameter['offset'] = offset;
29244
+ }
29245
+
29246
+
29247
+
29248
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
29249
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
29250
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
29251
+
29252
+ return {
29253
+ url: toPathString(localVarUrlObj),
29254
+ options: localVarRequestOptions,
29255
+ };
29256
+ },
29257
+ /**
29258
+ * Retrieves paginated list of credit transactions with filtering options for the authenticated user\'s organization
29259
+ * @summary Get credit transactions
29260
+ * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
29261
+ * @param {string} [startDate] Start date (YYYY-MM-DD format)
29262
+ * @param {string} [endDate] End date (YYYY-MM-DD format)
29263
+ * @param {number} [limit] Number of results per page (default: 50, max: 100)
29264
+ * @param {number} [offset] Number of results to skip (default: 0)
29265
+ * @param {*} [options] Override http request option.
29266
+ * @throws {RequiredError}
29267
+ */
29268
+ adminBillingCreditTransactionsGet: async (orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
29269
+ const localVarPath = `/admin/billing/credit-transactions`;
29270
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
29271
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
29272
+ let baseOptions;
29273
+ if (configuration) {
29274
+ baseOptions = configuration.baseOptions;
29275
+ }
29276
+
29277
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
29278
+ const localVarHeaderParameter = {} as any;
29279
+ const localVarQueryParameter = {} as any;
29280
+
29281
+ // authentication BearerAuth required
29282
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
29283
+
29284
+ if (orgId !== undefined) {
29285
+ localVarQueryParameter['org_id'] = orgId;
29286
+ }
29287
+
29288
+ if (startDate !== undefined) {
29289
+ localVarQueryParameter['start_date'] = startDate;
29290
+ }
29291
+
29292
+ if (endDate !== undefined) {
29293
+ localVarQueryParameter['end_date'] = endDate;
29294
+ }
29295
+
29296
+ if (limit !== undefined) {
29297
+ localVarQueryParameter['limit'] = limit;
29298
+ }
29299
+
29300
+ if (offset !== undefined) {
29301
+ localVarQueryParameter['offset'] = offset;
29302
+ }
29303
+
29304
+
29305
+
29306
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
29307
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
29308
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
29309
+
29310
+ return {
29311
+ url: toPathString(localVarUrlObj),
29312
+ options: localVarRequestOptions,
29313
+ };
29314
+ },
29315
+ /**
29316
+ * Automatically generates invoices for all completed payments without invoices
29317
+ * @summary Auto-generate invoices
28531
29318
  * @param {*} [options] Override http request option.
28532
29319
  * @throws {RequiredError}
28533
29320
  */
28534
- adminBillingCreditLedgerGet: async (orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
28535
- const localVarPath = `/admin/billing/credit-ledger`;
29321
+ adminBillingInvoicesAutoGeneratePost: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
29322
+ const localVarPath = `/admin/billing/invoices/auto-generate`;
28536
29323
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
28537
29324
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
28538
29325
  let baseOptions;
@@ -28540,32 +29327,49 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
28540
29327
  baseOptions = configuration.baseOptions;
28541
29328
  }
28542
29329
 
28543
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
29330
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
28544
29331
  const localVarHeaderParameter = {} as any;
28545
29332
  const localVarQueryParameter = {} as any;
28546
29333
 
28547
29334
  // authentication BearerAuth required
28548
29335
  await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
28549
29336
 
28550
- if (orgId !== undefined) {
28551
- localVarQueryParameter['org_id'] = orgId;
28552
- }
28553
29337
 
28554
- if (startDate !== undefined) {
28555
- localVarQueryParameter['start_date'] = startDate;
28556
- }
29338
+
29339
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
29340
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
29341
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
28557
29342
 
28558
- if (endDate !== undefined) {
28559
- localVarQueryParameter['end_date'] = endDate;
29343
+ return {
29344
+ url: toPathString(localVarUrlObj),
29345
+ options: localVarRequestOptions,
29346
+ };
29347
+ },
29348
+ /**
29349
+ * Generates an invoice automatically from a completed payment
29350
+ * @summary Generate invoice from payment
29351
+ * @param {number} paymentId Payment ID
29352
+ * @param {*} [options] Override http request option.
29353
+ * @throws {RequiredError}
29354
+ */
29355
+ adminBillingInvoicesGeneratePaymentIdPost: async (paymentId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
29356
+ // verify required parameter 'paymentId' is not null or undefined
29357
+ assertParamExists('adminBillingInvoicesGeneratePaymentIdPost', 'paymentId', paymentId)
29358
+ const localVarPath = `/admin/billing/invoices/generate/{paymentId}`
29359
+ .replace(`{${"paymentId"}}`, encodeURIComponent(String(paymentId)));
29360
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
29361
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
29362
+ let baseOptions;
29363
+ if (configuration) {
29364
+ baseOptions = configuration.baseOptions;
28560
29365
  }
28561
29366
 
28562
- if (limit !== undefined) {
28563
- localVarQueryParameter['limit'] = limit;
28564
- }
29367
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
29368
+ const localVarHeaderParameter = {} as any;
29369
+ const localVarQueryParameter = {} as any;
28565
29370
 
28566
- if (offset !== undefined) {
28567
- localVarQueryParameter['offset'] = offset;
28568
- }
29371
+ // authentication BearerAuth required
29372
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
28569
29373
 
28570
29374
 
28571
29375
 
@@ -28579,18 +29383,19 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
28579
29383
  };
28580
29384
  },
28581
29385
  /**
28582
- * Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization
28583
- * @summary Get credit purchases
28584
- * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
29386
+ * Retrieves invoices with filtering options
29387
+ * @summary Get invoices
29388
+ * @param {number} [orgId] Organization ID
29389
+ * @param {string} [status] Invoice status
28585
29390
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
28586
29391
  * @param {string} [endDate] End date (YYYY-MM-DD format)
28587
- * @param {number} [limit] Number of results per page (default: 50, max: 100)
28588
- * @param {number} [offset] Number of results to skip (default: 0)
29392
+ * @param {number} [page] Page number (default: 1)
29393
+ * @param {number} [limit] Number of results per page (default: 20, max: 100)
28589
29394
  * @param {*} [options] Override http request option.
28590
29395
  * @throws {RequiredError}
28591
29396
  */
28592
- adminBillingCreditPurchasesGet: async (orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
28593
- const localVarPath = `/admin/billing/credit-purchases`;
29397
+ adminBillingInvoicesGet: async (orgId?: number, status?: string, startDate?: string, endDate?: string, page?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
29398
+ const localVarPath = `/admin/billing/invoices`;
28594
29399
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
28595
29400
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
28596
29401
  let baseOptions;
@@ -28609,6 +29414,10 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
28609
29414
  localVarQueryParameter['org_id'] = orgId;
28610
29415
  }
28611
29416
 
29417
+ if (status !== undefined) {
29418
+ localVarQueryParameter['status'] = status;
29419
+ }
29420
+
28612
29421
  if (startDate !== undefined) {
28613
29422
  localVarQueryParameter['start_date'] = startDate;
28614
29423
  }
@@ -28617,14 +29426,51 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
28617
29426
  localVarQueryParameter['end_date'] = endDate;
28618
29427
  }
28619
29428
 
29429
+ if (page !== undefined) {
29430
+ localVarQueryParameter['page'] = page;
29431
+ }
29432
+
28620
29433
  if (limit !== undefined) {
28621
29434
  localVarQueryParameter['limit'] = limit;
28622
29435
  }
28623
29436
 
28624
- if (offset !== undefined) {
28625
- localVarQueryParameter['offset'] = offset;
29437
+
29438
+
29439
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
29440
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
29441
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
29442
+
29443
+ return {
29444
+ url: toPathString(localVarUrlObj),
29445
+ options: localVarRequestOptions,
29446
+ };
29447
+ },
29448
+ /**
29449
+ * Deletes an invoice (soft delete by setting status to cancelled)
29450
+ * @summary Delete invoice
29451
+ * @param {string} id Invoice ID
29452
+ * @param {*} [options] Override http request option.
29453
+ * @throws {RequiredError}
29454
+ */
29455
+ adminBillingInvoicesIdDelete: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
29456
+ // verify required parameter 'id' is not null or undefined
29457
+ assertParamExists('adminBillingInvoicesIdDelete', 'id', id)
29458
+ const localVarPath = `/admin/billing/invoices/{id}`
29459
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
29460
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
29461
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
29462
+ let baseOptions;
29463
+ if (configuration) {
29464
+ baseOptions = configuration.baseOptions;
28626
29465
  }
28627
29466
 
29467
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
29468
+ const localVarHeaderParameter = {} as any;
29469
+ const localVarQueryParameter = {} as any;
29470
+
29471
+ // authentication BearerAuth required
29472
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
29473
+
28628
29474
 
28629
29475
 
28630
29476
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -28637,18 +29483,17 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
28637
29483
  };
28638
29484
  },
28639
29485
  /**
28640
- * Retrieves paginated list of credit transactions with filtering options for the authenticated user\'s organization
28641
- * @summary Get credit transactions
28642
- * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
28643
- * @param {string} [startDate] Start date (YYYY-MM-DD format)
28644
- * @param {string} [endDate] End date (YYYY-MM-DD format)
28645
- * @param {number} [limit] Number of results per page (default: 50, max: 100)
28646
- * @param {number} [offset] Number of results to skip (default: 0)
29486
+ * Retrieves a single invoice by ID
29487
+ * @summary Get invoice
29488
+ * @param {string} id Invoice ID
28647
29489
  * @param {*} [options] Override http request option.
28648
29490
  * @throws {RequiredError}
28649
29491
  */
28650
- adminBillingCreditTransactionsGet: async (orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
28651
- const localVarPath = `/admin/billing/credit-transactions`;
29492
+ adminBillingInvoicesIdGet: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
29493
+ // verify required parameter 'id' is not null or undefined
29494
+ assertParamExists('adminBillingInvoicesIdGet', 'id', id)
29495
+ const localVarPath = `/admin/billing/invoices/{id}`
29496
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
28652
29497
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
28653
29498
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
28654
29499
  let baseOptions;
@@ -28663,31 +29508,54 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
28663
29508
  // authentication BearerAuth required
28664
29509
  await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
28665
29510
 
28666
- if (orgId !== undefined) {
28667
- localVarQueryParameter['org_id'] = orgId;
28668
- }
28669
29511
 
28670
- if (startDate !== undefined) {
28671
- localVarQueryParameter['start_date'] = startDate;
28672
- }
29512
+
29513
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
29514
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
29515
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
28673
29516
 
28674
- if (endDate !== undefined) {
28675
- localVarQueryParameter['end_date'] = endDate;
29517
+ return {
29518
+ url: toPathString(localVarUrlObj),
29519
+ options: localVarRequestOptions,
29520
+ };
29521
+ },
29522
+ /**
29523
+ * Updates an existing invoice
29524
+ * @summary Update invoice
29525
+ * @param {string} id Invoice ID
29526
+ * @param {DataTypesUpdateInvoiceRequest} dataTypesUpdateInvoiceRequest Updated invoice data
29527
+ * @param {*} [options] Override http request option.
29528
+ * @throws {RequiredError}
29529
+ */
29530
+ adminBillingInvoicesIdPut: async (id: string, dataTypesUpdateInvoiceRequest: DataTypesUpdateInvoiceRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
29531
+ // verify required parameter 'id' is not null or undefined
29532
+ assertParamExists('adminBillingInvoicesIdPut', 'id', id)
29533
+ // verify required parameter 'dataTypesUpdateInvoiceRequest' is not null or undefined
29534
+ assertParamExists('adminBillingInvoicesIdPut', 'dataTypesUpdateInvoiceRequest', dataTypesUpdateInvoiceRequest)
29535
+ const localVarPath = `/admin/billing/invoices/{id}`
29536
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
29537
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
29538
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
29539
+ let baseOptions;
29540
+ if (configuration) {
29541
+ baseOptions = configuration.baseOptions;
28676
29542
  }
28677
29543
 
28678
- if (limit !== undefined) {
28679
- localVarQueryParameter['limit'] = limit;
28680
- }
29544
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
29545
+ const localVarHeaderParameter = {} as any;
29546
+ const localVarQueryParameter = {} as any;
28681
29547
 
28682
- if (offset !== undefined) {
28683
- localVarQueryParameter['offset'] = offset;
28684
- }
29548
+ // authentication BearerAuth required
29549
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
28685
29550
 
28686
29551
 
28687
29552
 
29553
+ localVarHeaderParameter['Content-Type'] = 'application/json';
29554
+
28688
29555
  setSearchParams(localVarUrlObj, localVarQueryParameter);
28689
29556
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28690
29557
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
29558
+ localVarRequestOptions.data = serializeDataIfNeeded(dataTypesUpdateInvoiceRequest, localVarRequestOptions, configuration)
28691
29559
 
28692
29560
  return {
28693
29561
  url: toPathString(localVarUrlObj),
@@ -28882,6 +29750,39 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
28882
29750
 
28883
29751
 
28884
29752
 
29753
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
29754
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
29755
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
29756
+
29757
+ return {
29758
+ url: toPathString(localVarUrlObj),
29759
+ options: localVarRequestOptions,
29760
+ };
29761
+ },
29762
+ /**
29763
+ * Returns comprehensive billing overview with credit balance, plan info, and usage summary
29764
+ * @summary Get billing overview (new)
29765
+ * @param {*} [options] Override http request option.
29766
+ * @throws {RequiredError}
29767
+ */
29768
+ adminBillingOverviewNewGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
29769
+ const localVarPath = `/admin/billing/overview-new`;
29770
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
29771
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
29772
+ let baseOptions;
29773
+ if (configuration) {
29774
+ baseOptions = configuration.baseOptions;
29775
+ }
29776
+
29777
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
29778
+ const localVarHeaderParameter = {} as any;
29779
+ const localVarQueryParameter = {} as any;
29780
+
29781
+ // authentication BearerAuth required
29782
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
29783
+
29784
+
29785
+
28885
29786
  setSearchParams(localVarUrlObj, localVarQueryParameter);
28886
29787
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28887
29788
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -28973,6 +29874,49 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
28973
29874
 
28974
29875
 
28975
29876
 
29877
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
29878
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
29879
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
29880
+
29881
+ return {
29882
+ url: toPathString(localVarUrlObj),
29883
+ options: localVarRequestOptions,
29884
+ };
29885
+ },
29886
+ /**
29887
+ * Returns detailed usage information with charts and breakdown
29888
+ * @summary Get usage details
29889
+ * @param {string} [startDate] Start date (YYYY-MM-DD format)
29890
+ * @param {string} [endDate] End date (YYYY-MM-DD format)
29891
+ * @param {*} [options] Override http request option.
29892
+ * @throws {RequiredError}
29893
+ */
29894
+ adminBillingUsageDetailsGet: async (startDate?: string, endDate?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
29895
+ const localVarPath = `/admin/billing/usage-details`;
29896
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
29897
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
29898
+ let baseOptions;
29899
+ if (configuration) {
29900
+ baseOptions = configuration.baseOptions;
29901
+ }
29902
+
29903
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
29904
+ const localVarHeaderParameter = {} as any;
29905
+ const localVarQueryParameter = {} as any;
29906
+
29907
+ // authentication BearerAuth required
29908
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
29909
+
29910
+ if (startDate !== undefined) {
29911
+ localVarQueryParameter['start_date'] = startDate;
29912
+ }
29913
+
29914
+ if (endDate !== undefined) {
29915
+ localVarQueryParameter['end_date'] = endDate;
29916
+ }
29917
+
29918
+
29919
+
28976
29920
  setSearchParams(localVarUrlObj, localVarQueryParameter);
28977
29921
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28978
29922
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -29114,6 +30058,89 @@ export const BillingDashboardApiFp = function(configuration?: Configuration) {
29114
30058
  const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingCreditTransactionsGet']?.[localVarOperationServerIndex]?.url;
29115
30059
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
29116
30060
  },
30061
+ /**
30062
+ * Automatically generates invoices for all completed payments without invoices
30063
+ * @summary Auto-generate invoices
30064
+ * @param {*} [options] Override http request option.
30065
+ * @throws {RequiredError}
30066
+ */
30067
+ async adminBillingInvoicesAutoGeneratePost(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
30068
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingInvoicesAutoGeneratePost(options);
30069
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
30070
+ const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingInvoicesAutoGeneratePost']?.[localVarOperationServerIndex]?.url;
30071
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
30072
+ },
30073
+ /**
30074
+ * Generates an invoice automatically from a completed payment
30075
+ * @summary Generate invoice from payment
30076
+ * @param {number} paymentId Payment ID
30077
+ * @param {*} [options] Override http request option.
30078
+ * @throws {RequiredError}
30079
+ */
30080
+ async adminBillingInvoicesGeneratePaymentIdPost(paymentId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesGenericResponseDataTypesInvoice>> {
30081
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingInvoicesGeneratePaymentIdPost(paymentId, options);
30082
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
30083
+ const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingInvoicesGeneratePaymentIdPost']?.[localVarOperationServerIndex]?.url;
30084
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
30085
+ },
30086
+ /**
30087
+ * Retrieves invoices with filtering options
30088
+ * @summary Get invoices
30089
+ * @param {number} [orgId] Organization ID
30090
+ * @param {string} [status] Invoice status
30091
+ * @param {string} [startDate] Start date (YYYY-MM-DD format)
30092
+ * @param {string} [endDate] End date (YYYY-MM-DD format)
30093
+ * @param {number} [page] Page number (default: 1)
30094
+ * @param {number} [limit] Number of results per page (default: 20, max: 100)
30095
+ * @param {*} [options] Override http request option.
30096
+ * @throws {RequiredError}
30097
+ */
30098
+ async adminBillingInvoicesGet(orgId?: number, status?: string, startDate?: string, endDate?: string, page?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesGenericResponseDataTypesInvoiceResponse>> {
30099
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingInvoicesGet(orgId, status, startDate, endDate, page, limit, options);
30100
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
30101
+ const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingInvoicesGet']?.[localVarOperationServerIndex]?.url;
30102
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
30103
+ },
30104
+ /**
30105
+ * Deletes an invoice (soft delete by setting status to cancelled)
30106
+ * @summary Delete invoice
30107
+ * @param {string} id Invoice ID
30108
+ * @param {*} [options] Override http request option.
30109
+ * @throws {RequiredError}
30110
+ */
30111
+ async adminBillingInvoicesIdDelete(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesGenericResponseAny>> {
30112
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingInvoicesIdDelete(id, options);
30113
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
30114
+ const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingInvoicesIdDelete']?.[localVarOperationServerIndex]?.url;
30115
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
30116
+ },
30117
+ /**
30118
+ * Retrieves a single invoice by ID
30119
+ * @summary Get invoice
30120
+ * @param {string} id Invoice ID
30121
+ * @param {*} [options] Override http request option.
30122
+ * @throws {RequiredError}
30123
+ */
30124
+ async adminBillingInvoicesIdGet(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesGenericResponseDataTypesInvoice>> {
30125
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingInvoicesIdGet(id, options);
30126
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
30127
+ const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingInvoicesIdGet']?.[localVarOperationServerIndex]?.url;
30128
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
30129
+ },
30130
+ /**
30131
+ * Updates an existing invoice
30132
+ * @summary Update invoice
30133
+ * @param {string} id Invoice ID
30134
+ * @param {DataTypesUpdateInvoiceRequest} dataTypesUpdateInvoiceRequest Updated invoice data
30135
+ * @param {*} [options] Override http request option.
30136
+ * @throws {RequiredError}
30137
+ */
30138
+ async adminBillingInvoicesIdPut(id: string, dataTypesUpdateInvoiceRequest: DataTypesUpdateInvoiceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesGenericResponseDataTypesInvoice>> {
30139
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingInvoicesIdPut(id, dataTypesUpdateInvoiceRequest, options);
30140
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
30141
+ const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingInvoicesIdPut']?.[localVarOperationServerIndex]?.url;
30142
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
30143
+ },
29117
30144
  /**
29118
30145
  * Retrieves paginated list of orders with filtering options for the authenticated user\'s organization
29119
30146
  * @summary Get orders
@@ -29175,6 +30202,18 @@ export const BillingDashboardApiFp = function(configuration?: Configuration) {
29175
30202
  const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingOverviewGet']?.[localVarOperationServerIndex]?.url;
29176
30203
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
29177
30204
  },
30205
+ /**
30206
+ * Returns comprehensive billing overview with credit balance, plan info, and usage summary
30207
+ * @summary Get billing overview (new)
30208
+ * @param {*} [options] Override http request option.
30209
+ * @throws {RequiredError}
30210
+ */
30211
+ async adminBillingOverviewNewGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesGenericResponseDataTypesBillingOverviewResponse>> {
30212
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingOverviewNewGet(options);
30213
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
30214
+ const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingOverviewNewGet']?.[localVarOperationServerIndex]?.url;
30215
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
30216
+ },
29178
30217
  /**
29179
30218
  * Retrieves paginated list of payment transactions with filtering options for the authenticated user\'s organization
29180
30219
  * @summary Get payment transactions
@@ -29204,6 +30243,20 @@ export const BillingDashboardApiFp = function(configuration?: Configuration) {
29204
30243
  const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingSavedCardsGet']?.[localVarOperationServerIndex]?.url;
29205
30244
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
29206
30245
  },
30246
+ /**
30247
+ * Returns detailed usage information with charts and breakdown
30248
+ * @summary Get usage details
30249
+ * @param {string} [startDate] Start date (YYYY-MM-DD format)
30250
+ * @param {string} [endDate] End date (YYYY-MM-DD format)
30251
+ * @param {*} [options] Override http request option.
30252
+ * @throws {RequiredError}
30253
+ */
30254
+ async adminBillingUsageDetailsGet(startDate?: string, endDate?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesGenericResponseDataTypesUsageDetailsResponse>> {
30255
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingUsageDetailsGet(startDate, endDate, options);
30256
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
30257
+ const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingUsageDetailsGet']?.[localVarOperationServerIndex]?.url;
30258
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
30259
+ },
29207
30260
  }
29208
30261
  };
29209
30262
 
@@ -29312,6 +30365,71 @@ export const BillingDashboardApiFactory = function (configuration?: Configuratio
29312
30365
  adminBillingCreditTransactionsGet(orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesGenericResponseArrayBillingServiceCreditTransactionSummary> {
29313
30366
  return localVarFp.adminBillingCreditTransactionsGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(axios, basePath));
29314
30367
  },
30368
+ /**
30369
+ * Automatically generates invoices for all completed payments without invoices
30370
+ * @summary Auto-generate invoices
30371
+ * @param {*} [options] Override http request option.
30372
+ * @throws {RequiredError}
30373
+ */
30374
+ adminBillingInvoicesAutoGeneratePost(options?: RawAxiosRequestConfig): AxiosPromise<object> {
30375
+ return localVarFp.adminBillingInvoicesAutoGeneratePost(options).then((request) => request(axios, basePath));
30376
+ },
30377
+ /**
30378
+ * Generates an invoice automatically from a completed payment
30379
+ * @summary Generate invoice from payment
30380
+ * @param {number} paymentId Payment ID
30381
+ * @param {*} [options] Override http request option.
30382
+ * @throws {RequiredError}
30383
+ */
30384
+ adminBillingInvoicesGeneratePaymentIdPost(paymentId: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesGenericResponseDataTypesInvoice> {
30385
+ return localVarFp.adminBillingInvoicesGeneratePaymentIdPost(paymentId, options).then((request) => request(axios, basePath));
30386
+ },
30387
+ /**
30388
+ * Retrieves invoices with filtering options
30389
+ * @summary Get invoices
30390
+ * @param {number} [orgId] Organization ID
30391
+ * @param {string} [status] Invoice status
30392
+ * @param {string} [startDate] Start date (YYYY-MM-DD format)
30393
+ * @param {string} [endDate] End date (YYYY-MM-DD format)
30394
+ * @param {number} [page] Page number (default: 1)
30395
+ * @param {number} [limit] Number of results per page (default: 20, max: 100)
30396
+ * @param {*} [options] Override http request option.
30397
+ * @throws {RequiredError}
30398
+ */
30399
+ adminBillingInvoicesGet(orgId?: number, status?: string, startDate?: string, endDate?: string, page?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesGenericResponseDataTypesInvoiceResponse> {
30400
+ return localVarFp.adminBillingInvoicesGet(orgId, status, startDate, endDate, page, limit, options).then((request) => request(axios, basePath));
30401
+ },
30402
+ /**
30403
+ * Deletes an invoice (soft delete by setting status to cancelled)
30404
+ * @summary Delete invoice
30405
+ * @param {string} id Invoice ID
30406
+ * @param {*} [options] Override http request option.
30407
+ * @throws {RequiredError}
30408
+ */
30409
+ adminBillingInvoicesIdDelete(id: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesGenericResponseAny> {
30410
+ return localVarFp.adminBillingInvoicesIdDelete(id, options).then((request) => request(axios, basePath));
30411
+ },
30412
+ /**
30413
+ * Retrieves a single invoice by ID
30414
+ * @summary Get invoice
30415
+ * @param {string} id Invoice ID
30416
+ * @param {*} [options] Override http request option.
30417
+ * @throws {RequiredError}
30418
+ */
30419
+ adminBillingInvoicesIdGet(id: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesGenericResponseDataTypesInvoice> {
30420
+ return localVarFp.adminBillingInvoicesIdGet(id, options).then((request) => request(axios, basePath));
30421
+ },
30422
+ /**
30423
+ * Updates an existing invoice
30424
+ * @summary Update invoice
30425
+ * @param {string} id Invoice ID
30426
+ * @param {DataTypesUpdateInvoiceRequest} dataTypesUpdateInvoiceRequest Updated invoice data
30427
+ * @param {*} [options] Override http request option.
30428
+ * @throws {RequiredError}
30429
+ */
30430
+ adminBillingInvoicesIdPut(id: string, dataTypesUpdateInvoiceRequest: DataTypesUpdateInvoiceRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesGenericResponseDataTypesInvoice> {
30431
+ return localVarFp.adminBillingInvoicesIdPut(id, dataTypesUpdateInvoiceRequest, options).then((request) => request(axios, basePath));
30432
+ },
29315
30433
  /**
29316
30434
  * Retrieves paginated list of orders with filtering options for the authenticated user\'s organization
29317
30435
  * @summary Get orders
@@ -29361,6 +30479,15 @@ export const BillingDashboardApiFactory = function (configuration?: Configuratio
29361
30479
  adminBillingOverviewGet(orgId?: number, startDate?: string, endDate?: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesGenericResponseBillingServiceBillingOverview> {
29362
30480
  return localVarFp.adminBillingOverviewGet(orgId, startDate, endDate, options).then((request) => request(axios, basePath));
29363
30481
  },
30482
+ /**
30483
+ * Returns comprehensive billing overview with credit balance, plan info, and usage summary
30484
+ * @summary Get billing overview (new)
30485
+ * @param {*} [options] Override http request option.
30486
+ * @throws {RequiredError}
30487
+ */
30488
+ adminBillingOverviewNewGet(options?: RawAxiosRequestConfig): AxiosPromise<DataTypesGenericResponseDataTypesBillingOverviewResponse> {
30489
+ return localVarFp.adminBillingOverviewNewGet(options).then((request) => request(axios, basePath));
30490
+ },
29364
30491
  /**
29365
30492
  * Retrieves paginated list of payment transactions with filtering options for the authenticated user\'s organization
29366
30493
  * @summary Get payment transactions
@@ -29384,6 +30511,17 @@ export const BillingDashboardApiFactory = function (configuration?: Configuratio
29384
30511
  adminBillingSavedCardsGet(options?: RawAxiosRequestConfig): AxiosPromise<DataTypesGenericResponseDataTypesSavedCardsResponse> {
29385
30512
  return localVarFp.adminBillingSavedCardsGet(options).then((request) => request(axios, basePath));
29386
30513
  },
30514
+ /**
30515
+ * Returns detailed usage information with charts and breakdown
30516
+ * @summary Get usage details
30517
+ * @param {string} [startDate] Start date (YYYY-MM-DD format)
30518
+ * @param {string} [endDate] End date (YYYY-MM-DD format)
30519
+ * @param {*} [options] Override http request option.
30520
+ * @throws {RequiredError}
30521
+ */
30522
+ adminBillingUsageDetailsGet(startDate?: string, endDate?: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesGenericResponseDataTypesUsageDetailsResponse> {
30523
+ return localVarFp.adminBillingUsageDetailsGet(startDate, endDate, options).then((request) => request(axios, basePath));
30524
+ },
29387
30525
  };
29388
30526
  };
29389
30527
 
@@ -29508,6 +30646,83 @@ export class BillingDashboardApi extends BaseAPI {
29508
30646
  return BillingDashboardApiFp(this.configuration).adminBillingCreditTransactionsGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(this.axios, this.basePath));
29509
30647
  }
29510
30648
 
30649
+ /**
30650
+ * Automatically generates invoices for all completed payments without invoices
30651
+ * @summary Auto-generate invoices
30652
+ * @param {*} [options] Override http request option.
30653
+ * @throws {RequiredError}
30654
+ * @memberof BillingDashboardApi
30655
+ */
30656
+ public adminBillingInvoicesAutoGeneratePost(options?: RawAxiosRequestConfig) {
30657
+ return BillingDashboardApiFp(this.configuration).adminBillingInvoicesAutoGeneratePost(options).then((request) => request(this.axios, this.basePath));
30658
+ }
30659
+
30660
+ /**
30661
+ * Generates an invoice automatically from a completed payment
30662
+ * @summary Generate invoice from payment
30663
+ * @param {number} paymentId Payment ID
30664
+ * @param {*} [options] Override http request option.
30665
+ * @throws {RequiredError}
30666
+ * @memberof BillingDashboardApi
30667
+ */
30668
+ public adminBillingInvoicesGeneratePaymentIdPost(paymentId: number, options?: RawAxiosRequestConfig) {
30669
+ return BillingDashboardApiFp(this.configuration).adminBillingInvoicesGeneratePaymentIdPost(paymentId, options).then((request) => request(this.axios, this.basePath));
30670
+ }
30671
+
30672
+ /**
30673
+ * Retrieves invoices with filtering options
30674
+ * @summary Get invoices
30675
+ * @param {number} [orgId] Organization ID
30676
+ * @param {string} [status] Invoice status
30677
+ * @param {string} [startDate] Start date (YYYY-MM-DD format)
30678
+ * @param {string} [endDate] End date (YYYY-MM-DD format)
30679
+ * @param {number} [page] Page number (default: 1)
30680
+ * @param {number} [limit] Number of results per page (default: 20, max: 100)
30681
+ * @param {*} [options] Override http request option.
30682
+ * @throws {RequiredError}
30683
+ * @memberof BillingDashboardApi
30684
+ */
30685
+ public adminBillingInvoicesGet(orgId?: number, status?: string, startDate?: string, endDate?: string, page?: number, limit?: number, options?: RawAxiosRequestConfig) {
30686
+ return BillingDashboardApiFp(this.configuration).adminBillingInvoicesGet(orgId, status, startDate, endDate, page, limit, options).then((request) => request(this.axios, this.basePath));
30687
+ }
30688
+
30689
+ /**
30690
+ * Deletes an invoice (soft delete by setting status to cancelled)
30691
+ * @summary Delete invoice
30692
+ * @param {string} id Invoice ID
30693
+ * @param {*} [options] Override http request option.
30694
+ * @throws {RequiredError}
30695
+ * @memberof BillingDashboardApi
30696
+ */
30697
+ public adminBillingInvoicesIdDelete(id: string, options?: RawAxiosRequestConfig) {
30698
+ return BillingDashboardApiFp(this.configuration).adminBillingInvoicesIdDelete(id, options).then((request) => request(this.axios, this.basePath));
30699
+ }
30700
+
30701
+ /**
30702
+ * Retrieves a single invoice by ID
30703
+ * @summary Get invoice
30704
+ * @param {string} id Invoice ID
30705
+ * @param {*} [options] Override http request option.
30706
+ * @throws {RequiredError}
30707
+ * @memberof BillingDashboardApi
30708
+ */
30709
+ public adminBillingInvoicesIdGet(id: string, options?: RawAxiosRequestConfig) {
30710
+ return BillingDashboardApiFp(this.configuration).adminBillingInvoicesIdGet(id, options).then((request) => request(this.axios, this.basePath));
30711
+ }
30712
+
30713
+ /**
30714
+ * Updates an existing invoice
30715
+ * @summary Update invoice
30716
+ * @param {string} id Invoice ID
30717
+ * @param {DataTypesUpdateInvoiceRequest} dataTypesUpdateInvoiceRequest Updated invoice data
30718
+ * @param {*} [options] Override http request option.
30719
+ * @throws {RequiredError}
30720
+ * @memberof BillingDashboardApi
30721
+ */
30722
+ public adminBillingInvoicesIdPut(id: string, dataTypesUpdateInvoiceRequest: DataTypesUpdateInvoiceRequest, options?: RawAxiosRequestConfig) {
30723
+ return BillingDashboardApiFp(this.configuration).adminBillingInvoicesIdPut(id, dataTypesUpdateInvoiceRequest, options).then((request) => request(this.axios, this.basePath));
30724
+ }
30725
+
29511
30726
  /**
29512
30727
  * Retrieves paginated list of orders with filtering options for the authenticated user\'s organization
29513
30728
  * @summary Get orders
@@ -29565,6 +30780,17 @@ export class BillingDashboardApi extends BaseAPI {
29565
30780
  return BillingDashboardApiFp(this.configuration).adminBillingOverviewGet(orgId, startDate, endDate, options).then((request) => request(this.axios, this.basePath));
29566
30781
  }
29567
30782
 
30783
+ /**
30784
+ * Returns comprehensive billing overview with credit balance, plan info, and usage summary
30785
+ * @summary Get billing overview (new)
30786
+ * @param {*} [options] Override http request option.
30787
+ * @throws {RequiredError}
30788
+ * @memberof BillingDashboardApi
30789
+ */
30790
+ public adminBillingOverviewNewGet(options?: RawAxiosRequestConfig) {
30791
+ return BillingDashboardApiFp(this.configuration).adminBillingOverviewNewGet(options).then((request) => request(this.axios, this.basePath));
30792
+ }
30793
+
29568
30794
  /**
29569
30795
  * Retrieves paginated list of payment transactions with filtering options for the authenticated user\'s organization
29570
30796
  * @summary Get payment transactions
@@ -29591,6 +30817,19 @@ export class BillingDashboardApi extends BaseAPI {
29591
30817
  public adminBillingSavedCardsGet(options?: RawAxiosRequestConfig) {
29592
30818
  return BillingDashboardApiFp(this.configuration).adminBillingSavedCardsGet(options).then((request) => request(this.axios, this.basePath));
29593
30819
  }
30820
+
30821
+ /**
30822
+ * Returns detailed usage information with charts and breakdown
30823
+ * @summary Get usage details
30824
+ * @param {string} [startDate] Start date (YYYY-MM-DD format)
30825
+ * @param {string} [endDate] End date (YYYY-MM-DD format)
30826
+ * @param {*} [options] Override http request option.
30827
+ * @throws {RequiredError}
30828
+ * @memberof BillingDashboardApi
30829
+ */
30830
+ public adminBillingUsageDetailsGet(startDate?: string, endDate?: string, options?: RawAxiosRequestConfig) {
30831
+ return BillingDashboardApiFp(this.configuration).adminBillingUsageDetailsGet(startDate, endDate, options).then((request) => request(this.axios, this.basePath));
30832
+ }
29594
30833
  }
29595
30834
 
29596
30835
 
@@ -47456,7 +48695,7 @@ export const StoreCreationApiAxiosParamCreator = function (configuration?: Confi
47456
48695
  };
47457
48696
  },
47458
48697
  /**
47459
- * Retrieves the current step and state of store creation for the user
48698
+ * Retrieves the current step and state of store creation for the user. This endpoint gets the most recent store creation progress. For specific store creation flows, use the path-based endpoint with xstoreid.
47460
48699
  * @summary Get current store creation progress
47461
48700
  * @param {*} [options] Override http request option.
47462
48701
  * @throws {RequiredError}
@@ -47533,7 +48772,7 @@ export const StoreCreationApiAxiosParamCreator = function (configuration?: Confi
47533
48772
  };
47534
48773
  },
47535
48774
  /**
47536
- * Updates a specific step in the store creation flow
48775
+ * Updates a specific step in the store creation flow. This endpoint updates the most recent store creation progress. For specific store creation flows, use the path-based endpoint with xstoreid.
47537
48776
  * @summary Update store creation step
47538
48777
  * @param {DataTypesStoreCreationRequest} dataTypesStoreCreationRequest Store creation step data
47539
48778
  * @param {*} [options] Override http request option.
@@ -47559,6 +48798,123 @@ export const StoreCreationApiAxiosParamCreator = function (configuration?: Confi
47559
48798
 
47560
48799
 
47561
48800
 
48801
+ localVarHeaderParameter['Content-Type'] = 'application/json';
48802
+
48803
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
48804
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
48805
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
48806
+ localVarRequestOptions.data = serializeDataIfNeeded(dataTypesStoreCreationRequest, localVarRequestOptions, configuration)
48807
+
48808
+ return {
48809
+ url: toPathString(localVarUrlObj),
48810
+ options: localVarRequestOptions,
48811
+ };
48812
+ },
48813
+ /**
48814
+ * Deletes (soft delete) the store creation progress for a specific store using XStoreID from path parameter
48815
+ * @summary Delete store creation progress by XStoreID
48816
+ * @param {string} xstoreid XStoreID for specific store creation flow
48817
+ * @param {*} [options] Override http request option.
48818
+ * @throws {RequiredError}
48819
+ */
48820
+ adminV1StoreCreationXstoreidProgressDelete: async (xstoreid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
48821
+ // verify required parameter 'xstoreid' is not null or undefined
48822
+ assertParamExists('adminV1StoreCreationXstoreidProgressDelete', 'xstoreid', xstoreid)
48823
+ const localVarPath = `/admin/v1/store-creation/{xstoreid}/progress`
48824
+ .replace(`{${"xstoreid"}}`, encodeURIComponent(String(xstoreid)));
48825
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
48826
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
48827
+ let baseOptions;
48828
+ if (configuration) {
48829
+ baseOptions = configuration.baseOptions;
48830
+ }
48831
+
48832
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
48833
+ const localVarHeaderParameter = {} as any;
48834
+ const localVarQueryParameter = {} as any;
48835
+
48836
+ // authentication BearerAuth required
48837
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
48838
+
48839
+
48840
+
48841
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
48842
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
48843
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
48844
+
48845
+ return {
48846
+ url: toPathString(localVarUrlObj),
48847
+ options: localVarRequestOptions,
48848
+ };
48849
+ },
48850
+ /**
48851
+ * Retrieves the current step and state of store creation for a specific store using XStoreID from path parameter
48852
+ * @summary Get store creation progress by XStoreID
48853
+ * @param {string} xstoreid XStoreID for specific store creation flow
48854
+ * @param {*} [options] Override http request option.
48855
+ * @throws {RequiredError}
48856
+ */
48857
+ adminV1StoreCreationXstoreidProgressGet: async (xstoreid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
48858
+ // verify required parameter 'xstoreid' is not null or undefined
48859
+ assertParamExists('adminV1StoreCreationXstoreidProgressGet', 'xstoreid', xstoreid)
48860
+ const localVarPath = `/admin/v1/store-creation/{xstoreid}/progress`
48861
+ .replace(`{${"xstoreid"}}`, encodeURIComponent(String(xstoreid)));
48862
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
48863
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
48864
+ let baseOptions;
48865
+ if (configuration) {
48866
+ baseOptions = configuration.baseOptions;
48867
+ }
48868
+
48869
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
48870
+ const localVarHeaderParameter = {} as any;
48871
+ const localVarQueryParameter = {} as any;
48872
+
48873
+ // authentication BearerAuth required
48874
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
48875
+
48876
+
48877
+
48878
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
48879
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
48880
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
48881
+
48882
+ return {
48883
+ url: toPathString(localVarUrlObj),
48884
+ options: localVarRequestOptions,
48885
+ };
48886
+ },
48887
+ /**
48888
+ * Updates a specific step in the store creation flow for a specific store using XStoreID from path parameter
48889
+ * @summary Update store creation step by XStoreID
48890
+ * @param {string} xstoreid XStoreID for specific store creation flow
48891
+ * @param {DataTypesStoreCreationRequest} dataTypesStoreCreationRequest Store creation step data
48892
+ * @param {*} [options] Override http request option.
48893
+ * @throws {RequiredError}
48894
+ */
48895
+ adminV1StoreCreationXstoreidStepPost: async (xstoreid: string, dataTypesStoreCreationRequest: DataTypesStoreCreationRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
48896
+ // verify required parameter 'xstoreid' is not null or undefined
48897
+ assertParamExists('adminV1StoreCreationXstoreidStepPost', 'xstoreid', xstoreid)
48898
+ // verify required parameter 'dataTypesStoreCreationRequest' is not null or undefined
48899
+ assertParamExists('adminV1StoreCreationXstoreidStepPost', 'dataTypesStoreCreationRequest', dataTypesStoreCreationRequest)
48900
+ const localVarPath = `/admin/v1/store-creation/{xstoreid}/step`
48901
+ .replace(`{${"xstoreid"}}`, encodeURIComponent(String(xstoreid)));
48902
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
48903
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
48904
+ let baseOptions;
48905
+ if (configuration) {
48906
+ baseOptions = configuration.baseOptions;
48907
+ }
48908
+
48909
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
48910
+ const localVarHeaderParameter = {} as any;
48911
+ const localVarQueryParameter = {} as any;
48912
+
48913
+ // authentication BearerAuth required
48914
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
48915
+
48916
+
48917
+
47562
48918
  localVarHeaderParameter['Content-Type'] = 'application/json';
47563
48919
 
47564
48920
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -47574,18 +48930,18 @@ export const StoreCreationApiAxiosParamCreator = function (configuration?: Confi
47574
48930
  /**
47575
48931
  * Uploads a custom JSON or CSV file for store data import
47576
48932
  * @summary Upload custom data file for store
47577
- * @param {number} storeId Store ID
48933
+ * @param {string} xstoreid Store XStoreID
47578
48934
  * @param {File} file Data file (JSON or CSV)
47579
48935
  * @param {*} [options] Override http request option.
47580
48936
  * @throws {RequiredError}
47581
48937
  */
47582
- adminV1StoreCreationStoreIdUploadDataPost: async (storeId: number, file: File, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
47583
- // verify required parameter 'storeId' is not null or undefined
47584
- assertParamExists('adminV1StoreCreationStoreIdUploadDataPost', 'storeId', storeId)
48938
+ adminV1StoreCreationXstoreidUploadDataPost: async (xstoreid: string, file: File, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
48939
+ // verify required parameter 'xstoreid' is not null or undefined
48940
+ assertParamExists('adminV1StoreCreationXstoreidUploadDataPost', 'xstoreid', xstoreid)
47585
48941
  // verify required parameter 'file' is not null or undefined
47586
- assertParamExists('adminV1StoreCreationStoreIdUploadDataPost', 'file', file)
47587
- const localVarPath = `/admin/v1/store-creation/{storeId}/upload-data`
47588
- .replace(`{${"storeId"}}`, encodeURIComponent(String(storeId)));
48942
+ assertParamExists('adminV1StoreCreationXstoreidUploadDataPost', 'file', file)
48943
+ const localVarPath = `/admin/v1/store-creation/{xstoreid}/upload-data`
48944
+ .replace(`{${"xstoreid"}}`, encodeURIComponent(String(xstoreid)));
47589
48945
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
47590
48946
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
47591
48947
  let baseOptions;
@@ -47642,7 +48998,7 @@ export const StoreCreationApiFp = function(configuration?: Configuration) {
47642
48998
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
47643
48999
  },
47644
49000
  /**
47645
- * Retrieves the current step and state of store creation for the user
49001
+ * Retrieves the current step and state of store creation for the user. This endpoint gets the most recent store creation progress. For specific store creation flows, use the path-based endpoint with xstoreid.
47646
49002
  * @summary Get current store creation progress
47647
49003
  * @param {*} [options] Override http request option.
47648
49004
  * @throws {RequiredError}
@@ -47667,7 +49023,7 @@ export const StoreCreationApiFp = function(configuration?: Configuration) {
47667
49023
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
47668
49024
  },
47669
49025
  /**
47670
- * Updates a specific step in the store creation flow
49026
+ * Updates a specific step in the store creation flow. This endpoint updates the most recent store creation progress. For specific store creation flows, use the path-based endpoint with xstoreid.
47671
49027
  * @summary Update store creation step
47672
49028
  * @param {DataTypesStoreCreationRequest} dataTypesStoreCreationRequest Store creation step data
47673
49029
  * @param {*} [options] Override http request option.
@@ -47679,18 +49035,58 @@ export const StoreCreationApiFp = function(configuration?: Configuration) {
47679
49035
  const localVarOperationServerBasePath = operationServerMap['StoreCreationApi.adminV1StoreCreationStepPost']?.[localVarOperationServerIndex]?.url;
47680
49036
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
47681
49037
  },
49038
+ /**
49039
+ * Deletes (soft delete) the store creation progress for a specific store using XStoreID from path parameter
49040
+ * @summary Delete store creation progress by XStoreID
49041
+ * @param {string} xstoreid XStoreID for specific store creation flow
49042
+ * @param {*} [options] Override http request option.
49043
+ * @throws {RequiredError}
49044
+ */
49045
+ async adminV1StoreCreationXstoreidProgressDelete(xstoreid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
49046
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminV1StoreCreationXstoreidProgressDelete(xstoreid, options);
49047
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
49048
+ const localVarOperationServerBasePath = operationServerMap['StoreCreationApi.adminV1StoreCreationXstoreidProgressDelete']?.[localVarOperationServerIndex]?.url;
49049
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
49050
+ },
49051
+ /**
49052
+ * Retrieves the current step and state of store creation for a specific store using XStoreID from path parameter
49053
+ * @summary Get store creation progress by XStoreID
49054
+ * @param {string} xstoreid XStoreID for specific store creation flow
49055
+ * @param {*} [options] Override http request option.
49056
+ * @throws {RequiredError}
49057
+ */
49058
+ async adminV1StoreCreationXstoreidProgressGet(xstoreid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesStoreCreationResponseWrapper>> {
49059
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminV1StoreCreationXstoreidProgressGet(xstoreid, options);
49060
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
49061
+ const localVarOperationServerBasePath = operationServerMap['StoreCreationApi.adminV1StoreCreationXstoreidProgressGet']?.[localVarOperationServerIndex]?.url;
49062
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
49063
+ },
49064
+ /**
49065
+ * Updates a specific step in the store creation flow for a specific store using XStoreID from path parameter
49066
+ * @summary Update store creation step by XStoreID
49067
+ * @param {string} xstoreid XStoreID for specific store creation flow
49068
+ * @param {DataTypesStoreCreationRequest} dataTypesStoreCreationRequest Store creation step data
49069
+ * @param {*} [options] Override http request option.
49070
+ * @throws {RequiredError}
49071
+ */
49072
+ async adminV1StoreCreationXstoreidStepPost(xstoreid: string, dataTypesStoreCreationRequest: DataTypesStoreCreationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesStoreCreationResponseWrapper>> {
49073
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminV1StoreCreationXstoreidStepPost(xstoreid, dataTypesStoreCreationRequest, options);
49074
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
49075
+ const localVarOperationServerBasePath = operationServerMap['StoreCreationApi.adminV1StoreCreationXstoreidStepPost']?.[localVarOperationServerIndex]?.url;
49076
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
49077
+ },
47682
49078
  /**
47683
49079
  * Uploads a custom JSON or CSV file for store data import
47684
49080
  * @summary Upload custom data file for store
47685
- * @param {number} storeId Store ID
49081
+ * @param {string} xstoreid Store XStoreID
47686
49082
  * @param {File} file Data file (JSON or CSV)
47687
49083
  * @param {*} [options] Override http request option.
47688
49084
  * @throws {RequiredError}
47689
49085
  */
47690
- async adminV1StoreCreationStoreIdUploadDataPost(storeId: number, file: File, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
47691
- const localVarAxiosArgs = await localVarAxiosParamCreator.adminV1StoreCreationStoreIdUploadDataPost(storeId, file, options);
49086
+ async adminV1StoreCreationXstoreidUploadDataPost(xstoreid: string, file: File, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
49087
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminV1StoreCreationXstoreidUploadDataPost(xstoreid, file, options);
47692
49088
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
47693
- const localVarOperationServerBasePath = operationServerMap['StoreCreationApi.adminV1StoreCreationStoreIdUploadDataPost']?.[localVarOperationServerIndex]?.url;
49089
+ const localVarOperationServerBasePath = operationServerMap['StoreCreationApi.adminV1StoreCreationXstoreidUploadDataPost']?.[localVarOperationServerIndex]?.url;
47694
49090
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
47695
49091
  },
47696
49092
  }
@@ -47713,7 +49109,7 @@ export const StoreCreationApiFactory = function (configuration?: Configuration,
47713
49109
  return localVarFp.adminV1StoreCreationProgressDelete(options).then((request) => request(axios, basePath));
47714
49110
  },
47715
49111
  /**
47716
- * Retrieves the current step and state of store creation for the user
49112
+ * Retrieves the current step and state of store creation for the user. This endpoint gets the most recent store creation progress. For specific store creation flows, use the path-based endpoint with xstoreid.
47717
49113
  * @summary Get current store creation progress
47718
49114
  * @param {*} [options] Override http request option.
47719
49115
  * @throws {RequiredError}
@@ -47732,7 +49128,7 @@ export const StoreCreationApiFactory = function (configuration?: Configuration,
47732
49128
  return localVarFp.adminV1StoreCreationSchemaUploadPost(file, options).then((request) => request(axios, basePath));
47733
49129
  },
47734
49130
  /**
47735
- * Updates a specific step in the store creation flow
49131
+ * Updates a specific step in the store creation flow. This endpoint updates the most recent store creation progress. For specific store creation flows, use the path-based endpoint with xstoreid.
47736
49132
  * @summary Update store creation step
47737
49133
  * @param {DataTypesStoreCreationRequest} dataTypesStoreCreationRequest Store creation step data
47738
49134
  * @param {*} [options] Override http request option.
@@ -47741,16 +49137,47 @@ export const StoreCreationApiFactory = function (configuration?: Configuration,
47741
49137
  adminV1StoreCreationStepPost(dataTypesStoreCreationRequest: DataTypesStoreCreationRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesStoreCreationResponseWrapper> {
47742
49138
  return localVarFp.adminV1StoreCreationStepPost(dataTypesStoreCreationRequest, options).then((request) => request(axios, basePath));
47743
49139
  },
49140
+ /**
49141
+ * Deletes (soft delete) the store creation progress for a specific store using XStoreID from path parameter
49142
+ * @summary Delete store creation progress by XStoreID
49143
+ * @param {string} xstoreid XStoreID for specific store creation flow
49144
+ * @param {*} [options] Override http request option.
49145
+ * @throws {RequiredError}
49146
+ */
49147
+ adminV1StoreCreationXstoreidProgressDelete(xstoreid: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
49148
+ return localVarFp.adminV1StoreCreationXstoreidProgressDelete(xstoreid, options).then((request) => request(axios, basePath));
49149
+ },
49150
+ /**
49151
+ * Retrieves the current step and state of store creation for a specific store using XStoreID from path parameter
49152
+ * @summary Get store creation progress by XStoreID
49153
+ * @param {string} xstoreid XStoreID for specific store creation flow
49154
+ * @param {*} [options] Override http request option.
49155
+ * @throws {RequiredError}
49156
+ */
49157
+ adminV1StoreCreationXstoreidProgressGet(xstoreid: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesStoreCreationResponseWrapper> {
49158
+ return localVarFp.adminV1StoreCreationXstoreidProgressGet(xstoreid, options).then((request) => request(axios, basePath));
49159
+ },
49160
+ /**
49161
+ * Updates a specific step in the store creation flow for a specific store using XStoreID from path parameter
49162
+ * @summary Update store creation step by XStoreID
49163
+ * @param {string} xstoreid XStoreID for specific store creation flow
49164
+ * @param {DataTypesStoreCreationRequest} dataTypesStoreCreationRequest Store creation step data
49165
+ * @param {*} [options] Override http request option.
49166
+ * @throws {RequiredError}
49167
+ */
49168
+ adminV1StoreCreationXstoreidStepPost(xstoreid: string, dataTypesStoreCreationRequest: DataTypesStoreCreationRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesStoreCreationResponseWrapper> {
49169
+ return localVarFp.adminV1StoreCreationXstoreidStepPost(xstoreid, dataTypesStoreCreationRequest, options).then((request) => request(axios, basePath));
49170
+ },
47744
49171
  /**
47745
49172
  * Uploads a custom JSON or CSV file for store data import
47746
49173
  * @summary Upload custom data file for store
47747
- * @param {number} storeId Store ID
49174
+ * @param {string} xstoreid Store XStoreID
47748
49175
  * @param {File} file Data file (JSON or CSV)
47749
49176
  * @param {*} [options] Override http request option.
47750
49177
  * @throws {RequiredError}
47751
49178
  */
47752
- adminV1StoreCreationStoreIdUploadDataPost(storeId: number, file: File, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
47753
- return localVarFp.adminV1StoreCreationStoreIdUploadDataPost(storeId, file, options).then((request) => request(axios, basePath));
49179
+ adminV1StoreCreationXstoreidUploadDataPost(xstoreid: string, file: File, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
49180
+ return localVarFp.adminV1StoreCreationXstoreidUploadDataPost(xstoreid, file, options).then((request) => request(axios, basePath));
47754
49181
  },
47755
49182
  };
47756
49183
  };
@@ -47774,7 +49201,7 @@ export class StoreCreationApi extends BaseAPI {
47774
49201
  }
47775
49202
 
47776
49203
  /**
47777
- * Retrieves the current step and state of store creation for the user
49204
+ * Retrieves the current step and state of store creation for the user. This endpoint gets the most recent store creation progress. For specific store creation flows, use the path-based endpoint with xstoreid.
47778
49205
  * @summary Get current store creation progress
47779
49206
  * @param {*} [options] Override http request option.
47780
49207
  * @throws {RequiredError}
@@ -47797,7 +49224,7 @@ export class StoreCreationApi extends BaseAPI {
47797
49224
  }
47798
49225
 
47799
49226
  /**
47800
- * Updates a specific step in the store creation flow
49227
+ * Updates a specific step in the store creation flow. This endpoint updates the most recent store creation progress. For specific store creation flows, use the path-based endpoint with xstoreid.
47801
49228
  * @summary Update store creation step
47802
49229
  * @param {DataTypesStoreCreationRequest} dataTypesStoreCreationRequest Store creation step data
47803
49230
  * @param {*} [options] Override http request option.
@@ -47808,17 +49235,54 @@ export class StoreCreationApi extends BaseAPI {
47808
49235
  return StoreCreationApiFp(this.configuration).adminV1StoreCreationStepPost(dataTypesStoreCreationRequest, options).then((request) => request(this.axios, this.basePath));
47809
49236
  }
47810
49237
 
49238
+ /**
49239
+ * Deletes (soft delete) the store creation progress for a specific store using XStoreID from path parameter
49240
+ * @summary Delete store creation progress by XStoreID
49241
+ * @param {string} xstoreid XStoreID for specific store creation flow
49242
+ * @param {*} [options] Override http request option.
49243
+ * @throws {RequiredError}
49244
+ * @memberof StoreCreationApi
49245
+ */
49246
+ public adminV1StoreCreationXstoreidProgressDelete(xstoreid: string, options?: RawAxiosRequestConfig) {
49247
+ return StoreCreationApiFp(this.configuration).adminV1StoreCreationXstoreidProgressDelete(xstoreid, options).then((request) => request(this.axios, this.basePath));
49248
+ }
49249
+
49250
+ /**
49251
+ * Retrieves the current step and state of store creation for a specific store using XStoreID from path parameter
49252
+ * @summary Get store creation progress by XStoreID
49253
+ * @param {string} xstoreid XStoreID for specific store creation flow
49254
+ * @param {*} [options] Override http request option.
49255
+ * @throws {RequiredError}
49256
+ * @memberof StoreCreationApi
49257
+ */
49258
+ public adminV1StoreCreationXstoreidProgressGet(xstoreid: string, options?: RawAxiosRequestConfig) {
49259
+ return StoreCreationApiFp(this.configuration).adminV1StoreCreationXstoreidProgressGet(xstoreid, options).then((request) => request(this.axios, this.basePath));
49260
+ }
49261
+
49262
+ /**
49263
+ * Updates a specific step in the store creation flow for a specific store using XStoreID from path parameter
49264
+ * @summary Update store creation step by XStoreID
49265
+ * @param {string} xstoreid XStoreID for specific store creation flow
49266
+ * @param {DataTypesStoreCreationRequest} dataTypesStoreCreationRequest Store creation step data
49267
+ * @param {*} [options] Override http request option.
49268
+ * @throws {RequiredError}
49269
+ * @memberof StoreCreationApi
49270
+ */
49271
+ public adminV1StoreCreationXstoreidStepPost(xstoreid: string, dataTypesStoreCreationRequest: DataTypesStoreCreationRequest, options?: RawAxiosRequestConfig) {
49272
+ return StoreCreationApiFp(this.configuration).adminV1StoreCreationXstoreidStepPost(xstoreid, dataTypesStoreCreationRequest, options).then((request) => request(this.axios, this.basePath));
49273
+ }
49274
+
47811
49275
  /**
47812
49276
  * Uploads a custom JSON or CSV file for store data import
47813
49277
  * @summary Upload custom data file for store
47814
- * @param {number} storeId Store ID
49278
+ * @param {string} xstoreid Store XStoreID
47815
49279
  * @param {File} file Data file (JSON or CSV)
47816
49280
  * @param {*} [options] Override http request option.
47817
49281
  * @throws {RequiredError}
47818
49282
  * @memberof StoreCreationApi
47819
49283
  */
47820
- public adminV1StoreCreationStoreIdUploadDataPost(storeId: number, file: File, options?: RawAxiosRequestConfig) {
47821
- return StoreCreationApiFp(this.configuration).adminV1StoreCreationStoreIdUploadDataPost(storeId, file, options).then((request) => request(this.axios, this.basePath));
49284
+ public adminV1StoreCreationXstoreidUploadDataPost(xstoreid: string, file: File, options?: RawAxiosRequestConfig) {
49285
+ return StoreCreationApiFp(this.configuration).adminV1StoreCreationXstoreidUploadDataPost(xstoreid, file, options).then((request) => request(this.axios, this.basePath));
47822
49286
  }
47823
49287
  }
47824
49288