@friggframework/core 2.0.0-next.101 → 2.0.0-next.103
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/README.md +40 -0
- package/application/commands/usage-commands.js +56 -0
- package/application/index.js +10 -9
- package/core/CLAUDE.md +10 -0
- package/core/create-handler.js +116 -10
- package/core/parameters-to-env.js +257 -0
- package/core/ssm-preload.mjs +34 -0
- package/generated/prisma-mongodb/edge.js +16 -4
- package/generated/prisma-mongodb/index-browser.js +13 -1
- package/generated/prisma-mongodb/index.d.ts +1503 -105
- package/generated/prisma-mongodb/index.js +16 -4
- package/generated/prisma-mongodb/package.json +1 -1
- package/generated/prisma-mongodb/schema.prisma +23 -0
- package/generated/prisma-mongodb/wasm.js +16 -4
- package/generated/prisma-postgresql/edge.js +16 -4
- package/generated/prisma-postgresql/index-browser.js +13 -1
- package/generated/prisma-postgresql/index.d.ts +1540 -91
- package/generated/prisma-postgresql/index.js +16 -4
- package/generated/prisma-postgresql/package.json +1 -1
- package/generated/prisma-postgresql/schema.prisma +22 -0
- package/generated/prisma-postgresql/wasm.js +16 -4
- package/handlers/app-definition-loader.js +26 -3
- package/handlers/integration-event-dispatcher.js +29 -15
- package/handlers/routers/integration-webhook-routers.js +20 -7
- package/index.js +16 -9
- package/integrations/EXTENSIONS.md +2 -2
- package/integrations/integration-base.js +64 -7
- package/modules/requester/requester.js +106 -5
- package/package.json +13 -5
- package/prisma-mongodb/schema.prisma +23 -0
- package/prisma-postgresql/migrations/20260705000000_create_usage_counter/migration.sql +26 -0
- package/prisma-postgresql/schema.prisma +22 -0
- package/reporting/README.md +8 -1
- package/reporting/reporting-router.js +8 -1
- package/reporting/use-cases/list-integrations-report.js +53 -6
- package/telemetry/README.md +331 -0
- package/telemetry/bind-telemetry-context.js +73 -0
- package/telemetry/canonical-counters.js +52 -0
- package/telemetry/exporters.js +85 -0
- package/telemetry/index.js +26 -0
- package/telemetry/instrument-handler.js +87 -0
- package/telemetry/no-op-telemetry.js +67 -0
- package/telemetry/north-star.js +103 -0
- package/telemetry/otel-telemetry.js +213 -0
- package/telemetry/plugin-subscribers.js +77 -0
- package/telemetry/telemetry-config.js +120 -0
- package/telemetry/telemetry-context.js +40 -0
- package/telemetry/telemetry-event-bus.js +58 -0
- package/telemetry/telemetry-runtime.js +147 -0
- package/telemetry/telemetry-service.js +51 -0
- package/telemetry/usage-rollup-subscriber.js +116 -0
- package/usage/README.md +54 -0
- package/usage/index.js +17 -0
- package/usage/repositories/usage-repository-documentdb.js +194 -0
- package/usage/repositories/usage-repository-factory.js +25 -0
- package/usage/repositories/usage-repository-interface.js +37 -0
- package/usage/repositories/usage-repository-prisma.js +146 -0
- package/usage/tracked-metrics.js +38 -0
- package/usage/usage-windows.js +24 -0
|
@@ -96,6 +96,13 @@ export type AdminScriptExecution = $Result.DefaultSelection<Prisma.$AdminScriptE
|
|
|
96
96
|
* Script scheduling configuration for hybrid scheduling (SQS + EventBridge)
|
|
97
97
|
*/
|
|
98
98
|
export type ScriptSchedule = $Result.DefaultSelection<Prisma.$ScriptSchedulePayload>
|
|
99
|
+
/**
|
|
100
|
+
* Model UsageCounter
|
|
101
|
+
* Durable usage counters, deliberately isolated: no userId and no foreign key
|
|
102
|
+
* to Integration, so a user-scoped query can never return a usage row and usage
|
|
103
|
+
* history survives integration deletion.
|
|
104
|
+
*/
|
|
105
|
+
export type UsageCounter = $Result.DefaultSelection<Prisma.$UsageCounterPayload>
|
|
99
106
|
|
|
100
107
|
/**
|
|
101
108
|
* Enums
|
|
@@ -425,6 +432,16 @@ export class PrismaClient<
|
|
|
425
432
|
* ```
|
|
426
433
|
*/
|
|
427
434
|
get scriptSchedule(): Prisma.ScriptScheduleDelegate<ExtArgs, ClientOptions>;
|
|
435
|
+
|
|
436
|
+
/**
|
|
437
|
+
* `prisma.usageCounter`: Exposes CRUD operations for the **UsageCounter** model.
|
|
438
|
+
* Example usage:
|
|
439
|
+
* ```ts
|
|
440
|
+
* // Fetch zero or more UsageCounters
|
|
441
|
+
* const usageCounters = await prisma.usageCounter.findMany()
|
|
442
|
+
* ```
|
|
443
|
+
*/
|
|
444
|
+
get usageCounter(): Prisma.UsageCounterDelegate<ExtArgs, ClientOptions>;
|
|
428
445
|
}
|
|
429
446
|
|
|
430
447
|
export namespace Prisma {
|
|
@@ -880,7 +897,8 @@ export namespace Prisma {
|
|
|
880
897
|
State: 'State',
|
|
881
898
|
WebsocketConnection: 'WebsocketConnection',
|
|
882
899
|
AdminScriptExecution: 'AdminScriptExecution',
|
|
883
|
-
ScriptSchedule: 'ScriptSchedule'
|
|
900
|
+
ScriptSchedule: 'ScriptSchedule',
|
|
901
|
+
UsageCounter: 'UsageCounter'
|
|
884
902
|
};
|
|
885
903
|
|
|
886
904
|
export type ModelName = (typeof ModelName)[keyof typeof ModelName]
|
|
@@ -899,7 +917,7 @@ export namespace Prisma {
|
|
|
899
917
|
omit: GlobalOmitOptions
|
|
900
918
|
}
|
|
901
919
|
meta: {
|
|
902
|
-
modelProps: "user" | "token" | "credential" | "entity" | "integration" | "integrationMapping" | "sync" | "dataIdentifier" | "association" | "associationObject" | "process" | "state" | "websocketConnection" | "adminScriptExecution" | "scriptSchedule"
|
|
920
|
+
modelProps: "user" | "token" | "credential" | "entity" | "integration" | "integrationMapping" | "sync" | "dataIdentifier" | "association" | "associationObject" | "process" | "state" | "websocketConnection" | "adminScriptExecution" | "scriptSchedule" | "usageCounter"
|
|
903
921
|
txIsolationLevel: Prisma.TransactionIsolationLevel
|
|
904
922
|
}
|
|
905
923
|
model: {
|
|
@@ -2013,6 +2031,80 @@ export namespace Prisma {
|
|
|
2013
2031
|
}
|
|
2014
2032
|
}
|
|
2015
2033
|
}
|
|
2034
|
+
UsageCounter: {
|
|
2035
|
+
payload: Prisma.$UsageCounterPayload<ExtArgs>
|
|
2036
|
+
fields: Prisma.UsageCounterFieldRefs
|
|
2037
|
+
operations: {
|
|
2038
|
+
findUnique: {
|
|
2039
|
+
args: Prisma.UsageCounterFindUniqueArgs<ExtArgs>
|
|
2040
|
+
result: $Utils.PayloadToResult<Prisma.$UsageCounterPayload> | null
|
|
2041
|
+
}
|
|
2042
|
+
findUniqueOrThrow: {
|
|
2043
|
+
args: Prisma.UsageCounterFindUniqueOrThrowArgs<ExtArgs>
|
|
2044
|
+
result: $Utils.PayloadToResult<Prisma.$UsageCounterPayload>
|
|
2045
|
+
}
|
|
2046
|
+
findFirst: {
|
|
2047
|
+
args: Prisma.UsageCounterFindFirstArgs<ExtArgs>
|
|
2048
|
+
result: $Utils.PayloadToResult<Prisma.$UsageCounterPayload> | null
|
|
2049
|
+
}
|
|
2050
|
+
findFirstOrThrow: {
|
|
2051
|
+
args: Prisma.UsageCounterFindFirstOrThrowArgs<ExtArgs>
|
|
2052
|
+
result: $Utils.PayloadToResult<Prisma.$UsageCounterPayload>
|
|
2053
|
+
}
|
|
2054
|
+
findMany: {
|
|
2055
|
+
args: Prisma.UsageCounterFindManyArgs<ExtArgs>
|
|
2056
|
+
result: $Utils.PayloadToResult<Prisma.$UsageCounterPayload>[]
|
|
2057
|
+
}
|
|
2058
|
+
create: {
|
|
2059
|
+
args: Prisma.UsageCounterCreateArgs<ExtArgs>
|
|
2060
|
+
result: $Utils.PayloadToResult<Prisma.$UsageCounterPayload>
|
|
2061
|
+
}
|
|
2062
|
+
createMany: {
|
|
2063
|
+
args: Prisma.UsageCounterCreateManyArgs<ExtArgs>
|
|
2064
|
+
result: BatchPayload
|
|
2065
|
+
}
|
|
2066
|
+
createManyAndReturn: {
|
|
2067
|
+
args: Prisma.UsageCounterCreateManyAndReturnArgs<ExtArgs>
|
|
2068
|
+
result: $Utils.PayloadToResult<Prisma.$UsageCounterPayload>[]
|
|
2069
|
+
}
|
|
2070
|
+
delete: {
|
|
2071
|
+
args: Prisma.UsageCounterDeleteArgs<ExtArgs>
|
|
2072
|
+
result: $Utils.PayloadToResult<Prisma.$UsageCounterPayload>
|
|
2073
|
+
}
|
|
2074
|
+
update: {
|
|
2075
|
+
args: Prisma.UsageCounterUpdateArgs<ExtArgs>
|
|
2076
|
+
result: $Utils.PayloadToResult<Prisma.$UsageCounterPayload>
|
|
2077
|
+
}
|
|
2078
|
+
deleteMany: {
|
|
2079
|
+
args: Prisma.UsageCounterDeleteManyArgs<ExtArgs>
|
|
2080
|
+
result: BatchPayload
|
|
2081
|
+
}
|
|
2082
|
+
updateMany: {
|
|
2083
|
+
args: Prisma.UsageCounterUpdateManyArgs<ExtArgs>
|
|
2084
|
+
result: BatchPayload
|
|
2085
|
+
}
|
|
2086
|
+
updateManyAndReturn: {
|
|
2087
|
+
args: Prisma.UsageCounterUpdateManyAndReturnArgs<ExtArgs>
|
|
2088
|
+
result: $Utils.PayloadToResult<Prisma.$UsageCounterPayload>[]
|
|
2089
|
+
}
|
|
2090
|
+
upsert: {
|
|
2091
|
+
args: Prisma.UsageCounterUpsertArgs<ExtArgs>
|
|
2092
|
+
result: $Utils.PayloadToResult<Prisma.$UsageCounterPayload>
|
|
2093
|
+
}
|
|
2094
|
+
aggregate: {
|
|
2095
|
+
args: Prisma.UsageCounterAggregateArgs<ExtArgs>
|
|
2096
|
+
result: $Utils.Optional<AggregateUsageCounter>
|
|
2097
|
+
}
|
|
2098
|
+
groupBy: {
|
|
2099
|
+
args: Prisma.UsageCounterGroupByArgs<ExtArgs>
|
|
2100
|
+
result: $Utils.Optional<UsageCounterGroupByOutputType>[]
|
|
2101
|
+
}
|
|
2102
|
+
count: {
|
|
2103
|
+
args: Prisma.UsageCounterCountArgs<ExtArgs>
|
|
2104
|
+
result: $Utils.Optional<UsageCounterCountAggregateOutputType> | number
|
|
2105
|
+
}
|
|
2106
|
+
}
|
|
2107
|
+
}
|
|
2016
2108
|
}
|
|
2017
2109
|
} & {
|
|
2018
2110
|
other: {
|
|
@@ -2124,6 +2216,7 @@ export namespace Prisma {
|
|
|
2124
2216
|
websocketConnection?: WebsocketConnectionOmit
|
|
2125
2217
|
adminScriptExecution?: AdminScriptExecutionOmit
|
|
2126
2218
|
scriptSchedule?: ScriptScheduleOmit
|
|
2219
|
+
usageCounter?: UsageCounterOmit
|
|
2127
2220
|
}
|
|
2128
2221
|
|
|
2129
2222
|
/* Types for Logging */
|
|
@@ -19960,121 +20053,1193 @@ export namespace Prisma {
|
|
|
19960
20053
|
|
|
19961
20054
|
|
|
19962
20055
|
/**
|
|
19963
|
-
*
|
|
20056
|
+
* Model UsageCounter
|
|
19964
20057
|
*/
|
|
19965
20058
|
|
|
19966
|
-
export
|
|
19967
|
-
|
|
19968
|
-
|
|
19969
|
-
|
|
19970
|
-
|
|
19971
|
-
|
|
20059
|
+
export type AggregateUsageCounter = {
|
|
20060
|
+
_count: UsageCounterCountAggregateOutputType | null
|
|
20061
|
+
_avg: UsageCounterAvgAggregateOutputType | null
|
|
20062
|
+
_sum: UsageCounterSumAggregateOutputType | null
|
|
20063
|
+
_min: UsageCounterMinAggregateOutputType | null
|
|
20064
|
+
_max: UsageCounterMaxAggregateOutputType | null
|
|
20065
|
+
}
|
|
19972
20066
|
|
|
19973
|
-
export type
|
|
20067
|
+
export type UsageCounterAvgAggregateOutputType = {
|
|
20068
|
+
id: number | null
|
|
20069
|
+
value: number | null
|
|
20070
|
+
}
|
|
19974
20071
|
|
|
20072
|
+
export type UsageCounterSumAggregateOutputType = {
|
|
20073
|
+
id: number | null
|
|
20074
|
+
value: bigint | null
|
|
20075
|
+
}
|
|
19975
20076
|
|
|
19976
|
-
export
|
|
19977
|
-
id:
|
|
19978
|
-
|
|
19979
|
-
|
|
19980
|
-
|
|
19981
|
-
|
|
19982
|
-
|
|
19983
|
-
|
|
19984
|
-
|
|
19985
|
-
|
|
19986
|
-
appOrgId: 'appOrgId',
|
|
19987
|
-
name: 'name'
|
|
19988
|
-
};
|
|
20077
|
+
export type UsageCounterMinAggregateOutputType = {
|
|
20078
|
+
id: number | null
|
|
20079
|
+
integrationId: string | null
|
|
20080
|
+
integrationType: string | null
|
|
20081
|
+
metric: string | null
|
|
20082
|
+
window: string | null
|
|
20083
|
+
value: bigint | null
|
|
20084
|
+
createdAt: Date | null
|
|
20085
|
+
updatedAt: Date | null
|
|
20086
|
+
}
|
|
19989
20087
|
|
|
19990
|
-
export type
|
|
20088
|
+
export type UsageCounterMaxAggregateOutputType = {
|
|
20089
|
+
id: number | null
|
|
20090
|
+
integrationId: string | null
|
|
20091
|
+
integrationType: string | null
|
|
20092
|
+
metric: string | null
|
|
20093
|
+
window: string | null
|
|
20094
|
+
value: bigint | null
|
|
20095
|
+
createdAt: Date | null
|
|
20096
|
+
updatedAt: Date | null
|
|
20097
|
+
}
|
|
19991
20098
|
|
|
20099
|
+
export type UsageCounterCountAggregateOutputType = {
|
|
20100
|
+
id: number
|
|
20101
|
+
integrationId: number
|
|
20102
|
+
integrationType: number
|
|
20103
|
+
metric: number
|
|
20104
|
+
window: number
|
|
20105
|
+
value: number
|
|
20106
|
+
createdAt: number
|
|
20107
|
+
updatedAt: number
|
|
20108
|
+
_all: number
|
|
20109
|
+
}
|
|
19992
20110
|
|
|
19993
|
-
export const TokenScalarFieldEnum: {
|
|
19994
|
-
id: 'id',
|
|
19995
|
-
token: 'token',
|
|
19996
|
-
created: 'created',
|
|
19997
|
-
expires: 'expires',
|
|
19998
|
-
userId: 'userId'
|
|
19999
|
-
};
|
|
20000
20111
|
|
|
20001
|
-
export type
|
|
20112
|
+
export type UsageCounterAvgAggregateInputType = {
|
|
20113
|
+
id?: true
|
|
20114
|
+
value?: true
|
|
20115
|
+
}
|
|
20002
20116
|
|
|
20117
|
+
export type UsageCounterSumAggregateInputType = {
|
|
20118
|
+
id?: true
|
|
20119
|
+
value?: true
|
|
20120
|
+
}
|
|
20003
20121
|
|
|
20004
|
-
export
|
|
20005
|
-
id
|
|
20006
|
-
|
|
20007
|
-
|
|
20008
|
-
|
|
20009
|
-
|
|
20010
|
-
|
|
20011
|
-
|
|
20012
|
-
|
|
20122
|
+
export type UsageCounterMinAggregateInputType = {
|
|
20123
|
+
id?: true
|
|
20124
|
+
integrationId?: true
|
|
20125
|
+
integrationType?: true
|
|
20126
|
+
metric?: true
|
|
20127
|
+
window?: true
|
|
20128
|
+
value?: true
|
|
20129
|
+
createdAt?: true
|
|
20130
|
+
updatedAt?: true
|
|
20131
|
+
}
|
|
20013
20132
|
|
|
20014
|
-
export type
|
|
20133
|
+
export type UsageCounterMaxAggregateInputType = {
|
|
20134
|
+
id?: true
|
|
20135
|
+
integrationId?: true
|
|
20136
|
+
integrationType?: true
|
|
20137
|
+
metric?: true
|
|
20138
|
+
window?: true
|
|
20139
|
+
value?: true
|
|
20140
|
+
createdAt?: true
|
|
20141
|
+
updatedAt?: true
|
|
20142
|
+
}
|
|
20015
20143
|
|
|
20144
|
+
export type UsageCounterCountAggregateInputType = {
|
|
20145
|
+
id?: true
|
|
20146
|
+
integrationId?: true
|
|
20147
|
+
integrationType?: true
|
|
20148
|
+
metric?: true
|
|
20149
|
+
window?: true
|
|
20150
|
+
value?: true
|
|
20151
|
+
createdAt?: true
|
|
20152
|
+
updatedAt?: true
|
|
20153
|
+
_all?: true
|
|
20154
|
+
}
|
|
20016
20155
|
|
|
20017
|
-
export
|
|
20018
|
-
|
|
20019
|
-
|
|
20020
|
-
|
|
20021
|
-
|
|
20022
|
-
|
|
20023
|
-
|
|
20024
|
-
|
|
20025
|
-
|
|
20026
|
-
|
|
20027
|
-
|
|
20156
|
+
export type UsageCounterAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
20157
|
+
/**
|
|
20158
|
+
* Filter which UsageCounter to aggregate.
|
|
20159
|
+
*/
|
|
20160
|
+
where?: UsageCounterWhereInput
|
|
20161
|
+
/**
|
|
20162
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
20163
|
+
*
|
|
20164
|
+
* Determine the order of UsageCounters to fetch.
|
|
20165
|
+
*/
|
|
20166
|
+
orderBy?: UsageCounterOrderByWithRelationInput | UsageCounterOrderByWithRelationInput[]
|
|
20167
|
+
/**
|
|
20168
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
20169
|
+
*
|
|
20170
|
+
* Sets the start position
|
|
20171
|
+
*/
|
|
20172
|
+
cursor?: UsageCounterWhereUniqueInput
|
|
20173
|
+
/**
|
|
20174
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
20175
|
+
*
|
|
20176
|
+
* Take `±n` UsageCounters from the position of the cursor.
|
|
20177
|
+
*/
|
|
20178
|
+
take?: number
|
|
20179
|
+
/**
|
|
20180
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
20181
|
+
*
|
|
20182
|
+
* Skip the first `n` UsageCounters.
|
|
20183
|
+
*/
|
|
20184
|
+
skip?: number
|
|
20185
|
+
/**
|
|
20186
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
20187
|
+
*
|
|
20188
|
+
* Count returned UsageCounters
|
|
20189
|
+
**/
|
|
20190
|
+
_count?: true | UsageCounterCountAggregateInputType
|
|
20191
|
+
/**
|
|
20192
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
20193
|
+
*
|
|
20194
|
+
* Select which fields to average
|
|
20195
|
+
**/
|
|
20196
|
+
_avg?: UsageCounterAvgAggregateInputType
|
|
20197
|
+
/**
|
|
20198
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
20199
|
+
*
|
|
20200
|
+
* Select which fields to sum
|
|
20201
|
+
**/
|
|
20202
|
+
_sum?: UsageCounterSumAggregateInputType
|
|
20203
|
+
/**
|
|
20204
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
20205
|
+
*
|
|
20206
|
+
* Select which fields to find the minimum value
|
|
20207
|
+
**/
|
|
20208
|
+
_min?: UsageCounterMinAggregateInputType
|
|
20209
|
+
/**
|
|
20210
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
20211
|
+
*
|
|
20212
|
+
* Select which fields to find the maximum value
|
|
20213
|
+
**/
|
|
20214
|
+
_max?: UsageCounterMaxAggregateInputType
|
|
20215
|
+
}
|
|
20028
20216
|
|
|
20029
|
-
export type
|
|
20217
|
+
export type GetUsageCounterAggregateType<T extends UsageCounterAggregateArgs> = {
|
|
20218
|
+
[P in keyof T & keyof AggregateUsageCounter]: P extends '_count' | 'count'
|
|
20219
|
+
? T[P] extends true
|
|
20220
|
+
? number
|
|
20221
|
+
: GetScalarType<T[P], AggregateUsageCounter[P]>
|
|
20222
|
+
: GetScalarType<T[P], AggregateUsageCounter[P]>
|
|
20223
|
+
}
|
|
20030
20224
|
|
|
20031
20225
|
|
|
20032
|
-
export const IntegrationScalarFieldEnum: {
|
|
20033
|
-
id: 'id',
|
|
20034
|
-
userId: 'userId',
|
|
20035
|
-
status: 'status',
|
|
20036
|
-
config: 'config',
|
|
20037
|
-
version: 'version',
|
|
20038
|
-
errors: 'errors',
|
|
20039
|
-
warnings: 'warnings',
|
|
20040
|
-
info: 'info',
|
|
20041
|
-
logs: 'logs',
|
|
20042
|
-
createdAt: 'createdAt',
|
|
20043
|
-
updatedAt: 'updatedAt'
|
|
20044
|
-
};
|
|
20045
20226
|
|
|
20046
|
-
export type IntegrationScalarFieldEnum = (typeof IntegrationScalarFieldEnum)[keyof typeof IntegrationScalarFieldEnum]
|
|
20047
20227
|
|
|
20228
|
+
export type UsageCounterGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
20229
|
+
where?: UsageCounterWhereInput
|
|
20230
|
+
orderBy?: UsageCounterOrderByWithAggregationInput | UsageCounterOrderByWithAggregationInput[]
|
|
20231
|
+
by: UsageCounterScalarFieldEnum[] | UsageCounterScalarFieldEnum
|
|
20232
|
+
having?: UsageCounterScalarWhereWithAggregatesInput
|
|
20233
|
+
take?: number
|
|
20234
|
+
skip?: number
|
|
20235
|
+
_count?: UsageCounterCountAggregateInputType | true
|
|
20236
|
+
_avg?: UsageCounterAvgAggregateInputType
|
|
20237
|
+
_sum?: UsageCounterSumAggregateInputType
|
|
20238
|
+
_min?: UsageCounterMinAggregateInputType
|
|
20239
|
+
_max?: UsageCounterMaxAggregateInputType
|
|
20240
|
+
}
|
|
20048
20241
|
|
|
20049
|
-
export
|
|
20050
|
-
id:
|
|
20051
|
-
integrationId:
|
|
20052
|
-
|
|
20053
|
-
|
|
20054
|
-
|
|
20055
|
-
|
|
20056
|
-
|
|
20242
|
+
export type UsageCounterGroupByOutputType = {
|
|
20243
|
+
id: number
|
|
20244
|
+
integrationId: string
|
|
20245
|
+
integrationType: string
|
|
20246
|
+
metric: string
|
|
20247
|
+
window: string
|
|
20248
|
+
value: bigint
|
|
20249
|
+
createdAt: Date
|
|
20250
|
+
updatedAt: Date
|
|
20251
|
+
_count: UsageCounterCountAggregateOutputType | null
|
|
20252
|
+
_avg: UsageCounterAvgAggregateOutputType | null
|
|
20253
|
+
_sum: UsageCounterSumAggregateOutputType | null
|
|
20254
|
+
_min: UsageCounterMinAggregateOutputType | null
|
|
20255
|
+
_max: UsageCounterMaxAggregateOutputType | null
|
|
20256
|
+
}
|
|
20057
20257
|
|
|
20058
|
-
|
|
20258
|
+
type GetUsageCounterGroupByPayload<T extends UsageCounterGroupByArgs> = Prisma.PrismaPromise<
|
|
20259
|
+
Array<
|
|
20260
|
+
PickEnumerable<UsageCounterGroupByOutputType, T['by']> &
|
|
20261
|
+
{
|
|
20262
|
+
[P in ((keyof T) & (keyof UsageCounterGroupByOutputType))]: P extends '_count'
|
|
20263
|
+
? T[P] extends boolean
|
|
20264
|
+
? number
|
|
20265
|
+
: GetScalarType<T[P], UsageCounterGroupByOutputType[P]>
|
|
20266
|
+
: GetScalarType<T[P], UsageCounterGroupByOutputType[P]>
|
|
20267
|
+
}
|
|
20268
|
+
>
|
|
20269
|
+
>
|
|
20059
20270
|
|
|
20060
20271
|
|
|
20061
|
-
export
|
|
20062
|
-
id
|
|
20063
|
-
integrationId
|
|
20064
|
-
|
|
20065
|
-
|
|
20066
|
-
|
|
20272
|
+
export type UsageCounterSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
20273
|
+
id?: boolean
|
|
20274
|
+
integrationId?: boolean
|
|
20275
|
+
integrationType?: boolean
|
|
20276
|
+
metric?: boolean
|
|
20277
|
+
window?: boolean
|
|
20278
|
+
value?: boolean
|
|
20279
|
+
createdAt?: boolean
|
|
20280
|
+
updatedAt?: boolean
|
|
20281
|
+
}, ExtArgs["result"]["usageCounter"]>
|
|
20067
20282
|
|
|
20068
|
-
export type
|
|
20283
|
+
export type UsageCounterSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
20284
|
+
id?: boolean
|
|
20285
|
+
integrationId?: boolean
|
|
20286
|
+
integrationType?: boolean
|
|
20287
|
+
metric?: boolean
|
|
20288
|
+
window?: boolean
|
|
20289
|
+
value?: boolean
|
|
20290
|
+
createdAt?: boolean
|
|
20291
|
+
updatedAt?: boolean
|
|
20292
|
+
}, ExtArgs["result"]["usageCounter"]>
|
|
20069
20293
|
|
|
20294
|
+
export type UsageCounterSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
20295
|
+
id?: boolean
|
|
20296
|
+
integrationId?: boolean
|
|
20297
|
+
integrationType?: boolean
|
|
20298
|
+
metric?: boolean
|
|
20299
|
+
window?: boolean
|
|
20300
|
+
value?: boolean
|
|
20301
|
+
createdAt?: boolean
|
|
20302
|
+
updatedAt?: boolean
|
|
20303
|
+
}, ExtArgs["result"]["usageCounter"]>
|
|
20070
20304
|
|
|
20071
|
-
export
|
|
20072
|
-
id
|
|
20073
|
-
|
|
20074
|
-
|
|
20075
|
-
|
|
20076
|
-
|
|
20077
|
-
|
|
20305
|
+
export type UsageCounterSelectScalar = {
|
|
20306
|
+
id?: boolean
|
|
20307
|
+
integrationId?: boolean
|
|
20308
|
+
integrationType?: boolean
|
|
20309
|
+
metric?: boolean
|
|
20310
|
+
window?: boolean
|
|
20311
|
+
value?: boolean
|
|
20312
|
+
createdAt?: boolean
|
|
20313
|
+
updatedAt?: boolean
|
|
20314
|
+
}
|
|
20315
|
+
|
|
20316
|
+
export type UsageCounterOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "integrationId" | "integrationType" | "metric" | "window" | "value" | "createdAt" | "updatedAt", ExtArgs["result"]["usageCounter"]>
|
|
20317
|
+
|
|
20318
|
+
export type $UsageCounterPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
20319
|
+
name: "UsageCounter"
|
|
20320
|
+
objects: {}
|
|
20321
|
+
scalars: $Extensions.GetPayloadResult<{
|
|
20322
|
+
id: number
|
|
20323
|
+
integrationId: string
|
|
20324
|
+
integrationType: string
|
|
20325
|
+
metric: string
|
|
20326
|
+
window: string
|
|
20327
|
+
value: bigint
|
|
20328
|
+
createdAt: Date
|
|
20329
|
+
updatedAt: Date
|
|
20330
|
+
}, ExtArgs["result"]["usageCounter"]>
|
|
20331
|
+
composites: {}
|
|
20332
|
+
}
|
|
20333
|
+
|
|
20334
|
+
type UsageCounterGetPayload<S extends boolean | null | undefined | UsageCounterDefaultArgs> = $Result.GetResult<Prisma.$UsageCounterPayload, S>
|
|
20335
|
+
|
|
20336
|
+
type UsageCounterCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
20337
|
+
Omit<UsageCounterFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
20338
|
+
select?: UsageCounterCountAggregateInputType | true
|
|
20339
|
+
}
|
|
20340
|
+
|
|
20341
|
+
export interface UsageCounterDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
20342
|
+
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['UsageCounter'], meta: { name: 'UsageCounter' } }
|
|
20343
|
+
/**
|
|
20344
|
+
* Find zero or one UsageCounter that matches the filter.
|
|
20345
|
+
* @param {UsageCounterFindUniqueArgs} args - Arguments to find a UsageCounter
|
|
20346
|
+
* @example
|
|
20347
|
+
* // Get one UsageCounter
|
|
20348
|
+
* const usageCounter = await prisma.usageCounter.findUnique({
|
|
20349
|
+
* where: {
|
|
20350
|
+
* // ... provide filter here
|
|
20351
|
+
* }
|
|
20352
|
+
* })
|
|
20353
|
+
*/
|
|
20354
|
+
findUnique<T extends UsageCounterFindUniqueArgs>(args: SelectSubset<T, UsageCounterFindUniqueArgs<ExtArgs>>): Prisma__UsageCounterClient<$Result.GetResult<Prisma.$UsageCounterPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
20355
|
+
|
|
20356
|
+
/**
|
|
20357
|
+
* Find one UsageCounter that matches the filter or throw an error with `error.code='P2025'`
|
|
20358
|
+
* if no matches were found.
|
|
20359
|
+
* @param {UsageCounterFindUniqueOrThrowArgs} args - Arguments to find a UsageCounter
|
|
20360
|
+
* @example
|
|
20361
|
+
* // Get one UsageCounter
|
|
20362
|
+
* const usageCounter = await prisma.usageCounter.findUniqueOrThrow({
|
|
20363
|
+
* where: {
|
|
20364
|
+
* // ... provide filter here
|
|
20365
|
+
* }
|
|
20366
|
+
* })
|
|
20367
|
+
*/
|
|
20368
|
+
findUniqueOrThrow<T extends UsageCounterFindUniqueOrThrowArgs>(args: SelectSubset<T, UsageCounterFindUniqueOrThrowArgs<ExtArgs>>): Prisma__UsageCounterClient<$Result.GetResult<Prisma.$UsageCounterPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
20369
|
+
|
|
20370
|
+
/**
|
|
20371
|
+
* Find the first UsageCounter that matches the filter.
|
|
20372
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
20373
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
20374
|
+
* @param {UsageCounterFindFirstArgs} args - Arguments to find a UsageCounter
|
|
20375
|
+
* @example
|
|
20376
|
+
* // Get one UsageCounter
|
|
20377
|
+
* const usageCounter = await prisma.usageCounter.findFirst({
|
|
20378
|
+
* where: {
|
|
20379
|
+
* // ... provide filter here
|
|
20380
|
+
* }
|
|
20381
|
+
* })
|
|
20382
|
+
*/
|
|
20383
|
+
findFirst<T extends UsageCounterFindFirstArgs>(args?: SelectSubset<T, UsageCounterFindFirstArgs<ExtArgs>>): Prisma__UsageCounterClient<$Result.GetResult<Prisma.$UsageCounterPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
20384
|
+
|
|
20385
|
+
/**
|
|
20386
|
+
* Find the first UsageCounter that matches the filter or
|
|
20387
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
20388
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
20389
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
20390
|
+
* @param {UsageCounterFindFirstOrThrowArgs} args - Arguments to find a UsageCounter
|
|
20391
|
+
* @example
|
|
20392
|
+
* // Get one UsageCounter
|
|
20393
|
+
* const usageCounter = await prisma.usageCounter.findFirstOrThrow({
|
|
20394
|
+
* where: {
|
|
20395
|
+
* // ... provide filter here
|
|
20396
|
+
* }
|
|
20397
|
+
* })
|
|
20398
|
+
*/
|
|
20399
|
+
findFirstOrThrow<T extends UsageCounterFindFirstOrThrowArgs>(args?: SelectSubset<T, UsageCounterFindFirstOrThrowArgs<ExtArgs>>): Prisma__UsageCounterClient<$Result.GetResult<Prisma.$UsageCounterPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
20400
|
+
|
|
20401
|
+
/**
|
|
20402
|
+
* Find zero or more UsageCounters that matches the filter.
|
|
20403
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
20404
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
20405
|
+
* @param {UsageCounterFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
20406
|
+
* @example
|
|
20407
|
+
* // Get all UsageCounters
|
|
20408
|
+
* const usageCounters = await prisma.usageCounter.findMany()
|
|
20409
|
+
*
|
|
20410
|
+
* // Get first 10 UsageCounters
|
|
20411
|
+
* const usageCounters = await prisma.usageCounter.findMany({ take: 10 })
|
|
20412
|
+
*
|
|
20413
|
+
* // Only select the `id`
|
|
20414
|
+
* const usageCounterWithIdOnly = await prisma.usageCounter.findMany({ select: { id: true } })
|
|
20415
|
+
*
|
|
20416
|
+
*/
|
|
20417
|
+
findMany<T extends UsageCounterFindManyArgs>(args?: SelectSubset<T, UsageCounterFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$UsageCounterPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
20418
|
+
|
|
20419
|
+
/**
|
|
20420
|
+
* Create a UsageCounter.
|
|
20421
|
+
* @param {UsageCounterCreateArgs} args - Arguments to create a UsageCounter.
|
|
20422
|
+
* @example
|
|
20423
|
+
* // Create one UsageCounter
|
|
20424
|
+
* const UsageCounter = await prisma.usageCounter.create({
|
|
20425
|
+
* data: {
|
|
20426
|
+
* // ... data to create a UsageCounter
|
|
20427
|
+
* }
|
|
20428
|
+
* })
|
|
20429
|
+
*
|
|
20430
|
+
*/
|
|
20431
|
+
create<T extends UsageCounterCreateArgs>(args: SelectSubset<T, UsageCounterCreateArgs<ExtArgs>>): Prisma__UsageCounterClient<$Result.GetResult<Prisma.$UsageCounterPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
20432
|
+
|
|
20433
|
+
/**
|
|
20434
|
+
* Create many UsageCounters.
|
|
20435
|
+
* @param {UsageCounterCreateManyArgs} args - Arguments to create many UsageCounters.
|
|
20436
|
+
* @example
|
|
20437
|
+
* // Create many UsageCounters
|
|
20438
|
+
* const usageCounter = await prisma.usageCounter.createMany({
|
|
20439
|
+
* data: [
|
|
20440
|
+
* // ... provide data here
|
|
20441
|
+
* ]
|
|
20442
|
+
* })
|
|
20443
|
+
*
|
|
20444
|
+
*/
|
|
20445
|
+
createMany<T extends UsageCounterCreateManyArgs>(args?: SelectSubset<T, UsageCounterCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
20446
|
+
|
|
20447
|
+
/**
|
|
20448
|
+
* Create many UsageCounters and returns the data saved in the database.
|
|
20449
|
+
* @param {UsageCounterCreateManyAndReturnArgs} args - Arguments to create many UsageCounters.
|
|
20450
|
+
* @example
|
|
20451
|
+
* // Create many UsageCounters
|
|
20452
|
+
* const usageCounter = await prisma.usageCounter.createManyAndReturn({
|
|
20453
|
+
* data: [
|
|
20454
|
+
* // ... provide data here
|
|
20455
|
+
* ]
|
|
20456
|
+
* })
|
|
20457
|
+
*
|
|
20458
|
+
* // Create many UsageCounters and only return the `id`
|
|
20459
|
+
* const usageCounterWithIdOnly = await prisma.usageCounter.createManyAndReturn({
|
|
20460
|
+
* select: { id: true },
|
|
20461
|
+
* data: [
|
|
20462
|
+
* // ... provide data here
|
|
20463
|
+
* ]
|
|
20464
|
+
* })
|
|
20465
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
20466
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
20467
|
+
*
|
|
20468
|
+
*/
|
|
20469
|
+
createManyAndReturn<T extends UsageCounterCreateManyAndReturnArgs>(args?: SelectSubset<T, UsageCounterCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$UsageCounterPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
20470
|
+
|
|
20471
|
+
/**
|
|
20472
|
+
* Delete a UsageCounter.
|
|
20473
|
+
* @param {UsageCounterDeleteArgs} args - Arguments to delete one UsageCounter.
|
|
20474
|
+
* @example
|
|
20475
|
+
* // Delete one UsageCounter
|
|
20476
|
+
* const UsageCounter = await prisma.usageCounter.delete({
|
|
20477
|
+
* where: {
|
|
20478
|
+
* // ... filter to delete one UsageCounter
|
|
20479
|
+
* }
|
|
20480
|
+
* })
|
|
20481
|
+
*
|
|
20482
|
+
*/
|
|
20483
|
+
delete<T extends UsageCounterDeleteArgs>(args: SelectSubset<T, UsageCounterDeleteArgs<ExtArgs>>): Prisma__UsageCounterClient<$Result.GetResult<Prisma.$UsageCounterPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
20484
|
+
|
|
20485
|
+
/**
|
|
20486
|
+
* Update one UsageCounter.
|
|
20487
|
+
* @param {UsageCounterUpdateArgs} args - Arguments to update one UsageCounter.
|
|
20488
|
+
* @example
|
|
20489
|
+
* // Update one UsageCounter
|
|
20490
|
+
* const usageCounter = await prisma.usageCounter.update({
|
|
20491
|
+
* where: {
|
|
20492
|
+
* // ... provide filter here
|
|
20493
|
+
* },
|
|
20494
|
+
* data: {
|
|
20495
|
+
* // ... provide data here
|
|
20496
|
+
* }
|
|
20497
|
+
* })
|
|
20498
|
+
*
|
|
20499
|
+
*/
|
|
20500
|
+
update<T extends UsageCounterUpdateArgs>(args: SelectSubset<T, UsageCounterUpdateArgs<ExtArgs>>): Prisma__UsageCounterClient<$Result.GetResult<Prisma.$UsageCounterPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
20501
|
+
|
|
20502
|
+
/**
|
|
20503
|
+
* Delete zero or more UsageCounters.
|
|
20504
|
+
* @param {UsageCounterDeleteManyArgs} args - Arguments to filter UsageCounters to delete.
|
|
20505
|
+
* @example
|
|
20506
|
+
* // Delete a few UsageCounters
|
|
20507
|
+
* const { count } = await prisma.usageCounter.deleteMany({
|
|
20508
|
+
* where: {
|
|
20509
|
+
* // ... provide filter here
|
|
20510
|
+
* }
|
|
20511
|
+
* })
|
|
20512
|
+
*
|
|
20513
|
+
*/
|
|
20514
|
+
deleteMany<T extends UsageCounterDeleteManyArgs>(args?: SelectSubset<T, UsageCounterDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
20515
|
+
|
|
20516
|
+
/**
|
|
20517
|
+
* Update zero or more UsageCounters.
|
|
20518
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
20519
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
20520
|
+
* @param {UsageCounterUpdateManyArgs} args - Arguments to update one or more rows.
|
|
20521
|
+
* @example
|
|
20522
|
+
* // Update many UsageCounters
|
|
20523
|
+
* const usageCounter = await prisma.usageCounter.updateMany({
|
|
20524
|
+
* where: {
|
|
20525
|
+
* // ... provide filter here
|
|
20526
|
+
* },
|
|
20527
|
+
* data: {
|
|
20528
|
+
* // ... provide data here
|
|
20529
|
+
* }
|
|
20530
|
+
* })
|
|
20531
|
+
*
|
|
20532
|
+
*/
|
|
20533
|
+
updateMany<T extends UsageCounterUpdateManyArgs>(args: SelectSubset<T, UsageCounterUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
20534
|
+
|
|
20535
|
+
/**
|
|
20536
|
+
* Update zero or more UsageCounters and returns the data updated in the database.
|
|
20537
|
+
* @param {UsageCounterUpdateManyAndReturnArgs} args - Arguments to update many UsageCounters.
|
|
20538
|
+
* @example
|
|
20539
|
+
* // Update many UsageCounters
|
|
20540
|
+
* const usageCounter = await prisma.usageCounter.updateManyAndReturn({
|
|
20541
|
+
* where: {
|
|
20542
|
+
* // ... provide filter here
|
|
20543
|
+
* },
|
|
20544
|
+
* data: [
|
|
20545
|
+
* // ... provide data here
|
|
20546
|
+
* ]
|
|
20547
|
+
* })
|
|
20548
|
+
*
|
|
20549
|
+
* // Update zero or more UsageCounters and only return the `id`
|
|
20550
|
+
* const usageCounterWithIdOnly = await prisma.usageCounter.updateManyAndReturn({
|
|
20551
|
+
* select: { id: true },
|
|
20552
|
+
* where: {
|
|
20553
|
+
* // ... provide filter here
|
|
20554
|
+
* },
|
|
20555
|
+
* data: [
|
|
20556
|
+
* // ... provide data here
|
|
20557
|
+
* ]
|
|
20558
|
+
* })
|
|
20559
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
20560
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
20561
|
+
*
|
|
20562
|
+
*/
|
|
20563
|
+
updateManyAndReturn<T extends UsageCounterUpdateManyAndReturnArgs>(args: SelectSubset<T, UsageCounterUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$UsageCounterPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
20564
|
+
|
|
20565
|
+
/**
|
|
20566
|
+
* Create or update one UsageCounter.
|
|
20567
|
+
* @param {UsageCounterUpsertArgs} args - Arguments to update or create a UsageCounter.
|
|
20568
|
+
* @example
|
|
20569
|
+
* // Update or create a UsageCounter
|
|
20570
|
+
* const usageCounter = await prisma.usageCounter.upsert({
|
|
20571
|
+
* create: {
|
|
20572
|
+
* // ... data to create a UsageCounter
|
|
20573
|
+
* },
|
|
20574
|
+
* update: {
|
|
20575
|
+
* // ... in case it already exists, update
|
|
20576
|
+
* },
|
|
20577
|
+
* where: {
|
|
20578
|
+
* // ... the filter for the UsageCounter we want to update
|
|
20579
|
+
* }
|
|
20580
|
+
* })
|
|
20581
|
+
*/
|
|
20582
|
+
upsert<T extends UsageCounterUpsertArgs>(args: SelectSubset<T, UsageCounterUpsertArgs<ExtArgs>>): Prisma__UsageCounterClient<$Result.GetResult<Prisma.$UsageCounterPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
20583
|
+
|
|
20584
|
+
|
|
20585
|
+
/**
|
|
20586
|
+
* Count the number of UsageCounters.
|
|
20587
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
20588
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
20589
|
+
* @param {UsageCounterCountArgs} args - Arguments to filter UsageCounters to count.
|
|
20590
|
+
* @example
|
|
20591
|
+
* // Count the number of UsageCounters
|
|
20592
|
+
* const count = await prisma.usageCounter.count({
|
|
20593
|
+
* where: {
|
|
20594
|
+
* // ... the filter for the UsageCounters we want to count
|
|
20595
|
+
* }
|
|
20596
|
+
* })
|
|
20597
|
+
**/
|
|
20598
|
+
count<T extends UsageCounterCountArgs>(
|
|
20599
|
+
args?: Subset<T, UsageCounterCountArgs>,
|
|
20600
|
+
): Prisma.PrismaPromise<
|
|
20601
|
+
T extends $Utils.Record<'select', any>
|
|
20602
|
+
? T['select'] extends true
|
|
20603
|
+
? number
|
|
20604
|
+
: GetScalarType<T['select'], UsageCounterCountAggregateOutputType>
|
|
20605
|
+
: number
|
|
20606
|
+
>
|
|
20607
|
+
|
|
20608
|
+
/**
|
|
20609
|
+
* Allows you to perform aggregations operations on a UsageCounter.
|
|
20610
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
20611
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
20612
|
+
* @param {UsageCounterAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
20613
|
+
* @example
|
|
20614
|
+
* // Ordered by age ascending
|
|
20615
|
+
* // Where email contains prisma.io
|
|
20616
|
+
* // Limited to the 10 users
|
|
20617
|
+
* const aggregations = await prisma.user.aggregate({
|
|
20618
|
+
* _avg: {
|
|
20619
|
+
* age: true,
|
|
20620
|
+
* },
|
|
20621
|
+
* where: {
|
|
20622
|
+
* email: {
|
|
20623
|
+
* contains: "prisma.io",
|
|
20624
|
+
* },
|
|
20625
|
+
* },
|
|
20626
|
+
* orderBy: {
|
|
20627
|
+
* age: "asc",
|
|
20628
|
+
* },
|
|
20629
|
+
* take: 10,
|
|
20630
|
+
* })
|
|
20631
|
+
**/
|
|
20632
|
+
aggregate<T extends UsageCounterAggregateArgs>(args: Subset<T, UsageCounterAggregateArgs>): Prisma.PrismaPromise<GetUsageCounterAggregateType<T>>
|
|
20633
|
+
|
|
20634
|
+
/**
|
|
20635
|
+
* Group by UsageCounter.
|
|
20636
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
20637
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
20638
|
+
* @param {UsageCounterGroupByArgs} args - Group by arguments.
|
|
20639
|
+
* @example
|
|
20640
|
+
* // Group by city, order by createdAt, get count
|
|
20641
|
+
* const result = await prisma.user.groupBy({
|
|
20642
|
+
* by: ['city', 'createdAt'],
|
|
20643
|
+
* orderBy: {
|
|
20644
|
+
* createdAt: true
|
|
20645
|
+
* },
|
|
20646
|
+
* _count: {
|
|
20647
|
+
* _all: true
|
|
20648
|
+
* },
|
|
20649
|
+
* })
|
|
20650
|
+
*
|
|
20651
|
+
**/
|
|
20652
|
+
groupBy<
|
|
20653
|
+
T extends UsageCounterGroupByArgs,
|
|
20654
|
+
HasSelectOrTake extends Or<
|
|
20655
|
+
Extends<'skip', Keys<T>>,
|
|
20656
|
+
Extends<'take', Keys<T>>
|
|
20657
|
+
>,
|
|
20658
|
+
OrderByArg extends True extends HasSelectOrTake
|
|
20659
|
+
? { orderBy: UsageCounterGroupByArgs['orderBy'] }
|
|
20660
|
+
: { orderBy?: UsageCounterGroupByArgs['orderBy'] },
|
|
20661
|
+
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
20662
|
+
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
20663
|
+
ByValid extends Has<ByFields, OrderFields>,
|
|
20664
|
+
HavingFields extends GetHavingFields<T['having']>,
|
|
20665
|
+
HavingValid extends Has<ByFields, HavingFields>,
|
|
20666
|
+
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
20667
|
+
InputErrors extends ByEmpty extends True
|
|
20668
|
+
? `Error: "by" must not be empty.`
|
|
20669
|
+
: HavingValid extends False
|
|
20670
|
+
? {
|
|
20671
|
+
[P in HavingFields]: P extends ByFields
|
|
20672
|
+
? never
|
|
20673
|
+
: P extends string
|
|
20674
|
+
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
20675
|
+
: [
|
|
20676
|
+
Error,
|
|
20677
|
+
'Field ',
|
|
20678
|
+
P,
|
|
20679
|
+
` in "having" needs to be provided in "by"`,
|
|
20680
|
+
]
|
|
20681
|
+
}[HavingFields]
|
|
20682
|
+
: 'take' extends Keys<T>
|
|
20683
|
+
? 'orderBy' extends Keys<T>
|
|
20684
|
+
? ByValid extends True
|
|
20685
|
+
? {}
|
|
20686
|
+
: {
|
|
20687
|
+
[P in OrderFields]: P extends ByFields
|
|
20688
|
+
? never
|
|
20689
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
20690
|
+
}[OrderFields]
|
|
20691
|
+
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
20692
|
+
: 'skip' extends Keys<T>
|
|
20693
|
+
? 'orderBy' extends Keys<T>
|
|
20694
|
+
? ByValid extends True
|
|
20695
|
+
? {}
|
|
20696
|
+
: {
|
|
20697
|
+
[P in OrderFields]: P extends ByFields
|
|
20698
|
+
? never
|
|
20699
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
20700
|
+
}[OrderFields]
|
|
20701
|
+
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
20702
|
+
: ByValid extends True
|
|
20703
|
+
? {}
|
|
20704
|
+
: {
|
|
20705
|
+
[P in OrderFields]: P extends ByFields
|
|
20706
|
+
? never
|
|
20707
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
20708
|
+
}[OrderFields]
|
|
20709
|
+
>(args: SubsetIntersection<T, UsageCounterGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetUsageCounterGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
20710
|
+
/**
|
|
20711
|
+
* Fields of the UsageCounter model
|
|
20712
|
+
*/
|
|
20713
|
+
readonly fields: UsageCounterFieldRefs;
|
|
20714
|
+
}
|
|
20715
|
+
|
|
20716
|
+
/**
|
|
20717
|
+
* The delegate class that acts as a "Promise-like" for UsageCounter.
|
|
20718
|
+
* Why is this prefixed with `Prisma__`?
|
|
20719
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
20720
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
20721
|
+
*/
|
|
20722
|
+
export interface Prisma__UsageCounterClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
20723
|
+
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
20724
|
+
/**
|
|
20725
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
20726
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
20727
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
20728
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
20729
|
+
*/
|
|
20730
|
+
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>
|
|
20731
|
+
/**
|
|
20732
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
20733
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
20734
|
+
* @returns A Promise for the completion of the callback.
|
|
20735
|
+
*/
|
|
20736
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
20737
|
+
/**
|
|
20738
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
20739
|
+
* resolved value cannot be modified from the callback.
|
|
20740
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
20741
|
+
* @returns A Promise for the completion of the callback.
|
|
20742
|
+
*/
|
|
20743
|
+
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
20744
|
+
}
|
|
20745
|
+
|
|
20746
|
+
|
|
20747
|
+
|
|
20748
|
+
|
|
20749
|
+
/**
|
|
20750
|
+
* Fields of the UsageCounter model
|
|
20751
|
+
*/
|
|
20752
|
+
interface UsageCounterFieldRefs {
|
|
20753
|
+
readonly id: FieldRef<"UsageCounter", 'Int'>
|
|
20754
|
+
readonly integrationId: FieldRef<"UsageCounter", 'String'>
|
|
20755
|
+
readonly integrationType: FieldRef<"UsageCounter", 'String'>
|
|
20756
|
+
readonly metric: FieldRef<"UsageCounter", 'String'>
|
|
20757
|
+
readonly window: FieldRef<"UsageCounter", 'String'>
|
|
20758
|
+
readonly value: FieldRef<"UsageCounter", 'BigInt'>
|
|
20759
|
+
readonly createdAt: FieldRef<"UsageCounter", 'DateTime'>
|
|
20760
|
+
readonly updatedAt: FieldRef<"UsageCounter", 'DateTime'>
|
|
20761
|
+
}
|
|
20762
|
+
|
|
20763
|
+
|
|
20764
|
+
// Custom InputTypes
|
|
20765
|
+
/**
|
|
20766
|
+
* UsageCounter findUnique
|
|
20767
|
+
*/
|
|
20768
|
+
export type UsageCounterFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
20769
|
+
/**
|
|
20770
|
+
* Select specific fields to fetch from the UsageCounter
|
|
20771
|
+
*/
|
|
20772
|
+
select?: UsageCounterSelect<ExtArgs> | null
|
|
20773
|
+
/**
|
|
20774
|
+
* Omit specific fields from the UsageCounter
|
|
20775
|
+
*/
|
|
20776
|
+
omit?: UsageCounterOmit<ExtArgs> | null
|
|
20777
|
+
/**
|
|
20778
|
+
* Filter, which UsageCounter to fetch.
|
|
20779
|
+
*/
|
|
20780
|
+
where: UsageCounterWhereUniqueInput
|
|
20781
|
+
}
|
|
20782
|
+
|
|
20783
|
+
/**
|
|
20784
|
+
* UsageCounter findUniqueOrThrow
|
|
20785
|
+
*/
|
|
20786
|
+
export type UsageCounterFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
20787
|
+
/**
|
|
20788
|
+
* Select specific fields to fetch from the UsageCounter
|
|
20789
|
+
*/
|
|
20790
|
+
select?: UsageCounterSelect<ExtArgs> | null
|
|
20791
|
+
/**
|
|
20792
|
+
* Omit specific fields from the UsageCounter
|
|
20793
|
+
*/
|
|
20794
|
+
omit?: UsageCounterOmit<ExtArgs> | null
|
|
20795
|
+
/**
|
|
20796
|
+
* Filter, which UsageCounter to fetch.
|
|
20797
|
+
*/
|
|
20798
|
+
where: UsageCounterWhereUniqueInput
|
|
20799
|
+
}
|
|
20800
|
+
|
|
20801
|
+
/**
|
|
20802
|
+
* UsageCounter findFirst
|
|
20803
|
+
*/
|
|
20804
|
+
export type UsageCounterFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
20805
|
+
/**
|
|
20806
|
+
* Select specific fields to fetch from the UsageCounter
|
|
20807
|
+
*/
|
|
20808
|
+
select?: UsageCounterSelect<ExtArgs> | null
|
|
20809
|
+
/**
|
|
20810
|
+
* Omit specific fields from the UsageCounter
|
|
20811
|
+
*/
|
|
20812
|
+
omit?: UsageCounterOmit<ExtArgs> | null
|
|
20813
|
+
/**
|
|
20814
|
+
* Filter, which UsageCounter to fetch.
|
|
20815
|
+
*/
|
|
20816
|
+
where?: UsageCounterWhereInput
|
|
20817
|
+
/**
|
|
20818
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
20819
|
+
*
|
|
20820
|
+
* Determine the order of UsageCounters to fetch.
|
|
20821
|
+
*/
|
|
20822
|
+
orderBy?: UsageCounterOrderByWithRelationInput | UsageCounterOrderByWithRelationInput[]
|
|
20823
|
+
/**
|
|
20824
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
20825
|
+
*
|
|
20826
|
+
* Sets the position for searching for UsageCounters.
|
|
20827
|
+
*/
|
|
20828
|
+
cursor?: UsageCounterWhereUniqueInput
|
|
20829
|
+
/**
|
|
20830
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
20831
|
+
*
|
|
20832
|
+
* Take `±n` UsageCounters from the position of the cursor.
|
|
20833
|
+
*/
|
|
20834
|
+
take?: number
|
|
20835
|
+
/**
|
|
20836
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
20837
|
+
*
|
|
20838
|
+
* Skip the first `n` UsageCounters.
|
|
20839
|
+
*/
|
|
20840
|
+
skip?: number
|
|
20841
|
+
/**
|
|
20842
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
20843
|
+
*
|
|
20844
|
+
* Filter by unique combinations of UsageCounters.
|
|
20845
|
+
*/
|
|
20846
|
+
distinct?: UsageCounterScalarFieldEnum | UsageCounterScalarFieldEnum[]
|
|
20847
|
+
}
|
|
20848
|
+
|
|
20849
|
+
/**
|
|
20850
|
+
* UsageCounter findFirstOrThrow
|
|
20851
|
+
*/
|
|
20852
|
+
export type UsageCounterFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
20853
|
+
/**
|
|
20854
|
+
* Select specific fields to fetch from the UsageCounter
|
|
20855
|
+
*/
|
|
20856
|
+
select?: UsageCounterSelect<ExtArgs> | null
|
|
20857
|
+
/**
|
|
20858
|
+
* Omit specific fields from the UsageCounter
|
|
20859
|
+
*/
|
|
20860
|
+
omit?: UsageCounterOmit<ExtArgs> | null
|
|
20861
|
+
/**
|
|
20862
|
+
* Filter, which UsageCounter to fetch.
|
|
20863
|
+
*/
|
|
20864
|
+
where?: UsageCounterWhereInput
|
|
20865
|
+
/**
|
|
20866
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
20867
|
+
*
|
|
20868
|
+
* Determine the order of UsageCounters to fetch.
|
|
20869
|
+
*/
|
|
20870
|
+
orderBy?: UsageCounterOrderByWithRelationInput | UsageCounterOrderByWithRelationInput[]
|
|
20871
|
+
/**
|
|
20872
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
20873
|
+
*
|
|
20874
|
+
* Sets the position for searching for UsageCounters.
|
|
20875
|
+
*/
|
|
20876
|
+
cursor?: UsageCounterWhereUniqueInput
|
|
20877
|
+
/**
|
|
20878
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
20879
|
+
*
|
|
20880
|
+
* Take `±n` UsageCounters from the position of the cursor.
|
|
20881
|
+
*/
|
|
20882
|
+
take?: number
|
|
20883
|
+
/**
|
|
20884
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
20885
|
+
*
|
|
20886
|
+
* Skip the first `n` UsageCounters.
|
|
20887
|
+
*/
|
|
20888
|
+
skip?: number
|
|
20889
|
+
/**
|
|
20890
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
20891
|
+
*
|
|
20892
|
+
* Filter by unique combinations of UsageCounters.
|
|
20893
|
+
*/
|
|
20894
|
+
distinct?: UsageCounterScalarFieldEnum | UsageCounterScalarFieldEnum[]
|
|
20895
|
+
}
|
|
20896
|
+
|
|
20897
|
+
/**
|
|
20898
|
+
* UsageCounter findMany
|
|
20899
|
+
*/
|
|
20900
|
+
export type UsageCounterFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
20901
|
+
/**
|
|
20902
|
+
* Select specific fields to fetch from the UsageCounter
|
|
20903
|
+
*/
|
|
20904
|
+
select?: UsageCounterSelect<ExtArgs> | null
|
|
20905
|
+
/**
|
|
20906
|
+
* Omit specific fields from the UsageCounter
|
|
20907
|
+
*/
|
|
20908
|
+
omit?: UsageCounterOmit<ExtArgs> | null
|
|
20909
|
+
/**
|
|
20910
|
+
* Filter, which UsageCounters to fetch.
|
|
20911
|
+
*/
|
|
20912
|
+
where?: UsageCounterWhereInput
|
|
20913
|
+
/**
|
|
20914
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
20915
|
+
*
|
|
20916
|
+
* Determine the order of UsageCounters to fetch.
|
|
20917
|
+
*/
|
|
20918
|
+
orderBy?: UsageCounterOrderByWithRelationInput | UsageCounterOrderByWithRelationInput[]
|
|
20919
|
+
/**
|
|
20920
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
20921
|
+
*
|
|
20922
|
+
* Sets the position for listing UsageCounters.
|
|
20923
|
+
*/
|
|
20924
|
+
cursor?: UsageCounterWhereUniqueInput
|
|
20925
|
+
/**
|
|
20926
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
20927
|
+
*
|
|
20928
|
+
* Take `±n` UsageCounters from the position of the cursor.
|
|
20929
|
+
*/
|
|
20930
|
+
take?: number
|
|
20931
|
+
/**
|
|
20932
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
20933
|
+
*
|
|
20934
|
+
* Skip the first `n` UsageCounters.
|
|
20935
|
+
*/
|
|
20936
|
+
skip?: number
|
|
20937
|
+
distinct?: UsageCounterScalarFieldEnum | UsageCounterScalarFieldEnum[]
|
|
20938
|
+
}
|
|
20939
|
+
|
|
20940
|
+
/**
|
|
20941
|
+
* UsageCounter create
|
|
20942
|
+
*/
|
|
20943
|
+
export type UsageCounterCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
20944
|
+
/**
|
|
20945
|
+
* Select specific fields to fetch from the UsageCounter
|
|
20946
|
+
*/
|
|
20947
|
+
select?: UsageCounterSelect<ExtArgs> | null
|
|
20948
|
+
/**
|
|
20949
|
+
* Omit specific fields from the UsageCounter
|
|
20950
|
+
*/
|
|
20951
|
+
omit?: UsageCounterOmit<ExtArgs> | null
|
|
20952
|
+
/**
|
|
20953
|
+
* The data needed to create a UsageCounter.
|
|
20954
|
+
*/
|
|
20955
|
+
data: XOR<UsageCounterCreateInput, UsageCounterUncheckedCreateInput>
|
|
20956
|
+
}
|
|
20957
|
+
|
|
20958
|
+
/**
|
|
20959
|
+
* UsageCounter createMany
|
|
20960
|
+
*/
|
|
20961
|
+
export type UsageCounterCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
20962
|
+
/**
|
|
20963
|
+
* The data used to create many UsageCounters.
|
|
20964
|
+
*/
|
|
20965
|
+
data: UsageCounterCreateManyInput | UsageCounterCreateManyInput[]
|
|
20966
|
+
skipDuplicates?: boolean
|
|
20967
|
+
}
|
|
20968
|
+
|
|
20969
|
+
/**
|
|
20970
|
+
* UsageCounter createManyAndReturn
|
|
20971
|
+
*/
|
|
20972
|
+
export type UsageCounterCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
20973
|
+
/**
|
|
20974
|
+
* Select specific fields to fetch from the UsageCounter
|
|
20975
|
+
*/
|
|
20976
|
+
select?: UsageCounterSelectCreateManyAndReturn<ExtArgs> | null
|
|
20977
|
+
/**
|
|
20978
|
+
* Omit specific fields from the UsageCounter
|
|
20979
|
+
*/
|
|
20980
|
+
omit?: UsageCounterOmit<ExtArgs> | null
|
|
20981
|
+
/**
|
|
20982
|
+
* The data used to create many UsageCounters.
|
|
20983
|
+
*/
|
|
20984
|
+
data: UsageCounterCreateManyInput | UsageCounterCreateManyInput[]
|
|
20985
|
+
skipDuplicates?: boolean
|
|
20986
|
+
}
|
|
20987
|
+
|
|
20988
|
+
/**
|
|
20989
|
+
* UsageCounter update
|
|
20990
|
+
*/
|
|
20991
|
+
export type UsageCounterUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
20992
|
+
/**
|
|
20993
|
+
* Select specific fields to fetch from the UsageCounter
|
|
20994
|
+
*/
|
|
20995
|
+
select?: UsageCounterSelect<ExtArgs> | null
|
|
20996
|
+
/**
|
|
20997
|
+
* Omit specific fields from the UsageCounter
|
|
20998
|
+
*/
|
|
20999
|
+
omit?: UsageCounterOmit<ExtArgs> | null
|
|
21000
|
+
/**
|
|
21001
|
+
* The data needed to update a UsageCounter.
|
|
21002
|
+
*/
|
|
21003
|
+
data: XOR<UsageCounterUpdateInput, UsageCounterUncheckedUpdateInput>
|
|
21004
|
+
/**
|
|
21005
|
+
* Choose, which UsageCounter to update.
|
|
21006
|
+
*/
|
|
21007
|
+
where: UsageCounterWhereUniqueInput
|
|
21008
|
+
}
|
|
21009
|
+
|
|
21010
|
+
/**
|
|
21011
|
+
* UsageCounter updateMany
|
|
21012
|
+
*/
|
|
21013
|
+
export type UsageCounterUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
21014
|
+
/**
|
|
21015
|
+
* The data used to update UsageCounters.
|
|
21016
|
+
*/
|
|
21017
|
+
data: XOR<UsageCounterUpdateManyMutationInput, UsageCounterUncheckedUpdateManyInput>
|
|
21018
|
+
/**
|
|
21019
|
+
* Filter which UsageCounters to update
|
|
21020
|
+
*/
|
|
21021
|
+
where?: UsageCounterWhereInput
|
|
21022
|
+
/**
|
|
21023
|
+
* Limit how many UsageCounters to update.
|
|
21024
|
+
*/
|
|
21025
|
+
limit?: number
|
|
21026
|
+
}
|
|
21027
|
+
|
|
21028
|
+
/**
|
|
21029
|
+
* UsageCounter updateManyAndReturn
|
|
21030
|
+
*/
|
|
21031
|
+
export type UsageCounterUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
21032
|
+
/**
|
|
21033
|
+
* Select specific fields to fetch from the UsageCounter
|
|
21034
|
+
*/
|
|
21035
|
+
select?: UsageCounterSelectUpdateManyAndReturn<ExtArgs> | null
|
|
21036
|
+
/**
|
|
21037
|
+
* Omit specific fields from the UsageCounter
|
|
21038
|
+
*/
|
|
21039
|
+
omit?: UsageCounterOmit<ExtArgs> | null
|
|
21040
|
+
/**
|
|
21041
|
+
* The data used to update UsageCounters.
|
|
21042
|
+
*/
|
|
21043
|
+
data: XOR<UsageCounterUpdateManyMutationInput, UsageCounterUncheckedUpdateManyInput>
|
|
21044
|
+
/**
|
|
21045
|
+
* Filter which UsageCounters to update
|
|
21046
|
+
*/
|
|
21047
|
+
where?: UsageCounterWhereInput
|
|
21048
|
+
/**
|
|
21049
|
+
* Limit how many UsageCounters to update.
|
|
21050
|
+
*/
|
|
21051
|
+
limit?: number
|
|
21052
|
+
}
|
|
21053
|
+
|
|
21054
|
+
/**
|
|
21055
|
+
* UsageCounter upsert
|
|
21056
|
+
*/
|
|
21057
|
+
export type UsageCounterUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
21058
|
+
/**
|
|
21059
|
+
* Select specific fields to fetch from the UsageCounter
|
|
21060
|
+
*/
|
|
21061
|
+
select?: UsageCounterSelect<ExtArgs> | null
|
|
21062
|
+
/**
|
|
21063
|
+
* Omit specific fields from the UsageCounter
|
|
21064
|
+
*/
|
|
21065
|
+
omit?: UsageCounterOmit<ExtArgs> | null
|
|
21066
|
+
/**
|
|
21067
|
+
* The filter to search for the UsageCounter to update in case it exists.
|
|
21068
|
+
*/
|
|
21069
|
+
where: UsageCounterWhereUniqueInput
|
|
21070
|
+
/**
|
|
21071
|
+
* In case the UsageCounter found by the `where` argument doesn't exist, create a new UsageCounter with this data.
|
|
21072
|
+
*/
|
|
21073
|
+
create: XOR<UsageCounterCreateInput, UsageCounterUncheckedCreateInput>
|
|
21074
|
+
/**
|
|
21075
|
+
* In case the UsageCounter was found with the provided `where` argument, update it with this data.
|
|
21076
|
+
*/
|
|
21077
|
+
update: XOR<UsageCounterUpdateInput, UsageCounterUncheckedUpdateInput>
|
|
21078
|
+
}
|
|
21079
|
+
|
|
21080
|
+
/**
|
|
21081
|
+
* UsageCounter delete
|
|
21082
|
+
*/
|
|
21083
|
+
export type UsageCounterDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
21084
|
+
/**
|
|
21085
|
+
* Select specific fields to fetch from the UsageCounter
|
|
21086
|
+
*/
|
|
21087
|
+
select?: UsageCounterSelect<ExtArgs> | null
|
|
21088
|
+
/**
|
|
21089
|
+
* Omit specific fields from the UsageCounter
|
|
21090
|
+
*/
|
|
21091
|
+
omit?: UsageCounterOmit<ExtArgs> | null
|
|
21092
|
+
/**
|
|
21093
|
+
* Filter which UsageCounter to delete.
|
|
21094
|
+
*/
|
|
21095
|
+
where: UsageCounterWhereUniqueInput
|
|
21096
|
+
}
|
|
21097
|
+
|
|
21098
|
+
/**
|
|
21099
|
+
* UsageCounter deleteMany
|
|
21100
|
+
*/
|
|
21101
|
+
export type UsageCounterDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
21102
|
+
/**
|
|
21103
|
+
* Filter which UsageCounters to delete
|
|
21104
|
+
*/
|
|
21105
|
+
where?: UsageCounterWhereInput
|
|
21106
|
+
/**
|
|
21107
|
+
* Limit how many UsageCounters to delete.
|
|
21108
|
+
*/
|
|
21109
|
+
limit?: number
|
|
21110
|
+
}
|
|
21111
|
+
|
|
21112
|
+
/**
|
|
21113
|
+
* UsageCounter without action
|
|
21114
|
+
*/
|
|
21115
|
+
export type UsageCounterDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
21116
|
+
/**
|
|
21117
|
+
* Select specific fields to fetch from the UsageCounter
|
|
21118
|
+
*/
|
|
21119
|
+
select?: UsageCounterSelect<ExtArgs> | null
|
|
21120
|
+
/**
|
|
21121
|
+
* Omit specific fields from the UsageCounter
|
|
21122
|
+
*/
|
|
21123
|
+
omit?: UsageCounterOmit<ExtArgs> | null
|
|
21124
|
+
}
|
|
21125
|
+
|
|
21126
|
+
|
|
21127
|
+
/**
|
|
21128
|
+
* Enums
|
|
21129
|
+
*/
|
|
21130
|
+
|
|
21131
|
+
export const TransactionIsolationLevel: {
|
|
21132
|
+
ReadUncommitted: 'ReadUncommitted',
|
|
21133
|
+
ReadCommitted: 'ReadCommitted',
|
|
21134
|
+
RepeatableRead: 'RepeatableRead',
|
|
21135
|
+
Serializable: 'Serializable'
|
|
21136
|
+
};
|
|
21137
|
+
|
|
21138
|
+
export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel]
|
|
21139
|
+
|
|
21140
|
+
|
|
21141
|
+
export const UserScalarFieldEnum: {
|
|
21142
|
+
id: 'id',
|
|
21143
|
+
type: 'type',
|
|
21144
|
+
createdAt: 'createdAt',
|
|
21145
|
+
updatedAt: 'updatedAt',
|
|
21146
|
+
email: 'email',
|
|
21147
|
+
username: 'username',
|
|
21148
|
+
hashword: 'hashword',
|
|
21149
|
+
appUserId: 'appUserId',
|
|
21150
|
+
organizationId: 'organizationId',
|
|
21151
|
+
appOrgId: 'appOrgId',
|
|
21152
|
+
name: 'name'
|
|
21153
|
+
};
|
|
21154
|
+
|
|
21155
|
+
export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum]
|
|
21156
|
+
|
|
21157
|
+
|
|
21158
|
+
export const TokenScalarFieldEnum: {
|
|
21159
|
+
id: 'id',
|
|
21160
|
+
token: 'token',
|
|
21161
|
+
created: 'created',
|
|
21162
|
+
expires: 'expires',
|
|
21163
|
+
userId: 'userId'
|
|
21164
|
+
};
|
|
21165
|
+
|
|
21166
|
+
export type TokenScalarFieldEnum = (typeof TokenScalarFieldEnum)[keyof typeof TokenScalarFieldEnum]
|
|
21167
|
+
|
|
21168
|
+
|
|
21169
|
+
export const CredentialScalarFieldEnum: {
|
|
21170
|
+
id: 'id',
|
|
21171
|
+
userId: 'userId',
|
|
21172
|
+
authIsValid: 'authIsValid',
|
|
21173
|
+
externalId: 'externalId',
|
|
21174
|
+
data: 'data',
|
|
21175
|
+
createdAt: 'createdAt',
|
|
21176
|
+
updatedAt: 'updatedAt'
|
|
21177
|
+
};
|
|
21178
|
+
|
|
21179
|
+
export type CredentialScalarFieldEnum = (typeof CredentialScalarFieldEnum)[keyof typeof CredentialScalarFieldEnum]
|
|
21180
|
+
|
|
21181
|
+
|
|
21182
|
+
export const EntityScalarFieldEnum: {
|
|
21183
|
+
id: 'id',
|
|
21184
|
+
credentialId: 'credentialId',
|
|
21185
|
+
userId: 'userId',
|
|
21186
|
+
name: 'name',
|
|
21187
|
+
moduleName: 'moduleName',
|
|
21188
|
+
externalId: 'externalId',
|
|
21189
|
+
data: 'data',
|
|
21190
|
+
createdAt: 'createdAt',
|
|
21191
|
+
updatedAt: 'updatedAt'
|
|
21192
|
+
};
|
|
21193
|
+
|
|
21194
|
+
export type EntityScalarFieldEnum = (typeof EntityScalarFieldEnum)[keyof typeof EntityScalarFieldEnum]
|
|
21195
|
+
|
|
21196
|
+
|
|
21197
|
+
export const IntegrationScalarFieldEnum: {
|
|
21198
|
+
id: 'id',
|
|
21199
|
+
userId: 'userId',
|
|
21200
|
+
status: 'status',
|
|
21201
|
+
config: 'config',
|
|
21202
|
+
version: 'version',
|
|
21203
|
+
errors: 'errors',
|
|
21204
|
+
warnings: 'warnings',
|
|
21205
|
+
info: 'info',
|
|
21206
|
+
logs: 'logs',
|
|
21207
|
+
createdAt: 'createdAt',
|
|
21208
|
+
updatedAt: 'updatedAt'
|
|
21209
|
+
};
|
|
21210
|
+
|
|
21211
|
+
export type IntegrationScalarFieldEnum = (typeof IntegrationScalarFieldEnum)[keyof typeof IntegrationScalarFieldEnum]
|
|
21212
|
+
|
|
21213
|
+
|
|
21214
|
+
export const IntegrationMappingScalarFieldEnum: {
|
|
21215
|
+
id: 'id',
|
|
21216
|
+
integrationId: 'integrationId',
|
|
21217
|
+
sourceId: 'sourceId',
|
|
21218
|
+
mapping: 'mapping',
|
|
21219
|
+
createdAt: 'createdAt',
|
|
21220
|
+
updatedAt: 'updatedAt'
|
|
21221
|
+
};
|
|
21222
|
+
|
|
21223
|
+
export type IntegrationMappingScalarFieldEnum = (typeof IntegrationMappingScalarFieldEnum)[keyof typeof IntegrationMappingScalarFieldEnum]
|
|
21224
|
+
|
|
21225
|
+
|
|
21226
|
+
export const SyncScalarFieldEnum: {
|
|
21227
|
+
id: 'id',
|
|
21228
|
+
integrationId: 'integrationId',
|
|
21229
|
+
hash: 'hash',
|
|
21230
|
+
name: 'name'
|
|
21231
|
+
};
|
|
21232
|
+
|
|
21233
|
+
export type SyncScalarFieldEnum = (typeof SyncScalarFieldEnum)[keyof typeof SyncScalarFieldEnum]
|
|
21234
|
+
|
|
21235
|
+
|
|
21236
|
+
export const DataIdentifierScalarFieldEnum: {
|
|
21237
|
+
id: 'id',
|
|
21238
|
+
syncId: 'syncId',
|
|
21239
|
+
entityId: 'entityId',
|
|
21240
|
+
idData: 'idData',
|
|
21241
|
+
hash: 'hash'
|
|
21242
|
+
};
|
|
20078
21243
|
|
|
20079
21244
|
export type DataIdentifierScalarFieldEnum = (typeof DataIdentifierScalarFieldEnum)[keyof typeof DataIdentifierScalarFieldEnum]
|
|
20080
21245
|
|
|
@@ -20167,6 +21332,20 @@ export namespace Prisma {
|
|
|
20167
21332
|
export type ScriptScheduleScalarFieldEnum = (typeof ScriptScheduleScalarFieldEnum)[keyof typeof ScriptScheduleScalarFieldEnum]
|
|
20168
21333
|
|
|
20169
21334
|
|
|
21335
|
+
export const UsageCounterScalarFieldEnum: {
|
|
21336
|
+
id: 'id',
|
|
21337
|
+
integrationId: 'integrationId',
|
|
21338
|
+
integrationType: 'integrationType',
|
|
21339
|
+
metric: 'metric',
|
|
21340
|
+
window: 'window',
|
|
21341
|
+
value: 'value',
|
|
21342
|
+
createdAt: 'createdAt',
|
|
21343
|
+
updatedAt: 'updatedAt'
|
|
21344
|
+
};
|
|
21345
|
+
|
|
21346
|
+
export type UsageCounterScalarFieldEnum = (typeof UsageCounterScalarFieldEnum)[keyof typeof UsageCounterScalarFieldEnum]
|
|
21347
|
+
|
|
21348
|
+
|
|
20170
21349
|
export const SortOrder: {
|
|
20171
21350
|
asc: 'asc',
|
|
20172
21351
|
desc: 'desc'
|
|
@@ -20339,6 +21518,20 @@ export namespace Prisma {
|
|
|
20339
21518
|
|
|
20340
21519
|
|
|
20341
21520
|
|
|
21521
|
+
/**
|
|
21522
|
+
* Reference to a field of type 'BigInt'
|
|
21523
|
+
*/
|
|
21524
|
+
export type BigIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'BigInt'>
|
|
21525
|
+
|
|
21526
|
+
|
|
21527
|
+
|
|
21528
|
+
/**
|
|
21529
|
+
* Reference to a field of type 'BigInt[]'
|
|
21530
|
+
*/
|
|
21531
|
+
export type ListBigIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'BigInt[]'>
|
|
21532
|
+
|
|
21533
|
+
|
|
21534
|
+
|
|
20342
21535
|
/**
|
|
20343
21536
|
* Reference to a field of type 'Float'
|
|
20344
21537
|
*/
|
|
@@ -21427,6 +22620,76 @@ export namespace Prisma {
|
|
|
21427
22620
|
updatedAt?: DateTimeWithAggregatesFilter<"ScriptSchedule"> | Date | string
|
|
21428
22621
|
}
|
|
21429
22622
|
|
|
22623
|
+
export type UsageCounterWhereInput = {
|
|
22624
|
+
AND?: UsageCounterWhereInput | UsageCounterWhereInput[]
|
|
22625
|
+
OR?: UsageCounterWhereInput[]
|
|
22626
|
+
NOT?: UsageCounterWhereInput | UsageCounterWhereInput[]
|
|
22627
|
+
id?: IntFilter<"UsageCounter"> | number
|
|
22628
|
+
integrationId?: StringFilter<"UsageCounter"> | string
|
|
22629
|
+
integrationType?: StringFilter<"UsageCounter"> | string
|
|
22630
|
+
metric?: StringFilter<"UsageCounter"> | string
|
|
22631
|
+
window?: StringFilter<"UsageCounter"> | string
|
|
22632
|
+
value?: BigIntFilter<"UsageCounter"> | bigint | number
|
|
22633
|
+
createdAt?: DateTimeFilter<"UsageCounter"> | Date | string
|
|
22634
|
+
updatedAt?: DateTimeFilter<"UsageCounter"> | Date | string
|
|
22635
|
+
}
|
|
22636
|
+
|
|
22637
|
+
export type UsageCounterOrderByWithRelationInput = {
|
|
22638
|
+
id?: SortOrder
|
|
22639
|
+
integrationId?: SortOrder
|
|
22640
|
+
integrationType?: SortOrder
|
|
22641
|
+
metric?: SortOrder
|
|
22642
|
+
window?: SortOrder
|
|
22643
|
+
value?: SortOrder
|
|
22644
|
+
createdAt?: SortOrder
|
|
22645
|
+
updatedAt?: SortOrder
|
|
22646
|
+
}
|
|
22647
|
+
|
|
22648
|
+
export type UsageCounterWhereUniqueInput = Prisma.AtLeast<{
|
|
22649
|
+
id?: number
|
|
22650
|
+
integrationId_integrationType_metric_window?: UsageCounterIntegrationIdIntegrationTypeMetricWindowCompoundUniqueInput
|
|
22651
|
+
AND?: UsageCounterWhereInput | UsageCounterWhereInput[]
|
|
22652
|
+
OR?: UsageCounterWhereInput[]
|
|
22653
|
+
NOT?: UsageCounterWhereInput | UsageCounterWhereInput[]
|
|
22654
|
+
integrationId?: StringFilter<"UsageCounter"> | string
|
|
22655
|
+
integrationType?: StringFilter<"UsageCounter"> | string
|
|
22656
|
+
metric?: StringFilter<"UsageCounter"> | string
|
|
22657
|
+
window?: StringFilter<"UsageCounter"> | string
|
|
22658
|
+
value?: BigIntFilter<"UsageCounter"> | bigint | number
|
|
22659
|
+
createdAt?: DateTimeFilter<"UsageCounter"> | Date | string
|
|
22660
|
+
updatedAt?: DateTimeFilter<"UsageCounter"> | Date | string
|
|
22661
|
+
}, "id" | "integrationId_integrationType_metric_window">
|
|
22662
|
+
|
|
22663
|
+
export type UsageCounterOrderByWithAggregationInput = {
|
|
22664
|
+
id?: SortOrder
|
|
22665
|
+
integrationId?: SortOrder
|
|
22666
|
+
integrationType?: SortOrder
|
|
22667
|
+
metric?: SortOrder
|
|
22668
|
+
window?: SortOrder
|
|
22669
|
+
value?: SortOrder
|
|
22670
|
+
createdAt?: SortOrder
|
|
22671
|
+
updatedAt?: SortOrder
|
|
22672
|
+
_count?: UsageCounterCountOrderByAggregateInput
|
|
22673
|
+
_avg?: UsageCounterAvgOrderByAggregateInput
|
|
22674
|
+
_max?: UsageCounterMaxOrderByAggregateInput
|
|
22675
|
+
_min?: UsageCounterMinOrderByAggregateInput
|
|
22676
|
+
_sum?: UsageCounterSumOrderByAggregateInput
|
|
22677
|
+
}
|
|
22678
|
+
|
|
22679
|
+
export type UsageCounterScalarWhereWithAggregatesInput = {
|
|
22680
|
+
AND?: UsageCounterScalarWhereWithAggregatesInput | UsageCounterScalarWhereWithAggregatesInput[]
|
|
22681
|
+
OR?: UsageCounterScalarWhereWithAggregatesInput[]
|
|
22682
|
+
NOT?: UsageCounterScalarWhereWithAggregatesInput | UsageCounterScalarWhereWithAggregatesInput[]
|
|
22683
|
+
id?: IntWithAggregatesFilter<"UsageCounter"> | number
|
|
22684
|
+
integrationId?: StringWithAggregatesFilter<"UsageCounter"> | string
|
|
22685
|
+
integrationType?: StringWithAggregatesFilter<"UsageCounter"> | string
|
|
22686
|
+
metric?: StringWithAggregatesFilter<"UsageCounter"> | string
|
|
22687
|
+
window?: StringWithAggregatesFilter<"UsageCounter"> | string
|
|
22688
|
+
value?: BigIntWithAggregatesFilter<"UsageCounter"> | bigint | number
|
|
22689
|
+
createdAt?: DateTimeWithAggregatesFilter<"UsageCounter"> | Date | string
|
|
22690
|
+
updatedAt?: DateTimeWithAggregatesFilter<"UsageCounter"> | Date | string
|
|
22691
|
+
}
|
|
22692
|
+
|
|
21430
22693
|
export type UserCreateInput = {
|
|
21431
22694
|
type: $Enums.UserType
|
|
21432
22695
|
createdAt?: Date | string
|
|
@@ -22492,6 +23755,80 @@ export namespace Prisma {
|
|
|
22492
23755
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
22493
23756
|
}
|
|
22494
23757
|
|
|
23758
|
+
export type UsageCounterCreateInput = {
|
|
23759
|
+
integrationId: string
|
|
23760
|
+
integrationType: string
|
|
23761
|
+
metric: string
|
|
23762
|
+
window: string
|
|
23763
|
+
value?: bigint | number
|
|
23764
|
+
createdAt?: Date | string
|
|
23765
|
+
updatedAt?: Date | string
|
|
23766
|
+
}
|
|
23767
|
+
|
|
23768
|
+
export type UsageCounterUncheckedCreateInput = {
|
|
23769
|
+
id?: number
|
|
23770
|
+
integrationId: string
|
|
23771
|
+
integrationType: string
|
|
23772
|
+
metric: string
|
|
23773
|
+
window: string
|
|
23774
|
+
value?: bigint | number
|
|
23775
|
+
createdAt?: Date | string
|
|
23776
|
+
updatedAt?: Date | string
|
|
23777
|
+
}
|
|
23778
|
+
|
|
23779
|
+
export type UsageCounterUpdateInput = {
|
|
23780
|
+
integrationId?: StringFieldUpdateOperationsInput | string
|
|
23781
|
+
integrationType?: StringFieldUpdateOperationsInput | string
|
|
23782
|
+
metric?: StringFieldUpdateOperationsInput | string
|
|
23783
|
+
window?: StringFieldUpdateOperationsInput | string
|
|
23784
|
+
value?: BigIntFieldUpdateOperationsInput | bigint | number
|
|
23785
|
+
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
23786
|
+
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
23787
|
+
}
|
|
23788
|
+
|
|
23789
|
+
export type UsageCounterUncheckedUpdateInput = {
|
|
23790
|
+
id?: IntFieldUpdateOperationsInput | number
|
|
23791
|
+
integrationId?: StringFieldUpdateOperationsInput | string
|
|
23792
|
+
integrationType?: StringFieldUpdateOperationsInput | string
|
|
23793
|
+
metric?: StringFieldUpdateOperationsInput | string
|
|
23794
|
+
window?: StringFieldUpdateOperationsInput | string
|
|
23795
|
+
value?: BigIntFieldUpdateOperationsInput | bigint | number
|
|
23796
|
+
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
23797
|
+
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
23798
|
+
}
|
|
23799
|
+
|
|
23800
|
+
export type UsageCounterCreateManyInput = {
|
|
23801
|
+
id?: number
|
|
23802
|
+
integrationId: string
|
|
23803
|
+
integrationType: string
|
|
23804
|
+
metric: string
|
|
23805
|
+
window: string
|
|
23806
|
+
value?: bigint | number
|
|
23807
|
+
createdAt?: Date | string
|
|
23808
|
+
updatedAt?: Date | string
|
|
23809
|
+
}
|
|
23810
|
+
|
|
23811
|
+
export type UsageCounterUpdateManyMutationInput = {
|
|
23812
|
+
integrationId?: StringFieldUpdateOperationsInput | string
|
|
23813
|
+
integrationType?: StringFieldUpdateOperationsInput | string
|
|
23814
|
+
metric?: StringFieldUpdateOperationsInput | string
|
|
23815
|
+
window?: StringFieldUpdateOperationsInput | string
|
|
23816
|
+
value?: BigIntFieldUpdateOperationsInput | bigint | number
|
|
23817
|
+
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
23818
|
+
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
23819
|
+
}
|
|
23820
|
+
|
|
23821
|
+
export type UsageCounterUncheckedUpdateManyInput = {
|
|
23822
|
+
id?: IntFieldUpdateOperationsInput | number
|
|
23823
|
+
integrationId?: StringFieldUpdateOperationsInput | string
|
|
23824
|
+
integrationType?: StringFieldUpdateOperationsInput | string
|
|
23825
|
+
metric?: StringFieldUpdateOperationsInput | string
|
|
23826
|
+
window?: StringFieldUpdateOperationsInput | string
|
|
23827
|
+
value?: BigIntFieldUpdateOperationsInput | bigint | number
|
|
23828
|
+
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
23829
|
+
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
23830
|
+
}
|
|
23831
|
+
|
|
22495
23832
|
export type IntFilter<$PrismaModel = never> = {
|
|
22496
23833
|
equals?: number | IntFieldRefInput<$PrismaModel>
|
|
22497
23834
|
in?: number[] | ListIntFieldRefInput<$PrismaModel>
|
|
@@ -23610,6 +24947,83 @@ export namespace Prisma {
|
|
|
23610
24947
|
_max?: NestedBoolFilter<$PrismaModel>
|
|
23611
24948
|
}
|
|
23612
24949
|
|
|
24950
|
+
export type BigIntFilter<$PrismaModel = never> = {
|
|
24951
|
+
equals?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
24952
|
+
in?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel>
|
|
24953
|
+
notIn?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel>
|
|
24954
|
+
lt?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
24955
|
+
lte?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
24956
|
+
gt?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
24957
|
+
gte?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
24958
|
+
not?: NestedBigIntFilter<$PrismaModel> | bigint | number
|
|
24959
|
+
}
|
|
24960
|
+
|
|
24961
|
+
export type UsageCounterIntegrationIdIntegrationTypeMetricWindowCompoundUniqueInput = {
|
|
24962
|
+
integrationId: string
|
|
24963
|
+
integrationType: string
|
|
24964
|
+
metric: string
|
|
24965
|
+
window: string
|
|
24966
|
+
}
|
|
24967
|
+
|
|
24968
|
+
export type UsageCounterCountOrderByAggregateInput = {
|
|
24969
|
+
id?: SortOrder
|
|
24970
|
+
integrationId?: SortOrder
|
|
24971
|
+
integrationType?: SortOrder
|
|
24972
|
+
metric?: SortOrder
|
|
24973
|
+
window?: SortOrder
|
|
24974
|
+
value?: SortOrder
|
|
24975
|
+
createdAt?: SortOrder
|
|
24976
|
+
updatedAt?: SortOrder
|
|
24977
|
+
}
|
|
24978
|
+
|
|
24979
|
+
export type UsageCounterAvgOrderByAggregateInput = {
|
|
24980
|
+
id?: SortOrder
|
|
24981
|
+
value?: SortOrder
|
|
24982
|
+
}
|
|
24983
|
+
|
|
24984
|
+
export type UsageCounterMaxOrderByAggregateInput = {
|
|
24985
|
+
id?: SortOrder
|
|
24986
|
+
integrationId?: SortOrder
|
|
24987
|
+
integrationType?: SortOrder
|
|
24988
|
+
metric?: SortOrder
|
|
24989
|
+
window?: SortOrder
|
|
24990
|
+
value?: SortOrder
|
|
24991
|
+
createdAt?: SortOrder
|
|
24992
|
+
updatedAt?: SortOrder
|
|
24993
|
+
}
|
|
24994
|
+
|
|
24995
|
+
export type UsageCounterMinOrderByAggregateInput = {
|
|
24996
|
+
id?: SortOrder
|
|
24997
|
+
integrationId?: SortOrder
|
|
24998
|
+
integrationType?: SortOrder
|
|
24999
|
+
metric?: SortOrder
|
|
25000
|
+
window?: SortOrder
|
|
25001
|
+
value?: SortOrder
|
|
25002
|
+
createdAt?: SortOrder
|
|
25003
|
+
updatedAt?: SortOrder
|
|
25004
|
+
}
|
|
25005
|
+
|
|
25006
|
+
export type UsageCounterSumOrderByAggregateInput = {
|
|
25007
|
+
id?: SortOrder
|
|
25008
|
+
value?: SortOrder
|
|
25009
|
+
}
|
|
25010
|
+
|
|
25011
|
+
export type BigIntWithAggregatesFilter<$PrismaModel = never> = {
|
|
25012
|
+
equals?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
25013
|
+
in?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel>
|
|
25014
|
+
notIn?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel>
|
|
25015
|
+
lt?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
25016
|
+
lte?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
25017
|
+
gt?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
25018
|
+
gte?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
25019
|
+
not?: NestedBigIntWithAggregatesFilter<$PrismaModel> | bigint | number
|
|
25020
|
+
_count?: NestedIntFilter<$PrismaModel>
|
|
25021
|
+
_avg?: NestedFloatFilter<$PrismaModel>
|
|
25022
|
+
_sum?: NestedBigIntFilter<$PrismaModel>
|
|
25023
|
+
_min?: NestedBigIntFilter<$PrismaModel>
|
|
25024
|
+
_max?: NestedBigIntFilter<$PrismaModel>
|
|
25025
|
+
}
|
|
25026
|
+
|
|
23613
25027
|
export type UserCreateNestedOneWithoutMembersInput = {
|
|
23614
25028
|
create?: XOR<UserCreateWithoutMembersInput, UserUncheckedCreateWithoutMembersInput>
|
|
23615
25029
|
connectOrCreate?: UserCreateOrConnectWithoutMembersInput
|
|
@@ -24788,6 +26202,14 @@ export namespace Prisma {
|
|
|
24788
26202
|
set?: boolean
|
|
24789
26203
|
}
|
|
24790
26204
|
|
|
26205
|
+
export type BigIntFieldUpdateOperationsInput = {
|
|
26206
|
+
set?: bigint | number
|
|
26207
|
+
increment?: bigint | number
|
|
26208
|
+
decrement?: bigint | number
|
|
26209
|
+
multiply?: bigint | number
|
|
26210
|
+
divide?: bigint | number
|
|
26211
|
+
}
|
|
26212
|
+
|
|
24791
26213
|
export type NestedIntFilter<$PrismaModel = never> = {
|
|
24792
26214
|
equals?: number | IntFieldRefInput<$PrismaModel>
|
|
24793
26215
|
in?: number[] | ListIntFieldRefInput<$PrismaModel>
|
|
@@ -25116,6 +26538,33 @@ export namespace Prisma {
|
|
|
25116
26538
|
_max?: NestedBoolFilter<$PrismaModel>
|
|
25117
26539
|
}
|
|
25118
26540
|
|
|
26541
|
+
export type NestedBigIntFilter<$PrismaModel = never> = {
|
|
26542
|
+
equals?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
26543
|
+
in?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel>
|
|
26544
|
+
notIn?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel>
|
|
26545
|
+
lt?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
26546
|
+
lte?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
26547
|
+
gt?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
26548
|
+
gte?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
26549
|
+
not?: NestedBigIntFilter<$PrismaModel> | bigint | number
|
|
26550
|
+
}
|
|
26551
|
+
|
|
26552
|
+
export type NestedBigIntWithAggregatesFilter<$PrismaModel = never> = {
|
|
26553
|
+
equals?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
26554
|
+
in?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel>
|
|
26555
|
+
notIn?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel>
|
|
26556
|
+
lt?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
26557
|
+
lte?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
26558
|
+
gt?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
26559
|
+
gte?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
26560
|
+
not?: NestedBigIntWithAggregatesFilter<$PrismaModel> | bigint | number
|
|
26561
|
+
_count?: NestedIntFilter<$PrismaModel>
|
|
26562
|
+
_avg?: NestedFloatFilter<$PrismaModel>
|
|
26563
|
+
_sum?: NestedBigIntFilter<$PrismaModel>
|
|
26564
|
+
_min?: NestedBigIntFilter<$PrismaModel>
|
|
26565
|
+
_max?: NestedBigIntFilter<$PrismaModel>
|
|
26566
|
+
}
|
|
26567
|
+
|
|
25119
26568
|
export type UserCreateWithoutMembersInput = {
|
|
25120
26569
|
type: $Enums.UserType
|
|
25121
26570
|
createdAt?: Date | string
|