dcl-catalyst-client 22.0.1-38601546385.commit-cee8815 → 22.0.1-38602312773.commit-5d9befe

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.
@@ -1,5 +1,5 @@
1
1
  export * from './utils/DeploymentBuilder';
2
- export { DeploymentError, PartialDeploymentNotSupportedError, PartialDeploymentRetryLaterError, PartialDeploymentValidationError } from './utils/errors';
2
+ export { ContentDownloadError, DeploymentError, PartialDeploymentNotSupportedError, PartialDeploymentRetryLaterError, PartialDeploymentValidationError } from './utils/errors';
3
3
  export * from './CatalystClient';
4
4
  export * from './ContentClient';
5
5
  export * from './LambdasClient';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/client/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAA;AACzC,OAAO,EACL,eAAe,EACf,kCAAkC,EAClC,gCAAgC,EAChC,gCAAgC,EACjC,MAAM,gBAAgB,CAAA;AACvB,cAAc,kBAAkB,CAAA;AAChC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,iBAAiB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/client/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAA;AACzC,OAAO,EACL,oBAAoB,EACpB,eAAe,EACf,kCAAkC,EAClC,gCAAgC,EAChC,gCAAgC,EACjC,MAAM,gBAAgB,CAAA;AACvB,cAAc,kBAAkB,CAAA;AAChC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,iBAAiB,CAAA"}
@@ -14,9 +14,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.PartialDeploymentValidationError = exports.PartialDeploymentRetryLaterError = exports.PartialDeploymentNotSupportedError = exports.DeploymentError = void 0;
17
+ exports.PartialDeploymentValidationError = exports.PartialDeploymentRetryLaterError = exports.PartialDeploymentNotSupportedError = exports.DeploymentError = exports.ContentDownloadError = void 0;
18
18
  __exportStar(require("./utils/DeploymentBuilder"), exports);
19
19
  var errors_1 = require("./utils/errors");
20
+ Object.defineProperty(exports, "ContentDownloadError", { enumerable: true, get: function () { return errors_1.ContentDownloadError; } });
20
21
  Object.defineProperty(exports, "DeploymentError", { enumerable: true, get: function () { return errors_1.DeploymentError; } });
21
22
  Object.defineProperty(exports, "PartialDeploymentNotSupportedError", { enumerable: true, get: function () { return errors_1.PartialDeploymentNotSupportedError; } });
22
23
  Object.defineProperty(exports, "PartialDeploymentRetryLaterError", { enumerable: true, get: function () { return errors_1.PartialDeploymentRetryLaterError; } });
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/client/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,4DAAyC;AACzC,yCAKuB;AAJrB,yGAAA,eAAe,OAAA;AACf,4HAAA,kCAAkC,OAAA;AAClC,0HAAA,gCAAgC,OAAA;AAChC,0HAAA,gCAAgC,OAAA;AAElC,mDAAgC;AAChC,kDAA+B;AAC/B,kDAA+B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/client/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,4DAAyC;AACzC,yCAMuB;AALrB,8GAAA,oBAAoB,OAAA;AACpB,yGAAA,eAAe,OAAA;AACf,4HAAA,kCAAkC,OAAA;AAClC,0HAAA,gCAAgC,OAAA;AAChC,0HAAA,gCAAgC,OAAA;AAElC,mDAAgC;AAChC,kDAA+B;AAC/B,kDAA+B"}
@@ -40,4 +40,10 @@ export declare class PartialDeploymentRetryLaterError extends DeploymentError {
40
40
  readonly retryAfterMs: number;
41
41
  constructor(message: string, retryAfterMs: number, status?: number, responseBody?: string);
42
42
  }
