expo-backend-types 0.33.0 → 0.34.0
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/src/exports.d.ts +3 -0
- package/dist/src/exports.js +3 -0
- package/dist/src/i18n/es.d.ts +20 -0
- package/dist/src/i18n/es.js +20 -0
- package/dist/src/i18n/es.js.map +1 -1
- package/dist/src/image/constants.d.ts +5 -0
- package/dist/src/image/constants.js +9 -0
- package/dist/src/location/dto/find-all-location.dto.js +2 -2
- package/dist/src/location/exports.d.ts +0 -1
- package/dist/src/location/exports.js +0 -1
- package/dist/src/message/dto/non-read-messages.dto.d.ts +2 -2
- package/dist/src/message/dto/non-read-messages.dto.js +2 -2
- package/dist/src/message/dto/send-message-to-phone.dto.d.ts +2 -2
- package/dist/src/message/dto/send-message-to-phone.dto.js +2 -2
- package/dist/src/mi-expo/dto/get-me.dto.d.ts +337 -0
- package/dist/src/mi-expo/dto/get-me.dto.js +16 -0
- package/dist/src/mi-expo/dto/login-with-phone.dto.d.ts +311 -0
- package/dist/src/mi-expo/dto/login-with-phone.dto.js +29 -0
- package/dist/src/mi-expo/dto/login.dto.d.ts +327 -0
- package/dist/src/mi-expo/dto/login.dto.js +31 -0
- package/dist/src/mi-expo/dto/update-me.dto.d.ts +352 -0
- package/dist/src/mi-expo/dto/update-me.dto.js +31 -0
- package/dist/src/mi-expo/exports.d.ts +4 -0
- package/dist/src/mi-expo/exports.js +21 -0
- package/dist/src/otp/constants.d.ts +2 -0
- package/dist/src/otp/constants.js +6 -0
- package/dist/src/otp/dto/send-otp.dto.d.ts +158 -0
- package/dist/src/otp/dto/send-otp.dto.js +35 -0
- package/dist/src/otp/dto/verify-otp.dto.d.ts +455 -0
- package/dist/src/otp/dto/verify-otp.dto.js +46 -0
- package/dist/src/otp/exports.d.ts +2 -0
- package/dist/src/otp/exports.js +19 -0
- package/dist/src/prisma/constants.d.ts +1 -0
- package/dist/src/prisma/constants.js +5 -0
- package/dist/src/profile/dto/create-profile.dto.d.ts +48 -14
- package/dist/src/profile/dto/create-profile.dto.js +9 -7
- package/dist/src/profile/dto/delete-profile.dto.d.ts +30 -6
- package/dist/src/profile/dto/delete-profile.dto.js +2 -2
- package/dist/src/profile/dto/find-all-profile.dto.d.ts +47 -7
- package/dist/src/profile/dto/find-all-profile.dto.js +2 -2
- package/dist/src/profile/dto/find-by-date-range-profile.dto.d.ts +75 -11
- package/dist/src/profile/dto/find-by-date-range-profile.dto.js +3 -3
- package/dist/src/profile/dto/find-by-id-profile.dto.d.ts +32 -13
- package/dist/src/profile/dto/find-by-id-profile.dto.js +7 -5
- package/dist/src/profile/dto/find-by-phone-number.dto.d.ts +30 -6
- package/dist/src/profile/dto/find-by-phone-number.dto.js +2 -2
- package/dist/src/profile/dto/find-by-tag-groups-profile.dto.d.ts +47 -7
- package/dist/src/profile/dto/find-by-tag-groups-profile.dto.js +2 -2
- package/dist/src/profile/dto/find-by-tags-profile.dto.d.ts +47 -7
- package/dist/src/profile/dto/find-by-tags-profile.dto.js +2 -2
- package/dist/src/profile/dto/find-trash.dto.d.ts +7 -3
- package/dist/src/profile/dto/find-trash.dto.js +2 -2
- package/dist/src/profile/dto/find-with-active-chat.dto.d.ts +47 -7
- package/dist/src/profile/dto/find-with-active-chat.dto.js +2 -2
- package/dist/src/profile/dto/profile.dto.d.ts +44 -30
- package/dist/src/profile/dto/profile.dto.js +6 -63
- package/dist/src/profile/dto/update-profile.dto.d.ts +54 -12
- package/dist/src/profile/dto/update-profile.dto.js +9 -6
- package/dist/src/schema/exports.d.ts +2 -0
- package/dist/src/schema/exports.js +19 -0
- package/dist/src/{location/dto/location.dto.js → schema/location.schema.js} +2 -2
- package/dist/src/schema/profile.schema.d.ts +74 -0
- package/dist/src/schema/profile.schema.js +133 -0
- package/dist/src/shared/dto-modification/zod-without-dates.d.ts +2 -4
- package/dist/src/shared/dto-modification/zod-without-dates.js +8 -0
- package/dist/src/shared/dto-modification/zod-without-dates.js.map +1 -1
- package/dist/src/tag/dto/massive-allocation.dto.d.ts +47 -7
- package/dist/src/tag/dto/massive-allocation.dto.js +3 -3
- package/dist/src/tag/dto/massive-deallocation.dto.d.ts +47 -7
- package/dist/src/tag/dto/massive-deallocation.dto.js +3 -3
- package/dist/src/ticket/constants.d.ts +16 -0
- package/dist/src/ticket/constants.js +272 -0
- package/dist/src/webhook/constants.d.ts +1 -0
- package/dist/src/webhook/constants.js +5 -0
- package/dist/types/prisma-schema/edge.js +38 -24
- package/dist/types/prisma-schema/index-browser.js +18 -9
- package/dist/types/prisma-schema/index.d.ts +4093 -456
- package/dist/types/prisma-schema/index.js +38 -24
- package/dist/types/prisma-schema/libquery_engine-debian-openssl-3.0.x.so.node +0 -0
- package/dist/types/prisma-schema/package.json +8 -2
- package/dist/types/prisma-schema/runtime/edge-esm.js +18 -18
- package/dist/types/prisma-schema/runtime/edge.js +18 -18
- package/dist/types/prisma-schema/runtime/index-browser.d.ts +3 -1
- package/dist/types/prisma-schema/runtime/index-browser.js +3 -3
- package/dist/types/prisma-schema/runtime/library.d.ts +205 -153
- package/dist/types/prisma-schema/runtime/library.js +55 -55
- package/dist/types/prisma-schema/runtime/react-native.js +26 -26
- package/dist/types/prisma-schema/runtime/wasm.js +17 -17
- package/dist/types/prisma-schema/schema.prisma +22 -1
- package/dist/types/prisma-schema/wasm.js +18 -9
- package/dist/types/schema.d.ts +506 -2
- package/package.json +41 -40
- /package/dist/src/{location/dto/location.dto.d.ts → schema/location.schema.d.ts} +0 -0
@@ -0,0 +1,133 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
15
|
+
}) : function(o, v) {
|
16
|
+
o["default"] = v;
|
17
|
+
});
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
19
|
+
if (mod && mod.__esModule) return mod;
|
20
|
+
var result = {};
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
22
|
+
__setModuleDefault(result, mod);
|
23
|
+
return result;
|
24
|
+
};
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
27
|
+
};
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
29
|
+
exports.profileSchema = void 0;
|
30
|
+
const translate_1 = require("../i18n/translate");
|
31
|
+
const libphonenumber_js_1 = __importStar(require("libphonenumber-js"));
|
32
|
+
const zod_1 = __importDefault(require("zod"));
|
33
|
+
function formatArgNumber(phoneNumber, value) {
|
34
|
+
const prefixes9 = ['11', '15'];
|
35
|
+
const prefix = prefixes9.includes(phoneNumber?.nationalNumber?.slice(0, 2) ?? '')
|
36
|
+
? '9'
|
37
|
+
: '';
|
38
|
+
if (phoneNumber?.country === 'AR') {
|
39
|
+
return `${phoneNumber.countryCallingCode}${prefix}${phoneNumber.nationalNumber}`;
|
40
|
+
}
|
41
|
+
return value;
|
42
|
+
}
|
43
|
+
exports.profileSchema = zod_1.default.object({
|
44
|
+
id: zod_1.default.string().uuid({
|
45
|
+
message: (0, translate_1.translate)('model.profile.id.uuid'),
|
46
|
+
}),
|
47
|
+
shortId: zod_1.default.number(),
|
48
|
+
firstTimeMiExpo: zod_1.default.boolean(),
|
49
|
+
username: zod_1.default.string().nullable(),
|
50
|
+
password: zod_1.default.string().nullable(),
|
51
|
+
phoneNumber: zod_1.default
|
52
|
+
.string()
|
53
|
+
.min(1, {
|
54
|
+
message: (0, translate_1.translate)('model.profile.phoneNumber.required'),
|
55
|
+
})
|
56
|
+
.refine((value) => (0, libphonenumber_js_1.isValidPhoneNumber)(value, 'AR'), {
|
57
|
+
message: (0, translate_1.translate)('model.profile.phoneNumber.invalid'),
|
58
|
+
})
|
59
|
+
.transform((value, ctx) => {
|
60
|
+
if (!value)
|
61
|
+
return value;
|
62
|
+
const phoneNumber = (0, libphonenumber_js_1.default)(value, {
|
63
|
+
defaultCountry: 'AR',
|
64
|
+
});
|
65
|
+
if (!phoneNumber) {
|
66
|
+
ctx.addIssue({
|
67
|
+
code: zod_1.default.ZodIssueCode.custom,
|
68
|
+
message: (0, translate_1.translate)('model.profile.phoneNumber.invalid'),
|
69
|
+
});
|
70
|
+
return value;
|
71
|
+
}
|
72
|
+
return formatArgNumber(phoneNumber, value);
|
73
|
+
}),
|
74
|
+
isPhoneVerified: zod_1.default.boolean(),
|
75
|
+
secondaryPhoneNumber: zod_1.default
|
76
|
+
.string()
|
77
|
+
.refine((value) => {
|
78
|
+
if (value === null)
|
79
|
+
return true;
|
80
|
+
return (0, libphonenumber_js_1.isValidPhoneNumber)(value, 'AR');
|
81
|
+
}, {
|
82
|
+
message: (0, translate_1.translate)('model.profile.secondaryPhoneNumber.invalid'),
|
83
|
+
})
|
84
|
+
.transform((value, ctx) => {
|
85
|
+
if (!value)
|
86
|
+
return value;
|
87
|
+
const phoneNumber = (0, libphonenumber_js_1.default)(value, {
|
88
|
+
defaultCountry: 'AR',
|
89
|
+
});
|
90
|
+
if (!phoneNumber) {
|
91
|
+
ctx.addIssue({
|
92
|
+
code: zod_1.default.ZodIssueCode.custom,
|
93
|
+
message: (0, translate_1.translate)('model.profile.phoneNumber.invalid'),
|
94
|
+
});
|
95
|
+
return value;
|
96
|
+
}
|
97
|
+
return formatArgNumber(phoneNumber, value);
|
98
|
+
})
|
99
|
+
.nullable(),
|
100
|
+
fullName: zod_1.default.string().min(1, {
|
101
|
+
message: (0, translate_1.translate)('model.profile.fullName.required'),
|
102
|
+
}),
|
103
|
+
firstName: zod_1.default
|
104
|
+
.string()
|
105
|
+
.min(1, {
|
106
|
+
message: (0, translate_1.translate)('model.profile.fullName.required'),
|
107
|
+
})
|
108
|
+
.nullable(),
|
109
|
+
gender: zod_1.default.string().nullable(),
|
110
|
+
birthDate: zod_1.default.string().pipe(zod_1.default.coerce.date()).nullable(),
|
111
|
+
profilePictureUrl: zod_1.default
|
112
|
+
.string()
|
113
|
+
.url({
|
114
|
+
message: (0, translate_1.translate)('model.profile.profilePictureUrl.invalid'),
|
115
|
+
})
|
116
|
+
.nullable(),
|
117
|
+
instagram: zod_1.default.string().nullable(),
|
118
|
+
mail: zod_1.default
|
119
|
+
.string()
|
120
|
+
.email({
|
121
|
+
message: (0, translate_1.translate)('model.profile.mail.invalid'),
|
122
|
+
})
|
123
|
+
.nullable(),
|
124
|
+
dni: zod_1.default.string().nullable(),
|
125
|
+
alternativeNames: zod_1.default.array(zod_1.default.string()),
|
126
|
+
birthLocationId: zod_1.default.string().uuid().nullable(),
|
127
|
+
residenceLocationId: zod_1.default.string().uuid().nullable(),
|
128
|
+
isInTrash: zod_1.default.boolean(),
|
129
|
+
movedToTrashDate: zod_1.default.coerce.date().nullable(),
|
130
|
+
created_at: zod_1.default.date(),
|
131
|
+
updated_at: zod_1.default.date(),
|
132
|
+
});
|
133
|
+
//# sourceMappingURL=profile.schema.js.map
|
@@ -1,8 +1,6 @@
|
|
1
1
|
import { type OpenApiZodAny } from '@anatine/zod-openapi';
|
2
|
-
import { z, ZodArray, ZodDate, ZodIntersection, ZodNullable, ZodObject, ZodOptional, ZodTypeAny, ZodUnion } from 'zod';
|
2
|
+
import { z, ZodArray, ZodDate, ZodIntersection, ZodNullable, ZodObject, ZodOptional, ZodPipeline, ZodTypeAny, ZodUnion } from 'zod';
|
3
3
|
export type ReplaceDatesWithStrings<T extends ZodTypeAny> = T extends ZodDate ? ReturnType<typeof z.string> : T extends ZodObject<infer Shape> ? ZodObject<{
|
4
4
|
[k in keyof Shape]: ReplaceDatesWithStrings<Shape[k]>;
|
5
|
-
}> : T extends ZodArray<infer Item> ? ZodArray<ReplaceDatesWithStrings<Item>> : T extends ZodUnion<infer Options> ? ZodUnion<
|
6
|
-
[k in keyof Options]: ReplaceDatesWithStrings<Options[k]>;
|
7
|
-
}> : T extends ZodIntersection<infer Left, infer Right> ? ZodIntersection<ReplaceDatesWithStrings<Left>, ReplaceDatesWithStrings<Right>> : T extends ZodNullable<infer Inner> ? ZodNullable<ReplaceDatesWithStrings<Inner>> : T extends ZodOptional<infer Inner> ? ZodOptional<ReplaceDatesWithStrings<Inner>> : T;
|
5
|
+
}> : T extends ZodArray<infer Item> ? ZodArray<ReplaceDatesWithStrings<Item>> : T extends ZodUnion<infer Options extends [ZodTypeAny, ...ZodTypeAny[]]> ? ZodUnion<Options> : T extends ZodIntersection<infer Left, infer Right> ? ZodIntersection<ReplaceDatesWithStrings<Left>, ReplaceDatesWithStrings<Right>> : T extends ZodNullable<infer Inner> ? ZodNullable<ReplaceDatesWithStrings<Inner>> : T extends ZodOptional<infer Inner> ? ZodOptional<ReplaceDatesWithStrings<Inner>> : T extends ZodPipeline<infer In, infer Out> ? ZodPipeline<ReplaceDatesWithStrings<In>, ReplaceDatesWithStrings<Out>> : T;
|
8
6
|
export declare const replaceDatesWithStrings: <T extends OpenApiZodAny>(schema: T) => ReplaceDatesWithStrings<T>;
|
@@ -6,6 +6,14 @@ const replaceDatesWithStrings = (schema) => {
|
|
6
6
|
if (schema instanceof zod_1.ZodDate) {
|
7
7
|
return zod_1.z.string().datetime();
|
8
8
|
}
|
9
|
+
if (schema instanceof zod_1.ZodPipeline) {
|
10
|
+
if (schema._def.output instanceof zod_1.ZodDate) {
|
11
|
+
return zod_1.z.string().datetime();
|
12
|
+
}
|
13
|
+
else {
|
14
|
+
return (0, exports.replaceDatesWithStrings)(schema._def.input);
|
15
|
+
}
|
16
|
+
}
|
9
17
|
if (schema instanceof zod_1.ZodObject) {
|
10
18
|
const newShape = {};
|
11
19
|
for (const key in schema.shape) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"zod-without-dates.js","sourceRoot":"","sources":["../../../../src/shared/dto-modification/zod-without-dates.ts"],"names":[],"mappings":";;;AACA,
|
1
|
+
{"version":3,"file":"zod-without-dates.js","sourceRoot":"","sources":["../../../../src/shared/dto-modification/zod-without-dates.ts"],"names":[],"mappings":";;;AACA,6BAYa;AA2BN,MAAM,uBAAuB,GAAG,CACrC,MAAS,EACmB,EAAE;IAC9B,IAAI,MAAM,YAAY,aAAO,EAAE,CAAC;QAC9B,OAAO,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAgC,CAAC;IAC7D,CAAC;IAED,IAAI,MAAM,YAAY,iBAAW,EAAE,CAAC;QAClC,IAAI,MAAM,CAAC,IAAI,CAAC,MAAM,YAAY,aAAO,EAAE,CAAC;YAC1C,OAAO,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAgC,CAAC;QAC7D,CAAC;aAAM,CAAC;YACN,OAAO,IAAA,+BAAuB,EAC5B,MAAM,CAAC,IAAI,CAAC,KAAK,CACY,CAAC;QAClC,CAAC;IACH,CAAC;IAED,IAAI,MAAM,YAAY,eAAS,EAAE,CAAC;QAChC,MAAM,QAAQ,GAAgB,EAAE,CAAC;QACjC,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,KAAK,EAAE,CAAC;YAC/B,QAAQ,CAAC,GAAG,CAAC,GAAG,IAAA,+BAAuB,EAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;QAC7D,CAAC;QACD,OAAO,OAAC,CAAC,MAAM,CAAC,QAAQ,CAA+B,CAAC;IAC1D,CAAC;IAED,IAAI,MAAM,YAAY,cAAQ,EAAE,CAAC;QAC/B,OAAO,OAAC,CAAC,KAAK,CACZ,IAAA,+BAAuB,EAAC,MAAM,CAAC,OAAO,CAAC,CACV,CAAC;IAClC,CAAC;IAED,IAAI,MAAM,YAAY,cAAQ,EAAE,CAAC;QAC/B,OAAO,OAAC,CAAC,KAAK,CACZ,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAS,EAAE,EAAE,CAAC,IAAA,+BAAuB,EAAC,MAAM,CAAC,CAAC,CAC1C,CAAC;IAClC,CAAC;IAED,IAAI,MAAM,YAAY,qBAAe,EAAE,CAAC;QACtC,OAAO,OAAC,CAAC,YAAY,CACnB,IAAA,+BAAuB,EAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,EACzC,IAAA,+BAAuB,EAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CACb,CAAC;IAClC,CAAC;IAGD,OAAO,MAAoC,CAAC;AAC9C,CAAC,CAAC;AA9CW,QAAA,uBAAuB,2BA8ClC"}
|
@@ -25,8 +25,12 @@ export declare const massiveAllocationResponseSchema: z.ZodObject<{
|
|
25
25
|
profiles: z.ZodArray<z.ZodObject<{
|
26
26
|
id: z.ZodString;
|
27
27
|
shortId: z.ZodNumber;
|
28
|
-
|
29
|
-
|
28
|
+
firstTimeMiExpo: z.ZodBoolean;
|
29
|
+
username: z.ZodNullable<z.ZodString>;
|
30
|
+
password: z.ZodNullable<z.ZodString>;
|
31
|
+
phoneNumber: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
32
|
+
isPhoneVerified: z.ZodBoolean;
|
33
|
+
secondaryPhoneNumber: z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
30
34
|
fullName: z.ZodString;
|
31
35
|
firstName: z.ZodNullable<z.ZodString>;
|
32
36
|
gender: z.ZodNullable<z.ZodString>;
|
@@ -44,6 +48,8 @@ export declare const massiveAllocationResponseSchema: z.ZodObject<{
|
|
44
48
|
updated_at: z.ZodDate;
|
45
49
|
}, "strip", z.ZodTypeAny, {
|
46
50
|
id: string;
|
51
|
+
username: string | null;
|
52
|
+
password: string | null;
|
47
53
|
phoneNumber: string;
|
48
54
|
secondaryPhoneNumber: string | null;
|
49
55
|
fullName: string;
|
@@ -52,6 +58,8 @@ export declare const massiveAllocationResponseSchema: z.ZodObject<{
|
|
52
58
|
created_at: Date;
|
53
59
|
updated_at: Date;
|
54
60
|
shortId: number;
|
61
|
+
firstTimeMiExpo: boolean;
|
62
|
+
isPhoneVerified: boolean;
|
55
63
|
firstName: string | null;
|
56
64
|
gender: string | null;
|
57
65
|
birthDate: Date | null;
|
@@ -64,6 +72,8 @@ export declare const massiveAllocationResponseSchema: z.ZodObject<{
|
|
64
72
|
movedToTrashDate: Date | null;
|
65
73
|
}, {
|
66
74
|
id: string;
|
75
|
+
username: string | null;
|
76
|
+
password: string | null;
|
67
77
|
phoneNumber: string;
|
68
78
|
secondaryPhoneNumber: string | null;
|
69
79
|
fullName: string;
|
@@ -72,6 +82,8 @@ export declare const massiveAllocationResponseSchema: z.ZodObject<{
|
|
72
82
|
created_at: Date;
|
73
83
|
updated_at: Date;
|
74
84
|
shortId: number;
|
85
|
+
firstTimeMiExpo: boolean;
|
86
|
+
isPhoneVerified: boolean;
|
75
87
|
firstName: string | null;
|
76
88
|
gender: string | null;
|
77
89
|
birthDate: string | null;
|
@@ -86,6 +98,8 @@ export declare const massiveAllocationResponseSchema: z.ZodObject<{
|
|
86
98
|
}, "strip", z.ZodTypeAny, {
|
87
99
|
profiles: {
|
88
100
|
id: string;
|
101
|
+
username: string | null;
|
102
|
+
password: string | null;
|
89
103
|
phoneNumber: string;
|
90
104
|
secondaryPhoneNumber: string | null;
|
91
105
|
fullName: string;
|
@@ -94,6 +108,8 @@ export declare const massiveAllocationResponseSchema: z.ZodObject<{
|
|
94
108
|
created_at: Date;
|
95
109
|
updated_at: Date;
|
96
110
|
shortId: number;
|
111
|
+
firstTimeMiExpo: boolean;
|
112
|
+
isPhoneVerified: boolean;
|
97
113
|
firstName: string | null;
|
98
114
|
gender: string | null;
|
99
115
|
birthDate: Date | null;
|
@@ -108,6 +124,8 @@ export declare const massiveAllocationResponseSchema: z.ZodObject<{
|
|
108
124
|
}, {
|
109
125
|
profiles: {
|
110
126
|
id: string;
|
127
|
+
username: string | null;
|
128
|
+
password: string | null;
|
111
129
|
phoneNumber: string;
|
112
130
|
secondaryPhoneNumber: string | null;
|
113
131
|
fullName: string;
|
@@ -116,6 +134,8 @@ export declare const massiveAllocationResponseSchema: z.ZodObject<{
|
|
116
134
|
created_at: Date;
|
117
135
|
updated_at: Date;
|
118
136
|
shortId: number;
|
137
|
+
firstTimeMiExpo: boolean;
|
138
|
+
isPhoneVerified: boolean;
|
119
139
|
firstName: string | null;
|
120
140
|
gender: string | null;
|
121
141
|
birthDate: string | null;
|
@@ -132,12 +152,16 @@ declare const MassiveAllocationResponseDto_base: import("@anatine/zod-nestjs").Z
|
|
132
152
|
profiles: z.ZodArray<z.ZodObject<{
|
133
153
|
id: z.ZodString;
|
134
154
|
shortId: z.ZodNumber;
|
135
|
-
|
136
|
-
|
155
|
+
firstTimeMiExpo: z.ZodBoolean;
|
156
|
+
username: z.ZodNullable<z.ZodString>;
|
157
|
+
password: z.ZodNullable<z.ZodString>;
|
158
|
+
phoneNumber: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
159
|
+
isPhoneVerified: z.ZodBoolean;
|
160
|
+
secondaryPhoneNumber: z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
137
161
|
fullName: z.ZodString;
|
138
162
|
firstName: z.ZodNullable<z.ZodString>;
|
139
163
|
gender: z.ZodNullable<z.ZodString>;
|
140
|
-
birthDate: z.ZodNullable<z.ZodPipeline<z.ZodString, z.
|
164
|
+
birthDate: z.ZodNullable<z.ZodPipeline<z.ZodString, z.ZodString>>;
|
141
165
|
profilePictureUrl: z.ZodNullable<z.ZodString>;
|
142
166
|
instagram: z.ZodNullable<z.ZodString>;
|
143
167
|
mail: z.ZodNullable<z.ZodString>;
|
@@ -151,6 +175,8 @@ declare const MassiveAllocationResponseDto_base: import("@anatine/zod-nestjs").Z
|
|
151
175
|
updated_at: z.ZodString;
|
152
176
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
153
177
|
id: string;
|
178
|
+
username: string | null;
|
179
|
+
password: string | null;
|
154
180
|
phoneNumber: string;
|
155
181
|
secondaryPhoneNumber: string | null;
|
156
182
|
fullName: string;
|
@@ -159,9 +185,11 @@ declare const MassiveAllocationResponseDto_base: import("@anatine/zod-nestjs").Z
|
|
159
185
|
created_at: string;
|
160
186
|
updated_at: string;
|
161
187
|
shortId: number;
|
188
|
+
firstTimeMiExpo: boolean;
|
189
|
+
isPhoneVerified: boolean;
|
162
190
|
firstName: string | null;
|
163
191
|
gender: string | null;
|
164
|
-
birthDate:
|
192
|
+
birthDate: string | null;
|
165
193
|
instagram: string | null;
|
166
194
|
dni: string | null;
|
167
195
|
alternativeNames: string[];
|
@@ -171,6 +199,8 @@ declare const MassiveAllocationResponseDto_base: import("@anatine/zod-nestjs").Z
|
|
171
199
|
movedToTrashDate: string | null;
|
172
200
|
}, {
|
173
201
|
id: string;
|
202
|
+
username: string | null;
|
203
|
+
password: string | null;
|
174
204
|
phoneNumber: string;
|
175
205
|
secondaryPhoneNumber: string | null;
|
176
206
|
fullName: string;
|
@@ -179,6 +209,8 @@ declare const MassiveAllocationResponseDto_base: import("@anatine/zod-nestjs").Z
|
|
179
209
|
created_at: string;
|
180
210
|
updated_at: string;
|
181
211
|
shortId: number;
|
212
|
+
firstTimeMiExpo: boolean;
|
213
|
+
isPhoneVerified: boolean;
|
182
214
|
firstName: string | null;
|
183
215
|
gender: string | null;
|
184
216
|
birthDate: string | null;
|
@@ -193,6 +225,8 @@ declare const MassiveAllocationResponseDto_base: import("@anatine/zod-nestjs").Z
|
|
193
225
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
194
226
|
profiles: {
|
195
227
|
id: string;
|
228
|
+
username: string | null;
|
229
|
+
password: string | null;
|
196
230
|
phoneNumber: string;
|
197
231
|
secondaryPhoneNumber: string | null;
|
198
232
|
fullName: string;
|
@@ -201,9 +235,11 @@ declare const MassiveAllocationResponseDto_base: import("@anatine/zod-nestjs").Z
|
|
201
235
|
created_at: string;
|
202
236
|
updated_at: string;
|
203
237
|
shortId: number;
|
238
|
+
firstTimeMiExpo: boolean;
|
239
|
+
isPhoneVerified: boolean;
|
204
240
|
firstName: string | null;
|
205
241
|
gender: string | null;
|
206
|
-
birthDate:
|
242
|
+
birthDate: string | null;
|
207
243
|
instagram: string | null;
|
208
244
|
dni: string | null;
|
209
245
|
alternativeNames: string[];
|
@@ -215,6 +251,8 @@ declare const MassiveAllocationResponseDto_base: import("@anatine/zod-nestjs").Z
|
|
215
251
|
}, {
|
216
252
|
profiles: {
|
217
253
|
id: string;
|
254
|
+
username: string | null;
|
255
|
+
password: string | null;
|
218
256
|
phoneNumber: string;
|
219
257
|
secondaryPhoneNumber: string | null;
|
220
258
|
fullName: string;
|
@@ -223,6 +261,8 @@ declare const MassiveAllocationResponseDto_base: import("@anatine/zod-nestjs").Z
|
|
223
261
|
created_at: string;
|
224
262
|
updated_at: string;
|
225
263
|
shortId: number;
|
264
|
+
firstTimeMiExpo: boolean;
|
265
|
+
isPhoneVerified: boolean;
|
226
266
|
firstName: string | null;
|
227
267
|
gender: string | null;
|
228
268
|
birthDate: string | null;
|
@@ -4,19 +4,19 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
4
|
};
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
6
|
exports.MassiveAllocationResponseDto = exports.massiveAllocationResponseSchema = exports.MassiveAllocationDto = exports.massiveAllocationSchema = void 0;
|
7
|
-
const
|
7
|
+
const profile_schema_1 = require("../../schema/profile.schema");
|
8
8
|
const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
|
9
9
|
const tag_dto_1 = require("./tag.dto");
|
10
10
|
const zod_1 = __importDefault(require("zod"));
|
11
11
|
exports.massiveAllocationSchema = zod_1.default.object({
|
12
12
|
tagIds: zod_1.default.array(tag_dto_1.tagSchema.shape.id),
|
13
|
-
profileIds: zod_1.default.array(
|
13
|
+
profileIds: zod_1.default.array(profile_schema_1.profileSchema.shape.id),
|
14
14
|
});
|
15
15
|
class MassiveAllocationDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.massiveAllocationSchema) {
|
16
16
|
}
|
17
17
|
exports.MassiveAllocationDto = MassiveAllocationDto;
|
18
18
|
exports.massiveAllocationResponseSchema = zod_1.default.object({
|
19
|
-
profiles: zod_1.default.array(
|
19
|
+
profiles: zod_1.default.array(profile_schema_1.profileSchema),
|
20
20
|
});
|
21
21
|
class MassiveAllocationResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.massiveAllocationResponseSchema) {
|
22
22
|
}
|
@@ -25,8 +25,12 @@ export declare const massiveDeallocationResponseSchema: z.ZodObject<{
|
|
25
25
|
profiles: z.ZodArray<z.ZodObject<{
|
26
26
|
id: z.ZodString;
|
27
27
|
shortId: z.ZodNumber;
|
28
|
-
|
29
|
-
|
28
|
+
firstTimeMiExpo: z.ZodBoolean;
|
29
|
+
username: z.ZodNullable<z.ZodString>;
|
30
|
+
password: z.ZodNullable<z.ZodString>;
|
31
|
+
phoneNumber: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
32
|
+
isPhoneVerified: z.ZodBoolean;
|
33
|
+
secondaryPhoneNumber: z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
30
34
|
fullName: z.ZodString;
|
31
35
|
firstName: z.ZodNullable<z.ZodString>;
|
32
36
|
gender: z.ZodNullable<z.ZodString>;
|
@@ -44,6 +48,8 @@ export declare const massiveDeallocationResponseSchema: z.ZodObject<{
|
|
44
48
|
updated_at: z.ZodDate;
|
45
49
|
}, "strip", z.ZodTypeAny, {
|
46
50
|
id: string;
|
51
|
+
username: string | null;
|
52
|
+
password: string | null;
|
47
53
|
phoneNumber: string;
|
48
54
|
secondaryPhoneNumber: string | null;
|
49
55
|
fullName: string;
|
@@ -52,6 +58,8 @@ export declare const massiveDeallocationResponseSchema: z.ZodObject<{
|
|
52
58
|
created_at: Date;
|
53
59
|
updated_at: Date;
|
54
60
|
shortId: number;
|
61
|
+
firstTimeMiExpo: boolean;
|
62
|
+
isPhoneVerified: boolean;
|
55
63
|
firstName: string | null;
|
56
64
|
gender: string | null;
|
57
65
|
birthDate: Date | null;
|
@@ -64,6 +72,8 @@ export declare const massiveDeallocationResponseSchema: z.ZodObject<{
|
|
64
72
|
movedToTrashDate: Date | null;
|
65
73
|
}, {
|
66
74
|
id: string;
|
75
|
+
username: string | null;
|
76
|
+
password: string | null;
|
67
77
|
phoneNumber: string;
|
68
78
|
secondaryPhoneNumber: string | null;
|
69
79
|
fullName: string;
|
@@ -72,6 +82,8 @@ export declare const massiveDeallocationResponseSchema: z.ZodObject<{
|
|
72
82
|
created_at: Date;
|
73
83
|
updated_at: Date;
|
74
84
|
shortId: number;
|
85
|
+
firstTimeMiExpo: boolean;
|
86
|
+
isPhoneVerified: boolean;
|
75
87
|
firstName: string | null;
|
76
88
|
gender: string | null;
|
77
89
|
birthDate: string | null;
|
@@ -86,6 +98,8 @@ export declare const massiveDeallocationResponseSchema: z.ZodObject<{
|
|
86
98
|
}, "strip", z.ZodTypeAny, {
|
87
99
|
profiles: {
|
88
100
|
id: string;
|
101
|
+
username: string | null;
|
102
|
+
password: string | null;
|
89
103
|
phoneNumber: string;
|
90
104
|
secondaryPhoneNumber: string | null;
|
91
105
|
fullName: string;
|
@@ -94,6 +108,8 @@ export declare const massiveDeallocationResponseSchema: z.ZodObject<{
|
|
94
108
|
created_at: Date;
|
95
109
|
updated_at: Date;
|
96
110
|
shortId: number;
|
111
|
+
firstTimeMiExpo: boolean;
|
112
|
+
isPhoneVerified: boolean;
|
97
113
|
firstName: string | null;
|
98
114
|
gender: string | null;
|
99
115
|
birthDate: Date | null;
|
@@ -108,6 +124,8 @@ export declare const massiveDeallocationResponseSchema: z.ZodObject<{
|
|
108
124
|
}, {
|
109
125
|
profiles: {
|
110
126
|
id: string;
|
127
|
+
username: string | null;
|
128
|
+
password: string | null;
|
111
129
|
phoneNumber: string;
|
112
130
|
secondaryPhoneNumber: string | null;
|
113
131
|
fullName: string;
|
@@ -116,6 +134,8 @@ export declare const massiveDeallocationResponseSchema: z.ZodObject<{
|
|
116
134
|
created_at: Date;
|
117
135
|
updated_at: Date;
|
118
136
|
shortId: number;
|
137
|
+
firstTimeMiExpo: boolean;
|
138
|
+
isPhoneVerified: boolean;
|
119
139
|
firstName: string | null;
|
120
140
|
gender: string | null;
|
121
141
|
birthDate: string | null;
|
@@ -132,12 +152,16 @@ declare const MassiveDeallocationResponseDto_base: import("@anatine/zod-nestjs")
|
|
132
152
|
profiles: z.ZodArray<z.ZodObject<{
|
133
153
|
id: z.ZodString;
|
134
154
|
shortId: z.ZodNumber;
|
135
|
-
|
136
|
-
|
155
|
+
firstTimeMiExpo: z.ZodBoolean;
|
156
|
+
username: z.ZodNullable<z.ZodString>;
|
157
|
+
password: z.ZodNullable<z.ZodString>;
|
158
|
+
phoneNumber: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
159
|
+
isPhoneVerified: z.ZodBoolean;
|
160
|
+
secondaryPhoneNumber: z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
137
161
|
fullName: z.ZodString;
|
138
162
|
firstName: z.ZodNullable<z.ZodString>;
|
139
163
|
gender: z.ZodNullable<z.ZodString>;
|
140
|
-
birthDate: z.ZodNullable<z.ZodPipeline<z.ZodString, z.
|
164
|
+
birthDate: z.ZodNullable<z.ZodPipeline<z.ZodString, z.ZodString>>;
|
141
165
|
profilePictureUrl: z.ZodNullable<z.ZodString>;
|
142
166
|
instagram: z.ZodNullable<z.ZodString>;
|
143
167
|
mail: z.ZodNullable<z.ZodString>;
|
@@ -151,6 +175,8 @@ declare const MassiveDeallocationResponseDto_base: import("@anatine/zod-nestjs")
|
|
151
175
|
updated_at: z.ZodString;
|
152
176
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
153
177
|
id: string;
|
178
|
+
username: string | null;
|
179
|
+
password: string | null;
|
154
180
|
phoneNumber: string;
|
155
181
|
secondaryPhoneNumber: string | null;
|
156
182
|
fullName: string;
|
@@ -159,9 +185,11 @@ declare const MassiveDeallocationResponseDto_base: import("@anatine/zod-nestjs")
|
|
159
185
|
created_at: string;
|
160
186
|
updated_at: string;
|
161
187
|
shortId: number;
|
188
|
+
firstTimeMiExpo: boolean;
|
189
|
+
isPhoneVerified: boolean;
|
162
190
|
firstName: string | null;
|
163
191
|
gender: string | null;
|
164
|
-
birthDate:
|
192
|
+
birthDate: string | null;
|
165
193
|
instagram: string | null;
|
166
194
|
dni: string | null;
|
167
195
|
alternativeNames: string[];
|
@@ -171,6 +199,8 @@ declare const MassiveDeallocationResponseDto_base: import("@anatine/zod-nestjs")
|
|
171
199
|
movedToTrashDate: string | null;
|
172
200
|
}, {
|
173
201
|
id: string;
|
202
|
+
username: string | null;
|
203
|
+
password: string | null;
|
174
204
|
phoneNumber: string;
|
175
205
|
secondaryPhoneNumber: string | null;
|
176
206
|
fullName: string;
|
@@ -179,6 +209,8 @@ declare const MassiveDeallocationResponseDto_base: import("@anatine/zod-nestjs")
|
|
179
209
|
created_at: string;
|
180
210
|
updated_at: string;
|
181
211
|
shortId: number;
|
212
|
+
firstTimeMiExpo: boolean;
|
213
|
+
isPhoneVerified: boolean;
|
182
214
|
firstName: string | null;
|
183
215
|
gender: string | null;
|
184
216
|
birthDate: string | null;
|
@@ -193,6 +225,8 @@ declare const MassiveDeallocationResponseDto_base: import("@anatine/zod-nestjs")
|
|
193
225
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
194
226
|
profiles: {
|
195
227
|
id: string;
|
228
|
+
username: string | null;
|
229
|
+
password: string | null;
|
196
230
|
phoneNumber: string;
|
197
231
|
secondaryPhoneNumber: string | null;
|
198
232
|
fullName: string;
|
@@ -201,9 +235,11 @@ declare const MassiveDeallocationResponseDto_base: import("@anatine/zod-nestjs")
|
|
201
235
|
created_at: string;
|
202
236
|
updated_at: string;
|
203
237
|
shortId: number;
|
238
|
+
firstTimeMiExpo: boolean;
|
239
|
+
isPhoneVerified: boolean;
|
204
240
|
firstName: string | null;
|
205
241
|
gender: string | null;
|
206
|
-
birthDate:
|
242
|
+
birthDate: string | null;
|
207
243
|
instagram: string | null;
|
208
244
|
dni: string | null;
|
209
245
|
alternativeNames: string[];
|
@@ -215,6 +251,8 @@ declare const MassiveDeallocationResponseDto_base: import("@anatine/zod-nestjs")
|
|
215
251
|
}, {
|
216
252
|
profiles: {
|
217
253
|
id: string;
|
254
|
+
username: string | null;
|
255
|
+
password: string | null;
|
218
256
|
phoneNumber: string;
|
219
257
|
secondaryPhoneNumber: string | null;
|
220
258
|
fullName: string;
|
@@ -223,6 +261,8 @@ declare const MassiveDeallocationResponseDto_base: import("@anatine/zod-nestjs")
|
|
223
261
|
created_at: string;
|
224
262
|
updated_at: string;
|
225
263
|
shortId: number;
|
264
|
+
firstTimeMiExpo: boolean;
|
265
|
+
isPhoneVerified: boolean;
|
226
266
|
firstName: string | null;
|
227
267
|
gender: string | null;
|
228
268
|
birthDate: string | null;
|
@@ -4,19 +4,19 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
4
|
};
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
6
|
exports.MassiveDeallocationResponseDto = exports.massiveDeallocationResponseSchema = exports.MassiveDeallocationDto = exports.massiveDeallocationSchema = void 0;
|
7
|
-
const
|
7
|
+
const profile_schema_1 = require("../../schema/profile.schema");
|
8
8
|
const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
|
9
9
|
const tag_dto_1 = require("./tag.dto");
|
10
10
|
const zod_1 = __importDefault(require("zod"));
|
11
11
|
exports.massiveDeallocationSchema = zod_1.default.object({
|
12
12
|
tagIds: zod_1.default.array(tag_dto_1.tagSchema.shape.id),
|
13
|
-
profileIds: zod_1.default.array(
|
13
|
+
profileIds: zod_1.default.array(profile_schema_1.profileSchema.shape.id),
|
14
14
|
});
|
15
15
|
class MassiveDeallocationDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.massiveDeallocationSchema) {
|
16
16
|
}
|
17
17
|
exports.MassiveDeallocationDto = MassiveDeallocationDto;
|
18
18
|
exports.massiveDeallocationResponseSchema = zod_1.default.object({
|
19
|
-
profiles: zod_1.default.array(
|
19
|
+
profiles: zod_1.default.array(profile_schema_1.profileSchema),
|
20
20
|
});
|
21
21
|
class MassiveDeallocationResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.massiveDeallocationResponseSchema) {
|
22
22
|
}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { type Template } from '@pdfme/common';
|
2
|
+
export declare const TICKET_INPUTS: {
|
3
|
+
footer: string;
|
4
|
+
title: string;
|
5
|
+
event_section: string;
|
6
|
+
date_label: string;
|
7
|
+
time_label: string;
|
8
|
+
location_label: string;
|
9
|
+
attendee_section: string;
|
10
|
+
name_label: string;
|
11
|
+
email_label: string;
|
12
|
+
ticket_section: string;
|
13
|
+
type_label: string;
|
14
|
+
status_label: string;
|
15
|
+
};
|
16
|
+
export declare const TICKET_TEMPLATE: Template;
|