@webex/plugin-people 2.29.3 → 2.29.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.
package/dist/config.js CHANGED
@@ -19,7 +19,7 @@ var _default = {
19
19
 
20
20
  /**
21
21
  * optional flag that requires Hydra to send every type field,
22
- * even if the type is not "person" (e.g.: SX10, webhook_intergation, etc.)
22
+ * even if the type is not "person" (e.g.: SX10, webhook_integration, etc.)
23
23
  * @private
24
24
  */
25
25
  showAllTypes: false
@@ -1 +1 @@
1
- {"version":3,"names":["people","batcherWait","batcherMaxCalls","batcherMaxWait","showAllTypes"],"sources":["config.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\nexport default {\n people: {\n batcherWait: 100,\n batcherMaxCalls: 10,\n batcherMaxWait: 1500,\n /**\n * optional flag that requires Hydra to send every type field,\n * even if the type is not \"person\" (e.g.: SX10, webhook_intergation, etc.)\n * @private\n */\n showAllTypes: false\n }\n};\n"],"mappings":";;;;;;;;;;AAAA;AACA;AACA;eAEe;EACbA,MAAM,EAAE;IACNC,WAAW,EAAE,GADP;IAENC,eAAe,EAAE,EAFX;IAGNC,cAAc,EAAE,IAHV;;IAIN;AACJ;AACA;AACA;AACA;IACIC,YAAY,EAAE;EATR;AADK,C"}
1
+ {"version":3,"names":["people","batcherWait","batcherMaxCalls","batcherMaxWait","showAllTypes"],"sources":["config.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\nexport default {\n people: {\n batcherWait: 100,\n batcherMaxCalls: 10,\n batcherMaxWait: 1500,\n /**\n * optional flag that requires Hydra to send every type field,\n * even if the type is not \"person\" (e.g.: SX10, webhook_integration, etc.)\n * @private\n */\n showAllTypes: false\n }\n};\n"],"mappings":";;;;;;;;;;AAAA;AACA;AACA;eAEe;EACbA,MAAM,EAAE;IACNC,WAAW,EAAE,GADP;IAENC,eAAe,EAAE,EAFX;IAGNC,cAAc,EAAE,IAHV;;IAIN;AACJ;AACA;AACA;AACA;IACIC,YAAY,EAAE;EATR;AADK,C"}
package/dist/people.js CHANGED
@@ -94,7 +94,7 @@ var People = _webexCore.WebexPlugin.extend((_obj = {
94
94
  * @param {email} options.email - Returns people with an email that contains this string
95
95
  * @param {string} options.displayName - Returns people with a name that contains this string
96
96
  * @param {bool} showAllTypes optional flag that requires Hydra to send every type field,
97
- * even if the type is not "person" (e.g.: SX10, webhook_intergation, etc.)
97
+ * even if the type is not "person" (e.g.: SX10, webhook_integration, etc.)
98
98
  * @returns {Promise<Page<PersonObject>>}
99
99
  * @example
100
100
  * var room;
@@ -210,7 +210,7 @@ var People = _webexCore.WebexPlugin.extend((_obj = {
210
210
  return res.body;
211
211
  });
212
212
  },
213
- version: "2.29.3"
213
+ version: "2.29.5"
214
214
  }, ((0, _applyDecoratedDescriptor2.default)(_obj, "_getMe", [_common.oneFlight], (0, _getOwnPropertyDescriptor.default)(_obj, "_getMe"), _obj)), _obj));
215
215
 
216
216
  var _default = People;
@@ -1 +1 @@
1
- {"version":3,"names":["People","WebexPlugin","extend","namespace","children","batcher","PeopleBatcher","get","person","reject","Error","_getMe","id","personId","request","list","options","peopleIds","all","map","service","resource","qs","then","res","Page","webex","inferPersonIdFromUuid","base64","decode","includes","err","encode","body","oneFlight"],"sources":["people.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\nimport {WebexPlugin, Page} from '@webex/webex-core';\nimport {base64, oneFlight} from '@webex/common';\n\nimport PeopleBatcher from './people-batcher';\n\n/**\n * @typedef {Object} PersonObject\n * @property {string} id - (server generated) Unique identifier for the person\n * @property {Array<email>} emails - Email addresses of the person\n * @property {string} displayName - Display name of the person\n * @property {isoDate} created - (server generated) The date and time that the person was created\n */\n\n/**\n * @class\n */\nconst People = WebexPlugin.extend({\n namespace: 'People',\n\n children: {\n batcher: PeopleBatcher\n },\n /**\n * Returns a single person by ID\n * @instance\n * @memberof People\n * @param {PersonObject|uuid|string} person\n * @returns {Promise<PersonObject>}\n * @example\n * webex.rooms.create({title: 'Get Person Example'})\n * .then(function(room) {\n * return webex.memberships.create({\n * personEmail: 'alice@example.com',\n * roomId: room.id\n * });\n * })\n * .then(function(membership) {\n * return webex.people.get(membership.personId);\n * })\n * .then(function(alice) {\n * var assert = require('assert');\n * assert(alice.id);\n * assert(Array.isArray(alice.emails));\n * assert.equal(alice.emails.filter(function(email) {\n * return email === 'alice@example.com';\n * }).length, 1);\n * assert(alice.displayName);\n * assert(alice.created);\n * return 'success';\n * });\n * // => success\n */\n get(person) {\n if (!person) {\n return Promise.reject(new Error('A person with an id is required'));\n }\n if (person === 'me') {\n return this._getMe();\n }\n const id = person.personId || person.id || person;\n\n return this.batcher.request(id);\n },\n\n /**\n * Returns a list of people\n * @instance\n * @memberof People\n * @param {Object | uuid[]} options or array of uuids\n * @param {email} options.email - Returns people with an email that contains this string\n * @param {string} options.displayName - Returns people with a name that contains this string\n * @param {bool} showAllTypes optional flag that requires Hydra to send every type field,\n * even if the type is not \"person\" (e.g.: SX10, webhook_intergation, etc.)\n * @returns {Promise<Page<PersonObject>>}\n * @example\n * var room;\n * webex.rooms.create({title: 'List People Example'})\n * .then(function(r) {\n * room = r;\n * return webex.memberships.create({\n * personEmail: 'alice@example.com',\n * roomId: room.id\n * });\n * })\n * .then(function() {\n * return webex.memberships.create({\n * personEmail: 'bob@example.com',\n * roomId: room.id\n * });\n * })\n * .then(function() {\n * return webex.people.list({email: 'alice@example.com'});\n * })\n * .then(function(people) {\n * var assert = require('assert');\n * assert.equal(people.length, 1);\n * var person = people.items[0];\n * assert(person.id);\n * assert(Array.isArray(person.emails));\n * assert(person.displayName);\n * assert(person.created);\n * return 'success';\n * });\n * // => success\n * @example <caption>Example usage of array method</caption>\n * var room;\n * var aliceId;\n * var bobId;\n * webex.rooms.create({title: 'List People Array Example'})\n * .then(function(r) {\n * room = r;\n * return webex.memberships.create({\n * personEmail: 'alice@example.com',\n * roomId: room.id\n * });\n * })\n * .then(function(membership) {\n * aliceId = membership.personId;\n * })\n * .then(function() {\n * return webex.memberships.create({\n * personEmail: 'bob@example.com',\n * roomId: room.id\n * });\n * })\n * .then(function(membership) {\n * bobId = membership.personId;\n * })\n * .then(function() {\n * return webex.people.list([aliceId, bobId]);\n * })\n * .then(function(people) {\n * var assert = require('assert');\n * assert.equal(people.length, 2);\n * var person = people.items[0];\n * assert(person.id);\n * assert(Array.isArray(person.emails));\n * assert(person.displayName);\n * assert(person.created);\n * return 'success';\n * });\n * // => success\n */\n list(options) {\n if (Array.isArray(options)) {\n const peopleIds = options;\n\n return Promise.all(peopleIds.map((personId) => this.batcher.request(personId)));\n }\n\n return this.request({\n service: 'hydra',\n resource: 'people',\n qs: options\n })\n .then((res) => new Page(res, this.webex));\n },\n\n /**\n * Converts a uuid to a hydra id without a network dip.\n * @param {string} id\n * @private\n * @returns {string}\n */\n inferPersonIdFromUuid(id) {\n // base64.validate seems to return true for uuids, so we need a different\n // check\n try {\n if (base64.decode(id).includes('ciscospark://')) {\n return id;\n }\n }\n catch (err) {\n // ignore\n }\n\n return base64.encode(`ciscospark://us/PEOPLE/${id}`);\n },\n\n /**\n * Fetches the current user from the /people/me endpoint\n * @instance\n * @memberof People\n * @private\n * @returns {Promise<PersonObject>}\n */\n @oneFlight\n _getMe() {\n return this.webex.request({\n service: 'hydra',\n resource: 'people/me'\n })\n .then((res) => res.body);\n }\n});\n\nexport default People;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAIA;;AACA;;AAEA;;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAMA,MAAM,GAAGC,sBAAA,CAAYC,MAAZ,SAAmB;EAChCC,SAAS,EAAE,QADqB;EAGhCC,QAAQ,EAAE;IACRC,OAAO,EAAEC;EADD,CAHsB;;EAMhC;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACEC,GApCgC,eAoC5BC,MApC4B,EAoCpB;IACV,IAAI,CAACA,MAAL,EAAa;MACX,OAAO,iBAAQC,MAAR,CAAe,IAAIC,KAAJ,CAAU,iCAAV,CAAf,CAAP;IACD;;IACD,IAAIF,MAAM,KAAK,IAAf,EAAqB;MACnB,OAAO,KAAKG,MAAL,EAAP;IACD;;IACD,IAAMC,EAAE,GAAGJ,MAAM,CAACK,QAAP,IAAmBL,MAAM,CAACI,EAA1B,IAAgCJ,MAA3C;IAEA,OAAO,KAAKH,OAAL,CAAaS,OAAb,CAAqBF,EAArB,CAAP;EACD,CA9C+B;;EAgDhC;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACEG,IA/HgC,gBA+H3BC,OA/H2B,EA+HlB;IAAA;;IACZ,IAAI,sBAAcA,OAAd,CAAJ,EAA4B;MAC1B,IAAMC,SAAS,GAAGD,OAAlB;MAEA,OAAO,iBAAQE,GAAR,CAAYD,SAAS,CAACE,GAAV,CAAc,UAACN,QAAD;QAAA,OAAc,KAAI,CAACR,OAAL,CAAaS,OAAb,CAAqBD,QAArB,CAAd;MAAA,CAAd,CAAZ,CAAP;IACD;;IAED,OAAO,KAAKC,OAAL,CAAa;MAClBM,OAAO,EAAE,OADS;MAElBC,QAAQ,EAAE,QAFQ;MAGlBC,EAAE,EAAEN;IAHc,CAAb,EAKJO,IALI,CAKC,UAACC,GAAD;MAAA,OAAS,IAAIC,eAAJ,CAASD,GAAT,EAAc,KAAI,CAACE,KAAnB,CAAT;IAAA,CALD,CAAP;EAMD,CA5I+B;;EA8IhC;AACF;AACA;AACA;AACA;AACA;EACEC,qBApJgC,iCAoJVf,EApJU,EAoJN;IACxB;IACA;IACA,IAAI;MACF,IAAIgB,cAAA,CAAOC,MAAP,CAAcjB,EAAd,EAAkBkB,QAAlB,CAA2B,eAA3B,CAAJ,EAAiD;QAC/C,OAAOlB,EAAP;MACD;IACF,CAJD,CAKA,OAAOmB,GAAP,EAAY,CACV;IACD;;IAED,OAAOH,cAAA,CAAOI,MAAP,kCAAwCpB,EAAxC,EAAP;EACD,CAjK+B;EA2KhCD,MA3KgC,oBA2KvB;IACP,OAAO,KAAKe,KAAL,CAAWZ,OAAX,CAAmB;MACxBM,OAAO,EAAE,OADe;MAExBC,QAAQ,EAAE;IAFc,CAAnB,EAIJE,IAJI,CAIC,UAACC,GAAD;MAAA,OAASA,GAAG,CAACS,IAAb;IAAA,CAJD,CAAP;EAKD,CAjL+B;EAAA;AAAA,CAAnB,4DA0KZC,iBA1KY,yEAAf;;eAoLelC,M"}
1
+ {"version":3,"names":["People","WebexPlugin","extend","namespace","children","batcher","PeopleBatcher","get","person","reject","Error","_getMe","id","personId","request","list","options","peopleIds","all","map","service","resource","qs","then","res","Page","webex","inferPersonIdFromUuid","base64","decode","includes","err","encode","body","oneFlight"],"sources":["people.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\nimport {WebexPlugin, Page} from '@webex/webex-core';\nimport {base64, oneFlight} from '@webex/common';\n\nimport PeopleBatcher from './people-batcher';\n\n/**\n * @typedef {Object} PersonObject\n * @property {string} id - (server generated) Unique identifier for the person\n * @property {Array<email>} emails - Email addresses of the person\n * @property {string} displayName - Display name of the person\n * @property {isoDate} created - (server generated) The date and time that the person was created\n */\n\n/**\n * @class\n */\nconst People = WebexPlugin.extend({\n namespace: 'People',\n\n children: {\n batcher: PeopleBatcher\n },\n /**\n * Returns a single person by ID\n * @instance\n * @memberof People\n * @param {PersonObject|uuid|string} person\n * @returns {Promise<PersonObject>}\n * @example\n * webex.rooms.create({title: 'Get Person Example'})\n * .then(function(room) {\n * return webex.memberships.create({\n * personEmail: 'alice@example.com',\n * roomId: room.id\n * });\n * })\n * .then(function(membership) {\n * return webex.people.get(membership.personId);\n * })\n * .then(function(alice) {\n * var assert = require('assert');\n * assert(alice.id);\n * assert(Array.isArray(alice.emails));\n * assert.equal(alice.emails.filter(function(email) {\n * return email === 'alice@example.com';\n * }).length, 1);\n * assert(alice.displayName);\n * assert(alice.created);\n * return 'success';\n * });\n * // => success\n */\n get(person) {\n if (!person) {\n return Promise.reject(new Error('A person with an id is required'));\n }\n if (person === 'me') {\n return this._getMe();\n }\n const id = person.personId || person.id || person;\n\n return this.batcher.request(id);\n },\n\n /**\n * Returns a list of people\n * @instance\n * @memberof People\n * @param {Object | uuid[]} options or array of uuids\n * @param {email} options.email - Returns people with an email that contains this string\n * @param {string} options.displayName - Returns people with a name that contains this string\n * @param {bool} showAllTypes optional flag that requires Hydra to send every type field,\n * even if the type is not \"person\" (e.g.: SX10, webhook_integration, etc.)\n * @returns {Promise<Page<PersonObject>>}\n * @example\n * var room;\n * webex.rooms.create({title: 'List People Example'})\n * .then(function(r) {\n * room = r;\n * return webex.memberships.create({\n * personEmail: 'alice@example.com',\n * roomId: room.id\n * });\n * })\n * .then(function() {\n * return webex.memberships.create({\n * personEmail: 'bob@example.com',\n * roomId: room.id\n * });\n * })\n * .then(function() {\n * return webex.people.list({email: 'alice@example.com'});\n * })\n * .then(function(people) {\n * var assert = require('assert');\n * assert.equal(people.length, 1);\n * var person = people.items[0];\n * assert(person.id);\n * assert(Array.isArray(person.emails));\n * assert(person.displayName);\n * assert(person.created);\n * return 'success';\n * });\n * // => success\n * @example <caption>Example usage of array method</caption>\n * var room;\n * var aliceId;\n * var bobId;\n * webex.rooms.create({title: 'List People Array Example'})\n * .then(function(r) {\n * room = r;\n * return webex.memberships.create({\n * personEmail: 'alice@example.com',\n * roomId: room.id\n * });\n * })\n * .then(function(membership) {\n * aliceId = membership.personId;\n * })\n * .then(function() {\n * return webex.memberships.create({\n * personEmail: 'bob@example.com',\n * roomId: room.id\n * });\n * })\n * .then(function(membership) {\n * bobId = membership.personId;\n * })\n * .then(function() {\n * return webex.people.list([aliceId, bobId]);\n * })\n * .then(function(people) {\n * var assert = require('assert');\n * assert.equal(people.length, 2);\n * var person = people.items[0];\n * assert(person.id);\n * assert(Array.isArray(person.emails));\n * assert(person.displayName);\n * assert(person.created);\n * return 'success';\n * });\n * // => success\n */\n list(options) {\n if (Array.isArray(options)) {\n const peopleIds = options;\n\n return Promise.all(peopleIds.map((personId) => this.batcher.request(personId)));\n }\n\n return this.request({\n service: 'hydra',\n resource: 'people',\n qs: options\n })\n .then((res) => new Page(res, this.webex));\n },\n\n /**\n * Converts a uuid to a hydra id without a network dip.\n * @param {string} id\n * @private\n * @returns {string}\n */\n inferPersonIdFromUuid(id) {\n // base64.validate seems to return true for uuids, so we need a different\n // check\n try {\n if (base64.decode(id).includes('ciscospark://')) {\n return id;\n }\n }\n catch (err) {\n // ignore\n }\n\n return base64.encode(`ciscospark://us/PEOPLE/${id}`);\n },\n\n /**\n * Fetches the current user from the /people/me endpoint\n * @instance\n * @memberof People\n * @private\n * @returns {Promise<PersonObject>}\n */\n @oneFlight\n _getMe() {\n return this.webex.request({\n service: 'hydra',\n resource: 'people/me'\n })\n .then((res) => res.body);\n }\n});\n\nexport default People;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAIA;;AACA;;AAEA;;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAMA,MAAM,GAAGC,sBAAA,CAAYC,MAAZ,SAAmB;EAChCC,SAAS,EAAE,QADqB;EAGhCC,QAAQ,EAAE;IACRC,OAAO,EAAEC;EADD,CAHsB;;EAMhC;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACEC,GApCgC,eAoC5BC,MApC4B,EAoCpB;IACV,IAAI,CAACA,MAAL,EAAa;MACX,OAAO,iBAAQC,MAAR,CAAe,IAAIC,KAAJ,CAAU,iCAAV,CAAf,CAAP;IACD;;IACD,IAAIF,MAAM,KAAK,IAAf,EAAqB;MACnB,OAAO,KAAKG,MAAL,EAAP;IACD;;IACD,IAAMC,EAAE,GAAGJ,MAAM,CAACK,QAAP,IAAmBL,MAAM,CAACI,EAA1B,IAAgCJ,MAA3C;IAEA,OAAO,KAAKH,OAAL,CAAaS,OAAb,CAAqBF,EAArB,CAAP;EACD,CA9C+B;;EAgDhC;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACEG,IA/HgC,gBA+H3BC,OA/H2B,EA+HlB;IAAA;;IACZ,IAAI,sBAAcA,OAAd,CAAJ,EAA4B;MAC1B,IAAMC,SAAS,GAAGD,OAAlB;MAEA,OAAO,iBAAQE,GAAR,CAAYD,SAAS,CAACE,GAAV,CAAc,UAACN,QAAD;QAAA,OAAc,KAAI,CAACR,OAAL,CAAaS,OAAb,CAAqBD,QAArB,CAAd;MAAA,CAAd,CAAZ,CAAP;IACD;;IAED,OAAO,KAAKC,OAAL,CAAa;MAClBM,OAAO,EAAE,OADS;MAElBC,QAAQ,EAAE,QAFQ;MAGlBC,EAAE,EAAEN;IAHc,CAAb,EAKJO,IALI,CAKC,UAACC,GAAD;MAAA,OAAS,IAAIC,eAAJ,CAASD,GAAT,EAAc,KAAI,CAACE,KAAnB,CAAT;IAAA,CALD,CAAP;EAMD,CA5I+B;;EA8IhC;AACF;AACA;AACA;AACA;AACA;EACEC,qBApJgC,iCAoJVf,EApJU,EAoJN;IACxB;IACA;IACA,IAAI;MACF,IAAIgB,cAAA,CAAOC,MAAP,CAAcjB,EAAd,EAAkBkB,QAAlB,CAA2B,eAA3B,CAAJ,EAAiD;QAC/C,OAAOlB,EAAP;MACD;IACF,CAJD,CAKA,OAAOmB,GAAP,EAAY,CACV;IACD;;IAED,OAAOH,cAAA,CAAOI,MAAP,kCAAwCpB,EAAxC,EAAP;EACD,CAjK+B;EA2KhCD,MA3KgC,oBA2KvB;IACP,OAAO,KAAKe,KAAL,CAAWZ,OAAX,CAAmB;MACxBM,OAAO,EAAE,OADe;MAExBC,QAAQ,EAAE;IAFc,CAAnB,EAIJE,IAJI,CAIC,UAACC,GAAD;MAAA,OAASA,GAAG,CAACS,IAAb;IAAA,CAJD,CAAP;EAKD,CAjL+B;EAAA;AAAA,CAAnB,4DA0KZC,iBA1KY,yEAAf;;eAoLelC,M"}
package/package.json CHANGED
@@ -1,24 +1,30 @@
1
1
  {
2
- "name": "@webex/plugin-people",
3
- "version": "2.29.3",
4
- "description": "",
5
- "license": "MIT",
6
- "author": "Adam Weeks <adweeks@cisco.com>",
7
- "main": "dist/index.js",
8
- "devMain": "src/index.js",
9
- "repository": "https://github.com/webex/webex-js-sdk/tree/master/packages/node_modules/@webex/plugin-people",
10
- "engines": {
11
- "node": ">=8"
12
- },
13
- "browserify": {
14
- "transform": [
15
- "envify"
16
- ]
17
- },
18
- "dependencies": {
19
- "@babel/runtime-corejs2": "^7.14.8",
20
- "@webex/webex-core": "2.29.3",
21
- "@webex/common": "2.29.3",
22
- "envify": "^4.1.0"
23
- }
2
+ "name": "@webex/plugin-people",
3
+ "version": "2.29.5",
4
+ "description": "",
5
+ "license": "MIT",
6
+ "main": "dist/index.js",
7
+ "devMain": "src/index.js",
8
+ "repository": "https://github.com/webex/webex-js-sdk/tree/master/packages/@webex/plugin-people",
9
+ "engines": {
10
+ "node": ">=14"
11
+ },
12
+ "browserify": {
13
+ "transform": [
14
+ "babelify",
15
+ "envify"
16
+ ]
17
+ },
18
+ "devDependencies": {
19
+ "@webex/test-helper-chai": "workspace:^",
20
+ "@webex/test-helper-mock-webex": "workspace:^",
21
+ "@webex/test-helper-test-users": "workspace:^",
22
+ "sinon": "^9.2.4"
23
+ },
24
+ "dependencies": {
25
+ "@webex/common": "workspace:^",
26
+ "@webex/internal-plugin-mercury": "workspace:^",
27
+ "@webex/plugin-people": "workspace:^",
28
+ "@webex/webex-core": "workspace:^"
29
+ }
24
30
  }
package/src/config.js CHANGED
@@ -9,7 +9,7 @@ export default {
9
9
  batcherMaxWait: 1500,
10
10
  /**
11
11
  * optional flag that requires Hydra to send every type field,
12
- * even if the type is not "person" (e.g.: SX10, webhook_intergation, etc.)
12
+ * even if the type is not "person" (e.g.: SX10, webhook_integration, etc.)
13
13
  * @private
14
14
  */
15
15
  showAllTypes: false
package/src/people.js CHANGED
@@ -74,7 +74,7 @@ const People = WebexPlugin.extend({
74
74
  * @param {email} options.email - Returns people with an email that contains this string
75
75
  * @param {string} options.displayName - Returns people with a name that contains this string
76
76
  * @param {bool} showAllTypes optional flag that requires Hydra to send every type field,
77
- * even if the type is not "person" (e.g.: SX10, webhook_intergation, etc.)
77
+ * even if the type is not "person" (e.g.: SX10, webhook_integration, etc.)
78
78
  * @returns {Promise<Page<PersonObject>>}
79
79
  * @example
80
80
  * var room;