@omnia/workplace 8.0.7-dev → 8.0.9-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.
Files changed (126) hide show
  1. package/internal-do-not-import-from-here/core/loc/formLocalize.d.ts +87 -2
  2. package/internal-do-not-import-from-here/manifests/omnia.workplace.fx.manifest.json +1 -1
  3. package/internal-do-not-import-from-here/models/Constants.d.ts +89 -73
  4. package/internal-do-not-import-from-here/models/Constants.js +101 -85
  5. package/internal-do-not-import-from-here/models/EnterpriseGlossary.d.ts +4 -4
  6. package/internal-do-not-import-from-here/models/GovernanceDashboards.d.ts +10 -10
  7. package/internal-do-not-import-from-here/models/GovernanceDashboards.js +1 -1
  8. package/internal-do-not-import-from-here/models/ISearchTemplate.d.ts +3 -3
  9. package/internal-do-not-import-from-here/models/ManifestIds.d.ts +575 -544
  10. package/internal-do-not-import-from-here/models/ManifestIds.js +575 -544
  11. package/internal-do-not-import-from-here/models/NotificationPanel.d.ts +7 -7
  12. package/internal-do-not-import-from-here/models/NotificationPanelMsg.d.ts +3 -3
  13. package/internal-do-not-import-from-here/models/RegisterActionMenuItemMsg.d.ts +2 -2
  14. package/internal-do-not-import-from-here/models/Search.d.ts +6 -6
  15. package/internal-do-not-import-from-here/models/SearchCategory.d.ts +5 -5
  16. package/internal-do-not-import-from-here/models/SearchProvider.d.ts +4 -4
  17. package/internal-do-not-import-from-here/models/Secrets.d.ts +3 -3
  18. package/internal-do-not-import-from-here/models/SharedLink.d.ts +2 -2
  19. package/internal-do-not-import-from-here/models/TaxonomyNavigation.d.ts +2 -2
  20. package/internal-do-not-import-from-here/models/Workspace.d.ts +4 -4
  21. package/internal-do-not-import-from-here/models/Workspace.js +4 -4
  22. package/internal-do-not-import-from-here/models/analytics/matomosite.d.ts +2 -2
  23. package/internal-do-not-import-from-here/models/apps/MSTeamsInfo.d.ts +2 -2
  24. package/internal-do-not-import-from-here/models/apps/MSTeamsProperties.d.ts +3 -3
  25. package/internal-do-not-import-from-here/models/apps/TeamCollaborationAppTemplateProperties.d.ts +4 -4
  26. package/internal-do-not-import-from-here/models/apps/TeamworkAppLayoutDefinition.js +1 -1
  27. package/internal-do-not-import-from-here/models/components/PostsFeedBlock.d.ts +4 -4
  28. package/internal-do-not-import-from-here/models/forms/Form.d.ts +56 -29
  29. package/internal-do-not-import-from-here/models/forms/Form.js +19 -1
  30. package/internal-do-not-import-from-here/models/forms/FormApi.d.ts +20 -0
  31. package/internal-do-not-import-from-here/models/forms/FormApi.js +2 -0
  32. package/internal-do-not-import-from-here/models/forms/FormDialogModel.d.ts +4 -0
  33. package/internal-do-not-import-from-here/models/forms/FormDialogModel.js +2 -0
  34. package/internal-do-not-import-from-here/models/forms/FormLayout.d.ts +3 -3
  35. package/internal-do-not-import-from-here/models/forms/FormQuery.d.ts +32 -0
  36. package/internal-do-not-import-from-here/models/forms/FormQuery.js +2 -0
  37. package/internal-do-not-import-from-here/models/forms/FormTemplate.d.ts +36 -0
  38. package/internal-do-not-import-from-here/models/forms/FormTemplate.js +2 -0
  39. package/internal-do-not-import-from-here/models/forms/FormType.d.ts +21 -0
  40. package/internal-do-not-import-from-here/models/forms/FormType.js +2 -0
  41. package/internal-do-not-import-from-here/models/forms/components/FormRollupBlockSettings.d.ts +83 -0
  42. package/internal-do-not-import-from-here/models/forms/components/FormRollupBlockSettings.js +9 -0
  43. package/internal-do-not-import-from-here/models/forms/components/FormRollupBlockViewSettings.d.ts +24 -0
  44. package/internal-do-not-import-from-here/models/forms/components/FormRollupBlockViewSettings.js +2 -0
  45. package/internal-do-not-import-from-here/models/forms/components/FormRollupConstant.d.ts +14 -0
  46. package/internal-do-not-import-from-here/models/forms/components/FormRollupConstant.js +18 -0
  47. package/internal-do-not-import-from-here/models/forms/components/FormRollupStyle.d.ts +20 -0
  48. package/internal-do-not-import-from-here/models/forms/components/FormRollupStyle.js +8 -0
  49. package/internal-do-not-import-from-here/models/forms/components/FormRollupViewRendererComponent.d.ts +7 -0
  50. package/internal-do-not-import-from-here/models/forms/components/FormRollupViewRendererComponent.js +2 -0
  51. package/internal-do-not-import-from-here/models/forms/components/FormViewComponentSettings.d.ts +11 -0
  52. package/internal-do-not-import-from-here/models/forms/components/FormViewComponentSettings.js +2 -0
  53. package/internal-do-not-import-from-here/models/forms/components/ListViewComponentSettings.d.ts +18 -0
  54. package/internal-do-not-import-from-here/models/forms/components/ListViewComponentSettings.js +2 -0
  55. package/internal-do-not-import-from-here/models/forms/components/index.d.ts +7 -0
  56. package/internal-do-not-import-from-here/models/forms/components/index.js +10 -0
  57. package/internal-do-not-import-from-here/models/forms/index.d.ts +6 -0
  58. package/internal-do-not-import-from-here/models/forms/index.js +6 -0
  59. package/internal-do-not-import-from-here/models/governancedashboard/TeamworkGovernanceDashboard.d.ts +2 -2
  60. package/internal-do-not-import-from-here/models/myteamcollaboration/TeamCollabrationApp.d.ts +2 -2
  61. package/internal-do-not-import-from-here/models/promotedsearchresults/PromotedSearchResult.d.ts +2 -2
  62. package/internal-do-not-import-from-here/models/searchfeedbacks/SearchFeedback.d.ts +5 -5
  63. package/internal-do-not-import-from-here/models/searchfeedbacks/SearchFeedbackQuery.d.ts +2 -2
  64. package/internal-do-not-import-from-here/models/searchstatistics/SearchStatistics.d.ts +14 -14
  65. package/internal-do-not-import-from-here/models/searchstatistics/SearchStatistics.js +5 -5
  66. package/internal-do-not-import-from-here/models/searchstatistics/SearchStatisticsMetricFilter.d.ts +2 -2
  67. package/internal-do-not-import-from-here/models/searchtoken/SearchTokenProvider.d.ts +2 -2
  68. package/internal-do-not-import-from-here/models/setupwizard/SetupWizardProviderApi.d.ts +2 -2
  69. package/internal-do-not-import-from-here/models/setupwizard/SetupWizardSettings.d.ts +6 -6
  70. package/internal-do-not-import-from-here/models/setupwizard/SetupWizardTemplateProvider.d.ts +3 -3
  71. package/internal-do-not-import-from-here/models/setupwizard/SetupWizardTemplateProvider.js +2 -2
  72. package/internal-do-not-import-from-here/models/signoffrequest/SignOffRequest.d.ts +3 -3
  73. package/internal-do-not-import-from-here/models/signoffrequest/SignOffRequestApi.d.ts +4 -4
  74. package/internal-do-not-import-from-here/models/signoffrequest/SignOffRequestDetail.d.ts +2 -2
  75. package/internal-do-not-import-from-here/models/signoffrequest/SignOffRequestRecurrence.d.ts +38 -0
  76. package/internal-do-not-import-from-here/models/signoffrequest/SignOffRequestRecurrence.js +7 -0
  77. package/internal-do-not-import-from-here/models/signoffrequest/SignOffRequestRecurrenceQuery.d.ts +10 -0
  78. package/internal-do-not-import-from-here/models/signoffrequest/SignOffRequestRecurrenceQuery.js +2 -0
  79. package/internal-do-not-import-from-here/models/signoffrequest/SignOffRequestResource.d.ts +7 -7
  80. package/internal-do-not-import-from-here/models/signoffrequest/SignOffRequestResourceProvider.d.ts +2 -2
  81. package/internal-do-not-import-from-here/models/signoffrequest/SignOffRequestResponse.d.ts +3 -3
  82. package/internal-do-not-import-from-here/models/signoffrequest/SignOffRequestRollupBlockSettings.d.ts +5 -5
  83. package/internal-do-not-import-from-here/models/signoffrequest/SignOffRequestRollupViewSettings.d.ts +4 -4
  84. package/internal-do-not-import-from-here/models/signoffrequest/SignOffRequestSettings.d.ts +3 -3
  85. package/internal-do-not-import-from-here/models/signoffrequest/SignOffRequestTemplate.d.ts +7 -3
  86. package/internal-do-not-import-from-here/models/signoffrequest/SignOffRequestType.d.ts +5 -5
  87. package/internal-do-not-import-from-here/models/signoffrequest/index.d.ts +1 -0
  88. package/internal-do-not-import-from-here/models/signoffrequest/index.js +1 -0
  89. package/internal-do-not-import-from-here/models/signoffrequest/request/SignOffEmailRequest.d.ts +2 -2
  90. package/internal-do-not-import-from-here/models/signoffrequest/request/SignOffRequestCreateModel.d.ts +2 -2
  91. package/internal-do-not-import-from-here/models/signoffrequest/request/SignOffRequestTypeCreateModel.d.ts +3 -3
  92. package/internal-do-not-import-from-here/models/teamcollaborationnavigation/TeamCollaborationNavigationSettings.d.ts +2 -2
  93. package/internal-do-not-import-from-here/models/teamcollaborationrollup/TeamCollaborationRollupBlock.d.ts +7 -7
  94. package/internal-do-not-import-from-here/models/teamcollaborationrollup/TeamCollaborationRollupView.d.ts +2 -2
  95. package/internal-do-not-import-from-here/models/teamnewsrollup/TeamNewsRollupSettings.d.ts +3 -3
  96. package/internal-do-not-import-from-here/models/teamnewsrollup/TeamNewsRollupViewRegistration.d.ts +4 -4
  97. package/internal-do-not-import-from-here/services/AnalyticsStoreService.d.ts +7 -7
  98. package/internal-do-not-import-from-here/services/AppAuthenticationOptionsService.d.ts +3 -3
  99. package/internal-do-not-import-from-here/services/PromotedSearchResultService.d.ts +3 -3
  100. package/internal-do-not-import-from-here/services/SearchFeedbackService.d.ts +2 -2
  101. package/internal-do-not-import-from-here/services/SignOffRequestService.d.ts +7 -7
  102. package/internal-do-not-import-from-here/services/{FormService.d.ts → form/FormService.d.ts} +7 -4
  103. package/internal-do-not-import-from-here/services/form/FormTemplateService.d.ts +12 -0
  104. package/internal-do-not-import-from-here/services/form/FormTypeService.d.ts +11 -0
  105. package/internal-do-not-import-from-here/services/form/index.d.ts +3 -0
  106. package/internal-do-not-import-from-here/services/index.d.ts +1 -1
  107. package/internal-do-not-import-from-here/stores/AnalyticsFilterStore.d.ts +40 -0
  108. package/internal-do-not-import-from-here/stores/AnalyticsStore.d.ts +168 -6
  109. package/internal-do-not-import-from-here/stores/CurrentFormStore.d.ts +3 -3
  110. package/internal-do-not-import-from-here/stores/GovernanceDashboardStore.d.ts +3 -3
  111. package/internal-do-not-import-from-here/stores/NotificationPanelStore.d.ts +2 -2
  112. package/internal-do-not-import-from-here/stores/PromotedSearchResultStore.d.ts +5 -6
  113. package/internal-do-not-import-from-here/stores/SignOffRequestStore.d.ts +6 -5
  114. package/internal-do-not-import-from-here/stores/{FormStore.d.ts → form/FormStore.d.ts} +6 -4
  115. package/internal-do-not-import-from-here/stores/form/FormTemplateStore.d.ts +24 -0
  116. package/internal-do-not-import-from-here/stores/form/FormTypeStore.d.ts +24 -0
  117. package/internal-do-not-import-from-here/stores/form/index.d.ts +3 -0
  118. package/internal-do-not-import-from-here/stores/index.d.ts +1 -1
  119. package/internal-do-not-import-from-here/tooling.output.json +1 -1
  120. package/internal-do-not-import-from-here/ux/AppRendererBootstrapper.d.ts +2 -2
  121. package/internal-do-not-import-from-here/ux/MediaPickerProviderStorageWorkplaceContext.d.ts +31 -29
  122. package/internal-do-not-import-from-here/wctypings.d.ts +190 -55
  123. package/internal-do-not-import-from-here/webcomponents/IAppAuthenticationOptionsComponent.d.ts +2 -2
  124. package/package.json +1 -1
  125. package/task.js +3 -2
  126. package/task.ts +3 -2
