@seekora-ai/admin-api 1.1.83 → 1.1.85

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/api.ts CHANGED
@@ -13640,6 +13640,99 @@ export const DataTypesCreateCustomWordListRequestTypeEnum = {
13640
13640
 
13641
13641
  export type DataTypesCreateCustomWordListRequestTypeEnum = typeof DataTypesCreateCustomWordListRequestTypeEnum[keyof typeof DataTypesCreateCustomWordListRequestTypeEnum];
13642
13642
 
13643
+ /**
13644
+ *
13645
+ * @export
13646
+ * @interface DataTypesCreateExperimentRequest
13647
+ */
13648
+ export interface DataTypesCreateExperimentRequest {
13649
+ /**
13650
+ *
13651
+ * @type {object}
13652
+ * @memberof DataTypesCreateExperimentRequest
13653
+ */
13654
+ 'audience_filter'?: object;
13655
+ /**
13656
+ *
13657
+ * @type {string}
13658
+ * @memberof DataTypesCreateExperimentRequest
13659
+ */
13660
+ 'description'?: string;
13661
+ /**
13662
+ *
13663
+ * @type {string}
13664
+ * @memberof DataTypesCreateExperimentRequest
13665
+ */
13666
+ 'experiment_id': string;
13667
+ /**
13668
+ *
13669
+ * @type {DataTypesExperimentType}
13670
+ * @memberof DataTypesCreateExperimentRequest
13671
+ */
13672
+ 'experiment_type': DataTypesExperimentType;
13673
+ /**
13674
+ *
13675
+ * @type {string}
13676
+ * @memberof DataTypesCreateExperimentRequest
13677
+ */
13678
+ 'hypothesis'?: string;
13679
+ /**
13680
+ *
13681
+ * @type {number}
13682
+ * @memberof DataTypesCreateExperimentRequest
13683
+ */
13684
+ 'max_duration_days'?: number;
13685
+ /**
13686
+ *
13687
+ * @type {number}
13688
+ * @memberof DataTypesCreateExperimentRequest
13689
+ */
13690
+ 'min_sample_size'?: number;
13691
+ /**
13692
+ *
13693
+ * @type {string}
13694
+ * @memberof DataTypesCreateExperimentRequest
13695
+ */
13696
+ 'name': string;
13697
+ /**
13698
+ *
13699
+ * @type {string}
13700
+ * @memberof DataTypesCreateExperimentRequest
13701
+ */
13702
+ 'primary_metric': string;
13703
+ /**
13704
+ *
13705
+ * @type {string}
13706
+ * @memberof DataTypesCreateExperimentRequest
13707
+ */
13708
+ 'scheduled_end_at'?: string;
13709
+ /**
13710
+ *
13711
+ * @type {string}
13712
+ * @memberof DataTypesCreateExperimentRequest
13713
+ */
13714
+ 'scheduled_start_at'?: string;
13715
+ /**
13716
+ *
13717
+ * @type {Array<string>}
13718
+ * @memberof DataTypesCreateExperimentRequest
13719
+ */
13720
+ 'secondary_metrics'?: Array<string>;
13721
+ /**
13722
+ *
13723
+ * @type {number}
13724
+ * @memberof DataTypesCreateExperimentRequest
13725
+ */
13726
+ 'traffic_percentage'?: number;
13727
+ /**
13728
+ *
13729
+ * @type {Array<DataTypesExperimentVariant>}
13730
+ * @memberof DataTypesCreateExperimentRequest
13731
+ */
13732
+ 'variants': Array<DataTypesExperimentVariant>;
13733
+ }
13734
+
13735
+
13643
13736
  /**
13644
13737
  *
13645
13738
  * @export
@@ -16325,6 +16418,18 @@ export interface DataTypesErrorMetaResponse {
16325
16418
  * @interface DataTypesEventPayload
16326
16419
  */
16327
16420
  export interface DataTypesEventPayload {
16421
+ /**
16422
+ * ============================================================================ A/B Testing (V3) ============================================================================
16423
+ * @type {string}
16424
+ * @memberof DataTypesEventPayload
16425
+ */
16426
+ 'ab_test_id'?: string;
16427
+ /**
16428
+ * Variant assignment
16429
+ * @type {string}
16430
+ * @memberof DataTypesEventPayload
16431
+ */
16432
+ 'ab_variant'?: string;
16328
16433
  /**
16329
16434
  * ============================================================================ Analytics & Metadata ============================================================================
16330
16435
  * @type {Array<string>}
@@ -16373,6 +16478,12 @@ export interface DataTypesEventPayload {
16373
16478
  * @memberof DataTypesEventPayload
16374
16479
  */
16375
16480
  'city'?: string;
16481
+ /**
16482
+ * new_tab, same_page, in_page
16483
+ * @type {string}
16484
+ * @memberof DataTypesEventPayload
16485
+ */
16486
+ 'click_target'?: string;
16376
16487
  /**
16377
16488
  * query, product, category, brand, trending, recent
16378
16489
  * @type {string}
@@ -16451,6 +16562,12 @@ export interface DataTypesEventPayload {
16451
16562
  * @memberof DataTypesEventPayload
16452
16563
  */
16453
16564
  'custom_json'?: string;
16565
+ /**
16566
+ * ============================================================================ Navigation Tracking (V3) ============================================================================
16567
+ * @type {string}
16568
+ * @memberof DataTypesEventPayload
16569
+ */
16570
+ 'destination_url'?: string;
16454
16571
  /**
16455
16572
  *
16456
16573
  * @type {string}
@@ -16685,6 +16802,12 @@ export interface DataTypesEventPayload {
16685
16802
  * @memberof DataTypesEventPayload
16686
16803
  */
16687
16804
  'session_id'?: string;
16805
+ /**
16806
+ * URL where click originated
16807
+ * @type {string}
16808
+ * @memberof DataTypesEventPayload
16809
+ */
16810
+ 'source_url'?: string;
16688
16811
  /**
16689
16812
  *
16690
16813
  * @type {string}
@@ -16818,6 +16941,435 @@ export interface DataTypesEventPayload {
16818
16941
  */
16819
16942
  'xstoreid'?: string;
16820
16943
  }
16944
+ /**
16945
+ *
16946
+ * @export
16947
+ * @interface DataTypesExperiment
16948
+ */
16949
+ export interface DataTypesExperiment {
16950
+ /**
16951
+ *
16952
+ * @type {object}
16953
+ * @memberof DataTypesExperiment
16954
+ */
16955
+ 'audience_filter'?: object;
16956
+ /**
16957
+ *
16958
+ * @type {number}
16959
+ * @memberof DataTypesExperiment
16960
+ */
16961
+ 'confidence_level'?: number;
16962
+ /**
16963
+ *
16964
+ * @type {string}
16965
+ * @memberof DataTypesExperiment
16966
+ */
16967
+ 'created_at'?: string;
16968
+ /**
16969
+ *
16970
+ * @type {number}
16971
+ * @memberof DataTypesExperiment
16972
+ */
16973
+ 'created_by'?: number;
16974
+ /**
16975
+ *
16976
+ * @type {string}
16977
+ * @memberof DataTypesExperiment
16978
+ */
16979
+ 'description'?: string;
16980
+ /**
16981
+ *
16982
+ * @type {string}
16983
+ * @memberof DataTypesExperiment
16984
+ */
16985
+ 'ended_at'?: string;
16986
+ /**
16987
+ *
16988
+ * @type {string}
16989
+ * @memberof DataTypesExperiment
16990
+ */
16991
+ 'experiment_id'?: string;
16992
+ /**
16993
+ *
16994
+ * @type {DataTypesExperimentType}
16995
+ * @memberof DataTypesExperiment
16996
+ */
16997
+ 'experiment_type'?: DataTypesExperimentType;
16998
+ /**
16999
+ *
17000
+ * @type {object}
17001
+ * @memberof DataTypesExperiment
17002
+ */
17003
+ 'final_results'?: object;
17004
+ /**
17005
+ *
17006
+ * @type {string}
17007
+ * @memberof DataTypesExperiment
17008
+ */
17009
+ 'hypothesis'?: string;
17010
+ /**
17011
+ *
17012
+ * @type {number}
17013
+ * @memberof DataTypesExperiment
17014
+ */
17015
+ 'id'?: number;
17016
+ /**
17017
+ *
17018
+ * @type {number}
17019
+ * @memberof DataTypesExperiment
17020
+ */
17021
+ 'max_duration_days'?: number;
17022
+ /**
17023
+ *
17024
+ * @type {number}
17025
+ * @memberof DataTypesExperiment
17026
+ */
17027
+ 'min_sample_size'?: number;
17028
+ /**
17029
+ *
17030
+ * @type {string}
17031
+ * @memberof DataTypesExperiment
17032
+ */
17033
+ 'name'?: string;
17034
+ /**
17035
+ *
17036
+ * @type {number}
17037
+ * @memberof DataTypesExperiment
17038
+ */
17039
+ 'org_id'?: number;
17040
+ /**
17041
+ *
17042
+ * @type {string}
17043
+ * @memberof DataTypesExperiment
17044
+ */
17045
+ 'primary_metric'?: string;
17046
+ /**
17047
+ *
17048
+ * @type {string}
17049
+ * @memberof DataTypesExperiment
17050
+ */
17051
+ 'scheduled_end_at'?: string;
17052
+ /**
17053
+ *
17054
+ * @type {string}
17055
+ * @memberof DataTypesExperiment
17056
+ */
17057
+ 'scheduled_start_at'?: string;
17058
+ /**
17059
+ *
17060
+ * @type {Array<string>}
17061
+ * @memberof DataTypesExperiment
17062
+ */
17063
+ 'secondary_metrics'?: Array<string>;
17064
+ /**
17065
+ *
17066
+ * @type {string}
17067
+ * @memberof DataTypesExperiment
17068
+ */
17069
+ 'started_at'?: string;
17070
+ /**
17071
+ *
17072
+ * @type {number}
17073
+ * @memberof DataTypesExperiment
17074
+ */
17075
+ 'statistical_significance'?: number;
17076
+ /**
17077
+ *
17078
+ * @type {DataTypesExperimentStatus}
17079
+ * @memberof DataTypesExperiment
17080
+ */
17081
+ 'status'?: DataTypesExperimentStatus;
17082
+ /**
17083
+ *
17084
+ * @type {number}
17085
+ * @memberof DataTypesExperiment
17086
+ */
17087
+ 'store_id'?: number;
17088
+ /**
17089
+ *
17090
+ * @type {number}
17091
+ * @memberof DataTypesExperiment
17092
+ */
17093
+ 'traffic_percentage'?: number;
17094
+ /**
17095
+ *
17096
+ * @type {string}
17097
+ * @memberof DataTypesExperiment
17098
+ */
17099
+ 'updated_at'?: string;
17100
+ /**
17101
+ *
17102
+ * @type {number}
17103
+ * @memberof DataTypesExperiment
17104
+ */
17105
+ 'updated_by'?: number;
17106
+ /**
17107
+ *
17108
+ * @type {Array<DataTypesExperimentVariant>}
17109
+ * @memberof DataTypesExperiment
17110
+ */
17111
+ 'variants'?: Array<DataTypesExperimentVariant>;
17112
+ /**
17113
+ *
17114
+ * @type {string}
17115
+ * @memberof DataTypesExperiment
17116
+ */
17117
+ 'winner_variant'?: string;
17118
+ }
17119
+
17120
+
17121
+ /**
17122
+ *
17123
+ * @export
17124
+ * @interface DataTypesExperimentAssignment
17125
+ */
17126
+ export interface DataTypesExperimentAssignment {
17127
+ /**
17128
+ *
17129
+ * @type {string}
17130
+ * @memberof DataTypesExperimentAssignment
17131
+ */
17132
+ 'experiment_id'?: string;
17133
+ /**
17134
+ *
17135
+ * @type {{ [key: string]: any; }}
17136
+ * @memberof DataTypesExperimentAssignment
17137
+ */
17138
+ 'variant_config'?: { [key: string]: any; };
17139
+ /**
17140
+ *
17141
+ * @type {string}
17142
+ * @memberof DataTypesExperimentAssignment
17143
+ */
17144
+ 'variant_id'?: string;
17145
+ }
17146
+ /**
17147
+ *
17148
+ * @export
17149
+ * @interface DataTypesExperimentResults
17150
+ */
17151
+ export interface DataTypesExperimentResults {
17152
+ /**
17153
+ *
17154
+ * @type {number}
17155
+ * @memberof DataTypesExperimentResults
17156
+ */
17157
+ 'confidence_level'?: number;
17158
+ /**
17159
+ *
17160
+ * @type {number}
17161
+ * @memberof DataTypesExperimentResults
17162
+ */
17163
+ 'conversion_lift'?: number;
17164
+ /**
17165
+ *
17166
+ * @type {number}
17167
+ * @memberof DataTypesExperimentResults
17168
+ */
17169
+ 'ctr_lift'?: number;
17170
+ /**
17171
+ *
17172
+ * @type {string}
17173
+ * @memberof DataTypesExperimentResults
17174
+ */
17175
+ 'ended_at'?: string;
17176
+ /**
17177
+ *
17178
+ * @type {string}
17179
+ * @memberof DataTypesExperimentResults
17180
+ */
17181
+ 'experiment_id'?: string;
17182
+ /**
17183
+ *
17184
+ * @type {boolean}
17185
+ * @memberof DataTypesExperimentResults
17186
+ */
17187
+ 'is_significant'?: boolean;
17188
+ /**
17189
+ *
17190
+ * @type {string}
17191
+ * @memberof DataTypesExperimentResults
17192
+ */
17193
+ 'name'?: string;
17194
+ /**
17195
+ *
17196
+ * @type {number}
17197
+ * @memberof DataTypesExperimentResults
17198
+ */
17199
+ 'revenue_lift'?: number;
17200
+ /**
17201
+ *
17202
+ * @type {string}
17203
+ * @memberof DataTypesExperimentResults
17204
+ */
17205
+ 'started_at'?: string;
17206
+ /**
17207
+ *
17208
+ * @type {DataTypesExperimentStatus}
17209
+ * @memberof DataTypesExperimentResults
17210
+ */
17211
+ 'status'?: DataTypesExperimentStatus;
17212
+ /**
17213
+ *
17214
+ * @type {Array<DataTypesExperimentVariantResult>}
17215
+ * @memberof DataTypesExperimentResults
17216
+ */
17217
+ 'variants'?: Array<DataTypesExperimentVariantResult>;
17218
+ /**
17219
+ *
17220
+ * @type {string}
17221
+ * @memberof DataTypesExperimentResults
17222
+ */
17223
+ 'winner'?: string;
17224
+ }
17225
+
17226
+
17227
+ /**
17228
+ *
17229
+ * @export
17230
+ * @enum {string}
17231
+ */
17232
+
17233
+ export const DataTypesExperimentStatus = {
17234
+ ExperimentStatusDraft: 'draft',
17235
+ ExperimentStatusScheduled: 'scheduled',
17236
+ ExperimentStatusRunning: 'running',
17237
+ ExperimentStatusPaused: 'paused',
17238
+ ExperimentStatusCompleted: 'completed',
17239
+ ExperimentStatusArchived: 'archived'
17240
+ } as const;
17241
+
17242
+ export type DataTypesExperimentStatus = typeof DataTypesExperimentStatus[keyof typeof DataTypesExperimentStatus];
17243
+
17244
+
17245
+ /**
17246
+ *
17247
+ * @export
17248
+ * @enum {string}
17249
+ */
17250
+
17251
+ export const DataTypesExperimentType = {
17252
+ ExperimentTypeSearchRanking: 'search_ranking',
17253
+ ExperimentTypeRecommendation: 'recommendation',
17254
+ ExperimentTypePersonalization: 'personalization',
17255
+ ExperimentTypeUI: 'ui',
17256
+ ExperimentTypePricing: 'pricing',
17257
+ ExperimentTypeOther: 'other'
17258
+ } as const;
17259
+
17260
+ export type DataTypesExperimentType = typeof DataTypesExperimentType[keyof typeof DataTypesExperimentType];
17261
+
17262
+
17263
+ /**
17264
+ *
17265
+ * @export
17266
+ * @interface DataTypesExperimentVariant
17267
+ */
17268
+ export interface DataTypesExperimentVariant {
17269
+ /**
17270
+ *
17271
+ * @type {{ [key: string]: any; }}
17272
+ * @memberof DataTypesExperimentVariant
17273
+ */
17274
+ 'config'?: { [key: string]: any; };
17275
+ /**
17276
+ *
17277
+ * @type {string}
17278
+ * @memberof DataTypesExperimentVariant
17279
+ */
17280
+ 'id'?: string;
17281
+ /**
17282
+ *
17283
+ * @type {string}
17284
+ * @memberof DataTypesExperimentVariant
17285
+ */
17286
+ 'name'?: string;
17287
+ /**
17288
+ * Traffic weight percentage (e.g., 50 = 50%)
17289
+ * @type {number}
17290
+ * @memberof DataTypesExperimentVariant
17291
+ */
17292
+ 'weight'?: number;
17293
+ }
17294
+ /**
17295
+ *
17296
+ * @export
17297
+ * @interface DataTypesExperimentVariantResult
17298
+ */
17299
+ export interface DataTypesExperimentVariantResult {
17300
+ /**
17301
+ *
17302
+ * @type {number}
17303
+ * @memberof DataTypesExperimentVariantResult
17304
+ */
17305
+ 'avg_latency_ms'?: number;
17306
+ /**
17307
+ *
17308
+ * @type {number}
17309
+ * @memberof DataTypesExperimentVariantResult
17310
+ */
17311
+ 'conversion_rate'?: number;
17312
+ /**
17313
+ *
17314
+ * @type {number}
17315
+ * @memberof DataTypesExperimentVariantResult
17316
+ */
17317
+ 'conversions'?: number;
17318
+ /**
17319
+ *
17320
+ * @type {number}
17321
+ * @memberof DataTypesExperimentVariantResult
17322
+ */
17323
+ 'ctr'?: number;
17324
+ /**
17325
+ *
17326
+ * @type {number}
17327
+ * @memberof DataTypesExperimentVariantResult
17328
+ */
17329
+ 'revenue'?: number;
17330
+ /**
17331
+ *
17332
+ * @type {number}
17333
+ * @memberof DataTypesExperimentVariantResult
17334
+ */
17335
+ 'revenue_per_user'?: number;
17336
+ /**
17337
+ *
17338
+ * @type {number}
17339
+ * @memberof DataTypesExperimentVariantResult
17340
+ */
17341
+ 'total_clicks'?: number;
17342
+ /**
17343
+ *
17344
+ * @type {number}
17345
+ * @memberof DataTypesExperimentVariantResult
17346
+ */
17347
+ 'total_searches'?: number;
17348
+ /**
17349
+ *
17350
+ * @type {number}
17351
+ * @memberof DataTypesExperimentVariantResult
17352
+ */
17353
+ 'unique_users'?: number;
17354
+ /**
17355
+ *
17356
+ * @type {string}
17357
+ * @memberof DataTypesExperimentVariantResult
17358
+ */
17359
+ 'variant_id'?: string;
17360
+ /**
17361
+ *
17362
+ * @type {string}
17363
+ * @memberof DataTypesExperimentVariantResult
17364
+ */
17365
+ 'variant_name'?: string;
17366
+ /**
17367
+ *
17368
+ * @type {number}
17369
+ * @memberof DataTypesExperimentVariantResult
17370
+ */
17371
+ 'zero_result_rate'?: number;
17372
+ }
16821
17373
  /**
16822
17374
  *
16823
17375
  * @export
@@ -28378,6 +28930,585 @@ export interface DataTypesSetUserCustomPermissionsRequest {
28378
28930
  */
28379
28931
  'storeAccessGrouped'?: Array<DataTypesGroupedStoreAccess>;
28380
28932
  }
