@selfcommunity/types 0.1.7 → 0.1.8-alpha.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 (260) hide show
  1. package/lib/{types → cjs}/index.d.ts +0 -0
  2. package/lib/{types → cjs}/index.d.ts.map +0 -0
  3. package/lib/cjs/index.js +27 -124
  4. package/lib/cjs/index.js.map +1 -0
  5. package/lib/{types → cjs}/types/auth.d.ts +0 -0
  6. package/lib/{types → cjs}/types/auth.d.ts.map +0 -0
  7. package/lib/cjs/types/auth.js +2 -2
  8. package/lib/cjs/types/auth.js.map +1 -0
  9. package/lib/{types → cjs}/types/avatar.d.ts +0 -0
  10. package/lib/{types → cjs}/types/avatar.d.ts.map +0 -0
  11. package/lib/cjs/types/avatar.js +5 -2
  12. package/lib/cjs/types/avatar.js.map +1 -0
  13. package/lib/{types → cjs}/types/broadcastMessage.d.ts +0 -0
  14. package/lib/{types → cjs}/types/broadcastMessage.d.ts.map +0 -0
  15. package/lib/cjs/types/broadcastMessage.js +6 -9
  16. package/lib/cjs/types/broadcastMessage.js.map +1 -0
  17. package/lib/{types → cjs}/types/category.d.ts +0 -0
  18. package/lib/{types → cjs}/types/category.d.ts.map +0 -0
  19. package/lib/cjs/types/category.js +2 -2
  20. package/lib/cjs/types/category.js.map +1 -0
  21. package/lib/{types → cjs}/types/comment.d.ts +0 -0
  22. package/lib/{types → cjs}/types/comment.d.ts.map +0 -0
  23. package/lib/cjs/types/comment.js +9 -19
  24. package/lib/cjs/types/comment.js.map +1 -0
  25. package/lib/{types → cjs}/types/contribution.d.ts +0 -0
  26. package/lib/{types → cjs}/types/contribution.d.ts.map +0 -0
  27. package/lib/cjs/types/contribution.js +15 -29
  28. package/lib/cjs/types/contribution.js.map +1 -0
  29. package/lib/{types → cjs}/types/customAdv.d.ts +0 -0
  30. package/lib/{types → cjs}/types/customAdv.d.ts.map +0 -0
  31. package/lib/cjs/types/customAdv.js +12 -14
  32. package/lib/cjs/types/customAdv.js.map +1 -0
  33. package/lib/{types → cjs}/types/customNotification.d.ts +0 -0
  34. package/lib/{types → cjs}/types/customNotification.d.ts.map +0 -0
  35. package/lib/cjs/types/customNotification.js +2 -2
  36. package/lib/cjs/types/customNotification.js.map +1 -0
  37. package/lib/{types → cjs}/types/customPage.d.ts +0 -0
  38. package/lib/{types → cjs}/types/customPage.d.ts.map +0 -0
  39. package/lib/cjs/types/customPage.js +2 -2
  40. package/lib/cjs/types/customPage.js.map +1 -0
  41. package/lib/{types → cjs}/types/dataPortability.d.ts +0 -0
  42. package/lib/{types → cjs}/types/dataPortability.d.ts.map +0 -0
  43. package/lib/cjs/types/dataPortability.js +2 -2
  44. package/lib/cjs/types/dataPortability.js.map +1 -0
  45. package/lib/{types → cjs}/types/embed.d.ts +0 -0
  46. package/lib/{types → cjs}/types/embed.d.ts.map +0 -0
  47. package/lib/cjs/types/embed.js +2 -2
  48. package/lib/cjs/types/embed.js.map +1 -0
  49. package/lib/{types → cjs}/types/feature.d.ts +0 -0
  50. package/lib/{types → cjs}/types/feature.d.ts.map +0 -0
  51. package/lib/cjs/types/feature.js +5 -2
  52. package/lib/cjs/types/feature.js.map +1 -0
  53. package/lib/{types → cjs}/types/feed.d.ts +0 -0
  54. package/lib/{types → cjs}/types/feed.d.ts.map +0 -0
  55. package/lib/cjs/types/feed.js +19 -39
  56. package/lib/cjs/types/feed.js.map +1 -0
  57. package/lib/{types → cjs}/types/flag.d.ts +0 -0
  58. package/lib/{types → cjs}/types/flag.d.ts.map +0 -0
  59. package/lib/cjs/types/flag.js +15 -25
  60. package/lib/cjs/types/flag.js.map +1 -0
  61. package/lib/{types → cjs}/types/incubator.d.ts +0 -0
  62. package/lib/{types → cjs}/types/incubator.d.ts.map +0 -0
  63. package/lib/cjs/types/incubator.js +8 -20
  64. package/lib/cjs/types/incubator.js.map +1 -0
  65. package/lib/{types → cjs}/types/index.d.ts +0 -0
  66. package/lib/{types → cjs}/types/index.d.ts.map +0 -0
  67. package/lib/cjs/types/index.js +34 -212
  68. package/lib/cjs/types/index.js.map +1 -0
  69. package/lib/{types → cjs}/types/insight.d.ts +0 -0
  70. package/lib/{types → cjs}/types/insight.d.ts.map +0 -0
  71. package/lib/cjs/types/insight.js +2 -2
  72. package/lib/cjs/types/insight.js.map +1 -0
  73. package/lib/{types → cjs}/types/legalPage.d.ts +0 -0
  74. package/lib/{types → cjs}/types/legalPage.d.ts.map +0 -0
  75. package/lib/cjs/types/legalPage.js +5 -2
  76. package/lib/cjs/types/legalPage.js.map +1 -0
  77. package/lib/{types → cjs}/types/location.d.ts +0 -0
  78. package/lib/{types → cjs}/types/location.d.ts.map +0 -0
  79. package/lib/cjs/types/location.js +2 -2
  80. package/lib/cjs/types/location.js.map +1 -0
  81. package/lib/{types → cjs}/types/media.d.ts +0 -0
  82. package/lib/{types → cjs}/types/media.d.ts.map +0 -0
  83. package/lib/cjs/types/media.js +2 -2
  84. package/lib/cjs/types/media.js.map +1 -0
  85. package/lib/{types → cjs}/types/notification.d.ts +0 -0
  86. package/lib/{types → cjs}/types/notification.d.ts.map +0 -0
  87. package/lib/cjs/types/notification.js +47 -59
  88. package/lib/cjs/types/notification.js.map +1 -0
  89. package/lib/{types → cjs}/types/platform.d.ts +0 -0
  90. package/lib/{types → cjs}/types/platform.d.ts.map +0 -0
  91. package/lib/cjs/types/platform.js +2 -2
  92. package/lib/cjs/types/platform.js.map +1 -0
  93. package/lib/{types → cjs}/types/poll.d.ts +0 -0
  94. package/lib/{types → cjs}/types/poll.d.ts.map +0 -0
  95. package/lib/cjs/types/poll.js +2 -2
  96. package/lib/cjs/types/poll.js.map +1 -0
  97. package/lib/{types → cjs}/types/preference.d.ts +0 -0
  98. package/lib/{types → cjs}/types/preference.d.ts.map +0 -0
  99. package/lib/cjs/types/preference.js +2 -2
  100. package/lib/cjs/types/preference.js.map +1 -0
  101. package/lib/{types → cjs}/types/privateMessage.d.ts +0 -0
  102. package/lib/{types → cjs}/types/privateMessage.d.ts.map +0 -0
  103. package/lib/cjs/types/privateMessage.js +14 -29
  104. package/lib/cjs/types/privateMessage.js.map +1 -0
  105. package/lib/{types → cjs}/types/prize.d.ts +0 -0
  106. package/lib/{types → cjs}/types/prize.d.ts.map +0 -0
  107. package/lib/cjs/types/prize.js +7 -23
  108. package/lib/cjs/types/prize.js.map +1 -0
  109. package/lib/{types → cjs}/types/sso.d.ts +0 -0
  110. package/lib/{types → cjs}/types/sso.d.ts.map +0 -0
  111. package/lib/cjs/types/sso.js +5 -2
  112. package/lib/cjs/types/sso.js.map +1 -0
  113. package/lib/{types → cjs}/types/tag.d.ts +0 -0
  114. package/lib/{types → cjs}/types/tag.d.ts.map +0 -0
  115. package/lib/cjs/types/tag.js +2 -2
  116. package/lib/cjs/types/tag.js.map +1 -0
  117. package/lib/{types → cjs}/types/user.d.ts +0 -0
  118. package/lib/{types → cjs}/types/user.d.ts.map +0 -0
  119. package/lib/cjs/types/user.js +42 -61
  120. package/lib/cjs/types/user.js.map +1 -0
  121. package/lib/{types → cjs}/types/vote.d.ts +0 -0
  122. package/lib/{types → cjs}/types/vote.d.ts.map +0 -0
  123. package/lib/cjs/types/vote.js +2 -2
  124. package/lib/cjs/types/vote.js.map +1 -0
  125. package/lib/{types → cjs}/types/webhook.d.ts +0 -0
  126. package/lib/{types → cjs}/types/webhook.d.ts.map +0 -0
  127. package/lib/cjs/types/webhook.js +6 -2
  128. package/lib/cjs/types/webhook.js.map +1 -0
  129. package/lib/esm/index.d.ts +9 -0
  130. package/lib/esm/index.d.ts.map +1 -0
  131. package/lib/esm/index.js +9 -125
  132. package/lib/esm/index.js.map +1 -0
  133. package/lib/esm/types/auth.d.ts +26 -0
  134. package/lib/esm/types/auth.d.ts.map +1 -0
  135. package/lib/esm/types/auth.js +2 -3
  136. package/lib/esm/types/auth.js.map +1 -0
  137. package/lib/esm/types/avatar.d.ts +26 -0
  138. package/lib/esm/types/avatar.d.ts.map +1 -0
  139. package/lib/esm/types/avatar.js +5 -3
  140. package/lib/esm/types/avatar.js.map +1 -0
  141. package/lib/esm/types/broadcastMessage.d.ts +73 -0
  142. package/lib/esm/types/broadcastMessage.d.ts.map +1 -0
  143. package/lib/esm/types/broadcastMessage.js +5 -11
  144. package/lib/esm/types/broadcastMessage.js.map +1 -0
  145. package/lib/esm/types/category.d.ts +107 -0
  146. package/lib/esm/types/category.d.ts.map +1 -0
  147. package/lib/esm/types/category.js +2 -3
  148. package/lib/esm/types/category.js.map +1 -0
  149. package/lib/esm/types/comment.d.ts +97 -0
  150. package/lib/esm/types/comment.d.ts.map +1 -0
  151. package/lib/esm/types/comment.js +8 -21
  152. package/lib/esm/types/comment.js.map +1 -0
  153. package/lib/esm/types/contribution.d.ts +64 -0
  154. package/lib/esm/types/contribution.d.ts.map +1 -0
  155. package/lib/esm/types/contribution.js +13 -30
  156. package/lib/esm/types/contribution.js.map +1 -0
  157. package/lib/esm/types/customAdv.d.ts +53 -0
  158. package/lib/esm/types/customAdv.d.ts.map +1 -0
  159. package/lib/esm/types/customAdv.js +11 -16
  160. package/lib/esm/types/customAdv.js.map +1 -0
  161. package/lib/esm/types/customNotification.d.ts +28 -0
  162. package/lib/esm/types/customNotification.d.ts.map +1 -0
  163. package/lib/esm/types/customNotification.js +2 -3
  164. package/lib/esm/types/customNotification.js.map +1 -0
  165. package/lib/esm/types/customPage.d.ts +18 -0
  166. package/lib/esm/types/customPage.d.ts.map +1 -0
  167. package/lib/esm/types/customPage.js +2 -3
  168. package/lib/esm/types/customPage.js.map +1 -0
  169. package/lib/esm/types/dataPortability.d.ts +30 -0
  170. package/lib/esm/types/dataPortability.d.ts.map +1 -0
  171. package/lib/esm/types/dataPortability.js +2 -3
  172. package/lib/esm/types/dataPortability.js.map +1 -0
  173. package/lib/esm/types/embed.d.ts +33 -0
  174. package/lib/esm/types/embed.d.ts.map +1 -0
  175. package/lib/esm/types/embed.js +2 -3
  176. package/lib/esm/types/embed.js.map +1 -0
  177. package/lib/esm/types/feature.d.ts +18 -0
  178. package/lib/esm/types/feature.d.ts.map +1 -0
  179. package/lib/esm/types/feature.js +5 -3
  180. package/lib/esm/types/feature.js.map +1 -0
  181. package/lib/esm/types/feed.d.ts +237 -0
  182. package/lib/esm/types/feed.d.ts.map +1 -0
  183. package/lib/esm/types/feed.js +17 -40
  184. package/lib/esm/types/feed.js.map +1 -0
  185. package/lib/esm/types/flag.d.ts +38 -0
  186. package/lib/esm/types/flag.d.ts.map +1 -0
  187. package/lib/esm/types/flag.js +13 -26
  188. package/lib/esm/types/flag.js.map +1 -0
  189. package/lib/esm/types/incubator.d.ts +68 -0
  190. package/lib/esm/types/incubator.d.ts.map +1 -0
  191. package/lib/esm/types/incubator.js +7 -22
  192. package/lib/esm/types/incubator.js.map +1 -0
  193. package/lib/esm/types/index.d.ts +35 -0
  194. package/lib/esm/types/index.d.ts.map +1 -0
  195. package/lib/esm/types/index.js +16 -213
  196. package/lib/esm/types/index.js.map +1 -0
  197. package/lib/esm/types/insight.d.ts +127 -0
  198. package/lib/esm/types/insight.d.ts.map +1 -0
  199. package/lib/esm/types/insight.js +2 -3
  200. package/lib/esm/types/insight.js.map +1 -0
  201. package/lib/esm/types/legalPage.d.ts +79 -0
  202. package/lib/esm/types/legalPage.d.ts.map +1 -0
  203. package/lib/esm/types/legalPage.js +5 -3
  204. package/lib/esm/types/legalPage.js.map +1 -0
  205. package/lib/esm/types/location.d.ts +61 -0
  206. package/lib/esm/types/location.d.ts.map +1 -0
  207. package/lib/esm/types/location.js +2 -3
  208. package/lib/esm/types/location.js.map +1 -0
  209. package/lib/esm/types/media.d.ts +69 -0
  210. package/lib/esm/types/media.d.ts.map +1 -0
  211. package/lib/esm/types/media.js +2 -3
  212. package/lib/esm/types/media.js.map +1 -0
  213. package/lib/esm/types/notification.d.ts +422 -0
  214. package/lib/esm/types/notification.d.ts.map +1 -0
  215. package/lib/esm/types/notification.js +45 -60
  216. package/lib/esm/types/notification.js.map +1 -0
  217. package/lib/esm/types/platform.d.ts +9 -0
  218. package/lib/esm/types/platform.d.ts.map +1 -0
  219. package/lib/esm/types/platform.js +2 -3
  220. package/lib/esm/types/platform.js.map +1 -0
  221. package/lib/esm/types/poll.d.ts +87 -0
  222. package/lib/esm/types/poll.d.ts.map +1 -0
  223. package/lib/esm/types/poll.js +2 -3
  224. package/lib/esm/types/poll.js.map +1 -0
  225. package/lib/esm/types/preference.d.ts +22 -0
  226. package/lib/esm/types/preference.d.ts.map +1 -0
  227. package/lib/esm/types/preference.js +2 -3
  228. package/lib/esm/types/preference.js.map +1 -0
  229. package/lib/esm/types/privateMessage.d.ts +130 -0
  230. package/lib/esm/types/privateMessage.d.ts.map +1 -0
  231. package/lib/esm/types/privateMessage.js +12 -30
  232. package/lib/esm/types/privateMessage.js.map +1 -0
  233. package/lib/esm/types/prize.d.ts +93 -0
  234. package/lib/esm/types/prize.d.ts.map +1 -0
  235. package/lib/esm/types/prize.js +6 -25
  236. package/lib/esm/types/prize.js.map +1 -0
  237. package/lib/esm/types/sso.d.ts +22 -0
  238. package/lib/esm/types/sso.d.ts.map +1 -0
  239. package/lib/esm/types/sso.js +5 -3
  240. package/lib/esm/types/sso.js.map +1 -0
  241. package/lib/esm/types/tag.d.ts +47 -0
  242. package/lib/esm/types/tag.d.ts.map +1 -0
  243. package/lib/esm/types/tag.js +2 -3
  244. package/lib/esm/types/tag.js.map +1 -0
  245. package/lib/esm/types/user.d.ts +537 -0
  246. package/lib/esm/types/user.d.ts.map +1 -0
  247. package/lib/esm/types/user.js +40 -62
  248. package/lib/esm/types/user.js.map +1 -0
  249. package/lib/esm/types/vote.d.ts +15 -0
  250. package/lib/esm/types/vote.d.ts.map +1 -0
  251. package/lib/esm/types/vote.js +2 -3
  252. package/lib/esm/types/vote.js.map +1 -0
  253. package/lib/esm/types/webhook.d.ts +91 -0
  254. package/lib/esm/types/webhook.d.ts.map +1 -0
  255. package/lib/esm/types/webhook.js +6 -3
  256. package/lib/esm/types/webhook.js.map +1 -0
  257. package/package.json +5 -7
  258. package/lib/cjs/index.d.js +0 -2
  259. package/lib/esm/index.d.js +0 -2
  260. package/lib/types/tsconfig.build.tsbuildinfo +0 -1