43
+ /** A binary download (an item image or thumbnail) answered with a non-2xx status instead of the file. */
44
+ export declare class ContentDownloadError extends Error {
45
+ readonly status: number;
46
+ readonly responseBody?: string | undefined;
47
+ constructor(message: string, status: number, responseBody?: string | undefined);
48
+ }
43
49
  //# sourceMappingURL=errors.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/client/utils/errors.ts"],"names":[],"mappings":"AAAA,wGAAwG;AACxG,qBAAa,eAAgB,SAAQ,KAAK;aACK,MAAM,CAAC;aAA0B,YAAY,CAAC;gBAA/E,OAAO,EAAE,MAAM,EAAkB,MAAM,CAAC,oBAAQ,EAAkB,YAAY,CAAC,oBAAQ;CAIpG;AAED;;;GAGG;AACH,qBAAa,gCAAiC,SAAQ,eAAe;gBACvD,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM;CAIpE;AAED;;;;GAIG;AACH,qBAAa,kCAAmC,SAAQ,eAAe;gBACzD,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM;CAIpE;AAED;;;;;GAKG;AACH,qBAAa,+BAAgC,SAAQ,KAAK;aAGtC,YAAY,CAAC;aACb,MAAM,CAAC;aACP,YAAY,CAAC;gBAH7B,OAAO,EAAE,MAAM,EACC,YAAY,CAAC,oBAAQ,EACrB,MAAM,CAAC,oBAAQ,EACf,YAAY,CAAC,oBAAQ;CAKxC;AAED;;;;GAIG;AACH,qBAAa,gCAAiC,SAAQ,eAAe;aACtB,YAAY,EAAE,MAAM;gBAArD,OAAO,EAAE,MAAM,EAAkB,YAAY,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM;CAI1G"}
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/client/utils/errors.ts"],"names":[],"mappings":"AAAA,wGAAwG;AACxG,qBAAa,eAAgB,SAAQ,KAAK;aACK,MAAM,CAAC;aAA0B,YAAY,CAAC;gBAA/E,OAAO,EAAE,MAAM,EAAkB,MAAM,CAAC,oBAAQ,EAAkB,YAAY,CAAC,oBAAQ;CAIpG;AAED;;;GAGG;AACH,qBAAa,gCAAiC,SAAQ,eAAe;gBACvD,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM;CAIpE;AAED;;;;GAIG;AACH,qBAAa,kCAAmC,SAAQ,eAAe;gBACzD,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM;CAIpE;AAED;;;;;GAKG;AACH,qBAAa,+BAAgC,SAAQ,KAAK;aAGtC,YAAY,CAAC;aACb,MAAM,CAAC;aACP,YAAY,CAAC;gBAH7B,OAAO,EAAE,MAAM,EACC,YAAY,CAAC,oBAAQ,EACrB,MAAM,CAAC,oBAAQ,EACf,YAAY,CAAC,oBAAQ;CAKxC;AAED;;;;GAIG;AACH,qBAAa,gCAAiC,SAAQ,eAAe;aACtB,YAAY,EAAE,MAAM;gBAArD,OAAO,EAAE,MAAM,EAAkB,YAAY,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM;CAI1G;AAED,yGAAyG;AACzG,qBAAa,oBAAqB,SAAQ,KAAK;aACA,MAAM,EAAE,MAAM;aAAkB,YAAY,CAAC;gBAA9E,OAAO,EAAE,MAAM,EAAkB,MAAM,EAAE,MAAM,EAAkB,YAAY,CAAC,oBAAQ;CAInG"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PartialDeploymentRetryLaterError = exports.RetryablePartialDeploymentError = exports.PartialDeploymentNotSupportedError = exports.PartialDeploymentValidationError = exports.DeploymentError = void 0;
3
+ exports.ContentDownloadError = exports.PartialDeploymentRetryLaterError = exports.RetryablePartialDeploymentError = exports.PartialDeploymentNotSupportedError = exports.PartialDeploymentValidationError = exports.DeploymentError = void 0;
4
4
  /** Base error for a failed deployment. Carries the HTTP status and raw response body when available. */
