lemmy-js-client 0.20.0-api-no-optional-vec.0 → 0.20.0-api-no-optional-vec.1

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.
@@ -36,6 +36,6 @@ export type CreateCommunity = {
36
36
  * Whether to restrict posting only to moderators.
37
37
  */
38
38
  posting_restricted_to_mods?: boolean;
39
- discussion_languages: Array<LanguageId>;
39
+ discussion_languages?: Array<LanguageId>;
40
40
  visibility?: CommunityVisibility;
41
41
  };
@@ -26,7 +26,7 @@ export type CreatePost = {
26
26
  * Instead of fetching a thumbnail, use a custom one.
27
27
  */
28
28
  custom_thumbnail?: string;
29
- tags: Array<TagId>;
29
+ tags?: Array<TagId>;
30
30
  /**
31
31
  * Time when this post should be scheduled. Null means publish immediately.
32
32
  */
@@ -25,7 +25,7 @@ export type CreateSite = {
25
25
  legal_information?: string;
26
26
  application_email_admins?: boolean;
27
27
  hide_modlog_mod_names?: boolean;
28
- discussion_languages: Array<LanguageId>;
28
+ discussion_languages?: Array<LanguageId>;
29
29
  slur_filter_regex?: string;
30
30
  actor_name_max_length?: number;
31
31
  rate_limit_message?: number;
@@ -26,6 +26,6 @@ export type EditCommunity = {
26
26
  * Whether to restrict posting only to moderators.
27
27
  */
28
28
  posting_restricted_to_mods?: boolean;
29
- discussion_languages: Array<LanguageId>;
29
+ discussion_languages?: Array<LanguageId>;
30
30
  visibility?: CommunityVisibility;
31
31
  };
@@ -22,7 +22,7 @@ export type EditPost = {
22
22
  * Instead of fetching a thumbnail, use a custom one.
23
23
  */
24
24
  custom_thumbnail?: string;
25
- tags: Array<TagId>;
25
+ tags?: Array<TagId>;
26
26
  /**
27
27
  * Time when this post should be scheduled. Null means publish immediately.
28
28
  */
@@ -73,7 +73,7 @@ export type EditSite = {
73
73
  /**
74
74
  * A list of allowed discussion languages.
75
75
  */
76
- discussion_languages: Array<LanguageId>;
76
+ discussion_languages?: Array<LanguageId>;
77
77
  /**
78
78
  * A regex string of items to filter.
79
79
  */
@@ -127,7 +127,7 @@ export type EditSite = {
127
127
  /**
128
128
  * A list of blocked URLs
129
129
  */
130
- blocked_urls: Array<string>;
130
+ blocked_urls?: Array<string>;
131
131
  registration_mode?: RegistrationMode;
132
132
  /**
133
133
  * Whether to email admins for new reports.
@@ -83,7 +83,7 @@ export type SaveUserSettings = {
83
83
  /**
84
84
  * A list of languages you are able to see discussion in.
85
85
  */
86
- discussion_languages: Array<LanguageId>;
86
+ discussion_languages?: Array<LanguageId>;
87
87
  /**
88
88
  * Open links in a new tab
89
89
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "lemmy-js-client",
3
3
  "description": "A javascript / typescript client for Lemmy",
4
- "version": "0.20.0-api-no-optional-vec.0",
4
+ "version": "0.20.0-api-no-optional-vec.1",
5
5
  "author": "Dessalines",
6
6
  "license": "AGPL-3.0",
7
7
  "main": "./dist/index.js",