typizer 0.2.0 → 0.3.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/run.d.ts CHANGED
@@ -17,7 +17,9 @@ export interface FieldSource {
17
17
  export interface FieldResult {
18
18
  /** `ok`, `warn` (a value that failed a check) or `missing` (no value); an open enum. */
19
19
  status: 'ok' | 'warn' | 'missing' | (string & {});
20
- /** For `warn`: `checksum_mismatch`, `invalid_format`, `sum_mismatch`, `implausible_date`, … */
20
+ /** For `warn`: `checksum_mismatch`, `invalid_format`, `sum_mismatch`, `implausible_date`,
21
+ * `no_source`, `code_mismatch` (the value contradicts a barcode or QR code printed on the
22
+ * document), … */
21
23
  reason?: string | null;
22
24
  sources?: FieldSource[];
23
25
  }
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  /** The SDK version (sent in `User-Agent`); kept equal to package.json by test/client.test.ts. */
2
- export declare const VERSION = "0.2.0";
2
+ export declare const VERSION = "0.3.0";
package/dist/version.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /** The SDK version (sent in `User-Agent`); kept equal to package.json by test/client.test.ts. */
2
- export const VERSION = '0.2.0';
2
+ export const VERSION = '0.3.0';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "typizer",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Официальный TypeScript SDK для Typizer API — извлечение данных из документов в JSON по вашей схеме",
@@ -42,16 +42,16 @@
42
42
  "CHANGELOG.md",
43
43
  "LICENSE"
44
44
  ],
45
+ "devDependencies": {
46
+ "@hey-api/openapi-ts": "^0.99.0",
47
+ "typescript": "6.0.3",
48
+ "@typizer/sdk-spec": "0.0.0",
49
+ "@typizer/config": "0.0.0"
50
+ },
45
51
  "scripts": {
46
52
  "generate": "openapi-ts",
47
53
  "build": "node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true})\" && tsc -p tsconfig.build.json",
48
54
  "typecheck": "tsc --noEmit",
49
55
  "test": "vitest run"
50
- },
51
- "devDependencies": {
52
- "@hey-api/openapi-ts": "^0.99.0",
53
- "@typizer/config": "workspace:*",
54
- "@typizer/sdk-spec": "workspace:*",
55
- "typescript": "6.0.3"
56
56
  }
57
- }
57
+ }