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