@seekora-ai/admin-api 1.1.25 → 1.1.27

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
@@ -8670,6 +8670,12 @@ export interface DataTypesCreateMenuRequestDto {
8670
8670
  * @memberof DataTypesCreateMenuRequestDto
8671
8671
  */
8672
8672
  'isParentMenu'?: boolean;
8673
+ /**
8674
+ * VARCHAR(20), nullable - \'navbar\' or \'profile_dropdown\'
8675
+ * @type {string}
8676
+ * @memberof DataTypesCreateMenuRequestDto
8677
+ */
8678
+ 'menuLocation'?: string;
8673
8679
  /**
8674
8680
  * VARCHAR(100)
8675
8681
  * @type {string}
@@ -11382,6 +11388,31 @@ export interface DataTypesGenericResponseAny {
11382
11388
  */
11383
11389
  'status'?: number;
11384
11390
  }
11391
+ /**
11392
+ *
11393
+ * @export
11394
+ * @interface DataTypesGenericResponseArrayDataTypesMenuRouteMetricMapping
11395
+ */
11396
+ export interface DataTypesGenericResponseArrayDataTypesMenuRouteMetricMapping {
11397
+ /**
11398
+ *
11399
+ * @type {Array<DataTypesMenuRouteMetricMapping>}
11400
+ * @memberof DataTypesGenericResponseArrayDataTypesMenuRouteMetricMapping
11401
+ */
11402
+ 'data'?: Array<DataTypesMenuRouteMetricMapping>;
11403
+ /**
11404
+ *
11405
+ * @type {string}
11406
+ * @memberof DataTypesGenericResponseArrayDataTypesMenuRouteMetricMapping
11407
+ */
11408
+ 'message'?: string;
11409
+ /**
11410
+ *
11411
+ * @type {number}
11412
+ * @memberof DataTypesGenericResponseArrayDataTypesMenuRouteMetricMapping
11413
+ */
11414
+ 'status'?: number;
11415
+ }
11385
11416
  /**
11386
11417
  *
11387
11418
  * @export
@@ -11457,6 +11488,31 @@ export interface DataTypesGenericResponseDataTypesGSTVerificationResponse {
11457
11488
  */
11458
11489
  'status'?: number;
11459
11490
  }
11491
+ /**
11492
+ *
11493
+ * @export
11494
+ * @interface DataTypesGenericResponseDataTypesMenuRouteMetricResponse
11495
+ */
11496
+ export interface DataTypesGenericResponseDataTypesMenuRouteMetricResponse {
11497
+ /**
11498
+ *
11499
+ * @type {DataTypesMenuRouteMetricResponse}
11500
+ * @memberof DataTypesGenericResponseDataTypesMenuRouteMetricResponse
11501
+ */
11502
+ 'data'?: DataTypesMenuRouteMetricResponse;
11503
+ /**
11504
+ *
11505
+ * @type {string}
11506
+ * @memberof DataTypesGenericResponseDataTypesMenuRouteMetricResponse
11507
+ */
11508
+ 'message'?: string;
11509
+ /**
11510
+ *
11511
+ * @type {number}
11512
+ * @memberof DataTypesGenericResponseDataTypesMenuRouteMetricResponse
11513
+ */
11514
+ 'status'?: number;
11515
+ }
11460
11516
  /**
11461
11517
  *
11462
11518
  * @export
@@ -11841,6 +11897,36 @@ export interface DataTypesGrantStoreAccessRequest {
11841
11897
  * @memberof DataTypesGrantStoreAccessRequest
11842
11898
  */
11843
11899
  'access_level': DataTypesGrantStoreAccessRequestAccessLevelEnum;
11900
+ /**
11901
+ * Optional: overrides default based on access_level
11902
+ * @type {boolean}
11903
+ * @memberof DataTypesGrantStoreAccessRequest
11904
+ */
11905
+ 'can_add'?: boolean;
11906
+ /**
11907
+ * Optional: overrides default based on access_level
11908
+ * @type {boolean}
11909
+ * @memberof DataTypesGrantStoreAccessRequest
11910
+ */
11911
+ 'can_approve'?: boolean;
11912
+ /**
11913
+ * Optional: overrides default based on access_level
11914
+ * @type {boolean}
11915
+ * @memberof DataTypesGrantStoreAccessRequest
11916
+ */
11917
+ 'can_delete'?: boolean;
11918
+ /**
11919
+ * Optional: overrides default based on access_level
11920
+ * @type {boolean}
11921
+ * @memberof DataTypesGrantStoreAccessRequest
11922
+ */
11923
+ 'can_modify'?: boolean;
11924
+ /**
11925
+ * Optional: overrides default based on access_level
11926
+ * @type {boolean}
11927
+ * @memberof DataTypesGrantStoreAccessRequest
11928
+ */
11929
+ 'can_view'?: boolean;
11844
11930
  /**
11845
11931
  *
11846
11932
  * @type {number}
@@ -13448,6 +13534,12 @@ export interface DataTypesMenu {
13448
13534
  * @memberof DataTypesMenu
13449
13535
  */
13450
13536
  'menuId'?: number;
13537
+ /**
13538
+ * VARCHAR(20), nullable - \'navbar\' or \'profile_dropdown\'
13539
+ * @type {string}
13540
+ * @memberof DataTypesMenu
13541
+ */
13542
+ 'menuLocation'?: string;
13451
13543
  /**
13452
13544
  * VARCHAR(100)
13453
13545
  * @type {string}
@@ -13581,6 +13673,12 @@ export interface DataTypesMenuAccess {
13581
13673
  * @memberof DataTypesMenuAccess
13582
13674
  */
13583
13675
  'menuId'?: number;
13676
+ /**
13677
+ * \'navbar\' or \'profile_dropdown\'
13678
+ * @type {string}
13679
+ * @memberof DataTypesMenuAccess
13680
+ */
13681
+ 'menuLocation'?: string;
13584
13682
  /**
13585
13683
  *
13586
13684
  * @type {string}
@@ -13674,6 +13772,170 @@ export interface DataTypesMenuResponse {
13674
13772
  */
13675
13773
  'status'?: number;
13676
13774
  }
