@omnia/workplace 7.6.27-preview → 7.6.29-preview

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.
@@ -181,5 +181,8 @@ export declare module FormsLocalization {
181
181
  };
182
182
  };
183
183
  Status: string;
184
+ ErrorMessages: {
185
+ Unauthorized: string;
186
+ };
184
187
  }
185
188
  }
@@ -1,9 +1,10 @@
1
- import { BusinessProfileProperty, Guid, GuidValue, Identity, Layout, MultilingualString, SpacingSettings } from "@omnia/fx/models";
1
+ import { BusinessProfileProperty, Guid, GuidValue, Identity, Layout, MediaPickerImage, MultilingualString, SpacingSettings } from "@omnia/fx/models";
2
2
  import { FormTemplateSettings } from "./FormTemplate";
3
3
  export interface FormActionHandlerSettings extends FormBuilderSettings {
4
4
  selectedTypeId: number;
5
5
  scopeType: FormScopeTypes;
6
6
  scopeId: GuidValue;
7
+ businessProfileId: GuidValue;
7
8
  }
8
9
  export interface FormBuilderSettings {
9
10
  allowMultiQuestions: boolean;
@@ -24,7 +25,7 @@ export interface FormBase {
24
25
  [internalName: string]: any;
25
26
  };
26
27
  }
27
- export interface CreateFormRequest extends FormBase {
28
+ export interface CreateFormRequest extends Form {
28
29
  generateLayoutIfEmpty?: boolean;
29
30
  }
30
31
  export interface Form extends FormBase {
@@ -61,6 +62,7 @@ export interface FormDefinition extends FormTemplateSettings {
61
62
  questions: Question[];
62
63
  start?: string;
63
64
  end?: string;
65
+ image?: MediaPickerImage;
64
66
  }
65
67
  export interface FormListing {
66
68
  id: number;
@@ -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 });
@@ -36,6 +36,8 @@ export declare const FormDialogStyles: {
36
36
  footerWrapper?: types.NestedCSSProperties;
37
37
  dialogWrapper?: types.NestedCSSProperties;
38
38
  dialogContentWrapper?: types.NestedCSSProperties;
39
+ overlayImageEditButton?: types.NestedCSSProperties;
40
+ flexCenterAligned?: types.NestedCSSProperties;
39
41
  };
40
42
  export declare const formDialogHeaderHeight = 80;
41
43
  export declare const formDialogFooterHeight = 46;
@@ -6,3 +6,4 @@ export * from "./FormType";
6
6
  export * from "./components";
7
7
  export * from "./FormQuery";
8
8
  export * from "./FormApi";
9
+ export * from "./FormDialogModel";
@@ -9,3 +9,4 @@ tslib_1.__exportStar(require("./FormType"), exports);
9
9
  tslib_1.__exportStar(require("./components"), exports);
10
10
  tslib_1.__exportStar(require("./FormQuery"), exports);
11
11
  tslib_1.__exportStar(require("./FormApi"), exports);
12
+ tslib_1.__exportStar(require("./FormDialogModel"), exports);
@@ -1,4 +1,4 @@
1
- import { MediaPickerStorageProviderContext, GuidValue } from "@omnia/fx-models";
1
+ import { GuidValue, MediaPickerStorageProviderContext } from "@omnia/fx-models";
2
2
  declare abstract class MediaPickerProviderStorageWorkplaceContext extends MediaPickerStorageProviderContext {
3
3
  readonly omniaServiceId: GuidValue;
4
4
  }
@@ -36,8 +36,10 @@ export declare class MediaPickerStorageProviderWorkplaceTutorialContext extends
36
36
  }
37
37
  export declare class MediaPickerStorageProviderWorkplaceFormContext extends MediaPickerProviderStorageWorkplaceContext {
38
38
  readonly storageProviderContextId: GuidValue;
39
- readonly formId: number;
40
- constructor(formId: number);
39
+ readonly profileId: GuidValue;
40
+ readonly appInstanceId: GuidValue;
41
+ readonly formId?: number;
42
+ constructor(profileId: GuidValue, appInstanceId: GuidValue, formId?: number);
41
43
  }
42
44
  export declare class MediaPickerStorageProviderWorkplacePromotedSearchResultContext extends MediaPickerProviderStorageWorkplaceContext {
43
45
  readonly storageProviderContextId: GuidValue;
@@ -54,10 +54,13 @@ class MediaPickerStorageProviderWorkplaceTutorialContext extends MediaPickerProv
54
54
  }
55
55
  exports.MediaPickerStorageProviderWorkplaceTutorialContext = MediaPickerStorageProviderWorkplaceTutorialContext;
56
56
  class MediaPickerStorageProviderWorkplaceFormContext extends MediaPickerProviderStorageWorkplaceContext {
57
- constructor(formId) {
57
+ constructor(profileId, appInstanceId, formId) {
58
58
  super();
59
59
  this.storageProviderContextId = new fx_models_1.Guid("9e075b81-cb49-4d9a-ad9b-85edb83f4d4d");
60
- this.formId = formId;
60
+ this.profileId = profileId;
61
+ this.appInstanceId = appInstanceId;
62
+ if (formId)
63
+ this.formId = formId;
61
64
  }
62
65
  }
63
66
  exports.MediaPickerStorageProviderWorkplaceFormContext = MediaPickerStorageProviderWorkplaceFormContext;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/workplace",
3
3
  "license": "MIT",
4
- "version": "7.6.27-preview",
4
+ "version": "7.6.29-preview",
5
5
  "description": "Omnia Workplace.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"