@prenta/core 2.0.0 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/dist/api/routes/media.d.ts.map +1 -1
- package/dist/api/routes/media.js +73 -104
- package/dist/api/routes/media.js.map +1 -1
- package/dist/appearance/resolve.js +1 -1
- package/dist/appearance/resolve.js.map +1 -1
- package/dist/db/model-types.d.ts +67 -26
- package/dist/db/model-types.d.ts.map +1 -1
- package/dist/generated/browser.d.ts +16 -0
- package/dist/generated/client.d.ts +16 -0
- package/dist/generated/commonInputTypes.d.ts +30 -0
- package/dist/generated/internal/class.d.ts +33 -0
- package/dist/generated/internal/class.js +4 -4
- package/dist/generated/internal/prismaNamespace.d.ts +294 -1
- package/dist/generated/internal/prismaNamespace.js +55 -1
- package/dist/generated/internal/prismaNamespaceBrowser.d.ts +60 -0
- package/dist/generated/internal/prismaNamespaceBrowser.js +55 -1
- package/dist/generated/models/DocumentCRDT.d.ts +1110 -0
- package/dist/generated/models/DocumentCRDT.js +1 -0
- package/dist/generated/models/DocumentComment.d.ts +1722 -0
- package/dist/generated/models/DocumentComment.js +1 -0
- package/dist/generated/models/DocumentNotification.d.ts +1289 -0
- package/dist/generated/models/DocumentNotification.js +1 -0
- package/dist/generated/models/User.d.ts +552 -0
- package/dist/generated/models.d.ts +3 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/media/index.d.ts +3 -0
- package/dist/media/index.d.ts.map +1 -1
- package/dist/media/index.js +2 -0
- package/dist/media/index.js.map +1 -1
- package/dist/media/optimize.d.ts.map +1 -1
- package/dist/media/optimize.js +19 -12
- package/dist/media/optimize.js.map +1 -1
- package/dist/media/reoptimize.d.ts +61 -0
- package/dist/media/reoptimize.d.ts.map +1 -0
- package/dist/media/reoptimize.js +380 -0
- package/dist/media/reoptimize.js.map +1 -0
- package/dist/media/rewrite-urls.d.ts +20 -0
- package/dist/media/rewrite-urls.d.ts.map +1 -0
- package/dist/media/rewrite-urls.js +92 -0
- package/dist/media/rewrite-urls.js.map +1 -0
- package/dist/next.d.ts +1 -0
- package/dist/next.d.ts.map +1 -1
- package/dist/next.js +22 -0
- package/dist/next.js.map +1 -1
- package/package.json +1 -1
- package/prisma/migrations/0013_document_collab_models/migration.sql +68 -0
- package/prisma/schema.prisma +66 -5
|
@@ -267,6 +267,9 @@ export declare const ModelName: {
|
|
|
267
267
|
readonly SavedSection: "SavedSection";
|
|
268
268
|
readonly ApiRequestMetric: "ApiRequestMetric";
|
|
269
269
|
readonly ContentIssue: "ContentIssue";
|
|
270
|
+
readonly DocumentCRDT: "DocumentCRDT";
|
|
271
|
+
readonly DocumentComment: "DocumentComment";
|
|
272
|
+
readonly DocumentNotification: "DocumentNotification";
|
|
270
273
|
};
|
|
271
274
|
export type ModelName = (typeof ModelName)[keyof typeof ModelName];
|
|
272
275
|
export interface TypeMapCb<GlobalOmitOptions = {}> extends runtime.Types.Utils.Fn<{
|
|
@@ -279,7 +282,7 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
|
|
|
279
282
|
omit: GlobalOmitOptions;
|
|
280
283
|
};
|
|
281
284
|
meta: {
|
|
282
|
-
modelProps: "user" | "oAuthAccount" | "session" | "apiKey" | "auditLog" | "folder" | "document" | "version" | "media" | "mediaUsage" | "contentLock" | "inAppNotification" | "contentTemplate" | "site" | "workflowState" | "redirect" | "seoAuditRun" | "seoIssue" | "redirect404Hit" | "aiCrawlerHit" | "redirectSuggestion" | "formSchemaVersion" | "formSubmission" | "formSubmissionFile" | "formWebhook" | "formDeliveryAttempt" | "backupRecord" | "webhookEndpoint" | "webhookDeliveryLog" | "passwordResetToken" | "invite" | "scriptTag" | "pageTemplate" | "savedSection" | "apiRequestMetric" | "contentIssue";
|
|
285
|
+
modelProps: "user" | "oAuthAccount" | "session" | "apiKey" | "auditLog" | "folder" | "document" | "version" | "media" | "mediaUsage" | "contentLock" | "inAppNotification" | "contentTemplate" | "site" | "workflowState" | "redirect" | "seoAuditRun" | "seoIssue" | "redirect404Hit" | "aiCrawlerHit" | "redirectSuggestion" | "formSchemaVersion" | "formSubmission" | "formSubmissionFile" | "formWebhook" | "formDeliveryAttempt" | "backupRecord" | "webhookEndpoint" | "webhookDeliveryLog" | "passwordResetToken" | "invite" | "scriptTag" | "pageTemplate" | "savedSection" | "apiRequestMetric" | "contentIssue" | "documentCRDT" | "documentComment" | "documentNotification";
|
|
283
286
|
txIsolationLevel: TransactionIsolationLevel;
|
|
284
287
|
};
|
|
285
288
|
model: {
|
|
@@ -2947,6 +2950,228 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
|
|
|
2947
2950
|
};
|
|
2948
2951
|
};
|
|
2949
2952
|
};
|
|
2953
|
+
DocumentCRDT: {
|
|
2954
|
+
payload: Prisma.$DocumentCRDTPayload<ExtArgs>;
|
|
2955
|
+
fields: Prisma.DocumentCRDTFieldRefs;
|
|
2956
|
+
operations: {
|
|
2957
|
+
findUnique: {
|
|
2958
|
+
args: Prisma.DocumentCRDTFindUniqueArgs<ExtArgs>;
|
|
2959
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentCRDTPayload> | null;
|
|
2960
|
+
};
|
|
2961
|
+
findUniqueOrThrow: {
|
|
2962
|
+
args: Prisma.DocumentCRDTFindUniqueOrThrowArgs<ExtArgs>;
|
|
2963
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentCRDTPayload>;
|
|
2964
|
+
};
|
|
2965
|
+
findFirst: {
|
|
2966
|
+
args: Prisma.DocumentCRDTFindFirstArgs<ExtArgs>;
|
|
2967
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentCRDTPayload> | null;
|
|
2968
|
+
};
|
|
2969
|
+
findFirstOrThrow: {
|
|
2970
|
+
args: Prisma.DocumentCRDTFindFirstOrThrowArgs<ExtArgs>;
|
|
2971
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentCRDTPayload>;
|
|
2972
|
+
};
|
|
2973
|
+
findMany: {
|
|
2974
|
+
args: Prisma.DocumentCRDTFindManyArgs<ExtArgs>;
|
|
2975
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentCRDTPayload>[];
|
|
2976
|
+
};
|
|
2977
|
+
create: {
|
|
2978
|
+
args: Prisma.DocumentCRDTCreateArgs<ExtArgs>;
|
|
2979
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentCRDTPayload>;
|
|
2980
|
+
};
|
|
2981
|
+
createMany: {
|
|
2982
|
+
args: Prisma.DocumentCRDTCreateManyArgs<ExtArgs>;
|
|
2983
|
+
result: BatchPayload;
|
|
2984
|
+
};
|
|
2985
|
+
createManyAndReturn: {
|
|
2986
|
+
args: Prisma.DocumentCRDTCreateManyAndReturnArgs<ExtArgs>;
|
|
2987
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentCRDTPayload>[];
|
|
2988
|
+
};
|
|
2989
|
+
delete: {
|
|
2990
|
+
args: Prisma.DocumentCRDTDeleteArgs<ExtArgs>;
|
|
2991
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentCRDTPayload>;
|
|
2992
|
+
};
|
|
2993
|
+
update: {
|
|
2994
|
+
args: Prisma.DocumentCRDTUpdateArgs<ExtArgs>;
|
|
2995
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentCRDTPayload>;
|
|
2996
|
+
};
|
|
2997
|
+
deleteMany: {
|
|
2998
|
+
args: Prisma.DocumentCRDTDeleteManyArgs<ExtArgs>;
|
|
2999
|
+
result: BatchPayload;
|
|
3000
|
+
};
|
|
3001
|
+
updateMany: {
|
|
3002
|
+
args: Prisma.DocumentCRDTUpdateManyArgs<ExtArgs>;
|
|
3003
|
+
result: BatchPayload;
|
|
3004
|
+
};
|
|
3005
|
+
updateManyAndReturn: {
|
|
3006
|
+
args: Prisma.DocumentCRDTUpdateManyAndReturnArgs<ExtArgs>;
|
|
3007
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentCRDTPayload>[];
|
|
3008
|
+
};
|
|
3009
|
+
upsert: {
|
|
3010
|
+
args: Prisma.DocumentCRDTUpsertArgs<ExtArgs>;
|
|
3011
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentCRDTPayload>;
|
|
3012
|
+
};
|
|
3013
|
+
aggregate: {
|
|
3014
|
+
args: Prisma.DocumentCRDTAggregateArgs<ExtArgs>;
|
|
3015
|
+
result: runtime.Types.Utils.Optional<Prisma.AggregateDocumentCRDT>;
|
|
3016
|
+
};
|
|
3017
|
+
groupBy: {
|
|
3018
|
+
args: Prisma.DocumentCRDTGroupByArgs<ExtArgs>;
|
|
3019
|
+
result: runtime.Types.Utils.Optional<Prisma.DocumentCRDTGroupByOutputType>[];
|
|
3020
|
+
};
|
|
3021
|
+
count: {
|
|
3022
|
+
args: Prisma.DocumentCRDTCountArgs<ExtArgs>;
|
|
3023
|
+
result: runtime.Types.Utils.Optional<Prisma.DocumentCRDTCountAggregateOutputType> | number;
|
|
3024
|
+
};
|
|
3025
|
+
};
|
|
3026
|
+
};
|
|
3027
|
+
DocumentComment: {
|
|
3028
|
+
payload: Prisma.$DocumentCommentPayload<ExtArgs>;
|
|
3029
|
+
fields: Prisma.DocumentCommentFieldRefs;
|
|
3030
|
+
operations: {
|
|
3031
|
+
findUnique: {
|
|
3032
|
+
args: Prisma.DocumentCommentFindUniqueArgs<ExtArgs>;
|
|
3033
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentCommentPayload> | null;
|
|
3034
|
+
};
|
|
3035
|
+
findUniqueOrThrow: {
|
|
3036
|
+
args: Prisma.DocumentCommentFindUniqueOrThrowArgs<ExtArgs>;
|
|
3037
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentCommentPayload>;
|
|
3038
|
+
};
|
|
3039
|
+
findFirst: {
|
|
3040
|
+
args: Prisma.DocumentCommentFindFirstArgs<ExtArgs>;
|
|
3041
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentCommentPayload> | null;
|
|
3042
|
+
};
|
|
3043
|
+
findFirstOrThrow: {
|
|
3044
|
+
args: Prisma.DocumentCommentFindFirstOrThrowArgs<ExtArgs>;
|
|
3045
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentCommentPayload>;
|
|
3046
|
+
};
|
|
3047
|
+
findMany: {
|
|
3048
|
+
args: Prisma.DocumentCommentFindManyArgs<ExtArgs>;
|
|
3049
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentCommentPayload>[];
|
|
3050
|
+
};
|
|
3051
|
+
create: {
|
|
3052
|
+
args: Prisma.DocumentCommentCreateArgs<ExtArgs>;
|
|
3053
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentCommentPayload>;
|
|
3054
|
+
};
|
|
3055
|
+
createMany: {
|
|
3056
|
+
args: Prisma.DocumentCommentCreateManyArgs<ExtArgs>;
|
|
3057
|
+
result: BatchPayload;
|
|
3058
|
+
};
|
|
3059
|
+
createManyAndReturn: {
|
|
3060
|
+
args: Prisma.DocumentCommentCreateManyAndReturnArgs<ExtArgs>;
|
|
3061
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentCommentPayload>[];
|
|
3062
|
+
};
|
|
3063
|
+
delete: {
|
|
3064
|
+
args: Prisma.DocumentCommentDeleteArgs<ExtArgs>;
|
|
3065
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentCommentPayload>;
|
|
3066
|
+
};
|
|
3067
|
+
update: {
|
|
3068
|
+
args: Prisma.DocumentCommentUpdateArgs<ExtArgs>;
|
|
3069
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentCommentPayload>;
|
|
3070
|
+
};
|
|
3071
|
+
deleteMany: {
|
|
3072
|
+
args: Prisma.DocumentCommentDeleteManyArgs<ExtArgs>;
|
|
3073
|
+
result: BatchPayload;
|
|
3074
|
+
};
|
|
3075
|
+
updateMany: {
|
|
3076
|
+
args: Prisma.DocumentCommentUpdateManyArgs<ExtArgs>;
|
|
3077
|
+
result: BatchPayload;
|
|
3078
|
+
};
|
|
3079
|
+
updateManyAndReturn: {
|
|
3080
|
+
args: Prisma.DocumentCommentUpdateManyAndReturnArgs<ExtArgs>;
|
|
3081
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentCommentPayload>[];
|
|
3082
|
+
};
|
|
3083
|
+
upsert: {
|
|
3084
|
+
args: Prisma.DocumentCommentUpsertArgs<ExtArgs>;
|
|
3085
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentCommentPayload>;
|
|
3086
|
+
};
|
|
3087
|
+
aggregate: {
|
|
3088
|
+
args: Prisma.DocumentCommentAggregateArgs<ExtArgs>;
|
|
3089
|
+
result: runtime.Types.Utils.Optional<Prisma.AggregateDocumentComment>;
|
|
3090
|
+
};
|
|
3091
|
+
groupBy: {
|
|
3092
|
+
args: Prisma.DocumentCommentGroupByArgs<ExtArgs>;
|
|
3093
|
+
result: runtime.Types.Utils.Optional<Prisma.DocumentCommentGroupByOutputType>[];
|
|
3094
|
+
};
|
|
3095
|
+
count: {
|
|
3096
|
+
args: Prisma.DocumentCommentCountArgs<ExtArgs>;
|
|
3097
|
+
result: runtime.Types.Utils.Optional<Prisma.DocumentCommentCountAggregateOutputType> | number;
|
|
3098
|
+
};
|
|
3099
|
+
};
|
|
3100
|
+
};
|
|
3101
|
+
DocumentNotification: {
|
|
3102
|
+
payload: Prisma.$DocumentNotificationPayload<ExtArgs>;
|
|
3103
|
+
fields: Prisma.DocumentNotificationFieldRefs;
|
|
3104
|
+
operations: {
|
|
3105
|
+
findUnique: {
|
|
3106
|
+
args: Prisma.DocumentNotificationFindUniqueArgs<ExtArgs>;
|
|
3107
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentNotificationPayload> | null;
|
|
3108
|
+
};
|
|
3109
|
+
findUniqueOrThrow: {
|
|
3110
|
+
args: Prisma.DocumentNotificationFindUniqueOrThrowArgs<ExtArgs>;
|
|
3111
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentNotificationPayload>;
|
|
3112
|
+
};
|
|
3113
|
+
findFirst: {
|
|
3114
|
+
args: Prisma.DocumentNotificationFindFirstArgs<ExtArgs>;
|
|
3115
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentNotificationPayload> | null;
|
|
3116
|
+
};
|
|
3117
|
+
findFirstOrThrow: {
|
|
3118
|
+
args: Prisma.DocumentNotificationFindFirstOrThrowArgs<ExtArgs>;
|
|
3119
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentNotificationPayload>;
|
|
3120
|
+
};
|
|
3121
|
+
findMany: {
|
|
3122
|
+
args: Prisma.DocumentNotificationFindManyArgs<ExtArgs>;
|
|
3123
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentNotificationPayload>[];
|
|
3124
|
+
};
|
|
3125
|
+
create: {
|
|
3126
|
+
args: Prisma.DocumentNotificationCreateArgs<ExtArgs>;
|
|
3127
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentNotificationPayload>;
|
|
3128
|
+
};
|
|
3129
|
+
createMany: {
|
|
3130
|
+
args: Prisma.DocumentNotificationCreateManyArgs<ExtArgs>;
|
|
3131
|
+
result: BatchPayload;
|
|
3132
|
+
};
|
|
3133
|
+
createManyAndReturn: {
|
|
3134
|
+
args: Prisma.DocumentNotificationCreateManyAndReturnArgs<ExtArgs>;
|
|
3135
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentNotificationPayload>[];
|
|
3136
|
+
};
|
|
3137
|
+
delete: {
|
|
3138
|
+
args: Prisma.DocumentNotificationDeleteArgs<ExtArgs>;
|
|
3139
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentNotificationPayload>;
|
|
3140
|
+
};
|
|
3141
|
+
update: {
|
|
3142
|
+
args: Prisma.DocumentNotificationUpdateArgs<ExtArgs>;
|
|
3143
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentNotificationPayload>;
|
|
3144
|
+
};
|
|
3145
|
+
deleteMany: {
|
|
3146
|
+
args: Prisma.DocumentNotificationDeleteManyArgs<ExtArgs>;
|
|
3147
|
+
result: BatchPayload;
|
|
3148
|
+
};
|
|
3149
|
+
updateMany: {
|
|
3150
|
+
args: Prisma.DocumentNotificationUpdateManyArgs<ExtArgs>;
|
|
3151
|
+
result: BatchPayload;
|
|
3152
|
+
};
|
|
3153
|
+
updateManyAndReturn: {
|
|
3154
|
+
args: Prisma.DocumentNotificationUpdateManyAndReturnArgs<ExtArgs>;
|
|
3155
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentNotificationPayload>[];
|
|
3156
|
+
};
|
|
3157
|
+
upsert: {
|
|
3158
|
+
args: Prisma.DocumentNotificationUpsertArgs<ExtArgs>;
|
|
3159
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$DocumentNotificationPayload>;
|
|
3160
|
+
};
|
|
3161
|
+
aggregate: {
|
|
3162
|
+
args: Prisma.DocumentNotificationAggregateArgs<ExtArgs>;
|
|
3163
|
+
result: runtime.Types.Utils.Optional<Prisma.AggregateDocumentNotification>;
|
|
3164
|
+
};
|
|
3165
|
+
groupBy: {
|
|
3166
|
+
args: Prisma.DocumentNotificationGroupByArgs<ExtArgs>;
|
|
3167
|
+
result: runtime.Types.Utils.Optional<Prisma.DocumentNotificationGroupByOutputType>[];
|
|
3168
|
+
};
|
|
3169
|
+
count: {
|
|
3170
|
+
args: Prisma.DocumentNotificationCountArgs<ExtArgs>;
|
|
3171
|
+
result: runtime.Types.Utils.Optional<Prisma.DocumentNotificationCountAggregateOutputType> | number;
|
|
3172
|
+
};
|
|
3173
|
+
};
|
|
3174
|
+
};
|
|
2950
3175
|
};
|
|
2951
3176
|
} & {
|
|
2952
3177
|
other: {
|
|
@@ -3516,6 +3741,41 @@ export declare const ContentIssueScalarFieldEnum: {
|
|
|
3516
3741
|
readonly lastSeenAt: "lastSeenAt";
|
|
3517
3742
|
};
|
|
3518
3743
|
export type ContentIssueScalarFieldEnum = (typeof ContentIssueScalarFieldEnum)[keyof typeof ContentIssueScalarFieldEnum];
|
|
3744
|
+
export declare const DocumentCRDTScalarFieldEnum: {
|
|
3745
|
+
readonly documentId: "documentId";
|
|
3746
|
+
readonly state: "state";
|
|
3747
|
+
readonly stateVector: "stateVector";
|
|
3748
|
+
readonly version: "version";
|
|
3749
|
+
readonly lastUpdatedAt: "lastUpdatedAt";
|
|
3750
|
+
readonly lastUpdatedById: "lastUpdatedById";
|
|
3751
|
+
readonly createdAt: "createdAt";
|
|
3752
|
+
};
|
|
3753
|
+
export type DocumentCRDTScalarFieldEnum = (typeof DocumentCRDTScalarFieldEnum)[keyof typeof DocumentCRDTScalarFieldEnum];
|
|
3754
|
+
export declare const DocumentCommentScalarFieldEnum: {
|
|
3755
|
+
readonly id: "id";
|
|
3756
|
+
readonly documentId: "documentId";
|
|
3757
|
+
readonly parentId: "parentId";
|
|
3758
|
+
readonly userId: "userId";
|
|
3759
|
+
readonly body: "body";
|
|
3760
|
+
readonly anchor: "anchor";
|
|
3761
|
+
readonly resolvedAt: "resolvedAt";
|
|
3762
|
+
readonly resolvedById: "resolvedById";
|
|
3763
|
+
readonly deletedAt: "deletedAt";
|
|
3764
|
+
readonly createdAt: "createdAt";
|
|
3765
|
+
readonly updatedAt: "updatedAt";
|
|
3766
|
+
};
|
|
3767
|
+
export type DocumentCommentScalarFieldEnum = (typeof DocumentCommentScalarFieldEnum)[keyof typeof DocumentCommentScalarFieldEnum];
|
|
3768
|
+
export declare const DocumentNotificationScalarFieldEnum: {
|
|
3769
|
+
readonly id: "id";
|
|
3770
|
+
readonly userId: "userId";
|
|
3771
|
+
readonly kind: "kind";
|
|
3772
|
+
readonly documentId: "documentId";
|
|
3773
|
+
readonly commentId: "commentId";
|
|
3774
|
+
readonly payload: "payload";
|
|
3775
|
+
readonly readAt: "readAt";
|
|
3776
|
+
readonly createdAt: "createdAt";
|
|
3777
|
+
};
|
|
3778
|
+
export type DocumentNotificationScalarFieldEnum = (typeof DocumentNotificationScalarFieldEnum)[keyof typeof DocumentNotificationScalarFieldEnum];
|
|
3519
3779
|
export declare const SortOrder: {
|
|
3520
3780
|
readonly asc: "asc";
|
|
3521
3781
|
readonly desc: "desc";
|
|
@@ -3876,6 +4136,28 @@ export declare const ContentIssueOrderByRelevanceFieldEnum: {
|
|
|
3876
4136
|
readonly documentId: "documentId";
|
|
3877
4137
|
};
|
|
3878
4138
|
export type ContentIssueOrderByRelevanceFieldEnum = (typeof ContentIssueOrderByRelevanceFieldEnum)[keyof typeof ContentIssueOrderByRelevanceFieldEnum];
|
|
4139
|
+
export declare const DocumentCRDTOrderByRelevanceFieldEnum: {
|
|
4140
|
+
readonly documentId: "documentId";
|
|
4141
|
+
readonly lastUpdatedById: "lastUpdatedById";
|
|
4142
|
+
};
|
|
4143
|
+
export type DocumentCRDTOrderByRelevanceFieldEnum = (typeof DocumentCRDTOrderByRelevanceFieldEnum)[keyof typeof DocumentCRDTOrderByRelevanceFieldEnum];
|
|
4144
|
+
export declare const DocumentCommentOrderByRelevanceFieldEnum: {
|
|
4145
|
+
readonly id: "id";
|
|
4146
|
+
readonly documentId: "documentId";
|
|
4147
|
+
readonly parentId: "parentId";
|
|
4148
|
+
readonly userId: "userId";
|
|
4149
|
+
readonly body: "body";
|
|
4150
|
+
readonly resolvedById: "resolvedById";
|
|
4151
|
+
};
|
|
4152
|
+
export type DocumentCommentOrderByRelevanceFieldEnum = (typeof DocumentCommentOrderByRelevanceFieldEnum)[keyof typeof DocumentCommentOrderByRelevanceFieldEnum];
|
|
4153
|
+
export declare const DocumentNotificationOrderByRelevanceFieldEnum: {
|
|
4154
|
+
readonly id: "id";
|
|
4155
|
+
readonly userId: "userId";
|
|
4156
|
+
readonly kind: "kind";
|
|
4157
|
+
readonly documentId: "documentId";
|
|
4158
|
+
readonly commentId: "commentId";
|
|
4159
|
+
};
|
|
4160
|
+
export type DocumentNotificationOrderByRelevanceFieldEnum = (typeof DocumentNotificationOrderByRelevanceFieldEnum)[keyof typeof DocumentNotificationOrderByRelevanceFieldEnum];
|
|
3879
4161
|
/**
|
|
3880
4162
|
* Field references
|
|
3881
4163
|
*/
|
|
@@ -4011,6 +4293,14 @@ export type EnumContentIssueTypeFieldRefInput<$PrismaModel> = FieldRefInputType<
|
|
|
4011
4293
|
* Reference to a field of type 'ContentIssueType[]'
|
|
4012
4294
|
*/
|
|
4013
4295
|
export type ListEnumContentIssueTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'ContentIssueType[]'>;
|
|
4296
|
+
/**
|
|
4297
|
+
* Reference to a field of type 'Bytes'
|
|
4298
|
+
*/
|
|
4299
|
+
export type BytesFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Bytes'>;
|
|
4300
|
+
/**
|
|
4301
|
+
* Reference to a field of type 'Bytes[]'
|
|
4302
|
+
*/
|
|
4303
|
+
export type ListBytesFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Bytes[]'>;
|
|
4014
4304
|
/**
|
|
4015
4305
|
* Batch Payload for updateMany & deleteMany & createMany
|
|
4016
4306
|
*/
|
|
@@ -4156,6 +4446,9 @@ export type GlobalOmitConfig = {
|
|
|
4156
4446
|
savedSection?: Prisma.SavedSectionOmit;
|
|
4157
4447
|
apiRequestMetric?: Prisma.ApiRequestMetricOmit;
|
|
4158
4448
|
contentIssue?: Prisma.ContentIssueOmit;
|
|
4449
|
+
documentCRDT?: Prisma.DocumentCRDTOmit;
|
|
4450
|
+
documentComment?: Prisma.DocumentCommentOmit;
|
|
4451
|
+
documentNotification?: Prisma.DocumentNotificationOmit;
|
|
4159
4452
|
};
|
|
4160
4453
|
export type LogLevel = 'info' | 'query' | 'warn' | 'error';
|
|
4161
4454
|
export type LogDefinition = {
|
|
@@ -102,7 +102,10 @@ export const ModelName = {
|
|
|
102
102
|
PageTemplate: 'PageTemplate',
|
|
103
103
|
SavedSection: 'SavedSection',
|
|
104
104
|
ApiRequestMetric: 'ApiRequestMetric',
|
|
105
|
-
ContentIssue: 'ContentIssue'
|
|
105
|
+
ContentIssue: 'ContentIssue',
|
|
106
|
+
DocumentCRDT: 'DocumentCRDT',
|
|
107
|
+
DocumentComment: 'DocumentComment',
|
|
108
|
+
DocumentNotification: 'DocumentNotification'
|
|
106
109
|
};
|
|
107
110
|
/**
|
|
108
111
|
* Enums
|
|
@@ -611,6 +614,38 @@ export const ContentIssueScalarFieldEnum = {
|
|
|
611
614
|
firstSeenAt: 'firstSeenAt',
|
|
612
615
|
lastSeenAt: 'lastSeenAt'
|
|
613
616
|
};
|
|
617
|
+
export const DocumentCRDTScalarFieldEnum = {
|
|
618
|
+
documentId: 'documentId',
|
|
619
|
+
state: 'state',
|
|
620
|
+
stateVector: 'stateVector',
|
|
621
|
+
version: 'version',
|
|
622
|
+
lastUpdatedAt: 'lastUpdatedAt',
|
|
623
|
+
lastUpdatedById: 'lastUpdatedById',
|
|
624
|
+
createdAt: 'createdAt'
|
|
625
|
+
};
|
|
626
|
+
export const DocumentCommentScalarFieldEnum = {
|
|
627
|
+
id: 'id',
|
|
628
|
+
documentId: 'documentId',
|
|
629
|
+
parentId: 'parentId',
|
|
630
|
+
userId: 'userId',
|
|
631
|
+
body: 'body',
|
|
632
|
+
anchor: 'anchor',
|
|
633
|
+
resolvedAt: 'resolvedAt',
|
|
634
|
+
resolvedById: 'resolvedById',
|
|
635
|
+
deletedAt: 'deletedAt',
|
|
636
|
+
createdAt: 'createdAt',
|
|
637
|
+
updatedAt: 'updatedAt'
|
|
638
|
+
};
|
|
639
|
+
export const DocumentNotificationScalarFieldEnum = {
|
|
640
|
+
id: 'id',
|
|
641
|
+
userId: 'userId',
|
|
642
|
+
kind: 'kind',
|
|
643
|
+
documentId: 'documentId',
|
|
644
|
+
commentId: 'commentId',
|
|
645
|
+
payload: 'payload',
|
|
646
|
+
readAt: 'readAt',
|
|
647
|
+
createdAt: 'createdAt'
|
|
648
|
+
};
|
|
614
649
|
export const SortOrder = {
|
|
615
650
|
asc: 'asc',
|
|
616
651
|
desc: 'desc'
|
|
@@ -929,4 +964,23 @@ export const ContentIssueOrderByRelevanceFieldEnum = {
|
|
|
929
964
|
id: 'id',
|
|
930
965
|
documentId: 'documentId'
|
|
931
966
|
};
|
|
967
|
+
export const DocumentCRDTOrderByRelevanceFieldEnum = {
|
|
968
|
+
documentId: 'documentId',
|
|
969
|
+
lastUpdatedById: 'lastUpdatedById'
|
|
970
|
+
};
|
|
971
|
+
export const DocumentCommentOrderByRelevanceFieldEnum = {
|
|
972
|
+
id: 'id',
|
|
973
|
+
documentId: 'documentId',
|
|
974
|
+
parentId: 'parentId',
|
|
975
|
+
userId: 'userId',
|
|
976
|
+
body: 'body',
|
|
977
|
+
resolvedById: 'resolvedById'
|
|
978
|
+
};
|
|
979
|
+
export const DocumentNotificationOrderByRelevanceFieldEnum = {
|
|
980
|
+
id: 'id',
|
|
981
|
+
userId: 'userId',
|
|
982
|
+
kind: 'kind',
|
|
983
|
+
documentId: 'documentId',
|
|
984
|
+
commentId: 'commentId'
|
|
985
|
+
};
|
|
932
986
|
export const defineExtension = runtime.Extensions.defineExtension;
|
|
@@ -62,6 +62,9 @@ export declare const ModelName: {
|
|
|
62
62
|
readonly SavedSection: "SavedSection";
|
|
63
63
|
readonly ApiRequestMetric: "ApiRequestMetric";
|
|
64
64
|
readonly ContentIssue: "ContentIssue";
|
|
65
|
+
readonly DocumentCRDT: "DocumentCRDT";
|
|
66
|
+
readonly DocumentComment: "DocumentComment";
|
|
67
|
+
readonly DocumentNotification: "DocumentNotification";
|
|
65
68
|
};
|
|
66
69
|
export type ModelName = (typeof ModelName)[keyof typeof ModelName];
|
|
67
70
|
export declare const TransactionIsolationLevel: {
|
|
@@ -606,6 +609,41 @@ export declare const ContentIssueScalarFieldEnum: {
|
|
|
606
609
|
readonly lastSeenAt: "lastSeenAt";
|
|
607
610
|
};
|
|
608
611
|
export type ContentIssueScalarFieldEnum = (typeof ContentIssueScalarFieldEnum)[keyof typeof ContentIssueScalarFieldEnum];
|
|
612
|
+
export declare const DocumentCRDTScalarFieldEnum: {
|
|
613
|
+
readonly documentId: "documentId";
|
|
614
|
+
readonly state: "state";
|
|
615
|
+
readonly stateVector: "stateVector";
|
|
616
|
+
readonly version: "version";
|
|
617
|
+
readonly lastUpdatedAt: "lastUpdatedAt";
|
|
618
|
+
readonly lastUpdatedById: "lastUpdatedById";
|
|
619
|
+
readonly createdAt: "createdAt";
|
|
620
|
+
};
|
|
621
|
+
export type DocumentCRDTScalarFieldEnum = (typeof DocumentCRDTScalarFieldEnum)[keyof typeof DocumentCRDTScalarFieldEnum];
|
|
622
|
+
export declare const DocumentCommentScalarFieldEnum: {
|
|
623
|
+
readonly id: "id";
|
|
624
|
+
readonly documentId: "documentId";
|
|
625
|
+
readonly parentId: "parentId";
|
|
626
|
+
readonly userId: "userId";
|
|
627
|
+
readonly body: "body";
|
|
628
|
+
readonly anchor: "anchor";
|
|
629
|
+
readonly resolvedAt: "resolvedAt";
|
|
630
|
+
readonly resolvedById: "resolvedById";
|
|
631
|
+
readonly deletedAt: "deletedAt";
|
|
632
|
+
readonly createdAt: "createdAt";
|
|
633
|
+
readonly updatedAt: "updatedAt";
|
|
634
|
+
};
|
|
635
|
+
export type DocumentCommentScalarFieldEnum = (typeof DocumentCommentScalarFieldEnum)[keyof typeof DocumentCommentScalarFieldEnum];
|
|
636
|
+
export declare const DocumentNotificationScalarFieldEnum: {
|
|
637
|
+
readonly id: "id";
|
|
638
|
+
readonly userId: "userId";
|
|
639
|
+
readonly kind: "kind";
|
|
640
|
+
readonly documentId: "documentId";
|
|
641
|
+
readonly commentId: "commentId";
|
|
642
|
+
readonly payload: "payload";
|
|
643
|
+
readonly readAt: "readAt";
|
|
644
|
+
readonly createdAt: "createdAt";
|
|
645
|
+
};
|
|
646
|
+
export type DocumentNotificationScalarFieldEnum = (typeof DocumentNotificationScalarFieldEnum)[keyof typeof DocumentNotificationScalarFieldEnum];
|
|
609
647
|
export declare const SortOrder: {
|
|
610
648
|
readonly asc: "asc";
|
|
611
649
|
readonly desc: "desc";
|
|
@@ -966,3 +1004,25 @@ export declare const ContentIssueOrderByRelevanceFieldEnum: {
|
|
|
966
1004
|
readonly documentId: "documentId";
|
|
967
1005
|
};
|
|
968
1006
|
export type ContentIssueOrderByRelevanceFieldEnum = (typeof ContentIssueOrderByRelevanceFieldEnum)[keyof typeof ContentIssueOrderByRelevanceFieldEnum];
|
|
1007
|
+
export declare const DocumentCRDTOrderByRelevanceFieldEnum: {
|
|
1008
|
+
readonly documentId: "documentId";
|
|
1009
|
+
readonly lastUpdatedById: "lastUpdatedById";
|
|
1010
|
+
};
|
|
1011
|
+
export type DocumentCRDTOrderByRelevanceFieldEnum = (typeof DocumentCRDTOrderByRelevanceFieldEnum)[keyof typeof DocumentCRDTOrderByRelevanceFieldEnum];
|
|
1012
|
+
export declare const DocumentCommentOrderByRelevanceFieldEnum: {
|
|
1013
|
+
readonly id: "id";
|
|
1014
|
+
readonly documentId: "documentId";
|
|
1015
|
+
readonly parentId: "parentId";
|
|
1016
|
+
readonly userId: "userId";
|
|
1017
|
+
readonly body: "body";
|
|
1018
|
+
readonly resolvedById: "resolvedById";
|
|
1019
|
+
};
|
|
1020
|
+
export type DocumentCommentOrderByRelevanceFieldEnum = (typeof DocumentCommentOrderByRelevanceFieldEnum)[keyof typeof DocumentCommentOrderByRelevanceFieldEnum];
|
|
1021
|
+
export declare const DocumentNotificationOrderByRelevanceFieldEnum: {
|
|
1022
|
+
readonly id: "id";
|
|
1023
|
+
readonly userId: "userId";
|
|
1024
|
+
readonly kind: "kind";
|
|
1025
|
+
readonly documentId: "documentId";
|
|
1026
|
+
readonly commentId: "commentId";
|
|
1027
|
+
};
|
|
1028
|
+
export type DocumentNotificationOrderByRelevanceFieldEnum = (typeof DocumentNotificationOrderByRelevanceFieldEnum)[keyof typeof DocumentNotificationOrderByRelevanceFieldEnum];
|
|
@@ -74,7 +74,10 @@ export const ModelName = {
|
|
|
74
74
|
PageTemplate: 'PageTemplate',
|
|
75
75
|
SavedSection: 'SavedSection',
|
|
76
76
|
ApiRequestMetric: 'ApiRequestMetric',
|
|
77
|
-
ContentIssue: 'ContentIssue'
|
|
77
|
+
ContentIssue: 'ContentIssue',
|
|
78
|
+
DocumentCRDT: 'DocumentCRDT',
|
|
79
|
+
DocumentComment: 'DocumentComment',
|
|
80
|
+
DocumentNotification: 'DocumentNotification'
|
|
78
81
|
};
|
|
79
82
|
/*
|
|
80
83
|
* Enums
|
|
@@ -583,6 +586,38 @@ export const ContentIssueScalarFieldEnum = {
|
|
|
583
586
|
firstSeenAt: 'firstSeenAt',
|
|
584
587
|
lastSeenAt: 'lastSeenAt'
|
|
585
588
|
};
|
|
589
|
+
export const DocumentCRDTScalarFieldEnum = {
|
|
590
|
+
documentId: 'documentId',
|
|
591
|
+
state: 'state',
|
|
592
|
+
stateVector: 'stateVector',
|
|
593
|
+
version: 'version',
|
|
594
|
+
lastUpdatedAt: 'lastUpdatedAt',
|
|
595
|
+
lastUpdatedById: 'lastUpdatedById',
|
|
596
|
+
createdAt: 'createdAt'
|
|
597
|
+
};
|
|
598
|
+
export const DocumentCommentScalarFieldEnum = {
|
|
599
|
+
id: 'id',
|
|
600
|
+
documentId: 'documentId',
|
|
601
|
+
parentId: 'parentId',
|
|
602
|
+
userId: 'userId',
|
|
603
|
+
body: 'body',
|
|
604
|
+
anchor: 'anchor',
|
|
605
|
+
resolvedAt: 'resolvedAt',
|
|
606
|
+
resolvedById: 'resolvedById',
|
|
607
|
+
deletedAt: 'deletedAt',
|
|
608
|
+
createdAt: 'createdAt',
|
|
609
|
+
updatedAt: 'updatedAt'
|
|
610
|
+
};
|
|
611
|
+
export const DocumentNotificationScalarFieldEnum = {
|
|
612
|
+
id: 'id',
|
|
613
|
+
userId: 'userId',
|
|
614
|
+
kind: 'kind',
|
|
615
|
+
documentId: 'documentId',
|
|
616
|
+
commentId: 'commentId',
|
|
617
|
+
payload: 'payload',
|
|
618
|
+
readAt: 'readAt',
|
|
619
|
+
createdAt: 'createdAt'
|
|
620
|
+
};
|
|
586
621
|
export const SortOrder = {
|
|
587
622
|
asc: 'asc',
|
|
588
623
|
desc: 'desc'
|
|
@@ -901,3 +936,22 @@ export const ContentIssueOrderByRelevanceFieldEnum = {
|
|
|
901
936
|
id: 'id',
|
|
902
937
|
documentId: 'documentId'
|
|
903
938
|
};
|
|
939
|
+
export const DocumentCRDTOrderByRelevanceFieldEnum = {
|
|
940
|
+
documentId: 'documentId',
|
|
941
|
+
lastUpdatedById: 'lastUpdatedById'
|
|
942
|
+
};
|
|
943
|
+
export const DocumentCommentOrderByRelevanceFieldEnum = {
|
|
944
|
+
id: 'id',
|
|
945
|
+
documentId: 'documentId',
|
|
946
|
+
parentId: 'parentId',
|
|
947
|
+
userId: 'userId',
|
|
948
|
+
body: 'body',
|
|
949
|
+
resolvedById: 'resolvedById'
|
|
950
|
+
};
|
|
951
|
+
export const DocumentNotificationOrderByRelevanceFieldEnum = {
|
|
952
|
+
id: 'id',
|
|
953
|
+
userId: 'userId',
|
|
954
|
+
kind: 'kind',
|
|
955
|
+
documentId: 'documentId',
|
|
956
|
+
commentId: 'commentId'
|
|
957
|
+
};
|