5
5
  class DeploymentError extends Error {
6
6
  constructor(message, status, responseBody) {
@@ -63,4 +63,14 @@ class PartialDeploymentRetryLaterError extends DeploymentError {
63
63
  }
64
64
  }
65
65
  exports.PartialDeploymentRetryLaterError = PartialDeploymentRetryLaterError;
66
+ /** A binary download (an item image or thumbnail) answered with a non-2xx status instead of the file. */
67
+ class ContentDownloadError extends Error {
68
+ constructor(message, status, responseBody) {
69
+ super(message);
70
+ this.status = status;
71
+ this.responseBody = responseBody;
72
+ this.name = 'ContentDownloadError';
73
+ }
74
+ }
75
+ exports.ContentDownloadError = ContentDownloadError;
66
76
  //# sourceMappingURL=errors.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../src/client/utils/errors.ts"],"names":[],"mappings":";;;AAAA,wGAAwG;AACxG,MAAa,eAAgB,SAAQ,KAAK;IACxC,YAAY,OAAe,EAAkB,MAAe,EAAkB,YAAqB;QACjG,KAAK,CAAC,OAAO,CAAC,CAAA;QAD6B,WAAM,GAAN,MAAM,CAAS;QAAkB,iBAAY,GAAZ,YAAY,CAAS;QAEjG,IAAI,CAAC,IAAI,GAAG,iBAAiB,CAAA;IAC/B,CAAC;CACF;AALD,0CAKC;AAED;;;GAGG;AACH,MAAa,gCAAiC,SAAQ,eAAe;IACnE,YAAY,OAAe,EAAE,MAAe,EAAE,YAAqB;QACjE,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,YAAY,CAAC,CAAA;QACpC,IAAI,CAAC,IAAI,GAAG,kCAAkC,CAAA;IAChD,CAAC;CACF;AALD,4EAKC;AAED;;;;GAIG;AACH,MAAa,kCAAmC,SAAQ,eAAe;IACrE,YAAY,OAAe,EAAE,MAAe,EAAE,YAAqB;QACjE,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,YAAY,CAAC,CAAA;QACpC,IAAI,CAAC,IAA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C,SAAQ,eAAe;IACrE,YAAY,OAAe,EAAE,MAAe,EAAE,YAAqB;QACjE,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,YAAY,CAAC,CAAA;QACpC,IAAI,CAAC,IAAI,GAAG,oCAAoC,CAAA;IAClD,CAAC;CACF;AALD,gFAKC;AAED;;;;;GAKG;AACH,MAAa,+BAAgC,SAAQ,KAAK;IACxD,YACE,OAAe,EACC,YAAqB,EACrB,MAAe,EACf,YAAqB;QAErC,KAAK,CAAC,OAAO,CAAC,CAAA;QAJE,iBAAY,GAAZ,YAAY,CAAS;QACrB,WAAM,GAAN,MAAM,CAAS;QACf,iBAAY,GAAZ,YAAY,CAAS;QAGrC,IAAI,CAAC,IAAI,GAAG,iCAAiC,CAAA;IAC/C,CAAC;CACF;AAVD,0EAUC;AAED;;;;GAIG;AACH,MAAa,gCAAiC,SAAQ,eAAe;IACnE,YAAY,OAAe,EAAkB,YAAoB,EAAE,MAAe,EAAE,YAAqB;QACvG,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,YAAY,CAAC,CAAA;QADO,iBAAY,GAAZ,YAAY,CAAQ;QAE/D,IAAI,CAAC,IAAI,GAAG,kCAAkC,CAAA;IAChD,CAAC;CACF;AALD,4EAKC;AAED,yGAAyG;AACzG,MAAa,oBAAqB,SAAQ,KAAK;IAC7C,YAAY,OAAe,EAAkB,MAAc,EAAkB,YAAqB;QAChG,KAAK,CAAC,OAAO,CAAC,CAAA;QAD6B,WAAM,GAAN,MAAM,CAAQ;QAAkB,iBAAY,GAAZ,YAAY,CAAS;QAEhG,IAAI,CAAC,IAAI,GAAG,sBAAsB,CAAA;IACpC,CAAC;CACF;AALD,oDAKC"}
@@ -4,10 +4,10 @@ type Context = {
4
4
  method: 'get' | 'head' | 'post' | 'put' | 'delete' | 'patch';
5
5
  params?: any;
6
6
  data?: any;
7
- responseType?: string;
7
+ responseType?: 'blob' | 'json';
8
8
  headers?: Record<string, string>;
9
9
  };
10
10
  export type CustomClient<T> = (baseUrl: string, fetch: IFetchComponent) => Promise<T>;
11
- export declare const useCustomClient: <T>({ url, method, params, data, headers }: Context) => CustomClient<T>;
11
+ export declare const useCustomClient: <T>({ url, method, params, data, responseType, headers }: Context) => CustomClient<T>;
12
12
  export default useCustomClient;
13
13
  //# sourceMappingURL=fetcher.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fetcher.d.ts","sourceRoot":"","sources":["../../../src/client/utils/fetcher.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAE1C,KAAK,OAAO,GAAG;IACb,GAAG,EAAE,MAAM,CAAA;IACX,MAAM,EAAE,KAAK,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,GAAG,QAAQ,GAAG,OAAO,CAAA;IAC5D,MAAM,CAAC,EAAE,GAAG,CAAA;IACZ,IAAI,CAAC,EAAE,GAAG,CAAA;IACV,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CACjC,CAAA;AAED,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,eAAe,KAAK,OAAO,CAAC,CAAC,CAAC,CAAA;AAcrF,eAAO,MAAM,eAAe,8CAA+C,OAAO,oBAcjF,CAAA;AAED,eAAe,eAAe,CAAA"}
1
+ {"version":3,"file":"fetcher.d.ts","sourceRoot":"","sources":["../../../src/client/utils/fetcher.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAG1C,KAAK,OAAO,GAAG;IACb,GAAG,EAAE,MAAM,CAAA;IACX,MAAM,EAAE,KAAK,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,GAAG,QAAQ,GAAG,OAAO,CAAA;IAC5D,MAAM,CAAC,EAAE,GAAG,CAAA;IACZ,IAAI,CAAC,EAAE,GAAG,CAAA;IACV,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CACjC,CAAA;AAED,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,eAAe,KAAK,OAAO,CAAC,CAAC,CAAC,CAAA;AAcrF,eAAO,MAAM,eAAe,4DAA6D,OAAO,oBAyB/F,CAAA;AAED,eAAe,eAAe,CAAA"}
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.useCustomClient = void 0;
4
+ const errors_1 = require("./errors");
4
5
  // Arrays become repeated keys; null and undefined are left out (presence flags would read them as set).
5
6
  function toSearchParams(params) {
6
7
  const searchParams = new URLSearchParams();
@@ -13,9 +14,10 @@ function toSearchParams(params) {
13
14
  return searchParams;
14
15
  }
15
16
  // NOTE: used by orval generator
16
- const useCustomClient = ({ url, method, params, data, headers }) => {
17
+ const useCustomClient = ({ url, method, params, data, responseType, headers }) => {
17
18
  const relPath = url.substring('/lambdas'.length + 1);
18
19
  return async function (baseUrl, fetch) {
20
+ var _a, _b;
19
21
  const response = await fetch.fetch(`${baseUrl}/${relPath}?` + toSearchParams(params), {
20
22
  method,
21
23
  headers,
@@ -24,6 +26,16 @@ const useCustomClient = ({ url, method, params, data, headers }) => {
24
26
  // A HEAD response has no body to parse.
25
27
  if (method === 'head')
26
28
  return undefined;
29
+ // Binary operations (images, thumbnails) aren't JSON
30
+ if (responseType === 'blob') {
31
+ if (!response.ok) {
32
+ // Read the error body so the connection is released
33
+ const body = await response.text().catch(() => undefined);
34
+ throw new errors_1.ContentDownloadError(`Failed to download ${relPath}: HTTP ${response.status}`, response.status, body);
35
+ }
36
+ const type = (_b = (_a = response.headers) === null || _a === void 0 ? void 0 : _a.get('content-type')) !== null && _b !== void 0 ? _b : undefined;
37
+ return new Blob([await response.arrayBuffer()], type ? { type } : undefined);
38
+ }
27
39
  return response.json();
28
40
  };
29
41
  };
@@ -1 +1 @@
1
- {"version":3,"file":"fetcher.js","sourceRoot":"","sources":["../../../src/client/utils/fetcher.ts"],"names":[],"mappings":";;;AAaA,wGAAwG;AACxG,SAAS,cAAc,CAAC,MAAgC;IACtD,MAAM,YAAY,GAAG,IAAI,eAAe,EAAE,CAAA;IAC1C,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,MAAM,aAAN,MAAM,cAAN,MAAM,GAAI,EAAE,CAAC,EAAE;QACvD,KAAK,MAAM,IAAI,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE;YACzD,IAAI,IAAI,KAAK,SAAS,IAAI,IAAI,KAAK,IAAI;gBAAE,YAAY,CAAC,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC,CAAA;SAChF;KACF;IACD,OAAO,YAAY,CAAA;AACrB,CAAC;AAED,gCAAgC;AACzB,MAAM,eAAe,GAAG,CAAI,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAW,EAAmB,EAAE;IACrG,MAAM,OAAO,GAAG,GAAG,CAAC,SAAS,CAAC,UAAU,CAAC,MAAM,GAAG,CAAC,CAAC,CAAA;IACpD,OAAO,KAAK,WAAW,OAAe,EAAE,KAAsB;QAC5D,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,KAAK,CAAC,GAAG,OAAO,IAAI,OAAO,GAAG,GAAG,cAAc,CAAC,MAAM,CAAC,EAAE;YACpF,MAAM;YACN,OAAO;YACP,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;SAChD,CAAC,CAA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pF,MAAM;YACN,OAAO;YACP,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;SAChD,CAAC,CAAA;QAEF,wCAAwC;QACxC,IAAI,MAAM,KAAK,MAAM;YAAE,OAAO,SAAc,CAAA;QAE5C,qDAAqD;QACrD,IAAI,YAAY,KAAK,MAAM,EAAE;YAC3B,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE;gBAChB,oDAAoD;gBACpD,MAAM,IAAI,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,CAAA;gBACzD,MAAM,IAAI,6BAAoB,CAAC,sBAAsB,OAAO,UAAU,QAAQ,CAAC,MAAM,EAAE,EAAE,QAAQ,CAAC,MAAM,EAAE,IAAI,CAAC,CAAA;aAChH;YACD,MAAM,IAAI,GAAG,MAAA,MAAA,QAAQ,CAAC,OAAO,0CAAE,GAAG,CAAC,cAAc,CAAC,mCAAI,SAAS,CAAA;YAC/D,OAAO,IAAI,IAAI,CAAC,CAAC,MAAM,QAAQ,CAAC,WAAW,EAAE,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,SAAS,CAAM,CAAA;SAClF;QAED,OAAO,QAAQ,CAAC,IAAI,EAAE,CAAA;IACxB,CAAC,CAAA;AACH,CAAC,CAAA;AAzBY,QAAA,eAAe,mBAyB3B;AAED,kBAAe,uBAAe,CAAA"}
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@ export * from './client/CatalystClient';
2
2
  export * from './client/ContentClient';
3
3
  export * from './client/LambdasClient';
4
4
  export * from './client/utils';
5
- export { DeploymentError, PartialDeploymentNotSupportedError, PartialDeploymentRetryLaterError, PartialDeploymentValidationError } from './client/utils/errors';
5
+ export { ContentDownloadError, DeploymentError, PartialDeploymentNotSupportedError, PartialDeploymentRetryLaterError, PartialDeploymentValidationError } from './client/utils/errors';
6
6
  export { DEFAULT_MAX_BATCH_SIZE_BYTES, splitIntoBatches } from './client/utils/batching';
7
7
  export type { FileBatch } from './client/utils/batching';
8
8
  export type { FetchResponse, IFetchComponent, PartialDeploymentOptions, PartialDeploymentProgress, PartialDeploymentResult, RequestOptions, UploadPhase, UploadProgress, UploadProgressOptions } from './client/types';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA;AACvC,cAAc,wBAAwB,CAAA;AACtC,cAAc,wBAAwB,CAAA;AACtC,cAAc,gBAAgB,CAAA;AAC9B,OAAO,EACL,eAAe,EACf,kCAAkC,EAClC,gCAAgC,EAChC,gCAAgC,EACjC,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,4BAA4B,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AACxF,YAAY,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AACxD,YAAY,EACV,aAAa,EACb,eAAe,EACf,wBAAwB,EACxB,yBAAyB,EACzB,uBAAuB,EACvB,cAAc,EACd,WAAW,EACX,cAAc,EACd,qBAAqB,EACtB,MAAM,gBAAgB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA;AACvC,cAAc,wBAAwB,CAAA;AACtC,cAAc,wBAAwB,CAAA;AACtC,cAAc,gBAAgB,CAAA;AAC9B,OAAO,EACL,oBAAoB,EACpB,eAAe,EACf,kCAAkC,EAClC,gCAAgC,EAChC,gCAAgC,EACjC,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,4BAA4B,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AACxF,YAAY,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AACxD,YAAY,EACV,aAAa,EACb,eAAe,EACf,wBAAwB,EACxB,yBAAyB,EACzB,uBAAuB,EACvB,cAAc,EACd,WAAW,EACX,cAAc,EACd,qBAAqB,EACtB,MAAM,gBAAgB,CAAA"}
package/dist/index.js CHANGED
@@ -14,12 +14,13 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.splitIntoBatches = exports.DEFAULT_MAX_BATCH_SIZE_BYTES = exports.PartialDeploymentValidationError = exports.PartialDeploymentRetryLaterError = exports.PartialDeploymentNotSupportedError = exports.DeploymentError = void 0;
17
+ exports.splitIntoBatches = exports.DEFAULT_MAX_BATCH_SIZE_BYTES = exports.PartialDeploymentValidationError = exports.PartialDeploymentRetryLaterError = exports.PartialDeploymentNotSupportedError = exports.DeploymentError = exports.ContentDownloadError = void 0;
18
18
  __exportStar(require("./client/CatalystClient"), exports);
19
19
  __exportStar(require("./client/ContentClient"), exports);
20
20
  __exportStar(require("./client/LambdasClient"), exports);
21
21
  __exportStar(require("./client/utils"), exports);
22
22
  var errors_1 = require("./client/utils/errors");
23
+ Object.defineProperty(exports, "ContentDownloadError", { enumerable: true, get: function () { return errors_1.ContentDownloadError; } });
23
24
  Object.defineProperty(exports, "DeploymentError", { enumerable: true, get: function () { return errors_1.DeploymentError; } });
24
25
  Object.defineProperty(exports, "PartialDeploymentNotSupportedError", { enumerable: true, get: function () { return errors_1.PartialDeploymentNotSupportedError; } });
25
26
  Object.defineProperty(exports, "PartialDeploymentRetryLaterError", { enumerable: true, get: function () { return errors_1.PartialDeploymentRetryLaterError; } });
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,0DAAuC;AACvC,yDAAsC;AACtC,yDAAsC;AACtC,iDAA8B;AAC9B,gDAK8B;AAJ5B,yGAAA,eAAe,OAAA;AACf,4HAAA,kCAAkC,OAAA;AAClC,0HAAA,gCAAgC,OAAA;AAChC,0HAAA,gCAAgC,OAAA;AAElC,oDAAwF;AAA/E,wHAAA,4BAA4B,OAAA;AAAE,4GAAA,gBAAgB,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,0DAAuC;AACvC,yDAAsC;AACtC,yDAAsC;AACtC,iDAA8B;AAC9B,gDAM8B;AAL5B,8GAAA,oBAAoB,OAAA;AACpB,yGAAA,eAAe,OAAA;AACf,4HAAA,kCAAkC,OAAA;AAClC,0HAAA,gCAAgC,OAAA;AAChC,0HAAA,gCAAgC,OAAA;AAElC,oDAAwF;AAA/E,wHAAA,4BAA4B,OAAA;AAAE,4GAAA,gBAAgB,OAAA"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "dcl-catalyst-client",
3
- "version": "22.0.1-38601546385.commit-cee8815",
4
- "commit": "cee8815f21fbd0bebc10547d20ff3c6a91f70042",
3
+ "version": "22.0.1-38602312773.commit-5d9befe",
4
+ "commit": "5d9befe6dfce4e8d0399695cdef0f9c8f8215c20",
5
5
  "description": "A client to query and perform changes on Decentraland's catalyst servers",
6
6
  "main": "dist/index.js",
7
7
  "typings": "dist/index.d.ts",