28933
+ /**
28934
+ *
28935
+ * @export
28936
+ * @interface DataTypesSlimGroupedPermissionsRequest
28937
+ */
28938
+ export interface DataTypesSlimGroupedPermissionsRequest {
28939
+ /**
28940
+ *
28941
+ * @type {Array<DataTypesSlimModuleGroupRequest>}
28942
+ * @memberof DataTypesSlimGroupedPermissionsRequest
28943
+ */
28944
+ 'modules'?: Array<DataTypesSlimModuleGroupRequest>;
28945
+ }
28946
+ /**
28947
+ *
28948
+ * @export
28949
+ * @interface DataTypesSlimGroupedRolePermissions
28950
+ */
28951
+ export interface DataTypesSlimGroupedRolePermissions {
28952
+ /**
28953
+ *
28954
+ * @type {Array<DataTypesSlimModuleGroup>}
28955
+ * @memberof DataTypesSlimGroupedRolePermissions
28956
+ */
28957
+ 'modules'?: Array<DataTypesSlimModuleGroup>;
28958
+ }
28959
+ /**
28960
+ *
28961
+ * @export
28962
+ * @interface DataTypesSlimGroupedStoreAccess
28963
+ */
28964
+ export interface DataTypesSlimGroupedStoreAccess {
28965
+ /**
28966
+ *
28967
+ * @type {string}
28968
+ * @memberof DataTypesSlimGroupedStoreAccess
28969
+ */
28970
+ 'access_level'?: string;
28971
+ /**
28972
+ *
28973
+ * @type {boolean}
28974
+ * @memberof DataTypesSlimGroupedStoreAccess
28975
+ */
28976
+ 'can_add'?: boolean;
28977
+ /**
28978
+ *
28979
+ * @type {boolean}
28980
+ * @memberof DataTypesSlimGroupedStoreAccess
28981
+ */
28982
+ 'can_approve'?: boolean;
28983
+ /**
28984
+ *
28985
+ * @type {boolean}
28986
+ * @memberof DataTypesSlimGroupedStoreAccess
28987
+ */
28988
+ 'can_delete'?: boolean;
28989
+ /**
28990
+ *
28991
+ * @type {boolean}
28992
+ * @memberof DataTypesSlimGroupedStoreAccess
28993
+ */
28994
+ 'can_modify'?: boolean;
28995
+ /**
28996
+ *
28997
+ * @type {boolean}
28998
+ * @memberof DataTypesSlimGroupedStoreAccess
28999
+ */
29000
+ 'can_view'?: boolean;
29001
+ /**
29002
+ *
29003
+ * @type {boolean}
29004
+ * @memberof DataTypesSlimGroupedStoreAccess
29005
+ */
29006
+ 'full_access'?: boolean;
29007
+ /**
29008
+ *
29009
+ * @type {Array<DataTypesSlimModuleGroup>}
29010
+ * @memberof DataTypesSlimGroupedStoreAccess
29011
+ */
29012
+ 'modules'?: Array<DataTypesSlimModuleGroup>;
29013
+ /**
29014
+ *
29015
+ * @type {number}
29016
+ * @memberof DataTypesSlimGroupedStoreAccess
29017
+ */
29018
+ 'storeId'?: number;
29019
+ /**
29020
+ *
29021
+ * @type {string}
29022
+ * @memberof DataTypesSlimGroupedStoreAccess
29023
+ */
29024
+ 'storeName'?: string;
29025
+ }
29026
+ /**
29027
+ *
29028
+ * @export
29029
+ * @interface DataTypesSlimMenu
29030
+ */
29031
+ export interface DataTypesSlimMenu {
29032
+ /**
29033
+ *
29034
+ * @type {string}
29035
+ * @memberof DataTypesSlimMenu
29036
+ */
29037
+ 'icon'?: string;
29038
+ /**
29039
+ *
29040
+ * @type {boolean}
29041
+ * @memberof DataTypesSlimMenu
29042
+ */
29043
+ 'isParentMenu'?: boolean;
29044
+ /**
29045
+ *
29046
+ * @type {number}
29047
+ * @memberof DataTypesSlimMenu
29048
+ */
29049
+ 'menuId'?: number;
29050
+ /**
29051
+ *
29052
+ * @type {string}
29053
+ * @memberof DataTypesSlimMenu
29054
+ */
29055
+ 'menuName'?: string;
29056
+ /**
29057
+ *
29058
+ * @type {string}
29059
+ * @memberof DataTypesSlimMenu
29060
+ */
29061
+ 'moduleType'?: string;
29062
+ /**
29063
+ *
29064
+ * @type {number}
29065
+ * @memberof DataTypesSlimMenu
29066
+ */
29067
+ 'parentId'?: number;
29068
+ /**
29069
+ *
29070
+ * @type {number}
29071
+ * @memberof DataTypesSlimMenu
29072
+ */
29073
+ 'sortOrder'?: number;
29074
+ }
29075
+ /**
29076
+ *
29077
+ * @export
29078
+ * @interface DataTypesSlimModuleGroup
29079
+ */
29080
+ export interface DataTypesSlimModuleGroup {
29081
+ /**
29082
+ *
29083
+ * @type {Array<DataTypesSlimParentMenuGroup>}
29084
+ * @memberof DataTypesSlimModuleGroup
29085
+ */
29086
+ 'groups'?: Array<DataTypesSlimParentMenuGroup>;
29087
+ /**
29088
+ *
29089
+ * @type {string}
29090
+ * @memberof DataTypesSlimModuleGroup
29091
+ */
29092
+ 'moduleType'?: string;
29093
+ }
29094
+ /**
29095
+ *
29096
+ * @export
29097
+ * @interface DataTypesSlimModuleGroupRequest
29098
+ */
29099
+ export interface DataTypesSlimModuleGroupRequest {
29100
+ /**
29101
+ *
29102
+ * @type {Array<DataTypesSlimParentMenuGroupRequest>}
29103
+ * @memberof DataTypesSlimModuleGroupRequest
29104
+ */
29105
+ 'groups'?: Array<DataTypesSlimParentMenuGroupRequest>;
29106
+ /**
29107
+ *
29108
+ * @type {string}
29109
+ * @memberof DataTypesSlimModuleGroupRequest
29110
+ */
29111
+ 'moduleType'?: string;
29112
+ }
29113
+ /**
29114
+ *
29115
+ * @export
29116
+ * @interface DataTypesSlimParentMenuGroup
29117
+ */
29118
+ export interface DataTypesSlimParentMenuGroup {
29119
+ /**
29120
+ *
29121
+ * @type {Array<DataTypesSlimRoleRightWithMenu>}
29122
+ * @memberof DataTypesSlimParentMenuGroup
29123
+ */
29124
+ 'children'?: Array<DataTypesSlimRoleRightWithMenu>;
29125
+ /**
29126
+ *
29127
+ * @type {DataTypesSlimRoleRightWithMenu}
29128
+ * @memberof DataTypesSlimParentMenuGroup
29129
+ */
29130
+ 'parentMenu'?: DataTypesSlimRoleRightWithMenu;
29131
+ }
29132
+ /**
29133
+ *
29134
+ * @export
29135
+ * @interface DataTypesSlimParentMenuGroupRequest
29136
+ */
29137
+ export interface DataTypesSlimParentMenuGroupRequest {
29138
+ /**
29139
+ *
29140
+ * @type {Array<DataTypesSlimPermissionEntry>}
29141
+ * @memberof DataTypesSlimParentMenuGroupRequest
29142
+ */
29143
+ 'children'?: Array<DataTypesSlimPermissionEntry>;
29144
+ /**
29145
+ *
29146
+ * @type {DataTypesSlimPermissionEntry}
29147
+ * @memberof DataTypesSlimParentMenuGroupRequest
29148
+ */
29149
+ 'parentMenu'?: DataTypesSlimPermissionEntry;
29150
+ }
29151
+ /**
29152
+ *
29153
+ * @export
29154
+ * @interface DataTypesSlimPermissionEntry
29155
+ */
29156
+ export interface DataTypesSlimPermissionEntry {
29157
+ /**
29158
+ *
29159
+ * @type {boolean}
29160
+ * @memberof DataTypesSlimPermissionEntry
29161
+ */
29162
+ 'canAdd'?: boolean;
29163
+ /**
29164
+ *
29165
+ * @type {boolean}
29166
+ * @memberof DataTypesSlimPermissionEntry
29167
+ */
29168
+ 'canApprove'?: boolean;
29169
+ /**
29170
+ *
29171
+ * @type {boolean}
29172
+ * @memberof DataTypesSlimPermissionEntry
29173
+ */
29174
+ 'canDelete'?: boolean;
29175
+ /**
29176
+ *
29177
+ * @type {boolean}
29178
+ * @memberof DataTypesSlimPermissionEntry
29179
+ */
29180
+ 'canModify'?: boolean;
29181
+ /**
29182
+ *
29183
+ * @type {boolean}
29184
+ * @memberof DataTypesSlimPermissionEntry
29185
+ */
29186
+ 'canView'?: boolean;
29187
+ /**
29188
+ *
29189
+ * @type {boolean}
29190
+ * @memberof DataTypesSlimPermissionEntry
29191
+ */
29192
+ 'fullAccess'?: boolean;
29193
+ /**
29194
+ *
29195
+ * @type {boolean}
29196
+ * @memberof DataTypesSlimPermissionEntry
29197
+ */
29198
+ 'isEnabled'?: boolean;
29199
+ /**
29200
+ *
29201
+ * @type {number}
29202
+ * @memberof DataTypesSlimPermissionEntry
29203
+ */
29204
+ 'menuId': number;
29205
+ }
29206
+ /**
29207
+ *
29208
+ * @export
29209
+ * @interface DataTypesSlimRolePermissionsResponse
29210
+ */
29211
+ export interface DataTypesSlimRolePermissionsResponse {
29212
+ /**
29213
+ *
29214
+ * @type {boolean}
29215
+ * @memberof DataTypesSlimRolePermissionsResponse
29216
+ */
29217
+ 'allStoresFullAccess'?: boolean;
29218
+ /**
29219
+ *
29220
+ * @type {boolean}
29221
+ * @memberof DataTypesSlimRolePermissionsResponse
29222
+ */
29223
+ 'fullAccess'?: boolean;
29224
+ /**
29225
+ *
29226
+ * @type {DataTypesSlimGroupedRolePermissions}
29227
+ * @memberof DataTypesSlimRolePermissionsResponse
29228
+ */
29229
+ 'orgLevelMenusGrouped'?: DataTypesSlimGroupedRolePermissions;
29230
+ /**
29231
+ *
29232
+ * @type {number}
29233
+ * @memberof DataTypesSlimRolePermissionsResponse
29234
+ */
29235
+ 'roleId'?: number;
29236
+ /**
29237
+ *
29238
+ * @type {string}
29239
+ * @memberof DataTypesSlimRolePermissionsResponse
29240
+ */
29241
+ 'roleName'?: string;
29242
+ /**
29243
+ *
29244
+ * @type {Array<DataTypesSlimGroupedStoreAccess>}
29245
+ * @memberof DataTypesSlimRolePermissionsResponse
29246
+ */
29247
+ 'storeAccessGrouped'?: Array<DataTypesSlimGroupedStoreAccess>;
29248
+ }
29249
+ /**
29250
+ *
29251
+ * @export
29252
+ * @interface DataTypesSlimRoleRightWithMenu
29253
+ */
29254
+ export interface DataTypesSlimRoleRightWithMenu {
29255
+ /**
29256
+ *
29257
+ * @type {boolean}
29258
+ * @memberof DataTypesSlimRoleRightWithMenu
29259
+ */
29260
+ 'canAdd'?: boolean;
29261
+ /**
29262
+ *
29263
+ * @type {boolean}
29264
+ * @memberof DataTypesSlimRoleRightWithMenu
29265
+ */
29266
+ 'canApprove'?: boolean;
29267
+ /**
29268
+ *
29269
+ * @type {boolean}
29270
+ * @memberof DataTypesSlimRoleRightWithMenu
29271
+ */
29272
+ 'canDelete'?: boolean;
29273
+ /**
29274
+ *
29275
+ * @type {boolean}
29276
+ * @memberof DataTypesSlimRoleRightWithMenu
29277
+ */
29278
+ 'canModify'?: boolean;
29279
+ /**
29280
+ *
29281
+ * @type {boolean}
29282
+ * @memberof DataTypesSlimRoleRightWithMenu
29283
+ */
29284
+ 'canView'?: boolean;
29285
+ /**
29286
+ *
29287
+ * @type {boolean}
29288
+ * @memberof DataTypesSlimRoleRightWithMenu
29289
+ */
29290
+ 'fullAccess'?: boolean;
29291
+ /**
29292
+ *
29293
+ * @type {boolean}
29294
+ * @memberof DataTypesSlimRoleRightWithMenu
29295
+ */
29296
+ 'isEnabled'?: boolean;
29297
+ /**
29298
+ *
29299
+ * @type {DataTypesSlimMenu}
29300
+ * @memberof DataTypesSlimRoleRightWithMenu
29301
+ */
29302
+ 'menu'?: DataTypesSlimMenu;
29303
+ /**
29304
+ *
29305
+ * @type {number}
29306
+ * @memberof DataTypesSlimRoleRightWithMenu
29307
+ */
29308
+ 'menuId'?: number;
29309
+ /**
29310
+ *
29311
+ * @type {number}
29312
+ * @memberof DataTypesSlimRoleRightWithMenu
29313
+ */
29314
+ 'roleRightId'?: number;
29315
+ }
29316
+ /**
29317
+ *
29318
+ * @export
29319
+ * @interface DataTypesSlimStoreAccessRequest
29320
+ */
29321
+ export interface DataTypesSlimStoreAccessRequest {
29322
+ /**
29323
+ *
29324
+ * @type {string}
29325
+ * @memberof DataTypesSlimStoreAccessRequest
29326
+ */
29327
+ 'access_level'?: string;
29328
+ /**
29329
+ *
29330
+ * @type {boolean}
29331
+ * @memberof DataTypesSlimStoreAccessRequest
29332
+ */
29333
+ 'can_add'?: boolean;
29334
+ /**
29335
+ *
29336
+ * @type {boolean}
29337
+ * @memberof DataTypesSlimStoreAccessRequest
29338
+ */
29339
+ 'can_approve'?: boolean;
29340
+ /**
29341
+ *
29342
+ * @type {boolean}
29343
+ * @memberof DataTypesSlimStoreAccessRequest
29344
+ */
29345
+ 'can_delete'?: boolean;
29346
+ /**
29347
+ *
29348
+ * @type {boolean}
29349
+ * @memberof DataTypesSlimStoreAccessRequest
29350
+ */
29351
+ 'can_modify'?: boolean;
29352
+ /**
29353
+ *
29354
+ * @type {boolean}
29355
+ * @memberof DataTypesSlimStoreAccessRequest
29356
+ */
29357
+ 'can_view'?: boolean;
29358
+ /**
29359
+ *
29360
+ * @type {boolean}
29361
+ * @memberof DataTypesSlimStoreAccessRequest
29362
+ */
29363
+ 'full_access'?: boolean;
29364
+ /**
29365
+ *
29366
+ * @type {Array<DataTypesSlimModuleGroupRequest>}
29367
+ * @memberof DataTypesSlimStoreAccessRequest
29368
+ */
29369
+ 'modules'?: Array<DataTypesSlimModuleGroupRequest>;
29370
+ /**
29371
+ *
29372
+ * @type {number}
29373
+ * @memberof DataTypesSlimStoreAccessRequest
29374
+ */
29375
+ 'storeId': number;
29376
+ }
29377
+ /**
29378
+ *
29379
+ * @export
29380
+ * @interface DataTypesSlimUpdateRolePermissionsRequest
29381
+ */
29382
+ export interface DataTypesSlimUpdateRolePermissionsRequest {
29383
+ /**
29384
+ *
29385
+ * @type {boolean}
29386
+ * @memberof DataTypesSlimUpdateRolePermissionsRequest
29387
+ */
29388
+ 'allStoresFullAccess'?: boolean;
29389
+ /**
29390
+ *
29391
+ * @type {boolean}
29392
+ * @memberof DataTypesSlimUpdateRolePermissionsRequest
29393
+ */
29394
+ 'fullAccess'?: boolean;
29395
+ /**
29396
+ *
29397
+ * @type {DataTypesSlimGroupedPermissionsRequest}
29398
+ * @memberof DataTypesSlimUpdateRolePermissionsRequest
29399
+ */
29400
+ 'orgLevelMenusGrouped'?: DataTypesSlimGroupedPermissionsRequest;
29401
+ /**
29402
+ *
29403
+ * @type {number}
29404
+ * @memberof DataTypesSlimUpdateRolePermissionsRequest
29405
+ */
29406
+ 'roleId'?: number;
29407
+ /**
29408
+ *
29409
+ * @type {Array<DataTypesSlimStoreAccessRequest>}
29410
+ * @memberof DataTypesSlimUpdateRolePermissionsRequest
29411
+ */
29412
+ 'storeAccessGrouped'?: Array<DataTypesSlimStoreAccessRequest>;
29413
+ }
29414
+ /**
29415
+ *
29416
+ * @export
29417
+ * @interface DataTypesSlimUpdateUserRolePermissionsRequest
29418
+ */
29419
+ export interface DataTypesSlimUpdateUserRolePermissionsRequest {
29420
+ /**
29421
+ *
29422
+ * @type {boolean}
29423
+ * @memberof DataTypesSlimUpdateUserRolePermissionsRequest
29424
+ */
29425
+ 'allStoresFullAccess'?: boolean;
29426
+ /**
29427
+ *
29428
+ * @type {boolean}
29429
+ * @memberof DataTypesSlimUpdateUserRolePermissionsRequest
29430
+ */
29431
+ 'fullAccess'?: boolean;
29432
+ /**
29433
+ *
29434
+ * @type {DataTypesSlimGroupedPermissionsRequest}
29435
+ * @memberof DataTypesSlimUpdateUserRolePermissionsRequest
29436
+ */
29437
+ 'orgLevelMenusGrouped'?: DataTypesSlimGroupedPermissionsRequest;
29438
+ /**
29439
+ *
29440
+ * @type {Array<DataTypesSlimStoreAccessRequest>}
29441
+ * @memberof DataTypesSlimUpdateUserRolePermissionsRequest
29442
+ */
29443
+ 'storeAccessGrouped'?: Array<DataTypesSlimStoreAccessRequest>;
29444
+ /**
29445
+ *
29446
+ * @type {number}
29447
+ * @memberof DataTypesSlimUpdateUserRolePermissionsRequest
29448
+ */
29449
+ 'userId'?: number;
29450
+ }
29451
+ /**
29452
+ *
29453
+ * @export
29454
+ * @interface DataTypesSlimUserRolePermissionsResponse
29455
+ */
29456
+ export interface DataTypesSlimUserRolePermissionsResponse {
29457
+ /**
29458
+ *
29459
+ * @type {boolean}
29460
+ * @memberof DataTypesSlimUserRolePermissionsResponse
29461
+ */
29462
+ 'allStoresFullAccess'?: boolean;
29463
+ /**
29464
+ *
29465
+ * @type {boolean}
29466
+ * @memberof DataTypesSlimUserRolePermissionsResponse
29467
+ */
29468
+ 'fullAccess'?: boolean;
29469
+ /**
29470
+ *
29471
+ * @type {DataTypesSlimGroupedRolePermissions}
29472
+ * @memberof DataTypesSlimUserRolePermissionsResponse
29473
+ */
29474
+ 'orgLevelMenusGrouped'?: DataTypesSlimGroupedRolePermissions;
29475
+ /**
29476
+ *
29477
+ * @type {number}
29478
+ * @memberof DataTypesSlimUserRolePermissionsResponse
29479
+ */
29480
+ 'roleId'?: number;
29481
+ /**
29482
+ *
29483
+ * @type {string}
29484
+ * @memberof DataTypesSlimUserRolePermissionsResponse
29485
+ */
29486
+ 'roleName'?: string;
29487
+ /**
29488
+ *
29489
+ * @type {Array<DataTypesSlimGroupedStoreAccess>}
29490
+ * @memberof DataTypesSlimUserRolePermissionsResponse
29491
+ */
29492
+ 'storeAccessGrouped'?: Array<DataTypesSlimGroupedStoreAccess>;
29493
+ /**
29494
+ *
29495
+ * @type {boolean}
29496
+ * @memberof DataTypesSlimUserRolePermissionsResponse
29497
+ */
29498
+ 'useCustomPermissions'?: boolean;
29499
+ /**
29500
+ *
29501
+ * @type {number}
29502
+ * @memberof DataTypesSlimUserRolePermissionsResponse
29503
+ */
29504
+ 'userId'?: number;
29505
+ /**
29506
+ *
29507
+ * @type {number}
29508
+ * @memberof DataTypesSlimUserRolePermissionsResponse
29509
+ */
29510
+ 'userSpecificRoleId'?: number;
29511
+ }
28381
29512
  /**
28382
29513
  *
28383
29514
  * @export
@@ -30612,6 +31743,85 @@ export interface DataTypesUpdateCustomWordListRequest {
30612
31743
  */