13775
+ /**
13776
+ *
13777
+ * @export
13778
+ * @interface DataTypesMenuRouteMetricMapping
13779
+ */
13780
+ export interface DataTypesMenuRouteMetricMapping {
13781
+ /**
13782
+ *
13783
+ * @type {string}
13784
+ * @memberof DataTypesMenuRouteMetricMapping
13785
+ */
13786
+ 'createdAt'?: string;
13787
+ /**
13788
+ *
13789
+ * @type {number}
13790
+ * @memberof DataTypesMenuRouteMetricMapping
13791
+ */
13792
+ 'createdBy'?: number;
13793
+ /**
13794
+ *
13795
+ * @type {string}
13796
+ * @memberof DataTypesMenuRouteMetricMapping
13797
+ */
13798
+ 'formName'?: string;
13799
+ /**
13800
+ *
13801
+ * @type {boolean}
13802
+ * @memberof DataTypesMenuRouteMetricMapping
13803
+ */
13804
+ 'isActive'?: boolean;
13805
+ /**
13806
+ *
13807
+ * @type {number}
13808
+ * @memberof DataTypesMenuRouteMetricMapping
13809
+ */
13810
+ 'mappingId'?: number;
13811
+ /**
13812
+ *
13813
+ * @type {string}
13814
+ * @memberof DataTypesMenuRouteMetricMapping
13815
+ */
13816
+ 'metricName'?: string;
13817
+ /**
13818
+ *
13819
+ * @type {string}
13820
+ * @memberof DataTypesMenuRouteMetricMapping
13821
+ */
13822
+ 'route'?: string;
13823
+ /**
13824
+ *
13825
+ * @type {boolean}
13826
+ * @memberof DataTypesMenuRouteMetricMapping
13827
+ */
13828
+ 'showUpgradeButton'?: boolean;
13829
+ /**
13830
+ *
13831
+ * @type {string}
13832
+ * @memberof DataTypesMenuRouteMetricMapping
13833
+ */
13834
+ 'updatedAt'?: string;
13835
+ /**
13836
+ *
13837
+ * @type {number}
13838
+ * @memberof DataTypesMenuRouteMetricMapping
13839
+ */
13840
+ 'updatedBy'?: number;
13841
+ }
13842
+ /**
13843
+ *
13844
+ * @export
13845
+ * @interface DataTypesMenuRouteMetricResponse
13846
+ */
13847
+ export interface DataTypesMenuRouteMetricResponse {
13848
+ /**
13849
+ * Current usage value
13850
+ * @type {number}
13851
+ * @memberof DataTypesMenuRouteMetricResponse
13852
+ */
13853
+ 'currentUsage'?: number;
13854
+ /**
13855
+ * Description of the metric
13856
+ * @type {string}
13857
+ * @memberof DataTypesMenuRouteMetricResponse
13858
+ */
13859
+ 'description'?: string;
13860
+ /**
13861
+ * Human-readable label for the metric
13862
+ * @type {string}
13863
+ * @memberof DataTypesMenuRouteMetricResponse
13864
+ */
13865
+ 'displayLabel'?: string;
13866
+ /**
13867
+ * Form name (if provided)
13868
+ * @type {string}
13869
+ * @memberof DataTypesMenuRouteMetricResponse
13870
+ */
13871
+ 'formName'?: string;
13872
+ /**
13873
+ * Whether limit is exhausted
13874
+ * @type {boolean}
13875
+ * @memberof DataTypesMenuRouteMetricResponse
13876
+ */
13877
+ 'isExhausted'?: boolean;
13878
+ /**
13879
+ * Limit value (can be int, string, etc.)
13880
+ * @type {any}
13881
+ * @memberof DataTypesMenuRouteMetricResponse
13882
+ */
13883
+ 'limit'?: any;
13884
+ /**
13885
+ * Feature limit metric name
13886
+ * @type {string}
13887
+ * @memberof DataTypesMenuRouteMetricResponse
13888
+ */
13889
+ 'metricName'?: string;
13890
+ /**
13891
+ * Current plan name
13892
+ * @type {string}
13893
+ * @memberof DataTypesMenuRouteMetricResponse
13894
+ */
13895
+ 'planName'?: string;
13896
+ /**
13897
+ * Recommended plan for upgrade
13898
+ * @type {string}
13899
+ * @memberof DataTypesMenuRouteMetricResponse
13900
+ */
13901
+ 'recommendedPlan'?: string;
13902
+ /**
13903
+ * Remaining usage (if applicable)
13904
+ * @type {any}
13905
+ * @memberof DataTypesMenuRouteMetricResponse
13906
+ */
13907
+ 'remaining'?: any;
13908
+ /**
13909
+ * When the limit resets (if applicable)
13910
+ * @type {string}
13911
+ * @memberof DataTypesMenuRouteMetricResponse
13912
+ */
13913
+ 'resetAt'?: string;
13914
+ /**
13915
+ * Route path (if provided)
13916
+ * @type {string}
13917
+ * @memberof DataTypesMenuRouteMetricResponse
13918
+ */
13919
+ 'route'?: string;
13920
+ /**
13921
+ * Whether to show upgrade button
13922
+ * @type {boolean}
13923
+ * @memberof DataTypesMenuRouteMetricResponse
13924
+ */
13925
+ 'showUpgradeButton'?: boolean;
13926
+ /**
13927
+ * Whether upgrade is required
13928
+ * @type {boolean}
13929
+ * @memberof DataTypesMenuRouteMetricResponse
13930
+ */
13931
+ 'upgradeRequired'?: boolean;
13932
+ /**
13933
+ * Usage percentage (0-100)
13934
+ * @type {number}
13935
+ * @memberof DataTypesMenuRouteMetricResponse
13936
+ */
13937
+ 'usagePercentage'?: number;
13938
+ }
13677
13939
  /**
13678
13940
  *
13679
13941
  * @export
@@ -18087,6 +18349,12 @@ export interface DataTypesRole {
18087
18349
  * @memberof DataTypesRole
18088
18350
  */
18089
18351
  'isDeleted'?: boolean;
18352
+ /**
18353
+ * BOOLEAN, DEFAULT FALSE - TRUE for user-specific custom roles
18354
+ * @type {boolean}
18355
+ * @memberof DataTypesRole
18356
+ */
18357
+ 'isUserSpecific'?: boolean;
18090
18358
  /**
18091
18359
  * TIMESTAMP, NULL
18092
18360
  * @type {string}
@@ -18117,6 +18385,12 @@ export interface DataTypesRole {
18117
18385
  * @memberof DataTypesRole
18118
18386
  */
18119
18387
  'roleName'?: string;
18388
+ /**
18389
+ * INT, NULL - User ID this role belongs to (for user-specific roles)
18390
+ * @type {number}
18391
+ * @memberof DataTypesRole
18392
+ */
18393
+ 'userId'?: number;
18120
18394
  }
18121
18395
  /**
18122
18396
  *
@@ -19162,6 +19436,25 @@ export interface DataTypesSetPasswordRequest {
19162
19436
  */
19163
19437
  'password': string;
19164
19438
  }
19439
+ /**
19440
+ *
19441
+ * @export
19442
+ * @interface DataTypesSetUserCustomPermissionsRequest
19443
+ */
19444
+ export interface DataTypesSetUserCustomPermissionsRequest {
19445
+ /**
19446
+ * Route-level permissions
19447
+ * @type {Array<DataTypesRoleRightRequestDto>}
19448
+ * @memberof DataTypesSetUserCustomPermissionsRequest
19449
+ */
19450
+ 'roleRights'?: Array<DataTypesRoleRightRequestDto>;
19451
+ /**
19452
+ * Store-level permissions
19453
+ * @type {Array<DataTypesStoreAccessRequest>}
19454
+ * @memberof DataTypesSetUserCustomPermissionsRequest
19455
+ */
19456
+ 'storeAccess'?: Array<DataTypesStoreAccessRequest>;
19457
+ }
19165
19458
  /**
19166
19459
  *
19167
19460
  * @export
@@ -19407,6 +19700,36 @@ export interface DataTypesStoreAccessRequest {
19407
19700
  * @memberof DataTypesStoreAccessRequest
19408
19701
  */
