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