@syncular/typegen 0.52.0 → 0.53.1

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/README.md CHANGED
@@ -428,7 +428,7 @@ The emitted `*.generated.ts` module:
428
428
  output only create churn.
429
429
  Freshness and migration-history integrity are enforced instead by `syncular
430
430
  generate --check`, which is byte-exact and refuses locked-history drift; the
431
- generated fixture is still typechecked by `tsc` and exercised by tests.
431
+ generated fixture is still typechecked by `tsrs` and exercised by tests.
432
432
 
433
433
  ## 5. Native emitter contracts (Swift / Kotlin / Dart)
434
434
 
@@ -9,64 +9,64 @@ export type SyqlRuntimeErrorCode = 'SYQL_RUNTIME_MISSING_REQUIRED_INPUT' | 'SYQL
9
9
  export type SyqlDiagnosticCode = SyqlLexErrorCode | SyqlParseErrorCode | SyqlTemplateParseErrorCode | SyqlModuleErrorCode | SyqlSemanticErrorCode | SyqlValidationErrorCode | SyqlLoweringErrorCode | 'SYQL9001_PROJECT_CONTEXT' | SyqlRuntimeErrorCode;
10
10
  /** Stable compiler and generated-runtime diagnostic remedies keyed by code. */
11
11
  export declare const SYQL_DIAGNOSTIC_REMEDIES: {
12
- readonly SYQL1001_UNTERMINATED_STRING: "Close the string literal with a matching single quote.";
13
- readonly SYQL1002_UNTERMINATED_IDENTIFIER: "Close the quoted identifier with its matching delimiter.";
14
- readonly SYQL1003_UNTERMINATED_COMMENT: "Close the block comment with */.";
15
- readonly SYQL1004_UNTERMINATED_IMPORT_PATH: "Close the import path with a matching double quote.";
16
- readonly SYQL2001_EXPECTED_TOKEN: "Insert the token named by the diagnostic at the reported source position.";
17
- readonly SYQL2002_INVALID_NAME: "Rename the declaration or parameter to a valid lower-camel identifier.";
18
- readonly SYQL2003_RESERVED_NAME: "Rename the declaration or parameter so it does not use a reserved SYQL name.";
19
- readonly SYQL2004_DUPLICATE_NAME: "Give each declaration, parameter, group member, and profile a unique name in its scope.";
20
- readonly SYQL2005_INVALID_IMPORT: "Use a relative .syql import with explicit imported predicate names.";
21
- readonly SYQL2006_EMPTY_TEMPLATE: "Add a SQL expression or statement inside the braces.";
22
- readonly SYQL2007_FORBIDDEN_SEMICOLON: "Remove the semicolon from the embedded SQL template.";
23
- readonly SYQL2008_INVALID_MEMBER: "Use a member supported by the surrounding SYQL declaration.";
24
- readonly SYQL2009_INVALID_INTEGER: "Use a decimal integer within the range named by the diagnostic.";
25
- readonly SYQL2010_INVALID_PAGE_RANGE: "Choose default and maximum page sizes that satisfy the declared range.";
26
- readonly SYQL2011_INVALID_PARAMETER: "Rewrite the parameter using a supported value, optional, range, group, sort, or limit form.";
27
- readonly SYQL2012_INVALID_QUERY_BODY: "Rewrite the query body using the clause order and forms defined by the SYQL grammar.";
28
- readonly SYQL3001_EXPECTED_EMBEDDED_TOKEN: "Insert the required token in the embedded SQL construct.";
29
- readonly SYQL3002_INVALID_BIND: "Bind a declared input with the :name form in a supported SQL position.";
30
- readonly SYQL3003_INVALID_PREDICATE_CALL: "Call the predicate with declared bind arguments and matching parentheses.";
31
- readonly SYQL3004_INVALID_WHEN: "Use when with declared controls and a nonempty conditional SQL body.";
32
- readonly SYQL3005_INVALID_REACTIVE_DIRECTIVE: "Rewrite the reactive directive using a supported revision-1 form.";
33
- readonly SYQL3006_FORBIDDEN_TEMPLATE_NODE: "Remove the conditional or predicate construct from this SQL context.";
34
- readonly SYQL3007_UNEXPECTED_BRACE: "Remove the unmatched brace or close the surrounding embedded construct.";
35
- readonly SYQL3008_FORBIDDEN_PARAMETER_FORM: "Use a value bind in this context instead of a range, group, sort, or limit control.";
36
- readonly SYQL4001_IMPORT_OUTSIDE_ROOT: "Move the imported file under the configured query root and use a relative path.";
37
- readonly SYQL4002_MODULE_NOT_FOUND: "Create the imported .syql file or correct the relative import path.";
38
- readonly SYQL4003_IMPORT_CYCLE: "Remove one import edge so predicate modules form an acyclic graph.";
39
- readonly SYQL4004_UNKNOWN_PREDICATE: "Export and import the predicate under the referenced name.";
40
- readonly SYQL4005_DUPLICATE_IMPORT_TARGET: "Import each local predicate name once in the module.";
41
- readonly SYQL4006_DUPLICATE_QUERY: "Give every query in the project a unique public name.";
42
- readonly SYQL5001_UNKNOWN_PREDICATE: "Define the predicate locally or import it under the referenced name.";
43
- readonly SYQL5002_PREDICATE_CYCLE: "Remove the recursive predicate call so expansion terminates.";
44
- readonly SYQL5003_PREDICATE_ARITY: "Pass exactly the number of bind arguments declared by the predicate.";
45
- readonly SYQL5004_CLOSED_PREDICATE: "Declare each external bind as a predicate parameter and pass it at the call site.";
46
- readonly SYQL5005_UNUSED_PREDICATE_PARAMETER: "Use the predicate parameter in its body or remove it from the signature.";
47
- readonly SYQL5006_UNDECLARED_BIND: "Declare the bind as a query input or predicate parameter.";
48
- readonly SYQL5007_UNUSED_INPUT: "Use the query input in SQL or remove it from the public signature.";
49
- readonly SYQL5008_INVALID_CONTROL: "Use an optional input, group, sort, or limit name as the control.";
50
- readonly SYQL5009_MISSING_DOMINANCE: "Guard every optional bind with a when condition that proves its presence.";
51
- readonly SYQL5010_UNUSED_CONTROL: "Use the control in the query body or remove it from the signature.";
52
- readonly SYQL5011_TYPE_CONFLICT: "Make every declaration and SQL use of the bind agree on one SYQL type.";
53
- readonly SYQL6001_INVALID_PLACEMENT: "Move the SYQL construct to the SQL clause named by the diagnostic.";
54
- readonly SYQL6002_INVALID_SQL: "Correct the reported SQLite syntax, table, column, function, or bind error.";
55
- readonly SYQL6003_NONDETERMINISTIC_SQL: "Replace nondeterministic SQL with values supplied through query inputs or stored columns.";
56
- readonly SYQL6004_TYPE_CONFLICT: "Align the declared input type with the schema column and SQL expression types.";
57
- readonly SYQL6005_INVALID_SYNC_QUERY: "Select stable row identity and preserve the scope coverage required for reactive sync.";
58
- readonly SYQL6006_INVALID_SORT: "Use declared sort profiles with deterministic ORDER BY terms and a stable tie-breaker.";
59
- readonly SYQL6007_INVALID_LIMIT: "Use the declared limit control and keep its default and maximum within the supported range.";
60
- readonly SYQL6008_INVALID_IDENTITY: "Declare identity columns that are selected, non-null, and sufficient to identify each result row.";
61
- readonly SYQL7001_ENUMERATION_LIMIT: "Use the auto or neutralize backend, reduce control combinations, or raise the explicit compiler limit.";
62
- readonly SYQL7002_INTERNAL_LOWERING: "Report the query and diagnostic to the Syncular maintainers.";
63
- readonly SYQL9001_PROJECT_CONTEXT: "Open the file under a project with a valid syncular.json, migrations, schema output, and query root.";
64
- readonly SYQL_RUNTIME_MISSING_REQUIRED_INPUT: "Pass the required generated-query input.";
65
- readonly SYQL_RUNTIME_UNKNOWN_INPUT: "Remove the unknown key from the generated-query input object.";
66
- readonly SYQL_RUNTIME_INVALID_INPUT: "Pass a value that matches the generated input type and nullability.";
67
- readonly SYQL_RUNTIME_INVALID_GROUP: "Pass either the complete generated group shape or omit the optional group.";
68
- readonly SYQL_RUNTIME_INVALID_SORT: "Pass one of the sort profile names exported for the generated query.";
69
- readonly SYQL_RUNTIME_INVALID_LIMIT: "Pass an integer within the generated query limit range.";
12
+ readonly SYQL1001_UNTERMINATED_STRING: 'Close the string literal with a matching single quote.';
13
+ readonly SYQL1002_UNTERMINATED_IDENTIFIER: 'Close the quoted identifier with its matching delimiter.';
14
+ readonly SYQL1003_UNTERMINATED_COMMENT: 'Close the block comment with */.';
15
+ readonly SYQL1004_UNTERMINATED_IMPORT_PATH: 'Close the import path with a matching double quote.';
16
+ readonly SYQL2001_EXPECTED_TOKEN: 'Insert the token named by the diagnostic at the reported source position.';
17
+ readonly SYQL2002_INVALID_NAME: 'Rename the declaration or parameter to a valid lower-camel identifier.';
18
+ readonly SYQL2003_RESERVED_NAME: 'Rename the declaration or parameter so it does not use a reserved SYQL name.';
19
+ readonly SYQL2004_DUPLICATE_NAME: 'Give each declaration, parameter, group member, and profile a unique name in its scope.';
20
+ readonly SYQL2005_INVALID_IMPORT: 'Use a relative .syql import with explicit imported predicate names.';
21
+ readonly SYQL2006_EMPTY_TEMPLATE: 'Add a SQL expression or statement inside the braces.';
22
+ readonly SYQL2007_FORBIDDEN_SEMICOLON: 'Remove the semicolon from the embedded SQL template.';
23
+ readonly SYQL2008_INVALID_MEMBER: 'Use a member supported by the surrounding SYQL declaration.';
24
+ readonly SYQL2009_INVALID_INTEGER: 'Use a decimal integer within the range named by the diagnostic.';
25
+ readonly SYQL2010_INVALID_PAGE_RANGE: 'Choose default and maximum page sizes that satisfy the declared range.';
26
+ readonly SYQL2011_INVALID_PARAMETER: 'Rewrite the parameter using a supported value, optional, range, group, sort, or limit form.';
27
+ readonly SYQL2012_INVALID_QUERY_BODY: 'Rewrite the query body using the clause order and forms defined by the SYQL grammar.';
28
+ readonly SYQL3001_EXPECTED_EMBEDDED_TOKEN: 'Insert the required token in the embedded SQL construct.';
29
+ readonly SYQL3002_INVALID_BIND: 'Bind a declared input with the :name form in a supported SQL position.';
30
+ readonly SYQL3003_INVALID_PREDICATE_CALL: 'Call the predicate with declared bind arguments and matching parentheses.';
31
+ readonly SYQL3004_INVALID_WHEN: 'Use when with declared controls and a nonempty conditional SQL body.';
32
+ readonly SYQL3005_INVALID_REACTIVE_DIRECTIVE: 'Rewrite the reactive directive using a supported revision-1 form.';
33
+ readonly SYQL3006_FORBIDDEN_TEMPLATE_NODE: 'Remove the conditional or predicate construct from this SQL context.';
34
+ readonly SYQL3007_UNEXPECTED_BRACE: 'Remove the unmatched brace or close the surrounding embedded construct.';
35
+ readonly SYQL3008_FORBIDDEN_PARAMETER_FORM: 'Use a value bind in this context instead of a range, group, sort, or limit control.';
36
+ readonly SYQL4001_IMPORT_OUTSIDE_ROOT: 'Move the imported file under the configured query root and use a relative path.';
37
+ readonly SYQL4002_MODULE_NOT_FOUND: 'Create the imported .syql file or correct the relative import path.';
38
+ readonly SYQL4003_IMPORT_CYCLE: 'Remove one import edge so predicate modules form an acyclic graph.';
39
+ readonly SYQL4004_UNKNOWN_PREDICATE: 'Export and import the predicate under the referenced name.';
40
+ readonly SYQL4005_DUPLICATE_IMPORT_TARGET: 'Import each local predicate name once in the module.';
41
+ readonly SYQL4006_DUPLICATE_QUERY: 'Give every query in the project a unique public name.';
42
+ readonly SYQL5001_UNKNOWN_PREDICATE: 'Define the predicate locally or import it under the referenced name.';
43
+ readonly SYQL5002_PREDICATE_CYCLE: 'Remove the recursive predicate call so expansion terminates.';
44
+ readonly SYQL5003_PREDICATE_ARITY: 'Pass exactly the number of bind arguments declared by the predicate.';
45
+ readonly SYQL5004_CLOSED_PREDICATE: 'Declare each external bind as a predicate parameter and pass it at the call site.';
46
+ readonly SYQL5005_UNUSED_PREDICATE_PARAMETER: 'Use the predicate parameter in its body or remove it from the signature.';
47
+ readonly SYQL5006_UNDECLARED_BIND: 'Declare the bind as a query input or predicate parameter.';
48
+ readonly SYQL5007_UNUSED_INPUT: 'Use the query input in SQL or remove it from the public signature.';
49
+ readonly SYQL5008_INVALID_CONTROL: 'Use an optional input, group, sort, or limit name as the control.';
50
+ readonly SYQL5009_MISSING_DOMINANCE: 'Guard every optional bind with a when condition that proves its presence.';
51
+ readonly SYQL5010_UNUSED_CONTROL: 'Use the control in the query body or remove it from the signature.';
52
+ readonly SYQL5011_TYPE_CONFLICT: 'Make every declaration and SQL use of the bind agree on one SYQL type.';
53
+ readonly SYQL6001_INVALID_PLACEMENT: 'Move the SYQL construct to the SQL clause named by the diagnostic.';
54
+ readonly SYQL6002_INVALID_SQL: 'Correct the reported SQLite syntax, table, column, function, or bind error.';
55
+ readonly SYQL6003_NONDETERMINISTIC_SQL: 'Replace nondeterministic SQL with values supplied through query inputs or stored columns.';
56
+ readonly SYQL6004_TYPE_CONFLICT: 'Align the declared input type with the schema column and SQL expression types.';
57
+ readonly SYQL6005_INVALID_SYNC_QUERY: 'Select stable row identity and preserve the scope coverage required for reactive sync.';
58
+ readonly SYQL6006_INVALID_SORT: 'Use declared sort profiles with deterministic ORDER BY terms and a stable tie-breaker.';
59
+ readonly SYQL6007_INVALID_LIMIT: 'Use the declared limit control and keep its default and maximum within the supported range.';
60
+ readonly SYQL6008_INVALID_IDENTITY: 'Declare identity columns that are selected, non-null, and sufficient to identify each result row.';
61
+ readonly SYQL7001_ENUMERATION_LIMIT: 'Use the auto or neutralize backend, reduce control combinations, or raise the explicit compiler limit.';
62
+ readonly SYQL7002_INTERNAL_LOWERING: 'Report the query and diagnostic to the Syncular maintainers.';
63
+ readonly SYQL9001_PROJECT_CONTEXT: 'Open the file under a project with a valid syncular.json, migrations, schema output, and query root.';
64
+ readonly SYQL_RUNTIME_MISSING_REQUIRED_INPUT: 'Pass the required generated-query input.';
65
+ readonly SYQL_RUNTIME_UNKNOWN_INPUT: 'Remove the unknown key from the generated-query input object.';
66
+ readonly SYQL_RUNTIME_INVALID_INPUT: 'Pass a value that matches the generated input type and nullability.';
67
+ readonly SYQL_RUNTIME_INVALID_GROUP: 'Pass either the complete generated group shape or omit the optional group.';
68
+ readonly SYQL_RUNTIME_INVALID_SORT: 'Pass one of the sort profile names exported for the generated query.';
69
+ readonly SYQL_RUNTIME_INVALID_LIMIT: 'Pass an integer within the generated query limit range.';
70
70
  };
71
71
  /** Generate a deterministic JSON-ready code-to-remedy catalog. */
72
72
  export declare function generateSyqlDiagnosticCatalog(): Readonly<Array<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@syncular/typegen",
3
- "version": "0.52.0",
3
+ "version": "0.53.1",
4
4
  "description": "Syncular schema-to-TypeScript type generator and the `syncular` CLI",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Benjamin Kniffler",
@@ -56,9 +56,9 @@
56
56
  "!dist/**/*.test.d.ts"
57
57
  ],
58
58
  "dependencies": {
59
- "@syncular/core": "0.52.0"
59
+ "@syncular/core": "0.53.1"
60
60
  },
61
61
  "devDependencies": {
62
- "@syncular/server": "0.52.0"
62
+ "@syncular/server": "0.53.1"
63
63
  }
64
64
  }