@seekora-ai/admin-api 1.1.24 → 1.1.26

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}
@@ -11457,6 +11463,31 @@ export interface DataTypesGenericResponseDataTypesGSTVerificationResponse {
11457
11463
  */
11458
11464
  'status'?: number;
11459
11465
  }
11466
+ /**
11467
+ *
11468
+ * @export
11469
+ * @interface DataTypesGenericResponseDataTypesMenuRouteMetricResponse
11470
+ */
11471
+ export interface DataTypesGenericResponseDataTypesMenuRouteMetricResponse {
11472
+ /**
11473
+ *
11474
+ * @type {DataTypesMenuRouteMetricResponse}
11475
+ * @memberof DataTypesGenericResponseDataTypesMenuRouteMetricResponse
11476
+ */
11477
+ 'data'?: DataTypesMenuRouteMetricResponse;
11478
+ /**
11479
+ *
11480
+ * @type {string}
11481
+ * @memberof DataTypesGenericResponseDataTypesMenuRouteMetricResponse
11482
+ */
11483
+ 'message'?: string;
11484
+ /**
11485
+ *
11486
+ * @type {number}
11487
+ * @memberof DataTypesGenericResponseDataTypesMenuRouteMetricResponse
11488
+ */
11489
+ 'status'?: number;
11490
+ }
11460
11491
  /**
11461
11492
  *
11462
11493
  * @export
@@ -11841,6 +11872,36 @@ export interface DataTypesGrantStoreAccessRequest {
11841
11872
  * @memberof DataTypesGrantStoreAccessRequest
11842
11873
  */
11843
11874
  'access_level': DataTypesGrantStoreAccessRequestAccessLevelEnum;
11875
+ /**
11876
+ * Optional: overrides default based on access_level
11877
+ * @type {boolean}
11878
+ * @memberof DataTypesGrantStoreAccessRequest
11879
+ */
11880
+ 'can_add'?: boolean;
11881
+ /**
11882
+ * Optional: overrides default based on access_level
11883
+ * @type {boolean}
11884
+ * @memberof DataTypesGrantStoreAccessRequest
11885
+ */
11886
+ 'can_approve'?: boolean;
11887
+ /**
11888
+ * Optional: overrides default based on access_level
11889
+ * @type {boolean}
11890
+ * @memberof DataTypesGrantStoreAccessRequest
11891
+ */
11892
+ 'can_delete'?: boolean;
11893
+ /**
11894
+ * Optional: overrides default based on access_level
11895
+ * @type {boolean}
11896
+ * @memberof DataTypesGrantStoreAccessRequest
11897
+ */
11898
+ 'can_modify'?: boolean;
11899
+ /**
11900
+ * Optional: overrides default based on access_level
11901
+ * @type {boolean}
11902
+ * @memberof DataTypesGrantStoreAccessRequest
11903
+ */
11904
+ 'can_view'?: boolean;
11844
11905
  /**
11845
11906
  *
11846
11907
  * @type {number}
@@ -13448,6 +13509,12 @@ export interface DataTypesMenu {
13448
13509
  * @memberof DataTypesMenu
13449
13510
  */
13450
13511
  'menuId'?: number;
13512
+ /**
13513
+ * VARCHAR(20), nullable - \'navbar\' or \'profile_dropdown\'
13514
+ * @type {string}
13515
+ * @memberof DataTypesMenu
13516
+ */
13517
+ 'menuLocation'?: string;
13451
13518
  /**
13452
13519
  * VARCHAR(100)
13453
13520
  * @type {string}
@@ -13581,6 +13648,12 @@ export interface DataTypesMenuAccess {
13581
13648
  * @memberof DataTypesMenuAccess
13582
13649
  */
13583
13650
  'menuId'?: number;
13651
+ /**
13652
+ * \'navbar\' or \'profile_dropdown\'
13653
+ * @type {string}
13654
+ * @memberof DataTypesMenuAccess
13655
+ */
13656
+ 'menuLocation'?: string;
13584
13657
  /**
13585
13658
  *
13586
13659
  * @type {string}
@@ -13674,6 +13747,103 @@ export interface DataTypesMenuResponse {
13674
13747
  */
13675
13748
  'status'?: number;
13676
13749
  }
13750
+ /**
13751
+ *
13752
+ * @export
13753
+ * @interface DataTypesMenuRouteMetricResponse
13754
+ */
13755
+ export interface DataTypesMenuRouteMetricResponse {
13756
+ /**
13757
+ * Current usage value
13758
+ * @type {number}
13759
+ * @memberof DataTypesMenuRouteMetricResponse
13760
+ */
13761
+ 'currentUsage'?: number;
13762
+ /**
13763
+ * Description of the metric
13764
+ * @type {string}
13765
+ * @memberof DataTypesMenuRouteMetricResponse
13766
+ */
13767
+ 'description'?: string;
13768
+ /**
13769
+ * Human-readable label for the metric
13770
+ * @type {string}
13771
+ * @memberof DataTypesMenuRouteMetricResponse
13772
+ */
13773
+ 'displayLabel'?: string;
13774
+ /**
13775
+ * Form name (if provided)
13776
+ * @type {string}
13777
+ * @memberof DataTypesMenuRouteMetricResponse
13778
+ */
13779
+ 'formName'?: string;
13780
+ /**
13781
+ * Whether limit is exhausted
13782
+ * @type {boolean}
13783
+ * @memberof DataTypesMenuRouteMetricResponse
13784
+ */
13785
+ 'isExhausted'?: boolean;
13786
+ /**
13787
+ * Limit value (can be int, string, etc.)
13788
+ * @type {any}
13789
+ * @memberof DataTypesMenuRouteMetricResponse
13790
+ */
13791
+ 'limit'?: any;
13792
+ /**
13793
+ * Feature limit metric name
13794
+ * @type {string}
13795
+ * @memberof DataTypesMenuRouteMetricResponse
13796
+ */
13797
+ 'metricName'?: string;
13798
+ /**
13799
+ * Current plan name
13800
+ * @type {string}
13801
+ * @memberof DataTypesMenuRouteMetricResponse
13802
+ */
13803
+ 'planName'?: string;
13804
+ /**
13805
+ * Recommended plan for upgrade
13806
+ * @type {string}
13807
+ * @memberof DataTypesMenuRouteMetricResponse
13808
+ */
13809
+ 'recommendedPlan'?: string;
13810
+ /**
13811
+ * Remaining usage (if applicable)
13812
+ * @type {any}
13813
+ * @memberof DataTypesMenuRouteMetricResponse
13814
+ */
13815
+ 'remaining'?: any;
13816
+ /**
13817
+ * When the limit resets (if applicable)
13818
+ * @type {string}
13819
+ * @memberof DataTypesMenuRouteMetricResponse
13820
+ */
13821
+ 'resetAt'?: string;
13822
+ /**
13823
+ * Route path (if provided)
13824
+ * @type {string}
13825
+ * @memberof DataTypesMenuRouteMetricResponse
13826
+ */
13827
+ 'route'?: string;
13828
+ /**
13829
+ * Whether to show upgrade button
13830
+ * @type {boolean}
13831
+ * @memberof DataTypesMenuRouteMetricResponse
13832
+ */
13833
+ 'showUpgradeButton'?: boolean;
13834
+ /**
13835
+ * Whether upgrade is required
13836
+ * @type {boolean}
13837
+ * @memberof DataTypesMenuRouteMetricResponse
13838
+ */
13839
+ 'upgradeRequired'?: boolean;
13840
+ /**
13841
+ * Usage percentage (0-100)
13842
+ * @type {number}
13843
+ * @memberof DataTypesMenuRouteMetricResponse
13844
+ */
13845
+ 'usagePercentage'?: number;
13846
+ }
13677
13847
  /**
13678
13848
  *
13679
13849
  * @export
@@ -18087,6 +18257,12 @@ export interface DataTypesRole {
18087
18257
  * @memberof DataTypesRole
18088
18258
  */
