@seekora-ai/admin-api 1.0.98 → 1.0.100

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
@@ -1270,6 +1270,122 @@ export interface AdminV1QuerySuggestionsXStoreIDTypesenseGet200Response {
1270
1270
  */
1271
1271
  'total'?: number;
1272
1272
  }
1273
+ /**
1274
+ *
1275
+ * @export
1276
+ * @interface AnalyticsAPIUsageEvent
1277
+ */
1278
+ export interface AnalyticsAPIUsageEvent {
1279
+ /**
1280
+ *
1281
+ * @type {string}
1282
+ * @memberof AnalyticsAPIUsageEvent
1283
+ */
1284
+ 'event_id'?: string;
1285
+ /**
1286
+ *
1287
+ * @type {string}
1288
+ * @memberof AnalyticsAPIUsageEvent
1289
+ */
1290
+ 'ip'?: string;
1291
+ /**
1292
+ *
1293
+ * @type {string}
1294
+ * @memberof AnalyticsAPIUsageEvent
1295
+ */
1296
+ 'method'?: string;
1297
+ /**
1298
+ *
1299
+ * @type {number}
1300
+ * @memberof AnalyticsAPIUsageEvent
1301
+ */
1302
+ 'nb_operations'?: number;
1303
+ /**
1304
+ *
1305
+ * @type {string}
1306
+ * @memberof AnalyticsAPIUsageEvent
1307
+ */
1308
+ 'org_id'?: string;
1309
+ /**
1310
+ *
1311
+ * @type {number}
1312
+ * @memberof AnalyticsAPIUsageEvent
1313
+ */
1314
+ 'processing_time_ms'?: number;
1315
+ /**
1316
+ *
1317
+ * @type {string}
1318
+ * @memberof AnalyticsAPIUsageEvent
1319
+ */
1320
+ 'request_body'?: string;
1321
+ /**
1322
+ *
1323
+ * @type {string}
1324
+ * @memberof AnalyticsAPIUsageEvent
1325
+ */
1326
+ 'request_headers'?: string;
1327
+ /**
1328
+ *
1329
+ * @type {string}
1330
+ * @memberof AnalyticsAPIUsageEvent
1331
+ */
1332
+ 'response_body'?: string;
1333
+ /**
1334
+ *
1335
+ * @type {number}
1336
+ * @memberof AnalyticsAPIUsageEvent
1337
+ */
1338
+ 'response_code'?: number;
1339
+ /**
1340
+ *
1341
+ * @type {string}
1342
+ * @memberof AnalyticsAPIUsageEvent
1343
+ */
1344
+ 'store_id'?: string;
1345
+ /**
1346
+ *
1347
+ * @type {string}
1348
+ * @memberof AnalyticsAPIUsageEvent
1349
+ */
1350
+ 'time'?: string;
1351
+ /**
1352
+ *
1353
+ * @type {string}
1354
+ * @memberof AnalyticsAPIUsageEvent
1355
+ */
1356
+ 'url'?: string;
1357
+ }
1358
+ /**
1359
+ *
1360
+ * @export
1361
+ * @interface AnalyticsAPIUsageResponse
1362
+ */
1363
+ export interface AnalyticsAPIUsageResponse {
1364
+ /**
1365
+ *
1366
+ * @type {Array<AnalyticsAPIUsageEvent>}
1367
+ * @memberof AnalyticsAPIUsageResponse
1368
+ */
1369
+ 'data'?: Array<AnalyticsAPIUsageEvent>;
1370
+ /**
1371
+ *
1372
+ * @type {string}
1373
+ * @memberof AnalyticsAPIUsageResponse
1374
+ */
1375
+ 'message'?: string;
1376
+ /**
1377
+ *
1378
+ * @type {SeekoraGoSrcRoutesAnalyticsPaginationMeta}
1379
+ * @memberof AnalyticsAPIUsageResponse
1380
+ */
1381
+ 'meta'?: SeekoraGoSrcRoutesAnalyticsPaginationMeta;
1382
+ /**
1383
+ *
1384
+ * @type {number}
1385
+ * @memberof AnalyticsAPIUsageResponse
1386
+ */
1387
+ 'status'?: number;
1388
+ }
1273
1389
  /**
1274
1390
  *
1275
1391
  * @export
@@ -3061,10 +3177,10 @@ export interface AnalyticsGeoPopularFiltersSection {
3061
3177
  'items'?: Array<AnalyticsGeoPopularFilter>;
3062
3178
  /**
3063
3179
  *
3064
- * @type {AnalyticsPaginationMeta}
3180
+ * @type {SeekoraGoSrcAnalyticsPaginationMeta}
3065
3181
  * @memberof AnalyticsGeoPopularFiltersSection
3066
3182
  */
3067
- 'meta'?: AnalyticsPaginationMeta;
3183
+ 'meta'?: SeekoraGoSrcAnalyticsPaginationMeta;
3068
3184
  }
3069
3185
  /**
3070
3186
  *
@@ -3080,10 +3196,10 @@ export interface AnalyticsGeoPopularQueriesSection {
3080
3196
  'items'?: Array<AnalyticsGeoPopularQuery>;
3081
3197
  /**
3082
3198
  *
3083
- * @type {AnalyticsPaginationMeta}
3199
+ * @type {SeekoraGoSrcAnalyticsPaginationMeta}
3084
3200
  * @memberof AnalyticsGeoPopularQueriesSection
3085
3201
  */
3086
- 'meta'?: AnalyticsPaginationMeta;
3202
+ 'meta'?: SeekoraGoSrcAnalyticsPaginationMeta;
3087
3203
  }
3088
3204
  /**
3089
3205
  *
@@ -3324,10 +3440,10 @@ export interface AnalyticsGeoTopResultsSection {
3324
3440
  'items'?: Array<AnalyticsGeoTopResult>;
3325
3441
  /**
3326
3442
  *
3327
- * @type {AnalyticsPaginationMeta}
3443
+ * @type {SeekoraGoSrcAnalyticsPaginationMeta}
3328
3444
  * @memberof AnalyticsGeoTopResultsSection
3329
3445
  */
3330
- 'meta'?: AnalyticsPaginationMeta;
3446
+ 'meta'?: SeekoraGoSrcAnalyticsPaginationMeta;
3331
3447
  }
3332
3448
  /**
3333
3449
  *
@@ -3760,10 +3876,10 @@ export interface AnalyticsItemGeoAnalyticsSection {
3760
3876
  'items'?: Array<AnalyticsItemGeoAnalytic>;
3761
3877
  /**
3762
3878
  *
3763
- * @type {AnalyticsPaginationMeta}
3879
+ * @type {SeekoraGoSrcAnalyticsPaginationMeta}
3764
3880
  * @memberof AnalyticsItemGeoAnalyticsSection
3765
3881
  */
3766
- 'meta'?: AnalyticsPaginationMeta;
3882
+ 'meta'?: SeekoraGoSrcAnalyticsPaginationMeta;
3767
3883
  }
3768
3884
  /**
3769
3885
  *
@@ -4324,10 +4440,10 @@ export interface AnalyticsItemPopularFiltersSection {
4324
4440
  'items'?: Array<AnalyticsItemPopularFilter>;
4325
4441
  /**
4326
4442
  *
4327
- * @type {AnalyticsPaginationMeta}
4443
+ * @type {SeekoraGoSrcAnalyticsPaginationMeta}
4328
4444
  * @memberof AnalyticsItemPopularFiltersSection
4329
4445
  */
4330
- 'meta'?: AnalyticsPaginationMeta;
4446
+ 'meta'?: SeekoraGoSrcAnalyticsPaginationMeta;
4331
4447
  }
4332
4448
  /**
4333
4449
  *
@@ -4343,10 +4459,10 @@ export interface AnalyticsItemPopularQueriesSection {
4343
4459
  'items'?: Array<AnalyticsItemPopularQuery>;
4344
4460
  /**
4345
4461
  *
4346
- * @type {AnalyticsPaginationMeta}
4462
+ * @type {SeekoraGoSrcAnalyticsPaginationMeta}
4347
4463
  * @memberof AnalyticsItemPopularQueriesSection
4348
4464
  */
4349
- 'meta'?: AnalyticsPaginationMeta;
4465
+ 'meta'?: SeekoraGoSrcAnalyticsPaginationMeta;
4350
4466
  }
4351
4467
  /**
4352
4468
  *
@@ -4848,49 +4964,6 @@ export interface AnalyticsManualQuerySuggestionRequest {
4848
4964
  */
4849
4965
  'tags'?: Array<string>;
4850
4966
  }
4851
- /**
4852
- *
4853
- * @export
4854
- * @interface AnalyticsPaginationMeta
4855
- */
4856
- export interface AnalyticsPaginationMeta {
4857
- /**
4858
- *
4859
- * @type {boolean}
4860
- * @memberof AnalyticsPaginationMeta
4861
- */
4862
- 'has_next'?: boolean;
4863
- /**
4864
- *
4865
- * @type {boolean}
4866
- * @memberof AnalyticsPaginationMeta
4867
- */
4868
- 'has_previous'?: boolean;
4869
- /**
4870
- *
4871
- * @type {number}
4872
- * @memberof AnalyticsPaginationMeta
4873
- */
4874
- 'page'?: number;
4875
- /**
4876
- *
4877
- * @type {number}
4878
- * @memberof AnalyticsPaginationMeta
4879
- */
4880
- 'page_size'?: number;
4881
- /**
4882
- *
4883
- * @type {number}
4884
- * @memberof AnalyticsPaginationMeta
4885
- */
4886
- 'total_items'?: number;
4887
- /**
4888
- *
4889
- * @type {number}
4890
- * @memberof AnalyticsPaginationMeta
4891
- */
4892
- 'total_pages'?: number;
4893
- }
4894
4967
  /**
4895
4968
  *
4896
4969
  * @export
@@ -5303,10 +5376,10 @@ export interface AnalyticsQueryGeoAnalyticsSection {
5303
5376
  'items'?: Array<AnalyticsQueryGeoAnalytic>;
5304
5377
  /**
5305
5378
  *
5306
- * @type {AnalyticsPaginationMeta}
5379
+ * @type {SeekoraGoSrcAnalyticsPaginationMeta}
5307
5380
  * @memberof AnalyticsQueryGeoAnalyticsSection
5308
5381
  */
5309
- 'meta'?: AnalyticsPaginationMeta;
5382
+ 'meta'?: SeekoraGoSrcAnalyticsPaginationMeta;
5310
5383
  }
5311
5384
  /**
5312
5385
  *
@@ -5637,10 +5710,10 @@ export interface AnalyticsQueryPopularFiltersSection {
5637
5710
  'items'?: Array<AnalyticsQueryPopularFilter>;
5638
5711
  /**
5639
5712
  *
5640
- * @type {AnalyticsPaginationMeta}
5713
+ * @type {SeekoraGoSrcAnalyticsPaginationMeta}
5641
5714
  * @memberof AnalyticsQueryPopularFiltersSection
5642
5715
  */
5643
- 'meta'?: AnalyticsPaginationMeta;
5716
+ 'meta'?: SeekoraGoSrcAnalyticsPaginationMeta;
5644
5717
  }
5645
5718
  /**
5646
5719
  *
@@ -5771,10 +5844,10 @@ export interface AnalyticsQueryPopularResultsSection {
5771
5844
  'items'?: Array<AnalyticsQueryPopularResultWithWidget>;
5772
5845
  /**
5773
5846
  *
5774
- * @type {AnalyticsPaginationMeta}
5847
+ * @type {SeekoraGoSrcAnalyticsPaginationMeta}
5775
5848
  * @memberof AnalyticsQueryPopularResultsSection
5776
5849
  */
5777
- 'meta'?: AnalyticsPaginationMeta;
5850
+ 'meta'?: SeekoraGoSrcAnalyticsPaginationMeta;
5778
5851
  }
