eservices-core 1.0.388 → 1.0.390
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/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* eservices-core v1.0.
|
|
2
|
+
* eservices-core v1.0.390
|
|
3
3
|
* (c) 2022 ESERVICES
|
|
4
4
|
*/
|
|
5
5
|
'use strict';
|
|
@@ -6668,7 +6668,7 @@ class metadataService {
|
|
|
6668
6668
|
}
|
|
6669
6669
|
|
|
6670
6670
|
class InvitationService {
|
|
6671
|
-
static invite(organizationId, personKey,
|
|
6671
|
+
static invite(organizationId, personKey, relatedRoleCode) {
|
|
6672
6672
|
return Request('/close-api/accounts/invitePerson', {
|
|
6673
6673
|
method: 'POST',
|
|
6674
6674
|
headers: {
|
|
@@ -6677,7 +6677,33 @@ class InvitationService {
|
|
|
6677
6677
|
body: JSON.stringify({
|
|
6678
6678
|
organizationId,
|
|
6679
6679
|
personKey,
|
|
6680
|
-
|
|
6680
|
+
relatedRoleCode
|
|
6681
|
+
})
|
|
6682
|
+
});
|
|
6683
|
+
}
|
|
6684
|
+
static accept(invitationId, version) {
|
|
6685
|
+
return Request('/close-api/accounts/markInvite', {
|
|
6686
|
+
method: 'POST',
|
|
6687
|
+
headers: {
|
|
6688
|
+
'Content-Type': 'application/json',
|
|
6689
|
+
},
|
|
6690
|
+
body: JSON.stringify({
|
|
6691
|
+
invitationId,
|
|
6692
|
+
version,
|
|
6693
|
+
mark: true
|
|
6694
|
+
})
|
|
6695
|
+
});
|
|
6696
|
+
}
|
|
6697
|
+
static decline(invitationId, version) {
|
|
6698
|
+
return Request('/close-api/accounts/markInvite', {
|
|
6699
|
+
method: 'POST',
|
|
6700
|
+
headers: {
|
|
6701
|
+
'Content-Type': 'application/json',
|
|
6702
|
+
},
|
|
6703
|
+
body: JSON.stringify({
|
|
6704
|
+
invitationId,
|
|
6705
|
+
version,
|
|
6706
|
+
mark: false
|
|
6681
6707
|
})
|
|
6682
6708
|
});
|
|
6683
6709
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
export default class InvitationService {
|
|
2
|
-
static invite(organizationId: number, personKey: string,
|
|
2
|
+
static invite(organizationId: number, personKey: string, relatedRoleCode: number): Promise<any>;
|
|
3
|
+
static accept(invitationId: number, version: number): Promise<any>;
|
|
4
|
+
static decline(invitationId: number, version: number): Promise<any>;
|
|
3
5
|
}
|