@selfcommunity/api-services 0.1.6 → 0.1.7

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 (188) hide show
  1. package/lib/cjs/index.js +36 -0
  2. package/lib/cjs/services/category/index.js +168 -286
  3. package/lib/cjs/services/comment/index.js +107 -186
  4. package/lib/cjs/services/custom_adv/index.js +31 -51
  5. package/lib/cjs/services/custom_page/index.js +32 -52
  6. package/lib/cjs/services/data_portability/index.js +18 -43
  7. package/lib/cjs/services/embed/index.js +90 -151
  8. package/lib/cjs/services/feature/index.js +8 -16
  9. package/lib/cjs/services/feed/index.js +46 -81
  10. package/lib/cjs/services/feed_object/index.js +339 -505
  11. package/lib/cjs/services/incubator/index.js +64 -116
  12. package/lib/cjs/services/insight/index.js +51 -94
  13. package/lib/cjs/services/legal_page/index.js +60 -101
  14. package/lib/cjs/services/locality/index.js +14 -30
  15. package/lib/cjs/services/loyalty/index.js +92 -154
  16. package/lib/cjs/services/media/index.js +80 -122
  17. package/lib/cjs/services/moderation/index.js +65 -103
  18. package/lib/cjs/services/notification/index.js +67 -136
  19. package/lib/cjs/services/preference/index.js +25 -51
  20. package/lib/cjs/services/private_message/index.js +98 -177
  21. package/lib/cjs/services/score/index.js +22 -46
  22. package/lib/cjs/services/sso/index.js +17 -32
  23. package/lib/cjs/services/suggestion/index.js +23 -57
  24. package/lib/cjs/services/tag/index.js +72 -119
  25. package/lib/cjs/services/user/index.js +420 -767
  26. package/lib/cjs/services/webhook/index.js +4 -7
  27. package/lib/cjs/types/baseParams.js +3 -0
  28. package/lib/cjs/types/category.js +3 -0
  29. package/lib/cjs/types/comment.js +3 -0
  30. package/lib/cjs/types/customAdv.js +3 -0
  31. package/lib/cjs/types/customPage.js +3 -0
  32. package/lib/cjs/types/embed.js +3 -0
  33. package/lib/cjs/types/feed.js +3 -0
  34. package/lib/cjs/types/feedObject.js +3 -0
  35. package/lib/cjs/types/incubator.js +3 -0
  36. package/lib/cjs/types/index.js +91 -1
  37. package/lib/cjs/types/legalPage.js +3 -0
  38. package/lib/cjs/types/media.js +29 -0
  39. package/lib/cjs/types/moderation.js +3 -0
  40. package/lib/cjs/types/notification.js +3 -0
  41. package/lib/cjs/types/privateMessage.js +3 -0
  42. package/lib/cjs/types/prize.js +3 -0
  43. package/lib/cjs/types/sso.js +3 -0
  44. package/lib/cjs/types/tag.js +3 -0
  45. package/lib/cjs/types/user.js +3 -0
  46. package/lib/cjs/utils/apiRequest.js +2 -1
  47. package/lib/esm/index.js +36 -0
  48. package/lib/esm/services/category/index.js +168 -286
  49. package/lib/esm/services/comment/index.js +107 -186
  50. package/lib/esm/services/custom_adv/index.js +31 -51
  51. package/lib/esm/services/custom_page/index.js +32 -52
  52. package/lib/esm/services/data_portability/index.js +18 -43
  53. package/lib/esm/services/embed/index.js +90 -151
  54. package/lib/esm/services/feature/index.js +8 -16
  55. package/lib/esm/services/feed/index.js +46 -81
  56. package/lib/esm/services/feed_object/index.js +339 -505
  57. package/lib/esm/services/incubator/index.js +64 -116
  58. package/lib/esm/services/insight/index.js +51 -94
  59. package/lib/esm/services/legal_page/index.js +60 -101
  60. package/lib/esm/services/locality/index.js +14 -30
  61. package/lib/esm/services/loyalty/index.js +92 -154
  62. package/lib/esm/services/media/index.js +80 -122
  63. package/lib/esm/services/moderation/index.js +65 -103
  64. package/lib/esm/services/notification/index.js +67 -136
  65. package/lib/esm/services/preference/index.js +25 -51
  66. package/lib/esm/services/private_message/index.js +98 -177
  67. package/lib/esm/services/score/index.js +22 -46
  68. package/lib/esm/services/sso/index.js +17 -32
  69. package/lib/esm/services/suggestion/index.js +23 -57
  70. package/lib/esm/services/tag/index.js +72 -119
  71. package/lib/esm/services/user/index.js +420 -767
  72. package/lib/esm/services/webhook/index.js +4 -7
  73. package/lib/esm/types/baseParams.js +3 -0
  74. package/lib/esm/types/category.js +3 -0
  75. package/lib/esm/types/comment.js +3 -0
  76. package/lib/esm/types/customAdv.js +3 -0
  77. package/lib/esm/types/customPage.js +3 -0
  78. package/lib/esm/types/embed.js +3 -0
  79. package/lib/esm/types/feed.js +3 -0
  80. package/lib/esm/types/feedObject.js +3 -0
  81. package/lib/esm/types/incubator.js +3 -0
  82. package/lib/esm/types/index.js +91 -1
  83. package/lib/esm/types/legalPage.js +3 -0
  84. package/lib/esm/types/media.js +29 -0
  85. package/lib/esm/types/moderation.js +3 -0
  86. package/lib/esm/types/notification.js +3 -0
  87. package/lib/esm/types/privateMessage.js +3 -0
  88. package/lib/esm/types/prize.js +3 -0
  89. package/lib/esm/types/sso.js +3 -0
  90. package/lib/esm/types/tag.js +3 -0
  91. package/lib/esm/types/user.js +3 -0
  92. package/lib/esm/utils/apiRequest.js +2 -1
  93. package/lib/types/index.d.ts +2 -2
  94. package/lib/types/index.d.ts.map +1 -1
  95. package/lib/types/services/category/index.d.ts +114 -42
  96. package/lib/types/services/category/index.d.ts.map +1 -1
  97. package/lib/types/services/comment/index.d.ts +74 -23
  98. package/lib/types/services/comment/index.d.ts.map +1 -1
  99. package/lib/types/services/custom_adv/index.d.ts +26 -9
  100. package/lib/types/services/custom_adv/index.d.ts.map +1 -1
  101. package/lib/types/services/custom_page/index.d.ts +26 -9
  102. package/lib/types/services/custom_page/index.d.ts.map +1 -1
  103. package/lib/types/services/data_portability/index.d.ts +19 -6
  104. package/lib/types/services/data_portability/index.d.ts.map +1 -1
  105. package/lib/types/services/embed/index.d.ts +62 -24
  106. package/lib/types/services/embed/index.d.ts.map +1 -1
  107. package/lib/types/services/feature/index.d.ts +11 -3
  108. package/lib/types/services/feature/index.d.ts.map +1 -1
  109. package/lib/types/services/feed/index.d.ts +37 -15
  110. package/lib/types/services/feed/index.d.ts.map +1 -1
  111. package/lib/types/services/feed_object/index.d.ts +229 -81
  112. package/lib/types/services/feed_object/index.d.ts.map +1 -1
  113. package/lib/types/services/incubator/index.d.ts +51 -18
  114. package/lib/types/services/incubator/index.d.ts.map +1 -1
  115. package/lib/types/services/insight/index.d.ts +44 -18
  116. package/lib/types/services/insight/index.d.ts.map +1 -1
  117. package/lib/types/services/legal_page/index.d.ts +46 -18
  118. package/lib/types/services/legal_page/index.d.ts.map +1 -1
  119. package/lib/types/services/locality/index.d.ts +17 -6
  120. package/lib/types/services/locality/index.d.ts.map +1 -1
  121. package/lib/types/services/loyalty/index.d.ts +70 -27
  122. package/lib/types/services/loyalty/index.d.ts.map +1 -1
  123. package/lib/types/services/media/index.d.ts +55 -18
  124. package/lib/types/services/media/index.d.ts.map +1 -1
  125. package/lib/types/services/moderation/index.d.ts +51 -18
  126. package/lib/types/services/moderation/index.d.ts.map +1 -1
  127. package/lib/types/services/notification/index.d.ts +63 -27
  128. package/lib/types/services/notification/index.d.ts.map +1 -1
  129. package/lib/types/services/preference/index.d.ts +28 -9
  130. package/lib/types/services/preference/index.d.ts.map +1 -1
  131. package/lib/types/services/private_message/index.d.ts +68 -24
  132. package/lib/types/services/private_message/index.d.ts.map +1 -1
  133. package/lib/types/services/score/index.d.ts +24 -9
  134. package/lib/types/services/score/index.d.ts.map +1 -1
  135. package/lib/types/services/sso/index.d.ts +18 -6
  136. package/lib/types/services/sso/index.d.ts.map +1 -1
  137. package/lib/types/services/suggestion/index.d.ts +29 -12
  138. package/lib/types/services/suggestion/index.d.ts.map +1 -1
  139. package/lib/types/services/tag/index.d.ts +57 -21
  140. package/lib/types/services/tag/index.d.ts.map +1 -1
  141. package/lib/types/services/user/index.d.ts +313 -114
  142. package/lib/types/services/user/index.d.ts.map +1 -1
  143. package/lib/types/services/webhook/index.d.ts +3 -4
  144. package/lib/types/services/webhook/index.d.ts.map +1 -1
  145. package/lib/types/tsconfig.build.tsbuildinfo +1 -1
  146. package/lib/types/types/baseParams.d.ts +23 -0
  147. package/lib/types/types/baseParams.d.ts.map +1 -0
  148. package/lib/types/types/category.d.ts +15 -0
  149. package/lib/types/types/category.d.ts.map +1 -0
  150. package/lib/types/types/comment.d.ts +51 -0
  151. package/lib/types/types/comment.d.ts.map +1 -0
  152. package/lib/types/types/customAdv.d.ts +19 -0
  153. package/lib/types/types/customAdv.d.ts.map +1 -0
  154. package/lib/types/types/customPage.d.ts +24 -0
  155. package/lib/types/types/customPage.d.ts.map +1 -0
  156. package/lib/types/types/embed.d.ts +26 -0
  157. package/lib/types/types/embed.d.ts.map +1 -0
  158. package/lib/types/types/feed.d.ts +11 -0
  159. package/lib/types/types/feed.d.ts.map +1 -0
  160. package/lib/types/types/feedObject.d.ts +56 -0
  161. package/lib/types/types/feedObject.d.ts.map +1 -0
  162. package/lib/types/types/incubator.d.ts +33 -0
  163. package/lib/types/types/incubator.d.ts.map +1 -0
  164. package/lib/types/types/index.d.ts +19 -1
  165. package/lib/types/types/index.d.ts.map +1 -1
  166. package/lib/types/types/legalPage.d.ts +19 -0
  167. package/lib/types/types/legalPage.d.ts.map +1 -0
  168. package/lib/types/types/media.d.ts +80 -0
  169. package/lib/types/types/media.d.ts.map +1 -0
  170. package/lib/types/types/moderation.d.ts +23 -0
  171. package/lib/types/types/moderation.d.ts.map +1 -0
  172. package/lib/types/types/notification.d.ts +31 -0
  173. package/lib/types/types/notification.d.ts.map +1 -0
  174. package/lib/types/types/privateMessage.d.ts +176 -0
  175. package/lib/types/types/privateMessage.d.ts.map +1 -0
  176. package/lib/types/types/prize.d.ts +47 -0
  177. package/lib/types/types/prize.d.ts.map +1 -0
  178. package/lib/types/types/sso.d.ts +12 -0
  179. package/lib/types/types/sso.d.ts.map +1 -0
  180. package/lib/types/types/tag.d.ts +39 -0
  181. package/lib/types/types/tag.d.ts.map +1 -0
  182. package/lib/types/types/user.d.ts +105 -0
  183. package/lib/types/types/user.d.ts.map +1 -0
  184. package/lib/types/utils/apiRequest.d.ts +1 -1
  185. package/lib/types/utils/apiRequest.d.ts.map +1 -1
  186. package/lib/umd/api-services.js +1 -1
  187. package/lib/umd/api-services.js.map +1 -1
  188. package/package.json +4 -4