5779
5852
  /**
5780
5853
  *
@@ -7771,6 +7844,49 @@ export const DataTypesBillingAlertRequestAlertTypeEnum = {
7771
7844
 
7772
7845
  export type DataTypesBillingAlertRequestAlertTypeEnum = typeof DataTypesBillingAlertRequestAlertTypeEnum[keyof typeof DataTypesBillingAlertRequestAlertTypeEnum];
7773
7846
 
7847
+ /**
7848
+ *
7849
+ * @export
7850
+ * @interface DataTypesBillingOrderDetailsResponse
7851
+ */
7852
+ export interface DataTypesBillingOrderDetailsResponse {
7853
+ /**
7854
+ * Whether user can pay pending invoices
7855
+ * @type {boolean}
7856
+ * @memberof DataTypesBillingOrderDetailsResponse
7857
+ */
7858
+ 'can_pay'?: boolean;
7859
+ /**
7860
+ * Array of invoices for subscriptions
7861
+ * @type {Array<DataTypesInvoice>}
7862
+ * @memberof DataTypesBillingOrderDetailsResponse
7863
+ */
7864
+ 'invoices'?: Array<DataTypesInvoice>;
7865
+ /**
7866
+ *
7867
+ * @type {DataTypesOrder}
7868
+ * @memberof DataTypesBillingOrderDetailsResponse
7869
+ */
7870
+ 'order'?: DataTypesOrder;
7871
+ /**
7872
+ * Total pending invoice amount
7873
+ * @type {number}
7874
+ * @memberof DataTypesBillingOrderDetailsResponse
7875
+ */
7876
+ 'pending_amount'?: number;
7877
+ /**
7878
+ * Plan info for subscription orders
7879
+ * @type {DataTypesCreditPlanDetails}
7880
+ * @memberof DataTypesBillingOrderDetailsResponse
7881
+ */
7882
+ 'plan_details'?: DataTypesCreditPlanDetails;
7883
+ /**
7884
+ *
7885
+ * @type {Array<DataTypesOrderTransactionDisplay>}
7886
+ * @memberof DataTypesBillingOrderDetailsResponse
7887
+ */
7888
+ 'transactions'?: Array<DataTypesOrderTransactionDisplay>;
7889
+ }
7774
7890
  /**
7775
7891
  *
7776
7892
  * @export
@@ -9310,6 +9426,67 @@ export interface DataTypesCreditPlan {
9310
9426
  */
9311
9427
  'validity_days'?: number;
9312
9428
  }
9429
+ /**
9430
+ *
9431
+ * @export
9432
+ * @interface DataTypesCreditPlanDetails
9433
+ */
9434
+ export interface DataTypesCreditPlanDetails {
9435
+ /**
9436
+ *
9437
+ * @type {string}
9438
+ * @memberof DataTypesCreditPlanDetails
9439
+ */
9440
+ 'billing_cycle'?: string;
9441
+ /**
9442
+ *
9443
+ * @type {number}
9444
+ * @memberof DataTypesCreditPlanDetails
9445
+ */
9446
+ 'credit_amount'?: number;
9447
+ /**
9448
+ *
9449
+ * @type {string}
9450
+ * @memberof DataTypesCreditPlanDetails
9451
+ */
9452
+ 'currency'?: string;
9453
+ /**
9454
+ *
9455
+ * @type {string}
9456
+ * @memberof DataTypesCreditPlanDetails
9457
+ */
9458
+ 'description'?: string;
9459
+ /**
9460
+ *
9461
+ * @type {boolean}
9462
+ * @memberof DataTypesCreditPlanDetails
9463
+ */
9464
+ 'is_active'?: boolean;
9465
+ /**
9466
+ *
9467
+ * @type {number}
9468
+ * @memberof DataTypesCreditPlanDetails
9469
+ */
9470
+ 'plan_id'?: number;
9471
+ /**
9472
+ *
9473
+ * @type {string}
9474
+ * @memberof DataTypesCreditPlanDetails
9475
+ */
9476
+ 'plan_name'?: string;
9477
+ /**
9478
+ *
9479
+ * @type {number}
9480
+ * @memberof DataTypesCreditPlanDetails
9481
+ */
9482
+ 'price'?: number;
9483
+ /**
9484
+ *
9485
+ * @type {number}
9486
+ * @memberof DataTypesCreditPlanDetails
9487
+ */
9488
+ 'validity_days'?: number;
9489
+ }
9313
9490
  /**
9314
9491
  *
9315
9492
  * @export
@@ -9489,6 +9666,37 @@ export interface DataTypesCustomWordWithStatus {
9489
9666
  */
9490
9667
  'word'?: string;
9491
9668
  }
9669
+ /**
9670
+ *
9671
+ * @export
9672
+ * @interface DataTypesCustomerInfo
9673
+ */
9674
+ export interface DataTypesCustomerInfo {
9675
+ /**
9676
+ *
9677
+ * @type {string}
9678
+ * @memberof DataTypesCustomerInfo
9679
+ */
9680
+ 'address'?: string;
9681
+ /**
9682
+ *
9683
+ * @type {string}
9684
+ * @memberof DataTypesCustomerInfo
9685
+ */
9686
+ 'email'?: string;
9687
+ /**
9688
+ *
9689
+ * @type {string}
9690
+ * @memberof DataTypesCustomerInfo
9691
+ */
9692
+ 'name'?: string;
9693
+ /**
9694
+ *
9695
+ * @type {string}
9696
+ * @memberof DataTypesCustomerInfo
9697
+ */
9698
+ 'phone'?: string;
9699
+ }
9492
9700
  /**
9493
9701
  *
9494
9702
  * @export
@@ -10583,6 +10791,81 @@ export interface DataTypesGatewayListResponse {
10583
10791
  */
10584
10792
  'gateways'?: Array<DataTypesGatewayInfo>;
10585
10793
  }
10794
+ /**
10795
+ *
10796
+ * @export
10797
+ * @interface DataTypesGenericResponseArrayDataTypesInvoice
10798
+ */
10799
+ export interface DataTypesGenericResponseArrayDataTypesInvoice {
10800
+ /**
10801
+ *
10802
+ * @type {Array<DataTypesInvoice>}
10803
+ * @memberof DataTypesGenericResponseArrayDataTypesInvoice
10804
+ */
10805
+ 'data'?: Array<DataTypesInvoice>;
10806
+ /**
10807
+ *
10808
+ * @type {string}
10809
+ * @memberof DataTypesGenericResponseArrayDataTypesInvoice
10810
+ */
10811
+ 'message'?: string;
10812
+ /**
10813
+ *
10814
+ * @type {number}
10815
+ * @memberof DataTypesGenericResponseArrayDataTypesInvoice
10816
+ */
10817
+ 'status'?: number;
10818
+ }
10819
+ /**
10820
+ *
10821
+ * @export
10822
+ * @interface DataTypesGenericResponseDataTypesBillingOrderDetailsResponse
10823
+ */
10824
+ export interface DataTypesGenericResponseDataTypesBillingOrderDetailsResponse {
10825
+ /**
10826
+ *
10827
+ * @type {DataTypesBillingOrderDetailsResponse}
10828
+ * @memberof DataTypesGenericResponseDataTypesBillingOrderDetailsResponse
10829
+ */
10830
+ 'data'?: DataTypesBillingOrderDetailsResponse;
10831
+ /**
10832
+ *
10833
+ * @type {string}
10834
+ * @memberof DataTypesGenericResponseDataTypesBillingOrderDetailsResponse
10835
+ */
10836
+ 'message'?: string;
10837
+ /**
10838
+ *
10839
+ * @type {number}
10840
+ * @memberof DataTypesGenericResponseDataTypesBillingOrderDetailsResponse
10841
+ */
10842
+ 'status'?: number;
10843
+ }
10844
+ /**
10845
+ *
10846
+ * @export
10847
+ * @interface DataTypesGenericResponseDataTypesPayInvoiceResponse
10848
+ */
10849
+ export interface DataTypesGenericResponseDataTypesPayInvoiceResponse {
10850
+ /**
10851
+ *
10852
+ * @type {DataTypesPayInvoiceResponse}
10853
+ * @memberof DataTypesGenericResponseDataTypesPayInvoiceResponse
10854
+ */
10855
+ 'data'?: DataTypesPayInvoiceResponse;
10856
+ /**
10857
+ *
10858
+ * @type {string}
10859
+ * @memberof DataTypesGenericResponseDataTypesPayInvoiceResponse
10860
+ */
10861
+ 'message'?: string;
10862
+ /**
10863
+ *
10864
+ * @type {number}
10865
+ * @memberof DataTypesGenericResponseDataTypesPayInvoiceResponse
10866
+ */
10867
+ 'status'?: number;
10868
+ }
10586
10869
  /**
10587
10870
  *
10588
10871
  * @export
@@ -11212,6 +11495,12 @@ export interface DataTypesInvoice {
11212
11495
  * @memberof DataTypesInvoice
11213
11496
  */
11214
11497
  'notes'?: string;
11498
+ /**
11499
+ * Direct FK to orders table (added in migration 20251031)
11500
+ * @type {number}
11501
+ * @memberof DataTypesInvoice
11502
+ */
11503
+ 'order_id'?: number;
11215
11504
  /**
11216
11505
  *
11217
11506
  * @type {number}
@@ -13286,6 +13575,104 @@ export interface DataTypesParentMenusListResponse {
13286
13575
  */
13287
13576
  'status'?: number;
13288
13577
  }
13578
+ /**
13579
+ *
13580
+ * @export
13581
+ * @interface DataTypesPayInvoiceRequest
13582
+ */
13583
+ export interface DataTypesPayInvoiceRequest {
13584
+ /**
13585
+ *
13586
+ * @type {DataTypesCustomerInfo}
13587
+ * @memberof DataTypesPayInvoiceRequest
13588
+ */
13589
+ 'customer_info'?: DataTypesCustomerInfo;
13590
+ /**
13591
+ *
13592
+ * @type {string}
13593
+ * @memberof DataTypesPayInvoiceRequest
13594
+ */
13595
+ 'invoice_id'?: string;
13596
+ /**
13597
+ *
13598
+ * @type {{ [key: string]: any; }}
13599
+ * @memberof DataTypesPayInvoiceRequest
13600
+ */
13601
+ 'metadata'?: { [key: string]: any; };
13602
+ /**
13603
+ * card, upi, wallet, netbanking
13604
+ * @type {string}
13605
+ * @memberof DataTypesPayInvoiceRequest
13606
+ */
13607
+ 'payment_method'?: string;
13608
+ }
13609
+ /**
13610
+ *
13611
+ * @export
13612
+ * @interface DataTypesPayInvoiceResponse
13613
+ */
13614
+ export interface DataTypesPayInvoiceResponse {
13615
+ /**
13616
+ *
13617
+ * @type {number}
13618
+ * @memberof DataTypesPayInvoiceResponse
13619
+ */
13620
+ 'amount'?: number;
13621
+ /**
13622
+ *
13623
+ * @type {string}
13624
+ * @memberof DataTypesPayInvoiceResponse
13625
+ */
13626
+ 'currency'?: string;
13627
+ /**
13628
+ * Customer details for prefill
13629
+ * @type {{ [key: string]: any; }}
13630
+ * @memberof DataTypesPayInvoiceResponse
13631
+ */
13632
+ 'customer_prefill'?: { [key: string]: any; };
13633
+ /**
13634
+ *
13635
+ * @type {string}
13636
+ * @memberof DataTypesPayInvoiceResponse
13637
+ */
13638
+ 'gateway'?: string;
13639
+ /**
13640
+ *
13641
+ * @type {string}
13642
+ * @memberof DataTypesPayInvoiceResponse
13643
+ */
13644
+ 'gateway_order_id'?: string;
13645
+ /**
13646
+ *
13647
+ * @type {{ [key: string]: any; }}
13648
+ * @memberof DataTypesPayInvoiceResponse
13649
+ */
13650
+ 'gateway_response'?: { [key: string]: any; };
13651
+ /**
13652
+ *
13653
+ * @type {string}
13654
+ * @memberof DataTypesPayInvoiceResponse
13655
+ */
13656
+ 'payment_order_id'?: string;
13657
+ /**
13658
+ *
13659
+ * @type {string}
13660
+ * @memberof DataTypesPayInvoiceResponse
13661
+ */
13662
+ 'payment_url'?: string;
13663
+ /**
13664
+ * Razorpay public key for frontend
13665
+ * @type {string}
13666
+ * @memberof DataTypesPayInvoiceResponse
13667
+ */
13668
+ 'razorpay_key'?: string;
13669
+ /**
13670
+ *
13671
+ * @type {string}
13672
+ * @memberof DataTypesPayInvoiceResponse
13673
+ */
13674
+ 'status'?: string;
13675
+ }
13289
13676
  /**
13290
13677
  *
13291
13678
  * @export
@@ -13933,6 +14320,12 @@ export interface DataTypesProfileResponse {
13933
14320
  * @memberof DataTypesProfileResponse
13934
14321
  */
