@devvit/reddit 0.12.2-next-2025-10-29-22-09-18-2b8ae2b23.0 → 0.12.2-next-2025-10-30-14-40-48-f40144719.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/models/ModAction.d.ts +35 -0
- package/models/ModAction.d.ts.map +1 -1
- package/package.json +10 -10
package/models/ModAction.d.ts
CHANGED
|
@@ -9,15 +9,50 @@ export type ModActionTarget = {
|
|
|
9
9
|
title?: string | undefined;
|
|
10
10
|
};
|
|
11
11
|
export interface ModAction {
|
|
12
|
+
/**
|
|
13
|
+
* A string like `"ModAction_1b1af634-5b87-11f0-a4f1-4ddd27626cc4"`
|
|
14
|
+
* identifying the ModAction.
|
|
15
|
+
*/
|
|
12
16
|
id: string;
|
|
17
|
+
/**
|
|
18
|
+
* The type of the action. Think of what happened.
|
|
19
|
+
*/
|
|
13
20
|
type: ModActionType;
|
|
21
|
+
/**
|
|
22
|
+
* The username of the moderator.
|
|
23
|
+
*/
|
|
14
24
|
moderatorName: string;
|
|
15
25
|
moderatorId: T2;
|
|
26
|
+
/**
|
|
27
|
+
* When the action took place.
|
|
28
|
+
*/
|
|
16
29
|
createdAt: Date;
|
|
30
|
+
/**
|
|
31
|
+
* The name of the subreddit the action took place.
|
|
32
|
+
*/
|
|
17
33
|
subredditName: string;
|
|
34
|
+
/**
|
|
35
|
+
* The ID of the subreddit the action took place.
|
|
36
|
+
*/
|
|
18
37
|
subredditId: T5;
|
|
38
|
+
/**
|
|
39
|
+
* The string "Page modmail-stats edited: Daily update of the
|
|
40
|
+
* modmail-stats (Wed Jul 02 2025 08:05:47 UTC+0200 (Europe/Amsterdam))" is
|
|
41
|
+
* made up of `description` and `details`. The "Page modmail-stats edited" is
|
|
42
|
+
* the "description".
|
|
43
|
+
*/
|
|
19
44
|
description?: string | undefined;
|
|
45
|
+
/**
|
|
46
|
+
* The string "Page modmail-stats edited: Daily update of the
|
|
47
|
+
* modmail-stats (Wed Jul 02 2025 08:05:47 UTC+0200 (Europe/Amsterdam))" is
|
|
48
|
+
* made up of `description` and `details`. The "Daily update of the
|
|
49
|
+
* modmail-stats (Wed Jul 02 2025 08:05:47 UTC+0200 (Europe/Amsterdam))" is
|
|
50
|
+
* the "details".
|
|
51
|
+
*/
|
|
20
52
|
details?: string | undefined;
|
|
53
|
+
/**
|
|
54
|
+
* Some context of the affected item of the modaction.
|
|
55
|
+
*/
|
|
21
56
|
target?: ModActionTarget | undefined;
|
|
22
57
|
}
|
|
23
58
|
export type ModActionType = 'banuser' | 'unbanuser' | 'spamlink' | 'removelink' | 'approvelink' | 'spamcomment' | 'removecomment' | 'approvecomment' | 'addmoderator' | 'showcomment' | 'invitemoderator' | 'uninvitemoderator' | 'acceptmoderatorinvite' | 'removemoderator' | 'addcontributor' | 'removecontributor' | 'editsettings' | 'editflair' | 'distinguish' | 'marknsfw' | 'wikibanned' | 'wikicontributor' | 'wikiunbanned' | 'wikipagelisted' | 'removewikicontributor' | 'wikirevise' | 'wikipermlevel' | 'ignorereports' | 'unignorereports' | 'setpermissions' | 'setsuggestedsort' | 'sticky' | 'unsticky' | 'setcontestmode' | 'unsetcontestmode' | 'lock' | 'unlock' | 'muteuser' | 'unmuteuser' | 'createrule' | 'editrule' | 'reorderrules' | 'deleterule' | 'spoiler' | 'unspoiler' | 'modmail_enrollment' | 'community_styling' | 'community_widgets' | 'markoriginalcontent' | 'collections' | 'events' | 'create_award' | 'disable_award' | 'delete_award' | 'enable_award' | 'mod_award_given' | 'hidden_award' | 'add_community_topics' | 'remove_community_topics' | 'create_scheduled_post' | 'edit_scheduled_post' | 'delete_scheduled_post' | 'submit_scheduled_post' | 'edit_post_requirements' | 'invitesubscriber' | 'submit_content_rating_survey' | 'adjust_post_crowd_control_level' | 'enable_post_crowd_control_filter' | 'disable_post_crowd_control_filter' | 'deleteoverriddenclassification' | 'overrideclassification' | 'reordermoderators' | 'snoozereports' | 'unsnoozereports' | 'addnote' | 'deletenote' | 'addremovalreason' | 'createremovalreason' | 'updateremovalreason' | 'deleteremovalreason' | 'reorderremovalreason' | 'dev_platform_app_changed' | 'dev_platform_app_disabled' | 'dev_platform_app_enabled' | 'dev_platform_app_installed' | 'dev_platform_app_uninstalled';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModAction.d.ts","sourceRoot":"","sources":["../../src/models/ModAction.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AAI7C,OAAO,KAAK,EAAE,mBAAmB,EAAwB,MAAM,cAAc,CAAC;AAC9E,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC,MAAM,MAAM,eAAe,GAAG;
|
|
1
|
+
{"version":3,"file":"ModAction.d.ts","sourceRoot":"","sources":["../../src/models/ModAction.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AAI7C,OAAO,KAAK,EAAE,mBAAmB,EAAwB,MAAM,cAAc,CAAC;AAC9E,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC,MAAM,MAAM,eAAe,GAAG;IAI5B,EAAE,EAAE,MAAM,CAAC;IAIX,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAI5B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAK1B,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAI/B,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC5B,CAAC;AAEF,MAAM,WAAW,SAAS;IACxB;;;OAGG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,IAAI,EAAE,aAAa,CAAC;IACpB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,EAAE,CAAC;IAChB;;OAEG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;OAEG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B,GACjB,SAAS,GACT,YAAY,GACZ,kBAAkB,GAClB,qBAAqB,GACrB,qBAAqB,GACrB,qBAAqB,GACrB,sBAAsB,GACtB,0BAA0B,GAC1B,2BAA2B,GAC3B,0BAA0B,GAC1B,4BAA4B,GAC5B,8BAA8B,CAAC;AAEnC,MAAM,MAAM,uBAAuB,GAAG,mBAAmB,GAAG;IAC1D,qBAAqB;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,mEAAmE;IACnE,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC9B,mCAAmC;IACnC,IAAI,CAAC,EAAE,aAAa,CAAC;CACtB,CAAC;AAEF,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,uBAAuB,GAAG,OAAO,CAAC,SAAS,CAAC,CAuBrF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devvit/reddit",
|
|
3
|
-
"version": "0.12.2-next-2025-10-
|
|
3
|
+
"version": "0.12.2-next-2025-10-30-14-40-48-f40144719.0",
|
|
4
4
|
"license": "BSD-3-Clause",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -31,22 +31,22 @@
|
|
|
31
31
|
"test:unit-with-coverage": "vitest run --coverage"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@devvit/protos": "0.12.2-next-2025-10-
|
|
35
|
-
"@devvit/public-api": "0.12.2-next-2025-10-
|
|
36
|
-
"@devvit/shared": "0.12.2-next-2025-10-
|
|
37
|
-
"@devvit/shared-types": "0.12.2-next-2025-10-
|
|
38
|
-
"@devvit/splash": "0.12.2-next-2025-10-
|
|
34
|
+
"@devvit/protos": "0.12.2-next-2025-10-30-14-40-48-f40144719.0",
|
|
35
|
+
"@devvit/public-api": "0.12.2-next-2025-10-30-14-40-48-f40144719.0",
|
|
36
|
+
"@devvit/shared": "0.12.2-next-2025-10-30-14-40-48-f40144719.0",
|
|
37
|
+
"@devvit/shared-types": "0.12.2-next-2025-10-30-14-40-48-f40144719.0",
|
|
38
|
+
"@devvit/splash": "0.12.2-next-2025-10-30-14-40-48-f40144719.0"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"@devvit/server": "*"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@devvit/repo-tools": "0.12.2-next-2025-10-
|
|
45
|
-
"@devvit/server": "0.12.2-next-2025-10-
|
|
46
|
-
"@devvit/tsconfig": "0.12.2-next-2025-10-
|
|
44
|
+
"@devvit/repo-tools": "0.12.2-next-2025-10-30-14-40-48-f40144719.0",
|
|
45
|
+
"@devvit/server": "0.12.2-next-2025-10-30-14-40-48-f40144719.0",
|
|
46
|
+
"@devvit/tsconfig": "0.12.2-next-2025-10-30-14-40-48-f40144719.0",
|
|
47
47
|
"eslint": "9.11.1",
|
|
48
48
|
"typescript": "5.8.3",
|
|
49
49
|
"vitest": "1.6.1"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "964ff5c474ae54b31a49d4ce51511cd63b826b58"
|
|
52
52
|
}
|