@seekora-ai/admin-api 1.0.92 → 1.0.94

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
@@ -13693,6 +14130,12 @@ export interface DataTypesLoginRequest {
13693
14130
  * @memberof DataTypesLoginRequest
13694
14131
  */
13695
14132
  'password': string;
14133
+ /**
14134
+ *
14135
+ * @type {string}
14136
+ * @memberof DataTypesLoginRequest
14137
+ */
14138
+ 'token'?: string;
13696
14139
  /**
13697
14140
  *
13698
14141
  * @type {string}
@@ -14177,6 +14620,25 @@ export interface DataTypesMenusListResponse {
14177
14620
  */
14178
14621
  'status'?: number;
14179
14622
  }
14623
+ /**
14624
+ *
14625
+ * @export
14626
+ * @interface DataTypesMetricData
14627
+ */
14628
+ export interface DataTypesMetricData {
14629
+ /**
14630
+ *
14631
+ * @type {Array<number>}
14632
+ * @memberof DataTypesMetricData
14633
+ */
14634
+ 'data_points'?: Array<number>;
14635
+ /**
14636
+ *
14637
+ * @type {string}
14638
+ * @memberof DataTypesMetricData
14639
+ */
14640
+ 'metric_name'?: string;
14641
+ }
14180
14642
  /**
14181
14643
  *
14182
14644
  * @export
@@ -15552,6 +16014,31 @@ export interface DataTypesPaymentsListResponse {
15552
16014
  */
15553
16015
  'status'?: number;
15554
16016
  }
16017
+ /**
16018
+ *
16019
+ * @export
16020
+ * @interface DataTypesPeriodInfo
16021
+ */
16022
+ export interface DataTypesPeriodInfo {
16023
+ /**
16024
+ *
16025
+ * @type {string}
16026
+ * @memberof DataTypesPeriodInfo
16027
+ */
16028
+ 'end_date'?: string;
16029
+ /**
16030
+ * \"April 1, 2025 to October 31, 2025\"
16031
+ * @type {string}
16032
+ * @memberof DataTypesPeriodInfo
16033
+ */
16034
+ 'label'?: string;
16035
+ /**
16036
+ *
16037
+ * @type {string}
16038
+ * @memberof DataTypesPeriodInfo
16039
+ */
16040
+ 'start_date'?: string;
16041
+ }
15555
16042
  /**
15556
16043
  *
15557
16044
  * @export
@@ -16090,7 +16577,7 @@ export interface DataTypesProjectedRunoutInfo {
16090
16577
  */
16091
16578
  'projected_runout_date'?: string;
16092
16579
  /**
16093
- * \"critical\", \"warning\", \"normal\"
16580
+ * \"normal\", \"warning\", \"critical\"
16094
16581
  * @type {string}
16095
16582
  * @memberof DataTypesProjectedRunoutInfo
16096
16583
  */
