Skip to content

Commit 98a9878

Browse files
authored
chore: update deps
1 parent f172091 commit 98a9878

7 files changed

Lines changed: 458 additions & 622 deletions

File tree

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
export const importMap = {};
1+
2+
3+
export const importMap = {
4+
5+
}

dev/next-env.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/// <reference types="next" />
22
/// <reference types="next/image-types/global" />
3-
/// <reference path="./.next/types/routes.d.ts" />
43

54
// NOTE: This file should not be edited
65
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

dev/payload-types.ts

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ export interface Config {
7070
media: Media;
7171
users: User;
7272
'Audit-log': AuditLog;
73+
'payload-kv': PayloadKv;
7374
'payload-jobs': PayloadJob;
7475
'payload-locked-documents': PayloadLockedDocument;
7576
'payload-preferences': PayloadPreference;
@@ -80,6 +81,7 @@ export interface Config {
8081
media: MediaSelect<false> | MediaSelect<true>;
8182
users: UsersSelect<false> | UsersSelect<true>;
8283
'Audit-log': AuditLogSelect<false> | AuditLogSelect<true>;
84+
'payload-kv': PayloadKvSelect<false> | PayloadKvSelect<true>;
8385
'payload-jobs': PayloadJobsSelect<false> | PayloadJobsSelect<true>;
8486
'payload-locked-documents': PayloadLockedDocumentsSelect<false> | PayloadLockedDocumentsSelect<true>;
8587
'payload-preferences': PayloadPreferencesSelect<false> | PayloadPreferencesSelect<true>;
@@ -187,6 +189,23 @@ export interface AuditLog {
187189
type: 'info' | 'debug' | 'warning' | 'error' | 'audit' | 'security' | 'unknown';
188190
createdAt: string;
189191
}
192+
/**
193+
* This interface was referenced by `Config`'s JSON-Schema
194+
* via the `definition` "payload-kv".
195+
*/
196+
export interface PayloadKv {
197+
id: string;
198+
key: string;
199+
data:
200+
| {
201+
[k: string]: unknown;
202+
}
203+
| unknown[]
204+
| string
205+
| number
206+
| boolean
207+
| null;
208+
}
190209
/**
191210
* This interface was referenced by `Config`'s JSON-Schema
192211
* via the `definition` "payload-jobs".
@@ -306,10 +325,6 @@ export interface PayloadLockedDocument {
306325
| ({
307326
relationTo: 'Audit-log';
308327
value: string | AuditLog;
309-
} | null)
310-
| ({
311-
relationTo: 'payload-jobs';
312-
value: string | PayloadJob;
313328
} | null);
314329
globalSlug?: string | null;
315330
user: {
@@ -409,6 +424,14 @@ export interface AuditLogSelect<T extends boolean = true> {
409424
type?: T;
410425
createdAt?: T;
411426
}
427+
/**
428+
* This interface was referenced by `Config`'s JSON-Schema
429+
* via the `definition` "payload-kv_select".
430+
*/
431+
export interface PayloadKvSelect<T extends boolean = true> {
432+
key?: T;
433+
data?: T;
434+
}
412435
/**
413436
* This interface was referenced by `Config`'s JSON-Schema
414437
* via the `definition` "payload-jobs_select".

dev/payload.config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable antfu/no-import-dist */
21
/* eslint-disable node/prefer-global/process */
32
import sharp from 'sharp';
43
import path from 'node:path';
@@ -9,8 +8,8 @@ import { users } from 'collections/Users.js';
98
import { mongooseAdapter } from '@payloadcms/db-mongodb';
109
import { lexicalEditor } from '@payloadcms/richtext-lexical';
1110

12-
// import { auditorPlugin } from '../src/index.js';
13-
import { auditorPlugin } from './../dist/index.js';
11+
import { auditorPlugin } from '../src/index.js';
12+
// import { auditorPlugin } from './../dist/index.js';
1413
import { testEmailAdapter } from './helpers/testEmailAdapter.js';
1514

1615
const filename = fileURLToPath(import.meta.url);
@@ -29,6 +28,7 @@ export default buildConfig({
2928
// plugins
3029
plugins: [
3130
auditorPlugin({
31+
automation: { logCleanup: { cronTime: '*/1 * * * *', queueName: 'test', olderThan: 30000 } },
3232
collection: {
3333
trackCollections: [
3434
{

0 commit comments

Comments
 (0)