From a65c71b7ec9dd7f4fc96a8600599a6f67ac71292 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9?= Date: Thu, 15 Jan 2026 16:57:14 +0000 Subject: [PATCH 01/13] =?UTF-8?q?=F0=9F=A4=96=20Merge=20PR=20#74342=20[nod?= =?UTF-8?q?e]=20process:=20restore=20original=20overload=20by=20@Renegade3?= =?UTF-8?q?34?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- types/node/process.d.ts | 6 +++--- types/node/v20/process.d.ts | 6 +++--- types/node/v22/process.d.ts | 6 +++--- types/node/v24/process.d.ts | 6 +++--- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/types/node/process.d.ts b/types/node/process.d.ts index c924f935d8de7b..2d12c9cf3f224f 100644 --- a/types/node/process.d.ts +++ b/types/node/process.d.ts @@ -1908,6 +1908,8 @@ declare module "node:process" { */ send?( message: any, + sendHandle?: SendHandle, + options?: MessageOptions, callback?: (error: Error | null) => void, ): boolean; send?( @@ -1917,9 +1919,7 @@ declare module "node:process" { ): boolean; send?( message: any, - sendHandle: SendHandle, - options: MessageOptions, - callback?: (error: Error | null) => void, + callback: (error: Error | null) => void, ): boolean; /** * If the Node.js process is spawned with an IPC channel (see the `Child Process` and `Cluster` documentation), the `process.disconnect()` method will close the diff --git a/types/node/v20/process.d.ts b/types/node/v20/process.d.ts index feb9be79a75739..a120b0e5b4c678 100644 --- a/types/node/v20/process.d.ts +++ b/types/node/v20/process.d.ts @@ -1714,6 +1714,8 @@ declare module "process" { */ send?( message: any, + sendHandle?: SendHandle, + options?: MessageOptions, callback?: (error: Error | null) => void, ): boolean; send?( @@ -1723,9 +1725,7 @@ declare module "process" { ): boolean; send?( message: any, - sendHandle: SendHandle, - options: MessageOptions, - callback?: (error: Error | null) => void, + callback: (error: Error | null) => void, ): boolean; /** * If the Node.js process is spawned with an IPC channel (see the `Child Process` and `Cluster` documentation), the `process.disconnect()` method will close the diff --git a/types/node/v22/process.d.ts b/types/node/v22/process.d.ts index 456239fa052575..8dd1d1de61c057 100644 --- a/types/node/v22/process.d.ts +++ b/types/node/v22/process.d.ts @@ -1787,6 +1787,8 @@ declare module "process" { */ send?( message: any, + sendHandle?: SendHandle, + options?: MessageOptions, callback?: (error: Error | null) => void, ): boolean; send?( @@ -1796,9 +1798,7 @@ declare module "process" { ): boolean; send?( message: any, - sendHandle: SendHandle, - options: MessageOptions, - callback?: (error: Error | null) => void, + callback: (error: Error | null) => void, ): boolean; /** * If the Node.js process is spawned with an IPC channel (see the `Child Process` and `Cluster` documentation), the `process.disconnect()` method will close the diff --git a/types/node/v24/process.d.ts b/types/node/v24/process.d.ts index 3e54911b41c69b..b6576885a98324 100644 --- a/types/node/v24/process.d.ts +++ b/types/node/v24/process.d.ts @@ -1786,6 +1786,8 @@ declare module "process" { */ send?( message: any, + sendHandle?: SendHandle, + options?: MessageOptions, callback?: (error: Error | null) => void, ): boolean; send?( @@ -1795,9 +1797,7 @@ declare module "process" { ): boolean; send?( message: any, - sendHandle: SendHandle, - options: MessageOptions, - callback?: (error: Error | null) => void, + callback: (error: Error | null) => void, ): boolean; /** * If the Node.js process is spawned with an IPC channel (see the `Child Process` and `Cluster` documentation), the `process.disconnect()` method will close the From bbdc2b58a18b85749116de09a5059f3f3399ccdb Mon Sep 17 00:00:00 2001 From: Renato Ribeiro <57230682+Henato@users.noreply.github.com> Date: Thu, 15 Jan 2026 16:24:53 -0300 Subject: [PATCH 02/13] =?UTF-8?q?=F0=9F=A4=96=20Merge=20PR=20#74344=20feat?= =?UTF-8?q?:=20update=20@nginstack/jsunit=20definitions=20by=20@Henato?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Renato Fernandes --- .../lib/AggregatedTestResult.d.ts | 5 +++-- .../lib/LegacyAssertMethods.d.ts | 4 ++-- types/nginstack__jsunit/lib/TestCaseEvent.d.ts | 2 +- types/nginstack__jsunit/lib/TestRunner.d.ts | 16 +++++++++------- .../nginstack__jsunit/lib/TestSourceScanner.d.ts | 2 +- types/nginstack__jsunit/lib/TestSuite.d.ts | 10 ++++++++-- types/nginstack__jsunit/lib/TestSuiteRunner.d.ts | 10 ++++++---- .../nginstack__jsunit/nginstack__jsunit-tests.ts | 8 ++++---- types/nginstack__jsunit/package.json | 4 ++-- 9 files changed, 36 insertions(+), 25 deletions(-) diff --git a/types/nginstack__jsunit/lib/AggregatedTestResult.d.ts b/types/nginstack__jsunit/lib/AggregatedTestResult.d.ts index f5243dde3d0e00..70ee64e0bb606a 100644 --- a/types/nginstack__jsunit/lib/AggregatedTestResult.d.ts +++ b/types/nginstack__jsunit/lib/AggregatedTestResult.d.ts @@ -2,7 +2,7 @@ export = AggregatedTestResult; declare function AggregatedTestResult(numTotalTests: number): void; declare class AggregatedTestResult { constructor(numTotalTests: number); - testResults: Array; + testResults: Array; numTotalTests: number; numPendingTests: number; startTime: number; @@ -12,6 +12,7 @@ declare class AggregatedTestResult { numFailedTests: number; numErrorTests: number; numPassedTests: number; + maxErrorsReached: boolean; addResult(testResult: TestResult): void; formatTxtReport(): string; formatHtmlReport(): string; @@ -20,4 +21,4 @@ declare class AggregatedTestResult { declare namespace AggregatedTestResult { export { TestResult }; } -type TestResult = import("@nginstack/jsunit/lib/TestResult"); +type TestResult = import('@nginstack/jsunit/lib/TestResult'); diff --git a/types/nginstack__jsunit/lib/LegacyAssertMethods.d.ts b/types/nginstack__jsunit/lib/LegacyAssertMethods.d.ts index 8116e2ca70d7dc..ff448bee0a01e8 100644 --- a/types/nginstack__jsunit/lib/LegacyAssertMethods.d.ts +++ b/types/nginstack__jsunit/lib/LegacyAssertMethods.d.ts @@ -8,13 +8,13 @@ export function checkEqualNumbers( expected: number, actual: number, delta: number, - msg: string, + msg: string ): void; export function checkNotEqualNumbers( expected: number, actual: number, delta: number, - msg: string, + msg: string ): void; export function checkEqualDates(expected: Date, actual: Date, msg: string): void; export function checkNotEqualDates(expected: Date, actual: Date, msg: string): void; diff --git a/types/nginstack__jsunit/lib/TestCaseEvent.d.ts b/types/nginstack__jsunit/lib/TestCaseEvent.d.ts index 8826458af96fa0..4557dabdcb25d4 100644 --- a/types/nginstack__jsunit/lib/TestCaseEvent.d.ts +++ b/types/nginstack__jsunit/lib/TestCaseEvent.d.ts @@ -12,4 +12,4 @@ declare class TestCaseEvent { declare namespace TestCaseEvent { export { AggregatedTestResult }; } -type AggregatedTestResult = import("./AggregatedTestResult"); +type AggregatedTestResult = import('./AggregatedTestResult'); diff --git a/types/nginstack__jsunit/lib/TestRunner.d.ts b/types/nginstack__jsunit/lib/TestRunner.d.ts index 68ae909caceb8b..7a96ba978f1de6 100644 --- a/types/nginstack__jsunit/lib/TestRunner.d.ts +++ b/types/nginstack__jsunit/lib/TestRunner.d.ts @@ -5,6 +5,7 @@ declare function TestRunner(options: { vfsFile?: number | number[]; products?: number[]; env?: Record; + runtime?: string; }): void; declare class TestRunner { constructor(options: { @@ -13,25 +14,26 @@ declare class TestRunner { vfsFile?: number | number[]; products?: number[]; env?: Record; + runtime?: string; }); + runtime_: string; env_: Record; testSuites: TestSuite[]; testSuitesPerTestCaseId_: Record; private logger_; breakOnFailure: boolean; - cluster: import("@nginstack/engine/lib/cluster/EngineCluster"); + maxTotalErrors: number; private readVfsTests_; private readLocalTests_; private logAndEmitEvent_; private runTestsLocally_; - private runTestsOnCluster_; runTests(testIds: string[]): AggregatedTestResult; runAllTests(options: { reverseOrder?: boolean }): AggregatedTestResult; } declare namespace TestRunner { - export { TestCase, TestResult }; + export { TestResult, TestCase }; } -import TestSuite = require("./TestSuite.js"); -import AggregatedTestResult = require("./AggregatedTestResult.js"); -type TestResult = import("./TestResult"); -type TestCase = import("./TestSuite").TestCase; +import TestSuite = require('./TestSuite.js'); +import AggregatedTestResult = require('./AggregatedTestResult.js'); +type TestResult = import('./TestResult'); +type TestCase = import('./TestSuite').TestCase; diff --git a/types/nginstack__jsunit/lib/TestSourceScanner.d.ts b/types/nginstack__jsunit/lib/TestSourceScanner.d.ts index a48da3fd173d81..a9c44f675a49a8 100644 --- a/types/nginstack__jsunit/lib/TestSourceScanner.d.ts +++ b/types/nginstack__jsunit/lib/TestSourceScanner.d.ts @@ -14,7 +14,7 @@ declare class TestSourceScanner { declare namespace TestSourceScanner { export { TestCasePosition }; } -import JSScanner = require("@nginstack/engine/lib/compiler/ijs/JSScanner.js"); +import JSScanner = require('@nginstack/engine/lib/compiler/ijs/JSScanner.js'); interface TestCasePosition { line: number; column: number; diff --git a/types/nginstack__jsunit/lib/TestSuite.d.ts b/types/nginstack__jsunit/lib/TestSuite.d.ts index de8ac676e5437e..2626a95ae04be8 100644 --- a/types/nginstack__jsunit/lib/TestSuite.d.ts +++ b/types/nginstack__jsunit/lib/TestSuite.d.ts @@ -13,6 +13,7 @@ declare class TestSuite { private logger_; private testCaseMethods_; testCases: TestCase[]; + initializationError: InitializationError; packageName: string; private packageName_; product: number | null; @@ -29,9 +30,9 @@ declare class TestSuite { tearDown(): void; } declare namespace TestSuite { - export { findPackageName, formatSuiteName, formatTestCaseId, TestCase }; + export { formatSuiteName, formatTestCaseId, findPackageName, TestCase, InitializationError }; } -import DBKey = require("@nginstack/engine/lib/dbkey/DBKey.js"); +import DBKey = require('@nginstack/engine/lib/dbkey/DBKey.js'); declare function formatSuiteName(filePath: string): string; declare function formatTestCaseId(suiteId: string, testCaseName: string): string; declare function findPackageName(path: string): string; @@ -40,4 +41,9 @@ interface TestCase { name: string; line: number; column: number; + initializationError?: InitializationError; +} +interface InitializationError { + message: string; + stack: string; } diff --git a/types/nginstack__jsunit/lib/TestSuiteRunner.d.ts b/types/nginstack__jsunit/lib/TestSuiteRunner.d.ts index 8a54d333d13c6b..3c3cba105a3377 100644 --- a/types/nginstack__jsunit/lib/TestSuiteRunner.d.ts +++ b/types/nginstack__jsunit/lib/TestSuiteRunner.d.ts @@ -4,7 +4,8 @@ declare function TestSuiteRunner( options: { trackerId?: string; env?: Record; - }, + runtime?: string; + } ): void; declare class TestSuiteRunner { constructor( @@ -12,7 +13,8 @@ declare class TestSuiteRunner { options: { trackerId?: string; env?: Record; - }, + runtime?: string; + } ); private suite_; private isUnitTest_; @@ -26,5 +28,5 @@ declare class TestSuiteRunner { declare namespace TestSuiteRunner { export { TestSuite }; } -import TestResult = require("./TestResult.js"); -type TestSuite = import("./TestSuite"); +import TestResult = require('./TestResult.js'); +type TestSuite = import('./TestSuite'); diff --git a/types/nginstack__jsunit/nginstack__jsunit-tests.ts b/types/nginstack__jsunit/nginstack__jsunit-tests.ts index ec9b08d5594daf..2b123adc5ead51 100644 --- a/types/nginstack__jsunit/nginstack__jsunit-tests.ts +++ b/types/nginstack__jsunit/nginstack__jsunit-tests.ts @@ -1,6 +1,6 @@ -import TestSuite = require("@nginstack/jsunit/lib/TestSuite"); +import TestSuite = require('@nginstack/jsunit/lib/TestSuite'); -const suite = new TestSuite("fileId"); // $ExpectType TestSuite +const suite = new TestSuite('fileId'); // $ExpectType TestSuite suite.version; // $ExpectType number suite.filePath; // $ExpectType string @@ -10,12 +10,12 @@ suite.fileEncoding; // $ExpectType string suite.id; // $ExpectType string suite.testCases; // $ExpectType TestCase[] -suite.getTestCase("*"); // $ExpectType TestCase +suite.getTestCase('*'); // $ExpectType TestCase suite.update(); // $ExpectType void suite.setUp(); // $ExpectType void suite.tearDown(); // $ExpectType void function getVersion(): string { - return "72.0.1"; + return '81.0.1'; } getVersion(); // $ExpectType string diff --git a/types/nginstack__jsunit/package.json b/types/nginstack__jsunit/package.json index cd566d5d94ddf9..39872e3b4f80a9 100644 --- a/types/nginstack__jsunit/package.json +++ b/types/nginstack__jsunit/package.json @@ -1,9 +1,9 @@ { "private": true, "name": "@types/nginstack__jsunit", - "version": "72.0.9999", + "version": "81.0.9999", "projects": [ - "https://dev.azure.com/nginstack/nginstack" + "https://github.com/nginstack/nginstack" ], "dependencies": { "@types/nginstack__engine": "*" From 9fd5819547cdc49e431598fe8473a48b00c6ac9d Mon Sep 17 00:00:00 2001 From: TypeScript Bot Date: Thu, 15 Jan 2026 19:25:38 +0000 Subject: [PATCH 03/13] =?UTF-8?q?=F0=9F=A4=96=20dprint=20fmt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- types/nginstack__jsunit/lib/AggregatedTestResult.d.ts | 4 ++-- types/nginstack__jsunit/lib/LegacyAssertMethods.d.ts | 4 ++-- types/nginstack__jsunit/lib/TestCaseEvent.d.ts | 2 +- types/nginstack__jsunit/lib/TestRunner.d.ts | 10 +++++----- types/nginstack__jsunit/lib/TestSourceScanner.d.ts | 2 +- types/nginstack__jsunit/lib/TestSuite.d.ts | 4 ++-- types/nginstack__jsunit/lib/TestSuiteRunner.d.ts | 8 ++++---- types/nginstack__jsunit/nginstack__jsunit-tests.ts | 8 ++++---- 8 files changed, 21 insertions(+), 21 deletions(-) diff --git a/types/nginstack__jsunit/lib/AggregatedTestResult.d.ts b/types/nginstack__jsunit/lib/AggregatedTestResult.d.ts index 70ee64e0bb606a..4491d683a2e260 100644 --- a/types/nginstack__jsunit/lib/AggregatedTestResult.d.ts +++ b/types/nginstack__jsunit/lib/AggregatedTestResult.d.ts @@ -2,7 +2,7 @@ export = AggregatedTestResult; declare function AggregatedTestResult(numTotalTests: number): void; declare class AggregatedTestResult { constructor(numTotalTests: number); - testResults: Array; + testResults: Array; numTotalTests: number; numPendingTests: number; startTime: number; @@ -21,4 +21,4 @@ declare class AggregatedTestResult { declare namespace AggregatedTestResult { export { TestResult }; } -type TestResult = import('@nginstack/jsunit/lib/TestResult'); +type TestResult = import("@nginstack/jsunit/lib/TestResult"); diff --git a/types/nginstack__jsunit/lib/LegacyAssertMethods.d.ts b/types/nginstack__jsunit/lib/LegacyAssertMethods.d.ts index ff448bee0a01e8..8116e2ca70d7dc 100644 --- a/types/nginstack__jsunit/lib/LegacyAssertMethods.d.ts +++ b/types/nginstack__jsunit/lib/LegacyAssertMethods.d.ts @@ -8,13 +8,13 @@ export function checkEqualNumbers( expected: number, actual: number, delta: number, - msg: string + msg: string, ): void; export function checkNotEqualNumbers( expected: number, actual: number, delta: number, - msg: string + msg: string, ): void; export function checkEqualDates(expected: Date, actual: Date, msg: string): void; export function checkNotEqualDates(expected: Date, actual: Date, msg: string): void; diff --git a/types/nginstack__jsunit/lib/TestCaseEvent.d.ts b/types/nginstack__jsunit/lib/TestCaseEvent.d.ts index 4557dabdcb25d4..8826458af96fa0 100644 --- a/types/nginstack__jsunit/lib/TestCaseEvent.d.ts +++ b/types/nginstack__jsunit/lib/TestCaseEvent.d.ts @@ -12,4 +12,4 @@ declare class TestCaseEvent { declare namespace TestCaseEvent { export { AggregatedTestResult }; } -type AggregatedTestResult = import('./AggregatedTestResult'); +type AggregatedTestResult = import("./AggregatedTestResult"); diff --git a/types/nginstack__jsunit/lib/TestRunner.d.ts b/types/nginstack__jsunit/lib/TestRunner.d.ts index 7a96ba978f1de6..efc7c9a00726ef 100644 --- a/types/nginstack__jsunit/lib/TestRunner.d.ts +++ b/types/nginstack__jsunit/lib/TestRunner.d.ts @@ -31,9 +31,9 @@ declare class TestRunner { runAllTests(options: { reverseOrder?: boolean }): AggregatedTestResult; } declare namespace TestRunner { - export { TestResult, TestCase }; + export { TestCase, TestResult }; } -import TestSuite = require('./TestSuite.js'); -import AggregatedTestResult = require('./AggregatedTestResult.js'); -type TestResult = import('./TestResult'); -type TestCase = import('./TestSuite').TestCase; +import TestSuite = require("./TestSuite.js"); +import AggregatedTestResult = require("./AggregatedTestResult.js"); +type TestResult = import("./TestResult"); +type TestCase = import("./TestSuite").TestCase; diff --git a/types/nginstack__jsunit/lib/TestSourceScanner.d.ts b/types/nginstack__jsunit/lib/TestSourceScanner.d.ts index a9c44f675a49a8..a48da3fd173d81 100644 --- a/types/nginstack__jsunit/lib/TestSourceScanner.d.ts +++ b/types/nginstack__jsunit/lib/TestSourceScanner.d.ts @@ -14,7 +14,7 @@ declare class TestSourceScanner { declare namespace TestSourceScanner { export { TestCasePosition }; } -import JSScanner = require('@nginstack/engine/lib/compiler/ijs/JSScanner.js'); +import JSScanner = require("@nginstack/engine/lib/compiler/ijs/JSScanner.js"); interface TestCasePosition { line: number; column: number; diff --git a/types/nginstack__jsunit/lib/TestSuite.d.ts b/types/nginstack__jsunit/lib/TestSuite.d.ts index 2626a95ae04be8..2eaa838b21103e 100644 --- a/types/nginstack__jsunit/lib/TestSuite.d.ts +++ b/types/nginstack__jsunit/lib/TestSuite.d.ts @@ -30,9 +30,9 @@ declare class TestSuite { tearDown(): void; } declare namespace TestSuite { - export { formatSuiteName, formatTestCaseId, findPackageName, TestCase, InitializationError }; + export { findPackageName, formatSuiteName, formatTestCaseId, InitializationError, TestCase }; } -import DBKey = require('@nginstack/engine/lib/dbkey/DBKey.js'); +import DBKey = require("@nginstack/engine/lib/dbkey/DBKey.js"); declare function formatSuiteName(filePath: string): string; declare function formatTestCaseId(suiteId: string, testCaseName: string): string; declare function findPackageName(path: string): string; diff --git a/types/nginstack__jsunit/lib/TestSuiteRunner.d.ts b/types/nginstack__jsunit/lib/TestSuiteRunner.d.ts index 3c3cba105a3377..d2a11e81cfb679 100644 --- a/types/nginstack__jsunit/lib/TestSuiteRunner.d.ts +++ b/types/nginstack__jsunit/lib/TestSuiteRunner.d.ts @@ -5,7 +5,7 @@ declare function TestSuiteRunner( trackerId?: string; env?: Record; runtime?: string; - } + }, ): void; declare class TestSuiteRunner { constructor( @@ -14,7 +14,7 @@ declare class TestSuiteRunner { trackerId?: string; env?: Record; runtime?: string; - } + }, ); private suite_; private isUnitTest_; @@ -28,5 +28,5 @@ declare class TestSuiteRunner { declare namespace TestSuiteRunner { export { TestSuite }; } -import TestResult = require('./TestResult.js'); -type TestSuite = import('./TestSuite'); +import TestResult = require("./TestResult.js"); +type TestSuite = import("./TestSuite"); diff --git a/types/nginstack__jsunit/nginstack__jsunit-tests.ts b/types/nginstack__jsunit/nginstack__jsunit-tests.ts index 2b123adc5ead51..853e19c7daa50b 100644 --- a/types/nginstack__jsunit/nginstack__jsunit-tests.ts +++ b/types/nginstack__jsunit/nginstack__jsunit-tests.ts @@ -1,6 +1,6 @@ -import TestSuite = require('@nginstack/jsunit/lib/TestSuite'); +import TestSuite = require("@nginstack/jsunit/lib/TestSuite"); -const suite = new TestSuite('fileId'); // $ExpectType TestSuite +const suite = new TestSuite("fileId"); // $ExpectType TestSuite suite.version; // $ExpectType number suite.filePath; // $ExpectType string @@ -10,12 +10,12 @@ suite.fileEncoding; // $ExpectType string suite.id; // $ExpectType string suite.testCases; // $ExpectType TestCase[] -suite.getTestCase('*'); // $ExpectType TestCase +suite.getTestCase("*"); // $ExpectType TestCase suite.update(); // $ExpectType void suite.setUp(); // $ExpectType void suite.tearDown(); // $ExpectType void function getVersion(): string { - return '81.0.1'; + return "81.0.1"; } getVersion(); // $ExpectType string From 6d89fc2d65f8443206872411101837e5c525da78 Mon Sep 17 00:00:00 2001 From: Renato Ribeiro <57230682+Henato@users.noreply.github.com> Date: Thu, 15 Jan 2026 16:59:21 -0300 Subject: [PATCH 04/13] =?UTF-8?q?=F0=9F=A4=96=20Merge=20PR=20#74343=20feat?= =?UTF-8?q?:=20update=20@nginstack/engine=20definitions=20by=20@Henato?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Renato Fernandes --- types/nginstack__engine/index.d.ts | 14 ++- types/nginstack__engine/keys/AuthScopes.d.ts | 11 +-- types/nginstack__engine/keys/Classes.d.ts | 6 +- .../nginstack__engine/lib/classdef/Field.d.ts | 61 +++++++++---- .../lib/classdef/FieldGroup.d.ts | 4 + .../lib/classdef/FieldGroupSet.d.ts | 6 +- .../lib/classdef/ValidationType.d.ts | 17 ++++ .../lib/cloud/ObjectStorage.d.ts | 22 +++-- .../cloud/getStorageServiceFromLobClass.d.ts | 6 ++ .../lib/cluster/EngineCluster.d.ts | 13 --- .../lib/cluster/EngineClusterNode.d.ts | 18 ---- .../lib/compress/ImageCompressorProfile.d.ts | 14 +++ .../lib/database/DBBackup.d.ts | 62 ++++++------- .../lib/database/LargeObject.d.ts | 9 +- .../lib/database/LargeObjectContent.d.ts | 16 ++++ .../lib/database/LobRecordIterator.d.ts | 2 - .../lib/database/LobStorage.d.ts | 16 +++- .../lib/dataset/DataSet.d.ts | 10 +-- .../lib/date/DateFormat.d.ts | 12 +-- .../nginstack__engine/lib/date/incMonth.d.ts | 2 +- types/nginstack__engine/lib/email/Email.d.ts | 2 + .../lib/email/ImapClient.d.ts | 81 +++++++++++++++++ types/nginstack__engine/lib/email/Pop3.d.ts | 3 +- .../nginstack__engine/lib/event/Emitter.d.ts | 6 +- .../lib/file-storage/FileStorage.d.ts | 19 +++- .../lib/file-storage/LobFileStorage.d.ts | 8 +- .../lib/file-storage/VfsFileStorage.d.ts | 8 +- .../lib/geo/AngleFormat.d.ts | 1 + .../lib/geo/LatitudeFormat.d.ts | 1 + .../lib/geo/LongitudeFormat.d.ts | 1 + types/nginstack__engine/lib/http/Request.d.ts | 7 +- .../lib/http/RequestBody.d.ts | 2 + .../nginstack__engine/lib/http/Response.d.ts | 4 +- .../lib/i18n/NumberFormat.d.ts | 41 --------- .../lib/image/ImageInfo.d.ts | 51 +++++++++++ types/nginstack__engine/lib/io/File.d.ts | 4 + .../lib/monitoring/AlertSeverity.d.ts | 5 -- .../lib/monitoring/EngineInfo.d.ts | 7 +- .../lib/monitoring/SeverityLevel.d.ts | 6 ++ .../multipart/MultipartFormDataReader.d.ts | 1 + .../lib/number/NumberFormat.d.ts | 5 ++ .../lib/number/formatNumber.d.ts | 20 +++++ .../lib/number/parseNumber.d.ts | 10 +++ .../lib/product/ProductManager.d.ts | 1 + .../lib/router/Controller.d.ts | 1 + .../lib/security/PermissionManager.d.ts | 8 +- .../lib/security/PermissionSchema.d.ts | 3 +- .../lib/security/Security.d.ts | 20 ++++- .../lib/session/Session.d.ts | 1 + .../lib/settings/GeneralSettings.d.ts | 2 +- .../lib/string/validateString.d.ts | 22 +++-- .../lib/testing/http/MockRequest.d.ts | 1 + .../lib/vfs/VirtualFileSystem.d.ts | 4 +- .../lib/xlsx/XLSXWriter.d.ts | 87 +++++++++++++++++++ .../nginstack__engine/lib/xml/TokenType.d.ts | 7 +- .../lib/xml/XMLStreamReader.d.ts | 1 + .../nginstack__engine-tests.ts | 6 +- types/nginstack__engine/package.json | 4 +- 58 files changed, 583 insertions(+), 199 deletions(-) create mode 100644 types/nginstack__engine/lib/classdef/ValidationType.d.ts create mode 100644 types/nginstack__engine/lib/cloud/getStorageServiceFromLobClass.d.ts delete mode 100644 types/nginstack__engine/lib/cluster/EngineCluster.d.ts delete mode 100644 types/nginstack__engine/lib/cluster/EngineClusterNode.d.ts create mode 100644 types/nginstack__engine/lib/compress/ImageCompressorProfile.d.ts create mode 100644 types/nginstack__engine/lib/database/LargeObjectContent.d.ts create mode 100644 types/nginstack__engine/lib/email/ImapClient.d.ts delete mode 100644 types/nginstack__engine/lib/i18n/NumberFormat.d.ts create mode 100644 types/nginstack__engine/lib/image/ImageInfo.d.ts delete mode 100644 types/nginstack__engine/lib/monitoring/AlertSeverity.d.ts create mode 100644 types/nginstack__engine/lib/monitoring/SeverityLevel.d.ts create mode 100644 types/nginstack__engine/lib/number/NumberFormat.d.ts create mode 100644 types/nginstack__engine/lib/number/formatNumber.d.ts create mode 100644 types/nginstack__engine/lib/number/parseNumber.d.ts create mode 100644 types/nginstack__engine/lib/xlsx/XLSXWriter.d.ts diff --git a/types/nginstack__engine/index.d.ts b/types/nginstack__engine/index.d.ts index 39b0ddae5f74ca..8a4444a8b8c7a9 100644 --- a/types/nginstack__engine/index.d.ts +++ b/types/nginstack__engine/index.d.ts @@ -85,14 +85,16 @@ /// /// /// +/// +/// /// -/// /// /// /// /// /// /// +/// /// /// /// @@ -123,6 +125,7 @@ /// /// /// +/// /// /// /// @@ -211,6 +214,7 @@ /// /// /// +/// /// /// /// @@ -269,12 +273,12 @@ /// /// /// -/// /// /// /// /// /// +/// /// /// /// @@ -298,9 +302,9 @@ /// /// /// -/// /// /// +/// /// /// /// @@ -312,6 +316,9 @@ /// /// /// +/// +/// +/// /// /// /// @@ -454,6 +461,7 @@ /// /// /// +/// /// /// /// diff --git a/types/nginstack__engine/keys/AuthScopes.d.ts b/types/nginstack__engine/keys/AuthScopes.d.ts index ad0600cc6c57d6..db8285b297f8cc 100644 --- a/types/nginstack__engine/keys/AuthScopes.d.ts +++ b/types/nginstack__engine/keys/AuthScopes.d.ts @@ -1,11 +1,12 @@ -export let LICENSING: number; export let ALTER_SCHEMA: number; -export let FILE_SYNCHRONIZER: number; -export let DISCARD_DATABASE_CACHES: number; -export let ENGINE_SHUTDOWN: number; export let CHANGE_USER_PASSWORD: number; export let CHANGE_USER_PROFILE_IMAGE: number; +export let DISCARD_DATABASE_CACHES: number; +export let ENGINE_SHUTDOWN: number; export let EXTERNAL_ACCESS: number; +export let FILE_SYNCHRONIZER: number; +export let ISSUE_IMPERSONATION_TOKENS: number; +export let LICENSING: number; export let MANAGE_PERMISSIONS: number; -export let VIEW_TECHNICAL_INFO: number; export let SYSTEM_UPDATE: number; +export let VIEW_TECHNICAL_INFO: number; diff --git a/types/nginstack__engine/keys/Classes.d.ts b/types/nginstack__engine/keys/Classes.d.ts index d10d5eb2184f00..27b90a0ea204ae 100644 --- a/types/nginstack__engine/keys/Classes.d.ts +++ b/types/nginstack__engine/keys/Classes.d.ts @@ -10,8 +10,6 @@ export let AZURE_SERVICE_ACCOUNTS: number; export let BLOCKED_SUPPORT_USERS: number; export let CLASSDEF_MANAGER_STARTUP: number; export let CLASSES: number; -export let CLUSTERS_AND_ENGINES: number; -export let CLUSTERS: number; export let COMPRESSION_ALGORITHMS: number; export let COMPUTER_SECURITY_POLICIES: number; export let CRYPTO_KEY_ALGORITHMS: number; @@ -44,6 +42,8 @@ export let HOSTS: number; export let HTTP_ROUTES: number; export let IDENTITY_PROVIDERS_ICONS: number; export let IDENTITY_PROVIDERS: number; +export let IMAGE_COMPRESSION_PROFILES: number; +export let IMAGE_COMPRESSION_RULES: number; export let IMAGE_MIME_TYPES: number; export let IMAGE_RELATIONS: number; export let INDEXES: number; @@ -80,6 +80,7 @@ export let SECURITY_POLICIES: number; export let SERVERS: number; export let SERVICE_ACCOUNTS: number; export let SERVICES: number; +export let SEVERITY_LEVELS: number; export let SIGNING_ALGORITHMS: number; export let SMTP_SECURITY_MODES: number; export let SMTP_SERVERS: number; @@ -94,6 +95,7 @@ export let SYSTEM_TABLES: number; export let SYSTEM: number; export let TESTS: number; export let TEXT_MIME_TYPES: number; +export let TRANSACTION_LOG_RETENTION_RULES: number; export let USER_ACCOUNT_TYPES: number; export let USER_SECURITY_POLICIES: number; export let USER_STATUSES: number; diff --git a/types/nginstack__engine/lib/classdef/Field.d.ts b/types/nginstack__engine/lib/classdef/Field.d.ts index d71544b5cc0a35..c65033887c1e63 100644 --- a/types/nginstack__engine/lib/classdef/Field.d.ts +++ b/types/nginstack__engine/lib/classdef/Field.d.ts @@ -19,7 +19,8 @@ declare class Field { dataSetType: typeof DataSetDataType; charLength: number | null; private defaultDisplayFormats_; - dateFormat: typeof DateFormat; + private defaultDisplayFormatsByName_; + dateFormat: DateFormat; size: number; order: number; readOnly: typeof ReadOnlyMode | boolean; @@ -54,13 +55,18 @@ declare class Field { detailFieldNames: string; masterDeleteAction: typeof MasterDeleteAction; detailFilter: string; - private _propertiesToAssign; - private _ownControlledProperties; - protected _notifyObjectPropertyChange(name: string): void; + private propertiesToAssign_; + private propertiesToAssignWithDeepClone_; + private ownControlledProperties_; + protected notifyObjectPropertyChange_(name: string): void; + private _notifyObjectPropertyChange; private groupName; group: FieldGroup; + validationType: ValidationType; + private validationType_; protected inheritedClassDefEvents_: string[]; protected init_(name: string, type: string, opt_size?: number): void; + private suggestValidationType_; protected registerEvents_(): void; protected changeFieldType_(type: string, fieldName: string): void; private type_; @@ -68,11 +74,8 @@ declare class Field { assignObjectsTo(field: any): void; assign(field: Field): void; assignTo(field: Field): void; - displayFormat: - | typeof DateFormat - | typeof LatitudeFormat - | typeof LongitudeFormat - | typeof AngleFormat; + displayFormat: DateFormat | LatitudeFormat | LongitudeFormat | AngleFormat | NumberFormat; + private displayFormat_; onGetOptions: Event; onLookupDisplay: Event; onBeforeLookupAddResult: Event; @@ -81,7 +84,6 @@ declare class Field { onBeforeChange: Event; onAfterChange: Event; onValidate: Event; - private checkCoordinateRange_; protected loadClassDefIfNeeded_(): void; classDef: any; private checkOptions_; @@ -103,17 +105,46 @@ declare class Field { isTime(): boolean; } declare namespace Field { - export { Event, AdapterDescriptor, Limit }; + export { + Event, + AdapterDescriptor, + Limit, + DateFormat, + LatitudeFormat, + LongitudeFormat, + AngleFormat, + NumberFormat, + ValidationType, + }; } import DatabaseDataType = require('../database/DatabaseDataType.js'); import DataSetDataType = require('../dataset/DataSetDataType.js'); -import DateFormat = require('../date/DateFormat.js'); import ReadOnlyMode = require('./ReadOnlyMode.js'); import MasterDeleteAction = require('./MasterDeleteAction.js'); import FieldGroup = require('./FieldGroup.js'); -import LatitudeFormat = require('../geo/LatitudeFormat.js'); -import LongitudeFormat = require('../geo/LongitudeFormat.js'); -import AngleFormat = require('../geo/AngleFormat.js'); type Event = import('../event/Event'); type AdapterDescriptor = import('../event/AdapterDescriptor'); type Limit = typeof import('../range/Limit'); +type DateFormat = import('../date/DateFormat').DateFormatType; +type LatitudeFormat = import('../geo/LatitudeFormat').LatitudeFormatType; +type LongitudeFormat = import('../geo/LongitudeFormat').LongitudeFormatType; +type AngleFormat = import('../geo/AngleFormat').AngleFormatType; +type NumberFormat = import('../number/NumberFormat').NumberFormatType; +type ValidationType = + | 'string' + | 'int64' + | 'int32' + | 'number' + | 'date' + | 'email' + | 'cep' + | 'time' + | 'phone' + | 'pis' + | 'cpf' + | 'cnpj' + | 'cpfcnpj' + | 'latitude' + | 'longitude' + | 'angle' + | 'boolean'; diff --git a/types/nginstack__engine/lib/classdef/FieldGroup.d.ts b/types/nginstack__engine/lib/classdef/FieldGroup.d.ts index f89d64fb1ef710..d6a165fe6ed7f9 100644 --- a/types/nginstack__engine/lib/classdef/FieldGroup.d.ts +++ b/types/nginstack__engine/lib/classdef/FieldGroup.d.ts @@ -6,16 +6,20 @@ declare class FieldGroup { label: string; id: number; name: string; + private label_; parent: any; private css; collapsed: boolean; autoSanitize: boolean; + private unnamed; + private unnamed_; private setFieldsProperties; private reservedWords; private parseStylePropertyName; private getStyleText; stringify(): string; private toString; + private toObject; private order; private createId_; assign(obj: FieldGroup): void; diff --git a/types/nginstack__engine/lib/classdef/FieldGroupSet.d.ts b/types/nginstack__engine/lib/classdef/FieldGroupSet.d.ts index 5bd6d246eb5bbd..214dd8fec67ae9 100644 --- a/types/nginstack__engine/lib/classdef/FieldGroupSet.d.ts +++ b/types/nginstack__engine/lib/classdef/FieldGroupSet.d.ts @@ -2,9 +2,9 @@ export = FieldGroupSet; declare function FieldGroupSet(): void; declare class FieldGroupSet { items: any; - add(fieldGroup: any): void; + add(fieldGroup: import('@nginstack/engine/lib/classdef/FieldGroup')): void; private _find; - findByName(name: string): any; - assign(obj: any): void; + findByName(name: string): import('@nginstack/engine/lib/classdef/FieldGroup'); + assign(obj: FieldGroupSet): void; clone(): FieldGroupSet; } diff --git a/types/nginstack__engine/lib/classdef/ValidationType.d.ts b/types/nginstack__engine/lib/classdef/ValidationType.d.ts new file mode 100644 index 00000000000000..6aadb9d1268f55 --- /dev/null +++ b/types/nginstack__engine/lib/classdef/ValidationType.d.ts @@ -0,0 +1,17 @@ +export const ANGLE = 'angle'; +export const BOOLEAN = 'boolean'; +export const CEP = 'cep'; +export const CNPJ = 'cnpj'; +export const CPF = 'cpf'; +export const CPF_CNPJ = 'cpfcnpj'; +export const DATE = 'date'; +export const EMAIL = 'email'; +export const INT32 = 'int32'; +export const INT64 = 'int64'; +export const LATITUDE = 'latitude'; +export const LONGITUDE = 'longitude'; +export const NUMBER = 'number'; +export const PHONE = 'phone'; +export const PIS = 'pis'; +export const STRING = 'string'; +export const TIME = 'time'; diff --git a/types/nginstack__engine/lib/cloud/ObjectStorage.d.ts b/types/nginstack__engine/lib/cloud/ObjectStorage.d.ts index db925dcfe0e7f1..9399f37d59429e 100644 --- a/types/nginstack__engine/lib/cloud/ObjectStorage.d.ts +++ b/types/nginstack__engine/lib/cloud/ObjectStorage.d.ts @@ -15,18 +15,12 @@ declare class ObjectStorage { list(prefix?: string): ObjectInfo[]; info(location: string): ObjectInfo; delete(location: string): void; + exists(location: string): boolean; download(location: string): DownloadResult; + readOnly: boolean; } declare namespace ObjectStorage { - export { - fromConfig, - encryptSecret, - GoogleOptions, - AmazonOptions, - AzureOptions, - UploadOptions, - ObjectInfo, - }; + export { fromConfig, GoogleOptions, AmazonOptions, AzureOptions, UploadOptions, ObjectInfo }; } declare function DownloadResult(): void; declare class DownloadResult { @@ -44,8 +38,13 @@ declare class DownloadResult { toText(): string; toFile(destination: string): void; } -declare function fromConfig(key: number): ObjectStorage; -declare function encryptSecret(serviceAccount: DBKey | number, secret: string): string; +declare function fromConfig( + key: number, + options?: { + ignoreOwnership?: boolean; + takeOwnership?: boolean; + } +): ObjectStorage; interface GoogleOptions { bucketName: string; serviceAccountKey?: string; @@ -85,4 +84,3 @@ interface ObjectInfo { cacheControl?: string; metadata?: Record; } -import DBKey = require('../dbkey/DBKey.js'); diff --git a/types/nginstack__engine/lib/cloud/getStorageServiceFromLobClass.d.ts b/types/nginstack__engine/lib/cloud/getStorageServiceFromLobClass.d.ts new file mode 100644 index 00000000000000..1068d580f48be5 --- /dev/null +++ b/types/nginstack__engine/lib/cloud/getStorageServiceFromLobClass.d.ts @@ -0,0 +1,6 @@ +declare namespace _exports { + export { DataSet }; +} +declare function _exports(classKey: number, rules?: DataSet): number | null; +export = _exports; +type DataSet = import('@nginstack/engine/lib/dataset/DataSet'); diff --git a/types/nginstack__engine/lib/cluster/EngineCluster.d.ts b/types/nginstack__engine/lib/cluster/EngineCluster.d.ts deleted file mode 100644 index b1ddbc8c21d4d5..00000000000000 --- a/types/nginstack__engine/lib/cluster/EngineCluster.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -export = EngineCluster; -declare function EngineCluster(): void; -declare class EngineCluster { - nodes: EngineClusterNode[]; - key: number; - name: string; - dbName: string; - assign(engineCluster: Partial): void; -} -declare namespace EngineCluster { - function fromConfig(key: number): EngineCluster; -} -import EngineClusterNode = require('./EngineClusterNode.js'); diff --git a/types/nginstack__engine/lib/cluster/EngineClusterNode.d.ts b/types/nginstack__engine/lib/cluster/EngineClusterNode.d.ts deleted file mode 100644 index 08a1f0fa9d2832..00000000000000 --- a/types/nginstack__engine/lib/cluster/EngineClusterNode.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -export = EngineClusterNode; -declare function EngineClusterNode(): void; -declare class EngineClusterNode { - addresses: string[]; - httpsPorts: number[]; - httpPorts: number[]; - engineId: string; - name: string; - dbName: string; - maxThreads: number; - tryNewConnection(): Connection; - tryNewDatabase(): Database; -} -declare namespace EngineClusterNode { - function fromConfig(key: number): EngineClusterNode; -} -import Connection = require('../connection/Connection.js'); -import Database = require('../database/Database.js'); diff --git a/types/nginstack__engine/lib/compress/ImageCompressorProfile.d.ts b/types/nginstack__engine/lib/compress/ImageCompressorProfile.d.ts new file mode 100644 index 00000000000000..443efa95b50b0f --- /dev/null +++ b/types/nginstack__engine/lib/compress/ImageCompressorProfile.d.ts @@ -0,0 +1,14 @@ +export = ImageCompressorProfile; +declare function ImageCompressorProfile(profile: number): void; +declare class ImageCompressorProfile { + constructor(profile: number); + private rules_; + private mimeTypes_; + private profileKey_; + profileKey: number; + private findRuleForMimeType_; + getCompressor(mimeType: number | string): ImageCompressor | null; + getCompressorFromFile(filePath: string): ImageCompressor | null; + getCompressorFromBytes(content: ArrayBuffer | Uint8Array | string): ImageCompressor | null; +} +import ImageCompressor = require('./ImageCompressor.js'); diff --git a/types/nginstack__engine/lib/database/DBBackup.d.ts b/types/nginstack__engine/lib/database/DBBackup.d.ts index 71dd4e57f1a352..5eb0f283a87235 100644 --- a/types/nginstack__engine/lib/database/DBBackup.d.ts +++ b/types/nginstack__engine/lib/database/DBBackup.d.ts @@ -1,37 +1,41 @@ export = DBBackup; -declare function DBBackup( - backupFileName: string, - dbServerHost: string, - dbName: string, - userId?: string, - password?: string -): void; +declare function DBBackup(options: { + serverHost: string; + dbName: string; + dbUserName: string; + dbPassword: string; + userName?: string; + password?: string; +}): void; declare class DBBackup { - constructor( - backupFileName: string, - dbServerHost: string, - dbName: string, - userId?: string, - password?: string - ); - backup(ignoredTables: string): void; - partialBackup(initialLogDate: Date, ignoredTables: string): void; - restore(options: number): RestoreResult; + constructor(options: { + serverHost: string; + dbName: string; + dbUserName: string; + dbPassword: string; + userName?: string; + password?: string; + }); + backup( + fileName: string, + options?: { + ignoredTables?: string; + logStartDate?: Date; + } + ): void; + restore( + fileName: string, + options: { + ignoreDuplicateKeys: boolean; + skipExistingTables: boolean; + mergeLogTable: boolean; + dryRun: boolean; + } + ): RestoreResult; } declare namespace DBBackup { - export { - IGNORE_DUPLICATED_KEYS, - IGNORE_EXISTING_TABLES, - MERGE_ILOG_TABLE, - DRY_RUN, - RestoredTable, - RestoreResult, - }; + export { RestoredTable, RestoreResult }; } -declare let IGNORE_DUPLICATED_KEYS: number; -declare let IGNORE_EXISTING_TABLES: number; -declare let MERGE_ILOG_TABLE: number; -declare let DRY_RUN: number; interface RestoredTable { name: string; recordCount: number; diff --git a/types/nginstack__engine/lib/database/LargeObject.d.ts b/types/nginstack__engine/lib/database/LargeObject.d.ts index 777cf2589a6e3f..cfccf4b3c3c196 100644 --- a/types/nginstack__engine/lib/database/LargeObject.d.ts +++ b/types/nginstack__engine/lib/database/LargeObject.d.ts @@ -1,13 +1,16 @@ export = LargeObject; -declare function LargeObject(): void; +declare function LargeObject(rawContent: LargeObjectContent): void; declare class LargeObject { + constructor(rawContent: LargeObjectContent); + rawContent_: LargeObjectContent; + extraAttributes: any; key: number; name: string; - content: string; mimeType: number | null; - extraAttributes: any; + content: string; toString(): string; toUint8Array(): Uint8Array; toArrayBuffer(): ArrayBuffer; toText(): string; } +import LargeObjectContent = require('./LargeObjectContent.js'); diff --git a/types/nginstack__engine/lib/database/LargeObjectContent.d.ts b/types/nginstack__engine/lib/database/LargeObjectContent.d.ts new file mode 100644 index 00000000000000..cbec8b2e12de2b --- /dev/null +++ b/types/nginstack__engine/lib/database/LargeObjectContent.d.ts @@ -0,0 +1,16 @@ +export = LargeObjectContent; +declare function LargeObjectContent(content?: LargeObjectContent): void; +declare class LargeObjectContent { + constructor(content?: LargeObjectContent); + data: string | null; + storagePath: string | null; + storageProvider: number; + encoding: number | null; + compression: number | null; + private decode_; + private decompress_; + toText(): string; + toBinaryString(): string; + toUint8Array(): Uint8Array; + private getContentAsBinaryString_; +} diff --git a/types/nginstack__engine/lib/database/LobRecordIterator.d.ts b/types/nginstack__engine/lib/database/LobRecordIterator.d.ts index 599028b810c928..c959f0f582c326 100644 --- a/types/nginstack__engine/lib/database/LobRecordIterator.d.ts +++ b/types/nginstack__engine/lib/database/LobRecordIterator.d.ts @@ -3,8 +3,6 @@ declare function LobRecordIterator(ds: DataSet): void; declare class LobRecordIterator { constructor(ds: DataSet); private ds_; - private decode_; - private decompress_; next(): { done: boolean; value: LargeObject; diff --git a/types/nginstack__engine/lib/database/LobStorage.d.ts b/types/nginstack__engine/lib/database/LobStorage.d.ts index dc7e4ee7f4b118..0410529b8cd815 100644 --- a/types/nginstack__engine/lib/database/LobStorage.d.ts +++ b/types/nginstack__engine/lib/database/LobStorage.d.ts @@ -3,15 +3,29 @@ declare function LobStorage(classKey: number | DBKey): void; declare class LobStorage { constructor(classKey: number | DBKey); classKey: number; + private storageProviderKey_; + private storageProvider_; + private getStorageProvider; private batchChanges_; + private transactionChanges_; + private storageChanges_; logChanges: boolean; beginBatch(): void; endBatch(): DataSet; + rollbackBatch(): void; + startTransaction(): void; + commitTransaction(): number; + private beforeApplyUpdates_; + private afterApplyUpdates_; + rollbackTransaction(): void; + private appendStorageChange_; + private rollbackStorageChanges_; private compress_; private encode_; private tryCompress_; private prepareContent_; private getDataSetForUpdate_; + private getDataSet_; private getContentSize_; addLob( fileName: string, @@ -38,6 +52,7 @@ declare class LobStorage { deleteLob(key: number): boolean; setLobExtraAttributes(key: number, extraAttributes: any): void; getLobExtraAttributes(key: number): any; + private getStorageProviderFromKey_; } declare namespace LobStorage { export { Object, LargeObject }; @@ -48,6 +63,5 @@ interface Object { content: string; compression: number; encoding: number; - mimeType: number; } type LargeObject = import('./LargeObject'); diff --git a/types/nginstack__engine/lib/dataset/DataSet.d.ts b/types/nginstack__engine/lib/dataset/DataSet.d.ts index 4e7171adc5a2d5..16f71b0ac345ca 100644 --- a/types/nginstack__engine/lib/dataset/DataSet.d.ts +++ b/types/nginstack__engine/lib/dataset/DataSet.d.ts @@ -27,6 +27,7 @@ declare class DataSet { tableName: string; automaticApplyUpdates: boolean; integrityCheck: boolean; + stringOverflowMode: string; modified: boolean; localDBInfo: any; recordCount: number; @@ -99,7 +100,8 @@ declare class DataSet { fieldId: number | string, options?: GetFieldOptions | number ): string | number | Date | boolean | null; - setField(fieldId: number | string, value: any, opt_ignoreInvalidFieldId?: boolean): void; + setField(fieldId: number | string, value: any, ignoreInvalidFieldId?: boolean): void; + setFields(fields: Record | string[], values?: any[]): void; applyUpdates(waitDBCacheSync?: boolean, logChanges?: boolean): number; cancelUpdates(opt_key?: number): void; copyStructure(sourceDataSet: DataSet, fieldNames?: string): void; @@ -166,8 +168,7 @@ declare namespace DataSet { export { getIntegerDataType, setIntegerDataType, - setStringOverflowMode, - getStringOverflowMode, + defaultStringOverflowMode, MAX_FIELDS_PER_TABLE, File, MemoryStream, @@ -198,8 +199,7 @@ declare class DataSetFieldDefs { import DBKey = require('../dbkey/DBKey.js'); declare function getIntegerDataType(): DataSetFieldType; declare function setIntegerDataType(type: DataSetFieldType): void; -declare function setStringOverflowMode(mode: string): void; -declare function getStringOverflowMode(): string; +declare let defaultStringOverflowMode: string; declare let MAX_FIELDS_PER_TABLE: number; type File = import('../io/File'); type MemoryStream = import('../io/MemoryStream'); diff --git a/types/nginstack__engine/lib/date/DateFormat.d.ts b/types/nginstack__engine/lib/date/DateFormat.d.ts index 3ee955558ccb6b..d1a27222efd2c1 100644 --- a/types/nginstack__engine/lib/date/DateFormat.d.ts +++ b/types/nginstack__engine/lib/date/DateFormat.d.ts @@ -1,9 +1,9 @@ -export const DDMMYYYY = 'DDMMYYYY'; -export const DDMM = 'DDMM'; -export const MMYYYY = 'MMYYYY'; -export const WWYYYY = 'WWYYYY'; -export const YYYYWW = 'YYYYWW'; -export const MMMYYYY = 'MMMYYYY'; +export const DDMMYYYY = -1892603089; +export const DDMM = -1892603090; +export const MMYYYY = -1892603088; +export const WWYYYY = -1892603087; +export const YYYYWW = -1892603057; +export const MMMYYYY = -1892603055; export type DateFormatType = | typeof DDMMYYYY | typeof DDMM diff --git a/types/nginstack__engine/lib/date/incMonth.d.ts b/types/nginstack__engine/lib/date/incMonth.d.ts index 7fa720a9737ec4..7b644f19600294 100644 --- a/types/nginstack__engine/lib/date/incMonth.d.ts +++ b/types/nginstack__engine/lib/date/incMonth.d.ts @@ -1,2 +1,2 @@ -declare function _exports(date: Date, opt_months?: number): Date; +declare function _exports(date: Date, months?: number): Date; export = _exports; diff --git a/types/nginstack__engine/lib/email/Email.d.ts b/types/nginstack__engine/lib/email/Email.d.ts index d4ef0eac4a6cee..834e1ec3a5386b 100644 --- a/types/nginstack__engine/lib/email/Email.d.ts +++ b/types/nginstack__engine/lib/email/Email.d.ts @@ -10,6 +10,8 @@ declare class Email { replyToAddress: string; userName: string; password: string; + accessToken: string; + authType: string; subject: string; content: string; htmlContent: string; diff --git a/types/nginstack__engine/lib/email/ImapClient.d.ts b/types/nginstack__engine/lib/email/ImapClient.d.ts new file mode 100644 index 00000000000000..692ebc4b4f1277 --- /dev/null +++ b/types/nginstack__engine/lib/email/ImapClient.d.ts @@ -0,0 +1,81 @@ +export = ImapClient; +declare function ImapClient(domain: string, port?: number): void; +declare class ImapClient { + constructor(domain: string, port?: number); + authenticate( + type: AuthenticationType, + options: PlainAuthentication | XOAuth2Authentication + ): void; + login(user: string, password: string): void; + logout(): void; + listMailboxes(referenceName?: string, mailboxPattern?: string): Mailbox[]; + selectMailbox(mailbox: string): void; + createMailbox(mailbox: string): void; + renameMailbox(oldName: string, newName: string): void; + deleteMailbox(mailbox: string): void; + copy(idSet: string | number | number[], destinationMailbox: string): void; + uidCopy(uidSet: string | number | number[], destinationMailbox: string): void; + move(idSet: string | number | number[], destinationMailbox: string): void; + uidMove(uidSet: string | number | number[], destinationMailbox: string): void; + expunge(): number[]; + uidExpunge(uidSet: string | number | number[]): number[]; + store(idSet: string | number | number[], query: string): ImapEmail[]; + uidStore(uidSet: string | number | number[], query: string): void; + fetch(idSet: string | number | number[], query?: string): ImapEmail[]; + uidFetch(uidSet: string | number | number[], query?: string): ImapEmail[]; + search(query: string | SearchOptions): number[]; + uidSearch(query: string | SearchOptions): number[]; +} +declare namespace ImapClient { + export { + Mailbox, + SearchOptions, + PlainAuthentication, + XOAuth2Authentication, + AuthenticationType, + ImapAttachment, + }; +} +declare function ImapEmail(): void; +declare class ImapEmail { + messageId: number; + uid: number; + size: number; + internalDate: Date; + date: Date; + flags: string[]; + subject: string; + to: string; + from: string; + plainBody: string; + htmlBody: string; + getAttachments(): ImapAttachment[]; +} +interface Mailbox { + name: string; + delimiter: string; + attributes: string[]; +} +interface SearchOptions { + since: Date; + before: Date; + subject: string; + from: string; + to: string; + flags: string[]; +} +interface PlainAuthentication { + user: string; + password: string; +} +interface XOAuth2Authentication { + user: string; + accessToken: string; +} +type AuthenticationType = 'plain' | 'xoauth2'; +interface ImapAttachment { + filename: string; + contentType: string; + textContent: string; + data: Uint8Array; +} diff --git a/types/nginstack__engine/lib/email/Pop3.d.ts b/types/nginstack__engine/lib/email/Pop3.d.ts index 3187196461d64b..19e7d06e278071 100644 --- a/types/nginstack__engine/lib/email/Pop3.d.ts +++ b/types/nginstack__engine/lib/email/Pop3.d.ts @@ -14,7 +14,8 @@ declare class Pop3 { private sendCommand_; private authLogin_; private authApop_; - login(username: string, password: string): void; + private authXoauth2_; + login(username: string, credential: string): void; logout(): void; noop(): void; reset(): void; diff --git a/types/nginstack__engine/lib/event/Emitter.d.ts b/types/nginstack__engine/lib/event/Emitter.d.ts index cb386129a0acfe..e2be5fa18ab88e 100644 --- a/types/nginstack__engine/lib/event/Emitter.d.ts +++ b/types/nginstack__engine/lib/event/Emitter.d.ts @@ -11,7 +11,7 @@ declare class Emitter { ) => boolean; duplicationHandling: any; private listeners_; - on(type: string, listener: (arg0: Event) => any): void; + on(type: string, listener: (arg0: Event) => any): Emitter; replaceListeners( type: string, listener: Listener | ((arg0: Event, arg1: (arg0: Event) => any) => any) @@ -20,8 +20,8 @@ declare class Emitter { unregisterEventType(type: string | string[]): void; listeners(opt_type?: string): Listener[]; listenerHandlers(type: string): Array<(arg0: Event) => any>; - off(type: string, listener: Listener | ((arg0: Event) => any)): void; - offAll(opt_type?: string): void; + off(type: string, listener: Listener | ((arg0: Event) => any)): Emitter; + offAll(opt_type?: string): Emitter; emit(event: Event): boolean; assignListeners(emitter: Emitter, opt_type?: string | string[]): void; addListenersFromEmitter(emitter: Emitter, opt_type?: string): void; diff --git a/types/nginstack__engine/lib/file-storage/FileStorage.d.ts b/types/nginstack__engine/lib/file-storage/FileStorage.d.ts index 4f8adf520f107a..de7a1c732a6ad2 100644 --- a/types/nginstack__engine/lib/file-storage/FileStorage.d.ts +++ b/types/nginstack__engine/lib/file-storage/FileStorage.d.ts @@ -14,6 +14,9 @@ declare class FileStorage { private maxFileSize_; private maxTotalSize_; private hasMain_; + private imageAutoCompress_; + private imageCompressionProfile_; + private mimeTypes_; private dataRel_; private fileInfos_; private fileFieldName_; @@ -28,6 +31,13 @@ declare class FileStorage { maxFileSize: number; maxTotalSize: number; cacheControl: string; + imageAutoCompress: boolean; + imageCompressionProfile: number; + private getImageCompressorProfile_; + private compressIfImage_; + private findFileExtension_; + private fixUniqueFileNameCollision_; + private changeUniqueFileNameExtension_; private tryGetFileInfo_; userHasViewPermission(fileKey: number, userKey?: number): boolean; tryGetFileUrl(fileKey: number): string; @@ -37,7 +47,7 @@ declare class FileStorage { updateExtraFileAttributes(fileKey: number, attributes: any, originalName?: string): void; getFileAttributes(fileKey: number): any; updateFileAttributes(fileKey: number, attributes: any, originalName?: string): void; - formatUniqueFileName(originalFileName: string, attributes: any): string; + formatUniqueFileName(originalFileName: string, attributes: any, fileExtension?: string): string; findLinkedFiles(key: number | DBKey, filters?: any): FileInfo[]; getLinkedFilesSize(key: number | DBKey): number; getLinkedFilesCount(key: number | DBKey): number; @@ -60,7 +70,7 @@ declare class FileStorage { ): void; } declare namespace FileStorage { - export { StorageKind, FileInfo, DBKey, DataSet }; + export { StorageKind, FileInfo, DBKey, DataSet, ImageCompressionResult }; } type StorageKind = string; declare namespace StorageKind { @@ -72,3 +82,8 @@ import MemoryStream = require('../io/MemoryStream.js'); type FileInfo = import('./FileInfo'); type DBKey = import('../dbkey/DBKey'); type DataSet = import('../dataset/DataSet'); +interface ImageCompressionResult { + content: string | File | MemoryStream; + contentType: string; + compressionProfile: number | null; +} diff --git a/types/nginstack__engine/lib/file-storage/LobFileStorage.d.ts b/types/nginstack__engine/lib/file-storage/LobFileStorage.d.ts index 1b24bb87bafd82..021cc15596f6bc 100644 --- a/types/nginstack__engine/lib/file-storage/LobFileStorage.d.ts +++ b/types/nginstack__engine/lib/file-storage/LobFileStorage.d.ts @@ -11,7 +11,13 @@ declare class LobFileStorage { findFileByName(fileName: string): FileInfo; getFilesSize(fileKeys: number[]): number; addFile(fileName: string, content: string | File | MemoryStream): number; - updateFile(fileKey: number, content: string | File | MemoryStream): void; + updateFile( + fileKey: number, + content: string | File | MemoryStream, + options?: { + fileName?: string; + } + ): void; } import FileInfo = require('./FileInfo.js'); import File = require('../io/File.js'); diff --git a/types/nginstack__engine/lib/file-storage/VfsFileStorage.d.ts b/types/nginstack__engine/lib/file-storage/VfsFileStorage.d.ts index eea301eed7caee..b4122ceb4835dc 100644 --- a/types/nginstack__engine/lib/file-storage/VfsFileStorage.d.ts +++ b/types/nginstack__engine/lib/file-storage/VfsFileStorage.d.ts @@ -11,7 +11,13 @@ declare class VfsFileStorage { findFileByName(fileName: string): FileInfo; getFilesSize(fileKeys: number[]): number; addFile(fileName: string, content: string | File | MemoryStream): number; - updateFile(fileKey: number, content: string | File | MemoryStream): void; + updateFile( + fileKey: number, + content: string | File | MemoryStream, + options?: { + fileName?: string; + } + ): void; } declare namespace VfsFileStorage { export { File, MemoryStream }; diff --git a/types/nginstack__engine/lib/geo/AngleFormat.d.ts b/types/nginstack__engine/lib/geo/AngleFormat.d.ts index b43b7fb9019dc3..e407960ae84918 100644 --- a/types/nginstack__engine/lib/geo/AngleFormat.d.ts +++ b/types/nginstack__engine/lib/geo/AngleFormat.d.ts @@ -1,2 +1,3 @@ export const DDD = -1892603107; export const DDD_DD = -1892603106; +export type AngleFormatType = typeof DDD | typeof DDD_DD; diff --git a/types/nginstack__engine/lib/geo/LatitudeFormat.d.ts b/types/nginstack__engine/lib/geo/LatitudeFormat.d.ts index c3b788093500e9..b93a3fbcceae16 100644 --- a/types/nginstack__engine/lib/geo/LatitudeFormat.d.ts +++ b/types/nginstack__engine/lib/geo/LatitudeFormat.d.ts @@ -1,3 +1,4 @@ export const DDD_DDDDD = -1892603112; export const DDD_MM_MMM_DIR = -1892603111; export const DDD_MM_SS_S_DIR = -1892603110; +export type LatitudeFormatType = typeof DDD_DDDDD | typeof DDD_MM_MMM_DIR | typeof DDD_MM_SS_S_DIR; diff --git a/types/nginstack__engine/lib/geo/LongitudeFormat.d.ts b/types/nginstack__engine/lib/geo/LongitudeFormat.d.ts index 6a28570b4b3f8c..97be6e4943ce49 100644 --- a/types/nginstack__engine/lib/geo/LongitudeFormat.d.ts +++ b/types/nginstack__engine/lib/geo/LongitudeFormat.d.ts @@ -1,3 +1,4 @@ export const DDD_DDDDD = -1892602552; export const DDD_MM_MMM_DIR = -1892602551; export const DDD_MM_SS_S_DIR = -1892602550; +export type LongitudeFormatType = typeof DDD_DDDDD | typeof DDD_MM_MMM_DIR | typeof DDD_MM_SS_S_DIR; diff --git a/types/nginstack__engine/lib/http/Request.d.ts b/types/nginstack__engine/lib/http/Request.d.ts index e0eac1e360bc36..29206cc8839ba1 100644 --- a/types/nginstack__engine/lib/http/Request.d.ts +++ b/types/nginstack__engine/lib/http/Request.d.ts @@ -33,9 +33,12 @@ declare class Request { getHeader(name: any): string; read(size: number): string; isHttps(trustProxy?: boolean): boolean; + saveToStream(stream: File | MemoryStream): void; } declare namespace Request { - export { DBKey }; + export { DBKey, File, MemoryStream }; } import RequestBody = require('./RequestBody.js'); -type DBKey = any; +type DBKey = import('../dbkey/DBKey'); +type File = import('../io/File'); +type MemoryStream = import('../io/MemoryStream'); diff --git a/types/nginstack__engine/lib/http/RequestBody.d.ts b/types/nginstack__engine/lib/http/RequestBody.d.ts index 161c85e48ab7cc..de8685d9ffb7dc 100644 --- a/types/nginstack__engine/lib/http/RequestBody.d.ts +++ b/types/nginstack__engine/lib/http/RequestBody.d.ts @@ -5,8 +5,10 @@ declare class RequestBody { private request_; asJson(): any; asText(): string; + asFile(): File; } declare namespace RequestBody { export { Request }; } +import File = require('../io/File.js'); type Request = import('./Request'); diff --git a/types/nginstack__engine/lib/http/Response.d.ts b/types/nginstack__engine/lib/http/Response.d.ts index 79f3900ddaccab..0e62c92ca1a95c 100644 --- a/types/nginstack__engine/lib/http/Response.d.ts +++ b/types/nginstack__engine/lib/http/Response.d.ts @@ -15,7 +15,7 @@ declare class Response { setHeader(name: any, value: any): void; getAllHeaders(): any; stop(): void; - redirect(uri: string, opt_permanently?: boolean): void; - stopAndRedirect(uri: string, opt_permanently?: boolean): void; + redirect(uri: string, permanently?: boolean): void; + stopAndRedirect(uri: string, permanently?: boolean): void; send(): void; } diff --git a/types/nginstack__engine/lib/i18n/NumberFormat.d.ts b/types/nginstack__engine/lib/i18n/NumberFormat.d.ts deleted file mode 100644 index 830edc0981d522..00000000000000 --- a/types/nginstack__engine/lib/i18n/NumberFormat.d.ts +++ /dev/null @@ -1,41 +0,0 @@ -export = NumberFormat; -declare function NumberFormat(pattern: number | string): void; -declare class NumberFormat { - constructor(pattern: number | string); - private intlCurrencyCode_; - private maximumIntegerDigits_; - private minimumIntegerDigits_; - private maximumFractionDigits_; - private minimumFractionDigits_; - private minExponentDigits_; - private useSignForPositiveExponent_; - private positivePrefix_; - private positiveSuffix_; - private negativePrefix_; - private negativeSuffix_; - private multiplier_; - private groupingSize_; - private decimalSeparatorAlwaysShown_; - private useExponentialNotation_; - private applyPattern_; - private applyStandardPattern_; - parse(text: string, opt_pos?: number[]): number; - private parseNumber_; - format(number: number): string; - private subformatFixed_; - private addExponentPart_; - private subformatExponential_; - private getDigit_; - private parseAffix_; - private parseTrunk_; -} -declare namespace NumberFormat { - namespace Format { - let DECIMAL: number; - let SCIENTIFIC: number; - let PERCENT: number; - let CURRENCY: number; - let INTEGER: number; - } - type Format = number; -} diff --git a/types/nginstack__engine/lib/image/ImageInfo.d.ts b/types/nginstack__engine/lib/image/ImageInfo.d.ts new file mode 100644 index 00000000000000..c33d55af106a73 --- /dev/null +++ b/types/nginstack__engine/lib/image/ImageInfo.d.ts @@ -0,0 +1,51 @@ +export = ImageInfo; +declare function ImageInfo(): void; +declare class ImageInfo {} +declare namespace ImageInfo { + export { fromFile, fromBytes, ColorType, Orientation, ImageInfoResult }; +} +declare function fromFile(path: string): ImageInfoResult; +declare function fromBytes(bytes: Uint8Array | ArrayBuffer | string): ImageInfoResult; +type ColorType = + | '' + | 'a8' + | 'l1' + | 'la1' + | 'rgb1' + | 'rgba1' + | 'l2' + | 'la2' + | 'rgb2' + | 'rgba2' + | 'l4' + | 'la4' + | 'rgb4' + | 'rgba4' + | 'l8' + | 'rgb8' + | 'rgba8' + | 'l16' + | 'la16' + | 'rgb16' + | 'rgba16' + | 'bgr8' + | 'bgra8'; +type Orientation = + | '' + | 'noTransforms' + | 'rotate90' + | 'rotate180' + | 'rotate270' + | 'flipHorizontal' + | 'flipVertical' + | 'rotate90FlipH' + | 'rotate270FlipH'; +interface ImageInfoResult { + mimeType: string; + width: number; + height: number; + hasAnimation: boolean; + colorType: ColorType; + orientation: Orientation; + exif: Record | null; +} diff --git a/types/nginstack__engine/lib/io/File.d.ts b/types/nginstack__engine/lib/io/File.d.ts index 8e8cccc5629ed6..65f43b0a74ad25 100644 --- a/types/nginstack__engine/lib/io/File.d.ts +++ b/types/nginstack__engine/lib/io/File.d.ts @@ -30,6 +30,7 @@ declare namespace File { createTempFile, createTempDirName, fileFromString, + fileFromStream, stringFromFile, pathAppend, pathSeparator, @@ -41,6 +42,7 @@ declare namespace File { copyDirectory, openForRead, SearchRecord, + MemoryStream, FileListEntry, }; } @@ -62,6 +64,7 @@ declare function fileFromString( content: string | Uint8Array | ArrayBuffer, encoding?: string ): void; +declare function fileFromStream(fileName: string, stream: File | MemoryStream): void; declare function stringFromFile(fileName: string, opt_encoding?: string): string; declare function pathAppend(path: string, append: Array): string; declare let pathSeparator: string; @@ -80,6 +83,7 @@ declare function listEntries( declare function copyDirectory(sourceDir: string, targetDir: string, opt_replace?: boolean): void; declare function openForRead(path: string): File; type SearchRecord = import('./SearchRecord'); +type MemoryStream = import('./MemoryStream'); interface FileListEntry { name: string; size: number; diff --git a/types/nginstack__engine/lib/monitoring/AlertSeverity.d.ts b/types/nginstack__engine/lib/monitoring/AlertSeverity.d.ts deleted file mode 100644 index c8d25dd635ea8d..00000000000000 --- a/types/nginstack__engine/lib/monitoring/AlertSeverity.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export const INFO = 'info'; -export const WARNING = 'warning'; -export const CRITICAL = 'critical'; - -export type AlertSeverityType = typeof INFO | typeof WARNING | typeof CRITICAL; diff --git a/types/nginstack__engine/lib/monitoring/EngineInfo.d.ts b/types/nginstack__engine/lib/monitoring/EngineInfo.d.ts index e91b62201ba217..fb7150fd1a0ea9 100644 --- a/types/nginstack__engine/lib/monitoring/EngineInfo.d.ts +++ b/types/nginstack__engine/lib/monitoring/EngineInfo.d.ts @@ -20,6 +20,7 @@ declare class EngineInfo { instanceId: string; arch: string; platform: string; + serverExecutionMode: string; providerName: string; mainDatabase: string; hostName: string; @@ -29,11 +30,13 @@ declare class EngineInfo { freeDisk: number; openSocketCount: number; openFileCount: number; + alertLevel: SeverityLevelType; } declare namespace EngineInfo { export { fromDataSet, DataSet, + SeverityLevelType, CpuInfo, MemoryStats, DBCacheInfo, @@ -49,6 +52,7 @@ declare namespace EngineInfo { import ApplicationSessionInfo = require('./ApplicationSessionInfo.js'); declare function fromDataSet(engines: DataSet, sessions?: DataSet): EngineInfo; type DataSet = import('../dataset/DataSet'); +type SeverityLevelType = SeverityLevel.SeverityLevelType; interface CpuInfo { modelName: string; vendorId: string; @@ -119,8 +123,9 @@ interface EngineConfig { timeZoneBias: number; } interface EngineAlert { - severity: import('./AlertSeverity.js').AlertSeverityType; + severity: SeverityLevelType; code: string; message: string; engineId: string; } +import SeverityLevel = require('./SeverityLevel.js'); diff --git a/types/nginstack__engine/lib/monitoring/SeverityLevel.d.ts b/types/nginstack__engine/lib/monitoring/SeverityLevel.d.ts new file mode 100644 index 00000000000000..89ec58bf9f77c6 --- /dev/null +++ b/types/nginstack__engine/lib/monitoring/SeverityLevel.d.ts @@ -0,0 +1,6 @@ +export const INFO = 'info'; +export const WARNING = 'warning'; +export const ERROR = 'error'; +export const CRITICAL = 'critical'; + +export type SeverityLevelType = typeof INFO | typeof WARNING | typeof ERROR | typeof CRITICAL; diff --git a/types/nginstack__engine/lib/multipart/MultipartFormDataReader.d.ts b/types/nginstack__engine/lib/multipart/MultipartFormDataReader.d.ts index d1b1dc9e038e90..c86ca949b3d81e 100644 --- a/types/nginstack__engine/lib/multipart/MultipartFormDataReader.d.ts +++ b/types/nginstack__engine/lib/multipart/MultipartFormDataReader.d.ts @@ -15,6 +15,7 @@ declare class MultipartFormDataReader { } ); private content_; + contentStream_: File | Request; private options_; private newLine_; private currentPart_; diff --git a/types/nginstack__engine/lib/number/NumberFormat.d.ts b/types/nginstack__engine/lib/number/NumberFormat.d.ts new file mode 100644 index 00000000000000..b1226649b1e409 --- /dev/null +++ b/types/nginstack__engine/lib/number/NumberFormat.d.ts @@ -0,0 +1,5 @@ +export const DECIMAL = -1892603085; +export const INTEGER = -1892603082; +export const DBKEY = -1898139222; + +export type NumberFormatType = typeof DECIMAL | typeof INTEGER | typeof DBKEY; diff --git a/types/nginstack__engine/lib/number/formatNumber.d.ts b/types/nginstack__engine/lib/number/formatNumber.d.ts new file mode 100644 index 00000000000000..0c98f0257b2490 --- /dev/null +++ b/types/nginstack__engine/lib/number/formatNumber.d.ts @@ -0,0 +1,20 @@ +declare namespace _exports { + export { FormatOptions, LocaleConfig, NumberParts }; +} +declare function _exports(value: number, options: FormatOptions): string; +export = _exports; +interface FormatOptions { + format: number; + locale?: 'pt-br' | 'en-us'; + minPrecision?: number; + maxPrecision?: number; +} +interface LocaleConfig { + thousandSeparator: string; + decimalSeparator: string; +} +interface NumberParts { + integerPart: string; + fractionPart: string; + isNegative: boolean; +} diff --git a/types/nginstack__engine/lib/number/parseNumber.d.ts b/types/nginstack__engine/lib/number/parseNumber.d.ts new file mode 100644 index 00000000000000..28db75603a5bdc --- /dev/null +++ b/types/nginstack__engine/lib/number/parseNumber.d.ts @@ -0,0 +1,10 @@ +declare namespace _exports { + export { ParseOptions }; +} +declare function _exports(value: string, options?: ParseOptions): number; +export = _exports; +interface ParseOptions { + locale?: 'pt-br' | 'en-us'; + minPrecision?: number; + maxPrecision?: number; +} diff --git a/types/nginstack__engine/lib/product/ProductManager.d.ts b/types/nginstack__engine/lib/product/ProductManager.d.ts index 1b359b807a8a9c..0c66462e025aef 100644 --- a/types/nginstack__engine/lib/product/ProductManager.d.ts +++ b/types/nginstack__engine/lib/product/ProductManager.d.ts @@ -3,6 +3,7 @@ declare function ProductManager(): void; declare class ProductManager { createProduct(productInfo: any, userId: string, password: string): string; enableDevelopment(productStream: string, password: string): void; + isDevelopmentEnabled(product: number | DBKey): boolean; getChangeableProducts(userKey: number): any[]; setChangeableProducts(userKey: number, products: any[], passwords: any[]): void; authenticatePassword(product: number, password: string): boolean; diff --git a/types/nginstack__engine/lib/router/Controller.d.ts b/types/nginstack__engine/lib/router/Controller.d.ts index a256de011eebf7..4833cc32cc1320 100644 --- a/types/nginstack__engine/lib/router/Controller.d.ts +++ b/types/nginstack__engine/lib/router/Controller.d.ts @@ -11,6 +11,7 @@ declare class Controller { forbidden(opt_content?: any): RouteResult; badRequest(opt_content?: any): RouteResult; notModified(): RouteResult; + seeOther(url: string): RouteResult; temporaryRedirect(url: string): RouteResult; permanentRedirect(url: string): RouteResult; runAction( diff --git a/types/nginstack__engine/lib/security/PermissionManager.d.ts b/types/nginstack__engine/lib/security/PermissionManager.d.ts index 659abfe7aa337f..64cdb8859895fd 100644 --- a/types/nginstack__engine/lib/security/PermissionManager.d.ts +++ b/types/nginstack__engine/lib/security/PermissionManager.d.ts @@ -3,6 +3,7 @@ declare function PermissionManager(): void; declare class PermissionManager { private schema_; private classDefManager_; + private mimeTypesWithPermissionControl_; private logger_; private NON_PERMISSION_FIELDS_LIST_; private checkIfUserCanManagePermissions_; @@ -22,7 +23,12 @@ declare class PermissionManager { private checkIfPermissionWasNotInherited_; private checkDuplicates_; private checkExtraFiltersUsageOnRolePermissions_; - replicateToDescendants(key: number): number; + replicateToDescendants( + key: number, + options: { + classKeys?: number[]; + } + ): number; insert(assignment: PermissionAssignment): number; update(key: number, assignment: PermissionAssignment): number; remove(key: number): number; diff --git a/types/nginstack__engine/lib/security/PermissionSchema.d.ts b/types/nginstack__engine/lib/security/PermissionSchema.d.ts index 00833e56c2f635..f75bbb5a7ad20b 100644 --- a/types/nginstack__engine/lib/security/PermissionSchema.d.ts +++ b/types/nginstack__engine/lib/security/PermissionSchema.d.ts @@ -6,6 +6,7 @@ declare class PermissionSchema { private declaredFieldsByClass_; private databaseFieldNames_; private classDefManager_; + private mimeTypesWithPermissionControl_; private NON_PERMISSION_FIELDS_; private logger_; private tableCacheForGetFieldValue_; @@ -47,7 +48,7 @@ declare class PermissionSchema { ): any; getFieldsForFile( fileKey: number, - opt_options?: + options?: | { includeNonDatabaseFields: boolean; } diff --git a/types/nginstack__engine/lib/security/Security.d.ts b/types/nginstack__engine/lib/security/Security.d.ts index 9e00e6cdbd5383..4cf59ce4baee75 100644 --- a/types/nginstack__engine/lib/security/Security.d.ts +++ b/types/nginstack__engine/lib/security/Security.d.ts @@ -14,6 +14,7 @@ declare class Security { changePassword(userKey: number, oldPassword: string, newPassword: string): void; setPassword(userKey: any, password: any): void; authenticateUser(userId: string, password: string): number; + authenticateAuthToken(authToken: string): AuthTokenInfo; createAuthToken( userId: string, password: string, @@ -23,7 +24,11 @@ declare class Security { ): string; isAdministrator(userKey: number): boolean; isDeveloper(userKey: number): boolean; - authorizeToken(authToken: import('./AuthToken'), userId: string, password: string): string; + authorizeToken( + authToken: import('./AuthToken'), + userId: string | number | DBKey, + password?: string + ): string; restoreAuthToken(accessToken: string): import('./AuthToken'); updateAuthToken(token: import('./AuthToken'), userId: string, password: string): void; revokeAuthToken(accessToken: string): void; @@ -38,6 +43,7 @@ declare class Security { getUserAndGroupsKeys(userKey: number): any[]; getAuthPolicy(userKey: DBKey | number): number; getAuthPolicyClass(userKey: DBKey | number): DBKey; + encryptSecret(key: DBKey | number, secret: string): string; hasPermissionControl(key: number): boolean; suggestPermissionApplyMode(parent: number): number | null; getMimeTypesWithPermissionControl(): number[]; @@ -46,10 +52,20 @@ declare class Security { userCanModifyRecord(ds: DataSet, userKey?: number): boolean; getUserScopes(userKey: DBKey | number): string[]; userHasScope(userKey: DBKey | number, scope: string | DBKey | number): boolean; + grantScope(assignee: DBKey | number, scope: string | DBKey | number): void; + revokeScope(assignee: DBKey | number, scope: string | DBKey | number): void; } declare namespace Security { - export { getInstance, DataSet }; + export { getInstance, DataSet, AuthTokenInfo }; } import DBKey = require('../dbkey/DBKey.js'); declare function getInstance(): Security; type DataSet = import('../dataset/DataSet'); +interface AuthTokenInfo { + userKey: number; + userName: string; + tokenKey: number; + providerKey: number; + scope: string; + data: string; +} diff --git a/types/nginstack__engine/lib/session/Session.d.ts b/types/nginstack__engine/lib/session/Session.d.ts index 97079c63d3f4be..42ede711ea7f76 100644 --- a/types/nginstack__engine/lib/session/Session.d.ts +++ b/types/nginstack__engine/lib/session/Session.d.ts @@ -12,6 +12,7 @@ declare class Session { realm: string; runtime: string; scope: string; + identityProviderKey: number; clientId: string; trackingId: string; login(userName: string, password: string): boolean; diff --git a/types/nginstack__engine/lib/settings/GeneralSettings.d.ts b/types/nginstack__engine/lib/settings/GeneralSettings.d.ts index 52924eedb51813..50ba4ec33b3fb5 100644 --- a/types/nginstack__engine/lib/settings/GeneralSettings.d.ts +++ b/types/nginstack__engine/lib/settings/GeneralSettings.d.ts @@ -26,7 +26,7 @@ declare function getInstance(): GeneralSettings; interface SettingOptions { type: SettingType; multiple?: boolean; - classKey?: DBKey | number; + classKey?: number; lookupType?: typeof LookupType; } type DataSet = import('../dataset/DataSet'); diff --git a/types/nginstack__engine/lib/string/validateString.d.ts b/types/nginstack__engine/lib/string/validateString.d.ts index c444c594775850..7ca4930e754e4c 100644 --- a/types/nginstack__engine/lib/string/validateString.d.ts +++ b/types/nginstack__engine/lib/string/validateString.d.ts @@ -1,16 +1,22 @@ export = validateString; declare function validateString( value: any, - type: any, - max?: number | Date, - min?: number | Date, - caseType?: string, - classKey?: number, - dateFormat?: DateFormat, + type: string, + options?: { + max?: number | Date; + min?: number | Date; + caseType?: string; + classKey?: number; + displayFormat?: DateFormat | LatitudeFormat | LongitudeFormat | AngleFormat; + locale?: 'pt-br' | 'en-us'; + }, ...args: any[] ): any; declare namespace validateString { - export { registerType, DateFormat }; + export { registerType, DateFormat, LatitudeFormat, LongitudeFormat, AngleFormat }; } -declare function registerType(type: string | string[], handler: any): void; +declare function registerType(type: any): void; type DateFormat = import('../date/DateFormat').DateFormatType; +type LatitudeFormat = import('../geo/LatitudeFormat').LatitudeFormatType; +type LongitudeFormat = import('../geo/LongitudeFormat').LongitudeFormatType; +type AngleFormat = import('../geo/AngleFormat').AngleFormatType; diff --git a/types/nginstack__engine/lib/testing/http/MockRequest.d.ts b/types/nginstack__engine/lib/testing/http/MockRequest.d.ts index 398146750d76c1..6cd26eedd1da5b 100644 --- a/types/nginstack__engine/lib/testing/http/MockRequest.d.ts +++ b/types/nginstack__engine/lib/testing/http/MockRequest.d.ts @@ -24,4 +24,5 @@ declare class MockRequest { private headers_; private getHeader; private read; + saveToStream(stream: any): void; } diff --git a/types/nginstack__engine/lib/vfs/VirtualFileSystem.d.ts b/types/nginstack__engine/lib/vfs/VirtualFileSystem.d.ts index 5219b79ffcd0c4..9a3bd22f83384e 100644 --- a/types/nginstack__engine/lib/vfs/VirtualFileSystem.d.ts +++ b/types/nginstack__engine/lib/vfs/VirtualFileSystem.d.ts @@ -29,9 +29,9 @@ declare class VirtualFileSystem { getFileSize(key: number | DBKey): number; getFilePath(key: number | DBKey): string; formatFilePath(name: string, directory: number | DBKey): string; - fileExists(path: string, opt_baseDirectory?: number): number; + fileExists(path: string, baseDirectory?: number | DBKey): number; startTransaction(): void; - commitTransaction(): void; + commitTransaction(): number; rollbackTransaction(): void; setXFileAttributes(fileKey: number, attributes: any): void; getXFileAttributes(fileKey: number): any; diff --git a/types/nginstack__engine/lib/xlsx/XLSXWriter.d.ts b/types/nginstack__engine/lib/xlsx/XLSXWriter.d.ts new file mode 100644 index 00000000000000..805e0b36f52456 --- /dev/null +++ b/types/nginstack__engine/lib/xlsx/XLSXWriter.d.ts @@ -0,0 +1,87 @@ +export = XLSXWriter; +declare function XLSXWriter(): void; +declare class XLSXWriter { + addWorksheet(name?: string): void; + addFormat(name: string, format: FormatOptions): void; + setColumnWidth(col: number, width: number): void; + writeString(row: number, col: number, str: string, format?: string | FormatOptions): void; + writeURL(row: number, col: number, url: string, format?: string | FormatOptions): void; + writeFormula(row: number, col: number, formula: string, format?: string | FormatOptions): void; + writeNumber(row: number, col: number, value: number, format?: string | FormatOptions): void; + writeInteger(row: number, col: number, value: number, format?: string | FormatOptions): void; + writeBoolean(row: number, col: number, value: boolean, format?: string | FormatOptions): void; + writeDate( + row: number, + col: number, + value: Date | number | string, + format?: string | FormatOptions + ): void; + writeTime(row: number, col: number, value: string, format?: string | FormatOptions): void; + saveToFile(filename: string): void; +} +declare namespace XLSXWriter { + export { + FormatBorder, + HorizontalAlignment, + VerticalAlignment, + ReadingDirection, + Underline, + FontScript, + FormatOptions, + }; +} +type FormatBorder = + | 'none' + | 'thin' + | 'medium' + | 'dashed' + | 'dotted' + | 'thick' + | 'double' + | 'hair' + | 'medium-dashed' + | 'dash-dot' + | 'medium-dash-dot' + | 'dash-dot-dot' + | 'medium-dash-dot-dot' + | 'slant-dash-dot'; +type HorizontalAlignment = + | 'left' + | 'center' + | 'right' + | 'fill' + | 'justify' + | 'center-across' + | 'distributed'; +type VerticalAlignment = 'top' | 'center' | 'bottom' | 'justify' | 'distributed'; +type ReadingDirection = 'left-to-right' | 'right-to-left'; +type Underline = 'single' | 'double' | 'single-accounting' | 'double-accounting'; +type FontScript = 'superscript' | 'subscript'; +interface FormatOptions { + numericFormat?: string; + horizontalAlignment?: HorizontalAlignment; + verticalAlignment?: VerticalAlignment; + textWrap?: boolean; + indentation?: number; + readingDirection?: ReadingDirection; + shrinkToFit?: boolean; + fontType?: string; + fontSize?: number; + fontColor?: string; + bold?: boolean; + italic?: boolean; + underline?: Underline; + strikethrough?: boolean; + fontScript?: FontScript; + cellBorder?: FormatBorder; + bottomBorder?: FormatBorder; + topBorder?: FormatBorder; + leftBorder?: FormatBorder; + rightBorder?: FormatBorder; + borderColor?: string; + borderTopColor?: string; + borderLeftColor?: string; + borderRightColor?: string; + borderBottomColor?: string; + backgroundColor?: string; +} diff --git a/types/nginstack__engine/lib/xml/TokenType.d.ts b/types/nginstack__engine/lib/xml/TokenType.d.ts index a354fc9381aab2..289479bef9f04d 100644 --- a/types/nginstack__engine/lib/xml/TokenType.d.ts +++ b/types/nginstack__engine/lib/xml/TokenType.d.ts @@ -1,6 +1,6 @@ export = TokenType; declare function TokenType(): void; -type TokenType = any; +declare class TokenType {} declare namespace TokenType { export { NO_TOKEN, @@ -13,6 +13,7 @@ declare namespace TokenType { PROCESSING_INSTRUCTION, DOCTYPE_DEFINITION, CDATA, + GENERAL_REF, END_DOCUMENT, ERROR, TokenString, @@ -28,6 +29,7 @@ declare let COMMENT: string; declare let PROCESSING_INSTRUCTION: string; declare let DOCTYPE_DEFINITION: string; declare let CDATA: string; +declare let GENERAL_REF: string; declare let END_DOCUMENT: string; declare let ERROR: string; type TokenString = @@ -41,4 +43,5 @@ type TokenString = | 'ProcessingInstruction' | 'DoctypeDefinition' | 'CData' - | 'EndDocument'; + | 'EndDocument' + | 'GeneralRef'; diff --git a/types/nginstack__engine/lib/xml/XMLStreamReader.d.ts b/types/nginstack__engine/lib/xml/XMLStreamReader.d.ts index 861374f8336387..cbbea908305530 100644 --- a/types/nginstack__engine/lib/xml/XMLStreamReader.d.ts +++ b/types/nginstack__engine/lib/xml/XMLStreamReader.d.ts @@ -28,6 +28,7 @@ declare class XMLStreamReader { isProcessingInstruction(): boolean; isDTD(): boolean; isCData(): boolean; + isGeneralRef(): boolean; hasError(): boolean; done: boolean; } diff --git a/types/nginstack__engine/nginstack__engine-tests.ts b/types/nginstack__engine/nginstack__engine-tests.ts index e344e11c2bac46..00479224f8eefb 100644 --- a/types/nginstack__engine/nginstack__engine-tests.ts +++ b/types/nginstack__engine/nginstack__engine-tests.ts @@ -1,5 +1,5 @@ -import DataSet from "@nginstack/engine/lib/dataset/DataSet"; -import Database from "@nginstack/engine/lib/database/Database"; +import DataSet from '@nginstack/engine/lib/dataset/DataSet'; +import Database from '@nginstack/engine/lib/database/Database'; const values = ['test1', 'test_memo1', 1, true, new Date()]; @@ -89,6 +89,6 @@ database.userHasScope(456, 'scope'); // $ExpectType boolean database.logout(); // $ExpectType void function getVersion(): string { - return '72.0.12'; + return '81.0.1'; } getVersion(); // $ExpectType string diff --git a/types/nginstack__engine/package.json b/types/nginstack__engine/package.json index 79fea967b3c575..5589cefa956277 100644 --- a/types/nginstack__engine/package.json +++ b/types/nginstack__engine/package.json @@ -1,9 +1,9 @@ { "private": true, "name": "@types/nginstack__engine", - "version": "72.0.9999", + "version": "81.0.9999", "projects": [ - "https://dev.azure.com/nginstack/nginstack" + "https://github.com/nginstack/nginstack" ], "devDependencies": { "@types/nginstack__engine": "workspace:." From 7d407cb061413d28435d084f4ad0c76332fb1386 Mon Sep 17 00:00:00 2001 From: Renato Ribeiro <57230682+Henato@users.noreply.github.com> Date: Thu, 15 Jan 2026 17:59:48 -0300 Subject: [PATCH 05/13] =?UTF-8?q?=F0=9F=A4=96=20Merge=20PR=20#74345=20feat?= =?UTF-8?q?:=20update=20@nginstack/iquery=20definitions=20by=20@Henato?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Renato Fernandes --- types/nginstack__iquery/lib/IClauseFrom.d.ts | 4 +- types/nginstack__iquery/lib/IClauseJoin.d.ts | 10 ++-- .../nginstack__iquery/lib/IClauseSelect.d.ts | 8 +-- types/nginstack__iquery/lib/IClauseWhere.d.ts | 4 +- .../lib/IClauseWhereFactory.d.ts | 6 +-- .../lib/IClauseWhereManager.d.ts | 6 +-- types/nginstack__iquery/lib/IColumn.d.ts | 2 +- types/nginstack__iquery/lib/IJoinManager.d.ts | 4 +- types/nginstack__iquery/lib/IQuery.d.ts | 12 ++--- .../lib/PermissionClauseGenerator.d.ts | 52 ++++++++----------- .../nginstack__iquery-tests.ts | 10 ++-- types/nginstack__iquery/package.json | 4 +- 12 files changed, 58 insertions(+), 64 deletions(-) diff --git a/types/nginstack__iquery/lib/IClauseFrom.d.ts b/types/nginstack__iquery/lib/IClauseFrom.d.ts index 3bcdf3ff5facf4..82cf01f298b45c 100644 --- a/types/nginstack__iquery/lib/IClauseFrom.d.ts +++ b/types/nginstack__iquery/lib/IClauseFrom.d.ts @@ -33,5 +33,5 @@ declare namespace IClauseFrom { function createSequenceAlias(): number; function resetSequenceAlias(): void; } -import IQuery = require("./IQuery.js"); -import IJoinManager = require("./IJoinManager.js"); +import IQuery = require('./IQuery.js'); +import IJoinManager = require('./IJoinManager.js'); diff --git a/types/nginstack__iquery/lib/IClauseJoin.d.ts b/types/nginstack__iquery/lib/IClauseJoin.d.ts index 9f5a28ca53ecec..8c40c7b099278e 100644 --- a/types/nginstack__iquery/lib/IClauseJoin.d.ts +++ b/types/nginstack__iquery/lib/IClauseJoin.d.ts @@ -3,7 +3,7 @@ declare function IClauseJoin( iQuery: IQuery, iQueryJoin: IQuery, type: string, - isRightTableAsSubquery: any, + isRightTableAsSubquery: any ): void; declare class IClauseJoin { constructor(iQuery: IQuery, iQueryJoin: IQuery, type: string, isRightTableAsSubquery: any); @@ -24,13 +24,13 @@ declare class IClauseJoin { getColumnsNames(): object; } declare namespace IClauseJoin { - export { IClauseWhere, IQuery, RightTableAsSubQueryConfig }; + export { IQuery, IClauseWhere, RightTableAsSubQueryConfig }; } -type IQuery = import("./IQuery"); -type IClauseWhere = import("./IClauseWhere"); +type IQuery = import('./IQuery'); +type IClauseWhere = import('./IClauseWhere'); interface RightTableAsSubQueryConfig { isEnabled: boolean; clauseSelect: IClauseSelect; subQueryAlias: string; } -import IClauseSelect = require("./IClauseSelect.js"); +import IClauseSelect = require('./IClauseSelect.js'); diff --git a/types/nginstack__iquery/lib/IClauseSelect.d.ts b/types/nginstack__iquery/lib/IClauseSelect.d.ts index 1b9c7a71ab17f1..dc3b3460eaf213 100644 --- a/types/nginstack__iquery/lib/IClauseSelect.d.ts +++ b/types/nginstack__iquery/lib/IClauseSelect.d.ts @@ -34,8 +34,8 @@ declare class IClauseSelect { private fetchGroupByArr_; } declare namespace IClauseSelect { - export { DataSet, IQuery }; + export { IQuery, DataSet }; } -import IColumn = require("./IColumn.js"); -type IQuery = import("./IQuery"); -type DataSet = import("@nginstack/engine/lib/dataset/DataSet"); +import IColumn = require('./IColumn.js'); +type IQuery = import('./IQuery'); +type DataSet = import('@nginstack/engine/lib/dataset/DataSet'); diff --git a/types/nginstack__iquery/lib/IClauseWhere.d.ts b/types/nginstack__iquery/lib/IClauseWhere.d.ts index 838b683b1a1a19..1fb71031e35b0f 100644 --- a/types/nginstack__iquery/lib/IClauseWhere.d.ts +++ b/types/nginstack__iquery/lib/IClauseWhere.d.ts @@ -33,5 +33,5 @@ declare class IClauseWhere { declare namespace IClauseWhere { export { IClauseJoin }; } -import IQuery = require("./IQuery.js"); -type IClauseJoin = import("./IClauseJoin"); +import IQuery = require('./IQuery.js'); +type IClauseJoin = import('./IClauseJoin'); diff --git a/types/nginstack__iquery/lib/IClauseWhereFactory.d.ts b/types/nginstack__iquery/lib/IClauseWhereFactory.d.ts index 3f372479abc36b..db4bc546509f9c 100644 --- a/types/nginstack__iquery/lib/IClauseWhereFactory.d.ts +++ b/types/nginstack__iquery/lib/IClauseWhereFactory.d.ts @@ -10,6 +10,6 @@ declare class IClauseWhereFactory { declare namespace IClauseWhereFactory { export { IClauseJoin, IQuery }; } -import IClauseWhere = require("./IClauseWhere.js"); -type IClauseJoin = import("./IClauseJoin"); -type IQuery = import("./IQuery"); +import IClauseWhere = require('./IClauseWhere.js'); +type IClauseJoin = import('./IClauseJoin'); +type IQuery = import('./IQuery'); diff --git a/types/nginstack__iquery/lib/IClauseWhereManager.d.ts b/types/nginstack__iquery/lib/IClauseWhereManager.d.ts index 9aac566ccd3edd..b7dcf56f6b7721 100644 --- a/types/nginstack__iquery/lib/IClauseWhereManager.d.ts +++ b/types/nginstack__iquery/lib/IClauseWhereManager.d.ts @@ -10,7 +10,7 @@ declare class IClauseWhereManager { makeClauseWhere(iQuery: IQuery, literalClause: any, join?: boolean): IClauseWhere; } declare namespace IClauseWhereManager { - export { IClauseWhere, IQuery }; + export { IQuery, IClauseWhere }; } -type IQuery = import("./IQuery"); -type IClauseWhere = import("./IClauseWhere"); +type IQuery = import('./IQuery'); +type IClauseWhere = import('./IClauseWhere'); diff --git a/types/nginstack__iquery/lib/IColumn.d.ts b/types/nginstack__iquery/lib/IColumn.d.ts index f5981bfe27dff8..0a1dc28fd3bc45 100644 --- a/types/nginstack__iquery/lib/IColumn.d.ts +++ b/types/nginstack__iquery/lib/IColumn.d.ts @@ -38,7 +38,7 @@ declare class IColumn { declare namespace IColumn { export { ColumnConfig }; } -import IClauseSelect = require("./IClauseSelect.js"); +import IClauseSelect = require('./IClauseSelect.js'); interface ColumnConfig { alias: string; cast: string; diff --git a/types/nginstack__iquery/lib/IJoinManager.d.ts b/types/nginstack__iquery/lib/IJoinManager.d.ts index d17b58927520a1..373a2f399dedd1 100644 --- a/types/nginstack__iquery/lib/IJoinManager.d.ts +++ b/types/nginstack__iquery/lib/IJoinManager.d.ts @@ -16,5 +16,5 @@ declare class IJoinManager { simpleColumnsNames: any[]; }; } -import IQuery = require("./IQuery.js"); -import IClauseJoin = require("./IClauseJoin.js"); +import IQuery = require('./IQuery.js'); +import IClauseJoin = require('./IClauseJoin.js'); diff --git a/types/nginstack__iquery/lib/IQuery.d.ts b/types/nginstack__iquery/lib/IQuery.d.ts index 86daaaaecd1f33..232f2dc50768d1 100644 --- a/types/nginstack__iquery/lib/IQuery.d.ts +++ b/types/nginstack__iquery/lib/IQuery.d.ts @@ -24,12 +24,12 @@ declare class IQuery { toSql(): string; } declare namespace IQuery { - export { DBKey, defaultCheckPermission, from, IClauseJoin }; + export { defaultCheckPermission, from, DBKey, IClauseJoin }; } -import IClauseSelect = require("./IClauseSelect.js"); -import IJoinManager = require("./IJoinManager.js"); -import IClauseFrom = require("./IClauseFrom.js"); +import IClauseSelect = require('./IClauseSelect.js'); +import IJoinManager = require('./IJoinManager.js'); +import IClauseFrom = require('./IClauseFrom.js'); declare let defaultCheckPermission: boolean; declare let from: any; -type DBKey = import("@nginstack/engine/lib/dbkey/DBKey"); -type IClauseJoin = import("./IClauseJoin"); +type DBKey = import('@nginstack/engine/lib/dbkey/DBKey'); +type IClauseJoin = import('./IClauseJoin'); diff --git a/types/nginstack__iquery/lib/PermissionClauseGenerator.d.ts b/types/nginstack__iquery/lib/PermissionClauseGenerator.d.ts index 4e1f5fc6420e8d..d08cbb1be2a112 100644 --- a/types/nginstack__iquery/lib/PermissionClauseGenerator.d.ts +++ b/types/nginstack__iquery/lib/PermissionClauseGenerator.d.ts @@ -9,37 +9,31 @@ declare class PermissionClauseGenerator { addClassPermission(classKey: any, userKey: any): void; generate(classFieldName: any): | string - | Array< - | string - | { - field: any; - operator: string; - value: any; - disableGetChildren: boolean; - } - > - | { - field: any; - operator: string; - value: any[]; - disableGetChildren: boolean; - } - | Array< - | string - | Array< - | string - | { + | Array<| string + | { field: any; operator: string; value: any; disableGetChildren: boolean; - } - > - | { - field: any; - operator: string; - value: any[]; - disableGetChildren: boolean; - } - >; + }> + | { + field: any; + operator: string; + value: any[]; + disableGetChildren: boolean; + } + | Array<| string + | Array<| string + | { + field: any; + operator: string; + value: any; + disableGetChildren: boolean; + }> + | { + field: any; + operator: string; + value: any[]; + disableGetChildren: boolean; + }>; } diff --git a/types/nginstack__iquery/nginstack__iquery-tests.ts b/types/nginstack__iquery/nginstack__iquery-tests.ts index 89e92b048d35f2..c5b9ad7400927a 100644 --- a/types/nginstack__iquery/nginstack__iquery-tests.ts +++ b/types/nginstack__iquery/nginstack__iquery-tests.ts @@ -1,5 +1,5 @@ -import IClauseSelect from "@nginstack/iquery/lib/IClauseSelect"; -import IQuery from "@nginstack/iquery/lib/IQuery"; +import IClauseSelect from '@nginstack/iquery/lib/IClauseSelect'; +import IQuery from '@nginstack/iquery/lib/IQuery'; const iquery = new IQuery(); const clauseSelect = new IClauseSelect(iquery); @@ -10,10 +10,10 @@ iquery.whereClauseCount; // $ExpectType number iquery.validatePermission; // $ExpectType number iquery.column(clauseSelect); // $ExpectType IClauseSelect -iquery.from(1, ""); // $ExpectType IQuery +iquery.from(1, ''); // $ExpectType IQuery iquery.innerJoin(iquery); // $ExpectType IClauseJoin iquery.leftOuterJoin(iquery); // $ExpectType IClauseJoin -iquery.where([""]); // $ExpectType IQuery +iquery.where(['']); // $ExpectType IQuery iquery.uncheckPermission(); // $ExpectType IQuery iquery.checkPermission(); // $ExpectType IQuery iquery.getLeftJoinIQuery(); // $ExpectType IClauseJoin @@ -21,6 +21,6 @@ iquery.getWhereSql(true); // $ExpectType string iquery.toSql(); // $ExpectType string function getVersion(): string { - return "72.0.1"; + return '81.0.1'; } getVersion(); // $ExpectType string diff --git a/types/nginstack__iquery/package.json b/types/nginstack__iquery/package.json index 289d190272d726..26aabc73a24b0f 100644 --- a/types/nginstack__iquery/package.json +++ b/types/nginstack__iquery/package.json @@ -1,9 +1,9 @@ { "private": true, "name": "@types/nginstack__iquery", - "version": "72.0.9999", + "version": "81.0.9999", "projects": [ - "https://dev.azure.com/nginstack/nginstack" + "https://github.com/nginstack/nginstack" ], "dependencies": { "@types/nginstack__engine": "*" From 0590faf026dc08e66cb861a64223954707d2ef24 Mon Sep 17 00:00:00 2001 From: Renato Ribeiro <57230682+Henato@users.noreply.github.com> Date: Thu, 15 Jan 2026 17:59:57 -0300 Subject: [PATCH 06/13] =?UTF-8?q?=F0=9F=A4=96=20Merge=20PR=20#74347=20feat?= =?UTF-8?q?:=20update=20@nginstack/datasource=20definitions=20by=20@Henato?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Renato Fernandes --- .../lib/ClassDerivation.d.ts | 2 +- .../lib/DBKeyDerivation.d.ts | 2 +- .../nginstack__datasource/lib/DataSource.d.ts | 29 +++++++----- .../lib/DataSourceColumn.d.ts | 18 ++++---- .../lib/DataSourceColumns.d.ts | 28 ++++++------ .../lib/DataSourceDataType.d.ts | 44 +++++++++---------- .../lib/DataSourceDef.d.ts | 10 ++--- .../lib/DataSourceExecutor.d.ts | 2 +- .../lib/DataSourceField.d.ts | 2 +- .../lib/DataSourceFieldDef.d.ts | 20 +++------ .../lib/DataSourceFilter.d.ts | 26 +++++++---- .../lib/DataSourceFilters.d.ts | 30 ++++++------- .../lib/DataSourceQuery.d.ts | 2 +- .../lib/DataSourceQueryDef.d.ts | 2 +- .../lib/DataSourceResult.d.ts | 18 ++++---- .../lib/FilterOperator.d.ts | 18 ++++---- .../nginstack__datasource-tests.ts | 12 ++--- types/nginstack__datasource/package.json | 4 +- 18 files changed, 139 insertions(+), 130 deletions(-) diff --git a/types/nginstack__datasource/lib/ClassDerivation.d.ts b/types/nginstack__datasource/lib/ClassDerivation.d.ts index ec793942d1d60e..421184b760e5af 100644 --- a/types/nginstack__datasource/lib/ClassDerivation.d.ts +++ b/types/nginstack__datasource/lib/ClassDerivation.d.ts @@ -1 +1 @@ -export const PATH = "PATH"; +export const PATH = 'PATH'; diff --git a/types/nginstack__datasource/lib/DBKeyDerivation.d.ts b/types/nginstack__datasource/lib/DBKeyDerivation.d.ts index 2e793f8d7121dc..aa5638b15ed5c9 100644 --- a/types/nginstack__datasource/lib/DBKeyDerivation.d.ts +++ b/types/nginstack__datasource/lib/DBKeyDerivation.d.ts @@ -1 +1 @@ -export const IMAGE = "IMAGE"; +export const IMAGE = 'IMAGE'; diff --git a/types/nginstack__datasource/lib/DataSource.d.ts b/types/nginstack__datasource/lib/DataSource.d.ts index 45a8f8d79f83fd..c8be790e5059e2 100644 --- a/types/nginstack__datasource/lib/DataSource.d.ts +++ b/types/nginstack__datasource/lib/DataSource.d.ts @@ -1,12 +1,12 @@ export = DataSource; declare function DataSource( definition: DataSourceDef | Record | number, - opt_options?: Record, + opt_options?: Record ): void; declare class DataSource { constructor( definition: DataSourceDef | Record | number, - opt_options?: Record, + opt_options?: Record ); private iKey_; private iUrl_; @@ -38,16 +38,23 @@ declare class DataSource { purgeUnsolicitedColumns(ds: DataSet, columns: DataSourceColumns): DataSet; getResult( filters: DataSourceFilterDef[] | any[], - columns: DataSourceColumnDef[] | any[], + columns: DataSourceColumnDef[] | any[] ): DataSourceResult; } declare namespace DataSource { - export { ColumnOps, DataSourceColumnDef, DataSourceDef, DataSourceFilterDef, list, loadDefinitionFile }; + export { + ColumnOps, + loadDefinitionFile, + list, + DataSourceDef, + DataSourceColumnDef, + DataSourceFilterDef, + }; } -import DataSourceFilters = require("./DataSourceFilters.js"); -import DataSourceColumns = require("./DataSourceColumns.js"); -import DataSet = require("@nginstack/engine/lib/dataset/DataSet.js"); -import DataSourceResult = require("./DataSourceResult.js"); +import DataSourceFilters = require('./DataSourceFilters.js'); +import DataSourceColumns = require('./DataSourceColumns.js'); +import DataSet = require('@nginstack/engine/lib/dataset/DataSet.js'); +import DataSourceResult = require('./DataSourceResult.js'); declare namespace ColumnOps { let DIMENSION: string; let DERIVATION: string; @@ -55,6 +62,6 @@ declare namespace ColumnOps { type ColumnOps = string; declare function loadDefinitionFile(fileId: number | string): any; declare function list(): DataSet; -type DataSourceDef = import("./DataSourceDef"); -type DataSourceColumnDef = import("./DataSourceColumnDef"); -type DataSourceFilterDef = import("./DataSourceFilterDef"); +type DataSourceDef = import('./DataSourceDef'); +type DataSourceColumnDef = import('./DataSourceColumnDef'); +type DataSourceFilterDef = import('./DataSourceFilterDef'); diff --git a/types/nginstack__datasource/lib/DataSourceColumn.d.ts b/types/nginstack__datasource/lib/DataSourceColumn.d.ts index 42dd06947ee9fe..d97bd786f914fd 100644 --- a/types/nginstack__datasource/lib/DataSourceColumn.d.ts +++ b/types/nginstack__datasource/lib/DataSourceColumn.d.ts @@ -40,20 +40,20 @@ declare class DataSourceColumn { } declare namespace DataSourceColumn { export { - AGGREGATE_AVG, + AGGREGATE_NONE, + AGGREGATE_SUM, AGGREGATE_COUNT, + AGGREGATE_AVG, AGGREGATE_MAX, AGGREGATE_MIN, - AGGREGATE_NONE, - AGGREGATE_SUM, - colNameFromField, + SORT_NONE, + SORT_ASC, + SORT_DESC, DIMENSION_SEP, - Field, + colNameFromField, fromField, getRootFromLeafNode, - SORT_ASC, - SORT_DESC, - SORT_NONE, + Field, }; } declare let AGGREGATE_NONE: string; @@ -69,4 +69,4 @@ declare let DIMENSION_SEP: string; declare function colNameFromField(fld: Field, prefix: string): string; declare function fromField(fld: Field, prefix: string): DataSourceColumn; declare function getRootFromLeafNode(leafNode: number, suggestedRoot: number): number; -type Field = import("@nginstack/engine/lib/classdef/Field"); +type Field = import('@nginstack/engine/lib/classdef/Field'); diff --git a/types/nginstack__datasource/lib/DataSourceColumns.d.ts b/types/nginstack__datasource/lib/DataSourceColumns.d.ts index 40a0ac5d0a4d01..1adf97eb0f9dbd 100644 --- a/types/nginstack__datasource/lib/DataSourceColumns.d.ts +++ b/types/nginstack__datasource/lib/DataSourceColumns.d.ts @@ -1,7 +1,7 @@ export = DataSourceColumns; declare function DataSourceColumns( opt_dataSource?: DataSource, - opt_colsDefs?: DataSourceColumnDef[], + opt_colsDefs?: DataSourceColumnDef[] ): void; declare class DataSourceColumns { constructor(opt_dataSource?: DataSource, opt_colsDefs?: DataSourceColumnDef[]); @@ -19,19 +19,19 @@ declare class DataSourceColumns { prefix: string, opt_options?: | { - includeFieldNames: string; - excludeFieldNames: string; - children: boolean; - onlyVisible: boolean; - onlyIncludedFieldNames: boolean; - } - | Record, + includeFieldNames: string; + excludeFieldNames: string; + children: boolean; + onlyVisible: boolean; + onlyIncludedFieldNames: boolean; + } + | Record ): void; importVisibleFields( classKey: number, fieldNamesPrefix?: string, includeFieldNames?: string, - excludeFieldNames?: string, + excludeFieldNames?: string ): void; parseDynColumnExpr(columnName: any): { derivedFrom: any; @@ -51,9 +51,9 @@ declare class DataSourceColumns { getPostProcessingInfo(): any; } declare namespace DataSourceColumns { - export { DataSource, DataSourceColumnDef, IQuery }; + export { DataSourceColumnDef, DataSource, IQuery }; } -import DataSourceColumn = require("./DataSourceColumn.js"); -type DataSourceColumnDef = import("./DataSourceColumnDef"); -type DataSource = import("./DataSource"); -type IQuery = import("@nginstack/iquery/lib/IQuery"); +import DataSourceColumn = require('./DataSourceColumn.js'); +type DataSourceColumnDef = import('./DataSourceColumnDef'); +type DataSource = import('./DataSource'); +type IQuery = import('@nginstack/iquery/lib/IQuery'); diff --git a/types/nginstack__datasource/lib/DataSourceDataType.d.ts b/types/nginstack__datasource/lib/DataSourceDataType.d.ts index 8f3606a35838f2..57868b0ed3b24b 100644 --- a/types/nginstack__datasource/lib/DataSourceDataType.d.ts +++ b/types/nginstack__datasource/lib/DataSourceDataType.d.ts @@ -1,25 +1,25 @@ -export const STRING = "string"; -export const CHAR = "char"; -export const DATE = "date"; -export const INT32 = "int32"; -export const INT64 = "int64"; -export const NUMBER = "number"; -export const ARRAY = "array"; -export const MEMO = "memo"; -export const COMBO = "combo"; -export const MASTER_DETAIL = "masterdetail"; -export const BOOLEAN = "boolean"; -export const PHONE = "phone"; -export const FILE = "file"; -export const PASSWORD = "password"; -export const TIME = "time"; -export const DATETIME = "datetime"; -export const CEP = "cep"; -export const LATITUDE = "latitude"; -export const LONGITUDE = "longitude"; -export const ANGLE = "angle"; -export const GRID = "grid"; -export const INTEGER = "integer"; +export const STRING = 'string'; +export const CHAR = 'char'; +export const DATE = 'date'; +export const INT32 = 'int32'; +export const INT64 = 'int64'; +export const NUMBER = 'number'; +export const ARRAY = 'array'; +export const MEMO = 'memo'; +export const COMBO = 'combo'; +export const MASTER_DETAIL = 'masterdetail'; +export const BOOLEAN = 'boolean'; +export const PHONE = 'phone'; +export const FILE = 'file'; +export const PASSWORD = 'password'; +export const TIME = 'time'; +export const DATETIME = 'datetime'; +export const CEP = 'cep'; +export const LATITUDE = 'latitude'; +export const LONGITUDE = 'longitude'; +export const ANGLE = 'angle'; +export const GRID = 'grid'; +export const INTEGER = 'integer'; export type DataSourceDataType = | typeof STRING diff --git a/types/nginstack__datasource/lib/DataSourceDef.d.ts b/types/nginstack__datasource/lib/DataSourceDef.d.ts index 314be492fa0364..a23d1ebf83eb33 100644 --- a/types/nginstack__datasource/lib/DataSourceDef.d.ts +++ b/types/nginstack__datasource/lib/DataSourceDef.d.ts @@ -15,10 +15,10 @@ declare class DataSourceDef { private autoPurgeUnsolicitedColumns; } declare namespace DataSourceDef { - export { DataSet, DataSource, DataSourceColumns, DataSourceFilters, DataSourceSecurityMode }; + export { DataSet, DataSource, DataSourceFilters, DataSourceColumns, DataSourceSecurityMode }; } -type DataSet = import("@nginstack/engine/lib/dataset/DataSet"); -type DataSource = import("./DataSource"); -type DataSourceFilters = import("./DataSourceFilters"); -type DataSourceColumns = import("./DataSourceColumns"); +type DataSet = import('@nginstack/engine/lib/dataset/DataSet'); +type DataSource = import('./DataSource'); +type DataSourceFilters = import('./DataSourceFilters'); +type DataSourceColumns = import('./DataSourceColumns'); type DataSourceSecurityMode = any; diff --git a/types/nginstack__datasource/lib/DataSourceExecutor.d.ts b/types/nginstack__datasource/lib/DataSourceExecutor.d.ts index 198368d721ea44..62626d4d7870ce 100644 --- a/types/nginstack__datasource/lib/DataSourceExecutor.d.ts +++ b/types/nginstack__datasource/lib/DataSourceExecutor.d.ts @@ -9,4 +9,4 @@ declare class DataSourceExecutor { declare namespace DataSourceExecutor { export { DataSet }; } -type DataSet = import("@nginstack/engine/lib/dataset/DataSet"); +type DataSet = import('@nginstack/engine/lib/dataset/DataSet'); diff --git a/types/nginstack__datasource/lib/DataSourceField.d.ts b/types/nginstack__datasource/lib/DataSourceField.d.ts index e53ab11bcf0687..eaa17b7b49bb8e 100644 --- a/types/nginstack__datasource/lib/DataSourceField.d.ts +++ b/types/nginstack__datasource/lib/DataSourceField.d.ts @@ -28,4 +28,4 @@ declare class DataSourceField { declare namespace DataSourceField { let PREFIX_SEPARATOR: string; } -import DataSourceDataType = require("./DataSourceDataType.js"); +import DataSourceDataType = require('./DataSourceDataType.js'); diff --git a/types/nginstack__datasource/lib/DataSourceFieldDef.d.ts b/types/nginstack__datasource/lib/DataSourceFieldDef.d.ts index 3f8a990d75cfd2..e5c54a418ae073 100644 --- a/types/nginstack__datasource/lib/DataSourceFieldDef.d.ts +++ b/types/nginstack__datasource/lib/DataSourceFieldDef.d.ts @@ -12,19 +12,13 @@ declare class DataSourceFieldDef { onlyVisible: boolean; onlyIncludedFieldNames: boolean; }; - displayFormat: - | DateFormat - | LatitudeFormat - | LongitudeFormat - | AngleFormat - | string - | number - | null; + displayFormat: DateFormat | LatitudeFormat | LongitudeFormat | AngleFormat | NumberFormat; } declare namespace DataSourceFieldDef { - export { AngleFormat, DateFormat, LatitudeFormat, LongitudeFormat }; + export { DateFormat, LatitudeFormat, LongitudeFormat, AngleFormat, NumberFormat }; } -type DateFormat = typeof import("@nginstack/engine/lib/date/DateFormat"); -type LatitudeFormat = typeof import("@nginstack/engine/lib/geo/LatitudeFormat"); -type LongitudeFormat = typeof import("@nginstack/engine/lib/geo/LongitudeFormat"); -type AngleFormat = typeof import("@nginstack/engine/lib/geo/AngleFormat"); +type DateFormat = typeof import('@nginstack/engine/lib/date/DateFormat'); +type LatitudeFormat = typeof import('@nginstack/engine/lib/geo/LatitudeFormat'); +type LongitudeFormat = typeof import('@nginstack/engine/lib/geo/LongitudeFormat'); +type AngleFormat = typeof import('@nginstack/engine/lib/geo/AngleFormat'); +type NumberFormat = typeof import('@nginstack/engine/lib/number/NumberFormat'); diff --git a/types/nginstack__datasource/lib/DataSourceFilter.d.ts b/types/nginstack__datasource/lib/DataSourceFilter.d.ts index 8ae67deb8c37c4..54c7d01de1ffcd 100644 --- a/types/nginstack__datasource/lib/DataSourceFilter.d.ts +++ b/types/nginstack__datasource/lib/DataSourceFilter.d.ts @@ -2,7 +2,7 @@ export = DataSourceFilter; declare function DataSourceFilter(name: string, type: string): void; declare class DataSourceFilter { constructor(name: string, type: string); - onAfterLoadDefaultValue: import("@nginstack/engine/lib/event/Event"); + onAfterLoadDefaultValue: import('@nginstack/engine/lib/event/Event'); private propertiesToAssign_; group: string; size: number; @@ -28,16 +28,24 @@ declare class DataSourceFilter { classKey: number; lookupType: number; displayFormat: - | typeof import("@nginstack/engine/lib/date/DateFormat.js") - | typeof import("@nginstack/engine/lib/geo/LatitudeFormat.js") - | typeof import("@nginstack/engine/lib/geo/LongitudeFormat.js") - | typeof import("@nginstack/engine/lib/geo/AngleFormat.js"); + | import('@nginstack/engine/lib/date/DateFormat.js').DateFormatType + | import('@nginstack/engine/lib/geo/LatitudeFormat.js').LatitudeFormatType + | import('@nginstack/engine/lib/geo/LongitudeFormat.js').LongitudeFormatType + | import('@nginstack/engine/lib/geo/AngleFormat.js').AngleFormatType + | import('@nginstack/engine/lib/number/NumberFormat.js').NumberFormatType; stringIfTrue: string; } declare namespace DataSourceFilter { - export { DATE_KEYWORDS, Event, Field, LimitType, removeRangeSuffix, shouldCreateAuxiliaryRangeFilters }; + export { + DATE_KEYWORDS, + removeRangeSuffix, + shouldCreateAuxiliaryRangeFilters, + Event, + Field, + LimitType, + }; } -import FilterOperator = require("./FilterOperator.js"); +import FilterOperator = require('./FilterOperator.js'); declare namespace DATE_KEYWORDS { let IM: boolean; let FM: boolean; @@ -54,6 +62,6 @@ declare namespace DATE_KEYWORDS { } declare function removeRangeSuffix(name: string): string; declare function shouldCreateAuxiliaryRangeFilters(filter: DataSourceFilter | Field): boolean; -type Event = import("@nginstack/engine/lib/event/Event"); -type Field = import("@nginstack/engine/lib/classdef/Field"); +type Event = import('@nginstack/engine/lib/event/Event'); +type Field = import('@nginstack/engine/lib/classdef/Field'); type LimitType = 1 | 2; diff --git a/types/nginstack__datasource/lib/DataSourceFilters.d.ts b/types/nginstack__datasource/lib/DataSourceFilters.d.ts index 9d0b5c6f5e0b57..2c98a0707f03c8 100644 --- a/types/nginstack__datasource/lib/DataSourceFilters.d.ts +++ b/types/nginstack__datasource/lib/DataSourceFilters.d.ts @@ -13,14 +13,14 @@ declare class DataSourceFilters { prefix: string, opt_options?: | { - includeFieldNames: string; - excludeFieldNames: string; - children: boolean; - onlyVisible: boolean; - onlyIncludedFieldNames: boolean; - classDef: ModelDef; - } - | Record, + includeFieldNames: string; + excludeFieldNames: string; + children: boolean; + onlyVisible: boolean; + onlyIncludedFieldNames: boolean; + classDef: ModelDef; + } + | Record ): void; importVisibleFields( classKey: number, @@ -28,7 +28,7 @@ declare class DataSourceFilters { includeFieldNames?: string, excludeFieldNames?: string, classDef?: ModelDef, - onlyIncludedFieldNames?: boolean, + onlyIncludedFieldNames?: boolean ): void; parseDynFilterExpr(filterName: string): any; filter(id: number | string, opt_type?: string, opt_classKey?: number): DataSourceFilter; @@ -41,13 +41,13 @@ declare class DataSourceFilters { hasFilter(name: string): boolean; map( fn: (arg0: DataSourceFilter, arg1: number, arg2: DataSourceFilter[]) => any, - opt_scope?: any, + opt_scope?: any ): any[]; } declare namespace DataSourceFilters { - export { DataSource, IQuery, ModelDef }; + export { ModelDef, IQuery, DataSource }; } -import DataSourceFilter = require("./DataSourceFilter.js"); -type ModelDef = import("@nginstack/engine/lib/classdef/ModelDef"); -type IQuery = import("@nginstack/iquery/lib/IQuery"); -type DataSource = import("./DataSource"); +import DataSourceFilter = require('./DataSourceFilter.js'); +type ModelDef = import('@nginstack/engine/lib/classdef/ModelDef'); +type IQuery = import('@nginstack/iquery/lib/IQuery'); +type DataSource = import('./DataSource'); diff --git a/types/nginstack__datasource/lib/DataSourceQuery.d.ts b/types/nginstack__datasource/lib/DataSourceQuery.d.ts index 86212496b481a5..08f4193a2ab48a 100644 --- a/types/nginstack__datasource/lib/DataSourceQuery.d.ts +++ b/types/nginstack__datasource/lib/DataSourceQuery.d.ts @@ -19,4 +19,4 @@ declare class DataSourceQuery { declare namespace DataSourceQuery { export { DataSet }; } -type DataSet = import("@nginstack/engine/lib/dataset/DataSet"); +type DataSet = import('@nginstack/engine/lib/dataset/DataSet'); diff --git a/types/nginstack__datasource/lib/DataSourceQueryDef.d.ts b/types/nginstack__datasource/lib/DataSourceQueryDef.d.ts index 310058b90e31fc..c266729de141ea 100644 --- a/types/nginstack__datasource/lib/DataSourceQueryDef.d.ts +++ b/types/nginstack__datasource/lib/DataSourceQueryDef.d.ts @@ -13,4 +13,4 @@ declare class DataSourceQueryDef { declare namespace DataSourceQueryDef { export { DataSourceQuery }; } -type DataSourceQuery = import("./DataSourceQuery"); +type DataSourceQuery = import('./DataSourceQuery'); diff --git a/types/nginstack__datasource/lib/DataSourceResult.d.ts b/types/nginstack__datasource/lib/DataSourceResult.d.ts index 5a44d0361c64ab..9cf1bdef90049a 100644 --- a/types/nginstack__datasource/lib/DataSourceResult.d.ts +++ b/types/nginstack__datasource/lib/DataSourceResult.d.ts @@ -2,13 +2,13 @@ export = DataSourceResult; declare function DataSourceResult( dataSource: DataSource, filters: DataSourceFilterDef[] | any[] | DataSourceFilters, - columns: DataSourceColumnDef[] | any[] | DataSourceColumns, + columns: DataSourceColumnDef[] | any[] | DataSourceColumns ): void; declare class DataSourceResult { constructor( dataSource: DataSource, filters: DataSourceFilterDef[] | any[] | DataSourceFilters, - columns: DataSourceColumnDef[] | any[] | DataSourceColumns, + columns: DataSourceColumnDef[] | any[] | DataSourceColumns ); private dataSource_; private filters_; @@ -19,11 +19,11 @@ declare class DataSourceResult { getDataSet(): DataSet; } declare namespace DataSourceResult { - export { DataSet, DataSource, DataSourceColumnDef, DataSourceFilterDef }; + export { DataSet, DataSource, DataSourceFilterDef, DataSourceColumnDef }; } -import DataSourceFilters = require("./DataSourceFilters.js"); -import DataSourceColumns = require("./DataSourceColumns.js"); -type DataSet = import("@nginstack/engine/lib/dataset/DataSet"); -type DataSource = import("./DataSource"); -type DataSourceFilterDef = import("./DataSourceFilterDef"); -type DataSourceColumnDef = import("./DataSourceColumnDef"); +import DataSourceFilters = require('./DataSourceFilters.js'); +import DataSourceColumns = require('./DataSourceColumns.js'); +type DataSet = import('@nginstack/engine/lib/dataset/DataSet'); +type DataSource = import('./DataSource'); +type DataSourceFilterDef = import('./DataSourceFilterDef'); +type DataSourceColumnDef = import('./DataSourceColumnDef'); diff --git a/types/nginstack__datasource/lib/FilterOperator.d.ts b/types/nginstack__datasource/lib/FilterOperator.d.ts index c8b9a63ec820e3..354da8a8410709 100644 --- a/types/nginstack__datasource/lib/FilterOperator.d.ts +++ b/types/nginstack__datasource/lib/FilterOperator.d.ts @@ -1,9 +1,9 @@ -export const EQUALITY = "="; -export const INEQUALITY = "<>"; -export const GREATER_THAN = ">"; -export const LESS_THAN = "<"; -export const GREATER_THAN_OR_EQUAL = ">="; -export const LESS_THAN_OR_EQUAL = "<="; -export const LIKE = "like"; -export const EXISTS = "exists"; -export const NOT_EXISTS = "not exists"; +export const EQUALITY = '='; +export const INEQUALITY = '<>'; +export const GREATER_THAN = '>'; +export const LESS_THAN = '<'; +export const GREATER_THAN_OR_EQUAL = '>='; +export const LESS_THAN_OR_EQUAL = '<='; +export const LIKE = 'like'; +export const EXISTS = 'exists'; +export const NOT_EXISTS = 'not exists'; diff --git a/types/nginstack__datasource/nginstack__datasource-tests.ts b/types/nginstack__datasource/nginstack__datasource-tests.ts index 51f480ee00900e..79fa3cc8530d14 100644 --- a/types/nginstack__datasource/nginstack__datasource-tests.ts +++ b/types/nginstack__datasource/nginstack__datasource-tests.ts @@ -1,7 +1,7 @@ -import DataSource from "@nginstack/datasource/lib/DataSource"; -import DataSourceColumnDef from "@nginstack/datasource/lib/DataSourceColumnDef"; -import DataSourceColumns from "@nginstack/datasource/lib/DataSourceColumns"; -import DataSourceFilters from "@nginstack/datasource/lib/DataSourceFilters"; +import DataSource from '@nginstack/datasource/lib/DataSource'; +import DataSourceColumnDef from '@nginstack/datasource/lib/DataSourceColumnDef'; +import DataSourceColumns from '@nginstack/datasource/lib/DataSourceColumns'; +import DataSourceFilters from '@nginstack/datasource/lib/DataSourceFilters'; const datasource = new DataSource(1); // $ExpectType DataSource const filters = new DataSourceFilters(datasource); // $ExpectType DataSourceFilters @@ -15,12 +15,12 @@ datasource.help; // $ExpectType string datasource.autoPurgeUnsolicitedColumns; // $ExpectType boolean datasource.getQuery(filters, columns); // $ExpectType string -datasource.createFilters([""]); // $ExpectType DataSourceFilters +datasource.createFilters(['']); // $ExpectType DataSourceFilters datasource.createFiltersFromMap({ a: 1 }); // $ExpectType DataSourceFilters datasource.createColumns(columnDefs); // $ExpectType DataSourceColumns datasource.getDataSet(filters, columns); // $ExpectType DataSet function getVersion(): string { - return "72.0.5"; + return '81.0.1'; } getVersion(); // $ExpectType string diff --git a/types/nginstack__datasource/package.json b/types/nginstack__datasource/package.json index 22888aa6b2f539..63c97b3340009e 100644 --- a/types/nginstack__datasource/package.json +++ b/types/nginstack__datasource/package.json @@ -1,9 +1,9 @@ { "private": true, "name": "@types/nginstack__datasource", - "version": "72.0.9999", + "version": "81.0.9999", "projects": [ - "https://dev.azure.com/nginstack/nginstack" + "https://github.com/nginstack/nginstack" ], "dependencies": { "@types/nginstack__engine": "*", From ce08935c91a2dfad5401c82b7de929ffb4b11d22 Mon Sep 17 00:00:00 2001 From: TypeScript Bot Date: Thu, 15 Jan 2026 21:01:24 +0000 Subject: [PATCH 07/13] =?UTF-8?q?=F0=9F=A4=96=20dprint=20fmt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lib/ClassDerivation.d.ts | 2 +- .../lib/DBKeyDerivation.d.ts | 2 +- .../nginstack__datasource/lib/DataSource.d.ts | 29 ++++------- .../lib/DataSourceColumn.d.ts | 18 +++---- .../lib/DataSourceColumns.d.ts | 28 +++++----- .../lib/DataSourceDataType.d.ts | 44 ++++++++-------- .../lib/DataSourceDef.d.ts | 10 ++-- .../lib/DataSourceExecutor.d.ts | 2 +- .../lib/DataSourceField.d.ts | 2 +- .../lib/DataSourceFieldDef.d.ts | 12 ++--- .../lib/DataSourceFilter.d.ts | 27 ++++------ .../lib/DataSourceFilters.d.ts | 30 +++++------ .../lib/DataSourceQuery.d.ts | 2 +- .../lib/DataSourceQueryDef.d.ts | 2 +- .../lib/DataSourceResult.d.ts | 18 +++---- .../lib/FilterOperator.d.ts | 18 +++---- .../nginstack__datasource-tests.ts | 12 ++--- types/nginstack__iquery/lib/IClauseFrom.d.ts | 4 +- types/nginstack__iquery/lib/IClauseJoin.d.ts | 10 ++-- .../nginstack__iquery/lib/IClauseSelect.d.ts | 8 +-- types/nginstack__iquery/lib/IClauseWhere.d.ts | 4 +- .../lib/IClauseWhereFactory.d.ts | 6 +-- .../lib/IClauseWhereManager.d.ts | 6 +-- types/nginstack__iquery/lib/IColumn.d.ts | 2 +- types/nginstack__iquery/lib/IJoinManager.d.ts | 4 +- types/nginstack__iquery/lib/IQuery.d.ts | 12 ++--- .../lib/PermissionClauseGenerator.d.ts | 52 +++++++++++-------- .../nginstack__iquery-tests.ts | 10 ++-- 28 files changed, 184 insertions(+), 192 deletions(-) diff --git a/types/nginstack__datasource/lib/ClassDerivation.d.ts b/types/nginstack__datasource/lib/ClassDerivation.d.ts index 421184b760e5af..ec793942d1d60e 100644 --- a/types/nginstack__datasource/lib/ClassDerivation.d.ts +++ b/types/nginstack__datasource/lib/ClassDerivation.d.ts @@ -1 +1 @@ -export const PATH = 'PATH'; +export const PATH = "PATH"; diff --git a/types/nginstack__datasource/lib/DBKeyDerivation.d.ts b/types/nginstack__datasource/lib/DBKeyDerivation.d.ts index aa5638b15ed5c9..2e793f8d7121dc 100644 --- a/types/nginstack__datasource/lib/DBKeyDerivation.d.ts +++ b/types/nginstack__datasource/lib/DBKeyDerivation.d.ts @@ -1 +1 @@ -export const IMAGE = 'IMAGE'; +export const IMAGE = "IMAGE"; diff --git a/types/nginstack__datasource/lib/DataSource.d.ts b/types/nginstack__datasource/lib/DataSource.d.ts index c8be790e5059e2..45a8f8d79f83fd 100644 --- a/types/nginstack__datasource/lib/DataSource.d.ts +++ b/types/nginstack__datasource/lib/DataSource.d.ts @@ -1,12 +1,12 @@ export = DataSource; declare function DataSource( definition: DataSourceDef | Record | number, - opt_options?: Record + opt_options?: Record, ): void; declare class DataSource { constructor( definition: DataSourceDef | Record | number, - opt_options?: Record + opt_options?: Record, ); private iKey_; private iUrl_; @@ -38,23 +38,16 @@ declare class DataSource { purgeUnsolicitedColumns(ds: DataSet, columns: DataSourceColumns): DataSet; getResult( filters: DataSourceFilterDef[] | any[], - columns: DataSourceColumnDef[] | any[] + columns: DataSourceColumnDef[] | any[], ): DataSourceResult; } declare namespace DataSource { - export { - ColumnOps, - loadDefinitionFile, - list, - DataSourceDef, - DataSourceColumnDef, - DataSourceFilterDef, - }; + export { ColumnOps, DataSourceColumnDef, DataSourceDef, DataSourceFilterDef, list, loadDefinitionFile }; } -import DataSourceFilters = require('./DataSourceFilters.js'); -import DataSourceColumns = require('./DataSourceColumns.js'); -import DataSet = require('@nginstack/engine/lib/dataset/DataSet.js'); -import DataSourceResult = require('./DataSourceResult.js'); +import DataSourceFilters = require("./DataSourceFilters.js"); +import DataSourceColumns = require("./DataSourceColumns.js"); +import DataSet = require("@nginstack/engine/lib/dataset/DataSet.js"); +import DataSourceResult = require("./DataSourceResult.js"); declare namespace ColumnOps { let DIMENSION: string; let DERIVATION: string; @@ -62,6 +55,6 @@ declare namespace ColumnOps { type ColumnOps = string; declare function loadDefinitionFile(fileId: number | string): any; declare function list(): DataSet; -type DataSourceDef = import('./DataSourceDef'); -type DataSourceColumnDef = import('./DataSourceColumnDef'); -type DataSourceFilterDef = import('./DataSourceFilterDef'); +type DataSourceDef = import("./DataSourceDef"); +type DataSourceColumnDef = import("./DataSourceColumnDef"); +type DataSourceFilterDef = import("./DataSourceFilterDef"); diff --git a/types/nginstack__datasource/lib/DataSourceColumn.d.ts b/types/nginstack__datasource/lib/DataSourceColumn.d.ts index d97bd786f914fd..42dd06947ee9fe 100644 --- a/types/nginstack__datasource/lib/DataSourceColumn.d.ts +++ b/types/nginstack__datasource/lib/DataSourceColumn.d.ts @@ -40,20 +40,20 @@ declare class DataSourceColumn { } declare namespace DataSourceColumn { export { - AGGREGATE_NONE, - AGGREGATE_SUM, - AGGREGATE_COUNT, AGGREGATE_AVG, + AGGREGATE_COUNT, AGGREGATE_MAX, AGGREGATE_MIN, - SORT_NONE, - SORT_ASC, - SORT_DESC, - DIMENSION_SEP, + AGGREGATE_NONE, + AGGREGATE_SUM, colNameFromField, + DIMENSION_SEP, + Field, fromField, getRootFromLeafNode, - Field, + SORT_ASC, + SORT_DESC, + SORT_NONE, }; } declare let AGGREGATE_NONE: string; @@ -69,4 +69,4 @@ declare let DIMENSION_SEP: string; declare function colNameFromField(fld: Field, prefix: string): string; declare function fromField(fld: Field, prefix: string): DataSourceColumn; declare function getRootFromLeafNode(leafNode: number, suggestedRoot: number): number; -type Field = import('@nginstack/engine/lib/classdef/Field'); +type Field = import("@nginstack/engine/lib/classdef/Field"); diff --git a/types/nginstack__datasource/lib/DataSourceColumns.d.ts b/types/nginstack__datasource/lib/DataSourceColumns.d.ts index 1adf97eb0f9dbd..40a0ac5d0a4d01 100644 --- a/types/nginstack__datasource/lib/DataSourceColumns.d.ts +++ b/types/nginstack__datasource/lib/DataSourceColumns.d.ts @@ -1,7 +1,7 @@ export = DataSourceColumns; declare function DataSourceColumns( opt_dataSource?: DataSource, - opt_colsDefs?: DataSourceColumnDef[] + opt_colsDefs?: DataSourceColumnDef[], ): void; declare class DataSourceColumns { constructor(opt_dataSource?: DataSource, opt_colsDefs?: DataSourceColumnDef[]); @@ -19,19 +19,19 @@ declare class DataSourceColumns { prefix: string, opt_options?: | { - includeFieldNames: string; - excludeFieldNames: string; - children: boolean; - onlyVisible: boolean; - onlyIncludedFieldNames: boolean; - } - | Record + includeFieldNames: string; + excludeFieldNames: string; + children: boolean; + onlyVisible: boolean; + onlyIncludedFieldNames: boolean; + } + | Record, ): void; importVisibleFields( classKey: number, fieldNamesPrefix?: string, includeFieldNames?: string, - excludeFieldNames?: string + excludeFieldNames?: string, ): void; parseDynColumnExpr(columnName: any): { derivedFrom: any; @@ -51,9 +51,9 @@ declare class DataSourceColumns { getPostProcessingInfo(): any; } declare namespace DataSourceColumns { - export { DataSourceColumnDef, DataSource, IQuery }; + export { DataSource, DataSourceColumnDef, IQuery }; } -import DataSourceColumn = require('./DataSourceColumn.js'); -type DataSourceColumnDef = import('./DataSourceColumnDef'); -type DataSource = import('./DataSource'); -type IQuery = import('@nginstack/iquery/lib/IQuery'); +import DataSourceColumn = require("./DataSourceColumn.js"); +type DataSourceColumnDef = import("./DataSourceColumnDef"); +type DataSource = import("./DataSource"); +type IQuery = import("@nginstack/iquery/lib/IQuery"); diff --git a/types/nginstack__datasource/lib/DataSourceDataType.d.ts b/types/nginstack__datasource/lib/DataSourceDataType.d.ts index 57868b0ed3b24b..8f3606a35838f2 100644 --- a/types/nginstack__datasource/lib/DataSourceDataType.d.ts +++ b/types/nginstack__datasource/lib/DataSourceDataType.d.ts @@ -1,25 +1,25 @@ -export const STRING = 'string'; -export const CHAR = 'char'; -export const DATE = 'date'; -export const INT32 = 'int32'; -export const INT64 = 'int64'; -export const NUMBER = 'number'; -export const ARRAY = 'array'; -export const MEMO = 'memo'; -export const COMBO = 'combo'; -export const MASTER_DETAIL = 'masterdetail'; -export const BOOLEAN = 'boolean'; -export const PHONE = 'phone'; -export const FILE = 'file'; -export const PASSWORD = 'password'; -export const TIME = 'time'; -export const DATETIME = 'datetime'; -export const CEP = 'cep'; -export const LATITUDE = 'latitude'; -export const LONGITUDE = 'longitude'; -export const ANGLE = 'angle'; -export const GRID = 'grid'; -export const INTEGER = 'integer'; +export const STRING = "string"; +export const CHAR = "char"; +export const DATE = "date"; +export const INT32 = "int32"; +export const INT64 = "int64"; +export const NUMBER = "number"; +export const ARRAY = "array"; +export const MEMO = "memo"; +export const COMBO = "combo"; +export const MASTER_DETAIL = "masterdetail"; +export const BOOLEAN = "boolean"; +export const PHONE = "phone"; +export const FILE = "file"; +export const PASSWORD = "password"; +export const TIME = "time"; +export const DATETIME = "datetime"; +export const CEP = "cep"; +export const LATITUDE = "latitude"; +export const LONGITUDE = "longitude"; +export const ANGLE = "angle"; +export const GRID = "grid"; +export const INTEGER = "integer"; export type DataSourceDataType = | typeof STRING diff --git a/types/nginstack__datasource/lib/DataSourceDef.d.ts b/types/nginstack__datasource/lib/DataSourceDef.d.ts index a23d1ebf83eb33..314be492fa0364 100644 --- a/types/nginstack__datasource/lib/DataSourceDef.d.ts +++ b/types/nginstack__datasource/lib/DataSourceDef.d.ts @@ -15,10 +15,10 @@ declare class DataSourceDef { private autoPurgeUnsolicitedColumns; } declare namespace DataSourceDef { - export { DataSet, DataSource, DataSourceFilters, DataSourceColumns, DataSourceSecurityMode }; + export { DataSet, DataSource, DataSourceColumns, DataSourceFilters, DataSourceSecurityMode }; } -type DataSet = import('@nginstack/engine/lib/dataset/DataSet'); -type DataSource = import('./DataSource'); -type DataSourceFilters = import('./DataSourceFilters'); -type DataSourceColumns = import('./DataSourceColumns'); +type DataSet = import("@nginstack/engine/lib/dataset/DataSet"); +type DataSource = import("./DataSource"); +type DataSourceFilters = import("./DataSourceFilters"); +type DataSourceColumns = import("./DataSourceColumns"); type DataSourceSecurityMode = any; diff --git a/types/nginstack__datasource/lib/DataSourceExecutor.d.ts b/types/nginstack__datasource/lib/DataSourceExecutor.d.ts index 62626d4d7870ce..198368d721ea44 100644 --- a/types/nginstack__datasource/lib/DataSourceExecutor.d.ts +++ b/types/nginstack__datasource/lib/DataSourceExecutor.d.ts @@ -9,4 +9,4 @@ declare class DataSourceExecutor { declare namespace DataSourceExecutor { export { DataSet }; } -type DataSet = import('@nginstack/engine/lib/dataset/DataSet'); +type DataSet = import("@nginstack/engine/lib/dataset/DataSet"); diff --git a/types/nginstack__datasource/lib/DataSourceField.d.ts b/types/nginstack__datasource/lib/DataSourceField.d.ts index eaa17b7b49bb8e..e53ab11bcf0687 100644 --- a/types/nginstack__datasource/lib/DataSourceField.d.ts +++ b/types/nginstack__datasource/lib/DataSourceField.d.ts @@ -28,4 +28,4 @@ declare class DataSourceField { declare namespace DataSourceField { let PREFIX_SEPARATOR: string; } -import DataSourceDataType = require('./DataSourceDataType.js'); +import DataSourceDataType = require("./DataSourceDataType.js"); diff --git a/types/nginstack__datasource/lib/DataSourceFieldDef.d.ts b/types/nginstack__datasource/lib/DataSourceFieldDef.d.ts index e5c54a418ae073..bba5495ae54840 100644 --- a/types/nginstack__datasource/lib/DataSourceFieldDef.d.ts +++ b/types/nginstack__datasource/lib/DataSourceFieldDef.d.ts @@ -15,10 +15,10 @@ declare class DataSourceFieldDef { displayFormat: DateFormat | LatitudeFormat | LongitudeFormat | AngleFormat | NumberFormat; } declare namespace DataSourceFieldDef { - export { DateFormat, LatitudeFormat, LongitudeFormat, AngleFormat, NumberFormat }; + export { AngleFormat, DateFormat, LatitudeFormat, LongitudeFormat, NumberFormat }; } -type DateFormat = typeof import('@nginstack/engine/lib/date/DateFormat'); -type LatitudeFormat = typeof import('@nginstack/engine/lib/geo/LatitudeFormat'); -type LongitudeFormat = typeof import('@nginstack/engine/lib/geo/LongitudeFormat'); -type AngleFormat = typeof import('@nginstack/engine/lib/geo/AngleFormat'); -type NumberFormat = typeof import('@nginstack/engine/lib/number/NumberFormat'); +type DateFormat = typeof import("@nginstack/engine/lib/date/DateFormat"); +type LatitudeFormat = typeof import("@nginstack/engine/lib/geo/LatitudeFormat"); +type LongitudeFormat = typeof import("@nginstack/engine/lib/geo/LongitudeFormat"); +type AngleFormat = typeof import("@nginstack/engine/lib/geo/AngleFormat"); +type NumberFormat = typeof import("@nginstack/engine/lib/number/NumberFormat"); diff --git a/types/nginstack__datasource/lib/DataSourceFilter.d.ts b/types/nginstack__datasource/lib/DataSourceFilter.d.ts index 54c7d01de1ffcd..29d584c9294b83 100644 --- a/types/nginstack__datasource/lib/DataSourceFilter.d.ts +++ b/types/nginstack__datasource/lib/DataSourceFilter.d.ts @@ -2,7 +2,7 @@ export = DataSourceFilter; declare function DataSourceFilter(name: string, type: string): void; declare class DataSourceFilter { constructor(name: string, type: string); - onAfterLoadDefaultValue: import('@nginstack/engine/lib/event/Event'); + onAfterLoadDefaultValue: import("@nginstack/engine/lib/event/Event"); private propertiesToAssign_; group: string; size: number; @@ -28,24 +28,17 @@ declare class DataSourceFilter { classKey: number; lookupType: number; displayFormat: - | import('@nginstack/engine/lib/date/DateFormat.js').DateFormatType - | import('@nginstack/engine/lib/geo/LatitudeFormat.js').LatitudeFormatType - | import('@nginstack/engine/lib/geo/LongitudeFormat.js').LongitudeFormatType - | import('@nginstack/engine/lib/geo/AngleFormat.js').AngleFormatType - | import('@nginstack/engine/lib/number/NumberFormat.js').NumberFormatType; + | import("@nginstack/engine/lib/date/DateFormat.js").DateFormatType + | import("@nginstack/engine/lib/geo/LatitudeFormat.js").LatitudeFormatType + | import("@nginstack/engine/lib/geo/LongitudeFormat.js").LongitudeFormatType + | import("@nginstack/engine/lib/geo/AngleFormat.js").AngleFormatType + | import("@nginstack/engine/lib/number/NumberFormat.js").NumberFormatType; stringIfTrue: string; } declare namespace DataSourceFilter { - export { - DATE_KEYWORDS, - removeRangeSuffix, - shouldCreateAuxiliaryRangeFilters, - Event, - Field, - LimitType, - }; + export { DATE_KEYWORDS, Event, Field, LimitType, removeRangeSuffix, shouldCreateAuxiliaryRangeFilters }; } -import FilterOperator = require('./FilterOperator.js'); +import FilterOperator = require("./FilterOperator.js"); declare namespace DATE_KEYWORDS { let IM: boolean; let FM: boolean; @@ -62,6 +55,6 @@ declare namespace DATE_KEYWORDS { } declare function removeRangeSuffix(name: string): string; declare function shouldCreateAuxiliaryRangeFilters(filter: DataSourceFilter | Field): boolean; -type Event = import('@nginstack/engine/lib/event/Event'); -type Field = import('@nginstack/engine/lib/classdef/Field'); +type Event = import("@nginstack/engine/lib/event/Event"); +type Field = import("@nginstack/engine/lib/classdef/Field"); type LimitType = 1 | 2; diff --git a/types/nginstack__datasource/lib/DataSourceFilters.d.ts b/types/nginstack__datasource/lib/DataSourceFilters.d.ts index 2c98a0707f03c8..9d0b5c6f5e0b57 100644 --- a/types/nginstack__datasource/lib/DataSourceFilters.d.ts +++ b/types/nginstack__datasource/lib/DataSourceFilters.d.ts @@ -13,14 +13,14 @@ declare class DataSourceFilters { prefix: string, opt_options?: | { - includeFieldNames: string; - excludeFieldNames: string; - children: boolean; - onlyVisible: boolean; - onlyIncludedFieldNames: boolean; - classDef: ModelDef; - } - | Record + includeFieldNames: string; + excludeFieldNames: string; + children: boolean; + onlyVisible: boolean; + onlyIncludedFieldNames: boolean; + classDef: ModelDef; + } + | Record, ): void; importVisibleFields( classKey: number, @@ -28,7 +28,7 @@ declare class DataSourceFilters { includeFieldNames?: string, excludeFieldNames?: string, classDef?: ModelDef, - onlyIncludedFieldNames?: boolean + onlyIncludedFieldNames?: boolean, ): void; parseDynFilterExpr(filterName: string): any; filter(id: number | string, opt_type?: string, opt_classKey?: number): DataSourceFilter; @@ -41,13 +41,13 @@ declare class DataSourceFilters { hasFilter(name: string): boolean; map( fn: (arg0: DataSourceFilter, arg1: number, arg2: DataSourceFilter[]) => any, - opt_scope?: any + opt_scope?: any, ): any[]; } declare namespace DataSourceFilters { - export { ModelDef, IQuery, DataSource }; + export { DataSource, IQuery, ModelDef }; } -import DataSourceFilter = require('./DataSourceFilter.js'); -type ModelDef = import('@nginstack/engine/lib/classdef/ModelDef'); -type IQuery = import('@nginstack/iquery/lib/IQuery'); -type DataSource = import('./DataSource'); +import DataSourceFilter = require("./DataSourceFilter.js"); +type ModelDef = import("@nginstack/engine/lib/classdef/ModelDef"); +type IQuery = import("@nginstack/iquery/lib/IQuery"); +type DataSource = import("./DataSource"); diff --git a/types/nginstack__datasource/lib/DataSourceQuery.d.ts b/types/nginstack__datasource/lib/DataSourceQuery.d.ts index 08f4193a2ab48a..86212496b481a5 100644 --- a/types/nginstack__datasource/lib/DataSourceQuery.d.ts +++ b/types/nginstack__datasource/lib/DataSourceQuery.d.ts @@ -19,4 +19,4 @@ declare class DataSourceQuery { declare namespace DataSourceQuery { export { DataSet }; } -type DataSet = import('@nginstack/engine/lib/dataset/DataSet'); +type DataSet = import("@nginstack/engine/lib/dataset/DataSet"); diff --git a/types/nginstack__datasource/lib/DataSourceQueryDef.d.ts b/types/nginstack__datasource/lib/DataSourceQueryDef.d.ts index c266729de141ea..310058b90e31fc 100644 --- a/types/nginstack__datasource/lib/DataSourceQueryDef.d.ts +++ b/types/nginstack__datasource/lib/DataSourceQueryDef.d.ts @@ -13,4 +13,4 @@ declare class DataSourceQueryDef { declare namespace DataSourceQueryDef { export { DataSourceQuery }; } -type DataSourceQuery = import('./DataSourceQuery'); +type DataSourceQuery = import("./DataSourceQuery"); diff --git a/types/nginstack__datasource/lib/DataSourceResult.d.ts b/types/nginstack__datasource/lib/DataSourceResult.d.ts index 9cf1bdef90049a..5a44d0361c64ab 100644 --- a/types/nginstack__datasource/lib/DataSourceResult.d.ts +++ b/types/nginstack__datasource/lib/DataSourceResult.d.ts @@ -2,13 +2,13 @@ export = DataSourceResult; declare function DataSourceResult( dataSource: DataSource, filters: DataSourceFilterDef[] | any[] | DataSourceFilters, - columns: DataSourceColumnDef[] | any[] | DataSourceColumns + columns: DataSourceColumnDef[] | any[] | DataSourceColumns, ): void; declare class DataSourceResult { constructor( dataSource: DataSource, filters: DataSourceFilterDef[] | any[] | DataSourceFilters, - columns: DataSourceColumnDef[] | any[] | DataSourceColumns + columns: DataSourceColumnDef[] | any[] | DataSourceColumns, ); private dataSource_; private filters_; @@ -19,11 +19,11 @@ declare class DataSourceResult { getDataSet(): DataSet; } declare namespace DataSourceResult { - export { DataSet, DataSource, DataSourceFilterDef, DataSourceColumnDef }; + export { DataSet, DataSource, DataSourceColumnDef, DataSourceFilterDef }; } -import DataSourceFilters = require('./DataSourceFilters.js'); -import DataSourceColumns = require('./DataSourceColumns.js'); -type DataSet = import('@nginstack/engine/lib/dataset/DataSet'); -type DataSource = import('./DataSource'); -type DataSourceFilterDef = import('./DataSourceFilterDef'); -type DataSourceColumnDef = import('./DataSourceColumnDef'); +import DataSourceFilters = require("./DataSourceFilters.js"); +import DataSourceColumns = require("./DataSourceColumns.js"); +type DataSet = import("@nginstack/engine/lib/dataset/DataSet"); +type DataSource = import("./DataSource"); +type DataSourceFilterDef = import("./DataSourceFilterDef"); +type DataSourceColumnDef = import("./DataSourceColumnDef"); diff --git a/types/nginstack__datasource/lib/FilterOperator.d.ts b/types/nginstack__datasource/lib/FilterOperator.d.ts index 354da8a8410709..c8b9a63ec820e3 100644 --- a/types/nginstack__datasource/lib/FilterOperator.d.ts +++ b/types/nginstack__datasource/lib/FilterOperator.d.ts @@ -1,9 +1,9 @@ -export const EQUALITY = '='; -export const INEQUALITY = '<>'; -export const GREATER_THAN = '>'; -export const LESS_THAN = '<'; -export const GREATER_THAN_OR_EQUAL = '>='; -export const LESS_THAN_OR_EQUAL = '<='; -export const LIKE = 'like'; -export const EXISTS = 'exists'; -export const NOT_EXISTS = 'not exists'; +export const EQUALITY = "="; +export const INEQUALITY = "<>"; +export const GREATER_THAN = ">"; +export const LESS_THAN = "<"; +export const GREATER_THAN_OR_EQUAL = ">="; +export const LESS_THAN_OR_EQUAL = "<="; +export const LIKE = "like"; +export const EXISTS = "exists"; +export const NOT_EXISTS = "not exists"; diff --git a/types/nginstack__datasource/nginstack__datasource-tests.ts b/types/nginstack__datasource/nginstack__datasource-tests.ts index 79fa3cc8530d14..91670c754312b4 100644 --- a/types/nginstack__datasource/nginstack__datasource-tests.ts +++ b/types/nginstack__datasource/nginstack__datasource-tests.ts @@ -1,7 +1,7 @@ -import DataSource from '@nginstack/datasource/lib/DataSource'; -import DataSourceColumnDef from '@nginstack/datasource/lib/DataSourceColumnDef'; -import DataSourceColumns from '@nginstack/datasource/lib/DataSourceColumns'; -import DataSourceFilters from '@nginstack/datasource/lib/DataSourceFilters'; +import DataSource from "@nginstack/datasource/lib/DataSource"; +import DataSourceColumnDef from "@nginstack/datasource/lib/DataSourceColumnDef"; +import DataSourceColumns from "@nginstack/datasource/lib/DataSourceColumns"; +import DataSourceFilters from "@nginstack/datasource/lib/DataSourceFilters"; const datasource = new DataSource(1); // $ExpectType DataSource const filters = new DataSourceFilters(datasource); // $ExpectType DataSourceFilters @@ -15,12 +15,12 @@ datasource.help; // $ExpectType string datasource.autoPurgeUnsolicitedColumns; // $ExpectType boolean datasource.getQuery(filters, columns); // $ExpectType string -datasource.createFilters(['']); // $ExpectType DataSourceFilters +datasource.createFilters([""]); // $ExpectType DataSourceFilters datasource.createFiltersFromMap({ a: 1 }); // $ExpectType DataSourceFilters datasource.createColumns(columnDefs); // $ExpectType DataSourceColumns datasource.getDataSet(filters, columns); // $ExpectType DataSet function getVersion(): string { - return '81.0.1'; + return "81.0.1"; } getVersion(); // $ExpectType string diff --git a/types/nginstack__iquery/lib/IClauseFrom.d.ts b/types/nginstack__iquery/lib/IClauseFrom.d.ts index 82cf01f298b45c..3bcdf3ff5facf4 100644 --- a/types/nginstack__iquery/lib/IClauseFrom.d.ts +++ b/types/nginstack__iquery/lib/IClauseFrom.d.ts @@ -33,5 +33,5 @@ declare namespace IClauseFrom { function createSequenceAlias(): number; function resetSequenceAlias(): void; } -import IQuery = require('./IQuery.js'); -import IJoinManager = require('./IJoinManager.js'); +import IQuery = require("./IQuery.js"); +import IJoinManager = require("./IJoinManager.js"); diff --git a/types/nginstack__iquery/lib/IClauseJoin.d.ts b/types/nginstack__iquery/lib/IClauseJoin.d.ts index 8c40c7b099278e..9f5a28ca53ecec 100644 --- a/types/nginstack__iquery/lib/IClauseJoin.d.ts +++ b/types/nginstack__iquery/lib/IClauseJoin.d.ts @@ -3,7 +3,7 @@ declare function IClauseJoin( iQuery: IQuery, iQueryJoin: IQuery, type: string, - isRightTableAsSubquery: any + isRightTableAsSubquery: any, ): void; declare class IClauseJoin { constructor(iQuery: IQuery, iQueryJoin: IQuery, type: string, isRightTableAsSubquery: any); @@ -24,13 +24,13 @@ declare class IClauseJoin { getColumnsNames(): object; } declare namespace IClauseJoin { - export { IQuery, IClauseWhere, RightTableAsSubQueryConfig }; + export { IClauseWhere, IQuery, RightTableAsSubQueryConfig }; } -type IQuery = import('./IQuery'); -type IClauseWhere = import('./IClauseWhere'); +type IQuery = import("./IQuery"); +type IClauseWhere = import("./IClauseWhere"); interface RightTableAsSubQueryConfig { isEnabled: boolean; clauseSelect: IClauseSelect; subQueryAlias: string; } -import IClauseSelect = require('./IClauseSelect.js'); +import IClauseSelect = require("./IClauseSelect.js"); diff --git a/types/nginstack__iquery/lib/IClauseSelect.d.ts b/types/nginstack__iquery/lib/IClauseSelect.d.ts index dc3b3460eaf213..1b9c7a71ab17f1 100644 --- a/types/nginstack__iquery/lib/IClauseSelect.d.ts +++ b/types/nginstack__iquery/lib/IClauseSelect.d.ts @@ -34,8 +34,8 @@ declare class IClauseSelect { private fetchGroupByArr_; } declare namespace IClauseSelect { - export { IQuery, DataSet }; + export { DataSet, IQuery }; } -import IColumn = require('./IColumn.js'); -type IQuery = import('./IQuery'); -type DataSet = import('@nginstack/engine/lib/dataset/DataSet'); +import IColumn = require("./IColumn.js"); +type IQuery = import("./IQuery"); +type DataSet = import("@nginstack/engine/lib/dataset/DataSet"); diff --git a/types/nginstack__iquery/lib/IClauseWhere.d.ts b/types/nginstack__iquery/lib/IClauseWhere.d.ts index 1fb71031e35b0f..838b683b1a1a19 100644 --- a/types/nginstack__iquery/lib/IClauseWhere.d.ts +++ b/types/nginstack__iquery/lib/IClauseWhere.d.ts @@ -33,5 +33,5 @@ declare class IClauseWhere { declare namespace IClauseWhere { export { IClauseJoin }; } -import IQuery = require('./IQuery.js'); -type IClauseJoin = import('./IClauseJoin'); +import IQuery = require("./IQuery.js"); +type IClauseJoin = import("./IClauseJoin"); diff --git a/types/nginstack__iquery/lib/IClauseWhereFactory.d.ts b/types/nginstack__iquery/lib/IClauseWhereFactory.d.ts index db4bc546509f9c..3f372479abc36b 100644 --- a/types/nginstack__iquery/lib/IClauseWhereFactory.d.ts +++ b/types/nginstack__iquery/lib/IClauseWhereFactory.d.ts @@ -10,6 +10,6 @@ declare class IClauseWhereFactory { declare namespace IClauseWhereFactory { export { IClauseJoin, IQuery }; } -import IClauseWhere = require('./IClauseWhere.js'); -type IClauseJoin = import('./IClauseJoin'); -type IQuery = import('./IQuery'); +import IClauseWhere = require("./IClauseWhere.js"); +type IClauseJoin = import("./IClauseJoin"); +type IQuery = import("./IQuery"); diff --git a/types/nginstack__iquery/lib/IClauseWhereManager.d.ts b/types/nginstack__iquery/lib/IClauseWhereManager.d.ts index b7dcf56f6b7721..9aac566ccd3edd 100644 --- a/types/nginstack__iquery/lib/IClauseWhereManager.d.ts +++ b/types/nginstack__iquery/lib/IClauseWhereManager.d.ts @@ -10,7 +10,7 @@ declare class IClauseWhereManager { makeClauseWhere(iQuery: IQuery, literalClause: any, join?: boolean): IClauseWhere; } declare namespace IClauseWhereManager { - export { IQuery, IClauseWhere }; + export { IClauseWhere, IQuery }; } -type IQuery = import('./IQuery'); -type IClauseWhere = import('./IClauseWhere'); +type IQuery = import("./IQuery"); +type IClauseWhere = import("./IClauseWhere"); diff --git a/types/nginstack__iquery/lib/IColumn.d.ts b/types/nginstack__iquery/lib/IColumn.d.ts index 0a1dc28fd3bc45..f5981bfe27dff8 100644 --- a/types/nginstack__iquery/lib/IColumn.d.ts +++ b/types/nginstack__iquery/lib/IColumn.d.ts @@ -38,7 +38,7 @@ declare class IColumn { declare namespace IColumn { export { ColumnConfig }; } -import IClauseSelect = require('./IClauseSelect.js'); +import IClauseSelect = require("./IClauseSelect.js"); interface ColumnConfig { alias: string; cast: string; diff --git a/types/nginstack__iquery/lib/IJoinManager.d.ts b/types/nginstack__iquery/lib/IJoinManager.d.ts index 373a2f399dedd1..d17b58927520a1 100644 --- a/types/nginstack__iquery/lib/IJoinManager.d.ts +++ b/types/nginstack__iquery/lib/IJoinManager.d.ts @@ -16,5 +16,5 @@ declare class IJoinManager { simpleColumnsNames: any[]; }; } -import IQuery = require('./IQuery.js'); -import IClauseJoin = require('./IClauseJoin.js'); +import IQuery = require("./IQuery.js"); +import IClauseJoin = require("./IClauseJoin.js"); diff --git a/types/nginstack__iquery/lib/IQuery.d.ts b/types/nginstack__iquery/lib/IQuery.d.ts index 232f2dc50768d1..86daaaaecd1f33 100644 --- a/types/nginstack__iquery/lib/IQuery.d.ts +++ b/types/nginstack__iquery/lib/IQuery.d.ts @@ -24,12 +24,12 @@ declare class IQuery { toSql(): string; } declare namespace IQuery { - export { defaultCheckPermission, from, DBKey, IClauseJoin }; + export { DBKey, defaultCheckPermission, from, IClauseJoin }; } -import IClauseSelect = require('./IClauseSelect.js'); -import IJoinManager = require('./IJoinManager.js'); -import IClauseFrom = require('./IClauseFrom.js'); +import IClauseSelect = require("./IClauseSelect.js"); +import IJoinManager = require("./IJoinManager.js"); +import IClauseFrom = require("./IClauseFrom.js"); declare let defaultCheckPermission: boolean; declare let from: any; -type DBKey = import('@nginstack/engine/lib/dbkey/DBKey'); -type IClauseJoin = import('./IClauseJoin'); +type DBKey = import("@nginstack/engine/lib/dbkey/DBKey"); +type IClauseJoin = import("./IClauseJoin"); diff --git a/types/nginstack__iquery/lib/PermissionClauseGenerator.d.ts b/types/nginstack__iquery/lib/PermissionClauseGenerator.d.ts index d08cbb1be2a112..4e1f5fc6420e8d 100644 --- a/types/nginstack__iquery/lib/PermissionClauseGenerator.d.ts +++ b/types/nginstack__iquery/lib/PermissionClauseGenerator.d.ts @@ -9,31 +9,37 @@ declare class PermissionClauseGenerator { addClassPermission(classKey: any, userKey: any): void; generate(classFieldName: any): | string - | Array<| string - | { - field: any; - operator: string; - value: any; - disableGetChildren: boolean; - }> + | Array< + | string + | { + field: any; + operator: string; + value: any; + disableGetChildren: boolean; + } + > | { - field: any; - operator: string; - value: any[]; - disableGetChildren: boolean; - } - | Array<| string - | Array<| string - | { - field: any; - operator: string; - value: any; - disableGetChildren: boolean; - }> - | { + field: any; + operator: string; + value: any[]; + disableGetChildren: boolean; + } + | Array< + | string + | Array< + | string + | { field: any; operator: string; - value: any[]; + value: any; disableGetChildren: boolean; - }>; + } + > + | { + field: any; + operator: string; + value: any[]; + disableGetChildren: boolean; + } + >; } diff --git a/types/nginstack__iquery/nginstack__iquery-tests.ts b/types/nginstack__iquery/nginstack__iquery-tests.ts index c5b9ad7400927a..112f9df7f86b44 100644 --- a/types/nginstack__iquery/nginstack__iquery-tests.ts +++ b/types/nginstack__iquery/nginstack__iquery-tests.ts @@ -1,5 +1,5 @@ -import IClauseSelect from '@nginstack/iquery/lib/IClauseSelect'; -import IQuery from '@nginstack/iquery/lib/IQuery'; +import IClauseSelect from "@nginstack/iquery/lib/IClauseSelect"; +import IQuery from "@nginstack/iquery/lib/IQuery"; const iquery = new IQuery(); const clauseSelect = new IClauseSelect(iquery); @@ -10,10 +10,10 @@ iquery.whereClauseCount; // $ExpectType number iquery.validatePermission; // $ExpectType number iquery.column(clauseSelect); // $ExpectType IClauseSelect -iquery.from(1, ''); // $ExpectType IQuery +iquery.from(1, ""); // $ExpectType IQuery iquery.innerJoin(iquery); // $ExpectType IClauseJoin iquery.leftOuterJoin(iquery); // $ExpectType IClauseJoin -iquery.where(['']); // $ExpectType IQuery +iquery.where([""]); // $ExpectType IQuery iquery.uncheckPermission(); // $ExpectType IQuery iquery.checkPermission(); // $ExpectType IQuery iquery.getLeftJoinIQuery(); // $ExpectType IClauseJoin @@ -21,6 +21,6 @@ iquery.getWhereSql(true); // $ExpectType string iquery.toSql(); // $ExpectType string function getVersion(): string { - return '81.0.1'; + return "81.0.1"; } getVersion(); // $ExpectType string From 738ceff720c493b250462b08b6708031fe86756b Mon Sep 17 00:00:00 2001 From: Renato Ribeiro <57230682+Henato@users.noreply.github.com> Date: Thu, 15 Jan 2026 18:27:27 -0300 Subject: [PATCH 08/13] =?UTF-8?q?=F0=9F=A4=96=20Merge=20PR=20#74348=20feat?= =?UTF-8?q?:=20update=20@nginstack/web-framework=20definitions=20by=20@Hen?= =?UTF-8?q?ato?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Renato Fernandes --- types/nginstack__web-framework/index.d.ts | 5 + .../keys/Configs.d.ts | 1 + .../nginstack__web-framework/keys/Files.d.ts | 14 +- .../nginstack__web-framework/keys/Pages.d.ts | 3 - .../nginstack__web-framework/keys/Themes.d.ts | 1 + .../lib/anchor/Link.d.ts | 31 +- .../lib/anchor/LinkEvent.d.ts | 10 + .../lib/anchor/LinkSet.d.ts | 16 +- .../lib/audio/Audio.d.ts | 6 +- .../lib/autofill/AutofillStorage.d.ts | 4 +- .../lib/button/Button.d.ts | 27 +- .../lib/button/ButtonEvent.d.ts | 9 + .../lib/button/ButtonTimer.d.ts | 4 +- .../lib/chart/ECharts.d.ts | 2 +- .../lib/classdef/CellStyleEvent.d.ts | 6 + .../lib/classdef/CellThumbnail.d.ts | 17 +- .../lib/classdef/DuplicateMode.d.ts | 6 +- .../lib/classdef/EnterKeyAction.d.ts | 6 +- .../lib/classdef/GetImagesEvent.d.ts | 7 + .../lib/classdef/GlobalAction.d.ts | 2 +- .../lib/classdef/GlobalActionEvent.d.ts | 2 +- .../lib/classdef/GlobalActionSet.d.ts | 4 +- .../lib/classdef/GridEvent.d.ts | 8 +- .../lib/classdef/GridFieldEvent.d.ts | 4 +- .../lib/classdef/GridLocateEvent.d.ts | 2 +- .../classdef/LookupMultipleInsertEvent.d.ts | 2 +- .../lib/classdef/OpenKeyEvent.d.ts | 2 +- .../lib/classdef/ViewDef.d.ts | 22 +- .../lib/classdef/ViewDefField.d.ts | 45 +- .../lib/classdef/constants.d.ts | 5 +- .../lib/classdef/getGlobalActions.d.ts | 2 +- .../lib/classdef/parsePixelValue.d.ts | 2 + .../component/ComponentFactoryResolver.d.ts | 4 +- .../lib/connection/newConnection.d.ts | 4 +- .../lib/connection/tryNewConnection.d.ts | 2 +- .../lib/css/formatLinkTag.d.ts | 9 +- .../lib/dialogs/FormDialog.d.ts | 12 +- .../lib/dialogs/FormDialogField.d.ts | 18 +- .../lib/dialogs/SimpleDialog.d.ts | 4 +- .../lib/dialogs/UploadDialog.d.ts | 10 +- .../lib/dsv/CompositeVisualization.d.ts | 8 +- .../lib/dsv/CompositeVisualizationSlot.d.ts | 6 +- .../lib/dsv/DataVisualization.d.ts | 4 +- .../lib/dsv/EChartsVisualization.d.ts | 4 +- .../lib/dsv/EChartsVisualizationDef.d.ts | 4 +- .../lib/dsv/HighchartsVisualization.d.ts | 4 +- .../lib/dsv/HighchartsVisualizationDef.d.ts | 4 +- .../lib/dsv/PivotGroupType.d.ts | 6 +- .../lib/dsv/ReportVisualization.d.ts | 21 +- .../lib/dsv/ReportVisualizationColumn.d.ts | 27 +- .../lib/dsv/ReportVisualizationColumnDef.d.ts | 4 +- .../lib/dsv/ReportVisualizationColumns.d.ts | 2 +- .../lib/dsv/ReportVisualizationDef.d.ts | 2 +- .../lib/dsv/TotalAggregate.d.ts | 10 +- .../lib/dsv/Visualization.d.ts | 22 +- .../lib/dsv/VisualizationDef.d.ts | 12 +- .../lib/dsv/VisualizationFactory.d.ts | 4 +- .../lib/dsv/VisualizationFilters.d.ts | 26 +- .../lib/dsv/VisualizationSchedulerJob.d.ts | 2 +- .../lib/dsv/columnIsDerived.d.ts | 2 +- .../lib/environment/Environment.d.ts | 12 +- .../lib/environment/PendingTaskManager.d.ts | 4 +- .../lib/environment/restrictSystemAccess.d.ts | 2 + .../lib/export/DataExporter.d.ts | 12 +- .../lib/export/DataExporterFieldDef.d.ts | 35 +- .../lib/export/DataSetExporter.d.ts | 4 +- .../field-aggregator/AvgFieldAggregator.d.ts | 1 + .../CountFieldAggregator.d.ts | 1 + .../lib/field-aggregator/FieldAggregator.d.ts | 4 +- .../LabelFieldAggregator.d.ts | 8 + .../lib/file-loader/DownloadFile.d.ts | 2 +- .../lib/file-loader/FileLoader.d.ts | 19 +- .../lib/file-loader/UploadOptions.d.ts | 2 + .../lib/file-loader/UploadedFile.d.ts | 24 +- .../lib/finder/Finder.d.ts | 11 +- .../lib/grid/AggregateBar.d.ts | 11 +- .../lib/grid/DetailGrid.d.ts | 7 +- .../lib/grid/FieldPermissionValidator.d.ts | 4 +- .../grid/FieldPermissionValidatorManager.d.ts | 2 +- .../lib/grid/Grid.d.ts | 447 +++++++++++++----- .../lib/grid/GridExportEvent.d.ts | 8 +- .../lib/grid/GridExporter.d.ts | 8 +- .../lib/grid/GridField.d.ts | 107 ++++- .../lib/grid/NavigationAction.d.ts | 4 + .../lib/grid/RecordBuffer.d.ts | 2 +- .../lib/grid/SelectionAction.d.ts | 3 + .../lib/grid/TreeView.d.ts | 12 +- .../lib/grid/formatKeyNotFoundMessage.d.ts | 2 +- .../lib/grid/warnIfDataSetChangeState.d.ts | 8 +- .../lib/html/formatHoverBox.d.ts | 2 +- .../lib/html/formatIconTag.d.ts | 6 +- .../lib/html/formatImageTag.d.ts | 4 +- .../lib/http/FakeResponse.d.ts | 2 +- .../lib/ifp/CommandType.d.ts | 34 ++ .../lib/ifp/ControlChannel.d.ts | 11 +- .../lib/ifp/RequestType.d.ts | 2 + .../lib/ifp/SyncAction.d.ts | 3 + .../lib/ifp/SyncMethod.d.ts | 7 + .../lib/ifp/SyncTarget.d.ts | 5 + .../lib/ifp/constants.d.ts | 117 ----- .../lib/label/Label.d.ts | 12 +- .../lib/label/LabelAlignment.d.ts | 8 +- .../lib/messaging/Controller.d.ts | 6 +- .../lib/messaging/ServerComponent.d.ts | 2 +- .../lib/process/Interaction.d.ts | 8 +- .../lib/process/LayoutManager.d.ts | 2 +- .../lib/process/Process.d.ts | 167 +++++-- .../lib/process/ProcessCreateEvent.d.ts | 2 +- .../lib/process/ProcessEvent.d.ts | 2 +- .../lib/process/ProcessInteractionEvent.d.ts | 2 +- .../lib/process/ProcessManager.d.ts | 143 ++++-- .../lib/process/getProcessDisplayName.d.ts | 2 + .../lib/process/runActivity.d.ts | 14 - .../lib/search/SearchResultSet.d.ts | 4 +- .../lib/search/SearchType.d.ts | 8 +- .../lib/search/Seeker.d.ts | 4 +- .../lib/settings/newSettingsGrid.d.ts | 8 +- .../lib/simple-layout/Accumulator.d.ts | 4 +- .../lib/simple-layout/Column.d.ts | 33 +- .../lib/simple-layout/Footer.d.ts | 10 +- .../lib/simple-layout/Header.d.ts | 18 +- .../lib/simple-layout/SimpleLayout.d.ts | 84 ++-- .../simple-layout/SimpleLayoutExporter.d.ts | 2 +- .../lib/theme/Theme.d.ts | 14 +- .../lib/url/formatAssetUrl.d.ts | 2 +- .../nginstack__web-framework-tests.ts | 26 +- types/nginstack__web-framework/package.json | 4 +- 127 files changed, 1277 insertions(+), 787 deletions(-) delete mode 100644 types/nginstack__web-framework/keys/Pages.d.ts create mode 100644 types/nginstack__web-framework/keys/Themes.d.ts create mode 100644 types/nginstack__web-framework/lib/anchor/LinkEvent.d.ts create mode 100644 types/nginstack__web-framework/lib/button/ButtonEvent.d.ts create mode 100644 types/nginstack__web-framework/lib/classdef/CellStyleEvent.d.ts create mode 100644 types/nginstack__web-framework/lib/classdef/GetImagesEvent.d.ts create mode 100644 types/nginstack__web-framework/lib/classdef/parsePixelValue.d.ts create mode 100644 types/nginstack__web-framework/lib/environment/restrictSystemAccess.d.ts create mode 100644 types/nginstack__web-framework/lib/field-aggregator/LabelFieldAggregator.d.ts create mode 100644 types/nginstack__web-framework/lib/grid/NavigationAction.d.ts create mode 100644 types/nginstack__web-framework/lib/grid/SelectionAction.d.ts create mode 100644 types/nginstack__web-framework/lib/ifp/CommandType.d.ts create mode 100644 types/nginstack__web-framework/lib/ifp/RequestType.d.ts create mode 100644 types/nginstack__web-framework/lib/ifp/SyncAction.d.ts create mode 100644 types/nginstack__web-framework/lib/ifp/SyncMethod.d.ts create mode 100644 types/nginstack__web-framework/lib/ifp/SyncTarget.d.ts delete mode 100644 types/nginstack__web-framework/lib/ifp/constants.d.ts create mode 100644 types/nginstack__web-framework/lib/process/getProcessDisplayName.d.ts delete mode 100644 types/nginstack__web-framework/lib/process/runActivity.d.ts diff --git a/types/nginstack__web-framework/index.d.ts b/types/nginstack__web-framework/index.d.ts index 99cf52c84651b3..9db7010dffa613 100644 --- a/types/nginstack__web-framework/index.d.ts +++ b/types/nginstack__web-framework/index.d.ts @@ -5,12 +5,14 @@ /// /// /// +/// /// /// /// /// /// /// +/// /// /// /// @@ -18,8 +20,10 @@ /// /// /// +/// /// /// +/// /// /// /// @@ -73,6 +77,7 @@ /// /// /// +/// /// /// /// diff --git a/types/nginstack__web-framework/keys/Configs.d.ts b/types/nginstack__web-framework/keys/Configs.d.ts index 16b6d27474aa9d..e616af1cb1a3ac 100644 --- a/types/nginstack__web-framework/keys/Configs.d.ts +++ b/types/nginstack__web-framework/keys/Configs.d.ts @@ -7,6 +7,7 @@ export let HIGHCHARTS: number; export let LIBRARIES: number; export let LOGIN: number; export let PENDING_TASKS: number; +export let REPORTS: number; export let SEARCH: number; export let SECURITY: number; export let SESSION: number; diff --git a/types/nginstack__web-framework/keys/Files.d.ts b/types/nginstack__web-framework/keys/Files.d.ts index 8865c66cf4db11..1990f5e8f7d4a0 100644 --- a/types/nginstack__web-framework/keys/Files.d.ts +++ b/types/nginstack__web-framework/keys/Files.d.ts @@ -1,19 +1,15 @@ -export let SIMPLE_LAYOUT_CSS: number; +export let BEEP_MP3: number; +export let BEEP_WAV: number; +export let BROKER: number; export let CLIENT_LIBRARY: number; -export let FONT_AWESOME_CSS: number; -export let FONT_AWESOME_EOT: number; -export let FONT_AWESOME_OTF: number; -export let FONT_AWESOME_SVG: number; -export let FONT_AWESOME_TTF: number; -export let FONT_AWESOME_WOFF: number; export let HIGHCHARTS_OPTIONS_JS: number; -export let JQTOUCH: number; export let LOGIN_PAGE_CSS: number; export let LOGIN_PAGE_HTML: number; export let LOGIN_PAGE_JS: number; -export let WEB_FRAMEWORK_JAZ: number; export let ROBOT_CSS: number; export let SERVICE_WORKER_DIST: number; +export let SIMPLE_LAYOUT_CSS: number; +export let WEB_FRAMEWORK_JAZ: number; export let WEB_UI_CSS: number; export let WEB_UI_JS: number; export let WF_ICONS_CSS: number; diff --git a/types/nginstack__web-framework/keys/Pages.d.ts b/types/nginstack__web-framework/keys/Pages.d.ts deleted file mode 100644 index 8b901689f9f6bb..00000000000000 --- a/types/nginstack__web-framework/keys/Pages.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export let ENVIRONMENT: number; -export let LOGIN: number; -export let LOGOUT: number; diff --git a/types/nginstack__web-framework/keys/Themes.d.ts b/types/nginstack__web-framework/keys/Themes.d.ts new file mode 100644 index 00000000000000..c3d9adccbcea05 --- /dev/null +++ b/types/nginstack__web-framework/keys/Themes.d.ts @@ -0,0 +1 @@ +export let BLUE: number; diff --git a/types/nginstack__web-framework/lib/anchor/Link.d.ts b/types/nginstack__web-framework/lib/anchor/Link.d.ts index e1c81bca4cb828..41b2b272108389 100644 --- a/types/nginstack__web-framework/lib/anchor/Link.d.ts +++ b/types/nginstack__web-framework/lib/anchor/Link.d.ts @@ -3,19 +3,20 @@ declare function Link( name: string, target: string | ((arg0: any) => any), processKey?: number, - newTab?: boolean, + newTab?: boolean ): void; declare class Link { constructor( name: string, target: string | ((arg0: any) => any), processKey?: number, - newTab?: boolean, + newTab?: boolean ); private syncCommands_; - name: string; + name_: string; + escapedName_: string; layout: LayoutConfig; - onClick: LegacyEvent; + onClick: Adapter; private parameters; params: Record; enabled: boolean; @@ -38,9 +39,7 @@ declare class Link { process: Process; autoSanitize: boolean; cssClass: string; - private name_; - private identifierName; - private identifierName_; + name: string; label: string; private label_; hint: string; @@ -64,20 +63,20 @@ declare class Link { assign(obj: Link): void; private prepare; getHtml(content: string, parametersValue?: string, cssClass?: string): string; - write(content: string, parametersValue?: string, cssClass?: string): string; + write(content?: string, parametersValue?: string, cssClass?: string): string; private writeToClient; updateFieldParams(rowId: number): void; - private getChanges; + private getChanges_; private updateOpenParameters_; private toString; } declare namespace Link { - export { Column, createProcess, Process }; + export { createProcess, Column, Process }; } -import LayoutConfig = require("../process/LayoutConfig.js"); -import LegacyEvent = require("@nginstack/engine/lib/event/LegacyEvent.js"); -import ParametersStorage = require("./ParametersStorage.js"); -import Field = require("@nginstack/engine/lib/classdef/Field.js"); +import LayoutConfig = require('../process/LayoutConfig.js'); +import Adapter = require('@nginstack/engine/lib/event/Adapter.js'); +import ParametersStorage = require('./ParametersStorage.js'); +import Field = require('@nginstack/engine/lib/classdef/Field.js'); declare let createProcess: any; -type Column = import("../simple-layout/Column.js"); -type Process = import("../process/Process.js"); +type Column = import('../simple-layout/Column.js'); +type Process = import('../process/Process.js'); diff --git a/types/nginstack__web-framework/lib/anchor/LinkEvent.d.ts b/types/nginstack__web-framework/lib/anchor/LinkEvent.d.ts new file mode 100644 index 00000000000000..a56df964b015fc --- /dev/null +++ b/types/nginstack__web-framework/lib/anchor/LinkEvent.d.ts @@ -0,0 +1,10 @@ +export = LinkEvent; +declare function LinkEvent(...args: any[]): void; +declare class LinkEvent { + constructor(...args: any[]); + target: import('./Link.js'); + link: import('./Link.js'); + field: import('../classdef/ViewDefField.js') | null; + grid: import('../grid/Grid.js') | null; + process: import('../process/Process.js') | null; +} diff --git a/types/nginstack__web-framework/lib/anchor/LinkSet.d.ts b/types/nginstack__web-framework/lib/anchor/LinkSet.d.ts index a3cec7f0fe1b63..aca112f3c0ced0 100644 --- a/types/nginstack__web-framework/lib/anchor/LinkSet.d.ts +++ b/types/nginstack__web-framework/lib/anchor/LinkSet.d.ts @@ -2,9 +2,9 @@ export = LinkSet; declare function LinkSet(attachedTo: ViewDefField | Column, process: Process): void; declare class LinkSet { constructor(attachedTo: ViewDefField | Column, process: Process); - process: import("../process/Process.js"); + process: import('../process/Process.js'); private attachedTo_; - links: Array; + links: Array; private propertiesToAssign_; private pairName_; size: number; @@ -28,18 +28,18 @@ declare class LinkSet { cssStyle?: Record; key?: number; storedParametersIds?: Record; - }, + } ): string; private getHtml; private getImgHtml; } declare namespace LinkSet { - export { Column, FieldLinkSetData, Link, LinkSetConfig, LinkSetItem, Process, ViewDefField }; + export { Column, Process, Link, ViewDefField, LinkSetItem, LinkSetConfig, FieldLinkSetData }; } -type Column = import("../simple-layout/Column.js"); -type Process = import("../process/Process.js"); -type Link = import("./Link.js"); -type ViewDefField = import("../classdef/ViewDefField.js"); +type Column = import('../simple-layout/Column.js'); +type Process = import('../process/Process.js'); +type Link = import('./Link.js'); +type ViewDefField = import('../classdef/ViewDefField.js'); interface LinkSetItem { name: string; caption: string; diff --git a/types/nginstack__web-framework/lib/audio/Audio.d.ts b/types/nginstack__web-framework/lib/audio/Audio.d.ts index cc15756942009e..02479cee9beacd 100644 --- a/types/nginstack__web-framework/lib/audio/Audio.d.ts +++ b/types/nginstack__web-framework/lib/audio/Audio.d.ts @@ -2,7 +2,7 @@ export = Audio; declare function Audio(process: Process): void; declare class Audio { constructor(process: Process); - process: import("../process/Process"); + process: import('../process/Process'); sources: any[]; autoplay: boolean; preload: string; @@ -11,10 +11,8 @@ declare class Audio { id: string; write(): void; play(): void; - private _formatAudioVariable; - private _createId; } declare namespace Audio { export { Process }; } -type Process = import("../process/Process"); +type Process = import('../process/Process'); diff --git a/types/nginstack__web-framework/lib/autofill/AutofillStorage.d.ts b/types/nginstack__web-framework/lib/autofill/AutofillStorage.d.ts index e04ffacbe158c8..ef83e46d49de86 100644 --- a/types/nginstack__web-framework/lib/autofill/AutofillStorage.d.ts +++ b/types/nginstack__web-framework/lib/autofill/AutofillStorage.d.ts @@ -17,9 +17,9 @@ declare class AutofillStorage { private findEntry_; } declare namespace AutofillStorage { - export { AutofillRecord, AutofillRecordKey, getInstance }; + export { getInstance, AutofillRecordKey, AutofillRecord }; } -import DataSet = require("@nginstack/engine/lib/dataset/DataSet.js"); +import DataSet = require('@nginstack/engine/lib/dataset/DataSet.js'); declare function getInstance(): AutofillStorage; interface AutofillRecordKey { processKey: number; diff --git a/types/nginstack__web-framework/lib/button/Button.d.ts b/types/nginstack__web-framework/lib/button/Button.d.ts index 2b411b70ece776..a3446a29fb1ba1 100644 --- a/types/nginstack__web-framework/lib/button/Button.d.ts +++ b/types/nginstack__web-framework/lib/button/Button.d.ts @@ -3,33 +3,31 @@ declare function Button( name: string, target: string | ((arg0: any) => any), processKey?: number, - newTab?: boolean, + newTab?: boolean ): void; declare class Button { constructor( name: string, target: string | ((arg0: any) => any), processKey?: number, - newTab?: boolean, + newTab?: boolean ); private syncCommands_; private parameters_; name: string; - onClick: LegacyEvent; + onClick: Adapter; params: Record; order: number; label: string; visible: boolean; enabled: boolean; - timer: ButtonTimer; + timer_: ButtonTimer; private logger_; private resettingProperties_; private prepared_; private grid; private propertiesToAssign_; private propertiesToSync_; - icon: number; - disabledIcon: number; parent: Process | Grid; process: Process; createNewTab: boolean; @@ -37,7 +35,6 @@ declare class Button { nextProcessKey: number; nextProcessId: string; validateLastInteraction: boolean; - private changed; private changed_; parameters: Array>; hint: string; @@ -51,6 +48,7 @@ declare class Button { private order_; private name_; private label_; + timer: ButtonTimer; timeout: number; defaultAction: boolean; defaultButton: boolean; @@ -61,7 +59,8 @@ declare class Button { help: string; private help_; private getProcessedParameters; - private addToSync; + private addToSync_; + changed: boolean; private config; private prepare; protected forcingChanges_(): boolean; @@ -76,13 +75,13 @@ declare class Button { disable(): void; hide(): void; show(): void; - private getChanges; + private getChanges_; } declare namespace Button { - export { createProcess, Grid, Process }; + export { createProcess, Process, Grid }; } -import LegacyEvent = require("@nginstack/engine/lib/event/LegacyEvent.js"); -import ButtonTimer = require("./ButtonTimer.js"); +import Adapter = require('@nginstack/engine/lib/event/Adapter.js'); +import ButtonTimer = require('./ButtonTimer.js'); declare let createProcess: any; -type Process = import("../process/Process.js"); -type Grid = import("../grid/Grid.js"); +type Process = import('../process/Process.js'); +type Grid = import('../grid/Grid.js'); diff --git a/types/nginstack__web-framework/lib/button/ButtonEvent.d.ts b/types/nginstack__web-framework/lib/button/ButtonEvent.d.ts new file mode 100644 index 00000000000000..d7d87c3c64a3ed --- /dev/null +++ b/types/nginstack__web-framework/lib/button/ButtonEvent.d.ts @@ -0,0 +1,9 @@ +export = ButtonEvent; +declare function ButtonEvent(...args: any[]): void; +declare class ButtonEvent { + constructor(...args: any[]); + target: import('./Button.js'); + button: import('./Button.js'); + grid: Grid | null; + process: Process; +} diff --git a/types/nginstack__web-framework/lib/button/ButtonTimer.d.ts b/types/nginstack__web-framework/lib/button/ButtonTimer.d.ts index 9dc73b29cd5754..00e5358db8c344 100644 --- a/types/nginstack__web-framework/lib/button/ButtonTimer.d.ts +++ b/types/nginstack__web-framework/lib/button/ButtonTimer.d.ts @@ -2,7 +2,7 @@ export = ButtonTimer; declare function ButtonTimer(button: Button): void; declare class ButtonTimer { constructor(button: Button); - button: import("./Button"); + button: import('./Button'); interval: number; private interval_; enabled: boolean; @@ -13,4 +13,4 @@ declare class ButtonTimer { declare namespace ButtonTimer { export { Button }; } -type Button = import("./Button"); +type Button = import('./Button'); diff --git a/types/nginstack__web-framework/lib/chart/ECharts.d.ts b/types/nginstack__web-framework/lib/chart/ECharts.d.ts index dd38ac745ff749..d30125a235a0ba 100644 --- a/types/nginstack__web-framework/lib/chart/ECharts.d.ts +++ b/types/nginstack__web-framework/lib/chart/ECharts.d.ts @@ -27,4 +27,4 @@ declare class ECharts { private options_; html(): string; } -import LayoutConfig = require("../process/LayoutConfig.js"); +import LayoutConfig = require('../process/LayoutConfig.js'); diff --git a/types/nginstack__web-framework/lib/classdef/CellStyleEvent.d.ts b/types/nginstack__web-framework/lib/classdef/CellStyleEvent.d.ts new file mode 100644 index 00000000000000..f41eda6acb33b6 --- /dev/null +++ b/types/nginstack__web-framework/lib/classdef/CellStyleEvent.d.ts @@ -0,0 +1,6 @@ +export = CellStyleEvent; +declare function CellStyleEvent(...args: any[]): void; +declare class CellStyleEvent { + constructor(...args: any[]); + cssStyle: Record; +} diff --git a/types/nginstack__web-framework/lib/classdef/CellThumbnail.d.ts b/types/nginstack__web-framework/lib/classdef/CellThumbnail.d.ts index 0252e48f11bf4c..128dff1bdb86eb 100644 --- a/types/nginstack__web-framework/lib/classdef/CellThumbnail.d.ts +++ b/types/nginstack__web-framework/lib/classdef/CellThumbnail.d.ts @@ -1,16 +1,21 @@ export = CellThumbnail; declare function CellThumbnail(): void; declare class CellThumbnail { - onGetImages: LegacyEvent; - width: number; - height: number; - zoomMaxWidth: number; - zoomMaxHeight: number; + onGetImages: Adapter; + width: number | string; + private width_; + height: number | string; + private height_; + zoomMaxWidth: number | string; + private zoomMaxWidth_; + zoomMaxHeight: number | string; + private zoomMaxHeight_; visible: boolean; + visible_: boolean; zoomOnHover: boolean; private assignProperties_; assignFrom(obj: any): void; clone(): CellThumbnail; getImages(key: number | null): string[]; } -import LegacyEvent = require("@nginstack/engine/lib/event/LegacyEvent.js"); +import Adapter = require('@nginstack/engine/lib/event/Adapter.js'); diff --git a/types/nginstack__web-framework/lib/classdef/DuplicateMode.d.ts b/types/nginstack__web-framework/lib/classdef/DuplicateMode.d.ts index 3e31abcdd203be..0ac9836e1120eb 100644 --- a/types/nginstack__web-framework/lib/classdef/DuplicateMode.d.ts +++ b/types/nginstack__web-framework/lib/classdef/DuplicateMode.d.ts @@ -1,3 +1,3 @@ -export const NONE = "none"; -export const COPY = "copy"; -export const COPY_ADDING_SUFFIX = "copyAddingSuffix"; +export const NONE = 'none'; +export const COPY = 'copy'; +export const COPY_ADDING_SUFFIX = 'copyAddingSuffix'; diff --git a/types/nginstack__web-framework/lib/classdef/EnterKeyAction.d.ts b/types/nginstack__web-framework/lib/classdef/EnterKeyAction.d.ts index 9899da8662129e..38a0898581b1f5 100644 --- a/types/nginstack__web-framework/lib/classdef/EnterKeyAction.d.ts +++ b/types/nginstack__web-framework/lib/classdef/EnterKeyAction.d.ts @@ -1,3 +1,3 @@ -export const IGNORE = "ignore"; -export const NEWLINE = "newline"; -export const DONE = "done"; +export const IGNORE = 'ignore'; +export const NEWLINE = 'newline'; +export const DONE = 'done'; diff --git a/types/nginstack__web-framework/lib/classdef/GetImagesEvent.d.ts b/types/nginstack__web-framework/lib/classdef/GetImagesEvent.d.ts new file mode 100644 index 00000000000000..24d727347ee003 --- /dev/null +++ b/types/nginstack__web-framework/lib/classdef/GetImagesEvent.d.ts @@ -0,0 +1,7 @@ +export = GetImagesEvent; +declare function GetImagesEvent(): void; +declare class GetImagesEvent { + imageUrls: string[]; + target: import('./CellThumbnail.js'); + value: (number | (string | null)) | null; +} diff --git a/types/nginstack__web-framework/lib/classdef/GlobalAction.d.ts b/types/nginstack__web-framework/lib/classdef/GlobalAction.d.ts index 8e970a12eb0d57..7b06f21462e0f1 100644 --- a/types/nginstack__web-framework/lib/classdef/GlobalAction.d.ts +++ b/types/nginstack__web-framework/lib/classdef/GlobalAction.d.ts @@ -24,4 +24,4 @@ declare class GlobalAction { getParameters(): any; clone(): GlobalAction; } -import Adapter = require("@nginstack/engine/lib/event/Adapter.js"); +import Adapter = require('@nginstack/engine/lib/event/Adapter.js'); diff --git a/types/nginstack__web-framework/lib/classdef/GlobalActionEvent.d.ts b/types/nginstack__web-framework/lib/classdef/GlobalActionEvent.d.ts index 448dd68023bf4a..f0b4de1742f7d6 100644 --- a/types/nginstack__web-framework/lib/classdef/GlobalActionEvent.d.ts +++ b/types/nginstack__web-framework/lib/classdef/GlobalActionEvent.d.ts @@ -3,5 +3,5 @@ declare function GlobalActionEvent(...args: any[]): void; declare class GlobalActionEvent { constructor(...args: any[]); key: number; - target: import("./GlobalAction.js") | import("./GlobalActionSet.js"); + target: import('./GlobalAction.js') | import('./GlobalActionSet.js'); } diff --git a/types/nginstack__web-framework/lib/classdef/GlobalActionSet.d.ts b/types/nginstack__web-framework/lib/classdef/GlobalActionSet.d.ts index 219ef6cea664cc..f94ee1dbedf3dc 100644 --- a/types/nginstack__web-framework/lib/classdef/GlobalActionSet.d.ts +++ b/types/nginstack__web-framework/lib/classdef/GlobalActionSet.d.ts @@ -11,5 +11,5 @@ declare class GlobalActionSet { isEmpty(): boolean; clone(): GlobalActionSet; } -import Adapter = require("@nginstack/engine/lib/event/Adapter.js"); -import GlobalAction = require("./GlobalAction.js"); +import Adapter = require('@nginstack/engine/lib/event/Adapter.js'); +import GlobalAction = require('./GlobalAction.js'); diff --git a/types/nginstack__web-framework/lib/classdef/GridEvent.d.ts b/types/nginstack__web-framework/lib/classdef/GridEvent.d.ts index 1ac076cac76e2a..19ca5cbdd8e743 100644 --- a/types/nginstack__web-framework/lib/classdef/GridEvent.d.ts +++ b/types/nginstack__web-framework/lib/classdef/GridEvent.d.ts @@ -8,8 +8,8 @@ declare class GridEvent { masterData: DataSet; } declare namespace GridEvent { - export { DataSet, Grid, Process }; + export { Grid, Process, DataSet }; } -type Grid = import("../grid/Grid"); -type Process = import("../process/Process"); -type DataSet = import("@nginstack/engine/lib/dataset/DataSet"); +type Grid = import('../grid/Grid'); +type Process = import('../process/Process'); +type DataSet = import('@nginstack/engine/lib/dataset/DataSet'); diff --git a/types/nginstack__web-framework/lib/classdef/GridFieldEvent.d.ts b/types/nginstack__web-framework/lib/classdef/GridFieldEvent.d.ts index 93a6017c011033..f74479dc1d0171 100644 --- a/types/nginstack__web-framework/lib/classdef/GridFieldEvent.d.ts +++ b/types/nginstack__web-framework/lib/classdef/GridFieldEvent.d.ts @@ -8,5 +8,5 @@ declare class GridFieldEvent { declare namespace GridFieldEvent { export { Grid, Process }; } -type Grid = import("../grid/Grid"); -type Process = import("../process/Process"); +type Grid = import('../grid/Grid'); +type Process = import('../process/Process'); diff --git a/types/nginstack__web-framework/lib/classdef/GridLocateEvent.d.ts b/types/nginstack__web-framework/lib/classdef/GridLocateEvent.d.ts index 2db7b62dd4c6e9..11cc0a73437a26 100644 --- a/types/nginstack__web-framework/lib/classdef/GridLocateEvent.d.ts +++ b/types/nginstack__web-framework/lib/classdef/GridLocateEvent.d.ts @@ -12,4 +12,4 @@ declare class GridLocateEvent { declare namespace GridLocateEvent { export { GridField }; } -type GridField = import("../grid/GridField"); +type GridField = import('../grid/GridField'); diff --git a/types/nginstack__web-framework/lib/classdef/LookupMultipleInsertEvent.d.ts b/types/nginstack__web-framework/lib/classdef/LookupMultipleInsertEvent.d.ts index 269b1cc822ba6c..3836ee5a1ac3ce 100644 --- a/types/nginstack__web-framework/lib/classdef/LookupMultipleInsertEvent.d.ts +++ b/types/nginstack__web-framework/lib/classdef/LookupMultipleInsertEvent.d.ts @@ -7,4 +7,4 @@ declare class LookupMultipleInsertEvent { declare namespace LookupMultipleInsertEvent { export { Process }; } -type Process = import("../process/Process"); +type Process = import('../process/Process'); diff --git a/types/nginstack__web-framework/lib/classdef/OpenKeyEvent.d.ts b/types/nginstack__web-framework/lib/classdef/OpenKeyEvent.d.ts index e1cc35d1c613fb..530f5f959d2306 100644 --- a/types/nginstack__web-framework/lib/classdef/OpenKeyEvent.d.ts +++ b/types/nginstack__web-framework/lib/classdef/OpenKeyEvent.d.ts @@ -10,4 +10,4 @@ declare class OpenKeyEvent { declare namespace OpenKeyEvent { export { Process }; } -type Process = import("../process/Process"); +type Process = import('../process/Process'); diff --git a/types/nginstack__web-framework/lib/classdef/ViewDef.d.ts b/types/nginstack__web-framework/lib/classdef/ViewDef.d.ts index 8522692bfe810d..dfbc726a5802b8 100644 --- a/types/nginstack__web-framework/lib/classdef/ViewDef.d.ts +++ b/types/nginstack__web-framework/lib/classdef/ViewDef.d.ts @@ -4,8 +4,8 @@ declare class ViewDef { constructor(key: string, ...args: any[]); protected logger_: Logger; fieldClass: (arg0: any) => any; - lookupWidth: number; - lookupTableViewWidth: number | null; + lookupWidth: string | number; + lookupTableViewWidth: string | number; deprecatedInterfaceEnabled: boolean; defaultOpenInteraction: string; defaultProcess: number; @@ -14,8 +14,8 @@ declare class ViewDef { confirmCancel: boolean | undefined; confirmDelete: boolean | undefined; confirmChange: boolean | undefined; - imageWidth: number; - imageHeight: number; + imageWidth: number | string; + imageHeight: number | string; canDuplicate: boolean; globalActions: GlobalActionSet; thumbnail: CellThumbnail; @@ -34,8 +34,8 @@ declare class ViewDef { onBeforeDuplicate: any; onAfterDuplicate: any; onLocate: any; - zoomImageWidth: number; - zoomImageHeight: number; + zoomImageWidth: number | string; + zoomImageHeight: number | string; zoomImageOnHover: boolean; defaultGlobalActionName: string; canNavigate: boolean; @@ -55,8 +55,8 @@ declare class ViewDef { declare namespace ViewDef { export { Field }; } -import Logger = require("@nginstack/engine/lib/log/Logger.js"); -import GlobalActionSet = require("./GlobalActionSet.js"); -import CellThumbnail = require("./CellThumbnail.js"); -import LegacyEvent = require("@nginstack/engine/lib/event/LegacyEvent.js"); -type Field = import("@nginstack/engine/lib/classdef/Field"); +import Logger = require('@nginstack/engine/lib/log/Logger.js'); +import GlobalActionSet = require('./GlobalActionSet.js'); +import CellThumbnail = require('./CellThumbnail.js'); +import LegacyEvent = require('@nginstack/engine/lib/event/LegacyEvent.js'); +type Field = import('@nginstack/engine/lib/classdef/Field'); diff --git a/types/nginstack__web-framework/lib/classdef/ViewDefField.d.ts b/types/nginstack__web-framework/lib/classdef/ViewDefField.d.ts index ee8ce30d4c1fa4..50ca3fb9edf5f7 100644 --- a/types/nginstack__web-framework/lib/classdef/ViewDefField.d.ts +++ b/types/nginstack__web-framework/lib/classdef/ViewDefField.d.ts @@ -7,17 +7,22 @@ declare function ViewDefField( ): void; declare class ViewDefField { constructor(name: string, type: string, size: number | null, ...args: any[]); + private superInit_; private inheritedClassDefEvents_; private superRegisterEvents_; + notifyObjectPropertyChange_: any; private typesThatNotSupportUnderscoreAtName_; + private init_; + cssStyle: Record; private protectState_; private unprotectState_; private defaultAdapterDescriptor_; private unrestrictedOn_; private registerEvents_; duplicationHandling: number; - private _propertiesToAssign; - private _ownControlledProperties; + private propertiesToAssign_; + private propertiesToAssignWithDeepClone_; + private ownControlledProperties_; resyncPending: boolean; private logger_; showGlobalActions: boolean; @@ -28,10 +33,13 @@ declare class ViewDefField { requiredDataSetFields: string; private arRequiredDataSetFields; alignment: string; - height: number; - width: number; + height: string | number; + private height_; + rows: number; + width: string | number; + private width_; enterKeyAction: typeof EnterKeyAction | string; - private tableViewLabel; + tableViewLabel: string; controlType: string; private controlType_; treeParentFieldName: string; @@ -43,16 +51,16 @@ declare class ViewDefField { changed: boolean; private changeable; private totalContent; - zoomMaxHeight: number | string | null; - zoomMaxWidth: number | string | null; - tableViewWidth: number; + zoomMaxHeight: number | string; + zoomMaxWidth: number | string; + tableViewWidth: string | number; + private tableViewWidth_; parent: Grid | ViewDef; editable: boolean; isCalculated: boolean; hasEvent(eventName: string): boolean; saveInputAsDefault: boolean; emptyResultMessage: string; - labelCssClass: string; labelPosition: string; negativeInRed: boolean; column: number; @@ -64,7 +72,6 @@ declare class ViewDefField { private lastMasterFieldValues; private tableViewIndex; private inSetValue; - cssClass: string; private _index; detailIndexFieldNames: string; detailDescendingIndexFieldNames: string; @@ -106,15 +113,15 @@ declare class ViewDefField { isMasterDetail(): boolean; } declare namespace ViewDefField { - export { Event, FieldAggregator, Grid, Link, ViewDef, VM_LIST, VM_THUMBNAIL }; + export { VM_THUMBNAIL, VM_LIST, FieldAggregator, Event, ViewDef, Grid, Link }; } -import EnterKeyAction = require("./EnterKeyAction.js"); -import LinkSet = require("../anchor/LinkSet.js"); -import CellThumbnail = require("./CellThumbnail.js"); +import EnterKeyAction = require('./EnterKeyAction.js'); +import LinkSet = require('../anchor/LinkSet.js'); +import CellThumbnail = require('./CellThumbnail.js'); declare let VM_THUMBNAIL: number; declare let VM_LIST: number; -type FieldAggregator = import("../field-aggregator/FieldAggregator"); -type Event = import("@nginstack/engine/lib/event/Event"); -type ViewDef = import("./ViewDef"); -type Grid = import("../grid/Grid"); -type Link = import("../anchor/Link"); +type FieldAggregator = import('../field-aggregator/FieldAggregator'); +type Event = import('@nginstack/engine/lib/event/Event'); +type ViewDef = import('./ViewDef'); +type Grid = import('../grid/Grid'); +type Link = import('../anchor/Link'); diff --git a/types/nginstack__web-framework/lib/classdef/constants.d.ts b/types/nginstack__web-framework/lib/classdef/constants.d.ts index 5aa327f66f52fd..e9d3b577c6c3c0 100644 --- a/types/nginstack__web-framework/lib/classdef/constants.d.ts +++ b/types/nginstack__web-framework/lib/classdef/constants.d.ts @@ -37,10 +37,6 @@ export namespace DEFAULTS_BY_TYPE { let file_1: string; export { file_1 as file }; } - namespace height { - let file_2: string; - export { file_2 as file }; - } } export namespace DEFAULTS_BY_CONTROL_TYPE { export namespace alignment_1 { @@ -52,6 +48,7 @@ export namespace DEFAULTS_BY_CONTROL_TYPE { export namespace width_1 { let color_1: number; export { color_1 as color }; + export let none: string; } export { width_1 as width }; } diff --git a/types/nginstack__web-framework/lib/classdef/getGlobalActions.d.ts b/types/nginstack__web-framework/lib/classdef/getGlobalActions.d.ts index 066dacd4ce323b..74c7fae08fb4e6 100644 --- a/types/nginstack__web-framework/lib/classdef/getGlobalActions.d.ts +++ b/types/nginstack__web-framework/lib/classdef/getGlobalActions.d.ts @@ -3,4 +3,4 @@ declare function getGlobalActions(classKey: number, key: number): GlobalAction[] declare namespace getGlobalActions { export { GlobalAction }; } -type GlobalAction = import("./GlobalAction"); +type GlobalAction = import('./GlobalAction'); diff --git a/types/nginstack__web-framework/lib/classdef/parsePixelValue.d.ts b/types/nginstack__web-framework/lib/classdef/parsePixelValue.d.ts new file mode 100644 index 00000000000000..7a05e3fda1e578 --- /dev/null +++ b/types/nginstack__web-framework/lib/classdef/parsePixelValue.d.ts @@ -0,0 +1,2 @@ +declare function _exports(value: string | number, propertyName: string): number; +export = _exports; diff --git a/types/nginstack__web-framework/lib/component/ComponentFactoryResolver.d.ts b/types/nginstack__web-framework/lib/component/ComponentFactoryResolver.d.ts index 40f0ddcb0e5c5d..fadaa4545f1b4f 100644 --- a/types/nginstack__web-framework/lib/component/ComponentFactoryResolver.d.ts +++ b/types/nginstack__web-framework/lib/component/ComponentFactoryResolver.d.ts @@ -6,7 +6,7 @@ declare class ComponentFactoryResolver { registerFactory(componentName: string, factory: ComponentFactory): void; } declare namespace ComponentFactoryResolver { - export { ComponentFactory, getInstance }; + export { getInstance, ComponentFactory }; } declare function getInstance(): ComponentFactoryResolver; -type ComponentFactory = import("./ComponentFactory.js"); +type ComponentFactory = import('./ComponentFactory.js'); diff --git a/types/nginstack__web-framework/lib/connection/newConnection.d.ts b/types/nginstack__web-framework/lib/connection/newConnection.d.ts index d3909463552d0c..5fbbf67a01a697 100644 --- a/types/nginstack__web-framework/lib/connection/newConnection.d.ts +++ b/types/nginstack__web-framework/lib/connection/newConnection.d.ts @@ -1,5 +1,5 @@ declare function _exports( key: any, - dbName: any, -): import("@nginstack/engine/lib/connection/Connection"); + dbName: any +): import('@nginstack/engine/lib/connection/Connection'); export = _exports; diff --git a/types/nginstack__web-framework/lib/connection/tryNewConnection.d.ts b/types/nginstack__web-framework/lib/connection/tryNewConnection.d.ts index 3bc9ef6f3578a9..4132e11905a837 100644 --- a/types/nginstack__web-framework/lib/connection/tryNewConnection.d.ts +++ b/types/nginstack__web-framework/lib/connection/tryNewConnection.d.ts @@ -1,3 +1,3 @@ declare function _exports(key: any, dbName: any): Connection; export = _exports; -import Connection = require("@nginstack/engine/lib/connection/Connection.js"); +import Connection = require('@nginstack/engine/lib/connection/Connection.js'); diff --git a/types/nginstack__web-framework/lib/css/formatLinkTag.d.ts b/types/nginstack__web-framework/lib/css/formatLinkTag.d.ts index 823738c65a8196..121db14514b8fd 100644 --- a/types/nginstack__web-framework/lib/css/formatLinkTag.d.ts +++ b/types/nginstack__web-framework/lib/css/formatLinkTag.d.ts @@ -1,6 +1,11 @@ export = formatLinkTag; -declare function formatLinkTag(file: DBKey | string | number): string; +declare function formatLinkTag( + file: DBKey | string | number, + options?: { + attributes?: string; + } +): string; declare namespace formatLinkTag { export { DBKey }; } -type DBKey = import("@nginstack/engine/lib/dbkey/DBKey"); +type DBKey = import('@nginstack/engine/lib/dbkey/DBKey'); diff --git a/types/nginstack__web-framework/lib/dialogs/FormDialog.d.ts b/types/nginstack__web-framework/lib/dialogs/FormDialog.d.ts index 6c33d52c3d2590..8bd46f847ee6ce 100644 --- a/types/nginstack__web-framework/lib/dialogs/FormDialog.d.ts +++ b/types/nginstack__web-framework/lib/dialogs/FormDialog.d.ts @@ -3,21 +3,23 @@ declare function FormDialog(process: Process): void; declare class FormDialog { constructor(process: Process); private process_; - private _fields; + private fields_; + private reservedWords_; autoSanitize: boolean; title: string; content: string; width: number | null; + private checkWordAvailability_; addField(name: string, type: string, size?: number): FormDialogField; field(name: any): FormDialogField; show(): boolean; private getDefinition_; - private _nameToId; - private _getProperties; + private nameToId_; + private getProperties_; private getUserProfileName_; } declare namespace FormDialog { export { Process }; } -import FormDialogField = require("./FormDialogField.js"); -type Process = import("../process/Process"); +import FormDialogField = require('./FormDialogField.js'); +type Process = import('../process/Process'); diff --git a/types/nginstack__web-framework/lib/dialogs/FormDialogField.d.ts b/types/nginstack__web-framework/lib/dialogs/FormDialogField.d.ts index d4279f86eb526b..f6264ec35b44ba 100644 --- a/types/nginstack__web-framework/lib/dialogs/FormDialogField.d.ts +++ b/types/nginstack__web-framework/lib/dialogs/FormDialogField.d.ts @@ -3,18 +3,18 @@ declare function FormDialogField(name: any, type: any, size: any, ...args: any[] declare class FormDialogField { constructor(name: any, type: any, size: any, ...args: any[]); private registerEvents_; - saveValuesToCache(entry: { - processKey: number; - interactionName: string; - gridName: string; - fieldName: string; - fieldType: string; - }): void; + saveValuesToCache(entry: Entry): void; assignListeners(): void; on(): never; private write; } declare namespace FormDialogField { - export { Field }; + export { Entry }; +} +interface Entry { + processKey: number; + interactionName: string; + gridName: string; + fieldName: string; + fieldType: string; } -type Field = import("@nginstack/engine/lib/classdef/Field"); diff --git a/types/nginstack__web-framework/lib/dialogs/SimpleDialog.d.ts b/types/nginstack__web-framework/lib/dialogs/SimpleDialog.d.ts index e7f66c449afefd..a4271b7c34c1fa 100644 --- a/types/nginstack__web-framework/lib/dialogs/SimpleDialog.d.ts +++ b/types/nginstack__web-framework/lib/dialogs/SimpleDialog.d.ts @@ -1,7 +1,7 @@ export = SimpleDialog; -declare function SimpleDialog(process?: import("../process/Process.js")): void; +declare function SimpleDialog(process?: import('../process/Process.js')): void; declare class SimpleDialog { - constructor(process?: import("../process/Process.js")); + constructor(process?: import('../process/Process.js')); private _process; message: string; title: string; diff --git a/types/nginstack__web-framework/lib/dialogs/UploadDialog.d.ts b/types/nginstack__web-framework/lib/dialogs/UploadDialog.d.ts index 1e9179bf568fa1..9cb4f678f5dc07 100644 --- a/types/nginstack__web-framework/lib/dialogs/UploadDialog.d.ts +++ b/types/nginstack__web-framework/lib/dialogs/UploadDialog.d.ts @@ -12,9 +12,9 @@ declare class UploadDialog { private act_finish_; } declare namespace UploadDialog { - export { Process, UploadedFile }; + export { UploadedFile, Process }; } -import UploadOptions = require("../file-loader/UploadOptions.js"); -import Promise = require("../promise/Promise.js"); -type UploadedFile = import("../file-loader/UploadedFile"); -type Process = import("../process/Process"); +import UploadOptions = require('../file-loader/UploadOptions.js'); +import Promise = require('../promise/Promise.js'); +type UploadedFile = import('../file-loader/UploadedFile'); +type Process = import('../process/Process'); diff --git a/types/nginstack__web-framework/lib/dsv/CompositeVisualization.d.ts b/types/nginstack__web-framework/lib/dsv/CompositeVisualization.d.ts index 3d720b2f640a45..0784a96c643068 100644 --- a/types/nginstack__web-framework/lib/dsv/CompositeVisualization.d.ts +++ b/types/nginstack__web-framework/lib/dsv/CompositeVisualization.d.ts @@ -31,8 +31,8 @@ declare class CompositeVisualization { private validateLayout_; } declare namespace CompositeVisualization { - export { DataExporter, VisualizationDef }; + export { VisualizationDef, DataExporter }; } -import VisualizationFilters = require("./VisualizationFilters.js"); -type VisualizationDef = import("./VisualizationDef"); -type DataExporter = import("../export/DataExporter"); +import VisualizationFilters = require('./VisualizationFilters.js'); +type VisualizationDef = import('./VisualizationDef'); +type DataExporter = import('../export/DataExporter'); diff --git a/types/nginstack__web-framework/lib/dsv/CompositeVisualizationSlot.d.ts b/types/nginstack__web-framework/lib/dsv/CompositeVisualizationSlot.d.ts index 704c4a95d73900..0daea6b00a6344 100644 --- a/types/nginstack__web-framework/lib/dsv/CompositeVisualizationSlot.d.ts +++ b/types/nginstack__web-framework/lib/dsv/CompositeVisualizationSlot.d.ts @@ -4,11 +4,11 @@ declare class CompositeVisualizationSlot { constructor(item: any, width: number, height: number); width: number; height: number; - visualization: import("./Visualization"); + visualization: import('./Visualization'); verticalAlignment: any; } declare namespace CompositeVisualizationSlot { export { DataExporter, Visualization }; } -type DataExporter = import("../export/DataExporter"); -type Visualization = import("./Visualization"); +type DataExporter = import('../export/DataExporter'); +type Visualization = import('./Visualization'); diff --git a/types/nginstack__web-framework/lib/dsv/DataVisualization.d.ts b/types/nginstack__web-framework/lib/dsv/DataVisualization.d.ts index 4b6cadb0f12182..169d9b63319df3 100644 --- a/types/nginstack__web-framework/lib/dsv/DataVisualization.d.ts +++ b/types/nginstack__web-framework/lib/dsv/DataVisualization.d.ts @@ -20,5 +20,5 @@ declare class DataVisualization { protected initFilters_(): void; filters: VisualizationFilters; } -import DataSourceQuery = require("@nginstack/datasource/lib/DataSourceQuery.js"); -import VisualizationFilters = require("./VisualizationFilters.js"); +import DataSourceQuery = require('@nginstack/datasource/lib/DataSourceQuery.js'); +import VisualizationFilters = require('./VisualizationFilters.js'); diff --git a/types/nginstack__web-framework/lib/dsv/EChartsVisualization.d.ts b/types/nginstack__web-framework/lib/dsv/EChartsVisualization.d.ts index fcd60d3d024177..22550720ef1e7b 100644 --- a/types/nginstack__web-framework/lib/dsv/EChartsVisualization.d.ts +++ b/types/nginstack__web-framework/lib/dsv/EChartsVisualization.d.ts @@ -2,7 +2,7 @@ export = EChartsVisualization; declare function EChartsVisualization(definition: any): void; declare class EChartsVisualization { constructor(definition: any); - onGetOptions: import("@nginstack/engine/lib/event/Event"); + onGetOptions: import('@nginstack/engine/lib/event/Event'); private chart_; render(outputObj: any): void; queryData(filterValues: Record): void; @@ -11,4 +11,4 @@ declare class EChartsVisualization { declare namespace EChartsVisualization { export { Event }; } -type Event = import("@nginstack/engine/lib/event/Event"); +type Event = import('@nginstack/engine/lib/event/Event'); diff --git a/types/nginstack__web-framework/lib/dsv/EChartsVisualizationDef.d.ts b/types/nginstack__web-framework/lib/dsv/EChartsVisualizationDef.d.ts index fe0605e031d9b5..350224cc110096 100644 --- a/types/nginstack__web-framework/lib/dsv/EChartsVisualizationDef.d.ts +++ b/types/nginstack__web-framework/lib/dsv/EChartsVisualizationDef.d.ts @@ -11,5 +11,5 @@ declare class EChartsVisualizationDef { declare namespace EChartsVisualizationDef { export { DataSet, EChartsVisualization }; } -type DataSet = import("@nginstack/engine/lib/dataset/DataSet"); -type EChartsVisualization = import("./EChartsVisualization"); +type DataSet = import('@nginstack/engine/lib/dataset/DataSet'); +type EChartsVisualization = import('./EChartsVisualization'); diff --git a/types/nginstack__web-framework/lib/dsv/HighchartsVisualization.d.ts b/types/nginstack__web-framework/lib/dsv/HighchartsVisualization.d.ts index b7ba38b0cfb787..71b7db28075273 100644 --- a/types/nginstack__web-framework/lib/dsv/HighchartsVisualization.d.ts +++ b/types/nginstack__web-framework/lib/dsv/HighchartsVisualization.d.ts @@ -2,7 +2,7 @@ export = HighchartsVisualization; declare function HighchartsVisualization(definition: any): void; declare class HighchartsVisualization { constructor(definition: any); - onGetOptions: import("@nginstack/engine/lib/event/Event"); + onGetOptions: import('@nginstack/engine/lib/event/Event'); private canExport_; setCanExport(): never; private chart_; @@ -13,4 +13,4 @@ declare class HighchartsVisualization { declare namespace HighchartsVisualization { export { Event }; } -type Event = import("@nginstack/engine/lib/event/Event"); +type Event = import('@nginstack/engine/lib/event/Event'); diff --git a/types/nginstack__web-framework/lib/dsv/HighchartsVisualizationDef.d.ts b/types/nginstack__web-framework/lib/dsv/HighchartsVisualizationDef.d.ts index bdc68559c06e2a..05242061943c6e 100644 --- a/types/nginstack__web-framework/lib/dsv/HighchartsVisualizationDef.d.ts +++ b/types/nginstack__web-framework/lib/dsv/HighchartsVisualizationDef.d.ts @@ -8,5 +8,5 @@ declare class HighchartsVisualizationDef { declare namespace HighchartsVisualizationDef { export { DataSet, HighchartsVisualization }; } -type DataSet = import("@nginstack/engine/lib/dataset/DataSet"); -type HighchartsVisualization = import("./HighchartsVisualization"); +type DataSet = import('@nginstack/engine/lib/dataset/DataSet'); +type HighchartsVisualization = import('./HighchartsVisualization'); diff --git a/types/nginstack__web-framework/lib/dsv/PivotGroupType.d.ts b/types/nginstack__web-framework/lib/dsv/PivotGroupType.d.ts index ee907a5a4a9964..2abf953efb6698 100644 --- a/types/nginstack__web-framework/lib/dsv/PivotGroupType.d.ts +++ b/types/nginstack__web-framework/lib/dsv/PivotGroupType.d.ts @@ -1,3 +1,3 @@ -export const NONE = "none"; -export const BY_TOTAL_FIELD = "groupbytotalfield"; -export const BY_PIVOT_VALUE = "groupbypivotvalue"; +export const NONE = 'none'; +export const BY_TOTAL_FIELD = 'groupbytotalfield'; +export const BY_PIVOT_VALUE = 'groupbypivotvalue'; diff --git a/types/nginstack__web-framework/lib/dsv/ReportVisualization.d.ts b/types/nginstack__web-framework/lib/dsv/ReportVisualization.d.ts index dbc332347784f3..8c5044dcbc3c74 100644 --- a/types/nginstack__web-framework/lib/dsv/ReportVisualization.d.ts +++ b/types/nginstack__web-framework/lib/dsv/ReportVisualization.d.ts @@ -61,13 +61,20 @@ declare class ReportVisualization { queryData(filterValues: Record): void; } declare namespace ReportVisualization { - export { DataExporter, DataSet, FilterDef, Process, registerExportFormat, SimpleLayoutExporter }; + export { + registerExportFormat, + Process, + SimpleLayoutExporter, + DataSet, + DataExporter, + FilterDef, + }; } -import ReportVisualizationColumns = require("./ReportVisualizationColumns.js"); -import ReportVisualizationColumn = require("./ReportVisualizationColumn.js"); +import ReportVisualizationColumns = require('./ReportVisualizationColumns.js'); +import ReportVisualizationColumn = require('./ReportVisualizationColumn.js'); declare function registerExportFormat(name: string, processKey: number): void; declare let Process: any; -type SimpleLayoutExporter = import("../simple-layout/SimpleLayoutExporter"); -type DataSet = import("@nginstack/engine/lib/dataset/DataSet"); -type DataExporter = import("../export/DataExporter"); -type FilterDef = import("../simple-layout/SimpleLayout").FilterDef; +type SimpleLayoutExporter = import('../simple-layout/SimpleLayoutExporter'); +type DataSet = import('@nginstack/engine/lib/dataset/DataSet'); +type DataExporter = import('../export/DataExporter'); +type FilterDef = import('../simple-layout/SimpleLayout').FilterDef; diff --git a/types/nginstack__web-framework/lib/dsv/ReportVisualizationColumn.d.ts b/types/nginstack__web-framework/lib/dsv/ReportVisualizationColumn.d.ts index b2baeb50fc8e31..5eb894d52a690e 100644 --- a/types/nginstack__web-framework/lib/dsv/ReportVisualizationColumn.d.ts +++ b/types/nginstack__web-framework/lib/dsv/ReportVisualizationColumn.d.ts @@ -33,14 +33,7 @@ declare class ReportVisualizationColumn { pathDepth: number; pathHeight: number; fieldName: string | null; - displayFormat: - | DateFormat - | LatitudeFormat - | LongitudeFormat - | AngleFormat - | string - | number - | null; + displayFormat: DateFormat | LatitudeFormat | LongitudeFormat | AngleFormat | NumberFormat; private formatCanonicalName_; assignFrom(obj: Record): void; totalAggregate: any; @@ -48,10 +41,18 @@ declare class ReportVisualizationColumn { toString(): string; } declare namespace ReportVisualizationColumn { - export { AngleFormat, DateFormat, hasPathDimension, LatitudeFormat, LongitudeFormat }; + export { + hasPathDimension, + LatitudeFormat, + LongitudeFormat, + AngleFormat, + DateFormat, + NumberFormat, + }; } declare function hasPathDimension(col: ReportVisualizationColumn): boolean; -type LatitudeFormat = typeof import("@nginstack/engine/lib/geo/LatitudeFormat"); -type LongitudeFormat = typeof import("@nginstack/engine/lib/geo/LongitudeFormat"); -type AngleFormat = typeof import("@nginstack/engine/lib/geo/AngleFormat"); -type DateFormat = typeof import("@nginstack/engine/lib/date/DateFormat"); +type LatitudeFormat = typeof import('@nginstack/engine/lib/geo/LatitudeFormat'); +type LongitudeFormat = typeof import('@nginstack/engine/lib/geo/LongitudeFormat'); +type AngleFormat = typeof import('@nginstack/engine/lib/geo/AngleFormat'); +type DateFormat = typeof import('@nginstack/engine/lib/date/DateFormat'); +type NumberFormat = typeof import('@nginstack/engine/lib/number/NumberFormat'); diff --git a/types/nginstack__web-framework/lib/dsv/ReportVisualizationColumnDef.d.ts b/types/nginstack__web-framework/lib/dsv/ReportVisualizationColumnDef.d.ts index 1a3b611f389a33..c017f9583c4c37 100644 --- a/types/nginstack__web-framework/lib/dsv/ReportVisualizationColumnDef.d.ts +++ b/types/nginstack__web-framework/lib/dsv/ReportVisualizationColumnDef.d.ts @@ -30,10 +30,10 @@ declare class ReportVisualizationColumnDef { expression: string; } declare namespace ReportVisualizationColumnDef { - export { ColumnLinkDef, DBKey, mergeDuplicatedValues }; + export { mergeDuplicatedValues, DBKey, ColumnLinkDef }; } declare let mergeDuplicatedValues: boolean; -type DBKey = import("@nginstack/engine/lib/dbkey/DBKey"); +type DBKey = import('@nginstack/engine/lib/dbkey/DBKey'); interface ColumnLinkDef { label: string; process: DBKey | number; diff --git a/types/nginstack__web-framework/lib/dsv/ReportVisualizationColumns.d.ts b/types/nginstack__web-framework/lib/dsv/ReportVisualizationColumns.d.ts index 4b13fd2c4ed9ab..6089afad8b2158 100644 --- a/types/nginstack__web-framework/lib/dsv/ReportVisualizationColumns.d.ts +++ b/types/nginstack__web-framework/lib/dsv/ReportVisualizationColumns.d.ts @@ -14,4 +14,4 @@ declare class ReportVisualizationColumns { declare namespace ReportVisualizationColumns { function fromArray(arr: ReportVisualizationColumn[]): ReportVisualizationColumns; } -import ReportVisualizationColumn = require("./ReportVisualizationColumn.js"); +import ReportVisualizationColumn = require('./ReportVisualizationColumn.js'); diff --git a/types/nginstack__web-framework/lib/dsv/ReportVisualizationDef.d.ts b/types/nginstack__web-framework/lib/dsv/ReportVisualizationDef.d.ts index d140c6454ae735..7f489303034967 100644 --- a/types/nginstack__web-framework/lib/dsv/ReportVisualizationDef.d.ts +++ b/types/nginstack__web-framework/lib/dsv/ReportVisualizationDef.d.ts @@ -24,4 +24,4 @@ declare class ReportVisualizationDef { declare namespace ReportVisualizationDef { export { ReportVisualizationColumnDef }; } -type ReportVisualizationColumnDef = import("./ReportVisualizationColumnDef"); +type ReportVisualizationColumnDef = import('./ReportVisualizationColumnDef'); diff --git a/types/nginstack__web-framework/lib/dsv/TotalAggregate.d.ts b/types/nginstack__web-framework/lib/dsv/TotalAggregate.d.ts index 13675ab1d2db4f..3836ebb08561d6 100644 --- a/types/nginstack__web-framework/lib/dsv/TotalAggregate.d.ts +++ b/types/nginstack__web-framework/lib/dsv/TotalAggregate.d.ts @@ -1,5 +1,5 @@ -export const SUM = "sum"; -export const MIN = "min"; -export const MAX = "max"; -export const AVG = "avg"; -export const COUNT = "count"; +export const SUM = 'sum'; +export const MIN = 'min'; +export const MAX = 'max'; +export const AVG = 'avg'; +export const COUNT = 'count'; diff --git a/types/nginstack__web-framework/lib/dsv/Visualization.d.ts b/types/nginstack__web-framework/lib/dsv/Visualization.d.ts index 1a505da161bfaf..54cf4131178902 100644 --- a/types/nginstack__web-framework/lib/dsv/Visualization.d.ts +++ b/types/nginstack__web-framework/lib/dsv/Visualization.d.ts @@ -4,7 +4,7 @@ declare class Visualization { constructor(definition: any); private viewDefs_; title: string; - messageWhenEmpty: string; + noResultsMessage: string; help: string; private canExport_; includes: Array; @@ -13,7 +13,7 @@ declare class Visualization { processKey: number; useRawData: boolean; }>; - onCreate: import("@nginstack/engine/lib/event/Event"); + onCreate: import('@nginstack/engine/lib/event/Event'); protected afterCreate_(): void; initialized: boolean; protected prepareHeaderFromDefinition_(): void; @@ -23,7 +23,7 @@ declare class Visualization { protected prepareSegmentFromDefinition_( segment: any, definition: any, - properties: string[], + properties: string[] ): void; canExport: boolean; protected dataSource_: DataSource; @@ -47,12 +47,12 @@ declare class Visualization { protected initFilters_(): never; } declare namespace Visualization { - export { DataExporter, DataSet, DataSource, Event, VisualizationFilters }; + export { Event, DataSet, DataSource, VisualizationFilters, DataExporter }; } -import ReportHeader = require("../simple-layout/Header.js"); -import ReportFooter = require("../simple-layout/Footer.js"); -type Event = import("@nginstack/engine/lib/event/Event"); -type DataSet = import("@nginstack/engine/lib/dataset/DataSet"); -type DataSource = import("@nginstack/datasource/lib/DataSource"); -type VisualizationFilters = import("./VisualizationFilters"); -type DataExporter = import("../export/DataExporter"); +import ReportHeader = require('../simple-layout/Header.js'); +import ReportFooter = require('../simple-layout/Footer.js'); +type Event = import('@nginstack/engine/lib/event/Event'); +type DataSet = import('@nginstack/engine/lib/dataset/DataSet'); +type DataSource = import('@nginstack/datasource/lib/DataSource'); +type VisualizationFilters = import('./VisualizationFilters'); +type DataExporter = import('../export/DataExporter'); diff --git a/types/nginstack__web-framework/lib/dsv/VisualizationDef.d.ts b/types/nginstack__web-framework/lib/dsv/VisualizationDef.d.ts index d450a41af7d1c8..4c17485a2e96ee 100644 --- a/types/nginstack__web-framework/lib/dsv/VisualizationDef.d.ts +++ b/types/nginstack__web-framework/lib/dsv/VisualizationDef.d.ts @@ -1,7 +1,7 @@ export = VisualizationDef; declare function VisualizationDef(): void; declare class VisualizationDef { - filters: Array; + filters: Array; includes: Array; extraExportFormats: Array<{ name: string; @@ -12,7 +12,7 @@ declare class VisualizationDef { footer: VisualizationFooterDef; canExport: boolean; help: string; - messageWhenEmpty: string; + noResultsMessage: string; onCreate: ((arg0: Visualization) => any) | null; title: string; type: string; @@ -20,7 +20,7 @@ declare class VisualizationDef { declare namespace VisualizationDef { export { Visualization, VisualizationFilterDef }; } -import VisualizationHeaderDef = require("./VisualizationHeaderDef.js"); -import VisualizationFooterDef = require("./VisualizationFooterDef.js"); -type Visualization = import("./Visualization"); -type VisualizationFilterDef = import("./VisualizationFilterDef"); +import VisualizationHeaderDef = require('./VisualizationHeaderDef.js'); +import VisualizationFooterDef = require('./VisualizationFooterDef.js'); +type Visualization = import('./Visualization'); +type VisualizationFilterDef = import('./VisualizationFilterDef'); diff --git a/types/nginstack__web-framework/lib/dsv/VisualizationFactory.d.ts b/types/nginstack__web-framework/lib/dsv/VisualizationFactory.d.ts index b1a605657f2b84..f7653d6f907580 100644 --- a/types/nginstack__web-framework/lib/dsv/VisualizationFactory.d.ts +++ b/types/nginstack__web-framework/lib/dsv/VisualizationFactory.d.ts @@ -1,9 +1,9 @@ export = VisualizationFactory; declare function VisualizationFactory(): void; declare namespace VisualizationFactory { - export { create, getVisualizationPath, register, Visualization }; + export { register, create, getVisualizationPath, Visualization }; } declare function register(typeName: string, constructor: (arg0: any) => any): void; declare function create(typeOrKey: string | number, opt_def?: any): Visualization; declare function getVisualizationPath(key: number): string; -type Visualization = import("./Visualization"); +type Visualization = import('./Visualization'); diff --git a/types/nginstack__web-framework/lib/dsv/VisualizationFilters.d.ts b/types/nginstack__web-framework/lib/dsv/VisualizationFilters.d.ts index f12cc40617230e..a56d394579419c 100644 --- a/types/nginstack__web-framework/lib/dsv/VisualizationFilters.d.ts +++ b/types/nginstack__web-framework/lib/dsv/VisualizationFilters.d.ts @@ -13,16 +13,16 @@ declare class VisualizationFilters { } declare namespace VisualizationFilters { export { - createFilterFields, DATE_EXPRESSION_PREFIX, - evaluateFilterExpressions, - Field, - FilterDef, + createFilterFields, getFilterValuesFromGrid, - Grid, updateFilterFields, - Visualization, + evaluateFilterExpressions, VisualizationFilter, + Visualization, + FilterDef, + Field, + Grid, }; } declare let DATE_EXPRESSION_PREFIX: string; @@ -32,19 +32,19 @@ declare function createFilterFields( opt_options?: { callback?: (arg0: Field) => any; datesAsExpressions?: boolean; - }, + } ): void; declare function getFilterValuesFromGrid( grid: Grid, dsv: Visualization, opt_options?: { preserveExpressions?: boolean; - }, + } ): Record; declare function updateFilterFields(grid: Grid, filterValues: Record): void; declare function evaluateFilterExpressions(filterValues: Record): any; -type VisualizationFilter = import("./VisualizationFilter"); -type Visualization = import("./Visualization"); -type FilterDef = import("../simple-layout/SimpleLayout").FilterDef; -type Field = import("@nginstack/engine/lib/classdef/Field"); -type Grid = import("../grid/Grid"); +type VisualizationFilter = import('./VisualizationFilter'); +type Visualization = import('./Visualization'); +type FilterDef = import('../simple-layout/SimpleLayout').FilterDef; +type Field = import('@nginstack/engine/lib/classdef/Field'); +type Grid = import('../grid/Grid'); diff --git a/types/nginstack__web-framework/lib/dsv/VisualizationSchedulerJob.d.ts b/types/nginstack__web-framework/lib/dsv/VisualizationSchedulerJob.d.ts index eb7e8b0a40cb8e..34e6814fb83fc7 100644 --- a/types/nginstack__web-framework/lib/dsv/VisualizationSchedulerJob.d.ts +++ b/types/nginstack__web-framework/lib/dsv/VisualizationSchedulerJob.d.ts @@ -24,7 +24,7 @@ declare namespace VisualizationSchedulerJob { recipients: Array<{ name: string; address: string; - }>, + }> ): string; function parseParametersField(value: any): any; function tryGetServer(): number | null; diff --git a/types/nginstack__web-framework/lib/dsv/columnIsDerived.d.ts b/types/nginstack__web-framework/lib/dsv/columnIsDerived.d.ts index be69d62753ddb7..9946d0fd40bcca 100644 --- a/types/nginstack__web-framework/lib/dsv/columnIsDerived.d.ts +++ b/types/nginstack__web-framework/lib/dsv/columnIsDerived.d.ts @@ -1,2 +1,2 @@ export = columnIsDerived; -declare function columnIsDerived(col: import("./ReportVisualizationColumnDef")): boolean; +declare function columnIsDerived(col: import('./ReportVisualizationColumnDef')): boolean; diff --git a/types/nginstack__web-framework/lib/environment/Environment.d.ts b/types/nginstack__web-framework/lib/environment/Environment.d.ts index e48ac5fd207e09..c614b5b2bf8f2c 100644 --- a/types/nginstack__web-framework/lib/environment/Environment.d.ts +++ b/types/nginstack__web-framework/lib/environment/Environment.d.ts @@ -1,13 +1,19 @@ export = Environment; declare function Environment(): void; declare class Environment { - private _ctrlChannel; + private ctrlChannel_; sessionToken: string; exiting: boolean; - private prompt; - confirm(msg: string, noAsDefault?: boolean): boolean; + prompt( + label: string, + answers: any[][], + options: import('../process/Process.js').PromptOptions + ): any; + confirm(message: string, noAsDefault?: boolean): boolean; + alert(message: string): void; exit(uri?: string): void; lockScreen(): boolean; + restrictSystemAccess: any; } declare namespace Environment { function getInstance(): Environment; diff --git a/types/nginstack__web-framework/lib/environment/PendingTaskManager.d.ts b/types/nginstack__web-framework/lib/environment/PendingTaskManager.d.ts index 8960037047ac8b..9152e2d4fa5cb8 100644 --- a/types/nginstack__web-framework/lib/environment/PendingTaskManager.d.ts +++ b/types/nginstack__web-framework/lib/environment/PendingTaskManager.d.ts @@ -21,8 +21,8 @@ declare class PendingTaskManager { declare namespace PendingTaskManager { export { PendingTaskScript }; } -import DataSet = require("@nginstack/engine/lib/dataset/DataSet.js"); -import DBKey = require("@nginstack/engine/lib/dbkey/DBKey.js"); +import DataSet = require('@nginstack/engine/lib/dataset/DataSet.js'); +import DBKey = require('@nginstack/engine/lib/dbkey/DBKey.js'); interface PendingTaskScript { key: number; func: any; diff --git a/types/nginstack__web-framework/lib/environment/restrictSystemAccess.d.ts b/types/nginstack__web-framework/lib/environment/restrictSystemAccess.d.ts new file mode 100644 index 00000000000000..1cce6350713406 --- /dev/null +++ b/types/nginstack__web-framework/lib/environment/restrictSystemAccess.d.ts @@ -0,0 +1,2 @@ +declare const _exports: any; +export = _exports; diff --git a/types/nginstack__web-framework/lib/export/DataExporter.d.ts b/types/nginstack__web-framework/lib/export/DataExporter.d.ts index c6f8876275105e..de95eff49293a2 100644 --- a/types/nginstack__web-framework/lib/export/DataExporter.d.ts +++ b/types/nginstack__web-framework/lib/export/DataExporter.d.ts @@ -16,10 +16,16 @@ declare class DataExporter { }>; } declare namespace DataExporter { - export { DataExporterFieldDef, DataSet, exportedFileLifetime, purgeExpiredExportedFiles, tempExportDir }; + export { + tempExportDir, + purgeExpiredExportedFiles, + exportedFileLifetime, + DataSet, + DataExporterFieldDef, + }; } declare let tempExportDir: string; declare function purgeExpiredExportedFiles(): void; declare let exportedFileLifetime: number; -type DataSet = import("@nginstack/engine/lib/dataset/DataSet"); -type DataExporterFieldDef = import("./DataExporterFieldDef"); +type DataSet = import('@nginstack/engine/lib/dataset/DataSet'); +type DataExporterFieldDef = import('./DataExporterFieldDef'); diff --git a/types/nginstack__web-framework/lib/export/DataExporterFieldDef.d.ts b/types/nginstack__web-framework/lib/export/DataExporterFieldDef.d.ts index c16490f279bfee..4c66755015a22e 100644 --- a/types/nginstack__web-framework/lib/export/DataExporterFieldDef.d.ts +++ b/types/nginstack__web-framework/lib/export/DataExporterFieldDef.d.ts @@ -9,23 +9,26 @@ declare class DataExporterFieldDef { type: string; isGroup: boolean; lookupType: number; - displayFormat: - | DateFormat - | LatitudeFormat - | LongitudeFormat - | AngleFormat - | string - | number - | null; + displayFormat: DateFormat | LatitudeFormat | LongitudeFormat | AngleFormat | NumberFormat; } declare namespace DataExporterFieldDef { - export { AngleFormat, DataSet, DateFormat, Field, LatitudeFormat, LongitudeFormat, newFromField }; + export { + newFromField, + LatitudeFormat, + LongitudeFormat, + AngleFormat, + DateFormat, + NumberFormat, + Field, + DataSet, + }; } -import LegacyEvent = require("@nginstack/engine/lib/event/LegacyEvent.js"); +import LegacyEvent = require('@nginstack/engine/lib/event/LegacyEvent.js'); declare function newFromField(field: Field): DataExporterFieldDef; -type LatitudeFormat = typeof import("@nginstack/engine/lib/geo/LatitudeFormat"); -type LongitudeFormat = typeof import("@nginstack/engine/lib/geo/LongitudeFormat"); -type AngleFormat = typeof import("@nginstack/engine/lib/geo/AngleFormat"); -type DateFormat = typeof import("@nginstack/engine/lib/date/DateFormat"); -type Field = import("@nginstack/engine/lib/classdef/Field"); -type DataSet = import("@nginstack/engine/lib/dataset/DataSet"); +type LatitudeFormat = typeof import('@nginstack/engine/lib/geo/LatitudeFormat'); +type LongitudeFormat = typeof import('@nginstack/engine/lib/geo/LongitudeFormat'); +type AngleFormat = typeof import('@nginstack/engine/lib/geo/AngleFormat'); +type DateFormat = typeof import('@nginstack/engine/lib/date/DateFormat'); +type NumberFormat = typeof import('@nginstack/engine/lib/number/NumberFormat'); +type Field = import('@nginstack/engine/lib/classdef/Field'); +type DataSet = import('@nginstack/engine/lib/dataset/DataSet'); diff --git a/types/nginstack__web-framework/lib/export/DataSetExporter.d.ts b/types/nginstack__web-framework/lib/export/DataSetExporter.d.ts index 32afc9dcfe1a02..6d7400e9d82d58 100644 --- a/types/nginstack__web-framework/lib/export/DataSetExporter.d.ts +++ b/types/nginstack__web-framework/lib/export/DataSetExporter.d.ts @@ -2,9 +2,9 @@ export = DataSetExporter; declare function DataSetExporter(dataSet: DataSet): void; declare class DataSetExporter { constructor(dataSet: DataSet); - dataSet: import("@nginstack/engine/lib/dataset/DataSet"); + dataSet: import('@nginstack/engine/lib/dataset/DataSet'); } declare namespace DataSetExporter { export { DataSet }; } -type DataSet = import("@nginstack/engine/lib/dataset/DataSet"); +type DataSet = import('@nginstack/engine/lib/dataset/DataSet'); diff --git a/types/nginstack__web-framework/lib/field-aggregator/AvgFieldAggregator.d.ts b/types/nginstack__web-framework/lib/field-aggregator/AvgFieldAggregator.d.ts index a5b007c8e4baa2..4b883982a7c8af 100644 --- a/types/nginstack__web-framework/lib/field-aggregator/AvgFieldAggregator.d.ts +++ b/types/nginstack__web-framework/lib/field-aggregator/AvgFieldAggregator.d.ts @@ -3,6 +3,7 @@ declare function AvgFieldAggregator(fieldName: any, dataSet: any): void; declare class AvgFieldAggregator { constructor(fieldName: any, dataSet: any); supportsCalculatedFields: boolean; + type: string; previewValue(recNo: any, newValue: any): void; fValue: any; clone(): AvgFieldAggregator; diff --git a/types/nginstack__web-framework/lib/field-aggregator/CountFieldAggregator.d.ts b/types/nginstack__web-framework/lib/field-aggregator/CountFieldAggregator.d.ts index 61f179500d363d..729dae354d6a87 100644 --- a/types/nginstack__web-framework/lib/field-aggregator/CountFieldAggregator.d.ts +++ b/types/nginstack__web-framework/lib/field-aggregator/CountFieldAggregator.d.ts @@ -4,6 +4,7 @@ declare class CountFieldAggregator { constructor(fieldName: any, dataSet: any); supportsCalculatedFields: boolean; decimalPrecision: number; + type: string; previewValue(): void; clone(): CountFieldAggregator; } diff --git a/types/nginstack__web-framework/lib/field-aggregator/FieldAggregator.d.ts b/types/nginstack__web-framework/lib/field-aggregator/FieldAggregator.d.ts index 32622a957f782b..5ec5953c2ff82b 100644 --- a/types/nginstack__web-framework/lib/field-aggregator/FieldAggregator.d.ts +++ b/types/nginstack__web-framework/lib/field-aggregator/FieldAggregator.d.ts @@ -12,6 +12,8 @@ declare class FieldAggregator { decimalPrecision: number | null; supportsCalculatedFields: boolean; lastValue: number; + type: string; + alignment: string; value: number; description: string; readOnly: boolean; @@ -25,4 +27,4 @@ declare class FieldAggregator { assign(obj: FieldAggregator): void; toString(): string; } -import DataSet = require("@nginstack/engine/lib/dataset/DataSet.js"); +import DataSet = require('@nginstack/engine/lib/dataset/DataSet.js'); diff --git a/types/nginstack__web-framework/lib/field-aggregator/LabelFieldAggregator.d.ts b/types/nginstack__web-framework/lib/field-aggregator/LabelFieldAggregator.d.ts new file mode 100644 index 00000000000000..ea10b2e808349a --- /dev/null +++ b/types/nginstack__web-framework/lib/field-aggregator/LabelFieldAggregator.d.ts @@ -0,0 +1,8 @@ +export = LabelFieldAggregator; +declare function LabelFieldAggregator(label: string): void; +declare class LabelFieldAggregator { + constructor(label: string); + label: string; + supportsCalculatedFields: boolean; + type: string; +} diff --git a/types/nginstack__web-framework/lib/file-loader/DownloadFile.d.ts b/types/nginstack__web-framework/lib/file-loader/DownloadFile.d.ts index 918df58dd8960f..f68123cc741296 100644 --- a/types/nginstack__web-framework/lib/file-loader/DownloadFile.d.ts +++ b/types/nginstack__web-framework/lib/file-loader/DownloadFile.d.ts @@ -4,4 +4,4 @@ declare class DownloadFile { constructor(name: string, contentFileName: string, contentType: string); openFile(): File; } -import File = require("@nginstack/engine/lib/io/File.js"); +import File = require('@nginstack/engine/lib/io/File.js'); diff --git a/types/nginstack__web-framework/lib/file-loader/FileLoader.d.ts b/types/nginstack__web-framework/lib/file-loader/FileLoader.d.ts index 2c1b1234cc3411..67271a4816f8b0 100644 --- a/types/nginstack__web-framework/lib/file-loader/FileLoader.d.ts +++ b/types/nginstack__web-framework/lib/file-loader/FileLoader.d.ts @@ -4,6 +4,7 @@ declare class FileLoader { private lobStorage_; private virtualFS_; private unionFS_; + private mimeTypes_; private logger_; private basePath_; private fileLifetime_; @@ -18,6 +19,7 @@ declare class FileLoader { private openManifest_; private saveManifest_; private createUID_; + private changeFileExtension_; authorizeUpload(options: UploadOptions | Record): string; handleUploadRequest(uploadId: string, request: Request): FileInfoUpload[]; deleteUploadedFile(uploadId: string, fileId: string): boolean; @@ -30,26 +32,27 @@ declare class FileLoader { private getFileInfo_; authorizeDownload( files: string | number | DBKey | Array, - options: DownloadOptions | Record, + options: DownloadOptions | Record ): string; tryGetDownloadFile(downloadId: string): DownloadFile; purgeExpiredFiles(): void; } declare namespace FileLoader { - export { FileInfo, FileInfoUpload, Request }; + export { Request, FileInfoUpload, FileInfo }; } -import UploadOptions = require("./UploadOptions.js"); -import UploadedFile = require("./UploadedFile.js"); -import DBKey = require("@nginstack/engine/lib/dbkey/DBKey.js"); -import DownloadOptions = require("./DownloadOptions.js"); -import DownloadFile = require("./DownloadFile.js"); -type Request = import("@nginstack/engine/lib/http/Request"); +import UploadOptions = require('./UploadOptions.js'); +import UploadedFile = require('./UploadedFile.js'); +import DBKey = require('@nginstack/engine/lib/dbkey/DBKey.js'); +import DownloadOptions = require('./DownloadOptions.js'); +import DownloadFile = require('./DownloadFile.js'); +type Request = import('@nginstack/engine/lib/http/Request'); interface FileInfoUpload { fileId: string; name: string; size: number; lastModified: number; contentType: string; + imageCompressionProfile?: string; } interface FileInfo { name: string; diff --git a/types/nginstack__web-framework/lib/file-loader/UploadOptions.d.ts b/types/nginstack__web-framework/lib/file-loader/UploadOptions.d.ts index 768b9ddd936bfe..8bed09c6596707 100644 --- a/types/nginstack__web-framework/lib/file-loader/UploadOptions.d.ts +++ b/types/nginstack__web-framework/lib/file-loader/UploadOptions.d.ts @@ -6,5 +6,7 @@ declare class UploadOptions { maxFiles: number; maxFileSize: number; maxTotalSize: number; + imageAutoCompress: boolean; + imageCompressionProfile: number | null; timeout: number; } diff --git a/types/nginstack__web-framework/lib/file-loader/UploadedFile.d.ts b/types/nginstack__web-framework/lib/file-loader/UploadedFile.d.ts index 67db28112fedc8..a776fce8562a64 100644 --- a/types/nginstack__web-framework/lib/file-loader/UploadedFile.d.ts +++ b/types/nginstack__web-framework/lib/file-loader/UploadedFile.d.ts @@ -1,21 +1,35 @@ export = UploadedFile; -declare function UploadedFile(...args: any[]): void; +declare function UploadedFile( + name: string, + contentFileName: string, + contentType: string, + metadata?: Record +): void; declare class UploadedFile { - constructor(...args: any[]); + constructor( + name: string, + contentFileName: string, + contentType: string, + metadata?: Record + ); + private metadata_; + metadata: Record; move(filePath: string): boolean; uploadToVfs( directory: string | number, options?: { name?: string; key?: number; - }, + } ): number; uploadToLobStorage( classKey: number | DBKey, options?: { name?: string; key?: number; - }, + } ): number; + toText(encoding?: string): string; + toBytes(): Uint8Array; } -import DBKey = require("@nginstack/engine/lib/dbkey/DBKey.js"); +import DBKey = require('@nginstack/engine/lib/dbkey/DBKey.js'); diff --git a/types/nginstack__web-framework/lib/finder/Finder.d.ts b/types/nginstack__web-framework/lib/finder/Finder.d.ts index f7d11114b5948a..e3fc9b619e7d60 100644 --- a/types/nginstack__web-framework/lib/finder/Finder.d.ts +++ b/types/nginstack__web-framework/lib/finder/Finder.d.ts @@ -7,9 +7,10 @@ declare class Finder { result: any[]; dsResult: DataSet; private logger_; + private limit; private classDefManager_; getChildrenWithoutFind(startClass: any): string; - sortClass(cd1: any, cd2: any): 1 | 0 | -1; + sortClass(cd1: any, cd2: any): 0 | 1 | -1; runFind( findObject: any, value: any, @@ -19,7 +20,7 @@ declare class Finder { sender: any, speedFill: any, dsResult: any, - ignoreDuplicatedOccurrences: any, + ignoreDuplicatedOccurrences: any ): void; getFindObject(classKey: any, onLookupAddResult: any, field: any): any; find( @@ -30,11 +31,11 @@ declare class Finder { isClassLookup: any, speedFill: any, dsResult: any, - ignoreDuplicatedOccurrences: any, + ignoreDuplicatedOccurrences: any ): any; } declare namespace Finder { function getInstance(): Finder; } -import DataSet = require("@nginstack/engine/lib/dataset/DataSet.js"); -import StringList = require("@nginstack/engine/lib/string/StringList.js"); +import DataSet = require('@nginstack/engine/lib/dataset/DataSet.js'); +import StringList = require('@nginstack/engine/lib/string/StringList.js'); diff --git a/types/nginstack__web-framework/lib/grid/AggregateBar.d.ts b/types/nginstack__web-framework/lib/grid/AggregateBar.d.ts index f4e5ab4ae30a59..9820ad090a1d26 100644 --- a/types/nginstack__web-framework/lib/grid/AggregateBar.d.ts +++ b/types/nginstack__web-framework/lib/grid/AggregateBar.d.ts @@ -11,5 +11,14 @@ declare class AggregateBar { clear(): void; add(aggr: any): void; resetLastSentValues(): void; - getChanges(): string; + getChanges(): AggregateState[]; +} +declare namespace AggregateBar { + export { AggregateState }; +} +interface AggregateState { + name: string; + type: string; + value: any; + readOnly: boolean; } diff --git a/types/nginstack__web-framework/lib/grid/DetailGrid.d.ts b/types/nginstack__web-framework/lib/grid/DetailGrid.d.ts index 7f54d1d8572b65..9810fb0d2a7e1b 100644 --- a/types/nginstack__web-framework/lib/grid/DetailGrid.d.ts +++ b/types/nginstack__web-framework/lib/grid/DetailGrid.d.ts @@ -15,7 +15,7 @@ declare class DetailGrid { onMasterCancel: Event; onMasterDelete: Event; private prepare; - protected sync_(...args: any[]): void; + protected sync_(...args: any[]): any; config(): void; title: any; readOnly: boolean; @@ -34,6 +34,7 @@ declare class DetailGrid { notifyMasterDelete(): void; private notifyingMasterScroll_; notifyMasterScroll(): void; + syncError_: any; fDs: any; insert(): void; del(handleDetailGrid: any): void; @@ -46,5 +47,5 @@ declare class DetailGrid { declare namespace DetailGrid { export { Event }; } -import DataSet = require("@nginstack/engine/lib/dataset/DataSet.js"); -type Event = import("@nginstack/engine/lib/event/Event"); +import DataSet = require('@nginstack/engine/lib/dataset/DataSet.js'); +type Event = import('@nginstack/engine/lib/event/Event'); diff --git a/types/nginstack__web-framework/lib/grid/FieldPermissionValidator.d.ts b/types/nginstack__web-framework/lib/grid/FieldPermissionValidator.d.ts index 401b1ce0b6f54d..abb788af6ee4d1 100644 --- a/types/nginstack__web-framework/lib/grid/FieldPermissionValidator.d.ts +++ b/types/nginstack__web-framework/lib/grid/FieldPermissionValidator.d.ts @@ -3,14 +3,14 @@ declare function FieldPermissionValidator( manager: FieldPermissionValidatorManager, permField: string, classKey: number, - userKey: number, + userKey: number ): void; declare class FieldPermissionValidator { constructor( manager: FieldPermissionValidatorManager, permField: string, classKey: number, - userKey: number, + userKey: number ); private handlerFunc_; private makeDeprecatedHandler_; diff --git a/types/nginstack__web-framework/lib/grid/FieldPermissionValidatorManager.d.ts b/types/nginstack__web-framework/lib/grid/FieldPermissionValidatorManager.d.ts index 5b5f46be0a94fd..86ce693aeef29e 100644 --- a/types/nginstack__web-framework/lib/grid/FieldPermissionValidatorManager.d.ts +++ b/types/nginstack__web-framework/lib/grid/FieldPermissionValidatorManager.d.ts @@ -2,6 +2,6 @@ export = FieldPermissionValidatorManager; declare function FieldPermissionValidatorManager(): void; declare class FieldPermissionValidatorManager { hashList: {}; - iPermission: import("@nginstack/engine/lib/dataset/DataSet"); + iPermission: import('@nginstack/engine/lib/dataset/DataSet'); fieldPermissionValidator(permissionFieldName: any, classKey: any, userKey: any): any; } diff --git a/types/nginstack__web-framework/lib/grid/Grid.d.ts b/types/nginstack__web-framework/lib/grid/Grid.d.ts index e8cb5bd60fe6f3..3f38d92909523a 100644 --- a/types/nginstack__web-framework/lib/grid/Grid.d.ts +++ b/types/nginstack__web-framework/lib/grid/Grid.d.ts @@ -16,7 +16,7 @@ declare class Grid { private fCanInsert; private fCanEdit; private fCanDelete; - private changes; + private changeCommands_; private buttons; private arButtons; private _fieldToLinkId; @@ -37,15 +37,12 @@ declare class Grid { private fSelectedRecords; unselectableRecords: any[]; title: string; + private syncError_; private pairName_; private componentFactoryResolver_; private formViewBuffer_; - private clientBof; - private clientEof; - private clientRecNo; private clientRecordCount; private clientPosition; - private clientCollapsed; private clientTitle_; private pendingFocus_; private savedState_; @@ -55,23 +52,28 @@ declare class Grid { getSelectedRecords(opt_viewMode?: number): any[]; getSelectedRecordsAtView(viewMode?: number): any[]; hasDataSet(): boolean; - private clientCanInsert; - private clientCanDelete; - private clientCanPost; - private clientCanModify; - private clientCanShowLog; - private clientCanExport; + private clientCanInsert_; + private clientCanInvertSelection_; + private clientCanShowLog_; + private clientCanExport_; + private clientCanToggleKey_; + private clientCanDuplicate_; + private clientCanDelete_; + private clientCanConfirm_; + private clientCanModify_; + private clientFieldNames_; private hasCalculateField; private hasFieldWithInformedControl_; + private hasFieldWithConditionalStyle_; private hasDetailField; private recentlyWritten_; private isFirstSync; - private recentlyCreated; - private written_; + private recentlyCreated_; + private structureSent_; private fieldsHasChanged; private viewHasChanged; private viewChangedByUser; - private canSync; + private canSync_; private syncOnlyCurrentRecord; private inLookup; private delayedOnAfterScrollEventCall_; @@ -135,6 +137,9 @@ declare class Grid { private canShowButtonsBar; private resetPropertiesToResend; emit(event: any, ...args: any[]): any; + collapseGroup(groupName: string): void; + expandGroup(groupName: string): void; + private upsertGridGroupCommand_; resetFields(): void; private deleteField; clearButtons(): void; @@ -143,9 +148,9 @@ declare class Grid { name: string; help: | { - overview: string; - buttons: Record; - } + overview: string; + buttons: Record; + } | string; private formatEventId; refresh(opt_force?: boolean): void; @@ -154,6 +159,7 @@ declare class Grid { formViewFieldNames: string; private backupState_; private restoreState_; + allAlreadySelected_: boolean; private preserveFieldLinkIds_; ds: DataSet; definitionClass: number | null; @@ -162,7 +168,6 @@ declare class Grid { column: number; span: string; breakLine: boolean; - cssClass: string; width: string; confirmDelete: boolean; confirmCancel: boolean; @@ -192,68 +197,58 @@ declare class Grid { private lastDataSetId; private refreshHintFieldIndexes; hintFieldNames: string; - private getHintValues; + private getHintValues_; automaticClearUnselectableRecords: boolean; viewMode: number; - private handleEdition; - private handleEditingFieldName; + private handleEdition_; + private handleEditingFieldName_; protected _scrollDetailGrids(): void; private updateDetailGrids; - private handlePosition; + private handlePosition_; classKeyToValidatePermission: number | DBKey; private getCurrentBookmark; - private handleRecordSelection; + private handleSelectedRecords_; private getSelectionRecordsRange; - private handleCollapsed; + private handleCollapsed_; private collapsed_; - private handleInput; - private handleGridSynchronize; - private handleGridSynchronizeFunctions; + private handleFieldChange_; private refreshFields; private forceChangedFields; - private syncButtons; - private syncGridFocus_; - private formSyncRefreshNavButtonsView; - private syncFieldProperties_; + private getFieldState_; private _readOnlyOfFieldsHasChanged; - private getFormViewDataSynchronize; private visible; - private formSync_; - private tabSyncRefreshNavButtonsView; - private tabSyncAddRemoveRows; - private tabSyncClearInactiveRows_; private getCurrentRecNo_; private getRecordCount_; private alertKeyNotFoundOnce; private alertedKeys_; - protected tabSyncBufferUpdate( - dsSync: any, - records: any, - clientRow: any, - isCurrentRecord: any, + protected syncRecord_( + dsSync: DataSet, + records: RecordSync[], + clientRow: number, + isCurrentRecord: boolean ): void; private calculateFirstRecNoOfView; private syncDataSetStateToBufferState; - private tableSync_; - selectedRecordsChanged: boolean; - private tableSyncPriorRecords_; - private tableSyncCurrentRecord_; + private syncPriorRecords_; + private syncCurrentRecord_; private _isInserting; - private _newTableViewRecordBuffer; - private tableSyncNextRecords_; - private getTableRecordsSyncCommands_; - protected sync_(formSync: any, tableSync: any): void; - allAlreadySelected_: boolean; + private createRecordBuffer_; + private syncNextRecords_; + private getGridSyncResponse_; + private getGridSync_; + private getFormViewSync_; + private getTableViewSync_; + protected sync_(): GridSyncResponse; + private getAllGridsStructure_; private checkRefresh; - private _getChanges; - private syncCheckBufferChange; + private getChanges_; private updateFieldValue; edit(field?: GridField): void; protected newEvent_( type: string, opt_options?: { cancelable: boolean; - }, + } ): GridEvent; focus(options: FocusOptions): void; private protectFocus; @@ -268,7 +263,7 @@ declare class Grid { del(handleDetailGrid?: boolean): void; private delete; private editingOrInserting; - post(opt_doParentPost?: boolean, ...args: any[]): boolean; + post(doParentPost?: boolean, ...args: any[]): boolean; cancel(): void; getFieldsAsStringList(): StringList; private checkWordAvailability; @@ -282,7 +277,7 @@ declare class Grid { opt_target?: string | ((arg0: any) => any), opt_order?: number, opt_processKey?: number, - opt_newTab?: boolean, + opt_newTab?: boolean ): Button; action(name: any, target: any, order: any, processKey: any, newTab: any): Button; visibleButtons: Array