@or-sdk/cards 0.21.1-addserviceurl.0 → 0.21.1

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.
package/dist/cjs/Cards.js CHANGED
@@ -53,18 +53,18 @@ var constants_1 = require("./constants");
53
53
  var tags_1 = require("@or-sdk/tags");
54
54
  var Cards = (function () {
55
55
  function Cards(params) {
56
- var token = params.token, discoveryUrl = params.discoveryUrl, accountId = params.accountId, serviceUrl = params.serviceUrl;
56
+ var token = params.token, discoveryUrl = params.discoveryUrl, accountId = params.accountId, dataHubUrl = params.dataHubUrl;
57
57
  this.dataHub = new data_hub_1.DataHub({
58
58
  token: token,
59
59
  discoveryUrl: discoveryUrl,
60
60
  accountId: accountId,
61
- serviceUrl: serviceUrl,
61
+ dataHubUrl: dataHubUrl,
62
62
  });
63
63
  this.tags = new tags_1.Tags({
64
64
  token: token,
65
65
  discoveryUrl: discoveryUrl,
66
66
  accountId: accountId,
67
- serviceUrl: serviceUrl,
67
+ dataHubUrl: dataHubUrl,
68
68
  });
69
69
  }
70
70
  Cards.prototype.init = function () {
package/dist/esm/Cards.js CHANGED
@@ -12,18 +12,18 @@ import { ENTITY_NAME, QUERY_LIST, QUERY_GET, QUERY_CREATE, QUERY_UPDATE, QUERY_D
12
12
  import { Tags, filterTagIds, addTagsIds, removeTagIds } from '@or-sdk/tags';
13
13
  export class Cards {
14
14
  constructor(params) {
15
- const { token, discoveryUrl, accountId, serviceUrl } = params;
15
+ const { token, discoveryUrl, accountId, dataHubUrl } = params;
16
16
  this.dataHub = new DataHub({
17
17
  token,
18
18
  discoveryUrl,
19
19
  accountId,
20
- serviceUrl,
20
+ dataHubUrl,
21
21
  });
22
22
  this.tags = new Tags({
23
23
  token,
24
24
  discoveryUrl,
25
25
  accountId,
26
- serviceUrl,
26
+ dataHubUrl,
27
27
  });
28
28
  }
29
29
  init() {
@@ -3,7 +3,7 @@ export declare type CardsConfig = {
3
3
  token: Token;
4
4
  discoveryUrl?: string;
5
5
  accountId?: string;
6
- serviceUrl?: string;
6
+ dataHubUrl?: string;
7
7
  };
8
8
  export declare type Card = {
9
9
  id?: string;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.21.1-addserviceurl.0",
2
+ "version": "0.21.1",
3
3
  "name": "@or-sdk/cards",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
@@ -23,9 +23,9 @@
23
23
  "access": "public"
24
24
  },
25
25
  "dependencies": {
26
- "@or-sdk/base": "^0.21.1-addserviceurl.0",
27
- "@or-sdk/data-hub": "^0.21.1-addserviceurl.0",
28
- "@or-sdk/tags": "^0.21.1-addserviceurl.0"
26
+ "@or-sdk/base": "^0.21.1",
27
+ "@or-sdk/data-hub": "^0.21.1",
28
+ "@or-sdk/tags": "^0.21.1"
29
29
  },
30
- "gitHead": "882f4cd04d6e3e23d76008024baf88ad735defb2"
30
+ "gitHead": "1544180780673ca5c934deccbd6132a62c1204d1"
31
31
  }
package/src/Cards.ts CHANGED
@@ -33,19 +33,19 @@ export class Cards implements Taggable<Card> {
33
33
  * ```
34
34
  */
35
35
  constructor(params: CardsConfig) {
36
- const { token, discoveryUrl, accountId, serviceUrl } = params;
36
+ const { token, discoveryUrl, accountId, dataHubUrl } = params;
37
37
 
38
38
  this.dataHub = new DataHub({
39
39
  token,
40
40
  discoveryUrl,
41
41
  accountId,
42
- serviceUrl,
42
+ dataHubUrl,
43
43
  });
44
44
  this.tags = new Tags({
45
45
  token,
46
46
  discoveryUrl,
47
47
  accountId,
48
- serviceUrl,
48
+ dataHubUrl,
49
49
  });
50
50
 
51
51
  }
package/src/types.ts CHANGED
@@ -17,9 +17,9 @@ export type CardsConfig = {
17
17
  accountId?: string;
18
18
 
19
19
  /**
20
- * Direct service url, can be used to avoid discovery api call
20
+ * Url of OneReach DataHub api
21
21
  */
22
- serviceUrl?: string;
22
+ dataHubUrl?: string;
23
23
  };
24
24
 
25
25
  export type Card = {