@holistics/anfra-sdk 0.16.0 → 0.18.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.
Files changed (38) hide show
  1. package/README.md +2 -1
  2. package/dist/ambient.d.ts +2 -1
  3. package/dist/api.d.ts +11 -5
  4. package/dist/api.js +40 -30
  5. package/dist/app.d.ts +5 -5
  6. package/dist/app.js +22 -12
  7. package/dist/{bootstrap-hLhpijIb.d.ts → bootstrap-q1J7GUxa.d.ts} +55 -18
  8. package/dist/build.d.ts +2 -2
  9. package/dist/{chunk-THYCARLT.js → chunk-2O2WVQXO.js} +102 -30
  10. package/dist/chunk-32566ZNE.js +1278 -0
  11. package/dist/{chunk-S6XLP6U4.js → chunk-3ZWUCECU.js} +45 -20
  12. package/dist/{chunk-KFD6CHLI.js → chunk-ACKFOANJ.js} +2 -0
  13. package/dist/{chunk-SKSKC747.js → chunk-B6URV5AO.js} +1 -1
  14. package/dist/{chunk-CYZQ7ZTJ.js → chunk-C26OVN2S.js} +6 -1
  15. package/dist/{chunk-PTNYQOEY.js → chunk-NS7HJHNK.js} +1 -1
  16. package/dist/chunk-SWNVCTT6.js +161 -0
  17. package/dist/common.d.ts +3 -3
  18. package/dist/common.js +19 -9
  19. package/dist/{data-BGX3V42T.js → data-TDUQTG3P.js} +8 -6
  20. package/dist/{declaration-ZL5B676C.js → declaration-RJFU4ZLJ.js} +2 -2
  21. package/dist/errors-IhdhKO-6.d.ts +119 -0
  22. package/dist/host.d.ts +2 -2
  23. package/dist/host.js +17 -17
  24. package/dist/{menu-BFLb7dVq.d.ts → menu-CRAFaQ8s.d.ts} +21 -5
  25. package/dist/{overview-7YU7JW6Q.js → overview-AZCX6SY6.js} +23 -23
  26. package/dist/{plugin-B7SpJLBm.d.ts → plugin-BdLabbah.d.ts} +2 -2
  27. package/dist/plugins.d.ts +11 -2
  28. package/dist/plugins.js +38 -21
  29. package/dist/{queries-QFN4DI25.js → queries-5TTPOB7R.js} +32 -30
  30. package/dist/{structure-Z2QK5MGH.js → structure-MTLCRTJ4.js} +11 -9
  31. package/dist/{tab-LSITVMKV.js → tab-XL2HS5W4.js} +20 -18
  32. package/dist/testing.d.ts +1 -1
  33. package/dist/testing.js +4 -4
  34. package/dist/{types-CKytl8ds.d.ts → types-C_i7V0DA.d.ts} +46 -14
  35. package/package.json +2 -1
  36. package/dist/chunk-F6B3EGFV.js +0 -750
  37. package/dist/chunk-KCTLO3CO.js +0 -41
  38. package/dist/errors-CKvqVaqU.d.ts +0 -30
@@ -1,41 +0,0 @@
1
- import {
2
- __publicField
3
- } from "./chunk-PKBMQBKP.js";
4
-
5
- // src/common/errors.ts
6
- var DataAppError = class extends Error {
7
- constructor(message, entity) {
8
- super(message);
9
- /** The query, control or dataset that caused this. */
10
- __publicField(this, "entity");
11
- this.name = new.target.name;
12
- this.entity = entity;
13
- Object.setPrototypeOf(this, new.target.prototype);
14
- }
15
- };
16
- var ValidationError = class extends DataAppError {
17
- };
18
- var QueryError = class extends DataAppError {
19
- constructor(message, entity, cause) {
20
- super(message, entity);
21
- __publicField(this, "cause");
22
- this.cause = cause;
23
- }
24
- };
25
- var PermissionError = class extends DataAppError {
26
- };
27
- var TransportError = class extends DataAppError {
28
- constructor(message, status, entity) {
29
- super(message, entity);
30
- __publicField(this, "status");
31
- this.status = status;
32
- }
33
- };
34
-
35
- export {
36
- DataAppError,
37
- ValidationError,
38
- QueryError,
39
- PermissionError,
40
- TransportError
41
- };
@@ -1,30 +0,0 @@
1
- /**
2
- * Four error classes and no more. An error taxonomy is a public API: every class added here is one
3
- * more thing a consumer will `instanceof` against forever.
4
- */
5
- declare abstract class DataAppError extends Error {
6
- /** The query, control or dataset that caused this. */
7
- readonly entity?: string;
8
- constructor(message: string, entity?: string);
9
- }
10
- /**
11
- * Thrown synchronously at declaration time. This is the primary feedback channel for an agent
12
- * authoring an app: it has no REPL, so the thrown error is the whole loop. Messages must carry the
13
- * offending value and, where we can compute one, a suggestion.
14
- */
15
- declare class ValidationError extends DataAppError {
16
- }
17
- /** Stored on the query, never thrown — one failed query must not blank the rest. */
18
- declare class QueryError extends DataAppError {
19
- readonly cause?: unknown;
20
- constructor(message: string, entity?: string, cause?: unknown);
21
- }
22
- /** Separate from QueryError so an app can render "you can't see this" differently from "this broke". */
23
- declare class PermissionError extends DataAppError {
24
- }
25
- declare class TransportError extends DataAppError {
26
- readonly status?: number;
27
- constructor(message: string, status?: number, entity?: string);
28
- }
29
-
30
- export { DataAppError as D, PermissionError as P, QueryError as Q, TransportError as T, ValidationError as V };