diff --git a/types/nginstack__datasource/lib/DataSourceFieldDef.d.ts b/types/nginstack__datasource/lib/DataSourceFieldDef.d.ts
index 3f8a990d75cfd2..bba5495ae54840 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 { 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");
diff --git a/types/nginstack__datasource/lib/DataSourceFilter.d.ts b/types/nginstack__datasource/lib/DataSourceFilter.d.ts
index 8ae67deb8c37c4..29d584c9294b83 100644
--- a/types/nginstack__datasource/lib/DataSourceFilter.d.ts
+++ b/types/nginstack__datasource/lib/DataSourceFilter.d.ts
@@ -28,10 +28,11 @@ 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 {
diff --git a/types/nginstack__datasource/nginstack__datasource-tests.ts b/types/nginstack__datasource/nginstack__datasource-tests.ts
index 51f480ee00900e..91670c754312b4 100644
--- a/types/nginstack__datasource/nginstack__datasource-tests.ts
+++ b/types/nginstack__datasource/nginstack__datasource-tests.ts
@@ -21,6 +21,6 @@ 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": "*",
diff --git a/types/nginstack__dev-tools/nginstack__dev-tools-tests.ts b/types/nginstack__dev-tools/nginstack__dev-tools-tests.ts
index ac7e2a43ecca0e..cff763f713f4d3 100644
--- a/types/nginstack__dev-tools/nginstack__dev-tools-tests.ts
+++ b/types/nginstack__dev-tools/nginstack__dev-tools-tests.ts
@@ -4,6 +4,6 @@ QueryAnalyzer.getTxtExecutionPlan("query", { disableHeader: true }); // $ExpectT
QueryAnalyzer.getHtmlExecutionPlan("query", { disableHeader: true }); // $ExpectType string
function getVersion(): string {
- return "72.0.1";
+ return "81.0.1";
}
getVersion(); // $ExpectType string
diff --git a/types/nginstack__dev-tools/package.json b/types/nginstack__dev-tools/package.json
index 83123f1eecfe89..811682231fc8ca 100644
--- a/types/nginstack__dev-tools/package.json
+++ b/types/nginstack__dev-tools/package.json
@@ -1,9 +1,9 @@
{
"private": true,
"name": "@types/nginstack__dev-tools",
- "version": "72.0.9999",
+ "version": "81.0.9999",
"projects": [
- "https://dev.azure.com/nginstack/nginstack"
+ "https://github.com/nginstack/nginstack"
],
"dependencies": {
"@types/nginstack__engine": "*",
diff --git a/types/nginstack__devops/lib/update/UpdateOptions.d.ts b/types/nginstack__devops/lib/update/UpdateOptions.d.ts
index fa86a3c4a6081e..289bdfc33fb096 100644
--- a/types/nginstack__devops/lib/update/UpdateOptions.d.ts
+++ b/types/nginstack__devops/lib/update/UpdateOptions.d.ts
@@ -24,7 +24,7 @@ declare class UpdateOptions {
emailSubject: string;
trackingId: string;
validate(): void;
- private tryLoginByAuthToken_;
+ private loginByAuthToken_;
private authorize_;
private formatReferrer_;
private newDatabase_;
diff --git a/types/nginstack__devops/nginstack__devops-tests.ts b/types/nginstack__devops/nginstack__devops-tests.ts
index 72790eff9c1935..0d328406b5e7ed 100644
--- a/types/nginstack__devops/nginstack__devops-tests.ts
+++ b/types/nginstack__devops/nginstack__devops-tests.ts
@@ -16,6 +16,6 @@ script.fail(new Error("*")); // $ExpectType void
script.copyChildrenViewPermissions(-1); // $ExpectType number
function getVersion(): string {
- return "72.0.14";
+ return "81.0.1";
}
getVersion(); // $ExpectType string
diff --git a/types/nginstack__devops/package.json b/types/nginstack__devops/package.json
index 7fd338f3c12f31..4fd7eed11d3929 100644
--- a/types/nginstack__devops/package.json
+++ b/types/nginstack__devops/package.json
@@ -1,9 +1,9 @@
{
"private": true,
"name": "@types/nginstack__devops",
- "version": "72.0.9999",
+ "version": "81.0.9999",
"projects": [
- "https://dev.azure.com/nginstack/nginstack"
+ "https://github.com/nginstack/nginstack"
],
"dependencies": {
"@types/nginstack__datasource": "*",
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:."
diff --git a/types/nginstack__iquery/nginstack__iquery-tests.ts b/types/nginstack__iquery/nginstack__iquery-tests.ts
index 89e92b048d35f2..112f9df7f86b44 100644
--- a/types/nginstack__iquery/nginstack__iquery-tests.ts
+++ b/types/nginstack__iquery/nginstack__iquery-tests.ts
@@ -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": "*"
diff --git a/types/nginstack__jsunit/lib/AggregatedTestResult.d.ts b/types/nginstack__jsunit/lib/AggregatedTestResult.d.ts
index f5243dde3d0e00..4491d683a2e260 100644
--- a/types/nginstack__jsunit/lib/AggregatedTestResult.d.ts
+++ b/types/nginstack__jsunit/lib/AggregatedTestResult.d.ts
@@ -12,6 +12,7 @@ declare class AggregatedTestResult {
numFailedTests: number;
numErrorTests: number;
numPassedTests: number;
+ maxErrorsReached: boolean;
addResult(testResult: TestResult): void;
formatTxtReport(): string;
formatHtmlReport(): string;
diff --git a/types/nginstack__jsunit/lib/TestRunner.d.ts b/types/nginstack__jsunit/lib/TestRunner.d.ts
index 68ae909caceb8b..efc7c9a00726ef 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,18 +14,19 @@ 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;
}
diff --git a/types/nginstack__jsunit/lib/TestSuite.d.ts b/types/nginstack__jsunit/lib/TestSuite.d.ts
index de8ac676e5437e..2eaa838b21103e 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,7 +30,7 @@ declare class TestSuite {
tearDown(): void;
}
declare namespace TestSuite {
- export { findPackageName, formatSuiteName, formatTestCaseId, TestCase };
+ export { findPackageName, formatSuiteName, formatTestCaseId, InitializationError, TestCase };
}
import DBKey = require("@nginstack/engine/lib/dbkey/DBKey.js");
declare function formatSuiteName(filePath: 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..d2a11e81cfb679 100644
--- a/types/nginstack__jsunit/lib/TestSuiteRunner.d.ts
+++ b/types/nginstack__jsunit/lib/TestSuiteRunner.d.ts
@@ -4,6 +4,7 @@ declare function TestSuiteRunner(
options: {
trackerId?: string;
env?: Record;
+ runtime?: string;
},
): void;
declare class TestSuiteRunner {
@@ -12,6 +13,7 @@ declare class TestSuiteRunner {
options: {
trackerId?: string;
env?: Record;
+ runtime?: string;
},
);
private suite_;
diff --git a/types/nginstack__jsunit/nginstack__jsunit-tests.ts b/types/nginstack__jsunit/nginstack__jsunit-tests.ts
index ec9b08d5594daf..853e19c7daa50b 100644
--- a/types/nginstack__jsunit/nginstack__jsunit-tests.ts
+++ b/types/nginstack__jsunit/nginstack__jsunit-tests.ts
@@ -16,6 +16,6 @@ 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": "*"
diff --git a/types/nginstack__orm/nginstack__orm-tests.ts b/types/nginstack__orm/nginstack__orm-tests.ts
index dd395fe3d6133b..5848f19fccba32 100644
--- a/types/nginstack__orm/nginstack__orm-tests.ts
+++ b/types/nginstack__orm/nginstack__orm-tests.ts
@@ -22,6 +22,6 @@ entity.toJSONString(); // $ExpectType string
entity.toJSONSchema(); // $ExpectType any
function getVersion(): string {
- return "72.0.1";
+ return "81.0.1";
}
getVersion(); // $ExpectType string
diff --git a/types/nginstack__orm/package.json b/types/nginstack__orm/package.json
index b454db767418d6..bb8887799d3879 100644
--- a/types/nginstack__orm/package.json
+++ b/types/nginstack__orm/package.json
@@ -1,9 +1,9 @@
{
"private": true,
"name": "@types/nginstack__orm",
- "version": "72.0.9999",
+ "version": "81.0.9999",
"projects": [
- "https://dev.azure.com/nginstack/nginstack"
+ "https://github.com/nginstack/nginstack"
],
"dependencies": {
"@types/nginstack__engine": "*"
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..ec6608f9c81305 100644
--- a/types/nginstack__web-framework/lib/anchor/Link.d.ts
+++ b/types/nginstack__web-framework/lib/anchor/Link.d.ts
@@ -13,9 +13,10 @@ declare class Link {
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,10 +63,10 @@ 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;
}
@@ -75,7 +74,7 @@ declare namespace Link {
export { Column, createProcess, Process };
}
import LayoutConfig = require("../process/LayoutConfig.js");
-import LegacyEvent = require("@nginstack/engine/lib/event/LegacyEvent.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;
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..8f98c699fd1474
--- /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/audio/Audio.d.ts b/types/nginstack__web-framework/lib/audio/Audio.d.ts
index cc15756942009e..6314d30987dfd7 100644
--- a/types/nginstack__web-framework/lib/audio/Audio.d.ts
+++ b/types/nginstack__web-framework/lib/audio/Audio.d.ts
@@ -11,8 +11,6 @@ declare class Audio {
id: string;
write(): void;
play(): void;
- private _formatAudioVariable;
- private _createId;
}
declare namespace Audio {
export { Process };
diff --git a/types/nginstack__web-framework/lib/button/Button.d.ts b/types/nginstack__web-framework/lib/button/Button.d.ts
index 2b411b70ece776..1492a08d92c33b 100644
--- a/types/nginstack__web-framework/lib/button/Button.d.ts
+++ b/types/nginstack__web-framework/lib/button/Button.d.ts
@@ -15,21 +15,19 @@ declare class Button {
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,12 +75,12 @@ declare class Button {
disable(): void;
hide(): void;
show(): void;
- private getChanges;
+ private getChanges_;
}
declare namespace Button {
export { createProcess, Grid, Process };
}
-import LegacyEvent = require("@nginstack/engine/lib/event/LegacyEvent.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");
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..3313feb19d23b2
--- /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/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..cfd07217f9fde1 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/GetImagesEvent.d.ts b/types/nginstack__web-framework/lib/classdef/GetImagesEvent.d.ts
new file mode 100644
index 00000000000000..4bd5e5695e001f
--- /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/ViewDef.d.ts b/types/nginstack__web-framework/lib/classdef/ViewDef.d.ts
index 8522692bfe810d..419cea38a8d235 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;
diff --git a/types/nginstack__web-framework/lib/classdef/ViewDefField.d.ts b/types/nginstack__web-framework/lib/classdef/ViewDefField.d.ts
index ee8ce30d4c1fa4..b967eedad63fba 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;
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/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/css/formatLinkTag.d.ts b/types/nginstack__web-framework/lib/css/formatLinkTag.d.ts
index 823738c65a8196..9883a06b2cc914 100644
--- a/types/nginstack__web-framework/lib/css/formatLinkTag.d.ts
+++ b/types/nginstack__web-framework/lib/css/formatLinkTag.d.ts
@@ -1,5 +1,10 @@
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 };
}
diff --git a/types/nginstack__web-framework/lib/dialogs/FormDialog.d.ts b/types/nginstack__web-framework/lib/dialogs/FormDialog.d.ts
index 6c33d52c3d2590..d39bbbf424332b 100644
--- a/types/nginstack__web-framework/lib/dialogs/FormDialog.d.ts
+++ b/types/nginstack__web-framework/lib/dialogs/FormDialog.d.ts
@@ -3,17 +3,19 @@ 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 {
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/dsv/ReportVisualizationColumn.d.ts b/types/nginstack__web-framework/lib/dsv/ReportVisualizationColumn.d.ts
index b2baeb50fc8e31..724f2f131a2f8e 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,11 @@ declare class ReportVisualizationColumn {
toString(): string;
}
declare namespace ReportVisualizationColumn {
- export { AngleFormat, DateFormat, hasPathDimension, LatitudeFormat, LongitudeFormat };
+ export { AngleFormat, DateFormat, hasPathDimension, LatitudeFormat, LongitudeFormat, 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 NumberFormat = typeof import("@nginstack/engine/lib/number/NumberFormat");
diff --git a/types/nginstack__web-framework/lib/dsv/Visualization.d.ts b/types/nginstack__web-framework/lib/dsv/Visualization.d.ts
index 1a505da161bfaf..80e2e756f7039e 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;
diff --git a/types/nginstack__web-framework/lib/dsv/VisualizationDef.d.ts b/types/nginstack__web-framework/lib/dsv/VisualizationDef.d.ts
index d450a41af7d1c8..a641ac961d7c3b 100644
--- a/types/nginstack__web-framework/lib/dsv/VisualizationDef.d.ts
+++ b/types/nginstack__web-framework/lib/dsv/VisualizationDef.d.ts
@@ -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;
diff --git a/types/nginstack__web-framework/lib/environment/Environment.d.ts b/types/nginstack__web-framework/lib/environment/Environment.d.ts
index e48ac5fd207e09..03e5aaa3dbd16a 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/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/DataExporterFieldDef.d.ts b/types/nginstack__web-framework/lib/export/DataExporterFieldDef.d.ts
index c16490f279bfee..9d0aef178b6a79 100644
--- a/types/nginstack__web-framework/lib/export/DataExporterFieldDef.d.ts
+++ b/types/nginstack__web-framework/lib/export/DataExporterFieldDef.d.ts
@@ -9,17 +9,10 @@ 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 { AngleFormat, DataSet, DateFormat, Field, LatitudeFormat, LongitudeFormat, newFromField, NumberFormat };
}
import LegacyEvent = require("@nginstack/engine/lib/event/LegacyEvent.js");
declare function newFromField(field: Field): DataExporterFieldDef;
@@ -27,5 +20,6 @@ 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/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..8b1cd8d8108542 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;
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/FileLoader.d.ts b/types/nginstack__web-framework/lib/file-loader/FileLoader.d.ts
index 2c1b1234cc3411..4b108bd4d92e09 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;
@@ -50,6 +52,7 @@ interface FileInfoUpload {
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..78a6c849064568 100644
--- a/types/nginstack__web-framework/lib/file-loader/UploadedFile.d.ts
+++ b/types/nginstack__web-framework/lib/file-loader/UploadedFile.d.ts
@@ -1,7 +1,19 @@
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,
@@ -17,5 +29,7 @@ declare class UploadedFile {
key?: number;
},
): number;
+ toText(encoding?: string): string;
+ toBytes(): Uint8Array;
}
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..71ef0437c3581f 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,
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..d85497798c7455 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;
diff --git a/types/nginstack__web-framework/lib/grid/Grid.d.ts b/types/nginstack__web-framework/lib/grid/Grid.d.ts
index e8cb5bd60fe6f3..9dc1422835518a 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;
@@ -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,61 +197,51 @@ 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_(
@@ -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;
@@ -306,14 +301,16 @@ declare class Grid {
private _prepareDetailGrids;
protected prepare(): void;
persist(): number;
- write(opt_showInFormView?: boolean, opt_noWriteInClient?: boolean): void;
+ private getGridStructure_;
+ prepareFields_(): void;
+ write(showInFormView?: boolean): void;
private fViewMode;
- private _sortFieldsAndDeclareUnnamedGroups;
+ private sortFieldsAndDeclareUnnamedGroups_;
private _hasScrollEvents;
private _writeAndScrollDetails;
private writeFormView;
private writeTableView;
- private writeFields;
+ private getFieldsStructure_;
userKeyToValidatePermissions: number;
validateFieldPermissions: boolean;
private _classe;
@@ -328,16 +325,14 @@ declare class Grid {
private _validateIfUserCanStartInsertAndReturnSuggestedClassKey;
private _validateDelete;
private _validateExport;
- private validateFields;
- private validateRequiredFields;
- private _getRequiredFieldsNotFilled;
+ private getUnfilledRequiredFields_;
private postAtNavigation;
private safeCallOnAfterScroll;
- private handleFirst;
- private handleLast;
- private handlePrior;
- private handleNext;
- private handleChangeView;
+ private handleFirst_;
+ private handleLast_;
+ private handlePrior_;
+ private handleNext_;
+ private handleToggleView_;
scroll(action: string | ((arg0: DataSet) => boolean)): boolean;
first(): boolean;
last(): boolean;
@@ -349,27 +344,30 @@ declare class Grid {
tryGotoRowId(rowId: number): boolean;
private collectAllRecordsToDuplicate_;
private readCurrentRecordToDuplicate_;
- private handleDuplicateRecord_;
+ private handleDuplicate_;
duplicateRecord(opt_bookmark?: string): void;
private insertRecordsFromMap_;
- private handleInsert;
- private handleDelete;
- private handlePost;
- private handleCancel;
- private handleInvertSelection;
- private handleUnselectAll;
- private handleSelectAll;
- private handleSetsOrRetrievesAll;
- private handleSelectRecord;
- private fieldAction;
+ private handleInsert_;
+ private handleDelete_;
+ private handleConfirm_;
+ private handleCancel_;
+ private handleRecordsSelection_;
+ private handleNavigation_;
+ private handleOpenKey_;
+ private handleFieldFocus_;
+ private handleInvertSelection_;
+ private handleUnselectAll_;
+ private handleSelectAll_;
+ private handleSelectRecord_;
private _defaultOnShowLog;
lookup(field: GridField): void;
- private _handleLookup;
+ private handleLookup_;
private endLookup;
- private selectAllOnLookup;
+ private handleLookupSelectAll_;
expand(nodeValue: string): void;
- colapse(nodeValue: string): void;
- private handleTreeViewToggle;
+ private colapse;
+ collapse(nodeValue: string): void;
+ private handleToggleTree_;
private _locateField;
private _locateValueAtField;
private _compareNearestOrMatch;
@@ -381,53 +379,78 @@ declare class Grid {
private _isChildOfRoots;
private _defaultOnLocate;
private _prepareIfNecessary;
- private locate;
+ private handleSearch_;
private _removeStrFromList;
- private _getFieldIndexOrder;
- private index;
- private updateAggregateValue;
- private handleLog;
- private handleExport;
+ private calculateFieldIndexOrderAndDirection_;
+ private handleIndex_;
+ private handleUpdateAggregateValue_;
+ private handleShowLog_;
+ private handleExport_;
private fieldIsVisibleInCurrentView_;
private handleToggleKey_;
private getFieldByNames_;
- private handleAction;
- private handleGridActionsFunctions;
+ private handleCommand_;
private assign;
private _close;
private toString;
private _ivfs;
private exportersClass;
private getExportFormatsOptions;
- private _resetClientButtons;
- private _hasSelectEvents;
- private handleSync;
+ private resetClientButtons_;
+ private hasSelectEvents_;
+ private handleSync_;
private getActions;
toggleKeyVisibility(): void;
toggleFieldVisibility(field: string | Field): void;
private finishToggleFieldVisibility_;
+ private gridCommandMethods_;
}
declare namespace Grid {
export {
AdapterDescriptor,
+ AggregatesSyncResponse,
ALWAYS,
Button,
+ ErrorPayload,
Event,
+ ExportRequest,
+ FieldFocusRequest,
+ FieldServerState,
+ FieldSync,
FocusOptions,
FORM_VIEW as FORMVIEW,
+ FormViewSync,
+ GridActionRequest,
+ GridClientState,
+ GridClientStructure,
+ GridGroupState,
+ GridServerState,
GridState,
+ GridSyncResponse,
+ IndexRequest,
LOCATE_ALL_FIELDS,
LOCATE_EXACT,
LOCATE_NEXT,
+ LookupRequest,
+ LookupResponse,
MAX_VISIBLE_RECORD_COUNT,
MDA_DELETE,
MDA_ERROR,
MDA_UNLINK,
NEVER,
+ OpenKeyRequest,
persist,
Process,
- RecordData,
+ RecordServerState,
+ RecordSync,
+ RefreshResponse,
+ SearchRequest,
+ SelectRecordRequest,
TABLE_VIEW as TABLEVIEW,
+ TableViewSync,
+ TreeToggleRequest,
+ TypedCommand,
+ UpdateAggregateRequest,
USER_PERMISSION,
ViewDefField,
};
@@ -456,25 +479,193 @@ declare let LOCATE_EXACT: number;
declare let LOCATE_NEXT: number;
declare function persist(grids: Grid | Grid[]): number;
declare let MAX_VISIBLE_RECORD_COUNT: number;
-interface RecordData {
- bookmark: number;
- recNo: number;
- checked: boolean;
- enabled: boolean;
+interface RecordServerState {
editing: boolean;
locked: boolean;
+ bookmark?: number;
+ recNo?: number;
+ checked?: boolean;
+ enabled?: boolean;
}
interface FocusOptions {
fieldName?: string;
firstEditable?: boolean;
}
-type AdapterDescriptor = import("@nginstack/engine/lib/event/AdapterDescriptor");
-type Event = import("@nginstack/engine/lib/event/Event");
-type Button = import("../button/Button");
-type ViewDefField = import("../classdef/ViewDefField");
-type Process = import("../process/Process");
+interface AggregatesSyncResponse {
+ aggregates: Array;
+ gridName: string;
+}
+interface ErrorPayload {
+ error: string;
+ ticket: string;
+ stackTrace?: string;
+}
+interface GridSyncResponse {
+ gridName: string;
+ state: GridServerState;
+ errorState?: ErrorPayload;
+ syncButtons?: {
+ enabled?: string[];
+ disabled?: string[];
+ };
+ linkFields?: boolean;
+ pendingFocus?: FocusOptions;
+ view?: FormViewSync | TableViewSync;
+ complementarySync?: GridSyncResponse;
+}
+interface GridServerState {
+ recordCount: number;
+ bookmark: string;
+ recNo: number;
+ viewState?: string;
+ allSelected?: boolean;
+ readOnly?: boolean;
+ canInsert?: boolean;
+ canDelete?: boolean;
+ canConfirm?: boolean;
+ canDuplicate?: boolean;
+ canInvertSelection?: boolean;
+ canShowLog?: boolean;
+ canExport?: boolean;
+ canToggleKey?: boolean;
+ hasSelectEvents?: boolean;
+ selectedRecords?: string[];
+}
+interface FieldSync {
+ fieldName: string;
+ state?: FieldServerState;
+ linkSet?: import("../anchor/LinkSet").FieldLinkSetData;
+ value?: string;
+ informed?: boolean;
+ style?: {
+ css?: Record;
+ error?: string;
+ };
+ thumbnail?: {
+ urls?: string[];
+ error?: boolean;
+ };
+ display?: string;
+ syncCalculus?: {
+ showError?: boolean;
+ error?: string;
+ };
+}
+interface FieldServerState {
+ readOnly?: boolean;
+ required?: boolean;
+ width?: number;
+ tableViewWidth?: number;
+}
+interface RecordSync {
+ dataIndex: number;
+ state: RecordServerState;
+ fields: FieldSync[];
+ tooltip?: string;
+ isCurrentRecord?: boolean;
+}
+interface FormViewSync {
+ type: string;
+ fields: FieldSync[];
+}
+interface TableViewSync {
+ type: string;
+ records: RecordSync[];
+ maxRecordsDelta?: number;
+ lastIndex?: number;
+}
+interface SelectRecordRequest {
+ bookmark: string;
+ rangeSelection?: boolean;
+}
+interface GridActionRequest {
+ action: string;
+}
+interface ExportRequest {
+ exportType: number;
+}
+interface UpdateAggregateRequest {
+ fieldName: string;
+ value: string;
+}
+interface IndexRequest {
+ fieldName: string;
+ composite?: boolean;
+}
+interface SearchRequest {
+ value: string;
+ fieldName: string;
+ allFields?: boolean;
+}
+interface TreeToggleRequest {
+ node: number;
+}
+interface LookupRequest {
+ fieldName: string;
+ value: string;
+ openLookup: boolean;
+}
+interface LookupResponse {
+ gridName: string;
+ fieldName: string;
+ empty?: boolean;
+ emptyMessage?: string;
+ fastSelect?: boolean;
+ limited?: boolean;
+ limit?: number;
+}
+interface OpenKeyRequest {
+ fieldName: string;
+}
+interface FieldFocusRequest {
+ fieldName: string;
+}
+interface GridClientState {
+ title: string;
+ readOnly: boolean;
+ viewMode: string;
+ hasTableView: boolean;
+ hasFormView: boolean;
+ hasDetailField: boolean;
+ hasValidatePermission: boolean;
+ hasHintFieldNames: boolean;
+ hasAggregateBar: boolean;
+ collapsed: boolean;
+ width: number;
+ hasButtonsBar: boolean;
+ trapArrowFocus: boolean;
+ exportOptions: any;
+ maxRecordCount: number;
+ visible?: boolean;
+ hasScrollEvents?: boolean;
+ hasSelectEvents?: boolean;
+ hasDataSet?: boolean;
+ hasKey?: boolean;
+ hasRowBasedReadOnlyFields?: boolean;
+}
+interface GridClientStructure {
+ name: string;
+ parentName: string | null;
+ state: GridClientState;
+ fields: Array;
+}
+interface RefreshResponse {
+ gridName: string;
+ grids: GridClientStructure[];
+}
+interface GridGroupState {
+ gridName: string;
+ id: string;
+ collapsed: boolean;
+}
+type TypedCommand = import("../process/Process").TypedCommand;
interface GridState {
dataSetId: number | null;
rowId: number | null;
selectedRecords: string[];
}
+type AdapterDescriptor = import("@nginstack/engine/lib/event/AdapterDescriptor");
+type Event = import("@nginstack/engine/lib/event/Event");
+type Button = import("../button/Button");
+type ViewDefField = import("../classdef/ViewDefField");
+type Process = import("../process/Process");
diff --git a/types/nginstack__web-framework/lib/grid/GridField.d.ts b/types/nginstack__web-framework/lib/grid/GridField.d.ts
index 404bb7cb40c63c..b82d996e44324a 100644
--- a/types/nginstack__web-framework/lib/grid/GridField.d.ts
+++ b/types/nginstack__web-framework/lib/grid/GridField.d.ts
@@ -8,15 +8,18 @@ declare class GridField {
private clientValue;
private clientCanModify;
private clientRequired;
+ private clientWidth_;
+ private clientTableViewWidth_;
private fieldIndexCache;
private _readOnlyChangedByGrid;
+ calcError: string;
+ private indexData_;
private dispatchEvent;
- private handleDispatchFocusEvent;
- private handleOpenKey;
- private handleActions;
- private handleFieldActionsFunctions;
+ private handleFocus_;
+ private handleOpenKey_;
canModify: boolean;
- private write;
+ prepare_(): void;
+ private getStructure_;
alignment: any;
private written_;
lookup(): void;
@@ -25,6 +28,7 @@ declare class GridField {
private defaultLookupMultipleInsertListener_;
private checkIfCanModify_;
private calc;
+ changed: any;
private requiresFilling;
private appendInTreeStructure;
private prepareTreeView;
@@ -34,7 +38,7 @@ declare class GridField {
dsTreeStructure: DataSet;
private _checkInformedFields;
private validateClassFieldChange_;
- validateInput: (value: string | number | boolean | Date) => any;
+ validateInput: any;
protected _checkSaveInputAsDefault(context: {
processKey: number;
interactionName: string;
@@ -51,7 +55,6 @@ declare class GridField {
private validateLookupLicenseDependencies_;
setValue(value: any, ...args: any[]): void;
inSetValue: boolean;
- changed: any;
resyncPending: boolean;
setValueOnly(value: any): void;
getValue(): any;
@@ -67,14 +70,82 @@ declare class GridField {
private refreshClientValue;
private removeClassEvents;
private getComboOptionDisplay;
- private _configWidth;
- height: any;
- private _width;
- private _tableViewWidth;
+ private configWidth_;
+ width: any;
+ tableViewWidth: any;
+ private width_;
}
declare namespace GridField {
- export { DetailGrid, LookupMultipleInsertEvent };
+ export { DetailGrid, FieldClientStructure, FieldIndexData, FieldInitialState, LookupMultipleInsertEvent };
}
import DataSet = require("@nginstack/engine/lib/dataset/DataSet.js");
type LookupMultipleInsertEvent = import("../classdef/LookupMultipleInsertEvent");
type DetailGrid = import("./DetailGrid");
+interface FieldInitialState {
+ column: number;
+ group: any;
+ breakLine: boolean;
+ label: string;
+ labelPosition: string;
+ wrap: boolean;
+ enterKeyAction: string;
+ calculated: boolean;
+ alignment: string;
+ tableViewable: boolean;
+ formViewable: boolean;
+ withLink: boolean;
+ required: boolean;
+ controlType: string;
+ readOnly: boolean;
+ autoTrim: boolean;
+ hasFocusEvents: boolean;
+ validationType: string;
+ indexDirection?: {
+ NONE: number;
+ UP: number;
+ DOWN: number;
+ LEFT: number;
+ RIGHT: number;
+ };
+ positionAtIndex?: number;
+ aggregate?: {
+ description?: string;
+ decimalPrecision?: number;
+ type?: string;
+ readOnly?: boolean;
+ alignment?: string;
+ };
+ tableViewLabel?: string;
+ displayFormat?: string;
+ rangeLimit?: any;
+ thumbnail: {
+ visible: boolean;
+ zoomMaxHeight?: number;
+ zoomMaxWidth?: number;
+ zoomOnHover?: boolean;
+ };
+ hasLookup?: boolean;
+ max?: number;
+ min?: number;
+ lookupDisplay?: string;
+ caseType?: string;
+ width: number | string;
+ tableViewWidth: number | string;
+ height?: string;
+ rows?: number;
+ negativeInRed?: boolean;
+ decimalPrecision?: number;
+ minDecimalPrecision?: number;
+ maxDecimalPrecision?: number;
+ lookupType?: string;
+}
+interface FieldClientStructure {
+ name: string;
+ type: string;
+ size: number;
+ state: FieldInitialState;
+}
+interface FieldIndexData {
+ order: number;
+ direction: number;
+}
diff --git a/types/nginstack__web-framework/lib/grid/NavigationAction.d.ts b/types/nginstack__web-framework/lib/grid/NavigationAction.d.ts
new file mode 100644
index 00000000000000..c6993ad3b53341
--- /dev/null
+++ b/types/nginstack__web-framework/lib/grid/NavigationAction.d.ts
@@ -0,0 +1,4 @@
+export let NEXT: string;
+export let PRIOR: string;
+export let FIRST: string;
+export let LAST: string;
diff --git a/types/nginstack__web-framework/lib/grid/SelectionAction.d.ts b/types/nginstack__web-framework/lib/grid/SelectionAction.d.ts
new file mode 100644
index 00000000000000..bb4b29cd4275a4
--- /dev/null
+++ b/types/nginstack__web-framework/lib/grid/SelectionAction.d.ts
@@ -0,0 +1,3 @@
+export let SELECT_ALL: string;
+export let UNSELECT_ALL: string;
+export let INVERT: string;
diff --git a/types/nginstack__web-framework/lib/grid/TreeView.d.ts b/types/nginstack__web-framework/lib/grid/TreeView.d.ts
index 2bdbe94f7852a6..dc8ea87ca1e97d 100644
--- a/types/nginstack__web-framework/lib/grid/TreeView.d.ts
+++ b/types/nginstack__web-framework/lib/grid/TreeView.d.ts
@@ -27,19 +27,17 @@ declare class AbstractTree {
nId: number;
level: number;
index: number;
- css: any;
text: any;
value: any;
getHasChildren(): boolean;
- addChild(text: any, value: any, index: any, css: any): any;
+ addChild(text: any, value: any, index: any): any;
expand(): void;
collapse(): void;
}
-declare function TreeChild(treeView: any, parent: any, css: any): void;
+declare function TreeChild(treeView: any, parent: any): void;
declare class TreeChild {
- constructor(treeView: any, parent: any, css: any);
+ constructor(treeView: any, parent: any);
nId: any;
- css: any;
fHtml: string;
getHtml(): string;
getLabelHtml(): string;
diff --git a/types/nginstack__web-framework/lib/html/formatIconTag.d.ts b/types/nginstack__web-framework/lib/html/formatIconTag.d.ts
index d4487e406ef2bd..40374c87f0e263 100644
--- a/types/nginstack__web-framework/lib/html/formatIconTag.d.ts
+++ b/types/nginstack__web-framework/lib/html/formatIconTag.d.ts
@@ -1,8 +1,10 @@
export = formatIconTag;
declare function formatIconTag(
icon: string,
- opt_options?: {
+ options?: {
style?: string;
+ iconSize?: string | number;
+ iconColor?: string;
id?: string;
cssClass?: string;
},
diff --git a/types/nginstack__web-framework/lib/http/FakeResponse.d.ts b/types/nginstack__web-framework/lib/http/FakeResponse.d.ts
index a8dd8dd2735190..d104b0a743d3db 100644
--- a/types/nginstack__web-framework/lib/http/FakeResponse.d.ts
+++ b/types/nginstack__web-framework/lib/http/FakeResponse.d.ts
@@ -2,7 +2,7 @@ export = FakeResponse;
declare function FakeResponse(options?: { discardData?: boolean }): void;
declare class FakeResponse {
constructor(options?: { discardData?: boolean });
- discardData_: boolean;
+ private discardData_;
data: string;
getBuffer(): string;
write(value: string): void;
diff --git a/types/nginstack__web-framework/lib/ifp/CommandType.d.ts b/types/nginstack__web-framework/lib/ifp/CommandType.d.ts
new file mode 100644
index 00000000000000..eb2442cd40907a
--- /dev/null
+++ b/types/nginstack__web-framework/lib/ifp/CommandType.d.ts
@@ -0,0 +1,34 @@
+export let BUTTON_CLICK: string;
+export let BUTTONS_SYNC: string;
+export let FIELD_FOCUS: string;
+export let FIELD_OPEN_KEY: string;
+export let GRID_AGGREGATE: string;
+export let GRID_CANCEL: string;
+export let GRID_COLLAPSE: string;
+export let GRID_CONFIRM: string;
+export let GRID_DEFINITION: string;
+export let GRID_DELETE: string;
+export let GRID_EXPORT: string;
+export let GRID_GROUP_COLLAPSE: string;
+export let GRID_INDEX: string;
+export let GRID_INSERT: string;
+export let GRID_NAVIGATION: string;
+export let GRID_RECORDS_SELECTION: string;
+export let GRID_REFRESH: string;
+export let GRID_SEARCH: string;
+export let GRID_SHOW_LOG: string;
+export let GRID_STRUCTURES: string;
+export let GRID_SYNC: string;
+export let GRID_TITLE: string;
+export let GRID_TOGGLE_KEY: string;
+export let GRID_TOGGLE_TREE: string;
+export let GRID_TOGGLE_VIEW: string;
+export let INTERACTION_NAME: string;
+export let LABELS_SYNC: string;
+export let LINK_CLICK: string;
+export let LINKS_SYNC: string;
+export let LOOKUP: string;
+export let PROCESS_NAVIGATE: string;
+export let RECORD_DUPLICATE: string;
+export let RECORD_SELECT: string;
+export let REQUIRED_FIELD_VALIDATE: string;
diff --git a/types/nginstack__web-framework/lib/ifp/ControlChannel.d.ts b/types/nginstack__web-framework/lib/ifp/ControlChannel.d.ts
index 9a81442fd7a44c..70198ebd61b81f 100644
--- a/types/nginstack__web-framework/lib/ifp/ControlChannel.d.ts
+++ b/types/nginstack__web-framework/lib/ifp/ControlChannel.d.ts
@@ -16,6 +16,7 @@ declare class ControlChannel {
requestScreenLock(): void;
isScreenLockPending(): boolean;
unlockSessionByNavigator(userName: string, password: string, newPassword?: string): string;
+ unlockSessionByNavigatorWithToken(userName: any, idToken: any): string;
isScreenLocked(): boolean;
getScreenLockedAt(): number;
getScreenUnlockedAt(): number;
diff --git a/types/nginstack__web-framework/lib/ifp/RequestType.d.ts b/types/nginstack__web-framework/lib/ifp/RequestType.d.ts
new file mode 100644
index 00000000000000..49e158c40336d8
--- /dev/null
+++ b/types/nginstack__web-framework/lib/ifp/RequestType.d.ts
@@ -0,0 +1,2 @@
+export let FILE: string;
+export let INTERACTION: string;
diff --git a/types/nginstack__web-framework/lib/ifp/SyncAction.d.ts b/types/nginstack__web-framework/lib/ifp/SyncAction.d.ts
new file mode 100644
index 00000000000000..f97cd113f4e5f9
--- /dev/null
+++ b/types/nginstack__web-framework/lib/ifp/SyncAction.d.ts
@@ -0,0 +1,3 @@
+export let NONE: string;
+export let LOGOUT: string;
+export let SYNC: string;
diff --git a/types/nginstack__web-framework/lib/ifp/SyncMethod.d.ts b/types/nginstack__web-framework/lib/ifp/SyncMethod.d.ts
new file mode 100644
index 00000000000000..fc1f79e0fad7da
--- /dev/null
+++ b/types/nginstack__web-framework/lib/ifp/SyncMethod.d.ts
@@ -0,0 +1,7 @@
+export let CLOSE_VIEW: string;
+export let DISCARD_PROCESS: string;
+export let PING: string;
+export let REFRESH_VIEW: string;
+export let RUN_ACTIVITY: string;
+export let STARTUP: string;
+export let UPDATE_PASSWORD: string;
diff --git a/types/nginstack__web-framework/lib/ifp/SyncTarget.d.ts b/types/nginstack__web-framework/lib/ifp/SyncTarget.d.ts
new file mode 100644
index 00000000000000..d3d68199773736
--- /dev/null
+++ b/types/nginstack__web-framework/lib/ifp/SyncTarget.d.ts
@@ -0,0 +1,5 @@
+export let ENVIRONMENT: string;
+export let GRID: string;
+export let MESSAGES: string;
+export let PROCESS: string;
+export let SESSION: string;
diff --git a/types/nginstack__web-framework/lib/ifp/constants.d.ts b/types/nginstack__web-framework/lib/ifp/constants.d.ts
deleted file mode 100644
index bac5c17d5e4778..00000000000000
--- a/types/nginstack__web-framework/lib/ifp/constants.d.ts
+++ /dev/null
@@ -1,117 +0,0 @@
-export let ENV_MAIN_CALL_LENGTH: number;
-export let ENV_MAIN_CALL_POS_SEQUENCE: number;
-export let ENV_MAIN_CALL_POS_CALLS: number;
-export let ENV_MAIN_CALL_POS_MESSAGES: number;
-export let ENV_MAIN_CALL_POS_TIMESTAMP: number;
-export let ENV_MAIN_CALL_POS_LAST_USE: number;
-export let ENV_CALL_LENGTH: number;
-export let ENV_CALL_POS_TYPE: number;
-export let ENV_CALL_POS_PROCESS_ID: number;
-export let ENV_CALL_POS_PROCESS_OPS: number;
-export let ENV_CALL_POS_METHOD: number;
-export let ENV_CALL_POS_METHOD_ARGS: number;
-export let ENV_CALL_ID_TYPE_PROCESS: number;
-export let ENV_CALL_ID_TYPE_CALL: number;
-export let ENV_CALL_ID_METHOD_RUN_ACTIVITY: number;
-export let ENV_CALL_ID_METHOD_CLOSE_TAB: number;
-export let ENV_CALL_ID_METHOD_REFRESH_TAB: number;
-export let ENV_CALL_ID_METHOD_EXECUTE_LINK: number;
-export let ENV_CALL_ID_METHOD_EXECUTE_BUTTON: number;
-export let ENV_CALL_ID_METHOD_STARTUP: number;
-export let ENV_CALL_ID_METHOD_HIT: number;
-export let ENV_CALL_ID_METHOD_UPDATE_PASSWORD: number;
-export let ENV_CALL_ID_METHOD_HISTORY_NAVIGATION: number;
-export let ENV_CALL_HISTORY_NAVIGATION_POS_PID: number;
-export let ENV_CALL_HISTORY_NAVIGATION_POS_DIRECTION: number;
-export let ENV_CALL_EXECUTE_LINK_POS_PID: number;
-export let ENV_CALL_EXECUTE_LINK_POS_NAME: number;
-export let ENV_CALL_EXECUTE_LINK_POS_ROW_ID: number;
-export let ENV_CALL_EXECUTE_LINK_POS_STORED_PARAMETERS_ID: number;
-export let ENV_CALL_EXECUTE_LINK_POS_LAST_SHOWN_PROCESS_ID: number;
-export let ENV_CALL_EXECUTE_BUTTON_POS_PID: number;
-export let ENV_CALL_EXECUTE_BUTTON_POS_NAME: number;
-export let ENV_CALL_EXECUTE_BUTTON_POS_GRID_NAME: number;
-export let ENV_CALL_EXECUTE_BUTTON_POS_LAST_SHOWN_PROCESS_ID: number;
-export let ENV_METHOD_RUN_ACTIVITY_POS_PKEY: number;
-export let ENV_METHOD_RUN_ACTIVITY_POS_PID: number;
-export let ENV_METHOD_RUN_ACTIVITY_POS_ICON: number;
-export let ENV_METHOD_RUN_ACTIVITY_POS_ACTIVITY_NAME: number;
-export let ENV_METHOD_RUN_ACTIVITY_POS_CAN_DO_HISTORY: number;
-export let ENV_METHOD_RUN_ACTIVITY_POS_LAST_SHOWN_PROCESS_ID: number;
-export let ENV_METHOD_RUN_ACTIVITY_POS_PARAMETERS: number;
-export let ENV_METHOD_RUN_ACTIVITY_POS_VALIDATE_LAST_ACTIVITY: number;
-export let PROCESS_OP_POS_TYPE: number;
-export let PROCESS_OP_POS_ARGS: number;
-export let PROCESS_OP_ID_TYPE_INITIAL_SYNCHRONIZE: number;
-export let PROCESS_OP_ID_TYPE_GRID_SYNCHRONIZE: number;
-export let PROCESS_OP_ID_TYPE_GRID_ACTION: number;
-export let PROCESS_OP_ID_TYPE_PING: number;
-export let PROCESS_OP_GRID_SYNCHRONIZE_POS_GRID_NAME: number;
-export let PROCESS_OP_GRID_SYNCHRONIZE_POS_SYNC_ACTIONS: number;
-export let PROCESS_OP_GRID_ACTION_POS_GRID_NAME: number;
-export let PROCESS_OP_GRID_ACTION_POS_ACTIONS: number;
-export let GRID_SYNC_ACTION_POS_TYPE: number;
-export let GRID_SYNC_ACTION_POS_ARGS: number;
-export let GRID_SYNC_ACTION_ID_TYPE_COLLAPSED: number;
-export let GRID_SYNC_ACTION_ID_TYPE_SELECTED: number;
-export let GRID_SYNC_ACTION_ID_TYPE_INPUT: number;
-export let GRID_SYNC_ACTION_ID_TYPE_POSITION: number;
-export let GRID_SYNC_ACTION_ID_TYPE_EDITION: number;
-export let GRID_SYNC_ACTION_ID_TYPE_EDITING_FIELD_NAME: number;
-export let GRID_SYNC_ACTION_INPUT_POS_REC_NO: number;
-export let GRID_SYNC_ACTION_INPUT_POS_FIELD_NAME: number;
-export let GRID_SYNC_ACTION_INPUT_POS_VALUE: number;
-export let GRID_SYNC_ACTION_EDITION_POS_EDITING_REC_BUFFER: number;
-export let GRID_SYNC_ACTION_POSITION_POS_EDITING_REC_BUFFER: number;
-export let GRID_SYNC_ACTION_POSITION_POS_CLIENT_REC_NO: number;
-export let GRID_ACTION_POS_TYPE: number;
-export let GRID_ACTION_POS_ARGS: number;
-export let GRID_ACTION_ID_TYPE_FIELD_ACTION: number;
-export let GRID_ACTION_ID_TYPE_LOOKUP: number;
-export let GRID_ACTION_ID_TYPE_SELECT_ALL_ON_LOOKUP: number;
-export let GRID_ACTION_ID_TYPE_TREE_VIEW_TOGGLE: number;
-export let GRID_ACTION_ID_TYPE_FIRST: number;
-export let GRID_ACTION_ID_TYPE_LAST: number;
-export let GRID_ACTION_ID_TYPE_PRIOR: number;
-export let GRID_ACTION_ID_TYPE_NEXT: number;
-export let GRID_ACTION_ID_TYPE_CHANGE_VIEW: number;
-export let GRID_ACTION_ID_TYPE_INSERT: number;
-export let GRID_ACTION_ID_TYPE_DELETE: number;
-export let GRID_ACTION_ID_TYPE_POST: number;
-export let GRID_ACTION_ID_TYPE_CANCEL: number;
-export let GRID_ACTION_ID_TYPE_INVERT_SELECTION: number;
-export let GRID_ACTION_ID_TYPE_SETS_OR_RETRIEVES_ALL: number;
-export let GRID_ACTION_ID_TYPE_SELECT_RECORD: number;
-export let GRID_ACTION_ID_TYPE_LOCATE: number;
-export let GRID_ACTION_ID_TYPE_INDEX: number;
-export let GRID_ACTION_ID_TYPE_UPDATE_AGGREGATE: number;
-export let GRID_ACTION_ID_TYPE_LOG: number;
-export let GRID_ACTION_ID_TYPE_EXPORT: number;
-export let GRID_ACTION_ID_TYPE_DUPLICATE: number;
-export let GRID_ACTION_ID_TYPE_TOGGLE_KEY: number;
-export let GRID_ACTION_ID_TYPE_UNSELECT_ALL: number;
-export let GRID_ACTION_FIELD_ACTION_POS_FIELD_NAME: number;
-export let GRID_ACTION_FIELD_ACTION_POS_TYPE: number;
-export let GRID_ACTION_FIELD_ACTION_ID_TYPE_DISPATCH_FOCUS_EVENT: number;
-export let GRID_ACTION_FIELD_ACTION_ID_TYPE_OPEN_KEY: number;
-export let GRID_ACTION_LOOKUP_POS_FIELD_NAME: number;
-export let GRID_ACTION_LOOKUP_POS_VALUE: number;
-export let GRID_ACTION_LOOKUP_POS_OPEN_LOOKUP: number;
-export let GRID_ACTION_OPEN_KEY_POS_FIELD_NAME: number;
-export let GRID_ACTION_LOCATE_POS_VALUE: number;
-export let GRID_ACTION_LOCATE_POS_OPTIONS: number;
-export let GRID_ACTION_LOCATE_POS_FIELD: number;
-export let GRID_ACTION_INDEX_POS_FIELD_NAME: number;
-export let GRID_ACTION_INDEX_POS_CTRL_PRESSED: number;
-export let GRID_ACTION_UPDATE_AGGREGATE_POS_FIELD_NAME: number;
-export let GRID_ACTION_UPDATE_AGGREGATE_POS_VALUE: number;
-export let ENV_MAIN_REQUEST_LENGTH: number;
-export let ENV_MAIN_REQUEST_POS_SEQUENCE: number;
-export let ENV_MAIN_REQUEST_POS_REQUEST: number;
-export let ENV_REQUEST_POS_TYPE: number;
-export let ENV_REQUEST_POS_TAB_ID: number;
-export let ENV_REQUEST_POS_REQUEST_ARGS: number;
-export let ENV_REQUEST_ID_TYPE_RUN_INTERACTION: number;
-export let ENV_REQUEST_ID_TYPE_GET_FILE: number;
-export let ENV_REQUEST_RUN_INTERACTION_POS_PID: number;
-export let ENV_REQUEST_RUN_INTERACTION_POS_RELOADING: number;
diff --git a/types/nginstack__web-framework/lib/label/Label.d.ts b/types/nginstack__web-framework/lib/label/Label.d.ts
index a2c55572723bd1..ff291742b6bc46 100644
--- a/types/nginstack__web-framework/lib/label/Label.d.ts
+++ b/types/nginstack__web-framework/lib/label/Label.d.ts
@@ -3,13 +3,13 @@ declare function Label(process: Process): void;
declare class Label {
constructor(process: Process);
layout: LayoutConfig;
- private _changedProperties;
+ private changedProperties_;
process: import("../process/Process");
private logger_;
- private _changed;
+ private changed_;
private written_;
private toString;
- private getChanges;
+ private getChanges_;
private _clearChangedProperties;
private resetProperties;
name: string;
diff --git a/types/nginstack__web-framework/lib/process/Process.d.ts b/types/nginstack__web-framework/lib/process/Process.d.ts
index 4b5210049b4250..7d0adbfbebdef5 100644
--- a/types/nginstack__web-framework/lib/process/Process.d.ts
+++ b/types/nginstack__web-framework/lib/process/Process.d.ts
@@ -8,8 +8,9 @@ declare function Process(
declare class Process {
constructor(key: number, id: string, responseObject: any, sourceClass: number | DBKey);
environment: Environment;
- private _ctrlChannel;
+ private ctrlChannel_;
cssFiles: any[];
+ warnIncompleteHelp: boolean;
private grids;
userKeyToValidatePermissions: number;
private writtenGridsInCurrentInteraction_;
@@ -24,7 +25,7 @@ declare class Process {
private labels;
private requiredFiles_;
private reservedWords;
- private _pendingOperations;
+ private pendingCommands_;
key: number;
dbkey: DBKey;
uri: string;
@@ -37,14 +38,13 @@ declare class Process {
private logger_;
private pairName_;
private componentFactoryResolver_;
- private scrollX_;
- private scrollY_;
bodyClassName: string;
private defaultButton;
private dsLookup;
private grLookup;
private uploadDialog_;
private fileLoader_;
+ private textEncoder_;
private clearHistoryFlag;
simpleLayoutOutputHandler: any;
currentInteraction: Interaction;
@@ -110,7 +110,7 @@ declare class Process {
action(name: any, target: any, order: any, processKey: any, newTab: any): Button;
clearButtons(): void;
clearActions(): void;
- label(name: string, opt_text?: string): import("../label/Label");
+ label(name: string, text?: string): import("../label/Label");
interaction(
name: string,
func: (this: Process) => any,
@@ -134,26 +134,30 @@ declare class Process {
opt_newTab?: boolean,
): void;
private clearNextInteractionInfo;
- private handleGridSynchronize;
+ private handleGridStateSynchronize_;
private sortButtons;
- private syncButtons;
+ private syncButtons_;
private resetUiObjectsProperties;
- private getButtonsChanges;
- private getLinksChanges;
+ private getButtonsChanges_;
+ private getLinksChanges_;
canWriteScripts: boolean;
- private getLabelChanges;
- private handleGridAction;
- private validateRequiredInputOfLastInteraction;
+ private getLabelChanges_;
+ private validateLastInteractionRequiredFields_;
private postAllWrittenGridDataSetsInCurrentInteraction_;
- private handleInitialSynchronize;
- private ping;
- private handleExecuteLink;
- private handleExecuteButton;
- private handleIfp;
+ private handleGridStructures_;
+ immediateRedirectEnabled: any;
+ private handlePing_;
+ private handleLinkClick_;
+ private handleButtonClick_;
+ private handleNavigate_;
+ private handleSync_;
+ private handleCommand_;
private addGridToWriteOnCurrentInteraction;
private _insensitiveCompare;
private removeDetailGridsFromWriteOnCurrentInteraction;
private checkWordAvailability;
+ private checkProcessHelp_;
+ helpChecked__: boolean;
private setParameters;
private resetNextState;
private prepare;
@@ -161,16 +165,21 @@ declare class Process {
private updateConnectionReferrer;
private run;
getSimpleLayout(...args: any[]): SimpleLayout;
- private handleIfpFunctionsLength;
- private handleIfpFunctions;
private closeLookupGrid;
private getSelectedKeysOfLookup;
private setStatusMessage;
private setCtrlMessage;
private setEvaluateCode;
+ copyToClipboard(
+ text: string,
+ options?: {
+ successMessage?: string;
+ },
+ ): void;
title: string;
getFileId(filePathOrVfsKey: any, displayFileName: any): string;
alert(message: string): void;
+ playAudio(id: string): void;
showProgress(currentStep: number, maxStep: number, label: string): void;
private hideProgress;
prompt(label: string, answers: any[][], options: PromptOptions, ...args: any[]): any;
@@ -185,8 +194,7 @@ declare class Process {
clearHistory(): void;
close(): void;
closeTab(opt_targetTabId?: number): void;
- private _checkGridsAndConfirmCancel;
- handleHistoryNavigation(args: any): any[];
+ private checkGridsAndConfirmCancel_;
private translateButtonList;
private setButtonsProperty;
private setVisibleButtonsByButtonsArray;
@@ -206,24 +214,34 @@ declare class Process {
private defineAllGrids;
private _prepareConnection;
private _unprepareConnection;
- immediateRedirectEnabled: boolean;
- private redirectIfInteractionWasChanged;
+ private redirectIfInteractionWasChanged_;
getVisibleGridNames(): string;
beep(): void;
loadModule(path: string): void;
- private act_preserveScrollPosition_;
+ private processCommandMethods_;
}
declare namespace Process {
export {
Button,
+ ClickButtonRequest,
+ ClickLinkRequest,
create,
- getProcessTitle,
+ getProcessDisplayName as getProcessTitle,
getSourceAndInclude,
Grid,
+ GridButtonsSyncCommand,
+ GridClientState,
GridField,
Label,
Link,
+ manager,
+ NamedSyncCommand,
+ NavigateRequest,
+ NavigateResponse,
PromptOptions,
+ SyncCommand,
+ SyncProcessRequest,
+ TypedCommand,
UploadedFile,
};
}
@@ -234,16 +252,67 @@ import DataSet = require("@nginstack/engine/lib/dataset/DataSet.js");
import SimpleLayout = require("../simple-layout/SimpleLayout.js");
import Promise = require("../promise/Promise.js");
import DownloadOptions = require("../file-loader/DownloadOptions.js");
-declare function getProcessTitle(key: number, processName: string): string;
+import getProcessDisplayName = require("./getProcessDisplayName.js");
declare function getSourceAndInclude(key: number): any[];
declare function create(keyOrUrl: any, sourceClassKey: any): Process;
+declare let manager: import("./ProcessManager");
type Button = import("../button/Button");
type Grid = import("../grid/Grid");
type Link = import("../anchor/Link");
type GridField = import("../grid/GridField");
type UploadedFile = import("../file-loader/UploadedFile");
type Label = import("../label/Label.js");
+type SyncCommand = import("./ProcessManager.js").SyncCommand;
interface PromptOptions {
defaultIndex?: number;
cancelReturnValue?: any;
}
+interface TypedCommand {
+ type: string;
+ data?: any;
+}
+interface SyncProcessRequest {
+ gridStates?: GridClientState[];
+ command?: SyncCommand | TypedCommand;
+}
+interface ClickButtonRequest {
+ buttonName: string;
+ gridName?: string;
+ lastShownProcessId?: string;
+}
+interface ClickLinkRequest {
+ linkName: string;
+ rowId?: number;
+ parametersId?: string;
+ lastShownProcessId?: string;
+}
+interface NavigateRequest {
+ direction: string;
+}
+interface NavigateResponse {
+ direction: string;
+}
+interface GridClientState {
+ name: string;
+ selectedRecords?: string[];
+ collapsed?: boolean;
+ recordIndex?: number;
+ fieldName?: string;
+ position?: {
+ recordIndex: number;
+ recNo: number;
+ };
+ pendingValues?: Array<{
+ fieldName: string;
+ value: string;
+ recNo: number | null;
+ }>;
+}
+interface NamedSyncCommand {
+ name: string;
+ data: any;
+}
+interface GridButtonsSyncCommand {
+ grid: string;
+ buttons: NamedSyncCommand[];
+}
diff --git a/types/nginstack__web-framework/lib/process/ProcessManager.d.ts b/types/nginstack__web-framework/lib/process/ProcessManager.d.ts
index 6fcb2563e29cba..e01933b838d7bb 100644
--- a/types/nginstack__web-framework/lib/process/ProcessManager.d.ts
+++ b/types/nginstack__web-framework/lib/process/ProcessManager.d.ts
@@ -7,11 +7,11 @@ declare class ProcessManager {
iClass: DataSet;
publishedFileIds: {};
processesById_: Record;
- onBeforeRun: import("@nginstack/engine/lib/event/Event");
- onAfterRun: import("@nginstack/engine/lib/event/Event");
- ctrlChannel: ControlChannel;
+ onBeforeRun: Adapter;
+ onAfterRun: Adapter;
+ private ctrlChannel_;
private environment_;
- private openedTabs_;
+ private openViews_;
ctrlSessionId: any;
private lastUse_;
private currentProcess_;
@@ -21,13 +21,13 @@ declare class ProcessManager {
private lockedScreenTimeout_;
private debugSessionTimeouts_;
private logOutDueToInactivity_;
- private interface_count;
private logger_;
+ private textEncoder_;
private loadSessionSettings_;
private processEventQueue_;
- private handleStartup;
+ private handleStartup_;
private handleUpdatePassword_;
- private handleHit;
+ private handlePing_;
private isScreenLocked;
private setEvaluateCode;
private isEAbort;
@@ -35,7 +35,7 @@ declare class ProcessManager {
private getDefaultProcessKeyOfClass;
private handleIncomingMessages_;
private handleRequest;
- private handleIfp;
+ private handleSync_;
private getParameterFromRequestObject;
private createProcess;
getProcessById(id: string): Process;
@@ -44,35 +44,53 @@ declare class ProcessManager {
private runProcess;
private updateTabInfo_;
private getTabIcon;
- private handleRunActivityCall;
+ private handleRunActivity_;
private processWillGo;
- private runActivity;
+ private runActivity_;
closeProcess(id: number): void;
private emitBeforeExitEvent_;
- private handleCloseTabCall;
- private finalize;
- private handleExecuteLink;
- private handleExecuteButton;
- private handleHistoryNavigation;
- private handleRefreshTabCall;
- private handleRunInteractionRequest;
- private handleGetFileRequest;
+ private handleCloseView_;
+ private handleRefreshView_;
+ private handleRunInteraction_;
+ private handleGetFile_;
private getFileContent;
private getFileId;
private purgeExpiredExportedFiles_;
private getClientAddress_;
notifyUsage(lastUse?: number): void;
verifySessionTimeouts(): SessionTimeoutsInfo;
- private callHandlers;
- private requestHandlers;
getCurrentProcess(): Process;
}
declare namespace ProcessManager {
- export { Controller, DataSet, Event, getInstance, parseLayoutLinkContent, SessionTimeoutsInfo, TabInfo };
+ export {
+ CloseViewRequest,
+ CloseViewResponse,
+ Controller,
+ DataSet,
+ DiscardProcessResponse,
+ Event,
+ getInstance,
+ parseLayoutLinkContent,
+ PingRequest,
+ RefreshViewRequest,
+ RefreshViewResponse,
+ restrictAllowedProcesses,
+ RunActivityRequest,
+ RunActivityResponse,
+ SessionTimeoutsInfo,
+ StartupResponse,
+ SyncCommand,
+ SyncCommandWithError,
+ SyncRequest,
+ SyncResponse,
+ TabInfo,
+ UpdatePasswordRequest,
+ };
}
import Process = require("./Process.js");
-import ControlChannel = require("../ifp/ControlChannel.js");
+import Adapter = require("@nginstack/engine/lib/event/Adapter.js");
declare function getInstance(): ProcessManager;
+declare const restrictAllowedProcesses: any;
declare function parseLayoutLinkContent(content: any): DBKey;
type Event = import("@nginstack/engine/lib/event/Event");
type DataSet = import("@nginstack/engine/lib/dataset/DataSet");
@@ -81,6 +99,77 @@ interface TabInfo {
processIds: string[];
currentProcessId: string;
}
+interface SyncCommandWithError {
+ sync: SyncCommand[];
+ error: Error | null;
+}
+interface SyncCommand {
+ target: string;
+ id?: string | number;
+ data?: any;
+}
+interface SyncRequest {
+ sequence: number;
+ messages: Array<{
+ targetId: string;
+ message: any;
+ }>;
+ timestamp: number;
+ lastUse: number;
+ data: SyncCommand[];
+}
+interface SyncResponse {
+ action: string;
+ data: any;
+}
+interface RunActivityRequest {
+ activityName: string;
+ parameters?: any[];
+ processKey?: number;
+ processId?: string;
+ icon?: string;
+ canDoHistory?: boolean;
+ lastShownProcessId?: string;
+ validateLastActivity?: boolean;
+}
+interface RunActivityResponse {
+ id: string;
+ menuPath: string;
+ icon?: string;
+ processKey?: number;
+ priorId?: string;
+}
+interface RefreshViewRequest {
+ viewId: string;
+}
+interface RefreshViewResponse {
+ currentId: string;
+ id: string;
+}
+interface CloseViewRequest {
+ viewId: string;
+}
+interface CloseViewResponse {
+ processId: number;
+}
+interface DiscardProcessResponse {
+ processId: string;
+}
+interface UpdatePasswordRequest {
+ password: string;
+}
+interface StartupResponse {
+ exiting: boolean;
+ alert?: string;
+ homeProcess?: {
+ key: string;
+ interactionName: string;
+ serializedParameters: any[];
+ };
+}
+interface PingRequest {
+ processId?: string;
+}
interface SessionTimeoutsInfo {
inactivity: number;
lockedScreen: number;
diff --git a/types/nginstack__web-framework/lib/process/getProcessDisplayName.d.ts b/types/nginstack__web-framework/lib/process/getProcessDisplayName.d.ts
new file mode 100644
index 00000000000000..f496b6a4a08c7d
--- /dev/null
+++ b/types/nginstack__web-framework/lib/process/getProcessDisplayName.d.ts
@@ -0,0 +1,2 @@
+declare function _exports(key: number): string;
+export = _exports;
diff --git a/types/nginstack__web-framework/lib/process/runActivity.d.ts b/types/nginstack__web-framework/lib/process/runActivity.d.ts
deleted file mode 100644
index d06ac457879daa..00000000000000
--- a/types/nginstack__web-framework/lib/process/runActivity.d.ts
+++ /dev/null
@@ -1,14 +0,0 @@
-export = runActivity;
-declare function runActivity(
- pKey: any,
- processId: any,
- activityName: any,
- canDoHistory: any,
- parameters: any,
- iconClass: any,
- lastShownProcessId: any,
- validateLastActivity: any,
-): any;
-declare namespace runActivity {
- let processManager_: any;
-}
diff --git a/types/nginstack__web-framework/lib/simple-layout/Column.d.ts b/types/nginstack__web-framework/lib/simple-layout/Column.d.ts
index ce0ce26afc7fd7..f4f11fa75c681f 100644
--- a/types/nginstack__web-framework/lib/simple-layout/Column.d.ts
+++ b/types/nginstack__web-framework/lib/simple-layout/Column.d.ts
@@ -41,9 +41,7 @@ declare class Column {
| LatitudeFormat
| LongitudeFormat
| AngleFormat
- | string
- | number
- | null;
+ | typeof NumberFormat;
breakLine: boolean;
wordWrap: boolean;
width: number | string | null;
@@ -105,6 +103,7 @@ declare namespace Column {
import SimpleLayout = require("./SimpleLayout.js");
import LegacyEvent = require("@nginstack/engine/lib/event/LegacyEvent.js");
import LinkSet = require("../anchor/LinkSet.js");
+import NumberFormat = require("@nginstack/engine/lib/number/NumberFormat.js");
declare namespace VerticalAligns {
let TOP: string;
let MIDDLE: string;
diff --git a/types/nginstack__web-framework/lib/simple-layout/SimpleLayout.d.ts b/types/nginstack__web-framework/lib/simple-layout/SimpleLayout.d.ts
index 3217c90b9b47b2..1c9ccf8e45c787 100644
--- a/types/nginstack__web-framework/lib/simple-layout/SimpleLayout.d.ts
+++ b/types/nginstack__web-framework/lib/simple-layout/SimpleLayout.d.ts
@@ -11,7 +11,7 @@ declare class SimpleLayout {
private currentGroupCountBeforeDynamicFields_;
private columnsWithMerge_;
private arAccumulators;
- private columnsTotalByGroupId;
+ private columnsTotals_;
recordColors: string[];
groupColors: any[];
private currentGroupCount;
@@ -76,6 +76,7 @@ declare class SimpleLayout {
printFontSize: string;
columnPadding: string;
negativeInRed: boolean;
+ noResultsMessage: string;
showUserAndDataBaseName: boolean;
showVariables: boolean;
showOnlyFilledVariables: boolean;
@@ -193,20 +194,40 @@ declare class SimpleLayout {
cssClass?: string;
},
): string;
- writeIcon(icon: string, options?: number | Record): void;
- formatIconTag(icon: string): string;
+ writeIcon(
+ icon: string,
+ options?: {
+ contentToAccumulate?: number;
+ cssClass?: string | string[];
+ cssStyle: Record;
+ iconSize?: string | number;
+ iconColor?: string;
+ tagAttributes?: Record;
+ showTopLine?: boolean;
+ showBottomLine?: boolean;
+ renderContentAsHtml?: boolean;
+ totalContentWeight?: number;
+ key?: number;
+ },
+ ): void;
+ formatIconTag(
+ icon: string,
+ options?: {
+ iconSize?: string | number;
+ iconColor?: string;
+ },
+ ): string;
private formatToggle_;
breakPage(): void;
private writeTreeRow_;
private writeTreeRows_;
- end(totalLabel?: any, messageWhenEmpty?: any, resetColumns?: any): void;
+ end(totalLabel?: string, noResultsMessage?: string, resetColumns?: boolean): void;
close(): void;
private accumulator;
stats(): SimpleLayoutStats;
}
declare namespace SimpleLayout {
export {
- columnsTotalByGroupId,
ColumnWriteOptions,
defaults,
Event,
@@ -227,7 +248,6 @@ import Email = require("@nginstack/engine/lib/email/Email.js");
import DataSet = require("@nginstack/engine/lib/dataset/DataSet.js");
import Link = require("../anchor/Link.js");
import Column = require("./Column.js");
-declare let columnsTotalByGroupId: any;
declare let defaults: {};
declare function formatCssStyle(options?: {
theme?: number | DBKey;
@@ -246,7 +266,7 @@ interface FilterDef {
}
interface TreeRowColumn {
content: any;
- writeOptions: ColumnWriteOptions[];
+ writeOptions: ColumnWriteOptions;
}
interface TreeRow {
rowId: string;
diff --git a/types/nginstack__web-framework/lib/theme/Theme.d.ts b/types/nginstack__web-framework/lib/theme/Theme.d.ts
index e503f83c0bea86..bc0916b1774363 100644
--- a/types/nginstack__web-framework/lib/theme/Theme.d.ts
+++ b/types/nginstack__web-framework/lib/theme/Theme.d.ts
@@ -3,13 +3,14 @@ declare function Theme(): void;
declare class Theme {
private vendorConfig_;
getTheme(userKey: number): number;
+ getVendorTheme(): number;
getDefaultTheme(): number;
canChangeTheme(userKey: number): boolean;
canChangeColorScheme(userKey: number): boolean;
canChangeContrastLevel(userKey: number): boolean;
getDensity(userKey?: number): number;
getColorScheme(userKey?: number): number;
- getContrastLevel(userKey: number): number;
+ getContrastLevel(userKey?: number): number;
getThemeSchemes(themeKey: number | DBKey): ThemeSchemes;
getThemeTones(themeKey: number | DBKey): ThemeTones;
getThemePreviewData(themeKey: number | DBKey): {
@@ -73,9 +74,12 @@ interface ColorTokens {
shadow: string;
source: string;
onSource: string;
+ sourceContainerLowest: string;
+ onSourceContainerLowest: string;
sourceContainer: string;
- sourceContainerVariant: string;
onSourceContainer: string;
+ sourceContainerVariant: string;
+ onSourceContainerVariant: string;
}
interface ColorTones {
onSource: number;
diff --git a/types/nginstack__web-framework/nginstack__web-framework-tests.ts b/types/nginstack__web-framework/nginstack__web-framework-tests.ts
index 1cff0144d4fe02..6fecb99d06f02c 100644
--- a/types/nginstack__web-framework/nginstack__web-framework-tests.ts
+++ b/types/nginstack__web-framework/nginstack__web-framework-tests.ts
@@ -91,7 +91,6 @@ grid.hintFieldNames; // $ExpectType string
grid.automaticClearUnselectableRecords; // $ExpectType boolean
grid.viewMode; // $ExpectType number
grid.classKeyToValidatePermission; // $ExpectType number | DBKey
-grid.selectedRecordsChanged; // $ExpectType boolean
grid.edit(); // $ExpectType void
grid.insert(); // $ExpectType void
grid.del(true); // $ExpectType void
@@ -110,11 +109,10 @@ grid.userKeyToValidatePermissions; // $ExpectType number
grid.validateFieldPermissions; // $ExpectType boolean
grid.lookup(gridField); // $ExpectType void
grid.expand("nodeValue"); // $ExpectType void
-grid.colapse("nodeValue"); // $ExpectType void
grid.toggleKeyVisibility(); // $ExpectType void
grid.toggleFieldVisibility("field"); // $ExpectType void
function getVersion(): string {
- return "72.0.12";
+ return "81.0.1";
}
getVersion(); // $ExpectType string
diff --git a/types/nginstack__web-framework/package.json b/types/nginstack__web-framework/package.json
index 183045efc4fe01..304fa0595edf81 100644
--- a/types/nginstack__web-framework/package.json
+++ b/types/nginstack__web-framework/package.json
@@ -1,9 +1,9 @@
{
"private": true,
"name": "@types/nginstack__web-framework",
- "version": "72.0.9999",
+ "version": "81.0.9999",
"projects": [
- "https://dev.azure.com/nginstack/nginstack"
+ "https://github.com/nginstack/nginstack"
],
"dependencies": {
"@types/nginstack__datasource": "*",
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