procbay-schema 1.0.171 → 1.0.174

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 (148) hide show
  1. package/package.json +13 -22
  2. package/prisma/schema.prisma +4 -5
  3. package/scripts/sync-schemas.js +1 -5
  4. package/src/create-prisma-client.js +9 -49
  5. package/src/prisma/client.d.ts +1 -0
  6. package/src/prisma/client.js +4 -0
  7. package/src/prisma/default.d.ts +1 -0
  8. package/src/prisma/default.js +4 -0
  9. package/src/prisma/edge.d.ts +1 -0
  10. package/src/prisma/edge.js +2900 -0
  11. package/src/{generated/prisma/internal/prismaNamespaceBrowser.ts → prisma/index-browser.js} +980 -739
  12. package/src/prisma/index.d.ts +286683 -0
  13. package/src/prisma/index.js +2929 -2
  14. package/src/prisma/libquery_engine-darwin.dylib.node +0 -0
  15. package/src/prisma/libquery_engine-debian-openssl-3.0.x.so.node +0 -0
  16. package/src/prisma/package.json +140 -0
  17. package/src/prisma/query_engine-windows.dll.node +0 -0
  18. package/src/prisma/runtime/edge-esm.js +34 -0
  19. package/src/prisma/runtime/edge.js +34 -0
  20. package/src/prisma/runtime/index-browser.d.ts +370 -0
  21. package/src/prisma/runtime/index-browser.js +16 -0
  22. package/src/prisma/runtime/library.d.ts +3647 -0
  23. package/src/prisma/runtime/library.js +146 -0
  24. package/src/prisma/runtime/react-native.js +83 -0
  25. package/src/prisma/runtime/wasm.js +35 -0
  26. package/src/prisma/schema.prisma +3820 -0
  27. package/src/prisma/wasm.d.ts +1 -0
  28. package/src/prisma/wasm.js +2862 -0
  29. package/prisma.config.js +0 -19
  30. package/src/generated/prisma/browser.ts +0 -574
  31. package/src/generated/prisma/client.bundle.mjs +0 -6733
  32. package/src/generated/prisma/client.ts +0 -598
  33. package/src/generated/prisma/commonInputTypes.ts +0 -2911
  34. package/src/generated/prisma/enums.ts +0 -730
  35. package/src/generated/prisma/internal/class.ts +0 -1304
  36. package/src/generated/prisma/internal/prismaNamespace.ts +0 -12506
  37. package/src/generated/prisma/models/ActivityLog.ts +0 -1590
  38. package/src/generated/prisma/models/AdminAlert.ts +0 -1547
  39. package/src/generated/prisma/models/ApprovalCondition.ts +0 -2085
  40. package/src/generated/prisma/models/ApprovalDelegation.ts +0 -3057
  41. package/src/generated/prisma/models/ApprovalDelegationDelegate.ts +0 -1784
  42. package/src/generated/prisma/models/ApprovalHierarchy.ts +0 -3083
  43. package/src/generated/prisma/models/ApprovalJourney.ts +0 -2867
  44. package/src/generated/prisma/models/ApprovalLevel.ts +0 -2335
  45. package/src/generated/prisma/models/ApprovalLevelEscalation.ts +0 -2128
  46. package/src/generated/prisma/models/ApprovalLevelEscalationUser.ts +0 -1863
  47. package/src/generated/prisma/models/ApprovalLevelUser.ts +0 -1863
  48. package/src/generated/prisma/models/ApprovalManagement.ts +0 -1728
  49. package/src/generated/prisma/models/Attribute.ts +0 -2075
  50. package/src/generated/prisma/models/AttributeValue.ts +0 -1882
  51. package/src/generated/prisma/models/Bid.ts +0 -2719
  52. package/src/generated/prisma/models/BidLog.ts +0 -3560
  53. package/src/generated/prisma/models/BlanketPurchaseOrder.ts +0 -3527
  54. package/src/generated/prisma/models/BlanketPurchaseOrderItem.ts +0 -2532
  55. package/src/generated/prisma/models/BlanketPurchaseOrderRelease.ts +0 -2713
  56. package/src/generated/prisma/models/BoqEventItem.ts +0 -4056
  57. package/src/generated/prisma/models/Budget.ts +0 -1954
  58. package/src/generated/prisma/models/BudgetHold.ts +0 -1904
  59. package/src/generated/prisma/models/BusinessEntity.ts +0 -3901
  60. package/src/generated/prisma/models/BusinessEntityDepartment.ts +0 -2032
  61. package/src/generated/prisma/models/BusinessEntityLocation.ts +0 -1567
  62. package/src/generated/prisma/models/Catalogue.ts +0 -2081
  63. package/src/generated/prisma/models/CatalogueCart.ts +0 -2305
  64. package/src/generated/prisma/models/CatalogueVendor.ts +0 -2252
  65. package/src/generated/prisma/models/Category.ts +0 -3091
  66. package/src/generated/prisma/models/CategoryBudget.ts +0 -2690
  67. package/src/generated/prisma/models/City.ts +0 -2180
  68. package/src/generated/prisma/models/Cms.ts +0 -1492
  69. package/src/generated/prisma/models/ContactUs.ts +0 -1654
  70. package/src/generated/prisma/models/Conversation.ts +0 -2389
  71. package/src/generated/prisma/models/ConversationParticipant.ts +0 -1833
  72. package/src/generated/prisma/models/CounterOffer.ts +0 -2156
  73. package/src/generated/prisma/models/Country.ts +0 -3394
  74. package/src/generated/prisma/models/Currency.ts +0 -1642
  75. package/src/generated/prisma/models/CustomerNotification.ts +0 -1653
  76. package/src/generated/prisma/models/Department.ts +0 -2372
  77. package/src/generated/prisma/models/DepartmentBudget.ts +0 -2494
  78. package/src/generated/prisma/models/DynamicForm.ts +0 -2021
  79. package/src/generated/prisma/models/EmailTemplate.ts +0 -1516
  80. package/src/generated/prisma/models/Event.ts +0 -6819
  81. package/src/generated/prisma/models/EventConfigurations.ts +0 -1736
  82. package/src/generated/prisma/models/EventCriteria.ts +0 -2134
  83. package/src/generated/prisma/models/EventItems.ts +0 -2821
  84. package/src/generated/prisma/models/EventRfiForm.ts +0 -2020
  85. package/src/generated/prisma/models/EventRfiFormLog.ts +0 -2608
  86. package/src/generated/prisma/models/EventStrategies.ts +0 -1857
  87. package/src/generated/prisma/models/EventVendorCriteria.ts +0 -2186
  88. package/src/generated/prisma/models/EventVendors.ts +0 -3446
  89. package/src/generated/prisma/models/Expense.ts +0 -1625
  90. package/src/generated/prisma/models/ExportLog.ts +0 -1822
  91. package/src/generated/prisma/models/Faq.ts +0 -1753
  92. package/src/generated/prisma/models/FaqCategory.ts +0 -1610
  93. package/src/generated/prisma/models/FiscalYear.ts +0 -1460
  94. package/src/generated/prisma/models/FormMaster.ts +0 -1831
  95. package/src/generated/prisma/models/GRN.ts +0 -3354
  96. package/src/generated/prisma/models/GRNItem.ts +0 -2119
  97. package/src/generated/prisma/models/Industry.ts +0 -1642
  98. package/src/generated/prisma/models/Invoice.ts +0 -2949
  99. package/src/generated/prisma/models/InvoiceItem.ts +0 -2397
  100. package/src/generated/prisma/models/Item.ts +0 -10644
  101. package/src/generated/prisma/models/ItemAttribute.ts +0 -1750
  102. package/src/generated/prisma/models/ItemAttributeValue.ts +0 -1802
  103. package/src/generated/prisma/models/ItemDocument.ts +0 -1590
  104. package/src/generated/prisma/models/Location.ts +0 -2711
  105. package/src/generated/prisma/models/Message.ts +0 -2744
  106. package/src/generated/prisma/models/MessageRecipient.ts +0 -1759
  107. package/src/generated/prisma/models/Module.ts +0 -1630
  108. package/src/generated/prisma/models/Permission.ts +0 -1640
  109. package/src/generated/prisma/models/PurchaseIntake.ts +0 -4672
  110. package/src/generated/prisma/models/PurchaseIntakeItem.ts +0 -2366
  111. package/src/generated/prisma/models/PurchaseOrder.ts +0 -4012
  112. package/src/generated/prisma/models/PurchaseOrderActivityLog.ts +0 -1720
  113. package/src/generated/prisma/models/PurchaseOrderItem.ts +0 -2623
  114. package/src/generated/prisma/models/Quotation.ts +0 -3207
  115. package/src/generated/prisma/models/QuotationLog.ts +0 -3239
  116. package/src/generated/prisma/models/Region.ts +0 -1746
  117. package/src/generated/prisma/models/RequestedCatalogue.ts +0 -1618
  118. package/src/generated/prisma/models/RequestedCatalogueDetails.ts +0 -2252
  119. package/src/generated/prisma/models/Role.ts +0 -1907
  120. package/src/generated/prisma/models/RolePermission.ts +0 -1737
  121. package/src/generated/prisma/models/SendBack.ts +0 -1830
  122. package/src/generated/prisma/models/SerialNumberConfiguration.ts +0 -1254
  123. package/src/generated/prisma/models/SmtpConfig.ts +0 -1522
  124. package/src/generated/prisma/models/State.ts +0 -2174
  125. package/src/generated/prisma/models/Strategies.ts +0 -1791
  126. package/src/generated/prisma/models/SubModule.ts +0 -1450
  127. package/src/generated/prisma/models/Subregion.ts +0 -1870
  128. package/src/generated/prisma/models/SupportCategory.ts +0 -1712
  129. package/src/generated/prisma/models/SupportTicket.ts +0 -2478
  130. package/src/generated/prisma/models/SupportingDocument.ts +0 -2283
  131. package/src/generated/prisma/models/Template.ts +0 -2429
  132. package/src/generated/prisma/models/TemplateField.ts +0 -1916
  133. package/src/generated/prisma/models/TemplateStrategies.ts +0 -1614
  134. package/src/generated/prisma/models/TenantConfiguration.ts +0 -1694
  135. package/src/generated/prisma/models/TicketAssignment.ts +0 -1742
  136. package/src/generated/prisma/models/TicketHistory.ts +0 -1789
  137. package/src/generated/prisma/models/TicketReply.ts +0 -1640
  138. package/src/generated/prisma/models/Uom.ts +0 -1752
  139. package/src/generated/prisma/models/UomCategory.ts +0 -1558
  140. package/src/generated/prisma/models/UploadLog.ts +0 -1731
  141. package/src/generated/prisma/models/User.ts +0 -19397
  142. package/src/generated/prisma/models/UserDepartmentEntity.ts +0 -2099
  143. package/src/generated/prisma/models/UserEventConfiguration.ts +0 -1370
  144. package/src/generated/prisma/models/UserLoginActivity.ts +0 -1693
  145. package/src/generated/prisma/models/UserRole.ts +0 -1696
  146. package/src/generated/prisma/models/UserVendorSocketTokens.ts +0 -1450
  147. package/src/generated/prisma/models/VendorReference.ts +0 -1707
  148. package/src/generated/prisma/models.ts +0 -122
