@api-client/core 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (537) hide show
  1. package/LICENSE.md +69 -0
  2. package/amf-models/dialects/ApiProjectVocabulary.yaml +233 -0
  3. package/amf-models/dialects/Environment.yaml +38 -0
  4. package/amf-models/dialects/HttpProject.yaml +55 -0
  5. package/amf-models/dialects/License.yaml +31 -0
  6. package/amf-models/dialects/ProjectFolder.yaml +43 -0
  7. package/amf-models/dialects/ProjectItem.yaml +22 -0
  8. package/amf-models/dialects/ProjectRequest.yaml +23 -0
  9. package/amf-models/dialects/ProjectSchema.yaml +36 -0
  10. package/amf-models/dialects/Property.yaml +43 -0
  11. package/amf-models/dialects/Provider.yaml +32 -0
  12. package/amf-models/dialects/Server.yaml +31 -0
  13. package/amf-models/dialects/Thing.yaml +28 -0
  14. package/build/browser.d.ts +79 -0
  15. package/build/browser.js +92 -0
  16. package/build/browser.js.map +1 -0
  17. package/build/index.d.ts +89 -0
  18. package/build/index.js +108 -0
  19. package/build/index.js.map +1 -0
  20. package/build/src/data/DataReader.d.ts +10 -0
  21. package/build/src/data/DataReader.js +4 -0
  22. package/build/src/data/DataReader.js.map +1 -0
  23. package/build/src/data/DataUtils.d.ts +40 -0
  24. package/build/src/data/DataUtils.js +106 -0
  25. package/build/src/data/DataUtils.js.map +1 -0
  26. package/build/src/data/JmesparthReader.d.ts +12 -0
  27. package/build/src/data/JmesparthReader.js +27 -0
  28. package/build/src/data/JmesparthReader.js.map +1 -0
  29. package/build/src/data/Json2Xml.d.ts +84 -0
  30. package/build/src/data/Json2Xml.js +185 -0
  31. package/build/src/data/Json2Xml.js.map +1 -0
  32. package/build/src/data/JsonReader.d.ts +8 -0
  33. package/build/src/data/JsonReader.js +40 -0
  34. package/build/src/data/JsonReader.js.map +1 -0
  35. package/build/src/data/PayloadPointer.d.ts +19 -0
  36. package/build/src/data/PayloadPointer.js +46 -0
  37. package/build/src/data/PayloadPointer.js.map +1 -0
  38. package/build/src/data/RequestDataExtractor.d.ts +44 -0
  39. package/build/src/data/RequestDataExtractor.js +126 -0
  40. package/build/src/data/RequestDataExtractor.js.map +1 -0
  41. package/build/src/data/UrlEncodedReader.d.ts +11 -0
  42. package/build/src/data/UrlEncodedReader.js +20 -0
  43. package/build/src/data/UrlEncodedReader.js.map +1 -0
  44. package/build/src/data/XmlReader.d.ts +14 -0
  45. package/build/src/data/XmlReader.js +97 -0
  46. package/build/src/data/XmlReader.js.map +1 -0
  47. package/build/src/events/BaseEvents.d.ts +208 -0
  48. package/build/src/events/BaseEvents.js +117 -0
  49. package/build/src/events/BaseEvents.js.map +1 -0
  50. package/build/src/events/CustomEvent.d.ts +2 -0
  51. package/build/src/events/CustomEvent.js +24 -0
  52. package/build/src/events/CustomEvent.js.map +1 -0
  53. package/build/src/events/EventTypes.d.ts +91 -0
  54. package/build/src/events/EventTypes.js +19 -0
  55. package/build/src/events/EventTypes.js.map +1 -0
  56. package/build/src/events/Events.d.ts +20 -0
  57. package/build/src/events/Events.js +19 -0
  58. package/build/src/events/Events.js.map +1 -0
  59. package/build/src/events/authorization/AuthorizationEventTypes.d.ts +22 -0
  60. package/build/src/events/authorization/AuthorizationEventTypes.js +23 -0
  61. package/build/src/events/authorization/AuthorizationEventTypes.js.map +1 -0
  62. package/build/src/events/authorization/AuthorizationEvents.d.ts +34 -0
  63. package/build/src/events/authorization/AuthorizationEvents.js +55 -0
  64. package/build/src/events/authorization/AuthorizationEvents.js.map +1 -0
  65. package/build/src/events/cookies/CookieEventTypes.d.ts +13 -0
  66. package/build/src/events/cookies/CookieEventTypes.js +14 -0
  67. package/build/src/events/cookies/CookieEventTypes.js.map +1 -0
  68. package/build/src/events/cookies/CookieEvents.d.ts +90 -0
  69. package/build/src/events/cookies/CookieEvents.js +126 -0
  70. package/build/src/events/cookies/CookieEvents.js.map +1 -0
  71. package/build/src/events/encryption/EncryptionEventTypes.d.ts +4 -0
  72. package/build/src/events/encryption/EncryptionEventTypes.js +5 -0
  73. package/build/src/events/encryption/EncryptionEventTypes.js.map +1 -0
  74. package/build/src/events/encryption/EncryptionEvents.d.ts +36 -0
  75. package/build/src/events/encryption/EncryptionEvents.js +35 -0
  76. package/build/src/events/encryption/EncryptionEvents.js.map +1 -0
  77. package/build/src/events/environment/EnvironmentEventTypes.d.ts +3 -0
  78. package/build/src/events/environment/EnvironmentEventTypes.js +4 -0
  79. package/build/src/events/environment/EnvironmentEventTypes.js.map +1 -0
  80. package/build/src/events/environment/EnvironmentEvents.d.ts +15 -0
  81. package/build/src/events/environment/EnvironmentEvents.js +19 -0
  82. package/build/src/events/environment/EnvironmentEvents.js.map +1 -0
  83. package/build/src/events/models/ClientCertificateEvents.d.ts +56 -0
  84. package/build/src/events/models/ClientCertificateEvents.js +80 -0
  85. package/build/src/events/models/ClientCertificateEvents.js.map +1 -0
  86. package/build/src/events/models/ModelEventTypes.d.ts +47 -0
  87. package/build/src/events/models/ModelEventTypes.js +48 -0
  88. package/build/src/events/models/ModelEventTypes.js.map +1 -0
  89. package/build/src/events/models/ModelEvents.d.ts +6 -0
  90. package/build/src/events/models/ModelEvents.js +7 -0
  91. package/build/src/events/models/ModelEvents.js.map +1 -0
  92. package/build/src/events/models/ProjectEvents.d.ts +221 -0
  93. package/build/src/events/models/ProjectEvents.js +254 -0
  94. package/build/src/events/models/ProjectEvents.js.map +1 -0
  95. package/build/src/events/process/ProcessEventTypes.d.ts +5 -0
  96. package/build/src/events/process/ProcessEventTypes.js +6 -0
  97. package/build/src/events/process/ProcessEventTypes.js.map +1 -0
  98. package/build/src/events/process/ProcessEvents.d.ts +42 -0
  99. package/build/src/events/process/ProcessEvents.js +59 -0
  100. package/build/src/events/process/ProcessEvents.js.map +1 -0
  101. package/build/src/events/reporting/ReportingEventTypes.d.ts +3 -0
  102. package/build/src/events/reporting/ReportingEventTypes.js +4 -0
  103. package/build/src/events/reporting/ReportingEventTypes.js.map +1 -0
  104. package/build/src/events/reporting/ReportingEvents.d.ts +16 -0
  105. package/build/src/events/reporting/ReportingEvents.js +22 -0
  106. package/build/src/events/reporting/ReportingEvents.js.map +1 -0
  107. package/build/src/events/telemetry/TelemetryEventTypes.d.ts +10 -0
  108. package/build/src/events/telemetry/TelemetryEventTypes.js +11 -0
  109. package/build/src/events/telemetry/TelemetryEventTypes.js.map +1 -0
  110. package/build/src/events/telemetry/TelemetryEvents.d.ts +89 -0
  111. package/build/src/events/telemetry/TelemetryEvents.js +109 -0
  112. package/build/src/events/telemetry/TelemetryEvents.js.map +1 -0
  113. package/build/src/lib/cookies/Cookie.d.ts +123 -0
  114. package/build/src/lib/cookies/Cookie.js +257 -0
  115. package/build/src/lib/cookies/Cookie.js.map +1 -0
  116. package/build/src/lib/cookies/Cookies.d.ts +90 -0
  117. package/build/src/lib/cookies/Cookies.js +310 -0
  118. package/build/src/lib/cookies/Cookies.js.map +1 -0
  119. package/build/src/lib/cookies/Utils.d.ts +47 -0
  120. package/build/src/lib/cookies/Utils.js +163 -0
  121. package/build/src/lib/cookies/Utils.js.map +1 -0
  122. package/build/src/lib/headers/Headers.d.ts +67 -0
  123. package/build/src/lib/headers/Headers.js +202 -0
  124. package/build/src/lib/headers/Headers.js.map +1 -0
  125. package/build/src/lib/logging/DefaultLogger.d.ts +8 -0
  126. package/build/src/lib/logging/DefaultLogger.js +19 -0
  127. package/build/src/lib/logging/DefaultLogger.js.map +1 -0
  128. package/build/src/lib/logging/DummyLogger.d.ts +8 -0
  129. package/build/src/lib/logging/DummyLogger.js +21 -0
  130. package/build/src/lib/logging/DummyLogger.js.map +1 -0
  131. package/build/src/lib/logging/Logger.d.ts +14 -0
  132. package/build/src/lib/logging/Logger.js +3 -0
  133. package/build/src/lib/logging/Logger.js.map +1 -0
  134. package/build/src/lib/transformers/PayloadSerializer.d.ts +145 -0
  135. package/build/src/lib/transformers/PayloadSerializer.js +264 -0
  136. package/build/src/lib/transformers/PayloadSerializer.js.map +1 -0
  137. package/build/src/lib/transformers/Utils.d.ts +7 -0
  138. package/build/src/lib/transformers/Utils.js +19 -0
  139. package/build/src/lib/transformers/Utils.js.map +1 -0
  140. package/build/src/lib/uuid.d.ts +8 -0
  141. package/build/src/lib/uuid.js +38 -0
  142. package/build/src/lib/uuid.js.map +1 -0
  143. package/build/src/mocking/LegacyInterfaces.d.ts +47 -0
  144. package/build/src/mocking/LegacyInterfaces.js +2 -0
  145. package/build/src/mocking/LegacyInterfaces.js.map +1 -0
  146. package/build/src/mocking/LegacyMock.d.ts +24 -0
  147. package/build/src/mocking/LegacyMock.js +34 -0
  148. package/build/src/mocking/LegacyMock.js.map +1 -0
  149. package/build/src/mocking/legacy/Authorization.d.ts +19 -0
  150. package/build/src/mocking/legacy/Authorization.js +34 -0
  151. package/build/src/mocking/legacy/Authorization.js.map +1 -0
  152. package/build/src/mocking/legacy/Certificates.d.ts +54 -0
  153. package/build/src/mocking/legacy/Certificates.js +125 -0
  154. package/build/src/mocking/legacy/Certificates.js.map +1 -0
  155. package/build/src/mocking/legacy/Cookies.d.ts +19 -0
  156. package/build/src/mocking/legacy/Cookies.js +46 -0
  157. package/build/src/mocking/legacy/Cookies.js.map +1 -0
  158. package/build/src/mocking/legacy/HostRules.d.ts +20 -0
  159. package/build/src/mocking/legacy/HostRules.js +38 -0
  160. package/build/src/mocking/legacy/HostRules.js.map +1 -0
  161. package/build/src/mocking/legacy/Http.d.ts +78 -0
  162. package/build/src/mocking/legacy/Http.js +192 -0
  163. package/build/src/mocking/legacy/Http.js.map +1 -0
  164. package/build/src/mocking/legacy/HttpResponse.d.ts +22 -0
  165. package/build/src/mocking/legacy/HttpResponse.js +98 -0
  166. package/build/src/mocking/legacy/HttpResponse.js.map +1 -0
  167. package/build/src/mocking/legacy/RestApi.d.ts +13 -0
  168. package/build/src/mocking/legacy/RestApi.js +61 -0
  169. package/build/src/mocking/legacy/RestApi.js.map +1 -0
  170. package/build/src/mocking/legacy/Urls.d.ts +19 -0
  171. package/build/src/mocking/legacy/Urls.js +39 -0
  172. package/build/src/mocking/legacy/Urls.js.map +1 -0
  173. package/build/src/mocking/legacy/Variables.d.ts +17 -0
  174. package/build/src/mocking/legacy/Variables.js +50 -0
  175. package/build/src/mocking/legacy/Variables.js.map +1 -0
  176. package/build/src/models/ArcResponse.d.ts +63 -0
  177. package/build/src/models/ArcResponse.js +142 -0
  178. package/build/src/models/ArcResponse.js.map +1 -0
  179. package/build/src/models/Authorization.d.ts +452 -0
  180. package/build/src/models/Authorization.js +2 -0
  181. package/build/src/models/Authorization.js.map +1 -0
  182. package/build/src/models/AuthorizationData.d.ts +27 -0
  183. package/build/src/models/AuthorizationData.js +52 -0
  184. package/build/src/models/AuthorizationData.js.map +1 -0
  185. package/build/src/models/Backend.d.ts +71 -0
  186. package/build/src/models/Backend.js +2 -0
  187. package/build/src/models/Backend.js.map +1 -0
  188. package/build/src/models/ClientCertificate.d.ts +65 -0
  189. package/build/src/models/ClientCertificate.js +2 -0
  190. package/build/src/models/ClientCertificate.js.map +1 -0
  191. package/build/src/models/Environment.d.ts +125 -0
  192. package/build/src/models/Environment.js +215 -0
  193. package/build/src/models/Environment.js.map +1 -0
  194. package/build/src/models/ErrorResponse.d.ts +35 -0
  195. package/build/src/models/ErrorResponse.js +88 -0
  196. package/build/src/models/ErrorResponse.js.map +1 -0
  197. package/build/src/models/HistoryIndex.d.ts +43 -0
  198. package/build/src/models/HistoryIndex.js +53 -0
  199. package/build/src/models/HistoryIndex.js.map +1 -0
  200. package/build/src/models/HistoryRequest.d.ts +13 -0
  201. package/build/src/models/HistoryRequest.js +25 -0
  202. package/build/src/models/HistoryRequest.js.map +1 -0
  203. package/build/src/models/HostRule.d.ts +78 -0
  204. package/build/src/models/HostRule.js +134 -0
  205. package/build/src/models/HostRule.js.map +1 -0
  206. package/build/src/models/HttpCookie.d.ts +123 -0
  207. package/build/src/models/HttpCookie.js +209 -0
  208. package/build/src/models/HttpCookie.js.map +1 -0
  209. package/build/src/models/HttpProject.d.ts +455 -0
  210. package/build/src/models/HttpProject.js +987 -0
  211. package/build/src/models/HttpProject.js.map +1 -0
  212. package/build/src/models/HttpProjectListItem.d.ts +23 -0
  213. package/build/src/models/HttpProjectListItem.js +2 -0
  214. package/build/src/models/HttpProjectListItem.js.map +1 -0
  215. package/build/src/models/HttpRequest.d.ts +69 -0
  216. package/build/src/models/HttpRequest.js +92 -0
  217. package/build/src/models/HttpRequest.js.map +1 -0
  218. package/build/src/models/HttpResponse.d.ts +59 -0
  219. package/build/src/models/HttpResponse.js +116 -0
  220. package/build/src/models/HttpResponse.js.map +1 -0
  221. package/build/src/models/License.d.ts +52 -0
  222. package/build/src/models/License.js +91 -0
  223. package/build/src/models/License.js.map +1 -0
  224. package/build/src/models/ProjectDefinitionProperty.d.ts +34 -0
  225. package/build/src/models/ProjectDefinitionProperty.js +2 -0
  226. package/build/src/models/ProjectDefinitionProperty.js.map +1 -0
  227. package/build/src/models/ProjectFolder.d.ts +213 -0
  228. package/build/src/models/ProjectFolder.js +314 -0
  229. package/build/src/models/ProjectFolder.js.map +1 -0
  230. package/build/src/models/ProjectItem.d.ts +59 -0
  231. package/build/src/models/ProjectItem.js +119 -0
  232. package/build/src/models/ProjectItem.js.map +1 -0
  233. package/build/src/models/ProjectParent.d.ts +58 -0
  234. package/build/src/models/ProjectParent.js +77 -0
  235. package/build/src/models/ProjectParent.js.map +1 -0
  236. package/build/src/models/ProjectRequest.d.ts +118 -0
  237. package/build/src/models/ProjectRequest.js +238 -0
  238. package/build/src/models/ProjectRequest.js.map +1 -0
  239. package/build/src/models/ProjectSchema.d.ts +105 -0
  240. package/build/src/models/ProjectSchema.js +156 -0
  241. package/build/src/models/ProjectSchema.js.map +1 -0
  242. package/build/src/models/Property.d.ts +130 -0
  243. package/build/src/models/Property.js +392 -0
  244. package/build/src/models/Property.js.map +1 -0
  245. package/build/src/models/Provider.d.ts +52 -0
  246. package/build/src/models/Provider.js +75 -0
  247. package/build/src/models/Provider.js.map +1 -0
  248. package/build/src/models/Request.d.ts +157 -0
  249. package/build/src/models/Request.js +398 -0
  250. package/build/src/models/Request.js.map +1 -0
  251. package/build/src/models/RequestActions.d.ts +67 -0
  252. package/build/src/models/RequestActions.js +116 -0
  253. package/build/src/models/RequestActions.js.map +1 -0
  254. package/build/src/models/RequestAuthorization.d.ts +59 -0
  255. package/build/src/models/RequestAuthorization.js +85 -0
  256. package/build/src/models/RequestAuthorization.js.map +1 -0
  257. package/build/src/models/RequestConfig.d.ts +161 -0
  258. package/build/src/models/RequestConfig.js +246 -0
  259. package/build/src/models/RequestConfig.js.map +1 -0
  260. package/build/src/models/RequestLog.d.ts +70 -0
  261. package/build/src/models/RequestLog.js +133 -0
  262. package/build/src/models/RequestLog.js.map +1 -0
  263. package/build/src/models/RequestTime.d.ts +36 -0
  264. package/build/src/models/RequestTime.js +91 -0
  265. package/build/src/models/RequestTime.js.map +1 -0
  266. package/build/src/models/RequestUiMeta.d.ts +169 -0
  267. package/build/src/models/RequestUiMeta.js +120 -0
  268. package/build/src/models/RequestUiMeta.js.map +1 -0
  269. package/build/src/models/RequestsSize.d.ts +34 -0
  270. package/build/src/models/RequestsSize.js +52 -0
  271. package/build/src/models/RequestsSize.js.map +1 -0
  272. package/build/src/models/ResponseAuthorization.d.ts +54 -0
  273. package/build/src/models/ResponseAuthorization.js +82 -0
  274. package/build/src/models/ResponseAuthorization.js.map +1 -0
  275. package/build/src/models/ResponseRedirect.d.ts +73 -0
  276. package/build/src/models/ResponseRedirect.js +126 -0
  277. package/build/src/models/ResponseRedirect.js.map +1 -0
  278. package/build/src/models/RevisionInfo.d.ts +36 -0
  279. package/build/src/models/RevisionInfo.js +2 -0
  280. package/build/src/models/RevisionInfo.js.map +1 -0
  281. package/build/src/models/SentRequest.d.ts +62 -0
  282. package/build/src/models/SentRequest.js +93 -0
  283. package/build/src/models/SentRequest.js.map +1 -0
  284. package/build/src/models/SerializablePayload.d.ts +30 -0
  285. package/build/src/models/SerializablePayload.js +66 -0
  286. package/build/src/models/SerializablePayload.js.map +1 -0
  287. package/build/src/models/Server.d.ts +76 -0
  288. package/build/src/models/Server.js +121 -0
  289. package/build/src/models/Server.js.map +1 -0
  290. package/build/src/models/Thing.d.ts +56 -0
  291. package/build/src/models/Thing.js +85 -0
  292. package/build/src/models/Thing.js.map +1 -0
  293. package/build/src/models/Url.d.ts +51 -0
  294. package/build/src/models/Url.js +71 -0
  295. package/build/src/models/Url.js.map +1 -0
  296. package/build/src/models/User.d.ts +110 -0
  297. package/build/src/models/User.js +2 -0
  298. package/build/src/models/User.js.map +1 -0
  299. package/build/src/models/WebApi.d.ts +119 -0
  300. package/build/src/models/WebApi.js +175 -0
  301. package/build/src/models/WebApi.js.map +1 -0
  302. package/build/src/models/WebApiIndex.d.ts +70 -0
  303. package/build/src/models/WebApiIndex.js +72 -0
  304. package/build/src/models/WebApiIndex.js.map +1 -0
  305. package/build/src/models/Workspace.d.ts +98 -0
  306. package/build/src/models/Workspace.js +139 -0
  307. package/build/src/models/Workspace.js.map +1 -0
  308. package/build/src/models/actions/Action.d.ts +75 -0
  309. package/build/src/models/actions/Action.js +188 -0
  310. package/build/src/models/actions/Action.js.map +1 -0
  311. package/build/src/models/actions/ActionView.d.ts +15 -0
  312. package/build/src/models/actions/ActionView.js +33 -0
  313. package/build/src/models/actions/ActionView.js.map +1 -0
  314. package/build/src/models/actions/Condition.d.ts +81 -0
  315. package/build/src/models/actions/Condition.js +185 -0
  316. package/build/src/models/actions/Condition.js.map +1 -0
  317. package/build/src/models/actions/ConditionView.d.ts +17 -0
  318. package/build/src/models/actions/ConditionView.js +34 -0
  319. package/build/src/models/actions/ConditionView.js.map +1 -0
  320. package/build/src/models/actions/Enums.d.ts +26 -0
  321. package/build/src/models/actions/Enums.js +31 -0
  322. package/build/src/models/actions/Enums.js.map +1 -0
  323. package/build/src/models/actions/RunnableAction.d.ts +59 -0
  324. package/build/src/models/actions/RunnableAction.js +106 -0
  325. package/build/src/models/actions/RunnableAction.js.map +1 -0
  326. package/build/src/models/actions/runnable/DeleteCookieAction.d.ts +44 -0
  327. package/build/src/models/actions/runnable/DeleteCookieAction.js +92 -0
  328. package/build/src/models/actions/runnable/DeleteCookieAction.js.map +1 -0
  329. package/build/src/models/actions/runnable/Runnable.d.ts +8 -0
  330. package/build/src/models/actions/runnable/Runnable.js +4 -0
  331. package/build/src/models/actions/runnable/Runnable.js.map +1 -0
  332. package/build/src/models/actions/runnable/SetCookieAction.d.ts +87 -0
  333. package/build/src/models/actions/runnable/SetCookieAction.js +176 -0
  334. package/build/src/models/actions/runnable/SetCookieAction.js.map +1 -0
  335. package/build/src/models/actions/runnable/SetVariableAction.d.ts +31 -0
  336. package/build/src/models/actions/runnable/SetVariableAction.js +63 -0
  337. package/build/src/models/actions/runnable/SetVariableAction.js.map +1 -0
  338. package/build/src/models/actions/runnable/index.d.ts +7 -0
  339. package/build/src/models/actions/runnable/index.js +2 -0
  340. package/build/src/models/actions/runnable/index.js.map +1 -0
  341. package/build/src/models/legacy/DataExport.d.ts +168 -0
  342. package/build/src/models/legacy/DataExport.js +2 -0
  343. package/build/src/models/legacy/DataExport.js.map +1 -0
  344. package/build/src/models/legacy/Normalizer.d.ts +12 -0
  345. package/build/src/models/legacy/Normalizer.js +104 -0
  346. package/build/src/models/legacy/Normalizer.js.map +1 -0
  347. package/build/src/models/legacy/actions/Actions.d.ts +257 -0
  348. package/build/src/models/legacy/actions/Actions.js +2 -0
  349. package/build/src/models/legacy/actions/Actions.js.map +1 -0
  350. package/build/src/models/legacy/authorization/Authorization.d.ts +540 -0
  351. package/build/src/models/legacy/authorization/Authorization.js +3 -0
  352. package/build/src/models/legacy/authorization/Authorization.js.map +1 -0
  353. package/build/src/models/legacy/models/ApiTypes.d.ts +192 -0
  354. package/build/src/models/legacy/models/ApiTypes.js +2 -0
  355. package/build/src/models/legacy/models/ApiTypes.js.map +1 -0
  356. package/build/src/models/legacy/models/ArcLegacyProject.d.ts +37 -0
  357. package/build/src/models/legacy/models/ArcLegacyProject.js +2 -0
  358. package/build/src/models/legacy/models/ArcLegacyProject.js.map +1 -0
  359. package/build/src/models/legacy/models/AuthData.d.ts +14 -0
  360. package/build/src/models/legacy/models/AuthData.js +2 -0
  361. package/build/src/models/legacy/models/AuthData.js.map +1 -0
  362. package/build/src/models/legacy/models/ClientCertificate.d.ts +89 -0
  363. package/build/src/models/legacy/models/ClientCertificate.js +2 -0
  364. package/build/src/models/legacy/models/ClientCertificate.js.map +1 -0
  365. package/build/src/models/legacy/models/Cookies.d.ts +52 -0
  366. package/build/src/models/legacy/models/Cookies.js +2 -0
  367. package/build/src/models/legacy/models/Cookies.js.map +1 -0
  368. package/build/src/models/legacy/models/HostRule.d.ts +33 -0
  369. package/build/src/models/legacy/models/HostRule.js +2 -0
  370. package/build/src/models/legacy/models/HostRule.js.map +1 -0
  371. package/build/src/models/legacy/models/RestApi.d.ts +47 -0
  372. package/build/src/models/legacy/models/RestApi.js +2 -0
  373. package/build/src/models/legacy/models/RestApi.js.map +1 -0
  374. package/build/src/models/legacy/models/UrlHistory.d.ts +32 -0
  375. package/build/src/models/legacy/models/UrlHistory.js +2 -0
  376. package/build/src/models/legacy/models/UrlHistory.js.map +1 -0
  377. package/build/src/models/legacy/models/Variable.d.ts +38 -0
  378. package/build/src/models/legacy/models/Variable.js +2 -0
  379. package/build/src/models/legacy/models/Variable.js.map +1 -0
  380. package/build/src/models/legacy/request/ArcRequest.d.ts +387 -0
  381. package/build/src/models/legacy/request/ArcRequest.js +2 -0
  382. package/build/src/models/legacy/request/ArcRequest.js.map +1 -0
  383. package/build/src/models/legacy/request/ArcResponse.d.ts +166 -0
  384. package/build/src/models/legacy/request/ArcResponse.js +2 -0
  385. package/build/src/models/legacy/request/ArcResponse.js.map +1 -0
  386. package/build/src/models/legacy/request/HistoryData.d.ts +45 -0
  387. package/build/src/models/legacy/request/HistoryData.js +2 -0
  388. package/build/src/models/legacy/request/HistoryData.js.map +1 -0
  389. package/build/src/models/legacy/request/Legacy.d.ts +43 -0
  390. package/build/src/models/legacy/request/Legacy.js +2 -0
  391. package/build/src/models/legacy/request/Legacy.js.map +1 -0
  392. package/build/src/models/legacy/request/RequestBody.d.ts +82 -0
  393. package/build/src/models/legacy/request/RequestBody.js +2 -0
  394. package/build/src/models/legacy/request/RequestBody.js.map +1 -0
  395. package/build/src/models/transformers/ArcDexieTransformer.d.ts +108 -0
  396. package/build/src/models/transformers/ArcDexieTransformer.js +252 -0
  397. package/build/src/models/transformers/ArcDexieTransformer.js.map +1 -0
  398. package/build/src/models/transformers/ArcLegacyNormalizer.d.ts +42 -0
  399. package/build/src/models/transformers/ArcLegacyNormalizer.js +80 -0
  400. package/build/src/models/transformers/ArcLegacyNormalizer.js.map +1 -0
  401. package/build/src/models/transformers/ArcLegacyTransformer.d.ts +85 -0
  402. package/build/src/models/transformers/ArcLegacyTransformer.js +150 -0
  403. package/build/src/models/transformers/ArcLegacyTransformer.js.map +1 -0
  404. package/build/src/models/transformers/ArcPouchTransformer.d.ts +46 -0
  405. package/build/src/models/transformers/ArcPouchTransformer.js +170 -0
  406. package/build/src/models/transformers/ArcPouchTransformer.js.map +1 -0
  407. package/build/src/models/transformers/BaseTransformer.d.ts +48 -0
  408. package/build/src/models/transformers/BaseTransformer.js +104 -0
  409. package/build/src/models/transformers/BaseTransformer.js.map +1 -0
  410. package/build/src/models/transformers/ImportUtils.d.ts +44 -0
  411. package/build/src/models/transformers/ImportUtils.js +135 -0
  412. package/build/src/models/transformers/ImportUtils.js.map +1 -0
  413. package/build/src/models/transformers/LegacyDataExportToApiProject.d.ts +15 -0
  414. package/build/src/models/transformers/LegacyDataExportToApiProject.js +70 -0
  415. package/build/src/models/transformers/LegacyDataExportToApiProject.js.map +1 -0
  416. package/build/src/models/transformers/LegacyExportProcessor.d.ts +47 -0
  417. package/build/src/models/transformers/LegacyExportProcessor.js +219 -0
  418. package/build/src/models/transformers/LegacyExportProcessor.js.map +1 -0
  419. package/build/src/models/transformers/PostmanBackupTransformer.d.ts +96 -0
  420. package/build/src/models/transformers/PostmanBackupTransformer.js +188 -0
  421. package/build/src/models/transformers/PostmanBackupTransformer.js.map +1 -0
  422. package/build/src/models/transformers/PostmanDataTransformer.d.ts +9 -0
  423. package/build/src/models/transformers/PostmanDataTransformer.js +46 -0
  424. package/build/src/models/transformers/PostmanDataTransformer.js.map +1 -0
  425. package/build/src/models/transformers/PostmanTransformer.d.ts +49 -0
  426. package/build/src/models/transformers/PostmanTransformer.js +90 -0
  427. package/build/src/models/transformers/PostmanTransformer.js.map +1 -0
  428. package/build/src/models/transformers/PostmanV21Transformer.d.ts +125 -0
  429. package/build/src/models/transformers/PostmanV21Transformer.js +195 -0
  430. package/build/src/models/transformers/PostmanV21Transformer.js.map +1 -0
  431. package/build/src/models/transformers/PostmanV2Transformer.d.ts +123 -0
  432. package/build/src/models/transformers/PostmanV2Transformer.js +195 -0
  433. package/build/src/models/transformers/PostmanV2Transformer.js.map +1 -0
  434. package/build/src/models/transformers/har.d.ts +857 -0
  435. package/build/src/models/transformers/har.js +2 -0
  436. package/build/src/models/transformers/har.js.map +1 -0
  437. package/build/src/runtime/actions/ActionRunner.d.ts +17 -0
  438. package/build/src/runtime/actions/ActionRunner.js +74 -0
  439. package/build/src/runtime/actions/ActionRunner.js.map +1 -0
  440. package/build/src/runtime/actions/ConditionRunner.d.ts +74 -0
  441. package/build/src/runtime/actions/ConditionRunner.js +185 -0
  442. package/build/src/runtime/actions/ConditionRunner.js.map +1 -0
  443. package/build/src/runtime/actions/RunnableCondition.d.ts +28 -0
  444. package/build/src/runtime/actions/RunnableCondition.js +51 -0
  445. package/build/src/runtime/actions/RunnableCondition.js.map +1 -0
  446. package/build/src/runtime/actions/runnable/ActionRunnable.d.ts +13 -0
  447. package/build/src/runtime/actions/runnable/ActionRunnable.js +13 -0
  448. package/build/src/runtime/actions/runnable/ActionRunnable.js.map +1 -0
  449. package/build/src/runtime/actions/runnable/DeleteCookieRunnable.d.ts +7 -0
  450. package/build/src/runtime/actions/runnable/DeleteCookieRunnable.js +36 -0
  451. package/build/src/runtime/actions/runnable/DeleteCookieRunnable.js.map +1 -0
  452. package/build/src/runtime/actions/runnable/SetCookieRunnable.d.ts +10 -0
  453. package/build/src/runtime/actions/runnable/SetCookieRunnable.js +89 -0
  454. package/build/src/runtime/actions/runnable/SetCookieRunnable.js.map +1 -0
  455. package/build/src/runtime/actions/runnable/SetVariableRunnable.d.ts +10 -0
  456. package/build/src/runtime/actions/runnable/SetVariableRunnable.js +49 -0
  457. package/build/src/runtime/actions/runnable/SetVariableRunnable.js.map +1 -0
  458. package/build/src/runtime/http-engine/ArcEngine.d.ts +218 -0
  459. package/build/src/runtime/http-engine/ArcEngine.js +1034 -0
  460. package/build/src/runtime/http-engine/ArcEngine.js.map +1 -0
  461. package/build/src/runtime/http-engine/Errors.d.ts +10 -0
  462. package/build/src/runtime/http-engine/Errors.js +14 -0
  463. package/build/src/runtime/http-engine/Errors.js.map +1 -0
  464. package/build/src/runtime/http-engine/FormData.d.ts +16 -0
  465. package/build/src/runtime/http-engine/FormData.js +72 -0
  466. package/build/src/runtime/http-engine/FormData.js.map +1 -0
  467. package/build/src/runtime/http-engine/HttpEngine.d.ts +294 -0
  468. package/build/src/runtime/http-engine/HttpEngine.js +736 -0
  469. package/build/src/runtime/http-engine/HttpEngine.js.map +1 -0
  470. package/build/src/runtime/http-engine/HttpErrorCodes.d.ts +15 -0
  471. package/build/src/runtime/http-engine/HttpErrorCodes.js +223 -0
  472. package/build/src/runtime/http-engine/HttpErrorCodes.js.map +1 -0
  473. package/build/src/runtime/http-engine/NodeEngine.d.ts +154 -0
  474. package/build/src/runtime/http-engine/NodeEngine.js +761 -0
  475. package/build/src/runtime/http-engine/NodeEngine.js.map +1 -0
  476. package/build/src/runtime/http-engine/NodeEngineDirect.d.ts +113 -0
  477. package/build/src/runtime/http-engine/NodeEngineDirect.js +443 -0
  478. package/build/src/runtime/http-engine/NodeEngineDirect.js.map +1 -0
  479. package/build/src/runtime/http-engine/PayloadSupport.d.ts +26 -0
  480. package/build/src/runtime/http-engine/PayloadSupport.js +78 -0
  481. package/build/src/runtime/http-engine/PayloadSupport.js.map +1 -0
  482. package/build/src/runtime/http-engine/RequestUtils.d.ts +66 -0
  483. package/build/src/runtime/http-engine/RequestUtils.js +144 -0
  484. package/build/src/runtime/http-engine/RequestUtils.js.map +1 -0
  485. package/build/src/runtime/http-engine/ntlm/Des.d.ts +4 -0
  486. package/build/src/runtime/http-engine/ntlm/Des.js +343 -0
  487. package/build/src/runtime/http-engine/ntlm/Des.js.map +1 -0
  488. package/build/src/runtime/http-engine/ntlm/MD4.d.ts +13 -0
  489. package/build/src/runtime/http-engine/ntlm/MD4.js +120 -0
  490. package/build/src/runtime/http-engine/ntlm/MD4.js.map +1 -0
  491. package/build/src/runtime/http-engine/ntlm/NtlmAuth.d.ts +26 -0
  492. package/build/src/runtime/http-engine/ntlm/NtlmAuth.js +159 -0
  493. package/build/src/runtime/http-engine/ntlm/NtlmAuth.js.map +1 -0
  494. package/build/src/runtime/http-engine/ntlm/NtlmMessage.d.ts +10 -0
  495. package/build/src/runtime/http-engine/ntlm/NtlmMessage.js +51 -0
  496. package/build/src/runtime/http-engine/ntlm/NtlmMessage.js.map +1 -0
  497. package/build/src/runtime/modules/BasicAuthCache.d.ts +39 -0
  498. package/build/src/runtime/modules/BasicAuthCache.js +125 -0
  499. package/build/src/runtime/modules/BasicAuthCache.js.map +1 -0
  500. package/build/src/runtime/modules/ExecutionResponse.d.ts +4 -0
  501. package/build/src/runtime/modules/ExecutionResponse.js +6 -0
  502. package/build/src/runtime/modules/ExecutionResponse.js.map +1 -0
  503. package/build/src/runtime/modules/ModulesRegistry.d.ts +93 -0
  504. package/build/src/runtime/modules/ModulesRegistry.js +69 -0
  505. package/build/src/runtime/modules/ModulesRegistry.js.map +1 -0
  506. package/build/src/runtime/modules/RequestAuthorization.d.ts +6 -0
  507. package/build/src/runtime/modules/RequestAuthorization.js +114 -0
  508. package/build/src/runtime/modules/RequestAuthorization.js.map +1 -0
  509. package/build/src/runtime/modules/RequestCookies.d.ts +17 -0
  510. package/build/src/runtime/modules/RequestCookies.js +133 -0
  511. package/build/src/runtime/modules/RequestCookies.js.map +1 -0
  512. package/build/src/runtime/node/ProjectRunner.d.ts +125 -0
  513. package/build/src/runtime/node/ProjectRunner.js +178 -0
  514. package/build/src/runtime/node/ProjectRunner.js.map +1 -0
  515. package/build/src/runtime/node/RequestFactory.d.ts +139 -0
  516. package/build/src/runtime/node/RequestFactory.js +397 -0
  517. package/build/src/runtime/node/RequestFactory.js.map +1 -0
  518. package/build/src/runtime/node/VariablesStore.d.ts +9 -0
  519. package/build/src/runtime/node/VariablesStore.js +19 -0
  520. package/build/src/runtime/node/VariablesStore.js.map +1 -0
  521. package/build/src/runtime/variables/Cache.d.ts +23 -0
  522. package/build/src/runtime/variables/Cache.js +51 -0
  523. package/build/src/runtime/variables/Cache.js.map +1 -0
  524. package/build/src/runtime/variables/EvalFunctions.d.ts +58 -0
  525. package/build/src/runtime/variables/EvalFunctions.js +123 -0
  526. package/build/src/runtime/variables/EvalFunctions.js.map +1 -0
  527. package/build/src/runtime/variables/ProjectVariables.d.ts +5 -0
  528. package/build/src/runtime/variables/ProjectVariables.js +6 -0
  529. package/build/src/runtime/variables/ProjectVariables.js.map +1 -0
  530. package/build/src/runtime/variables/VariablesProcessor.d.ts +165 -0
  531. package/build/src/runtime/variables/VariablesProcessor.js +515 -0
  532. package/build/src/runtime/variables/VariablesProcessor.js.map +1 -0
  533. package/build/src/runtime/variables/VariablesTokenizer.d.ts +26 -0
  534. package/build/src/runtime/variables/VariablesTokenizer.js +53 -0
  535. package/build/src/runtime/variables/VariablesTokenizer.js.map +1 -0
  536. package/package.json +97 -0
  537. package/readme.md +51 -0
