@koalarx/nest 1.18.0 → 1.18.2

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 (206) hide show
  1. package/{core → apps/koala-nest/src/core}/database/prisma-client-with-custom-transaction.interface.d.ts +1 -1
  2. package/{core → apps/koala-nest/src/core}/database/prisma-transactional-client.d.ts +2 -1
  3. package/{core → apps/koala-nest/src/core}/database/prisma.service.d.ts +3 -2
  4. package/{core → apps/koala-nest/src/core}/database/prisma.service.js +2 -10
  5. package/{filters → apps/koala-nest/src/filters}/prisma-validation-exception.filter.d.ts +1 -1
  6. package/{filters → apps/koala-nest/src/filters}/prisma-validation-exception.filter.js +1 -1
  7. package/{test → apps/koala-nest/src/test}/utils/create-e2e-database.js +1 -1
  8. package/{test → apps/koala-nest/src/test}/utils/drop-e2e-database.js +2 -2
  9. package/package.json +1 -1
  10. package/prisma/generated/client.d.ts +11 -0
  11. package/prisma/generated/client.js +23 -0
  12. package/prisma/generated/commonInputTypes.d.ts +143 -0
  13. package/prisma/generated/commonInputTypes.js +2 -0
  14. package/prisma/generated/enums.d.ts +1 -0
  15. package/prisma/generated/enums.js +2 -0
  16. package/prisma/generated/internal/class.d.ts +41 -0
  17. package/prisma/generated/internal/class.js +32 -0
  18. package/prisma/generated/internal/prismaNamespace.d.ts +516 -0
  19. package/prisma/generated/internal/prismaNamespace.js +63 -0
  20. package/prisma/generated/models/Person.d.ts +641 -0
  21. package/prisma/generated/models/Person.js +2 -0
  22. package/prisma/generated/models/PersonAddress.d.ts +436 -0
  23. package/prisma/generated/models/PersonAddress.js +2 -0
  24. package/prisma/generated/models/PersonPhone.d.ts +502 -0
  25. package/prisma/generated/models/PersonPhone.js +2 -0
  26. package/prisma/generated/models.d.ts +4 -0
  27. package/prisma/generated/models.js +2 -0
  28. package/tsconfig.lib.tsbuildinfo +1 -1
  29. /package/{core → apps/koala-nest/src/core}/backgroud-services/cron-service/cron-job.handler.base.d.ts +0 -0
  30. /package/{core → apps/koala-nest/src/core}/backgroud-services/cron-service/cron-job.handler.base.js +0 -0
  31. /package/{core → apps/koala-nest/src/core}/backgroud-services/event-service/event-class.d.ts +0 -0
  32. /package/{core → apps/koala-nest/src/core}/backgroud-services/event-service/event-class.js +0 -0
  33. /package/{core → apps/koala-nest/src/core}/backgroud-services/event-service/event-handler.base.d.ts +0 -0
  34. /package/{core → apps/koala-nest/src/core}/backgroud-services/event-service/event-handler.base.js +0 -0
  35. /package/{core → apps/koala-nest/src/core}/backgroud-services/event-service/event-is-trigger.d.ts +0 -0
  36. /package/{core → apps/koala-nest/src/core}/backgroud-services/event-service/event-is-trigger.js +0 -0
  37. /package/{core → apps/koala-nest/src/core}/backgroud-services/event-service/event-job.d.ts +0 -0
  38. /package/{core → apps/koala-nest/src/core}/backgroud-services/event-service/event-job.js +0 -0
  39. /package/{core → apps/koala-nest/src/core}/backgroud-services/event-service/event-queue.d.ts +0 -0
  40. /package/{core → apps/koala-nest/src/core}/backgroud-services/event-service/event-queue.js +0 -0
  41. /package/{core → apps/koala-nest/src/core}/constants/query-params.d.ts +0 -0
  42. /package/{core → apps/koala-nest/src/core}/constants/query-params.js +0 -0
  43. /package/{core → apps/koala-nest/src/core}/controllers/base.controller.d.ts +0 -0
  44. /package/{core → apps/koala-nest/src/core}/controllers/base.controller.js +0 -0
  45. /package/{core → apps/koala-nest/src/core}/controllers/controller.decorator.d.ts +0 -0
  46. /package/{core → apps/koala-nest/src/core}/controllers/controller.decorator.js +0 -0
  47. /package/{core → apps/koala-nest/src/core}/controllers/created-registre-response.base.d.ts +0 -0
  48. /package/{core → apps/koala-nest/src/core}/controllers/created-registre-response.base.js +0 -0
  49. /package/{core → apps/koala-nest/src/core}/controllers/list-response.base.d.ts +0 -0
  50. /package/{core → apps/koala-nest/src/core}/controllers/list-response.base.js +0 -0
  51. /package/{core → apps/koala-nest/src/core}/controllers/pagination.request.d.ts +0 -0
  52. /package/{core → apps/koala-nest/src/core}/controllers/pagination.request.js +0 -0
  53. /package/{core → apps/koala-nest/src/core}/controllers/router-config.base.d.ts +0 -0
  54. /package/{core → apps/koala-nest/src/core}/controllers/router-config.base.js +0 -0
  55. /package/{core → apps/koala-nest/src/core}/controllers/schemas/boolean.schema.d.ts +0 -0
  56. /package/{core → apps/koala-nest/src/core}/controllers/schemas/boolean.schema.js +0 -0
  57. /package/{core → apps/koala-nest/src/core}/controllers/schemas/document-number.schema.d.ts +0 -0
  58. /package/{core → apps/koala-nest/src/core}/controllers/schemas/document-number.schema.js +0 -0
  59. /package/{core → apps/koala-nest/src/core}/controllers/schemas/email.schema.d.ts +0 -0
  60. /package/{core → apps/koala-nest/src/core}/controllers/schemas/email.schema.js +0 -0
  61. /package/{core → apps/koala-nest/src/core}/controllers/schemas/list-query.schema.d.ts +0 -0
  62. /package/{core → apps/koala-nest/src/core}/controllers/schemas/list-query.schema.js +0 -0
  63. /package/{core → apps/koala-nest/src/core}/controllers/schemas/native-enum.schema.d.ts +0 -0
  64. /package/{core → apps/koala-nest/src/core}/controllers/schemas/native-enum.schema.js +0 -0
  65. /package/{core → apps/koala-nest/src/core}/controllers/schemas/set-mask-document-number.schema.d.ts +0 -0
  66. /package/{core → apps/koala-nest/src/core}/controllers/schemas/set-mask-document-number.schema.js +0 -0
  67. /package/{core → apps/koala-nest/src/core}/database/entity.base.d.ts +0 -0
  68. /package/{core → apps/koala-nest/src/core}/database/entity.base.js +0 -0
  69. /package/{core → apps/koala-nest/src/core}/database/entity.decorator.d.ts +0 -0
  70. /package/{core → apps/koala-nest/src/core}/database/entity.decorator.js +0 -0
  71. /package/{core → apps/koala-nest/src/core}/database/prisma-client-with-custom-transaction.interface.js +0 -0
  72. /package/{core → apps/koala-nest/src/core}/database/prisma-transactional-client.js +0 -0
  73. /package/{core → apps/koala-nest/src/core}/database/repository.base.d.ts +0 -0
  74. /package/{core → apps/koala-nest/src/core}/database/repository.base.js +0 -0
  75. /package/{core → apps/koala-nest/src/core}/dtos/pagination.dto.d.ts +0 -0
  76. /package/{core → apps/koala-nest/src/core}/dtos/pagination.dto.js +0 -0
  77. /package/{core → apps/koala-nest/src/core}/errors/bad-request.error.d.ts +0 -0
  78. /package/{core → apps/koala-nest/src/core}/errors/bad-request.error.js +0 -0
  79. /package/{core → apps/koala-nest/src/core}/errors/conflict.error.d.ts +0 -0
  80. /package/{core → apps/koala-nest/src/core}/errors/conflict.error.js +0 -0
  81. /package/{core → apps/koala-nest/src/core}/errors/error.base.d.ts +0 -0
  82. /package/{core → apps/koala-nest/src/core}/errors/error.base.js +0 -0
  83. /package/{core → apps/koala-nest/src/core}/errors/no-content.error.d.ts +0 -0
  84. /package/{core → apps/koala-nest/src/core}/errors/no-content.error.js +0 -0
  85. /package/{core → apps/koala-nest/src/core}/errors/not-allowed.error.d.ts +0 -0
  86. /package/{core → apps/koala-nest/src/core}/errors/not-allowed.error.js +0 -0
  87. /package/{core → apps/koala-nest/src/core}/errors/resource-not-found.error.d.ts +0 -0
  88. /package/{core → apps/koala-nest/src/core}/errors/resource-not-found.error.js +0 -0
  89. /package/{core → apps/koala-nest/src/core}/errors/use-case-error.d.ts +0 -0
  90. /package/{core → apps/koala-nest/src/core}/errors/use-case-error.js +0 -0
  91. /package/{core → apps/koala-nest/src/core}/errors/user-already-exist.error.d.ts +0 -0
  92. /package/{core → apps/koala-nest/src/core}/errors/user-already-exist.error.js +0 -0
  93. /package/{core → apps/koala-nest/src/core}/errors/wrong-credentials.error.d.ts +0 -0
  94. /package/{core → apps/koala-nest/src/core}/errors/wrong-credentials.error.js +0 -0
  95. /package/{core → apps/koala-nest/src/core}/health-check/health-check.controller.d.ts +0 -0
  96. /package/{core → apps/koala-nest/src/core}/health-check/health-check.controller.js +0 -0
  97. /package/{core → apps/koala-nest/src/core}/health-check/health-check.module.d.ts +0 -0
  98. /package/{core → apps/koala-nest/src/core}/health-check/health-check.module.js +0 -0
  99. /package/{core → apps/koala-nest/src/core}/index.d.ts +0 -0
  100. /package/{core → apps/koala-nest/src/core}/index.js +0 -0
  101. /package/{core → apps/koala-nest/src/core}/koala-app.d.ts +0 -0
  102. /package/{core → apps/koala-nest/src/core}/koala-app.js +0 -0
  103. /package/{core → apps/koala-nest/src/core}/koala-global-vars.d.ts +0 -0
  104. /package/{core → apps/koala-nest/src/core}/koala-global-vars.js +0 -0
  105. /package/{core → apps/koala-nest/src/core}/koala-nest-database.module.d.ts +0 -0
  106. /package/{core → apps/koala-nest/src/core}/koala-nest-database.module.js +0 -0
  107. /package/{core → apps/koala-nest/src/core}/koala-nest-http.module.d.ts +0 -0
  108. /package/{core → apps/koala-nest/src/core}/koala-nest-http.module.js +0 -0
  109. /package/{core → apps/koala-nest/src/core}/koala-nest.module.d.ts +0 -0
  110. /package/{core → apps/koala-nest/src/core}/koala-nest.module.js +0 -0
  111. /package/{core → apps/koala-nest/src/core}/mapping/auto-mapping-class-context.d.ts +0 -0
  112. /package/{core → apps/koala-nest/src/core}/mapping/auto-mapping-class-context.js +0 -0
  113. /package/{core → apps/koala-nest/src/core}/mapping/auto-mapping-context.d.ts +0 -0
  114. /package/{core → apps/koala-nest/src/core}/mapping/auto-mapping-context.js +0 -0
  115. /package/{core → apps/koala-nest/src/core}/mapping/auto-mapping-list.d.ts +0 -0
  116. /package/{core → apps/koala-nest/src/core}/mapping/auto-mapping-list.js +0 -0
  117. /package/{core → apps/koala-nest/src/core}/mapping/auto-mapping-profile.d.ts +0 -0
  118. /package/{core → apps/koala-nest/src/core}/mapping/auto-mapping-profile.js +0 -0
  119. /package/{core → apps/koala-nest/src/core}/mapping/auto-mapping.decorator.d.ts +0 -0
  120. /package/{core → apps/koala-nest/src/core}/mapping/auto-mapping.decorator.js +0 -0
  121. /package/{core → apps/koala-nest/src/core}/mapping/auto-mapping.module.d.ts +0 -0
  122. /package/{core → apps/koala-nest/src/core}/mapping/auto-mapping.module.js +0 -0
  123. /package/{core → apps/koala-nest/src/core}/mapping/auto-mapping.service.d.ts +0 -0
  124. /package/{core → apps/koala-nest/src/core}/mapping/auto-mapping.service.js +0 -0
  125. /package/{core → apps/koala-nest/src/core}/mapping/create-map.d.ts +0 -0
  126. /package/{core → apps/koala-nest/src/core}/mapping/create-map.js +0 -0
  127. /package/{core → apps/koala-nest/src/core}/mapping/for-member.d.ts +0 -0
  128. /package/{core → apps/koala-nest/src/core}/mapping/for-member.js +0 -0
  129. /package/{core → apps/koala-nest/src/core}/request-overflow/request-handler.base.d.ts +0 -0
  130. /package/{core → apps/koala-nest/src/core}/request-overflow/request-handler.base.js +0 -0
  131. /package/{core → apps/koala-nest/src/core}/request-overflow/request-result.d.ts +0 -0
  132. /package/{core → apps/koala-nest/src/core}/request-overflow/request-result.js +0 -0
  133. /package/{core → apps/koala-nest/src/core}/request-overflow/request-validator.base.d.ts +0 -0
  134. /package/{core → apps/koala-nest/src/core}/request-overflow/request-validator.base.js +0 -0
  135. /package/{core → apps/koala-nest/src/core}/security/strategies/api-key.strategy.d.ts +0 -0
  136. /package/{core → apps/koala-nest/src/core}/security/strategies/api-key.strategy.js +0 -0
  137. /package/{core → apps/koala-nest/src/core}/utils/assing-object.d.ts +0 -0
  138. /package/{core → apps/koala-nest/src/core}/utils/assing-object.js +0 -0
  139. /package/{core → apps/koala-nest/src/core}/utils/env.config.d.ts +0 -0
  140. /package/{core → apps/koala-nest/src/core}/utils/env.config.js +0 -0
  141. /package/{core → apps/koala-nest/src/core}/utils/filter-request-params.d.ts +0 -0
  142. /package/{core → apps/koala-nest/src/core}/utils/filter-request-params.js +0 -0
  143. /package/{core → apps/koala-nest/src/core}/utils/find-on-list.d.ts +0 -0
  144. /package/{core → apps/koala-nest/src/core}/utils/find-on-list.js +0 -0
  145. /package/{core → apps/koala-nest/src/core}/utils/instanciate-class-with-dependencies-injection.d.ts +0 -0
  146. /package/{core → apps/koala-nest/src/core}/utils/instanciate-class-with-dependencies-injection.js +0 -0
  147. /package/{core → apps/koala-nest/src/core}/utils/interfaces/icomparable.d.ts +0 -0
  148. /package/{core → apps/koala-nest/src/core}/utils/interfaces/icomparable.js +0 -0
  149. /package/{core → apps/koala-nest/src/core}/utils/list.d.ts +0 -0
  150. /package/{core → apps/koala-nest/src/core}/utils/list.js +0 -0
  151. /package/{core → apps/koala-nest/src/core}/utils/promise-all.d.ts +0 -0
  152. /package/{core → apps/koala-nest/src/core}/utils/promise-all.js +0 -0
  153. /package/{core → apps/koala-nest/src/core}/utils/set-mask-document-number.d.ts +0 -0
  154. /package/{core → apps/koala-nest/src/core}/utils/set-mask-document-number.js +0 -0
  155. /package/{core → apps/koala-nest/src/core}/validators/file-validator.d.ts +0 -0
  156. /package/{core → apps/koala-nest/src/core}/validators/file-validator.js +0 -0
  157. /package/{decorators → apps/koala-nest/src/decorators}/api-exclude-endpoint-diff-develop.decorator.d.ts +0 -0
  158. /package/{decorators → apps/koala-nest/src/decorators}/api-exclude-endpoint-diff-develop.decorator.js +0 -0
  159. /package/{decorators → apps/koala-nest/src/decorators}/api-property-enum.decorator.d.ts +0 -0
  160. /package/{decorators → apps/koala-nest/src/decorators}/api-property-enum.decorator.js +0 -0
  161. /package/{decorators → apps/koala-nest/src/decorators}/api-property-only-develop.decorator.d.ts +0 -0
  162. /package/{decorators → apps/koala-nest/src/decorators}/api-property-only-develop.decorator.js +0 -0
  163. /package/{decorators → apps/koala-nest/src/decorators}/cookies.decorator.d.ts +0 -0
  164. /package/{decorators → apps/koala-nest/src/decorators}/cookies.decorator.js +0 -0
  165. /package/{decorators → apps/koala-nest/src/decorators}/is-public.decorator.d.ts +0 -0
  166. /package/{decorators → apps/koala-nest/src/decorators}/is-public.decorator.js +0 -0
  167. /package/{decorators → apps/koala-nest/src/decorators}/upload.decorator.d.ts +0 -0
  168. /package/{decorators → apps/koala-nest/src/decorators}/upload.decorator.js +0 -0
  169. /package/{env → apps/koala-nest/src/env}/env.d.ts +0 -0
  170. /package/{env → apps/koala-nest/src/env}/env.js +0 -0
  171. /package/{env → apps/koala-nest/src/env}/env.module.d.ts +0 -0
  172. /package/{env → apps/koala-nest/src/env}/env.module.js +0 -0
  173. /package/{env → apps/koala-nest/src/env}/env.service.d.ts +0 -0
  174. /package/{env → apps/koala-nest/src/env}/env.service.js +0 -0
  175. /package/{filters → apps/koala-nest/src/filters}/domain-errors.filter.d.ts +0 -0
  176. /package/{filters → apps/koala-nest/src/filters}/domain-errors.filter.js +0 -0
  177. /package/{filters → apps/koala-nest/src/filters}/global-exception.filter.d.ts +0 -0
  178. /package/{filters → apps/koala-nest/src/filters}/global-exception.filter.js +0 -0
  179. /package/{filters → apps/koala-nest/src/filters}/zod-errors.filter.d.ts +0 -0
  180. /package/{filters → apps/koala-nest/src/filters}/zod-errors.filter.js +0 -0
  181. /package/{services → apps/koala-nest/src/services}/logging/ilogging.service.d.ts +0 -0
  182. /package/{services → apps/koala-nest/src/services}/logging/ilogging.service.js +0 -0
  183. /package/{services → apps/koala-nest/src/services}/logging/logging.service.d.ts +0 -0
  184. /package/{services → apps/koala-nest/src/services}/logging/logging.service.js +0 -0
  185. /package/{services → apps/koala-nest/src/services}/redis/iredis.service.d.ts +0 -0
  186. /package/{services → apps/koala-nest/src/services}/redis/iredis.service.js +0 -0
  187. /package/{services → apps/koala-nest/src/services}/redis/redis.service.d.ts +0 -0
  188. /package/{services → apps/koala-nest/src/services}/redis/redis.service.js +0 -0
  189. /package/{services → apps/koala-nest/src/services}/redlock/ired-lock.service.d.ts +0 -0
  190. /package/{services → apps/koala-nest/src/services}/redlock/ired-lock.service.js +0 -0
  191. /package/{services → apps/koala-nest/src/services}/redlock/red-lock.service.d.ts +0 -0
  192. /package/{services → apps/koala-nest/src/services}/redlock/red-lock.service.js +0 -0
  193. /package/{test → apps/koala-nest/src/test}/koala-app-test-dependencies.d.ts +0 -0
  194. /package/{test → apps/koala-nest/src/test}/koala-app-test-dependencies.js +0 -0
  195. /package/{test → apps/koala-nest/src/test}/koala-app-test.d.ts +0 -0
  196. /package/{test → apps/koala-nest/src/test}/koala-app-test.js +0 -0
  197. /package/{test → apps/koala-nest/src/test}/repositories/in-memory-base.repository.d.ts +0 -0
  198. /package/{test → apps/koala-nest/src/test}/repositories/in-memory-base.repository.js +0 -0
  199. /package/{test → apps/koala-nest/src/test}/services/fake-logging.service.d.ts +0 -0
  200. /package/{test → apps/koala-nest/src/test}/services/fake-logging.service.js +0 -0
  201. /package/{test → apps/koala-nest/src/test}/services/fake-red-lock.service.d.ts +0 -0
  202. /package/{test → apps/koala-nest/src/test}/services/fake-red-lock.service.js +0 -0
  203. /package/{test → apps/koala-nest/src/test}/utils/create-e2e-database.d.ts +0 -0
  204. /package/{test → apps/koala-nest/src/test}/utils/drop-e2e-database.d.ts +0 -0
  205. /package/{test → apps/koala-nest/src/test}/utils/wait-for.d.ts +0 -0
  206. /package/{test → apps/koala-nest/src/test}/utils/wait-for.js +0 -0
