@prenta/core 7.8.0 → 8.1.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.
Files changed (58) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/api/openapi.d.ts.map +1 -1
  3. package/dist/api/openapi.js +35 -11
  4. package/dist/api/openapi.js.map +1 -1
  5. package/dist/api/routes/media.d.ts.map +1 -1
  6. package/dist/api/routes/media.js +4 -2
  7. package/dist/api/routes/media.js.map +1 -1
  8. package/dist/api/routes/scheduling.d.ts.map +1 -1
  9. package/dist/api/routes/scheduling.js +6 -47
  10. package/dist/api/routes/scheduling.js.map +1 -1
  11. package/dist/content-health/cron.d.ts +16 -0
  12. package/dist/content-health/cron.d.ts.map +1 -1
  13. package/dist/content-health/cron.js +18 -4
  14. package/dist/content-health/cron.js.map +1 -1
  15. package/dist/db/model-types.d.ts +15 -0
  16. package/dist/db/model-types.d.ts.map +1 -1
  17. package/dist/generated/browser.d.ts +8 -0
  18. package/dist/generated/client.d.ts +8 -0
  19. package/dist/generated/internal/class.d.ts +11 -0
  20. package/dist/generated/internal/class.js +4 -4
  21. package/dist/generated/internal/prismaNamespace.d.ts +99 -1
  22. package/dist/generated/internal/prismaNamespace.js +22 -1
  23. package/dist/generated/internal/prismaNamespaceBrowser.d.ts +23 -0
  24. package/dist/generated/internal/prismaNamespaceBrowser.js +22 -1
  25. package/dist/generated/models/Job.d.ts +1243 -0
  26. package/dist/generated/models/Job.js +1 -0
  27. package/dist/generated/models.d.ts +1 -0
  28. package/dist/jobs/handlers.d.ts +4 -0
  29. package/dist/jobs/handlers.d.ts.map +1 -0
  30. package/dist/jobs/handlers.js +95 -0
  31. package/dist/jobs/handlers.js.map +1 -0
  32. package/dist/jobs/memory-store.d.ts +13 -0
  33. package/dist/jobs/memory-store.d.ts.map +1 -0
  34. package/dist/jobs/memory-store.js +55 -0
  35. package/dist/jobs/memory-store.js.map +1 -0
  36. package/dist/jobs/prisma-store.d.ts +13 -0
  37. package/dist/jobs/prisma-store.d.ts.map +1 -0
  38. package/dist/jobs/prisma-store.js +113 -0
  39. package/dist/jobs/prisma-store.js.map +1 -0
  40. package/dist/jobs/queue.d.ts +17 -0
  41. package/dist/jobs/queue.d.ts.map +1 -0
  42. package/dist/jobs/queue.js +134 -0
  43. package/dist/jobs/queue.js.map +1 -0
  44. package/dist/jobs/routes.d.ts +10 -0
  45. package/dist/jobs/routes.d.ts.map +1 -0
  46. package/dist/jobs/routes.js +61 -0
  47. package/dist/jobs/routes.js.map +1 -0
  48. package/dist/jobs/seo-scan-tick.d.ts +12 -0
  49. package/dist/jobs/seo-scan-tick.d.ts.map +1 -0
  50. package/dist/jobs/seo-scan-tick.js +41 -0
  51. package/dist/jobs/seo-scan-tick.js.map +1 -0
  52. package/dist/jobs/types.d.ts +52 -0
  53. package/dist/jobs/types.d.ts.map +1 -0
  54. package/dist/jobs/types.js +2 -0
  55. package/dist/jobs/types.js.map +1 -0
  56. package/package.json +1 -1
  57. package/prisma/migrations/0022_jobs/migration.sql +20 -0
  58. package/prisma/schema.prisma +22 -0
@@ -270,6 +270,7 @@ export declare const ModelName: {
270
270
  readonly DocumentCRDT: "DocumentCRDT";
271
271
  readonly DocumentComment: "DocumentComment";
272
272
  readonly DocumentNotification: "DocumentNotification";
273
+ readonly Job: "Job";
273
274
  };
274
275
  export type ModelName = (typeof ModelName)[keyof typeof ModelName];
275
276
  export interface TypeMapCb<GlobalOmitOptions = {}> extends runtime.Types.Utils.Fn<{
@@ -282,7 +283,7 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
282
283
  omit: GlobalOmitOptions;
283
284
  };
