@inweb/client 25.6.5 → 25.6.7
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 +57 -20
- package/dist/client.js.map +1 -1
- package/dist/client.min.js +1 -1
- package/dist/client.module.js +24 -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 +33 -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 +55 -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,41 @@
|
|
|
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
|
+
}
|
|
3605
|
+
/**
|
|
3606
|
+
* The total size of the user's files in the storage.
|
|
3607
|
+
*
|
|
3608
|
+
* @readonly
|
|
3609
|
+
*/
|
|
3610
|
+
get storageUsed() {
|
|
3611
|
+
return this.data.storageUsed;
|
|
3612
|
+
}
|
|
3576
3613
|
/**
|
|
3577
3614
|
* The user's access token (API key). Use {@link Client.signInWithToken()} to log in using token.
|
|
3578
3615
|
*
|
|
@@ -3593,7 +3630,7 @@
|
|
|
3593
3630
|
/**
|
|
3594
3631
|
* Refresh user data.
|
|
3595
3632
|
*
|
|
3596
|
-
* Only administrators can checkout other users
|
|
3633
|
+
* Only administrators can checkout other users. If the current logged in user is not an
|
|
3597
3634
|
* administrator, they can only checkout themselves, otherwise an exception will be thrown.
|
|
3598
3635
|
*/
|
|
3599
3636
|
async checkout() {
|
|
@@ -3615,7 +3652,7 @@
|
|
|
3615
3652
|
/**
|
|
3616
3653
|
* Update user data on the server.
|
|
3617
3654
|
*
|
|
3618
|
-
* Only administrators can update other users
|
|
3655
|
+
* Only administrators can update other users. If the current logged in user is not an
|
|
3619
3656
|
* administrator, they can only update themself, otherwise an exception will be thrown.
|
|
3620
3657
|
*
|
|
3621
3658
|
* @async
|
|
@@ -3623,7 +3660,7 @@
|
|
|
3623
3660
|
*/
|
|
3624
3661
|
async update(data) {
|
|
3625
3662
|
if (this.httpClient.signInUserIsAdmin) {
|
|
3626
|
-
const response = await this.httpClient.put(`/users/${this.id}`, { userBrief: data });
|
|
3663
|
+
const response = await this.httpClient.put(`/users/${this.id}`, { isAdmin: data.isAdmin, userBrief: data });
|
|
3627
3664
|
const newData = await response.json();
|
|
3628
3665
|
this.data = { id: newData.id, ...newData.userBrief };
|
|
3629
3666
|
}
|
|
@@ -3640,7 +3677,7 @@
|
|
|
3640
3677
|
/**
|
|
3641
3678
|
* Delete a user from the server.
|
|
3642
3679
|
*
|
|
3643
|
-
* Only administrators can delete users
|
|
3680
|
+
* Only administrators can delete users. If the current logged in user is not an
|
|
3644
3681
|
* administrator, an exception will be thrown.
|
|
3645
3682
|
*
|
|
3646
3683
|
* Administrators can delete themselves or other administrators. An administrator can only
|
|
@@ -3681,7 +3718,7 @@
|
|
|
3681
3718
|
/**
|
|
3682
3719
|
* Set or remove the user avatar.
|
|
3683
3720
|
*
|
|
3684
|
-
* Only administrators can set the avatar of other users
|
|
3721
|
+
* Only administrators can set the avatar of other users. If the current logged in user is
|
|
3685
3722
|
* not an administrator, they can only set their avatar, otherwise an exception will be thrown.
|
|
3686
3723
|
*
|
|
3687
3724
|
* @async
|
|
@@ -3715,7 +3752,7 @@
|
|
|
3715
3752
|
/**
|
|
3716
3753
|
* Remove the user avatar.
|
|
3717
3754
|
*
|
|
3718
|
-
* Only administrators can remove the avatar of other users
|
|
3755
|
+
* Only administrators can remove the avatar of other users. If the current logged in user is
|
|
3719
3756
|
* not an administrator, they can only remove their avatar, otherwise an exception will be thrown.
|
|
3720
3757
|
*
|
|
3721
3758
|
* @async
|
|
@@ -3739,7 +3776,7 @@
|
|
|
3739
3776
|
/**
|
|
3740
3777
|
* Change the user password.
|
|
3741
3778
|
*
|
|
3742
|
-
* Only administrators can change the passwords of other users
|
|
3779
|
+
* Only administrators can change the passwords of other users. If the current logged in user
|
|
3743
3780
|
* is not an administrator, they can only change their password, otherwise an exception will
|
|
3744
3781
|
* be thrown.
|
|
3745
3782
|
*
|
|
@@ -3867,7 +3904,7 @@
|
|
|
3867
3904
|
.then((data) => ({
|
|
3868
3905
|
...data,
|
|
3869
3906
|
server: data.version,
|
|
3870
|
-
client: "25.6.
|
|
3907
|
+
client: "25.6.7",
|
|
3871
3908
|
}));
|
|
3872
3909
|
}
|
|
3873
3910
|
/**
|
|
@@ -3987,7 +4024,7 @@
|
|
|
3987
4024
|
/**
|
|
3988
4025
|
* Change server settings.
|
|
3989
4026
|
*
|
|
3990
|
-
* Only administrators can change server settings
|
|
4027
|
+
* Only administrators can change server settings. If the current logged in user is not an
|
|
3991
4028
|
* administrator, an exception will be thrown.
|
|
3992
4029
|
*
|
|
3993
4030
|
* @async
|
|
@@ -3998,7 +4035,7 @@
|
|
|
3998
4035
|
/**
|
|
3999
4036
|
* Returns a list of server users.
|
|
4000
4037
|
*
|
|
4001
|
-
* Only administrators can get a list of users
|
|
4038
|
+
* Only administrators can get a list of users. If the current logged in user is not an
|
|
4002
4039
|
* administrator, an exception will be thrown.
|
|
4003
4040
|
*
|
|
4004
4041
|
* @async
|
|
@@ -4013,7 +4050,7 @@
|
|
|
4013
4050
|
/**
|
|
4014
4051
|
* Returns the user information.
|
|
4015
4052
|
*
|
|
4016
|
-
* Only administrators can get other users
|
|
4053
|
+
* Only administrators can get other users. If the current logged in user is not an
|
|
4017
4054
|
* administrator, they can only get themselves, otherwise an exception will be thrown.
|
|
4018
4055
|
*
|
|
4019
4056
|
* @async
|
|
@@ -4041,7 +4078,7 @@
|
|
|
4041
4078
|
/**
|
|
4042
4079
|
* Create a new user.
|
|
4043
4080
|
*
|
|
4044
|
-
* Only administrators can create users
|
|
4081
|
+
* Only administrators can create users. If the current logged in user is not an
|
|
4045
4082
|
* administrator, an exception will be thrown.
|
|
4046
4083
|
*
|
|
4047
4084
|
* @async
|
|
@@ -4077,7 +4114,7 @@
|
|
|
4077
4114
|
/**
|
|
4078
4115
|
* Delete a user from the server.
|
|
4079
4116
|
*
|
|
4080
|
-
* Only administrators can delete users
|
|
4117
|
+
* Only administrators can delete users. If the current logged in user is not an
|
|
4081
4118
|
* administrator, an exception will be thrown.
|
|
4082
4119
|
*
|
|
4083
4120
|
* Administrators can delete themselves or other administrators. An administrator can only
|
|
@@ -4592,7 +4629,7 @@
|
|
|
4592
4629
|
}
|
|
4593
4630
|
|
|
4594
4631
|
///////////////////////////////////////////////////////////////////////////////
|
|
4595
|
-
const version = "25.6.
|
|
4632
|
+
const version = "25.6.7";
|
|
4596
4633
|
|
|
4597
4634
|
exports.Assembly = Assembly;
|
|
4598
4635
|
exports.ClashTest = ClashTest;
|