@ecomiq/core 0.1.3 → 0.1.6
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/api.cjs +19 -5
- package/dist/api.cjs.map +1 -1
- package/dist/api.js +19 -5
- package/dist/api.js.map +1 -1
- package/dist/client-4ZTG2RZ3.d.ts +195 -0
- package/dist/client-BpX4yR6S.d.cts +195 -0
- package/dist/client.cjs +331 -12
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +13 -84
- package/dist/client.d.ts +13 -84
- package/dist/client.js +331 -12
- package/dist/client.js.map +1 -1
- package/dist/index.cjs +484 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +327 -324
- package/dist/index.d.ts +327 -324
- package/dist/index.js +451 -13
- package/dist/index.js.map +1 -1
- package/dist/models/collections.d.cts +4 -4
- package/dist/models/collections.d.ts +4 -4
- package/dist/models/customer-address.cjs +41 -0
- package/dist/models/customer-address.cjs.map +1 -0
- package/dist/models/customer-address.d.cts +160 -0
- package/dist/models/customer-address.d.ts +160 -0
- package/dist/models/customer-address.js +36 -0
- package/dist/models/customer-address.js.map +1 -0
- package/dist/models/customer-order.cjs +161 -0
- package/dist/models/customer-order.cjs.map +1 -0
- package/dist/models/customer-order.d.cts +896 -0
- package/dist/models/customer-order.d.ts +896 -0
- package/dist/models/customer-order.js +149 -0
- package/dist/models/customer-order.js.map +1 -0
- package/dist/models/customer-profile.cjs +126 -0
- package/dist/models/customer-profile.cjs.map +1 -0
- package/dist/models/customer-profile.d.cts +178 -0
- package/dist/models/customer-profile.d.ts +178 -0
- package/dist/models/customer-profile.js +118 -0
- package/dist/models/customer-profile.js.map +1 -0
- package/dist/models/geo.d.cts +14 -14
- package/dist/models/geo.d.ts +14 -14
- package/dist/models/products.d.cts +130 -130
- package/dist/models/products.d.ts +130 -130
- package/dist/models/search.d.cts +4 -4
- package/dist/models/search.d.ts +4 -4
- package/dist/models/settings.cjs +13 -6
- package/dist/models/settings.cjs.map +1 -1
- package/dist/models/settings.d.cts +844 -841
- package/dist/models/settings.d.ts +844 -841
- package/dist/models/settings.js +12 -7
- package/dist/models/settings.js.map +1 -1
- package/dist/models/storefront-cart.d.cts +80 -80
- package/dist/models/storefront-cart.d.ts +80 -80
- package/dist/models/storefront-checkout.d.cts +400 -400
- package/dist/models/storefront-checkout.d.ts +400 -400
- package/dist/models/storefront-reviews.d.cts +8 -8
- package/dist/models/storefront-reviews.d.ts +8 -8
- package/package.json +16 -1
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
/** Cuerpo de `POST /v1/customer/register` (proxy `customer/register`). */
|
|
4
|
+
declare const CustomerRegisterRequestSchema: z.ZodObject<{
|
|
5
|
+
email: z.ZodString;
|
|
6
|
+
firstName: z.ZodString;
|
|
7
|
+
lastName: z.ZodString;
|
|
8
|
+
countryIsoCode: z.ZodString;
|
|
9
|
+
password: z.ZodString;
|
|
10
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
email: string;
|
|
13
|
+
firstName: string;
|
|
14
|
+
lastName: string;
|
|
15
|
+
countryIsoCode: string;
|
|
16
|
+
password: string;
|
|
17
|
+
phone?: string | undefined;
|
|
18
|
+
}, {
|
|
19
|
+
email: string;
|
|
20
|
+
firstName: string;
|
|
21
|
+
lastName: string;
|
|
22
|
+
countryIsoCode: string;
|
|
23
|
+
password: string;
|
|
24
|
+
phone?: string | undefined;
|
|
25
|
+
}>;
|
|
26
|
+
type CustomerRegisterRequest = z.infer<typeof CustomerRegisterRequestSchema>;
|
|
27
|
+
/** Cuerpo de `PATCH /v1/customer` (proxy `customer`). */
|
|
28
|
+
declare const CustomerProfilePatchSchema: z.ZodObject<{
|
|
29
|
+
firstName: z.ZodString;
|
|
30
|
+
lastName: z.ZodString;
|
|
31
|
+
phone: z.ZodString;
|
|
32
|
+
identificationNumber: z.ZodNullable<z.ZodString>;
|
|
33
|
+
identificationType: z.ZodNullable<z.ZodString>;
|
|
34
|
+
entityName: z.ZodNullable<z.ZodString>;
|
|
35
|
+
entityIdentificationNumber: z.ZodNullable<z.ZodString>;
|
|
36
|
+
gender: z.ZodNullable<z.ZodString>;
|
|
37
|
+
role: z.ZodNullable<z.ZodString>;
|
|
38
|
+
companyName: z.ZodNullable<z.ZodString>;
|
|
39
|
+
dateOfBirth: z.ZodNullable<z.ZodString>;
|
|
40
|
+
consent: z.ZodBoolean;
|
|
41
|
+
countryIsoCode: z.ZodString;
|
|
42
|
+
}, "strip", z.ZodTypeAny, {
|
|
43
|
+
gender: string | null;
|
|
44
|
+
phone: string;
|
|
45
|
+
firstName: string;
|
|
46
|
+
lastName: string;
|
|
47
|
+
countryIsoCode: string;
|
|
48
|
+
identificationNumber: string | null;
|
|
49
|
+
identificationType: string | null;
|
|
50
|
+
entityName: string | null;
|
|
51
|
+
entityIdentificationNumber: string | null;
|
|
52
|
+
role: string | null;
|
|
53
|
+
companyName: string | null;
|
|
54
|
+
dateOfBirth: string | null;
|
|
55
|
+
consent: boolean;
|
|
56
|
+
}, {
|
|
57
|
+
gender: string | null;
|
|
58
|
+
phone: string;
|
|
59
|
+
firstName: string;
|
|
60
|
+
lastName: string;
|
|
61
|
+
countryIsoCode: string;
|
|
62
|
+
identificationNumber: string | null;
|
|
63
|
+
identificationType: string | null;
|
|
64
|
+
entityName: string | null;
|
|
65
|
+
entityIdentificationNumber: string | null;
|
|
66
|
+
role: string | null;
|
|
67
|
+
companyName: string | null;
|
|
68
|
+
dateOfBirth: string | null;
|
|
69
|
+
consent: boolean;
|
|
70
|
+
}>;
|
|
71
|
+
type CustomerProfilePatch = z.infer<typeof CustomerProfilePatchSchema>;
|
|
72
|
+
/** Perfil mostrado en cuenta (subset de GET customer). */
|
|
73
|
+
declare const CustomerProfileSchema: z.ZodObject<{
|
|
74
|
+
firstName: z.ZodString;
|
|
75
|
+
lastName: z.ZodString;
|
|
76
|
+
phone: z.ZodString;
|
|
77
|
+
email: z.ZodString;
|
|
78
|
+
identificationNumber: z.ZodNullable<z.ZodString>;
|
|
79
|
+
identificationType: z.ZodNullable<z.ZodString>;
|
|
80
|
+
countryIsoCode: z.ZodString;
|
|
81
|
+
consent: z.ZodBoolean;
|
|
82
|
+
entityName: z.ZodNullable<z.ZodString>;
|
|
83
|
+
entityIdentificationNumber: z.ZodNullable<z.ZodString>;
|
|
84
|
+
gender: z.ZodNullable<z.ZodString>;
|
|
85
|
+
role: z.ZodNullable<z.ZodString>;
|
|
86
|
+
companyName: z.ZodNullable<z.ZodString>;
|
|
87
|
+
dateOfBirth: z.ZodNullable<z.ZodString>;
|
|
88
|
+
}, "strip", z.ZodTypeAny, {
|
|
89
|
+
gender: string | null;
|
|
90
|
+
phone: string;
|
|
91
|
+
email: string;
|
|
92
|
+
firstName: string;
|
|
93
|
+
lastName: string;
|
|
94
|
+
countryIsoCode: string;
|
|
95
|
+
identificationNumber: string | null;
|
|
96
|
+
identificationType: string | null;
|
|
97
|
+
entityName: string | null;
|
|
98
|
+
entityIdentificationNumber: string | null;
|
|
99
|
+
role: string | null;
|
|
100
|
+
companyName: string | null;
|
|
101
|
+
dateOfBirth: string | null;
|
|
102
|
+
consent: boolean;
|
|
103
|
+
}, {
|
|
104
|
+
gender: string | null;
|
|
105
|
+
phone: string;
|
|
106
|
+
email: string;
|
|
107
|
+
firstName: string;
|
|
108
|
+
lastName: string;
|
|
109
|
+
countryIsoCode: string;
|
|
110
|
+
identificationNumber: string | null;
|
|
111
|
+
identificationType: string | null;
|
|
112
|
+
entityName: string | null;
|
|
113
|
+
entityIdentificationNumber: string | null;
|
|
114
|
+
role: string | null;
|
|
115
|
+
companyName: string | null;
|
|
116
|
+
dateOfBirth: string | null;
|
|
117
|
+
consent: boolean;
|
|
118
|
+
}>;
|
|
119
|
+
type CustomerProfile = z.infer<typeof CustomerProfileSchema>;
|
|
120
|
+
/** Respuesta de `GET /v1/customer/me` (proxy `customer`). */
|
|
121
|
+
declare const CustomerMeSchema: z.ZodObject<{
|
|
122
|
+
id: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
123
|
+
storeId: z.ZodOptional<z.ZodString>;
|
|
124
|
+
email: z.ZodString;
|
|
125
|
+
firstName: z.ZodString;
|
|
126
|
+
lastName: z.ZodString;
|
|
127
|
+
phone: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string, string | null | undefined>;
|
|
128
|
+
identificationNumber: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null, string | null | undefined>;
|
|
129
|
+
identificationType: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null, string | null | undefined>;
|
|
130
|
+
entityName: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null, string | null | undefined>;
|
|
131
|
+
entityIdentificationNumber: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null, string | null | undefined>;
|
|
132
|
+
gender: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null, string | null | undefined>;
|
|
133
|
+
role: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null, string | null | undefined>;
|
|
134
|
+
companyName: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null, string | null | undefined>;
|
|
135
|
+
dateOfBirth: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null, string | null | undefined>;
|
|
136
|
+
countryIsoCode: z.ZodEffects<z.ZodOptional<z.ZodString>, string, string | undefined>;
|
|
137
|
+
consent: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean, boolean | undefined>;
|
|
138
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
139
|
+
id: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
140
|
+
storeId: z.ZodOptional<z.ZodString>;
|
|
141
|
+
email: z.ZodString;
|
|
142
|
+
firstName: z.ZodString;
|
|
143
|
+
lastName: z.ZodString;
|
|
144
|
+
phone: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string, string | null | undefined>;
|
|
145
|
+
identificationNumber: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null, string | null | undefined>;
|
|
146
|
+
identificationType: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null, string | null | undefined>;
|
|
147
|
+
entityName: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null, string | null | undefined>;
|
|
148
|
+
entityIdentificationNumber: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null, string | null | undefined>;
|
|
149
|
+
gender: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null, string | null | undefined>;
|
|
150
|
+
role: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null, string | null | undefined>;
|
|
151
|
+
companyName: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null, string | null | undefined>;
|
|
152
|
+
dateOfBirth: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null, string | null | undefined>;
|
|
153
|
+
countryIsoCode: z.ZodEffects<z.ZodOptional<z.ZodString>, string, string | undefined>;
|
|
154
|
+
consent: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean, boolean | undefined>;
|
|
155
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
156
|
+
id: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
157
|
+
storeId: z.ZodOptional<z.ZodString>;
|
|
158
|
+
email: z.ZodString;
|
|
159
|
+
firstName: z.ZodString;
|
|
160
|
+
lastName: z.ZodString;
|
|
161
|
+
phone: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>, string, string | null | undefined>;
|
|
162
|
+
identificationNumber: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null, string | null | undefined>;
|
|
163
|
+
identificationType: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null, string | null | undefined>;
|
|
164
|
+
entityName: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null, string | null | undefined>;
|
|
165
|
+
entityIdentificationNumber: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null, string | null | undefined>;
|
|
166
|
+
gender: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null, string | null | undefined>;
|
|
167
|
+
role: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null, string | null | undefined>;
|
|
168
|
+
companyName: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null, string | null | undefined>;
|
|
169
|
+
dateOfBirth: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null, string | null | undefined>;
|
|
170
|
+
countryIsoCode: z.ZodEffects<z.ZodOptional<z.ZodString>, string, string | undefined>;
|
|
171
|
+
consent: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean, boolean | undefined>;
|
|
172
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
173
|
+
type CustomerMe = z.infer<typeof CustomerMeSchema>;
|
|
174
|
+
declare function customerMeToProfile(me: CustomerMe): CustomerProfile;
|
|
175
|
+
declare function customerMeToProfilePatch(me: CustomerMe): CustomerProfilePatch;
|
|
176
|
+
declare function customerProfileToPatch(profile: CustomerProfile): CustomerProfilePatch;
|
|
177
|
+
|
|
178
|
+
export { type CustomerMe, CustomerMeSchema, type CustomerProfile, type CustomerProfilePatch, CustomerProfilePatchSchema, CustomerProfileSchema, type CustomerRegisterRequest, CustomerRegisterRequestSchema, customerMeToProfile, customerMeToProfilePatch, customerProfileToPatch };
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
// src/models/customer-profile.ts
|
|
4
|
+
var DEFAULT_COUNTRY_CODE = "PE";
|
|
5
|
+
var CustomerRegisterRequestSchema = z.object({
|
|
6
|
+
email: z.string().email(),
|
|
7
|
+
firstName: z.string().trim().min(1),
|
|
8
|
+
lastName: z.string().trim().min(1),
|
|
9
|
+
countryIsoCode: z.string().trim().length(2),
|
|
10
|
+
password: z.string().min(1),
|
|
11
|
+
phone: z.string().trim().min(1).optional()
|
|
12
|
+
});
|
|
13
|
+
var CustomerProfilePatchSchema = z.object({
|
|
14
|
+
firstName: z.string().trim().min(1),
|
|
15
|
+
lastName: z.string().trim().min(1),
|
|
16
|
+
phone: z.string().trim(),
|
|
17
|
+
identificationNumber: z.string().nullable(),
|
|
18
|
+
identificationType: z.string().nullable(),
|
|
19
|
+
entityName: z.string().nullable(),
|
|
20
|
+
entityIdentificationNumber: z.string().nullable(),
|
|
21
|
+
gender: z.string().nullable(),
|
|
22
|
+
role: z.string().nullable(),
|
|
23
|
+
companyName: z.string().nullable(),
|
|
24
|
+
dateOfBirth: z.string().nullable(),
|
|
25
|
+
consent: z.boolean(),
|
|
26
|
+
countryIsoCode: z.string().trim().length(2)
|
|
27
|
+
});
|
|
28
|
+
var CustomerProfileSchema = z.object({
|
|
29
|
+
firstName: z.string(),
|
|
30
|
+
lastName: z.string(),
|
|
31
|
+
phone: z.string(),
|
|
32
|
+
email: z.string().email(),
|
|
33
|
+
identificationNumber: z.string().nullable(),
|
|
34
|
+
identificationType: z.string().nullable(),
|
|
35
|
+
countryIsoCode: z.string(),
|
|
36
|
+
consent: z.boolean(),
|
|
37
|
+
entityName: z.string().nullable(),
|
|
38
|
+
entityIdentificationNumber: z.string().nullable(),
|
|
39
|
+
gender: z.string().nullable(),
|
|
40
|
+
role: z.string().nullable(),
|
|
41
|
+
companyName: z.string().nullable(),
|
|
42
|
+
dateOfBirth: z.string().nullable()
|
|
43
|
+
});
|
|
44
|
+
var nullableString = z.string().nullable().optional().transform((v) => v ?? null);
|
|
45
|
+
var CustomerMeSchema = z.object({
|
|
46
|
+
id: z.union([z.string(), z.number()]),
|
|
47
|
+
storeId: z.string().optional(),
|
|
48
|
+
email: z.string().email(),
|
|
49
|
+
firstName: z.string(),
|
|
50
|
+
lastName: z.string(),
|
|
51
|
+
phone: z.union([z.string(), z.null()]).optional().transform((v) => v ?? ""),
|
|
52
|
+
identificationNumber: nullableString,
|
|
53
|
+
identificationType: nullableString,
|
|
54
|
+
entityName: nullableString,
|
|
55
|
+
entityIdentificationNumber: nullableString,
|
|
56
|
+
gender: nullableString,
|
|
57
|
+
role: nullableString,
|
|
58
|
+
companyName: nullableString,
|
|
59
|
+
dateOfBirth: nullableString,
|
|
60
|
+
countryIsoCode: z.string().optional().transform((v) => v?.trim().length === 2 ? v.trim() : DEFAULT_COUNTRY_CODE),
|
|
61
|
+
consent: z.boolean().optional().transform((v) => v ?? false)
|
|
62
|
+
}).passthrough();
|
|
63
|
+
function customerMeToProfile(me) {
|
|
64
|
+
return CustomerProfileSchema.parse({
|
|
65
|
+
firstName: me.firstName,
|
|
66
|
+
lastName: me.lastName,
|
|
67
|
+
phone: me.phone,
|
|
68
|
+
email: me.email,
|
|
69
|
+
identificationNumber: me.identificationNumber,
|
|
70
|
+
identificationType: me.identificationType,
|
|
71
|
+
countryIsoCode: me.countryIsoCode,
|
|
72
|
+
consent: me.consent,
|
|
73
|
+
entityName: me.entityName,
|
|
74
|
+
entityIdentificationNumber: me.entityIdentificationNumber,
|
|
75
|
+
gender: me.gender,
|
|
76
|
+
role: me.role,
|
|
77
|
+
companyName: me.companyName,
|
|
78
|
+
dateOfBirth: me.dateOfBirth
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
function customerMeToProfilePatch(me) {
|
|
82
|
+
return CustomerProfilePatchSchema.parse({
|
|
83
|
+
firstName: me.firstName,
|
|
84
|
+
lastName: me.lastName,
|
|
85
|
+
phone: me.phone,
|
|
86
|
+
identificationNumber: me.identificationNumber,
|
|
87
|
+
identificationType: me.identificationType,
|
|
88
|
+
entityName: me.entityName,
|
|
89
|
+
entityIdentificationNumber: me.entityIdentificationNumber,
|
|
90
|
+
gender: me.gender,
|
|
91
|
+
role: me.role,
|
|
92
|
+
companyName: me.companyName,
|
|
93
|
+
dateOfBirth: me.dateOfBirth,
|
|
94
|
+
consent: me.consent,
|
|
95
|
+
countryIsoCode: me.countryIsoCode || DEFAULT_COUNTRY_CODE
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
function customerProfileToPatch(profile) {
|
|
99
|
+
return CustomerProfilePatchSchema.parse({
|
|
100
|
+
firstName: profile.firstName,
|
|
101
|
+
lastName: profile.lastName,
|
|
102
|
+
phone: profile.phone,
|
|
103
|
+
identificationNumber: profile.identificationNumber,
|
|
104
|
+
identificationType: profile.identificationType,
|
|
105
|
+
entityName: profile.entityName,
|
|
106
|
+
entityIdentificationNumber: profile.entityIdentificationNumber,
|
|
107
|
+
gender: profile.gender,
|
|
108
|
+
role: profile.role,
|
|
109
|
+
companyName: profile.companyName,
|
|
110
|
+
dateOfBirth: profile.dateOfBirth,
|
|
111
|
+
consent: profile.consent,
|
|
112
|
+
countryIsoCode: profile.countryIsoCode || DEFAULT_COUNTRY_CODE
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export { CustomerMeSchema, CustomerProfilePatchSchema, CustomerProfileSchema, CustomerRegisterRequestSchema, customerMeToProfile, customerMeToProfilePatch, customerProfileToPatch };
|
|
117
|
+
//# sourceMappingURL=customer-profile.js.map
|
|
118
|
+
//# sourceMappingURL=customer-profile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/models/customer-profile.ts"],"names":[],"mappings":";;;AAEA,IAAM,oBAAA,GAAuB,IAAA;AAGtB,IAAM,6BAAA,GAAgC,EAAE,MAAA,CAAO;AAAA,EACpD,KAAA,EAAO,CAAA,CAAE,MAAA,EAAO,CAAE,KAAA,EAAM;AAAA,EACxB,WAAW,CAAA,CAAE,MAAA,GAAS,IAAA,EAAK,CA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B,OAAA,CAAQ,0BAAA;AAAA,IACpC,QAAQ,OAAA,CAAQ,MAAA;AAAA,IAChB,MAAM,OAAA,CAAQ,IAAA;AAAA,IACd,aAAa,OAAA,CAAQ,WAAA;AAAA,IACrB,aAAa,OAAA,CAAQ,WAAA;AAAA,IACrB,SAAS,OAAA,CAAQ,OAAA;AAAA,IACjB,cAAA,EAAgB,QAAQ,cAAA,IAAkB;AAAA,GAC3C,CAAA;AACH","file":"customer-profile.js","sourcesContent":["import { z } from 'zod'\n\nconst DEFAULT_COUNTRY_CODE = 'PE'\n\n/** Cuerpo de `POST /v1/customer/register` (proxy `customer/register`). */\nexport const CustomerRegisterRequestSchema = z.object({\n email: z.string().email(),\n firstName: z.string().trim().min(1),\n lastName: z.string().trim().min(1),\n countryIsoCode: z.string().trim().length(2),\n password: z.string().min(1),\n phone: z.string().trim().min(1).optional(),\n})\n\nexport type CustomerRegisterRequest = z.infer<typeof CustomerRegisterRequestSchema>\n\n/** Cuerpo de `PATCH /v1/customer` (proxy `customer`). */\nexport const CustomerProfilePatchSchema = z.object({\n firstName: z.string().trim().min(1),\n lastName: z.string().trim().min(1),\n phone: z.string().trim(),\n identificationNumber: z.string().nullable(),\n identificationType: z.string().nullable(),\n entityName: z.string().nullable(),\n entityIdentificationNumber: z.string().nullable(),\n gender: z.string().nullable(),\n role: z.string().nullable(),\n companyName: z.string().nullable(),\n dateOfBirth: z.string().nullable(),\n consent: z.boolean(),\n countryIsoCode: z.string().trim().length(2),\n})\n\nexport type CustomerProfilePatch = z.infer<typeof CustomerProfilePatchSchema>\n\n/** Perfil mostrado en cuenta (subset de GET customer). */\nexport const CustomerProfileSchema = z.object({\n firstName: z.string(),\n lastName: z.string(),\n phone: z.string(),\n email: z.string().email(),\n identificationNumber: z.string().nullable(),\n identificationType: z.string().nullable(),\n countryIsoCode: z.string(),\n consent: z.boolean(),\n entityName: z.string().nullable(),\n entityIdentificationNumber: z.string().nullable(),\n gender: z.string().nullable(),\n role: z.string().nullable(),\n companyName: z.string().nullable(),\n dateOfBirth: z.string().nullable(),\n})\n\nexport type CustomerProfile = z.infer<typeof CustomerProfileSchema>\n\nconst nullableString = z.string().nullable().optional().transform((v) => v ?? null)\n\n/** Respuesta de `GET /v1/customer/me` (proxy `customer`). */\nexport const CustomerMeSchema = z\n .object({\n id: z.union([z.string(), z.number()]),\n storeId: z.string().optional(),\n email: z.string().email(),\n firstName: z.string(),\n lastName: z.string(),\n phone: z\n .union([z.string(), z.null()])\n .optional()\n .transform((v) => v ?? ''),\n identificationNumber: nullableString,\n identificationType: nullableString,\n entityName: nullableString,\n entityIdentificationNumber: nullableString,\n gender: nullableString,\n role: nullableString,\n companyName: nullableString,\n dateOfBirth: nullableString,\n countryIsoCode: z\n .string()\n .optional()\n .transform((v) => (v?.trim().length === 2 ? v.trim() : DEFAULT_COUNTRY_CODE)),\n consent: z.boolean().optional().transform((v) => v ?? false),\n })\n .passthrough()\n\nexport type CustomerMe = z.infer<typeof CustomerMeSchema>\n\nexport function customerMeToProfile(me: CustomerMe): CustomerProfile {\n return CustomerProfileSchema.parse({\n firstName: me.firstName,\n lastName: me.lastName,\n phone: me.phone,\n email: me.email,\n identificationNumber: me.identificationNumber,\n identificationType: me.identificationType,\n countryIsoCode: me.countryIsoCode,\n consent: me.consent,\n entityName: me.entityName,\n entityIdentificationNumber: me.entityIdentificationNumber,\n gender: me.gender,\n role: me.role,\n companyName: me.companyName,\n dateOfBirth: me.dateOfBirth,\n })\n}\n\nexport function customerMeToProfilePatch(me: CustomerMe): CustomerProfilePatch {\n return CustomerProfilePatchSchema.parse({\n firstName: me.firstName,\n lastName: me.lastName,\n phone: me.phone,\n identificationNumber: me.identificationNumber,\n identificationType: me.identificationType,\n entityName: me.entityName,\n entityIdentificationNumber: me.entityIdentificationNumber,\n gender: me.gender,\n role: me.role,\n companyName: me.companyName,\n dateOfBirth: me.dateOfBirth,\n consent: me.consent,\n countryIsoCode: me.countryIsoCode || DEFAULT_COUNTRY_CODE,\n })\n}\n\nexport function customerProfileToPatch(profile: CustomerProfile): CustomerProfilePatch {\n return CustomerProfilePatchSchema.parse({\n firstName: profile.firstName,\n lastName: profile.lastName,\n phone: profile.phone,\n identificationNumber: profile.identificationNumber,\n identificationType: profile.identificationType,\n entityName: profile.entityName,\n entityIdentificationNumber: profile.entityIdentificationNumber,\n gender: profile.gender,\n role: profile.role,\n companyName: profile.companyName,\n dateOfBirth: profile.dateOfBirth,\n consent: profile.consent,\n countryIsoCode: profile.countryIsoCode || DEFAULT_COUNTRY_CODE,\n })\n}\n"]}
|
package/dist/models/geo.d.cts
CHANGED
|
@@ -38,16 +38,16 @@ declare const GeoDivisionSchema: z.ZodObject<{
|
|
|
38
38
|
}, "strict", z.ZodTypeAny, {
|
|
39
39
|
code: string;
|
|
40
40
|
type: "level1" | "level2" | "level3";
|
|
41
|
-
name: string;
|
|
42
41
|
id: string;
|
|
42
|
+
name: string;
|
|
43
43
|
countryCode: string;
|
|
44
44
|
parentId: string | null;
|
|
45
45
|
source: string;
|
|
46
46
|
}, {
|
|
47
47
|
code: string;
|
|
48
48
|
type: "level1" | "level2" | "level3";
|
|
49
|
-
name: string;
|
|
50
49
|
id: string;
|
|
50
|
+
name: string;
|
|
51
51
|
countryCode: string;
|
|
52
52
|
parentId: string | null;
|
|
53
53
|
source: string;
|
|
@@ -65,16 +65,16 @@ declare const DepartmentSchema: z.ZodObject<{
|
|
|
65
65
|
}, "strict", z.ZodTypeAny, {
|
|
66
66
|
code: string;
|
|
67
67
|
type: "level1" | "level2" | "level3";
|
|
68
|
-
name: string;
|
|
69
68
|
id: string;
|
|
69
|
+
name: string;
|
|
70
70
|
countryCode: string;
|
|
71
71
|
parentId: string | null;
|
|
72
72
|
source: string;
|
|
73
73
|
}, {
|
|
74
74
|
code: string;
|
|
75
75
|
type: "level1" | "level2" | "level3";
|
|
76
|
-
name: string;
|
|
77
76
|
id: string;
|
|
77
|
+
name: string;
|
|
78
78
|
countryCode: string;
|
|
79
79
|
parentId: string | null;
|
|
80
80
|
source: string;
|
|
@@ -91,16 +91,16 @@ declare const DepartmentsSchema: z.ZodArray<z.ZodObject<{
|
|
|
91
91
|
}, "strict", z.ZodTypeAny, {
|
|
92
92
|
code: string;
|
|
93
93
|
type: "level1" | "level2" | "level3";
|
|
94
|
-
name: string;
|
|
95
94
|
id: string;
|
|
95
|
+
name: string;
|
|
96
96
|
countryCode: string;
|
|
97
97
|
parentId: string | null;
|
|
98
98
|
source: string;
|
|
99
99
|
}, {
|
|
100
100
|
code: string;
|
|
101
101
|
type: "level1" | "level2" | "level3";
|
|
102
|
-
name: string;
|
|
103
102
|
id: string;
|
|
103
|
+
name: string;
|
|
104
104
|
countryCode: string;
|
|
105
105
|
parentId: string | null;
|
|
106
106
|
source: string;
|
|
@@ -137,16 +137,16 @@ declare const ProvinceSchema: z.ZodObject<{
|
|
|
137
137
|
}, "strict", z.ZodTypeAny, {
|
|
138
138
|
code: string;
|
|
139
139
|
type: "level1" | "level2" | "level3";
|
|
140
|
-
name: string;
|
|
141
140
|
id: string;
|
|
141
|
+
name: string;
|
|
142
142
|
countryCode: string;
|
|
143
143
|
parentId: string | null;
|
|
144
144
|
source: string;
|
|
145
145
|
}, {
|
|
146
146
|
code: string;
|
|
147
147
|
type: "level1" | "level2" | "level3";
|
|
148
|
-
name: string;
|
|
149
148
|
id: string;
|
|
149
|
+
name: string;
|
|
150
150
|
countryCode: string;
|
|
151
151
|
parentId: string | null;
|
|
152
152
|
source: string;
|
|
@@ -163,16 +163,16 @@ declare const ProvincesSchema: z.ZodArray<z.ZodObject<{
|
|
|
163
163
|
}, "strict", z.ZodTypeAny, {
|
|
164
164
|
code: string;
|
|
165
165
|
type: "level1" | "level2" | "level3";
|
|
166
|
-
name: string;
|
|
167
166
|
id: string;
|
|
167
|
+
name: string;
|
|
168
168
|
countryCode: string;
|
|
169
169
|
parentId: string | null;
|
|
170
170
|
source: string;
|
|
171
171
|
}, {
|
|
172
172
|
code: string;
|
|
173
173
|
type: "level1" | "level2" | "level3";
|
|
174
|
-
name: string;
|
|
175
174
|
id: string;
|
|
175
|
+
name: string;
|
|
176
176
|
countryCode: string;
|
|
177
177
|
parentId: string | null;
|
|
178
178
|
source: string;
|
|
@@ -212,16 +212,16 @@ declare const DistrictSchema: z.ZodObject<{
|
|
|
212
212
|
}, "strict", z.ZodTypeAny, {
|
|
213
213
|
code: string;
|
|
214
214
|
type: "level1" | "level2" | "level3";
|
|
215
|
-
name: string;
|
|
216
215
|
id: string;
|
|
216
|
+
name: string;
|
|
217
217
|
countryCode: string;
|
|
218
218
|
parentId: string | null;
|
|
219
219
|
source: string;
|
|
220
220
|
}, {
|
|
221
221
|
code: string;
|
|
222
222
|
type: "level1" | "level2" | "level3";
|
|
223
|
-
name: string;
|
|
224
223
|
id: string;
|
|
224
|
+
name: string;
|
|
225
225
|
countryCode: string;
|
|
226
226
|
parentId: string | null;
|
|
227
227
|
source: string;
|
|
@@ -238,16 +238,16 @@ declare const DistrictsSchema: z.ZodArray<z.ZodObject<{
|
|
|
238
238
|
}, "strict", z.ZodTypeAny, {
|
|
239
239
|
code: string;
|
|
240
240
|
type: "level1" | "level2" | "level3";
|
|
241
|
-
name: string;
|
|
242
241
|
id: string;
|
|
242
|
+
name: string;
|
|
243
243
|
countryCode: string;
|
|
244
244
|
parentId: string | null;
|
|
245
245
|
source: string;
|
|
246
246
|
}, {
|
|
247
247
|
code: string;
|
|
248
248
|
type: "level1" | "level2" | "level3";
|
|
249
|
-
name: string;
|
|
250
249
|
id: string;
|
|
250
|
+
name: string;
|
|
251
251
|
countryCode: string;
|
|
252
252
|
parentId: string | null;
|
|
253
253
|
source: string;
|
package/dist/models/geo.d.ts
CHANGED
|
@@ -38,16 +38,16 @@ declare const GeoDivisionSchema: z.ZodObject<{
|
|
|
38
38
|
}, "strict", z.ZodTypeAny, {
|
|
39
39
|
code: string;
|
|
40
40
|
type: "level1" | "level2" | "level3";
|
|
41
|
-
name: string;
|
|
42
41
|
id: string;
|
|
42
|
+
name: string;
|
|
43
43
|
countryCode: string;
|
|
44
44
|
parentId: string | null;
|
|
45
45
|
source: string;
|
|
46
46
|
}, {
|
|
47
47
|
code: string;
|
|
48
48
|
type: "level1" | "level2" | "level3";
|
|
49
|
-
name: string;
|
|
50
49
|
id: string;
|
|
50
|
+
name: string;
|
|
51
51
|
countryCode: string;
|
|
52
52
|
parentId: string | null;
|
|
53
53
|
source: string;
|
|
@@ -65,16 +65,16 @@ declare const DepartmentSchema: z.ZodObject<{
|
|
|
65
65
|
}, "strict", z.ZodTypeAny, {
|
|
66
66
|
code: string;
|
|
67
67
|
type: "level1" | "level2" | "level3";
|
|
68
|
-
name: string;
|
|
69
68
|
id: string;
|
|
69
|
+
name: string;
|
|
70
70
|
countryCode: string;
|
|
71
71
|
parentId: string | null;
|
|
72
72
|
source: string;
|
|
73
73
|
}, {
|
|
74
74
|
code: string;
|
|
75
75
|
type: "level1" | "level2" | "level3";
|
|
76
|
-
name: string;
|
|
77
76
|
id: string;
|
|
77
|
+
name: string;
|
|
78
78
|
countryCode: string;
|
|
79
79
|
parentId: string | null;
|
|
80
80
|
source: string;
|
|
@@ -91,16 +91,16 @@ declare const DepartmentsSchema: z.ZodArray<z.ZodObject<{
|
|
|
91
91
|
}, "strict", z.ZodTypeAny, {
|
|
92
92
|
code: string;
|
|
93
93
|
type: "level1" | "level2" | "level3";
|
|
94
|
-
name: string;
|
|
95
94
|
id: string;
|
|
95
|
+
name: string;
|
|
96
96
|
countryCode: string;
|
|
97
97
|
parentId: string | null;
|
|
98
98
|
source: string;
|
|
99
99
|
}, {
|
|
100
100
|
code: string;
|
|
101
101
|
type: "level1" | "level2" | "level3";
|
|
102
|
-
name: string;
|
|
103
102
|
id: string;
|
|
103
|
+
name: string;
|
|
104
104
|
countryCode: string;
|
|
105
105
|
parentId: string | null;
|
|
106
106
|
source: string;
|
|
@@ -137,16 +137,16 @@ declare const ProvinceSchema: z.ZodObject<{
|
|
|
137
137
|
}, "strict", z.ZodTypeAny, {
|
|
138
138
|
code: string;
|
|
139
139
|
type: "level1" | "level2" | "level3";
|
|
140
|
-
name: string;
|
|
141
140
|
id: string;
|
|
141
|
+
name: string;
|
|
142
142
|
countryCode: string;
|
|
143
143
|
parentId: string | null;
|
|
144
144
|
source: string;
|
|
145
145
|
}, {
|
|
146
146
|
code: string;
|
|
147
147
|
type: "level1" | "level2" | "level3";
|
|
148
|
-
name: string;
|
|
149
148
|
id: string;
|
|
149
|
+
name: string;
|
|
150
150
|
countryCode: string;
|
|
151
151
|
parentId: string | null;
|
|
152
152
|
source: string;
|
|
@@ -163,16 +163,16 @@ declare const ProvincesSchema: z.ZodArray<z.ZodObject<{
|
|
|
163
163
|
}, "strict", z.ZodTypeAny, {
|
|
164
164
|
code: string;
|
|
165
165
|
type: "level1" | "level2" | "level3";
|
|
166
|
-
name: string;
|
|
167
166
|
id: string;
|
|
167
|
+
name: string;
|
|
168
168
|
countryCode: string;
|
|
169
169
|
parentId: string | null;
|
|
170
170
|
source: string;
|
|
171
171
|
}, {
|
|
172
172
|
code: string;
|
|
173
173
|
type: "level1" | "level2" | "level3";
|
|
174
|
-
name: string;
|
|
175
174
|
id: string;
|
|
175
|
+
name: string;
|
|
176
176
|
countryCode: string;
|
|
177
177
|
parentId: string | null;
|
|
178
178
|
source: string;
|
|
@@ -212,16 +212,16 @@ declare const DistrictSchema: z.ZodObject<{
|
|
|
212
212
|
}, "strict", z.ZodTypeAny, {
|
|
213
213
|
code: string;
|
|
214
214
|
type: "level1" | "level2" | "level3";
|
|
215
|
-
name: string;
|
|
216
215
|
id: string;
|
|
216
|
+
name: string;
|
|
217
217
|
countryCode: string;
|
|
218
218
|
parentId: string | null;
|
|
219
219
|
source: string;
|
|
220
220
|
}, {
|
|
221
221
|
code: string;
|
|
222
222
|
type: "level1" | "level2" | "level3";
|
|
223
|
-
name: string;
|
|
224
223
|
id: string;
|
|
224
|
+
name: string;
|
|
225
225
|
countryCode: string;
|
|
226
226
|
parentId: string | null;
|
|
227
227
|
source: string;
|
|
@@ -238,16 +238,16 @@ declare const DistrictsSchema: z.ZodArray<z.ZodObject<{
|
|
|
238
238
|
}, "strict", z.ZodTypeAny, {
|
|
239
239
|
code: string;
|
|
240
240
|
type: "level1" | "level2" | "level3";
|
|
241
|
-
name: string;
|
|
242
241
|
id: string;
|
|
242
|
+
name: string;
|
|
243
243
|
countryCode: string;
|
|
244
244
|
parentId: string | null;
|
|
245
245
|
source: string;
|
|
246
246
|
}, {
|
|
247
247
|
code: string;
|
|
248
248
|
type: "level1" | "level2" | "level3";
|
|
249
|
-
name: string;
|
|
250
249
|
id: string;
|
|
250
|
+
name: string;
|
|
251
251
|
countryCode: string;
|
|
252
252
|
parentId: string | null;
|
|
253
253
|
source: string;
|