@@ -0,0 +1,76 @@
1
+ export declare const Kind = "ARC#Server";
2
+ export interface IServer {
3
+ kind: 'ARC#Server';
4
+ /**
5
+ * The base URI of the server.
6
+ *
7
+ * Note, the URL can contain URI templates (e.g. `http://{host}.api.com/v1`)
8
+ * In this case the variable is replaced with the system or project variables.
9
+ *
10
+ * For simplicity, the `uri` can be the full base URI with protocol, host, and the `basePath`
11
+ */
12
+ uri: string;
13
+ /**
14
+ * Usually included in the `uri`. When the `uri` is missing a protocol
15
+ * this is then used.
16
+ */
17
+ protocol?: string;
18
+ /**
19
+ * The base path for the server. It starts with the `/`.
20
+ * When set, it is appended to the `uri` value.
21
+ */
22
+ basePath?: string;
23
+ /**
24
+ * Optional description of the server.
25
+ */
26
+ description?: string;
27
+ }
28
+ export declare class Server {
29
+ kind: string;
30
+ /**
31
+ * The base URI of the server.
32
+ *
33
+ * Note, the URL can contain URI templates (e.g. `http://{host}.api.com/v1`)
34
+ * In this case the variable is replaced with the system or project variables.
35
+ *
36
+ * For simplicity, the `uri` can be the full base URI with protocol, host, and the `basePath`
37
+ */
38
+ uri: string;
39
+ /**
40
+ * Usually included in the `uri`. When the `uri` is missing a protocol
41
+ * this is then used.
42
+ */
43
+ protocol?: string;
44
+ /**
45
+ * The base path for the server. It starts with the `/`.
46
+ * When set, it is appended to the `uri` value.
47
+ */
48
+ basePath?: string;
49
+ /**
50
+ * Optional description of the server.
51
+ */
52
+ description?: string;
53
+ /**
54
+ * Creates a server definition from a base URI.
55
+ */
56
+ static fromUri(uri: string): Server;
57
+ /**
58
+ * @param input The server definition used to restore the state.
59
+ */
60
+ constructor(input?: string | IServer);
61
+ /**
62
+ * Creates a new server clearing anything that is so far defined.
63
+ *
64
+ * Note, this throws an error when the server is not an ARC server.
65
+ */
66
+ new(init: IServer): void;
67
+ /**
68
+ * Checks whether the input is a definition of a server.
69
+ */
70
+ static isServer(input: unknown): boolean;
71
+ toJSON(): IServer;
72
+ /**
73
+ * Constructs the final URI from the server configuration.
74
+ */
75
+ readUri(): string;
76
+ }
@@ -0,0 +1,121 @@
1
+ export const Kind = 'ARC#Server';
2
+ export class Server {
3
+ kind = Kind;
4
+ /**
5
+ * The base URI of the server.
6
+ *
7
+ * Note, the URL can contain URI templates (e.g. `http://{host}.api.com/v1`)
8
+ * In this case the variable is replaced with the system or project variables.
9
+ *
10
+ * For simplicity, the `uri` can be the full base URI with protocol, host, and the `basePath`
11
+ */
12
+ uri = '';
13
+ /**
14
+ * Usually included in the `uri`. When the `uri` is missing a protocol
15
+ * this is then used.
16
+ */
17
+ protocol;
18
+ /**
19
+ * The base path for the server. It starts with the `/`.
20
+ * When set, it is appended to the `uri` value.
21
+ */
22
+ basePath;
23
+ /**
24
+ * Optional description of the server.
25
+ */
26
+ description;
27
+ /**
28
+ * Creates a server definition from a base URI.
29
+ */
30
+ static fromUri(uri) {
31
+ const srv = new Server({
32
+ kind: Kind,
33
+ uri,
34
+ });
35
+ return srv;
36
+ }
37
+ /**
38
+ * @param input The server definition used to restore the state.
39
+ */
40
+ constructor(input) {
41
+ let init;
42
+ if (typeof input === 'string') {
43
+ init = JSON.parse(input);
44
+ }
45
+ else if (typeof input === 'object') {
46
+ init = input;
47
+ }
48
+ else {
49
+ init = {
50
+ kind: Kind,
51
+ uri: '',
52
+ };
53
+ }
54
+ this.new(init);
55
+ }
56
+ /**
57
+ * Creates a new server clearing anything that is so far defined.
58
+ *
59
+ * Note, this throws an error when the server is not an ARC server.
60
+ */
61
+ new(init) {
62
+ if (!Server.isServer(init)) {
63
+ throw new Error(`Not an ARC server.`);
64
+ }
65
+ const { uri, description, protocol, basePath } = init;
66
+ this.kind = Kind;
67
+ this.uri = uri;
68
+ this.description = description;
69
+ this.protocol = protocol;
70
+ this.basePath = basePath;
71
+ }
72
+ /**
73
+ * Checks whether the input is a definition of a server.
74
+ */
75
+ static isServer(input) {
76
+ const typed = input;
77
+ if (!input || typeof typed.uri === 'undefined' || typed.kind !== Kind) {
78
+ return false;
79
+ }
80
+ return true;
81
+ }
82
+ toJSON() {
83
+ const result = {
84
+ kind: Kind,
85
+ uri: this.uri,
86
+ };
87
+ if (this.description) {
88
+ result.description = this.description;
89
+ }
90
+ if (this.protocol) {
91
+ result.protocol = this.protocol;
92
+ }
93
+ if (this.basePath) {
94
+ result.basePath = this.basePath;
95
+ }
96
+ return result;
97
+ }
98
+ /**
99
+ * Constructs the final URI from the server configuration.
100
+ */
101
+ readUri() {
102
+ const { uri, protocol, basePath } = this;
103
+ let result = '';
104
+ if (!uri) {
105
+ return result;
106
+ }
107
+ let tmp = uri;
108
+ if (protocol && !uri.includes('://')) {
109
+ tmp = `${protocol}//${uri}`;
110
+ }
111
+ result = tmp;
112
+ if (basePath) {
113
+ if (result.endsWith('/')) {
114
+ result = result.substring(0, result.length - 1);
115
+ }
116
+ result += basePath.startsWith('/') ? basePath : `/${basePath}`;
117
+ }
118
+ return result;
119
+ }
120
+ }
121
+ //# sourceMappingURL=Server.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Server.js","sourceRoot":"","sources":["../../../src/models/Server.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,56 @@
1
+ export declare const Kind = "ARC#Thing";
2
+ /**
3
+ * An interface describing a base metadata of a thing.
4
+ */
5
+ export declare interface IThing {
6
+ /**
7
+ * The data kind. The application ignores the input with an unknown `kind`, unless it can be determined from the context.
8
+ */
9
+ kind?: 'ARC#Thing';
10
+ /**
11
+ * The name of the thing.
12
+ */
13
+ name?: string;
14
+ /**
15
+ * The description of the thing.
16
+ */
17
+ description?: string;
18
+ /**
19
+ * The version number of the thing.
20
+ */
21
+ version?: string;
22
+ }
23
+ export declare class Thing {
24
+ kind: string;
25
+ /**
26
+ * The name of the thing.
27
+ */
28
+ name?: string;
29
+ /**
30
+ * The description of the thing.
31
+ */
32
+ description?: string;
33
+ /**
34
+ * The version number of the thing.
35
+ */
36
+ version?: string;
37
+ /**
38
+ * Creates a basic description from a name.
39
+ */
40
+ static fromName(name: string): Thing;
41
+ /**
42
+ * @param input The thing definition used to restore the state.
43
+ */
44
+ constructor(input?: string | IThing);
45
+ /**
46
+ * Creates a new thing clearing anything that is so far defined.
47
+ *
48
+ * Note, this throws an error when the server is not an ARC thing.
49
+ */
50
+ new(init: IThing): void;
51
+ /**
52
+ * Checks whether the input is a definition of a server.
53
+ */
54
+ static isThing(input: unknown): boolean;
55
+ toJSON(): IThing;
56
+ }
@@ -0,0 +1,85 @@
1
+ export const Kind = 'ARC#Thing';
2
+ export class Thing {
3
+ kind = Kind;
4
+ /**
5
+ * The name of the thing.
6
+ */
7
+ name;
8
+ /**
9
+ * The description of the thing.
10
+ */
11
+ description;
12
+ /**
13
+ * The version number of the thing.
14
+ */
15
+ version;
16
+ /**
17
+ * Creates a basic description from a name.
18
+ */
19
+ static fromName(name) {
20
+ const thing = new Thing({
21
+ name,
22
+ kind: Kind,
23
+ });
24
+ return thing;
25
+ }
26
+ /**
27
+ * @param input The thing definition used to restore the state.
28
+ */
29
+ constructor(input) {
30
+ let init;
31
+ if (typeof input === 'string') {
32
+ init = JSON.parse(input);
33
+ }
34
+ else if (typeof input === 'object') {
35
+ init = input;
36
+ }
37
+ else {
38
+ init = {
39
+ kind: Kind,
40
+ };
41
+ }
42
+ this.new(init);
43
+ }
44
+ /**
45
+ * Creates a new thing clearing anything that is so far defined.
46
+ *
47
+ * Note, this throws an error when the server is not an ARC thing.
48
+ */
49
+ new(init) {
50
+ if (!Thing.isThing(init)) {
51
+ throw new Error(`Not an ARC thing.`);
52
+ }
53
+ const { description, name, version } = init;
54
+ this.kind = Kind;
55
+ this.name = name;
56
+ this.description = description;
57
+ this.version = version;
58
+ }
59
+ /**
60
+ * Checks whether the input is a definition of a server.
61
+ */
62
+ static isThing(input) {
63
+ const typed = input;
64
+ if (input && typed.kind === Kind) {
65
+ return true;
66
+ }
67
+ return false;
68
+ }
69
+ toJSON() {
70
+ const result = {
71
+ kind: Kind,
72
+ };
73
+ if (this.name) {
74
+ result.name = this.name;
75
+ }
76
+ if (this.description) {
77
+ result.description = this.description;
78
+ }
79
+ if (this.version) {
80
+ result.version = this.version;
81
+ }
82
+ return result;
83
+ }
84
+ }
85
+ //# sourceMappingURL=Thing.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Thing.js","sourceRoot":"","sources":["../../../src/models/Thing.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,IAAI,GAAG,WAAW,CAAC;AAwBhC,MAAM,OAAO,KAAK;IAChB,IAAI,GAAG,IAAI,CAAC;IACZ;;OAEG;IACH,IAAI,CAAU;IACd;;OAEG;IACH,WAAW,CAAU;IACrB;;OAEG;IACH,OAAO,CAAU;IAEjB;;OAEG;IACH,MAAM,CAAC,QAAQ,CAAC,IAAY;QAC1B,MAAM,KAAK,GAAG,IAAI,KAAK,CAAC;YACtB,IAAI;YACJ,IAAI,EAAE,IAAI;SACX,CAAC,CAAC;QACH,OAAO,KAAK,CAAC;IACf,CAAC;IAED;;OAEG;IACH,YAAY,KAAuB;QACjC,IAAI,IAAY,CAAC;QACjB,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;YAC7B,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;SAC1B;aAAM,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;YACpC,IAAI,GAAG,KAAK,CAAC;SACd;aAAM;YACL,IAAI,GAAG;gBACL,IAAI,EAAE,IAAI;aACX,CAAC;SACH;QACD,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACjB,CAAC;IAED;;;;OAIG;IACH,GAAG,CAAC,IAAY;QACd,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;YACxB,MAAM,IAAI,KAAK,CAAC,mBAAmB,CAAC,CAAC;SACtC;QACD,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC;QAC5C,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,OAAO,CAAC,KAAc;QAC3B,MAAM,KAAK,GAAG,KAAe,CAAC;QAC9B,IAAI,KAAK,IAAI,KAAK,CAAC,IAAI,KAAK,IAAI,EAAE;YAChC,OAAO,IAAI,CAAC;SACb;QACD,OAAO,KAAK,CAAC;IACf,CAAC;IAED,MAAM;QACJ,MAAM,MAAM,GAAW;YACrB,IAAI,EAAE,IAAI;SACX,CAAC;QACF,IAAI,IAAI,CAAC,IAAI,EAAE;YACb,MAAM,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;SACzB;QACD,IAAI,IAAI,CAAC,WAAW,EAAE;YACpB,MAAM,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC;SACvC;QACD,IAAI,IAAI,CAAC,OAAO,EAAE;YAChB,MAAM,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;SAC/B;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;CACF"}
@@ -0,0 +1,51 @@
1
+ export interface IUrl {
2
+ /**
3
+ * A number of times the URL was used
4
+ */
5
+ cnt: number;
6
+ /**
7
+ * Last use timestamp.
8
+ */
9
+ time: number;
10
+ /**
11
+ * The request URL stored in the history.
12
+ */
13
+ url: string;
14
+ /**
15
+ * A timestamp of the midnight that corresponds to the `time` property.
16
+ */
17
+ midnight?: number;
18
+ }
19
+ /**
20
+ * An object representing an URL stored in the data store.
21
+ * This is an URL used to make a request.
22
+ */
23
+ export declare class Url {
24
+ /**
25
+ * A number of times the URL was used
26
+ */
27
+ cnt: number;
28
+ /**
29
+ * Last use timestamp.
30
+ */
31
+ time: number;
32
+ /**
33
+ * The request URL stored in the history.
34
+ */
35
+ url: string;
36
+ /**
37
+ * A timestamp of the midnight that corresponds to the `time` property.
38
+ */
39
+ midnight?: number;
40
+ /**
41
+ * @param input The environment definition used to restore the state.
42
+ */
43
+ constructor(input: string | IUrl);
44
+ /**
45
+ * Creates a new environment clearing anything that is so far defined.
46
+ *
47
+ * Note, this throws an error when the environment is not an ARC environment.
48
+ */
49
+ new(init: IUrl): void;
50
+ toJSON(): IUrl;
51
+ }
@@ -0,0 +1,71 @@
1
+ /**
2
+ * An object representing an URL stored in the data store.
3
+ * This is an URL used to make a request.
4
+ */
5
+ export class Url {
6
+ /**
7
+ * A number of times the URL was used
8
+ */
9
+ cnt = 0;
10
+ /**
11
+ * Last use timestamp.
12
+ */
13
+ time = Date.now();
14
+ /**
15
+ * The request URL stored in the history.
16
+ */
17
+ url = '';
18
+ /**
19
+ * A timestamp of the midnight that corresponds to the `time` property.
20
+ */
21
+ midnight;
22
+ /**
23
+ * @param input The environment definition used to restore the state.
24
+ */
25
+ constructor(input) {
26
+ let init;
27
+ if (typeof input === 'string') {
28
+ init = JSON.parse(input);
29
+ }
30
+ else if (typeof input === 'object') {
31
+ init = input;
32
+ }
33
+ else {
34
+ init = {
35
+ cnt: 0,
36
+ time: Date.now(),
37
+ url: '',
38
+ };
39
+ }
40
+ this.new(init);
41
+ }
42
+ /**
43
+ * Creates a new environment clearing anything that is so far defined.
44
+ *
45
+ * Note, this throws an error when the environment is not an ARC environment.
46
+ */
47
+ new(init) {
48
+ const { url = '', cnt = 0, time = Date.now(), midnight } = init;
49
+ this.url = url;
50
+ this.cnt = cnt;
51
+ this.time = time;
52
+ if (midnight) {
53
+ this.midnight = midnight;
54
+ }
55
+ else {
56
+ const d = new Date(this.time);
57
+ d.setHours(0, 0, 0, 0);
58
+ this.midnight = d.getTime();
59
+ }
60
+ }
61
+ toJSON() {
62
+ const result = {
63
+ url: this.url,
64
+ cnt: this.cnt,
65
+ time: this.time,
66
+ midnight: this.midnight,
67
+ };
68
+ return result;
69
+ }
70
+ }
71
+ //# sourceMappingURL=Url.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Url.js","sourceRoot":"","sources":["../../../src/models/Url.ts"],"names":[],"mappings":"AAoBA;;;GAGG;AACH,MAAM,OAAO,GAAG;IACd;;OAEG;IACH,GAAG,GAAG,CAAC,CAAC;IACR;;OAEG;IACH,IAAI,GAAU,IAAI,CAAC,GAAG,EAAE,CAAC;IACzB;;OAEG;IACH,GAAG,GAAG,EAAE,CAAC;IACT;;OAEG;IACH,QAAQ,CAAU;IAElB;;OAEG;IACH,YAAY,KAAkB;QAC5B,IAAI,IAAU,CAAC;QACf,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;YAC7B,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;SAC1B;aAAM,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;YACpC,IAAI,GAAG,KAAK,CAAC;SACd;aAAM;YACL,IAAI,GAAG;gBACL,GAAG,EAAE,CAAC;gBACN,IAAI,EAAE,IAAI,CAAC,GAAG,EAAE;gBAChB,GAAG,EAAE,EAAE;aACR,CAAC;SACH;QACD,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACjB,CAAC;IAED;;;;OAIG;IACH,GAAG,CAAC,IAAU;QACZ,MAAM,EAAE,GAAG,GAAC,EAAE,EAAE,GAAG,GAAC,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC,GAAG,EAAE,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAC;QAC5D,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACf,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,QAAQ,EAAE;YACZ,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;SAC1B;aAAM;YACL,MAAM,CAAC,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAC9B,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAA;YACtB,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC,OAAO,EAAE,CAAC;SAC7B;IACH,CAAC;IAED,MAAM;QACJ,MAAM,MAAM,GAAS;YACnB,GAAG,EAAE,IAAI,CAAC,GAAG;YACb,GAAG,EAAE,IAAI,CAAC,GAAG;YACb,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,QAAQ,EAAE,IAAI,CAAC,QAAQ;SACxB,CAAC;QACF,OAAO,MAAM,CAAC;IAChB,CAAC;CACF"}
@@ -0,0 +1,110 @@
1
+ export declare type AccessControlLevel = 'read' | 'comment' | 'write' | 'admin' | 'owner';
2
+ /**
3
+ * This is used in the communication with the backend to add/change user's access to the resource.
4
+ */
5
+ export interface IUserAccessOperation {
6
+ /**
7
+ * The user id.
8
+ */
9
+ uid: string;
10
+ }
11
+ export interface IUserAccessAddOperation extends IUserAccessOperation {
12
+ op: "add";
13
+ /**
14
+ * The level that the user has access to.
15
+ */
16
+ value: AccessControlLevel;
17
+ }
18
+ export interface IUserAccessRemoveOperation extends IUserAccessOperation {
19
+ op: "remove";
20
+ }
21
+ export declare type UserAccessOperation = IUserAccessAddOperation | IUserAccessRemoveOperation;
22
+ /**
23
+ * The definition of an access control.
24
+ * The user may have access to a workspace so this is the object describing the level of the workspace.
25
+ */
26
+ export interface IAccessControl {
27
+ /**
28
+ * The data store key of the referenced object the user has access to.
29
+ */
30
+ key: string;
31
+ /**
32
+ * The level that the user has access to.
33
+ */
34
+ level: AccessControlLevel;
35
+ }
36
+ export interface IEmail {
37
+ /**
38
+ * When available the email of the user.
39
+ */
40
+ email?: string;
41
+ /**
42
+ * Whether the `email` was verified.
43
+ * Not verified emails should have limited use in the system.
44
+ */
45
+ verified?: boolean;
46
+ }
47
+ export interface IUserPicture {
48
+ /**
49
+ * When available, the URL to the user's picture image.
50
+ */
51
+ url?: string;
52
+ /**
53
+ * Alternative to the `imageUrl`. When set it is a data URL value of the image.
54
+ */
55
+ data?: string;
56
+ }
57
+ export declare const Kind = "ARC#User";
58
+ /**
59
+ * Represents a user in the system.
60
+ * This can be embedded in various situations like project's revision history,
61
+ * ACL, Authorization, etc.
62
+ *
63
+ * Note, the store implementation may have additional fields that support external
64
+ * identity providers. However, this is not exposed to the user through the API.
65
+ */
66
+ export interface IUser {
67
+ /**
68
+ * Data store key of the user.
69
+ */
70
+ key: string;
71
+ /**
72
+ * The display name of the user.
73
+ */
74
+ name: string;
75
+ /**
76
+ * When available the email of the user.
77
+ */
78
+ email?: IEmail[];
79
+ /**
80
+ * The user picture to render.
81
+ */
82
+ picture?: IUserPicture;
83
+ /**
84
+ * General purpose tags field.
85
+ */
86
+ tags?: string[];
87
+ /**
88
+ * Optional user locale information.
89
+ */
90
+ locale?: string;
91
+ /**
92
+ * Optional metadata related to the auth provider.
93
+ */
94
+ provider?: unknown;
95
+ }
96
+ /**
97
+ * This object may be created for each user in the system.
98
+ * It describes to which spaces user has access to.
99
+ */
100
+ export interface IUserSpaces {
101
+ /**
102
+ * The list of access to the spaces for the user.
103
+ */
104
+ spaces: IAccessControl[];
105
+ /**
106
+ * The data store key of the user that has access to the space.
107
+ * This is also the key of the entry.
108
+ */
109
+ user: string;
110
+ }
@@ -0,0 +1,2 @@
1
+ export const Kind = 'ARC#User';
2
+ //# sourceMappingURL=User.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"User.js","sourceRoot":"","sources":["../../../src/models/User.ts"],"names":[],"mappings":"AAgEA,MAAM,CAAC,MAAM,IAAI,GAAG,UAAU,CAAC"}