Skip to content

Commit c8f033f

Browse files
authored
Merge pull request #12 from DevoInc/feature/MAR-719_ServiceOpsUrl
Feature/mar 719 service ops url
2 parents 4604e6e + fe9a2ea commit c8f033f

8 files changed

Lines changed: 71 additions & 21 deletions

File tree

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v16.13.2

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Devo App Developer Kit
22

3+
## v1.3.3
4+
5+
Added service operations api url in UserCredentials type.
6+
7+
Remove marketplaceBundle field from UserCredentials type.
8+
9+
Better typing for UserCredentials type. Now it will
10+
311
## v1.3.2
412

513
fix: Remove the listener related to the unmount of the dApp so that past executions are not queued.

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@devoinc/app-developer-kit",
3-
"version": "1.3.2",
3+
"version": "1.3.3",
44
"description": "Devo Web Browser Applications Development Kit",
55
"main": "index.js",
66
"module": "index.esm.js",

src/devoApp/__tests__/DevoApp.tests.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ const mockedUserInfo: UserInfo = {
4343
apiKey: 'mock-jwt-api-key',
4444
jwtUserId: 'mock-jwt-user-id',
4545
},
46-
marketplaceBundle: 'mock-marketplace-bundle',
4746
marketplaceURI: 'mock-marketplace-uri',
4847
activeboardsURI: 'mock-activeboards-uri',
48+
serviceopsURI: 'mock-serviceops-uri',
4949
serrea: 'mock-serrea',
5050
standAloneToken: 'mock-stand-alone-token',
5151
},

src/devoApp/__tests__/DevoAppBase.tests.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ const mockedUserInfo: UserInfo = {
5959
apiKey: 'mock-jwt-api-key',
6060
jwtUserId: 'mock-jwt-user-id',
6161
},
62-
marketplaceBundle: 'mock-marketplace-bundle',
62+
serviceopsURI: 'mock-serviceops-uri',
6363
marketplaceURI: 'mock-marketplace-uri',
6464
activeboardsURI: 'mock-activeboards-uri',
6565
serrea: 'mock-serrea',

src/helpers/__mocks__/WebCoreIntegration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export const mockedWebCoreIntegrationUserInfo: UserInfo = {
2525
apiKey: 'mock-jwt-api-key',
2626
jwtUserId: 'mock-jwt-user-id',
2727
},
28-
marketplaceBundle: 'mock-marketplace-bundle',
28+
serviceopsURI: 'mock-serviceops-uri',
2929
marketplaceURI: 'mock-marketplace-uri',
3030
activeboardsURI: 'mock-activeboards-uri',
3131
serrea: 'mock-serrea',

src/types/UserCredentials.ts

Lines changed: 56 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,66 @@
33
*
44
* @public
55
*/
6-
export type UserCredentials = {
7-
readonly alertsURI: string;
8-
readonly apiKey: string;
9-
readonly apiSecret: string;
10-
readonly enigmaURI: string;
11-
readonly investigationsURI: string;
12-
readonly jwtSessionCredentials: {
6+
export interface UserCredentials extends Readonly<Record<string, any>> {
7+
// Credentials for the current user
8+
9+
/**
10+
* Tapu token
11+
*/
12+
standAloneToken: string;
13+
14+
/**
15+
* Devo api key
16+
*/
17+
apiKey: string;
18+
19+
/**
20+
* Devo api secret
21+
*/
22+
apiSecret: string;
23+
24+
/**
25+
* JWT Session credentials
26+
*/
27+
jwtSessionCredentials: {
1328
readonly apiKey: string;
1429
readonly jwtUserId: string;
1530
};
16-
readonly marketplaceBundle: string;
17-
readonly marketplaceURI: string;
18-
readonly activeboardsURI: string;
31+
32+
// API urls
33+
1934
/**
20-
* Serrea url
35+
* Alerts API url
2136
*/
22-
readonly serrea: string;
37+
alertsURI: string;
38+
2339
/**
24-
* Tapu token
40+
* Enigma API url
41+
*/
42+
enigmaURI: string;
43+
44+
/**
45+
* Investigations API url
46+
*/
47+
investigationsURI: string;
48+
49+
/**
50+
* Marketplace API url
51+
*/
52+
marketplaceURI: string;
53+
54+
/**
55+
* Activeboards API url
56+
*/
57+
activeboardsURI: string;
58+
59+
/**
60+
* Service operations API url
61+
*/
62+
serviceopsURI: string;
63+
64+
/**
65+
* Serrea API url
2566
*/
26-
readonly standAloneToken: string;
27-
};
67+
serrea: string;
68+
}

0 commit comments

Comments
 (0)