@vulog/aima-user 1.1.61 → 1.1.63

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Vulog
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/dist/index.d.mts CHANGED
@@ -158,6 +158,7 @@ type CreateUser = {
158
158
  dataPrivacyConsent?: boolean;
159
159
  profilingConsent?: boolean;
160
160
  marketingConsent?: boolean;
161
+ phoneNumber?: string;
161
162
  };
162
163
  type CreateUserOptions = {
163
164
  tcApproval?: boolean;
package/dist/index.d.ts CHANGED
@@ -158,6 +158,7 @@ type CreateUser = {
158
158
  dataPrivacyConsent?: boolean;
159
159
  profilingConsent?: boolean;
160
160
  marketingConsent?: boolean;
161
+ phoneNumber?: string;
161
162
  };
162
163
  type CreateUserOptions = {
163
164
  tcApproval?: boolean;
package/dist/index.js CHANGED
@@ -119,7 +119,8 @@ var createUserSchema = import_zod4.z.object({
119
119
  email: import_zod4.z.string().min(1).email(),
120
120
  dataPrivacyConsent: import_zod4.z.boolean().optional(),
121
121
  profilingConsent: import_zod4.z.boolean().optional(),
122
- marketingConsent: import_zod4.z.boolean().optional()
122
+ marketingConsent: import_zod4.z.boolean().optional(),
123
+ phoneNumber: import_zod4.z.string().optional()
123
124
  });
124
125
  var createUserOptionsSchema = import_zod4.z.object({
125
126
  tcApproval: import_zod4.z.boolean().default(true),
package/dist/index.mjs CHANGED
@@ -72,7 +72,8 @@ var createUserSchema = z4.object({
72
72
  email: z4.string().min(1).email(),
73
73
  dataPrivacyConsent: z4.boolean().optional(),
74
74
  profilingConsent: z4.boolean().optional(),
75
- marketingConsent: z4.boolean().optional()
75
+ marketingConsent: z4.boolean().optional(),
76
+ phoneNumber: z4.string().optional()
76
77
  });
77
78
  var createUserOptionsSchema = z4.object({
78
79
  tcApproval: z4.boolean().default(true),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vulog/aima-user",
3
- "version": "1.1.61",
3
+ "version": "1.1.63",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",
@@ -19,9 +19,9 @@
19
19
  "author": "Vulog",
20
20
  "license": "ISC",
21
21
  "dependencies": {
22
- "@vulog/aima-client": "1.1.61",
23
- "@vulog/aima-config": "1.1.61",
24
- "@vulog/aima-core": "1.1.61"
22
+ "@vulog/aima-client": "1.1.63",
23
+ "@vulog/aima-config": "1.1.63",
24
+ "@vulog/aima-core": "1.1.63"
25
25
  },
26
26
  "peerDependencies": {
27
27
  "zod": "^3.24.2"
package/src/createUser.ts CHANGED
@@ -11,6 +11,7 @@ export type CreateUser = {
11
11
  dataPrivacyConsent?: boolean;
12
12
  profilingConsent?: boolean;
13
13
  marketingConsent?: boolean;
14
+ phoneNumber?: string;
14
15
  };
15
16
 
16
17
  export type CreateUserOptions = {
@@ -26,6 +27,7 @@ const createUserSchema = z.object({
26
27
  dataPrivacyConsent: z.boolean().optional(),
27
28
  profilingConsent: z.boolean().optional(),
28
29
  marketingConsent: z.boolean().optional(),
30
+ phoneNumber: z.string().optional(),
29
31
  });
30
32
 
31
33
  const createUserOptionsSchema = z