13935
14322
  'firstname'?: string;
14323
+ /**
14324
+ *
14325
+ * @type {boolean}
14326
+ * @memberof DataTypesProfileResponse
14327
+ */
14328
+ 'has_password'?: boolean;
13936
14329
  /**
13937
14330
  *
13938
14331
  * @type {string}
@@ -15554,6 +15947,19 @@ export interface DataTypesServiceRequestsListResponse {
15554
15947
  */
15555
15948
  'status'?: number;
15556
15949
  }
15950
+ /**
15951
+ *
15952
+ * @export
15953
+ * @interface DataTypesSetPasswordRequest
15954
+ */
15955
+ export interface DataTypesSetPasswordRequest {
15956
+ /**
15957
+ *
15958
+ * @type {string}
15959
+ * @memberof DataTypesSetPasswordRequest
15960
+ */
15961
+ 'password': string;
15962
+ }
15557
15963
  /**
15558
15964
  *
15559
15965
  * @export
@@ -17043,6 +17449,12 @@ export interface DataTypesUser {
17043
17449
  * @memberof DataTypesUser
17044
17450
  */
17045
17451
  'firstName'?: string;
17452
+ /**
17453
+ * ✅ ADD THIS
17454
+ * @type {boolean}
17455
+ * @memberof DataTypesUser
17456
+ */
17457
+ 'has_password'?: boolean;
17046
17458
  /**
17047
17459
  *
17048
17460
  * @type {boolean}
@@ -17900,6 +18312,252 @@ export const RefundRefundPreviewRequestDtoRefundTypeEnum = {
17900
18312
 
17901
18313
  export type RefundRefundPreviewRequestDtoRefundTypeEnum = typeof RefundRefundPreviewRequestDtoRefundTypeEnum[keyof typeof RefundRefundPreviewRequestDtoRefundTypeEnum];
17902
18314
 
18315
+ /**
18316
+ *
18317
+ * @export
18318
+ * @interface SeekoraGoSrcAnalyticsPaginationMeta
18319
+ */
18320
+ export interface SeekoraGoSrcAnalyticsPaginationMeta {
18321
+ /**
18322
+ *
18323
+ * @type {boolean}
18324
+ * @memberof SeekoraGoSrcAnalyticsPaginationMeta
18325
+ */
18326
+ 'has_next'?: boolean;
18327
+ /**
18328
+ *
18329
+ * @type {boolean}
18330
+ * @memberof SeekoraGoSrcAnalyticsPaginationMeta
18331
+ */
18332
+ 'has_previous'?: boolean;
18333
+ /**
18334
+ *
18335
+ * @type {number}
18336
+ * @memberof SeekoraGoSrcAnalyticsPaginationMeta
18337
+ */
18338
+ 'page'?: number;
18339
+ /**
18340
+ *
18341
+ * @type {number}
18342
+ * @memberof SeekoraGoSrcAnalyticsPaginationMeta
18343
+ */
18344
+ 'page_size'?: number;
18345
+ /**
18346
+ *
18347
+ * @type {number}
18348
+ * @memberof SeekoraGoSrcAnalyticsPaginationMeta
18349
+ */
18350
+ 'total_items'?: number;
18351
+ /**
18352
+ *
18353
+ * @type {number}
18354
+ * @memberof SeekoraGoSrcAnalyticsPaginationMeta
18355
+ */
18356
+ 'total_pages'?: number;
18357
+ }
18358
+ /**
18359
+ *
18360
+ * @export
18361
+ * @interface SeekoraGoSrcRoutesAnalyticsPaginationMeta
18362
+ */
18363
+ export interface SeekoraGoSrcRoutesAnalyticsPaginationMeta {
18364
+ /**
18365
+ *
18366
+ * @type {number}
18367
+ * @memberof SeekoraGoSrcRoutesAnalyticsPaginationMeta
18368
+ */
18369
+ 'page'?: number;
18370
+ /**
18371
+ *
18372
+ * @type {number}
18373
+ * @memberof SeekoraGoSrcRoutesAnalyticsPaginationMeta
18374
+ */
18375
+ 'per_page'?: number;
18376
+ /**
18377
+ *
18378
+ * @type {number}
18379
+ * @memberof SeekoraGoSrcRoutesAnalyticsPaginationMeta
18380
+ */
18381
+ 'total_count'?: number;
18382
+ /**
18383
+ *
18384
+ * @type {number}
18385
+ * @memberof SeekoraGoSrcRoutesAnalyticsPaginationMeta
18386
+ */
18387
+ 'total_pages'?: number;
18388
+ }
18389
+ /**
18390
+ *
18391
+ * @export
18392
+ * @interface StoreRouteAPIUsageDetailResponse
18393
+ */
18394
+ export interface StoreRouteAPIUsageDetailResponse {
18395
+ /**
18396
+ *
18397
+ * @type {StoreRouteAPIUsageLogEntry}
18398
+ * @memberof StoreRouteAPIUsageDetailResponse
18399
+ */
18400
+ 'data'?: StoreRouteAPIUsageLogEntry;
18401
+ /**
18402
+ *
18403
+ * @type {string}
18404
+ * @memberof StoreRouteAPIUsageDetailResponse
18405
+ */
18406
+ 'message'?: string;
18407
+ /**
18408
+ *
18409
+ * @type {number}
18410
+ * @memberof StoreRouteAPIUsageDetailResponse
18411
+ */
18412
+ 'status'?: number;
18413
+ }
18414
+ /**
18415
+ *
18416
+ * @export
18417
+ * @interface StoreRouteAPIUsageListResponse
18418
+ */
18419
+ export interface StoreRouteAPIUsageListResponse {
18420
+ /**
18421
+ *
18422
+ * @type {Array<StoreRouteAPIUsageLogEntry>}
18423
+ * @memberof StoreRouteAPIUsageListResponse
18424
+ */
18425
+ 'data'?: Array<StoreRouteAPIUsageLogEntry>;
18426
+ /**
18427
+ *
18428
+ * @type {string}
18429
+ * @memberof StoreRouteAPIUsageListResponse
18430
+ */
18431
+ 'message'?: string;
18432
+ /**
18433
+ *
18434
+ * @type {StoreRoutePaginationMeta}
18435
+ * @memberof StoreRouteAPIUsageListResponse
18436
+ */
18437
+ 'meta'?: StoreRoutePaginationMeta;
18438
+ /**
18439
+ *
18440
+ * @type {number}
18441
+ * @memberof StoreRouteAPIUsageListResponse
18442
+ */
18443
+ 'status'?: number;
18444
+ }
18445
+ /**
18446
+ *
18447
+ * @export
18448
+ * @interface StoreRouteAPIUsageLogEntry
18449
+ */
18450
+ export interface StoreRouteAPIUsageLogEntry {
18451
+ /**
18452
+ *
18453
+ * @type {string}
18454
+ * @memberof StoreRouteAPIUsageLogEntry
18455
+ */
18456
+ 'event_id'?: string;
18457
+ /**
18458
+ *
18459
+ * @type {string}
18460
+ * @memberof StoreRouteAPIUsageLogEntry
18461
+ */
18462
+ 'ip'?: string;
18463
+ /**
18464
+ *
18465
+ * @type {string}
18466
+ * @memberof StoreRouteAPIUsageLogEntry
18467
+ */
18468
+ 'method'?: string;
18469
+ /**
18470
+ *
18471
+ * @type {number}
18472
+ * @memberof StoreRouteAPIUsageLogEntry
18473
+ */
18474
+ 'nb_operations'?: number;
18475
+ /**
18476
+ *
18477
+ * @type {string}
18478
+ * @memberof StoreRouteAPIUsageLogEntry
18479
+ */
18480
+ 'org_code'?: string;
18481
+ /**
18482
+ *
18483
+ * @type {number}
18484
+ * @memberof StoreRouteAPIUsageLogEntry
18485
+ */
18486
+ 'processing_time_ms'?: number;
18487
+ /**
18488
+ *
18489
+ * @type {{ [key: string]: any; }}
18490
+ * @memberof StoreRouteAPIUsageLogEntry
18491
+ */
18492
+ 'request_body'?: { [key: string]: any; };
18493
+ /**
18494
+ *
18495
+ * @type {{ [key: string]: any; }}
18496
+ * @memberof StoreRouteAPIUsageLogEntry
18497
+ */
18498
+ 'request_headers'?: { [key: string]: any; };
18499
+ /**
18500
+ *
18501
+ * @type {any}
18502
+ * @memberof StoreRouteAPIUsageLogEntry
18503
+ */
18504
+ 'response_body'?: any;
18505
+ /**
18506
+ *
18507
+ * @type {number}
18508
+ * @memberof StoreRouteAPIUsageLogEntry
18509
+ */
18510
+ 'response_code'?: number;
18511
+ /**
18512
+ *
18513
+ * @type {string}
18514
+ * @memberof StoreRouteAPIUsageLogEntry
18515
+ */
18516
+ 'store_id'?: string;
18517
+ /**
18518
+ *
18519
+ * @type {string}
18520
+ * @memberof StoreRouteAPIUsageLogEntry
18521
+ */
18522
+ 'time'?: string;
18523
+ /**
18524
+ *
18525
+ * @type {string}
18526
+ * @memberof StoreRouteAPIUsageLogEntry
18527
+ */
18528
+ 'url'?: string;
18529
+ }
18530
+ /**
18531
+ *
18532
+ * @export
18533
+ * @interface StoreRoutePaginationMeta
18534
+ */
18535
+ export interface StoreRoutePaginationMeta {
18536
+ /**
18537
+ *
18538
+ * @type {number}
18539
+ * @memberof StoreRoutePaginationMeta
18540
+ */
18541
+ 'page'?: number;
18542
+ /**
18543
+ *
18544
+ * @type {number}
18545
+ * @memberof StoreRoutePaginationMeta
18546
+ */
18547
+ 'per_page'?: number;
18548
+ /**
18549
+ *
18550
+ * @type {number}
18551
+ * @memberof StoreRoutePaginationMeta
18552
+ */
18553
+ 'total_count'?: number;
18554
+ /**
18555
+ *
18556
+ * @type {number}
18557
+ * @memberof StoreRoutePaginationMeta
18558
+ */
18559
+ 'total_pages'?: number;
18560
+ }
17903
18561
  /**
17904
18562
  *
17905
18563
  * @export
@@ -18695,6 +19353,45 @@ export const AccountSettingsApiAxiosParamCreator = function (configuration?: Con
18695
19353
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18696
19354
  localVarRequestOptions.data = serializeDataIfNeeded(dataTypesUpdateProfileRequest, localVarRequestOptions, configuration)
18697
19355
 
19356
+ return {
19357
+ url: toPathString(localVarUrlObj),
19358
+ options: localVarRequestOptions,
19359
+ };
19360
+ },
19361
+ /**
19362
+ * Allows user to set password only if not already set (Google/GitHub signup)
19363
+ * @summary Set password for OAuth/new user
19364
+ * @param {DataTypesSetPasswordRequest} dataTypesSetPasswordRequest Set password request
19365
+ * @param {*} [options] Override http request option.
19366
+ * @throws {RequiredError}
19367
+ */
19368
+ accountSettingsSetPasswordPut: async (dataTypesSetPasswordRequest: DataTypesSetPasswordRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
19369
+ // verify required parameter 'dataTypesSetPasswordRequest' is not null or undefined
19370
+ assertParamExists('accountSettingsSetPasswordPut', 'dataTypesSetPasswordRequest', dataTypesSetPasswordRequest)
19371
+ const localVarPath = `/account-settings/set-password`;
19372
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
19373
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
19374
+ let baseOptions;
19375
+ if (configuration) {
19376
+ baseOptions = configuration.baseOptions;
19377
+ }
19378
+
19379
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
19380
+ const localVarHeaderParameter = {} as any;
19381
+ const localVarQueryParameter = {} as any;
19382
+
19383
+ // authentication BearerAuth required
19384
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
19385
+
19386
+
19387
+
19388
+ localVarHeaderParameter['Content-Type'] = 'application/json';
19389
+
19390
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
19391
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19392
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
19393
+ localVarRequestOptions.data = serializeDataIfNeeded(dataTypesSetPasswordRequest, localVarRequestOptions, configuration)
19394
+
18698
19395
  return {
18699
19396
  url: toPathString(localVarUrlObj),
18700
19397
  options: localVarRequestOptions,
@@ -18798,6 +19495,19 @@ export const AccountSettingsApiFp = function(configuration?: Configuration) {
18798
19495
  const localVarOperationServerBasePath = operationServerMap['AccountSettingsApi.accountSettingsProfilePut']?.[localVarOperationServerIndex]?.url;
18799
19496
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18800
19497
  },
19498
+ /**
19499
+ * Allows user to set password only if not already set (Google/GitHub signup)
19500
+ * @summary Set password for OAuth/new user
19501
+ * @param {DataTypesSetPasswordRequest} dataTypesSetPasswordRequest Set password request
19502
+ * @param {*} [options] Override http request option.
19503
+ * @throws {RequiredError}
19504
+ */
19505
+ async accountSettingsSetPasswordPut(dataTypesSetPasswordRequest: DataTypesSetPasswordRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
19506
+ const localVarAxiosArgs = await localVarAxiosParamCreator.accountSettingsSetPasswordPut(dataTypesSetPasswordRequest, options);
19507
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19508
+ const localVarOperationServerBasePath = operationServerMap['AccountSettingsApi.accountSettingsSetPasswordPut']?.[localVarOperationServerIndex]?.url;
19509
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19510
+ },
18801
19511
  }
18802
19512
  };