@@ -1,4 +1,4 @@
1
- import { Spacing, Guid, MultilingualString, IconPickerModel, GuidValue, IMessageBusTopicSubscription } from "@omnia/fx-models";
1
+ import { Spacing, guid, MultilingualString, IconPickerModel, IMessageBusTopicSubscription } from "@omnia/fx-models";
2
2
  import { NotificationPanelHistoryEntry } from "./NotificationPanelHistoryEntry";
3
3
  export interface CategoryIconDisplaySettings {
4
4
  showIcon: boolean;
@@ -33,7 +33,7 @@ export interface NotificationPanelActionHandlerSettings extends NotificationPane
33
33
  };
34
34
  }
35
35
  export interface NotificationPanelBlockSettings {
36
- blockId: Guid;
36
+ blockId: guid;
37
37
  defaultNotificationPanelId: string;
38
38
  customColors: NotificationPanelCustomColorModel;
39
39
  categoryIconDisplaySettings: CategoryIconDisplaySettings;
@@ -47,7 +47,7 @@ export interface BlockHeaderSettings {
47
47
  color: string;
48
48
  }
49
49
  export interface NotificationPanelSettingsModel {
50
- id?: Guid;
50
+ id?: guid;
51
51
  title?: string;
52
52
  categories: Array<NotificationPanelCategoryModel>;
53
53
  customColors?: NotificationPanelCustomColorModel;
@@ -84,18 +84,18 @@ export interface NotificationPanelCustomColorModel {
84
84
  export interface NotificationPanelCategoryModel {
85
85
  title: MultilingualString;
86
86
  icon?: IconPickerModel;
87
- id: Guid;
87
+ id: guid;
88
88
  components: Array<NotificationPanelComponentModel>;
89
89
  notificationType: NotificationTypes;
90
90
  notificationProviderId?: string;
91
91
  }
92
92
  export interface NotificationPanelComponentModel {
93
93
  elementToRender?: string;
94
- componentManifestId: GuidValue;
95
- settingsComponentManifestId?: GuidValue;
94
+ componentManifestId: guid;
95
+ settingsComponentManifestId?: guid;
96
96
  title: string;
97
97
  settingsValue?: any;
98
- id: Guid;
98
+ id: guid;
99
99
  }
100
100
  export interface IBlockInstanceInNotificationPanel {
101
101
  readonly visibled: boolean;
@@ -1,4 +1,4 @@
1
- import { GuidValue } from "@omnia/fx-models";
1
+ import { guid } from "@omnia/fx-models";
2
2
  export interface RegisterNotificationPanelComponent {
3
3
  /**
4
4
  * Registration Title. Support localization : $Localize:A.B.C;
@@ -7,11 +7,11 @@ export interface RegisterNotificationPanelComponent {
7
7
  /**
8
8
  * The component that will be rendered.
9
9
  */
10
- componentManifestId: GuidValue;
10
+ componentManifestId: guid;
11
11
  /**
12
12
  * The settings component that will be rendered
13
13
  */
14
- settingsComponentManifestId?: GuidValue;
14
+ settingsComponentManifestId?: guid;
15
15
  }
16
16
  export interface RegisterNotificationProvider {
17
17
  /**
@@ -1,9 +1,9 @@
1
- import { IIcon, GuidValue } from "@omnia/fx/models";
1
+ import { IIcon, guid } from "@omnia/fx/models";
2
2
  export interface RegisterActionMenuItemMsg {
3
3
  /**
4
4
  * Registration Id
5
5
  */
6
- id: GuidValue;
6
+ id: guid;
7
7
  /**
8
8
  * Registration Title. Support localization : $Localize:A.B.C;
9
9
  */
@@ -1,4 +1,4 @@
1
- import { GuidValue } from "@omnia/fx/models";
1
+ import { guid } from "@omnia/fx/models";
2
2
  import { Enums } from "./Enums";
3
3
  import { SearchCategoryBase } from "./SearchCategory";
4
4
  export interface SearchResultItem {
@@ -7,10 +7,10 @@ export interface SearchResultItem {
7
7
  */
8
8
  itemType: Enums.SearchResultItemTypes;
9
9
  imageIconSize?: string;
10
- imageRatioUniqueId?: GuidValue;
10
+ imageRatioUniqueId?: guid;
11
11
  }
12
12
  export interface CategorySearchResult {
13
- categoryId: GuidValue;
13
+ categoryId: guid;
14
14
  totalRows: number;
15
15
  items: Array<SearchResultItem>;
16
16
  }
@@ -65,8 +65,8 @@ export interface Refinement {
65
65
  }
66
66
  export interface SearchProviderBase {
67
67
  title: string;
68
- providerId: GuidValue;
69
- providerDisplayRenderManifestId: GuidValue;
68
+ providerId: guid;
69
+ providerDisplayRenderManifestId: guid;
70
70
  }
71
71
  export interface SearchProviderSettingProps<T extends SearchCategoryBase> {
72
72
  searchCategory: T;
@@ -78,7 +78,7 @@ export interface SearchRequest {
78
78
  }
79
79
  export interface SearchCategoryOption {
80
80
  paging: PagingOption;
81
- providerId: GuidValue;
81
+ providerId: guid;
82
82
  searchCategory: SearchCategoryBase;
83
83
  }
84
84
  export interface PagingOption {
@@ -1,15 +1,15 @@
1
1
  import { PropertyMapping, Enums } from ".";
2
2
  import { TargetingFilterProperty } from "@omnia/fx-sp-models";
3
- import { MultilingualString, GuidValue } from "@omnia/fx-models";
3
+ import { MultilingualString, guid } from "@omnia/fx-models";
4
4
  export interface SearchCategoryBase {
5
- id: GuidValue;
6
- providerId: GuidValue;
5
+ id: guid;
6
+ providerId: guid;
7
7
  title: MultilingualString;
8
8
  enableWildcardSearch: boolean;
9
9
  itemTemplateIds: Array<string>;
10
10
  targetingFilter?: TargetingFilterProperty;
11
- businessProfileId: GuidValue;
12
- providerComponentId: GuidValue;
11
+ businessProfileId: guid;
12
+ providerComponentId: guid;
13
13
  query?: string;
14
14
  }
15
15
  export interface SharePointSearchCategory extends SearchCategoryBase {
@@ -1,9 +1,9 @@
1
- import { GuidValue } from "@omnia/fx/models";
1
+ import { guid } from "@omnia/fx/models";
2
2
  import { CategorySearchResult, SearchProviderBase, SearchRequest } from ".";
3
3
  export declare abstract class SearchProvider implements SearchProviderBase {
4
4
  abstract readonly title: string;
5
- abstract readonly omniaServiceId: GuidValue;
6
- abstract readonly providerId: GuidValue;
7
- abstract providerDisplayRenderManifestId: GuidValue;
5
+ abstract readonly omniaServiceId: guid;
6
+ abstract readonly providerId: guid;
7
+ abstract providerDisplayRenderManifestId: guid;
8
8
  getSearchCategoryResult: (searchRequest: SearchRequest) => Promise<CategorySearchResult[]>;
9
9
  }
@@ -1,4 +1,4 @@
1
- import { SecretInfo, Secret, GuidValue } from "@omnia/fx-models";
1
+ import { SecretInfo, Secret, guid } from "@omnia/fx-models";
2
2
  export interface SecretInfoViewModel extends SecretInfo {
3
3
  localizedTitle: string;
4
4
  localizedBladeTitle: string;
@@ -11,6 +11,6 @@ export interface ISecretFormComponentProps {
11
11
  "v-model"?: Secret;
12
12
  getApi(api: ISecretFormApi): void;
13
13
  "onUpdate:modelValue"?: (secret: Secret) => void;
14
- profileId?: GuidValue;
15
- bladeId?: GuidValue;
14
+ profileId?: guid;
15
+ bladeId?: guid;
16
16
  }
@@ -1,4 +1,4 @@
1
- import { GuidValue, IconPickerModel, MultilingualString } from "@omnia/fx-models";
1
+ import { guid, IconPickerModel, MultilingualString } from "@omnia/fx-models";
2
2
  import { TargetingFilterProperty } from "@omnia/fx-sp-models";
3
3
  import { SearchResultItem } from "./Search";
4
4
  export interface MyLinkIcon extends IconPickerModel {
@@ -20,7 +20,7 @@ export interface QuickLink {
20
20
  modifiedAt?: Date;
21
21
  deletedAt?: Date;
22
22
  isOwner?: boolean;
23
- businessProfileId?: GuidValue;
23
+ businessProfileId?: guid;
24
24
  targetingFilter?: TargetingFilterProperty;
25
25
  isTargeted?: boolean;
26
26
  fixedUrl: string;
@@ -1,4 +1,4 @@
1
- import { ApiPath, BlockSettings, ColorValue, EnterpriseGlossaryInformationProviderId, EnterpriseGlossaryInformationSourceSettings, GuidValue, IBlockInstance, MultilingualString, Spacing, ThemeDefinition } from "@omnia/fx/models";
1
+ import { ApiPath, BlockSettings, ColorValue, EnterpriseGlossaryInformationProviderId, EnterpriseGlossaryInformationSourceSettings, guid, IBlockInstance, MultilingualString, Spacing, ThemeDefinition } from "@omnia/fx/models";
2
2
  export interface TaxonomyNavigationQuerySettings {
3
3
  enterpriseGlossaryInstanceId: number;
4
4
  }
@@ -19,7 +19,7 @@ export interface TaxonomyNavigationViewSettings {
19
19
  currentView: TaxonomyNavigationSelectionViewSettings;
20
20
  }
21
21
  export declare abstract class EnterpriseGlossaryTaxonomyNavigationSettingsProvider extends EnterpriseGlossaryInformationSourceSettings {
22
- abstract readonly displayProviderManifestId: GuidValue;
22
+ abstract readonly displayProviderManifestId: guid;
23
23
  }
24
24
  export declare abstract class EnterpriseGlossaryTaxonomyNavigationDisplayProvider extends EnterpriseGlossaryInformationSourceSettings {
25
25
  }
@@ -1,10 +1,10 @@
1
- import { BusinessProfileProperty, AppRoutePropertyBagModel, VersionedLayoutDefinition, MediaPickerImage, Spacing, MultilingualString, IIcon, GuidValue, ThemeDefinition, ActionHandler } from "@omnia/fx-models";
1
+ import { BusinessProfileProperty, AppRoutePropertyBagModel, VersionedLayoutDefinition, MediaPickerImage, Spacing, MultilingualString, IIcon, ThemeDefinition, ActionHandler, guid } from "@omnia/fx-models";
2
2
  import { Enums } from "./Enums";
3
3
  import { TargetingFilterProperty } from "@omnia/fx-sp";
4
4
  import { ActionHandlerInstance } from "@omnia/fx/ux";
5
5
  export declare const WorkspaceVerticalNavWidth = 256;
6
6
  export declare class WorkspaceInfo extends BusinessProfileProperty {
7
- appInstanceId: string;
7
+ appInstanceId: guid;
8
8
  classicNavigationBar: boolean;
9
9
  constructor();
10
10
  }
@@ -31,7 +31,7 @@ export declare enum WorkspaceMegaMenuItemTypes {
31
31
  Layout = 1
32
32
  }
33
33
  export interface WorkspaceMegaMenuItem {
34
- id: GuidValue;
34
+ id: guid;
35
35
  type: WorkspaceMegaMenuItemTypes;
36
36
  }
37
37
  export interface WorkspaceMegaMenuLink extends WorkspaceMegaMenuItem {
@@ -75,7 +75,7 @@ export declare class MegaMenuLayoutDefinition extends VersionedLayoutDefinition
75
75
  }
76
76
  export declare class WorkspaceActionMenuMapping extends AppRoutePropertyBagModel {
77
77
  constructor();
78
- itemIds: GuidValue[];
78
+ itemIds: guid[];
79
79
  }
80
80
  export interface IWorkspaceActionMenuHandlerInstance extends ActionHandlerInstance {
81
81
  icon?: IIcon;
@@ -55,8 +55,8 @@ class WorkspaceMegaMenuMapping extends fx_models_1.AppRoutePropertyBagModel {
55
55
  exports.WorkspaceMegaMenuMapping = WorkspaceMegaMenuMapping;
56
56
  class HomeLayoutDefinition extends fx_models_1.VersionedLayoutDefinition {
57
57
  constructor() {
58
- super("34525ea4-3e95-4714-81d4-bb693c921fd8");
59
- const layoutId = fx_models_1.Guid.newGuid().toString();
58
+ super((0, fx_models_1.guid)("34525ea4-3e95-4714-81d4-bb693c921fd8"));
59
+ const layoutId = (0, fx_models_1.guid)();
60
60
  this.layout = {
61
61
  blockSettings: {},
62
62
  definition: {
@@ -73,8 +73,8 @@ class HomeLayoutDefinition extends fx_models_1.VersionedLayoutDefinition {
73
73
  exports.HomeLayoutDefinition = HomeLayoutDefinition;
74
74
  class MegaMenuLayoutDefinition extends fx_models_1.VersionedLayoutDefinition {
75
75
  constructor() {
76
- super("95103f18-df83-4436-8bc0-58ccc091af69");
77
- const layoutId = fx_models_1.Guid.newGuid().toString();
76
+ super((0, fx_models_1.guid)("95103f18-df83-4436-8bc0-58ccc091af69"));
77
+ const layoutId = (0, fx_models_1.guid)();
78
78
  this.layout = {
79
79
  blockSettings: {},
80
80
  definition: {
@@ -1,6 +1,6 @@
1
- import { GuidValue } from "@omnia/fx-models";
1
+ import { guid } from "@omnia/fx-models";
2
2
  export interface MatomoSite {
3
3
  idSite: number;
4
4
  name: string;
5
- businessProfileId?: GuidValue;
5
+ businessProfileId?: guid;
6
6
  }
@@ -1,6 +1,6 @@
1
- import { Guid } from "@omnia/fx-models";
1
+ import { guid } from "@omnia/fx-models";
2
2
  export interface MSTeamsInfo {
3
- id: Guid;
3
+ id: guid;
4
4
  displayName: string;
5
5
  webUrl: string;
6
6
  }
@@ -1,5 +1,5 @@
1
1
  import { AppEnums } from "./Enums";
2
- import { VersionedLayoutId, GuidValue } from "@omnia/fx-models";
2
+ import { VersionedLayoutId, guid } from "@omnia/fx-models";
3
3
  export interface MicrosoftTeamGeneralProperties {
4
4
  visibility?: AppEnums.TeamPrivacyOptions;
5
5
  displayName?: string;
@@ -21,7 +21,7 @@ export interface MicrosoftTeamCloningProperties extends MicrosoftTeamGeneralProp
21
21
  mailNickName: string;
22
22
  }
23
23
  export interface MicrosoftTeamCloningInformation extends MicrosoftTeamCloningProperties {
24
- msTeamAppId: GuidValue;
24
+ msTeamAppId: guid;
25
25
  msTeamAppName?: string;
26
26
  }
27
27
  export interface Channel {
@@ -47,7 +47,7 @@ export interface Tab {
47
47
  teamAppType?: AppEnums.TeamAppsType;
48
48
  "teamsApp@odata.bind"?: string;
49
49
  configuration?: TeamsAppConfig;
50
- tabProvisionFeatureId?: GuidValue;
50
+ tabProvisionFeatureId?: guid;
51
51
  customUrlConfiguration?: TabCustomUrlConfiguration;
52
52
  }
53
53
  export interface TeamsAppConfig {
@@ -1,5 +1,5 @@
1
1
  import { AppEnums } from "./Enums";
2
- import { AppTemplateProperties, GuidValue, Identity } from "@omnia/fx-models";
2
+ import { AppTemplateProperties, guid, Identity } from "@omnia/fx-models";
3
3
  import { MicrosoftTeamCreationInformation } from ".";
4
4
  export interface PermissionIdentities {
5
5
  defaultAdministrator?: Identity[];
@@ -7,7 +7,7 @@ export interface PermissionIdentities {
7
7
  visitors?: Identity[];
8
8
  }
9
9
  export interface InformationProtectionLabel {
10
- id: GuidValue;
10
+ id: guid;
11
11
  name: string;
12
12
  description: string;
13
13
  sensitivity: number;
@@ -22,9 +22,9 @@ export interface TeamCollaborationAppTemplateProperties extends AppTemplatePrope
22
22
  facebookWorkplaceDomain?: string;
23
23
  lcid: number;
24
24
  timezoneId: string;
25
- siteDesignId?: GuidValue;
25
+ siteDesignId?: guid;
26
26
  defaultResourceUrlType?: AppEnums.ResourceUrlType;
27
- sensitivityLabelId?: GuidValue;
27
+ sensitivityLabelId?: guid;
28
28
  userCanSelectTimeZone?: boolean;
29
29
  msTeam?: MicrosoftTeamCreationInformation;
30
30
  }
@@ -4,7 +4,7 @@ exports.TeamworkAppLayoutDefinition = void 0;
4
4
  const models_1 = require("@omnia/fx/models");
5
5
  class TeamworkAppLayoutDefinition extends models_1.VersionedLayoutDefinition {
6
6
  constructor() {
7
- super("c8d6dfe7-25cb-4b05-8e30-0dca4b1c05fe");
7
+ super((0, models_1.guid)("c8d6dfe7-25cb-4b05-8e30-0dca4b1c05fe"));
8
8
  }
9
9
  }
10
10
  exports.TeamworkAppLayoutDefinition = TeamworkAppLayoutDefinition;
@@ -1,4 +1,4 @@
1
- import { GuidValue, MultilingualString, Spacing, ThemeDefinitionV2 } from "@omnia/fx/models";
1
+ import { guid, MultilingualString, Spacing, ThemeDefinitionV2 } from "@omnia/fx/models";
2
2
  export declare enum PostsFeedScopeOption {
3
3
  CurrentApp = 1,
4
4
  CustomScope = 2
@@ -7,14 +7,14 @@ export declare enum PostsFeedSortMode {
7
7
  LastActivity = 1
8
8
  }
9
9
  export interface PostsFeedAppTemplateScope {
10
- id: GuidValue;
11
- appDefinitionId?: GuidValue;
10
+ id: guid;
11
+ appDefinitionId?: guid;
12
12
  }
13
13
  export interface PostsFeedBlockSettings {
14
14
  spacing?: Spacing;
15
15
  scope: {
16
16
  option: PostsFeedScopeOption;
17
- selectedAppDefinitionId?: GuidValue;
17
+ selectedAppDefinitionId?: guid;
18
18
  addedTemplates?: Array<PostsFeedAppTemplateScope>;
19
19
  };
20
20
  blockTitle: MultilingualString;
@@ -1,9 +1,37 @@
1
- import { BusinessProfileProperty, ColorSchemaTypes, GuidValue, Identity, Layout, MultilingualString, Spacing } from "@omnia/fx/models";
2
- export interface Form {
3
- id?: number;
1
+ import { BusinessProfileProperty, guid, Identity, Layout, MediaPickerImage, MultilingualString, Spacing } from "@omnia/fx/models";
2
+ import { FormTemplateSettings } from "./FormTemplate";
3
+ import { FormQueryScopes } from "./components";
4
+ export interface FormActionHandlerSettings extends FormBuilderSettings {
5
+ selectedTypeId: number;
6
+ scopeType: FormScopeTypes;
7
+ scopeId: guid;
8
+ }
9
+ export interface FormBuilderSettings {
10
+ isEditing?: boolean;
11
+ }
12
+ export declare const ScopeCurrentId: guid;
13
+ export declare enum FormScopeTypes {
14
+ BusinessProfile = 1,
15
+ AppInstance = 2
16
+ }
17
+ declare const FormBuilderSteps: readonly ["templateSettings", "formQuestions", "formSettings"];
18
+ export type FormSteps = typeof FormBuilderSteps[number];
19
+ export interface FormBase {
4
20
  definition: FormDefinition;
5
- layout: Layout;
6
- profileId: GuidValue;
21
+ layout?: Layout;
22
+ formTypeId?: number;
23
+ formTemplateId?: number;
24
+ enterpriseProperties?: {
25
+ [internalName: string]: any;
26
+ };
27
+ }
28
+ export interface CreateFormRequest extends Form {
29
+ generateLayoutIfEmpty?: boolean;
30
+ }
31
+ export interface Form extends FormBase {
32
+ id?: number;
33
+ profileId: guid;
34
+ appInstanceId?: guid;
7
35
  createdAt: string;
8
36
  createdBy: Identity;
9
37
  modifiedAt: string;
@@ -24,30 +52,25 @@ export declare enum FormTypes {
24
52
  Survey = 2,
25
53
  Checkup = 3
26
54
  }
27
- export interface FormDefinition {
55
+ export declare enum FormStatus {
56
+ Open = 1,
57
+ Closed = 2
58
+ }
59
+ export interface FormDefinition extends FormTemplateSettings {
28
60
  type: FormTypes;
29
61
  title: MultilingualString;
30
- oneResponsePerPerson: boolean;
31
- makeResponseAnonymous: boolean;
32
- usePoint: boolean;
33
- useCorrectAnswer: boolean;
34
- enableCheckAnswer: boolean;
35
- enableSubmission: boolean;
36
- enableSaveForLater: boolean;
37
- showMessage: boolean;
38
- showUserResponse: boolean;
39
- showAllResponses: boolean;
40
62
  questions: Question[];
41
- customSubmitLabel: MultilingualString;
42
- submittedMessage: MultilingualString;
43
63
  start?: string;
44
64
  end?: string;
65
+ image?: MediaPickerImage;
45
66
  }
46
67
  export interface FormListing {
47
68
  id: number;
48
69
  title: MultilingualString;
49
70
  start?: string;
50
71
  end?: string;
72
+ profileId: guid;
73
+ appInstanceId?: guid;
51
74
  numberOfSubmissions: number;
52
75
  numberOfSubmittedUsers: number;
53
76
  averagePointsBySubmission: number;
@@ -63,8 +86,8 @@ export declare enum QuestionTypes {
63
86
  MultipleChoice = 3
64
87
  }
65
88
  export interface Question {
66
- readonly id: GuidValue;
67
- readonly blockId: GuidValue;
89
+ readonly id: guid;
90
+ readonly blockId: guid;
68
91
  title: MultilingualString;
69
92
  type: QuestionTypes;
70
93
  answer?: Answer;
@@ -92,18 +115,18 @@ export interface TextAnswer extends Answer {
92
115
  }
93
116
  export interface ChoiceAnswer extends Answer {
94
117
  type: QuestionTypes.Choice;
95
- optionId: GuidValue;
118
+ optionId: guid;
96
119
  }
97
120
  export interface MultipleChoiceAnswer extends Answer {
98
121
  type: QuestionTypes.MultipleChoice;
99
- optionIds: GuidValue[];
122
+ optionIds: guid[];
100
123
  }
101
124
  export declare enum OptionTypes {
102
125
  FormDefined = 1,
103
126
  UserDefined = 2
104
127
  }
105
128
  export interface Option {
106
- id: GuidValue;
129
+ id: guid;
107
130
  type: OptionTypes;
108
131
  title: MultilingualString;
109
132
  point: number;
@@ -116,10 +139,6 @@ export interface UserDefinedOption extends Option {
116
139
  type: OptionTypes.UserDefined;
117
140
  value: string;
118
141
  }
119
- export interface CreateFormRequest {
120
- layout: Layout;
121
- definition: FormDefinition;
122
- }
123
142
  export interface QueryFormRequest {
124
143
  type?: FormTypes;
125
144
  filterOpenForRespondent?: boolean;
@@ -150,12 +169,20 @@ export interface FormRendererBlockSettings {
150
169
  legendPosition: LegendPosition;
151
170
  customShowFormButton: MultilingualString;
152
171
  spacing?: Spacing;
172
+ scopeType?: FormQueryScopes;
173
+ scopeId?: guid;
153
174
  }
154
175
  export declare class FormGenericSetting extends BusinessProfileProperty {
155
176
  chartColor: ChartColor[];
156
177
  constructor();
157
178
  }
158
179
  export declare class ChartColor {
159
- color: ColorSchemaTypes;
160
- textColor: ColorSchemaTypes;
180
+ color: string;
181
+ textColor: string;
182
+ }
183
+ export declare enum FormDisplayStatus {
184
+ NotOpen = 0,
185
+ Opening = 1,
186
+ Closed = 2
161
187
  }
188
+ export {};
@@ -1,14 +1,26 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ChartColor = exports.FormGenericSetting = exports.LegendPosition = exports.LegendAlignment = exports.OptionTypes = exports.QuestionTypes = exports.FormTypes = void 0;
3
+ exports.FormDisplayStatus = exports.ChartColor = exports.FormGenericSetting = exports.LegendPosition = exports.LegendAlignment = exports.OptionTypes = exports.QuestionTypes = exports.FormStatus = exports.FormTypes = exports.FormScopeTypes = exports.ScopeCurrentId = void 0;
4
4
  const models_1 = require("@omnia/fx/models");
5
5
  const ManifestIds_1 = require("../ManifestIds");
6
+ exports.ScopeCurrentId = (0, models_1.guid)("acb52a9b-b0c7-465a-8acc-98c4a47b464c");
7
+ var FormScopeTypes;
8
+ (function (FormScopeTypes) {
9
+ FormScopeTypes[FormScopeTypes["BusinessProfile"] = 1] = "BusinessProfile";
10
+ FormScopeTypes[FormScopeTypes["AppInstance"] = 2] = "AppInstance";
11
+ })(FormScopeTypes || (exports.FormScopeTypes = FormScopeTypes = {}));
12
+ const FormBuilderSteps = ["templateSettings", "formQuestions", "formSettings"];
6
13
  var FormTypes;
7
14
  (function (FormTypes) {
8
15
  FormTypes[FormTypes["Poll"] = 1] = "Poll";
9
16
  FormTypes[FormTypes["Survey"] = 2] = "Survey";
10
17
  FormTypes[FormTypes["Checkup"] = 3] = "Checkup";
11
18
  })(FormTypes || (exports.FormTypes = FormTypes = {}));
19
+ var FormStatus;
20
+ (function (FormStatus) {
21
+ FormStatus[FormStatus["Open"] = 1] = "Open";
22
+ FormStatus[FormStatus["Closed"] = 2] = "Closed";
23
+ })(FormStatus || (exports.FormStatus = FormStatus = {}));
12
24
  var QuestionTypes;
13
25
  (function (QuestionTypes) {
14
26
  QuestionTypes[QuestionTypes["Text"] = 1] = "Text";
@@ -42,3 +54,9 @@ exports.FormGenericSetting = FormGenericSetting;
42
54
  class ChartColor {
43
55
  }
44
56
  exports.ChartColor = ChartColor;
57
+ var FormDisplayStatus;
58
+ (function (FormDisplayStatus) {
59
+ FormDisplayStatus[FormDisplayStatus["NotOpen"] = 0] = "NotOpen";
60
+ FormDisplayStatus[FormDisplayStatus["Opening"] = 1] = "Opening";
61
+ FormDisplayStatus[FormDisplayStatus["Closed"] = 2] = "Closed";
62
+ })(FormDisplayStatus || (exports.FormDisplayStatus = FormDisplayStatus = {}));
@@ -0,0 +1,20 @@
1
+ import { ApiPath } from "@omnia/fx/models";
2
+ import { FormRollupViewRegistration } from "./components";
3
+ export interface IFormRollupApi {
4
+ viewRegistration: Promise<IFormRollupViewRegistrationApi>;
5
+ }
6
+ export interface IFormRollupViewRegistrationApi {
7
+ registerViews: (providers: FormRollupViewRegistration | FormRollupViewRegistration[]) => void;
8
+ }
9
+ declare module "../WorkplaceApi" {
10
+ interface IWorkplaceApi {
11
+ form: {
12
+ rollup: IFormRollupApi;
13
+ };
14
+ }
15
+ interface IWorkplaceExtendApiManifest {
16
+ form: {
17
+ rollup: ApiPath;
18
+ };
19
+ }
20
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ import { DialogModel } from "@omnia/fx/ux";
2
+ export interface FormDialogModel extends DialogModel {
3
+ errorMessage?: string;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,9 +1,9 @@
1
- import { Block, GuidValue, IBlockInstance } from "@omnia/fx/models";
1
+ import { Block, guid, IBlockInstance } from "@omnia/fx/models";
2
2
  import { Form, FormRendererBlockSettings, Question } from "./Form";
3
3
  export interface ICurrentFormStore {
4
4
  getForm(): Form;
5
5
  getShowResponseFlag(): any;
6
- getCheckAnswerFlag(questionId: GuidValue): boolean;
6
+ getCheckAnswerFlag(questionId: guid): boolean;
7
7
  getLatestSubmissionAnswers(): Question[];
8
8
  getFormSettings(): FormRendererBlockSettings;
9
9
  setAnswerChanged(value: boolean): any;
@@ -12,7 +12,7 @@ export interface ICurrentFormStore {
12
12
  setLatestSubmissionAnswers(latestSubmissionsAnswers: Question[]): any;
13
13
  ensureQuestion(block: IBlockInstance | Block): Question;
14
14
  initCheckAnswerFlag(): void;
15
- removeCheckAnswerFlag(questionId: GuidValue): void;
15
+ removeCheckAnswerFlag(questionId: guid): void;
16
16
  isLockSubmission(): boolean;
17
17
  isAnswerChanged(): boolean;
18
18
  toggleShowReponseFlag(): any;
@@ -0,0 +1,32 @@
1
+ import { guid, IPagingable, OrderBy } from "@omnia/fx-models";
2
+ import { FormQueryScopes, FormRollupFilter } from "./components";
3
+ import { Form } from "./Form";
4
+ export interface FormQuery extends IPagingable {
5
+ scope: FormQueryScopes;
6
+ keyWord?: string;
7
+ orderBy?: OrderBy;
8
+ formFilter?: FormFilter;
9
+ scopedFilters: ScopedFormFilter[];
10
+ keywordFilterOnProperties?: string[];
11
+ selectEnterpriseProperties?: string[];
12
+ }
13
+ export interface FormFilter {
14
+ filters: FormRollupFilter[];
15
+ enableWildcardSearch: boolean;
16
+ }
17
+ export interface ScopedFormFilter extends FormFilter {
18
+ scope: FormQueryScopes;
19
+ filters: FormRollupFilter[];
20
+ }
21
+ export interface TenantScopedFormFilter extends ScopedFormFilter {
22
+ }
23
+ export interface BusinessProfileScopedFormFilter extends ScopedFormFilter {
24
+ businessProfileId: guid;
25
+ }
26
+ export interface AppInstanceScopedFormFilter extends ScopedFormFilter {
27
+ appInstanceId: guid;
28
+ }
29
+ export interface FormQueryResult {
30
+ total: number;
31
+ items: Form[];
32
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });