@flipdish/authorization 0.0.87-rc.1776977672 → 0.0.89-rc.1777021402
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 +283 -0
- package/configuration.ts +1 -1
- package/dist/api.d.ts +187 -0
- package/dist/api.js +224 -1
- package/dist/configuration.js +1 -1
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -1009,6 +1009,61 @@ 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
|
+
|
|
1012
1067
|
/**
|
|
1013
1068
|
*
|
|
1014
1069
|
* @export
|
|
@@ -1639,6 +1694,62 @@ export const RoleNames = {
|
|
|
1639
1694
|
export type RoleNames = typeof RoleNames[keyof typeof RoleNames];
|
|
1640
1695
|
|
|
1641
1696
|
|
|
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
|
+
|
|
1642
1753
|
/**
|
|
1643
1754
|
*
|
|
1644
1755
|
* @export
|
|
@@ -2966,6 +3077,51 @@ export const RoleAssignmentApiAxiosParamCreator = function (configuration?: Conf
|
|
|
2966
3077
|
options: localVarRequestOptions,
|
|
2967
3078
|
};
|
|
2968
3079
|
},
|
|
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
|
+
},
|
|
2969
3125
|
/**
|
|
2970
3126
|
* Revokes a forbidden role from a given principal (user, group, etc.)
|
|
2971
3127
|
* @summary Revoke Forbidden Role from Principal
|
|
@@ -3043,6 +3199,51 @@ export const RoleAssignmentApiAxiosParamCreator = function (configuration?: Conf
|
|
|
3043
3199
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3044
3200
|
localVarRequestOptions.data = serializeDataIfNeeded(revokeRoleRequestBody, localVarRequestOptions, configuration)
|
|
3045
3201
|
|
|
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
|
+
|
|
3046
3247
|
return {
|
|
3047
3248
|
url: toPathString(localVarUrlObj),
|
|
3048
3249
|
options: localVarRequestOptions,
|
|
@@ -3086,6 +3287,21 @@ export const RoleAssignmentApiFp = function(configuration?: Configuration) {
|
|
|
3086
3287
|
const localVarOperationServerBasePath = operationServerMap['RoleAssignmentApi.getPrincipalRoles']?.[localVarOperationServerIndex]?.url;
|
|
3087
3288
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3088
3289
|
},
|
|
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
|
+
},
|
|
3089
3305
|
/**
|
|
3090
3306
|
* Revokes a forbidden role from a given principal (user, group, etc.)
|
|
3091
3307
|
* @summary Revoke Forbidden Role from Principal
|
|
@@ -3114,6 +3330,21 @@ export const RoleAssignmentApiFp = function(configuration?: Configuration) {
|
|
|
3114
3330
|
const localVarOperationServerBasePath = operationServerMap['RoleAssignmentApi.revokeRoleFromPrincipal']?.[localVarOperationServerIndex]?.url;
|
|
3115
3331
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3116
3332
|
},
|
|
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
|
+
},
|
|
3117
3348
|
}
|
|
3118
3349
|
};
|
|
3119
3350
|
|
|
@@ -3146,6 +3377,18 @@ export const RoleAssignmentApiFactory = function (configuration?: Configuration,
|
|
|
3146
3377
|
getPrincipalRoles(orgId: string, getPrincipalRolesRequestBody?: GetPrincipalRolesRequestBody, options?: RawAxiosRequestConfig): AxiosPromise<GetPrincipalRolesSuccessResponse> {
|
|
3147
3378
|
return localVarFp.getPrincipalRoles(orgId, getPrincipalRolesRequestBody, options).then((request) => request(axios, basePath));
|
|
3148
3379
|
},
|
|
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
|
+
},
|
|
3149
3392
|
/**
|
|
3150
3393
|
* Revokes a forbidden role from a given principal (user, group, etc.)
|
|
3151
3394
|
* @summary Revoke Forbidden Role from Principal
|
|
@@ -3168,6 +3411,18 @@ export const RoleAssignmentApiFactory = function (configuration?: Configuration,
|
|
|
3168
3411
|
revokeRoleFromPrincipal(orgId: string, revokeRoleRequestBody?: RevokeRoleRequestBody, options?: RawAxiosRequestConfig): AxiosPromise<RevokeRoleSuccessResponse> {
|
|
3169
3412
|
return localVarFp.revokeRoleFromPrincipal(orgId, revokeRoleRequestBody, options).then((request) => request(axios, basePath));
|
|
3170
3413
|
},
|
|
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
|
+
},
|
|
3171
3426
|
};
|
|
3172
3427
|
};
|
|
3173
3428
|
|
|
@@ -3204,6 +3459,20 @@ export class RoleAssignmentApi extends BaseAPI {
|
|
|
3204
3459
|
return RoleAssignmentApiFp(this.configuration).getPrincipalRoles(orgId, getPrincipalRolesRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
3205
3460
|
}
|
|
3206
3461
|
|
|
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
|
+
|
|
3207
3476
|
/**
|
|
3208
3477
|
* Revokes a forbidden role from a given principal (user, group, etc.)
|
|
3209
3478
|
* @summary Revoke Forbidden Role from Principal
|
|
@@ -3229,6 +3498,20 @@ export class RoleAssignmentApi extends BaseAPI {
|
|
|
3229
3498
|
public revokeRoleFromPrincipal(orgId: string, revokeRoleRequestBody?: RevokeRoleRequestBody, options?: RawAxiosRequestConfig) {
|
|
3230
3499
|
return RoleAssignmentApiFp(this.configuration).revokeRoleFromPrincipal(orgId, revokeRoleRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
3231
3500
|
}
|
|
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
|
+
}
|
|
3232
3515
|
}
|
|
3233
3516
|
|
|
3234
3517
|
|
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.89-rc.1777021402"
|
|
104
104
|
}
|
|
105
105
|
};
|
|
106
106
|
|
package/dist/api.d.ts
CHANGED
|
@@ -963,6 +963,58 @@ 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];
|
|
966
1018
|
/**
|
|
967
1019
|
*
|
|
968
1020
|
* @export
|
|
@@ -1572,6 +1624,59 @@ export declare const RoleNames: {
|
|
|
1572
1624
|
readonly AuthDeveloper: "AuthDeveloper";
|
|
1573
1625
|
};
|
|
1574
1626
|
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];
|
|
1575
1680
|
/**
|
|
1576
1681
|
*
|
|
1577
1682
|
* @export
|
|
@@ -2204,6 +2309,16 @@ export declare const RoleAssignmentApiAxiosParamCreator: (configuration?: Config
|
|
|
2204
2309
|
* @throws {RequiredError}
|
|
2205
2310
|
*/
|
|
2206
2311
|
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>;
|
|
2207
2322
|
/**
|
|
2208
2323
|
* Revokes a forbidden role from a given principal (user, group, etc.)
|
|
2209
2324
|
* @summary Revoke Forbidden Role from Principal
|
|
@@ -2222,6 +2337,16 @@ export declare const RoleAssignmentApiAxiosParamCreator: (configuration?: Config
|
|
|
2222
2337
|
* @throws {RequiredError}
|
|
2223
2338
|
*/
|
|
2224
2339
|
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>;
|
|
2225
2350
|
};
|
|
2226
2351
|
/**
|
|
2227
2352
|
* RoleAssignmentApi - functional programming interface
|
|
@@ -2246,6 +2371,16 @@ export declare const RoleAssignmentApiFp: (configuration?: Configuration) => {
|
|
|
2246
2371
|
* @throws {RequiredError}
|
|
2247
2372
|
*/
|
|
2248
2373
|
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>>;
|
|
2249
2384
|
/**
|
|
2250
2385
|
* Revokes a forbidden role from a given principal (user, group, etc.)
|
|
2251
2386
|
* @summary Revoke Forbidden Role from Principal
|
|
@@ -2264,6 +2399,16 @@ export declare const RoleAssignmentApiFp: (configuration?: Configuration) => {
|
|
|
2264
2399
|
* @throws {RequiredError}
|
|
2265
2400
|
*/
|
|
2266
2401
|
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>>;
|
|
2267
2412
|
};
|
|
2268
2413
|
/**
|
|
2269
2414
|
* RoleAssignmentApi - factory interface
|
|
@@ -2288,6 +2433,16 @@ export declare const RoleAssignmentApiFactory: (configuration?: Configuration, b
|
|
|
2288
2433
|
* @throws {RequiredError}
|
|
2289
2434
|
*/
|
|
2290
2435
|
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>;
|
|
2291
2446
|
/**
|
|
2292
2447
|
* Revokes a forbidden role from a given principal (user, group, etc.)
|
|
2293
2448
|
* @summary Revoke Forbidden Role from Principal
|
|
@@ -2306,6 +2461,16 @@ export declare const RoleAssignmentApiFactory: (configuration?: Configuration, b
|
|
|
2306
2461
|
* @throws {RequiredError}
|
|
2307
2462
|
*/
|
|
2308
2463
|
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>;
|
|
2309
2474
|
};
|
|
2310
2475
|
/**
|
|
2311
2476
|
* RoleAssignmentApi - object-oriented interface
|
|
@@ -2334,6 +2499,17 @@ export declare class RoleAssignmentApi extends BaseAPI {
|
|
|
2334
2499
|
* @memberof RoleAssignmentApi
|
|
2335
2500
|
*/
|
|
2336
2501
|
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, {}>>;
|
|
2337
2513
|
/**
|
|
2338
2514
|
* Revokes a forbidden role from a given principal (user, group, etc.)
|
|
2339
2515
|
* @summary Revoke Forbidden Role from Principal
|
|
@@ -2354,6 +2530,17 @@ export declare class RoleAssignmentApi extends BaseAPI {
|
|
|
2354
2530
|
* @memberof RoleAssignmentApi
|
|
2355
2531
|
*/
|
|
2356
2532
|
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, {}>>;
|
|
2357
2544
|
}
|
|
2358
2545
|
/**
|
|
2359
2546
|
* UserManagementApi - axios parameter creator
|
package/dist/api.js
CHANGED
|
@@ -84,7 +84,8 @@ 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.
|
|
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.UpdateTeammateAccessRequestBodyAppAccessLevelEnum = exports.RoleNames = exports.RevokeRoleRequestBodyRoleEnum = exports.RevokeForbiddenRoleRequestBodyCompensatingRoleEnum = exports.Permissions = exports.ListOrgRolesSuccessResponseValueValueRolesEnum = exports.ListOrgRolesSuccessResponseValueValueResourceTypeEnum = exports.IsInRoleRequestCheckModeEnum = exports.GrantTeammateAccessRequestBodyAppAccessLevelEnum = 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;
|
|
88
|
+
exports.UserPermissionsApi = void 0;
|
|
88
89
|
var axios_1 = require("axios");
|
|
89
90
|
// Some imports not used depending on template conditions
|
|
90
91
|
// @ts-ignore
|
|
@@ -220,6 +221,14 @@ exports.GetUserPermissionsSuccessResponseResourcesValueResourceTypeEnum = {
|
|
|
220
221
|
Brand: 'Brand',
|
|
221
222
|
SalesChannel: 'SalesChannel'
|
|
222
223
|
};
|
|
224
|
+
exports.GrantTeammateAccessRequestBodyAppAccessLevelEnum = {
|
|
225
|
+
Owner: 'Owner',
|
|
226
|
+
ManagedOwner: 'ManagedOwner',
|
|
227
|
+
PropertyOwner: 'PropertyOwner',
|
|
228
|
+
PropertyManager: 'PropertyManager',
|
|
229
|
+
FinanceManager: 'FinanceManager',
|
|
230
|
+
Integrator: 'Integrator'
|
|
231
|
+
};
|
|
223
232
|
exports.IsInRoleRequestCheckModeEnum = {
|
|
224
233
|
Any: 'any',
|
|
225
234
|
All: 'all'
|
|
@@ -632,6 +641,14 @@ exports.RoleNames = {
|
|
|
632
641
|
Factory: 'Factory',
|
|
633
642
|
AuthDeveloper: 'AuthDeveloper'
|
|
634
643
|
};
|
|
644
|
+
exports.UpdateTeammateAccessRequestBodyAppAccessLevelEnum = {
|
|
645
|
+
Owner: 'Owner',
|
|
646
|
+
ManagedOwner: 'ManagedOwner',
|
|
647
|
+
PropertyOwner: 'PropertyOwner',
|
|
648
|
+
PropertyManager: 'PropertyManager',
|
|
649
|
+
FinanceManager: 'FinanceManager',
|
|
650
|
+
Integrator: 'Integrator'
|
|
651
|
+
};
|
|
635
652
|
/**
|
|
636
653
|
* AuthenticationApi - axios parameter creator
|
|
637
654
|
* @export
|
|
@@ -2228,6 +2245,58 @@ var RoleAssignmentApiAxiosParamCreator = function (configuration) {
|
|
|
2228
2245
|
});
|
|
2229
2246
|
});
|
|
2230
2247
|
},
|
|
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
|
+
},
|
|
2231
2300
|
/**
|
|
2232
2301
|
* Revokes a forbidden role from a given principal (user, group, etc.)
|
|
2233
2302
|
* @summary Revoke Forbidden Role from Principal
|
|
@@ -2324,6 +2393,58 @@ var RoleAssignmentApiAxiosParamCreator = function (configuration) {
|
|
|
2324
2393
|
});
|
|
2325
2394
|
});
|
|
2326
2395
|
},
|
|
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
|
+
},
|
|
2327
2448
|
};
|
|
2328
2449
|
};
|
|
2329
2450
|
exports.RoleAssignmentApiAxiosParamCreator = RoleAssignmentApiAxiosParamCreator;
|
|
@@ -2382,6 +2503,31 @@ var RoleAssignmentApiFp = function (configuration) {
|
|
|
2382
2503
|
});
|
|
2383
2504
|
});
|
|
2384
2505
|
},
|
|
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
|
+
},
|
|
2385
2531
|
/**
|
|
2386
2532
|
* Revokes a forbidden role from a given principal (user, group, etc.)
|
|
2387
2533
|
* @summary Revoke Forbidden Role from Principal
|
|
@@ -2430,6 +2576,31 @@ var RoleAssignmentApiFp = function (configuration) {
|
|
|
2430
2576
|
});
|
|
2431
2577
|
});
|
|
2432
2578
|
},
|
|
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
|
+
},
|
|
2433
2604
|
};
|
|
2434
2605
|
};
|
|
2435
2606
|
exports.RoleAssignmentApiFp = RoleAssignmentApiFp;
|
|
@@ -2462,6 +2633,18 @@ var RoleAssignmentApiFactory = function (configuration, basePath, axios) {
|
|
|
2462
2633
|
getPrincipalRoles: function (orgId, getPrincipalRolesRequestBody, options) {
|
|
2463
2634
|
return localVarFp.getPrincipalRoles(orgId, getPrincipalRolesRequestBody, options).then(function (request) { return request(axios, basePath); });
|
|
2464
2635
|
},
|
|
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
|
+
},
|
|
2465
2648
|
/**
|
|
2466
2649
|
* Revokes a forbidden role from a given principal (user, group, etc.)
|
|
2467
2650
|
* @summary Revoke Forbidden Role from Principal
|
|
@@ -2484,6 +2667,18 @@ var RoleAssignmentApiFactory = function (configuration, basePath, axios) {
|
|
|
2484
2667
|
revokeRoleFromPrincipal: function (orgId, revokeRoleRequestBody, options) {
|
|
2485
2668
|
return localVarFp.revokeRoleFromPrincipal(orgId, revokeRoleRequestBody, options).then(function (request) { return request(axios, basePath); });
|
|
2486
2669
|
},
|
|
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
|
+
},
|
|
2487
2682
|
};
|
|
2488
2683
|
};
|
|
2489
2684
|
exports.RoleAssignmentApiFactory = RoleAssignmentApiFactory;
|
|
@@ -2524,6 +2719,20 @@ var RoleAssignmentApi = /** @class */ (function (_super) {
|
|
|
2524
2719
|
var _this = this;
|
|
2525
2720
|
return (0, exports.RoleAssignmentApiFp)(this.configuration).getPrincipalRoles(orgId, getPrincipalRolesRequestBody, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2526
2721
|
};
|
|
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
|
+
};
|
|
2527
2736
|
/**
|
|
2528
2737
|
* Revokes a forbidden role from a given principal (user, group, etc.)
|
|
2529
2738
|
* @summary Revoke Forbidden Role from Principal
|
|
@@ -2550,6 +2759,20 @@ var RoleAssignmentApi = /** @class */ (function (_super) {
|
|
|
2550
2759
|
var _this = this;
|
|
2551
2760
|
return (0, exports.RoleAssignmentApiFp)(this.configuration).revokeRoleFromPrincipal(orgId, revokeRoleRequestBody, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2552
2761
|
};
|
|
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
|
+
};
|
|
2553
2776
|
return RoleAssignmentApi;
|
|
2554
2777
|
}(base_1.BaseAPI));
|
|
2555
2778
|
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.89-rc.1777021402"
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
42
|
this.baseOptions = __assign(__assign({}, extraHeaders), param.baseOptions);
|
package/package.json
CHANGED