18803
19513
 
@@ -18875,6 +19585,16 @@ export const AccountSettingsApiFactory = function (configuration?: Configuration
18875
19585
  accountSettingsProfilePut(dataTypesUpdateProfileRequest: DataTypesUpdateProfileRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesProfileResponseWrapper> {
18876
19586
  return localVarFp.accountSettingsProfilePut(dataTypesUpdateProfileRequest, options).then((request) => request(axios, basePath));
18877
19587
  },
19588
+ /**
19589
+ * Allows user to set password only if not already set (Google/GitHub signup)
19590
+ * @summary Set password for OAuth/new user
19591
+ * @param {DataTypesSetPasswordRequest} dataTypesSetPasswordRequest Set password request
19592
+ * @param {*} [options] Override http request option.
19593
+ * @throws {RequiredError}
19594
+ */
19595
+ accountSettingsSetPasswordPut(dataTypesSetPasswordRequest: DataTypesSetPasswordRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
19596
+ return localVarFp.accountSettingsSetPasswordPut(dataTypesSetPasswordRequest, options).then((request) => request(axios, basePath));
19597
+ },
18878
19598
  };
18879
19599
  };
18880
19600
 
@@ -18965,6 +19685,18 @@ export class AccountSettingsApi extends BaseAPI {
18965
19685
  public accountSettingsProfilePut(dataTypesUpdateProfileRequest: DataTypesUpdateProfileRequest, options?: RawAxiosRequestConfig) {
18966
19686
  return AccountSettingsApiFp(this.configuration).accountSettingsProfilePut(dataTypesUpdateProfileRequest, options).then((request) => request(this.axios, this.basePath));
18967
19687
  }
19688
+
19689
+ /**
19690
+ * Allows user to set password only if not already set (Google/GitHub signup)
19691
+ * @summary Set password for OAuth/new user
19692
+ * @param {DataTypesSetPasswordRequest} dataTypesSetPasswordRequest Set password request
19693
+ * @param {*} [options] Override http request option.
19694
+ * @throws {RequiredError}
19695
+ * @memberof AccountSettingsApi
19696
+ */
19697
+ public accountSettingsSetPasswordPut(dataTypesSetPasswordRequest: DataTypesSetPasswordRequest, options?: RawAxiosRequestConfig) {
19698
+ return AccountSettingsApiFp(this.configuration).accountSettingsSetPasswordPut(dataTypesSetPasswordRequest, options).then((request) => request(this.axios, this.basePath));
19699
+ }
18968
19700
  }
18969
19701
 
18970
19702
 
@@ -20941,6 +21673,136 @@ export const AnalyticsApiAxiosParamCreator = function (configuration?: Configura
20941
21673
 
20942
21674
 
20943
21675
 
21676
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
21677
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
21678
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
21679
+
21680
+ return {
21681
+ url: toPathString(localVarUrlObj),
21682
+ options: localVarRequestOptions,
21683
+ };
21684
+ },
21685
+ /**
21686
+ * Retrieve API usage logs from ClickHouse system_events table with filtering and pagination
21687
+ * @summary Get API Usage Logs
21688
+ * @param {string} [startDate] Start date (ISO 8601 format)
21689
+ * @param {string} [endDate] End date (ISO 8601 format)
21690
+ * @param {string} [method] HTTP method filter
21691
+ * @param {string} [path] Path filter (partial match)
21692
+ * @param {string} [storeId] Store ID filter
21693
+ * @param {number} [page] Page number (default: 1)
21694
+ * @param {number} [perPage] Results per page (default: 50, max: 1000)
21695
+ * @param {*} [options] Override http request option.
21696
+ * @throws {RequiredError}
21697
+ */
21698
+ analyticsApiUsageGet: async (startDate?: string, endDate?: string, method?: string, path?: string, storeId?: string, page?: number, perPage?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
21699
+ const localVarPath = `/analytics/api-usage`;
21700
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
21701
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
21702
+ let baseOptions;
21703
+ if (configuration) {
21704
+ baseOptions = configuration.baseOptions;
21705
+ }
21706
+
21707
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
21708
+ const localVarHeaderParameter = {} as any;
21709
+ const localVarQueryParameter = {} as any;
21710
+
21711
+ // authentication BearerAuth required
21712
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
21713
+
21714
+ if (startDate !== undefined) {
21715
+ localVarQueryParameter['start_date'] = startDate;
21716
+ }
21717
+
21718
+ if (endDate !== undefined) {
21719
+ localVarQueryParameter['end_date'] = endDate;
21720
+ }
21721
+
21722
+ if (method !== undefined) {
21723
+ localVarQueryParameter['method'] = method;
21724
+ }
21725
+
21726
+ if (path !== undefined) {
21727
+ localVarQueryParameter['path'] = path;
21728
+ }
21729
+
21730
+ if (storeId !== undefined) {
21731
+ localVarQueryParameter['store_id'] = storeId;
21732
+ }
21733
+
21734
+ if (page !== undefined) {
21735
+ localVarQueryParameter['page'] = page;
21736
+ }
21737
+
21738
+ if (perPage !== undefined) {
21739
+ localVarQueryParameter['per_page'] = perPage;
21740
+ }
21741
+
21742
+
21743
+
21744
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
21745
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
21746
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
21747
+
21748
+ return {
21749
+ url: toPathString(localVarUrlObj),
21750
+ options: localVarRequestOptions,
21751
+ };
21752
+ },
21753
+ /**
21754
+ * Retrieve API usage logs for a specific store from ClickHouse
21755
+ * @summary Get Store API Usage Logs
21756
+ * @param {string} storeId Store ID
21757
+ * @param {string} [startDate] Start date (ISO 8601 format)
21758
+ * @param {string} [endDate] End date (ISO 8601 format)
21759
+ * @param {string} [method] HTTP method filter
21760
+ * @param {number} [page] Page number (default: 1)
21761
+ * @param {number} [perPage] Results per page (default: 50, max: 1000)
21762
+ * @param {*} [options] Override http request option.
21763
+ * @throws {RequiredError}
21764
+ */
21765
+ analyticsApiUsageStoreStoreIdGet: async (storeId: string, startDate?: string, endDate?: string, method?: string, page?: number, perPage?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
21766
+ // verify required parameter 'storeId' is not null or undefined
21767
+ assertParamExists('analyticsApiUsageStoreStoreIdGet', 'storeId', storeId)
21768
+ const localVarPath = `/analytics/api-usage/store/{storeId}`
21769
+ .replace(`{${"storeId"}}`, encodeURIComponent(String(storeId)));
21770
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
21771
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
21772
+ let baseOptions;
21773
+ if (configuration) {
21774
+ baseOptions = configuration.baseOptions;
21775
+ }
21776
+
21777
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
21778
+ const localVarHeaderParameter = {} as any;
21779
+ const localVarQueryParameter = {} as any;
21780
+
21781
+ // authentication BearerAuth required
21782
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
21783
+
21784
+ if (startDate !== undefined) {
21785
+ localVarQueryParameter['start_date'] = startDate;
21786
+ }
21787
+
21788
+ if (endDate !== undefined) {
21789
+ localVarQueryParameter['end_date'] = endDate;
21790
+ }
21791
+
21792
+ if (method !== undefined) {
21793
+ localVarQueryParameter['method'] = method;
21794
+ }
21795
+
21796
+ if (page !== undefined) {
21797
+ localVarQueryParameter['page'] = page;
21798
+ }
21799
+
21800
+ if (perPage !== undefined) {
21801
+ localVarQueryParameter['per_page'] = perPage;
21802
+ }
21803
+
21804
+
21805
+
20944
21806
  setSearchParams(localVarUrlObj, localVarQueryParameter);
20945
21807
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20946
21808
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -21457,6 +22319,43 @@ export const AnalyticsApiFp = function(configuration?: Configuration) {
21457
22319
  const localVarOperationServerBasePath = operationServerMap['AnalyticsApi.adminAnalyticsStoreXStoreIDTagsSummaryGet']?.[localVarOperationServerIndex]?.url;
21458
22320
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21459
22321
  },
22322
+ /**
22323
+ * Retrieve API usage logs from ClickHouse system_events table with filtering and pagination
22324
+ * @summary Get API Usage Logs
22325
+ * @param {string} [startDate] Start date (ISO 8601 format)
22326
+ * @param {string} [endDate] End date (ISO 8601 format)
22327
+ * @param {string} [method] HTTP method filter
22328
+ * @param {string} [path] Path filter (partial match)
22329
+ * @param {string} [storeId] Store ID filter
22330
+ * @param {number} [page] Page number (default: 1)
22331
+ * @param {number} [perPage] Results per page (default: 50, max: 1000)
22332
+ * @param {*} [options] Override http request option.
22333
+ * @throws {RequiredError}
22334
+ */
22335
+ async analyticsApiUsageGet(startDate?: string, endDate?: string, method?: string, path?: string, storeId?: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AnalyticsAPIUsageResponse>> {
22336
+ const localVarAxiosArgs = await localVarAxiosParamCreator.analyticsApiUsageGet(startDate, endDate, method, path, storeId, page, perPage, options);
22337
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
22338
+ const localVarOperationServerBasePath = operationServerMap['AnalyticsApi.analyticsApiUsageGet']?.[localVarOperationServerIndex]?.url;
22339
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
22340
+ },
22341
+ /**
22342
+ * Retrieve API usage logs for a specific store from ClickHouse
22343
+ * @summary Get Store API Usage Logs
22344
+ * @param {string} storeId Store ID
22345
+ * @param {string} [startDate] Start date (ISO 8601 format)
22346
+ * @param {string} [endDate] End date (ISO 8601 format)
22347
+ * @param {string} [method] HTTP method filter
22348
+ * @param {number} [page] Page number (default: 1)
22349
+ * @param {number} [perPage] Results per page (default: 50, max: 1000)
22350
+ * @param {*} [options] Override http request option.
22351
+ * @throws {RequiredError}
22352
+ */
22353
+ async analyticsApiUsageStoreStoreIdGet(storeId: string, startDate?: string, endDate?: string, method?: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AnalyticsAPIUsageResponse>> {
22354
+ const localVarAxiosArgs = await localVarAxiosParamCreator.analyticsApiUsageStoreStoreIdGet(storeId, startDate, endDate, method, page, perPage, options);
22355
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
22356
+ const localVarOperationServerBasePath = operationServerMap['AnalyticsApi.analyticsApiUsageStoreStoreIdGet']?.[localVarOperationServerIndex]?.url;
22357
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
22358
+ },
21460
22359
  }
21461
22360
  };
21462
22361
 
@@ -21910,6 +22809,37 @@ export const AnalyticsApiFactory = function (configuration?: Configuration, base
21910
22809
  adminAnalyticsStoreXStoreIDTagsSummaryGet(xStoreID: string, startTime?: string, endTime?: string, limit?: number, offset?: number, page?: number, pageSize?: number, sortBy?: AdminAnalyticsStoreXStoreIDTagsSummaryGetSortByEnum, sortOrder?: AdminAnalyticsStoreXStoreIDTagsSummaryGetSortOrderEnum, sort?: string, options?: RawAxiosRequestConfig): AxiosPromise<AnalyticsAnalyticsAPIResponse> {
21911
22810
  return localVarFp.adminAnalyticsStoreXStoreIDTagsSummaryGet(xStoreID, startTime, endTime, limit, offset, page, pageSize, sortBy, sortOrder, sort, options).then((request) => request(axios, basePath));
21912
22811
  },
22812
+ /**
22813
+ * Retrieve API usage logs from ClickHouse system_events table with filtering and pagination
22814
+ * @summary Get API Usage Logs
22815
+ * @param {string} [startDate] Start date (ISO 8601 format)
22816
+ * @param {string} [endDate] End date (ISO 8601 format)
22817
+ * @param {string} [method] HTTP method filter
22818
+ * @param {string} [path] Path filter (partial match)
22819
+ * @param {string} [storeId] Store ID filter
22820
+ * @param {number} [page] Page number (default: 1)
22821
+ * @param {number} [perPage] Results per page (default: 50, max: 1000)
22822
+ * @param {*} [options] Override http request option.
22823
+ * @throws {RequiredError}
22824
+ */
22825
+ analyticsApiUsageGet(startDate?: string, endDate?: string, method?: string, path?: string, storeId?: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): AxiosPromise<AnalyticsAPIUsageResponse> {
22826
+ return localVarFp.analyticsApiUsageGet(startDate, endDate, method, path, storeId, page, perPage, options).then((request) => request(axios, basePath));
22827
+ },
22828
+ /**
22829
+ * Retrieve API usage logs for a specific store from ClickHouse
22830
+ * @summary Get Store API Usage Logs
22831
+ * @param {string} storeId Store ID
22832
+ * @param {string} [startDate] Start date (ISO 8601 format)
22833
+ * @param {string} [endDate] End date (ISO 8601 format)
22834
+ * @param {string} [method] HTTP method filter
22835
+ * @param {number} [page] Page number (default: 1)
22836
+ * @param {number} [perPage] Results per page (default: 50, max: 1000)
22837
+ * @param {*} [options] Override http request option.
22838
+ * @throws {RequiredError}
22839
+ */
22840
+ analyticsApiUsageStoreStoreIdGet(storeId: string, startDate?: string, endDate?: string, method?: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): AxiosPromise<AnalyticsAPIUsageResponse> {
22841
+ return localVarFp.analyticsApiUsageStoreStoreIdGet(storeId, startDate, endDate, method, page, perPage, options).then((request) => request(axios, basePath));
22842
+ },
21913
22843
  };
21914
22844
  };
