expo-backend-types 0.31.0 → 0.32.0-EXPO-308-auth.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.
Files changed (91) hide show
  1. package/dist/src/exports.d.ts +3 -1
  2. package/dist/src/exports.js +3 -1
  3. package/dist/src/i18n/es.d.ts +20 -0
  4. package/dist/src/i18n/es.js +20 -0
  5. package/dist/src/i18n/es.js.map +1 -1
  6. package/dist/src/image/constants.d.ts +5 -0
  7. package/dist/src/image/constants.js +9 -0
  8. package/dist/src/location/dto/find-all-location.dto.js +2 -2
  9. package/dist/src/location/exports.d.ts +0 -1
  10. package/dist/src/location/exports.js +0 -1
  11. package/dist/src/message/dto/non-read-messages.dto.d.ts +2 -2
  12. package/dist/src/message/dto/non-read-messages.dto.js +2 -2
  13. package/dist/src/message/dto/send-message-to-phone.dto.d.ts +2 -2
  14. package/dist/src/message/dto/send-message-to-phone.dto.js +2 -2
  15. package/dist/src/mi-expo/dto/get-me.dto.d.ts +337 -0
  16. package/dist/src/mi-expo/dto/get-me.dto.js +16 -0
  17. package/dist/src/mi-expo/dto/login-with-phone.dto.d.ts +311 -0
  18. package/dist/src/mi-expo/dto/login-with-phone.dto.js +29 -0
  19. package/dist/src/mi-expo/dto/login.dto.d.ts +327 -0
  20. package/dist/src/mi-expo/dto/login.dto.js +31 -0
  21. package/dist/src/mi-expo/dto/update-me.dto.d.ts +352 -0
  22. package/dist/src/mi-expo/dto/update-me.dto.js +31 -0
  23. package/dist/src/mi-expo/exports.d.ts +4 -0
  24. package/dist/src/mi-expo/exports.js +21 -0
  25. package/dist/src/otp/constants.d.ts +2 -0
  26. package/dist/src/otp/constants.js +6 -0
  27. package/dist/src/otp/dto/send-otp.dto.d.ts +158 -0
  28. package/dist/src/otp/dto/send-otp.dto.js +35 -0
  29. package/dist/src/otp/dto/verify-otp.dto.d.ts +455 -0
  30. package/dist/src/otp/dto/verify-otp.dto.js +46 -0
  31. package/dist/src/otp/exports.d.ts +2 -0
  32. package/dist/src/otp/exports.js +19 -0
  33. package/dist/src/prisma/constants.d.ts +1 -0
  34. package/dist/src/prisma/constants.js +5 -0
  35. package/dist/src/profile/dto/create-profile.dto.d.ts +48 -14
  36. package/dist/src/profile/dto/create-profile.dto.js +9 -7
  37. package/dist/src/profile/dto/delete-profile.dto.d.ts +30 -6
  38. package/dist/src/profile/dto/delete-profile.dto.js +2 -2
  39. package/dist/src/profile/dto/find-all-profile.dto.d.ts +47 -7
  40. package/dist/src/profile/dto/find-all-profile.dto.js +2 -2
  41. package/dist/src/profile/dto/find-by-date-range-profile.dto.d.ts +75 -11
  42. package/dist/src/profile/dto/find-by-date-range-profile.dto.js +3 -3
  43. package/dist/src/profile/dto/find-by-id-profile.dto.d.ts +32 -13
  44. package/dist/src/profile/dto/find-by-id-profile.dto.js +7 -5
  45. package/dist/src/profile/dto/find-by-phone-number.dto.d.ts +30 -6
  46. package/dist/src/profile/dto/find-by-phone-number.dto.js +2 -2
  47. package/dist/src/profile/dto/find-by-tag-groups-profile.dto.d.ts +47 -7
  48. package/dist/src/profile/dto/find-by-tag-groups-profile.dto.js +2 -2
  49. package/dist/src/profile/dto/find-by-tags-profile.dto.d.ts +47 -7
  50. package/dist/src/profile/dto/find-by-tags-profile.dto.js +2 -2
  51. package/dist/src/profile/dto/find-trash.dto.d.ts +7 -3
  52. package/dist/src/profile/dto/find-trash.dto.js +2 -2
  53. package/dist/src/profile/dto/find-with-active-chat.dto.d.ts +47 -7
  54. package/dist/src/profile/dto/find-with-active-chat.dto.js +2 -2
  55. package/dist/src/profile/dto/profile.dto.d.ts +44 -30
  56. package/dist/src/profile/dto/profile.dto.js +6 -63
  57. package/dist/src/profile/dto/update-profile.dto.d.ts +54 -12
  58. package/dist/src/profile/dto/update-profile.dto.js +9 -6
  59. package/dist/src/schema/exports.d.ts +2 -0
  60. package/dist/src/schema/exports.js +19 -0
  61. package/dist/src/{location/dto/location.dto.js → schema/location.schema.js} +2 -2
  62. package/dist/src/schema/profile.schema.d.ts +74 -0
  63. package/dist/src/schema/profile.schema.js +133 -0
  64. package/dist/src/shared/dto-modification/zod-without-dates.d.ts +2 -4
  65. package/dist/src/shared/dto-modification/zod-without-dates.js +8 -0
  66. package/dist/src/shared/dto-modification/zod-without-dates.js.map +1 -1
  67. package/dist/src/tag/dto/massive-allocation.dto.d.ts +47 -7
  68. package/dist/src/tag/dto/massive-allocation.dto.js +3 -3
  69. package/dist/src/tag/dto/massive-deallocation.dto.d.ts +47 -7
  70. package/dist/src/tag/dto/massive-deallocation.dto.js +3 -3
  71. package/dist/src/webhook/constants.d.ts +1 -0
  72. package/dist/src/webhook/constants.js +5 -0
  73. package/dist/types/prisma-schema/edge.js +38 -24
  74. package/dist/types/prisma-schema/index-browser.js +18 -9
  75. package/dist/types/prisma-schema/index.d.ts +3871 -510
  76. package/dist/types/prisma-schema/index.js +38 -24
  77. package/dist/types/prisma-schema/libquery_engine-debian-openssl-3.0.x.so.node +0 -0
  78. package/dist/types/prisma-schema/package.json +8 -2
  79. package/dist/types/prisma-schema/runtime/edge-esm.js +18 -18
  80. package/dist/types/prisma-schema/runtime/edge.js +18 -18
  81. package/dist/types/prisma-schema/runtime/index-browser.d.ts +3 -1
  82. package/dist/types/prisma-schema/runtime/index-browser.js +3 -3
  83. package/dist/types/prisma-schema/runtime/library.d.ts +205 -153
  84. package/dist/types/prisma-schema/runtime/library.js +55 -55
  85. package/dist/types/prisma-schema/runtime/react-native.js +26 -26
  86. package/dist/types/prisma-schema/runtime/wasm.js +17 -17
  87. package/dist/types/prisma-schema/schema.prisma +22 -1
  88. package/dist/types/prisma-schema/wasm.js +18 -9
  89. package/dist/types/schema.d.ts +510 -6
  90. package/package.json +32 -38
  91. /package/dist/src/{location/dto/location.dto.d.ts → schema/location.schema.d.ts} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-backend-types",
