diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..3120126 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +v16.13.2 \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 319bc30..e699e52 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Devo App Developer Kit +## v1.3.3 + +Added service operations api url in UserCredentials type. + +Remove marketplaceBundle field from UserCredentials type. + +Better typing for UserCredentials type. Now it will + ## v1.3.2 fix: Remove the listener related to the unmount of the dApp so that past executions are not queued. diff --git a/package-lock.json b/package-lock.json index f3dad83..39545bc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@devoinc/app-developer-kit", - "version": "1.3.2", + "version": "1.3.3", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@devoinc/app-developer-kit", - "version": "1.3.2", + "version": "1.3.3", "license": "ISC", "dependencies": { "@devoinc/alerts-api-client": "^2.0.3", diff --git a/package.json b/package.json index c982c65..0a6840f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@devoinc/app-developer-kit", - "version": "1.3.2", + "version": "1.3.3", "description": "Devo Web Browser Applications Development Kit", "main": "index.js", "module": "index.esm.js", diff --git a/src/devoApp/__tests__/DevoApp.tests.ts b/src/devoApp/__tests__/DevoApp.tests.ts index 5c0574b..c787fa6 100644 --- a/src/devoApp/__tests__/DevoApp.tests.ts +++ b/src/devoApp/__tests__/DevoApp.tests.ts @@ -43,9 +43,9 @@ const mockedUserInfo: UserInfo = { apiKey: 'mock-jwt-api-key', jwtUserId: 'mock-jwt-user-id', }, - marketplaceBundle: 'mock-marketplace-bundle', marketplaceURI: 'mock-marketplace-uri', activeboardsURI: 'mock-activeboards-uri', + serviceopsURI: 'mock-serviceops-uri', serrea: 'mock-serrea', standAloneToken: 'mock-stand-alone-token', }, diff --git a/src/devoApp/__tests__/DevoAppBase.tests.ts b/src/devoApp/__tests__/DevoAppBase.tests.ts index bff8726..c7dc6f5 100644 --- a/src/devoApp/__tests__/DevoAppBase.tests.ts +++ b/src/devoApp/__tests__/DevoAppBase.tests.ts @@ -59,7 +59,7 @@ const mockedUserInfo: UserInfo = { apiKey: 'mock-jwt-api-key', jwtUserId: 'mock-jwt-user-id', }, - marketplaceBundle: 'mock-marketplace-bundle', + serviceopsURI: 'mock-serviceops-uri', marketplaceURI: 'mock-marketplace-uri', activeboardsURI: 'mock-activeboards-uri', serrea: 'mock-serrea', diff --git a/src/helpers/__mocks__/WebCoreIntegration.ts b/src/helpers/__mocks__/WebCoreIntegration.ts index 1928af5..e7f5cba 100644 --- a/src/helpers/__mocks__/WebCoreIntegration.ts +++ b/src/helpers/__mocks__/WebCoreIntegration.ts @@ -25,7 +25,7 @@ export const mockedWebCoreIntegrationUserInfo: UserInfo = { apiKey: 'mock-jwt-api-key', jwtUserId: 'mock-jwt-user-id', }, - marketplaceBundle: 'mock-marketplace-bundle', + serviceopsURI: 'mock-serviceops-uri', marketplaceURI: 'mock-marketplace-uri', activeboardsURI: 'mock-activeboards-uri', serrea: 'mock-serrea', diff --git a/src/types/UserCredentials.ts b/src/types/UserCredentials.ts index 7b5f781..3e8e3c4 100644 --- a/src/types/UserCredentials.ts +++ b/src/types/UserCredentials.ts @@ -3,25 +3,66 @@ * * @public */ -export type UserCredentials = { - readonly alertsURI: string; - readonly apiKey: string; - readonly apiSecret: string; - readonly enigmaURI: string; - readonly investigationsURI: string; - readonly jwtSessionCredentials: { +export interface UserCredentials extends Readonly> { + // Credentials for the current user + + /** + * Tapu token + */ + standAloneToken: string; + + /** + * Devo api key + */ + apiKey: string; + + /** + * Devo api secret + */ + apiSecret: string; + + /** + * JWT Session credentials + */ + jwtSessionCredentials: { readonly apiKey: string; readonly jwtUserId: string; }; - readonly marketplaceBundle: string; - readonly marketplaceURI: string; - readonly activeboardsURI: string; + + // API urls + /** - * Serrea url + * Alerts API url */ - readonly serrea: string; + alertsURI: string; + /** - * Tapu token + * Enigma API url + */ + enigmaURI: string; + + /** + * Investigations API url + */ + investigationsURI: string; + + /** + * Marketplace API url + */ + marketplaceURI: string; + + /** + * Activeboards API url + */ + activeboardsURI: string; + + /** + * Service operations API url + */ + serviceopsURI: string; + + /** + * Serrea API url */ - readonly standAloneToken: string; -}; + serrea: string; +}