-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconstant.go
422 lines (370 loc) · 16.2 KB
/
constant.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
package verniy
// MediaType is main media type.
type MediaType string
// Options for MediaType.
const (
MediaTypeAnime MediaType = "ANIME"
MediaTypeManga MediaType = "MANGA"
)
// MediaFormat is anime & manga format.
type MediaFormat string
// Options for MediaFormat.
const (
MediaFormatTv MediaFormat = "TV"
MediaFormatTvShort MediaFormat = "TV_SHORT"
MediaFormatMovie MediaFormat = "MOVIE"
MediaFormatSpecial MediaFormat = "SPECIAL"
MediaFormatOVA MediaFormat = "OVA"
MediaFormatONA MediaFormat = "ONA"
MediaFormatMusic MediaFormat = "MUSIC"
MediaFormatManga MediaFormat = "MANGA"
MediaFormatNovel MediaFormat = "NOVEL"
MediaFormatOneShot MediaFormat = "ONE_SHOT"
)
// MediaStatus is anime & manga status.
type MediaStatus string
// Options for MediaStatus.
const (
MediaStatusFinished MediaStatus = "FINISHED"
MediaStatusReleasing MediaStatus = "RELEASING"
MediaStatusNotYetReleased MediaStatus = "NOT_YET_RELEASED"
MediaStatusCancelled MediaStatus = "CANCELLED"
MediaStatusHiatus MediaStatus = "HIATUS"
)
// MediaSeason is anime season.
type MediaSeason string
// Options for MediaSeason.
const (
MediaSeasonWinter MediaSeason = "WINTER" // 12-2
MediaSeasonSpring MediaSeason = "SPRING" // 3-5
MediaSeasonSummer MediaSeason = "SUMMER" // 6-8
MediaSeasonFall MediaSeason = "FALL" // 9-11
)
// MediaSource is anime & manga source.
type MediaSource string
// Options for MediaSource.
const (
MediaSourceOriginal MediaSource = "ORIGINAL"
MediaSourceManga MediaSource = "MANGA"
MediaSourceLightNovel MediaSource = "LIGHT_NOVEL"
MediaSourceVisualNovel MediaSource = "VISUAL_NOVEL"
MediaSourceVideoGame MediaSource = "VIDEO_GAME"
MediaSourceOther MediaSource = "OTHER"
MediaSourceNovel MediaSource = "NOVEL"
MediaSourceDoujinshi MediaSource = "DOUJINSHI"
MediaSourceAnime MediaSource = "ANIME"
)
// MediaRankType is type of ranking.
type MediaRankType string
// Options for MediaRankType
const (
MediaRankTypeRated MediaRankType = "RATED"
MediaRankTypePopular MediaRankType = "POPULAR"
)
// MediaListStatus is user's anime & manga status.
type MediaListStatus string
// Options for MediaListStatus.
const (
MediaListStatusCurrent MediaListStatus = "CURRENT"
MediaListStatusPlanning MediaListStatus = "PLANNING"
MediaListStatusCompleted MediaListStatus = "COMPLETED"
MediaListStatusDropped MediaListStatus = "DROPPED"
MediaListStatusPaused MediaListStatus = "PAUSED"
MediaListStatusRepeating MediaListStatus = "REPEATING"
)
// MediaRelation is anime & manga relation.
type MediaRelation string
// Options for MediaRelation.
const (
MediaRelationAdaptation MediaRelation = "ADAPTATION"
MediaRelationPrequel MediaRelation = "PREQUEL"
MediaRelationSequel MediaRelation = "SEQUEL"
MediaRelationParent MediaRelation = "PARENT"
MediaRelationSideStory MediaRelation = "SIDE_STORY"
MediaRelationCharacter MediaRelation = "CHARACTER"
MediaRelationSummary MediaRelation = "SUMMARY"
MediaRelationAlternative MediaRelation = "ALTERNATIVE"
MediaRelationSpinOff MediaRelation = "SPIN_OFF"
MediaRelationOther MediaRelation = "OTHER"
MediaRelationSource MediaRelation = "SOURCE"
MediaRelationCompilation MediaRelation = "COMPILATION"
MediaRelationContains MediaRelation = "CONTAINS"
)
// CharacterRole is type of character role.
type CharacterRole string
// Options for CharacterRole.
const (
CharacterRoleMain CharacterRole = "MAIN"
CharacterRoleSupporting CharacterRole = "SUPPORTING"
CharacterRoleBackground CharacterRole = "BACKGROUND"
)
// UserTitleLanguage is default user anime & manga title language.
type UserTitleLanguage string
// Options for UserTitleLanguage.
const (
UserTitleLanguageRomaji UserTitleLanguage = "ROMAJI"
UserTitleLanguageEnglish UserTitleLanguage = "ENGLISH"
UserTitleLanguageNative UserTitleLanguage = "NATIVE"
UserTitleLanguageRomajiStylised UserTitleLanguage = "ROMAJI_STYLISED"
UserTitleLanguageEnglishStylised UserTitleLanguage = "ENGLISH_STYLISED"
UserTitleLanguageNativeStylised UserTitleLanguage = "NATIVE_STYLISED"
)
// NotificationType is user notification type.
type NotificationType string
// Options for NotificationType.
const (
NotificationTypeActivityMessage NotificationType = "ACTIVITY_MESSAGE"
NotificationTypeActivityReply NotificationType = "ACTIVITY_REPLY"
NotificationTypeActivityFollowing NotificationType = "FOLLOWING"
NotificationTypeActivityMention NotificationType = "ACTIVITY_MENTION"
NotificationTypeThreadCommentMention NotificationType = "THREAD_COMMENT_MENTION"
NotificationTypeThreadSubscribed NotificationType = "THREAD_SUBSCRIBED"
NotificationTypeThreadCommentReply NotificationType = "THREAD_COMMENT_REPLY"
NotificationTypeAiring NotificationType = "AIRING"
NotificationTypeActivityLike NotificationType = "ACTIVITY_LIKE"
NotificationTypeActivityReplyLike NotificationType = "ACTIVITY_REPLY_LIKE"
NotificationTypeThreadLike NotificationType = "THREAD_LIKE"
NotificationTypeThreadCommentLike NotificationType = "THREAD_COMMENT_LIKE"
NotificationTypeActivityReplySubscribed NotificationType = "ACTIVITY_REPLY_SUBSCRIBED"
NotificationTypeRelatedMediaAddition NotificationType = "RELATED_MEDIA_ADDITION"
)
// UserStaffNameLanguage is default user staff naming language.
type UserStaffNameLanguage string
// Options for UserStaffNameLanguage
const (
UserStaffNameLanguageRomajiWestern UserStaffNameLanguage = "ROMAJI_WESTERN"
UserStaffNameLanguageRomaji UserStaffNameLanguage = "ROMAJI"
UserStaffNameLanguageNative UserStaffNameLanguage = "NATIVE"
)
// ReviewRating is type of review rating.
type ReviewRating string
// Options for ReviewRating.
const (
ReviewRatingNoVote ReviewRating = "NO_VOTE"
ReviewRatingUpVote ReviewRating = "UP_VOTE"
ReviewRatingDownVote ReviewRating = "DOWN_VOTE"
)
// RecommendationRating is type of recommendation rating.
type RecommendationRating string
// Options for RecommendationRating.
const (
RecommendationRatingNoRating RecommendationRating = "NO_RATING"
RecommendationRatingRateUp RecommendationRating = "RATE_UP"
RecommendationRatingRateDown RecommendationRating = "RATE_DOWN"
)
// ScoreFormat is scoring format.
type ScoreFormat string
// Options for ScoreFormat.
const (
ScoreFormatPoint100 ScoreFormat = "POINT_100"
ScoreFormatPoint100Decimal ScoreFormat = "POINT_10_DECIMAL"
ScoreFormatPoint10 ScoreFormat = "POINT_10"
ScoreFormatPoint5 ScoreFormat = "POINT_5"
ScoreFormatPoint3 ScoreFormat = "POINT_3"
)
// ModRole is mod role.
type ModRole string
// Options for ModRole.
const (
ModRoleAdmin ModRole = "ADMIN"
ModRoleLeadDeveloper ModRole = "LEAD_DEVELOPER"
ModRoleDeveloper ModRole = "DEVELOPER"
ModRoleLeadCommunity ModRole = "LEAD_COMMUNITY"
ModRoleCommunity ModRole = "COMMUNITY"
ModRoleDiscordCommunity ModRole = "DISCORD_COMMUNITY"
ModRoleLeadAnimeData ModRole = "LEAD_ANIME_DATA"
ModRoleAnimeData ModRole = "ANIME_DATA"
ModRoleLeadMangaData ModRole = "LEAD_MANGA_DATA"
ModRoleMangaData ModRole = "MANGA_DATA"
ModRoleLeadSocialMedia ModRole = "LEAD_SOCIAL_MEDIA"
ModRoleSocialMedia ModRole = "SOCIAL_MEDIA"
ModRoleRetired ModRole = "RETIRED"
)
// CharacterSort is sorting option for character list.
type CharacterSort string
// Options for CharacterSort.
const (
CharacterSortID CharacterSort = "ID"
CharacterSortIDDesc CharacterSort = "ID_DESC"
CharacterSortRole CharacterSort = "ROLE"
CharacterSortRoleDesc CharacterSort = "ROLE_DESC"
CharacterSortSearchMatch CharacterSort = "SEARCH_MATCH"
CharacterSortFavourites CharacterSort = "FAVOURITES"
CharacterSortFavouritesDesc CharacterSort = "FAVOURITES_DESC"
CharacterSortRelevance CharacterSort = "RELEVANCE"
)
// StaffSort is sorting option for staff list.
type StaffSort string
// Options for StaffSort.
const (
StaffSortID StaffSort = "ID"
StaffSortIDDesc StaffSort = "ID_DESC"
StaffSortRole StaffSort = "ROLE"
StaffSortRoleDesc StaffSort = "ROLE_DESC"
StaffSortLanguage StaffSort = "LANGUAGE"
StaffSortLanguageDesc StaffSort = "LANGUAGE_DESC"
StaffSortSearchMatch StaffSort = "SEARCH_MATCH"
StaffSortFavourites StaffSort = "FAVOURITES"
StaffSortFavouritesDesc StaffSort = "FAVOURITES_DESC"
StaffSortRelevance StaffSort = "RELEVANCE"
)
// MediaSort is sorting option for anime & manga list.
type MediaSort string
// Options for MediaSort.
const (
MediaSortID MediaSort = "ID"
MediaSortIDDesc MediaSort = "ID_DESC"
MediaSortTitleRomaji MediaSort = "TITLE_ROMAJI"
MediaSortTitleRomajiDesc MediaSort = "TITLE_ROMAJI_DESC"
MediaSortTitleEnglish MediaSort = "TITLE_ENGLISH"
MediaSortTitleEnglishDesc MediaSort = "TITLE_ENGLISH_DESC"
MediaSortTitleNative MediaSort = "TITLE_NATIVE"
MediaSortTitleNativeDesc MediaSort = "TITLE_NATIVE_DESC"
MediaSortType MediaSort = "TYPE"
MediaSortTypeDesc MediaSort = "TYPE_DESC"
MediaSortFormat MediaSort = "FORMAT"
MediaSortFormatDesc MediaSort = "FORMAT_DESC"
MediaSortStartDate MediaSort = "START_DATE"
MediaSortStartDateDesc MediaSort = "START_DATE_DESC"
MediaSortEndDate MediaSort = "END_DATE"
MediaSortEndDateDesc MediaSort = "END_DATE_DESC"
MediaSortScore MediaSort = "SCORE"
MediaSortScoreDesc MediaSort = "SCORE_DESC"
MediaSortPopularity MediaSort = "POPULARITY"
MediaSortPopularityDesc MediaSort = "POPULARITY_DESC"
MediaSortTrending MediaSort = "TRENDING"
MediaSortTrendingDesc MediaSort = "TRENDING_DESC"
MediaSortEpisodes MediaSort = "EPISODES"
MediaSortEpisodesDesc MediaSort = "EPISODES_DESC"
MediaSortDuration MediaSort = "DURATION"
MediaSortDurationDesc MediaSort = "DURATION_DESC"
MediaSortStatus MediaSort = "STATUS"
MediaSortStatusDesc MediaSort = "STATUS_DESC"
MediaSortChapters MediaSort = "CHAPTERS"
MediaSortChaptersDesc MediaSort = "CHAPTERS_DESC"
MediaSortVolumes MediaSort = "VOLUMES"
MediaSortVolumesDesc MediaSort = "VOLUMES_DESC"
MediaSortUpdatedAt MediaSort = "UPDATED_AT"
MediaSortUpdatedAtDesc MediaSort = "UPDATED_AT_DESC"
MediaSortSearchMatch MediaSort = "SEARCH_MATCH"
MediaSortFavourites MediaSort = "FAVOURITES"
MediaSortFavouritesDesc MediaSort = "FAVOURITES_DESC"
)
// StaffLanguage is staff language.
type StaffLanguage string
// Options for StaffLanguage.
const (
StaffLanguageJapanese StaffLanguage = "JAPANESE"
StaffLanguageEnglish StaffLanguage = "ENGLISH"
StaffLanguageKorean StaffLanguage = "KOREAN"
StaffLanguageItalian StaffLanguage = "ITALIAN"
StaffLanguageSpanish StaffLanguage = "SPANISH"
StaffLanguagePortuguese StaffLanguage = "PORTUGUESE"
StaffLanguageFrench StaffLanguage = "FRENCH"
StaffLanguageGerman StaffLanguage = "GERMAN"
StaffLanguageHebrew StaffLanguage = "HEBREW"
StaffLanguageHungarian StaffLanguage = "HUNGARIAN"
)
// StudioSort is sorting option for studio list.
type StudioSort string
// Options for StudioSort.
const (
StudioSortID StudioSort = "ID"
StudioSortIDDesc StudioSort = "ID_DESC"
StudioSortName StudioSort = "NAME"
StudioSortNameDesc StudioSort = "NAME_DESC"
StudioSortSearchMatch StudioSort = "SEARCH_MATCH"
StudioSortFavourites StudioSort = "FAVOURITES"
StudioSortFavouritesDesc StudioSort = "FAVOURITES_DESC"
)
// MediaTrendSort is sorting option for media trend list.
type MediaTrendSort string
// Options for MediaTrendSort.
const (
MediaTrendSortID MediaTrendSort = "ID"
MediaTrendSortIDDesc MediaTrendSort = "ID_DESC"
MediaTrendSortMediaID MediaTrendSort = "MEDIA_ID"
MediaTrendSortMediaIDDesc MediaTrendSort = "MEDIA_ID_DESC"
MediaTrendSortDate MediaTrendSort = "DATE"
MediaTrendSortDateDesc MediaTrendSort = "DATE_DESC"
MediaTrendSortScore MediaTrendSort = "SCORE"
MediaTrendSortScoreDesc MediaTrendSort = "SCORE_DESC"
MediaTrendSortPopularity MediaTrendSort = "POPULARITY"
MediaTrendSortPopularityDesc MediaTrendSort = "POPULARITY_DESC"
MediaTrendSortTrending MediaTrendSort = "TRENDING"
MediaTrendSortTrendingDesc MediaTrendSort = "TRENDING_DESC"
MediaTrendSortEpisode MediaTrendSort = "EPISODE"
MediaTrendSortEpisodeDesc MediaTrendSort = "EPISODE_DESC"
)
// ReviewSort is sorting option for review list.
type ReviewSort string
// Options for ReviewSort.
const (
ReviewSortID ReviewSort = "ID"
ReviewSortIDDesc ReviewSort = "ID_DESC"
ReviewSortScore ReviewSort = "SCORE"
ReviewSortScoreDesc ReviewSort = "SCORE_DESC"
ReviewSortRating ReviewSort = "RATING"
ReviewSortRatingDesc ReviewSort = "RATING_DESC"
ReviewSortCreatedAt ReviewSort = "CREATED_AT"
ReviewSortCreatedAtDesc ReviewSort = "CREATED_AT_DESC"
ReviewSortUpdatedAt ReviewSort = "UPDATED_AT"
ReviewSortUpdatedAtDesc ReviewSort = "UPDATED_AT_DESC"
)
// RecommendationSort is sorting option for recommendation list.
type RecommendationSort string
// Options for RecommendationSort.
const (
RecommendationSortID RecommendationSort = "ID"
RecommendationSortIDDesc RecommendationSort = "ID_DESC"
RecommendationSortRating RecommendationSort = "RATING"
RecommendationSortRatingDesc RecommendationSort = "RATING_DESC"
)
// UserStatisticsSort is sorting option for user statistics list.
type UserStatisticsSort string
// Options for UserStatisticsSort.
const (
UserStatisticsSortID UserStatisticsSort = "ID"
UserStatisticsSortIDDesc UserStatisticsSort = "ID_DESC"
UserStatisticsSortCount UserStatisticsSort = "COUNT"
UserStatisticsSortCountDesc UserStatisticsSort = "COUNT_DESC"
UserStatisticsSortProgress UserStatisticsSort = "PROGRESS"
UserStatisticsSortProgessDesc UserStatisticsSort = "PROGRESS_DESC"
UserStatisticsSortMeanScore UserStatisticsSort = "MEAN_SCORE"
UserStatisticsSortMeanScoreDesc UserStatisticsSort = "MEAN_SCORE_DESC"
)
// MediaListSort is sorting option for media list.
type MediaListSort string
// Options for MediaListSort.
const (
MediaListSortMediaID MediaListSort = "MEDIA_ID"
MediaListSortMediaIDDesc MediaListSort = "MEDIA_ID_DESC"
MediaListSortScore MediaListSort = "SCORE"
MediaListSortScoreDesc MediaListSort = "SCORE_DESC"
MediaListSortStatus MediaListSort = "STATUS"
MediaListSortStatusDesc MediaListSort = "STATUS_DESC"
MediaListSortProgress MediaListSort = "PROGRESS"
MediaListSortProgressDesc MediaListSort = "PROGRESS_DESC"
MediaListSortProgressVolumes MediaListSort = "PROGRESS_VOLUMES"
MediaListSortProgressVolumesDesc MediaListSort = "PROGRESS_VOLUMES_DESC"
MediaListSortRepeat MediaListSort = "REPEAT"
MediaListSortRepeatDesc MediaListSort = "REPEAT_DESC"
MediaListSortPriority MediaListSort = "PRIORITY"
MediaListSortPriorityDesc MediaListSort = "PRIORITY_DESC"
MediaListSortStartedOn MediaListSort = "STARTED_ON"
MediaListSortStartedOnDesc MediaListSort = "STARTED_ON_DESC"
MediaListSortFinishedOn MediaListSort = "FINISHED_ON"
MediaListSortFinishedOnDesc MediaListSort = "FINISHED_ON_DESC"
MediaListSortAddedTime MediaListSort = "ADDED_TIME"
MediaListSortAddedTimeDesc MediaListSort = "ADDED_TIME_DESC"
MediaListSortUpdatedTime MediaListSort = "UPDATED_TIME"
MediaListSortUpdatedTimeDesc MediaListSort = "UPDATED_TIME_DESC"
MediaListSortMediaTitleRomaji MediaListSort = "MEDIA_TITLE_ROMAJI"
MediaListSortMediaTitleRomajiDesc MediaListSort = "MEDIA_TITLE_ROMAJI_DESC"
MediaListSortMediaTitleEnglish MediaListSort = "MEDIA_TITLE_ENGLISH"
MediaListSortMediaTitleEnglishDesc MediaListSort = "MEDIA_TITLE_ENGLISH_DESC"
MediaListSortMediaTitleNative MediaListSort = "MEDIA_TITLE_NATIVE"
MediaListSortMediaTitleNativeDesc MediaListSort = "MEDIA_TITLE_NATIVE_DESC"
MediaListSortMediaPopularity MediaListSort = "MEDIA_POPULARITY"
MediaListSortMediaPopularityDesc MediaListSort = "MEDIA_POPULARITY_DESC"
)