expo-backend-types 0.56.0-EXPO-379-EB-Rutas-necesarias.3 → 0.56.0-EXPO-376-Bugfixing-01.1
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/account/dto/get-global-filter.dto.d.ts +10 -8
- package/dist/src/account/dto/get-me.dto.d.ts +20 -16
- package/dist/src/account/dto/update-global-filter.dto.d.ts +10 -8
- package/dist/src/dynamic-form/dto/create-dynamic-form.dto.d.ts +301 -0
- package/dist/src/dynamic-form/dto/create-dynamic-form.dto.js +61 -0
- package/dist/src/dynamic-form/dto/delete-dynamic-form.dto.d.ts +18 -0
- package/dist/src/dynamic-form/dto/delete-dynamic-form.dto.js +12 -0
- package/dist/src/dynamic-form/dto/dynamic-form.dto.d.ts +146 -0
- package/dist/src/dynamic-form/dto/dynamic-form.dto.js +64 -0
- package/dist/src/dynamic-form/dto/find-all-dynamic-form.dto.d.ts +515 -0
- package/dist/src/dynamic-form/dto/find-all-dynamic-form.dto.js +23 -0
- package/dist/src/dynamic-form/dto/update-dynamic-form.dto.d.ts +402 -0
- package/dist/src/dynamic-form/dto/update-dynamic-form.dto.js +45 -0
- package/dist/src/dynamic-form/exports.d.ts +5 -0
- package/dist/src/dynamic-form/exports.js +22 -0
- package/dist/src/event/dto/get-all-event.dto.d.ts +32 -28
- package/dist/src/event/dto/get-by-id-event.dto.d.ts +50 -40
- package/dist/src/event/dto/update-event.dto.d.ts +10 -8
- package/dist/src/exports.d.ts +1 -0
- package/dist/src/exports.js +1 -0
- package/dist/src/i18n/es.d.ts +54 -0
- package/dist/src/i18n/es.js +48 -0
- package/dist/src/i18n/es.js.map +1 -1
- package/dist/src/production/dto/create-role.dto.d.ts +7 -4
- package/dist/src/profile/dto/find-all-profile.dto.d.ts +14 -12
- package/dist/src/profile/dto/find-by-date-range-profile.dto.d.ts +24 -20
- package/dist/src/profile/dto/find-by-id-profile.dto.d.ts +10 -8
- package/dist/src/profile/dto/find-by-phone-number.dto.d.ts +2 -141
- package/dist/src/profile/dto/find-by-phone-number.dto.js +1 -21
- package/dist/src/profile/dto/find-by-tag-groups-profile.dto.d.ts +14 -12
- package/dist/src/profile/dto/find-by-tags-profile.dto.d.ts +14 -12
- package/dist/src/profile/dto/find-with-active-chat.dto.d.ts +14 -12
- package/dist/src/tag/dto/create-tag.dto.d.ts +13 -8
- package/dist/src/tag/dto/delete-tag.dto.d.ts +6 -4
- package/dist/src/tag/dto/find-all-tag.dto.d.ts +10 -8
- package/dist/src/tag/dto/find-by-group-tag.dto.d.ts +10 -8
- package/dist/src/tag/dto/find-one-tag.dto.d.ts +6 -4
- package/dist/src/tag/dto/tag.dto.d.ts +6 -4
- package/dist/src/tag/dto/update-tag.dto.d.ts +7 -4
- package/dist/src/tag-group/dto/find-all-tag-group.dto.d.ts +14 -12
- package/dist/src/tag-group/dto/find-all-with-tags.dto.d.ts +14 -12
- package/dist/src/tag-group/dto/find-one-tag-group.dto.d.ts +10 -8
- package/dist/types/prisma-schema/edge.js +37 -5
- package/dist/types/prisma-schema/index-browser.js +34 -2
- package/dist/types/prisma-schema/index.d.ts +5216 -143
- package/dist/types/prisma-schema/index.js +37 -5
- package/dist/types/prisma-schema/package.json +1 -1
- package/dist/types/prisma-schema/schema.prisma +55 -2
- package/dist/types/prisma-schema/wasm.js +34 -2
- package/dist/types/schema.d.ts +322 -40
- package/package.json +2 -2
@@ -0,0 +1,61 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.CreateDynamicFormResponseDto = exports.createDynamicFormResponseSchema = exports.CreateDynamicFormDto = exports.createDynamicFormSchema = void 0;
|
7
|
+
const dynamic_form_dto_1 = require("./dynamic-form.dto");
|
8
|
+
const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
|
9
|
+
const zod_1 = __importDefault(require("zod"));
|
10
|
+
exports.createDynamicFormSchema = dynamic_form_dto_1.dynamicFormSchema
|
11
|
+
.pick({
|
12
|
+
name: true,
|
13
|
+
})
|
14
|
+
.merge(zod_1.default.object({
|
15
|
+
questions: dynamic_form_dto_1.dynamicQuestionSchema
|
16
|
+
.pick({
|
17
|
+
text: true,
|
18
|
+
disabled: true,
|
19
|
+
required: true,
|
20
|
+
multipleChoice: true,
|
21
|
+
})
|
22
|
+
.merge(zod_1.default.object({
|
23
|
+
options: dynamic_form_dto_1.dynamicOptionSchema
|
24
|
+
.pick({
|
25
|
+
text: true,
|
26
|
+
})
|
27
|
+
.array(),
|
28
|
+
}))
|
29
|
+
.array(),
|
30
|
+
}))
|
31
|
+
.strict();
|
32
|
+
class CreateDynamicFormDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.createDynamicFormSchema) {
|
33
|
+
}
|
34
|
+
exports.CreateDynamicFormDto = CreateDynamicFormDto;
|
35
|
+
exports.createDynamicFormResponseSchema = dynamic_form_dto_1.dynamicFormSchema
|
36
|
+
.pick({
|
37
|
+
id: true,
|
38
|
+
name: true,
|
39
|
+
})
|
40
|
+
.extend({
|
41
|
+
questions: zod_1.default.array(dynamic_form_dto_1.dynamicQuestionSchema
|
42
|
+
.pick({
|
43
|
+
id: true,
|
44
|
+
text: true,
|
45
|
+
disabled: true,
|
46
|
+
required: true,
|
47
|
+
multipleChoice: true,
|
48
|
+
tagGroupId: true,
|
49
|
+
})
|
50
|
+
.extend({
|
51
|
+
options: zod_1.default.array(dynamic_form_dto_1.dynamicOptionSchema.pick({
|
52
|
+
text: true,
|
53
|
+
tagId: true,
|
54
|
+
id: true,
|
55
|
+
})),
|
56
|
+
})),
|
57
|
+
});
|
58
|
+
class CreateDynamicFormResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.createDynamicFormResponseSchema) {
|
59
|
+
}
|
60
|
+
exports.CreateDynamicFormResponseDto = CreateDynamicFormResponseDto;
|
61
|
+
//# sourceMappingURL=create-dynamic-form.dto.js.map
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare const deleteDynamicFormSchema: z.ZodObject<{
|
3
|
+
id: z.ZodString;
|
4
|
+
}, "strip", z.ZodTypeAny, {
|
5
|
+
id: string;
|
6
|
+
}, {
|
7
|
+
id: string;
|
8
|
+
}>;
|
9
|
+
declare const DeleteDynamicFormDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
|
10
|
+
id: z.ZodString;
|
11
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
12
|
+
id: string;
|
13
|
+
}, {
|
14
|
+
id: string;
|
15
|
+
}>>;
|
16
|
+
export declare class DeleteDynamicFormDto extends DeleteDynamicFormDto_base {
|
17
|
+
}
|
18
|
+
export {};
|
@@ -0,0 +1,12 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.DeleteDynamicFormDto = exports.deleteDynamicFormSchema = void 0;
|
4
|
+
const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
|
5
|
+
const zod_1 = require("zod");
|
6
|
+
exports.deleteDynamicFormSchema = zod_1.z.object({
|
7
|
+
id: zod_1.z.string(),
|
8
|
+
});
|
9
|
+
class DeleteDynamicFormDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.deleteDynamicFormSchema) {
|
10
|
+
}
|
11
|
+
exports.DeleteDynamicFormDto = DeleteDynamicFormDto;
|
12
|
+
//# sourceMappingURL=delete-dynamic-form.dto.js.map
|
@@ -0,0 +1,146 @@
|
|
1
|
+
import z from 'zod';
|
2
|
+
export declare const dynamicFormSchema: z.ZodObject<{
|
3
|
+
id: z.ZodString;
|
4
|
+
name: z.ZodString;
|
5
|
+
created_at: z.ZodDate;
|
6
|
+
updated_at: z.ZodDate;
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
8
|
+
id: string;
|
9
|
+
name: string;
|
10
|
+
created_at: Date;
|
11
|
+
updated_at: Date;
|
12
|
+
}, {
|
13
|
+
id: string;
|
14
|
+
name: string;
|
15
|
+
created_at: Date;
|
16
|
+
updated_at: Date;
|
17
|
+
}>;
|
18
|
+
export declare const dynamicQuestionSchema: z.ZodObject<{
|
19
|
+
id: z.ZodString;
|
20
|
+
formId: z.ZodString;
|
21
|
+
text: z.ZodString;
|
22
|
+
disabled: z.ZodDefault<z.ZodBoolean>;
|
23
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
24
|
+
multipleChoice: z.ZodDefault<z.ZodBoolean>;
|
25
|
+
tagGroupId: z.ZodString;
|
26
|
+
created_at: z.ZodDate;
|
27
|
+
updated_at: z.ZodDate;
|
28
|
+
}, "strip", z.ZodTypeAny, {
|
29
|
+
id: string;
|
30
|
+
required: boolean;
|
31
|
+
text: string;
|
32
|
+
created_at: Date;
|
33
|
+
updated_at: Date;
|
34
|
+
formId: string;
|
35
|
+
disabled: boolean;
|
36
|
+
multipleChoice: boolean;
|
37
|
+
tagGroupId: string;
|
38
|
+
}, {
|
39
|
+
id: string;
|
40
|
+
text: string;
|
41
|
+
created_at: Date;
|
42
|
+
updated_at: Date;
|
43
|
+
formId: string;
|
44
|
+
tagGroupId: string;
|
45
|
+
required?: boolean | undefined;
|
46
|
+
disabled?: boolean | undefined;
|
47
|
+
multipleChoice?: boolean | undefined;
|
48
|
+
}>;
|
49
|
+
export declare const dynamicOptionSchema: z.ZodObject<{
|
50
|
+
id: z.ZodString;
|
51
|
+
text: z.ZodString;
|
52
|
+
tagId: z.ZodString;
|
53
|
+
questionId: z.ZodString;
|
54
|
+
created_at: z.ZodDate;
|
55
|
+
updated_at: z.ZodDate;
|
56
|
+
}, "strip", z.ZodTypeAny, {
|
57
|
+
id: string;
|
58
|
+
text: string;
|
59
|
+
created_at: Date;
|
60
|
+
updated_at: Date;
|
61
|
+
tagId: string;
|
62
|
+
questionId: string;
|
63
|
+
}, {
|
64
|
+
id: string;
|
65
|
+
text: string;
|
66
|
+
created_at: Date;
|
67
|
+
updated_at: Date;
|
68
|
+
tagId: string;
|
69
|
+
questionId: string;
|
70
|
+
}>;
|
71
|
+
declare const DynamicFormDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
|
72
|
+
id: z.ZodString;
|
73
|
+
name: z.ZodString;
|
74
|
+
created_at: z.ZodString;
|
75
|
+
updated_at: z.ZodString;
|
76
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
77
|
+
id: string;
|
78
|
+
name: string;
|
79
|
+
created_at: string;
|
80
|
+
updated_at: string;
|
81
|
+
}, {
|
82
|
+
id: string;
|
83
|
+
name: string;
|
84
|
+
created_at: string;
|
85
|
+
updated_at: string;
|
86
|
+
}>>;
|
87
|
+
export declare class DynamicFormDto extends DynamicFormDto_base {
|
88
|
+
}
|
89
|
+
declare const DynamicQuestionDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
|
90
|
+
id: z.ZodString;
|
91
|
+
formId: z.ZodString;
|
92
|
+
text: z.ZodString;
|
93
|
+
disabled: z.ZodDefault<z.ZodBoolean>;
|
94
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
95
|
+
multipleChoice: z.ZodDefault<z.ZodBoolean>;
|
96
|
+
tagGroupId: z.ZodString;
|
97
|
+
created_at: z.ZodString;
|
98
|
+
updated_at: z.ZodString;
|
99
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
100
|
+
id: string;
|
101
|
+
required: boolean;
|
102
|
+
text: string;
|
103
|
+
created_at: string;
|
104
|
+
updated_at: string;
|
105
|
+
formId: string;
|
106
|
+
disabled: boolean;
|
107
|
+
multipleChoice: boolean;
|
108
|
+
tagGroupId: string;
|
109
|
+
}, {
|
110
|
+
id: string;
|
111
|
+
text: string;
|
112
|
+
created_at: string;
|
113
|
+
updated_at: string;
|
114
|
+
formId: string;
|
115
|
+
tagGroupId: string;
|
116
|
+
required?: boolean | undefined;
|
117
|
+
disabled?: boolean | undefined;
|
118
|
+
multipleChoice?: boolean | undefined;
|
119
|
+
}>>;
|
120
|
+
export declare class DynamicQuestionDto extends DynamicQuestionDto_base {
|
121
|
+
}
|
122
|
+
declare const DynamicOptionDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
|
123
|
+
id: z.ZodString;
|
124
|
+
text: z.ZodString;
|
125
|
+
tagId: z.ZodString;
|
126
|
+
questionId: z.ZodString;
|
127
|
+
created_at: z.ZodString;
|
128
|
+
updated_at: z.ZodString;
|
129
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
130
|
+
id: string;
|
131
|
+
text: string;
|
132
|
+
created_at: string;
|
133
|
+
updated_at: string;
|
134
|
+
tagId: string;
|
135
|
+
questionId: string;
|
136
|
+
}, {
|
137
|
+
id: string;
|
138
|
+
text: string;
|
139
|
+
created_at: string;
|
140
|
+
updated_at: string;
|
141
|
+
tagId: string;
|
142
|
+
questionId: string;
|
143
|
+
}>>;
|
144
|
+
export declare class DynamicOptionDto extends DynamicOptionDto_base {
|
145
|
+
}
|
146
|
+
export {};
|
@@ -0,0 +1,64 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.DynamicOptionDto = exports.DynamicQuestionDto = exports.DynamicFormDto = exports.dynamicOptionSchema = exports.dynamicQuestionSchema = exports.dynamicFormSchema = void 0;
|
7
|
+
const translate_1 = require("../../i18n/translate");
|
8
|
+
const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
|
9
|
+
const tag_group_dto_1 = require("../../tag-group/dto/tag-group.dto");
|
10
|
+
const tag_dto_1 = require("../../tag/dto/tag.dto");
|
11
|
+
const zod_1 = __importDefault(require("zod"));
|
12
|
+
exports.dynamicFormSchema = zod_1.default.object({
|
13
|
+
id: zod_1.default.string().uuid({
|
14
|
+
message: (0, translate_1.translate)('model.dynamicForm.id.uuid'),
|
15
|
+
}),
|
16
|
+
name: zod_1.default
|
17
|
+
.string({
|
18
|
+
required_error: (0, translate_1.translate)('model.dynamicForm.name.required'),
|
19
|
+
})
|
20
|
+
.min(1, {
|
21
|
+
message: (0, translate_1.translate)('model.dynamicForm.name.min'),
|
22
|
+
}),
|
23
|
+
created_at: zod_1.default.date(),
|
24
|
+
updated_at: zod_1.default.date(),
|
25
|
+
});
|
26
|
+
exports.dynamicQuestionSchema = zod_1.default.object({
|
27
|
+
id: zod_1.default.string().uuid({
|
28
|
+
message: (0, translate_1.translate)('model.dynamicQuestion.id.uuid'),
|
29
|
+
}),
|
30
|
+
formId: exports.dynamicFormSchema.shape.id,
|
31
|
+
text: zod_1.default
|
32
|
+
.string({
|
33
|
+
required_error: (0, translate_1.translate)('model.dynamicQuestion.text.required'),
|
34
|
+
})
|
35
|
+
.min(1, {
|
36
|
+
message: (0, translate_1.translate)('model.dynamicQuestion.text.min'),
|
37
|
+
}),
|
38
|
+
disabled: zod_1.default.boolean().default(false),
|
39
|
+
required: zod_1.default.boolean().default(true),
|
40
|
+
multipleChoice: zod_1.default.boolean().default(false),
|
41
|
+
tagGroupId: tag_group_dto_1.tagGroupSchema.shape.id,
|
42
|
+
created_at: zod_1.default.date(),
|
43
|
+
updated_at: zod_1.default.date(),
|
44
|
+
});
|
45
|
+
exports.dynamicOptionSchema = zod_1.default.object({
|
46
|
+
id: zod_1.default.string().uuid({
|
47
|
+
message: (0, translate_1.translate)('model.dynamicOption.id.uuid'),
|
48
|
+
}),
|
49
|
+
text: tag_dto_1.tagSchema.shape.name,
|
50
|
+
tagId: tag_dto_1.tagSchema.shape.id,
|
51
|
+
questionId: exports.dynamicQuestionSchema.shape.id,
|
52
|
+
created_at: zod_1.default.date(),
|
53
|
+
updated_at: zod_1.default.date(),
|
54
|
+
});
|
55
|
+
class DynamicFormDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.dynamicFormSchema) {
|
56
|
+
}
|
57
|
+
exports.DynamicFormDto = DynamicFormDto;
|
58
|
+
class DynamicQuestionDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.dynamicQuestionSchema) {
|
59
|
+
}
|
60
|
+
exports.DynamicQuestionDto = DynamicQuestionDto;
|
61
|
+
class DynamicOptionDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.dynamicOptionSchema) {
|
62
|
+
}
|
63
|
+
exports.DynamicOptionDto = DynamicOptionDto;
|
64
|
+
//# sourceMappingURL=dynamic-form.dto.js.map
|