@or-sdk/store 0.25.0-beta.598.0 → 0.25.0

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/CHANGELOG.md CHANGED
@@ -3,6 +3,32 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.25.0](https://gitlab.com/onereach/platform/or-sdk-next/compare/@or-sdk/store@0.24.5...@or-sdk/store@0.25.0) (2022-09-13)
7
+
8
+
9
+ ### Features
10
+
11
+ * **store:** add new getMetaByVersion method ([e7661a3](https://gitlab.com/onereach/platform/or-sdk-next/commit/e7661a3cd99317bd1bc755f1e86a5a60cd23ca26))
12
+
13
+
14
+
15
+ ### [0.24.5](https://gitlab.com/onereach/platform/or-sdk-next/compare/@or-sdk/store@0.24.4...@or-sdk/store@0.24.5) (2022-09-09)
16
+
17
+ **Note:** Version bump only for package @or-sdk/store
18
+
19
+
20
+
21
+
22
+
23
+ ### [0.24.4](https://gitlab.com/onereach/platform/or-sdk-next/compare/@or-sdk/store@0.24.3...@or-sdk/store@0.24.4) (2022-09-09)
24
+
25
+
26
+ ### Bug Fixes
27
+
28
+ * **store:** added getDownloadArchiveCredentials method ([afec599](https://gitlab.com/onereach/platform/or-sdk-next/commit/afec599e8059dcdc66dd6c33abe330d6d01a0761))
29
+
30
+
31
+
6
32
  ### [0.24.3](https://gitlab.com/onereach/platform/or-sdk-next/compare/@or-sdk/store@0.24.2...@or-sdk/store@0.24.3) (2022-08-29)
7
33
 
8
34
  **Note:** Version bump only for package @or-sdk/store
package/dist/cjs/Store.js CHANGED
@@ -79,6 +79,35 @@ var Store = (function (_super) {
79
79
  });
80
80
  });
81
81
  };
82
+ Store.prototype.getDownloadArchiveCredentials = function (payload, _a) {
83
+ var signal = _a.signal, customHeaders = _a.customHeaders;
84
+ return __awaiter(this, void 0, void 0, function () {
85
+ return __generator(this, function (_b) {
86
+ return [2, this.callApi({
87
+ method: 'GET',
88
+ route: "/api/v1/packages/".concat(this.packageType, "/id/").concat(payload.id, "/version/").concat(payload.version, "/archive"),
89
+ customHeaders: customHeaders,
90
+ signal: signal,
91
+ })];
92
+ });
93
+ });
94
+ };
95
+ Store.prototype.getMetaByVersion = function (_a, _b) {
96
+ var id = _a.id, version = _a.version, isSandbox = _a.isSandbox;
97
+ var signal = _b.signal, customHeaders = _b.customHeaders;
98
+ return __awaiter(this, void 0, void 0, function () {
99
+ var index;
100
+ return __generator(this, function (_c) {
101
+ index = isSandbox ? 'sandbox' : 'packages';
102
+ return [2, this.callApi({
103
+ method: 'GET',
104
+ route: "/api/v1/".concat(index, "/").concat(this.packageType, "/id/").concat(id, "/version/").concat(version),
105
+ customHeaders: customHeaders,
106
+ signal: signal,
107
+ })];
108
+ });
109
+ });
110
+ };
82
111
  return Store;
83
112
  }(base_1.Base));
84
113
  exports.Store = Store;
