@shophost/rest-api 2.0.46 → 2.0.47
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
package/README.md
CHANGED
|
@@ -58,13 +58,8 @@ const handler = createNextHandler({
|
|
|
58
58
|
},
|
|
59
59
|
},
|
|
60
60
|
},
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
secretKey: process.env.STRIPE_SECRET_KEY!,
|
|
64
|
-
webhookSecret: process.env.STRIPE_WEBHOOK_SECRET!,
|
|
65
|
-
resendApiKey: process.env.RESEND_API_KEY!,
|
|
66
|
-
paymentMethods: ["card", "blik"],
|
|
67
|
-
},
|
|
61
|
+
notifications: {
|
|
62
|
+
resendApiKey: process.env.RESEND_API_KEY!,
|
|
68
63
|
},
|
|
69
64
|
});
|
|
70
65
|
|
package/package.json
CHANGED
package/schema.prisma
CHANGED
|
@@ -273,6 +273,7 @@ model Organization {
|
|
|
273
273
|
logoId String? @unique
|
|
274
274
|
logoFile File? @relation("OrganizationLogo", fields: [logoId], references: [id])
|
|
275
275
|
files File[]
|
|
276
|
+
integrations Integration[]
|
|
276
277
|
members Member[]
|
|
277
278
|
invitations Invitation[]
|
|
278
279
|
orders Order[]
|
|
@@ -341,6 +342,19 @@ model OrganizationConfiguration {
|
|
|
341
342
|
organizations Organization[]
|
|
342
343
|
}
|
|
343
344
|
|
|
345
|
+
model Integration {
|
|
346
|
+
organizationId String
|
|
347
|
+
organization Organization @relation(fields: [organizationId], references: [id], onDelete: Cascade)
|
|
348
|
+
type String
|
|
349
|
+
config Json
|
|
350
|
+
createdAt DateTime @default(now())
|
|
351
|
+
createdBy String?
|
|
352
|
+
updatedAt DateTime @updatedAt
|
|
353
|
+
updatedBy String?
|
|
354
|
+
|
|
355
|
+
@@id([organizationId, type])
|
|
356
|
+
}
|
|
357
|
+
|
|
344
358
|
model Address {
|
|
345
359
|
id String @id @default(cuid())
|
|
346
360
|
firstname String?
|
package/src/app.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { cors } from "hono/cors";
|
|
2
|
+
import { NotificationOptions } from "./core/notifications/notification-options";
|
|
2
3
|
import { type AuthContext } from "./core/hono/hono";
|
|
3
4
|
import type { PrismaClientType } from "./core/lib/prisma";
|
|
4
5
|
import { PaymentServiceOptions } from "./features/payment/payment.service";
|
|
@@ -9,8 +10,9 @@ export interface BuildApiAppOptions {
|
|
|
9
10
|
key: string;
|
|
10
11
|
};
|
|
11
12
|
};
|
|
13
|
+
notifications?: NotificationOptions;
|
|
12
14
|
payment?: PaymentServiceOptions;
|
|
13
15
|
prisma?: PrismaClientType | any;
|
|
14
16
|
resolveAuth?: (request: Request, path: string) => AuthContext;
|
|
15
17
|
}
|
|
16
|
-
export declare const buildApiApp: ({ corsOptions, maps, payment, prisma, resolveAuth, }?: BuildApiAppOptions) => import("@hono/zod-openapi").OpenAPIHono<import("./core/hono/hono").AppBindings, {}, "/">;
|
|
18
|
+
export declare const buildApiApp: ({ corsOptions, maps, notifications, payment, prisma, resolveAuth, }?: BuildApiAppOptions) => import("@hono/zod-openapi").OpenAPIHono<import("./core/hono/hono").AppBindings, {}, "/">;
|
package/src/app.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__awaiter as
|
|
1
|
+
import{__awaiter as g}from"tslib";import{cors as A}from"hono/cors";import{createApiRouter as c,createUnavailableAuth as O,handleAppError as T}from"./core/hono/hono";import{buildAccessHandler as C,buildAnalyticsHandler as P,buildCartHandler as E,buildFileHandler as _,buildHealthHandler as w,buildIntegrationHandler as R,buildLocationHandler as S,buildManufacturerHandler as k,buildOrderHandler as q,buildOrganizationHandler as j,buildPaymentHandler as K,buildProductCategoryHandler as L,buildProductHandler as M,buildReservationHandler as X,buildShippingHandler as x,buildShippingMethodHandler as z,buildWebhookHandler as F}from"./features";const I={allowHeaders:["Content-Type","Authorization","X-Requested-With","Accept","Origin","X-CSRF-Token"],allowMethods:["GET","POST","PUT","DELETE","OPTIONS","PATCH"],credentials:!0,exposeHeaders:["Content-Length","X-Kuma-Revision"],origin:["http://localhost:3000"]};export const buildApiApp=({corsOptions:H,maps:o,notifications:d,payment:r,prisma:l,resolveAuth:a=()=>O()}={})=>{var t,n,i,v;const e=c();return e.use("*",A(Object.assign(Object.assign({},I),H))),e.use("*",(u,h)=>g(void 0,void 0,void 0,function*(){const b=a(u.req.raw,u.req.path);u.set("auth",b),Object.assign(u.req.raw,{auth:b}),yield h()})),e.onError(u=>T(u)),e.route("/",w()),e.route("/",P(l)),e.route("/",k(l)),e.route("/",R(l)),e.route("/",j(l,(n=(t=o?.google)===null||t===void 0?void 0:t.key)!==null&&n!==void 0?n:"")),e.route("/",_(l)),e.route("/",L(l)),e.route("/",M(l)),e.route("/",C(l)),e.route("/",z(l)),e.route("/",q(l,r??{},d??{})),e.route("/",E(l)),e.route("/",x(l,(v=(i=o?.google)===null||i===void 0?void 0:i.key)!==null&&v!==void 0?v:"")),e.route("/",S(o??{})),e.route("/",K(l,r??{})),e.route("/",F(l,r??{},d??{})),d?.resendApiKey&&e.route("/",X(l,d.resendApiKey)),e};
|
package/src/app.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.js","sourceRoot":"","sources":["../../../../packages/rest-api/src/app.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"app.js","sourceRoot":"","sources":["../../../../packages/rest-api/src/app.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAGjC,OAAO,EAEL,eAAe,EACf,qBAAqB,EACrB,cAAc,GACf,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EACL,kBAAkB,EAClB,qBAAqB,EACrB,gBAAgB,EAChB,gBAAgB,EAChB,kBAAkB,EAClB,uBAAuB,EACvB,oBAAoB,EACpB,wBAAwB,EACxB,iBAAiB,EACjB,wBAAwB,EACxB,mBAAmB,EACnB,2BAA2B,EAC3B,mBAAmB,EACnB,uBAAuB,EACvB,oBAAoB,EACpB,0BAA0B,EAC1B,mBAAmB,GACpB,MAAM,YAAY,CAAC;AAGpB,MAAM,kBAAkB,GAAG;IACzB,YAAY,EAAE;QACZ,cAAc;QACd,eAAe;QACf,kBAAkB;QAClB,QAAQ;QACR,QAAQ;QACR,cAAc;KACf;IACD,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,CAAC;IACl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AG,EAAE,mBAAmB,CAAC,MAAM,EAAE,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,EAAE,CAAC,CAAC,CAAC;IAC3D,GAAG,CAAC,KAAK,CAAC,GAAG,EAAE,mBAAmB,CAAC,MAAM,EAAE,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,EAAE,EAAE,aAAa,aAAb,aAAa,cAAb,aAAa,GAAI,EAAE,CAAC,CAAC,CAAC;IAEhF,IAAI,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,YAAY,EAAE,CAAC;QAChC,GAAG,CAAC,KAAK,CAAC,GAAG,EAAE,uBAAuB,CAAC,MAAM,EAAE,aAAa,CAAC,YAAY,CAAC,CAAC,CAAC;IAC9E,CAAC;IAED,OAAO,GAAG,CAAC;AACb,CAAC,CAAC"}
|
|
@@ -52,6 +52,11 @@ export type ClosingTimes = Prisma.ClosingTimesModel;
|
|
|
52
52
|
*
|
|
53
53
|
*/
|
|
54
54
|
export type OrganizationConfiguration = Prisma.OrganizationConfigurationModel;
|
|
55
|
+
/**
|
|
56
|
+
* Model Integration
|
|
57
|
+
*
|
|
58
|
+
*/
|
|
59
|
+
export type Integration = Prisma.IntegrationModel;
|
|
55
60
|
/**
|
|
56
61
|
* Model Address
|
|
57
62
|
*
|
|
@@ -71,6 +71,11 @@ export type ClosingTimes = Prisma.ClosingTimesModel;
|
|
|
71
71
|
*
|
|
72
72
|
*/
|
|
73
73
|
export type OrganizationConfiguration = Prisma.OrganizationConfigurationModel;
|
|
74
|
+
/**
|
|
75
|
+
* Model Integration
|
|
76
|
+
*
|
|
77
|
+
*/
|
|
78
|
+
export type Integration = Prisma.IntegrationModel;
|
|
74
79
|
/**
|
|
75
80
|
* Model Address
|
|
76
81
|
*
|
|
@@ -165,6 +165,43 @@ export type EnumLocaleWithAggregatesFilter<$PrismaModel = never> = {
|
|
|
165
165
|
_min?: Prisma.NestedEnumLocaleFilter<$PrismaModel>;
|
|
166
166
|
_max?: Prisma.NestedEnumLocaleFilter<$PrismaModel>;
|
|
167
167
|
};
|
|
168
|
+
export type JsonFilter<$PrismaModel = never> = Prisma.PatchUndefined<Prisma.Either<Required<JsonFilterBase<$PrismaModel>>, Exclude<keyof Required<JsonFilterBase<$PrismaModel>>, 'path'>>, Required<JsonFilterBase<$PrismaModel>>> | Prisma.OptionalFlat<Omit<Required<JsonFilterBase<$PrismaModel>>, 'path'>>;
|
|
169
|
+
export type JsonFilterBase<$PrismaModel = never> = {
|
|
170
|
+
equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
|
|
171
|
+
path?: string[];
|
|
172
|
+
mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel>;
|
|
173
|
+
string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
174
|
+
string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
175
|
+
string_ends_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
176
|
+
array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
|
|
177
|
+
array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
|
|
178
|
+
array_contains?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
|
|
179
|
+
lt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
180
|
+
lte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
181
|
+
gt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
182
|
+
gte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
183
|
+
not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
|
|
184
|
+
};
|
|
185
|
+
export type JsonWithAggregatesFilter<$PrismaModel = never> = Prisma.PatchUndefined<Prisma.Either<Required<JsonWithAggregatesFilterBase<$PrismaModel>>, Exclude<keyof Required<JsonWithAggregatesFilterBase<$PrismaModel>>, 'path'>>, Required<JsonWithAggregatesFilterBase<$PrismaModel>>> | Prisma.OptionalFlat<Omit<Required<JsonWithAggregatesFilterBase<$PrismaModel>>, 'path'>>;
|
|
186
|
+
export type JsonWithAggregatesFilterBase<$PrismaModel = never> = {
|
|
187
|
+
equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
|
|
188
|
+
path?: string[];
|
|
189
|
+
mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel>;
|
|
190
|
+
string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
191
|
+
string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
192
|
+
string_ends_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
193
|
+
array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
|
|
194
|
+
array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
|
|
195
|
+
array_contains?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
|
|
196
|
+
lt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
197
|
+
lte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
198
|
+
gt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
199
|
+
gte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
200
|
+
not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
|
|
201
|
+
_count?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
202
|
+
_min?: Prisma.NestedJsonFilter<$PrismaModel>;
|
|
203
|
+
_max?: Prisma.NestedJsonFilter<$PrismaModel>;
|
|
204
|
+
};
|
|
168
205
|
export type FloatNullableFilter<$PrismaModel = never> = {
|
|
169
206
|
equals?: number | Prisma.FloatFieldRefInput<$PrismaModel> | null;
|
|
170
207
|
in?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel> | null;
|
|
@@ -292,43 +329,6 @@ export type JsonNullableWithAggregatesFilterBase<$PrismaModel = never> = {
|
|
|
292
329
|
_min?: Prisma.NestedJsonNullableFilter<$PrismaModel>;
|
|
293
330
|
_max?: Prisma.NestedJsonNullableFilter<$PrismaModel>;
|
|
294
331
|
};
|
|
295
|
-
export type JsonFilter<$PrismaModel = never> = Prisma.PatchUndefined<Prisma.Either<Required<JsonFilterBase<$PrismaModel>>, Exclude<keyof Required<JsonFilterBase<$PrismaModel>>, 'path'>>, Required<JsonFilterBase<$PrismaModel>>> | Prisma.OptionalFlat<Omit<Required<JsonFilterBase<$PrismaModel>>, 'path'>>;
|
|
296
|
-
export type JsonFilterBase<$PrismaModel = never> = {
|
|
297
|
-
equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
|
|
298
|
-
path?: string[];
|
|
299
|
-
mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel>;
|
|
300
|
-
string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
301
|
-
string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
302
|
-
string_ends_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
303
|
-
array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
|
|
304
|
-
array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
|
|
305
|
-
array_contains?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
|
|
306
|
-
lt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
307
|
-
lte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
308
|
-
gt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
309
|
-
gte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
310
|
-
not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
|
|
311
|
-
};
|
|
312
|
-
export type JsonWithAggregatesFilter<$PrismaModel = never> = Prisma.PatchUndefined<Prisma.Either<Required<JsonWithAggregatesFilterBase<$PrismaModel>>, Exclude<keyof Required<JsonWithAggregatesFilterBase<$PrismaModel>>, 'path'>>, Required<JsonWithAggregatesFilterBase<$PrismaModel>>> | Prisma.OptionalFlat<Omit<Required<JsonWithAggregatesFilterBase<$PrismaModel>>, 'path'>>;
|
|
313
|
-
export type JsonWithAggregatesFilterBase<$PrismaModel = never> = {
|
|
314
|
-
equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
|
|
315
|
-
path?: string[];
|
|
316
|
-
mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel>;
|
|
317
|
-
string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
318
|
-
string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
319
|
-
string_ends_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
320
|
-
array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
|
|
321
|
-
array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
|
|
322
|
-
array_contains?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
|
|
323
|
-
lt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
324
|
-
lte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
325
|
-
gt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
326
|
-
gte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
327
|
-
not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
|
|
328
|
-
_count?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
329
|
-
_min?: Prisma.NestedJsonFilter<$PrismaModel>;
|
|
330
|
-
_max?: Prisma.NestedJsonFilter<$PrismaModel>;
|
|
331
|
-
};
|
|
332
332
|
export type EnumOrderFulfilmentMethodNullableFilter<$PrismaModel = never> = {
|
|
333
333
|
equals?: $Enums.OrderFulfilmentMethod | Prisma.EnumOrderFulfilmentMethodFieldRefInput<$PrismaModel> | null;
|
|
334
334
|
in?: $Enums.OrderFulfilmentMethod[] | Prisma.ListEnumOrderFulfilmentMethodFieldRefInput<$PrismaModel> | null;
|
|
@@ -605,6 +605,23 @@ export type NestedEnumLocaleWithAggregatesFilter<$PrismaModel = never> = {
|
|
|
605
605
|
_min?: Prisma.NestedEnumLocaleFilter<$PrismaModel>;
|
|
606
606
|
_max?: Prisma.NestedEnumLocaleFilter<$PrismaModel>;
|
|
607
607
|
};
|
|
608
|
+
export type NestedJsonFilter<$PrismaModel = never> = Prisma.PatchUndefined<Prisma.Either<Required<NestedJsonFilterBase<$PrismaModel>>, Exclude<keyof Required<NestedJsonFilterBase<$PrismaModel>>, 'path'>>, Required<NestedJsonFilterBase<$PrismaModel>>> | Prisma.OptionalFlat<Omit<Required<NestedJsonFilterBase<$PrismaModel>>, 'path'>>;
|
|
609
|
+
export type NestedJsonFilterBase<$PrismaModel = never> = {
|
|
610
|
+
equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
|
|
611
|
+
path?: string[];
|
|
612
|
+
mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel>;
|
|
613
|
+
string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
614
|
+
string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
615
|
+
string_ends_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
616
|
+
array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
|
|
617
|
+
array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
|
|
618
|
+
array_contains?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
|
|
619
|
+
lt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
620
|
+
lte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
621
|
+
gt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
622
|
+
gte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
623
|
+
not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
|
|
624
|
+
};
|
|
608
625
|
export type NestedFloatNullableFilter<$PrismaModel = never> = {
|
|
609
626
|
equals?: number | Prisma.FloatFieldRefInput<$PrismaModel> | null;
|
|
610
627
|
in?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel> | null;
|
|
@@ -702,23 +719,6 @@ export type NestedJsonNullableFilterBase<$PrismaModel = never> = {
|
|
|
702
719
|
gte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
703
720
|
not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
|
|
704
721
|
};
|
|
705
|
-
export type NestedJsonFilter<$PrismaModel = never> = Prisma.PatchUndefined<Prisma.Either<Required<NestedJsonFilterBase<$PrismaModel>>, Exclude<keyof Required<NestedJsonFilterBase<$PrismaModel>>, 'path'>>, Required<NestedJsonFilterBase<$PrismaModel>>> | Prisma.OptionalFlat<Omit<Required<NestedJsonFilterBase<$PrismaModel>>, 'path'>>;
|
|
706
|
-
export type NestedJsonFilterBase<$PrismaModel = never> = {
|
|
707
|
-
equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
|
|
708
|
-
path?: string[];
|
|
709
|
-
mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel>;
|
|
710
|
-
string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
711
|
-
string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
712
|
-
string_ends_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
713
|
-
array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
|
|
714
|
-
array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
|
|
715
|
-
array_contains?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
|
|
716
|
-
lt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
717
|
-
lte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
718
|
-
gt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
719
|
-
gte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
720
|
-
not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
|
|
721
|
-
};
|
|
722
722
|
export type NestedEnumOrderFulfilmentMethodNullableFilter<$PrismaModel = never> = {
|
|
723
723
|
equals?: $Enums.OrderFulfilmentMethod | Prisma.EnumOrderFulfilmentMethodFieldRefInput<$PrismaModel> | null;
|
|
724
724
|
in?: $Enums.OrderFulfilmentMethod[] | Prisma.ListEnumOrderFulfilmentMethodFieldRefInput<$PrismaModel> | null;
|
|
@@ -225,6 +225,17 @@ export interface PrismaClient<in LogOpts extends Prisma.LogLevel = never, in out
|
|
|
225
225
|
get organizationConfiguration(): Prisma.OrganizationConfigurationDelegate<ExtArgs, {
|
|
226
226
|
omit: OmitOpts;
|
|
227
227
|
}>;
|
|
228
|
+
/**
|
|
229
|
+
* `prisma.integration`: Exposes CRUD operations for the **Integration** model.
|
|
230
|
+
* Example usage:
|
|
231
|
+
* ```ts
|
|
232
|
+
* // Fetch zero or more Integrations
|
|
233
|
+
* const integrations = await prisma.integration.findMany()
|
|
234
|
+
* ```
|
|
235
|
+
*/
|
|
236
|
+
get integration(): Prisma.IntegrationDelegate<ExtArgs, {
|
|
237
|
+
omit: OmitOpts;
|
|
238
|
+
}>;
|
|
228
239
|
/**
|
|
229
240
|
* `prisma.address`: Exposes CRUD operations for the **Address** model.
|
|
230
241
|
* Example usage:
|