@flipdish/authorization 0.1.4 → 0.1.5
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 +273 -0
- package/configuration.ts +1 -1
- package/dist/api.d.ts +224 -10
- package/dist/api.js +265 -1
- package/dist/common.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -550,6 +550,18 @@ export interface GetPrincipalRolesSuccessResponseRolesInner {
|
|
|
550
550
|
* @memberof GetPrincipalRolesSuccessResponseRolesInner
|
|
551
551
|
*/
|
|
552
552
|
'salesChannelId'?: string;
|
|
553
|
+
/**
|
|
554
|
+
* Principal ID this role is assigned to
|
|
555
|
+
* @type {string}
|
|
556
|
+
* @memberof GetPrincipalRolesSuccessResponseRolesInner
|
|
557
|
+
*/
|
|
558
|
+
'principalId': string;
|
|
559
|
+
/**
|
|
560
|
+
* Type of principal this role is assigned to
|
|
561
|
+
* @type {string}
|
|
562
|
+
* @memberof GetPrincipalRolesSuccessResponseRolesInner
|
|
563
|
+
*/
|
|
564
|
+
'principalType': GetPrincipalRolesSuccessResponseRolesInnerPrincipalTypeEnum;
|
|
553
565
|
}
|
|
554
566
|
|
|
555
567
|
export const GetPrincipalRolesSuccessResponseRolesInnerPolicyTypeEnum = {
|
|
@@ -568,6 +580,12 @@ export const GetPrincipalRolesSuccessResponseRolesInnerResourceTypeEnum = {
|
|
|
568
580
|
} as const;
|
|
569
581
|
|
|
570
582
|
export type GetPrincipalRolesSuccessResponseRolesInnerResourceTypeEnum = typeof GetPrincipalRolesSuccessResponseRolesInnerResourceTypeEnum[keyof typeof GetPrincipalRolesSuccessResponseRolesInnerResourceTypeEnum];
|
|
583
|
+
export const GetPrincipalRolesSuccessResponseRolesInnerPrincipalTypeEnum = {
|
|
584
|
+
User: 'User',
|
|
585
|
+
Automation: 'Automation'
|
|
586
|
+
} as const;
|
|
587
|
+
|
|
588
|
+
export type GetPrincipalRolesSuccessResponseRolesInnerPrincipalTypeEnum = typeof GetPrincipalRolesSuccessResponseRolesInnerPrincipalTypeEnum[keyof typeof GetPrincipalRolesSuccessResponseRolesInnerPrincipalTypeEnum];
|
|
571
589
|
|
|
572
590
|
/**
|
|
573
591
|
* Role name
|
|
@@ -872,6 +890,117 @@ export type GetUserPermissionsSuccessResponseResourcesValuePermissionsEnum = typ
|
|
|
872
890
|
*/
|
|
873
891
|
export interface GetUserPermissionsSuccessResponseResourcesValueResourceId {
|
|
874
892
|
}
|
|
893
|
+
/**
|
|
894
|
+
*
|
|
895
|
+
* @export
|
|
896
|
+
* @interface ListOrgRolesSuccessResponseValueValue
|
|
897
|
+
*/
|
|
898
|
+
export interface ListOrgRolesSuccessResponseValueValue {
|
|
899
|
+
/**
|
|
900
|
+
* Type of resource the permissions are assigned to
|
|
901
|
+
* @type {string}
|
|
902
|
+
* @memberof ListOrgRolesSuccessResponseValueValue
|
|
903
|
+
*/
|
|
904
|
+
'resourceType': ListOrgRolesSuccessResponseValueValueResourceTypeEnum;
|
|
905
|
+
/**
|
|
906
|
+
*
|
|
907
|
+
* @type {GetUserPermissionsSuccessResponseResourcesValueResourceId}
|
|
908
|
+
* @memberof ListOrgRolesSuccessResponseValueValue
|
|
909
|
+
*/
|
|
910
|
+
'resourceId': GetUserPermissionsSuccessResponseResourcesValueResourceId;
|
|
911
|
+
/**
|
|
912
|
+
* List of roles that are assigned to the user for the resource
|
|
913
|
+
* @type {Array<string>}
|
|
914
|
+
* @memberof ListOrgRolesSuccessResponseValueValue
|
|
915
|
+
*/
|
|
916
|
+
'roles': Array<ListOrgRolesSuccessResponseValueValueRolesEnum>;
|
|
917
|
+
}
|
|
918
|
+
|
|
919
|
+
export const ListOrgRolesSuccessResponseValueValueResourceTypeEnum = {
|
|
920
|
+
Property: 'Property',
|
|
921
|
+
Org: 'Org',
|
|
922
|
+
Brand: 'Brand',
|
|
923
|
+
SalesChannel: 'SalesChannel'
|
|
924
|
+
} as const;
|
|
925
|
+
|
|
926
|
+
export type ListOrgRolesSuccessResponseValueValueResourceTypeEnum = typeof ListOrgRolesSuccessResponseValueValueResourceTypeEnum[keyof typeof ListOrgRolesSuccessResponseValueValueResourceTypeEnum];
|
|
927
|
+
export const ListOrgRolesSuccessResponseValueValueRolesEnum = {
|
|
928
|
+
OrgViewer: 'OrgViewer',
|
|
929
|
+
OrgManager: 'OrgManager',
|
|
930
|
+
OrgAdmin: 'OrgAdmin',
|
|
931
|
+
BrandViewer: 'BrandViewer',
|
|
932
|
+
BrandManager: 'BrandManager',
|
|
933
|
+
BrandAdmin: 'BrandAdmin',
|
|
934
|
+
StoreViewer: 'StoreViewer',
|
|
935
|
+
StoreEditor: 'StoreEditor',
|
|
936
|
+
StoreManager: 'StoreManager',
|
|
937
|
+
CustomerViewer: 'CustomerViewer',
|
|
938
|
+
CustomerManager: 'CustomerManager',
|
|
939
|
+
VoucherViewer: 'VoucherViewer',
|
|
940
|
+
VoucherEditor: 'VoucherEditor',
|
|
941
|
+
VoucherManager: 'VoucherManager',
|
|
942
|
+
VoucherCampaignManager: 'VoucherCampaignManager',
|
|
943
|
+
VoucherStatisticsViewer: 'VoucherStatisticsViewer',
|
|
944
|
+
AnalyticsViewer: 'AnalyticsViewer',
|
|
945
|
+
ReportsViewer: 'ReportsViewer',
|
|
946
|
+
FinanceViewer: 'FinanceViewer',
|
|
947
|
+
FinanceManager: 'FinanceManager',
|
|
948
|
+
TeamViewer: 'TeamViewer',
|
|
949
|
+
TeamManager: 'TeamManager',
|
|
950
|
+
TeamAdmin: 'TeamAdmin',
|
|
951
|
+
TechViewer: 'TechViewer',
|
|
952
|
+
TechManager: 'TechManager',
|
|
953
|
+
AppStoreViewer: 'AppStoreViewer',
|
|
954
|
+
AppStoreManager: 'AppStoreManager',
|
|
955
|
+
SalesChannelViewer: 'SalesChannelViewer',
|
|
956
|
+
SalesChannelEditor: 'SalesChannelEditor',
|
|
957
|
+
SalesChannelManager: 'SalesChannelManager',
|
|
958
|
+
DeliveryViewer: 'DeliveryViewer',
|
|
959
|
+
DeliveryManager: 'DeliveryManager',
|
|
960
|
+
DriverManager: 'DriverManager',
|
|
961
|
+
AuditViewer: 'AuditViewer',
|
|
962
|
+
AuditManager: 'AuditManager',
|
|
963
|
+
AccountsViewer: 'AccountsViewer',
|
|
964
|
+
AccountsEditor: 'AccountsEditor',
|
|
965
|
+
DocumentExplorerViewer: 'DocumentExplorerViewer',
|
|
966
|
+
DocumentExplorerEditor: 'DocumentExplorerEditor',
|
|
967
|
+
PayrollViewer: 'PayrollViewer',
|
|
968
|
+
PayrollEditor: 'PayrollEditor',
|
|
969
|
+
PropertyViewer: 'PropertyViewer',
|
|
970
|
+
PropertyManager: 'PropertyManager',
|
|
971
|
+
PropertyAdmin: 'PropertyAdmin',
|
|
972
|
+
WebsiteContentEditor: 'WebsiteContentEditor',
|
|
973
|
+
WebsiteContentViewer: 'WebsiteContentViewer',
|
|
974
|
+
WebsiteTechViewer: 'WebsiteTechViewer',
|
|
975
|
+
MenuViewer: 'MenuViewer',
|
|
976
|
+
MenuEditor: 'MenuEditor',
|
|
977
|
+
MenuManager: 'MenuManager',
|
|
978
|
+
MenuMetaFieldManager: 'MenuMetaFieldManager',
|
|
979
|
+
MenuMetaFieldEditor: 'MenuMetaFieldEditor',
|
|
980
|
+
MenuMetaFieldViewer: 'MenuMetaFieldViewer',
|
|
981
|
+
StoreDeliveryZoneManager: 'StoreDeliveryZoneManager',
|
|
982
|
+
StoreDeliveryZoneEditor: 'StoreDeliveryZoneEditor',
|
|
983
|
+
StoreDeliveryZoneViewer: 'StoreDeliveryZoneViewer',
|
|
984
|
+
OrderFulfillmentManager: 'OrderFulfillmentManager',
|
|
985
|
+
OrderManager: 'OrderManager',
|
|
986
|
+
OrderEditor: 'OrderEditor',
|
|
987
|
+
OrderViewer: 'OrderViewer',
|
|
988
|
+
InventoryManager: 'InventoryManager',
|
|
989
|
+
InventoryEditor: 'InventoryEditor',
|
|
990
|
+
InventoryViewer: 'InventoryViewer',
|
|
991
|
+
PaymentManager: 'PaymentManager',
|
|
992
|
+
OnboardingManager: 'OnboardingManager',
|
|
993
|
+
FeatureFlagManager: 'FeatureFlagManager',
|
|
994
|
+
PropertyOwnerMisc: 'PropertyOwnerMisc',
|
|
995
|
+
ManagedOwnerMisc: 'ManagedOwnerMisc',
|
|
996
|
+
IntegratorMisc: 'IntegratorMisc',
|
|
997
|
+
PropertyManagerMisc: 'PropertyManagerMisc',
|
|
998
|
+
FinanceManagerMisc: 'FinanceManagerMisc',
|
|
999
|
+
SupportMisc: 'SupportMisc'
|
|
1000
|
+
} as const;
|
|
1001
|
+
|
|
1002
|
+
export type ListOrgRolesSuccessResponseValueValueRolesEnum = typeof ListOrgRolesSuccessResponseValueValueRolesEnum[keyof typeof ListOrgRolesSuccessResponseValueValueRolesEnum];
|
|
1003
|
+
|
|
875
1004
|
/**
|
|
876
1005
|
*
|
|
877
1006
|
* @export
|
|
@@ -2102,6 +2231,80 @@ export class RoleAssignmentApi extends BaseAPI {
|
|
|
2102
2231
|
*/
|
|
2103
2232
|
export const UserPermissionsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
2104
2233
|
return {
|
|
2234
|
+
/**
|
|
2235
|
+
* List the available permissions for the current user
|
|
2236
|
+
* @summary List Org Permissions
|
|
2237
|
+
* @param {string} orgId
|
|
2238
|
+
* @param {*} [options] Override http request option.
|
|
2239
|
+
* @throws {RequiredError}
|
|
2240
|
+
*/
|
|
2241
|
+
listOrgPermissions: async (orgId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2242
|
+
// verify required parameter 'orgId' is not null or undefined
|
|
2243
|
+
assertParamExists('listOrgPermissions', 'orgId', orgId)
|
|
2244
|
+
const localVarPath = `/orgs/{orgId}/permissions`
|
|
2245
|
+
.replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)));
|
|
2246
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2247
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2248
|
+
let baseOptions;
|
|
2249
|
+
if (configuration) {
|
|
2250
|
+
baseOptions = configuration.baseOptions;
|
|
2251
|
+
}
|
|
2252
|
+
|
|
2253
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
2254
|
+
const localVarHeaderParameter = {} as any;
|
|
2255
|
+
const localVarQueryParameter = {} as any;
|
|
2256
|
+
|
|
2257
|
+
// authentication ApiKeyAuth required
|
|
2258
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
2259
|
+
|
|
2260
|
+
|
|
2261
|
+
|
|
2262
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2263
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2264
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2265
|
+
|
|
2266
|
+
return {
|
|
2267
|
+
url: toPathString(localVarUrlObj),
|
|
2268
|
+
options: localVarRequestOptions,
|
|
2269
|
+
};
|
|
2270
|
+
},
|
|
2271
|
+
/**
|
|
2272
|
+
* List the available roles for the current user
|
|
2273
|
+
* @summary List Org Roles
|
|
2274
|
+
* @param {string} orgId
|
|
2275
|
+
* @param {*} [options] Override http request option.
|
|
2276
|
+
* @throws {RequiredError}
|
|
2277
|
+
*/
|
|
2278
|
+
listOrgRoles: async (orgId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2279
|
+
// verify required parameter 'orgId' is not null or undefined
|
|
2280
|
+
assertParamExists('listOrgRoles', 'orgId', orgId)
|
|
2281
|
+
const localVarPath = `/orgs/{orgId}/roles`
|
|
2282
|
+
.replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)));
|
|
2283
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2284
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2285
|
+
let baseOptions;
|
|
2286
|
+
if (configuration) {
|
|
2287
|
+
baseOptions = configuration.baseOptions;
|
|
2288
|
+
}
|
|
2289
|
+
|
|
2290
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
2291
|
+
const localVarHeaderParameter = {} as any;
|
|
2292
|
+
const localVarQueryParameter = {} as any;
|
|
2293
|
+
|
|
2294
|
+
// authentication ApiKeyAuth required
|
|
2295
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
2296
|
+
|
|
2297
|
+
|
|
2298
|
+
|
|
2299
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2300
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2301
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2302
|
+
|
|
2303
|
+
return {
|
|
2304
|
+
url: toPathString(localVarUrlObj),
|
|
2305
|
+
options: localVarRequestOptions,
|
|
2306
|
+
};
|
|
2307
|
+
},
|
|
2105
2308
|
/**
|
|
2106
2309
|
* List the available permissions for the current user
|
|
2107
2310
|
* @summary List Own Permissions
|
|
@@ -2190,6 +2393,32 @@ export const UserPermissionsApiAxiosParamCreator = function (configuration?: Con
|
|
|
2190
2393
|
export const UserPermissionsApiFp = function(configuration?: Configuration) {
|
|
2191
2394
|
const localVarAxiosParamCreator = UserPermissionsApiAxiosParamCreator(configuration)
|
|
2192
2395
|
return {
|
|
2396
|
+
/**
|
|
2397
|
+
* List the available permissions for the current user
|
|
2398
|
+
* @summary List Org Permissions
|
|
2399
|
+
* @param {string} orgId
|
|
2400
|
+
* @param {*} [options] Override http request option.
|
|
2401
|
+
* @throws {RequiredError}
|
|
2402
|
+
*/
|
|
2403
|
+
async listOrgPermissions(orgId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{ [key: string]: { [key: string]: GetUserPermissionsSuccessResponseResourcesValue; }; }>> {
|
|
2404
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listOrgPermissions(orgId, options);
|
|
2405
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2406
|
+
const localVarOperationServerBasePath = operationServerMap['UserPermissionsApi.listOrgPermissions']?.[localVarOperationServerIndex]?.url;
|
|
2407
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2408
|
+
},
|
|
2409
|
+
/**
|
|
2410
|
+
* List the available roles for the current user
|
|
2411
|
+
* @summary List Org Roles
|
|
2412
|
+
* @param {string} orgId
|
|
2413
|
+
* @param {*} [options] Override http request option.
|
|
2414
|
+
* @throws {RequiredError}
|
|
2415
|
+
*/
|
|
2416
|
+
async listOrgRoles(orgId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{ [key: string]: { [key: string]: ListOrgRolesSuccessResponseValueValue; }; }>> {
|
|
2417
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listOrgRoles(orgId, options);
|
|
2418
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2419
|
+
const localVarOperationServerBasePath = operationServerMap['UserPermissionsApi.listOrgRoles']?.[localVarOperationServerIndex]?.url;
|
|
2420
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2421
|
+
},
|
|
2193
2422
|
/**
|
|
2194
2423
|
* List the available permissions for the current user
|
|
2195
2424
|
* @summary List Own Permissions
|
|
@@ -2227,6 +2456,26 @@ export const UserPermissionsApiFp = function(configuration?: Configuration) {
|
|
|
2227
2456
|
export const UserPermissionsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
2228
2457
|
const localVarFp = UserPermissionsApiFp(configuration)
|
|
2229
2458
|
return {
|
|
2459
|
+
/**
|
|
2460
|
+
* List the available permissions for the current user
|
|
2461
|
+
* @summary List Org Permissions
|
|
2462
|
+
* @param {string} orgId
|
|
2463
|
+
* @param {*} [options] Override http request option.
|
|
2464
|
+
* @throws {RequiredError}
|
|
2465
|
+
*/
|
|
2466
|
+
listOrgPermissions(orgId: string, options?: RawAxiosRequestConfig): AxiosPromise<{ [key: string]: { [key: string]: GetUserPermissionsSuccessResponseResourcesValue; }; }> {
|
|
2467
|
+
return localVarFp.listOrgPermissions(orgId, options).then((request) => request(axios, basePath));
|
|
2468
|
+
},
|
|
2469
|
+
/**
|
|
2470
|
+
* List the available roles for the current user
|
|
2471
|
+
* @summary List Org Roles
|
|
2472
|
+
* @param {string} orgId
|
|
2473
|
+
* @param {*} [options] Override http request option.
|
|
2474
|
+
* @throws {RequiredError}
|
|
2475
|
+
*/
|
|
2476
|
+
listOrgRoles(orgId: string, options?: RawAxiosRequestConfig): AxiosPromise<{ [key: string]: { [key: string]: ListOrgRolesSuccessResponseValueValue; }; }> {
|
|
2477
|
+
return localVarFp.listOrgRoles(orgId, options).then((request) => request(axios, basePath));
|
|
2478
|
+
},
|
|
2230
2479
|
/**
|
|
2231
2480
|
* List the available permissions for the current user
|
|
2232
2481
|
* @summary List Own Permissions
|
|
@@ -2258,6 +2507,30 @@ export const UserPermissionsApiFactory = function (configuration?: Configuration
|
|
|
2258
2507
|
* @extends {BaseAPI}
|
|
2259
2508
|
*/
|
|
2260
2509
|
export class UserPermissionsApi extends BaseAPI {
|
|
2510
|
+
/**
|
|
2511
|
+
* List the available permissions for the current user
|
|
2512
|
+
* @summary List Org Permissions
|
|
2513
|
+
* @param {string} orgId
|
|
2514
|
+
* @param {*} [options] Override http request option.
|
|
2515
|
+
* @throws {RequiredError}
|
|
2516
|
+
* @memberof UserPermissionsApi
|
|
2517
|
+
*/
|
|
2518
|
+
public listOrgPermissions(orgId: string, options?: RawAxiosRequestConfig) {
|
|
2519
|
+
return UserPermissionsApiFp(this.configuration).listOrgPermissions(orgId, options).then((request) => request(this.axios, this.basePath));
|
|
2520
|
+
}
|
|
2521
|
+
|
|
2522
|
+
/**
|
|
2523
|
+
* List the available roles for the current user
|
|
2524
|
+
* @summary List Org Roles
|
|
2525
|
+
* @param {string} orgId
|
|
2526
|
+
* @param {*} [options] Override http request option.
|
|
2527
|
+
* @throws {RequiredError}
|
|
2528
|
+
* @memberof UserPermissionsApi
|
|
2529
|
+
*/
|
|
2530
|
+
public listOrgRoles(orgId: string, options?: RawAxiosRequestConfig) {
|
|
2531
|
+
return UserPermissionsApiFp(this.configuration).listOrgRoles(orgId, options).then((request) => request(this.axios, this.basePath));
|
|
2532
|
+
}
|
|
2533
|
+
|
|
2261
2534
|
/**
|
|
2262
2535
|
* List the available permissions for the current user
|
|
2263
2536
|
* @summary List Own Permissions
|
package/configuration.ts
CHANGED
|
@@ -100,7 +100,7 @@ export class Configuration {
|
|
|
100
100
|
|
|
101
101
|
const extraHeaders = param.useDefaultUserAgent ? {} : {
|
|
102
102
|
headers: {
|
|
103
|
-
"user-agent": "Flipdish authorization typescript SDK / 0.1.
|
|
103
|
+
"user-agent": "Flipdish authorization typescript SDK / 0.1.5"
|
|
104
104
|
}
|
|
105
105
|
};
|
|
106
106
|
|
package/dist/api.d.ts
CHANGED
|
@@ -523,6 +523,18 @@ export interface GetPrincipalRolesSuccessResponseRolesInner {
|
|
|
523
523
|
* @memberof GetPrincipalRolesSuccessResponseRolesInner
|
|
524
524
|
*/
|
|
525
525
|
'salesChannelId'?: string;
|
|
526
|
+
/**
|
|
527
|
+
* Principal ID this role is assigned to
|
|
528
|
+
* @type {string}
|
|
529
|
+
* @memberof GetPrincipalRolesSuccessResponseRolesInner
|
|
530
|
+
*/
|
|
531
|
+
'principalId': string;
|
|
532
|
+
/**
|
|
533
|
+
* Type of principal this role is assigned to
|
|
534
|
+
* @type {string}
|
|
535
|
+
* @memberof GetPrincipalRolesSuccessResponseRolesInner
|
|
536
|
+
*/
|
|
537
|
+
'principalType': GetPrincipalRolesSuccessResponseRolesInnerPrincipalTypeEnum;
|
|
526
538
|
}
|
|
527
539
|
export declare const GetPrincipalRolesSuccessResponseRolesInnerPolicyTypeEnum: {
|
|
528
540
|
readonly Main: "Main";
|
|
@@ -538,6 +550,11 @@ export declare const GetPrincipalRolesSuccessResponseRolesInnerResourceTypeEnum:
|
|
|
538
550
|
readonly SalesChannel: "SalesChannel";
|
|
539
551
|
};
|
|
540
552
|
export type GetPrincipalRolesSuccessResponseRolesInnerResourceTypeEnum = typeof GetPrincipalRolesSuccessResponseRolesInnerResourceTypeEnum[keyof typeof GetPrincipalRolesSuccessResponseRolesInnerResourceTypeEnum];
|
|
553
|
+
export declare const GetPrincipalRolesSuccessResponseRolesInnerPrincipalTypeEnum: {
|
|
554
|
+
readonly User: "User";
|
|
555
|
+
readonly Automation: "Automation";
|
|
556
|
+
};
|
|
557
|
+
export type GetPrincipalRolesSuccessResponseRolesInnerPrincipalTypeEnum = typeof GetPrincipalRolesSuccessResponseRolesInnerPrincipalTypeEnum[keyof typeof GetPrincipalRolesSuccessResponseRolesInnerPrincipalTypeEnum];
|
|
541
558
|
/**
|
|
542
559
|
* Role name
|
|
543
560
|
* @export
|
|
@@ -839,6 +856,113 @@ export type GetUserPermissionsSuccessResponseResourcesValuePermissionsEnum = typ
|
|
|
839
856
|
*/
|
|
840
857
|
export interface GetUserPermissionsSuccessResponseResourcesValueResourceId {
|
|
841
858
|
}
|
|
859
|
+
/**
|
|
860
|
+
*
|
|
861
|
+
* @export
|
|
862
|
+
* @interface ListOrgRolesSuccessResponseValueValue
|
|
863
|
+
*/
|
|
864
|
+
export interface ListOrgRolesSuccessResponseValueValue {
|
|
865
|
+
/**
|
|
866
|
+
* Type of resource the permissions are assigned to
|
|
867
|
+
* @type {string}
|
|
868
|
+
* @memberof ListOrgRolesSuccessResponseValueValue
|
|
869
|
+
*/
|
|
870
|
+
'resourceType': ListOrgRolesSuccessResponseValueValueResourceTypeEnum;
|
|
871
|
+
/**
|
|
872
|
+
*
|
|
873
|
+
* @type {GetUserPermissionsSuccessResponseResourcesValueResourceId}
|
|
874
|
+
* @memberof ListOrgRolesSuccessResponseValueValue
|
|
875
|
+
*/
|
|
876
|
+
'resourceId': GetUserPermissionsSuccessResponseResourcesValueResourceId;
|
|
877
|
+
/**
|
|
878
|
+
* List of roles that are assigned to the user for the resource
|
|
879
|
+
* @type {Array<string>}
|
|
880
|
+
* @memberof ListOrgRolesSuccessResponseValueValue
|
|
881
|
+
*/
|
|
882
|
+
'roles': Array<ListOrgRolesSuccessResponseValueValueRolesEnum>;
|
|
883
|
+
}
|
|
884
|
+
export declare const ListOrgRolesSuccessResponseValueValueResourceTypeEnum: {
|
|
885
|
+
readonly Property: "Property";
|
|
886
|
+
readonly Org: "Org";
|
|
887
|
+
readonly Brand: "Brand";
|
|
888
|
+
readonly SalesChannel: "SalesChannel";
|
|
889
|
+
};
|
|
890
|
+
export type ListOrgRolesSuccessResponseValueValueResourceTypeEnum = typeof ListOrgRolesSuccessResponseValueValueResourceTypeEnum[keyof typeof ListOrgRolesSuccessResponseValueValueResourceTypeEnum];
|
|
891
|
+
export declare const ListOrgRolesSuccessResponseValueValueRolesEnum: {
|
|
892
|
+
readonly OrgViewer: "OrgViewer";
|
|
893
|
+
readonly OrgManager: "OrgManager";
|
|
894
|
+
readonly OrgAdmin: "OrgAdmin";
|
|
895
|
+
readonly BrandViewer: "BrandViewer";
|
|
896
|
+
readonly BrandManager: "BrandManager";
|
|
897
|
+
readonly BrandAdmin: "BrandAdmin";
|
|
898
|
+
readonly StoreViewer: "StoreViewer";
|
|
899
|
+
readonly StoreEditor: "StoreEditor";
|
|
900
|
+
readonly StoreManager: "StoreManager";
|
|
901
|
+
readonly CustomerViewer: "CustomerViewer";
|
|
902
|
+
readonly CustomerManager: "CustomerManager";
|
|
903
|
+
readonly VoucherViewer: "VoucherViewer";
|
|
904
|
+
readonly VoucherEditor: "VoucherEditor";
|
|
905
|
+
readonly VoucherManager: "VoucherManager";
|
|
906
|
+
readonly VoucherCampaignManager: "VoucherCampaignManager";
|
|
907
|
+
readonly VoucherStatisticsViewer: "VoucherStatisticsViewer";
|
|
908
|
+
readonly AnalyticsViewer: "AnalyticsViewer";
|
|
909
|
+
readonly ReportsViewer: "ReportsViewer";
|
|
910
|
+
readonly FinanceViewer: "FinanceViewer";
|
|
911
|
+
readonly FinanceManager: "FinanceManager";
|
|
912
|
+
readonly TeamViewer: "TeamViewer";
|
|
913
|
+
readonly TeamManager: "TeamManager";
|
|
914
|
+
readonly TeamAdmin: "TeamAdmin";
|
|
915
|
+
readonly TechViewer: "TechViewer";
|
|
916
|
+
readonly TechManager: "TechManager";
|
|
917
|
+
readonly AppStoreViewer: "AppStoreViewer";
|
|
918
|
+
readonly AppStoreManager: "AppStoreManager";
|
|
919
|
+
readonly SalesChannelViewer: "SalesChannelViewer";
|
|
920
|
+
readonly SalesChannelEditor: "SalesChannelEditor";
|
|
921
|
+
readonly SalesChannelManager: "SalesChannelManager";
|
|
922
|
+
readonly DeliveryViewer: "DeliveryViewer";
|
|
923
|
+
readonly DeliveryManager: "DeliveryManager";
|
|
924
|
+
readonly DriverManager: "DriverManager";
|
|
925
|
+
readonly AuditViewer: "AuditViewer";
|
|
926
|
+
readonly AuditManager: "AuditManager";
|
|
927
|
+
readonly AccountsViewer: "AccountsViewer";
|
|
928
|
+
readonly AccountsEditor: "AccountsEditor";
|
|
929
|
+
readonly DocumentExplorerViewer: "DocumentExplorerViewer";
|
|
930
|
+
readonly DocumentExplorerEditor: "DocumentExplorerEditor";
|
|
931
|
+
readonly PayrollViewer: "PayrollViewer";
|
|
932
|
+
readonly PayrollEditor: "PayrollEditor";
|
|
933
|
+
readonly PropertyViewer: "PropertyViewer";
|
|
934
|
+
readonly PropertyManager: "PropertyManager";
|
|
935
|
+
readonly PropertyAdmin: "PropertyAdmin";
|
|
936
|
+
readonly WebsiteContentEditor: "WebsiteContentEditor";
|
|
937
|
+
readonly WebsiteContentViewer: "WebsiteContentViewer";
|
|
938
|
+
readonly WebsiteTechViewer: "WebsiteTechViewer";
|
|
939
|
+
readonly MenuViewer: "MenuViewer";
|
|
940
|
+
readonly MenuEditor: "MenuEditor";
|
|
941
|
+
readonly MenuManager: "MenuManager";
|
|
942
|
+
readonly MenuMetaFieldManager: "MenuMetaFieldManager";
|
|
943
|
+
readonly MenuMetaFieldEditor: "MenuMetaFieldEditor";
|
|
944
|
+
readonly MenuMetaFieldViewer: "MenuMetaFieldViewer";
|
|
945
|
+
readonly StoreDeliveryZoneManager: "StoreDeliveryZoneManager";
|
|
946
|
+
readonly StoreDeliveryZoneEditor: "StoreDeliveryZoneEditor";
|
|
947
|
+
readonly StoreDeliveryZoneViewer: "StoreDeliveryZoneViewer";
|
|
948
|
+
readonly OrderFulfillmentManager: "OrderFulfillmentManager";
|
|
949
|
+
readonly OrderManager: "OrderManager";
|
|
950
|
+
readonly OrderEditor: "OrderEditor";
|
|
951
|
+
readonly OrderViewer: "OrderViewer";
|
|
952
|
+
readonly InventoryManager: "InventoryManager";
|
|
953
|
+
readonly InventoryEditor: "InventoryEditor";
|
|
954
|
+
readonly InventoryViewer: "InventoryViewer";
|
|
955
|
+
readonly PaymentManager: "PaymentManager";
|
|
956
|
+
readonly OnboardingManager: "OnboardingManager";
|
|
957
|
+
readonly FeatureFlagManager: "FeatureFlagManager";
|
|
958
|
+
readonly PropertyOwnerMisc: "PropertyOwnerMisc";
|
|
959
|
+
readonly ManagedOwnerMisc: "ManagedOwnerMisc";
|
|
960
|
+
readonly IntegratorMisc: "IntegratorMisc";
|
|
961
|
+
readonly PropertyManagerMisc: "PropertyManagerMisc";
|
|
962
|
+
readonly FinanceManagerMisc: "FinanceManagerMisc";
|
|
963
|
+
readonly SupportMisc: "SupportMisc";
|
|
964
|
+
};
|
|
965
|
+
export type ListOrgRolesSuccessResponseValueValueRolesEnum = typeof ListOrgRolesSuccessResponseValueValueRolesEnum[keyof typeof ListOrgRolesSuccessResponseValueValueRolesEnum];
|
|
842
966
|
/**
|
|
843
967
|
*
|
|
844
968
|
* @export
|
|
@@ -1352,7 +1476,7 @@ export declare class AuthenticationApi extends BaseAPI {
|
|
|
1352
1476
|
* @throws {RequiredError}
|
|
1353
1477
|
* @memberof AuthenticationApi
|
|
1354
1478
|
*/
|
|
1355
|
-
authenticateAndAuthorize(authenticateAndAuthorizeRequest: AuthenticateAndAuthorizeRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AuthenticateAndAuthorizeResponse, any>>;
|
|
1479
|
+
authenticateAndAuthorize(authenticateAndAuthorizeRequest: AuthenticateAndAuthorizeRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AuthenticateAndAuthorizeResponse, any, {}>>;
|
|
1356
1480
|
}
|
|
1357
1481
|
/**
|
|
1358
1482
|
* AuthorizationApi - axios parameter creator
|
|
@@ -1435,7 +1559,7 @@ export declare class AuthorizationApi extends BaseAPI {
|
|
|
1435
1559
|
* @throws {RequiredError}
|
|
1436
1560
|
* @memberof AuthorizationApi
|
|
1437
1561
|
*/
|
|
1438
|
-
authenticateAndAuthorize(authenticateAndAuthorizeRequest: AuthenticateAndAuthorizeRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AuthenticateAndAuthorizeResponse, any>>;
|
|
1562
|
+
authenticateAndAuthorize(authenticateAndAuthorizeRequest: AuthenticateAndAuthorizeRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AuthenticateAndAuthorizeResponse, any, {}>>;
|
|
1439
1563
|
/**
|
|
1440
1564
|
* Check if a user is authorized to perform an action
|
|
1441
1565
|
* @summary Authorize Request
|
|
@@ -1444,7 +1568,7 @@ export declare class AuthorizationApi extends BaseAPI {
|
|
|
1444
1568
|
* @throws {RequiredError}
|
|
1445
1569
|
* @memberof AuthorizationApi
|
|
1446
1570
|
*/
|
|
1447
|
-
authorize(authorizationRequest?: AuthorizationRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AuthorizationResponse, any>>;
|
|
1571
|
+
authorize(authorizationRequest?: AuthorizationRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AuthorizationResponse, any, {}>>;
|
|
1448
1572
|
}
|
|
1449
1573
|
/**
|
|
1450
1574
|
* PermissionsApi - axios parameter creator
|
|
@@ -1499,7 +1623,7 @@ export declare class PermissionsApi extends BaseAPI {
|
|
|
1499
1623
|
* @throws {RequiredError}
|
|
1500
1624
|
* @memberof PermissionsApi
|
|
1501
1625
|
*/
|
|
1502
|
-
listPermissions(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPermissionsSuccessResponse, any>>;
|
|
1626
|
+
listPermissions(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPermissionsSuccessResponse, any, {}>>;
|
|
1503
1627
|
}
|
|
1504
1628
|
/**
|
|
1505
1629
|
* RoleAssignmentApi - axios parameter creator
|
|
@@ -1643,7 +1767,7 @@ export declare class RoleAssignmentApi extends BaseAPI {
|
|
|
1643
1767
|
* @throws {RequiredError}
|
|
1644
1768
|
* @memberof RoleAssignmentApi
|
|
1645
1769
|
*/
|
|
1646
|
-
assignRoleToPrincipal(orgId: string, assignRoleRequestBody?: AssignRoleRequestBody, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AssignRoleSuccessResponse, any>>;
|
|
1770
|
+
assignRoleToPrincipal(orgId: string, assignRoleRequestBody?: AssignRoleRequestBody, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AssignRoleSuccessResponse, any, {}>>;
|
|
1647
1771
|
/**
|
|
1648
1772
|
* Get the active roles for a given principal
|
|
1649
1773
|
* @summary Get Principal Roles
|
|
@@ -1653,7 +1777,7 @@ export declare class RoleAssignmentApi extends BaseAPI {
|
|
|
1653
1777
|
* @throws {RequiredError}
|
|
1654
1778
|
* @memberof RoleAssignmentApi
|
|
1655
1779
|
*/
|
|
1656
|
-
getPrincipalRoles(orgId: string, getPrincipalRolesRequestBody?: GetPrincipalRolesRequestBody, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPrincipalRolesSuccessResponse, any>>;
|
|
1780
|
+
getPrincipalRoles(orgId: string, getPrincipalRolesRequestBody?: GetPrincipalRolesRequestBody, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPrincipalRolesSuccessResponse, any, {}>>;
|
|
1657
1781
|
/**
|
|
1658
1782
|
* Revokes a forbidden role from a given principal (user, group, etc.)
|
|
1659
1783
|
* @summary Revoke Forbidden Role from Principal
|
|
@@ -1663,7 +1787,7 @@ export declare class RoleAssignmentApi extends BaseAPI {
|
|
|
1663
1787
|
* @throws {RequiredError}
|
|
1664
1788
|
* @memberof RoleAssignmentApi
|
|
1665
1789
|
*/
|
|
1666
|
-
revokeForbiddenRoleFromPrincipal(orgId: string, revokeForbiddenRoleRequestBody?: RevokeForbiddenRoleRequestBody, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<RevokeRoleSuccessResponse, any>>;
|
|
1790
|
+
revokeForbiddenRoleFromPrincipal(orgId: string, revokeForbiddenRoleRequestBody?: RevokeForbiddenRoleRequestBody, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<RevokeRoleSuccessResponse, any, {}>>;
|
|
1667
1791
|
/**
|
|
1668
1792
|
* Revokes a specified role from a given principal (user, group, etc.)
|
|
1669
1793
|
* @summary Revoke Role from Principal
|
|
@@ -1673,13 +1797,29 @@ export declare class RoleAssignmentApi extends BaseAPI {
|
|
|
1673
1797
|
* @throws {RequiredError}
|
|
1674
1798
|
* @memberof RoleAssignmentApi
|
|
1675
1799
|
*/
|
|
1676
|
-
revokeRoleFromPrincipal(orgId: string, revokeRoleRequestBody?: RevokeRoleRequestBody, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<RevokeRoleSuccessResponse, any>>;
|
|
1800
|
+
revokeRoleFromPrincipal(orgId: string, revokeRoleRequestBody?: RevokeRoleRequestBody, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<RevokeRoleSuccessResponse, any, {}>>;
|
|
1677
1801
|
}
|
|
1678
1802
|
/**
|
|
1679
1803
|
* UserPermissionsApi - axios parameter creator
|
|
1680
1804
|
* @export
|
|
1681
1805
|
*/
|
|
1682
1806
|
export declare const UserPermissionsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
1807
|
+
/**
|
|
1808
|
+
* List the available permissions for the current user
|
|
1809
|
+
* @summary List Org Permissions
|
|
1810
|
+
* @param {string} orgId
|
|
1811
|
+
* @param {*} [options] Override http request option.
|
|
1812
|
+
* @throws {RequiredError}
|
|
1813
|
+
*/
|
|
1814
|
+
listOrgPermissions: (orgId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1815
|
+
/**
|
|
1816
|
+
* List the available roles for the current user
|
|
1817
|
+
* @summary List Org Roles
|
|
1818
|
+
* @param {string} orgId
|
|
1819
|
+
* @param {*} [options] Override http request option.
|
|
1820
|
+
* @throws {RequiredError}
|
|
1821
|
+
*/
|
|
1822
|
+
listOrgRoles: (orgId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1683
1823
|
/**
|
|
1684
1824
|
* List the available permissions for the current user
|
|
1685
1825
|
* @summary List Own Permissions
|
|
@@ -1703,6 +1843,30 @@ export declare const UserPermissionsApiAxiosParamCreator: (configuration?: Confi
|
|
|
1703
1843
|
* @export
|
|
1704
1844
|
*/
|
|
1705
1845
|
export declare const UserPermissionsApiFp: (configuration?: Configuration) => {
|
|
1846
|
+
/**
|
|
1847
|
+
* List the available permissions for the current user
|
|
1848
|
+
* @summary List Org Permissions
|
|
1849
|
+
* @param {string} orgId
|
|
1850
|
+
* @param {*} [options] Override http request option.
|
|
1851
|
+
* @throws {RequiredError}
|
|
1852
|
+
*/
|
|
1853
|
+
listOrgPermissions(orgId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{
|
|
1854
|
+
[key: string]: {
|
|
1855
|
+
[key: string]: GetUserPermissionsSuccessResponseResourcesValue;
|
|
1856
|
+
};
|
|
1857
|
+
}>>;
|
|
1858
|
+
/**
|
|
1859
|
+
* List the available roles for the current user
|
|
1860
|
+
* @summary List Org Roles
|
|
1861
|
+
* @param {string} orgId
|
|
1862
|
+
* @param {*} [options] Override http request option.
|
|
1863
|
+
* @throws {RequiredError}
|
|
1864
|
+
*/
|
|
1865
|
+
listOrgRoles(orgId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{
|
|
1866
|
+
[key: string]: {
|
|
1867
|
+
[key: string]: ListOrgRolesSuccessResponseValueValue;
|
|
1868
|
+
};
|
|
1869
|
+
}>>;
|
|
1706
1870
|
/**
|
|
1707
1871
|
* List the available permissions for the current user
|
|
1708
1872
|
* @summary List Own Permissions
|
|
@@ -1726,6 +1890,30 @@ export declare const UserPermissionsApiFp: (configuration?: Configuration) => {
|
|
|
1726
1890
|
* @export
|
|
1727
1891
|
*/
|
|
1728
1892
|
export declare const UserPermissionsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
1893
|
+
/**
|
|
1894
|
+
* List the available permissions for the current user
|
|
1895
|
+
* @summary List Org Permissions
|
|
1896
|
+
* @param {string} orgId
|
|
1897
|
+
* @param {*} [options] Override http request option.
|
|
1898
|
+
* @throws {RequiredError}
|
|
1899
|
+
*/
|
|
1900
|
+
listOrgPermissions(orgId: string, options?: RawAxiosRequestConfig): AxiosPromise<{
|
|
1901
|
+
[key: string]: {
|
|
1902
|
+
[key: string]: GetUserPermissionsSuccessResponseResourcesValue;
|
|
1903
|
+
};
|
|
1904
|
+
}>;
|
|
1905
|
+
/**
|
|
1906
|
+
* List the available roles for the current user
|
|
1907
|
+
* @summary List Org Roles
|
|
1908
|
+
* @param {string} orgId
|
|
1909
|
+
* @param {*} [options] Override http request option.
|
|
1910
|
+
* @throws {RequiredError}
|
|
1911
|
+
*/
|
|
1912
|
+
listOrgRoles(orgId: string, options?: RawAxiosRequestConfig): AxiosPromise<{
|
|
1913
|
+
[key: string]: {
|
|
1914
|
+
[key: string]: ListOrgRolesSuccessResponseValueValue;
|
|
1915
|
+
};
|
|
1916
|
+
}>;
|
|
1729
1917
|
/**
|
|
1730
1918
|
* List the available permissions for the current user
|
|
1731
1919
|
* @summary List Own Permissions
|
|
@@ -1751,6 +1939,32 @@ export declare const UserPermissionsApiFactory: (configuration?: Configuration,
|
|
|
1751
1939
|
* @extends {BaseAPI}
|
|
1752
1940
|
*/
|
|
1753
1941
|
export declare class UserPermissionsApi extends BaseAPI {
|
|
1942
|
+
/**
|
|
1943
|
+
* List the available permissions for the current user
|
|
1944
|
+
* @summary List Org Permissions
|
|
1945
|
+
* @param {string} orgId
|
|
1946
|
+
* @param {*} [options] Override http request option.
|
|
1947
|
+
* @throws {RequiredError}
|
|
1948
|
+
* @memberof UserPermissionsApi
|
|
1949
|
+
*/
|
|
1950
|
+
listOrgPermissions(orgId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<{
|
|
1951
|
+
[key: string]: {
|
|
1952
|
+
[key: string]: GetUserPermissionsSuccessResponseResourcesValue;
|
|
1953
|
+
};
|
|
1954
|
+
}, any, {}>>;
|
|
1955
|
+
/**
|
|
1956
|
+
* List the available roles for the current user
|
|
1957
|
+
* @summary List Org Roles
|
|
1958
|
+
* @param {string} orgId
|
|
1959
|
+
* @param {*} [options] Override http request option.
|
|
1960
|
+
* @throws {RequiredError}
|
|
1961
|
+
* @memberof UserPermissionsApi
|
|
1962
|
+
*/
|
|
1963
|
+
listOrgRoles(orgId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<{
|
|
1964
|
+
[key: string]: {
|
|
1965
|
+
[key: string]: ListOrgRolesSuccessResponseValueValue;
|
|
1966
|
+
};
|
|
1967
|
+
}, any, {}>>;
|
|
1754
1968
|
/**
|
|
1755
1969
|
* List the available permissions for the current user
|
|
1756
1970
|
* @summary List Own Permissions
|
|
@@ -1759,7 +1973,7 @@ export declare class UserPermissionsApi extends BaseAPI {
|
|
|
1759
1973
|
* @throws {RequiredError}
|
|
1760
1974
|
* @memberof UserPermissionsApi
|
|
1761
1975
|
*/
|
|
1762
|
-
listOwnPermissions(orgId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetUserPermissionsSuccessResponse, any>>;
|
|
1976
|
+
listOwnPermissions(orgId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetUserPermissionsSuccessResponse, any, {}>>;
|
|
1763
1977
|
/**
|
|
1764
1978
|
* List the available permissions for a given user
|
|
1765
1979
|
* @summary List User Permissions
|
|
@@ -1769,5 +1983,5 @@ export declare class UserPermissionsApi extends BaseAPI {
|
|
|
1769
1983
|
* @throws {RequiredError}
|
|
1770
1984
|
* @memberof UserPermissionsApi
|
|
1771
1985
|
*/
|
|
1772
|
-
listUserPermissions(orgId: string, userId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetUserPermissionsSuccessResponse, any>>;
|
|
1986
|
+
listUserPermissions(orgId: string, userId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetUserPermissionsSuccessResponse, any, {}>>;
|
|
1773
1987
|
}
|
package/dist/api.js
CHANGED
|
@@ -84,7 +84,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
84
84
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
85
85
|
};
|
|
86
86
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
87
|
-
exports.UserPermissionsApi = exports.UserPermissionsApiFactory = exports.UserPermissionsApiFp = exports.UserPermissionsApiAxiosParamCreator = exports.RoleAssignmentApi = exports.RoleAssignmentApiFactory = exports.RoleAssignmentApiFp = exports.RoleAssignmentApiAxiosParamCreator = exports.PermissionsApi = exports.PermissionsApiFactory = exports.PermissionsApiFp = exports.PermissionsApiAxiosParamCreator = exports.AuthorizationApi = exports.AuthorizationApiFactory = exports.AuthorizationApiFp = exports.AuthorizationApiAxiosParamCreator = exports.AuthenticationApi = exports.AuthenticationApiFactory = exports.AuthenticationApiFp = exports.AuthenticationApiAxiosParamCreator = exports.RevokeRoleRequestBodyRoleEnum = exports.RevokeForbiddenRoleRequestBodyCompensatingRoleEnum = exports.Permissions = exports.GetUserPermissionsSuccessResponseResourcesValuePermissionsEnum = exports.GetUserPermissionsSuccessResponseResourcesValueResourceTypeEnum = exports.GetPrincipalRolesSuccessResponseRolesInnerResourceTypeEnum = exports.GetPrincipalRolesSuccessResponseRolesInnerPolicyTypeEnum = exports.AuthorizationRequestResourceOneOf3TypeEnum = exports.AuthorizationRequestResourceOneOf2TypeEnum = exports.AuthorizationRequestResourceOneOf1TypeEnum = exports.AuthorizationRequestResourceOneOfTypeEnum = exports.AuthorizationRequestPrincipalTypeEnum = exports.AssignRoleRequestBodyRoleEnum = void 0;
|
|
87
|
+
exports.UserPermissionsApi = exports.UserPermissionsApiFactory = exports.UserPermissionsApiFp = exports.UserPermissionsApiAxiosParamCreator = exports.RoleAssignmentApi = exports.RoleAssignmentApiFactory = exports.RoleAssignmentApiFp = exports.RoleAssignmentApiAxiosParamCreator = exports.PermissionsApi = exports.PermissionsApiFactory = exports.PermissionsApiFp = exports.PermissionsApiAxiosParamCreator = exports.AuthorizationApi = exports.AuthorizationApiFactory = exports.AuthorizationApiFp = exports.AuthorizationApiAxiosParamCreator = exports.AuthenticationApi = exports.AuthenticationApiFactory = exports.AuthenticationApiFp = exports.AuthenticationApiAxiosParamCreator = exports.RevokeRoleRequestBodyRoleEnum = exports.RevokeForbiddenRoleRequestBodyCompensatingRoleEnum = exports.Permissions = exports.ListOrgRolesSuccessResponseValueValueRolesEnum = exports.ListOrgRolesSuccessResponseValueValueResourceTypeEnum = exports.GetUserPermissionsSuccessResponseResourcesValuePermissionsEnum = exports.GetUserPermissionsSuccessResponseResourcesValueResourceTypeEnum = exports.GetPrincipalRolesSuccessResponseRolesInnerPrincipalTypeEnum = exports.GetPrincipalRolesSuccessResponseRolesInnerResourceTypeEnum = exports.GetPrincipalRolesSuccessResponseRolesInnerPolicyTypeEnum = exports.AuthorizationRequestResourceOneOf3TypeEnum = exports.AuthorizationRequestResourceOneOf2TypeEnum = exports.AuthorizationRequestResourceOneOf1TypeEnum = exports.AuthorizationRequestResourceOneOfTypeEnum = exports.AuthorizationRequestPrincipalTypeEnum = exports.AssignRoleRequestBodyRoleEnum = void 0;
|
|
88
88
|
var axios_1 = require("axios");
|
|
89
89
|
// Some imports not used depending on template conditions
|
|
90
90
|
// @ts-ignore
|
|
@@ -193,6 +193,10 @@ exports.GetPrincipalRolesSuccessResponseRolesInnerResourceTypeEnum = {
|
|
|
193
193
|
Brand: 'Brand',
|
|
194
194
|
SalesChannel: 'SalesChannel'
|
|
195
195
|
};
|
|
196
|
+
exports.GetPrincipalRolesSuccessResponseRolesInnerPrincipalTypeEnum = {
|
|
197
|
+
User: 'User',
|
|
198
|
+
Automation: 'Automation'
|
|
199
|
+
};
|
|
196
200
|
exports.GetUserPermissionsSuccessResponseResourcesValueResourceTypeEnum = {
|
|
197
201
|
Property: 'Property',
|
|
198
202
|
Org: 'Org',
|
|
@@ -425,6 +429,86 @@ exports.GetUserPermissionsSuccessResponseResourcesValuePermissionsEnum = {
|
|
|
425
429
|
EditOrg: 'EditOrg',
|
|
426
430
|
ViewOrg: 'ViewOrg'
|
|
427
431
|
};
|
|
432
|
+
exports.ListOrgRolesSuccessResponseValueValueResourceTypeEnum = {
|
|
433
|
+
Property: 'Property',
|
|
434
|
+
Org: 'Org',
|
|
435
|
+
Brand: 'Brand',
|
|
436
|
+
SalesChannel: 'SalesChannel'
|
|
437
|
+
};
|
|
438
|
+
exports.ListOrgRolesSuccessResponseValueValueRolesEnum = {
|
|
439
|
+
OrgViewer: 'OrgViewer',
|
|
440
|
+
OrgManager: 'OrgManager',
|
|
441
|
+
OrgAdmin: 'OrgAdmin',
|
|
442
|
+
BrandViewer: 'BrandViewer',
|
|
443
|
+
BrandManager: 'BrandManager',
|
|
444
|
+
BrandAdmin: 'BrandAdmin',
|
|
445
|
+
StoreViewer: 'StoreViewer',
|
|
446
|
+
StoreEditor: 'StoreEditor',
|
|
447
|
+
StoreManager: 'StoreManager',
|
|
448
|
+
CustomerViewer: 'CustomerViewer',
|
|
449
|
+
CustomerManager: 'CustomerManager',
|
|
450
|
+
VoucherViewer: 'VoucherViewer',
|
|
451
|
+
VoucherEditor: 'VoucherEditor',
|
|
452
|
+
VoucherManager: 'VoucherManager',
|
|
453
|
+
VoucherCampaignManager: 'VoucherCampaignManager',
|
|
454
|
+
VoucherStatisticsViewer: 'VoucherStatisticsViewer',
|
|
455
|
+
AnalyticsViewer: 'AnalyticsViewer',
|
|
456
|
+
ReportsViewer: 'ReportsViewer',
|
|
457
|
+
FinanceViewer: 'FinanceViewer',
|
|
458
|
+
FinanceManager: 'FinanceManager',
|
|
459
|
+
TeamViewer: 'TeamViewer',
|
|
460
|
+
TeamManager: 'TeamManager',
|
|
461
|
+
TeamAdmin: 'TeamAdmin',
|
|
462
|
+
TechViewer: 'TechViewer',
|
|
463
|
+
TechManager: 'TechManager',
|
|
464
|
+
AppStoreViewer: 'AppStoreViewer',
|
|
465
|
+
AppStoreManager: 'AppStoreManager',
|
|
466
|
+
SalesChannelViewer: 'SalesChannelViewer',
|
|
467
|
+
SalesChannelEditor: 'SalesChannelEditor',
|
|
468
|
+
SalesChannelManager: 'SalesChannelManager',
|
|
469
|
+
DeliveryViewer: 'DeliveryViewer',
|
|
470
|
+
DeliveryManager: 'DeliveryManager',
|
|
471
|
+
DriverManager: 'DriverManager',
|
|
472
|
+
AuditViewer: 'AuditViewer',
|
|
473
|
+
AuditManager: 'AuditManager',
|
|
474
|
+
AccountsViewer: 'AccountsViewer',
|
|
475
|
+
AccountsEditor: 'AccountsEditor',
|
|
476
|
+
DocumentExplorerViewer: 'DocumentExplorerViewer',
|
|
477
|
+
DocumentExplorerEditor: 'DocumentExplorerEditor',
|
|
478
|
+
PayrollViewer: 'PayrollViewer',
|
|
479
|
+
PayrollEditor: 'PayrollEditor',
|
|
480
|
+
PropertyViewer: 'PropertyViewer',
|
|
481
|
+
PropertyManager: 'PropertyManager',
|
|
482
|
+
PropertyAdmin: 'PropertyAdmin',
|
|
483
|
+
WebsiteContentEditor: 'WebsiteContentEditor',
|
|
484
|
+
WebsiteContentViewer: 'WebsiteContentViewer',
|
|
485
|
+
WebsiteTechViewer: 'WebsiteTechViewer',
|
|
486
|
+
MenuViewer: 'MenuViewer',
|
|
487
|
+
MenuEditor: 'MenuEditor',
|
|
488
|
+
MenuManager: 'MenuManager',
|
|
489
|
+
MenuMetaFieldManager: 'MenuMetaFieldManager',
|
|
490
|
+
MenuMetaFieldEditor: 'MenuMetaFieldEditor',
|
|
491
|
+
MenuMetaFieldViewer: 'MenuMetaFieldViewer',
|
|
492
|
+
StoreDeliveryZoneManager: 'StoreDeliveryZoneManager',
|
|
493
|
+
StoreDeliveryZoneEditor: 'StoreDeliveryZoneEditor',
|
|
494
|
+
StoreDeliveryZoneViewer: 'StoreDeliveryZoneViewer',
|
|
495
|
+
OrderFulfillmentManager: 'OrderFulfillmentManager',
|
|
496
|
+
OrderManager: 'OrderManager',
|
|
497
|
+
OrderEditor: 'OrderEditor',
|
|
498
|
+
OrderViewer: 'OrderViewer',
|
|
499
|
+
InventoryManager: 'InventoryManager',
|
|
500
|
+
InventoryEditor: 'InventoryEditor',
|
|
501
|
+
InventoryViewer: 'InventoryViewer',
|
|
502
|
+
PaymentManager: 'PaymentManager',
|
|
503
|
+
OnboardingManager: 'OnboardingManager',
|
|
504
|
+
FeatureFlagManager: 'FeatureFlagManager',
|
|
505
|
+
PropertyOwnerMisc: 'PropertyOwnerMisc',
|
|
506
|
+
ManagedOwnerMisc: 'ManagedOwnerMisc',
|
|
507
|
+
IntegratorMisc: 'IntegratorMisc',
|
|
508
|
+
PropertyManagerMisc: 'PropertyManagerMisc',
|
|
509
|
+
FinanceManagerMisc: 'FinanceManagerMisc',
|
|
510
|
+
SupportMisc: 'SupportMisc'
|
|
511
|
+
};
|
|
428
512
|
/**
|
|
429
513
|
*
|
|
430
514
|
* @export
|
|
@@ -1659,6 +1743,96 @@ exports.RoleAssignmentApi = RoleAssignmentApi;
|
|
|
1659
1743
|
var UserPermissionsApiAxiosParamCreator = function (configuration) {
|
|
1660
1744
|
var _this = this;
|
|
1661
1745
|
return {
|
|
1746
|
+
/**
|
|
1747
|
+
* List the available permissions for the current user
|
|
1748
|
+
* @summary List Org Permissions
|
|
1749
|
+
* @param {string} orgId
|
|
1750
|
+
* @param {*} [options] Override http request option.
|
|
1751
|
+
* @throws {RequiredError}
|
|
1752
|
+
*/
|
|
1753
|
+
listOrgPermissions: function (orgId_1) {
|
|
1754
|
+
var args_1 = [];
|
|
1755
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
1756
|
+
args_1[_i - 1] = arguments[_i];
|
|
1757
|
+
}
|
|
1758
|
+
return __awaiter(_this, __spreadArray([orgId_1], args_1, true), void 0, function (orgId, options) {
|
|
1759
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1760
|
+
if (options === void 0) { options = {}; }
|
|
1761
|
+
return __generator(this, function (_a) {
|
|
1762
|
+
switch (_a.label) {
|
|
1763
|
+
case 0:
|
|
1764
|
+
// verify required parameter 'orgId' is not null or undefined
|
|
1765
|
+
(0, common_1.assertParamExists)('listOrgPermissions', 'orgId', orgId);
|
|
1766
|
+
localVarPath = "/orgs/{orgId}/permissions"
|
|
1767
|
+
.replace("{".concat("orgId", "}"), encodeURIComponent(String(orgId)));
|
|
1768
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1769
|
+
if (configuration) {
|
|
1770
|
+
baseOptions = configuration.baseOptions;
|
|
1771
|
+
}
|
|
1772
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
1773
|
+
localVarHeaderParameter = {};
|
|
1774
|
+
localVarQueryParameter = {};
|
|
1775
|
+
// authentication ApiKeyAuth required
|
|
1776
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
1777
|
+
case 1:
|
|
1778
|
+
// authentication ApiKeyAuth required
|
|
1779
|
+
_a.sent();
|
|
1780
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1781
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1782
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1783
|
+
return [2 /*return*/, {
|
|
1784
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1785
|
+
options: localVarRequestOptions,
|
|
1786
|
+
}];
|
|
1787
|
+
}
|
|
1788
|
+
});
|
|
1789
|
+
});
|
|
1790
|
+
},
|
|
1791
|
+
/**
|
|
1792
|
+
* List the available roles for the current user
|
|
1793
|
+
* @summary List Org Roles
|
|
1794
|
+
* @param {string} orgId
|
|
1795
|
+
* @param {*} [options] Override http request option.
|
|
1796
|
+
* @throws {RequiredError}
|
|
1797
|
+
*/
|
|
1798
|
+
listOrgRoles: function (orgId_1) {
|
|
1799
|
+
var args_1 = [];
|
|
1800
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
1801
|
+
args_1[_i - 1] = arguments[_i];
|
|
1802
|
+
}
|
|
1803
|
+
return __awaiter(_this, __spreadArray([orgId_1], args_1, true), void 0, function (orgId, options) {
|
|
1804
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1805
|
+
if (options === void 0) { options = {}; }
|
|
1806
|
+
return __generator(this, function (_a) {
|
|
1807
|
+
switch (_a.label) {
|
|
1808
|
+
case 0:
|
|
1809
|
+
// verify required parameter 'orgId' is not null or undefined
|
|
1810
|
+
(0, common_1.assertParamExists)('listOrgRoles', 'orgId', orgId);
|
|
1811
|
+
localVarPath = "/orgs/{orgId}/roles"
|
|
1812
|
+
.replace("{".concat("orgId", "}"), encodeURIComponent(String(orgId)));
|
|
1813
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1814
|
+
if (configuration) {
|
|
1815
|
+
baseOptions = configuration.baseOptions;
|
|
1816
|
+
}
|
|
1817
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
1818
|
+
localVarHeaderParameter = {};
|
|
1819
|
+
localVarQueryParameter = {};
|
|
1820
|
+
// authentication ApiKeyAuth required
|
|
1821
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
1822
|
+
case 1:
|
|
1823
|
+
// authentication ApiKeyAuth required
|
|
1824
|
+
_a.sent();
|
|
1825
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1826
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1827
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1828
|
+
return [2 /*return*/, {
|
|
1829
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1830
|
+
options: localVarRequestOptions,
|
|
1831
|
+
}];
|
|
1832
|
+
}
|
|
1833
|
+
});
|
|
1834
|
+
});
|
|
1835
|
+
},
|
|
1662
1836
|
/**
|
|
1663
1837
|
* List the available permissions for the current user
|
|
1664
1838
|
* @summary List Own Permissions
|
|
@@ -1763,6 +1937,52 @@ exports.UserPermissionsApiAxiosParamCreator = UserPermissionsApiAxiosParamCreato
|
|
|
1763
1937
|
var UserPermissionsApiFp = function (configuration) {
|
|
1764
1938
|
var localVarAxiosParamCreator = (0, exports.UserPermissionsApiAxiosParamCreator)(configuration);
|
|
1765
1939
|
return {
|
|
1940
|
+
/**
|
|
1941
|
+
* List the available permissions for the current user
|
|
1942
|
+
* @summary List Org Permissions
|
|
1943
|
+
* @param {string} orgId
|
|
1944
|
+
* @param {*} [options] Override http request option.
|
|
1945
|
+
* @throws {RequiredError}
|
|
1946
|
+
*/
|
|
1947
|
+
listOrgPermissions: function (orgId, options) {
|
|
1948
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1949
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1950
|
+
var _a, _b, _c;
|
|
1951
|
+
return __generator(this, function (_d) {
|
|
1952
|
+
switch (_d.label) {
|
|
1953
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listOrgPermissions(orgId, options)];
|
|
1954
|
+
case 1:
|
|
1955
|
+
localVarAxiosArgs = _d.sent();
|
|
1956
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1957
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserPermissionsApi.listOrgPermissions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1958
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1959
|
+
}
|
|
1960
|
+
});
|
|
1961
|
+
});
|
|
1962
|
+
},
|
|
1963
|
+
/**
|
|
1964
|
+
* List the available roles for the current user
|
|
1965
|
+
* @summary List Org Roles
|
|
1966
|
+
* @param {string} orgId
|
|
1967
|
+
* @param {*} [options] Override http request option.
|
|
1968
|
+
* @throws {RequiredError}
|
|
1969
|
+
*/
|
|
1970
|
+
listOrgRoles: function (orgId, options) {
|
|
1971
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1972
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1973
|
+
var _a, _b, _c;
|
|
1974
|
+
return __generator(this, function (_d) {
|
|
1975
|
+
switch (_d.label) {
|
|
1976
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listOrgRoles(orgId, options)];
|
|
1977
|
+
case 1:
|
|
1978
|
+
localVarAxiosArgs = _d.sent();
|
|
1979
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1980
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserPermissionsApi.listOrgRoles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1981
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1982
|
+
}
|
|
1983
|
+
});
|
|
1984
|
+
});
|
|
1985
|
+
},
|
|
1766
1986
|
/**
|
|
1767
1987
|
* List the available permissions for the current user
|
|
1768
1988
|
* @summary List Own Permissions
|
|
@@ -1820,6 +2040,26 @@ exports.UserPermissionsApiFp = UserPermissionsApiFp;
|
|
|
1820
2040
|
var UserPermissionsApiFactory = function (configuration, basePath, axios) {
|
|
1821
2041
|
var localVarFp = (0, exports.UserPermissionsApiFp)(configuration);
|
|
1822
2042
|
return {
|
|
2043
|
+
/**
|
|
2044
|
+
* List the available permissions for the current user
|
|
2045
|
+
* @summary List Org Permissions
|
|
2046
|
+
* @param {string} orgId
|
|
2047
|
+
* @param {*} [options] Override http request option.
|
|
2048
|
+
* @throws {RequiredError}
|
|
2049
|
+
*/
|
|
2050
|
+
listOrgPermissions: function (orgId, options) {
|
|
2051
|
+
return localVarFp.listOrgPermissions(orgId, options).then(function (request) { return request(axios, basePath); });
|
|
2052
|
+
},
|
|
2053
|
+
/**
|
|
2054
|
+
* List the available roles for the current user
|
|
2055
|
+
* @summary List Org Roles
|
|
2056
|
+
* @param {string} orgId
|
|
2057
|
+
* @param {*} [options] Override http request option.
|
|
2058
|
+
* @throws {RequiredError}
|
|
2059
|
+
*/
|
|
2060
|
+
listOrgRoles: function (orgId, options) {
|
|
2061
|
+
return localVarFp.listOrgRoles(orgId, options).then(function (request) { return request(axios, basePath); });
|
|
2062
|
+
},
|
|
1823
2063
|
/**
|
|
1824
2064
|
* List the available permissions for the current user
|
|
1825
2065
|
* @summary List Own Permissions
|
|
@@ -1855,6 +2095,30 @@ var UserPermissionsApi = /** @class */ (function (_super) {
|
|
|
1855
2095
|
function UserPermissionsApi() {
|
|
1856
2096
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
1857
2097
|
}
|
|
2098
|
+
/**
|
|
2099
|
+
* List the available permissions for the current user
|
|
2100
|
+
* @summary List Org Permissions
|
|
2101
|
+
* @param {string} orgId
|
|
2102
|
+
* @param {*} [options] Override http request option.
|
|
2103
|
+
* @throws {RequiredError}
|
|
2104
|
+
* @memberof UserPermissionsApi
|
|
2105
|
+
*/
|
|
2106
|
+
UserPermissionsApi.prototype.listOrgPermissions = function (orgId, options) {
|
|
2107
|
+
var _this = this;
|
|
2108
|
+
return (0, exports.UserPermissionsApiFp)(this.configuration).listOrgPermissions(orgId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2109
|
+
};
|
|
2110
|
+
/**
|
|
2111
|
+
* List the available roles for the current user
|
|
2112
|
+
* @summary List Org Roles
|
|
2113
|
+
* @param {string} orgId
|
|
2114
|
+
* @param {*} [options] Override http request option.
|
|
2115
|
+
* @throws {RequiredError}
|
|
2116
|
+
* @memberof UserPermissionsApi
|
|
2117
|
+
*/
|
|
2118
|
+
UserPermissionsApi.prototype.listOrgRoles = function (orgId, options) {
|
|
2119
|
+
var _this = this;
|
|
2120
|
+
return (0, exports.UserPermissionsApiFp)(this.configuration).listOrgRoles(orgId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2121
|
+
};
|
|
1858
2122
|
/**
|
|
1859
2123
|
* List the available permissions for the current user
|
|
1860
2124
|
* @summary List Own Permissions
|
package/dist/common.d.ts
CHANGED
|
@@ -62,4 +62,4 @@ export declare const toPathString: (url: URL) => string;
|
|
|
62
62
|
*
|
|
63
63
|
* @export
|
|
64
64
|
*/
|
|
65
|
-
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
|
|
65
|
+
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any, {}>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
|
package/dist/configuration.js
CHANGED
|
@@ -36,7 +36,7 @@ var Configuration = /** @class */ (function () {
|
|
|
36
36
|
this.serverIndex = param.serverIndex;
|
|
37
37
|
var extraHeaders = param.useDefaultUserAgent ? {} : {
|
|
38
38
|
headers: {
|
|
39
|
-
"user-agent": "Flipdish authorization typescript SDK / 0.1.
|
|
39
|
+
"user-agent": "Flipdish authorization typescript SDK / 0.1.5"
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
42
|
this.baseOptions = __assign(__assign({}, extraHeaders), param.baseOptions);
|