@levrbet/shared 0.1.76 → 0.1.78
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.
- package/dist/core/prisma/{oracle/generated/client → generated}/edge.js +43 -13
- package/dist/core/prisma/{oracle/generated/client → generated}/index-browser.js +35 -5
- package/dist/core/prisma/{oracle/generated/client → generated}/index.d.ts +2763 -72
- package/dist/core/prisma/{oracle/generated/client → generated}/index.js +47 -17
- package/dist/core/prisma/{oracle/generated/client → generated}/libquery_engine-linux-musl-openssl-3.0.x.so.node +0 -0
- package/dist/core/prisma/{oracle/generated/client → generated}/package.json +2 -2
- package/dist/core/prisma/{oracle/generated/client → generated}/runtime/edge-esm.js +4 -4
- package/dist/core/prisma/{oracle/generated/client → generated}/runtime/edge.js +4 -4
- package/dist/core/prisma/{oracle/generated/client → generated}/runtime/library.d.ts +1 -0
- package/dist/core/prisma/{oracle/generated/client → generated}/runtime/library.js +18 -18
- package/dist/core/prisma/{oracle/generated/client → generated}/runtime/react-native.js +5 -5
- package/dist/core/prisma/{oracle/generated/client → generated}/runtime/wasm-compiler-edge.js +19 -19
- package/dist/core/prisma/{oracle/generated/client → generated}/runtime/wasm-engine-edge.js +11 -11
- package/dist/core/prisma/{oracle/generated/client → generated}/schema.prisma +39 -1
- package/dist/core/prisma/{oracle/generated/client → generated}/wasm.js +43 -13
- package/dist/core/prisma/index.d.ts +1 -1
- package/dist/core/prisma/index.js +1 -1
- package/dist/core/prisma/index.js.map +1 -1
- package/dist/server/auth/kms.js +34 -5
- package/dist/server/auth/kms.js.map +1 -1
- package/dist/server/oracle/types/market/markets.types.d.ts +1 -1
- package/package.json +5 -4
- package/dist/core/prisma/oracle/generated/index.d.ts +0 -1
- package/dist/core/prisma/oracle/generated/index.js +0 -18
- package/dist/core/prisma/oracle/generated/index.js.map +0 -1
- package/dist/core/prisma/oracle/generated/index.ts +0 -1
- package/dist/core/prisma/oracle/index.d.ts +0 -1
- package/dist/core/prisma/oracle/index.js +0 -18
- package/dist/core/prisma/oracle/index.js.map +0 -1
- /package/dist/core/prisma/{oracle/generated/client → generated}/client.d.ts +0 -0
- /package/dist/core/prisma/{oracle/generated/client → generated}/client.js +0 -0
- /package/dist/core/prisma/{oracle/generated/client → generated}/default.d.ts +0 -0
- /package/dist/core/prisma/{oracle/generated/client → generated}/default.js +0 -0
- /package/dist/core/prisma/{oracle/generated/client → generated}/edge.d.ts +0 -0
- /package/dist/core/prisma/{oracle/generated/client → generated}/runtime/index-browser.d.ts +0 -0
- /package/dist/core/prisma/{oracle/generated/client → generated}/runtime/index-browser.js +0 -0
- /package/dist/core/prisma/{oracle/generated/client → generated}/wasm-edge-light-loader.mjs +0 -0
- /package/dist/core/prisma/{oracle/generated/client → generated}/wasm-worker-loader.mjs +0 -0
- /package/dist/core/prisma/{oracle/generated/client → generated}/wasm.d.ts +0 -0
|
@@ -68,6 +68,16 @@ export type Market = $Result.DefaultSelection<Prisma.$MarketPayload>
|
|
|
68
68
|
*
|
|
69
69
|
*/
|
|
70
70
|
export type User = $Result.DefaultSelection<Prisma.$UserPayload>
|
|
71
|
+
/**
|
|
72
|
+
* Model ApiKey
|
|
73
|
+
*
|
|
74
|
+
*/
|
|
75
|
+
export type ApiKey = $Result.DefaultSelection<Prisma.$ApiKeyPayload>
|
|
76
|
+
/**
|
|
77
|
+
* Model AuditLog
|
|
78
|
+
*
|
|
79
|
+
*/
|
|
80
|
+
export type AuditLog = $Result.DefaultSelection<Prisma.$AuditLogPayload>
|
|
71
81
|
|
|
72
82
|
/**
|
|
73
83
|
* Enums
|
|
@@ -359,6 +369,26 @@ export class PrismaClient<
|
|
|
359
369
|
* ```
|
|
360
370
|
*/
|
|
361
371
|
get user(): Prisma.UserDelegate<ExtArgs, ClientOptions>;
|
|
372
|
+
|
|
373
|
+
/**
|
|
374
|
+
* `prisma.apiKey`: Exposes CRUD operations for the **ApiKey** model.
|
|
375
|
+
* Example usage:
|
|
376
|
+
* ```ts
|
|
377
|
+
* // Fetch zero or more ApiKeys
|
|
378
|
+
* const apiKeys = await prisma.apiKey.findMany()
|
|
379
|
+
* ```
|
|
380
|
+
*/
|
|
381
|
+
get apiKey(): Prisma.ApiKeyDelegate<ExtArgs, ClientOptions>;
|
|
382
|
+
|
|
383
|
+
/**
|
|
384
|
+
* `prisma.auditLog`: Exposes CRUD operations for the **AuditLog** model.
|
|
385
|
+
* Example usage:
|
|
386
|
+
* ```ts
|
|
387
|
+
* // Fetch zero or more AuditLogs
|
|
388
|
+
* const auditLogs = await prisma.auditLog.findMany()
|
|
389
|
+
* ```
|
|
390
|
+
*/
|
|
391
|
+
get auditLog(): Prisma.AuditLogDelegate<ExtArgs, ClientOptions>;
|
|
362
392
|
}
|
|
363
393
|
|
|
364
394
|
export namespace Prisma {
|
|
@@ -417,8 +447,8 @@ export namespace Prisma {
|
|
|
417
447
|
export import Exact = $Public.Exact
|
|
418
448
|
|
|
419
449
|
/**
|
|
420
|
-
* Prisma Client JS version: 6.
|
|
421
|
-
* Query Engine version:
|
|
450
|
+
* Prisma Client JS version: 6.17.1
|
|
451
|
+
* Query Engine version: 272a37d34178c2894197e17273bf937f25acdeac
|
|
422
452
|
*/
|
|
423
453
|
export type PrismaVersion = {
|
|
424
454
|
client: string
|
|
@@ -809,7 +839,9 @@ export namespace Prisma {
|
|
|
809
839
|
LevrGame: 'LevrGame',
|
|
810
840
|
Odds: 'Odds',
|
|
811
841
|
Market: 'Market',
|
|
812
|
-
User: 'User'
|
|
842
|
+
User: 'User',
|
|
843
|
+
ApiKey: 'ApiKey',
|
|
844
|
+
AuditLog: 'AuditLog'
|
|
813
845
|
};
|
|
814
846
|
|
|
815
847
|
export type ModelName = (typeof ModelName)[keyof typeof ModelName]
|
|
@@ -828,7 +860,7 @@ export namespace Prisma {
|
|
|
828
860
|
omit: GlobalOmitOptions
|
|
829
861
|
}
|
|
830
862
|
meta: {
|
|
831
|
-
modelProps: "provider" | "tournament" | "sport" | "league" | "teamData" | "fixture" | "scores" | "levrGame" | "odds" | "market" | "user"
|
|
863
|
+
modelProps: "provider" | "tournament" | "sport" | "league" | "teamData" | "fixture" | "scores" | "levrGame" | "odds" | "market" | "user" | "apiKey" | "auditLog"
|
|
832
864
|
txIsolationLevel: never
|
|
833
865
|
}
|
|
834
866
|
model: {
|
|
@@ -1646,6 +1678,154 @@ export namespace Prisma {
|
|
|
1646
1678
|
}
|
|
1647
1679
|
}
|
|
1648
1680
|
}
|
|
1681
|
+
ApiKey: {
|
|
1682
|
+
payload: Prisma.$ApiKeyPayload<ExtArgs>
|
|
1683
|
+
fields: Prisma.ApiKeyFieldRefs
|
|
1684
|
+
operations: {
|
|
1685
|
+
findUnique: {
|
|
1686
|
+
args: Prisma.ApiKeyFindUniqueArgs<ExtArgs>
|
|
1687
|
+
result: $Utils.PayloadToResult<Prisma.$ApiKeyPayload> | null
|
|
1688
|
+
}
|
|
1689
|
+
findUniqueOrThrow: {
|
|
1690
|
+
args: Prisma.ApiKeyFindUniqueOrThrowArgs<ExtArgs>
|
|
1691
|
+
result: $Utils.PayloadToResult<Prisma.$ApiKeyPayload>
|
|
1692
|
+
}
|
|
1693
|
+
findFirst: {
|
|
1694
|
+
args: Prisma.ApiKeyFindFirstArgs<ExtArgs>
|
|
1695
|
+
result: $Utils.PayloadToResult<Prisma.$ApiKeyPayload> | null
|
|
1696
|
+
}
|
|
1697
|
+
findFirstOrThrow: {
|
|
1698
|
+
args: Prisma.ApiKeyFindFirstOrThrowArgs<ExtArgs>
|
|
1699
|
+
result: $Utils.PayloadToResult<Prisma.$ApiKeyPayload>
|
|
1700
|
+
}
|
|
1701
|
+
findMany: {
|
|
1702
|
+
args: Prisma.ApiKeyFindManyArgs<ExtArgs>
|
|
1703
|
+
result: $Utils.PayloadToResult<Prisma.$ApiKeyPayload>[]
|
|
1704
|
+
}
|
|
1705
|
+
create: {
|
|
1706
|
+
args: Prisma.ApiKeyCreateArgs<ExtArgs>
|
|
1707
|
+
result: $Utils.PayloadToResult<Prisma.$ApiKeyPayload>
|
|
1708
|
+
}
|
|
1709
|
+
createMany: {
|
|
1710
|
+
args: Prisma.ApiKeyCreateManyArgs<ExtArgs>
|
|
1711
|
+
result: BatchPayload
|
|
1712
|
+
}
|
|
1713
|
+
delete: {
|
|
1714
|
+
args: Prisma.ApiKeyDeleteArgs<ExtArgs>
|
|
1715
|
+
result: $Utils.PayloadToResult<Prisma.$ApiKeyPayload>
|
|
1716
|
+
}
|
|
1717
|
+
update: {
|
|
1718
|
+
args: Prisma.ApiKeyUpdateArgs<ExtArgs>
|
|
1719
|
+
result: $Utils.PayloadToResult<Prisma.$ApiKeyPayload>
|
|
1720
|
+
}
|
|
1721
|
+
deleteMany: {
|
|
1722
|
+
args: Prisma.ApiKeyDeleteManyArgs<ExtArgs>
|
|
1723
|
+
result: BatchPayload
|
|
1724
|
+
}
|
|
1725
|
+
updateMany: {
|
|
1726
|
+
args: Prisma.ApiKeyUpdateManyArgs<ExtArgs>
|
|
1727
|
+
result: BatchPayload
|
|
1728
|
+
}
|
|
1729
|
+
upsert: {
|
|
1730
|
+
args: Prisma.ApiKeyUpsertArgs<ExtArgs>
|
|
1731
|
+
result: $Utils.PayloadToResult<Prisma.$ApiKeyPayload>
|
|
1732
|
+
}
|
|
1733
|
+
aggregate: {
|
|
1734
|
+
args: Prisma.ApiKeyAggregateArgs<ExtArgs>
|
|
1735
|
+
result: $Utils.Optional<AggregateApiKey>
|
|
1736
|
+
}
|
|
1737
|
+
groupBy: {
|
|
1738
|
+
args: Prisma.ApiKeyGroupByArgs<ExtArgs>
|
|
1739
|
+
result: $Utils.Optional<ApiKeyGroupByOutputType>[]
|
|
1740
|
+
}
|
|
1741
|
+
findRaw: {
|
|
1742
|
+
args: Prisma.ApiKeyFindRawArgs<ExtArgs>
|
|
1743
|
+
result: JsonObject
|
|
1744
|
+
}
|
|
1745
|
+
aggregateRaw: {
|
|
1746
|
+
args: Prisma.ApiKeyAggregateRawArgs<ExtArgs>
|
|
1747
|
+
result: JsonObject
|
|
1748
|
+
}
|
|
1749
|
+
count: {
|
|
1750
|
+
args: Prisma.ApiKeyCountArgs<ExtArgs>
|
|
1751
|
+
result: $Utils.Optional<ApiKeyCountAggregateOutputType> | number
|
|
1752
|
+
}
|
|
1753
|
+
}
|
|
1754
|
+
}
|
|
1755
|
+
AuditLog: {
|
|
1756
|
+
payload: Prisma.$AuditLogPayload<ExtArgs>
|
|
1757
|
+
fields: Prisma.AuditLogFieldRefs
|
|
1758
|
+
operations: {
|
|
1759
|
+
findUnique: {
|
|
1760
|
+
args: Prisma.AuditLogFindUniqueArgs<ExtArgs>
|
|
1761
|
+
result: $Utils.PayloadToResult<Prisma.$AuditLogPayload> | null
|
|
1762
|
+
}
|
|
1763
|
+
findUniqueOrThrow: {
|
|
1764
|
+
args: Prisma.AuditLogFindUniqueOrThrowArgs<ExtArgs>
|
|
1765
|
+
result: $Utils.PayloadToResult<Prisma.$AuditLogPayload>
|
|
1766
|
+
}
|
|
1767
|
+
findFirst: {
|
|
1768
|
+
args: Prisma.AuditLogFindFirstArgs<ExtArgs>
|
|
1769
|
+
result: $Utils.PayloadToResult<Prisma.$AuditLogPayload> | null
|
|
1770
|
+
}
|
|
1771
|
+
findFirstOrThrow: {
|
|
1772
|
+
args: Prisma.AuditLogFindFirstOrThrowArgs<ExtArgs>
|
|
1773
|
+
result: $Utils.PayloadToResult<Prisma.$AuditLogPayload>
|
|
1774
|
+
}
|
|
1775
|
+
findMany: {
|
|
1776
|
+
args: Prisma.AuditLogFindManyArgs<ExtArgs>
|
|
1777
|
+
result: $Utils.PayloadToResult<Prisma.$AuditLogPayload>[]
|
|
1778
|
+
}
|
|
1779
|
+
create: {
|
|
1780
|
+
args: Prisma.AuditLogCreateArgs<ExtArgs>
|
|
1781
|
+
result: $Utils.PayloadToResult<Prisma.$AuditLogPayload>
|
|
1782
|
+
}
|
|
1783
|
+
createMany: {
|
|
1784
|
+
args: Prisma.AuditLogCreateManyArgs<ExtArgs>
|
|
1785
|
+
result: BatchPayload
|
|
1786
|
+
}
|
|
1787
|
+
delete: {
|
|
1788
|
+
args: Prisma.AuditLogDeleteArgs<ExtArgs>
|
|
1789
|
+
result: $Utils.PayloadToResult<Prisma.$AuditLogPayload>
|
|
1790
|
+
}
|
|
1791
|
+
update: {
|
|
1792
|
+
args: Prisma.AuditLogUpdateArgs<ExtArgs>
|
|
1793
|
+
result: $Utils.PayloadToResult<Prisma.$AuditLogPayload>
|
|
1794
|
+
}
|
|
1795
|
+
deleteMany: {
|
|
1796
|
+
args: Prisma.AuditLogDeleteManyArgs<ExtArgs>
|
|
1797
|
+
result: BatchPayload
|
|
1798
|
+
}
|
|
1799
|
+
updateMany: {
|
|
1800
|
+
args: Prisma.AuditLogUpdateManyArgs<ExtArgs>
|
|
1801
|
+
result: BatchPayload
|
|
1802
|
+
}
|
|
1803
|
+
upsert: {
|
|
1804
|
+
args: Prisma.AuditLogUpsertArgs<ExtArgs>
|
|
1805
|
+
result: $Utils.PayloadToResult<Prisma.$AuditLogPayload>
|
|
1806
|
+
}
|
|
1807
|
+
aggregate: {
|
|
1808
|
+
args: Prisma.AuditLogAggregateArgs<ExtArgs>
|
|
1809
|
+
result: $Utils.Optional<AggregateAuditLog>
|
|
1810
|
+
}
|
|
1811
|
+
groupBy: {
|
|
1812
|
+
args: Prisma.AuditLogGroupByArgs<ExtArgs>
|
|
1813
|
+
result: $Utils.Optional<AuditLogGroupByOutputType>[]
|
|
1814
|
+
}
|
|
1815
|
+
findRaw: {
|
|
1816
|
+
args: Prisma.AuditLogFindRawArgs<ExtArgs>
|
|
1817
|
+
result: JsonObject
|
|
1818
|
+
}
|
|
1819
|
+
aggregateRaw: {
|
|
1820
|
+
args: Prisma.AuditLogAggregateRawArgs<ExtArgs>
|
|
1821
|
+
result: JsonObject
|
|
1822
|
+
}
|
|
1823
|
+
count: {
|
|
1824
|
+
args: Prisma.AuditLogCountArgs<ExtArgs>
|
|
1825
|
+
result: $Utils.Optional<AuditLogCountAggregateOutputType> | number
|
|
1826
|
+
}
|
|
1827
|
+
}
|
|
1828
|
+
}
|
|
1649
1829
|
}
|
|
1650
1830
|
} & {
|
|
1651
1831
|
other: {
|
|
@@ -1736,6 +1916,8 @@ export namespace Prisma {
|
|
|
1736
1916
|
odds?: OddsOmit
|
|
1737
1917
|
market?: MarketOmit
|
|
1738
1918
|
user?: UserOmit
|
|
1919
|
+
apiKey?: ApiKeyOmit
|
|
1920
|
+
auditLog?: AuditLogOmit
|
|
1739
1921
|
}
|
|
1740
1922
|
|
|
1741
1923
|
/* Types for Logging */
|
|
@@ -14112,89 +14294,2107 @@ export namespace Prisma {
|
|
|
14112
14294
|
|
|
14113
14295
|
|
|
14114
14296
|
/**
|
|
14115
|
-
*
|
|
14297
|
+
* Model ApiKey
|
|
14116
14298
|
*/
|
|
14117
14299
|
|
|
14118
|
-
export
|
|
14119
|
-
|
|
14120
|
-
|
|
14121
|
-
|
|
14122
|
-
|
|
14123
|
-
|
|
14124
|
-
}
|
|
14300
|
+
export type AggregateApiKey = {
|
|
14301
|
+
_count: ApiKeyCountAggregateOutputType | null
|
|
14302
|
+
_avg: ApiKeyAvgAggregateOutputType | null
|
|
14303
|
+
_sum: ApiKeySumAggregateOutputType | null
|
|
14304
|
+
_min: ApiKeyMinAggregateOutputType | null
|
|
14305
|
+
_max: ApiKeyMaxAggregateOutputType | null
|
|
14306
|
+
}
|
|
14125
14307
|
|
|
14126
|
-
export type
|
|
14308
|
+
export type ApiKeyAvgAggregateOutputType = {
|
|
14309
|
+
usageCount: number | null
|
|
14310
|
+
}
|
|
14127
14311
|
|
|
14312
|
+
export type ApiKeySumAggregateOutputType = {
|
|
14313
|
+
usageCount: number | null
|
|
14314
|
+
}
|
|
14128
14315
|
|
|
14129
|
-
export
|
|
14130
|
-
objectId:
|
|
14131
|
-
|
|
14132
|
-
|
|
14133
|
-
|
|
14134
|
-
|
|
14135
|
-
|
|
14136
|
-
|
|
14137
|
-
|
|
14138
|
-
createdAt:
|
|
14139
|
-
updatedAt:
|
|
14140
|
-
|
|
14316
|
+
export type ApiKeyMinAggregateOutputType = {
|
|
14317
|
+
objectId: string | null
|
|
14318
|
+
name: string | null
|
|
14319
|
+
hashedKey: string | null
|
|
14320
|
+
keyId: string | null
|
|
14321
|
+
isActive: boolean | null
|
|
14322
|
+
expiresAt: Date | null
|
|
14323
|
+
lastUsedAt: Date | null
|
|
14324
|
+
usageCount: number | null
|
|
14325
|
+
createdAt: Date | null
|
|
14326
|
+
updatedAt: Date | null
|
|
14327
|
+
applicationId: string | null
|
|
14328
|
+
userId: string | null
|
|
14329
|
+
}
|
|
14141
14330
|
|
|
14142
|
-
export type
|
|
14331
|
+
export type ApiKeyMaxAggregateOutputType = {
|
|
14332
|
+
objectId: string | null
|
|
14333
|
+
name: string | null
|
|
14334
|
+
hashedKey: string | null
|
|
14335
|
+
keyId: string | null
|
|
14336
|
+
isActive: boolean | null
|
|
14337
|
+
expiresAt: Date | null
|
|
14338
|
+
lastUsedAt: Date | null
|
|
14339
|
+
usageCount: number | null
|
|
14340
|
+
createdAt: Date | null
|
|
14341
|
+
updatedAt: Date | null
|
|
14342
|
+
applicationId: string | null
|
|
14343
|
+
userId: string | null
|
|
14344
|
+
}
|
|
14143
14345
|
|
|
14346
|
+
export type ApiKeyCountAggregateOutputType = {
|
|
14347
|
+
objectId: number
|
|
14348
|
+
name: number
|
|
14349
|
+
hashedKey: number
|
|
14350
|
+
keyId: number
|
|
14351
|
+
scopes: number
|
|
14352
|
+
metadata: number
|
|
14353
|
+
isActive: number
|
|
14354
|
+
expiresAt: number
|
|
14355
|
+
lastUsedAt: number
|
|
14356
|
+
usageCount: number
|
|
14357
|
+
createdAt: number
|
|
14358
|
+
updatedAt: number
|
|
14359
|
+
applicationId: number
|
|
14360
|
+
userId: number
|
|
14361
|
+
_all: number
|
|
14362
|
+
}
|
|
14144
14363
|
|
|
14145
|
-
export const SportScalarFieldEnum: {
|
|
14146
|
-
objectId: 'objectId',
|
|
14147
|
-
levrSportId: 'levrSportId',
|
|
14148
|
-
name: 'name',
|
|
14149
|
-
periodType: 'periodType',
|
|
14150
|
-
scoringType: 'scoringType',
|
|
14151
|
-
standardDurationMs: 'standardDurationMs',
|
|
14152
|
-
standardPeriods: 'standardPeriods',
|
|
14153
|
-
periodDuration: 'periodDuration',
|
|
14154
|
-
hasDrawMarket: 'hasDrawMarket',
|
|
14155
|
-
sportGroup: 'sportGroup',
|
|
14156
|
-
createdAt: 'createdAt',
|
|
14157
|
-
updatedAt: 'updatedAt'
|
|
14158
|
-
};
|
|
14159
14364
|
|
|
14160
|
-
export type
|
|
14365
|
+
export type ApiKeyAvgAggregateInputType = {
|
|
14366
|
+
usageCount?: true
|
|
14367
|
+
}
|
|
14161
14368
|
|
|
14369
|
+
export type ApiKeySumAggregateInputType = {
|
|
14370
|
+
usageCount?: true
|
|
14371
|
+
}
|
|
14162
14372
|
|
|
14163
|
-
export
|
|
14164
|
-
objectId
|
|
14165
|
-
name
|
|
14166
|
-
|
|
14167
|
-
|
|
14168
|
-
|
|
14169
|
-
|
|
14170
|
-
|
|
14171
|
-
|
|
14172
|
-
|
|
14173
|
-
|
|
14174
|
-
|
|
14175
|
-
|
|
14176
|
-
}
|
|
14373
|
+
export type ApiKeyMinAggregateInputType = {
|
|
14374
|
+
objectId?: true
|
|
14375
|
+
name?: true
|
|
14376
|
+
hashedKey?: true
|
|
14377
|
+
keyId?: true
|
|
14378
|
+
isActive?: true
|
|
14379
|
+
expiresAt?: true
|
|
14380
|
+
lastUsedAt?: true
|
|
14381
|
+
usageCount?: true
|
|
14382
|
+
createdAt?: true
|
|
14383
|
+
updatedAt?: true
|
|
14384
|
+
applicationId?: true
|
|
14385
|
+
userId?: true
|
|
14386
|
+
}
|
|
14177
14387
|
|
|
14178
|
-
export type
|
|
14388
|
+
export type ApiKeyMaxAggregateInputType = {
|
|
14389
|
+
objectId?: true
|
|
14390
|
+
name?: true
|
|
14391
|
+
hashedKey?: true
|
|
14392
|
+
keyId?: true
|
|
14393
|
+
isActive?: true
|
|
14394
|
+
expiresAt?: true
|
|
14395
|
+
lastUsedAt?: true
|
|
14396
|
+
usageCount?: true
|
|
14397
|
+
createdAt?: true
|
|
14398
|
+
updatedAt?: true
|
|
14399
|
+
applicationId?: true
|
|
14400
|
+
userId?: true
|
|
14401
|
+
}
|
|
14179
14402
|
|
|
14403
|
+
export type ApiKeyCountAggregateInputType = {
|
|
14404
|
+
objectId?: true
|
|
14405
|
+
name?: true
|
|
14406
|
+
hashedKey?: true
|
|
14407
|
+
keyId?: true
|
|
14408
|
+
scopes?: true
|
|
14409
|
+
metadata?: true
|
|
14410
|
+
isActive?: true
|
|
14411
|
+
expiresAt?: true
|
|
14412
|
+
lastUsedAt?: true
|
|
14413
|
+
usageCount?: true
|
|
14414
|
+
createdAt?: true
|
|
14415
|
+
updatedAt?: true
|
|
14416
|
+
applicationId?: true
|
|
14417
|
+
userId?: true
|
|
14418
|
+
_all?: true
|
|
14419
|
+
}
|
|
14180
14420
|
|
|
14181
|
-
export
|
|
14182
|
-
|
|
14183
|
-
|
|
14184
|
-
|
|
14185
|
-
|
|
14186
|
-
|
|
14187
|
-
|
|
14188
|
-
|
|
14189
|
-
|
|
14190
|
-
|
|
14191
|
-
|
|
14192
|
-
|
|
14193
|
-
|
|
14194
|
-
|
|
14195
|
-
|
|
14421
|
+
export type ApiKeyAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
14422
|
+
/**
|
|
14423
|
+
* Filter which ApiKey to aggregate.
|
|
14424
|
+
*/
|
|
14425
|
+
where?: ApiKeyWhereInput
|
|
14426
|
+
/**
|
|
14427
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
14428
|
+
*
|
|
14429
|
+
* Determine the order of ApiKeys to fetch.
|
|
14430
|
+
*/
|
|
14431
|
+
orderBy?: ApiKeyOrderByWithRelationInput | ApiKeyOrderByWithRelationInput[]
|
|
14432
|
+
/**
|
|
14433
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
14434
|
+
*
|
|
14435
|
+
* Sets the start position
|
|
14436
|
+
*/
|
|
14437
|
+
cursor?: ApiKeyWhereUniqueInput
|
|
14438
|
+
/**
|
|
14439
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
14440
|
+
*
|
|
14441
|
+
* Take `±n` ApiKeys from the position of the cursor.
|
|
14442
|
+
*/
|
|
14443
|
+
take?: number
|
|
14444
|
+
/**
|
|
14445
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
14446
|
+
*
|
|
14447
|
+
* Skip the first `n` ApiKeys.
|
|
14448
|
+
*/
|
|
14449
|
+
skip?: number
|
|
14450
|
+
/**
|
|
14451
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
14452
|
+
*
|
|
14453
|
+
* Count returned ApiKeys
|
|
14454
|
+
**/
|
|
14455
|
+
_count?: true | ApiKeyCountAggregateInputType
|
|
14456
|
+
/**
|
|
14457
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
14458
|
+
*
|
|
14459
|
+
* Select which fields to average
|
|
14460
|
+
**/
|
|
14461
|
+
_avg?: ApiKeyAvgAggregateInputType
|
|
14462
|
+
/**
|
|
14463
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
14464
|
+
*
|
|
14465
|
+
* Select which fields to sum
|
|
14466
|
+
**/
|
|
14467
|
+
_sum?: ApiKeySumAggregateInputType
|
|
14468
|
+
/**
|
|
14469
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
14470
|
+
*
|
|
14471
|
+
* Select which fields to find the minimum value
|
|
14472
|
+
**/
|
|
14473
|
+
_min?: ApiKeyMinAggregateInputType
|
|
14474
|
+
/**
|
|
14475
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
14476
|
+
*
|
|
14477
|
+
* Select which fields to find the maximum value
|
|
14478
|
+
**/
|
|
14479
|
+
_max?: ApiKeyMaxAggregateInputType
|
|
14480
|
+
}
|
|
14196
14481
|
|
|
14197
|
-
export type
|
|
14482
|
+
export type GetApiKeyAggregateType<T extends ApiKeyAggregateArgs> = {
|
|
14483
|
+
[P in keyof T & keyof AggregateApiKey]: P extends '_count' | 'count'
|
|
14484
|
+
? T[P] extends true
|
|
14485
|
+
? number
|
|
14486
|
+
: GetScalarType<T[P], AggregateApiKey[P]>
|
|
14487
|
+
: GetScalarType<T[P], AggregateApiKey[P]>
|
|
14488
|
+
}
|
|
14489
|
+
|
|
14490
|
+
|
|
14491
|
+
|
|
14492
|
+
|
|
14493
|
+
export type ApiKeyGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
14494
|
+
where?: ApiKeyWhereInput
|
|
14495
|
+
orderBy?: ApiKeyOrderByWithAggregationInput | ApiKeyOrderByWithAggregationInput[]
|
|
14496
|
+
by: ApiKeyScalarFieldEnum[] | ApiKeyScalarFieldEnum
|
|
14497
|
+
having?: ApiKeyScalarWhereWithAggregatesInput
|
|
14498
|
+
take?: number
|
|
14499
|
+
skip?: number
|
|
14500
|
+
_count?: ApiKeyCountAggregateInputType | true
|
|
14501
|
+
_avg?: ApiKeyAvgAggregateInputType
|
|
14502
|
+
_sum?: ApiKeySumAggregateInputType
|
|
14503
|
+
_min?: ApiKeyMinAggregateInputType
|
|
14504
|
+
_max?: ApiKeyMaxAggregateInputType
|
|
14505
|
+
}
|
|
14506
|
+
|
|
14507
|
+
export type ApiKeyGroupByOutputType = {
|
|
14508
|
+
objectId: string
|
|
14509
|
+
name: string
|
|
14510
|
+
hashedKey: string
|
|
14511
|
+
keyId: string
|
|
14512
|
+
scopes: string[]
|
|
14513
|
+
metadata: JsonValue
|
|
14514
|
+
isActive: boolean
|
|
14515
|
+
expiresAt: Date | null
|
|
14516
|
+
lastUsedAt: Date | null
|
|
14517
|
+
usageCount: number
|
|
14518
|
+
createdAt: Date
|
|
14519
|
+
updatedAt: Date
|
|
14520
|
+
applicationId: string
|
|
14521
|
+
userId: string
|
|
14522
|
+
_count: ApiKeyCountAggregateOutputType | null
|
|
14523
|
+
_avg: ApiKeyAvgAggregateOutputType | null
|
|
14524
|
+
_sum: ApiKeySumAggregateOutputType | null
|
|
14525
|
+
_min: ApiKeyMinAggregateOutputType | null
|
|
14526
|
+
_max: ApiKeyMaxAggregateOutputType | null
|
|
14527
|
+
}
|
|
14528
|
+
|
|
14529
|
+
type GetApiKeyGroupByPayload<T extends ApiKeyGroupByArgs> = Prisma.PrismaPromise<
|
|
14530
|
+
Array<
|
|
14531
|
+
PickEnumerable<ApiKeyGroupByOutputType, T['by']> &
|
|
14532
|
+
{
|
|
14533
|
+
[P in ((keyof T) & (keyof ApiKeyGroupByOutputType))]: P extends '_count'
|
|
14534
|
+
? T[P] extends boolean
|
|
14535
|
+
? number
|
|
14536
|
+
: GetScalarType<T[P], ApiKeyGroupByOutputType[P]>
|
|
14537
|
+
: GetScalarType<T[P], ApiKeyGroupByOutputType[P]>
|
|
14538
|
+
}
|
|
14539
|
+
>
|
|
14540
|
+
>
|
|
14541
|
+
|
|
14542
|
+
|
|
14543
|
+
export type ApiKeySelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
14544
|
+
objectId?: boolean
|
|
14545
|
+
name?: boolean
|
|
14546
|
+
hashedKey?: boolean
|
|
14547
|
+
keyId?: boolean
|
|
14548
|
+
scopes?: boolean
|
|
14549
|
+
metadata?: boolean
|
|
14550
|
+
isActive?: boolean
|
|
14551
|
+
expiresAt?: boolean
|
|
14552
|
+
lastUsedAt?: boolean
|
|
14553
|
+
usageCount?: boolean
|
|
14554
|
+
createdAt?: boolean
|
|
14555
|
+
updatedAt?: boolean
|
|
14556
|
+
applicationId?: boolean
|
|
14557
|
+
userId?: boolean
|
|
14558
|
+
}, ExtArgs["result"]["apiKey"]>
|
|
14559
|
+
|
|
14560
|
+
|
|
14561
|
+
|
|
14562
|
+
export type ApiKeySelectScalar = {
|
|
14563
|
+
objectId?: boolean
|
|
14564
|
+
name?: boolean
|
|
14565
|
+
hashedKey?: boolean
|
|
14566
|
+
keyId?: boolean
|
|
14567
|
+
scopes?: boolean
|
|
14568
|
+
metadata?: boolean
|
|
14569
|
+
isActive?: boolean
|
|
14570
|
+
expiresAt?: boolean
|
|
14571
|
+
lastUsedAt?: boolean
|
|
14572
|
+
usageCount?: boolean
|
|
14573
|
+
createdAt?: boolean
|
|
14574
|
+
updatedAt?: boolean
|
|
14575
|
+
applicationId?: boolean
|
|
14576
|
+
userId?: boolean
|
|
14577
|
+
}
|
|
14578
|
+
|
|
14579
|
+
export type ApiKeyOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"objectId" | "name" | "hashedKey" | "keyId" | "scopes" | "metadata" | "isActive" | "expiresAt" | "lastUsedAt" | "usageCount" | "createdAt" | "updatedAt" | "applicationId" | "userId", ExtArgs["result"]["apiKey"]>
|
|
14580
|
+
|
|
14581
|
+
export type $ApiKeyPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
14582
|
+
name: "ApiKey"
|
|
14583
|
+
objects: {}
|
|
14584
|
+
scalars: $Extensions.GetPayloadResult<{
|
|
14585
|
+
objectId: string
|
|
14586
|
+
name: string
|
|
14587
|
+
hashedKey: string
|
|
14588
|
+
keyId: string
|
|
14589
|
+
scopes: string[]
|
|
14590
|
+
metadata: Prisma.JsonValue
|
|
14591
|
+
isActive: boolean
|
|
14592
|
+
expiresAt: Date | null
|
|
14593
|
+
lastUsedAt: Date | null
|
|
14594
|
+
usageCount: number
|
|
14595
|
+
createdAt: Date
|
|
14596
|
+
updatedAt: Date
|
|
14597
|
+
applicationId: string
|
|
14598
|
+
userId: string
|
|
14599
|
+
}, ExtArgs["result"]["apiKey"]>
|
|
14600
|
+
composites: {}
|
|
14601
|
+
}
|
|
14602
|
+
|
|
14603
|
+
type ApiKeyGetPayload<S extends boolean | null | undefined | ApiKeyDefaultArgs> = $Result.GetResult<Prisma.$ApiKeyPayload, S>
|
|
14604
|
+
|
|
14605
|
+
type ApiKeyCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
14606
|
+
Omit<ApiKeyFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
14607
|
+
select?: ApiKeyCountAggregateInputType | true
|
|
14608
|
+
}
|
|
14609
|
+
|
|
14610
|
+
export interface ApiKeyDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
14611
|
+
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['ApiKey'], meta: { name: 'ApiKey' } }
|
|
14612
|
+
/**
|
|
14613
|
+
* Find zero or one ApiKey that matches the filter.
|
|
14614
|
+
* @param {ApiKeyFindUniqueArgs} args - Arguments to find a ApiKey
|
|
14615
|
+
* @example
|
|
14616
|
+
* // Get one ApiKey
|
|
14617
|
+
* const apiKey = await prisma.apiKey.findUnique({
|
|
14618
|
+
* where: {
|
|
14619
|
+
* // ... provide filter here
|
|
14620
|
+
* }
|
|
14621
|
+
* })
|
|
14622
|
+
*/
|
|
14623
|
+
findUnique<T extends ApiKeyFindUniqueArgs>(args: SelectSubset<T, ApiKeyFindUniqueArgs<ExtArgs>>): Prisma__ApiKeyClient<$Result.GetResult<Prisma.$ApiKeyPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
14624
|
+
|
|
14625
|
+
/**
|
|
14626
|
+
* Find one ApiKey that matches the filter or throw an error with `error.code='P2025'`
|
|
14627
|
+
* if no matches were found.
|
|
14628
|
+
* @param {ApiKeyFindUniqueOrThrowArgs} args - Arguments to find a ApiKey
|
|
14629
|
+
* @example
|
|
14630
|
+
* // Get one ApiKey
|
|
14631
|
+
* const apiKey = await prisma.apiKey.findUniqueOrThrow({
|
|
14632
|
+
* where: {
|
|
14633
|
+
* // ... provide filter here
|
|
14634
|
+
* }
|
|
14635
|
+
* })
|
|
14636
|
+
*/
|
|
14637
|
+
findUniqueOrThrow<T extends ApiKeyFindUniqueOrThrowArgs>(args: SelectSubset<T, ApiKeyFindUniqueOrThrowArgs<ExtArgs>>): Prisma__ApiKeyClient<$Result.GetResult<Prisma.$ApiKeyPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
14638
|
+
|
|
14639
|
+
/**
|
|
14640
|
+
* Find the first ApiKey that matches the filter.
|
|
14641
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
14642
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
14643
|
+
* @param {ApiKeyFindFirstArgs} args - Arguments to find a ApiKey
|
|
14644
|
+
* @example
|
|
14645
|
+
* // Get one ApiKey
|
|
14646
|
+
* const apiKey = await prisma.apiKey.findFirst({
|
|
14647
|
+
* where: {
|
|
14648
|
+
* // ... provide filter here
|
|
14649
|
+
* }
|
|
14650
|
+
* })
|
|
14651
|
+
*/
|
|
14652
|
+
findFirst<T extends ApiKeyFindFirstArgs>(args?: SelectSubset<T, ApiKeyFindFirstArgs<ExtArgs>>): Prisma__ApiKeyClient<$Result.GetResult<Prisma.$ApiKeyPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
14653
|
+
|
|
14654
|
+
/**
|
|
14655
|
+
* Find the first ApiKey that matches the filter or
|
|
14656
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
14657
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
14658
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
14659
|
+
* @param {ApiKeyFindFirstOrThrowArgs} args - Arguments to find a ApiKey
|
|
14660
|
+
* @example
|
|
14661
|
+
* // Get one ApiKey
|
|
14662
|
+
* const apiKey = await prisma.apiKey.findFirstOrThrow({
|
|
14663
|
+
* where: {
|
|
14664
|
+
* // ... provide filter here
|
|
14665
|
+
* }
|
|
14666
|
+
* })
|
|
14667
|
+
*/
|
|
14668
|
+
findFirstOrThrow<T extends ApiKeyFindFirstOrThrowArgs>(args?: SelectSubset<T, ApiKeyFindFirstOrThrowArgs<ExtArgs>>): Prisma__ApiKeyClient<$Result.GetResult<Prisma.$ApiKeyPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
14669
|
+
|
|
14670
|
+
/**
|
|
14671
|
+
* Find zero or more ApiKeys that matches the filter.
|
|
14672
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
14673
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
14674
|
+
* @param {ApiKeyFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
14675
|
+
* @example
|
|
14676
|
+
* // Get all ApiKeys
|
|
14677
|
+
* const apiKeys = await prisma.apiKey.findMany()
|
|
14678
|
+
*
|
|
14679
|
+
* // Get first 10 ApiKeys
|
|
14680
|
+
* const apiKeys = await prisma.apiKey.findMany({ take: 10 })
|
|
14681
|
+
*
|
|
14682
|
+
* // Only select the `objectId`
|
|
14683
|
+
* const apiKeyWithObjectIdOnly = await prisma.apiKey.findMany({ select: { objectId: true } })
|
|
14684
|
+
*
|
|
14685
|
+
*/
|
|
14686
|
+
findMany<T extends ApiKeyFindManyArgs>(args?: SelectSubset<T, ApiKeyFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ApiKeyPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
14687
|
+
|
|
14688
|
+
/**
|
|
14689
|
+
* Create a ApiKey.
|
|
14690
|
+
* @param {ApiKeyCreateArgs} args - Arguments to create a ApiKey.
|
|
14691
|
+
* @example
|
|
14692
|
+
* // Create one ApiKey
|
|
14693
|
+
* const ApiKey = await prisma.apiKey.create({
|
|
14694
|
+
* data: {
|
|
14695
|
+
* // ... data to create a ApiKey
|
|
14696
|
+
* }
|
|
14697
|
+
* })
|
|
14698
|
+
*
|
|
14699
|
+
*/
|
|
14700
|
+
create<T extends ApiKeyCreateArgs>(args: SelectSubset<T, ApiKeyCreateArgs<ExtArgs>>): Prisma__ApiKeyClient<$Result.GetResult<Prisma.$ApiKeyPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
14701
|
+
|
|
14702
|
+
/**
|
|
14703
|
+
* Create many ApiKeys.
|
|
14704
|
+
* @param {ApiKeyCreateManyArgs} args - Arguments to create many ApiKeys.
|
|
14705
|
+
* @example
|
|
14706
|
+
* // Create many ApiKeys
|
|
14707
|
+
* const apiKey = await prisma.apiKey.createMany({
|
|
14708
|
+
* data: [
|
|
14709
|
+
* // ... provide data here
|
|
14710
|
+
* ]
|
|
14711
|
+
* })
|
|
14712
|
+
*
|
|
14713
|
+
*/
|
|
14714
|
+
createMany<T extends ApiKeyCreateManyArgs>(args?: SelectSubset<T, ApiKeyCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
14715
|
+
|
|
14716
|
+
/**
|
|
14717
|
+
* Delete a ApiKey.
|
|
14718
|
+
* @param {ApiKeyDeleteArgs} args - Arguments to delete one ApiKey.
|
|
14719
|
+
* @example
|
|
14720
|
+
* // Delete one ApiKey
|
|
14721
|
+
* const ApiKey = await prisma.apiKey.delete({
|
|
14722
|
+
* where: {
|
|
14723
|
+
* // ... filter to delete one ApiKey
|
|
14724
|
+
* }
|
|
14725
|
+
* })
|
|
14726
|
+
*
|
|
14727
|
+
*/
|
|
14728
|
+
delete<T extends ApiKeyDeleteArgs>(args: SelectSubset<T, ApiKeyDeleteArgs<ExtArgs>>): Prisma__ApiKeyClient<$Result.GetResult<Prisma.$ApiKeyPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
14729
|
+
|
|
14730
|
+
/**
|
|
14731
|
+
* Update one ApiKey.
|
|
14732
|
+
* @param {ApiKeyUpdateArgs} args - Arguments to update one ApiKey.
|
|
14733
|
+
* @example
|
|
14734
|
+
* // Update one ApiKey
|
|
14735
|
+
* const apiKey = await prisma.apiKey.update({
|
|
14736
|
+
* where: {
|
|
14737
|
+
* // ... provide filter here
|
|
14738
|
+
* },
|
|
14739
|
+
* data: {
|
|
14740
|
+
* // ... provide data here
|
|
14741
|
+
* }
|
|
14742
|
+
* })
|
|
14743
|
+
*
|
|
14744
|
+
*/
|
|
14745
|
+
update<T extends ApiKeyUpdateArgs>(args: SelectSubset<T, ApiKeyUpdateArgs<ExtArgs>>): Prisma__ApiKeyClient<$Result.GetResult<Prisma.$ApiKeyPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
14746
|
+
|
|
14747
|
+
/**
|
|
14748
|
+
* Delete zero or more ApiKeys.
|
|
14749
|
+
* @param {ApiKeyDeleteManyArgs} args - Arguments to filter ApiKeys to delete.
|
|
14750
|
+
* @example
|
|
14751
|
+
* // Delete a few ApiKeys
|
|
14752
|
+
* const { count } = await prisma.apiKey.deleteMany({
|
|
14753
|
+
* where: {
|
|
14754
|
+
* // ... provide filter here
|
|
14755
|
+
* }
|
|
14756
|
+
* })
|
|
14757
|
+
*
|
|
14758
|
+
*/
|
|
14759
|
+
deleteMany<T extends ApiKeyDeleteManyArgs>(args?: SelectSubset<T, ApiKeyDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
14760
|
+
|
|
14761
|
+
/**
|
|
14762
|
+
* Update zero or more ApiKeys.
|
|
14763
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
14764
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
14765
|
+
* @param {ApiKeyUpdateManyArgs} args - Arguments to update one or more rows.
|
|
14766
|
+
* @example
|
|
14767
|
+
* // Update many ApiKeys
|
|
14768
|
+
* const apiKey = await prisma.apiKey.updateMany({
|
|
14769
|
+
* where: {
|
|
14770
|
+
* // ... provide filter here
|
|
14771
|
+
* },
|
|
14772
|
+
* data: {
|
|
14773
|
+
* // ... provide data here
|
|
14774
|
+
* }
|
|
14775
|
+
* })
|
|
14776
|
+
*
|
|
14777
|
+
*/
|
|
14778
|
+
updateMany<T extends ApiKeyUpdateManyArgs>(args: SelectSubset<T, ApiKeyUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
14779
|
+
|
|
14780
|
+
/**
|
|
14781
|
+
* Create or update one ApiKey.
|
|
14782
|
+
* @param {ApiKeyUpsertArgs} args - Arguments to update or create a ApiKey.
|
|
14783
|
+
* @example
|
|
14784
|
+
* // Update or create a ApiKey
|
|
14785
|
+
* const apiKey = await prisma.apiKey.upsert({
|
|
14786
|
+
* create: {
|
|
14787
|
+
* // ... data to create a ApiKey
|
|
14788
|
+
* },
|
|
14789
|
+
* update: {
|
|
14790
|
+
* // ... in case it already exists, update
|
|
14791
|
+
* },
|
|
14792
|
+
* where: {
|
|
14793
|
+
* // ... the filter for the ApiKey we want to update
|
|
14794
|
+
* }
|
|
14795
|
+
* })
|
|
14796
|
+
*/
|
|
14797
|
+
upsert<T extends ApiKeyUpsertArgs>(args: SelectSubset<T, ApiKeyUpsertArgs<ExtArgs>>): Prisma__ApiKeyClient<$Result.GetResult<Prisma.$ApiKeyPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
14798
|
+
|
|
14799
|
+
/**
|
|
14800
|
+
* Find zero or more ApiKeys that matches the filter.
|
|
14801
|
+
* @param {ApiKeyFindRawArgs} args - Select which filters you would like to apply.
|
|
14802
|
+
* @example
|
|
14803
|
+
* const apiKey = await prisma.apiKey.findRaw({
|
|
14804
|
+
* filter: { age: { $gt: 25 } }
|
|
14805
|
+
* })
|
|
14806
|
+
*/
|
|
14807
|
+
findRaw(args?: ApiKeyFindRawArgs): Prisma.PrismaPromise<JsonObject>
|
|
14808
|
+
|
|
14809
|
+
/**
|
|
14810
|
+
* Perform aggregation operations on a ApiKey.
|
|
14811
|
+
* @param {ApiKeyAggregateRawArgs} args - Select which aggregations you would like to apply.
|
|
14812
|
+
* @example
|
|
14813
|
+
* const apiKey = await prisma.apiKey.aggregateRaw({
|
|
14814
|
+
* pipeline: [
|
|
14815
|
+
* { $match: { status: "registered" } },
|
|
14816
|
+
* { $group: { _id: "$country", total: { $sum: 1 } } }
|
|
14817
|
+
* ]
|
|
14818
|
+
* })
|
|
14819
|
+
*/
|
|
14820
|
+
aggregateRaw(args?: ApiKeyAggregateRawArgs): Prisma.PrismaPromise<JsonObject>
|
|
14821
|
+
|
|
14822
|
+
|
|
14823
|
+
/**
|
|
14824
|
+
* Count the number of ApiKeys.
|
|
14825
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
14826
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
14827
|
+
* @param {ApiKeyCountArgs} args - Arguments to filter ApiKeys to count.
|
|
14828
|
+
* @example
|
|
14829
|
+
* // Count the number of ApiKeys
|
|
14830
|
+
* const count = await prisma.apiKey.count({
|
|
14831
|
+
* where: {
|
|
14832
|
+
* // ... the filter for the ApiKeys we want to count
|
|
14833
|
+
* }
|
|
14834
|
+
* })
|
|
14835
|
+
**/
|
|
14836
|
+
count<T extends ApiKeyCountArgs>(
|
|
14837
|
+
args?: Subset<T, ApiKeyCountArgs>,
|
|
14838
|
+
): Prisma.PrismaPromise<
|
|
14839
|
+
T extends $Utils.Record<'select', any>
|
|
14840
|
+
? T['select'] extends true
|
|
14841
|
+
? number
|
|
14842
|
+
: GetScalarType<T['select'], ApiKeyCountAggregateOutputType>
|
|
14843
|
+
: number
|
|
14844
|
+
>
|
|
14845
|
+
|
|
14846
|
+
/**
|
|
14847
|
+
* Allows you to perform aggregations operations on a ApiKey.
|
|
14848
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
14849
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
14850
|
+
* @param {ApiKeyAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
14851
|
+
* @example
|
|
14852
|
+
* // Ordered by age ascending
|
|
14853
|
+
* // Where email contains prisma.io
|
|
14854
|
+
* // Limited to the 10 users
|
|
14855
|
+
* const aggregations = await prisma.user.aggregate({
|
|
14856
|
+
* _avg: {
|
|
14857
|
+
* age: true,
|
|
14858
|
+
* },
|
|
14859
|
+
* where: {
|
|
14860
|
+
* email: {
|
|
14861
|
+
* contains: "prisma.io",
|
|
14862
|
+
* },
|
|
14863
|
+
* },
|
|
14864
|
+
* orderBy: {
|
|
14865
|
+
* age: "asc",
|
|
14866
|
+
* },
|
|
14867
|
+
* take: 10,
|
|
14868
|
+
* })
|
|
14869
|
+
**/
|
|
14870
|
+
aggregate<T extends ApiKeyAggregateArgs>(args: Subset<T, ApiKeyAggregateArgs>): Prisma.PrismaPromise<GetApiKeyAggregateType<T>>
|
|
14871
|
+
|
|
14872
|
+
/**
|
|
14873
|
+
* Group by ApiKey.
|
|
14874
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
14875
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
14876
|
+
* @param {ApiKeyGroupByArgs} args - Group by arguments.
|
|
14877
|
+
* @example
|
|
14878
|
+
* // Group by city, order by createdAt, get count
|
|
14879
|
+
* const result = await prisma.user.groupBy({
|
|
14880
|
+
* by: ['city', 'createdAt'],
|
|
14881
|
+
* orderBy: {
|
|
14882
|
+
* createdAt: true
|
|
14883
|
+
* },
|
|
14884
|
+
* _count: {
|
|
14885
|
+
* _all: true
|
|
14886
|
+
* },
|
|
14887
|
+
* })
|
|
14888
|
+
*
|
|
14889
|
+
**/
|
|
14890
|
+
groupBy<
|
|
14891
|
+
T extends ApiKeyGroupByArgs,
|
|
14892
|
+
HasSelectOrTake extends Or<
|
|
14893
|
+
Extends<'skip', Keys<T>>,
|
|
14894
|
+
Extends<'take', Keys<T>>
|
|
14895
|
+
>,
|
|
14896
|
+
OrderByArg extends True extends HasSelectOrTake
|
|
14897
|
+
? { orderBy: ApiKeyGroupByArgs['orderBy'] }
|
|
14898
|
+
: { orderBy?: ApiKeyGroupByArgs['orderBy'] },
|
|
14899
|
+
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
14900
|
+
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
14901
|
+
ByValid extends Has<ByFields, OrderFields>,
|
|
14902
|
+
HavingFields extends GetHavingFields<T['having']>,
|
|
14903
|
+
HavingValid extends Has<ByFields, HavingFields>,
|
|
14904
|
+
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
14905
|
+
InputErrors extends ByEmpty extends True
|
|
14906
|
+
? `Error: "by" must not be empty.`
|
|
14907
|
+
: HavingValid extends False
|
|
14908
|
+
? {
|
|
14909
|
+
[P in HavingFields]: P extends ByFields
|
|
14910
|
+
? never
|
|
14911
|
+
: P extends string
|
|
14912
|
+
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
14913
|
+
: [
|
|
14914
|
+
Error,
|
|
14915
|
+
'Field ',
|
|
14916
|
+
P,
|
|
14917
|
+
` in "having" needs to be provided in "by"`,
|
|
14918
|
+
]
|
|
14919
|
+
}[HavingFields]
|
|
14920
|
+
: 'take' extends Keys<T>
|
|
14921
|
+
? 'orderBy' extends Keys<T>
|
|
14922
|
+
? ByValid extends True
|
|
14923
|
+
? {}
|
|
14924
|
+
: {
|
|
14925
|
+
[P in OrderFields]: P extends ByFields
|
|
14926
|
+
? never
|
|
14927
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
14928
|
+
}[OrderFields]
|
|
14929
|
+
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
14930
|
+
: 'skip' extends Keys<T>
|
|
14931
|
+
? 'orderBy' extends Keys<T>
|
|
14932
|
+
? ByValid extends True
|
|
14933
|
+
? {}
|
|
14934
|
+
: {
|
|
14935
|
+
[P in OrderFields]: P extends ByFields
|
|
14936
|
+
? never
|
|
14937
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
14938
|
+
}[OrderFields]
|
|
14939
|
+
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
14940
|
+
: ByValid extends True
|
|
14941
|
+
? {}
|
|
14942
|
+
: {
|
|
14943
|
+
[P in OrderFields]: P extends ByFields
|
|
14944
|
+
? never
|
|
14945
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
14946
|
+
}[OrderFields]
|
|
14947
|
+
>(args: SubsetIntersection<T, ApiKeyGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetApiKeyGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
14948
|
+
/**
|
|
14949
|
+
* Fields of the ApiKey model
|
|
14950
|
+
*/
|
|
14951
|
+
readonly fields: ApiKeyFieldRefs;
|
|
14952
|
+
}
|
|
14953
|
+
|
|
14954
|
+
/**
|
|
14955
|
+
* The delegate class that acts as a "Promise-like" for ApiKey.
|
|
14956
|
+
* Why is this prefixed with `Prisma__`?
|
|
14957
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
14958
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
14959
|
+
*/
|
|
14960
|
+
export interface Prisma__ApiKeyClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
14961
|
+
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
14962
|
+
/**
|
|
14963
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
14964
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
14965
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
14966
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
14967
|
+
*/
|
|
14968
|
+
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
14969
|
+
/**
|
|
14970
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
14971
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
14972
|
+
* @returns A Promise for the completion of the callback.
|
|
14973
|
+
*/
|
|
14974
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
14975
|
+
/**
|
|
14976
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
14977
|
+
* resolved value cannot be modified from the callback.
|
|
14978
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
14979
|
+
* @returns A Promise for the completion of the callback.
|
|
14980
|
+
*/
|
|
14981
|
+
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
14982
|
+
}
|
|
14983
|
+
|
|
14984
|
+
|
|
14985
|
+
|
|
14986
|
+
|
|
14987
|
+
/**
|
|
14988
|
+
* Fields of the ApiKey model
|
|
14989
|
+
*/
|
|
14990
|
+
interface ApiKeyFieldRefs {
|
|
14991
|
+
readonly objectId: FieldRef<"ApiKey", 'String'>
|
|
14992
|
+
readonly name: FieldRef<"ApiKey", 'String'>
|
|
14993
|
+
readonly hashedKey: FieldRef<"ApiKey", 'String'>
|
|
14994
|
+
readonly keyId: FieldRef<"ApiKey", 'String'>
|
|
14995
|
+
readonly scopes: FieldRef<"ApiKey", 'String[]'>
|
|
14996
|
+
readonly metadata: FieldRef<"ApiKey", 'Json'>
|
|
14997
|
+
readonly isActive: FieldRef<"ApiKey", 'Boolean'>
|
|
14998
|
+
readonly expiresAt: FieldRef<"ApiKey", 'DateTime'>
|
|
14999
|
+
readonly lastUsedAt: FieldRef<"ApiKey", 'DateTime'>
|
|
15000
|
+
readonly usageCount: FieldRef<"ApiKey", 'Int'>
|
|
15001
|
+
readonly createdAt: FieldRef<"ApiKey", 'DateTime'>
|
|
15002
|
+
readonly updatedAt: FieldRef<"ApiKey", 'DateTime'>
|
|
15003
|
+
readonly applicationId: FieldRef<"ApiKey", 'String'>
|
|
15004
|
+
readonly userId: FieldRef<"ApiKey", 'String'>
|
|
15005
|
+
}
|
|
15006
|
+
|
|
15007
|
+
|
|
15008
|
+
// Custom InputTypes
|
|
15009
|
+
/**
|
|
15010
|
+
* ApiKey findUnique
|
|
15011
|
+
*/
|
|
15012
|
+
export type ApiKeyFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
15013
|
+
/**
|
|
15014
|
+
* Select specific fields to fetch from the ApiKey
|
|
15015
|
+
*/
|
|
15016
|
+
select?: ApiKeySelect<ExtArgs> | null
|
|
15017
|
+
/**
|
|
15018
|
+
* Omit specific fields from the ApiKey
|
|
15019
|
+
*/
|
|
15020
|
+
omit?: ApiKeyOmit<ExtArgs> | null
|
|
15021
|
+
/**
|
|
15022
|
+
* Filter, which ApiKey to fetch.
|
|
15023
|
+
*/
|
|
15024
|
+
where: ApiKeyWhereUniqueInput
|
|
15025
|
+
}
|
|
15026
|
+
|
|
15027
|
+
/**
|
|
15028
|
+
* ApiKey findUniqueOrThrow
|
|
15029
|
+
*/
|
|
15030
|
+
export type ApiKeyFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
15031
|
+
/**
|
|
15032
|
+
* Select specific fields to fetch from the ApiKey
|
|
15033
|
+
*/
|
|
15034
|
+
select?: ApiKeySelect<ExtArgs> | null
|
|
15035
|
+
/**
|
|
15036
|
+
* Omit specific fields from the ApiKey
|
|
15037
|
+
*/
|
|
15038
|
+
omit?: ApiKeyOmit<ExtArgs> | null
|
|
15039
|
+
/**
|
|
15040
|
+
* Filter, which ApiKey to fetch.
|
|
15041
|
+
*/
|
|
15042
|
+
where: ApiKeyWhereUniqueInput
|
|
15043
|
+
}
|
|
15044
|
+
|
|
15045
|
+
/**
|
|
15046
|
+
* ApiKey findFirst
|
|
15047
|
+
*/
|
|
15048
|
+
export type ApiKeyFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
15049
|
+
/**
|
|
15050
|
+
* Select specific fields to fetch from the ApiKey
|
|
15051
|
+
*/
|
|
15052
|
+
select?: ApiKeySelect<ExtArgs> | null
|
|
15053
|
+
/**
|
|
15054
|
+
* Omit specific fields from the ApiKey
|
|
15055
|
+
*/
|
|
15056
|
+
omit?: ApiKeyOmit<ExtArgs> | null
|
|
15057
|
+
/**
|
|
15058
|
+
* Filter, which ApiKey to fetch.
|
|
15059
|
+
*/
|
|
15060
|
+
where?: ApiKeyWhereInput
|
|
15061
|
+
/**
|
|
15062
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
15063
|
+
*
|
|
15064
|
+
* Determine the order of ApiKeys to fetch.
|
|
15065
|
+
*/
|
|
15066
|
+
orderBy?: ApiKeyOrderByWithRelationInput | ApiKeyOrderByWithRelationInput[]
|
|
15067
|
+
/**
|
|
15068
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
15069
|
+
*
|
|
15070
|
+
* Sets the position for searching for ApiKeys.
|
|
15071
|
+
*/
|
|
15072
|
+
cursor?: ApiKeyWhereUniqueInput
|
|
15073
|
+
/**
|
|
15074
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
15075
|
+
*
|
|
15076
|
+
* Take `±n` ApiKeys from the position of the cursor.
|
|
15077
|
+
*/
|
|
15078
|
+
take?: number
|
|
15079
|
+
/**
|
|
15080
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
15081
|
+
*
|
|
15082
|
+
* Skip the first `n` ApiKeys.
|
|
15083
|
+
*/
|
|
15084
|
+
skip?: number
|
|
15085
|
+
/**
|
|
15086
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
15087
|
+
*
|
|
15088
|
+
* Filter by unique combinations of ApiKeys.
|
|
15089
|
+
*/
|
|
15090
|
+
distinct?: ApiKeyScalarFieldEnum | ApiKeyScalarFieldEnum[]
|
|
15091
|
+
}
|
|
15092
|
+
|
|
15093
|
+
/**
|
|
15094
|
+
* ApiKey findFirstOrThrow
|
|
15095
|
+
*/
|
|
15096
|
+
export type ApiKeyFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
15097
|
+
/**
|
|
15098
|
+
* Select specific fields to fetch from the ApiKey
|
|
15099
|
+
*/
|
|
15100
|
+
select?: ApiKeySelect<ExtArgs> | null
|
|
15101
|
+
/**
|
|
15102
|
+
* Omit specific fields from the ApiKey
|
|
15103
|
+
*/
|
|
15104
|
+
omit?: ApiKeyOmit<ExtArgs> | null
|
|
15105
|
+
/**
|
|
15106
|
+
* Filter, which ApiKey to fetch.
|
|
15107
|
+
*/
|
|
15108
|
+
where?: ApiKeyWhereInput
|
|
15109
|
+
/**
|
|
15110
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
15111
|
+
*
|
|
15112
|
+
* Determine the order of ApiKeys to fetch.
|
|
15113
|
+
*/
|
|
15114
|
+
orderBy?: ApiKeyOrderByWithRelationInput | ApiKeyOrderByWithRelationInput[]
|
|
15115
|
+
/**
|
|
15116
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
15117
|
+
*
|
|
15118
|
+
* Sets the position for searching for ApiKeys.
|
|
15119
|
+
*/
|
|
15120
|
+
cursor?: ApiKeyWhereUniqueInput
|
|
15121
|
+
/**
|
|
15122
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
15123
|
+
*
|
|
15124
|
+
* Take `±n` ApiKeys from the position of the cursor.
|
|
15125
|
+
*/
|
|
15126
|
+
take?: number
|
|
15127
|
+
/**
|
|
15128
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
15129
|
+
*
|
|
15130
|
+
* Skip the first `n` ApiKeys.
|
|
15131
|
+
*/
|
|
15132
|
+
skip?: number
|
|
15133
|
+
/**
|
|
15134
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
15135
|
+
*
|
|
15136
|
+
* Filter by unique combinations of ApiKeys.
|
|
15137
|
+
*/
|
|
15138
|
+
distinct?: ApiKeyScalarFieldEnum | ApiKeyScalarFieldEnum[]
|
|
15139
|
+
}
|
|
15140
|
+
|
|
15141
|
+
/**
|
|
15142
|
+
* ApiKey findMany
|
|
15143
|
+
*/
|
|
15144
|
+
export type ApiKeyFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
15145
|
+
/**
|
|
15146
|
+
* Select specific fields to fetch from the ApiKey
|
|
15147
|
+
*/
|
|
15148
|
+
select?: ApiKeySelect<ExtArgs> | null
|
|
15149
|
+
/**
|
|
15150
|
+
* Omit specific fields from the ApiKey
|
|
15151
|
+
*/
|
|
15152
|
+
omit?: ApiKeyOmit<ExtArgs> | null
|
|
15153
|
+
/**
|
|
15154
|
+
* Filter, which ApiKeys to fetch.
|
|
15155
|
+
*/
|
|
15156
|
+
where?: ApiKeyWhereInput
|
|
15157
|
+
/**
|
|
15158
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
15159
|
+
*
|
|
15160
|
+
* Determine the order of ApiKeys to fetch.
|
|
15161
|
+
*/
|
|
15162
|
+
orderBy?: ApiKeyOrderByWithRelationInput | ApiKeyOrderByWithRelationInput[]
|
|
15163
|
+
/**
|
|
15164
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
15165
|
+
*
|
|
15166
|
+
* Sets the position for listing ApiKeys.
|
|
15167
|
+
*/
|
|
15168
|
+
cursor?: ApiKeyWhereUniqueInput
|
|
15169
|
+
/**
|
|
15170
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
15171
|
+
*
|
|
15172
|
+
* Take `±n` ApiKeys from the position of the cursor.
|
|
15173
|
+
*/
|
|
15174
|
+
take?: number
|
|
15175
|
+
/**
|
|
15176
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
15177
|
+
*
|
|
15178
|
+
* Skip the first `n` ApiKeys.
|
|
15179
|
+
*/
|
|
15180
|
+
skip?: number
|
|
15181
|
+
distinct?: ApiKeyScalarFieldEnum | ApiKeyScalarFieldEnum[]
|
|
15182
|
+
}
|
|
15183
|
+
|
|
15184
|
+
/**
|
|
15185
|
+
* ApiKey create
|
|
15186
|
+
*/
|
|
15187
|
+
export type ApiKeyCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
15188
|
+
/**
|
|
15189
|
+
* Select specific fields to fetch from the ApiKey
|
|
15190
|
+
*/
|
|
15191
|
+
select?: ApiKeySelect<ExtArgs> | null
|
|
15192
|
+
/**
|
|
15193
|
+
* Omit specific fields from the ApiKey
|
|
15194
|
+
*/
|
|
15195
|
+
omit?: ApiKeyOmit<ExtArgs> | null
|
|
15196
|
+
/**
|
|
15197
|
+
* The data needed to create a ApiKey.
|
|
15198
|
+
*/
|
|
15199
|
+
data: XOR<ApiKeyCreateInput, ApiKeyUncheckedCreateInput>
|
|
15200
|
+
}
|
|
15201
|
+
|
|
15202
|
+
/**
|
|
15203
|
+
* ApiKey createMany
|
|
15204
|
+
*/
|
|
15205
|
+
export type ApiKeyCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
15206
|
+
/**
|
|
15207
|
+
* The data used to create many ApiKeys.
|
|
15208
|
+
*/
|
|
15209
|
+
data: ApiKeyCreateManyInput | ApiKeyCreateManyInput[]
|
|
15210
|
+
}
|
|
15211
|
+
|
|
15212
|
+
/**
|
|
15213
|
+
* ApiKey update
|
|
15214
|
+
*/
|
|
15215
|
+
export type ApiKeyUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
15216
|
+
/**
|
|
15217
|
+
* Select specific fields to fetch from the ApiKey
|
|
15218
|
+
*/
|
|
15219
|
+
select?: ApiKeySelect<ExtArgs> | null
|
|
15220
|
+
/**
|
|
15221
|
+
* Omit specific fields from the ApiKey
|
|
15222
|
+
*/
|
|
15223
|
+
omit?: ApiKeyOmit<ExtArgs> | null
|
|
15224
|
+
/**
|
|
15225
|
+
* The data needed to update a ApiKey.
|
|
15226
|
+
*/
|
|
15227
|
+
data: XOR<ApiKeyUpdateInput, ApiKeyUncheckedUpdateInput>
|
|
15228
|
+
/**
|
|
15229
|
+
* Choose, which ApiKey to update.
|
|
15230
|
+
*/
|
|
15231
|
+
where: ApiKeyWhereUniqueInput
|
|
15232
|
+
}
|
|
15233
|
+
|
|
15234
|
+
/**
|
|
15235
|
+
* ApiKey updateMany
|
|
15236
|
+
*/
|
|
15237
|
+
export type ApiKeyUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
15238
|
+
/**
|
|
15239
|
+
* The data used to update ApiKeys.
|
|
15240
|
+
*/
|
|
15241
|
+
data: XOR<ApiKeyUpdateManyMutationInput, ApiKeyUncheckedUpdateManyInput>
|
|
15242
|
+
/**
|
|
15243
|
+
* Filter which ApiKeys to update
|
|
15244
|
+
*/
|
|
15245
|
+
where?: ApiKeyWhereInput
|
|
15246
|
+
/**
|
|
15247
|
+
* Limit how many ApiKeys to update.
|
|
15248
|
+
*/
|
|
15249
|
+
limit?: number
|
|
15250
|
+
}
|
|
15251
|
+
|
|
15252
|
+
/**
|
|
15253
|
+
* ApiKey upsert
|
|
15254
|
+
*/
|
|
15255
|
+
export type ApiKeyUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
15256
|
+
/**
|
|
15257
|
+
* Select specific fields to fetch from the ApiKey
|
|
15258
|
+
*/
|
|
15259
|
+
select?: ApiKeySelect<ExtArgs> | null
|
|
15260
|
+
/**
|
|
15261
|
+
* Omit specific fields from the ApiKey
|
|
15262
|
+
*/
|
|
15263
|
+
omit?: ApiKeyOmit<ExtArgs> | null
|
|
15264
|
+
/**
|
|
15265
|
+
* The filter to search for the ApiKey to update in case it exists.
|
|
15266
|
+
*/
|
|
15267
|
+
where: ApiKeyWhereUniqueInput
|
|
15268
|
+
/**
|
|
15269
|
+
* In case the ApiKey found by the `where` argument doesn't exist, create a new ApiKey with this data.
|
|
15270
|
+
*/
|
|
15271
|
+
create: XOR<ApiKeyCreateInput, ApiKeyUncheckedCreateInput>
|
|
15272
|
+
/**
|
|
15273
|
+
* In case the ApiKey was found with the provided `where` argument, update it with this data.
|
|
15274
|
+
*/
|
|
15275
|
+
update: XOR<ApiKeyUpdateInput, ApiKeyUncheckedUpdateInput>
|
|
15276
|
+
}
|
|
15277
|
+
|
|
15278
|
+
/**
|
|
15279
|
+
* ApiKey delete
|
|
15280
|
+
*/
|
|
15281
|
+
export type ApiKeyDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
15282
|
+
/**
|
|
15283
|
+
* Select specific fields to fetch from the ApiKey
|
|
15284
|
+
*/
|
|
15285
|
+
select?: ApiKeySelect<ExtArgs> | null
|
|
15286
|
+
/**
|
|
15287
|
+
* Omit specific fields from the ApiKey
|
|
15288
|
+
*/
|
|
15289
|
+
omit?: ApiKeyOmit<ExtArgs> | null
|
|
15290
|
+
/**
|
|
15291
|
+
* Filter which ApiKey to delete.
|
|
15292
|
+
*/
|
|
15293
|
+
where: ApiKeyWhereUniqueInput
|
|
15294
|
+
}
|
|
15295
|
+
|
|
15296
|
+
/**
|
|
15297
|
+
* ApiKey deleteMany
|
|
15298
|
+
*/
|
|
15299
|
+
export type ApiKeyDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
15300
|
+
/**
|
|
15301
|
+
* Filter which ApiKeys to delete
|
|
15302
|
+
*/
|
|
15303
|
+
where?: ApiKeyWhereInput
|
|
15304
|
+
/**
|
|
15305
|
+
* Limit how many ApiKeys to delete.
|
|
15306
|
+
*/
|
|
15307
|
+
limit?: number
|
|
15308
|
+
}
|
|
15309
|
+
|
|
15310
|
+
/**
|
|
15311
|
+
* ApiKey findRaw
|
|
15312
|
+
*/
|
|
15313
|
+
export type ApiKeyFindRawArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
15314
|
+
/**
|
|
15315
|
+
* The query predicate filter. If unspecified, then all documents in the collection will match the predicate. ${@link https://docs.mongodb.com/manual/reference/operator/query MongoDB Docs}.
|
|
15316
|
+
*/
|
|
15317
|
+
filter?: InputJsonValue
|
|
15318
|
+
/**
|
|
15319
|
+
* Additional options to pass to the `find` command ${@link https://docs.mongodb.com/manual/reference/command/find/#command-fields MongoDB Docs}.
|
|
15320
|
+
*/
|
|
15321
|
+
options?: InputJsonValue
|
|
15322
|
+
}
|
|
15323
|
+
|
|
15324
|
+
/**
|
|
15325
|
+
* ApiKey aggregateRaw
|
|
15326
|
+
*/
|
|
15327
|
+
export type ApiKeyAggregateRawArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
15328
|
+
/**
|
|
15329
|
+
* An array of aggregation stages to process and transform the document stream via the aggregation pipeline. ${@link https://docs.mongodb.com/manual/reference/operator/aggregation-pipeline MongoDB Docs}.
|
|
15330
|
+
*/
|
|
15331
|
+
pipeline?: InputJsonValue[]
|
|
15332
|
+
/**
|
|
15333
|
+
* Additional options to pass to the `aggregate` command ${@link https://docs.mongodb.com/manual/reference/command/aggregate/#command-fields MongoDB Docs}.
|
|
15334
|
+
*/
|
|
15335
|
+
options?: InputJsonValue
|
|
15336
|
+
}
|
|
15337
|
+
|
|
15338
|
+
/**
|
|
15339
|
+
* ApiKey without action
|
|
15340
|
+
*/
|
|
15341
|
+
export type ApiKeyDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
15342
|
+
/**
|
|
15343
|
+
* Select specific fields to fetch from the ApiKey
|
|
15344
|
+
*/
|
|
15345
|
+
select?: ApiKeySelect<ExtArgs> | null
|
|
15346
|
+
/**
|
|
15347
|
+
* Omit specific fields from the ApiKey
|
|
15348
|
+
*/
|
|
15349
|
+
omit?: ApiKeyOmit<ExtArgs> | null
|
|
15350
|
+
}
|
|
15351
|
+
|
|
15352
|
+
|
|
15353
|
+
/**
|
|
15354
|
+
* Model AuditLog
|
|
15355
|
+
*/
|
|
15356
|
+
|
|
15357
|
+
export type AggregateAuditLog = {
|
|
15358
|
+
_count: AuditLogCountAggregateOutputType | null
|
|
15359
|
+
_min: AuditLogMinAggregateOutputType | null
|
|
15360
|
+
_max: AuditLogMaxAggregateOutputType | null
|
|
15361
|
+
}
|
|
15362
|
+
|
|
15363
|
+
export type AuditLogMinAggregateOutputType = {
|
|
15364
|
+
objectId: string | null
|
|
15365
|
+
action: string | null
|
|
15366
|
+
resourceId: string | null
|
|
15367
|
+
ipAddress: string | null
|
|
15368
|
+
userAgent: string | null
|
|
15369
|
+
timestamp: Date | null
|
|
15370
|
+
userId: string | null
|
|
15371
|
+
}
|
|
15372
|
+
|
|
15373
|
+
export type AuditLogMaxAggregateOutputType = {
|
|
15374
|
+
objectId: string | null
|
|
15375
|
+
action: string | null
|
|
15376
|
+
resourceId: string | null
|
|
15377
|
+
ipAddress: string | null
|
|
15378
|
+
userAgent: string | null
|
|
15379
|
+
timestamp: Date | null
|
|
15380
|
+
userId: string | null
|
|
15381
|
+
}
|
|
15382
|
+
|
|
15383
|
+
export type AuditLogCountAggregateOutputType = {
|
|
15384
|
+
objectId: number
|
|
15385
|
+
action: number
|
|
15386
|
+
resourceId: number
|
|
15387
|
+
metadata: number
|
|
15388
|
+
ipAddress: number
|
|
15389
|
+
userAgent: number
|
|
15390
|
+
timestamp: number
|
|
15391
|
+
userId: number
|
|
15392
|
+
_all: number
|
|
15393
|
+
}
|
|
15394
|
+
|
|
15395
|
+
|
|
15396
|
+
export type AuditLogMinAggregateInputType = {
|
|
15397
|
+
objectId?: true
|
|
15398
|
+
action?: true
|
|
15399
|
+
resourceId?: true
|
|
15400
|
+
ipAddress?: true
|
|
15401
|
+
userAgent?: true
|
|
15402
|
+
timestamp?: true
|
|
15403
|
+
userId?: true
|
|
15404
|
+
}
|
|
15405
|
+
|
|
15406
|
+
export type AuditLogMaxAggregateInputType = {
|
|
15407
|
+
objectId?: true
|
|
15408
|
+
action?: true
|
|
15409
|
+
resourceId?: true
|
|
15410
|
+
ipAddress?: true
|
|
15411
|
+
userAgent?: true
|
|
15412
|
+
timestamp?: true
|
|
15413
|
+
userId?: true
|
|
15414
|
+
}
|
|
15415
|
+
|
|
15416
|
+
export type AuditLogCountAggregateInputType = {
|
|
15417
|
+
objectId?: true
|
|
15418
|
+
action?: true
|
|
15419
|
+
resourceId?: true
|
|
15420
|
+
metadata?: true
|
|
15421
|
+
ipAddress?: true
|
|
15422
|
+
userAgent?: true
|
|
15423
|
+
timestamp?: true
|
|
15424
|
+
userId?: true
|
|
15425
|
+
_all?: true
|
|
15426
|
+
}
|
|
15427
|
+
|
|
15428
|
+
export type AuditLogAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
15429
|
+
/**
|
|
15430
|
+
* Filter which AuditLog to aggregate.
|
|
15431
|
+
*/
|
|
15432
|
+
where?: AuditLogWhereInput
|
|
15433
|
+
/**
|
|
15434
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
15435
|
+
*
|
|
15436
|
+
* Determine the order of AuditLogs to fetch.
|
|
15437
|
+
*/
|
|
15438
|
+
orderBy?: AuditLogOrderByWithRelationInput | AuditLogOrderByWithRelationInput[]
|
|
15439
|
+
/**
|
|
15440
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
15441
|
+
*
|
|
15442
|
+
* Sets the start position
|
|
15443
|
+
*/
|
|
15444
|
+
cursor?: AuditLogWhereUniqueInput
|
|
15445
|
+
/**
|
|
15446
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
15447
|
+
*
|
|
15448
|
+
* Take `±n` AuditLogs from the position of the cursor.
|
|
15449
|
+
*/
|
|
15450
|
+
take?: number
|
|
15451
|
+
/**
|
|
15452
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
15453
|
+
*
|
|
15454
|
+
* Skip the first `n` AuditLogs.
|
|
15455
|
+
*/
|
|
15456
|
+
skip?: number
|
|
15457
|
+
/**
|
|
15458
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
15459
|
+
*
|
|
15460
|
+
* Count returned AuditLogs
|
|
15461
|
+
**/
|
|
15462
|
+
_count?: true | AuditLogCountAggregateInputType
|
|
15463
|
+
/**
|
|
15464
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
15465
|
+
*
|
|
15466
|
+
* Select which fields to find the minimum value
|
|
15467
|
+
**/
|
|
15468
|
+
_min?: AuditLogMinAggregateInputType
|
|
15469
|
+
/**
|
|
15470
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
15471
|
+
*
|
|
15472
|
+
* Select which fields to find the maximum value
|
|
15473
|
+
**/
|
|
15474
|
+
_max?: AuditLogMaxAggregateInputType
|
|
15475
|
+
}
|
|
15476
|
+
|
|
15477
|
+
export type GetAuditLogAggregateType<T extends AuditLogAggregateArgs> = {
|
|
15478
|
+
[P in keyof T & keyof AggregateAuditLog]: P extends '_count' | 'count'
|
|
15479
|
+
? T[P] extends true
|
|
15480
|
+
? number
|
|
15481
|
+
: GetScalarType<T[P], AggregateAuditLog[P]>
|
|
15482
|
+
: GetScalarType<T[P], AggregateAuditLog[P]>
|
|
15483
|
+
}
|
|
15484
|
+
|
|
15485
|
+
|
|
15486
|
+
|
|
15487
|
+
|
|
15488
|
+
export type AuditLogGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
15489
|
+
where?: AuditLogWhereInput
|
|
15490
|
+
orderBy?: AuditLogOrderByWithAggregationInput | AuditLogOrderByWithAggregationInput[]
|
|
15491
|
+
by: AuditLogScalarFieldEnum[] | AuditLogScalarFieldEnum
|
|
15492
|
+
having?: AuditLogScalarWhereWithAggregatesInput
|
|
15493
|
+
take?: number
|
|
15494
|
+
skip?: number
|
|
15495
|
+
_count?: AuditLogCountAggregateInputType | true
|
|
15496
|
+
_min?: AuditLogMinAggregateInputType
|
|
15497
|
+
_max?: AuditLogMaxAggregateInputType
|
|
15498
|
+
}
|
|
15499
|
+
|
|
15500
|
+
export type AuditLogGroupByOutputType = {
|
|
15501
|
+
objectId: string
|
|
15502
|
+
action: string
|
|
15503
|
+
resourceId: string | null
|
|
15504
|
+
metadata: JsonValue
|
|
15505
|
+
ipAddress: string | null
|
|
15506
|
+
userAgent: string | null
|
|
15507
|
+
timestamp: Date
|
|
15508
|
+
userId: string
|
|
15509
|
+
_count: AuditLogCountAggregateOutputType | null
|
|
15510
|
+
_min: AuditLogMinAggregateOutputType | null
|
|
15511
|
+
_max: AuditLogMaxAggregateOutputType | null
|
|
15512
|
+
}
|
|
15513
|
+
|
|
15514
|
+
type GetAuditLogGroupByPayload<T extends AuditLogGroupByArgs> = Prisma.PrismaPromise<
|
|
15515
|
+
Array<
|
|
15516
|
+
PickEnumerable<AuditLogGroupByOutputType, T['by']> &
|
|
15517
|
+
{
|
|
15518
|
+
[P in ((keyof T) & (keyof AuditLogGroupByOutputType))]: P extends '_count'
|
|
15519
|
+
? T[P] extends boolean
|
|
15520
|
+
? number
|
|
15521
|
+
: GetScalarType<T[P], AuditLogGroupByOutputType[P]>
|
|
15522
|
+
: GetScalarType<T[P], AuditLogGroupByOutputType[P]>
|
|
15523
|
+
}
|
|
15524
|
+
>
|
|
15525
|
+
>
|
|
15526
|
+
|
|
15527
|
+
|
|
15528
|
+
export type AuditLogSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
15529
|
+
objectId?: boolean
|
|
15530
|
+
action?: boolean
|
|
15531
|
+
resourceId?: boolean
|
|
15532
|
+
metadata?: boolean
|
|
15533
|
+
ipAddress?: boolean
|
|
15534
|
+
userAgent?: boolean
|
|
15535
|
+
timestamp?: boolean
|
|
15536
|
+
userId?: boolean
|
|
15537
|
+
}, ExtArgs["result"]["auditLog"]>
|
|
15538
|
+
|
|
15539
|
+
|
|
15540
|
+
|
|
15541
|
+
export type AuditLogSelectScalar = {
|
|
15542
|
+
objectId?: boolean
|
|
15543
|
+
action?: boolean
|
|
15544
|
+
resourceId?: boolean
|
|
15545
|
+
metadata?: boolean
|
|
15546
|
+
ipAddress?: boolean
|
|
15547
|
+
userAgent?: boolean
|
|
15548
|
+
timestamp?: boolean
|
|
15549
|
+
userId?: boolean
|
|
15550
|
+
}
|
|
15551
|
+
|
|
15552
|
+
export type AuditLogOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"objectId" | "action" | "resourceId" | "metadata" | "ipAddress" | "userAgent" | "timestamp" | "userId", ExtArgs["result"]["auditLog"]>
|
|
15553
|
+
|
|
15554
|
+
export type $AuditLogPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
15555
|
+
name: "AuditLog"
|
|
15556
|
+
objects: {}
|
|
15557
|
+
scalars: $Extensions.GetPayloadResult<{
|
|
15558
|
+
objectId: string
|
|
15559
|
+
action: string
|
|
15560
|
+
resourceId: string | null
|
|
15561
|
+
metadata: Prisma.JsonValue
|
|
15562
|
+
ipAddress: string | null
|
|
15563
|
+
userAgent: string | null
|
|
15564
|
+
timestamp: Date
|
|
15565
|
+
userId: string
|
|
15566
|
+
}, ExtArgs["result"]["auditLog"]>
|
|
15567
|
+
composites: {}
|
|
15568
|
+
}
|
|
15569
|
+
|
|
15570
|
+
type AuditLogGetPayload<S extends boolean | null | undefined | AuditLogDefaultArgs> = $Result.GetResult<Prisma.$AuditLogPayload, S>
|
|
15571
|
+
|
|
15572
|
+
type AuditLogCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
15573
|
+
Omit<AuditLogFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
15574
|
+
select?: AuditLogCountAggregateInputType | true
|
|
15575
|
+
}
|
|
15576
|
+
|
|
15577
|
+
export interface AuditLogDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
15578
|
+
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['AuditLog'], meta: { name: 'AuditLog' } }
|
|
15579
|
+
/**
|
|
15580
|
+
* Find zero or one AuditLog that matches the filter.
|
|
15581
|
+
* @param {AuditLogFindUniqueArgs} args - Arguments to find a AuditLog
|
|
15582
|
+
* @example
|
|
15583
|
+
* // Get one AuditLog
|
|
15584
|
+
* const auditLog = await prisma.auditLog.findUnique({
|
|
15585
|
+
* where: {
|
|
15586
|
+
* // ... provide filter here
|
|
15587
|
+
* }
|
|
15588
|
+
* })
|
|
15589
|
+
*/
|
|
15590
|
+
findUnique<T extends AuditLogFindUniqueArgs>(args: SelectSubset<T, AuditLogFindUniqueArgs<ExtArgs>>): Prisma__AuditLogClient<$Result.GetResult<Prisma.$AuditLogPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
15591
|
+
|
|
15592
|
+
/**
|
|
15593
|
+
* Find one AuditLog that matches the filter or throw an error with `error.code='P2025'`
|
|
15594
|
+
* if no matches were found.
|
|
15595
|
+
* @param {AuditLogFindUniqueOrThrowArgs} args - Arguments to find a AuditLog
|
|
15596
|
+
* @example
|
|
15597
|
+
* // Get one AuditLog
|
|
15598
|
+
* const auditLog = await prisma.auditLog.findUniqueOrThrow({
|
|
15599
|
+
* where: {
|
|
15600
|
+
* // ... provide filter here
|
|
15601
|
+
* }
|
|
15602
|
+
* })
|
|
15603
|
+
*/
|
|
15604
|
+
findUniqueOrThrow<T extends AuditLogFindUniqueOrThrowArgs>(args: SelectSubset<T, AuditLogFindUniqueOrThrowArgs<ExtArgs>>): Prisma__AuditLogClient<$Result.GetResult<Prisma.$AuditLogPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
15605
|
+
|
|
15606
|
+
/**
|
|
15607
|
+
* Find the first AuditLog that matches the filter.
|
|
15608
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
15609
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
15610
|
+
* @param {AuditLogFindFirstArgs} args - Arguments to find a AuditLog
|
|
15611
|
+
* @example
|
|
15612
|
+
* // Get one AuditLog
|
|
15613
|
+
* const auditLog = await prisma.auditLog.findFirst({
|
|
15614
|
+
* where: {
|
|
15615
|
+
* // ... provide filter here
|
|
15616
|
+
* }
|
|
15617
|
+
* })
|
|
15618
|
+
*/
|
|
15619
|
+
findFirst<T extends AuditLogFindFirstArgs>(args?: SelectSubset<T, AuditLogFindFirstArgs<ExtArgs>>): Prisma__AuditLogClient<$Result.GetResult<Prisma.$AuditLogPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
15620
|
+
|
|
15621
|
+
/**
|
|
15622
|
+
* Find the first AuditLog that matches the filter or
|
|
15623
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
15624
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
15625
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
15626
|
+
* @param {AuditLogFindFirstOrThrowArgs} args - Arguments to find a AuditLog
|
|
15627
|
+
* @example
|
|
15628
|
+
* // Get one AuditLog
|
|
15629
|
+
* const auditLog = await prisma.auditLog.findFirstOrThrow({
|
|
15630
|
+
* where: {
|
|
15631
|
+
* // ... provide filter here
|
|
15632
|
+
* }
|
|
15633
|
+
* })
|
|
15634
|
+
*/
|
|
15635
|
+
findFirstOrThrow<T extends AuditLogFindFirstOrThrowArgs>(args?: SelectSubset<T, AuditLogFindFirstOrThrowArgs<ExtArgs>>): Prisma__AuditLogClient<$Result.GetResult<Prisma.$AuditLogPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
15636
|
+
|
|
15637
|
+
/**
|
|
15638
|
+
* Find zero or more AuditLogs that matches the filter.
|
|
15639
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
15640
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
15641
|
+
* @param {AuditLogFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
15642
|
+
* @example
|
|
15643
|
+
* // Get all AuditLogs
|
|
15644
|
+
* const auditLogs = await prisma.auditLog.findMany()
|
|
15645
|
+
*
|
|
15646
|
+
* // Get first 10 AuditLogs
|
|
15647
|
+
* const auditLogs = await prisma.auditLog.findMany({ take: 10 })
|
|
15648
|
+
*
|
|
15649
|
+
* // Only select the `objectId`
|
|
15650
|
+
* const auditLogWithObjectIdOnly = await prisma.auditLog.findMany({ select: { objectId: true } })
|
|
15651
|
+
*
|
|
15652
|
+
*/
|
|
15653
|
+
findMany<T extends AuditLogFindManyArgs>(args?: SelectSubset<T, AuditLogFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$AuditLogPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
15654
|
+
|
|
15655
|
+
/**
|
|
15656
|
+
* Create a AuditLog.
|
|
15657
|
+
* @param {AuditLogCreateArgs} args - Arguments to create a AuditLog.
|
|
15658
|
+
* @example
|
|
15659
|
+
* // Create one AuditLog
|
|
15660
|
+
* const AuditLog = await prisma.auditLog.create({
|
|
15661
|
+
* data: {
|
|
15662
|
+
* // ... data to create a AuditLog
|
|
15663
|
+
* }
|
|
15664
|
+
* })
|
|
15665
|
+
*
|
|
15666
|
+
*/
|
|
15667
|
+
create<T extends AuditLogCreateArgs>(args: SelectSubset<T, AuditLogCreateArgs<ExtArgs>>): Prisma__AuditLogClient<$Result.GetResult<Prisma.$AuditLogPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
15668
|
+
|
|
15669
|
+
/**
|
|
15670
|
+
* Create many AuditLogs.
|
|
15671
|
+
* @param {AuditLogCreateManyArgs} args - Arguments to create many AuditLogs.
|
|
15672
|
+
* @example
|
|
15673
|
+
* // Create many AuditLogs
|
|
15674
|
+
* const auditLog = await prisma.auditLog.createMany({
|
|
15675
|
+
* data: [
|
|
15676
|
+
* // ... provide data here
|
|
15677
|
+
* ]
|
|
15678
|
+
* })
|
|
15679
|
+
*
|
|
15680
|
+
*/
|
|
15681
|
+
createMany<T extends AuditLogCreateManyArgs>(args?: SelectSubset<T, AuditLogCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
15682
|
+
|
|
15683
|
+
/**
|
|
15684
|
+
* Delete a AuditLog.
|
|
15685
|
+
* @param {AuditLogDeleteArgs} args - Arguments to delete one AuditLog.
|
|
15686
|
+
* @example
|
|
15687
|
+
* // Delete one AuditLog
|
|
15688
|
+
* const AuditLog = await prisma.auditLog.delete({
|
|
15689
|
+
* where: {
|
|
15690
|
+
* // ... filter to delete one AuditLog
|
|
15691
|
+
* }
|
|
15692
|
+
* })
|
|
15693
|
+
*
|
|
15694
|
+
*/
|
|
15695
|
+
delete<T extends AuditLogDeleteArgs>(args: SelectSubset<T, AuditLogDeleteArgs<ExtArgs>>): Prisma__AuditLogClient<$Result.GetResult<Prisma.$AuditLogPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
15696
|
+
|
|
15697
|
+
/**
|
|
15698
|
+
* Update one AuditLog.
|
|
15699
|
+
* @param {AuditLogUpdateArgs} args - Arguments to update one AuditLog.
|
|
15700
|
+
* @example
|
|
15701
|
+
* // Update one AuditLog
|
|
15702
|
+
* const auditLog = await prisma.auditLog.update({
|
|
15703
|
+
* where: {
|
|
15704
|
+
* // ... provide filter here
|
|
15705
|
+
* },
|
|
15706
|
+
* data: {
|
|
15707
|
+
* // ... provide data here
|
|
15708
|
+
* }
|
|
15709
|
+
* })
|
|
15710
|
+
*
|
|
15711
|
+
*/
|
|
15712
|
+
update<T extends AuditLogUpdateArgs>(args: SelectSubset<T, AuditLogUpdateArgs<ExtArgs>>): Prisma__AuditLogClient<$Result.GetResult<Prisma.$AuditLogPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
15713
|
+
|
|
15714
|
+
/**
|
|
15715
|
+
* Delete zero or more AuditLogs.
|
|
15716
|
+
* @param {AuditLogDeleteManyArgs} args - Arguments to filter AuditLogs to delete.
|
|
15717
|
+
* @example
|
|
15718
|
+
* // Delete a few AuditLogs
|
|
15719
|
+
* const { count } = await prisma.auditLog.deleteMany({
|
|
15720
|
+
* where: {
|
|
15721
|
+
* // ... provide filter here
|
|
15722
|
+
* }
|
|
15723
|
+
* })
|
|
15724
|
+
*
|
|
15725
|
+
*/
|
|
15726
|
+
deleteMany<T extends AuditLogDeleteManyArgs>(args?: SelectSubset<T, AuditLogDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
15727
|
+
|
|
15728
|
+
/**
|
|
15729
|
+
* Update zero or more AuditLogs.
|
|
15730
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
15731
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
15732
|
+
* @param {AuditLogUpdateManyArgs} args - Arguments to update one or more rows.
|
|
15733
|
+
* @example
|
|
15734
|
+
* // Update many AuditLogs
|
|
15735
|
+
* const auditLog = await prisma.auditLog.updateMany({
|
|
15736
|
+
* where: {
|
|
15737
|
+
* // ... provide filter here
|
|
15738
|
+
* },
|
|
15739
|
+
* data: {
|
|
15740
|
+
* // ... provide data here
|
|
15741
|
+
* }
|
|
15742
|
+
* })
|
|
15743
|
+
*
|
|
15744
|
+
*/
|
|
15745
|
+
updateMany<T extends AuditLogUpdateManyArgs>(args: SelectSubset<T, AuditLogUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
15746
|
+
|
|
15747
|
+
/**
|
|
15748
|
+
* Create or update one AuditLog.
|
|
15749
|
+
* @param {AuditLogUpsertArgs} args - Arguments to update or create a AuditLog.
|
|
15750
|
+
* @example
|
|
15751
|
+
* // Update or create a AuditLog
|
|
15752
|
+
* const auditLog = await prisma.auditLog.upsert({
|
|
15753
|
+
* create: {
|
|
15754
|
+
* // ... data to create a AuditLog
|
|
15755
|
+
* },
|
|
15756
|
+
* update: {
|
|
15757
|
+
* // ... in case it already exists, update
|
|
15758
|
+
* },
|
|
15759
|
+
* where: {
|
|
15760
|
+
* // ... the filter for the AuditLog we want to update
|
|
15761
|
+
* }
|
|
15762
|
+
* })
|
|
15763
|
+
*/
|
|
15764
|
+
upsert<T extends AuditLogUpsertArgs>(args: SelectSubset<T, AuditLogUpsertArgs<ExtArgs>>): Prisma__AuditLogClient<$Result.GetResult<Prisma.$AuditLogPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
15765
|
+
|
|
15766
|
+
/**
|
|
15767
|
+
* Find zero or more AuditLogs that matches the filter.
|
|
15768
|
+
* @param {AuditLogFindRawArgs} args - Select which filters you would like to apply.
|
|
15769
|
+
* @example
|
|
15770
|
+
* const auditLog = await prisma.auditLog.findRaw({
|
|
15771
|
+
* filter: { age: { $gt: 25 } }
|
|
15772
|
+
* })
|
|
15773
|
+
*/
|
|
15774
|
+
findRaw(args?: AuditLogFindRawArgs): Prisma.PrismaPromise<JsonObject>
|
|
15775
|
+
|
|
15776
|
+
/**
|
|
15777
|
+
* Perform aggregation operations on a AuditLog.
|
|
15778
|
+
* @param {AuditLogAggregateRawArgs} args - Select which aggregations you would like to apply.
|
|
15779
|
+
* @example
|
|
15780
|
+
* const auditLog = await prisma.auditLog.aggregateRaw({
|
|
15781
|
+
* pipeline: [
|
|
15782
|
+
* { $match: { status: "registered" } },
|
|
15783
|
+
* { $group: { _id: "$country", total: { $sum: 1 } } }
|
|
15784
|
+
* ]
|
|
15785
|
+
* })
|
|
15786
|
+
*/
|
|
15787
|
+
aggregateRaw(args?: AuditLogAggregateRawArgs): Prisma.PrismaPromise<JsonObject>
|
|
15788
|
+
|
|
15789
|
+
|
|
15790
|
+
/**
|
|
15791
|
+
* Count the number of AuditLogs.
|
|
15792
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
15793
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
15794
|
+
* @param {AuditLogCountArgs} args - Arguments to filter AuditLogs to count.
|
|
15795
|
+
* @example
|
|
15796
|
+
* // Count the number of AuditLogs
|
|
15797
|
+
* const count = await prisma.auditLog.count({
|
|
15798
|
+
* where: {
|
|
15799
|
+
* // ... the filter for the AuditLogs we want to count
|
|
15800
|
+
* }
|
|
15801
|
+
* })
|
|
15802
|
+
**/
|
|
15803
|
+
count<T extends AuditLogCountArgs>(
|
|
15804
|
+
args?: Subset<T, AuditLogCountArgs>,
|
|
15805
|
+
): Prisma.PrismaPromise<
|
|
15806
|
+
T extends $Utils.Record<'select', any>
|
|
15807
|
+
? T['select'] extends true
|
|
15808
|
+
? number
|
|
15809
|
+
: GetScalarType<T['select'], AuditLogCountAggregateOutputType>
|
|
15810
|
+
: number
|
|
15811
|
+
>
|
|
15812
|
+
|
|
15813
|
+
/**
|
|
15814
|
+
* Allows you to perform aggregations operations on a AuditLog.
|
|
15815
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
15816
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
15817
|
+
* @param {AuditLogAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
15818
|
+
* @example
|
|
15819
|
+
* // Ordered by age ascending
|
|
15820
|
+
* // Where email contains prisma.io
|
|
15821
|
+
* // Limited to the 10 users
|
|
15822
|
+
* const aggregations = await prisma.user.aggregate({
|
|
15823
|
+
* _avg: {
|
|
15824
|
+
* age: true,
|
|
15825
|
+
* },
|
|
15826
|
+
* where: {
|
|
15827
|
+
* email: {
|
|
15828
|
+
* contains: "prisma.io",
|
|
15829
|
+
* },
|
|
15830
|
+
* },
|
|
15831
|
+
* orderBy: {
|
|
15832
|
+
* age: "asc",
|
|
15833
|
+
* },
|
|
15834
|
+
* take: 10,
|
|
15835
|
+
* })
|
|
15836
|
+
**/
|
|
15837
|
+
aggregate<T extends AuditLogAggregateArgs>(args: Subset<T, AuditLogAggregateArgs>): Prisma.PrismaPromise<GetAuditLogAggregateType<T>>
|
|
15838
|
+
|
|
15839
|
+
/**
|
|
15840
|
+
* Group by AuditLog.
|
|
15841
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
15842
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
15843
|
+
* @param {AuditLogGroupByArgs} args - Group by arguments.
|
|
15844
|
+
* @example
|
|
15845
|
+
* // Group by city, order by createdAt, get count
|
|
15846
|
+
* const result = await prisma.user.groupBy({
|
|
15847
|
+
* by: ['city', 'createdAt'],
|
|
15848
|
+
* orderBy: {
|
|
15849
|
+
* createdAt: true
|
|
15850
|
+
* },
|
|
15851
|
+
* _count: {
|
|
15852
|
+
* _all: true
|
|
15853
|
+
* },
|
|
15854
|
+
* })
|
|
15855
|
+
*
|
|
15856
|
+
**/
|
|
15857
|
+
groupBy<
|
|
15858
|
+
T extends AuditLogGroupByArgs,
|
|
15859
|
+
HasSelectOrTake extends Or<
|
|
15860
|
+
Extends<'skip', Keys<T>>,
|
|
15861
|
+
Extends<'take', Keys<T>>
|
|
15862
|
+
>,
|
|
15863
|
+
OrderByArg extends True extends HasSelectOrTake
|
|
15864
|
+
? { orderBy: AuditLogGroupByArgs['orderBy'] }
|
|
15865
|
+
: { orderBy?: AuditLogGroupByArgs['orderBy'] },
|
|
15866
|
+
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
15867
|
+
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
15868
|
+
ByValid extends Has<ByFields, OrderFields>,
|
|
15869
|
+
HavingFields extends GetHavingFields<T['having']>,
|
|
15870
|
+
HavingValid extends Has<ByFields, HavingFields>,
|
|
15871
|
+
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
15872
|
+
InputErrors extends ByEmpty extends True
|
|
15873
|
+
? `Error: "by" must not be empty.`
|
|
15874
|
+
: HavingValid extends False
|
|
15875
|
+
? {
|
|
15876
|
+
[P in HavingFields]: P extends ByFields
|
|
15877
|
+
? never
|
|
15878
|
+
: P extends string
|
|
15879
|
+
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
15880
|
+
: [
|
|
15881
|
+
Error,
|
|
15882
|
+
'Field ',
|
|
15883
|
+
P,
|
|
15884
|
+
` in "having" needs to be provided in "by"`,
|
|
15885
|
+
]
|
|
15886
|
+
}[HavingFields]
|
|
15887
|
+
: 'take' extends Keys<T>
|
|
15888
|
+
? 'orderBy' extends Keys<T>
|
|
15889
|
+
? ByValid extends True
|
|
15890
|
+
? {}
|
|
15891
|
+
: {
|
|
15892
|
+
[P in OrderFields]: P extends ByFields
|
|
15893
|
+
? never
|
|
15894
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
15895
|
+
}[OrderFields]
|
|
15896
|
+
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
15897
|
+
: 'skip' extends Keys<T>
|
|
15898
|
+
? 'orderBy' extends Keys<T>
|
|
15899
|
+
? ByValid extends True
|
|
15900
|
+
? {}
|
|
15901
|
+
: {
|
|
15902
|
+
[P in OrderFields]: P extends ByFields
|
|
15903
|
+
? never
|
|
15904
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
15905
|
+
}[OrderFields]
|
|
15906
|
+
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
15907
|
+
: ByValid extends True
|
|
15908
|
+
? {}
|
|
15909
|
+
: {
|
|
15910
|
+
[P in OrderFields]: P extends ByFields
|
|
15911
|
+
? never
|
|
15912
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
15913
|
+
}[OrderFields]
|
|
15914
|
+
>(args: SubsetIntersection<T, AuditLogGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAuditLogGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
15915
|
+
/**
|
|
15916
|
+
* Fields of the AuditLog model
|
|
15917
|
+
*/
|
|
15918
|
+
readonly fields: AuditLogFieldRefs;
|
|
15919
|
+
}
|
|
15920
|
+
|
|
15921
|
+
/**
|
|
15922
|
+
* The delegate class that acts as a "Promise-like" for AuditLog.
|
|
15923
|
+
* Why is this prefixed with `Prisma__`?
|
|
15924
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
15925
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
15926
|
+
*/
|
|
15927
|
+
export interface Prisma__AuditLogClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
15928
|
+
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
15929
|
+
/**
|
|
15930
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
15931
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
15932
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
15933
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
15934
|
+
*/
|
|
15935
|
+
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
15936
|
+
/**
|
|
15937
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
15938
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
15939
|
+
* @returns A Promise for the completion of the callback.
|
|
15940
|
+
*/
|
|
15941
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
15942
|
+
/**
|
|
15943
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
15944
|
+
* resolved value cannot be modified from the callback.
|
|
15945
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
15946
|
+
* @returns A Promise for the completion of the callback.
|
|
15947
|
+
*/
|
|
15948
|
+
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
15949
|
+
}
|
|
15950
|
+
|
|
15951
|
+
|
|
15952
|
+
|
|
15953
|
+
|
|
15954
|
+
/**
|
|
15955
|
+
* Fields of the AuditLog model
|
|
15956
|
+
*/
|
|
15957
|
+
interface AuditLogFieldRefs {
|
|
15958
|
+
readonly objectId: FieldRef<"AuditLog", 'String'>
|
|
15959
|
+
readonly action: FieldRef<"AuditLog", 'String'>
|
|
15960
|
+
readonly resourceId: FieldRef<"AuditLog", 'String'>
|
|
15961
|
+
readonly metadata: FieldRef<"AuditLog", 'Json'>
|
|
15962
|
+
readonly ipAddress: FieldRef<"AuditLog", 'String'>
|
|
15963
|
+
readonly userAgent: FieldRef<"AuditLog", 'String'>
|
|
15964
|
+
readonly timestamp: FieldRef<"AuditLog", 'DateTime'>
|
|
15965
|
+
readonly userId: FieldRef<"AuditLog", 'String'>
|
|
15966
|
+
}
|
|
15967
|
+
|
|
15968
|
+
|
|
15969
|
+
// Custom InputTypes
|
|
15970
|
+
/**
|
|
15971
|
+
* AuditLog findUnique
|
|
15972
|
+
*/
|
|
15973
|
+
export type AuditLogFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
15974
|
+
/**
|
|
15975
|
+
* Select specific fields to fetch from the AuditLog
|
|
15976
|
+
*/
|
|
15977
|
+
select?: AuditLogSelect<ExtArgs> | null
|
|
15978
|
+
/**
|
|
15979
|
+
* Omit specific fields from the AuditLog
|
|
15980
|
+
*/
|
|
15981
|
+
omit?: AuditLogOmit<ExtArgs> | null
|
|
15982
|
+
/**
|
|
15983
|
+
* Filter, which AuditLog to fetch.
|
|
15984
|
+
*/
|
|
15985
|
+
where: AuditLogWhereUniqueInput
|
|
15986
|
+
}
|
|
15987
|
+
|
|
15988
|
+
/**
|
|
15989
|
+
* AuditLog findUniqueOrThrow
|
|
15990
|
+
*/
|
|
15991
|
+
export type AuditLogFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
15992
|
+
/**
|
|
15993
|
+
* Select specific fields to fetch from the AuditLog
|
|
15994
|
+
*/
|
|
15995
|
+
select?: AuditLogSelect<ExtArgs> | null
|
|
15996
|
+
/**
|
|
15997
|
+
* Omit specific fields from the AuditLog
|
|
15998
|
+
*/
|
|
15999
|
+
omit?: AuditLogOmit<ExtArgs> | null
|
|
16000
|
+
/**
|
|
16001
|
+
* Filter, which AuditLog to fetch.
|
|
16002
|
+
*/
|
|
16003
|
+
where: AuditLogWhereUniqueInput
|
|
16004
|
+
}
|
|
16005
|
+
|
|
16006
|
+
/**
|
|
16007
|
+
* AuditLog findFirst
|
|
16008
|
+
*/
|
|
16009
|
+
export type AuditLogFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
16010
|
+
/**
|
|
16011
|
+
* Select specific fields to fetch from the AuditLog
|
|
16012
|
+
*/
|
|
16013
|
+
select?: AuditLogSelect<ExtArgs> | null
|
|
16014
|
+
/**
|
|
16015
|
+
* Omit specific fields from the AuditLog
|
|
16016
|
+
*/
|
|
16017
|
+
omit?: AuditLogOmit<ExtArgs> | null
|
|
16018
|
+
/**
|
|
16019
|
+
* Filter, which AuditLog to fetch.
|
|
16020
|
+
*/
|
|
16021
|
+
where?: AuditLogWhereInput
|
|
16022
|
+
/**
|
|
16023
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
16024
|
+
*
|
|
16025
|
+
* Determine the order of AuditLogs to fetch.
|
|
16026
|
+
*/
|
|
16027
|
+
orderBy?: AuditLogOrderByWithRelationInput | AuditLogOrderByWithRelationInput[]
|
|
16028
|
+
/**
|
|
16029
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
16030
|
+
*
|
|
16031
|
+
* Sets the position for searching for AuditLogs.
|
|
16032
|
+
*/
|
|
16033
|
+
cursor?: AuditLogWhereUniqueInput
|
|
16034
|
+
/**
|
|
16035
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
16036
|
+
*
|
|
16037
|
+
* Take `±n` AuditLogs from the position of the cursor.
|
|
16038
|
+
*/
|
|
16039
|
+
take?: number
|
|
16040
|
+
/**
|
|
16041
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
16042
|
+
*
|
|
16043
|
+
* Skip the first `n` AuditLogs.
|
|
16044
|
+
*/
|
|
16045
|
+
skip?: number
|
|
16046
|
+
/**
|
|
16047
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
16048
|
+
*
|
|
16049
|
+
* Filter by unique combinations of AuditLogs.
|
|
16050
|
+
*/
|
|
16051
|
+
distinct?: AuditLogScalarFieldEnum | AuditLogScalarFieldEnum[]
|
|
16052
|
+
}
|
|
16053
|
+
|
|
16054
|
+
/**
|
|
16055
|
+
* AuditLog findFirstOrThrow
|
|
16056
|
+
*/
|
|
16057
|
+
export type AuditLogFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
16058
|
+
/**
|
|
16059
|
+
* Select specific fields to fetch from the AuditLog
|
|
16060
|
+
*/
|
|
16061
|
+
select?: AuditLogSelect<ExtArgs> | null
|
|
16062
|
+
/**
|
|
16063
|
+
* Omit specific fields from the AuditLog
|
|
16064
|
+
*/
|
|
16065
|
+
omit?: AuditLogOmit<ExtArgs> | null
|
|
16066
|
+
/**
|
|
16067
|
+
* Filter, which AuditLog to fetch.
|
|
16068
|
+
*/
|
|
16069
|
+
where?: AuditLogWhereInput
|
|
16070
|
+
/**
|
|
16071
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
16072
|
+
*
|
|
16073
|
+
* Determine the order of AuditLogs to fetch.
|
|
16074
|
+
*/
|
|
16075
|
+
orderBy?: AuditLogOrderByWithRelationInput | AuditLogOrderByWithRelationInput[]
|
|
16076
|
+
/**
|
|
16077
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
16078
|
+
*
|
|
16079
|
+
* Sets the position for searching for AuditLogs.
|
|
16080
|
+
*/
|
|
16081
|
+
cursor?: AuditLogWhereUniqueInput
|
|
16082
|
+
/**
|
|
16083
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
16084
|
+
*
|
|
16085
|
+
* Take `±n` AuditLogs from the position of the cursor.
|
|
16086
|
+
*/
|
|
16087
|
+
take?: number
|
|
16088
|
+
/**
|
|
16089
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
16090
|
+
*
|
|
16091
|
+
* Skip the first `n` AuditLogs.
|
|
16092
|
+
*/
|
|
16093
|
+
skip?: number
|
|
16094
|
+
/**
|
|
16095
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
16096
|
+
*
|
|
16097
|
+
* Filter by unique combinations of AuditLogs.
|
|
16098
|
+
*/
|
|
16099
|
+
distinct?: AuditLogScalarFieldEnum | AuditLogScalarFieldEnum[]
|
|
16100
|
+
}
|
|
16101
|
+
|
|
16102
|
+
/**
|
|
16103
|
+
* AuditLog findMany
|
|
16104
|
+
*/
|
|
16105
|
+
export type AuditLogFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
16106
|
+
/**
|
|
16107
|
+
* Select specific fields to fetch from the AuditLog
|
|
16108
|
+
*/
|
|
16109
|
+
select?: AuditLogSelect<ExtArgs> | null
|
|
16110
|
+
/**
|
|
16111
|
+
* Omit specific fields from the AuditLog
|
|
16112
|
+
*/
|
|
16113
|
+
omit?: AuditLogOmit<ExtArgs> | null
|
|
16114
|
+
/**
|
|
16115
|
+
* Filter, which AuditLogs to fetch.
|
|
16116
|
+
*/
|
|
16117
|
+
where?: AuditLogWhereInput
|
|
16118
|
+
/**
|
|
16119
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
16120
|
+
*
|
|
16121
|
+
* Determine the order of AuditLogs to fetch.
|
|
16122
|
+
*/
|
|
16123
|
+
orderBy?: AuditLogOrderByWithRelationInput | AuditLogOrderByWithRelationInput[]
|
|
16124
|
+
/**
|
|
16125
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
16126
|
+
*
|
|
16127
|
+
* Sets the position for listing AuditLogs.
|
|
16128
|
+
*/
|
|
16129
|
+
cursor?: AuditLogWhereUniqueInput
|
|
16130
|
+
/**
|
|
16131
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
16132
|
+
*
|
|
16133
|
+
* Take `±n` AuditLogs from the position of the cursor.
|
|
16134
|
+
*/
|
|
16135
|
+
take?: number
|
|
16136
|
+
/**
|
|
16137
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
16138
|
+
*
|
|
16139
|
+
* Skip the first `n` AuditLogs.
|
|
16140
|
+
*/
|
|
16141
|
+
skip?: number
|
|
16142
|
+
distinct?: AuditLogScalarFieldEnum | AuditLogScalarFieldEnum[]
|
|
16143
|
+
}
|
|
16144
|
+
|
|
16145
|
+
/**
|
|
16146
|
+
* AuditLog create
|
|
16147
|
+
*/
|
|
16148
|
+
export type AuditLogCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
16149
|
+
/**
|
|
16150
|
+
* Select specific fields to fetch from the AuditLog
|
|
16151
|
+
*/
|
|
16152
|
+
select?: AuditLogSelect<ExtArgs> | null
|
|
16153
|
+
/**
|
|
16154
|
+
* Omit specific fields from the AuditLog
|
|
16155
|
+
*/
|
|
16156
|
+
omit?: AuditLogOmit<ExtArgs> | null
|
|
16157
|
+
/**
|
|
16158
|
+
* The data needed to create a AuditLog.
|
|
16159
|
+
*/
|
|
16160
|
+
data: XOR<AuditLogCreateInput, AuditLogUncheckedCreateInput>
|
|
16161
|
+
}
|
|
16162
|
+
|
|
16163
|
+
/**
|
|
16164
|
+
* AuditLog createMany
|
|
16165
|
+
*/
|
|
16166
|
+
export type AuditLogCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
16167
|
+
/**
|
|
16168
|
+
* The data used to create many AuditLogs.
|
|
16169
|
+
*/
|
|
16170
|
+
data: AuditLogCreateManyInput | AuditLogCreateManyInput[]
|
|
16171
|
+
}
|
|
16172
|
+
|
|
16173
|
+
/**
|
|
16174
|
+
* AuditLog update
|
|
16175
|
+
*/
|
|
16176
|
+
export type AuditLogUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
16177
|
+
/**
|
|
16178
|
+
* Select specific fields to fetch from the AuditLog
|
|
16179
|
+
*/
|
|
16180
|
+
select?: AuditLogSelect<ExtArgs> | null
|
|
16181
|
+
/**
|
|
16182
|
+
* Omit specific fields from the AuditLog
|
|
16183
|
+
*/
|
|
16184
|
+
omit?: AuditLogOmit<ExtArgs> | null
|
|
16185
|
+
/**
|
|
16186
|
+
* The data needed to update a AuditLog.
|
|
16187
|
+
*/
|
|
16188
|
+
data: XOR<AuditLogUpdateInput, AuditLogUncheckedUpdateInput>
|
|
16189
|
+
/**
|
|
16190
|
+
* Choose, which AuditLog to update.
|
|
16191
|
+
*/
|
|
16192
|
+
where: AuditLogWhereUniqueInput
|
|
16193
|
+
}
|
|
16194
|
+
|
|
16195
|
+
/**
|
|
16196
|
+
* AuditLog updateMany
|
|
16197
|
+
*/
|
|
16198
|
+
export type AuditLogUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
16199
|
+
/**
|
|
16200
|
+
* The data used to update AuditLogs.
|
|
16201
|
+
*/
|
|
16202
|
+
data: XOR<AuditLogUpdateManyMutationInput, AuditLogUncheckedUpdateManyInput>
|
|
16203
|
+
/**
|
|
16204
|
+
* Filter which AuditLogs to update
|
|
16205
|
+
*/
|
|
16206
|
+
where?: AuditLogWhereInput
|
|
16207
|
+
/**
|
|
16208
|
+
* Limit how many AuditLogs to update.
|
|
16209
|
+
*/
|
|
16210
|
+
limit?: number
|
|
16211
|
+
}
|
|
16212
|
+
|
|
16213
|
+
/**
|
|
16214
|
+
* AuditLog upsert
|
|
16215
|
+
*/
|
|
16216
|
+
export type AuditLogUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
16217
|
+
/**
|
|
16218
|
+
* Select specific fields to fetch from the AuditLog
|
|
16219
|
+
*/
|
|
16220
|
+
select?: AuditLogSelect<ExtArgs> | null
|
|
16221
|
+
/**
|
|
16222
|
+
* Omit specific fields from the AuditLog
|
|
16223
|
+
*/
|
|
16224
|
+
omit?: AuditLogOmit<ExtArgs> | null
|
|
16225
|
+
/**
|
|
16226
|
+
* The filter to search for the AuditLog to update in case it exists.
|
|
16227
|
+
*/
|
|
16228
|
+
where: AuditLogWhereUniqueInput
|
|
16229
|
+
/**
|
|
16230
|
+
* In case the AuditLog found by the `where` argument doesn't exist, create a new AuditLog with this data.
|
|
16231
|
+
*/
|
|
16232
|
+
create: XOR<AuditLogCreateInput, AuditLogUncheckedCreateInput>
|
|
16233
|
+
/**
|
|
16234
|
+
* In case the AuditLog was found with the provided `where` argument, update it with this data.
|
|
16235
|
+
*/
|
|
16236
|
+
update: XOR<AuditLogUpdateInput, AuditLogUncheckedUpdateInput>
|
|
16237
|
+
}
|
|
16238
|
+
|
|
16239
|
+
/**
|
|
16240
|
+
* AuditLog delete
|
|
16241
|
+
*/
|
|
16242
|
+
export type AuditLogDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
16243
|
+
/**
|
|
16244
|
+
* Select specific fields to fetch from the AuditLog
|
|
16245
|
+
*/
|
|
16246
|
+
select?: AuditLogSelect<ExtArgs> | null
|
|
16247
|
+
/**
|
|
16248
|
+
* Omit specific fields from the AuditLog
|
|
16249
|
+
*/
|
|
16250
|
+
omit?: AuditLogOmit<ExtArgs> | null
|
|
16251
|
+
/**
|
|
16252
|
+
* Filter which AuditLog to delete.
|
|
16253
|
+
*/
|
|
16254
|
+
where: AuditLogWhereUniqueInput
|
|
16255
|
+
}
|
|
16256
|
+
|
|
16257
|
+
/**
|
|
16258
|
+
* AuditLog deleteMany
|
|
16259
|
+
*/
|
|
16260
|
+
export type AuditLogDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
16261
|
+
/**
|
|
16262
|
+
* Filter which AuditLogs to delete
|
|
16263
|
+
*/
|
|
16264
|
+
where?: AuditLogWhereInput
|
|
16265
|
+
/**
|
|
16266
|
+
* Limit how many AuditLogs to delete.
|
|
16267
|
+
*/
|
|
16268
|
+
limit?: number
|
|
16269
|
+
}
|
|
16270
|
+
|
|
16271
|
+
/**
|
|
16272
|
+
* AuditLog findRaw
|
|
16273
|
+
*/
|
|
16274
|
+
export type AuditLogFindRawArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
16275
|
+
/**
|
|
16276
|
+
* The query predicate filter. If unspecified, then all documents in the collection will match the predicate. ${@link https://docs.mongodb.com/manual/reference/operator/query MongoDB Docs}.
|
|
16277
|
+
*/
|
|
16278
|
+
filter?: InputJsonValue
|
|
16279
|
+
/**
|
|
16280
|
+
* Additional options to pass to the `find` command ${@link https://docs.mongodb.com/manual/reference/command/find/#command-fields MongoDB Docs}.
|
|
16281
|
+
*/
|
|
16282
|
+
options?: InputJsonValue
|
|
16283
|
+
}
|
|
16284
|
+
|
|
16285
|
+
/**
|
|
16286
|
+
* AuditLog aggregateRaw
|
|
16287
|
+
*/
|
|
16288
|
+
export type AuditLogAggregateRawArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
16289
|
+
/**
|
|
16290
|
+
* An array of aggregation stages to process and transform the document stream via the aggregation pipeline. ${@link https://docs.mongodb.com/manual/reference/operator/aggregation-pipeline MongoDB Docs}.
|
|
16291
|
+
*/
|
|
16292
|
+
pipeline?: InputJsonValue[]
|
|
16293
|
+
/**
|
|
16294
|
+
* Additional options to pass to the `aggregate` command ${@link https://docs.mongodb.com/manual/reference/command/aggregate/#command-fields MongoDB Docs}.
|
|
16295
|
+
*/
|
|
16296
|
+
options?: InputJsonValue
|
|
16297
|
+
}
|
|
16298
|
+
|
|
16299
|
+
/**
|
|
16300
|
+
* AuditLog without action
|
|
16301
|
+
*/
|
|
16302
|
+
export type AuditLogDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
16303
|
+
/**
|
|
16304
|
+
* Select specific fields to fetch from the AuditLog
|
|
16305
|
+
*/
|
|
16306
|
+
select?: AuditLogSelect<ExtArgs> | null
|
|
16307
|
+
/**
|
|
16308
|
+
* Omit specific fields from the AuditLog
|
|
16309
|
+
*/
|
|
16310
|
+
omit?: AuditLogOmit<ExtArgs> | null
|
|
16311
|
+
}
|
|
16312
|
+
|
|
16313
|
+
|
|
16314
|
+
/**
|
|
16315
|
+
* Enums
|
|
16316
|
+
*/
|
|
16317
|
+
|
|
16318
|
+
export const ProviderScalarFieldEnum: {
|
|
16319
|
+
objectId: 'objectId',
|
|
16320
|
+
name: 'name',
|
|
16321
|
+
providerUrl: 'providerUrl',
|
|
16322
|
+
createdAt: 'createdAt',
|
|
16323
|
+
updatedAt: 'updatedAt'
|
|
16324
|
+
};
|
|
16325
|
+
|
|
16326
|
+
export type ProviderScalarFieldEnum = (typeof ProviderScalarFieldEnum)[keyof typeof ProviderScalarFieldEnum]
|
|
16327
|
+
|
|
16328
|
+
|
|
16329
|
+
export const TournamentScalarFieldEnum: {
|
|
16330
|
+
objectId: 'objectId',
|
|
16331
|
+
levrTournamentId: 'levrTournamentId',
|
|
16332
|
+
chainId: 'chainId',
|
|
16333
|
+
name: 'name',
|
|
16334
|
+
description: 'description',
|
|
16335
|
+
bannerUrl: 'bannerUrl',
|
|
16336
|
+
startDate: 'startDate',
|
|
16337
|
+
endDate: 'endDate',
|
|
16338
|
+
createdAt: 'createdAt',
|
|
16339
|
+
updatedAt: 'updatedAt'
|
|
16340
|
+
};
|
|
16341
|
+
|
|
16342
|
+
export type TournamentScalarFieldEnum = (typeof TournamentScalarFieldEnum)[keyof typeof TournamentScalarFieldEnum]
|
|
16343
|
+
|
|
16344
|
+
|
|
16345
|
+
export const SportScalarFieldEnum: {
|
|
16346
|
+
objectId: 'objectId',
|
|
16347
|
+
levrSportId: 'levrSportId',
|
|
16348
|
+
name: 'name',
|
|
16349
|
+
periodType: 'periodType',
|
|
16350
|
+
scoringType: 'scoringType',
|
|
16351
|
+
standardDurationMs: 'standardDurationMs',
|
|
16352
|
+
standardPeriods: 'standardPeriods',
|
|
16353
|
+
periodDuration: 'periodDuration',
|
|
16354
|
+
hasDrawMarket: 'hasDrawMarket',
|
|
16355
|
+
sportGroup: 'sportGroup',
|
|
16356
|
+
createdAt: 'createdAt',
|
|
16357
|
+
updatedAt: 'updatedAt'
|
|
16358
|
+
};
|
|
16359
|
+
|
|
16360
|
+
export type SportScalarFieldEnum = (typeof SportScalarFieldEnum)[keyof typeof SportScalarFieldEnum]
|
|
16361
|
+
|
|
16362
|
+
|
|
16363
|
+
export const LeagueScalarFieldEnum: {
|
|
16364
|
+
objectId: 'objectId',
|
|
16365
|
+
name: 'name',
|
|
16366
|
+
abbreviation: 'abbreviation',
|
|
16367
|
+
country: 'country',
|
|
16368
|
+
levrLeagueId: 'levrLeagueId',
|
|
16369
|
+
opticOddsLeagueId: 'opticOddsLeagueId',
|
|
16370
|
+
lsportsLeagueId: 'lsportsLeagueId',
|
|
16371
|
+
tournamentObjectId: 'tournamentObjectId',
|
|
16372
|
+
sportObjectId: 'sportObjectId',
|
|
16373
|
+
levrSportId: 'levrSportId',
|
|
16374
|
+
createdAt: 'createdAt',
|
|
16375
|
+
updatedAt: 'updatedAt'
|
|
16376
|
+
};
|
|
16377
|
+
|
|
16378
|
+
export type LeagueScalarFieldEnum = (typeof LeagueScalarFieldEnum)[keyof typeof LeagueScalarFieldEnum]
|
|
16379
|
+
|
|
16380
|
+
|
|
16381
|
+
export const TeamDataScalarFieldEnum: {
|
|
16382
|
+
objectId: 'objectId',
|
|
16383
|
+
levrTeamName: 'levrTeamName',
|
|
16384
|
+
levrTeamOfficialAbbreviation: 'levrTeamOfficialAbbreviation',
|
|
16385
|
+
lsportsTeamName: 'lsportsTeamName',
|
|
16386
|
+
opticOddsTeamName: 'opticOddsTeamName',
|
|
16387
|
+
lsportsTeamId: 'lsportsTeamId',
|
|
16388
|
+
opticOddsTeamId: 'opticOddsTeamId',
|
|
16389
|
+
levrTeamId: 'levrTeamId',
|
|
16390
|
+
opticOddsTeamLogoUrl: 'opticOddsTeamLogoUrl',
|
|
16391
|
+
levrTeamLogoUrlAsHome: 'levrTeamLogoUrlAsHome',
|
|
16392
|
+
levrTeamLogoUrlAsAway: 'levrTeamLogoUrlAsAway',
|
|
16393
|
+
leagueObjectId: 'leagueObjectId',
|
|
16394
|
+
levrleagueId: 'levrleagueId'
|
|
16395
|
+
};
|
|
16396
|
+
|
|
16397
|
+
export type TeamDataScalarFieldEnum = (typeof TeamDataScalarFieldEnum)[keyof typeof TeamDataScalarFieldEnum]
|
|
14198
16398
|
|
|
14199
16399
|
|
|
14200
16400
|
export const FixtureScalarFieldEnum: {
|
|
@@ -14332,6 +16532,40 @@ export namespace Prisma {
|
|
|
14332
16532
|
export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum]
|
|
14333
16533
|
|
|
14334
16534
|
|
|
16535
|
+
export const ApiKeyScalarFieldEnum: {
|
|
16536
|
+
objectId: 'objectId',
|
|
16537
|
+
name: 'name',
|
|
16538
|
+
hashedKey: 'hashedKey',
|
|
16539
|
+
keyId: 'keyId',
|
|
16540
|
+
scopes: 'scopes',
|
|
16541
|
+
metadata: 'metadata',
|
|
16542
|
+
isActive: 'isActive',
|
|
16543
|
+
expiresAt: 'expiresAt',
|
|
16544
|
+
lastUsedAt: 'lastUsedAt',
|
|
16545
|
+
usageCount: 'usageCount',
|
|
16546
|
+
createdAt: 'createdAt',
|
|
16547
|
+
updatedAt: 'updatedAt',
|
|
16548
|
+
applicationId: 'applicationId',
|
|
16549
|
+
userId: 'userId'
|
|
16550
|
+
};
|
|
16551
|
+
|
|
16552
|
+
export type ApiKeyScalarFieldEnum = (typeof ApiKeyScalarFieldEnum)[keyof typeof ApiKeyScalarFieldEnum]
|
|
16553
|
+
|
|
16554
|
+
|
|
16555
|
+
export const AuditLogScalarFieldEnum: {
|
|
16556
|
+
objectId: 'objectId',
|
|
16557
|
+
action: 'action',
|
|
16558
|
+
resourceId: 'resourceId',
|
|
16559
|
+
metadata: 'metadata',
|
|
16560
|
+
ipAddress: 'ipAddress',
|
|
16561
|
+
userAgent: 'userAgent',
|
|
16562
|
+
timestamp: 'timestamp',
|
|
16563
|
+
userId: 'userId'
|
|
16564
|
+
};
|
|
16565
|
+
|
|
16566
|
+
export type AuditLogScalarFieldEnum = (typeof AuditLogScalarFieldEnum)[keyof typeof AuditLogScalarFieldEnum]
|
|
16567
|
+
|
|
16568
|
+
|
|
14335
16569
|
export const SortOrder: {
|
|
14336
16570
|
asc: 'asc',
|
|
14337
16571
|
desc: 'desc'
|
|
@@ -15640,6 +17874,172 @@ export namespace Prisma {
|
|
|
15640
17874
|
updatedAt?: DateTimeWithAggregatesFilter<"User"> | Date | string
|
|
15641
17875
|
}
|
|
15642
17876
|
|
|
17877
|
+
export type ApiKeyWhereInput = {
|
|
17878
|
+
AND?: ApiKeyWhereInput | ApiKeyWhereInput[]
|
|
17879
|
+
OR?: ApiKeyWhereInput[]
|
|
17880
|
+
NOT?: ApiKeyWhereInput | ApiKeyWhereInput[]
|
|
17881
|
+
objectId?: StringFilter<"ApiKey"> | string
|
|
17882
|
+
name?: StringFilter<"ApiKey"> | string
|
|
17883
|
+
hashedKey?: StringFilter<"ApiKey"> | string
|
|
17884
|
+
keyId?: StringFilter<"ApiKey"> | string
|
|
17885
|
+
scopes?: StringNullableListFilter<"ApiKey">
|
|
17886
|
+
metadata?: JsonFilter<"ApiKey">
|
|
17887
|
+
isActive?: BoolFilter<"ApiKey"> | boolean
|
|
17888
|
+
expiresAt?: DateTimeNullableFilter<"ApiKey"> | Date | string | null
|
|
17889
|
+
lastUsedAt?: DateTimeNullableFilter<"ApiKey"> | Date | string | null
|
|
17890
|
+
usageCount?: IntFilter<"ApiKey"> | number
|
|
17891
|
+
createdAt?: DateTimeFilter<"ApiKey"> | Date | string
|
|
17892
|
+
updatedAt?: DateTimeFilter<"ApiKey"> | Date | string
|
|
17893
|
+
applicationId?: StringFilter<"ApiKey"> | string
|
|
17894
|
+
userId?: StringFilter<"ApiKey"> | string
|
|
17895
|
+
}
|
|
17896
|
+
|
|
17897
|
+
export type ApiKeyOrderByWithRelationInput = {
|
|
17898
|
+
objectId?: SortOrder
|
|
17899
|
+
name?: SortOrder
|
|
17900
|
+
hashedKey?: SortOrder
|
|
17901
|
+
keyId?: SortOrder
|
|
17902
|
+
scopes?: SortOrder
|
|
17903
|
+
metadata?: SortOrder
|
|
17904
|
+
isActive?: SortOrder
|
|
17905
|
+
expiresAt?: SortOrder
|
|
17906
|
+
lastUsedAt?: SortOrder
|
|
17907
|
+
usageCount?: SortOrder
|
|
17908
|
+
createdAt?: SortOrder
|
|
17909
|
+
updatedAt?: SortOrder
|
|
17910
|
+
applicationId?: SortOrder
|
|
17911
|
+
userId?: SortOrder
|
|
17912
|
+
}
|
|
17913
|
+
|
|
17914
|
+
export type ApiKeyWhereUniqueInput = Prisma.AtLeast<{
|
|
17915
|
+
objectId?: string
|
|
17916
|
+
hashedKey?: string
|
|
17917
|
+
keyId?: string
|
|
17918
|
+
AND?: ApiKeyWhereInput | ApiKeyWhereInput[]
|
|
17919
|
+
OR?: ApiKeyWhereInput[]
|
|
17920
|
+
NOT?: ApiKeyWhereInput | ApiKeyWhereInput[]
|
|
17921
|
+
name?: StringFilter<"ApiKey"> | string
|
|
17922
|
+
scopes?: StringNullableListFilter<"ApiKey">
|
|
17923
|
+
metadata?: JsonFilter<"ApiKey">
|
|
17924
|
+
isActive?: BoolFilter<"ApiKey"> | boolean
|
|
17925
|
+
expiresAt?: DateTimeNullableFilter<"ApiKey"> | Date | string | null
|
|
17926
|
+
lastUsedAt?: DateTimeNullableFilter<"ApiKey"> | Date | string | null
|
|
17927
|
+
usageCount?: IntFilter<"ApiKey"> | number
|
|
17928
|
+
createdAt?: DateTimeFilter<"ApiKey"> | Date | string
|
|
17929
|
+
updatedAt?: DateTimeFilter<"ApiKey"> | Date | string
|
|
17930
|
+
applicationId?: StringFilter<"ApiKey"> | string
|
|
17931
|
+
userId?: StringFilter<"ApiKey"> | string
|
|
17932
|
+
}, "objectId" | "hashedKey" | "keyId">
|
|
17933
|
+
|
|
17934
|
+
export type ApiKeyOrderByWithAggregationInput = {
|
|
17935
|
+
objectId?: SortOrder
|
|
17936
|
+
name?: SortOrder
|
|
17937
|
+
hashedKey?: SortOrder
|
|
17938
|
+
keyId?: SortOrder
|
|
17939
|
+
scopes?: SortOrder
|
|
17940
|
+
metadata?: SortOrder
|
|
17941
|
+
isActive?: SortOrder
|
|
17942
|
+
expiresAt?: SortOrder
|
|
17943
|
+
lastUsedAt?: SortOrder
|
|
17944
|
+
usageCount?: SortOrder
|
|
17945
|
+
createdAt?: SortOrder
|
|
17946
|
+
updatedAt?: SortOrder
|
|
17947
|
+
applicationId?: SortOrder
|
|
17948
|
+
userId?: SortOrder
|
|
17949
|
+
_count?: ApiKeyCountOrderByAggregateInput
|
|
17950
|
+
_avg?: ApiKeyAvgOrderByAggregateInput
|
|
17951
|
+
_max?: ApiKeyMaxOrderByAggregateInput
|
|
17952
|
+
_min?: ApiKeyMinOrderByAggregateInput
|
|
17953
|
+
_sum?: ApiKeySumOrderByAggregateInput
|
|
17954
|
+
}
|
|
17955
|
+
|
|
17956
|
+
export type ApiKeyScalarWhereWithAggregatesInput = {
|
|
17957
|
+
AND?: ApiKeyScalarWhereWithAggregatesInput | ApiKeyScalarWhereWithAggregatesInput[]
|
|
17958
|
+
OR?: ApiKeyScalarWhereWithAggregatesInput[]
|
|
17959
|
+
NOT?: ApiKeyScalarWhereWithAggregatesInput | ApiKeyScalarWhereWithAggregatesInput[]
|
|
17960
|
+
objectId?: StringWithAggregatesFilter<"ApiKey"> | string
|
|
17961
|
+
name?: StringWithAggregatesFilter<"ApiKey"> | string
|
|
17962
|
+
hashedKey?: StringWithAggregatesFilter<"ApiKey"> | string
|
|
17963
|
+
keyId?: StringWithAggregatesFilter<"ApiKey"> | string
|
|
17964
|
+
scopes?: StringNullableListFilter<"ApiKey">
|
|
17965
|
+
metadata?: JsonWithAggregatesFilter<"ApiKey">
|
|
17966
|
+
isActive?: BoolWithAggregatesFilter<"ApiKey"> | boolean
|
|
17967
|
+
expiresAt?: DateTimeNullableWithAggregatesFilter<"ApiKey"> | Date | string | null
|
|
17968
|
+
lastUsedAt?: DateTimeNullableWithAggregatesFilter<"ApiKey"> | Date | string | null
|
|
17969
|
+
usageCount?: IntWithAggregatesFilter<"ApiKey"> | number
|
|
17970
|
+
createdAt?: DateTimeWithAggregatesFilter<"ApiKey"> | Date | string
|
|
17971
|
+
updatedAt?: DateTimeWithAggregatesFilter<"ApiKey"> | Date | string
|
|
17972
|
+
applicationId?: StringWithAggregatesFilter<"ApiKey"> | string
|
|
17973
|
+
userId?: StringWithAggregatesFilter<"ApiKey"> | string
|
|
17974
|
+
}
|
|
17975
|
+
|
|
17976
|
+
export type AuditLogWhereInput = {
|
|
17977
|
+
AND?: AuditLogWhereInput | AuditLogWhereInput[]
|
|
17978
|
+
OR?: AuditLogWhereInput[]
|
|
17979
|
+
NOT?: AuditLogWhereInput | AuditLogWhereInput[]
|
|
17980
|
+
objectId?: StringFilter<"AuditLog"> | string
|
|
17981
|
+
action?: StringFilter<"AuditLog"> | string
|
|
17982
|
+
resourceId?: StringNullableFilter<"AuditLog"> | string | null
|
|
17983
|
+
metadata?: JsonFilter<"AuditLog">
|
|
17984
|
+
ipAddress?: StringNullableFilter<"AuditLog"> | string | null
|
|
17985
|
+
userAgent?: StringNullableFilter<"AuditLog"> | string | null
|
|
17986
|
+
timestamp?: DateTimeFilter<"AuditLog"> | Date | string
|
|
17987
|
+
userId?: StringFilter<"AuditLog"> | string
|
|
17988
|
+
}
|
|
17989
|
+
|
|
17990
|
+
export type AuditLogOrderByWithRelationInput = {
|
|
17991
|
+
objectId?: SortOrder
|
|
17992
|
+
action?: SortOrder
|
|
17993
|
+
resourceId?: SortOrder
|
|
17994
|
+
metadata?: SortOrder
|
|
17995
|
+
ipAddress?: SortOrder
|
|
17996
|
+
userAgent?: SortOrder
|
|
17997
|
+
timestamp?: SortOrder
|
|
17998
|
+
userId?: SortOrder
|
|
17999
|
+
}
|
|
18000
|
+
|
|
18001
|
+
export type AuditLogWhereUniqueInput = Prisma.AtLeast<{
|
|
18002
|
+
objectId?: string
|
|
18003
|
+
AND?: AuditLogWhereInput | AuditLogWhereInput[]
|
|
18004
|
+
OR?: AuditLogWhereInput[]
|
|
18005
|
+
NOT?: AuditLogWhereInput | AuditLogWhereInput[]
|
|
18006
|
+
action?: StringFilter<"AuditLog"> | string
|
|
18007
|
+
resourceId?: StringNullableFilter<"AuditLog"> | string | null
|
|
18008
|
+
metadata?: JsonFilter<"AuditLog">
|
|
18009
|
+
ipAddress?: StringNullableFilter<"AuditLog"> | string | null
|
|
18010
|
+
userAgent?: StringNullableFilter<"AuditLog"> | string | null
|
|
18011
|
+
timestamp?: DateTimeFilter<"AuditLog"> | Date | string
|
|
18012
|
+
userId?: StringFilter<"AuditLog"> | string
|
|
18013
|
+
}, "objectId">
|
|
18014
|
+
|
|
18015
|
+
export type AuditLogOrderByWithAggregationInput = {
|
|
18016
|
+
objectId?: SortOrder
|
|
18017
|
+
action?: SortOrder
|
|
18018
|
+
resourceId?: SortOrder
|
|
18019
|
+
metadata?: SortOrder
|
|
18020
|
+
ipAddress?: SortOrder
|
|
18021
|
+
userAgent?: SortOrder
|
|
18022
|
+
timestamp?: SortOrder
|
|
18023
|
+
userId?: SortOrder
|
|
18024
|
+
_count?: AuditLogCountOrderByAggregateInput
|
|
18025
|
+
_max?: AuditLogMaxOrderByAggregateInput
|
|
18026
|
+
_min?: AuditLogMinOrderByAggregateInput
|
|
18027
|
+
}
|
|
18028
|
+
|
|
18029
|
+
export type AuditLogScalarWhereWithAggregatesInput = {
|
|
18030
|
+
AND?: AuditLogScalarWhereWithAggregatesInput | AuditLogScalarWhereWithAggregatesInput[]
|
|
18031
|
+
OR?: AuditLogScalarWhereWithAggregatesInput[]
|
|
18032
|
+
NOT?: AuditLogScalarWhereWithAggregatesInput | AuditLogScalarWhereWithAggregatesInput[]
|
|
18033
|
+
objectId?: StringWithAggregatesFilter<"AuditLog"> | string
|
|
18034
|
+
action?: StringWithAggregatesFilter<"AuditLog"> | string
|
|
18035
|
+
resourceId?: StringNullableWithAggregatesFilter<"AuditLog"> | string | null
|
|
18036
|
+
metadata?: JsonWithAggregatesFilter<"AuditLog">
|
|
18037
|
+
ipAddress?: StringNullableWithAggregatesFilter<"AuditLog"> | string | null
|
|
18038
|
+
userAgent?: StringNullableWithAggregatesFilter<"AuditLog"> | string | null
|
|
18039
|
+
timestamp?: DateTimeWithAggregatesFilter<"AuditLog"> | Date | string
|
|
18040
|
+
userId?: StringWithAggregatesFilter<"AuditLog"> | string
|
|
18041
|
+
}
|
|
18042
|
+
|
|
15643
18043
|
export type ProviderCreateInput = {
|
|
15644
18044
|
objectId?: string
|
|
15645
18045
|
name: string
|
|
@@ -16908,6 +19308,194 @@ export namespace Prisma {
|
|
|
16908
19308
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
16909
19309
|
}
|
|
16910
19310
|
|
|
19311
|
+
export type ApiKeyCreateInput = {
|
|
19312
|
+
objectId?: string
|
|
19313
|
+
name: string
|
|
19314
|
+
hashedKey: string
|
|
19315
|
+
keyId: string
|
|
19316
|
+
scopes?: ApiKeyCreatescopesInput | string[]
|
|
19317
|
+
metadata?: InputJsonValue
|
|
19318
|
+
isActive?: boolean
|
|
19319
|
+
expiresAt?: Date | string | null
|
|
19320
|
+
lastUsedAt?: Date | string | null
|
|
19321
|
+
usageCount?: number
|
|
19322
|
+
createdAt?: Date | string
|
|
19323
|
+
updatedAt?: Date | string
|
|
19324
|
+
applicationId: string
|
|
19325
|
+
userId: string
|
|
19326
|
+
}
|
|
19327
|
+
|
|
19328
|
+
export type ApiKeyUncheckedCreateInput = {
|
|
19329
|
+
objectId?: string
|
|
19330
|
+
name: string
|
|
19331
|
+
hashedKey: string
|
|
19332
|
+
keyId: string
|
|
19333
|
+
scopes?: ApiKeyCreatescopesInput | string[]
|
|
19334
|
+
metadata?: InputJsonValue
|
|
19335
|
+
isActive?: boolean
|
|
19336
|
+
expiresAt?: Date | string | null
|
|
19337
|
+
lastUsedAt?: Date | string | null
|
|
19338
|
+
usageCount?: number
|
|
19339
|
+
createdAt?: Date | string
|
|
19340
|
+
updatedAt?: Date | string
|
|
19341
|
+
applicationId: string
|
|
19342
|
+
userId: string
|
|
19343
|
+
}
|
|
19344
|
+
|
|
19345
|
+
export type ApiKeyUpdateInput = {
|
|
19346
|
+
name?: StringFieldUpdateOperationsInput | string
|
|
19347
|
+
hashedKey?: StringFieldUpdateOperationsInput | string
|
|
19348
|
+
keyId?: StringFieldUpdateOperationsInput | string
|
|
19349
|
+
scopes?: ApiKeyUpdatescopesInput | string[]
|
|
19350
|
+
metadata?: InputJsonValue | InputJsonValue
|
|
19351
|
+
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
19352
|
+
expiresAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
19353
|
+
lastUsedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
19354
|
+
usageCount?: IntFieldUpdateOperationsInput | number
|
|
19355
|
+
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
19356
|
+
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
19357
|
+
applicationId?: StringFieldUpdateOperationsInput | string
|
|
19358
|
+
userId?: StringFieldUpdateOperationsInput | string
|
|
19359
|
+
}
|
|
19360
|
+
|
|
19361
|
+
export type ApiKeyUncheckedUpdateInput = {
|
|
19362
|
+
name?: StringFieldUpdateOperationsInput | string
|
|
19363
|
+
hashedKey?: StringFieldUpdateOperationsInput | string
|
|
19364
|
+
keyId?: StringFieldUpdateOperationsInput | string
|
|
19365
|
+
scopes?: ApiKeyUpdatescopesInput | string[]
|
|
19366
|
+
metadata?: InputJsonValue | InputJsonValue
|
|
19367
|
+
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
19368
|
+
expiresAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
19369
|
+
lastUsedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
19370
|
+
usageCount?: IntFieldUpdateOperationsInput | number
|
|
19371
|
+
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
19372
|
+
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
19373
|
+
applicationId?: StringFieldUpdateOperationsInput | string
|
|
19374
|
+
userId?: StringFieldUpdateOperationsInput | string
|
|
19375
|
+
}
|
|
19376
|
+
|
|
19377
|
+
export type ApiKeyCreateManyInput = {
|
|
19378
|
+
objectId?: string
|
|
19379
|
+
name: string
|
|
19380
|
+
hashedKey: string
|
|
19381
|
+
keyId: string
|
|
19382
|
+
scopes?: ApiKeyCreatescopesInput | string[]
|
|
19383
|
+
metadata?: InputJsonValue
|
|
19384
|
+
isActive?: boolean
|
|
19385
|
+
expiresAt?: Date | string | null
|
|
19386
|
+
lastUsedAt?: Date | string | null
|
|
19387
|
+
usageCount?: number
|
|
19388
|
+
createdAt?: Date | string
|
|
19389
|
+
updatedAt?: Date | string
|
|
19390
|
+
applicationId: string
|
|
19391
|
+
userId: string
|
|
19392
|
+
}
|
|
19393
|
+
|
|
19394
|
+
export type ApiKeyUpdateManyMutationInput = {
|
|
19395
|
+
name?: StringFieldUpdateOperationsInput | string
|
|
19396
|
+
hashedKey?: StringFieldUpdateOperationsInput | string
|
|
19397
|
+
keyId?: StringFieldUpdateOperationsInput | string
|
|
19398
|
+
scopes?: ApiKeyUpdatescopesInput | string[]
|
|
19399
|
+
metadata?: InputJsonValue | InputJsonValue
|
|
19400
|
+
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
19401
|
+
expiresAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
19402
|
+
lastUsedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
19403
|
+
usageCount?: IntFieldUpdateOperationsInput | number
|
|
19404
|
+
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
19405
|
+
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
19406
|
+
applicationId?: StringFieldUpdateOperationsInput | string
|
|
19407
|
+
userId?: StringFieldUpdateOperationsInput | string
|
|
19408
|
+
}
|
|
19409
|
+
|
|
19410
|
+
export type ApiKeyUncheckedUpdateManyInput = {
|
|
19411
|
+
name?: StringFieldUpdateOperationsInput | string
|
|
19412
|
+
hashedKey?: StringFieldUpdateOperationsInput | string
|
|
19413
|
+
keyId?: StringFieldUpdateOperationsInput | string
|
|
19414
|
+
scopes?: ApiKeyUpdatescopesInput | string[]
|
|
19415
|
+
metadata?: InputJsonValue | InputJsonValue
|
|
19416
|
+
isActive?: BoolFieldUpdateOperationsInput | boolean
|
|
19417
|
+
expiresAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
19418
|
+
lastUsedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
19419
|
+
usageCount?: IntFieldUpdateOperationsInput | number
|
|
19420
|
+
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
19421
|
+
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
19422
|
+
applicationId?: StringFieldUpdateOperationsInput | string
|
|
19423
|
+
userId?: StringFieldUpdateOperationsInput | string
|
|
19424
|
+
}
|
|
19425
|
+
|
|
19426
|
+
export type AuditLogCreateInput = {
|
|
19427
|
+
objectId?: string
|
|
19428
|
+
action: string
|
|
19429
|
+
resourceId?: string | null
|
|
19430
|
+
metadata?: InputJsonValue
|
|
19431
|
+
ipAddress?: string | null
|
|
19432
|
+
userAgent?: string | null
|
|
19433
|
+
timestamp?: Date | string
|
|
19434
|
+
userId: string
|
|
19435
|
+
}
|
|
19436
|
+
|
|
19437
|
+
export type AuditLogUncheckedCreateInput = {
|
|
19438
|
+
objectId?: string
|
|
19439
|
+
action: string
|
|
19440
|
+
resourceId?: string | null
|
|
19441
|
+
metadata?: InputJsonValue
|
|
19442
|
+
ipAddress?: string | null
|
|
19443
|
+
userAgent?: string | null
|
|
19444
|
+
timestamp?: Date | string
|
|
19445
|
+
userId: string
|
|
19446
|
+
}
|
|
19447
|
+
|
|
19448
|
+
export type AuditLogUpdateInput = {
|
|
19449
|
+
action?: StringFieldUpdateOperationsInput | string
|
|
19450
|
+
resourceId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
19451
|
+
metadata?: InputJsonValue | InputJsonValue
|
|
19452
|
+
ipAddress?: NullableStringFieldUpdateOperationsInput | string | null
|
|
19453
|
+
userAgent?: NullableStringFieldUpdateOperationsInput | string | null
|
|
19454
|
+
timestamp?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
19455
|
+
userId?: StringFieldUpdateOperationsInput | string
|
|
19456
|
+
}
|
|
19457
|
+
|
|
19458
|
+
export type AuditLogUncheckedUpdateInput = {
|
|
19459
|
+
action?: StringFieldUpdateOperationsInput | string
|
|
19460
|
+
resourceId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
19461
|
+
metadata?: InputJsonValue | InputJsonValue
|
|
19462
|
+
ipAddress?: NullableStringFieldUpdateOperationsInput | string | null
|
|
19463
|
+
userAgent?: NullableStringFieldUpdateOperationsInput | string | null
|
|
19464
|
+
timestamp?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
19465
|
+
userId?: StringFieldUpdateOperationsInput | string
|
|
19466
|
+
}
|
|
19467
|
+
|
|
19468
|
+
export type AuditLogCreateManyInput = {
|
|
19469
|
+
objectId?: string
|
|
19470
|
+
action: string
|
|
19471
|
+
resourceId?: string | null
|
|
19472
|
+
metadata?: InputJsonValue
|
|
19473
|
+
ipAddress?: string | null
|
|
19474
|
+
userAgent?: string | null
|
|
19475
|
+
timestamp?: Date | string
|
|
19476
|
+
userId: string
|
|
19477
|
+
}
|
|
19478
|
+
|
|
19479
|
+
export type AuditLogUpdateManyMutationInput = {
|
|
19480
|
+
action?: StringFieldUpdateOperationsInput | string
|
|
19481
|
+
resourceId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
19482
|
+
metadata?: InputJsonValue | InputJsonValue
|
|
19483
|
+
ipAddress?: NullableStringFieldUpdateOperationsInput | string | null
|
|
19484
|
+
userAgent?: NullableStringFieldUpdateOperationsInput | string | null
|
|
19485
|
+
timestamp?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
19486
|
+
userId?: StringFieldUpdateOperationsInput | string
|
|
19487
|
+
}
|
|
19488
|
+
|
|
19489
|
+
export type AuditLogUncheckedUpdateManyInput = {
|
|
19490
|
+
action?: StringFieldUpdateOperationsInput | string
|
|
19491
|
+
resourceId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
19492
|
+
metadata?: InputJsonValue | InputJsonValue
|
|
19493
|
+
ipAddress?: NullableStringFieldUpdateOperationsInput | string | null
|
|
19494
|
+
userAgent?: NullableStringFieldUpdateOperationsInput | string | null
|
|
19495
|
+
timestamp?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
19496
|
+
userId?: StringFieldUpdateOperationsInput | string
|
|
19497
|
+
}
|
|
19498
|
+
|
|
16911
19499
|
export type StringFilter<$PrismaModel = never> = {
|
|
16912
19500
|
equals?: string | StringFieldRefInput<$PrismaModel>
|
|
16913
19501
|
in?: string[] | ListStringFieldRefInput<$PrismaModel>
|
|
@@ -17997,6 +20585,100 @@ export namespace Prisma {
|
|
|
17997
20585
|
_max?: NestedEnumUserOddsPreferenceFilter<$PrismaModel>
|
|
17998
20586
|
}
|
|
17999
20587
|
|
|
20588
|
+
export type StringNullableListFilter<$PrismaModel = never> = {
|
|
20589
|
+
equals?: string[] | ListStringFieldRefInput<$PrismaModel> | null
|
|
20590
|
+
has?: string | StringFieldRefInput<$PrismaModel> | null
|
|
20591
|
+
hasEvery?: string[] | ListStringFieldRefInput<$PrismaModel>
|
|
20592
|
+
hasSome?: string[] | ListStringFieldRefInput<$PrismaModel>
|
|
20593
|
+
isEmpty?: boolean
|
|
20594
|
+
}
|
|
20595
|
+
|
|
20596
|
+
export type ApiKeyCountOrderByAggregateInput = {
|
|
20597
|
+
objectId?: SortOrder
|
|
20598
|
+
name?: SortOrder
|
|
20599
|
+
hashedKey?: SortOrder
|
|
20600
|
+
keyId?: SortOrder
|
|
20601
|
+
scopes?: SortOrder
|
|
20602
|
+
metadata?: SortOrder
|
|
20603
|
+
isActive?: SortOrder
|
|
20604
|
+
expiresAt?: SortOrder
|
|
20605
|
+
lastUsedAt?: SortOrder
|
|
20606
|
+
usageCount?: SortOrder
|
|
20607
|
+
createdAt?: SortOrder
|
|
20608
|
+
updatedAt?: SortOrder
|
|
20609
|
+
applicationId?: SortOrder
|
|
20610
|
+
userId?: SortOrder
|
|
20611
|
+
}
|
|
20612
|
+
|
|
20613
|
+
export type ApiKeyAvgOrderByAggregateInput = {
|
|
20614
|
+
usageCount?: SortOrder
|
|
20615
|
+
}
|
|
20616
|
+
|
|
20617
|
+
export type ApiKeyMaxOrderByAggregateInput = {
|
|
20618
|
+
objectId?: SortOrder
|
|
20619
|
+
name?: SortOrder
|
|
20620
|
+
hashedKey?: SortOrder
|
|
20621
|
+
keyId?: SortOrder
|
|
20622
|
+
isActive?: SortOrder
|
|
20623
|
+
expiresAt?: SortOrder
|
|
20624
|
+
lastUsedAt?: SortOrder
|
|
20625
|
+
usageCount?: SortOrder
|
|
20626
|
+
createdAt?: SortOrder
|
|
20627
|
+
updatedAt?: SortOrder
|
|
20628
|
+
applicationId?: SortOrder
|
|
20629
|
+
userId?: SortOrder
|
|
20630
|
+
}
|
|
20631
|
+
|
|
20632
|
+
export type ApiKeyMinOrderByAggregateInput = {
|
|
20633
|
+
objectId?: SortOrder
|
|
20634
|
+
name?: SortOrder
|
|
20635
|
+
hashedKey?: SortOrder
|
|
20636
|
+
keyId?: SortOrder
|
|
20637
|
+
isActive?: SortOrder
|
|
20638
|
+
expiresAt?: SortOrder
|
|
20639
|
+
lastUsedAt?: SortOrder
|
|
20640
|
+
usageCount?: SortOrder
|
|
20641
|
+
createdAt?: SortOrder
|
|
20642
|
+
updatedAt?: SortOrder
|
|
20643
|
+
applicationId?: SortOrder
|
|
20644
|
+
userId?: SortOrder
|
|
20645
|
+
}
|
|
20646
|
+
|
|
20647
|
+
export type ApiKeySumOrderByAggregateInput = {
|
|
20648
|
+
usageCount?: SortOrder
|
|
20649
|
+
}
|
|
20650
|
+
|
|
20651
|
+
export type AuditLogCountOrderByAggregateInput = {
|
|
20652
|
+
objectId?: SortOrder
|
|
20653
|
+
action?: SortOrder
|
|
20654
|
+
resourceId?: SortOrder
|
|
20655
|
+
metadata?: SortOrder
|
|
20656
|
+
ipAddress?: SortOrder
|
|
20657
|
+
userAgent?: SortOrder
|
|
20658
|
+
timestamp?: SortOrder
|
|
20659
|
+
userId?: SortOrder
|
|
20660
|
+
}
|
|
20661
|
+
|
|
20662
|
+
export type AuditLogMaxOrderByAggregateInput = {
|
|
20663
|
+
objectId?: SortOrder
|
|
20664
|
+
action?: SortOrder
|
|
20665
|
+
resourceId?: SortOrder
|
|
20666
|
+
ipAddress?: SortOrder
|
|
20667
|
+
userAgent?: SortOrder
|
|
20668
|
+
timestamp?: SortOrder
|
|
20669
|
+
userId?: SortOrder
|
|
20670
|
+
}
|
|
20671
|
+
|
|
20672
|
+
export type AuditLogMinOrderByAggregateInput = {
|
|
20673
|
+
objectId?: SortOrder
|
|
20674
|
+
action?: SortOrder
|
|
20675
|
+
resourceId?: SortOrder
|
|
20676
|
+
ipAddress?: SortOrder
|
|
20677
|
+
userAgent?: SortOrder
|
|
20678
|
+
timestamp?: SortOrder
|
|
20679
|
+
userId?: SortOrder
|
|
20680
|
+
}
|
|
20681
|
+
|
|
18000
20682
|
export type StringFieldUpdateOperationsInput = {
|
|
18001
20683
|
set?: string
|
|
18002
20684
|
}
|
|
@@ -18520,6 +21202,15 @@ export namespace Prisma {
|
|
|
18520
21202
|
set?: $Enums.UserOddsPreference
|
|
18521
21203
|
}
|
|
18522
21204
|
|
|
21205
|
+
export type ApiKeyCreatescopesInput = {
|
|
21206
|
+
set: string[]
|
|
21207
|
+
}
|
|
21208
|
+
|
|
21209
|
+
export type ApiKeyUpdatescopesInput = {
|
|
21210
|
+
set?: string[]
|
|
21211
|
+
push?: string | string[]
|
|
21212
|
+
}
|
|
21213
|
+
|
|
18523
21214
|
export type NestedStringFilter<$PrismaModel = never> = {
|
|
18524
21215
|
equals?: string | StringFieldRefInput<$PrismaModel>
|
|
18525
21216
|
in?: string[] | ListStringFieldRefInput<$PrismaModel>
|