@amityco/ts-sdk 7.28.1-ff89ba3b.0 → 7.29.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 (98) hide show
  1. package/dist/@types/core/errors.d.ts +0 -2
  2. package/dist/@types/core/errors.d.ts.map +1 -1
  3. package/dist/@types/domains/channel.d.ts +1 -13
  4. package/dist/@types/domains/channel.d.ts.map +1 -1
  5. package/dist/@types/domains/content.d.ts +0 -11
  6. package/dist/@types/domains/content.d.ts.map +1 -1
  7. package/dist/@types/domains/user.d.ts +0 -31
  8. package/dist/@types/domains/user.d.ts.map +1 -1
  9. package/dist/channelRepository/observers/getChannels/ChannelLiveCollectionController.d.ts.map +1 -1
  10. package/dist/channelRepository/observers/searchChannels/SearchChannelLiveCollectionController.d.ts.map +1 -1
  11. package/dist/client/api/resumeSession.d.ts.map +1 -1
  12. package/dist/client/api/setupLoginSubscriptions.d.ts.map +1 -1
  13. package/dist/commentRepository/api/flagComment.d.ts +5 -72
  14. package/dist/commentRepository/api/flagComment.d.ts.map +1 -1
  15. package/dist/commentRepository/internalApi/index.d.ts +0 -2
  16. package/dist/commentRepository/internalApi/index.d.ts.map +1 -1
  17. package/dist/core/microtasks.d.ts.map +1 -1
  18. package/dist/core/query/sorting.d.ts +0 -19
  19. package/dist/core/query/sorting.d.ts.map +1 -1
  20. package/dist/index.cjs.js +77 -649
  21. package/dist/index.esm.js +78 -648
  22. package/dist/index.umd.js +2 -2
  23. package/dist/messagePreview/utils/getChannelMessagePreviewWithUser.d.ts +0 -1
  24. package/dist/messagePreview/utils/getChannelMessagePreviewWithUser.d.ts.map +1 -1
  25. package/dist/messageRepository/api/createMessage.d.ts.map +1 -1
  26. package/dist/messageRepository/api/flagMessage.d.ts +6 -73
  27. package/dist/messageRepository/api/flagMessage.d.ts.map +1 -1
  28. package/dist/postRepository/api/flagPost.d.ts +6 -73
  29. package/dist/postRepository/api/flagPost.d.ts.map +1 -1
  30. package/dist/postRepository/internalApi/index.d.ts +0 -2
  31. package/dist/postRepository/internalApi/index.d.ts.map +1 -1
  32. package/dist/userRepository/api/flagUser.d.ts +9 -50
  33. package/dist/userRepository/api/flagUser.d.ts.map +1 -1
  34. package/dist/userRepository/api/index.d.ts +0 -2
  35. package/dist/userRepository/api/index.d.ts.map +1 -1
  36. package/dist/utils/tests/dummy/channel.d.ts +0 -4
  37. package/dist/utils/tests/dummy/channel.d.ts.map +1 -1
  38. package/package.json +1 -1
  39. package/dist/channelRepository/observers/tests/integrations/getChannelsSortByLastMessage.integration.test.d.ts +0 -2
  40. package/dist/channelRepository/observers/tests/integrations/getChannelsSortByLastMessage.integration.test.d.ts.map +0 -1
  41. package/dist/channelRepository/utils/channelActivityOnLoginHandler.d.ts +0 -16
  42. package/dist/channelRepository/utils/channelActivityOnLoginHandler.d.ts.map +0 -1
  43. package/dist/channelRepository/utils/tests/integrations/channelActivity.integration.test.d.ts +0 -2
  44. package/dist/channelRepository/utils/tests/integrations/channelActivity.integration.test.d.ts.map +0 -1
  45. package/dist/channelRepository/utils/tests/updateChannelActivityTimestamps.test.d.ts +0 -2
  46. package/dist/channelRepository/utils/tests/updateChannelActivityTimestamps.test.d.ts.map +0 -1
  47. package/dist/channelRepository/utils/updateChannelActivityTimestamps.d.ts +0 -34
  48. package/dist/channelRepository/utils/updateChannelActivityTimestamps.d.ts.map +0 -1
  49. package/dist/commentRepository/internalApi/flagCommentWithOptions.d.ts +0 -13
  50. package/dist/commentRepository/internalApi/flagCommentWithOptions.d.ts.map +0 -1
  51. package/dist/commentRepository/internalApi/flagCommentWithReasonString.d.ts +0 -17
  52. package/dist/commentRepository/internalApi/flagCommentWithReasonString.d.ts.map +0 -1
  53. package/dist/commentRepository/internalApi/tests/integration/flagCommentWithOptions.integration.test.d.ts +0 -2
  54. package/dist/commentRepository/internalApi/tests/integration/flagCommentWithOptions.integration.test.d.ts.map +0 -1
  55. package/dist/commentRepository/internalApi/tests/integration/flagCommentWithReasonString.integration.test.d.ts +0 -2
  56. package/dist/commentRepository/internalApi/tests/integration/flagCommentWithReasonString.integration.test.d.ts.map +0 -1
  57. package/dist/core/query/tests/sorting.test.d.ts +0 -2
  58. package/dist/core/query/tests/sorting.test.d.ts.map +0 -1
  59. package/dist/core/tests/microtasks.test.d.ts +0 -2
  60. package/dist/core/tests/microtasks.test.d.ts.map +0 -1
  61. package/dist/core/transports/tests/integration/serverErrorCodes.integration.test.d.ts +0 -2
  62. package/dist/core/transports/tests/integration/serverErrorCodes.integration.test.d.ts.map +0 -1
  63. package/dist/messageRepository/api/tests/integration/flagMessage.overloads.integration.test.d.ts +0 -2
  64. package/dist/messageRepository/api/tests/integration/flagMessage.overloads.integration.test.d.ts.map +0 -1
  65. package/dist/messageRepository/internalApi/flagMessageWithOptions.d.ts +0 -13
  66. package/dist/messageRepository/internalApi/flagMessageWithOptions.d.ts.map +0 -1
  67. package/dist/messageRepository/internalApi/flagMessageWithReasonString.d.ts +0 -18
  68. package/dist/messageRepository/internalApi/flagMessageWithReasonString.d.ts.map +0 -1
  69. package/dist/messageRepository/internalApi/tests/integration/flagMessageWithOptions.integration.test.d.ts +0 -2
  70. package/dist/messageRepository/internalApi/tests/integration/flagMessageWithOptions.integration.test.d.ts.map +0 -1
  71. package/dist/messageRepository/internalApi/tests/integration/flagMessageWithReasonString.integration.test.d.ts +0 -2
  72. package/dist/messageRepository/internalApi/tests/integration/flagMessageWithReasonString.integration.test.d.ts.map +0 -1
  73. package/dist/postRepository/api/tests/integration/flagPost.overloads.integration.test.d.ts +0 -2
  74. package/dist/postRepository/api/tests/integration/flagPost.overloads.integration.test.d.ts.map +0 -1
  75. package/dist/postRepository/internalApi/flagPostWithOptions.d.ts +0 -13
  76. package/dist/postRepository/internalApi/flagPostWithOptions.d.ts.map +0 -1
  77. package/dist/postRepository/internalApi/flagPostWithReasonString.d.ts +0 -17
  78. package/dist/postRepository/internalApi/flagPostWithReasonString.d.ts.map +0 -1
  79. package/dist/postRepository/internalApi/tests/integration/flagPostWithOptions.integration.test.d.ts +0 -2
  80. package/dist/postRepository/internalApi/tests/integration/flagPostWithOptions.integration.test.d.ts.map +0 -1
  81. package/dist/postRepository/internalApi/tests/integration/flagPostWithReasonString.integration.test.d.ts +0 -2
  82. package/dist/postRepository/internalApi/tests/integration/flagPostWithReasonString.integration.test.d.ts.map +0 -1
  83. package/dist/userRepository/api/flagUserBehavior.d.ts +0 -29
  84. package/dist/userRepository/api/flagUserBehavior.d.ts.map +0 -1
  85. package/dist/userRepository/api/flagUserProfile.d.ts +0 -29
  86. package/dist/userRepository/api/flagUserProfile.d.ts.map +0 -1
  87. package/dist/userRepository/api/tests/integration/flagUser.overloads.integration.test.d.ts +0 -2
  88. package/dist/userRepository/api/tests/integration/flagUser.overloads.integration.test.d.ts.map +0 -1
  89. package/dist/userRepository/api/tests/integration/flagUserBehavior.integration.test.d.ts +0 -2
  90. package/dist/userRepository/api/tests/integration/flagUserBehavior.integration.test.d.ts.map +0 -1
  91. package/dist/userRepository/api/tests/integration/flagUserProfile.integration.test.d.ts +0 -2
  92. package/dist/userRepository/api/tests/integration/flagUserProfile.integration.test.d.ts.map +0 -1
  93. package/dist/userRepository/utils/submitUserReport.d.ts +0 -10
  94. package/dist/userRepository/utils/submitUserReport.d.ts.map +0 -1
  95. package/dist/userRepository/utils/userReport.d.ts +0 -35
  96. package/dist/userRepository/utils/userReport.d.ts.map +0 -1
  97. package/dist/utils/contentFlag.d.ts +0 -28
  98. package/dist/utils/contentFlag.d.ts.map +0 -1
