@platforma-open/milaboratories.software-ptabler.schema 1.6.0 → 1.7.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.
@@ -242,12 +242,12 @@ export interface SubstringExpression {
242
242
  type: 'substring';
243
243
  /** The expression whose string value will be used. */
244
244
  value: Expression;
245
- /** The starting position (0-indexed). */
246
- start: number;
247
- /** The length of the substring. Mutually exclusive with 'end'. */
248
- length?: number;
249
- /** The end position of the substring (exclusive). Mutually exclusive with 'length'. */
250
- end?: number;
245
+ /** The starting position (0-indexed). Should evaluate to a number. */
246
+ start: Expression;
247
+ /** The length of the substring. Mutually exclusive with 'end'. Should evaluate to a number. */
248
+ length?: Expression;
249
+ /** The end position of the substring (exclusive). Mutually exclusive with 'length'. Should evaluate to a number. */
250
+ end?: Expression;
251
251
  }
252
252
  /**
253
253
  * Represents a string replacement operation.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platforma-open/milaboratories.software-ptabler.schema",
3
- "version": "1.6.0",
3
+ "version": "1.7.0",
4
4
  "description": "Type definitions for PTabler",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",
@@ -321,12 +321,12 @@ export interface SubstringExpression {
321
321
  type: 'substring';
322
322
  /** The expression whose string value will be used. */
323
323
  value: Expression;
324
- /** The starting position (0-indexed). */
325
- start: number;
326
- /** The length of the substring. Mutually exclusive with 'end'. */
327
- length?: number;
328
- /** The end position of the substring (exclusive). Mutually exclusive with 'length'. */
329
- end?: number;
324
+ /** The starting position (0-indexed). Should evaluate to a number. */
325
+ start: Expression;
326
+ /** The length of the substring. Mutually exclusive with 'end'. Should evaluate to a number. */
327
+ length?: Expression;
328
+ /** The end position of the substring (exclusive). Mutually exclusive with 'length'. Should evaluate to a number. */
329
+ end?: Expression;
330
330
  }
331
331
 
332
332
  /**