@optimatech88/titomeet-shared-lib 1.0.56 → 1.1.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 (255) hide show
  1. package/.env +2 -0
  2. package/dist/auth/admin.middleware.d.ts +1 -1
  3. package/dist/auth/admin.middleware.d.ts.map +1 -1
  4. package/dist/auth/admin.middleware.js +7 -11
  5. package/dist/auth/admin.middleware.js.map +1 -1
  6. package/dist/auth/auth.guard.d.ts.map +1 -1
  7. package/dist/auth/auth.guard.js +46 -41
  8. package/dist/auth/auth.guard.js.map +1 -1
  9. package/dist/auth/auth.module.d.ts +1 -1
  10. package/dist/auth/auth.module.d.ts.map +1 -1
  11. package/dist/auth/auth.module.js +8 -11
  12. package/dist/auth/auth.module.js.map +1 -1
  13. package/dist/cache/cache.module.js +12 -18
  14. package/dist/cache/cache.module.js.map +1 -1
  15. package/dist/cache/cache.service.js +8 -10
  16. package/dist/cache/cache.service.js.map +1 -1
  17. package/dist/generated/prisma/client.d.ts +33 -0
  18. package/dist/generated/prisma/client.d.ts.map +1 -0
  19. package/dist/generated/prisma/client.js +10 -0
  20. package/dist/generated/prisma/client.js.map +1 -0
  21. package/dist/generated/prisma/commonInputTypes.d.ts +966 -0
  22. package/dist/generated/prisma/commonInputTypes.d.ts.map +1 -0
  23. package/dist/generated/prisma/commonInputTypes.js +2 -0
  24. package/dist/generated/prisma/commonInputTypes.js.map +1 -0
  25. package/dist/generated/prisma/enums.d.ts +111 -0
  26. package/dist/generated/prisma/enums.d.ts.map +1 -0
  27. package/dist/generated/prisma/enums.js +93 -0
  28. package/dist/generated/prisma/enums.js.map +1 -0
  29. package/dist/generated/prisma/internal/class.d.ts +105 -0
  30. package/dist/generated/prisma/internal/class.d.ts.map +1 -0
  31. package/dist/generated/prisma/internal/class.js +39 -0
  32. package/dist/generated/prisma/internal/class.js.map +1 -0
  33. package/dist/generated/prisma/internal/prismaNamespace.d.ts +2426 -0
  34. package/dist/generated/prisma/internal/prismaNamespace.d.ts.map +1 -0
  35. package/dist/generated/prisma/internal/prismaNamespace.js +338 -0
  36. package/dist/generated/prisma/internal/prismaNamespace.js.map +1 -0
  37. package/dist/generated/prisma/models/Account.d.ts +582 -0
  38. package/dist/generated/prisma/models/Account.d.ts.map +1 -0
  39. package/dist/generated/prisma/models/Account.js +2 -0
  40. package/dist/generated/prisma/models/Account.js.map +1 -0
  41. package/dist/generated/prisma/models/Address.d.ts +930 -0
  42. package/dist/generated/prisma/models/Address.d.ts.map +1 -0
  43. package/dist/generated/prisma/models/Address.js +2 -0
  44. package/dist/generated/prisma/models/Address.js.map +1 -0
  45. package/dist/generated/prisma/models/Chat.d.ts +788 -0
  46. package/dist/generated/prisma/models/Chat.d.ts.map +1 -0
  47. package/dist/generated/prisma/models/Chat.js +2 -0
  48. package/dist/generated/prisma/models/Chat.js.map +1 -0
  49. package/dist/generated/prisma/models/ChatUser.d.ts +648 -0
  50. package/dist/generated/prisma/models/ChatUser.d.ts.map +1 -0
  51. package/dist/generated/prisma/models/ChatUser.js +2 -0
  52. package/dist/generated/prisma/models/ChatUser.js.map +1 -0
  53. package/dist/generated/prisma/models/Country.d.ts +543 -0
  54. package/dist/generated/prisma/models/Country.d.ts.map +1 -0
  55. package/dist/generated/prisma/models/Country.js +2 -0
  56. package/dist/generated/prisma/models/Country.js.map +1 -0
  57. package/dist/generated/prisma/models/Event.d.ts +3206 -0
  58. package/dist/generated/prisma/models/Event.d.ts.map +1 -0
  59. package/dist/generated/prisma/models/Event.js +2 -0
  60. package/dist/generated/prisma/models/Event.js.map +1 -0
  61. package/dist/generated/prisma/models/EventCategory.d.ts +1004 -0
  62. package/dist/generated/prisma/models/EventCategory.d.ts.map +1 -0
  63. package/dist/generated/prisma/models/EventCategory.js +2 -0
  64. package/dist/generated/prisma/models/EventCategory.js.map +1 -0
  65. package/dist/generated/prisma/models/EventPrice.d.ts +798 -0
  66. package/dist/generated/prisma/models/EventPrice.d.ts.map +1 -0
  67. package/dist/generated/prisma/models/EventPrice.js +2 -0
  68. package/dist/generated/prisma/models/EventPrice.js.map +1 -0
  69. package/dist/generated/prisma/models/Favorite.d.ts +648 -0
  70. package/dist/generated/prisma/models/Favorite.d.ts.map +1 -0
  71. package/dist/generated/prisma/models/Favorite.js +2 -0
  72. package/dist/generated/prisma/models/Favorite.js.map +1 -0
  73. package/dist/generated/prisma/models/Feedback.d.ts +682 -0
  74. package/dist/generated/prisma/models/Feedback.d.ts.map +1 -0
  75. package/dist/generated/prisma/models/Feedback.js +2 -0
  76. package/dist/generated/prisma/models/Feedback.js.map +1 -0
  77. package/dist/generated/prisma/models/Message.d.ts +724 -0
  78. package/dist/generated/prisma/models/Message.d.ts.map +1 -0
  79. package/dist/generated/prisma/models/Message.js +2 -0
  80. package/dist/generated/prisma/models/Message.js.map +1 -0
  81. package/dist/generated/prisma/models/Newsletter.d.ts +404 -0
  82. package/dist/generated/prisma/models/Newsletter.d.ts.map +1 -0
  83. package/dist/generated/prisma/models/Newsletter.js +2 -0
  84. package/dist/generated/prisma/models/Newsletter.js.map +1 -0
  85. package/dist/generated/prisma/models/Notification.d.ts +775 -0
  86. package/dist/generated/prisma/models/Notification.d.ts.map +1 -0
  87. package/dist/generated/prisma/models/Notification.js +2 -0
  88. package/dist/generated/prisma/models/Notification.js.map +1 -0
  89. package/dist/generated/prisma/models/Order.d.ts +1009 -0
  90. package/dist/generated/prisma/models/Order.d.ts.map +1 -0
  91. package/dist/generated/prisma/models/Order.js +2 -0
  92. package/dist/generated/prisma/models/Order.js.map +1 -0
  93. package/dist/generated/prisma/models/OrderItem.d.ts +806 -0
  94. package/dist/generated/prisma/models/OrderItem.d.ts.map +1 -0
  95. package/dist/generated/prisma/models/OrderItem.js +2 -0
  96. package/dist/generated/prisma/models/OrderItem.js.map +1 -0
  97. package/dist/generated/prisma/models/Pricing.d.ts +739 -0
  98. package/dist/generated/prisma/models/Pricing.d.ts.map +1 -0
  99. package/dist/generated/prisma/models/Pricing.js +2 -0
  100. package/dist/generated/prisma/models/Pricing.js.map +1 -0
  101. package/dist/generated/prisma/models/Provider.d.ts +1650 -0
  102. package/dist/generated/prisma/models/Provider.d.ts.map +1 -0
  103. package/dist/generated/prisma/models/Provider.js +2 -0
  104. package/dist/generated/prisma/models/Provider.js.map +1 -0
  105. package/dist/generated/prisma/models/ProviderCategory.d.ts +830 -0
  106. package/dist/generated/prisma/models/ProviderCategory.d.ts.map +1 -0
  107. package/dist/generated/prisma/models/ProviderCategory.js +2 -0
  108. package/dist/generated/prisma/models/ProviderCategory.js.map +1 -0
  109. package/dist/generated/prisma/models/ProviderOnEvent.d.ts +693 -0
  110. package/dist/generated/prisma/models/ProviderOnEvent.d.ts.map +1 -0
  111. package/dist/generated/prisma/models/ProviderOnEvent.js +2 -0
  112. package/dist/generated/prisma/models/ProviderOnEvent.js.map +1 -0
  113. package/dist/generated/prisma/models/Report.d.ts +689 -0
  114. package/dist/generated/prisma/models/Report.d.ts.map +1 -0
  115. package/dist/generated/prisma/models/Report.js +2 -0
  116. package/dist/generated/prisma/models/Report.js.map +1 -0
  117. package/dist/generated/prisma/models/Review.d.ts +758 -0
  118. package/dist/generated/prisma/models/Review.d.ts.map +1 -0
  119. package/dist/generated/prisma/models/Review.js +2 -0
  120. package/dist/generated/prisma/models/Review.js.map +1 -0
  121. package/dist/generated/prisma/models/Transaction.d.ts +894 -0
  122. package/dist/generated/prisma/models/Transaction.d.ts.map +1 -0
  123. package/dist/generated/prisma/models/Transaction.js +2 -0
  124. package/dist/generated/prisma/models/Transaction.js.map +1 -0
  125. package/dist/generated/prisma/models/User.d.ts +2966 -0
  126. package/dist/generated/prisma/models/User.d.ts.map +1 -0
  127. package/dist/generated/prisma/models/User.js +2 -0
  128. package/dist/generated/prisma/models/User.js.map +1 -0
  129. package/dist/generated/prisma/models/UserInterests.d.ts +605 -0
  130. package/dist/generated/prisma/models/UserInterests.d.ts.map +1 -0
  131. package/dist/generated/prisma/models/UserInterests.js +2 -0
  132. package/dist/generated/prisma/models/UserInterests.js.map +1 -0
  133. package/dist/generated/prisma/models.d.ts +26 -0
  134. package/dist/generated/prisma/models.d.ts.map +1 -0
  135. package/dist/generated/prisma/models.js +2 -0
  136. package/dist/generated/prisma/models.js.map +1 -0
  137. package/dist/index.d.ts +1 -1
  138. package/dist/index.d.ts.map +1 -1
  139. package/dist/index.js +15 -51
  140. package/dist/index.js.map +1 -1
  141. package/dist/prisma/prisma.module.js +8 -11
  142. package/dist/prisma/prisma.module.js.map +1 -1
  143. package/dist/prisma/prisma.service.d.ts +2 -1
  144. package/dist/prisma/prisma.service.d.ts.map +1 -1
  145. package/dist/prisma/prisma.service.js +17 -9
  146. package/dist/prisma/prisma.service.js.map +1 -1
  147. package/dist/prisma/seed.js +6 -4
  148. package/dist/prisma/seed.js.map +1 -1
  149. package/dist/src/auth/admin.middleware.d.ts +11 -0
  150. package/dist/src/auth/admin.middleware.d.ts.map +1 -0
  151. package/dist/src/auth/admin.middleware.js +22 -0
  152. package/dist/src/auth/admin.middleware.js.map +1 -0
  153. package/dist/src/auth/auth.guard.d.ts +25 -0
  154. package/dist/src/auth/auth.guard.d.ts.map +1 -0
  155. package/dist/src/auth/auth.guard.js +137 -0
  156. package/dist/src/auth/auth.guard.js.map +1 -0
  157. package/dist/src/auth/auth.module.d.ts +9 -0
  158. package/dist/src/auth/auth.module.d.ts.map +1 -0
  159. package/dist/src/auth/auth.module.js +30 -0
  160. package/dist/src/auth/auth.module.js.map +1 -0
  161. package/dist/src/cache/cache.module.d.ts +5 -0
  162. package/dist/src/cache/cache.module.d.ts.map +1 -0
  163. package/dist/src/cache/cache.module.js +35 -0
  164. package/dist/src/cache/cache.module.js.map +1 -0
  165. package/dist/src/cache/cache.service.d.ts +9 -0
  166. package/dist/src/cache/cache.service.d.ts.map +1 -0
  167. package/dist/src/cache/cache.service.js +36 -0
  168. package/dist/src/cache/cache.service.js.map +1 -0
  169. package/dist/src/index.d.ts +16 -0
  170. package/dist/src/index.d.ts.map +1 -0
  171. package/dist/src/index.js +16 -0
  172. package/dist/src/index.js.map +1 -0
  173. package/dist/src/prisma/prisma.module.d.ts +3 -0
  174. package/dist/src/prisma/prisma.module.d.ts.map +1 -0
  175. package/dist/src/prisma/prisma.module.js +19 -0
  176. package/dist/src/prisma/prisma.module.js.map +1 -0
  177. package/dist/src/prisma/prisma.service.d.ts +8 -0
  178. package/dist/src/prisma/prisma.service.d.ts.map +1 -0
  179. package/dist/src/prisma/prisma.service.js +32 -0
  180. package/dist/src/prisma/prisma.service.js.map +1 -0
  181. package/dist/src/prisma/seed.d.ts +2 -0
  182. package/dist/src/prisma/seed.d.ts.map +1 -0
  183. package/dist/src/prisma/seed.js +75 -0
  184. package/dist/src/prisma/seed.js.map +1 -0
  185. package/dist/src/types/index.d.ts +12 -0
  186. package/dist/src/types/index.d.ts.map +1 -0
  187. package/dist/src/types/index.js +2 -0
  188. package/dist/src/types/index.js.map +1 -0
  189. package/dist/src/utils/api/endpoints.d.ts +7 -0
  190. package/dist/src/utils/api/endpoints.d.ts.map +1 -0
  191. package/dist/src/utils/api/endpoints.js +7 -0
  192. package/dist/src/utils/api/endpoints.js.map +1 -0
  193. package/dist/src/utils/constants.d.ts +3 -0
  194. package/dist/src/utils/constants.d.ts.map +1 -0
  195. package/dist/src/utils/constants.js +12 -0
  196. package/dist/src/utils/constants.js.map +1 -0
  197. package/dist/src/utils/events.d.ts +7 -0
  198. package/dist/src/utils/events.d.ts.map +1 -0
  199. package/dist/src/utils/events.js +7 -0
  200. package/dist/src/utils/events.js.map +1 -0
  201. package/dist/src/utils/index.d.ts +8 -0
  202. package/dist/src/utils/index.d.ts.map +1 -0
  203. package/dist/src/utils/index.js +9 -0
  204. package/dist/src/utils/index.js.map +1 -0
  205. package/dist/types/index.js +1 -2
  206. package/dist/utils/api/endpoints.js +3 -6
  207. package/dist/utils/api/endpoints.js.map +1 -1
  208. package/dist/utils/constants.js +2 -5
  209. package/dist/utils/constants.js.map +1 -1
  210. package/dist/utils/events.js +1 -4
  211. package/dist/utils/events.js.map +1 -1
  212. package/dist/utils/index.js +2 -7
  213. package/dist/utils/index.js.map +1 -1
  214. package/package.json +25 -20
  215. package/prisma/schema.prisma +3 -2
  216. package/prisma.config.ts +13 -0
  217. package/src/auth/admin.middleware.ts +2 -1
  218. package/src/auth/auth.guard.ts +11 -4
  219. package/src/auth/auth.module.ts +1 -1
  220. package/src/generated/prisma/browser.ts +139 -0
  221. package/src/generated/prisma/client.ts +163 -0
  222. package/src/generated/prisma/commonInputTypes.ts +1102 -0
  223. package/src/generated/prisma/enums.ts +173 -0
  224. package/src/generated/prisma/internal/class.ts +434 -0
  225. package/src/generated/prisma/internal/prismaNamespace.ts +3141 -0
  226. package/src/generated/prisma/internal/prismaNamespaceBrowser.ts +489 -0
  227. package/src/generated/prisma/models/Account.ts +1384 -0
  228. package/src/generated/prisma/models/Address.ts +1791 -0
  229. package/src/generated/prisma/models/Chat.ts +1676 -0
  230. package/src/generated/prisma/models/ChatUser.ts +1465 -0
  231. package/src/generated/prisma/models/Country.ts +1361 -0
  232. package/src/generated/prisma/models/Event.ts +4258 -0
  233. package/src/generated/prisma/models/EventCategory.ts +1919 -0
  234. package/src/generated/prisma/models/EventPrice.ts +1657 -0
  235. package/src/generated/prisma/models/Favorite.ts +1465 -0
  236. package/src/generated/prisma/models/Feedback.ts +1513 -0
  237. package/src/generated/prisma/models/Message.ts +1541 -0
  238. package/src/generated/prisma/models/Newsletter.ts +1153 -0
  239. package/src/generated/prisma/models/Notification.ts +1605 -0
  240. package/src/generated/prisma/models/Order.ts +1883 -0
  241. package/src/generated/prisma/models/OrderItem.ts +1641 -0
  242. package/src/generated/prisma/models/Pricing.ts +1576 -0
  243. package/src/generated/prisma/models/Provider.ts +2577 -0
  244. package/src/generated/prisma/models/ProviderCategory.ts +1712 -0
  245. package/src/generated/prisma/models/ProviderOnEvent.ts +1510 -0
  246. package/src/generated/prisma/models/Report.ts +1506 -0
  247. package/src/generated/prisma/models/Review.ts +1591 -0
  248. package/src/generated/prisma/models/Transaction.ts +1741 -0
  249. package/src/generated/prisma/models/User.ts +4124 -0
  250. package/src/generated/prisma/models/UserInterests.ts +1447 -0
  251. package/src/generated/prisma/models.ts +35 -0
  252. package/src/index.ts +1 -1
  253. package/src/prisma/prisma.service.ts +10 -1
  254. package/src/prisma/seed.ts +8 -3
  255. package/tsconfig.json +13 -7
