@nlabs/reaktor 0.10.1 → 0.10.2

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 (451) hide show
  1. package/coverage/actions/index.html +21 -36
  2. package/coverage/actions/notifications.ts.html +223 -0
  3. package/coverage/actions/posts.ts.html +2356 -0
  4. package/coverage/adapters/arangoAdapter.ts.html +170 -20
  5. package/coverage/adapters/fileAdapter.ts.html +445 -0
  6. package/coverage/adapters/index.html +72 -42
  7. package/coverage/adapters/postAdapter.ts.html +436 -0
  8. package/coverage/adapters/reaktorAdapter.ts.html +201 -18
  9. package/coverage/adapters/tagAdapter.ts.html +274 -25
  10. package/coverage/adapters/userAdapter.ts.html +829 -0
  11. package/coverage/analyticsUtils.ts.html +286 -0
  12. package/coverage/config.ts.html +766 -0
  13. package/coverage/index.html +81 -51
  14. package/coverage/mocks/group.ts.html +5 -5
  15. package/coverage/mocks/image.ts.html +18 -12
  16. package/coverage/mocks/index.html +37 -7
  17. package/coverage/mocks/post.ts.html +8 -8
  18. package/coverage/mocks/tag.ts.html +2 -2
  19. package/coverage/mocks/user.ts.html +18 -15
  20. package/coverage/testUtils.ts.html +1309 -0
  21. package/coverage/translationQueue.ts.html +592 -0
  22. package/coverage/types/error.types.ts.html +148 -0
  23. package/coverage/types/index.html +2 -2
  24. package/coverage/utils/adapterUtils.ts.html +39 -27
  25. package/coverage/utils/analyticsUtils.ts.html +35 -41
  26. package/coverage/utils/authUtils.ts.html +328 -0
  27. package/coverage/utils/dbI18n.ts.html +280 -0
  28. package/coverage/utils/googleTranslate.ts.html +385 -0
  29. package/coverage/utils/index.html +29 -44
  30. package/coverage/utils/localeUtils.ts.html +193 -0
  31. package/coverage/utils/sessionUtils.ts.html +211 -0
  32. package/coverage/utils/testUtils.ts.html +1309 -0
  33. package/lex.config.mjs +34 -0
  34. package/lib/actions/apps.d.ts +25 -0
  35. package/lib/actions/apps.js +11 -11
  36. package/lib/actions/connections.d.ts +5 -0
  37. package/lib/actions/connections.js +6 -6
  38. package/lib/actions/content.d.ts +13 -0
  39. package/lib/actions/content.js +9 -9
  40. package/lib/actions/conversations.d.ts +16 -0
  41. package/lib/actions/conversations.js +17 -17
  42. package/lib/actions/dynamodb.d.ts +12 -0
  43. package/lib/actions/dynamodb.js +2 -2
  44. package/lib/actions/email.d.ts +8 -0
  45. package/lib/actions/email.js +2 -2
  46. package/lib/actions/files.d.ts +19 -0
  47. package/lib/actions/files.js +3 -3
  48. package/lib/actions/groups.d.ts +13 -0
  49. package/lib/actions/groups.js +15 -15
  50. package/lib/actions/images.d.ts +33 -0
  51. package/lib/actions/images.js +22 -22
  52. package/lib/actions/index.d.ts +27 -0
  53. package/lib/actions/index.js +2 -2
  54. package/lib/actions/ios.d.ts +7 -0
  55. package/lib/actions/ios.js +4 -4
  56. package/lib/actions/locations.d.ts +6 -0
  57. package/lib/actions/locations.js +3 -3
  58. package/lib/actions/messages.d.ts +13 -0
  59. package/lib/actions/messages.js +3 -3
  60. package/lib/actions/notifications.d.ts +9 -0
  61. package/lib/actions/notifications.js +2 -2
  62. package/lib/actions/payments.d.ts +12 -0
  63. package/lib/actions/payments.js +6 -6
  64. package/lib/actions/posts.d.ts +25 -0
  65. package/lib/actions/posts.js +30 -30
  66. package/lib/actions/profiles.d.ts +4 -0
  67. package/lib/actions/profiles.js +4 -4
  68. package/lib/actions/reactions.d.ts +32 -0
  69. package/lib/actions/reactions.js +16 -16
  70. package/lib/actions/s3.d.ts +11 -0
  71. package/lib/actions/s3.js +2 -2
  72. package/lib/actions/search.d.ts +3 -0
  73. package/lib/actions/search.js +3 -3
  74. package/lib/actions/sms.d.ts +2 -0
  75. package/lib/actions/sms.js +2 -2
  76. package/lib/actions/statistics.d.ts +4 -0
  77. package/lib/actions/statistics.js +4 -4
  78. package/lib/actions/subscriptions.d.ts +7 -0
  79. package/lib/actions/subscriptions.js +6 -6
  80. package/lib/actions/tags.d.ts +34 -0
  81. package/lib/actions/tags.js +6 -6
  82. package/lib/actions/users.d.ts +73 -0
  83. package/lib/actions/users.js +45 -42
  84. package/lib/actions/websockets.d.ts +20 -0
  85. package/lib/actions/websockets.js +8 -8
  86. package/lib/adapters/arangoAdapter.d.ts +8 -0
  87. package/lib/adapters/arangoAdapter.js +2 -2
  88. package/lib/adapters/contentAdapter.d.ts +8 -0
  89. package/lib/adapters/contentAdapter.js +2 -2
  90. package/lib/adapters/fileAdapter.d.ts +9 -0
  91. package/lib/adapters/fileAdapter.js +2 -2
  92. package/lib/adapters/imageAdapter.d.ts +8 -0
  93. package/lib/adapters/imageAdapter.js +2 -2
  94. package/lib/adapters/index.d.ts +9 -0
  95. package/lib/adapters/index.js +2 -0
  96. package/lib/adapters/messageAdapter.d.ts +8 -0
  97. package/lib/adapters/messageAdapter.js +2 -2
  98. package/lib/adapters/postAdapter.d.ts +8 -0
  99. package/lib/adapters/postAdapter.js +2 -2
  100. package/lib/adapters/reaktorAdapter.d.ts +16 -0
  101. package/lib/adapters/reaktorAdapter.js +2 -2
  102. package/lib/adapters/tagAdapter.d.ts +9 -0
  103. package/lib/adapters/tagAdapter.js +2 -2
  104. package/lib/adapters/userAdapter.d.ts +13 -0
  105. package/lib/adapters/userAdapter.js +2 -2
  106. package/lib/config.d.ts +57 -0
  107. package/lib/config.js +2 -2
  108. package/lib/handlers/graphqlHandler.d.ts +4 -0
  109. package/lib/handlers/graphqlHandler.js +2 -2
  110. package/lib/index.d.ts +19 -0
  111. package/lib/index.js +2 -2
  112. package/lib/lambdas/actions/websockets.d.ts +7 -0
  113. package/lib/lambdas/actions/websockets.js +6 -6
  114. package/lib/lambdas/authorizer.d.ts +20 -0
  115. package/lib/lambdas/authorizer.js +2 -2
  116. package/lib/lambdas/connection.d.ts +12 -0
  117. package/lib/lambdas/connection.js +2 -2
  118. package/lib/lambdas/utils/message.d.ts +1 -0
  119. package/lib/lambdas/utils/websocket.d.ts +7 -0
  120. package/lib/lambdas/utils/websocket.js +2 -2
  121. package/lib/mocks/conversation.d.ts +8 -0
  122. package/lib/mocks/file.d.ts +11 -0
  123. package/lib/mocks/group.d.ts +17 -0
  124. package/lib/mocks/group.js +2 -2
  125. package/lib/mocks/image.d.ts +3 -0
  126. package/lib/mocks/image.js +2 -2
  127. package/lib/mocks/post.d.ts +38 -0
  128. package/lib/mocks/post.js +2 -2
  129. package/lib/mocks/tag.d.ts +2 -0
  130. package/lib/mocks/tag.js +1 -1
  131. package/lib/mocks/user.d.ts +4 -0
  132. package/lib/mocks/user.js +2 -2
  133. package/lib/mutations/content.d.ts +2 -0
  134. package/lib/mutations/content.js +2 -0
  135. package/lib/mutations/index.d.ts +11 -0
  136. package/lib/mutations/index.js +2 -2
  137. package/lib/mutations/locations.d.ts +2 -0
  138. package/lib/mutations/locations.js +2 -2
  139. package/lib/mutations/messages.d.ts +2 -0
  140. package/lib/mutations/messages.js +2 -2
  141. package/lib/mutations/posts.d.ts +2 -0
  142. package/lib/mutations/posts.js +2 -2
  143. package/lib/mutations/profiles.d.ts +2 -0
  144. package/lib/mutations/profiles.js +2 -2
  145. package/lib/mutations/reactions.d.ts +2 -0
  146. package/lib/mutations/reactions.js +2 -2
  147. package/lib/mutations/statistics.d.ts +2 -0
  148. package/lib/mutations/statistics.js +2 -2
  149. package/lib/mutations/subscriptions.d.ts +2 -0
  150. package/lib/mutations/subscriptions.js +2 -2
  151. package/lib/mutations/tags.d.ts +2 -0
  152. package/lib/mutations/tags.js +2 -2
  153. package/lib/mutations/users.d.ts +1 -0
  154. package/lib/mutations/users.js +2 -2
  155. package/lib/objectTypes/app.d.ts +3 -0
  156. package/lib/objectTypes/app.js +2 -2
  157. package/lib/objectTypes/bankAccount.d.ts +1 -0
  158. package/lib/objectTypes/connection.d.ts +1 -0
  159. package/lib/objectTypes/connection.js +2 -2
  160. package/lib/objectTypes/content.d.ts +2 -0
  161. package/lib/objectTypes/content.js +2 -0
  162. package/lib/objectTypes/conversation.d.ts +2 -0
  163. package/lib/objectTypes/conversation.js +2 -2
  164. package/lib/objectTypes/creditCard.d.ts +1 -0
  165. package/lib/objectTypes/document.d.ts +1 -0
  166. package/lib/objectTypes/error.d.ts +1 -0
  167. package/lib/objectTypes/external.d.ts +1 -0
  168. package/lib/objectTypes/external.js +2 -2
  169. package/lib/objectTypes/file.d.ts +2 -0
  170. package/lib/objectTypes/file.js +2 -2
  171. package/lib/objectTypes/filter.d.ts +1 -0
  172. package/lib/objectTypes/group.d.ts +3 -0
  173. package/lib/objectTypes/group.js +2 -2
  174. package/lib/objectTypes/iapSubscription.d.ts +1 -0
  175. package/lib/objectTypes/image.d.ts +6 -0
  176. package/lib/objectTypes/image.js +2 -2
  177. package/lib/objectTypes/index.d.ts +26 -0
  178. package/lib/objectTypes/index.js +2 -2
  179. package/lib/objectTypes/location.d.ts +2 -0
  180. package/lib/objectTypes/location.js +2 -2
  181. package/lib/objectTypes/message.d.ts +2 -0
  182. package/lib/objectTypes/message.js +2 -2
  183. package/lib/objectTypes/passcode.d.ts +1 -0
  184. package/lib/objectTypes/passcode.js +2 -2
  185. package/lib/objectTypes/plan.d.ts +2 -0
  186. package/lib/objectTypes/plan.js +2 -2
  187. package/lib/objectTypes/post.d.ts +2 -0
  188. package/lib/objectTypes/post.js +2 -2
  189. package/lib/objectTypes/profile.d.ts +3 -0
  190. package/lib/objectTypes/profile.js +2 -2
  191. package/lib/objectTypes/reaction.d.ts +2 -0
  192. package/lib/objectTypes/reaction.js +2 -2
  193. package/lib/objectTypes/relation.d.ts +1 -0
  194. package/lib/objectTypes/relation.js +2 -2
  195. package/lib/objectTypes/search.d.ts +1 -0
  196. package/lib/objectTypes/search.js +2 -2
  197. package/lib/objectTypes/statistics.d.ts +1 -0
  198. package/lib/objectTypes/statistics.js +2 -2
  199. package/lib/objectTypes/subscription.d.ts +2 -0
  200. package/lib/objectTypes/subscription.js +2 -2
  201. package/lib/objectTypes/tag.d.ts +2 -0
  202. package/lib/objectTypes/tag.js +2 -2
  203. package/lib/objectTypes/user.d.ts +4 -0
  204. package/lib/objectTypes/user.js +2 -2
  205. package/lib/queries/content.d.ts +2 -0
  206. package/lib/queries/content.js +2 -0
  207. package/lib/queries/index.d.ts +10 -0
  208. package/lib/queries/index.js +2 -2
  209. package/lib/queries/locations.d.ts +2 -0
  210. package/lib/queries/locations.js +2 -2
  211. package/lib/queries/messages.d.ts +2 -0
  212. package/lib/queries/messages.js +2 -2
  213. package/lib/queries/posts.d.ts +2 -0
  214. package/lib/queries/posts.js +2 -2
  215. package/lib/queries/reactions.d.ts +2 -0
  216. package/lib/queries/reactions.js +2 -2
  217. package/lib/queries/statistics.d.ts +2 -0
  218. package/lib/queries/statistics.js +2 -2
  219. package/lib/queries/subscriptions.d.ts +2 -0
  220. package/lib/queries/subscriptions.js +2 -2
  221. package/lib/queries/tags.d.ts +2 -0
  222. package/lib/queries/tags.js +2 -2
  223. package/lib/queries/users.d.ts +1 -0
  224. package/lib/queries/users.js +2 -2
  225. package/lib/templates/email/layout.d.ts +2 -0
  226. package/lib/templates/email/passwordForgot.d.ts +2 -0
  227. package/lib/templates/email/passwordRecovery.d.ts +2 -0
  228. package/lib/templates/email/verifyEmail.d.ts +2 -0
  229. package/lib/templates/email/welcome.d.ts +2 -0
  230. package/lib/templates/sms/passwordForgot.d.ts +2 -0
  231. package/lib/templates/sms/passwordRecovery.d.ts +2 -0
  232. package/lib/templates/sms/verifyEmail.d.ts +2 -0
  233. package/lib/templates/sms/verifyPhone.d.ts +2 -0
  234. package/lib/templates/sms/welcome.d.ts +2 -0
  235. package/lib/types/apps.types.d.ts +50 -0
  236. package/lib/types/apps.types.js +1 -1
  237. package/lib/types/arangodb.types.d.ts +38 -0
  238. package/lib/types/auth.types.d.ts +15 -0
  239. package/lib/types/connections.types.d.ts +9 -0
  240. package/lib/types/content.types.d.ts +31 -0
  241. package/lib/types/conversations.types.d.ts +31 -0
  242. package/lib/types/email.types.d.ts +17 -0
  243. package/lib/types/error.types.d.ts +21 -0
  244. package/lib/types/files.types.d.ts +27 -0
  245. package/lib/types/google.types.d.ts +33 -0
  246. package/lib/types/groups.types.d.ts +22 -0
  247. package/lib/types/images.types.d.ts +56 -0
  248. package/lib/types/index.d.ts +26 -0
  249. package/lib/types/index.js +2 -2
  250. package/lib/types/locations.types.d.ts +22 -0
  251. package/lib/types/messages.types.d.ts +20 -0
  252. package/lib/types/notifications.types.d.ts +23 -0
  253. package/lib/types/payments.types.d.ts +113 -0
  254. package/lib/types/posts.types.d.ts +32 -0
  255. package/lib/types/profiles.types.d.ts +20 -0
  256. package/lib/types/statistics.types.d.ts +3 -0
  257. package/lib/types/tags.types.d.ts +19 -0
  258. package/lib/types/users.types.d.ts +110 -0
  259. package/lib/types/websockets.types.d.ts +22 -0
  260. package/lib/utils/adapterUtils.d.ts +5 -0
  261. package/lib/utils/analyticsUtils.d.ts +25 -0
  262. package/lib/utils/analyticsUtils.js +2 -2
  263. package/lib/utils/arangodbUtils.d.ts +70 -0
  264. package/lib/utils/arangodbUtils.js +3 -3
  265. package/lib/utils/authUtils.d.ts +23 -0
  266. package/lib/utils/authUtils.js +2 -2
  267. package/lib/utils/contextUtils.d.ts +3 -0
  268. package/lib/utils/contextUtils.js +1 -1
  269. package/lib/utils/dbI18n.d.ts +10 -0
  270. package/lib/utils/dbI18n.example.d.ts +20 -0
  271. package/lib/utils/dbI18n.example.js +3 -3
  272. package/lib/utils/dbI18n.js +2 -2
  273. package/lib/utils/googleTranslate.d.ts +6 -0
  274. package/lib/utils/googleTranslate.js +2 -2
  275. package/lib/utils/graphqlUtils.d.ts +10 -0
  276. package/lib/utils/graphqlUtils.js +2 -2
  277. package/lib/utils/index.d.ts +18 -0
  278. package/lib/utils/index.js +2 -2
  279. package/lib/utils/languageDetection.d.ts +8 -0
  280. package/lib/utils/languageDetection.js +1 -1
  281. package/lib/utils/localeUtils.d.ts +11 -0
  282. package/lib/utils/localeUtils.example.d.ts +5 -0
  283. package/lib/utils/localeUtils.example.js +2 -2
  284. package/lib/utils/localeUtils.js +1 -1
  285. package/lib/utils/middlewareUtils.d.ts +2 -0
  286. package/lib/utils/middlewareUtils.js +2 -2
  287. package/lib/utils/sessionUtils.d.ts +18 -0
  288. package/lib/utils/sessionUtils.js +2 -2
  289. package/lib/utils/stripeUtils.d.ts +7 -0
  290. package/lib/utils/stripeUtils.js +2 -2
  291. package/lib/utils/templateUtils.d.ts +3 -0
  292. package/lib/utils/testUtils.d.ts +95 -0
  293. package/lib/utils/testUtils.js +2 -2
  294. package/lib/utils/translationQueue.d.ts +29 -0
  295. package/lib/utils/translationQueue.example.d.ts +33 -0
  296. package/lib/utils/translationQueue.example.js +2 -2
  297. package/lib/utils/translationQueue.js +2 -2
  298. package/package.json +22 -21
  299. package/tsconfig.build.json +21 -0
  300. package/tsconfig.lint.json +33 -0
  301. package/tsconfig.test.json +31 -0
  302. package/dist/actions/apps.js +0 -242
  303. package/dist/actions/connections.js +0 -90
  304. package/dist/actions/conversations.js +0 -350
  305. package/dist/actions/dynamodb.js +0 -150
  306. package/dist/actions/email.js +0 -152
  307. package/dist/actions/files.js +0 -283
  308. package/dist/actions/groups.js +0 -292
  309. package/dist/actions/images.js +0 -735
  310. package/dist/actions/index.js +0 -66
  311. package/dist/actions/ios.js +0 -164
  312. package/dist/actions/locations.js +0 -122
  313. package/dist/actions/messages.js +0 -208
  314. package/dist/actions/notifications.js +0 -59
  315. package/dist/actions/payments.js +0 -497
  316. package/dist/actions/personas.js +0 -110
  317. package/dist/actions/posts.js +0 -595
  318. package/dist/actions/reactions.js +0 -322
  319. package/dist/actions/s3.js +0 -133
  320. package/dist/actions/search.js +0 -90
  321. package/dist/actions/sms.js +0 -108
  322. package/dist/actions/statistics.js +0 -62
  323. package/dist/actions/subscription.js +0 -220
  324. package/dist/actions/tags.js +0 -292
  325. package/dist/actions/users.js +0 -784
  326. package/dist/actions/websockets.js +0 -174
  327. package/dist/adapters/arangoAdapter.js +0 -46
  328. package/dist/adapters/fileAdapter.js +0 -76
  329. package/dist/adapters/imageAdapter.js +0 -40
  330. package/dist/adapters/messageAdapter.js +0 -49
  331. package/dist/adapters/postAdapter.js +0 -70
  332. package/dist/adapters/reaktorAdapter.js +0 -44
  333. package/dist/adapters/tagAdapter.js +0 -50
  334. package/dist/adapters/userAdapter.js +0 -115
  335. package/dist/config.js +0 -125
  336. package/dist/index.js +0 -66
  337. package/dist/lambdas/actions/websockets.js +0 -132
  338. package/dist/lambdas/authorizer.js +0 -67
  339. package/dist/lambdas/connection.js +0 -91
  340. package/dist/lambdas/utils/message.js +0 -42
  341. package/dist/lambdas/utils/websocket.js +0 -105
  342. package/dist/mocks/conversation.js +0 -35
  343. package/dist/mocks/file.js +0 -38
  344. package/dist/mocks/group.js +0 -47
  345. package/dist/mocks/image.js +0 -44
  346. package/dist/mocks/nlabs.png +0 -0
  347. package/dist/mocks/post.js +0 -55
  348. package/dist/mocks/tag.js +0 -37
  349. package/dist/mocks/user.js +0 -88
  350. package/dist/mutations/index.js +0 -26
  351. package/dist/mutations/locations.js +0 -44
  352. package/dist/mutations/messages.js +0 -86
  353. package/dist/mutations/personas.js +0 -100
  354. package/dist/mutations/posts.js +0 -53
  355. package/dist/mutations/reactions.js +0 -51
  356. package/dist/mutations/statistics.js +0 -39
  357. package/dist/mutations/subscriptions.js +0 -56
  358. package/dist/mutations/tags.js +0 -120
  359. package/dist/mutations/users.js +0 -116
  360. package/dist/objectTypes/app.js +0 -173
  361. package/dist/objectTypes/bankAccount.js +0 -76
  362. package/dist/objectTypes/connection.js +0 -48
  363. package/dist/objectTypes/conversation.js +0 -77
  364. package/dist/objectTypes/creditCard.js +0 -86
  365. package/dist/objectTypes/document.js +0 -46
  366. package/dist/objectTypes/error.js +0 -46
  367. package/dist/objectTypes/external.js +0 -74
  368. package/dist/objectTypes/file.js +0 -100
  369. package/dist/objectTypes/filter.js +0 -43
  370. package/dist/objectTypes/group.js +0 -123
  371. package/dist/objectTypes/iapSubscription.js +0 -40
  372. package/dist/objectTypes/image.js +0 -129
  373. package/dist/objectTypes/index.js +0 -68
  374. package/dist/objectTypes/location.js +0 -109
  375. package/dist/objectTypes/message.js +0 -96
  376. package/dist/objectTypes/passcode.js +0 -42
  377. package/dist/objectTypes/persona.js +0 -87
  378. package/dist/objectTypes/plan.js +0 -95
  379. package/dist/objectTypes/post.js +0 -125
  380. package/dist/objectTypes/reaction.js +0 -61
  381. package/dist/objectTypes/relation.js +0 -49
  382. package/dist/objectTypes/search.js +0 -72
  383. package/dist/objectTypes/statistics.js +0 -39
  384. package/dist/objectTypes/subscription.js +0 -117
  385. package/dist/objectTypes/tag.js +0 -65
  386. package/dist/objectTypes/user.js +0 -144
  387. package/dist/queries/index.js +0 -33
  388. package/dist/queries/locations.js +0 -45
  389. package/dist/queries/messages.js +0 -52
  390. package/dist/queries/posts.js +0 -154
  391. package/dist/queries/reactions.js +0 -56
  392. package/dist/queries/statistics.js +0 -39
  393. package/dist/queries/subscriptions.js +0 -44
  394. package/dist/queries/tags.js +0 -75
  395. package/dist/queries/users.js +0 -64
  396. package/dist/templates/email/layout.js +0 -302
  397. package/dist/templates/email/passwordForgot.js +0 -38
  398. package/dist/templates/email/passwordRecovery.js +0 -35
  399. package/dist/templates/email/verifyEmail.js +0 -38
  400. package/dist/templates/email/welcome.js +0 -38
  401. package/dist/templates/sms/passwordForgot.js +0 -24
  402. package/dist/templates/sms/passwordRecovery.js +0 -24
  403. package/dist/templates/sms/verifyEmail.js +0 -24
  404. package/dist/templates/sms/verifyPhone.js +0 -24
  405. package/dist/templates/sms/welcome.js +0 -24
  406. package/dist/types/apps.js +0 -32
  407. package/dist/types/arangodb.js +0 -16
  408. package/dist/types/auth.js +0 -16
  409. package/dist/types/connections.js +0 -16
  410. package/dist/types/conversations.js +0 -16
  411. package/dist/types/email.js +0 -16
  412. package/dist/types/error.js +0 -44
  413. package/dist/types/files.js +0 -16
  414. package/dist/types/google.js +0 -16
  415. package/dist/types/groups.js +0 -16
  416. package/dist/types/images.js +0 -16
  417. package/dist/types/index.js +0 -60
  418. package/dist/types/locations.js +0 -16
  419. package/dist/types/messages.js +0 -16
  420. package/dist/types/notifications.js +0 -16
  421. package/dist/types/payments.js +0 -16
  422. package/dist/types/personas.js +0 -16
  423. package/dist/types/posts.js +0 -16
  424. package/dist/types/statistics.js +0 -16
  425. package/dist/types/tags.js +0 -16
  426. package/dist/types/users.js +0 -16
  427. package/dist/types/websockets.js +0 -16
  428. package/dist/utils/adapterUtils.js +0 -45
  429. package/dist/utils/analyticsUtils.js +0 -72
  430. package/dist/utils/arangodbUtils.js +0 -165
  431. package/dist/utils/auth.js +0 -57
  432. package/dist/utils/index.js +0 -30
  433. package/dist/utils/session.js +0 -60
  434. package/jest.config.js +0 -17
  435. package/jest.setup.js +0 -36
  436. package/lex.config.cjs +0 -13
  437. package/lib/mutations/locations.integration.js +0 -2
  438. package/lib/mutations/messages.integration.js +0 -2
  439. package/lib/mutations/posts.integration.js +0 -2
  440. package/lib/mutations/profiles.integration.js +0 -2
  441. package/lib/mutations/reactions.integration.js +0 -2
  442. package/lib/mutations/statistics.integration.js +0 -2
  443. package/lib/mutations/subscriptions.integration.js +0 -2
  444. package/lib/mutations/tags.integration.js +0 -2
  445. package/lib/mutations/users.integration.js +0 -2
  446. package/lib/queries/locations.integration.js +0 -2
  447. package/lib/queries/messages.integration.js +0 -2
  448. package/lib/queries/posts.integration.js +0 -2
  449. package/lib/queries/reactions.integration.js +0 -2
  450. package/lib/queries/tags.integration.js +0 -2
  451. package/lib/queries/users.integration.js +0 -2
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Copyright (c) 2019-Present, Nitrogen Labs, Inc.
3
+ * Copyrights licensed under the MIT License. See the accompanying LICENSE file for terms.
4
+ */
5
+ export type RangeType = {
6
+ readonly from: number;
7
+ readonly to: number;
8
+ };
9
+ export type ArangoDbCollection = 'apps' | 'conversations' | 'content' | 'files' | 'groups' | 'images' | 'locations' | 'messages' | 'notifications' | 'payments' | 'posts' | 'reactions' | 'subscriptions' | 'tags' | 'users';
10
+ export type ArangoDbPathObject = {
11
+ readonly collection?: ArangoDbCollection;
12
+ readonly itemObj?: Record<string, unknown>;
13
+ readonly keys?: string[];
14
+ readonly props?: Record<string, unknown>;
15
+ readonly ranges?: RangeType[];
16
+ readonly routeKey: string;
17
+ };
18
+ export type ArangoDbLimit = {
19
+ readonly aql: string;
20
+ readonly start: number;
21
+ readonly num: number;
22
+ };
23
+ export interface DocumentType {
24
+ readonly _id?: string;
25
+ readonly _key?: string;
26
+ readonly _rev?: string;
27
+ readonly added?: number;
28
+ readonly id?: string;
29
+ readonly modified?: number;
30
+ }
31
+ export interface EdgeType extends DocumentType {
32
+ readonly _from?: string;
33
+ readonly _to?: string;
34
+ }
35
+ export interface VertexType extends DocumentType {
36
+ readonly _from?: string;
37
+ readonly _to?: string;
38
+ }
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Copyright (c) 2019-Present, Nitrogen Labs, Inc.
3
+ * Copyrights licensed under the MIT License. See the accompanying LICENSE file for terms.
4
+ */
5
+ import type { AppConfig } from '../config.js';
6
+ import type { LanguageDetectionContext } from '../utils/languageDetection.js';
7
+ import type { Session } from '../utils/sessionUtils.js';
8
+ export type ApiContext = {
9
+ readonly config?: AppConfig;
10
+ readonly context?: any;
11
+ readonly databaseName?: string;
12
+ readonly fields?: string[];
13
+ readonly languageContext?: LanguageDetectionContext;
14
+ readonly session?: Session;
15
+ };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Copyright (c) 2019-Present, Nitrogen Labs, Inc.
3
+ * Copyrights licensed under the MIT License. See the accompanying LICENSE file for terms.
4
+ */
5
+ import type { DocumentType } from './arangodb.types.js';
6
+ export interface ConnectionType extends DocumentType {
7
+ readonly connectionId?: string;
8
+ readonly isDirect: boolean;
9
+ }
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Copyright (c) 2025-Present, Nitrogen Labs, Inc.
3
+ * Copyrights licensed under the MIT License. See the accompanying LICENSE file for terms.
4
+ */
5
+ import type { DocumentType } from './arangodb.types.js';
6
+ export type Locale = 'en' | 'en-us' | 'en-gb' | 'en-ca' | 'en-au' | 'es' | 'es-mx' | 'es-es' | 'es-ar' | 'fr' | 'fr-fr' | 'fr-ca' | 'de' | 'de-de' | 'de-at' | 'pt' | 'pt-br' | 'pt-pt' | 'it' | 'it-it';
7
+ export interface ContentType extends DocumentType {
8
+ readonly contentId?: string;
9
+ readonly key: string;
10
+ readonly locale: Locale;
11
+ readonly content: string;
12
+ readonly description?: string;
13
+ readonly category?: string;
14
+ readonly isActive?: boolean;
15
+ readonly userId?: string;
16
+ }
17
+ export interface ContentInputType {
18
+ readonly contentId?: string;
19
+ readonly key: string;
20
+ readonly locale?: Locale;
21
+ readonly content: string;
22
+ readonly description?: string;
23
+ readonly category?: string;
24
+ readonly isActive?: boolean;
25
+ }
26
+ export interface ContentOptions {
27
+ readonly category?: string;
28
+ readonly isActive?: boolean;
29
+ readonly key?: string;
30
+ readonly locale?: Locale;
31
+ }
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Copyright (c) 2019-Present, Nitrogen Labs, Inc.
3
+ * Copyrights licensed under the MIT License. See the accompanying LICENSE file for terms.
4
+ */
5
+ import type { VertexType } from './arangodb.types.js';
6
+ import type { UserType } from './users.types.js';
7
+ export interface ConversationType extends VertexType {
8
+ readonly conversationId?: string;
9
+ readonly isDirect?: boolean;
10
+ readonly name?: string;
11
+ users?: UserType[];
12
+ }
13
+ export type ConversationOptions = {
14
+ readonly from?: number;
15
+ readonly to?: number;
16
+ readonly type?: string;
17
+ };
18
+ export type DirectConversationParams = {
19
+ readonly fromId: string;
20
+ readonly toId: string;
21
+ readonly toUser?: UserType;
22
+ };
23
+ export type ConversationUsersParams = {
24
+ readonly conversationId: string;
25
+ readonly includeAll?: boolean;
26
+ readonly isDirect?: boolean;
27
+ };
28
+ export type UpdateConversationUserParams = {
29
+ readonly conversationId: string;
30
+ readonly userId: string;
31
+ };
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Copyright (c) 2019-Present, Nitrogen Labs, Inc.
3
+ * Copyrights licensed under the MIT License. See the accompanying LICENSE file for terms.
4
+ */
5
+ import type { DocumentType } from './arangodb.types.js';
6
+ import type { ApiContext } from './auth.types.js';
7
+ import type { UserType } from './users.types.js';
8
+ export interface EmailType extends DocumentType {
9
+ readonly context?: ApiContext;
10
+ readonly html?: string;
11
+ readonly subject?: string;
12
+ readonly subTitle?: string;
13
+ readonly text?: string;
14
+ readonly title?: string;
15
+ readonly user?: UserType;
16
+ readonly vars?: Record<string, unknown>;
17
+ }
@@ -0,0 +1,21 @@
1
+ export declare const ErrorTypes: {
2
+ DATABASE_ERROR: string;
3
+ EXISTING_ITEM: string;
4
+ EXPIRED_SESSION: string;
5
+ FILE_REQUEST: string;
6
+ FILE_REQUIRED: string;
7
+ IMAGE_REQUEST: string;
8
+ IMAGE_RESIZE: string;
9
+ IMAGE_SAVE: string;
10
+ INVALID_ARGUMENTS: string;
11
+ INVALID_AUTHENTICATION: string;
12
+ INVALID_ID: string;
13
+ INVALID_INPUT: string;
14
+ INVALID_SESSION: string;
15
+ MESSAGE_ERROR: string;
16
+ SMS_ERROR: string;
17
+ YOUTUBE_ERROR: string;
18
+ };
19
+ export type SessionError = {
20
+ readonly errors?: string[];
21
+ };
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Copyright (c) 2019-Present, Nitrogen Labs, Inc.
3
+ * Copyrights licensed under the MIT License. See the accompanying LICENSE file for terms.
4
+ */
5
+ import type { DocumentType } from './arangodb.types.js';
6
+ export interface FileType extends DocumentType {
7
+ readonly base64?: string;
8
+ readonly buffer?: Buffer;
9
+ readonly description?: string;
10
+ readonly fileId?: string;
11
+ fileSize?: number;
12
+ readonly fileType?: string;
13
+ readonly itemId?: string;
14
+ readonly itemType?: string;
15
+ readonly name?: string;
16
+ readonly url?: string;
17
+ readonly userId?: string;
18
+ }
19
+ export type FileDecodedType = {
20
+ readonly data?: Buffer;
21
+ readonly type?: string;
22
+ };
23
+ export type FileEdgeType = {
24
+ readonly fileId?: string;
25
+ readonly itemId?: string;
26
+ readonly itemType?: string;
27
+ };
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Copyright (c) 2019-Present, Nitrogen Labs, Inc.
3
+ * Copyrights licensed under the MIT License. See the accompanying LICENSE file for terms.
4
+ */
5
+ export type GoogleMapsType = {
6
+ readonly results: GoogleMapsResultType[];
7
+ readonly status: string;
8
+ };
9
+ export type GoogleMapsAddressType = {
10
+ readonly long_name: string;
11
+ readonly short_name: string;
12
+ readonly types: string[];
13
+ };
14
+ export type GoogleTimezoneType = {
15
+ readonly dstOffset: string;
16
+ readonly rawOffset: string;
17
+ readonly status: string;
18
+ readonly timeZoneId: string;
19
+ readonly timeZoneName: string;
20
+ };
21
+ export type GoogleLatLngType = {
22
+ readonly lat: number;
23
+ readonly lng: number;
24
+ };
25
+ export type GoogleMapsLocationType = {
26
+ readonly location: GoogleLatLngType;
27
+ };
28
+ export type GoogleMapsResultType = {
29
+ readonly address_components: GoogleMapsAddressType[];
30
+ readonly formatted_address: string;
31
+ readonly geometry: GoogleMapsLocationType;
32
+ readonly place_id: string;
33
+ };
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Copyright (c) 2019-Present, Nitrogen Labs, Inc.
3
+ * Copyrights licensed under the MIT License. See the accompanying LICENSE file for terms.
4
+ */
5
+ import type { DocumentType } from './arangodb.types.js';
6
+ export interface GroupType extends DocumentType {
7
+ readonly description?: string;
8
+ readonly groupId?: string;
9
+ readonly name?: string;
10
+ readonly privacy?: string;
11
+ readonly type?: string;
12
+ }
13
+ export type GroupUser = {
14
+ readonly groupId?: string;
15
+ readonly isValid?: boolean;
16
+ readonly userId?: string;
17
+ };
18
+ export type GroupEdgeType = {
19
+ readonly groupId?: string;
20
+ readonly isValid?: boolean;
21
+ readonly userId?: string;
22
+ };
@@ -0,0 +1,56 @@
1
+ /**
2
+ * Copyright (c) 2019-Present, Nitrogen Labs, Inc.
3
+ * Copyrights licensed under the MIT License. See the accompanying LICENSE file for terms.
4
+ */
5
+ import type { PutObjectCommandInput } from '@aws-sdk/client-s3';
6
+ import type { ArangoDbCollection, EdgeType } from './arangodb.types.js';
7
+ import type { FileType } from './files.types.js';
8
+ export interface ImageType extends FileType {
9
+ readonly bucket?: string;
10
+ readonly color?: string;
11
+ readonly imageId?: string;
12
+ readonly height?: number;
13
+ readonly model?: string;
14
+ readonly make?: string;
15
+ readonly s3Options?: PutObjectCommandInput;
16
+ readonly taken?: number;
17
+ readonly thumb?: string;
18
+ readonly fileType?: string;
19
+ readonly type?: 'image' | 'giphy';
20
+ readonly url?: string;
21
+ readonly width?: number;
22
+ }
23
+ export type ImageIdentifyType = {
24
+ readonly 'JPEG-Quality'?: string;
25
+ readonly Orientation?: string;
26
+ readonly Resolution?: string;
27
+ readonly datetimeoriginal?: number;
28
+ readonly model?: string;
29
+ readonly make?: string;
30
+ readonly size?: {
31
+ readonly height?: number;
32
+ readonly width?: number;
33
+ };
34
+ };
35
+ export type ImageUrlData = {
36
+ readonly bucket?: string;
37
+ readonly directory?: string;
38
+ readonly imageDir?: string;
39
+ readonly imageId?: string;
40
+ readonly imageType?: 'jpg' | 'png' | 'gif' | 'webp' | 'profile' | 'other';
41
+ readonly isThumb?: boolean;
42
+ readonly type?: ArangoDbCollection;
43
+ readonly typeId?: string;
44
+ readonly urlType?: 'dev' | 'public' | 'signed';
45
+ readonly userId?: string;
46
+ };
47
+ export type ImageEdgeType = EdgeType & {
48
+ readonly imageId?: string;
49
+ readonly itemId?: string;
50
+ readonly itemType?: ArangoDbCollection;
51
+ };
52
+ export type ImageOptions = {
53
+ readonly from?: number;
54
+ readonly to?: number;
55
+ readonly type?: string;
56
+ };
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Copyright (c) 2019-Present, Nitrogen Labs, Inc.
3
+ * Copyrights licensed under the MIT License. See the accompanying LICENSE file for terms.
4
+ */
5
+ export * from './apps.types.js';
6
+ export * from './arangodb.types.js';
7
+ export * from './auth.types.js';
8
+ export * from './connections.types.js';
9
+ export * from './content.types.js';
10
+ export * from './conversations.types.js';
11
+ export * from './email.types.js';
12
+ export * from './error.types.js';
13
+ export * from './files.types.js';
14
+ export * from './google.types.js';
15
+ export * from './groups.types.js';
16
+ export * from './images.types.js';
17
+ export * from './locations.types.js';
18
+ export * from './messages.types.js';
19
+ export * from './notifications.types.js';
20
+ export * from './payments.types.js';
21
+ export * from './posts.types.js';
22
+ export * from './profiles.types.js';
23
+ export * from './statistics.types.js';
24
+ export * from './tags.types.js';
25
+ export * from './users.types.js';
26
+ export * from './websockets.types.js';
@@ -1,2 +1,2 @@
1
- export*from"./apps.types";export*from"./arangodb.types";export*from"./auth.types";export*from"./connections.types";export*from"./content.types";export*from"./conversations.types";export*from"./email.types";export*from"./error.types";export*from"./files.types";export*from"./google.types";export*from"./groups.types";export*from"./images.types";export*from"./locations.types";export*from"./messages.types";export*from"./notifications.types";export*from"./payments.types";export*from"./profiles.types";export*from"./posts.types";export*from"./statistics.types";export*from"./tags.types";export*from"./users.types";export*from"./websockets.types";
2
- //# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vLi4vc3JjL3R5cGVzL2luZGV4LnRzIl0sCiAgInNvdXJjZXNDb250ZW50IjogWyIvKipcbiAqIENvcHlyaWdodCAoYykgMjAxOS1QcmVzZW50LCBOaXRyb2dlbiBMYWJzLCBJbmMuXG4gKiBDb3B5cmlnaHRzIGxpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgTGljZW5zZS4gU2VlIHRoZSBhY2NvbXBhbnlpbmcgTElDRU5TRSBmaWxlIGZvciB0ZXJtcy5cbiAqL1xuZXhwb3J0ICogZnJvbSAnLi9hcHBzLnR5cGVzJztcbmV4cG9ydCAqIGZyb20gJy4vYXJhbmdvZGIudHlwZXMnO1xuZXhwb3J0ICogZnJvbSAnLi9hdXRoLnR5cGVzJztcbmV4cG9ydCAqIGZyb20gJy4vY29ubmVjdGlvbnMudHlwZXMnO1xuZXhwb3J0ICogZnJvbSAnLi9jb250ZW50LnR5cGVzJztcbmV4cG9ydCAqIGZyb20gJy4vY29udmVyc2F0aW9ucy50eXBlcyc7XG5leHBvcnQgKiBmcm9tICcuL2VtYWlsLnR5cGVzJztcbmV4cG9ydCAqIGZyb20gJy4vZXJyb3IudHlwZXMnO1xuZXhwb3J0ICogZnJvbSAnLi9maWxlcy50eXBlcyc7XG5leHBvcnQgKiBmcm9tICcuL2dvb2dsZS50eXBlcyc7XG5leHBvcnQgKiBmcm9tICcuL2dyb3Vwcy50eXBlcyc7XG5leHBvcnQgKiBmcm9tICcuL2ltYWdlcy50eXBlcyc7XG5leHBvcnQgKiBmcm9tICcuL2xvY2F0aW9ucy50eXBlcyc7XG5leHBvcnQgKiBmcm9tICcuL21lc3NhZ2VzLnR5cGVzJztcbmV4cG9ydCAqIGZyb20gJy4vbm90aWZpY2F0aW9ucy50eXBlcyc7XG5leHBvcnQgKiBmcm9tICcuL3BheW1lbnRzLnR5cGVzJztcbmV4cG9ydCAqIGZyb20gJy4vcHJvZmlsZXMudHlwZXMnO1xuZXhwb3J0ICogZnJvbSAnLi9wb3N0cy50eXBlcyc7XG5leHBvcnQgKiBmcm9tICcuL3N0YXRpc3RpY3MudHlwZXMnO1xuZXhwb3J0ICogZnJvbSAnLi90YWdzLnR5cGVzJztcbmV4cG9ydCAqIGZyb20gJy4vdXNlcnMudHlwZXMnO1xuZXhwb3J0ICogZnJvbSAnLi93ZWJzb2NrZXRzLnR5cGVzJztcbiJdLAogICJtYXBwaW5ncyI6ICJBQUlBLFdBQWMsZUFDZCxXQUFjLG1CQUNkLFdBQWMsZUFDZCxXQUFjLHNCQUNkLFdBQWMsa0JBQ2QsV0FBYyx3QkFDZCxXQUFjLGdCQUNkLFdBQWMsZ0JBQ2QsV0FBYyxnQkFDZCxXQUFjLGlCQUNkLFdBQWMsaUJBQ2QsV0FBYyxpQkFDZCxXQUFjLG9CQUNkLFdBQWMsbUJBQ2QsV0FBYyx3QkFDZCxXQUFjLG1CQUNkLFdBQWMsbUJBQ2QsV0FBYyxnQkFDZCxXQUFjLHFCQUNkLFdBQWMsZUFDZCxXQUFjLGdCQUNkLFdBQWMiLAogICJuYW1lcyI6IFtdCn0K
1
+ export*from"./apps.types.js";export*from"./arangodb.types.js";export*from"./auth.types.js";export*from"./connections.types.js";export*from"./content.types.js";export*from"./conversations.types.js";export*from"./email.types.js";export*from"./error.types.js";export*from"./files.types.js";export*from"./google.types.js";export*from"./groups.types.js";export*from"./images.types.js";export*from"./locations.types.js";export*from"./messages.types.js";export*from"./notifications.types.js";export*from"./payments.types.js";export*from"./posts.types.js";export*from"./profiles.types.js";export*from"./statistics.types.js";export*from"./tags.types.js";export*from"./users.types.js";export*from"./websockets.types.js";
2
+ //# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vLi4vc3JjL3R5cGVzL2luZGV4LnRzIl0sCiAgInNvdXJjZXNDb250ZW50IjogWyIvKipcbiAqIENvcHlyaWdodCAoYykgMjAxOS1QcmVzZW50LCBOaXRyb2dlbiBMYWJzLCBJbmMuXG4gKiBDb3B5cmlnaHRzIGxpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgTGljZW5zZS4gU2VlIHRoZSBhY2NvbXBhbnlpbmcgTElDRU5TRSBmaWxlIGZvciB0ZXJtcy5cbiAqL1xuZXhwb3J0ICogZnJvbSAnLi9hcHBzLnR5cGVzLmpzJztcbmV4cG9ydCAqIGZyb20gJy4vYXJhbmdvZGIudHlwZXMuanMnO1xuZXhwb3J0ICogZnJvbSAnLi9hdXRoLnR5cGVzLmpzJztcbmV4cG9ydCAqIGZyb20gJy4vY29ubmVjdGlvbnMudHlwZXMuanMnO1xuZXhwb3J0ICogZnJvbSAnLi9jb250ZW50LnR5cGVzLmpzJztcbmV4cG9ydCAqIGZyb20gJy4vY29udmVyc2F0aW9ucy50eXBlcy5qcyc7XG5leHBvcnQgKiBmcm9tICcuL2VtYWlsLnR5cGVzLmpzJztcbmV4cG9ydCAqIGZyb20gJy4vZXJyb3IudHlwZXMuanMnO1xuZXhwb3J0ICogZnJvbSAnLi9maWxlcy50eXBlcy5qcyc7XG5leHBvcnQgKiBmcm9tICcuL2dvb2dsZS50eXBlcy5qcyc7XG5leHBvcnQgKiBmcm9tICcuL2dyb3Vwcy50eXBlcy5qcyc7XG5leHBvcnQgKiBmcm9tICcuL2ltYWdlcy50eXBlcy5qcyc7XG5leHBvcnQgKiBmcm9tICcuL2xvY2F0aW9ucy50eXBlcy5qcyc7XG5leHBvcnQgKiBmcm9tICcuL21lc3NhZ2VzLnR5cGVzLmpzJztcbmV4cG9ydCAqIGZyb20gJy4vbm90aWZpY2F0aW9ucy50eXBlcy5qcyc7XG5leHBvcnQgKiBmcm9tICcuL3BheW1lbnRzLnR5cGVzLmpzJztcbmV4cG9ydCAqIGZyb20gJy4vcG9zdHMudHlwZXMuanMnO1xuZXhwb3J0ICogZnJvbSAnLi9wcm9maWxlcy50eXBlcy5qcyc7XG5leHBvcnQgKiBmcm9tICcuL3N0YXRpc3RpY3MudHlwZXMuanMnO1xuZXhwb3J0ICogZnJvbSAnLi90YWdzLnR5cGVzLmpzJztcbmV4cG9ydCAqIGZyb20gJy4vdXNlcnMudHlwZXMuanMnO1xuZXhwb3J0ICogZnJvbSAnLi93ZWJzb2NrZXRzLnR5cGVzLmpzJztcblxuIl0sCiAgIm1hcHBpbmdzIjogIkFBSUEsV0FBYyxrQkFDZCxXQUFjLHNCQUNkLFdBQWMsa0JBQ2QsV0FBYyx5QkFDZCxXQUFjLHFCQUNkLFdBQWMsMkJBQ2QsV0FBYyxtQkFDZCxXQUFjLG1CQUNkLFdBQWMsbUJBQ2QsV0FBYyxvQkFDZCxXQUFjLG9CQUNkLFdBQWMsb0JBQ2QsV0FBYyx1QkFDZCxXQUFjLHNCQUNkLFdBQWMsMkJBQ2QsV0FBYyxzQkFDZCxXQUFjLG1CQUNkLFdBQWMsc0JBQ2QsV0FBYyx3QkFDZCxXQUFjLGtCQUNkLFdBQWMsbUJBQ2QsV0FBYyIsCiAgIm5hbWVzIjogW10KfQo=
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Copyright (c) 2019-Present, Nitrogen Labs, Inc.
3
+ * Copyrights licensed under the MIT License. See the accompanying LICENSE file for terms.
4
+ */
5
+ import type { DocumentType } from './arangodb.types.js';
6
+ export interface LocationType extends DocumentType {
7
+ readonly address?: string;
8
+ readonly city?: string;
9
+ readonly country?: string;
10
+ readonly description?: string;
11
+ readonly formatted?: string;
12
+ readonly googleId?: string;
13
+ readonly itemId?: string;
14
+ readonly itemType?: string;
15
+ readonly latitude?: number;
16
+ readonly longitude?: number;
17
+ readonly modified?: number;
18
+ readonly state?: string;
19
+ readonly street?: string;
20
+ readonly userId?: string;
21
+ readonly zip?: string;
22
+ }
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Copyright (c) 2019-Present, Nitrogen Labs, Inc.
3
+ * Copyrights licensed under the MIT License. See the accompanying LICENSE file for terms.
4
+ */
5
+ import type { DocumentType } from './arangodb.types.js';
6
+ import type { FileType } from './files.types.js';
7
+ import type { ImageType } from './images.types.js';
8
+ export interface MessageType extends DocumentType {
9
+ readonly content?: string;
10
+ readonly conversationId?: string;
11
+ readonly files?: FileType[];
12
+ readonly images?: ImageType[];
13
+ readonly itemId?: string;
14
+ readonly itemType?: string;
15
+ readonly messageId?: string;
16
+ readonly read?: boolean;
17
+ readonly saved?: boolean;
18
+ readonly userId?: string;
19
+ }
20
+ export type MessageInputType = Pick<MessageType, 'content' | 'conversationId' | 'files' | 'images' | 'itemId' | 'itemType' | 'messageId' | 'read' | 'saved' | 'userId'>;
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Copyright (c) 2019-Present, Nitrogen Labs, Inc.
3
+ * Copyrights licensed under the MIT License. See the accompanying LICENSE file for terms.
4
+ */
5
+ import type { ApiContext } from './auth.types.js';
6
+ import type { UserType } from './users.types.js';
7
+ export type NotificationType = {
8
+ readonly badge?: number;
9
+ readonly data?: Record<string, unknown>;
10
+ readonly message?: string;
11
+ readonly title?: string;
12
+ };
13
+ export type SMSParamsType = {
14
+ readonly context: ApiContext;
15
+ readonly text?: string;
16
+ readonly variables?: Record<string, unknown>;
17
+ readonly user?: UserType;
18
+ };
19
+ export type TwilioOptionsType = {
20
+ readonly body?: string;
21
+ readonly from?: string;
22
+ readonly to?: string;
23
+ };
@@ -0,0 +1,113 @@
1
+ /**
2
+ * Copyright (c) 2019-Present, Nitrogen Labs, Inc.
3
+ * Copyrights licensed under the MIT License. See the accompanying LICENSE file for terms.
4
+ */
5
+ import type { DocumentType } from './arangodb.types.js';
6
+ export interface PaymentCardType extends DocumentType {
7
+ readonly acceptedTerms?: boolean;
8
+ readonly accountNumber?: string;
9
+ readonly brand?: string;
10
+ city?: string;
11
+ country?: string;
12
+ readonly cvc?: string;
13
+ expMonth?: number;
14
+ expYear?: number;
15
+ fullName?: string;
16
+ state?: string;
17
+ street1?: string;
18
+ street2?: string;
19
+ readonly stripeId?: string;
20
+ readonly userId?: string;
21
+ zip?: string;
22
+ }
23
+ export interface PaymentBankAccount extends DocumentType {
24
+ readonly accountNumber?: string;
25
+ readonly fullName?: string;
26
+ readonly routing?: string;
27
+ }
28
+ export interface PaymentCharge extends DocumentType {
29
+ readonly added?: number;
30
+ readonly amount?: number;
31
+ readonly capture?: boolean;
32
+ readonly cardId?: string;
33
+ readonly chargeFailCode?: string;
34
+ readonly chargeFailMsg?: string;
35
+ readonly chargeId?: string;
36
+ readonly chargeStatus?: string;
37
+ readonly currency?: string;
38
+ readonly description?: string;
39
+ readonly modified?: number;
40
+ readonly userId?: string;
41
+ }
42
+ export interface PaymentTransfer extends DocumentType {
43
+ readonly added?: number;
44
+ readonly amount?: number;
45
+ readonly currency?: string;
46
+ readonly description?: string;
47
+ readonly modified?: number;
48
+ readonly userId?: string;
49
+ }
50
+ export type PaymentInterval = 'day' | 'week' | 'month' | 'year';
51
+ export interface PaymentPlan extends DocumentType {
52
+ readonly added?: number;
53
+ readonly amount?: number;
54
+ readonly currency?: string;
55
+ readonly description?: string;
56
+ readonly id?: string;
57
+ readonly interval?: PaymentInterval;
58
+ readonly intervalCount?: number;
59
+ readonly modified?: number;
60
+ readonly name?: string;
61
+ }
62
+ export interface PaymentSubscription extends DocumentType {
63
+ readonly added?: number;
64
+ readonly cancelDate?: number;
65
+ readonly expires?: number;
66
+ readonly id?: string;
67
+ readonly isProduction?: boolean;
68
+ readonly isTrial?: boolean;
69
+ readonly isValid?: boolean;
70
+ readonly modified?: number;
71
+ readonly plan?: PaymentPlan;
72
+ readonly planId?: string;
73
+ readonly receipt?: string;
74
+ readonly status?: string;
75
+ readonly transactionId?: string;
76
+ readonly tax?: number;
77
+ readonly trialEnd?: number;
78
+ readonly type?: string;
79
+ readonly userId?: string;
80
+ }
81
+ export type PaymentIOSSubscriptionUpdate = {
82
+ readonly environment?: 'SANDBOX' | 'PROD';
83
+ readonly notification_type?: 'INITIAL_BUY' | 'CANCEL' | 'RENEWAL' | 'INTERACTIVE_RENEWAL' | 'DID_CHANGE_RENEWAL_PREFERENCE';
84
+ readonly password?: string;
85
+ readonly original_transaction_id?: string;
86
+ readonly cancellation_date?: number;
87
+ readonly web_order_line_item_id?: string;
88
+ readonly latest_receipt?: string;
89
+ readonly latest_receipt_info?: PaymentIOSSubscriptionInfo[];
90
+ readonly latest_expired_receipt?: string;
91
+ readonly latest_expired_receipt_info?: PaymentIOSSubscriptionInfo[];
92
+ readonly auto_renew_status?: string;
93
+ readonly auto_renew_adam_id?: string;
94
+ readonly auto_renew_product_id?: string;
95
+ readonly expiration_intent?: string;
96
+ };
97
+ export type PaymentIOSSubscriptionInfo = {
98
+ readonly expires_date_ms?: number;
99
+ readonly is_trial_period?: string;
100
+ readonly latest_receipt?: string;
101
+ readonly latest_receipt_info?: string;
102
+ readonly original_purchase_date_ms?: number;
103
+ readonly product_id?: string;
104
+ readonly receipt_creation_date_ms?: number;
105
+ readonly status?: string;
106
+ readonly transaction_id?: string;
107
+ };
108
+ export type PaymentIOSInAppError = {
109
+ readonly error?: boolean;
110
+ readonly id?: string;
111
+ readonly message?: string;
112
+ readonly valid?: boolean;
113
+ };
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Copyright (c) 2019-Present, Nitrogen Labs, Inc.
3
+ * Copyrights licensed under the MIT License. See the accompanying LICENSE file for terms.
4
+ */
5
+ import type { DocumentType } from './arangodb.types.js';
6
+ import type { FileType } from './files.types.js';
7
+ import type { TagType } from './tags.types.js';
8
+ export interface PostType extends DocumentType {
9
+ content?: string;
10
+ readonly endDate?: number;
11
+ files?: FileType[];
12
+ readonly groupId?: string;
13
+ readonly postId?: string;
14
+ readonly latitude?: number;
15
+ readonly location?: string;
16
+ readonly longitude?: number;
17
+ readonly name?: string;
18
+ parentId?: string;
19
+ privacy?: string;
20
+ readonly startDate?: number;
21
+ tags?: TagType[];
22
+ type?: string;
23
+ readonly userId?: string;
24
+ }
25
+ export type PostInputType = Pick<PostType, 'content' | 'endDate' | 'files' | 'groupId' | 'postId' | 'latitude' | 'location' | 'longitude' | 'name' | 'parentId' | 'privacy' | 'startDate' | 'tags' | 'type' | 'userId'>;
26
+ export type PostOptions = {
27
+ readonly latitude?: number;
28
+ readonly longitude?: number;
29
+ readonly from?: number;
30
+ readonly to?: number;
31
+ readonly type?: string;
32
+ };
@@ -0,0 +1,20 @@
1
+ import type { DocumentType } from './arangodb.types.js';
2
+ export interface ProfileType extends DocumentType {
3
+ readonly city?: string;
4
+ readonly country?: string;
5
+ readonly firstName?: string;
6
+ readonly gender?: string;
7
+ readonly imageId?: string;
8
+ readonly imageUrl?: string;
9
+ readonly lastName?: string;
10
+ readonly name?: string;
11
+ readonly profileId?: string;
12
+ readonly state?: string;
13
+ readonly street1?: string;
14
+ readonly street2?: string;
15
+ readonly thumbId?: string;
16
+ readonly thumbUrl?: string;
17
+ readonly timezone?: string;
18
+ readonly zip?: string;
19
+ readonly userId?: string;
20
+ }
@@ -0,0 +1,3 @@
1
+ export type StatisticsType = {
2
+ readonly activeUsers: number;
3
+ };
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Copyright (c) 2019-Present, Nitrogen Labs, Inc.
3
+ * Copyrights licensed under the MIT License. See the accompanying LICENSE file for terms.
4
+ */
5
+ import type { DocumentType } from './arangodb.types.js';
6
+ export interface TagType extends DocumentType {
7
+ readonly description?: string;
8
+ readonly category?: string;
9
+ readonly name?: string;
10
+ readonly tagBy?: string;
11
+ readonly tagId?: string;
12
+ readonly userId?: string;
13
+ }
14
+ export type TagInputType = Pick<TagType, 'description' | 'category' | 'name' | 'tagBy' | 'tagId'>;
15
+ export interface IsTaggedType extends DocumentType {
16
+ readonly _from: string;
17
+ readonly _to: string;
18
+ readonly name: string;
19
+ }