@webex/internal-plugin-device 3.0.0-beta.15 → 3.0.0-beta.17

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.
package/dist/config.js CHANGED
@@ -1,15 +1,11 @@
1
1
  "use strict";
2
2
 
3
3
  var _Object$defineProperty = require("@babel/runtime-corejs2/core-js/object/define-property");
4
-
5
4
  _Object$defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
-
9
7
  exports.default = void 0;
10
-
11
8
  var _common = require("@webex/common");
12
-
13
9
  var _default = {
14
10
  device: {
15
11
  /**
@@ -18,7 +14,6 @@ var _default = {
18
14
  * @type {number}
19
15
  */
20
16
  canRegisterWaitDuration: 10,
21
-
22
17
  /**
23
18
  * The default configuration group when sending registration requests.
24
19
  *
@@ -39,14 +34,12 @@ var _default = {
39
34
  systemVersion: '1.0.0'
40
35
  }
41
36
  },
42
-
43
37
  /**
44
38
  * When true, the **wdm** service will enforce an inactivity duration.
45
39
  *
46
40
  * @type {boolean}
47
41
  */
48
42
  enableInactivityEnforcement: false,
49
-
50
43
  /**
51
44
  * When true, the device registration will include a ttl value of
52
45
  * {@link config.device.ephemeralDeviceTTL} and refresh on an interval of
@@ -55,7 +48,6 @@ var _default = {
55
48
  * @type {boolean}
56
49
  */
57
50
  ephemeral: false,
58
-
59
51
  /**
60
52
  * The ttl value to include in device registration if
61
53
  * {@link config.device.ephemeral} is true. Measured in seconds.
@@ -1 +1 @@
1
- {"version":3,"names":["device","canRegisterWaitDuration","defaults","body","name","process","title","trim","undefined","inBrowser","deviceType","WEB","model","localizedModel","systemName","systemVersion","enableInactivityEnforcement","ephemeral","ephemeralDeviceTTL"],"sources":["config.js"],"sourcesContent":["import {inBrowser, deviceType} from '@webex/common';\n\nexport default {\n device: {\n /**\n * The duration to wait for the catalog to populate in seconds.\n *\n * @type {number}\n */\n canRegisterWaitDuration: 10,\n\n /**\n * The default configuration group when sending registration requests.\n *\n * @type {Object}\n */\n defaults: {\n /**\n * The default body configuration of registration requests.\n *\n * @type {Object}\n */\n body: {\n name:\n (typeof process.title === 'string' ? process.title.trim() : undefined) ||\n (inBrowser && 'browser') ||\n 'javascript',\n deviceType: deviceType.WEB,\n model: 'web-js-sdk',\n localizedModel: 'webex-js-sdk',\n systemName: 'WEBEX_JS_SDK',\n systemVersion: '1.0.0',\n },\n },\n\n /**\n * When true, the **wdm** service will enforce an inactivity duration.\n *\n * @type {boolean}\n */\n enableInactivityEnforcement: false,\n\n /**\n * When true, the device registration will include a ttl value of\n * {@link config.device.ephemeralDeviceTTL} and refresh on an interval of\n * {@link config.device.ephemeralDeviceTTL} / 2 + 60 seconds.\n *\n * @type {boolean}\n */\n ephemeral: false,\n\n /**\n * The ttl value to include in device registration if\n * {@link config.device.ephemeral} is true. Measured in seconds.\n *\n * @type {boolean}\n */\n ephemeralDeviceTTL: 30 * 60,\n },\n};\n"],"mappings":";;;;;;;;;;AAAA;;eAEe;EACbA,MAAM,EAAE;IACN;AACJ;AACA;AACA;AACA;IACIC,uBAAuB,EAAE,EANnB;;IAQN;AACJ;AACA;AACA;AACA;IACIC,QAAQ,EAAE;MACR;AACN;AACA;AACA;AACA;MACMC,IAAI,EAAE;QACJC,IAAI,EACF,CAAC,OAAOC,OAAO,CAACC,KAAf,KAAyB,QAAzB,GAAoCD,OAAO,CAACC,KAAR,CAAcC,IAAd,EAApC,GAA2DC,SAA5D,KACCC,iBAAA,IAAa,SADd,IAEA,YAJE;QAKJC,UAAU,EAAEA,kBAAA,CAAWC,GALnB;QAMJC,KAAK,EAAE,YANH;QAOJC,cAAc,EAAE,cAPZ;QAQJC,UAAU,EAAE,cARR;QASJC,aAAa,EAAE;MATX;IANE,CAbJ;;IAgCN;AACJ;AACA;AACA;AACA;IACIC,2BAA2B,EAAE,KArCvB;;IAuCN;AACJ;AACA;AACA;AACA;AACA;AACA;IACIC,SAAS,EAAE,KA9CL;;IAgDN;AACJ;AACA;AACA;AACA;AACA;IACIC,kBAAkB,EAAE,KAAK;EAtDnB;AADK,C"}
1
+ {"version":3,"names":["device","canRegisterWaitDuration","defaults","body","name","process","title","trim","undefined","inBrowser","deviceType","WEB","model","localizedModel","systemName","systemVersion","enableInactivityEnforcement","ephemeral","ephemeralDeviceTTL"],"sources":["config.js"],"sourcesContent":["import {inBrowser, deviceType} from '@webex/common';\n\nexport default {\n device: {\n /**\n * The duration to wait for the catalog to populate in seconds.\n *\n * @type {number}\n */\n canRegisterWaitDuration: 10,\n\n /**\n * The default configuration group when sending registration requests.\n *\n * @type {Object}\n */\n defaults: {\n /**\n * The default body configuration of registration requests.\n *\n * @type {Object}\n */\n body: {\n name:\n (typeof process.title === 'string' ? process.title.trim() : undefined) ||\n (inBrowser && 'browser') ||\n 'javascript',\n deviceType: deviceType.WEB,\n model: 'web-js-sdk',\n localizedModel: 'webex-js-sdk',\n systemName: 'WEBEX_JS_SDK',\n systemVersion: '1.0.0',\n },\n },\n\n /**\n * When true, the **wdm** service will enforce an inactivity duration.\n *\n * @type {boolean}\n */\n enableInactivityEnforcement: false,\n\n /**\n * When true, the device registration will include a ttl value of\n * {@link config.device.ephemeralDeviceTTL} and refresh on an interval of\n * {@link config.device.ephemeralDeviceTTL} / 2 + 60 seconds.\n *\n * @type {boolean}\n */\n ephemeral: false,\n\n /**\n * The ttl value to include in device registration if\n * {@link config.device.ephemeral} is true. Measured in seconds.\n *\n * @type {boolean}\n */\n ephemeralDeviceTTL: 30 * 60,\n },\n};\n"],"mappings":";;;;;;;AAAA;AAAoD,eAErC;EACbA,MAAM,EAAE;IACN;AACJ;AACA;AACA;AACA;IACIC,uBAAuB,EAAE,EAAE;IAE3B;AACJ;AACA;AACA;AACA;IACIC,QAAQ,EAAE;MACR;AACN;AACA;AACA;AACA;MACMC,IAAI,EAAE;QACJC,IAAI,EACF,CAAC,OAAOC,OAAO,CAACC,KAAK,KAAK,QAAQ,GAAGD,OAAO,CAACC,KAAK,CAACC,IAAI,EAAE,GAAGC,SAAS,KACpEC,iBAAS,IAAI,SAAU,IACxB,YAAY;QACdC,UAAU,EAAEA,kBAAU,CAACC,GAAG;QAC1BC,KAAK,EAAE,YAAY;QACnBC,cAAc,EAAE,cAAc;QAC9BC,UAAU,EAAE,cAAc;QAC1BC,aAAa,EAAE;MACjB;IACF,CAAC;IAED;AACJ;AACA;AACA;AACA;IACIC,2BAA2B,EAAE,KAAK;IAElC;AACJ;AACA;AACA;AACA;AACA;AACA;IACIC,SAAS,EAAE,KAAK;IAEhB;AACJ;AACA;AACA;AACA;AACA;IACIC,kBAAkB,EAAE,EAAE,GAAG;EAC3B;AACF,CAAC;AAAA"}
package/dist/constants.js CHANGED
@@ -1,11 +1,9 @@
1
1
  "use strict";