@@ -0,0 +1,22 @@
1
+ /**
2
+ * SCPreferenceType interface
3
+ */
4
+ export interface SCPreferenceType {
5
+ /**
6
+ * Unique integer value identifying this dynamic preference
7
+ */
8
+ id?: number;
9
+ /**
10
+ * Grouping name
11
+ */
12
+ section?: string;
13
+ /**
14
+ * Unique name identifying this dynamic preference
15
+ */
16
+ name?: string;
17
+ /**
18
+ * The value of the dynamic preference (can be an integer or a string)
19
+ */
20
+ value: string;
21
+ }
22
+ //# sourceMappingURL=preference.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preference.d.ts","sourceRoot":"","sources":["../../../src/types/preference.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf"}
@@ -1,3 +1,2 @@
1
- "use strict";
2
-
3
- exports.__esModule = true;
1
+ export {};
2
+ //# sourceMappingURL=preference.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preference.js","sourceRoot":"","sources":["../../../src/types/preference.ts"],"names":[],"mappings":""}
@@ -0,0 +1,130 @@
1
+ /**
2
+ * Interface SCPrivateMessageType.
3
+ * Private Message Schema.
4
+ */
5
+ import { SCUserType } from './user';
6
+ export interface SCPrivateMessageType {
7
+ /**
8
+ * Message status: created, deleted or hidden message
9
+ */
10
+ status: string;
11
+ /**
12
+ * Id of the message
13
+ */
14
+ id: number;
15
+ /**
16
+ * Sender User
17
+ */
18
+ sender: SCUserType;
19
+ /**
20
+ *Receiver User
21
+ */
22
+ receiver: SCUserType;
23
+ /**
24
+ * Message
25
+ */
26
+ html: string;
27
+ /**
28
+ * Send date time
29
+ */
30
+ created_at: Date | string;
31
+ /**
32
+ * Last interaction date time
33
+ */
34
+ last_message_at: Date;
35
+ /**
36
+ * Message status: created, deleted or hidden message
37
+ */
38
+ thread_status: SCPrivateMessageStatusType;
39
+ /**
40
+ * file
41
+ */
42
+ file?: SCPrivateMessageFileType;
43
+ /**
44
+ * Headline
45
+ */
46
+ headline: string;
47
+ /**
48
+ * Message content
49
+ */
50
+ message: string;
51
+ }
52
+ /**
53
+ * Private Message status:
54
+ * created, deleted or hidden message
55
+ */
56
+ export declare enum SCPrivateMessageStatusType {
57
+ CREATED = "created",
58
+ DELETED = "deleted",
59
+ HIDDEN = "hidden",
60
+ NEW = "new"
61
+ }
62
+ export interface SCPrivateMessageFileType {
63
+ /**
64
+ * The file id
65
+ */
66
+ uuid?: string;
67
+ /**
68
+ * File name
69
+ */
70
+ filename?: string;
71
+ /**
72
+ * File size
73
+ */
74
+ filesize?: number;
75
+ /**
76
+ * The type of the file
77
+ */
78
+ mimetype?: SCMessageFileType;
79
+ /**
80
+ * The duration (in seconds) of the file
81
+ */
82
+ duration?: number;
83
+ /**
84
+ * File Url
85
+ */
86
+ url?: string;
87
+ /**
88
+ * File thumbnail
89
+ */
90
+ thumbnail?: string;
91
+ /**
92
+ * File Url(response)
93
+ */
94
+ file_url?: string;
95
+ /**
96
+ * The file id(response)
97
+ */
98
+ file_uuid?: string;
99
+ }
100
+ /**
101
+ * Private Message status:
102
+ * created, deleted or hidden message
103
+ */
104
+ export declare enum SCMessageFileType {
105
+ DOCUMENT = "application/",
106
+ IMAGE = "image/",
107
+ VIDEO = "video/"
108
+ }
109
+ /**
110
+ * SCPrivateMessageUploadMediaType interface
111
+ */
112
+ export interface SCPrivateMessageUploadMediaType {
113
+ file_url: string;
114
+ file_uuid: string;
115
+ }
116
+ /**
117
+ * SCPrivateMessageUploadThumbnailType interface
118
+ */
119
+ export interface SCPrivateMessageUploadThumbnailType {
120
+ file_url: string;
121
+ file_uuid: string;
122
+ parent_file_uuid: string;
123
+ }
124
+ /**
125
+ * SCPrivateMessageUploadMediaChunkType interface
126
+ */
127
+ export interface SCPrivateMessageUploadMediaChunkType {
128
+ file_uuid: string;
129
+ }
130
+ //# sourceMappingURL=privateMessage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateMessage.d.ts","sourceRoot":"","sources":["../../../src/types/privateMessage.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAC,UAAU,EAAC,MAAM,QAAQ,CAAC;AAElC,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,MAAM,EAAE,UAAU,CAAC;IACnB;;OAEG;IACH,QAAQ,EAAE,UAAU,CAAC;IAErB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,UAAU,EAAE,IAAI,GAAG,MAAM,CAAC;IAC1B;;OAEG;IACH,eAAe,EAAE,IAAI,CAAC;IAEtB;;OAEG;IACH,aAAa,EAAE,0BAA0B,CAAC;IAE1C;;OAEG;IACH,IAAI,CAAC,EAAE,wBAAwB,CAAC;IAChC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;GAGG;AACH,oBAAY,0BAA0B;IACpC,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,GAAG,QAAQ;CACZ;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,iBAAiB,CAAC;IAE7B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;GAGG;AACH,oBAAY,iBAAiB;IAC3B,QAAQ,iBAAiB;IACzB,KAAK,WAAW;IAChB,KAAK,WAAW;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,+BAA+B;IAC9C,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,mCAAmC;IAClD,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,WAAW,oCAAoC;IACnD,SAAS,EAAE,MAAM,CAAC;CACnB"}
@@ -1,40 +1,22 @@
1
- "use strict";
2
-
3
- exports.__esModule = true;
4
- exports.SCPrivateMessageStatusType = exports.SCMessageFileType = void 0;
5
-
6
- /**
7
- * Interface SCPrivateMessageType.
8
- * Private Message Schema.
9
- */
10
-
11
1
  /**
12
2
  * Private Message status:
13
3
  * created, deleted or hidden message
14
4
  */