19409
19702
  'access_level': DataTypesStoreAccessRequestAccessLevelEnum;
19703
+ /**
19704
+ * Optional: overrides default based on access_level
19705
+ * @type {boolean}
19706
+ * @memberof DataTypesStoreAccessRequest
19707
+ */
19708
+ 'can_add'?: boolean;
19709
+ /**
19710
+ * Optional: overrides default based on access_level
19711
+ * @type {boolean}
19712
+ * @memberof DataTypesStoreAccessRequest
19713
+ */
19714
+ 'can_approve'?: boolean;
19715
+ /**
19716
+ * Optional: overrides default based on access_level
19717
+ * @type {boolean}
19718
+ * @memberof DataTypesStoreAccessRequest
19719
+ */
19720
+ 'can_delete'?: boolean;
19721
+ /**
19722
+ * Optional: overrides default based on access_level
19723
+ * @type {boolean}
19724
+ * @memberof DataTypesStoreAccessRequest
19725
+ */
19726
+ 'can_modify'?: boolean;
19727
+ /**
19728
+ * Optional: overrides default based on access_level
19729
+ * @type {boolean}
19730
+ * @memberof DataTypesStoreAccessRequest
19731
+ */
19732
+ 'can_view'?: boolean;
19410
19733
  /**
19411
19734
  *
19412
19735
  * @type {number}
@@ -19466,6 +19789,36 @@ export interface DataTypesStoreAccessWithDetails {
19466
19789
  * @memberof DataTypesStoreAccessWithDetails
19467
19790
  */
19468
19791
  'access_level'?: string;
19792
+ /**
19793
+ *
19794
+ * @type {boolean}
19795
+ * @memberof DataTypesStoreAccessWithDetails
19796
+ */
19797
+ 'can_add'?: boolean;
19798
+ /**
19799
+ *
19800
+ * @type {boolean}
19801
+ * @memberof DataTypesStoreAccessWithDetails
19802
+ */
19803
+ 'can_approve'?: boolean;
19804
+ /**
19805
+ *
19806
+ * @type {boolean}
19807
+ * @memberof DataTypesStoreAccessWithDetails
19808
+ */
19809
+ 'can_delete'?: boolean;
19810
+ /**
19811
+ *
19812
+ * @type {boolean}
19813
+ * @memberof DataTypesStoreAccessWithDetails
19814
+ */
19815
+ 'can_modify'?: boolean;
19816
+ /**
19817
+ *
19818
+ * @type {boolean}
19819
+ * @memberof DataTypesStoreAccessWithDetails
19820
+ */
19821
+ 'can_view'?: boolean;
19469
19822
  /**
19470
19823
  *
19471
19824
  * @type {string}
@@ -19861,6 +20214,12 @@ export interface DataTypesSubMenuAccess {
19861
20214
  * @memberof DataTypesSubMenuAccess
19862
20215
  */
19863
20216
  'menuId'?: number;
20217
+ /**
20218
+ * \'navbar\' or \'profile_dropdown\'
20219
+ * @type {string}
20220
+ * @memberof DataTypesSubMenuAccess
20221
+ */
20222
+ 'menuLocation'?: string;
19864
20223
  /**
19865
20224
  *
19866
20225
  * @type {string}
@@ -21437,6 +21796,36 @@ export interface DataTypesUpdateStoreAccessRequest {
21437
21796
  * @memberof DataTypesUpdateStoreAccessRequest
21438
21797
  */
21439
21798
  'access_level': DataTypesUpdateStoreAccessRequestAccessLevelEnum;
21799
+ /**
21800
+ * Optional: overrides default based on access_level
21801
+ * @type {boolean}
21802
+ * @memberof DataTypesUpdateStoreAccessRequest
21803
+ */
21804
+ 'can_add'?: boolean;
21805
+ /**
21806
+ * Optional: overrides default based on access_level
21807
+ * @type {boolean}
21808
+ * @memberof DataTypesUpdateStoreAccessRequest
21809
+ */
21810
+ 'can_approve'?: boolean;
21811
+ /**
21812
+ * Optional: overrides default based on access_level
21813
+ * @type {boolean}
21814
+ * @memberof DataTypesUpdateStoreAccessRequest
21815
+ */
21816
+ 'can_delete'?: boolean;
21817
+ /**
21818
+ * Optional: overrides default based on access_level
21819
+ * @type {boolean}
21820
+ * @memberof DataTypesUpdateStoreAccessRequest
21821
+ */
21822
+ 'can_modify'?: boolean;
21823
+ /**
21824
+ * Optional: overrides default based on access_level
21825
+ * @type {boolean}
21826
+ * @memberof DataTypesUpdateStoreAccessRequest
21827
+ */
21828
+ 'can_view'?: boolean;
21440
21829
  }
21441
21830
 
