@or-sdk/store 0.24.3 → 0.24.4-beta.616.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/dist/cjs/Store.js CHANGED
@@ -79,6 +79,17 @@ var Store = (function (_super) {
79
79
  });
80
80
  });
81
81
  };
82
+ Store.prototype.getDownloadArchiveCredentials = function (payload, customHeaders) {
83
+ return __awaiter(this, void 0, void 0, function () {
84
+ return __generator(this, function (_a) {
85
+ return [2, this.callApi({
86
+ method: 'GET',
87
+ route: "/api/v1/packages/".concat(this.packageType, "/id/").concat(payload.id, "/version/").concat(payload.version, "/archive"),
88
+ customHeaders: customHeaders,
89
+ })];
90
+ });
91
+ });
92
+ };
82
93
  return Store;
83
94
  }(base_1.Base));
84
95
  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,IAAI,CAAC,WAAW,iBAAO,OAAO,CAAC,EAAE,sBAAY,OAAO,CAAC,OAAO,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package/dist/esm/Store.js CHANGED
@@ -29,5 +29,14 @@ export class Store extends Base {
29
29
  });
30
30
  });
31
31
  }
32
+ getDownloadArchiveCredentials(payload, 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
+ });
39
+ });
40
+ }
32
41
  }
33
42
  //# sourceMappingURL=Store.js.map
@@ -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;IAG7B,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
+ {"version":3,"file":"Store.js","sourceRoot":"","sources":["../../src/Store.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,IAAI,EAAiB,MAAM,cAAc,CAAC;AAEnD,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,MAAM,OAAO,KAAM,SAAQ,IAAI;IAG7B,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;IASY,6BAA6B,CAAC,OAAkB,EAAE,aAA4B;;YACzF,OAAO,IAAI,CAAC,OAAO,CAAC;gBAClB,MAAM,EAAE,KAAK;gBACb,KAAK,EAAE,oBAAoB,IAAI,CAAC,WAAW,OAAO,OAAO,CAAC,EAAE,YAAY,OAAO,CAAC,OAAO,UAAU;gBACjG,aAAa;aACd,CAAC,CAAC;QACL,CAAC;KAAA;CAEF"}
@@ -1,8 +1,9 @@
1
- import { Base } from '@or-sdk/base';
1
+ import { Base, CustomHeaders } from '@or-sdk/base';
2
2
  import { StoreConfig, GetParams, UploadCredentials } 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, customHeaders: CustomHeaders): Promise<string>;
7
8
  }
8
9
  //# 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,aAAa,EAAE,MAAM,cAAc,CAAC;AACnD,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;IAepE,6BAA6B,CAAC,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,aAAa,GAAG,OAAO,CAAC,MAAM,CAAC;CAQ9G"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@or-sdk/store",
3
- "version": "0.24.3",
3
+ "version": "0.24.4-beta.616.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.26.5"
20
+ "@or-sdk/base": "^0.26.6-beta.616.0"
21
21
  },
22
22
  "devDependencies": {
23
23
  "concurrently": "^6.4.0",
@@ -25,6 +25,5 @@
25
25
  },
26
26
  "publishConfig": {
27
27
  "access": "public"
28
- },
29
- "gitHead": "62be75910db5696b35b6546b4164c8bcc10fe421"
28
+ }
30
29
  }
package/src/Store.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Base } from '@or-sdk/base';
1
+ import { Base, CustomHeaders } from '@or-sdk/base';
2
2
  import { StoreConfig, GetParams, UploadCredentials } from './types';
3
3
  import { SERVICE_KEY } from './constants';
4
4
 
@@ -31,4 +31,20 @@ 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' });
40
+ * ```
41
+ */
42
+ public async getDownloadArchiveCredentials(payload: GetParams, customHeaders: CustomHeaders): Promise<string> {
43
+ return this.callApi({
44
+ method: 'GET',
45
+ route: `/api/v1/packages/${this.packageType}/id/${payload.id}/version/${payload.version}/archive`,
46
+ customHeaders,
47
+ });
48
+ }
49
+
34
50
  }