@inweb/client 25.6.5 → 25.6.6
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/client.js +49 -20
- package/dist/client.js.map +1 -1
- package/dist/client.min.js +1 -1
- package/dist/client.module.js +21 -2
- package/dist/client.module.js.map +1 -1
- package/lib/Api/Client.d.ts +5 -5
- package/lib/Api/File.d.ts +1 -1
- package/lib/Api/Job.d.ts +1 -1
- package/lib/Api/User.d.ts +27 -10
- package/package.json +2 -2
- package/src/Api/Client.ts +5 -5
- package/src/Api/File.ts +1 -1
- package/src/Api/Job.ts +1 -1
- package/src/Api/User.ts +46 -11
package/dist/client.js
CHANGED
|
@@ -1836,7 +1836,7 @@
|
|
|
1836
1836
|
/**
|
|
1837
1837
|
* Update job data on the server.
|
|
1838
1838
|
*
|
|
1839
|
-
* Only administrators can update job data
|
|
1839
|
+
* Only administrators can update job data. If the current logged in user is not an
|
|
1840
1840
|
* administrator, an exception will be thrown.
|
|
1841
1841
|
*
|
|
1842
1842
|
* @async
|
|
@@ -2722,7 +2722,7 @@
|
|
|
2722
2722
|
* - waitForDone()
|
|
2723
2723
|
* - Viewer.open()
|
|
2724
2724
|
*
|
|
2725
|
-
* Other clients will still continue to use the
|
|
2725
|
+
* Other clients will still continue to use the current active version of the file. Use
|
|
2726
2726
|
* `undefined` to revert back to the active version.
|
|
2727
2727
|
*
|
|
2728
2728
|
* Note. You need to update the file data using [File.checkout()]{@link File#checkout} to
|
|
@@ -3436,11 +3436,14 @@
|
|
|
3436
3436
|
/**
|
|
3437
3437
|
* `true` if user is allowed to create a project.
|
|
3438
3438
|
*
|
|
3439
|
-
*
|
|
3439
|
+
* Only administrators can change create project permission.
|
|
3440
3440
|
*/
|
|
3441
3441
|
get canCreateProject() {
|
|
3442
3442
|
return this.data.canCreateProject;
|
|
3443
3443
|
}
|
|
3444
|
+
set canCreateProject(value) {
|
|
3445
|
+
this._data.canCreateProject = value;
|
|
3446
|
+
}
|
|
3444
3447
|
/**
|
|
3445
3448
|
* Account registration time (UTC) in the format specified in
|
|
3446
3449
|
* {@link https://www.wikipedia.org/wiki/ISO_8601 | ISO 8601}.
|
|
@@ -3477,12 +3480,13 @@
|
|
|
3477
3480
|
}
|
|
3478
3481
|
/**
|
|
3479
3482
|
* User email.
|
|
3480
|
-
*
|
|
3481
|
-
* @readonly
|
|
3482
3483
|
*/
|
|
3483
3484
|
get email() {
|
|
3484
3485
|
return this.data.email;
|
|
3485
3486
|
}
|
|
3487
|
+
set email(value) {
|
|
3488
|
+
this._data.email = value;
|
|
3489
|
+
}
|
|
3486
3490
|
/**
|
|
3487
3491
|
* The user's email confirmation code, or an empty string if the email has already been confirmed.
|
|
3488
3492
|
*
|
|
@@ -3503,6 +3507,8 @@
|
|
|
3503
3507
|
/**
|
|
3504
3508
|
* Full name. Returns the user's first and last name. If first name and last names are empty,
|
|
3505
3509
|
* returns the user name.
|
|
3510
|
+
*
|
|
3511
|
+
* @readonly
|
|
3506
3512
|
*/
|
|
3507
3513
|
get fullName() {
|
|
3508
3514
|
return this.data.fullName;
|
|
@@ -3518,16 +3524,23 @@
|
|
|
3518
3524
|
/**
|
|
3519
3525
|
* User initials. Returns a first letters of the user's first and last names. If first name
|
|
3520
3526
|
* and last names are empty, returns the first letter of the user name.
|
|
3527
|
+
*
|
|
3528
|
+
* @readonly
|
|
3521
3529
|
*/
|
|
3522
3530
|
get initials() {
|
|
3523
3531
|
return this.data.initials;
|
|
3524
3532
|
}
|
|
3525
3533
|
/**
|
|
3526
3534
|
* `true` if user is an administrator.
|
|
3535
|
+
*
|
|
3536
|
+
* Only administrators can change user type.
|
|
3527
3537
|
*/
|
|
3528
3538
|
get isAdmin() {
|
|
3529
3539
|
return this.data.isAdmin;
|
|
3530
3540
|
}
|
|
3541
|
+
set isAdmin(value) {
|
|
3542
|
+
this._data.isAdmin = value;
|
|
3543
|
+
}
|
|
3531
3544
|
/**
|
|
3532
3545
|
* `false` if the user has not yet confirmed his email address.
|
|
3533
3546
|
*
|
|
@@ -3562,17 +3575,33 @@
|
|
|
3562
3575
|
/**
|
|
3563
3576
|
* The maximum number of projects that a user can create.
|
|
3564
3577
|
*
|
|
3565
|
-
*
|
|
3578
|
+
* Only administrators can change projects limit.
|
|
3566
3579
|
*/
|
|
3567
3580
|
get projectsLimit() {
|
|
3568
3581
|
return this.data.projectsLimit;
|
|
3569
3582
|
}
|
|
3583
|
+
set projectsLimit(value) {
|
|
3584
|
+
this._data.projectsLimit = value;
|
|
3585
|
+
}
|
|
3570
3586
|
/**
|
|
3571
3587
|
* The identity provider used to create the account. Can be `ldap`, `oauth`, `saml` or empty.
|
|
3588
|
+
*
|
|
3589
|
+
* @readonly
|
|
3572
3590
|
*/
|
|
3573
3591
|
get providerType() {
|
|
3574
3592
|
return this.data.providerType;
|
|
3575
3593
|
}
|
|
3594
|
+
/**
|
|
3595
|
+
* User storage size on the server for uploading files.
|
|
3596
|
+
*
|
|
3597
|
+
* Only administrators can change storage size.
|
|
3598
|
+
*/
|
|
3599
|
+
get storageLimit() {
|
|
3600
|
+
return this.data.storageLimit;
|
|
3601
|
+
}
|
|
3602
|
+
set storageLimit(value) {
|
|
3603
|
+
this._data.storageLimit = value;
|
|
3604
|
+
}
|
|
3576
3605
|
/**
|
|
3577
3606
|
* The user's access token (API key). Use {@link Client.signInWithToken()} to log in using token.
|
|
3578
3607
|
*
|
|
@@ -3593,7 +3622,7 @@
|
|
|
3593
3622
|
/**
|
|
3594
3623
|
* Refresh user data.
|
|
3595
3624
|
*
|
|
3596
|
-
* Only administrators can checkout other users
|
|
3625
|
+
* Only administrators can checkout other users. If the current logged in user is not an
|
|
3597
3626
|
* administrator, they can only checkout themselves, otherwise an exception will be thrown.
|
|
3598
3627
|
*/
|
|
3599
3628
|
async checkout() {
|
|
@@ -3615,7 +3644,7 @@
|
|
|
3615
3644
|
/**
|
|
3616
3645
|
* Update user data on the server.
|
|
3617
3646
|
*
|
|
3618
|
-
* Only administrators can update other users
|
|
3647
|
+
* Only administrators can update other users. If the current logged in user is not an
|
|
3619
3648
|
* administrator, they can only update themself, otherwise an exception will be thrown.
|
|
3620
3649
|
*
|
|
3621
3650
|
* @async
|
|
@@ -3623,7 +3652,7 @@
|
|
|
3623
3652
|
*/
|
|
3624
3653
|
async update(data) {
|
|
3625
3654
|
if (this.httpClient.signInUserIsAdmin) {
|
|
3626
|
-
const response = await this.httpClient.put(`/users/${this.id}`, { userBrief: data });
|
|
3655
|
+
const response = await this.httpClient.put(`/users/${this.id}`, { isAdmin: data.isAdmin, userBrief: data });
|
|
3627
3656
|
const newData = await response.json();
|
|
3628
3657
|
this.data = { id: newData.id, ...newData.userBrief };
|
|
3629
3658
|
}
|
|
@@ -3640,7 +3669,7 @@
|
|
|
3640
3669
|
/**
|
|
3641
3670
|
* Delete a user from the server.
|
|
3642
3671
|
*
|
|
3643
|
-
* Only administrators can delete users
|
|
3672
|
+
* Only administrators can delete users. If the current logged in user is not an
|
|
3644
3673
|
* administrator, an exception will be thrown.
|
|
3645
3674
|
*
|
|
3646
3675
|
* Administrators can delete themselves or other administrators. An administrator can only
|
|
@@ -3681,7 +3710,7 @@
|
|
|
3681
3710
|
/**
|
|
3682
3711
|
* Set or remove the user avatar.
|
|
3683
3712
|
*
|
|
3684
|
-
* Only administrators can set the avatar of other users
|
|
3713
|
+
* Only administrators can set the avatar of other users. If the current logged in user is
|
|
3685
3714
|
* not an administrator, they can only set their avatar, otherwise an exception will be thrown.
|
|
3686
3715
|
*
|
|
3687
3716
|
* @async
|
|
@@ -3715,7 +3744,7 @@
|
|
|
3715
3744
|
/**
|
|
3716
3745
|
* Remove the user avatar.
|
|
3717
3746
|
*
|
|
3718
|
-
* Only administrators can remove the avatar of other users
|
|
3747
|
+
* Only administrators can remove the avatar of other users. If the current logged in user is
|
|
3719
3748
|
* not an administrator, they can only remove their avatar, otherwise an exception will be thrown.
|
|
3720
3749
|
*
|
|
3721
3750
|
* @async
|
|
@@ -3739,7 +3768,7 @@
|
|
|
3739
3768
|
/**
|
|
3740
3769
|
* Change the user password.
|
|
3741
3770
|
*
|
|
3742
|
-
* Only administrators can change the passwords of other users
|
|
3771
|
+
* Only administrators can change the passwords of other users. If the current logged in user
|
|
3743
3772
|
* is not an administrator, they can only change their password, otherwise an exception will
|
|
3744
3773
|
* be thrown.
|
|
3745
3774
|
*
|
|
@@ -3867,7 +3896,7 @@
|
|
|
3867
3896
|
.then((data) => ({
|
|
3868
3897
|
...data,
|
|
3869
3898
|
server: data.version,
|
|
3870
|
-
client: "25.6.
|
|
3899
|
+
client: "25.6.6",
|
|
3871
3900
|
}));
|
|
3872
3901
|
}
|
|
3873
3902
|
/**
|
|
@@ -3987,7 +4016,7 @@
|
|
|
3987
4016
|
/**
|
|
3988
4017
|
* Change server settings.
|
|
3989
4018
|
*
|
|
3990
|
-
* Only administrators can change server settings
|
|
4019
|
+
* Only administrators can change server settings. If the current logged in user is not an
|
|
3991
4020
|
* administrator, an exception will be thrown.
|
|
3992
4021
|
*
|
|
3993
4022
|
* @async
|
|
@@ -3998,7 +4027,7 @@
|
|
|
3998
4027
|
/**
|
|
3999
4028
|
* Returns a list of server users.
|
|
4000
4029
|
*
|
|
4001
|
-
* Only administrators can get a list of users
|
|
4030
|
+
* Only administrators can get a list of users. If the current logged in user is not an
|
|
4002
4031
|
* administrator, an exception will be thrown.
|
|
4003
4032
|
*
|
|
4004
4033
|
* @async
|
|
@@ -4013,7 +4042,7 @@
|
|
|
4013
4042
|
/**
|
|
4014
4043
|
* Returns the user information.
|
|
4015
4044
|
*
|
|
4016
|
-
* Only administrators can get other users
|
|
4045
|
+
* Only administrators can get other users. If the current logged in user is not an
|
|
4017
4046
|
* administrator, they can only get themselves, otherwise an exception will be thrown.
|
|
4018
4047
|
*
|
|
4019
4048
|
* @async
|
|
@@ -4041,7 +4070,7 @@
|
|
|
4041
4070
|
/**
|
|
4042
4071
|
* Create a new user.
|
|
4043
4072
|
*
|
|
4044
|
-
* Only administrators can create users
|
|
4073
|
+
* Only administrators can create users. If the current logged in user is not an
|
|
4045
4074
|
* administrator, an exception will be thrown.
|
|
4046
4075
|
*
|
|
4047
4076
|
* @async
|
|
@@ -4077,7 +4106,7 @@
|
|
|
4077
4106
|
/**
|
|
4078
4107
|
* Delete a user from the server.
|
|
4079
4108
|
*
|
|
4080
|
-
* Only administrators can delete users
|
|
4109
|
+
* Only administrators can delete users. If the current logged in user is not an
|
|
4081
4110
|
* administrator, an exception will be thrown.
|
|
4082
4111
|
*
|
|
4083
4112
|
* Administrators can delete themselves or other administrators. An administrator can only
|
|
@@ -4592,7 +4621,7 @@
|
|
|
4592
4621
|
}
|
|
4593
4622
|
|
|
4594
4623
|
///////////////////////////////////////////////////////////////////////////////
|
|
4595
|
-
const version = "25.6.
|
|
4624
|
+
const version = "25.6.6";
|
|
4596
4625
|
|
|
4597
4626
|
exports.Assembly = Assembly;
|
|
4598
4627
|
exports.ClashTest = ClashTest;
|