@omnia/fx-models 8.0.467-dev → 8.0.469-dev
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/Enums.tooling.d.ts +1 -1
- package/editor-chrome/IEditorTabRegistration.d.ts +1 -0
- package/identities/IdentityUtils.d.ts +6 -0
- package/identities/IdentityUtils.js +14 -0
- package/identities/UserType.d.ts +1 -5
- package/identities/index.d.ts +1 -4
- package/identities/index.js +1 -13
- package/internal-do-not-import-from-here/shared/services/DefineService.d.ts +7 -6
- package/package.json +1 -1
- package/properties/definitions/index.d.ts +0 -1
- package/properties/definitions/index.js +0 -5
- package/properties/values/index.d.ts +0 -1
- package/properties/values/index.js +0 -6
- package/{identities → shared-mobile/identities}/AnonymousIdentity.d.ts +3 -1
- package/{identities → shared-mobile/identities}/AnonymousIdentity.js +4 -3
- package/{identities → shared-mobile/identities}/DynamicGroupIdentity.d.ts +4 -5
- package/shared-mobile/identities/DynamicGroupIdentity.js +15 -0
- package/{identities → shared-mobile/identities}/ExtensionIdentity.d.ts +3 -1
- package/{identities → shared-mobile/identities}/ExtensionIdentity.js +4 -3
- package/shared-mobile/identities/InternalIdentity.js +29 -0
- package/{identities → shared-mobile/identities}/RoleIdentity.d.ts +3 -1
- package/{identities → shared-mobile/identities}/RoleIdentity.js +4 -3
- package/shared-mobile/identities/UserIdentity.d.ts +0 -1
- package/shared-mobile/identities/UserIdentity.js +0 -5
- package/shared-mobile/identities/UserType.d.ts +6 -0
- package/shared-mobile/identities/UserType.js +2 -0
- package/shared-mobile/identities/index.d.ts +6 -0
- package/shared-mobile/identities/index.js +6 -0
- package/{properties → shared-mobile/properties}/definitions/MultilingualTextPropertyDefinition.d.ts +1 -2
- package/{properties → shared-mobile/properties}/definitions/MultilingualTextPropertyDefinition.js +1 -2
- package/shared-mobile/properties/definitions/index.d.ts +1 -0
- package/shared-mobile/properties/definitions/index.js +1 -0
- package/shared-mobile/properties/values/index.d.ts +1 -0
- package/shared-mobile/properties/values/index.js +1 -0
- package/identities/DynamicGroupIdentity.js +0 -17
- package/identities/InternalIdentity.js +0 -40
- /package/{identities → shared-mobile/identities}/InternalIdentity.d.ts +0 -0
- /package/{properties → shared-mobile/properties}/values/MultilingualTextPropertyValue.d.ts +0 -0
- /package/{properties → shared-mobile/properties}/values/MultilingualTextPropertyValue.js +0 -0
package/Enums.tooling.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { LanguageTags, OmniaMimeType, guid } from "@omnia/fx-models";
|
2
|
-
declare const mimeTypes: Record<"c" | "x" | "map" | "s" | "z" | "rgb" | "class" | "js" | "css" | "aa" | "html" | "cd" | "cc" | "cab" | "cdf" | "i" | "ins" | "tr" | "jpeg" | "jpg" | "png" | "bmp" | "gif" | "svg" | "ico" | "pdf" | "dotx" | "docx" | "doc" | "dot" | "pptx" | "potx" | "ppt" | "pot" | "xlsx" | "xltx" | "xls" | "xlt" | "ms" | "dir" | "def" | "
|
2
|
+
declare const mimeTypes: Record<"c" | "x" | "map" | "s" | "z" | "rgb" | "class" | "js" | "css" | "aa" | "html" | "cd" | "cc" | "cab" | "cdf" | "i" | "ins" | "tr" | "jpeg" | "jpg" | "png" | "bmp" | "gif" | "svg" | "ico" | "pdf" | "dotx" | "docx" | "doc" | "dot" | "pptx" | "potx" | "ppt" | "pot" | "xlsx" | "xltx" | "xls" | "xlt" | "ms" | "dir" | "def" | "filters" | "user" | "settings" | "src" | "one" | "ac3" | "323" | "caf" | "fdf" | "group" | "atom" | "rtf" | "3g2" | "3gp" | "3gp2" | "3gpp" | "7z" | "AAC" | "aaf" | "aax" | "aca" | "accda" | "accdb" | "accdc" | "accde" | "accdr" | "accdt" | "accdw" | "accft" | "acx" | "AddIn" | "ade" | "adobebridge" | "adp" | "ADT" | "ADTS" | "afm" | "ai" | "aif" | "aifc" | "aiff" | "air" | "amc" | "application" | "art" | "asa" | "asax" | "ascx" | "asd" | "asf" | "ashx" | "asi" | "asm" | "asmx" | "aspx" | "asr" | "asx" | "au" | "avi" | "axs" | "bas" | "bcpio" | "bin" | "calx" | "cat" | "cdda" | "cer" | "chm" | "clp" | "cmx" | "cnf" | "cod" | "config" | "contact" | "coverage" | "cpio" | "cpp" | "crd" | "crl" | "crt" | "cs" | "csdproj" | "csh" | "csproj" | "csv" | "cur" | "cxx" | "dat" | "datasource" | "dbproj" | "dcr" | "deploy" | "der" | "dgml" | "dib" | "dif" | "disco" | "dll" | "dll.config" | "dlm" | "docm" | "dotm" | "dsp" | "dsw" | "dtd" | "dtsConfig" | "dv" | "dvi" | "dwf" | "dwp" | "dxr" | "eml" | "emz" | "eot" | "eps" | "etl" | "etx" | "evy" | "exe" | "exe.config" | "fif" | "fla" | "flr" | "flv" | "fsscript" | "fsx" | "generictest" | "gsm" | "gtar" | "gz" | "h" | "hdf" | "hdml" | "hhc" | "hhk" | "hhp" | "hlp" | "hpp" | "hqx" | "hta" | "htc" | "htm" | "htt" | "hxa" | "hxc" | "hxd" | "hxe" | "hxf" | "hxh" | "hxi" | "hxk" | "hxq" | "hxr" | "hxs" | "hxt" | "hxv" | "hxw" | "hxx" | "ics" | "idl" | "ief" | "iii" | "inc" | "inf" | "inl" | "ipa" | "ipg" | "ipproj" | "ipsw" | "iqy" | "isp" | "ite" | "itlp" | "itms" | "itpc" | "IVF" | "jar" | "java" | "jck" | "jcz" | "jfif" | "jnlp" | "jpb" | "jpe" | "jsx" | "jsxbin" | "latex" | "library-ms" | "lit" | "loadtest" | "lpk" | "lsf" | "lst" | "lsx" | "lzh" | "m13" | "m14" | "m1v" | "m2t" | "m2ts" | "m2v" | "m3u" | "m3u8" | "m4a" | "m4b" | "m4p" | "m4r" | "m4v" | "mac" | "mak" | "man" | "manifest" | "master" | "mda" | "mdb" | "mde" | "mdp" | "me" | "mfp" | "mht" | "mhtml" | "mid" | "midi" | "mix" | "mk" | "mmf" | "mno" | "mny" | "mod" | "mov" | "movie" | "mp2" | "mp2v" | "mp3" | "mp4" | "mp4v" | "mpa" | "mpe" | "mpeg" | "mpf" | "mpg" | "mpp" | "mpv2" | "mqv" | "msi" | "mso" | "mts" | "mtx" | "mvb" | "mvc" | "mxp" | "nc" | "nsc" | "nws" | "ocx" | "oda" | "odc" | "odh" | "odl" | "odp" | "ods" | "odt" | "onea" | "onepkg" | "onetmp" | "onetoc" | "onetoc2" | "orderedtest" | "osdx" | "p10" | "p12" | "p7b" | "p7c" | "p7m" | "p7r" | "p7s" | "pbm" | "pcast" | "pct" | "pcx" | "pcz" | "pfb" | "pfm" | "pfx" | "pgm" | "pic" | "pict" | "pkgdef" | "pkgundef" | "pko" | "pls" | "pma" | "pmc" | "pml" | "pmr" | "pmw" | "pnm" | "pnt" | "pntg" | "pnz" | "potm" | "ppa" | "ppam" | "ppm" | "pps" | "ppsm" | "ppsx" | "pptm" | "prf" | "prm" | "prx" | "ps" | "psc1" | "psd" | "psess" | "psm" | "psp" | "pub" | "pwz" | "qht" | "qhtm" | "qt" | "qti" | "qtif" | "qtl" | "qxd" | "ra" | "ram" | "rar" | "ras" | "rat" | "rc" | "rc2" | "rct" | "rdlc" | "resx" | "rf" | "rgs" | "rm" | "rmi" | "rmp" | "roff" | "rpm" | "rqy" | "rtx" | "ruleset" | "safariextz" | "scd" | "sct" | "sd2" | "sdp" | "sea" | "searchConnector-ms" | "setpay" | "setreg" | "sgimb" | "sgml" | "sh" | "shar" | "shtml" | "sit" | "sitemap" | "skin" | "sldm" | "sldx" | "slk" | "sln" | "slupkg-ms" | "smd" | "smi" | "smx" | "smz" | "snd" | "snippet" | "snp" | "sol" | "sor" | "spc" | "spl" | "srf" | "SSISDeploymentManifest" | "ssm" | "sst" | "stl" | "sv4cpio" | "sv4crc" | "svc" | "swf" | "t" | "tar" | "tcl" | "testrunconfig" | "testsettings" | "tex" | "texi" | "texinfo" | "tgz" | "thmx" | "thn" | "tif" | "tiff" | "tlh" | "tli" | "toc" | "trm" | "trx" | "ts" | "tsv" | "ttf" | "tts" | "txt" | "u32" | "uls" | "ustar" | "vb" | "vbdproj" | "vbk" | "vbproj" | "vbs" | "vcf" | "vcproj" | "vcs" | "vcxproj" | "vddproj" | "vdp" | "vdproj" | "vdx" | "vml" | "vscontent" | "vsct" | "vsd" | "vsi" | "vsix" | "vsixlangpack" | "vsixmanifest" | "vsmdi" | "vspscc" | "vss" | "vsscc" | "vssettings" | "vssscc" | "vst" | "vstemplate" | "vsto" | "vsw" | "vsx" | "vtx" | "wav" | "wave" | "wax" | "wbk" | "wbmp" | "wcm" | "wdb" | "wdp" | "webarchive" | "webtest" | "wiq" | "wiz" | "wks" | "WLMP" | "wlpginstall" | "wlpginstall3" | "wm" | "wma" | "wmd" | "wmf" | "wml" | "wmlc" | "wmls" | "wmlsc" | "wmp" | "wmv" | "wmx" | "wmz" | "wpl" | "wps" | "wri" | "wrl" | "wrz" | "wsc" | "wsdl" | "wvx" | "xaf" | "xaml" | "xap" | "xbap" | "xbm" | "xdr" | "xht" | "xhtml" | "xla" | "xlam" | "xlc" | "xld" | "xlk" | "xll" | "xlm" | "xlsb" | "xlsm" | "xltm" | "xlw" | "xml" | "xmta" | "xof" | "XOML" | "xpm" | "xps" | "xrm-ms" | "xsc" | "xsd" | "xsf" | "xsl" | "xslt" | "xsn" | "xss" | "xtp" | "xwd" | "zip" | "woff" | "woff2", OmniaMimeType>;
|
3
3
|
declare const languageTags: Record<"ArSa" | "BgBg" | "CaEs" | "ZhTw" | "CsCz" | "DaDk" | "DeDe" | "ElGr" | "EnUs" | "FiFi" | "FrFr" | "HeIl" | "HuHu" | "IsIs" | "ItIt" | "JaJp" | "KoKr" | "NlNl" | "NbNo" | "PlPl" | "PtBr" | "RoRo" | "RuRu" | "HrHr" | "SkSk" | "SqAl" | "SvSe" | "ThTh" | "TrTr" | "UrPk" | "IdId" | "UkUa" | "BeBy" | "SlSi" | "EtEe" | "LvLv" | "LtLt" | "FaIr" | "ViVn" | "HyAm" | "EuEs" | "MkMk" | "AfZa" | "KaGe" | "FoFo" | "HiIn" | "MsMy" | "KkKz" | "KyKg" | "SwKe" | "TtRu" | "PaIn" | "GuIn" | "TaIn" | "TeIn" | "KnIn" | "MrIn" | "SaIn" | "MnMn" | "GlEs" | "DvMv" | "ArIq" | "ZhCn" | "DeCh" | "EnGb" | "EsMx" | "FrBe" | "ItCh" | "NlBe" | "NnNo" | "PtPt" | "SvFi" | "MsBn" | "ArEg" | "ZhHk" | "DeAt" | "EnAu" | "EnEs" | "FrCa" | "ArLy" | "ZhSg" | "DeLu" | "EnCa" | "EsGt" | "FrCh" | "ArDz" | "ZhMo" | "DeLi" | "EnNz" | "EsCr" | "FrLu" | "ArMa" | "EnIe" | "EsPa" | "FrMc" | "ArTn" | "EnZa" | "EsDo" | "ArOm" | "EnJm" | "EsVe" | "ArYe" | "EsCo" | "ArSy" | "EnBz" | "EsPe" | "ArJo" | "EnTt" | "EsAr" | "ArLb" | "EnZw" | "EsEc" | "EsEs" | "ArKw" | "EnPh" | "EsCl" | "ArAe" | "EsUy" | "ArBh" | "EsPy" | "ArQa" | "EsBo" | "EsSv" | "EsHn" | "EsPr" | "ZuZa" | "XhZa" | "FyNl" | "TnZa" | "SeSe" | "SeFi" | "CyGb" | "HrBa" | "MiNz" | "GaIe" | "RmCh" | "LbLu" | "NsZa" | "SeNo" | "MtMt", LanguageTags>;
|
4
4
|
declare const omniaGroupManifests: Record<"FxUxBootstrapper" | "Fx" | "FxConsole" | "FxUxCommonComponents" | "FxUxRichTextEditor" | "Header" | "ChromeGroup" | "LayoutCanvasGroup", guid>;
|
5
5
|
declare const omniaResourceManifests: Record<"AppCore" | "VelcronCore" | "VelcronSetup" | "FxServiceWorker" | "SplitPaneLib" | "ProsemirrorPackage" | "AuthSetupCore" | "LayoutCanvasShared" | "AwesomeProFont" | "FxUxBootstrapper" | "FxUxVuetifyCore" | "DynamicPlaceholderApis" | "AppPlaceHolderApis" | "FxUxMonacoEditor" | "FxUxAutocomplete" | "ClientBoot" | "FxUxVuetifyBottomnav" | "ConsoleCommands" | "FxUxVRating" | "FxUxVuetifyStepper" | "FxUxVuetifyColorPicker" | "FxUxVuetifyCombobox" | "FxUxVuetifySlider" | "FxUxVuetifyDatatable" | "FxUxVuetifyDatePicker" | "FxUxVuetifyTimePicker" | "FxUxVuetifySnackbar" | "FxUxVuetifyPagination" | "FxUxVuetifyTimeline" | "FxUxVuetifyFooter" | "FxUxVuetifyCalendar" | "FxUxVuetifyVList" | "FxUxVuetifyNavigation" | "FxUxVuetifyAlert" | "FxUxVuetifyCard" | "FxUxVuetifyTab" | "FxUxVuetifyExpansionPanel" | "FxUxVuetifyCarousel" | "FxContexts" | "FxCoreBoot" | "FxCore" | "FxShared" | "FxWorkersBootstrapper" | "OmniaHubWorker" | "FxWorkers" | "Fx" | "FxSpContexts" | "FxUxVuetifyTextinput" | "FxUxVuetifyNumberinput" | "FxUxVuetifySelect" | "FxUxVuetifyTextarea" | "LocalhostingCommands" | "FxUxVuetifyBreadcrumbs" | "FxUxVuetifySelection" | "FxSp" | "FxSpfx" | "SpfxCustomizer" | "SpfxWebpart" | "SpfxStandaloneWebpart" | "FxSpfxWpStandalone" | "FxSpfxWpStandaloneInstanceHandler" | "FxUxVuetifySwitch" | "FxUx" | "FxUxEditor" | "FxUxAdmin" | "FxUxAdminTokenRouter" | "FxUxLibs" | "FxUxVDialog" | "FxUxVTreeView" | "Vendor" | "PhoneNumberLib" | "FxTenantLanguage" | "FxUxAppProvisioningShared" | "FxUxRichTextEditorExtension" | "MicrosoftTeamsSDK" | "MicrosoftTeamsSDKLoader" | "TeamsSSOScript" | "MediaPickerProviderRegistration" | "FxUxRichTextEditorCore" | "ActionApi" | "ActionHandlerEvents" | "LikeTopicIdProviderRegistration" | "LinkHandlerRegistration" | "EnterpriseGlossaryRegistrationApi" | "AppProvisioningValidatorApi" | "SidePanelRegistrationApi" | "GraphClientRegistrationApi" | "SharepointClientRegistrationApi" | "FilterEngineRegistrationApi" | "TaxonomyFilterEngineRegistrationApi" | "EnterpriseKeywordsFilterEngineRegistrationApi" | "ExtendedTaxonomyFilterEngineRegistrationApi" | "PersonFilterEngineRegistrationApi" | "TagsFilterEngineRegistrationApi" | "BooleanFilterEngineRegistrationApi" | "TextFilterEngineRegistrationApi" | "NumberFilterEngineRegistrationApi" | "DateTimeFilterEngineRegistrationApi" | "ExtendedIdentityFilterEngineRegistrationApi" | "ExtendedBooleanFilterEngineRegistrationApi" | "ExtendedTextFilterEngineRegistrationApi" | "ExtendedIntegerFilterEngineRegistrationApi" | "ExtendedDateTimeFilterEngineRegistrationApi" | "ExtendedDateFilterEngineRegistrationApi" | "ExtendedEmailFilterEngineRegistrationApi" | "ExtendedHtmlFilterEngineRegistrationApi" | "ExtendedLinkFilterEngineRegistrationApi" | "ExtendedMultilineTextFilterEngineRegistrationApi" | "ExtendedMultilingualTextFilterEngineRegistrationApi" | "ExtendedPhoneNumberFilterEngineRegistrationApi" | "ExtendedBirthdayFilterEngineRegistrationApi" | "AppInstanceRollupViewRegistrationApi" | "AppInstanceRollupViewBase" | "UserProfileActionHandlerApi" | "AppInstanceTokenProvider" | "AppPropertiesProvider" | "FxUxEnterprisePropertiesDataSourceApi" | "FxUxPropertiesProviderApi" | "UserPropertiesProvider" | "UserPropertiesByMicrosoftGraphProvider" | "UserPropertiesBySharePointProvider" | "UserTokenProvider" | "FxUxPropertyDataSourceApi" | "IdentityPropertyApi" | "BuiltinExtendedPropertiesRegistration" | "FxUxCommentDialog" | "FeaturesActivation" | "FxUxFilterEngineCore" | "FxUxBooleanFilterEngineCore" | "FxUxDateFilterEngineCore" | "FxUxNumberFilterEngineCore" | "FxUxPersonFilterEngineCore" | "FxUxTextFilterEngineCore" | "FxUxTaxonomyFilterEngineCore" | "IdentitySyncProviderApi" | "BuiltinSyncProvidersRegistration" | "SharePointIntegrationExternalMapping" | "TextCompletionTenantFeature" | "DallESecretComponent" | "DallESecretRegistrations" | "DallELocalization" | "DallETenantFeature" | "DallEMediaProviderFeature" | "DefaultNotFoundLayout" | "DefaultUnauthorizedLayout" | "StatusCodeLayoutRegistration" | "BuiltinPropertyBindingProviders" | "ExtendedEnterprisePropertyBindingProvider" | "BusinessProfilePropertyBindingProvider" | "UserPropertyBindingProvider" | "MagicLinkCore" | "AdminSystemCore" | "ScopedPermissionApi" | "SecretsCore" | "BusinessProfilesCore" | "BusinessProfileAdminLanguage" | "TenantAdminMediaPickerRegistrations" | "TenantGeneralSettingsRegistration" | "TenantRegionalRegistrations" | "TenantAdminSettingsCore" | "SystemLayoutRegistration" | "SystemLayoutResource" | "BusinessProfileApi" | "AppSettingsCore" | "UserManagementApi" | "UnsplashTenantFeature", guid>;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import { MultilingualStore } from "@omnia/fx/stores";
|
2
|
+
import { ResolvedDynamicGroupIdentity, ResolvedUserIdentity } from "../shared-mobile";
|
3
|
+
export declare class IdentityUtils {
|
4
|
+
static getUserDisplayName(user: ResolvedUserIdentity, deletedUserText: string): string;
|
5
|
+
static getDynamicGroupDisplayName(group: ResolvedDynamicGroupIdentity, deletedGroupText: string, multilingualStore: MultilingualStore): string;
|
6
|
+
}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.IdentityUtils = void 0;
|
4
|
+
class IdentityUtils {
|
5
|
+
static getUserDisplayName(user, deletedUserText) {
|
6
|
+
return !user || user.isRemoved && !user.displayName
|
7
|
+
? deletedUserText
|
8
|
+
: user.displayName?.value.text + (user.isRemoved ? " *" : "");
|
9
|
+
}
|
10
|
+
static getDynamicGroupDisplayName(group, deletedGroupText, multilingualStore) {
|
11
|
+
return group.isRemoved ? deletedGroupText : group.displayName?.value?.multilingualText ? multilingualStore.getters.stringValue(group.displayName?.value?.multilingualText) : "";
|
12
|
+
}
|
13
|
+
}
|
14
|
+
exports.IdentityUtils = IdentityUtils;
|
package/identities/UserType.d.ts
CHANGED
@@ -5,11 +5,7 @@ import { UserTypeDisplaySettings } from "./UserTypeDisplaySettings";
|
|
5
5
|
import { UserTypeSettings } from "./UserTypeSettings";
|
6
6
|
import { RecurrenceSettings } from "../RecurrenceSettings";
|
7
7
|
import { PropertySelection } from "@omnia/fx/ux";
|
8
|
-
|
9
|
-
id: guid;
|
10
|
-
displayName: MultilingualString;
|
11
|
-
priorityOrder: number;
|
12
|
-
}
|
8
|
+
import { UserType } from "../shared-mobile";
|
13
9
|
export interface ResolvedUserType extends UserType {
|
14
10
|
description: MultilingualString;
|
15
11
|
settings: UserTypeSettings;
|
package/identities/index.d.ts
CHANGED
@@ -1,12 +1,8 @@
|
|
1
|
-
import "./InternalIdentity";
|
2
1
|
export * from "./IdentityApi";
|
3
2
|
export * from "./IdentityPropertyConfiguration";
|
4
3
|
export * from "./UserType";
|
5
4
|
export * from "./UserTypeRule";
|
6
5
|
export * from "./UserTypeSettings";
|
7
|
-
export * from "./ExtensionIdentity";
|
8
|
-
export * from "./RoleIdentity";
|
9
|
-
export * from "./DynamicGroupIdentity";
|
10
6
|
export * from "./GroupType";
|
11
7
|
export * from "./IdentitySyncProvider";
|
12
8
|
export * from "./IdentityProviderSettings";
|
@@ -20,3 +16,4 @@ export * from "./UserManagementQuery";
|
|
20
16
|
export * from "./GroupManagementQuery";
|
21
17
|
export * from "./ArchiveIdentityManagementQuery";
|
22
18
|
export * from "./IdentityCreationRequest";
|
19
|
+
export * from "./IdentityUtils";
|
package/identities/index.js
CHANGED
@@ -1,20 +1,12 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const tslib_1 = require("tslib");
|
4
|
-
require("./InternalIdentity");
|
5
4
|
tslib_1.__exportStar(require("./IdentityApi"), exports);
|
6
5
|
tslib_1.__exportStar(require("./IdentityPropertyConfiguration"), exports);
|
7
6
|
tslib_1.__exportStar(require("./UserType"), exports);
|
8
7
|
tslib_1.__exportStar(require("./UserTypeRule"), exports);
|
9
8
|
tslib_1.__exportStar(require("./UserTypeSettings"), exports);
|
10
|
-
// export * from "@omnia/fx-models/internal-do-not-import-from-here/shared-mobile/models/identities/UserIdentity";
|
11
|
-
// export * from "@omnia/fx-models/internal-do-not-import-from-here/shared-mobile/models/identities/GroupIdentity";
|
12
|
-
tslib_1.__exportStar(require("./ExtensionIdentity"), exports);
|
13
|
-
tslib_1.__exportStar(require("./RoleIdentity"), exports);
|
14
|
-
// export * from "@omnia/fx-models/internal-do-not-import-from-here/shared-mobile/models/identities/UserIdentityQuery";
|
15
|
-
tslib_1.__exportStar(require("./DynamicGroupIdentity"), exports);
|
16
9
|
tslib_1.__exportStar(require("./GroupType"), exports);
|
17
|
-
//export * from "@omnia/fx-models/internal-do-not-import-from-here/shared-mobile/models/identities/GroupMembers";
|
18
10
|
tslib_1.__exportStar(require("./IdentitySyncProvider"), exports);
|
19
11
|
tslib_1.__exportStar(require("./IdentityProviderSettings"), exports);
|
20
12
|
tslib_1.__exportStar(require("./IdentityProviderRunStatus"), exports);
|
@@ -23,12 +15,8 @@ tslib_1.__exportStar(require("./IdentityProviderState"), exports);
|
|
23
15
|
tslib_1.__exportStar(require("./IdentityProviderProperty"), exports);
|
24
16
|
tslib_1.__exportStar(require("./IdentityPropertySyncBinding"), exports);
|
25
17
|
tslib_1.__exportStar(require("./IdentityExternalMapping"), exports);
|
26
|
-
// export * from "@omnia/fx-models/internal-do-not-import-from-here/shared-mobile/models/identities/BuiltInIdentityProvider";
|
27
18
|
tslib_1.__exportStar(require("./UserManagementQuery"), exports);
|
28
19
|
tslib_1.__exportStar(require("./GroupManagementQuery"), exports);
|
29
20
|
tslib_1.__exportStar(require("./ArchiveIdentityManagementQuery"), exports);
|
30
21
|
tslib_1.__exportStar(require("./IdentityCreationRequest"), exports);
|
31
|
-
|
32
|
-
// export * from "@omnia/fx-models/internal-do-not-import-from-here/shared-mobile/models/identities/Identity";
|
33
|
-
// export * from "@omnia/fx-models/internal-do-not-import-from-here/shared-mobile/models/identities/IdentityTypes";
|
34
|
-
// export * from "@omnia/fx-models/internal-do-not-import-from-here/shared-mobile/models/identities/IdentityQuery";
|
22
|
+
tslib_1.__exportStar(require("./IdentityUtils"), exports);
|
@@ -1,15 +1,16 @@
|
|
1
1
|
import { SetupFactoryContext } from "../factory";
|
2
2
|
import { http } from "../http";
|
3
|
+
import { InstanceLifetimes } from "../models";
|
3
4
|
export interface SetupServiceContext extends SetupFactoryContext {
|
4
5
|
http: typeof http;
|
5
6
|
}
|
6
7
|
type ReturnServiceSetup = {
|
7
8
|
[key: string]: Function;
|
8
9
|
};
|
9
|
-
export declare function defineService<TReturnSetup extends ReturnServiceSetup>(setup: (ctx: SetupServiceContext) => TReturnSetup): () => TReturnSetup;
|
10
|
-
export declare function defineService<TReturnSetup extends ReturnServiceSetup, T1>(setup: (ctx: SetupServiceContext, param1: T1) => TReturnSetup): (param1: T1) => TReturnSetup;
|
11
|
-
export declare function defineService<TReturnSetup extends ReturnServiceSetup, T1, T2>(setup: (ctx: SetupServiceContext, param1: T1, param2: T2) => TReturnSetup): (param1: T1, param2: T2) => TReturnSetup;
|
12
|
-
export declare function defineService<TReturnSetup extends ReturnServiceSetup, T1, T2, T3>(setup: (ctx: SetupServiceContext, param1: T1, param2: T2, param3: T3) => TReturnSetup): (param1: T1, param2: T2, param3: T3) => TReturnSetup;
|
13
|
-
export declare function defineService<TReturnSetup extends ReturnServiceSetup, T1, T2, T3, T4>(setup: (ctx: SetupServiceContext, param1: T1, param2: T2, param3: T3, param4: T4) => TReturnSetup): (param1: T1, param2: T2, param3: T3, param4: T4) => TReturnSetup;
|
14
|
-
export declare function defineService<TReturnSetup extends ReturnServiceSetup, T1, T2, T3, T4, T5>(setup: (ctx: SetupServiceContext, param1: T1, param2: T2, param3: T3, param4: T4, param5: T5) => TReturnSetup): (param1: T1, param2: T2, param3: T3, param4: T4, param5: T5) => TReturnSetup;
|
10
|
+
export declare function defineService<TReturnSetup extends ReturnServiceSetup>(setup: (ctx: SetupServiceContext) => TReturnSetup, lifetime?: InstanceLifetimes): () => TReturnSetup;
|
11
|
+
export declare function defineService<TReturnSetup extends ReturnServiceSetup, T1>(setup: (ctx: SetupServiceContext, param1: T1, lifetime?: InstanceLifetimes) => TReturnSetup): (param1: T1) => TReturnSetup;
|
12
|
+
export declare function defineService<TReturnSetup extends ReturnServiceSetup, T1, T2>(setup: (ctx: SetupServiceContext, param1: T1, param2: T2, lifetime?: InstanceLifetimes) => TReturnSetup): (param1: T1, param2: T2) => TReturnSetup;
|
13
|
+
export declare function defineService<TReturnSetup extends ReturnServiceSetup, T1, T2, T3>(setup: (ctx: SetupServiceContext, param1: T1, param2: T2, param3: T3, lifetime?: InstanceLifetimes) => TReturnSetup): (param1: T1, param2: T2, param3: T3) => TReturnSetup;
|
14
|
+
export declare function defineService<TReturnSetup extends ReturnServiceSetup, T1, T2, T3, T4>(setup: (ctx: SetupServiceContext, param1: T1, param2: T2, param3: T3, param4: T4, lifetime?: InstanceLifetimes) => TReturnSetup): (param1: T1, param2: T2, param3: T3, param4: T4) => TReturnSetup;
|
15
|
+
export declare function defineService<TReturnSetup extends ReturnServiceSetup, T1, T2, T3, T4, T5>(setup: (ctx: SetupServiceContext, param1: T1, param2: T2, param3: T3, param4: T4, param5: T5, lifetime?: InstanceLifetimes) => TReturnSetup): (param1: T1, param2: T2, param3: T3, param4: T4, param5: T5) => TReturnSetup;
|
15
16
|
export {};
|
package/package.json
CHANGED
@@ -3,7 +3,6 @@ export * from "./DatePropertyDefinition";
|
|
3
3
|
export * from "./DateTimePropertyDefinition";
|
4
4
|
export * from "./BirthdayPropertyDefinition";
|
5
5
|
export * from "./IdentityPropertyDefinition";
|
6
|
-
export * from "./MultilingualTextPropertyDefinition";
|
7
6
|
export * from "./HtmlPropertyDefinition";
|
8
7
|
export * from "./MultilineTextPropertyDefinition";
|
9
8
|
export * from "./LinkPropertyDefinition";
|
@@ -1,16 +1,11 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const tslib_1 = require("tslib");
|
4
|
-
// export * from "@omnia/fx-models/internal-do-not-import-from-here/shared-mobile/models/properties/definitions/TextPropertyDefinition";
|
5
|
-
// export * from "@omnia/fx-models/internal-do-not-import-from-here/shared-mobile/models/properties/definitions/ImagePropertyDefinition";
|
6
4
|
tslib_1.__exportStar(require("./PhoneNumberPropertyDefinition"), exports);
|
7
|
-
// export * from "@omnia/fx-models/internal-do-not-import-from-here/shared-mobile/models/properties/definitions/EmailPropertyDefinition";
|
8
|
-
// export * from "@omnia/fx-models/internal-do-not-import-from-here/shared-mobile/models/properties/definitions/LanguagePropertyDefinition";
|
9
5
|
tslib_1.__exportStar(require("./DatePropertyDefinition"), exports);
|
10
6
|
tslib_1.__exportStar(require("./DateTimePropertyDefinition"), exports);
|
11
7
|
tslib_1.__exportStar(require("./BirthdayPropertyDefinition"), exports);
|
12
8
|
tslib_1.__exportStar(require("./IdentityPropertyDefinition"), exports);
|
13
|
-
tslib_1.__exportStar(require("./MultilingualTextPropertyDefinition"), exports);
|
14
9
|
tslib_1.__exportStar(require("./HtmlPropertyDefinition"), exports);
|
15
10
|
tslib_1.__exportStar(require("./MultilineTextPropertyDefinition"), exports);
|
16
11
|
tslib_1.__exportStar(require("./LinkPropertyDefinition"), exports);
|
@@ -3,7 +3,6 @@ export * from "./DatePropertyValue";
|
|
3
3
|
export * from "./DateTimePropertyValue";
|
4
4
|
export * from "./BirthdayPropertyValue";
|
5
5
|
export * from "./IdentityPropertyValue";
|
6
|
-
export * from "./MultilingualTextPropertyValue";
|
7
6
|
export * from "./HtmlPropertyValue";
|
8
7
|
export * from "./MultilineTextPropertyValue";
|
9
8
|
export * from "./LinkPropertyValue";
|
@@ -1,17 +1,11 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const tslib_1 = require("tslib");
|
4
|
-
// export * from "@omnia/fx-models/internal-do-not-import-from-here/shared-mobile/models/properties/values/TextPropertyValue";
|
5
|
-
// export * from "@omnia/fx-models/internal-do-not-import-from-here/shared-mobile/models/properties/values/ImagePropertyValue";
|
6
|
-
// export * from "@omnia/fx-models/internal-do-not-import-from-here/shared-mobile/models/properties/values/PhoneNumberPropertyValue";
|
7
|
-
// export * from "@omnia/fx-models/internal-do-not-import-from-here/shared-mobile/models/properties/values/EmailPropertyValue";
|
8
|
-
// export * from "@omnia/fx-models/internal-do-not-import-from-here/shared-mobile/models/properties/values/LanguagePropertyValue";
|
9
4
|
tslib_1.__exportStar(require("./BooleanPropertyValue"), exports);
|
10
5
|
tslib_1.__exportStar(require("./DatePropertyValue"), exports);
|
11
6
|
tslib_1.__exportStar(require("./DateTimePropertyValue"), exports);
|
12
7
|
tslib_1.__exportStar(require("./BirthdayPropertyValue"), exports);
|
13
8
|
tslib_1.__exportStar(require("./IdentityPropertyValue"), exports);
|
14
|
-
tslib_1.__exportStar(require("./MultilingualTextPropertyValue"), exports);
|
15
9
|
tslib_1.__exportStar(require("./HtmlPropertyValue"), exports);
|
16
10
|
tslib_1.__exportStar(require("./MultilineTextPropertyValue"), exports);
|
17
11
|
tslib_1.__exportStar(require("./LinkPropertyValue"), exports);
|
@@ -1,5 +1,7 @@
|
|
1
|
-
import { Identity, IdentityTypes, IResolvedIdentity, ImagePropertyDefinition, TextPropertyDefinition } from "../shared-mobile";
|
2
1
|
import { guid, PropertyValueBinding } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
|
2
|
+
import { Identity, IResolvedIdentity } from "./Identity";
|
3
|
+
import { IdentityTypes } from "./IdentityTypes";
|
4
|
+
import { ImagePropertyDefinition, TextPropertyDefinition } from "../properties";
|
3
5
|
export declare class AnonymousIdentity extends Identity {
|
4
6
|
type: IdentityTypes;
|
5
7
|
}
|
@@ -1,11 +1,12 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.ResolvedAnonymousIdentity = exports.AnonymousIdentity = void 0;
|
4
|
-
const
|
5
|
-
|
4
|
+
const Identity_1 = require("./Identity");
|
5
|
+
const IdentityTypes_1 = require("./IdentityTypes");
|
6
|
+
class AnonymousIdentity extends Identity_1.Identity {
|
6
7
|
constructor() {
|
7
8
|
super(...arguments);
|
8
|
-
this.type =
|
9
|
+
this.type = IdentityTypes_1.IdentityTypes.Anonymous;
|
9
10
|
}
|
10
11
|
}
|
11
12
|
exports.AnonymousIdentity = AnonymousIdentity;
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import { MultilingualStore } from "@omnia/fx/stores";
|
2
|
-
import { ImagePropertyDefinition, TextPropertyDefinition, Identity, IResolvedIdentity, IdentityTypes } from "../shared-mobile";
|
3
|
-
import { MultilingualTextPropertyDefinition } from "../properties";
|
4
|
-
import { UserType } from "./UserType";
|
5
1
|
import { guid, PropertyValueBinding } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
|
2
|
+
import { UserType } from "./UserType";
|
3
|
+
import { IdentityTypes } from "./IdentityTypes";
|
4
|
+
import { Identity, IResolvedIdentity } from "./Identity";
|
5
|
+
import { ImagePropertyDefinition, MultilingualTextPropertyDefinition, TextPropertyDefinition } from "../properties";
|
6
6
|
export declare class DynamicGroupIdentity extends Identity {
|
7
7
|
type: IdentityTypes;
|
8
8
|
}
|
@@ -20,5 +20,4 @@ export declare class ResolvedDynamicGroupIdentity extends DynamicGroupIdentity i
|
|
20
20
|
externalIdentityMappings: PropertyValueBinding<TextPropertyDefinition>;
|
21
21
|
priorityOrder: number;
|
22
22
|
isRemoved: boolean;
|
23
|
-
static getDisplayName(group: ResolvedDynamicGroupIdentity, deletedGroupText: string, multilingualStore: MultilingualStore): string;
|
24
23
|
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.ResolvedDynamicGroupIdentity = exports.DynamicGroupIdentity = void 0;
|
4
|
+
const IdentityTypes_1 = require("./IdentityTypes");
|
5
|
+
const Identity_1 = require("./Identity");
|
6
|
+
class DynamicGroupIdentity extends Identity_1.Identity {
|
7
|
+
constructor() {
|
8
|
+
super(...arguments);
|
9
|
+
this.type = IdentityTypes_1.IdentityTypes.DynamicGroup;
|
10
|
+
}
|
11
|
+
}
|
12
|
+
exports.DynamicGroupIdentity = DynamicGroupIdentity;
|
13
|
+
class ResolvedDynamicGroupIdentity extends DynamicGroupIdentity {
|
14
|
+
}
|
15
|
+
exports.ResolvedDynamicGroupIdentity = ResolvedDynamicGroupIdentity;
|
@@ -1,5 +1,7 @@
|
|
1
|
-
import { ImagePropertyDefinition, TextPropertyDefinition, Identity, IResolvedIdentity, IdentityTypes } from "../shared-mobile";
|
2
1
|
import { guid, PropertyValueBinding } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
|
2
|
+
import { Identity, IResolvedIdentity } from "./Identity";
|
3
|
+
import { IdentityTypes } from "./IdentityTypes";
|
4
|
+
import { ImagePropertyDefinition, TextPropertyDefinition } from "../properties";
|
3
5
|
export declare class ExtensionIdentity extends Identity {
|
4
6
|
type: IdentityTypes;
|
5
7
|
}
|
@@ -1,11 +1,12 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.ResolvedExtensionIdentity = exports.ExtensionIdentity = void 0;
|
4
|
-
const
|
5
|
-
|
4
|
+
const Identity_1 = require("./Identity");
|
5
|
+
const IdentityTypes_1 = require("./IdentityTypes");
|
6
|
+
class ExtensionIdentity extends Identity_1.Identity {
|
6
7
|
constructor() {
|
7
8
|
super(...arguments);
|
8
|
-
this.type =
|
9
|
+
this.type = IdentityTypes_1.IdentityTypes.Extension;
|
9
10
|
}
|
10
11
|
}
|
11
12
|
exports.ExtensionIdentity = ExtensionIdentity;
|
@@ -0,0 +1,29 @@
|
|
1
|
+
"use strict";
|
2
|
+
// create separate file to prevent circular reference.
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
4
|
+
const AnonymousIdentity_1 = require("./AnonymousIdentity");
|
5
|
+
const DynamicGroupIdentity_1 = require("./DynamicGroupIdentity");
|
6
|
+
const ExtensionIdentity_1 = require("./ExtensionIdentity");
|
7
|
+
const RoleIdentity_1 = require("./RoleIdentity");
|
8
|
+
const IdentityTypes_1 = require("./IdentityTypes");
|
9
|
+
const Identity_1 = require("./Identity");
|
10
|
+
const UserIdentity_1 = require("./UserIdentity");
|
11
|
+
const GroupIdentity_1 = require("./GroupIdentity");
|
12
|
+
Identity_1.Identity["createIdentity"] = function (type, id) {
|
13
|
+
switch (type) {
|
14
|
+
case IdentityTypes_1.IdentityTypes.User:
|
15
|
+
return new UserIdentity_1.UserIdentity(id);
|
16
|
+
case IdentityTypes_1.IdentityTypes.Group:
|
17
|
+
return new GroupIdentity_1.GroupIdentity(id);
|
18
|
+
case IdentityTypes_1.IdentityTypes.Extension:
|
19
|
+
return new ExtensionIdentity_1.ExtensionIdentity(id);
|
20
|
+
case IdentityTypes_1.IdentityTypes.Role:
|
21
|
+
return new RoleIdentity_1.RoleIdentity(id);
|
22
|
+
case IdentityTypes_1.IdentityTypes.DynamicGroup:
|
23
|
+
return new DynamicGroupIdentity_1.DynamicGroupIdentity(id);
|
24
|
+
case IdentityTypes_1.IdentityTypes.Anonymous:
|
25
|
+
return new AnonymousIdentity_1.AnonymousIdentity(id);
|
26
|
+
default:
|
27
|
+
throw new Error(`Can't create identity for unhandled type. -> ${type}`);
|
28
|
+
}
|
29
|
+
};
|
@@ -1,5 +1,7 @@
|
|
1
|
-
import { Identity, IdentityTypes, IResolvedIdentity, ImagePropertyDefinition, TextPropertyDefinition } from "../shared-mobile";
|
2
1
|
import { guid, PropertyValueBinding } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
|
2
|
+
import { Identity, IResolvedIdentity } from "./Identity";
|
3
|
+
import { IdentityTypes } from "./IdentityTypes";
|
4
|
+
import { ImagePropertyDefinition, TextPropertyDefinition } from "../properties";
|
3
5
|
export declare class RoleIdentity extends Identity {
|
4
6
|
type: IdentityTypes;
|
5
7
|
}
|
@@ -1,11 +1,12 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.ResolvedRoleIdentity = exports.RoleIdentity = void 0;
|
4
|
-
const
|
5
|
-
|
4
|
+
const Identity_1 = require("./Identity");
|
5
|
+
const IdentityTypes_1 = require("./IdentityTypes");
|
6
|
+
class RoleIdentity extends Identity_1.Identity {
|
6
7
|
constructor() {
|
7
8
|
super(...arguments);
|
8
|
-
this.type =
|
9
|
+
this.type = IdentityTypes_1.IdentityTypes.Role;
|
9
10
|
}
|
10
11
|
}
|
11
12
|
exports.RoleIdentity = RoleIdentity;
|
@@ -37,7 +37,6 @@ export declare class ResolvedUserIdentity extends UserIdentity implements IResol
|
|
37
37
|
static tryToGetAzureAdProperties(resolvedUser: ResolvedUserIdentity): AzureAdUserPropertyValues;
|
38
38
|
static safeGetUiLanguage(resolvedUser: ResolvedUserIdentity): PropertyValueBinding<LanguagePropertyDefinition>;
|
39
39
|
static isAnonymousUser(resolvedUser: ResolvedUserIdentity): boolean;
|
40
|
-
static getDisplayName(user: ResolvedUserIdentity, deletedUserText: string): string;
|
41
40
|
}
|
42
41
|
export declare abstract class UserPropertyBagModel extends OmniaNamedModel {
|
43
42
|
}
|
@@ -65,11 +65,6 @@ class ResolvedUserIdentity extends UserIdentity {
|
|
65
65
|
static isAnonymousUser(resolvedUser) {
|
66
66
|
return resolvedUser.id === SharedMobileEnums_1.SecurityIdentities.AnonymousIdentity;
|
67
67
|
}
|
68
|
-
static getDisplayName(user, deletedUserText) {
|
69
|
-
return !user || user.isRemoved && !user.displayName
|
70
|
-
? deletedUserText
|
71
|
-
: user.displayName?.value.text + (user.isRemoved ? " *" : "");
|
72
|
-
}
|
73
68
|
}
|
74
69
|
exports.ResolvedUserIdentity = ResolvedUserIdentity;
|
75
70
|
class UserPropertyBagModel extends NamedProperty_1.OmniaNamedModel {
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import "./InternalIdentity";
|
1
2
|
export * from "./Identity";
|
2
3
|
export * from "./IdentityTypes";
|
3
4
|
export * from "./IdentityQuery";
|
@@ -7,3 +8,8 @@ export * from "./GroupMembers";
|
|
7
8
|
export * from "./UserIdentity";
|
8
9
|
export * from "./UserIdentityQuery";
|
9
10
|
export * from "./BuiltInIdentityProvider";
|
11
|
+
export * from "./UserType";
|
12
|
+
export * from "./AnonymousIdentity";
|
13
|
+
export * from "./DynamicGroupIdentity";
|
14
|
+
export * from "./ExtensionIdentity";
|
15
|
+
export * from "./RoleIdentity";
|
@@ -1,6 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const tslib_1 = require("tslib");
|
4
|
+
require("./InternalIdentity");
|
4
5
|
tslib_1.__exportStar(require("./Identity"), exports);
|
5
6
|
tslib_1.__exportStar(require("./IdentityTypes"), exports);
|
6
7
|
tslib_1.__exportStar(require("./IdentityQuery"), exports);
|
@@ -10,3 +11,8 @@ tslib_1.__exportStar(require("./GroupMembers"), exports);
|
|
10
11
|
tslib_1.__exportStar(require("./UserIdentity"), exports);
|
11
12
|
tslib_1.__exportStar(require("./UserIdentityQuery"), exports);
|
12
13
|
tslib_1.__exportStar(require("./BuiltInIdentityProvider"), exports);
|
14
|
+
tslib_1.__exportStar(require("./UserType"), exports);
|
15
|
+
tslib_1.__exportStar(require("./AnonymousIdentity"), exports);
|
16
|
+
tslib_1.__exportStar(require("./DynamicGroupIdentity"), exports);
|
17
|
+
tslib_1.__exportStar(require("./ExtensionIdentity"), exports);
|
18
|
+
tslib_1.__exportStar(require("./RoleIdentity"), exports);
|
package/{properties → shared-mobile/properties}/definitions/MultilingualTextPropertyDefinition.d.ts
RENAMED
@@ -1,6 +1,5 @@
|
|
1
|
-
import { PropertyDefinition, PropertyDisplaySettingsBase, PropertyEditorSettingsBase } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
|
1
|
+
import { guid, PropertyDefinition, PropertyDisplaySettingsBase, PropertyEditorSettingsBase } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
|
2
2
|
import { MultilingualTextPropertyValue } from "../values";
|
3
|
-
import { guid } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
|
4
3
|
export declare class MultilingualTextDisplaySettings extends PropertyDisplaySettingsBase {
|
5
4
|
}
|
6
5
|
export declare class MultilingualTextEditorSettings extends PropertyEditorSettingsBase {
|
package/{properties → shared-mobile/properties}/definitions/MultilingualTextPropertyDefinition.js
RENAMED
@@ -2,14 +2,13 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.MultilingualTextPropertyDefinition = exports.multilingualTextPropertyDefinitionId = exports.MultilingualTextEditorSettings = exports.MultilingualTextDisplaySettings = void 0;
|
4
4
|
const models_1 = require("@omnia/fx-models/internal-do-not-import-from-here/shared/models");
|
5
|
-
const models_2 = require("@omnia/fx-models/internal-do-not-import-from-here/shared/models");
|
6
5
|
class MultilingualTextDisplaySettings extends models_1.PropertyDisplaySettingsBase {
|
7
6
|
}
|
8
7
|
exports.MultilingualTextDisplaySettings = MultilingualTextDisplaySettings;
|
9
8
|
class MultilingualTextEditorSettings extends models_1.PropertyEditorSettingsBase {
|
10
9
|
}
|
11
10
|
exports.MultilingualTextEditorSettings = MultilingualTextEditorSettings;
|
12
|
-
exports.multilingualTextPropertyDefinitionId = (0,
|
11
|
+
exports.multilingualTextPropertyDefinitionId = (0, models_1.guid)("fac59287-f793-4733-b466-dc84bc277d23");
|
13
12
|
class MultilingualTextPropertyDefinition extends models_1.PropertyDefinition {
|
14
13
|
constructor() {
|
15
14
|
super(...arguments);
|
@@ -5,3 +5,4 @@ tslib_1.__exportStar(require("./EmailPropertyDefinition"), exports);
|
|
5
5
|
tslib_1.__exportStar(require("./ImagePropertyDefinition"), exports);
|
6
6
|
tslib_1.__exportStar(require("./LanguagePropertyDefinition"), exports);
|
7
7
|
tslib_1.__exportStar(require("./TextPropertyDefinition"), exports);
|
8
|
+
tslib_1.__exportStar(require("./MultilingualTextPropertyDefinition"), exports);
|
@@ -6,3 +6,4 @@ tslib_1.__exportStar(require("./TextPropertyValue"), exports);
|
|
6
6
|
tslib_1.__exportStar(require("./ImagePropertyValue"), exports);
|
7
7
|
tslib_1.__exportStar(require("./PhoneNumberPropertyValue"), exports);
|
8
8
|
tslib_1.__exportStar(require("./LanguagePropertyValue"), exports);
|
9
|
+
tslib_1.__exportStar(require("./MultilingualTextPropertyValue"), exports);
|
@@ -1,17 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.ResolvedDynamicGroupIdentity = exports.DynamicGroupIdentity = void 0;
|
4
|
-
const shared_mobile_1 = require("../shared-mobile");
|
5
|
-
class DynamicGroupIdentity extends shared_mobile_1.Identity {
|
6
|
-
constructor() {
|
7
|
-
super(...arguments);
|
8
|
-
this.type = shared_mobile_1.IdentityTypes.DynamicGroup;
|
9
|
-
}
|
10
|
-
}
|
11
|
-
exports.DynamicGroupIdentity = DynamicGroupIdentity;
|
12
|
-
class ResolvedDynamicGroupIdentity extends DynamicGroupIdentity {
|
13
|
-
static getDisplayName(group, deletedGroupText, multilingualStore) {
|
14
|
-
return group.isRemoved ? deletedGroupText : group.displayName?.value?.multilingualText ? multilingualStore.getters.stringValue(group.displayName?.value?.multilingualText) : "";
|
15
|
-
}
|
16
|
-
}
|
17
|
-
exports.ResolvedDynamicGroupIdentity = ResolvedDynamicGroupIdentity;
|
@@ -1,40 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
// create separate file to prevent circular reference.
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
4
|
-
const shared_mobile_1 = require("../shared-mobile");
|
5
|
-
const AnonymousIdentity_1 = require("./AnonymousIdentity");
|
6
|
-
const DynamicGroupIdentity_1 = require("./DynamicGroupIdentity");
|
7
|
-
const ExtensionIdentity_1 = require("./ExtensionIdentity");
|
8
|
-
const RoleIdentity_1 = require("./RoleIdentity");
|
9
|
-
shared_mobile_1.Identity["createIdentity"] = function (type, id) {
|
10
|
-
switch (type) {
|
11
|
-
case shared_mobile_1.IdentityTypes.User:
|
12
|
-
return new shared_mobile_1.UserIdentity(id);
|
13
|
-
case shared_mobile_1.IdentityTypes.Group:
|
14
|
-
return new shared_mobile_1.GroupIdentity(id);
|
15
|
-
case shared_mobile_1.IdentityTypes.Extension:
|
16
|
-
return new ExtensionIdentity_1.ExtensionIdentity(id);
|
17
|
-
case shared_mobile_1.IdentityTypes.Role:
|
18
|
-
return new RoleIdentity_1.RoleIdentity(id);
|
19
|
-
case shared_mobile_1.IdentityTypes.DynamicGroup:
|
20
|
-
return new DynamicGroupIdentity_1.DynamicGroupIdentity(id);
|
21
|
-
case shared_mobile_1.IdentityTypes.Anonymous:
|
22
|
-
return new AnonymousIdentity_1.AnonymousIdentity(id);
|
23
|
-
default:
|
24
|
-
throw new Error(`Can't create identity for unhandled type. -> ${type}`);
|
25
|
-
}
|
26
|
-
};
|
27
|
-
// export function createIdentity(type: IdentityTypes, id: guid) {
|
28
|
-
// switch (type) {
|
29
|
-
// case IdentityTypes.User:
|
30
|
-
// return new UserIdentity(id);
|
31
|
-
// case IdentityTypes.Group:
|
32
|
-
// return new GroupIdentity(id);
|
33
|
-
// case IdentityTypes.Extension:
|
34
|
-
// return new ExtensionIdentity(id);
|
35
|
-
// case IdentityTypes.Role:
|
36
|
-
// return new RoleIdentity(id);
|
37
|
-
// default:
|
38
|
-
// throw new Error(`Can't create identity for unhandled type. -> ${type}`);
|
39
|
-
// }
|
40
|
-
// }
|
File without changes
|
File without changes
|
File without changes
|