18089
18259
  'isDeleted'?: boolean;
18260
+ /**
18261
+ * BOOLEAN, DEFAULT FALSE - TRUE for user-specific custom roles
18262
+ * @type {boolean}
18263
+ * @memberof DataTypesRole
18264
+ */
18265
+ 'isUserSpecific'?: boolean;
18090
18266
  /**
18091
18267
  * TIMESTAMP, NULL
18092
18268
  * @type {string}
@@ -18117,6 +18293,12 @@ export interface DataTypesRole {
18117
18293
  * @memberof DataTypesRole
18118
18294
  */
18119
18295
  'roleName'?: string;
18296
+ /**
18297
+ * INT, NULL - User ID this role belongs to (for user-specific roles)
18298
+ * @type {number}
18299
+ * @memberof DataTypesRole
18300
+ */
18301
+ 'userId'?: number;
18120
18302
  }
18121
18303
  /**
18122
18304
  *
@@ -19162,6 +19344,25 @@ export interface DataTypesSetPasswordRequest {
19162
19344
  */
19163
19345
  'password': string;
19164
19346
  }
19347
+ /**
19348
+ *
19349
+ * @export
19350
+ * @interface DataTypesSetUserCustomPermissionsRequest
19351
+ */
19352
+ export interface DataTypesSetUserCustomPermissionsRequest {
19353
+ /**
19354
+ * Route-level permissions
19355
+ * @type {Array<DataTypesRoleRightRequestDto>}
19356
+ * @memberof DataTypesSetUserCustomPermissionsRequest
19357
+ */
19358
+ 'roleRights'?: Array<DataTypesRoleRightRequestDto>;
19359
+ /**
19360
+ * Store-level permissions
19361
+ * @type {Array<DataTypesStoreAccessRequest>}
19362
+ * @memberof DataTypesSetUserCustomPermissionsRequest
19363
+ */
19364
+ 'storeAccess'?: Array<DataTypesStoreAccessRequest>;
19365
+ }
19165
19366
  /**
19166
19367
  *
19167
19368
  * @export
@@ -19407,6 +19608,36 @@ export interface DataTypesStoreAccessRequest {
19407
19608
  * @memberof DataTypesStoreAccessRequest
19408
19609
  */
19409
19610
  'access_level': DataTypesStoreAccessRequestAccessLevelEnum;
19611
+ /**
19612
+ * Optional: overrides default based on access_level
19613
+ * @type {boolean}
19614
+ * @memberof DataTypesStoreAccessRequest
19615
+ */
19616
+ 'can_add'?: boolean;
19617
+ /**
19618
+ * Optional: overrides default based on access_level
19619
+ * @type {boolean}
19620
+ * @memberof DataTypesStoreAccessRequest
19621
+ */
19622
+ 'can_approve'?: boolean;
19623
+ /**
19624
+ * Optional: overrides default based on access_level
19625
+ * @type {boolean}
19626
+ * @memberof DataTypesStoreAccessRequest
19627
+ */
19628
+ 'can_delete'?: boolean;
19629
+ /**
19630
+ * Optional: overrides default based on access_level
19631
+ * @type {boolean}
19632
+ * @memberof DataTypesStoreAccessRequest
19633
+ */
19634
+ 'can_modify'?: boolean;
19635
+ /**
19636
+ * Optional: overrides default based on access_level
19637
+ * @type {boolean}
19638
+ * @memberof DataTypesStoreAccessRequest
19639
+ */
19640
+ 'can_view'?: boolean;
19410
19641
  /**
19411
19642
  *
19412
19643
  * @type {number}
@@ -19466,6 +19697,36 @@ export interface DataTypesStoreAccessWithDetails {
19466
19697
  * @memberof DataTypesStoreAccessWithDetails
19467
19698
  */
19468
19699
  'access_level'?: string;
19700
+ /**
19701
+ *
19702
+ * @type {boolean}
19703
+ * @memberof DataTypesStoreAccessWithDetails
19704
+ */
19705
+ 'can_add'?: boolean;
19706
+ /**
19707
+ *
19708
+ * @type {boolean}
19709
+ * @memberof DataTypesStoreAccessWithDetails
19710
+ */
19711
+ 'can_approve'?: boolean;
19712
+ /**
19713
+ *
19714
+ * @type {boolean}
19715
+ * @memberof DataTypesStoreAccessWithDetails
19716
+ */
19717
+ 'can_delete'?: boolean;
19718
+ /**
19719
+ *
19720
+ * @type {boolean}
19721
+ * @memberof DataTypesStoreAccessWithDetails
19722
+ */
19723
+ 'can_modify'?: boolean;
19724
+ /**
19725
+ *
19726
+ * @type {boolean}
19727
+ * @memberof DataTypesStoreAccessWithDetails
19728
+ */
19729
+ 'can_view'?: boolean;
19469
19730
  /**
19470
19731
  *
19471
19732
  * @type {string}
@@ -19861,6 +20122,12 @@ export interface DataTypesSubMenuAccess {
19861
20122
  * @memberof DataTypesSubMenuAccess
19862
20123
  */
