@seekora-ai/admin-api 1.1.83 → 1.1.84
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -5
- package/api.ts +641 -215
- package/dist/api.d.ts +631 -205
- package/dist/api.js +28 -28
- package/dist/esm/api.d.ts +631 -205
- package/dist/esm/api.js +28 -28
- package/package.json +1 -1
- package/seekora-ai-admin-api-1.1.84.tgz +0 -0
- package/seekora-ai-admin-api-1.1.83.tgz +0 -0
package/api.ts
CHANGED
|
@@ -16325,6 +16325,18 @@ export interface DataTypesErrorMetaResponse {
|
|
|
16325
16325
|
* @interface DataTypesEventPayload
|
|
16326
16326
|
*/
|
|
16327
16327
|
export interface DataTypesEventPayload {
|
|
16328
|
+
/**
|
|
16329
|
+
* ============================================================================ A/B Testing (V3) ============================================================================
|
|
16330
|
+
* @type {string}
|
|
16331
|
+
* @memberof DataTypesEventPayload
|
|
16332
|
+
*/
|
|
16333
|
+
'ab_test_id'?: string;
|
|
16334
|
+
/**
|
|
16335
|
+
* Variant assignment
|
|
16336
|
+
* @type {string}
|
|
16337
|
+
* @memberof DataTypesEventPayload
|
|
16338
|
+
*/
|
|
16339
|
+
'ab_variant'?: string;
|
|
16328
16340
|
/**
|
|
16329
16341
|
* ============================================================================ Analytics & Metadata ============================================================================
|
|
16330
16342
|
* @type {Array<string>}
|
|
@@ -16373,6 +16385,12 @@ export interface DataTypesEventPayload {
|
|
|
16373
16385
|
* @memberof DataTypesEventPayload
|
|
16374
16386
|
*/
|
|
16375
16387
|
'city'?: string;
|
|
16388
|
+
/**
|
|
16389
|
+
* new_tab, same_page, in_page
|
|
16390
|
+
* @type {string}
|
|
16391
|
+
* @memberof DataTypesEventPayload
|
|
16392
|
+
*/
|
|
16393
|
+
'click_target'?: string;
|
|
16376
16394
|
/**
|
|
16377
16395
|
* query, product, category, brand, trending, recent
|
|
16378
16396
|
* @type {string}
|
|
@@ -16451,6 +16469,12 @@ export interface DataTypesEventPayload {
|
|
|
16451
16469
|
* @memberof DataTypesEventPayload
|
|
16452
16470
|
*/
|
|
16453
16471
|
'custom_json'?: string;
|
|
16472
|
+
/**
|
|
16473
|
+
* ============================================================================ Navigation Tracking (V3) ============================================================================
|
|
16474
|
+
* @type {string}
|
|
16475
|
+
* @memberof DataTypesEventPayload
|
|
16476
|
+
*/
|
|
16477
|
+
'destination_url'?: string;
|
|
16454
16478
|
/**
|
|
16455
16479
|
*
|
|
16456
16480
|
* @type {string}
|
|
@@ -16685,6 +16709,12 @@ export interface DataTypesEventPayload {
|
|
|
16685
16709
|
* @memberof DataTypesEventPayload
|
|
16686
16710
|
*/
|
|
16687
16711
|
'session_id'?: string;
|
|
16712
|
+
/**
|
|
16713
|
+
* URL where click originated
|
|
16714
|
+
* @type {string}
|
|
16715
|
+
* @memberof DataTypesEventPayload
|
|
16716
|
+
*/
|
|
16717
|
+
'source_url'?: string;
|
|
16688
16718
|
/**
|
|
16689
16719
|
*
|
|
16690
16720
|
* @type {string}
|
|
@@ -28378,6 +28408,585 @@ export interface DataTypesSetUserCustomPermissionsRequest {
|
|
|
28378
28408
|
*/
|
|
28379
28409
|
'storeAccessGrouped'?: Array<DataTypesGroupedStoreAccess>;
|
|
28380
28410
|
}
|
|
28411
|
+
/**
|
|
28412
|
+
*
|
|
28413
|
+
* @export
|
|
28414
|
+
* @interface DataTypesSlimGroupedPermissionsRequest
|
|
28415
|
+
*/
|
|
28416
|
+
export interface DataTypesSlimGroupedPermissionsRequest {
|
|
28417
|
+
/**
|
|
28418
|
+
*
|
|
28419
|
+
* @type {Array<DataTypesSlimModuleGroupRequest>}
|
|
28420
|
+
* @memberof DataTypesSlimGroupedPermissionsRequest
|
|
28421
|
+
*/
|
|
28422
|
+
'modules'?: Array<DataTypesSlimModuleGroupRequest>;
|
|
28423
|
+
}
|
|
28424
|
+
/**
|
|
28425
|
+
*
|
|
28426
|
+
* @export
|
|
28427
|
+
* @interface DataTypesSlimGroupedRolePermissions
|
|
28428
|
+
*/
|
|
28429
|
+
export interface DataTypesSlimGroupedRolePermissions {
|
|
28430
|
+
/**
|
|
28431
|
+
*
|
|
28432
|
+
* @type {Array<DataTypesSlimModuleGroup>}
|
|
28433
|
+
* @memberof DataTypesSlimGroupedRolePermissions
|
|
28434
|
+
*/
|
|
28435
|
+
'modules'?: Array<DataTypesSlimModuleGroup>;
|
|
28436
|
+
}
|
|
28437
|
+
/**
|
|
28438
|
+
*
|
|
28439
|
+
* @export
|
|
28440
|
+
* @interface DataTypesSlimGroupedStoreAccess
|
|
28441
|
+
*/
|
|
28442
|
+
export interface DataTypesSlimGroupedStoreAccess {
|
|
28443
|
+
/**
|
|
28444
|
+
*
|
|
28445
|
+
* @type {string}
|
|
28446
|
+
* @memberof DataTypesSlimGroupedStoreAccess
|
|
28447
|
+
*/
|
|
28448
|
+
'access_level'?: string;
|
|
28449
|
+
/**
|
|
28450
|
+
*
|
|
28451
|
+
* @type {boolean}
|
|
28452
|
+
* @memberof DataTypesSlimGroupedStoreAccess
|
|
28453
|
+
*/
|
|
28454
|
+
'can_add'?: boolean;
|
|
28455
|
+
/**
|
|
28456
|
+
*
|
|
28457
|
+
* @type {boolean}
|
|
28458
|
+
* @memberof DataTypesSlimGroupedStoreAccess
|
|
28459
|
+
*/
|
|
28460
|
+
'can_approve'?: boolean;
|
|
28461
|
+
/**
|
|
28462
|
+
*
|
|
28463
|
+
* @type {boolean}
|
|
28464
|
+
* @memberof DataTypesSlimGroupedStoreAccess
|
|
28465
|
+
*/
|
|
28466
|
+
'can_delete'?: boolean;
|
|
28467
|
+
/**
|
|
28468
|
+
*
|
|
28469
|
+
* @type {boolean}
|
|
28470
|
+
* @memberof DataTypesSlimGroupedStoreAccess
|
|
28471
|
+
*/
|
|
28472
|
+
'can_modify'?: boolean;
|
|
28473
|
+
/**
|
|
28474
|
+
*
|
|
28475
|
+
* @type {boolean}
|
|
28476
|
+
* @memberof DataTypesSlimGroupedStoreAccess
|
|
28477
|
+
*/
|
|
28478
|
+
'can_view'?: boolean;
|
|
28479
|
+
/**
|
|
28480
|
+
*
|
|
28481
|
+
* @type {boolean}
|
|
28482
|
+
* @memberof DataTypesSlimGroupedStoreAccess
|
|
28483
|
+
*/
|
|
28484
|
+
'full_access'?: boolean;
|
|
28485
|
+
/**
|
|
28486
|
+
*
|
|
28487
|
+
* @type {Array<DataTypesSlimModuleGroup>}
|
|
28488
|
+
* @memberof DataTypesSlimGroupedStoreAccess
|
|
28489
|
+
*/
|
|
28490
|
+
'modules'?: Array<DataTypesSlimModuleGroup>;
|
|
28491
|
+
/**
|
|
28492
|
+
*
|
|
28493
|
+
* @type {number}
|
|
28494
|
+
* @memberof DataTypesSlimGroupedStoreAccess
|
|
28495
|
+
*/
|
|
28496
|
+
'storeId'?: number;
|
|
28497
|
+
/**
|
|
28498
|
+
*
|
|
28499
|
+
* @type {string}
|
|
28500
|
+
* @memberof DataTypesSlimGroupedStoreAccess
|
|
28501
|
+
*/
|
|
28502
|
+
'storeName'?: string;
|
|
28503
|
+
}
|
|
28504
|
+
/**
|
|
28505
|
+
*
|
|
28506
|
+
* @export
|
|
28507
|
+
* @interface DataTypesSlimMenu
|
|
28508
|
+
*/
|
|
28509
|
+
export interface DataTypesSlimMenu {
|
|
28510
|
+
/**
|
|
28511
|
+
*
|
|
28512
|
+
* @type {string}
|
|
28513
|
+
* @memberof DataTypesSlimMenu
|
|
28514
|
+
*/
|
|
28515
|
+
'icon'?: string;
|
|
28516
|
+
/**
|
|
28517
|
+
*
|
|
28518
|
+
* @type {boolean}
|
|
28519
|
+
* @memberof DataTypesSlimMenu
|
|
28520
|
+
*/
|
|
28521
|
+
'isParentMenu'?: boolean;
|
|
28522
|
+
/**
|
|
28523
|
+
*
|
|
28524
|
+
* @type {number}
|
|
28525
|
+
* @memberof DataTypesSlimMenu
|
|
28526
|
+
*/
|
|
28527
|
+
'menuId'?: number;
|
|
28528
|
+
/**
|
|
28529
|
+
*
|
|
28530
|
+
* @type {string}
|
|
28531
|
+
* @memberof DataTypesSlimMenu
|
|
28532
|
+
*/
|
|
28533
|
+
'menuName'?: string;
|
|
28534
|
+
/**
|
|
28535
|
+
*
|
|
28536
|
+
* @type {string}
|
|
28537
|
+
* @memberof DataTypesSlimMenu
|
|
28538
|
+
*/
|
|
28539
|
+
'moduleType'?: string;
|
|
28540
|
+
/**
|
|
28541
|
+
*
|
|
28542
|
+
* @type {number}
|
|
28543
|
+
* @memberof DataTypesSlimMenu
|
|
28544
|
+
*/
|
|
28545
|
+
'parentId'?: number;
|
|
28546
|
+
/**
|
|
28547
|
+
*
|
|
28548
|
+
* @type {number}
|
|
28549
|
+
* @memberof DataTypesSlimMenu
|
|
28550
|
+
*/
|
|
28551
|
+
'sortOrder'?: number;
|
|
28552
|
+
}
|
|
28553
|
+
/**
|
|
28554
|
+
*
|
|
28555
|
+
* @export
|
|
28556
|
+
* @interface DataTypesSlimModuleGroup
|
|
28557
|
+
*/
|
|
28558
|
+
export interface DataTypesSlimModuleGroup {
|
|
28559
|
+
/**
|
|
28560
|
+
*
|
|
28561
|
+
* @type {Array<DataTypesSlimParentMenuGroup>}
|
|
28562
|
+
* @memberof DataTypesSlimModuleGroup
|
|
28563
|
+
*/
|
|
28564
|
+
'groups'?: Array<DataTypesSlimParentMenuGroup>;
|
|
28565
|
+
/**
|
|
28566
|
+
*
|
|
28567
|
+
* @type {string}
|
|
28568
|
+
* @memberof DataTypesSlimModuleGroup
|
|
28569
|
+
*/
|
|
28570
|
+
'moduleType'?: string;
|
|
28571
|
+
}
|
|
28572
|
+
/**
|
|
28573
|
+
*
|
|
28574
|
+
* @export
|
|
28575
|
+
* @interface DataTypesSlimModuleGroupRequest
|
|
28576
|
+
*/
|
|
28577
|
+
export interface DataTypesSlimModuleGroupRequest {
|
|
28578
|
+
/**
|
|
28579
|
+
*
|
|
28580
|
+
* @type {Array<DataTypesSlimParentMenuGroupRequest>}
|
|
28581
|
+
* @memberof DataTypesSlimModuleGroupRequest
|
|
28582
|
+
*/
|
|
28583
|
+
'groups'?: Array<DataTypesSlimParentMenuGroupRequest>;
|
|
28584
|
+
/**
|
|
28585
|
+
*
|
|
28586
|
+
* @type {string}
|
|
28587
|
+
* @memberof DataTypesSlimModuleGroupRequest
|
|
28588
|
+
*/
|
|
28589
|
+
'moduleType'?: string;
|
|
28590
|
+
}
|
|
28591
|
+
/**
|
|
28592
|
+
*
|
|
28593
|
+
* @export
|
|
28594
|
+
* @interface DataTypesSlimParentMenuGroup
|
|
28595
|
+
*/
|
|
28596
|
+
export interface DataTypesSlimParentMenuGroup {
|
|
28597
|
+
/**
|
|
28598
|
+
*
|
|
28599
|
+
* @type {Array<DataTypesSlimRoleRightWithMenu>}
|
|
28600
|
+
* @memberof DataTypesSlimParentMenuGroup
|
|
28601
|
+
*/
|
|
28602
|
+
'children'?: Array<DataTypesSlimRoleRightWithMenu>;
|
|
28603
|
+
/**
|
|
28604
|
+
*
|
|
28605
|
+
* @type {DataTypesSlimRoleRightWithMenu}
|
|
28606
|
+
* @memberof DataTypesSlimParentMenuGroup
|
|
28607
|
+
*/
|
|
28608
|
+
'parentMenu'?: DataTypesSlimRoleRightWithMenu;
|
|
28609
|
+
}
|
|
28610
|
+
/**
|
|
28611
|
+
*
|
|
28612
|
+
* @export
|
|
28613
|
+
* @interface DataTypesSlimParentMenuGroupRequest
|
|
28614
|
+
*/
|
|
28615
|
+
export interface DataTypesSlimParentMenuGroupRequest {
|
|
28616
|
+
/**
|
|
28617
|
+
*
|
|
28618
|
+
* @type {Array<DataTypesSlimPermissionEntry>}
|
|
28619
|
+
* @memberof DataTypesSlimParentMenuGroupRequest
|
|
28620
|
+
*/
|
|
28621
|
+
'children'?: Array<DataTypesSlimPermissionEntry>;
|
|
28622
|
+
/**
|
|
28623
|
+
*
|
|
28624
|
+
* @type {DataTypesSlimPermissionEntry}
|
|
28625
|
+
* @memberof DataTypesSlimParentMenuGroupRequest
|
|
28626
|
+
*/
|
|
28627
|
+
'parentMenu'?: DataTypesSlimPermissionEntry;
|
|
28628
|
+
}
|
|
28629
|
+
/**
|
|
28630
|
+
*
|
|
28631
|
+
* @export
|
|
28632
|
+
* @interface DataTypesSlimPermissionEntry
|
|
28633
|
+
*/
|
|
28634
|
+
export interface DataTypesSlimPermissionEntry {
|
|
28635
|
+
/**
|
|
28636
|
+
*
|
|
28637
|
+
* @type {boolean}
|
|
28638
|
+
* @memberof DataTypesSlimPermissionEntry
|
|
28639
|
+
*/
|
|
28640
|
+
'canAdd'?: boolean;
|
|
28641
|
+
/**
|
|
28642
|
+
*
|
|
28643
|
+
* @type {boolean}
|
|
28644
|
+
* @memberof DataTypesSlimPermissionEntry
|
|
28645
|
+
*/
|
|
28646
|
+
'canApprove'?: boolean;
|
|
28647
|
+
/**
|
|
28648
|
+
*
|
|
28649
|
+
* @type {boolean}
|
|
28650
|
+
* @memberof DataTypesSlimPermissionEntry
|
|
28651
|
+
*/
|
|
28652
|
+
'canDelete'?: boolean;
|
|
28653
|
+
/**
|
|
28654
|
+
*
|
|
28655
|
+
* @type {boolean}
|
|
28656
|
+
* @memberof DataTypesSlimPermissionEntry
|
|
28657
|
+
*/
|
|
28658
|
+
'canModify'?: boolean;
|
|
28659
|
+
/**
|
|
28660
|
+
*
|
|
28661
|
+
* @type {boolean}
|
|
28662
|
+
* @memberof DataTypesSlimPermissionEntry
|
|
28663
|
+
*/
|
|
28664
|
+
'canView'?: boolean;
|
|
28665
|
+
/**
|
|
28666
|
+
*
|
|
28667
|
+
* @type {boolean}
|
|
28668
|
+
* @memberof DataTypesSlimPermissionEntry
|
|
28669
|
+
*/
|
|
28670
|
+
'fullAccess'?: boolean;
|
|
28671
|
+
/**
|
|
28672
|
+
*
|
|
28673
|
+
* @type {boolean}
|
|
28674
|
+
* @memberof DataTypesSlimPermissionEntry
|
|
28675
|
+
*/
|
|
28676
|
+
'isEnabled'?: boolean;
|
|
28677
|
+
/**
|
|
28678
|
+
*
|
|
28679
|
+
* @type {number}
|
|
28680
|
+
* @memberof DataTypesSlimPermissionEntry
|
|
28681
|
+
*/
|
|
28682
|
+
'menuId': number;
|
|
28683
|
+
}
|
|
28684
|
+
/**
|
|
28685
|
+
*
|
|
28686
|
+
* @export
|
|
28687
|
+
* @interface DataTypesSlimRolePermissionsResponse
|
|
28688
|
+
*/
|
|
28689
|
+
export interface DataTypesSlimRolePermissionsResponse {
|
|
28690
|
+
/**
|
|
28691
|
+
*
|
|
28692
|
+
* @type {boolean}
|
|
28693
|
+
* @memberof DataTypesSlimRolePermissionsResponse
|
|
28694
|
+
*/
|
|
28695
|
+
'allStoresFullAccess'?: boolean;
|
|
28696
|
+
/**
|
|
28697
|
+
*
|
|
28698
|
+
* @type {boolean}
|
|
28699
|
+
* @memberof DataTypesSlimRolePermissionsResponse
|
|
28700
|
+
*/
|
|
28701
|
+
'fullAccess'?: boolean;
|
|
28702
|
+
/**
|
|
28703
|
+
*
|
|
28704
|
+
* @type {DataTypesSlimGroupedRolePermissions}
|
|
28705
|
+
* @memberof DataTypesSlimRolePermissionsResponse
|
|
28706
|
+
*/
|
|
28707
|
+
'orgLevelMenusGrouped'?: DataTypesSlimGroupedRolePermissions;
|
|
28708
|
+
/**
|
|
28709
|
+
*
|
|
28710
|
+
* @type {number}
|
|
28711
|
+
* @memberof DataTypesSlimRolePermissionsResponse
|
|
28712
|
+
*/
|
|
28713
|
+
'roleId'?: number;
|
|
28714
|
+
/**
|
|
28715
|
+
*
|
|
28716
|
+
* @type {string}
|
|
28717
|
+
* @memberof DataTypesSlimRolePermissionsResponse
|
|
28718
|
+
*/
|
|
28719
|
+
'roleName'?: string;
|
|
28720
|
+
/**
|
|
28721
|
+
*
|
|
28722
|
+
* @type {Array<DataTypesSlimGroupedStoreAccess>}
|
|
28723
|
+
* @memberof DataTypesSlimRolePermissionsResponse
|
|
28724
|
+
*/
|
|
28725
|
+
'storeAccessGrouped'?: Array<DataTypesSlimGroupedStoreAccess>;
|
|
28726
|
+
}
|
|
28727
|
+
/**
|
|
28728
|
+
*
|
|
28729
|
+
* @export
|
|
28730
|
+
* @interface DataTypesSlimRoleRightWithMenu
|
|
28731
|
+
*/
|
|
28732
|
+
export interface DataTypesSlimRoleRightWithMenu {
|
|
28733
|
+
/**
|
|
28734
|
+
*
|
|
28735
|
+
* @type {boolean}
|
|
28736
|
+
* @memberof DataTypesSlimRoleRightWithMenu
|
|
28737
|
+
*/
|
|
28738
|
+
'canAdd'?: boolean;
|
|
28739
|
+
/**
|
|
28740
|
+
*
|
|
28741
|
+
* @type {boolean}
|
|
28742
|
+
* @memberof DataTypesSlimRoleRightWithMenu
|
|
28743
|
+
*/
|
|
28744
|
+
'canApprove'?: boolean;
|
|
28745
|
+
/**
|
|
28746
|
+
*
|
|
28747
|
+
* @type {boolean}
|
|
28748
|
+
* @memberof DataTypesSlimRoleRightWithMenu
|
|
28749
|
+
*/
|
|
28750
|
+
'canDelete'?: boolean;
|
|
28751
|
+
/**
|
|
28752
|
+
*
|
|
28753
|
+
* @type {boolean}
|
|
28754
|
+
* @memberof DataTypesSlimRoleRightWithMenu
|
|
28755
|
+
*/
|
|
28756
|
+
'canModify'?: boolean;
|
|
28757
|
+
/**
|
|
28758
|
+
*
|
|
28759
|
+
* @type {boolean}
|
|
28760
|
+
* @memberof DataTypesSlimRoleRightWithMenu
|
|
28761
|
+
*/
|
|
28762
|
+
'canView'?: boolean;
|
|
28763
|
+
/**
|
|
28764
|
+
*
|
|
28765
|
+
* @type {boolean}
|
|
28766
|
+
* @memberof DataTypesSlimRoleRightWithMenu
|
|
28767
|
+
*/
|
|
28768
|
+
'fullAccess'?: boolean;
|
|
28769
|
+
/**
|
|
28770
|
+
*
|
|
28771
|
+
* @type {boolean}
|
|
28772
|
+
* @memberof DataTypesSlimRoleRightWithMenu
|
|
28773
|
+
*/
|
|
28774
|
+
'isEnabled'?: boolean;
|
|
28775
|
+
/**
|
|
28776
|
+
*
|
|
28777
|
+
* @type {DataTypesSlimMenu}
|
|
28778
|
+
* @memberof DataTypesSlimRoleRightWithMenu
|
|
28779
|
+
*/
|
|
28780
|
+
'menu'?: DataTypesSlimMenu;
|
|
28781
|
+
/**
|
|
28782
|
+
*
|
|
28783
|
+
* @type {number}
|
|
28784
|
+
* @memberof DataTypesSlimRoleRightWithMenu
|
|
28785
|
+
*/
|
|
28786
|
+
'menuId'?: number;
|
|
28787
|
+
/**
|
|
28788
|
+
*
|
|
28789
|
+
* @type {number}
|
|
28790
|
+
* @memberof DataTypesSlimRoleRightWithMenu
|
|
28791
|
+
*/
|
|
28792
|
+
'roleRightId'?: number;
|
|
28793
|
+
}
|
|
28794
|
+
/**
|
|
28795
|
+
*
|
|
28796
|
+
* @export
|
|
28797
|
+
* @interface DataTypesSlimStoreAccessRequest
|
|
28798
|
+
*/
|
|
28799
|
+
export interface DataTypesSlimStoreAccessRequest {
|
|
28800
|
+
/**
|
|
28801
|
+
*
|
|
28802
|
+
* @type {string}
|
|
28803
|
+
* @memberof DataTypesSlimStoreAccessRequest
|
|
28804
|
+
*/
|
|
28805
|
+
'access_level'?: string;
|
|
28806
|
+
/**
|
|
28807
|
+
*
|
|
28808
|
+
* @type {boolean}
|
|
28809
|
+
* @memberof DataTypesSlimStoreAccessRequest
|
|
28810
|
+
*/
|
|
28811
|
+
'can_add'?: boolean;
|
|
28812
|
+
/**
|
|
28813
|
+
*
|
|
28814
|
+
* @type {boolean}
|
|
28815
|
+
* @memberof DataTypesSlimStoreAccessRequest
|
|
28816
|
+
*/
|
|
28817
|
+
'can_approve'?: boolean;
|
|
28818
|
+
/**
|
|
28819
|
+
*
|
|
28820
|
+
* @type {boolean}
|
|
28821
|
+
* @memberof DataTypesSlimStoreAccessRequest
|
|
28822
|
+
*/
|
|
28823
|
+
'can_delete'?: boolean;
|
|
28824
|
+
/**
|
|
28825
|
+
*
|
|
28826
|
+
* @type {boolean}
|
|
28827
|
+
* @memberof DataTypesSlimStoreAccessRequest
|
|
28828
|
+
*/
|
|
28829
|
+
'can_modify'?: boolean;
|
|
28830
|
+
/**
|
|
28831
|
+
*
|
|
28832
|
+
* @type {boolean}
|
|
28833
|
+
* @memberof DataTypesSlimStoreAccessRequest
|
|
28834
|
+
*/
|
|
28835
|
+
'can_view'?: boolean;
|
|
28836
|
+
/**
|
|
28837
|
+
*
|
|
28838
|
+
* @type {boolean}
|
|
28839
|
+
* @memberof DataTypesSlimStoreAccessRequest
|
|
28840
|
+
*/
|
|
28841
|
+
'full_access'?: boolean;
|
|
28842
|
+
/**
|
|
28843
|
+
*
|
|
28844
|
+
* @type {Array<DataTypesSlimModuleGroupRequest>}
|
|
28845
|
+
* @memberof DataTypesSlimStoreAccessRequest
|
|
28846
|
+
*/
|
|
28847
|
+
'modules'?: Array<DataTypesSlimModuleGroupRequest>;
|
|
28848
|
+
/**
|
|
28849
|
+
*
|
|
28850
|
+
* @type {number}
|
|
28851
|
+
* @memberof DataTypesSlimStoreAccessRequest
|
|
28852
|
+
*/
|
|
28853
|
+
'storeId': number;
|
|
28854
|
+
}
|
|
28855
|
+
/**
|
|
28856
|
+
*
|
|
28857
|
+
* @export
|
|
28858
|
+
* @interface DataTypesSlimUpdateRolePermissionsRequest
|
|
28859
|
+
*/
|
|
28860
|
+
export interface DataTypesSlimUpdateRolePermissionsRequest {
|
|
28861
|
+
/**
|
|
28862
|
+
*
|
|
28863
|
+
* @type {boolean}
|
|
28864
|
+
* @memberof DataTypesSlimUpdateRolePermissionsRequest
|
|
28865
|
+
*/
|
|
28866
|
+
'allStoresFullAccess'?: boolean;
|
|
28867
|
+
/**
|
|
28868
|
+
*
|
|
28869
|
+
* @type {boolean}
|
|
28870
|
+
* @memberof DataTypesSlimUpdateRolePermissionsRequest
|
|
28871
|
+
*/
|
|
28872
|
+
'fullAccess'?: boolean;
|
|
28873
|
+
/**
|
|
28874
|
+
*
|
|
28875
|
+
* @type {DataTypesSlimGroupedPermissionsRequest}
|
|
28876
|
+
* @memberof DataTypesSlimUpdateRolePermissionsRequest
|
|
28877
|
+
*/
|
|
28878
|
+
'orgLevelMenusGrouped'?: DataTypesSlimGroupedPermissionsRequest;
|
|
28879
|
+
/**
|
|
28880
|
+
*
|
|
28881
|
+
* @type {number}
|
|
28882
|
+
* @memberof DataTypesSlimUpdateRolePermissionsRequest
|
|
28883
|
+
*/
|
|
28884
|
+
'roleId'?: number;
|
|
28885
|
+
/**
|
|
28886
|
+
*
|
|
28887
|
+
* @type {Array<DataTypesSlimStoreAccessRequest>}
|
|
28888
|
+
* @memberof DataTypesSlimUpdateRolePermissionsRequest
|
|
28889
|
+
*/
|
|
28890
|
+
'storeAccessGrouped'?: Array<DataTypesSlimStoreAccessRequest>;
|
|
28891
|
+
}
|
|
28892
|
+
/**
|
|
28893
|
+
*
|
|
28894
|
+
* @export
|
|
28895
|
+
* @interface DataTypesSlimUpdateUserRolePermissionsRequest
|
|
28896
|
+
*/
|
|
28897
|
+
export interface DataTypesSlimUpdateUserRolePermissionsRequest {
|
|
28898
|
+
/**
|
|
28899
|
+
*
|
|
28900
|
+
* @type {boolean}
|
|
28901
|
+
* @memberof DataTypesSlimUpdateUserRolePermissionsRequest
|
|
28902
|
+
*/
|
|
28903
|
+
'allStoresFullAccess'?: boolean;
|
|
28904
|
+
/**
|
|
28905
|
+
*
|
|
28906
|
+
* @type {boolean}
|
|
28907
|
+
* @memberof DataTypesSlimUpdateUserRolePermissionsRequest
|
|
28908
|
+
*/
|
|
28909
|
+
'fullAccess'?: boolean;
|
|
28910
|
+
/**
|
|
28911
|
+
*
|
|
28912
|
+
* @type {DataTypesSlimGroupedPermissionsRequest}
|
|
28913
|
+
* @memberof DataTypesSlimUpdateUserRolePermissionsRequest
|
|
28914
|
+
*/
|
|
28915
|
+
'orgLevelMenusGrouped'?: DataTypesSlimGroupedPermissionsRequest;
|
|
28916
|
+
/**
|
|
28917
|
+
*
|
|
28918
|
+
* @type {Array<DataTypesSlimStoreAccessRequest>}
|
|
28919
|
+
* @memberof DataTypesSlimUpdateUserRolePermissionsRequest
|
|
28920
|
+
*/
|
|
28921
|
+
'storeAccessGrouped'?: Array<DataTypesSlimStoreAccessRequest>;
|
|
28922
|
+
/**
|
|
28923
|
+
*
|
|
28924
|
+
* @type {number}
|
|
28925
|
+
* @memberof DataTypesSlimUpdateUserRolePermissionsRequest
|
|
28926
|
+
*/
|
|
28927
|
+
'userId'?: number;
|
|
28928
|
+
}
|
|
28929
|
+
/**
|
|
28930
|
+
*
|
|
28931
|
+
* @export
|
|
28932
|
+
* @interface DataTypesSlimUserRolePermissionsResponse
|
|
28933
|
+
*/
|
|
28934
|
+
export interface DataTypesSlimUserRolePermissionsResponse {
|
|
28935
|
+
/**
|
|
28936
|
+
*
|
|
28937
|
+
* @type {boolean}
|
|
28938
|
+
* @memberof DataTypesSlimUserRolePermissionsResponse
|
|
28939
|
+
*/
|
|
28940
|
+
'allStoresFullAccess'?: boolean;
|
|
28941
|
+
/**
|
|
28942
|
+
*
|
|
28943
|
+
* @type {boolean}
|
|
28944
|
+
* @memberof DataTypesSlimUserRolePermissionsResponse
|
|
28945
|
+
*/
|
|
28946
|
+
'fullAccess'?: boolean;
|
|
28947
|
+
/**
|
|
28948
|
+
*
|
|
28949
|
+
* @type {DataTypesSlimGroupedRolePermissions}
|
|
28950
|
+
* @memberof DataTypesSlimUserRolePermissionsResponse
|
|
28951
|
+
*/
|
|
28952
|
+
'orgLevelMenusGrouped'?: DataTypesSlimGroupedRolePermissions;
|
|
28953
|
+
/**
|
|
28954
|
+
*
|
|
28955
|
+
* @type {number}
|
|
28956
|
+
* @memberof DataTypesSlimUserRolePermissionsResponse
|
|
28957
|
+
*/
|
|
28958
|
+
'roleId'?: number;
|
|
28959
|
+
/**
|
|
28960
|
+
*
|
|
28961
|
+
* @type {string}
|
|
28962
|
+
* @memberof DataTypesSlimUserRolePermissionsResponse
|
|
28963
|
+
*/
|
|
28964
|
+
'roleName'?: string;
|
|
28965
|
+
/**
|
|
28966
|
+
*
|
|
28967
|
+
* @type {Array<DataTypesSlimGroupedStoreAccess>}
|
|
28968
|
+
* @memberof DataTypesSlimUserRolePermissionsResponse
|
|
28969
|
+
*/
|
|
28970
|
+
'storeAccessGrouped'?: Array<DataTypesSlimGroupedStoreAccess>;
|
|
28971
|
+
/**
|
|
28972
|
+
*
|
|
28973
|
+
* @type {boolean}
|
|
28974
|
+
* @memberof DataTypesSlimUserRolePermissionsResponse
|
|
28975
|
+
*/
|
|
28976
|
+
'useCustomPermissions'?: boolean;
|
|
28977
|
+
/**
|
|
28978
|
+
*
|
|
28979
|
+
* @type {number}
|
|
28980
|
+
* @memberof DataTypesSlimUserRolePermissionsResponse
|
|
28981
|
+
*/
|
|
28982
|
+
'userId'?: number;
|
|
28983
|
+
/**
|
|
28984
|
+
*
|
|
28985
|
+
* @type {number}
|
|
28986
|
+
* @memberof DataTypesSlimUserRolePermissionsResponse
|
|
28987
|
+
*/
|
|
28988
|
+
'userSpecificRoleId'?: number;
|
|
28989
|
+
}
|
|
28381
28990
|
/**
|
|
28382
28991
|
*
|
|
28383
28992
|
* @export
|
|
@@ -31143,55 +31752,6 @@ export interface DataTypesUpdateProfileRequest {
|
|
|
31143
31752
|
*/
|
|
31144
31753
|
'userphone': string;
|
|
31145
31754
|
}
|
|
31146
|
-
/**
|
|
31147
|
-
*
|
|
31148
|
-
* @export
|
|
31149
|
-
* @interface DataTypesUpdateRolePermissionsRequest
|
|
31150
|
-
*/
|
|
31151
|
-
export interface DataTypesUpdateRolePermissionsRequest {
|
|
31152
|
-
/**
|
|
31153
|
-
* Full access to all stores for all users with this role
|
|
31154
|
-
* @type {boolean}
|
|
31155
|
-
* @memberof DataTypesUpdateRolePermissionsRequest
|
|
31156
|
-
*/
|
|
31157
|
-
'allStoresFullAccess'?: boolean;
|
|
31158
|
-
/**
|
|
31159
|
-
* Full access at role level (applies to all stores)
|
|
31160
|
-
* @type {boolean}
|
|
31161
|
-
* @memberof DataTypesUpdateRolePermissionsRequest
|
|
31162
|
-
*/
|
|
31163
|
-
'fullAccess'?: boolean;
|
|
31164
|
-
/**
|
|
31165
|
-
* Org-level menu/route permissions (flat format - for backward compatibility)
|
|
31166
|
-
* @type {Array<DataTypesRoleRightRequestDto>}
|
|
31167
|
-
* @memberof DataTypesUpdateRolePermissionsRequest
|
|
31168
|
-
*/
|
|
31169
|
-
'orgLevelMenus'?: Array<DataTypesRoleRightRequestDto>;
|
|
31170
|
-
/**
|
|
31171
|
-
* Grouped structures (preferred format for frontend)
|
|
31172
|
-
* @type {DataTypesGroupedRolePermissions}
|
|
31173
|
-
* @memberof DataTypesUpdateRolePermissionsRequest
|
|
31174
|
-
*/
|
|
31175
|
-
'orgLevelMenusGrouped'?: DataTypesGroupedRolePermissions;
|
|
31176
|
-
/**
|
|
31177
|
-
*
|
|
31178
|
-
* @type {number}
|
|
31179
|
-
* @memberof DataTypesUpdateRolePermissionsRequest
|
|
31180
|
-
*/
|
|
31181
|
-
'roleId': number;
|
|
31182
|
-
/**
|
|
31183
|
-
* Store-level menu/route permissions (flat format - for backward compatibility)
|
|
31184
|
-
* @type {Array<DataTypesStoreLevelMenuRight>}
|
|
31185
|
-
* @memberof DataTypesUpdateRolePermissionsRequest
|
|
31186
|
-
*/
|
|
31187
|
-
'storeAccess'?: Array<DataTypesStoreLevelMenuRight>;
|
|
31188
|
-
/**
|
|
31189
|
-
* Store-level menus grouped by module and parent
|
|
31190
|
-
* @type {Array<DataTypesGroupedStoreAccess>}
|
|
31191
|
-
* @memberof DataTypesUpdateRolePermissionsRequest
|
|
31192
|
-
*/
|
|
31193
|
-
'storeAccessGrouped'?: Array<DataTypesGroupedStoreAccess>;
|
|
31194
|
-
}
|
|
31195
31755
|
/**
|
|
31196
31756
|
*
|
|
31197
31757
|
* @export
|
|
@@ -31300,55 +31860,6 @@ export const DataTypesUpdateStoreAccessRequestAccessLevelEnum = {
|
|
|
31300
31860
|
|
|
31301
31861
|
export type DataTypesUpdateStoreAccessRequestAccessLevelEnum = typeof DataTypesUpdateStoreAccessRequestAccessLevelEnum[keyof typeof DataTypesUpdateStoreAccessRequestAccessLevelEnum];
|
|
31302
31862
|
|
|
31303
|
-
/**
|
|
31304
|
-
*
|
|
31305
|
-
* @export
|
|
31306
|
-
* @interface DataTypesUpdateUserRolePermissionsRequest
|
|
31307
|
-
*/
|
|
31308
|
-
export interface DataTypesUpdateUserRolePermissionsRequest {
|
|
31309
|
-
/**
|
|
31310
|
-
* Full access to all stores for all users with this role
|
|
31311
|
-
* @type {boolean}
|
|
31312
|
-
* @memberof DataTypesUpdateUserRolePermissionsRequest
|
|
31313
|
-
*/
|
|
31314
|
-
'allStoresFullAccess'?: boolean;
|
|
31315
|
-
/**
|
|
31316
|
-
* Full access at user-specific role level
|
|
31317
|
-
* @type {boolean}
|
|
31318
|
-
* @memberof DataTypesUpdateUserRolePermissionsRequest
|
|
31319
|
-
*/
|
|
31320
|
-
'fullAccess'?: boolean;
|
|
31321
|
-
/**
|
|
31322
|
-
* Org-level menu/route permissions (flat format - for backward compatibility)
|
|
31323
|
-
* @type {Array<DataTypesRoleRightRequestDto>}
|
|
31324
|
-
* @memberof DataTypesUpdateUserRolePermissionsRequest
|
|
31325
|
-
*/
|
|
31326
|
-
'orgLevelMenus'?: Array<DataTypesRoleRightRequestDto>;
|
|
31327
|
-
/**
|
|
31328
|
-
* Grouped structures (preferred format for frontend)
|
|
31329
|
-
* @type {DataTypesGroupedRolePermissions}
|
|
31330
|
-
* @memberof DataTypesUpdateUserRolePermissionsRequest
|
|
31331
|
-
*/
|
|
31332
|
-
'orgLevelMenusGrouped'?: DataTypesGroupedRolePermissions;
|
|
31333
|
-
/**
|
|
31334
|
-
* Store-level menu/route permissions (flat format - for backward compatibility)
|
|
31335
|
-
* @type {Array<DataTypesStoreLevelMenuRight>}
|
|
31336
|
-
* @memberof DataTypesUpdateUserRolePermissionsRequest
|
|
31337
|
-
*/
|
|
31338
|
-
'storeAccess'?: Array<DataTypesStoreLevelMenuRight>;
|
|
31339
|
-
/**
|
|
31340
|
-
* Store-level menus grouped by module and parent
|
|
31341
|
-
* @type {Array<DataTypesGroupedStoreAccess>}
|
|
31342
|
-
* @memberof DataTypesUpdateUserRolePermissionsRequest
|
|
31343
|
-
*/
|
|
31344
|
-
'storeAccessGrouped'?: Array<DataTypesGroupedStoreAccess>;
|
|
31345
|
-
/**
|
|
31346
|
-
*
|
|
31347
|
-
* @type {number}
|
|
31348
|
-
* @memberof DataTypesUpdateUserRolePermissionsRequest
|
|
31349
|
-
*/
|
|
31350
|
-
'userId': number;
|
|
31351
|
-
}
|
|
31352
31863
|
/**
|
|
31353
31864
|
*
|
|
31354
31865
|
* @export
|
|
@@ -31873,91 +32384,6 @@ export interface DataTypesUserResponse {
|
|
|
31873
32384
|
*/
|
|
31874
32385
|
'status'?: number;
|
|
31875
32386
|
}
|
|
31876
|
-
/**
|
|
31877
|
-
*
|
|
31878
|
-
* @export
|
|
31879
|
-
* @interface DataTypesUserRolePermissionsResponse
|
|
31880
|
-
*/
|
|
31881
|
-
export interface DataTypesUserRolePermissionsResponse {
|
|
31882
|
-
/**
|
|
31883
|
-
* Full access to all stores for all users with this role
|
|
31884
|
-
* @type {boolean}
|
|
31885
|
-
* @memberof DataTypesUserRolePermissionsResponse
|
|
31886
|
-
*/
|
|
31887
|
-
'allStoresFullAccess'?: boolean;
|
|
31888
|
-
/**
|
|
31889
|
-
* All menus available to modifying user
|
|
31890
|
-
* @type {Array<DataTypesMenu>}
|
|
31891
|
-
* @memberof DataTypesUserRolePermissionsResponse
|
|
31892
|
-
*/
|
|
31893
|
-
'availableMenus'?: Array<DataTypesMenu>;
|
|
31894
|
-
/**
|
|
31895
|
-
* All stores available to modifying user
|
|
31896
|
-
* @type {Array<DataTypesStore>}
|
|
31897
|
-
* @memberof DataTypesUserRolePermissionsResponse
|
|
31898
|
-
*/
|
|
31899
|
-
'availableStores'?: Array<DataTypesStore>;
|
|
31900
|
-
/**
|
|
31901
|
-
* Full access at user-specific role level
|
|
31902
|
-
* @type {boolean}
|
|
31903
|
-
* @memberof DataTypesUserRolePermissionsResponse
|
|
31904
|
-
*/
|
|
31905
|
-
'fullAccess'?: boolean;
|
|
31906
|
-
/**
|
|
31907
|
-
* Org-level menu/route permissions (flat list - for backward compatibility)
|
|
31908
|
-
* @type {Array<DataTypesRoleRightWithMenu>}
|
|
31909
|
-
* @memberof DataTypesUserRolePermissionsResponse
|
|
31910
|
-
*/
|
|
31911
|
-
'orgLevelMenus'?: Array<DataTypesRoleRightWithMenu>;
|
|
31912
|
-
/**
|
|
31913
|
-
* Grouped structures for frontend display
|
|
31914
|
-
* @type {DataTypesGroupedRolePermissions}
|
|
31915
|
-
* @memberof DataTypesUserRolePermissionsResponse
|
|
31916
|
-
*/
|
|
31917
|
-
'orgLevelMenusGrouped'?: DataTypesGroupedRolePermissions;
|
|
31918
|
-
/**
|
|
31919
|
-
*
|
|
31920
|
-
* @type {number}
|
|
31921
|
-
* @memberof DataTypesUserRolePermissionsResponse
|
|
31922
|
-
*/
|
|
31923
|
-
'roleId'?: number;
|
|
31924
|
-
/**
|
|
31925
|
-
*
|
|
31926
|
-
* @type {string}
|
|
31927
|
-
* @memberof DataTypesUserRolePermissionsResponse
|
|
31928
|
-
*/
|
|
31929
|
-
'roleName'?: string;
|
|
31930
|
-
/**
|
|
31931
|
-
* Store-level menu/route permissions (includes store access fields)
|
|
31932
|
-
* @type {Array<DataTypesStoreLevelMenuRightWithMenu>}
|
|
31933
|
-
* @memberof DataTypesUserRolePermissionsResponse
|
|
31934
|
-
*/
|
|
31935
|
-
'storeAccess'?: Array<DataTypesStoreLevelMenuRightWithMenu>;
|
|
31936
|
-
/**
|
|
31937
|
-
* Store-level menus grouped by module and parent
|
|
31938
|
-
* @type {Array<DataTypesGroupedStoreAccess>}
|
|
31939
|
-
* @memberof DataTypesUserRolePermissionsResponse
|
|
31940
|
-
*/
|
|
31941
|
-
'storeAccessGrouped'?: Array<DataTypesGroupedStoreAccess>;
|
|
31942
|
-
/**
|
|
31943
|
-
*
|
|
31944
|
-
* @type {boolean}
|
|
31945
|
-
* @memberof DataTypesUserRolePermissionsResponse
|
|
31946
|
-
*/
|
|
31947
|
-
'useCustomPermissions'?: boolean;
|
|
31948
|
-
/**
|
|
31949
|
-
*
|
|
31950
|
-
* @type {number}
|
|
31951
|
-
* @memberof DataTypesUserRolePermissionsResponse
|
|
31952
|
-
*/
|
|
31953
|
-
'userId'?: number;
|
|
31954
|
-
/**
|
|
31955
|
-
*
|
|
31956
|
-
* @type {number}
|
|
31957
|
-
* @memberof DataTypesUserRolePermissionsResponse
|
|
31958
|
-
*/
|
|
31959
|
-
'userSpecificRoleId'?: number;
|
|
31960
|
-
}
|
|
31961
32387
|
/**
|
|
31962
32388
|
*
|
|
31963
32389
|
* @export
|
|
@@ -80608,15 +81034,15 @@ export const RolesApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
80608
81034
|
* Updates role permissions with org-level and store-level separation
|
|
80609
81035
|
* @summary Update role permissions
|
|
80610
81036
|
* @param {number} roleId Role ID
|
|
80611
|
-
* @param {
|
|
81037
|
+
* @param {DataTypesSlimUpdateRolePermissionsRequest} dataTypesSlimUpdateRolePermissionsRequest Permission configuration (slim). Also accepts DataTypes.UpdateRolePermissionsRequest (legacy)
|
|
80612
81038
|
* @param {*} [options] Override http request option.
|
|
80613
81039
|
* @throws {RequiredError}
|
|
80614
81040
|
*/
|
|
80615
|
-
adminRolesRoleIdPermissionsPut: async (roleId: number,
|
|
81041
|
+
adminRolesRoleIdPermissionsPut: async (roleId: number, dataTypesSlimUpdateRolePermissionsRequest: DataTypesSlimUpdateRolePermissionsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
80616
81042
|
// verify required parameter 'roleId' is not null or undefined
|
|
80617
81043
|
assertParamExists('adminRolesRoleIdPermissionsPut', 'roleId', roleId)
|
|
80618
|
-
// verify required parameter '
|
|
80619
|
-
assertParamExists('adminRolesRoleIdPermissionsPut', '
|
|
81044
|
+
// verify required parameter 'dataTypesSlimUpdateRolePermissionsRequest' is not null or undefined
|
|
81045
|
+
assertParamExists('adminRolesRoleIdPermissionsPut', 'dataTypesSlimUpdateRolePermissionsRequest', dataTypesSlimUpdateRolePermissionsRequest)
|
|
80620
81046
|
const localVarPath = `/admin/roles/{roleId}/permissions`
|
|
80621
81047
|
.replace(`{${"roleId"}}`, encodeURIComponent(String(roleId)));
|
|
80622
81048
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -80640,7 +81066,7 @@ export const RolesApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
80640
81066
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
80641
81067
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
80642
81068
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
80643
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
81069
|
+
localVarRequestOptions.data = serializeDataIfNeeded(dataTypesSlimUpdateRolePermissionsRequest, localVarRequestOptions, configuration)
|
|
80644
81070
|
|
|
80645
81071
|
return {
|
|
80646
81072
|
url: toPathString(localVarUrlObj),
|
|
@@ -80742,7 +81168,7 @@ export const RolesApiFp = function(configuration?: Configuration) {
|
|
|
80742
81168
|
* @param {*} [options] Override http request option.
|
|
80743
81169
|
* @throws {RequiredError}
|
|
80744
81170
|
*/
|
|
80745
|
-
async adminRolesRoleIdPermissionsGet(roleId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
81171
|
+
async adminRolesRoleIdPermissionsGet(roleId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesSlimRolePermissionsResponse>> {
|
|
80746
81172
|
const localVarAxiosArgs = await localVarAxiosParamCreator.adminRolesRoleIdPermissionsGet(roleId, options);
|
|
80747
81173
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
80748
81174
|
const localVarOperationServerBasePath = operationServerMap['RolesApi.adminRolesRoleIdPermissionsGet']?.[localVarOperationServerIndex]?.url;
|
|
@@ -80752,12 +81178,12 @@ export const RolesApiFp = function(configuration?: Configuration) {
|
|
|
80752
81178
|
* Updates role permissions with org-level and store-level separation
|
|
80753
81179
|
* @summary Update role permissions
|
|
80754
81180
|
* @param {number} roleId Role ID
|
|
80755
|
-
* @param {
|
|
81181
|
+
* @param {DataTypesSlimUpdateRolePermissionsRequest} dataTypesSlimUpdateRolePermissionsRequest Permission configuration (slim). Also accepts DataTypes.UpdateRolePermissionsRequest (legacy)
|
|
80756
81182
|
* @param {*} [options] Override http request option.
|
|
80757
81183
|
* @throws {RequiredError}
|
|
80758
81184
|
*/
|
|
80759
|
-
async adminRolesRoleIdPermissionsPut(roleId: number,
|
|
80760
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.adminRolesRoleIdPermissionsPut(roleId,
|
|
81185
|
+
async adminRolesRoleIdPermissionsPut(roleId: number, dataTypesSlimUpdateRolePermissionsRequest: DataTypesSlimUpdateRolePermissionsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
|
|
81186
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminRolesRoleIdPermissionsPut(roleId, dataTypesSlimUpdateRolePermissionsRequest, options);
|
|
80761
81187
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
80762
81188
|
const localVarOperationServerBasePath = operationServerMap['RolesApi.adminRolesRoleIdPermissionsPut']?.[localVarOperationServerIndex]?.url;
|
|
80763
81189
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -80839,19 +81265,19 @@ export const RolesApiFactory = function (configuration?: Configuration, basePath
|
|
|
80839
81265
|
* @param {*} [options] Override http request option.
|
|
80840
81266
|
* @throws {RequiredError}
|
|
80841
81267
|
*/
|
|
80842
|
-
adminRolesRoleIdPermissionsGet(roleId: number, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
81268
|
+
adminRolesRoleIdPermissionsGet(roleId: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesSlimRolePermissionsResponse> {
|
|
80843
81269
|
return localVarFp.adminRolesRoleIdPermissionsGet(roleId, options).then((request) => request(axios, basePath));
|
|
80844
81270
|
},
|
|
80845
81271
|
/**
|
|
80846
81272
|
* Updates role permissions with org-level and store-level separation
|
|
80847
81273
|
* @summary Update role permissions
|
|
80848
81274
|
* @param {number} roleId Role ID
|
|
80849
|
-
* @param {
|
|
81275
|
+
* @param {DataTypesSlimUpdateRolePermissionsRequest} dataTypesSlimUpdateRolePermissionsRequest Permission configuration (slim). Also accepts DataTypes.UpdateRolePermissionsRequest (legacy)
|
|
80850
81276
|
* @param {*} [options] Override http request option.
|
|
80851
81277
|
* @throws {RequiredError}
|
|
80852
81278
|
*/
|
|
80853
|
-
adminRolesRoleIdPermissionsPut(roleId: number,
|
|
80854
|
-
return localVarFp.adminRolesRoleIdPermissionsPut(roleId,
|
|
81279
|
+
adminRolesRoleIdPermissionsPut(roleId: number, dataTypesSlimUpdateRolePermissionsRequest: DataTypesSlimUpdateRolePermissionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
|
|
81280
|
+
return localVarFp.adminRolesRoleIdPermissionsPut(roleId, dataTypesSlimUpdateRolePermissionsRequest, options).then((request) => request(axios, basePath));
|
|
80855
81281
|
},
|
|
80856
81282
|
};
|
|
80857
81283
|
};
|
|
@@ -80951,13 +81377,13 @@ export class RolesApi extends BaseAPI {
|
|
|
80951
81377
|
* Updates role permissions with org-level and store-level separation
|
|
80952
81378
|
* @summary Update role permissions
|
|
80953
81379
|
* @param {number} roleId Role ID
|
|
80954
|
-
* @param {
|
|
81380
|
+
* @param {DataTypesSlimUpdateRolePermissionsRequest} dataTypesSlimUpdateRolePermissionsRequest Permission configuration (slim). Also accepts DataTypes.UpdateRolePermissionsRequest (legacy)
|
|
80955
81381
|
* @param {*} [options] Override http request option.
|
|
80956
81382
|
* @throws {RequiredError}
|
|
80957
81383
|
* @memberof RolesApi
|
|
80958
81384
|
*/
|
|
80959
|
-
public adminRolesRoleIdPermissionsPut(roleId: number,
|
|
80960
|
-
return RolesApiFp(this.configuration).adminRolesRoleIdPermissionsPut(roleId,
|
|
81385
|
+
public adminRolesRoleIdPermissionsPut(roleId: number, dataTypesSlimUpdateRolePermissionsRequest: DataTypesSlimUpdateRolePermissionsRequest, options?: RawAxiosRequestConfig) {
|
|
81386
|
+
return RolesApiFp(this.configuration).adminRolesRoleIdPermissionsPut(roleId, dataTypesSlimUpdateRolePermissionsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
80961
81387
|
}
|
|
80962
81388
|
}
|
|
80963
81389
|
|
|
@@ -90795,15 +91221,15 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
90795
91221
|
* Updates user-specific role permissions with org-level and store-level separation
|
|
90796
91222
|
* @summary Update user-specific role permissions
|
|
90797
91223
|
* @param {number} userId User ID
|
|
90798
|
-
* @param {
|
|
91224
|
+
* @param {DataTypesSlimUpdateUserRolePermissionsRequest} dataTypesSlimUpdateUserRolePermissionsRequest Permission configuration (slim). Also accepts DataTypes.UpdateUserRolePermissionsRequest (legacy)
|
|
90799
91225
|
* @param {*} [options] Override http request option.
|
|
90800
91226
|
* @throws {RequiredError}
|
|
90801
91227
|
*/
|
|
90802
|
-
adminUsersUserIdPermissionsRolePut: async (userId: number,
|
|
91228
|
+
adminUsersUserIdPermissionsRolePut: async (userId: number, dataTypesSlimUpdateUserRolePermissionsRequest: DataTypesSlimUpdateUserRolePermissionsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
90803
91229
|
// verify required parameter 'userId' is not null or undefined
|
|
90804
91230
|
assertParamExists('adminUsersUserIdPermissionsRolePut', 'userId', userId)
|
|
90805
|
-
// verify required parameter '
|
|
90806
|
-
assertParamExists('adminUsersUserIdPermissionsRolePut', '
|
|
91231
|
+
// verify required parameter 'dataTypesSlimUpdateUserRolePermissionsRequest' is not null or undefined
|
|
91232
|
+
assertParamExists('adminUsersUserIdPermissionsRolePut', 'dataTypesSlimUpdateUserRolePermissionsRequest', dataTypesSlimUpdateUserRolePermissionsRequest)
|
|
90807
91233
|
const localVarPath = `/admin/users/{userId}/permissions/role`
|
|
90808
91234
|
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
90809
91235
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -90827,7 +91253,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
90827
91253
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
90828
91254
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
90829
91255
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
90830
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
91256
|
+
localVarRequestOptions.data = serializeDataIfNeeded(dataTypesSlimUpdateUserRolePermissionsRequest, localVarRequestOptions, configuration)
|
|
90831
91257
|
|
|
90832
91258
|
return {
|
|
90833
91259
|
url: toPathString(localVarUrlObj),
|
|
@@ -90984,7 +91410,7 @@ export const UserApiFp = function(configuration?: Configuration) {
|
|
|
90984
91410
|
* @param {*} [options] Override http request option.
|
|
90985
91411
|
* @throws {RequiredError}
|
|
90986
91412
|
*/
|
|
90987
|
-
async adminUsersUserIdPermissionsRoleGet(userId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
91413
|
+
async adminUsersUserIdPermissionsRoleGet(userId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesSlimUserRolePermissionsResponse>> {
|
|
90988
91414
|
const localVarAxiosArgs = await localVarAxiosParamCreator.adminUsersUserIdPermissionsRoleGet(userId, options);
|
|
90989
91415
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
90990
91416
|
const localVarOperationServerBasePath = operationServerMap['UserApi.adminUsersUserIdPermissionsRoleGet']?.[localVarOperationServerIndex]?.url;
|
|
@@ -90994,12 +91420,12 @@ export const UserApiFp = function(configuration?: Configuration) {
|
|
|
90994
91420
|
* Updates user-specific role permissions with org-level and store-level separation
|
|
90995
91421
|
* @summary Update user-specific role permissions
|
|
90996
91422
|
* @param {number} userId User ID
|
|
90997
|
-
* @param {
|
|
91423
|
+
* @param {DataTypesSlimUpdateUserRolePermissionsRequest} dataTypesSlimUpdateUserRolePermissionsRequest Permission configuration (slim). Also accepts DataTypes.UpdateUserRolePermissionsRequest (legacy)
|
|
90998
91424
|
* @param {*} [options] Override http request option.
|
|
90999
91425
|
* @throws {RequiredError}
|
|
91000
91426
|
*/
|
|
91001
|
-
async adminUsersUserIdPermissionsRolePut(userId: number,
|
|
91002
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.adminUsersUserIdPermissionsRolePut(userId,
|
|
91427
|
+
async adminUsersUserIdPermissionsRolePut(userId: number, dataTypesSlimUpdateUserRolePermissionsRequest: DataTypesSlimUpdateUserRolePermissionsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
|
|
91428
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminUsersUserIdPermissionsRolePut(userId, dataTypesSlimUpdateUserRolePermissionsRequest, options);
|
|
91003
91429
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
91004
91430
|
const localVarOperationServerBasePath = operationServerMap['UserApi.adminUsersUserIdPermissionsRolePut']?.[localVarOperationServerIndex]?.url;
|
|
91005
91431
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -91124,19 +91550,19 @@ export const UserApiFactory = function (configuration?: Configuration, basePath?
|
|
|
91124
91550
|
* @param {*} [options] Override http request option.
|
|
91125
91551
|
* @throws {RequiredError}
|
|
91126
91552
|
*/
|
|
91127
|
-
adminUsersUserIdPermissionsRoleGet(userId: number, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
91553
|
+
adminUsersUserIdPermissionsRoleGet(userId: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesSlimUserRolePermissionsResponse> {
|
|
91128
91554
|
return localVarFp.adminUsersUserIdPermissionsRoleGet(userId, options).then((request) => request(axios, basePath));
|
|
91129
91555
|
},
|
|
91130
91556
|
/**
|
|
91131
91557
|
* Updates user-specific role permissions with org-level and store-level separation
|
|
91132
91558
|
* @summary Update user-specific role permissions
|
|
91133
91559
|
* @param {number} userId User ID
|
|
91134
|
-
* @param {
|
|
91560
|
+
* @param {DataTypesSlimUpdateUserRolePermissionsRequest} dataTypesSlimUpdateUserRolePermissionsRequest Permission configuration (slim). Also accepts DataTypes.UpdateUserRolePermissionsRequest (legacy)
|
|
91135
91561
|
* @param {*} [options] Override http request option.
|
|
91136
91562
|
* @throws {RequiredError}
|
|
91137
91563
|
*/
|
|
91138
|
-
adminUsersUserIdPermissionsRolePut(userId: number,
|
|
91139
|
-
return localVarFp.adminUsersUserIdPermissionsRolePut(userId,
|
|
91564
|
+
adminUsersUserIdPermissionsRolePut(userId: number, dataTypesSlimUpdateUserRolePermissionsRequest: DataTypesSlimUpdateUserRolePermissionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
|
|
91565
|
+
return localVarFp.adminUsersUserIdPermissionsRolePut(userId, dataTypesSlimUpdateUserRolePermissionsRequest, options).then((request) => request(axios, basePath));
|
|
91140
91566
|
},
|
|
91141
91567
|
};
|
|
91142
91568
|
};
|
|
@@ -91287,13 +91713,13 @@ export class UserApi extends BaseAPI {
|
|
|
91287
91713
|
* Updates user-specific role permissions with org-level and store-level separation
|
|
91288
91714
|
* @summary Update user-specific role permissions
|
|
91289
91715
|
* @param {number} userId User ID
|
|
91290
|
-
* @param {
|
|
91716
|
+
* @param {DataTypesSlimUpdateUserRolePermissionsRequest} dataTypesSlimUpdateUserRolePermissionsRequest Permission configuration (slim). Also accepts DataTypes.UpdateUserRolePermissionsRequest (legacy)
|
|
91291
91717
|
* @param {*} [options] Override http request option.
|
|
91292
91718
|
* @throws {RequiredError}
|
|
91293
91719
|
* @memberof UserApi
|
|
91294
91720
|
*/
|
|
91295
|
-
public adminUsersUserIdPermissionsRolePut(userId: number,
|
|
91296
|
-
return UserApiFp(this.configuration).adminUsersUserIdPermissionsRolePut(userId,
|
|
91721
|
+
public adminUsersUserIdPermissionsRolePut(userId: number, dataTypesSlimUpdateUserRolePermissionsRequest: DataTypesSlimUpdateUserRolePermissionsRequest, options?: RawAxiosRequestConfig) {
|
|
91722
|
+
return UserApiFp(this.configuration).adminUsersUserIdPermissionsRolePut(userId, dataTypesSlimUpdateUserRolePermissionsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
91297
91723
|
}
|
|
91298
91724
|
}
|
|
91299
91725
|
|