21442
21831
  export const DataTypesUpdateStoreAccessRequestAccessLevelEnum = {
@@ -21841,6 +22230,80 @@ export interface DataTypesUser {
21841
22230
  */
21842
22231
  'userPhone'?: string;
21843
22232
  }
22233
+ /**
22234
+ *
22235
+ * @export
22236
+ * @interface DataTypesUserCustomPermissionsRequest
22237
+ */
22238
+ export interface DataTypesUserCustomPermissionsRequest {
22239
+ /**
22240
+ * Required if useCustomPermissions = false
22241
+ * @type {number}
22242
+ * @memberof DataTypesUserCustomPermissionsRequest
22243
+ */
22244
+ 'roleId'?: number;
22245
+ /**
22246
+ * Name for user-specific role (default: \"Custom - {UserName}\")
22247
+ * @type {string}
22248
+ * @memberof DataTypesUserCustomPermissionsRequest
22249
+ */
22250
+ 'roleName'?: string;
22251
+ /**
22252
+ * true = custom, false = use regular role
22253
+ * @type {boolean}
22254
+ * @memberof DataTypesUserCustomPermissionsRequest
22255
+ */
22256
+ 'useCustomPermissions': boolean;
22257
+ }
22258
+ /**
22259
+ *
22260
+ * @export
22261
+ * @interface DataTypesUserCustomPermissionsResponse
22262
+ */
22263
+ export interface DataTypesUserCustomPermissionsResponse {
22264
+ /**
22265
+ * Regular role ID if not using custom
22266
+ * @type {number}
22267
+ * @memberof DataTypesUserCustomPermissionsResponse
22268
+ */
22269
+ 'roleId'?: number;
22270
+ /**
22271
+ *
22272
+ * @type {string}
22273
+ * @memberof DataTypesUserCustomPermissionsResponse
22274
+ */
22275
+ 'roleName'?: string;
22276
+ /**
22277
+ * Route-level permissions
22278
+ * @type {Array<DataTypesRoleRight>}
22279
+ * @memberof DataTypesUserCustomPermissionsResponse
22280
+ */
22281
+ 'roleRights'?: Array<DataTypesRoleRight>;
22282
+ /**
22283
+ * Store-level permissions
22284
+ * @type {Array<DataTypesUserStoreAccessWithPermissions>}
22285
+ * @memberof DataTypesUserCustomPermissionsResponse
22286
+ */
22287
+ 'storeAccess'?: Array<DataTypesUserStoreAccessWithPermissions>;
22288
+ /**
22289
+ *
22290
+ * @type {boolean}
22291
+ * @memberof DataTypesUserCustomPermissionsResponse
22292
+ */
22293
+ 'useCustomPermissions'?: boolean;
22294
+ /**
22295
+ *
22296
+ * @type {number}
22297
+ * @memberof DataTypesUserCustomPermissionsResponse
22298
+ */
22299
+ 'userId'?: number;
22300
+ /**
22301
+ * User-specific role ID if using custom
22302
+ * @type {number}
22303
+ * @memberof DataTypesUserCustomPermissionsResponse
22304
+ */
22305
+ 'userSpecificRoleId'?: number;
22306
+ }
21844
22307
  /**
21845
22308
  *
21846
22309
  * @export
@@ -21878,6 +22341,36 @@ export interface DataTypesUserStoreAccess {
21878
22341
  * @memberof DataTypesUserStoreAccess
21879
22342
  */
21880
22343
  'access_level'?: string;
22344
+ /**
22345
+ *
22346
+ * @type {boolean}
22347
+ * @memberof DataTypesUserStoreAccess
22348
+ */
22349
+ 'can_add'?: boolean;
22350
+ /**
22351
+ *
22352
+ * @type {boolean}
22353
+ * @memberof DataTypesUserStoreAccess
22354
+ */
22355
+ 'can_approve'?: boolean;
22356
+ /**
22357
+ *
22358
+ * @type {boolean}
22359
+ * @memberof DataTypesUserStoreAccess
22360
+ */
22361
+ 'can_delete'?: boolean;
22362
+ /**
22363
+ *
22364
+ * @type {boolean}
22365
+ * @memberof DataTypesUserStoreAccess
22366
+ */
22367
+ 'can_modify'?: boolean;
22368
+ /**
22369
+ *
22370
+ * @type {boolean}
22371
+ * @memberof DataTypesUserStoreAccess
22372
+ */
22373
+ 'can_view'?: boolean;
21881
22374
  /**
21882
22375
  *
21883
22376
  * @type {number}
@@ -21909,6 +22402,79 @@ export interface DataTypesUserStoreAccess {
21909
22402
  */
21910
22403
  'x_store_id'?: string;
21911
22404
  }
