@substrat-run/contract-tests 0.133.0 → 0.135.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 (39) hide show
  1. package/dist/attachment-text-fixtures.d.ts +36 -0
  2. package/dist/attachment-text-fixtures.d.ts.map +1 -0
  3. package/dist/attachment-text-fixtures.js +956 -0
  4. package/dist/attachment-text-fixtures.js.map +1 -0
  5. package/dist/attachment-text-suite.d.ts +3 -0
  6. package/dist/attachment-text-suite.d.ts.map +1 -0
  7. package/dist/attachment-text-suite.js +359 -0
  8. package/dist/attachment-text-suite.js.map +1 -0
  9. package/dist/capability-attachment-suite.d.ts.map +1 -1
  10. package/dist/capability-attachment-suite.js +25 -0
  11. package/dist/capability-attachment-suite.js.map +1 -1
  12. package/dist/capability-suite.d.ts.map +1 -1
  13. package/dist/capability-suite.js +265 -0
  14. package/dist/capability-suite.js.map +1 -1
  15. package/dist/idempotency-suite.d.ts.map +1 -1
  16. package/dist/idempotency-suite.js +43 -2
  17. package/dist/idempotency-suite.js.map +1 -1
  18. package/dist/index.d.ts +5 -1
  19. package/dist/index.d.ts.map +1 -1
  20. package/dist/index.js +4 -1
  21. package/dist/index.js.map +1 -1
  22. package/dist/list-suite.d.ts.map +1 -1
  23. package/dist/list-suite.js +18 -2
  24. package/dist/list-suite.js.map +1 -1
  25. package/dist/modules.d.ts +271 -1
  26. package/dist/modules.d.ts.map +1 -1
  27. package/dist/modules.js +95 -4
  28. package/dist/modules.js.map +1 -1
  29. package/dist/schedule-entitlement-suite.d.ts +23 -0
  30. package/dist/schedule-entitlement-suite.d.ts.map +1 -0
  31. package/dist/schedule-entitlement-suite.js +98 -0
  32. package/dist/schedule-entitlement-suite.js.map +1 -0
  33. package/dist/scope-host-suite.d.ts.map +1 -1
  34. package/dist/scope-host-suite.js +494 -12
  35. package/dist/scope-host-suite.js.map +1 -1
  36. package/dist/timeline-suite.d.ts.map +1 -1
  37. package/dist/timeline-suite.js +119 -1
  38. package/dist/timeline-suite.js.map +1 -1
  39. package/package.json +3 -3
@@ -0,0 +1,36 @@
1
+ /**
2
+ * Attachment text fixtures (#1575): one file per content type an extractor reads, and one
3
+ * for each way a file must come back WITHOUT text, legibly.
4
+ *
5
+ * The three office files are what their producers actually write, not archives assembled
6
+ * for the test — a fixture earns its place by being what an extractor will meet. Each was
7
+ * produced once, with no author metadata, and is embedded as base64 because the suite also
8
+ * runs inside workerd, which has no file system:
9
+ *
10
+ * - DOCX: macOS `textutil -convert docx` (Cocoa's OOXML writer) over `DOCX_LINES`.
11
+ * - XLSX: exceljs 4 — one sheet, shared strings, deflated parts.
12
+ * - PPTX: pptxgenjs 3 — two slides and a speaker note, every part STORED (its default), so
13
+ * the uncompressed zip path is read from a real file too.
14
+ *
15
+ * Nothing re-emits them. To change one, produce it again the same way and re-encode it.
16
+ */
17
+ /** The text the DOCX was made from, one paragraph per line. */
18
+ export declare const DOCX_LINES: string[];
19
+ /** One upload, and what extraction must make of it. */
20
+ export interface AttachmentTextFixture {
21
+ readonly name: string;
22
+ readonly filename: string;
23
+ readonly contentType: string;
24
+ readonly body: Uint8Array;
25
+ readonly status: 'indexed' | 'empty' | 'unsupported' | 'failed';
26
+ readonly extractor: string | null;
27
+ /**
28
+ * Phrases from the body that must find this file once extracted. The FIRST occurs in no
29
+ * other fixture, so it must find this file and nothing else.
30
+ */
31
+ readonly finds?: readonly string[];
32
+ /** Text the file carries that must NOT be indexed (a script body). */
33
+ readonly hides?: string;
34
+ }
35
+ export declare const ATTACHMENT_TEXT_FIXTURES: readonly AttachmentTextFixture[];
36
+ //# sourceMappingURL=attachment-text-fixtures.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attachment-text-fixtures.d.ts","sourceRoot":"","sources":["../src/attachment-text-fixtures.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,+DAA+D;AAC/D,eAAO,MAAM,UAAU,UAKtB,CAAC;AAkzBF,uDAAuD;AACvD,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;IAC1B,QAAQ,CAAC,MAAM,EAAE,SAAS,GAAG,OAAO,GAAG,aAAa,GAAG,QAAQ,CAAC;IAChE,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC;;;OAGG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACnC,sEAAsE;IACtE,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,eAAO,MAAM,wBAAwB,EAAE,SAAS,qBAAqB,EA2HpE,CAAC"}