21915
22845
 
@@ -22398,6 +23328,41 @@ export class AnalyticsApi extends BaseAPI {
22398
23328
  public adminAnalyticsStoreXStoreIDTagsSummaryGet(xStoreID: string, startTime?: string, endTime?: string, limit?: number, offset?: number, page?: number, pageSize?: number, sortBy?: AdminAnalyticsStoreXStoreIDTagsSummaryGetSortByEnum, sortOrder?: AdminAnalyticsStoreXStoreIDTagsSummaryGetSortOrderEnum, sort?: string, options?: RawAxiosRequestConfig) {
22399
23329
  return AnalyticsApiFp(this.configuration).adminAnalyticsStoreXStoreIDTagsSummaryGet(xStoreID, startTime, endTime, limit, offset, page, pageSize, sortBy, sortOrder, sort, options).then((request) => request(this.axios, this.basePath));
22400
23330
  }
23331
+
23332
+ /**
23333
+ * Retrieve API usage logs from ClickHouse system_events table with filtering and pagination
23334
+ * @summary Get API Usage Logs
23335
+ * @param {string} [startDate] Start date (ISO 8601 format)
23336
+ * @param {string} [endDate] End date (ISO 8601 format)
23337
+ * @param {string} [method] HTTP method filter
23338
+ * @param {string} [path] Path filter (partial match)
23339
+ * @param {string} [storeId] Store ID filter
23340
+ * @param {number} [page] Page number (default: 1)
23341
+ * @param {number} [perPage] Results per page (default: 50, max: 1000)
23342
+ * @param {*} [options] Override http request option.
23343
+ * @throws {RequiredError}
23344
+ * @memberof AnalyticsApi
23345
+ */
23346
+ public analyticsApiUsageGet(startDate?: string, endDate?: string, method?: string, path?: string, storeId?: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig) {
23347
+ return AnalyticsApiFp(this.configuration).analyticsApiUsageGet(startDate, endDate, method, path, storeId, page, perPage, options).then((request) => request(this.axios, this.basePath));
23348
+ }
23349
+
23350
+ /**
23351
+ * Retrieve API usage logs for a specific store from ClickHouse
23352
+ * @summary Get Store API Usage Logs
23353
+ * @param {string} storeId Store ID
23354
+ * @param {string} [startDate] Start date (ISO 8601 format)
23355
+ * @param {string} [endDate] End date (ISO 8601 format)
23356
+ * @param {string} [method] HTTP method filter
23357
+ * @param {number} [page] Page number (default: 1)
23358
+ * @param {number} [perPage] Results per page (default: 50, max: 1000)
23359
+ * @param {*} [options] Override http request option.
23360
+ * @throws {RequiredError}
23361
+ * @memberof AnalyticsApi
23362
+ */
23363
+ public analyticsApiUsageStoreStoreIdGet(storeId: string, startDate?: string, endDate?: string, method?: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig) {
23364
+ return AnalyticsApiFp(this.configuration).analyticsApiUsageStoreStoreIdGet(storeId, startDate, endDate, method, page, perPage, options).then((request) => request(this.axios, this.basePath));
23365
+ }
22401
23366
  }
22402
23367
 
22403
23368
  /**
@@ -25915,6 +26880,43 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
25915
26880
 
25916
26881
 
25917
26882
 
26883
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
26884
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
26885
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
26886
+
26887
+ return {
26888
+ url: toPathString(localVarUrlObj),
26889
+ options: localVarRequestOptions,
26890
+ };
26891
+ },
26892
+ /**
26893
+ * Generates invoices for all uninvoiced payments in an order (handles multiple payments for subscriptions)
26894
+ * @summary Generate invoices for an order
26895
+ * @param {number} orderId Order ID
26896
+ * @param {*} [options] Override http request option.
26897
+ * @throws {RequiredError}
26898
+ */
26899
+ adminBillingInvoicesGenerateForOrderOrderIdPost: async (orderId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
26900
+ // verify required parameter 'orderId' is not null or undefined
26901
+ assertParamExists('adminBillingInvoicesGenerateForOrderOrderIdPost', 'orderId', orderId)
26902
+ const localVarPath = `/admin/billing/invoices/generate-for-order/{orderId}`
26903
+ .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
26904
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
26905
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
26906
+ let baseOptions;
26907
+ if (configuration) {
26908
+ baseOptions = configuration.baseOptions;
26909
+ }
26910
+
26911
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
26912
+ const localVarHeaderParameter = {} as any;
26913
+ const localVarQueryParameter = {} as any;
26914
+
26915
+ // authentication BearerAuth required
26916
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
26917
+
26918
+
26919
+
25918
26920
  setSearchParams(localVarUrlObj, localVarQueryParameter);
25919
26921
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
25920
26922
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -25962,10 +26964,10 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
25962
26964
  };
25963
26965
  },
25964
26966
  /**
25965
- * Retrieves invoices with filtering options
26967
+ * Retrieves paginated list of invoices with filtering options for the authenticated user\'s organization. Returns analytics-compatible pagination object.
25966
26968
  * @summary Get invoices
25967
- * @param {number} [orgId] Organization ID
25968
- * @param {string} [status] Invoice status
26969
+ * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
26970
+ * @param {string} [status] Invoice status (draft, sent, paid, overdue, cancelled)
25969
26971
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
25970
26972
  * @param {string} [endDate] End date (YYYY-MM-DD format)
25971
26973
  * @param {number} [page] Page number (default: 1)
@@ -26099,15 +27101,55 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
26099
27101
  };
26100
27102
  },
26101
27103
  /**
26102
- * Retrieves a single invoice by ID
26103
- * @summary Get invoice
27104
+ * Retrieves a single invoice by ID
27105
+ * @summary Get invoice
27106
+ * @param {string} id Invoice ID
27107
+ * @param {*} [options] Override http request option.
27108
+ * @throws {RequiredError}
27109
+ */
27110
+ adminBillingInvoicesIdGet: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
27111
+ // verify required parameter 'id' is not null or undefined
27112
+ assertParamExists('adminBillingInvoicesIdGet', 'id', id)
27113
+ const localVarPath = `/admin/billing/invoices/{id}`
27114
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
27115
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
27116
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
27117
+ let baseOptions;
27118
+ if (configuration) {
27119
+ baseOptions = configuration.baseOptions;
27120
+ }
27121
+
27122
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
27123
+ const localVarHeaderParameter = {} as any;
27124
+ const localVarQueryParameter = {} as any;
27125
+
27126
+ // authentication BearerAuth required
27127
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
27128
+
27129
+
27130
+
27131
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
27132
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
27133
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
27134
+
27135
+ return {
27136
+ url: toPathString(localVarUrlObj),
27137
+ options: localVarRequestOptions,
27138
+ };
27139
+ },
27140
+ /**
27141
+ * Updates an existing invoice
27142
+ * @summary Update invoice
26104
27143
  * @param {string} id Invoice ID
27144
+ * @param {DataTypesUpdateInvoiceRequest} dataTypesUpdateInvoiceRequest Updated invoice data
26105
27145
  * @param {*} [options] Override http request option.
26106
27146
  * @throws {RequiredError}
26107
27147
  */
26108
- adminBillingInvoicesIdGet: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
27148
+ adminBillingInvoicesIdPut: async (id: string, dataTypesUpdateInvoiceRequest: DataTypesUpdateInvoiceRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
26109
27149
  // verify required parameter 'id' is not null or undefined
26110
- assertParamExists('adminBillingInvoicesIdGet', 'id', id)
27150
+ assertParamExists('adminBillingInvoicesIdPut', 'id', id)
27151
+ // verify required parameter 'dataTypesUpdateInvoiceRequest' is not null or undefined
27152
+ assertParamExists('adminBillingInvoicesIdPut', 'dataTypesUpdateInvoiceRequest', dataTypesUpdateInvoiceRequest)
26111
27153
  const localVarPath = `/admin/billing/invoices/{id}`
26112
27154
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
26113
27155
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -26117,7 +27159,7 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
26117
27159
  baseOptions = configuration.baseOptions;
26118
27160
  }