@@ -17578,19 +18065,19 @@ export interface DataTypesSampleDatasetsResponseWrapper {
17578
18065
  */
17579
18066
  export interface DataTypesSavedCard {
17580
18067
  /**
17581
- * \"Visa\", \"Mastercard\", etc.
18068
+ * \"Visa\", \"MasterCard\", etc.
17582
18069
  * @type {string}
17583
18070
  * @memberof DataTypesSavedCard
17584
18071
  */
17585
18072
  'card_network'?: string;
17586
18073
  /**
17587
- * Masked, e.g., \"XXXX XXXX XXXX 1234\"
18074
+ * Masked: \"**** **** **** 1234\"
17588
18075
  * @type {string}
17589
18076
  * @memberof DataTypesSavedCard
17590
18077
  */
17591
18078
  'card_number'?: string;
17592
18079
  /**
17593
- * \"credit\", \"debit\"
18080
+ * \"Credit\", \"Debit\"
17594
18081
  * @type {string}
17595
18082
  * @memberof DataTypesSavedCard
17596
18083
  */
@@ -17603,16 +18090,16 @@ export interface DataTypesSavedCard {
17603
18090
  'created_at'?: string;
17604
18091
  /**
17605
18092
  *
17606
- * @type {string}
18093
+ * @type {number}
17607
18094
  * @memberof DataTypesSavedCard
17608
18095
  */
17609
- 'expiry_month'?: string;
18096
+ 'expiry_month'?: number;
17610
18097
  /**
17611
18098
  *
17612
- * @type {string}
18099
+ * @type {number}
17613
18100
  * @memberof DataTypesSavedCard
17614
18101
  */
17615
- 'expiry_year'?: string;
18102
+ 'expiry_year'?: number;
17616
18103
  /**
17617
18104
  *
17618
18105
  * @type {boolean}
@@ -17626,7 +18113,7 @@ export interface DataTypesSavedCard {
17626
18113
  */
17627
18114
  'is_expired'?: boolean;
17628
18115
  /**
17629
- *
18116
+ * Bank name
17630
18117
  * @type {string}
17631
18118
  * @memberof DataTypesSavedCard
17632
18119
  */
@@ -18932,6 +19419,25 @@ export interface DataTypesSynonymEntry {
18932
19419
  */
18933
19420
  'synonyms'?: Array<string>;
18934
19421
  }
19422
+ /**
19423
+ *
19424
+ * @export
19425
+ * @interface DataTypesTableCell
19426
+ */
19427
+ export interface DataTypesTableCell {
19428
+ /**
19429
+ * \"header\", \"data\", \"total\"
19430
+ * @type {string}
19431
+ * @memberof DataTypesTableCell
19432
+ */
19433
+ 'type'?: string;
19434
+ /**
19435
+ *
19436
+ * @type {string}
19437
+ * @memberof DataTypesTableCell
19438
+ */
19439
+ 'value'?: string;
19440
+ }
18935
19441
  /**
18936
19442
  *
18937
19443
  * @export
@@ -19257,6 +19763,37 @@ export interface DataTypesUpdateIndexSchemaRequestFieldsInner {
19257
19763
  */
19258
19764
  'sort'?: boolean;
19259
19765
  }
19766
+ /**
19767
+ *
19768
+ * @export
19769
+ * @interface DataTypesUpdateInvoiceRequest
19770
+ */
19771
+ export interface DataTypesUpdateInvoiceRequest {
19772
+ /**
19773
+ *
19774
+ * @type {string}
19775
+ * @memberof DataTypesUpdateInvoiceRequest
19776
+ */
19777
+ 'notes'?: string;
19778
+ /**
19779
+ *
19780
+ * @type {string}
19781
+ * @memberof DataTypesUpdateInvoiceRequest
19782
+ */
19783
+ 'paid_date'?: string;
19784
+ /**
19785
+ *
19786
+ * @type {string}
19787
+ * @memberof DataTypesUpdateInvoiceRequest
19788
+ */
19789
+ 'payment_method'?: string;
19790
+ /**
19791
+ *
19792
+ * @type {string}
19793
+ * @memberof DataTypesUpdateInvoiceRequest
19794
+ */
19795
+ 'status'?: string;
19796
+ }
19260
19797
  /**
19261
19798
  *
19262
19799
  * @export
@@ -19590,6 +20127,93 @@ export interface DataTypesUploadsourceDataResponse {
19590
20127
  */
19591
20128
  'Source'?: DataTypesSource;
19592
20129
  }
20130
+ /**
20131
+ *
20132
+ * @export
20133
+ * @interface DataTypesUsageBreakdown
20134
+ */
20135
+ export interface DataTypesUsageBreakdown {
20136
+ /**
20137
+ *
20138
+ * @type {Array<DataTypesMetricData>}
20139
+ * @memberof DataTypesUsageBreakdown
20140
+ */
20141
+ 'metrics'?: Array<DataTypesMetricData>;
20142
+ /**
20143
+ *
20144
+ * @type {DataTypesPeriodInfo}
20145
+ * @memberof DataTypesUsageBreakdown
20146
+ */
20147
+ 'period'?: DataTypesPeriodInfo;
20148
+ /**
20149
+ *
20150
+ * @type {Array<Array<DataTypesTableCell>>}
20151
+ * @memberof DataTypesUsageBreakdown
20152
+ */
20153
+ 'table_data'?: Array<Array<DataTypesTableCell>>;
20154
+ }
20155
+ /**
20156
+ *
20157
+ * @export
20158
+ * @interface DataTypesUsageDetailsResponse
20159
+ */
20160
+ export interface DataTypesUsageDetailsResponse {
20161
+ /**
20162
+ * Usage breakdown table
20163
+ * @type {DataTypesUsageBreakdown}
20164
+ * @memberof DataTypesUsageDetailsResponse
20165
+ */
20166
+ 'breakdown'?: DataTypesUsageBreakdown;
20167
+ /**
20168
+ * Credit consumption charts
20169
+ * @type {Array<DataTypesCreditChart>}
20170
+ * @memberof DataTypesUsageDetailsResponse
20171
+ */
20172
+ 'credit_charts'?: Array<DataTypesCreditChart>;
20173
+ /**
20174
+ * Credit consumption summary
20175
+ * @type {DataTypesCreditConsumptionSummary}
20176
+ * @memberof DataTypesUsageDetailsResponse
20177
+ */
20178
+ 'credit_summary'?: DataTypesCreditConsumptionSummary;
20179
+ /**
20180
+ * Time period for the data
20181
+ * @type {DataTypesPeriodInfo}
20182
+ * @memberof DataTypesUsageDetailsResponse
20183
+ */
20184
+ 'period'?: DataTypesPeriodInfo;
20185
+ }
20186
+ /**
20187
+ *
20188
+ * @export
20189
+ * @interface DataTypesUsageSummary
20190
+ */
20191
+ export interface DataTypesUsageSummary {
20192
+ /**
20193
+ * \"This month\", \"Last 30 days\", etc.
20194
+ * @type {string}
20195
+ * @memberof DataTypesUsageSummary
20196
+ */
20197
+ 'period'?: string;
20198
+ /**
20199
+ *
20200
+ * @type {number}
20201
+ * @memberof DataTypesUsageSummary
20202
+ */
20203
+ 'records'?: number;
20204
+ /**
20205
+ *
20206
+ * @type {number}
20207
+ * @memberof DataTypesUsageSummary
20208
+ */
20209
+ 'search_requests'?: number;
20210
+ /**
20211
+ *
20212
+ * @type {number}
20213
+ * @memberof DataTypesUsageSummary
20214
+ */
20215
+ 'total_credits_used'?: number;
20216
+ }
19593
20217
  /**
19594
20218
  *
19595
20219
  * @export
@@ -28521,18 +29145,187 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
28521
29145
  };
28522
29146
  },
28523
29147
  /**
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)
29148
+ * Retrieves paginated list of credit ledger entries with filtering options for the authenticated user\'s organization
29149
+ * @summary Get credit ledger
29150
+ * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
29151
+ * @param {string} [startDate] Start date (YYYY-MM-DD format)
29152
+ * @param {string} [endDate] End date (YYYY-MM-DD format)
29153
+ * @param {number} [limit] Number of results per page (default: 50, max: 100)
29154
+ * @param {number} [offset] Number of results to skip (default: 0)
29155
+ * @param {*} [options] Override http request option.
29156
+ * @throws {RequiredError}
29157
+ */
29158
+ adminBillingCreditLedgerGet: async (orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
29159
+ const localVarPath = `/admin/billing/credit-ledger`;
29160
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
29161
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
29162
+ let baseOptions;
29163
+ if (configuration) {
29164
+ baseOptions = configuration.baseOptions;
29165
+ }
29166
+
29167
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
29168
+ const localVarHeaderParameter = {} as any;
29169
+ const localVarQueryParameter = {} as any;
29170
+
29171
+ // authentication BearerAuth required
29172
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
29173
+
29174
+ if (orgId !== undefined) {
29175
+ localVarQueryParameter['org_id'] = orgId;
29176
+ }
29177
+
29178
+ if (startDate !== undefined) {
29179
+ localVarQueryParameter['start_date'] = startDate;
29180
+ }
29181
+
29182
+ if (endDate !== undefined) {
29183
+ localVarQueryParameter['end_date'] = endDate;
29184
+ }
29185
+
29186
+ if (limit !== undefined) {
29187
+ localVarQueryParameter['limit'] = limit;
29188
+ }
29189
+
29190
+ if (offset !== undefined) {
29191
+ localVarQueryParameter['offset'] = offset;
29192
+ }
29193
+
29194
+
29195
+
29196
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
29197
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
29198
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
29199
+
29200
+ return {
29201
+ url: toPathString(localVarUrlObj),
29202
+ options: localVarRequestOptions,
29203
+ };
29204
+ },
29205
+ /**
29206
+ * Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization
29207
+ * @summary Get credit purchases
29208
+ * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
29209
+ * @param {string} [startDate] Start date (YYYY-MM-DD format)
29210
+ * @param {string} [endDate] End date (YYYY-MM-DD format)
29211
+ * @param {number} [limit] Number of results per page (default: 50, max: 100)
29212
+ * @param {number} [offset] Number of results to skip (default: 0)
29213
+ * @param {*} [options] Override http request option.
29214
+ * @throws {RequiredError}
29215
+ */
29216
+ adminBillingCreditPurchasesGet: async (orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
29217
+ const localVarPath = `/admin/billing/credit-purchases`;
29218
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
29219
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
29220
+ let baseOptions;
29221
+ if (configuration) {
29222
+ baseOptions = configuration.baseOptions;
29223
+ }
29224
+
29225
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
29226
+ const localVarHeaderParameter = {} as any;
29227
+ const localVarQueryParameter = {} as any;
29228
+
29229
+ // authentication BearerAuth required
29230
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
29231
+
29232
+ if (orgId !== undefined) {
29233
+ localVarQueryParameter['org_id'] = orgId;
29234
+ }
29235
+
29236
+ if (startDate !== undefined) {
29237
+ localVarQueryParameter['start_date'] = startDate;
29238
+ }
29239
+
29240
+ if (endDate !== undefined) {
29241
+ localVarQueryParameter['end_date'] = endDate;
29242
+ }
29243
+
29244
+ if (limit !== undefined) {
29245
+ localVarQueryParameter['limit'] = limit;
29246
+ }
29247
+
29248
+ if (offset !== undefined) {
29249
+ localVarQueryParameter['offset'] = offset;
29250
+ }
29251
+
29252
+
29253
+
29254
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
29255
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
29256
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
29257
+
29258
+ return {
29259
+ url: toPathString(localVarUrlObj),
29260
+ options: localVarRequestOptions,
29261
+ };
29262
+ },
29263
+ /**
29264
+ * Retrieves paginated list of credit transactions with filtering options for the authenticated user\'s organization
29265
+ * @summary Get credit transactions
29266
+ * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
29267
+ * @param {string} [startDate] Start date (YYYY-MM-DD format)
29268
+ * @param {string} [endDate] End date (YYYY-MM-DD format)
29269
+ * @param {number} [limit] Number of results per page (default: 50, max: 100)
29270
+ * @param {number} [offset] Number of results to skip (default: 0)
29271
+ * @param {*} [options] Override http request option.
29272
+ * @throws {RequiredError}
29273
+ */
29274
+ adminBillingCreditTransactionsGet: async (orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
29275
+ const localVarPath = `/admin/billing/credit-transactions`;
29276
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
29277
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
29278
+ let baseOptions;
29279
+ if (configuration) {
29280
+ baseOptions = configuration.baseOptions;
29281
+ }
29282
+
29283
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
29284
+ const localVarHeaderParameter = {} as any;
29285
+ const localVarQueryParameter = {} as any;
29286
+
29287
+ // authentication BearerAuth required
29288
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
29289
+
29290
+ if (orgId !== undefined) {
29291
+ localVarQueryParameter['org_id'] = orgId;
29292
+ }
29293
+
29294
+ if (startDate !== undefined) {
29295
+ localVarQueryParameter['start_date'] = startDate;
29296
+ }
29297
+
29298
+ if (endDate !== undefined) {
29299
+ localVarQueryParameter['end_date'] = endDate;
29300
+ }
29301
+
29302
+ if (limit !== undefined) {
29303
+ localVarQueryParameter['limit'] = limit;
29304
+ }
29305
+
29306
+ if (offset !== undefined) {
29307
+ localVarQueryParameter['offset'] = offset;
29308
+ }
29309
+
29310
+
29311
+
29312
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
29313
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
29314
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
29315
+
29316
+ return {
29317
+ url: toPathString(localVarUrlObj),
29318
+ options: localVarRequestOptions,
29319
+ };
29320
+ },
29321
+ /**
29322
+ * Automatically generates invoices for all completed payments without invoices
29323
+ * @summary Auto-generate invoices
28531
29324
  * @param {*} [options] Override http request option.
28532
29325
  * @throws {RequiredError}
28533
29326
  */
28534
- adminBillingCreditLedgerGet: async (orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
28535
- const localVarPath = `/admin/billing/credit-ledger`;
29327
+ adminBillingInvoicesAutoGeneratePost: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
29328
+ const localVarPath = `/admin/billing/invoices/auto-generate`;
28536
29329
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
28537
29330
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
28538
29331
  let baseOptions;
@@ -28540,32 +29333,49 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
28540
29333
  baseOptions = configuration.baseOptions;
28541
29334
  }
28542
29335
 
28543
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
29336
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
28544
29337
  const localVarHeaderParameter = {} as any;
28545
29338
  const localVarQueryParameter = {} as any;
28546
29339
 
28547
29340
  // authentication BearerAuth required
28548
29341
  await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
28549
29342
 
28550
- if (orgId !== undefined) {
28551
- localVarQueryParameter['org_id'] = orgId;
28552
- }
28553
29343
 
28554
- if (startDate !== undefined) {
28555
- localVarQueryParameter['start_date'] = startDate;
28556
- }
29344
+
29345
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
29346
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
29347
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
28557
29348
 
28558
- if (endDate !== undefined) {
28559
- localVarQueryParameter['end_date'] = endDate;
29349
+ return {
29350
+ url: toPathString(localVarUrlObj),
29351
+ options: localVarRequestOptions,
29352
+ };
29353
+ },
29354
+ /**
29355
+ * Generates an invoice automatically from a completed payment
29356
+ * @summary Generate invoice from payment
29357
+ * @param {number} paymentId Payment ID
29358
+ * @param {*} [options] Override http request option.
29359
+ * @throws {RequiredError}
29360
+ */
29361
+ adminBillingInvoicesGeneratePaymentIdPost: async (paymentId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
29362
+ // verify required parameter 'paymentId' is not null or undefined
29363
+ assertParamExists('adminBillingInvoicesGeneratePaymentIdPost', 'paymentId', paymentId)
29364
+ const localVarPath = `/admin/billing/invoices/generate/{paymentId}`
29365
+ .replace(`{${"paymentId"}}`, encodeURIComponent(String(paymentId)));
29366
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
29367
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
29368
+ let baseOptions;
29369
+ if (configuration) {
29370
+ baseOptions = configuration.baseOptions;
28560
29371
  }
28561
29372
 
28562
- if (limit !== undefined) {
28563
- localVarQueryParameter['limit'] = limit;
28564
- }
29373
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
29374
+ const localVarHeaderParameter = {} as any;
29375
+ const localVarQueryParameter = {} as any;
28565
29376
 
28566
- if (offset !== undefined) {
28567
- localVarQueryParameter['offset'] = offset;
28568
- }
29377
+ // authentication BearerAuth required
29378
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
28569
29379
 
28570
29380
 
28571
29381
 
@@ -28579,18 +29389,19 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
28579
29389
  };
28580
29390
  },