@@ -0,0 +1,641 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as Prisma from "../internal/prismaNamespace";
3
+ export type PersonModel = runtime.Types.Result.DefaultSelection<Prisma.$PersonPayload>;
4
+ export type AggregatePerson = {
5
+ _count: PersonCountAggregateOutputType | null;
6
+ _avg: PersonAvgAggregateOutputType | null;
7
+ _sum: PersonSumAggregateOutputType | null;
8
+ _min: PersonMinAggregateOutputType | null;
9
+ _max: PersonMaxAggregateOutputType | null;
10
+ };
11
+ export type PersonAvgAggregateOutputType = {
12
+ id: number | null;
13
+ personAddressId: number | null;
14
+ };
15
+ export type PersonSumAggregateOutputType = {
16
+ id: number | null;
17
+ personAddressId: number | null;
18
+ };
19
+ export type PersonMinAggregateOutputType = {
20
+ id: number | null;
21
+ name: string | null;
22
+ active: boolean | null;
23
+ personAddressId: number | null;
24
+ };
25
+ export type PersonMaxAggregateOutputType = {
26
+ id: number | null;
27
+ name: string | null;
28
+ active: boolean | null;
29
+ personAddressId: number | null;
30
+ };
31
+ export type PersonCountAggregateOutputType = {
32
+ id: number;
33
+ name: number;
34
+ active: number;
35
+ personAddressId: number;
36
+ _all: number;
37
+ };
38
+ export type PersonAvgAggregateInputType = {
39
+ id?: true;
40
+ personAddressId?: true;
41
+ };
42
+ export type PersonSumAggregateInputType = {
43
+ id?: true;
44
+ personAddressId?: true;
45
+ };
46
+ export type PersonMinAggregateInputType = {
47
+ id?: true;
48
+ name?: true;
49
+ active?: true;
50
+ personAddressId?: true;
51
+ };
52
+ export type PersonMaxAggregateInputType = {
53
+ id?: true;
54
+ name?: true;
55
+ active?: true;
56
+ personAddressId?: true;
57
+ };
58
+ export type PersonCountAggregateInputType = {
59
+ id?: true;
60
+ name?: true;
61
+ active?: true;
62
+ personAddressId?: true;
63
+ _all?: true;
64
+ };
65
+ export type PersonAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
66
+ where?: Prisma.PersonWhereInput;
67
+ orderBy?: Prisma.PersonOrderByWithRelationInput | Prisma.PersonOrderByWithRelationInput[];
68
+ cursor?: Prisma.PersonWhereUniqueInput;
69
+ take?: number;
70
+ skip?: number;
71
+ _count?: true | PersonCountAggregateInputType;
72
+ _avg?: PersonAvgAggregateInputType;
73
+ _sum?: PersonSumAggregateInputType;
74
+ _min?: PersonMinAggregateInputType;
75
+ _max?: PersonMaxAggregateInputType;
76
+ };
77
+ export type GetPersonAggregateType<T extends PersonAggregateArgs> = {
78
+ [P in keyof T & keyof AggregatePerson]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregatePerson[P]> : Prisma.GetScalarType<T[P], AggregatePerson[P]>;
79
+ };
80
+ export type PersonGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
81
+ where?: Prisma.PersonWhereInput;
82
+ orderBy?: Prisma.PersonOrderByWithAggregationInput | Prisma.PersonOrderByWithAggregationInput[];
83
+ by: Prisma.PersonScalarFieldEnum[] | Prisma.PersonScalarFieldEnum;
84
+ having?: Prisma.PersonScalarWhereWithAggregatesInput;
85
+ take?: number;
86
+ skip?: number;
87
+ _count?: PersonCountAggregateInputType | true;
88
+ _avg?: PersonAvgAggregateInputType;
89
+ _sum?: PersonSumAggregateInputType;
90
+ _min?: PersonMinAggregateInputType;
91
+ _max?: PersonMaxAggregateInputType;
92
+ };
93
+ export type PersonGroupByOutputType = {
94
+ id: number;
95
+ name: string;
96
+ active: boolean;
97
+ personAddressId: number;
98
+ _count: PersonCountAggregateOutputType | null;
99
+ _avg: PersonAvgAggregateOutputType | null;
100
+ _sum: PersonSumAggregateOutputType | null;
101
+ _min: PersonMinAggregateOutputType | null;
102
+ _max: PersonMaxAggregateOutputType | null;
103
+ };
104
+ type GetPersonGroupByPayload<T extends PersonGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<PersonGroupByOutputType, T['by']> & {
105
+ [P in ((keyof T) & (keyof PersonGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], PersonGroupByOutputType[P]> : Prisma.GetScalarType<T[P], PersonGroupByOutputType[P]>;
106
+ }>>;
107
+ export type PersonWhereInput = {
108
+ AND?: Prisma.PersonWhereInput | Prisma.PersonWhereInput[];
109
+ OR?: Prisma.PersonWhereInput[];
110
+ NOT?: Prisma.PersonWhereInput | Prisma.PersonWhereInput[];
111
+ id?: Prisma.IntFilter<"Person"> | number;
112
+ name?: Prisma.StringFilter<"Person"> | string;
113
+ active?: Prisma.BoolFilter<"Person"> | boolean;
114
+ personAddressId?: Prisma.IntFilter<"Person"> | number;
115
+ phones?: Prisma.PersonPhoneListRelationFilter;
116
+ address?: Prisma.XOR<Prisma.PersonAddressScalarRelationFilter, Prisma.PersonAddressWhereInput>;
117
+ };
118
+ export type PersonOrderByWithRelationInput = {
119
+ id?: Prisma.SortOrder;
120
+ name?: Prisma.SortOrder;
121
+ active?: Prisma.SortOrder;
122
+ personAddressId?: Prisma.SortOrder;
123
+ phones?: Prisma.PersonPhoneOrderByRelationAggregateInput;
124
+ address?: Prisma.PersonAddressOrderByWithRelationInput;
125
+ };
126
+ export type PersonWhereUniqueInput = Prisma.AtLeast<{
127
+ id?: number;
128
+ AND?: Prisma.PersonWhereInput | Prisma.PersonWhereInput[];
129
+ OR?: Prisma.PersonWhereInput[];
130
+ NOT?: Prisma.PersonWhereInput | Prisma.PersonWhereInput[];
131
+ name?: Prisma.StringFilter<"Person"> | string;
132
+ active?: Prisma.BoolFilter<"Person"> | boolean;
133
+ personAddressId?: Prisma.IntFilter<"Person"> | number;
134
+ phones?: Prisma.PersonPhoneListRelationFilter;
135
+ address?: Prisma.XOR<Prisma.PersonAddressScalarRelationFilter, Prisma.PersonAddressWhereInput>;
136
+ }, "id">;
137
+ export type PersonOrderByWithAggregationInput = {
138
+ id?: Prisma.SortOrder;
139
+ name?: Prisma.SortOrder;
140
+ active?: Prisma.SortOrder;
141
+ personAddressId?: Prisma.SortOrder;
142
+ _count?: Prisma.PersonCountOrderByAggregateInput;
143
+ _avg?: Prisma.PersonAvgOrderByAggregateInput;
144
+ _max?: Prisma.PersonMaxOrderByAggregateInput;
145
+ _min?: Prisma.PersonMinOrderByAggregateInput;
146
+ _sum?: Prisma.PersonSumOrderByAggregateInput;
147
+ };
148
+ export type PersonScalarWhereWithAggregatesInput = {
149
+ AND?: Prisma.PersonScalarWhereWithAggregatesInput | Prisma.PersonScalarWhereWithAggregatesInput[];
150
+ OR?: Prisma.PersonScalarWhereWithAggregatesInput[];
151
+ NOT?: Prisma.PersonScalarWhereWithAggregatesInput | Prisma.PersonScalarWhereWithAggregatesInput[];
152
+ id?: Prisma.IntWithAggregatesFilter<"Person"> | number;
153
+ name?: Prisma.StringWithAggregatesFilter<"Person"> | string;
154
+ active?: Prisma.BoolWithAggregatesFilter<"Person"> | boolean;
155
+ personAddressId?: Prisma.IntWithAggregatesFilter<"Person"> | number;
156
+ };
157
+ export type PersonCreateInput = {
158
+ name: string;
159
+ active?: boolean;
160
+ phones?: Prisma.PersonPhoneCreateNestedManyWithoutPersonInput;
161
+ address: Prisma.PersonAddressCreateNestedOneWithoutPeopleInput;
162
+ };
163
+ export type PersonUncheckedCreateInput = {
164
+ id?: number;
165
+ name: string;
166
+ active?: boolean;
167
+ personAddressId: number;
168
+ phones?: Prisma.PersonPhoneUncheckedCreateNestedManyWithoutPersonInput;
169
+ };
170
+ export type PersonUpdateInput = {
171
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
172
+ active?: Prisma.BoolFieldUpdateOperationsInput | boolean;
173
+ phones?: Prisma.PersonPhoneUpdateManyWithoutPersonNestedInput;
174
+ address?: Prisma.PersonAddressUpdateOneRequiredWithoutPeopleNestedInput;
175
+ };
176
+ export type PersonUncheckedUpdateInput = {
177
+ id?: Prisma.IntFieldUpdateOperationsInput | number;
178
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
179
+ active?: Prisma.BoolFieldUpdateOperationsInput | boolean;
180
+ personAddressId?: Prisma.IntFieldUpdateOperationsInput | number;
181
+ phones?: Prisma.PersonPhoneUncheckedUpdateManyWithoutPersonNestedInput;
182
+ };
183
+ export type PersonCreateManyInput = {
184
+ id?: number;
185
+ name: string;
186
+ active?: boolean;
187
+ personAddressId: number;
188
+ };
189
+ export type PersonUpdateManyMutationInput = {
190
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
191
+ active?: Prisma.BoolFieldUpdateOperationsInput | boolean;
192
+ };
193
+ export type PersonUncheckedUpdateManyInput = {
194
+ id?: Prisma.IntFieldUpdateOperationsInput | number;
195
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
196
+ active?: Prisma.BoolFieldUpdateOperationsInput | boolean;
197
+ personAddressId?: Prisma.IntFieldUpdateOperationsInput | number;
198
+ };
199
+ export type PersonCountOrderByAggregateInput = {
200
+ id?: Prisma.SortOrder;
201
+ name?: Prisma.SortOrder;
202
+ active?: Prisma.SortOrder;
203
+ personAddressId?: Prisma.SortOrder;
204
+ };
205
+ export type PersonAvgOrderByAggregateInput = {
206
+ id?: Prisma.SortOrder;
207
+ personAddressId?: Prisma.SortOrder;
208
+ };
209
+ export type PersonMaxOrderByAggregateInput = {
210
+ id?: Prisma.SortOrder;
211
+ name?: Prisma.SortOrder;
212
+ active?: Prisma.SortOrder;
213
+ personAddressId?: Prisma.SortOrder;
214
+ };
215
+ export type PersonMinOrderByAggregateInput = {
216
+ id?: Prisma.SortOrder;
217
+ name?: Prisma.SortOrder;
218
+ active?: Prisma.SortOrder;
219
+ personAddressId?: Prisma.SortOrder;
220
+ };
221
+ export type PersonSumOrderByAggregateInput = {
222
+ id?: Prisma.SortOrder;
223
+ personAddressId?: Prisma.SortOrder;
224
+ };
225
+ export type PersonScalarRelationFilter = {
226
+ is?: Prisma.PersonWhereInput;
227
+ isNot?: Prisma.PersonWhereInput;
228
+ };
229
+ export type PersonListRelationFilter = {
230
+ every?: Prisma.PersonWhereInput;
231
+ some?: Prisma.PersonWhereInput;
232
+ none?: Prisma.PersonWhereInput;
233
+ };
234
+ export type PersonOrderByRelationAggregateInput = {
235
+ _count?: Prisma.SortOrder;
236
+ };
237
+ export type StringFieldUpdateOperationsInput = {
238
+ set?: string;
239
+ };
240
+ export type BoolFieldUpdateOperationsInput = {
241
+ set?: boolean;
242
+ };
243
+ export type IntFieldUpdateOperationsInput = {
244
+ set?: number;
245
+ increment?: number;
246
+ decrement?: number;
247
+ multiply?: number;
248
+ divide?: number;
249
+ };
250
+ export type PersonCreateNestedOneWithoutPhonesInput = {
251
+ create?: Prisma.XOR<Prisma.PersonCreateWithoutPhonesInput, Prisma.PersonUncheckedCreateWithoutPhonesInput>;
252
+ connectOrCreate?: Prisma.PersonCreateOrConnectWithoutPhonesInput;
253
+ connect?: Prisma.PersonWhereUniqueInput;
254
+ };
255
+ export type PersonUpdateOneRequiredWithoutPhonesNestedInput = {
256
+ create?: Prisma.XOR<Prisma.PersonCreateWithoutPhonesInput, Prisma.PersonUncheckedCreateWithoutPhonesInput>;
257
+ connectOrCreate?: Prisma.PersonCreateOrConnectWithoutPhonesInput;
258
+ upsert?: Prisma.PersonUpsertWithoutPhonesInput;
259
+ connect?: Prisma.PersonWhereUniqueInput;
260
+ update?: Prisma.XOR<Prisma.XOR<Prisma.PersonUpdateToOneWithWhereWithoutPhonesInput, Prisma.PersonUpdateWithoutPhonesInput>, Prisma.PersonUncheckedUpdateWithoutPhonesInput>;
261
+ };
262
+ export type PersonCreateNestedManyWithoutAddressInput = {
263
+ create?: Prisma.XOR<Prisma.PersonCreateWithoutAddressInput, Prisma.PersonUncheckedCreateWithoutAddressInput> | Prisma.PersonCreateWithoutAddressInput[] | Prisma.PersonUncheckedCreateWithoutAddressInput[];
264
+ connectOrCreate?: Prisma.PersonCreateOrConnectWithoutAddressInput | Prisma.PersonCreateOrConnectWithoutAddressInput[];
265
+ createMany?: Prisma.PersonCreateManyAddressInputEnvelope;
266
+ connect?: Prisma.PersonWhereUniqueInput | Prisma.PersonWhereUniqueInput[];
267
+ };
268
+ export type PersonUncheckedCreateNestedManyWithoutAddressInput = {
269
+ create?: Prisma.XOR<Prisma.PersonCreateWithoutAddressInput, Prisma.PersonUncheckedCreateWithoutAddressInput> | Prisma.PersonCreateWithoutAddressInput[] | Prisma.PersonUncheckedCreateWithoutAddressInput[];
270
+ connectOrCreate?: Prisma.PersonCreateOrConnectWithoutAddressInput | Prisma.PersonCreateOrConnectWithoutAddressInput[];
271
+ createMany?: Prisma.PersonCreateManyAddressInputEnvelope;
272
+ connect?: Prisma.PersonWhereUniqueInput | Prisma.PersonWhereUniqueInput[];
273
+ };
274
+ export type PersonUpdateManyWithoutAddressNestedInput = {
275
+ create?: Prisma.XOR<Prisma.PersonCreateWithoutAddressInput, Prisma.PersonUncheckedCreateWithoutAddressInput> | Prisma.PersonCreateWithoutAddressInput[] | Prisma.PersonUncheckedCreateWithoutAddressInput[];
276
+ connectOrCreate?: Prisma.PersonCreateOrConnectWithoutAddressInput | Prisma.PersonCreateOrConnectWithoutAddressInput[];
277
+ upsert?: Prisma.PersonUpsertWithWhereUniqueWithoutAddressInput | Prisma.PersonUpsertWithWhereUniqueWithoutAddressInput[];
278
+ createMany?: Prisma.PersonCreateManyAddressInputEnvelope;
279
+ set?: Prisma.PersonWhereUniqueInput | Prisma.PersonWhereUniqueInput[];
280
+ disconnect?: Prisma.PersonWhereUniqueInput | Prisma.PersonWhereUniqueInput[];
281
+ delete?: Prisma.PersonWhereUniqueInput | Prisma.PersonWhereUniqueInput[];
282
+ connect?: Prisma.PersonWhereUniqueInput | Prisma.PersonWhereUniqueInput[];
283
+ update?: Prisma.PersonUpdateWithWhereUniqueWithoutAddressInput | Prisma.PersonUpdateWithWhereUniqueWithoutAddressInput[];
284
+ updateMany?: Prisma.PersonUpdateManyWithWhereWithoutAddressInput | Prisma.PersonUpdateManyWithWhereWithoutAddressInput[];
285
+ deleteMany?: Prisma.PersonScalarWhereInput | Prisma.PersonScalarWhereInput[];
286
+ };
287
+ export type PersonUncheckedUpdateManyWithoutAddressNestedInput = {
288
+ create?: Prisma.XOR<Prisma.PersonCreateWithoutAddressInput, Prisma.PersonUncheckedCreateWithoutAddressInput> | Prisma.PersonCreateWithoutAddressInput[] | Prisma.PersonUncheckedCreateWithoutAddressInput[];
289
+ connectOrCreate?: Prisma.PersonCreateOrConnectWithoutAddressInput | Prisma.PersonCreateOrConnectWithoutAddressInput[];
290
+ upsert?: Prisma.PersonUpsertWithWhereUniqueWithoutAddressInput | Prisma.PersonUpsertWithWhereUniqueWithoutAddressInput[];
291
+ createMany?: Prisma.PersonCreateManyAddressInputEnvelope;
292
+ set?: Prisma.PersonWhereUniqueInput | Prisma.PersonWhereUniqueInput[];
293
+ disconnect?: Prisma.PersonWhereUniqueInput | Prisma.PersonWhereUniqueInput[];
294
+ delete?: Prisma.PersonWhereUniqueInput | Prisma.PersonWhereUniqueInput[];
295
+ connect?: Prisma.PersonWhereUniqueInput | Prisma.PersonWhereUniqueInput[];
296
+ update?: Prisma.PersonUpdateWithWhereUniqueWithoutAddressInput | Prisma.PersonUpdateWithWhereUniqueWithoutAddressInput[];
297
+ updateMany?: Prisma.PersonUpdateManyWithWhereWithoutAddressInput | Prisma.PersonUpdateManyWithWhereWithoutAddressInput[];
298
+ deleteMany?: Prisma.PersonScalarWhereInput | Prisma.PersonScalarWhereInput[];
299
+ };
300
+ export type PersonCreateWithoutPhonesInput = {
301
+ name: string;
302
+ active?: boolean;
303
+ address: Prisma.PersonAddressCreateNestedOneWithoutPeopleInput;
304
+ };
305
+ export type PersonUncheckedCreateWithoutPhonesInput = {
306
+ id?: number;
307
+ name: string;
308
+ active?: boolean;
309
+ personAddressId: number;
310
+ };
311
+ export type PersonCreateOrConnectWithoutPhonesInput = {
312
+ where: Prisma.PersonWhereUniqueInput;
313
+ create: Prisma.XOR<Prisma.PersonCreateWithoutPhonesInput, Prisma.PersonUncheckedCreateWithoutPhonesInput>;
314
+ };
315
+ export type PersonUpsertWithoutPhonesInput = {
316
+ update: Prisma.XOR<Prisma.PersonUpdateWithoutPhonesInput, Prisma.PersonUncheckedUpdateWithoutPhonesInput>;
317
+ create: Prisma.XOR<Prisma.PersonCreateWithoutPhonesInput, Prisma.PersonUncheckedCreateWithoutPhonesInput>;
318
+ where?: Prisma.PersonWhereInput;
319
+ };
320
+ export type PersonUpdateToOneWithWhereWithoutPhonesInput = {
321
+ where?: Prisma.PersonWhereInput;
322
+ data: Prisma.XOR<Prisma.PersonUpdateWithoutPhonesInput, Prisma.PersonUncheckedUpdateWithoutPhonesInput>;
323
+ };
324
+ export type PersonUpdateWithoutPhonesInput = {
325
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
326
+ active?: Prisma.BoolFieldUpdateOperationsInput | boolean;
327
+ address?: Prisma.PersonAddressUpdateOneRequiredWithoutPeopleNestedInput;
328
+ };
329
+ export type PersonUncheckedUpdateWithoutPhonesInput = {
330
+ id?: Prisma.IntFieldUpdateOperationsInput | number;
331
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
332
+ active?: Prisma.BoolFieldUpdateOperationsInput | boolean;
333
+ personAddressId?: Prisma.IntFieldUpdateOperationsInput | number;
334
+ };
335
+ export type PersonCreateWithoutAddressInput = {
336
+ name: string;
337
+ active?: boolean;
338
+ phones?: Prisma.PersonPhoneCreateNestedManyWithoutPersonInput;
339
+ };
340
+ export type PersonUncheckedCreateWithoutAddressInput = {
341
+ id?: number;
342
+ name: string;
343
+ active?: boolean;
344
+ phones?: Prisma.PersonPhoneUncheckedCreateNestedManyWithoutPersonInput;
345
+ };
346
+ export type PersonCreateOrConnectWithoutAddressInput = {
347
+ where: Prisma.PersonWhereUniqueInput;
348
+ create: Prisma.XOR<Prisma.PersonCreateWithoutAddressInput, Prisma.PersonUncheckedCreateWithoutAddressInput>;
349
+ };
350
+ export type PersonCreateManyAddressInputEnvelope = {
351
+ data: Prisma.PersonCreateManyAddressInput | Prisma.PersonCreateManyAddressInput[];
352
+ skipDuplicates?: boolean;
353
+ };
354
+ export type PersonUpsertWithWhereUniqueWithoutAddressInput = {
355
+ where: Prisma.PersonWhereUniqueInput;
356
+ update: Prisma.XOR<Prisma.PersonUpdateWithoutAddressInput, Prisma.PersonUncheckedUpdateWithoutAddressInput>;
357
+ create: Prisma.XOR<Prisma.PersonCreateWithoutAddressInput, Prisma.PersonUncheckedCreateWithoutAddressInput>;
358
+ };
359
+ export type PersonUpdateWithWhereUniqueWithoutAddressInput = {
360
+ where: Prisma.PersonWhereUniqueInput;
361
+ data: Prisma.XOR<Prisma.PersonUpdateWithoutAddressInput, Prisma.PersonUncheckedUpdateWithoutAddressInput>;
362
+ };
363
+ export type PersonUpdateManyWithWhereWithoutAddressInput = {
364
+ where: Prisma.PersonScalarWhereInput;
365
+ data: Prisma.XOR<Prisma.PersonUpdateManyMutationInput, Prisma.PersonUncheckedUpdateManyWithoutAddressInput>;
366
+ };
367
+ export type PersonScalarWhereInput = {
368
+ AND?: Prisma.PersonScalarWhereInput | Prisma.PersonScalarWhereInput[];
369
+ OR?: Prisma.PersonScalarWhereInput[];
370
+ NOT?: Prisma.PersonScalarWhereInput | Prisma.PersonScalarWhereInput[];
371
+ id?: Prisma.IntFilter<"Person"> | number;
372
+ name?: Prisma.StringFilter<"Person"> | string;
373
+ active?: Prisma.BoolFilter<"Person"> | boolean;
374
+ personAddressId?: Prisma.IntFilter<"Person"> | number;
375
+ };
376
+ export type PersonCreateManyAddressInput = {
377
+ id?: number;
378
+ name: string;
379
+ active?: boolean;
380
+ };
381
+ export type PersonUpdateWithoutAddressInput = {
382
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
383
+ active?: Prisma.BoolFieldUpdateOperationsInput | boolean;
384
+ phones?: Prisma.PersonPhoneUpdateManyWithoutPersonNestedInput;
385
+ };
386
+ export type PersonUncheckedUpdateWithoutAddressInput = {
387
+ id?: Prisma.IntFieldUpdateOperationsInput | number;
388
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
389
+ active?: Prisma.BoolFieldUpdateOperationsInput | boolean;
390
+ phones?: Prisma.PersonPhoneUncheckedUpdateManyWithoutPersonNestedInput;
391
+ };
392
+ export type PersonUncheckedUpdateManyWithoutAddressInput = {
393
+ id?: Prisma.IntFieldUpdateOperationsInput | number;
394
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
395
+ active?: Prisma.BoolFieldUpdateOperationsInput | boolean;
396
+ };
397
+ export type PersonCountOutputType = {
398
+ phones: number;
399
+ };
400
+ export type PersonCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
401
+ phones?: boolean | PersonCountOutputTypeCountPhonesArgs;
402
+ };
403
+ export type PersonCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
404
+ select?: Prisma.PersonCountOutputTypeSelect<ExtArgs> | null;
405
+ };
406
+ export type PersonCountOutputTypeCountPhonesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
407
+ where?: Prisma.PersonPhoneWhereInput;
408
+ };
409
+ export type PersonSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
410
+ id?: boolean;
411
+ name?: boolean;
412
+ active?: boolean;
413
+ personAddressId?: boolean;
414
+ phones?: boolean | Prisma.Person$phonesArgs<ExtArgs>;
415
+ address?: boolean | Prisma.PersonAddressDefaultArgs<ExtArgs>;
416
+ _count?: boolean | Prisma.PersonCountOutputTypeDefaultArgs<ExtArgs>;
417
+ }, ExtArgs["result"]["person"]>;
418
+ export type PersonSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
419
+ id?: boolean;
420
+ name?: boolean;
421
+ active?: boolean;
422
+ personAddressId?: boolean;
423
+ address?: boolean | Prisma.PersonAddressDefaultArgs<ExtArgs>;
424
+ }, ExtArgs["result"]["person"]>;
425
+ export type PersonSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
426
+ id?: boolean;
427
+ name?: boolean;
428
+ active?: boolean;
429
+ personAddressId?: boolean;
430
+ address?: boolean | Prisma.PersonAddressDefaultArgs<ExtArgs>;
431
+ }, ExtArgs["result"]["person"]>;
432
+ export type PersonSelectScalar = {
433
+ id?: boolean;
434
+ name?: boolean;
435
+ active?: boolean;
436
+ personAddressId?: boolean;
437
+ };
438
+ export type PersonOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "active" | "personAddressId", ExtArgs["result"]["person"]>;
439
+ export type PersonInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
440
+ phones?: boolean | Prisma.Person$phonesArgs<ExtArgs>;
441
+ address?: boolean | Prisma.PersonAddressDefaultArgs<ExtArgs>;
442
+ _count?: boolean | Prisma.PersonCountOutputTypeDefaultArgs<ExtArgs>;
443
+ };
444
+ export type PersonIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
445
+ address?: boolean | Prisma.PersonAddressDefaultArgs<ExtArgs>;
446
+ };
447
+ export type PersonIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
448
+ address?: boolean | Prisma.PersonAddressDefaultArgs<ExtArgs>;
449
+ };
450
+ export type $PersonPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
451
+ name: "Person";
452
+ objects: {
453
+ phones: Prisma.$PersonPhonePayload<ExtArgs>[];
454
+ address: Prisma.$PersonAddressPayload<ExtArgs>;
455
+ };
456
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
457
+ id: number;
458
+ name: string;
459
+ active: boolean;
460
+ personAddressId: number;
461
+ }, ExtArgs["result"]["person"]>;
462
+ composites: {};
463
+ };
464
+ export type PersonGetPayload<S extends boolean | null | undefined | PersonDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$PersonPayload, S>;
465
+ export type PersonCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<PersonFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
466
+ select?: PersonCountAggregateInputType | true;
467
+ };
468
+ export interface PersonDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
469
+ [K: symbol]: {
470
+ types: Prisma.TypeMap<ExtArgs>['model']['Person'];
471
+ meta: {
472
+ name: 'Person';
473
+ };
474
+ };
475
+ findUnique<T extends PersonFindUniqueArgs>(args: Prisma.SelectSubset<T, PersonFindUniqueArgs<ExtArgs>>): Prisma.Prisma__PersonClient<runtime.Types.Result.GetResult<Prisma.$PersonPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
476
+ findUniqueOrThrow<T extends PersonFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, PersonFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__PersonClient<runtime.Types.Result.GetResult<Prisma.$PersonPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
477
+ findFirst<T extends PersonFindFirstArgs>(args?: Prisma.SelectSubset<T, PersonFindFirstArgs<ExtArgs>>): Prisma.Prisma__PersonClient<runtime.Types.Result.GetResult<Prisma.$PersonPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
478
+ findFirstOrThrow<T extends PersonFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, PersonFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__PersonClient<runtime.Types.Result.GetResult<Prisma.$PersonPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
479
+ findMany<T extends PersonFindManyArgs>(args?: Prisma.SelectSubset<T, PersonFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PersonPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
480
+ create<T extends PersonCreateArgs>(args: Prisma.SelectSubset<T, PersonCreateArgs<ExtArgs>>): Prisma.Prisma__PersonClient<runtime.Types.Result.GetResult<Prisma.$PersonPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
481
+ createMany<T extends PersonCreateManyArgs>(args?: Prisma.SelectSubset<T, PersonCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
482
+ createManyAndReturn<T extends PersonCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, PersonCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PersonPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
483
+ delete<T extends PersonDeleteArgs>(args: Prisma.SelectSubset<T, PersonDeleteArgs<ExtArgs>>): Prisma.Prisma__PersonClient<runtime.Types.Result.GetResult<Prisma.$PersonPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
484
+ update<T extends PersonUpdateArgs>(args: Prisma.SelectSubset<T, PersonUpdateArgs<ExtArgs>>): Prisma.Prisma__PersonClient<runtime.Types.Result.GetResult<Prisma.$PersonPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
485
+ deleteMany<T extends PersonDeleteManyArgs>(args?: Prisma.SelectSubset<T, PersonDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
486
+ updateMany<T extends PersonUpdateManyArgs>(args: Prisma.SelectSubset<T, PersonUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
487
+ updateManyAndReturn<T extends PersonUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, PersonUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PersonPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
488
+ upsert<T extends PersonUpsertArgs>(args: Prisma.SelectSubset<T, PersonUpsertArgs<ExtArgs>>): Prisma.Prisma__PersonClient<runtime.Types.Result.GetResult<Prisma.$PersonPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
489
+ count<T extends PersonCountArgs>(args?: Prisma.Subset<T, PersonCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], PersonCountAggregateOutputType> : number>;
490
+ aggregate<T extends PersonAggregateArgs>(args: Prisma.Subset<T, PersonAggregateArgs>): Prisma.PrismaPromise<GetPersonAggregateType<T>>;
491
+ groupBy<T extends PersonGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
492
+ orderBy: PersonGroupByArgs['orderBy'];
493
+ } : {
494
+ orderBy?: PersonGroupByArgs['orderBy'];
495
+ }, OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>, ByFields extends Prisma.MaybeTupleToUnion<T['by']>, ByValid extends Prisma.Has<ByFields, OrderFields>, HavingFields extends Prisma.GetHavingFields<T['having']>, HavingValid extends Prisma.Has<ByFields, HavingFields>, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? {
496
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
497
+ Error,
498
+ 'Field ',
499
+ P,
500
+ ` in "having" needs to be provided in "by"`
501
+ ];
502
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
503
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
504
+ }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
505
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
506
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
507
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
508
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, PersonGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetPersonGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
509
+ readonly fields: PersonFieldRefs;
510
+ }
511
+ export interface Prisma__PersonClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
512
+ readonly [Symbol.toStringTag]: "PrismaPromise";
513
+ phones<T extends Prisma.Person$phonesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Person$phonesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PersonPhonePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
514
+ address<T extends Prisma.PersonAddressDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.PersonAddressDefaultArgs<ExtArgs>>): Prisma.Prisma__PersonAddressClient<runtime.Types.Result.GetResult<Prisma.$PersonAddressPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
515
+ then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>;
516
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
517
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
518
+ }
519
+ export interface PersonFieldRefs {
520
+ readonly id: Prisma.FieldRef<"Person", 'Int'>;
521
+ readonly name: Prisma.FieldRef<"Person", 'String'>;
522
+ readonly active: Prisma.FieldRef<"Person", 'Boolean'>;
523
+ readonly personAddressId: Prisma.FieldRef<"Person", 'Int'>;
524
+ }
525
+ export type PersonFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
526
+ select?: Prisma.PersonSelect<ExtArgs> | null;
527
+ omit?: Prisma.PersonOmit<ExtArgs> | null;
528
+ include?: Prisma.PersonInclude<ExtArgs> | null;
529
+ where: Prisma.PersonWhereUniqueInput;
530
+ };
531
+ export type PersonFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
532
+ select?: Prisma.PersonSelect<ExtArgs> | null;
533
+ omit?: Prisma.PersonOmit<ExtArgs> | null;
534
+ include?: Prisma.PersonInclude<ExtArgs> | null;
535
+ where: Prisma.PersonWhereUniqueInput;
536
+ };
537
+ export type PersonFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
538
+ select?: Prisma.PersonSelect<ExtArgs> | null;
539
+ omit?: Prisma.PersonOmit<ExtArgs> | null;
540
+ include?: Prisma.PersonInclude<ExtArgs> | null;
541
+ where?: Prisma.PersonWhereInput;
542
+ orderBy?: Prisma.PersonOrderByWithRelationInput | Prisma.PersonOrderByWithRelationInput[];
543
+ cursor?: Prisma.PersonWhereUniqueInput;
544
+ take?: number;
545
+ skip?: number;
546
+ distinct?: Prisma.PersonScalarFieldEnum | Prisma.PersonScalarFieldEnum[];
547
+ };
548
+ export type PersonFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
549
+ select?: Prisma.PersonSelect<ExtArgs> | null;
550
+ omit?: Prisma.PersonOmit<ExtArgs> | null;
551
+ include?: Prisma.PersonInclude<ExtArgs> | null;
552
+ where?: Prisma.PersonWhereInput;
553
+ orderBy?: Prisma.PersonOrderByWithRelationInput | Prisma.PersonOrderByWithRelationInput[];
554
+ cursor?: Prisma.PersonWhereUniqueInput;
555
+ take?: number;
556
+ skip?: number;
557
+ distinct?: Prisma.PersonScalarFieldEnum | Prisma.PersonScalarFieldEnum[];
558
+ };
559
+ export type PersonFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
560
+ select?: Prisma.PersonSelect<ExtArgs> | null;
561
+ omit?: Prisma.PersonOmit<ExtArgs> | null;
562
+ include?: Prisma.PersonInclude<ExtArgs> | null;
563
+ where?: Prisma.PersonWhereInput;
564
+ orderBy?: Prisma.PersonOrderByWithRelationInput | Prisma.PersonOrderByWithRelationInput[];
565
+ cursor?: Prisma.PersonWhereUniqueInput;
566
+ take?: number;
567
+ skip?: number;
568
+ distinct?: Prisma.PersonScalarFieldEnum | Prisma.PersonScalarFieldEnum[];
569
+ };
570
+ export type PersonCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
571
+ select?: Prisma.PersonSelect<ExtArgs> | null;
572
+ omit?: Prisma.PersonOmit<ExtArgs> | null;
573
+ include?: Prisma.PersonInclude<ExtArgs> | null;
574
+ data: Prisma.XOR<Prisma.PersonCreateInput, Prisma.PersonUncheckedCreateInput>;
575
+ };
576
+ export type PersonCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
577
+ data: Prisma.PersonCreateManyInput | Prisma.PersonCreateManyInput[];
578
+ skipDuplicates?: boolean;
579
+ };
580
+ export type PersonCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
581
+ select?: Prisma.PersonSelectCreateManyAndReturn<ExtArgs> | null;
582
+ omit?: Prisma.PersonOmit<ExtArgs> | null;
583
+ data: Prisma.PersonCreateManyInput | Prisma.PersonCreateManyInput[];
584
+ skipDuplicates?: boolean;
585
+ include?: Prisma.PersonIncludeCreateManyAndReturn<ExtArgs> | null;
586
+ };
587
+ export type PersonUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
588
+ select?: Prisma.PersonSelect<ExtArgs> | null;
589
+ omit?: Prisma.PersonOmit<ExtArgs> | null;
590
+ include?: Prisma.PersonInclude<ExtArgs> | null;
591
+ data: Prisma.XOR<Prisma.PersonUpdateInput, Prisma.PersonUncheckedUpdateInput>;
592
+ where: Prisma.PersonWhereUniqueInput;
593
+ };
594
+ export type PersonUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
595
+ data: Prisma.XOR<Prisma.PersonUpdateManyMutationInput, Prisma.PersonUncheckedUpdateManyInput>;
596
+ where?: Prisma.PersonWhereInput;
597
+ limit?: number;
598
+ };
599
+ export type PersonUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
600
+ select?: Prisma.PersonSelectUpdateManyAndReturn<ExtArgs> | null;
601
+ omit?: Prisma.PersonOmit<ExtArgs> | null;
602
+ data: Prisma.XOR<Prisma.PersonUpdateManyMutationInput, Prisma.PersonUncheckedUpdateManyInput>;
603
+ where?: Prisma.PersonWhereInput;
604
+ limit?: number;
605
+ include?: Prisma.PersonIncludeUpdateManyAndReturn<ExtArgs> | null;
606
+ };
607
+ export type PersonUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
608
+ select?: Prisma.PersonSelect<ExtArgs> | null;
609
+ omit?: Prisma.PersonOmit<ExtArgs> | null;
610
+ include?: Prisma.PersonInclude<ExtArgs> | null;
611
+ where: Prisma.PersonWhereUniqueInput;
612
+ create: Prisma.XOR<Prisma.PersonCreateInput, Prisma.PersonUncheckedCreateInput>;
613
+ update: Prisma.XOR<Prisma.PersonUpdateInput, Prisma.PersonUncheckedUpdateInput>;
614
+ };
615
+ export type PersonDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
616
+ select?: Prisma.PersonSelect<ExtArgs> | null;
617
+ omit?: Prisma.PersonOmit<ExtArgs> | null;
618
+ include?: Prisma.PersonInclude<ExtArgs> | null;
619
+ where: Prisma.PersonWhereUniqueInput;
620
+ };
621
+ export type PersonDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
622
+ where?: Prisma.PersonWhereInput;
623
+ limit?: number;
624
+ };
625
+ export type Person$phonesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
626
+ select?: Prisma.PersonPhoneSelect<ExtArgs> | null;
627
+ omit?: Prisma.PersonPhoneOmit<ExtArgs> | null;
628
+ include?: Prisma.PersonPhoneInclude<ExtArgs> | null;
629
+ where?: Prisma.PersonPhoneWhereInput;
630
+ orderBy?: Prisma.PersonPhoneOrderByWithRelationInput | Prisma.PersonPhoneOrderByWithRelationInput[];
631
+ cursor?: Prisma.PersonPhoneWhereUniqueInput;
632
+ take?: number;
633
+ skip?: number;
634
+ distinct?: Prisma.PersonPhoneScalarFieldEnum | Prisma.PersonPhoneScalarFieldEnum[];
635
+ };
636
+ export type PersonDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
637
+ select?: Prisma.PersonSelect<ExtArgs> | null;
638
+ omit?: Prisma.PersonOmit<ExtArgs> | null;
639
+ include?: Prisma.PersonInclude<ExtArgs> | null;
640
+ };
641
+ export {};
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });