opengate-js 14.2.1 → 14.4.0

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.
Files changed (48) hide show
  1. package/bower.json +1 -1
  2. package/dist/{opengate-api-bower-14.2.1.js → opengate-api-bower-14.4.0.js} +38 -9
  3. package/dist/opengate-api-bower-14.4.0.js.map +1 -0
  4. package/dist/{opengate-api-bower-14.2.1.min.js → opengate-api-bower-14.4.0.min.js} +2 -2
  5. package/dist/opengate-api-bower-14.4.0.min.js.map +1 -0
  6. package/dist/src/connectorsFunctions/_CONNECTOR_FUNCTIONS_ENUMS.js +1 -1
  7. package/dist/src/connectorsFunctions/_CONNECTOR_FUNCTIONS_ENUMS.js.map +1 -1
  8. package/dist/src/searching/builder/AlarmsSearchBuilder.js +13 -0
  9. package/dist/src/searching/builder/AlarmsSearchBuilder.js.map +1 -1
  10. package/dist/src/users/Users.js +18 -2
  11. package/dist/src/users/Users.js.map +1 -1
  12. package/docs/ast/source/connectorsFunctions/_CONNECTOR_FUNCTIONS_ENUMS.js.json +28 -28
  13. package/docs/ast/source/searching/builder/AlarmsSearchBuilder.js.json +932 -19
  14. package/docs/ast/source/users/Users.js.json +8540 -6112
  15. package/docs/class/src/searching/builder/AlarmsSearchBuilder.js~AlarmsSearchBuilder.html +116 -1
  16. package/docs/class/src/users/Users.js~User.html +106 -6
  17. package/docs/coverage.json +8 -8
  18. package/docs/dump.json +1236 -1144
  19. package/docs/file/src/connectorsFunctions/_CONNECTOR_FUNCTIONS_ENUMS.js.html +1 -1
  20. package/docs/file/src/searching/builder/AlarmsSearchBuilder.js.html +11 -0
  21. package/docs/file/src/users/Users.js.html +16 -2
  22. package/docs/package.json +1 -1
  23. package/docs/script/search_index.js +12 -0
  24. package/docs/source.html +242 -242
  25. package/features/features/provision/operations/actions_execution.feature +2 -1
  26. package/features/features/provision/operations/execute_operations.feature +2 -1
  27. package/features/features/provision/operations/execute_periodic_operations.feature +2 -1
  28. package/features/features/provision/operations/find_execution.feature +2 -1
  29. package/features/features/provision/operations/find_executions.feature +2 -1
  30. package/features/features/provision/operations/find_periodic_execution.feature +5 -4
  31. package/features/features/provision/operations/setting_up_period-each_operation.feature +2 -1
  32. package/features/features/provision/operations/update_periodic_operation.feature +2 -1
  33. package/features/features/provision/users/create_delete_user.feature +3 -1
  34. package/features/features/provision/users/find_user.feature +2 -1
  35. package/features/features/provision/users/reset_password.feature +2 -1
  36. package/features/features/provision/users/reset_password_mock.feature +2 -1
  37. package/features/features/provision/users/update_password.feature +4 -4
  38. package/features/features/provision/users/update_user.feature +5 -4
  39. package/features/features/searching/operations/searching_executions.feature +2 -1
  40. package/features/features/searching/operations/searching_periodic_operations.feature +2 -1
  41. package/features/support/create_provision_model.js +1 -0
  42. package/package.json +1 -1
  43. package/src/connectorsFunctions/_CONNECTOR_FUNCTIONS_ENUMS.js +1 -1
  44. package/src/searching/builder/AlarmsSearchBuilder.js +11 -0
  45. package/src/users/Users.js +16 -2
  46. package/yarn-error.log +1 -1
  47. package/dist/opengate-api-bower-14.2.1.js.map +0 -1
  48. package/dist/opengate-api-bower-14.2.1.min.js.map +0 -1
@@ -316,7 +316,7 @@
316
316
  /**
317
317
  * CONNECTOR_FUNCTION_SOUTH_PROTOCOLS values allowed
318
318
  */
319
- export const CONNECTOR_FUNCTION_SOUTH_PROTOCOLS = ["https://", "wss://", "mqtts://", "snmps://", "dlms://", "icmp://"];
319
+ export const CONNECTOR_FUNCTION_SOUTH_PROTOCOLS = ["https://", "wss://", "mqtts://", "snmps://", "dlms://", "icmp:///"];
320
320
 
