@vulog/aima-user 1.2.1 → 1.2.2

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.d.mts CHANGED
@@ -91,7 +91,7 @@ type User = {
91
91
  };
92
92
  type UserUpdateBody = Partial<Omit<User, 'id' | 'fleetId' | 'agreements' | 'profiles' | 'surveyConsentUpdateDate' | 'shareDataConsentUpdateDate' | 'profilingConsentUpdateDate'>>;
93
93
  declare const personalInformationUserTypes: readonly ["IDENTITY", "USERNAME", "BIRTH", "NATIONALITY", "NOTES", "GENDER", "PERSONAL_COMPANY", "FISCAL", "ADDRESS", "MEMBERSHIP"];
94
- declare const personalInformationUserPaths: readonly ["/identity/firstName", "/identity/lastName", "/identity/middleName", "/identity/preferredName", "/birth/birthDate", "/birth/countryBirth", "/birth/provinceBirth", "/birth/cityBirth", "/nationality", "/notes", "/gender", "/personalCompany/companyName", "/personalCompany/companyVat", "/personalCompany/companyAddress/streetName", "/personalCompany/companyAddress/city", "/personalCompany/companyAddress/postalCode", "/personalCompany/companyAddress/region", "/personalCompany/companyAddress/country", "/personalCompany/companyAddress/number", "/personalCompany/companyAddress/addressAdditionalInformation", "/fiscalInformation/fiscal", "/fiscalInformation/personalVatNumber", "/fiscalInformation/sdi", "/fiscalInformation/pecAddress", "/fiscalInformation/marketReference", "/address/streetName", "/address/city", "/address/postalCode", "/address/region", "/address/country", "/address/number", "/address/addressAdditionalInformation", "/membership"];
94
+ declare const personalInformationUserPaths: readonly ["/identity/firstName", "/identity/lastName", "/identity/middleName", "/identity/preferredName", "/birth/birthDate", "/birth/countryBirth", "/birth/provinceBirth", "/birth/cityBirth", "/nationality", "/notes", "/gender", "/personalCompany/companyName", "/personalCompany/companyVat", "/personalCompany/companyAddress/streetName", "/personalCompany/companyAddress/city", "/personalCompany/companyAddress/postalCode", "/personalCompany/companyAddress/region", "/personalCompany/companyAddress/country", "/personalCompany/companyAddress/number", "/personalCompany/companyAddress/addressAdditionalInformation", "/fiscalInformation/fiscal", "/fiscalInformation/personalVatNumber", "/fiscalInformation/sdi", "/fiscalInformation/pecAddress", "/fiscalInformation/marketReference", "/address/streetName", "/address/city", "/address/postalCode", "/address/region", "/address/country", "/address/number", "/address/addressAdditionalInformation", "/membership", "/idNumber"];
95
95
  type PersonalInformationUserType = (typeof personalInformationUserTypes)[number];
96
96
  declare const personalInformationUserTypeSchema: z.ZodEnum<["IDENTITY", "USERNAME", "BIRTH", "NATIONALITY", "NOTES", "GENDER", "PERSONAL_COMPANY", "FISCAL", "ADDRESS", "MEMBERSHIP"]>;
97
97
  declare const personalInformationProfileTypes: readonly ["ID_NUMBER", "PHONE_NUMBER", "EMAIL", "BILLING_ADDRESS"];
