@omnia/fx-models 8.0.150-dev → 8.0.151-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.
@@ -2,4 +2,5 @@ export interface TenantContact {
2
2
  mainContacts: Array<string>;
3
3
  securityContacts: Array<string>;
4
4
  deploymentContacts: Array<string>;
5
+ userSyncContacts: Array<string>;
5
6
  }
@@ -1,6 +1,6 @@
1
1
  export declare class Future<T> extends Promise<T> {
2
2
  resolve: (value: T) => void;
3
- reject: (reason: any) => void;
3
+ reject: (reason?: any) => void;
4
4
  resolving: boolean;
5
5
  private _resolved;
6
6
  private _rejected;
@@ -52,6 +52,8 @@ export declare class Future<T> extends Promise<T> {
52
52
  * @returns {Future<TReturnValue>} - A new instance of the Future class.
53
53
  */
54
54
  static new<TReturnValue>(): Future<TReturnValue>;
55
+ static res<T>(value?: T): Future<T>;
56
+ static err<T>(reason?: any): Future<T>;
55
57
  }
56
58
  export declare class ResponsePromise<T> extends Promise<T> {
57
59
  cancelCb: (() => void);
@@ -51,7 +51,11 @@ class Future extends Promise {
51
51
  resolve({ success: data, error: undefined });
52
52
  }
53
53
  catch (error) {
54
- resolve({ success: undefined, error });
54
+ let val = error;
55
+ if (!error) {
56
+ val = new Error("Error was not provided to the reject method.");
57
+ }
58
+ resolve({ success: undefined, error: val });
55
59
  }
56
60
  });
57
61
  }
@@ -118,6 +122,16 @@ class Future extends Promise {
118
122
  static new() {
119
123
  return new Future(() => { });
120
124
  }
125
+ static res(value) {
126
+ const future = Future.new();
127
+ future.resolve(value);
128
+ return future;
129
+ }
130
+ static err(reason) {
131
+ const future = Future.new();
132
+ future.reject(reason);
133
+ return future;
134
+ }
121
135
  }
122
136
  exports.Future = Future;
123
137
  // Future.prototype["promise_then"] = Promise.prototype.then;
@@ -70,6 +70,11 @@ export type ODialogTypes = typeof ODialogTypeDefinitions[number];
70
70
  export declare const ODialogTypesName = "ODialogTypes";
71
71
  export declare const ODialogSizeDefinitions: readonly ["x-small", "small", "medium", "large", "full"];
72
72
  export type ODialogSizes = typeof ODialogSizeDefinitions[number];
73
+ export type ODialogButtonInstance = {
74
+ loading: boolean;
75
+ disabled: boolean;
76
+ };
77
+ export type ODialogBuiltinButtons = Extract<OOxideButtonPresets, "ok" | "cancel" | "save" | "retry">;
73
78
  /** Divider */
74
79
  export declare const OPageDividerTypeDefinitions: readonly ["default", "prominent", "label"];
75
80
  export type OPageDividerTypes = typeof OPageDividerTypeDefinitions[number];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/fx-models",
3
3
  "license": "MIT",
4
- "version": "8.0.150-dev",
4
+ "version": "8.0.151-dev",
5
5
  "description": "Provide Omnia Fx Models Stuffs.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -6,4 +6,5 @@ export interface VelcronDefinitionRegistration<TDefinitionState extends DynamicS
6
6
  title: string;
7
7
  previewTheme?: ThemeDefinitionV2;
8
8
  category: VelcronDefitinionRegistrationsTypes;
9
+ builtIn?: boolean;
9
10
  }