@ws-ui/shared 1.6.2 → 1.6.5

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.
@@ -7,4 +7,5 @@ interface Window {
7
7
  $$datastores: {
8
8
  [dsName: string]: datasources.DataStore;
9
9
  };
10
+ $4d: { [key: string]: (...params: any) => void } | undefined;
10
11
  }
@@ -148,7 +148,8 @@ declare namespace webforms {
148
148
  | MemberFunctionEvent
149
149
  | NavigationEvent
150
150
  | SimpleActionEvent
151
- | DialogActionEvent;
151
+ | DialogActionEvent
152
+ | QodlyProActionEvent;
152
153
 
153
154
  type EventExtra = {
154
155
  shortcuts?: {
@@ -160,7 +161,12 @@ declare namespace webforms {
160
161
  interface BaseEvent {
161
162
  id: string;
162
163
  events: string[];
163
- type: 'method' | 'navigation' | 'simple-action' | 'dialog';
164
+ type:
165
+ | 'method'
166
+ | 'navigation'
167
+ | 'simple-action'
168
+ | 'dialog'
169
+ | 'qodly-pro-action';
164
170
  disabled?: boolean;
165
171
  extra?: EventExtra;
166
172
  }
@@ -169,18 +175,18 @@ declare namespace webforms {
169
175
  type: 'method';
170
176
  params: MethodParam[];
171
177
  } & Partial<{
172
- method: string;
173
- dataclass: string;
174
- returns: Omit<MethodParam, 'id'>;
175
- namespace: string;
176
- code: string;
177
- feedback: boolean;
178
- datasource: string;
179
- variadicType: string;
180
- methodType?: 'dataclass' | 'singleton';
181
- openIn: string;
182
- allowedOnHTTPGET?: boolean;
183
- }>;
178
+ method: string;
179
+ dataclass: string;
180
+ returns: Omit<MethodParam, 'id'>;
181
+ namespace: string;
182
+ code: string;
183
+ feedback: boolean;
184
+ datasource: string;
185
+ variadicType: string;
186
+ methodType?: 'dataclass' | 'singleton';
187
+ openIn: string;
188
+ allowedOnHTTPGET?: boolean;
189
+ }>;
184
190
 
185
191
  type WebformStateActionType = 'add' | 'delete' | 'clear';
186
192
 
@@ -223,6 +229,17 @@ declare namespace webforms {
223
229
  targetDialog: string;
224
230
  }
225
231
 
232
+ type QodlyProActionEvent = BaseEvent & {
233
+ type: 'qodly-pro-action';
234
+ actionType: '4d-method' | 'auth';
235
+ } & Partial<{
236
+ action: string;
237
+ method: string;
238
+ params: MethodParam[];
239
+ returns: Omit<MethodParam, 'id'>;
240
+ variadicType: string;
241
+ }>;
242
+
226
243
  interface NavigationEvent extends BaseEvent {
227
244
  type: 'navigation';
228
245
  parent: string;
@@ -255,7 +272,7 @@ declare namespace webforms {
255
272
 
256
273
  type MethodReturn = Omit<MethodParam, 'name'>;
257
274
 
258
- interface QueryParam extends MethodParam { }
275
+ interface QueryParam extends MethodParam {}
259
276
 
260
277
  interface OrderBy {
261
278
  name: string; // replace with attribute