284
285
  meta: {
285
- modelProps: "user" | "oAuthAccount" | "session" | "apiKey" | "auditLog" | "folder" | "document" | "version" | "media" | "mediaUsage" | "contentLock" | "inAppNotification" | "contentTemplate" | "redirect" | "seoAuditRun" | "seoIssue" | "redirect404Hit" | "aiCrawlerHit" | "searchPerfDaily" | "searchPageInsight" | "geoCrawlDaily" | "geoReferralDaily" | "redirectSuggestion" | "seoAutoApply" | "formSchemaVersion" | "formSubmission" | "formSubmissionFile" | "formWebhook" | "formDeliveryAttempt" | "webhookEndpoint" | "webhookDeliveryLog" | "passwordResetToken" | "invite" | "scriptTag" | "apiRequestMetric" | "contentIssue" | "documentCRDT" | "documentComment" | "documentNotification";
286
+ modelProps: "user" | "oAuthAccount" | "session" | "apiKey" | "auditLog" | "folder" | "document" | "version" | "media" | "mediaUsage" | "contentLock" | "inAppNotification" | "contentTemplate" | "redirect" | "seoAuditRun" | "seoIssue" | "redirect404Hit" | "aiCrawlerHit" | "searchPerfDaily" | "searchPageInsight" | "geoCrawlDaily" | "geoReferralDaily" | "redirectSuggestion" | "seoAutoApply" | "formSchemaVersion" | "formSubmission" | "formSubmissionFile" | "formWebhook" | "formDeliveryAttempt" | "webhookEndpoint" | "webhookDeliveryLog" | "passwordResetToken" | "invite" | "scriptTag" | "apiRequestMetric" | "contentIssue" | "documentCRDT" | "documentComment" | "documentNotification" | "job";
286
287
  txIsolationLevel: TransactionIsolationLevel;
287
288
  };
288
289
  model: {
@@ -3172,6 +3173,80 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
3172
3173
  };
3173
3174
  };
3174
3175
  };
3176
+ Job: {
3177
+ payload: Prisma.$JobPayload<ExtArgs>;
3178
+ fields: Prisma.JobFieldRefs;
3179
+ operations: {
3180
+ findUnique: {
3181
+ args: Prisma.JobFindUniqueArgs<ExtArgs>;
3182
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$JobPayload> | null;
3183
+ };
3184
+ findUniqueOrThrow: {
3185
+ args: Prisma.JobFindUniqueOrThrowArgs<ExtArgs>;
3186
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$JobPayload>;
3187
+ };
3188
+ findFirst: {
3189
+ args: Prisma.JobFindFirstArgs<ExtArgs>;
3190
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$JobPayload> | null;
3191
+ };
3192
+ findFirstOrThrow: {
3193
+ args: Prisma.JobFindFirstOrThrowArgs<ExtArgs>;
3194
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$JobPayload>;
3195
+ };
3196
+ findMany: {
3197
+ args: Prisma.JobFindManyArgs<ExtArgs>;
3198
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$JobPayload>[];
3199
+ };
3200
+ create: {
3201
+ args: Prisma.JobCreateArgs<ExtArgs>;
3202
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$JobPayload>;
3203
+ };
3204
+ createMany: {
3205
+ args: Prisma.JobCreateManyArgs<ExtArgs>;
3206
+ result: BatchPayload;
3207
+ };
3208
+ createManyAndReturn: {
3209
+ args: Prisma.JobCreateManyAndReturnArgs<ExtArgs>;
3210
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$JobPayload>[];
3211
+ };
3212
+ delete: {
3213
+ args: Prisma.JobDeleteArgs<ExtArgs>;
3214
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$JobPayload>;
3215
+ };
3216
+ update: {
3217
+ args: Prisma.JobUpdateArgs<ExtArgs>;
3218
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$JobPayload>;
3219
+ };
3220
+ deleteMany: {
3221
+ args: Prisma.JobDeleteManyArgs<ExtArgs>;
3222
+ result: BatchPayload;
3223
+ };
3224
+ updateMany: {
3225
+ args: Prisma.JobUpdateManyArgs<ExtArgs>;
3226
+ result: BatchPayload;
3227
+ };
3228
+ updateManyAndReturn: {
3229
+ args: Prisma.JobUpdateManyAndReturnArgs<ExtArgs>;
3230
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$JobPayload>[];
3231
+ };
3232
+ upsert: {
3233
+ args: Prisma.JobUpsertArgs<ExtArgs>;
3234
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$JobPayload>;
3235
+ };
3236
+ aggregate: {
3237
+ args: Prisma.JobAggregateArgs<ExtArgs>;
3238
+ result: runtime.Types.Utils.Optional<Prisma.AggregateJob>;
3239
+ };
3240
+ groupBy: {
3241
+ args: Prisma.JobGroupByArgs<ExtArgs>;
3242
+ result: runtime.Types.Utils.Optional<Prisma.JobGroupByOutputType>[];
3243
+ };
3244
+ count: {
3245
+ args: Prisma.JobCountArgs<ExtArgs>;
3246
+ result: runtime.Types.Utils.Optional<Prisma.JobCountAggregateOutputType> | number;
3247
+ };
3248
+ };
3249
+ };
3175
3250
  };