30613
31744
  'words'?: Array<string>;
30614
31745
  }
31746
+ /**
31747
+ *
31748
+ * @export
31749
+ * @interface DataTypesUpdateExperimentRequest
31750
+ */
31751
+ export interface DataTypesUpdateExperimentRequest {
31752
+ /**
31753
+ *
31754
+ * @type {object}
31755
+ * @memberof DataTypesUpdateExperimentRequest
31756
+ */
31757
+ 'audience_filter'?: object;
31758
+ /**
31759
+ *
31760
+ * @type {string}
31761
+ * @memberof DataTypesUpdateExperimentRequest
31762
+ */
31763
+ 'description'?: string;
31764
+ /**
31765
+ *
31766
+ * @type {string}
31767
+ * @memberof DataTypesUpdateExperimentRequest
31768
+ */
31769
+ 'hypothesis'?: string;
31770
+ /**
31771
+ *
31772
+ * @type {number}
31773
+ * @memberof DataTypesUpdateExperimentRequest
31774
+ */
31775
+ 'max_duration_days'?: number;
31776
+ /**
31777
+ *
31778
+ * @type {number}
31779
+ * @memberof DataTypesUpdateExperimentRequest
31780
+ */
31781
+ 'min_sample_size'?: number;
31782
+ /**
31783
+ *
31784
+ * @type {string}
31785
+ * @memberof DataTypesUpdateExperimentRequest
31786
+ */
31787
+ 'name'?: string;
31788
+ /**
31789
+ *
31790
+ * @type {string}
31791
+ * @memberof DataTypesUpdateExperimentRequest
31792
+ */
31793
+ 'primary_metric'?: string;
31794
+ /**
31795
+ *
31796
+ * @type {string}
31797
+ * @memberof DataTypesUpdateExperimentRequest
31798
+ */
31799
+ 'scheduled_end_at'?: string;
31800
+ /**
31801
+ *
31802
+ * @type {string}
31803
+ * @memberof DataTypesUpdateExperimentRequest
31804
+ */
31805
+ 'scheduled_start_at'?: string;
31806
+ /**
31807
+ *
31808
+ * @type {Array<string>}
31809
+ * @memberof DataTypesUpdateExperimentRequest
31810
+ */
31811
+ 'secondary_metrics'?: Array<string>;
31812
+ /**
31813
+ *
31814
+ * @type {number}
31815
+ * @memberof DataTypesUpdateExperimentRequest
31816
+ */
31817
+ 'traffic_percentage'?: number;
31818
+ /**
31819
+ *
31820
+ * @type {Array<DataTypesExperimentVariant>}
31821
+ * @memberof DataTypesUpdateExperimentRequest
31822
+ */
31823
+ 'variants'?: Array<DataTypesExperimentVariant>;
31824
+ }
30615
31825
  /**
30616
31826
  *
30617
31827
  * @export
@@ -31143,55 +32353,6 @@ export interface DataTypesUpdateProfileRequest {
31143
32353
  */