26119
27161
 
26120
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
27162
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
26121
27163
  const localVarHeaderParameter = {} as any;
26122
27164
  const localVarQueryParameter = {} as any;
26123
27165
 
@@ -26126,9 +27168,12 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
26126
27168
 
26127
27169
 
26128
27170
 
27171
+ localVarHeaderParameter['Content-Type'] = 'application/json';
27172
+
26129
27173
  setSearchParams(localVarUrlObj, localVarQueryParameter);
26130
27174
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
26131
27175
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
27176
+ localVarRequestOptions.data = serializeDataIfNeeded(dataTypesUpdateInvoiceRequest, localVarRequestOptions, configuration)
26132
27177
 
26133
27178
  return {
26134
27179
  url: toPathString(localVarUrlObj),
@@ -26136,20 +27181,18 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
26136
27181
  };
26137
27182
  },
26138
27183
  /**
26139
- * Updates an existing invoice
26140
- * @summary Update invoice
26141
- * @param {string} id Invoice ID
26142
- * @param {DataTypesUpdateInvoiceRequest} dataTypesUpdateInvoiceRequest Updated invoice data
27184
+ * Initiates payment for a pending invoice (for subscription orders with failed auto-payments)
27185
+ * @summary Pay a pending invoice
27186
+ * @param {string} invoiceId Invoice ID
27187
+ * @param {DataTypesPayInvoiceRequest} [dataTypesPayInvoiceRequest] Payment details
26143
27188
  * @param {*} [options] Override http request option.
26144
27189
  * @throws {RequiredError}
26145
27190
  */