3
- "version": "0.31.0",
3
+ "version": "0.32.0-EXPO-308-auth.1",
4
4
  "description": "",
5
5
  "author": "Expo",
6
6
  "private": false,
@@ -8,6 +8,8 @@
8
8
  "files": [
9
9
  "dist/types",
10
10
  "dist/src/**/*.dto.{js,d.ts,ts}",
11
+ "dist/src/**/*.schema.{js,d.ts,ts}",
12
+ "dist/src/**/constants.{js,d.ts,ts}",
11
13
  "dist/src/**/exports.{js,d.ts,ts}",
12
14
  "dist/src/shared/dto-modification",
13
15
  "dist/src/i18n"
@@ -18,19 +20,14 @@
18
20
  "postinstall": "patch-package",
19
21
  "format": "prettier --write \"src/**/*.ts\" \"types/**/*.ts\"",
20
22
  "check-format": "prettier --check \"src/**/*.ts\"",
21
- "check-exports": "attw --pack .",
23
+ "check-exports": "attw --pack --profile node16 .",
22
24
  "local-release": "changeset version && changeset publish",
23
25
  "commit-schema": "git add ./types/schema.d.ts swagger.yaml && git commit -m \"Update schema\"",
24
26
  "start": "npx prisma generate && npx nest start",
25
- "dev": "npx prisma generate && nest start --watch",
27
+ "dev": "rm -r ./dist && npx prisma generate && nest start --watch",
26
28
  "start:debug": "nest start --debug --watch",
27
29
  "start:prod": "node dist/src/main",
28
30
  "lint": "eslint \"{src,apps,libs,test,types}/**/*.ts\" --fix",
29
- "test": "jest",
30
- "test:watch": "jest --watch",
31
- "test:cov": "jest --coverage",
32
- "test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
33
- "test:e2e": "jest --config ./test/jest-e2e.json",
34
31
  "generate-ts-schema": "npx ts-node -r tsconfig-paths/register src/main.swagger.ts && npx openapi-typescript ./swagger.yaml -o ./types/schema.ts",
35
32
  "prepare": "husky",
36
33
  "prepublishOnly": "npm run ci"
@@ -38,64 +35,57 @@
38
35
  "dependencies": {
39
36
  "@anatine/zod-nestjs": "^2.0.9",
40
37
  "@anatine/zod-openapi": "^2.2.6",
41
- "@nestjs/common": "^10.0.0",
42
- "@nestjs/config": "^3.2.3",
43
- "@nestjs/core": "^10.0.0",
44
- "@nestjs/jwt": "^10.2.0",
45
- "@nestjs/platform-express": "^10.0.0",
46
- "@nestjs/swagger": "^7.3.1",
47
- "@prisma/client": "^5.22.0",
48
- "bcrypt": "^5.1.1",
49
- "body-parser": "^1.20.3",
50
- "class-transformer": "^0.5.1",
51
- "class-validator": "^0.14.1",
52
- "country-state-city": "^3.2.1",
53
- "date-fns": "^4.1.0",
54
- "exceljs": "^4.4.0",
55
- "fast-csv": "^5.0.2",
56
38
  "i18n-js": "^4.4.3",
57
- "json-to-pretty-yaml": "^1.2.2",
58
- "multer": "^1.4.5-lts.1",
59
- "jszip": "^3.10.1",
60
- "openapi3-ts": "^4.4.0",
61
39
  "patch-package": "^8.0.0",
62
- "reflect-metadata": "^0.2.0",
63
- "string-comparison": "^1.3.0",
64
40
  "zod": "^3.23.8"
65
41
  },
66
42
  "devDependencies": {
67
- "@arethetypeswrong/cli": "^0.15.4",
43
+ "@arethetypeswrong/cli": "^0.17.3",
68
44
  "@changesets/cli": "^2.27.7",
69
45
  "@nestjs/cli": "^10.0.0",
46
+ "@nestjs/common": "^10.0.0",
47
+ "@nestjs/config": "^3.2.3",
48
+ "@nestjs/core": "^10.0.0",
49
+ "@nestjs/jwt": "^10.2.0",
50
+ "@nestjs/platform-express": "^10.0.0",
70
51
  "@nestjs/schematics": "^10.0.0",
52
+ "@nestjs/swagger": "^7.3.1",
71
53
  "@nestjs/testing": "^10.0.0",
72
- "@openapitools/openapi-generator-cli": "^2.13.4",
54
+ "@prisma/client": "^6.4.1",
73
55
  "@types/bcrypt": "^5.0.2",
74
56
  "@types/express": "^4.17.17",
75
- "@types/jest": "^29.5.2",
76
57
  "@types/json-to-pretty-yaml": "^1.2.1",
77
58
  "@types/luxon": "^3.4.2",
78
59
  "@types/multer": "^1.4.12",
79
60
  "@types/node": "^20.3.1",
80
- "@types/supertest": "^6.0.0",
81
61
  "@typescript-eslint/eslint-plugin": "^8.8.0",
82
62
  "@typescript-eslint/parser": "^8.8.0",
63
+ "bcrypt": "^5.1.1",
64
+ "body-parser": "^1.20.3",
65
+ "class-transformer": "^0.5.1",
66
+ "class-validator": "^0.14.1",
67
+ "country-state-city": "^3.2.1",
68
+ "date-fns": "^4.1.0",
83
69
  "eslint": "^9.11.1",
84
70
  "eslint-config-prettier": "^9.0.0",
85
71
  "eslint-plugin-prettier": "^5.0.0",
86
72
  "eslint-plugin-unused-imports": "^4.1.4",
73
+ "exceljs": "^4.4.0",
74
+ "fast-csv": "^5.0.2",
87
75
  "globals": "^15.10.0",
88
76
  "husky": "^9.0.11",
89
- "jest": "^29.5.0",
77
+ "json-to-pretty-yaml": "^1.2.2",
78
+ "jszip": "^3.10.1",
90
79
  "lint-staged": "^15.2.5",
91
80
  "luxon": "^3.5.0",
81
+ "multer": "^1.4.5-lts.1",
92
82
  "openapi-typescript": "^7.0.0-rc.0",
83
+ "openapi3-ts": "^4.4.0",
93
84
  "prettier": "^3.0.0",
94
- "prisma": "^5.22.0",
85
+ "prisma": "^6.3.1",
86
+ "reflect-metadata": "^0.2.0",
95
87
  "source-map-support": "^0.5.21",
96
- "supertest": "^6.3.3",
97
- "ts-jest": "^29.1.0",
98
- "ts-loader": "^9.4.3",
88
+ "string-comparison": "^1.3.0",
99
89
  "ts-node": "^10.9.2",
100
90
  "tsconfig-paths": "^4.2.0",
101
91
  "typescript": "^5.4.5"
@@ -107,6 +97,10 @@
107
97
  "require": "./dist/types/index.js",
108
98
  "default": "./dist/types/index.js",
109
99
  "types": "./dist/types/index.d.ts"
100
+ },
101
+ "./schema": {
102
+ "default": "./dist/src/schema/exports.js",
103
+ "types": "./dist/src/schema/exports.d.ts"
110
104
  }
111
105
  },
112
106
  "lint-staged": {