@friggframework/core 2.0.0--canary.622.faffe5f.0 → 2.0.0--canary.623.71305f2.0
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 +0 -40
- package/application/index.js +10 -15
- package/core/create-handler.js +10 -114
- package/generated/prisma-mongodb/edge.js +4 -16
- package/generated/prisma-mongodb/index-browser.js +1 -13
- package/generated/prisma-mongodb/index.d.ts +96 -1495
- package/generated/prisma-mongodb/index.js +4 -16
- package/generated/prisma-mongodb/package.json +1 -1
- package/generated/prisma-mongodb/schema.prisma +0 -24
- package/generated/prisma-mongodb/wasm.js +4 -16
- package/generated/prisma-postgresql/edge.js +4 -16
- package/generated/prisma-postgresql/index-browser.js +1 -13
- package/generated/prisma-postgresql/index.d.ts +91 -1541
- package/generated/prisma-postgresql/index.js +4 -16
- package/generated/prisma-postgresql/package.json +1 -1
- package/generated/prisma-postgresql/schema.prisma +0 -23
- package/generated/prisma-postgresql/wasm.js +4 -16
- package/handlers/app-definition-loader.js +3 -26
- package/handlers/integration-event-dispatcher.js +15 -34
- package/handlers/routers/integration-webhook-routers.js +7 -23
- package/index.js +9 -11
- package/integrations/integration-base.js +23 -88
- package/modules/module.js +15 -2
- package/modules/requester/requester.js +46 -111
- package/package.json +5 -12
- package/prisma-mongodb/schema.prisma +0 -24
- package/prisma-postgresql/schema.prisma +0 -23
- package/reporting/README.md +1 -8
- package/reporting/reporting-router.js +1 -16
- package/reporting/use-cases/list-integrations-report.js +6 -61
- package/application/commands/usage-commands.js +0 -77
- package/prisma-postgresql/migrations/20260705000000_create_usage_counter/migration.sql +0 -26
- package/telemetry/README.md +0 -317
- package/telemetry/bind-telemetry-context.js +0 -51
- package/telemetry/canonical-counters.js +0 -52
- package/telemetry/exporters/exporter-factory.js +0 -79
- package/telemetry/index.js +0 -56
- package/telemetry/instrument-handler.js +0 -82
- package/telemetry/no-op-telemetry.js +0 -66
- package/telemetry/north-star.js +0 -103
- package/telemetry/otel-telemetry.js +0 -215
- package/telemetry/plugin-subscribers-singleton.js +0 -51
- package/telemetry/plugin-subscribers.js +0 -77
- package/telemetry/telemetry-config.js +0 -118
- package/telemetry/telemetry-context.js +0 -40
- package/telemetry/telemetry-event-bus.js +0 -58
- package/telemetry/telemetry-service.js +0 -44
- package/telemetry/telemetry-singleton.js +0 -41
- package/telemetry/usage-rollup-singleton.js +0 -74
- package/telemetry/usage-rollup-subscriber.js +0 -116
- package/telemetry/usage-windows.js +0 -14
- package/usage/README.md +0 -54
- package/usage/index.js +0 -19
- package/usage/repositories/usage-repository-documentdb.js +0 -199
- package/usage/repositories/usage-repository-factory.js +0 -28
- package/usage/repositories/usage-repository-interface.js +0 -37
- package/usage/repositories/usage-repository-mongo.js +0 -12
- package/usage/repositories/usage-repository-postgres.js +0 -152
- package/usage/tracked-metrics.js +0 -38
|
@@ -96,14 +96,6 @@ 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
|
-
* ADR-011 durable usage counters. Deliberately isolated (ADR-010 Decision 3):
|
|
102
|
-
* NO userId and NO foreign key to Integration, so a user-scoped query can never
|
|
103
|
-
* return a usage row and usage history survives integration deletion. Not in
|
|
104
|
-
* the encryption registry — dimensions are bounded, non-sensitive.
|
|
105
|
-
*/
|
|
106
|
-
export type UsageCounter = $Result.DefaultSelection<Prisma.$UsageCounterPayload>
|
|
107
99
|
|
|
108
100
|
/**
|
|
109
101
|
* Enums
|
|
@@ -400,16 +392,6 @@ export class PrismaClient<
|
|
|
400
392
|
* ```
|
|
401
393
|
*/
|
|
402
394
|
get scriptSchedule(): Prisma.ScriptScheduleDelegate<ExtArgs, ClientOptions>;
|
|
403
|
-
|
|
404
|
-
/**
|
|
405
|
-
* `prisma.usageCounter`: Exposes CRUD operations for the **UsageCounter** model.
|
|
406
|
-
* Example usage:
|
|
407
|
-
* ```ts
|
|
408
|
-
* // Fetch zero or more UsageCounters
|
|
409
|
-
* const usageCounters = await prisma.usageCounter.findMany()
|
|
410
|
-
* ```
|
|
411
|
-
*/
|
|
412
|
-
get usageCounter(): Prisma.UsageCounterDelegate<ExtArgs, ClientOptions>;
|
|
413
395
|
}
|
|
414
396
|
|
|
415
397
|
export namespace Prisma {
|
|
@@ -865,8 +847,7 @@ export namespace Prisma {
|
|
|
865
847
|
State: 'State',
|
|
866
848
|
WebsocketConnection: 'WebsocketConnection',
|
|
867
849
|
AdminScriptExecution: 'AdminScriptExecution',
|
|
868
|
-
ScriptSchedule: 'ScriptSchedule'
|
|
869
|
-
UsageCounter: 'UsageCounter'
|
|
850
|
+
ScriptSchedule: 'ScriptSchedule'
|
|
870
851
|
};
|
|
871
852
|
|
|
872
853
|
export type ModelName = (typeof ModelName)[keyof typeof ModelName]
|
|
@@ -885,7 +866,7 @@ export namespace Prisma {
|
|
|
885
866
|
omit: GlobalOmitOptions
|
|
886
867
|
}
|
|
887
868
|
meta: {
|
|
888
|
-
modelProps: "user" | "token" | "credential" | "entity" | "integration" | "integrationMapping" | "process" | "sync" | "dataIdentifier" | "association" | "associationObject" | "state" | "websocketConnection" | "adminScriptExecution" | "scriptSchedule"
|
|
869
|
+
modelProps: "user" | "token" | "credential" | "entity" | "integration" | "integrationMapping" | "process" | "sync" | "dataIdentifier" | "association" | "associationObject" | "state" | "websocketConnection" | "adminScriptExecution" | "scriptSchedule"
|
|
889
870
|
txIsolationLevel: never
|
|
890
871
|
}
|
|
891
872
|
model: {
|
|
@@ -1999,80 +1980,6 @@ export namespace Prisma {
|
|
|
1999
1980
|
}
|
|
2000
1981
|
}
|
|
2001
1982
|
}
|
|
2002
|
-
UsageCounter: {
|
|
2003
|
-
payload: Prisma.$UsageCounterPayload<ExtArgs>
|
|
2004
|
-
fields: Prisma.UsageCounterFieldRefs
|
|
2005
|
-
operations: {
|
|
2006
|
-
findUnique: {
|
|
2007
|
-
args: Prisma.UsageCounterFindUniqueArgs<ExtArgs>
|
|
2008
|
-
result: $Utils.PayloadToResult<Prisma.$UsageCounterPayload> | null
|
|
2009
|
-
}
|
|
2010
|
-
findUniqueOrThrow: {
|
|
2011
|
-
args: Prisma.UsageCounterFindUniqueOrThrowArgs<ExtArgs>
|
|
2012
|
-
result: $Utils.PayloadToResult<Prisma.$UsageCounterPayload>
|
|
2013
|
-
}
|
|
2014
|
-
findFirst: {
|
|
2015
|
-
args: Prisma.UsageCounterFindFirstArgs<ExtArgs>
|
|
2016
|
-
result: $Utils.PayloadToResult<Prisma.$UsageCounterPayload> | null
|
|
2017
|
-
}
|
|
2018
|
-
findFirstOrThrow: {
|
|
2019
|
-
args: Prisma.UsageCounterFindFirstOrThrowArgs<ExtArgs>
|
|
2020
|
-
result: $Utils.PayloadToResult<Prisma.$UsageCounterPayload>
|
|
2021
|
-
}
|
|
2022
|
-
findMany: {
|
|
2023
|
-
args: Prisma.UsageCounterFindManyArgs<ExtArgs>
|
|
2024
|
-
result: $Utils.PayloadToResult<Prisma.$UsageCounterPayload>[]
|
|
2025
|
-
}
|
|
2026
|
-
create: {
|
|
2027
|
-
args: Prisma.UsageCounterCreateArgs<ExtArgs>
|
|
2028
|
-
result: $Utils.PayloadToResult<Prisma.$UsageCounterPayload>
|
|
2029
|
-
}
|
|
2030
|
-
createMany: {
|
|
2031
|
-
args: Prisma.UsageCounterCreateManyArgs<ExtArgs>
|
|
2032
|
-
result: BatchPayload
|
|
2033
|
-
}
|
|
2034
|
-
delete: {
|
|
2035
|
-
args: Prisma.UsageCounterDeleteArgs<ExtArgs>
|
|
2036
|
-
result: $Utils.PayloadToResult<Prisma.$UsageCounterPayload>
|
|
2037
|
-
}
|
|
2038
|
-
update: {
|
|
2039
|
-
args: Prisma.UsageCounterUpdateArgs<ExtArgs>
|
|
2040
|
-
result: $Utils.PayloadToResult<Prisma.$UsageCounterPayload>
|
|
2041
|
-
}
|
|
2042
|
-
deleteMany: {
|
|
2043
|
-
args: Prisma.UsageCounterDeleteManyArgs<ExtArgs>
|
|
2044
|
-
result: BatchPayload
|
|
2045
|
-
}
|
|
2046
|
-
updateMany: {
|
|
2047
|
-
args: Prisma.UsageCounterUpdateManyArgs<ExtArgs>
|
|
2048
|
-
result: BatchPayload
|
|
2049
|
-
}
|
|
2050
|
-
upsert: {
|
|
2051
|
-
args: Prisma.UsageCounterUpsertArgs<ExtArgs>
|
|
2052
|
-
result: $Utils.PayloadToResult<Prisma.$UsageCounterPayload>
|
|
2053
|
-
}
|
|
2054
|
-
aggregate: {
|
|
2055
|
-
args: Prisma.UsageCounterAggregateArgs<ExtArgs>
|
|
2056
|
-
result: $Utils.Optional<AggregateUsageCounter>
|
|
2057
|
-
}
|
|
2058
|
-
groupBy: {
|
|
2059
|
-
args: Prisma.UsageCounterGroupByArgs<ExtArgs>
|
|
2060
|
-
result: $Utils.Optional<UsageCounterGroupByOutputType>[]
|
|
2061
|
-
}
|
|
2062
|
-
findRaw: {
|
|
2063
|
-
args: Prisma.UsageCounterFindRawArgs<ExtArgs>
|
|
2064
|
-
result: JsonObject
|
|
2065
|
-
}
|
|
2066
|
-
aggregateRaw: {
|
|
2067
|
-
args: Prisma.UsageCounterAggregateRawArgs<ExtArgs>
|
|
2068
|
-
result: JsonObject
|
|
2069
|
-
}
|
|
2070
|
-
count: {
|
|
2071
|
-
args: Prisma.UsageCounterCountArgs<ExtArgs>
|
|
2072
|
-
result: $Utils.Optional<UsageCounterCountAggregateOutputType> | number
|
|
2073
|
-
}
|
|
2074
|
-
}
|
|
2075
|
-
}
|
|
2076
1983
|
}
|
|
2077
1984
|
} & {
|
|
2078
1985
|
other: {
|
|
@@ -2167,7 +2074,6 @@ export namespace Prisma {
|
|
|
2167
2074
|
websocketConnection?: WebsocketConnectionOmit
|
|
2168
2075
|
adminScriptExecution?: AdminScriptExecutionOmit
|
|
2169
2076
|
scriptSchedule?: ScriptScheduleOmit
|
|
2170
|
-
usageCounter?: UsageCounterOmit
|
|
2171
2077
|
}
|
|
2172
2078
|
|
|
2173
2079
|
/* Types for Logging */
|
|
@@ -18042,1123 +17948,124 @@ export namespace Prisma {
|
|
|
18042
17948
|
|
|
18043
17949
|
|
|
18044
17950
|
/**
|
|
18045
|
-
*
|
|
17951
|
+
* Enums
|
|
18046
17952
|
*/
|
|
18047
17953
|
|
|
18048
|
-
export
|
|
18049
|
-
|
|
18050
|
-
|
|
18051
|
-
|
|
18052
|
-
|
|
18053
|
-
|
|
18054
|
-
|
|
18055
|
-
|
|
18056
|
-
|
|
18057
|
-
|
|
18058
|
-
|
|
18059
|
-
|
|
18060
|
-
|
|
18061
|
-
value: bigint | null
|
|
18062
|
-
}
|
|
17954
|
+
export const UserScalarFieldEnum: {
|
|
17955
|
+
id: 'id',
|
|
17956
|
+
type: 'type',
|
|
17957
|
+
createdAt: 'createdAt',
|
|
17958
|
+
updatedAt: 'updatedAt',
|
|
17959
|
+
email: 'email',
|
|
17960
|
+
username: 'username',
|
|
17961
|
+
hashword: 'hashword',
|
|
17962
|
+
appUserId: 'appUserId',
|
|
17963
|
+
organizationId: 'organizationId',
|
|
17964
|
+
appOrgId: 'appOrgId',
|
|
17965
|
+
name: 'name'
|
|
17966
|
+
};
|
|
18063
17967
|
|
|
18064
|
-
export type
|
|
18065
|
-
id: string | null
|
|
18066
|
-
integrationId: string | null
|
|
18067
|
-
integrationType: string | null
|
|
18068
|
-
metric: string | null
|
|
18069
|
-
window: string | null
|
|
18070
|
-
value: bigint | null
|
|
18071
|
-
createdAt: Date | null
|
|
18072
|
-
updatedAt: Date | null
|
|
18073
|
-
}
|
|
17968
|
+
export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum]
|
|
18074
17969
|
|
|
18075
|
-
export type UsageCounterMaxAggregateOutputType = {
|
|
18076
|
-
id: string | null
|
|
18077
|
-
integrationId: string | null
|
|
18078
|
-
integrationType: string | null
|
|
18079
|
-
metric: string | null
|
|
18080
|
-
window: string | null
|
|
18081
|
-
value: bigint | null
|
|
18082
|
-
createdAt: Date | null
|
|
18083
|
-
updatedAt: Date | null
|
|
18084
|
-
}
|
|
18085
17970
|
|
|
18086
|
-
export
|
|
18087
|
-
id:
|
|
18088
|
-
|
|
18089
|
-
|
|
18090
|
-
|
|
18091
|
-
|
|
18092
|
-
|
|
18093
|
-
createdAt: number
|
|
18094
|
-
updatedAt: number
|
|
18095
|
-
_all: number
|
|
18096
|
-
}
|
|
17971
|
+
export const TokenScalarFieldEnum: {
|
|
17972
|
+
id: 'id',
|
|
17973
|
+
token: 'token',
|
|
17974
|
+
created: 'created',
|
|
17975
|
+
expires: 'expires',
|
|
17976
|
+
userId: 'userId'
|
|
17977
|
+
};
|
|
18097
17978
|
|
|
17979
|
+
export type TokenScalarFieldEnum = (typeof TokenScalarFieldEnum)[keyof typeof TokenScalarFieldEnum]
|
|
18098
17980
|
|
|
18099
|
-
export type UsageCounterAvgAggregateInputType = {
|
|
18100
|
-
value?: true
|
|
18101
|
-
}
|
|
18102
17981
|
|
|
18103
|
-
export
|
|
18104
|
-
|
|
18105
|
-
|
|
17982
|
+
export const CredentialScalarFieldEnum: {
|
|
17983
|
+
id: 'id',
|
|
17984
|
+
userId: 'userId',
|
|
17985
|
+
authIsValid: 'authIsValid',
|
|
17986
|
+
externalId: 'externalId',
|
|
17987
|
+
data: 'data',
|
|
17988
|
+
createdAt: 'createdAt',
|
|
17989
|
+
updatedAt: 'updatedAt'
|
|
17990
|
+
};
|
|
18106
17991
|
|
|
18107
|
-
export type
|
|
18108
|
-
id?: true
|
|
18109
|
-
integrationId?: true
|
|
18110
|
-
integrationType?: true
|
|
18111
|
-
metric?: true
|
|
18112
|
-
window?: true
|
|
18113
|
-
value?: true
|
|
18114
|
-
createdAt?: true
|
|
18115
|
-
updatedAt?: true
|
|
18116
|
-
}
|
|
17992
|
+
export type CredentialScalarFieldEnum = (typeof CredentialScalarFieldEnum)[keyof typeof CredentialScalarFieldEnum]
|
|
18117
17993
|
|
|
18118
|
-
export type UsageCounterMaxAggregateInputType = {
|
|
18119
|
-
id?: true
|
|
18120
|
-
integrationId?: true
|
|
18121
|
-
integrationType?: true
|
|
18122
|
-
metric?: true
|
|
18123
|
-
window?: true
|
|
18124
|
-
value?: true
|
|
18125
|
-
createdAt?: true
|
|
18126
|
-
updatedAt?: true
|
|
18127
|
-
}
|
|
18128
17994
|
|
|
18129
|
-
export
|
|
18130
|
-
id
|
|
18131
|
-
|
|
18132
|
-
|
|
18133
|
-
|
|
18134
|
-
|
|
18135
|
-
|
|
18136
|
-
|
|
18137
|
-
|
|
18138
|
-
|
|
18139
|
-
|
|
17995
|
+
export const EntityScalarFieldEnum: {
|
|
17996
|
+
id: 'id',
|
|
17997
|
+
credentialId: 'credentialId',
|
|
17998
|
+
userId: 'userId',
|
|
17999
|
+
name: 'name',
|
|
18000
|
+
moduleName: 'moduleName',
|
|
18001
|
+
externalId: 'externalId',
|
|
18002
|
+
data: 'data',
|
|
18003
|
+
createdAt: 'createdAt',
|
|
18004
|
+
updatedAt: 'updatedAt',
|
|
18005
|
+
integrationIds: 'integrationIds',
|
|
18006
|
+
syncIds: 'syncIds'
|
|
18007
|
+
};
|
|
18140
18008
|
|
|
18141
|
-
export type
|
|
18142
|
-
/**
|
|
18143
|
-
* Filter which UsageCounter to aggregate.
|
|
18144
|
-
*/
|
|
18145
|
-
where?: UsageCounterWhereInput
|
|
18146
|
-
/**
|
|
18147
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
18148
|
-
*
|
|
18149
|
-
* Determine the order of UsageCounters to fetch.
|
|
18150
|
-
*/
|
|
18151
|
-
orderBy?: UsageCounterOrderByWithRelationInput | UsageCounterOrderByWithRelationInput[]
|
|
18152
|
-
/**
|
|
18153
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
18154
|
-
*
|
|
18155
|
-
* Sets the start position
|
|
18156
|
-
*/
|
|
18157
|
-
cursor?: UsageCounterWhereUniqueInput
|
|
18158
|
-
/**
|
|
18159
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
18160
|
-
*
|
|
18161
|
-
* Take `±n` UsageCounters from the position of the cursor.
|
|
18162
|
-
*/
|
|
18163
|
-
take?: number
|
|
18164
|
-
/**
|
|
18165
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
18166
|
-
*
|
|
18167
|
-
* Skip the first `n` UsageCounters.
|
|
18168
|
-
*/
|
|
18169
|
-
skip?: number
|
|
18170
|
-
/**
|
|
18171
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
18172
|
-
*
|
|
18173
|
-
* Count returned UsageCounters
|
|
18174
|
-
**/
|
|
18175
|
-
_count?: true | UsageCounterCountAggregateInputType
|
|
18176
|
-
/**
|
|
18177
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
18178
|
-
*
|
|
18179
|
-
* Select which fields to average
|
|
18180
|
-
**/
|
|
18181
|
-
_avg?: UsageCounterAvgAggregateInputType
|
|
18182
|
-
/**
|
|
18183
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
18184
|
-
*
|
|
18185
|
-
* Select which fields to sum
|
|
18186
|
-
**/
|
|
18187
|
-
_sum?: UsageCounterSumAggregateInputType
|
|
18188
|
-
/**
|
|
18189
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
18190
|
-
*
|
|
18191
|
-
* Select which fields to find the minimum value
|
|
18192
|
-
**/
|
|
18193
|
-
_min?: UsageCounterMinAggregateInputType
|
|
18194
|
-
/**
|
|
18195
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
18196
|
-
*
|
|
18197
|
-
* Select which fields to find the maximum value
|
|
18198
|
-
**/
|
|
18199
|
-
_max?: UsageCounterMaxAggregateInputType
|
|
18200
|
-
}
|
|
18009
|
+
export type EntityScalarFieldEnum = (typeof EntityScalarFieldEnum)[keyof typeof EntityScalarFieldEnum]
|
|
18201
18010
|
|
|
18202
|
-
export type GetUsageCounterAggregateType<T extends UsageCounterAggregateArgs> = {
|
|
18203
|
-
[P in keyof T & keyof AggregateUsageCounter]: P extends '_count' | 'count'
|
|
18204
|
-
? T[P] extends true
|
|
18205
|
-
? number
|
|
18206
|
-
: GetScalarType<T[P], AggregateUsageCounter[P]>
|
|
18207
|
-
: GetScalarType<T[P], AggregateUsageCounter[P]>
|
|
18208
|
-
}
|
|
18209
18011
|
|
|
18012
|
+
export const IntegrationScalarFieldEnum: {
|
|
18013
|
+
id: 'id',
|
|
18014
|
+
userId: 'userId',
|
|
18015
|
+
status: 'status',
|
|
18016
|
+
config: 'config',
|
|
18017
|
+
version: 'version',
|
|
18018
|
+
entityIds: 'entityIds',
|
|
18019
|
+
errors: 'errors',
|
|
18020
|
+
warnings: 'warnings',
|
|
18021
|
+
info: 'info',
|
|
18022
|
+
logs: 'logs',
|
|
18023
|
+
createdAt: 'createdAt',
|
|
18024
|
+
updatedAt: 'updatedAt'
|
|
18025
|
+
};
|
|
18210
18026
|
|
|
18027
|
+
export type IntegrationScalarFieldEnum = (typeof IntegrationScalarFieldEnum)[keyof typeof IntegrationScalarFieldEnum]
|
|
18211
18028
|
|
|
18212
18029
|
|
|
18213
|
-
export
|
|
18214
|
-
|
|
18215
|
-
|
|
18216
|
-
|
|
18217
|
-
|
|
18218
|
-
|
|
18219
|
-
|
|
18220
|
-
|
|
18221
|
-
_avg?: UsageCounterAvgAggregateInputType
|
|
18222
|
-
_sum?: UsageCounterSumAggregateInputType
|
|
18223
|
-
_min?: UsageCounterMinAggregateInputType
|
|
18224
|
-
_max?: UsageCounterMaxAggregateInputType
|
|
18225
|
-
}
|
|
18030
|
+
export const IntegrationMappingScalarFieldEnum: {
|
|
18031
|
+
id: 'id',
|
|
18032
|
+
integrationId: 'integrationId',
|
|
18033
|
+
sourceId: 'sourceId',
|
|
18034
|
+
mapping: 'mapping',
|
|
18035
|
+
createdAt: 'createdAt',
|
|
18036
|
+
updatedAt: 'updatedAt'
|
|
18037
|
+
};
|
|
18226
18038
|
|
|
18227
|
-
export type
|
|
18228
|
-
id: string
|
|
18229
|
-
integrationId: string
|
|
18230
|
-
integrationType: string
|
|
18231
|
-
metric: string
|
|
18232
|
-
window: string
|
|
18233
|
-
value: bigint
|
|
18234
|
-
createdAt: Date
|
|
18235
|
-
updatedAt: Date
|
|
18236
|
-
_count: UsageCounterCountAggregateOutputType | null
|
|
18237
|
-
_avg: UsageCounterAvgAggregateOutputType | null
|
|
18238
|
-
_sum: UsageCounterSumAggregateOutputType | null
|
|
18239
|
-
_min: UsageCounterMinAggregateOutputType | null
|
|
18240
|
-
_max: UsageCounterMaxAggregateOutputType | null
|
|
18241
|
-
}
|
|
18039
|
+
export type IntegrationMappingScalarFieldEnum = (typeof IntegrationMappingScalarFieldEnum)[keyof typeof IntegrationMappingScalarFieldEnum]
|
|
18242
18040
|
|
|
18243
|
-
type GetUsageCounterGroupByPayload<T extends UsageCounterGroupByArgs> = Prisma.PrismaPromise<
|
|
18244
|
-
Array<
|
|
18245
|
-
PickEnumerable<UsageCounterGroupByOutputType, T['by']> &
|
|
18246
|
-
{
|
|
18247
|
-
[P in ((keyof T) & (keyof UsageCounterGroupByOutputType))]: P extends '_count'
|
|
18248
|
-
? T[P] extends boolean
|
|
18249
|
-
? number
|
|
18250
|
-
: GetScalarType<T[P], UsageCounterGroupByOutputType[P]>
|
|
18251
|
-
: GetScalarType<T[P], UsageCounterGroupByOutputType[P]>
|
|
18252
|
-
}
|
|
18253
|
-
>
|
|
18254
|
-
>
|
|
18255
18041
|
|
|
18042
|
+
export const ProcessScalarFieldEnum: {
|
|
18043
|
+
id: 'id',
|
|
18044
|
+
userId: 'userId',
|
|
18045
|
+
integrationId: 'integrationId',
|
|
18046
|
+
name: 'name',
|
|
18047
|
+
type: 'type',
|
|
18048
|
+
state: 'state',
|
|
18049
|
+
context: 'context',
|
|
18050
|
+
results: 'results',
|
|
18051
|
+
childProcesses: 'childProcesses',
|
|
18052
|
+
parentProcessId: 'parentProcessId',
|
|
18053
|
+
createdAt: 'createdAt',
|
|
18054
|
+
updatedAt: 'updatedAt'
|
|
18055
|
+
};
|
|
18256
18056
|
|
|
18257
|
-
export type
|
|
18258
|
-
id?: boolean
|
|
18259
|
-
integrationId?: boolean
|
|
18260
|
-
integrationType?: boolean
|
|
18261
|
-
metric?: boolean
|
|
18262
|
-
window?: boolean
|
|
18263
|
-
value?: boolean
|
|
18264
|
-
createdAt?: boolean
|
|
18265
|
-
updatedAt?: boolean
|
|
18266
|
-
}, ExtArgs["result"]["usageCounter"]>
|
|
18057
|
+
export type ProcessScalarFieldEnum = (typeof ProcessScalarFieldEnum)[keyof typeof ProcessScalarFieldEnum]
|
|
18267
18058
|
|
|
18268
18059
|
|
|
18060
|
+
export const SyncScalarFieldEnum: {
|
|
18061
|
+
id: 'id',
|
|
18062
|
+
integrationId: 'integrationId',
|
|
18063
|
+
entityIds: 'entityIds',
|
|
18064
|
+
hash: 'hash',
|
|
18065
|
+
name: 'name'
|
|
18066
|
+
};
|
|
18269
18067
|
|
|
18270
|
-
export type
|
|
18271
|
-
id?: boolean
|
|
18272
|
-
integrationId?: boolean
|
|
18273
|
-
integrationType?: boolean
|
|
18274
|
-
metric?: boolean
|
|
18275
|
-
window?: boolean
|
|
18276
|
-
value?: boolean
|
|
18277
|
-
createdAt?: boolean
|
|
18278
|
-
updatedAt?: boolean
|
|
18279
|
-
}
|
|
18280
|
-
|
|
18281
|
-
export type UsageCounterOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "integrationId" | "integrationType" | "metric" | "window" | "value" | "createdAt" | "updatedAt", ExtArgs["result"]["usageCounter"]>
|
|
18282
|
-
|
|
18283
|
-
export type $UsageCounterPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
18284
|
-
name: "UsageCounter"
|
|
18285
|
-
objects: {}
|
|
18286
|
-
scalars: $Extensions.GetPayloadResult<{
|
|
18287
|
-
id: string
|
|
18288
|
-
integrationId: string
|
|
18289
|
-
integrationType: string
|
|
18290
|
-
metric: string
|
|
18291
|
-
window: string
|
|
18292
|
-
value: bigint
|
|
18293
|
-
createdAt: Date
|
|
18294
|
-
updatedAt: Date
|
|
18295
|
-
}, ExtArgs["result"]["usageCounter"]>
|
|
18296
|
-
composites: {}
|
|
18297
|
-
}
|
|
18298
|
-
|
|
18299
|
-
type UsageCounterGetPayload<S extends boolean | null | undefined | UsageCounterDefaultArgs> = $Result.GetResult<Prisma.$UsageCounterPayload, S>
|
|
18300
|
-
|
|
18301
|
-
type UsageCounterCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
18302
|
-
Omit<UsageCounterFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
18303
|
-
select?: UsageCounterCountAggregateInputType | true
|
|
18304
|
-
}
|
|
18305
|
-
|
|
18306
|
-
export interface UsageCounterDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
18307
|
-
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['UsageCounter'], meta: { name: 'UsageCounter' } }
|
|
18308
|
-
/**
|
|
18309
|
-
* Find zero or one UsageCounter that matches the filter.
|
|
18310
|
-
* @param {UsageCounterFindUniqueArgs} args - Arguments to find a UsageCounter
|
|
18311
|
-
* @example
|
|
18312
|
-
* // Get one UsageCounter
|
|
18313
|
-
* const usageCounter = await prisma.usageCounter.findUnique({
|
|
18314
|
-
* where: {
|
|
18315
|
-
* // ... provide filter here
|
|
18316
|
-
* }
|
|
18317
|
-
* })
|
|
18318
|
-
*/
|
|
18319
|
-
findUnique<T extends UsageCounterFindUniqueArgs>(args: SelectSubset<T, UsageCounterFindUniqueArgs<ExtArgs>>): Prisma__UsageCounterClient<$Result.GetResult<Prisma.$UsageCounterPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
18320
|
-
|
|
18321
|
-
/**
|
|
18322
|
-
* Find one UsageCounter that matches the filter or throw an error with `error.code='P2025'`
|
|
18323
|
-
* if no matches were found.
|
|
18324
|
-
* @param {UsageCounterFindUniqueOrThrowArgs} args - Arguments to find a UsageCounter
|
|
18325
|
-
* @example
|
|
18326
|
-
* // Get one UsageCounter
|
|
18327
|
-
* const usageCounter = await prisma.usageCounter.findUniqueOrThrow({
|
|
18328
|
-
* where: {
|
|
18329
|
-
* // ... provide filter here
|
|
18330
|
-
* }
|
|
18331
|
-
* })
|
|
18332
|
-
*/
|
|
18333
|
-
findUniqueOrThrow<T extends UsageCounterFindUniqueOrThrowArgs>(args: SelectSubset<T, UsageCounterFindUniqueOrThrowArgs<ExtArgs>>): Prisma__UsageCounterClient<$Result.GetResult<Prisma.$UsageCounterPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
18334
|
-
|
|
18335
|
-
/**
|
|
18336
|
-
* Find the first UsageCounter that matches the filter.
|
|
18337
|
-
* Note, that providing `undefined` is treated as the value not being there.
|
|
18338
|
-
* Read more here: https://pris.ly/d/null-undefined
|
|
18339
|
-
* @param {UsageCounterFindFirstArgs} args - Arguments to find a UsageCounter
|
|
18340
|
-
* @example
|
|
18341
|
-
* // Get one UsageCounter
|
|
18342
|
-
* const usageCounter = await prisma.usageCounter.findFirst({
|
|
18343
|
-
* where: {
|
|
18344
|
-
* // ... provide filter here
|
|
18345
|
-
* }
|
|
18346
|
-
* })
|
|
18347
|
-
*/
|
|
18348
|
-
findFirst<T extends UsageCounterFindFirstArgs>(args?: SelectSubset<T, UsageCounterFindFirstArgs<ExtArgs>>): Prisma__UsageCounterClient<$Result.GetResult<Prisma.$UsageCounterPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
18349
|
-
|
|
18350
|
-
/**
|
|
18351
|
-
* Find the first UsageCounter that matches the filter or
|
|
18352
|
-
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
18353
|
-
* Note, that providing `undefined` is treated as the value not being there.
|
|
18354
|
-
* Read more here: https://pris.ly/d/null-undefined
|
|
18355
|
-
* @param {UsageCounterFindFirstOrThrowArgs} args - Arguments to find a UsageCounter
|
|
18356
|
-
* @example
|
|
18357
|
-
* // Get one UsageCounter
|
|
18358
|
-
* const usageCounter = await prisma.usageCounter.findFirstOrThrow({
|
|
18359
|
-
* where: {
|
|
18360
|
-
* // ... provide filter here
|
|
18361
|
-
* }
|
|
18362
|
-
* })
|
|
18363
|
-
*/
|
|
18364
|
-
findFirstOrThrow<T extends UsageCounterFindFirstOrThrowArgs>(args?: SelectSubset<T, UsageCounterFindFirstOrThrowArgs<ExtArgs>>): Prisma__UsageCounterClient<$Result.GetResult<Prisma.$UsageCounterPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
18365
|
-
|
|
18366
|
-
/**
|
|
18367
|
-
* Find zero or more UsageCounters that matches the filter.
|
|
18368
|
-
* Note, that providing `undefined` is treated as the value not being there.
|
|
18369
|
-
* Read more here: https://pris.ly/d/null-undefined
|
|
18370
|
-
* @param {UsageCounterFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
18371
|
-
* @example
|
|
18372
|
-
* // Get all UsageCounters
|
|
18373
|
-
* const usageCounters = await prisma.usageCounter.findMany()
|
|
18374
|
-
*
|
|
18375
|
-
* // Get first 10 UsageCounters
|
|
18376
|
-
* const usageCounters = await prisma.usageCounter.findMany({ take: 10 })
|
|
18377
|
-
*
|
|
18378
|
-
* // Only select the `id`
|
|
18379
|
-
* const usageCounterWithIdOnly = await prisma.usageCounter.findMany({ select: { id: true } })
|
|
18380
|
-
*
|
|
18381
|
-
*/
|
|
18382
|
-
findMany<T extends UsageCounterFindManyArgs>(args?: SelectSubset<T, UsageCounterFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$UsageCounterPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
18383
|
-
|
|
18384
|
-
/**
|
|
18385
|
-
* Create a UsageCounter.
|
|
18386
|
-
* @param {UsageCounterCreateArgs} args - Arguments to create a UsageCounter.
|
|
18387
|
-
* @example
|
|
18388
|
-
* // Create one UsageCounter
|
|
18389
|
-
* const UsageCounter = await prisma.usageCounter.create({
|
|
18390
|
-
* data: {
|
|
18391
|
-
* // ... data to create a UsageCounter
|
|
18392
|
-
* }
|
|
18393
|
-
* })
|
|
18394
|
-
*
|
|
18395
|
-
*/
|
|
18396
|
-
create<T extends UsageCounterCreateArgs>(args: SelectSubset<T, UsageCounterCreateArgs<ExtArgs>>): Prisma__UsageCounterClient<$Result.GetResult<Prisma.$UsageCounterPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
18397
|
-
|
|
18398
|
-
/**
|
|
18399
|
-
* Create many UsageCounters.
|
|
18400
|
-
* @param {UsageCounterCreateManyArgs} args - Arguments to create many UsageCounters.
|
|
18401
|
-
* @example
|
|
18402
|
-
* // Create many UsageCounters
|
|
18403
|
-
* const usageCounter = await prisma.usageCounter.createMany({
|
|
18404
|
-
* data: [
|
|
18405
|
-
* // ... provide data here
|
|
18406
|
-
* ]
|
|
18407
|
-
* })
|
|
18408
|
-
*
|
|
18409
|
-
*/
|
|
18410
|
-
createMany<T extends UsageCounterCreateManyArgs>(args?: SelectSubset<T, UsageCounterCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
18411
|
-
|
|
18412
|
-
/**
|
|
18413
|
-
* Delete a UsageCounter.
|
|
18414
|
-
* @param {UsageCounterDeleteArgs} args - Arguments to delete one UsageCounter.
|
|
18415
|
-
* @example
|
|
18416
|
-
* // Delete one UsageCounter
|
|
18417
|
-
* const UsageCounter = await prisma.usageCounter.delete({
|
|
18418
|
-
* where: {
|
|
18419
|
-
* // ... filter to delete one UsageCounter
|
|
18420
|
-
* }
|
|
18421
|
-
* })
|
|
18422
|
-
*
|
|
18423
|
-
*/
|
|
18424
|
-
delete<T extends UsageCounterDeleteArgs>(args: SelectSubset<T, UsageCounterDeleteArgs<ExtArgs>>): Prisma__UsageCounterClient<$Result.GetResult<Prisma.$UsageCounterPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
18425
|
-
|
|
18426
|
-
/**
|
|
18427
|
-
* Update one UsageCounter.
|
|
18428
|
-
* @param {UsageCounterUpdateArgs} args - Arguments to update one UsageCounter.
|
|
18429
|
-
* @example
|
|
18430
|
-
* // Update one UsageCounter
|
|
18431
|
-
* const usageCounter = await prisma.usageCounter.update({
|
|
18432
|
-
* where: {
|
|
18433
|
-
* // ... provide filter here
|
|
18434
|
-
* },
|
|
18435
|
-
* data: {
|
|
18436
|
-
* // ... provide data here
|
|
18437
|
-
* }
|
|
18438
|
-
* })
|
|
18439
|
-
*
|
|
18440
|
-
*/
|
|
18441
|
-
update<T extends UsageCounterUpdateArgs>(args: SelectSubset<T, UsageCounterUpdateArgs<ExtArgs>>): Prisma__UsageCounterClient<$Result.GetResult<Prisma.$UsageCounterPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
18442
|
-
|
|
18443
|
-
/**
|
|
18444
|
-
* Delete zero or more UsageCounters.
|
|
18445
|
-
* @param {UsageCounterDeleteManyArgs} args - Arguments to filter UsageCounters to delete.
|
|
18446
|
-
* @example
|
|
18447
|
-
* // Delete a few UsageCounters
|
|
18448
|
-
* const { count } = await prisma.usageCounter.deleteMany({
|
|
18449
|
-
* where: {
|
|
18450
|
-
* // ... provide filter here
|
|
18451
|
-
* }
|
|
18452
|
-
* })
|
|
18453
|
-
*
|
|
18454
|
-
*/
|
|
18455
|
-
deleteMany<T extends UsageCounterDeleteManyArgs>(args?: SelectSubset<T, UsageCounterDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
18456
|
-
|
|
18457
|
-
/**
|
|
18458
|
-
* Update zero or more UsageCounters.
|
|
18459
|
-
* Note, that providing `undefined` is treated as the value not being there.
|
|
18460
|
-
* Read more here: https://pris.ly/d/null-undefined
|
|
18461
|
-
* @param {UsageCounterUpdateManyArgs} args - Arguments to update one or more rows.
|
|
18462
|
-
* @example
|
|
18463
|
-
* // Update many UsageCounters
|
|
18464
|
-
* const usageCounter = await prisma.usageCounter.updateMany({
|
|
18465
|
-
* where: {
|
|
18466
|
-
* // ... provide filter here
|
|
18467
|
-
* },
|
|
18468
|
-
* data: {
|
|
18469
|
-
* // ... provide data here
|
|
18470
|
-
* }
|
|
18471
|
-
* })
|
|
18472
|
-
*
|
|
18473
|
-
*/
|
|
18474
|
-
updateMany<T extends UsageCounterUpdateManyArgs>(args: SelectSubset<T, UsageCounterUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
18475
|
-
|
|
18476
|
-
/**
|
|
18477
|
-
* Create or update one UsageCounter.
|
|
18478
|
-
* @param {UsageCounterUpsertArgs} args - Arguments to update or create a UsageCounter.
|
|
18479
|
-
* @example
|
|
18480
|
-
* // Update or create a UsageCounter
|
|
18481
|
-
* const usageCounter = await prisma.usageCounter.upsert({
|
|
18482
|
-
* create: {
|
|
18483
|
-
* // ... data to create a UsageCounter
|
|
18484
|
-
* },
|
|
18485
|
-
* update: {
|
|
18486
|
-
* // ... in case it already exists, update
|
|
18487
|
-
* },
|
|
18488
|
-
* where: {
|
|
18489
|
-
* // ... the filter for the UsageCounter we want to update
|
|
18490
|
-
* }
|
|
18491
|
-
* })
|
|
18492
|
-
*/
|
|
18493
|
-
upsert<T extends UsageCounterUpsertArgs>(args: SelectSubset<T, UsageCounterUpsertArgs<ExtArgs>>): Prisma__UsageCounterClient<$Result.GetResult<Prisma.$UsageCounterPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
18494
|
-
|
|
18495
|
-
/**
|
|
18496
|
-
* Find zero or more UsageCounters that matches the filter.
|
|
18497
|
-
* @param {UsageCounterFindRawArgs} args - Select which filters you would like to apply.
|
|
18498
|
-
* @example
|
|
18499
|
-
* const usageCounter = await prisma.usageCounter.findRaw({
|
|
18500
|
-
* filter: { age: { $gt: 25 } }
|
|
18501
|
-
* })
|
|
18502
|
-
*/
|
|
18503
|
-
findRaw(args?: UsageCounterFindRawArgs): Prisma.PrismaPromise<JsonObject>
|
|
18504
|
-
|
|
18505
|
-
/**
|
|
18506
|
-
* Perform aggregation operations on a UsageCounter.
|
|
18507
|
-
* @param {UsageCounterAggregateRawArgs} args - Select which aggregations you would like to apply.
|
|
18508
|
-
* @example
|
|
18509
|
-
* const usageCounter = await prisma.usageCounter.aggregateRaw({
|
|
18510
|
-
* pipeline: [
|
|
18511
|
-
* { $match: { status: "registered" } },
|
|
18512
|
-
* { $group: { _id: "$country", total: { $sum: 1 } } }
|
|
18513
|
-
* ]
|
|
18514
|
-
* })
|
|
18515
|
-
*/
|
|
18516
|
-
aggregateRaw(args?: UsageCounterAggregateRawArgs): Prisma.PrismaPromise<JsonObject>
|
|
18517
|
-
|
|
18518
|
-
|
|
18519
|
-
/**
|
|
18520
|
-
* Count the number of UsageCounters.
|
|
18521
|
-
* Note, that providing `undefined` is treated as the value not being there.
|
|
18522
|
-
* Read more here: https://pris.ly/d/null-undefined
|
|
18523
|
-
* @param {UsageCounterCountArgs} args - Arguments to filter UsageCounters to count.
|
|
18524
|
-
* @example
|
|
18525
|
-
* // Count the number of UsageCounters
|
|
18526
|
-
* const count = await prisma.usageCounter.count({
|
|
18527
|
-
* where: {
|
|
18528
|
-
* // ... the filter for the UsageCounters we want to count
|
|
18529
|
-
* }
|
|
18530
|
-
* })
|
|
18531
|
-
**/
|
|
18532
|
-
count<T extends UsageCounterCountArgs>(
|
|
18533
|
-
args?: Subset<T, UsageCounterCountArgs>,
|
|
18534
|
-
): Prisma.PrismaPromise<
|
|
18535
|
-
T extends $Utils.Record<'select', any>
|
|
18536
|
-
? T['select'] extends true
|
|
18537
|
-
? number
|
|
18538
|
-
: GetScalarType<T['select'], UsageCounterCountAggregateOutputType>
|
|
18539
|
-
: number
|
|
18540
|
-
>
|
|
18541
|
-
|
|
18542
|
-
/**
|
|
18543
|
-
* Allows you to perform aggregations operations on a UsageCounter.
|
|
18544
|
-
* Note, that providing `undefined` is treated as the value not being there.
|
|
18545
|
-
* Read more here: https://pris.ly/d/null-undefined
|
|
18546
|
-
* @param {UsageCounterAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
18547
|
-
* @example
|
|
18548
|
-
* // Ordered by age ascending
|
|
18549
|
-
* // Where email contains prisma.io
|
|
18550
|
-
* // Limited to the 10 users
|
|
18551
|
-
* const aggregations = await prisma.user.aggregate({
|
|
18552
|
-
* _avg: {
|
|
18553
|
-
* age: true,
|
|
18554
|
-
* },
|
|
18555
|
-
* where: {
|
|
18556
|
-
* email: {
|
|
18557
|
-
* contains: "prisma.io",
|
|
18558
|
-
* },
|
|
18559
|
-
* },
|
|
18560
|
-
* orderBy: {
|
|
18561
|
-
* age: "asc",
|
|
18562
|
-
* },
|
|
18563
|
-
* take: 10,
|
|
18564
|
-
* })
|
|
18565
|
-
**/
|
|
18566
|
-
aggregate<T extends UsageCounterAggregateArgs>(args: Subset<T, UsageCounterAggregateArgs>): Prisma.PrismaPromise<GetUsageCounterAggregateType<T>>
|
|
18567
|
-
|
|
18568
|
-
/**
|
|
18569
|
-
* Group by UsageCounter.
|
|
18570
|
-
* Note, that providing `undefined` is treated as the value not being there.
|
|
18571
|
-
* Read more here: https://pris.ly/d/null-undefined
|
|
18572
|
-
* @param {UsageCounterGroupByArgs} args - Group by arguments.
|
|
18573
|
-
* @example
|
|
18574
|
-
* // Group by city, order by createdAt, get count
|
|
18575
|
-
* const result = await prisma.user.groupBy({
|
|
18576
|
-
* by: ['city', 'createdAt'],
|
|
18577
|
-
* orderBy: {
|
|
18578
|
-
* createdAt: true
|
|
18579
|
-
* },
|
|
18580
|
-
* _count: {
|
|
18581
|
-
* _all: true
|
|
18582
|
-
* },
|
|
18583
|
-
* })
|
|
18584
|
-
*
|
|
18585
|
-
**/
|
|
18586
|
-
groupBy<
|
|
18587
|
-
T extends UsageCounterGroupByArgs,
|
|
18588
|
-
HasSelectOrTake extends Or<
|
|
18589
|
-
Extends<'skip', Keys<T>>,
|
|
18590
|
-
Extends<'take', Keys<T>>
|
|
18591
|
-
>,
|
|
18592
|
-
OrderByArg extends True extends HasSelectOrTake
|
|
18593
|
-
? { orderBy: UsageCounterGroupByArgs['orderBy'] }
|
|
18594
|
-
: { orderBy?: UsageCounterGroupByArgs['orderBy'] },
|
|
18595
|
-
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
18596
|
-
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
18597
|
-
ByValid extends Has<ByFields, OrderFields>,
|
|
18598
|
-
HavingFields extends GetHavingFields<T['having']>,
|
|
18599
|
-
HavingValid extends Has<ByFields, HavingFields>,
|
|
18600
|
-
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
18601
|
-
InputErrors extends ByEmpty extends True
|
|
18602
|
-
? `Error: "by" must not be empty.`
|
|
18603
|
-
: HavingValid extends False
|
|
18604
|
-
? {
|
|
18605
|
-
[P in HavingFields]: P extends ByFields
|
|
18606
|
-
? never
|
|
18607
|
-
: P extends string
|
|
18608
|
-
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
18609
|
-
: [
|
|
18610
|
-
Error,
|
|
18611
|
-
'Field ',
|
|
18612
|
-
P,
|
|
18613
|
-
` in "having" needs to be provided in "by"`,
|
|
18614
|
-
]
|
|
18615
|
-
}[HavingFields]
|
|
18616
|
-
: 'take' extends Keys<T>
|
|
18617
|
-
? 'orderBy' extends Keys<T>
|
|
18618
|
-
? ByValid extends True
|
|
18619
|
-
? {}
|
|
18620
|
-
: {
|
|
18621
|
-
[P in OrderFields]: P extends ByFields
|
|
18622
|
-
? never
|
|
18623
|
-
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
18624
|
-
}[OrderFields]
|
|
18625
|
-
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
18626
|
-
: 'skip' extends Keys<T>
|
|
18627
|
-
? 'orderBy' extends Keys<T>
|
|
18628
|
-
? ByValid extends True
|
|
18629
|
-
? {}
|
|
18630
|
-
: {
|
|
18631
|
-
[P in OrderFields]: P extends ByFields
|
|
18632
|
-
? never
|
|
18633
|
-
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
18634
|
-
}[OrderFields]
|
|
18635
|
-
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
18636
|
-
: ByValid extends True
|
|
18637
|
-
? {}
|
|
18638
|
-
: {
|
|
18639
|
-
[P in OrderFields]: P extends ByFields
|
|
18640
|
-
? never
|
|
18641
|
-
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
18642
|
-
}[OrderFields]
|
|
18643
|
-
>(args: SubsetIntersection<T, UsageCounterGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetUsageCounterGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
18644
|
-
/**
|
|
18645
|
-
* Fields of the UsageCounter model
|
|
18646
|
-
*/
|
|
18647
|
-
readonly fields: UsageCounterFieldRefs;
|
|
18648
|
-
}
|
|
18649
|
-
|
|
18650
|
-
/**
|
|
18651
|
-
* The delegate class that acts as a "Promise-like" for UsageCounter.
|
|
18652
|
-
* Why is this prefixed with `Prisma__`?
|
|
18653
|
-
* Because we want to prevent naming conflicts as mentioned in
|
|
18654
|
-
* https://github.com/prisma/prisma-client-js/issues/707
|
|
18655
|
-
*/
|
|
18656
|
-
export interface Prisma__UsageCounterClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
18657
|
-
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
18658
|
-
/**
|
|
18659
|
-
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
18660
|
-
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
18661
|
-
* @param onrejected The callback to execute when the Promise is rejected.
|
|
18662
|
-
* @returns A Promise for the completion of which ever callback is executed.
|
|
18663
|
-
*/
|
|
18664
|
-
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>
|
|
18665
|
-
/**
|
|
18666
|
-
* Attaches a callback for only the rejection of the Promise.
|
|
18667
|
-
* @param onrejected The callback to execute when the Promise is rejected.
|
|
18668
|
-
* @returns A Promise for the completion of the callback.
|
|
18669
|
-
*/
|
|
18670
|
-
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
18671
|
-
/**
|
|
18672
|
-
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
18673
|
-
* resolved value cannot be modified from the callback.
|
|
18674
|
-
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
18675
|
-
* @returns A Promise for the completion of the callback.
|
|
18676
|
-
*/
|
|
18677
|
-
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
18678
|
-
}
|
|
18679
|
-
|
|
18680
|
-
|
|
18681
|
-
|
|
18682
|
-
|
|
18683
|
-
/**
|
|
18684
|
-
* Fields of the UsageCounter model
|
|
18685
|
-
*/
|
|
18686
|
-
interface UsageCounterFieldRefs {
|
|
18687
|
-
readonly id: FieldRef<"UsageCounter", 'String'>
|
|
18688
|
-
readonly integrationId: FieldRef<"UsageCounter", 'String'>
|
|
18689
|
-
readonly integrationType: FieldRef<"UsageCounter", 'String'>
|
|
18690
|
-
readonly metric: FieldRef<"UsageCounter", 'String'>
|
|
18691
|
-
readonly window: FieldRef<"UsageCounter", 'String'>
|
|
18692
|
-
readonly value: FieldRef<"UsageCounter", 'BigInt'>
|
|
18693
|
-
readonly createdAt: FieldRef<"UsageCounter", 'DateTime'>
|
|
18694
|
-
readonly updatedAt: FieldRef<"UsageCounter", 'DateTime'>
|
|
18695
|
-
}
|
|
18696
|
-
|
|
18697
|
-
|
|
18698
|
-
// Custom InputTypes
|
|
18699
|
-
/**
|
|
18700
|
-
* UsageCounter findUnique
|
|
18701
|
-
*/
|
|
18702
|
-
export type UsageCounterFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
18703
|
-
/**
|
|
18704
|
-
* Select specific fields to fetch from the UsageCounter
|
|
18705
|
-
*/
|
|
18706
|
-
select?: UsageCounterSelect<ExtArgs> | null
|
|
18707
|
-
/**
|
|
18708
|
-
* Omit specific fields from the UsageCounter
|
|
18709
|
-
*/
|
|
18710
|
-
omit?: UsageCounterOmit<ExtArgs> | null
|
|
18711
|
-
/**
|
|
18712
|
-
* Filter, which UsageCounter to fetch.
|
|
18713
|
-
*/
|
|
18714
|
-
where: UsageCounterWhereUniqueInput
|
|
18715
|
-
}
|
|
18716
|
-
|
|
18717
|
-
/**
|
|
18718
|
-
* UsageCounter findUniqueOrThrow
|
|
18719
|
-
*/
|
|
18720
|
-
export type UsageCounterFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
18721
|
-
/**
|
|
18722
|
-
* Select specific fields to fetch from the UsageCounter
|
|
18723
|
-
*/
|
|
18724
|
-
select?: UsageCounterSelect<ExtArgs> | null
|
|
18725
|
-
/**
|
|
18726
|
-
* Omit specific fields from the UsageCounter
|
|
18727
|
-
*/
|
|
18728
|
-
omit?: UsageCounterOmit<ExtArgs> | null
|
|
18729
|
-
/**
|
|
18730
|
-
* Filter, which UsageCounter to fetch.
|
|
18731
|
-
*/
|
|
18732
|
-
where: UsageCounterWhereUniqueInput
|
|
18733
|
-
}
|
|
18734
|
-
|
|
18735
|
-
/**
|
|
18736
|
-
* UsageCounter findFirst
|
|
18737
|
-
*/
|
|
18738
|
-
export type UsageCounterFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
18739
|
-
/**
|
|
18740
|
-
* Select specific fields to fetch from the UsageCounter
|
|
18741
|
-
*/
|
|
18742
|
-
select?: UsageCounterSelect<ExtArgs> | null
|
|
18743
|
-
/**
|
|
18744
|
-
* Omit specific fields from the UsageCounter
|
|
18745
|
-
*/
|
|
18746
|
-
omit?: UsageCounterOmit<ExtArgs> | null
|
|
18747
|
-
/**
|
|
18748
|
-
* Filter, which UsageCounter to fetch.
|
|
18749
|
-
*/
|
|
18750
|
-
where?: UsageCounterWhereInput
|
|
18751
|
-
/**
|
|
18752
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
18753
|
-
*
|
|
18754
|
-
* Determine the order of UsageCounters to fetch.
|
|
18755
|
-
*/
|
|
18756
|
-
orderBy?: UsageCounterOrderByWithRelationInput | UsageCounterOrderByWithRelationInput[]
|
|
18757
|
-
/**
|
|
18758
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
18759
|
-
*
|
|
18760
|
-
* Sets the position for searching for UsageCounters.
|
|
18761
|
-
*/
|
|
18762
|
-
cursor?: UsageCounterWhereUniqueInput
|
|
18763
|
-
/**
|
|
18764
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
18765
|
-
*
|
|
18766
|
-
* Take `±n` UsageCounters from the position of the cursor.
|
|
18767
|
-
*/
|
|
18768
|
-
take?: number
|
|
18769
|
-
/**
|
|
18770
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
18771
|
-
*
|
|
18772
|
-
* Skip the first `n` UsageCounters.
|
|
18773
|
-
*/
|
|
18774
|
-
skip?: number
|
|
18775
|
-
/**
|
|
18776
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
18777
|
-
*
|
|
18778
|
-
* Filter by unique combinations of UsageCounters.
|
|
18779
|
-
*/
|
|
18780
|
-
distinct?: UsageCounterScalarFieldEnum | UsageCounterScalarFieldEnum[]
|
|
18781
|
-
}
|
|
18782
|
-
|
|
18783
|
-
/**
|
|
18784
|
-
* UsageCounter findFirstOrThrow
|
|
18785
|
-
*/
|
|
18786
|
-
export type UsageCounterFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
18787
|
-
/**
|
|
18788
|
-
* Select specific fields to fetch from the UsageCounter
|
|
18789
|
-
*/
|
|
18790
|
-
select?: UsageCounterSelect<ExtArgs> | null
|
|
18791
|
-
/**
|
|
18792
|
-
* Omit specific fields from the UsageCounter
|
|
18793
|
-
*/
|
|
18794
|
-
omit?: UsageCounterOmit<ExtArgs> | null
|
|
18795
|
-
/**
|
|
18796
|
-
* Filter, which UsageCounter to fetch.
|
|
18797
|
-
*/
|
|
18798
|
-
where?: UsageCounterWhereInput
|
|
18799
|
-
/**
|
|
18800
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
18801
|
-
*
|
|
18802
|
-
* Determine the order of UsageCounters to fetch.
|
|
18803
|
-
*/
|
|
18804
|
-
orderBy?: UsageCounterOrderByWithRelationInput | UsageCounterOrderByWithRelationInput[]
|
|
18805
|
-
/**
|
|
18806
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
18807
|
-
*
|
|
18808
|
-
* Sets the position for searching for UsageCounters.
|
|
18809
|
-
*/
|
|
18810
|
-
cursor?: UsageCounterWhereUniqueInput
|
|
18811
|
-
/**
|
|
18812
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
18813
|
-
*
|
|
18814
|
-
* Take `±n` UsageCounters from the position of the cursor.
|
|
18815
|
-
*/
|
|
18816
|
-
take?: number
|
|
18817
|
-
/**
|
|
18818
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
18819
|
-
*
|
|
18820
|
-
* Skip the first `n` UsageCounters.
|
|
18821
|
-
*/
|
|
18822
|
-
skip?: number
|
|
18823
|
-
/**
|
|
18824
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
18825
|
-
*
|
|
18826
|
-
* Filter by unique combinations of UsageCounters.
|
|
18827
|
-
*/
|
|
18828
|
-
distinct?: UsageCounterScalarFieldEnum | UsageCounterScalarFieldEnum[]
|
|
18829
|
-
}
|
|
18830
|
-
|
|
18831
|
-
/**
|
|
18832
|
-
* UsageCounter findMany
|
|
18833
|
-
*/
|
|
18834
|
-
export type UsageCounterFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
18835
|
-
/**
|
|
18836
|
-
* Select specific fields to fetch from the UsageCounter
|
|
18837
|
-
*/
|
|
18838
|
-
select?: UsageCounterSelect<ExtArgs> | null
|
|
18839
|
-
/**
|
|
18840
|
-
* Omit specific fields from the UsageCounter
|
|
18841
|
-
*/
|
|
18842
|
-
omit?: UsageCounterOmit<ExtArgs> | null
|
|
18843
|
-
/**
|
|
18844
|
-
* Filter, which UsageCounters to fetch.
|
|
18845
|
-
*/
|
|
18846
|
-
where?: UsageCounterWhereInput
|
|
18847
|
-
/**
|
|
18848
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
18849
|
-
*
|
|
18850
|
-
* Determine the order of UsageCounters to fetch.
|
|
18851
|
-
*/
|
|
18852
|
-
orderBy?: UsageCounterOrderByWithRelationInput | UsageCounterOrderByWithRelationInput[]
|
|
18853
|
-
/**
|
|
18854
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
18855
|
-
*
|
|
18856
|
-
* Sets the position for listing UsageCounters.
|
|
18857
|
-
*/
|
|
18858
|
-
cursor?: UsageCounterWhereUniqueInput
|
|
18859
|
-
/**
|
|
18860
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
18861
|
-
*
|
|
18862
|
-
* Take `±n` UsageCounters from the position of the cursor.
|
|
18863
|
-
*/
|
|
18864
|
-
take?: number
|
|
18865
|
-
/**
|
|
18866
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
18867
|
-
*
|
|
18868
|
-
* Skip the first `n` UsageCounters.
|
|
18869
|
-
*/
|
|
18870
|
-
skip?: number
|
|
18871
|
-
distinct?: UsageCounterScalarFieldEnum | UsageCounterScalarFieldEnum[]
|
|
18872
|
-
}
|
|
18873
|
-
|
|
18874
|
-
/**
|
|
18875
|
-
* UsageCounter create
|
|
18876
|
-
*/
|
|
18877
|
-
export type UsageCounterCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
18878
|
-
/**
|
|
18879
|
-
* Select specific fields to fetch from the UsageCounter
|
|
18880
|
-
*/
|
|
18881
|
-
select?: UsageCounterSelect<ExtArgs> | null
|
|
18882
|
-
/**
|
|
18883
|
-
* Omit specific fields from the UsageCounter
|
|
18884
|
-
*/
|
|
18885
|
-
omit?: UsageCounterOmit<ExtArgs> | null
|
|
18886
|
-
/**
|
|
18887
|
-
* The data needed to create a UsageCounter.
|
|
18888
|
-
*/
|
|
18889
|
-
data: XOR<UsageCounterCreateInput, UsageCounterUncheckedCreateInput>
|
|
18890
|
-
}
|
|
18891
|
-
|
|
18892
|
-
/**
|
|
18893
|
-
* UsageCounter createMany
|
|
18894
|
-
*/
|
|
18895
|
-
export type UsageCounterCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
18896
|
-
/**
|
|
18897
|
-
* The data used to create many UsageCounters.
|
|
18898
|
-
*/
|
|
18899
|
-
data: UsageCounterCreateManyInput | UsageCounterCreateManyInput[]
|
|
18900
|
-
}
|
|
18901
|
-
|
|
18902
|
-
/**
|
|
18903
|
-
* UsageCounter update
|
|
18904
|
-
*/
|
|
18905
|
-
export type UsageCounterUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
18906
|
-
/**
|
|
18907
|
-
* Select specific fields to fetch from the UsageCounter
|
|
18908
|
-
*/
|
|
18909
|
-
select?: UsageCounterSelect<ExtArgs> | null
|
|
18910
|
-
/**
|
|
18911
|
-
* Omit specific fields from the UsageCounter
|
|
18912
|
-
*/
|
|
18913
|
-
omit?: UsageCounterOmit<ExtArgs> | null
|
|
18914
|
-
/**
|
|
18915
|
-
* The data needed to update a UsageCounter.
|
|
18916
|
-
*/
|
|
18917
|
-
data: XOR<UsageCounterUpdateInput, UsageCounterUncheckedUpdateInput>
|
|
18918
|
-
/**
|
|
18919
|
-
* Choose, which UsageCounter to update.
|
|
18920
|
-
*/
|
|
18921
|
-
where: UsageCounterWhereUniqueInput
|
|
18922
|
-
}
|
|
18923
|
-
|
|
18924
|
-
/**
|
|
18925
|
-
* UsageCounter updateMany
|
|
18926
|
-
*/
|
|
18927
|
-
export type UsageCounterUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
18928
|
-
/**
|
|
18929
|
-
* The data used to update UsageCounters.
|
|
18930
|
-
*/
|
|
18931
|
-
data: XOR<UsageCounterUpdateManyMutationInput, UsageCounterUncheckedUpdateManyInput>
|
|
18932
|
-
/**
|
|
18933
|
-
* Filter which UsageCounters to update
|
|
18934
|
-
*/
|
|
18935
|
-
where?: UsageCounterWhereInput
|
|
18936
|
-
/**
|
|
18937
|
-
* Limit how many UsageCounters to update.
|
|
18938
|
-
*/
|
|
18939
|
-
limit?: number
|
|
18940
|
-
}
|
|
18941
|
-
|
|
18942
|
-
/**
|
|
18943
|
-
* UsageCounter upsert
|
|
18944
|
-
*/
|
|
18945
|
-
export type UsageCounterUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
18946
|
-
/**
|
|
18947
|
-
* Select specific fields to fetch from the UsageCounter
|
|
18948
|
-
*/
|
|
18949
|
-
select?: UsageCounterSelect<ExtArgs> | null
|
|
18950
|
-
/**
|
|
18951
|
-
* Omit specific fields from the UsageCounter
|
|
18952
|
-
*/
|
|
18953
|
-
omit?: UsageCounterOmit<ExtArgs> | null
|
|
18954
|
-
/**
|
|
18955
|
-
* The filter to search for the UsageCounter to update in case it exists.
|
|
18956
|
-
*/
|
|
18957
|
-
where: UsageCounterWhereUniqueInput
|
|
18958
|
-
/**
|
|
18959
|
-
* In case the UsageCounter found by the `where` argument doesn't exist, create a new UsageCounter with this data.
|
|
18960
|
-
*/
|
|
18961
|
-
create: XOR<UsageCounterCreateInput, UsageCounterUncheckedCreateInput>
|
|
18962
|
-
/**
|
|
18963
|
-
* In case the UsageCounter was found with the provided `where` argument, update it with this data.
|
|
18964
|
-
*/
|
|
18965
|
-
update: XOR<UsageCounterUpdateInput, UsageCounterUncheckedUpdateInput>
|
|
18966
|
-
}
|
|
18967
|
-
|
|
18968
|
-
/**
|
|
18969
|
-
* UsageCounter delete
|
|
18970
|
-
*/
|
|
18971
|
-
export type UsageCounterDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
18972
|
-
/**
|
|
18973
|
-
* Select specific fields to fetch from the UsageCounter
|
|
18974
|
-
*/
|
|
18975
|
-
select?: UsageCounterSelect<ExtArgs> | null
|
|
18976
|
-
/**
|
|
18977
|
-
* Omit specific fields from the UsageCounter
|
|
18978
|
-
*/
|
|
18979
|
-
omit?: UsageCounterOmit<ExtArgs> | null
|
|
18980
|
-
/**
|
|
18981
|
-
* Filter which UsageCounter to delete.
|
|
18982
|
-
*/
|
|
18983
|
-
where: UsageCounterWhereUniqueInput
|
|
18984
|
-
}
|
|
18985
|
-
|
|
18986
|
-
/**
|
|
18987
|
-
* UsageCounter deleteMany
|
|
18988
|
-
*/
|
|
18989
|
-
export type UsageCounterDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
18990
|
-
/**
|
|
18991
|
-
* Filter which UsageCounters to delete
|
|
18992
|
-
*/
|
|
18993
|
-
where?: UsageCounterWhereInput
|
|
18994
|
-
/**
|
|
18995
|
-
* Limit how many UsageCounters to delete.
|
|
18996
|
-
*/
|
|
18997
|
-
limit?: number
|
|
18998
|
-
}
|
|
18999
|
-
|
|
19000
|
-
/**
|
|
19001
|
-
* UsageCounter findRaw
|
|
19002
|
-
*/
|
|
19003
|
-
export type UsageCounterFindRawArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
19004
|
-
/**
|
|
19005
|
-
* 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}.
|
|
19006
|
-
*/
|
|
19007
|
-
filter?: InputJsonValue
|
|
19008
|
-
/**
|
|
19009
|
-
* Additional options to pass to the `find` command ${@link https://docs.mongodb.com/manual/reference/command/find/#command-fields MongoDB Docs}.
|
|
19010
|
-
*/
|
|
19011
|
-
options?: InputJsonValue
|
|
19012
|
-
}
|
|
19013
|
-
|
|
19014
|
-
/**
|
|
19015
|
-
* UsageCounter aggregateRaw
|
|
19016
|
-
*/
|
|
19017
|
-
export type UsageCounterAggregateRawArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
19018
|
-
/**
|
|
19019
|
-
* 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}.
|
|
19020
|
-
*/
|
|
19021
|
-
pipeline?: InputJsonValue[]
|
|
19022
|
-
/**
|
|
19023
|
-
* Additional options to pass to the `aggregate` command ${@link https://docs.mongodb.com/manual/reference/command/aggregate/#command-fields MongoDB Docs}.
|
|
19024
|
-
*/
|
|
19025
|
-
options?: InputJsonValue
|
|
19026
|
-
}
|
|
19027
|
-
|
|
19028
|
-
/**
|
|
19029
|
-
* UsageCounter without action
|
|
19030
|
-
*/
|
|
19031
|
-
export type UsageCounterDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
19032
|
-
/**
|
|
19033
|
-
* Select specific fields to fetch from the UsageCounter
|
|
19034
|
-
*/
|
|
19035
|
-
select?: UsageCounterSelect<ExtArgs> | null
|
|
19036
|
-
/**
|
|
19037
|
-
* Omit specific fields from the UsageCounter
|
|
19038
|
-
*/
|
|
19039
|
-
omit?: UsageCounterOmit<ExtArgs> | null
|
|
19040
|
-
}
|
|
19041
|
-
|
|
19042
|
-
|
|
19043
|
-
/**
|
|
19044
|
-
* Enums
|
|
19045
|
-
*/
|
|
19046
|
-
|
|
19047
|
-
export const UserScalarFieldEnum: {
|
|
19048
|
-
id: 'id',
|
|
19049
|
-
type: 'type',
|
|
19050
|
-
createdAt: 'createdAt',
|
|
19051
|
-
updatedAt: 'updatedAt',
|
|
19052
|
-
email: 'email',
|
|
19053
|
-
username: 'username',
|
|
19054
|
-
hashword: 'hashword',
|
|
19055
|
-
appUserId: 'appUserId',
|
|
19056
|
-
organizationId: 'organizationId',
|
|
19057
|
-
appOrgId: 'appOrgId',
|
|
19058
|
-
name: 'name'
|
|
19059
|
-
};
|
|
19060
|
-
|
|
19061
|
-
export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum]
|
|
19062
|
-
|
|
19063
|
-
|
|
19064
|
-
export const TokenScalarFieldEnum: {
|
|
19065
|
-
id: 'id',
|
|
19066
|
-
token: 'token',
|
|
19067
|
-
created: 'created',
|
|
19068
|
-
expires: 'expires',
|
|
19069
|
-
userId: 'userId'
|
|
19070
|
-
};
|
|
19071
|
-
|
|
19072
|
-
export type TokenScalarFieldEnum = (typeof TokenScalarFieldEnum)[keyof typeof TokenScalarFieldEnum]
|
|
19073
|
-
|
|
19074
|
-
|
|
19075
|
-
export const CredentialScalarFieldEnum: {
|
|
19076
|
-
id: 'id',
|
|
19077
|
-
userId: 'userId',
|
|
19078
|
-
authIsValid: 'authIsValid',
|
|
19079
|
-
externalId: 'externalId',
|
|
19080
|
-
data: 'data',
|
|
19081
|
-
createdAt: 'createdAt',
|
|
19082
|
-
updatedAt: 'updatedAt'
|
|
19083
|
-
};
|
|
19084
|
-
|
|
19085
|
-
export type CredentialScalarFieldEnum = (typeof CredentialScalarFieldEnum)[keyof typeof CredentialScalarFieldEnum]
|
|
19086
|
-
|
|
19087
|
-
|
|
19088
|
-
export const EntityScalarFieldEnum: {
|
|
19089
|
-
id: 'id',
|
|
19090
|
-
credentialId: 'credentialId',
|
|
19091
|
-
userId: 'userId',
|
|
19092
|
-
name: 'name',
|
|
19093
|
-
moduleName: 'moduleName',
|
|
19094
|
-
externalId: 'externalId',
|
|
19095
|
-
data: 'data',
|
|
19096
|
-
createdAt: 'createdAt',
|
|
19097
|
-
updatedAt: 'updatedAt',
|
|
19098
|
-
integrationIds: 'integrationIds',
|
|
19099
|
-
syncIds: 'syncIds'
|
|
19100
|
-
};
|
|
19101
|
-
|
|
19102
|
-
export type EntityScalarFieldEnum = (typeof EntityScalarFieldEnum)[keyof typeof EntityScalarFieldEnum]
|
|
19103
|
-
|
|
19104
|
-
|
|
19105
|
-
export const IntegrationScalarFieldEnum: {
|
|
19106
|
-
id: 'id',
|
|
19107
|
-
userId: 'userId',
|
|
19108
|
-
status: 'status',
|
|
19109
|
-
config: 'config',
|
|
19110
|
-
version: 'version',
|
|
19111
|
-
entityIds: 'entityIds',
|
|
19112
|
-
errors: 'errors',
|
|
19113
|
-
warnings: 'warnings',
|
|
19114
|
-
info: 'info',
|
|
19115
|
-
logs: 'logs',
|
|
19116
|
-
createdAt: 'createdAt',
|
|
19117
|
-
updatedAt: 'updatedAt'
|
|
19118
|
-
};
|
|
19119
|
-
|
|
19120
|
-
export type IntegrationScalarFieldEnum = (typeof IntegrationScalarFieldEnum)[keyof typeof IntegrationScalarFieldEnum]
|
|
19121
|
-
|
|
19122
|
-
|
|
19123
|
-
export const IntegrationMappingScalarFieldEnum: {
|
|
19124
|
-
id: 'id',
|
|
19125
|
-
integrationId: 'integrationId',
|
|
19126
|
-
sourceId: 'sourceId',
|
|
19127
|
-
mapping: 'mapping',
|
|
19128
|
-
createdAt: 'createdAt',
|
|
19129
|
-
updatedAt: 'updatedAt'
|
|
19130
|
-
};
|
|
19131
|
-
|
|
19132
|
-
export type IntegrationMappingScalarFieldEnum = (typeof IntegrationMappingScalarFieldEnum)[keyof typeof IntegrationMappingScalarFieldEnum]
|
|
19133
|
-
|
|
19134
|
-
|
|
19135
|
-
export const ProcessScalarFieldEnum: {
|
|
19136
|
-
id: 'id',
|
|
19137
|
-
userId: 'userId',
|
|
19138
|
-
integrationId: 'integrationId',
|
|
19139
|
-
name: 'name',
|
|
19140
|
-
type: 'type',
|
|
19141
|
-
state: 'state',
|
|
19142
|
-
context: 'context',
|
|
19143
|
-
results: 'results',
|
|
19144
|
-
childProcesses: 'childProcesses',
|
|
19145
|
-
parentProcessId: 'parentProcessId',
|
|
19146
|
-
createdAt: 'createdAt',
|
|
19147
|
-
updatedAt: 'updatedAt'
|
|
19148
|
-
};
|
|
19149
|
-
|
|
19150
|
-
export type ProcessScalarFieldEnum = (typeof ProcessScalarFieldEnum)[keyof typeof ProcessScalarFieldEnum]
|
|
19151
|
-
|
|
19152
|
-
|
|
19153
|
-
export const SyncScalarFieldEnum: {
|
|
19154
|
-
id: 'id',
|
|
19155
|
-
integrationId: 'integrationId',
|
|
19156
|
-
entityIds: 'entityIds',
|
|
19157
|
-
hash: 'hash',
|
|
19158
|
-
name: 'name'
|
|
19159
|
-
};
|
|
19160
|
-
|
|
19161
|
-
export type SyncScalarFieldEnum = (typeof SyncScalarFieldEnum)[keyof typeof SyncScalarFieldEnum]
|
|
18068
|
+
export type SyncScalarFieldEnum = (typeof SyncScalarFieldEnum)[keyof typeof SyncScalarFieldEnum]
|
|
19162
18069
|
|
|
19163
18070
|
|
|
19164
18071
|
export const DataIdentifierScalarFieldEnum: {
|
|
@@ -19244,20 +18151,6 @@ export namespace Prisma {
|
|
|
19244
18151
|
export type ScriptScheduleScalarFieldEnum = (typeof ScriptScheduleScalarFieldEnum)[keyof typeof ScriptScheduleScalarFieldEnum]
|
|
19245
18152
|
|
|
19246
18153
|
|
|
19247
|
-
export const UsageCounterScalarFieldEnum: {
|
|
19248
|
-
id: 'id',
|
|
19249
|
-
integrationId: 'integrationId',
|
|
19250
|
-
integrationType: 'integrationType',
|
|
19251
|
-
metric: 'metric',
|
|
19252
|
-
window: 'window',
|
|
19253
|
-
value: 'value',
|
|
19254
|
-
createdAt: 'createdAt',
|
|
19255
|
-
updatedAt: 'updatedAt'
|
|
19256
|
-
};
|
|
19257
|
-
|
|
19258
|
-
export type UsageCounterScalarFieldEnum = (typeof UsageCounterScalarFieldEnum)[keyof typeof UsageCounterScalarFieldEnum]
|
|
19259
|
-
|
|
19260
|
-
|
|
19261
18154
|
export const SortOrder: {
|
|
19262
18155
|
asc: 'asc',
|
|
19263
18156
|
desc: 'desc'
|
|
@@ -19377,20 +18270,6 @@ export namespace Prisma {
|
|
|
19377
18270
|
|
|
19378
18271
|
|
|
19379
18272
|
|
|
19380
|
-
/**
|
|
19381
|
-
* Reference to a field of type 'BigInt'
|
|
19382
|
-
*/
|
|
19383
|
-
export type BigIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'BigInt'>
|
|
19384
|
-
|
|
19385
|
-
|
|
19386
|
-
|
|
19387
|
-
/**
|
|
19388
|
-
* Reference to a field of type 'BigInt[]'
|
|
19389
|
-
*/
|
|
19390
|
-
export type ListBigIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'BigInt[]'>
|
|
19391
|
-
|
|
19392
|
-
|
|
19393
|
-
|
|
19394
18273
|
/**
|
|
19395
18274
|
* Reference to a field of type 'Int'
|
|
19396
18275
|
*/
|
|
@@ -19403,20 +18282,6 @@ export namespace Prisma {
|
|
|
19403
18282
|
*/
|
|
19404
18283
|
export type ListIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int[]'>
|
|
19405
18284
|
|
|
19406
|
-
|
|
19407
|
-
|
|
19408
|
-
/**
|
|
19409
|
-
* Reference to a field of type 'Float'
|
|
19410
|
-
*/
|
|
19411
|
-
export type FloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float'>
|
|
19412
|
-
|
|
19413
|
-
|
|
19414
|
-
|
|
19415
|
-
/**
|
|
19416
|
-
* Reference to a field of type 'Float[]'
|
|
19417
|
-
*/
|
|
19418
|
-
export type ListFloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float[]'>
|
|
19419
|
-
|
|
19420
18285
|
/**
|
|
19421
18286
|
* Deep Input Types
|
|
19422
18287
|
*/
|
|
@@ -20481,76 +19346,6 @@ export namespace Prisma {
|
|
|
20481
19346
|
updatedAt?: DateTimeWithAggregatesFilter<"ScriptSchedule"> | Date | string
|
|
20482
19347
|
}
|
|
20483
19348
|
|
|
20484
|
-
export type UsageCounterWhereInput = {
|
|
20485
|
-
AND?: UsageCounterWhereInput | UsageCounterWhereInput[]
|
|
20486
|
-
OR?: UsageCounterWhereInput[]
|
|
20487
|
-
NOT?: UsageCounterWhereInput | UsageCounterWhereInput[]
|
|
20488
|
-
id?: StringFilter<"UsageCounter"> | string
|
|
20489
|
-
integrationId?: StringFilter<"UsageCounter"> | string
|
|
20490
|
-
integrationType?: StringFilter<"UsageCounter"> | string
|
|
20491
|
-
metric?: StringFilter<"UsageCounter"> | string
|
|
20492
|
-
window?: StringFilter<"UsageCounter"> | string
|
|
20493
|
-
value?: BigIntFilter<"UsageCounter"> | bigint | number
|
|
20494
|
-
createdAt?: DateTimeFilter<"UsageCounter"> | Date | string
|
|
20495
|
-
updatedAt?: DateTimeFilter<"UsageCounter"> | Date | string
|
|
20496
|
-
}
|
|
20497
|
-
|
|
20498
|
-
export type UsageCounterOrderByWithRelationInput = {
|
|
20499
|
-
id?: SortOrder
|
|
20500
|
-
integrationId?: SortOrder
|
|
20501
|
-
integrationType?: SortOrder
|
|
20502
|
-
metric?: SortOrder
|
|
20503
|
-
window?: SortOrder
|
|
20504
|
-
value?: SortOrder
|
|
20505
|
-
createdAt?: SortOrder
|
|
20506
|
-
updatedAt?: SortOrder
|
|
20507
|
-
}
|
|
20508
|
-
|
|
20509
|
-
export type UsageCounterWhereUniqueInput = Prisma.AtLeast<{
|
|
20510
|
-
id?: string
|
|
20511
|
-
integrationId_integrationType_metric_window?: UsageCounterIntegrationIdIntegrationTypeMetricWindowCompoundUniqueInput
|
|
20512
|
-
AND?: UsageCounterWhereInput | UsageCounterWhereInput[]
|
|
20513
|
-
OR?: UsageCounterWhereInput[]
|
|
20514
|
-
NOT?: UsageCounterWhereInput | UsageCounterWhereInput[]
|
|
20515
|
-
integrationId?: StringFilter<"UsageCounter"> | string
|
|
20516
|
-
integrationType?: StringFilter<"UsageCounter"> | string
|
|
20517
|
-
metric?: StringFilter<"UsageCounter"> | string
|
|
20518
|
-
window?: StringFilter<"UsageCounter"> | string
|
|
20519
|
-
value?: BigIntFilter<"UsageCounter"> | bigint | number
|
|
20520
|
-
createdAt?: DateTimeFilter<"UsageCounter"> | Date | string
|
|
20521
|
-
updatedAt?: DateTimeFilter<"UsageCounter"> | Date | string
|
|
20522
|
-
}, "id" | "integrationId_integrationType_metric_window">
|
|
20523
|
-
|
|
20524
|
-
export type UsageCounterOrderByWithAggregationInput = {
|
|
20525
|
-
id?: SortOrder
|
|
20526
|
-
integrationId?: SortOrder
|
|
20527
|
-
integrationType?: SortOrder
|
|
20528
|
-
metric?: SortOrder
|
|
20529
|
-
window?: SortOrder
|
|
20530
|
-
value?: SortOrder
|
|
20531
|
-
createdAt?: SortOrder
|
|
20532
|
-
updatedAt?: SortOrder
|
|
20533
|
-
_count?: UsageCounterCountOrderByAggregateInput
|
|
20534
|
-
_avg?: UsageCounterAvgOrderByAggregateInput
|
|
20535
|
-
_max?: UsageCounterMaxOrderByAggregateInput
|
|
20536
|
-
_min?: UsageCounterMinOrderByAggregateInput
|
|
20537
|
-
_sum?: UsageCounterSumOrderByAggregateInput
|
|
20538
|
-
}
|
|
20539
|
-
|
|
20540
|
-
export type UsageCounterScalarWhereWithAggregatesInput = {
|
|
20541
|
-
AND?: UsageCounterScalarWhereWithAggregatesInput | UsageCounterScalarWhereWithAggregatesInput[]
|
|
20542
|
-
OR?: UsageCounterScalarWhereWithAggregatesInput[]
|
|
20543
|
-
NOT?: UsageCounterScalarWhereWithAggregatesInput | UsageCounterScalarWhereWithAggregatesInput[]
|
|
20544
|
-
id?: StringWithAggregatesFilter<"UsageCounter"> | string
|
|
20545
|
-
integrationId?: StringWithAggregatesFilter<"UsageCounter"> | string
|
|
20546
|
-
integrationType?: StringWithAggregatesFilter<"UsageCounter"> | string
|
|
20547
|
-
metric?: StringWithAggregatesFilter<"UsageCounter"> | string
|
|
20548
|
-
window?: StringWithAggregatesFilter<"UsageCounter"> | string
|
|
20549
|
-
value?: BigIntWithAggregatesFilter<"UsageCounter"> | bigint | number
|
|
20550
|
-
createdAt?: DateTimeWithAggregatesFilter<"UsageCounter"> | Date | string
|
|
20551
|
-
updatedAt?: DateTimeWithAggregatesFilter<"UsageCounter"> | Date | string
|
|
20552
|
-
}
|
|
20553
|
-
|
|
20554
19349
|
export type UserCreateInput = {
|
|
20555
19350
|
id?: string
|
|
20556
19351
|
type: $Enums.UserType
|
|
@@ -21625,79 +20420,6 @@ export namespace Prisma {
|
|
|
21625
20420
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
21626
20421
|
}
|
|
21627
20422
|
|
|
21628
|
-
export type UsageCounterCreateInput = {
|
|
21629
|
-
id?: string
|
|
21630
|
-
integrationId: string
|
|
21631
|
-
integrationType: string
|
|
21632
|
-
metric: string
|
|
21633
|
-
window: string
|
|
21634
|
-
value?: bigint | number
|
|
21635
|
-
createdAt?: Date | string
|
|
21636
|
-
updatedAt?: Date | string
|
|
21637
|
-
}
|
|
21638
|
-
|
|
21639
|
-
export type UsageCounterUncheckedCreateInput = {
|
|
21640
|
-
id?: string
|
|
21641
|
-
integrationId: string
|
|
21642
|
-
integrationType: string
|
|
21643
|
-
metric: string
|
|
21644
|
-
window: string
|
|
21645
|
-
value?: bigint | number
|
|
21646
|
-
createdAt?: Date | string
|
|
21647
|
-
updatedAt?: Date | string
|
|
21648
|
-
}
|
|
21649
|
-
|
|
21650
|
-
export type UsageCounterUpdateInput = {
|
|
21651
|
-
integrationId?: StringFieldUpdateOperationsInput | string
|
|
21652
|
-
integrationType?: StringFieldUpdateOperationsInput | string
|
|
21653
|
-
metric?: StringFieldUpdateOperationsInput | string
|
|
21654
|
-
window?: StringFieldUpdateOperationsInput | string
|
|
21655
|
-
value?: BigIntFieldUpdateOperationsInput | bigint | number
|
|
21656
|
-
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
21657
|
-
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
21658
|
-
}
|
|
21659
|
-
|
|
21660
|
-
export type UsageCounterUncheckedUpdateInput = {
|
|
21661
|
-
integrationId?: StringFieldUpdateOperationsInput | string
|
|
21662
|
-
integrationType?: StringFieldUpdateOperationsInput | string
|
|
21663
|
-
metric?: StringFieldUpdateOperationsInput | string
|
|
21664
|
-
window?: StringFieldUpdateOperationsInput | string
|
|
21665
|
-
value?: BigIntFieldUpdateOperationsInput | bigint | number
|
|
21666
|
-
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
21667
|
-
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
21668
|
-
}
|
|
21669
|
-
|
|
21670
|
-
export type UsageCounterCreateManyInput = {
|
|
21671
|
-
id?: string
|
|
21672
|
-
integrationId: string
|
|
21673
|
-
integrationType: string
|
|
21674
|
-
metric: string
|
|
21675
|
-
window: string
|
|
21676
|
-
value?: bigint | number
|
|
21677
|
-
createdAt?: Date | string
|
|
21678
|
-
updatedAt?: Date | string
|
|
21679
|
-
}
|
|
21680
|
-
|
|
21681
|
-
export type UsageCounterUpdateManyMutationInput = {
|
|
21682
|
-
integrationId?: StringFieldUpdateOperationsInput | string
|
|
21683
|
-
integrationType?: StringFieldUpdateOperationsInput | string
|
|
21684
|
-
metric?: StringFieldUpdateOperationsInput | string
|
|
21685
|
-
window?: StringFieldUpdateOperationsInput | string
|
|
21686
|
-
value?: BigIntFieldUpdateOperationsInput | bigint | number
|
|
21687
|
-
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
21688
|
-
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
21689
|
-
}
|
|
21690
|
-
|
|
21691
|
-
export type UsageCounterUncheckedUpdateManyInput = {
|
|
21692
|
-
integrationId?: StringFieldUpdateOperationsInput | string
|
|
21693
|
-
integrationType?: StringFieldUpdateOperationsInput | string
|
|
21694
|
-
metric?: StringFieldUpdateOperationsInput | string
|
|
21695
|
-
window?: StringFieldUpdateOperationsInput | string
|
|
21696
|
-
value?: BigIntFieldUpdateOperationsInput | bigint | number
|
|
21697
|
-
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
21698
|
-
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
21699
|
-
}
|
|
21700
|
-
|
|
21701
20423
|
export type StringFilter<$PrismaModel = never> = {
|
|
21702
20424
|
equals?: string | StringFieldRefInput<$PrismaModel>
|
|
21703
20425
|
in?: string[] | ListStringFieldRefInput<$PrismaModel>
|
|
@@ -22557,81 +21279,6 @@ export namespace Prisma {
|
|
|
22557
21279
|
_max?: NestedBoolFilter<$PrismaModel>
|
|
22558
21280
|
}
|
|
22559
21281
|
|
|
22560
|
-
export type BigIntFilter<$PrismaModel = never> = {
|
|
22561
|
-
equals?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
22562
|
-
in?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel>
|
|
22563
|
-
notIn?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel>
|
|
22564
|
-
lt?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
22565
|
-
lte?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
22566
|
-
gt?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
22567
|
-
gte?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
22568
|
-
not?: NestedBigIntFilter<$PrismaModel> | bigint | number
|
|
22569
|
-
}
|
|
22570
|
-
|
|
22571
|
-
export type UsageCounterIntegrationIdIntegrationTypeMetricWindowCompoundUniqueInput = {
|
|
22572
|
-
integrationId: string
|
|
22573
|
-
integrationType: string
|
|
22574
|
-
metric: string
|
|
22575
|
-
window: string
|
|
22576
|
-
}
|
|
22577
|
-
|
|
22578
|
-
export type UsageCounterCountOrderByAggregateInput = {
|
|
22579
|
-
id?: SortOrder
|
|
22580
|
-
integrationId?: SortOrder
|
|
22581
|
-
integrationType?: SortOrder
|
|
22582
|
-
metric?: SortOrder
|
|
22583
|
-
window?: SortOrder
|
|
22584
|
-
value?: SortOrder
|
|
22585
|
-
createdAt?: SortOrder
|
|
22586
|
-
updatedAt?: SortOrder
|
|
22587
|
-
}
|
|
22588
|
-
|
|
22589
|
-
export type UsageCounterAvgOrderByAggregateInput = {
|
|
22590
|
-
value?: SortOrder
|
|
22591
|
-
}
|
|
22592
|
-
|
|
22593
|
-
export type UsageCounterMaxOrderByAggregateInput = {
|
|
22594
|
-
id?: SortOrder
|
|
22595
|
-
integrationId?: SortOrder
|
|
22596
|
-
integrationType?: SortOrder
|
|
22597
|
-
metric?: SortOrder
|
|
22598
|
-
window?: SortOrder
|
|
22599
|
-
value?: SortOrder
|
|
22600
|
-
createdAt?: SortOrder
|
|
22601
|
-
updatedAt?: SortOrder
|
|
22602
|
-
}
|
|
22603
|
-
|
|
22604
|
-
export type UsageCounterMinOrderByAggregateInput = {
|
|
22605
|
-
id?: SortOrder
|
|
22606
|
-
integrationId?: SortOrder
|
|
22607
|
-
integrationType?: SortOrder
|
|
22608
|
-
metric?: SortOrder
|
|
22609
|
-
window?: SortOrder
|
|
22610
|
-
value?: SortOrder
|
|
22611
|
-
createdAt?: SortOrder
|
|
22612
|
-
updatedAt?: SortOrder
|
|
22613
|
-
}
|
|
22614
|
-
|
|
22615
|
-
export type UsageCounterSumOrderByAggregateInput = {
|
|
22616
|
-
value?: SortOrder
|
|
22617
|
-
}
|
|
22618
|
-
|
|
22619
|
-
export type BigIntWithAggregatesFilter<$PrismaModel = never> = {
|
|
22620
|
-
equals?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
22621
|
-
in?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel>
|
|
22622
|
-
notIn?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel>
|
|
22623
|
-
lt?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
22624
|
-
lte?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
22625
|
-
gt?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
22626
|
-
gte?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
22627
|
-
not?: NestedBigIntWithAggregatesFilter<$PrismaModel> | bigint | number
|
|
22628
|
-
_count?: NestedIntFilter<$PrismaModel>
|
|
22629
|
-
_avg?: NestedFloatFilter<$PrismaModel>
|
|
22630
|
-
_sum?: NestedBigIntFilter<$PrismaModel>
|
|
22631
|
-
_min?: NestedBigIntFilter<$PrismaModel>
|
|
22632
|
-
_max?: NestedBigIntFilter<$PrismaModel>
|
|
22633
|
-
}
|
|
22634
|
-
|
|
22635
21282
|
export type UserCreateNestedOneWithoutMembersInput = {
|
|
22636
21283
|
create?: XOR<UserCreateWithoutMembersInput, UserUncheckedCreateWithoutMembersInput>
|
|
22637
21284
|
connectOrCreate?: UserCreateOrConnectWithoutMembersInput
|
|
@@ -23735,14 +22382,6 @@ export namespace Prisma {
|
|
|
23735
22382
|
set?: boolean
|
|
23736
22383
|
}
|
|
23737
22384
|
|
|
23738
|
-
export type BigIntFieldUpdateOperationsInput = {
|
|
23739
|
-
set?: bigint | number
|
|
23740
|
-
increment?: bigint | number
|
|
23741
|
-
decrement?: bigint | number
|
|
23742
|
-
multiply?: bigint | number
|
|
23743
|
-
divide?: bigint | number
|
|
23744
|
-
}
|
|
23745
|
-
|
|
23746
22385
|
export type NestedStringFilter<$PrismaModel = never> = {
|
|
23747
22386
|
equals?: string | StringFieldRefInput<$PrismaModel>
|
|
23748
22387
|
in?: string[] | ListStringFieldRefInput<$PrismaModel>
|
|
@@ -24001,44 +22640,6 @@ export namespace Prisma {
|
|
|
24001
22640
|
_max?: NestedBoolFilter<$PrismaModel>
|
|
24002
22641
|
}
|
|
24003
22642
|
|
|
24004
|
-
export type NestedBigIntFilter<$PrismaModel = never> = {
|
|
24005
|
-
equals?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
24006
|
-
in?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel>
|
|
24007
|
-
notIn?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel>
|
|
24008
|
-
lt?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
24009
|
-
lte?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
24010
|
-
gt?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
24011
|
-
gte?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
24012
|
-
not?: NestedBigIntFilter<$PrismaModel> | bigint | number
|
|
24013
|
-
}
|
|
24014
|
-
|
|
24015
|
-
export type NestedBigIntWithAggregatesFilter<$PrismaModel = never> = {
|
|
24016
|
-
equals?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
24017
|
-
in?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel>
|
|
24018
|
-
notIn?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel>
|
|
24019
|
-
lt?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
24020
|
-
lte?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
24021
|
-
gt?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
24022
|
-
gte?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
24023
|
-
not?: NestedBigIntWithAggregatesFilter<$PrismaModel> | bigint | number
|
|
24024
|
-
_count?: NestedIntFilter<$PrismaModel>
|
|
24025
|
-
_avg?: NestedFloatFilter<$PrismaModel>
|
|
24026
|
-
_sum?: NestedBigIntFilter<$PrismaModel>
|
|
24027
|
-
_min?: NestedBigIntFilter<$PrismaModel>
|
|
24028
|
-
_max?: NestedBigIntFilter<$PrismaModel>
|
|
24029
|
-
}
|
|
24030
|
-
|
|
24031
|
-
export type NestedFloatFilter<$PrismaModel = never> = {
|
|
24032
|
-
equals?: number | FloatFieldRefInput<$PrismaModel>
|
|
24033
|
-
in?: number[] | ListFloatFieldRefInput<$PrismaModel>
|
|
24034
|
-
notIn?: number[] | ListFloatFieldRefInput<$PrismaModel>
|
|
24035
|
-
lt?: number | FloatFieldRefInput<$PrismaModel>
|
|
24036
|
-
lte?: number | FloatFieldRefInput<$PrismaModel>
|
|
24037
|
-
gt?: number | FloatFieldRefInput<$PrismaModel>
|
|
24038
|
-
gte?: number | FloatFieldRefInput<$PrismaModel>
|
|
24039
|
-
not?: NestedFloatFilter<$PrismaModel> | number
|
|
24040
|
-
}
|
|
24041
|
-
|
|
24042
22643
|
export type UserCreateWithoutMembersInput = {
|
|
24043
22644
|
id?: string
|
|
24044
22645
|
type: $Enums.UserType
|