@appsemble/utils
Version:
Utility functions used in Appsemble internally
29 lines • 903 B
JavaScript
import { predefinedOrganizationRoles } from '@appsemble/types';
export const OrganizationMember = {
type: 'object',
description: 'A member of an organization.',
required: ['id'],
additionalProperties: false,
properties: {
id: {
$ref: '#/components/schemas/User/properties/id',
},
name: {
$ref: '#/components/schemas/User/properties/name',
},
primaryEmail: {
type: 'string',
format: 'email',
description: 'The primary email address of the user.',
},
role: {
enum: predefinedOrganizationRoles,
},
properties: {
type: 'object',
description: 'Additional custom properties that a user might have.',
additionalProperties: { type: 'string' },
},
},
};
//# sourceMappingURL=OrganizationMember.js.map