2
2
 
3
3
  var _Object$defineProperty = require("@babel/runtime-corejs2/core-js/object/define-property");
4
-
5
4
  _Object$defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
-
9
7
  exports.FEATURE_TYPES = exports.FEATURE_COLLECTION_USER = exports.FEATURE_COLLECTION_NAMES = exports.FEATURE_COLLECTION_ENTITLEMENT = exports.FEATURE_COLLECTION_DEVELOPER = exports.DEVICE_EVENT_REGISTRATION_SUCCESS = exports.DEVICE_EVENTS = exports.CISCO_DEVICE_URL = void 0;
10
8
  // Feature constants.
11
9
  var FEATURE_COLLECTION_DEVELOPER = 'developer';
@@ -22,8 +20,9 @@ var FEATURE_TYPES = {
22
20
  BOOLEAN: 'boolean',
23
21
  NUMBER: 'number',
24
22
  STRING: 'string'
25
- }; // Device constants.
23
+ };
26
24
 
25
+ // Device constants.
27
26
  exports.FEATURE_TYPES = FEATURE_TYPES;
28
27
  var DEVICE_EVENT_REGISTRATION_SUCCESS = 'registration:success';
29
28
  exports.DEVICE_EVENT_REGISTRATION_SUCCESS = DEVICE_EVENT_REGISTRATION_SUCCESS;