26146
- adminBillingInvoicesIdPut: async (id: string, dataTypesUpdateInvoiceRequest: DataTypesUpdateInvoiceRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
26147
- // verify required parameter 'id' is not null or undefined
26148
- assertParamExists('adminBillingInvoicesIdPut', 'id', id)
26149
- // verify required parameter 'dataTypesUpdateInvoiceRequest' is not null or undefined
26150
- assertParamExists('adminBillingInvoicesIdPut', 'dataTypesUpdateInvoiceRequest', dataTypesUpdateInvoiceRequest)
26151
- const localVarPath = `/admin/billing/invoices/{id}`
26152
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
27191
+ adminBillingInvoicesInvoiceIdPayPost: async (invoiceId: string, dataTypesPayInvoiceRequest?: DataTypesPayInvoiceRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
27192
+ // verify required parameter 'invoiceId' is not null or undefined
27193
+ assertParamExists('adminBillingInvoicesInvoiceIdPayPost', 'invoiceId', invoiceId)
27194
+ const localVarPath = `/admin/billing/invoices/{invoice_id}/pay`
27195
+ .replace(`{${"invoice_id"}}`, encodeURIComponent(String(invoiceId)));
26153
27196
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
26154
27197
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
26155
27198
  let baseOptions;
@@ -26157,7 +27200,7 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
26157
27200
  baseOptions = configuration.baseOptions;
26158
27201
  }
26159
27202
 
26160
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
27203
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
26161
27204
  const localVarHeaderParameter = {} as any;
26162
27205
  const localVarQueryParameter = {} as any;
26163
27206
 
@@ -26171,7 +27214,7 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
26171
27214
  setSearchParams(localVarUrlObj, localVarQueryParameter);
26172
27215
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
26173
27216
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
26174
- localVarRequestOptions.data = serializeDataIfNeeded(dataTypesUpdateInvoiceRequest, localVarRequestOptions, configuration)
27217
+ localVarRequestOptions.data = serializeDataIfNeeded(dataTypesPayInvoiceRequest, localVarRequestOptions, configuration)
26175
27218
 
26176
27219
  return {
26177
27220
  url: toPathString(localVarUrlObj),
@@ -26227,6 +27270,43 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
26227
27270
 
26228
27271
 
26229
27272
 
27273
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
27274
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
27275
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
27276
+
27277
+ return {
27278
+ url: toPathString(localVarUrlObj),
27279
+ options: localVarRequestOptions,
27280
+ };
27281
+ },
27282
+ /**
27283
+ * Retrieves comprehensive order details including all transactions and invoices (supports multiple invoices for subscriptions)
27284
+ * @summary Get single order with transactions and invoices
27285
+ * @param {number} id Order ID
27286
+ * @param {*} [options] Override http request option.
27287
+ * @throws {RequiredError}
27288
+ */
27289
+ adminBillingOrdersIdGet: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
27290
+ // verify required parameter 'id' is not null or undefined
27291
+ assertParamExists('adminBillingOrdersIdGet', 'id', id)
27292
+ const localVarPath = `/admin/billing/orders/{id}`
27293
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
27294
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
27295
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
27296
+ let baseOptions;
27297
+ if (configuration) {
27298
+ baseOptions = configuration.baseOptions;
27299
+ }
27300
+
27301
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
27302
+ const localVarHeaderParameter = {} as any;
27303
+ const localVarQueryParameter = {} as any;
27304
+
27305
+ // authentication BearerAuth required
27306
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
27307
+
27308
+
27309
+
26230
27310
  setSearchParams(localVarUrlObj, localVarQueryParameter);
26231
27311
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
26232
27312
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -26726,6 +27806,19 @@ export const BillingDashboardApiFp = function(configuration?: Configuration) {
26726
27806
  const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingInvoicesAutoGeneratePost']?.[localVarOperationServerIndex]?.url;
26727
27807
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
26728
27808
  },
27809
+ /**
27810
+ * Generates invoices for all uninvoiced payments in an order (handles multiple payments for subscriptions)
27811
+ * @summary Generate invoices for an order
27812
+ * @param {number} orderId Order ID
27813
+ * @param {*} [options] Override http request option.
27814
+ * @throws {RequiredError}
27815
+ */
27816
+ async adminBillingInvoicesGenerateForOrderOrderIdPost(orderId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesGenericResponseArrayDataTypesInvoice>> {
27817
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingInvoicesGenerateForOrderOrderIdPost(orderId, options);
27818
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
27819
+ const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingInvoicesGenerateForOrderOrderIdPost']?.[localVarOperationServerIndex]?.url;
27820
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
27821
+ },
26729
27822
  /**
26730
27823
  * Generates an invoice automatically from a completed payment
26731
27824
  * @summary Generate invoice from payment
@@ -26740,10 +27833,10 @@ export const BillingDashboardApiFp = function(configuration?: Configuration) {
26740
27833
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
26741
27834
  },
26742
27835
  /**
26743
- * Retrieves invoices with filtering options
27836
+ * Retrieves paginated list of invoices with filtering options for the authenticated user\'s organization. Returns analytics-compatible pagination object.
26744
27837
  * @summary Get invoices
26745
- * @param {number} [orgId] Organization ID
26746
- * @param {string} [status] Invoice status
27838
+ * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
27839
+ * @param {string} [status] Invoice status (draft, sent, paid, overdue, cancelled)
26747
27840
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
26748
27841
  * @param {string} [endDate] End date (YYYY-MM-DD format)
26749
27842
  * @param {number} [page] Page number (default: 1)
@@ -26810,6 +27903,20 @@ export const BillingDashboardApiFp = function(configuration?: Configuration) {
26810
27903
  const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingInvoicesIdPut']?.[localVarOperationServerIndex]?.url;
26811
27904
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
26812
27905
  },
27906
+ /**
27907
+ * Initiates payment for a pending invoice (for subscription orders with failed auto-payments)
27908
+ * @summary Pay a pending invoice
27909
+ * @param {string} invoiceId Invoice ID
27910
+ * @param {DataTypesPayInvoiceRequest} [dataTypesPayInvoiceRequest] Payment details
27911
+ * @param {*} [options] Override http request option.
27912
+ * @throws {RequiredError}
27913
+ */
27914
+ async adminBillingInvoicesInvoiceIdPayPost(invoiceId: string, dataTypesPayInvoiceRequest?: DataTypesPayInvoiceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesGenericResponseDataTypesPayInvoiceResponse>> {
27915
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingInvoicesInvoiceIdPayPost(invoiceId, dataTypesPayInvoiceRequest, options);
27916
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
27917
+ const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingInvoicesInvoiceIdPayPost']?.[localVarOperationServerIndex]?.url;
27918
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
27919
+ },
26813
27920
  /**
26814
27921
  * Retrieves paginated list of orders with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
26815
27922
  * @summary Get orders
@@ -26827,6 +27934,19 @@ export const BillingDashboardApiFp = function(configuration?: Configuration) {
26827
27934
  const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingOrdersGet']?.[localVarOperationServerIndex]?.url;
26828
27935
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
26829
27936
  },
27937
+ /**
27938
+ * Retrieves comprehensive order details including all transactions and invoices (supports multiple invoices for subscriptions)
27939
+ * @summary Get single order with transactions and invoices
27940
+ * @param {number} id Order ID
27941
+ * @param {*} [options] Override http request option.
27942
+ * @throws {RequiredError}
27943
+ */
27944
+ async adminBillingOrdersIdGet(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesGenericResponseDataTypesBillingOrderDetailsResponse>> {
27945
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingOrdersIdGet(id, options);
27946
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
27947
+ const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingOrdersIdGet']?.[localVarOperationServerIndex]?.url;
27948
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
27949
+ },
26830
27950
  /**
26831
27951
  * Returns comprehensive billing overview including plan, next charge, balance, and projected runout for org admins
26832
27952
  * @summary Get org admin billing overview
@@ -27051,6 +28171,16 @@ export const BillingDashboardApiFactory = function (configuration?: Configuratio
27051
28171
  adminBillingInvoicesAutoGeneratePost(options?: RawAxiosRequestConfig): AxiosPromise<object> {
27052
28172
  return localVarFp.adminBillingInvoicesAutoGeneratePost(options).then((request) => request(axios, basePath));
27053
28173
  },
28174
+ /**
28175
+ * Generates invoices for all uninvoiced payments in an order (handles multiple payments for subscriptions)
28176
+ * @summary Generate invoices for an order
28177
+ * @param {number} orderId Order ID
28178
+ * @param {*} [options] Override http request option.
28179
+ * @throws {RequiredError}
28180
+ */
28181
+ adminBillingInvoicesGenerateForOrderOrderIdPost(orderId: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesGenericResponseArrayDataTypesInvoice> {
28182
+ return localVarFp.adminBillingInvoicesGenerateForOrderOrderIdPost(orderId, options).then((request) => request(axios, basePath));
28183
+ },
27054
28184
  /**
27055
28185
  * Generates an invoice automatically from a completed payment
27056
28186
  * @summary Generate invoice from payment
@@ -27062,10 +28192,10 @@ export const BillingDashboardApiFactory = function (configuration?: Configuratio
27062
28192
  return localVarFp.adminBillingInvoicesGeneratePaymentIdPost(paymentId, options).then((request) => request(axios, basePath));
27063
28193
  },
27064
28194
  /**
27065
- * Retrieves invoices with filtering options
28195
+ * Retrieves paginated list of invoices with filtering options for the authenticated user\'s organization. Returns analytics-compatible pagination object.
27066
28196
  * @summary Get invoices
27067
- * @param {number} [orgId] Organization ID
27068
- * @param {string} [status] Invoice status
28197
+ * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
28198
+ * @param {string} [status] Invoice status (draft, sent, paid, overdue, cancelled)
27069
28199
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
27070
28200
  * @param {string} [endDate] End date (YYYY-MM-DD format)
27071
28201
  * @param {number} [page] Page number (default: 1)
@@ -27117,6 +28247,17 @@ export const BillingDashboardApiFactory = function (configuration?: Configuratio
27117
28247
  adminBillingInvoicesIdPut(id: string, dataTypesUpdateInvoiceRequest: DataTypesUpdateInvoiceRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
27118
28248
  return localVarFp.adminBillingInvoicesIdPut(id, dataTypesUpdateInvoiceRequest, options).then((request) => request(axios, basePath));
27119
28249
  },
28250
+ /**
28251
+ * Initiates payment for a pending invoice (for subscription orders with failed auto-payments)
28252
+ * @summary Pay a pending invoice
28253
+ * @param {string} invoiceId Invoice ID
28254
+ * @param {DataTypesPayInvoiceRequest} [dataTypesPayInvoiceRequest] Payment details
28255
+ * @param {*} [options] Override http request option.
28256
+ * @throws {RequiredError}
28257
+ */
28258
+ adminBillingInvoicesInvoiceIdPayPost(invoiceId: string, dataTypesPayInvoiceRequest?: DataTypesPayInvoiceRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesGenericResponseDataTypesPayInvoiceResponse> {
28259
+ return localVarFp.adminBillingInvoicesInvoiceIdPayPost(invoiceId, dataTypesPayInvoiceRequest, options).then((request) => request(axios, basePath));
28260
+ },
27120
28261
  /**
27121
28262
  * Retrieves paginated list of orders with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
27122
28263
  * @summary Get orders
@@ -27131,6 +28272,16 @@ export const BillingDashboardApiFactory = function (configuration?: Configuratio
27131
28272
  adminBillingOrdersGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
27132
28273
  return localVarFp.adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, options).then((request) => request(axios, basePath));
27133
28274
  },
28275
+ /**
28276
+ * Retrieves comprehensive order details including all transactions and invoices (supports multiple invoices for subscriptions)
28277
+ * @summary Get single order with transactions and invoices
28278
+ * @param {number} id Order ID
28279
+ * @param {*} [options] Override http request option.
28280
+ * @throws {RequiredError}
28281
+ */
28282
+ adminBillingOrdersIdGet(id: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesGenericResponseDataTypesBillingOrderDetailsResponse> {
28283
+ return localVarFp.adminBillingOrdersIdGet(id, options).then((request) => request(axios, basePath));
28284
+ },
27134
28285
  /**
27135
28286
  * Returns comprehensive billing overview including plan, next charge, balance, and projected runout for org admins
27136
28287
  * @summary Get org admin billing overview
@@ -27352,6 +28503,18 @@ export class BillingDashboardApi extends BaseAPI {
27352
28503
  return BillingDashboardApiFp(this.configuration).adminBillingInvoicesAutoGeneratePost(options).then((request) => request(this.axios, this.basePath));
27353
28504
  }
27354
28505
 
28506
+ /**
28507
+ * Generates invoices for all uninvoiced payments in an order (handles multiple payments for subscriptions)
28508
+ * @summary Generate invoices for an order
28509
+ * @param {number} orderId Order ID
28510
+ * @param {*} [options] Override http request option.
28511
+ * @throws {RequiredError}
28512
+ * @memberof BillingDashboardApi
28513
+ */
28514
+ public adminBillingInvoicesGenerateForOrderOrderIdPost(orderId: number, options?: RawAxiosRequestConfig) {
28515
+ return BillingDashboardApiFp(this.configuration).adminBillingInvoicesGenerateForOrderOrderIdPost(orderId, options).then((request) => request(this.axios, this.basePath));
28516
+ }
28517
+
27355
28518
  /**
27356
28519
  * Generates an invoice automatically from a completed payment
27357
28520
  * @summary Generate invoice from payment
@@ -27365,10 +28528,10 @@ export class BillingDashboardApi extends BaseAPI {
27365
28528
  }
27366
28529
 
27367
28530
  /**
27368
- * Retrieves invoices with filtering options
28531
+ * Retrieves paginated list of invoices with filtering options for the authenticated user\'s organization. Returns analytics-compatible pagination object.
27369
28532
  * @summary Get invoices
27370
- * @param {number} [orgId] Organization ID
27371
- * @param {string} [status] Invoice status
28533
+ * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
28534
+ * @param {string} [status] Invoice status (draft, sent, paid, overdue, cancelled)
27372
28535
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
27373
28536
  * @param {string} [endDate] End date (YYYY-MM-DD format)
27374
28537
  * @param {number} [page] Page number (default: 1)
@@ -27430,6 +28593,19 @@ export class BillingDashboardApi extends BaseAPI {
27430
28593
  return BillingDashboardApiFp(this.configuration).adminBillingInvoicesIdPut(id, dataTypesUpdateInvoiceRequest, options).then((request) => request(this.axios, this.basePath));
27431
28594
  }
27432
28595
 
28596
+ /**
28597
+ * Initiates payment for a pending invoice (for subscription orders with failed auto-payments)
28598
+ * @summary Pay a pending invoice
28599
+ * @param {string} invoiceId Invoice ID
28600
+ * @param {DataTypesPayInvoiceRequest} [dataTypesPayInvoiceRequest] Payment details
28601
+ * @param {*} [options] Override http request option.
28602
+ * @throws {RequiredError}
28603
+ * @memberof BillingDashboardApi
28604
+ */
28605
+ public adminBillingInvoicesInvoiceIdPayPost(invoiceId: string, dataTypesPayInvoiceRequest?: DataTypesPayInvoiceRequest, options?: RawAxiosRequestConfig) {
28606
+ return BillingDashboardApiFp(this.configuration).adminBillingInvoicesInvoiceIdPayPost(invoiceId, dataTypesPayInvoiceRequest, options).then((request) => request(this.axios, this.basePath));
28607
+ }
28608
+
27433
28609
  /**
27434
28610
  * Retrieves paginated list of orders with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
27435
28611
  * @summary Get orders
@@ -27446,6 +28622,18 @@ export class BillingDashboardApi extends BaseAPI {
27446
28622
  return BillingDashboardApiFp(this.configuration).adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, options).then((request) => request(this.axios, this.basePath));
27447
28623
  }
27448
28624
 
28625
+ /**
28626
+ * Retrieves comprehensive order details including all transactions and invoices (supports multiple invoices for subscriptions)
28627
+ * @summary Get single order with transactions and invoices
28628
+ * @param {number} id Order ID
28629
+ * @param {*} [options] Override http request option.
28630
+ * @throws {RequiredError}
28631
+ * @memberof BillingDashboardApi
28632
+ */
28633
+ public adminBillingOrdersIdGet(id: number, options?: RawAxiosRequestConfig) {
28634
+ return BillingDashboardApiFp(this.configuration).adminBillingOrdersIdGet(id, options).then((request) => request(this.axios, this.basePath));
28635
+ }
28636
+
27449
28637
  /**
27450
28638
  * Returns comprehensive billing overview including plan, next charge, balance, and projected runout for org admins
27451
28639
  * @summary Get org admin billing overview
@@ -46916,6 +48104,114 @@ export const StoresApiAxiosParamCreator = function (configuration?: Configuratio
46916
48104
 
46917
48105
 
46918
48106
 
48107
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
48108
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
48109
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
48110
+
48111
+ return {
48112
+ url: toPathString(localVarUrlObj),
48113
+ options: localVarRequestOptions,
48114
+ };
48115
+ },
48116
+ /**
48117
+ * Retrieve detailed information for a specific API usage event including headers, request body, and response body
48118
+ * @summary Get Specific API Usage Event
48119
+ * @param {string} xStoreID Store ID
48120
+ * @param {string} eventID Event ID (UUID)
48121
+ * @param {*} [options] Override http request option.
48122
+ * @throws {RequiredError}
48123
+ */
48124
+ adminStoresXStoreIDApiUsageEventIDGet: async (xStoreID: string, eventID: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
48125
+ // verify required parameter 'xStoreID' is not null or undefined
48126
+ assertParamExists('adminStoresXStoreIDApiUsageEventIDGet', 'xStoreID', xStoreID)
48127
+ // verify required parameter 'eventID' is not null or undefined
48128
+ assertParamExists('adminStoresXStoreIDApiUsageEventIDGet', 'eventID', eventID)
48129
+ const localVarPath = `/admin/Stores/{xStoreID}/api-usage/{eventID}`
48130
+ .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)))
48131
+ .replace(`{${"eventID"}}`, encodeURIComponent(String(eventID)));
48132
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
48133
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
48134
+ let baseOptions;
48135
+ if (configuration) {
48136
+ baseOptions = configuration.baseOptions;
48137
+ }
48138
+
48139
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
48140
+ const localVarHeaderParameter = {} as any;
48141
+ const localVarQueryParameter = {} as any;
48142
+
48143
+ // authentication BearerAuth required
48144
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
48145
+
48146
+
48147
+
48148
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
48149
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
48150
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
48151
+
48152
+ return {
48153
+ url: toPathString(localVarUrlObj),
48154
+ options: localVarRequestOptions,
48155
+ };
48156
+ },
48157
+ /**
48158
+ * Retrieve API usage logs for a specific store from ClickHouse with filtering and pagination
48159
+ * @summary Get API Usage Logs for Store
48160
+ * @param {string} xStoreID Store ID
48161
+ * @param {string} [startDate] Start date (ISO 8601 format)
48162
+ * @param {string} [endDate] End date (ISO 8601 format)
48163
+ * @param {string} [method] HTTP method filter
48164
+ * @param {string} [path] Path filter (partial match)
48165
+ * @param {number} [page] Page number (default: 1)
48166
+ * @param {number} [perPage] Results per page (default: 50, max: 1000)
48167
+ * @param {*} [options] Override http request option.
48168
+ * @throws {RequiredError}
48169
+ */
48170
+ adminStoresXStoreIDApiUsageGet: async (xStoreID: string, startDate?: string, endDate?: string, method?: string, path?: string, page?: number, perPage?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
48171
+ // verify required parameter 'xStoreID' is not null or undefined
48172
+ assertParamExists('adminStoresXStoreIDApiUsageGet', 'xStoreID', xStoreID)
48173
+ const localVarPath = `/admin/Stores/{xStoreID}/api-usage`
48174
+ .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
48175
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
48176
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
48177
+ let baseOptions;
48178
+ if (configuration) {
48179
+ baseOptions = configuration.baseOptions;
48180
+ }
48181
+
48182
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
48183
+ const localVarHeaderParameter = {} as any;
48184
+ const localVarQueryParameter = {} as any;
48185
+
48186
+ // authentication BearerAuth required
48187
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
48188
+
48189
+ if (startDate !== undefined) {
48190
+ localVarQueryParameter['start_date'] = startDate;
48191
+ }
48192
+
48193
+ if (endDate !== undefined) {
48194
+ localVarQueryParameter['end_date'] = endDate;
48195
+ }
48196
+
48197
+ if (method !== undefined) {
48198
+ localVarQueryParameter['method'] = method;
48199
+ }
48200
+
48201
+ if (path !== undefined) {
48202
+ localVarQueryParameter['path'] = path;
48203
+ }
48204
+
48205
+ if (page !== undefined) {
48206
+ localVarQueryParameter['page'] = page;
48207
+ }
48208
+
48209
+ if (perPage !== undefined) {
48210
+ localVarQueryParameter['per_page'] = perPage;
48211
+ }
48212
+
48213
+
48214
+
46919
48215
  setSearchParams(localVarUrlObj, localVarQueryParameter);
46920
48216
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
46921
48217
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -47154,20 +48450,18 @@ export const StoresApiAxiosParamCreator = function (configuration?: Configuratio
47154
48450
  };
47155
48451
  },
47156
48452
  /**
47157
- * Perform search on a specific store by xStoreID
48453
+ * Perform search on a specific store by xStoreID. Empty query string returns all results.
47158
48454
  * @summary Get store search results
47159
48455
  * @param {string} xStoreID X-Store ID
47160
- * @param {string} query Search query
48456
+ * @param {string} [query] Search query (empty returns all results)
47161
48457
  * @param {number} [page] Page number
47162
48458
  * @param {number} [pageSize] Page size
47163
48459
  * @param {*} [options] Override http request option.
47164
48460
  * @throws {RequiredError}
47165
48461
  */
47166
- adminStoresXStoreIDSearchGet: async (xStoreID: string, query: string, page?: number, pageSize?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
48462
+ adminStoresXStoreIDSearchGet: async (xStoreID: string, query?: string, page?: number, pageSize?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
47167
48463
  // verify required parameter 'xStoreID' is not null or undefined
47168
48464
  assertParamExists('adminStoresXStoreIDSearchGet', 'xStoreID', xStoreID)
47169
- // verify required parameter 'query' is not null or undefined
47170
- assertParamExists('adminStoresXStoreIDSearchGet', 'query', query)
47171
48465
  const localVarPath = `/admin/stores/{xStoreID}/search`
47172
48466
  .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
47173
48467
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -47367,6 +48661,39 @@ export const StoresApiFp = function(configuration?: Configuration) {
47367
48661
  const localVarOperationServerBasePath = operationServerMap['StoresApi.adminStoresUpdateStatusIdStatusPut']?.[localVarOperationServerIndex]?.url;
47368
48662
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
47369
48663
  },
48664
+ /**
48665
+ * Retrieve detailed information for a specific API usage event including headers, request body, and response body
48666
+ * @summary Get Specific API Usage Event
48667
+ * @param {string} xStoreID Store ID
48668
+ * @param {string} eventID Event ID (UUID)
48669
+ * @param {*} [options] Override http request option.
48670
+ * @throws {RequiredError}
48671
+ */
48672
+ async adminStoresXStoreIDApiUsageEventIDGet(xStoreID: string, eventID: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StoreRouteAPIUsageDetailResponse>> {
48673
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminStoresXStoreIDApiUsageEventIDGet(xStoreID, eventID, options);
48674
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
48675
+ const localVarOperationServerBasePath = operationServerMap['StoresApi.adminStoresXStoreIDApiUsageEventIDGet']?.[localVarOperationServerIndex]?.url;
48676
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
48677
+ },
48678
+ /**
48679
+ * Retrieve API usage logs for a specific store from ClickHouse with filtering and pagination
48680
+ * @summary Get API Usage Logs for Store
48681
+ * @param {string} xStoreID Store ID
48682
+ * @param {string} [startDate] Start date (ISO 8601 format)
48683
+ * @param {string} [endDate] End date (ISO 8601 format)
48684
+ * @param {string} [method] HTTP method filter
48685
+ * @param {string} [path] Path filter (partial match)
48686
+ * @param {number} [page] Page number (default: 1)
48687
+ * @param {number} [perPage] Results per page (default: 50, max: 1000)
48688
+ * @param {*} [options] Override http request option.
48689
+ * @throws {RequiredError}
48690
+ */
48691
+ async adminStoresXStoreIDApiUsageGet(xStoreID: string, startDate?: string, endDate?: string, method?: string, path?: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StoreRouteAPIUsageListResponse>> {
48692
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminStoresXStoreIDApiUsageGet(xStoreID, startDate, endDate, method, path, page, perPage, options);
48693
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
48694
+ const localVarOperationServerBasePath = operationServerMap['StoresApi.adminStoresXStoreIDApiUsageGet']?.[localVarOperationServerIndex]?.url;
48695
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
48696
+ },
47370
48697
  /**
47371
48698
  * Retrieves the store configuration using x-store ID
47372
48699
  * @summary Get Store Config
@@ -47447,16 +48774,16 @@ export const StoresApiFp = function(configuration?: Configuration) {
47447
48774
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
47448
48775
  },
47449
48776
  /**
47450
- * Perform search on a specific store by xStoreID
48777
+ * Perform search on a specific store by xStoreID. Empty query string returns all results.
47451
48778
  * @summary Get store search results
47452
48779
  * @param {string} xStoreID X-Store ID
47453
- * @param {string} query Search query
48780
+ * @param {string} [query] Search query (empty returns all results)
47454
48781
  * @param {number} [page] Page number
47455
48782
  * @param {number} [pageSize] Page size
47456
48783
  * @param {*} [options] Override http request option.
47457
48784
  * @throws {RequiredError}
47458
48785
  */
47459
- async adminStoresXStoreIDSearchGet(xStoreID: string, query: string, page?: number, pageSize?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesOnboardingTestSearchResponseWrapper>> {
48786
+ async adminStoresXStoreIDSearchGet(xStoreID: string, query?: string, page?: number, pageSize?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesOnboardingTestSearchResponseWrapper>> {
47460
48787
  const localVarAxiosArgs = await localVarAxiosParamCreator.adminStoresXStoreIDSearchGet(xStoreID, query, page, pageSize, options);
47461
48788
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
47462
48789
  const localVarOperationServerBasePath = operationServerMap['StoresApi.adminStoresXStoreIDSearchGet']?.[localVarOperationServerIndex]?.url;
@@ -47551,6 +48878,33 @@ export const StoresApiFactory = function (configuration?: Configuration, basePat
47551
48878
  adminStoresUpdateStatusIdStatusPut(id: number, status: boolean, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
47552
48879
  return localVarFp.adminStoresUpdateStatusIdStatusPut(id, status, options).then((request) => request(axios, basePath));
47553
48880
  },
48881
+ /**
48882
+ * Retrieve detailed information for a specific API usage event including headers, request body, and response body
48883
+ * @summary Get Specific API Usage Event
48884
+ * @param {string} xStoreID Store ID
48885
+ * @param {string} eventID Event ID (UUID)
48886
+ * @param {*} [options] Override http request option.
48887
+ * @throws {RequiredError}
48888
+ */
48889
+ adminStoresXStoreIDApiUsageEventIDGet(xStoreID: string, eventID: string, options?: RawAxiosRequestConfig): AxiosPromise<StoreRouteAPIUsageDetailResponse> {
48890
+ return localVarFp.adminStoresXStoreIDApiUsageEventIDGet(xStoreID, eventID, options).then((request) => request(axios, basePath));
48891
+ },
48892
+ /**
48893
+ * Retrieve API usage logs for a specific store from ClickHouse with filtering and pagination
48894
+ * @summary Get API Usage Logs for Store
48895
+ * @param {string} xStoreID Store ID
48896
+ * @param {string} [startDate] Start date (ISO 8601 format)
48897
+ * @param {string} [endDate] End date (ISO 8601 format)
48898
+ * @param {string} [method] HTTP method filter
48899
+ * @param {string} [path] Path filter (partial match)
48900
+ * @param {number} [page] Page number (default: 1)
48901
+ * @param {number} [perPage] Results per page (default: 50, max: 1000)
48902
+ * @param {*} [options] Override http request option.
48903
+ * @throws {RequiredError}
48904
+ */
48905
+ adminStoresXStoreIDApiUsageGet(xStoreID: string, startDate?: string, endDate?: string, method?: string, path?: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): AxiosPromise<StoreRouteAPIUsageListResponse> {
48906
+ return localVarFp.adminStoresXStoreIDApiUsageGet(xStoreID, startDate, endDate, method, path, page, perPage, options).then((request) => request(axios, basePath));
48907
+ },
47554
48908
  /**
47555
48909
  * Retrieves the store configuration using x-store ID
47556
48910
  * @summary Get Store Config
@@ -47613,16 +48967,16 @@ export const StoresApiFactory = function (configuration?: Configuration, basePat
47613
48967
  return localVarFp.adminStoresXStoreIDSchemaOptionsGet(xStoreID, options).then((request) => request(axios, basePath));
47614
48968
  },
47615
48969
  /**
47616
- * Perform search on a specific store by xStoreID
48970
+ * Perform search on a specific store by xStoreID. Empty query string returns all results.
47617
48971
  * @summary Get store search results
47618
48972
  * @param {string} xStoreID X-Store ID
47619
- * @param {string} query Search query
48973
+ * @param {string} [query] Search query (empty returns all results)
47620
48974
  * @param {number} [page] Page number
47621
48975
  * @param {number} [pageSize] Page size
47622
48976
  * @param {*} [options] Override http request option.
47623
48977
  * @throws {RequiredError}
47624
48978
  */
47625
- adminStoresXStoreIDSearchGet(xStoreID: string, query: string, page?: number, pageSize?: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesOnboardingTestSearchResponseWrapper> {
48979
+ adminStoresXStoreIDSearchGet(xStoreID: string, query?: string, page?: number, pageSize?: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesOnboardingTestSearchResponseWrapper> {
47626
48980
  return localVarFp.adminStoresXStoreIDSearchGet(xStoreID, query, page, pageSize, options).then((request) => request(axios, basePath));
47627
48981
  },
47628
48982
  /**
@@ -47718,6 +49072,37 @@ export class StoresApi extends BaseAPI {
47718
49072
  return StoresApiFp(this.configuration).adminStoresUpdateStatusIdStatusPut(id, status, options).then((request) => request(this.axios, this.basePath));
47719
49073
  }
47720
49074
 
49075
+ /**
49076
+ * Retrieve detailed information for a specific API usage event including headers, request body, and response body
49077
+ * @summary Get Specific API Usage Event
49078
+ * @param {string} xStoreID Store ID
49079
+ * @param {string} eventID Event ID (UUID)
49080
+ * @param {*} [options] Override http request option.
49081
+ * @throws {RequiredError}
49082
+ * @memberof StoresApi
49083
+ */
49084
+ public adminStoresXStoreIDApiUsageEventIDGet(xStoreID: string, eventID: string, options?: RawAxiosRequestConfig) {
49085
+ return StoresApiFp(this.configuration).adminStoresXStoreIDApiUsageEventIDGet(xStoreID, eventID, options).then((request) => request(this.axios, this.basePath));
49086
+ }
49087
+
49088
+ /**
49089
+ * Retrieve API usage logs for a specific store from ClickHouse with filtering and pagination
49090
+ * @summary Get API Usage Logs for Store
49091
+ * @param {string} xStoreID Store ID
49092
+ * @param {string} [startDate] Start date (ISO 8601 format)
49093
+ * @param {string} [endDate] End date (ISO 8601 format)
49094
+ * @param {string} [method] HTTP method filter
49095
+ * @param {string} [path] Path filter (partial match)
49096
+ * @param {number} [page] Page number (default: 1)
49097
+ * @param {number} [perPage] Results per page (default: 50, max: 1000)
49098
+ * @param {*} [options] Override http request option.
49099
+ * @throws {RequiredError}
49100
+ * @memberof StoresApi
49101
+ */
49102
+ public adminStoresXStoreIDApiUsageGet(xStoreID: string, startDate?: string, endDate?: string, method?: string, path?: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig) {
49103
+ return StoresApiFp(this.configuration).adminStoresXStoreIDApiUsageGet(xStoreID, startDate, endDate, method, path, page, perPage, options).then((request) => request(this.axios, this.basePath));
49104
+ }
49105
+
47721
49106
  /**
47722
49107
  * Retrieves the store configuration using x-store ID
47723
49108
  * @summary Get Store Config
@@ -47792,17 +49177,17 @@ export class StoresApi extends BaseAPI {
47792
49177
  }
47793
49178
 
47794
49179
  /**
47795
- * Perform search on a specific store by xStoreID
49180
+ * Perform search on a specific store by xStoreID. Empty query string returns all results.
47796
49181
  * @summary Get store search results
47797
49182
  * @param {string} xStoreID X-Store ID
47798
- * @param {string} query Search query
49183
+ * @param {string} [query] Search query (empty returns all results)
47799
49184
  * @param {number} [page] Page number
47800
49185
  * @param {number} [pageSize] Page size
47801
49186
  * @param {*} [options] Override http request option.
47802
49187
  * @throws {RequiredError}
47803
49188
  * @memberof StoresApi
47804
49189
  */
47805
- public adminStoresXStoreIDSearchGet(xStoreID: string, query: string, page?: number, pageSize?: number, options?: RawAxiosRequestConfig) {
49190
+ public adminStoresXStoreIDSearchGet(xStoreID: string, query?: string, page?: number, pageSize?: number, options?: RawAxiosRequestConfig) {
47806
49191
  return StoresApiFp(this.configuration).adminStoresXStoreIDSearchGet(xStoreID, query, page, pageSize, options).then((request) => request(this.axios, this.basePath));
47807
49192
  }
47808
49193