@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,64 @@
|
|
1
|
+
declare module 'trace_events' {
|
2
|
+
/**
|
3
|
+
* The `Tracing` object is used to enable or disable tracing for sets of
|
4
|
+
* categories. Instances are created using the
|
5
|
+
* `trace_events.createTracing()` method.
|
6
|
+
*
|
7
|
+
* When created, the `Tracing` object is disabled. Calling the
|
8
|
+
* `tracing.enable()` method adds the categories to the set of enabled trace
|
9
|
+
* event categories. Calling `tracing.disable()` will remove the categories
|
10
|
+
* from the set of enabled trace event categories.
|
11
|
+
*/
|
12
|
+
interface Tracing {
|
13
|
+
/**
|
14
|
+
* A comma-separated list of the trace event categories covered by this
|
15
|
+
* `Tracing` object.
|
16
|
+
*/
|
17
|
+
readonly categories: string;
|
18
|
+
|
19
|
+
/**
|
20
|
+
* Disables this `Tracing` object.
|
21
|
+
*
|
22
|
+
* Only trace event categories _not_ covered by other enabled `Tracing`
|
23
|
+
* objects and _not_ specified by the `--trace-event-categories` flag
|
24
|
+
* will be disabled.
|
25
|
+
*/
|
26
|
+
disable(): void;
|
27
|
+
|
28
|
+
/**
|
29
|
+
* Enables this `Tracing` object for the set of categories covered by
|
30
|
+
* the `Tracing` object.
|
31
|
+
*/
|
32
|
+
enable(): void;
|
33
|
+
|
34
|
+
/**
|
35
|
+
* `true` only if the `Tracing` object has been enabled.
|
36
|
+
*/
|
37
|
+
readonly enabled: boolean;
|
38
|
+
}
|
39
|
+
|
40
|
+
interface CreateTracingOptions {
|
41
|
+
/**
|
42
|
+
* An array of trace category names. Values included in the array are
|
43
|
+
* coerced to a string when possible. An error will be thrown if the
|
44
|
+
* value cannot be coerced.
|
45
|
+
*/
|
46
|
+
categories: string[];
|
47
|
+
}
|
48
|
+
|
49
|
+
/**
|
50
|
+
* Creates and returns a Tracing object for the given set of categories.
|
51
|
+
*/
|
52
|
+
function createTracing(options: CreateTracingOptions): Tracing;
|
53
|
+
|
54
|
+
/**
|
55
|
+
* Returns a comma-separated list of all currently-enabled trace event
|
56
|
+
* categories. The current set of enabled trace event categories is
|
57
|
+
* determined by the union of all currently-enabled `Tracing` objects and
|
58
|
+
* any categories enabled using the `--trace-event-categories` flag.
|
59
|
+
*/
|
60
|
+
function getEnabledCategories(): string | undefined;
|
61
|
+
}
|
62
|
+
declare module 'node:trace_events' {
|
63
|
+
export * from 'trace_events';
|
64
|
+
}
|
@@ -0,0 +1,128 @@
|
|
1
|
+
declare module 'assert' {
|
2
|
+
/** An alias of `assert.ok()`. */
|
3
|
+
function assert(value: any, message?: string | Error): asserts value;
|
4
|
+
namespace assert {
|
5
|
+
class AssertionError extends Error {
|
6
|
+
actual: any;
|
7
|
+
expected: any;
|
8
|
+
operator: string;
|
9
|
+
generatedMessage: boolean;
|
10
|
+
code: 'ERR_ASSERTION';
|
11
|
+
|
12
|
+
constructor(options?: {
|
13
|
+
/** If provided, the error message is set to this value. */
|
14
|
+
message?: string | undefined;
|
15
|
+
/** The `actual` property on the error instance. */
|
16
|
+
actual?: any;
|
17
|
+
/** The `expected` property on the error instance. */
|
18
|
+
expected?: any;
|
19
|
+
/** The `operator` property on the error instance. */
|
20
|
+
operator?: string | undefined;
|
21
|
+
/** If provided, the generated stack trace omits frames before this function. */
|
22
|
+
// tslint:disable-next-line:ban-types
|
23
|
+
stackStartFn?: Function | undefined;
|
24
|
+
});
|
25
|
+
}
|
26
|
+
|
27
|
+
class CallTracker {
|
28
|
+
calls(exact?: number): () => void;
|
29
|
+
calls<Func extends (...args: any[]) => any>(fn?: Func, exact?: number): Func;
|
30
|
+
report(): CallTrackerReportInformation[];
|
31
|
+
verify(): void;
|
32
|
+
}
|
33
|
+
interface CallTrackerReportInformation {
|
34
|
+
message: string;
|
35
|
+
/** The actual number of times the function was called. */
|
36
|
+
actual: number;
|
37
|
+
/** The number of times the function was expected to be called. */
|
38
|
+
expected: number;
|
39
|
+
/** The name of the function that is wrapped. */
|
40
|
+
operator: string;
|
41
|
+
/** A stack trace of the function. */
|
42
|
+
stack: object;
|
43
|
+
}
|
44
|
+
|
45
|
+
type AssertPredicate = RegExp | (new () => object) | ((thrown: any) => boolean) | object | Error;
|
46
|
+
|
47
|
+
function fail(message?: string | Error): never;
|
48
|
+
/** @deprecated since v10.0.0 - use fail([message]) or other assert functions instead. */
|
49
|
+
function fail(
|
50
|
+
actual: any,
|
51
|
+
expected: any,
|
52
|
+
message?: string | Error,
|
53
|
+
operator?: string,
|
54
|
+
// tslint:disable-next-line:ban-types
|
55
|
+
stackStartFn?: Function,
|
56
|
+
): never;
|
57
|
+
function ok(value: any, message?: string | Error): asserts value;
|
58
|
+
/** @deprecated since v9.9.0 - use strictEqual() instead. */
|
59
|
+
function equal(actual: any, expected: any, message?: string | Error): void;
|
60
|
+
/** @deprecated since v9.9.0 - use notStrictEqual() instead. */
|
61
|
+
function notEqual(actual: any, expected: any, message?: string | Error): void;
|
62
|
+
/** @deprecated since v9.9.0 - use deepStrictEqual() instead. */
|
63
|
+
function deepEqual(actual: any, expected: any, message?: string | Error): void;
|
64
|
+
/** @deprecated since v9.9.0 - use notDeepStrictEqual() instead. */
|
65
|
+
function notDeepEqual(actual: any, expected: any, message?: string | Error): void;
|
66
|
+
function strictEqual<T>(actual: any, expected: T, message?: string | Error): asserts actual is T;
|
67
|
+
function notStrictEqual(actual: any, expected: any, message?: string | Error): void;
|
68
|
+
function deepStrictEqual<T>(actual: any, expected: T, message?: string | Error): asserts actual is T;
|
69
|
+
function notDeepStrictEqual(actual: any, expected: any, message?: string | Error): void;
|
70
|
+
|
71
|
+
function throws(block: () => any, message?: string | Error): void;
|
72
|
+
function throws(block: () => any, error: AssertPredicate, message?: string | Error): void;
|
73
|
+
function doesNotThrow(block: () => any, message?: string | Error): void;
|
74
|
+
function doesNotThrow(block: () => any, error: AssertPredicate, message?: string | Error): void;
|
75
|
+
|
76
|
+
function ifError(value: any): asserts value is null | undefined;
|
77
|
+
|
78
|
+
function rejects(block: (() => Promise<any>) | Promise<any>, message?: string | Error): Promise<void>;
|
79
|
+
function rejects(
|
80
|
+
block: (() => Promise<any>) | Promise<any>,
|
81
|
+
error: AssertPredicate,
|
82
|
+
message?: string | Error,
|
83
|
+
): Promise<void>;
|
84
|
+
function doesNotReject(block: (() => Promise<any>) | Promise<any>, message?: string | Error): Promise<void>;
|
85
|
+
function doesNotReject(
|
86
|
+
block: (() => Promise<any>) | Promise<any>,
|
87
|
+
error: AssertPredicate,
|
88
|
+
message?: string | Error,
|
89
|
+
): Promise<void>;
|
90
|
+
|
91
|
+
function match(value: string, regExp: RegExp, message?: string | Error): void;
|
92
|
+
function doesNotMatch(value: string, regExp: RegExp, message?: string | Error): void;
|
93
|
+
|
94
|
+
const strict: Omit<
|
95
|
+
typeof assert,
|
96
|
+
| 'equal'
|
97
|
+
| 'notEqual'
|
98
|
+
| 'deepEqual'
|
99
|
+
| 'notDeepEqual'
|
100
|
+
| 'ok'
|
101
|
+
| 'strictEqual'
|
102
|
+
| 'deepStrictEqual'
|
103
|
+
| 'ifError'
|
104
|
+
| 'strict'
|
105
|
+
> & {
|
106
|
+
(value: any, message?: string | Error): asserts value;
|
107
|
+
equal: typeof strictEqual;
|
108
|
+
notEqual: typeof notStrictEqual;
|
109
|
+
deepEqual: typeof deepStrictEqual;
|
110
|
+
notDeepEqual: typeof notDeepStrictEqual;
|
111
|
+
|
112
|
+
// Mapped types and assertion functions are incompatible?
|
113
|
+
// TS2775: Assertions require every name in the call target
|
114
|
+
// to be declared with an explicit type annotation.
|
115
|
+
ok: typeof ok;
|
116
|
+
strictEqual: typeof strictEqual;
|
117
|
+
deepStrictEqual: typeof deepStrictEqual;
|
118
|
+
ifError: typeof ifError;
|
119
|
+
strict: typeof strict;
|
120
|
+
};
|
121
|
+
}
|
122
|
+
|
123
|
+
export = assert;
|
124
|
+
}
|
125
|
+
declare module 'node:assert' {
|
126
|
+
import assert = require('assert');
|
127
|
+
export = assert;
|
128
|
+
}
|
@@ -0,0 +1,229 @@
|
|
1
|
+
/**
|
2
|
+
* Async Hooks module: https://nodejs.org/api/async_hooks.html
|
3
|
+
*/
|
4
|
+
declare module 'async_hooks' {
|
5
|
+
/**
|
6
|
+
* Returns the asyncId of the current execution context.
|
7
|
+
*/
|
8
|
+
function executionAsyncId(): number;
|
9
|
+
|
10
|
+
/**
|
11
|
+
* The resource representing the current execution.
|
12
|
+
* Useful to store data within the resource.
|
13
|
+
*
|
14
|
+
* Resource objects returned by `executionAsyncResource()` are most often internal
|
15
|
+
* Node.js handle objects with undocumented APIs. Using any functions or properties
|
16
|
+
* on the object is likely to crash your application and should be avoided.
|
17
|
+
*
|
18
|
+
* Using `executionAsyncResource()` in the top-level execution context will
|
19
|
+
* return an empty object as there is no handle or request object to use,
|
20
|
+
* but having an object representing the top-level can be helpful.
|
21
|
+
*/
|
22
|
+
function executionAsyncResource(): object;
|
23
|
+
|
24
|
+
/**
|
25
|
+
* Returns the ID of the resource responsible for calling the callback that is currently being executed.
|
26
|
+
*/
|
27
|
+
function triggerAsyncId(): number;
|
28
|
+
|
29
|
+
interface HookCallbacks {
|
30
|
+
/**
|
31
|
+
* Called when a class is constructed that has the possibility to emit an asynchronous event.
|
32
|
+
* @param asyncId a unique ID for the async resource
|
33
|
+
* @param type the type of the async resource
|
34
|
+
* @param triggerAsyncId the unique ID of the async resource in whose execution context this async resource was created
|
35
|
+
* @param resource reference to the resource representing the async operation, needs to be released during destroy
|
36
|
+
*/
|
37
|
+
init?(asyncId: number, type: string, triggerAsyncId: number, resource: object): void;
|
38
|
+
|
39
|
+
/**
|
40
|
+
* When an asynchronous operation is initiated or completes a callback is called to notify the user.
|
41
|
+
* The before callback is called just before said callback is executed.
|
42
|
+
* @param asyncId the unique identifier assigned to the resource about to execute the callback.
|
43
|
+
*/
|
44
|
+
before?(asyncId: number): void;
|
45
|
+
|
46
|
+
/**
|
47
|
+
* Called immediately after the callback specified in before is completed.
|
48
|
+
* @param asyncId the unique identifier assigned to the resource which has executed the callback.
|
49
|
+
*/
|
50
|
+
after?(asyncId: number): void;
|
51
|
+
|
52
|
+
/**
|
53
|
+
* Called when a promise has resolve() called. This may not be in the same execution id
|
54
|
+
* as the promise itself.
|
55
|
+
* @param asyncId the unique id for the promise that was resolve()d.
|
56
|
+
*/
|
57
|
+
promiseResolve?(asyncId: number): void;
|
58
|
+
|
59
|
+
/**
|
60
|
+
* Called after the resource corresponding to asyncId is destroyed
|
61
|
+
* @param asyncId a unique ID for the async resource
|
62
|
+
*/
|
63
|
+
destroy?(asyncId: number): void;
|
64
|
+
}
|
65
|
+
|
66
|
+
interface AsyncHook {
|
67
|
+
/**
|
68
|
+
* Enable the callbacks for a given AsyncHook instance. If no callbacks are provided enabling is a noop.
|
69
|
+
*/
|
70
|
+
enable(): this;
|
71
|
+
|
72
|
+
/**
|
73
|
+
* Disable the callbacks for a given AsyncHook instance from the global pool of AsyncHook callbacks to be executed. Once a hook has been disabled it will not be called again until enabled.
|
74
|
+
*/
|
75
|
+
disable(): this;
|
76
|
+
}
|
77
|
+
|
78
|
+
/**
|
79
|
+
* Registers functions to be called for different lifetime events of each async operation.
|
80
|
+
* @param options the callbacks to register
|
81
|
+
* @return an AsyncHooks instance used for disabling and enabling hooks
|
82
|
+
*/
|
83
|
+
function createHook(options: HookCallbacks): AsyncHook;
|
84
|
+
|
85
|
+
interface AsyncResourceOptions {
|
86
|
+
/**
|
87
|
+
* The ID of the execution context that created this async event.
|
88
|
+
* @default executionAsyncId()
|
89
|
+
*/
|
90
|
+
triggerAsyncId?: number | undefined;
|
91
|
+
|
92
|
+
/**
|
93
|
+
* Disables automatic `emitDestroy` when the object is garbage collected.
|
94
|
+
* This usually does not need to be set (even if `emitDestroy` is called
|
95
|
+
* manually), unless the resource's `asyncId` is retrieved and the
|
96
|
+
* sensitive API's `emitDestroy` is called with it.
|
97
|
+
* @default false
|
98
|
+
*/
|
99
|
+
requireManualDestroy?: boolean | undefined;
|
100
|
+
}
|
101
|
+
|
102
|
+
/**
|
103
|
+
* The class AsyncResource was designed to be extended by the embedder's async resources.
|
104
|
+
* Using this users can easily trigger the lifetime events of their own resources.
|
105
|
+
*/
|
106
|
+
class AsyncResource {
|
107
|
+
/**
|
108
|
+
* AsyncResource() is meant to be extended. Instantiating a
|
109
|
+
* new AsyncResource() also triggers init. If triggerAsyncId is omitted then
|
110
|
+
* async_hook.executionAsyncId() is used.
|
111
|
+
* @param type The type of async event.
|
112
|
+
* @param triggerAsyncId The ID of the execution context that created
|
113
|
+
* this async event (default: `executionAsyncId()`), or an
|
114
|
+
* AsyncResourceOptions object (since v9.3.0)
|
115
|
+
*/
|
116
|
+
constructor(type: string, triggerAsyncId?: number|AsyncResourceOptions);
|
117
|
+
|
118
|
+
/**
|
119
|
+
* Binds the given function to the current execution context.
|
120
|
+
* @param fn The function to bind to the current execution context.
|
121
|
+
* @param type An optional name to associate with the underlying `AsyncResource`.
|
122
|
+
*/
|
123
|
+
static bind<Func extends (...args: any[]) => any>(fn: Func, type?: string): Func & { asyncResource: AsyncResource };
|
124
|
+
|
125
|
+
/**
|
126
|
+
* Binds the given function to execute to this `AsyncResource`'s scope.
|
127
|
+
* @param fn The function to bind to the current `AsyncResource`.
|
128
|
+
*/
|
129
|
+
bind<Func extends (...args: any[]) => any>(fn: Func): Func & { asyncResource: AsyncResource };
|
130
|
+
|
131
|
+
/**
|
132
|
+
* Call the provided function with the provided arguments in the
|
133
|
+
* execution context of the async resource. This will establish the
|
134
|
+
* context, trigger the AsyncHooks before callbacks, call the function,
|
135
|
+
* trigger the AsyncHooks after callbacks, and then restore the original
|
136
|
+
* execution context.
|
137
|
+
* @param fn The function to call in the execution context of this
|
138
|
+
* async resource.
|
139
|
+
* @param thisArg The receiver to be used for the function call.
|
140
|
+
* @param args Optional arguments to pass to the function.
|
141
|
+
*/
|
142
|
+
runInAsyncScope<This, Result>(fn: (this: This, ...args: any[]) => Result, thisArg?: This, ...args: any[]): Result;
|
143
|
+
|
144
|
+
/**
|
145
|
+
* Call AsyncHooks destroy callbacks.
|
146
|
+
*/
|
147
|
+
emitDestroy(): this;
|
148
|
+
|
149
|
+
/**
|
150
|
+
* @return the unique ID assigned to this AsyncResource instance.
|
151
|
+
*/
|
152
|
+
asyncId(): number;
|
153
|
+
|
154
|
+
/**
|
155
|
+
* @return the trigger ID for this AsyncResource instance.
|
156
|
+
*/
|
157
|
+
triggerAsyncId(): number;
|
158
|
+
}
|
159
|
+
|
160
|
+
/**
|
161
|
+
* When having multiple instances of `AsyncLocalStorage`, they are independent
|
162
|
+
* from each other. It is safe to instantiate this class multiple times.
|
163
|
+
*/
|
164
|
+
class AsyncLocalStorage<T> {
|
165
|
+
/**
|
166
|
+
* This method disables the instance of `AsyncLocalStorage`. All subsequent calls
|
167
|
+
* to `asyncLocalStorage.getStore()` will return `undefined` until
|
168
|
+
* `asyncLocalStorage.run()` is called again.
|
169
|
+
*
|
170
|
+
* When calling `asyncLocalStorage.disable()`, all current contexts linked to the
|
171
|
+
* instance will be exited.
|
172
|
+
*
|
173
|
+
* Calling `asyncLocalStorage.disable()` is required before the
|
174
|
+
* `asyncLocalStorage` can be garbage collected. This does not apply to stores
|
175
|
+
* provided by the `asyncLocalStorage`, as those objects are garbage collected
|
176
|
+
* along with the corresponding async resources.
|
177
|
+
*
|
178
|
+
* This method is to be used when the `asyncLocalStorage` is not in use anymore
|
179
|
+
* in the current process.
|
180
|
+
*/
|
181
|
+
disable(): void;
|
182
|
+
|
183
|
+
/**
|
184
|
+
* This method returns the current store. If this method is called outside of an
|
185
|
+
* asynchronous context initialized by calling `asyncLocalStorage.run`, it will
|
186
|
+
* return `undefined`.
|
187
|
+
*/
|
188
|
+
getStore(): T | undefined;
|
189
|
+
|
190
|
+
/**
|
191
|
+
* This methods runs a function synchronously within a context and return its
|
192
|
+
* return value. The store is not accessible outside of the callback function or
|
193
|
+
* the asynchronous operations created within the callback.
|
194
|
+
*
|
195
|
+
* Optionally, arguments can be passed to the function. They will be passed to the
|
196
|
+
* callback function.
|
197
|
+
*
|
198
|
+
* I the callback function throws an error, it will be thrown by `run` too. The
|
199
|
+
* stacktrace will not be impacted by this call and the context will be exited.
|
200
|
+
*/
|
201
|
+
// TODO: Apply generic vararg once available
|
202
|
+
run<R>(store: T, callback: (...args: any[]) => R, ...args: any[]): R;
|
203
|
+
|
204
|
+
/**
|
205
|
+
* This methods runs a function synchronously outside of a context and return its
|
206
|
+
* return value. The store is not accessible within the callback function or the
|
207
|
+
* asynchronous operations created within the callback.
|
208
|
+
*
|
209
|
+
* Optionally, arguments can be passed to the function. They will be passed to the
|
210
|
+
* callback function.
|
211
|
+
*
|
212
|
+
* If the callback function throws an error, it will be thrown by `exit` too. The
|
213
|
+
* stacktrace will not be impacted by this call and the context will be
|
214
|
+
* re-entered.
|
215
|
+
*/
|
216
|
+
// TODO: Apply generic vararg once available
|
217
|
+
exit<R>(callback: (...args: any[]) => R, ...args: any[]): R;
|
218
|
+
|
219
|
+
/**
|
220
|
+
* Calling `asyncLocalStorage.enterWith(store)` will transition into the context
|
221
|
+
* for the remainder of the current synchronous execution and will persist
|
222
|
+
* through any following asynchronous calls.
|
223
|
+
*/
|
224
|
+
enterWith(store: T): void;
|
225
|
+
}
|
226
|
+
}
|
227
|
+
declare module 'node:async_hooks' {
|
228
|
+
export * from 'async_hooks';
|
229
|
+
}
|
@@ -0,0 +1,89 @@
|
|
1
|
+
declare module 'buffer' {
|
2
|
+
import { BinaryLike } from 'node:crypto';
|
3
|
+
export const INSPECT_MAX_BYTES: number;
|
4
|
+
export const kMaxLength: number;
|
5
|
+
export const kStringMaxLength: number;
|
6
|
+
export const constants: {
|
7
|
+
MAX_LENGTH: number;
|
8
|
+
MAX_STRING_LENGTH: number;
|
9
|
+
};
|
10
|
+
const BuffType: typeof Buffer;
|
11
|
+
|
12
|
+
export type TranscodeEncoding = "ascii" | "utf8" | "utf16le" | "ucs2" | "latin1" | "binary";
|
13
|
+
|
14
|
+
export function transcode(source: Uint8Array, fromEnc: TranscodeEncoding, toEnc: TranscodeEncoding): Buffer;
|
15
|
+
|
16
|
+
export const SlowBuffer: {
|
17
|
+
/** @deprecated since v6.0.0, use `Buffer.allocUnsafeSlow()` */
|
18
|
+
new(size: number): Buffer;
|
19
|
+
prototype: Buffer;
|
20
|
+
};
|
21
|
+
/**
|
22
|
+
* @experimental
|
23
|
+
*/
|
24
|
+
export interface BlobOptions {
|
25
|
+
/**
|
26
|
+
* @default 'utf8'
|
27
|
+
*/
|
28
|
+
encoding?: BufferEncoding | undefined;
|
29
|
+
/**
|
30
|
+
* The Blob content-type. The intent is for `type` to convey
|
31
|
+
* the MIME media type of the data, however no validation of the type format
|
32
|
+
* is performed.
|
33
|
+
*/
|
34
|
+
type?: string | undefined;
|
35
|
+
}
|
36
|
+
/**
|
37
|
+
* A [`Blob`](https://developer.mozilla.org/en-US/docs/Web/API/Blob) encapsulates immutable, raw data that can be safely shared across
|
38
|
+
* multiple worker threads.
|
39
|
+
* @since v14.18.0
|
40
|
+
* @experimental
|
41
|
+
*/
|
42
|
+
export class Blob {
|
43
|
+
/**
|
44
|
+
* The total size of the `Blob` in bytes.
|
45
|
+
* @since v14.18.0
|
46
|
+
*/
|
47
|
+
readonly size: number;
|
48
|
+
/**
|
49
|
+
* The content-type of the `Blob`.
|
50
|
+
* @since v14.18.0
|
51
|
+
*/
|
52
|
+
readonly type: string;
|
53
|
+
/**
|
54
|
+
* Creates a new `Blob` object containing a concatenation of the given sources.
|
55
|
+
*
|
56
|
+
* {ArrayBuffer}, {TypedArray}, {DataView}, and {Buffer} sources are copied into
|
57
|
+
* the 'Blob' and can therefore be safely modified after the 'Blob' is created.
|
58
|
+
*
|
59
|
+
* String sources are also copied into the `Blob`.
|
60
|
+
*/
|
61
|
+
constructor(sources: Array<BinaryLike | Blob>, options?: BlobOptions);
|
62
|
+
/**
|
63
|
+
* Returns a promise that fulfills with an [ArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer) containing a copy of
|
64
|
+
* the `Blob` data.
|
65
|
+
* @since v14.18.0
|
66
|
+
*/
|
67
|
+
arrayBuffer(): Promise<ArrayBuffer>;
|
68
|
+
/**
|
69
|
+
* Creates and returns a new `Blob` containing a subset of this `Blob` objects
|
70
|
+
* data. The original `Blob` is not altered.
|
71
|
+
* @since v14.18.0
|
72
|
+
* @param start The starting index.
|
73
|
+
* @param end The ending index.
|
74
|
+
* @param type The content-type for the new `Blob`
|
75
|
+
*/
|
76
|
+
slice(start?: number, end?: number, type?: string): Blob;
|
77
|
+
/**
|
78
|
+
* Returns a promise that fulfills with the contents of the `Blob` decoded as a
|
79
|
+
* UTF-8 string.
|
80
|
+
* @since v14.18.0
|
81
|
+
*/
|
82
|
+
text(): Promise<string>;
|
83
|
+
}
|
84
|
+
|
85
|
+
export { BuffType as Buffer };
|
86
|
+
}
|
87
|
+
declare module 'node:buffer' {
|
88
|
+
export * from 'buffer';
|
89
|
+
}
|