@omnia/fx-models
Version:
Provide Omnia Fx Models Stuffs.
33 lines (32 loc) • 1.96 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.UserTypeSettingsFactory = exports.builtInPropertyBindings = void 0;
const models_1 = require("@omnia/fx-models/internal-do-not-import-from-here/shared/models");
const properties_1 = require("../properties");
exports.builtInPropertyBindings = {
user: {
displayName: new properties_1.PropertyBinding(properties_1.TextPropertyDefinition, new models_1.Guid("44d8238b-97d5-468b-9a4f-4d23d95aa3b9")),
username: new properties_1.PropertyBinding(properties_1.TextPropertyDefinition, new models_1.Guid("3f89e33a-143d-4b6f-ba58-b05ad6479dce")),
image: new properties_1.PropertyBinding(properties_1.ImagePropertyDefinition, new models_1.Guid("964db53a-309e-4ace-b269-4637a1dd57ef")),
email: new properties_1.PropertyBinding(properties_1.EmailPropertyDefinition, new models_1.Guid("143d9a73-ba3d-43ff-9f6b-9808f6ca3d2b")),
preferredLanguage: new properties_1.PropertyBinding(properties_1.LanguagePropertyDefinition, new models_1.Guid("aea79130-57c9-4a8a-baa4-f2b2865a4fd7")),
uiLanguage: new properties_1.PropertyBinding(properties_1.LanguagePropertyDefinition, new models_1.Guid("5ba31954-1b4d-4578-a3cd-e62ebddc2a03")),
userType: new properties_1.PropertyBinding(properties_1.UserTypePropertyDefinition, new models_1.Guid("53546e52-3016-4233-bdf0-6ba2a29606c9"))
},
};
const buitinUserPropertiesBindingIdList = Object.values(exports.builtInPropertyBindings.user).map(item => item.bindingId);
exports.UserTypeSettingsFactory = {
default: () => ({
formProperties: {
new: {
propertyBindingIds: buitinUserPropertiesBindingIdList,
},
edit: {
propertyBindingIds: buitinUserPropertiesBindingIdList
},
orderProperties: {
propertyBindingIds: buitinUserPropertiesBindingIdList
}
}
}),
};