Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v16.13.2
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/devoApp/__tests__/DevoApp.tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
},
Expand Down
2 changes: 1 addition & 1 deletion src/devoApp/__tests__/DevoAppBase.tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/__mocks__/WebCoreIntegration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
71 changes: 56 additions & 15 deletions src/types/UserCredentials.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<Record<string, any>> {
// 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;
}