@longvansoftware/service-js-client 1.6.1 → 1.6.2

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.
@@ -4,6 +4,6 @@ export declare class ResourcePermissionService extends Service {
4
4
  setToken(token: string): void;
5
5
  setStoreId(storeId: string): void;
6
6
  shareResource(createModel: any): Promise<any>;
7
- removeShareParty(resourceId: string, sharePartyId: string): Promise<any>;
7
+ removeShareParty(resourceId: string, sharePartyId: string, resourceType: string): Promise<any>;
8
8
  getSharedUserByService(resourceType: string, resourceId: string): Promise<any>;
9
9
  }
@@ -40,13 +40,13 @@ class ResourcePermissionService extends serviceSDK_1.Service {
40
40
  }
41
41
  });
42
42
  }
43
- removeShareParty(resourceId, sharePartyId) {
43
+ removeShareParty(resourceId, sharePartyId, resourceType) {
44
44
  return __awaiter(this, void 0, void 0, function* () {
45
45
  const mutation = mutations_1.REMOVE_SHARE_PARTY;
46
46
  const variables = {
47
47
  partnerId: this.orgId,
48
48
  orgId: this.orgId,
49
- resourceType: "Service",
49
+ resourceType,
50
50
  resourceId,
51
51
  sharePartyId,
52
52
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longvansoftware/service-js-client",
3
- "version": "1.6.1",
3
+ "version": "1.6.2",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "files": [