19863
20124
  'menuId'?: number;
20125
+ /**
20126
+ * \'navbar\' or \'profile_dropdown\'
20127
+ * @type {string}
20128
+ * @memberof DataTypesSubMenuAccess
20129
+ */
20130
+ 'menuLocation'?: string;
19864
20131
  /**
19865
20132
  *
19866
20133
  * @type {string}
@@ -21437,6 +21704,36 @@ export interface DataTypesUpdateStoreAccessRequest {
21437
21704
  * @memberof DataTypesUpdateStoreAccessRequest
21438
21705
  */
21439
21706
  'access_level': DataTypesUpdateStoreAccessRequestAccessLevelEnum;
21707
+ /**
21708
+ * Optional: overrides default based on access_level
21709
+ * @type {boolean}
21710
+ * @memberof DataTypesUpdateStoreAccessRequest
21711
+ */
21712
+ 'can_add'?: boolean;
21713
+ /**
21714
+ * Optional: overrides default based on access_level
21715
+ * @type {boolean}
21716
+ * @memberof DataTypesUpdateStoreAccessRequest
21717
+ */
21718
+ 'can_approve'?: boolean;
21719
+ /**
21720
+ * Optional: overrides default based on access_level
21721
+ * @type {boolean}
21722
+ * @memberof DataTypesUpdateStoreAccessRequest
21723
+ */
21724
+ 'can_delete'?: boolean;
21725
+ /**
21726
+ * Optional: overrides default based on access_level
21727
+ * @type {boolean}
21728
+ * @memberof DataTypesUpdateStoreAccessRequest
21729
+ */
21730
+ 'can_modify'?: boolean;
21731
+ /**
21732
+ * Optional: overrides default based on access_level
21733
+ * @type {boolean}
21734
+ * @memberof DataTypesUpdateStoreAccessRequest
21735
+ */
21736
+ 'can_view'?: boolean;
21440
21737
  }
21441
21738
 
21442
21739
  export const DataTypesUpdateStoreAccessRequestAccessLevelEnum = {
@@ -21841,6 +22138,80 @@ export interface DataTypesUser {
21841
22138
  */
21842
22139
  'userPhone'?: string;
21843
22140
  }
22141
+ /**
22142
+ *
22143
+ * @export
22144
+ * @interface DataTypesUserCustomPermissionsRequest
22145
+ */
22146
+ export interface DataTypesUserCustomPermissionsRequest {
22147
+ /**
22148
+ * Required if useCustomPermissions = false
22149
+ * @type {number}
22150
+ * @memberof DataTypesUserCustomPermissionsRequest
22151
+ */
22152
+ 'roleId'?: number;
22153
+ /**
22154
+ * Name for user-specific role (default: \"Custom - {UserName}\")
22155
+ * @type {string}
22156
+ * @memberof DataTypesUserCustomPermissionsRequest
22157
+ */
22158
+ 'roleName'?: string;
22159
+ /**
22160
+ * true = custom, false = use regular role
22161
+ * @type {boolean}
22162
+ * @memberof DataTypesUserCustomPermissionsRequest
22163
+ */
22164
+ 'useCustomPermissions': boolean;
22165
+ }
22166
+ /**
22167
+ *
22168
+ * @export
22169
+ * @interface DataTypesUserCustomPermissionsResponse
22170
+ */
22171
+ export interface DataTypesUserCustomPermissionsResponse {
22172
+ /**
22173
+ * Regular role ID if not using custom
22174
+ * @type {number}
22175
+ * @memberof DataTypesUserCustomPermissionsResponse
22176
+ */
22177
+ 'roleId'?: number;
22178
+ /**
22179
+ *
22180
+ * @type {string}
22181
+ * @memberof DataTypesUserCustomPermissionsResponse
22182
+ */
22183
+ 'roleName'?: string;
22184
+ /**
22185
+ * Route-level permissions
22186
+ * @type {Array<DataTypesRoleRight>}
22187
+ * @memberof DataTypesUserCustomPermissionsResponse
22188
+ */
22189
+ 'roleRights'?: Array<DataTypesRoleRight>;
22190
+ /**
22191
+ * Store-level permissions
22192
+ * @type {Array<DataTypesUserStoreAccessWithPermissions>}
22193
+ * @memberof DataTypesUserCustomPermissionsResponse
22194
+ */
22195
+ 'storeAccess'?: Array<DataTypesUserStoreAccessWithPermissions>;
22196
+ /**
22197
+ *
22198
+ * @type {boolean}
22199
+ * @memberof DataTypesUserCustomPermissionsResponse
22200
+ */
22201
+ 'useCustomPermissions'?: boolean;
22202
+ /**
22203
+ *
22204
+ * @type {number}
22205
+ * @memberof DataTypesUserCustomPermissionsResponse
22206
+ */
22207
+ 'userId'?: number;
22208
+ /**
22209
+ * User-specific role ID if using custom
22210
+ * @type {number}
22211
+ * @memberof DataTypesUserCustomPermissionsResponse
22212
+ */
22213
+ 'userSpecificRoleId'?: number;
22214
+ }
21844
22215
  /**
21845
22216
  *
21846
22217
  * @export
@@ -21878,6 +22249,36 @@ export interface DataTypesUserStoreAccess {
21878
22249
  * @memberof DataTypesUserStoreAccess
21879
22250
  */
21880
22251
  'access_level'?: string;
22252
+ /**
22253
+ *
22254
+ * @type {boolean}
22255
+ * @memberof DataTypesUserStoreAccess
22256
+ */
22257
+ 'can_add'?: boolean;
22258
+ /**
22259
+ *
22260
+ * @type {boolean}
22261
+ * @memberof DataTypesUserStoreAccess
22262
+ */
22263
+ 'can_approve'?: boolean;
22264
+ /**
22265
+ *
22266
+ * @type {boolean}
22267
+ * @memberof DataTypesUserStoreAccess
22268
+ */
22269
+ 'can_delete'?: boolean;
22270
+ /**
22271
+ *
22272
+ * @type {boolean}
22273
+ * @memberof DataTypesUserStoreAccess
22274
+ */
22275
+ 'can_modify'?: boolean;
22276
+ /**
22277
+ *
22278
+ * @type {boolean}
22279
+ * @memberof DataTypesUserStoreAccess
22280
+ */
22281
+ 'can_view'?: boolean;
21881
22282
  /**
21882
22283
  *
21883
22284
  * @type {number}
@@ -21909,6 +22310,79 @@ export interface DataTypesUserStoreAccess {
21909
22310
  */
21910
22311
  'x_store_id'?: string;
21911
22312
  }
