@flipdish/authorization 0.0.78-rc.1776952489 → 0.0.80-rc.1776967937
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 +0 -283
- package/configuration.ts +1 -1
- package/dist/api.d.ts +0 -187
- package/dist/api.js +1 -224
- package/dist/configuration.js +1 -1
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -1009,61 +1009,6 @@ export type GetUserPermissionsSuccessResponseResourcesValueResourceTypeEnum = ty
|
|
|
1009
1009
|
*/
|
|
1010
1010
|
export interface GetUserPermissionsSuccessResponseResourcesValueResourceId {
|
|
1011
1011
|
}
|
|
1012
|
-
/**
|
|
1013
|
-
* Grant teammate app access to a user being assigned within a brand for the first time.
|
|
1014
|
-
* @export
|
|
1015
|
-
* @interface GrantTeammateAccessRequestBody
|
|
1016
|
-
*/
|
|
1017
|
-
export interface GrantTeammateAccessRequestBody {
|
|
1018
|
-
/**
|
|
1019
|
-
* Teammate app access level (role)
|
|
1020
|
-
* @type {string}
|
|
1021
|
-
* @memberof GrantTeammateAccessRequestBody
|
|
1022
|
-
*/
|
|
1023
|
-
'appAccessLevel': GrantTeammateAccessRequestBodyAppAccessLevelEnum;
|
|
1024
|
-
/**
|
|
1025
|
-
* Brand identifier (AppId); normalized to lowercase when stored
|
|
1026
|
-
* @type {string}
|
|
1027
|
-
* @memberof GrantTeammateAccessRequestBody
|
|
1028
|
-
*/
|
|
1029
|
-
'brandId': string;
|
|
1030
|
-
/**
|
|
1031
|
-
* Org-wide store access; when false, propertyIds are required for property-scoped roles
|
|
1032
|
-
* @type {boolean}
|
|
1033
|
-
* @memberof GrantTeammateAccessRequestBody
|
|
1034
|
-
*/
|
|
1035
|
-
'hasAccessToAllStores': boolean;
|
|
1036
|
-
/**
|
|
1037
|
-
* Property resource ids (e.g. p123) when scoped to properties
|
|
1038
|
-
* @type {Array<string>}
|
|
1039
|
-
* @memberof GrantTeammateAccessRequestBody
|
|
1040
|
-
*/
|
|
1041
|
-
'propertyIds'?: Array<string>;
|
|
1042
|
-
/**
|
|
1043
|
-
* Target user email; persisted on first assignment only
|
|
1044
|
-
* @type {string}
|
|
1045
|
-
* @memberof GrantTeammateAccessRequestBody
|
|
1046
|
-
*/
|
|
1047
|
-
'userEmail': string;
|
|
1048
|
-
/**
|
|
1049
|
-
* Target user display name; persisted on first assignment only
|
|
1050
|
-
* @type {string}
|
|
1051
|
-
* @memberof GrantTeammateAccessRequestBody
|
|
1052
|
-
*/
|
|
1053
|
-
'userName'?: string;
|
|
1054
|
-
}
|
|
1055
|
-
|
|
1056
|
-
export const GrantTeammateAccessRequestBodyAppAccessLevelEnum = {
|
|
1057
|
-
Owner: 'Owner',
|
|
1058
|
-
ManagedOwner: 'ManagedOwner',
|
|
1059
|
-
PropertyOwner: 'PropertyOwner',
|
|
1060
|
-
PropertyManager: 'PropertyManager',
|
|
1061
|
-
FinanceManager: 'FinanceManager',
|
|
1062
|
-
Integrator: 'Integrator'
|
|
1063
|
-
} as const;
|
|
1064
|
-
|
|
1065
|
-
export type GrantTeammateAccessRequestBodyAppAccessLevelEnum = typeof GrantTeammateAccessRequestBodyAppAccessLevelEnum[keyof typeof GrantTeammateAccessRequestBodyAppAccessLevelEnum];
|
|
1066
|
-
|
|
1067
1012
|
/**
|
|
1068
1013
|
*
|
|
1069
1014
|
* @export
|
|
@@ -1694,62 +1639,6 @@ export const RoleNames = {
|
|
|
1694
1639
|
export type RoleNames = typeof RoleNames[keyof typeof RoleNames];
|
|
1695
1640
|
|
|
1696
1641
|
|
|
1697
|
-
/**
|
|
1698
|
-
* Teammate access applied
|
|
1699
|
-
* @export
|
|
1700
|
-
* @interface TeammateAccessSuccessResponse
|
|
1701
|
-
*/
|
|
1702
|
-
export interface TeammateAccessSuccessResponse {
|
|
1703
|
-
/**
|
|
1704
|
-
*
|
|
1705
|
-
* @type {string}
|
|
1706
|
-
* @memberof TeammateAccessSuccessResponse
|
|
1707
|
-
*/
|
|
1708
|
-
'message': string;
|
|
1709
|
-
}
|
|
1710
|
-
/**
|
|
1711
|
-
* Update teammate app access for an existing teammate. Email and name are not accepted on update; the existing values stored against the user id are reused.
|
|
1712
|
-
* @export
|
|
1713
|
-
* @interface UpdateTeammateAccessRequestBody
|
|
1714
|
-
*/
|
|
1715
|
-
export interface UpdateTeammateAccessRequestBody {
|
|
1716
|
-
/**
|
|
1717
|
-
* Teammate app access level (role)
|
|
1718
|
-
* @type {string}
|
|
1719
|
-
* @memberof UpdateTeammateAccessRequestBody
|
|
1720
|
-
*/
|
|
1721
|
-
'appAccessLevel': UpdateTeammateAccessRequestBodyAppAccessLevelEnum;
|
|
1722
|
-
/**
|
|
1723
|
-
* Brand identifier (AppId); normalized to lowercase when stored
|
|
1724
|
-
* @type {string}
|
|
1725
|
-
* @memberof UpdateTeammateAccessRequestBody
|
|
1726
|
-
*/
|
|
1727
|
-
'brandId': string;
|
|
1728
|
-
/**
|
|
1729
|
-
* Org-wide store access; when false, propertyIds are required for property-scoped roles
|
|
1730
|
-
* @type {boolean}
|
|
1731
|
-
* @memberof UpdateTeammateAccessRequestBody
|
|
1732
|
-
*/
|
|
1733
|
-
'hasAccessToAllStores': boolean;
|
|
1734
|
-
/**
|
|
1735
|
-
* Property resource ids (e.g. p123) when scoped to properties
|
|
1736
|
-
* @type {Array<string>}
|
|
1737
|
-
* @memberof UpdateTeammateAccessRequestBody
|
|
1738
|
-
*/
|
|
1739
|
-
'propertyIds'?: Array<string>;
|
|
1740
|
-
}
|
|
1741
|
-
|
|
1742
|
-
export const UpdateTeammateAccessRequestBodyAppAccessLevelEnum = {
|
|
1743
|
-
Owner: 'Owner',
|
|
1744
|
-
ManagedOwner: 'ManagedOwner',
|
|
1745
|
-
PropertyOwner: 'PropertyOwner',
|
|
1746
|
-
PropertyManager: 'PropertyManager',
|
|
1747
|
-
FinanceManager: 'FinanceManager',
|
|
1748
|
-
Integrator: 'Integrator'
|
|
1749
|
-
} as const;
|
|
1750
|
-
|
|
1751
|
-
export type UpdateTeammateAccessRequestBodyAppAccessLevelEnum = typeof UpdateTeammateAccessRequestBodyAppAccessLevelEnum[keyof typeof UpdateTeammateAccessRequestBodyAppAccessLevelEnum];
|
|
1752
|
-
|
|
1753
1642
|
/**
|
|
1754
1643
|
*
|
|
1755
1644
|
* @export
|
|
@@ -3077,51 +2966,6 @@ export const RoleAssignmentApiAxiosParamCreator = function (configuration?: Conf
|
|
|
3077
2966
|
options: localVarRequestOptions,
|
|
3078
2967
|
};
|
|
3079
2968
|
},
|
|
3080
|
-
/**
|
|
3081
|
-
* Grant teammate app access and underlying permissions for a user being assigned within a brand for the first time. Email and name are persisted on first assignment only and must be supplied here.
|
|
3082
|
-
* @summary Grant teammate access to a new user
|
|
3083
|
-
* @param {string} orgId
|
|
3084
|
-
* @param {string} userId Target Flipdish user id (numeric string)
|
|
3085
|
-
* @param {GrantTeammateAccessRequestBody} [grantTeammateAccessRequestBody]
|
|
3086
|
-
* @param {*} [options] Override http request option.
|
|
3087
|
-
* @throws {RequiredError}
|
|
3088
|
-
*/
|
|
3089
|
-
grantTeammateAccess: async (orgId: string, userId: string, grantTeammateAccessRequestBody?: GrantTeammateAccessRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3090
|
-
// verify required parameter 'orgId' is not null or undefined
|
|
3091
|
-
assertParamExists('grantTeammateAccess', 'orgId', orgId)
|
|
3092
|
-
// verify required parameter 'userId' is not null or undefined
|
|
3093
|
-
assertParamExists('grantTeammateAccess', 'userId', userId)
|
|
3094
|
-
const localVarPath = `/orgs/{orgId}/users/{userId}/grantTeammateAccess`
|
|
3095
|
-
.replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)))
|
|
3096
|
-
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
3097
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3098
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3099
|
-
let baseOptions;
|
|
3100
|
-
if (configuration) {
|
|
3101
|
-
baseOptions = configuration.baseOptions;
|
|
3102
|
-
}
|
|
3103
|
-
|
|
3104
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
3105
|
-
const localVarHeaderParameter = {} as any;
|
|
3106
|
-
const localVarQueryParameter = {} as any;
|
|
3107
|
-
|
|
3108
|
-
// authentication ApiKeyAuth required
|
|
3109
|
-
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
3110
|
-
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3114
|
-
|
|
3115
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3116
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3117
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3118
|
-
localVarRequestOptions.data = serializeDataIfNeeded(grantTeammateAccessRequestBody, localVarRequestOptions, configuration)
|
|
3119
|
-
|
|
3120
|
-
return {
|
|
3121
|
-
url: toPathString(localVarUrlObj),
|
|
3122
|
-
options: localVarRequestOptions,
|
|
3123
|
-
};
|
|
3124
|
-
},
|
|
3125
2969
|
/**
|
|
3126
2970
|
* Revokes a forbidden role from a given principal (user, group, etc.)
|
|
3127
2971
|
* @summary Revoke Forbidden Role from Principal
|
|
@@ -3199,51 +3043,6 @@ export const RoleAssignmentApiAxiosParamCreator = function (configuration?: Conf
|
|
|
3199
3043
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3200
3044
|
localVarRequestOptions.data = serializeDataIfNeeded(revokeRoleRequestBody, localVarRequestOptions, configuration)
|
|
3201
3045
|
|
|
3202
|
-
return {
|
|
3203
|
-
url: toPathString(localVarUrlObj),
|
|
3204
|
-
options: localVarRequestOptions,
|
|
3205
|
-
};
|
|
3206
|
-
},
|
|
3207
|
-
/**
|
|
3208
|
-
* Update teammate app access and underlying permissions for an existing teammate. The user must already have been granted access for this brand. Email and name are not accepted on update; existing values are reused. Returns 404 if no existing assignment is found.
|
|
3209
|
-
* @summary Update teammate access for an existing user
|
|
3210
|
-
* @param {string} orgId
|
|
3211
|
-
* @param {string} userId Target Flipdish user id (numeric string)
|
|
3212
|
-
* @param {UpdateTeammateAccessRequestBody} [updateTeammateAccessRequestBody]
|
|
3213
|
-
* @param {*} [options] Override http request option.
|
|
3214
|
-
* @throws {RequiredError}
|
|
3215
|
-
*/
|
|
3216
|
-
updateTeammateAccess: async (orgId: string, userId: string, updateTeammateAccessRequestBody?: UpdateTeammateAccessRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3217
|
-
// verify required parameter 'orgId' is not null or undefined
|
|
3218
|
-
assertParamExists('updateTeammateAccess', 'orgId', orgId)
|
|
3219
|
-
// verify required parameter 'userId' is not null or undefined
|
|
3220
|
-
assertParamExists('updateTeammateAccess', 'userId', userId)
|
|
3221
|
-
const localVarPath = `/orgs/{orgId}/users/{userId}/updateTeammateAccess`
|
|
3222
|
-
.replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)))
|
|
3223
|
-
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
3224
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3225
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3226
|
-
let baseOptions;
|
|
3227
|
-
if (configuration) {
|
|
3228
|
-
baseOptions = configuration.baseOptions;
|
|
3229
|
-
}
|
|
3230
|
-
|
|
3231
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
3232
|
-
const localVarHeaderParameter = {} as any;
|
|
3233
|
-
const localVarQueryParameter = {} as any;
|
|
3234
|
-
|
|
3235
|
-
// authentication ApiKeyAuth required
|
|
3236
|
-
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
|
|
3240
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3241
|
-
|
|
3242
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3243
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3244
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3245
|
-
localVarRequestOptions.data = serializeDataIfNeeded(updateTeammateAccessRequestBody, localVarRequestOptions, configuration)
|
|
3246
|
-
|
|
3247
3046
|
return {
|
|
3248
3047
|
url: toPathString(localVarUrlObj),
|
|
3249
3048
|
options: localVarRequestOptions,
|
|
@@ -3287,21 +3086,6 @@ export const RoleAssignmentApiFp = function(configuration?: Configuration) {
|
|
|
3287
3086
|
const localVarOperationServerBasePath = operationServerMap['RoleAssignmentApi.getPrincipalRoles']?.[localVarOperationServerIndex]?.url;
|
|
3288
3087
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3289
3088
|
},
|
|
3290
|
-
/**
|
|
3291
|
-
* Grant teammate app access and underlying permissions for a user being assigned within a brand for the first time. Email and name are persisted on first assignment only and must be supplied here.
|
|
3292
|
-
* @summary Grant teammate access to a new user
|
|
3293
|
-
* @param {string} orgId
|
|
3294
|
-
* @param {string} userId Target Flipdish user id (numeric string)
|
|
3295
|
-
* @param {GrantTeammateAccessRequestBody} [grantTeammateAccessRequestBody]
|
|
3296
|
-
* @param {*} [options] Override http request option.
|
|
3297
|
-
* @throws {RequiredError}
|
|
3298
|
-
*/
|
|
3299
|
-
async grantTeammateAccess(orgId: string, userId: string, grantTeammateAccessRequestBody?: GrantTeammateAccessRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TeammateAccessSuccessResponse>> {
|
|
3300
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.grantTeammateAccess(orgId, userId, grantTeammateAccessRequestBody, options);
|
|
3301
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3302
|
-
const localVarOperationServerBasePath = operationServerMap['RoleAssignmentApi.grantTeammateAccess']?.[localVarOperationServerIndex]?.url;
|
|
3303
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3304
|
-
},
|
|
3305
3089
|
/**
|
|
3306
3090
|
* Revokes a forbidden role from a given principal (user, group, etc.)
|
|
3307
3091
|
* @summary Revoke Forbidden Role from Principal
|
|
@@ -3330,21 +3114,6 @@ export const RoleAssignmentApiFp = function(configuration?: Configuration) {
|
|
|
3330
3114
|
const localVarOperationServerBasePath = operationServerMap['RoleAssignmentApi.revokeRoleFromPrincipal']?.[localVarOperationServerIndex]?.url;
|
|
3331
3115
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3332
3116
|
},
|
|
3333
|
-
/**
|
|
3334
|
-
* Update teammate app access and underlying permissions for an existing teammate. The user must already have been granted access for this brand. Email and name are not accepted on update; existing values are reused. Returns 404 if no existing assignment is found.
|
|
3335
|
-
* @summary Update teammate access for an existing user
|
|
3336
|
-
* @param {string} orgId
|
|
3337
|
-
* @param {string} userId Target Flipdish user id (numeric string)
|
|
3338
|
-
* @param {UpdateTeammateAccessRequestBody} [updateTeammateAccessRequestBody]
|
|
3339
|
-
* @param {*} [options] Override http request option.
|
|
3340
|
-
* @throws {RequiredError}
|
|
3341
|
-
*/
|
|
3342
|
-
async updateTeammateAccess(orgId: string, userId: string, updateTeammateAccessRequestBody?: UpdateTeammateAccessRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TeammateAccessSuccessResponse>> {
|
|
3343
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updateTeammateAccess(orgId, userId, updateTeammateAccessRequestBody, options);
|
|
3344
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3345
|
-
const localVarOperationServerBasePath = operationServerMap['RoleAssignmentApi.updateTeammateAccess']?.[localVarOperationServerIndex]?.url;
|
|
3346
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3347
|
-
},
|
|
3348
3117
|
}
|
|
3349
3118
|
};
|
|
3350
3119
|
|
|
@@ -3377,18 +3146,6 @@ export const RoleAssignmentApiFactory = function (configuration?: Configuration,
|
|
|
3377
3146
|
getPrincipalRoles(orgId: string, getPrincipalRolesRequestBody?: GetPrincipalRolesRequestBody, options?: RawAxiosRequestConfig): AxiosPromise<GetPrincipalRolesSuccessResponse> {
|
|
3378
3147
|
return localVarFp.getPrincipalRoles(orgId, getPrincipalRolesRequestBody, options).then((request) => request(axios, basePath));
|
|
3379
3148
|
},
|
|
3380
|
-
/**
|
|
3381
|
-
* Grant teammate app access and underlying permissions for a user being assigned within a brand for the first time. Email and name are persisted on first assignment only and must be supplied here.
|
|
3382
|
-
* @summary Grant teammate access to a new user
|
|
3383
|
-
* @param {string} orgId
|
|
3384
|
-
* @param {string} userId Target Flipdish user id (numeric string)
|
|
3385
|
-
* @param {GrantTeammateAccessRequestBody} [grantTeammateAccessRequestBody]
|
|
3386
|
-
* @param {*} [options] Override http request option.
|
|
3387
|
-
* @throws {RequiredError}
|
|
3388
|
-
*/
|
|
3389
|
-
grantTeammateAccess(orgId: string, userId: string, grantTeammateAccessRequestBody?: GrantTeammateAccessRequestBody, options?: RawAxiosRequestConfig): AxiosPromise<TeammateAccessSuccessResponse> {
|
|
3390
|
-
return localVarFp.grantTeammateAccess(orgId, userId, grantTeammateAccessRequestBody, options).then((request) => request(axios, basePath));
|
|
3391
|
-
},
|
|
3392
3149
|
/**
|
|
3393
3150
|
* Revokes a forbidden role from a given principal (user, group, etc.)
|
|
3394
3151
|
* @summary Revoke Forbidden Role from Principal
|
|
@@ -3411,18 +3168,6 @@ export const RoleAssignmentApiFactory = function (configuration?: Configuration,
|
|
|
3411
3168
|
revokeRoleFromPrincipal(orgId: string, revokeRoleRequestBody?: RevokeRoleRequestBody, options?: RawAxiosRequestConfig): AxiosPromise<RevokeRoleSuccessResponse> {
|
|
3412
3169
|
return localVarFp.revokeRoleFromPrincipal(orgId, revokeRoleRequestBody, options).then((request) => request(axios, basePath));
|
|
3413
3170
|
},
|
|
3414
|
-
/**
|
|
3415
|
-
* Update teammate app access and underlying permissions for an existing teammate. The user must already have been granted access for this brand. Email and name are not accepted on update; existing values are reused. Returns 404 if no existing assignment is found.
|
|
3416
|
-
* @summary Update teammate access for an existing user
|
|
3417
|
-
* @param {string} orgId
|
|
3418
|
-
* @param {string} userId Target Flipdish user id (numeric string)
|
|
3419
|
-
* @param {UpdateTeammateAccessRequestBody} [updateTeammateAccessRequestBody]
|
|
3420
|
-
* @param {*} [options] Override http request option.
|
|
3421
|
-
* @throws {RequiredError}
|
|
3422
|
-
*/
|
|
3423
|
-
updateTeammateAccess(orgId: string, userId: string, updateTeammateAccessRequestBody?: UpdateTeammateAccessRequestBody, options?: RawAxiosRequestConfig): AxiosPromise<TeammateAccessSuccessResponse> {
|
|
3424
|
-
return localVarFp.updateTeammateAccess(orgId, userId, updateTeammateAccessRequestBody, options).then((request) => request(axios, basePath));
|
|
3425
|
-
},
|
|
3426
3171
|
};
|
|
3427
3172
|
};
|
|
3428
3173
|
|
|
@@ -3459,20 +3204,6 @@ export class RoleAssignmentApi extends BaseAPI {
|
|
|
3459
3204
|
return RoleAssignmentApiFp(this.configuration).getPrincipalRoles(orgId, getPrincipalRolesRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
3460
3205
|
}
|
|
3461
3206
|
|
|
3462
|
-
/**
|
|
3463
|
-
* Grant teammate app access and underlying permissions for a user being assigned within a brand for the first time. Email and name are persisted on first assignment only and must be supplied here.
|
|
3464
|
-
* @summary Grant teammate access to a new user
|
|
3465
|
-
* @param {string} orgId
|
|
3466
|
-
* @param {string} userId Target Flipdish user id (numeric string)
|
|
3467
|
-
* @param {GrantTeammateAccessRequestBody} [grantTeammateAccessRequestBody]
|
|
3468
|
-
* @param {*} [options] Override http request option.
|
|
3469
|
-
* @throws {RequiredError}
|
|
3470
|
-
* @memberof RoleAssignmentApi
|
|
3471
|
-
*/
|
|
3472
|
-
public grantTeammateAccess(orgId: string, userId: string, grantTeammateAccessRequestBody?: GrantTeammateAccessRequestBody, options?: RawAxiosRequestConfig) {
|
|
3473
|
-
return RoleAssignmentApiFp(this.configuration).grantTeammateAccess(orgId, userId, grantTeammateAccessRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
3474
|
-
}
|
|
3475
|
-
|
|
3476
3207
|
/**
|
|
3477
3208
|
* Revokes a forbidden role from a given principal (user, group, etc.)
|
|
3478
3209
|
* @summary Revoke Forbidden Role from Principal
|
|
@@ -3498,20 +3229,6 @@ export class RoleAssignmentApi extends BaseAPI {
|
|
|
3498
3229
|
public revokeRoleFromPrincipal(orgId: string, revokeRoleRequestBody?: RevokeRoleRequestBody, options?: RawAxiosRequestConfig) {
|
|
3499
3230
|
return RoleAssignmentApiFp(this.configuration).revokeRoleFromPrincipal(orgId, revokeRoleRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
3500
3231
|
}
|
|
3501
|
-
|
|
3502
|
-
/**
|
|
3503
|
-
* Update teammate app access and underlying permissions for an existing teammate. The user must already have been granted access for this brand. Email and name are not accepted on update; existing values are reused. Returns 404 if no existing assignment is found.
|
|
3504
|
-
* @summary Update teammate access for an existing user
|
|
3505
|
-
* @param {string} orgId
|
|
3506
|
-
* @param {string} userId Target Flipdish user id (numeric string)
|
|
3507
|
-
* @param {UpdateTeammateAccessRequestBody} [updateTeammateAccessRequestBody]
|
|
3508
|
-
* @param {*} [options] Override http request option.
|
|
3509
|
-
* @throws {RequiredError}
|
|
3510
|
-
* @memberof RoleAssignmentApi
|
|
3511
|
-
*/
|
|
3512
|
-
public updateTeammateAccess(orgId: string, userId: string, updateTeammateAccessRequestBody?: UpdateTeammateAccessRequestBody, options?: RawAxiosRequestConfig) {
|
|
3513
|
-
return RoleAssignmentApiFp(this.configuration).updateTeammateAccess(orgId, userId, updateTeammateAccessRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
3514
|
-
}
|
|
3515
3232
|
}
|
|
3516
3233
|
|
|
3517
3234
|
|
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.0.
|
|
103
|
+
"user-agent": "Flipdish authorization typescript SDK / 0.0.80-rc.1776967937"
|
|
104
104
|
}
|
|
105
105
|
};
|
|
106
106
|
|
package/dist/api.d.ts
CHANGED
|
@@ -963,58 +963,6 @@ export type GetUserPermissionsSuccessResponseResourcesValueResourceTypeEnum = ty
|
|
|
963
963
|
*/
|
|
964
964
|
export interface GetUserPermissionsSuccessResponseResourcesValueResourceId {
|
|
965
965
|
}
|
|
966
|
-
/**
|
|
967
|
-
* Grant teammate app access to a user being assigned within a brand for the first time.
|
|
968
|
-
* @export
|
|
969
|
-
* @interface GrantTeammateAccessRequestBody
|
|
970
|
-
*/
|
|
971
|
-
export interface GrantTeammateAccessRequestBody {
|
|
972
|
-
/**
|
|
973
|
-
* Teammate app access level (role)
|
|
974
|
-
* @type {string}
|
|
975
|
-
* @memberof GrantTeammateAccessRequestBody
|
|
976
|
-
*/
|
|
977
|
-
'appAccessLevel': GrantTeammateAccessRequestBodyAppAccessLevelEnum;
|
|
978
|
-
/**
|
|
979
|
-
* Brand identifier (AppId); normalized to lowercase when stored
|
|
980
|
-
* @type {string}
|
|
981
|
-
* @memberof GrantTeammateAccessRequestBody
|
|
982
|
-
*/
|
|
983
|
-
'brandId': string;
|
|
984
|
-
/**
|
|
985
|
-
* Org-wide store access; when false, propertyIds are required for property-scoped roles
|
|
986
|
-
* @type {boolean}
|
|
987
|
-
* @memberof GrantTeammateAccessRequestBody
|
|
988
|
-
*/
|
|
989
|
-
'hasAccessToAllStores': boolean;
|
|
990
|
-
/**
|
|
991
|
-
* Property resource ids (e.g. p123) when scoped to properties
|
|
992
|
-
* @type {Array<string>}
|
|
993
|
-
* @memberof GrantTeammateAccessRequestBody
|
|
994
|
-
*/
|
|
995
|
-
'propertyIds'?: Array<string>;
|
|
996
|
-
/**
|
|
997
|
-
* Target user email; persisted on first assignment only
|
|
998
|
-
* @type {string}
|
|
999
|
-
* @memberof GrantTeammateAccessRequestBody
|
|
1000
|
-
*/
|
|
1001
|
-
'userEmail': string;
|
|
1002
|
-
/**
|
|
1003
|
-
* Target user display name; persisted on first assignment only
|
|
1004
|
-
* @type {string}
|
|
1005
|
-
* @memberof GrantTeammateAccessRequestBody
|
|
1006
|
-
*/
|
|
1007
|
-
'userName'?: string;
|
|
1008
|
-
}
|
|
1009
|
-
export declare const GrantTeammateAccessRequestBodyAppAccessLevelEnum: {
|
|
1010
|
-
readonly Owner: "Owner";
|
|
1011
|
-
readonly ManagedOwner: "ManagedOwner";
|
|
1012
|
-
readonly PropertyOwner: "PropertyOwner";
|
|
1013
|
-
readonly PropertyManager: "PropertyManager";
|
|
1014
|
-
readonly FinanceManager: "FinanceManager";
|
|
1015
|
-
readonly Integrator: "Integrator";
|
|
1016
|
-
};
|
|
1017
|
-
export type GrantTeammateAccessRequestBodyAppAccessLevelEnum = typeof GrantTeammateAccessRequestBodyAppAccessLevelEnum[keyof typeof GrantTeammateAccessRequestBodyAppAccessLevelEnum];
|
|
1018
966
|
/**
|
|
1019
967
|
*
|
|
1020
968
|
* @export
|
|
@@ -1624,59 +1572,6 @@ export declare const RoleNames: {
|
|
|
1624
1572
|
readonly AuthDeveloper: "AuthDeveloper";
|
|
1625
1573
|
};
|
|
1626
1574
|
export type RoleNames = typeof RoleNames[keyof typeof RoleNames];
|
|
1627
|
-
/**
|
|
1628
|
-
* Teammate access applied
|
|
1629
|
-
* @export
|
|
1630
|
-
* @interface TeammateAccessSuccessResponse
|
|
1631
|
-
*/
|
|
1632
|
-
export interface TeammateAccessSuccessResponse {
|
|
1633
|
-
/**
|
|
1634
|
-
*
|
|
1635
|
-
* @type {string}
|
|
1636
|
-
* @memberof TeammateAccessSuccessResponse
|
|
1637
|
-
*/
|
|
1638
|
-
'message': string;
|
|
1639
|
-
}
|
|
1640
|
-
/**
|
|
1641
|
-
* Update teammate app access for an existing teammate. Email and name are not accepted on update; the existing values stored against the user id are reused.
|
|
1642
|
-
* @export
|
|
1643
|
-
* @interface UpdateTeammateAccessRequestBody
|
|
1644
|
-
*/
|
|
1645
|
-
export interface UpdateTeammateAccessRequestBody {
|
|
1646
|
-
/**
|
|
1647
|
-
* Teammate app access level (role)
|
|
1648
|
-
* @type {string}
|
|
1649
|
-
* @memberof UpdateTeammateAccessRequestBody
|
|
1650
|
-
*/
|
|
1651
|
-
'appAccessLevel': UpdateTeammateAccessRequestBodyAppAccessLevelEnum;
|
|
1652
|
-
/**
|
|
1653
|
-
* Brand identifier (AppId); normalized to lowercase when stored
|
|
1654
|
-
* @type {string}
|
|
1655
|
-
* @memberof UpdateTeammateAccessRequestBody
|
|
1656
|
-
*/
|
|
1657
|
-
'brandId': string;
|
|
1658
|
-
/**
|
|
1659
|
-
* Org-wide store access; when false, propertyIds are required for property-scoped roles
|
|
1660
|
-
* @type {boolean}
|
|
1661
|
-
* @memberof UpdateTeammateAccessRequestBody
|
|
1662
|
-
*/
|
|
1663
|
-
'hasAccessToAllStores': boolean;
|
|
1664
|
-
/**
|
|
1665
|
-
* Property resource ids (e.g. p123) when scoped to properties
|
|
1666
|
-
* @type {Array<string>}
|
|
1667
|
-
* @memberof UpdateTeammateAccessRequestBody
|
|
1668
|
-
*/
|
|
1669
|
-
'propertyIds'?: Array<string>;
|
|
1670
|
-
}
|
|
1671
|
-
export declare const UpdateTeammateAccessRequestBodyAppAccessLevelEnum: {
|
|
1672
|
-
readonly Owner: "Owner";
|
|
1673
|
-
readonly ManagedOwner: "ManagedOwner";
|
|
1674
|
-
readonly PropertyOwner: "PropertyOwner";
|
|
1675
|
-
readonly PropertyManager: "PropertyManager";
|
|
1676
|
-
readonly FinanceManager: "FinanceManager";
|
|
1677
|
-
readonly Integrator: "Integrator";
|
|
1678
|
-
};
|
|
1679
|
-
export type UpdateTeammateAccessRequestBodyAppAccessLevelEnum = typeof UpdateTeammateAccessRequestBodyAppAccessLevelEnum[keyof typeof UpdateTeammateAccessRequestBodyAppAccessLevelEnum];
|
|
1680
1575
|
/**
|
|
1681
1576
|
*
|
|
1682
1577
|
* @export
|
|
@@ -2309,16 +2204,6 @@ export declare const RoleAssignmentApiAxiosParamCreator: (configuration?: Config
|
|
|
2309
2204
|
* @throws {RequiredError}
|
|
2310
2205
|
*/
|
|
2311
2206
|
getPrincipalRoles: (orgId: string, getPrincipalRolesRequestBody?: GetPrincipalRolesRequestBody, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2312
|
-
/**
|
|
2313
|
-
* Grant teammate app access and underlying permissions for a user being assigned within a brand for the first time. Email and name are persisted on first assignment only and must be supplied here.
|
|
2314
|
-
* @summary Grant teammate access to a new user
|
|
2315
|
-
* @param {string} orgId
|
|
2316
|
-
* @param {string} userId Target Flipdish user id (numeric string)
|
|
2317
|
-
* @param {GrantTeammateAccessRequestBody} [grantTeammateAccessRequestBody]
|
|
2318
|
-
* @param {*} [options] Override http request option.
|
|
2319
|
-
* @throws {RequiredError}
|
|
2320
|
-
*/
|
|
2321
|
-
grantTeammateAccess: (orgId: string, userId: string, grantTeammateAccessRequestBody?: GrantTeammateAccessRequestBody, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2322
2207
|
/**
|
|
2323
2208
|
* Revokes a forbidden role from a given principal (user, group, etc.)
|
|
2324
2209
|
* @summary Revoke Forbidden Role from Principal
|
|
@@ -2337,16 +2222,6 @@ export declare const RoleAssignmentApiAxiosParamCreator: (configuration?: Config
|
|
|
2337
2222
|
* @throws {RequiredError}
|
|
2338
2223
|
*/
|
|
2339
2224
|
revokeRoleFromPrincipal: (orgId: string, revokeRoleRequestBody?: RevokeRoleRequestBody, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2340
|
-
/**
|
|
2341
|
-
* Update teammate app access and underlying permissions for an existing teammate. The user must already have been granted access for this brand. Email and name are not accepted on update; existing values are reused. Returns 404 if no existing assignment is found.
|
|
2342
|
-
* @summary Update teammate access for an existing user
|
|
2343
|
-
* @param {string} orgId
|
|
2344
|
-
* @param {string} userId Target Flipdish user id (numeric string)
|
|
2345
|
-
* @param {UpdateTeammateAccessRequestBody} [updateTeammateAccessRequestBody]
|
|
2346
|
-
* @param {*} [options] Override http request option.
|
|
2347
|
-
* @throws {RequiredError}
|
|
2348
|
-
*/
|
|
2349
|
-
updateTeammateAccess: (orgId: string, userId: string, updateTeammateAccessRequestBody?: UpdateTeammateAccessRequestBody, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2350
2225
|
};
|
|
2351
2226
|
/**
|
|
2352
2227
|
* RoleAssignmentApi - functional programming interface
|
|
@@ -2371,16 +2246,6 @@ export declare const RoleAssignmentApiFp: (configuration?: Configuration) => {
|
|
|
2371
2246
|
* @throws {RequiredError}
|
|
2372
2247
|
*/
|
|
2373
2248
|
getPrincipalRoles(orgId: string, getPrincipalRolesRequestBody?: GetPrincipalRolesRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPrincipalRolesSuccessResponse>>;
|
|
2374
|
-
/**
|
|
2375
|
-
* Grant teammate app access and underlying permissions for a user being assigned within a brand for the first time. Email and name are persisted on first assignment only and must be supplied here.
|
|
2376
|
-
* @summary Grant teammate access to a new user
|
|
2377
|
-
* @param {string} orgId
|
|
2378
|
-
* @param {string} userId Target Flipdish user id (numeric string)
|
|
2379
|
-
* @param {GrantTeammateAccessRequestBody} [grantTeammateAccessRequestBody]
|
|
2380
|
-
* @param {*} [options] Override http request option.
|
|
2381
|
-
* @throws {RequiredError}
|
|
2382
|
-
*/
|
|
2383
|
-
grantTeammateAccess(orgId: string, userId: string, grantTeammateAccessRequestBody?: GrantTeammateAccessRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TeammateAccessSuccessResponse>>;
|
|
2384
2249
|
/**
|
|
2385
2250
|
* Revokes a forbidden role from a given principal (user, group, etc.)
|
|
2386
2251
|
* @summary Revoke Forbidden Role from Principal
|
|
@@ -2399,16 +2264,6 @@ export declare const RoleAssignmentApiFp: (configuration?: Configuration) => {
|
|
|
2399
2264
|
* @throws {RequiredError}
|
|
2400
2265
|
*/
|
|
2401
2266
|
revokeRoleFromPrincipal(orgId: string, revokeRoleRequestBody?: RevokeRoleRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RevokeRoleSuccessResponse>>;
|
|
2402
|
-
/**
|
|
2403
|
-
* Update teammate app access and underlying permissions for an existing teammate. The user must already have been granted access for this brand. Email and name are not accepted on update; existing values are reused. Returns 404 if no existing assignment is found.
|
|
2404
|
-
* @summary Update teammate access for an existing user
|
|
2405
|
-
* @param {string} orgId
|
|
2406
|
-
* @param {string} userId Target Flipdish user id (numeric string)
|
|
2407
|
-
* @param {UpdateTeammateAccessRequestBody} [updateTeammateAccessRequestBody]
|
|
2408
|
-
* @param {*} [options] Override http request option.
|
|
2409
|
-
* @throws {RequiredError}
|
|
2410
|
-
*/
|
|
2411
|
-
updateTeammateAccess(orgId: string, userId: string, updateTeammateAccessRequestBody?: UpdateTeammateAccessRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TeammateAccessSuccessResponse>>;
|
|
2412
2267
|
};
|
|
2413
2268
|
/**
|
|
2414
2269
|
* RoleAssignmentApi - factory interface
|
|
@@ -2433,16 +2288,6 @@ export declare const RoleAssignmentApiFactory: (configuration?: Configuration, b
|
|
|
2433
2288
|
* @throws {RequiredError}
|
|
2434
2289
|
*/
|
|
2435
2290
|
getPrincipalRoles(orgId: string, getPrincipalRolesRequestBody?: GetPrincipalRolesRequestBody, options?: RawAxiosRequestConfig): AxiosPromise<GetPrincipalRolesSuccessResponse>;
|
|
2436
|
-
/**
|
|
2437
|
-
* Grant teammate app access and underlying permissions for a user being assigned within a brand for the first time. Email and name are persisted on first assignment only and must be supplied here.
|
|
2438
|
-
* @summary Grant teammate access to a new user
|
|
2439
|
-
* @param {string} orgId
|
|
2440
|
-
* @param {string} userId Target Flipdish user id (numeric string)
|
|
2441
|
-
* @param {GrantTeammateAccessRequestBody} [grantTeammateAccessRequestBody]
|
|
2442
|
-
* @param {*} [options] Override http request option.
|
|
2443
|
-
* @throws {RequiredError}
|
|
2444
|
-
*/
|
|
2445
|
-
grantTeammateAccess(orgId: string, userId: string, grantTeammateAccessRequestBody?: GrantTeammateAccessRequestBody, options?: RawAxiosRequestConfig): AxiosPromise<TeammateAccessSuccessResponse>;
|
|
2446
2291
|
/**
|
|
2447
2292
|
* Revokes a forbidden role from a given principal (user, group, etc.)
|
|
2448
2293
|
* @summary Revoke Forbidden Role from Principal
|
|
@@ -2461,16 +2306,6 @@ export declare const RoleAssignmentApiFactory: (configuration?: Configuration, b
|
|
|
2461
2306
|
* @throws {RequiredError}
|
|
2462
2307
|
*/
|
|
2463
2308
|
revokeRoleFromPrincipal(orgId: string, revokeRoleRequestBody?: RevokeRoleRequestBody, options?: RawAxiosRequestConfig): AxiosPromise<RevokeRoleSuccessResponse>;
|
|
2464
|
-
/**
|
|
2465
|
-
* Update teammate app access and underlying permissions for an existing teammate. The user must already have been granted access for this brand. Email and name are not accepted on update; existing values are reused. Returns 404 if no existing assignment is found.
|
|
2466
|
-
* @summary Update teammate access for an existing user
|
|
2467
|
-
* @param {string} orgId
|
|
2468
|
-
* @param {string} userId Target Flipdish user id (numeric string)
|
|
2469
|
-
* @param {UpdateTeammateAccessRequestBody} [updateTeammateAccessRequestBody]
|
|
2470
|
-
* @param {*} [options] Override http request option.
|
|
2471
|
-
* @throws {RequiredError}
|
|
2472
|
-
*/
|
|
2473
|
-
updateTeammateAccess(orgId: string, userId: string, updateTeammateAccessRequestBody?: UpdateTeammateAccessRequestBody, options?: RawAxiosRequestConfig): AxiosPromise<TeammateAccessSuccessResponse>;
|
|
2474
2309
|
};
|
|
2475
2310
|
/**
|
|
2476
2311
|
* RoleAssignmentApi - object-oriented interface
|
|
@@ -2499,17 +2334,6 @@ export declare class RoleAssignmentApi extends BaseAPI {
|
|
|
2499
2334
|
* @memberof RoleAssignmentApi
|
|
2500
2335
|
*/
|
|
2501
2336
|
getPrincipalRoles(orgId: string, getPrincipalRolesRequestBody?: GetPrincipalRolesRequestBody, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPrincipalRolesSuccessResponse, any, {}>>;
|
|
2502
|
-
/**
|
|
2503
|
-
* Grant teammate app access and underlying permissions for a user being assigned within a brand for the first time. Email and name are persisted on first assignment only and must be supplied here.
|
|
2504
|
-
* @summary Grant teammate access to a new user
|
|
2505
|
-
* @param {string} orgId
|
|
2506
|
-
* @param {string} userId Target Flipdish user id (numeric string)
|
|
2507
|
-
* @param {GrantTeammateAccessRequestBody} [grantTeammateAccessRequestBody]
|
|
2508
|
-
* @param {*} [options] Override http request option.
|
|
2509
|
-
* @throws {RequiredError}
|
|
2510
|
-
* @memberof RoleAssignmentApi
|
|
2511
|
-
*/
|
|
2512
|
-
grantTeammateAccess(orgId: string, userId: string, grantTeammateAccessRequestBody?: GrantTeammateAccessRequestBody, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TeammateAccessSuccessResponse, any, {}>>;
|
|
2513
2337
|
/**
|
|
2514
2338
|
* Revokes a forbidden role from a given principal (user, group, etc.)
|
|
2515
2339
|
* @summary Revoke Forbidden Role from Principal
|
|
@@ -2530,17 +2354,6 @@ export declare class RoleAssignmentApi extends BaseAPI {
|
|
|
2530
2354
|
* @memberof RoleAssignmentApi
|
|
2531
2355
|
*/
|
|
2532
2356
|
revokeRoleFromPrincipal(orgId: string, revokeRoleRequestBody?: RevokeRoleRequestBody, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<RevokeRoleSuccessResponse, any, {}>>;
|
|
2533
|
-
/**
|
|
2534
|
-
* Update teammate app access and underlying permissions for an existing teammate. The user must already have been granted access for this brand. Email and name are not accepted on update; existing values are reused. Returns 404 if no existing assignment is found.
|
|
2535
|
-
* @summary Update teammate access for an existing user
|
|
2536
|
-
* @param {string} orgId
|
|
2537
|
-
* @param {string} userId Target Flipdish user id (numeric string)
|
|
2538
|
-
* @param {UpdateTeammateAccessRequestBody} [updateTeammateAccessRequestBody]
|
|
2539
|
-
* @param {*} [options] Override http request option.
|
|
2540
|
-
* @throws {RequiredError}
|
|
2541
|
-
* @memberof RoleAssignmentApi
|
|
2542
|
-
*/
|
|
2543
|
-
updateTeammateAccess(orgId: string, userId: string, updateTeammateAccessRequestBody?: UpdateTeammateAccessRequestBody, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TeammateAccessSuccessResponse, any, {}>>;
|
|
2544
2357
|
}
|
|
2545
2358
|
/**
|
|
2546
2359
|
* UserManagementApi - axios parameter creator
|
package/dist/api.js
CHANGED
|
@@ -84,8 +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.UserPermissionsApiFactory = exports.UserPermissionsApiFp = exports.UserPermissionsApiAxiosParamCreator = exports.UserManagementApi = exports.UserManagementApiFactory = exports.UserManagementApiFp = exports.UserManagementApiAxiosParamCreator = exports.RoleAssignmentApi = exports.RoleAssignmentApiFactory = exports.RoleAssignmentApiFp = exports.RoleAssignmentApiAxiosParamCreator = exports.ConfigurationDataApi = exports.ConfigurationDataApiFactory = exports.ConfigurationDataApiFp = exports.ConfigurationDataApiAxiosParamCreator = exports.AuthorizedEntitiesApi = exports.AuthorizedEntitiesApiFactory = exports.AuthorizedEntitiesApiFp = exports.AuthorizedEntitiesApiAxiosParamCreator = exports.AuthorizationApi = exports.AuthorizationApiFactory = exports.AuthorizationApiFp = exports.AuthorizationApiAxiosParamCreator = exports.AuthenticationApi = exports.AuthenticationApiFactory = exports.AuthenticationApiFp = exports.AuthenticationApiAxiosParamCreator = exports.
|
|
88
|
-
exports.UserPermissionsApi = void 0;
|
|
87
|
+
exports.UserPermissionsApi = exports.UserPermissionsApiFactory = exports.UserPermissionsApiFp = exports.UserPermissionsApiAxiosParamCreator = exports.UserManagementApi = exports.UserManagementApiFactory = exports.UserManagementApiFp = exports.UserManagementApiAxiosParamCreator = exports.RoleAssignmentApi = exports.RoleAssignmentApiFactory = exports.RoleAssignmentApiFp = exports.RoleAssignmentApiAxiosParamCreator = exports.ConfigurationDataApi = exports.ConfigurationDataApiFactory = exports.ConfigurationDataApiFp = exports.ConfigurationDataApiAxiosParamCreator = exports.AuthorizedEntitiesApi = exports.AuthorizedEntitiesApiFactory = exports.AuthorizedEntitiesApiFp = exports.AuthorizedEntitiesApiAxiosParamCreator = exports.AuthorizationApi = exports.AuthorizationApiFactory = exports.AuthorizationApiFp = exports.AuthorizationApiAxiosParamCreator = exports.AuthenticationApi = exports.AuthenticationApiFactory = exports.AuthenticationApiFp = exports.AuthenticationApiAxiosParamCreator = exports.RoleNames = exports.RevokeRoleRequestBodyRoleEnum = exports.RevokeForbiddenRoleRequestBodyCompensatingRoleEnum = exports.Permissions = exports.ListOrgRolesSuccessResponseValueValueRolesEnum = exports.ListOrgRolesSuccessResponseValueValueResourceTypeEnum = exports.IsInRoleRequestCheckModeEnum = exports.GetUserPermissionsSuccessResponseResourcesValueResourceTypeEnum = exports.GetPrincipalRolesSuccessResponseRolesInnerPrincipalTypeEnum = exports.GetPrincipalRolesSuccessResponseRolesInnerResourceTypeEnum = exports.GetPrincipalRolesSuccessResponseRolesInnerPolicyTypeEnum = exports.GetAuthorizedOrgsRequestPrincipalTypeEnum = exports.AuthorizationRequestResourceOneOf3TypeEnum = exports.AuthorizationRequestResourceOneOf2TypeEnum = exports.AuthorizationRequestResourceOneOf1TypeEnum = exports.AuthorizationRequestResourceOneOfTypeEnum = exports.AuthorizationRequestPrincipalTypeEnum = exports.AuthorizationRequestCheckModeEnum = exports.AuthenticateAndCheckIsInRoleRequestCheckModeEnum = exports.AuthenticateAndAuthorizeRequestCheckModeEnum = exports.AssignRoleRequestBodyRoleEnum = void 0;
|
|
89
88
|
var axios_1 = require("axios");
|
|
90
89
|
// Some imports not used depending on template conditions
|
|
91
90
|
// @ts-ignore
|
|
@@ -221,14 +220,6 @@ exports.GetUserPermissionsSuccessResponseResourcesValueResourceTypeEnum = {
|
|
|
221
220
|
Brand: 'Brand',
|
|
222
221
|
SalesChannel: 'SalesChannel'
|
|
223
222
|
};
|
|
224
|
-
exports.GrantTeammateAccessRequestBodyAppAccessLevelEnum = {
|
|
225
|
-
Owner: 'Owner',
|
|
226
|
-
ManagedOwner: 'ManagedOwner',
|
|
227
|
-
PropertyOwner: 'PropertyOwner',
|
|
228
|
-
PropertyManager: 'PropertyManager',
|
|
229
|
-
FinanceManager: 'FinanceManager',
|
|
230
|
-
Integrator: 'Integrator'
|
|
231
|
-
};
|
|
232
223
|
exports.IsInRoleRequestCheckModeEnum = {
|
|
233
224
|
Any: 'any',
|
|
234
225
|
All: 'all'
|
|
@@ -641,14 +632,6 @@ exports.RoleNames = {
|
|
|
641
632
|
Factory: 'Factory',
|
|
642
633
|
AuthDeveloper: 'AuthDeveloper'
|
|
643
634
|
};
|
|
644
|
-
exports.UpdateTeammateAccessRequestBodyAppAccessLevelEnum = {
|
|
645
|
-
Owner: 'Owner',
|
|
646
|
-
ManagedOwner: 'ManagedOwner',
|
|
647
|
-
PropertyOwner: 'PropertyOwner',
|
|
648
|
-
PropertyManager: 'PropertyManager',
|
|
649
|
-
FinanceManager: 'FinanceManager',
|
|
650
|
-
Integrator: 'Integrator'
|
|
651
|
-
};
|
|
652
635
|
/**
|
|
653
636
|
* AuthenticationApi - axios parameter creator
|
|
654
637
|
* @export
|
|
@@ -2245,58 +2228,6 @@ var RoleAssignmentApiAxiosParamCreator = function (configuration) {
|
|
|
2245
2228
|
});
|
|
2246
2229
|
});
|
|
2247
2230
|
},
|
|
2248
|
-
/**
|
|
2249
|
-
* Grant teammate app access and underlying permissions for a user being assigned within a brand for the first time. Email and name are persisted on first assignment only and must be supplied here.
|
|
2250
|
-
* @summary Grant teammate access to a new user
|
|
2251
|
-
* @param {string} orgId
|
|
2252
|
-
* @param {string} userId Target Flipdish user id (numeric string)
|
|
2253
|
-
* @param {GrantTeammateAccessRequestBody} [grantTeammateAccessRequestBody]
|
|
2254
|
-
* @param {*} [options] Override http request option.
|
|
2255
|
-
* @throws {RequiredError}
|
|
2256
|
-
*/
|
|
2257
|
-
grantTeammateAccess: function (orgId_1, userId_1, grantTeammateAccessRequestBody_1) {
|
|
2258
|
-
var args_1 = [];
|
|
2259
|
-
for (var _i = 3; _i < arguments.length; _i++) {
|
|
2260
|
-
args_1[_i - 3] = arguments[_i];
|
|
2261
|
-
}
|
|
2262
|
-
return __awaiter(_this, __spreadArray([orgId_1, userId_1, grantTeammateAccessRequestBody_1], args_1, true), void 0, function (orgId, userId, grantTeammateAccessRequestBody, options) {
|
|
2263
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
2264
|
-
if (options === void 0) { options = {}; }
|
|
2265
|
-
return __generator(this, function (_a) {
|
|
2266
|
-
switch (_a.label) {
|
|
2267
|
-
case 0:
|
|
2268
|
-
// verify required parameter 'orgId' is not null or undefined
|
|
2269
|
-
(0, common_1.assertParamExists)('grantTeammateAccess', 'orgId', orgId);
|
|
2270
|
-
// verify required parameter 'userId' is not null or undefined
|
|
2271
|
-
(0, common_1.assertParamExists)('grantTeammateAccess', 'userId', userId);
|
|
2272
|
-
localVarPath = "/orgs/{orgId}/users/{userId}/grantTeammateAccess"
|
|
2273
|
-
.replace("{".concat("orgId", "}"), encodeURIComponent(String(orgId)))
|
|
2274
|
-
.replace("{".concat("userId", "}"), encodeURIComponent(String(userId)));
|
|
2275
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2276
|
-
if (configuration) {
|
|
2277
|
-
baseOptions = configuration.baseOptions;
|
|
2278
|
-
}
|
|
2279
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
2280
|
-
localVarHeaderParameter = {};
|
|
2281
|
-
localVarQueryParameter = {};
|
|
2282
|
-
// authentication ApiKeyAuth required
|
|
2283
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
2284
|
-
case 1:
|
|
2285
|
-
// authentication ApiKeyAuth required
|
|
2286
|
-
_a.sent();
|
|
2287
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2288
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2289
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2290
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2291
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(grantTeammateAccessRequestBody, localVarRequestOptions, configuration);
|
|
2292
|
-
return [2 /*return*/, {
|
|
2293
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2294
|
-
options: localVarRequestOptions,
|
|
2295
|
-
}];
|
|
2296
|
-
}
|
|
2297
|
-
});
|
|
2298
|
-
});
|
|
2299
|
-
},
|
|
2300
2231
|
/**
|
|
2301
2232
|
* Revokes a forbidden role from a given principal (user, group, etc.)
|
|
2302
2233
|
* @summary Revoke Forbidden Role from Principal
|
|
@@ -2393,58 +2324,6 @@ var RoleAssignmentApiAxiosParamCreator = function (configuration) {
|
|
|
2393
2324
|
});
|
|
2394
2325
|
});
|
|
2395
2326
|
},
|
|
2396
|
-
/**
|
|
2397
|
-
* Update teammate app access and underlying permissions for an existing teammate. The user must already have been granted access for this brand. Email and name are not accepted on update; existing values are reused. Returns 404 if no existing assignment is found.
|
|
2398
|
-
* @summary Update teammate access for an existing user
|
|
2399
|
-
* @param {string} orgId
|
|
2400
|
-
* @param {string} userId Target Flipdish user id (numeric string)
|
|
2401
|
-
* @param {UpdateTeammateAccessRequestBody} [updateTeammateAccessRequestBody]
|
|
2402
|
-
* @param {*} [options] Override http request option.
|
|
2403
|
-
* @throws {RequiredError}
|
|
2404
|
-
*/
|
|
2405
|
-
updateTeammateAccess: function (orgId_1, userId_1, updateTeammateAccessRequestBody_1) {
|
|
2406
|
-
var args_1 = [];
|
|
2407
|
-
for (var _i = 3; _i < arguments.length; _i++) {
|
|
2408
|
-
args_1[_i - 3] = arguments[_i];
|
|
2409
|
-
}
|
|
2410
|
-
return __awaiter(_this, __spreadArray([orgId_1, userId_1, updateTeammateAccessRequestBody_1], args_1, true), void 0, function (orgId, userId, updateTeammateAccessRequestBody, options) {
|
|
2411
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
2412
|
-
if (options === void 0) { options = {}; }
|
|
2413
|
-
return __generator(this, function (_a) {
|
|
2414
|
-
switch (_a.label) {
|
|
2415
|
-
case 0:
|
|
2416
|
-
// verify required parameter 'orgId' is not null or undefined
|
|
2417
|
-
(0, common_1.assertParamExists)('updateTeammateAccess', 'orgId', orgId);
|
|
2418
|
-
// verify required parameter 'userId' is not null or undefined
|
|
2419
|
-
(0, common_1.assertParamExists)('updateTeammateAccess', 'userId', userId);
|
|
2420
|
-
localVarPath = "/orgs/{orgId}/users/{userId}/updateTeammateAccess"
|
|
2421
|
-
.replace("{".concat("orgId", "}"), encodeURIComponent(String(orgId)))
|
|
2422
|
-
.replace("{".concat("userId", "}"), encodeURIComponent(String(userId)));
|
|
2423
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2424
|
-
if (configuration) {
|
|
2425
|
-
baseOptions = configuration.baseOptions;
|
|
2426
|
-
}
|
|
2427
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
2428
|
-
localVarHeaderParameter = {};
|
|
2429
|
-
localVarQueryParameter = {};
|
|
2430
|
-
// authentication ApiKeyAuth required
|
|
2431
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
2432
|
-
case 1:
|
|
2433
|
-
// authentication ApiKeyAuth required
|
|
2434
|
-
_a.sent();
|
|
2435
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2436
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2437
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2438
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2439
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateTeammateAccessRequestBody, localVarRequestOptions, configuration);
|
|
2440
|
-
return [2 /*return*/, {
|
|
2441
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2442
|
-
options: localVarRequestOptions,
|
|
2443
|
-
}];
|
|
2444
|
-
}
|
|
2445
|
-
});
|
|
2446
|
-
});
|
|
2447
|
-
},
|
|
2448
2327
|
};
|
|
2449
2328
|
};
|
|
2450
2329
|
exports.RoleAssignmentApiAxiosParamCreator = RoleAssignmentApiAxiosParamCreator;
|
|
@@ -2503,31 +2382,6 @@ var RoleAssignmentApiFp = function (configuration) {
|
|
|
2503
2382
|
});
|
|
2504
2383
|
});
|
|
2505
2384
|
},
|
|
2506
|
-
/**
|
|
2507
|
-
* Grant teammate app access and underlying permissions for a user being assigned within a brand for the first time. Email and name are persisted on first assignment only and must be supplied here.
|
|
2508
|
-
* @summary Grant teammate access to a new user
|
|
2509
|
-
* @param {string} orgId
|
|
2510
|
-
* @param {string} userId Target Flipdish user id (numeric string)
|
|
2511
|
-
* @param {GrantTeammateAccessRequestBody} [grantTeammateAccessRequestBody]
|
|
2512
|
-
* @param {*} [options] Override http request option.
|
|
2513
|
-
* @throws {RequiredError}
|
|
2514
|
-
*/
|
|
2515
|
-
grantTeammateAccess: function (orgId, userId, grantTeammateAccessRequestBody, options) {
|
|
2516
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2517
|
-
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
2518
|
-
var _a, _b, _c;
|
|
2519
|
-
return __generator(this, function (_d) {
|
|
2520
|
-
switch (_d.label) {
|
|
2521
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.grantTeammateAccess(orgId, userId, grantTeammateAccessRequestBody, options)];
|
|
2522
|
-
case 1:
|
|
2523
|
-
localVarAxiosArgs = _d.sent();
|
|
2524
|
-
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2525
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RoleAssignmentApi.grantTeammateAccess']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2526
|
-
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
2527
|
-
}
|
|
2528
|
-
});
|
|
2529
|
-
});
|
|
2530
|
-
},
|
|
2531
2385
|
/**
|
|
2532
2386
|
* Revokes a forbidden role from a given principal (user, group, etc.)
|
|
2533
2387
|
* @summary Revoke Forbidden Role from Principal
|
|
@@ -2576,31 +2430,6 @@ var RoleAssignmentApiFp = function (configuration) {
|
|
|
2576
2430
|
});
|
|
2577
2431
|
});
|
|
2578
2432
|
},
|
|
2579
|
-
/**
|
|
2580
|
-
* Update teammate app access and underlying permissions for an existing teammate. The user must already have been granted access for this brand. Email and name are not accepted on update; existing values are reused. Returns 404 if no existing assignment is found.
|
|
2581
|
-
* @summary Update teammate access for an existing user
|
|
2582
|
-
* @param {string} orgId
|
|
2583
|
-
* @param {string} userId Target Flipdish user id (numeric string)
|
|
2584
|
-
* @param {UpdateTeammateAccessRequestBody} [updateTeammateAccessRequestBody]
|
|
2585
|
-
* @param {*} [options] Override http request option.
|
|
2586
|
-
* @throws {RequiredError}
|
|
2587
|
-
*/
|
|
2588
|
-
updateTeammateAccess: function (orgId, userId, updateTeammateAccessRequestBody, options) {
|
|
2589
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2590
|
-
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
2591
|
-
var _a, _b, _c;
|
|
2592
|
-
return __generator(this, function (_d) {
|
|
2593
|
-
switch (_d.label) {
|
|
2594
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateTeammateAccess(orgId, userId, updateTeammateAccessRequestBody, options)];
|
|
2595
|
-
case 1:
|
|
2596
|
-
localVarAxiosArgs = _d.sent();
|
|
2597
|
-
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2598
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RoleAssignmentApi.updateTeammateAccess']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2599
|
-
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
2600
|
-
}
|
|
2601
|
-
});
|
|
2602
|
-
});
|
|
2603
|
-
},
|
|
2604
2433
|
};
|
|
2605
2434
|
};
|
|
2606
2435
|
exports.RoleAssignmentApiFp = RoleAssignmentApiFp;
|
|
@@ -2633,18 +2462,6 @@ var RoleAssignmentApiFactory = function (configuration, basePath, axios) {
|
|
|
2633
2462
|
getPrincipalRoles: function (orgId, getPrincipalRolesRequestBody, options) {
|
|
2634
2463
|
return localVarFp.getPrincipalRoles(orgId, getPrincipalRolesRequestBody, options).then(function (request) { return request(axios, basePath); });
|
|
2635
2464
|
},
|
|
2636
|
-
/**
|
|
2637
|
-
* Grant teammate app access and underlying permissions for a user being assigned within a brand for the first time. Email and name are persisted on first assignment only and must be supplied here.
|
|
2638
|
-
* @summary Grant teammate access to a new user
|
|
2639
|
-
* @param {string} orgId
|
|
2640
|
-
* @param {string} userId Target Flipdish user id (numeric string)
|
|
2641
|
-
* @param {GrantTeammateAccessRequestBody} [grantTeammateAccessRequestBody]
|
|
2642
|
-
* @param {*} [options] Override http request option.
|
|
2643
|
-
* @throws {RequiredError}
|
|
2644
|
-
*/
|
|
2645
|
-
grantTeammateAccess: function (orgId, userId, grantTeammateAccessRequestBody, options) {
|
|
2646
|
-
return localVarFp.grantTeammateAccess(orgId, userId, grantTeammateAccessRequestBody, options).then(function (request) { return request(axios, basePath); });
|
|
2647
|
-
},
|
|
2648
2465
|
/**
|
|
2649
2466
|
* Revokes a forbidden role from a given principal (user, group, etc.)
|
|
2650
2467
|
* @summary Revoke Forbidden Role from Principal
|
|
@@ -2667,18 +2484,6 @@ var RoleAssignmentApiFactory = function (configuration, basePath, axios) {
|
|
|
2667
2484
|
revokeRoleFromPrincipal: function (orgId, revokeRoleRequestBody, options) {
|
|
2668
2485
|
return localVarFp.revokeRoleFromPrincipal(orgId, revokeRoleRequestBody, options).then(function (request) { return request(axios, basePath); });
|
|
2669
2486
|
},
|
|
2670
|
-
/**
|
|
2671
|
-
* Update teammate app access and underlying permissions for an existing teammate. The user must already have been granted access for this brand. Email and name are not accepted on update; existing values are reused. Returns 404 if no existing assignment is found.
|
|
2672
|
-
* @summary Update teammate access for an existing user
|
|
2673
|
-
* @param {string} orgId
|
|
2674
|
-
* @param {string} userId Target Flipdish user id (numeric string)
|
|
2675
|
-
* @param {UpdateTeammateAccessRequestBody} [updateTeammateAccessRequestBody]
|
|
2676
|
-
* @param {*} [options] Override http request option.
|
|
2677
|
-
* @throws {RequiredError}
|
|
2678
|
-
*/
|
|
2679
|
-
updateTeammateAccess: function (orgId, userId, updateTeammateAccessRequestBody, options) {
|
|
2680
|
-
return localVarFp.updateTeammateAccess(orgId, userId, updateTeammateAccessRequestBody, options).then(function (request) { return request(axios, basePath); });
|
|
2681
|
-
},
|
|
2682
2487
|
};
|
|
2683
2488
|
};
|
|
2684
2489
|
exports.RoleAssignmentApiFactory = RoleAssignmentApiFactory;
|
|
@@ -2719,20 +2524,6 @@ var RoleAssignmentApi = /** @class */ (function (_super) {
|
|
|
2719
2524
|
var _this = this;
|
|
2720
2525
|
return (0, exports.RoleAssignmentApiFp)(this.configuration).getPrincipalRoles(orgId, getPrincipalRolesRequestBody, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2721
2526
|
};
|
|
2722
|
-
/**
|
|
2723
|
-
* Grant teammate app access and underlying permissions for a user being assigned within a brand for the first time. Email and name are persisted on first assignment only and must be supplied here.
|
|
2724
|
-
* @summary Grant teammate access to a new user
|
|
2725
|
-
* @param {string} orgId
|
|
2726
|
-
* @param {string} userId Target Flipdish user id (numeric string)
|
|
2727
|
-
* @param {GrantTeammateAccessRequestBody} [grantTeammateAccessRequestBody]
|
|
2728
|
-
* @param {*} [options] Override http request option.
|
|
2729
|
-
* @throws {RequiredError}
|
|
2730
|
-
* @memberof RoleAssignmentApi
|
|
2731
|
-
*/
|
|
2732
|
-
RoleAssignmentApi.prototype.grantTeammateAccess = function (orgId, userId, grantTeammateAccessRequestBody, options) {
|
|
2733
|
-
var _this = this;
|
|
2734
|
-
return (0, exports.RoleAssignmentApiFp)(this.configuration).grantTeammateAccess(orgId, userId, grantTeammateAccessRequestBody, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2735
|
-
};
|
|
2736
2527
|
/**
|
|
2737
2528
|
* Revokes a forbidden role from a given principal (user, group, etc.)
|
|
2738
2529
|
* @summary Revoke Forbidden Role from Principal
|
|
@@ -2759,20 +2550,6 @@ var RoleAssignmentApi = /** @class */ (function (_super) {
|
|
|
2759
2550
|
var _this = this;
|
|
2760
2551
|
return (0, exports.RoleAssignmentApiFp)(this.configuration).revokeRoleFromPrincipal(orgId, revokeRoleRequestBody, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2761
2552
|
};
|
|
2762
|
-
/**
|
|
2763
|
-
* Update teammate app access and underlying permissions for an existing teammate. The user must already have been granted access for this brand. Email and name are not accepted on update; existing values are reused. Returns 404 if no existing assignment is found.
|
|
2764
|
-
* @summary Update teammate access for an existing user
|
|
2765
|
-
* @param {string} orgId
|
|
2766
|
-
* @param {string} userId Target Flipdish user id (numeric string)
|
|
2767
|
-
* @param {UpdateTeammateAccessRequestBody} [updateTeammateAccessRequestBody]
|
|
2768
|
-
* @param {*} [options] Override http request option.
|
|
2769
|
-
* @throws {RequiredError}
|
|
2770
|
-
* @memberof RoleAssignmentApi
|
|
2771
|
-
*/
|
|
2772
|
-
RoleAssignmentApi.prototype.updateTeammateAccess = function (orgId, userId, updateTeammateAccessRequestBody, options) {
|
|
2773
|
-
var _this = this;
|
|
2774
|
-
return (0, exports.RoleAssignmentApiFp)(this.configuration).updateTeammateAccess(orgId, userId, updateTeammateAccessRequestBody, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2775
|
-
};
|
|
2776
2553
|
return RoleAssignmentApi;
|
|
2777
2554
|
}(base_1.BaseAPI));
|
|
2778
2555
|
exports.RoleAssignmentApi = RoleAssignmentApi;
|
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.0.
|
|
39
|
+
"user-agent": "Flipdish authorization typescript SDK / 0.0.80-rc.1776967937"
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
42
|
this.baseOptions = __assign(__assign({}, extraHeaders), param.baseOptions);
|
package/package.json
CHANGED