expo-backend-types 0.30.0-EXPO-308-auth.13 → 0.30.0-EXPO-308-auth.14

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.
Files changed (60) hide show
  1. package/dist/src/auth/dto/login-mi-expo.dto.js +2 -2
  2. package/dist/src/exports.d.ts +0 -1
  3. package/dist/src/exports.js +0 -1
  4. package/dist/src/message/dto/non-read-messages.dto.js +2 -2
  5. package/dist/src/message/dto/send-message-to-phone.dto.js +2 -2
  6. package/dist/src/otp/dto/send-otp.dto.js +2 -2
  7. package/dist/src/otp/dto/verify-otp.dto.js +3 -3
  8. package/dist/src/profile/dto/create-profile.dto.d.ts +82 -468
  9. package/dist/src/profile/dto/create-profile.dto.js +4 -80
  10. package/dist/src/profile/dto/delete-profile.dto.d.ts +0 -73
  11. package/dist/src/profile/dto/delete-profile.dto.js +3 -4
  12. package/dist/src/profile/dto/find-all-profile.dto.d.ts +39 -266
  13. package/dist/src/profile/dto/find-all-profile.dto.js +3 -19
  14. package/dist/src/profile/dto/find-by-date-range-profile.dto.d.ts +79 -440
  15. package/dist/src/profile/dto/find-by-date-range-profile.dto.js +4 -26
  16. package/dist/src/profile/dto/find-by-id-profile.dto.d.ts +58 -309
  17. package/dist/src/profile/dto/find-by-id-profile.dto.js +3 -21
  18. package/dist/src/profile/dto/find-by-phone-number.dto.d.ts +0 -73
  19. package/dist/src/profile/dto/find-by-phone-number.dto.js +3 -4
  20. package/dist/src/profile/dto/find-by-tag-groups-profile.dto.d.ts +35 -223
  21. package/dist/src/profile/dto/find-by-tag-groups-profile.dto.js +3 -13
  22. package/dist/src/profile/dto/find-by-tags-profile.dto.d.ts +38 -257
  23. package/dist/src/profile/dto/find-by-tags-profile.dto.js +3 -18
  24. package/dist/src/profile/dto/find-trash.dto.d.ts +11 -75
  25. package/dist/src/profile/dto/find-trash.dto.js +3 -18
  26. package/dist/src/profile/dto/find-with-active-chat.dto.d.ts +58 -443
  27. package/dist/src/profile/dto/find-with-active-chat.dto.js +3 -20
  28. package/dist/src/profile/dto/profile.dto.js +2 -2
  29. package/dist/src/profile/dto/update-profile.dto.d.ts +60 -244
  30. package/dist/src/profile/dto/update-profile.dto.js +4 -48
  31. package/dist/src/profile/exports.d.ts +12 -12
  32. package/dist/src/profile/exports.js +12 -12
  33. package/dist/src/profile/schema/create-profile.schema.d.ts +405 -0
  34. package/dist/src/profile/schema/create-profile.schema.js +83 -0
  35. package/dist/src/profile/schema/delete-profile.schema.d.ts +73 -0
  36. package/dist/src/profile/schema/delete-profile.schema.js +6 -0
  37. package/dist/src/profile/schema/find-all-profile.schema.d.ts +227 -0
  38. package/dist/src/profile/schema/find-all-profile.schema.js +21 -0
  39. package/dist/src/profile/schema/find-by-date-range-profile.schema.d.ts +361 -0
  40. package/dist/src/profile/schema/find-by-date-range-profile.schema.js +27 -0
  41. package/dist/src/profile/schema/find-by-id-profile.schema.d.ts +251 -0
  42. package/dist/src/profile/schema/find-by-id-profile.schema.js +23 -0
  43. package/dist/src/profile/schema/find-by-phone-number.schema.d.ts +73 -0
  44. package/dist/src/profile/schema/find-by-phone-number.schema.js +6 -0
  45. package/dist/src/profile/schema/find-by-tag-groups-profile.schema.d.ts +188 -0
  46. package/dist/src/profile/schema/find-by-tag-groups-profile.schema.js +15 -0
  47. package/dist/src/profile/schema/find-by-tags-profile.schema.d.ts +219 -0
  48. package/dist/src/profile/schema/find-by-tags-profile.schema.js +20 -0
  49. package/dist/src/profile/schema/find-trash.schema.d.ts +64 -0
  50. package/dist/src/profile/schema/find-trash.schema.js +20 -0
  51. package/dist/src/profile/schema/find-with-active-chat.schema.d.ts +385 -0
  52. package/dist/src/profile/schema/find-with-active-chat.schema.js +22 -0
  53. package/dist/src/{prisma/dtos.dto.js → profile/schema/profile.schema.js} +2 -2
  54. package/dist/src/profile/schema/update-profile.schema.d.ts +196 -0
  55. package/dist/src/profile/schema/update-profile.schema.js +51 -0
  56. package/dist/src/tag/dto/massive-allocation.dto.js +3 -3
  57. package/dist/src/tag/dto/massive-deallocation.dto.js +3 -3
  58. package/dist/types/schema.d.ts +4 -0
  59. package/package.json +2 -5
  60. /package/dist/src/{prisma/dtos.dto.d.ts → profile/schema/profile.schema.d.ts} +0 -0
@@ -5,7 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.LoginMiExpoResponseDto = exports.loginMiExpoResponseSchema = exports.LoginMiExpoDto = exports.loginMiExpoSchema = void 0;
7
7
  const account_dto_1 = require("../../account/dto/account.dto");