@@ -23,7 +23,6 @@ export declare const getChannelMessagePreviewWithUser: (channel: Amity.StaticInt
23
23
  pinnedMessage?: Amity.RawPinnedMessage<any> | null | undefined;
24
24
  isPublic?: boolean | undefined;
25
25
  lastActivity: string;
26
- lastMessageAt: string | null;
27
26
  attachedTo?: {
28
27
  postId?: string | undefined;
29
28
  videoStreamId?: string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"getChannelMessagePreviewWithUser.d.ts","sourceRoot":"","sources":["../../../src/messagePreview/utils/getChannelMessagePreviewWithUser.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,gCAAgC,YAClC,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAEpB,MAAM,cAAc,GAAG,IAAI;CAoB5C,CAAC"}
1
+ {"version":3,"file":"getChannelMessagePreviewWithUser.d.ts","sourceRoot":"","sources":["../../../src/messagePreview/utils/getChannelMessagePreviewWithUser.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,gCAAgC,YAClC,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAEpB,MAAM,cAAc,GAAG,IAAI;CAoB5C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"createMessage.d.ts","sourceRoot":"","sources":["../../../src/messageRepository/api/createMessage.ts"],"names":[],"mappings":"AAuBA,aAAK,kBAAkB,CAAC,CAAC,SAAS,KAAK,CAAC,kBAAkB,IAAI,IAAI,CAChE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAChB,cAAc,GAAG,UAAU,GAAG,UAAU,GAAG,MAAM,GAAG,UAAU,GAAG,YAAY,CAC9E,GAAG;IACF,IAAI,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;IAChC,MAAM,CAAC,EAAE,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AA6EF;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,aAAa,yEAEvB,QAAQ,MAAM,MAAM,CAAC,MAAM,OAAO,CAAC,CA2CrC,CAAC"}
1
+ {"version":3,"file":"createMessage.d.ts","sourceRoot":"","sources":["../../../src/messageRepository/api/createMessage.ts"],"names":[],"mappings":"AAmBA,aAAK,kBAAkB,CAAC,CAAC,SAAS,KAAK,CAAC,kBAAkB,IAAI,IAAI,CAChE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAChB,cAAc,GAAG,UAAU,GAAG,UAAU,GAAG,MAAM,GAAG,UAAU,GAAG,YAAY,CAC9E,GAAG;IACF,IAAI,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;IAChC,MAAM,CAAC,EAAE,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAqEF;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,aAAa,yEAEvB,QAAQ,MAAM,MAAM,CAAC,MAAM,OAAO,CAAC,CAuCrC,CAAC"}
@@ -1,82 +1,15 @@
1
- declare type FlagMessage = {
2
- /**
3
- * ```js
4
- * import { MessageRepository } from '@amityco/ts-sdk'
5
- * const flagged = await MessageRepository.flagMessage(messageId)
6
- * ```
7
- *
8
- * Flags a message without a reason. The report is sent as `Others`; no detail is serialized.
9
- *
10
- * @param messageId The ID of the message to flag
11
- * @returns `true` when the report was created
12
- */
13
- (messageId: Amity.Message['messageId'], reason?: undefined): Promise<boolean>;
14
- /**
15
- * ```js
16
- * import { MessageRepository, ContentFlagReasonEnum } from '@amityco/ts-sdk'
17
- * const flagged = await MessageRepository.flagMessage(messageId, {
18
- * reason: ContentFlagReasonEnum.SpamOrScams,
19
- * detail: 'Repeated promotional links',
20
- * })
21
- * ```
22
- *
23
- * Flags a message with a category and optional reporter context. Any category,
24
- * including `Others`, may carry a `detail`. `detail` is sent unchanged and omitted
25
- * when not supplied; the backend enforces its 300-character limit.
26
- *
27
- * @param messageId The ID of the message to flag
28
- * @param options `reason` is a `ContentFlagReasonEnum` value; `detail` is optional free text
29
- * @returns `true` when the report was created
30
- * @throws {ASCInvalidParameterError} `INVALID_PARAMETERS` when `options` is malformed, before any request is made
31
- */
32
- (messageId: Amity.Message['messageId'], options: Amity.ContentFlagOptions): Promise<boolean>;
33
- /**
34
- * ```js
35
- * import { MessageRepository } from '@amityco/ts-sdk'
36
- * const flagged = await MessageRepository.flagMessage(messageId, reason)
37
- * ```
38
- *
39
- * @deprecated Pass an options object instead: `flagMessage(messageId, { reason, detail })`.
40
- * A predefined string maps to `{ reason: <value>, detail: '' }`; a custom string maps to
41
- * `{ reason: 'Others', detail: <string> }`. Migrate a custom string to
42
- * `{ reason: ContentFlagReasonEnum.Others, detail: customString }`. This mapping is
43
- * unchanged and stays available throughout the current major version.
44
- *
45
- * @param messageId The ID of the message to flag
46
- * @param reason a predefined `ContentFlagReasonEnum` value or a custom string
47
- * @returns `true` when the report was created
48
- */
49
- (messageId: Amity.Message['messageId'], reason?: Amity.ContentFlagReason): Promise<boolean>;
50
- };
51
1
  /**
52
2
  * ```js
53
- * import { MessageRepository, ContentFlagReasonEnum } from '@amityco/ts-sdk'
54
- *
55
- * // No reason.
56
- * await MessageRepository.flagMessage(messageId)
57
- *
58
- * // Category plus optional reporter context (any category, including Others).
59
- * await MessageRepository.flagMessage(messageId, {
60
- * reason: ContentFlagReasonEnum.SpamOrScams,
61
- * detail: 'Repeated promotional links',
62
- * })
3
+ * import { MessageRepository } from '@amityco/ts-sdk'
4
+ * const flagged = await MessageRepository.flagMessage(messageId, reason)
63
5
  * ```
64
6
  *
65
- * Reports a message to moderation. Three call shapes are accepted (see the overloads):
66
- * id-only, an options object, and the deprecated legacy reason string. The public
67
- * name only dispatches on the input shape; the two implementations are kept separate
68
- * so the legacy path is untouched by the new contract:
69
- *
70
- * - `undefined` or a string → `flagMessageWithReasonString` (unchanged legacy mapping)
71
- * - anything else → `flagMessageWithOptions` (validated `{ reason, detail? }`)
72
- *
73
- * @param messageId The ID of the message to flag
74
- * @param input an options object `{ reason, detail? }`, a legacy reason string, or nothing
75
- * @returns `true` when the report was created
7
+ * @param messageId of the message to flag
8
+ * @param reason the reason to flag the message
9
+ * @returns the created report result
76
10
  *
77
11
  * @category Message API
78
12
  * @async
79
13
  * */
80
- export declare const flagMessage: FlagMessage;
81
- export {};
14
+ export declare const flagMessage: (messageId: Amity.Message['messageId'], reason?: Amity.ContentFlagReason) => Promise<boolean>;
82
15
  //# sourceMappingURL=flagMessage.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"flagMessage.d.ts","sourceRoot":"","sources":["../../../src/messageRepository/api/flagMessage.ts"],"names":[],"mappings":"AAIA,aAAK,WAAW,GAAG;IACjB;;;;;;;;;;OAUG;IACH,CAAC,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAC9E;;;;;;;;;;;;;;;;;OAiBG;IACH,CAAC,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,WAAW,CAAC,EAAE,OAAO,EAAE,KAAK,CAAC,kBAAkB,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAC7F;;;;;;;;;;;;;;;OAeG;IACH,CAAC,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC,EAAE,KAAK,CAAC,iBAAiB,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CAC7F,CAAC;AAKF;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA4BK;AACL,eAAO,MAAM,WAAW,EAAE,WAMoB,CAAC"}
1
+ {"version":3,"file":"flagMessage.d.ts","sourceRoot":"","sources":["../../../src/messageRepository/api/flagMessage.ts"],"names":[],"mappings":"AASA;;;;;;;;;;;;KAYK;AACL,eAAO,MAAM,WAAW,cACX,MAAM,OAAO,CAAC,WAAW,CAAC,WAC5B,MAAM,iBAAiB,KAC/B,QAAQ,OAAO,CA4BjB,CAAC"}
@@ -1,82 +1,15 @@
1
- declare type FlagPost = {
2
- /**
3
- * ```js
4
- * import { PostRepository } from '@amityco/ts-sdk'
5
- * const flagged = await PostRepository.flagPost(postId)
6
- * ```
7
- *
8
- * Flags a post without a reason. The report is sent as `Others` with an empty detail.
9
- *
10
- * @param postId The ID of the post to flag
11
- * @returns `true` when the report was created
12
- */
13
- (postId: Amity.Post['postId'], reason?: undefined): Promise<boolean>;
14
- /**
15
- * ```js
16
- * import { PostRepository, ContentFlagReasonEnum } from '@amityco/ts-sdk'
17
- * const flagged = await PostRepository.flagPost(postId, {
18
- * reason: ContentFlagReasonEnum.SpamOrScams,
19
- * detail: 'Repeated promotional links',
20
- * })
21
- * ```
22
- *
23
- * Flags a post with a category and optional reporter context. Any category,
24
- * including `Others`, may carry a `detail`. `detail` is sent unchanged and omitted
25
- * when not supplied; the backend enforces its 300-character limit.
26
- *
27
- * @param postId The ID of the post to flag
28
- * @param options `reason` is a `ContentFlagReasonEnum` value; `detail` is optional free text
29
- * @returns `true` when the report was created
30
- * @throws {ASCInvalidParameterError} `INVALID_PARAMETERS` when `options` is malformed, before any request is made
31
- */
32
- (postId: Amity.Post['postId'], options: Amity.ContentFlagOptions): Promise<boolean>;
33
- /**
34
- * ```js
35
- * import { PostRepository } from '@amityco/ts-sdk'
36
- * const flagged = await PostRepository.flagPost(postId, reason)
37
- * ```
38
- *
39
- * @deprecated Pass an options object instead: `flagPost(postId, { reason, detail })`.
40
- * A predefined string maps to `{ reason: <value>, detail: '' }`; a custom string maps to
41
- * `{ reason: 'Others', detail: <string> }`. Migrate a custom string to
42
- * `{ reason: ContentFlagReasonEnum.Others, detail: customString }`. This mapping is
43
- * unchanged and stays available throughout the current major version.
44
- *
45
- * @param postId The ID of the post to flag
46
- * @param reason a predefined `ContentFlagReasonEnum` value or a custom string
47
- * @returns `true` when the report was created
48
- */
49
- (postId: Amity.Post['postId'], reason?: Amity.ContentFlagReason): Promise<boolean>;
50
- };
51
1
  /**
52
2
  * ```js
53
- * import { PostRepository, ContentFlagReasonEnum } from '@amityco/ts-sdk'
54
- *
55
- * // No reason.
56
- * await PostRepository.flagPost(postId)
57
- *
58
- * // Category plus optional reporter context (any category, including Others).
59
- * await PostRepository.flagPost(postId, {
60
- * reason: ContentFlagReasonEnum.SpamOrScams,
61
- * detail: 'Repeated promotional links',
62
- * })
3
+ * import { PostRepository } from '@amityco/ts-sdk'
4
+ * const flagged = await PostRepository.flagPost(postId, reason)
63
5
  * ```
64
6
  *
65
- * Reports a post to moderation. Three call shapes are accepted (see the overloads):
66
- * id-only, an options object, and the deprecated legacy reason string. The public
67
- * name only dispatches on the input shape; the two implementations are kept separate
68
- * so the legacy path is untouched by the new contract:
69
- *
70
- * - `undefined` or a string → `flagPostWithReasonString` (unchanged legacy mapping)
71
- * - anything else → `flagPostWithOptions` (validated `{ reason, detail? }`)
72
- *
73
- * @param postId The ID of the post to flag
74
- * @param input an options object `{ reason, detail? }`, a legacy reason string, or nothing
75
- * @returns `true` when the report was created
7
+ * @param postId of the post to flag
8
+ * @param reason the reason to flag the post
9
+ * @returns a boolean
76
10
  *
77
11
  * @category Post API
78
12
  * @async
79
13
  * */
80
- export declare const flagPost: FlagPost;
81
- export {};
14
+ export declare const flagPost: (postId: Amity.Post['postId'], reason?: Amity.ContentFlagReason) => Promise<boolean>;
82
15
  //# sourceMappingURL=flagPost.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"flagPost.d.ts","sourceRoot":"","sources":["../../../src/postRepository/api/flagPost.ts"],"names":[],"mappings":"AAIA,aAAK,QAAQ,GAAG;IACd;;;;;;;;;;OAUG;IACH,CAAC,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IACrE;;;;;;;;;;;;;;;;;OAiBG;IACH,CAAC,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,KAAK,CAAC,kBAAkB,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IACpF;;;;;;;;;;;;;;;OAeG;IACH,CAAC,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,EAAE,KAAK,CAAC,iBAAiB,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CACpF,CAAC;AAKF;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA4BK;AACL,eAAO,MAAM,QAAQ,EAAE,QAMiB,CAAC"}
1
+ {"version":3,"file":"flagPost.d.ts","sourceRoot":"","sources":["../../../src/postRepository/api/flagPost.ts"],"names":[],"mappings":"AASA;;;;;;;;;;;;KAYK;AACL,eAAO,MAAM,QAAQ,WACX,MAAM,IAAI,CAAC,QAAQ,CAAC,WACnB,MAAM,iBAAiB,KAC/B,QAAQ,OAAO,CA2BjB,CAAC"}
@@ -1,4 +1,2 @@
1
1
  export * from './getPost';
2
- export * from './flagPostWithReasonString';
3
- export * from './flagPostWithOptions';
4
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/postRepository/internalApi/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAE1B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/postRepository/internalApi/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC"}
@@ -1,63 +1,22 @@
1
- declare type FlagUser = {
2
- /**
3
- * ```js
4
- * import { UserRepository } from '@amityco/ts-sdk'
5
- * const flagged = await UserRepository.flagUser('userId')
6
- * ```
7
- *
8
- * Flags a user with a typeless report. No request body is sent.
9
- *
10
- * To report a specific profile field use `flagUserProfile(userId, { field, comment })`;
11
- * to report behavior use `flagUserBehavior(userId, { reason, comment })`.
12
- *
13
- * @param userId The ID of the user to be flagged
14
- * @returns the flagged {@link Amity.User}
15
- */
16
- (userId: Amity.User['userId'], options?: undefined): Promise<Amity.User>;
17
- /**
18
- * ```js
19
- * import { UserRepository } from '@amityco/ts-sdk'
20
- * const flaggedBehavior = await UserRepository.flagUser('userId', {
21
- * reportType: 'behavior',
22
- * reason: 'Harassment or bullying',
23
- * comment: 'optional free-text',
24
- * })
25
- * ```
26
- *
27
- * @deprecated Use `flagUserProfile(userId, { field, comment })` to report a profile
28
- * field, or `flagUserBehavior(userId, { reason, comment })` to report behavior. For a
29
- * custom `Others` reason, pass `reason: ContentFlagReasonEnum.Others` and put the text
30
- * in `comment`. `flagUser(userId)` without options stays supported. This overload's
31
- * request mapping is unchanged and stays available throughout the current major version.
32
- *
33
- * @param userId The ID of the user to be flagged
34
- * @param options Optional report metadata forwarded to the server as the request
35
- * body: `reportType`, `reason`, `comment`. Only non-undefined fields are included.
36
- * All validation is server-side; a bodyless call produces a typeless report.
37
- * @returns the flagged {@link Amity.User}
38
- */
39
- (userId: Amity.User['userId'], options?: Amity.UserReportOptions): Promise<Amity.User>;
40
- };
41
1
  /**
42
2
  * ```js
43
3
  * import { UserRepository } from '@amityco/ts-sdk'
44
- *
45
- * // Typeless report (supported).
46
4
  * const flagged = await UserRepository.flagUser('userId')
5
+ * const flaggedBehavior = await UserRepository.flagUser('userId', {
6
+ * reportType: 'behavior',
7
+ * reason: 'Harassment or bullying',
8
+ * comment: 'optional free-text',
9
+ * })
47
10
  * ```
48
11
  *
49
- * Flags a user. Two call shapes are accepted (see the overloads): id-only, which
50
- * sends no body and stays supported, and the deprecated structured options object,
51
- * whose request mapping is unchanged. New code reporting a profile field or behavior
52
- * should use `flagUserProfile` or `flagUserBehavior`.
53
- *
54
12
  * @param userId The ID of the user to be flagged
55
- * @param options Deprecated report metadata; omit for a typeless report
13
+ * @param options Optional report metadata forwarded to the server as the request
14
+ * body: `reportType`, `reason`, `comment`. Only non-null fields are included.
15
+ * All validation is server-side; a bodyless call produces a typeless report.
56
16
  * @returns the flagged {@link Amity.User}
57
17
  *
58
18
  * @category User API
59
19
  * @async
60
20
  * */
61
- export declare const flagUser: FlagUser;
62
- export {};
21
+ export declare const flagUser: (userId: Amity.User['userId'], options?: Amity.UserReportOptions) => Promise<Amity.User>;
63
22
  //# sourceMappingURL=flagUser.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"flagUser.d.ts","sourceRoot":"","sources":["../../../src/userRepository/api/flagUser.ts"],"names":[],"mappings":"AAiBA,aAAK,QAAQ,GAAG;IACd;;;;;;;;;;;;;OAaG;IACH,CAAC,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IACzE;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,CAAC,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,GAAG,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;CACxF,CAAC;AAKF;;;;;;;;;;;;;;;;;;;KAmBK;AACL,eAAO,MAAM,QAAQ,EAAE,QAuBtB,CAAC"}
1
+ {"version":3,"file":"flagUser.d.ts","sourceRoot":"","sources":["../../../src/userRepository/api/flagUser.ts"],"names":[],"mappings":"AAoBA;;;;;;;;;;;;;;;;;;;KAmBK;AACL,eAAO,MAAM,QAAQ,WACX,MAAM,IAAI,CAAC,QAAQ,CAAC,YAClB,MAAM,iBAAiB,KAChC,QAAQ,MAAM,IAAI,CAoBpB,CAAC"}
@@ -1,8 +1,6 @@
1
1
  export { getUserByIds } from './getUserByIds';
2
2
  export { updateUser } from './updateUser';
3
3
  export { flagUser } from './flagUser';
4
- export { flagUserProfile } from './flagUserProfile';
5
- export { flagUserBehavior } from './flagUserBehavior';
6
4
  export { unflagUser } from './unflagUser';
7
5
  export { isUserFlaggedByMe } from './isUserFlaggedByMe';
8
6
  export { getAllBlockedUsers } from './getAllBlockedUsers';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/userRepository/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/userRepository/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC"}
@@ -234,8 +234,4 @@ export declare const channelCreatedAt3: Amity.RawChannel<any>;
234
234
  export declare const channelLastActivity1: Amity.RawChannel<any>;
235
235
  export declare const channelLastActivity2: Amity.RawChannel<any>;
236
236
  export declare const channelLastActivity3: Amity.RawChannel<any>;
237
- export declare const channelLastMessageAt1: Amity.RawChannel<any>;
238
- export declare const channelLastMessageAt2: Amity.RawChannel<any>;
239
- export declare const channelLastMessageAt3: Amity.RawChannel<any>;
240
- export declare const channelLastMessageAtNull: Amity.RawChannel<any>;
241
237
  //# sourceMappingURL=channel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"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B,CAAC;AAEH,eAAO,MAAM,mBAAmB,uBAI9B,CAAC;AAEH,eAAO,MAAM,mBAAmB,uBAI9B,CAAC;AAEH,eAAO,MAAM,mBAAmB,uBAI9B,CAAC;AAEH,eAAO,MAAM,iBAAiB,uBAI5B,CAAC;AAEH,eAAO,MAAM,iBAAiB,uBAI5B,CAAC;AAEH,eAAO,MAAM,iBAAiB,uBAI5B,CAAC;AAEH,eAAO,MAAM,oBAAoB,uBAG/B,CAAC;AAEH,eAAO,MAAM,oBAAoB,uBAG/B,CAAC;AAEH,eAAO,MAAM,oBAAoB,uBAG/B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amityco/ts-sdk",
3
- "version": "7.28.1-ff89ba3b.0",
3
+ "version": "7.29.0",
4
4
  "license": "CC-BY-ND-4.0",
5
5
  "author": "amity.co <developers@amity.co> (https://amity.co)",
6
6
  "description": "Amity Social Cloud Typescript SDK",
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=getChannelsSortByLastMessage.integration.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getChannelsSortByLastMessage.integration.test.d.ts","sourceRoot":"","sources":["../../../../../src/channelRepository/observers/tests/integrations/getChannelsSortByLastMessage.integration.test.ts"],"names":[],"mappings":""}
@@ -1,16 +0,0 @@
1
- /**
2
- * Session-wide owner of the local `lastActivity` / `lastMessageAt` updates
3
- * (ChannelActivityService v1, Web migration rows W1 – W5).
4
- *
5
- * Registered once per session from `setupLoginSubscriptions` and
6
- * `resumeSession`, so the update runs whether or not a channel collection is
7
- * open, and exactly once per message however many collections are open.
8
- *
9
- * It listens to the raw events rather than `onMessageCreatedMqtt`, so it does
10
- * not duplicate that subscriber's side effects (mark-read, unread recount).
11
- *
12
- * @category private
13
- */
14
- declare const channelActivityOnLoginHandler: () => Amity.Unsubscriber;
15
- export default channelActivityOnLoginHandler;
16
- //# sourceMappingURL=channelActivityOnLoginHandler.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"channelActivityOnLoginHandler.d.ts","sourceRoot":"","sources":["../../../src/channelRepository/utils/channelActivityOnLoginHandler.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;GAYG;AACH,QAAA,MAAM,6BAA6B,QAAO,MAAM,YA6B/C,CAAC;AAEF,eAAe,6BAA6B,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=channelActivity.integration.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"channelActivity.integration.test.d.ts","sourceRoot":"","sources":["../../../../../src/channelRepository/utils/tests/integrations/channelActivity.integration.test.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=updateChannelActivityTimestamps.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"updateChannelActivityTimestamps.test.d.ts","sourceRoot":"","sources":["../../../../src/channelRepository/utils/tests/updateChannelActivityTimestamps.test.ts"],"names":[],"mappings":""}
@@ -1,34 +0,0 @@
1
- declare type ActivityFields = {
2
- lastActivity?: boolean;
3
- lastMessageAt?: boolean;
4
- };
5
- /**
6
- * Single owner of every local write to a channel's ordering timestamps,
7
- * `lastActivity` and `lastMessageAt` (ChannelActivityService v1).
8
- *
9
- * - Monotonic per field: a field moves only when `at` is newer than the stored
10
- * value (or the stored value is `null`), so a late or replayed event never
11
- * moves a channel down the list.
12
- * - One write: both fields are read, compared and pushed in a single cache
13
- * update, followed by one `local.channel.updated` event so every open channel
14
- * collection re-sorts once.
15
- * - Server channel payloads never go through here; they overwrite unguarded.
16
- *
17
- * @returns `true` when at least one field moved
18
- * @category private
19
- */
20
- export declare const updateChannelActivityTimestamps: (channelId: string | undefined, at: Amity.timestamp | undefined, fields?: ActivityFields) => boolean;
21
- /**
22
- * Local correction for the current user's own send (ChannelActivityService v1
23
- * REQ-009, Trigger Matrix row 1b). Once the server confirms the message, each
24
- * field that still holds the device-clock `localAt` written at send time is
25
- * replaced by the server's `serverAt`, even when that is older. A field a newer
26
- * message has already moved is left alone. One write, one change notification,
27
- * nothing when neither field still holds `localAt`.
28
- *
29
- * @returns `true` when at least one field was replaced
30
- * @category private
31
- */
32
- export declare const confirmOwnMessage: (channelId: string | undefined, localAt: Amity.timestamp | undefined, serverAt: Amity.timestamp | undefined) => boolean;
33
- export {};
34
- //# sourceMappingURL=updateChannelActivityTimestamps.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"updateChannelActivityTimestamps.d.ts","sourceRoot":"","sources":["../../../src/channelRepository/utils/updateChannelActivityTimestamps.ts"],"names":[],"mappings":"AAOA,aAAK,cAAc,GAAG;IACpB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,CAAC;AAoDF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,+BAA+B,cAC/B,MAAM,GAAG,SAAS,MACzB,MAAM,SAAS,GAAG,SAAS,WACvB,cAAc,KACrB,OAaF,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,iBAAiB,cACjB,MAAM,GAAG,SAAS,WACpB,MAAM,SAAS,GAAG,SAAS,YAC1B,MAAM,SAAS,GAAG,SAAS,KACpC,OAcF,CAAC"}
@@ -1,13 +0,0 @@
1
- /**
2
- * New `flagComment(commentId, { reason, detail? })` implementation. Any category,
3
- * including `Others`, may carry a `detail`. `detail` is forwarded unchanged (empty and
4
- * whitespace-only strings included) and omitted from the request body when `undefined`;
5
- * the backend enforces the 300-character limit.
6
- *
7
- * Not exported from the public API. It is reached through the
8
- * `CommentRepository.flagComment(commentId, options)` overload; see `api/flagComment.ts`.
9
- *
10
- * @throws {ASCInvalidParameterError} `INVALID_PARAMETERS` when `options` is malformed, before any request is made
11
- */
12
- export declare const flagCommentWithOptions: (commentId: Amity.Comment['commentId'], options: Amity.ContentFlagOptions) => Promise<boolean>;
13
- //# sourceMappingURL=flagCommentWithOptions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"flagCommentWithOptions.d.ts","sourceRoot":"","sources":["../../../src/commentRepository/internalApi/flagCommentWithOptions.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;GAUG;AACH,eAAO,MAAM,sBAAsB,cACtB,aAAa,CAAC,WAAW,CAAC,WAC5B,MAAM,kBAAkB,KAChC,QAAQ,OAAO,CAoBjB,CAAC"}
@@ -1,17 +0,0 @@
1
- /**
2
- * Legacy `flagComment(commentId, reason?)` implementation, kept verbatim so existing
3
- * callers keep the exact request body they had before the options contract existed:
4
- *
5
- * - predefined `ContentFlagReasonEnum` value → `{ reason: <value>, detail: '' }`
6
- * - any other non-empty string (including the literal `'Others'`) → `{ reason: 'Others', detail: <string> }`
7
- * - `undefined` or `''` → `{ reason: 'Others', detail: '' }`
8
- *
9
- * Not exported from the public API. It is reached through the deprecated
10
- * `CommentRepository.flagComment(commentId, reason)` overload; see `api/flagComment.ts`.
11
- *
12
- * Not itself deprecated: it implements the deprecated legacy-string overload of the public
13
- * `flagComment`, which carries the deprecation tag. New code should use `flagCommentWithOptions`
14
- * (the `{ reason, detail? }` contract). This path stays available throughout the current major version.
15
- */
16
- export declare const flagCommentWithReasonString: (commentId: Amity.Comment['commentId'], reason?: Amity.ContentFlagReason) => Promise<boolean>;
17
- //# sourceMappingURL=flagCommentWithReasonString.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"flagCommentWithReasonString.d.ts","sourceRoot":"","sources":["../../../src/commentRepository/internalApi/flagCommentWithReasonString.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,2BAA2B,cAC3B,aAAa,CAAC,WAAW,CAAC,WAC5B,MAAM,iBAAiB,KAC/B,QAAQ,OAAO,CA2BjB,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=flagCommentWithOptions.integration.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"flagCommentWithOptions.integration.test.d.ts","sourceRoot":"","sources":["../../../../../src/commentRepository/internalApi/tests/integration/flagCommentWithOptions.integration.test.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=flagCommentWithReasonString.integration.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"flagCommentWithReasonString.integration.test.d.ts","sourceRoot":"","sources":["../../../../../src/commentRepository/internalApi/tests/integration/flagCommentWithReasonString.integration.test.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=sorting.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sorting.test.d.ts","sourceRoot":"","sources":["../../../../src/core/query/tests/sorting.test.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=microtasks.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"microtasks.test.d.ts","sourceRoot":"","sources":["../../../src/core/tests/microtasks.test.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=serverErrorCodes.integration.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"serverErrorCodes.integration.test.d.ts","sourceRoot":"","sources":["../../../../../src/core/transports/tests/integration/serverErrorCodes.integration.test.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=flagMessage.overloads.integration.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"flagMessage.overloads.integration.test.d.ts","sourceRoot":"","sources":["../../../../../src/messageRepository/api/tests/integration/flagMessage.overloads.integration.test.ts"],"names":[],"mappings":""}
@@ -1,13 +0,0 @@
1
- /**
2
- * New `flagMessage(messageId, { reason, detail? })` implementation. Any category,
3
- * including `Others`, may carry a `detail`. `detail` is forwarded unchanged (empty and
4
- * whitespace-only strings included) and omitted from the request body when `undefined`;
5
- * the backend enforces the 300-character limit.
6
- *
7
- * Not exported from the public API. It is reached through the
8
- * `MessageRepository.flagMessage(messageId, options)` overload; see `api/flagMessage.ts`.
9
- *
10
- * @throws {ASCInvalidParameterError} `INVALID_PARAMETERS` when `options` is malformed, before any request is made
11
- */
12
- export declare const flagMessageWithOptions: (messageId: Amity.Message['messageId'], options: Amity.ContentFlagOptions) => Promise<boolean>;
13
- //# sourceMappingURL=flagMessageWithOptions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"flagMessageWithOptions.d.ts","sourceRoot":"","sources":["../../../src/messageRepository/internalApi/flagMessageWithOptions.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;GAUG;AACH,eAAO,MAAM,sBAAsB,cACtB,MAAM,OAAO,CAAC,WAAW,CAAC,WAC5B,MAAM,kBAAkB,KAChC,QAAQ,OAAO,CAqBjB,CAAC"}
@@ -1,18 +0,0 @@
1
- /**
2
- * Legacy `flagMessage(messageId, reason?)` implementation, kept verbatim so existing
3
- * callers keep the exact request body they had before the options contract existed:
4
- *
5
- * - predefined `ContentFlagReasonEnum` value → `{ reason: <value>, detail: '' }`
6
- * - any other non-empty string (including the literal `'Others'`) → `{ reason: 'Others', detail: <string> }`
7
- * - `undefined` or `''` → `{ reason: 'Others', detail: '' }`
8
- * (for `undefined` the message body carries `detail: undefined`, which JSON serialization omits)
9
- *
10
- * Not exported from the public API. It is reached through the deprecated
11
- * `MessageRepository.flagMessage(messageId, reason)` overload; see `api/flagMessage.ts`.
12
- *
13
- * Not itself deprecated: it implements the deprecated legacy-string overload of the public
14
- * `flagMessage`, which carries the deprecation tag. New code should use `flagMessageWithOptions`
15
- * (the `{ reason, detail? }` contract). This path stays available throughout the current major version.
16
- */
17
- export declare const flagMessageWithReasonString: (messageId: Amity.Message['messageId'], reason?: Amity.ContentFlagReason) => Promise<boolean>;
18
- //# sourceMappingURL=flagMessageWithReasonString.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"flagMessageWithReasonString.d.ts","sourceRoot":"","sources":["../../../src/messageRepository/internalApi/flagMessageWithReasonString.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,2BAA2B,cAC3B,MAAM,OAAO,CAAC,WAAW,CAAC,WAC5B,MAAM,iBAAiB,KAC/B,QAAQ,OAAO,CA4BjB,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=flagMessageWithOptions.integration.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"flagMessageWithOptions.integration.test.d.ts","sourceRoot":"","sources":["../../../../../src/messageRepository/internalApi/tests/integration/flagMessageWithOptions.integration.test.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=flagMessageWithReasonString.integration.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"flagMessageWithReasonString.integration.test.d.ts","sourceRoot":"","sources":["../../../../../src/messageRepository/internalApi/tests/integration/flagMessageWithReasonString.integration.test.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=flagPost.overloads.integration.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"flagPost.overloads.integration.test.d.ts","sourceRoot":"","sources":["../../../../../src/postRepository/api/tests/integration/flagPost.overloads.integration.test.ts"],"names":[],"mappings":""}
@@ -1,13 +0,0 @@
1
- /**
2
- * New `flagPost(postId, { reason, detail? })` implementation. Any category, including
3
- * `Others`, may carry a `detail`. `detail` is forwarded unchanged (empty and
4
- * whitespace-only strings included) and omitted from the request body when `undefined`;
5
- * the backend enforces the 300-character limit.
6
- *
7
- * Not exported from the public API. It is reached through the
8
- * `PostRepository.flagPost(postId, options)` overload; see `api/flagPost.ts`.
9
- *
10
- * @throws {ASCInvalidParameterError} `INVALID_PARAMETERS` when `options` is malformed, before any request is made
11
- */
12
- export declare const flagPostWithOptions: (postId: Amity.Post['postId'], options: Amity.ContentFlagOptions) => Promise<boolean>;
13
- //# sourceMappingURL=flagPostWithOptions.d.ts.map