@@ -0,0 +1,33 @@
1
+ /**
2
+ * IncubatorCreateParams interface
3
+ */
4
+ import { BaseSearchParams } from './baseParams';
5
+ import { SCIncubatorStatusType } from '@selfcommunity/types/src/types';
6
+ export interface IncubatorCreateParams {
7
+ /**
8
+ * A unique name for the incubator
9
+ */
10
+ name: string;
11
+ /**
12
+ * A unique slug (url valid string) for the incubator
13
+ */
14
+ slug?: string;
15
+ /**
16
+ * A short text for the incubator
17
+ */
18
+ slogan?: string;
19
+ }
20
+ /**
21
+ * IncubatorSearchParams interface.
22
+ */
23
+ export interface IncubatorSearchParams extends BaseSearchParams {
24
+ /**
25
+ * Valid values are from 0 to 3
26
+ */
27
+ status?: SCIncubatorStatusType;
28
+ /**
29
+ * Which field to use when ordering the results.
30
+ */
31
+ ordering?: string;
32
+ }
33
+ //# sourceMappingURL=incubator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"incubator.d.ts","sourceRoot":"","sources":["../../../src/types/incubator.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAC,gBAAgB,EAAC,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAC,qBAAqB,EAAC,MAAM,gCAAgC,CAAC;AAErE,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,qBAAsB,SAAQ,gBAAgB;IAC7D;;OAEG;IACH,MAAM,CAAC,EAAE,qBAAqB,CAAC;IAC/B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"}
@@ -1,4 +1,22 @@
1
1
  import { SCPaginatedResponse } from './paginatedResponse';