@@ -1 +1 @@
1
- {"version":3,"names":["FEATURE_COLLECTION_DEVELOPER","FEATURE_COLLECTION_ENTITLEMENT","FEATURE_COLLECTION_USER","CISCO_DEVICE_URL","FEATURE_COLLECTION_NAMES","FEATURE_TYPES","BOOLEAN","NUMBER","STRING","DEVICE_EVENT_REGISTRATION_SUCCESS","DEVICE_EVENTS"],"sources":["constants.js"],"sourcesContent":["// Feature constants.\nexport const FEATURE_COLLECTION_DEVELOPER = 'developer';\nexport const FEATURE_COLLECTION_ENTITLEMENT = 'entitlement';\nexport const FEATURE_COLLECTION_USER = 'user';\n\nexport const CISCO_DEVICE_URL = 'cisco-device-url';\n\nexport const FEATURE_COLLECTION_NAMES = [\n FEATURE_COLLECTION_DEVELOPER,\n FEATURE_COLLECTION_ENTITLEMENT,\n FEATURE_COLLECTION_USER,\n];\n\nexport const FEATURE_TYPES = {\n BOOLEAN: 'boolean',\n NUMBER: 'number',\n STRING: 'string',\n};\n\n// Device constants.\nexport const DEVICE_EVENT_REGISTRATION_SUCCESS = 'registration:success';\n\nexport const DEVICE_EVENTS = [DEVICE_EVENT_REGISTRATION_SUCCESS];\n"],"mappings":";;;;;;;;;AAAA;AACO,IAAMA,4BAA4B,GAAG,WAArC;;AACA,IAAMC,8BAA8B,GAAG,aAAvC;;AACA,IAAMC,uBAAuB,GAAG,MAAhC;;AAEA,IAAMC,gBAAgB,GAAG,kBAAzB;;AAEA,IAAMC,wBAAwB,GAAG,CACtCJ,4BADsC,EAEtCC,8BAFsC,EAGtCC,uBAHsC,CAAjC;;AAMA,IAAMG,aAAa,GAAG;EAC3BC,OAAO,EAAE,SADkB;EAE3BC,MAAM,EAAE,QAFmB;EAG3BC,MAAM,EAAE;AAHmB,CAAtB,C,CAMP;;;AACO,IAAMC,iCAAiC,GAAG,sBAA1C;;AAEA,IAAMC,aAAa,GAAG,CAACD,iCAAD,CAAtB"}
1
+ {"version":3,"names":["FEATURE_COLLECTION_DEVELOPER","FEATURE_COLLECTION_ENTITLEMENT","FEATURE_COLLECTION_USER","CISCO_DEVICE_URL","FEATURE_COLLECTION_NAMES","FEATURE_TYPES","BOOLEAN","NUMBER","STRING","DEVICE_EVENT_REGISTRATION_SUCCESS","DEVICE_EVENTS"],"sources":["constants.js"],"sourcesContent":["// Feature constants.\nexport const FEATURE_COLLECTION_DEVELOPER = 'developer';\nexport const FEATURE_COLLECTION_ENTITLEMENT = 'entitlement';\nexport const FEATURE_COLLECTION_USER = 'user';\n\nexport const CISCO_DEVICE_URL = 'cisco-device-url';\n\nexport const FEATURE_COLLECTION_NAMES = [\n FEATURE_COLLECTION_DEVELOPER,\n FEATURE_COLLECTION_ENTITLEMENT,\n FEATURE_COLLECTION_USER,\n];\n\nexport const FEATURE_TYPES = {\n BOOLEAN: 'boolean',\n NUMBER: 'number',\n STRING: 'string',\n};\n\n// Device constants.\nexport const DEVICE_EVENT_REGISTRATION_SUCCESS = 'registration:success';\n\nexport const DEVICE_EVENTS = [DEVICE_EVENT_REGISTRATION_SUCCESS];\n"],"mappings":";;;;;;;AAAA;AACO,IAAMA,4BAA4B,GAAG,WAAW;AAAC;AACjD,IAAMC,8BAA8B,GAAG,aAAa;AAAC;AACrD,IAAMC,uBAAuB,GAAG,MAAM;AAAC;AAEvC,IAAMC,gBAAgB,GAAG,kBAAkB;AAAC;AAE5C,IAAMC,wBAAwB,GAAG,CACtCJ,4BAA4B,EAC5BC,8BAA8B,EAC9BC,uBAAuB,CACxB;AAAC;AAEK,IAAMG,aAAa,GAAG;EAC3BC,OAAO,EAAE,SAAS;EAClBC,MAAM,EAAE,QAAQ;EAChBC,MAAM,EAAE;AACV,CAAC;;AAED;AAAA;AACO,IAAMC,iCAAiC,GAAG,sBAAsB;AAAC;AAEjE,IAAMC,aAAa,GAAG,CAACD,iCAAiC,CAAC;AAAC"}