opengate-js 14.3.0 → 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 (37) hide show
  1. package/bower.json +1 -1
  2. package/dist/{opengate-api-bower-14.3.0.js → opengate-api-bower-14.4.0.js} +22 -6
  3. package/dist/opengate-api-bower-14.4.0.js.map +1 -0
  4. package/dist/{opengate-api-bower-14.3.0.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/users/Users.js +18 -2
  7. package/dist/src/users/Users.js.map +1 -1
  8. package/docs/ast/source/users/Users.js.json +8540 -6112
  9. package/docs/class/src/users/Users.js~User.html +106 -6
  10. package/docs/coverage.json +6 -6
  11. package/docs/dump.json +506 -450
  12. package/docs/file/src/users/Users.js.html +16 -2
  13. package/docs/package.json +1 -1
  14. package/docs/script/search_index.js +6 -0
  15. package/docs/source.html +238 -238
  16. package/features/features/provision/operations/actions_execution.feature +2 -1
  17. package/features/features/provision/operations/execute_operations.feature +2 -1
  18. package/features/features/provision/operations/execute_periodic_operations.feature +2 -1
  19. package/features/features/provision/operations/find_execution.feature +2 -1
  20. package/features/features/provision/operations/find_executions.feature +2 -1
  21. package/features/features/provision/operations/find_periodic_execution.feature +5 -4
  22. package/features/features/provision/operations/setting_up_period-each_operation.feature +2 -1
  23. package/features/features/provision/operations/update_periodic_operation.feature +2 -1
  24. package/features/features/provision/users/create_delete_user.feature +3 -1
  25. package/features/features/provision/users/find_user.feature +2 -1
  26. package/features/features/provision/users/reset_password.feature +2 -1
  27. package/features/features/provision/users/reset_password_mock.feature +2 -1
  28. package/features/features/provision/users/update_password.feature +4 -4
  29. package/features/features/provision/users/update_user.feature +5 -4
  30. package/features/features/searching/operations/searching_executions.feature +2 -1
  31. package/features/features/searching/operations/searching_periodic_operations.feature +2 -1
  32. package/features/support/create_provision_model.js +1 -0
  33. package/package.json +1 -1
  34. package/src/users/Users.js +16 -2
  35. package/yarn-error.log +1 -1
  36. package/dist/opengate-api-bower-14.3.0.js.map +0 -1
  37. package/dist/opengate-api-bower-14.3.0.min.js.map +0 -1
@@ -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 !== 'boolean')
496
+ throw new Error('Parameter forcePasswordChange must be a boolean');
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
- "2FaType": this._twoFaType || undefined
534
+ "2FaType": this._twoFaType || undefined,
535
+ forcePasswordChange: typeof this._forcePasswordChange === 'boolean' ? 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
- "2FaType": this._twoFaType || undefined
566
+ "2FaType": this._twoFaType || undefined,
567
+ forcePasswordChange: typeof this._forcePasswordChange === 'boolean' ? 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.3.0",
3
+ "version": "14.4.0",
4
4
  "description": "",
5
5
  "main": "dist/opengate-api-npm.js",
6
6
  "repository": {
@@ -11141,6 +11141,12 @@ window.esdocSearchIndex = [
11141
11141
  "src/users/Users.js~User#withEmail",
11142
11142
  "method"
11143
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
+ ],
11144
11150
  [
11145
11151
  "src/users/users.js~user#withlangcode",
11146
11152
  "class/src/users/Users.js~User.html#instance-method-withLangCode",