Skip to content

Commit

Permalink
Merge pull request #96 from alkem-io/develop
Browse files Browse the repository at this point in the history
Release: Updated Alkemio Client dependencies
  • Loading branch information
valentinyanakiev authored Mar 1, 2022
2 parents 16aa1dd + 7a5708d commit 6565f72
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 32 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ Note: replace applicantionCreatorID, applicantID, and hub + challenge + opportun

```gql
query {
ecoverses {
hubs {
id
displayName
challenges {
Expand Down
6 changes: 3 additions & 3 deletions notifications.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ recipients:
type: OPPORTUNITY_ADMIN
resource_id: <opportunityID>
- rule:
type: ECOVERSE_ADMIN
type: HUB_ADMIN
resource_id: <hubID>
- rule:
type: GLOBAL_ADMIN_COMMUNITY
Expand Down Expand Up @@ -141,7 +141,7 @@ recipients:
type: OPPORTUNITY_MEMBER
resource_id: <opportunityID>
- rule:
type: ECOVERSE_MEMBER
type: HUB_MEMBER
resource_id: <hubID>
communication_discussion_created:
- name: admin
Expand All @@ -161,5 +161,5 @@ recipients:
type: OPPORTUNITY_MEMBER
resource_id: <opportunityID>
- rule:
type: ECOVERSE_MEMBER
type: HUB_MEMBER
resource_id: <hubID>
41 changes: 22 additions & 19 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "alkemio-notifications",
"version": "0.4.6",
"version": "0.5.0",
"description": "Alkemio notifications service",
"author": "Alkemio Foundation",
"private": false,
Expand Down Expand Up @@ -34,7 +34,7 @@
"validate-connection": "ts-node src/utils/validate-connection.ts"
},
"dependencies": {
"@alkemio/client-lib": "^0.11.2",
"@alkemio/client-lib": "^0.12.0",
"@nestjs/axios": "^0.0.1",
"@nestjs/common": "^8.0.5",
"@nestjs/config": "^1.0.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ describe.skip('ruleToCredentialCriteria', () => {
// ruleToCredentialCriteria(
// {
// rule: {
// type: AuthorizationCredential.EcoverseAdmin,
// type: AuthorizationCredential.HubAdmin,
// resource_id: '<>',
// },
// },
// payload
// )
// ).toEqual({
// type: AuthorizationCredential.EcoverseAdmin,
// type: AuthorizationCredential.HubAdmin,
// resource_id: '<>',
// });
});
Expand Down Expand Up @@ -117,7 +117,7 @@ describe.skip('ruleToCredentialCriteria', () => {
// },
// } as ApplicationCreatedEventPayload;
// expect(
// getResourceId(AuthorizationCredential.EcoverseAdmin, '<>', payload)
// getResourceId(AuthorizationCredential.HubAdmin, '<>', payload)
// ).toEqual('hub');
// expect(
// getResourceId(AuthorizationCredential.ChallengeAdmin, '<>', payload)
Expand All @@ -141,7 +141,7 @@ describe.skip('ruleToCredentialCriteria', () => {
// },
// } as ApplicationCreatedEventPayload;
// expect(
// getResourceId(AuthorizationCredential.EcoverseAdmin, 'hub', payload)
// getResourceId(AuthorizationCredential.HubAdmin, 'hub', payload)
// ).toEqual('hub');
// });
// it('returns null if id does not exist on non fill pattern', () => {
Expand All @@ -158,7 +158,7 @@ describe.skip('ruleToCredentialCriteria', () => {
// } as ApplicationCreatedEventPayload;
// expect(
// getResourceId(
// AuthorizationCredential.EcoverseAdmin,
// AuthorizationCredential.HubAdmin,
// 'template-id',
// payload
// )
Expand All @@ -171,7 +171,7 @@ describe.skip('ruleToCredentialCriteria', () => {
// it('throws on missing hub id', () => {
// const payload = {} as ApplicationCreatedEventPayload;
// expect(() =>
// getResourceId(AuthorizationCredential.EcoverseAdmin, payload)
// getResourceId(AuthorizationCredential.HubAdmin, payload)
// ).toThrowError('"id" field of "hub" not found in the payload');
// });
// it('return undefined on global admin', () => {
Expand Down Expand Up @@ -216,7 +216,7 @@ describe.skip('ruleToCredentialCriteria', () => {
// },
// } as ApplicationCreatedEventPayload;
// expect(
// getResourceId(AuthorizationCredential.EcoverseAdmin, payload)
// getResourceId(AuthorizationCredential.HubAdmin, payload)
// ).toEqual('hub-id');
// });
// it('challenge', () => {
Expand Down

0 comments on commit 6565f72

Please sign in to comment.