8
- const dtos_dto_1 = require("../../prisma/dtos.dto");
8
+ const profile_schema_1 = require("../../profile/schema/profile.schema");
9
9
  const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
10
10
  const zod_1 = __importDefault(require("zod"));
11
11
  exports.loginMiExpoSchema = account_dto_1.accountSchema.pick({
@@ -16,7 +16,7 @@ class LoginMiExpoDto extends (0, create_zod_dto_without_date_1.createZodDtoWitho
16
16
  }
17
17
  exports.LoginMiExpoDto = LoginMiExpoDto;
18
18
  exports.loginMiExpoResponseSchema = zod_1.default.object({
19
- user: dtos_dto_1.profileSchema.omit({
19
+ user: profile_schema_1.profileSchema.omit({
20
20
  password: true,
21
21
  }),
22
22
  backendTokens: zod_1.default.object({
@@ -7,7 +7,6 @@ export * from './event/exports';
7
7
  export * from './location/exports';
8
8
  export * from './message/exports';
9
9
  export * from './otp/exports';
10
- export * from './prisma/dtos.dto';
11
10
  export * from './profile/exports';
12
11
  export * from './shared/dto-modification/zod-without-dates';
13
12
  export * from './tag-group/exports';
@@ -23,7 +23,6 @@ __exportStar(require("./event/exports"), exports);
23
23
  __exportStar(require("./location/exports"), exports);
24
24
  __exportStar(require("./message/exports"), exports);
25
25
  __exportStar(require("./otp/exports"), exports);
26
- __exportStar(require("./prisma/dtos.dto"), exports);
27
26
  __exportStar(require("./profile/exports"), exports);
28
27
  __exportStar(require("./shared/dto-modification/zod-without-dates"), exports);
29
28
  __exportStar(require("./tag-group/exports"), exports);
@@ -4,12 +4,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.NonReadMessagesDto = exports.nonReadMessagesSchema = void 0;
7
- const dtos_dto_1 = require("../../prisma/dtos.dto");
7
+ const profile_schema_1 = require("../../profile/schema/profile.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
  exports.nonReadMessagesSchema = zod_1.default.object({
11
11
  messages: zod_1.default.array(zod_1.default.object({
12
- profilePhoneNumber: dtos_dto_1.profileSchema.shape.phoneNumber,
12
+ profilePhoneNumber: profile_schema_1.profileSchema.shape.phoneNumber,
13
13
  _count: zod_1.default.object({
14
14
  id: zod_1.default.number(),
15
15
  }),
@@ -4,11 +4,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.SendMessageToPhoneResponseDto = exports.sendMessageToPhoneResponseSchema = exports.SendMessageToPhoneDto = exports.sendMessageToPhoneSchema = void 0;
7
- const dtos_dto_1 = require("../../prisma/dtos.dto");
7
+ const profile_schema_1 = require("../../profile/schema/profile.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
  exports.sendMessageToPhoneSchema = zod_1.default.object({
11
- phone: dtos_dto_1.profileSchema.shape.phoneNumber,
11
+ phone: profile_schema_1.profileSchema.shape.phoneNumber,
12
12
  message: zod_1.default.string(),
13
13
  });
14
14
  class SendMessageToPhoneDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.sendMessageToPhoneSchema) {
@@ -4,11 +4,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.SendOtpResponseDto = exports.sendOtpResponseSchema = exports.discriminatedResponseSchema = exports.SendOtpDto = exports.sendOtpSchema = void 0;
7
- const dtos_dto_1 = require("../../prisma/dtos.dto");
7
+ const profile_schema_1 = require("../../profile/schema/profile.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
  exports.sendOtpSchema = zod_1.default.object({
11
- phoneNumber: dtos_dto_1.profileSchema.shape.phoneNumber,
11
+ phoneNumber: profile_schema_1.profileSchema.shape.phoneNumber,
12
12
  });
13
13
  class SendOtpDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.sendOtpSchema) {
14
14
  }
@@ -6,11 +6,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.VerifyOtpResponseDto = exports.verifyOtpResponseSchema = exports.VerifyOtpDto = exports.verifyOtpSchema = void 0;
7
7
  const translate_1 = require("../../i18n/translate");
8
8
  const constants_1 = require("../constants");
9
- const dtos_dto_1 = require("../../prisma/dtos.dto");
9
+ const profile_schema_1 = require("../../profile/schema/profile.schema");
10
10
  const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
11
11
  const zod_1 = __importDefault(require("zod"));
12
12
  exports.verifyOtpSchema = zod_1.default.object({
13
- phoneNumber: dtos_dto_1.profileSchema.shape.phoneNumber,
13
+ phoneNumber: profile_schema_1.profileSchema.shape.phoneNumber,
14
14
  code: zod_1.default.string().length(constants_1.OTP_LENGTH, {
15
15
  message: (0, translate_1.translate)('route.otp.verify.error-format'),
16
16
  }),
@@ -20,7 +20,7 @@ class VerifyOtpDto extends (0, create_zod_dto_without_date_1.createZodDtoWithout
20
20
  exports.VerifyOtpDto = VerifyOtpDto;
21
21
  exports.verifyOtpResponseSchema = zod_1.default.object({
22
22
  success: zod_1.default.boolean(),
23
- profile: dtos_dto_1.profileSchema,
23
+ profile: profile_schema_1.profileSchema,
24
24
  });
25
25
  class VerifyOtpResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.verifyOtpResponseSchema) {
26
26
  }