22313
+ /**
22314
+ *
22315
+ * @export
22316
+ * @interface DataTypesUserStoreAccessWithPermissions
22317
+ */
22318
+ export interface DataTypesUserStoreAccessWithPermissions {
22319
+ /**
22320
+ *
22321
+ * @type {string}
22322
+ * @memberof DataTypesUserStoreAccessWithPermissions
22323
+ */
22324
+ 'access_level'?: string;
22325
+ /**
22326
+ *
22327
+ * @type {boolean}
22328
+ * @memberof DataTypesUserStoreAccessWithPermissions
22329
+ */
22330
+ 'can_add'?: boolean;
22331
+ /**
22332
+ *
22333
+ * @type {boolean}
22334
+ * @memberof DataTypesUserStoreAccessWithPermissions
22335
+ */
22336
+ 'can_approve'?: boolean;
22337
+ /**
22338
+ *
22339
+ * @type {boolean}
22340
+ * @memberof DataTypesUserStoreAccessWithPermissions
22341
+ */
22342
+ 'can_delete'?: boolean;
22343
+ /**
22344
+ *
22345
+ * @type {boolean}
22346
+ * @memberof DataTypesUserStoreAccessWithPermissions
22347
+ */
22348
+ 'can_modify'?: boolean;
22349
+ /**
22350
+ *
22351
+ * @type {boolean}
22352
+ * @memberof DataTypesUserStoreAccessWithPermissions
22353
+ */
22354
+ 'can_view'?: boolean;
22355
+ /**
22356
+ *
22357
+ * @type {number}
22358
+ * @memberof DataTypesUserStoreAccessWithPermissions
22359
+ */
22360
+ 'org_id'?: number;
22361
+ /**
22362
+ *
22363
+ * @type {string}
22364
+ * @memberof DataTypesUserStoreAccessWithPermissions
22365
+ */
22366
+ 'org_name'?: string;
22367
+ /**
22368
+ *
22369
+ * @type {number}
22370
+ * @memberof DataTypesUserStoreAccessWithPermissions
22371
+ */
22372
+ 'store_id'?: number;
22373
+ /**
22374
+ *
22375
+ * @type {string}
22376
+ * @memberof DataTypesUserStoreAccessWithPermissions
22377
+ */
22378
+ 'store_name'?: string;
22379
+ /**
22380
+ *
22381
+ * @type {string}
22382
+ * @memberof DataTypesUserStoreAccessWithPermissions
22383
+ */
22384
+ 'x_store_id'?: string;
22385
+ }
21912
22386
  /**
21913
22387
  *
21914
22388
  * @export
@@ -39643,12 +40117,13 @@ export const FeatureLimitsAdminApiAxiosParamCreator = function (configuration?:
39643
40117
  };
39644
40118
  },
39645
40119
  /**
39646
- * Recalculates and syncs all metrics for the organization from source tables to database and Redis
40120
+ * Recalculates and syncs all metrics for the organization from source tables to database and Redis. For increment-based metrics (api_calls, analytics_events), only syncs if Redis is empty unless force=true
39647
40121
  * @summary Sync all metrics (Admin)
40122
+ * @param {boolean} [force] Force sync increment-based metrics even if Redis has values
39648
40123
  * @param {*} [options] Override http request option.
39649
40124
  * @throws {RequiredError}
39650
40125
  */