@@ -1 +1 @@
1
- {"version":3,"file":"Store.js","sourceRoot":"","sources":["../../src/Store.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qCAAoC;AAEpC,yCAA0C;AAE1C;IAA2B,yBAAI;IAG7B,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;gBAE9D,kBAAM;YACJ,YAAY,cAAA;YACZ,KAAK,OAAA;YACL,UAAU,EAAE,uBAAW;YACvB,UAAU,EAAE,QAAQ;SACrB,CAAC;QAEF,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,2BAAoB,I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AAa,eAAA;wBACb,MAAM,QAAA;qBACP,CAAC,EAAC;;;KACJ;IASK,gCAAgB,GAAtB,UAAuB,EAAqC,EAC1D,EAAyC;YADlB,EAAE,QAAA,EAAE,OAAO,aAAA,EAAE,SAAS,eAAA;YAC3C,MAAM,YAAA,EAAE,aAAa,mBAAA;;;;gBACjB,KAAK,GAAG,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC;gBAEjD,WAAO,IAAI,CAAC,OAAO,CAAC;wBAClB,MAAM,EAAE,KAAK;wBACb,KAAK,EAAE,kBAAW,KAAK,cAAI,IAAI,CAAC,WAAW,iBAAO,EAAE,sBAAY,OAAO,CAAE;wBACzE,aAAa,eAAA;wBACb,MAAM,QAAA;qBACP,CAAC,EAAC;;;KACJ;IACH,YAAC;AAAD,CAAC,AAjED,CAA2B,WAAI,GAiE9B;AAjEY,sBAAK"}
package/dist/esm/Store.js CHANGED
@@ -1,7 +1,15 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
1
10
  import { Base } from '@or-sdk/base';
2
11
  import { SERVICE_KEY } from './constants';
3
12
  export class Store extends Base {
4
- packageType;
5
13
  constructor(params) {
6
14
  const { token, discoveryUrl, packageType, storeUrl } = params;
7
15
  super({
@@ -12,11 +20,34 @@ export class Store extends Base {
12
20
  });
13
21
  this.packageType = packageType;
14
22
  }
15
- async getUploadCredentials(payload) {
16
- return this.callApi({
17
- method: 'POST',
18
- route: `/api/v1/packages/${this.packageType}/id/${payload.id}/version/${payload.version}`,
19
- data: payload,
23
+ getUploadCredentials(payload) {
24
+ return __awaiter(this, void 0, void 0, function* () {
25
+ return this.callApi({
26
+ method: 'POST',
27
+ route: `/api/v1/packages/${this.packageType}/id/${payload.id}/version/${payload.version}`,
28
+ data: payload,
29
+ });
30
+ });
31
+ }
32
+ getDownloadArchiveCredentials(payload, { signal, customHeaders }) {
33
+ return __awaiter(this, void 0, void 0, function* () {
34
+ return this.callApi({
35
+ method: 'GET',
36
+ route: `/api/v1/packages/${this.packageType}/id/${payload.id}/version/${payload.version}/archive`,
37
+ customHeaders,
38
+ signal,
39
+ });
40
+ });
41
+ }
42
+ getMetaByVersion({ id, version, isSandbox }, { signal, customHeaders }) {
43
+ return __awaiter(this, void 0, void 0, function* () {
44
+ const index = isSandbox ? 'sandbox' : 'packages';
45
+ return this.callApi({
46
+ method: 'GET',
47
+ route: `/api/v1/${index}/${this.packageType}/id/${id}/version/${version}`,
48
+ customHeaders,
49
+ signal,
50
+ });
20
51
  });
21
52
  }
22
53
  }
@@ -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;AAE1C,MAAM,OAAO,KAAM,SAAQ,IAAI;IACZ,WAAW,CAAS;IAErC,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;IAQM,KAAK,CAAC,oBAAoB,CAAC,OAAkB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC;YAClB,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EAAE,SAAS,EAAa,EAC1D,EAAE,MAAM,EAAE,aAAa,EAAkB;;YACzC,MAAM,KAAK,GAAG,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC;YAEjD,OAAO,IAAI,CAAC,OAAO,CAAC;gBAClB,MAAM,EAAE,KAAK;gBACb,KAAK,EAAE,WAAW,KAAK,IAAI,IAAI,CAAC,WAAW,OAAO,EAAE,YAAY,OAAO,EAAE;gBACzE,aAAa;gBACb,MAAM;aACP,CAAC,CAAC;QACL,CAAC;KAAA;CACF"}
@@ -1,8 +1,10 @@
1
1
  import { Base } from '@or-sdk/base';
2
- import { StoreConfig, GetParams, UploadCredentials } from './types';
2
+ import { StoreConfig, GetParams, UploadCredentials, OptionalParams } from './types';
3
3
  export declare class Store extends Base {
4
4
  private readonly packageType;
5
5
  constructor(params: StoreConfig);
6
6
  getUploadCredentials(payload: GetParams): Promise<UploadCredentials>;
7
+ getDownloadArchiveCredentials(payload: GetParams, { signal, customHeaders }: OptionalParams): Promise<string>;
8
+ getMetaByVersion({ id, version, isSandbox }: GetParams, { signal, customHeaders }: OptionalParams): Promise<unknown>;
7
9
  }
8
10
  //# sourceMappingURL=Store.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Store.d.ts","sourceRoot":"","sources":["../../src/Store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAGpE,qBAAa,KAAM,SAAQ,IAAI;IAC7B,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAS;gBAEzB,MAAM,EAAE,WAAW;IAmBlB,oBAAoB,CAAC,OAAO,EAAE,SAAS,GAAG,OAAO,CAAC,iBAAiB,CAAC;CAOlF"}
1
+ {"version":3,"file":"Store.d.ts","sourceRoot":"","sources":["../../src/Store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAGpF,qBAAa,KAAM,SAAQ,IAAI;IAC7B,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAS;gBAEzB,MAAM,EAAE,WAAW;IAmBlB,oBAAoB,CAAC,OAAO,EAAE,SAAS,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAepE,6BAA6B,CAAC,OAAO,EAAE,SAAS,EAC3D,EAAE,MAAM,EAAE,aAAa,EAAE,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC;IAgBvD,gBAAgB,CAAC,EAAE,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE,SAAS,EAC1D,EAAE,MAAM,EAAE,aAAa,EAAE,EAAE,cAAc;CAU5C"}
@@ -1,4 +1,4 @@
1
- import { Token } from '@or-sdk/base';
1
+ import { Token, CustomHeaders } from '@or-sdk/base';
2
2
  export declare type StoreConfig = {
3
3
  token: Token;
4
4
  discoveryUrl?: string;
@@ -8,6 +8,11 @@ export declare type StoreConfig = {
8
8
  export declare type GetParams = {
9
9
  id: string;
10
10
  version: string;
11
+ isSandbox?: boolean;
12
+ };
13
+ export declare type OptionalParams = {
14
+ signal: AbortSignal;
15
+ customHeaders: CustomHeaders;
11
16
  };
12
17
  export declare type UploadCredentialsFields = {
13
18
  Policy: string;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAErC,oBAAY,WAAW,GAAG;IAIxB,KAAK,EAAE,KAAK,CAAC;IAKb,YAAY,CAAC,EAAE,MAAM,CAAC;IAKtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,oBAAY,SAAS,GAAG;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,oBAAY,uBAAuB,GAAG;IAMpC,MAAM,EAAE,MAAM,CAAC;IAMf,iBAAiB,EAAE,MAAM,CAAC;IAO1B,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;CACvB,CAAC;AAEF,oBAAY,iBAAiB,GAAG;IAC9B,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,uBAAuB,CAAC;CACjC,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAEpD,oBAAY,WAAW,GAAG;IAIxB,KAAK,EAAE,KAAK,CAAC;IAKb,YAAY,CAAC,EAAE,MAAM,CAAC;IAKtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,oBAAY,SAAS,GAAG;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,oBAAY,cAAc,GAAG;IAC3B,MAAM,EAAE,WAAW,CAAC;IACpB,aAAa,EAAE,aAAa,CAAC;CAC9B,CAAC;AAEF,oBAAY,uBAAuB,GAAG;IAMpC,MAAM,EAAE,MAAM,CAAC;IAMf,iBAAiB,EAAE,MAAM,CAAC;IAO1B,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;CACvB,CAAC;AAEF,oBAAY,iBAAiB,GAAG;IAC9B,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,uBAAuB,CAAC;CACjC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@or-sdk/store",
3
- "version": "0.25.0-beta.598.0",
3
+ "version": "0.25.0",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/types/index.d.ts",
@@ -17,7 +17,7 @@
17
17
  "dev": "pnpm build:watch:esm"
18
18
  },
19
19
  "dependencies": {
20
- "@or-sdk/base": "^0.27.0-beta.598.0"
20
+ "@or-sdk/base": "^0.26.7"
21
21
  },
22
22
  "devDependencies": {
23
23
  "concurrently": "^6.4.0",
@@ -25,5 +25,6 @@
25
25
  },
26
26
  "publishConfig": {
27
27
  "access": "public"
28
- }
28
+ },
29
+ "gitHead": "b7af099772b625a56ed8535699edb93e502c91c7"
29
30
  }
package/src/Store.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Base } from '@or-sdk/base';
2
- import { StoreConfig, GetParams, UploadCredentials } from './types';
2
+ import { StoreConfig, GetParams, UploadCredentials, OptionalParams } from './types';
3
3
  import { SERVICE_KEY } from './constants';
4
4
 
5
5
  export class Store extends Base {
@@ -31,4 +31,40 @@ export class Store extends Base {
31
31
  data: payload,
32
32
  });
33
33
  }
34
+
35
+
36
+ /**
37
+ * Get download package archive url
38
+ * ```typescript
39
+ * const result = await storeApi.getDownloadArchiveCredentials({ id: 'id', version: 'version' }, {customHeaders: {Auth: 'token'}});
40
+ * ```
41
+ */
42
+ public async getDownloadArchiveCredentials(payload: GetParams,
43
+ { signal, customHeaders }: OptionalParams): Promise<string> {
44
+ return this.callApi({
45
+ method: 'GET',
46
+ route: `/api/v1/packages/${this.packageType}/id/${payload.id}/version/${payload.version}/archive`,
47
+ customHeaders,
48
+ signal,
49
+ });
50
+ }
51
+
52
+
53
+ /**
54
+ * Get download package archive url
55
+ * ```typescript
56
+ * const result = await storeApi.getMetaByVersion({ id: 'id', version: 'version', isSandbox: false }, {customHeaders: {Auth: 'token'}});
57
+ * ```
58
+ */
59
+ async getMetaByVersion({ id, version, isSandbox }: GetParams,
60
+ { signal, customHeaders }: OptionalParams) {
61
+ const index = isSandbox ? 'sandbox' : 'packages';
62
+
63
+ return this.callApi({
64
+ method: 'GET',
65
+ route: `/api/v1/${index}/${this.packageType}/id/${id}/version/${version}`,
66
+ customHeaders,
67
+ signal,
68
+ });
69
+ }
34
70
  }
package/src/types.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Token } from '@or-sdk/base';
1
+ import { Token, CustomHeaders } from '@or-sdk/base';
2
2
 
3
3
  export type StoreConfig = {
4
4
  /**
@@ -21,6 +21,12 @@ export type StoreConfig = {
21
21
  export type GetParams = {
22
22
  id: string;
23
23
  version: string;
24
+ isSandbox?: boolean;
25
+ };
26
+
27
+ export type OptionalParams = {
28
+ signal: AbortSignal;
29
+ customHeaders: CustomHeaders;
24
30
  };
25
31
 
26
32
  export type UploadCredentialsFields = {
package/tsconfig.esm.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "outDir": "./dist/esm",
5
5
  "declarationDir": "./dist/types",
6
6
  "module": "ES6",
7
- "target": "es2022",
7
+ "target": "es6",
8
8
  "rootDir": "./src",
9
9
  "declaration": true,
10
10
  "declarationMap": true