eservices-core 1.0.389 → 1.0.391

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.389
2
+ * eservices-core v1.0.391
3
3
  * (c) 2022 ESERVICES
4
4
  */
5
5
  'use strict';
@@ -4809,8 +4809,8 @@ class authService {
4809
4809
  credentials: 'include',
4810
4810
  body: JSON.stringify(values)
4811
4811
  })
4812
- .catch(authService.parseError)
4813
- .then(authService.parseProcessAnswer);
4812
+ .catch(authService.parseError);
4813
+ //.then(authService.parseProcessAnswer)
4814
4814
  }
4815
4815
  static startLoginProcess(values) {
4816
4816
  return authService.requestStepLoginProcess('StartLogin', values);
@@ -6681,6 +6681,32 @@ class InvitationService {
6681
6681
  })
6682
6682
  });
6683
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
6707
+ })
6708
+ });
6709
+ }
6684
6710
  }
6685
6711
 
6686
6712
  /**
@@ -1,3 +1,5 @@
1
1
  export default class InvitationService {
2
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eservices-core",
3
- "version": "1.0.389",
3
+ "version": "1.0.391",
4
4
  "description": "Core library",
5
5
  "author": "",
6
6
  "scripts": {