39651
- adminFeatureLimitsMetricsSyncPost: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
40126
+ adminFeatureLimitsMetricsSyncPost: async (force?: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
39652
40127
  const localVarPath = `/admin/feature-limits/metrics/sync`;
39653
40128
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
39654
40129
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -39664,6 +40139,10 @@ export const FeatureLimitsAdminApiAxiosParamCreator = function (configuration?:
39664
40139
  // authentication BearerAuth required
39665
40140
  await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
39666
40141
 
40142
+ if (force !== undefined) {
40143
+ localVarQueryParameter['force'] = force;
40144
+ }
40145
+
39667
40146
 
39668
40147
 
39669
40148
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -39738,13 +40217,14 @@ export const FeatureLimitsAdminApiFp = function(configuration?: Configuration) {
39738
40217
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
39739
40218
  },
39740
40219
  /**
39741
- * Recalculates and syncs all metrics for the organization from source tables to database and Redis
40220
+ * Recalculates and syncs all metrics for the organization from source tables to database and Redis. For increment-based metrics (api_calls, analytics_events), only syncs if Redis is empty unless force=true
39742
40221
  * @summary Sync all metrics (Admin)
40222
+ * @param {boolean} [force] Force sync increment-based metrics even if Redis has values
39743
40223
  * @param {*} [options] Override http request option.
39744
40224
  * @throws {RequiredError}
39745
40225
  */
39746
- async adminFeatureLimitsMetricsSyncPost(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
39747
- const localVarAxiosArgs = await localVarAxiosParamCreator.adminFeatureLimitsMetricsSyncPost(options);
40226
+ async adminFeatureLimitsMetricsSyncPost(force?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
40227
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminFeatureLimitsMetricsSyncPost(force, options);
39748
40228
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
39749
40229
  const localVarOperationServerBasePath = operationServerMap['FeatureLimitsAdminApi.adminFeatureLimitsMetricsSyncPost']?.[localVarOperationServerIndex]?.url;
39750
40230
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -39782,13 +40262,14 @@ export const FeatureLimitsAdminApiFactory = function (configuration?: Configurat
39782
40262
  return localVarFp.adminFeatureLimitsCacheInvalidatePost(options).then((request) => request(axios, basePath));
39783
40263
  },
39784
40264
  /**
39785
- * Recalculates and syncs all metrics for the organization from source tables to database and Redis
40265
+ * Recalculates and syncs all metrics for the organization from source tables to database and Redis. For increment-based metrics (api_calls, analytics_events), only syncs if Redis is empty unless force=true
39786
40266
  * @summary Sync all metrics (Admin)
40267
+ * @param {boolean} [force] Force sync increment-based metrics even if Redis has values
39787
40268
  * @param {*} [options] Override http request option.
39788
40269
  * @throws {RequiredError}
39789
40270
  */
39790
- adminFeatureLimitsMetricsSyncPost(options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
39791
- return localVarFp.adminFeatureLimitsMetricsSyncPost(options).then((request) => request(axios, basePath));
40271
+ adminFeatureLimitsMetricsSyncPost(force?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
40272
+ return localVarFp.adminFeatureLimitsMetricsSyncPost(force, options).then((request) => request(axios, basePath));
39792
40273
  },
39793
40274
  /**
39794
40275
  * Resets usage counter for a specific feature (admin only)
@@ -39822,14 +40303,15 @@ export class FeatureLimitsAdminApi extends BaseAPI {
39822
40303
  }
39823
40304
 
39824
40305
  /**
39825
- * Recalculates and syncs all metrics for the organization from source tables to database and Redis
40306
+ * Recalculates and syncs all metrics for the organization from source tables to database and Redis. For increment-based metrics (api_calls, analytics_events), only syncs if Redis is empty unless force=true
39826
40307
  * @summary Sync all metrics (Admin)
40308
+ * @param {boolean} [force] Force sync increment-based metrics even if Redis has values
39827
40309
  * @param {*} [options] Override http request option.
39828
40310
  * @throws {RequiredError}
39829
40311
  * @memberof FeatureLimitsAdminApi
39830
40312
  */
39831
- public adminFeatureLimitsMetricsSyncPost(options?: RawAxiosRequestConfig) {
39832
- return FeatureLimitsAdminApiFp(this.configuration).adminFeatureLimitsMetricsSyncPost(options).then((request) => request(this.axios, this.basePath));
40313
+ public adminFeatureLimitsMetricsSyncPost(force?: boolean, options?: RawAxiosRequestConfig) {
40314
+ return FeatureLimitsAdminApiFp(this.configuration).adminFeatureLimitsMetricsSyncPost(force, options).then((request) => request(this.axios, this.basePath));
39833
40315
  }
39834
40316
 
39835
40317
  /**
@@ -41772,6 +42254,230 @@ export class LimitsApi extends BaseAPI {
41772
42254
 
41773
42255
 
41774
42256
 
42257
+ /**
42258
+ * MenuRouteMetricsApi - axios parameter creator
42259
+ * @export
42260
+ */
42261
+ export const MenuRouteMetricsApiAxiosParamCreator = function (configuration?: Configuration) {
42262
+ return {
42263
+ /**
42264
+ * 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.
42265
+ * @summary Get feature limit metric for a menu route
42266
+ * @param {string} [route] Route path (e.g., /en/profile-settings)
42267
+ * @param {string} [formname] Form name (e.g., profileSettings)
42268
+ * @param {*} [options] Override http request option.
42269
+ * @throws {RequiredError}
42270
+ */
42271
+ menuRouteMetricGet: async (route?: string, formname?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
42272
+ const localVarPath = `/menu-route-metric`;
42273
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
42274
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
42275
+ let baseOptions;
42276
+ if (configuration) {
42277
+ baseOptions = configuration.baseOptions;
42278
+ }
42279
+
42280
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
42281
+ const localVarHeaderParameter = {} as any;
42282
+ const localVarQueryParameter = {} as any;
42283
+
42284
+ // authentication BearerAuth required
42285
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
42286
+
42287
+ if (route !== undefined) {
42288
+ localVarQueryParameter['route'] = route;
42289
+ }
42290
+
42291
+ if (formname !== undefined) {
42292
+ localVarQueryParameter['formname'] = formname;
42293
+ }
42294
+
42295
+
42296
+
42297
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
42298
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
42299
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
42300
+
42301
+ return {
42302
+ url: toPathString(localVarUrlObj),
42303
+ options: localVarRequestOptions,
42304
+ };
42305
+ },
42306
+ }
42307
+ };
42308
+
42309
+ /**
42310
+ * MenuRouteMetricsApi - functional programming interface
42311
+ * @export
42312
+ */
42313
+ export const MenuRouteMetricsApiFp = function(configuration?: Configuration) {
42314
+ const localVarAxiosParamCreator = MenuRouteMetricsApiAxiosParamCreator(configuration)
42315
+ return {
42316
+ /**
42317
+ * 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.
42318
+ * @summary Get feature limit metric for a menu route
42319
+ * @param {string} [route] Route path (e.g., /en/profile-settings)
42320
+ * @param {string} [formname] Form name (e.g., profileSettings)
42321
+ * @param {*} [options] Override http request option.
42322
+ * @throws {RequiredError}
42323
+ */
42324
+ async menuRouteMetricGet(route?: string, formname?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesGenericResponseDataTypesMenuRouteMetricResponse>> {
42325
+ const localVarAxiosArgs = await localVarAxiosParamCreator.menuRouteMetricGet(route, formname, options);
42326
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
42327
+ const localVarOperationServerBasePath = operationServerMap['MenuRouteMetricsApi.menuRouteMetricGet']?.[localVarOperationServerIndex]?.url;
42328
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
42329
+ },
42330
+ }
42331
+ };
42332
+
42333
+ /**
42334
+ * MenuRouteMetricsApi - factory interface
42335
+ * @export
42336
+ */
42337
+ export const MenuRouteMetricsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
42338
+ const localVarFp = MenuRouteMetricsApiFp(configuration)
42339
+ return {
42340
+ /**
42341
+ * 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.
42342
+ * @summary Get feature limit metric for a menu route
42343
+ * @param {string} [route] Route path (e.g., /en/profile-settings)
42344
+ * @param {string} [formname] Form name (e.g., profileSettings)
42345
+ * @param {*} [options] Override http request option.
42346
+ * @throws {RequiredError}
42347
+ */
42348
+ menuRouteMetricGet(route?: string, formname?: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesGenericResponseDataTypesMenuRouteMetricResponse> {
42349
+ return localVarFp.menuRouteMetricGet(route, formname, options).then((request) => request(axios, basePath));
42350
+ },
42351
+ };
42352
+ };
42353
+
42354
+ /**
42355
+ * MenuRouteMetricsApi - object-oriented interface
42356
+ * @export
42357
+ * @class MenuRouteMetricsApi
42358
+ * @extends {BaseAPI}
42359
+ */
42360
+ export class MenuRouteMetricsApi extends BaseAPI {
42361
+ /**
42362
+ * 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.
42363
+ * @summary Get feature limit metric for a menu route
42364
+ * @param {string} [route] Route path (e.g., /en/profile-settings)
42365
+ * @param {string} [formname] Form name (e.g., profileSettings)
42366
+ * @param {*} [options] Override http request option.
42367
+ * @throws {RequiredError}
42368
+ * @memberof MenuRouteMetricsApi
42369
+ */
42370
+ public menuRouteMetricGet(route?: string, formname?: string, options?: RawAxiosRequestConfig) {
42371
+ return MenuRouteMetricsApiFp(this.configuration).menuRouteMetricGet(route, formname, options).then((request) => request(this.axios, this.basePath));
42372
+ }
42373
+ }
42374
+
42375
+
42376
+
42377
+ /**
42378
+ * MenuRouteMetricsAdminApi - axios parameter creator
42379
+ * @export
42380
+ */
42381
+ export const MenuRouteMetricsAdminApiAxiosParamCreator = function (configuration?: Configuration) {
42382
+ return {
42383
+ /**
42384
+ * Syncs all active route-to-metric mappings from database to Redis for fast access
42385
+ * @summary Sync route metric mappings to Redis (Admin)
42386
+ * @param {*} [options] Override http request option.
42387
+ * @throws {RequiredError}
42388
+ */
42389
+ adminMenuRouteMetricSyncPost: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
42390
+ const localVarPath = `/admin/menu-route-metric/sync`;
42391
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
42392
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
42393
+ let baseOptions;
42394
+ if (configuration) {
42395
+ baseOptions = configuration.baseOptions;
42396
+ }
42397
+
42398
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
42399
+ const localVarHeaderParameter = {} as any;
42400
+ const localVarQueryParameter = {} as any;
42401
+
42402
+ // authentication BearerAuth required
42403
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
42404
+
42405
+
42406
+
42407
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
42408
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
42409
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
42410
+
42411
+ return {
42412
+ url: toPathString(localVarUrlObj),
42413
+ options: localVarRequestOptions,
42414
+ };
42415
+ },
42416
+ }
42417
+ };
42418
+
42419
+ /**
42420
+ * MenuRouteMetricsAdminApi - functional programming interface
42421
+ * @export
42422
+ */
42423
+ export const MenuRouteMetricsAdminApiFp = function(configuration?: Configuration) {
42424
+ const localVarAxiosParamCreator = MenuRouteMetricsAdminApiAxiosParamCreator(configuration)
42425
+ return {
42426
+ /**
42427
+ * Syncs all active route-to-metric mappings from database to Redis for fast access
42428
+ * @summary Sync route metric mappings to Redis (Admin)
42429
+ * @param {*} [options] Override http request option.
42430
+ * @throws {RequiredError}
42431
+ */
42432
+ async adminMenuRouteMetricSyncPost(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
42433
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminMenuRouteMetricSyncPost(options);
42434
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
42435
+ const localVarOperationServerBasePath = operationServerMap['MenuRouteMetricsAdminApi.adminMenuRouteMetricSyncPost']?.[localVarOperationServerIndex]?.url;
42436
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
42437
+ },
42438
+ }
42439
+ };
42440
+
42441
+ /**
42442
+ * MenuRouteMetricsAdminApi - factory interface
42443
+ * @export
42444
+ */
42445
+ export const MenuRouteMetricsAdminApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
42446
+ const localVarFp = MenuRouteMetricsAdminApiFp(configuration)
42447
+ return {
42448
+ /**
42449
+ * Syncs all active route-to-metric mappings from database to Redis for fast access
42450
+ * @summary Sync route metric mappings to Redis (Admin)
42451
+ * @param {*} [options] Override http request option.
42452
+ * @throws {RequiredError}
42453
+ */
42454
+ adminMenuRouteMetricSyncPost(options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
42455
+ return localVarFp.adminMenuRouteMetricSyncPost(options).then((request) => request(axios, basePath));
42456
+ },
42457
+ };
42458
+ };
42459
+
42460
+ /**
42461
+ * MenuRouteMetricsAdminApi - object-oriented interface
42462
+ * @export
42463
+ * @class MenuRouteMetricsAdminApi
42464
+ * @extends {BaseAPI}
42465
+ */
42466
+ export class MenuRouteMetricsAdminApi extends BaseAPI {
42467
+ /**
42468
+ * Syncs all active route-to-metric mappings from database to Redis for fast access
42469
+ * @summary Sync route metric mappings to Redis (Admin)
42470
+ * @param {*} [options] Override http request option.
42471
+ * @throws {RequiredError}
42472
+ * @memberof MenuRouteMetricsAdminApi
42473
+ */
42474
+ public adminMenuRouteMetricSyncPost(options?: RawAxiosRequestConfig) {
42475
+ return MenuRouteMetricsAdminApiFp(this.configuration).adminMenuRouteMetricSyncPost(options).then((request) => request(this.axios, this.basePath));
42476
+ }
42477
+ }
42478
+
42479
+
42480
+
41775
42481
  /**
41776
42482
  * MenusApi - axios parameter creator
41777
42483
  * @export
@@ -60800,6 +61506,129 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
60800
61506
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
60801
61507
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
60802
61508
 
61509
+ return {
61510
+ url: toPathString(localVarUrlObj),
61511
+ options: localVarRequestOptions,
61512
+ };
61513
+ },
61514
+ /**
61515
+ * Retrieves user\'s permission configuration (route-level and store-level)
61516
+ * @summary Get user\'s custom permissions
61517
+ * @param {number} userId User ID
61518
+ * @param {*} [options] Override http request option.
61519
+ * @throws {RequiredError}
61520
+ */
61521
+ adminUsersUserIdPermissionsGet: async (userId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
61522
+ // verify required parameter 'userId' is not null or undefined
61523
+ assertParamExists('adminUsersUserIdPermissionsGet', 'userId', userId)
61524
+ const localVarPath = `/admin/users/{userId}/permissions`
61525
+ .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
61526
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
61527
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
61528
+ let baseOptions;
61529
+ if (configuration) {
61530
+ baseOptions = configuration.baseOptions;
61531
+ }
61532
+
61533
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
61534
+ const localVarHeaderParameter = {} as any;
61535
+ const localVarQueryParameter = {} as any;
61536
+
61537
+ // authentication BearerAuth required
61538
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
61539
+
61540
+
61541
+
61542
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
61543
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
61544
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
61545
+
61546
+ return {
61547
+ url: toPathString(localVarUrlObj),
61548
+ options: localVarRequestOptions,
61549
+ };
61550
+ },
61551
+ /**
61552
+ * Sets a user to use custom permissions (creates user-specific role) or assigns a regular role
61553
+ * @summary Set user to custom permissions mode or regular role
61554
+ * @param {number} userId User ID
61555
+ * @param {DataTypesUserCustomPermissionsRequest} dataTypesUserCustomPermissionsRequest Permission mode configuration
61556
+ * @param {*} [options] Override http request option.
61557
+ * @throws {RequiredError}
61558
+ */
61559
+ adminUsersUserIdPermissionsModePut: async (userId: number, dataTypesUserCustomPermissionsRequest: DataTypesUserCustomPermissionsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
61560
+ // verify required parameter 'userId' is not null or undefined
61561
+ assertParamExists('adminUsersUserIdPermissionsModePut', 'userId', userId)
61562
+ // verify required parameter 'dataTypesUserCustomPermissionsRequest' is not null or undefined
61563
+ assertParamExists('adminUsersUserIdPermissionsModePut', 'dataTypesUserCustomPermissionsRequest', dataTypesUserCustomPermissionsRequest)
61564
+ const localVarPath = `/admin/users/{userId}/permissions/mode`
61565
+ .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
61566
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
61567
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
61568
+ let baseOptions;
61569
+ if (configuration) {
61570
+ baseOptions = configuration.baseOptions;
61571
+ }
61572
+
61573
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
61574
+ const localVarHeaderParameter = {} as any;
61575
+ const localVarQueryParameter = {} as any;
61576
+
61577
+ // authentication BearerAuth required
61578
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
61579
+
61580
+
61581
+
61582
+ localVarHeaderParameter['Content-Type'] = 'application/json';
61583
+
61584
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
61585
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
61586
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
61587
+ localVarRequestOptions.data = serializeDataIfNeeded(dataTypesUserCustomPermissionsRequest, localVarRequestOptions, configuration)
61588
+
61589
+ return {
61590
+ url: toPathString(localVarUrlObj),
61591
+ options: localVarRequestOptions,
61592
+ };
61593
+ },
61594
+ /**
61595
+ * Updates user\'s custom permissions (route-level and store-level). User must be in custom mode.
61596
+ * @summary Update user\'s custom permissions
61597
+ * @param {number} userId User ID
61598
+ * @param {DataTypesSetUserCustomPermissionsRequest} dataTypesSetUserCustomPermissionsRequest Permission configuration
61599
+ * @param {*} [options] Override http request option.
61600
+ * @throws {RequiredError}
61601
+ */
61602
+ adminUsersUserIdPermissionsPut: async (userId: number, dataTypesSetUserCustomPermissionsRequest: DataTypesSetUserCustomPermissionsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
61603
+ // verify required parameter 'userId' is not null or undefined
61604
+ assertParamExists('adminUsersUserIdPermissionsPut', 'userId', userId)
61605
+ // verify required parameter 'dataTypesSetUserCustomPermissionsRequest' is not null or undefined
61606
+ assertParamExists('adminUsersUserIdPermissionsPut', 'dataTypesSetUserCustomPermissionsRequest', dataTypesSetUserCustomPermissionsRequest)
61607
+ const localVarPath = `/admin/users/{userId}/permissions`
61608
+ .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
61609
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
61610
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
61611
+ let baseOptions;
61612
+ if (configuration) {
61613
+ baseOptions = configuration.baseOptions;
61614
+ }
61615
+
61616
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
61617
+ const localVarHeaderParameter = {} as any;
61618
+ const localVarQueryParameter = {} as any;
61619
+
61620
+ // authentication BearerAuth required
61621
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
61622
+
61623
+
61624
+
61625
+ localVarHeaderParameter['Content-Type'] = 'application/json';
61626
+
61627
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
61628
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
61629
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
61630
+ localVarRequestOptions.data = serializeDataIfNeeded(dataTypesSetUserCustomPermissionsRequest, localVarRequestOptions, configuration)
61631
+
60803
61632
  return {
60804
61633
  url: toPathString(localVarUrlObj),
60805
61634
  options: localVarRequestOptions,
@@ -60907,6 +61736,47 @@ export const UserApiFp = function(configuration?: Configuration) {
60907
61736
  const localVarOperationServerBasePath = operationServerMap['UserApi.adminUsersResetpasswordIdPut']?.[localVarOperationServerIndex]?.url;
60908
61737
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
60909
61738
  },
61739
+ /**
61740
+ * Retrieves user\'s permission configuration (route-level and store-level)
61741
+ * @summary Get user\'s custom permissions
61742
+ * @param {number} userId User ID
61743
+ * @param {*} [options] Override http request option.
61744
+ * @throws {RequiredError}
61745
+ */
61746
+ async adminUsersUserIdPermissionsGet(userId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesUserCustomPermissionsResponse>> {
61747
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminUsersUserIdPermissionsGet(userId, options);
61748
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
61749
+ const localVarOperationServerBasePath = operationServerMap['UserApi.adminUsersUserIdPermissionsGet']?.[localVarOperationServerIndex]?.url;
61750
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
61751
+ },
61752
+ /**
61753
+ * Sets a user to use custom permissions (creates user-specific role) or assigns a regular role
61754
+ * @summary Set user to custom permissions mode or regular role
61755
+ * @param {number} userId User ID
61756
+ * @param {DataTypesUserCustomPermissionsRequest} dataTypesUserCustomPermissionsRequest Permission mode configuration
61757
+ * @param {*} [options] Override http request option.
61758
+ * @throws {RequiredError}
61759
+ */
61760
+ async adminUsersUserIdPermissionsModePut(userId: number, dataTypesUserCustomPermissionsRequest: DataTypesUserCustomPermissionsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
61761
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminUsersUserIdPermissionsModePut(userId, dataTypesUserCustomPermissionsRequest, options);
61762
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
61763
+ const localVarOperationServerBasePath = operationServerMap['UserApi.adminUsersUserIdPermissionsModePut']?.[localVarOperationServerIndex]?.url;
61764
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
61765
+ },
61766
+ /**
61767
+ * Updates user\'s custom permissions (route-level and store-level). User must be in custom mode.
61768
+ * @summary Update user\'s custom permissions
61769
+ * @param {number} userId User ID
61770
+ * @param {DataTypesSetUserCustomPermissionsRequest} dataTypesSetUserCustomPermissionsRequest Permission configuration
61771
+ * @param {*} [options] Override http request option.
61772
+ * @throws {RequiredError}
61773
+ */
61774
+ async adminUsersUserIdPermissionsPut(userId: number, dataTypesSetUserCustomPermissionsRequest: DataTypesSetUserCustomPermissionsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
61775
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminUsersUserIdPermissionsPut(userId, dataTypesSetUserCustomPermissionsRequest, options);
61776
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
61777
+ const localVarOperationServerBasePath = operationServerMap['UserApi.adminUsersUserIdPermissionsPut']?.[localVarOperationServerIndex]?.url;
61778
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
61779
+ },
60910
61780
  }
60911
61781
  };
60912
61782
 
@@ -60988,6 +61858,38 @@ export const UserApiFactory = function (configuration?: Configuration, basePath?
60988
61858
  adminUsersResetpasswordIdPut(id: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
60989
61859
  return localVarFp.adminUsersResetpasswordIdPut(id, options).then((request) => request(axios, basePath));
60990
61860
  },
61861
+ /**
61862
+ * Retrieves user\'s permission configuration (route-level and store-level)
61863
+ * @summary Get user\'s custom permissions
61864
+ * @param {number} userId User ID
61865
+ * @param {*} [options] Override http request option.
61866
+ * @throws {RequiredError}
61867
+ */
61868
+ adminUsersUserIdPermissionsGet(userId: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesUserCustomPermissionsResponse> {
61869
+ return localVarFp.adminUsersUserIdPermissionsGet(userId, options).then((request) => request(axios, basePath));
61870
+ },
61871
+ /**
61872
+ * Sets a user to use custom permissions (creates user-specific role) or assigns a regular role
61873
+ * @summary Set user to custom permissions mode or regular role
61874
+ * @param {number} userId User ID
61875
+ * @param {DataTypesUserCustomPermissionsRequest} dataTypesUserCustomPermissionsRequest Permission mode configuration
61876
+ * @param {*} [options] Override http request option.
61877
+ * @throws {RequiredError}
61878
+ */
61879
+ adminUsersUserIdPermissionsModePut(userId: number, dataTypesUserCustomPermissionsRequest: DataTypesUserCustomPermissionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
61880
+ return localVarFp.adminUsersUserIdPermissionsModePut(userId, dataTypesUserCustomPermissionsRequest, options).then((request) => request(axios, basePath));
61881
+ },
61882
+ /**
61883
+ * Updates user\'s custom permissions (route-level and store-level). User must be in custom mode.
61884
+ * @summary Update user\'s custom permissions
61885
+ * @param {number} userId User ID
61886
+ * @param {DataTypesSetUserCustomPermissionsRequest} dataTypesSetUserCustomPermissionsRequest Permission configuration
61887
+ * @param {*} [options] Override http request option.
61888
+ * @throws {RequiredError}
61889
+ */
61890
+ adminUsersUserIdPermissionsPut(userId: number, dataTypesSetUserCustomPermissionsRequest: DataTypesSetUserCustomPermissionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
61891
+ return localVarFp.adminUsersUserIdPermissionsPut(userId, dataTypesSetUserCustomPermissionsRequest, options).then((request) => request(axios, basePath));
61892
+ },
60991
61893
  };
60992
61894
  };
60993
61895
 
@@ -61082,6 +61984,44 @@ export class UserApi extends BaseAPI {
61082
61984
  public adminUsersResetpasswordIdPut(id: number, options?: RawAxiosRequestConfig) {
61083
61985
  return UserApiFp(this.configuration).adminUsersResetpasswordIdPut(id, options).then((request) => request(this.axios, this.basePath));
61084
61986
  }
61987
+
61988
+ /**
61989
+ * Retrieves user\'s permission configuration (route-level and store-level)
61990
+ * @summary Get user\'s custom permissions
61991
+ * @param {number} userId User ID
61992
+ * @param {*} [options] Override http request option.
61993
+ * @throws {RequiredError}
61994
+ * @memberof UserApi
61995
+ */
61996
+ public adminUsersUserIdPermissionsGet(userId: number, options?: RawAxiosRequestConfig) {
61997
+ return UserApiFp(this.configuration).adminUsersUserIdPermissionsGet(userId, options).then((request) => request(this.axios, this.basePath));
61998
+ }
61999
+
62000
+ /**
62001
+ * Sets a user to use custom permissions (creates user-specific role) or assigns a regular role
62002
+ * @summary Set user to custom permissions mode or regular role
62003
+ * @param {number} userId User ID
62004
+ * @param {DataTypesUserCustomPermissionsRequest} dataTypesUserCustomPermissionsRequest Permission mode configuration
62005
+ * @param {*} [options] Override http request option.
62006
+ * @throws {RequiredError}
62007
+ * @memberof UserApi
62008
+ */
62009
+ public adminUsersUserIdPermissionsModePut(userId: number, dataTypesUserCustomPermissionsRequest: DataTypesUserCustomPermissionsRequest, options?: RawAxiosRequestConfig) {
62010
+ return UserApiFp(this.configuration).adminUsersUserIdPermissionsModePut(userId, dataTypesUserCustomPermissionsRequest, options).then((request) => request(this.axios, this.basePath));
62011
+ }
62012
+
62013
+ /**
62014
+ * Updates user\'s custom permissions (route-level and store-level). User must be in custom mode.
62015
+ * @summary Update user\'s custom permissions
62016
+ * @param {number} userId User ID
62017
+ * @param {DataTypesSetUserCustomPermissionsRequest} dataTypesSetUserCustomPermissionsRequest Permission configuration
62018
+ * @param {*} [options] Override http request option.
62019
+ * @throws {RequiredError}
62020
+ * @memberof UserApi
62021
+ */
62022
+ public adminUsersUserIdPermissionsPut(userId: number, dataTypesSetUserCustomPermissionsRequest: DataTypesSetUserCustomPermissionsRequest, options?: RawAxiosRequestConfig) {
62023
+ return UserApiFp(this.configuration).adminUsersUserIdPermissionsPut(userId, dataTypesSetUserCustomPermissionsRequest, options).then((request) => request(this.axios, this.basePath));
62024
+ }
61085
62025
  }
61086
62026
 
61087
62027