15
- let SCPrivateMessageStatusType;
16
- exports.SCPrivateMessageStatusType = SCPrivateMessageStatusType;
17
-
5
+ export var SCPrivateMessageStatusType;
18
6
  (function (SCPrivateMessageStatusType) {
19
- SCPrivateMessageStatusType["CREATED"] = "created";
20
- SCPrivateMessageStatusType["DELETED"] = "deleted";
21
- SCPrivateMessageStatusType["HIDDEN"] = "hidden";
22
- SCPrivateMessageStatusType["NEW"] = "new";
23
- })(SCPrivateMessageStatusType || (exports.SCPrivateMessageStatusType = SCPrivateMessageStatusType = {}));
24
-
7
+ SCPrivateMessageStatusType["CREATED"] = "created";
8
+ SCPrivateMessageStatusType["DELETED"] = "deleted";
9
+ SCPrivateMessageStatusType["HIDDEN"] = "hidden";
10
+ SCPrivateMessageStatusType["NEW"] = "new";
11
+ })(SCPrivateMessageStatusType || (SCPrivateMessageStatusType = {}));
25
12
  /**
26
13
  * Private Message status:
27
14
  * created, deleted or hidden message
28
15
  */
29
- let SCMessageFileType;
30
- /**
31
- * SCPrivateMessageUploadMediaType interface
32
- */
33
-
34
- exports.SCMessageFileType = SCMessageFileType;
35
-
16
+ export var SCMessageFileType;
36
17
  (function (SCMessageFileType) {
37
- SCMessageFileType["DOCUMENT"] = "application/";
38
- SCMessageFileType["IMAGE"] = "image/";
39
- SCMessageFileType["VIDEO"] = "video/";
40
- })(SCMessageFileType || (exports.SCMessageFileType = SCMessageFileType = {}));
18
+ SCMessageFileType["DOCUMENT"] = "application/";
19
+ SCMessageFileType["IMAGE"] = "image/";
20
+ SCMessageFileType["VIDEO"] = "video/";
21
+ })(SCMessageFileType || (SCMessageFileType = {}));
22
+ //# sourceMappingURL=privateMessage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateMessage.js","sourceRoot":"","sources":["../../../src/types/privateMessage.ts"],"names":[],"mappings":"AA0DA;;;GAGG;AACH,MAAM,CAAN,IAAY,0BAKX;AALD,WAAY,0BAA0B;IACpC,iDAAmB,CAAA;IACnB,iDAAmB,CAAA;IACnB,+CAAiB,CAAA;IACjB,yCAAW,CAAA;AACb,CAAC,EALW,0BAA0B,KAA1B,0BAA0B,QAKrC;AA8CD;;;GAGG;AACH,MAAM,CAAN,IAAY,iBAIX;AAJD,WAAY,iBAAiB;IAC3B,8CAAyB,CAAA;IACzB,qCAAgB,CAAA;IAChB,qCAAgB,CAAA;AAClB,CAAC,EAJW,iBAAiB,KAAjB,iBAAiB,QAI5B"}
@@ -0,0 +1,93 @@
1
+ import { SCUserType } from './user';
2
+ /**
3
+ * Interface SCPrizeType.
4
+ * Prize Schema.
5
+ */
6
+ export interface SCPrizeType {
7
+ /**
8
+ * The ID of the prize.
9
+ */
10
+ id: number;
11
+ /**
12
+ * The active status of the prize.
13
+ */
14
+ active?: boolean;
15
+ /**
16
+ * The title of the prize.
17
+ */
18
+ title?: string;
19
+ /**
20
+ * The prize description.
21
+ */
22
+ description?: string;
23
+ /**
24
+ * Points to request the prize.
25
+ */
26
+ points?: number;
27
+ /**
28
+ * Date of prize creation.
29
+ */
30
+ created_at?: Date;
31
+ /**
32
+ * Date of last modify.
33
+ */
34
+ lastmod_datetime?: Date;
35
+ /**
36
+ * The prize creator.
37
+ */
38
+ created_by?: SCUserType;
39
+ /**
40
+ * The prize image.
41
+ */
42
+ image?: string;
43
+ /**
44
+ * Link to a web resource for the prize.
45
+ */
46
+ link?: string;
47
+ }
48
+ /**
49
+ * SCPrizeUserType interface
50
+ * Loyalty Prize User Schema
51
+ */
52
+ export interface SCPrizeUserType {
53
+ /**
54
+ * Unique integer value
55
+ */
56
+ id: number;
57
+ /**
58
+ * User obj
59
+ */
60
+ user: SCUserType;
61
+ /**
62
+ * Prize obj.
63
+ */
64
+ prize: SCPrizeType;
65
+ /**
66
+ * Prize points when the request was created
67
+ */
68
+ prize_points: number;
69
+ /**
70
+ * Date since it was in pending status.
71
+ */
72
+ pending_at: Date | string;
73
+ /**
74
+ * Integer value representing the status.
75
+ */
76
+ status: SCPrizeUserStatusType;
77
+ /**
78
+ * The string representation of the status.
79
+ */
80
+ status_description: string;
81
+ }
82
+ export declare enum SCPrizeUserStatusType {
83
+ PENDING = 0,
84
+ REFUSED = 1,
85
+ SENT = 2
86
+ }
87
+ /**
88
+ * Interface SCUserLoyaltyPointsType
89
+ */
90
+ export interface SCUserLoyaltyPointsType {
91
+ points: number;
92
+ }
93
+ //# sourceMappingURL=prize.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prize.d.ts","sourceRoot":"","sources":["../../../src/types/prize.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,QAAQ,CAAC;AAElC;;;GAGG;AACH,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,UAAU,CAAC,EAAE,IAAI,CAAC;IAClB;;OAEG;IACH,gBAAgB,CAAC,EAAE,IAAI,CAAC;IACxB;;OAEG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;IAExB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;GAGG;AAEH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,IAAI,EAAE,UAAU,CAAC;IACjB;;OAEG;IACH,KAAK,EAAE,WAAW,CAAC;IACnB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,UAAU,EAAE,IAAI,GAAG,MAAM,CAAC;IAC1B;;OAEG;IACH,MAAM,EAAE,qBAAqB,CAAC;IAC9B;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;CAC5B;AAED,oBAAY,qBAAqB;IAC/B,OAAO,IAAI;IACX,OAAO,IAAI;IACX,IAAI,IAAI;CACT;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,MAAM,EAAE,MAAM,CAAC;CAChB"}
@@ -1,26 +1,7 @@
1
- "use strict";
2
-
3
- exports.__esModule = true;
4
- exports.SCPrizeUserStatusType = void 0;
5
-
6
- /**
7
- * Interface SCPrizeType.
8
- * Prize Schema.
9
- */
10
-
11
- /**
12
- * SCPrizeUserType interface
13
- * Loyalty Prize User Schema
14
- */
15
- let SCPrizeUserStatusType;
16
- /**
17
- * Interface SCUserLoyaltyPointsType
18
- */
19
-
20
- exports.SCPrizeUserStatusType = SCPrizeUserStatusType;
21
-
1
+ export var SCPrizeUserStatusType;
22
2
  (function (SCPrizeUserStatusType) {
23
- SCPrizeUserStatusType[SCPrizeUserStatusType["PENDING"] = 0] = "PENDING";
24
- SCPrizeUserStatusType[SCPrizeUserStatusType["REFUSED"] = 1] = "REFUSED";
25
- SCPrizeUserStatusType[SCPrizeUserStatusType["SENT"] = 2] = "SENT";
26
- })(SCPrizeUserStatusType || (exports.SCPrizeUserStatusType = SCPrizeUserStatusType = {}));
3
+ SCPrizeUserStatusType[SCPrizeUserStatusType["PENDING"] = 0] = "PENDING";
4
+ SCPrizeUserStatusType[SCPrizeUserStatusType["REFUSED"] = 1] = "REFUSED";
5
+ SCPrizeUserStatusType[SCPrizeUserStatusType["SENT"] = 2] = "SENT";
6
+ })(SCPrizeUserStatusType || (SCPrizeUserStatusType = {}));
7
+ //# sourceMappingURL=prize.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prize.js","sourceRoot":"","sources":["../../../src/types/prize.ts"],"names":[],"mappings":"AA0FA,MAAM,CAAN,IAAY,qBAIX;AAJD,WAAY,qBAAqB;IAC/B,uEAAW,CAAA;IACX,uEAAW,CAAA;IACX,iEAAQ,CAAA;AACV,CAAC,EAJW,qBAAqB,KAArB,qBAAqB,QAIhC"}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * SSOSigninType interface
3
+ */
4
+ export interface SSOSignInType {
5
+ id: number;
6
+ ext_id: number | null;
7
+ username: string;
8
+ role?: string | null;
9
+ tags?: number[] | null;
10
+ }
11
+ /**
12
+ * SSOSignupType interface
13
+ */
14
+ export interface SSOSignUpType {
15
+ id: number;
16
+ ext_id: number | null;
17
+ username: string;
18
+ email?: string;
19
+ role?: string | null;
20
+ tags?: number[] | null;
21
+ }
22
+ //# sourceMappingURL=sso.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sso.d.ts","sourceRoot":"","sources":["../../../src/types/sso.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;CACxB"}
@@ -1,3 +1,5 @@
1
- "use strict";
2
-
3
- exports.__esModule = true;
1
+ /**
2
+ * SSOSigninType interface
3
+ */
4
+ export {};
5
+ //# sourceMappingURL=sso.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sso.js","sourceRoot":"","sources":["../../../src/types/sso.ts"],"names":[],"mappings":"AAAA;;GAEG"}
@@ -0,0 +1,47 @@
1
+ /**
2
+ * Interface SCTagType.
3
+ * Tag Schema.
4
+ */
5
+ export interface SCTagType {
6
+ /**
7
+ * Unique integer value identifying this tag.
8
+ */
9
+ id: number;
10
+ /**
11
+ * The type of the tag (unique together name).
12
+ */
13
+ type?: string;
14
+ /**
15
+ * The name of the tag (unique together type).
16
+ */
17
+ name: string;
18
+ /**
19
+ * Short description of the tag.
20
+ */
21
+ description: string;
22
+ /**
23
+ * Hexadecimal format color code with prefix '#'.
24
+ */
25
+ color: string;
26
+ /**
27
+ * Tag publicly visible.
28
+ */
29
+ visible?: boolean;
30
+ /**
31
+ * The tag has a visibility boost.
32
+ */
33
+ visibility_boost?: boolean;
34
+ /**
35
+ * Creation date time.
36
+ */
37
+ created_at?: string;
38
+ /**
39
+ * Tag active or not
40
+ */
41
+ active?: boolean;
42
+ /**
43
+ * Tag deleted or not
44
+ */
45
+ deleted: boolean;
46
+ }
47
+ //# sourceMappingURL=tag.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tag.d.ts","sourceRoot":"","sources":["../../../src/types/tag.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAE3B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;CAClB"}
@@ -1,3 +1,2 @@
1
- "use strict";
2
-
3
- exports.__esModule = true;
1
+ export {};
2
+ //# sourceMappingURL=tag.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tag.js","sourceRoot":"","sources":["../../../src/types/tag.ts"],"names":[],"mappings":""}