@etsoo/appscript 1.1.73 → 1.1.74

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.
@@ -68,6 +68,10 @@ export interface ICoreApp<S extends IAppSettings, N, C extends NotificationCallP
68
68
  * Currency, like USD for US dollar
69
69
  */
70
70
  readonly currency: string;
71
+ /**
72
+ * Device id
73
+ */
74
+ readonly deviceId: string;
71
75
  /**
72
76
  * Country or region, like CN
73
77
  */
@@ -349,6 +353,12 @@ export declare abstract class CoreApp<S extends IAppSettings, N, C extends Notif
349
353
  * Country or region, like CN
350
354
  */
351
355
  get region(): string;
356
+ private _deviceId;
357
+ /**
358
+ * Country or region, like CN
359
+ */
360
+ get deviceId(): string;
361
+ protected set deviceId(value: string);
352
362
  /**
353
363
  * Label delegate
354
364
  */
@@ -389,10 +399,6 @@ export declare abstract class CoreApp<S extends IAppSettings, N, C extends Notif
389
399
  * Device id field name
390
400
  */
391
401
  protected deviceIdField: string;
392
- /**
393
- * Device id
394
- */
395
- protected deviceId: string;
396
402
  /**
397
403
  * Passphrase for encryption
398
404
  */
@@ -20,6 +20,7 @@ class CoreApp {
20
20
  * @param name Application name
21
21
  */
22
22
  constructor(settings, api, notifier, name) {
23
+ this._deviceId = '***';
23
24
  /**
24
25
  * Response token header field name
25
26
  */
@@ -72,6 +73,15 @@ class CoreApp {
72
73
  get region() {
73
74
  return this._region;
74
75
  }
76
+ /**
77
+ * Country or region, like CN
78
+ */
79
+ get deviceId() {
80
+ return this._deviceId;
81
+ }
82
+ set deviceId(value) {
83
+ this._deviceId = value;
84
+ }
75
85
  /**
76
86
  * Label delegate
77
87
  */
@@ -68,6 +68,10 @@ export interface ICoreApp<S extends IAppSettings, N, C extends NotificationCallP
68
68
  * Currency, like USD for US dollar
69
69
  */
70
70
  readonly currency: string;
71
+ /**
72
+ * Device id
73
+ */
74
+ readonly deviceId: string;
71
75
  /**
72
76
  * Country or region, like CN
73
77
  */
@@ -349,6 +353,12 @@ export declare abstract class CoreApp<S extends IAppSettings, N, C extends Notif
349
353
  * Country or region, like CN
350
354
  */
351
355
  get region(): string;
356
+ private _deviceId;
357
+ /**
358
+ * Country or region, like CN
359
+ */
360
+ get deviceId(): string;
361
+ protected set deviceId(value: string);
352
362
  /**
353
363
  * Label delegate
354
364
  */
@@ -389,10 +399,6 @@ export declare abstract class CoreApp<S extends IAppSettings, N, C extends Notif
389
399
  * Device id field name
390
400
  */
391
401
  protected deviceIdField: string;
392
- /**
393
- * Device id
394
- */
395
- protected deviceId: string;
396
402
  /**
397
403
  * Passphrase for encryption
398
404
  */
@@ -17,6 +17,7 @@ export class CoreApp {
17
17
  * @param name Application name
18
18
  */
19
19
  constructor(settings, api, notifier, name) {
20
+ this._deviceId = '***';
20
21
  /**
21
22
  * Response token header field name
22
23
  */
@@ -69,6 +70,15 @@ export class CoreApp {
69
70
  get region() {
70
71
  return this._region;
71
72
  }
73
+ /**
74
+ * Country or region, like CN
75
+ */
76
+ get deviceId() {
77
+ return this._deviceId;
78
+ }
79
+ set deviceId(value) {
80
+ this._deviceId = value;
81
+ }
72
82
  /**
73
83
  * Label delegate
74
84
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/appscript",
3
- "version": "1.1.73",
3
+ "version": "1.1.74",
4
4
  "description": "Applications shared TypeScript framework",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/mjs/index.js",
@@ -117,6 +117,11 @@ export interface ICoreApp<
117
117
  */
118
118
  readonly currency: string;
119
119
 
120
+ /**
121
+ * Device id
122
+ */
123
+ readonly deviceId: string;
124
+
120
125
  /**
121
126
  * Country or region, like CN
122
127
  */
@@ -478,6 +483,17 @@ export abstract class CoreApp<
478
483
  return this._region;
479
484
  }
480
485
 
486
+ private _deviceId: string = '***';
487
+ /**
488
+ * Country or region, like CN
489
+ */
490
+ get deviceId() {
491
+ return this._deviceId;
492
+ }
493
+ protected set deviceId(value: string) {
494
+ this._deviceId = value;
495
+ }
496
+
481
497
  /**
482
498
  * Label delegate
483
499
  */
@@ -537,11 +553,6 @@ export abstract class CoreApp<
537
553
  */
538
554
  protected deviceIdField: string = 'SmartERPDeviceId';
539
555
 
540
- /**
541
- * Device id
542
- */
543
- protected deviceId: string;
544
-
545
556
  /**
546
557
  * Passphrase for encryption
547
558
  */