28581
29391
  /**
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)
29392
+ * Retrieves invoices with filtering options
29393
+ * @summary Get invoices
29394
+ * @param {number} [orgId] Organization ID
29395
+ * @param {string} [status] Invoice status
28585
29396
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
28586
29397
  * @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)
29398
+ * @param {number} [page] Page number (default: 1)
29399
+ * @param {number} [limit] Number of results per page (default: 20, max: 100)
28589
29400
  * @param {*} [options] Override http request option.
28590
29401
  * @throws {RequiredError}
28591
29402
  */
28592
- adminBillingCreditPurchasesGet: async (orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
28593
- const localVarPath = `/admin/billing/credit-purchases`;
29403
+ adminBillingInvoicesGet: async (orgId?: number, status?: string, startDate?: string, endDate?: string, page?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
29404
+ const localVarPath = `/admin/billing/invoices`;
28594
29405
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
28595
29406
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
28596
29407
  let baseOptions;
@@ -28609,6 +29420,10 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
28609
29420
  localVarQueryParameter['org_id'] = orgId;
28610
29421
  }
28611
29422
 
29423
+ if (status !== undefined) {
29424
+ localVarQueryParameter['status'] = status;
29425
+ }
29426
+
28612
29427
  if (startDate !== undefined) {
28613
29428
  localVarQueryParameter['start_date'] = startDate;
28614
29429
  }
@@ -28617,14 +29432,51 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
28617
29432
  localVarQueryParameter['end_date'] = endDate;
28618
29433
  }
28619
29434
 
29435
+ if (page !== undefined) {
29436
+ localVarQueryParameter['page'] = page;
29437
+ }
29438
+
28620
29439
  if (limit !== undefined) {
28621
29440
  localVarQueryParameter['limit'] = limit;
28622
29441
  }
28623
29442
 
28624
- if (offset !== undefined) {
28625
- localVarQueryParameter['offset'] = offset;
29443
+
29444
+
29445
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
29446
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
29447
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
29448
+
29449
+ return {
29450
+ url: toPathString(localVarUrlObj),
29451
+ options: localVarRequestOptions,
29452
+ };
29453
+ },
29454
+ /**
29455
+ * Deletes an invoice (soft delete by setting status to cancelled)
29456
+ * @summary Delete invoice
29457
+ * @param {string} id Invoice ID
29458
+ * @param {*} [options] Override http request option.
29459
+ * @throws {RequiredError}
29460
+ */
29461
+ adminBillingInvoicesIdDelete: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
29462
+ // verify required parameter 'id' is not null or undefined
29463
+ assertParamExists('adminBillingInvoicesIdDelete', 'id', id)
29464
+ const localVarPath = `/admin/billing/invoices/{id}`
29465
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
29466
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
29467
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
29468
+ let baseOptions;
29469
+ if (configuration) {
29470
+ baseOptions = configuration.baseOptions;
28626
29471
  }
28627
29472
 
29473
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
29474
+ const localVarHeaderParameter = {} as any;
29475
+ const localVarQueryParameter = {} as any;
29476
+
29477
+ // authentication BearerAuth required
29478
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
29479
+
28628
29480
 
28629
29481
 
28630
29482
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -28637,18 +29489,17 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
28637
29489
  };
28638
29490
  },
28639
29491
  /**
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)
29492
+ * Retrieves a single invoice by ID
29493
+ * @summary Get invoice
29494
+ * @param {string} id Invoice ID
28647
29495
  * @param {*} [options] Override http request option.
28648
29496
  * @throws {RequiredError}
28649
29497
  */