@@ -1,1746 +0,0 @@
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 `Region` 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.ts"
13
- import type * as Prisma from "../internal/prismaNamespace.ts"
14
-
15
- /**
16
- * Model Region
17
- *
18
- */
19
- export type RegionModel = runtime.Types.Result.DefaultSelection<Prisma.$RegionPayload>
20
-
21
- export type AggregateRegion = {
22
- _count: RegionCountAggregateOutputType | null
23
- _avg: RegionAvgAggregateOutputType | null
24
- _sum: RegionSumAggregateOutputType | null
25
- _min: RegionMinAggregateOutputType | null
26
- _max: RegionMaxAggregateOutputType | null
27
- }
28
-
29
- export type RegionAvgAggregateOutputType = {
30
- id: number | null
31
- created_by: number | null
32
- updated_by: number | null
33
- deleted_by: number | null
34
- }
35
-
36
- export type RegionSumAggregateOutputType = {
37
- id: number | null
38
- created_by: number | null
39
- updated_by: number | null
40
- deleted_by: number | null
41
- }
42
-
43
- export type RegionMinAggregateOutputType = {
44
- id: number | null
45
- name: string | null
46
- wikiDataId: string | null
47
- status: boolean | null
48
- created_at: Date | null
49
- created_by: number | null
50
- updated_at: Date | null
51
- updated_by: number | null
52
- is_deleted: boolean | null
53
- deleted_by: number | null
54
- deleted_at: Date | null
55
- }
56
-
57
- export type RegionMaxAggregateOutputType = {
58
- id: number | null
59
- name: string | null
60
- wikiDataId: string | null
61
- status: boolean | null
62
- created_at: Date | null
63
- created_by: number | null
64
- updated_at: Date | null
65
- updated_by: number | null
66
- is_deleted: boolean | null
67
- deleted_by: number | null
68
- deleted_at: Date | null
69
- }
70
-
71
- export type RegionCountAggregateOutputType = {
72
- id: number
73
- name: number
74
- translations: number
75
- wikiDataId: number
76
- status: number
77
- created_at: number
78
- created_by: number
79
- updated_at: number
80
- updated_by: number
81
- is_deleted: number
82
- deleted_by: number
83
- deleted_at: number
84
- _all: number
85
- }
86
-
87
-
88
- export type RegionAvgAggregateInputType = {
89
- id?: true
90
- created_by?: true
91
- updated_by?: true
92
- deleted_by?: true
93
- }
94
-
95
- export type RegionSumAggregateInputType = {
96
- id?: true
97
- created_by?: true
98
- updated_by?: true
99
- deleted_by?: true
100
- }
101
-
102
- export type RegionMinAggregateInputType = {
103
- id?: true
104
- name?: true
105
- wikiDataId?: true
106
- status?: true
107
- created_at?: true
108
- created_by?: true
109
- updated_at?: true
110
- updated_by?: true
111
- is_deleted?: true
112
- deleted_by?: true
113
- deleted_at?: true
114
- }
115
-
116
- export type RegionMaxAggregateInputType = {
117
- id?: true
118
- name?: true
119
- wikiDataId?: true
120
- status?: true
121
- created_at?: true
122
- created_by?: true
123
- updated_at?: true
124
- updated_by?: true
125
- is_deleted?: true
126
- deleted_by?: true
127
- deleted_at?: true
128
- }
129
-
130
- export type RegionCountAggregateInputType = {
131
- id?: true
132
- name?: true
133
- translations?: true
134
- wikiDataId?: true
135
- status?: true
136
- created_at?: true
137
- created_by?: true
138
- updated_at?: true
139
- updated_by?: true
140
- is_deleted?: true
141
- deleted_by?: true
142
- deleted_at?: true
143
- _all?: true
144
- }
145
-
146
- export type RegionAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
147
- /**
148
- * Filter which Region to aggregate.
149
- */
150
- where?: Prisma.RegionWhereInput
151
- /**
152
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
153
- *
154
- * Determine the order of Regions to fetch.
155
- */
156
- orderBy?: Prisma.RegionOrderByWithRelationInput | Prisma.RegionOrderByWithRelationInput[]
157
- /**
158
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
159
- *
160
- * Sets the start position
161
- */
162
- cursor?: Prisma.RegionWhereUniqueInput
163
- /**
164
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
165
- *
166
- * Take `±n` Regions from the position of the cursor.
167
- */
168
- take?: number
169
- /**
170
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
171
- *
172
- * Skip the first `n` Regions.
173
- */
174
- skip?: number
175
- /**
176
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
177
- *
178
- * Count returned Regions
179
- **/
180
- _count?: true | RegionCountAggregateInputType
181
- /**
182
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
183
- *
184
- * Select which fields to average
185
- **/
186
- _avg?: RegionAvgAggregateInputType
187
- /**
188
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
189
- *
190
- * Select which fields to sum
191
- **/
192
- _sum?: RegionSumAggregateInputType
193
- /**
194
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
195
- *
196
- * Select which fields to find the minimum value
197
- **/
198
- _min?: RegionMinAggregateInputType
199
- /**
200
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
201
- *
202
- * Select which fields to find the maximum value
203
- **/
204
- _max?: RegionMaxAggregateInputType
205
- }
206
-
207
- export type GetRegionAggregateType<T extends RegionAggregateArgs> = {
208
- [P in keyof T & keyof AggregateRegion]: P extends '_count' | 'count'
209
- ? T[P] extends true
210
- ? number
211
- : Prisma.GetScalarType<T[P], AggregateRegion[P]>
212
- : Prisma.GetScalarType<T[P], AggregateRegion[P]>
213
- }
214
-
215
-
216
-
217
-
218
- export type RegionGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
219
- where?: Prisma.RegionWhereInput
220
- orderBy?: Prisma.RegionOrderByWithAggregationInput | Prisma.RegionOrderByWithAggregationInput[]
221
- by: Prisma.RegionScalarFieldEnum[] | Prisma.RegionScalarFieldEnum
222
- having?: Prisma.RegionScalarWhereWithAggregatesInput
223
- take?: number
224
- skip?: number
225
- _count?: RegionCountAggregateInputType | true
226
- _avg?: RegionAvgAggregateInputType
227
- _sum?: RegionSumAggregateInputType
228
- _min?: RegionMinAggregateInputType
229
- _max?: RegionMaxAggregateInputType
230
- }
231
-
232
- export type RegionGroupByOutputType = {
233
- id: number
234
- name: string | null
235
- translations: runtime.JsonValue | null
236
- wikiDataId: string | null
237
- status: boolean | null
238
- created_at: Date
239
- created_by: number | null
240
- updated_at: Date
241
- updated_by: number | null
242
- is_deleted: boolean | null
243
- deleted_by: number | null
244
- deleted_at: Date | null
245
- _count: RegionCountAggregateOutputType | null
246
- _avg: RegionAvgAggregateOutputType | null
247
- _sum: RegionSumAggregateOutputType | null
248
- _min: RegionMinAggregateOutputType | null
249
- _max: RegionMaxAggregateOutputType | null
250
- }
251
-
252
- export type GetRegionGroupByPayload<T extends RegionGroupByArgs> = Prisma.PrismaPromise<
253
- Array<
254
- Prisma.PickEnumerable<RegionGroupByOutputType, T['by']> &
255
- {
256
- [P in ((keyof T) & (keyof RegionGroupByOutputType))]: P extends '_count'
257
- ? T[P] extends boolean
258
- ? number
259
- : Prisma.GetScalarType<T[P], RegionGroupByOutputType[P]>
260
- : Prisma.GetScalarType<T[P], RegionGroupByOutputType[P]>
261
- }
262
- >
263
- >
264
-
265
-
266
-
267
- export type RegionWhereInput = {
268
- AND?: Prisma.RegionWhereInput | Prisma.RegionWhereInput[]
269
- OR?: Prisma.RegionWhereInput[]
270
- NOT?: Prisma.RegionWhereInput | Prisma.RegionWhereInput[]
271
- id?: Prisma.IntFilter<"Region"> | number
272
- name?: Prisma.StringNullableFilter<"Region"> | string | null
273
- translations?: Prisma.JsonNullableFilter<"Region">
274
- wikiDataId?: Prisma.StringNullableFilter<"Region"> | string | null
275
- status?: Prisma.BoolNullableFilter<"Region"> | boolean | null
276
- created_at?: Prisma.DateTimeFilter<"Region"> | Date | string
277
- created_by?: Prisma.IntNullableFilter<"Region"> | number | null
278
- updated_at?: Prisma.DateTimeFilter<"Region"> | Date | string
279
- updated_by?: Prisma.IntNullableFilter<"Region"> | number | null
280
- is_deleted?: Prisma.BoolNullableFilter<"Region"> | boolean | null
281
- deleted_by?: Prisma.IntNullableFilter<"Region"> | number | null
282
- deleted_at?: Prisma.DateTimeNullableFilter<"Region"> | Date | string | null
283
- countries?: Prisma.CountryListRelationFilter
284
- subregions?: Prisma.SubregionListRelationFilter
285
- }
286
-
287
- export type RegionOrderByWithRelationInput = {
288
- id?: Prisma.SortOrder
289
- name?: Prisma.SortOrderInput | Prisma.SortOrder
290
- translations?: Prisma.SortOrderInput | Prisma.SortOrder
291
- wikiDataId?: Prisma.SortOrderInput | Prisma.SortOrder
292
- status?: Prisma.SortOrderInput | Prisma.SortOrder
293
- created_at?: Prisma.SortOrder
294
- created_by?: Prisma.SortOrderInput | Prisma.SortOrder
295
- updated_at?: Prisma.SortOrder
296
- updated_by?: Prisma.SortOrderInput | Prisma.SortOrder
297
- is_deleted?: Prisma.SortOrderInput | Prisma.SortOrder
298
- deleted_by?: Prisma.SortOrderInput | Prisma.SortOrder
299
- deleted_at?: Prisma.SortOrderInput | Prisma.SortOrder
300
- countries?: Prisma.CountryOrderByRelationAggregateInput
301
- subregions?: Prisma.SubregionOrderByRelationAggregateInput
302
- }
303
-
304
- export type RegionWhereUniqueInput = Prisma.AtLeast<{
305
- id?: number
306
- name?: string
307
- AND?: Prisma.RegionWhereInput | Prisma.RegionWhereInput[]
308
- OR?: Prisma.RegionWhereInput[]
309
- NOT?: Prisma.RegionWhereInput | Prisma.RegionWhereInput[]
310
- translations?: Prisma.JsonNullableFilter<"Region">
311
- wikiDataId?: Prisma.StringNullableFilter<"Region"> | string | null
312
- status?: Prisma.BoolNullableFilter<"Region"> | boolean | null
313
- created_at?: Prisma.DateTimeFilter<"Region"> | Date | string
314
- created_by?: Prisma.IntNullableFilter<"Region"> | number | null
315
- updated_at?: Prisma.DateTimeFilter<"Region"> | Date | string
316
- updated_by?: Prisma.IntNullableFilter<"Region"> | number | null
317
- is_deleted?: Prisma.BoolNullableFilter<"Region"> | boolean | null
318
- deleted_by?: Prisma.IntNullableFilter<"Region"> | number | null
319
- deleted_at?: Prisma.DateTimeNullableFilter<"Region"> | Date | string | null
320
- countries?: Prisma.CountryListRelationFilter
321
- subregions?: Prisma.SubregionListRelationFilter
322
- }, "id" | "name">
323
-
324
- export type RegionOrderByWithAggregationInput = {
325
- id?: Prisma.SortOrder
326
- name?: Prisma.SortOrderInput | Prisma.SortOrder
327
- translations?: Prisma.SortOrderInput | Prisma.SortOrder
328
- wikiDataId?: Prisma.SortOrderInput | Prisma.SortOrder
329
- status?: Prisma.SortOrderInput | Prisma.SortOrder
330
- created_at?: Prisma.SortOrder
331
- created_by?: Prisma.SortOrderInput | Prisma.SortOrder
332
- updated_at?: Prisma.SortOrder
333
- updated_by?: Prisma.SortOrderInput | Prisma.SortOrder
334
- is_deleted?: Prisma.SortOrderInput | Prisma.SortOrder
335
- deleted_by?: Prisma.SortOrderInput | Prisma.SortOrder
336
- deleted_at?: Prisma.SortOrderInput | Prisma.SortOrder
337
- _count?: Prisma.RegionCountOrderByAggregateInput
338
- _avg?: Prisma.RegionAvgOrderByAggregateInput
339
- _max?: Prisma.RegionMaxOrderByAggregateInput
340
- _min?: Prisma.RegionMinOrderByAggregateInput
341
- _sum?: Prisma.RegionSumOrderByAggregateInput
342
- }
343
-
344
- export type RegionScalarWhereWithAggregatesInput = {
345
- AND?: Prisma.RegionScalarWhereWithAggregatesInput | Prisma.RegionScalarWhereWithAggregatesInput[]
346
- OR?: Prisma.RegionScalarWhereWithAggregatesInput[]
347
- NOT?: Prisma.RegionScalarWhereWithAggregatesInput | Prisma.RegionScalarWhereWithAggregatesInput[]
348
- id?: Prisma.IntWithAggregatesFilter<"Region"> | number
349
- name?: Prisma.StringNullableWithAggregatesFilter<"Region"> | string | null
350
- translations?: Prisma.JsonNullableWithAggregatesFilter<"Region">
351
- wikiDataId?: Prisma.StringNullableWithAggregatesFilter<"Region"> | string | null
352
- status?: Prisma.BoolNullableWithAggregatesFilter<"Region"> | boolean | null
353
- created_at?: Prisma.DateTimeWithAggregatesFilter<"Region"> | Date | string
354
- created_by?: Prisma.IntNullableWithAggregatesFilter<"Region"> | number | null
355
- updated_at?: Prisma.DateTimeWithAggregatesFilter<"Region"> | Date | string
356
- updated_by?: Prisma.IntNullableWithAggregatesFilter<"Region"> | number | null
357
- is_deleted?: Prisma.BoolNullableWithAggregatesFilter<"Region"> | boolean | null
358
- deleted_by?: Prisma.IntNullableWithAggregatesFilter<"Region"> | number | null
359
- deleted_at?: Prisma.DateTimeNullableWithAggregatesFilter<"Region"> | Date | string | null
360
- }
361
-
362
- export type RegionCreateInput = {
363
- name?: string | null
364
- translations?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
365
- wikiDataId?: string | null
366
- status?: boolean | null
367
- created_at?: Date | string
368
- created_by?: number | null
369
- updated_at?: Date | string
370
- updated_by?: number | null
371
- is_deleted?: boolean | null
372
- deleted_by?: number | null
373
- deleted_at?: Date | string | null
374
- countries?: Prisma.CountryCreateNestedManyWithoutRegion_relationInput
375
- subregions?: Prisma.SubregionCreateNestedManyWithoutRegionInput
376
- }
377
-
378
- export type RegionUncheckedCreateInput = {
379
- id?: number
380
- name?: string | null
381
- translations?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
382
- wikiDataId?: string | null
383
- status?: boolean | null
384
- created_at?: Date | string
385
- created_by?: number | null
386
- updated_at?: Date | string
387
- updated_by?: number | null
388
- is_deleted?: boolean | null
389
- deleted_by?: number | null
390
- deleted_at?: Date | string | null
391
- countries?: Prisma.CountryUncheckedCreateNestedManyWithoutRegion_relationInput
392
- subregions?: Prisma.SubregionUncheckedCreateNestedManyWithoutRegionInput
393
- }
394
-
395
- export type RegionUpdateInput = {
396
- name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
397
- translations?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
398
- wikiDataId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
399
- status?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
400
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
401
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
402
- updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
403
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
404
- is_deleted?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
405
- deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
406
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
407
- countries?: Prisma.CountryUpdateManyWithoutRegion_relationNestedInput
408
- subregions?: Prisma.SubregionUpdateManyWithoutRegionNestedInput
409
- }
410
-
411
- export type RegionUncheckedUpdateInput = {
412
- id?: Prisma.IntFieldUpdateOperationsInput | number
413
- name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
414
- translations?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
415
- wikiDataId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
416
- status?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
417
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
418
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
419
- updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
420
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
421
- is_deleted?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
422
- deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
423
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
424
- countries?: Prisma.CountryUncheckedUpdateManyWithoutRegion_relationNestedInput
425
- subregions?: Prisma.SubregionUncheckedUpdateManyWithoutRegionNestedInput
426
- }
427
-
428
- export type RegionCreateManyInput = {
429
- id?: number
430
- name?: string | null
431
- translations?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
432
- wikiDataId?: string | null
433
- status?: boolean | null
434
- created_at?: Date | string
435
- created_by?: number | null
436
- updated_at?: Date | string
437
- updated_by?: number | null
438
- is_deleted?: boolean | null
439
- deleted_by?: number | null
440
- deleted_at?: Date | string | null
441
- }
442
-
443
- export type RegionUpdateManyMutationInput = {
444
- name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
445
- translations?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
446
- wikiDataId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
447
- status?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
448
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
449
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
450
- updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
451
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
452
- is_deleted?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
453
- deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
454
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
455
- }
456
-
457
- export type RegionUncheckedUpdateManyInput = {
458
- id?: Prisma.IntFieldUpdateOperationsInput | number
459
- name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
460
- translations?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
461
- wikiDataId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
462
- status?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
463
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
464
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
465
- updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
466
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
467
- is_deleted?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
468
- deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
469
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
470
- }
471
-
472
- export type RegionCountOrderByAggregateInput = {
473
- id?: Prisma.SortOrder
474
- name?: Prisma.SortOrder
475
- translations?: Prisma.SortOrder
476
- wikiDataId?: Prisma.SortOrder
477
- status?: Prisma.SortOrder
478
- created_at?: Prisma.SortOrder
479
- created_by?: Prisma.SortOrder
480
- updated_at?: Prisma.SortOrder
481
- updated_by?: Prisma.SortOrder
482
- is_deleted?: Prisma.SortOrder
483
- deleted_by?: Prisma.SortOrder
484
- deleted_at?: Prisma.SortOrder
485
- }
486
-
487
- export type RegionAvgOrderByAggregateInput = {
488
- id?: Prisma.SortOrder
489
- created_by?: Prisma.SortOrder
490
- updated_by?: Prisma.SortOrder
491
- deleted_by?: Prisma.SortOrder
492
- }
493
-
494
- export type RegionMaxOrderByAggregateInput = {
495
- id?: Prisma.SortOrder
496
- name?: Prisma.SortOrder
497
- wikiDataId?: Prisma.SortOrder
498
- status?: Prisma.SortOrder
499
- created_at?: Prisma.SortOrder
500
- created_by?: Prisma.SortOrder
501
- updated_at?: Prisma.SortOrder
502
- updated_by?: Prisma.SortOrder
503
- is_deleted?: Prisma.SortOrder
504
- deleted_by?: Prisma.SortOrder
505
- deleted_at?: Prisma.SortOrder
506
- }
507
-
508
- export type RegionMinOrderByAggregateInput = {
509
- id?: Prisma.SortOrder
510
- name?: Prisma.SortOrder
511
- wikiDataId?: Prisma.SortOrder
512
- status?: Prisma.SortOrder
513
- created_at?: Prisma.SortOrder
514
- created_by?: Prisma.SortOrder
515
- updated_at?: Prisma.SortOrder
516
- updated_by?: Prisma.SortOrder
517
- is_deleted?: Prisma.SortOrder
518
- deleted_by?: Prisma.SortOrder
519
- deleted_at?: Prisma.SortOrder
520
- }
521
-
522
- export type RegionSumOrderByAggregateInput = {
523
- id?: Prisma.SortOrder
524
- created_by?: Prisma.SortOrder
525
- updated_by?: Prisma.SortOrder
526
- deleted_by?: Prisma.SortOrder
527
- }
528
-
529
- export type RegionNullableScalarRelationFilter = {
530
- is?: Prisma.RegionWhereInput | null
531
- isNot?: Prisma.RegionWhereInput | null
532
- }
533
-
534
- export type RegionCreateNestedOneWithoutSubregionsInput = {
535
- create?: Prisma.XOR<Prisma.RegionCreateWithoutSubregionsInput, Prisma.RegionUncheckedCreateWithoutSubregionsInput>
536
- connectOrCreate?: Prisma.RegionCreateOrConnectWithoutSubregionsInput
537
- connect?: Prisma.RegionWhereUniqueInput
538
- }
539
-
540
- export type RegionUpdateOneWithoutSubregionsNestedInput = {
541
- create?: Prisma.XOR<Prisma.RegionCreateWithoutSubregionsInput, Prisma.RegionUncheckedCreateWithoutSubregionsInput>
542
- connectOrCreate?: Prisma.RegionCreateOrConnectWithoutSubregionsInput
543
- upsert?: Prisma.RegionUpsertWithoutSubregionsInput
544
- disconnect?: Prisma.RegionWhereInput | boolean
545
- delete?: Prisma.RegionWhereInput | boolean
546
- connect?: Prisma.RegionWhereUniqueInput
547
- update?: Prisma.XOR<Prisma.XOR<Prisma.RegionUpdateToOneWithWhereWithoutSubregionsInput, Prisma.RegionUpdateWithoutSubregionsInput>, Prisma.RegionUncheckedUpdateWithoutSubregionsInput>
548
- }
549
-
550
- export type RegionCreateNestedOneWithoutCountriesInput = {
551
- create?: Prisma.XOR<Prisma.RegionCreateWithoutCountriesInput, Prisma.RegionUncheckedCreateWithoutCountriesInput>
552
- connectOrCreate?: Prisma.RegionCreateOrConnectWithoutCountriesInput
553
- connect?: Prisma.RegionWhereUniqueInput
554
- }
555
-
556
- export type RegionUpdateOneWithoutCountriesNestedInput = {
557
- create?: Prisma.XOR<Prisma.RegionCreateWithoutCountriesInput, Prisma.RegionUncheckedCreateWithoutCountriesInput>
558
- connectOrCreate?: Prisma.RegionCreateOrConnectWithoutCountriesInput
559
- upsert?: Prisma.RegionUpsertWithoutCountriesInput
560
- disconnect?: Prisma.RegionWhereInput | boolean
561
- delete?: Prisma.RegionWhereInput | boolean
562
- connect?: Prisma.RegionWhereUniqueInput
563
- update?: Prisma.XOR<Prisma.XOR<Prisma.RegionUpdateToOneWithWhereWithoutCountriesInput, Prisma.RegionUpdateWithoutCountriesInput>, Prisma.RegionUncheckedUpdateWithoutCountriesInput>
564
- }
565
-
566
- export type RegionCreateWithoutSubregionsInput = {
567
- name?: string | null
568
- translations?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
569
- wikiDataId?: string | null
570
- status?: boolean | null
571
- created_at?: Date | string
572
- created_by?: number | null
573
- updated_at?: Date | string
574
- updated_by?: number | null
575
- is_deleted?: boolean | null
576
- deleted_by?: number | null
577
- deleted_at?: Date | string | null
578
- countries?: Prisma.CountryCreateNestedManyWithoutRegion_relationInput
579
- }
580
-
581
- export type RegionUncheckedCreateWithoutSubregionsInput = {
582
- id?: number
583
- name?: string | null
584
- translations?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
585
- wikiDataId?: string | null
586
- status?: boolean | null
587
- created_at?: Date | string
588
- created_by?: number | null
589
- updated_at?: Date | string
590
- updated_by?: number | null
591
- is_deleted?: boolean | null
592
- deleted_by?: number | null
593
- deleted_at?: Date | string | null
594
- countries?: Prisma.CountryUncheckedCreateNestedManyWithoutRegion_relationInput
595
- }
596
-
597
- export type RegionCreateOrConnectWithoutSubregionsInput = {
598
- where: Prisma.RegionWhereUniqueInput
599
- create: Prisma.XOR<Prisma.RegionCreateWithoutSubregionsInput, Prisma.RegionUncheckedCreateWithoutSubregionsInput>
600
- }
601
-
602
- export type RegionUpsertWithoutSubregionsInput = {
603
- update: Prisma.XOR<Prisma.RegionUpdateWithoutSubregionsInput, Prisma.RegionUncheckedUpdateWithoutSubregionsInput>
604
- create: Prisma.XOR<Prisma.RegionCreateWithoutSubregionsInput, Prisma.RegionUncheckedCreateWithoutSubregionsInput>
605
- where?: Prisma.RegionWhereInput
606
- }
607
-
608
- export type RegionUpdateToOneWithWhereWithoutSubregionsInput = {
609
- where?: Prisma.RegionWhereInput
610
- data: Prisma.XOR<Prisma.RegionUpdateWithoutSubregionsInput, Prisma.RegionUncheckedUpdateWithoutSubregionsInput>
611
- }
612
-
613
- export type RegionUpdateWithoutSubregionsInput = {
614
- name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
615
- translations?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
616
- wikiDataId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
617
- status?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
618
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
619
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
620
- updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
621
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
622
- is_deleted?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
623
- deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
624
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
625
- countries?: Prisma.CountryUpdateManyWithoutRegion_relationNestedInput
626
- }
627
-
628
- export type RegionUncheckedUpdateWithoutSubregionsInput = {
629
- id?: Prisma.IntFieldUpdateOperationsInput | number
630
- name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
631
- translations?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
632
- wikiDataId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
633
- status?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
634
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
635
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
636
- updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
637
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
638
- is_deleted?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
639
- deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
640
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
641
- countries?: Prisma.CountryUncheckedUpdateManyWithoutRegion_relationNestedInput
642
- }
643
-
644
- export type RegionCreateWithoutCountriesInput = {
645
- name?: string | null
646
- translations?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
647
- wikiDataId?: string | null
648
- status?: boolean | null
649
- created_at?: Date | string
650
- created_by?: number | null
651
- updated_at?: Date | string
652
- updated_by?: number | null
653
- is_deleted?: boolean | null
654
- deleted_by?: number | null
655
- deleted_at?: Date | string | null
656
- subregions?: Prisma.SubregionCreateNestedManyWithoutRegionInput
657
- }
658
-
659
- export type RegionUncheckedCreateWithoutCountriesInput = {
660
- id?: number
661
- name?: string | null
662
- translations?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
663
- wikiDataId?: string | null
664
- status?: boolean | null
665
- created_at?: Date | string
666
- created_by?: number | null
667
- updated_at?: Date | string
668
- updated_by?: number | null
669
- is_deleted?: boolean | null
670
- deleted_by?: number | null
671
- deleted_at?: Date | string | null
672
- subregions?: Prisma.SubregionUncheckedCreateNestedManyWithoutRegionInput
673
- }
674
-
675
- export type RegionCreateOrConnectWithoutCountriesInput = {
676
- where: Prisma.RegionWhereUniqueInput
677
- create: Prisma.XOR<Prisma.RegionCreateWithoutCountriesInput, Prisma.RegionUncheckedCreateWithoutCountriesInput>
678
- }
679
-
680
- export type RegionUpsertWithoutCountriesInput = {
681
- update: Prisma.XOR<Prisma.RegionUpdateWithoutCountriesInput, Prisma.RegionUncheckedUpdateWithoutCountriesInput>
682
- create: Prisma.XOR<Prisma.RegionCreateWithoutCountriesInput, Prisma.RegionUncheckedCreateWithoutCountriesInput>
683
- where?: Prisma.RegionWhereInput
684
- }
685
-
686
- export type RegionUpdateToOneWithWhereWithoutCountriesInput = {
687
- where?: Prisma.RegionWhereInput
688
- data: Prisma.XOR<Prisma.RegionUpdateWithoutCountriesInput, Prisma.RegionUncheckedUpdateWithoutCountriesInput>
689
- }
690
-
691
- export type RegionUpdateWithoutCountriesInput = {
692
- name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
693
- translations?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
694
- wikiDataId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
695
- status?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
696
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
697
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
698
- updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
699
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
700
- is_deleted?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
701
- deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
702
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
703
- subregions?: Prisma.SubregionUpdateManyWithoutRegionNestedInput
704
- }
705
-
706
- export type RegionUncheckedUpdateWithoutCountriesInput = {
707
- id?: Prisma.IntFieldUpdateOperationsInput | number
708
- name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
709
- translations?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
710
- wikiDataId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
711
- status?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
712
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
713
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
714
- updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
715
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
716
- is_deleted?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
717
- deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
718
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
719
- subregions?: Prisma.SubregionUncheckedUpdateManyWithoutRegionNestedInput
720
- }
721
-
722
-
723
- /**
724
- * Count Type RegionCountOutputType
725
- */
726
-
727
- export type RegionCountOutputType = {
728
- countries: number
729
- subregions: number
730
- }
731
-
732
- export type RegionCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
733
- countries?: boolean | RegionCountOutputTypeCountCountriesArgs
734
- subregions?: boolean | RegionCountOutputTypeCountSubregionsArgs
735
- }
736
-
737
- /**
738
- * RegionCountOutputType without action
739
- */
740
- export type RegionCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
741
- /**
742
- * Select specific fields to fetch from the RegionCountOutputType
743
- */
744
- select?: Prisma.RegionCountOutputTypeSelect<ExtArgs> | null
745
- }
746
-
747
- /**
748
- * RegionCountOutputType without action
749
- */
750
- export type RegionCountOutputTypeCountCountriesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
751
- where?: Prisma.CountryWhereInput
752
- }
753
-
754
- /**
755
- * RegionCountOutputType without action
756
- */
757
- export type RegionCountOutputTypeCountSubregionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
758
- where?: Prisma.SubregionWhereInput
759
- }
760
-
761
-
762
- export type RegionSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
763
- id?: boolean
764
- name?: boolean
765
- translations?: boolean
766
- wikiDataId?: boolean
767
- status?: boolean
768
- created_at?: boolean
769
- created_by?: boolean
770
- updated_at?: boolean
771
- updated_by?: boolean
772
- is_deleted?: boolean
773
- deleted_by?: boolean
774
- deleted_at?: boolean
775
- countries?: boolean | Prisma.Region$countriesArgs<ExtArgs>
776
- subregions?: boolean | Prisma.Region$subregionsArgs<ExtArgs>
777
- _count?: boolean | Prisma.RegionCountOutputTypeDefaultArgs<ExtArgs>
778
- }, ExtArgs["result"]["region"]>
779
-
780
- export type RegionSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
781
- id?: boolean
782
- name?: boolean
783
- translations?: boolean
784
- wikiDataId?: boolean
785
- status?: boolean
786
- created_at?: boolean
787
- created_by?: boolean
788
- updated_at?: boolean
789
- updated_by?: boolean
790
- is_deleted?: boolean
791
- deleted_by?: boolean
792
- deleted_at?: boolean
793
- }, ExtArgs["result"]["region"]>
794
-
795
- export type RegionSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
796
- id?: boolean
797
- name?: boolean
798
- translations?: boolean
799
- wikiDataId?: boolean
800
- status?: boolean
801
- created_at?: boolean
802
- created_by?: boolean
803
- updated_at?: boolean
804
- updated_by?: boolean
805
- is_deleted?: boolean
806
- deleted_by?: boolean
807
- deleted_at?: boolean
808
- }, ExtArgs["result"]["region"]>
809
-
810
- export type RegionSelectScalar = {
811
- id?: boolean
812
- name?: boolean
813
- translations?: boolean
814
- wikiDataId?: boolean
815
- status?: boolean
816
- created_at?: boolean
817
- created_by?: boolean
818
- updated_at?: boolean
819
- updated_by?: boolean
820
- is_deleted?: boolean
821
- deleted_by?: boolean
822
- deleted_at?: boolean
823
- }
824
-
825
- export type RegionOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "translations" | "wikiDataId" | "status" | "created_at" | "created_by" | "updated_at" | "updated_by" | "is_deleted" | "deleted_by" | "deleted_at", ExtArgs["result"]["region"]>
826
- export type RegionInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
827
- countries?: boolean | Prisma.Region$countriesArgs<ExtArgs>
828
- subregions?: boolean | Prisma.Region$subregionsArgs<ExtArgs>
829
- _count?: boolean | Prisma.RegionCountOutputTypeDefaultArgs<ExtArgs>
830
- }
831
- export type RegionIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
832
- export type RegionIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
833
-
834
- export type $RegionPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
835
- name: "Region"
836
- objects: {
837
- countries: Prisma.$CountryPayload<ExtArgs>[]
838
- subregions: Prisma.$SubregionPayload<ExtArgs>[]
839
- }
840
- scalars: runtime.Types.Extensions.GetPayloadResult<{
841
- id: number
842
- name: string | null
843
- translations: runtime.JsonValue | null
844
- wikiDataId: string | null
845
- status: boolean | null
846
- created_at: Date
847
- created_by: number | null
848
- updated_at: Date
849
- updated_by: number | null
850
- is_deleted: boolean | null
851
- deleted_by: number | null
852
- deleted_at: Date | null
853
- }, ExtArgs["result"]["region"]>
854
- composites: {}
855
- }
856
-
857
- export type RegionGetPayload<S extends boolean | null | undefined | RegionDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$RegionPayload, S>
858
-
859
- export type RegionCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
860
- Omit<RegionFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
861
- select?: RegionCountAggregateInputType | true
862
- }
863
-
864
- export interface RegionDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
865
- [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Region'], meta: { name: 'Region' } }
866
- /**
867
- * Find zero or one Region that matches the filter.
868
- * @param {RegionFindUniqueArgs} args - Arguments to find a Region
869
- * @example
870
- * // Get one Region
871
- * const region = await prisma.region.findUnique({
872
- * where: {
873
- * // ... provide filter here
874
- * }
875
- * })
876
- */
877
- findUnique<T extends RegionFindUniqueArgs>(args: Prisma.SelectSubset<T, RegionFindUniqueArgs<ExtArgs>>): Prisma.Prisma__RegionClient<runtime.Types.Result.GetResult<Prisma.$RegionPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
878
-
879
- /**
880
- * Find one Region that matches the filter or throw an error with `error.code='P2025'`
881
- * if no matches were found.
882
- * @param {RegionFindUniqueOrThrowArgs} args - Arguments to find a Region
883
- * @example
884
- * // Get one Region
885
- * const region = await prisma.region.findUniqueOrThrow({
886
- * where: {
887
- * // ... provide filter here
888
- * }
889
- * })
890
- */
891
- findUniqueOrThrow<T extends RegionFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, RegionFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__RegionClient<runtime.Types.Result.GetResult<Prisma.$RegionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
892
-
893
- /**
894
- * Find the first Region that matches the filter.
895
- * Note, that providing `undefined` is treated as the value not being there.
896
- * Read more here: https://pris.ly/d/null-undefined
897
- * @param {RegionFindFirstArgs} args - Arguments to find a Region
898
- * @example
899
- * // Get one Region
900
- * const region = await prisma.region.findFirst({
901
- * where: {
902
- * // ... provide filter here
903
- * }
904
- * })
905
- */
906
- findFirst<T extends RegionFindFirstArgs>(args?: Prisma.SelectSubset<T, RegionFindFirstArgs<ExtArgs>>): Prisma.Prisma__RegionClient<runtime.Types.Result.GetResult<Prisma.$RegionPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
907
-
908
- /**
909
- * Find the first Region that matches the filter or
910
- * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
911
- * Note, that providing `undefined` is treated as the value not being there.
912
- * Read more here: https://pris.ly/d/null-undefined
913
- * @param {RegionFindFirstOrThrowArgs} args - Arguments to find a Region
914
- * @example
915
- * // Get one Region
916
- * const region = await prisma.region.findFirstOrThrow({
917
- * where: {
918
- * // ... provide filter here
919
- * }
920
- * })
921
- */
922
- findFirstOrThrow<T extends RegionFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, RegionFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__RegionClient<runtime.Types.Result.GetResult<Prisma.$RegionPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
923
-
924
- /**
925
- * Find zero or more Regions that matches the filter.
926
- * Note, that providing `undefined` is treated as the value not being there.
927
- * Read more here: https://pris.ly/d/null-undefined
928
- * @param {RegionFindManyArgs} args - Arguments to filter and select certain fields only.
929
- * @example
930
- * // Get all Regions
931
- * const regions = await prisma.region.findMany()
932
- *
933
- * // Get first 10 Regions
934
- * const regions = await prisma.region.findMany({ take: 10 })
935
- *
936
- * // Only select the `id`
937
- * const regionWithIdOnly = await prisma.region.findMany({ select: { id: true } })
938
- *
939
- */
940
- findMany<T extends RegionFindManyArgs>(args?: Prisma.SelectSubset<T, RegionFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RegionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
941
-
942
- /**
943
- * Create a Region.
944
- * @param {RegionCreateArgs} args - Arguments to create a Region.
945
- * @example
946
- * // Create one Region
947
- * const Region = await prisma.region.create({
948
- * data: {
949
- * // ... data to create a Region
950
- * }
951
- * })
952
- *
953
- */
954
- create<T extends RegionCreateArgs>(args: Prisma.SelectSubset<T, RegionCreateArgs<ExtArgs>>): Prisma.Prisma__RegionClient<runtime.Types.Result.GetResult<Prisma.$RegionPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
955
-
956
- /**
957
- * Create many Regions.
958
- * @param {RegionCreateManyArgs} args - Arguments to create many Regions.
959
- * @example
960
- * // Create many Regions
961
- * const region = await prisma.region.createMany({
962
- * data: [
963
- * // ... provide data here
964
- * ]
965
- * })
966
- *
967
- */
968
- createMany<T extends RegionCreateManyArgs>(args?: Prisma.SelectSubset<T, RegionCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
969
-
970
- /**
971
- * Create many Regions and returns the data saved in the database.
972
- * @param {RegionCreateManyAndReturnArgs} args - Arguments to create many Regions.
973
- * @example
974
- * // Create many Regions
975
- * const region = await prisma.region.createManyAndReturn({
976
- * data: [
977
- * // ... provide data here
978
- * ]
979
- * })
980
- *
981
- * // Create many Regions and only return the `id`
982
- * const regionWithIdOnly = await prisma.region.createManyAndReturn({
983
- * select: { id: true },
984
- * data: [
985
- * // ... provide data here
986
- * ]
987
- * })
988
- * Note, that providing `undefined` is treated as the value not being there.
989
- * Read more here: https://pris.ly/d/null-undefined
990
- *
991
- */
992
- createManyAndReturn<T extends RegionCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, RegionCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RegionPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
993
-
994
- /**
995
- * Delete a Region.
996
- * @param {RegionDeleteArgs} args - Arguments to delete one Region.
997
- * @example
998
- * // Delete one Region
999
- * const Region = await prisma.region.delete({
1000
- * where: {
1001
- * // ... filter to delete one Region
1002
- * }
1003
- * })
1004
- *
1005
- */
1006
- delete<T extends RegionDeleteArgs>(args: Prisma.SelectSubset<T, RegionDeleteArgs<ExtArgs>>): Prisma.Prisma__RegionClient<runtime.Types.Result.GetResult<Prisma.$RegionPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1007
-
1008
- /**
1009
- * Update one Region.
1010
- * @param {RegionUpdateArgs} args - Arguments to update one Region.
1011
- * @example
1012
- * // Update one Region
1013
- * const region = await prisma.region.update({
1014
- * where: {
1015
- * // ... provide filter here
1016
- * },
1017
- * data: {
1018
- * // ... provide data here
1019
- * }
1020
- * })
1021
- *
1022
- */
1023
- update<T extends RegionUpdateArgs>(args: Prisma.SelectSubset<T, RegionUpdateArgs<ExtArgs>>): Prisma.Prisma__RegionClient<runtime.Types.Result.GetResult<Prisma.$RegionPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1024
-
1025
- /**
1026
- * Delete zero or more Regions.
1027
- * @param {RegionDeleteManyArgs} args - Arguments to filter Regions to delete.
1028
- * @example
1029
- * // Delete a few Regions
1030
- * const { count } = await prisma.region.deleteMany({
1031
- * where: {
1032
- * // ... provide filter here
1033
- * }
1034
- * })
1035
- *
1036
- */
1037
- deleteMany<T extends RegionDeleteManyArgs>(args?: Prisma.SelectSubset<T, RegionDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1038
-
1039
- /**
1040
- * Update zero or more Regions.
1041
- * Note, that providing `undefined` is treated as the value not being there.
1042
- * Read more here: https://pris.ly/d/null-undefined
1043
- * @param {RegionUpdateManyArgs} args - Arguments to update one or more rows.
1044
- * @example
1045
- * // Update many Regions
1046
- * const region = await prisma.region.updateMany({
1047
- * where: {
1048
- * // ... provide filter here
1049
- * },
1050
- * data: {
1051
- * // ... provide data here
1052
- * }
1053
- * })
1054
- *
1055
- */
1056
- updateMany<T extends RegionUpdateManyArgs>(args: Prisma.SelectSubset<T, RegionUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1057
-
1058
- /**
1059
- * Update zero or more Regions and returns the data updated in the database.
1060
- * @param {RegionUpdateManyAndReturnArgs} args - Arguments to update many Regions.
1061
- * @example
1062
- * // Update many Regions
1063
- * const region = await prisma.region.updateManyAndReturn({
1064
- * where: {
1065
- * // ... provide filter here
1066
- * },
1067
- * data: [
1068
- * // ... provide data here
1069
- * ]
1070
- * })
1071
- *
1072
- * // Update zero or more Regions and only return the `id`
1073
- * const regionWithIdOnly = await prisma.region.updateManyAndReturn({
1074
- * select: { id: true },
1075
- * where: {
1076
- * // ... provide filter here
1077
- * },
1078
- * data: [
1079
- * // ... provide data here
1080
- * ]
1081
- * })
1082
- * Note, that providing `undefined` is treated as the value not being there.
1083
- * Read more here: https://pris.ly/d/null-undefined
1084
- *
1085
- */
1086
- updateManyAndReturn<T extends RegionUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, RegionUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RegionPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
1087
-
1088
- /**
1089
- * Create or update one Region.
1090
- * @param {RegionUpsertArgs} args - Arguments to update or create a Region.
1091
- * @example
1092
- * // Update or create a Region
1093
- * const region = await prisma.region.upsert({
1094
- * create: {
1095
- * // ... data to create a Region
1096
- * },
1097
- * update: {
1098
- * // ... in case it already exists, update
1099
- * },
1100
- * where: {
1101
- * // ... the filter for the Region we want to update
1102
- * }
1103
- * })
1104
- */
1105
- upsert<T extends RegionUpsertArgs>(args: Prisma.SelectSubset<T, RegionUpsertArgs<ExtArgs>>): Prisma.Prisma__RegionClient<runtime.Types.Result.GetResult<Prisma.$RegionPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1106
-
1107
-
1108
- /**
1109
- * Count the number of Regions.
1110
- * Note, that providing `undefined` is treated as the value not being there.
1111
- * Read more here: https://pris.ly/d/null-undefined
1112
- * @param {RegionCountArgs} args - Arguments to filter Regions to count.
1113
- * @example
1114
- * // Count the number of Regions
1115
- * const count = await prisma.region.count({
1116
- * where: {
1117
- * // ... the filter for the Regions we want to count
1118
- * }
1119
- * })
1120
- **/
1121
- count<T extends RegionCountArgs>(
1122
- args?: Prisma.Subset<T, RegionCountArgs>,
1123
- ): Prisma.PrismaPromise<
1124
- T extends runtime.Types.Utils.Record<'select', any>
1125
- ? T['select'] extends true
1126
- ? number
1127
- : Prisma.GetScalarType<T['select'], RegionCountAggregateOutputType>
1128
- : number
1129
- >
1130
-
1131
- /**
1132
- * Allows you to perform aggregations operations on a Region.
1133
- * Note, that providing `undefined` is treated as the value not being there.
1134
- * Read more here: https://pris.ly/d/null-undefined
1135
- * @param {RegionAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1136
- * @example
1137
- * // Ordered by age ascending
1138
- * // Where email contains prisma.io
1139
- * // Limited to the 10 users
1140
- * const aggregations = await prisma.user.aggregate({
1141
- * _avg: {
1142
- * age: true,
1143
- * },
1144
- * where: {
1145
- * email: {
1146
- * contains: "prisma.io",
1147
- * },
1148
- * },
1149
- * orderBy: {
1150
- * age: "asc",
1151
- * },
1152
- * take: 10,
1153
- * })
1154
- **/
1155
- aggregate<T extends RegionAggregateArgs>(args: Prisma.Subset<T, RegionAggregateArgs>): Prisma.PrismaPromise<GetRegionAggregateType<T>>
1156
-
1157
- /**
1158
- * Group by Region.
1159
- * Note, that providing `undefined` is treated as the value not being there.
1160
- * Read more here: https://pris.ly/d/null-undefined
1161
- * @param {RegionGroupByArgs} args - Group by arguments.
1162
- * @example
1163
- * // Group by city, order by createdAt, get count
1164
- * const result = await prisma.user.groupBy({
1165
- * by: ['city', 'createdAt'],
1166
- * orderBy: {
1167
- * createdAt: true
1168
- * },
1169
- * _count: {
1170
- * _all: true
1171
- * },
1172
- * })
1173
- *
1174
- **/
1175
- groupBy<
1176
- T extends RegionGroupByArgs,
1177
- HasSelectOrTake extends Prisma.Or<
1178
- Prisma.Extends<'skip', Prisma.Keys<T>>,
1179
- Prisma.Extends<'take', Prisma.Keys<T>>
1180
- >,
1181
- OrderByArg extends Prisma.True extends HasSelectOrTake
1182
- ? { orderBy: RegionGroupByArgs['orderBy'] }
1183
- : { orderBy?: RegionGroupByArgs['orderBy'] },
1184
- OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
1185
- ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
1186
- ByValid extends Prisma.Has<ByFields, OrderFields>,
1187
- HavingFields extends Prisma.GetHavingFields<T['having']>,
1188
- HavingValid extends Prisma.Has<ByFields, HavingFields>,
1189
- ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
1190
- InputErrors extends ByEmpty extends Prisma.True
1191
- ? `Error: "by" must not be empty.`
1192
- : HavingValid extends Prisma.False
1193
- ? {
1194
- [P in HavingFields]: P extends ByFields
1195
- ? never
1196
- : P extends string
1197
- ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
1198
- : [
1199
- Error,
1200
- 'Field ',
1201
- P,
1202
- ` in "having" needs to be provided in "by"`,
1203
- ]
1204
- }[HavingFields]
1205
- : 'take' extends Prisma.Keys<T>
1206
- ? 'orderBy' extends Prisma.Keys<T>
1207
- ? ByValid extends Prisma.True
1208
- ? {}
1209
- : {
1210
- [P in OrderFields]: P extends ByFields
1211
- ? never
1212
- : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1213
- }[OrderFields]
1214
- : 'Error: If you provide "take", you also need to provide "orderBy"'
1215
- : 'skip' extends Prisma.Keys<T>
1216
- ? 'orderBy' extends Prisma.Keys<T>
1217
- ? ByValid extends Prisma.True
1218
- ? {}
1219
- : {
1220
- [P in OrderFields]: P extends ByFields
1221
- ? never
1222
- : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1223
- }[OrderFields]
1224
- : 'Error: If you provide "skip", you also need to provide "orderBy"'
1225
- : ByValid extends Prisma.True
1226
- ? {}
1227
- : {
1228
- [P in OrderFields]: P extends ByFields
1229
- ? never
1230
- : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1231
- }[OrderFields]
1232
- >(args: Prisma.SubsetIntersection<T, RegionGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetRegionGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
1233
- /**
1234
- * Fields of the Region model
1235
- */
1236
- readonly fields: RegionFieldRefs;
1237
- }
1238
-
1239
- /**
1240
- * The delegate class that acts as a "Promise-like" for Region.
1241
- * Why is this prefixed with `Prisma__`?
1242
- * Because we want to prevent naming conflicts as mentioned in
1243
- * https://github.com/prisma/prisma-client-js/issues/707
1244
- */
1245
- export interface Prisma__RegionClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1246
- readonly [Symbol.toStringTag]: "PrismaPromise"
1247
- countries<T extends Prisma.Region$countriesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Region$countriesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CountryPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1248
- subregions<T extends Prisma.Region$subregionsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Region$subregionsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SubregionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1249
- /**
1250
- * Attaches callbacks for the resolution and/or rejection of the Promise.
1251
- * @param onfulfilled The callback to execute when the Promise is resolved.
1252
- * @param onrejected The callback to execute when the Promise is rejected.
1253
- * @returns A Promise for the completion of which ever callback is executed.
1254
- */
1255
- 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>
1256
- /**
1257
- * Attaches a callback for only the rejection of the Promise.
1258
- * @param onrejected The callback to execute when the Promise is rejected.
1259
- * @returns A Promise for the completion of the callback.
1260
- */
1261
- catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
1262
- /**
1263
- * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1264
- * resolved value cannot be modified from the callback.
1265
- * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1266
- * @returns A Promise for the completion of the callback.
1267
- */
1268
- finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
1269
- }
1270
-
1271
-
1272
-
1273
-
1274
- /**
1275
- * Fields of the Region model
1276
- */
1277
- export interface RegionFieldRefs {
1278
- readonly id: Prisma.FieldRef<"Region", 'Int'>
1279
- readonly name: Prisma.FieldRef<"Region", 'String'>
1280
- readonly translations: Prisma.FieldRef<"Region", 'Json'>
1281
- readonly wikiDataId: Prisma.FieldRef<"Region", 'String'>
1282
- readonly status: Prisma.FieldRef<"Region", 'Boolean'>
1283
- readonly created_at: Prisma.FieldRef<"Region", 'DateTime'>
1284
- readonly created_by: Prisma.FieldRef<"Region", 'Int'>
1285
- readonly updated_at: Prisma.FieldRef<"Region", 'DateTime'>
1286
- readonly updated_by: Prisma.FieldRef<"Region", 'Int'>
1287
- readonly is_deleted: Prisma.FieldRef<"Region", 'Boolean'>
1288
- readonly deleted_by: Prisma.FieldRef<"Region", 'Int'>
1289
- readonly deleted_at: Prisma.FieldRef<"Region", 'DateTime'>
1290
- }
1291
-
1292
-
1293
- // Custom InputTypes
1294
- /**
1295
- * Region findUnique
1296
- */
1297
- export type RegionFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1298
- /**
1299
- * Select specific fields to fetch from the Region
1300
- */
1301
- select?: Prisma.RegionSelect<ExtArgs> | null
1302
- /**
1303
- * Omit specific fields from the Region
1304
- */
1305
- omit?: Prisma.RegionOmit<ExtArgs> | null
1306
- /**
1307
- * Choose, which related nodes to fetch as well
1308
- */
1309
- include?: Prisma.RegionInclude<ExtArgs> | null
1310
- /**
1311
- * Filter, which Region to fetch.
1312
- */
1313
- where: Prisma.RegionWhereUniqueInput
1314
- }
1315
-
1316
- /**
1317
- * Region findUniqueOrThrow
1318
- */
1319
- export type RegionFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1320
- /**
1321
- * Select specific fields to fetch from the Region
1322
- */
1323
- select?: Prisma.RegionSelect<ExtArgs> | null
1324
- /**
1325
- * Omit specific fields from the Region
1326
- */
1327
- omit?: Prisma.RegionOmit<ExtArgs> | null
1328
- /**
1329
- * Choose, which related nodes to fetch as well
1330
- */
1331
- include?: Prisma.RegionInclude<ExtArgs> | null
1332
- /**
1333
- * Filter, which Region to fetch.
1334
- */
1335
- where: Prisma.RegionWhereUniqueInput
1336
- }
1337
-
1338
- /**
1339
- * Region findFirst
1340
- */
1341
- export type RegionFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1342
- /**
1343
- * Select specific fields to fetch from the Region
1344
- */
1345
- select?: Prisma.RegionSelect<ExtArgs> | null
1346
- /**
1347
- * Omit specific fields from the Region
1348
- */
1349
- omit?: Prisma.RegionOmit<ExtArgs> | null
1350
- /**
1351
- * Choose, which related nodes to fetch as well
1352
- */
1353
- include?: Prisma.RegionInclude<ExtArgs> | null
1354
- /**
1355
- * Filter, which Region to fetch.
1356
- */
1357
- where?: Prisma.RegionWhereInput
1358
- /**
1359
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1360
- *
1361
- * Determine the order of Regions to fetch.
1362
- */
1363
- orderBy?: Prisma.RegionOrderByWithRelationInput | Prisma.RegionOrderByWithRelationInput[]
1364
- /**
1365
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1366
- *
1367
- * Sets the position for searching for Regions.
1368
- */
1369
- cursor?: Prisma.RegionWhereUniqueInput
1370
- /**
1371
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1372
- *
1373
- * Take `±n` Regions from the position of the cursor.
1374
- */
1375
- take?: number
1376
- /**
1377
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1378
- *
1379
- * Skip the first `n` Regions.
1380
- */
1381
- skip?: number
1382
- /**
1383
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1384
- *
1385
- * Filter by unique combinations of Regions.
1386
- */
1387
- distinct?: Prisma.RegionScalarFieldEnum | Prisma.RegionScalarFieldEnum[]
1388
- }
1389
-
1390
- /**
1391
- * Region findFirstOrThrow
1392
- */
1393
- export type RegionFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1394
- /**
1395
- * Select specific fields to fetch from the Region
1396
- */
1397
- select?: Prisma.RegionSelect<ExtArgs> | null
1398
- /**
1399
- * Omit specific fields from the Region
1400
- */
1401
- omit?: Prisma.RegionOmit<ExtArgs> | null
1402
- /**
1403
- * Choose, which related nodes to fetch as well
1404
- */
1405
- include?: Prisma.RegionInclude<ExtArgs> | null
1406
- /**
1407
- * Filter, which Region to fetch.
1408
- */
1409
- where?: Prisma.RegionWhereInput
1410
- /**
1411
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1412
- *
1413
- * Determine the order of Regions to fetch.
1414
- */
1415
- orderBy?: Prisma.RegionOrderByWithRelationInput | Prisma.RegionOrderByWithRelationInput[]
1416
- /**
1417
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1418
- *
1419
- * Sets the position for searching for Regions.
1420
- */
1421
- cursor?: Prisma.RegionWhereUniqueInput
1422
- /**
1423
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1424
- *
1425
- * Take `±n` Regions from the position of the cursor.
1426
- */
1427
- take?: number
1428
- /**
1429
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1430
- *
1431
- * Skip the first `n` Regions.
1432
- */
1433
- skip?: number
1434
- /**
1435
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1436
- *
1437
- * Filter by unique combinations of Regions.
1438
- */
1439
- distinct?: Prisma.RegionScalarFieldEnum | Prisma.RegionScalarFieldEnum[]
1440
- }
1441
-
1442
- /**
1443
- * Region findMany
1444
- */
1445
- export type RegionFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1446
- /**
1447
- * Select specific fields to fetch from the Region
1448
- */
1449
- select?: Prisma.RegionSelect<ExtArgs> | null
1450
- /**
1451
- * Omit specific fields from the Region
1452
- */
1453
- omit?: Prisma.RegionOmit<ExtArgs> | null
1454
- /**
1455
- * Choose, which related nodes to fetch as well
1456
- */
1457
- include?: Prisma.RegionInclude<ExtArgs> | null
1458
- /**
1459
- * Filter, which Regions to fetch.
1460
- */
1461
- where?: Prisma.RegionWhereInput
1462
- /**
1463
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1464
- *
1465
- * Determine the order of Regions to fetch.
1466
- */
1467
- orderBy?: Prisma.RegionOrderByWithRelationInput | Prisma.RegionOrderByWithRelationInput[]
1468
- /**
1469
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1470
- *
1471
- * Sets the position for listing Regions.
1472
- */
1473
- cursor?: Prisma.RegionWhereUniqueInput
1474
- /**
1475
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1476
- *
1477
- * Take `±n` Regions from the position of the cursor.
1478
- */
1479
- take?: number
1480
- /**
1481
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1482
- *
1483
- * Skip the first `n` Regions.
1484
- */
1485
- skip?: number
1486
- /**
1487
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1488
- *
1489
- * Filter by unique combinations of Regions.
1490
- */
1491
- distinct?: Prisma.RegionScalarFieldEnum | Prisma.RegionScalarFieldEnum[]
1492
- }
1493
-
1494
- /**
1495
- * Region create
1496
- */
1497
- export type RegionCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1498
- /**
1499
- * Select specific fields to fetch from the Region
1500
- */
1501
- select?: Prisma.RegionSelect<ExtArgs> | null
1502
- /**
1503
- * Omit specific fields from the Region
1504
- */
1505
- omit?: Prisma.RegionOmit<ExtArgs> | null
1506
- /**
1507
- * Choose, which related nodes to fetch as well
1508
- */
1509
- include?: Prisma.RegionInclude<ExtArgs> | null
1510
- /**
1511
- * The data needed to create a Region.
1512
- */
1513
- data: Prisma.XOR<Prisma.RegionCreateInput, Prisma.RegionUncheckedCreateInput>
1514
- }
1515
-
1516
- /**
1517
- * Region createMany
1518
- */
1519
- export type RegionCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1520
- /**
1521
- * The data used to create many Regions.
1522
- */
1523
- data: Prisma.RegionCreateManyInput | Prisma.RegionCreateManyInput[]
1524
- skipDuplicates?: boolean
1525
- }
1526
-
1527
- /**
1528
- * Region createManyAndReturn
1529
- */
1530
- export type RegionCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1531
- /**
1532
- * Select specific fields to fetch from the Region
1533
- */
1534
- select?: Prisma.RegionSelectCreateManyAndReturn<ExtArgs> | null
1535
- /**
1536
- * Omit specific fields from the Region
1537
- */
1538
- omit?: Prisma.RegionOmit<ExtArgs> | null
1539
- /**
1540
- * The data used to create many Regions.
1541
- */
1542
- data: Prisma.RegionCreateManyInput | Prisma.RegionCreateManyInput[]
1543
- skipDuplicates?: boolean
1544
- }
1545
-
1546
- /**
1547
- * Region update
1548
- */
1549
- export type RegionUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1550
- /**
1551
- * Select specific fields to fetch from the Region
1552
- */
1553
- select?: Prisma.RegionSelect<ExtArgs> | null
1554
- /**
1555
- * Omit specific fields from the Region
1556
- */
1557
- omit?: Prisma.RegionOmit<ExtArgs> | null
1558
- /**
1559
- * Choose, which related nodes to fetch as well
1560
- */
1561
- include?: Prisma.RegionInclude<ExtArgs> | null
1562
- /**
1563
- * The data needed to update a Region.
1564
- */
1565
- data: Prisma.XOR<Prisma.RegionUpdateInput, Prisma.RegionUncheckedUpdateInput>
1566
- /**
1567
- * Choose, which Region to update.
1568
- */
1569
- where: Prisma.RegionWhereUniqueInput
1570
- }
1571
-
1572
- /**
1573
- * Region updateMany
1574
- */
1575
- export type RegionUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1576
- /**
1577
- * The data used to update Regions.
1578
- */
1579
- data: Prisma.XOR<Prisma.RegionUpdateManyMutationInput, Prisma.RegionUncheckedUpdateManyInput>
1580
- /**
1581
- * Filter which Regions to update
1582
- */
1583
- where?: Prisma.RegionWhereInput
1584
- /**
1585
- * Limit how many Regions to update.
1586
- */
1587
- limit?: number
1588
- }
1589
-
1590
- /**
1591
- * Region updateManyAndReturn
1592
- */
1593
- export type RegionUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1594
- /**
1595
- * Select specific fields to fetch from the Region
1596
- */
1597
- select?: Prisma.RegionSelectUpdateManyAndReturn<ExtArgs> | null
1598
- /**
1599
- * Omit specific fields from the Region
1600
- */
1601
- omit?: Prisma.RegionOmit<ExtArgs> | null
1602
- /**
1603
- * The data used to update Regions.
1604
- */
1605
- data: Prisma.XOR<Prisma.RegionUpdateManyMutationInput, Prisma.RegionUncheckedUpdateManyInput>
1606
- /**
1607
- * Filter which Regions to update
1608
- */
1609
- where?: Prisma.RegionWhereInput
1610
- /**
1611
- * Limit how many Regions to update.
1612
- */
1613
- limit?: number
1614
- }
1615
-
1616
- /**
1617
- * Region upsert
1618
- */
1619
- export type RegionUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1620
- /**
1621
- * Select specific fields to fetch from the Region
1622
- */
1623
- select?: Prisma.RegionSelect<ExtArgs> | null
1624
- /**
1625
- * Omit specific fields from the Region
1626
- */
1627
- omit?: Prisma.RegionOmit<ExtArgs> | null
1628
- /**
1629
- * Choose, which related nodes to fetch as well
1630
- */
1631
- include?: Prisma.RegionInclude<ExtArgs> | null
1632
- /**
1633
- * The filter to search for the Region to update in case it exists.
1634
- */
1635
- where: Prisma.RegionWhereUniqueInput
1636
- /**
1637
- * In case the Region found by the `where` argument doesn't exist, create a new Region with this data.
1638
- */
1639
- create: Prisma.XOR<Prisma.RegionCreateInput, Prisma.RegionUncheckedCreateInput>
1640
- /**
1641
- * In case the Region was found with the provided `where` argument, update it with this data.
1642
- */
1643
- update: Prisma.XOR<Prisma.RegionUpdateInput, Prisma.RegionUncheckedUpdateInput>
1644
- }
1645
-
1646
- /**
1647
- * Region delete
1648
- */
1649
- export type RegionDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1650
- /**
1651
- * Select specific fields to fetch from the Region
1652
- */
1653
- select?: Prisma.RegionSelect<ExtArgs> | null
1654
- /**
1655
- * Omit specific fields from the Region
1656
- */
1657
- omit?: Prisma.RegionOmit<ExtArgs> | null
1658
- /**
1659
- * Choose, which related nodes to fetch as well
1660
- */
1661
- include?: Prisma.RegionInclude<ExtArgs> | null
1662
- /**
1663
- * Filter which Region to delete.
1664
- */
1665
- where: Prisma.RegionWhereUniqueInput
1666
- }
1667
-
1668
- /**
1669
- * Region deleteMany
1670
- */
1671
- export type RegionDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1672
- /**
1673
- * Filter which Regions to delete
1674
- */
1675
- where?: Prisma.RegionWhereInput
1676
- /**
1677
- * Limit how many Regions to delete.
1678
- */
1679
- limit?: number
1680
- }
1681
-
1682
- /**
1683
- * Region.countries
1684
- */
1685
- export type Region$countriesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1686
- /**
1687
- * Select specific fields to fetch from the Country
1688
- */
1689
- select?: Prisma.CountrySelect<ExtArgs> | null
1690
- /**
1691
- * Omit specific fields from the Country
1692
- */
1693
- omit?: Prisma.CountryOmit<ExtArgs> | null
1694
- /**
1695
- * Choose, which related nodes to fetch as well
1696
- */
1697
- include?: Prisma.CountryInclude<ExtArgs> | null
1698
- where?: Prisma.CountryWhereInput
1699
- orderBy?: Prisma.CountryOrderByWithRelationInput | Prisma.CountryOrderByWithRelationInput[]
1700
- cursor?: Prisma.CountryWhereUniqueInput
1701
- take?: number
1702
- skip?: number
1703
- distinct?: Prisma.CountryScalarFieldEnum | Prisma.CountryScalarFieldEnum[]
1704
- }
1705
-
1706
- /**
1707
- * Region.subregions
1708
- */
1709
- export type Region$subregionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1710
- /**
1711
- * Select specific fields to fetch from the Subregion
1712
- */
1713
- select?: Prisma.SubregionSelect<ExtArgs> | null
1714
- /**
1715
- * Omit specific fields from the Subregion
1716
- */
1717
- omit?: Prisma.SubregionOmit<ExtArgs> | null
1718
- /**
1719
- * Choose, which related nodes to fetch as well
1720
- */
1721
- include?: Prisma.SubregionInclude<ExtArgs> | null
1722
- where?: Prisma.SubregionWhereInput
1723
- orderBy?: Prisma.SubregionOrderByWithRelationInput | Prisma.SubregionOrderByWithRelationInput[]
1724
- cursor?: Prisma.SubregionWhereUniqueInput
1725
- take?: number
1726
- skip?: number
1727
- distinct?: Prisma.SubregionScalarFieldEnum | Prisma.SubregionScalarFieldEnum[]
1728
- }
1729
-
1730
- /**
1731
- * Region without action
1732
- */
1733
- export type RegionDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1734
- /**
1735
- * Select specific fields to fetch from the Region
1736
- */
1737
- select?: Prisma.RegionSelect<ExtArgs> | null
1738
- /**
1739
- * Omit specific fields from the Region
1740
- */
1741
- omit?: Prisma.RegionOmit<ExtArgs> | null
1742
- /**
1743
- * Choose, which related nodes to fetch as well
1744
- */
1745
- include?: Prisma.RegionInclude<ExtArgs> | null
1746
- }