@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,168 @@
1
+ declare module 'path' {
2
+ namespace path {
3
+ /**
4
+ * A parsed path object generated by path.parse() or consumed by path.format().
5
+ */
6
+ interface ParsedPath {
7
+ /**
8
+ * The root of the path such as '/' or 'c:\'
9
+ */
10
+ root: string;
11
+ /**
12
+ * The full directory path such as '/home/user/dir' or 'c:\path\dir'
13
+ */
14
+ dir: string;
15
+ /**
16
+ * The file name including extension (if any) such as 'index.html'
17
+ */
18
+ base: string;
19
+ /**
20
+ * The file extension (if any) such as '.html'
21
+ */
22
+ ext: string;
23
+ /**
24
+ * The file name without extension (if any) such as 'index'
25
+ */
26
+ name: string;
27
+ }
28
+
29
+ interface FormatInputPathObject {
30
+ /**
31
+ * The root of the path such as '/' or 'c:\'
32
+ */
33
+ root?: string | undefined;
34
+ /**
35
+ * The full directory path such as '/home/user/dir' or 'c:\path\dir'
36
+ */
37
+ dir?: string | undefined;
38
+ /**
39
+ * The file name including extension (if any) such as 'index.html'
40
+ */
41
+ base?: string | undefined;
42
+ /**
43
+ * The file extension (if any) such as '.html'
44
+ */
45
+ ext?: string | undefined;
46
+ /**
47
+ * The file name without extension (if any) such as 'index'
48
+ */
49
+ name?: string | undefined;
50
+ }
51
+
52
+ interface PlatformPath {
53
+ /**
54
+ * Normalize a string path, reducing '..' and '.' parts.
55
+ * When multiple slashes are found, they're replaced by a single one; when the path contains a trailing slash, it is preserved. On Windows backslashes are used.
56
+ *
57
+ * @param path string path to normalize.
58
+ * @throws {TypeError} if `path` is not a string.
59
+ */
60
+ normalize(path: string): string;
61
+ /**
62
+ * Join all arguments together and normalize the resulting path.
63
+ *
64
+ * @param paths paths to join.
65
+ * @throws {TypeError} if any of the path segments is not a string.
66
+ */
67
+ join(...paths: string[]): string;
68
+ /**
69
+ * The right-most parameter is considered {to}. Other parameters are considered an array of {from}.
70
+ *
71
+ * Starting from leftmost {from} parameter, resolves {to} to an absolute path.
72
+ *
73
+ * If {to} isn't already absolute, {from} arguments are prepended in right to left order,
74
+ * until an absolute path is found. If after using all {from} paths still no absolute path is found,
75
+ * the current working directory is used as well. The resulting path is normalized,
76
+ * and trailing slashes are removed unless the path gets resolved to the root directory.
77
+ *
78
+ * @param paths A sequence of paths or path segments.
79
+ * @throws {TypeError} if any of the arguments is not a string.
80
+ */
81
+ resolve(...paths: string[]): string;
82
+ /**
83
+ * Determines whether {path} is an absolute path. An absolute path will always resolve to the same location, regardless of the working directory.
84
+ *
85
+ * If the given {path} is a zero-length string, `false` will be returned.
86
+ *
87
+ * @param path path to test.
88
+ * @throws {TypeError} if `path` is not a string.
89
+ */
90
+ isAbsolute(path: string): boolean;
91
+ /**
92
+ * Solve the relative path from {from} to {to} based on the current working directory.
93
+ * At times we have two absolute paths, and we need to derive the relative path from one to the other. This is actually the reverse transform of path.resolve.
94
+ *
95
+ * @throws {TypeError} if either `from` or `to` is not a string.
96
+ */
97
+ relative(from: string, to: string): string;
98
+ /**
99
+ * Return the directory name of a path. Similar to the Unix dirname command.
100
+ *
101
+ * @param path the path to evaluate.
102
+ * @throws {TypeError} if `path` is not a string.
103
+ */
104
+ dirname(path: string): string;
105
+ /**
106
+ * Return the last portion of a path. Similar to the Unix basename command.
107
+ * Often used to extract the file name from a fully qualified path.
108
+ *
109
+ * @param path the path to evaluate.
110
+ * @param ext optionally, an extension to remove from the result.
111
+ * @throws {TypeError} if `path` is not a string or if `ext` is given and is not a string.
112
+ */
113
+ basename(path: string, ext?: string): string;
114
+ /**
115
+ * Return the extension of the path, from the last '.' to end of string in the last portion of the path.
116
+ * If there is no '.' in the last portion of the path or the first character of it is '.', then it returns an empty string.
117
+ *
118
+ * @param path the path to evaluate.
119
+ * @throws {TypeError} if `path` is not a string.
120
+ */
121
+ extname(path: string): string;
122
+ /**
123
+ * The platform-specific file separator. '\\' or '/'.
124
+ */
125
+ readonly sep: '\\' | '/';
126
+ /**
127
+ * The platform-specific file delimiter. ';' or ':'.
128
+ */
129
+ readonly delimiter: ';' | ':';
130
+ /**
131
+ * Returns an object from a path string - the opposite of format().
132
+ *
133
+ * @param path path to evaluate.
134
+ * @throws {TypeError} if `path` is not a string.
135
+ */
136
+ parse(path: string): ParsedPath;
137
+ /**
138
+ * Returns a path string from an object - the opposite of parse().
139
+ *
140
+ * @param pathObject path to evaluate.
141
+ */
142
+ format(pathObject: FormatInputPathObject): string;
143
+ /**
144
+ * On Windows systems only, returns an equivalent namespace-prefixed path for the given path.
145
+ * If path is not a string, path will be returned without modifications.
146
+ * This method is meaningful only on Windows system.
147
+ * On POSIX systems, the method is non-operational and always returns path without modifications.
148
+ */
149
+ toNamespacedPath(path: string): string;
150
+ /**
151
+ * Posix specific pathing.
152
+ * Same as parent object on posix.
153
+ */
154
+ readonly posix: PlatformPath;
155
+ /**
156
+ * Windows specific pathing.
157
+ * Same as parent object on windows
158
+ */
159
+ readonly win32: PlatformPath;
160
+ }
161
+ }
162
+ const path: path.PlatformPath;
163
+ export = path;
164
+ }
165
+ declare module 'node:path' {
166
+ import path = require('path');
167
+ export = path;
168
+ }
@@ -0,0 +1,274 @@
1
+ declare module 'perf_hooks' {
2
+ import { AsyncResource } from 'async_hooks';
3
+
4
+ type EntryType = 'node' | 'mark' | 'measure' | 'gc' | 'function' | 'http2' | 'http';
5
+
6
+ interface PerformanceEntry {
7
+ /**
8
+ * The total number of milliseconds elapsed for this entry.
9
+ * This value will not be meaningful for all Performance Entry types.
10
+ */
11
+ readonly duration: number;
12
+
13
+ /**
14
+ * The name of the performance entry.
15
+ */
16
+ readonly name: string;
17
+
18
+ /**
19
+ * The high resolution millisecond timestamp marking the starting time of the Performance Entry.
20
+ */
21
+ readonly startTime: number;
22
+
23
+ /**
24
+ * The type of the performance entry.
25
+ * Currently it may be one of: 'node', 'mark', 'measure', 'gc', or 'function'.
26
+ */
27
+ readonly entryType: EntryType;
28
+
29
+ /**
30
+ * When `performanceEntry.entryType` is equal to 'gc', `the performance.kind` property identifies
31
+ * the type of garbage collection operation that occurred.
32
+ * See perf_hooks.constants for valid values.
33
+ */
34
+ readonly kind?: number | undefined;
35
+
36
+ /**
37
+ * When `performanceEntry.entryType` is equal to 'gc', the `performance.flags`
38
+ * property contains additional information about garbage collection operation.
39
+ * See perf_hooks.constants for valid values.
40
+ */
41
+ readonly flags?: number | undefined;
42
+ }
43
+
44
+ interface PerformanceNodeTiming extends PerformanceEntry {
45
+ /**
46
+ * The high resolution millisecond timestamp at which the Node.js process completed bootstrap.
47
+ */
48
+ readonly bootstrapComplete: number;
49
+
50
+ /**
51
+ * The high resolution millisecond timestamp at which the Node.js process completed bootstrapping.
52
+ * If bootstrapping has not yet finished, the property has the value of -1.
53
+ */
54
+ readonly environment: number;
55
+
56
+ /**
57
+ * The high resolution millisecond timestamp at which the Node.js environment was initialized.
58
+ */
59
+ readonly idleTime: number;
60
+
61
+ /**
62
+ * The high resolution millisecond timestamp of the amount of time the event loop has been idle
63
+ * within the event loop's event provider (e.g. `epoll_wait`). This does not take CPU usage
64
+ * into consideration. If the event loop has not yet started (e.g., in the first tick of the main script),
65
+ * the property has the value of 0.
66
+ */
67
+ readonly loopExit: number;
68
+
69
+ /**
70
+ * The high resolution millisecond timestamp at which the Node.js event loop started.
71
+ * If the event loop has not yet started (e.g., in the first tick of the main script), the property has the value of -1.
72
+ */
73
+ readonly loopStart: number;
74
+
75
+ /**
76
+ * The high resolution millisecond timestamp at which the V8 platform was initialized.
77
+ */
78
+ readonly v8Start: number;
79
+ }
80
+
81
+ interface EventLoopUtilization {
82
+ idle: number;
83
+ active: number;
84
+ utilization: number;
85
+ }
86
+
87
+ interface Performance {
88
+ /**
89
+ * If name is not provided, removes all PerformanceMark objects from the Performance Timeline.
90
+ * If name is provided, removes only the named mark.
91
+ * @param name
92
+ */
93
+ clearMarks(name?: string): void;
94
+
95
+ /**
96
+ * Creates a new PerformanceMark entry in the Performance Timeline.
97
+ * A PerformanceMark is a subclass of PerformanceEntry whose performanceEntry.entryType is always 'mark',
98
+ * and whose performanceEntry.duration is always 0.
99
+ * Performance marks are used to mark specific significant moments in the Performance Timeline.
100
+ * @param name
101
+ */
102
+ mark(name?: string): void;
103
+
104
+ /**
105
+ * Creates a new PerformanceMeasure entry in the Performance Timeline.
106
+ * A PerformanceMeasure is a subclass of PerformanceEntry whose performanceEntry.entryType is always 'measure',
107
+ * and whose performanceEntry.duration measures the number of milliseconds elapsed since startMark and endMark.
108
+ *
109
+ * The startMark argument may identify any existing PerformanceMark in the the Performance Timeline, or may identify
110
+ * any of the timestamp properties provided by the PerformanceNodeTiming class. If the named startMark does not exist,
111
+ * then startMark is set to timeOrigin by default.
112
+ *
113
+ * The endMark argument must identify any existing PerformanceMark in the the Performance Timeline or any of the timestamp
114
+ * properties provided by the PerformanceNodeTiming class. If the named endMark does not exist, an error will be thrown.
115
+ * @param name
116
+ * @param startMark
117
+ * @param endMark
118
+ */
119
+ measure(name: string, startMark?: string, endMark?: string): void;
120
+
121
+ /**
122
+ * An instance of the PerformanceNodeTiming class that provides performance metrics for specific Node.js operational milestones.
123
+ */
124
+ readonly nodeTiming: PerformanceNodeTiming;
125
+
126
+ /**
127
+ * @return the current high resolution millisecond timestamp
128
+ */
129
+ now(): number;
130
+
131
+ /**
132
+ * The timeOrigin specifies the high resolution millisecond timestamp from which all performance metric durations are measured.
133
+ */
134
+ readonly timeOrigin: number;
135
+
136
+ /**
137
+ * Wraps a function within a new function that measures the running time of the wrapped function.
138
+ * A PerformanceObserver must be subscribed to the 'function' event type in order for the timing details to be accessed.
139
+ * @param fn
140
+ */
141
+ timerify<T extends (...optionalParams: any[]) => any>(fn: T): T;
142
+
143
+ /**
144
+ * eventLoopUtilization is similar to CPU utilization except that it is calculated using high precision wall-clock time.
145
+ * It represents the percentage of time the event loop has spent outside the event loop's event provider (e.g. epoll_wait).
146
+ * No other CPU idle time is taken into consideration.
147
+ *
148
+ * @param util1 The result of a previous call to eventLoopUtilization()
149
+ * @param util2 The result of a previous call to eventLoopUtilization() prior to util1
150
+ */
151
+ eventLoopUtilization(util1?: EventLoopUtilization, util2?: EventLoopUtilization): EventLoopUtilization;
152
+ }
153
+
154
+ interface PerformanceObserverEntryList {
155
+ /**
156
+ * @return a list of PerformanceEntry objects in chronological order with respect to performanceEntry.startTime.
157
+ */
158
+ getEntries(): PerformanceEntry[];
159
+
160
+ /**
161
+ * @return a list of PerformanceEntry objects in chronological order with respect to performanceEntry.startTime
162
+ * whose performanceEntry.name is equal to name, and optionally, whose performanceEntry.entryType is equal to type.
163
+ */
164
+ getEntriesByName(name: string, type?: EntryType): PerformanceEntry[];
165
+
166
+ /**
167
+ * @return Returns a list of PerformanceEntry objects in chronological order with respect to performanceEntry.startTime
168
+ * whose performanceEntry.entryType is equal to type.
169
+ */
170
+ getEntriesByType(type: EntryType): PerformanceEntry[];
171
+ }
172
+
173
+ type PerformanceObserverCallback = (list: PerformanceObserverEntryList, observer: PerformanceObserver) => void;
174
+
175
+ class PerformanceObserver extends AsyncResource {
176
+ constructor(callback: PerformanceObserverCallback);
177
+
178
+ /**
179
+ * Disconnects the PerformanceObserver instance from all notifications.
180
+ */
181
+ disconnect(): void;
182
+
183
+ /**
184
+ * Subscribes the PerformanceObserver instance to notifications of new PerformanceEntry instances identified by options.entryTypes.
185
+ * When options.buffered is false, the callback will be invoked once for every PerformanceEntry instance.
186
+ * Property buffered defaults to false.
187
+ * @param options
188
+ */
189
+ observe(options: { entryTypes: ReadonlyArray<EntryType>; buffered?: boolean | undefined }): void;
190
+ }
191
+
192
+ namespace constants {
193
+ const NODE_PERFORMANCE_GC_MAJOR: number;
194
+ const NODE_PERFORMANCE_GC_MINOR: number;
195
+ const NODE_PERFORMANCE_GC_INCREMENTAL: number;
196
+ const NODE_PERFORMANCE_GC_WEAKCB: number;
197
+
198
+ const NODE_PERFORMANCE_GC_FLAGS_NO: number;
199
+ const NODE_PERFORMANCE_GC_FLAGS_CONSTRUCT_RETAINED: number;
200
+ const NODE_PERFORMANCE_GC_FLAGS_FORCED: number;
201
+ const NODE_PERFORMANCE_GC_FLAGS_SYNCHRONOUS_PHANTOM_PROCESSING: number;
202
+ const NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE: number;
203
+ const NODE_PERFORMANCE_GC_FLAGS_ALL_EXTERNAL_MEMORY: number;
204
+ const NODE_PERFORMANCE_GC_FLAGS_SCHEDULE_IDLE: number;
205
+ }
206
+
207
+ const performance: Performance;
208
+
209
+ interface EventLoopMonitorOptions {
210
+ /**
211
+ * The sampling rate in milliseconds.
212
+ * Must be greater than zero.
213
+ * @default 10
214
+ */
215
+ resolution?: number | undefined;
216
+ }
217
+
218
+ interface EventLoopDelayMonitor {
219
+ /**
220
+ * Enables the event loop delay sample timer. Returns `true` if the timer was started, `false` if it was already started.
221
+ */
222
+ enable(): boolean;
223
+ /**
224
+ * Disables the event loop delay sample timer. Returns `true` if the timer was stopped, `false` if it was already stopped.
225
+ */
226
+ disable(): boolean;
227
+
228
+ /**
229
+ * Resets the collected histogram data.
230
+ */
231
+ reset(): void;
232
+
233
+ /**
234
+ * Returns the value at the given percentile.
235
+ * @param percentile A percentile value between 1 and 100.
236
+ */
237
+ percentile(percentile: number): number;
238
+
239
+ /**
240
+ * A `Map` object detailing the accumulated percentile distribution.
241
+ */
242
+ readonly percentiles: Map<number, number>;
243
+
244
+ /**
245
+ * The number of times the event loop delay exceeded the maximum 1 hour eventloop delay threshold.
246
+ */
247
+ readonly exceeds: number;
248
+
249
+ /**
250
+ * The minimum recorded event loop delay.
251
+ */
252
+ readonly min: number;
253
+
254
+ /**
255
+ * The maximum recorded event loop delay.
256
+ */
257
+ readonly max: number;
258
+
259
+ /**
260
+ * The mean of the recorded event loop delays.
261
+ */
262
+ readonly mean: number;
263
+
264
+ /**
265
+ * The standard deviation of the recorded event loop delays.
266
+ */
267
+ readonly stddev: number;
268
+ }
269
+
270
+ function monitorEventLoopDelay(options?: EventLoopMonitorOptions): EventLoopDelayMonitor;
271
+ }
272
+ declare module 'node:perf_hooks' {
273
+ export * from 'perf_hooks';
274
+ }