2
2
  import { WebhookParamType, WebhookEventsType } from './webhook';
3
- export { SCPaginatedResponse, WebhookParamType, WebhookEventsType };
3
+ import { SSOSignUpParams } from './sso';
4
+ import { CommentListParams, CommentCreateParams } from './comment';
5
+ import { IncubatorCreateParams, IncubatorSearchParams } from './incubator';
6
+ import { LoyaltyPrizeParams } from './prize';
7
+ import { ModerateContributionParams } from './moderation';
8
+ import { CustomNotificationParams } from './notification';
9
+ import { UserAutocompleteParams, UserScoreParams, UserSearchParams } from './user';
10
+ import { TagParams } from './tag';
11
+ import { MediaCreateParams, MediaTypes, ChunkUploadParams, ChunkUploadCompleteParams, ChunkType } from './media';
12
+ import { ThreadParams, MessageCreateParams, MessageMediaUploadParams, MessageThumbnailUploadParams, MessageChunkUploadDoneParams, MessageMediaChunksParams } from './privateMessage';
13
+ import { CategoryParams } from './category';
14
+ import { CustomAdvParams } from './customAdv';
15
+ import { CustomPageParams, CustomPageSearchParams } from './customPage';
16
+ import { EmbedUpdateParams, EmbedSearchParams } from './embed';
17
+ import { BaseGetParams, BaseSearchParams } from './baseParams';
18
+ import { FeedObjGetParams, FeedObjCreateParams, FeedObjectPollVotesSearch } from './feedObject';
19
+ import { FeedParams } from './feed';
20
+ import { LegalPageFilterParams } from './legalPage';
21
+ export { SCPaginatedResponse, WebhookParamType, WebhookEventsType, SSOSignUpParams, CommentListParams, CommentCreateParams, IncubatorCreateParams, IncubatorSearchParams, LoyaltyPrizeParams, ModerateContributionParams, CustomNotificationParams, UserAutocompleteParams, UserScoreParams, UserSearchParams, TagParams, MediaCreateParams, MediaTypes, ChunkUploadCompleteParams, ChunkType, ChunkUploadParams, ThreadParams, MessageCreateParams, MessageMediaUploadParams, MessageThumbnailUploadParams, MessageChunkUploadDoneParams, MessageMediaChunksParams, CategoryParams, CustomAdvParams, CustomPageParams, CustomPageSearchParams, EmbedUpdateParams, EmbedSearchParams, BaseGetParams, BaseSearchParams, FeedObjGetParams, FeedObjCreateParams, FeedObjectPollVotesSearch, FeedParams, LegalPageFilterParams };
4
22
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAC,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAC,gBAAgB,EAAE,iBAAiB,EAAC,MAAM,WAAW,CAAC;AAE9D,OAAO,EAAC,mBAAmB,EAAE,gBAAgB,EAAE,iBAAiB,EAAC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAC,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAC,gBAAgB,EAAE,iBAAiB,EAAC,MAAM,WAAW,CAAC;AAC9D,OAAO,EAAC,eAAe,EAAC,MAAM,OAAO,CAAC;AACtC,OAAO,EAAC,iBAAiB,EAAE,mBAAmB,EAAC,MAAM,WAAW,CAAC;AACjE,OAAO,EAAC,qBAAqB,EAAE,qBAAqB,EAAC,MAAM,aAAa,CAAC;AACzE,OAAO,EAAC,kBAAkB,EAAC,MAAM,SAAS,CAAC;AAC3C,OAAO,EAAC,0BAA0B,EAAC,MAAM,cAAc,CAAC;AACxD,OAAO,EAAC,wBAAwB,EAAC,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAC,sBAAsB,EAAE,eAAe,EAAE,gBAAgB,EAAC,MAAM,QAAQ,CAAC;AACjF,OAAO,EAAC,SAAS,EAAC,MAAM,OAAO,CAAC;AAChC,OAAO,EAAC,iBAAiB,EAAE,UAAU,EAAE,iBAAiB,EAAE,yBAAyB,EAAE,SAAS,EAAC,MAAM,SAAS,CAAC;AAC/G,OAAO,EACL,YAAY,EACZ,mBAAmB,EACnB,wBAAwB,EACxB,4BAA4B,EAC5B,4BAA4B,EAC5B,wBAAwB,EACzB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAC,cAAc,EAAC,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAC,eAAe,EAAC,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAC,gBAAgB,EAAE,sBAAsB,EAAC,MAAM,cAAc,CAAC;AACtE,OAAO,EAAC,iBAAiB,EAAE,iBAAiB,EAAC,MAAM,SAAS,CAAC;AAC7D,OAAO,EAAC,aAAa,EAAE,gBAAgB,EAAC,MAAM,cAAc,CAAC;AAC7D,OAAO,EAAC,gBAAgB,EAAE,mBAAmB,EAAE,yBAAyB,EAAC,MAAM,cAAc,CAAC;AAC9F,OAAO,EAAC,UAAU,EAAC,MAAM,QAAQ,CAAC;AAClC,OAAO,EAAC,qBAAqB,EAAC,MAAM,aAAa,CAAC;AAElD,OAAO,EACL,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,eAAe,EACf,iBAAiB,EACjB,mBAAmB,EACnB,qBAAqB,EACrB,qBAAqB,EACrB,kBAAkB,EAClB,0BAA0B,EAC1B,wBAAwB,EACxB,sBAAsB,EACtB,eAAe,EACf,gBAAgB,EAChB,SAAS,EACT,iBAAiB,EACjB,UAAU,EACV,yBAAyB,EACzB,SAAS,EACT,iBAAiB,EACjB,YAAY,EACZ,mBAAmB,EACnB,wBAAwB,EACxB,4BAA4B,EAC5B,4BAA4B,EAC5B,wBAAwB,EACxB,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,sBAAsB,EACtB,iBAAiB,EACjB,iBAAiB,EACjB,aAAa,EACb,gBAAgB,EAChB,gBAAgB,EAChB,mBAAmB,EACnB,yBAAyB,EACzB,UAAU,EACV,qBAAqB,EACtB,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { BaseSearchParams } from './baseParams';
2
+ /**
3
+ * LegalPageFilterParams interface.
4
+ */
5
+ export interface LegalPageFilterParams extends BaseSearchParams {
6
+ /**
7
+ * Valid from date
8
+ */
9
+ valid_from: string;
10
+ /**
11
+ * Valid to date
12
+ */
13
+ valid_to: string;
14
+ /**
15
+ * Which field to use when ordering the results
16
+ */
17
+ ordering: string;
18
+ }
19
+ //# sourceMappingURL=legalPage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"legalPage.d.ts","sourceRoot":"","sources":["../../../src/types/legalPage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,gBAAgB,EAAC,MAAM,cAAc,CAAC;AAE9C;;GAEG;AACH,MAAM,WAAW,qBAAsB,SAAQ,gBAAgB;IAC7D;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB"}
@@ -0,0 +1,80 @@
1
+ import { SCEmbedType } from '@selfcommunity/types/src/types';
2
+ /**
3
+ * Interface MediaCreateParams
4
+ */
5
+ export interface MediaCreateParams {
6
+ /**
7
+ * The media type.
8
+ */
9
+ type: MediaTypes;
10
+ /**
11
+ * Required if media type is url
12
+ */
13
+ url?: string;
14
+ /**
15
+ * Required if media type is share
16
+ */
17
+ share_object?: number;
18
+ /**
19
+ * Required if media type is embed
20
+ */
21
+ embed?: SCEmbedType;
22
+ }
23
+ export declare enum MediaTypes {
24
+ URL = "url",
25
+ SHARE = "share",
26
+ EMBED = "embed"
27
+ }
28
+ /**
29
+ * Interface ChunkUploadParams
30
+ */
31
+ export interface ChunkUploadParams {
32
+ /**
33
+ * String returned by the first call and required from the second
34
+ */
35
+ upload_id: string;
36
+ /**
37
+ * The expiration time.
38
+ */
39
+ expires?: string;
40
+ /**
41
+ * The image chunk to be uploaded
42
+ */
43
+ image?: Blob;
44
+ /**
45
+ * The document chunk to be uploaded
46
+ */
47
+ document?: Blob;
48
+ }
49
+ /**
50
+ * Interface ChunkUploadCompleteParams
51
+ */
52
+ export interface ChunkUploadCompleteParams {
53
+ /**
54
+ * Default to image or document based on file extension
55
+ */
56
+ type?: ChunkType;
57
+ /**
58
+ * Id of the chunk uploaded file.
59
+ */
60
+ upload_id: string;
61
+ /**
62
+ * MD5 hash of the original file for checksum proposal
63
+ */
64
+ md5: string;
65
+ }
66
+ export declare enum ChunkType {
67
+ /**
68
+ * Image media type
69
+ */
70
+ IMAGE = "image",
71
+ /**
72
+ * Document media type (only pdf documents are supported)
73
+ */
74
+ DOC = "doc",
75
+ /**
76
+ * Other images related to contributes. eg. Images uploaded and inserted as <img> into the contribute text
77
+ */
78
+ EIMAGE = "eimage"
79
+ }
80
+ //# sourceMappingURL=media.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"media.d.ts","sourceRoot":"","sources":["../../../src/types/media.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAC,MAAM,gCAAgC,CAAC;AAC3D;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,IAAI,EAAE,UAAU,CAAC;IACjB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,KAAK,CAAC,EAAE,WAAW,CAAC;CACrB;AAED,oBAAY,UAAU;IACpB,GAAG,QAAQ;IACX,KAAK,UAAU;IACf,KAAK,UAAU;CAChB;AAED;;GAEG;AAEH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,KAAK,CAAC,EAAE,IAAI,CAAC;IACb;;OAEG;IACH,QAAQ,CAAC,EAAE,IAAI,CAAC;CACjB;AAED;;GAEG;AAEH,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;CACb;AAED,oBAAY,SAAS;IACnB;;OAEG;IACH,KAAK,UAAU;IACf;;OAEG;IACH,GAAG,QAAQ;IACX;;OAEG;IACH,MAAM,WAAW;CAClB"}
@@ -0,0 +1,23 @@
1
+ import { SCContributionType, SCFlagTypeEnum } from '@selfcommunity/types/src/types';
2
+ /**
3
+ * ModerateContributionParams interface
4
+ */
5
+ export interface ModerateContributionParams {
6
+ /**
7
+ * Valid values are: post, discussion, comment
8
+ */
9
+ contribution_type: SCContributionType;
10
+ /**
11
+ * Valid values are: scold_author, scold_flagger, ignore, hide, delete
12
+ */
13
+ action: string;
14
+ /**
15
+ * The user id of the contribution flagger to scold (use only with action=scold_flagger)
16
+ */
17
+ user: number;
18
+ /**
19
+ * An integer value to describe the moderation activity if action is one between scold_author, hide or delete. This param is not needed if the contribute is already hidden or deleted (you are restoring).
20
+ */
21
+ moderation_type: SCFlagTypeEnum;
22
+ }
23
+ //# sourceMappingURL=moderation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"moderation.d.ts","sourceRoot":"","sources":["../../../src/types/moderation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,kBAAkB,EAAE,cAAc,EAAC,MAAM,gCAAgC,CAAC;AAElF;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,iBAAiB,EAAE,kBAAkB,CAAC;IACtC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,eAAe,EAAE,cAAc,CAAC;CACjC"}
@@ -0,0 +1,31 @@
1
+ import { SCEmbedType } from '@selfcommunity/types/src/types';
2
+ /**
3
+ * CustomNotificationParams interface
4
+ */
5
+ export interface CustomNotificationParams {
6
+ /**
7
+ * Can be 'connections' or 'user' (default is 'conections')
8
+ */
9
+ recipients_type?: string;
10
+ /**
11
+ * An optional custom string to differentiate notifications
12
+ */
13
+ type?: string;
14
+ /**
15
+ * Embed obj.
16
+ */
17
+ embed?: SCEmbedType;
18
+ /**
19
+ * A title for the notification
20
+ */
21
+ title: string;
22
+ /**
23
+ * A description for the notification
24
+ */
25
+ description: string;
26
+ /**
27
+ * The user who issues the notification(its ID)
28
+ */
29
+ user: number;
30
+ }
31
+ //# sourceMappingURL=notification.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification.d.ts","sourceRoot":"","sources":["../../../src/types/notification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAC,MAAM,gCAAgC,CAAC;AAE3D;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd"}
@@ -0,0 +1,176 @@
1
+ import { SCPrivateMessageFileType } from '@selfcommunity/types/src/types';
2
+ /**
3
+ * ThreadParams interface.
4
+ */
5
+ export interface ThreadParams {
6
+ /**
7
+ * The id of the thread(one between thread or user is required).
8
+ */
9
+ thread: number;
10
+ /**
11
+ * The id of the user(one between thread or user is required).
12
+ */
13
+ user?: number;
14
+ /**
15
+ * Return all messages before this id of the message (excluded before_message).
16
+ */
17
+ before_message?: number;
18
+ /**
19
+ * Return all messages from this id of the message (included from_message).
20
+ */
21
+ from_message?: number;
22
+ /**
23
+ * Number of results to return per page.
24
+ */
25
+ limit?: number;
26
+ /**
27
+ * The initial index from which to return the results.
28
+ */
29
+ offset?: number;
30
+ }
31
+ /**
32
+ * MessageCreateParams interface.
33
+ */
34
+ export interface MessageCreateParams {
35
+ /**
36
+ * The id(s) of the recipient(s) of the message
37
+ */
38
+ recipients: number | number[];
39
+ /**
40
+ * The content of the message. It is required when file_uuid param is missing.
41
+ */
42
+ message: string;
43
+ /**
44
+ * The private message file
45
+ */
46
+ file_uuid?: SCPrivateMessageFileType;
47
+ }
48
+ /**
49
+ * MessageMediaUploadParams interface.
50
+ */
51
+ export interface MessageMediaUploadParams {
52
+ /**
53
+ * The file to upload.
54
+ */
55
+ qqfile: Blob;
56
+ /**
57
+ * The type of the file to upload.
58
+ */
59
+ qqfiletype?: string;
60
+ /**
61
+ * The name of the file to upload.
62
+ */
63
+ qqfilename?: string;
64
+ /**
65
+ * The duration (in seconds) of the video or audio track to upload.
66
+ */
67
+ qqduration?: number;
68
+ /**
69
+ * The size of the file to upload.
70
+ */
71
+ qqtotalfilesize?: number;
72
+ /**
73
+ * The MD5 of the file to upload.
74
+ */
75
+ qqmd5?: string;
76
+ }
77
+ /**
78
+ * MessageThumbnailUploadParams interface.
79
+ */
80
+ export interface MessageThumbnailUploadParams {
81
+ /**
82
+ * The file to upload.
83
+ */
84
+ qqfile: Blob;
85
+ /**
86
+ * The parent file uuid. It has to be the file_uuid returned by the previous call
87
+ */
88
+ qqparentuuid: string;
89
+ /**
90
+ * The type of the file to upload.
91
+ */
92
+ qqfiletype?: string;
93
+ /**
94
+ * The name of the file to upload.
95
+ */
96
+ qqfilename?: string;
97
+ /**
98
+ * The size of the file to upload.
99
+ */
100
+ qqtotalfilesize?: number;
101
+ /**
102
+ * The MD5 of the file to upload.
103
+ */
104
+ qqmd5?: string;
105
+ }
106
+ /**
107
+ * MessageMediaChunksParams interface.
108
+ */
109
+ export interface MessageMediaChunksParams {
110
+ /**
111
+ * The file to upload.
112
+ */
113
+ qqfile: Blob;
114
+ /**
115
+ * The file uuid returned by the first chunk upload. It is required only when qqpartindex > 0.
116
+ */
117
+ qquuid: string;
118
+ /**
119
+ * The index of the chunk part to upload. It starts at 0 and reaches qqtotalparts -1.
120
+ */
121
+ qqpartindex: number;
122
+ /**
123
+ * The number of total parts of the chunk to upload.
124
+ */
125
+ qqtotalparts: number;
126
+ /**
127
+ * The type of the file to upload.
128
+ */
129
+ qqfiletype?: string;
130
+ /**
131
+ * The size of the file to upload.
132
+ */
133
+ qqtotalfilesize?: number;
134
+ /**
135
+ * The chunk byte offset.
136
+ */
137
+ qqpartbyteoffset?: number;
138
+ /**
139
+ * The size of the chunk.
140
+ */
141
+ qqchunksize?: number;
142
+ /**
143
+ * The name of the file to upload.
144
+ */
145
+ qqfilename?: string;
146
+ }
147
+ /**
148
+ * MessageChunkUploadDoneParams interface.
149
+ */
150
+ export interface MessageChunkUploadDoneParams {
151
+ /**
152
+ * The file uuid returned by the first chunk upload. It is required only when qqpartindex > 0.
153
+ */
154
+ qquuid: string;
155
+ /**
156
+ * The name of the file to upload.
157
+ */
158
+ qqfilename: string;
159
+ /**
160
+ * The number of total parts of the chunk to upload.
161
+ */
162
+ qqtotalparts?: number;
163
+ /**
164
+ * The MD5 of the file to upload.
165
+ */
166
+ qqmd5?: string;
167
+ /**
168
+ * The type of the file to upload.
169
+ */
170
+ qqfiletype?: string;
171
+ /**
172
+ * The size of the file to upload.
173
+ */
174
+ qqtotalfilesize?: number;
175
+ }
176
+ //# sourceMappingURL=privateMessage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateMessage.d.ts","sourceRoot":"","sources":["../../../src/types/privateMessage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,wBAAwB,EAAC,MAAM,gCAAgC,CAAC;AACxE;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC9B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,SAAS,CAAC,EAAE,wBAAwB,CAAC;CACtC;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,MAAM,EAAE,IAAI,CAAC;IACb;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,MAAM,EAAE,IAAI,CAAC;IACb;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,MAAM,EAAE,IAAI,CAAC;IACb;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B"}
@@ -0,0 +1,47 @@
1
+ import { SCUserType } from '@selfcommunity/types/src/types';
2
+ /**
3
+ * LoyaltyPrizeParams interface
4
+ */
5
+ export interface LoyaltyPrizeParams {
6
+ /**
7
+ * Unique integer value
8
+ */
9
+ id?: number;
10
+ /**
11
+ * Is this prize active?
12
+ */
13
+ active?: true;
14
+ /**
15
+ * The title of the prize
16
+ */
17
+ title: string;
18
+ /**
19
+ * A description of the prize
20
+ */
21
+ description?: string;
22
+ /**
23
+ * Points to request this prize
24
+ */
25
+ points: number;
26
+ /**
27
+ * Link to a web resource for this prize
28
+ */
29
+ link?: string;
30
+ /**
31
+ * Image of this prize
32
+ */
33
+ image: string;
34
+ /**
35
+ * Date of creation
36
+ */
37
+ created_at?: Date | string;
38
+ /**
39
+ * Date of last modify
40
+ */
41
+ lastmod_datetime?: Date | string;
42
+ /**
43
+ * The user who created the prize
44
+ */
45
+ created_by?: SCUserType;
46
+ }
47
+ //# 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,gCAAgC,CAAC;AAE1D;;GAEG;AAEH,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,MAAM,CAAC,EAAE,IAAI,CAAC;IACd;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,UAAU,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC;IAC3B;;OAEG;IACH,gBAAgB,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC;IACjC;;OAEG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;CACzB"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * SSOSignUpParams
3
+ */
4
+ export interface SSOSignUpParams {
5
+ ext_id: number;
6
+ username: string;
7
+ email?: string;
8
+ password: string;
9
+ role?: string | null;
10
+ tags?: number[] | null;
11
+ }
12
+ //# 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,eAAe;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;CACxB"}
@@ -0,0 +1,39 @@
1
+ /**
2
+ * TagParams interface
3
+ */
4
+ export interface TagParams {
5
+ /**
6
+ * Is this tag active?
7
+ */
8
+ active?: boolean;
9
+ /**
10
+ * The type of the tag (unique together name).
11
+ * It can be "user" (only for users) or "category" (only for category).
12
+ */
13
+ type?: string;
14
+ /**
15
+ * The name of the tag (unique together type).
16
+ */
17
+ name: string;
18
+ /**
19
+ * Tag description
20
+ */
21
+ description?: string;
22
+ /**
23
+ * Hexadecimal format color code with #
24
+ */
25
+ color?: string;
26
+ /**
27
+ * Is this tag publicly visible?
28
+ */
29
+ visible?: boolean;
30
+ /**
31
+ * The tag add a visibility boost.
32
+ */
33
+ visibility_boost?: boolean;
34
+ /**
35
+ * Is this tag deleted?
36
+ */
37
+ deleted?: boolean;
38
+ }
39
+ //# sourceMappingURL=tag.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tag.d.ts","sourceRoot":"","sources":["../../../src/types/tag.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB"}
@@ -0,0 +1,105 @@
1
+ /**
2
+ * UserAutocompleteParams interface.
3
+ */
4
+ import { BaseGetParams, BaseSearchParams } from './baseParams';
5
+ export interface UserAutocompleteParams extends BaseSearchParams {
6
+ /**
7
+ * Filter using field username.
8
+ */
9
+ username?: string;
10
+ /**
11
+ * Filter using field gender type.
12
+ */
13
+ gender?: string;
14
+ /**
15
+ * Filter using field real_name.
16
+ */
17
+ real_name?: string;
18
+ /**
19
+ * Filter using field location.
20
+ */
21
+ location?: string;
22
+ /**
23
+ * Filter using field description.
24
+ */
25
+ description?: string;
26
+ /**
27
+ * Ordering fields (eg?: ?ordering=username). Minus char is used for descending ordering, eg. -username
28
+ */
29
+ ordering?: string;
30
+ }
31
+ /**
32
+ * UserScoreParams interface.
33
+ */
34
+ export interface UserScoreParams {
35
+ /**
36
+ * A comment about this operation (only for internal usage).
37
+ */
38
+ comment?: string;
39
+ /**
40
+ * Positive or negative integer value.
41
+ */
42
+ score: number;
43
+ /**
44
+ * A unique integer value identifying the user
45
+ */
46
+ user: number;
47
+ }
48
+ /**
49
+ * UserSearchParams interface.
50
+ */
51
+ export interface UserSearchParams extends BaseGetParams {
52
+ /**
53
+ * A search term. Search in fields: username, real_name. If this parameter is used username & real_name will be ignored.
54
+ */
55
+ user?: string;
56
+ /**
57
+ * Filter using field username.
58
+ */
59
+ username?: string;
60
+ /**
61
+ * Filter using field real_name.
62
+ */
63
+ real_name?: string;
64
+ /**
65
+ * Filter using field gender type.
66
+ */
67
+ gender?: string;
68
+ /**
69
+ * Filter using field location.
70
+ */
71
+ location?: string;
72
+ /**
73
+ * Filter using age ranges. Possible values: -30, 30-45, 45+. The value 45+ must be encoded in the request url: 45%2B.
74
+ */
75
+ age?: string;
76
+ /**
77
+ * Filter using coordinates lat,lng.
78
+ */
79
+ lat_lng?: string;
80
+ /**
81
+ * Use the coordinates (position_lat_lng or location_lat_lng) of the authenticated user.
82
+ */
83
+ user_position?: string;
84
+ /**
85
+ * Filter using field description.
86
+ */
87
+ description?: string;
88
+ /**
89
+ *Filter the users that belong to the staff.
90
+ */
91
+ is_staff?: boolean;
92
+ /**
93
+ * Ordering fields (eg?: ?ordering=username). Minus char is used for descending ordering, eg. -username.
94
+ */
95
+ ordering?: string;
96
+ /**
97
+ * Filter using tag ID.
98
+ */
99
+ tag?: number;
100
+ /**
101
+ * Filter using category ID.
102
+ */
103
+ category?: number;
104
+ }
105
+ //# sourceMappingURL=user.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../src/types/user.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAC,aAAa,EAAE,gBAAgB,EAAC,MAAM,cAAc,CAAC;AAE7D,MAAM,WAAW,sBAAuB,SAAQ,gBAAgB;IAC9D;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,MAAM,WAAW,gBAAiB,SAAQ,aAAa;IACrD;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"}
@@ -1,2 +1,2 @@
1
- export declare function apiRequest(url: string, method: string, data?: any): Promise<any>;
1
+ export declare function apiRequest(url: string, method: string, headers?: any, data?: any): Promise<any>;
2
2
  //# sourceMappingURL=apiRequest.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"apiRequest.d.ts","sourceRoot":"","sources":["../../../src/utils/apiRequest.ts"],"names":[],"mappings":"AAEA,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,GAAG,gBAkBjE"}
1
+ {"version":3,"file":"apiRequest.d.ts","sourceRoot":"","sources":["../../../src/utils/apiRequest.ts"],"names":[],"mappings":"AAEA,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG,EAAE,IAAI,CAAC,EAAE,GAAG,gBAmBhF"}