28650
- adminBillingCreditTransactionsGet: async (orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
28651
- const localVarPath = `/admin/billing/credit-transactions`;
29498
+ adminBillingInvoicesIdGet: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
29499
+ // verify required parameter 'id' is not null or undefined
29500
+ assertParamExists('adminBillingInvoicesIdGet', 'id', id)
29501
+ const localVarPath = `/admin/billing/invoices/{id}`
29502
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
28652
29503
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
28653
29504
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
28654
29505
  let baseOptions;
@@ -28663,31 +29514,54 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
28663
29514
  // authentication BearerAuth required
28664
29515
  await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
28665
29516
 
28666
- if (orgId !== undefined) {
28667
- localVarQueryParameter['org_id'] = orgId;
28668
- }
28669
29517
 
28670
- if (startDate !== undefined) {
28671
- localVarQueryParameter['start_date'] = startDate;
28672
- }
29518
+
29519
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
29520
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
29521
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
28673
29522
 
28674
- if (endDate !== undefined) {
28675
- localVarQueryParameter['end_date'] = endDate;
29523
+ return {
29524
+ url: toPathString(localVarUrlObj),
29525
+ options: localVarRequestOptions,
29526
+ };
29527
+ },
29528
+ /**
29529
+ * Updates an existing invoice
29530
+ * @summary Update invoice
29531
+ * @param {string} id Invoice ID
29532
+ * @param {DataTypesUpdateInvoiceRequest} dataTypesUpdateInvoiceRequest Updated invoice data
29533
+ * @param {*} [options] Override http request option.
29534
+ * @throws {RequiredError}
29535
+ */
29536
+ adminBillingInvoicesIdPut: async (id: string, dataTypesUpdateInvoiceRequest: DataTypesUpdateInvoiceRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
29537
+ // verify required parameter 'id' is not null or undefined
29538
+ assertParamExists('adminBillingInvoicesIdPut', 'id', id)
29539
+ // verify required parameter 'dataTypesUpdateInvoiceRequest' is not null or undefined
29540
+ assertParamExists('adminBillingInvoicesIdPut', 'dataTypesUpdateInvoiceRequest', dataTypesUpdateInvoiceRequest)
29541
+ const localVarPath = `/admin/billing/invoices/{id}`
29542
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
29543
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
29544
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
29545
+ let baseOptions;
29546
+ if (configuration) {
29547
+ baseOptions = configuration.baseOptions;
28676
29548
  }
28677
29549
 
28678
- if (limit !== undefined) {
28679
- localVarQueryParameter['limit'] = limit;
28680
- }
29550
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
29551
+ const localVarHeaderParameter = {} as any;
29552
+ const localVarQueryParameter = {} as any;
28681
29553
 
28682
- if (offset !== undefined) {
28683
- localVarQueryParameter['offset'] = offset;
28684
- }
29554
+ // authentication BearerAuth required
29555
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
28685
29556
 
28686
29557
 
28687
29558
 
29559
+ localVarHeaderParameter['Content-Type'] = 'application/json';
29560
+
28688
29561
  setSearchParams(localVarUrlObj, localVarQueryParameter);
28689
29562
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28690
29563
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
29564
+ localVarRequestOptions.data = serializeDataIfNeeded(dataTypesUpdateInvoiceRequest, localVarRequestOptions, configuration)
28691
29565
 
28692
29566
  return {
28693
29567
  url: toPathString(localVarUrlObj),
@@ -28882,6 +29756,39 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
28882
29756
 
28883
29757
 
28884
29758
 
29759
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
29760
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
29761
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
29762
+
29763
+ return {
29764
+ url: toPathString(localVarUrlObj),
29765
+ options: localVarRequestOptions,
29766
+ };
29767
+ },
29768
+ /**
29769
+ * Returns comprehensive billing overview with credit balance, plan info, and usage summary
29770
+ * @summary Get billing overview (new)
29771
+ * @param {*} [options] Override http request option.
29772
+ * @throws {RequiredError}
29773
+ */
29774
+ adminBillingOverviewNewGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
29775
+ const localVarPath = `/admin/billing/overview-new`;
29776
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
29777
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
29778
+ let baseOptions;
29779
+ if (configuration) {
29780
+ baseOptions = configuration.baseOptions;
29781
+ }
29782
+
29783
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
29784
+ const localVarHeaderParameter = {} as any;
29785
+ const localVarQueryParameter = {} as any;
29786
+
29787
+ // authentication BearerAuth required
29788
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
29789
+
29790
+
29791
+
28885
29792
  setSearchParams(localVarUrlObj, localVarQueryParameter);
28886
29793
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28887
29794
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -28973,6 +29880,49 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
28973
29880
 
28974
29881
 
28975
29882
 
29883
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
29884
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
29885
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
29886
+
29887
+ return {
29888
+ url: toPathString(localVarUrlObj),
29889
+ options: localVarRequestOptions,
29890
+ };
29891
+ },
29892
+ /**
29893
+ * Returns detailed usage information with charts and breakdown
29894
+ * @summary Get usage details
29895
+ * @param {string} [startDate] Start date (YYYY-MM-DD format)
29896
+ * @param {string} [endDate] End date (YYYY-MM-DD format)
29897
+ * @param {*} [options] Override http request option.
29898
+ * @throws {RequiredError}
29899
+ */
29900
+ adminBillingUsageDetailsGet: async (startDate?: string, endDate?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
29901
+ const localVarPath = `/admin/billing/usage-details`;
29902
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
29903
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
29904
+ let baseOptions;
29905
+ if (configuration) {
29906
+ baseOptions = configuration.baseOptions;
29907
+ }
29908
+
29909
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
29910
+ const localVarHeaderParameter = {} as any;
29911
+ const localVarQueryParameter = {} as any;
29912
+
29913
+ // authentication BearerAuth required
29914
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
29915
+
29916
+ if (startDate !== undefined) {
29917
+ localVarQueryParameter['start_date'] = startDate;
29918
+ }
29919
+
29920
+ if (endDate !== undefined) {
29921
+ localVarQueryParameter['end_date'] = endDate;
29922
+ }
29923
+
29924
+
29925
+
28976
29926
  setSearchParams(localVarUrlObj, localVarQueryParameter);
28977
29927
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28978
29928
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -29114,6 +30064,89 @@ export const BillingDashboardApiFp = function(configuration?: Configuration) {
29114
30064
  const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingCreditTransactionsGet']?.[localVarOperationServerIndex]?.url;
29115
30065
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
29116
30066
  },
30067
+ /**
30068
+ * Automatically generates invoices for all completed payments without invoices
30069
+ * @summary Auto-generate invoices
30070
+ * @param {*} [options] Override http request option.
30071
+ * @throws {RequiredError}
30072
+ */
30073
+ async adminBillingInvoicesAutoGeneratePost(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
30074
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingInvoicesAutoGeneratePost(options);
30075
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
30076
+ const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingInvoicesAutoGeneratePost']?.[localVarOperationServerIndex]?.url;
30077
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
30078
+ },
30079
+ /**
30080
+ * Generates an invoice automatically from a completed payment
30081
+ * @summary Generate invoice from payment
30082
+ * @param {number} paymentId Payment ID
30083
+ * @param {*} [options] Override http request option.
30084
+ * @throws {RequiredError}
30085
+ */
30086
+ async adminBillingInvoicesGeneratePaymentIdPost(paymentId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesGenericResponseDataTypesInvoice>> {
30087
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingInvoicesGeneratePaymentIdPost(paymentId, options);
30088
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
30089
+ const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingInvoicesGeneratePaymentIdPost']?.[localVarOperationServerIndex]?.url;
30090
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
30091
+ },
30092
+ /**
30093
+ * Retrieves invoices with filtering options
30094
+ * @summary Get invoices
30095
+ * @param {number} [orgId] Organization ID
30096
+ * @param {string} [status] Invoice status
30097
+ * @param {string} [startDate] Start date (YYYY-MM-DD format)
30098
+ * @param {string} [endDate] End date (YYYY-MM-DD format)
30099
+ * @param {number} [page] Page number (default: 1)
30100
+ * @param {number} [limit] Number of results per page (default: 20, max: 100)
30101
+ * @param {*} [options] Override http request option.
30102
+ * @throws {RequiredError}
30103
+ */
30104
+ async adminBillingInvoicesGet(orgId?: number, status?: string, startDate?: string, endDate?: string, page?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesGenericResponseDataTypesInvoiceResponse>> {
30105
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingInvoicesGet(orgId, status, startDate, endDate, page, limit, options);
30106
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
30107
+ const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingInvoicesGet']?.[localVarOperationServerIndex]?.url;
30108
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
30109
+ },
30110
+ /**
30111
+ * Deletes an invoice (soft delete by setting status to cancelled)
30112
+ * @summary Delete invoice
30113
+ * @param {string} id Invoice ID
30114
+ * @param {*} [options] Override http request option.
30115
+ * @throws {RequiredError}
30116
+ */
30117
+ async adminBillingInvoicesIdDelete(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesGenericResponseAny>> {
30118
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingInvoicesIdDelete(id, options);
30119
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
30120
+ const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingInvoicesIdDelete']?.[localVarOperationServerIndex]?.url;
30121
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
30122
+ },
30123
+ /**
30124
+ * Retrieves a single invoice by ID
30125
+ * @summary Get invoice
30126
+ * @param {string} id Invoice ID
30127
+ * @param {*} [options] Override http request option.
30128
+ * @throws {RequiredError}
30129
+ */
30130
+ async adminBillingInvoicesIdGet(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesGenericResponseDataTypesInvoice>> {
30131
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingInvoicesIdGet(id, options);
30132
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
30133
+ const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingInvoicesIdGet']?.[localVarOperationServerIndex]?.url;
30134
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
30135
+ },
30136
+ /**
30137
+ * Updates an existing invoice
30138
+ * @summary Update invoice
30139
+ * @param {string} id Invoice ID
30140
+ * @param {DataTypesUpdateInvoiceRequest} dataTypesUpdateInvoiceRequest Updated invoice data
30141
+ * @param {*} [options] Override http request option.
30142
+ * @throws {RequiredError}
30143
+ */
30144
+ async adminBillingInvoicesIdPut(id: string, dataTypesUpdateInvoiceRequest: DataTypesUpdateInvoiceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesGenericResponseDataTypesInvoice>> {
30145
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingInvoicesIdPut(id, dataTypesUpdateInvoiceRequest, options);
30146
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
30147
+ const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingInvoicesIdPut']?.[localVarOperationServerIndex]?.url;
30148
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
30149
+ },
29117
30150
  /**
29118
30151
  * Retrieves paginated list of orders with filtering options for the authenticated user\'s organization
29119
30152
  * @summary Get orders
@@ -29175,6 +30208,18 @@ export const BillingDashboardApiFp = function(configuration?: Configuration) {
29175
30208
  const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingOverviewGet']?.[localVarOperationServerIndex]?.url;
29176
30209
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
29177
30210
  },
30211
+ /**
30212
+ * Returns comprehensive billing overview with credit balance, plan info, and usage summary
30213
+ * @summary Get billing overview (new)
30214
+ * @param {*} [options] Override http request option.
30215
+ * @throws {RequiredError}
30216
+ */
30217
+ async adminBillingOverviewNewGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesGenericResponseDataTypesBillingOverviewResponse>> {
30218
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingOverviewNewGet(options);
30219
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
30220
+ const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingOverviewNewGet']?.[localVarOperationServerIndex]?.url;
30221
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
30222
+ },
29178
30223
  /**
29179
30224
  * Retrieves paginated list of payment transactions with filtering options for the authenticated user\'s organization
29180
30225
  * @summary Get payment transactions
@@ -29204,6 +30249,20 @@ export const BillingDashboardApiFp = function(configuration?: Configuration) {
29204
30249
  const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingSavedCardsGet']?.[localVarOperationServerIndex]?.url;
29205
30250
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
29206
30251
  },
30252
+ /**
30253
+ * Returns detailed usage information with charts and breakdown
30254
+ * @summary Get usage details
30255
+ * @param {string} [startDate] Start date (YYYY-MM-DD format)
30256
+ * @param {string} [endDate] End date (YYYY-MM-DD format)
30257
+ * @param {*} [options] Override http request option.
30258
+ * @throws {RequiredError}
30259
+ */
30260
+ async adminBillingUsageDetailsGet(startDate?: string, endDate?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesGenericResponseDataTypesUsageDetailsResponse>> {
30261
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingUsageDetailsGet(startDate, endDate, options);
30262
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
30263
+ const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingUsageDetailsGet']?.[localVarOperationServerIndex]?.url;
30264
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
30265
+ },
29207
30266
  }
29208
30267
  };
29209
30268
 
@@ -29312,6 +30371,71 @@ export const BillingDashboardApiFactory = function (configuration?: Configuratio
29312
30371
  adminBillingCreditTransactionsGet(orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesGenericResponseArrayBillingServiceCreditTransactionSummary> {
29313
30372
  return localVarFp.adminBillingCreditTransactionsGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(axios, basePath));
29314
30373
  },
30374
+ /**
30375
+ * Automatically generates invoices for all completed payments without invoices
30376
+ * @summary Auto-generate invoices
30377
+ * @param {*} [options] Override http request option.
30378
+ * @throws {RequiredError}
30379
+ */
30380
+ adminBillingInvoicesAutoGeneratePost(options?: RawAxiosRequestConfig): AxiosPromise<object> {
30381
+ return localVarFp.adminBillingInvoicesAutoGeneratePost(options).then((request) => request(axios, basePath));
30382
+ },
30383
+ /**
30384
+ * Generates an invoice automatically from a completed payment
30385
+ * @summary Generate invoice from payment
30386
+ * @param {number} paymentId Payment ID
30387
+ * @param {*} [options] Override http request option.
30388
+ * @throws {RequiredError}
30389
+ */
30390
+ adminBillingInvoicesGeneratePaymentIdPost(paymentId: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesGenericResponseDataTypesInvoice> {
30391
+ return localVarFp.adminBillingInvoicesGeneratePaymentIdPost(paymentId, options).then((request) => request(axios, basePath));
30392
+ },
30393
+ /**
30394
+ * Retrieves invoices with filtering options
30395
+ * @summary Get invoices
30396
+ * @param {number} [orgId] Organization ID
30397
+ * @param {string} [status] Invoice status
30398
+ * @param {string} [startDate] Start date (YYYY-MM-DD format)
30399
+ * @param {string} [endDate] End date (YYYY-MM-DD format)
30400
+ * @param {number} [page] Page number (default: 1)
30401
+ * @param {number} [limit] Number of results per page (default: 20, max: 100)
30402
+ * @param {*} [options] Override http request option.
30403
+ * @throws {RequiredError}
30404
+ */
30405
+ adminBillingInvoicesGet(orgId?: number, status?: string, startDate?: string, endDate?: string, page?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesGenericResponseDataTypesInvoiceResponse> {
30406
+ return localVarFp.adminBillingInvoicesGet(orgId, status, startDate, endDate, page, limit, options).then((request) => request(axios, basePath));
30407
+ },
30408
+ /**
30409
+ * Deletes an invoice (soft delete by setting status to cancelled)
30410
+ * @summary Delete invoice
30411
+ * @param {string} id Invoice ID
30412
+ * @param {*} [options] Override http request option.
30413
+ * @throws {RequiredError}
30414
+ */
30415
+ adminBillingInvoicesIdDelete(id: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesGenericResponseAny> {
30416
+ return localVarFp.adminBillingInvoicesIdDelete(id, options).then((request) => request(axios, basePath));
30417
+ },
30418
+ /**
30419
+ * Retrieves a single invoice by ID
30420
+ * @summary Get invoice
30421
+ * @param {string} id Invoice ID
30422
+ * @param {*} [options] Override http request option.
30423
+ * @throws {RequiredError}
30424
+ */
30425
+ adminBillingInvoicesIdGet(id: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesGenericResponseDataTypesInvoice> {
30426
+ return localVarFp.adminBillingInvoicesIdGet(id, options).then((request) => request(axios, basePath));
30427
+ },
30428
+ /**
30429
+ * Updates an existing invoice
30430
+ * @summary Update invoice
30431
+ * @param {string} id Invoice ID
30432
+ * @param {DataTypesUpdateInvoiceRequest} dataTypesUpdateInvoiceRequest Updated invoice data
30433
+ * @param {*} [options] Override http request option.
30434
+ * @throws {RequiredError}
30435
+ */
30436
+ adminBillingInvoicesIdPut(id: string, dataTypesUpdateInvoiceRequest: DataTypesUpdateInvoiceRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesGenericResponseDataTypesInvoice> {
30437
+ return localVarFp.adminBillingInvoicesIdPut(id, dataTypesUpdateInvoiceRequest, options).then((request) => request(axios, basePath));
30438
+ },
29315
30439
  /**
29316
30440
  * Retrieves paginated list of orders with filtering options for the authenticated user\'s organization
29317
30441
  * @summary Get orders
@@ -29361,6 +30485,15 @@ export const BillingDashboardApiFactory = function (configuration?: Configuratio
29361
30485
  adminBillingOverviewGet(orgId?: number, startDate?: string, endDate?: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesGenericResponseBillingServiceBillingOverview> {
29362
30486
  return localVarFp.adminBillingOverviewGet(orgId, startDate, endDate, options).then((request) => request(axios, basePath));
29363
30487
  },
30488
+ /**
30489
+ * Returns comprehensive billing overview with credit balance, plan info, and usage summary
30490
+ * @summary Get billing overview (new)
30491
+ * @param {*} [options] Override http request option.
30492
+ * @throws {RequiredError}
30493
+ */
30494
+ adminBillingOverviewNewGet(options?: RawAxiosRequestConfig): AxiosPromise<DataTypesGenericResponseDataTypesBillingOverviewResponse> {
30495
+ return localVarFp.adminBillingOverviewNewGet(options).then((request) => request(axios, basePath));
30496
+ },
29364
30497
  /**
29365
30498
  * Retrieves paginated list of payment transactions with filtering options for the authenticated user\'s organization
29366
30499
  * @summary Get payment transactions
@@ -29384,6 +30517,17 @@ export const BillingDashboardApiFactory = function (configuration?: Configuratio
29384
30517
  adminBillingSavedCardsGet(options?: RawAxiosRequestConfig): AxiosPromise<DataTypesGenericResponseDataTypesSavedCardsResponse> {
29385
30518
  return localVarFp.adminBillingSavedCardsGet(options).then((request) => request(axios, basePath));
29386
30519
  },
30520
+ /**
30521
+ * Returns detailed usage information with charts and breakdown
30522
+ * @summary Get usage details
30523
+ * @param {string} [startDate] Start date (YYYY-MM-DD format)
30524
+ * @param {string} [endDate] End date (YYYY-MM-DD format)
30525
+ * @param {*} [options] Override http request option.
30526
+ * @throws {RequiredError}
30527
+ */
30528
+ adminBillingUsageDetailsGet(startDate?: string, endDate?: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesGenericResponseDataTypesUsageDetailsResponse> {
30529
+ return localVarFp.adminBillingUsageDetailsGet(startDate, endDate, options).then((request) => request(axios, basePath));
30530
+ },
29387
30531
  };
29388
30532
  };
29389
30533
 
@@ -29508,6 +30652,83 @@ export class BillingDashboardApi extends BaseAPI {
29508
30652
  return BillingDashboardApiFp(this.configuration).adminBillingCreditTransactionsGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(this.axios, this.basePath));
29509
30653
  }
29510
30654
 
30655
+ /**
30656
+ * Automatically generates invoices for all completed payments without invoices
30657
+ * @summary Auto-generate invoices
30658
+ * @param {*} [options] Override http request option.
30659
+ * @throws {RequiredError}
30660
+ * @memberof BillingDashboardApi
30661
+ */
30662
+ public adminBillingInvoicesAutoGeneratePost(options?: RawAxiosRequestConfig) {
30663
+ return BillingDashboardApiFp(this.configuration).adminBillingInvoicesAutoGeneratePost(options).then((request) => request(this.axios, this.basePath));
30664
+ }
30665
+
30666
+ /**
30667
+ * Generates an invoice automatically from a completed payment
30668
+ * @summary Generate invoice from payment
30669
+ * @param {number} paymentId Payment ID
30670
+ * @param {*} [options] Override http request option.
30671
+ * @throws {RequiredError}
30672
+ * @memberof BillingDashboardApi
30673
+ */
30674
+ public adminBillingInvoicesGeneratePaymentIdPost(paymentId: number, options?: RawAxiosRequestConfig) {
30675
+ return BillingDashboardApiFp(this.configuration).adminBillingInvoicesGeneratePaymentIdPost(paymentId, options).then((request) => request(this.axios, this.basePath));
30676
+ }
30677
+
30678
+ /**
30679
+ * Retrieves invoices with filtering options
30680
+ * @summary Get invoices
30681
+ * @param {number} [orgId] Organization ID
30682
+ * @param {string} [status] Invoice status
30683
+ * @param {string} [startDate] Start date (YYYY-MM-DD format)
30684
+ * @param {string} [endDate] End date (YYYY-MM-DD format)
30685
+ * @param {number} [page] Page number (default: 1)
30686
+ * @param {number} [limit] Number of results per page (default: 20, max: 100)
30687
+ * @param {*} [options] Override http request option.
30688
+ * @throws {RequiredError}
30689
+ * @memberof BillingDashboardApi
30690
+ */
30691
+ public adminBillingInvoicesGet(orgId?: number, status?: string, startDate?: string, endDate?: string, page?: number, limit?: number, options?: RawAxiosRequestConfig) {
30692
+ return BillingDashboardApiFp(this.configuration).adminBillingInvoicesGet(orgId, status, startDate, endDate, page, limit, options).then((request) => request(this.axios, this.basePath));
30693
+ }
30694
+
30695
+ /**
30696
+ * Deletes an invoice (soft delete by setting status to cancelled)
30697
+ * @summary Delete invoice
30698
+ * @param {string} id Invoice ID
30699
+ * @param {*} [options] Override http request option.
30700
+ * @throws {RequiredError}
30701
+ * @memberof BillingDashboardApi
30702
+ */
30703
+ public adminBillingInvoicesIdDelete(id: string, options?: RawAxiosRequestConfig) {
30704
+ return BillingDashboardApiFp(this.configuration).adminBillingInvoicesIdDelete(id, options).then((request) => request(this.axios, this.basePath));
30705
+ }
30706
+
30707
+ /**
30708
+ * Retrieves a single invoice by ID
30709
+ * @summary Get invoice
30710
+ * @param {string} id Invoice ID
30711
+ * @param {*} [options] Override http request option.
30712
+ * @throws {RequiredError}
30713
+ * @memberof BillingDashboardApi
30714
+ */
30715
+ public adminBillingInvoicesIdGet(id: string, options?: RawAxiosRequestConfig) {
30716
+ return BillingDashboardApiFp(this.configuration).adminBillingInvoicesIdGet(id, options).then((request) => request(this.axios, this.basePath));
30717
+ }
30718
+
30719
+ /**
30720
+ * Updates an existing invoice
30721
+ * @summary Update invoice
30722
+ * @param {string} id Invoice ID
30723
+ * @param {DataTypesUpdateInvoiceRequest} dataTypesUpdateInvoiceRequest Updated invoice data
30724
+ * @param {*} [options] Override http request option.
30725
+ * @throws {RequiredError}
30726
+ * @memberof BillingDashboardApi
30727
+ */
30728
+ public adminBillingInvoicesIdPut(id: string, dataTypesUpdateInvoiceRequest: DataTypesUpdateInvoiceRequest, options?: RawAxiosRequestConfig) {
30729
+ return BillingDashboardApiFp(this.configuration).adminBillingInvoicesIdPut(id, dataTypesUpdateInvoiceRequest, options).then((request) => request(this.axios, this.basePath));
30730
+ }
30731
+
29511
30732
  /**
29512
30733
  * Retrieves paginated list of orders with filtering options for the authenticated user\'s organization
29513
30734
  * @summary Get orders
@@ -29565,6 +30786,17 @@ export class BillingDashboardApi extends BaseAPI {
29565
30786
  return BillingDashboardApiFp(this.configuration).adminBillingOverviewGet(orgId, startDate, endDate, options).then((request) => request(this.axios, this.basePath));
29566
30787
  }
29567
30788
 
30789
+ /**
30790
+ * Returns comprehensive billing overview with credit balance, plan info, and usage summary
30791
+ * @summary Get billing overview (new)
30792
+ * @param {*} [options] Override http request option.
30793
+ * @throws {RequiredError}
30794
+ * @memberof BillingDashboardApi
30795
+ */
30796
+ public adminBillingOverviewNewGet(options?: RawAxiosRequestConfig) {
30797
+ return BillingDashboardApiFp(this.configuration).adminBillingOverviewNewGet(options).then((request) => request(this.axios, this.basePath));
30798
+ }
30799
+
29568
30800
  /**
29569
30801
  * Retrieves paginated list of payment transactions with filtering options for the authenticated user\'s organization
29570
30802
  * @summary Get payment transactions
@@ -29591,6 +30823,19 @@ export class BillingDashboardApi extends BaseAPI {
29591
30823
  public adminBillingSavedCardsGet(options?: RawAxiosRequestConfig) {
29592
30824
  return BillingDashboardApiFp(this.configuration).adminBillingSavedCardsGet(options).then((request) => request(this.axios, this.basePath));
29593
30825
  }
30826
+
30827
+ /**
30828
+ * Returns detailed usage information with charts and breakdown
30829
+ * @summary Get usage details
30830
+ * @param {string} [startDate] Start date (YYYY-MM-DD format)
30831
+ * @param {string} [endDate] End date (YYYY-MM-DD format)
30832
+ * @param {*} [options] Override http request option.
30833
+ * @throws {RequiredError}
30834
+ * @memberof BillingDashboardApi
30835
+ */
30836
+ public adminBillingUsageDetailsGet(startDate?: string, endDate?: string, options?: RawAxiosRequestConfig) {
30837
+ return BillingDashboardApiFp(this.configuration).adminBillingUsageDetailsGet(startDate, endDate, options).then((request) => request(this.axios, this.basePath));
30838
+ }
29594
30839
  }
29595
30840
 
29596
30841
 
@@ -47456,7 +48701,7 @@ export const StoreCreationApiAxiosParamCreator = function (configuration?: Confi
47456
48701
  };
47457
48702
  },
47458
48703
  /**
47459
- * Retrieves the current step and state of store creation for the user
48704
+ * 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
48705
  * @summary Get current store creation progress
47461
48706
  * @param {*} [options] Override http request option.
47462
48707
  * @throws {RequiredError}
@@ -47533,7 +48778,7 @@ export const StoreCreationApiAxiosParamCreator = function (configuration?: Confi
47533
48778
  };
47534
48779
  },
47535
48780
  /**
47536
- * Updates a specific step in the store creation flow
48781
+ * 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
48782
  * @summary Update store creation step
47538
48783
  * @param {DataTypesStoreCreationRequest} dataTypesStoreCreationRequest Store creation step data
47539
48784
  * @param {*} [options] Override http request option.
@@ -47559,6 +48804,123 @@ export const StoreCreationApiAxiosParamCreator = function (configuration?: Confi
47559
48804
 
47560
48805
 
47561
48806
 
48807
+ localVarHeaderParameter['Content-Type'] = 'application/json';
48808
+
48809
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
48810
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
48811
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
48812
+ localVarRequestOptions.data = serializeDataIfNeeded(dataTypesStoreCreationRequest, localVarRequestOptions, configuration)
48813
+
48814
+ return {
48815
+ url: toPathString(localVarUrlObj),
48816
+ options: localVarRequestOptions,
48817
+ };
48818
+ },
48819
+ /**
48820
+ * Deletes (soft delete) the store creation progress for a specific store using XStoreID from path parameter
48821
+ * @summary Delete store creation progress by XStoreID
48822
+ * @param {string} xstoreid XStoreID for specific store creation flow
48823
+ * @param {*} [options] Override http request option.
48824
+ * @throws {RequiredError}
48825
+ */
48826
+ adminV1StoreCreationXstoreidProgressDelete: async (xstoreid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
48827
+ // verify required parameter 'xstoreid' is not null or undefined
48828
+ assertParamExists('adminV1StoreCreationXstoreidProgressDelete', 'xstoreid', xstoreid)
48829
+ const localVarPath = `/admin/v1/store-creation/{xstoreid}/progress`
48830
+ .replace(`{${"xstoreid"}}`, encodeURIComponent(String(xstoreid)));
48831
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
48832
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
48833
+ let baseOptions;
48834
+ if (configuration) {
48835
+ baseOptions = configuration.baseOptions;
48836
+ }
48837
+
48838
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
48839
+ const localVarHeaderParameter = {} as any;
48840
+ const localVarQueryParameter = {} as any;
48841
+
48842
+ // authentication BearerAuth required
48843
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
48844
+
48845
+
48846
+
48847
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
48848
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
48849
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
48850
+
48851
+ return {
48852
+ url: toPathString(localVarUrlObj),
48853
+ options: localVarRequestOptions,
48854
+ };
48855
+ },
48856
+ /**
48857
+ * Retrieves the current step and state of store creation for a specific store using XStoreID from path parameter
48858
+ * @summary Get store creation progress by XStoreID
48859
+ * @param {string} xstoreid XStoreID for specific store creation flow
48860
+ * @param {*} [options] Override http request option.
48861
+ * @throws {RequiredError}
48862
+ */
48863
+ adminV1StoreCreationXstoreidProgressGet: async (xstoreid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
48864
+ // verify required parameter 'xstoreid' is not null or undefined
48865
+ assertParamExists('adminV1StoreCreationXstoreidProgressGet', 'xstoreid', xstoreid)
48866
+ const localVarPath = `/admin/v1/store-creation/{xstoreid}/progress`
48867
+ .replace(`{${"xstoreid"}}`, encodeURIComponent(String(xstoreid)));
48868
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
48869
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
48870
+ let baseOptions;
48871
+ if (configuration) {
48872
+ baseOptions = configuration.baseOptions;
48873
+ }
48874
+
48875
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
48876
+ const localVarHeaderParameter = {} as any;
48877
+ const localVarQueryParameter = {} as any;
48878
+
48879
+ // authentication BearerAuth required
48880
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
48881
+
48882
+
48883
+
48884
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
48885
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
48886
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
48887
+
48888
+ return {
48889
+ url: toPathString(localVarUrlObj),
48890
+ options: localVarRequestOptions,
48891
+ };
48892
+ },
48893
+ /**
48894
+ * Updates a specific step in the store creation flow for a specific store using XStoreID from path parameter
48895
+ * @summary Update store creation step by XStoreID
48896
+ * @param {string} xstoreid XStoreID for specific store creation flow
48897
+ * @param {DataTypesStoreCreationRequest} dataTypesStoreCreationRequest Store creation step data
48898
+ * @param {*} [options] Override http request option.
48899
+ * @throws {RequiredError}
48900
+ */
48901
+ adminV1StoreCreationXstoreidStepPost: async (xstoreid: string, dataTypesStoreCreationRequest: DataTypesStoreCreationRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
48902
+ // verify required parameter 'xstoreid' is not null or undefined
48903
+ assertParamExists('adminV1StoreCreationXstoreidStepPost', 'xstoreid', xstoreid)
48904
+ // verify required parameter 'dataTypesStoreCreationRequest' is not null or undefined
48905
+ assertParamExists('adminV1StoreCreationXstoreidStepPost', 'dataTypesStoreCreationRequest', dataTypesStoreCreationRequest)
48906
+ const localVarPath = `/admin/v1/store-creation/{xstoreid}/step`
48907
+ .replace(`{${"xstoreid"}}`, encodeURIComponent(String(xstoreid)));
48908
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
48909
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
48910
+ let baseOptions;
48911
+ if (configuration) {
48912
+ baseOptions = configuration.baseOptions;
48913
+ }
48914
+
48915
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
48916
+ const localVarHeaderParameter = {} as any;
48917
+ const localVarQueryParameter = {} as any;
48918
+
48919
+ // authentication BearerAuth required
48920
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
48921
+
48922
+
48923
+
47562
48924
  localVarHeaderParameter['Content-Type'] = 'application/json';
47563
48925
 
47564
48926
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -47574,18 +48936,18 @@ export const StoreCreationApiAxiosParamCreator = function (configuration?: Confi
47574
48936
  /**
47575
48937
  * Uploads a custom JSON or CSV file for store data import
47576
48938
  * @summary Upload custom data file for store
47577
- * @param {number} storeId Store ID
48939
+ * @param {string} xstoreid Store XStoreID
47578
48940
  * @param {File} file Data file (JSON or CSV)
47579
48941
  * @param {*} [options] Override http request option.
47580
48942
  * @throws {RequiredError}
47581
48943
  */
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)
48944
+ adminV1StoreCreationXstoreidUploadDataPost: async (xstoreid: string, file: File, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
48945
+ // verify required parameter 'xstoreid' is not null or undefined
48946
+ assertParamExists('adminV1StoreCreationXstoreidUploadDataPost', 'xstoreid', xstoreid)
47585
48947
  // 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)));
48948
+ assertParamExists('adminV1StoreCreationXstoreidUploadDataPost', 'file', file)
48949
+ const localVarPath = `/admin/v1/store-creation/{xstoreid}/upload-data`
48950
+ .replace(`{${"xstoreid"}}`, encodeURIComponent(String(xstoreid)));
47589
48951
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
47590
48952
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
47591
48953
  let baseOptions;
@@ -47642,7 +49004,7 @@ export const StoreCreationApiFp = function(configuration?: Configuration) {
47642
49004
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
47643
49005
  },
47644
49006
  /**
47645
- * Retrieves the current step and state of store creation for the user
49007
+ * 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
49008
  * @summary Get current store creation progress
47647
49009
  * @param {*} [options] Override http request option.
47648
49010
  * @throws {RequiredError}
@@ -47667,7 +49029,7 @@ export const StoreCreationApiFp = function(configuration?: Configuration) {
47667
49029
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
47668
49030
  },
47669
49031
  /**
47670
- * Updates a specific step in the store creation flow
49032
+ * 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
49033
  * @summary Update store creation step
47672
49034
  * @param {DataTypesStoreCreationRequest} dataTypesStoreCreationRequest Store creation step data
47673
49035
  * @param {*} [options] Override http request option.
@@ -47679,18 +49041,58 @@ export const StoreCreationApiFp = function(configuration?: Configuration) {
47679
49041
  const localVarOperationServerBasePath = operationServerMap['StoreCreationApi.adminV1StoreCreationStepPost']?.[localVarOperationServerIndex]?.url;
47680
49042
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
47681
49043
  },
49044
+ /**
49045
+ * Deletes (soft delete) the store creation progress for a specific store using XStoreID from path parameter
49046
+ * @summary Delete store creation progress by XStoreID
49047
+ * @param {string} xstoreid XStoreID for specific store creation flow
49048
+ * @param {*} [options] Override http request option.
49049
+ * @throws {RequiredError}
49050
+ */
49051
+ async adminV1StoreCreationXstoreidProgressDelete(xstoreid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
49052
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminV1StoreCreationXstoreidProgressDelete(xstoreid, options);
49053
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
49054
+ const localVarOperationServerBasePath = operationServerMap['StoreCreationApi.adminV1StoreCreationXstoreidProgressDelete']?.[localVarOperationServerIndex]?.url;
49055
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
49056
+ },
49057
+ /**
49058
+ * Retrieves the current step and state of store creation for a specific store using XStoreID from path parameter
49059
+ * @summary Get store creation progress by XStoreID
49060
+ * @param {string} xstoreid XStoreID for specific store creation flow
49061
+ * @param {*} [options] Override http request option.
49062
+ * @throws {RequiredError}
49063
+ */
49064
+ async adminV1StoreCreationXstoreidProgressGet(xstoreid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesStoreCreationResponseWrapper>> {
49065
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminV1StoreCreationXstoreidProgressGet(xstoreid, options);
49066
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
49067
+ const localVarOperationServerBasePath = operationServerMap['StoreCreationApi.adminV1StoreCreationXstoreidProgressGet']?.[localVarOperationServerIndex]?.url;
49068
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
49069
+ },
49070
+ /**
49071
+ * Updates a specific step in the store creation flow for a specific store using XStoreID from path parameter
49072
+ * @summary Update store creation step by XStoreID
49073
+ * @param {string} xstoreid XStoreID for specific store creation flow
49074
+ * @param {DataTypesStoreCreationRequest} dataTypesStoreCreationRequest Store creation step data
49075
+ * @param {*} [options] Override http request option.
49076
+ * @throws {RequiredError}
49077
+ */
49078
+ async adminV1StoreCreationXstoreidStepPost(xstoreid: string, dataTypesStoreCreationRequest: DataTypesStoreCreationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesStoreCreationResponseWrapper>> {
49079
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminV1StoreCreationXstoreidStepPost(xstoreid, dataTypesStoreCreationRequest, options);
49080
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
49081
+ const localVarOperationServerBasePath = operationServerMap['StoreCreationApi.adminV1StoreCreationXstoreidStepPost']?.[localVarOperationServerIndex]?.url;
49082
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
49083
+ },
47682
49084
  /**
47683
49085
  * Uploads a custom JSON or CSV file for store data import
47684
49086
  * @summary Upload custom data file for store
47685
- * @param {number} storeId Store ID
49087
+ * @param {string} xstoreid Store XStoreID
47686
49088
  * @param {File} file Data file (JSON or CSV)
47687
49089
  * @param {*} [options] Override http request option.
47688
49090
  * @throws {RequiredError}
47689
49091
  */
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);
49092
+ async adminV1StoreCreationXstoreidUploadDataPost(xstoreid: string, file: File, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
49093
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminV1StoreCreationXstoreidUploadDataPost(xstoreid, file, options);
47692
49094
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
47693
- const localVarOperationServerBasePath = operationServerMap['StoreCreationApi.adminV1StoreCreationStoreIdUploadDataPost']?.[localVarOperationServerIndex]?.url;
49095
+ const localVarOperationServerBasePath = operationServerMap['StoreCreationApi.adminV1StoreCreationXstoreidUploadDataPost']?.[localVarOperationServerIndex]?.url;
47694
49096
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
47695
49097
  },
47696
49098
  }
@@ -47713,7 +49115,7 @@ export const StoreCreationApiFactory = function (configuration?: Configuration,
47713
49115
  return localVarFp.adminV1StoreCreationProgressDelete(options).then((request) => request(axios, basePath));
47714
49116
  },
47715
49117
  /**
47716
- * Retrieves the current step and state of store creation for the user
49118
+ * 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
49119
  * @summary Get current store creation progress
47718
49120
  * @param {*} [options] Override http request option.
47719
49121
  * @throws {RequiredError}
@@ -47732,7 +49134,7 @@ export const StoreCreationApiFactory = function (configuration?: Configuration,
47732
49134
  return localVarFp.adminV1StoreCreationSchemaUploadPost(file, options).then((request) => request(axios, basePath));
47733
49135
  },
47734
49136
  /**
47735
- * Updates a specific step in the store creation flow
49137
+ * 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
49138
  * @summary Update store creation step
47737
49139
  * @param {DataTypesStoreCreationRequest} dataTypesStoreCreationRequest Store creation step data
47738
49140
  * @param {*} [options] Override http request option.
@@ -47741,16 +49143,47 @@ export const StoreCreationApiFactory = function (configuration?: Configuration,
47741
49143
  adminV1StoreCreationStepPost(dataTypesStoreCreationRequest: DataTypesStoreCreationRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesStoreCreationResponseWrapper> {
47742
49144
  return localVarFp.adminV1StoreCreationStepPost(dataTypesStoreCreationRequest, options).then((request) => request(axios, basePath));
47743
49145
  },
49146
+ /**
49147
+ * Deletes (soft delete) the store creation progress for a specific store using XStoreID from path parameter
49148
+ * @summary Delete store creation progress by XStoreID
49149
+ * @param {string} xstoreid XStoreID for specific store creation flow
49150
+ * @param {*} [options] Override http request option.
49151
+ * @throws {RequiredError}
49152
+ */
49153
+ adminV1StoreCreationXstoreidProgressDelete(xstoreid: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
49154
+ return localVarFp.adminV1StoreCreationXstoreidProgressDelete(xstoreid, options).then((request) => request(axios, basePath));
49155
+ },
49156
+ /**
49157
+ * Retrieves the current step and state of store creation for a specific store using XStoreID from path parameter
49158
+ * @summary Get store creation progress by XStoreID
49159
+ * @param {string} xstoreid XStoreID for specific store creation flow
49160
+ * @param {*} [options] Override http request option.
49161
+ * @throws {RequiredError}
49162
+ */
49163
+ adminV1StoreCreationXstoreidProgressGet(xstoreid: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesStoreCreationResponseWrapper> {
49164
+ return localVarFp.adminV1StoreCreationXstoreidProgressGet(xstoreid, options).then((request) => request(axios, basePath));
49165
+ },
49166
+ /**
49167
+ * Updates a specific step in the store creation flow for a specific store using XStoreID from path parameter
49168
+ * @summary Update store creation step by XStoreID
49169
+ * @param {string} xstoreid XStoreID for specific store creation flow
49170
+ * @param {DataTypesStoreCreationRequest} dataTypesStoreCreationRequest Store creation step data
49171
+ * @param {*} [options] Override http request option.
49172
+ * @throws {RequiredError}
49173
+ */
49174
+ adminV1StoreCreationXstoreidStepPost(xstoreid: string, dataTypesStoreCreationRequest: DataTypesStoreCreationRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesStoreCreationResponseWrapper> {
49175
+ return localVarFp.adminV1StoreCreationXstoreidStepPost(xstoreid, dataTypesStoreCreationRequest, options).then((request) => request(axios, basePath));
49176
+ },
47744
49177
  /**
47745
49178
  * Uploads a custom JSON or CSV file for store data import
47746
49179
  * @summary Upload custom data file for store
47747
- * @param {number} storeId Store ID
49180
+ * @param {string} xstoreid Store XStoreID
47748
49181
  * @param {File} file Data file (JSON or CSV)
47749
49182
  * @param {*} [options] Override http request option.
47750
49183
  * @throws {RequiredError}
47751
49184
  */
47752
- adminV1StoreCreationStoreIdUploadDataPost(storeId: number, file: File, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
47753
- return localVarFp.adminV1StoreCreationStoreIdUploadDataPost(storeId, file, options).then((request) => request(axios, basePath));
49185
+ adminV1StoreCreationXstoreidUploadDataPost(xstoreid: string, file: File, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
49186
+ return localVarFp.adminV1StoreCreationXstoreidUploadDataPost(xstoreid, file, options).then((request) => request(axios, basePath));
47754
49187
  },
47755
49188
  };
47756
49189
  };
@@ -47774,7 +49207,7 @@ export class StoreCreationApi extends BaseAPI {
47774
49207
  }
47775
49208
 
47776
49209
  /**
47777
- * Retrieves the current step and state of store creation for the user
49210
+ * 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
49211
  * @summary Get current store creation progress
47779
49212
  * @param {*} [options] Override http request option.
47780
49213
  * @throws {RequiredError}
@@ -47797,7 +49230,7 @@ export class StoreCreationApi extends BaseAPI {
47797
49230
  }
47798
49231
 
47799
49232
  /**
47800
- * Updates a specific step in the store creation flow
49233
+ * 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
49234
  * @summary Update store creation step
47802
49235
  * @param {DataTypesStoreCreationRequest} dataTypesStoreCreationRequest Store creation step data
47803
49236
  * @param {*} [options] Override http request option.
@@ -47808,17 +49241,54 @@ export class StoreCreationApi extends BaseAPI {
47808
49241
  return StoreCreationApiFp(this.configuration).adminV1StoreCreationStepPost(dataTypesStoreCreationRequest, options).then((request) => request(this.axios, this.basePath));
47809
49242
  }
47810
49243
 
49244
+ /**
49245
+ * Deletes (soft delete) the store creation progress for a specific store using XStoreID from path parameter
49246
+ * @summary Delete store creation progress by XStoreID
49247
+ * @param {string} xstoreid XStoreID for specific store creation flow
49248
+ * @param {*} [options] Override http request option.
49249
+ * @throws {RequiredError}
49250
+ * @memberof StoreCreationApi
49251
+ */
49252
+ public adminV1StoreCreationXstoreidProgressDelete(xstoreid: string, options?: RawAxiosRequestConfig) {
49253
+ return StoreCreationApiFp(this.configuration).adminV1StoreCreationXstoreidProgressDelete(xstoreid, options).then((request) => request(this.axios, this.basePath));
49254
+ }
49255
+
49256
+ /**
49257
+ * Retrieves the current step and state of store creation for a specific store using XStoreID from path parameter
49258
+ * @summary Get store creation progress by XStoreID
49259
+ * @param {string} xstoreid XStoreID for specific store creation flow
49260
+ * @param {*} [options] Override http request option.
49261
+ * @throws {RequiredError}
49262
+ * @memberof StoreCreationApi
49263
+ */
49264
+ public adminV1StoreCreationXstoreidProgressGet(xstoreid: string, options?: RawAxiosRequestConfig) {
49265
+ return StoreCreationApiFp(this.configuration).adminV1StoreCreationXstoreidProgressGet(xstoreid, options).then((request) => request(this.axios, this.basePath));
49266
+ }
49267
+
49268
+ /**
49269
+ * Updates a specific step in the store creation flow for a specific store using XStoreID from path parameter
49270
+ * @summary Update store creation step by XStoreID
49271
+ * @param {string} xstoreid XStoreID for specific store creation flow
49272
+ * @param {DataTypesStoreCreationRequest} dataTypesStoreCreationRequest Store creation step data
49273
+ * @param {*} [options] Override http request option.
49274
+ * @throws {RequiredError}
49275
+ * @memberof StoreCreationApi
49276
+ */
49277
+ public adminV1StoreCreationXstoreidStepPost(xstoreid: string, dataTypesStoreCreationRequest: DataTypesStoreCreationRequest, options?: RawAxiosRequestConfig) {
49278
+ return StoreCreationApiFp(this.configuration).adminV1StoreCreationXstoreidStepPost(xstoreid, dataTypesStoreCreationRequest, options).then((request) => request(this.axios, this.basePath));
49279
+ }
49280
+
47811
49281
  /**
47812
49282
  * Uploads a custom JSON or CSV file for store data import
47813
49283
  * @summary Upload custom data file for store
47814
- * @param {number} storeId Store ID
49284
+ * @param {string} xstoreid Store XStoreID
47815
49285
  * @param {File} file Data file (JSON or CSV)
47816
49286
  * @param {*} [options] Override http request option.
47817
49287
  * @throws {RequiredError}
47818
49288
  * @memberof StoreCreationApi
47819
49289
  */
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));
49290
+ public adminV1StoreCreationXstoreidUploadDataPost(xstoreid: string, file: File, options?: RawAxiosRequestConfig) {
49291
+ return StoreCreationApiFp(this.configuration).adminV1StoreCreationXstoreidUploadDataPost(xstoreid, file, options).then((request) => request(this.axios, this.basePath));
47822
49292
  }
47823
49293
  }
47824
49294