@nlabs/reaktor 0.1.2 → 0.1.4

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 (145) hide show
  1. package/.DS_Store +0 -0
  2. package/.eslintrc +18 -0
  3. package/lib/config.d.ts +21 -0
  4. package/lib/config.js +130 -0
  5. package/lib/data/conversations.d.ts +6 -0
  6. package/lib/data/conversations.js +197 -0
  7. package/lib/data/dynamodb.d.ts +8 -0
  8. package/lib/data/dynamodb.js +139 -0
  9. package/lib/data/email.d.ts +7 -0
  10. package/lib/data/email.js +163 -0
  11. package/lib/data/files.d.ts +16 -0
  12. package/lib/data/files.js +406 -0
  13. package/lib/data/groups.d.ts +13 -0
  14. package/lib/data/groups.js +354 -0
  15. package/lib/data/images.d.ts +12 -0
  16. package/lib/data/images.js +667 -0
  17. package/{src/data/index.ts → lib/data/index.d.ts} +1 -5
  18. package/lib/data/index.js +24 -0
  19. package/lib/data/ios.d.ts +6 -0
  20. package/lib/data/ios.js +302 -0
  21. package/lib/data/locations.d.ts +3 -0
  22. package/lib/data/locations.js +132 -0
  23. package/lib/data/messages.d.ts +9 -0
  24. package/lib/data/messages.js +248 -0
  25. package/lib/data/notifications.d.ts +5 -0
  26. package/lib/data/notifications.js +42 -0
  27. package/lib/data/payments.d.ts +11 -0
  28. package/lib/data/payments.js +748 -0
  29. package/lib/data/posts.d.ts +22 -0
  30. package/lib/data/posts.js +579 -0
  31. package/lib/data/reactions.d.ts +6 -0
  32. package/lib/data/reactions.js +218 -0
  33. package/lib/data/s3.d.ts +6 -0
  34. package/lib/data/s3.js +103 -0
  35. package/lib/data/search.d.ts +3 -0
  36. package/lib/data/search.js +98 -0
  37. package/lib/data/sms.d.ts +3 -0
  38. package/lib/data/sms.js +59 -0
  39. package/lib/data/subscription.d.ts +7 -0
  40. package/lib/data/subscription.js +284 -0
  41. package/lib/data/tags.d.ts +14 -0
  42. package/lib/data/tags.js +304 -0
  43. package/lib/data/users.d.ts +12 -0
  44. package/lib/data/users.js +310 -0
  45. package/lib/index.d.ts +3 -0
  46. package/lib/index.js +8 -0
  47. package/lib/types/apps.d.ts +43 -0
  48. package/lib/types/apps.js +2 -0
  49. package/lib/types/arangodb.d.ts +17 -0
  50. package/lib/types/arangodb.js +2 -0
  51. package/lib/types/auth.d.ts +10 -0
  52. package/lib/types/auth.js +2 -0
  53. package/lib/types/conversations.d.ts +6 -0
  54. package/lib/types/conversations.js +2 -0
  55. package/lib/types/email.d.ts +12 -0
  56. package/lib/types/email.js +2 -0
  57. package/lib/types/files.d.ts +26 -0
  58. package/lib/types/files.js +2 -0
  59. package/lib/types/google.d.ts +27 -0
  60. package/lib/types/google.js +2 -0
  61. package/lib/types/groups.d.ts +21 -0
  62. package/lib/types/groups.js +2 -0
  63. package/lib/types/images.d.ts +24 -0
  64. package/lib/types/images.js +2 -0
  65. package/{src/types/index.ts → lib/types/index.d.ts} +0 -4
  66. package/lib/types/index.js +22 -0
  67. package/lib/types/locations.d.ts +20 -0
  68. package/lib/types/locations.js +2 -0
  69. package/lib/types/messages.d.ts +12 -0
  70. package/lib/types/messages.js +2 -0
  71. package/lib/types/notifications.d.ts +19 -0
  72. package/lib/types/notifications.js +2 -0
  73. package/lib/types/payments.d.ts +114 -0
  74. package/lib/types/payments.js +2 -0
  75. package/lib/types/posts.d.ts +28 -0
  76. package/lib/types/posts.js +2 -0
  77. package/lib/types/reactions.d.ts +4 -0
  78. package/lib/types/reactions.js +2 -0
  79. package/lib/types/tags.d.ts +9 -0
  80. package/lib/types/tags.js +2 -0
  81. package/lib/types/users.d.ts +78 -0
  82. package/lib/types/users.js +2 -0
  83. package/lib/utils/analytics.d.ts +3 -0
  84. package/lib/utils/analytics.js +47 -0
  85. package/lib/utils/arangodb.d.ts +9 -0
  86. package/lib/utils/arangodb.js +98 -0
  87. package/lib/utils/auth.d.ts +7 -0
  88. package/lib/utils/auth.js +80 -0
  89. package/lib/utils/graphql.d.ts +1 -0
  90. package/lib/utils/graphql.js +7 -0
  91. package/{src/utils/index.ts → lib/utils/index.d.ts} +0 -4
  92. package/lib/utils/index.js +11 -0
  93. package/lib/utils/objects.d.ts +3 -0
  94. package/lib/utils/objects.js +34 -0
  95. package/lib/utils/redis.d.ts +1 -0
  96. package/lib/utils/redis.js +15 -0
  97. package/package.json +8 -7
  98. package/.vscode/extensions.json +0 -15
  99. package/.vscode/settings.json +0 -82
  100. package/lex.config.js +0 -4
  101. package/src/config.ts +0 -127
  102. package/src/data/conversations.ts +0 -181
  103. package/src/data/dynamodb.ts +0 -157
  104. package/src/data/email.ts +0 -163
  105. package/src/data/files.ts +0 -352
  106. package/src/data/groups.ts +0 -308
  107. package/src/data/images.ts +0 -606
  108. package/src/data/ios.ts +0 -249
  109. package/src/data/locations.ts +0 -114
  110. package/src/data/messages.ts +0 -237
  111. package/src/data/notifications.ts +0 -48
  112. package/src/data/payments.ts +0 -675
  113. package/src/data/posts.ts +0 -580
  114. package/src/data/reactions.ts +0 -186
  115. package/src/data/s3.ts +0 -117
  116. package/src/data/search.ts +0 -74
  117. package/src/data/sms.ts +0 -60
  118. package/src/data/subscription.ts +0 -228
  119. package/src/data/tags.ts +0 -230
  120. package/src/data/users.ts +0 -254
  121. package/src/index.ts +0 -7
  122. package/src/types/apps.ts +0 -56
  123. package/src/types/arangodb.ts +0 -23
  124. package/src/types/auth.ts +0 -20
  125. package/src/types/conversations.ts +0 -11
  126. package/src/types/email.ts +0 -17
  127. package/src/types/files.ts +0 -31
  128. package/src/types/google.ts +0 -37
  129. package/src/types/groups.ts +0 -27
  130. package/src/types/images.ts +0 -32
  131. package/src/types/locations.ts +0 -24
  132. package/src/types/messages.ts +0 -16
  133. package/src/types/notifications.ts +0 -26
  134. package/src/types/payments.ts +0 -129
  135. package/src/types/posts.ts +0 -34
  136. package/src/types/reactions.ts +0 -8
  137. package/src/types/tags.ts +0 -13
  138. package/src/types/users.ts +0 -89
  139. package/src/utils/analytics.ts +0 -41
  140. package/src/utils/arangodb.ts +0 -100
  141. package/src/utils/auth.ts +0 -61
  142. package/src/utils/graphql.ts +0 -7
  143. package/src/utils/objects.ts +0 -34
  144. package/src/utils/redis.ts +0 -17
  145. package/tsconfig.json +0 -45
