@etsoo/appscript 1.2.69 → 1.2.70

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.
@@ -139,6 +139,12 @@ export interface ICoreApp<S extends IAppSettings, N, C extends NotificationCallP
139
139
  * @param culture New culture definition
140
140
  */
141
141
  changeCulture(culture: DataTypes.CultureDefinition): void;
142
+ /**
143
+ * Check the action result is about device invalid
144
+ * @param result Action result
145
+ * @returns true means device is invalid
146
+ */
147
+ checkDeviceResult(result: IActionResult): boolean;
142
148
  /**
143
149
  * Clear cache data
144
150
  */
@@ -533,7 +539,7 @@ export declare abstract class CoreApp<S extends IAppSettings, N, C extends Notif
533
539
  * @param result Action result
534
540
  * @returns true means device is invalid
535
541
  */
536
- protected checkDeviceResult(result: IActionResult): boolean;
542
+ checkDeviceResult(result: IActionResult): boolean;
537
543
  /**
538
544
  * Init call
539
545
  * @param callback Callback
@@ -139,6 +139,12 @@ export interface ICoreApp<S extends IAppSettings, N, C extends NotificationCallP
139
139
  * @param culture New culture definition
140
140
  */
141
141
  changeCulture(culture: DataTypes.CultureDefinition): void;
142
+ /**
143
+ * Check the action result is about device invalid
144
+ * @param result Action result
145
+ * @returns true means device is invalid
146
+ */
147
+ checkDeviceResult(result: IActionResult): boolean;
142
148
  /**
143
149
  * Clear cache data
144
150
  */
@@ -533,7 +539,7 @@ export declare abstract class CoreApp<S extends IAppSettings, N, C extends Notif
533
539
  * @param result Action result
534
540
  * @returns true means device is invalid
535
541
  */
536
- protected checkDeviceResult(result: IActionResult): boolean;
542
+ checkDeviceResult(result: IActionResult): boolean;
537
543
  /**
538
544
  * Init call
539
545
  * @param callback Callback
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/appscript",
3
- "version": "1.2.69",
3
+ "version": "1.2.70",
4
4
  "description": "Applications shared TypeScript framework",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/mjs/index.js",
@@ -212,6 +212,13 @@ export interface ICoreApp<
212
212
  */
213
213
  changeCulture(culture: DataTypes.CultureDefinition): void;
214
214
 
215
+ /**
216
+ * Check the action result is about device invalid
217
+ * @param result Action result
218
+ * @returns true means device is invalid
219
+ */
220
+ checkDeviceResult(result: IActionResult): boolean;
221
+
215
222
  /**
216
223
  * Clear cache data
217
224
  */
@@ -901,7 +908,7 @@ export abstract class CoreApp<
901
908
  * @param result Action result
902
909
  * @returns true means device is invalid
903
910
  */
904
- protected checkDeviceResult(result: IActionResult): boolean {
911
+ checkDeviceResult(result: IActionResult): boolean {
905
912
  if (result.type === 'NoValidData' && result.field === 'Device')
906
913
  return true;
907
914
  return false;