@integration-app/react 0.1.1 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- package/node_modules/@compwright/namecase/LICENSE +26 -0
- package/node_modules/@compwright/namecase/README.md +49 -0
- package/node_modules/@compwright/namecase/bin/namecase +28 -0
- package/node_modules/@compwright/namecase/dist/namecase.min.js +4 -0
- package/node_modules/@compwright/namecase/dist/namecase.min.js.map +1 -0
- package/node_modules/@compwright/namecase/package.json +46 -0
- package/node_modules/@compwright/namecase/src/index.js +146 -0
- package/node_modules/@integration-app/sdk/bundle.js +404 -262
- package/node_modules/@integration-app/sdk/bundle.js.map +1 -1
- package/node_modules/@integration-app/sdk/client.d.ts +3 -3
- package/node_modules/@integration-app/sdk/data-builder/formulas/case.d.ts +3 -7
- package/node_modules/@integration-app/sdk/data-builder/formulas/case.js +16 -32
- package/node_modules/@integration-app/sdk/data-builder/formulas/case.js.map +1 -1
- package/node_modules/@integration-app/sdk/integrations/accessors.d.ts +0 -6
- package/node_modules/@integration-app/sdk/integrations/accessors.js +1 -87
- package/node_modules/@integration-app/sdk/integrations/accessors.js.map +1 -1
- package/node_modules/@integration-app/sdk/json-schema/index.d.ts +1 -1
- package/node_modules/@integration-app/sdk/src/client.ts +3 -3
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/case.test.ts +11 -113
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/case.ts +22 -46
- package/node_modules/@integration-app/sdk/src/integrations/accessors.ts +2 -122
- package/node_modules/@sinclair/typebox/package.json +40 -0
- package/node_modules/@sinclair/typebox/readme.md +740 -0
- package/node_modules/@sinclair/typebox/typebox.d.ts +351 -0
- package/node_modules/@sinclair/typebox/typebox.js +345 -0
- package/node_modules/@types/node/README.md +16 -0
- package/node_modules/@types/node/assert.d.ts +128 -0
- package/node_modules/@types/node/async_hooks.d.ts +229 -0
- package/node_modules/@types/node/buffer.d.ts +89 -0
- package/node_modules/@types/node/child_process.d.ts +514 -0
- package/node_modules/@types/node/cluster.d.ts +265 -0
- package/node_modules/@types/node/console.d.ts +142 -0
- package/node_modules/@types/node/constants.d.ts +18 -0
- package/node_modules/@types/node/crypto.d.ts +1283 -0
- package/node_modules/@types/node/dgram.d.ts +144 -0
- package/node_modules/@types/node/dns.d.ts +387 -0
- package/node_modules/@types/node/domain.d.ts +27 -0
- package/node_modules/@types/node/events.d.ts +82 -0
- package/node_modules/@types/node/fs/promises.d.ts +572 -0
- package/node_modules/@types/node/fs.d.ts +2281 -0
- package/node_modules/@types/node/globals.d.ts +747 -0
- package/node_modules/@types/node/globals.global.d.ts +1 -0
- package/node_modules/@types/node/http.d.ts +580 -0
- package/node_modules/@types/node/http2.d.ts +962 -0
- package/node_modules/@types/node/https.d.ts +271 -0
- package/node_modules/@types/node/index.d.ts +98 -0
- package/node_modules/@types/node/inspector.d.ts +3051 -0
- package/node_modules/@types/node/module.d.ts +56 -0
- package/node_modules/@types/node/net.d.ts +308 -0
- package/node_modules/@types/node/os.d.ts +243 -0
- package/node_modules/@types/node/package.json +232 -0
- package/node_modules/@types/node/path.d.ts +168 -0
- package/node_modules/@types/node/perf_hooks.d.ts +274 -0
- package/node_modules/@types/node/process.d.ts +413 -0
- package/node_modules/@types/node/punycode.d.ts +78 -0
- package/node_modules/@types/node/querystring.d.ts +31 -0
- package/node_modules/@types/node/readline.d.ts +174 -0
- package/node_modules/@types/node/repl.d.ts +398 -0
- package/node_modules/@types/node/stream.d.ts +359 -0
- package/node_modules/@types/node/string_decoder.d.ts +10 -0
- package/node_modules/@types/node/timers.d.ts +19 -0
- package/node_modules/@types/node/tls.d.ts +784 -0
- package/node_modules/@types/node/trace_events.d.ts +64 -0
- package/node_modules/@types/node/ts4.8/assert.d.ts +128 -0
- package/node_modules/@types/node/ts4.8/async_hooks.d.ts +229 -0
- package/node_modules/@types/node/ts4.8/buffer.d.ts +89 -0
- package/node_modules/@types/node/ts4.8/child_process.d.ts +514 -0
- package/node_modules/@types/node/ts4.8/cluster.d.ts +265 -0
- package/node_modules/@types/node/ts4.8/console.d.ts +142 -0
- package/node_modules/@types/node/ts4.8/constants.d.ts +18 -0
- package/node_modules/@types/node/ts4.8/crypto.d.ts +1283 -0
- package/node_modules/@types/node/ts4.8/dgram.d.ts +144 -0
- package/node_modules/@types/node/ts4.8/dns.d.ts +387 -0
- package/node_modules/@types/node/ts4.8/domain.d.ts +27 -0
- package/node_modules/@types/node/ts4.8/events.d.ts +82 -0
- package/node_modules/@types/node/ts4.8/fs/promises.d.ts +572 -0
- package/node_modules/@types/node/ts4.8/fs.d.ts +2281 -0
- package/node_modules/@types/node/ts4.8/globals.d.ts +746 -0
- package/node_modules/@types/node/ts4.8/globals.global.d.ts +1 -0
- package/node_modules/@types/node/ts4.8/http.d.ts +580 -0
- package/node_modules/@types/node/ts4.8/http2.d.ts +962 -0
- package/node_modules/@types/node/ts4.8/https.d.ts +271 -0
- package/node_modules/@types/node/ts4.8/index.d.ts +53 -0
- package/node_modules/@types/node/ts4.8/inspector.d.ts +3051 -0
- package/node_modules/@types/node/ts4.8/module.d.ts +56 -0
- package/node_modules/@types/node/ts4.8/net.d.ts +308 -0
- package/node_modules/@types/node/ts4.8/os.d.ts +243 -0
- package/node_modules/@types/node/ts4.8/path.d.ts +168 -0
- package/node_modules/@types/node/ts4.8/perf_hooks.d.ts +274 -0
- package/node_modules/@types/node/ts4.8/process.d.ts +413 -0
- package/node_modules/@types/node/ts4.8/punycode.d.ts +78 -0
- package/node_modules/@types/node/ts4.8/querystring.d.ts +31 -0
- package/node_modules/@types/node/ts4.8/readline.d.ts +174 -0
- package/node_modules/@types/node/ts4.8/repl.d.ts +398 -0
- package/node_modules/@types/node/ts4.8/stream.d.ts +359 -0
- package/node_modules/@types/node/ts4.8/string_decoder.d.ts +10 -0
- package/node_modules/@types/node/ts4.8/timers.d.ts +19 -0
- package/node_modules/@types/node/ts4.8/tls.d.ts +784 -0
- package/node_modules/@types/node/ts4.8/trace_events.d.ts +64 -0
- package/node_modules/@types/node/ts4.8/tty.d.ts +69 -0
- package/node_modules/@types/node/ts4.8/url.d.ts +149 -0
- package/node_modules/@types/node/ts4.8/util.d.ts +216 -0
- package/node_modules/@types/node/ts4.8/v8.d.ts +190 -0
- package/node_modules/@types/node/ts4.8/vm.d.ts +155 -0
- package/node_modules/@types/node/ts4.8/wasi.d.ts +89 -0
- package/node_modules/@types/node/ts4.8/worker_threads.d.ts +241 -0
- package/node_modules/@types/node/ts4.8/zlib.d.ts +364 -0
- package/node_modules/@types/node/tty.d.ts +69 -0
- package/node_modules/@types/node/url.d.ts +149 -0
- package/node_modules/@types/node/util.d.ts +216 -0
- package/node_modules/@types/node/v8.d.ts +190 -0
- package/node_modules/@types/node/vm.d.ts +155 -0
- package/node_modules/@types/node/wasi.d.ts +89 -0
- package/node_modules/@types/node/worker_threads.d.ts +241 -0
- package/node_modules/@types/node/zlib.d.ts +364 -0
- package/package.json +2 -5
- package/node_modules/@integration-app/sdk/.DS_Store +0 -0
- package/node_modules/@integration-app/sdk/.gitignore +0 -11
- package/node_modules/@integration-app/sdk/.npmignore +0 -0
- package/node_modules/@integration-app/sdk/app-data-collections/app-data-collections.d.ts +0 -23
- package/node_modules/@integration-app/sdk/app-data-collections/app-data-collections.js.map +0 -1
- package/node_modules/@integration-app/sdk/app-data-schemas/app-data-schemas.d.ts +0 -20
- package/node_modules/@integration-app/sdk/app-data-schemas/app-data-schemas.js.map +0 -1
- package/node_modules/@integration-app/sdk/app-events/app-events.d.ts +0 -44
- package/node_modules/@integration-app/sdk/app-events/app-events.js.map +0 -1
- package/node_modules/@integration-app/sdk/connection-client.d.ts +0 -12
- package/node_modules/@integration-app/sdk/connection-client.js +0 -31
- package/node_modules/@integration-app/sdk/connection-client.js.map +0 -1
- package/node_modules/@integration-app/sdk/connections/connections.d.ts +0 -46
- package/node_modules/@integration-app/sdk/connections/connections.js.map +0 -1
- package/node_modules/@integration-app/sdk/connector-api/connector-api.d.ts +0 -157
- package/node_modules/@integration-app/sdk/connector-api/connector-api.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/findExternalRecordId.d.ts +0 -0
- package/node_modules/@integration-app/sdk/data-builder/findExternalRecordId.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/first-name.test.d.ts +0 -0
- package/node_modules/@integration-app/sdk/data-builder/first-name.test.js +0 -2
- package/node_modules/@integration-app/sdk/data-builder/first-name.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/anyOfOption.d.ts +0 -10
- package/node_modules/@integration-app/sdk/data-builder/formulas/anyOfOption.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/base.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/base.test.js +0 -26
- package/node_modules/@integration-app/sdk/data-builder/formulas/base.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/case.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/case.test.js +0 -246
- package/node_modules/@integration-app/sdk/data-builder/formulas/case.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/concat.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/concat.test.js +0 -85
- package/node_modules/@integration-app/sdk/data-builder/formulas/concat.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/copy.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/copy.test.js +0 -64
- package/node_modules/@integration-app/sdk/data-builder/formulas/copy.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/extractDate.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/extractDate.test.js +0 -44
- package/node_modules/@integration-app/sdk/data-builder/formulas/extractDate.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/extractTime.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/extractTime.test.js +0 -44
- package/node_modules/@integration-app/sdk/data-builder/formulas/extractTime.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/findAppRecordId.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/findAppRecordId.test.js +0 -26
- package/node_modules/@integration-app/sdk/data-builder/formulas/findAppRecordId.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/findExternalRecordId.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/findExternalRecordId.test.js +0 -26
- package/node_modules/@integration-app/sdk/data-builder/formulas/findExternalRecordId.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/first-name.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/first-name.test.js +0 -14
- package/node_modules/@integration-app/sdk/data-builder/formulas/first-name.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/index.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/index.test.js +0 -63
- package/node_modules/@integration-app/sdk/data-builder/formulas/index.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/iterate.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/iterate.test.js +0 -112
- package/node_modules/@integration-app/sdk/data-builder/formulas/iterate.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/lookup.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/lookup.test.js +0 -18
- package/node_modules/@integration-app/sdk/data-builder/formulas/lookup.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/map.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/map.test.js +0 -114
- package/node_modules/@integration-app/sdk/data-builder/formulas/map.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/tpl.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/tpl.test.js +0 -49
- package/node_modules/@integration-app/sdk/data-builder/formulas/tpl.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/types.d.ts +0 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/types.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/index.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/data-builder/index.test.js +0 -295
- package/node_modules/@integration-app/sdk/data-builder/index.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/locators.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/data-builder/locators.test.js +0 -775
- package/node_modules/@integration-app/sdk/data-builder/locators.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-filter/conditions.d.ts +0 -0
- package/node_modules/@integration-app/sdk/data-filter/conditions.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-filter/data-filter.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/data-filter/data-filter.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-filter/index.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/data-filter/index.test.js +0 -43
- package/node_modules/@integration-app/sdk/data-filter/index.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-filter/operators.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/data-filter/operators.test.js +0 -490
- package/node_modules/@integration-app/sdk/data-filter/operators.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-links/data-links.d.ts +0 -58
- package/node_modules/@integration-app/sdk/data-links/data-links.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-schema/index.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/data-schema/index.test.js +0 -86
- package/node_modules/@integration-app/sdk/data-schema/index.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-sources/data-sources.d.ts +0 -41
- package/node_modules/@integration-app/sdk/data-sources/data-sources.js.map +0 -1
- package/node_modules/@integration-app/sdk/endpoints/endpoint-spec.d.ts +0 -30
- package/node_modules/@integration-app/sdk/endpoints/endpoint-spec.js.map +0 -1
- package/node_modules/@integration-app/sdk/field-mappings/field-mappings.d.ts +0 -29
- package/node_modules/@integration-app/sdk/field-mappings/field-mappings.js.map +0 -1
- package/node_modules/@integration-app/sdk/flow-runs/flow-runs.d.ts +0 -51
- package/node_modules/@integration-app/sdk/flow-runs/flow-runs.js.map +0 -1
- package/node_modules/@integration-app/sdk/flows/flows.d.ts +0 -156
- package/node_modules/@integration-app/sdk/flows/flows.js.map +0 -1
- package/node_modules/@integration-app/sdk/flows/nodes/data-record-delete-trigger.d.ts +0 -3
- package/node_modules/@integration-app/sdk/flows/nodes/data-record-delete-trigger.js.map +0 -1
- package/node_modules/@integration-app/sdk/flows/nodes/nodes.d.ts +0 -25
- package/node_modules/@integration-app/sdk/flows/nodes/nodes.js.map +0 -1
- package/node_modules/@integration-app/sdk/flows/utils.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/flows/utils.test.js +0 -62
- package/node_modules/@integration-app/sdk/flows/utils.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/integration-elements/integration-elements.d.ts +0 -21
- package/node_modules/@integration-app/sdk/integration-elements/integration-elements.js.map +0 -1
- package/node_modules/@integration-app/sdk/integrations/integrations.d.ts +0 -48
- package/node_modules/@integration-app/sdk/integrations/integrations.js.map +0 -1
- package/node_modules/@integration-app/sdk/json-schema/json-schema.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/json-schema/json-schema.test.js +0 -194
- package/node_modules/@integration-app/sdk/json-schema/json-schema.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/json-schema/schema-builder.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/json-schema/schema-builder.test.js +0 -352
- package/node_modules/@integration-app/sdk/json-schema/schema-builder.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/jwt.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/jwt.test.js +0 -9
- package/node_modules/@integration-app/sdk/jwt.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/package-lock.json +0 -3834
- package/node_modules/@integration-app/sdk/udm/activities.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/udm/activities.test.js +0 -40
- package/node_modules/@integration-app/sdk/udm/activities.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/udm/campaign-members.d.ts +0 -45
- package/node_modules/@integration-app/sdk/udm/campaign-members.js +0 -99
- package/node_modules/@integration-app/sdk/udm/campaign-members.js.map +0 -1
- package/node_modules/@integration-app/sdk/udm/contacts.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/udm/contacts.test.js +0 -136
- package/node_modules/@integration-app/sdk/udm/contacts.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/udm/crm-activities.d.ts +0 -17
- package/node_modules/@integration-app/sdk/udm/crm-activities.js.map +0 -1
- package/node_modules/@integration-app/sdk/udm/crm-activity.d.ts +0 -11
- package/node_modules/@integration-app/sdk/udm/crm-activity.js.map +0 -1
- package/node_modules/@integration-app/sdk/udm/crm-companies.d.ts +0 -14
- package/node_modules/@integration-app/sdk/udm/crm-companies.js.map +0 -1
- package/node_modules/@integration-app/sdk/udm/crm-contact.d.ts +0 -10
- package/node_modules/@integration-app/sdk/udm/crm-contact.js.map +0 -1
- package/node_modules/@integration-app/sdk/udm/crm-contacts.d.ts +0 -16
- package/node_modules/@integration-app/sdk/udm/crm-contacts.js.map +0 -1
- package/node_modules/@integration-app/sdk/udm/crm-deals.d.ts +0 -15
- package/node_modules/@integration-app/sdk/udm/crm-deals.js.map +0 -1
- package/node_modules/@integration-app/sdk/udm/crm-leads.d.ts +0 -16
- package/node_modules/@integration-app/sdk/udm/crm-leads.js.map +0 -1
- package/node_modules/@integration-app/sdk/udm/members.d.ts +0 -45
- package/node_modules/@integration-app/sdk/udm/members.js.map +0 -1
- package/node_modules/@integration-app/sdk/users/users.d.ts +0 -5
- package/node_modules/@integration-app/sdk/users/users.js.map +0 -1
@@ -0,0 +1,241 @@
|
|
1
|
+
declare module 'worker_threads' {
|
2
|
+
import { Context } from 'vm';
|
3
|
+
import EventEmitter = require('events');
|
4
|
+
import { Readable, Writable } from 'stream';
|
5
|
+
import { URL } from 'url';
|
6
|
+
import { FileHandle } from 'fs/promises';
|
7
|
+
|
8
|
+
const isMainThread: boolean;
|
9
|
+
const parentPort: null | MessagePort;
|
10
|
+
const resourceLimits: ResourceLimits;
|
11
|
+
const SHARE_ENV: unique symbol;
|
12
|
+
const threadId: number;
|
13
|
+
const workerData: any;
|
14
|
+
|
15
|
+
class MessageChannel {
|
16
|
+
readonly port1: MessagePort;
|
17
|
+
readonly port2: MessagePort;
|
18
|
+
}
|
19
|
+
|
20
|
+
type TransferListItem = ArrayBuffer | MessagePort | FileHandle;
|
21
|
+
|
22
|
+
class MessagePort extends EventEmitter {
|
23
|
+
close(): void;
|
24
|
+
postMessage(value: any, transferList?: ReadonlyArray<TransferListItem>): void;
|
25
|
+
ref(): void;
|
26
|
+
unref(): void;
|
27
|
+
start(): void;
|
28
|
+
|
29
|
+
addListener(event: "close", listener: () => void): this;
|
30
|
+
addListener(event: "message", listener: (value: any) => void): this;
|
31
|
+
addListener(event: "messageerror", listener: (error: Error) => void): this;
|
32
|
+
addListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
33
|
+
|
34
|
+
emit(event: "close"): boolean;
|
35
|
+
emit(event: "message", value: any): boolean;
|
36
|
+
emit(event: "messageerror", error: Error): boolean;
|
37
|
+
emit(event: string | symbol, ...args: any[]): boolean;
|
38
|
+
|
39
|
+
on(event: "close", listener: () => void): this;
|
40
|
+
on(event: "message", listener: (value: any) => void): this;
|
41
|
+
on(event: "messageerror", listener: (error: Error) => void): this;
|
42
|
+
on(event: string | symbol, listener: (...args: any[]) => void): this;
|
43
|
+
|
44
|
+
once(event: "close", listener: () => void): this;
|
45
|
+
once(event: "message", listener: (value: any) => void): this;
|
46
|
+
once(event: "messageerror", listener: (error: Error) => void): this;
|
47
|
+
once(event: string | symbol, listener: (...args: any[]) => void): this;
|
48
|
+
|
49
|
+
prependListener(event: "close", listener: () => void): this;
|
50
|
+
prependListener(event: "message", listener: (value: any) => void): this;
|
51
|
+
prependListener(event: "messageerror", listener: (error: Error) => void): this;
|
52
|
+
prependListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
53
|
+
|
54
|
+
prependOnceListener(event: "close", listener: () => void): this;
|
55
|
+
prependOnceListener(event: "message", listener: (value: any) => void): this;
|
56
|
+
prependOnceListener(event: "messageerror", listener: (error: Error) => void): this;
|
57
|
+
prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
58
|
+
|
59
|
+
removeListener(event: "close", listener: () => void): this;
|
60
|
+
removeListener(event: "message", listener: (value: any) => void): this;
|
61
|
+
removeListener(event: "messageerror", listener: (error: Error) => void): this;
|
62
|
+
removeListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
63
|
+
|
64
|
+
off(event: "close", listener: () => void): this;
|
65
|
+
off(event: "message", listener: (value: any) => void): this;
|
66
|
+
off(event: "messageerror", listener: (error: Error) => void): this;
|
67
|
+
off(event: string | symbol, listener: (...args: any[]) => void): this;
|
68
|
+
}
|
69
|
+
|
70
|
+
interface WorkerOptions {
|
71
|
+
/**
|
72
|
+
* List of arguments which would be stringified and appended to
|
73
|
+
* `process.argv` in the worker. This is mostly similar to the `workerData`
|
74
|
+
* but the values will be available on the global `process.argv` as if they
|
75
|
+
* were passed as CLI options to the script.
|
76
|
+
*/
|
77
|
+
argv?: any[] | undefined;
|
78
|
+
env?: NodeJS.Dict<string> | typeof SHARE_ENV | undefined;
|
79
|
+
eval?: boolean | undefined;
|
80
|
+
workerData?: any;
|
81
|
+
stdin?: boolean | undefined;
|
82
|
+
stdout?: boolean | undefined;
|
83
|
+
stderr?: boolean | undefined;
|
84
|
+
execArgv?: string[] | undefined;
|
85
|
+
resourceLimits?: ResourceLimits | undefined;
|
86
|
+
/**
|
87
|
+
* Additional data to send in the first worker message.
|
88
|
+
*/
|
89
|
+
transferList?: TransferListItem[] | undefined;
|
90
|
+
trackUnmanagedFds?: boolean | undefined;
|
91
|
+
}
|
92
|
+
|
93
|
+
interface ResourceLimits {
|
94
|
+
/**
|
95
|
+
* The maximum size of a heap space for recently created objects.
|
96
|
+
*/
|
97
|
+
maxYoungGenerationSizeMb?: number | undefined;
|
98
|
+
/**
|
99
|
+
* The maximum size of the main heap in MB.
|
100
|
+
*/
|
101
|
+
maxOldGenerationSizeMb?: number | undefined;
|
102
|
+
/**
|
103
|
+
* The size of a pre-allocated memory range used for generated code.
|
104
|
+
*/
|
105
|
+
codeRangeSizeMb?: number | undefined;
|
106
|
+
/**
|
107
|
+
* The default maximum stack size for the thread. Small values may lead to unusable Worker instances.
|
108
|
+
* @default 4
|
109
|
+
*/
|
110
|
+
stackSizeMb?: number | undefined;
|
111
|
+
}
|
112
|
+
|
113
|
+
class Worker extends EventEmitter {
|
114
|
+
readonly stdin: Writable | null;
|
115
|
+
readonly stdout: Readable;
|
116
|
+
readonly stderr: Readable;
|
117
|
+
readonly threadId: number;
|
118
|
+
readonly resourceLimits?: ResourceLimits | undefined;
|
119
|
+
|
120
|
+
/**
|
121
|
+
* @param filename The path to the Worker’s main script or module.
|
122
|
+
* Must be either an absolute path or a relative path (i.e. relative to the current working directory) starting with ./ or ../,
|
123
|
+
* or a WHATWG URL object using file: protocol. If options.eval is true, this is a string containing JavaScript code rather than a path.
|
124
|
+
*/
|
125
|
+
constructor(filename: string | URL, options?: WorkerOptions);
|
126
|
+
|
127
|
+
postMessage(value: any, transferList?: ReadonlyArray<TransferListItem>): void;
|
128
|
+
ref(): void;
|
129
|
+
unref(): void;
|
130
|
+
/**
|
131
|
+
* Stop all JavaScript execution in the worker thread as soon as possible.
|
132
|
+
* Returns a Promise for the exit code that is fulfilled when the `exit` event is emitted.
|
133
|
+
*/
|
134
|
+
terminate(): Promise<number>;
|
135
|
+
|
136
|
+
/**
|
137
|
+
* Returns a readable stream for a V8 snapshot of the current state of the Worker.
|
138
|
+
* See [`v8.getHeapSnapshot()`][] for more details.
|
139
|
+
*
|
140
|
+
* If the Worker thread is no longer running, which may occur before the
|
141
|
+
* [`'exit'` event][] is emitted, the returned `Promise` will be rejected
|
142
|
+
* immediately with an [`ERR_WORKER_NOT_RUNNING`][] error
|
143
|
+
*/
|
144
|
+
getHeapSnapshot(): Promise<Readable>;
|
145
|
+
|
146
|
+
addListener(event: "error", listener: (err: Error) => void): this;
|
147
|
+
addListener(event: "exit", listener: (exitCode: number) => void): this;
|
148
|
+
addListener(event: "message", listener: (value: any) => void): this;
|
149
|
+
addListener(event: "messageerror", listener: (error: Error) => void): this;
|
150
|
+
addListener(event: "online", listener: () => void): this;
|
151
|
+
addListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
152
|
+
|
153
|
+
emit(event: "error", err: Error): boolean;
|
154
|
+
emit(event: "exit", exitCode: number): boolean;
|
155
|
+
emit(event: "message", value: any): boolean;
|
156
|
+
emit(event: "messageerror", error: Error): boolean;
|
157
|
+
emit(event: "online"): boolean;
|
158
|
+
emit(event: string | symbol, ...args: any[]): boolean;
|
159
|
+
|
160
|
+
on(event: "error", listener: (err: Error) => void): this;
|
161
|
+
on(event: "exit", listener: (exitCode: number) => void): this;
|
162
|
+
on(event: "message", listener: (value: any) => void): this;
|
163
|
+
on(event: "messageerror", listener: (error: Error) => void): this;
|
164
|
+
on(event: "online", listener: () => void): this;
|
165
|
+
on(event: string | symbol, listener: (...args: any[]) => void): this;
|
166
|
+
|
167
|
+
once(event: "error", listener: (err: Error) => void): this;
|
168
|
+
once(event: "exit", listener: (exitCode: number) => void): this;
|
169
|
+
once(event: "message", listener: (value: any) => void): this;
|
170
|
+
once(event: "messageerror", listener: (error: Error) => void): this;
|
171
|
+
once(event: "online", listener: () => void): this;
|
172
|
+
once(event: string | symbol, listener: (...args: any[]) => void): this;
|
173
|
+
|
174
|
+
prependListener(event: "error", listener: (err: Error) => void): this;
|
175
|
+
prependListener(event: "exit", listener: (exitCode: number) => void): this;
|
176
|
+
prependListener(event: "message", listener: (value: any) => void): this;
|
177
|
+
prependListener(event: "messageerror", listener: (error: Error) => void): this;
|
178
|
+
prependListener(event: "online", listener: () => void): this;
|
179
|
+
prependListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
180
|
+
|
181
|
+
prependOnceListener(event: "error", listener: (err: Error) => void): this;
|
182
|
+
prependOnceListener(event: "exit", listener: (exitCode: number) => void): this;
|
183
|
+
prependOnceListener(event: "message", listener: (value: any) => void): this;
|
184
|
+
prependOnceListener(event: "messageerror", listener: (error: Error) => void): this;
|
185
|
+
prependOnceListener(event: "online", listener: () => void): this;
|
186
|
+
prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
187
|
+
|
188
|
+
removeListener(event: "error", listener: (err: Error) => void): this;
|
189
|
+
removeListener(event: "exit", listener: (exitCode: number) => void): this;
|
190
|
+
removeListener(event: "message", listener: (value: any) => void): this;
|
191
|
+
removeListener(event: "messageerror", listener: (error: Error) => void): this;
|
192
|
+
removeListener(event: "online", listener: () => void): this;
|
193
|
+
removeListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
194
|
+
|
195
|
+
off(event: "error", listener: (err: Error) => void): this;
|
196
|
+
off(event: "exit", listener: (exitCode: number) => void): this;
|
197
|
+
off(event: "message", listener: (value: any) => void): this;
|
198
|
+
off(event: "messageerror", listener: (error: Error) => void): this;
|
199
|
+
off(event: "online", listener: () => void): this;
|
200
|
+
off(event: string | symbol, listener: (...args: any[]) => void): this;
|
201
|
+
}
|
202
|
+
|
203
|
+
/**
|
204
|
+
* Mark an object as not transferable.
|
205
|
+
* If `object` occurs in the transfer list of a `port.postMessage()` call, it will be ignored.
|
206
|
+
*
|
207
|
+
* In particular, this makes sense for objects that can be cloned, rather than transferred,
|
208
|
+
* and which are used by other objects on the sending side. For example, Node.js marks
|
209
|
+
* the `ArrayBuffer`s it uses for its Buffer pool with this.
|
210
|
+
*
|
211
|
+
* This operation cannot be undone.
|
212
|
+
*/
|
213
|
+
function markAsUntransferable(object: object): void;
|
214
|
+
|
215
|
+
/**
|
216
|
+
* Transfer a `MessagePort` to a different `vm` Context. The original `port`
|
217
|
+
* object will be rendered unusable, and the returned `MessagePort` instance will
|
218
|
+
* take its place.
|
219
|
+
*
|
220
|
+
* The returned `MessagePort` will be an object in the target context, and will
|
221
|
+
* inherit from its global `Object` class. Objects passed to the
|
222
|
+
* `port.onmessage()` listener will also be created in the target context
|
223
|
+
* and inherit from its global `Object` class.
|
224
|
+
*
|
225
|
+
* However, the created `MessagePort` will no longer inherit from
|
226
|
+
* `EventEmitter`, and only `port.onmessage()` can be used to receive
|
227
|
+
* events using it.
|
228
|
+
*/
|
229
|
+
function moveMessagePortToContext(port: MessagePort, context: Context): MessagePort;
|
230
|
+
|
231
|
+
/**
|
232
|
+
* Receive a single message from a given `MessagePort`. If no message is available,
|
233
|
+
* `undefined` is returned, otherwise an object with a single `message` property
|
234
|
+
* that contains the message payload, corresponding to the oldest message in the
|
235
|
+
* `MessagePort`’s queue.
|
236
|
+
*/
|
237
|
+
function receiveMessageOnPort(port: MessagePort): { message: any } | undefined;
|
238
|
+
}
|
239
|
+
declare module 'node:worker_threads' {
|
240
|
+
export * from 'worker_threads';
|
241
|
+
}
|
@@ -0,0 +1,364 @@
|
|
1
|
+
declare module 'zlib' {
|
2
|
+
import * as stream from 'stream';
|
3
|
+
|
4
|
+
interface ZlibOptions {
|
5
|
+
/**
|
6
|
+
* @default constants.Z_NO_FLUSH
|
7
|
+
*/
|
8
|
+
flush?: number | undefined;
|
9
|
+
/**
|
10
|
+
* @default constants.Z_FINISH
|
11
|
+
*/
|
12
|
+
finishFlush?: number | undefined;
|
13
|
+
/**
|
14
|
+
* @default 16*1024
|
15
|
+
*/
|
16
|
+
chunkSize?: number | undefined;
|
17
|
+
windowBits?: number | undefined;
|
18
|
+
level?: number | undefined; // compression only
|
19
|
+
memLevel?: number | undefined; // compression only
|
20
|
+
strategy?: number | undefined; // compression only
|
21
|
+
dictionary?: NodeJS.ArrayBufferView | ArrayBuffer | undefined; // deflate/inflate only, empty dictionary by default
|
22
|
+
info?: boolean | undefined;
|
23
|
+
maxOutputLength?: number | undefined;
|
24
|
+
}
|
25
|
+
|
26
|
+
interface BrotliOptions {
|
27
|
+
/**
|
28
|
+
* @default constants.BROTLI_OPERATION_PROCESS
|
29
|
+
*/
|
30
|
+
flush?: number | undefined;
|
31
|
+
/**
|
32
|
+
* @default constants.BROTLI_OPERATION_FINISH
|
33
|
+
*/
|
34
|
+
finishFlush?: number | undefined;
|
35
|
+
/**
|
36
|
+
* @default 16*1024
|
37
|
+
*/
|
38
|
+
chunkSize?: number | undefined;
|
39
|
+
params?: {
|
40
|
+
/**
|
41
|
+
* Each key is a `constants.BROTLI_*` constant.
|
42
|
+
*/
|
43
|
+
[key: number]: boolean | number;
|
44
|
+
} | undefined;
|
45
|
+
maxOutputLength?: number | undefined;
|
46
|
+
}
|
47
|
+
|
48
|
+
interface Zlib {
|
49
|
+
/** @deprecated Use bytesWritten instead. */
|
50
|
+
readonly bytesRead: number;
|
51
|
+
readonly bytesWritten: number;
|
52
|
+
shell?: boolean | string | undefined;
|
53
|
+
close(callback?: () => void): void;
|
54
|
+
flush(kind?: number, callback?: () => void): void;
|
55
|
+
flush(callback?: () => void): void;
|
56
|
+
}
|
57
|
+
|
58
|
+
interface ZlibParams {
|
59
|
+
params(level: number, strategy: number, callback: () => void): void;
|
60
|
+
}
|
61
|
+
|
62
|
+
interface ZlibReset {
|
63
|
+
reset(): void;
|
64
|
+
}
|
65
|
+
|
66
|
+
interface BrotliCompress extends stream.Transform, Zlib { }
|
67
|
+
interface BrotliDecompress extends stream.Transform, Zlib { }
|
68
|
+
interface Gzip extends stream.Transform, Zlib { }
|
69
|
+
interface Gunzip extends stream.Transform, Zlib { }
|
70
|
+
interface Deflate extends stream.Transform, Zlib, ZlibReset, ZlibParams { }
|
71
|
+
interface Inflate extends stream.Transform, Zlib, ZlibReset { }
|
72
|
+
interface DeflateRaw extends stream.Transform, Zlib, ZlibReset, ZlibParams { }
|
73
|
+
interface InflateRaw extends stream.Transform, Zlib, ZlibReset { }
|
74
|
+
interface Unzip extends stream.Transform, Zlib { }
|
75
|
+
|
76
|
+
function createBrotliCompress(options?: BrotliOptions): BrotliCompress;
|
77
|
+
function createBrotliDecompress(options?: BrotliOptions): BrotliDecompress;
|
78
|
+
function createGzip(options?: ZlibOptions): Gzip;
|
79
|
+
function createGunzip(options?: ZlibOptions): Gunzip;
|
80
|
+
function createDeflate(options?: ZlibOptions): Deflate;
|
81
|
+
function createInflate(options?: ZlibOptions): Inflate;
|
82
|
+
function createDeflateRaw(options?: ZlibOptions): DeflateRaw;
|
83
|
+
function createInflateRaw(options?: ZlibOptions): InflateRaw;
|
84
|
+
function createUnzip(options?: ZlibOptions): Unzip;
|
85
|
+
|
86
|
+
type InputType = string | ArrayBuffer | NodeJS.ArrayBufferView;
|
87
|
+
|
88
|
+
type CompressCallback = (error: Error | null, result: Buffer) => void;
|
89
|
+
|
90
|
+
function brotliCompress(buf: InputType, options: BrotliOptions, callback: CompressCallback): void;
|
91
|
+
function brotliCompress(buf: InputType, callback: CompressCallback): void;
|
92
|
+
namespace brotliCompress {
|
93
|
+
function __promisify__(buffer: InputType, options?: BrotliOptions): Promise<Buffer>;
|
94
|
+
}
|
95
|
+
|
96
|
+
function brotliCompressSync(buf: InputType, options?: BrotliOptions): Buffer;
|
97
|
+
|
98
|
+
function brotliDecompress(buf: InputType, options: BrotliOptions, callback: CompressCallback): void;
|
99
|
+
function brotliDecompress(buf: InputType, callback: CompressCallback): void;
|
100
|
+
namespace brotliDecompress {
|
101
|
+
function __promisify__(buffer: InputType, options?: BrotliOptions): Promise<Buffer>;
|
102
|
+
}
|
103
|
+
|
104
|
+
function brotliDecompressSync(buf: InputType, options?: BrotliOptions): Buffer;
|
105
|
+
|
106
|
+
function deflate(buf: InputType, callback: CompressCallback): void;
|
107
|
+
function deflate(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
|
108
|
+
namespace deflate {
|
109
|
+
function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<Buffer>;
|
110
|
+
}
|
111
|
+
|
112
|
+
function deflateSync(buf: InputType, options?: ZlibOptions): Buffer;
|
113
|
+
|
114
|
+
function deflateRaw(buf: InputType, callback: CompressCallback): void;
|
115
|
+
function deflateRaw(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
|
116
|
+
namespace deflateRaw {
|
117
|
+
function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<Buffer>;
|
118
|
+
}
|
119
|
+
|
120
|
+
function deflateRawSync(buf: InputType, options?: ZlibOptions): Buffer;
|
121
|
+
|
122
|
+
function gzip(buf: InputType, callback: CompressCallback): void;
|
123
|
+
function gzip(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
|
124
|
+
namespace gzip {
|
125
|
+
function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<Buffer>;
|
126
|
+
}
|
127
|
+
|
128
|
+
function gzipSync(buf: InputType, options?: ZlibOptions): Buffer;
|
129
|
+
|
130
|
+
function gunzip(buf: InputType, callback: CompressCallback): void;
|
131
|
+
function gunzip(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
|
132
|
+
namespace gunzip {
|
133
|
+
function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<Buffer>;
|
134
|
+
}
|
135
|
+
|
136
|
+
function gunzipSync(buf: InputType, options?: ZlibOptions): Buffer;
|
137
|
+
|
138
|
+
function inflate(buf: InputType, callback: CompressCallback): void;
|
139
|
+
function inflate(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
|
140
|
+
namespace inflate {
|
141
|
+
function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<Buffer>;
|
142
|
+
}
|
143
|
+
|
144
|
+
function inflateSync(buf: InputType, options?: ZlibOptions): Buffer;
|
145
|
+
|
146
|
+
function inflateRaw(buf: InputType, callback: CompressCallback): void;
|
147
|
+
function inflateRaw(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
|
148
|
+
namespace inflateRaw {
|
149
|
+
function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<Buffer>;
|
150
|
+
}
|
151
|
+
|
152
|
+
function inflateRawSync(buf: InputType, options?: ZlibOptions): Buffer;
|
153
|
+
|
154
|
+
function unzip(buf: InputType, callback: CompressCallback): void;
|
155
|
+
function unzip(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
|
156
|
+
namespace unzip {
|
157
|
+
function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<Buffer>;
|
158
|
+
}
|
159
|
+
|
160
|
+
function unzipSync(buf: InputType, options?: ZlibOptions): Buffer;
|
161
|
+
|
162
|
+
namespace constants {
|
163
|
+
const BROTLI_DECODE: number;
|
164
|
+
const BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES: number;
|
165
|
+
const BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP: number;
|
166
|
+
const BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES: number;
|
167
|
+
const BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1: number;
|
168
|
+
const BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2: number;
|
169
|
+
const BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS: number;
|
170
|
+
const BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET: number;
|
171
|
+
const BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1: number;
|
172
|
+
const BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2: number;
|
173
|
+
const BROTLI_DECODER_ERROR_FORMAT_CL_SPACE: number;
|
174
|
+
const BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT: number;
|
175
|
+
const BROTLI_DECODER_ERROR_FORMAT_DICTIONARY: number;
|
176
|
+
const BROTLI_DECODER_ERROR_FORMAT_DISTANCE: number;
|
177
|
+
const BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE: number;
|
178
|
+
const BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE: number;
|
179
|
+
const BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE: number;
|
180
|
+
const BROTLI_DECODER_ERROR_FORMAT_PADDING_1: number;
|
181
|
+
const BROTLI_DECODER_ERROR_FORMAT_PADDING_2: number;
|
182
|
+
const BROTLI_DECODER_ERROR_FORMAT_RESERVED: number;
|
183
|
+
const BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET: number;
|
184
|
+
const BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME: number;
|
185
|
+
const BROTLI_DECODER_ERROR_FORMAT_TRANSFORM: number;
|
186
|
+
const BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS: number;
|
187
|
+
const BROTLI_DECODER_ERROR_INVALID_ARGUMENTS: number;
|
188
|
+
const BROTLI_DECODER_ERROR_UNREACHABLE: number;
|
189
|
+
const BROTLI_DECODER_NEEDS_MORE_INPUT: number;
|
190
|
+
const BROTLI_DECODER_NEEDS_MORE_OUTPUT: number;
|
191
|
+
const BROTLI_DECODER_NO_ERROR: number;
|
192
|
+
const BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION: number;
|
193
|
+
const BROTLI_DECODER_PARAM_LARGE_WINDOW: number;
|
194
|
+
const BROTLI_DECODER_RESULT_ERROR: number;
|
195
|
+
const BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT: number;
|
196
|
+
const BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT: number;
|
197
|
+
const BROTLI_DECODER_RESULT_SUCCESS: number;
|
198
|
+
const BROTLI_DECODER_SUCCESS: number;
|
199
|
+
|
200
|
+
const BROTLI_DEFAULT_MODE: number;
|
201
|
+
const BROTLI_DEFAULT_QUALITY: number;
|
202
|
+
const BROTLI_DEFAULT_WINDOW: number;
|
203
|
+
const BROTLI_ENCODE: number;
|
204
|
+
const BROTLI_LARGE_MAX_WINDOW_BITS: number;
|
205
|
+
const BROTLI_MAX_INPUT_BLOCK_BITS: number;
|
206
|
+
const BROTLI_MAX_QUALITY: number;
|
207
|
+
const BROTLI_MAX_WINDOW_BITS: number;
|
208
|
+
const BROTLI_MIN_INPUT_BLOCK_BITS: number;
|
209
|
+
const BROTLI_MIN_QUALITY: number;
|
210
|
+
const BROTLI_MIN_WINDOW_BITS: number;
|
211
|
+
|
212
|
+
const BROTLI_MODE_FONT: number;
|
213
|
+
const BROTLI_MODE_GENERIC: number;
|
214
|
+
const BROTLI_MODE_TEXT: number;
|
215
|
+
|
216
|
+
const BROTLI_OPERATION_EMIT_METADATA: number;
|
217
|
+
const BROTLI_OPERATION_FINISH: number;
|
218
|
+
const BROTLI_OPERATION_FLUSH: number;
|
219
|
+
const BROTLI_OPERATION_PROCESS: number;
|
220
|
+
|
221
|
+
const BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING: number;
|
222
|
+
const BROTLI_PARAM_LARGE_WINDOW: number;
|
223
|
+
const BROTLI_PARAM_LGBLOCK: number;
|
224
|
+
const BROTLI_PARAM_LGWIN: number;
|
225
|
+
const BROTLI_PARAM_MODE: number;
|
226
|
+
const BROTLI_PARAM_NDIRECT: number;
|
227
|
+
const BROTLI_PARAM_NPOSTFIX: number;
|
228
|
+
const BROTLI_PARAM_QUALITY: number;
|
229
|
+
const BROTLI_PARAM_SIZE_HINT: number;
|
230
|
+
|
231
|
+
const DEFLATE: number;
|
232
|
+
const DEFLATERAW: number;
|
233
|
+
const GUNZIP: number;
|
234
|
+
const GZIP: number;
|
235
|
+
const INFLATE: number;
|
236
|
+
const INFLATERAW: number;
|
237
|
+
const UNZIP: number;
|
238
|
+
|
239
|
+
// Allowed flush values.
|
240
|
+
const Z_NO_FLUSH: number;
|
241
|
+
const Z_PARTIAL_FLUSH: number;
|
242
|
+
const Z_SYNC_FLUSH: number;
|
243
|
+
const Z_FULL_FLUSH: number;
|
244
|
+
const Z_FINISH: number;
|
245
|
+
const Z_BLOCK: number;
|
246
|
+
const Z_TREES: number;
|
247
|
+
|
248
|
+
// Return codes for the compression/decompression functions.
|
249
|
+
// Negative values are errors, positive values are used for special but normal events.
|
250
|
+
const Z_OK: number;
|
251
|
+
const Z_STREAM_END: number;
|
252
|
+
const Z_NEED_DICT: number;
|
253
|
+
const Z_ERRNO: number;
|
254
|
+
const Z_STREAM_ERROR: number;
|
255
|
+
const Z_DATA_ERROR: number;
|
256
|
+
const Z_MEM_ERROR: number;
|
257
|
+
const Z_BUF_ERROR: number;
|
258
|
+
const Z_VERSION_ERROR: number;
|
259
|
+
|
260
|
+
// Compression levels.
|
261
|
+
const Z_NO_COMPRESSION: number;
|
262
|
+
const Z_BEST_SPEED: number;
|
263
|
+
const Z_BEST_COMPRESSION: number;
|
264
|
+
const Z_DEFAULT_COMPRESSION: number;
|
265
|
+
|
266
|
+
// Compression strategy.
|
267
|
+
const Z_FILTERED: number;
|
268
|
+
const Z_HUFFMAN_ONLY: number;
|
269
|
+
const Z_RLE: number;
|
270
|
+
const Z_FIXED: number;
|
271
|
+
const Z_DEFAULT_STRATEGY: number;
|
272
|
+
|
273
|
+
const Z_DEFAULT_WINDOWBITS: number;
|
274
|
+
const Z_MIN_WINDOWBITS: number;
|
275
|
+
const Z_MAX_WINDOWBITS: number;
|
276
|
+
|
277
|
+
const Z_MIN_CHUNK: number;
|
278
|
+
const Z_MAX_CHUNK: number;
|
279
|
+
const Z_DEFAULT_CHUNK: number;
|
280
|
+
|
281
|
+
const Z_MIN_MEMLEVEL: number;
|
282
|
+
const Z_MAX_MEMLEVEL: number;
|
283
|
+
const Z_DEFAULT_MEMLEVEL: number;
|
284
|
+
|
285
|
+
const Z_MIN_LEVEL: number;
|
286
|
+
const Z_MAX_LEVEL: number;
|
287
|
+
const Z_DEFAULT_LEVEL: number;
|
288
|
+
|
289
|
+
const ZLIB_VERNUM: number;
|
290
|
+
}
|
291
|
+
|
292
|
+
// Allowed flush values.
|
293
|
+
/** @deprecated Use `constants.Z_NO_FLUSH` */
|
294
|
+
const Z_NO_FLUSH: number;
|
295
|
+
/** @deprecated Use `constants.Z_PARTIAL_FLUSH` */
|
296
|
+
const Z_PARTIAL_FLUSH: number;
|
297
|
+
/** @deprecated Use `constants.Z_SYNC_FLUSH` */
|
298
|
+
const Z_SYNC_FLUSH: number;
|
299
|
+
/** @deprecated Use `constants.Z_FULL_FLUSH` */
|
300
|
+
const Z_FULL_FLUSH: number;
|
301
|
+
/** @deprecated Use `constants.Z_FINISH` */
|
302
|
+
const Z_FINISH: number;
|
303
|
+
/** @deprecated Use `constants.Z_BLOCK` */
|
304
|
+
const Z_BLOCK: number;
|
305
|
+
/** @deprecated Use `constants.Z_TREES` */
|
306
|
+
const Z_TREES: number;
|
307
|
+
|
308
|
+
// Return codes for the compression/decompression functions.
|
309
|
+
// Negative values are errors, positive values are used for special but normal events.
|
310
|
+
/** @deprecated Use `constants.Z_OK` */
|
311
|
+
const Z_OK: number;
|
312
|
+
/** @deprecated Use `constants.Z_STREAM_END` */
|
313
|
+
const Z_STREAM_END: number;
|
314
|
+
/** @deprecated Use `constants.Z_NEED_DICT` */
|
315
|
+
const Z_NEED_DICT: number;
|
316
|
+
/** @deprecated Use `constants.Z_ERRNO` */
|
317
|
+
const Z_ERRNO: number;
|
318
|
+
/** @deprecated Use `constants.Z_STREAM_ERROR` */
|
319
|
+
const Z_STREAM_ERROR: number;
|
320
|
+
/** @deprecated Use `constants.Z_DATA_ERROR` */
|
321
|
+
const Z_DATA_ERROR: number;
|
322
|
+
/** @deprecated Use `constants.Z_MEM_ERROR` */
|
323
|
+
const Z_MEM_ERROR: number;
|
324
|
+
/** @deprecated Use `constants.Z_BUF_ERROR` */
|
325
|
+
const Z_BUF_ERROR: number;
|
326
|
+
/** @deprecated Use `constants.Z_VERSION_ERROR` */
|
327
|
+
const Z_VERSION_ERROR: number;
|
328
|
+
|
329
|
+
// Compression levels.
|
330
|
+
/** @deprecated Use `constants.Z_NO_COMPRESSION` */
|
331
|
+
const Z_NO_COMPRESSION: number;
|
332
|
+
/** @deprecated Use `constants.Z_BEST_SPEED` */
|
333
|
+
const Z_BEST_SPEED: number;
|
334
|
+
/** @deprecated Use `constants.Z_BEST_COMPRESSION` */
|
335
|
+
const Z_BEST_COMPRESSION: number;
|
336
|
+
/** @deprecated Use `constants.Z_DEFAULT_COMPRESSION` */
|
337
|
+
const Z_DEFAULT_COMPRESSION: number;
|
338
|
+
|
339
|
+
// Compression strategy.
|
340
|
+
/** @deprecated Use `constants.Z_FILTERED` */
|
341
|
+
const Z_FILTERED: number;
|
342
|
+
/** @deprecated Use `constants.Z_HUFFMAN_ONLY` */
|
343
|
+
const Z_HUFFMAN_ONLY: number;
|
344
|
+
/** @deprecated Use `constants.Z_RLE` */
|
345
|
+
const Z_RLE: number;
|
346
|
+
/** @deprecated Use `constants.Z_FIXED` */
|
347
|
+
const Z_FIXED: number;
|
348
|
+
/** @deprecated Use `constants.Z_DEFAULT_STRATEGY` */
|
349
|
+
const Z_DEFAULT_STRATEGY: number;
|
350
|
+
|
351
|
+
/** @deprecated */
|
352
|
+
const Z_BINARY: number;
|
353
|
+
/** @deprecated */
|
354
|
+
const Z_TEXT: number;
|
355
|
+
/** @deprecated */
|
356
|
+
const Z_ASCII: number;
|
357
|
+
/** @deprecated */
|
358
|
+
const Z_UNKNOWN: number;
|
359
|
+
/** @deprecated */
|
360
|
+
const Z_DEFLATED: number;
|
361
|
+
}
|
362
|
+
declare module 'node:zlib' {
|
363
|
+
export * from 'zlib';
|
364
|
+
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@integration-app/react",
|
3
|
-
"version": "0.1.
|
3
|
+
"version": "0.1.3",
|
4
4
|
"description": "React SDK for building native integrations.",
|
5
5
|
"author": "integration.app",
|
6
6
|
"repository": {
|
@@ -11,7 +11,7 @@
|
|
11
11
|
"main": "index.js",
|
12
12
|
"types": "index.d.ts",
|
13
13
|
"dependencies": {
|
14
|
-
"@integration-app/sdk": "
|
14
|
+
"@integration-app/sdk": "^0.16.6"
|
15
15
|
},
|
16
16
|
"peerDependencies": {
|
17
17
|
"react": "^17.0.1",
|
@@ -19,8 +19,5 @@
|
|
19
19
|
},
|
20
20
|
"files": [
|
21
21
|
"**/*"
|
22
|
-
],
|
23
|
-
"bundleDependencies": [
|
24
|
-
"@integration-app/sdk"
|
25
22
|
]
|
26
23
|
}
|
Binary file
|
File without changes
|
@@ -1,23 +0,0 @@
|
|
1
|
-
import { HttpRequestSpec } from './http-requests';
|
2
|
-
export interface AppDataCollection {
|
3
|
-
id: string;
|
4
|
-
key: string;
|
5
|
-
name: string;
|
6
|
-
parametersSchema?: any;
|
7
|
-
fieldsSchema?: any;
|
8
|
-
specRequest?: HttpRequestSpec;
|
9
|
-
findRequest?: HttpRequestSpec;
|
10
|
-
findOneRequest?: HttpRequestSpec;
|
11
|
-
createRequest?: HttpRequestSpec;
|
12
|
-
updateRequest?: HttpRequestSpec;
|
13
|
-
deleteRequest?: HttpRequestSpec;
|
14
|
-
subscribeRequest?: HttpRequestSpec;
|
15
|
-
updateSubscriptionRequest?: HttpRequestSpec;
|
16
|
-
unsubscribeRequest?: HttpRequestSpec;
|
17
|
-
}
|
18
|
-
export interface AppDataCollectionInstance {
|
19
|
-
id: string;
|
20
|
-
userId: string;
|
21
|
-
appDataCollectionId: string;
|
22
|
-
parameters?: any;
|
23
|
-
}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"app-data-collections.js","sourceRoot":"","sources":["../src/app-data-collections/app-data-collections.ts"],"names":[],"mappings":""}
|