@longvansoftware/service-js-client 1.19.6 → 1.19.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.
@@ -34,9 +34,11 @@ exports.REMOVE_SHARE_PARTY = (0, graphql_tag_1.gql) `
34
34
  $resourceType: String!
35
35
  $resourceId: String!
36
36
  $sharePartyId: String!
37
+ $ownerId: String!
37
38
  ) {
38
39
  removeShareParty(
39
40
  partnerId: $partnerId
41
+ ownerId: $ownerId
40
42
  orgId: $orgId
41
43
  resourceType: $resourceType
42
44
  resourceId: $resourceId
@@ -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, resourceType: string): Promise<any>;
7
+ removeShareParty(resourceId: string, sharePartyId: string, resourceType: string, userLoginId: string): Promise<any>;
8
8
  getSharedUserByService(resourceType: string, resourceId: string): Promise<any>;
9
9
  }
@@ -40,7 +40,7 @@ class ResourcePermissionService extends serviceSDK_1.Service {
40
40
  }
41
41
  });
42
42
  }
43
- removeShareParty(resourceId, sharePartyId, resourceType) {
43
+ removeShareParty(resourceId, sharePartyId, resourceType, userLoginId) {
44
44
  return __awaiter(this, void 0, void 0, function* () {
45
45
  const mutation = mutations_1.REMOVE_SHARE_PARTY;
46
46
  const variables = {
@@ -49,6 +49,7 @@ class ResourcePermissionService extends serviceSDK_1.Service {
49
49
  resourceType,
50
50
  resourceId,
51
51
  sharePartyId,
52
+ ownerId: userLoginId
52
53
  };
53
54
  try {
54
55
  const response = yield this.graphqlMutationV2(mutation, variables);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longvansoftware/service-js-client",
3
- "version": "1.19.6",
3
+ "version": "1.19.7",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "files": [