@nlabs/reaktor 0.1.2 → 0.1.3

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