31144
32354
  'userphone': string;
31145
32355
  }
31146
- /**
31147
- *
31148
- * @export
31149
- * @interface DataTypesUpdateRolePermissionsRequest
31150
- */
31151
- export interface DataTypesUpdateRolePermissionsRequest {
31152
- /**
31153
- * Full access to all stores for all users with this role
31154
- * @type {boolean}
31155
- * @memberof DataTypesUpdateRolePermissionsRequest
31156
- */
31157
- 'allStoresFullAccess'?: boolean;
31158
- /**
31159
- * Full access at role level (applies to all stores)
31160
- * @type {boolean}
31161
- * @memberof DataTypesUpdateRolePermissionsRequest
31162
- */
31163
- 'fullAccess'?: boolean;
31164
- /**
31165
- * Org-level menu/route permissions (flat format - for backward compatibility)
31166
- * @type {Array<DataTypesRoleRightRequestDto>}
31167
- * @memberof DataTypesUpdateRolePermissionsRequest
31168
- */
31169
- 'orgLevelMenus'?: Array<DataTypesRoleRightRequestDto>;
31170
- /**
31171
- * Grouped structures (preferred format for frontend)
31172
- * @type {DataTypesGroupedRolePermissions}
31173
- * @memberof DataTypesUpdateRolePermissionsRequest
31174
- */
31175
- 'orgLevelMenusGrouped'?: DataTypesGroupedRolePermissions;
31176
- /**
31177
- *
31178
- * @type {number}
31179
- * @memberof DataTypesUpdateRolePermissionsRequest
31180
- */
31181
- 'roleId': number;
31182
- /**
31183
- * Store-level menu/route permissions (flat format - for backward compatibility)
31184
- * @type {Array<DataTypesStoreLevelMenuRight>}
31185
- * @memberof DataTypesUpdateRolePermissionsRequest
31186
- */
31187
- 'storeAccess'?: Array<DataTypesStoreLevelMenuRight>;
31188
- /**
31189
- * Store-level menus grouped by module and parent
31190
- * @type {Array<DataTypesGroupedStoreAccess>}
31191
- * @memberof DataTypesUpdateRolePermissionsRequest
31192
- */
31193
- 'storeAccessGrouped'?: Array<DataTypesGroupedStoreAccess>;
31194
- }
31195
32356
  /**
31196
32357
  *
31197
32358
  * @export
@@ -31300,55 +32461,6 @@ export const DataTypesUpdateStoreAccessRequestAccessLevelEnum = {
31300
32461
 
31301
32462
  export type DataTypesUpdateStoreAccessRequestAccessLevelEnum = typeof DataTypesUpdateStoreAccessRequestAccessLevelEnum[keyof typeof DataTypesUpdateStoreAccessRequestAccessLevelEnum];
31302
32463
 
31303
- /**
31304
- *
31305
- * @export
31306
- * @interface DataTypesUpdateUserRolePermissionsRequest
31307
- */
31308
- export interface DataTypesUpdateUserRolePermissionsRequest {
31309
- /**
31310
- * Full access to all stores for all users with this role
31311
- * @type {boolean}
31312
- * @memberof DataTypesUpdateUserRolePermissionsRequest
31313
- */
31314
- 'allStoresFullAccess'?: boolean;
31315
- /**
31316
- * Full access at user-specific role level
31317
- * @type {boolean}
31318
- * @memberof DataTypesUpdateUserRolePermissionsRequest
31319
- */
31320
- 'fullAccess'?: boolean;
31321
- /**
31322
- * Org-level menu/route permissions (flat format - for backward compatibility)
31323
- * @type {Array<DataTypesRoleRightRequestDto>}
31324
- * @memberof DataTypesUpdateUserRolePermissionsRequest
31325
- */
31326
- 'orgLevelMenus'?: Array<DataTypesRoleRightRequestDto>;
31327
- /**
31328
- * Grouped structures (preferred format for frontend)
31329
- * @type {DataTypesGroupedRolePermissions}
31330
- * @memberof DataTypesUpdateUserRolePermissionsRequest
31331
- */
31332
- 'orgLevelMenusGrouped'?: DataTypesGroupedRolePermissions;
31333
- /**
31334
- * Store-level menu/route permissions (flat format - for backward compatibility)
31335
- * @type {Array<DataTypesStoreLevelMenuRight>}
31336
- * @memberof DataTypesUpdateUserRolePermissionsRequest
31337
- */
31338
- 'storeAccess'?: Array<DataTypesStoreLevelMenuRight>;
31339
- /**
31340
- * Store-level menus grouped by module and parent
31341
- * @type {Array<DataTypesGroupedStoreAccess>}
31342
- * @memberof DataTypesUpdateUserRolePermissionsRequest
31343
- */
31344
- 'storeAccessGrouped'?: Array<DataTypesGroupedStoreAccess>;
31345
- /**
31346
- *
31347
- * @type {number}
31348
- * @memberof DataTypesUpdateUserRolePermissionsRequest
31349
- */
31350
- 'userId': number;
31351
- }
31352
32464
  /**
31353
32465
  *
31354
32466
  * @export
@@ -31873,91 +32985,6 @@ export interface DataTypesUserResponse {
31873
32985
  */
31874
32986
  'status'?: number;
31875
32987
  }
