@shophost/rest-api 2.0.46 → 2.0.48
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 +2 -7
- package/package.json +1 -1
- package/schema.prisma +14 -0
- package/src/app.d.ts +3 -1
- package/src/app.js +1 -1
- package/src/app.js.map +1 -1
- package/src/core/db/__generated__/client/browser.d.ts +5 -0
- package/src/core/db/__generated__/client/client.d.ts +5 -0
- package/src/core/db/__generated__/client/commonInputTypes.d.ts +54 -54
- package/src/core/db/__generated__/client/internal/class.d.ts +11 -0
- package/src/core/db/__generated__/client/internal/class.js +16 -2
- package/src/core/db/__generated__/client/internal/class.js.map +1 -1
- package/src/core/db/__generated__/client/internal/prismaNamespace.d.ts +99 -13
- package/src/core/db/__generated__/client/internal/prismaNamespace.js +1 -1
- package/src/core/db/__generated__/client/internal/prismaNamespace.js.map +1 -1
- package/src/core/db/__generated__/client/internal/prismaNamespaceBrowser.d.ts +15 -4
- package/src/core/db/__generated__/client/internal/prismaNamespaceBrowser.js +1 -1
- package/src/core/db/__generated__/client/internal/prismaNamespaceBrowser.js.map +1 -1
- package/src/core/db/__generated__/client/models/Integration.d.ts +1240 -0
- package/src/core/db/__generated__/client/models/Integration.js +1 -0
- package/src/core/db/__generated__/client/models/Integration.js.map +1 -0
- package/src/core/db/__generated__/client/models/Organization.d.ts +235 -0
- package/src/core/db/__generated__/client/models.d.ts +1 -0
- package/src/core/lib/prisma.d.ts +24 -0
- package/src/core/notifications/notification-options.d.ts +3 -0
- package/src/core/notifications/notification-options.js +1 -0
- package/src/core/notifications/notification-options.js.map +1 -0
- package/src/features/index.d.ts +1 -0
- package/src/features/index.js +1 -1
- package/src/features/index.js.map +1 -1
- package/src/features/integration/integration.handler.d.ts +2 -0
- package/src/features/integration/integration.handler.js +1 -0
- package/src/features/integration/integration.handler.js.map +1 -0
- package/src/features/integration/integration.route.d.ts +212 -0
- package/src/features/integration/integration.route.js +1 -0
- package/src/features/integration/integration.route.js.map +1 -0
- package/src/features/integration/integration.schema.d.ts +44 -0
- package/src/features/integration/integration.schema.js +1 -0
- package/src/features/integration/integration.schema.js.map +1 -0
- package/src/features/integration/integration.service.d.ts +30 -0
- package/src/features/integration/integration.service.js +1 -0
- package/src/features/integration/integration.service.js.map +1 -0
- package/src/features/order/order.handler.d.ts +2 -1
- package/src/features/order/order.handler.js +1 -1
- package/src/features/order/order.handler.js.map +1 -1
- package/src/features/order/order.service.d.ts +3 -1
- package/src/features/order/order.service.js +1 -1
- package/src/features/order/order.service.js.map +1 -1
- package/src/features/organization/organization.service.js +1 -1
- package/src/features/organization/organization.service.js.map +1 -1
- package/src/features/payment/payment.handler.js +1 -1
- package/src/features/payment/payment.handler.js.map +1 -1
- package/src/features/payment/payment.service.d.ts +12 -7
- package/src/features/payment/payment.service.js +1 -1
- package/src/features/payment/payment.service.js.map +1 -1
- package/src/features/payment/stripe.service.d.ts +1 -1
- package/src/features/payment/stripe.service.js +1 -1
- package/src/features/payment/stripe.service.js.map +1 -1
- package/src/features/webhook/webhook.handler.d.ts +2 -1
- package/src/features/webhook/webhook.handler.js +1 -1
- package/src/features/webhook/webhook.handler.js.map +1 -1
- package/src/features/webhook/webhook.route.d.ts +64 -0
- package/src/features/webhook/webhook.route.js +1 -1
- package/src/features/webhook/webhook.route.js.map +1 -1
- package/src/index.d.ts +1 -0
- package/src/index.js.map +1 -1
- package/src/integrations/next.d.ts +3 -1
- package/src/integrations/next.js +1 -1
- package/src/integrations/next.js.map +1 -1
- package/src/schemas/index.d.ts +1 -0
- package/src/schemas/index.js +1 -1
- package/src/schemas/index.js.map +1 -1
|
@@ -0,0 +1,1240 @@
|
|
|
1
|
+
import type * as runtime from "@prisma/client/runtime/client";
|
|
2
|
+
import type * as Prisma from "../internal/prismaNamespace";
|
|
3
|
+
/**
|
|
4
|
+
* Model Integration
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
export type IntegrationModel = runtime.Types.Result.DefaultSelection<Prisma.$IntegrationPayload>;
|
|
8
|
+
export type AggregateIntegration = {
|
|
9
|
+
_count: IntegrationCountAggregateOutputType | null;
|
|
10
|
+
_min: IntegrationMinAggregateOutputType | null;
|
|
11
|
+
_max: IntegrationMaxAggregateOutputType | null;
|
|
12
|
+
};
|
|
13
|
+
export type IntegrationMinAggregateOutputType = {
|
|
14
|
+
organizationId: string | null;
|
|
15
|
+
type: string | null;
|
|
16
|
+
createdAt: Date | null;
|
|
17
|
+
createdBy: string | null;
|
|
18
|
+
updatedAt: Date | null;
|
|
19
|
+
updatedBy: string | null;
|
|
20
|
+
};
|
|
21
|
+
export type IntegrationMaxAggregateOutputType = {
|
|
22
|
+
organizationId: string | null;
|
|
23
|
+
type: string | null;
|
|
24
|
+
createdAt: Date | null;
|
|
25
|
+
createdBy: string | null;
|
|
26
|
+
updatedAt: Date | null;
|
|
27
|
+
updatedBy: string | null;
|
|
28
|
+
};
|
|
29
|
+
export type IntegrationCountAggregateOutputType = {
|
|
30
|
+
organizationId: number;
|
|
31
|
+
type: number;
|
|
32
|
+
config: number;
|
|
33
|
+
createdAt: number;
|
|
34
|
+
createdBy: number;
|
|
35
|
+
updatedAt: number;
|
|
36
|
+
updatedBy: number;
|
|
37
|
+
_all: number;
|
|
38
|
+
};
|
|
39
|
+
export type IntegrationMinAggregateInputType = {
|
|
40
|
+
organizationId?: true;
|
|
41
|
+
type?: true;
|
|
42
|
+
createdAt?: true;
|
|
43
|
+
createdBy?: true;
|
|
44
|
+
updatedAt?: true;
|
|
45
|
+
updatedBy?: true;
|
|
46
|
+
};
|
|
47
|
+
export type IntegrationMaxAggregateInputType = {
|
|
48
|
+
organizationId?: true;
|
|
49
|
+
type?: true;
|
|
50
|
+
createdAt?: true;
|
|
51
|
+
createdBy?: true;
|
|
52
|
+
updatedAt?: true;
|
|
53
|
+
updatedBy?: true;
|
|
54
|
+
};
|
|
55
|
+
export type IntegrationCountAggregateInputType = {
|
|
56
|
+
organizationId?: true;
|
|
57
|
+
type?: true;
|
|
58
|
+
config?: true;
|
|
59
|
+
createdAt?: true;
|
|
60
|
+
createdBy?: true;
|
|
61
|
+
updatedAt?: true;
|
|
62
|
+
updatedBy?: true;
|
|
63
|
+
_all?: true;
|
|
64
|
+
};
|
|
65
|
+
export type IntegrationAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
66
|
+
/**
|
|
67
|
+
* Filter which Integration to aggregate.
|
|
68
|
+
*/
|
|
69
|
+
where?: Prisma.IntegrationWhereInput;
|
|
70
|
+
/**
|
|
71
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
72
|
+
*
|
|
73
|
+
* Determine the order of Integrations to fetch.
|
|
74
|
+
*/
|
|
75
|
+
orderBy?: Prisma.IntegrationOrderByWithRelationInput | Prisma.IntegrationOrderByWithRelationInput[];
|
|
76
|
+
/**
|
|
77
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
78
|
+
*
|
|
79
|
+
* Sets the start position
|
|
80
|
+
*/
|
|
81
|
+
cursor?: Prisma.IntegrationWhereUniqueInput;
|
|
82
|
+
/**
|
|
83
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
84
|
+
*
|
|
85
|
+
* Take `±n` Integrations from the position of the cursor.
|
|
86
|
+
*/
|
|
87
|
+
take?: number;
|
|
88
|
+
/**
|
|
89
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
90
|
+
*
|
|
91
|
+
* Skip the first `n` Integrations.
|
|
92
|
+
*/
|
|
93
|
+
skip?: number;
|
|
94
|
+
/**
|
|
95
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
96
|
+
*
|
|
97
|
+
* Count returned Integrations
|
|
98
|
+
**/
|
|
99
|
+
_count?: true | IntegrationCountAggregateInputType;
|
|
100
|
+
/**
|
|
101
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
102
|
+
*
|
|
103
|
+
* Select which fields to find the minimum value
|
|
104
|
+
**/
|
|
105
|
+
_min?: IntegrationMinAggregateInputType;
|
|
106
|
+
/**
|
|
107
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
108
|
+
*
|
|
109
|
+
* Select which fields to find the maximum value
|
|
110
|
+
**/
|
|
111
|
+
_max?: IntegrationMaxAggregateInputType;
|
|
112
|
+
};
|
|
113
|
+
export type GetIntegrationAggregateType<T extends IntegrationAggregateArgs> = {
|
|
114
|
+
[P in keyof T & keyof AggregateIntegration]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateIntegration[P]> : Prisma.GetScalarType<T[P], AggregateIntegration[P]>;
|
|
115
|
+
};
|
|
116
|
+
export type IntegrationGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
117
|
+
where?: Prisma.IntegrationWhereInput;
|
|
118
|
+
orderBy?: Prisma.IntegrationOrderByWithAggregationInput | Prisma.IntegrationOrderByWithAggregationInput[];
|
|
119
|
+
by: Prisma.IntegrationScalarFieldEnum[] | Prisma.IntegrationScalarFieldEnum;
|
|
120
|
+
having?: Prisma.IntegrationScalarWhereWithAggregatesInput;
|
|
121
|
+
take?: number;
|
|
122
|
+
skip?: number;
|
|
123
|
+
_count?: IntegrationCountAggregateInputType | true;
|
|
124
|
+
_min?: IntegrationMinAggregateInputType;
|
|
125
|
+
_max?: IntegrationMaxAggregateInputType;
|
|
126
|
+
};
|
|
127
|
+
export type IntegrationGroupByOutputType = {
|
|
128
|
+
organizationId: string;
|
|
129
|
+
type: string;
|
|
130
|
+
config: runtime.JsonValue;
|
|
131
|
+
createdAt: Date;
|
|
132
|
+
createdBy: string | null;
|
|
133
|
+
updatedAt: Date;
|
|
134
|
+
updatedBy: string | null;
|
|
135
|
+
_count: IntegrationCountAggregateOutputType | null;
|
|
136
|
+
_min: IntegrationMinAggregateOutputType | null;
|
|
137
|
+
_max: IntegrationMaxAggregateOutputType | null;
|
|
138
|
+
};
|
|
139
|
+
type GetIntegrationGroupByPayload<T extends IntegrationGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<IntegrationGroupByOutputType, T['by']> & {
|
|
140
|
+
[P in ((keyof T) & (keyof IntegrationGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], IntegrationGroupByOutputType[P]> : Prisma.GetScalarType<T[P], IntegrationGroupByOutputType[P]>;
|
|
141
|
+
}>>;
|
|
142
|
+
export type IntegrationWhereInput = {
|
|
143
|
+
AND?: Prisma.IntegrationWhereInput | Prisma.IntegrationWhereInput[];
|
|
144
|
+
OR?: Prisma.IntegrationWhereInput[];
|
|
145
|
+
NOT?: Prisma.IntegrationWhereInput | Prisma.IntegrationWhereInput[];
|
|
146
|
+
organizationId?: Prisma.StringFilter<"Integration"> | string;
|
|
147
|
+
type?: Prisma.StringFilter<"Integration"> | string;
|
|
148
|
+
config?: Prisma.JsonFilter<"Integration">;
|
|
149
|
+
createdAt?: Prisma.DateTimeFilter<"Integration"> | Date | string;
|
|
150
|
+
createdBy?: Prisma.StringNullableFilter<"Integration"> | string | null;
|
|
151
|
+
updatedAt?: Prisma.DateTimeFilter<"Integration"> | Date | string;
|
|
152
|
+
updatedBy?: Prisma.StringNullableFilter<"Integration"> | string | null;
|
|
153
|
+
organization?: Prisma.XOR<Prisma.OrganizationScalarRelationFilter, Prisma.OrganizationWhereInput>;
|
|
154
|
+
};
|
|
155
|
+
export type IntegrationOrderByWithRelationInput = {
|
|
156
|
+
organizationId?: Prisma.SortOrder;
|
|
157
|
+
type?: Prisma.SortOrder;
|
|
158
|
+
config?: Prisma.SortOrder;
|
|
159
|
+
createdAt?: Prisma.SortOrder;
|
|
160
|
+
createdBy?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
161
|
+
updatedAt?: Prisma.SortOrder;
|
|
162
|
+
updatedBy?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
163
|
+
organization?: Prisma.OrganizationOrderByWithRelationInput;
|
|
164
|
+
};
|
|
165
|
+
export type IntegrationWhereUniqueInput = Prisma.AtLeast<{
|
|
166
|
+
organizationId_type?: Prisma.IntegrationOrganizationIdTypeCompoundUniqueInput;
|
|
167
|
+
AND?: Prisma.IntegrationWhereInput | Prisma.IntegrationWhereInput[];
|
|
168
|
+
OR?: Prisma.IntegrationWhereInput[];
|
|
169
|
+
NOT?: Prisma.IntegrationWhereInput | Prisma.IntegrationWhereInput[];
|
|
170
|
+
organizationId?: Prisma.StringFilter<"Integration"> | string;
|
|
171
|
+
type?: Prisma.StringFilter<"Integration"> | string;
|
|
172
|
+
config?: Prisma.JsonFilter<"Integration">;
|
|
173
|
+
createdAt?: Prisma.DateTimeFilter<"Integration"> | Date | string;
|
|
174
|
+
createdBy?: Prisma.StringNullableFilter<"Integration"> | string | null;
|
|
175
|
+
updatedAt?: Prisma.DateTimeFilter<"Integration"> | Date | string;
|
|
176
|
+
updatedBy?: Prisma.StringNullableFilter<"Integration"> | string | null;
|
|
177
|
+
organization?: Prisma.XOR<Prisma.OrganizationScalarRelationFilter, Prisma.OrganizationWhereInput>;
|
|
178
|
+
}, "organizationId_type">;
|
|
179
|
+
export type IntegrationOrderByWithAggregationInput = {
|
|
180
|
+
organizationId?: Prisma.SortOrder;
|
|
181
|
+
type?: Prisma.SortOrder;
|
|
182
|
+
config?: Prisma.SortOrder;
|
|
183
|
+
createdAt?: Prisma.SortOrder;
|
|
184
|
+
createdBy?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
185
|
+
updatedAt?: Prisma.SortOrder;
|
|
186
|
+
updatedBy?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
187
|
+
_count?: Prisma.IntegrationCountOrderByAggregateInput;
|
|
188
|
+
_max?: Prisma.IntegrationMaxOrderByAggregateInput;
|
|
189
|
+
_min?: Prisma.IntegrationMinOrderByAggregateInput;
|
|
190
|
+
};
|
|
191
|
+
export type IntegrationScalarWhereWithAggregatesInput = {
|
|
192
|
+
AND?: Prisma.IntegrationScalarWhereWithAggregatesInput | Prisma.IntegrationScalarWhereWithAggregatesInput[];
|
|
193
|
+
OR?: Prisma.IntegrationScalarWhereWithAggregatesInput[];
|
|
194
|
+
NOT?: Prisma.IntegrationScalarWhereWithAggregatesInput | Prisma.IntegrationScalarWhereWithAggregatesInput[];
|
|
195
|
+
organizationId?: Prisma.StringWithAggregatesFilter<"Integration"> | string;
|
|
196
|
+
type?: Prisma.StringWithAggregatesFilter<"Integration"> | string;
|
|
197
|
+
config?: Prisma.JsonWithAggregatesFilter<"Integration">;
|
|
198
|
+
createdAt?: Prisma.DateTimeWithAggregatesFilter<"Integration"> | Date | string;
|
|
199
|
+
createdBy?: Prisma.StringNullableWithAggregatesFilter<"Integration"> | string | null;
|
|
200
|
+
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Integration"> | Date | string;
|
|
201
|
+
updatedBy?: Prisma.StringNullableWithAggregatesFilter<"Integration"> | string | null;
|
|
202
|
+
};
|
|
203
|
+
export type IntegrationCreateInput = {
|
|
204
|
+
type: string;
|
|
205
|
+
config: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
206
|
+
createdAt?: Date | string;
|
|
207
|
+
createdBy?: string | null;
|
|
208
|
+
updatedAt?: Date | string;
|
|
209
|
+
updatedBy?: string | null;
|
|
210
|
+
organization: Prisma.OrganizationCreateNestedOneWithoutIntegrationsInput;
|
|
211
|
+
};
|
|
212
|
+
export type IntegrationUncheckedCreateInput = {
|
|
213
|
+
organizationId: string;
|
|
214
|
+
type: string;
|
|
215
|
+
config: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
216
|
+
createdAt?: Date | string;
|
|
217
|
+
createdBy?: string | null;
|
|
218
|
+
updatedAt?: Date | string;
|
|
219
|
+
updatedBy?: string | null;
|
|
220
|
+
};
|
|
221
|
+
export type IntegrationUpdateInput = {
|
|
222
|
+
type?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
223
|
+
config?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
224
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
225
|
+
createdBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
226
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
227
|
+
updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
228
|
+
organization?: Prisma.OrganizationUpdateOneRequiredWithoutIntegrationsNestedInput;
|
|
229
|
+
};
|
|
230
|
+
export type IntegrationUncheckedUpdateInput = {
|
|
231
|
+
organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
232
|
+
type?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
233
|
+
config?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
234
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
235
|
+
createdBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
236
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
237
|
+
updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
238
|
+
};
|
|
239
|
+
export type IntegrationCreateManyInput = {
|
|
240
|
+
organizationId: string;
|
|
241
|
+
type: string;
|
|
242
|
+
config: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
243
|
+
createdAt?: Date | string;
|
|
244
|
+
createdBy?: string | null;
|
|
245
|
+
updatedAt?: Date | string;
|
|
246
|
+
updatedBy?: string | null;
|
|
247
|
+
};
|
|
248
|
+
export type IntegrationUpdateManyMutationInput = {
|
|
249
|
+
type?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
250
|
+
config?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
251
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
252
|
+
createdBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
253
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
254
|
+
updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
255
|
+
};
|
|
256
|
+
export type IntegrationUncheckedUpdateManyInput = {
|
|
257
|
+
organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
258
|
+
type?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
259
|
+
config?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
260
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
261
|
+
createdBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
262
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
263
|
+
updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
264
|
+
};
|
|
265
|
+
export type IntegrationListRelationFilter = {
|
|
266
|
+
every?: Prisma.IntegrationWhereInput;
|
|
267
|
+
some?: Prisma.IntegrationWhereInput;
|
|
268
|
+
none?: Prisma.IntegrationWhereInput;
|
|
269
|
+
};
|
|
270
|
+
export type IntegrationOrderByRelationAggregateInput = {
|
|
271
|
+
_count?: Prisma.SortOrder;
|
|
272
|
+
};
|
|
273
|
+
export type IntegrationOrganizationIdTypeCompoundUniqueInput = {
|
|
274
|
+
organizationId: string;
|
|
275
|
+
type: string;
|
|
276
|
+
};
|
|
277
|
+
export type IntegrationCountOrderByAggregateInput = {
|
|
278
|
+
organizationId?: Prisma.SortOrder;
|
|
279
|
+
type?: Prisma.SortOrder;
|
|
280
|
+
config?: Prisma.SortOrder;
|
|
281
|
+
createdAt?: Prisma.SortOrder;
|
|
282
|
+
createdBy?: Prisma.SortOrder;
|
|
283
|
+
updatedAt?: Prisma.SortOrder;
|
|
284
|
+
updatedBy?: Prisma.SortOrder;
|
|
285
|
+
};
|
|
286
|
+
export type IntegrationMaxOrderByAggregateInput = {
|
|
287
|
+
organizationId?: Prisma.SortOrder;
|
|
288
|
+
type?: Prisma.SortOrder;
|
|
289
|
+
createdAt?: Prisma.SortOrder;
|
|
290
|
+
createdBy?: Prisma.SortOrder;
|
|
291
|
+
updatedAt?: Prisma.SortOrder;
|
|
292
|
+
updatedBy?: Prisma.SortOrder;
|
|
293
|
+
};
|
|
294
|
+
export type IntegrationMinOrderByAggregateInput = {
|
|
295
|
+
organizationId?: Prisma.SortOrder;
|
|
296
|
+
type?: Prisma.SortOrder;
|
|
297
|
+
createdAt?: Prisma.SortOrder;
|
|
298
|
+
createdBy?: Prisma.SortOrder;
|
|
299
|
+
updatedAt?: Prisma.SortOrder;
|
|
300
|
+
updatedBy?: Prisma.SortOrder;
|
|
301
|
+
};
|
|
302
|
+
export type IntegrationCreateNestedManyWithoutOrganizationInput = {
|
|
303
|
+
create?: Prisma.XOR<Prisma.IntegrationCreateWithoutOrganizationInput, Prisma.IntegrationUncheckedCreateWithoutOrganizationInput> | Prisma.IntegrationCreateWithoutOrganizationInput[] | Prisma.IntegrationUncheckedCreateWithoutOrganizationInput[];
|
|
304
|
+
connectOrCreate?: Prisma.IntegrationCreateOrConnectWithoutOrganizationInput | Prisma.IntegrationCreateOrConnectWithoutOrganizationInput[];
|
|
305
|
+
createMany?: Prisma.IntegrationCreateManyOrganizationInputEnvelope;
|
|
306
|
+
connect?: Prisma.IntegrationWhereUniqueInput | Prisma.IntegrationWhereUniqueInput[];
|
|
307
|
+
};
|
|
308
|
+
export type IntegrationUncheckedCreateNestedManyWithoutOrganizationInput = {
|
|
309
|
+
create?: Prisma.XOR<Prisma.IntegrationCreateWithoutOrganizationInput, Prisma.IntegrationUncheckedCreateWithoutOrganizationInput> | Prisma.IntegrationCreateWithoutOrganizationInput[] | Prisma.IntegrationUncheckedCreateWithoutOrganizationInput[];
|
|
310
|
+
connectOrCreate?: Prisma.IntegrationCreateOrConnectWithoutOrganizationInput | Prisma.IntegrationCreateOrConnectWithoutOrganizationInput[];
|
|
311
|
+
createMany?: Prisma.IntegrationCreateManyOrganizationInputEnvelope;
|
|
312
|
+
connect?: Prisma.IntegrationWhereUniqueInput | Prisma.IntegrationWhereUniqueInput[];
|
|
313
|
+
};
|
|
314
|
+
export type IntegrationUpdateManyWithoutOrganizationNestedInput = {
|
|
315
|
+
create?: Prisma.XOR<Prisma.IntegrationCreateWithoutOrganizationInput, Prisma.IntegrationUncheckedCreateWithoutOrganizationInput> | Prisma.IntegrationCreateWithoutOrganizationInput[] | Prisma.IntegrationUncheckedCreateWithoutOrganizationInput[];
|
|
316
|
+
connectOrCreate?: Prisma.IntegrationCreateOrConnectWithoutOrganizationInput | Prisma.IntegrationCreateOrConnectWithoutOrganizationInput[];
|
|
317
|
+
upsert?: Prisma.IntegrationUpsertWithWhereUniqueWithoutOrganizationInput | Prisma.IntegrationUpsertWithWhereUniqueWithoutOrganizationInput[];
|
|
318
|
+
createMany?: Prisma.IntegrationCreateManyOrganizationInputEnvelope;
|
|
319
|
+
set?: Prisma.IntegrationWhereUniqueInput | Prisma.IntegrationWhereUniqueInput[];
|
|
320
|
+
disconnect?: Prisma.IntegrationWhereUniqueInput | Prisma.IntegrationWhereUniqueInput[];
|
|
321
|
+
delete?: Prisma.IntegrationWhereUniqueInput | Prisma.IntegrationWhereUniqueInput[];
|
|
322
|
+
connect?: Prisma.IntegrationWhereUniqueInput | Prisma.IntegrationWhereUniqueInput[];
|
|
323
|
+
update?: Prisma.IntegrationUpdateWithWhereUniqueWithoutOrganizationInput | Prisma.IntegrationUpdateWithWhereUniqueWithoutOrganizationInput[];
|
|
324
|
+
updateMany?: Prisma.IntegrationUpdateManyWithWhereWithoutOrganizationInput | Prisma.IntegrationUpdateManyWithWhereWithoutOrganizationInput[];
|
|
325
|
+
deleteMany?: Prisma.IntegrationScalarWhereInput | Prisma.IntegrationScalarWhereInput[];
|
|
326
|
+
};
|
|
327
|
+
export type IntegrationUncheckedUpdateManyWithoutOrganizationNestedInput = {
|
|
328
|
+
create?: Prisma.XOR<Prisma.IntegrationCreateWithoutOrganizationInput, Prisma.IntegrationUncheckedCreateWithoutOrganizationInput> | Prisma.IntegrationCreateWithoutOrganizationInput[] | Prisma.IntegrationUncheckedCreateWithoutOrganizationInput[];
|
|
329
|
+
connectOrCreate?: Prisma.IntegrationCreateOrConnectWithoutOrganizationInput | Prisma.IntegrationCreateOrConnectWithoutOrganizationInput[];
|
|
330
|
+
upsert?: Prisma.IntegrationUpsertWithWhereUniqueWithoutOrganizationInput | Prisma.IntegrationUpsertWithWhereUniqueWithoutOrganizationInput[];
|
|
331
|
+
createMany?: Prisma.IntegrationCreateManyOrganizationInputEnvelope;
|
|
332
|
+
set?: Prisma.IntegrationWhereUniqueInput | Prisma.IntegrationWhereUniqueInput[];
|
|
333
|
+
disconnect?: Prisma.IntegrationWhereUniqueInput | Prisma.IntegrationWhereUniqueInput[];
|
|
334
|
+
delete?: Prisma.IntegrationWhereUniqueInput | Prisma.IntegrationWhereUniqueInput[];
|
|
335
|
+
connect?: Prisma.IntegrationWhereUniqueInput | Prisma.IntegrationWhereUniqueInput[];
|
|
336
|
+
update?: Prisma.IntegrationUpdateWithWhereUniqueWithoutOrganizationInput | Prisma.IntegrationUpdateWithWhereUniqueWithoutOrganizationInput[];
|
|
337
|
+
updateMany?: Prisma.IntegrationUpdateManyWithWhereWithoutOrganizationInput | Prisma.IntegrationUpdateManyWithWhereWithoutOrganizationInput[];
|
|
338
|
+
deleteMany?: Prisma.IntegrationScalarWhereInput | Prisma.IntegrationScalarWhereInput[];
|
|
339
|
+
};
|
|
340
|
+
export type IntegrationCreateWithoutOrganizationInput = {
|
|
341
|
+
type: string;
|
|
342
|
+
config: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
343
|
+
createdAt?: Date | string;
|
|
344
|
+
createdBy?: string | null;
|
|
345
|
+
updatedAt?: Date | string;
|
|
346
|
+
updatedBy?: string | null;
|
|
347
|
+
};
|
|
348
|
+
export type IntegrationUncheckedCreateWithoutOrganizationInput = {
|
|
349
|
+
type: string;
|
|
350
|
+
config: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
351
|
+
createdAt?: Date | string;
|
|
352
|
+
createdBy?: string | null;
|
|
353
|
+
updatedAt?: Date | string;
|
|
354
|
+
updatedBy?: string | null;
|
|
355
|
+
};
|
|
356
|
+
export type IntegrationCreateOrConnectWithoutOrganizationInput = {
|
|
357
|
+
where: Prisma.IntegrationWhereUniqueInput;
|
|
358
|
+
create: Prisma.XOR<Prisma.IntegrationCreateWithoutOrganizationInput, Prisma.IntegrationUncheckedCreateWithoutOrganizationInput>;
|
|
359
|
+
};
|
|
360
|
+
export type IntegrationCreateManyOrganizationInputEnvelope = {
|
|
361
|
+
data: Prisma.IntegrationCreateManyOrganizationInput | Prisma.IntegrationCreateManyOrganizationInput[];
|
|
362
|
+
skipDuplicates?: boolean;
|
|
363
|
+
};
|
|
364
|
+
export type IntegrationUpsertWithWhereUniqueWithoutOrganizationInput = {
|
|
365
|
+
where: Prisma.IntegrationWhereUniqueInput;
|
|
366
|
+
update: Prisma.XOR<Prisma.IntegrationUpdateWithoutOrganizationInput, Prisma.IntegrationUncheckedUpdateWithoutOrganizationInput>;
|
|
367
|
+
create: Prisma.XOR<Prisma.IntegrationCreateWithoutOrganizationInput, Prisma.IntegrationUncheckedCreateWithoutOrganizationInput>;
|
|
368
|
+
};
|
|
369
|
+
export type IntegrationUpdateWithWhereUniqueWithoutOrganizationInput = {
|
|
370
|
+
where: Prisma.IntegrationWhereUniqueInput;
|
|
371
|
+
data: Prisma.XOR<Prisma.IntegrationUpdateWithoutOrganizationInput, Prisma.IntegrationUncheckedUpdateWithoutOrganizationInput>;
|
|
372
|
+
};
|
|
373
|
+
export type IntegrationUpdateManyWithWhereWithoutOrganizationInput = {
|
|
374
|
+
where: Prisma.IntegrationScalarWhereInput;
|
|
375
|
+
data: Prisma.XOR<Prisma.IntegrationUpdateManyMutationInput, Prisma.IntegrationUncheckedUpdateManyWithoutOrganizationInput>;
|
|
376
|
+
};
|
|
377
|
+
export type IntegrationScalarWhereInput = {
|
|
378
|
+
AND?: Prisma.IntegrationScalarWhereInput | Prisma.IntegrationScalarWhereInput[];
|
|
379
|
+
OR?: Prisma.IntegrationScalarWhereInput[];
|
|
380
|
+
NOT?: Prisma.IntegrationScalarWhereInput | Prisma.IntegrationScalarWhereInput[];
|
|
381
|
+
organizationId?: Prisma.StringFilter<"Integration"> | string;
|
|
382
|
+
type?: Prisma.StringFilter<"Integration"> | string;
|
|
383
|
+
config?: Prisma.JsonFilter<"Integration">;
|
|
384
|
+
createdAt?: Prisma.DateTimeFilter<"Integration"> | Date | string;
|
|
385
|
+
createdBy?: Prisma.StringNullableFilter<"Integration"> | string | null;
|
|
386
|
+
updatedAt?: Prisma.DateTimeFilter<"Integration"> | Date | string;
|
|
387
|
+
updatedBy?: Prisma.StringNullableFilter<"Integration"> | string | null;
|
|
388
|
+
};
|
|
389
|
+
export type IntegrationCreateManyOrganizationInput = {
|
|
390
|
+
type: string;
|
|
391
|
+
config: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
392
|
+
createdAt?: Date | string;
|
|
393
|
+
createdBy?: string | null;
|
|
394
|
+
updatedAt?: Date | string;
|
|
395
|
+
updatedBy?: string | null;
|
|
396
|
+
};
|
|
397
|
+
export type IntegrationUpdateWithoutOrganizationInput = {
|
|
398
|
+
type?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
399
|
+
config?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
400
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
401
|
+
createdBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
402
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
403
|
+
updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
404
|
+
};
|
|
405
|
+
export type IntegrationUncheckedUpdateWithoutOrganizationInput = {
|
|
406
|
+
type?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
407
|
+
config?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
408
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
409
|
+
createdBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
410
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
411
|
+
updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
412
|
+
};
|
|
413
|
+
export type IntegrationUncheckedUpdateManyWithoutOrganizationInput = {
|
|
414
|
+
type?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
415
|
+
config?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
416
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
417
|
+
createdBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
418
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
419
|
+
updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
420
|
+
};
|
|
421
|
+
export type IntegrationSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
422
|
+
organizationId?: boolean;
|
|
423
|
+
type?: boolean;
|
|
424
|
+
config?: boolean;
|
|
425
|
+
createdAt?: boolean;
|
|
426
|
+
createdBy?: boolean;
|
|
427
|
+
updatedAt?: boolean;
|
|
428
|
+
updatedBy?: boolean;
|
|
429
|
+
organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
|
|
430
|
+
}, ExtArgs["result"]["integration"]>;
|
|
431
|
+
export type IntegrationSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
432
|
+
organizationId?: boolean;
|
|
433
|
+
type?: boolean;
|
|
434
|
+
config?: boolean;
|
|
435
|
+
createdAt?: boolean;
|
|
436
|
+
createdBy?: boolean;
|
|
437
|
+
updatedAt?: boolean;
|
|
438
|
+
updatedBy?: boolean;
|
|
439
|
+
organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
|
|
440
|
+
}, ExtArgs["result"]["integration"]>;
|
|
441
|
+
export type IntegrationSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
442
|
+
organizationId?: boolean;
|
|
443
|
+
type?: boolean;
|
|
444
|
+
config?: boolean;
|
|
445
|
+
createdAt?: boolean;
|
|
446
|
+
createdBy?: boolean;
|
|
447
|
+
updatedAt?: boolean;
|
|
448
|
+
updatedBy?: boolean;
|
|
449
|
+
organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
|
|
450
|
+
}, ExtArgs["result"]["integration"]>;
|
|
451
|
+
export type IntegrationSelectScalar = {
|
|
452
|
+
organizationId?: boolean;
|
|
453
|
+
type?: boolean;
|
|
454
|
+
config?: boolean;
|
|
455
|
+
createdAt?: boolean;
|
|
456
|
+
createdBy?: boolean;
|
|
457
|
+
updatedAt?: boolean;
|
|
458
|
+
updatedBy?: boolean;
|
|
459
|
+
};
|
|
460
|
+
export type IntegrationOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"organizationId" | "type" | "config" | "createdAt" | "createdBy" | "updatedAt" | "updatedBy", ExtArgs["result"]["integration"]>;
|
|
461
|
+
export type IntegrationInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
462
|
+
organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
|
|
463
|
+
};
|
|
464
|
+
export type IntegrationIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
465
|
+
organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
|
|
466
|
+
};
|
|
467
|
+
export type IntegrationIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
468
|
+
organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
|
|
469
|
+
};
|
|
470
|
+
export type $IntegrationPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
471
|
+
name: "Integration";
|
|
472
|
+
objects: {
|
|
473
|
+
organization: Prisma.$OrganizationPayload<ExtArgs>;
|
|
474
|
+
};
|
|
475
|
+
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
476
|
+
organizationId: string;
|
|
477
|
+
type: string;
|
|
478
|
+
config: runtime.JsonValue;
|
|
479
|
+
createdAt: Date;
|
|
480
|
+
createdBy: string | null;
|
|
481
|
+
updatedAt: Date;
|
|
482
|
+
updatedBy: string | null;
|
|
483
|
+
}, ExtArgs["result"]["integration"]>;
|
|
484
|
+
composites: {};
|
|
485
|
+
};
|
|
486
|
+
export type IntegrationGetPayload<S extends boolean | null | undefined | IntegrationDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$IntegrationPayload, S>;
|
|
487
|
+
export type IntegrationCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<IntegrationFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
488
|
+
select?: IntegrationCountAggregateInputType | true;
|
|
489
|
+
};
|
|
490
|
+
export interface IntegrationDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
491
|
+
[K: symbol]: {
|
|
492
|
+
types: Prisma.TypeMap<ExtArgs>['model']['Integration'];
|
|
493
|
+
meta: {
|
|
494
|
+
name: 'Integration';
|
|
495
|
+
};
|
|
496
|
+
};
|
|
497
|
+
/**
|
|
498
|
+
* Find zero or one Integration that matches the filter.
|
|
499
|
+
* @param {IntegrationFindUniqueArgs} args - Arguments to find a Integration
|
|
500
|
+
* @example
|
|
501
|
+
* // Get one Integration
|
|
502
|
+
* const integration = await prisma.integration.findUnique({
|
|
503
|
+
* where: {
|
|
504
|
+
* // ... provide filter here
|
|
505
|
+
* }
|
|
506
|
+
* })
|
|
507
|
+
*/
|
|
508
|
+
findUnique<T extends IntegrationFindUniqueArgs>(args: Prisma.SelectSubset<T, IntegrationFindUniqueArgs<ExtArgs>>): Prisma.Prisma__IntegrationClient<runtime.Types.Result.GetResult<Prisma.$IntegrationPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
509
|
+
/**
|
|
510
|
+
* Find one Integration that matches the filter or throw an error with `error.code='P2025'`
|
|
511
|
+
* if no matches were found.
|
|
512
|
+
* @param {IntegrationFindUniqueOrThrowArgs} args - Arguments to find a Integration
|
|
513
|
+
* @example
|
|
514
|
+
* // Get one Integration
|
|
515
|
+
* const integration = await prisma.integration.findUniqueOrThrow({
|
|
516
|
+
* where: {
|
|
517
|
+
* // ... provide filter here
|
|
518
|
+
* }
|
|
519
|
+
* })
|
|
520
|
+
*/
|
|
521
|
+
findUniqueOrThrow<T extends IntegrationFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, IntegrationFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__IntegrationClient<runtime.Types.Result.GetResult<Prisma.$IntegrationPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
522
|
+
/**
|
|
523
|
+
* Find the first Integration that matches the filter.
|
|
524
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
525
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
526
|
+
* @param {IntegrationFindFirstArgs} args - Arguments to find a Integration
|
|
527
|
+
* @example
|
|
528
|
+
* // Get one Integration
|
|
529
|
+
* const integration = await prisma.integration.findFirst({
|
|
530
|
+
* where: {
|
|
531
|
+
* // ... provide filter here
|
|
532
|
+
* }
|
|
533
|
+
* })
|
|
534
|
+
*/
|
|
535
|
+
findFirst<T extends IntegrationFindFirstArgs>(args?: Prisma.SelectSubset<T, IntegrationFindFirstArgs<ExtArgs>>): Prisma.Prisma__IntegrationClient<runtime.Types.Result.GetResult<Prisma.$IntegrationPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
536
|
+
/**
|
|
537
|
+
* Find the first Integration that matches the filter or
|
|
538
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
539
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
540
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
541
|
+
* @param {IntegrationFindFirstOrThrowArgs} args - Arguments to find a Integration
|
|
542
|
+
* @example
|
|
543
|
+
* // Get one Integration
|
|
544
|
+
* const integration = await prisma.integration.findFirstOrThrow({
|
|
545
|
+
* where: {
|
|
546
|
+
* // ... provide filter here
|
|
547
|
+
* }
|
|
548
|
+
* })
|
|
549
|
+
*/
|
|
550
|
+
findFirstOrThrow<T extends IntegrationFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, IntegrationFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__IntegrationClient<runtime.Types.Result.GetResult<Prisma.$IntegrationPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
551
|
+
/**
|
|
552
|
+
* Find zero or more Integrations that matches the filter.
|
|
553
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
554
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
555
|
+
* @param {IntegrationFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
556
|
+
* @example
|
|
557
|
+
* // Get all Integrations
|
|
558
|
+
* const integrations = await prisma.integration.findMany()
|
|
559
|
+
*
|
|
560
|
+
* // Get first 10 Integrations
|
|
561
|
+
* const integrations = await prisma.integration.findMany({ take: 10 })
|
|
562
|
+
*
|
|
563
|
+
* // Only select the `organizationId`
|
|
564
|
+
* const integrationWithOrganizationIdOnly = await prisma.integration.findMany({ select: { organizationId: true } })
|
|
565
|
+
*
|
|
566
|
+
*/
|
|
567
|
+
findMany<T extends IntegrationFindManyArgs>(args?: Prisma.SelectSubset<T, IntegrationFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$IntegrationPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
|
|
568
|
+
/**
|
|
569
|
+
* Create a Integration.
|
|
570
|
+
* @param {IntegrationCreateArgs} args - Arguments to create a Integration.
|
|
571
|
+
* @example
|
|
572
|
+
* // Create one Integration
|
|
573
|
+
* const Integration = await prisma.integration.create({
|
|
574
|
+
* data: {
|
|
575
|
+
* // ... data to create a Integration
|
|
576
|
+
* }
|
|
577
|
+
* })
|
|
578
|
+
*
|
|
579
|
+
*/
|
|
580
|
+
create<T extends IntegrationCreateArgs>(args: Prisma.SelectSubset<T, IntegrationCreateArgs<ExtArgs>>): Prisma.Prisma__IntegrationClient<runtime.Types.Result.GetResult<Prisma.$IntegrationPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
581
|
+
/**
|
|
582
|
+
* Create many Integrations.
|
|
583
|
+
* @param {IntegrationCreateManyArgs} args - Arguments to create many Integrations.
|
|
584
|
+
* @example
|
|
585
|
+
* // Create many Integrations
|
|
586
|
+
* const integration = await prisma.integration.createMany({
|
|
587
|
+
* data: [
|
|
588
|
+
* // ... provide data here
|
|
589
|
+
* ]
|
|
590
|
+
* })
|
|
591
|
+
*
|
|
592
|
+
*/
|
|
593
|
+
createMany<T extends IntegrationCreateManyArgs>(args?: Prisma.SelectSubset<T, IntegrationCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
594
|
+
/**
|
|
595
|
+
* Create many Integrations and returns the data saved in the database.
|
|
596
|
+
* @param {IntegrationCreateManyAndReturnArgs} args - Arguments to create many Integrations.
|
|
597
|
+
* @example
|
|
598
|
+
* // Create many Integrations
|
|
599
|
+
* const integration = await prisma.integration.createManyAndReturn({
|
|
600
|
+
* data: [
|
|
601
|
+
* // ... provide data here
|
|
602
|
+
* ]
|
|
603
|
+
* })
|
|
604
|
+
*
|
|
605
|
+
* // Create many Integrations and only return the `organizationId`
|
|
606
|
+
* const integrationWithOrganizationIdOnly = await prisma.integration.createManyAndReturn({
|
|
607
|
+
* select: { organizationId: true },
|
|
608
|
+
* data: [
|
|
609
|
+
* // ... provide data here
|
|
610
|
+
* ]
|
|
611
|
+
* })
|
|
612
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
613
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
614
|
+
*
|
|
615
|
+
*/
|
|
616
|
+
createManyAndReturn<T extends IntegrationCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, IntegrationCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$IntegrationPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
|
|
617
|
+
/**
|
|
618
|
+
* Delete a Integration.
|
|
619
|
+
* @param {IntegrationDeleteArgs} args - Arguments to delete one Integration.
|
|
620
|
+
* @example
|
|
621
|
+
* // Delete one Integration
|
|
622
|
+
* const Integration = await prisma.integration.delete({
|
|
623
|
+
* where: {
|
|
624
|
+
* // ... filter to delete one Integration
|
|
625
|
+
* }
|
|
626
|
+
* })
|
|
627
|
+
*
|
|
628
|
+
*/
|
|
629
|
+
delete<T extends IntegrationDeleteArgs>(args: Prisma.SelectSubset<T, IntegrationDeleteArgs<ExtArgs>>): Prisma.Prisma__IntegrationClient<runtime.Types.Result.GetResult<Prisma.$IntegrationPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
630
|
+
/**
|
|
631
|
+
* Update one Integration.
|
|
632
|
+
* @param {IntegrationUpdateArgs} args - Arguments to update one Integration.
|
|
633
|
+
* @example
|
|
634
|
+
* // Update one Integration
|
|
635
|
+
* const integration = await prisma.integration.update({
|
|
636
|
+
* where: {
|
|
637
|
+
* // ... provide filter here
|
|
638
|
+
* },
|
|
639
|
+
* data: {
|
|
640
|
+
* // ... provide data here
|
|
641
|
+
* }
|
|
642
|
+
* })
|
|
643
|
+
*
|
|
644
|
+
*/
|
|
645
|
+
update<T extends IntegrationUpdateArgs>(args: Prisma.SelectSubset<T, IntegrationUpdateArgs<ExtArgs>>): Prisma.Prisma__IntegrationClient<runtime.Types.Result.GetResult<Prisma.$IntegrationPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
646
|
+
/**
|
|
647
|
+
* Delete zero or more Integrations.
|
|
648
|
+
* @param {IntegrationDeleteManyArgs} args - Arguments to filter Integrations to delete.
|
|
649
|
+
* @example
|
|
650
|
+
* // Delete a few Integrations
|
|
651
|
+
* const { count } = await prisma.integration.deleteMany({
|
|
652
|
+
* where: {
|
|
653
|
+
* // ... provide filter here
|
|
654
|
+
* }
|
|
655
|
+
* })
|
|
656
|
+
*
|
|
657
|
+
*/
|
|
658
|
+
deleteMany<T extends IntegrationDeleteManyArgs>(args?: Prisma.SelectSubset<T, IntegrationDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
659
|
+
/**
|
|
660
|
+
* Update zero or more Integrations.
|
|
661
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
662
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
663
|
+
* @param {IntegrationUpdateManyArgs} args - Arguments to update one or more rows.
|
|
664
|
+
* @example
|
|
665
|
+
* // Update many Integrations
|
|
666
|
+
* const integration = await prisma.integration.updateMany({
|
|
667
|
+
* where: {
|
|
668
|
+
* // ... provide filter here
|
|
669
|
+
* },
|
|
670
|
+
* data: {
|
|
671
|
+
* // ... provide data here
|
|
672
|
+
* }
|
|
673
|
+
* })
|
|
674
|
+
*
|
|
675
|
+
*/
|
|
676
|
+
updateMany<T extends IntegrationUpdateManyArgs>(args: Prisma.SelectSubset<T, IntegrationUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
677
|
+
/**
|
|
678
|
+
* Update zero or more Integrations and returns the data updated in the database.
|
|
679
|
+
* @param {IntegrationUpdateManyAndReturnArgs} args - Arguments to update many Integrations.
|
|
680
|
+
* @example
|
|
681
|
+
* // Update many Integrations
|
|
682
|
+
* const integration = await prisma.integration.updateManyAndReturn({
|
|
683
|
+
* where: {
|
|
684
|
+
* // ... provide filter here
|
|
685
|
+
* },
|
|
686
|
+
* data: [
|
|
687
|
+
* // ... provide data here
|
|
688
|
+
* ]
|
|
689
|
+
* })
|
|
690
|
+
*
|
|
691
|
+
* // Update zero or more Integrations and only return the `organizationId`
|
|
692
|
+
* const integrationWithOrganizationIdOnly = await prisma.integration.updateManyAndReturn({
|
|
693
|
+
* select: { organizationId: true },
|
|
694
|
+
* where: {
|
|
695
|
+
* // ... provide filter here
|
|
696
|
+
* },
|
|
697
|
+
* data: [
|
|
698
|
+
* // ... provide data here
|
|
699
|
+
* ]
|
|
700
|
+
* })
|
|
701
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
702
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
703
|
+
*
|
|
704
|
+
*/
|
|
705
|
+
updateManyAndReturn<T extends IntegrationUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, IntegrationUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$IntegrationPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
|
|
706
|
+
/**
|
|
707
|
+
* Create or update one Integration.
|
|
708
|
+
* @param {IntegrationUpsertArgs} args - Arguments to update or create a Integration.
|
|
709
|
+
* @example
|
|
710
|
+
* // Update or create a Integration
|
|
711
|
+
* const integration = await prisma.integration.upsert({
|
|
712
|
+
* create: {
|
|
713
|
+
* // ... data to create a Integration
|
|
714
|
+
* },
|
|
715
|
+
* update: {
|
|
716
|
+
* // ... in case it already exists, update
|
|
717
|
+
* },
|
|
718
|
+
* where: {
|
|
719
|
+
* // ... the filter for the Integration we want to update
|
|
720
|
+
* }
|
|
721
|
+
* })
|
|
722
|
+
*/
|
|
723
|
+
upsert<T extends IntegrationUpsertArgs>(args: Prisma.SelectSubset<T, IntegrationUpsertArgs<ExtArgs>>): Prisma.Prisma__IntegrationClient<runtime.Types.Result.GetResult<Prisma.$IntegrationPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
724
|
+
/**
|
|
725
|
+
* Count the number of Integrations.
|
|
726
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
727
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
728
|
+
* @param {IntegrationCountArgs} args - Arguments to filter Integrations to count.
|
|
729
|
+
* @example
|
|
730
|
+
* // Count the number of Integrations
|
|
731
|
+
* const count = await prisma.integration.count({
|
|
732
|
+
* where: {
|
|
733
|
+
* // ... the filter for the Integrations we want to count
|
|
734
|
+
* }
|
|
735
|
+
* })
|
|
736
|
+
**/
|
|
737
|
+
count<T extends IntegrationCountArgs>(args?: Prisma.Subset<T, IntegrationCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], IntegrationCountAggregateOutputType> : number>;
|
|
738
|
+
/**
|
|
739
|
+
* Allows you to perform aggregations operations on a Integration.
|
|
740
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
741
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
742
|
+
* @param {IntegrationAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
743
|
+
* @example
|
|
744
|
+
* // Ordered by age ascending
|
|
745
|
+
* // Where email contains prisma.io
|
|
746
|
+
* // Limited to the 10 users
|
|
747
|
+
* const aggregations = await prisma.user.aggregate({
|
|
748
|
+
* _avg: {
|
|
749
|
+
* age: true,
|
|
750
|
+
* },
|
|
751
|
+
* where: {
|
|
752
|
+
* email: {
|
|
753
|
+
* contains: "prisma.io",
|
|
754
|
+
* },
|
|
755
|
+
* },
|
|
756
|
+
* orderBy: {
|
|
757
|
+
* age: "asc",
|
|
758
|
+
* },
|
|
759
|
+
* take: 10,
|
|
760
|
+
* })
|
|
761
|
+
**/
|
|
762
|
+
aggregate<T extends IntegrationAggregateArgs>(args: Prisma.Subset<T, IntegrationAggregateArgs>): Prisma.PrismaPromise<GetIntegrationAggregateType<T>>;
|
|
763
|
+
/**
|
|
764
|
+
* Group by Integration.
|
|
765
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
766
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
767
|
+
* @param {IntegrationGroupByArgs} args - Group by arguments.
|
|
768
|
+
* @example
|
|
769
|
+
* // Group by city, order by createdAt, get count
|
|
770
|
+
* const result = await prisma.user.groupBy({
|
|
771
|
+
* by: ['city', 'createdAt'],
|
|
772
|
+
* orderBy: {
|
|
773
|
+
* createdAt: true
|
|
774
|
+
* },
|
|
775
|
+
* _count: {
|
|
776
|
+
* _all: true
|
|
777
|
+
* },
|
|
778
|
+
* })
|
|
779
|
+
*
|
|
780
|
+
**/
|
|
781
|
+
groupBy<T extends IntegrationGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
|
|
782
|
+
orderBy: IntegrationGroupByArgs['orderBy'];
|
|
783
|
+
} : {
|
|
784
|
+
orderBy?: IntegrationGroupByArgs['orderBy'];
|
|
785
|
+
}, OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>, ByFields extends Prisma.MaybeTupleToUnion<T['by']>, ByValid extends Prisma.Has<ByFields, OrderFields>, HavingFields extends Prisma.GetHavingFields<T['having']>, HavingValid extends Prisma.Has<ByFields, HavingFields>, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? {
|
|
786
|
+
[P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
|
|
787
|
+
Error,
|
|
788
|
+
'Field ',
|
|
789
|
+
P,
|
|
790
|
+
` in "having" needs to be provided in "by"`
|
|
791
|
+
];
|
|
792
|
+
}[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
|
|
793
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
794
|
+
}[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
|
|
795
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
796
|
+
}[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
|
|
797
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
798
|
+
}[OrderFields]>(args: Prisma.SubsetIntersection<T, IntegrationGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetIntegrationGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
|
|
799
|
+
/**
|
|
800
|
+
* Fields of the Integration model
|
|
801
|
+
*/
|
|
802
|
+
readonly fields: IntegrationFieldRefs;
|
|
803
|
+
}
|
|
804
|
+
/**
|
|
805
|
+
* The delegate class that acts as a "Promise-like" for Integration.
|
|
806
|
+
* Why is this prefixed with `Prisma__`?
|
|
807
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
808
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
809
|
+
*/
|
|
810
|
+
export interface Prisma__IntegrationClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
811
|
+
readonly [Symbol.toStringTag]: "PrismaPromise";
|
|
812
|
+
organization<T extends Prisma.OrganizationDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.OrganizationDefaultArgs<ExtArgs>>): Prisma.Prisma__OrganizationClient<runtime.Types.Result.GetResult<Prisma.$OrganizationPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
|
|
813
|
+
/**
|
|
814
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
815
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
816
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
817
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
818
|
+
*/
|
|
819
|
+
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>;
|
|
820
|
+
/**
|
|
821
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
822
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
823
|
+
* @returns A Promise for the completion of the callback.
|
|
824
|
+
*/
|
|
825
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
|
|
826
|
+
/**
|
|
827
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
828
|
+
* resolved value cannot be modified from the callback.
|
|
829
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
830
|
+
* @returns A Promise for the completion of the callback.
|
|
831
|
+
*/
|
|
832
|
+
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
|
|
833
|
+
}
|
|
834
|
+
/**
|
|
835
|
+
* Fields of the Integration model
|
|
836
|
+
*/
|
|
837
|
+
export interface IntegrationFieldRefs {
|
|
838
|
+
readonly organizationId: Prisma.FieldRef<"Integration", 'String'>;
|
|
839
|
+
readonly type: Prisma.FieldRef<"Integration", 'String'>;
|
|
840
|
+
readonly config: Prisma.FieldRef<"Integration", 'Json'>;
|
|
841
|
+
readonly createdAt: Prisma.FieldRef<"Integration", 'DateTime'>;
|
|
842
|
+
readonly createdBy: Prisma.FieldRef<"Integration", 'String'>;
|
|
843
|
+
readonly updatedAt: Prisma.FieldRef<"Integration", 'DateTime'>;
|
|
844
|
+
readonly updatedBy: Prisma.FieldRef<"Integration", 'String'>;
|
|
845
|
+
}
|
|
846
|
+
/**
|
|
847
|
+
* Integration findUnique
|
|
848
|
+
*/
|
|
849
|
+
export type IntegrationFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
850
|
+
/**
|
|
851
|
+
* Select specific fields to fetch from the Integration
|
|
852
|
+
*/
|
|
853
|
+
select?: Prisma.IntegrationSelect<ExtArgs> | null;
|
|
854
|
+
/**
|
|
855
|
+
* Omit specific fields from the Integration
|
|
856
|
+
*/
|
|
857
|
+
omit?: Prisma.IntegrationOmit<ExtArgs> | null;
|
|
858
|
+
/**
|
|
859
|
+
* Choose, which related nodes to fetch as well
|
|
860
|
+
*/
|
|
861
|
+
include?: Prisma.IntegrationInclude<ExtArgs> | null;
|
|
862
|
+
/**
|
|
863
|
+
* Filter, which Integration to fetch.
|
|
864
|
+
*/
|
|
865
|
+
where: Prisma.IntegrationWhereUniqueInput;
|
|
866
|
+
};
|
|
867
|
+
/**
|
|
868
|
+
* Integration findUniqueOrThrow
|
|
869
|
+
*/
|
|
870
|
+
export type IntegrationFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
871
|
+
/**
|
|
872
|
+
* Select specific fields to fetch from the Integration
|
|
873
|
+
*/
|
|
874
|
+
select?: Prisma.IntegrationSelect<ExtArgs> | null;
|
|
875
|
+
/**
|
|
876
|
+
* Omit specific fields from the Integration
|
|
877
|
+
*/
|
|
878
|
+
omit?: Prisma.IntegrationOmit<ExtArgs> | null;
|
|
879
|
+
/**
|
|
880
|
+
* Choose, which related nodes to fetch as well
|
|
881
|
+
*/
|
|
882
|
+
include?: Prisma.IntegrationInclude<ExtArgs> | null;
|
|
883
|
+
/**
|
|
884
|
+
* Filter, which Integration to fetch.
|
|
885
|
+
*/
|
|
886
|
+
where: Prisma.IntegrationWhereUniqueInput;
|
|
887
|
+
};
|
|
888
|
+
/**
|
|
889
|
+
* Integration findFirst
|
|
890
|
+
*/
|
|
891
|
+
export type IntegrationFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
892
|
+
/**
|
|
893
|
+
* Select specific fields to fetch from the Integration
|
|
894
|
+
*/
|
|
895
|
+
select?: Prisma.IntegrationSelect<ExtArgs> | null;
|
|
896
|
+
/**
|
|
897
|
+
* Omit specific fields from the Integration
|
|
898
|
+
*/
|
|
899
|
+
omit?: Prisma.IntegrationOmit<ExtArgs> | null;
|
|
900
|
+
/**
|
|
901
|
+
* Choose, which related nodes to fetch as well
|
|
902
|
+
*/
|
|
903
|
+
include?: Prisma.IntegrationInclude<ExtArgs> | null;
|
|
904
|
+
/**
|
|
905
|
+
* Filter, which Integration to fetch.
|
|
906
|
+
*/
|
|
907
|
+
where?: Prisma.IntegrationWhereInput;
|
|
908
|
+
/**
|
|
909
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
910
|
+
*
|
|
911
|
+
* Determine the order of Integrations to fetch.
|
|
912
|
+
*/
|
|
913
|
+
orderBy?: Prisma.IntegrationOrderByWithRelationInput | Prisma.IntegrationOrderByWithRelationInput[];
|
|
914
|
+
/**
|
|
915
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
916
|
+
*
|
|
917
|
+
* Sets the position for searching for Integrations.
|
|
918
|
+
*/
|
|
919
|
+
cursor?: Prisma.IntegrationWhereUniqueInput;
|
|
920
|
+
/**
|
|
921
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
922
|
+
*
|
|
923
|
+
* Take `±n` Integrations from the position of the cursor.
|
|
924
|
+
*/
|
|
925
|
+
take?: number;
|
|
926
|
+
/**
|
|
927
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
928
|
+
*
|
|
929
|
+
* Skip the first `n` Integrations.
|
|
930
|
+
*/
|
|
931
|
+
skip?: number;
|
|
932
|
+
/**
|
|
933
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
934
|
+
*
|
|
935
|
+
* Filter by unique combinations of Integrations.
|
|
936
|
+
*/
|
|
937
|
+
distinct?: Prisma.IntegrationScalarFieldEnum | Prisma.IntegrationScalarFieldEnum[];
|
|
938
|
+
};
|
|
939
|
+
/**
|
|
940
|
+
* Integration findFirstOrThrow
|
|
941
|
+
*/
|
|
942
|
+
export type IntegrationFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
943
|
+
/**
|
|
944
|
+
* Select specific fields to fetch from the Integration
|
|
945
|
+
*/
|
|
946
|
+
select?: Prisma.IntegrationSelect<ExtArgs> | null;
|
|
947
|
+
/**
|
|
948
|
+
* Omit specific fields from the Integration
|
|
949
|
+
*/
|
|
950
|
+
omit?: Prisma.IntegrationOmit<ExtArgs> | null;
|
|
951
|
+
/**
|
|
952
|
+
* Choose, which related nodes to fetch as well
|
|
953
|
+
*/
|
|
954
|
+
include?: Prisma.IntegrationInclude<ExtArgs> | null;
|
|
955
|
+
/**
|
|
956
|
+
* Filter, which Integration to fetch.
|
|
957
|
+
*/
|
|
958
|
+
where?: Prisma.IntegrationWhereInput;
|
|
959
|
+
/**
|
|
960
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
961
|
+
*
|
|
962
|
+
* Determine the order of Integrations to fetch.
|
|
963
|
+
*/
|
|
964
|
+
orderBy?: Prisma.IntegrationOrderByWithRelationInput | Prisma.IntegrationOrderByWithRelationInput[];
|
|
965
|
+
/**
|
|
966
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
967
|
+
*
|
|
968
|
+
* Sets the position for searching for Integrations.
|
|
969
|
+
*/
|
|
970
|
+
cursor?: Prisma.IntegrationWhereUniqueInput;
|
|
971
|
+
/**
|
|
972
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
973
|
+
*
|
|
974
|
+
* Take `±n` Integrations from the position of the cursor.
|
|
975
|
+
*/
|
|
976
|
+
take?: number;
|
|
977
|
+
/**
|
|
978
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
979
|
+
*
|
|
980
|
+
* Skip the first `n` Integrations.
|
|
981
|
+
*/
|
|
982
|
+
skip?: number;
|
|
983
|
+
/**
|
|
984
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
985
|
+
*
|
|
986
|
+
* Filter by unique combinations of Integrations.
|
|
987
|
+
*/
|
|
988
|
+
distinct?: Prisma.IntegrationScalarFieldEnum | Prisma.IntegrationScalarFieldEnum[];
|
|
989
|
+
};
|
|
990
|
+
/**
|
|
991
|
+
* Integration findMany
|
|
992
|
+
*/
|
|
993
|
+
export type IntegrationFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
994
|
+
/**
|
|
995
|
+
* Select specific fields to fetch from the Integration
|
|
996
|
+
*/
|
|
997
|
+
select?: Prisma.IntegrationSelect<ExtArgs> | null;
|
|
998
|
+
/**
|
|
999
|
+
* Omit specific fields from the Integration
|
|
1000
|
+
*/
|
|
1001
|
+
omit?: Prisma.IntegrationOmit<ExtArgs> | null;
|
|
1002
|
+
/**
|
|
1003
|
+
* Choose, which related nodes to fetch as well
|
|
1004
|
+
*/
|
|
1005
|
+
include?: Prisma.IntegrationInclude<ExtArgs> | null;
|
|
1006
|
+
/**
|
|
1007
|
+
* Filter, which Integrations to fetch.
|
|
1008
|
+
*/
|
|
1009
|
+
where?: Prisma.IntegrationWhereInput;
|
|
1010
|
+
/**
|
|
1011
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1012
|
+
*
|
|
1013
|
+
* Determine the order of Integrations to fetch.
|
|
1014
|
+
*/
|
|
1015
|
+
orderBy?: Prisma.IntegrationOrderByWithRelationInput | Prisma.IntegrationOrderByWithRelationInput[];
|
|
1016
|
+
/**
|
|
1017
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1018
|
+
*
|
|
1019
|
+
* Sets the position for listing Integrations.
|
|
1020
|
+
*/
|
|
1021
|
+
cursor?: Prisma.IntegrationWhereUniqueInput;
|
|
1022
|
+
/**
|
|
1023
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1024
|
+
*
|
|
1025
|
+
* Take `±n` Integrations from the position of the cursor.
|
|
1026
|
+
*/
|
|
1027
|
+
take?: number;
|
|
1028
|
+
/**
|
|
1029
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1030
|
+
*
|
|
1031
|
+
* Skip the first `n` Integrations.
|
|
1032
|
+
*/
|
|
1033
|
+
skip?: number;
|
|
1034
|
+
distinct?: Prisma.IntegrationScalarFieldEnum | Prisma.IntegrationScalarFieldEnum[];
|
|
1035
|
+
};
|
|
1036
|
+
/**
|
|
1037
|
+
* Integration create
|
|
1038
|
+
*/
|
|
1039
|
+
export type IntegrationCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1040
|
+
/**
|
|
1041
|
+
* Select specific fields to fetch from the Integration
|
|
1042
|
+
*/
|
|
1043
|
+
select?: Prisma.IntegrationSelect<ExtArgs> | null;
|
|
1044
|
+
/**
|
|
1045
|
+
* Omit specific fields from the Integration
|
|
1046
|
+
*/
|
|
1047
|
+
omit?: Prisma.IntegrationOmit<ExtArgs> | null;
|
|
1048
|
+
/**
|
|
1049
|
+
* Choose, which related nodes to fetch as well
|
|
1050
|
+
*/
|
|
1051
|
+
include?: Prisma.IntegrationInclude<ExtArgs> | null;
|
|
1052
|
+
/**
|
|
1053
|
+
* The data needed to create a Integration.
|
|
1054
|
+
*/
|
|
1055
|
+
data: Prisma.XOR<Prisma.IntegrationCreateInput, Prisma.IntegrationUncheckedCreateInput>;
|
|
1056
|
+
};
|
|
1057
|
+
/**
|
|
1058
|
+
* Integration createMany
|
|
1059
|
+
*/
|
|
1060
|
+
export type IntegrationCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1061
|
+
/**
|
|
1062
|
+
* The data used to create many Integrations.
|
|
1063
|
+
*/
|
|
1064
|
+
data: Prisma.IntegrationCreateManyInput | Prisma.IntegrationCreateManyInput[];
|
|
1065
|
+
skipDuplicates?: boolean;
|
|
1066
|
+
};
|
|
1067
|
+
/**
|
|
1068
|
+
* Integration createManyAndReturn
|
|
1069
|
+
*/
|
|
1070
|
+
export type IntegrationCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1071
|
+
/**
|
|
1072
|
+
* Select specific fields to fetch from the Integration
|
|
1073
|
+
*/
|
|
1074
|
+
select?: Prisma.IntegrationSelectCreateManyAndReturn<ExtArgs> | null;
|
|
1075
|
+
/**
|
|
1076
|
+
* Omit specific fields from the Integration
|
|
1077
|
+
*/
|
|
1078
|
+
omit?: Prisma.IntegrationOmit<ExtArgs> | null;
|
|
1079
|
+
/**
|
|
1080
|
+
* The data used to create many Integrations.
|
|
1081
|
+
*/
|
|
1082
|
+
data: Prisma.IntegrationCreateManyInput | Prisma.IntegrationCreateManyInput[];
|
|
1083
|
+
skipDuplicates?: boolean;
|
|
1084
|
+
/**
|
|
1085
|
+
* Choose, which related nodes to fetch as well
|
|
1086
|
+
*/
|
|
1087
|
+
include?: Prisma.IntegrationIncludeCreateManyAndReturn<ExtArgs> | null;
|
|
1088
|
+
};
|
|
1089
|
+
/**
|
|
1090
|
+
* Integration update
|
|
1091
|
+
*/
|
|
1092
|
+
export type IntegrationUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1093
|
+
/**
|
|
1094
|
+
* Select specific fields to fetch from the Integration
|
|
1095
|
+
*/
|
|
1096
|
+
select?: Prisma.IntegrationSelect<ExtArgs> | null;
|
|
1097
|
+
/**
|
|
1098
|
+
* Omit specific fields from the Integration
|
|
1099
|
+
*/
|
|
1100
|
+
omit?: Prisma.IntegrationOmit<ExtArgs> | null;
|
|
1101
|
+
/**
|
|
1102
|
+
* Choose, which related nodes to fetch as well
|
|
1103
|
+
*/
|
|
1104
|
+
include?: Prisma.IntegrationInclude<ExtArgs> | null;
|
|
1105
|
+
/**
|
|
1106
|
+
* The data needed to update a Integration.
|
|
1107
|
+
*/
|
|
1108
|
+
data: Prisma.XOR<Prisma.IntegrationUpdateInput, Prisma.IntegrationUncheckedUpdateInput>;
|
|
1109
|
+
/**
|
|
1110
|
+
* Choose, which Integration to update.
|
|
1111
|
+
*/
|
|
1112
|
+
where: Prisma.IntegrationWhereUniqueInput;
|
|
1113
|
+
};
|
|
1114
|
+
/**
|
|
1115
|
+
* Integration updateMany
|
|
1116
|
+
*/
|
|
1117
|
+
export type IntegrationUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1118
|
+
/**
|
|
1119
|
+
* The data used to update Integrations.
|
|
1120
|
+
*/
|
|
1121
|
+
data: Prisma.XOR<Prisma.IntegrationUpdateManyMutationInput, Prisma.IntegrationUncheckedUpdateManyInput>;
|
|
1122
|
+
/**
|
|
1123
|
+
* Filter which Integrations to update
|
|
1124
|
+
*/
|
|
1125
|
+
where?: Prisma.IntegrationWhereInput;
|
|
1126
|
+
/**
|
|
1127
|
+
* Limit how many Integrations to update.
|
|
1128
|
+
*/
|
|
1129
|
+
limit?: number;
|
|
1130
|
+
};
|
|
1131
|
+
/**
|
|
1132
|
+
* Integration updateManyAndReturn
|
|
1133
|
+
*/
|
|
1134
|
+
export type IntegrationUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1135
|
+
/**
|
|
1136
|
+
* Select specific fields to fetch from the Integration
|
|
1137
|
+
*/
|
|
1138
|
+
select?: Prisma.IntegrationSelectUpdateManyAndReturn<ExtArgs> | null;
|
|
1139
|
+
/**
|
|
1140
|
+
* Omit specific fields from the Integration
|
|
1141
|
+
*/
|
|
1142
|
+
omit?: Prisma.IntegrationOmit<ExtArgs> | null;
|
|
1143
|
+
/**
|
|
1144
|
+
* The data used to update Integrations.
|
|
1145
|
+
*/
|
|
1146
|
+
data: Prisma.XOR<Prisma.IntegrationUpdateManyMutationInput, Prisma.IntegrationUncheckedUpdateManyInput>;
|
|
1147
|
+
/**
|
|
1148
|
+
* Filter which Integrations to update
|
|
1149
|
+
*/
|
|
1150
|
+
where?: Prisma.IntegrationWhereInput;
|
|
1151
|
+
/**
|
|
1152
|
+
* Limit how many Integrations to update.
|
|
1153
|
+
*/
|
|
1154
|
+
limit?: number;
|
|
1155
|
+
/**
|
|
1156
|
+
* Choose, which related nodes to fetch as well
|
|
1157
|
+
*/
|
|
1158
|
+
include?: Prisma.IntegrationIncludeUpdateManyAndReturn<ExtArgs> | null;
|
|
1159
|
+
};
|
|
1160
|
+
/**
|
|
1161
|
+
* Integration upsert
|
|
1162
|
+
*/
|
|
1163
|
+
export type IntegrationUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1164
|
+
/**
|
|
1165
|
+
* Select specific fields to fetch from the Integration
|
|
1166
|
+
*/
|
|
1167
|
+
select?: Prisma.IntegrationSelect<ExtArgs> | null;
|
|
1168
|
+
/**
|
|
1169
|
+
* Omit specific fields from the Integration
|
|
1170
|
+
*/
|
|
1171
|
+
omit?: Prisma.IntegrationOmit<ExtArgs> | null;
|
|
1172
|
+
/**
|
|
1173
|
+
* Choose, which related nodes to fetch as well
|
|
1174
|
+
*/
|
|
1175
|
+
include?: Prisma.IntegrationInclude<ExtArgs> | null;
|
|
1176
|
+
/**
|
|
1177
|
+
* The filter to search for the Integration to update in case it exists.
|
|
1178
|
+
*/
|
|
1179
|
+
where: Prisma.IntegrationWhereUniqueInput;
|
|
1180
|
+
/**
|
|
1181
|
+
* In case the Integration found by the `where` argument doesn't exist, create a new Integration with this data.
|
|
1182
|
+
*/
|
|
1183
|
+
create: Prisma.XOR<Prisma.IntegrationCreateInput, Prisma.IntegrationUncheckedCreateInput>;
|
|
1184
|
+
/**
|
|
1185
|
+
* In case the Integration was found with the provided `where` argument, update it with this data.
|
|
1186
|
+
*/
|
|
1187
|
+
update: Prisma.XOR<Prisma.IntegrationUpdateInput, Prisma.IntegrationUncheckedUpdateInput>;
|
|
1188
|
+
};
|
|
1189
|
+
/**
|
|
1190
|
+
* Integration delete
|
|
1191
|
+
*/
|
|
1192
|
+
export type IntegrationDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1193
|
+
/**
|
|
1194
|
+
* Select specific fields to fetch from the Integration
|
|
1195
|
+
*/
|
|
1196
|
+
select?: Prisma.IntegrationSelect<ExtArgs> | null;
|
|
1197
|
+
/**
|
|
1198
|
+
* Omit specific fields from the Integration
|
|
1199
|
+
*/
|
|
1200
|
+
omit?: Prisma.IntegrationOmit<ExtArgs> | null;
|
|
1201
|
+
/**
|
|
1202
|
+
* Choose, which related nodes to fetch as well
|
|
1203
|
+
*/
|
|
1204
|
+
include?: Prisma.IntegrationInclude<ExtArgs> | null;
|
|
1205
|
+
/**
|
|
1206
|
+
* Filter which Integration to delete.
|
|
1207
|
+
*/
|
|
1208
|
+
where: Prisma.IntegrationWhereUniqueInput;
|
|
1209
|
+
};
|
|
1210
|
+
/**
|
|
1211
|
+
* Integration deleteMany
|
|
1212
|
+
*/
|
|
1213
|
+
export type IntegrationDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1214
|
+
/**
|
|
1215
|
+
* Filter which Integrations to delete
|
|
1216
|
+
*/
|
|
1217
|
+
where?: Prisma.IntegrationWhereInput;
|
|
1218
|
+
/**
|
|
1219
|
+
* Limit how many Integrations to delete.
|
|
1220
|
+
*/
|
|
1221
|
+
limit?: number;
|
|
1222
|
+
};
|
|
1223
|
+
/**
|
|
1224
|
+
* Integration without action
|
|
1225
|
+
*/
|
|
1226
|
+
export type IntegrationDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1227
|
+
/**
|
|
1228
|
+
* Select specific fields to fetch from the Integration
|
|
1229
|
+
*/
|
|
1230
|
+
select?: Prisma.IntegrationSelect<ExtArgs> | null;
|
|
1231
|
+
/**
|
|
1232
|
+
* Omit specific fields from the Integration
|
|
1233
|
+
*/
|
|
1234
|
+
omit?: Prisma.IntegrationOmit<ExtArgs> | null;
|
|
1235
|
+
/**
|
|
1236
|
+
* Choose, which related nodes to fetch as well
|
|
1237
|
+
*/
|
|
1238
|
+
include?: Prisma.IntegrationInclude<ExtArgs> | null;
|
|
1239
|
+
};
|
|
1240
|
+
export {};
|