@seekora-ai/admin-api 1.0.77 → 1.0.79
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/README.md +41 -14
- package/api.ts +1597 -221
- package/dist/api.d.ts +1087 -80
- package/dist/api.js +774 -166
- package/dist/esm/api.d.ts +1087 -80
- package/dist/esm/api.js +769 -161
- package/package.json +1 -1
- package/seekora-ai-admin-api-1.0.79.tgz +0 -0
- package/seekora-ai-admin-api-1.0.77.tgz +0 -0
package/api.ts
CHANGED
|
@@ -8330,6 +8330,181 @@ export interface DataTypesAutocompleteSuggestion {
|
|
|
8330
8330
|
*/
|
|
8331
8331
|
'text'?: string;
|
|
8332
8332
|
}
|
|
8333
|
+
/**
|
|
8334
|
+
*
|
|
8335
|
+
* @export
|
|
8336
|
+
* @interface DataTypesBillingAlert
|
|
8337
|
+
*/
|
|
8338
|
+
export interface DataTypesBillingAlert {
|
|
8339
|
+
/**
|
|
8340
|
+
*
|
|
8341
|
+
* @type {number}
|
|
8342
|
+
* @memberof DataTypesBillingAlert
|
|
8343
|
+
*/
|
|
8344
|
+
'alert_id'?: number;
|
|
8345
|
+
/**
|
|
8346
|
+
*
|
|
8347
|
+
* @type {string}
|
|
8348
|
+
* @memberof DataTypesBillingAlert
|
|
8349
|
+
*/
|
|
8350
|
+
'alert_type'?: string;
|
|
8351
|
+
/**
|
|
8352
|
+
*
|
|
8353
|
+
* @type {string}
|
|
8354
|
+
* @memberof DataTypesBillingAlert
|
|
8355
|
+
*/
|
|
8356
|
+
'created_at'?: string;
|
|
8357
|
+
/**
|
|
8358
|
+
*
|
|
8359
|
+
* @type {number}
|
|
8360
|
+
* @memberof DataTypesBillingAlert
|
|
8361
|
+
*/
|
|
8362
|
+
'created_by'?: number;
|
|
8363
|
+
/**
|
|
8364
|
+
*
|
|
8365
|
+
* @type {boolean}
|
|
8366
|
+
* @memberof DataTypesBillingAlert
|
|
8367
|
+
*/
|
|
8368
|
+
'is_enabled'?: boolean;
|
|
8369
|
+
/**
|
|
8370
|
+
*
|
|
8371
|
+
* @type {string}
|
|
8372
|
+
* @memberof DataTypesBillingAlert
|
|
8373
|
+
*/
|
|
8374
|
+
'last_triggered'?: string;
|
|
8375
|
+
/**
|
|
8376
|
+
*
|
|
8377
|
+
* @type {Array<string>}
|
|
8378
|
+
* @memberof DataTypesBillingAlert
|
|
8379
|
+
*/
|
|
8380
|
+
'notification_channels'?: Array<string>;
|
|
8381
|
+
/**
|
|
8382
|
+
*
|
|
8383
|
+
* @type {number}
|
|
8384
|
+
* @memberof DataTypesBillingAlert
|
|
8385
|
+
*/
|
|
8386
|
+
'org_id'?: number;
|
|
8387
|
+
/**
|
|
8388
|
+
* \"credits\", \"days\", \"percentage\"
|
|
8389
|
+
* @type {string}
|
|
8390
|
+
* @memberof DataTypesBillingAlert
|
|
8391
|
+
*/
|
|
8392
|
+
'threshold_unit'?: string;
|
|
8393
|
+
/**
|
|
8394
|
+
*
|
|
8395
|
+
* @type {number}
|
|
8396
|
+
* @memberof DataTypesBillingAlert
|
|
8397
|
+
*/
|
|
8398
|
+
'threshold_value'?: number;
|
|
8399
|
+
/**
|
|
8400
|
+
*
|
|
8401
|
+
* @type {string}
|
|
8402
|
+
* @memberof DataTypesBillingAlert
|
|
8403
|
+
*/
|
|
8404
|
+
'updated_at'?: string;
|
|
8405
|
+
}
|
|
8406
|
+
/**
|
|
8407
|
+
*
|
|
8408
|
+
* @export
|
|
8409
|
+
* @interface DataTypesBillingAlertRequest
|
|
8410
|
+
*/
|
|
8411
|
+
export interface DataTypesBillingAlertRequest {
|
|
8412
|
+
/**
|
|
8413
|
+
*
|
|
8414
|
+
* @type {string}
|
|
8415
|
+
* @memberof DataTypesBillingAlertRequest
|
|
8416
|
+
*/
|
|
8417
|
+
'alert_type': DataTypesBillingAlertRequestAlertTypeEnum;
|
|
8418
|
+
/**
|
|
8419
|
+
*
|
|
8420
|
+
* @type {boolean}
|
|
8421
|
+
* @memberof DataTypesBillingAlertRequest
|
|
8422
|
+
*/
|
|
8423
|
+
'is_enabled'?: boolean;
|
|
8424
|
+
/**
|
|
8425
|
+
* \"email\", \"webhook\", \"in_app\"
|
|
8426
|
+
* @type {Array<string>}
|
|
8427
|
+
* @memberof DataTypesBillingAlertRequest
|
|
8428
|
+
*/
|
|
8429
|
+
'notification_channels': Array<string>;
|
|
8430
|
+
/**
|
|
8431
|
+
*
|
|
8432
|
+
* @type {number}
|
|
8433
|
+
* @memberof DataTypesBillingAlertRequest
|
|
8434
|
+
*/
|
|
8435
|
+
'threshold_value': number;
|
|
8436
|
+
}
|
|
8437
|
+
|
|
8438
|
+
export const DataTypesBillingAlertRequestAlertTypeEnum = {
|
|
8439
|
+
LowBalance: 'low_balance',
|
|
8440
|
+
ExpiringCredits: 'expiring_credits',
|
|
8441
|
+
DaysRemaining: 'days_remaining'
|
|
8442
|
+
} as const;
|
|
8443
|
+
|
|
8444
|
+
export type DataTypesBillingAlertRequestAlertTypeEnum = typeof DataTypesBillingAlertRequestAlertTypeEnum[keyof typeof DataTypesBillingAlertRequestAlertTypeEnum];
|
|
8445
|
+
|
|
8446
|
+
/**
|
|
8447
|
+
*
|
|
8448
|
+
* @export
|
|
8449
|
+
* @interface DataTypesBillingAlertsResponse
|
|
8450
|
+
*/
|
|
8451
|
+
export interface DataTypesBillingAlertsResponse {
|
|
8452
|
+
/**
|
|
8453
|
+
*
|
|
8454
|
+
* @type {Array<DataTypesBillingAlert>}
|
|
8455
|
+
* @memberof DataTypesBillingAlertsResponse
|
|
8456
|
+
*/
|
|
8457
|
+
'alerts'?: Array<DataTypesBillingAlert>;
|
|
8458
|
+
/**
|
|
8459
|
+
*
|
|
8460
|
+
* @type {number}
|
|
8461
|
+
* @memberof DataTypesBillingAlertsResponse
|
|
8462
|
+
*/
|
|
8463
|
+
'total'?: number;
|
|
8464
|
+
}
|
|
8465
|
+
/**
|
|
8466
|
+
*
|
|
8467
|
+
* @export
|
|
8468
|
+
* @interface DataTypesBillingOverviewResponse
|
|
8469
|
+
*/
|
|
8470
|
+
export interface DataTypesBillingOverviewResponse {
|
|
8471
|
+
/**
|
|
8472
|
+
* Credit Balance Information
|
|
8473
|
+
* @type {DataTypesCreditBalanceInfo}
|
|
8474
|
+
* @memberof DataTypesBillingOverviewResponse
|
|
8475
|
+
*/
|
|
8476
|
+
'credit_balance'?: DataTypesCreditBalanceInfo;
|
|
8477
|
+
/**
|
|
8478
|
+
*
|
|
8479
|
+
* @type {string}
|
|
8480
|
+
* @memberof DataTypesBillingOverviewResponse
|
|
8481
|
+
*/
|
|
8482
|
+
'currency'?: string;
|
|
8483
|
+
/**
|
|
8484
|
+
* Current Plan Information
|
|
8485
|
+
* @type {DataTypesCurrentPlanInfo}
|
|
8486
|
+
* @memberof DataTypesBillingOverviewResponse
|
|
8487
|
+
*/
|
|
8488
|
+
'current_plan'?: DataTypesCurrentPlanInfo;
|
|
8489
|
+
/**
|
|
8490
|
+
*
|
|
8491
|
+
* @type {DataTypesNextChargeInfo}
|
|
8492
|
+
* @memberof DataTypesBillingOverviewResponse
|
|
8493
|
+
*/
|
|
8494
|
+
'next_charge'?: DataTypesNextChargeInfo;
|
|
8495
|
+
/**
|
|
8496
|
+
* Projected Usage
|
|
8497
|
+
* @type {DataTypesProjectedRunoutInfo}
|
|
8498
|
+
* @memberof DataTypesBillingOverviewResponse
|
|
8499
|
+
*/
|
|
8500
|
+
'projected_runout'?: DataTypesProjectedRunoutInfo;
|
|
8501
|
+
/**
|
|
8502
|
+
* Summary Stats
|
|
8503
|
+
* @type {number}
|
|
8504
|
+
* @memberof DataTypesBillingOverviewResponse
|
|
8505
|
+
*/
|
|
8506
|
+
'total_spent'?: number;
|
|
8507
|
+
}
|
|
8333
8508
|
/**
|
|
8334
8509
|
*
|
|
8335
8510
|
* @export
|
|
@@ -9004,6 +9179,12 @@ export interface DataTypesCreatePaymentOrderRequest {
|
|
|
9004
9179
|
* @memberof DataTypesCreatePaymentOrderRequest
|
|
9005
9180
|
*/
|
|
9006
9181
|
'currency': string;
|
|
9182
|
+
/**
|
|
9183
|
+
* Existing Razorpay customer ID
|
|
9184
|
+
* @type {string}
|
|
9185
|
+
* @memberof DataTypesCreatePaymentOrderRequest
|
|
9186
|
+
*/
|
|
9187
|
+
'customer_id'?: string;
|
|
9007
9188
|
/**
|
|
9008
9189
|
*
|
|
9009
9190
|
* @type {DataTypesCustomerInfoDto}
|
|
@@ -9064,6 +9245,12 @@ export interface DataTypesCreatePaymentOrderRequest {
|
|
|
9064
9245
|
* @memberof DataTypesCreatePaymentOrderRequest
|
|
9065
9246
|
*/
|
|
9066
9247
|
'return_url'?: string;
|
|
9248
|
+
/**
|
|
9249
|
+
* Fields for card tokenization
|
|
9250
|
+
* @type {boolean}
|
|
9251
|
+
* @memberof DataTypesCreatePaymentOrderRequest
|
|
9252
|
+
*/
|
|
9253
|
+
'save_card'?: boolean;
|
|
9067
9254
|
/**
|
|
9068
9255
|
* Required for generic payments
|
|
9069
9256
|
* @type {number}
|
|
@@ -9104,6 +9291,12 @@ export interface DataTypesCreatePaymentOrderResponse {
|
|
|
9104
9291
|
* @memberof DataTypesCreatePaymentOrderResponse
|
|
9105
9292
|
*/
|
|
9106
9293
|
'currency'?: string;
|
|
9294
|
+
/**
|
|
9295
|
+
* Razorpay customer ID for tokenization
|
|
9296
|
+
* @type {string}
|
|
9297
|
+
* @memberof DataTypesCreatePaymentOrderResponse
|
|
9298
|
+
*/
|
|
9299
|
+
'customer_id'?: string;
|
|
9107
9300
|
/**
|
|
9108
9301
|
* Customer prefill data for frontend
|
|
9109
9302
|
* @type {{ [key: string]: any; }}
|
|
@@ -9999,6 +10192,31 @@ export interface DataTypesCreditBalance {
|
|
|
9999
10192
|
*/
|
|
10000
10193
|
'store_id'?: number;
|
|
10001
10194
|
}
|
|
10195
|
+
/**
|
|
10196
|
+
*
|
|
10197
|
+
* @export
|
|
10198
|
+
* @interface DataTypesCreditBalanceInfo
|
|
10199
|
+
*/
|
|
10200
|
+
export interface DataTypesCreditBalanceInfo {
|
|
10201
|
+
/**
|
|
10202
|
+
*
|
|
10203
|
+
* @type {string}
|
|
10204
|
+
* @memberof DataTypesCreditBalanceInfo
|
|
10205
|
+
*/
|
|
10206
|
+
'earliest_expiry'?: string;
|
|
10207
|
+
/**
|
|
10208
|
+
*
|
|
10209
|
+
* @type {Array<DataTypesExpiringCreditBatch>}
|
|
10210
|
+
* @memberof DataTypesCreditBalanceInfo
|
|
10211
|
+
*/
|
|
10212
|
+
'expiring_credits'?: Array<DataTypesExpiringCreditBatch>;
|
|
10213
|
+
/**
|
|
10214
|
+
*
|
|
10215
|
+
* @type {number}
|
|
10216
|
+
* @memberof DataTypesCreditBalanceInfo
|
|
10217
|
+
*/
|
|
10218
|
+
'total_credits'?: number;
|
|
10219
|
+
}
|
|
10002
10220
|
/**
|
|
10003
10221
|
*
|
|
10004
10222
|
* @export
|
|
@@ -10351,6 +10569,61 @@ export const DataTypesCreditTransactionTransactionTypeEnum = {
|
|
|
10351
10569
|
|
|
10352
10570
|
export type DataTypesCreditTransactionTransactionTypeEnum = typeof DataTypesCreditTransactionTransactionTypeEnum[keyof typeof DataTypesCreditTransactionTransactionTypeEnum];
|
|
10353
10571
|
|
|
10572
|
+
/**
|
|
10573
|
+
*
|
|
10574
|
+
* @export
|
|
10575
|
+
* @interface DataTypesCurrentPlanInfo
|
|
10576
|
+
*/
|
|
10577
|
+
export interface DataTypesCurrentPlanInfo {
|
|
10578
|
+
/**
|
|
10579
|
+
*
|
|
10580
|
+
* @type {boolean}
|
|
10581
|
+
* @memberof DataTypesCurrentPlanInfo
|
|
10582
|
+
*/
|
|
10583
|
+
'auto_renewal'?: boolean;
|
|
10584
|
+
/**
|
|
10585
|
+
* \"monthly\", \"annual\", \"one-time\"
|
|
10586
|
+
* @type {string}
|
|
10587
|
+
* @memberof DataTypesCurrentPlanInfo
|
|
10588
|
+
*/
|
|
10589
|
+
'billing_cycle'?: string;
|
|
10590
|
+
/**
|
|
10591
|
+
*
|
|
10592
|
+
* @type {string}
|
|
10593
|
+
* @memberof DataTypesCurrentPlanInfo
|
|
10594
|
+
*/
|
|
10595
|
+
'end_date'?: string;
|
|
10596
|
+
/**
|
|
10597
|
+
*
|
|
10598
|
+
* @type {number}
|
|
10599
|
+
* @memberof DataTypesCurrentPlanInfo
|
|
10600
|
+
*/
|
|
10601
|
+
'plan_id'?: number;
|
|
10602
|
+
/**
|
|
10603
|
+
*
|
|
10604
|
+
* @type {string}
|
|
10605
|
+
* @memberof DataTypesCurrentPlanInfo
|
|
10606
|
+
*/
|
|
10607
|
+
'plan_name'?: string;
|
|
10608
|
+
/**
|
|
10609
|
+
* \"subscription\" or \"credit\"
|
|
10610
|
+
* @type {string}
|
|
10611
|
+
* @memberof DataTypesCurrentPlanInfo
|
|
10612
|
+
*/
|
|
10613
|
+
'plan_type'?: string;
|
|
10614
|
+
/**
|
|
10615
|
+
*
|
|
10616
|
+
* @type {string}
|
|
10617
|
+
* @memberof DataTypesCurrentPlanInfo
|
|
10618
|
+
*/
|
|
10619
|
+
'start_date'?: string;
|
|
10620
|
+
/**
|
|
10621
|
+
* \"active\", \"cancelled\", \"expired\"
|
|
10622
|
+
* @type {string}
|
|
10623
|
+
* @memberof DataTypesCurrentPlanInfo
|
|
10624
|
+
*/
|
|
10625
|
+
'status'?: string;
|
|
10626
|
+
}
|
|
10354
10627
|
/**
|
|
10355
10628
|
*
|
|
10356
10629
|
* @export
|
|
@@ -11139,6 +11412,49 @@ export interface DataTypesExpirationWarningDto {
|
|
|
11139
11412
|
*/
|
|
11140
11413
|
'recommended_action'?: string;
|
|
11141
11414
|
}
|
|
11415
|
+
/**
|
|
11416
|
+
*
|
|
11417
|
+
* @export
|
|
11418
|
+
* @interface DataTypesExpiringCreditBatch
|
|
11419
|
+
*/
|
|
11420
|
+
export interface DataTypesExpiringCreditBatch {
|
|
11421
|
+
/**
|
|
11422
|
+
*
|
|
11423
|
+
* @type {string}
|
|
11424
|
+
* @memberof DataTypesExpiringCreditBatch
|
|
11425
|
+
*/
|
|
11426
|
+
'credit_type'?: string;
|
|
11427
|
+
/**
|
|
11428
|
+
*
|
|
11429
|
+
* @type {number}
|
|
11430
|
+
* @memberof DataTypesExpiringCreditBatch
|
|
11431
|
+
*/
|
|
11432
|
+
'credits'?: number;
|
|
11433
|
+
/**
|
|
11434
|
+
*
|
|
11435
|
+
* @type {number}
|
|
11436
|
+
* @memberof DataTypesExpiringCreditBatch
|
|
11437
|
+
*/
|
|
11438
|
+
'days_until_expiry'?: number;
|
|
11439
|
+
/**
|
|
11440
|
+
*
|
|
11441
|
+
* @type {string}
|
|
11442
|
+
* @memberof DataTypesExpiringCreditBatch
|
|
11443
|
+
*/
|
|
11444
|
+
'expires_at'?: string;
|
|
11445
|
+
/**
|
|
11446
|
+
*
|
|
11447
|
+
* @type {number}
|
|
11448
|
+
* @memberof DataTypesExpiringCreditBatch
|
|
11449
|
+
*/
|
|
11450
|
+
'ledger_id'?: number;
|
|
11451
|
+
/**
|
|
11452
|
+
*
|
|
11453
|
+
* @type {string}
|
|
11454
|
+
* @memberof DataTypesExpiringCreditBatch
|
|
11455
|
+
*/
|
|
11456
|
+
'purchase_date'?: string;
|
|
11457
|
+
}
|
|
11142
11458
|
/**
|
|
11143
11459
|
*
|
|
11144
11460
|
* @export
|
|
@@ -11375,6 +11691,31 @@ export interface DataTypesGatewayListResponse {
|
|
|
11375
11691
|
*/
|
|
11376
11692
|
'gateways'?: Array<DataTypesGatewayInfo>;
|
|
11377
11693
|
}
|
|
11694
|
+
/**
|
|
11695
|
+
*
|
|
11696
|
+
* @export
|
|
11697
|
+
* @interface DataTypesGenericResponseAny
|
|
11698
|
+
*/
|
|
11699
|
+
export interface DataTypesGenericResponseAny {
|
|
11700
|
+
/**
|
|
11701
|
+
*
|
|
11702
|
+
* @type {any}
|
|
11703
|
+
* @memberof DataTypesGenericResponseAny
|
|
11704
|
+
*/
|
|
11705
|
+
'data'?: any;
|
|
11706
|
+
/**
|
|
11707
|
+
*
|
|
11708
|
+
* @type {string}
|
|
11709
|
+
* @memberof DataTypesGenericResponseAny
|
|
11710
|
+
*/
|
|
11711
|
+
'message'?: string;
|
|
11712
|
+
/**
|
|
11713
|
+
*
|
|
11714
|
+
* @type {number}
|
|
11715
|
+
* @memberof DataTypesGenericResponseAny
|
|
11716
|
+
*/
|
|
11717
|
+
'status'?: number;
|
|
11718
|
+
}
|
|
11378
11719
|
/**
|
|
11379
11720
|
*
|
|
11380
11721
|
* @export
|
|
@@ -11628,82 +11969,157 @@ export interface DataTypesGenericResponseBillingServiceBillingOverview {
|
|
|
11628
11969
|
/**
|
|
11629
11970
|
*
|
|
11630
11971
|
* @export
|
|
11631
|
-
* @interface
|
|
11972
|
+
* @interface DataTypesGenericResponseDataTypesBillingAlert
|
|
11632
11973
|
*/
|
|
11633
|
-
export interface
|
|
11974
|
+
export interface DataTypesGenericResponseDataTypesBillingAlert {
|
|
11634
11975
|
/**
|
|
11635
11976
|
*
|
|
11636
|
-
* @type {
|
|
11637
|
-
* @memberof
|
|
11977
|
+
* @type {DataTypesBillingAlert}
|
|
11978
|
+
* @memberof DataTypesGenericResponseDataTypesBillingAlert
|
|
11638
11979
|
*/
|
|
11639
|
-
'data'?:
|
|
11980
|
+
'data'?: DataTypesBillingAlert;
|
|
11640
11981
|
/**
|
|
11641
11982
|
*
|
|
11642
11983
|
* @type {string}
|
|
11643
|
-
* @memberof
|
|
11984
|
+
* @memberof DataTypesGenericResponseDataTypesBillingAlert
|
|
11644
11985
|
*/
|
|
11645
11986
|
'message'?: string;
|
|
11646
11987
|
/**
|
|
11647
11988
|
*
|
|
11648
11989
|
* @type {number}
|
|
11649
|
-
* @memberof
|
|
11990
|
+
* @memberof DataTypesGenericResponseDataTypesBillingAlert
|
|
11650
11991
|
*/
|
|
11651
11992
|
'status'?: number;
|
|
11652
11993
|
}
|
|
11653
11994
|
/**
|
|
11654
11995
|
*
|
|
11655
11996
|
* @export
|
|
11656
|
-
* @interface
|
|
11997
|
+
* @interface DataTypesGenericResponseDataTypesBillingAlertsResponse
|
|
11657
11998
|
*/
|
|
11658
|
-
export interface
|
|
11999
|
+
export interface DataTypesGenericResponseDataTypesBillingAlertsResponse {
|
|
11659
12000
|
/**
|
|
11660
12001
|
*
|
|
11661
|
-
* @type {
|
|
11662
|
-
* @memberof
|
|
12002
|
+
* @type {DataTypesBillingAlertsResponse}
|
|
12003
|
+
* @memberof DataTypesGenericResponseDataTypesBillingAlertsResponse
|
|
11663
12004
|
*/
|
|
11664
|
-
'data'?:
|
|
12005
|
+
'data'?: DataTypesBillingAlertsResponse;
|
|
11665
12006
|
/**
|
|
11666
12007
|
*
|
|
11667
12008
|
* @type {string}
|
|
11668
|
-
* @memberof
|
|
12009
|
+
* @memberof DataTypesGenericResponseDataTypesBillingAlertsResponse
|
|
11669
12010
|
*/
|
|
11670
12011
|
'message'?: string;
|
|
11671
12012
|
/**
|
|
11672
12013
|
*
|
|
11673
12014
|
* @type {number}
|
|
11674
|
-
* @memberof
|
|
12015
|
+
* @memberof DataTypesGenericResponseDataTypesBillingAlertsResponse
|
|
11675
12016
|
*/
|
|
11676
12017
|
'status'?: number;
|
|
11677
12018
|
}
|
|
11678
12019
|
/**
|
|
11679
12020
|
*
|
|
11680
12021
|
* @export
|
|
11681
|
-
* @interface
|
|
12022
|
+
* @interface DataTypesGenericResponseDataTypesBillingOverviewResponse
|
|
11682
12023
|
*/
|
|
11683
|
-
export interface
|
|
12024
|
+
export interface DataTypesGenericResponseDataTypesBillingOverviewResponse {
|
|
11684
12025
|
/**
|
|
11685
12026
|
*
|
|
11686
|
-
* @type {
|
|
11687
|
-
* @memberof
|
|
12027
|
+
* @type {DataTypesBillingOverviewResponse}
|
|
12028
|
+
* @memberof DataTypesGenericResponseDataTypesBillingOverviewResponse
|
|
11688
12029
|
*/
|
|
11689
|
-
'data'?:
|
|
12030
|
+
'data'?: DataTypesBillingOverviewResponse;
|
|
11690
12031
|
/**
|
|
11691
12032
|
*
|
|
11692
12033
|
* @type {string}
|
|
11693
|
-
* @memberof
|
|
12034
|
+
* @memberof DataTypesGenericResponseDataTypesBillingOverviewResponse
|
|
11694
12035
|
*/
|
|
11695
12036
|
'message'?: string;
|
|
11696
12037
|
/**
|
|
11697
12038
|
*
|
|
11698
12039
|
* @type {number}
|
|
11699
|
-
* @memberof
|
|
12040
|
+
* @memberof DataTypesGenericResponseDataTypesBillingOverviewResponse
|
|
11700
12041
|
*/
|
|
11701
12042
|
'status'?: number;
|
|
11702
12043
|
}
|
|
11703
12044
|
/**
|
|
11704
12045
|
*
|
|
11705
12046
|
* @export
|
|
11706
|
-
* @interface
|
|
12047
|
+
* @interface DataTypesGenericResponseDataTypesConsumptionHistoryResponse
|
|
12048
|
+
*/
|
|
12049
|
+
export interface DataTypesGenericResponseDataTypesConsumptionHistoryResponse {
|
|
12050
|
+
/**
|
|
12051
|
+
*
|
|
12052
|
+
* @type {DataTypesConsumptionHistoryResponse}
|
|
12053
|
+
* @memberof DataTypesGenericResponseDataTypesConsumptionHistoryResponse
|
|
12054
|
+
*/
|
|
12055
|
+
'data'?: DataTypesConsumptionHistoryResponse;
|
|
12056
|
+
/**
|
|
12057
|
+
*
|
|
12058
|
+
* @type {string}
|
|
12059
|
+
* @memberof DataTypesGenericResponseDataTypesConsumptionHistoryResponse
|
|
12060
|
+
*/
|
|
12061
|
+
'message'?: string;
|
|
12062
|
+
/**
|
|
12063
|
+
*
|
|
12064
|
+
* @type {number}
|
|
12065
|
+
* @memberof DataTypesGenericResponseDataTypesConsumptionHistoryResponse
|
|
12066
|
+
*/
|
|
12067
|
+
'status'?: number;
|
|
12068
|
+
}
|
|
12069
|
+
/**
|
|
12070
|
+
*
|
|
12071
|
+
* @export
|
|
12072
|
+
* @interface DataTypesGenericResponseDataTypesCreditAdjustmentResponse
|
|
12073
|
+
*/
|
|
12074
|
+
export interface DataTypesGenericResponseDataTypesCreditAdjustmentResponse {
|
|
12075
|
+
/**
|
|
12076
|
+
*
|
|
12077
|
+
* @type {DataTypesCreditAdjustmentResponse}
|
|
12078
|
+
* @memberof DataTypesGenericResponseDataTypesCreditAdjustmentResponse
|
|
12079
|
+
*/
|
|
12080
|
+
'data'?: DataTypesCreditAdjustmentResponse;
|
|
12081
|
+
/**
|
|
12082
|
+
*
|
|
12083
|
+
* @type {string}
|
|
12084
|
+
* @memberof DataTypesGenericResponseDataTypesCreditAdjustmentResponse
|
|
12085
|
+
*/
|
|
12086
|
+
'message'?: string;
|
|
12087
|
+
/**
|
|
12088
|
+
*
|
|
12089
|
+
* @type {number}
|
|
12090
|
+
* @memberof DataTypesGenericResponseDataTypesCreditAdjustmentResponse
|
|
12091
|
+
*/
|
|
12092
|
+
'status'?: number;
|
|
12093
|
+
}
|
|
12094
|
+
/**
|
|
12095
|
+
*
|
|
12096
|
+
* @export
|
|
12097
|
+
* @interface DataTypesGenericResponseDataTypesCreditBalance
|
|
12098
|
+
*/
|
|
12099
|
+
export interface DataTypesGenericResponseDataTypesCreditBalance {
|
|
12100
|
+
/**
|
|
12101
|
+
*
|
|
12102
|
+
* @type {DataTypesCreditBalance}
|
|
12103
|
+
* @memberof DataTypesGenericResponseDataTypesCreditBalance
|
|
12104
|
+
*/
|
|
12105
|
+
'data'?: DataTypesCreditBalance;
|
|
12106
|
+
/**
|
|
12107
|
+
*
|
|
12108
|
+
* @type {string}
|
|
12109
|
+
* @memberof DataTypesGenericResponseDataTypesCreditBalance
|
|
12110
|
+
*/
|
|
12111
|
+
'message'?: string;
|
|
12112
|
+
/**
|
|
12113
|
+
*
|
|
12114
|
+
* @type {number}
|
|
12115
|
+
* @memberof DataTypesGenericResponseDataTypesCreditBalance
|
|
12116
|
+
*/
|
|
12117
|
+
'status'?: number;
|
|
12118
|
+
}
|
|
12119
|
+
/**
|
|
12120
|
+
*
|
|
12121
|
+
* @export
|
|
12122
|
+
* @interface DataTypesGenericResponseDataTypesCreditConsumptionResult
|
|
11707
12123
|
*/
|
|
11708
12124
|
export interface DataTypesGenericResponseDataTypesCreditConsumptionResult {
|
|
11709
12125
|
/**
|
|
@@ -11925,6 +12341,31 @@ export interface DataTypesGenericResponseDataTypesRegenerateXStoreSecretResponse
|
|
|
11925
12341
|
*/
|
|
11926
12342
|
'status'?: number;
|
|
11927
12343
|
}
|
|
12344
|
+
/**
|
|
12345
|
+
*
|
|
12346
|
+
* @export
|
|
12347
|
+
* @interface DataTypesGenericResponseDataTypesSavedCardsResponse
|
|
12348
|
+
*/
|
|
12349
|
+
export interface DataTypesGenericResponseDataTypesSavedCardsResponse {
|
|
12350
|
+
/**
|
|
12351
|
+
*
|
|
12352
|
+
* @type {DataTypesSavedCardsResponse}
|
|
12353
|
+
* @memberof DataTypesGenericResponseDataTypesSavedCardsResponse
|
|
12354
|
+
*/
|
|
12355
|
+
'data'?: DataTypesSavedCardsResponse;
|
|
12356
|
+
/**
|
|
12357
|
+
*
|
|
12358
|
+
* @type {string}
|
|
12359
|
+
* @memberof DataTypesGenericResponseDataTypesSavedCardsResponse
|
|
12360
|
+
*/
|
|
12361
|
+
'message'?: string;
|
|
12362
|
+
/**
|
|
12363
|
+
*
|
|
12364
|
+
* @type {number}
|
|
12365
|
+
* @memberof DataTypesGenericResponseDataTypesSavedCardsResponse
|
|
12366
|
+
*/
|
|
12367
|
+
'status'?: number;
|
|
12368
|
+
}
|
|
11928
12369
|
/**
|
|
11929
12370
|
*
|
|
11930
12371
|
* @export
|
|
@@ -13531,6 +13972,43 @@ export interface DataTypesNewsLetterRequestsListResponse {
|
|
|
13531
13972
|
*/
|
|
13532
13973
|
'status'?: number;
|
|
13533
13974
|
}
|
|
13975
|
+
/**
|
|
13976
|
+
*
|
|
13977
|
+
* @export
|
|
13978
|
+
* @interface DataTypesNextChargeInfo
|
|
13979
|
+
*/
|
|
13980
|
+
export interface DataTypesNextChargeInfo {
|
|
13981
|
+
/**
|
|
13982
|
+
*
|
|
13983
|
+
* @type {number}
|
|
13984
|
+
* @memberof DataTypesNextChargeInfo
|
|
13985
|
+
*/
|
|
13986
|
+
'amount'?: number;
|
|
13987
|
+
/**
|
|
13988
|
+
*
|
|
13989
|
+
* @type {string}
|
|
13990
|
+
* @memberof DataTypesNextChargeInfo
|
|
13991
|
+
*/
|
|
13992
|
+
'charge_date'?: string;
|
|
13993
|
+
/**
|
|
13994
|
+
*
|
|
13995
|
+
* @type {string}
|
|
13996
|
+
* @memberof DataTypesNextChargeInfo
|
|
13997
|
+
*/
|
|
13998
|
+
'currency'?: string;
|
|
13999
|
+
/**
|
|
14000
|
+
*
|
|
14001
|
+
* @type {string}
|
|
14002
|
+
* @memberof DataTypesNextChargeInfo
|
|
14003
|
+
*/
|
|
14004
|
+
'description'?: string;
|
|
14005
|
+
/**
|
|
14006
|
+
*
|
|
14007
|
+
* @type {number}
|
|
14008
|
+
* @memberof DataTypesNextChargeInfo
|
|
14009
|
+
*/
|
|
14010
|
+
'subscription_id'?: number;
|
|
14011
|
+
}
|
|
13534
14012
|
/**
|
|
13535
14013
|
*
|
|
13536
14014
|
* @export
|
|
@@ -15011,6 +15489,37 @@ export interface DataTypesProfileResponseWrapper {
|
|
|
15011
15489
|
*/
|
|
15012
15490
|
'status'?: number;
|
|
15013
15491
|
}
|
|
15492
|
+
/**
|
|
15493
|
+
*
|
|
15494
|
+
* @export
|
|
15495
|
+
* @interface DataTypesProjectedRunoutInfo
|
|
15496
|
+
*/
|
|
15497
|
+
export interface DataTypesProjectedRunoutInfo {
|
|
15498
|
+
/**
|
|
15499
|
+
*
|
|
15500
|
+
* @type {number}
|
|
15501
|
+
* @memberof DataTypesProjectedRunoutInfo
|
|
15502
|
+
*/
|
|
15503
|
+
'average_daily_consumption'?: number;
|
|
15504
|
+
/**
|
|
15505
|
+
*
|
|
15506
|
+
* @type {number}
|
|
15507
|
+
* @memberof DataTypesProjectedRunoutInfo
|
|
15508
|
+
*/
|
|
15509
|
+
'days_remaining'?: number;
|
|
15510
|
+
/**
|
|
15511
|
+
*
|
|
15512
|
+
* @type {string}
|
|
15513
|
+
* @memberof DataTypesProjectedRunoutInfo
|
|
15514
|
+
*/
|
|
15515
|
+
'projected_runout_date'?: string;
|
|
15516
|
+
/**
|
|
15517
|
+
* \"critical\", \"warning\", \"normal\"
|
|
15518
|
+
* @type {string}
|
|
15519
|
+
* @memberof DataTypesProjectedRunoutInfo
|
|
15520
|
+
*/
|
|
15521
|
+
'warning_level'?: string;
|
|
15522
|
+
}
|
|
15014
15523
|
/**
|
|
15015
15524
|
*
|
|
15016
15525
|
* @export
|
|
@@ -16486,6 +16995,110 @@ export interface DataTypesSampleDatasetsResponseWrapper {
|
|
|
16486
16995
|
*/
|
|
16487
16996
|
'status'?: number;
|
|
16488
16997
|
}
|
|
16998
|
+
/**
|
|
16999
|
+
*
|
|
17000
|
+
* @export
|
|
17001
|
+
* @interface DataTypesSavedCard
|
|
17002
|
+
*/
|
|
17003
|
+
export interface DataTypesSavedCard {
|
|
17004
|
+
/**
|
|
17005
|
+
* \"Visa\", \"Mastercard\", etc.
|
|
17006
|
+
* @type {string}
|
|
17007
|
+
* @memberof DataTypesSavedCard
|
|
17008
|
+
*/
|
|
17009
|
+
'card_network'?: string;
|
|
17010
|
+
/**
|
|
17011
|
+
* Masked, e.g., \"XXXX XXXX XXXX 1234\"
|
|
17012
|
+
* @type {string}
|
|
17013
|
+
* @memberof DataTypesSavedCard
|
|
17014
|
+
*/
|
|
17015
|
+
'card_number'?: string;
|
|
17016
|
+
/**
|
|
17017
|
+
* \"credit\", \"debit\"
|
|
17018
|
+
* @type {string}
|
|
17019
|
+
* @memberof DataTypesSavedCard
|
|
17020
|
+
*/
|
|
17021
|
+
'card_type'?: string;
|
|
17022
|
+
/**
|
|
17023
|
+
*
|
|
17024
|
+
* @type {string}
|
|
17025
|
+
* @memberof DataTypesSavedCard
|
|
17026
|
+
*/
|
|
17027
|
+
'created_at'?: string;
|
|
17028
|
+
/**
|
|
17029
|
+
*
|
|
17030
|
+
* @type {string}
|
|
17031
|
+
* @memberof DataTypesSavedCard
|
|
17032
|
+
*/
|
|
17033
|
+
'expiry_month'?: string;
|
|
17034
|
+
/**
|
|
17035
|
+
*
|
|
17036
|
+
* @type {string}
|
|
17037
|
+
* @memberof DataTypesSavedCard
|
|
17038
|
+
*/
|
|
17039
|
+
'expiry_year'?: string;
|
|
17040
|
+
/**
|
|
17041
|
+
*
|
|
17042
|
+
* @type {boolean}
|
|
17043
|
+
* @memberof DataTypesSavedCard
|
|
17044
|
+
*/
|
|
17045
|
+
'is_default'?: boolean;
|
|
17046
|
+
/**
|
|
17047
|
+
*
|
|
17048
|
+
* @type {boolean}
|
|
17049
|
+
* @memberof DataTypesSavedCard
|
|
17050
|
+
*/
|
|
17051
|
+
'is_expired'?: boolean;
|
|
17052
|
+
/**
|
|
17053
|
+
*
|
|
17054
|
+
* @type {string}
|
|
17055
|
+
* @memberof DataTypesSavedCard
|
|
17056
|
+
*/
|
|
17057
|
+
'issuer'?: string;
|
|
17058
|
+
/**
|
|
17059
|
+
*
|
|
17060
|
+
* @type {string}
|
|
17061
|
+
* @memberof DataTypesSavedCard
|
|
17062
|
+
*/
|
|
17063
|
+
'last_used_at'?: string;
|
|
17064
|
+
/**
|
|
17065
|
+
*
|
|
17066
|
+
* @type {{ [key: string]: any; }}
|
|
17067
|
+
* @memberof DataTypesSavedCard
|
|
17068
|
+
*/
|
|
17069
|
+
'metadata'?: { [key: string]: any; };
|
|
17070
|
+
/**
|
|
17071
|
+
*
|
|
17072
|
+
* @type {string}
|
|
17073
|
+
* @memberof DataTypesSavedCard
|
|
17074
|
+
*/
|
|
17075
|
+
'token_id'?: string;
|
|
17076
|
+
}
|
|
17077
|
+
/**
|
|
17078
|
+
*
|
|
17079
|
+
* @export
|
|
17080
|
+
* @interface DataTypesSavedCardsResponse
|
|
17081
|
+
*/
|
|
17082
|
+
export interface DataTypesSavedCardsResponse {
|
|
17083
|
+
/**
|
|
17084
|
+
*
|
|
17085
|
+
* @type {Array<DataTypesSavedCard>}
|
|
17086
|
+
* @memberof DataTypesSavedCardsResponse
|
|
17087
|
+
*/
|
|
17088
|
+
'cards'?: Array<DataTypesSavedCard>;
|
|
17089
|
+
/**
|
|
17090
|
+
*
|
|
17091
|
+
* @type {string}
|
|
17092
|
+
* @memberof DataTypesSavedCardsResponse
|
|
17093
|
+
*/
|
|
17094
|
+
'customer_id'?: string;
|
|
17095
|
+
/**
|
|
17096
|
+
*
|
|
17097
|
+
* @type {number}
|
|
17098
|
+
* @memberof DataTypesSavedCardsResponse
|
|
17099
|
+
*/
|
|
17100
|
+
'total_cards'?: number;
|
|
17101
|
+
}
|
|
16489
17102
|
/**
|
|
16490
17103
|
*
|
|
16491
17104
|
* @export
|
|
@@ -16655,53 +17268,164 @@ export interface DataTypesSearchResultResponse {
|
|
|
16655
17268
|
'status'?: number;
|
|
16656
17269
|
}
|
|
16657
17270
|
/**
|
|
16658
|
-
*
|
|
17271
|
+
* Individual item from Typesense collection that can be pinned/hidden in rules (same structure as admin search API)
|
|
16659
17272
|
* @export
|
|
16660
|
-
* @interface
|
|
17273
|
+
* @interface DataTypesSearchRuleItem
|
|
16661
17274
|
*/
|
|
16662
|
-
export interface
|
|
17275
|
+
export interface DataTypesSearchRuleItem {
|
|
16663
17276
|
/**
|
|
16664
|
-
*
|
|
16665
|
-
* @type {string}
|
|
16666
|
-
* @memberof
|
|
17277
|
+
* Full document data for reference
|
|
17278
|
+
* @type {{ [key: string]: any; }}
|
|
17279
|
+
* @memberof DataTypesSearchRuleItem
|
|
16667
17280
|
*/
|
|
16668
|
-
'
|
|
17281
|
+
'document'?: { [key: string]: any; };
|
|
16669
17282
|
/**
|
|
16670
|
-
*
|
|
16671
|
-
* @type {string}
|
|
16672
|
-
* @memberof
|
|
17283
|
+
* Search highlights
|
|
17284
|
+
* @type {{ [key: string]: any; }}
|
|
17285
|
+
* @memberof DataTypesSearchRuleItem
|
|
16673
17286
|
*/
|
|
16674
|
-
'
|
|
17287
|
+
'highlight'?: { [key: string]: any; };
|
|
16675
17288
|
/**
|
|
16676
|
-
*
|
|
17289
|
+
* Document ID (required for pin/hide)
|
|
16677
17290
|
* @type {string}
|
|
16678
|
-
* @memberof
|
|
17291
|
+
* @memberof DataTypesSearchRuleItem
|
|
16679
17292
|
*/
|
|
16680
|
-
'
|
|
17293
|
+
'id'?: string;
|
|
16681
17294
|
/**
|
|
16682
|
-
*
|
|
16683
|
-
* @type {
|
|
16684
|
-
* @memberof
|
|
17295
|
+
* Relevance score
|
|
17296
|
+
* @type {number}
|
|
17297
|
+
* @memberof DataTypesSearchRuleItem
|
|
16685
17298
|
*/
|
|
16686
|
-
'
|
|
17299
|
+
'score'?: number;
|
|
16687
17300
|
/**
|
|
16688
|
-
*
|
|
16689
|
-
* @type {
|
|
16690
|
-
* @memberof
|
|
17301
|
+
* Widget display data (same as admin search API)
|
|
17302
|
+
* @type {DataTypesWidgetSearchResult}
|
|
17303
|
+
* @memberof DataTypesSearchRuleItem
|
|
16691
17304
|
*/
|
|
16692
|
-
'
|
|
17305
|
+
'widget'?: DataTypesWidgetSearchResult;
|
|
17306
|
+
}
|
|
17307
|
+
/**
|
|
17308
|
+
* Request parameters for searching items in the store\'s Typesense collection
|
|
17309
|
+
* @export
|
|
17310
|
+
* @interface DataTypesSearchRuleItemsRequest
|
|
17311
|
+
*/
|
|
17312
|
+
export interface DataTypesSearchRuleItemsRequest {
|
|
16693
17313
|
/**
|
|
16694
|
-
*
|
|
17314
|
+
* Optional Typesense filter
|
|
16695
17315
|
* @type {string}
|
|
16696
|
-
* @memberof
|
|
17316
|
+
* @memberof DataTypesSearchRuleItemsRequest
|
|
16697
17317
|
*/
|
|
16698
|
-
'
|
|
17318
|
+
'filter'?: string;
|
|
16699
17319
|
/**
|
|
16700
|
-
*
|
|
16701
|
-
* @type {
|
|
16702
|
-
* @memberof
|
|
17320
|
+
* Page number (default: 1)
|
|
17321
|
+
* @type {number}
|
|
17322
|
+
* @memberof DataTypesSearchRuleItemsRequest
|
|
16703
17323
|
*/
|
|
16704
|
-
'
|
|
17324
|
+
'page'?: number;
|
|
17325
|
+
/**
|
|
17326
|
+
* Results per page (default: 20, max: 100)
|
|
17327
|
+
* @type {number}
|
|
17328
|
+
* @memberof DataTypesSearchRuleItemsRequest
|
|
17329
|
+
*/
|
|
17330
|
+
'per_page'?: number;
|
|
17331
|
+
/**
|
|
17332
|
+
* Search query
|
|
17333
|
+
* @type {string}
|
|
17334
|
+
* @memberof DataTypesSearchRuleItemsRequest
|
|
17335
|
+
*/
|
|
17336
|
+
'query': string;
|
|
17337
|
+
}
|
|
17338
|
+
/**
|
|
17339
|
+
* Response containing searchable items from the collection with pagination
|
|
17340
|
+
* @export
|
|
17341
|
+
* @interface DataTypesSearchRuleItemsResponse
|
|
17342
|
+
*/
|
|
17343
|
+
export interface DataTypesSearchRuleItemsResponse {
|
|
17344
|
+
/**
|
|
17345
|
+
*
|
|
17346
|
+
* @type {Array<DataTypesSearchRuleItem>}
|
|
17347
|
+
* @memberof DataTypesSearchRuleItemsResponse
|
|
17348
|
+
*/
|
|
17349
|
+
'items'?: Array<DataTypesSearchRuleItem>;
|
|
17350
|
+
/**
|
|
17351
|
+
*
|
|
17352
|
+
* @type {number}
|
|
17353
|
+
* @memberof DataTypesSearchRuleItemsResponse
|
|
17354
|
+
*/
|
|
17355
|
+
'page'?: number;
|
|
17356
|
+
/**
|
|
17357
|
+
*
|
|
17358
|
+
* @type {number}
|
|
17359
|
+
* @memberof DataTypesSearchRuleItemsResponse
|
|
17360
|
+
*/
|
|
17361
|
+
'per_page'?: number;
|
|
17362
|
+
/**
|
|
17363
|
+
* Fields searched (for reference)
|
|
17364
|
+
* @type {Array<string>}
|
|
17365
|
+
* @memberof DataTypesSearchRuleItemsResponse
|
|
17366
|
+
*/
|
|
17367
|
+
'query_by'?: Array<string>;
|
|
17368
|
+
/**
|
|
17369
|
+
* Total matching documents
|
|
17370
|
+
* @type {number}
|
|
17371
|
+
* @memberof DataTypesSearchRuleItemsResponse
|
|
17372
|
+
*/
|
|
17373
|
+
'total_found'?: number;
|
|
17374
|
+
/**
|
|
17375
|
+
*
|
|
17376
|
+
* @type {number}
|
|
17377
|
+
* @memberof DataTypesSearchRuleItemsResponse
|
|
17378
|
+
*/
|
|
17379
|
+
'total_pages'?: number;
|
|
17380
|
+
}
|
|
17381
|
+
/**
|
|
17382
|
+
*
|
|
17383
|
+
* @export
|
|
17384
|
+
* @interface DataTypesServiceRequest
|
|
17385
|
+
*/
|
|
17386
|
+
export interface DataTypesServiceRequest {
|
|
17387
|
+
/**
|
|
17388
|
+
*
|
|
17389
|
+
* @type {string}
|
|
17390
|
+
* @memberof DataTypesServiceRequest
|
|
17391
|
+
*/
|
|
17392
|
+
'additionalInfo'?: string;
|
|
17393
|
+
/**
|
|
17394
|
+
*
|
|
17395
|
+
* @type {string}
|
|
17396
|
+
* @memberof DataTypesServiceRequest
|
|
17397
|
+
*/
|
|
17398
|
+
'email'?: string;
|
|
17399
|
+
/**
|
|
17400
|
+
*
|
|
17401
|
+
* @type {string}
|
|
17402
|
+
* @memberof DataTypesServiceRequest
|
|
17403
|
+
*/
|
|
17404
|
+
'fullName'?: string;
|
|
17405
|
+
/**
|
|
17406
|
+
*
|
|
17407
|
+
* @type {boolean}
|
|
17408
|
+
* @memberof DataTypesServiceRequest
|
|
17409
|
+
*/
|
|
17410
|
+
'isActive'?: boolean;
|
|
17411
|
+
/**
|
|
17412
|
+
*
|
|
17413
|
+
* @type {string}
|
|
17414
|
+
* @memberof DataTypesServiceRequest
|
|
17415
|
+
*/
|
|
17416
|
+
'organizationEmail'?: string;
|
|
17417
|
+
/**
|
|
17418
|
+
*
|
|
17419
|
+
* @type {string}
|
|
17420
|
+
* @memberof DataTypesServiceRequest
|
|
17421
|
+
*/
|
|
17422
|
+
'organizationName'?: string;
|
|
17423
|
+
/**
|
|
17424
|
+
*
|
|
17425
|
+
* @type {string}
|
|
17426
|
+
* @memberof DataTypesServiceRequest
|
|
17427
|
+
*/
|
|
17428
|
+
'phoneNumber'?: string;
|
|
16705
17429
|
/**
|
|
16706
17430
|
*
|
|
16707
17431
|
* @type {string}
|
|
@@ -24769,10 +25493,10 @@ export const AnalyticsRulesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
24769
25493
|
* @param {*} [options] Override http request option.
|
|
24770
25494
|
* @throws {RequiredError}
|
|
24771
25495
|
*/
|
|
24772
|
-
|
|
25496
|
+
adminV1AnalyticsRulesGet: async (authorization: string, storeId?: number, collectionName?: string, isActive?: boolean, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: string, sortOrder?: string, searchQuery?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
24773
25497
|
// verify required parameter 'authorization' is not null or undefined
|
|
24774
|
-
assertParamExists('
|
|
24775
|
-
const localVarPath = `/
|
|
25498
|
+
assertParamExists('adminV1AnalyticsRulesGet', 'authorization', authorization)
|
|
25499
|
+
const localVarPath = `/admin/v1/analytics/rules`;
|
|
24776
25500
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
24777
25501
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
24778
25502
|
let baseOptions;
|
|
@@ -24784,6 +25508,9 @@ export const AnalyticsRulesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
24784
25508
|
const localVarHeaderParameter = {} as any;
|
|
24785
25509
|
const localVarQueryParameter = {} as any;
|
|
24786
25510
|
|
|
25511
|
+
// authentication BearerAuth required
|
|
25512
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
25513
|
+
|
|
24787
25514
|
if (storeId !== undefined) {
|
|
24788
25515
|
localVarQueryParameter['store_id'] = storeId;
|
|
24789
25516
|
}
|
|
@@ -24846,12 +25573,12 @@ export const AnalyticsRulesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
24846
25573
|
* @param {*} [options] Override http request option.
|
|
24847
25574
|
* @throws {RequiredError}
|
|
24848
25575
|
*/
|
|
24849
|
-
|
|
25576
|
+
adminV1AnalyticsRulesPost: async (authorization: string, dataTypesCreateAnalyticsRuleRequest: DataTypesCreateAnalyticsRuleRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
24850
25577
|
// verify required parameter 'authorization' is not null or undefined
|
|
24851
|
-
assertParamExists('
|
|
25578
|
+
assertParamExists('adminV1AnalyticsRulesPost', 'authorization', authorization)
|
|
24852
25579
|
// verify required parameter 'dataTypesCreateAnalyticsRuleRequest' is not null or undefined
|
|
24853
|
-
assertParamExists('
|
|
24854
|
-
const localVarPath = `/
|
|
25580
|
+
assertParamExists('adminV1AnalyticsRulesPost', 'dataTypesCreateAnalyticsRuleRequest', dataTypesCreateAnalyticsRuleRequest)
|
|
25581
|
+
const localVarPath = `/admin/v1/analytics/rules`;
|
|
24855
25582
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
24856
25583
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
24857
25584
|
let baseOptions;
|
|
@@ -24863,6 +25590,9 @@ export const AnalyticsRulesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
24863
25590
|
const localVarHeaderParameter = {} as any;
|
|
24864
25591
|
const localVarQueryParameter = {} as any;
|
|
24865
25592
|
|
|
25593
|
+
// authentication BearerAuth required
|
|
25594
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
25595
|
+
|
|
24866
25596
|
|
|
24867
25597
|
|
|
24868
25598
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -24888,12 +25618,12 @@ export const AnalyticsRulesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
24888
25618
|
* @param {*} [options] Override http request option.
|
|
24889
25619
|
* @throws {RequiredError}
|
|
24890
25620
|
*/
|
|
24891
|
-
|
|
25621
|
+
adminV1AnalyticsRulesRuleIdDelete: async (authorization: string, ruleId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
24892
25622
|
// verify required parameter 'authorization' is not null or undefined
|
|
24893
|
-
assertParamExists('
|
|
25623
|
+
assertParamExists('adminV1AnalyticsRulesRuleIdDelete', 'authorization', authorization)
|
|
24894
25624
|
// verify required parameter 'ruleId' is not null or undefined
|
|
24895
|
-
assertParamExists('
|
|
24896
|
-
const localVarPath = `/
|
|
25625
|
+
assertParamExists('adminV1AnalyticsRulesRuleIdDelete', 'ruleId', ruleId)
|
|
25626
|
+
const localVarPath = `/admin/v1/analytics/rules/{ruleId}`
|
|
24897
25627
|
.replace(`{${"ruleId"}}`, encodeURIComponent(String(ruleId)));
|
|
24898
25628
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
24899
25629
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -24906,6 +25636,9 @@ export const AnalyticsRulesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
24906
25636
|
const localVarHeaderParameter = {} as any;
|
|
24907
25637
|
const localVarQueryParameter = {} as any;
|
|
24908
25638
|
|
|
25639
|
+
// authentication BearerAuth required
|
|
25640
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
25641
|
+
|
|
24909
25642
|
|
|
24910
25643
|
|
|
24911
25644
|
if (authorization != null) {
|
|
@@ -24928,12 +25661,12 @@ export const AnalyticsRulesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
24928
25661
|
* @param {*} [options] Override http request option.
|
|
24929
25662
|
* @throws {RequiredError}
|
|
24930
25663
|
*/
|
|
24931
|
-
|
|
25664
|
+
adminV1AnalyticsRulesRuleIdGet: async (authorization: string, ruleId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
24932
25665
|
// verify required parameter 'authorization' is not null or undefined
|
|
24933
|
-
assertParamExists('
|
|
25666
|
+
assertParamExists('adminV1AnalyticsRulesRuleIdGet', 'authorization', authorization)
|
|
24934
25667
|
// verify required parameter 'ruleId' is not null or undefined
|
|
24935
|
-
assertParamExists('
|
|
24936
|
-
const localVarPath = `/
|
|
25668
|
+
assertParamExists('adminV1AnalyticsRulesRuleIdGet', 'ruleId', ruleId)
|
|
25669
|
+
const localVarPath = `/admin/v1/analytics/rules/{ruleId}`
|
|
24937
25670
|
.replace(`{${"ruleId"}}`, encodeURIComponent(String(ruleId)));
|
|
24938
25671
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
24939
25672
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -24946,6 +25679,9 @@ export const AnalyticsRulesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
24946
25679
|
const localVarHeaderParameter = {} as any;
|
|
24947
25680
|
const localVarQueryParameter = {} as any;
|
|
24948
25681
|
|
|
25682
|
+
// authentication BearerAuth required
|
|
25683
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
25684
|
+
|
|
24949
25685
|
|
|
24950
25686
|
|
|
24951
25687
|
if (authorization != null) {
|
|
@@ -24969,14 +25705,14 @@ export const AnalyticsRulesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
24969
25705
|
* @param {*} [options] Override http request option.
|
|
24970
25706
|
* @throws {RequiredError}
|
|
24971
25707
|
*/
|
|
24972
|
-
|
|
25708
|
+
adminV1AnalyticsRulesRuleIdPut: async (authorization: string, ruleId: string, dataTypesUpdateAnalyticsRuleRequest: DataTypesUpdateAnalyticsRuleRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
24973
25709
|
// verify required parameter 'authorization' is not null or undefined
|
|
24974
|
-
assertParamExists('
|
|
25710
|
+
assertParamExists('adminV1AnalyticsRulesRuleIdPut', 'authorization', authorization)
|
|
24975
25711
|
// verify required parameter 'ruleId' is not null or undefined
|
|
24976
|
-
assertParamExists('
|
|
25712
|
+
assertParamExists('adminV1AnalyticsRulesRuleIdPut', 'ruleId', ruleId)
|
|
24977
25713
|
// verify required parameter 'dataTypesUpdateAnalyticsRuleRequest' is not null or undefined
|
|
24978
|
-
assertParamExists('
|
|
24979
|
-
const localVarPath = `/
|
|
25714
|
+
assertParamExists('adminV1AnalyticsRulesRuleIdPut', 'dataTypesUpdateAnalyticsRuleRequest', dataTypesUpdateAnalyticsRuleRequest)
|
|
25715
|
+
const localVarPath = `/admin/v1/analytics/rules/{ruleId}`
|
|
24980
25716
|
.replace(`{${"ruleId"}}`, encodeURIComponent(String(ruleId)));
|
|
24981
25717
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
24982
25718
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -24989,6 +25725,9 @@ export const AnalyticsRulesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
24989
25725
|
const localVarHeaderParameter = {} as any;
|
|
24990
25726
|
const localVarQueryParameter = {} as any;
|
|
24991
25727
|
|
|
25728
|
+
// authentication BearerAuth required
|
|
25729
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
25730
|
+
|
|
24992
25731
|
|
|
24993
25732
|
|
|
24994
25733
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -25014,12 +25753,12 @@ export const AnalyticsRulesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
25014
25753
|
* @param {*} [options] Override http request option.
|
|
25015
25754
|
* @throws {RequiredError}
|
|
25016
25755
|
*/
|
|
25017
|
-
|
|
25756
|
+
adminV1AnalyticsRulesSyncPost: async (authorization: string, dataTypesAnalyticsRuleSyncRequest: DataTypesAnalyticsRuleSyncRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
25018
25757
|
// verify required parameter 'authorization' is not null or undefined
|
|
25019
|
-
assertParamExists('
|
|
25758
|
+
assertParamExists('adminV1AnalyticsRulesSyncPost', 'authorization', authorization)
|
|
25020
25759
|
// verify required parameter 'dataTypesAnalyticsRuleSyncRequest' is not null or undefined
|
|
25021
|
-
assertParamExists('
|
|
25022
|
-
const localVarPath = `/
|
|
25760
|
+
assertParamExists('adminV1AnalyticsRulesSyncPost', 'dataTypesAnalyticsRuleSyncRequest', dataTypesAnalyticsRuleSyncRequest)
|
|
25761
|
+
const localVarPath = `/admin/v1/analytics/rules/sync`;
|
|
25023
25762
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
25024
25763
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
25025
25764
|
let baseOptions;
|
|
@@ -25031,6 +25770,9 @@ export const AnalyticsRulesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
25031
25770
|
const localVarHeaderParameter = {} as any;
|
|
25032
25771
|
const localVarQueryParameter = {} as any;
|
|
25033
25772
|
|
|
25773
|
+
// authentication BearerAuth required
|
|
25774
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
25775
|
+
|
|
25034
25776
|
|
|
25035
25777
|
|
|
25036
25778
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -25048,6 +25790,102 @@ export const AnalyticsRulesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
25048
25790
|
options: localVarRequestOptions,
|
|
25049
25791
|
};
|
|
25050
25792
|
},
|
|
25793
|
+
/**
|
|
25794
|
+
* Retrieve a specific item by its ID from the Typesense collection. Useful for fetching details of items already in rules or for direct item selection by ID. Uses Redis caching for fast performance.
|
|
25795
|
+
* @summary Get Item by ID for Rule Management
|
|
25796
|
+
* @param {string} authorization Bearer JWT token
|
|
25797
|
+
* @param {string} xStoreID X-Store ID (same format as admin search API)
|
|
25798
|
+
* @param {string} itemId Item ID to retrieve
|
|
25799
|
+
* @param {*} [options] Override http request option.
|
|
25800
|
+
* @throws {RequiredError}
|
|
25801
|
+
*/
|
|
25802
|
+
adminV1StoresXStoreIDAnalyticsRulesItemsItemIdGet: async (authorization: string, xStoreID: string, itemId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
25803
|
+
// verify required parameter 'authorization' is not null or undefined
|
|
25804
|
+
assertParamExists('adminV1StoresXStoreIDAnalyticsRulesItemsItemIdGet', 'authorization', authorization)
|
|
25805
|
+
// verify required parameter 'xStoreID' is not null or undefined
|
|
25806
|
+
assertParamExists('adminV1StoresXStoreIDAnalyticsRulesItemsItemIdGet', 'xStoreID', xStoreID)
|
|
25807
|
+
// verify required parameter 'itemId' is not null or undefined
|
|
25808
|
+
assertParamExists('adminV1StoresXStoreIDAnalyticsRulesItemsItemIdGet', 'itemId', itemId)
|
|
25809
|
+
const localVarPath = `/admin/v1/stores/{xStoreID}/analytics/rules/items/{itemId}`
|
|
25810
|
+
.replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)))
|
|
25811
|
+
.replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
|
|
25812
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
25813
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
25814
|
+
let baseOptions;
|
|
25815
|
+
if (configuration) {
|
|
25816
|
+
baseOptions = configuration.baseOptions;
|
|
25817
|
+
}
|
|
25818
|
+
|
|
25819
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
25820
|
+
const localVarHeaderParameter = {} as any;
|
|
25821
|
+
const localVarQueryParameter = {} as any;
|
|
25822
|
+
|
|
25823
|
+
// authentication BearerAuth required
|
|
25824
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
25825
|
+
|
|
25826
|
+
|
|
25827
|
+
|
|
25828
|
+
if (authorization != null) {
|
|
25829
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
25830
|
+
}
|
|
25831
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
25832
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
25833
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
25834
|
+
|
|
25835
|
+
return {
|
|
25836
|
+
url: toPathString(localVarUrlObj),
|
|
25837
|
+
options: localVarRequestOptions,
|
|
25838
|
+
};
|
|
25839
|
+
},
|
|
25840
|
+
/**
|
|
25841
|
+
* Search through all items in the store\'s Typesense collection to find items that can be pinned or hidden in rules. Searches across ALL searchable attributes by analyzing Typesense schema. Uses Redis caching for fast performance (same as admin search API).
|
|
25842
|
+
* @summary Search Items for Rule Management
|
|
25843
|
+
* @param {string} authorization Bearer JWT token
|
|
25844
|
+
* @param {string} xStoreID X-Store ID (same format as admin search API)
|
|
25845
|
+
* @param {DataTypesSearchRuleItemsRequest} dataTypesSearchRuleItemsRequest Search parameters (query, page, per_page, filter)
|
|
25846
|
+
* @param {*} [options] Override http request option.
|
|
25847
|
+
* @throws {RequiredError}
|
|
25848
|
+
*/
|
|
25849
|
+
adminV1StoresXStoreIDAnalyticsRulesSearchItemsPost: async (authorization: string, xStoreID: string, dataTypesSearchRuleItemsRequest: DataTypesSearchRuleItemsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
25850
|
+
// verify required parameter 'authorization' is not null or undefined
|
|
25851
|
+
assertParamExists('adminV1StoresXStoreIDAnalyticsRulesSearchItemsPost', 'authorization', authorization)
|
|
25852
|
+
// verify required parameter 'xStoreID' is not null or undefined
|
|
25853
|
+
assertParamExists('adminV1StoresXStoreIDAnalyticsRulesSearchItemsPost', 'xStoreID', xStoreID)
|
|
25854
|
+
// verify required parameter 'dataTypesSearchRuleItemsRequest' is not null or undefined
|
|
25855
|
+
assertParamExists('adminV1StoresXStoreIDAnalyticsRulesSearchItemsPost', 'dataTypesSearchRuleItemsRequest', dataTypesSearchRuleItemsRequest)
|
|
25856
|
+
const localVarPath = `/admin/v1/stores/{xStoreID}/analytics/rules/search-items`
|
|
25857
|
+
.replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
|
|
25858
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
25859
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
25860
|
+
let baseOptions;
|
|
25861
|
+
if (configuration) {
|
|
25862
|
+
baseOptions = configuration.baseOptions;
|
|
25863
|
+
}
|
|
25864
|
+
|
|
25865
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
25866
|
+
const localVarHeaderParameter = {} as any;
|
|
25867
|
+
const localVarQueryParameter = {} as any;
|
|
25868
|
+
|
|
25869
|
+
// authentication BearerAuth required
|
|
25870
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
25871
|
+
|
|
25872
|
+
|
|
25873
|
+
|
|
25874
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
25875
|
+
|
|
25876
|
+
if (authorization != null) {
|
|
25877
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
25878
|
+
}
|
|
25879
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
25880
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
25881
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
25882
|
+
localVarRequestOptions.data = serializeDataIfNeeded(dataTypesSearchRuleItemsRequest, localVarRequestOptions, configuration)
|
|
25883
|
+
|
|
25884
|
+
return {
|
|
25885
|
+
url: toPathString(localVarUrlObj),
|
|
25886
|
+
options: localVarRequestOptions,
|
|
25887
|
+
};
|
|
25888
|
+
},
|
|
25051
25889
|
/**
|
|
25052
25890
|
* Retrieve a paginated list of analytics rules with optional filtering by store, collection, and active status. Supports both page-based and offset-based pagination.
|
|
25053
25891
|
* @summary List Analytics Rules
|
|
@@ -25066,12 +25904,12 @@ export const AnalyticsRulesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
25066
25904
|
* @param {*} [options] Override http request option.
|
|
25067
25905
|
* @throws {RequiredError}
|
|
25068
25906
|
*/
|
|
25069
|
-
|
|
25907
|
+
adminV1StoresXstoreidAnalyticsRulesGet: async (authorization: string, xstoreid: string, storeId?: number, collectionName?: string, isActive?: boolean, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: string, sortOrder?: string, searchQuery?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
25070
25908
|
// verify required parameter 'authorization' is not null or undefined
|
|
25071
|
-
assertParamExists('
|
|
25909
|
+
assertParamExists('adminV1StoresXstoreidAnalyticsRulesGet', 'authorization', authorization)
|
|
25072
25910
|
// verify required parameter 'xstoreid' is not null or undefined
|
|
25073
|
-
assertParamExists('
|
|
25074
|
-
const localVarPath = `/
|
|
25911
|
+
assertParamExists('adminV1StoresXstoreidAnalyticsRulesGet', 'xstoreid', xstoreid)
|
|
25912
|
+
const localVarPath = `/admin/v1/stores/{xstoreid}/analytics/rules`
|
|
25075
25913
|
.replace(`{${"xstoreid"}}`, encodeURIComponent(String(xstoreid)));
|
|
25076
25914
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
25077
25915
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -25084,6 +25922,9 @@ export const AnalyticsRulesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
25084
25922
|
const localVarHeaderParameter = {} as any;
|
|
25085
25923
|
const localVarQueryParameter = {} as any;
|
|
25086
25924
|
|
|
25925
|
+
// authentication BearerAuth required
|
|
25926
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
25927
|
+
|
|
25087
25928
|
if (storeId !== undefined) {
|
|
25088
25929
|
localVarQueryParameter['store_id'] = storeId;
|
|
25089
25930
|
}
|
|
@@ -25147,14 +25988,14 @@ export const AnalyticsRulesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
25147
25988
|
* @param {*} [options] Override http request option.
|
|
25148
25989
|
* @throws {RequiredError}
|
|
25149
25990
|
*/
|
|
25150
|
-
|
|
25991
|
+
adminV1StoresXstoreidAnalyticsRulesPost: async (authorization: string, xstoreid: string, dataTypesCreateAnalyticsRuleRequest: DataTypesCreateAnalyticsRuleRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
25151
25992
|
// verify required parameter 'authorization' is not null or undefined
|
|
25152
|
-
assertParamExists('
|
|
25993
|
+
assertParamExists('adminV1StoresXstoreidAnalyticsRulesPost', 'authorization', authorization)
|
|
25153
25994
|
// verify required parameter 'xstoreid' is not null or undefined
|
|
25154
|
-
assertParamExists('
|
|
25995
|
+
assertParamExists('adminV1StoresXstoreidAnalyticsRulesPost', 'xstoreid', xstoreid)
|
|
25155
25996
|
// verify required parameter 'dataTypesCreateAnalyticsRuleRequest' is not null or undefined
|
|
25156
|
-
assertParamExists('
|
|
25157
|
-
const localVarPath = `/
|
|
25997
|
+
assertParamExists('adminV1StoresXstoreidAnalyticsRulesPost', 'dataTypesCreateAnalyticsRuleRequest', dataTypesCreateAnalyticsRuleRequest)
|
|
25998
|
+
const localVarPath = `/admin/v1/stores/{xstoreid}/analytics/rules`
|
|
25158
25999
|
.replace(`{${"xstoreid"}}`, encodeURIComponent(String(xstoreid)));
|
|
25159
26000
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
25160
26001
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -25167,6 +26008,9 @@ export const AnalyticsRulesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
25167
26008
|
const localVarHeaderParameter = {} as any;
|
|
25168
26009
|
const localVarQueryParameter = {} as any;
|
|
25169
26010
|
|
|
26011
|
+
// authentication BearerAuth required
|
|
26012
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
26013
|
+
|
|
25170
26014
|
|
|
25171
26015
|
|
|
25172
26016
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -25193,14 +26037,14 @@ export const AnalyticsRulesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
25193
26037
|
* @param {*} [options] Override http request option.
|
|
25194
26038
|
* @throws {RequiredError}
|
|
25195
26039
|
*/
|
|
25196
|
-
|
|
26040
|
+
adminV1StoresXstoreidAnalyticsRulesRuleIdDelete: async (authorization: string, xstoreid: string, ruleId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
25197
26041
|
// verify required parameter 'authorization' is not null or undefined
|
|
25198
|
-
assertParamExists('
|
|
26042
|
+
assertParamExists('adminV1StoresXstoreidAnalyticsRulesRuleIdDelete', 'authorization', authorization)
|
|
25199
26043
|
// verify required parameter 'xstoreid' is not null or undefined
|
|
25200
|
-
assertParamExists('
|
|
26044
|
+
assertParamExists('adminV1StoresXstoreidAnalyticsRulesRuleIdDelete', 'xstoreid', xstoreid)
|
|
25201
26045
|
// verify required parameter 'ruleId' is not null or undefined
|
|
25202
|
-
assertParamExists('
|
|
25203
|
-
const localVarPath = `/
|
|
26046
|
+
assertParamExists('adminV1StoresXstoreidAnalyticsRulesRuleIdDelete', 'ruleId', ruleId)
|
|
26047
|
+
const localVarPath = `/admin/v1/stores/{xstoreid}/analytics/rules/{ruleId}`
|
|
25204
26048
|
.replace(`{${"xstoreid"}}`, encodeURIComponent(String(xstoreid)))
|
|
25205
26049
|
.replace(`{${"ruleId"}}`, encodeURIComponent(String(ruleId)));
|
|
25206
26050
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -25214,6 +26058,9 @@ export const AnalyticsRulesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
25214
26058
|
const localVarHeaderParameter = {} as any;
|
|
25215
26059
|
const localVarQueryParameter = {} as any;
|
|
25216
26060
|
|
|
26061
|
+
// authentication BearerAuth required
|
|
26062
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
26063
|
+
|
|
25217
26064
|
|
|
25218
26065
|
|
|
25219
26066
|
if (authorization != null) {
|
|
@@ -25237,14 +26084,14 @@ export const AnalyticsRulesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
25237
26084
|
* @param {*} [options] Override http request option.
|
|
25238
26085
|
* @throws {RequiredError}
|
|
25239
26086
|
*/
|
|
25240
|
-
|
|
26087
|
+
adminV1StoresXstoreidAnalyticsRulesRuleIdGet: async (authorization: string, xstoreid: string, ruleId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
25241
26088
|
// verify required parameter 'authorization' is not null or undefined
|
|
25242
|
-
assertParamExists('
|
|
26089
|
+
assertParamExists('adminV1StoresXstoreidAnalyticsRulesRuleIdGet', 'authorization', authorization)
|
|
25243
26090
|
// verify required parameter 'xstoreid' is not null or undefined
|
|
25244
|
-
assertParamExists('
|
|
26091
|
+
assertParamExists('adminV1StoresXstoreidAnalyticsRulesRuleIdGet', 'xstoreid', xstoreid)
|
|
25245
26092
|
// verify required parameter 'ruleId' is not null or undefined
|
|
25246
|
-
assertParamExists('
|
|
25247
|
-
const localVarPath = `/
|
|
26093
|
+
assertParamExists('adminV1StoresXstoreidAnalyticsRulesRuleIdGet', 'ruleId', ruleId)
|
|
26094
|
+
const localVarPath = `/admin/v1/stores/{xstoreid}/analytics/rules/{ruleId}`
|
|
25248
26095
|
.replace(`{${"xstoreid"}}`, encodeURIComponent(String(xstoreid)))
|
|
25249
26096
|
.replace(`{${"ruleId"}}`, encodeURIComponent(String(ruleId)));
|
|
25250
26097
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -25258,6 +26105,9 @@ export const AnalyticsRulesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
25258
26105
|
const localVarHeaderParameter = {} as any;
|
|
25259
26106
|
const localVarQueryParameter = {} as any;
|
|
25260
26107
|
|
|
26108
|
+
// authentication BearerAuth required
|
|
26109
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
26110
|
+
|
|
25261
26111
|
|
|
25262
26112
|
|
|
25263
26113
|
if (authorization != null) {
|
|
@@ -25282,16 +26132,16 @@ export const AnalyticsRulesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
25282
26132
|
* @param {*} [options] Override http request option.
|
|
25283
26133
|
* @throws {RequiredError}
|
|
25284
26134
|
*/
|
|
25285
|
-
|
|
26135
|
+
adminV1StoresXstoreidAnalyticsRulesRuleIdPut: async (authorization: string, xstoreid: string, ruleId: string, dataTypesUpdateAnalyticsRuleRequest: DataTypesUpdateAnalyticsRuleRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
25286
26136
|
// verify required parameter 'authorization' is not null or undefined
|
|
25287
|
-
assertParamExists('
|
|
26137
|
+
assertParamExists('adminV1StoresXstoreidAnalyticsRulesRuleIdPut', 'authorization', authorization)
|
|
25288
26138
|
// verify required parameter 'xstoreid' is not null or undefined
|
|
25289
|
-
assertParamExists('
|
|
26139
|
+
assertParamExists('adminV1StoresXstoreidAnalyticsRulesRuleIdPut', 'xstoreid', xstoreid)
|
|
25290
26140
|
// verify required parameter 'ruleId' is not null or undefined
|
|
25291
|
-
assertParamExists('
|
|
26141
|
+
assertParamExists('adminV1StoresXstoreidAnalyticsRulesRuleIdPut', 'ruleId', ruleId)
|
|
25292
26142
|
// verify required parameter 'dataTypesUpdateAnalyticsRuleRequest' is not null or undefined
|
|
25293
|
-
assertParamExists('
|
|
25294
|
-
const localVarPath = `/
|
|
26143
|
+
assertParamExists('adminV1StoresXstoreidAnalyticsRulesRuleIdPut', 'dataTypesUpdateAnalyticsRuleRequest', dataTypesUpdateAnalyticsRuleRequest)
|
|
26144
|
+
const localVarPath = `/admin/v1/stores/{xstoreid}/analytics/rules/{ruleId}`
|
|
25295
26145
|
.replace(`{${"xstoreid"}}`, encodeURIComponent(String(xstoreid)))
|
|
25296
26146
|
.replace(`{${"ruleId"}}`, encodeURIComponent(String(ruleId)));
|
|
25297
26147
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -25305,6 +26155,9 @@ export const AnalyticsRulesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
25305
26155
|
const localVarHeaderParameter = {} as any;
|
|
25306
26156
|
const localVarQueryParameter = {} as any;
|
|
25307
26157
|
|
|
26158
|
+
// authentication BearerAuth required
|
|
26159
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
26160
|
+
|
|
25308
26161
|
|
|
25309
26162
|
|
|
25310
26163
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -25331,14 +26184,14 @@ export const AnalyticsRulesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
25331
26184
|
* @param {*} [options] Override http request option.
|
|
25332
26185
|
* @throws {RequiredError}
|
|
25333
26186
|
*/
|
|
25334
|
-
|
|
26187
|
+
adminV1StoresXstoreidAnalyticsRulesSyncPost: async (authorization: string, xstoreid: string, dataTypesAnalyticsRuleSyncRequest: DataTypesAnalyticsRuleSyncRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
25335
26188
|
// verify required parameter 'authorization' is not null or undefined
|
|
25336
|
-
assertParamExists('
|
|
26189
|
+
assertParamExists('adminV1StoresXstoreidAnalyticsRulesSyncPost', 'authorization', authorization)
|
|
25337
26190
|
// verify required parameter 'xstoreid' is not null or undefined
|
|
25338
|
-
assertParamExists('
|
|
26191
|
+
assertParamExists('adminV1StoresXstoreidAnalyticsRulesSyncPost', 'xstoreid', xstoreid)
|
|
25339
26192
|
// verify required parameter 'dataTypesAnalyticsRuleSyncRequest' is not null or undefined
|
|
25340
|
-
assertParamExists('
|
|
25341
|
-
const localVarPath = `/
|
|
26193
|
+
assertParamExists('adminV1StoresXstoreidAnalyticsRulesSyncPost', 'dataTypesAnalyticsRuleSyncRequest', dataTypesAnalyticsRuleSyncRequest)
|
|
26194
|
+
const localVarPath = `/admin/v1/stores/{xstoreid}/analytics/rules/sync`
|
|
25342
26195
|
.replace(`{${"xstoreid"}}`, encodeURIComponent(String(xstoreid)));
|
|
25343
26196
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
25344
26197
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -25351,6 +26204,9 @@ export const AnalyticsRulesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
25351
26204
|
const localVarHeaderParameter = {} as any;
|
|
25352
26205
|
const localVarQueryParameter = {} as any;
|
|
25353
26206
|
|
|
26207
|
+
// authentication BearerAuth required
|
|
26208
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
26209
|
+
|
|
25354
26210
|
|
|
25355
26211
|
|
|
25356
26212
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -25395,10 +26251,10 @@ export const AnalyticsRulesApiFp = function(configuration?: Configuration) {
|
|
|
25395
26251
|
* @param {*} [options] Override http request option.
|
|
25396
26252
|
* @throws {RequiredError}
|
|
25397
26253
|
*/
|
|
25398
|
-
async
|
|
25399
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
26254
|
+
async adminV1AnalyticsRulesGet(authorization: string, storeId?: number, collectionName?: string, isActive?: boolean, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: string, sortOrder?: string, searchQuery?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesAnalyticsRuleListResponse>> {
|
|
26255
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminV1AnalyticsRulesGet(authorization, storeId, collectionName, isActive, page, pageSize, limit, offset, sortBy, sortOrder, searchQuery, options);
|
|
25400
26256
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
25401
|
-
const localVarOperationServerBasePath = operationServerMap['AnalyticsRulesApi.
|
|
26257
|
+
const localVarOperationServerBasePath = operationServerMap['AnalyticsRulesApi.adminV1AnalyticsRulesGet']?.[localVarOperationServerIndex]?.url;
|
|
25402
26258
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
25403
26259
|
},
|
|
25404
26260
|
/**
|
|
@@ -25409,10 +26265,10 @@ export const AnalyticsRulesApiFp = function(configuration?: Configuration) {
|
|
|
25409
26265
|
* @param {*} [options] Override http request option.
|
|
25410
26266
|
* @throws {RequiredError}
|
|
25411
26267
|
*/
|
|
25412
|
-
async
|
|
25413
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
26268
|
+
async adminV1AnalyticsRulesPost(authorization: string, dataTypesCreateAnalyticsRuleRequest: DataTypesCreateAnalyticsRuleRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesAnalyticsRuleResponse>> {
|
|
26269
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminV1AnalyticsRulesPost(authorization, dataTypesCreateAnalyticsRuleRequest, options);
|
|
25414
26270
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
25415
|
-
const localVarOperationServerBasePath = operationServerMap['AnalyticsRulesApi.
|
|
26271
|
+
const localVarOperationServerBasePath = operationServerMap['AnalyticsRulesApi.adminV1AnalyticsRulesPost']?.[localVarOperationServerIndex]?.url;
|
|
25416
26272
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
25417
26273
|
},
|
|
25418
26274
|
/**
|
|
@@ -25423,10 +26279,10 @@ export const AnalyticsRulesApiFp = function(configuration?: Configuration) {
|
|
|
25423
26279
|
* @param {*} [options] Override http request option.
|
|
25424
26280
|
* @throws {RequiredError}
|
|
25425
26281
|
*/
|
|
25426
|
-
async
|
|
25427
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
26282
|
+
async adminV1AnalyticsRulesRuleIdDelete(authorization: string, ruleId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{ [key: string]: any; }>> {
|
|
26283
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminV1AnalyticsRulesRuleIdDelete(authorization, ruleId, options);
|
|
25428
26284
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
25429
|
-
const localVarOperationServerBasePath = operationServerMap['AnalyticsRulesApi.
|
|
26285
|
+
const localVarOperationServerBasePath = operationServerMap['AnalyticsRulesApi.adminV1AnalyticsRulesRuleIdDelete']?.[localVarOperationServerIndex]?.url;
|
|
25430
26286
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
25431
26287
|
},
|
|
25432
26288
|
/**
|
|
@@ -25437,10 +26293,10 @@ export const AnalyticsRulesApiFp = function(configuration?: Configuration) {
|
|
|
25437
26293
|
* @param {*} [options] Override http request option.
|
|
25438
26294
|
* @throws {RequiredError}
|
|
25439
26295
|
*/
|
|
25440
|
-
async
|
|
25441
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
26296
|
+
async adminV1AnalyticsRulesRuleIdGet(authorization: string, ruleId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesAnalyticsRuleResponse>> {
|
|
26297
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminV1AnalyticsRulesRuleIdGet(authorization, ruleId, options);
|
|
25442
26298
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
25443
|
-
const localVarOperationServerBasePath = operationServerMap['AnalyticsRulesApi.
|
|
26299
|
+
const localVarOperationServerBasePath = operationServerMap['AnalyticsRulesApi.adminV1AnalyticsRulesRuleIdGet']?.[localVarOperationServerIndex]?.url;
|
|
25444
26300
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
25445
26301
|
},
|
|
25446
26302
|
/**
|
|
@@ -25452,10 +26308,10 @@ export const AnalyticsRulesApiFp = function(configuration?: Configuration) {
|
|
|
25452
26308
|
* @param {*} [options] Override http request option.
|
|
25453
26309
|
* @throws {RequiredError}
|
|
25454
26310
|
*/
|
|
25455
|
-
async
|
|
25456
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
26311
|
+
async adminV1AnalyticsRulesRuleIdPut(authorization: string, ruleId: string, dataTypesUpdateAnalyticsRuleRequest: DataTypesUpdateAnalyticsRuleRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesAnalyticsRuleResponse>> {
|
|
26312
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminV1AnalyticsRulesRuleIdPut(authorization, ruleId, dataTypesUpdateAnalyticsRuleRequest, options);
|
|
25457
26313
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
25458
|
-
const localVarOperationServerBasePath = operationServerMap['AnalyticsRulesApi.
|
|
26314
|
+
const localVarOperationServerBasePath = operationServerMap['AnalyticsRulesApi.adminV1AnalyticsRulesRuleIdPut']?.[localVarOperationServerIndex]?.url;
|
|
25459
26315
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
25460
26316
|
},
|
|
25461
26317
|
/**
|
|
@@ -25466,10 +26322,40 @@ export const AnalyticsRulesApiFp = function(configuration?: Configuration) {
|
|
|
25466
26322
|
* @param {*} [options] Override http request option.
|
|
25467
26323
|
* @throws {RequiredError}
|
|
25468
26324
|
*/
|
|
25469
|
-
async
|
|
25470
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
26325
|
+
async adminV1AnalyticsRulesSyncPost(authorization: string, dataTypesAnalyticsRuleSyncRequest: DataTypesAnalyticsRuleSyncRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesAnalyticsRuleSyncResponse>> {
|
|
26326
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminV1AnalyticsRulesSyncPost(authorization, dataTypesAnalyticsRuleSyncRequest, options);
|
|
26327
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
26328
|
+
const localVarOperationServerBasePath = operationServerMap['AnalyticsRulesApi.adminV1AnalyticsRulesSyncPost']?.[localVarOperationServerIndex]?.url;
|
|
26329
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
26330
|
+
},
|
|
26331
|
+
/**
|
|
26332
|
+
* Retrieve a specific item by its ID from the Typesense collection. Useful for fetching details of items already in rules or for direct item selection by ID. Uses Redis caching for fast performance.
|
|
26333
|
+
* @summary Get Item by ID for Rule Management
|
|
26334
|
+
* @param {string} authorization Bearer JWT token
|
|
26335
|
+
* @param {string} xStoreID X-Store ID (same format as admin search API)
|
|
26336
|
+
* @param {string} itemId Item ID to retrieve
|
|
26337
|
+
* @param {*} [options] Override http request option.
|
|
26338
|
+
* @throws {RequiredError}
|
|
26339
|
+
*/
|
|
26340
|
+
async adminV1StoresXStoreIDAnalyticsRulesItemsItemIdGet(authorization: string, xStoreID: string, itemId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesSearchRuleItem>> {
|
|
26341
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminV1StoresXStoreIDAnalyticsRulesItemsItemIdGet(authorization, xStoreID, itemId, options);
|
|
26342
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
26343
|
+
const localVarOperationServerBasePath = operationServerMap['AnalyticsRulesApi.adminV1StoresXStoreIDAnalyticsRulesItemsItemIdGet']?.[localVarOperationServerIndex]?.url;
|
|
26344
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
26345
|
+
},
|
|
26346
|
+
/**
|
|
26347
|
+
* Search through all items in the store\'s Typesense collection to find items that can be pinned or hidden in rules. Searches across ALL searchable attributes by analyzing Typesense schema. Uses Redis caching for fast performance (same as admin search API).
|
|
26348
|
+
* @summary Search Items for Rule Management
|
|
26349
|
+
* @param {string} authorization Bearer JWT token
|
|
26350
|
+
* @param {string} xStoreID X-Store ID (same format as admin search API)
|
|
26351
|
+
* @param {DataTypesSearchRuleItemsRequest} dataTypesSearchRuleItemsRequest Search parameters (query, page, per_page, filter)
|
|
26352
|
+
* @param {*} [options] Override http request option.
|
|
26353
|
+
* @throws {RequiredError}
|
|
26354
|
+
*/
|
|
26355
|
+
async adminV1StoresXStoreIDAnalyticsRulesSearchItemsPost(authorization: string, xStoreID: string, dataTypesSearchRuleItemsRequest: DataTypesSearchRuleItemsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesSearchRuleItemsResponse>> {
|
|
26356
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminV1StoresXStoreIDAnalyticsRulesSearchItemsPost(authorization, xStoreID, dataTypesSearchRuleItemsRequest, options);
|
|
25471
26357
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
25472
|
-
const localVarOperationServerBasePath = operationServerMap['AnalyticsRulesApi.
|
|
26358
|
+
const localVarOperationServerBasePath = operationServerMap['AnalyticsRulesApi.adminV1StoresXStoreIDAnalyticsRulesSearchItemsPost']?.[localVarOperationServerIndex]?.url;
|
|
25473
26359
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
25474
26360
|
},
|
|
25475
26361
|
/**
|
|
@@ -25490,10 +26376,10 @@ export const AnalyticsRulesApiFp = function(configuration?: Configuration) {
|
|
|
25490
26376
|
* @param {*} [options] Override http request option.
|
|
25491
26377
|
* @throws {RequiredError}
|
|
25492
26378
|
*/
|
|
25493
|
-
async
|
|
25494
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
26379
|
+
async adminV1StoresXstoreidAnalyticsRulesGet(authorization: string, xstoreid: string, storeId?: number, collectionName?: string, isActive?: boolean, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: string, sortOrder?: string, searchQuery?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesAnalyticsRuleListResponse>> {
|
|
26380
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminV1StoresXstoreidAnalyticsRulesGet(authorization, xstoreid, storeId, collectionName, isActive, page, pageSize, limit, offset, sortBy, sortOrder, searchQuery, options);
|
|
25495
26381
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
25496
|
-
const localVarOperationServerBasePath = operationServerMap['AnalyticsRulesApi.
|
|
26382
|
+
const localVarOperationServerBasePath = operationServerMap['AnalyticsRulesApi.adminV1StoresXstoreidAnalyticsRulesGet']?.[localVarOperationServerIndex]?.url;
|
|
25497
26383
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
25498
26384
|
},
|
|
25499
26385
|
/**
|
|
@@ -25505,10 +26391,10 @@ export const AnalyticsRulesApiFp = function(configuration?: Configuration) {
|
|
|
25505
26391
|
* @param {*} [options] Override http request option.
|
|
25506
26392
|
* @throws {RequiredError}
|
|
25507
26393
|
*/
|
|
25508
|
-
async
|
|
25509
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
26394
|
+
async adminV1StoresXstoreidAnalyticsRulesPost(authorization: string, xstoreid: string, dataTypesCreateAnalyticsRuleRequest: DataTypesCreateAnalyticsRuleRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesAnalyticsRuleResponse>> {
|
|
26395
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminV1StoresXstoreidAnalyticsRulesPost(authorization, xstoreid, dataTypesCreateAnalyticsRuleRequest, options);
|
|
25510
26396
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
25511
|
-
const localVarOperationServerBasePath = operationServerMap['AnalyticsRulesApi.
|
|
26397
|
+
const localVarOperationServerBasePath = operationServerMap['AnalyticsRulesApi.adminV1StoresXstoreidAnalyticsRulesPost']?.[localVarOperationServerIndex]?.url;
|
|
25512
26398
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
25513
26399
|
},
|
|
25514
26400
|
/**
|
|
@@ -25520,10 +26406,10 @@ export const AnalyticsRulesApiFp = function(configuration?: Configuration) {
|
|
|
25520
26406
|
* @param {*} [options] Override http request option.
|
|
25521
26407
|
* @throws {RequiredError}
|
|
25522
26408
|
*/
|
|
25523
|
-
async
|
|
25524
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
26409
|
+
async adminV1StoresXstoreidAnalyticsRulesRuleIdDelete(authorization: string, xstoreid: string, ruleId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{ [key: string]: any; }>> {
|
|
26410
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminV1StoresXstoreidAnalyticsRulesRuleIdDelete(authorization, xstoreid, ruleId, options);
|
|
25525
26411
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
25526
|
-
const localVarOperationServerBasePath = operationServerMap['AnalyticsRulesApi.
|
|
26412
|
+
const localVarOperationServerBasePath = operationServerMap['AnalyticsRulesApi.adminV1StoresXstoreidAnalyticsRulesRuleIdDelete']?.[localVarOperationServerIndex]?.url;
|
|
25527
26413
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
25528
26414
|
},
|
|
25529
26415
|
/**
|
|
@@ -25535,10 +26421,10 @@ export const AnalyticsRulesApiFp = function(configuration?: Configuration) {
|
|
|
25535
26421
|
* @param {*} [options] Override http request option.
|
|
25536
26422
|
* @throws {RequiredError}
|
|
25537
26423
|
*/
|
|
25538
|
-
async
|
|
25539
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
26424
|
+
async adminV1StoresXstoreidAnalyticsRulesRuleIdGet(authorization: string, xstoreid: string, ruleId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesAnalyticsRuleResponse>> {
|
|
26425
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminV1StoresXstoreidAnalyticsRulesRuleIdGet(authorization, xstoreid, ruleId, options);
|
|
25540
26426
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
25541
|
-
const localVarOperationServerBasePath = operationServerMap['AnalyticsRulesApi.
|
|
26427
|
+
const localVarOperationServerBasePath = operationServerMap['AnalyticsRulesApi.adminV1StoresXstoreidAnalyticsRulesRuleIdGet']?.[localVarOperationServerIndex]?.url;
|
|
25542
26428
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
25543
26429
|
},
|
|
25544
26430
|
/**
|
|
@@ -25551,10 +26437,10 @@ export const AnalyticsRulesApiFp = function(configuration?: Configuration) {
|
|
|
25551
26437
|
* @param {*} [options] Override http request option.
|
|
25552
26438
|
* @throws {RequiredError}
|
|
25553
26439
|
*/
|
|
25554
|
-
async
|
|
25555
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
26440
|
+
async adminV1StoresXstoreidAnalyticsRulesRuleIdPut(authorization: string, xstoreid: string, ruleId: string, dataTypesUpdateAnalyticsRuleRequest: DataTypesUpdateAnalyticsRuleRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesAnalyticsRuleResponse>> {
|
|
26441
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminV1StoresXstoreidAnalyticsRulesRuleIdPut(authorization, xstoreid, ruleId, dataTypesUpdateAnalyticsRuleRequest, options);
|
|
25556
26442
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
25557
|
-
const localVarOperationServerBasePath = operationServerMap['AnalyticsRulesApi.
|
|
26443
|
+
const localVarOperationServerBasePath = operationServerMap['AnalyticsRulesApi.adminV1StoresXstoreidAnalyticsRulesRuleIdPut']?.[localVarOperationServerIndex]?.url;
|
|
25558
26444
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
25559
26445
|
},
|
|
25560
26446
|
/**
|
|
@@ -25566,10 +26452,10 @@ export const AnalyticsRulesApiFp = function(configuration?: Configuration) {
|
|
|
25566
26452
|
* @param {*} [options] Override http request option.
|
|
25567
26453
|
* @throws {RequiredError}
|
|
25568
26454
|
*/
|
|
25569
|
-
async
|
|
25570
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
26455
|
+
async adminV1StoresXstoreidAnalyticsRulesSyncPost(authorization: string, xstoreid: string, dataTypesAnalyticsRuleSyncRequest: DataTypesAnalyticsRuleSyncRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesAnalyticsRuleSyncResponse>> {
|
|
26456
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminV1StoresXstoreidAnalyticsRulesSyncPost(authorization, xstoreid, dataTypesAnalyticsRuleSyncRequest, options);
|
|
25571
26457
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
25572
|
-
const localVarOperationServerBasePath = operationServerMap['AnalyticsRulesApi.
|
|
26458
|
+
const localVarOperationServerBasePath = operationServerMap['AnalyticsRulesApi.adminV1StoresXstoreidAnalyticsRulesSyncPost']?.[localVarOperationServerIndex]?.url;
|
|
25573
26459
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
25574
26460
|
},
|
|
25575
26461
|
}
|
|
@@ -25599,8 +26485,8 @@ export const AnalyticsRulesApiFactory = function (configuration?: Configuration,
|
|
|
25599
26485
|
* @param {*} [options] Override http request option.
|
|
25600
26486
|
* @throws {RequiredError}
|
|
25601
26487
|
*/
|
|
25602
|
-
|
|
25603
|
-
return localVarFp.
|
|
26488
|
+
adminV1AnalyticsRulesGet(authorization: string, storeId?: number, collectionName?: string, isActive?: boolean, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: string, sortOrder?: string, searchQuery?: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesAnalyticsRuleListResponse> {
|
|
26489
|
+
return localVarFp.adminV1AnalyticsRulesGet(authorization, storeId, collectionName, isActive, page, pageSize, limit, offset, sortBy, sortOrder, searchQuery, options).then((request) => request(axios, basePath));
|
|
25604
26490
|
},
|
|
25605
26491
|
/**
|
|
25606
26492
|
* Create a new analytics rule for Typesense curation. Rules define how search results should be modified (promoted, hidden, filtered, sorted) based on query conditions.
|
|
@@ -25610,8 +26496,8 @@ export const AnalyticsRulesApiFactory = function (configuration?: Configuration,
|
|
|
25610
26496
|
* @param {*} [options] Override http request option.
|
|
25611
26497
|
* @throws {RequiredError}
|
|
25612
26498
|
*/
|
|
25613
|
-
|
|
25614
|
-
return localVarFp.
|
|
26499
|
+
adminV1AnalyticsRulesPost(authorization: string, dataTypesCreateAnalyticsRuleRequest: DataTypesCreateAnalyticsRuleRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesAnalyticsRuleResponse> {
|
|
26500
|
+
return localVarFp.adminV1AnalyticsRulesPost(authorization, dataTypesCreateAnalyticsRuleRequest, options).then((request) => request(axios, basePath));
|
|
25615
26501
|
},
|
|
25616
26502
|
/**
|
|
25617
26503
|
* Permanently delete an analytics rule from both the database and Typesense. This operation cannot be undone.
|
|
@@ -25621,8 +26507,8 @@ export const AnalyticsRulesApiFactory = function (configuration?: Configuration,
|
|
|
25621
26507
|
* @param {*} [options] Override http request option.
|
|
25622
26508
|
* @throws {RequiredError}
|
|
25623
26509
|
*/
|
|
25624
|
-
|
|
25625
|
-
return localVarFp.
|
|
26510
|
+
adminV1AnalyticsRulesRuleIdDelete(authorization: string, ruleId: string, options?: RawAxiosRequestConfig): AxiosPromise<{ [key: string]: any; }> {
|
|
26511
|
+
return localVarFp.adminV1AnalyticsRulesRuleIdDelete(authorization, ruleId, options).then((request) => request(axios, basePath));
|
|
25626
26512
|
},
|
|
25627
26513
|
/**
|
|
25628
26514
|
* Retrieve a specific analytics rule by its ID. Returns the complete rule configuration including Typesense override actions.
|
|
@@ -25632,8 +26518,8 @@ export const AnalyticsRulesApiFactory = function (configuration?: Configuration,
|
|
|
25632
26518
|
* @param {*} [options] Override http request option.
|
|
25633
26519
|
* @throws {RequiredError}
|
|
25634
26520
|
*/
|
|
25635
|
-
|
|
25636
|
-
return localVarFp.
|
|
26521
|
+
adminV1AnalyticsRulesRuleIdGet(authorization: string, ruleId: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesAnalyticsRuleResponse> {
|
|
26522
|
+
return localVarFp.adminV1AnalyticsRulesRuleIdGet(authorization, ruleId, options).then((request) => request(axios, basePath));
|
|
25637
26523
|
},
|
|
25638
26524
|
/**
|
|
25639
26525
|
* Update an existing analytics rule. Supports partial updates. When is_active is set to false, the rule is removed from Typesense. When is_active is set to true, the rule is synced to Typesense.
|
|
@@ -25644,8 +26530,8 @@ export const AnalyticsRulesApiFactory = function (configuration?: Configuration,
|
|
|
25644
26530
|
* @param {*} [options] Override http request option.
|
|
25645
26531
|
* @throws {RequiredError}
|
|
25646
26532
|
*/
|
|
25647
|
-
|
|
25648
|
-
return localVarFp.
|
|
26533
|
+
adminV1AnalyticsRulesRuleIdPut(authorization: string, ruleId: string, dataTypesUpdateAnalyticsRuleRequest: DataTypesUpdateAnalyticsRuleRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesAnalyticsRuleResponse> {
|
|
26534
|
+
return localVarFp.adminV1AnalyticsRulesRuleIdPut(authorization, ruleId, dataTypesUpdateAnalyticsRuleRequest, options).then((request) => request(axios, basePath));
|
|
25649
26535
|
},
|
|
25650
26536
|
/**
|
|
25651
26537
|
* Manually synchronize analytics rules to Typesense. This endpoint can be used to force a sync of all active rules or specific rules to Typesense collections.
|
|
@@ -25655,8 +26541,32 @@ export const AnalyticsRulesApiFactory = function (configuration?: Configuration,
|
|
|
25655
26541
|
* @param {*} [options] Override http request option.
|
|
25656
26542
|
* @throws {RequiredError}
|
|
25657
26543
|
*/
|
|
25658
|
-
|
|
25659
|
-
return localVarFp.
|
|
26544
|
+
adminV1AnalyticsRulesSyncPost(authorization: string, dataTypesAnalyticsRuleSyncRequest: DataTypesAnalyticsRuleSyncRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesAnalyticsRuleSyncResponse> {
|
|
26545
|
+
return localVarFp.adminV1AnalyticsRulesSyncPost(authorization, dataTypesAnalyticsRuleSyncRequest, options).then((request) => request(axios, basePath));
|
|
26546
|
+
},
|
|
26547
|
+
/**
|
|
26548
|
+
* Retrieve a specific item by its ID from the Typesense collection. Useful for fetching details of items already in rules or for direct item selection by ID. Uses Redis caching for fast performance.
|
|
26549
|
+
* @summary Get Item by ID for Rule Management
|
|
26550
|
+
* @param {string} authorization Bearer JWT token
|
|
26551
|
+
* @param {string} xStoreID X-Store ID (same format as admin search API)
|
|
26552
|
+
* @param {string} itemId Item ID to retrieve
|
|
26553
|
+
* @param {*} [options] Override http request option.
|
|
26554
|
+
* @throws {RequiredError}
|
|
26555
|
+
*/
|
|
26556
|
+
adminV1StoresXStoreIDAnalyticsRulesItemsItemIdGet(authorization: string, xStoreID: string, itemId: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesSearchRuleItem> {
|
|
26557
|
+
return localVarFp.adminV1StoresXStoreIDAnalyticsRulesItemsItemIdGet(authorization, xStoreID, itemId, options).then((request) => request(axios, basePath));
|
|
26558
|
+
},
|
|
26559
|
+
/**
|
|
26560
|
+
* Search through all items in the store\'s Typesense collection to find items that can be pinned or hidden in rules. Searches across ALL searchable attributes by analyzing Typesense schema. Uses Redis caching for fast performance (same as admin search API).
|
|
26561
|
+
* @summary Search Items for Rule Management
|
|
26562
|
+
* @param {string} authorization Bearer JWT token
|
|
26563
|
+
* @param {string} xStoreID X-Store ID (same format as admin search API)
|
|
26564
|
+
* @param {DataTypesSearchRuleItemsRequest} dataTypesSearchRuleItemsRequest Search parameters (query, page, per_page, filter)
|
|
26565
|
+
* @param {*} [options] Override http request option.
|
|
26566
|
+
* @throws {RequiredError}
|
|
26567
|
+
*/
|
|
26568
|
+
adminV1StoresXStoreIDAnalyticsRulesSearchItemsPost(authorization: string, xStoreID: string, dataTypesSearchRuleItemsRequest: DataTypesSearchRuleItemsRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesSearchRuleItemsResponse> {
|
|
26569
|
+
return localVarFp.adminV1StoresXStoreIDAnalyticsRulesSearchItemsPost(authorization, xStoreID, dataTypesSearchRuleItemsRequest, options).then((request) => request(axios, basePath));
|
|
25660
26570
|
},
|
|
25661
26571
|
/**
|
|
25662
26572
|
* Retrieve a paginated list of analytics rules with optional filtering by store, collection, and active status. Supports both page-based and offset-based pagination.
|
|
@@ -25676,8 +26586,8 @@ export const AnalyticsRulesApiFactory = function (configuration?: Configuration,
|
|
|
25676
26586
|
* @param {*} [options] Override http request option.
|
|
25677
26587
|
* @throws {RequiredError}
|
|
25678
26588
|
*/
|
|
25679
|
-
|
|
25680
|
-
return localVarFp.
|
|
26589
|
+
adminV1StoresXstoreidAnalyticsRulesGet(authorization: string, xstoreid: string, storeId?: number, collectionName?: string, isActive?: boolean, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: string, sortOrder?: string, searchQuery?: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesAnalyticsRuleListResponse> {
|
|
26590
|
+
return localVarFp.adminV1StoresXstoreidAnalyticsRulesGet(authorization, xstoreid, storeId, collectionName, isActive, page, pageSize, limit, offset, sortBy, sortOrder, searchQuery, options).then((request) => request(axios, basePath));
|
|
25681
26591
|
},
|
|
25682
26592
|
/**
|
|
25683
26593
|
* Create a new analytics rule for Typesense curation. Rules define how search results should be modified (promoted, hidden, filtered, sorted) based on query conditions.
|
|
@@ -25688,8 +26598,8 @@ export const AnalyticsRulesApiFactory = function (configuration?: Configuration,
|
|
|
25688
26598
|
* @param {*} [options] Override http request option.
|
|
25689
26599
|
* @throws {RequiredError}
|
|
25690
26600
|
*/
|
|
25691
|
-
|
|
25692
|
-
return localVarFp.
|
|
26601
|
+
adminV1StoresXstoreidAnalyticsRulesPost(authorization: string, xstoreid: string, dataTypesCreateAnalyticsRuleRequest: DataTypesCreateAnalyticsRuleRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesAnalyticsRuleResponse> {
|
|
26602
|
+
return localVarFp.adminV1StoresXstoreidAnalyticsRulesPost(authorization, xstoreid, dataTypesCreateAnalyticsRuleRequest, options).then((request) => request(axios, basePath));
|
|
25693
26603
|
},
|
|
25694
26604
|
/**
|
|
25695
26605
|
* Permanently delete an analytics rule from both the database and Typesense. This operation cannot be undone.
|
|
@@ -25700,8 +26610,8 @@ export const AnalyticsRulesApiFactory = function (configuration?: Configuration,
|
|
|
25700
26610
|
* @param {*} [options] Override http request option.
|
|
25701
26611
|
* @throws {RequiredError}
|
|
25702
26612
|
*/
|
|
25703
|
-
|
|
25704
|
-
return localVarFp.
|
|
26613
|
+
adminV1StoresXstoreidAnalyticsRulesRuleIdDelete(authorization: string, xstoreid: string, ruleId: string, options?: RawAxiosRequestConfig): AxiosPromise<{ [key: string]: any; }> {
|
|
26614
|
+
return localVarFp.adminV1StoresXstoreidAnalyticsRulesRuleIdDelete(authorization, xstoreid, ruleId, options).then((request) => request(axios, basePath));
|
|
25705
26615
|
},
|
|
25706
26616
|
/**
|
|
25707
26617
|
* Retrieve a specific analytics rule by its ID. Returns the complete rule configuration including Typesense override actions.
|
|
@@ -25712,8 +26622,8 @@ export const AnalyticsRulesApiFactory = function (configuration?: Configuration,
|
|
|
25712
26622
|
* @param {*} [options] Override http request option.
|
|
25713
26623
|
* @throws {RequiredError}
|
|
25714
26624
|
*/
|
|
25715
|
-
|
|
25716
|
-
return localVarFp.
|
|
26625
|
+
adminV1StoresXstoreidAnalyticsRulesRuleIdGet(authorization: string, xstoreid: string, ruleId: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesAnalyticsRuleResponse> {
|
|
26626
|
+
return localVarFp.adminV1StoresXstoreidAnalyticsRulesRuleIdGet(authorization, xstoreid, ruleId, options).then((request) => request(axios, basePath));
|
|
25717
26627
|
},
|
|
25718
26628
|
/**
|
|
25719
26629
|
* Update an existing analytics rule. Supports partial updates. When is_active is set to false, the rule is removed from Typesense. When is_active is set to true, the rule is synced to Typesense.
|
|
@@ -25725,8 +26635,8 @@ export const AnalyticsRulesApiFactory = function (configuration?: Configuration,
|
|
|
25725
26635
|
* @param {*} [options] Override http request option.
|
|
25726
26636
|
* @throws {RequiredError}
|
|
25727
26637
|
*/
|
|
25728
|
-
|
|
25729
|
-
return localVarFp.
|
|
26638
|
+
adminV1StoresXstoreidAnalyticsRulesRuleIdPut(authorization: string, xstoreid: string, ruleId: string, dataTypesUpdateAnalyticsRuleRequest: DataTypesUpdateAnalyticsRuleRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesAnalyticsRuleResponse> {
|
|
26639
|
+
return localVarFp.adminV1StoresXstoreidAnalyticsRulesRuleIdPut(authorization, xstoreid, ruleId, dataTypesUpdateAnalyticsRuleRequest, options).then((request) => request(axios, basePath));
|
|
25730
26640
|
},
|
|
25731
26641
|
/**
|
|
25732
26642
|
* Manually synchronize analytics rules to Typesense. This endpoint can be used to force a sync of all active rules or specific rules to Typesense collections.
|
|
@@ -25737,8 +26647,8 @@ export const AnalyticsRulesApiFactory = function (configuration?: Configuration,
|
|
|
25737
26647
|
* @param {*} [options] Override http request option.
|
|
25738
26648
|
* @throws {RequiredError}
|
|
25739
26649
|
*/
|
|
25740
|
-
|
|
25741
|
-
return localVarFp.
|
|
26650
|
+
adminV1StoresXstoreidAnalyticsRulesSyncPost(authorization: string, xstoreid: string, dataTypesAnalyticsRuleSyncRequest: DataTypesAnalyticsRuleSyncRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesAnalyticsRuleSyncResponse> {
|
|
26651
|
+
return localVarFp.adminV1StoresXstoreidAnalyticsRulesSyncPost(authorization, xstoreid, dataTypesAnalyticsRuleSyncRequest, options).then((request) => request(axios, basePath));
|
|
25742
26652
|
},
|
|
25743
26653
|
};
|
|
25744
26654
|
};
|
|
@@ -25768,8 +26678,8 @@ export class AnalyticsRulesApi extends BaseAPI {
|
|
|
25768
26678
|
* @throws {RequiredError}
|
|
25769
26679
|
* @memberof AnalyticsRulesApi
|
|
25770
26680
|
*/
|
|
25771
|
-
public
|
|
25772
|
-
return AnalyticsRulesApiFp(this.configuration).
|
|
26681
|
+
public adminV1AnalyticsRulesGet(authorization: string, storeId?: number, collectionName?: string, isActive?: boolean, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: string, sortOrder?: string, searchQuery?: string, options?: RawAxiosRequestConfig) {
|
|
26682
|
+
return AnalyticsRulesApiFp(this.configuration).adminV1AnalyticsRulesGet(authorization, storeId, collectionName, isActive, page, pageSize, limit, offset, sortBy, sortOrder, searchQuery, options).then((request) => request(this.axios, this.basePath));
|
|
25773
26683
|
}
|
|
25774
26684
|
|
|
25775
26685
|
/**
|
|
@@ -25781,8 +26691,8 @@ export class AnalyticsRulesApi extends BaseAPI {
|
|
|
25781
26691
|
* @throws {RequiredError}
|
|
25782
26692
|
* @memberof AnalyticsRulesApi
|
|
25783
26693
|
*/
|
|
25784
|
-
public
|
|
25785
|
-
return AnalyticsRulesApiFp(this.configuration).
|
|
26694
|
+
public adminV1AnalyticsRulesPost(authorization: string, dataTypesCreateAnalyticsRuleRequest: DataTypesCreateAnalyticsRuleRequest, options?: RawAxiosRequestConfig) {
|
|
26695
|
+
return AnalyticsRulesApiFp(this.configuration).adminV1AnalyticsRulesPost(authorization, dataTypesCreateAnalyticsRuleRequest, options).then((request) => request(this.axios, this.basePath));
|
|
25786
26696
|
}
|
|
25787
26697
|
|
|
25788
26698
|
/**
|
|
@@ -25794,8 +26704,8 @@ export class AnalyticsRulesApi extends BaseAPI {
|
|
|
25794
26704
|
* @throws {RequiredError}
|
|
25795
26705
|
* @memberof AnalyticsRulesApi
|
|
25796
26706
|
*/
|
|
25797
|
-
public
|
|
25798
|
-
return AnalyticsRulesApiFp(this.configuration).
|
|
26707
|
+
public adminV1AnalyticsRulesRuleIdDelete(authorization: string, ruleId: string, options?: RawAxiosRequestConfig) {
|
|
26708
|
+
return AnalyticsRulesApiFp(this.configuration).adminV1AnalyticsRulesRuleIdDelete(authorization, ruleId, options).then((request) => request(this.axios, this.basePath));
|
|
25799
26709
|
}
|
|
25800
26710
|
|
|
25801
26711
|
/**
|
|
@@ -25807,8 +26717,8 @@ export class AnalyticsRulesApi extends BaseAPI {
|
|
|
25807
26717
|
* @throws {RequiredError}
|
|
25808
26718
|
* @memberof AnalyticsRulesApi
|
|
25809
26719
|
*/
|
|
25810
|
-
public
|
|
25811
|
-
return AnalyticsRulesApiFp(this.configuration).
|
|
26720
|
+
public adminV1AnalyticsRulesRuleIdGet(authorization: string, ruleId: string, options?: RawAxiosRequestConfig) {
|
|
26721
|
+
return AnalyticsRulesApiFp(this.configuration).adminV1AnalyticsRulesRuleIdGet(authorization, ruleId, options).then((request) => request(this.axios, this.basePath));
|
|
25812
26722
|
}
|
|
25813
26723
|
|
|
25814
26724
|
/**
|
|
@@ -25821,8 +26731,8 @@ export class AnalyticsRulesApi extends BaseAPI {
|
|
|
25821
26731
|
* @throws {RequiredError}
|
|
25822
26732
|
* @memberof AnalyticsRulesApi
|
|
25823
26733
|
*/
|
|
25824
|
-
public
|
|
25825
|
-
return AnalyticsRulesApiFp(this.configuration).
|
|
26734
|
+
public adminV1AnalyticsRulesRuleIdPut(authorization: string, ruleId: string, dataTypesUpdateAnalyticsRuleRequest: DataTypesUpdateAnalyticsRuleRequest, options?: RawAxiosRequestConfig) {
|
|
26735
|
+
return AnalyticsRulesApiFp(this.configuration).adminV1AnalyticsRulesRuleIdPut(authorization, ruleId, dataTypesUpdateAnalyticsRuleRequest, options).then((request) => request(this.axios, this.basePath));
|
|
25826
26736
|
}
|
|
25827
26737
|
|
|
25828
26738
|
/**
|
|
@@ -25834,8 +26744,36 @@ export class AnalyticsRulesApi extends BaseAPI {
|
|
|
25834
26744
|
* @throws {RequiredError}
|
|
25835
26745
|
* @memberof AnalyticsRulesApi
|
|
25836
26746
|
*/
|
|
25837
|
-
public
|
|
25838
|
-
return AnalyticsRulesApiFp(this.configuration).
|
|
26747
|
+
public adminV1AnalyticsRulesSyncPost(authorization: string, dataTypesAnalyticsRuleSyncRequest: DataTypesAnalyticsRuleSyncRequest, options?: RawAxiosRequestConfig) {
|
|
26748
|
+
return AnalyticsRulesApiFp(this.configuration).adminV1AnalyticsRulesSyncPost(authorization, dataTypesAnalyticsRuleSyncRequest, options).then((request) => request(this.axios, this.basePath));
|
|
26749
|
+
}
|
|
26750
|
+
|
|
26751
|
+
/**
|
|
26752
|
+
* Retrieve a specific item by its ID from the Typesense collection. Useful for fetching details of items already in rules or for direct item selection by ID. Uses Redis caching for fast performance.
|
|
26753
|
+
* @summary Get Item by ID for Rule Management
|
|
26754
|
+
* @param {string} authorization Bearer JWT token
|
|
26755
|
+
* @param {string} xStoreID X-Store ID (same format as admin search API)
|
|
26756
|
+
* @param {string} itemId Item ID to retrieve
|
|
26757
|
+
* @param {*} [options] Override http request option.
|
|
26758
|
+
* @throws {RequiredError}
|
|
26759
|
+
* @memberof AnalyticsRulesApi
|
|
26760
|
+
*/
|
|
26761
|
+
public adminV1StoresXStoreIDAnalyticsRulesItemsItemIdGet(authorization: string, xStoreID: string, itemId: string, options?: RawAxiosRequestConfig) {
|
|
26762
|
+
return AnalyticsRulesApiFp(this.configuration).adminV1StoresXStoreIDAnalyticsRulesItemsItemIdGet(authorization, xStoreID, itemId, options).then((request) => request(this.axios, this.basePath));
|
|
26763
|
+
}
|
|
26764
|
+
|
|
26765
|
+
/**
|
|
26766
|
+
* Search through all items in the store\'s Typesense collection to find items that can be pinned or hidden in rules. Searches across ALL searchable attributes by analyzing Typesense schema. Uses Redis caching for fast performance (same as admin search API).
|
|
26767
|
+
* @summary Search Items for Rule Management
|
|
26768
|
+
* @param {string} authorization Bearer JWT token
|
|
26769
|
+
* @param {string} xStoreID X-Store ID (same format as admin search API)
|
|
26770
|
+
* @param {DataTypesSearchRuleItemsRequest} dataTypesSearchRuleItemsRequest Search parameters (query, page, per_page, filter)
|
|
26771
|
+
* @param {*} [options] Override http request option.
|
|
26772
|
+
* @throws {RequiredError}
|
|
26773
|
+
* @memberof AnalyticsRulesApi
|
|
26774
|
+
*/
|
|
26775
|
+
public adminV1StoresXStoreIDAnalyticsRulesSearchItemsPost(authorization: string, xStoreID: string, dataTypesSearchRuleItemsRequest: DataTypesSearchRuleItemsRequest, options?: RawAxiosRequestConfig) {
|
|
26776
|
+
return AnalyticsRulesApiFp(this.configuration).adminV1StoresXStoreIDAnalyticsRulesSearchItemsPost(authorization, xStoreID, dataTypesSearchRuleItemsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
25839
26777
|
}
|
|
25840
26778
|
|
|
25841
26779
|
/**
|
|
@@ -25857,8 +26795,8 @@ export class AnalyticsRulesApi extends BaseAPI {
|
|
|
25857
26795
|
* @throws {RequiredError}
|
|
25858
26796
|
* @memberof AnalyticsRulesApi
|
|
25859
26797
|
*/
|
|
25860
|
-
public
|
|
25861
|
-
return AnalyticsRulesApiFp(this.configuration).
|
|
26798
|
+
public adminV1StoresXstoreidAnalyticsRulesGet(authorization: string, xstoreid: string, storeId?: number, collectionName?: string, isActive?: boolean, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: string, sortOrder?: string, searchQuery?: string, options?: RawAxiosRequestConfig) {
|
|
26799
|
+
return AnalyticsRulesApiFp(this.configuration).adminV1StoresXstoreidAnalyticsRulesGet(authorization, xstoreid, storeId, collectionName, isActive, page, pageSize, limit, offset, sortBy, sortOrder, searchQuery, options).then((request) => request(this.axios, this.basePath));
|
|
25862
26800
|
}
|
|
25863
26801
|
|
|
25864
26802
|
/**
|
|
@@ -25871,8 +26809,8 @@ export class AnalyticsRulesApi extends BaseAPI {
|
|
|
25871
26809
|
* @throws {RequiredError}
|
|
25872
26810
|
* @memberof AnalyticsRulesApi
|
|
25873
26811
|
*/
|
|
25874
|
-
public
|
|
25875
|
-
return AnalyticsRulesApiFp(this.configuration).
|
|
26812
|
+
public adminV1StoresXstoreidAnalyticsRulesPost(authorization: string, xstoreid: string, dataTypesCreateAnalyticsRuleRequest: DataTypesCreateAnalyticsRuleRequest, options?: RawAxiosRequestConfig) {
|
|
26813
|
+
return AnalyticsRulesApiFp(this.configuration).adminV1StoresXstoreidAnalyticsRulesPost(authorization, xstoreid, dataTypesCreateAnalyticsRuleRequest, options).then((request) => request(this.axios, this.basePath));
|
|
25876
26814
|
}
|
|
25877
26815
|
|
|
25878
26816
|
/**
|
|
@@ -25885,8 +26823,8 @@ export class AnalyticsRulesApi extends BaseAPI {
|
|
|
25885
26823
|
* @throws {RequiredError}
|
|
25886
26824
|
* @memberof AnalyticsRulesApi
|
|
25887
26825
|
*/
|
|
25888
|
-
public
|
|
25889
|
-
return AnalyticsRulesApiFp(this.configuration).
|
|
26826
|
+
public adminV1StoresXstoreidAnalyticsRulesRuleIdDelete(authorization: string, xstoreid: string, ruleId: string, options?: RawAxiosRequestConfig) {
|
|
26827
|
+
return AnalyticsRulesApiFp(this.configuration).adminV1StoresXstoreidAnalyticsRulesRuleIdDelete(authorization, xstoreid, ruleId, options).then((request) => request(this.axios, this.basePath));
|
|
25890
26828
|
}
|
|
25891
26829
|
|
|
25892
26830
|
/**
|
|
@@ -25899,8 +26837,8 @@ export class AnalyticsRulesApi extends BaseAPI {
|
|
|
25899
26837
|
* @throws {RequiredError}
|
|
25900
26838
|
* @memberof AnalyticsRulesApi
|
|
25901
26839
|
*/
|
|
25902
|
-
public
|
|
25903
|
-
return AnalyticsRulesApiFp(this.configuration).
|
|
26840
|
+
public adminV1StoresXstoreidAnalyticsRulesRuleIdGet(authorization: string, xstoreid: string, ruleId: string, options?: RawAxiosRequestConfig) {
|
|
26841
|
+
return AnalyticsRulesApiFp(this.configuration).adminV1StoresXstoreidAnalyticsRulesRuleIdGet(authorization, xstoreid, ruleId, options).then((request) => request(this.axios, this.basePath));
|
|
25904
26842
|
}
|
|
25905
26843
|
|
|
25906
26844
|
/**
|
|
@@ -25914,8 +26852,8 @@ export class AnalyticsRulesApi extends BaseAPI {
|
|
|
25914
26852
|
* @throws {RequiredError}
|
|
25915
26853
|
* @memberof AnalyticsRulesApi
|
|
25916
26854
|
*/
|
|
25917
|
-
public
|
|
25918
|
-
return AnalyticsRulesApiFp(this.configuration).
|
|
26855
|
+
public adminV1StoresXstoreidAnalyticsRulesRuleIdPut(authorization: string, xstoreid: string, ruleId: string, dataTypesUpdateAnalyticsRuleRequest: DataTypesUpdateAnalyticsRuleRequest, options?: RawAxiosRequestConfig) {
|
|
26856
|
+
return AnalyticsRulesApiFp(this.configuration).adminV1StoresXstoreidAnalyticsRulesRuleIdPut(authorization, xstoreid, ruleId, dataTypesUpdateAnalyticsRuleRequest, options).then((request) => request(this.axios, this.basePath));
|
|
25919
26857
|
}
|
|
25920
26858
|
|
|
25921
26859
|
/**
|
|
@@ -25928,8 +26866,8 @@ export class AnalyticsRulesApi extends BaseAPI {
|
|
|
25928
26866
|
* @throws {RequiredError}
|
|
25929
26867
|
* @memberof AnalyticsRulesApi
|
|
25930
26868
|
*/
|
|
25931
|
-
public
|
|
25932
|
-
return AnalyticsRulesApiFp(this.configuration).
|
|
26869
|
+
public adminV1StoresXstoreidAnalyticsRulesSyncPost(authorization: string, xstoreid: string, dataTypesAnalyticsRuleSyncRequest: DataTypesAnalyticsRuleSyncRequest, options?: RawAxiosRequestConfig) {
|
|
26870
|
+
return AnalyticsRulesApiFp(this.configuration).adminV1StoresXstoreidAnalyticsRulesSyncPost(authorization, xstoreid, dataTypesAnalyticsRuleSyncRequest, options).then((request) => request(this.axios, this.basePath));
|
|
25933
26871
|
}
|
|
25934
26872
|
}
|
|
25935
26873
|
|
|
@@ -26769,18 +27707,13 @@ export class AutomatedRefundManagementApi extends BaseAPI {
|
|
|
26769
27707
|
export const BillingDashboardApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
26770
27708
|
return {
|
|
26771
27709
|
/**
|
|
26772
|
-
*
|
|
26773
|
-
* @summary Get
|
|
26774
|
-
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
26775
|
-
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
26776
|
-
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
26777
|
-
* @param {number} [limit] Number of results per page (default: 50, max: 100)
|
|
26778
|
-
* @param {number} [offset] Number of results to skip (default: 0)
|
|
27710
|
+
* Returns all billing alerts configured for the organization
|
|
27711
|
+
* @summary Get billing alerts
|
|
26779
27712
|
* @param {*} [options] Override http request option.
|
|
26780
27713
|
* @throws {RequiredError}
|
|
26781
27714
|
*/
|
|
26782
|
-
|
|
26783
|
-
const localVarPath = `/admin/billing/
|
|
27715
|
+
adminBillingAlertsGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
27716
|
+
const localVarPath = `/admin/billing/alerts`;
|
|
26784
27717
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
26785
27718
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
26786
27719
|
let baseOptions;
|
|
@@ -26795,18 +27728,185 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
|
|
|
26795
27728
|
// authentication BearerAuth required
|
|
26796
27729
|
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
26797
27730
|
|
|
26798
|
-
if (orgId !== undefined) {
|
|
26799
|
-
localVarQueryParameter['org_id'] = orgId;
|
|
26800
|
-
}
|
|
26801
27731
|
|
|
26802
|
-
|
|
26803
|
-
|
|
27732
|
+
|
|
27733
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
27734
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
27735
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
27736
|
+
|
|
27737
|
+
return {
|
|
27738
|
+
url: toPathString(localVarUrlObj),
|
|
27739
|
+
options: localVarRequestOptions,
|
|
27740
|
+
};
|
|
27741
|
+
},
|
|
27742
|
+
/**
|
|
27743
|
+
* Deletes a billing alert configuration
|
|
27744
|
+
* @summary Delete billing alert
|
|
27745
|
+
* @param {number} id Alert ID
|
|
27746
|
+
* @param {*} [options] Override http request option.
|
|
27747
|
+
* @throws {RequiredError}
|
|
27748
|
+
*/
|
|
27749
|
+
adminBillingAlertsIdDelete: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
27750
|
+
// verify required parameter 'id' is not null or undefined
|
|
27751
|
+
assertParamExists('adminBillingAlertsIdDelete', 'id', id)
|
|
27752
|
+
const localVarPath = `/admin/billing/alerts/{id}`
|
|
27753
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
27754
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
27755
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
27756
|
+
let baseOptions;
|
|
27757
|
+
if (configuration) {
|
|
27758
|
+
baseOptions = configuration.baseOptions;
|
|
27759
|
+
}
|
|
27760
|
+
|
|
27761
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
27762
|
+
const localVarHeaderParameter = {} as any;
|
|
27763
|
+
const localVarQueryParameter = {} as any;
|
|
27764
|
+
|
|
27765
|
+
// authentication BearerAuth required
|
|
27766
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
27767
|
+
|
|
27768
|
+
|
|
27769
|
+
|
|
27770
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
27771
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
27772
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
27773
|
+
|
|
27774
|
+
return {
|
|
27775
|
+
url: toPathString(localVarUrlObj),
|
|
27776
|
+
options: localVarRequestOptions,
|
|
27777
|
+
};
|
|
27778
|
+
},
|
|
27779
|
+
/**
|
|
27780
|
+
* Updates an existing billing alert configuration
|
|
27781
|
+
* @summary Update billing alert
|
|
27782
|
+
* @param {number} id Alert ID
|
|
27783
|
+
* @param {DataTypesBillingAlertRequest} dataTypesBillingAlertRequest Updated alert configuration
|
|
27784
|
+
* @param {*} [options] Override http request option.
|
|
27785
|
+
* @throws {RequiredError}
|
|
27786
|
+
*/
|
|
27787
|
+
adminBillingAlertsIdPut: async (id: number, dataTypesBillingAlertRequest: DataTypesBillingAlertRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
27788
|
+
// verify required parameter 'id' is not null or undefined
|
|
27789
|
+
assertParamExists('adminBillingAlertsIdPut', 'id', id)
|
|
27790
|
+
// verify required parameter 'dataTypesBillingAlertRequest' is not null or undefined
|
|
27791
|
+
assertParamExists('adminBillingAlertsIdPut', 'dataTypesBillingAlertRequest', dataTypesBillingAlertRequest)
|
|
27792
|
+
const localVarPath = `/admin/billing/alerts/{id}`
|
|
27793
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
27794
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
27795
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
27796
|
+
let baseOptions;
|
|
27797
|
+
if (configuration) {
|
|
27798
|
+
baseOptions = configuration.baseOptions;
|
|
27799
|
+
}
|
|
27800
|
+
|
|
27801
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
27802
|
+
const localVarHeaderParameter = {} as any;
|
|
27803
|
+
const localVarQueryParameter = {} as any;
|
|
27804
|
+
|
|
27805
|
+
// authentication BearerAuth required
|
|
27806
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
27807
|
+
|
|
27808
|
+
|
|
27809
|
+
|
|
27810
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
27811
|
+
|
|
27812
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
27813
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
27814
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
27815
|
+
localVarRequestOptions.data = serializeDataIfNeeded(dataTypesBillingAlertRequest, localVarRequestOptions, configuration)
|
|
27816
|
+
|
|
27817
|
+
return {
|
|
27818
|
+
url: toPathString(localVarUrlObj),
|
|
27819
|
+
options: localVarRequestOptions,
|
|
27820
|
+
};
|
|
27821
|
+
},
|
|
27822
|
+
/**
|
|
27823
|
+
* Creates a new billing alert configuration for the organization
|
|
27824
|
+
* @summary Create billing alert
|
|
27825
|
+
* @param {DataTypesBillingAlertRequest} dataTypesBillingAlertRequest Alert configuration
|
|
27826
|
+
* @param {*} [options] Override http request option.
|
|
27827
|
+
* @throws {RequiredError}
|
|
27828
|
+
*/
|
|
27829
|
+
adminBillingAlertsPost: async (dataTypesBillingAlertRequest: DataTypesBillingAlertRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
27830
|
+
// verify required parameter 'dataTypesBillingAlertRequest' is not null or undefined
|
|
27831
|
+
assertParamExists('adminBillingAlertsPost', 'dataTypesBillingAlertRequest', dataTypesBillingAlertRequest)
|
|
27832
|
+
const localVarPath = `/admin/billing/alerts`;
|
|
27833
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
27834
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
27835
|
+
let baseOptions;
|
|
27836
|
+
if (configuration) {
|
|
27837
|
+
baseOptions = configuration.baseOptions;
|
|
27838
|
+
}
|
|
27839
|
+
|
|
27840
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
27841
|
+
const localVarHeaderParameter = {} as any;
|
|
27842
|
+
const localVarQueryParameter = {} as any;
|
|
27843
|
+
|
|
27844
|
+
// authentication BearerAuth required
|
|
27845
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
27846
|
+
|
|
27847
|
+
|
|
27848
|
+
|
|
27849
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
27850
|
+
|
|
27851
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
27852
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
27853
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
27854
|
+
localVarRequestOptions.data = serializeDataIfNeeded(dataTypesBillingAlertRequest, localVarRequestOptions, configuration)
|
|
27855
|
+
|
|
27856
|
+
return {
|
|
27857
|
+
url: toPathString(localVarUrlObj),
|
|
27858
|
+
options: localVarRequestOptions,
|
|
27859
|
+
};
|
|
27860
|
+
},
|
|
27861
|
+
/**
|
|
27862
|
+
* Retrieves paginated list of credit consumption records with filtering options for the authenticated user\'s organization
|
|
27863
|
+
* @summary Get credit consumption
|
|
27864
|
+
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
27865
|
+
* @param {string} [startDate] Start date (YYYY-MM-DD format, defaults to 7 days ago)
|
|
27866
|
+
* @param {string} [endDate] End date (YYYY-MM-DD format, defaults to now)
|
|
27867
|
+
* @param {number} [page] Page number (default: 1)
|
|
27868
|
+
* @param {number} [pageSize] Number of results per page (default: 20, max: 100)
|
|
27869
|
+
* @param {number} [limit] Alternative: Number of results (default: 20, max: 100)
|
|
27870
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
27871
|
+
* @param {*} [options] Override http request option.
|
|
27872
|
+
* @throws {RequiredError}
|
|
27873
|
+
*/
|
|
27874
|
+
adminBillingCreditConsumptionGet: async (orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
27875
|
+
const localVarPath = `/admin/billing/credit-consumption`;
|
|
27876
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
27877
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
27878
|
+
let baseOptions;
|
|
27879
|
+
if (configuration) {
|
|
27880
|
+
baseOptions = configuration.baseOptions;
|
|
27881
|
+
}
|
|
27882
|
+
|
|
27883
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
27884
|
+
const localVarHeaderParameter = {} as any;
|
|
27885
|
+
const localVarQueryParameter = {} as any;
|
|
27886
|
+
|
|
27887
|
+
// authentication BearerAuth required
|
|
27888
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
27889
|
+
|
|
27890
|
+
if (orgId !== undefined) {
|
|
27891
|
+
localVarQueryParameter['org_id'] = orgId;
|
|
27892
|
+
}
|
|
27893
|
+
|
|
27894
|
+
if (startDate !== undefined) {
|
|
27895
|
+
localVarQueryParameter['start_date'] = startDate;
|
|
26804
27896
|
}
|
|
26805
27897
|
|
|
26806
27898
|
if (endDate !== undefined) {
|
|
26807
27899
|
localVarQueryParameter['end_date'] = endDate;
|
|
26808
27900
|
}
|
|
26809
27901
|
|
|
27902
|
+
if (page !== undefined) {
|
|
27903
|
+
localVarQueryParameter['page'] = page;
|
|
27904
|
+
}
|
|
27905
|
+
|
|
27906
|
+
if (pageSize !== undefined) {
|
|
27907
|
+
localVarQueryParameter['page_size'] = pageSize;
|
|
27908
|
+
}
|
|
27909
|
+
|
|
26810
27910
|
if (limit !== undefined) {
|
|
26811
27911
|
localVarQueryParameter['limit'] = limit;
|
|
26812
27912
|
}
|
|
@@ -27049,6 +28149,39 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
|
|
|
27049
28149
|
|
|
27050
28150
|
|
|
27051
28151
|
|
|
28152
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
28153
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
28154
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
28155
|
+
|
|
28156
|
+
return {
|
|
28157
|
+
url: toPathString(localVarUrlObj),
|
|
28158
|
+
options: localVarRequestOptions,
|
|
28159
|
+
};
|
|
28160
|
+
},
|
|
28161
|
+
/**
|
|
28162
|
+
* Returns comprehensive billing overview including plan, next charge, balance, and projected runout for org admins
|
|
28163
|
+
* @summary Get org admin billing overview
|
|
28164
|
+
* @param {*} [options] Override http request option.
|
|
28165
|
+
* @throws {RequiredError}
|
|
28166
|
+
*/
|
|
28167
|
+
adminBillingOrgOverviewGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
28168
|
+
const localVarPath = `/admin/billing/org-overview`;
|
|
28169
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
28170
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
28171
|
+
let baseOptions;
|
|
28172
|
+
if (configuration) {
|
|
28173
|
+
baseOptions = configuration.baseOptions;
|
|
28174
|
+
}
|
|
28175
|
+
|
|
28176
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
28177
|
+
const localVarHeaderParameter = {} as any;
|
|
28178
|
+
const localVarQueryParameter = {} as any;
|
|
28179
|
+
|
|
28180
|
+
// authentication BearerAuth required
|
|
28181
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
28182
|
+
|
|
28183
|
+
|
|
28184
|
+
|
|
27052
28185
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
27053
28186
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
27054
28187
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -27213,6 +28346,39 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
|
|
|
27213
28346
|
|
|
27214
28347
|
|
|
27215
28348
|
|
|
28349
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
28350
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
28351
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
28352
|
+
|
|
28353
|
+
return {
|
|
28354
|
+
url: toPathString(localVarUrlObj),
|
|
28355
|
+
options: localVarRequestOptions,
|
|
28356
|
+
};
|
|
28357
|
+
},
|
|
28358
|
+
/**
|
|
28359
|
+
* Returns saved payment cards from Razorpay for the organization
|
|
28360
|
+
* @summary Get saved payment cards
|
|
28361
|
+
* @param {*} [options] Override http request option.
|
|
28362
|
+
* @throws {RequiredError}
|
|
28363
|
+
*/
|
|
28364
|
+
adminBillingSavedCardsGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
28365
|
+
const localVarPath = `/admin/billing/saved-cards`;
|
|
28366
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
28367
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
28368
|
+
let baseOptions;
|
|
28369
|
+
if (configuration) {
|
|
28370
|
+
baseOptions = configuration.baseOptions;
|
|
28371
|
+
}
|
|
28372
|
+
|
|
28373
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
28374
|
+
const localVarHeaderParameter = {} as any;
|
|
28375
|
+
const localVarQueryParameter = {} as any;
|
|
28376
|
+
|
|
28377
|
+
// authentication BearerAuth required
|
|
28378
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
28379
|
+
|
|
28380
|
+
|
|
28381
|
+
|
|
27216
28382
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
27217
28383
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
27218
28384
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -27232,19 +28398,73 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
|
|
|
27232
28398
|
export const BillingDashboardApiFp = function(configuration?: Configuration) {
|
|
27233
28399
|
const localVarAxiosParamCreator = BillingDashboardApiAxiosParamCreator(configuration)
|
|
27234
28400
|
return {
|
|
28401
|
+
/**
|
|
28402
|
+
* Returns all billing alerts configured for the organization
|
|
28403
|
+
* @summary Get billing alerts
|
|
28404
|
+
* @param {*} [options] Override http request option.
|
|
28405
|
+
* @throws {RequiredError}
|
|
28406
|
+
*/
|
|
28407
|
+
async adminBillingAlertsGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesGenericResponseDataTypesBillingAlertsResponse>> {
|
|
28408
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingAlertsGet(options);
|
|
28409
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
28410
|
+
const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingAlertsGet']?.[localVarOperationServerIndex]?.url;
|
|
28411
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
28412
|
+
},
|
|
28413
|
+
/**
|
|
28414
|
+
* Deletes a billing alert configuration
|
|
28415
|
+
* @summary Delete billing alert
|
|
28416
|
+
* @param {number} id Alert ID
|
|
28417
|
+
* @param {*} [options] Override http request option.
|
|
28418
|
+
* @throws {RequiredError}
|
|
28419
|
+
*/
|
|
28420
|
+
async adminBillingAlertsIdDelete(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesGenericResponseAny>> {
|
|
28421
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingAlertsIdDelete(id, options);
|
|
28422
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
28423
|
+
const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingAlertsIdDelete']?.[localVarOperationServerIndex]?.url;
|
|
28424
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
28425
|
+
},
|
|
28426
|
+
/**
|
|
28427
|
+
* Updates an existing billing alert configuration
|
|
28428
|
+
* @summary Update billing alert
|
|
28429
|
+
* @param {number} id Alert ID
|
|
28430
|
+
* @param {DataTypesBillingAlertRequest} dataTypesBillingAlertRequest Updated alert configuration
|
|
28431
|
+
* @param {*} [options] Override http request option.
|
|
28432
|
+
* @throws {RequiredError}
|
|
28433
|
+
*/
|
|
28434
|
+
async adminBillingAlertsIdPut(id: number, dataTypesBillingAlertRequest: DataTypesBillingAlertRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesGenericResponseDataTypesBillingAlert>> {
|
|
28435
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingAlertsIdPut(id, dataTypesBillingAlertRequest, options);
|
|
28436
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
28437
|
+
const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingAlertsIdPut']?.[localVarOperationServerIndex]?.url;
|
|
28438
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
28439
|
+
},
|
|
28440
|
+
/**
|
|
28441
|
+
* Creates a new billing alert configuration for the organization
|
|
28442
|
+
* @summary Create billing alert
|
|
28443
|
+
* @param {DataTypesBillingAlertRequest} dataTypesBillingAlertRequest Alert configuration
|
|
28444
|
+
* @param {*} [options] Override http request option.
|
|
28445
|
+
* @throws {RequiredError}
|
|
28446
|
+
*/
|
|
28447
|
+
async adminBillingAlertsPost(dataTypesBillingAlertRequest: DataTypesBillingAlertRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesGenericResponseDataTypesBillingAlert>> {
|
|
28448
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingAlertsPost(dataTypesBillingAlertRequest, options);
|
|
28449
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
28450
|
+
const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingAlertsPost']?.[localVarOperationServerIndex]?.url;
|
|
28451
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
28452
|
+
},
|
|
27235
28453
|
/**
|
|
27236
28454
|
* Retrieves paginated list of credit consumption records with filtering options for the authenticated user\'s organization
|
|
27237
28455
|
* @summary Get credit consumption
|
|
27238
28456
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
27239
|
-
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
27240
|
-
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
27241
|
-
* @param {number} [
|
|
27242
|
-
* @param {number} [
|
|
28457
|
+
* @param {string} [startDate] Start date (YYYY-MM-DD format, defaults to 7 days ago)
|
|
28458
|
+
* @param {string} [endDate] End date (YYYY-MM-DD format, defaults to now)
|
|
28459
|
+
* @param {number} [page] Page number (default: 1)
|
|
28460
|
+
* @param {number} [pageSize] Number of results per page (default: 20, max: 100)
|
|
28461
|
+
* @param {number} [limit] Alternative: Number of results (default: 20, max: 100)
|
|
28462
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
27243
28463
|
* @param {*} [options] Override http request option.
|
|
27244
28464
|
* @throws {RequiredError}
|
|
27245
28465
|
*/
|
|
27246
|
-
async adminBillingCreditConsumptionGet(orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesGenericResponseArrayBillingServiceCreditConsumptionSummary>> {
|
|
27247
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingCreditConsumptionGet(orgId, startDate, endDate, limit, offset, options);
|
|
28466
|
+
async adminBillingCreditConsumptionGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesGenericResponseArrayBillingServiceCreditConsumptionSummary>> {
|
|
28467
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingCreditConsumptionGet(orgId, startDate, endDate, page, pageSize, limit, offset, options);
|
|
27248
28468
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
27249
28469
|
const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingCreditConsumptionGet']?.[localVarOperationServerIndex]?.url;
|
|
27250
28470
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -27317,6 +28537,18 @@ export const BillingDashboardApiFp = function(configuration?: Configuration) {
|
|
|
27317
28537
|
const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingOrdersGet']?.[localVarOperationServerIndex]?.url;
|
|
27318
28538
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
27319
28539
|
},
|
|
28540
|
+
/**
|
|
28541
|
+
* Returns comprehensive billing overview including plan, next charge, balance, and projected runout for org admins
|
|
28542
|
+
* @summary Get org admin billing overview
|
|
28543
|
+
* @param {*} [options] Override http request option.
|
|
28544
|
+
* @throws {RequiredError}
|
|
28545
|
+
*/
|
|
28546
|
+
async adminBillingOrgOverviewGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesGenericResponseDataTypesBillingOverviewResponse>> {
|
|
28547
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingOrgOverviewGet(options);
|
|
28548
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
28549
|
+
const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingOrgOverviewGet']?.[localVarOperationServerIndex]?.url;
|
|
28550
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
28551
|
+
},
|
|
27320
28552
|
/**
|
|
27321
28553
|
* Retrieves billing summary for all organizations with filtering options
|
|
27322
28554
|
* @summary Get organization billing summary
|
|
@@ -27366,6 +28598,18 @@ export const BillingDashboardApiFp = function(configuration?: Configuration) {
|
|
|
27366
28598
|
const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingPaymentTransactionsGet']?.[localVarOperationServerIndex]?.url;
|
|
27367
28599
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
27368
28600
|
},
|
|
28601
|
+
/**
|
|
28602
|
+
* Returns saved payment cards from Razorpay for the organization
|
|
28603
|
+
* @summary Get saved payment cards
|
|
28604
|
+
* @param {*} [options] Override http request option.
|
|
28605
|
+
* @throws {RequiredError}
|
|
28606
|
+
*/
|
|
28607
|
+
async adminBillingSavedCardsGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesGenericResponseDataTypesSavedCardsResponse>> {
|
|
28608
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingSavedCardsGet(options);
|
|
28609
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
28610
|
+
const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingSavedCardsGet']?.[localVarOperationServerIndex]?.url;
|
|
28611
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
28612
|
+
},
|
|
27369
28613
|
}
|
|
27370
28614
|
};
|
|
27371
28615
|
|
|
@@ -27376,19 +28620,61 @@ export const BillingDashboardApiFp = function(configuration?: Configuration) {
|
|
|
27376
28620
|
export const BillingDashboardApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
27377
28621
|
const localVarFp = BillingDashboardApiFp(configuration)
|
|
27378
28622
|
return {
|
|
28623
|
+
/**
|
|
28624
|
+
* Returns all billing alerts configured for the organization
|
|
28625
|
+
* @summary Get billing alerts
|
|
28626
|
+
* @param {*} [options] Override http request option.
|
|
28627
|
+
* @throws {RequiredError}
|
|
28628
|
+
*/
|
|
28629
|
+
adminBillingAlertsGet(options?: RawAxiosRequestConfig): AxiosPromise<DataTypesGenericResponseDataTypesBillingAlertsResponse> {
|
|
28630
|
+
return localVarFp.adminBillingAlertsGet(options).then((request) => request(axios, basePath));
|
|
28631
|
+
},
|
|
28632
|
+
/**
|
|
28633
|
+
* Deletes a billing alert configuration
|
|
28634
|
+
* @summary Delete billing alert
|
|
28635
|
+
* @param {number} id Alert ID
|
|
28636
|
+
* @param {*} [options] Override http request option.
|
|
28637
|
+
* @throws {RequiredError}
|
|
28638
|
+
*/
|
|
28639
|
+
adminBillingAlertsIdDelete(id: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesGenericResponseAny> {
|
|
28640
|
+
return localVarFp.adminBillingAlertsIdDelete(id, options).then((request) => request(axios, basePath));
|
|
28641
|
+
},
|
|
28642
|
+
/**
|
|
28643
|
+
* Updates an existing billing alert configuration
|
|
28644
|
+
* @summary Update billing alert
|
|
28645
|
+
* @param {number} id Alert ID
|
|
28646
|
+
* @param {DataTypesBillingAlertRequest} dataTypesBillingAlertRequest Updated alert configuration
|
|
28647
|
+
* @param {*} [options] Override http request option.
|
|
28648
|
+
* @throws {RequiredError}
|
|
28649
|
+
*/
|
|
28650
|
+
adminBillingAlertsIdPut(id: number, dataTypesBillingAlertRequest: DataTypesBillingAlertRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesGenericResponseDataTypesBillingAlert> {
|
|
28651
|
+
return localVarFp.adminBillingAlertsIdPut(id, dataTypesBillingAlertRequest, options).then((request) => request(axios, basePath));
|
|
28652
|
+
},
|
|
28653
|
+
/**
|
|
28654
|
+
* Creates a new billing alert configuration for the organization
|
|
28655
|
+
* @summary Create billing alert
|
|
28656
|
+
* @param {DataTypesBillingAlertRequest} dataTypesBillingAlertRequest Alert configuration
|
|
28657
|
+
* @param {*} [options] Override http request option.
|
|
28658
|
+
* @throws {RequiredError}
|
|
28659
|
+
*/
|
|
28660
|
+
adminBillingAlertsPost(dataTypesBillingAlertRequest: DataTypesBillingAlertRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesGenericResponseDataTypesBillingAlert> {
|
|
28661
|
+
return localVarFp.adminBillingAlertsPost(dataTypesBillingAlertRequest, options).then((request) => request(axios, basePath));
|
|
28662
|
+
},
|
|
27379
28663
|
/**
|
|
27380
28664
|
* Retrieves paginated list of credit consumption records with filtering options for the authenticated user\'s organization
|
|
27381
28665
|
* @summary Get credit consumption
|
|
27382
28666
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
27383
|
-
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
27384
|
-
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
27385
|
-
* @param {number} [
|
|
27386
|
-
* @param {number} [
|
|
28667
|
+
* @param {string} [startDate] Start date (YYYY-MM-DD format, defaults to 7 days ago)
|
|
28668
|
+
* @param {string} [endDate] End date (YYYY-MM-DD format, defaults to now)
|
|
28669
|
+
* @param {number} [page] Page number (default: 1)
|
|
28670
|
+
* @param {number} [pageSize] Number of results per page (default: 20, max: 100)
|
|
28671
|
+
* @param {number} [limit] Alternative: Number of results (default: 20, max: 100)
|
|
28672
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
27387
28673
|
* @param {*} [options] Override http request option.
|
|
27388
28674
|
* @throws {RequiredError}
|
|
27389
28675
|
*/
|
|
27390
|
-
adminBillingCreditConsumptionGet(orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesGenericResponseArrayBillingServiceCreditConsumptionSummary> {
|
|
27391
|
-
return localVarFp.adminBillingCreditConsumptionGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(axios, basePath));
|
|
28676
|
+
adminBillingCreditConsumptionGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesGenericResponseArrayBillingServiceCreditConsumptionSummary> {
|
|
28677
|
+
return localVarFp.adminBillingCreditConsumptionGet(orgId, startDate, endDate, page, pageSize, limit, offset, options).then((request) => request(axios, basePath));
|
|
27392
28678
|
},
|
|
27393
28679
|
/**
|
|
27394
28680
|
* Retrieves paginated list of credit ledger entries with filtering options for the authenticated user\'s organization
|
|
@@ -27446,6 +28732,15 @@ export const BillingDashboardApiFactory = function (configuration?: Configuratio
|
|
|
27446
28732
|
adminBillingOrdersGet(orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesGenericResponseArrayBillingServiceOrderSummary> {
|
|
27447
28733
|
return localVarFp.adminBillingOrdersGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(axios, basePath));
|
|
27448
28734
|
},
|
|
28735
|
+
/**
|
|
28736
|
+
* Returns comprehensive billing overview including plan, next charge, balance, and projected runout for org admins
|
|
28737
|
+
* @summary Get org admin billing overview
|
|
28738
|
+
* @param {*} [options] Override http request option.
|
|
28739
|
+
* @throws {RequiredError}
|
|
28740
|
+
*/
|
|
28741
|
+
adminBillingOrgOverviewGet(options?: RawAxiosRequestConfig): AxiosPromise<DataTypesGenericResponseDataTypesBillingOverviewResponse> {
|
|
28742
|
+
return localVarFp.adminBillingOrgOverviewGet(options).then((request) => request(axios, basePath));
|
|
28743
|
+
},
|
|
27449
28744
|
/**
|
|
27450
28745
|
* Retrieves billing summary for all organizations with filtering options
|
|
27451
28746
|
* @summary Get organization billing summary
|
|
@@ -27486,6 +28781,15 @@ export const BillingDashboardApiFactory = function (configuration?: Configuratio
|
|
|
27486
28781
|
adminBillingPaymentTransactionsGet(orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesGenericResponseArrayBillingServicePaymentTransactionSummary> {
|
|
27487
28782
|
return localVarFp.adminBillingPaymentTransactionsGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(axios, basePath));
|
|
27488
28783
|
},
|
|
28784
|
+
/**
|
|
28785
|
+
* Returns saved payment cards from Razorpay for the organization
|
|
28786
|
+
* @summary Get saved payment cards
|
|
28787
|
+
* @param {*} [options] Override http request option.
|
|
28788
|
+
* @throws {RequiredError}
|
|
28789
|
+
*/
|
|
28790
|
+
adminBillingSavedCardsGet(options?: RawAxiosRequestConfig): AxiosPromise<DataTypesGenericResponseDataTypesSavedCardsResponse> {
|
|
28791
|
+
return localVarFp.adminBillingSavedCardsGet(options).then((request) => request(axios, basePath));
|
|
28792
|
+
},
|
|
27489
28793
|
};
|
|
27490
28794
|
};
|
|
27491
28795
|
|
|
@@ -27496,20 +28800,70 @@ export const BillingDashboardApiFactory = function (configuration?: Configuratio
|
|
|
27496
28800
|
* @extends {BaseAPI}
|
|
27497
28801
|
*/
|
|
27498
28802
|
export class BillingDashboardApi extends BaseAPI {
|
|
28803
|
+
/**
|
|
28804
|
+
* Returns all billing alerts configured for the organization
|
|
28805
|
+
* @summary Get billing alerts
|
|
28806
|
+
* @param {*} [options] Override http request option.
|
|
28807
|
+
* @throws {RequiredError}
|
|
28808
|
+
* @memberof BillingDashboardApi
|
|
28809
|
+
*/
|
|
28810
|
+
public adminBillingAlertsGet(options?: RawAxiosRequestConfig) {
|
|
28811
|
+
return BillingDashboardApiFp(this.configuration).adminBillingAlertsGet(options).then((request) => request(this.axios, this.basePath));
|
|
28812
|
+
}
|
|
28813
|
+
|
|
28814
|
+
/**
|
|
28815
|
+
* Deletes a billing alert configuration
|
|
28816
|
+
* @summary Delete billing alert
|
|
28817
|
+
* @param {number} id Alert ID
|
|
28818
|
+
* @param {*} [options] Override http request option.
|
|
28819
|
+
* @throws {RequiredError}
|
|
28820
|
+
* @memberof BillingDashboardApi
|
|
28821
|
+
*/
|
|
28822
|
+
public adminBillingAlertsIdDelete(id: number, options?: RawAxiosRequestConfig) {
|
|
28823
|
+
return BillingDashboardApiFp(this.configuration).adminBillingAlertsIdDelete(id, options).then((request) => request(this.axios, this.basePath));
|
|
28824
|
+
}
|
|
28825
|
+
|
|
28826
|
+
/**
|
|
28827
|
+
* Updates an existing billing alert configuration
|
|
28828
|
+
* @summary Update billing alert
|
|
28829
|
+
* @param {number} id Alert ID
|
|
28830
|
+
* @param {DataTypesBillingAlertRequest} dataTypesBillingAlertRequest Updated alert configuration
|
|
28831
|
+
* @param {*} [options] Override http request option.
|
|
28832
|
+
* @throws {RequiredError}
|
|
28833
|
+
* @memberof BillingDashboardApi
|
|
28834
|
+
*/
|
|
28835
|
+
public adminBillingAlertsIdPut(id: number, dataTypesBillingAlertRequest: DataTypesBillingAlertRequest, options?: RawAxiosRequestConfig) {
|
|
28836
|
+
return BillingDashboardApiFp(this.configuration).adminBillingAlertsIdPut(id, dataTypesBillingAlertRequest, options).then((request) => request(this.axios, this.basePath));
|
|
28837
|
+
}
|
|
28838
|
+
|
|
28839
|
+
/**
|
|
28840
|
+
* Creates a new billing alert configuration for the organization
|
|
28841
|
+
* @summary Create billing alert
|
|
28842
|
+
* @param {DataTypesBillingAlertRequest} dataTypesBillingAlertRequest Alert configuration
|
|
28843
|
+
* @param {*} [options] Override http request option.
|
|
28844
|
+
* @throws {RequiredError}
|
|
28845
|
+
* @memberof BillingDashboardApi
|
|
28846
|
+
*/
|
|
28847
|
+
public adminBillingAlertsPost(dataTypesBillingAlertRequest: DataTypesBillingAlertRequest, options?: RawAxiosRequestConfig) {
|
|
28848
|
+
return BillingDashboardApiFp(this.configuration).adminBillingAlertsPost(dataTypesBillingAlertRequest, options).then((request) => request(this.axios, this.basePath));
|
|
28849
|
+
}
|
|
28850
|
+
|
|
27499
28851
|
/**
|
|
27500
28852
|
* Retrieves paginated list of credit consumption records with filtering options for the authenticated user\'s organization
|
|
27501
28853
|
* @summary Get credit consumption
|
|
27502
28854
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
27503
|
-
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
27504
|
-
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
27505
|
-
* @param {number} [
|
|
27506
|
-
* @param {number} [
|
|
28855
|
+
* @param {string} [startDate] Start date (YYYY-MM-DD format, defaults to 7 days ago)
|
|
28856
|
+
* @param {string} [endDate] End date (YYYY-MM-DD format, defaults to now)
|
|
28857
|
+
* @param {number} [page] Page number (default: 1)
|
|
28858
|
+
* @param {number} [pageSize] Number of results per page (default: 20, max: 100)
|
|
28859
|
+
* @param {number} [limit] Alternative: Number of results (default: 20, max: 100)
|
|
28860
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
27507
28861
|
* @param {*} [options] Override http request option.
|
|
27508
28862
|
* @throws {RequiredError}
|
|
27509
28863
|
* @memberof BillingDashboardApi
|
|
27510
28864
|
*/
|
|
27511
|
-
public adminBillingCreditConsumptionGet(orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig) {
|
|
27512
|
-
return BillingDashboardApiFp(this.configuration).adminBillingCreditConsumptionGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(this.axios, this.basePath));
|
|
28865
|
+
public adminBillingCreditConsumptionGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, options?: RawAxiosRequestConfig) {
|
|
28866
|
+
return BillingDashboardApiFp(this.configuration).adminBillingCreditConsumptionGet(orgId, startDate, endDate, page, pageSize, limit, offset, options).then((request) => request(this.axios, this.basePath));
|
|
27513
28867
|
}
|
|
27514
28868
|
|
|
27515
28869
|
/**
|
|
@@ -27576,6 +28930,17 @@ export class BillingDashboardApi extends BaseAPI {
|
|
|
27576
28930
|
return BillingDashboardApiFp(this.configuration).adminBillingOrdersGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(this.axios, this.basePath));
|
|
27577
28931
|
}
|
|
27578
28932
|
|
|
28933
|
+
/**
|
|
28934
|
+
* Returns comprehensive billing overview including plan, next charge, balance, and projected runout for org admins
|
|
28935
|
+
* @summary Get org admin billing overview
|
|
28936
|
+
* @param {*} [options] Override http request option.
|
|
28937
|
+
* @throws {RequiredError}
|
|
28938
|
+
* @memberof BillingDashboardApi
|
|
28939
|
+
*/
|
|
28940
|
+
public adminBillingOrgOverviewGet(options?: RawAxiosRequestConfig) {
|
|
28941
|
+
return BillingDashboardApiFp(this.configuration).adminBillingOrgOverviewGet(options).then((request) => request(this.axios, this.basePath));
|
|
28942
|
+
}
|
|
28943
|
+
|
|
27579
28944
|
/**
|
|
27580
28945
|
* Retrieves billing summary for all organizations with filtering options
|
|
27581
28946
|
* @summary Get organization billing summary
|
|
@@ -27621,6 +28986,17 @@ export class BillingDashboardApi extends BaseAPI {
|
|
|
27621
28986
|
public adminBillingPaymentTransactionsGet(orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig) {
|
|
27622
28987
|
return BillingDashboardApiFp(this.configuration).adminBillingPaymentTransactionsGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(this.axios, this.basePath));
|
|
27623
28988
|
}
|
|
28989
|
+
|
|
28990
|
+
/**
|
|
28991
|
+
* Returns saved payment cards from Razorpay for the organization
|
|
28992
|
+
* @summary Get saved payment cards
|
|
28993
|
+
* @param {*} [options] Override http request option.
|
|
28994
|
+
* @throws {RequiredError}
|
|
28995
|
+
* @memberof BillingDashboardApi
|
|
28996
|
+
*/
|
|
28997
|
+
public adminBillingSavedCardsGet(options?: RawAxiosRequestConfig) {
|
|
28998
|
+
return BillingDashboardApiFp(this.configuration).adminBillingSavedCardsGet(options).then((request) => request(this.axios, this.basePath));
|
|
28999
|
+
}
|
|
27624
29000
|
}
|
|
27625
29001
|
|
|
27626
29002
|
|