3176
3251
  } & {
3177
3252
  other: {
@@ -3798,6 +3873,21 @@ export declare const DocumentNotificationScalarFieldEnum: {
3798
3873
  readonly createdAt: "createdAt";
3799
3874
  };
3800
3875
  export type DocumentNotificationScalarFieldEnum = (typeof DocumentNotificationScalarFieldEnum)[keyof typeof DocumentNotificationScalarFieldEnum];
3876
+ export declare const JobScalarFieldEnum: {
3877
+ readonly id: "id";
3878
+ readonly type: "type";
3879
+ readonly payload: "payload";
3880
+ readonly status: "status";
3881
+ readonly attempts: "attempts";
3882
+ readonly maxAttempts: "maxAttempts";
3883
+ readonly runAt: "runAt";
3884
+ readonly lockedAt: "lockedAt";
3885
+ readonly lastError: "lastError";
3886
+ readonly progress: "progress";
3887
+ readonly createdAt: "createdAt";
3888
+ readonly updatedAt: "updatedAt";
3889
+ };
3890
+ export type JobScalarFieldEnum = (typeof JobScalarFieldEnum)[keyof typeof JobScalarFieldEnum];
3801
3891
  export declare const SortOrder: {
3802
3892
  readonly asc: "asc";
3803
3893
  readonly desc: "desc";
@@ -4186,6 +4276,13 @@ export declare const DocumentNotificationOrderByRelevanceFieldEnum: {
4186
4276
  readonly commentId: "commentId";
4187
4277
  };
4188
4278
  export type DocumentNotificationOrderByRelevanceFieldEnum = (typeof DocumentNotificationOrderByRelevanceFieldEnum)[keyof typeof DocumentNotificationOrderByRelevanceFieldEnum];
4279
+ export declare const JobOrderByRelevanceFieldEnum: {
4280
+ readonly id: "id";
4281
+ readonly type: "type";
4282
+ readonly status: "status";
4283
+ readonly lastError: "lastError";
4284
+ };
4285
+ export type JobOrderByRelevanceFieldEnum = (typeof JobOrderByRelevanceFieldEnum)[keyof typeof JobOrderByRelevanceFieldEnum];
4189
4286
  /**
4190
4287
  * Field references
4191
4288
  */
@@ -4477,6 +4574,7 @@ export type GlobalOmitConfig = {
4477
4574
  documentCRDT?: Prisma.DocumentCRDTOmit;
4478
4575
  documentComment?: Prisma.DocumentCommentOmit;
4479
4576
  documentNotification?: Prisma.DocumentNotificationOmit;
4577
+ job?: Prisma.JobOmit;
4480
4578
  };
4481
4579
  export type LogLevel = 'info' | 'query' | 'warn' | 'error';
4482
4580
  export type LogDefinition = {
@@ -105,7 +105,8 @@ export const ModelName = {
105
105
  ContentIssue: 'ContentIssue',
106
106
  DocumentCRDT: 'DocumentCRDT',
107
107
  DocumentComment: 'DocumentComment',
108
- DocumentNotification: 'DocumentNotification'
108
+ DocumentNotification: 'DocumentNotification',
109
+ Job: 'Job'
109
110
  };
110
111
  /**
111
112
  * Enums
@@ -668,6 +669,20 @@ export const DocumentNotificationScalarFieldEnum = {
668
669
  readAt: 'readAt',
669
670
  createdAt: 'createdAt'
670
671
  };
672
+ export const JobScalarFieldEnum = {
673
+ id: 'id',
674
+ type: 'type',
675
+ payload: 'payload',
676
+ status: 'status',
677
+ attempts: 'attempts',
678
+ maxAttempts: 'maxAttempts',
679
+ runAt: 'runAt',
680
+ lockedAt: 'lockedAt',
681
+ lastError: 'lastError',
682
+ progress: 'progress',
683
+ createdAt: 'createdAt',
684
+ updatedAt: 'updatedAt'
685
+ };
671
686
  export const SortOrder = {
672
687
  asc: 'asc',
673
688
  desc: 'desc'
@@ -1011,4 +1026,10 @@ export const DocumentNotificationOrderByRelevanceFieldEnum = {
1011
1026
  documentId: 'documentId',
1012
1027
  commentId: 'commentId'
1013
1028
  };
1029
+ export const JobOrderByRelevanceFieldEnum = {
1030
+ id: 'id',
1031
+ type: 'type',
1032
+ status: 'status',
1033
+ lastError: 'lastError'
1034
+ };
1014
1035
  export const defineExtension = runtime.Extensions.defineExtension;
@@ -65,6 +65,7 @@ export declare const ModelName: {
65
65
  readonly DocumentCRDT: "DocumentCRDT";
66
66
  readonly DocumentComment: "DocumentComment";
67
67
  readonly DocumentNotification: "DocumentNotification";
68
+ readonly Job: "Job";
68
69
  };
69
70
  export type ModelName = (typeof ModelName)[keyof typeof ModelName];
70
71
  export declare const TransactionIsolationLevel: {
@@ -666,6 +667,21 @@ export declare const DocumentNotificationScalarFieldEnum: {
666
667
  readonly createdAt: "createdAt";
667
668
  };
668
669
  export type DocumentNotificationScalarFieldEnum = (typeof DocumentNotificationScalarFieldEnum)[keyof typeof DocumentNotificationScalarFieldEnum];
670
+ export declare const JobScalarFieldEnum: {
671
+ readonly id: "id";
672
+ readonly type: "type";
673
+ readonly payload: "payload";
674
+ readonly status: "status";
675
+ readonly attempts: "attempts";
676
+ readonly maxAttempts: "maxAttempts";
677
+ readonly runAt: "runAt";
678
+ readonly lockedAt: "lockedAt";
679
+ readonly lastError: "lastError";
680
+ readonly progress: "progress";
681
+ readonly createdAt: "createdAt";
682
+ readonly updatedAt: "updatedAt";
683
+ };
684
+ export type JobScalarFieldEnum = (typeof JobScalarFieldEnum)[keyof typeof JobScalarFieldEnum];
669
685
  export declare const SortOrder: {
670
686
  readonly asc: "asc";
671
687
  readonly desc: "desc";
@@ -1054,3 +1070,10 @@ export declare const DocumentNotificationOrderByRelevanceFieldEnum: {
1054
1070
  readonly commentId: "commentId";
1055
1071
  };
1056
1072
  export type DocumentNotificationOrderByRelevanceFieldEnum = (typeof DocumentNotificationOrderByRelevanceFieldEnum)[keyof typeof DocumentNotificationOrderByRelevanceFieldEnum];
1073
+ export declare const JobOrderByRelevanceFieldEnum: {
1074
+ readonly id: "id";
1075
+ readonly type: "type";
1076
+ readonly status: "status";
1077
+ readonly lastError: "lastError";
1078
+ };
1079
+ export type JobOrderByRelevanceFieldEnum = (typeof JobOrderByRelevanceFieldEnum)[keyof typeof JobOrderByRelevanceFieldEnum];
@@ -77,7 +77,8 @@ export const ModelName = {
77
77
  ContentIssue: 'ContentIssue',
78
78
  DocumentCRDT: 'DocumentCRDT',
79
79
  DocumentComment: 'DocumentComment',
80
- DocumentNotification: 'DocumentNotification'
80
+ DocumentNotification: 'DocumentNotification',
81
+ Job: 'Job'
81
82
  };
82
83
  /*
83
84
  * Enums
@@ -640,6 +641,20 @@ export const DocumentNotificationScalarFieldEnum = {
640
641
  readAt: 'readAt',
641
642
  createdAt: 'createdAt'
642
643
  };
644
+ export const JobScalarFieldEnum = {
645
+ id: 'id',
646
+ type: 'type',
647
+ payload: 'payload',
648
+ status: 'status',
649
+ attempts: 'attempts',
650
+ maxAttempts: 'maxAttempts',
651
+ runAt: 'runAt',
652
+ lockedAt: 'lockedAt',
653
+ lastError: 'lastError',
654
+ progress: 'progress',
655
+ createdAt: 'createdAt',
656
+ updatedAt: 'updatedAt'
657
+ };
643
658
  export const SortOrder = {
644
659
  asc: 'asc',
645
660
  desc: 'desc'
@@ -983,3 +998,9 @@ export const DocumentNotificationOrderByRelevanceFieldEnum = {
983
998
  documentId: 'documentId',
984
999
  commentId: 'commentId'
985
1000
  };
1001
+ export const JobOrderByRelevanceFieldEnum = {
1002
+ id: 'id',
1003
+ type: 'type',
1004
+ status: 'status',
1005
+ lastError: 'lastError'
1006
+ };