@@ -0,0 +1,22 @@
1
+ import { Database } from 'arangojs';
2
+ import { ApiContext, FileType, PostOptions, PostType } from '../types';
3
+ export declare const parsePostOptions: (options?: PostOptions) => {
4
+ latitude: number;
5
+ limit: import("../types").ArangoDBLimit;
6
+ longitude: number;
7
+ type: string;
8
+ };
9
+ export declare const getPostOptional: (fields: string[]) => any;
10
+ export declare const getPost: (context: ApiContext, itemId: string) => Promise<PostType>;
11
+ export declare const getPostList: (context: ApiContext, options?: PostOptions) => Promise<PostType[]>;
12
+ export declare const getPostListByArea: (context: ApiContext, latitude: number, longitude: number, options?: PostOptions) => Promise<PostType[]>;
13
+ export declare const getPostListByGroup: (context: ApiContext, groupId: string, options?: PostOptions) => Promise<PostType[]>;
14
+ export declare const getPostListByLatest: (context: ApiContext, options?: PostOptions) => Promise<PostType[]>;
15
+ export declare const getPostListByTags: (context: ApiContext, tagNames: string[], options?: PostOptions) => Promise<PostType[]>;
16
+ export declare const getPostListByUser: (context: ApiContext, userId: string, options?: PostOptions) => Promise<PostType[]>;
17
+ export declare const getPostComments: (context: ApiContext, itemId: string, options?: PostOptions) => Promise<PostType[]>;
18
+ export declare const addPost: (context: ApiContext, item: PostType) => Promise<PostType>;
19
+ export declare const updatePost: (context: ApiContext, item: PostType) => Promise<PostType>;
20
+ export declare const deletePost: (context: ApiContext, itemId: string) => Promise<PostType>;
21
+ export declare const cleanPosts: (database: string) => Promise<number>;
22
+ export declare const createPostEdge: (db: Database, file: FileType, postId: string) => Promise<FileType>;