@inneropen/marvin-sdk 1.10.3 → 1.10.5

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.cjs CHANGED
@@ -1170,6 +1170,7 @@ var AuthClient = class extends HttpClient {
1170
1170
  }
1171
1171
  /**
1172
1172
  * Register a new user
1173
+ * Returns the created user object
1173
1174
  */
1174
1175
  async register(data) {
1175
1176
  return this.post("/api/users/register", data);
package/dist/index.d.cts CHANGED
@@ -517,8 +517,14 @@ declare class MarvinClient {
517
517
  interface UserRegistration {
518
518
  username: string;
519
519
  email: string;
520
+ full_name: string;
520
521
  password: string;
521
- fullName?: string;
522
+ password_confirm: string;
523
+ group_token?: string | null;
524
+ group?: string | null;
525
+ advanced?: boolean;
526
+ private?: boolean;
527
+ seed_data?: boolean;
522
528
  }
523
529
  interface ForgotPasswordRequest {
524
530
  email: string;
@@ -539,11 +545,9 @@ declare class AuthClient extends HttpClient {
539
545
  constructor(apiUrl: string);
540
546
  /**
541
547
  * Register a new user
548
+ * Returns the created user object
542
549
  */
543
- register(data: UserRegistration): Promise<{
544
- message: string;
545
- userId: string;
546
- }>;
550
+ register(data: UserRegistration): Promise<any>;
547
551
  /**
548
552
  * Request password reset (sends email with token)
549
553
  */
package/dist/index.d.ts CHANGED
@@ -517,8 +517,14 @@ declare class MarvinClient {
517
517
  interface UserRegistration {
518
518
  username: string;
519
519
  email: string;
520
+ full_name: string;
520
521
  password: string;
521
- fullName?: string;
522
+ password_confirm: string;
523
+ group_token?: string | null;
524
+ group?: string | null;
525
+ advanced?: boolean;
526
+ private?: boolean;
527
+ seed_data?: boolean;
522
528
  }
523
529
  interface ForgotPasswordRequest {
524
530
  email: string;
@@ -539,11 +545,9 @@ declare class AuthClient extends HttpClient {
539
545
  constructor(apiUrl: string);
540
546
  /**
541
547
  * Register a new user
548
+ * Returns the created user object
542
549
  */
543
- register(data: UserRegistration): Promise<{
544
- message: string;
545
- userId: string;
546
- }>;
550
+ register(data: UserRegistration): Promise<any>;
547
551
  /**
548
552
  * Request password reset (sends email with token)
549
553
  */
package/dist/index.js CHANGED
@@ -788,6 +788,7 @@ var AuthClient = class extends HttpClient {
788
788
  }
789
789
  /**
790
790
  * Register a new user
791
+ * Returns the created user object
791
792
  */
792
793
  async register(data) {
793
794
  return this.post("/api/users/register", data);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inneropen/marvin-sdk",
3
- "version": "1.10.3",
3
+ "version": "1.10.5",
4
4
  "description": "Official TypeScript SDK for Marvin CMS",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",