jansathi-community-schema 0.11.0 → 0.13.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/comment.d.ts +25 -0
- package/dist/comment.d.ts.map +1 -1
- package/dist/community.d.ts +66 -6
- package/dist/community.d.ts.map +1 -1
- package/dist/community.js +21 -5
- package/dist/community.js.map +1 -1
- package/dist/feed.d.ts +325 -0
- package/dist/feed.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/post.d.ts +100 -0
- package/dist/post.d.ts.map +1 -1
- package/dist/post.js +17 -0
- package/dist/post.js.map +1 -1
- package/dist/repost.d.ts +50 -0
- package/dist/repost.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/comment.d.ts
CHANGED
|
@@ -29,6 +29,31 @@ export declare const communityCommentWireSchema: z.ZodObject<{
|
|
|
29
29
|
displayName: z.ZodString;
|
|
30
30
|
avatarUrl: z.ZodOptional<z.ZodString>;
|
|
31
31
|
localName: z.ZodOptional<z.ZodString>;
|
|
32
|
+
designation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
33
|
+
preset: z.ZodNullable<z.ZodEnum<{
|
|
34
|
+
volunteer: "volunteer";
|
|
35
|
+
chairman: "chairman";
|
|
36
|
+
vice_chairman: "vice_chairman";
|
|
37
|
+
president: "president";
|
|
38
|
+
vice_president: "vice_president";
|
|
39
|
+
secretary: "secretary";
|
|
40
|
+
joint_secretary: "joint_secretary";
|
|
41
|
+
general_secretary: "general_secretary";
|
|
42
|
+
treasurer: "treasurer";
|
|
43
|
+
joint_treasurer: "joint_treasurer";
|
|
44
|
+
organizer: "organizer";
|
|
45
|
+
coordinator: "coordinator";
|
|
46
|
+
spokesperson: "spokesperson";
|
|
47
|
+
founder: "founder";
|
|
48
|
+
co_founder: "co_founder";
|
|
49
|
+
patron: "patron";
|
|
50
|
+
advisor: "advisor";
|
|
51
|
+
mentor: "mentor";
|
|
52
|
+
committee_member: "committee_member";
|
|
53
|
+
member_at_large: "member_at_large";
|
|
54
|
+
}>>;
|
|
55
|
+
custom: z.ZodNullable<z.ZodString>;
|
|
56
|
+
}, z.core.$strip>>>;
|
|
32
57
|
}, z.core.$strip>;
|
|
33
58
|
text: z.ZodString;
|
|
34
59
|
upvoteCount: z.ZodNumber;
|
package/dist/comment.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"comment.d.ts","sourceRoot":"","sources":["../src/comment.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,0BAA0B
|
|
1
|
+
{"version":3,"file":"comment.d.ts","sourceRoot":"","sources":["../src/comment.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAkCrC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAI9E,eAAO,MAAM,uBAAuB;;;iBAMlC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAIxE,eAAO,MAAM,uBAAuB;;iBAElC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
|
package/dist/community.d.ts
CHANGED
|
@@ -94,7 +94,7 @@ export declare const communityVerifiedScopeSchema: z.ZodEnum<{
|
|
|
94
94
|
* See `docs/community-create-v2.md` §2 in the jansathi-frontend repo
|
|
95
95
|
* for the full label table.
|
|
96
96
|
*/
|
|
97
|
-
export declare const COMMUNITY_CATEGORY_VALUES: readonly ["womens_group", "mens_group", "youth_group", "senior_citizens", "parenting_children", "resident_welfare", "social_welfare", "social_awareness", "volunteering", "civic_reform", "local_news_issues", "environment", "religion_spirituality", "festivals_culture", "devotional", "education", "competitive_exams", "books_literature", "language_learning", "health_wellness", "yoga_meditation", "fitness", "mental_health", "food_cooking", "travel", "photography", "fashion_beauty", "sports", "cricket", "arts_crafts", "music", "dance", "movies_tv", "gaming", "entertainment", "business_career", "entrepreneurship", "technology", "finance_investing", "agriculture", "news_current_affairs", "other"];
|
|
97
|
+
export declare const COMMUNITY_CATEGORY_VALUES: readonly ["womens_group", "mens_group", "youth_group", "senior_citizens", "parenting_children", "resident_welfare", "social_welfare", "social_awareness", "volunteering", "civic_reform", "local_news_issues", "environment", "legal_law", "politics_government", "real_estate_housing", "religion_spirituality", "festivals_culture", "devotional", "education", "competitive_exams", "books_literature", "language_learning", "science", "health_wellness", "yoga_meditation", "fitness", "mental_health", "lgbtq_identity", "mature_topics", "food_cooking", "travel", "photography", "fashion_beauty", "home_garden", "pets_animals", "vehicles_automotive", "sports", "cricket", "arts_crafts", "music", "dance", "movies_tv", "gaming", "entertainment", "anime_cosplay", "business_career", "entrepreneurship", "technology", "finance_investing", "agriculture", "news_current_affairs", "other"];
|
|
98
98
|
export type CommunityCategory = (typeof COMMUNITY_CATEGORY_VALUES)[number];
|
|
99
99
|
export declare const communityCategorySchema: z.ZodEnum<{
|
|
100
100
|
other: "other";
|
|
@@ -110,6 +110,9 @@ export declare const communityCategorySchema: z.ZodEnum<{
|
|
|
110
110
|
civic_reform: "civic_reform";
|
|
111
111
|
local_news_issues: "local_news_issues";
|
|
112
112
|
environment: "environment";
|
|
113
|
+
legal_law: "legal_law";
|
|
114
|
+
politics_government: "politics_government";
|
|
115
|
+
real_estate_housing: "real_estate_housing";
|
|
113
116
|
religion_spirituality: "religion_spirituality";
|
|
114
117
|
festivals_culture: "festivals_culture";
|
|
115
118
|
devotional: "devotional";
|
|
@@ -117,14 +120,20 @@ export declare const communityCategorySchema: z.ZodEnum<{
|
|
|
117
120
|
competitive_exams: "competitive_exams";
|
|
118
121
|
books_literature: "books_literature";
|
|
119
122
|
language_learning: "language_learning";
|
|
123
|
+
science: "science";
|
|
120
124
|
health_wellness: "health_wellness";
|
|
121
125
|
yoga_meditation: "yoga_meditation";
|
|
122
126
|
fitness: "fitness";
|
|
123
127
|
mental_health: "mental_health";
|
|
128
|
+
lgbtq_identity: "lgbtq_identity";
|
|
129
|
+
mature_topics: "mature_topics";
|
|
124
130
|
food_cooking: "food_cooking";
|
|
125
131
|
travel: "travel";
|
|
126
132
|
photography: "photography";
|
|
127
133
|
fashion_beauty: "fashion_beauty";
|
|
134
|
+
home_garden: "home_garden";
|
|
135
|
+
pets_animals: "pets_animals";
|
|
136
|
+
vehicles_automotive: "vehicles_automotive";
|
|
128
137
|
sports: "sports";
|
|
129
138
|
cricket: "cricket";
|
|
130
139
|
arts_crafts: "arts_crafts";
|
|
@@ -133,6 +142,7 @@ export declare const communityCategorySchema: z.ZodEnum<{
|
|
|
133
142
|
movies_tv: "movies_tv";
|
|
134
143
|
gaming: "gaming";
|
|
135
144
|
entertainment: "entertainment";
|
|
145
|
+
anime_cosplay: "anime_cosplay";
|
|
136
146
|
business_career: "business_career";
|
|
137
147
|
entrepreneurship: "entrepreneurship";
|
|
138
148
|
technology: "technology";
|
|
@@ -153,6 +163,7 @@ export declare const COMMUNITY_TAG_VALUES: readonly ["volunteer", "donation_driv
|
|
|
153
163
|
export type CommunityTag = (typeof COMMUNITY_TAG_VALUES)[number];
|
|
154
164
|
export declare const communityTagSchema: z.ZodEnum<{
|
|
155
165
|
environment: "environment";
|
|
166
|
+
science: "science";
|
|
156
167
|
fitness: "fitness";
|
|
157
168
|
mental_health: "mental_health";
|
|
158
169
|
photography: "photography";
|
|
@@ -205,7 +216,6 @@ export declare const communityTagSchema: z.ZodEnum<{
|
|
|
205
216
|
career_guidance: "career_guidance";
|
|
206
217
|
coding: "coding";
|
|
207
218
|
mathematics: "mathematics";
|
|
208
|
-
science: "science";
|
|
209
219
|
languages: "languages";
|
|
210
220
|
spoken_english: "spoken_english";
|
|
211
221
|
tutoring: "tutoring";
|
|
@@ -417,6 +427,9 @@ export declare const communityWireSchema: z.ZodObject<{
|
|
|
417
427
|
civic_reform: "civic_reform";
|
|
418
428
|
local_news_issues: "local_news_issues";
|
|
419
429
|
environment: "environment";
|
|
430
|
+
legal_law: "legal_law";
|
|
431
|
+
politics_government: "politics_government";
|
|
432
|
+
real_estate_housing: "real_estate_housing";
|
|
420
433
|
religion_spirituality: "religion_spirituality";
|
|
421
434
|
festivals_culture: "festivals_culture";
|
|
422
435
|
devotional: "devotional";
|
|
@@ -424,14 +437,20 @@ export declare const communityWireSchema: z.ZodObject<{
|
|
|
424
437
|
competitive_exams: "competitive_exams";
|
|
425
438
|
books_literature: "books_literature";
|
|
426
439
|
language_learning: "language_learning";
|
|
440
|
+
science: "science";
|
|
427
441
|
health_wellness: "health_wellness";
|
|
428
442
|
yoga_meditation: "yoga_meditation";
|
|
429
443
|
fitness: "fitness";
|
|
430
444
|
mental_health: "mental_health";
|
|
445
|
+
lgbtq_identity: "lgbtq_identity";
|
|
446
|
+
mature_topics: "mature_topics";
|
|
431
447
|
food_cooking: "food_cooking";
|
|
432
448
|
travel: "travel";
|
|
433
449
|
photography: "photography";
|
|
434
450
|
fashion_beauty: "fashion_beauty";
|
|
451
|
+
home_garden: "home_garden";
|
|
452
|
+
pets_animals: "pets_animals";
|
|
453
|
+
vehicles_automotive: "vehicles_automotive";
|
|
435
454
|
sports: "sports";
|
|
436
455
|
cricket: "cricket";
|
|
437
456
|
arts_crafts: "arts_crafts";
|
|
@@ -440,6 +459,7 @@ export declare const communityWireSchema: z.ZodObject<{
|
|
|
440
459
|
movies_tv: "movies_tv";
|
|
441
460
|
gaming: "gaming";
|
|
442
461
|
entertainment: "entertainment";
|
|
462
|
+
anime_cosplay: "anime_cosplay";
|
|
443
463
|
business_career: "business_career";
|
|
444
464
|
entrepreneurship: "entrepreneurship";
|
|
445
465
|
technology: "technology";
|
|
@@ -456,6 +476,7 @@ export declare const communityWireSchema: z.ZodObject<{
|
|
|
456
476
|
}>;
|
|
457
477
|
tags: z.ZodArray<z.ZodEnum<{
|
|
458
478
|
environment: "environment";
|
|
479
|
+
science: "science";
|
|
459
480
|
fitness: "fitness";
|
|
460
481
|
mental_health: "mental_health";
|
|
461
482
|
photography: "photography";
|
|
@@ -508,7 +529,6 @@ export declare const communityWireSchema: z.ZodObject<{
|
|
|
508
529
|
career_guidance: "career_guidance";
|
|
509
530
|
coding: "coding";
|
|
510
531
|
mathematics: "mathematics";
|
|
511
|
-
science: "science";
|
|
512
532
|
languages: "languages";
|
|
513
533
|
spoken_english: "spoken_english";
|
|
514
534
|
tutoring: "tutoring";
|
|
@@ -703,6 +723,9 @@ export declare const createCommunityBodySchema: z.ZodObject<{
|
|
|
703
723
|
civic_reform: "civic_reform";
|
|
704
724
|
local_news_issues: "local_news_issues";
|
|
705
725
|
environment: "environment";
|
|
726
|
+
legal_law: "legal_law";
|
|
727
|
+
politics_government: "politics_government";
|
|
728
|
+
real_estate_housing: "real_estate_housing";
|
|
706
729
|
religion_spirituality: "religion_spirituality";
|
|
707
730
|
festivals_culture: "festivals_culture";
|
|
708
731
|
devotional: "devotional";
|
|
@@ -710,14 +733,20 @@ export declare const createCommunityBodySchema: z.ZodObject<{
|
|
|
710
733
|
competitive_exams: "competitive_exams";
|
|
711
734
|
books_literature: "books_literature";
|
|
712
735
|
language_learning: "language_learning";
|
|
736
|
+
science: "science";
|
|
713
737
|
health_wellness: "health_wellness";
|
|
714
738
|
yoga_meditation: "yoga_meditation";
|
|
715
739
|
fitness: "fitness";
|
|
716
740
|
mental_health: "mental_health";
|
|
741
|
+
lgbtq_identity: "lgbtq_identity";
|
|
742
|
+
mature_topics: "mature_topics";
|
|
717
743
|
food_cooking: "food_cooking";
|
|
718
744
|
travel: "travel";
|
|
719
745
|
photography: "photography";
|
|
720
746
|
fashion_beauty: "fashion_beauty";
|
|
747
|
+
home_garden: "home_garden";
|
|
748
|
+
pets_animals: "pets_animals";
|
|
749
|
+
vehicles_automotive: "vehicles_automotive";
|
|
721
750
|
sports: "sports";
|
|
722
751
|
cricket: "cricket";
|
|
723
752
|
arts_crafts: "arts_crafts";
|
|
@@ -726,6 +755,7 @@ export declare const createCommunityBodySchema: z.ZodObject<{
|
|
|
726
755
|
movies_tv: "movies_tv";
|
|
727
756
|
gaming: "gaming";
|
|
728
757
|
entertainment: "entertainment";
|
|
758
|
+
anime_cosplay: "anime_cosplay";
|
|
729
759
|
business_career: "business_career";
|
|
730
760
|
entrepreneurship: "entrepreneurship";
|
|
731
761
|
technology: "technology";
|
|
@@ -743,6 +773,7 @@ export declare const createCommunityBodySchema: z.ZodObject<{
|
|
|
743
773
|
areaId: z.ZodOptional<z.ZodString>;
|
|
744
774
|
tags: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
745
775
|
environment: "environment";
|
|
776
|
+
science: "science";
|
|
746
777
|
fitness: "fitness";
|
|
747
778
|
mental_health: "mental_health";
|
|
748
779
|
photography: "photography";
|
|
@@ -795,7 +826,6 @@ export declare const createCommunityBodySchema: z.ZodObject<{
|
|
|
795
826
|
career_guidance: "career_guidance";
|
|
796
827
|
coding: "coding";
|
|
797
828
|
mathematics: "mathematics";
|
|
798
|
-
science: "science";
|
|
799
829
|
languages: "languages";
|
|
800
830
|
spoken_english: "spoken_english";
|
|
801
831
|
tutoring: "tutoring";
|
|
@@ -890,6 +920,9 @@ export declare const updateCommunityBodySchema: z.ZodObject<{
|
|
|
890
920
|
civic_reform: "civic_reform";
|
|
891
921
|
local_news_issues: "local_news_issues";
|
|
892
922
|
environment: "environment";
|
|
923
|
+
legal_law: "legal_law";
|
|
924
|
+
politics_government: "politics_government";
|
|
925
|
+
real_estate_housing: "real_estate_housing";
|
|
893
926
|
religion_spirituality: "religion_spirituality";
|
|
894
927
|
festivals_culture: "festivals_culture";
|
|
895
928
|
devotional: "devotional";
|
|
@@ -897,14 +930,20 @@ export declare const updateCommunityBodySchema: z.ZodObject<{
|
|
|
897
930
|
competitive_exams: "competitive_exams";
|
|
898
931
|
books_literature: "books_literature";
|
|
899
932
|
language_learning: "language_learning";
|
|
933
|
+
science: "science";
|
|
900
934
|
health_wellness: "health_wellness";
|
|
901
935
|
yoga_meditation: "yoga_meditation";
|
|
902
936
|
fitness: "fitness";
|
|
903
937
|
mental_health: "mental_health";
|
|
938
|
+
lgbtq_identity: "lgbtq_identity";
|
|
939
|
+
mature_topics: "mature_topics";
|
|
904
940
|
food_cooking: "food_cooking";
|
|
905
941
|
travel: "travel";
|
|
906
942
|
photography: "photography";
|
|
907
943
|
fashion_beauty: "fashion_beauty";
|
|
944
|
+
home_garden: "home_garden";
|
|
945
|
+
pets_animals: "pets_animals";
|
|
946
|
+
vehicles_automotive: "vehicles_automotive";
|
|
908
947
|
sports: "sports";
|
|
909
948
|
cricket: "cricket";
|
|
910
949
|
arts_crafts: "arts_crafts";
|
|
@@ -913,6 +952,7 @@ export declare const updateCommunityBodySchema: z.ZodObject<{
|
|
|
913
952
|
movies_tv: "movies_tv";
|
|
914
953
|
gaming: "gaming";
|
|
915
954
|
entertainment: "entertainment";
|
|
955
|
+
anime_cosplay: "anime_cosplay";
|
|
916
956
|
business_career: "business_career";
|
|
917
957
|
entrepreneurship: "entrepreneurship";
|
|
918
958
|
technology: "technology";
|
|
@@ -922,6 +962,7 @@ export declare const updateCommunityBodySchema: z.ZodObject<{
|
|
|
922
962
|
}>>;
|
|
923
963
|
tags: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
924
964
|
environment: "environment";
|
|
965
|
+
science: "science";
|
|
925
966
|
fitness: "fitness";
|
|
926
967
|
mental_health: "mental_health";
|
|
927
968
|
photography: "photography";
|
|
@@ -974,7 +1015,6 @@ export declare const updateCommunityBodySchema: z.ZodObject<{
|
|
|
974
1015
|
career_guidance: "career_guidance";
|
|
975
1016
|
coding: "coding";
|
|
976
1017
|
mathematics: "mathematics";
|
|
977
|
-
science: "science";
|
|
978
1018
|
languages: "languages";
|
|
979
1019
|
spoken_english: "spoken_english";
|
|
980
1020
|
tutoring: "tutoring";
|
|
@@ -1070,6 +1110,9 @@ export declare const communityListQuerySchema: z.ZodObject<{
|
|
|
1070
1110
|
civic_reform: "civic_reform";
|
|
1071
1111
|
local_news_issues: "local_news_issues";
|
|
1072
1112
|
environment: "environment";
|
|
1113
|
+
legal_law: "legal_law";
|
|
1114
|
+
politics_government: "politics_government";
|
|
1115
|
+
real_estate_housing: "real_estate_housing";
|
|
1073
1116
|
religion_spirituality: "religion_spirituality";
|
|
1074
1117
|
festivals_culture: "festivals_culture";
|
|
1075
1118
|
devotional: "devotional";
|
|
@@ -1077,14 +1120,20 @@ export declare const communityListQuerySchema: z.ZodObject<{
|
|
|
1077
1120
|
competitive_exams: "competitive_exams";
|
|
1078
1121
|
books_literature: "books_literature";
|
|
1079
1122
|
language_learning: "language_learning";
|
|
1123
|
+
science: "science";
|
|
1080
1124
|
health_wellness: "health_wellness";
|
|
1081
1125
|
yoga_meditation: "yoga_meditation";
|
|
1082
1126
|
fitness: "fitness";
|
|
1083
1127
|
mental_health: "mental_health";
|
|
1128
|
+
lgbtq_identity: "lgbtq_identity";
|
|
1129
|
+
mature_topics: "mature_topics";
|
|
1084
1130
|
food_cooking: "food_cooking";
|
|
1085
1131
|
travel: "travel";
|
|
1086
1132
|
photography: "photography";
|
|
1087
1133
|
fashion_beauty: "fashion_beauty";
|
|
1134
|
+
home_garden: "home_garden";
|
|
1135
|
+
pets_animals: "pets_animals";
|
|
1136
|
+
vehicles_automotive: "vehicles_automotive";
|
|
1088
1137
|
sports: "sports";
|
|
1089
1138
|
cricket: "cricket";
|
|
1090
1139
|
arts_crafts: "arts_crafts";
|
|
@@ -1093,6 +1142,7 @@ export declare const communityListQuerySchema: z.ZodObject<{
|
|
|
1093
1142
|
movies_tv: "movies_tv";
|
|
1094
1143
|
gaming: "gaming";
|
|
1095
1144
|
entertainment: "entertainment";
|
|
1145
|
+
anime_cosplay: "anime_cosplay";
|
|
1096
1146
|
business_career: "business_career";
|
|
1097
1147
|
entrepreneurship: "entrepreneurship";
|
|
1098
1148
|
technology: "technology";
|
|
@@ -1144,6 +1194,9 @@ export declare const communityListResponseSchema: z.ZodObject<{
|
|
|
1144
1194
|
civic_reform: "civic_reform";
|
|
1145
1195
|
local_news_issues: "local_news_issues";
|
|
1146
1196
|
environment: "environment";
|
|
1197
|
+
legal_law: "legal_law";
|
|
1198
|
+
politics_government: "politics_government";
|
|
1199
|
+
real_estate_housing: "real_estate_housing";
|
|
1147
1200
|
religion_spirituality: "religion_spirituality";
|
|
1148
1201
|
festivals_culture: "festivals_culture";
|
|
1149
1202
|
devotional: "devotional";
|
|
@@ -1151,14 +1204,20 @@ export declare const communityListResponseSchema: z.ZodObject<{
|
|
|
1151
1204
|
competitive_exams: "competitive_exams";
|
|
1152
1205
|
books_literature: "books_literature";
|
|
1153
1206
|
language_learning: "language_learning";
|
|
1207
|
+
science: "science";
|
|
1154
1208
|
health_wellness: "health_wellness";
|
|
1155
1209
|
yoga_meditation: "yoga_meditation";
|
|
1156
1210
|
fitness: "fitness";
|
|
1157
1211
|
mental_health: "mental_health";
|
|
1212
|
+
lgbtq_identity: "lgbtq_identity";
|
|
1213
|
+
mature_topics: "mature_topics";
|
|
1158
1214
|
food_cooking: "food_cooking";
|
|
1159
1215
|
travel: "travel";
|
|
1160
1216
|
photography: "photography";
|
|
1161
1217
|
fashion_beauty: "fashion_beauty";
|
|
1218
|
+
home_garden: "home_garden";
|
|
1219
|
+
pets_animals: "pets_animals";
|
|
1220
|
+
vehicles_automotive: "vehicles_automotive";
|
|
1162
1221
|
sports: "sports";
|
|
1163
1222
|
cricket: "cricket";
|
|
1164
1223
|
arts_crafts: "arts_crafts";
|
|
@@ -1167,6 +1226,7 @@ export declare const communityListResponseSchema: z.ZodObject<{
|
|
|
1167
1226
|
movies_tv: "movies_tv";
|
|
1168
1227
|
gaming: "gaming";
|
|
1169
1228
|
entertainment: "entertainment";
|
|
1229
|
+
anime_cosplay: "anime_cosplay";
|
|
1170
1230
|
business_career: "business_career";
|
|
1171
1231
|
entrepreneurship: "entrepreneurship";
|
|
1172
1232
|
technology: "technology";
|
|
@@ -1183,6 +1243,7 @@ export declare const communityListResponseSchema: z.ZodObject<{
|
|
|
1183
1243
|
}>;
|
|
1184
1244
|
tags: z.ZodArray<z.ZodEnum<{
|
|
1185
1245
|
environment: "environment";
|
|
1246
|
+
science: "science";
|
|
1186
1247
|
fitness: "fitness";
|
|
1187
1248
|
mental_health: "mental_health";
|
|
1188
1249
|
photography: "photography";
|
|
@@ -1235,7 +1296,6 @@ export declare const communityListResponseSchema: z.ZodObject<{
|
|
|
1235
1296
|
career_guidance: "career_guidance";
|
|
1236
1297
|
coding: "coding";
|
|
1237
1298
|
mathematics: "mathematics";
|
|
1238
|
-
science: "science";
|
|
1239
1299
|
languages: "languages";
|
|
1240
1300
|
spoken_english: "spoken_english";
|
|
1241
1301
|
tutoring: "tutoring";
|
package/dist/community.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"community.d.ts","sourceRoot":"","sources":["../src/community.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAkBxB;;;;;;;GAOG;AACH,eAAO,MAAM,qBAAqB,8CAA+C,CAAC;AAClF,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAAC;AACnE,eAAO,MAAM,mBAAmB;;;;EAAgC,CAAC;AAEjE;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,sBAAsB,kEAMzB,CAAC;AACX,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,CAAC,CAAC;AACrE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AAK,CAAC,OAAO,kCAAkC,CAAC,CAAC;AAE9F;;;qEAGqE;AACrE,eAAO,MAAM,0BAA0B;;;;;iBAErC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAI9E;;;;;;;;;;GAUG;AACH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;iBAYvC,CAAC;AACL,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AAItF;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB;;iBAKpC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAI5E;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,wBAAwB,yCAA0C,CAAC;AAChF,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,wBAAwB,CAAC,CAAC,MAAM,CAAC,CAAC;AACxE,eAAO,MAAM,qBAAqB;;;;EAAmC,CAAC;AAEtE,eAAO,MAAM,qBAAqB;;;;;;;;iBAKhC,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE,eAAO,MAAM,oBAAoB;;;;;;;;;iBAK/B,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,eAAO,MAAM,wBAAwB;;;;;;;;;;;iBAEnC,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
|
package/dist/community.js
CHANGED
|
@@ -100,35 +100,47 @@ export const COMMUNITY_CATEGORY_VALUES = [
|
|
|
100
100
|
'civic_reform',
|
|
101
101
|
'local_news_issues',
|
|
102
102
|
'environment',
|
|
103
|
+
// Civic & legal (3)
|
|
104
|
+
'legal_law',
|
|
105
|
+
'politics_government',
|
|
106
|
+
'real_estate_housing',
|
|
103
107
|
// Faith & culture (3)
|
|
104
108
|
'religion_spirituality',
|
|
105
109
|
'festivals_culture',
|
|
106
110
|
'devotional',
|
|
107
|
-
// Education (
|
|
111
|
+
// Education & sciences (5)
|
|
108
112
|
'education',
|
|
109
113
|
'competitive_exams',
|
|
110
114
|
'books_literature',
|
|
111
115
|
'language_learning',
|
|
116
|
+
'science',
|
|
112
117
|
// Health & wellness (4)
|
|
113
118
|
'health_wellness',
|
|
114
119
|
'yoga_meditation',
|
|
115
120
|
'fitness',
|
|
116
121
|
'mental_health',
|
|
117
|
-
//
|
|
122
|
+
// Identity & society (2)
|
|
123
|
+
'lgbtq_identity',
|
|
124
|
+
'mature_topics',
|
|
125
|
+
// Lifestyle (7)
|
|
118
126
|
'food_cooking',
|
|
119
127
|
'travel',
|
|
120
128
|
'photography',
|
|
121
129
|
'fashion_beauty',
|
|
130
|
+
'home_garden',
|
|
131
|
+
'pets_animals',
|
|
132
|
+
'vehicles_automotive',
|
|
122
133
|
// Sports & arts (5)
|
|
123
134
|
'sports',
|
|
124
135
|
'cricket',
|
|
125
136
|
'arts_crafts',
|
|
126
137
|
'music',
|
|
127
138
|
'dance',
|
|
128
|
-
// Entertainment (
|
|
139
|
+
// Entertainment (4)
|
|
129
140
|
'movies_tv',
|
|
130
141
|
'gaming',
|
|
131
142
|
'entertainment',
|
|
143
|
+
'anime_cosplay',
|
|
132
144
|
// Professional (5)
|
|
133
145
|
'business_career',
|
|
134
146
|
'entrepreneurship',
|
|
@@ -325,7 +337,9 @@ export const communityDesignationSchema = z
|
|
|
325
337
|
preset: communityDesignationPresetSchema.nullable(),
|
|
326
338
|
custom: z.string().nullable(),
|
|
327
339
|
})
|
|
328
|
-
.refine((d) => (d.preset == null) !== (d.custom == null), {
|
|
340
|
+
.refine((d) => (d.preset == null) !== (d.custom == null), {
|
|
341
|
+
message: 'Designation must have exactly one of `preset` or `custom` set.',
|
|
342
|
+
});
|
|
329
343
|
/**
|
|
330
344
|
* Latitude / longitude pair used for hyperlocal (`reach=neighborhood`)
|
|
331
345
|
* communities. Stored at create time from either the picked area's
|
|
@@ -586,7 +600,9 @@ export const setMemberDesignationBodySchema = z
|
|
|
586
600
|
.regex(COMMUNITY_DESIGNATION_CUSTOM_PATTERN)
|
|
587
601
|
.optional(),
|
|
588
602
|
})
|
|
589
|
-
.refine((b) => (b.preset != null) !== (b.custom != null), {
|
|
603
|
+
.refine((b) => (b.preset != null) !== (b.custom != null), {
|
|
604
|
+
message: 'Provide exactly one of `preset` or `custom`.',
|
|
605
|
+
});
|
|
590
606
|
// ─── Verification (state+ leader vouch) ────────────────────────────────────
|
|
591
607
|
/**
|
|
592
608
|
* Body for `POST /communities/:slug/verify`. Empty for now; the
|