@@ -261,7 +261,7 @@ declare const setServicesStatus: (client: Client, profileId: string, servicesUpd
261
261
 
262
262
  declare const registerUserToService: (client: Client, profileId: string, serviceId: string) => Promise<void>;
263
263
 
264
- declare const paths: readonly ["/phoneNumber", "/email"];
264
+ declare const paths: readonly ["/phoneNumber", "/email", "/idNumber"];
265
265
  type Paths$1 = (typeof paths)[number];
266
266
  declare const updateProfilePersonalInfo: (client: Client, userId: string, profileId: string, actions: PatchAction<Paths$1>[]) => Promise<void>;
267
267
 
package/dist/index.d.ts CHANGED
@@ -91,7 +91,7 @@ type User = {
91
91
  };
92
92
  type UserUpdateBody = Partial<Omit<User, 'id' | 'fleetId' | 'agreements' | 'profiles' | 'surveyConsentUpdateDate' | 'shareDataConsentUpdateDate' | 'profilingConsentUpdateDate'>>;
93
93
  declare const personalInformationUserTypes: readonly ["IDENTITY", "USERNAME", "BIRTH", "NATIONALITY", "NOTES", "GENDER", "PERSONAL_COMPANY", "FISCAL", "ADDRESS", "MEMBERSHIP"];
94
- declare const personalInformationUserPaths: readonly ["/identity/firstName", "/identity/lastName", "/identity/middleName", "/identity/preferredName", "/birth/birthDate", "/birth/countryBirth", "/birth/provinceBirth", "/birth/cityBirth", "/nationality", "/notes", "/gender", "/personalCompany/companyName", "/personalCompany/companyVat", "/personalCompany/companyAddress/streetName", "/personalCompany/companyAddress/city", "/personalCompany/companyAddress/postalCode", "/personalCompany/companyAddress/region", "/personalCompany/companyAddress/country", "/personalCompany/companyAddress/number", "/personalCompany/companyAddress/addressAdditionalInformation", "/fiscalInformation/fiscal", "/fiscalInformation/personalVatNumber", "/fiscalInformation/sdi", "/fiscalInformation/pecAddress", "/fiscalInformation/marketReference", "/address/streetName", "/address/city", "/address/postalCode", "/address/region", "/address/country", "/address/number", "/address/addressAdditionalInformation", "/membership"];
94
+ declare const personalInformationUserPaths: readonly ["/identity/firstName", "/identity/lastName", "/identity/middleName", "/identity/preferredName", "/birth/birthDate", "/birth/countryBirth", "/birth/provinceBirth", "/birth/cityBirth", "/nationality", "/notes", "/gender", "/personalCompany/companyName", "/personalCompany/companyVat", "/personalCompany/companyAddress/streetName", "/personalCompany/companyAddress/city", "/personalCompany/companyAddress/postalCode", "/personalCompany/companyAddress/region", "/personalCompany/companyAddress/country", "/personalCompany/companyAddress/number", "/personalCompany/companyAddress/addressAdditionalInformation", "/fiscalInformation/fiscal", "/fiscalInformation/personalVatNumber", "/fiscalInformation/sdi", "/fiscalInformation/pecAddress", "/fiscalInformation/marketReference", "/address/streetName", "/address/city", "/address/postalCode", "/address/region", "/address/country", "/address/number", "/address/addressAdditionalInformation", "/membership", "/idNumber"];
95
95
  type PersonalInformationUserType = (typeof personalInformationUserTypes)[number];
96
96
  declare const personalInformationUserTypeSchema: z.ZodEnum<["IDENTITY", "USERNAME", "BIRTH", "NATIONALITY", "NOTES", "GENDER", "PERSONAL_COMPANY", "FISCAL", "ADDRESS", "MEMBERSHIP"]>;
97
97
  declare const personalInformationProfileTypes: readonly ["ID_NUMBER", "PHONE_NUMBER", "EMAIL", "BILLING_ADDRESS"];
@@ -261,7 +261,7 @@ declare const setServicesStatus: (client: Client, profileId: string, servicesUpd
261
261
 
262
262
  declare const registerUserToService: (client: Client, profileId: string, serviceId: string) => Promise<void>;
263
263
 
264
- declare const paths: readonly ["/phoneNumber", "/email"];
264
+ declare const paths: readonly ["/phoneNumber", "/email", "/idNumber"];
265
265
  type Paths$1 = (typeof paths)[number];
266
266
  declare const updateProfilePersonalInfo: (client: Client, userId: string, profileId: string, actions: PatchAction<Paths$1>[]) => Promise<void>;
267
267
 
package/dist/index.js CHANGED
@@ -207,7 +207,8 @@ var personalInformationUserPaths = [
207
207
  "/address/country",
208
208
  "/address/number",
209
209
  "/address/addressAdditionalInformation",
210
- "/membership"
210
+ "/membership",
211
+ "/idNumber"
211
212
  ];
212
213
  var personalInformationUserTypeSchema = import_zod5.z.enum(personalInformationUserTypes);
213
214
  var personalInformationProfileTypes = ["ID_NUMBER", "PHONE_NUMBER", "EMAIL", "BILLING_ADDRESS"];
@@ -421,7 +422,7 @@ var registerUserToService = async (client, profileId, serviceId) => {
421
422
 
422
423
  // src/updateProfilePersonalInfo.ts
423
424
  var import_zod15 = require("zod");
424
- var paths = ["/phoneNumber", "/email"];
425
+ var paths = ["/phoneNumber", "/email", "/idNumber"];
425
426
  var schema5 = import_zod15.z.object({
426
427
  userId: import_zod15.z.string().trim().min(1).uuid(),
427
428
  profileId: import_zod15.z.string().trim().min(1).uuid(),
package/dist/index.mjs CHANGED
@@ -155,7 +155,8 @@ var personalInformationUserPaths = [
155
155
  "/address/country",
156
156
  "/address/number",
157
157
  "/address/addressAdditionalInformation",
158
- "/membership"
158
+ "/membership",
159
+ "/idNumber"
159
160
  ];
160
161
  var personalInformationUserTypeSchema = z5.enum(personalInformationUserTypes);
161
162
  var personalInformationProfileTypes = ["ID_NUMBER", "PHONE_NUMBER", "EMAIL", "BILLING_ADDRESS"];
@@ -369,7 +370,7 @@ var registerUserToService = async (client, profileId, serviceId) => {
369
370
 
370
371
  // src/updateProfilePersonalInfo.ts
371
372
  import { z as z15 } from "zod";
372
- var paths = ["/phoneNumber", "/email"];
373
+ var paths = ["/phoneNumber", "/email", "/idNumber"];
373
374
  var schema5 = z15.object({
374
375
  userId: z15.string().trim().min(1).uuid(),
375
376
  profileId: z15.string().trim().min(1).uuid(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vulog/aima-user",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",
@@ -19,12 +19,12 @@
19
19
  "author": "Vulog",
20
20
  "license": "MIT",
21
21
  "dependencies": {
22
- "@vulog/aima-client": "1.2.1",
23
- "@vulog/aima-config": "1.2.1",
24
- "@vulog/aima-core": "1.2.1"
22
+ "@vulog/aima-client": "1.2.2",
23
+ "@vulog/aima-config": "1.2.2",
24
+ "@vulog/aima-core": "1.2.2"
25
25
  },
26
26
  "peerDependencies": {
27
27
  "zod": "^3.25.76"
28
28
  },
29
29
  "description": ""
30
- }
30
+ }
package/src/types.ts CHANGED
@@ -162,6 +162,7 @@ export const personalInformationUserPaths = [
162
162
  '/address/number',
163
163
  '/address/addressAdditionalInformation',
164
164
  '/membership',
165
+ '/idNumber',
165
166
  ] as const;
166
167
 
167
168
  export type PersonalInformationUserType = (typeof personalInformationUserTypes)[number];
@@ -2,7 +2,7 @@ import { Client } from '@vulog/aima-client';
2
2
  import { PatchAction } from '@vulog/aima-core';
3
3
  import { z } from 'zod';
4
4
 
5
- const paths = ['/phoneNumber', '/email'] as const;
5
+ const paths = ['/phoneNumber', '/email', '/idNumber'] as const;
6
6
  type Paths = (typeof paths)[number];
7
7
 
8
8
  const schema = z.object({