@or-sdk/store 0.21.1-pipline1.4 → 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/Store.js CHANGED
@@ -58,11 +58,12 @@ var Store = (function (_super) {
58
58
  __extends(Store, _super);
59
59
  function Store(params) {
60
60
  var _this = this;
61
- var token = params.token, discoveryUrl = params.discoveryUrl, packageType = params.packageType;
61
+ var token = params.token, discoveryUrl = params.discoveryUrl, packageType = params.packageType, storeUrl = params.storeUrl;
62
62
  _this = _super.call(this, {
63
63
  discoveryUrl: discoveryUrl,
64
64
  token: token,
65
65
  serviceKey: constants_1.SERVICE_KEY,
66
+ serviceUrl: storeUrl,
66
67
  }) || this;
67
68
  _this.packageType = packageType;
68
69
  return _this;
@@ -1 +1 @@
1
- {"version":3,"file":"Store.js","sourceRoot":"","sources":["../../src/Store.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qCAAoC;AAEpC,yCAA0C;AAQ1C;IAA2B,yBAAI;IAQ7B,eAAY,MAAmB;QAA/B,iBAUC;QATS,IAAA,KAAK,GAAgC,MAAM,MAAtC,EAAE,YAAY,GAAkB,MAAM,aAAxB,EAAE,WAAW,GAAK,MAAM,YAAX,CAAY;QAEpD,QAAA,kBAAM;YACJ,YAAY,cAAA;YACZ,KAAK,OAAA;YACL,UAAU,EAAE,uBAAW;SACxB,CAAC,SAAC;QAEH,KAAI,CAAC,WAAW,GAAG,WAAW,CAAC;;IACjC,CAAC;IAQY,oCAAoB,GAAjC,UAAkC,OAAkB;;;gBAClD,WAAO,IAAI,CAAC,OAAO,CAAC;wBAClB,MAAM,EAAE,MAAM;wBACd,KAAK,EAAE,sBAAoB,IAAI,CAAC,WAAW,YAAO,OAAO,CAAC,EAAE,iBAAY,OAAO,CAAC,OAAS;wBACzF,IAAI,EAAE,OAAO;qBACd,CAAC,EAAC;;;KACJ;IACH,YAAC;AAAD,CAAC,AAjCD,CAA2B,WAAI,GAiC9B;AAjCY,sBAAK"}
1
+ {"version":3,"file":"Store.js","sourceRoot":"","sources":["../../src/Store.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qCAAoC;AAEpC,yCAA0C;AAQ1C;IAA2B,yBAAI;IAQ7B,eAAY,MAAmB;QAA/B,iBAWC;QAVS,IAAA,KAAK,GAA0C,MAAM,MAAhD,EAAE,YAAY,GAA4B,MAAM,aAAlC,EAAE,WAAW,GAAe,MAAM,YAArB,EAAE,QAAQ,GAAK,MAAM,SAAX,CAAY;QAE9D,QAAA,kBAAM;YACJ,YAAY,cAAA;YACZ,KAAK,OAAA;YACL,UAAU,EAAE,uBAAW;YACvB,UAAU,EAAE,QAAQ;SACrB,CAAC,SAAC;QAEH,KAAI,CAAC,WAAW,GAAG,WAAW,CAAC;;IACjC,CAAC;IAQY,oCAAoB,GAAjC,UAAkC,OAAkB;;;gBAClD,WAAO,IAAI,CAAC,OAAO,CAAC;wBAClB,MAAM,EAAE,MAAM;wBACd,KAAK,EAAE,sBAAoB,IAAI,CAAC,WAAW,YAAO,OAAO,CAAC,EAAE,iBAAY,OAAO,CAAC,OAAS;wBACzF,IAAI,EAAE,OAAO;qBACd,CAAC,EAAC;;;KACJ;IACH,YAAC;AAAD,CAAC,AAlCD,CAA2B,WAAI,GAkC9B;AAlCY,sBAAK"}
package/dist/esm/Store.js CHANGED
@@ -11,11 +11,12 @@ import { Base } from '@or-sdk/base';
11
11
  import { SERVICE_KEY } from './constants';
12
12
  export class Store extends Base {
13
13
  constructor(params) {
14
- const { token, discoveryUrl, packageType } = params;
14
+ const { token, discoveryUrl, packageType, storeUrl } = params;
15
15
  super({
16
16
  discoveryUrl,
17
17
  token,
18
18
  serviceKey: SERVICE_KEY,
19
+ serviceUrl: storeUrl,
19
20
  });
20
21
  this.packageType = packageType;
21
22
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Store.js","sourceRoot":"","sources":["../../src/Store.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpC,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAQ1C,MAAM,OAAO,KAAM,SAAQ,IAAI;IAQ7B,YAAY,MAAmB;QAC7B,MAAM,EAAE,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,GAAG,MAAM,CAAC;QAEpD,KAAK,CAAC;YACJ,YAAY;YACZ,KAAK;YACL,UAAU,EAAE,WAAW;SACxB,CAAC,CAAC;QAEH,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;IACjC,CAAC;IAQY,oBAAoB,CAAC,OAAkB;;YAClD,OAAO,IAAI,CAAC,OAAO,CAAC;gBAClB,MAAM,EAAE,MAAM;gBACd,KAAK,EAAE,oBAAoB,IAAI,CAAC,WAAW,OAAO,OAAO,CAAC,EAAE,YAAY,OAAO,CAAC,OAAO,EAAE;gBACzF,IAAI,EAAE,OAAO;aACd,CAAC,CAAC;QACL,CAAC;KAAA;CACF"}
1
+ {"version":3,"file":"Store.js","sourceRoot":"","sources":["../../src/Store.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpC,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAQ1C,MAAM,OAAO,KAAM,SAAQ,IAAI;IAQ7B,YAAY,MAAmB;QAC7B,MAAM,EAAE,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;QAE9D,KAAK,CAAC;YACJ,YAAY;YACZ,KAAK;YACL,UAAU,EAAE,WAAW;YACvB,UAAU,EAAE,QAAQ;SACrB,CAAC,CAAC;QAEH,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;IACjC,CAAC;IAQY,oBAAoB,CAAC,OAAkB;;YAClD,OAAO,IAAI,CAAC,OAAO,CAAC;gBAClB,MAAM,EAAE,MAAM;gBACd,KAAK,EAAE,oBAAoB,IAAI,CAAC,WAAW,OAAO,OAAO,CAAC,EAAE,YAAY,OAAO,CAAC,OAAO,EAAE;gBACzF,IAAI,EAAE,OAAO;aACd,CAAC,CAAC;QACL,CAAC;KAAA;CACF"}
@@ -1,7 +1,8 @@
1
1
  import { Token } from '@or-sdk/base';
2
2
  export declare type StoreConfig = {
3
3
  token: Token;
4
- discoveryUrl: string;
4
+ discoveryUrl?: string;
5
+ storeUrl?: string;
5
6
  packageType: string;
6
7
  };
7
8
  export declare type GetParams = {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.21.1-pipline1.4",
2
+ "version": "0.21.1",
3
3
  "name": "@or-sdk/store",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
@@ -23,7 +23,7 @@
23
23
  "access": "public"
24
24
  },
25
25
  "dependencies": {
26
- "@or-sdk/base": "^0.21.1-pipline1.4"
26
+ "@or-sdk/base": "^0.21.1"
27
27
  },
28
- "gitHead": "83436e0f71f1c9aff3cf10c10836439049e409d6"
28
+ "gitHead": "1544180780673ca5c934deccbd6132a62c1204d1"
29
29
  }
package/src/Store.ts CHANGED
@@ -17,12 +17,13 @@ export class Store extends Base {
17
17
  * ```
18
18
  */
19
19
  constructor(params: StoreConfig) {
20
- const { token, discoveryUrl, packageType } = params;
20
+ const { token, discoveryUrl, packageType, storeUrl } = params;
21
21
 
22
22
  super({
23
23
  discoveryUrl,
24
24
  token,
25
25
  serviceKey: SERVICE_KEY,
26
+ serviceUrl: storeUrl,
26
27
  });
27
28
 
28
29
  this.packageType = packageType;
package/src/types.ts CHANGED
@@ -5,7 +5,16 @@ export type StoreConfig = {
5
5
  * token
6
6
  */
7
7
  token: Token;
8
- discoveryUrl: string;
8
+
9
+ /**
10
+ * Url of OneReach service discovery api
11
+ */
12
+ discoveryUrl?: string;
13
+
14
+ /**
15
+ * Url of OneReach Store api
16
+ */
17
+ storeUrl?: string;
9
18
  packageType: string;
10
19
  };
11
20