@@ -0,0 +1,1361 @@
1
+
2
+ /* !!! This is code generated by Prisma. Do not edit directly. !!! */
3
+ /* eslint-disable */
4
+ // biome-ignore-all lint: generated file
5
+ // @ts-nocheck
6
+ /*
7
+ * This file exports the `Country` model and its related types.
8
+ *
9
+ * 🟢 You can import this file directly.
10
+ */
11
+ import type * as runtime from "@prisma/client/runtime/client"
12
+ import type * as $Enums from "../enums"
13
+ import type * as Prisma from "../internal/prismaNamespace"
14
+
15
+ /**
16
+ * Model Country
17
+ *
18
+ */
19
+ export type CountryModel = runtime.Types.Result.DefaultSelection<Prisma.$CountryPayload>
20
+
21
+ export type AggregateCountry = {
22
+ _count: CountryCountAggregateOutputType | null
23
+ _min: CountryMinAggregateOutputType | null
24
+ _max: CountryMaxAggregateOutputType | null
25
+ }
26
+
27
+ export type CountryMinAggregateOutputType = {
28
+ id: string | null
29
+ name: string | null
30
+ code: string | null
31
+ indicatif: string | null
32
+ createdAt: Date | null
33
+ updatedAt: Date | null
34
+ }
35
+
36
+ export type CountryMaxAggregateOutputType = {
37
+ id: string | null
38
+ name: string | null
39
+ code: string | null
40
+ indicatif: string | null
41
+ createdAt: Date | null
42
+ updatedAt: Date | null
43
+ }
44
+
45
+ export type CountryCountAggregateOutputType = {
46
+ id: number
47
+ name: number
48
+ code: number
49
+ indicatif: number
50
+ createdAt: number
51
+ updatedAt: number
52
+ _all: number
53
+ }
54
+
55
+
56
+ export type CountryMinAggregateInputType = {
57
+ id?: true
58
+ name?: true
59
+ code?: true
60
+ indicatif?: true
61
+ createdAt?: true
62
+ updatedAt?: true
63
+ }
64
+
65
+ export type CountryMaxAggregateInputType = {
66
+ id?: true
67
+ name?: true
68
+ code?: true
69
+ indicatif?: true
70
+ createdAt?: true
71
+ updatedAt?: true
72
+ }
73
+
74
+ export type CountryCountAggregateInputType = {
75
+ id?: true
76
+ name?: true
77
+ code?: true
78
+ indicatif?: true
79
+ createdAt?: true
80
+ updatedAt?: true
81
+ _all?: true
82
+ }
83
+
84
+ export type CountryAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
85
+ /**
86
+ * Filter which Country to aggregate.
87
+ */
88
+ where?: Prisma.CountryWhereInput
89
+ /**
90
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
91
+ *
92
+ * Determine the order of Countries to fetch.
93
+ */
94
+ orderBy?: Prisma.CountryOrderByWithRelationInput | Prisma.CountryOrderByWithRelationInput[]
95
+ /**
96
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
97
+ *
98
+ * Sets the start position
99
+ */
100
+ cursor?: Prisma.CountryWhereUniqueInput
101
+ /**
102
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
103
+ *
104
+ * Take `±n` Countries from the position of the cursor.
105
+ */
106
+ take?: number
107
+ /**
108
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
109
+ *
110
+ * Skip the first `n` Countries.
111
+ */
112
+ skip?: number
113
+ /**
114
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
115
+ *
116
+ * Count returned Countries
117
+ **/
118
+ _count?: true | CountryCountAggregateInputType
119
+ /**
120
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
121
+ *
122
+ * Select which fields to find the minimum value
123
+ **/
124
+ _min?: CountryMinAggregateInputType
125
+ /**
126
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
127
+ *
128
+ * Select which fields to find the maximum value
129
+ **/
130
+ _max?: CountryMaxAggregateInputType
131
+ }
132
+
133
+ export type GetCountryAggregateType<T extends CountryAggregateArgs> = {
134
+ [P in keyof T & keyof AggregateCountry]: P extends '_count' | 'count'
135
+ ? T[P] extends true
136
+ ? number
137
+ : Prisma.GetScalarType<T[P], AggregateCountry[P]>
138
+ : Prisma.GetScalarType<T[P], AggregateCountry[P]>
139
+ }
140
+
141
+
142
+
143
+
144
+ export type CountryGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
145
+ where?: Prisma.CountryWhereInput
146
+ orderBy?: Prisma.CountryOrderByWithAggregationInput | Prisma.CountryOrderByWithAggregationInput[]
147
+ by: Prisma.CountryScalarFieldEnum[] | Prisma.CountryScalarFieldEnum
148
+ having?: Prisma.CountryScalarWhereWithAggregatesInput
149
+ take?: number
150
+ skip?: number
151
+ _count?: CountryCountAggregateInputType | true
152
+ _min?: CountryMinAggregateInputType
153
+ _max?: CountryMaxAggregateInputType
154
+ }
155
+
156
+ export type CountryGroupByOutputType = {
157
+ id: string
158
+ name: string
159
+ code: string
160
+ indicatif: string
161
+ createdAt: Date
162
+ updatedAt: Date
163
+ _count: CountryCountAggregateOutputType | null
164
+ _min: CountryMinAggregateOutputType | null
165
+ _max: CountryMaxAggregateOutputType | null
166
+ }
167
+
168
+ export type GetCountryGroupByPayload<T extends CountryGroupByArgs> = Prisma.PrismaPromise<
169
+ Array<
170
+ Prisma.PickEnumerable<CountryGroupByOutputType, T['by']> &
171
+ {
172
+ [P in ((keyof T) & (keyof CountryGroupByOutputType))]: P extends '_count'
173
+ ? T[P] extends boolean
174
+ ? number
175
+ : Prisma.GetScalarType<T[P], CountryGroupByOutputType[P]>
176
+ : Prisma.GetScalarType<T[P], CountryGroupByOutputType[P]>
177
+ }
178
+ >
179
+ >
180
+
181
+
182
+
183
+ export type CountryWhereInput = {
184
+ AND?: Prisma.CountryWhereInput | Prisma.CountryWhereInput[]
185
+ OR?: Prisma.CountryWhereInput[]
186
+ NOT?: Prisma.CountryWhereInput | Prisma.CountryWhereInput[]
187
+ id?: Prisma.StringFilter<"Country"> | string
188
+ name?: Prisma.StringFilter<"Country"> | string
189
+ code?: Prisma.StringFilter<"Country"> | string
190
+ indicatif?: Prisma.StringFilter<"Country"> | string
191
+ createdAt?: Prisma.DateTimeFilter<"Country"> | Date | string
192
+ updatedAt?: Prisma.DateTimeFilter<"Country"> | Date | string
193
+ events?: Prisma.EventListRelationFilter
194
+ }
195
+
196
+ export type CountryOrderByWithRelationInput = {
197
+ id?: Prisma.SortOrder
198
+ name?: Prisma.SortOrder
199
+ code?: Prisma.SortOrder
200
+ indicatif?: Prisma.SortOrder
201
+ createdAt?: Prisma.SortOrder
202
+ updatedAt?: Prisma.SortOrder
203
+ events?: Prisma.EventOrderByRelationAggregateInput
204
+ }
205
+
206
+ export type CountryWhereUniqueInput = Prisma.AtLeast<{
207
+ id?: string
208
+ name?: string
209
+ code?: string
210
+ AND?: Prisma.CountryWhereInput | Prisma.CountryWhereInput[]
211
+ OR?: Prisma.CountryWhereInput[]
212
+ NOT?: Prisma.CountryWhereInput | Prisma.CountryWhereInput[]
213
+ indicatif?: Prisma.StringFilter<"Country"> | string
214
+ createdAt?: Prisma.DateTimeFilter<"Country"> | Date | string
215
+ updatedAt?: Prisma.DateTimeFilter<"Country"> | Date | string
216
+ events?: Prisma.EventListRelationFilter
217
+ }, "id" | "name" | "code">
218
+
219
+ export type CountryOrderByWithAggregationInput = {
220
+ id?: Prisma.SortOrder
221
+ name?: Prisma.SortOrder
222
+ code?: Prisma.SortOrder
223
+ indicatif?: Prisma.SortOrder
224
+ createdAt?: Prisma.SortOrder
225
+ updatedAt?: Prisma.SortOrder
226
+ _count?: Prisma.CountryCountOrderByAggregateInput
227
+ _max?: Prisma.CountryMaxOrderByAggregateInput
228
+ _min?: Prisma.CountryMinOrderByAggregateInput
229
+ }
230
+
231
+ export type CountryScalarWhereWithAggregatesInput = {
232
+ AND?: Prisma.CountryScalarWhereWithAggregatesInput | Prisma.CountryScalarWhereWithAggregatesInput[]
233
+ OR?: Prisma.CountryScalarWhereWithAggregatesInput[]
234
+ NOT?: Prisma.CountryScalarWhereWithAggregatesInput | Prisma.CountryScalarWhereWithAggregatesInput[]
235
+ id?: Prisma.StringWithAggregatesFilter<"Country"> | string
236
+ name?: Prisma.StringWithAggregatesFilter<"Country"> | string
237
+ code?: Prisma.StringWithAggregatesFilter<"Country"> | string
238
+ indicatif?: Prisma.StringWithAggregatesFilter<"Country"> | string
239
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"Country"> | Date | string
240
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Country"> | Date | string
241
+ }
242
+
243
+ export type CountryCreateInput = {
244
+ id?: string
245
+ name: string
246
+ code: string
247
+ indicatif: string
248
+ createdAt?: Date | string
249
+ updatedAt?: Date | string
250
+ events?: Prisma.EventCreateNestedManyWithoutCountryInput
251
+ }
252
+
253
+ export type CountryUncheckedCreateInput = {
254
+ id?: string
255
+ name: string
256
+ code: string
257
+ indicatif: string
258
+ createdAt?: Date | string
259
+ updatedAt?: Date | string
260
+ events?: Prisma.EventUncheckedCreateNestedManyWithoutCountryInput
261
+ }
262
+
263
+ export type CountryUpdateInput = {
264
+ id?: Prisma.StringFieldUpdateOperationsInput | string
265
+ name?: Prisma.StringFieldUpdateOperationsInput | string
266
+ code?: Prisma.StringFieldUpdateOperationsInput | string
267
+ indicatif?: Prisma.StringFieldUpdateOperationsInput | string
268
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
269
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
270
+ events?: Prisma.EventUpdateManyWithoutCountryNestedInput
271
+ }
272
+
273
+ export type CountryUncheckedUpdateInput = {
274
+ id?: Prisma.StringFieldUpdateOperationsInput | string
275
+ name?: Prisma.StringFieldUpdateOperationsInput | string
276
+ code?: Prisma.StringFieldUpdateOperationsInput | string
277
+ indicatif?: Prisma.StringFieldUpdateOperationsInput | string
278
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
279
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
280
+ events?: Prisma.EventUncheckedUpdateManyWithoutCountryNestedInput
281
+ }
282
+
283
+ export type CountryCreateManyInput = {
284
+ id?: string
285
+ name: string
286
+ code: string
287
+ indicatif: string
288
+ createdAt?: Date | string
289
+ updatedAt?: Date | string
290
+ }
291
+
292
+ export type CountryUpdateManyMutationInput = {
293
+ id?: Prisma.StringFieldUpdateOperationsInput | string
294
+ name?: Prisma.StringFieldUpdateOperationsInput | string
295
+ code?: Prisma.StringFieldUpdateOperationsInput | string
296
+ indicatif?: Prisma.StringFieldUpdateOperationsInput | string
297
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
298
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
299
+ }
300
+
301
+ export type CountryUncheckedUpdateManyInput = {
302
+ id?: Prisma.StringFieldUpdateOperationsInput | string
303
+ name?: Prisma.StringFieldUpdateOperationsInput | string
304
+ code?: Prisma.StringFieldUpdateOperationsInput | string
305
+ indicatif?: Prisma.StringFieldUpdateOperationsInput | string
306
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
307
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
308
+ }
309
+
310
+ export type CountryNullableScalarRelationFilter = {
311
+ is?: Prisma.CountryWhereInput | null
312
+ isNot?: Prisma.CountryWhereInput | null
313
+ }
314
+
315
+ export type CountryCountOrderByAggregateInput = {
316
+ id?: Prisma.SortOrder
317
+ name?: Prisma.SortOrder
318
+ code?: Prisma.SortOrder
319
+ indicatif?: Prisma.SortOrder
320
+ createdAt?: Prisma.SortOrder
321
+ updatedAt?: Prisma.SortOrder
322
+ }
323
+
324
+ export type CountryMaxOrderByAggregateInput = {
325
+ id?: Prisma.SortOrder
326
+ name?: Prisma.SortOrder
327
+ code?: Prisma.SortOrder
328
+ indicatif?: Prisma.SortOrder
329
+ createdAt?: Prisma.SortOrder
330
+ updatedAt?: Prisma.SortOrder
331
+ }
332
+
333
+ export type CountryMinOrderByAggregateInput = {
334
+ id?: Prisma.SortOrder
335
+ name?: Prisma.SortOrder
336
+ code?: Prisma.SortOrder
337
+ indicatif?: Prisma.SortOrder
338
+ createdAt?: Prisma.SortOrder
339
+ updatedAt?: Prisma.SortOrder
340
+ }
341
+
342
+ export type CountryCreateNestedOneWithoutEventsInput = {
343
+ create?: Prisma.XOR<Prisma.CountryCreateWithoutEventsInput, Prisma.CountryUncheckedCreateWithoutEventsInput>
344
+ connectOrCreate?: Prisma.CountryCreateOrConnectWithoutEventsInput
345
+ connect?: Prisma.CountryWhereUniqueInput
346
+ }
347
+
348
+ export type CountryUpdateOneWithoutEventsNestedInput = {
349
+ create?: Prisma.XOR<Prisma.CountryCreateWithoutEventsInput, Prisma.CountryUncheckedCreateWithoutEventsInput>
350
+ connectOrCreate?: Prisma.CountryCreateOrConnectWithoutEventsInput
351
+ upsert?: Prisma.CountryUpsertWithoutEventsInput
352
+ disconnect?: Prisma.CountryWhereInput | boolean
353
+ delete?: Prisma.CountryWhereInput | boolean
354
+ connect?: Prisma.CountryWhereUniqueInput
355
+ update?: Prisma.XOR<Prisma.XOR<Prisma.CountryUpdateToOneWithWhereWithoutEventsInput, Prisma.CountryUpdateWithoutEventsInput>, Prisma.CountryUncheckedUpdateWithoutEventsInput>
356
+ }
357
+
358
+ export type CountryCreateWithoutEventsInput = {
359
+ id?: string
360
+ name: string
361
+ code: string
362
+ indicatif: string
363
+ createdAt?: Date | string
364
+ updatedAt?: Date | string
365
+ }
366
+
367
+ export type CountryUncheckedCreateWithoutEventsInput = {
368
+ id?: string
369
+ name: string
370
+ code: string
371
+ indicatif: string
372
+ createdAt?: Date | string
373
+ updatedAt?: Date | string
374
+ }
375
+
376
+ export type CountryCreateOrConnectWithoutEventsInput = {
377
+ where: Prisma.CountryWhereUniqueInput
378
+ create: Prisma.XOR<Prisma.CountryCreateWithoutEventsInput, Prisma.CountryUncheckedCreateWithoutEventsInput>
379
+ }
380
+
381
+ export type CountryUpsertWithoutEventsInput = {
382
+ update: Prisma.XOR<Prisma.CountryUpdateWithoutEventsInput, Prisma.CountryUncheckedUpdateWithoutEventsInput>
383
+ create: Prisma.XOR<Prisma.CountryCreateWithoutEventsInput, Prisma.CountryUncheckedCreateWithoutEventsInput>
384
+ where?: Prisma.CountryWhereInput
385
+ }
386
+
387
+ export type CountryUpdateToOneWithWhereWithoutEventsInput = {
388
+ where?: Prisma.CountryWhereInput
389
+ data: Prisma.XOR<Prisma.CountryUpdateWithoutEventsInput, Prisma.CountryUncheckedUpdateWithoutEventsInput>
390
+ }
391
+
392
+ export type CountryUpdateWithoutEventsInput = {
393
+ id?: Prisma.StringFieldUpdateOperationsInput | string
394
+ name?: Prisma.StringFieldUpdateOperationsInput | string
395
+ code?: Prisma.StringFieldUpdateOperationsInput | string
396
+ indicatif?: Prisma.StringFieldUpdateOperationsInput | string
397
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
398
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
399
+ }
400
+
401
+ export type CountryUncheckedUpdateWithoutEventsInput = {
402
+ id?: Prisma.StringFieldUpdateOperationsInput | string
403
+ name?: Prisma.StringFieldUpdateOperationsInput | string
404
+ code?: Prisma.StringFieldUpdateOperationsInput | string
405
+ indicatif?: Prisma.StringFieldUpdateOperationsInput | string
406
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
407
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
408
+ }
409
+
410
+
411
+ /**
412
+ * Count Type CountryCountOutputType
413
+ */
414
+
415
+ export type CountryCountOutputType = {
416
+ events: number
417
+ }
418
+
419
+ export type CountryCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
420
+ events?: boolean | CountryCountOutputTypeCountEventsArgs
421
+ }
422
+
423
+ /**
424
+ * CountryCountOutputType without action
425
+ */
426
+ export type CountryCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
427
+ /**
428
+ * Select specific fields to fetch from the CountryCountOutputType
429
+ */
430
+ select?: Prisma.CountryCountOutputTypeSelect<ExtArgs> | null
431
+ }
432
+
433
+ /**
434
+ * CountryCountOutputType without action
435
+ */
436
+ export type CountryCountOutputTypeCountEventsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
437
+ where?: Prisma.EventWhereInput
438
+ }
439
+
440
+
441
+ export type CountrySelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
442
+ id?: boolean
443
+ name?: boolean
444
+ code?: boolean
445
+ indicatif?: boolean
446
+ createdAt?: boolean
447
+ updatedAt?: boolean
448
+ events?: boolean | Prisma.Country$eventsArgs<ExtArgs>
449
+ _count?: boolean | Prisma.CountryCountOutputTypeDefaultArgs<ExtArgs>
450
+ }, ExtArgs["result"]["country"]>
451
+
452
+ export type CountrySelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
453
+ id?: boolean
454
+ name?: boolean
455
+ code?: boolean
456
+ indicatif?: boolean
457
+ createdAt?: boolean
458
+ updatedAt?: boolean
459
+ }, ExtArgs["result"]["country"]>
460
+
461
+ export type CountrySelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
462
+ id?: boolean
463
+ name?: boolean
464
+ code?: boolean
465
+ indicatif?: boolean
466
+ createdAt?: boolean
467
+ updatedAt?: boolean
468
+ }, ExtArgs["result"]["country"]>
469
+
470
+ export type CountrySelectScalar = {
471
+ id?: boolean
472
+ name?: boolean
473
+ code?: boolean
474
+ indicatif?: boolean
475
+ createdAt?: boolean
476
+ updatedAt?: boolean
477
+ }
478
+
479
+ export type CountryOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "code" | "indicatif" | "createdAt" | "updatedAt", ExtArgs["result"]["country"]>
480
+ export type CountryInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
481
+ events?: boolean | Prisma.Country$eventsArgs<ExtArgs>
482
+ _count?: boolean | Prisma.CountryCountOutputTypeDefaultArgs<ExtArgs>
483
+ }
484
+ export type CountryIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
485
+ export type CountryIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
486
+
487
+ export type $CountryPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
488
+ name: "Country"
489
+ objects: {
490
+ events: Prisma.$EventPayload<ExtArgs>[]
491
+ }
492
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
493
+ id: string
494
+ name: string
495
+ code: string
496
+ indicatif: string
497
+ createdAt: Date
498
+ updatedAt: Date
499
+ }, ExtArgs["result"]["country"]>
500
+ composites: {}
501
+ }
502
+
503
+ export type CountryGetPayload<S extends boolean | null | undefined | CountryDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$CountryPayload, S>
504
+
505
+ export type CountryCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
506
+ Omit<CountryFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
507
+ select?: CountryCountAggregateInputType | true
508
+ }
509
+
510
+ export interface CountryDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
511
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Country'], meta: { name: 'Country' } }
512
+ /**
513
+ * Find zero or one Country that matches the filter.
514
+ * @param {CountryFindUniqueArgs} args - Arguments to find a Country
515
+ * @example
516
+ * // Get one Country
517
+ * const country = await prisma.country.findUnique({
518
+ * where: {
519
+ * // ... provide filter here
520
+ * }
521
+ * })
522
+ */
523
+ findUnique<T extends CountryFindUniqueArgs>(args: Prisma.SelectSubset<T, CountryFindUniqueArgs<ExtArgs>>): Prisma.Prisma__CountryClient<runtime.Types.Result.GetResult<Prisma.$CountryPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
524
+
525
+ /**
526
+ * Find one Country that matches the filter or throw an error with `error.code='P2025'`
527
+ * if no matches were found.
528
+ * @param {CountryFindUniqueOrThrowArgs} args - Arguments to find a Country
529
+ * @example
530
+ * // Get one Country
531
+ * const country = await prisma.country.findUniqueOrThrow({
532
+ * where: {
533
+ * // ... provide filter here
534
+ * }
535
+ * })
536
+ */
537
+ findUniqueOrThrow<T extends CountryFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, CountryFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__CountryClient<runtime.Types.Result.GetResult<Prisma.$CountryPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
538
+
539
+ /**
540
+ * Find the first Country that matches the filter.
541
+ * Note, that providing `undefined` is treated as the value not being there.
542
+ * Read more here: https://pris.ly/d/null-undefined
543
+ * @param {CountryFindFirstArgs} args - Arguments to find a Country
544
+ * @example
545
+ * // Get one Country
546
+ * const country = await prisma.country.findFirst({
547
+ * where: {
548
+ * // ... provide filter here
549
+ * }
550
+ * })
551
+ */
552
+ findFirst<T extends CountryFindFirstArgs>(args?: Prisma.SelectSubset<T, CountryFindFirstArgs<ExtArgs>>): Prisma.Prisma__CountryClient<runtime.Types.Result.GetResult<Prisma.$CountryPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
553
+
554
+ /**
555
+ * Find the first Country that matches the filter or
556
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
557
+ * Note, that providing `undefined` is treated as the value not being there.
558
+ * Read more here: https://pris.ly/d/null-undefined
559
+ * @param {CountryFindFirstOrThrowArgs} args - Arguments to find a Country
560
+ * @example
561
+ * // Get one Country
562
+ * const country = await prisma.country.findFirstOrThrow({
563
+ * where: {
564
+ * // ... provide filter here
565
+ * }
566
+ * })
567
+ */
568
+ findFirstOrThrow<T extends CountryFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, CountryFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__CountryClient<runtime.Types.Result.GetResult<Prisma.$CountryPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
569
+
570
+ /**
571
+ * Find zero or more Countries that matches the filter.
572
+ * Note, that providing `undefined` is treated as the value not being there.
573
+ * Read more here: https://pris.ly/d/null-undefined
574
+ * @param {CountryFindManyArgs} args - Arguments to filter and select certain fields only.
575
+ * @example
576
+ * // Get all Countries
577
+ * const countries = await prisma.country.findMany()
578
+ *
579
+ * // Get first 10 Countries
580
+ * const countries = await prisma.country.findMany({ take: 10 })
581
+ *
582
+ * // Only select the `id`
583
+ * const countryWithIdOnly = await prisma.country.findMany({ select: { id: true } })
584
+ *
585
+ */
586
+ findMany<T extends CountryFindManyArgs>(args?: Prisma.SelectSubset<T, CountryFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CountryPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
587
+
588
+ /**
589
+ * Create a Country.
590
+ * @param {CountryCreateArgs} args - Arguments to create a Country.
591
+ * @example
592
+ * // Create one Country
593
+ * const Country = await prisma.country.create({
594
+ * data: {
595
+ * // ... data to create a Country
596
+ * }
597
+ * })
598
+ *
599
+ */
600
+ create<T extends CountryCreateArgs>(args: Prisma.SelectSubset<T, CountryCreateArgs<ExtArgs>>): Prisma.Prisma__CountryClient<runtime.Types.Result.GetResult<Prisma.$CountryPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
601
+
602
+ /**
603
+ * Create many Countries.
604
+ * @param {CountryCreateManyArgs} args - Arguments to create many Countries.
605
+ * @example
606
+ * // Create many Countries
607
+ * const country = await prisma.country.createMany({
608
+ * data: [
609
+ * // ... provide data here
610
+ * ]
611
+ * })
612
+ *
613
+ */
614
+ createMany<T extends CountryCreateManyArgs>(args?: Prisma.SelectSubset<T, CountryCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
615
+
616
+ /**
617
+ * Create many Countries and returns the data saved in the database.
618
+ * @param {CountryCreateManyAndReturnArgs} args - Arguments to create many Countries.
619
+ * @example
620
+ * // Create many Countries
621
+ * const country = await prisma.country.createManyAndReturn({
622
+ * data: [
623
+ * // ... provide data here
624
+ * ]
625
+ * })
626
+ *
627
+ * // Create many Countries and only return the `id`
628
+ * const countryWithIdOnly = await prisma.country.createManyAndReturn({
629
+ * select: { id: true },
630
+ * data: [
631
+ * // ... provide data here
632
+ * ]
633
+ * })
634
+ * Note, that providing `undefined` is treated as the value not being there.
635
+ * Read more here: https://pris.ly/d/null-undefined
636
+ *
637
+ */
638
+ createManyAndReturn<T extends CountryCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, CountryCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CountryPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
639
+
640
+ /**
641
+ * Delete a Country.
642
+ * @param {CountryDeleteArgs} args - Arguments to delete one Country.
643
+ * @example
644
+ * // Delete one Country
645
+ * const Country = await prisma.country.delete({
646
+ * where: {
647
+ * // ... filter to delete one Country
648
+ * }
649
+ * })
650
+ *
651
+ */
652
+ delete<T extends CountryDeleteArgs>(args: Prisma.SelectSubset<T, CountryDeleteArgs<ExtArgs>>): Prisma.Prisma__CountryClient<runtime.Types.Result.GetResult<Prisma.$CountryPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
653
+
654
+ /**
655
+ * Update one Country.
656
+ * @param {CountryUpdateArgs} args - Arguments to update one Country.
657
+ * @example
658
+ * // Update one Country
659
+ * const country = await prisma.country.update({
660
+ * where: {
661
+ * // ... provide filter here
662
+ * },
663
+ * data: {
664
+ * // ... provide data here
665
+ * }
666
+ * })
667
+ *
668
+ */
669
+ update<T extends CountryUpdateArgs>(args: Prisma.SelectSubset<T, CountryUpdateArgs<ExtArgs>>): Prisma.Prisma__CountryClient<runtime.Types.Result.GetResult<Prisma.$CountryPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
670
+
671
+ /**
672
+ * Delete zero or more Countries.
673
+ * @param {CountryDeleteManyArgs} args - Arguments to filter Countries to delete.
674
+ * @example
675
+ * // Delete a few Countries
676
+ * const { count } = await prisma.country.deleteMany({
677
+ * where: {
678
+ * // ... provide filter here
679
+ * }
680
+ * })
681
+ *
682
+ */
683
+ deleteMany<T extends CountryDeleteManyArgs>(args?: Prisma.SelectSubset<T, CountryDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
684
+
685
+ /**
686
+ * Update zero or more Countries.
687
+ * Note, that providing `undefined` is treated as the value not being there.
688
+ * Read more here: https://pris.ly/d/null-undefined
689
+ * @param {CountryUpdateManyArgs} args - Arguments to update one or more rows.
690
+ * @example
691
+ * // Update many Countries
692
+ * const country = await prisma.country.updateMany({
693
+ * where: {
694
+ * // ... provide filter here
695
+ * },
696
+ * data: {
697
+ * // ... provide data here
698
+ * }
699
+ * })
700
+ *
701
+ */
702
+ updateMany<T extends CountryUpdateManyArgs>(args: Prisma.SelectSubset<T, CountryUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
703
+
704
+ /**
705
+ * Update zero or more Countries and returns the data updated in the database.
706
+ * @param {CountryUpdateManyAndReturnArgs} args - Arguments to update many Countries.
707
+ * @example
708
+ * // Update many Countries
709
+ * const country = await prisma.country.updateManyAndReturn({
710
+ * where: {
711
+ * // ... provide filter here
712
+ * },
713
+ * data: [
714
+ * // ... provide data here
715
+ * ]
716
+ * })
717
+ *
718
+ * // Update zero or more Countries and only return the `id`
719
+ * const countryWithIdOnly = await prisma.country.updateManyAndReturn({
720
+ * select: { id: true },
721
+ * where: {
722
+ * // ... provide filter here
723
+ * },
724
+ * data: [
725
+ * // ... provide data here
726
+ * ]
727
+ * })
728
+ * Note, that providing `undefined` is treated as the value not being there.
729
+ * Read more here: https://pris.ly/d/null-undefined
730
+ *
731
+ */
732
+ updateManyAndReturn<T extends CountryUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, CountryUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CountryPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
733
+
734
+ /**
735
+ * Create or update one Country.
736
+ * @param {CountryUpsertArgs} args - Arguments to update or create a Country.
737
+ * @example
738
+ * // Update or create a Country
739
+ * const country = await prisma.country.upsert({
740
+ * create: {
741
+ * // ... data to create a Country
742
+ * },
743
+ * update: {
744
+ * // ... in case it already exists, update
745
+ * },
746
+ * where: {
747
+ * // ... the filter for the Country we want to update
748
+ * }
749
+ * })
750
+ */
751
+ upsert<T extends CountryUpsertArgs>(args: Prisma.SelectSubset<T, CountryUpsertArgs<ExtArgs>>): Prisma.Prisma__CountryClient<runtime.Types.Result.GetResult<Prisma.$CountryPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
752
+
753
+
754
+ /**
755
+ * Count the number of Countries.
756
+ * Note, that providing `undefined` is treated as the value not being there.
757
+ * Read more here: https://pris.ly/d/null-undefined
758
+ * @param {CountryCountArgs} args - Arguments to filter Countries to count.
759
+ * @example
760
+ * // Count the number of Countries
761
+ * const count = await prisma.country.count({
762
+ * where: {
763
+ * // ... the filter for the Countries we want to count
764
+ * }
765
+ * })
766
+ **/
767
+ count<T extends CountryCountArgs>(
768
+ args?: Prisma.Subset<T, CountryCountArgs>,
769
+ ): Prisma.PrismaPromise<
770
+ T extends runtime.Types.Utils.Record<'select', any>
771
+ ? T['select'] extends true
772
+ ? number
773
+ : Prisma.GetScalarType<T['select'], CountryCountAggregateOutputType>
774
+ : number
775
+ >
776
+
777
+ /**
778
+ * Allows you to perform aggregations operations on a Country.
779
+ * Note, that providing `undefined` is treated as the value not being there.
780
+ * Read more here: https://pris.ly/d/null-undefined
781
+ * @param {CountryAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
782
+ * @example
783
+ * // Ordered by age ascending
784
+ * // Where email contains prisma.io
785
+ * // Limited to the 10 users
786
+ * const aggregations = await prisma.user.aggregate({
787
+ * _avg: {
788
+ * age: true,
789
+ * },
790
+ * where: {
791
+ * email: {
792
+ * contains: "prisma.io",
793
+ * },
794
+ * },
795
+ * orderBy: {
796
+ * age: "asc",
797
+ * },
798
+ * take: 10,
799
+ * })
800
+ **/
801
+ aggregate<T extends CountryAggregateArgs>(args: Prisma.Subset<T, CountryAggregateArgs>): Prisma.PrismaPromise<GetCountryAggregateType<T>>
802
+
803
+ /**
804
+ * Group by Country.
805
+ * Note, that providing `undefined` is treated as the value not being there.
806
+ * Read more here: https://pris.ly/d/null-undefined
807
+ * @param {CountryGroupByArgs} args - Group by arguments.
808
+ * @example
809
+ * // Group by city, order by createdAt, get count
810
+ * const result = await prisma.user.groupBy({
811
+ * by: ['city', 'createdAt'],
812
+ * orderBy: {
813
+ * createdAt: true
814
+ * },
815
+ * _count: {
816
+ * _all: true
817
+ * },
818
+ * })
819
+ *
820
+ **/
821
+ groupBy<
822
+ T extends CountryGroupByArgs,
823
+ HasSelectOrTake extends Prisma.Or<
824
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
825
+ Prisma.Extends<'take', Prisma.Keys<T>>
826
+ >,
827
+ OrderByArg extends Prisma.True extends HasSelectOrTake
828
+ ? { orderBy: CountryGroupByArgs['orderBy'] }
829
+ : { orderBy?: CountryGroupByArgs['orderBy'] },
830
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
831
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
832
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
833
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
834
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
835
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
836
+ InputErrors extends ByEmpty extends Prisma.True
837
+ ? `Error: "by" must not be empty.`
838
+ : HavingValid extends Prisma.False
839
+ ? {
840
+ [P in HavingFields]: P extends ByFields
841
+ ? never
842
+ : P extends string
843
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
844
+ : [
845
+ Error,
846
+ 'Field ',
847
+ P,
848
+ ` in "having" needs to be provided in "by"`,
849
+ ]
850
+ }[HavingFields]
851
+ : 'take' extends Prisma.Keys<T>
852
+ ? 'orderBy' extends Prisma.Keys<T>
853
+ ? ByValid extends Prisma.True
854
+ ? {}
855
+ : {
856
+ [P in OrderFields]: P extends ByFields
857
+ ? never
858
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
859
+ }[OrderFields]
860
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
861
+ : 'skip' extends Prisma.Keys<T>
862
+ ? 'orderBy' extends Prisma.Keys<T>
863
+ ? ByValid extends Prisma.True
864
+ ? {}
865
+ : {
866
+ [P in OrderFields]: P extends ByFields
867
+ ? never
868
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
869
+ }[OrderFields]
870
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
871
+ : ByValid extends Prisma.True
872
+ ? {}
873
+ : {
874
+ [P in OrderFields]: P extends ByFields
875
+ ? never
876
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
877
+ }[OrderFields]
878
+ >(args: Prisma.SubsetIntersection<T, CountryGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetCountryGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
879
+ /**
880
+ * Fields of the Country model
881
+ */
882
+ readonly fields: CountryFieldRefs;
883
+ }
884
+
885
+ /**
886
+ * The delegate class that acts as a "Promise-like" for Country.
887
+ * Why is this prefixed with `Prisma__`?
888
+ * Because we want to prevent naming conflicts as mentioned in
889
+ * https://github.com/prisma/prisma-client-js/issues/707
890
+ */
891
+ export interface Prisma__CountryClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
892
+ readonly [Symbol.toStringTag]: "PrismaPromise"
893
+ events<T extends Prisma.Country$eventsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Country$eventsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$EventPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
894
+ /**
895
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
896
+ * @param onfulfilled The callback to execute when the Promise is resolved.
897
+ * @param onrejected The callback to execute when the Promise is rejected.
898
+ * @returns A Promise for the completion of which ever callback is executed.
899
+ */
900
+ 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>
901
+ /**
902
+ * Attaches a callback for only the rejection of the Promise.
903
+ * @param onrejected The callback to execute when the Promise is rejected.
904
+ * @returns A Promise for the completion of the callback.
905
+ */
906
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
907
+ /**
908
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
909
+ * resolved value cannot be modified from the callback.
910
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
911
+ * @returns A Promise for the completion of the callback.
912
+ */
913
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
914
+ }
915
+
916
+
917
+
918
+
919
+ /**
920
+ * Fields of the Country model
921
+ */
922
+ export interface CountryFieldRefs {
923
+ readonly id: Prisma.FieldRef<"Country", 'String'>
924
+ readonly name: Prisma.FieldRef<"Country", 'String'>
925
+ readonly code: Prisma.FieldRef<"Country", 'String'>
926
+ readonly indicatif: Prisma.FieldRef<"Country", 'String'>
927
+ readonly createdAt: Prisma.FieldRef<"Country", 'DateTime'>
928
+ readonly updatedAt: Prisma.FieldRef<"Country", 'DateTime'>
929
+ }
930
+
931
+
932
+ // Custom InputTypes
933
+ /**
934
+ * Country findUnique
935
+ */
936
+ export type CountryFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
937
+ /**
938
+ * Select specific fields to fetch from the Country
939
+ */
940
+ select?: Prisma.CountrySelect<ExtArgs> | null
941
+ /**
942
+ * Omit specific fields from the Country
943
+ */
944
+ omit?: Prisma.CountryOmit<ExtArgs> | null
945
+ /**
946
+ * Choose, which related nodes to fetch as well
947
+ */
948
+ include?: Prisma.CountryInclude<ExtArgs> | null
949
+ /**
950
+ * Filter, which Country to fetch.
951
+ */
952
+ where: Prisma.CountryWhereUniqueInput
953
+ }
954
+
955
+ /**
956
+ * Country findUniqueOrThrow
957
+ */
958
+ export type CountryFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
959
+ /**
960
+ * Select specific fields to fetch from the Country
961
+ */
962
+ select?: Prisma.CountrySelect<ExtArgs> | null
963
+ /**
964
+ * Omit specific fields from the Country
965
+ */
966
+ omit?: Prisma.CountryOmit<ExtArgs> | null
967
+ /**
968
+ * Choose, which related nodes to fetch as well
969
+ */
970
+ include?: Prisma.CountryInclude<ExtArgs> | null
971
+ /**
972
+ * Filter, which Country to fetch.
973
+ */
974
+ where: Prisma.CountryWhereUniqueInput
975
+ }
976
+
977
+ /**
978
+ * Country findFirst
979
+ */
980
+ export type CountryFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
981
+ /**
982
+ * Select specific fields to fetch from the Country
983
+ */
984
+ select?: Prisma.CountrySelect<ExtArgs> | null
985
+ /**
986
+ * Omit specific fields from the Country
987
+ */
988
+ omit?: Prisma.CountryOmit<ExtArgs> | null
989
+ /**
990
+ * Choose, which related nodes to fetch as well
991
+ */
992
+ include?: Prisma.CountryInclude<ExtArgs> | null
993
+ /**
994
+ * Filter, which Country to fetch.
995
+ */
996
+ where?: Prisma.CountryWhereInput
997
+ /**
998
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
999
+ *
1000
+ * Determine the order of Countries to fetch.
1001
+ */
1002
+ orderBy?: Prisma.CountryOrderByWithRelationInput | Prisma.CountryOrderByWithRelationInput[]
1003
+ /**
1004
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1005
+ *
1006
+ * Sets the position for searching for Countries.
1007
+ */
1008
+ cursor?: Prisma.CountryWhereUniqueInput
1009
+ /**
1010
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1011
+ *
1012
+ * Take `±n` Countries from the position of the cursor.
1013
+ */
1014
+ take?: number
1015
+ /**
1016
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1017
+ *
1018
+ * Skip the first `n` Countries.
1019
+ */
1020
+ skip?: number
1021
+ /**
1022
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1023
+ *
1024
+ * Filter by unique combinations of Countries.
1025
+ */
1026
+ distinct?: Prisma.CountryScalarFieldEnum | Prisma.CountryScalarFieldEnum[]
1027
+ }
1028
+
1029
+ /**
1030
+ * Country findFirstOrThrow
1031
+ */
1032
+ export type CountryFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1033
+ /**
1034
+ * Select specific fields to fetch from the Country
1035
+ */
1036
+ select?: Prisma.CountrySelect<ExtArgs> | null
1037
+ /**
1038
+ * Omit specific fields from the Country
1039
+ */
1040
+ omit?: Prisma.CountryOmit<ExtArgs> | null
1041
+ /**
1042
+ * Choose, which related nodes to fetch as well
1043
+ */
1044
+ include?: Prisma.CountryInclude<ExtArgs> | null
1045
+ /**
1046
+ * Filter, which Country to fetch.
1047
+ */
1048
+ where?: Prisma.CountryWhereInput
1049
+ /**
1050
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1051
+ *
1052
+ * Determine the order of Countries to fetch.
1053
+ */
1054
+ orderBy?: Prisma.CountryOrderByWithRelationInput | Prisma.CountryOrderByWithRelationInput[]
1055
+ /**
1056
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1057
+ *
1058
+ * Sets the position for searching for Countries.
1059
+ */
1060
+ cursor?: Prisma.CountryWhereUniqueInput
1061
+ /**
1062
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1063
+ *
1064
+ * Take `±n` Countries from the position of the cursor.
1065
+ */
1066
+ take?: number
1067
+ /**
1068
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1069
+ *
1070
+ * Skip the first `n` Countries.
1071
+ */
1072
+ skip?: number
1073
+ /**
1074
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1075
+ *
1076
+ * Filter by unique combinations of Countries.
1077
+ */
1078
+ distinct?: Prisma.CountryScalarFieldEnum | Prisma.CountryScalarFieldEnum[]
1079
+ }
1080
+
1081
+ /**
1082
+ * Country findMany
1083
+ */
1084
+ export type CountryFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1085
+ /**
1086
+ * Select specific fields to fetch from the Country
1087
+ */
1088
+ select?: Prisma.CountrySelect<ExtArgs> | null
1089
+ /**
1090
+ * Omit specific fields from the Country
1091
+ */
1092
+ omit?: Prisma.CountryOmit<ExtArgs> | null
1093
+ /**
1094
+ * Choose, which related nodes to fetch as well
1095
+ */
1096
+ include?: Prisma.CountryInclude<ExtArgs> | null
1097
+ /**
1098
+ * Filter, which Countries to fetch.
1099
+ */
1100
+ where?: Prisma.CountryWhereInput
1101
+ /**
1102
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1103
+ *
1104
+ * Determine the order of Countries to fetch.
1105
+ */
1106
+ orderBy?: Prisma.CountryOrderByWithRelationInput | Prisma.CountryOrderByWithRelationInput[]
1107
+ /**
1108
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1109
+ *
1110
+ * Sets the position for listing Countries.
1111
+ */
1112
+ cursor?: Prisma.CountryWhereUniqueInput
1113
+ /**
1114
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1115
+ *
1116
+ * Take `±n` Countries from the position of the cursor.
1117
+ */
1118
+ take?: number
1119
+ /**
1120
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1121
+ *
1122
+ * Skip the first `n` Countries.
1123
+ */
1124
+ skip?: number
1125
+ /**
1126
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1127
+ *
1128
+ * Filter by unique combinations of Countries.
1129
+ */
1130
+ distinct?: Prisma.CountryScalarFieldEnum | Prisma.CountryScalarFieldEnum[]
1131
+ }
1132
+
1133
+ /**
1134
+ * Country create
1135
+ */
1136
+ export type CountryCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1137
+ /**
1138
+ * Select specific fields to fetch from the Country
1139
+ */
1140
+ select?: Prisma.CountrySelect<ExtArgs> | null
1141
+ /**
1142
+ * Omit specific fields from the Country
1143
+ */
1144
+ omit?: Prisma.CountryOmit<ExtArgs> | null
1145
+ /**
1146
+ * Choose, which related nodes to fetch as well
1147
+ */
1148
+ include?: Prisma.CountryInclude<ExtArgs> | null
1149
+ /**
1150
+ * The data needed to create a Country.
1151
+ */
1152
+ data: Prisma.XOR<Prisma.CountryCreateInput, Prisma.CountryUncheckedCreateInput>
1153
+ }
1154
+
1155
+ /**
1156
+ * Country createMany
1157
+ */
1158
+ export type CountryCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1159
+ /**
1160
+ * The data used to create many Countries.
1161
+ */
1162
+ data: Prisma.CountryCreateManyInput | Prisma.CountryCreateManyInput[]
1163
+ skipDuplicates?: boolean
1164
+ }
1165
+
1166
+ /**
1167
+ * Country createManyAndReturn
1168
+ */
1169
+ export type CountryCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1170
+ /**
1171
+ * Select specific fields to fetch from the Country
1172
+ */
1173
+ select?: Prisma.CountrySelectCreateManyAndReturn<ExtArgs> | null
1174
+ /**
1175
+ * Omit specific fields from the Country
1176
+ */
1177
+ omit?: Prisma.CountryOmit<ExtArgs> | null
1178
+ /**
1179
+ * The data used to create many Countries.
1180
+ */
1181
+ data: Prisma.CountryCreateManyInput | Prisma.CountryCreateManyInput[]
1182
+ skipDuplicates?: boolean
1183
+ }
1184
+
1185
+ /**
1186
+ * Country update
1187
+ */
1188
+ export type CountryUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1189
+ /**
1190
+ * Select specific fields to fetch from the Country
1191
+ */
1192
+ select?: Prisma.CountrySelect<ExtArgs> | null
1193
+ /**
1194
+ * Omit specific fields from the Country
1195
+ */
1196
+ omit?: Prisma.CountryOmit<ExtArgs> | null
1197
+ /**
1198
+ * Choose, which related nodes to fetch as well
1199
+ */
1200
+ include?: Prisma.CountryInclude<ExtArgs> | null
1201
+ /**
1202
+ * The data needed to update a Country.
1203
+ */
1204
+ data: Prisma.XOR<Prisma.CountryUpdateInput, Prisma.CountryUncheckedUpdateInput>
1205
+ /**
1206
+ * Choose, which Country to update.
1207
+ */
1208
+ where: Prisma.CountryWhereUniqueInput
1209
+ }
1210
+
1211
+ /**
1212
+ * Country updateMany
1213
+ */
1214
+ export type CountryUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1215
+ /**
1216
+ * The data used to update Countries.
1217
+ */
1218
+ data: Prisma.XOR<Prisma.CountryUpdateManyMutationInput, Prisma.CountryUncheckedUpdateManyInput>
1219
+ /**
1220
+ * Filter which Countries to update
1221
+ */
1222
+ where?: Prisma.CountryWhereInput
1223
+ /**
1224
+ * Limit how many Countries to update.
1225
+ */
1226
+ limit?: number
1227
+ }
1228
+
1229
+ /**
1230
+ * Country updateManyAndReturn
1231
+ */
1232
+ export type CountryUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1233
+ /**
1234
+ * Select specific fields to fetch from the Country
1235
+ */
1236
+ select?: Prisma.CountrySelectUpdateManyAndReturn<ExtArgs> | null
1237
+ /**
1238
+ * Omit specific fields from the Country
1239
+ */
1240
+ omit?: Prisma.CountryOmit<ExtArgs> | null
1241
+ /**
1242
+ * The data used to update Countries.
1243
+ */
1244
+ data: Prisma.XOR<Prisma.CountryUpdateManyMutationInput, Prisma.CountryUncheckedUpdateManyInput>
1245
+ /**
1246
+ * Filter which Countries to update
1247
+ */
1248
+ where?: Prisma.CountryWhereInput
1249
+ /**
1250
+ * Limit how many Countries to update.
1251
+ */
1252
+ limit?: number
1253
+ }
1254
+
1255
+ /**
1256
+ * Country upsert
1257
+ */
1258
+ export type CountryUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1259
+ /**
1260
+ * Select specific fields to fetch from the Country
1261
+ */
1262
+ select?: Prisma.CountrySelect<ExtArgs> | null
1263
+ /**
1264
+ * Omit specific fields from the Country
1265
+ */
1266
+ omit?: Prisma.CountryOmit<ExtArgs> | null
1267
+ /**
1268
+ * Choose, which related nodes to fetch as well
1269
+ */
1270
+ include?: Prisma.CountryInclude<ExtArgs> | null
1271
+ /**
1272
+ * The filter to search for the Country to update in case it exists.
1273
+ */
1274
+ where: Prisma.CountryWhereUniqueInput
1275
+ /**
1276
+ * In case the Country found by the `where` argument doesn't exist, create a new Country with this data.
1277
+ */
1278
+ create: Prisma.XOR<Prisma.CountryCreateInput, Prisma.CountryUncheckedCreateInput>
1279
+ /**
1280
+ * In case the Country was found with the provided `where` argument, update it with this data.
1281
+ */
1282
+ update: Prisma.XOR<Prisma.CountryUpdateInput, Prisma.CountryUncheckedUpdateInput>
1283
+ }
1284
+
1285
+ /**
1286
+ * Country delete
1287
+ */
1288
+ export type CountryDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1289
+ /**
1290
+ * Select specific fields to fetch from the Country
1291
+ */
1292
+ select?: Prisma.CountrySelect<ExtArgs> | null
1293
+ /**
1294
+ * Omit specific fields from the Country
1295
+ */
1296
+ omit?: Prisma.CountryOmit<ExtArgs> | null
1297
+ /**
1298
+ * Choose, which related nodes to fetch as well
1299
+ */
1300
+ include?: Prisma.CountryInclude<ExtArgs> | null
1301
+ /**
1302
+ * Filter which Country to delete.
1303
+ */
1304
+ where: Prisma.CountryWhereUniqueInput
1305
+ }
1306
+
1307
+ /**
1308
+ * Country deleteMany
1309
+ */
1310
+ export type CountryDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1311
+ /**
1312
+ * Filter which Countries to delete
1313
+ */
1314
+ where?: Prisma.CountryWhereInput
1315
+ /**
1316
+ * Limit how many Countries to delete.
1317
+ */
1318
+ limit?: number
1319
+ }
1320
+
1321
+ /**
1322
+ * Country.events
1323
+ */
1324
+ export type Country$eventsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1325
+ /**
1326
+ * Select specific fields to fetch from the Event
1327
+ */
1328
+ select?: Prisma.EventSelect<ExtArgs> | null
1329
+ /**
1330
+ * Omit specific fields from the Event
1331
+ */
1332
+ omit?: Prisma.EventOmit<ExtArgs> | null
1333
+ /**
1334
+ * Choose, which related nodes to fetch as well
1335
+ */
1336
+ include?: Prisma.EventInclude<ExtArgs> | null
1337
+ where?: Prisma.EventWhereInput
1338
+ orderBy?: Prisma.EventOrderByWithRelationInput | Prisma.EventOrderByWithRelationInput[]
1339
+ cursor?: Prisma.EventWhereUniqueInput
1340
+ take?: number
1341
+ skip?: number
1342
+ distinct?: Prisma.EventScalarFieldEnum | Prisma.EventScalarFieldEnum[]
1343
+ }
1344
+
1345
+ /**
1346
+ * Country without action
1347
+ */
1348
+ export type CountryDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1349
+ /**
1350
+ * Select specific fields to fetch from the Country
1351
+ */
1352
+ select?: Prisma.CountrySelect<ExtArgs> | null
1353
+ /**
1354
+ * Omit specific fields from the Country
1355
+ */
1356
+ omit?: Prisma.CountryOmit<ExtArgs> | null
1357
+ /**
1358
+ * Choose, which related nodes to fetch as well
1359
+ */
1360
+ include?: Prisma.CountryInclude<ExtArgs> | null
1361
+ }