@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.
Files changed (262) hide show
  1. package/node_modules/@compwright/namecase/LICENSE +26 -0
  2. package/node_modules/@compwright/namecase/README.md +49 -0
  3. package/node_modules/@compwright/namecase/bin/namecase +28 -0
  4. package/node_modules/@compwright/namecase/dist/namecase.min.js +4 -0
  5. package/node_modules/@compwright/namecase/dist/namecase.min.js.map +1 -0
  6. package/node_modules/@compwright/namecase/package.json +46 -0
  7. package/node_modules/@compwright/namecase/src/index.js +146 -0
  8. package/node_modules/@integration-app/sdk/bundle.js +404 -262
  9. package/node_modules/@integration-app/sdk/bundle.js.map +1 -1
  10. package/node_modules/@integration-app/sdk/client.d.ts +3 -3
  11. package/node_modules/@integration-app/sdk/data-builder/formulas/case.d.ts +3 -7
  12. package/node_modules/@integration-app/sdk/data-builder/formulas/case.js +16 -32
  13. package/node_modules/@integration-app/sdk/data-builder/formulas/case.js.map +1 -1
  14. package/node_modules/@integration-app/sdk/integrations/accessors.d.ts +0 -6
  15. package/node_modules/@integration-app/sdk/integrations/accessors.js +1 -87
  16. package/node_modules/@integration-app/sdk/integrations/accessors.js.map +1 -1
  17. package/node_modules/@integration-app/sdk/json-schema/index.d.ts +1 -1
  18. package/node_modules/@integration-app/sdk/src/client.ts +3 -3
  19. package/node_modules/@integration-app/sdk/src/data-builder/formulas/case.test.ts +11 -113
  20. package/node_modules/@integration-app/sdk/src/data-builder/formulas/case.ts +22 -46
  21. package/node_modules/@integration-app/sdk/src/integrations/accessors.ts +2 -122
  22. package/node_modules/@sinclair/typebox/package.json +40 -0
  23. package/node_modules/@sinclair/typebox/readme.md +740 -0
  24. package/node_modules/@sinclair/typebox/typebox.d.ts +351 -0
  25. package/node_modules/@sinclair/typebox/typebox.js +345 -0
  26. package/node_modules/@types/node/README.md +16 -0
  27. package/node_modules/@types/node/assert.d.ts +128 -0
  28. package/node_modules/@types/node/async_hooks.d.ts +229 -0
  29. package/node_modules/@types/node/buffer.d.ts +89 -0
  30. package/node_modules/@types/node/child_process.d.ts +514 -0
  31. package/node_modules/@types/node/cluster.d.ts +265 -0
  32. package/node_modules/@types/node/console.d.ts +142 -0
  33. package/node_modules/@types/node/constants.d.ts +18 -0
  34. package/node_modules/@types/node/crypto.d.ts +1283 -0
  35. package/node_modules/@types/node/dgram.d.ts +144 -0
  36. package/node_modules/@types/node/dns.d.ts +387 -0
  37. package/node_modules/@types/node/domain.d.ts +27 -0
  38. package/node_modules/@types/node/events.d.ts +82 -0
  39. package/node_modules/@types/node/fs/promises.d.ts +572 -0
  40. package/node_modules/@types/node/fs.d.ts +2281 -0
  41. package/node_modules/@types/node/globals.d.ts +747 -0
  42. package/node_modules/@types/node/globals.global.d.ts +1 -0
  43. package/node_modules/@types/node/http.d.ts +580 -0
  44. package/node_modules/@types/node/http2.d.ts +962 -0
  45. package/node_modules/@types/node/https.d.ts +271 -0
  46. package/node_modules/@types/node/index.d.ts +98 -0
  47. package/node_modules/@types/node/inspector.d.ts +3051 -0
  48. package/node_modules/@types/node/module.d.ts +56 -0
  49. package/node_modules/@types/node/net.d.ts +308 -0
  50. package/node_modules/@types/node/os.d.ts +243 -0
  51. package/node_modules/@types/node/package.json +232 -0
  52. package/node_modules/@types/node/path.d.ts +168 -0
  53. package/node_modules/@types/node/perf_hooks.d.ts +274 -0
  54. package/node_modules/@types/node/process.d.ts +413 -0
  55. package/node_modules/@types/node/punycode.d.ts +78 -0
  56. package/node_modules/@types/node/querystring.d.ts +31 -0
  57. package/node_modules/@types/node/readline.d.ts +174 -0
  58. package/node_modules/@types/node/repl.d.ts +398 -0
  59. package/node_modules/@types/node/stream.d.ts +359 -0
  60. package/node_modules/@types/node/string_decoder.d.ts +10 -0
  61. package/node_modules/@types/node/timers.d.ts +19 -0
  62. package/node_modules/@types/node/tls.d.ts +784 -0
  63. package/node_modules/@types/node/trace_events.d.ts +64 -0
  64. package/node_modules/@types/node/ts4.8/assert.d.ts +128 -0
  65. package/node_modules/@types/node/ts4.8/async_hooks.d.ts +229 -0
  66. package/node_modules/@types/node/ts4.8/buffer.d.ts +89 -0
  67. package/node_modules/@types/node/ts4.8/child_process.d.ts +514 -0
  68. package/node_modules/@types/node/ts4.8/cluster.d.ts +265 -0
  69. package/node_modules/@types/node/ts4.8/console.d.ts +142 -0
  70. package/node_modules/@types/node/ts4.8/constants.d.ts +18 -0
  71. package/node_modules/@types/node/ts4.8/crypto.d.ts +1283 -0
  72. package/node_modules/@types/node/ts4.8/dgram.d.ts +144 -0
  73. package/node_modules/@types/node/ts4.8/dns.d.ts +387 -0
  74. package/node_modules/@types/node/ts4.8/domain.d.ts +27 -0
  75. package/node_modules/@types/node/ts4.8/events.d.ts +82 -0
  76. package/node_modules/@types/node/ts4.8/fs/promises.d.ts +572 -0
  77. package/node_modules/@types/node/ts4.8/fs.d.ts +2281 -0
  78. package/node_modules/@types/node/ts4.8/globals.d.ts +746 -0
  79. package/node_modules/@types/node/ts4.8/globals.global.d.ts +1 -0
  80. package/node_modules/@types/node/ts4.8/http.d.ts +580 -0
  81. package/node_modules/@types/node/ts4.8/http2.d.ts +962 -0
  82. package/node_modules/@types/node/ts4.8/https.d.ts +271 -0
  83. package/node_modules/@types/node/ts4.8/index.d.ts +53 -0
  84. package/node_modules/@types/node/ts4.8/inspector.d.ts +3051 -0
  85. package/node_modules/@types/node/ts4.8/module.d.ts +56 -0
  86. package/node_modules/@types/node/ts4.8/net.d.ts +308 -0
  87. package/node_modules/@types/node/ts4.8/os.d.ts +243 -0
  88. package/node_modules/@types/node/ts4.8/path.d.ts +168 -0
  89. package/node_modules/@types/node/ts4.8/perf_hooks.d.ts +274 -0
  90. package/node_modules/@types/node/ts4.8/process.d.ts +413 -0
  91. package/node_modules/@types/node/ts4.8/punycode.d.ts +78 -0
  92. package/node_modules/@types/node/ts4.8/querystring.d.ts +31 -0
  93. package/node_modules/@types/node/ts4.8/readline.d.ts +174 -0
  94. package/node_modules/@types/node/ts4.8/repl.d.ts +398 -0
  95. package/node_modules/@types/node/ts4.8/stream.d.ts +359 -0
  96. package/node_modules/@types/node/ts4.8/string_decoder.d.ts +10 -0
  97. package/node_modules/@types/node/ts4.8/timers.d.ts +19 -0
  98. package/node_modules/@types/node/ts4.8/tls.d.ts +784 -0
  99. package/node_modules/@types/node/ts4.8/trace_events.d.ts +64 -0
  100. package/node_modules/@types/node/ts4.8/tty.d.ts +69 -0
  101. package/node_modules/@types/node/ts4.8/url.d.ts +149 -0
  102. package/node_modules/@types/node/ts4.8/util.d.ts +216 -0
  103. package/node_modules/@types/node/ts4.8/v8.d.ts +190 -0
  104. package/node_modules/@types/node/ts4.8/vm.d.ts +155 -0
  105. package/node_modules/@types/node/ts4.8/wasi.d.ts +89 -0
  106. package/node_modules/@types/node/ts4.8/worker_threads.d.ts +241 -0
  107. package/node_modules/@types/node/ts4.8/zlib.d.ts +364 -0
  108. package/node_modules/@types/node/tty.d.ts +69 -0
  109. package/node_modules/@types/node/url.d.ts +149 -0
  110. package/node_modules/@types/node/util.d.ts +216 -0
  111. package/node_modules/@types/node/v8.d.ts +190 -0
  112. package/node_modules/@types/node/vm.d.ts +155 -0
  113. package/node_modules/@types/node/wasi.d.ts +89 -0
  114. package/node_modules/@types/node/worker_threads.d.ts +241 -0
  115. package/node_modules/@types/node/zlib.d.ts +364 -0
  116. package/package.json +2 -5
  117. package/node_modules/@integration-app/sdk/.DS_Store +0 -0
  118. package/node_modules/@integration-app/sdk/.gitignore +0 -11
  119. package/node_modules/@integration-app/sdk/.npmignore +0 -0
  120. package/node_modules/@integration-app/sdk/app-data-collections/app-data-collections.d.ts +0 -23
  121. package/node_modules/@integration-app/sdk/app-data-collections/app-data-collections.js.map +0 -1
  122. package/node_modules/@integration-app/sdk/app-data-schemas/app-data-schemas.d.ts +0 -20
  123. package/node_modules/@integration-app/sdk/app-data-schemas/app-data-schemas.js.map +0 -1
  124. package/node_modules/@integration-app/sdk/app-events/app-events.d.ts +0 -44
  125. package/node_modules/@integration-app/sdk/app-events/app-events.js.map +0 -1
  126. package/node_modules/@integration-app/sdk/connection-client.d.ts +0 -12
  127. package/node_modules/@integration-app/sdk/connection-client.js +0 -31
  128. package/node_modules/@integration-app/sdk/connection-client.js.map +0 -1
  129. package/node_modules/@integration-app/sdk/connections/connections.d.ts +0 -46
  130. package/node_modules/@integration-app/sdk/connections/connections.js.map +0 -1
  131. package/node_modules/@integration-app/sdk/connector-api/connector-api.d.ts +0 -157
  132. package/node_modules/@integration-app/sdk/connector-api/connector-api.js.map +0 -1
  133. package/node_modules/@integration-app/sdk/data-builder/findExternalRecordId.d.ts +0 -0
  134. package/node_modules/@integration-app/sdk/data-builder/findExternalRecordId.js.map +0 -1
  135. package/node_modules/@integration-app/sdk/data-builder/first-name.test.d.ts +0 -0
  136. package/node_modules/@integration-app/sdk/data-builder/first-name.test.js +0 -2
  137. package/node_modules/@integration-app/sdk/data-builder/first-name.test.js.map +0 -1
  138. package/node_modules/@integration-app/sdk/data-builder/formulas/anyOfOption.d.ts +0 -10
  139. package/node_modules/@integration-app/sdk/data-builder/formulas/anyOfOption.js.map +0 -1
  140. package/node_modules/@integration-app/sdk/data-builder/formulas/base.test.d.ts +0 -1
  141. package/node_modules/@integration-app/sdk/data-builder/formulas/base.test.js +0 -26
  142. package/node_modules/@integration-app/sdk/data-builder/formulas/base.test.js.map +0 -1
  143. package/node_modules/@integration-app/sdk/data-builder/formulas/case.test.d.ts +0 -1
  144. package/node_modules/@integration-app/sdk/data-builder/formulas/case.test.js +0 -246
  145. package/node_modules/@integration-app/sdk/data-builder/formulas/case.test.js.map +0 -1
  146. package/node_modules/@integration-app/sdk/data-builder/formulas/concat.test.d.ts +0 -1
  147. package/node_modules/@integration-app/sdk/data-builder/formulas/concat.test.js +0 -85
  148. package/node_modules/@integration-app/sdk/data-builder/formulas/concat.test.js.map +0 -1
  149. package/node_modules/@integration-app/sdk/data-builder/formulas/copy.test.d.ts +0 -1
  150. package/node_modules/@integration-app/sdk/data-builder/formulas/copy.test.js +0 -64
  151. package/node_modules/@integration-app/sdk/data-builder/formulas/copy.test.js.map +0 -1
  152. package/node_modules/@integration-app/sdk/data-builder/formulas/extractDate.test.d.ts +0 -1
  153. package/node_modules/@integration-app/sdk/data-builder/formulas/extractDate.test.js +0 -44
  154. package/node_modules/@integration-app/sdk/data-builder/formulas/extractDate.test.js.map +0 -1
  155. package/node_modules/@integration-app/sdk/data-builder/formulas/extractTime.test.d.ts +0 -1
  156. package/node_modules/@integration-app/sdk/data-builder/formulas/extractTime.test.js +0 -44
  157. package/node_modules/@integration-app/sdk/data-builder/formulas/extractTime.test.js.map +0 -1
  158. package/node_modules/@integration-app/sdk/data-builder/formulas/findAppRecordId.test.d.ts +0 -1
  159. package/node_modules/@integration-app/sdk/data-builder/formulas/findAppRecordId.test.js +0 -26
  160. package/node_modules/@integration-app/sdk/data-builder/formulas/findAppRecordId.test.js.map +0 -1
  161. package/node_modules/@integration-app/sdk/data-builder/formulas/findExternalRecordId.test.d.ts +0 -1
  162. package/node_modules/@integration-app/sdk/data-builder/formulas/findExternalRecordId.test.js +0 -26
  163. package/node_modules/@integration-app/sdk/data-builder/formulas/findExternalRecordId.test.js.map +0 -1
  164. package/node_modules/@integration-app/sdk/data-builder/formulas/first-name.test.d.ts +0 -1
  165. package/node_modules/@integration-app/sdk/data-builder/formulas/first-name.test.js +0 -14
  166. package/node_modules/@integration-app/sdk/data-builder/formulas/first-name.test.js.map +0 -1
  167. package/node_modules/@integration-app/sdk/data-builder/formulas/index.test.d.ts +0 -1
  168. package/node_modules/@integration-app/sdk/data-builder/formulas/index.test.js +0 -63
  169. package/node_modules/@integration-app/sdk/data-builder/formulas/index.test.js.map +0 -1
  170. package/node_modules/@integration-app/sdk/data-builder/formulas/iterate.test.d.ts +0 -1
  171. package/node_modules/@integration-app/sdk/data-builder/formulas/iterate.test.js +0 -112
  172. package/node_modules/@integration-app/sdk/data-builder/formulas/iterate.test.js.map +0 -1
  173. package/node_modules/@integration-app/sdk/data-builder/formulas/lookup.test.d.ts +0 -1
  174. package/node_modules/@integration-app/sdk/data-builder/formulas/lookup.test.js +0 -18
  175. package/node_modules/@integration-app/sdk/data-builder/formulas/lookup.test.js.map +0 -1
  176. package/node_modules/@integration-app/sdk/data-builder/formulas/map.test.d.ts +0 -1
  177. package/node_modules/@integration-app/sdk/data-builder/formulas/map.test.js +0 -114
  178. package/node_modules/@integration-app/sdk/data-builder/formulas/map.test.js.map +0 -1
  179. package/node_modules/@integration-app/sdk/data-builder/formulas/tpl.test.d.ts +0 -1
  180. package/node_modules/@integration-app/sdk/data-builder/formulas/tpl.test.js +0 -49
  181. package/node_modules/@integration-app/sdk/data-builder/formulas/tpl.test.js.map +0 -1
  182. package/node_modules/@integration-app/sdk/data-builder/formulas/types.d.ts +0 -0
  183. package/node_modules/@integration-app/sdk/data-builder/formulas/types.js.map +0 -1
  184. package/node_modules/@integration-app/sdk/data-builder/index.test.d.ts +0 -1
  185. package/node_modules/@integration-app/sdk/data-builder/index.test.js +0 -295
  186. package/node_modules/@integration-app/sdk/data-builder/index.test.js.map +0 -1
  187. package/node_modules/@integration-app/sdk/data-builder/locators.test.d.ts +0 -1
  188. package/node_modules/@integration-app/sdk/data-builder/locators.test.js +0 -775
  189. package/node_modules/@integration-app/sdk/data-builder/locators.test.js.map +0 -1
  190. package/node_modules/@integration-app/sdk/data-filter/conditions.d.ts +0 -0
  191. package/node_modules/@integration-app/sdk/data-filter/conditions.js.map +0 -1
  192. package/node_modules/@integration-app/sdk/data-filter/data-filter.test.d.ts +0 -1
  193. package/node_modules/@integration-app/sdk/data-filter/data-filter.test.js.map +0 -1
  194. package/node_modules/@integration-app/sdk/data-filter/index.test.d.ts +0 -1
  195. package/node_modules/@integration-app/sdk/data-filter/index.test.js +0 -43
  196. package/node_modules/@integration-app/sdk/data-filter/index.test.js.map +0 -1
  197. package/node_modules/@integration-app/sdk/data-filter/operators.test.d.ts +0 -1
  198. package/node_modules/@integration-app/sdk/data-filter/operators.test.js +0 -490
  199. package/node_modules/@integration-app/sdk/data-filter/operators.test.js.map +0 -1
  200. package/node_modules/@integration-app/sdk/data-links/data-links.d.ts +0 -58
  201. package/node_modules/@integration-app/sdk/data-links/data-links.js.map +0 -1
  202. package/node_modules/@integration-app/sdk/data-schema/index.test.d.ts +0 -1
  203. package/node_modules/@integration-app/sdk/data-schema/index.test.js +0 -86
  204. package/node_modules/@integration-app/sdk/data-schema/index.test.js.map +0 -1
  205. package/node_modules/@integration-app/sdk/data-sources/data-sources.d.ts +0 -41
  206. package/node_modules/@integration-app/sdk/data-sources/data-sources.js.map +0 -1
  207. package/node_modules/@integration-app/sdk/endpoints/endpoint-spec.d.ts +0 -30
  208. package/node_modules/@integration-app/sdk/endpoints/endpoint-spec.js.map +0 -1
  209. package/node_modules/@integration-app/sdk/field-mappings/field-mappings.d.ts +0 -29
  210. package/node_modules/@integration-app/sdk/field-mappings/field-mappings.js.map +0 -1
  211. package/node_modules/@integration-app/sdk/flow-runs/flow-runs.d.ts +0 -51
  212. package/node_modules/@integration-app/sdk/flow-runs/flow-runs.js.map +0 -1
  213. package/node_modules/@integration-app/sdk/flows/flows.d.ts +0 -156
  214. package/node_modules/@integration-app/sdk/flows/flows.js.map +0 -1
  215. package/node_modules/@integration-app/sdk/flows/nodes/data-record-delete-trigger.d.ts +0 -3
  216. package/node_modules/@integration-app/sdk/flows/nodes/data-record-delete-trigger.js.map +0 -1
  217. package/node_modules/@integration-app/sdk/flows/nodes/nodes.d.ts +0 -25
  218. package/node_modules/@integration-app/sdk/flows/nodes/nodes.js.map +0 -1
  219. package/node_modules/@integration-app/sdk/flows/utils.test.d.ts +0 -1
  220. package/node_modules/@integration-app/sdk/flows/utils.test.js +0 -62
  221. package/node_modules/@integration-app/sdk/flows/utils.test.js.map +0 -1
  222. package/node_modules/@integration-app/sdk/integration-elements/integration-elements.d.ts +0 -21
  223. package/node_modules/@integration-app/sdk/integration-elements/integration-elements.js.map +0 -1
  224. package/node_modules/@integration-app/sdk/integrations/integrations.d.ts +0 -48
  225. package/node_modules/@integration-app/sdk/integrations/integrations.js.map +0 -1
  226. package/node_modules/@integration-app/sdk/json-schema/json-schema.test.d.ts +0 -1
  227. package/node_modules/@integration-app/sdk/json-schema/json-schema.test.js +0 -194
  228. package/node_modules/@integration-app/sdk/json-schema/json-schema.test.js.map +0 -1
  229. package/node_modules/@integration-app/sdk/json-schema/schema-builder.test.d.ts +0 -1
  230. package/node_modules/@integration-app/sdk/json-schema/schema-builder.test.js +0 -352
  231. package/node_modules/@integration-app/sdk/json-schema/schema-builder.test.js.map +0 -1
  232. package/node_modules/@integration-app/sdk/jwt.test.d.ts +0 -1
  233. package/node_modules/@integration-app/sdk/jwt.test.js +0 -9
  234. package/node_modules/@integration-app/sdk/jwt.test.js.map +0 -1
  235. package/node_modules/@integration-app/sdk/package-lock.json +0 -3834
  236. package/node_modules/@integration-app/sdk/udm/activities.test.d.ts +0 -1
  237. package/node_modules/@integration-app/sdk/udm/activities.test.js +0 -40
  238. package/node_modules/@integration-app/sdk/udm/activities.test.js.map +0 -1
  239. package/node_modules/@integration-app/sdk/udm/campaign-members.d.ts +0 -45
  240. package/node_modules/@integration-app/sdk/udm/campaign-members.js +0 -99
  241. package/node_modules/@integration-app/sdk/udm/campaign-members.js.map +0 -1
  242. package/node_modules/@integration-app/sdk/udm/contacts.test.d.ts +0 -1
  243. package/node_modules/@integration-app/sdk/udm/contacts.test.js +0 -136
  244. package/node_modules/@integration-app/sdk/udm/contacts.test.js.map +0 -1
  245. package/node_modules/@integration-app/sdk/udm/crm-activities.d.ts +0 -17
  246. package/node_modules/@integration-app/sdk/udm/crm-activities.js.map +0 -1
  247. package/node_modules/@integration-app/sdk/udm/crm-activity.d.ts +0 -11
  248. package/node_modules/@integration-app/sdk/udm/crm-activity.js.map +0 -1
  249. package/node_modules/@integration-app/sdk/udm/crm-companies.d.ts +0 -14
  250. package/node_modules/@integration-app/sdk/udm/crm-companies.js.map +0 -1
  251. package/node_modules/@integration-app/sdk/udm/crm-contact.d.ts +0 -10
  252. package/node_modules/@integration-app/sdk/udm/crm-contact.js.map +0 -1
  253. package/node_modules/@integration-app/sdk/udm/crm-contacts.d.ts +0 -16
  254. package/node_modules/@integration-app/sdk/udm/crm-contacts.js.map +0 -1
  255. package/node_modules/@integration-app/sdk/udm/crm-deals.d.ts +0 -15
  256. package/node_modules/@integration-app/sdk/udm/crm-deals.js.map +0 -1
  257. package/node_modules/@integration-app/sdk/udm/crm-leads.d.ts +0 -16
  258. package/node_modules/@integration-app/sdk/udm/crm-leads.js.map +0 -1
  259. package/node_modules/@integration-app/sdk/udm/members.d.ts +0 -45
  260. package/node_modules/@integration-app/sdk/udm/members.js.map +0 -1
  261. package/node_modules/@integration-app/sdk/users/users.d.ts +0 -5
  262. package/node_modules/@integration-app/sdk/users/users.js.map +0 -1
@@ -0,0 +1,56 @@
1
+ declare module 'module' {
2
+ import { URL } from 'url';
3
+ namespace Module {
4
+ /**
5
+ * Updates all the live bindings for builtin ES Modules to match the properties of the CommonJS exports.
6
+ * It does not add or remove exported names from the ES Modules.
7
+ */
8
+ function syncBuiltinESMExports(): void;
9
+
10
+ function findSourceMap(path: string, error?: Error): SourceMap;
11
+ interface SourceMapPayload {
12
+ file: string;
13
+ version: number;
14
+ sources: string[];
15
+ sourcesContent: string[];
16
+ names: string[];
17
+ mappings: string;
18
+ sourceRoot: string;
19
+ }
20
+
21
+ interface SourceMapping {
22
+ generatedLine: number;
23
+ generatedColumn: number;
24
+ originalSource: string;
25
+ originalLine: number;
26
+ originalColumn: number;
27
+ }
28
+
29
+ class SourceMap {
30
+ readonly payload: SourceMapPayload;
31
+ constructor(payload: SourceMapPayload);
32
+ findEntry(line: number, column: number): SourceMapping;
33
+ }
34
+ }
35
+ interface Module extends NodeModule {}
36
+ class Module {
37
+ static runMain(): void;
38
+ static wrap(code: string): string;
39
+
40
+ /**
41
+ * @deprecated Deprecated since: v12.2.0. Please use createRequire() instead.
42
+ */
43
+ static createRequireFromPath(path: string): NodeRequire;
44
+ static createRequire(path: string | URL): NodeRequire;
45
+ static builtinModules: string[];
46
+
47
+ static Module: typeof Module;
48
+
49
+ constructor(id: string, parent?: Module);
50
+ }
51
+ export = Module;
52
+ }
53
+ declare module 'node:module' {
54
+ import module = require('module');
55
+ export = module;
56
+ }
@@ -0,0 +1,308 @@
1
+ declare module 'net' {
2
+ import * as stream from 'stream';
3
+ import EventEmitter = require('events');
4
+ import * as dns from 'dns';
5
+
6
+ type LookupFunction = (
7
+ hostname: string,
8
+ options: dns.LookupOneOptions,
9
+ callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void,
10
+ ) => void;
11
+
12
+ interface AddressInfo {
13
+ address: string;
14
+ family: string;
15
+ port: number;
16
+ }
17
+
18
+ interface SocketConstructorOpts {
19
+ fd?: number | undefined;
20
+ allowHalfOpen?: boolean | undefined;
21
+ readable?: boolean | undefined;
22
+ writable?: boolean | undefined;
23
+ }
24
+
25
+ interface OnReadOpts {
26
+ buffer: Uint8Array | (() => Uint8Array);
27
+ /**
28
+ * This function is called for every chunk of incoming data.
29
+ * Two arguments are passed to it: the number of bytes written to buffer and a reference to buffer.
30
+ * Return false from this function to implicitly pause() the socket.
31
+ */
32
+ callback(bytesWritten: number, buf: Uint8Array): boolean;
33
+ }
34
+
35
+ interface ConnectOpts {
36
+ /**
37
+ * If specified, incoming data is stored in a single buffer and passed to the supplied callback when data arrives on the socket.
38
+ * Note: this will cause the streaming functionality to not provide any data, however events like 'error', 'end', and 'close' will
39
+ * still be emitted as normal and methods like pause() and resume() will also behave as expected.
40
+ */
41
+ onread?: OnReadOpts | undefined;
42
+ }
43
+
44
+ interface TcpSocketConnectOpts extends ConnectOpts {
45
+ port: number;
46
+ host?: string | undefined;
47
+ localAddress?: string | undefined;
48
+ localPort?: number | undefined;
49
+ hints?: number | undefined;
50
+ family?: number | undefined;
51
+ lookup?: LookupFunction | undefined;
52
+ }
53
+
54
+ interface IpcSocketConnectOpts extends ConnectOpts {
55
+ path: string;
56
+ }
57
+
58
+ type SocketConnectOpts = TcpSocketConnectOpts | IpcSocketConnectOpts;
59
+ type SocketReadyState = 'opening' | 'open' | 'readOnly' | 'writeOnly' | 'closed';
60
+
61
+ class Socket extends stream.Duplex {
62
+ constructor(options?: SocketConstructorOpts);
63
+
64
+ // Extended base methods
65
+ write(buffer: Uint8Array | string, cb?: (err?: Error) => void): boolean;
66
+ write(str: Uint8Array | string, encoding?: BufferEncoding, cb?: (err?: Error) => void): boolean;
67
+
68
+ connect(options: SocketConnectOpts, connectionListener?: () => void): this;
69
+ connect(port: number, host: string, connectionListener?: () => void): this;
70
+ connect(port: number, connectionListener?: () => void): this;
71
+ connect(path: string, connectionListener?: () => void): this;
72
+
73
+ setEncoding(encoding?: BufferEncoding): this;
74
+ pause(): this;
75
+ resume(): this;
76
+ setTimeout(timeout: number, callback?: () => void): this;
77
+ setNoDelay(noDelay?: boolean): this;
78
+ setKeepAlive(enable?: boolean, initialDelay?: number): this;
79
+ address(): AddressInfo | {};
80
+ unref(): this;
81
+ ref(): this;
82
+
83
+ /** @deprecated since v14.6.0 - Use `writableLength` instead. */
84
+ readonly bufferSize: number;
85
+ readonly bytesRead: number;
86
+ readonly bytesWritten: number;
87
+ readonly connecting: boolean;
88
+ readonly destroyed: boolean;
89
+ readonly localAddress: string;
90
+ readonly localPort: number;
91
+ /**
92
+ * This property represents the state of the connection as a string.
93
+ * @see {https://nodejs.org/api/net.html#socketreadystate}
94
+ * @since v0.5.0
95
+ */
96
+ readonly readyState: SocketReadyState;
97
+ readonly remoteAddress?: string | undefined;
98
+ readonly remoteFamily?: string | undefined;
99
+ readonly remotePort?: number | undefined;
100
+ /**
101
+ * The socket timeout in milliseconds as set by socket.setTimeout(). It is undefined if a timeout has not been set.
102
+ * @since v10.7.0
103
+ */
104
+ readonly timeout?: number | undefined;
105
+
106
+ // Extended base methods
107
+ end(cb?: () => void): this;
108
+ end(buffer: Uint8Array | string, cb?: () => void): this;
109
+ end(str: Uint8Array | string, encoding?: BufferEncoding, cb?: () => void): this;
110
+
111
+ /**
112
+ * events.EventEmitter
113
+ * 1. close
114
+ * 2. connect
115
+ * 3. data
116
+ * 4. drain
117
+ * 5. end
118
+ * 6. error
119
+ * 7. lookup
120
+ * 8. timeout
121
+ */
122
+ addListener(event: string, listener: (...args: any[]) => void): this;
123
+ addListener(event: "close", listener: (had_error: boolean) => void): this;
124
+ addListener(event: "connect", listener: () => void): this;
125
+ addListener(event: "data", listener: (data: Buffer) => void): this;
126
+ addListener(event: "drain", listener: () => void): this;
127
+ addListener(event: "end", listener: () => void): this;
128
+ addListener(event: "error", listener: (err: Error) => void): this;
129
+ addListener(event: "lookup", listener: (err: Error, address: string, family: string | number, host: string) => void): this;
130
+ addListener(event: "ready", listener: () => void): this;
131
+ addListener(event: "timeout", listener: () => void): this;
132
+
133
+ emit(event: string | symbol, ...args: any[]): boolean;
134
+ emit(event: "close", had_error: boolean): boolean;
135
+ emit(event: "connect"): boolean;
136
+ emit(event: "data", data: Buffer): boolean;
137
+ emit(event: "drain"): boolean;
138
+ emit(event: "end"): boolean;
139
+ emit(event: "error", err: Error): boolean;
140
+ emit(event: "lookup", err: Error, address: string, family: string | number, host: string): boolean;
141
+ emit(event: "ready"): boolean;
142
+ emit(event: "timeout"): boolean;
143
+
144
+ on(event: string, listener: (...args: any[]) => void): this;
145
+ on(event: "close", listener: (had_error: boolean) => void): this;
146
+ on(event: "connect", listener: () => void): this;
147
+ on(event: "data", listener: (data: Buffer) => void): this;
148
+ on(event: "drain", listener: () => void): this;
149
+ on(event: "end", listener: () => void): this;
150
+ on(event: "error", listener: (err: Error) => void): this;
151
+ on(event: "lookup", listener: (err: Error, address: string, family: string | number, host: string) => void): this;
152
+ on(event: "ready", listener: () => void): this;
153
+ on(event: "timeout", listener: () => void): this;
154
+
155
+ once(event: string, listener: (...args: any[]) => void): this;
156
+ once(event: "close", listener: (had_error: boolean) => void): this;
157
+ once(event: "connect", listener: () => void): this;
158
+ once(event: "data", listener: (data: Buffer) => void): this;
159
+ once(event: "drain", listener: () => void): this;
160
+ once(event: "end", listener: () => void): this;
161
+ once(event: "error", listener: (err: Error) => void): this;
162
+ once(event: "lookup", listener: (err: Error, address: string, family: string | number, host: string) => void): this;
163
+ once(event: "ready", listener: () => void): this;
164
+ once(event: "timeout", listener: () => void): this;
165
+
166
+ prependListener(event: string, listener: (...args: any[]) => void): this;
167
+ prependListener(event: "close", listener: (had_error: boolean) => void): this;
168
+ prependListener(event: "connect", listener: () => void): this;
169
+ prependListener(event: "data", listener: (data: Buffer) => void): this;
170
+ prependListener(event: "drain", listener: () => void): this;
171
+ prependListener(event: "end", listener: () => void): this;
172
+ prependListener(event: "error", listener: (err: Error) => void): this;
173
+ prependListener(event: "lookup", listener: (err: Error, address: string, family: string | number, host: string) => void): this;
174
+ prependListener(event: "ready", listener: () => void): this;
175
+ prependListener(event: "timeout", listener: () => void): this;
176
+
177
+ prependOnceListener(event: string, listener: (...args: any[]) => void): this;
178
+ prependOnceListener(event: "close", listener: (had_error: boolean) => void): this;
179
+ prependOnceListener(event: "connect", listener: () => void): this;
180
+ prependOnceListener(event: "data", listener: (data: Buffer) => void): this;
181
+ prependOnceListener(event: "drain", listener: () => void): this;
182
+ prependOnceListener(event: "end", listener: () => void): this;
183
+ prependOnceListener(event: "error", listener: (err: Error) => void): this;
184
+ prependOnceListener(event: "lookup", listener: (err: Error, address: string, family: string | number, host: string) => void): this;
185
+ prependOnceListener(event: "ready", listener: () => void): this;
186
+ prependOnceListener(event: "timeout", listener: () => void): this;
187
+ }
188
+
189
+ interface ListenOptions {
190
+ port?: number | undefined;
191
+ host?: string | undefined;
192
+ backlog?: number | undefined;
193
+ path?: string | undefined;
194
+ exclusive?: boolean | undefined;
195
+ readableAll?: boolean | undefined;
196
+ writableAll?: boolean | undefined;
197
+ /**
198
+ * @default false
199
+ */
200
+ ipv6Only?: boolean | undefined;
201
+ }
202
+
203
+ interface ServerOpts {
204
+ /**
205
+ * Indicates whether half-opened TCP connections are allowed.
206
+ * @default false
207
+ */
208
+ allowHalfOpen?: boolean | undefined;
209
+
210
+ /**
211
+ * Indicates whether the socket should be paused on incoming connections.
212
+ * @default false
213
+ */
214
+ pauseOnConnect?: boolean | undefined;
215
+ }
216
+
217
+ // https://github.com/nodejs/node/blob/master/lib/net.js
218
+ class Server extends EventEmitter {
219
+ constructor(connectionListener?: (socket: Socket) => void);
220
+ constructor(options?: ServerOpts, connectionListener?: (socket: Socket) => void);
221
+
222
+ listen(port?: number, hostname?: string, backlog?: number, listeningListener?: () => void): this;
223
+ listen(port?: number, hostname?: string, listeningListener?: () => void): this;
224
+ listen(port?: number, backlog?: number, listeningListener?: () => void): this;
225
+ listen(port?: number, listeningListener?: () => void): this;
226
+ listen(path: string, backlog?: number, listeningListener?: () => void): this;
227
+ listen(path: string, listeningListener?: () => void): this;
228
+ listen(options: ListenOptions, listeningListener?: () => void): this;
229
+ listen(handle: any, backlog?: number, listeningListener?: () => void): this;
230
+ listen(handle: any, listeningListener?: () => void): this;
231
+ close(callback?: (err?: Error) => void): this;
232
+ address(): AddressInfo | string | null;
233
+ getConnections(cb: (error: Error | null, count: number) => void): void;
234
+ ref(): this;
235
+ unref(): this;
236
+ maxConnections: number;
237
+ connections: number;
238
+ listening: boolean;
239
+
240
+ /**
241
+ * events.EventEmitter
242
+ * 1. close
243
+ * 2. connection
244
+ * 3. error
245
+ * 4. listening
246
+ */
247
+ addListener(event: string, listener: (...args: any[]) => void): this;
248
+ addListener(event: "close", listener: () => void): this;
249
+ addListener(event: "connection", listener: (socket: Socket) => void): this;
250
+ addListener(event: "error", listener: (err: Error) => void): this;
251
+ addListener(event: "listening", listener: () => void): this;
252
+
253
+ emit(event: string | symbol, ...args: any[]): boolean;
254
+ emit(event: "close"): boolean;
255
+ emit(event: "connection", socket: Socket): boolean;
256
+ emit(event: "error", err: Error): boolean;
257
+ emit(event: "listening"): boolean;
258
+
259
+ on(event: string, listener: (...args: any[]) => void): this;
260
+ on(event: "close", listener: () => void): this;
261
+ on(event: "connection", listener: (socket: Socket) => void): this;
262
+ on(event: "error", listener: (err: Error) => void): this;
263
+ on(event: "listening", listener: () => void): this;
264
+
265
+ once(event: string, listener: (...args: any[]) => void): this;
266
+ once(event: "close", listener: () => void): this;
267
+ once(event: "connection", listener: (socket: Socket) => void): this;
268
+ once(event: "error", listener: (err: Error) => void): this;
269
+ once(event: "listening", listener: () => void): this;
270
+
271
+ prependListener(event: string, listener: (...args: any[]) => void): this;
272
+ prependListener(event: "close", listener: () => void): this;
273
+ prependListener(event: "connection", listener: (socket: Socket) => void): this;
274
+ prependListener(event: "error", listener: (err: Error) => void): this;
275
+ prependListener(event: "listening", listener: () => void): this;
276
+
277
+ prependOnceListener(event: string, listener: (...args: any[]) => void): this;
278
+ prependOnceListener(event: "close", listener: () => void): this;
279
+ prependOnceListener(event: "connection", listener: (socket: Socket) => void): this;
280
+ prependOnceListener(event: "error", listener: (err: Error) => void): this;
281
+ prependOnceListener(event: "listening", listener: () => void): this;
282
+ }
283
+
284
+ interface TcpNetConnectOpts extends TcpSocketConnectOpts, SocketConstructorOpts {
285
+ timeout?: number | undefined;
286
+ }
287
+
288
+ interface IpcNetConnectOpts extends IpcSocketConnectOpts, SocketConstructorOpts {
289
+ timeout?: number | undefined;
290
+ }
291
+
292
+ type NetConnectOpts = TcpNetConnectOpts | IpcNetConnectOpts;
293
+
294
+ function createServer(connectionListener?: (socket: Socket) => void): Server;
295
+ function createServer(options?: ServerOpts, connectionListener?: (socket: Socket) => void): Server;
296
+ function connect(options: NetConnectOpts, connectionListener?: () => void): Socket;
297
+ function connect(port: number, host?: string, connectionListener?: () => void): Socket;
298
+ function connect(path: string, connectionListener?: () => void): Socket;
299
+ function createConnection(options: NetConnectOpts, connectionListener?: () => void): Socket;
300
+ function createConnection(port: number, host?: string, connectionListener?: () => void): Socket;
301
+ function createConnection(path: string, connectionListener?: () => void): Socket;
302
+ function isIP(input: string): number;
303
+ function isIPv4(input: string): boolean;
304
+ function isIPv6(input: string): boolean;
305
+ }
306
+ declare module 'node:net' {
307
+ export * from 'net';
308
+ }
@@ -0,0 +1,243 @@
1
+ declare module 'os' {
2
+ interface CpuInfo {
3
+ model: string;
4
+ speed: number;
5
+ times: {
6
+ user: number;
7
+ nice: number;
8
+ sys: number;
9
+ idle: number;
10
+ irq: number;
11
+ };
12
+ }
13
+
14
+ interface NetworkInterfaceBase {
15
+ address: string;
16
+ netmask: string;
17
+ mac: string;
18
+ internal: boolean;
19
+ cidr: string | null;
20
+ }
21
+
22
+ interface NetworkInterfaceInfoIPv4 extends NetworkInterfaceBase {
23
+ family: "IPv4";
24
+ scopeid?: undefined;
25
+ }
26
+
27
+ interface NetworkInterfaceInfoIPv6 extends NetworkInterfaceBase {
28
+ family: "IPv6";
29
+ scopeid: number;
30
+ }
31
+
32
+ interface UserInfo<T> {
33
+ username: T;
34
+ uid: number;
35
+ gid: number;
36
+ shell: T;
37
+ homedir: T;
38
+ }
39
+
40
+ type NetworkInterfaceInfo = NetworkInterfaceInfoIPv4 | NetworkInterfaceInfoIPv6;
41
+
42
+ function hostname(): string;
43
+ function loadavg(): number[];
44
+ function uptime(): number;
45
+ function freemem(): number;
46
+ function totalmem(): number;
47
+ function cpus(): CpuInfo[];
48
+ function type(): string;
49
+ function release(): string;
50
+ function networkInterfaces(): NodeJS.Dict<NetworkInterfaceInfo[]>;
51
+ function homedir(): string;
52
+ function userInfo(options: { encoding: 'buffer' }): UserInfo<Buffer>;
53
+ function userInfo(options?: { encoding: BufferEncoding }): UserInfo<string>;
54
+
55
+ type SignalConstants = {
56
+ [key in NodeJS.Signals]: number;
57
+ };
58
+
59
+ namespace constants {
60
+ const UV_UDP_REUSEADDR: number;
61
+ namespace signals {}
62
+ const signals: SignalConstants;
63
+ namespace errno {
64
+ const E2BIG: number;
65
+ const EACCES: number;
66
+ const EADDRINUSE: number;
67
+ const EADDRNOTAVAIL: number;
68
+ const EAFNOSUPPORT: number;
69
+ const EAGAIN: number;
70
+ const EALREADY: number;
71
+ const EBADF: number;
72
+ const EBADMSG: number;
73
+ const EBUSY: number;
74
+ const ECANCELED: number;
75
+ const ECHILD: number;
76
+ const ECONNABORTED: number;
77
+ const ECONNREFUSED: number;
78
+ const ECONNRESET: number;
79
+ const EDEADLK: number;
80
+ const EDESTADDRREQ: number;
81
+ const EDOM: number;
82
+ const EDQUOT: number;
83
+ const EEXIST: number;
84
+ const EFAULT: number;
85
+ const EFBIG: number;
86
+ const EHOSTUNREACH: number;
87
+ const EIDRM: number;
88
+ const EILSEQ: number;
89
+ const EINPROGRESS: number;
90
+ const EINTR: number;
91
+ const EINVAL: number;
92
+ const EIO: number;
93
+ const EISCONN: number;
94
+ const EISDIR: number;
95
+ const ELOOP: number;
96
+ const EMFILE: number;
97
+ const EMLINK: number;
98
+ const EMSGSIZE: number;
99
+ const EMULTIHOP: number;
100
+ const ENAMETOOLONG: number;
101
+ const ENETDOWN: number;
102
+ const ENETRESET: number;
103
+ const ENETUNREACH: number;
104
+ const ENFILE: number;
105
+ const ENOBUFS: number;
106
+ const ENODATA: number;
107
+ const ENODEV: number;
108
+ const ENOENT: number;
109
+ const ENOEXEC: number;
110
+ const ENOLCK: number;
111
+ const ENOLINK: number;
112
+ const ENOMEM: number;
113
+ const ENOMSG: number;
114
+ const ENOPROTOOPT: number;
115
+ const ENOSPC: number;
116
+ const ENOSR: number;
117
+ const ENOSTR: number;
118
+ const ENOSYS: number;
119
+ const ENOTCONN: number;
120
+ const ENOTDIR: number;
121
+ const ENOTEMPTY: number;
122
+ const ENOTSOCK: number;
123
+ const ENOTSUP: number;
124
+ const ENOTTY: number;
125
+ const ENXIO: number;
126
+ const EOPNOTSUPP: number;
127
+ const EOVERFLOW: number;
128
+ const EPERM: number;
129
+ const EPIPE: number;
130
+ const EPROTO: number;
131
+ const EPROTONOSUPPORT: number;
132
+ const EPROTOTYPE: number;
133
+ const ERANGE: number;
134
+ const EROFS: number;
135
+ const ESPIPE: number;
136
+ const ESRCH: number;
137
+ const ESTALE: number;
138
+ const ETIME: number;
139
+ const ETIMEDOUT: number;
140
+ const ETXTBSY: number;
141
+ const EWOULDBLOCK: number;
142
+ const EXDEV: number;
143
+ const WSAEINTR: number;
144
+ const WSAEBADF: number;
145
+ const WSAEACCES: number;
146
+ const WSAEFAULT: number;
147
+ const WSAEINVAL: number;
148
+ const WSAEMFILE: number;
149
+ const WSAEWOULDBLOCK: number;
150
+ const WSAEINPROGRESS: number;
151
+ const WSAEALREADY: number;
152
+ const WSAENOTSOCK: number;
153
+ const WSAEDESTADDRREQ: number;
154
+ const WSAEMSGSIZE: number;
155
+ const WSAEPROTOTYPE: number;
156
+ const WSAENOPROTOOPT: number;
157
+ const WSAEPROTONOSUPPORT: number;
158
+ const WSAESOCKTNOSUPPORT: number;
159
+ const WSAEOPNOTSUPP: number;
160
+ const WSAEPFNOSUPPORT: number;
161
+ const WSAEAFNOSUPPORT: number;
162
+ const WSAEADDRINUSE: number;
163
+ const WSAEADDRNOTAVAIL: number;
164
+ const WSAENETDOWN: number;
165
+ const WSAENETUNREACH: number;
166
+ const WSAENETRESET: number;
167
+ const WSAECONNABORTED: number;
168
+ const WSAECONNRESET: number;
169
+ const WSAENOBUFS: number;
170
+ const WSAEISCONN: number;
171
+ const WSAENOTCONN: number;
172
+ const WSAESHUTDOWN: number;
173
+ const WSAETOOMANYREFS: number;
174
+ const WSAETIMEDOUT: number;
175
+ const WSAECONNREFUSED: number;
176
+ const WSAELOOP: number;
177
+ const WSAENAMETOOLONG: number;
178
+ const WSAEHOSTDOWN: number;
179
+ const WSAEHOSTUNREACH: number;
180
+ const WSAENOTEMPTY: number;
181
+ const WSAEPROCLIM: number;
182
+ const WSAEUSERS: number;
183
+ const WSAEDQUOT: number;
184
+ const WSAESTALE: number;
185
+ const WSAEREMOTE: number;
186
+ const WSASYSNOTREADY: number;
187
+ const WSAVERNOTSUPPORTED: number;
188
+ const WSANOTINITIALISED: number;
189
+ const WSAEDISCON: number;
190
+ const WSAENOMORE: number;
191
+ const WSAECANCELLED: number;
192
+ const WSAEINVALIDPROCTABLE: number;
193
+ const WSAEINVALIDPROVIDER: number;
194
+ const WSAEPROVIDERFAILEDINIT: number;
195
+ const WSASYSCALLFAILURE: number;
196
+ const WSASERVICE_NOT_FOUND: number;
197
+ const WSATYPE_NOT_FOUND: number;
198
+ const WSA_E_NO_MORE: number;
199
+ const WSA_E_CANCELLED: number;
200
+ const WSAEREFUSED: number;
201
+ }
202
+ namespace priority {
203
+ const PRIORITY_LOW: number;
204
+ const PRIORITY_BELOW_NORMAL: number;
205
+ const PRIORITY_NORMAL: number;
206
+ const PRIORITY_ABOVE_NORMAL: number;
207
+ const PRIORITY_HIGH: number;
208
+ const PRIORITY_HIGHEST: number;
209
+ }
210
+ }
211
+
212
+ function arch(): string;
213
+ /**
214
+ * Returns a string identifying the kernel version.
215
+ * On POSIX systems, the operating system release is determined by calling
216
+ * [uname(3)][]. On Windows, `pRtlGetVersion` is used, and if it is not available,
217
+ * `GetVersionExW()` will be used. See
218
+ * https://en.wikipedia.org/wiki/Uname#Examples for more information.
219
+ */
220
+ function version(): string;
221
+ function platform(): NodeJS.Platform;
222
+ function tmpdir(): string;
223
+ const EOL: string;
224
+ function endianness(): "BE" | "LE";
225
+ /**
226
+ * Gets the priority of a process.
227
+ * Defaults to current process.
228
+ */
229
+ function getPriority(pid?: number): number;
230
+ /**
231
+ * Sets the priority of the current process.
232
+ * @param priority Must be in range of -20 to 19
233
+ */
234
+ function setPriority(priority: number): void;
235
+ /**
236
+ * Sets the priority of the process specified process.
237
+ * @param priority Must be in range of -20 to 19
238
+ */
239
+ function setPriority(pid: number, priority: number): void;
240
+ }
241
+ declare module 'node:os' {
242
+ export * from 'os';
243
+ }