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.
- package/bower.json +1 -1
- package/dist/{opengate-api-bower-14.2.1.js → opengate-api-bower-14.4.0.js} +38 -9
- package/dist/opengate-api-bower-14.4.0.js.map +1 -0
- package/dist/{opengate-api-bower-14.2.1.min.js → opengate-api-bower-14.4.0.min.js} +2 -2
- package/dist/opengate-api-bower-14.4.0.min.js.map +1 -0
- package/dist/src/connectorsFunctions/_CONNECTOR_FUNCTIONS_ENUMS.js +1 -1
- package/dist/src/connectorsFunctions/_CONNECTOR_FUNCTIONS_ENUMS.js.map +1 -1
- package/dist/src/searching/builder/AlarmsSearchBuilder.js +13 -0
- package/dist/src/searching/builder/AlarmsSearchBuilder.js.map +1 -1
- package/dist/src/users/Users.js +18 -2
- package/dist/src/users/Users.js.map +1 -1
- package/docs/ast/source/connectorsFunctions/_CONNECTOR_FUNCTIONS_ENUMS.js.json +28 -28
- package/docs/ast/source/searching/builder/AlarmsSearchBuilder.js.json +932 -19
- package/docs/ast/source/users/Users.js.json +8540 -6112
- package/docs/class/src/searching/builder/AlarmsSearchBuilder.js~AlarmsSearchBuilder.html +116 -1
- package/docs/class/src/users/Users.js~User.html +106 -6
- package/docs/coverage.json +8 -8
- package/docs/dump.json +1236 -1144
- package/docs/file/src/connectorsFunctions/_CONNECTOR_FUNCTIONS_ENUMS.js.html +1 -1
- package/docs/file/src/searching/builder/AlarmsSearchBuilder.js.html +11 -0
- package/docs/file/src/users/Users.js.html +16 -2
- package/docs/package.json +1 -1
- package/docs/script/search_index.js +12 -0
- package/docs/source.html +242 -242
- package/features/features/provision/operations/actions_execution.feature +2 -1
- package/features/features/provision/operations/execute_operations.feature +2 -1
- package/features/features/provision/operations/execute_periodic_operations.feature +2 -1
- package/features/features/provision/operations/find_execution.feature +2 -1
- package/features/features/provision/operations/find_executions.feature +2 -1
- package/features/features/provision/operations/find_periodic_execution.feature +5 -4
- package/features/features/provision/operations/setting_up_period-each_operation.feature +2 -1
- package/features/features/provision/operations/update_periodic_operation.feature +2 -1
- package/features/features/provision/users/create_delete_user.feature +3 -1
- package/features/features/provision/users/find_user.feature +2 -1
- package/features/features/provision/users/reset_password.feature +2 -1
- package/features/features/provision/users/reset_password_mock.feature +2 -1
- package/features/features/provision/users/update_password.feature +4 -4
- package/features/features/provision/users/update_user.feature +5 -4
- package/features/features/searching/operations/searching_executions.feature +2 -1
- package/features/features/searching/operations/searching_periodic_operations.feature +2 -1
- package/features/support/create_provision_model.js +1 -0
- package/package.json +1 -1
- package/src/connectorsFunctions/_CONNECTOR_FUNCTIONS_ENUMS.js +1 -1
- package/src/searching/builder/AlarmsSearchBuilder.js +11 -0
- package/src/users/Users.js +16 -2
- package/yarn-error.log +1 -1
- package/dist/opengate-api-bower-14.2.1.js.map +0 -1
- 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, '');
|
|
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 !== '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
|
@@ -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",
|