22405
+ /**
22406
+ *
22407
+ * @export
22408
+ * @interface DataTypesUserStoreAccessWithPermissions
22409
+ */
22410
+ export interface DataTypesUserStoreAccessWithPermissions {
22411
+ /**
22412
+ *
22413
+ * @type {string}
22414
+ * @memberof DataTypesUserStoreAccessWithPermissions
22415
+ */
22416
+ 'access_level'?: string;
22417
+ /**
22418
+ *
22419
+ * @type {boolean}
22420
+ * @memberof DataTypesUserStoreAccessWithPermissions
22421
+ */
22422
+ 'can_add'?: boolean;
22423
+ /**
22424
+ *
22425
+ * @type {boolean}
22426
+ * @memberof DataTypesUserStoreAccessWithPermissions
22427
+ */
22428
+ 'can_approve'?: boolean;
22429
+ /**
22430
+ *
22431
+ * @type {boolean}
22432
+ * @memberof DataTypesUserStoreAccessWithPermissions
22433
+ */
22434
+ 'can_delete'?: boolean;
22435
+ /**
22436
+ *
22437
+ * @type {boolean}
22438
+ * @memberof DataTypesUserStoreAccessWithPermissions
22439
+ */
22440
+ 'can_modify'?: boolean;
22441
+ /**
22442
+ *
22443
+ * @type {boolean}
22444
+ * @memberof DataTypesUserStoreAccessWithPermissions
22445
+ */
22446
+ 'can_view'?: boolean;
22447
+ /**
22448
+ *
22449
+ * @type {number}
22450
+ * @memberof DataTypesUserStoreAccessWithPermissions
22451
+ */
22452
+ 'org_id'?: number;
22453
+ /**
22454
+ *
22455
+ * @type {string}
22456
+ * @memberof DataTypesUserStoreAccessWithPermissions
22457
+ */
22458
+ 'org_name'?: string;
22459
+ /**
22460
+ *
22461
+ * @type {number}
22462
+ * @memberof DataTypesUserStoreAccessWithPermissions
22463
+ */
22464
+ 'store_id'?: number;
22465
+ /**
22466
+ *
22467
+ * @type {string}
22468
+ * @memberof DataTypesUserStoreAccessWithPermissions
22469
+ */
22470
+ 'store_name'?: string;
22471
+ /**
22472
+ *
22473
+ * @type {string}
22474
+ * @memberof DataTypesUserStoreAccessWithPermissions
22475
+ */
22476
+ 'x_store_id'?: string;
22477
+ }
21912
22478
  /**
21913
22479
  *
21914
22480
  * @export
@@ -41780,6 +42346,318 @@ export class LimitsApi extends BaseAPI {
41780
42346
 
41781
42347
 
41782
42348
 
42349
+ /**
42350
+ * MenuRouteMetricsApi - axios parameter creator
42351
+ * @export
42352
+ */
42353
+ export const MenuRouteMetricsApiAxiosParamCreator = function (configuration?: Configuration) {
42354
+ return {
42355
+ /**
42356
+ * Returns a single feature limit metric to display for a specific menu route or formname. Used by frontend to show progress indicator and upgrade button at the top of pages. Either route OR formname must be provided (not both).
42357
+ * @summary Get feature limit metric for a menu route
42358
+ * @param {MenuRouteMetricGetRouteEnum} [route] Route path (use for static routes)
42359
+ * @param {MenuRouteMetricGetFormnameEnum} [formname] Form name for dynamic routes with :xStoreID: (use for dynamic routes)
42360
+ * @param {*} [options] Override http request option.
42361
+ * @throws {RequiredError}
42362
+ */
42363
+ menuRouteMetricGet: async (route?: MenuRouteMetricGetRouteEnum, formname?: MenuRouteMetricGetFormnameEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
42364
+ const localVarPath = `/menu-route-metric`;
42365
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
42366
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
42367
+ let baseOptions;
42368
+ if (configuration) {
42369
+ baseOptions = configuration.baseOptions;
42370
+ }
42371
+
42372
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
42373
+ const localVarHeaderParameter = {} as any;
42374
+ const localVarQueryParameter = {} as any;
42375
+
42376
+ // authentication BearerAuth required
42377
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
42378
+
42379
+ if (route !== undefined) {
42380
+ localVarQueryParameter['route'] = route;
42381
+ }
42382
+
42383
+ if (formname !== undefined) {
42384
+ localVarQueryParameter['formname'] = formname;
42385
+ }
42386
+
42387
+
42388
+
42389
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
42390
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
42391
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
42392
+
42393
+ return {
42394
+ url: toPathString(localVarUrlObj),
42395
+ options: localVarRequestOptions,
42396
+ };
42397
+ },
42398
+ /**
42399
+ * Returns all active route/formname to metric mappings. Frontend can use this to dynamically get available options instead of hardcoding.
42400
+ * @summary Get all available route/formname mappings
42401
+ * @param {*} [options] Override http request option.
42402
+ * @throws {RequiredError}
42403
+ */
42404
+ menuRouteMetricMappingsGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
42405
+ const localVarPath = `/menu-route-metric/mappings`;
42406
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
42407
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
42408
+ let baseOptions;
42409
+ if (configuration) {
42410
+ baseOptions = configuration.baseOptions;
42411
+ }
42412
+
42413
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
42414
+ const localVarHeaderParameter = {} as any;
42415
+ const localVarQueryParameter = {} as any;
42416
+
42417
+ // authentication BearerAuth required
42418
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
42419
+
42420
+
42421
+
42422
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
42423
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
42424
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
42425
+
42426
+ return {
42427
+ url: toPathString(localVarUrlObj),
42428
+ options: localVarRequestOptions,
42429
+ };
42430
+ },
42431
+ }
42432
+ };
42433
+
42434
+ /**
42435
+ * MenuRouteMetricsApi - functional programming interface
42436
+ * @export
42437
+ */
42438
+ export const MenuRouteMetricsApiFp = function(configuration?: Configuration) {
42439
+ const localVarAxiosParamCreator = MenuRouteMetricsApiAxiosParamCreator(configuration)
42440
+ return {
42441
+ /**
42442
+ * Returns a single feature limit metric to display for a specific menu route or formname. Used by frontend to show progress indicator and upgrade button at the top of pages. Either route OR formname must be provided (not both).
42443
+ * @summary Get feature limit metric for a menu route
42444
+ * @param {MenuRouteMetricGetRouteEnum} [route] Route path (use for static routes)
42445
+ * @param {MenuRouteMetricGetFormnameEnum} [formname] Form name for dynamic routes with :xStoreID: (use for dynamic routes)
42446
+ * @param {*} [options] Override http request option.
42447
+ * @throws {RequiredError}
42448
+ */
42449
+ async menuRouteMetricGet(route?: MenuRouteMetricGetRouteEnum, formname?: MenuRouteMetricGetFormnameEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesGenericResponseDataTypesMenuRouteMetricResponse>> {
42450
+ const localVarAxiosArgs = await localVarAxiosParamCreator.menuRouteMetricGet(route, formname, options);
42451
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
42452
+ const localVarOperationServerBasePath = operationServerMap['MenuRouteMetricsApi.menuRouteMetricGet']?.[localVarOperationServerIndex]?.url;
42453
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
42454
+ },
42455
+ /**
42456
+ * Returns all active route/formname to metric mappings. Frontend can use this to dynamically get available options instead of hardcoding.
42457
+ * @summary Get all available route/formname mappings
42458
+ * @param {*} [options] Override http request option.
42459
+ * @throws {RequiredError}
42460
+ */
42461
+ async menuRouteMetricMappingsGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesGenericResponseArrayDataTypesMenuRouteMetricMapping>> {
42462
+ const localVarAxiosArgs = await localVarAxiosParamCreator.menuRouteMetricMappingsGet(options);
42463
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
42464
+ const localVarOperationServerBasePath = operationServerMap['MenuRouteMetricsApi.menuRouteMetricMappingsGet']?.[localVarOperationServerIndex]?.url;
42465
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
42466
+ },
42467
+ }
42468
+ };
42469
+
42470
+ /**
42471
+ * MenuRouteMetricsApi - factory interface
42472
+ * @export
42473
+ */
42474
+ export const MenuRouteMetricsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
42475
+ const localVarFp = MenuRouteMetricsApiFp(configuration)
42476
+ return {
42477
+ /**
42478
+ * Returns a single feature limit metric to display for a specific menu route or formname. Used by frontend to show progress indicator and upgrade button at the top of pages. Either route OR formname must be provided (not both).
42479
+ * @summary Get feature limit metric for a menu route
42480
+ * @param {MenuRouteMetricGetRouteEnum} [route] Route path (use for static routes)
42481
+ * @param {MenuRouteMetricGetFormnameEnum} [formname] Form name for dynamic routes with :xStoreID: (use for dynamic routes)
42482
+ * @param {*} [options] Override http request option.
42483
+ * @throws {RequiredError}
42484
+ */
42485
+ menuRouteMetricGet(route?: MenuRouteMetricGetRouteEnum, formname?: MenuRouteMetricGetFormnameEnum, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesGenericResponseDataTypesMenuRouteMetricResponse> {
42486
+ return localVarFp.menuRouteMetricGet(route, formname, options).then((request) => request(axios, basePath));
42487
+ },
42488
+ /**
42489
+ * Returns all active route/formname to metric mappings. Frontend can use this to dynamically get available options instead of hardcoding.
42490
+ * @summary Get all available route/formname mappings
42491
+ * @param {*} [options] Override http request option.
42492
+ * @throws {RequiredError}
42493
+ */
42494
+ menuRouteMetricMappingsGet(options?: RawAxiosRequestConfig): AxiosPromise<DataTypesGenericResponseArrayDataTypesMenuRouteMetricMapping> {
42495
+ return localVarFp.menuRouteMetricMappingsGet(options).then((request) => request(axios, basePath));
42496
+ },
42497
+ };
42498
+ };
42499
+
42500
+ /**
42501
+ * MenuRouteMetricsApi - object-oriented interface
42502
+ * @export
42503
+ * @class MenuRouteMetricsApi
42504
+ * @extends {BaseAPI}
42505
+ */
42506
+ export class MenuRouteMetricsApi extends BaseAPI {
42507
+ /**
42508
+ * Returns a single feature limit metric to display for a specific menu route or formname. Used by frontend to show progress indicator and upgrade button at the top of pages. Either route OR formname must be provided (not both).
42509
+ * @summary Get feature limit metric for a menu route
42510
+ * @param {MenuRouteMetricGetRouteEnum} [route] Route path (use for static routes)
42511
+ * @param {MenuRouteMetricGetFormnameEnum} [formname] Form name for dynamic routes with :xStoreID: (use for dynamic routes)
42512
+ * @param {*} [options] Override http request option.
42513
+ * @throws {RequiredError}
42514
+ * @memberof MenuRouteMetricsApi
42515
+ */
42516
+ public menuRouteMetricGet(route?: MenuRouteMetricGetRouteEnum, formname?: MenuRouteMetricGetFormnameEnum, options?: RawAxiosRequestConfig) {
42517
+ return MenuRouteMetricsApiFp(this.configuration).menuRouteMetricGet(route, formname, options).then((request) => request(this.axios, this.basePath));
42518
+ }
42519
+
42520
+ /**
42521
+ * Returns all active route/formname to metric mappings. Frontend can use this to dynamically get available options instead of hardcoding.
42522
+ * @summary Get all available route/formname mappings
42523
+ * @param {*} [options] Override http request option.
42524
+ * @throws {RequiredError}
42525
+ * @memberof MenuRouteMetricsApi
42526
+ */
42527
+ public menuRouteMetricMappingsGet(options?: RawAxiosRequestConfig) {
42528
+ return MenuRouteMetricsApiFp(this.configuration).menuRouteMetricMappingsGet(options).then((request) => request(this.axios, this.basePath));
42529
+ }
42530
+ }
42531
+
42532
+ /**
42533
+ * @export
42534
+ */
42535
+ export const MenuRouteMetricGetRouteEnum = {
42536
+ Slash: '/',
42537
+ Dash: '/dash',
42538
+ Stores: '/stores'
42539
+ } as const;
42540
+ export type MenuRouteMetricGetRouteEnum = typeof MenuRouteMetricGetRouteEnum[keyof typeof MenuRouteMetricGetRouteEnum];
42541
+ /**
42542
+ * @export
42543
+ */
42544
+ export const MenuRouteMetricGetFormnameEnum = {
42545
+ Configure: 'configure',
42546
+ Index: 'index',
42547
+ Analytics: 'analytics',
42548
+ Observe: 'observe',
42549
+ Rules: 'rules',
42550
+ QuerySuggestions: 'querySuggestions',
42551
+ Dictionaries: 'dictionaries',
42552
+ AbTesting: 'abTesting'
42553
+ } as const;
42554
+ export type MenuRouteMetricGetFormnameEnum = typeof MenuRouteMetricGetFormnameEnum[keyof typeof MenuRouteMetricGetFormnameEnum];
42555
+
42556
+
42557
+ /**
42558
+ * MenuRouteMetricsAdminApi - axios parameter creator
42559
+ * @export
42560
+ */
42561
+ export const MenuRouteMetricsAdminApiAxiosParamCreator = function (configuration?: Configuration) {
42562
+ return {
42563
+ /**
42564
+ * Syncs all active route-to-metric mappings from database to Redis for fast access
42565
+ * @summary Sync route metric mappings to Redis (Admin)
42566
+ * @param {*} [options] Override http request option.
42567
+ * @throws {RequiredError}
42568
+ */
42569
+ adminMenuRouteMetricSyncPost: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
42570
+ const localVarPath = `/admin/menu-route-metric/sync`;
42571
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
42572
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
42573
+ let baseOptions;
42574
+ if (configuration) {
42575
+ baseOptions = configuration.baseOptions;
42576
+ }
42577
+
42578
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
42579
+ const localVarHeaderParameter = {} as any;
42580
+ const localVarQueryParameter = {} as any;
42581
+
42582
+ // authentication BearerAuth required
42583
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
42584
+
42585
+
42586
+
42587
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
42588
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
42589
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
42590
+
42591
+ return {
42592
+ url: toPathString(localVarUrlObj),
42593
+ options: localVarRequestOptions,
42594
+ };
42595
+ },
42596
+ }
42597
+ };
42598
+
42599
+ /**
42600
+ * MenuRouteMetricsAdminApi - functional programming interface
42601
+ * @export
42602
+ */
42603
+ export const MenuRouteMetricsAdminApiFp = function(configuration?: Configuration) {
42604
+ const localVarAxiosParamCreator = MenuRouteMetricsAdminApiAxiosParamCreator(configuration)
42605
+ return {
42606
+ /**
42607
+ * Syncs all active route-to-metric mappings from database to Redis for fast access
42608
+ * @summary Sync route metric mappings to Redis (Admin)
42609
+ * @param {*} [options] Override http request option.
42610
+ * @throws {RequiredError}
42611
+ */
42612
+ async adminMenuRouteMetricSyncPost(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
42613
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminMenuRouteMetricSyncPost(options);
42614
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
42615
+ const localVarOperationServerBasePath = operationServerMap['MenuRouteMetricsAdminApi.adminMenuRouteMetricSyncPost']?.[localVarOperationServerIndex]?.url;
42616
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
42617
+ },
42618
+ }
42619
+ };
42620
+
42621
+ /**
42622
+ * MenuRouteMetricsAdminApi - factory interface
42623
+ * @export
42624
+ */
42625
+ export const MenuRouteMetricsAdminApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
42626
+ const localVarFp = MenuRouteMetricsAdminApiFp(configuration)
42627
+ return {
42628
+ /**
42629
+ * Syncs all active route-to-metric mappings from database to Redis for fast access
42630
+ * @summary Sync route metric mappings to Redis (Admin)
42631
+ * @param {*} [options] Override http request option.
42632
+ * @throws {RequiredError}
42633
+ */
42634
+ adminMenuRouteMetricSyncPost(options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
42635
+ return localVarFp.adminMenuRouteMetricSyncPost(options).then((request) => request(axios, basePath));
42636
+ },
42637
+ };
42638
+ };
42639
+
42640
+ /**
42641
+ * MenuRouteMetricsAdminApi - object-oriented interface
42642
+ * @export
42643
+ * @class MenuRouteMetricsAdminApi
42644
+ * @extends {BaseAPI}
42645
+ */
42646
+ export class MenuRouteMetricsAdminApi extends BaseAPI {
42647
+ /**
42648
+ * Syncs all active route-to-metric mappings from database to Redis for fast access
42649
+ * @summary Sync route metric mappings to Redis (Admin)
42650
+ * @param {*} [options] Override http request option.
42651
+ * @throws {RequiredError}
42652
+ * @memberof MenuRouteMetricsAdminApi
42653
+ */
42654
+ public adminMenuRouteMetricSyncPost(options?: RawAxiosRequestConfig) {
42655
+ return MenuRouteMetricsAdminApiFp(this.configuration).adminMenuRouteMetricSyncPost(options).then((request) => request(this.axios, this.basePath));
42656
+ }
42657
+ }
42658
+
42659
+
42660
+
41783
42661
  /**
41784
42662
  * MenusApi - axios parameter creator
41785
42663
  * @export
@@ -60808,6 +61686,129 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
60808
61686
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
60809
61687
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
60810
61688
 
61689
+ return {
61690
+ url: toPathString(localVarUrlObj),
61691
+ options: localVarRequestOptions,
61692
+ };
61693
+ },
61694
+ /**
61695
+ * Retrieves user\'s permission configuration (route-level and store-level)
61696
+ * @summary Get user\'s custom permissions
61697
+ * @param {number} userId User ID
61698
+ * @param {*} [options] Override http request option.
61699
+ * @throws {RequiredError}
61700
+ */
61701
+ adminUsersUserIdPermissionsGet: async (userId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
61702
+ // verify required parameter 'userId' is not null or undefined
61703
+ assertParamExists('adminUsersUserIdPermissionsGet', 'userId', userId)
61704
+ const localVarPath = `/admin/users/{userId}/permissions`
61705
+ .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
61706
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
61707
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
61708
+ let baseOptions;
61709
+ if (configuration) {
61710
+ baseOptions = configuration.baseOptions;
61711
+ }
61712
+
61713
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
61714
+ const localVarHeaderParameter = {} as any;
61715
+ const localVarQueryParameter = {} as any;
61716
+
61717
+ // authentication BearerAuth required
61718
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
61719
+
61720
+
61721
+
61722
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
61723
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
61724
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
61725
+
61726
+ return {
61727
+ url: toPathString(localVarUrlObj),
61728
+ options: localVarRequestOptions,
61729
+ };
61730
+ },
61731
+ /**
61732
+ * Sets a user to use custom permissions (creates user-specific role) or assigns a regular role
61733
+ * @summary Set user to custom permissions mode or regular role
61734
+ * @param {number} userId User ID
61735
+ * @param {DataTypesUserCustomPermissionsRequest} dataTypesUserCustomPermissionsRequest Permission mode configuration
61736
+ * @param {*} [options] Override http request option.
61737
+ * @throws {RequiredError}
61738
+ */
61739
+ adminUsersUserIdPermissionsModePut: async (userId: number, dataTypesUserCustomPermissionsRequest: DataTypesUserCustomPermissionsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
61740
+ // verify required parameter 'userId' is not null or undefined
61741
+ assertParamExists('adminUsersUserIdPermissionsModePut', 'userId', userId)
61742
+ // verify required parameter 'dataTypesUserCustomPermissionsRequest' is not null or undefined
61743
+ assertParamExists('adminUsersUserIdPermissionsModePut', 'dataTypesUserCustomPermissionsRequest', dataTypesUserCustomPermissionsRequest)
61744
+ const localVarPath = `/admin/users/{userId}/permissions/mode`
61745
+ .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
61746
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
61747
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
61748
+ let baseOptions;
61749
+ if (configuration) {
61750
+ baseOptions = configuration.baseOptions;
61751
+ }
61752
+
61753
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
61754
+ const localVarHeaderParameter = {} as any;
61755
+ const localVarQueryParameter = {} as any;
61756
+
61757
+ // authentication BearerAuth required
61758
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
61759
+
61760
+
61761
+
61762
+ localVarHeaderParameter['Content-Type'] = 'application/json';
61763
+
61764
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
61765
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
61766
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
61767
+ localVarRequestOptions.data = serializeDataIfNeeded(dataTypesUserCustomPermissionsRequest, localVarRequestOptions, configuration)
61768
+
61769
+ return {
61770
+ url: toPathString(localVarUrlObj),
61771
+ options: localVarRequestOptions,
61772
+ };
61773
+ },
61774
+ /**
61775
+ * Updates user\'s custom permissions (route-level and store-level). User must be in custom mode.
61776
+ * @summary Update user\'s custom permissions
61777
+ * @param {number} userId User ID
61778
+ * @param {DataTypesSetUserCustomPermissionsRequest} dataTypesSetUserCustomPermissionsRequest Permission configuration
61779
+ * @param {*} [options] Override http request option.
61780
+ * @throws {RequiredError}
61781
+ */
61782
+ adminUsersUserIdPermissionsPut: async (userId: number, dataTypesSetUserCustomPermissionsRequest: DataTypesSetUserCustomPermissionsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
61783
+ // verify required parameter 'userId' is not null or undefined
61784
+ assertParamExists('adminUsersUserIdPermissionsPut', 'userId', userId)
61785
+ // verify required parameter 'dataTypesSetUserCustomPermissionsRequest' is not null or undefined
61786
+ assertParamExists('adminUsersUserIdPermissionsPut', 'dataTypesSetUserCustomPermissionsRequest', dataTypesSetUserCustomPermissionsRequest)
61787
+ const localVarPath = `/admin/users/{userId}/permissions`
61788
+ .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
61789
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
61790
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
61791
+ let baseOptions;
61792
+ if (configuration) {
61793
+ baseOptions = configuration.baseOptions;
61794
+ }
61795
+
61796
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
61797
+ const localVarHeaderParameter = {} as any;
61798
+ const localVarQueryParameter = {} as any;
61799
+
61800
+ // authentication BearerAuth required
61801
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
61802
+
61803
+
61804
+
61805
+ localVarHeaderParameter['Content-Type'] = 'application/json';
61806
+
61807
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
61808
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
61809
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
61810
+ localVarRequestOptions.data = serializeDataIfNeeded(dataTypesSetUserCustomPermissionsRequest, localVarRequestOptions, configuration)
61811
+
60811
61812
  return {
60812
61813
  url: toPathString(localVarUrlObj),
60813
61814
  options: localVarRequestOptions,
@@ -60915,6 +61916,47 @@ export const UserApiFp = function(configuration?: Configuration) {
60915
61916
  const localVarOperationServerBasePath = operationServerMap['UserApi.adminUsersResetpasswordIdPut']?.[localVarOperationServerIndex]?.url;
60916
61917
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
60917
61918
  },
61919
+ /**
61920
+ * Retrieves user\'s permission configuration (route-level and store-level)
61921
+ * @summary Get user\'s custom permissions
61922
+ * @param {number} userId User ID
61923
+ * @param {*} [options] Override http request option.
61924
+ * @throws {RequiredError}
61925
+ */
61926
+ async adminUsersUserIdPermissionsGet(userId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesUserCustomPermissionsResponse>> {
61927
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminUsersUserIdPermissionsGet(userId, options);
61928
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
61929
+ const localVarOperationServerBasePath = operationServerMap['UserApi.adminUsersUserIdPermissionsGet']?.[localVarOperationServerIndex]?.url;
61930
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
61931
+ },
61932
+ /**
61933
+ * Sets a user to use custom permissions (creates user-specific role) or assigns a regular role
61934
+ * @summary Set user to custom permissions mode or regular role
61935
+ * @param {number} userId User ID
61936
+ * @param {DataTypesUserCustomPermissionsRequest} dataTypesUserCustomPermissionsRequest Permission mode configuration
61937
+ * @param {*} [options] Override http request option.
61938
+ * @throws {RequiredError}
61939
+ */
61940
+ async adminUsersUserIdPermissionsModePut(userId: number, dataTypesUserCustomPermissionsRequest: DataTypesUserCustomPermissionsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
61941
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminUsersUserIdPermissionsModePut(userId, dataTypesUserCustomPermissionsRequest, options);
61942
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
61943
+ const localVarOperationServerBasePath = operationServerMap['UserApi.adminUsersUserIdPermissionsModePut']?.[localVarOperationServerIndex]?.url;
61944
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
61945
+ },
61946
+ /**
61947
+ * Updates user\'s custom permissions (route-level and store-level). User must be in custom mode.
61948
+ * @summary Update user\'s custom permissions
61949
+ * @param {number} userId User ID
61950
+ * @param {DataTypesSetUserCustomPermissionsRequest} dataTypesSetUserCustomPermissionsRequest Permission configuration
61951
+ * @param {*} [options] Override http request option.
61952
+ * @throws {RequiredError}
61953
+ */
61954
+ async adminUsersUserIdPermissionsPut(userId: number, dataTypesSetUserCustomPermissionsRequest: DataTypesSetUserCustomPermissionsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
61955
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminUsersUserIdPermissionsPut(userId, dataTypesSetUserCustomPermissionsRequest, options);
61956
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
61957
+ const localVarOperationServerBasePath = operationServerMap['UserApi.adminUsersUserIdPermissionsPut']?.[localVarOperationServerIndex]?.url;
61958
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
61959
+ },
60918
61960
  }
60919
61961
  };
60920
61962
 
@@ -60996,6 +62038,38 @@ export const UserApiFactory = function (configuration?: Configuration, basePath?
60996
62038
  adminUsersResetpasswordIdPut(id: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
60997
62039
  return localVarFp.adminUsersResetpasswordIdPut(id, options).then((request) => request(axios, basePath));
60998
62040
  },
62041
+ /**
62042
+ * Retrieves user\'s permission configuration (route-level and store-level)
62043
+ * @summary Get user\'s custom permissions
62044
+ * @param {number} userId User ID
62045
+ * @param {*} [options] Override http request option.
62046
+ * @throws {RequiredError}
62047
+ */
62048
+ adminUsersUserIdPermissionsGet(userId: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesUserCustomPermissionsResponse> {
62049
+ return localVarFp.adminUsersUserIdPermissionsGet(userId, options).then((request) => request(axios, basePath));
62050
+ },
62051
+ /**
62052
+ * Sets a user to use custom permissions (creates user-specific role) or assigns a regular role
62053
+ * @summary Set user to custom permissions mode or regular role
62054
+ * @param {number} userId User ID
62055
+ * @param {DataTypesUserCustomPermissionsRequest} dataTypesUserCustomPermissionsRequest Permission mode configuration
62056
+ * @param {*} [options] Override http request option.
62057
+ * @throws {RequiredError}
62058
+ */
62059
+ adminUsersUserIdPermissionsModePut(userId: number, dataTypesUserCustomPermissionsRequest: DataTypesUserCustomPermissionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
62060
+ return localVarFp.adminUsersUserIdPermissionsModePut(userId, dataTypesUserCustomPermissionsRequest, options).then((request) => request(axios, basePath));
62061
+ },
62062
+ /**
62063
+ * Updates user\'s custom permissions (route-level and store-level). User must be in custom mode.
62064
+ * @summary Update user\'s custom permissions
62065
+ * @param {number} userId User ID
62066
+ * @param {DataTypesSetUserCustomPermissionsRequest} dataTypesSetUserCustomPermissionsRequest Permission configuration
62067
+ * @param {*} [options] Override http request option.
62068
+ * @throws {RequiredError}
62069
+ */
62070
+ adminUsersUserIdPermissionsPut(userId: number, dataTypesSetUserCustomPermissionsRequest: DataTypesSetUserCustomPermissionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
62071
+ return localVarFp.adminUsersUserIdPermissionsPut(userId, dataTypesSetUserCustomPermissionsRequest, options).then((request) => request(axios, basePath));
62072
+ },
60999
62073
  };
61000
62074
  };
61001
62075
 
@@ -61090,6 +62164,44 @@ export class UserApi extends BaseAPI {
61090
62164
  public adminUsersResetpasswordIdPut(id: number, options?: RawAxiosRequestConfig) {
61091
62165
  return UserApiFp(this.configuration).adminUsersResetpasswordIdPut(id, options).then((request) => request(this.axios, this.basePath));
61092
62166
  }
62167
+
62168
+ /**
62169
+ * Retrieves user\'s permission configuration (route-level and store-level)
62170
+ * @summary Get user\'s custom permissions
62171
+ * @param {number} userId User ID
62172
+ * @param {*} [options] Override http request option.
62173
+ * @throws {RequiredError}
62174
+ * @memberof UserApi
62175
+ */
62176
+ public adminUsersUserIdPermissionsGet(userId: number, options?: RawAxiosRequestConfig) {
62177
+ return UserApiFp(this.configuration).adminUsersUserIdPermissionsGet(userId, options).then((request) => request(this.axios, this.basePath));
62178
+ }
62179
+
62180
+ /**
62181
+ * Sets a user to use custom permissions (creates user-specific role) or assigns a regular role
62182
+ * @summary Set user to custom permissions mode or regular role
62183
+ * @param {number} userId User ID
62184
+ * @param {DataTypesUserCustomPermissionsRequest} dataTypesUserCustomPermissionsRequest Permission mode configuration
62185
+ * @param {*} [options] Override http request option.
62186
+ * @throws {RequiredError}
62187
+ * @memberof UserApi
62188
+ */
62189
+ public adminUsersUserIdPermissionsModePut(userId: number, dataTypesUserCustomPermissionsRequest: DataTypesUserCustomPermissionsRequest, options?: RawAxiosRequestConfig) {
62190
+ return UserApiFp(this.configuration).adminUsersUserIdPermissionsModePut(userId, dataTypesUserCustomPermissionsRequest, options).then((request) => request(this.axios, this.basePath));
62191
+ }
62192
+
62193
+ /**
62194
+ * Updates user\'s custom permissions (route-level and store-level). User must be in custom mode.
62195
+ * @summary Update user\'s custom permissions
62196
+ * @param {number} userId User ID
62197
+ * @param {DataTypesSetUserCustomPermissionsRequest} dataTypesSetUserCustomPermissionsRequest Permission configuration
62198
+ * @param {*} [options] Override http request option.
62199
+ * @throws {RequiredError}
62200
+ * @memberof UserApi
62201
+ */
62202
+ public adminUsersUserIdPermissionsPut(userId: number, dataTypesSetUserCustomPermissionsRequest: DataTypesSetUserCustomPermissionsRequest, options?: RawAxiosRequestConfig) {
62203
+ return UserApiFp(this.configuration).adminUsersUserIdPermissionsPut(userId, dataTypesSetUserCustomPermissionsRequest, options).then((request) => request(this.axios, this.basePath));
62204
+ }
61093
62205
  }
61094
62206
 
61095
62207