expo-backend-types 0.30.0-EXPO-308-auth.16 → 0.30.0-EXPO-308-auth.18
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/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/profile/dto/create-profile.dto.d.ts +19 -1
- package/dist/src/profile/dto/create-profile.dto.js +5 -3
- package/dist/src/profile/dto/find-by-id-profile.dto.js +3 -3
- package/dist/src/profile/dto/update-profile.dto.d.ts +12 -0
- package/dist/src/profile/dto/update-profile.dto.js +5 -3
- package/dist/src/schema/exports.d.ts +1 -0
- package/dist/src/schema/exports.js +1 -0
- package/dist/src/{location/dto/location.dto.js → schema/location.schema.js} +2 -2
- package/dist/types/schema.d.ts +4 -0
- package/package.json +7 -3
- /package/dist/src/{location/dto/location.dto.d.ts → schema/location.schema.d.ts} +0 -0
@@ -4,11 +4,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
4
|
};
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
6
|
exports.FindAllLocationResponseDto = exports.findAllLocationResponseSchema = void 0;
|
7
|
-
const
|
7
|
+
const location_schema_1 = require("../../schema/location.schema");
|
8
8
|
const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
|
9
9
|
const zod_1 = __importDefault(require("zod"));
|
10
10
|
function locationPickedSchema() {
|
11
|
-
return
|
11
|
+
return location_schema_1.locationSchema.pick({
|
12
12
|
city: true,
|
13
13
|
longitude: true,
|
14
14
|
latitude: true,
|
@@ -3,5 +3,4 @@ export * from './dto/find-all-countries.dto';
|
|
3
3
|
export * from './dto/find-all-location.dto';
|
4
4
|
export * from './dto/find-arg-states.dto';
|
5
5
|
export * from './dto/find-cities-by-arg-state.dto';
|
6
|
-
export * from './dto/location.dto';
|
7
6
|
export * from './dto/states-by-country.dto';
|
@@ -19,6 +19,5 @@ __exportStar(require("./dto/find-all-countries.dto"), exports);
|
|
19
19
|
__exportStar(require("./dto/find-all-location.dto"), exports);
|
20
20
|
__exportStar(require("./dto/find-arg-states.dto"), exports);
|
21
21
|
__exportStar(require("./dto/find-cities-by-arg-state.dto"), exports);
|
22
|
-
__exportStar(require("./dto/location.dto"), exports);
|
23
22
|
__exportStar(require("./dto/states-by-country.dto"), exports);
|
24
23
|
//# sourceMappingURL=exports.js.map
|
@@ -24,7 +24,7 @@ export declare const createProfileSchema: z.ZodObject<{
|
|
24
24
|
movedToTrashDate: z.ZodNullable<z.ZodDate>;
|
25
25
|
created_at: z.ZodDate;
|
26
26
|
updated_at: z.ZodDate;
|
27
|
-
}, "phoneNumber" | "secondaryPhoneNumber" | "fullName" | "profilePictureUrl" | "mail" | "gender" | "birthDate" | "instagram" | "dni" | "alternativeNames">, {
|
27
|
+
}, "username" | "password" | "phoneNumber" | "secondaryPhoneNumber" | "fullName" | "profilePictureUrl" | "mail" | "gender" | "birthDate" | "instagram" | "dni" | "alternativeNames">, {
|
28
28
|
comments: z.ZodOptional<z.ZodArray<z.ZodObject<Pick<{
|
29
29
|
id: z.ZodString;
|
30
30
|
content: z.ZodString;
|
@@ -89,6 +89,8 @@ export declare const createProfileSchema: z.ZodObject<{
|
|
89
89
|
}>>;
|
90
90
|
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
91
91
|
}>, "strip", z.ZodTypeAny, {
|
92
|
+
username: string | null;
|
93
|
+
password: string | null;
|
92
94
|
phoneNumber: string;
|
93
95
|
secondaryPhoneNumber: string | null;
|
94
96
|
fullName: string;
|
@@ -119,6 +121,8 @@ export declare const createProfileSchema: z.ZodObject<{
|
|
119
121
|
city: string;
|
120
122
|
} | undefined;
|
121
123
|
}, {
|
124
|
+
username: string | null;
|
125
|
+
password: string | null;
|
122
126
|
phoneNumber: string;
|
123
127
|
secondaryPhoneNumber: string | null;
|
124
128
|
fullName: string;
|
@@ -152,6 +156,8 @@ export declare const createProfileSchema: z.ZodObject<{
|
|
152
156
|
checkForSimilarity: z.ZodOptional<z.ZodBoolean>;
|
153
157
|
}, "strip", z.ZodTypeAny, {
|
154
158
|
profile: {
|
159
|
+
username: string | null;
|
160
|
+
password: string | null;
|
155
161
|
phoneNumber: string;
|
156
162
|
secondaryPhoneNumber: string | null;
|
157
163
|
fullName: string;
|
@@ -185,6 +191,8 @@ export declare const createProfileSchema: z.ZodObject<{
|
|
185
191
|
checkForSimilarity?: boolean | undefined;
|
186
192
|
}, {
|
187
193
|
profile: {
|
194
|
+
username: string | null;
|
195
|
+
password: string | null;
|
188
196
|
phoneNumber: string;
|
189
197
|
secondaryPhoneNumber: string | null;
|
190
198
|
fullName: string;
|
@@ -219,6 +227,8 @@ export declare const createProfileSchema: z.ZodObject<{
|
|
219
227
|
}>;
|
220
228
|
declare const CreateProfileDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
|
221
229
|
profile: z.ZodObject<{
|
230
|
+
username: z.ZodNullable<z.ZodString>;
|
231
|
+
password: z.ZodNullable<z.ZodString>;
|
222
232
|
phoneNumber: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
223
233
|
secondaryPhoneNumber: z.ZodEffects<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>, string | null, string | null>;
|
224
234
|
fullName: z.ZodString;
|
@@ -279,6 +289,8 @@ declare const CreateProfileDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<
|
|
279
289
|
}>>;
|
280
290
|
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
281
291
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
292
|
+
username: string | null;
|
293
|
+
password: string | null;
|
282
294
|
phoneNumber: string;
|
283
295
|
secondaryPhoneNumber: string | null;
|
284
296
|
fullName: string;
|
@@ -309,6 +321,8 @@ declare const CreateProfileDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<
|
|
309
321
|
city: string;
|
310
322
|
} | undefined;
|
311
323
|
}, {
|
324
|
+
username: string | null;
|
325
|
+
password: string | null;
|
312
326
|
phoneNumber: string;
|
313
327
|
secondaryPhoneNumber: string | null;
|
314
328
|
fullName: string;
|
@@ -342,6 +356,8 @@ declare const CreateProfileDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<
|
|
342
356
|
checkForSimilarity: z.ZodOptional<z.ZodBoolean>;
|
343
357
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
344
358
|
profile: {
|
359
|
+
username: string | null;
|
360
|
+
password: string | null;
|
345
361
|
phoneNumber: string;
|
346
362
|
secondaryPhoneNumber: string | null;
|
347
363
|
fullName: string;
|
@@ -375,6 +391,8 @@ declare const CreateProfileDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<
|
|
375
391
|
checkForSimilarity?: boolean | undefined;
|
376
392
|
}, {
|
377
393
|
profile: {
|
394
|
+
username: string | null;
|
395
|
+
password: string | null;
|
378
396
|
phoneNumber: string;
|
379
397
|
secondaryPhoneNumber: string | null;
|
380
398
|
fullName: string;
|
@@ -5,7 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
6
|
exports.CreateProfileResponseDto = exports.createProfileResponseSchema = exports.CreateProfileDto = exports.createProfileSchema = void 0;
|
7
7
|
const comment_dto_1 = require("../../comment/dto/comment.dto");
|
8
|
-
const
|
8
|
+
const location_schema_1 = require("../../schema/location.schema");
|
9
9
|
const profile_schema_1 = require("../../schema/profile.schema");
|
10
10
|
const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
|
11
11
|
const tag_dto_1 = require("../../tag/dto/tag.dto");
|
@@ -23,6 +23,8 @@ exports.createProfileSchema = zod_1.default.object({
|
|
23
23
|
phoneNumber: true,
|
24
24
|
profilePictureUrl: true,
|
25
25
|
secondaryPhoneNumber: true,
|
26
|
+
username: true,
|
27
|
+
password: true,
|
26
28
|
})
|
27
29
|
.merge(zod_1.default.object({
|
28
30
|
comments: zod_1.default
|
@@ -31,7 +33,7 @@ exports.createProfileSchema = zod_1.default.object({
|
|
31
33
|
isSolvable: true,
|
32
34
|
}))
|
33
35
|
.optional(),
|
34
|
-
residence:
|
36
|
+
residence: location_schema_1.locationSchema
|
35
37
|
.pick({
|
36
38
|
city: true,
|
37
39
|
country: true,
|
@@ -40,7 +42,7 @@ exports.createProfileSchema = zod_1.default.object({
|
|
40
42
|
state: true,
|
41
43
|
})
|
42
44
|
.optional(),
|
43
|
-
birth:
|
45
|
+
birth: location_schema_1.locationSchema
|
44
46
|
.pick({
|
45
47
|
city: true,
|
46
48
|
country: true,
|
@@ -4,15 +4,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
4
|
};
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
6
|
exports.FindByIdProfileResponseDto = exports.findByIdProfileResponseSchema = void 0;
|
7
|
-
const
|
7
|
+
const location_schema_1 = require("../../schema/location.schema");
|
8
8
|
const profile_schema_1 = require("../../schema/profile.schema");
|
9
9
|
const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
|
10
10
|
const tag_group_dto_1 = require("../../tag-group/dto/tag-group.dto");
|
11
11
|
const tag_dto_1 = require("../../tag/dto/tag.dto");
|
12
12
|
const zod_1 = __importDefault(require("zod"));
|
13
13
|
exports.findByIdProfileResponseSchema = profile_schema_1.profileSchema.merge(zod_1.default.object({
|
14
|
-
residenceLocation:
|
15
|
-
birthLocation:
|
14
|
+
residenceLocation: location_schema_1.locationSchema.nullable(),
|
15
|
+
birthLocation: location_schema_1.locationSchema.nullable(),
|
16
16
|
tags: zod_1.default.array(tag_dto_1.tagSchema.merge(zod_1.default.object({
|
17
17
|
group: tag_group_dto_1.tagGroupSchema.pick({
|
18
18
|
id: true,
|
@@ -1,5 +1,7 @@
|
|
1
1
|
import z from 'zod';
|
2
2
|
export declare const updateProfileSchema: z.ZodObject<z.objectUtil.extendShape<{
|
3
|
+
username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
4
|
+
password: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
3
5
|
phoneNumber: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
4
6
|
secondaryPhoneNumber: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>, string | null, string | null>>;
|
5
7
|
fullName: z.ZodOptional<z.ZodString>;
|
@@ -59,6 +61,8 @@ export declare const updateProfileSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
59
61
|
}>>;
|
60
62
|
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
61
63
|
}>, "strip", z.ZodTypeAny, {
|
64
|
+
username?: string | null | undefined;
|
65
|
+
password?: string | null | undefined;
|
62
66
|
phoneNumber?: string | undefined;
|
63
67
|
secondaryPhoneNumber?: string | null | undefined;
|
64
68
|
fullName?: string | undefined;
|
@@ -87,6 +91,8 @@ export declare const updateProfileSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
87
91
|
city: string;
|
88
92
|
} | undefined;
|
89
93
|
}, {
|
94
|
+
username?: string | null | undefined;
|
95
|
+
password?: string | null | undefined;
|
90
96
|
phoneNumber?: string | undefined;
|
91
97
|
secondaryPhoneNumber?: string | null | undefined;
|
92
98
|
fullName?: string | undefined;
|
@@ -116,6 +122,8 @@ export declare const updateProfileSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
116
122
|
} | undefined;
|
117
123
|
}>;
|
118
124
|
declare const UpdateProfileDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
|
125
|
+
username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
126
|
+
password: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
119
127
|
phoneNumber: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
120
128
|
secondaryPhoneNumber: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>, string | null, string | null>>;
|
121
129
|
fullName: z.ZodOptional<z.ZodString>;
|
@@ -168,6 +176,8 @@ declare const UpdateProfileDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<
|
|
168
176
|
}>>;
|
169
177
|
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
170
178
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
179
|
+
username?: string | null | undefined;
|
180
|
+
password?: string | null | undefined;
|
171
181
|
phoneNumber?: string | undefined;
|
172
182
|
secondaryPhoneNumber?: string | null | undefined;
|
173
183
|
fullName?: string | undefined;
|
@@ -196,6 +206,8 @@ declare const UpdateProfileDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<
|
|
196
206
|
city: string;
|
197
207
|
} | undefined;
|
198
208
|
}, {
|
209
|
+
username?: string | null | undefined;
|
210
|
+
password?: string | null | undefined;
|
199
211
|
phoneNumber?: string | undefined;
|
200
212
|
secondaryPhoneNumber?: string | null | undefined;
|
201
213
|
fullName?: string | undefined;
|
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
4
|
};
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
6
|
exports.UpdateProfileResponseDto = exports.updateProfileResponseSchema = exports.UpdateProfileDto = exports.updateProfileSchema = void 0;
|
7
|
-
const
|
7
|
+
const location_schema_1 = require("../../schema/location.schema");
|
8
8
|
const profile_schema_1 = require("../../schema/profile.schema");
|
9
9
|
const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
|
10
10
|
const tag_dto_1 = require("../../tag/dto/tag.dto");
|
@@ -23,10 +23,12 @@ exports.updateProfileSchema = profile_schema_1.profileSchema
|
|
23
23
|
secondaryPhoneNumber: true,
|
24
24
|
isInTrash: true,
|
25
25
|
movedToTrashDate: true,
|
26
|
+
username: true,
|
27
|
+
password: true,
|
26
28
|
})
|
27
29
|
.partial()
|
28
30
|
.merge(zod_1.default.object({
|
29
|
-
residence:
|
31
|
+
residence: location_schema_1.locationSchema
|
30
32
|
.pick({
|
31
33
|
city: true,
|
32
34
|
country: true,
|
@@ -35,7 +37,7 @@ exports.updateProfileSchema = profile_schema_1.profileSchema
|
|
35
37
|
state: true,
|
36
38
|
})
|
37
39
|
.optional(),
|
38
|
-
birth:
|
40
|
+
birth: location_schema_1.locationSchema
|
39
41
|
.pick({
|
40
42
|
city: true,
|
41
43
|
country: true,
|
@@ -14,5 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./location.schema"), exports);
|
17
18
|
__exportStar(require("./profile.schema"), exports);
|
18
19
|
//# sourceMappingURL=exports.js.map
|
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
4
|
};
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
6
|
exports.locationSchema = void 0;
|
7
|
-
const translate_1 = require("
|
7
|
+
const translate_1 = require("../i18n/translate");
|
8
8
|
const zod_1 = __importDefault(require("zod"));
|
9
9
|
exports.locationSchema = zod_1.default.object({
|
10
10
|
id: zod_1.default.string().uuid({
|
@@ -32,4 +32,4 @@ exports.locationSchema = zod_1.default.object({
|
|
32
32
|
created_at: zod_1.default.date(),
|
33
33
|
updated_at: zod_1.default.date(),
|
34
34
|
});
|
35
|
-
//# sourceMappingURL=location.
|
35
|
+
//# sourceMappingURL=location.schema.js.map
|
package/dist/types/schema.d.ts
CHANGED
@@ -2013,6 +2013,8 @@ export interface components {
|
|
2013
2013
|
phoneNumber: string;
|
2014
2014
|
profilePictureUrl: string | null;
|
2015
2015
|
secondaryPhoneNumber: string | null;
|
2016
|
+
username: string | null;
|
2017
|
+
password: string | null;
|
2016
2018
|
comments?: {
|
2017
2019
|
content: string;
|
2018
2020
|
isSolvable: boolean;
|
@@ -2148,6 +2150,8 @@ export interface components {
|
|
2148
2150
|
secondaryPhoneNumber?: string | null;
|
2149
2151
|
isInTrash?: boolean;
|
2150
2152
|
movedToTrashDate?: string | null;
|
2153
|
+
username?: string | null;
|
2154
|
+
password?: string | null;
|
2151
2155
|
residence?: {
|
2152
2156
|
city: string;
|
2153
2157
|
country: string;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "expo-backend-types",
|
3
|
-
"version": "0.30.0-EXPO-308-auth.
|
3
|
+
"version": "0.30.0-EXPO-308-auth.18",
|
4
4
|
"description": "",
|
5
5
|
"author": "Expo",
|
6
6
|
"private": false,
|
@@ -20,7 +20,7 @@
|
|
20
20
|
"postinstall": "patch-package",
|
21
21
|
"format": "prettier --write \"src/**/*.ts\" \"types/**/*.ts\"",
|
22
22
|
"check-format": "prettier --check \"src/**/*.ts\"",
|
23
|
-
"check-exports": "attw --pack .",
|
23
|
+
"check-exports": "attw --pack --profile node16 .",
|
24
24
|
"local-release": "changeset version && changeset publish",
|
25
25
|
"commit-schema": "git add ./types/schema.d.ts swagger.yaml && git commit -m \"Update schema\"",
|
26
26
|
"start": "npx prisma generate && npx nest start",
|
@@ -66,7 +66,7 @@
|
|
66
66
|
"date-fns": "^4.1.0",
|
67
67
|
"exceljs": "^4.4.0",
|
68
68
|
"fast-csv": "^5.0.2",
|
69
|
-
"@arethetypeswrong/cli": "^0.
|
69
|
+
"@arethetypeswrong/cli": "^0.17.3",
|
70
70
|
"@changesets/cli": "^2.27.7",
|
71
71
|
"@nestjs/cli": "^10.0.0",
|
72
72
|
"@nestjs/schematics": "^10.0.0",
|
@@ -109,6 +109,10 @@
|
|
109
109
|
"require": "./dist/types/index.js",
|
110
110
|
"default": "./dist/types/index.js",
|
111
111
|
"types": "./dist/types/index.d.ts"
|
112
|
+
},
|
113
|
+
"./schema": {
|
114
|
+
"default": "./dist/src/schema/exports.js",
|
115
|
+
"types": "./dist/src/schema/exports.d.ts"
|
112
116
|
}
|
113
117
|
},
|
114
118
|
"lint-staged": {
|
File without changes
|