@omelhorsite/sdk 0.12.0 → 0.12.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.
package/dist/index.js CHANGED
@@ -10328,6 +10328,7 @@ function updateBody(input) {
10328
10328
  library_public: input.libraryPublic,
10329
10329
  library_name: input.libraryName,
10330
10330
  library_description: input.libraryDescription,
10331
+ language: input.language,
10331
10332
  share_listening: input.shareListening
10332
10333
  };
10333
10334
  }
@@ -10747,6 +10748,7 @@ function adminUpdateBody(input) {
10747
10748
  set("library_public", input.libraryPublic);
10748
10749
  set("library_name", input.libraryName);
10749
10750
  set("library_description", input.libraryDescription);
10751
+ set("language", input.language);
10750
10752
  set("share_listening", input.shareListening);
10751
10753
  set("email", input.email);
10752
10754
  set("group", input.group);
@@ -28,6 +28,8 @@ export interface User extends BaseRecord {
28
28
  readonly bio?: string | null;
29
29
  /** ISO 3166-1 alpha-2, as the user set it. */
30
30
  readonly country_code?: string | null;
31
+ /** `en`, `pt` or `lv`: the language of the emails sent to this account. Own account only. */
32
+ readonly language?: string | null;
31
33
  readonly email_is_public?: boolean;
32
34
  readonly gender_is_public?: boolean;
33
35
  readonly library_public?: boolean;
@@ -90,6 +92,8 @@ export interface UpdateAccountInput {
90
92
  readonly libraryName?: string | null;
91
93
  /** `null` clears it. */
92
94
  readonly libraryDescription?: string | null;
95
+ /** `en`, `pt` or `lv`. */
96
+ readonly language?: string;
93
97
  /** Whether friends may see what you are listening to. */
94
98
  readonly shareListening?: boolean;
95
99
  }
@@ -20,6 +20,7 @@ export interface AdminUpdateUserInput {
20
20
  readonly libraryPublic?: boolean;
21
21
  readonly libraryName?: string | null;
22
22
  readonly libraryDescription?: string | null;
23
+ readonly language?: string;
23
24
  readonly shareListening?: boolean;
24
25
  readonly email?: string;
25
26
  /** Privilege group, e.g. `"administrator"`. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omelhorsite/sdk",
3
- "version": "0.12.0",
3
+ "version": "0.12.1",
4
4
  "description": "TypeScript SDK for the omelhorsite API. Isolate-safe: no node builtins, no environment access, no stdout.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",