Skip to content

Commit be8a6e7

Browse files
authored
Merge pull request #9 from focusreactive/chore/remove-content-releases-from-main
chore: remove payload-plugin-content-releases from main
2 parents be1b287 + e8dc5d0 commit be8a6e7

62 files changed

Lines changed: 22 additions & 4678 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

apps/dev/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
"@focus-reactive/payload-plugin-ab": "workspace:*",
2020
"@focus-reactive/payload-plugin-presets": "workspace:*",
2121
"@focus-reactive/payload-plugin-comments": "workspace:*",
22-
"@focus-reactive/payload-plugin-content-releases": "workspace:*",
2322
"@focus-reactive/payload-plugin-scheduling": "workspace:*",
2423
"@payloadcms/db-sqlite": "3.79.0",
2524
"@payloadcms/live-preview-react": "3.79.0",

apps/dev/src/app/(payload)/admin/importMap.js

Lines changed: 0 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/dev/src/payload-types.ts

Lines changed: 1 addition & 119 deletions
Original file line numberDiff line numberDiff line change
@@ -72,27 +72,19 @@ export interface Config {
7272
pages: Page;
7373
presets: Preset;
7474
comments: Comment;
75-
releases: Release;
76-
'release-items': ReleaseItem;
7775
'payload-kv': PayloadKv;
7876
'payload-jobs': PayloadJob;
7977
'payload-locked-documents': PayloadLockedDocument;
8078
'payload-preferences': PayloadPreference;
8179
'payload-migrations': PayloadMigration;
8280
};
83-
collectionsJoins: {
84-
releases: {
85-
items: 'release-items';
86-
};
87-
};
81+
collectionsJoins: {};
8882
collectionsSelect: {
8983
users: UsersSelect<false> | UsersSelect<true>;
9084
media: MediaSelect<false> | MediaSelect<true>;
9185
pages: PagesSelect<false> | PagesSelect<true>;
9286
presets: PresetsSelect<false> | PresetsSelect<true>;
9387
comments: CommentsSelect<false> | CommentsSelect<true>;
94-
releases: ReleasesSelect<false> | ReleasesSelect<true>;
95-
'release-items': ReleaseItemsSelect<false> | ReleaseItemsSelect<true>;
9688
'payload-kv': PayloadKvSelect<false> | PayloadKvSelect<true>;
9789
'payload-jobs': PayloadJobsSelect<false> | PayloadJobsSelect<true>;
9890
'payload-locked-documents': PayloadLockedDocumentsSelect<false> | PayloadLockedDocumentsSelect<true>;
@@ -300,76 +292,6 @@ export interface Comment {
300292
updatedAt: string;
301293
createdAt: string;
302294
}
303-
/**
304-
* This interface was referenced by `Config`'s JSON-Schema
305-
* via the `definition` "releases".
306-
*/
307-
export interface Release {
308-
id: number;
309-
name: string;
310-
description?: string | null;
311-
status: 'draft' | 'scheduled' | 'publishing' | 'published' | 'reverting' | 'reverted' | 'failed' | 'cancelled';
312-
scheduledAt?: string | null;
313-
publishedAt?: string | null;
314-
items?: {
315-
docs?: (number | ReleaseItem)[];
316-
hasNextPage?: boolean;
317-
totalDocs?: number;
318-
};
319-
rollbackSnapshot?:
320-
| {
321-
[k: string]: unknown;
322-
}
323-
| unknown[]
324-
| string
325-
| number
326-
| boolean
327-
| null;
328-
rollbackSkipped?:
329-
| {
330-
[k: string]: unknown;
331-
}
332-
| unknown[]
333-
| string
334-
| number
335-
| boolean
336-
| null;
337-
errorLog?:
338-
| {
339-
[k: string]: unknown;
340-
}
341-
| unknown[]
342-
| string
343-
| number
344-
| boolean
345-
| null;
346-
updatedAt: string;
347-
createdAt: string;
348-
}
349-
/**
350-
* This interface was referenced by `Config`'s JSON-Schema
351-
* via the `definition` "release-items".
352-
*/
353-
export interface ReleaseItem {
354-
id: number;
355-
release: number | Release;
356-
targetCollection: 'pages';
357-
targetDoc: string;
358-
action: 'publish' | 'unpublish';
359-
status: 'pending' | 'published' | 'failed' | 'skipped';
360-
snapshot:
361-
| {
362-
[k: string]: unknown;
363-
}
364-
| unknown[]
365-
| string
366-
| number
367-
| boolean
368-
| null;
369-
baseVersion?: string | null;
370-
updatedAt: string;
371-
createdAt: string;
372-
}
373295
/**
374296
* This interface was referenced by `Config`'s JSON-Schema
375297
* via the `definition` "payload-kv".
@@ -505,14 +427,6 @@ export interface PayloadLockedDocument {
505427
| ({
506428
relationTo: 'comments';
507429
value: number | Comment;
508-
} | null)
509-
| ({
510-
relationTo: 'releases';
511-
value: number | Release;
512-
} | null)
513-
| ({
514-
relationTo: 'release-items';
515-
value: number | ReleaseItem;
516430
} | null);
517431
globalSlug?: string | null;
518432
user: {
@@ -685,38 +599,6 @@ export interface CommentsSelect<T extends boolean = true> {
685599
updatedAt?: T;
686600
createdAt?: T;
687601
}
688-
/**
689-
* This interface was referenced by `Config`'s JSON-Schema
690-
* via the `definition` "releases_select".
691-
*/
692-
export interface ReleasesSelect<T extends boolean = true> {
693-
name?: T;
694-
description?: T;
695-
status?: T;
696-
scheduledAt?: T;
697-
publishedAt?: T;
698-
items?: T;
699-
rollbackSnapshot?: T;
700-
rollbackSkipped?: T;
701-
errorLog?: T;
702-
updatedAt?: T;
703-
createdAt?: T;
704-
}
705-
/**
706-
* This interface was referenced by `Config`'s JSON-Schema
707-
* via the `definition` "release-items_select".
708-
*/
709-
export interface ReleaseItemsSelect<T extends boolean = true> {
710-
release?: T;
711-
targetCollection?: T;
712-
targetDoc?: T;
713-
action?: T;
714-
status?: T;
715-
snapshot?: T;
716-
baseVersion?: T;
717-
updatedAt?: T;
718-
createdAt?: T;
719-
}
720602
/**
721603
* This interface was referenced by `Config`'s JSON-Schema
722604
* via the `definition` "payload-kv_select".

apps/dev/src/payload.config.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import { abTestingPlugin } from '@focus-reactive/payload-plugin-ab'
1414
import { presetsPlugin } from '@focus-reactive/payload-plugin-presets'
1515
import { schedulePublicationPlugin } from '@focus-reactive/payload-plugin-scheduling'
1616
import { commentsPlugin } from '@focus-reactive/payload-plugin-comments'
17-
import { contentReleasesPlugin } from '@focus-reactive/payload-plugin-content-releases'
1817
import { abAdapter } from './lib/ab-testing/dbAdapter'
1918

2019
const filename = fileURLToPath(import.meta.url)
@@ -73,8 +72,5 @@ export default buildConfig({
7372
],
7473
usernameFieldPath: 'name',
7574
}),
76-
contentReleasesPlugin({
77-
enabledCollections: ['pages'],
78-
}),
7975
],
8076
})

0 commit comments

Comments
 (0)