@amityco/ts-sdk 7.29.1-0cb2e19.0 → 7.29.1-c2a29dc.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.
- package/dist/@types/core/errors.d.ts +2 -1
- package/dist/@types/core/errors.d.ts.map +1 -1
- package/dist/@types/domains/user.d.ts +44 -0
- package/dist/@types/domains/user.d.ts.map +1 -1
- package/dist/index.cjs.js +96 -13
- package/dist/index.esm.js +97 -14
- package/dist/index.umd.js +2 -2
- package/dist/report/api/isReportedByMe.d.ts.map +1 -1
- package/dist/userRepository/api/isUserFlaggedByMe.d.ts +22 -4
- package/dist/userRepository/api/isUserFlaggedByMe.d.ts.map +1 -1
- package/dist/userRepository/api/unflagUser.d.ts +26 -4
- package/dist/userRepository/api/unflagUser.d.ts.map +1 -1
- package/dist/userRepository/utils/userReport.d.ts +16 -1
- package/dist/userRepository/utils/userReport.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -28,7 +28,8 @@ declare global {
|
|
|
28
28
|
VISITOR_USAGE_LIMIT_EXCEEDED = 400323,
|
|
29
29
|
FEED_SNAPSHOT_EXPIRED = 400322,
|
|
30
30
|
MAX_BLOCKED_USERS_REACHED = 400324,
|
|
31
|
-
MODULE_NOT_ENTITLED = 400325
|
|
31
|
+
MODULE_NOT_ENTITLED = 400325,
|
|
32
|
+
VISITOR_REPORT_DENIED = 488999
|
|
32
33
|
}
|
|
33
34
|
const enum ClientError {
|
|
34
35
|
UNKNOWN_ERROR = 800000,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/@types/core/errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC;AAEV,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,KAAK,CAAC;QACd,WAAW,UAAU;YACnB,KAAK,UAAU;YACf,KAAK,UAAU;SAChB;QAED,WAAW,WAAW;YACpB,WAAW,SAAS;YACpB,YAAY,SAAS;YACrB,iBAAiB,SAAS;YAC1B,cAAc,SAAS;YACvB,QAAQ,SAAS;YACjB,SAAS,SAAS;YAClB,aAAa,SAAS;YACtB,gBAAgB,SAAS;YACzB,WAAW,SAAS;YACpB,UAAU,SAAS;YACnB,WAAW,SAAS;YACpB,cAAc,SAAS;YACvB,0BAA0B,SAAS;YACnC,uBAAuB,SAAS;YAChC,cAAc,SAAS;YACvB,gBAAgB,SAAS;YACzB,cAAc,SAAS;YACvB,yBAAyB,SAAS;YAClC,qBAAqB,SAAS;YAC9B,4BAA4B,SAAS;YACrC,qBAAqB,SAAS;YAC9B,yBAAyB,SAAS;YAClC,mBAAmB,SAAS;
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/@types/core/errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC;AAEV,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,KAAK,CAAC;QACd,WAAW,UAAU;YACnB,KAAK,UAAU;YACf,KAAK,UAAU;SAChB;QAED,WAAW,WAAW;YACpB,WAAW,SAAS;YACpB,YAAY,SAAS;YACrB,iBAAiB,SAAS;YAC1B,cAAc,SAAS;YACvB,QAAQ,SAAS;YACjB,SAAS,SAAS;YAClB,aAAa,SAAS;YACtB,gBAAgB,SAAS;YACzB,WAAW,SAAS;YACpB,UAAU,SAAS;YACnB,WAAW,SAAS;YACpB,cAAc,SAAS;YACvB,0BAA0B,SAAS;YACnC,uBAAuB,SAAS;YAChC,cAAc,SAAS;YACvB,gBAAgB,SAAS;YACzB,cAAc,SAAS;YACvB,yBAAyB,SAAS;YAClC,qBAAqB,SAAS;YAC9B,4BAA4B,SAAS;YACrC,qBAAqB,SAAS;YAC9B,yBAAyB,SAAS;YAClC,mBAAmB,SAAS;YAE5B,qBAAqB,SAAS;SAC/B;QAED,WAAW,WAAW;YACpB,aAAa,SAAS;YACtB,kBAAkB,SAAS;YAC3B,iBAAiB,SAAS;YAC1B,gBAAgB,SAAS;YACzB,YAAY,SAAS;YACrB,aAAa,SAAS;YACtB,wBAAwB,SAAS;SAClC;QAED,KAAK,SAAS,GAAG,WAAW,GAAG,WAAW,CAAC;KAC5C;CACF"}
|
|
@@ -27,6 +27,20 @@ export declare enum UserProfileFieldEnum {
|
|
|
27
27
|
DESCRIPTION = "description",
|
|
28
28
|
AVATAR = "avatarFileId"
|
|
29
29
|
}
|
|
30
|
+
/**
|
|
31
|
+
* Selects which of the caller's reports `UserRepository.unflagUser` withdraws, sent as the
|
|
32
|
+
* `reportType` query parameter. The four typed members are the backend `reportType` wire
|
|
33
|
+
* values and match `UserReportTypeEnum`. `UNTYPED` selects the typeless (legacy) report,
|
|
34
|
+
* which `isUserFlaggedByMe` returns as `reportType: null`; it is a selector only, never
|
|
35
|
+
* stored, and the flag endpoint refuses it.
|
|
36
|
+
*/
|
|
37
|
+
export declare enum UserReportTypeFilterEnum {
|
|
38
|
+
DISPLAY_NAME = "displayName",
|
|
39
|
+
DESCRIPTION = "description",
|
|
40
|
+
AVATAR = "avatarFileId",
|
|
41
|
+
BEHAVIOR = "behavior",
|
|
42
|
+
UNTYPED = "untyped"
|
|
43
|
+
}
|
|
30
44
|
export {};
|
|
31
45
|
declare global {
|
|
32
46
|
namespace Amity {
|
|
@@ -70,6 +84,36 @@ declare global {
|
|
|
70
84
|
reason: ContentFlagReasonEnum;
|
|
71
85
|
comment?: string;
|
|
72
86
|
};
|
|
87
|
+
type UserReportTypeFilter = `${UserReportTypeFilterEnum}`;
|
|
88
|
+
/**
|
|
89
|
+
* Options of `UserRepository.unflagUser`. Omit `reportType` to withdraw every report
|
|
90
|
+
* the caller filed on the user; pass one to withdraw only that report.
|
|
91
|
+
*/
|
|
92
|
+
type UserReportTypeFilterOptions = {
|
|
93
|
+
reportType?: Amity.UserReportTypeFilter;
|
|
94
|
+
};
|
|
95
|
+
/**
|
|
96
|
+
* One of the caller's own reports on a user, as the backend returns it in
|
|
97
|
+
* `UserRepository.isUserFlaggedByMe`. Every field is always present; a field the
|
|
98
|
+
* report does not carry is `null`. `reportType: null` is the typeless report (withdrawn
|
|
99
|
+
* with `UserReportTypeFilterEnum.UNTYPED`) and `createdAt: null` marks a report filed
|
|
100
|
+
* before report types existed.
|
|
101
|
+
*/
|
|
102
|
+
type UserFlag = {
|
|
103
|
+
reportType: `${UserReportTypeEnum}` | null;
|
|
104
|
+
reason: string | null;
|
|
105
|
+
comment: string | null;
|
|
106
|
+
createdAt: string | null;
|
|
107
|
+
};
|
|
108
|
+
/**
|
|
109
|
+
* Result of `UserRepository.isUserFlaggedByMe`: the `GET /api/v4/users/:userId/isFlagByMe`
|
|
110
|
+
* payload as is. `isFlagByMe` says whether the caller holds any report on the user;
|
|
111
|
+
* `flags` lists the caller's own reports. Other users' reports are never included.
|
|
112
|
+
*/
|
|
113
|
+
type UserFlagByMe = {
|
|
114
|
+
isFlagByMe: boolean;
|
|
115
|
+
flags: Amity.UserFlag[];
|
|
116
|
+
};
|
|
73
117
|
type RawUser = {
|
|
74
118
|
_id: string;
|
|
75
119
|
userId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../src/@types/domains/user.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAElD,0BAAkB,YAAY;IAC5B,SAAS,cAAc;IACvB,OAAO,YAAY;IACnB,GAAG,QAAQ;CACZ;AAED,oBAAY,iBAAiB;IAC3B,YAAY,gBAAgB;IAC5B,cAAc,kBAAkB;IAChC,OAAO,WAAW;CACnB;AAED,oBAAY,kBAAkB;IAC5B,YAAY,gBAAgB;IAC5B,WAAW,gBAAgB;IAC3B,MAAM,iBAAiB;IACvB,QAAQ,aAAa;CACtB;AAED;;;;;GAKG;AACH,oBAAY,oBAAoB;IAC9B,YAAY,gBAAgB;IAC5B,WAAW,gBAAgB;IAC3B,MAAM,iBAA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}
|
package/dist/index.cjs.js
CHANGED
|
@@ -70,6 +70,21 @@ exports.UserProfileFieldEnum = void 0;
|
|
|
70
70
|
UserProfileFieldEnum["DESCRIPTION"] = "description";
|
|
71
71
|
UserProfileFieldEnum["AVATAR"] = "avatarFileId";
|
|
72
72
|
})(exports.UserProfileFieldEnum || (exports.UserProfileFieldEnum = {}));
|
|
73
|
+
/**
|
|
74
|
+
* Selects which of the caller's reports `UserRepository.unflagUser` withdraws, sent as the
|
|
75
|
+
* `reportType` query parameter. The four typed members are the backend `reportType` wire
|
|
76
|
+
* values and match `UserReportTypeEnum`. `UNTYPED` selects the typeless (legacy) report,
|
|
77
|
+
* which `isUserFlaggedByMe` returns as `reportType: null`; it is a selector only, never
|
|
78
|
+
* stored, and the flag endpoint refuses it.
|
|
79
|
+
*/
|
|
80
|
+
exports.UserReportTypeFilterEnum = void 0;
|
|
81
|
+
(function (UserReportTypeFilterEnum) {
|
|
82
|
+
UserReportTypeFilterEnum["DISPLAY_NAME"] = "displayName";
|
|
83
|
+
UserReportTypeFilterEnum["DESCRIPTION"] = "description";
|
|
84
|
+
UserReportTypeFilterEnum["AVATAR"] = "avatarFileId";
|
|
85
|
+
UserReportTypeFilterEnum["BEHAVIOR"] = "behavior";
|
|
86
|
+
UserReportTypeFilterEnum["UNTYPED"] = "untyped";
|
|
87
|
+
})(exports.UserReportTypeFilterEnum || (exports.UserReportTypeFilterEnum = {}));
|
|
73
88
|
|
|
74
89
|
const FileType = Object.freeze({
|
|
75
90
|
FILE: 'file',
|
|
@@ -15487,6 +15502,7 @@ const submitUserReport = async (apiName, userId, body) => {
|
|
|
15487
15502
|
const USER_REPORT_COMMENT_MAX_LENGTH = 300;
|
|
15488
15503
|
const PROFILE_FIELDS = Object.values(exports.UserProfileFieldEnum);
|
|
15489
15504
|
const BEHAVIOR_REASONS = Object.values(exports.ContentFlagReasonEnum);
|
|
15505
|
+
const REPORT_TYPE_FILTERS = Object.values(exports.UserReportTypeFilterEnum);
|
|
15490
15506
|
const assertOptionsObject = (apiName, options, shape) => {
|
|
15491
15507
|
if (typeof options !== 'object' || options === null || Array.isArray(options)) {
|
|
15492
15508
|
throw new ASCInvalidParameterError(`${apiName}: expected an options object \`${shape}\``);
|
|
@@ -15546,6 +15562,28 @@ const toUserBehaviorReportBody = (options) => {
|
|
|
15546
15562
|
}
|
|
15547
15563
|
return withComment({ reportType: 'behavior', reason }, normalizeUserReportComment(apiName, comment));
|
|
15548
15564
|
};
|
|
15565
|
+
/**
|
|
15566
|
+
* Validates the optional `{ reportType? }` of `unflagUser` and builds its query parameters.
|
|
15567
|
+
* Returns `undefined` when no `reportType` is given, so the request carries no query string
|
|
15568
|
+
* and withdraws every report the caller filed on the user. The server validates the value
|
|
15569
|
+
* too (422); this local check only saves the round-trip for the string alias, which admits
|
|
15570
|
+
* raw strings. Untyped callers can pass anything at runtime, so nothing is trusted from the
|
|
15571
|
+
* declared type.
|
|
15572
|
+
*
|
|
15573
|
+
* @throws {ASCInvalidParameterError} `INVALID_PARAMETERS` when the options are malformed or `reportType` is unknown
|
|
15574
|
+
*/
|
|
15575
|
+
const toUserReportTypeFilter = (options) => {
|
|
15576
|
+
if (options === undefined)
|
|
15577
|
+
return undefined;
|
|
15578
|
+
const apiName = 'unflagUser';
|
|
15579
|
+
const { reportType } = assertOptionsObject(apiName, options, '{ reportType? }');
|
|
15580
|
+
if (reportType === undefined)
|
|
15581
|
+
return undefined;
|
|
15582
|
+
if (typeof reportType !== 'string' || !REPORT_TYPE_FILTERS.includes(reportType)) {
|
|
15583
|
+
throw new ASCInvalidParameterError(`${apiName}: \`reportType\` must be a \`UserReportTypeFilterEnum\` value`);
|
|
15584
|
+
}
|
|
15585
|
+
return { reportType: reportType };
|
|
15586
|
+
};
|
|
15549
15587
|
|
|
15550
15588
|
/* begin_public_function
|
|
15551
15589
|
id: user.flag_profile
|
|
@@ -15618,20 +15656,46 @@ const flagUserBehavior = async (userId, options) => submitUserReport('flagUserBe
|
|
|
15618
15656
|
*/
|
|
15619
15657
|
/**
|
|
15620
15658
|
* ```js
|
|
15621
|
-
* import { UserRepository } from '@amityco/ts-sdk'
|
|
15622
|
-
*
|
|
15659
|
+
* import { UserRepository, UserReportTypeFilterEnum } from '@amityco/ts-sdk'
|
|
15660
|
+
*
|
|
15661
|
+
* // Withdraw every report I filed on the user.
|
|
15662
|
+
* const unflagged = await UserRepository.unflagUser('userId')
|
|
15663
|
+
*
|
|
15664
|
+
* // Withdraw only my behavior report; my other reports on the user stay.
|
|
15665
|
+
* await UserRepository.unflagUser('userId', { reportType: UserReportTypeFilterEnum.BEHAVIOR })
|
|
15666
|
+
*
|
|
15667
|
+
* // Withdraw only my typeless (legacy) report.
|
|
15668
|
+
* await UserRepository.unflagUser('userId', { reportType: UserReportTypeFilterEnum.UNTYPED })
|
|
15623
15669
|
* ```
|
|
15624
15670
|
*
|
|
15671
|
+
* Withdraws the caller's reports on a user. Without `reportType` every report the caller
|
|
15672
|
+
* filed on that user is withdrawn, as before. With `reportType` only the caller's report
|
|
15673
|
+
* of that type is withdrawn; the caller's other reports and other users' reports are
|
|
15674
|
+
* untouched. Withdrawing a report that does not exist succeeds and changes nothing.
|
|
15675
|
+
*
|
|
15676
|
+
* The returned user is persisted to the cache, so its `hashFlag` says whether the caller
|
|
15677
|
+
* still holds any report on the user. Do not flip a local "flagged by me" flag to `false`
|
|
15678
|
+
* after a per-type withdrawal; read the fresh user, or call `isUserFlaggedByMe` for the
|
|
15679
|
+
* remaining per-type state (`flags`).
|
|
15680
|
+
*
|
|
15681
|
+
* Sends `DELETE /api/v4/me/flags/:userId`, with `?reportType=<type>` when one is given.
|
|
15682
|
+
*
|
|
15625
15683
|
* @param userId The ID of the user to unflag
|
|
15626
|
-
* @
|
|
15684
|
+
* @param options Optional; `reportType` selects a single report to withdraw. For a report that `isUserFlaggedByMe` lists with `reportType: null`, pass `UserReportTypeFilterEnum.UNTYPED`
|
|
15685
|
+
* @returns `true` once the server has processed the withdrawal
|
|
15686
|
+
* @throws {ASCInvalidParameterError} `INVALID_PARAMETERS` when `reportType` is not a `UserReportTypeFilterEnum` value, before any request is made
|
|
15627
15687
|
*
|
|
15628
15688
|
* @category User API
|
|
15629
15689
|
* @async
|
|
15630
15690
|
* */
|
|
15631
|
-
const unflagUser = async (userId) => {
|
|
15632
|
-
const client = getActiveClient();
|
|
15633
|
-
client.log('user/unflag', userId);
|
|
15634
|
-
const
|
|
15691
|
+
const unflagUser = async (userId, options) => {
|
|
15692
|
+
const client = getActiveClient();
|
|
15693
|
+
client.log('user/unflag', { userId, options });
|
|
15694
|
+
const params = toUserReportTypeFilter(options);
|
|
15695
|
+
const url = `/api/v4/me/flags/${encodeURIComponent(userId)}`;
|
|
15696
|
+
const { data } = params
|
|
15697
|
+
? await client.http.delete(url, { params })
|
|
15698
|
+
: await client.http.delete(url);
|
|
15635
15699
|
const payload = prepareUserPayload(data);
|
|
15636
15700
|
if (client.cache) {
|
|
15637
15701
|
ingestInCache(payload);
|
|
@@ -15647,11 +15711,29 @@ const unflagUser = async (userId) => {
|
|
|
15647
15711
|
/**
|
|
15648
15712
|
* ```js
|
|
15649
15713
|
* import { UserRepository } from '@amityco/ts-sdk'
|
|
15650
|
-
*
|
|
15714
|
+
*
|
|
15715
|
+
* const { isFlagByMe, flags } = await UserRepository.isUserFlaggedByMe('userId')
|
|
15716
|
+
*
|
|
15717
|
+
* // Grey out the report options already used; null marks the typeless report.
|
|
15718
|
+
* const used = new Set(flags.map(flag => flag.reportType))
|
|
15651
15719
|
* ```
|
|
15652
15720
|
*
|
|
15653
|
-
*
|
|
15654
|
-
*
|
|
15721
|
+
* Returns whether the caller has reported a user, with each of the caller's own reports
|
|
15722
|
+
* on that user, exactly as `GET /api/v4/users/:userId/isFlagByMe` answers. Each report
|
|
15723
|
+
* carries `reportType`, `reason`, `comment` and `createdAt`; a field the report does not
|
|
15724
|
+
* have is `null`. `reportType: null` is the typeless (legacy) report, which `unflagUser`
|
|
15725
|
+
* withdraws with `UserReportTypeFilterEnum.UNTYPED`. Only the caller's reports come back.
|
|
15726
|
+
*
|
|
15727
|
+
* This is the only source of per-type state. Nothing is filtered, cached or persisted:
|
|
15728
|
+
* the call reads the server every time and does not consult `hashFlag`, which is a
|
|
15729
|
+
* type-blind bloom filter. Call it again after a flag or unflag when the UI needs the
|
|
15730
|
+
* updated per-type state.
|
|
15731
|
+
*
|
|
15732
|
+
* Breaking change: earlier versions returned a boolean from the v3 endpoint, which the
|
|
15733
|
+
* backend has deprecated. Read `isFlagByMe` on the result for the same answer.
|
|
15734
|
+
*
|
|
15735
|
+
* @param userId The ID of the user to check
|
|
15736
|
+
* @returns the caller's {@link Amity.UserFlagByMe} on that user
|
|
15655
15737
|
*
|
|
15656
15738
|
* @category Report API
|
|
15657
15739
|
* @async
|
|
@@ -15659,8 +15741,8 @@ const unflagUser = async (userId) => {
|
|
|
15659
15741
|
const isUserFlaggedByMe = async (userId) => {
|
|
15660
15742
|
const client = getActiveClient();
|
|
15661
15743
|
client.log('user/isUserFlaggedByMe', userId);
|
|
15662
|
-
const { data
|
|
15663
|
-
return
|
|
15744
|
+
const { data } = await client.http.get(`/api/v4/users/${encodeURIComponent(userId)}/isFlagByMe`);
|
|
15745
|
+
return data;
|
|
15664
15746
|
};
|
|
15665
15747
|
/* end_public_function */
|
|
15666
15748
|
|
|
@@ -19210,7 +19292,8 @@ const getPostReport = async ({ client, referenceId, }) => {
|
|
|
19210
19292
|
};
|
|
19211
19293
|
const getUserReport = async ({ client, referenceId, }) => {
|
|
19212
19294
|
var _a;
|
|
19213
|
-
|
|
19295
|
+
// v3 isFlagByMe is deprecated by the backend; v4 answers the same boolean plus the caller's flags.
|
|
19296
|
+
const { data } = await client.http.get(`/api/v4/users/${encodeURIComponent(referenceId)}/isFlagByMe`);
|
|
19214
19297
|
const { result, isFlagByMe } = data !== null && data !== void 0 ? data : {};
|
|
19215
19298
|
return (_a = result !== null && result !== void 0 ? result : isFlagByMe) !== null && _a !== void 0 ? _a : false;
|
|
19216
19299
|
};
|
package/dist/index.esm.js
CHANGED
|
@@ -54,6 +54,21 @@ var UserProfileFieldEnum;
|
|
|
54
54
|
UserProfileFieldEnum["DESCRIPTION"] = "description";
|
|
55
55
|
UserProfileFieldEnum["AVATAR"] = "avatarFileId";
|
|
56
56
|
})(UserProfileFieldEnum || (UserProfileFieldEnum = {}));
|
|
57
|
+
/**
|
|
58
|
+
* Selects which of the caller's reports `UserRepository.unflagUser` withdraws, sent as the
|
|
59
|
+
* `reportType` query parameter. The four typed members are the backend `reportType` wire
|
|
60
|
+
* values and match `UserReportTypeEnum`. `UNTYPED` selects the typeless (legacy) report,
|
|
61
|
+
* which `isUserFlaggedByMe` returns as `reportType: null`; it is a selector only, never
|
|
62
|
+
* stored, and the flag endpoint refuses it.
|
|
63
|
+
*/
|
|
64
|
+
var UserReportTypeFilterEnum;
|
|
65
|
+
(function (UserReportTypeFilterEnum) {
|
|
66
|
+
UserReportTypeFilterEnum["DISPLAY_NAME"] = "displayName";
|
|
67
|
+
UserReportTypeFilterEnum["DESCRIPTION"] = "description";
|
|
68
|
+
UserReportTypeFilterEnum["AVATAR"] = "avatarFileId";
|
|
69
|
+
UserReportTypeFilterEnum["BEHAVIOR"] = "behavior";
|
|
70
|
+
UserReportTypeFilterEnum["UNTYPED"] = "untyped";
|
|
71
|
+
})(UserReportTypeFilterEnum || (UserReportTypeFilterEnum = {}));
|
|
57
72
|
|
|
58
73
|
const FileType = Object.freeze({
|
|
59
74
|
FILE: 'file',
|
|
@@ -15487,6 +15502,7 @@ const submitUserReport = async (apiName, userId, body) => {
|
|
|
15487
15502
|
const USER_REPORT_COMMENT_MAX_LENGTH = 300;
|
|
15488
15503
|
const PROFILE_FIELDS = Object.values(UserProfileFieldEnum);
|
|
15489
15504
|
const BEHAVIOR_REASONS = Object.values(ContentFlagReasonEnum);
|
|
15505
|
+
const REPORT_TYPE_FILTERS = Object.values(UserReportTypeFilterEnum);
|
|
15490
15506
|
const assertOptionsObject = (apiName, options, shape) => {
|
|
15491
15507
|
if (typeof options !== 'object' || options === null || Array.isArray(options)) {
|
|
15492
15508
|
throw new ASCInvalidParameterError(`${apiName}: expected an options object \`${shape}\``);
|
|
@@ -15546,6 +15562,28 @@ const toUserBehaviorReportBody = (options) => {
|
|
|
15546
15562
|
}
|
|
15547
15563
|
return withComment({ reportType: 'behavior', reason }, normalizeUserReportComment(apiName, comment));
|
|
15548
15564
|
};
|
|
15565
|
+
/**
|
|
15566
|
+
* Validates the optional `{ reportType? }` of `unflagUser` and builds its query parameters.
|
|
15567
|
+
* Returns `undefined` when no `reportType` is given, so the request carries no query string
|
|
15568
|
+
* and withdraws every report the caller filed on the user. The server validates the value
|
|
15569
|
+
* too (422); this local check only saves the round-trip for the string alias, which admits
|
|
15570
|
+
* raw strings. Untyped callers can pass anything at runtime, so nothing is trusted from the
|
|
15571
|
+
* declared type.
|
|
15572
|
+
*
|
|
15573
|
+
* @throws {ASCInvalidParameterError} `INVALID_PARAMETERS` when the options are malformed or `reportType` is unknown
|
|
15574
|
+
*/
|
|
15575
|
+
const toUserReportTypeFilter = (options) => {
|
|
15576
|
+
if (options === undefined)
|
|
15577
|
+
return undefined;
|
|
15578
|
+
const apiName = 'unflagUser';
|
|
15579
|
+
const { reportType } = assertOptionsObject(apiName, options, '{ reportType? }');
|
|
15580
|
+
if (reportType === undefined)
|
|
15581
|
+
return undefined;
|
|
15582
|
+
if (typeof reportType !== 'string' || !REPORT_TYPE_FILTERS.includes(reportType)) {
|
|
15583
|
+
throw new ASCInvalidParameterError(`${apiName}: \`reportType\` must be a \`UserReportTypeFilterEnum\` value`);
|
|
15584
|
+
}
|
|
15585
|
+
return { reportType: reportType };
|
|
15586
|
+
};
|
|
15549
15587
|
|
|
15550
15588
|
/* begin_public_function
|
|
15551
15589
|
id: user.flag_profile
|
|
@@ -15618,20 +15656,46 @@ const flagUserBehavior = async (userId, options) => submitUserReport('flagUserBe
|
|
|
15618
15656
|
*/
|
|
15619
15657
|
/**
|
|
15620
15658
|
* ```js
|
|
15621
|
-
* import { UserRepository } from '@amityco/ts-sdk'
|
|
15622
|
-
*
|
|
15659
|
+
* import { UserRepository, UserReportTypeFilterEnum } from '@amityco/ts-sdk'
|
|
15660
|
+
*
|
|
15661
|
+
* // Withdraw every report I filed on the user.
|
|
15662
|
+
* const unflagged = await UserRepository.unflagUser('userId')
|
|
15663
|
+
*
|
|
15664
|
+
* // Withdraw only my behavior report; my other reports on the user stay.
|
|
15665
|
+
* await UserRepository.unflagUser('userId', { reportType: UserReportTypeFilterEnum.BEHAVIOR })
|
|
15666
|
+
*
|
|
15667
|
+
* // Withdraw only my typeless (legacy) report.
|
|
15668
|
+
* await UserRepository.unflagUser('userId', { reportType: UserReportTypeFilterEnum.UNTYPED })
|
|
15623
15669
|
* ```
|
|
15624
15670
|
*
|
|
15671
|
+
* Withdraws the caller's reports on a user. Without `reportType` every report the caller
|
|
15672
|
+
* filed on that user is withdrawn, as before. With `reportType` only the caller's report
|
|
15673
|
+
* of that type is withdrawn; the caller's other reports and other users' reports are
|
|
15674
|
+
* untouched. Withdrawing a report that does not exist succeeds and changes nothing.
|
|
15675
|
+
*
|
|
15676
|
+
* The returned user is persisted to the cache, so its `hashFlag` says whether the caller
|
|
15677
|
+
* still holds any report on the user. Do not flip a local "flagged by me" flag to `false`
|
|
15678
|
+
* after a per-type withdrawal; read the fresh user, or call `isUserFlaggedByMe` for the
|
|
15679
|
+
* remaining per-type state (`flags`).
|
|
15680
|
+
*
|
|
15681
|
+
* Sends `DELETE /api/v4/me/flags/:userId`, with `?reportType=<type>` when one is given.
|
|
15682
|
+
*
|
|
15625
15683
|
* @param userId The ID of the user to unflag
|
|
15626
|
-
* @
|
|
15684
|
+
* @param options Optional; `reportType` selects a single report to withdraw. For a report that `isUserFlaggedByMe` lists with `reportType: null`, pass `UserReportTypeFilterEnum.UNTYPED`
|
|
15685
|
+
* @returns `true` once the server has processed the withdrawal
|
|
15686
|
+
* @throws {ASCInvalidParameterError} `INVALID_PARAMETERS` when `reportType` is not a `UserReportTypeFilterEnum` value, before any request is made
|
|
15627
15687
|
*
|
|
15628
15688
|
* @category User API
|
|
15629
15689
|
* @async
|
|
15630
15690
|
* */
|
|
15631
|
-
const unflagUser = async (userId) => {
|
|
15632
|
-
const client = getActiveClient();
|
|
15633
|
-
client.log('user/unflag', userId);
|
|
15634
|
-
const
|
|
15691
|
+
const unflagUser = async (userId, options) => {
|
|
15692
|
+
const client = getActiveClient();
|
|
15693
|
+
client.log('user/unflag', { userId, options });
|
|
15694
|
+
const params = toUserReportTypeFilter(options);
|
|
15695
|
+
const url = `/api/v4/me/flags/${encodeURIComponent(userId)}`;
|
|
15696
|
+
const { data } = params
|
|
15697
|
+
? await client.http.delete(url, { params })
|
|
15698
|
+
: await client.http.delete(url);
|
|
15635
15699
|
const payload = prepareUserPayload(data);
|
|
15636
15700
|
if (client.cache) {
|
|
15637
15701
|
ingestInCache(payload);
|
|
@@ -15647,11 +15711,29 @@ const unflagUser = async (userId) => {
|
|
|
15647
15711
|
/**
|
|
15648
15712
|
* ```js
|
|
15649
15713
|
* import { UserRepository } from '@amityco/ts-sdk'
|
|
15650
|
-
*
|
|
15714
|
+
*
|
|
15715
|
+
* const { isFlagByMe, flags } = await UserRepository.isUserFlaggedByMe('userId')
|
|
15716
|
+
*
|
|
15717
|
+
* // Grey out the report options already used; null marks the typeless report.
|
|
15718
|
+
* const used = new Set(flags.map(flag => flag.reportType))
|
|
15651
15719
|
* ```
|
|
15652
15720
|
*
|
|
15653
|
-
*
|
|
15654
|
-
*
|
|
15721
|
+
* Returns whether the caller has reported a user, with each of the caller's own reports
|
|
15722
|
+
* on that user, exactly as `GET /api/v4/users/:userId/isFlagByMe` answers. Each report
|
|
15723
|
+
* carries `reportType`, `reason`, `comment` and `createdAt`; a field the report does not
|
|
15724
|
+
* have is `null`. `reportType: null` is the typeless (legacy) report, which `unflagUser`
|
|
15725
|
+
* withdraws with `UserReportTypeFilterEnum.UNTYPED`. Only the caller's reports come back.
|
|
15726
|
+
*
|
|
15727
|
+
* This is the only source of per-type state. Nothing is filtered, cached or persisted:
|
|
15728
|
+
* the call reads the server every time and does not consult `hashFlag`, which is a
|
|
15729
|
+
* type-blind bloom filter. Call it again after a flag or unflag when the UI needs the
|
|
15730
|
+
* updated per-type state.
|
|
15731
|
+
*
|
|
15732
|
+
* Breaking change: earlier versions returned a boolean from the v3 endpoint, which the
|
|
15733
|
+
* backend has deprecated. Read `isFlagByMe` on the result for the same answer.
|
|
15734
|
+
*
|
|
15735
|
+
* @param userId The ID of the user to check
|
|
15736
|
+
* @returns the caller's {@link Amity.UserFlagByMe} on that user
|
|
15655
15737
|
*
|
|
15656
15738
|
* @category Report API
|
|
15657
15739
|
* @async
|
|
@@ -15659,8 +15741,8 @@ const unflagUser = async (userId) => {
|
|
|
15659
15741
|
const isUserFlaggedByMe = async (userId) => {
|
|
15660
15742
|
const client = getActiveClient();
|
|
15661
15743
|
client.log('user/isUserFlaggedByMe', userId);
|
|
15662
|
-
const { data
|
|
15663
|
-
return
|
|
15744
|
+
const { data } = await client.http.get(`/api/v4/users/${encodeURIComponent(userId)}/isFlagByMe`);
|
|
15745
|
+
return data;
|
|
15664
15746
|
};
|
|
15665
15747
|
/* end_public_function */
|
|
15666
15748
|
|
|
@@ -19210,7 +19292,8 @@ const getPostReport = async ({ client, referenceId, }) => {
|
|
|
19210
19292
|
};
|
|
19211
19293
|
const getUserReport = async ({ client, referenceId, }) => {
|
|
19212
19294
|
var _a;
|
|
19213
|
-
|
|
19295
|
+
// v3 isFlagByMe is deprecated by the backend; v4 answers the same boolean plus the caller's flags.
|
|
19296
|
+
const { data } = await client.http.get(`/api/v4/users/${encodeURIComponent(referenceId)}/isFlagByMe`);
|
|
19214
19297
|
const { result, isFlagByMe } = data !== null && data !== void 0 ? data : {};
|
|
19215
19298
|
return (_a = result !== null && result !== void 0 ? result : isFlagByMe) !== null && _a !== void 0 ? _a : false;
|
|
19216
19299
|
};
|
|
@@ -37696,4 +37779,4 @@ class AmityAttachmentProductTags {
|
|
|
37696
37779
|
}
|
|
37697
37780
|
}
|
|
37698
37781
|
|
|
37699
|
-
export { API_REGIONS, index$6 as AdRepository, AmityAttachmentProductTags, AmityAutoSubscription, AmityChannelNotificationModeEnum, AmityCommunityType, AmityEventOrderOption, AmityEventOriginType, AmityEventResponseStatus, AmityEventSortOption, AmityEventStatus, AmityEventType, AmityLiveViewerCountMode, AmityModuleNotEntitledError, AmitySharableContentType, AnalyticsSourceTypeEnum, index$g as CategoryRepository, index$k as ChannelRepository, index$t as Client, index$f as CommentRepository, CommunityNotificationEventNameEnum, CommunityPostSettingMaps, CommunityPostSettings, index$h as CommunityRepository, ContentFeedType, ContentFlagReasonEnum, index as CuratedContentRepository, DefaultCommunityPostSetting, index$2 as EventRepository, FeedDataTypeEnum, index$e as FeedRepository, FeedSortByEnum, FeedSourceEnum, FeedTypeEnum, FileAccessTypeEnum, index$q as FileRepository, FileType, GET_WATCHER_URLS, index$4 as InvitationRepository, InvitationSortByEnum, InvitationStatusEnum, InvitationTargetTypeEnum, InvitationTypeEnum, JoinRequestStatusEnum, JoinResultStatusEnum, index$3 as LiveReactionRepository, index$8 as LiveStreamPlayer, MembershipAcceptanceTypeEnum, MessageContentType, index$o as MessageRepository, NotificationRolesFilterTypeEnum, NotificationSettingsLevelEnum, index$9 as PollRepository, PostContentType, index$c as PostRepository, PostStructureType, index$1 as ProductRepository, index$p as ReactionRepository, index$a as RoomPresenceRepository, index$d as RoomRepository, SearchUsersByEnum, index$7 as StoryRepository, index$b as StreamRepository, index$n as SubChannelRepository, SubscriptionLevels, UserNotificationModuleNameEnum, UserProfileFieldEnum, UserReportTypeEnum, index$r as UserRepository, UserTypeEnum, VERSION, VideoResolution, VideoSize, VideoTranscodingStatus, backupCache, createQuery, createReport, createUserToken, deleteReport, disableCache, dropFromCache, enableCache, exceedsUntilAtBoundary, filterByChannelMembership, filterByCommunityMembership, filterByFeedType, filterByPostDataTypes, filterByPropEquality, filterByPropInclusion, filterByPropIntersection, filterBySearchTerm, filterByStringComparePartially, filterByUntilAt, filterCommentsByBlockUsers, filterPostsByBlockUsers, getBlockUsersId, getChannelTopic, getCommentTopic, getCommunityStoriesTopic, getCommunityTopic, getLiveReactionTopic, getLiveStreamTopic, getMarkedMessageTopic, getMarkerUserFeedTopic, getMessageTopic, getMyFollowersTopic, getMyFollowingsTopic, getNetworkId, getNetworkTopic, getPostTopic, getRole, getRoomStreamerTopic, getRoomWatcherTopic, getSmartFeedChannelTopic, getSmartFeedMessageTopic, getSmartFeedSubChannelTopic, getStoryTopic, getSubChannelTopic, getUserTopic, isAfterBefore, isAfterBeforeRaw, isCachable, isFetcher, isFresh, isLocal, isMutator, isOffline, isPaged, isReportedByMe, isSkip, mergeInCache, index$5 as notificationTray, onChannelMarkerFetched, onFeedMarkerFetched, onFeedMarkerUpdated, onMessageMarked, onMessageMarkerFetched, onSubChannelMarkerFetched, onSubChannelMarkerUpdated, onUserMarkerFetched, onUserMarkerFetchedLegacy, pullFromCache, pushToCache, queryCache, queryOptions, queryRoles, resolveModuleAvailability, restoreCache, runQuery, sortByChannelSegment, sortByDisplayName, sortByFirstCreated, sortByFirstUpdated, sortByLastActivity, sortByLastCreated, sortByLastMessage, sortByLastUpdated, sortByLocalSortingDate, sortByName, sortBySegmentNumber, subscribeTopic, toPage, toPageRaw, toToken, upsertInCache, validateUntilAt, wipeCache };
|
|
37782
|
+
export { API_REGIONS, index$6 as AdRepository, AmityAttachmentProductTags, AmityAutoSubscription, AmityChannelNotificationModeEnum, AmityCommunityType, AmityEventOrderOption, AmityEventOriginType, AmityEventResponseStatus, AmityEventSortOption, AmityEventStatus, AmityEventType, AmityLiveViewerCountMode, AmityModuleNotEntitledError, AmitySharableContentType, AnalyticsSourceTypeEnum, index$g as CategoryRepository, index$k as ChannelRepository, index$t as Client, index$f as CommentRepository, CommunityNotificationEventNameEnum, CommunityPostSettingMaps, CommunityPostSettings, index$h as CommunityRepository, ContentFeedType, ContentFlagReasonEnum, index as CuratedContentRepository, DefaultCommunityPostSetting, index$2 as EventRepository, FeedDataTypeEnum, index$e as FeedRepository, FeedSortByEnum, FeedSourceEnum, FeedTypeEnum, FileAccessTypeEnum, index$q as FileRepository, FileType, GET_WATCHER_URLS, index$4 as InvitationRepository, InvitationSortByEnum, InvitationStatusEnum, InvitationTargetTypeEnum, InvitationTypeEnum, JoinRequestStatusEnum, JoinResultStatusEnum, index$3 as LiveReactionRepository, index$8 as LiveStreamPlayer, MembershipAcceptanceTypeEnum, MessageContentType, index$o as MessageRepository, NotificationRolesFilterTypeEnum, NotificationSettingsLevelEnum, index$9 as PollRepository, PostContentType, index$c as PostRepository, PostStructureType, index$1 as ProductRepository, index$p as ReactionRepository, index$a as RoomPresenceRepository, index$d as RoomRepository, SearchUsersByEnum, index$7 as StoryRepository, index$b as StreamRepository, index$n as SubChannelRepository, SubscriptionLevels, UserNotificationModuleNameEnum, UserProfileFieldEnum, UserReportTypeEnum, UserReportTypeFilterEnum, index$r as UserRepository, UserTypeEnum, VERSION, VideoResolution, VideoSize, VideoTranscodingStatus, backupCache, createQuery, createReport, createUserToken, deleteReport, disableCache, dropFromCache, enableCache, exceedsUntilAtBoundary, filterByChannelMembership, filterByCommunityMembership, filterByFeedType, filterByPostDataTypes, filterByPropEquality, filterByPropInclusion, filterByPropIntersection, filterBySearchTerm, filterByStringComparePartially, filterByUntilAt, filterCommentsByBlockUsers, filterPostsByBlockUsers, getBlockUsersId, getChannelTopic, getCommentTopic, getCommunityStoriesTopic, getCommunityTopic, getLiveReactionTopic, getLiveStreamTopic, getMarkedMessageTopic, getMarkerUserFeedTopic, getMessageTopic, getMyFollowersTopic, getMyFollowingsTopic, getNetworkId, getNetworkTopic, getPostTopic, getRole, getRoomStreamerTopic, getRoomWatcherTopic, getSmartFeedChannelTopic, getSmartFeedMessageTopic, getSmartFeedSubChannelTopic, getStoryTopic, getSubChannelTopic, getUserTopic, isAfterBefore, isAfterBeforeRaw, isCachable, isFetcher, isFresh, isLocal, isMutator, isOffline, isPaged, isReportedByMe, isSkip, mergeInCache, index$5 as notificationTray, onChannelMarkerFetched, onFeedMarkerFetched, onFeedMarkerUpdated, onMessageMarked, onMessageMarkerFetched, onSubChannelMarkerFetched, onSubChannelMarkerUpdated, onUserMarkerFetched, onUserMarkerFetchedLegacy, pullFromCache, pushToCache, queryCache, queryOptions, queryRoles, resolveModuleAvailability, restoreCache, runQuery, sortByChannelSegment, sortByDisplayName, sortByFirstCreated, sortByFirstUpdated, sortByLastActivity, sortByLastCreated, sortByLastMessage, sortByLastUpdated, sortByLocalSortingDate, sortByName, sortBySegmentNumber, subscribeTopic, toPage, toPageRaw, toToken, upsertInCache, validateUntilAt, wipeCache };
|