@omnia/fx 8.0.128-dev → 8.0.130-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/internal-do-not-import-from-here/core/Factory.d.ts +2 -0
- package/internal-do-not-import-from-here/core/index.d.ts +2 -4
- package/internal-do-not-import-from-here/core/messaging/BuiltInTopics.d.ts +1 -1
- package/internal-do-not-import-from-here/core/messaging/index.d.ts +1 -1
- package/internal-do-not-import-from-here/core/utils/Utils.d.ts +1 -1
- package/internal-do-not-import-from-here/index.d.ts +16 -18
- package/internal-do-not-import-from-here/manifests/omnia.fx.core.manifest.json +1 -1
- package/internal-do-not-import-from-here/runtime/core/ManifestResourceLoader.d.ts +1 -1
- package/internal-do-not-import-from-here/services/index.d.ts +0 -1
- package/internal-do-not-import-from-here/ux/blueprintpickers/{chromepicker/ChromeBlueprintsPicker.css.d.ts → blueprintTemplate/BlueprintsTemplatePicker.css.d.ts} +1 -1
- package/internal-do-not-import-from-here/ux/blueprintpickers/{chromepicker/ChromeBlueprintsPicker.d.ts → blueprintTemplate/BlueprintsTemplatePicker.d.ts} +120 -98
- package/internal-do-not-import-from-here/ux/blueprintpickers/{chromepicker → chrome}/ChromePicker.d.ts +95 -95
- package/internal-do-not-import-from-here/ux/blueprintpickers/typography/TypographyBlueprintsViewer.css.d.ts +4 -0
- package/internal-do-not-import-from-here/ux/blueprintpickers/typography/TypographyBlueprintsViewer.d.ts +76 -0
- package/internal-do-not-import-from-here/ux/colorschemapicker/ColorSchemaDefinitionPicker.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/colorschemapicker/ColorSchemaPicker.d.ts +91 -91
- package/internal-do-not-import-from-here/ux/colorschemapicker/ColorSchemaViewer.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/docs/services/DocsService.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/identities/components/shared/IdentitySyncRuleSetup.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/layoutcanvas/editor/settings/layout/BlockHeader.d.ts +10 -10
- package/internal-do-not-import-from-here/ux/layoutcanvas/editor/settings/layout/GlobalHeaderStyling.d.ts +10 -10
- package/internal-do-not-import-from-here/ux/layoutcanvas/editor/settings/layout/Style.d.ts +10 -10
- package/internal-do-not-import-from-here/ux/layoutcanvas/editor/settings/lock/Lock.d.ts +10 -10
- package/internal-do-not-import-from-here/ux/layoutcanvas/editor/settings/section/Css.d.ts +10 -10
- package/internal-do-not-import-from-here/ux/layoutcanvas/editor/settings/section/Header.d.ts +10 -10
- package/internal-do-not-import-from-here/ux/layoutcanvas/editor/settings/section/Spacing.d.ts +10 -10
- package/internal-do-not-import-from-here/ux/layoutcanvas/editor/settings/section/Style.d.ts +10 -10
- package/internal-do-not-import-from-here/ux/layoutcanvas/editor/settings/section/Targeting.d.ts +10 -10
- package/internal-do-not-import-from-here/ux/oxide/checkbox/Checkbox.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/oxide/colorpicker/ColorPicker.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/oxide/datatable/DataTable.css.d.ts +949 -947
- package/internal-do-not-import-from-here/ux/oxide/datatable/DataTable.d.ts +2294 -2290
- package/internal-do-not-import-from-here/ux/oxide/divider/Divider.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/oxide/list/List.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/oxide/radio/Radio.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/oxide/radio/RadioGroup.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/oxide/rangeslider/RangeSlider.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/oxide/select/Select.d.ts +2297 -2293
- package/internal-do-not-import-from-here/ux/oxide/slider/Slider.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/oxide/switch/Switch.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/oxide/textarea/TextArea.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/oxide/textfield/TextField.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/properties/models/PropertyApi.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/signin/identitycreationrequest/IdentityCreationRequestView.d.ts +10 -10
- package/internal-do-not-import-from-here/ux/theming-v2/admin/blades/blueprints/{chrome → components}/store/ChromeEditorStore.d.ts +1 -7
- package/internal-do-not-import-from-here/ux/theming-v2/admin/blades/blueprints/components/store/ComponentEditorStore.d.ts +2 -0
- package/internal-do-not-import-from-here/ux/theming-v2/designkits/core/BlueprintsTemplates.d.ts +4 -11
- package/internal-do-not-import-from-here/ux/theming-v2/designkits/core/ThemeDefinitionInstance.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/theming-v2/store/ChromeBlueprintStore.d.ts +938 -935
- package/internal-do-not-import-from-here/ux/theming-v2/store/ColorSchemaStore.d.ts +943 -940
- package/internal-do-not-import-from-here/ux/theming-v2/store/ComponentBlueprintStore.d.ts +938 -935
- package/internal-do-not-import-from-here/ux/theming-v2/store/SpacingBlueprintStore.d.ts +938 -935
- package/internal-do-not-import-from-here/ux/theming-v2/store/ThemeContextStore.d.ts +45 -54
- package/internal-do-not-import-from-here/ux/theming-v2/store/ThemeStoreV2.d.ts +0 -1
- package/internal-do-not-import-from-here/ux/theming-v2/store/TypographyBlueprintStore.d.ts +938 -935
- package/internal-do-not-import-from-here/ux/theming-v2/styling/UseStyling.d.ts +11540 -11520
- package/internal-do-not-import-from-here/ux/theming-v2/themepicker/ThemeViewer.d.ts +68 -0
- package/internal-do-not-import-from-here/ux/theming-v2/themeprovider/ThemeProvider.d.ts +10 -10
- package/internal-do-not-import-from-here/ux/use/UseColorSchemaSetup.d.ts +949 -947
- package/internal-do-not-import-from-here/ux/velcron/core/index.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/velcron/core/models/VelcronDefinitions.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/velcron/core/stores/VelcronColorSchema.d.ts +6 -6
- package/internal-do-not-import-from-here/ux/velcron/renderer/VelcronRenderer.d.ts +5 -5
- package/internal-do-not-import-from-here/wctypings.d.ts +53 -42
- package/package.json +2 -2
- package/internal-do-not-import-from-here/core/DefineFactory.d.ts +0 -12
- package/internal-do-not-import-from-here/core/Inject.d.ts +0 -30
- package/internal-do-not-import-from-here/core/Injectable.d.ts +0 -4
- package/internal-do-not-import-from-here/core/ServiceContainer.d.ts +0 -44
- package/internal-do-not-import-from-here/core/messaging/MessageBus.d.ts +0 -48
- package/internal-do-not-import-from-here/core/messaging/MessageBusMediator.d.ts +0 -30
- package/internal-do-not-import-from-here/shared/broadcasting/Broadcast.d.ts +0 -37
- package/internal-do-not-import-from-here/shared/broadcasting/InternalTopics.d.ts +0 -23
- package/internal-do-not-import-from-here/shared/broadcasting/index.d.ts +0 -1
- package/internal-do-not-import-from-here/shared/http/Http.d.ts +0 -141
- package/internal-do-not-import-from-here/shared/http/index.d.ts +0 -1
- package/internal-do-not-import-from-here/shared/index.d.ts +0 -9
- package/internal-do-not-import-from-here/shared/models/Broadcasting.d.ts +0 -25
- package/internal-do-not-import-from-here/shared/models/Broadcasting.js +0 -12
- package/internal-do-not-import-from-here/shared/models/DynamicState.d.ts +0 -1
- package/internal-do-not-import-from-here/shared/models/DynamicState.js +0 -2
- package/internal-do-not-import-from-here/shared/models/Equals.d.ts +0 -3
- package/internal-do-not-import-from-here/shared/models/Equals.js +0 -44
- package/internal-do-not-import-from-here/shared/models/Future.d.ts +0 -60
- package/internal-do-not-import-from-here/shared/models/Future.js +0 -149
- package/internal-do-not-import-from-here/shared/models/Guid.d.ts +0 -25
- package/internal-do-not-import-from-here/shared/models/Guid.js +0 -80
- package/internal-do-not-import-from-here/shared/models/HttpCommon.d.ts +0 -41
- package/internal-do-not-import-from-here/shared/models/HttpCommon.js +0 -9
- package/internal-do-not-import-from-here/shared/models/OmniaSharedBootstrapData.d.ts +0 -34
- package/internal-do-not-import-from-here/shared/models/OmniaSharedBootstrapData.js +0 -2
- package/internal-do-not-import-from-here/shared/models/Realtime.d.ts +0 -28
- package/internal-do-not-import-from-here/shared/models/Realtime.js +0 -19
- package/internal-do-not-import-from-here/shared/models/SharedConstants.d.ts +0 -5
- package/internal-do-not-import-from-here/shared/models/SharedConstants.js +0 -9
- package/internal-do-not-import-from-here/shared/models/StringExtensions.d.ts +0 -6
- package/internal-do-not-import-from-here/shared/models/StringExtensions.js +0 -3
- package/internal-do-not-import-from-here/shared/models/StronglyTypedId.d.ts +0 -3
- package/internal-do-not-import-from-here/shared/models/StronglyTypedId.js +0 -2
- package/internal-do-not-import-from-here/shared/models/Tenant.d.ts +0 -4
- package/internal-do-not-import-from-here/shared/models/Tenant.js +0 -2
- package/internal-do-not-import-from-here/shared/models/Tokens.d.ts +0 -15
- package/internal-do-not-import-from-here/shared/models/Tokens.js +0 -2
- package/internal-do-not-import-from-here/shared/models/Topic.d.ts +0 -10
- package/internal-do-not-import-from-here/shared/models/Topic.js +0 -2
- package/internal-do-not-import-from-here/shared/models/WorkerProxyFuncs.d.ts +0 -14
- package/internal-do-not-import-from-here/shared/models/WorkerProxyFuncs.js +0 -18
- package/internal-do-not-import-from-here/shared/models/Workers.d.ts +0 -29
- package/internal-do-not-import-from-here/shared/models/Workers.js +0 -8
- package/internal-do-not-import-from-here/shared/models/hub/TempSocialReactions.d.ts +0 -13
- package/internal-do-not-import-from-here/shared/models/hub/TempSocialReactions.js +0 -20
- package/internal-do-not-import-from-here/shared/models/hub/activities/Activity.d.ts +0 -75
- package/internal-do-not-import-from-here/shared/models/hub/activities/Activity.js +0 -13
- package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityChannel.d.ts +0 -7
- package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityChannel.js +0 -5
- package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityDefinition.d.ts +0 -14
- package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityDefinition.js +0 -15
- package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityFeed.d.ts +0 -31
- package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityFeed.js +0 -2
- package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityRenderer.d.ts +0 -15
- package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityRenderer.js +0 -5
- package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityRendererLoadingReferences.d.ts +0 -8
- package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityRendererLoadingReferences.js +0 -2
- package/internal-do-not-import-from-here/shared/models/hub/activities/ActivitySubscription.d.ts +0 -16
- package/internal-do-not-import-from-here/shared/models/hub/activities/ActivitySubscription.js +0 -5
- package/internal-do-not-import-from-here/shared/models/hub/activities/ActorActivity.d.ts +0 -40
- package/internal-do-not-import-from-here/shared/models/hub/activities/ActorActivity.js +0 -17
- package/internal-do-not-import-from-here/shared/models/hub/activities/index.d.ts +0 -8
- package/internal-do-not-import-from-here/shared/models/hub/activities/index.js +0 -11
- package/internal-do-not-import-from-here/shared/models/hub/actors/Actor.d.ts +0 -21
- package/internal-do-not-import-from-here/shared/models/hub/actors/Actor.js +0 -10
- package/internal-do-not-import-from-here/shared/models/hub/actors/ExternalActorId.d.ts +0 -2
- package/internal-do-not-import-from-here/shared/models/hub/actors/ExternalActorId.js +0 -2
- package/internal-do-not-import-from-here/shared/models/hub/actors/index.d.ts +0 -2
- package/internal-do-not-import-from-here/shared/models/hub/actors/index.js +0 -5
- package/internal-do-not-import-from-here/shared/models/hub/fileupload/FileOwnerId.d.ts +0 -3
- package/internal-do-not-import-from-here/shared/models/hub/fileupload/FileOwnerId.js +0 -5
- package/internal-do-not-import-from-here/shared/models/hub/fileupload/TemporaryFileId.d.ts +0 -4
- package/internal-do-not-import-from-here/shared/models/hub/fileupload/TemporaryFileId.js +0 -5
- package/internal-do-not-import-from-here/shared/models/hub/fileupload/index.d.ts +0 -2
- package/internal-do-not-import-from-here/shared/models/hub/fileupload/index.js +0 -5
- package/internal-do-not-import-from-here/shared/models/hub/index.d.ts +0 -7
- package/internal-do-not-import-from-here/shared/models/hub/index.js +0 -10
- package/internal-do-not-import-from-here/shared/models/hub/social/HubComment.d.ts +0 -10
- package/internal-do-not-import-from-here/shared/models/hub/social/HubComment.js +0 -2
- package/internal-do-not-import-from-here/shared/models/hub/social/HubReaction.d.ts +0 -5
- package/internal-do-not-import-from-here/shared/models/hub/social/HubReaction.js +0 -2
- package/internal-do-not-import-from-here/shared/models/hub/social/index.d.ts +0 -2
- package/internal-do-not-import-from-here/shared/models/hub/social/index.js +0 -5
- package/internal-do-not-import-from-here/shared/models/hub/targeting/ExternalIdentityProperty.d.ts +0 -10
- package/internal-do-not-import-from-here/shared/models/hub/targeting/ExternalIdentityProperty.js +0 -19
- package/internal-do-not-import-from-here/shared/models/hub/targeting/HubSource.d.ts +0 -3
- package/internal-do-not-import-from-here/shared/models/hub/targeting/HubSource.js +0 -7
- package/internal-do-not-import-from-here/shared/models/hub/targeting/index.d.ts +0 -1
- package/internal-do-not-import-from-here/shared/models/hub/targeting/index.js +0 -4
- package/internal-do-not-import-from-here/shared/models/index.d.ts +0 -19
- package/internal-do-not-import-from-here/shared/models/index.js +0 -23
- package/internal-do-not-import-from-here/shared/models/theming/Blueprints.d.ts +0 -116
- package/internal-do-not-import-from-here/shared/models/theming/Blueprints.js +0 -12
- package/internal-do-not-import-from-here/shared/models/theming/Chrome.d.ts +0 -16
- package/internal-do-not-import-from-here/shared/models/theming/Chrome.js +0 -2
- package/internal-do-not-import-from-here/shared/models/theming/SharedBlueprintMethods.d.ts +0 -2
- package/internal-do-not-import-from-here/shared/models/theming/SharedBlueprintMethods.js +0 -38
- package/internal-do-not-import-from-here/shared/models/theming/SharedColorMethods.d.ts +0 -1
- package/internal-do-not-import-from-here/shared/models/theming/SharedColorMethods.js +0 -45
- package/internal-do-not-import-from-here/shared/models/theming/Spacing.d.ts +0 -22
- package/internal-do-not-import-from-here/shared/models/theming/Spacing.js +0 -11
- package/internal-do-not-import-from-here/shared/models/theming/ThemeDefinitionV2.d.ts +0 -107
- package/internal-do-not-import-from-here/shared/models/theming/ThemeDefinitionV2.js +0 -28
- package/internal-do-not-import-from-here/shared/models/theming/Typography.d.ts +0 -59
- package/internal-do-not-import-from-here/shared/models/theming/Typography.js +0 -17
- package/internal-do-not-import-from-here/shared/models/theming/UseThemeMethods.d.ts +0 -9
- package/internal-do-not-import-from-here/shared/models/theming/UseThemeMethods.js +0 -99
- package/internal-do-not-import-from-here/shared/models/theming/index.d.ts +0 -8
- package/internal-do-not-import-from-here/shared/models/theming/index.js +0 -12
- package/internal-do-not-import-from-here/shared/models/velcron/VelcronDefinition.d.ts +0 -87
- package/internal-do-not-import-from-here/shared/models/velcron/VelcronDefinition.js +0 -2
- package/internal-do-not-import-from-here/shared/models/velcron/VelcronEvents.d.ts +0 -22
- package/internal-do-not-import-from-here/shared/models/velcron/VelcronEvents.js +0 -2
- package/internal-do-not-import-from-here/shared/models/velcron/VelcronReference.d.ts +0 -20
- package/internal-do-not-import-from-here/shared/models/velcron/VelcronReference.js +0 -5
- package/internal-do-not-import-from-here/shared/models/velcron/index.d.ts +0 -3
- package/internal-do-not-import-from-here/shared/models/velcron/index.js +0 -6
- package/internal-do-not-import-from-here/shared/services/ActivityService.d.ts +0 -27
- package/internal-do-not-import-from-here/shared/services/ActivitySubscriptionService.d.ts +0 -15
- package/internal-do-not-import-from-here/shared/services/DefineService.d.ts +0 -6
- package/internal-do-not-import-from-here/shared/services/RealtimeService.d.ts +0 -8
- package/internal-do-not-import-from-here/shared/services/index.d.ts +0 -4
- package/internal-do-not-import-from-here/shared/workers/Leader.d.ts +0 -6
- package/internal-do-not-import-from-here/shared/workers/WorkerProxy.d.ts +0 -11
- package/internal-do-not-import-from-here/shared/workers/index.d.ts +0 -2
- package/internal-do-not-import-from-here/ux/theming-v2/admin/blades/blueprints/chrome/ChromeJourney.d.ts +0 -22
- /package/internal-do-not-import-from-here/ux/blueprintpickers/{backgroundstylepicker → backgroundstyle}/BackgroundStyleEditor.d.ts +0 -0
- /package/internal-do-not-import-from-here/ux/blueprintpickers/{backgroundstylepicker → backgroundstyle}/docs/ExampleComponents.d.ts +0 -0
- /package/internal-do-not-import-from-here/ux/blueprintpickers/{backgroundstylepicker → backgroundstyle}/docs/SampleComponent.d.ts +0 -0
- /package/internal-do-not-import-from-here/ux/blueprintpickers/{backgroundstylepicker → backgroundstyle}/docs/index.d.ts +0 -0
- /package/internal-do-not-import-from-here/ux/blueprintpickers/{buttonstylepicker → buttonstyle}/ButtonBlueprintsViewer.d.ts +0 -0
- /package/internal-do-not-import-from-here/ux/blueprintpickers/{buttonstylepicker → buttonstyle}/ButtonStyleEditor.d.ts +0 -0
- /package/internal-do-not-import-from-here/ux/blueprintpickers/{buttonstylepicker → buttonstyle}/ButtonStylePicker.css.d.ts +0 -0
- /package/internal-do-not-import-from-here/ux/blueprintpickers/{buttonstylepicker → buttonstyle}/ButtonStylePicker.d.ts +0 -0
- /package/internal-do-not-import-from-here/ux/blueprintpickers/{buttonstylepicker → buttonstyle}/docs/ExampleComponents.d.ts +0 -0
- /package/internal-do-not-import-from-here/ux/blueprintpickers/{buttonstylepicker → buttonstyle}/docs/SampleComponent.d.ts +0 -0
- /package/internal-do-not-import-from-here/ux/blueprintpickers/{buttonstylepicker → buttonstyle}/docs/index.d.ts +0 -0
- /package/internal-do-not-import-from-here/ux/blueprintpickers/{chromepicker → chrome}/ChromeBlueprintsViewer.d.ts +0 -0
- /package/internal-do-not-import-from-here/ux/blueprintpickers/{chromepicker → chrome}/ChromeEditor.d.ts +0 -0
- /package/internal-do-not-import-from-here/ux/blueprintpickers/{chromepicker → chrome}/ChromePicker.css.d.ts +0 -0
- /package/internal-do-not-import-from-here/ux/blueprintpickers/{chromepicker → chrome}/ChromeViewer.d.ts +0 -0
- /package/internal-do-not-import-from-here/ux/blueprintpickers/{chromepicker → chrome}/docs/ExampleComponents.d.ts +0 -0
- /package/internal-do-not-import-from-here/ux/blueprintpickers/{chromepicker → chrome}/docs/SampleComponent.d.ts +0 -0
- /package/internal-do-not-import-from-here/ux/blueprintpickers/{chromepicker → chrome}/docs/index.d.ts +0 -0
- /package/internal-do-not-import-from-here/ux/blueprintpickers/spacingpicker/{SpacingPreview.d.ts → SpacingViewer.d.ts} +0 -0
- /package/internal-do-not-import-from-here/ux/blueprintpickers/{tabstylepicker → tabs}/TabBlueprintsViewer.d.ts +0 -0
- /package/internal-do-not-import-from-here/ux/blueprintpickers/{tabstylepicker → tabs}/TabStyleEditor.d.ts +0 -0
- /package/internal-do-not-import-from-here/ux/blueprintpickers/{tabstylepicker → tabs}/TabStylePicker.css.d.ts +0 -0
- /package/internal-do-not-import-from-here/ux/blueprintpickers/{tabstylepicker → tabs}/TabStylePicker.d.ts +0 -0
- /package/internal-do-not-import-from-here/ux/blueprintpickers/{tabstylepicker → tabs}/docs/ExampleComponents.d.ts +0 -0
- /package/internal-do-not-import-from-here/ux/blueprintpickers/{tabstylepicker → tabs}/docs/SampleComponent.d.ts +0 -0
- /package/internal-do-not-import-from-here/ux/blueprintpickers/{tabstylepicker → tabs}/docs/index.d.ts +0 -0
- /package/internal-do-not-import-from-here/ux/blueprintpickers/{typographypicker → typography}/TypographyEditor.d.ts +0 -0
- /package/internal-do-not-import-from-here/ux/blueprintpickers/{typographypicker → typography}/TypographyPicker.css.d.ts +0 -0
- /package/internal-do-not-import-from-here/ux/blueprintpickers/{typographypicker → typography}/TypographyPicker.d.ts +0 -0
- /package/internal-do-not-import-from-here/ux/blueprintpickers/{typographypicker → typography}/docs/ExampleComponents.d.ts +0 -0
- /package/internal-do-not-import-from-here/ux/blueprintpickers/{typographypicker → typography}/docs/SampleComponent.d.ts +0 -0
- /package/internal-do-not-import-from-here/ux/blueprintpickers/{typographypicker → typography}/docs/index.d.ts +0 -0
- /package/internal-do-not-import-from-here/ux/theming-v2/admin/blades/blueprints/{chrome/blades/ChromeBlueprintsBlade.d.ts → components/blades/BlockBlade.d.ts} +0 -0
- /package/internal-do-not-import-from-here/ux/theming-v2/admin/blades/blueprints/{chrome/blades/EditChromeBlueprintBlade.d.ts → components/blades/BlockBladeEdit.d.ts} +0 -0
- /package/internal-do-not-import-from-here/ux/theming-v2/admin/blades/blueprints/components/blades/{EditBlueprint.d.ts → EditBlueprints.d.ts} +0 -0
@@ -1,141 +0,0 @@
|
|
1
|
-
import { HttpConfig, HttpCredentials, HttpResponse, Future, Guid } from "../models";
|
2
|
-
export declare class HttpBuilder {
|
3
|
-
_config?: HttpConfig;
|
4
|
-
constructor(_config?: HttpConfig);
|
5
|
-
/**
|
6
|
-
* The base url for the client e.g. https://api.com
|
7
|
-
*
|
8
|
-
* @param {string} baseUrl
|
9
|
-
* @return {*} {HttpBuilder}
|
10
|
-
* @memberof HttpBuilder
|
11
|
-
*/
|
12
|
-
withBaseUrl(baseUrl: string): HttpBuilder;
|
13
|
-
/**
|
14
|
-
* If headers should be included in the request
|
15
|
-
*
|
16
|
-
* @param {{ [name: string]: string }} headers
|
17
|
-
* @return {*} {HttpBuilder}
|
18
|
-
* @memberof HttpBuilder
|
19
|
-
*/
|
20
|
-
withHeaders(headers: {
|
21
|
-
[name: string]: string;
|
22
|
-
}): HttpBuilder;
|
23
|
-
/**
|
24
|
-
* If credential options should be included in the request, Default is "include" for this method
|
25
|
-
*
|
26
|
-
* @param {HttpCredentials} [credentials]
|
27
|
-
* @return {*} {HttpBuilder}
|
28
|
-
* @memberof HttpBuilder
|
29
|
-
*/
|
30
|
-
withCredentials(credentials?: HttpCredentials): HttpBuilder;
|
31
|
-
/**
|
32
|
-
* Sets up the client defaults to call a json api
|
33
|
-
*
|
34
|
-
* @return {*}
|
35
|
-
* @memberof HttpBuilder
|
36
|
-
*/
|
37
|
-
withJsonApiSupport(): HttpBuilder;
|
38
|
-
withExecuteOnWorker(): this;
|
39
|
-
/**
|
40
|
-
* Sets up the client defaults to call a json api
|
41
|
-
*
|
42
|
-
* @return {*}
|
43
|
-
* @memberof HttpBuilder
|
44
|
-
*/
|
45
|
-
getConfig(): HttpConfig;
|
46
|
-
/**
|
47
|
-
* Creates the Http instance with the configuration options
|
48
|
-
*
|
49
|
-
* @return {*} {Http}
|
50
|
-
* @memberof HttpBuilder
|
51
|
-
*/
|
52
|
-
build(): Http;
|
53
|
-
}
|
54
|
-
export declare class Http {
|
55
|
-
_baseConfig: HttpConfig | Future<HttpConfig> | Promise<HttpConfig>;
|
56
|
-
/**
|
57
|
-
* Create a new instance of Http using the HttpBuilder
|
58
|
-
* @static
|
59
|
-
* @param {(HttpConfig | Future<HttpConfig> | Promise<HttpConfig>)} [config]
|
60
|
-
* @return {*} {Http}
|
61
|
-
* @memberof Http
|
62
|
-
*/
|
63
|
-
static new(config?: HttpConfig): HttpBuilder;
|
64
|
-
/**
|
65
|
-
* Creates a new instance of Http with default configurations for calling Omnia Service Apis
|
66
|
-
*
|
67
|
-
* @static
|
68
|
-
* @return {*}
|
69
|
-
* @memberof Http
|
70
|
-
*/
|
71
|
-
static default(config?: HttpConfig): Http;
|
72
|
-
constructor(config?: HttpConfig | Future<HttpConfig> | Promise<HttpConfig>);
|
73
|
-
/**
|
74
|
-
*Performs a GET request for provided url
|
75
|
-
*
|
76
|
-
* @template TReturnType
|
77
|
-
* @param {string} url
|
78
|
-
* @param {HttpConfig} [config]
|
79
|
-
* @return {*} {Future<HttpResponse<TReturnType>>}
|
80
|
-
* @memberof Http
|
81
|
-
*/
|
82
|
-
get<TReturnType>(url: string, config?: HttpConfig): Future<HttpResponse<TReturnType>>;
|
83
|
-
/**
|
84
|
-
* Performs a DELETE request for provided url
|
85
|
-
*
|
86
|
-
* @template TReturnType
|
87
|
-
* @param {string} url
|
88
|
-
* @param {HttpConfig} [config]
|
89
|
-
* @return {*} {Future<HttpResponse<TReturnType>>}
|
90
|
-
* @memberof Http
|
91
|
-
*/
|
92
|
-
delete<TReturnType>(url: string, config?: HttpConfig): Future<HttpResponse<TReturnType>>;
|
93
|
-
/**
|
94
|
-
* Performs a HEAD request for provided url
|
95
|
-
*
|
96
|
-
* @template TReturnType
|
97
|
-
* @param {string} url
|
98
|
-
* @param {HttpConfig} [config]
|
99
|
-
* @return {*} {Future<HttpResponse<TReturnType>>}
|
100
|
-
* @memberof Http
|
101
|
-
*/
|
102
|
-
head<TReturnType>(url: string, config?: HttpConfig): Future<HttpResponse<TReturnType>>;
|
103
|
-
/**
|
104
|
-
* Performs a HEAD request for provided url
|
105
|
-
*
|
106
|
-
* @template TReturnType
|
107
|
-
* @param {string} url
|
108
|
-
* @param {Object} body
|
109
|
-
* @param {HttpConfig} [config]
|
110
|
-
* @return {*} {Future<HttpResponse<TReturnType>>}
|
111
|
-
* @memberof Http
|
112
|
-
*/
|
113
|
-
post<TReturnType>(url: string, body: Object, config?: HttpConfig): Future<HttpResponse<TReturnType>>;
|
114
|
-
/**
|
115
|
-
* Performs a POST request for provided url
|
116
|
-
*
|
117
|
-
* @template TReturnType
|
118
|
-
* @param {string} url
|
119
|
-
* @param {Object} body
|
120
|
-
* @param {HttpConfig} [config]
|
121
|
-
* @return {*} {Future<HttpResponse<TReturnType>>}
|
122
|
-
* @memberof Http
|
123
|
-
*/
|
124
|
-
put<TReturnType>(url: string, body: Object, config?: HttpConfig): Future<HttpResponse<TReturnType>>;
|
125
|
-
/**
|
126
|
-
* Performs a POST request for provided url
|
127
|
-
*
|
128
|
-
* @template TReturnType
|
129
|
-
* @param {string} url
|
130
|
-
* @param {Object} body
|
131
|
-
* @param {HttpConfig} [config]
|
132
|
-
* @return {*} {Future<HttpResponse<TReturnType>>}
|
133
|
-
* @memberof Http
|
134
|
-
*/
|
135
|
-
patch<TReturnType>(url: string, body: Object, config?: HttpConfig): Future<HttpResponse<TReturnType>>;
|
136
|
-
private createRequest;
|
137
|
-
private buildRequestInit;
|
138
|
-
private appendQueryParamsToUrl;
|
139
|
-
}
|
140
|
-
export declare function http(omniaServiceId: Guid, executeOnWorker?: boolean): Http;
|
141
|
-
export declare function http(options: HttpConfig): Http;
|
@@ -1 +0,0 @@
|
|
1
|
-
export * from "./Http";
|
@@ -1,9 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* fx/shared that contain all code to share between worker and browser.
|
3
|
-
* NOTE: it cant have any dependencies to fx core, worker and vendors stuffs
|
4
|
-
* ***/
|
5
|
-
export * from "./models";
|
6
|
-
export * from "./broadcasting";
|
7
|
-
export * from "./workers";
|
8
|
-
export * from "./http";
|
9
|
-
export * from "./services";
|
@@ -1,25 +0,0 @@
|
|
1
|
-
import { Topic } from "./Topic";
|
2
|
-
export declare enum BroadcastTopicScopes {
|
3
|
-
localUi = "localUi",
|
4
|
-
localWorker = "localWorker",
|
5
|
-
localAll = "localAll",
|
6
|
-
globalUi = "globalUi",
|
7
|
-
globalWorker = "globalWorker",
|
8
|
-
globalAll = "globalAll"
|
9
|
-
}
|
10
|
-
export interface BroadcastTopic<TMessage> extends Topic<TMessage> {
|
11
|
-
scope: BroadcastTopicScopes;
|
12
|
-
}
|
13
|
-
export interface BroadcastInvokeTopic<TMessage, TReturnValue> extends Topic<TMessage> {
|
14
|
-
scope: BroadcastTopicScopes;
|
15
|
-
}
|
16
|
-
export interface BroadcastMessage<TMessage> extends BroadcastTopic<TMessage> {
|
17
|
-
message: TMessage;
|
18
|
-
}
|
19
|
-
export interface BroadcastInvokeMessage<TMessage, TReturnValue> extends BroadcastInvokeTopic<TMessage, TReturnValue> {
|
20
|
-
messageId: string;
|
21
|
-
message: TMessage;
|
22
|
-
type: "request" | "response";
|
23
|
-
error?: string;
|
24
|
-
response?: TReturnValue;
|
25
|
-
}
|
@@ -1,12 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.BroadcastTopicScopes = void 0;
|
4
|
-
var BroadcastTopicScopes;
|
5
|
-
(function (BroadcastTopicScopes) {
|
6
|
-
BroadcastTopicScopes["localUi"] = "localUi";
|
7
|
-
BroadcastTopicScopes["localWorker"] = "localWorker";
|
8
|
-
BroadcastTopicScopes["localAll"] = "localAll";
|
9
|
-
BroadcastTopicScopes["globalUi"] = "globalUi";
|
10
|
-
BroadcastTopicScopes["globalWorker"] = "globalWorker";
|
11
|
-
BroadcastTopicScopes["globalAll"] = "globalAll";
|
12
|
-
})(BroadcastTopicScopes || (exports.BroadcastTopicScopes = BroadcastTopicScopes = {}));
|
@@ -1 +0,0 @@
|
|
1
|
-
export type DynamicState = object;
|
@@ -1,44 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
//have issue with guidvalue can't auto cast to string if have more extension method here.
|
4
|
-
// declare global {
|
5
|
-
// interface String {
|
6
|
-
// equals?: {
|
7
|
-
// component<TElement = typeof omfx>(cb: (elements: TElement) => any): boolean;
|
8
|
-
// }
|
9
|
-
// }
|
10
|
-
// }
|
11
|
-
const _equalsObject = {};
|
12
|
-
const _equalsString = {};
|
13
|
-
// only add extension methods when running in browser, not in node.js
|
14
|
-
if (globalThis.omnia) {
|
15
|
-
Object.defineProperty(String.prototype, "equals", {
|
16
|
-
get() {
|
17
|
-
_equalsString["_this_value"] = this;
|
18
|
-
return _equalsString;
|
19
|
-
},
|
20
|
-
configurable: false,
|
21
|
-
enumerable: false
|
22
|
-
});
|
23
|
-
Object.defineProperty(Object.prototype, "equals", {
|
24
|
-
value: _equalsObject,
|
25
|
-
writable: true,
|
26
|
-
configurable: false,
|
27
|
-
enumerable: false
|
28
|
-
});
|
29
|
-
// Object.defineProperty(String.prototype["equals"], "element", {
|
30
|
-
// value: function () {
|
31
|
-
// return function (cb: (elements) => any) {
|
32
|
-
// const elementName = cb(new Proxy({}, {
|
33
|
-
// get(target, key: string) {
|
34
|
-
// return key;
|
35
|
-
// }
|
36
|
-
// }) as any);
|
37
|
-
// return this.toString().replace(/-/g, "").toLowerCase().indexof(elementName.toLowerCase()) > -1;
|
38
|
-
// };
|
39
|
-
// },
|
40
|
-
// writable: false,
|
41
|
-
// configurable: false,
|
42
|
-
// enumerable: false
|
43
|
-
// });
|
44
|
-
}
|
@@ -1,60 +0,0 @@
|
|
1
|
-
export declare class Future<T> extends Promise<T> {
|
2
|
-
resolve: (value: T) => void;
|
3
|
-
reject: (reason: any) => void;
|
4
|
-
resolving: boolean;
|
5
|
-
private _resolved;
|
6
|
-
private _rejected;
|
7
|
-
private onAborted;
|
8
|
-
constructor(executor: (resolve: (value: T) => void, reject: (reason?: any) => void, onAborted: (cb: (reason?: any) => void) => void) => void);
|
9
|
-
/**
|
10
|
-
* Handles success / rejection from Promise and returns the result as an object.
|
11
|
-
* If the promise is rejected, the error will be in the error property.
|
12
|
-
* No need to try/catch the promise when using this method.
|
13
|
-
*
|
14
|
-
* @return {*} {Future<{ success?: T, error?: Error; }>}
|
15
|
-
* @memberof Future
|
16
|
-
*/
|
17
|
-
tryCatch(): Future<{
|
18
|
-
success: T;
|
19
|
-
error: Error;
|
20
|
-
}>;
|
21
|
-
/**
|
22
|
-
* Aborts the request
|
23
|
-
*
|
24
|
-
* @param {*} [reason]
|
25
|
-
* @memberof Future
|
26
|
-
*/
|
27
|
-
abort(reason?: any): void;
|
28
|
-
/**
|
29
|
-
* Creates a Future that resolves after a specified delay.
|
30
|
-
*
|
31
|
-
* @param {number} ms - The time to delay in milliseconds.
|
32
|
-
* @returns {Future<void>} A Future that resolves after the specified delay.
|
33
|
-
*/
|
34
|
-
static delay(ms: number): Future<void>;
|
35
|
-
/**
|
36
|
-
* Creates a Promise that is resolved with an array of results when all of the provided Promises
|
37
|
-
* resolve, or rejected when any Promise is rejected.
|
38
|
-
* @param values An array of Promises.
|
39
|
-
* @returns A new Promise.
|
40
|
-
*/
|
41
|
-
static all<T extends readonly unknown[] | []>(values: T): Promise<{
|
42
|
-
-readonly [P in keyof T]: Awaited<T[P]>;
|
43
|
-
}>;
|
44
|
-
get resolved(): boolean;
|
45
|
-
get rejected(): boolean;
|
46
|
-
static get [Symbol.species](): PromiseConstructor;
|
47
|
-
get [Symbol.toStringTag](): string;
|
48
|
-
/**
|
49
|
-
* Creates a new instance of the Future class with a specific return value type.
|
50
|
-
*
|
51
|
-
* @template TReturnValue - The type of the return value for the Future instance.
|
52
|
-
* @returns {Future<TReturnValue>} - A new instance of the Future class.
|
53
|
-
*/
|
54
|
-
static new<TReturnValue>(): Future<TReturnValue>;
|
55
|
-
}
|
56
|
-
export declare class ResponsePromise<T> extends Promise<T> {
|
57
|
-
cancelCb: (() => void);
|
58
|
-
constructor(executor: any);
|
59
|
-
cancel(): void;
|
60
|
-
}
|
@@ -1,149 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.ResponsePromise = exports.Future = void 0;
|
4
|
-
class Future extends Promise {
|
5
|
-
constructor(executor) {
|
6
|
-
let resolveLocal;
|
7
|
-
let rejectLocal;
|
8
|
-
// Cant have function here since this is undefined in setTimeout
|
9
|
-
// eslint-disable-next-line func-style
|
10
|
-
const onAborted = (cb) => {
|
11
|
-
setTimeout(() => {
|
12
|
-
this.onAborted = cb;
|
13
|
-
});
|
14
|
-
};
|
15
|
-
function exec(resolve, reject) {
|
16
|
-
// assign to local to prevent error assignbefore call super;
|
17
|
-
resolveLocal = resolve;
|
18
|
-
rejectLocal = reject;
|
19
|
-
}
|
20
|
-
super(exec);
|
21
|
-
this.resolving = false;
|
22
|
-
this._resolved = false;
|
23
|
-
this._rejected = false;
|
24
|
-
this.resolve = (value) => {
|
25
|
-
this.resolving = false;
|
26
|
-
this._resolved = true;
|
27
|
-
resolveLocal(value);
|
28
|
-
};
|
29
|
-
this.reject = (reason) => {
|
30
|
-
this.resolving = false;
|
31
|
-
this._rejected = true;
|
32
|
-
rejectLocal(reason);
|
33
|
-
};
|
34
|
-
if (executor) {
|
35
|
-
executor(this.resolve, this.reject, onAborted);
|
36
|
-
}
|
37
|
-
}
|
38
|
-
/**
|
39
|
-
* Handles success / rejection from Promise and returns the result as an object.
|
40
|
-
* If the promise is rejected, the error will be in the error property.
|
41
|
-
* No need to try/catch the promise when using this method.
|
42
|
-
*
|
43
|
-
* @return {*} {Future<{ success?: T, error?: Error; }>}
|
44
|
-
* @memberof Future
|
45
|
-
*/
|
46
|
-
//tryCatch(): Future<{ success?: T, error?: Error; }> {
|
47
|
-
tryCatch() {
|
48
|
-
return new Future(async (resolve) => {
|
49
|
-
try {
|
50
|
-
const data = await this;
|
51
|
-
resolve({ success: data, error: undefined });
|
52
|
-
}
|
53
|
-
catch (error) {
|
54
|
-
resolve({ success: undefined, error });
|
55
|
-
}
|
56
|
-
});
|
57
|
-
}
|
58
|
-
/**
|
59
|
-
* Aborts the request
|
60
|
-
*
|
61
|
-
* @param {*} [reason]
|
62
|
-
* @memberof Future
|
63
|
-
*/
|
64
|
-
abort(reason) {
|
65
|
-
if (this.onAborted) {
|
66
|
-
this.onAborted(reason);
|
67
|
-
}
|
68
|
-
else {
|
69
|
-
throw "Failed calling abort() => The future has no onAborted callback or you tried to call abort immediately after the future was created.";
|
70
|
-
}
|
71
|
-
}
|
72
|
-
/**
|
73
|
-
* Creates a Future that resolves after a specified delay.
|
74
|
-
*
|
75
|
-
* @param {number} ms - The time to delay in milliseconds.
|
76
|
-
* @returns {Future<void>} A Future that resolves after the specified delay.
|
77
|
-
*/
|
78
|
-
static delay(ms) {
|
79
|
-
return new Future((resolve) => {
|
80
|
-
setTimeout(() => {
|
81
|
-
resolve();
|
82
|
-
}, ms);
|
83
|
-
});
|
84
|
-
}
|
85
|
-
/**
|
86
|
-
* Creates a Promise that is resolved with an array of results when all of the provided Promises
|
87
|
-
* resolve, or rejected when any Promise is rejected.
|
88
|
-
* @param values An array of Promises.
|
89
|
-
* @returns A new Promise.
|
90
|
-
*/
|
91
|
-
static all(values) {
|
92
|
-
// have issue with Promise.all not working when promises is mixin Future and promise
|
93
|
-
// so implement Future.all to make a wrapper promise to Future to resolve that issue.
|
94
|
-
const promises = values.map(p => p instanceof Future ? new Promise((resolve, reject) => p.then(resolve, reject)) : p);
|
95
|
-
return Promise.all(promises);
|
96
|
-
}
|
97
|
-
get resolved() {
|
98
|
-
return this._resolved;
|
99
|
-
}
|
100
|
-
get rejected() {
|
101
|
-
return this._rejected;
|
102
|
-
}
|
103
|
-
static get [Symbol.species]() {
|
104
|
-
return Promise;
|
105
|
-
}
|
106
|
-
get [Symbol.toStringTag]() {
|
107
|
-
// return Object value to make vue can build get/set reactive.
|
108
|
-
// return "Object";
|
109
|
-
//<<vue3>> back to normal because vue 3 use native proxy.
|
110
|
-
return "Future";
|
111
|
-
}
|
112
|
-
/**
|
113
|
-
* Creates a new instance of the Future class with a specific return value type.
|
114
|
-
*
|
115
|
-
* @template TReturnValue - The type of the return value for the Future instance.
|
116
|
-
* @returns {Future<TReturnValue>} - A new instance of the Future class.
|
117
|
-
*/
|
118
|
-
static new() {
|
119
|
-
return new Future(() => { });
|
120
|
-
}
|
121
|
-
}
|
122
|
-
exports.Future = Future;
|
123
|
-
// Future.prototype["promise_then"] = Promise.prototype.then;
|
124
|
-
// Future.prototype["then"] = function (resolve, reject) {
|
125
|
-
// return Future.prototype["promise_then"].apply(this, arguments);
|
126
|
-
// };
|
127
|
-
class ResponsePromise extends Promise {
|
128
|
-
constructor(executor) {
|
129
|
-
const onCancel = (cb) => {
|
130
|
-
//using nextTick because we cant use "this" before super()
|
131
|
-
setTimeout(() => {
|
132
|
-
this.cancelCb = cb;
|
133
|
-
});
|
134
|
-
};
|
135
|
-
const oExecutor = (resolve, reject) => {
|
136
|
-
executor(resolve, reject, onCancel);
|
137
|
-
};
|
138
|
-
super(oExecutor);
|
139
|
-
}
|
140
|
-
cancel() {
|
141
|
-
if (this.cancelCb) {
|
142
|
-
this.cancelCb();
|
143
|
-
}
|
144
|
-
else {
|
145
|
-
console.warn("onCancel not provided");
|
146
|
-
}
|
147
|
-
}
|
148
|
-
}
|
149
|
-
exports.ResponsePromise = ResponsePromise;
|
@@ -1,25 +0,0 @@
|
|
1
|
-
import "./Equals";
|
2
|
-
import { IEquals } from "./Equals";
|
3
|
-
export interface GuidValue extends Partial<IEquals<{
|
4
|
-
guid(value: GuidValue): boolean;
|
5
|
-
}>> {
|
6
|
-
toString: () => string;
|
7
|
-
}
|
8
|
-
/**
|
9
|
-
* Class to create a guid
|
10
|
-
*/
|
11
|
-
export declare class Guid implements GuidValue {
|
12
|
-
private static _empty;
|
13
|
-
private value;
|
14
|
-
equals: {
|
15
|
-
guid: (value: GuidValue) => boolean;
|
16
|
-
};
|
17
|
-
static newGuid(): GuidValue;
|
18
|
-
static get empty(): GuidValue;
|
19
|
-
static isValid(guid: string | GuidValue): boolean;
|
20
|
-
constructor(guid: string);
|
21
|
-
toString(): string;
|
22
|
-
toJSON: () => string;
|
23
|
-
valueOf(): string;
|
24
|
-
}
|
25
|
-
export declare function guid(value: string): GuidValue;
|
@@ -1,80 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.guid = exports.Guid = void 0;
|
4
|
-
//export interface GuidValue {
|
5
|
-
// :string;
|
6
|
-
//}
|
7
|
-
require("./Equals"); // ensure execute code in equals first
|
8
|
-
// export interface GuidValue {
|
9
|
-
// toString: () => string;
|
10
|
-
// }
|
11
|
-
/**
|
12
|
-
* Class to create a guid
|
13
|
-
*/
|
14
|
-
class Guid {
|
15
|
-
static newGuid() {
|
16
|
-
return new Guid("xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, c => {
|
17
|
-
const r = Math.random() * 16 | 0;
|
18
|
-
const v = (c == "x") ? r : (r & 0x3 | 0x8);
|
19
|
-
return v.toString(16);
|
20
|
-
}));
|
21
|
-
}
|
22
|
-
static get empty() {
|
23
|
-
return this._empty;
|
24
|
-
}
|
25
|
-
static isValid(guid) {
|
26
|
-
if (guid === undefined || guid === null) {
|
27
|
-
return false;
|
28
|
-
}
|
29
|
-
const validRegex = /^[{]?[0-9a-fA-F]{8}[-]?([0-9a-fA-F]{4}[-]?){3}[0-9a-fA-F]{12}[}]?$/;
|
30
|
-
return validRegex.test(guid.toString());
|
31
|
-
}
|
32
|
-
constructor(guid) {
|
33
|
-
this.value = "";
|
34
|
-
this.equals = {
|
35
|
-
guid: (value) => {
|
36
|
-
return this.toString() === value.toString();
|
37
|
-
}
|
38
|
-
};
|
39
|
-
//We serialize as string value
|
40
|
-
this.toJSON = () => {
|
41
|
-
return this.value.toLowerCase();
|
42
|
-
};
|
43
|
-
if (guid) {
|
44
|
-
if (Guid.isValid(guid)) {
|
45
|
-
this.value = guid;
|
46
|
-
}
|
47
|
-
else {
|
48
|
-
throw `The string '${guid}' is not a valid Guid`;
|
49
|
-
}
|
50
|
-
}
|
51
|
-
}
|
52
|
-
toString() {
|
53
|
-
return this.value.toLowerCase();
|
54
|
-
}
|
55
|
-
valueOf() {
|
56
|
-
return this.value.toLowerCase();
|
57
|
-
}
|
58
|
-
}
|
59
|
-
exports.Guid = Guid;
|
60
|
-
Guid._empty = new Guid("00000000-0000-0000-0000-000000000000");
|
61
|
-
// only add extension methods when running in browser, not in node.js
|
62
|
-
if (globalThis.omnia) {
|
63
|
-
Object.defineProperty(String.prototype["equals"], "guid", {
|
64
|
-
value: function (value) {
|
65
|
-
return this["_this_value"].toString() === value.toString();
|
66
|
-
},
|
67
|
-
writable: false,
|
68
|
-
configurable: false,
|
69
|
-
enumerable: false
|
70
|
-
});
|
71
|
-
}
|
72
|
-
// will make Guid class to static class to prevent new Guid instance later on
|
73
|
-
// now expose new function to create guid
|
74
|
-
function guid(value) {
|
75
|
-
if (!Guid.isValid(value)) {
|
76
|
-
throw `The string '${value}' is not a valid Guid`;
|
77
|
-
}
|
78
|
-
return value;
|
79
|
-
}
|
80
|
-
exports.guid = guid;
|
@@ -1,41 +0,0 @@
|
|
1
|
-
export type HttpMethods = "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS";
|
2
|
-
export type HttpCacheOptions = "no-cache" | "reload" | "force-cache" | "only-if-cached";
|
3
|
-
export type HttpCredentials = "include" | "omit" | "same-origin";
|
4
|
-
export interface HttpInterceptOptions {
|
5
|
-
beforeRequest?: (request: HttpConfig) => HttpConfig;
|
6
|
-
afterRequest?: <T>(response: HttpResponse<T>, request: HttpConfig) => HttpResponse<T>;
|
7
|
-
}
|
8
|
-
export interface HttpConfig {
|
9
|
-
baseUrl?: string;
|
10
|
-
headers?: {
|
11
|
-
[key: string]: string;
|
12
|
-
};
|
13
|
-
query?: {
|
14
|
-
[key: string]: string;
|
15
|
-
};
|
16
|
-
cache?: HttpCacheOptions;
|
17
|
-
interceptors?: HttpInterceptOptions;
|
18
|
-
abortable?: boolean;
|
19
|
-
credentials?: HttpCredentials;
|
20
|
-
executeOnWorker?: boolean;
|
21
|
-
}
|
22
|
-
export interface HttpResponse<TData> {
|
23
|
-
data?: TData;
|
24
|
-
status: Number;
|
25
|
-
statusText: String;
|
26
|
-
ok: Boolean;
|
27
|
-
}
|
28
|
-
export interface ApiResponse<T> {
|
29
|
-
data: T;
|
30
|
-
errorMessage: string;
|
31
|
-
success: boolean;
|
32
|
-
responseCode: ApiResponseCodes | number;
|
33
|
-
}
|
34
|
-
export interface HttpHeaders {
|
35
|
-
[key: string]: string;
|
36
|
-
}
|
37
|
-
export declare enum ApiResponseCodes {
|
38
|
-
Success = 0,
|
39
|
-
UnAuthorized = 1,
|
40
|
-
Exception = 2
|
41
|
-
}
|
@@ -1,9 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.ApiResponseCodes = void 0;
|
4
|
-
var ApiResponseCodes;
|
5
|
-
(function (ApiResponseCodes) {
|
6
|
-
ApiResponseCodes[ApiResponseCodes["Success"] = 0] = "Success";
|
7
|
-
ApiResponseCodes[ApiResponseCodes["UnAuthorized"] = 1] = "UnAuthorized";
|
8
|
-
ApiResponseCodes[ApiResponseCodes["Exception"] = 2] = "Exception";
|
9
|
-
})(ApiResponseCodes || (exports.ApiResponseCodes = ApiResponseCodes = {}));
|
@@ -1,34 +0,0 @@
|
|
1
|
-
import { OmniaToken } from "./Tokens";
|
2
|
-
import { Guid, GuidValue } from "./Guid";
|
3
|
-
import { TenantIdentifier } from "./Tenant";
|
4
|
-
import { ActorId } from "./hub";
|
5
|
-
export interface OmniaSharedBootstrapData {
|
6
|
-
uiThreadId: GuidValue;
|
7
|
-
workerThreadId: GuidValue;
|
8
|
-
customDomain?: string;
|
9
|
-
defaultDomain: string;
|
10
|
-
routePrefixes: string[];
|
11
|
-
language: string;
|
12
|
-
/**
|
13
|
-
* The tokenKey is only avilable if we are running ITP or Dev intent
|
14
|
-
*/
|
15
|
-
tokenKey?: OmniaToken;
|
16
|
-
tokenRef: GuidValue;
|
17
|
-
identity: string;
|
18
|
-
hubActorId?: ActorId;
|
19
|
-
licenses: Array<Guid>;
|
20
|
-
hubDev?: boolean;
|
21
|
-
realtimeDevPort?: string;
|
22
|
-
tenant: TenantIdentifier;
|
23
|
-
servingMode?: boolean;
|
24
|
-
serviceDnsMapping: OmniaServiceToDnsMapping;
|
25
|
-
authDisabled?: boolean;
|
26
|
-
analytics: OmniaAnalytics;
|
27
|
-
}
|
28
|
-
export interface OmniaAnalytics {
|
29
|
-
paq: any[];
|
30
|
-
enabled: boolean;
|
31
|
-
}
|
32
|
-
export interface OmniaServiceToDnsMapping {
|
33
|
-
[serviceId: string]: string;
|
34
|
-
}
|