321
321
  </code></pre>
322
322
 
@@ -326,6 +326,17 @@ export default class AlarmsSearchBuilder extends SearchWithSummaryBuilder {
326
326
  this._url = this._url.replace(TOKEN_URL, &apos;&apos;);
327
327
  return super._buildUrl();
328
328
  }
329
+
330
+ /**
331
+ * The search request will have this group by
332
+ * @example
333
+ * @param {!(object)} group
334
+ * @return {TimeserieSearchBuilder}
335
+ */
336
+ group(group) {
337
+ this._builderParams.group = (group || {});
338
+ return this;
339
+ }
329
340
  }</code></pre>
330
341
 
331
342
  </div>
@@ -485,6 +485,18 @@ export default class User extends BaseProvision {
485
485
  return this;
486
486
  }
487
487
 
488
+ /**
489
+ * Set the forcePasswordChange: if true Forces you to reset your password on your next login attempt.
490
+ * @param {boolean} forcePasswordChange
491
+ * @return {User}
492
+ *
493
+ */
494
+ withForcePasswordChange(forcePasswordChange) {
495
+ if (typeof forcePasswordChange !== &apos;boolean&apos;)
496
+ throw new Error(&apos;Parameter forcePasswordChange must be a boolean&apos;);
497
+ this._forcePasswordChange = forcePasswordChange;
498
+ return this;
499
+ }
488
500
  /**
489
501
  * Compose url to delete an user
490
502
  * @return {String} This returns a string with the URL of the request.
@@ -519,7 +531,8 @@ export default class User extends BaseProvision {
519
531
  countryCode: this._countryCode || undefined,
520
532
  langCode: this._langCode || undefined,
521
533
  timezone: this._timezone || undefined,
522
- &quot;2FaType&quot;: this._twoFaType || undefined
534
+ &quot;2FaType&quot;: this._twoFaType || undefined,
535
+ forcePasswordChange: typeof this._forcePasswordChange === &apos;boolean&apos; ? this._forcePasswordChange : undefined
523
536
  }
524
537
  };
525
538
 
@@ -550,7 +563,8 @@ export default class User extends BaseProvision {
550
563
  timezone: this._timezone || undefined,
551
564
  apiKey: this._apiKey || undefined,
552
565
  password: this._password || undefined,
553
- &quot;2FaType&quot;: this._twoFaType || undefined
566
+ &quot;2FaType&quot;: this._twoFaType || undefined,
567
+ forcePasswordChange: typeof this._forcePasswordChange === &apos;boolean&apos; ? this._forcePasswordChange : undefined
554
568
  }
555
569
  };
556
570
  return data;
package/docs/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opengate-js",
3
- "version": "14.2.1",
3
+ "version": "14.4.0",
4
4
  "description": "",
5
5
  "main": "dist/opengate-api-npm.js",
6
6
  "repository": {
@@ -8999,6 +8999,12 @@ window.esdocSearchIndex = [
8999
8999
  "src/searching/builder/AlarmsSearchBuilder.js~AlarmsSearchBuilder#constructor",
9000
9000
  "method"
9001
9001
  ],
9002
+ [
9003
+ "src/searching/builder/alarmssearchbuilder.js~alarmssearchbuilder#group",
9004
+ "class/src/searching/builder/AlarmsSearchBuilder.js~AlarmsSearchBuilder.html#instance-method-group",
9005
+ "src/searching/builder/AlarmsSearchBuilder.js~AlarmsSearchBuilder#group",
9006
+ "method"
9007
+ ],
9002
9008
  [
9003
9009
  "src/searching/builder/allowedresourcetypesearchbuilder.js",
9004
9010
  "file/src/searching/builder/AllowedResourceTypeSearchBuilder.js.html",
@@ -11135,6 +11141,12 @@ window.esdocSearchIndex = [
11135
11141
  "src/users/Users.js~User#withEmail",
11136
11142
  "method"
11137
11143
  ],
11144
+ [
11145
+ "src/users/users.js~user#withforcepasswordchange",
11146
+ "class/src/users/Users.js~User.html#instance-method-withForcePasswordChange",
11147
+ "src/users/Users.js~User#withForcePasswordChange",
11148
+ "method"
11149
+ ],
11138
11150
  [
11139
11151
  "src/users/users.js~user#withlangcode",
11140
11152
  "class/src/users/Users.js~User.html#instance-method-withLangCode",