31876
- /**
31877
- *
31878
- * @export
31879
- * @interface DataTypesUserRolePermissionsResponse
31880
- */
31881
- export interface DataTypesUserRolePermissionsResponse {
31882
- /**
31883
- * Full access to all stores for all users with this role
31884
- * @type {boolean}
31885
- * @memberof DataTypesUserRolePermissionsResponse
31886
- */
31887
- 'allStoresFullAccess'?: boolean;
31888
- /**
31889
- * All menus available to modifying user
31890
- * @type {Array<DataTypesMenu>}
31891
- * @memberof DataTypesUserRolePermissionsResponse
31892
- */
31893
- 'availableMenus'?: Array<DataTypesMenu>;
31894
- /**
31895
- * All stores available to modifying user
31896
- * @type {Array<DataTypesStore>}
31897
- * @memberof DataTypesUserRolePermissionsResponse
31898
- */
31899
- 'availableStores'?: Array<DataTypesStore>;
31900
- /**
31901
- * Full access at user-specific role level
31902
- * @type {boolean}
31903
- * @memberof DataTypesUserRolePermissionsResponse
31904
- */
31905
- 'fullAccess'?: boolean;
31906
- /**
31907
- * Org-level menu/route permissions (flat list - for backward compatibility)
31908
- * @type {Array<DataTypesRoleRightWithMenu>}
31909
- * @memberof DataTypesUserRolePermissionsResponse
31910
- */
31911
- 'orgLevelMenus'?: Array<DataTypesRoleRightWithMenu>;
31912
- /**
31913
- * Grouped structures for frontend display
31914
- * @type {DataTypesGroupedRolePermissions}
31915
- * @memberof DataTypesUserRolePermissionsResponse
31916
- */
31917
- 'orgLevelMenusGrouped'?: DataTypesGroupedRolePermissions;
31918
- /**
31919
- *
31920
- * @type {number}
31921
- * @memberof DataTypesUserRolePermissionsResponse
31922
- */
31923
- 'roleId'?: number;
31924
- /**
31925
- *
31926
- * @type {string}
31927
- * @memberof DataTypesUserRolePermissionsResponse
31928
- */
31929
- 'roleName'?: string;
31930
- /**
31931
- * Store-level menu/route permissions (includes store access fields)
31932
- * @type {Array<DataTypesStoreLevelMenuRightWithMenu>}
31933
- * @memberof DataTypesUserRolePermissionsResponse
31934
- */
31935
- 'storeAccess'?: Array<DataTypesStoreLevelMenuRightWithMenu>;
31936
- /**
31937
- * Store-level menus grouped by module and parent
31938
- * @type {Array<DataTypesGroupedStoreAccess>}
31939
- * @memberof DataTypesUserRolePermissionsResponse
31940
- */
31941
- 'storeAccessGrouped'?: Array<DataTypesGroupedStoreAccess>;
31942
- /**
31943
- *
31944
- * @type {boolean}
31945
- * @memberof DataTypesUserRolePermissionsResponse
31946
- */
31947
- 'useCustomPermissions'?: boolean;
31948
- /**
31949
- *
31950
- * @type {number}
31951
- * @memberof DataTypesUserRolePermissionsResponse
31952
- */
31953
- 'userId'?: number;
31954
- /**
31955
- *
31956
- * @type {number}
31957
- * @memberof DataTypesUserRolePermissionsResponse
31958
- */
31959
- 'userSpecificRoleId'?: number;
31960
- }
31961
32988
  /**
31962
32989
  *
31963
32990
  * @export
@@ -62425,6 +63452,792 @@ export class DocumentsApi extends BaseAPI {
62425
63452
 
62426
63453
 
62427
63454
 
63455
+ /**
63456
+ * ExperimentsApi - axios parameter creator
63457
+ * @export
63458
+ */
63459
+ export const ExperimentsApiAxiosParamCreator = function (configuration?: Configuration) {
63460
+ return {
63461
+ /**
63462
+ * Returns all experiments for the authenticated organization, optionally filtered by store.
63463
+ * @summary List all experiments
63464
+ * @param {*} [options] Override http request option.
63465
+ * @throws {RequiredError}
63466
+ */
63467
+ v1AdminExperimentsGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
63468
+ const localVarPath = `/v1/admin/experiments/`;
63469
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
63470
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
63471
+ let baseOptions;
63472
+ if (configuration) {
63473
+ baseOptions = configuration.baseOptions;
63474
+ }
63475
+
63476
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
63477
+ const localVarHeaderParameter = {} as any;
63478
+ const localVarQueryParameter = {} as any;
63479
+
63480
+ // authentication BearerAuth required
63481
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
63482
+
63483
+
63484
+
63485
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
63486
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
63487
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
63488
+
63489
+ return {
63490
+ url: toPathString(localVarUrlObj),
63491
+ options: localVarRequestOptions,
63492
+ };
63493
+ },
63494
+ /**
63495
+ * Transitions a running or paused experiment to completed status, optionally declaring a winner.
63496
+ * @summary Complete an experiment
63497
+ * @param {string} id Experiment ID (slug)
63498
+ * @param {object} [body] Optional winner variant ID
63499
+ * @param {*} [options] Override http request option.
63500
+ * @throws {RequiredError}
63501
+ */
63502
+ v1AdminExperimentsIdCompletePost: async (id: string, body?: object, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
63503
+ // verify required parameter 'id' is not null or undefined
63504
+ assertParamExists('v1AdminExperimentsIdCompletePost', 'id', id)
63505
+ const localVarPath = `/v1/admin/experiments/{id}/complete`
63506
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
63507
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
63508
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
63509
+ let baseOptions;
63510
+ if (configuration) {
63511
+ baseOptions = configuration.baseOptions;
63512
+ }
63513
+
63514
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
63515
+ const localVarHeaderParameter = {} as any;
63516
+ const localVarQueryParameter = {} as any;
63517
+
63518
+ // authentication BearerAuth required
63519
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
63520
+
63521
+
63522
+
63523
+ localVarHeaderParameter['Content-Type'] = 'application/json';
63524
+
63525
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
63526
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
63527
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
63528
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
63529
+
63530
+ return {
63531
+ url: toPathString(localVarUrlObj),
63532
+ options: localVarRequestOptions,
63533
+ };
63534
+ },
63535
+ /**
63536
+ * Deletes an experiment. Only experiments in draft status can be deleted.
63537
+ * @summary Delete a draft experiment
63538
+ * @param {string} id Experiment ID (slug)
63539
+ * @param {*} [options] Override http request option.
63540
+ * @throws {RequiredError}
63541
+ */
63542
+ v1AdminExperimentsIdDelete: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
63543
+ // verify required parameter 'id' is not null or undefined
63544
+ assertParamExists('v1AdminExperimentsIdDelete', 'id', id)
63545
+ const localVarPath = `/v1/admin/experiments/{id}`
63546
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
63547
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
63548
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
63549
+ let baseOptions;
63550
+ if (configuration) {
63551
+ baseOptions = configuration.baseOptions;
63552
+ }
63553
+
63554
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
63555
+ const localVarHeaderParameter = {} as any;
63556
+ const localVarQueryParameter = {} as any;
63557
+
63558
+ // authentication BearerAuth required
63559
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
63560
+
63561
+
63562
+
63563
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
63564
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
63565
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
63566
+
63567
+ return {
63568
+ url: toPathString(localVarUrlObj),
63569
+ options: localVarRequestOptions,
63570
+ };
63571
+ },
63572
+ /**
63573
+ * Returns a single experiment by its experiment_id slug.
63574
+ * @summary Get experiment by ID
63575
+ * @param {string} id Experiment ID (slug)
63576
+ * @param {*} [options] Override http request option.
63577
+ * @throws {RequiredError}
63578
+ */
63579
+ v1AdminExperimentsIdGet: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
63580
+ // verify required parameter 'id' is not null or undefined
63581
+ assertParamExists('v1AdminExperimentsIdGet', 'id', id)
63582
+ const localVarPath = `/v1/admin/experiments/{id}`
63583
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
63584
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
63585
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
63586
+ let baseOptions;
63587
+ if (configuration) {
63588
+ baseOptions = configuration.baseOptions;
63589
+ }
63590
+
63591
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
63592
+ const localVarHeaderParameter = {} as any;
63593
+ const localVarQueryParameter = {} as any;
63594
+
63595
+ // authentication BearerAuth required
63596
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
63597
+
63598
+
63599
+
63600
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
63601
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
63602
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
63603
+
63604
+ return {
63605
+ url: toPathString(localVarUrlObj),
63606
+ options: localVarRequestOptions,
63607
+ };
63608
+ },
63609
+ /**
63610
+ * Transitions a running experiment to paused status.
63611
+ * @summary Pause an experiment
63612
+ * @param {string} id Experiment ID (slug)
63613
+ * @param {*} [options] Override http request option.
63614
+ * @throws {RequiredError}
63615
+ */
63616
+ v1AdminExperimentsIdPausePost: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
63617
+ // verify required parameter 'id' is not null or undefined
63618
+ assertParamExists('v1AdminExperimentsIdPausePost', 'id', id)
63619
+ const localVarPath = `/v1/admin/experiments/{id}/pause`
63620
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
63621
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
63622
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
63623
+ let baseOptions;
63624
+ if (configuration) {
63625
+ baseOptions = configuration.baseOptions;
63626
+ }
63627
+
63628
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
63629
+ const localVarHeaderParameter = {} as any;
63630
+ const localVarQueryParameter = {} as any;
63631
+
63632
+ // authentication BearerAuth required
63633
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
63634
+
63635
+
63636
+
63637
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
63638
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
63639
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
63640
+
63641
+ return {
63642
+ url: toPathString(localVarUrlObj),
63643
+ options: localVarRequestOptions,
63644
+ };
63645
+ },
63646
+ /**
63647
+ * Updates an existing experiment. Only draft experiments can be fully updated.
63648
+ * @summary Update an experiment
63649
+ * @param {string} id Experiment ID (slug)
63650
+ * @param {DataTypesUpdateExperimentRequest} dataTypesUpdateExperimentRequest Fields to update
63651
+ * @param {*} [options] Override http request option.
63652
+ * @throws {RequiredError}
63653
+ */
63654
+ v1AdminExperimentsIdPut: async (id: string, dataTypesUpdateExperimentRequest: DataTypesUpdateExperimentRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
63655
+ // verify required parameter 'id' is not null or undefined
63656
+ assertParamExists('v1AdminExperimentsIdPut', 'id', id)
63657
+ // verify required parameter 'dataTypesUpdateExperimentRequest' is not null or undefined
63658
+ assertParamExists('v1AdminExperimentsIdPut', 'dataTypesUpdateExperimentRequest', dataTypesUpdateExperimentRequest)
63659
+ const localVarPath = `/v1/admin/experiments/{id}`
63660
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
63661
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
63662
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
63663
+ let baseOptions;
63664
+ if (configuration) {
63665
+ baseOptions = configuration.baseOptions;
63666
+ }
63667
+
63668
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
63669
+ const localVarHeaderParameter = {} as any;
63670
+ const localVarQueryParameter = {} as any;
63671
+
63672
+ // authentication BearerAuth required
63673
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
63674
+
63675
+
63676
+
63677
+ localVarHeaderParameter['Content-Type'] = 'application/json';
63678
+
63679
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
63680
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
63681
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
63682
+ localVarRequestOptions.data = serializeDataIfNeeded(dataTypesUpdateExperimentRequest, localVarRequestOptions, configuration)
63683
+
63684
+ return {
63685
+ url: toPathString(localVarUrlObj),
63686
+ options: localVarRequestOptions,
63687
+ };
63688
+ },
63689
+ /**
63690
+ * Returns analytics results for an experiment from ClickHouse, including per-variant metrics, lifts, and statistical significance.
63691
+ * @summary Get experiment results
63692
+ * @param {string} id Experiment ID (slug)
63693
+ * @param {*} [options] Override http request option.
63694
+ * @throws {RequiredError}
63695
+ */
63696
+ v1AdminExperimentsIdResultsGet: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
63697
+ // verify required parameter 'id' is not null or undefined
63698
+ assertParamExists('v1AdminExperimentsIdResultsGet', 'id', id)
63699
+ const localVarPath = `/v1/admin/experiments/{id}/results`
63700
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
63701
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
63702
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
63703
+ let baseOptions;
63704
+ if (configuration) {
63705
+ baseOptions = configuration.baseOptions;
63706
+ }
63707
+
63708
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
63709
+ const localVarHeaderParameter = {} as any;
63710
+ const localVarQueryParameter = {} as any;
63711
+
63712
+ // authentication BearerAuth required
63713
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
63714
+
63715
+
63716
+
63717
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
63718
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
63719
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
63720
+
63721
+ return {
63722
+ url: toPathString(localVarUrlObj),
63723
+ options: localVarRequestOptions,
63724
+ };
63725
+ },
63726
+ /**
63727
+ * Transitions a draft or paused experiment to running status.
63728
+ * @summary Start an experiment
63729
+ * @param {string} id Experiment ID (slug)
63730
+ * @param {*} [options] Override http request option.
63731
+ * @throws {RequiredError}
63732
+ */
63733
+ v1AdminExperimentsIdStartPost: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
63734
+ // verify required parameter 'id' is not null or undefined
63735
+ assertParamExists('v1AdminExperimentsIdStartPost', 'id', id)
63736
+ const localVarPath = `/v1/admin/experiments/{id}/start`
63737
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
63738
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
63739
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
63740
+ let baseOptions;
63741
+ if (configuration) {
63742
+ baseOptions = configuration.baseOptions;
63743
+ }
63744
+
63745
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
63746
+ const localVarHeaderParameter = {} as any;
63747
+ const localVarQueryParameter = {} as any;
63748
+
63749
+ // authentication BearerAuth required
63750
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
63751
+
63752
+
63753
+
63754
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
63755
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
63756
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
63757
+
63758
+ return {
63759
+ url: toPathString(localVarUrlObj),
63760
+ options: localVarRequestOptions,
63761
+ };
63762
+ },
63763
+ /**
63764
+ * Creates a new A/B test experiment in draft status.
63765
+ * @summary Create a new experiment
63766
+ * @param {DataTypesCreateExperimentRequest} dataTypesCreateExperimentRequest Experiment data
63767
+ * @param {*} [options] Override http request option.
63768
+ * @throws {RequiredError}
63769
+ */
63770
+ v1AdminExperimentsPost: async (dataTypesCreateExperimentRequest: DataTypesCreateExperimentRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
63771
+ // verify required parameter 'dataTypesCreateExperimentRequest' is not null or undefined
63772
+ assertParamExists('v1AdminExperimentsPost', 'dataTypesCreateExperimentRequest', dataTypesCreateExperimentRequest)
63773
+ const localVarPath = `/v1/admin/experiments/`;
63774
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
63775
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
63776
+ let baseOptions;
63777
+ if (configuration) {
63778
+ baseOptions = configuration.baseOptions;
63779
+ }
63780
+
63781
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
63782
+ const localVarHeaderParameter = {} as any;
63783
+ const localVarQueryParameter = {} as any;
63784
+
63785
+ // authentication BearerAuth required
63786
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
63787
+
63788
+
63789
+
63790
+ localVarHeaderParameter['Content-Type'] = 'application/json';
63791
+
63792
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
63793
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
63794
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
63795
+ localVarRequestOptions.data = serializeDataIfNeeded(dataTypesCreateExperimentRequest, localVarRequestOptions, configuration)
63796
+
63797
+ return {
63798
+ url: toPathString(localVarUrlObj),
63799
+ options: localVarRequestOptions,
63800
+ };
63801
+ },
63802
+ /**
63803
+ * Returns variant assignments for all running experiments for the requesting user. Uses hash-based consistent assignment.
63804
+ * @summary Get experiment assignments for a user
63805
+ * @param {string} xStoreid Store ID
63806
+ * @param {string} [xUserId] User ID (provide either x-user-id or x-anon-id)
63807
+ * @param {string} [xAnonId] Anonymous ID (provide either x-user-id or x-anon-id)
63808
+ * @param {*} [options] Override http request option.
63809
+ * @throws {RequiredError}
63810
+ */
63811
+ v1ExperimentsAssignmentGet: async (xStoreid: string, xUserId?: string, xAnonId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
63812
+ // verify required parameter 'xStoreid' is not null or undefined
63813
+ assertParamExists('v1ExperimentsAssignmentGet', 'xStoreid', xStoreid)
63814
+ const localVarPath = `/v1/experiments/assignment`;
63815
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
63816
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
63817
+ let baseOptions;
63818
+ if (configuration) {
63819
+ baseOptions = configuration.baseOptions;
63820
+ }
63821
+
63822
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
63823
+ const localVarHeaderParameter = {} as any;
63824
+ const localVarQueryParameter = {} as any;
63825
+
63826
+ // authentication ApiKeyAuth required
63827
+ await setApiKeyToObject(localVarHeaderParameter, "x-storesecret", configuration)
63828
+
63829
+
63830
+
63831
+ if (xStoreid != null) {
63832
+ localVarHeaderParameter['x-storeid'] = String(xStoreid);
63833
+ }
63834
+ if (xUserId != null) {
63835
+ localVarHeaderParameter['x-user-id'] = String(xUserId);
63836
+ }
63837
+ if (xAnonId != null) {
63838
+ localVarHeaderParameter['x-anon-id'] = String(xAnonId);
63839
+ }
63840
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
63841
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
63842
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
63843
+
63844
+ return {
63845
+ url: toPathString(localVarUrlObj),
63846
+ options: localVarRequestOptions,
63847
+ };
63848
+ },
63849
+ }
63850
+ };
63851
+
63852
+ /**
63853
+ * ExperimentsApi - functional programming interface
63854
+ * @export
63855
+ */
63856
+ export const ExperimentsApiFp = function(configuration?: Configuration) {
63857
+ const localVarAxiosParamCreator = ExperimentsApiAxiosParamCreator(configuration)
63858
+ return {
63859
+ /**
63860
+ * Returns all experiments for the authenticated organization, optionally filtered by store.
63861
+ * @summary List all experiments
63862
+ * @param {*} [options] Override http request option.
63863
+ * @throws {RequiredError}
63864
+ */
63865
+ async v1AdminExperimentsGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{ [key: string]: Array<DataTypesExperiment>; }>> {
63866
+ const localVarAxiosArgs = await localVarAxiosParamCreator.v1AdminExperimentsGet(options);
63867
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
63868
+ const localVarOperationServerBasePath = operationServerMap['ExperimentsApi.v1AdminExperimentsGet']?.[localVarOperationServerIndex]?.url;
63869
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
63870
+ },
63871
+ /**
63872
+ * Transitions a running or paused experiment to completed status, optionally declaring a winner.
63873
+ * @summary Complete an experiment
63874
+ * @param {string} id Experiment ID (slug)
63875
+ * @param {object} [body] Optional winner variant ID
63876
+ * @param {*} [options] Override http request option.
63877
+ * @throws {RequiredError}
63878
+ */
63879
+ async v1AdminExperimentsIdCompletePost(id: string, body?: object, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
63880
+ const localVarAxiosArgs = await localVarAxiosParamCreator.v1AdminExperimentsIdCompletePost(id, body, options);
63881
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
63882
+ const localVarOperationServerBasePath = operationServerMap['ExperimentsApi.v1AdminExperimentsIdCompletePost']?.[localVarOperationServerIndex]?.url;
63883
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
63884
+ },
63885
+ /**
63886
+ * Deletes an experiment. Only experiments in draft status can be deleted.
63887
+ * @summary Delete a draft experiment
63888
+ * @param {string} id Experiment ID (slug)
63889
+ * @param {*} [options] Override http request option.
63890
+ * @throws {RequiredError}
63891
+ */
63892
+ async v1AdminExperimentsIdDelete(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
63893
+ const localVarAxiosArgs = await localVarAxiosParamCreator.v1AdminExperimentsIdDelete(id, options);
63894
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
63895
+ const localVarOperationServerBasePath = operationServerMap['ExperimentsApi.v1AdminExperimentsIdDelete']?.[localVarOperationServerIndex]?.url;
63896
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
63897
+ },
63898
+ /**
63899
+ * Returns a single experiment by its experiment_id slug.
63900
+ * @summary Get experiment by ID
63901
+ * @param {string} id Experiment ID (slug)
63902
+ * @param {*} [options] Override http request option.
63903
+ * @throws {RequiredError}
63904
+ */
63905
+ async v1AdminExperimentsIdGet(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesExperiment>> {
63906
+ const localVarAxiosArgs = await localVarAxiosParamCreator.v1AdminExperimentsIdGet(id, options);
63907
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
63908
+ const localVarOperationServerBasePath = operationServerMap['ExperimentsApi.v1AdminExperimentsIdGet']?.[localVarOperationServerIndex]?.url;
63909
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
63910
+ },
63911
+ /**
63912
+ * Transitions a running experiment to paused status.
63913
+ * @summary Pause an experiment
63914
+ * @param {string} id Experiment ID (slug)
63915
+ * @param {*} [options] Override http request option.
63916
+ * @throws {RequiredError}
63917
+ */
63918
+ async v1AdminExperimentsIdPausePost(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
63919
+ const localVarAxiosArgs = await localVarAxiosParamCreator.v1AdminExperimentsIdPausePost(id, options);
63920
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
63921
+ const localVarOperationServerBasePath = operationServerMap['ExperimentsApi.v1AdminExperimentsIdPausePost']?.[localVarOperationServerIndex]?.url;
63922
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
63923
+ },
63924
+ /**
63925
+ * Updates an existing experiment. Only draft experiments can be fully updated.
63926
+ * @summary Update an experiment
63927
+ * @param {string} id Experiment ID (slug)
63928
+ * @param {DataTypesUpdateExperimentRequest} dataTypesUpdateExperimentRequest Fields to update
63929
+ * @param {*} [options] Override http request option.
63930
+ * @throws {RequiredError}
63931
+ */
63932
+ async v1AdminExperimentsIdPut(id: string, dataTypesUpdateExperimentRequest: DataTypesUpdateExperimentRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesExperiment>> {
63933
+ const localVarAxiosArgs = await localVarAxiosParamCreator.v1AdminExperimentsIdPut(id, dataTypesUpdateExperimentRequest, options);
63934
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
63935
+ const localVarOperationServerBasePath = operationServerMap['ExperimentsApi.v1AdminExperimentsIdPut']?.[localVarOperationServerIndex]?.url;
63936
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
63937
+ },
63938
+ /**
63939
+ * Returns analytics results for an experiment from ClickHouse, including per-variant metrics, lifts, and statistical significance.
63940
+ * @summary Get experiment results
63941
+ * @param {string} id Experiment ID (slug)
63942
+ * @param {*} [options] Override http request option.
63943
+ * @throws {RequiredError}
63944
+ */
63945
+ async v1AdminExperimentsIdResultsGet(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesExperimentResults>> {
63946
+ const localVarAxiosArgs = await localVarAxiosParamCreator.v1AdminExperimentsIdResultsGet(id, options);
63947
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
63948
+ const localVarOperationServerBasePath = operationServerMap['ExperimentsApi.v1AdminExperimentsIdResultsGet']?.[localVarOperationServerIndex]?.url;
63949
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
63950
+ },
63951
+ /**
63952
+ * Transitions a draft or paused experiment to running status.
63953
+ * @summary Start an experiment
63954
+ * @param {string} id Experiment ID (slug)
63955
+ * @param {*} [options] Override http request option.
63956
+ * @throws {RequiredError}
63957
+ */
63958
+ async v1AdminExperimentsIdStartPost(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
63959
+ const localVarAxiosArgs = await localVarAxiosParamCreator.v1AdminExperimentsIdStartPost(id, options);
63960
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
63961
+ const localVarOperationServerBasePath = operationServerMap['ExperimentsApi.v1AdminExperimentsIdStartPost']?.[localVarOperationServerIndex]?.url;
63962
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
63963
+ },
63964
+ /**
63965
+ * Creates a new A/B test experiment in draft status.
63966
+ * @summary Create a new experiment
63967
+ * @param {DataTypesCreateExperimentRequest} dataTypesCreateExperimentRequest Experiment data
63968
+ * @param {*} [options] Override http request option.
63969
+ * @throws {RequiredError}
63970
+ */
63971
+ async v1AdminExperimentsPost(dataTypesCreateExperimentRequest: DataTypesCreateExperimentRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesExperiment>> {
63972
+ const localVarAxiosArgs = await localVarAxiosParamCreator.v1AdminExperimentsPost(dataTypesCreateExperimentRequest, options);
63973
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
63974
+ const localVarOperationServerBasePath = operationServerMap['ExperimentsApi.v1AdminExperimentsPost']?.[localVarOperationServerIndex]?.url;
63975
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
63976
+ },
63977
+ /**
63978
+ * Returns variant assignments for all running experiments for the requesting user. Uses hash-based consistent assignment.
63979
+ * @summary Get experiment assignments for a user
63980
+ * @param {string} xStoreid Store ID
63981
+ * @param {string} [xUserId] User ID (provide either x-user-id or x-anon-id)
63982
+ * @param {string} [xAnonId] Anonymous ID (provide either x-user-id or x-anon-id)
63983
+ * @param {*} [options] Override http request option.
63984
+ * @throws {RequiredError}
63985
+ */
63986
+ async v1ExperimentsAssignmentGet(xStoreid: string, xUserId?: string, xAnonId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{ [key: string]: Array<DataTypesExperimentAssignment>; }>> {
63987
+ const localVarAxiosArgs = await localVarAxiosParamCreator.v1ExperimentsAssignmentGet(xStoreid, xUserId, xAnonId, options);
63988
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
63989
+ const localVarOperationServerBasePath = operationServerMap['ExperimentsApi.v1ExperimentsAssignmentGet']?.[localVarOperationServerIndex]?.url;
63990
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
63991
+ },
63992
+ }
63993
+ };
63994
+
63995
+ /**
63996
+ * ExperimentsApi - factory interface
63997
+ * @export
63998
+ */
63999
+ export const ExperimentsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
64000
+ const localVarFp = ExperimentsApiFp(configuration)
64001
+ return {
64002
+ /**
64003
+ * Returns all experiments for the authenticated organization, optionally filtered by store.
64004
+ * @summary List all experiments
64005
+ * @param {*} [options] Override http request option.
64006
+ * @throws {RequiredError}
64007
+ */
64008
+ v1AdminExperimentsGet(options?: RawAxiosRequestConfig): AxiosPromise<{ [key: string]: Array<DataTypesExperiment>; }> {
64009
+ return localVarFp.v1AdminExperimentsGet(options).then((request) => request(axios, basePath));
64010
+ },
64011
+ /**
64012
+ * Transitions a running or paused experiment to completed status, optionally declaring a winner.
64013
+ * @summary Complete an experiment
64014
+ * @param {string} id Experiment ID (slug)
64015
+ * @param {object} [body] Optional winner variant ID
64016
+ * @param {*} [options] Override http request option.
64017
+ * @throws {RequiredError}
64018
+ */
64019
+ v1AdminExperimentsIdCompletePost(id: string, body?: object, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
64020
+ return localVarFp.v1AdminExperimentsIdCompletePost(id, body, options).then((request) => request(axios, basePath));
64021
+ },
64022
+ /**
64023
+ * Deletes an experiment. Only experiments in draft status can be deleted.
64024
+ * @summary Delete a draft experiment
64025
+ * @param {string} id Experiment ID (slug)
64026
+ * @param {*} [options] Override http request option.
64027
+ * @throws {RequiredError}
64028
+ */
64029
+ v1AdminExperimentsIdDelete(id: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
64030
+ return localVarFp.v1AdminExperimentsIdDelete(id, options).then((request) => request(axios, basePath));
64031
+ },
64032
+ /**
64033
+ * Returns a single experiment by its experiment_id slug.
64034
+ * @summary Get experiment by ID
64035
+ * @param {string} id Experiment ID (slug)
64036
+ * @param {*} [options] Override http request option.
64037
+ * @throws {RequiredError}
64038
+ */
64039
+ v1AdminExperimentsIdGet(id: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesExperiment> {
64040
+ return localVarFp.v1AdminExperimentsIdGet(id, options).then((request) => request(axios, basePath));
64041
+ },
64042
+ /**
64043
+ * Transitions a running experiment to paused status.
64044
+ * @summary Pause an experiment
64045
+ * @param {string} id Experiment ID (slug)
64046
+ * @param {*} [options] Override http request option.
64047
+ * @throws {RequiredError}
64048
+ */
64049
+ v1AdminExperimentsIdPausePost(id: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
64050
+ return localVarFp.v1AdminExperimentsIdPausePost(id, options).then((request) => request(axios, basePath));
64051
+ },
64052
+ /**
64053
+ * Updates an existing experiment. Only draft experiments can be fully updated.
64054
+ * @summary Update an experiment
64055
+ * @param {string} id Experiment ID (slug)
64056
+ * @param {DataTypesUpdateExperimentRequest} dataTypesUpdateExperimentRequest Fields to update
64057
+ * @param {*} [options] Override http request option.
64058
+ * @throws {RequiredError}
64059
+ */
64060
+ v1AdminExperimentsIdPut(id: string, dataTypesUpdateExperimentRequest: DataTypesUpdateExperimentRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesExperiment> {
64061
+ return localVarFp.v1AdminExperimentsIdPut(id, dataTypesUpdateExperimentRequest, options).then((request) => request(axios, basePath));
64062
+ },
64063
+ /**
64064
+ * Returns analytics results for an experiment from ClickHouse, including per-variant metrics, lifts, and statistical significance.
64065
+ * @summary Get experiment results
64066
+ * @param {string} id Experiment ID (slug)
64067
+ * @param {*} [options] Override http request option.
64068
+ * @throws {RequiredError}
64069
+ */
64070
+ v1AdminExperimentsIdResultsGet(id: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesExperimentResults> {
64071
+ return localVarFp.v1AdminExperimentsIdResultsGet(id, options).then((request) => request(axios, basePath));
64072
+ },
64073
+ /**
64074
+ * Transitions a draft or paused experiment to running status.
64075
+ * @summary Start an experiment
64076
+ * @param {string} id Experiment ID (slug)
64077
+ * @param {*} [options] Override http request option.
64078
+ * @throws {RequiredError}
64079
+ */
64080
+ v1AdminExperimentsIdStartPost(id: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
64081
+ return localVarFp.v1AdminExperimentsIdStartPost(id, options).then((request) => request(axios, basePath));
64082
+ },
64083
+ /**
64084
+ * Creates a new A/B test experiment in draft status.
64085
+ * @summary Create a new experiment
64086
+ * @param {DataTypesCreateExperimentRequest} dataTypesCreateExperimentRequest Experiment data
64087
+ * @param {*} [options] Override http request option.
64088
+ * @throws {RequiredError}
64089
+ */
64090
+ v1AdminExperimentsPost(dataTypesCreateExperimentRequest: DataTypesCreateExperimentRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesExperiment> {
64091
+ return localVarFp.v1AdminExperimentsPost(dataTypesCreateExperimentRequest, options).then((request) => request(axios, basePath));
64092
+ },
64093
+ /**
64094
+ * Returns variant assignments for all running experiments for the requesting user. Uses hash-based consistent assignment.
64095
+ * @summary Get experiment assignments for a user
64096
+ * @param {string} xStoreid Store ID
64097
+ * @param {string} [xUserId] User ID (provide either x-user-id or x-anon-id)
64098
+ * @param {string} [xAnonId] Anonymous ID (provide either x-user-id or x-anon-id)
64099
+ * @param {*} [options] Override http request option.
64100
+ * @throws {RequiredError}
64101
+ */
64102
+ v1ExperimentsAssignmentGet(xStoreid: string, xUserId?: string, xAnonId?: string, options?: RawAxiosRequestConfig): AxiosPromise<{ [key: string]: Array<DataTypesExperimentAssignment>; }> {
64103
+ return localVarFp.v1ExperimentsAssignmentGet(xStoreid, xUserId, xAnonId, options).then((request) => request(axios, basePath));
64104
+ },
64105
+ };
64106
+ };
64107
+
64108
+ /**
64109
+ * ExperimentsApi - object-oriented interface
64110
+ * @export
64111
+ * @class ExperimentsApi
64112
+ * @extends {BaseAPI}
64113
+ */
64114
+ export class ExperimentsApi extends BaseAPI {
64115
+ /**
64116
+ * Returns all experiments for the authenticated organization, optionally filtered by store.
64117
+ * @summary List all experiments
64118
+ * @param {*} [options] Override http request option.
64119
+ * @throws {RequiredError}
64120
+ * @memberof ExperimentsApi
64121
+ */
64122
+ public v1AdminExperimentsGet(options?: RawAxiosRequestConfig) {
64123
+ return ExperimentsApiFp(this.configuration).v1AdminExperimentsGet(options).then((request) => request(this.axios, this.basePath));
64124
+ }
64125
+
64126
+ /**
64127
+ * Transitions a running or paused experiment to completed status, optionally declaring a winner.
64128
+ * @summary Complete an experiment
64129
+ * @param {string} id Experiment ID (slug)
64130
+ * @param {object} [body] Optional winner variant ID
64131
+ * @param {*} [options] Override http request option.
64132
+ * @throws {RequiredError}
64133
+ * @memberof ExperimentsApi
64134
+ */
64135
+ public v1AdminExperimentsIdCompletePost(id: string, body?: object, options?: RawAxiosRequestConfig) {
64136
+ return ExperimentsApiFp(this.configuration).v1AdminExperimentsIdCompletePost(id, body, options).then((request) => request(this.axios, this.basePath));
64137
+ }
64138
+
64139
+ /**
64140
+ * Deletes an experiment. Only experiments in draft status can be deleted.
64141
+ * @summary Delete a draft experiment
64142
+ * @param {string} id Experiment ID (slug)
64143
+ * @param {*} [options] Override http request option.
64144
+ * @throws {RequiredError}
64145
+ * @memberof ExperimentsApi
64146
+ */
64147
+ public v1AdminExperimentsIdDelete(id: string, options?: RawAxiosRequestConfig) {
64148
+ return ExperimentsApiFp(this.configuration).v1AdminExperimentsIdDelete(id, options).then((request) => request(this.axios, this.basePath));
64149
+ }
64150
+
64151
+ /**
64152
+ * Returns a single experiment by its experiment_id slug.
64153
+ * @summary Get experiment by ID
64154
+ * @param {string} id Experiment ID (slug)
64155
+ * @param {*} [options] Override http request option.
64156
+ * @throws {RequiredError}
64157
+ * @memberof ExperimentsApi
64158
+ */
64159
+ public v1AdminExperimentsIdGet(id: string, options?: RawAxiosRequestConfig) {
64160
+ return ExperimentsApiFp(this.configuration).v1AdminExperimentsIdGet(id, options).then((request) => request(this.axios, this.basePath));
64161
+ }
64162
+
64163
+ /**
64164
+ * Transitions a running experiment to paused status.
64165
+ * @summary Pause an experiment
64166
+ * @param {string} id Experiment ID (slug)
64167
+ * @param {*} [options] Override http request option.
64168
+ * @throws {RequiredError}
64169
+ * @memberof ExperimentsApi
64170
+ */
64171
+ public v1AdminExperimentsIdPausePost(id: string, options?: RawAxiosRequestConfig) {
64172
+ return ExperimentsApiFp(this.configuration).v1AdminExperimentsIdPausePost(id, options).then((request) => request(this.axios, this.basePath));
64173
+ }
64174
+
64175
+ /**
64176
+ * Updates an existing experiment. Only draft experiments can be fully updated.
64177
+ * @summary Update an experiment
64178
+ * @param {string} id Experiment ID (slug)
64179
+ * @param {DataTypesUpdateExperimentRequest} dataTypesUpdateExperimentRequest Fields to update
64180
+ * @param {*} [options] Override http request option.
64181
+ * @throws {RequiredError}
64182
+ * @memberof ExperimentsApi
64183
+ */
64184
+ public v1AdminExperimentsIdPut(id: string, dataTypesUpdateExperimentRequest: DataTypesUpdateExperimentRequest, options?: RawAxiosRequestConfig) {
64185
+ return ExperimentsApiFp(this.configuration).v1AdminExperimentsIdPut(id, dataTypesUpdateExperimentRequest, options).then((request) => request(this.axios, this.basePath));
64186
+ }
64187
+
64188
+ /**
64189
+ * Returns analytics results for an experiment from ClickHouse, including per-variant metrics, lifts, and statistical significance.
64190
+ * @summary Get experiment results
64191
+ * @param {string} id Experiment ID (slug)
64192
+ * @param {*} [options] Override http request option.
64193
+ * @throws {RequiredError}
64194
+ * @memberof ExperimentsApi
64195
+ */
64196
+ public v1AdminExperimentsIdResultsGet(id: string, options?: RawAxiosRequestConfig) {
64197
+ return ExperimentsApiFp(this.configuration).v1AdminExperimentsIdResultsGet(id, options).then((request) => request(this.axios, this.basePath));
64198
+ }
64199
+
64200
+ /**
64201
+ * Transitions a draft or paused experiment to running status.
64202
+ * @summary Start an experiment
64203
+ * @param {string} id Experiment ID (slug)
64204
+ * @param {*} [options] Override http request option.
64205
+ * @throws {RequiredError}
64206
+ * @memberof ExperimentsApi
64207
+ */
64208
+ public v1AdminExperimentsIdStartPost(id: string, options?: RawAxiosRequestConfig) {
64209
+ return ExperimentsApiFp(this.configuration).v1AdminExperimentsIdStartPost(id, options).then((request) => request(this.axios, this.basePath));
64210
+ }
64211
+
64212
+ /**
64213
+ * Creates a new A/B test experiment in draft status.
64214
+ * @summary Create a new experiment
64215
+ * @param {DataTypesCreateExperimentRequest} dataTypesCreateExperimentRequest Experiment data
64216
+ * @param {*} [options] Override http request option.
64217
+ * @throws {RequiredError}
64218
+ * @memberof ExperimentsApi
64219
+ */
64220
+ public v1AdminExperimentsPost(dataTypesCreateExperimentRequest: DataTypesCreateExperimentRequest, options?: RawAxiosRequestConfig) {
64221
+ return ExperimentsApiFp(this.configuration).v1AdminExperimentsPost(dataTypesCreateExperimentRequest, options).then((request) => request(this.axios, this.basePath));
64222
+ }
64223
+
64224
+ /**
64225
+ * Returns variant assignments for all running experiments for the requesting user. Uses hash-based consistent assignment.
64226
+ * @summary Get experiment assignments for a user
64227
+ * @param {string} xStoreid Store ID
64228
+ * @param {string} [xUserId] User ID (provide either x-user-id or x-anon-id)
64229
+ * @param {string} [xAnonId] Anonymous ID (provide either x-user-id or x-anon-id)
64230
+ * @param {*} [options] Override http request option.
64231
+ * @throws {RequiredError}
64232
+ * @memberof ExperimentsApi
64233
+ */
64234
+ public v1ExperimentsAssignmentGet(xStoreid: string, xUserId?: string, xAnonId?: string, options?: RawAxiosRequestConfig) {
64235
+ return ExperimentsApiFp(this.configuration).v1ExperimentsAssignmentGet(xStoreid, xUserId, xAnonId, options).then((request) => request(this.axios, this.basePath));
64236
+ }
64237
+ }
64238
+
64239
+
64240
+
62428
64241
  /**
62429
64242
  * ExternalAPINotificationsApi - axios parameter creator
62430
64243
  * @export
@@ -80608,15 +82421,15 @@ export const RolesApiAxiosParamCreator = function (configuration?: Configuration
80608
82421
  * Updates role permissions with org-level and store-level separation
80609
82422
  * @summary Update role permissions
80610
82423
  * @param {number} roleId Role ID
80611
- * @param {DataTypesUpdateRolePermissionsRequest} dataTypesUpdateRolePermissionsRequest Permission configuration
82424
+ * @param {DataTypesSlimUpdateRolePermissionsRequest} dataTypesSlimUpdateRolePermissionsRequest Permission configuration (slim). Also accepts DataTypes.UpdateRolePermissionsRequest (legacy)
80612
82425
  * @param {*} [options] Override http request option.
80613
82426
  * @throws {RequiredError}
80614
82427
  */
80615
- adminRolesRoleIdPermissionsPut: async (roleId: number, dataTypesUpdateRolePermissionsRequest: DataTypesUpdateRolePermissionsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
82428
+ adminRolesRoleIdPermissionsPut: async (roleId: number, dataTypesSlimUpdateRolePermissionsRequest: DataTypesSlimUpdateRolePermissionsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
80616
82429
  // verify required parameter 'roleId' is not null or undefined
80617
82430
  assertParamExists('adminRolesRoleIdPermissionsPut', 'roleId', roleId)
80618
- // verify required parameter 'dataTypesUpdateRolePermissionsRequest' is not null or undefined
80619
- assertParamExists('adminRolesRoleIdPermissionsPut', 'dataTypesUpdateRolePermissionsRequest', dataTypesUpdateRolePermissionsRequest)
82431
+ // verify required parameter 'dataTypesSlimUpdateRolePermissionsRequest' is not null or undefined
82432
+ assertParamExists('adminRolesRoleIdPermissionsPut', 'dataTypesSlimUpdateRolePermissionsRequest', dataTypesSlimUpdateRolePermissionsRequest)
80620
82433
  const localVarPath = `/admin/roles/{roleId}/permissions`
80621
82434
  .replace(`{${"roleId"}}`, encodeURIComponent(String(roleId)));
80622
82435
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -80640,7 +82453,7 @@ export const RolesApiAxiosParamCreator = function (configuration?: Configuration
80640
82453
  setSearchParams(localVarUrlObj, localVarQueryParameter);
80641
82454
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
80642
82455
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
80643
- localVarRequestOptions.data = serializeDataIfNeeded(dataTypesUpdateRolePermissionsRequest, localVarRequestOptions, configuration)
82456
+ localVarRequestOptions.data = serializeDataIfNeeded(dataTypesSlimUpdateRolePermissionsRequest, localVarRequestOptions, configuration)
80644
82457
 
80645
82458
  return {
80646
82459
  url: toPathString(localVarUrlObj),
@@ -80742,7 +82555,7 @@ export const RolesApiFp = function(configuration?: Configuration) {
80742
82555
  * @param {*} [options] Override http request option.
80743
82556
  * @throws {RequiredError}
80744
82557
  */
80745
- async adminRolesRoleIdPermissionsGet(roleId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesRolePermissionsResponse>> {
82558
+ async adminRolesRoleIdPermissionsGet(roleId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesSlimRolePermissionsResponse>> {
80746
82559
  const localVarAxiosArgs = await localVarAxiosParamCreator.adminRolesRoleIdPermissionsGet(roleId, options);
80747
82560
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
80748
82561
  const localVarOperationServerBasePath = operationServerMap['RolesApi.adminRolesRoleIdPermissionsGet']?.[localVarOperationServerIndex]?.url;
@@ -80752,12 +82565,12 @@ export const RolesApiFp = function(configuration?: Configuration) {
80752
82565
  * Updates role permissions with org-level and store-level separation
80753
82566
  * @summary Update role permissions
80754
82567
  * @param {number} roleId Role ID
80755
- * @param {DataTypesUpdateRolePermissionsRequest} dataTypesUpdateRolePermissionsRequest Permission configuration
82568
+ * @param {DataTypesSlimUpdateRolePermissionsRequest} dataTypesSlimUpdateRolePermissionsRequest Permission configuration (slim). Also accepts DataTypes.UpdateRolePermissionsRequest (legacy)
80756
82569
  * @param {*} [options] Override http request option.
80757
82570
  * @throws {RequiredError}
80758
82571
  */
80759
- async adminRolesRoleIdPermissionsPut(roleId: number, dataTypesUpdateRolePermissionsRequest: DataTypesUpdateRolePermissionsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
80760
- const localVarAxiosArgs = await localVarAxiosParamCreator.adminRolesRoleIdPermissionsPut(roleId, dataTypesUpdateRolePermissionsRequest, options);
82572
+ async adminRolesRoleIdPermissionsPut(roleId: number, dataTypesSlimUpdateRolePermissionsRequest: DataTypesSlimUpdateRolePermissionsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
82573
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminRolesRoleIdPermissionsPut(roleId, dataTypesSlimUpdateRolePermissionsRequest, options);
80761
82574
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
80762
82575
  const localVarOperationServerBasePath = operationServerMap['RolesApi.adminRolesRoleIdPermissionsPut']?.[localVarOperationServerIndex]?.url;
80763
82576
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -80839,19 +82652,19 @@ export const RolesApiFactory = function (configuration?: Configuration, basePath
80839
82652
  * @param {*} [options] Override http request option.
80840
82653
  * @throws {RequiredError}
80841
82654
  */
80842
- adminRolesRoleIdPermissionsGet(roleId: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesRolePermissionsResponse> {
82655
+ adminRolesRoleIdPermissionsGet(roleId: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesSlimRolePermissionsResponse> {
80843
82656
  return localVarFp.adminRolesRoleIdPermissionsGet(roleId, options).then((request) => request(axios, basePath));
80844
82657
  },
80845
82658
  /**
80846
82659
  * Updates role permissions with org-level and store-level separation
80847
82660
  * @summary Update role permissions
80848
82661
  * @param {number} roleId Role ID
80849
- * @param {DataTypesUpdateRolePermissionsRequest} dataTypesUpdateRolePermissionsRequest Permission configuration
82662
+ * @param {DataTypesSlimUpdateRolePermissionsRequest} dataTypesSlimUpdateRolePermissionsRequest Permission configuration (slim). Also accepts DataTypes.UpdateRolePermissionsRequest (legacy)
80850
82663
  * @param {*} [options] Override http request option.
80851
82664
  * @throws {RequiredError}
80852
82665
  */
80853
- adminRolesRoleIdPermissionsPut(roleId: number, dataTypesUpdateRolePermissionsRequest: DataTypesUpdateRolePermissionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
80854
- return localVarFp.adminRolesRoleIdPermissionsPut(roleId, dataTypesUpdateRolePermissionsRequest, options).then((request) => request(axios, basePath));
82666
+ adminRolesRoleIdPermissionsPut(roleId: number, dataTypesSlimUpdateRolePermissionsRequest: DataTypesSlimUpdateRolePermissionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
82667
+ return localVarFp.adminRolesRoleIdPermissionsPut(roleId, dataTypesSlimUpdateRolePermissionsRequest, options).then((request) => request(axios, basePath));
80855
82668
  },
80856
82669
  };
80857
82670
  };
@@ -80951,13 +82764,13 @@ export class RolesApi extends BaseAPI {
80951
82764
  * Updates role permissions with org-level and store-level separation
80952
82765
  * @summary Update role permissions
80953
82766
  * @param {number} roleId Role ID
80954
- * @param {DataTypesUpdateRolePermissionsRequest} dataTypesUpdateRolePermissionsRequest Permission configuration
82767
+ * @param {DataTypesSlimUpdateRolePermissionsRequest} dataTypesSlimUpdateRolePermissionsRequest Permission configuration (slim). Also accepts DataTypes.UpdateRolePermissionsRequest (legacy)
80955
82768
  * @param {*} [options] Override http request option.
80956
82769
  * @throws {RequiredError}
80957
82770
  * @memberof RolesApi
80958
82771
  */
80959
- public adminRolesRoleIdPermissionsPut(roleId: number, dataTypesUpdateRolePermissionsRequest: DataTypesUpdateRolePermissionsRequest, options?: RawAxiosRequestConfig) {
80960
- return RolesApiFp(this.configuration).adminRolesRoleIdPermissionsPut(roleId, dataTypesUpdateRolePermissionsRequest, options).then((request) => request(this.axios, this.basePath));
82772
+ public adminRolesRoleIdPermissionsPut(roleId: number, dataTypesSlimUpdateRolePermissionsRequest: DataTypesSlimUpdateRolePermissionsRequest, options?: RawAxiosRequestConfig) {
82773
+ return RolesApiFp(this.configuration).adminRolesRoleIdPermissionsPut(roleId, dataTypesSlimUpdateRolePermissionsRequest, options).then((request) => request(this.axios, this.basePath));
80961
82774
  }
80962
82775
  }
80963
82776
 
@@ -90795,15 +92608,15 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
90795
92608
  * Updates user-specific role permissions with org-level and store-level separation
90796
92609
  * @summary Update user-specific role permissions
90797
92610
  * @param {number} userId User ID
90798
- * @param {DataTypesUpdateUserRolePermissionsRequest} dataTypesUpdateUserRolePermissionsRequest Permission configuration
92611
+ * @param {DataTypesSlimUpdateUserRolePermissionsRequest} dataTypesSlimUpdateUserRolePermissionsRequest Permission configuration (slim). Also accepts DataTypes.UpdateUserRolePermissionsRequest (legacy)
90799
92612
  * @param {*} [options] Override http request option.
90800
92613
  * @throws {RequiredError}
90801
92614
  */
90802
- adminUsersUserIdPermissionsRolePut: async (userId: number, dataTypesUpdateUserRolePermissionsRequest: DataTypesUpdateUserRolePermissionsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
92615
+ adminUsersUserIdPermissionsRolePut: async (userId: number, dataTypesSlimUpdateUserRolePermissionsRequest: DataTypesSlimUpdateUserRolePermissionsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
90803
92616
  // verify required parameter 'userId' is not null or undefined
90804
92617
  assertParamExists('adminUsersUserIdPermissionsRolePut', 'userId', userId)
90805
- // verify required parameter 'dataTypesUpdateUserRolePermissionsRequest' is not null or undefined
90806
- assertParamExists('adminUsersUserIdPermissionsRolePut', 'dataTypesUpdateUserRolePermissionsRequest', dataTypesUpdateUserRolePermissionsRequest)
92618
+ // verify required parameter 'dataTypesSlimUpdateUserRolePermissionsRequest' is not null or undefined
92619
+ assertParamExists('adminUsersUserIdPermissionsRolePut', 'dataTypesSlimUpdateUserRolePermissionsRequest', dataTypesSlimUpdateUserRolePermissionsRequest)
90807
92620
  const localVarPath = `/admin/users/{userId}/permissions/role`
90808
92621
  .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
90809
92622
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -90827,7 +92640,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
90827
92640
  setSearchParams(localVarUrlObj, localVarQueryParameter);
90828
92641
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
90829
92642
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
90830
- localVarRequestOptions.data = serializeDataIfNeeded(dataTypesUpdateUserRolePermissionsRequest, localVarRequestOptions, configuration)
92643
+ localVarRequestOptions.data = serializeDataIfNeeded(dataTypesSlimUpdateUserRolePermissionsRequest, localVarRequestOptions, configuration)
90831
92644
 
90832
92645
  return {
90833
92646
  url: toPathString(localVarUrlObj),
@@ -90984,7 +92797,7 @@ export const UserApiFp = function(configuration?: Configuration) {
90984
92797
  * @param {*} [options] Override http request option.
90985
92798
  * @throws {RequiredError}
90986
92799
  */
90987
- async adminUsersUserIdPermissionsRoleGet(userId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesUserRolePermissionsResponse>> {
92800
+ async adminUsersUserIdPermissionsRoleGet(userId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesSlimUserRolePermissionsResponse>> {
90988
92801
  const localVarAxiosArgs = await localVarAxiosParamCreator.adminUsersUserIdPermissionsRoleGet(userId, options);
90989
92802
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
90990
92803
  const localVarOperationServerBasePath = operationServerMap['UserApi.adminUsersUserIdPermissionsRoleGet']?.[localVarOperationServerIndex]?.url;
@@ -90994,12 +92807,12 @@ export const UserApiFp = function(configuration?: Configuration) {
90994
92807
  * Updates user-specific role permissions with org-level and store-level separation
90995
92808
  * @summary Update user-specific role permissions
90996
92809
  * @param {number} userId User ID
90997
- * @param {DataTypesUpdateUserRolePermissionsRequest} dataTypesUpdateUserRolePermissionsRequest Permission configuration
92810
+ * @param {DataTypesSlimUpdateUserRolePermissionsRequest} dataTypesSlimUpdateUserRolePermissionsRequest Permission configuration (slim). Also accepts DataTypes.UpdateUserRolePermissionsRequest (legacy)
90998
92811
  * @param {*} [options] Override http request option.
90999
92812
  * @throws {RequiredError}
91000
92813
  */
91001
- async adminUsersUserIdPermissionsRolePut(userId: number, dataTypesUpdateUserRolePermissionsRequest: DataTypesUpdateUserRolePermissionsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
91002
- const localVarAxiosArgs = await localVarAxiosParamCreator.adminUsersUserIdPermissionsRolePut(userId, dataTypesUpdateUserRolePermissionsRequest, options);
92814
+ async adminUsersUserIdPermissionsRolePut(userId: number, dataTypesSlimUpdateUserRolePermissionsRequest: DataTypesSlimUpdateUserRolePermissionsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
92815
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminUsersUserIdPermissionsRolePut(userId, dataTypesSlimUpdateUserRolePermissionsRequest, options);
91003
92816
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
91004
92817
  const localVarOperationServerBasePath = operationServerMap['UserApi.adminUsersUserIdPermissionsRolePut']?.[localVarOperationServerIndex]?.url;
91005
92818
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -91124,19 +92937,19 @@ export const UserApiFactory = function (configuration?: Configuration, basePath?
91124
92937
  * @param {*} [options] Override http request option.
91125
92938
  * @throws {RequiredError}
91126
92939
  */
91127
- adminUsersUserIdPermissionsRoleGet(userId: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesUserRolePermissionsResponse> {
92940
+ adminUsersUserIdPermissionsRoleGet(userId: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesSlimUserRolePermissionsResponse> {
91128
92941
  return localVarFp.adminUsersUserIdPermissionsRoleGet(userId, options).then((request) => request(axios, basePath));
91129
92942
  },
91130
92943
  /**
91131
92944
  * Updates user-specific role permissions with org-level and store-level separation
91132
92945
  * @summary Update user-specific role permissions
91133
92946
  * @param {number} userId User ID
91134
- * @param {DataTypesUpdateUserRolePermissionsRequest} dataTypesUpdateUserRolePermissionsRequest Permission configuration
92947
+ * @param {DataTypesSlimUpdateUserRolePermissionsRequest} dataTypesSlimUpdateUserRolePermissionsRequest Permission configuration (slim). Also accepts DataTypes.UpdateUserRolePermissionsRequest (legacy)
91135
92948
  * @param {*} [options] Override http request option.
91136
92949
  * @throws {RequiredError}
91137
92950
  */
91138
- adminUsersUserIdPermissionsRolePut(userId: number, dataTypesUpdateUserRolePermissionsRequest: DataTypesUpdateUserRolePermissionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
91139
- return localVarFp.adminUsersUserIdPermissionsRolePut(userId, dataTypesUpdateUserRolePermissionsRequest, options).then((request) => request(axios, basePath));
92951
+ adminUsersUserIdPermissionsRolePut(userId: number, dataTypesSlimUpdateUserRolePermissionsRequest: DataTypesSlimUpdateUserRolePermissionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
92952
+ return localVarFp.adminUsersUserIdPermissionsRolePut(userId, dataTypesSlimUpdateUserRolePermissionsRequest, options).then((request) => request(axios, basePath));
91140
92953
  },
91141
92954
  };
91142
92955
  };
@@ -91287,13 +93100,13 @@ export class UserApi extends BaseAPI {
91287
93100
  * Updates user-specific role permissions with org-level and store-level separation
91288
93101
  * @summary Update user-specific role permissions
91289
93102
  * @param {number} userId User ID
91290
- * @param {DataTypesUpdateUserRolePermissionsRequest} dataTypesUpdateUserRolePermissionsRequest Permission configuration
93103
+ * @param {DataTypesSlimUpdateUserRolePermissionsRequest} dataTypesSlimUpdateUserRolePermissionsRequest Permission configuration (slim). Also accepts DataTypes.UpdateUserRolePermissionsRequest (legacy)
91291
93104
  * @param {*} [options] Override http request option.
91292
93105
  * @throws {RequiredError}
91293
93106
  * @memberof UserApi
91294
93107
  */
91295
- public adminUsersUserIdPermissionsRolePut(userId: number, dataTypesUpdateUserRolePermissionsRequest: DataTypesUpdateUserRolePermissionsRequest, options?: RawAxiosRequestConfig) {
91296
- return UserApiFp(this.configuration).adminUsersUserIdPermissionsRolePut(userId, dataTypesUpdateUserRolePermissionsRequest, options).then((request) => request(this.axios, this.basePath));
93108
+ public adminUsersUserIdPermissionsRolePut(userId: number, dataTypesSlimUpdateUserRolePermissionsRequest: DataTypesSlimUpdateUserRolePermissionsRequest, options?: RawAxiosRequestConfig) {
93109
+ return UserApiFp(this.configuration).adminUsersUserIdPermissionsRolePut(userId, dataTypesSlimUpdateUserRolePermissionsRequest, options).then((request) => request(this.axios, this.basePath));
91297
93110
  }
91298
93111
  }
91299
93112