@flipdish/authorization 0.0.90-rc.1777022142 → 0.0.92-rc.1777024196
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
|
|
@@ -1715,6 +1770,62 @@ export const RoleNames = {
|
|
|
1715
1770
|
export type RoleNames = typeof RoleNames[keyof typeof RoleNames];
|
|
1716
1771
|
|
|
1717
1772
|
|
|
1773
|
+
/**
|
|
1774
|
+
* Teammate access applied
|
|
1775
|
+
* @export
|
|
1776
|
+
* @interface TeammateAccessSuccessResponse
|
|
1777
|
+
*/
|
|
1778
|
+
export interface TeammateAccessSuccessResponse {
|
|
1779
|
+
/**
|
|
1780
|
+
*
|
|
1781
|
+
* @type {string}
|
|
1782
|
+
* @memberof TeammateAccessSuccessResponse
|
|
1783
|
+
*/
|
|
1784
|
+
'message': string;
|
|
1785
|
+
}
|
|
1786
|
+
/**
|
|
1787
|
+
* 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.
|
|
1788
|
+
* @export
|
|
1789
|
+
* @interface UpdateTeammateAccessRequestBody
|
|
1790
|
+
*/
|
|
1791
|
+
export interface UpdateTeammateAccessRequestBody {
|
|
1792
|
+
/**
|
|
1793
|
+
* Teammate app access level (role)
|
|
1794
|
+
* @type {string}
|
|
1795
|
+
* @memberof UpdateTeammateAccessRequestBody
|
|
1796
|
+
*/
|
|
1797
|
+
'appAccessLevel': UpdateTeammateAccessRequestBodyAppAccessLevelEnum;
|
|
1798
|
+
/**
|
|
1799
|
+
* Brand identifier (AppId); normalized to lowercase when stored
|
|
1800
|
+
* @type {string}
|
|
1801
|
+
* @memberof UpdateTeammateAccessRequestBody
|
|
1802
|
+
*/
|
|
1803
|
+
'brandId': string;
|
|
1804
|
+
/**
|
|
1805
|
+
* Org-wide store access; when false, propertyIds are required for property-scoped roles
|
|
1806
|
+
* @type {boolean}
|
|
1807
|
+
* @memberof UpdateTeammateAccessRequestBody
|
|
1808
|
+
*/
|
|
1809
|
+
'hasAccessToAllStores': boolean;
|
|
1810
|
+
/**
|
|
1811
|
+
* Property resource ids (e.g. p123) when scoped to properties
|
|
1812
|
+
* @type {Array<string>}
|
|
1813
|
+
* @memberof UpdateTeammateAccessRequestBody
|
|
1814
|
+
*/
|
|
1815
|
+
'propertyIds'?: Array<string>;
|
|
1816
|
+
}
|
|
1817
|
+
|
|
1818
|
+
export const UpdateTeammateAccessRequestBodyAppAccessLevelEnum = {
|
|
1819
|
+
Owner: 'Owner',
|
|
1820
|
+
ManagedOwner: 'ManagedOwner',
|
|
1821
|
+
PropertyOwner: 'PropertyOwner',
|
|
1822
|
+
PropertyManager: 'PropertyManager',
|
|
1823
|
+
FinanceManager: 'FinanceManager',
|
|
1824
|
+
Integrator: 'Integrator'
|
|
1825
|
+
} as const;
|
|
1826
|
+
|
|
1827
|
+
export type UpdateTeammateAccessRequestBodyAppAccessLevelEnum = typeof UpdateTeammateAccessRequestBodyAppAccessLevelEnum[keyof typeof UpdateTeammateAccessRequestBodyAppAccessLevelEnum];
|
|
1828
|
+
|
|
1718
1829
|
/**
|
|
1719
1830
|
*
|
|
1720
1831
|
* @export
|
|
@@ -3042,6 +3153,51 @@ export const RoleAssignmentApiAxiosParamCreator = function (configuration?: Conf
|
|
|
3042
3153
|
options: localVarRequestOptions,
|
|
3043
3154
|
};
|
|
3044
3155
|
},
|
|
3156
|
+
/**
|
|
3157
|
+
* 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.
|
|
3158
|
+
* @summary Grant teammate access to a new user
|
|
3159
|
+
* @param {string} orgId
|
|
3160
|
+
* @param {string} userId Target Flipdish user id (numeric string)
|
|
3161
|
+
* @param {GrantTeammateAccessRequestBody} [grantTeammateAccessRequestBody]
|
|
3162
|
+
* @param {*} [options] Override http request option.
|
|
3163
|
+
* @throws {RequiredError}
|
|
3164
|
+
*/
|
|
3165
|
+
grantTeammateAccess: async (orgId: string, userId: string, grantTeammateAccessRequestBody?: GrantTeammateAccessRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3166
|
+
// verify required parameter 'orgId' is not null or undefined
|
|
3167
|
+
assertParamExists('grantTeammateAccess', 'orgId', orgId)
|
|
3168
|
+
// verify required parameter 'userId' is not null or undefined
|
|
3169
|
+
assertParamExists('grantTeammateAccess', 'userId', userId)
|
|
3170
|
+
const localVarPath = `/orgs/{orgId}/users/{userId}/grantTeammateAccess`
|
|
3171
|
+
.replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)))
|
|
3172
|
+
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
3173
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3174
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3175
|
+
let baseOptions;
|
|
3176
|
+
if (configuration) {
|
|
3177
|
+
baseOptions = configuration.baseOptions;
|
|
3178
|
+
}
|
|
3179
|
+
|
|
3180
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
3181
|
+
const localVarHeaderParameter = {} as any;
|
|
3182
|
+
const localVarQueryParameter = {} as any;
|
|
3183
|
+
|
|
3184
|
+
// authentication ApiKeyAuth required
|
|
3185
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
3186
|
+
|
|
3187
|
+
|
|
3188
|
+
|
|
3189
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3190
|
+
|
|
3191
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3192
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3193
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3194
|
+
localVarRequestOptions.data = serializeDataIfNeeded(grantTeammateAccessRequestBody, localVarRequestOptions, configuration)
|
|
3195
|
+
|
|
3196
|
+
return {
|
|
3197
|
+
url: toPathString(localVarUrlObj),
|
|
3198
|
+
options: localVarRequestOptions,
|
|
3199
|
+
};
|
|
3200
|
+
},
|
|
3045
3201
|
/**
|
|
3046
3202
|
* Revokes a forbidden role from a given principal (user, group, etc.)
|
|
3047
3203
|
* @summary Revoke Forbidden Role from Principal
|
|
@@ -3119,6 +3275,51 @@ export const RoleAssignmentApiAxiosParamCreator = function (configuration?: Conf
|
|
|
3119
3275
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3120
3276
|
localVarRequestOptions.data = serializeDataIfNeeded(revokeRoleRequestBody, localVarRequestOptions, configuration)
|
|
3121
3277
|
|
|
3278
|
+
return {
|
|
3279
|
+
url: toPathString(localVarUrlObj),
|
|
3280
|
+
options: localVarRequestOptions,
|
|
3281
|
+
};
|
|
3282
|
+
},
|
|
3283
|
+
/**
|
|
3284
|
+
* 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.
|
|
3285
|
+
* @summary Update teammate access for an existing user
|
|
3286
|
+
* @param {string} orgId
|
|
3287
|
+
* @param {string} userId Target Flipdish user id (numeric string)
|
|
3288
|
+
* @param {UpdateTeammateAccessRequestBody} [updateTeammateAccessRequestBody]
|
|
3289
|
+
* @param {*} [options] Override http request option.
|
|
3290
|
+
* @throws {RequiredError}
|
|
3291
|
+
*/
|
|
3292
|
+
updateTeammateAccess: async (orgId: string, userId: string, updateTeammateAccessRequestBody?: UpdateTeammateAccessRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3293
|
+
// verify required parameter 'orgId' is not null or undefined
|
|
3294
|
+
assertParamExists('updateTeammateAccess', 'orgId', orgId)
|
|
3295
|
+
// verify required parameter 'userId' is not null or undefined
|
|
3296
|
+
assertParamExists('updateTeammateAccess', 'userId', userId)
|
|
3297
|
+
const localVarPath = `/orgs/{orgId}/users/{userId}/updateTeammateAccess`
|
|
3298
|
+
.replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)))
|
|
3299
|
+
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
3300
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3301
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3302
|
+
let baseOptions;
|
|
3303
|
+
if (configuration) {
|
|
3304
|
+
baseOptions = configuration.baseOptions;
|
|
3305
|
+
}
|
|
3306
|
+
|
|
3307
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
3308
|
+
const localVarHeaderParameter = {} as any;
|
|
3309
|
+
const localVarQueryParameter = {} as any;
|
|
3310
|
+
|
|
3311
|
+
// authentication ApiKeyAuth required
|
|
3312
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
3313
|
+
|
|
3314
|
+
|
|
3315
|
+
|
|
3316
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3317
|
+
|
|
3318
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3319
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3320
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3321
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateTeammateAccessRequestBody, localVarRequestOptions, configuration)
|
|
3322
|
+
|
|
3122
3323
|
return {
|
|
3123
3324
|
url: toPathString(localVarUrlObj),
|
|
3124
3325
|
options: localVarRequestOptions,
|
|
@@ -3162,6 +3363,21 @@ export const RoleAssignmentApiFp = function(configuration?: Configuration) {
|
|
|
3162
3363
|
const localVarOperationServerBasePath = operationServerMap['RoleAssignmentApi.getPrincipalRoles']?.[localVarOperationServerIndex]?.url;
|
|
3163
3364
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3164
3365
|
},
|
|
3366
|
+
/**
|
|
3367
|
+
* 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.
|
|
3368
|
+
* @summary Grant teammate access to a new user
|
|
3369
|
+
* @param {string} orgId
|
|
3370
|
+
* @param {string} userId Target Flipdish user id (numeric string)
|
|
3371
|
+
* @param {GrantTeammateAccessRequestBody} [grantTeammateAccessRequestBody]
|
|
3372
|
+
* @param {*} [options] Override http request option.
|
|
3373
|
+
* @throws {RequiredError}
|
|
3374
|
+
*/
|
|
3375
|
+
async grantTeammateAccess(orgId: string, userId: string, grantTeammateAccessRequestBody?: GrantTeammateAccessRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TeammateAccessSuccessResponse>> {
|
|
3376
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.grantTeammateAccess(orgId, userId, grantTeammateAccessRequestBody, options);
|
|
3377
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3378
|
+
const localVarOperationServerBasePath = operationServerMap['RoleAssignmentApi.grantTeammateAccess']?.[localVarOperationServerIndex]?.url;
|
|
3379
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3380
|
+
},
|
|
3165
3381
|
/**
|
|
3166
3382
|
* Revokes a forbidden role from a given principal (user, group, etc.)
|
|
3167
3383
|
* @summary Revoke Forbidden Role from Principal
|
|
@@ -3190,6 +3406,21 @@ export const RoleAssignmentApiFp = function(configuration?: Configuration) {
|
|
|
3190
3406
|
const localVarOperationServerBasePath = operationServerMap['RoleAssignmentApi.revokeRoleFromPrincipal']?.[localVarOperationServerIndex]?.url;
|
|
3191
3407
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3192
3408
|
},
|
|
3409
|
+
/**
|
|
3410
|
+
* 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.
|
|
3411
|
+
* @summary Update teammate access for an existing user
|
|
3412
|
+
* @param {string} orgId
|
|
3413
|
+
* @param {string} userId Target Flipdish user id (numeric string)
|
|
3414
|
+
* @param {UpdateTeammateAccessRequestBody} [updateTeammateAccessRequestBody]
|
|
3415
|
+
* @param {*} [options] Override http request option.
|
|
3416
|
+
* @throws {RequiredError}
|
|
3417
|
+
*/
|
|
3418
|
+
async updateTeammateAccess(orgId: string, userId: string, updateTeammateAccessRequestBody?: UpdateTeammateAccessRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TeammateAccessSuccessResponse>> {
|
|
3419
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateTeammateAccess(orgId, userId, updateTeammateAccessRequestBody, options);
|
|
3420
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3421
|
+
const localVarOperationServerBasePath = operationServerMap['RoleAssignmentApi.updateTeammateAccess']?.[localVarOperationServerIndex]?.url;
|
|
3422
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3423
|
+
},
|
|
3193
3424
|
}
|
|
3194
3425
|
};
|
|
3195
3426
|
|
|
@@ -3222,6 +3453,18 @@ export const RoleAssignmentApiFactory = function (configuration?: Configuration,
|
|
|
3222
3453
|
getPrincipalRoles(orgId: string, getPrincipalRolesRequestBody?: GetPrincipalRolesRequestBody, options?: RawAxiosRequestConfig): AxiosPromise<GetPrincipalRolesSuccessResponse> {
|
|
3223
3454
|
return localVarFp.getPrincipalRoles(orgId, getPrincipalRolesRequestBody, options).then((request) => request(axios, basePath));
|
|
3224
3455
|
},
|
|
3456
|
+
/**
|
|
3457
|
+
* 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.
|
|
3458
|
+
* @summary Grant teammate access to a new user
|
|
3459
|
+
* @param {string} orgId
|
|
3460
|
+
* @param {string} userId Target Flipdish user id (numeric string)
|
|
3461
|
+
* @param {GrantTeammateAccessRequestBody} [grantTeammateAccessRequestBody]
|
|
3462
|
+
* @param {*} [options] Override http request option.
|
|
3463
|
+
* @throws {RequiredError}
|
|
3464
|
+
*/
|
|
3465
|
+
grantTeammateAccess(orgId: string, userId: string, grantTeammateAccessRequestBody?: GrantTeammateAccessRequestBody, options?: RawAxiosRequestConfig): AxiosPromise<TeammateAccessSuccessResponse> {
|
|
3466
|
+
return localVarFp.grantTeammateAccess(orgId, userId, grantTeammateAccessRequestBody, options).then((request) => request(axios, basePath));
|
|
3467
|
+
},
|
|
3225
3468
|
/**
|
|
3226
3469
|
* Revokes a forbidden role from a given principal (user, group, etc.)
|
|
3227
3470
|
* @summary Revoke Forbidden Role from Principal
|
|
@@ -3244,6 +3487,18 @@ export const RoleAssignmentApiFactory = function (configuration?: Configuration,
|
|
|
3244
3487
|
revokeRoleFromPrincipal(orgId: string, revokeRoleRequestBody?: RevokeRoleRequestBody, options?: RawAxiosRequestConfig): AxiosPromise<RevokeRoleSuccessResponse> {
|
|
3245
3488
|
return localVarFp.revokeRoleFromPrincipal(orgId, revokeRoleRequestBody, options).then((request) => request(axios, basePath));
|
|
3246
3489
|
},
|
|
3490
|
+
/**
|
|
3491
|
+
* 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.
|
|
3492
|
+
* @summary Update teammate access for an existing user
|
|
3493
|
+
* @param {string} orgId
|
|
3494
|
+
* @param {string} userId Target Flipdish user id (numeric string)
|
|
3495
|
+
* @param {UpdateTeammateAccessRequestBody} [updateTeammateAccessRequestBody]
|
|
3496
|
+
* @param {*} [options] Override http request option.
|
|
3497
|
+
* @throws {RequiredError}
|
|
3498
|
+
*/
|
|
3499
|
+
updateTeammateAccess(orgId: string, userId: string, updateTeammateAccessRequestBody?: UpdateTeammateAccessRequestBody, options?: RawAxiosRequestConfig): AxiosPromise<TeammateAccessSuccessResponse> {
|
|
3500
|
+
return localVarFp.updateTeammateAccess(orgId, userId, updateTeammateAccessRequestBody, options).then((request) => request(axios, basePath));
|
|
3501
|
+
},
|
|
3247
3502
|
};
|
|
3248
3503
|
};
|
|
3249
3504
|
|
|
@@ -3280,6 +3535,20 @@ export class RoleAssignmentApi extends BaseAPI {
|
|
|
3280
3535
|
return RoleAssignmentApiFp(this.configuration).getPrincipalRoles(orgId, getPrincipalRolesRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
3281
3536
|
}
|
|
3282
3537
|
|
|
3538
|
+
/**
|
|
3539
|
+
* 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.
|
|
3540
|
+
* @summary Grant teammate access to a new user
|
|
3541
|
+
* @param {string} orgId
|
|
3542
|
+
* @param {string} userId Target Flipdish user id (numeric string)
|
|
3543
|
+
* @param {GrantTeammateAccessRequestBody} [grantTeammateAccessRequestBody]
|
|
3544
|
+
* @param {*} [options] Override http request option.
|
|
3545
|
+
* @throws {RequiredError}
|
|
3546
|
+
* @memberof RoleAssignmentApi
|
|
3547
|
+
*/
|
|
3548
|
+
public grantTeammateAccess(orgId: string, userId: string, grantTeammateAccessRequestBody?: GrantTeammateAccessRequestBody, options?: RawAxiosRequestConfig) {
|
|
3549
|
+
return RoleAssignmentApiFp(this.configuration).grantTeammateAccess(orgId, userId, grantTeammateAccessRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
3550
|
+
}
|
|
3551
|
+
|
|
3283
3552
|
/**
|
|
3284
3553
|
* Revokes a forbidden role from a given principal (user, group, etc.)
|
|
3285
3554
|
* @summary Revoke Forbidden Role from Principal
|
|
@@ -3305,6 +3574,20 @@ export class RoleAssignmentApi extends BaseAPI {
|
|
|
3305
3574
|
public revokeRoleFromPrincipal(orgId: string, revokeRoleRequestBody?: RevokeRoleRequestBody, options?: RawAxiosRequestConfig) {
|
|
3306
3575
|
return RoleAssignmentApiFp(this.configuration).revokeRoleFromPrincipal(orgId, revokeRoleRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
3307
3576
|
}
|
|
3577
|
+
|
|
3578
|
+
/**
|
|
3579
|
+
* 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.
|
|
3580
|
+
* @summary Update teammate access for an existing user
|
|
3581
|
+
* @param {string} orgId
|
|
3582
|
+
* @param {string} userId Target Flipdish user id (numeric string)
|
|
3583
|
+
* @param {UpdateTeammateAccessRequestBody} [updateTeammateAccessRequestBody]
|
|
3584
|
+
* @param {*} [options] Override http request option.
|
|
3585
|
+
* @throws {RequiredError}
|
|
3586
|
+
* @memberof RoleAssignmentApi
|
|
3587
|
+
*/
|
|
3588
|
+
public updateTeammateAccess(orgId: string, userId: string, updateTeammateAccessRequestBody?: UpdateTeammateAccessRequestBody, options?: RawAxiosRequestConfig) {
|
|
3589
|
+
return RoleAssignmentApiFp(this.configuration).updateTeammateAccess(orgId, userId, updateTeammateAccessRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
3590
|
+
}
|
|
3308
3591
|
}
|
|
3309
3592
|
|
|
3310
3593
|
|
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.92-rc.1777024196"
|
|
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
|
|
@@ -1645,6 +1697,59 @@ export declare const RoleNames: {
|
|
|
1645
1697
|
readonly AuthDeveloper: "AuthDeveloper";
|
|
1646
1698
|
};
|
|
1647
1699
|
export type RoleNames = typeof RoleNames[keyof typeof RoleNames];
|
|
1700
|
+
/**
|
|
1701
|
+
* Teammate access applied
|
|
1702
|
+
* @export
|
|
1703
|
+
* @interface TeammateAccessSuccessResponse
|
|
1704
|
+
*/
|
|
1705
|
+
export interface TeammateAccessSuccessResponse {
|
|
1706
|
+
/**
|
|
1707
|
+
*
|
|
1708
|
+
* @type {string}
|
|
1709
|
+
* @memberof TeammateAccessSuccessResponse
|
|
1710
|
+
*/
|
|
1711
|
+
'message': string;
|
|
1712
|
+
}
|
|
1713
|
+
/**
|
|
1714
|
+
* 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.
|
|
1715
|
+
* @export
|
|
1716
|
+
* @interface UpdateTeammateAccessRequestBody
|
|
1717
|
+
*/
|
|
1718
|
+
export interface UpdateTeammateAccessRequestBody {
|
|
1719
|
+
/**
|
|
1720
|
+
* Teammate app access level (role)
|
|
1721
|
+
* @type {string}
|
|
1722
|
+
* @memberof UpdateTeammateAccessRequestBody
|
|
1723
|
+
*/
|
|
1724
|
+
'appAccessLevel': UpdateTeammateAccessRequestBodyAppAccessLevelEnum;
|
|
1725
|
+
/**
|
|
1726
|
+
* Brand identifier (AppId); normalized to lowercase when stored
|
|
1727
|
+
* @type {string}
|
|
1728
|
+
* @memberof UpdateTeammateAccessRequestBody
|
|
1729
|
+
*/
|
|
1730
|
+
'brandId': string;
|
|
1731
|
+
/**
|
|
1732
|
+
* Org-wide store access; when false, propertyIds are required for property-scoped roles
|
|
1733
|
+
* @type {boolean}
|
|
1734
|
+
* @memberof UpdateTeammateAccessRequestBody
|
|
1735
|
+
*/
|
|
1736
|
+
'hasAccessToAllStores': boolean;
|
|
1737
|
+
/**
|
|
1738
|
+
* Property resource ids (e.g. p123) when scoped to properties
|
|
1739
|
+
* @type {Array<string>}
|
|
1740
|
+
* @memberof UpdateTeammateAccessRequestBody
|
|
1741
|
+
*/
|
|
1742
|
+
'propertyIds'?: Array<string>;
|
|
1743
|
+
}
|
|
1744
|
+
export declare const UpdateTeammateAccessRequestBodyAppAccessLevelEnum: {
|
|
1745
|
+
readonly Owner: "Owner";
|
|
1746
|
+
readonly ManagedOwner: "ManagedOwner";
|
|
1747
|
+
readonly PropertyOwner: "PropertyOwner";
|
|
1748
|
+
readonly PropertyManager: "PropertyManager";
|
|
1749
|
+
readonly FinanceManager: "FinanceManager";
|
|
1750
|
+
readonly Integrator: "Integrator";
|
|
1751
|
+
};
|
|
1752
|
+
export type UpdateTeammateAccessRequestBodyAppAccessLevelEnum = typeof UpdateTeammateAccessRequestBodyAppAccessLevelEnum[keyof typeof UpdateTeammateAccessRequestBodyAppAccessLevelEnum];
|
|
1648
1753
|
/**
|
|
1649
1754
|
*
|
|
1650
1755
|
* @export
|
|
@@ -2277,6 +2382,16 @@ export declare const RoleAssignmentApiAxiosParamCreator: (configuration?: Config
|
|
|
2277
2382
|
* @throws {RequiredError}
|
|
2278
2383
|
*/
|
|
2279
2384
|
getPrincipalRoles: (orgId: string, getPrincipalRolesRequestBody?: GetPrincipalRolesRequestBody, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2385
|
+
/**
|
|
2386
|
+
* 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.
|
|
2387
|
+
* @summary Grant teammate access to a new user
|
|
2388
|
+
* @param {string} orgId
|
|
2389
|
+
* @param {string} userId Target Flipdish user id (numeric string)
|
|
2390
|
+
* @param {GrantTeammateAccessRequestBody} [grantTeammateAccessRequestBody]
|
|
2391
|
+
* @param {*} [options] Override http request option.
|
|
2392
|
+
* @throws {RequiredError}
|
|
2393
|
+
*/
|
|
2394
|
+
grantTeammateAccess: (orgId: string, userId: string, grantTeammateAccessRequestBody?: GrantTeammateAccessRequestBody, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2280
2395
|
/**
|
|
2281
2396
|
* Revokes a forbidden role from a given principal (user, group, etc.)
|
|
2282
2397
|
* @summary Revoke Forbidden Role from Principal
|
|
@@ -2295,6 +2410,16 @@ export declare const RoleAssignmentApiAxiosParamCreator: (configuration?: Config
|
|
|
2295
2410
|
* @throws {RequiredError}
|
|
2296
2411
|
*/
|
|
2297
2412
|
revokeRoleFromPrincipal: (orgId: string, revokeRoleRequestBody?: RevokeRoleRequestBody, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2413
|
+
/**
|
|
2414
|
+
* 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.
|
|
2415
|
+
* @summary Update teammate access for an existing user
|
|
2416
|
+
* @param {string} orgId
|
|
2417
|
+
* @param {string} userId Target Flipdish user id (numeric string)
|
|
2418
|
+
* @param {UpdateTeammateAccessRequestBody} [updateTeammateAccessRequestBody]
|
|
2419
|
+
* @param {*} [options] Override http request option.
|
|
2420
|
+
* @throws {RequiredError}
|
|
2421
|
+
*/
|
|
2422
|
+
updateTeammateAccess: (orgId: string, userId: string, updateTeammateAccessRequestBody?: UpdateTeammateAccessRequestBody, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2298
2423
|
};
|
|
2299
2424
|
/**
|
|
2300
2425
|
* RoleAssignmentApi - functional programming interface
|
|
@@ -2319,6 +2444,16 @@ export declare const RoleAssignmentApiFp: (configuration?: Configuration) => {
|
|
|
2319
2444
|
* @throws {RequiredError}
|
|
2320
2445
|
*/
|
|
2321
2446
|
getPrincipalRoles(orgId: string, getPrincipalRolesRequestBody?: GetPrincipalRolesRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPrincipalRolesSuccessResponse>>;
|
|
2447
|
+
/**
|
|
2448
|
+
* 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.
|
|
2449
|
+
* @summary Grant teammate access to a new user
|
|
2450
|
+
* @param {string} orgId
|
|
2451
|
+
* @param {string} userId Target Flipdish user id (numeric string)
|
|
2452
|
+
* @param {GrantTeammateAccessRequestBody} [grantTeammateAccessRequestBody]
|
|
2453
|
+
* @param {*} [options] Override http request option.
|
|
2454
|
+
* @throws {RequiredError}
|
|
2455
|
+
*/
|
|
2456
|
+
grantTeammateAccess(orgId: string, userId: string, grantTeammateAccessRequestBody?: GrantTeammateAccessRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TeammateAccessSuccessResponse>>;
|
|
2322
2457
|
/**
|
|
2323
2458
|
* Revokes a forbidden role from a given principal (user, group, etc.)
|
|
2324
2459
|
* @summary Revoke Forbidden Role from Principal
|
|
@@ -2337,6 +2472,16 @@ export declare const RoleAssignmentApiFp: (configuration?: Configuration) => {
|
|
|
2337
2472
|
* @throws {RequiredError}
|
|
2338
2473
|
*/
|
|
2339
2474
|
revokeRoleFromPrincipal(orgId: string, revokeRoleRequestBody?: RevokeRoleRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RevokeRoleSuccessResponse>>;
|
|
2475
|
+
/**
|
|
2476
|
+
* 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.
|
|
2477
|
+
* @summary Update teammate access for an existing user
|
|
2478
|
+
* @param {string} orgId
|
|
2479
|
+
* @param {string} userId Target Flipdish user id (numeric string)
|
|
2480
|
+
* @param {UpdateTeammateAccessRequestBody} [updateTeammateAccessRequestBody]
|
|
2481
|
+
* @param {*} [options] Override http request option.
|
|
2482
|
+
* @throws {RequiredError}
|
|
2483
|
+
*/
|
|
2484
|
+
updateTeammateAccess(orgId: string, userId: string, updateTeammateAccessRequestBody?: UpdateTeammateAccessRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TeammateAccessSuccessResponse>>;
|
|
2340
2485
|
};
|
|
2341
2486
|
/**
|
|
2342
2487
|
* RoleAssignmentApi - factory interface
|
|
@@ -2361,6 +2506,16 @@ export declare const RoleAssignmentApiFactory: (configuration?: Configuration, b
|
|
|
2361
2506
|
* @throws {RequiredError}
|
|
2362
2507
|
*/
|
|
2363
2508
|
getPrincipalRoles(orgId: string, getPrincipalRolesRequestBody?: GetPrincipalRolesRequestBody, options?: RawAxiosRequestConfig): AxiosPromise<GetPrincipalRolesSuccessResponse>;
|
|
2509
|
+
/**
|
|
2510
|
+
* 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.
|
|
2511
|
+
* @summary Grant teammate access to a new user
|
|
2512
|
+
* @param {string} orgId
|
|
2513
|
+
* @param {string} userId Target Flipdish user id (numeric string)
|
|
2514
|
+
* @param {GrantTeammateAccessRequestBody} [grantTeammateAccessRequestBody]
|
|
2515
|
+
* @param {*} [options] Override http request option.
|
|
2516
|
+
* @throws {RequiredError}
|
|
2517
|
+
*/
|
|
2518
|
+
grantTeammateAccess(orgId: string, userId: string, grantTeammateAccessRequestBody?: GrantTeammateAccessRequestBody, options?: RawAxiosRequestConfig): AxiosPromise<TeammateAccessSuccessResponse>;
|
|
2364
2519
|
/**
|
|
2365
2520
|
* Revokes a forbidden role from a given principal (user, group, etc.)
|
|
2366
2521
|
* @summary Revoke Forbidden Role from Principal
|
|
@@ -2379,6 +2534,16 @@ export declare const RoleAssignmentApiFactory: (configuration?: Configuration, b
|
|
|
2379
2534
|
* @throws {RequiredError}
|
|
2380
2535
|
*/
|
|
2381
2536
|
revokeRoleFromPrincipal(orgId: string, revokeRoleRequestBody?: RevokeRoleRequestBody, options?: RawAxiosRequestConfig): AxiosPromise<RevokeRoleSuccessResponse>;
|
|
2537
|
+
/**
|
|
2538
|
+
* 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.
|
|
2539
|
+
* @summary Update teammate access for an existing user
|
|
2540
|
+
* @param {string} orgId
|
|
2541
|
+
* @param {string} userId Target Flipdish user id (numeric string)
|
|
2542
|
+
* @param {UpdateTeammateAccessRequestBody} [updateTeammateAccessRequestBody]
|
|
2543
|
+
* @param {*} [options] Override http request option.
|
|
2544
|
+
* @throws {RequiredError}
|
|
2545
|
+
*/
|
|
2546
|
+
updateTeammateAccess(orgId: string, userId: string, updateTeammateAccessRequestBody?: UpdateTeammateAccessRequestBody, options?: RawAxiosRequestConfig): AxiosPromise<TeammateAccessSuccessResponse>;
|
|
2382
2547
|
};
|
|
2383
2548
|
/**
|
|
2384
2549
|
* RoleAssignmentApi - object-oriented interface
|
|
@@ -2407,6 +2572,17 @@ export declare class RoleAssignmentApi extends BaseAPI {
|
|
|
2407
2572
|
* @memberof RoleAssignmentApi
|
|
2408
2573
|
*/
|
|
2409
2574
|
getPrincipalRoles(orgId: string, getPrincipalRolesRequestBody?: GetPrincipalRolesRequestBody, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPrincipalRolesSuccessResponse, any, {}>>;
|
|
2575
|
+
/**
|
|
2576
|
+
* 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.
|
|
2577
|
+
* @summary Grant teammate access to a new user
|
|
2578
|
+
* @param {string} orgId
|
|
2579
|
+
* @param {string} userId Target Flipdish user id (numeric string)
|
|
2580
|
+
* @param {GrantTeammateAccessRequestBody} [grantTeammateAccessRequestBody]
|
|
2581
|
+
* @param {*} [options] Override http request option.
|
|
2582
|
+
* @throws {RequiredError}
|
|
2583
|
+
* @memberof RoleAssignmentApi
|
|
2584
|
+
*/
|
|
2585
|
+
grantTeammateAccess(orgId: string, userId: string, grantTeammateAccessRequestBody?: GrantTeammateAccessRequestBody, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TeammateAccessSuccessResponse, any, {}>>;
|
|
2410
2586
|
/**
|
|
2411
2587
|
* Revokes a forbidden role from a given principal (user, group, etc.)
|
|
2412
2588
|
* @summary Revoke Forbidden Role from Principal
|
|
@@ -2427,6 +2603,17 @@ export declare class RoleAssignmentApi extends BaseAPI {
|
|
|
2427
2603
|
* @memberof RoleAssignmentApi
|
|
2428
2604
|
*/
|
|
2429
2605
|
revokeRoleFromPrincipal(orgId: string, revokeRoleRequestBody?: RevokeRoleRequestBody, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<RevokeRoleSuccessResponse, any, {}>>;
|
|
2606
|
+
/**
|
|
2607
|
+
* 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.
|
|
2608
|
+
* @summary Update teammate access for an existing user
|
|
2609
|
+
* @param {string} orgId
|
|
2610
|
+
* @param {string} userId Target Flipdish user id (numeric string)
|
|
2611
|
+
* @param {UpdateTeammateAccessRequestBody} [updateTeammateAccessRequestBody]
|
|
2612
|
+
* @param {*} [options] Override http request option.
|
|
2613
|
+
* @throws {RequiredError}
|
|
2614
|
+
* @memberof RoleAssignmentApi
|
|
2615
|
+
*/
|
|
2616
|
+
updateTeammateAccess(orgId: string, userId: string, updateTeammateAccessRequestBody?: UpdateTeammateAccessRequestBody, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TeammateAccessSuccessResponse, any, {}>>;
|
|
2430
2617
|
}
|
|
2431
2618
|
/**
|
|
2432
2619
|
* 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.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.PrincipalInOrgWithTeammatePermissionSummaryTypeEnum = 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 = exports.UserPermissionsApiFactory = 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'
|
|
@@ -636,6 +645,14 @@ exports.RoleNames = {
|
|
|
636
645
|
Factory: 'Factory',
|
|
637
646
|
AuthDeveloper: 'AuthDeveloper'
|
|
638
647
|
};
|
|
648
|
+
exports.UpdateTeammateAccessRequestBodyAppAccessLevelEnum = {
|
|
649
|
+
Owner: 'Owner',
|
|
650
|
+
ManagedOwner: 'ManagedOwner',
|
|
651
|
+
PropertyOwner: 'PropertyOwner',
|
|
652
|
+
PropertyManager: 'PropertyManager',
|
|
653
|
+
FinanceManager: 'FinanceManager',
|
|
654
|
+
Integrator: 'Integrator'
|
|
655
|
+
};
|
|
639
656
|
/**
|
|
640
657
|
* AuthenticationApi - axios parameter creator
|
|
641
658
|
* @export
|
|
@@ -2232,6 +2249,58 @@ var RoleAssignmentApiAxiosParamCreator = function (configuration) {
|
|
|
2232
2249
|
});
|
|
2233
2250
|
});
|
|
2234
2251
|
},
|
|
2252
|
+
/**
|
|
2253
|
+
* 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.
|
|
2254
|
+
* @summary Grant teammate access to a new user
|
|
2255
|
+
* @param {string} orgId
|
|
2256
|
+
* @param {string} userId Target Flipdish user id (numeric string)
|
|
2257
|
+
* @param {GrantTeammateAccessRequestBody} [grantTeammateAccessRequestBody]
|
|
2258
|
+
* @param {*} [options] Override http request option.
|
|
2259
|
+
* @throws {RequiredError}
|
|
2260
|
+
*/
|
|
2261
|
+
grantTeammateAccess: function (orgId_1, userId_1, grantTeammateAccessRequestBody_1) {
|
|
2262
|
+
var args_1 = [];
|
|
2263
|
+
for (var _i = 3; _i < arguments.length; _i++) {
|
|
2264
|
+
args_1[_i - 3] = arguments[_i];
|
|
2265
|
+
}
|
|
2266
|
+
return __awaiter(_this, __spreadArray([orgId_1, userId_1, grantTeammateAccessRequestBody_1], args_1, true), void 0, function (orgId, userId, grantTeammateAccessRequestBody, options) {
|
|
2267
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
2268
|
+
if (options === void 0) { options = {}; }
|
|
2269
|
+
return __generator(this, function (_a) {
|
|
2270
|
+
switch (_a.label) {
|
|
2271
|
+
case 0:
|
|
2272
|
+
// verify required parameter 'orgId' is not null or undefined
|
|
2273
|
+
(0, common_1.assertParamExists)('grantTeammateAccess', 'orgId', orgId);
|
|
2274
|
+
// verify required parameter 'userId' is not null or undefined
|
|
2275
|
+
(0, common_1.assertParamExists)('grantTeammateAccess', 'userId', userId);
|
|
2276
|
+
localVarPath = "/orgs/{orgId}/users/{userId}/grantTeammateAccess"
|
|
2277
|
+
.replace("{".concat("orgId", "}"), encodeURIComponent(String(orgId)))
|
|
2278
|
+
.replace("{".concat("userId", "}"), encodeURIComponent(String(userId)));
|
|
2279
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2280
|
+
if (configuration) {
|
|
2281
|
+
baseOptions = configuration.baseOptions;
|
|
2282
|
+
}
|
|
2283
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
2284
|
+
localVarHeaderParameter = {};
|
|
2285
|
+
localVarQueryParameter = {};
|
|
2286
|
+
// authentication ApiKeyAuth required
|
|
2287
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
2288
|
+
case 1:
|
|
2289
|
+
// authentication ApiKeyAuth required
|
|
2290
|
+
_a.sent();
|
|
2291
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2292
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2293
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2294
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2295
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(grantTeammateAccessRequestBody, localVarRequestOptions, configuration);
|
|
2296
|
+
return [2 /*return*/, {
|
|
2297
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2298
|
+
options: localVarRequestOptions,
|
|
2299
|
+
}];
|
|
2300
|
+
}
|
|
2301
|
+
});
|
|
2302
|
+
});
|
|
2303
|
+
},
|
|
2235
2304
|
/**
|
|
2236
2305
|
* Revokes a forbidden role from a given principal (user, group, etc.)
|
|
2237
2306
|
* @summary Revoke Forbidden Role from Principal
|
|
@@ -2328,6 +2397,58 @@ var RoleAssignmentApiAxiosParamCreator = function (configuration) {
|
|
|
2328
2397
|
});
|
|
2329
2398
|
});
|
|
2330
2399
|
},
|
|
2400
|
+
/**
|
|
2401
|
+
* 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.
|
|
2402
|
+
* @summary Update teammate access for an existing user
|
|
2403
|
+
* @param {string} orgId
|
|
2404
|
+
* @param {string} userId Target Flipdish user id (numeric string)
|
|
2405
|
+
* @param {UpdateTeammateAccessRequestBody} [updateTeammateAccessRequestBody]
|
|
2406
|
+
* @param {*} [options] Override http request option.
|
|
2407
|
+
* @throws {RequiredError}
|
|
2408
|
+
*/
|
|
2409
|
+
updateTeammateAccess: function (orgId_1, userId_1, updateTeammateAccessRequestBody_1) {
|
|
2410
|
+
var args_1 = [];
|
|
2411
|
+
for (var _i = 3; _i < arguments.length; _i++) {
|
|
2412
|
+
args_1[_i - 3] = arguments[_i];
|
|
2413
|
+
}
|
|
2414
|
+
return __awaiter(_this, __spreadArray([orgId_1, userId_1, updateTeammateAccessRequestBody_1], args_1, true), void 0, function (orgId, userId, updateTeammateAccessRequestBody, options) {
|
|
2415
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
2416
|
+
if (options === void 0) { options = {}; }
|
|
2417
|
+
return __generator(this, function (_a) {
|
|
2418
|
+
switch (_a.label) {
|
|
2419
|
+
case 0:
|
|
2420
|
+
// verify required parameter 'orgId' is not null or undefined
|
|
2421
|
+
(0, common_1.assertParamExists)('updateTeammateAccess', 'orgId', orgId);
|
|
2422
|
+
// verify required parameter 'userId' is not null or undefined
|
|
2423
|
+
(0, common_1.assertParamExists)('updateTeammateAccess', 'userId', userId);
|
|
2424
|
+
localVarPath = "/orgs/{orgId}/users/{userId}/updateTeammateAccess"
|
|
2425
|
+
.replace("{".concat("orgId", "}"), encodeURIComponent(String(orgId)))
|
|
2426
|
+
.replace("{".concat("userId", "}"), encodeURIComponent(String(userId)));
|
|
2427
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2428
|
+
if (configuration) {
|
|
2429
|
+
baseOptions = configuration.baseOptions;
|
|
2430
|
+
}
|
|
2431
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
2432
|
+
localVarHeaderParameter = {};
|
|
2433
|
+
localVarQueryParameter = {};
|
|
2434
|
+
// authentication ApiKeyAuth required
|
|
2435
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
2436
|
+
case 1:
|
|
2437
|
+
// authentication ApiKeyAuth required
|
|
2438
|
+
_a.sent();
|
|
2439
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2440
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2441
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2442
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2443
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateTeammateAccessRequestBody, localVarRequestOptions, configuration);
|
|
2444
|
+
return [2 /*return*/, {
|
|
2445
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2446
|
+
options: localVarRequestOptions,
|
|
2447
|
+
}];
|
|
2448
|
+
}
|
|
2449
|
+
});
|
|
2450
|
+
});
|
|
2451
|
+
},
|
|
2331
2452
|
};
|
|
2332
2453
|
};
|
|
2333
2454
|
exports.RoleAssignmentApiAxiosParamCreator = RoleAssignmentApiAxiosParamCreator;
|
|
@@ -2386,6 +2507,31 @@ var RoleAssignmentApiFp = function (configuration) {
|
|
|
2386
2507
|
});
|
|
2387
2508
|
});
|
|
2388
2509
|
},
|
|
2510
|
+
/**
|
|
2511
|
+
* 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.
|
|
2512
|
+
* @summary Grant teammate access to a new user
|
|
2513
|
+
* @param {string} orgId
|
|
2514
|
+
* @param {string} userId Target Flipdish user id (numeric string)
|
|
2515
|
+
* @param {GrantTeammateAccessRequestBody} [grantTeammateAccessRequestBody]
|
|
2516
|
+
* @param {*} [options] Override http request option.
|
|
2517
|
+
* @throws {RequiredError}
|
|
2518
|
+
*/
|
|
2519
|
+
grantTeammateAccess: function (orgId, userId, grantTeammateAccessRequestBody, options) {
|
|
2520
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2521
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
2522
|
+
var _a, _b, _c;
|
|
2523
|
+
return __generator(this, function (_d) {
|
|
2524
|
+
switch (_d.label) {
|
|
2525
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.grantTeammateAccess(orgId, userId, grantTeammateAccessRequestBody, options)];
|
|
2526
|
+
case 1:
|
|
2527
|
+
localVarAxiosArgs = _d.sent();
|
|
2528
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2529
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RoleAssignmentApi.grantTeammateAccess']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2530
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
2531
|
+
}
|
|
2532
|
+
});
|
|
2533
|
+
});
|
|
2534
|
+
},
|
|
2389
2535
|
/**
|
|
2390
2536
|
* Revokes a forbidden role from a given principal (user, group, etc.)
|
|
2391
2537
|
* @summary Revoke Forbidden Role from Principal
|
|
@@ -2434,6 +2580,31 @@ var RoleAssignmentApiFp = function (configuration) {
|
|
|
2434
2580
|
});
|
|
2435
2581
|
});
|
|
2436
2582
|
},
|
|
2583
|
+
/**
|
|
2584
|
+
* 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.
|
|
2585
|
+
* @summary Update teammate access for an existing user
|
|
2586
|
+
* @param {string} orgId
|
|
2587
|
+
* @param {string} userId Target Flipdish user id (numeric string)
|
|
2588
|
+
* @param {UpdateTeammateAccessRequestBody} [updateTeammateAccessRequestBody]
|
|
2589
|
+
* @param {*} [options] Override http request option.
|
|
2590
|
+
* @throws {RequiredError}
|
|
2591
|
+
*/
|
|
2592
|
+
updateTeammateAccess: function (orgId, userId, updateTeammateAccessRequestBody, options) {
|
|
2593
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2594
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
2595
|
+
var _a, _b, _c;
|
|
2596
|
+
return __generator(this, function (_d) {
|
|
2597
|
+
switch (_d.label) {
|
|
2598
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateTeammateAccess(orgId, userId, updateTeammateAccessRequestBody, options)];
|
|
2599
|
+
case 1:
|
|
2600
|
+
localVarAxiosArgs = _d.sent();
|
|
2601
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2602
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RoleAssignmentApi.updateTeammateAccess']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2603
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
2604
|
+
}
|
|
2605
|
+
});
|
|
2606
|
+
});
|
|
2607
|
+
},
|
|
2437
2608
|
};
|
|
2438
2609
|
};
|
|
2439
2610
|
exports.RoleAssignmentApiFp = RoleAssignmentApiFp;
|
|
@@ -2466,6 +2637,18 @@ var RoleAssignmentApiFactory = function (configuration, basePath, axios) {
|
|
|
2466
2637
|
getPrincipalRoles: function (orgId, getPrincipalRolesRequestBody, options) {
|
|
2467
2638
|
return localVarFp.getPrincipalRoles(orgId, getPrincipalRolesRequestBody, options).then(function (request) { return request(axios, basePath); });
|
|
2468
2639
|
},
|
|
2640
|
+
/**
|
|
2641
|
+
* 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.
|
|
2642
|
+
* @summary Grant teammate access to a new user
|
|
2643
|
+
* @param {string} orgId
|
|
2644
|
+
* @param {string} userId Target Flipdish user id (numeric string)
|
|
2645
|
+
* @param {GrantTeammateAccessRequestBody} [grantTeammateAccessRequestBody]
|
|
2646
|
+
* @param {*} [options] Override http request option.
|
|
2647
|
+
* @throws {RequiredError}
|
|
2648
|
+
*/
|
|
2649
|
+
grantTeammateAccess: function (orgId, userId, grantTeammateAccessRequestBody, options) {
|
|
2650
|
+
return localVarFp.grantTeammateAccess(orgId, userId, grantTeammateAccessRequestBody, options).then(function (request) { return request(axios, basePath); });
|
|
2651
|
+
},
|
|
2469
2652
|
/**
|
|
2470
2653
|
* Revokes a forbidden role from a given principal (user, group, etc.)
|
|
2471
2654
|
* @summary Revoke Forbidden Role from Principal
|
|
@@ -2488,6 +2671,18 @@ var RoleAssignmentApiFactory = function (configuration, basePath, axios) {
|
|
|
2488
2671
|
revokeRoleFromPrincipal: function (orgId, revokeRoleRequestBody, options) {
|
|
2489
2672
|
return localVarFp.revokeRoleFromPrincipal(orgId, revokeRoleRequestBody, options).then(function (request) { return request(axios, basePath); });
|
|
2490
2673
|
},
|
|
2674
|
+
/**
|
|
2675
|
+
* 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.
|
|
2676
|
+
* @summary Update teammate access for an existing user
|
|
2677
|
+
* @param {string} orgId
|
|
2678
|
+
* @param {string} userId Target Flipdish user id (numeric string)
|
|
2679
|
+
* @param {UpdateTeammateAccessRequestBody} [updateTeammateAccessRequestBody]
|
|
2680
|
+
* @param {*} [options] Override http request option.
|
|
2681
|
+
* @throws {RequiredError}
|
|
2682
|
+
*/
|
|
2683
|
+
updateTeammateAccess: function (orgId, userId, updateTeammateAccessRequestBody, options) {
|
|
2684
|
+
return localVarFp.updateTeammateAccess(orgId, userId, updateTeammateAccessRequestBody, options).then(function (request) { return request(axios, basePath); });
|
|
2685
|
+
},
|
|
2491
2686
|
};
|
|
2492
2687
|
};
|
|
2493
2688
|
exports.RoleAssignmentApiFactory = RoleAssignmentApiFactory;
|
|
@@ -2528,6 +2723,20 @@ var RoleAssignmentApi = /** @class */ (function (_super) {
|
|
|
2528
2723
|
var _this = this;
|
|
2529
2724
|
return (0, exports.RoleAssignmentApiFp)(this.configuration).getPrincipalRoles(orgId, getPrincipalRolesRequestBody, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2530
2725
|
};
|
|
2726
|
+
/**
|
|
2727
|
+
* 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.
|
|
2728
|
+
* @summary Grant teammate access to a new user
|
|
2729
|
+
* @param {string} orgId
|
|
2730
|
+
* @param {string} userId Target Flipdish user id (numeric string)
|
|
2731
|
+
* @param {GrantTeammateAccessRequestBody} [grantTeammateAccessRequestBody]
|
|
2732
|
+
* @param {*} [options] Override http request option.
|
|
2733
|
+
* @throws {RequiredError}
|
|
2734
|
+
* @memberof RoleAssignmentApi
|
|
2735
|
+
*/
|
|
2736
|
+
RoleAssignmentApi.prototype.grantTeammateAccess = function (orgId, userId, grantTeammateAccessRequestBody, options) {
|
|
2737
|
+
var _this = this;
|
|
2738
|
+
return (0, exports.RoleAssignmentApiFp)(this.configuration).grantTeammateAccess(orgId, userId, grantTeammateAccessRequestBody, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2739
|
+
};
|
|
2531
2740
|
/**
|
|
2532
2741
|
* Revokes a forbidden role from a given principal (user, group, etc.)
|
|
2533
2742
|
* @summary Revoke Forbidden Role from Principal
|
|
@@ -2554,6 +2763,20 @@ var RoleAssignmentApi = /** @class */ (function (_super) {
|
|
|
2554
2763
|
var _this = this;
|
|
2555
2764
|
return (0, exports.RoleAssignmentApiFp)(this.configuration).revokeRoleFromPrincipal(orgId, revokeRoleRequestBody, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2556
2765
|
};
|
|
2766
|
+
/**
|
|
2767
|
+
* 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.
|
|
2768
|
+
* @summary Update teammate access for an existing user
|
|
2769
|
+
* @param {string} orgId
|
|
2770
|
+
* @param {string} userId Target Flipdish user id (numeric string)
|
|
2771
|
+
* @param {UpdateTeammateAccessRequestBody} [updateTeammateAccessRequestBody]
|
|
2772
|
+
* @param {*} [options] Override http request option.
|
|
2773
|
+
* @throws {RequiredError}
|
|
2774
|
+
* @memberof RoleAssignmentApi
|
|
2775
|
+
*/
|
|
2776
|
+
RoleAssignmentApi.prototype.updateTeammateAccess = function (orgId, userId, updateTeammateAccessRequestBody, options) {
|
|
2777
|
+
var _this = this;
|
|
2778
|
+
return (0, exports.RoleAssignmentApiFp)(this.configuration).updateTeammateAccess(orgId, userId, updateTeammateAccessRequestBody, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2779
|
+
};
|
|
2557
2780
|
return RoleAssignmentApi;
|
|
2558
2781
|
}(base_1.BaseAPI));
|
|
2559
2782
|
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.92-rc.1777024196"
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
42
|
this.baseOptions = __assign(__assign({}, extraHeaders), param.baseOptions);
|
package/package.json
CHANGED