ShortLink.ts 39 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149
  1. /* !!! This is code generated by Prisma. Do not edit directly. !!! */
  2. /* eslint-disable */
  3. // @ts-nocheck
  4. /*
  5. * This file exports the `ShortLink` model and its related types.
  6. *
  7. * 🟢 You can import this file directly.
  8. */
  9. import type * as runtime from "@prisma/client/runtime/library"
  10. import type * as $Enums from "../enums.ts"
  11. import type * as Prisma from "../internal/prismaNamespace.ts"
  12. /**
  13. * Model ShortLink
  14. *
  15. */
  16. export type ShortLinkModel = runtime.Types.Result.DefaultSelection<Prisma.$ShortLinkPayload>
  17. export type AggregateShortLink = {
  18. _count: ShortLinkCountAggregateOutputType | null
  19. _min: ShortLinkMinAggregateOutputType | null
  20. _max: ShortLinkMaxAggregateOutputType | null
  21. }
  22. export type ShortLinkMinAggregateOutputType = {
  23. id: string | null
  24. shortCode: string | null
  25. fullUrl: string | null
  26. createdAt: Date | null
  27. updatedAt: Date | null
  28. }
  29. export type ShortLinkMaxAggregateOutputType = {
  30. id: string | null
  31. shortCode: string | null
  32. fullUrl: string | null
  33. createdAt: Date | null
  34. updatedAt: Date | null
  35. }
  36. export type ShortLinkCountAggregateOutputType = {
  37. id: number
  38. shortCode: number
  39. fullUrl: number
  40. createdAt: number
  41. updatedAt: number
  42. _all: number
  43. }
  44. export type ShortLinkMinAggregateInputType = {
  45. id?: true
  46. shortCode?: true
  47. fullUrl?: true
  48. createdAt?: true
  49. updatedAt?: true
  50. }
  51. export type ShortLinkMaxAggregateInputType = {
  52. id?: true
  53. shortCode?: true
  54. fullUrl?: true
  55. createdAt?: true
  56. updatedAt?: true
  57. }
  58. export type ShortLinkCountAggregateInputType = {
  59. id?: true
  60. shortCode?: true
  61. fullUrl?: true
  62. createdAt?: true
  63. updatedAt?: true
  64. _all?: true
  65. }
  66. export type ShortLinkAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  67. /**
  68. * Filter which ShortLink to aggregate.
  69. */
  70. where?: Prisma.ShortLinkWhereInput
  71. /**
  72. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  73. *
  74. * Determine the order of ShortLinks to fetch.
  75. */
  76. orderBy?: Prisma.ShortLinkOrderByWithRelationInput | Prisma.ShortLinkOrderByWithRelationInput[]
  77. /**
  78. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  79. *
  80. * Sets the start position
  81. */
  82. cursor?: Prisma.ShortLinkWhereUniqueInput
  83. /**
  84. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  85. *
  86. * Take `±n` ShortLinks from the position of the cursor.
  87. */
  88. take?: number
  89. /**
  90. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  91. *
  92. * Skip the first `n` ShortLinks.
  93. */
  94. skip?: number
  95. /**
  96. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  97. *
  98. * Count returned ShortLinks
  99. **/
  100. _count?: true | ShortLinkCountAggregateInputType
  101. /**
  102. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  103. *
  104. * Select which fields to find the minimum value
  105. **/
  106. _min?: ShortLinkMinAggregateInputType
  107. /**
  108. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  109. *
  110. * Select which fields to find the maximum value
  111. **/
  112. _max?: ShortLinkMaxAggregateInputType
  113. }
  114. export type GetShortLinkAggregateType<T extends ShortLinkAggregateArgs> = {
  115. [P in keyof T & keyof AggregateShortLink]: P extends '_count' | 'count'
  116. ? T[P] extends true
  117. ? number
  118. : Prisma.GetScalarType<T[P], AggregateShortLink[P]>
  119. : Prisma.GetScalarType<T[P], AggregateShortLink[P]>
  120. }
  121. export type ShortLinkGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  122. where?: Prisma.ShortLinkWhereInput
  123. orderBy?: Prisma.ShortLinkOrderByWithAggregationInput | Prisma.ShortLinkOrderByWithAggregationInput[]
  124. by: Prisma.ShortLinkScalarFieldEnum[] | Prisma.ShortLinkScalarFieldEnum
  125. having?: Prisma.ShortLinkScalarWhereWithAggregatesInput
  126. take?: number
  127. skip?: number
  128. _count?: ShortLinkCountAggregateInputType | true
  129. _min?: ShortLinkMinAggregateInputType
  130. _max?: ShortLinkMaxAggregateInputType
  131. }
  132. export type ShortLinkGroupByOutputType = {
  133. id: string
  134. shortCode: string
  135. fullUrl: string
  136. createdAt: Date
  137. updatedAt: Date
  138. _count: ShortLinkCountAggregateOutputType | null
  139. _min: ShortLinkMinAggregateOutputType | null
  140. _max: ShortLinkMaxAggregateOutputType | null
  141. }
  142. type GetShortLinkGroupByPayload<T extends ShortLinkGroupByArgs> = Prisma.PrismaPromise<
  143. Array<
  144. Prisma.PickEnumerable<ShortLinkGroupByOutputType, T['by']> &
  145. {
  146. [P in ((keyof T) & (keyof ShortLinkGroupByOutputType))]: P extends '_count'
  147. ? T[P] extends boolean
  148. ? number
  149. : Prisma.GetScalarType<T[P], ShortLinkGroupByOutputType[P]>
  150. : Prisma.GetScalarType<T[P], ShortLinkGroupByOutputType[P]>
  151. }
  152. >
  153. >
  154. export type ShortLinkWhereInput = {
  155. AND?: Prisma.ShortLinkWhereInput | Prisma.ShortLinkWhereInput[]
  156. OR?: Prisma.ShortLinkWhereInput[]
  157. NOT?: Prisma.ShortLinkWhereInput | Prisma.ShortLinkWhereInput[]
  158. id?: Prisma.StringFilter<"ShortLink"> | string
  159. shortCode?: Prisma.StringFilter<"ShortLink"> | string
  160. fullUrl?: Prisma.StringFilter<"ShortLink"> | string
  161. createdAt?: Prisma.DateTimeFilter<"ShortLink"> | Date | string
  162. updatedAt?: Prisma.DateTimeFilter<"ShortLink"> | Date | string
  163. }
  164. export type ShortLinkOrderByWithRelationInput = {
  165. id?: Prisma.SortOrder
  166. shortCode?: Prisma.SortOrder
  167. fullUrl?: Prisma.SortOrder
  168. createdAt?: Prisma.SortOrder
  169. updatedAt?: Prisma.SortOrder
  170. }
  171. export type ShortLinkWhereUniqueInput = Prisma.AtLeast<{
  172. id?: string
  173. shortCode?: string
  174. AND?: Prisma.ShortLinkWhereInput | Prisma.ShortLinkWhereInput[]
  175. OR?: Prisma.ShortLinkWhereInput[]
  176. NOT?: Prisma.ShortLinkWhereInput | Prisma.ShortLinkWhereInput[]
  177. fullUrl?: Prisma.StringFilter<"ShortLink"> | string
  178. createdAt?: Prisma.DateTimeFilter<"ShortLink"> | Date | string
  179. updatedAt?: Prisma.DateTimeFilter<"ShortLink"> | Date | string
  180. }, "id" | "shortCode">
  181. export type ShortLinkOrderByWithAggregationInput = {
  182. id?: Prisma.SortOrder
  183. shortCode?: Prisma.SortOrder
  184. fullUrl?: Prisma.SortOrder
  185. createdAt?: Prisma.SortOrder
  186. updatedAt?: Prisma.SortOrder
  187. _count?: Prisma.ShortLinkCountOrderByAggregateInput
  188. _max?: Prisma.ShortLinkMaxOrderByAggregateInput
  189. _min?: Prisma.ShortLinkMinOrderByAggregateInput
  190. }
  191. export type ShortLinkScalarWhereWithAggregatesInput = {
  192. AND?: Prisma.ShortLinkScalarWhereWithAggregatesInput | Prisma.ShortLinkScalarWhereWithAggregatesInput[]
  193. OR?: Prisma.ShortLinkScalarWhereWithAggregatesInput[]
  194. NOT?: Prisma.ShortLinkScalarWhereWithAggregatesInput | Prisma.ShortLinkScalarWhereWithAggregatesInput[]
  195. id?: Prisma.StringWithAggregatesFilter<"ShortLink"> | string
  196. shortCode?: Prisma.StringWithAggregatesFilter<"ShortLink"> | string
  197. fullUrl?: Prisma.StringWithAggregatesFilter<"ShortLink"> | string
  198. createdAt?: Prisma.DateTimeWithAggregatesFilter<"ShortLink"> | Date | string
  199. updatedAt?: Prisma.DateTimeWithAggregatesFilter<"ShortLink"> | Date | string
  200. }
  201. export type ShortLinkCreateInput = {
  202. id?: string
  203. shortCode: string
  204. fullUrl: string
  205. createdAt?: Date | string
  206. updatedAt?: Date | string
  207. }
  208. export type ShortLinkUncheckedCreateInput = {
  209. id?: string
  210. shortCode: string
  211. fullUrl: string
  212. createdAt?: Date | string
  213. updatedAt?: Date | string
  214. }
  215. export type ShortLinkUpdateInput = {
  216. id?: Prisma.StringFieldUpdateOperationsInput | string
  217. shortCode?: Prisma.StringFieldUpdateOperationsInput | string
  218. fullUrl?: Prisma.StringFieldUpdateOperationsInput | string
  219. createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  220. updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  221. }
  222. export type ShortLinkUncheckedUpdateInput = {
  223. id?: Prisma.StringFieldUpdateOperationsInput | string
  224. shortCode?: Prisma.StringFieldUpdateOperationsInput | string
  225. fullUrl?: Prisma.StringFieldUpdateOperationsInput | string
  226. createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  227. updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  228. }
  229. export type ShortLinkCreateManyInput = {
  230. id?: string
  231. shortCode: string
  232. fullUrl: string
  233. createdAt?: Date | string
  234. updatedAt?: Date | string
  235. }
  236. export type ShortLinkUpdateManyMutationInput = {
  237. id?: Prisma.StringFieldUpdateOperationsInput | string
  238. shortCode?: Prisma.StringFieldUpdateOperationsInput | string
  239. fullUrl?: Prisma.StringFieldUpdateOperationsInput | string
  240. createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  241. updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  242. }
  243. export type ShortLinkUncheckedUpdateManyInput = {
  244. id?: Prisma.StringFieldUpdateOperationsInput | string
  245. shortCode?: Prisma.StringFieldUpdateOperationsInput | string
  246. fullUrl?: Prisma.StringFieldUpdateOperationsInput | string
  247. createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  248. updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  249. }
  250. export type ShortLinkCountOrderByAggregateInput = {
  251. id?: Prisma.SortOrder
  252. shortCode?: Prisma.SortOrder
  253. fullUrl?: Prisma.SortOrder
  254. createdAt?: Prisma.SortOrder
  255. updatedAt?: Prisma.SortOrder
  256. }
  257. export type ShortLinkMaxOrderByAggregateInput = {
  258. id?: Prisma.SortOrder
  259. shortCode?: Prisma.SortOrder
  260. fullUrl?: Prisma.SortOrder
  261. createdAt?: Prisma.SortOrder
  262. updatedAt?: Prisma.SortOrder
  263. }
  264. export type ShortLinkMinOrderByAggregateInput = {
  265. id?: Prisma.SortOrder
  266. shortCode?: Prisma.SortOrder
  267. fullUrl?: Prisma.SortOrder
  268. createdAt?: Prisma.SortOrder
  269. updatedAt?: Prisma.SortOrder
  270. }
  271. export type StringFieldUpdateOperationsInput = {
  272. set?: string
  273. }
  274. export type DateTimeFieldUpdateOperationsInput = {
  275. set?: Date | string
  276. }
  277. export type ShortLinkSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  278. id?: boolean
  279. shortCode?: boolean
  280. fullUrl?: boolean
  281. createdAt?: boolean
  282. updatedAt?: boolean
  283. }, ExtArgs["result"]["shortLink"]>
  284. export type ShortLinkSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  285. id?: boolean
  286. shortCode?: boolean
  287. fullUrl?: boolean
  288. createdAt?: boolean
  289. updatedAt?: boolean
  290. }, ExtArgs["result"]["shortLink"]>
  291. export type ShortLinkSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  292. id?: boolean
  293. shortCode?: boolean
  294. fullUrl?: boolean
  295. createdAt?: boolean
  296. updatedAt?: boolean
  297. }, ExtArgs["result"]["shortLink"]>
  298. export type ShortLinkSelectScalar = {
  299. id?: boolean
  300. shortCode?: boolean
  301. fullUrl?: boolean
  302. createdAt?: boolean
  303. updatedAt?: boolean
  304. }
  305. export type ShortLinkOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "shortCode" | "fullUrl" | "createdAt" | "updatedAt", ExtArgs["result"]["shortLink"]>
  306. export type $ShortLinkPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  307. name: "ShortLink"
  308. objects: {}
  309. scalars: runtime.Types.Extensions.GetPayloadResult<{
  310. id: string
  311. shortCode: string
  312. fullUrl: string
  313. createdAt: Date
  314. updatedAt: Date
  315. }, ExtArgs["result"]["shortLink"]>
  316. composites: {}
  317. }
  318. export type ShortLinkGetPayload<S extends boolean | null | undefined | ShortLinkDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$ShortLinkPayload, S>
  319. export type ShortLinkCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
  320. Omit<ShortLinkFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
  321. select?: ShortLinkCountAggregateInputType | true
  322. }
  323. export interface ShortLinkDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
  324. [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['ShortLink'], meta: { name: 'ShortLink' } }
  325. /**
  326. * Find zero or one ShortLink that matches the filter.
  327. * @param {ShortLinkFindUniqueArgs} args - Arguments to find a ShortLink
  328. * @example
  329. * // Get one ShortLink
  330. * const shortLink = await prisma.shortLink.findUnique({
  331. * where: {
  332. * // ... provide filter here
  333. * }
  334. * })
  335. */
  336. findUnique<T extends ShortLinkFindUniqueArgs>(args: Prisma.SelectSubset<T, ShortLinkFindUniqueArgs<ExtArgs>>): Prisma.Prisma__ShortLinkClient<runtime.Types.Result.GetResult<Prisma.$ShortLinkPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  337. /**
  338. * Find one ShortLink that matches the filter or throw an error with `error.code='P2025'`
  339. * if no matches were found.
  340. * @param {ShortLinkFindUniqueOrThrowArgs} args - Arguments to find a ShortLink
  341. * @example
  342. * // Get one ShortLink
  343. * const shortLink = await prisma.shortLink.findUniqueOrThrow({
  344. * where: {
  345. * // ... provide filter here
  346. * }
  347. * })
  348. */
  349. findUniqueOrThrow<T extends ShortLinkFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, ShortLinkFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__ShortLinkClient<runtime.Types.Result.GetResult<Prisma.$ShortLinkPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  350. /**
  351. * Find the first ShortLink that matches the filter.
  352. * Note, that providing `undefined` is treated as the value not being there.
  353. * Read more here: https://pris.ly/d/null-undefined
  354. * @param {ShortLinkFindFirstArgs} args - Arguments to find a ShortLink
  355. * @example
  356. * // Get one ShortLink
  357. * const shortLink = await prisma.shortLink.findFirst({
  358. * where: {
  359. * // ... provide filter here
  360. * }
  361. * })
  362. */
  363. findFirst<T extends ShortLinkFindFirstArgs>(args?: Prisma.SelectSubset<T, ShortLinkFindFirstArgs<ExtArgs>>): Prisma.Prisma__ShortLinkClient<runtime.Types.Result.GetResult<Prisma.$ShortLinkPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  364. /**
  365. * Find the first ShortLink that matches the filter or
  366. * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
  367. * Note, that providing `undefined` is treated as the value not being there.
  368. * Read more here: https://pris.ly/d/null-undefined
  369. * @param {ShortLinkFindFirstOrThrowArgs} args - Arguments to find a ShortLink
  370. * @example
  371. * // Get one ShortLink
  372. * const shortLink = await prisma.shortLink.findFirstOrThrow({
  373. * where: {
  374. * // ... provide filter here
  375. * }
  376. * })
  377. */
  378. findFirstOrThrow<T extends ShortLinkFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, ShortLinkFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__ShortLinkClient<runtime.Types.Result.GetResult<Prisma.$ShortLinkPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  379. /**
  380. * Find zero or more ShortLinks that matches the filter.
  381. * Note, that providing `undefined` is treated as the value not being there.
  382. * Read more here: https://pris.ly/d/null-undefined
  383. * @param {ShortLinkFindManyArgs} args - Arguments to filter and select certain fields only.
  384. * @example
  385. * // Get all ShortLinks
  386. * const shortLinks = await prisma.shortLink.findMany()
  387. *
  388. * // Get first 10 ShortLinks
  389. * const shortLinks = await prisma.shortLink.findMany({ take: 10 })
  390. *
  391. * // Only select the `id`
  392. * const shortLinkWithIdOnly = await prisma.shortLink.findMany({ select: { id: true } })
  393. *
  394. */
  395. findMany<T extends ShortLinkFindManyArgs>(args?: Prisma.SelectSubset<T, ShortLinkFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ShortLinkPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
  396. /**
  397. * Create a ShortLink.
  398. * @param {ShortLinkCreateArgs} args - Arguments to create a ShortLink.
  399. * @example
  400. * // Create one ShortLink
  401. * const ShortLink = await prisma.shortLink.create({
  402. * data: {
  403. * // ... data to create a ShortLink
  404. * }
  405. * })
  406. *
  407. */
  408. create<T extends ShortLinkCreateArgs>(args: Prisma.SelectSubset<T, ShortLinkCreateArgs<ExtArgs>>): Prisma.Prisma__ShortLinkClient<runtime.Types.Result.GetResult<Prisma.$ShortLinkPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  409. /**
  410. * Create many ShortLinks.
  411. * @param {ShortLinkCreateManyArgs} args - Arguments to create many ShortLinks.
  412. * @example
  413. * // Create many ShortLinks
  414. * const shortLink = await prisma.shortLink.createMany({
  415. * data: [
  416. * // ... provide data here
  417. * ]
  418. * })
  419. *
  420. */
  421. createMany<T extends ShortLinkCreateManyArgs>(args?: Prisma.SelectSubset<T, ShortLinkCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
  422. /**
  423. * Create many ShortLinks and returns the data saved in the database.
  424. * @param {ShortLinkCreateManyAndReturnArgs} args - Arguments to create many ShortLinks.
  425. * @example
  426. * // Create many ShortLinks
  427. * const shortLink = await prisma.shortLink.createManyAndReturn({
  428. * data: [
  429. * // ... provide data here
  430. * ]
  431. * })
  432. *
  433. * // Create many ShortLinks and only return the `id`
  434. * const shortLinkWithIdOnly = await prisma.shortLink.createManyAndReturn({
  435. * select: { id: true },
  436. * data: [
  437. * // ... provide data here
  438. * ]
  439. * })
  440. * Note, that providing `undefined` is treated as the value not being there.
  441. * Read more here: https://pris.ly/d/null-undefined
  442. *
  443. */
  444. createManyAndReturn<T extends ShortLinkCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, ShortLinkCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ShortLinkPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
  445. /**
  446. * Delete a ShortLink.
  447. * @param {ShortLinkDeleteArgs} args - Arguments to delete one ShortLink.
  448. * @example
  449. * // Delete one ShortLink
  450. * const ShortLink = await prisma.shortLink.delete({
  451. * where: {
  452. * // ... filter to delete one ShortLink
  453. * }
  454. * })
  455. *
  456. */
  457. delete<T extends ShortLinkDeleteArgs>(args: Prisma.SelectSubset<T, ShortLinkDeleteArgs<ExtArgs>>): Prisma.Prisma__ShortLinkClient<runtime.Types.Result.GetResult<Prisma.$ShortLinkPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  458. /**
  459. * Update one ShortLink.
  460. * @param {ShortLinkUpdateArgs} args - Arguments to update one ShortLink.
  461. * @example
  462. * // Update one ShortLink
  463. * const shortLink = await prisma.shortLink.update({
  464. * where: {
  465. * // ... provide filter here
  466. * },
  467. * data: {
  468. * // ... provide data here
  469. * }
  470. * })
  471. *
  472. */
  473. update<T extends ShortLinkUpdateArgs>(args: Prisma.SelectSubset<T, ShortLinkUpdateArgs<ExtArgs>>): Prisma.Prisma__ShortLinkClient<runtime.Types.Result.GetResult<Prisma.$ShortLinkPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  474. /**
  475. * Delete zero or more ShortLinks.
  476. * @param {ShortLinkDeleteManyArgs} args - Arguments to filter ShortLinks to delete.
  477. * @example
  478. * // Delete a few ShortLinks
  479. * const { count } = await prisma.shortLink.deleteMany({
  480. * where: {
  481. * // ... provide filter here
  482. * }
  483. * })
  484. *
  485. */
  486. deleteMany<T extends ShortLinkDeleteManyArgs>(args?: Prisma.SelectSubset<T, ShortLinkDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
  487. /**
  488. * Update zero or more ShortLinks.
  489. * Note, that providing `undefined` is treated as the value not being there.
  490. * Read more here: https://pris.ly/d/null-undefined
  491. * @param {ShortLinkUpdateManyArgs} args - Arguments to update one or more rows.
  492. * @example
  493. * // Update many ShortLinks
  494. * const shortLink = await prisma.shortLink.updateMany({
  495. * where: {
  496. * // ... provide filter here
  497. * },
  498. * data: {
  499. * // ... provide data here
  500. * }
  501. * })
  502. *
  503. */
  504. updateMany<T extends ShortLinkUpdateManyArgs>(args: Prisma.SelectSubset<T, ShortLinkUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
  505. /**
  506. * Update zero or more ShortLinks and returns the data updated in the database.
  507. * @param {ShortLinkUpdateManyAndReturnArgs} args - Arguments to update many ShortLinks.
  508. * @example
  509. * // Update many ShortLinks
  510. * const shortLink = await prisma.shortLink.updateManyAndReturn({
  511. * where: {
  512. * // ... provide filter here
  513. * },
  514. * data: [
  515. * // ... provide data here
  516. * ]
  517. * })
  518. *
  519. * // Update zero or more ShortLinks and only return the `id`
  520. * const shortLinkWithIdOnly = await prisma.shortLink.updateManyAndReturn({
  521. * select: { id: true },
  522. * where: {
  523. * // ... provide filter here
  524. * },
  525. * data: [
  526. * // ... provide data here
  527. * ]
  528. * })
  529. * Note, that providing `undefined` is treated as the value not being there.
  530. * Read more here: https://pris.ly/d/null-undefined
  531. *
  532. */
  533. updateManyAndReturn<T extends ShortLinkUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, ShortLinkUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ShortLinkPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
  534. /**
  535. * Create or update one ShortLink.
  536. * @param {ShortLinkUpsertArgs} args - Arguments to update or create a ShortLink.
  537. * @example
  538. * // Update or create a ShortLink
  539. * const shortLink = await prisma.shortLink.upsert({
  540. * create: {
  541. * // ... data to create a ShortLink
  542. * },
  543. * update: {
  544. * // ... in case it already exists, update
  545. * },
  546. * where: {
  547. * // ... the filter for the ShortLink we want to update
  548. * }
  549. * })
  550. */
  551. upsert<T extends ShortLinkUpsertArgs>(args: Prisma.SelectSubset<T, ShortLinkUpsertArgs<ExtArgs>>): Prisma.Prisma__ShortLinkClient<runtime.Types.Result.GetResult<Prisma.$ShortLinkPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  552. /**
  553. * Count the number of ShortLinks.
  554. * Note, that providing `undefined` is treated as the value not being there.
  555. * Read more here: https://pris.ly/d/null-undefined
  556. * @param {ShortLinkCountArgs} args - Arguments to filter ShortLinks to count.
  557. * @example
  558. * // Count the number of ShortLinks
  559. * const count = await prisma.shortLink.count({
  560. * where: {
  561. * // ... the filter for the ShortLinks we want to count
  562. * }
  563. * })
  564. **/
  565. count<T extends ShortLinkCountArgs>(
  566. args?: Prisma.Subset<T, ShortLinkCountArgs>,
  567. ): Prisma.PrismaPromise<
  568. T extends runtime.Types.Utils.Record<'select', any>
  569. ? T['select'] extends true
  570. ? number
  571. : Prisma.GetScalarType<T['select'], ShortLinkCountAggregateOutputType>
  572. : number
  573. >
  574. /**
  575. * Allows you to perform aggregations operations on a ShortLink.
  576. * Note, that providing `undefined` is treated as the value not being there.
  577. * Read more here: https://pris.ly/d/null-undefined
  578. * @param {ShortLinkAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
  579. * @example
  580. * // Ordered by age ascending
  581. * // Where email contains prisma.io
  582. * // Limited to the 10 users
  583. * const aggregations = await prisma.user.aggregate({
  584. * _avg: {
  585. * age: true,
  586. * },
  587. * where: {
  588. * email: {
  589. * contains: "prisma.io",
  590. * },
  591. * },
  592. * orderBy: {
  593. * age: "asc",
  594. * },
  595. * take: 10,
  596. * })
  597. **/
  598. aggregate<T extends ShortLinkAggregateArgs>(args: Prisma.Subset<T, ShortLinkAggregateArgs>): Prisma.PrismaPromise<GetShortLinkAggregateType<T>>
  599. /**
  600. * Group by ShortLink.
  601. * Note, that providing `undefined` is treated as the value not being there.
  602. * Read more here: https://pris.ly/d/null-undefined
  603. * @param {ShortLinkGroupByArgs} args - Group by arguments.
  604. * @example
  605. * // Group by city, order by createdAt, get count
  606. * const result = await prisma.user.groupBy({
  607. * by: ['city', 'createdAt'],
  608. * orderBy: {
  609. * createdAt: true
  610. * },
  611. * _count: {
  612. * _all: true
  613. * },
  614. * })
  615. *
  616. **/
  617. groupBy<
  618. T extends ShortLinkGroupByArgs,
  619. HasSelectOrTake extends Prisma.Or<
  620. Prisma.Extends<'skip', Prisma.Keys<T>>,
  621. Prisma.Extends<'take', Prisma.Keys<T>>
  622. >,
  623. OrderByArg extends Prisma.True extends HasSelectOrTake
  624. ? { orderBy: ShortLinkGroupByArgs['orderBy'] }
  625. : { orderBy?: ShortLinkGroupByArgs['orderBy'] },
  626. OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
  627. ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
  628. ByValid extends Prisma.Has<ByFields, OrderFields>,
  629. HavingFields extends Prisma.GetHavingFields<T['having']>,
  630. HavingValid extends Prisma.Has<ByFields, HavingFields>,
  631. ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
  632. InputErrors extends ByEmpty extends Prisma.True
  633. ? `Error: "by" must not be empty.`
  634. : HavingValid extends Prisma.False
  635. ? {
  636. [P in HavingFields]: P extends ByFields
  637. ? never
  638. : P extends string
  639. ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
  640. : [
  641. Error,
  642. 'Field ',
  643. P,
  644. ` in "having" needs to be provided in "by"`,
  645. ]
  646. }[HavingFields]
  647. : 'take' extends Prisma.Keys<T>
  648. ? 'orderBy' extends Prisma.Keys<T>
  649. ? ByValid extends Prisma.True
  650. ? {}
  651. : {
  652. [P in OrderFields]: P extends ByFields
  653. ? never
  654. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  655. }[OrderFields]
  656. : 'Error: If you provide "take", you also need to provide "orderBy"'
  657. : 'skip' extends Prisma.Keys<T>
  658. ? 'orderBy' extends Prisma.Keys<T>
  659. ? ByValid extends Prisma.True
  660. ? {}
  661. : {
  662. [P in OrderFields]: P extends ByFields
  663. ? never
  664. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  665. }[OrderFields]
  666. : 'Error: If you provide "skip", you also need to provide "orderBy"'
  667. : ByValid extends Prisma.True
  668. ? {}
  669. : {
  670. [P in OrderFields]: P extends ByFields
  671. ? never
  672. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  673. }[OrderFields]
  674. >(args: Prisma.SubsetIntersection<T, ShortLinkGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetShortLinkGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  675. /**
  676. * Fields of the ShortLink model
  677. */
  678. readonly fields: ShortLinkFieldRefs;
  679. }
  680. /**
  681. * The delegate class that acts as a "Promise-like" for ShortLink.
  682. * Why is this prefixed with `Prisma__`?
  683. * Because we want to prevent naming conflicts as mentioned in
  684. * https://github.com/prisma/prisma-client-js/issues/707
  685. */
  686. export interface Prisma__ShortLinkClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  687. readonly [Symbol.toStringTag]: "PrismaPromise"
  688. /**
  689. * Attaches callbacks for the resolution and/or rejection of the Promise.
  690. * @param onfulfilled The callback to execute when the Promise is resolved.
  691. * @param onrejected The callback to execute when the Promise is rejected.
  692. * @returns A Promise for the completion of which ever callback is executed.
  693. */
  694. 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>
  695. /**
  696. * Attaches a callback for only the rejection of the Promise.
  697. * @param onrejected The callback to execute when the Promise is rejected.
  698. * @returns A Promise for the completion of the callback.
  699. */
  700. catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
  701. /**
  702. * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
  703. * resolved value cannot be modified from the callback.
  704. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
  705. * @returns A Promise for the completion of the callback.
  706. */
  707. finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
  708. }
  709. /**
  710. * Fields of the ShortLink model
  711. */
  712. export interface ShortLinkFieldRefs {
  713. readonly id: Prisma.FieldRef<"ShortLink", 'String'>
  714. readonly shortCode: Prisma.FieldRef<"ShortLink", 'String'>
  715. readonly fullUrl: Prisma.FieldRef<"ShortLink", 'String'>
  716. readonly createdAt: Prisma.FieldRef<"ShortLink", 'DateTime'>
  717. readonly updatedAt: Prisma.FieldRef<"ShortLink", 'DateTime'>
  718. }
  719. // Custom InputTypes
  720. /**
  721. * ShortLink findUnique
  722. */
  723. export type ShortLinkFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  724. /**
  725. * Select specific fields to fetch from the ShortLink
  726. */
  727. select?: Prisma.ShortLinkSelect<ExtArgs> | null
  728. /**
  729. * Omit specific fields from the ShortLink
  730. */
  731. omit?: Prisma.ShortLinkOmit<ExtArgs> | null
  732. /**
  733. * Filter, which ShortLink to fetch.
  734. */
  735. where: Prisma.ShortLinkWhereUniqueInput
  736. }
  737. /**
  738. * ShortLink findUniqueOrThrow
  739. */
  740. export type ShortLinkFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  741. /**
  742. * Select specific fields to fetch from the ShortLink
  743. */
  744. select?: Prisma.ShortLinkSelect<ExtArgs> | null
  745. /**
  746. * Omit specific fields from the ShortLink
  747. */
  748. omit?: Prisma.ShortLinkOmit<ExtArgs> | null
  749. /**
  750. * Filter, which ShortLink to fetch.
  751. */
  752. where: Prisma.ShortLinkWhereUniqueInput
  753. }
  754. /**
  755. * ShortLink findFirst
  756. */
  757. export type ShortLinkFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  758. /**
  759. * Select specific fields to fetch from the ShortLink
  760. */
  761. select?: Prisma.ShortLinkSelect<ExtArgs> | null
  762. /**
  763. * Omit specific fields from the ShortLink
  764. */
  765. omit?: Prisma.ShortLinkOmit<ExtArgs> | null
  766. /**
  767. * Filter, which ShortLink to fetch.
  768. */
  769. where?: Prisma.ShortLinkWhereInput
  770. /**
  771. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  772. *
  773. * Determine the order of ShortLinks to fetch.
  774. */
  775. orderBy?: Prisma.ShortLinkOrderByWithRelationInput | Prisma.ShortLinkOrderByWithRelationInput[]
  776. /**
  777. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  778. *
  779. * Sets the position for searching for ShortLinks.
  780. */
  781. cursor?: Prisma.ShortLinkWhereUniqueInput
  782. /**
  783. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  784. *
  785. * Take `±n` ShortLinks from the position of the cursor.
  786. */
  787. take?: number
  788. /**
  789. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  790. *
  791. * Skip the first `n` ShortLinks.
  792. */
  793. skip?: number
  794. /**
  795. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  796. *
  797. * Filter by unique combinations of ShortLinks.
  798. */
  799. distinct?: Prisma.ShortLinkScalarFieldEnum | Prisma.ShortLinkScalarFieldEnum[]
  800. }
  801. /**
  802. * ShortLink findFirstOrThrow
  803. */
  804. export type ShortLinkFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  805. /**
  806. * Select specific fields to fetch from the ShortLink
  807. */
  808. select?: Prisma.ShortLinkSelect<ExtArgs> | null
  809. /**
  810. * Omit specific fields from the ShortLink
  811. */
  812. omit?: Prisma.ShortLinkOmit<ExtArgs> | null
  813. /**
  814. * Filter, which ShortLink to fetch.
  815. */
  816. where?: Prisma.ShortLinkWhereInput
  817. /**
  818. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  819. *
  820. * Determine the order of ShortLinks to fetch.
  821. */
  822. orderBy?: Prisma.ShortLinkOrderByWithRelationInput | Prisma.ShortLinkOrderByWithRelationInput[]
  823. /**
  824. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  825. *
  826. * Sets the position for searching for ShortLinks.
  827. */
  828. cursor?: Prisma.ShortLinkWhereUniqueInput
  829. /**
  830. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  831. *
  832. * Take `±n` ShortLinks from the position of the cursor.
  833. */
  834. take?: number
  835. /**
  836. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  837. *
  838. * Skip the first `n` ShortLinks.
  839. */
  840. skip?: number
  841. /**
  842. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  843. *
  844. * Filter by unique combinations of ShortLinks.
  845. */
  846. distinct?: Prisma.ShortLinkScalarFieldEnum | Prisma.ShortLinkScalarFieldEnum[]
  847. }
  848. /**
  849. * ShortLink findMany
  850. */
  851. export type ShortLinkFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  852. /**
  853. * Select specific fields to fetch from the ShortLink
  854. */
  855. select?: Prisma.ShortLinkSelect<ExtArgs> | null
  856. /**
  857. * Omit specific fields from the ShortLink
  858. */
  859. omit?: Prisma.ShortLinkOmit<ExtArgs> | null
  860. /**
  861. * Filter, which ShortLinks to fetch.
  862. */
  863. where?: Prisma.ShortLinkWhereInput
  864. /**
  865. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  866. *
  867. * Determine the order of ShortLinks to fetch.
  868. */
  869. orderBy?: Prisma.ShortLinkOrderByWithRelationInput | Prisma.ShortLinkOrderByWithRelationInput[]
  870. /**
  871. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  872. *
  873. * Sets the position for listing ShortLinks.
  874. */
  875. cursor?: Prisma.ShortLinkWhereUniqueInput
  876. /**
  877. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  878. *
  879. * Take `±n` ShortLinks from the position of the cursor.
  880. */
  881. take?: number
  882. /**
  883. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  884. *
  885. * Skip the first `n` ShortLinks.
  886. */
  887. skip?: number
  888. distinct?: Prisma.ShortLinkScalarFieldEnum | Prisma.ShortLinkScalarFieldEnum[]
  889. }
  890. /**
  891. * ShortLink create
  892. */
  893. export type ShortLinkCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  894. /**
  895. * Select specific fields to fetch from the ShortLink
  896. */
  897. select?: Prisma.ShortLinkSelect<ExtArgs> | null
  898. /**
  899. * Omit specific fields from the ShortLink
  900. */
  901. omit?: Prisma.ShortLinkOmit<ExtArgs> | null
  902. /**
  903. * The data needed to create a ShortLink.
  904. */
  905. data: Prisma.XOR<Prisma.ShortLinkCreateInput, Prisma.ShortLinkUncheckedCreateInput>
  906. }
  907. /**
  908. * ShortLink createMany
  909. */
  910. export type ShortLinkCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  911. /**
  912. * The data used to create many ShortLinks.
  913. */
  914. data: Prisma.ShortLinkCreateManyInput | Prisma.ShortLinkCreateManyInput[]
  915. }
  916. /**
  917. * ShortLink createManyAndReturn
  918. */
  919. export type ShortLinkCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  920. /**
  921. * Select specific fields to fetch from the ShortLink
  922. */
  923. select?: Prisma.ShortLinkSelectCreateManyAndReturn<ExtArgs> | null
  924. /**
  925. * Omit specific fields from the ShortLink
  926. */
  927. omit?: Prisma.ShortLinkOmit<ExtArgs> | null
  928. /**
  929. * The data used to create many ShortLinks.
  930. */
  931. data: Prisma.ShortLinkCreateManyInput | Prisma.ShortLinkCreateManyInput[]
  932. }
  933. /**
  934. * ShortLink update
  935. */
  936. export type ShortLinkUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  937. /**
  938. * Select specific fields to fetch from the ShortLink
  939. */
  940. select?: Prisma.ShortLinkSelect<ExtArgs> | null
  941. /**
  942. * Omit specific fields from the ShortLink
  943. */
  944. omit?: Prisma.ShortLinkOmit<ExtArgs> | null
  945. /**
  946. * The data needed to update a ShortLink.
  947. */
  948. data: Prisma.XOR<Prisma.ShortLinkUpdateInput, Prisma.ShortLinkUncheckedUpdateInput>
  949. /**
  950. * Choose, which ShortLink to update.
  951. */
  952. where: Prisma.ShortLinkWhereUniqueInput
  953. }
  954. /**
  955. * ShortLink updateMany
  956. */
  957. export type ShortLinkUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  958. /**
  959. * The data used to update ShortLinks.
  960. */
  961. data: Prisma.XOR<Prisma.ShortLinkUpdateManyMutationInput, Prisma.ShortLinkUncheckedUpdateManyInput>
  962. /**
  963. * Filter which ShortLinks to update
  964. */
  965. where?: Prisma.ShortLinkWhereInput
  966. /**
  967. * Limit how many ShortLinks to update.
  968. */
  969. limit?: number
  970. }
  971. /**
  972. * ShortLink updateManyAndReturn
  973. */
  974. export type ShortLinkUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  975. /**
  976. * Select specific fields to fetch from the ShortLink
  977. */
  978. select?: Prisma.ShortLinkSelectUpdateManyAndReturn<ExtArgs> | null
  979. /**
  980. * Omit specific fields from the ShortLink
  981. */
  982. omit?: Prisma.ShortLinkOmit<ExtArgs> | null
  983. /**
  984. * The data used to update ShortLinks.
  985. */
  986. data: Prisma.XOR<Prisma.ShortLinkUpdateManyMutationInput, Prisma.ShortLinkUncheckedUpdateManyInput>
  987. /**
  988. * Filter which ShortLinks to update
  989. */
  990. where?: Prisma.ShortLinkWhereInput
  991. /**
  992. * Limit how many ShortLinks to update.
  993. */
  994. limit?: number
  995. }
  996. /**
  997. * ShortLink upsert
  998. */
  999. export type ShortLinkUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  1000. /**
  1001. * Select specific fields to fetch from the ShortLink
  1002. */
  1003. select?: Prisma.ShortLinkSelect<ExtArgs> | null
  1004. /**
  1005. * Omit specific fields from the ShortLink
  1006. */
  1007. omit?: Prisma.ShortLinkOmit<ExtArgs> | null
  1008. /**
  1009. * The filter to search for the ShortLink to update in case it exists.
  1010. */
  1011. where: Prisma.ShortLinkWhereUniqueInput
  1012. /**
  1013. * In case the ShortLink found by the `where` argument doesn't exist, create a new ShortLink with this data.
  1014. */
  1015. create: Prisma.XOR<Prisma.ShortLinkCreateInput, Prisma.ShortLinkUncheckedCreateInput>
  1016. /**
  1017. * In case the ShortLink was found with the provided `where` argument, update it with this data.
  1018. */
  1019. update: Prisma.XOR<Prisma.ShortLinkUpdateInput, Prisma.ShortLinkUncheckedUpdateInput>
  1020. }
  1021. /**
  1022. * ShortLink delete
  1023. */
  1024. export type ShortLinkDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  1025. /**
  1026. * Select specific fields to fetch from the ShortLink
  1027. */
  1028. select?: Prisma.ShortLinkSelect<ExtArgs> | null
  1029. /**
  1030. * Omit specific fields from the ShortLink
  1031. */
  1032. omit?: Prisma.ShortLinkOmit<ExtArgs> | null
  1033. /**
  1034. * Filter which ShortLink to delete.
  1035. */
  1036. where: Prisma.ShortLinkWhereUniqueInput
  1037. }
  1038. /**
  1039. * ShortLink deleteMany
  1040. */
  1041. export type ShortLinkDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  1042. /**
  1043. * Filter which ShortLinks to delete
  1044. */
  1045. where?: Prisma.ShortLinkWhereInput
  1046. /**
  1047. * Limit how many ShortLinks to delete.
  1048. */
  1049. limit?: number
  1050. }
  1051. /**
  1052. * ShortLink without action
  1053. */
  1054. export type ShortLinkDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  1055. /**
  1056. * Select specific fields to fetch from the ShortLink
  1057. */
  1058. select?: Prisma.ShortLinkSelect<ExtArgs> | null
  1059. /**
  1060. * Omit specific fields from the ShortLink
  1061. */
  1062. omit?: Prisma.ShortLinkOmit<ExtArgs> | null
  1063. }