Skip to content

Commit 2d2a52b

Browse files
templates: bump for v3.8.0 (#10013)
🤖 Automated bump of templates for v3.8.0 Triggered by user: @denolfe Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 3f35d36 commit 2d2a52b

File tree

10 files changed

+119
-104
lines changed

10 files changed

+119
-104
lines changed

templates/with-postgres/src/migrations/20241216_183241_initial.json renamed to templates/with-postgres/src/migrations/20241217_022224_initial.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"id": "7e088ab2-b3bd-4286-bf51-c78ce9ac732f",
2+
"id": "38e49236-d2dd-4a63-946e-4800e2e3e9d8",
33
"prevId": "00000000-0000-0000-0000-000000000000",
44
"version": "7",
55
"dialect": "postgresql",
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import * as migration_20241216_183241_initial from './20241216_183241_initial'
1+
import * as migration_20241217_022224_initial from './20241217_022224_initial'
22

33
export const migrations = [
44
{
5-
up: migration_20241216_183241_initial.up,
6-
down: migration_20241216_183241_initial.down,
7-
name: '20241216_183241_initial',
5+
up: migration_20241217_022224_initial.up,
6+
down: migration_20241217_022224_initial.down,
7+
name: '20241217_022224_initial',
88
},
99
]

templates/with-vercel-postgres/src/migrations/20241216_183217_initial.json renamed to templates/with-vercel-postgres/src/migrations/20241217_022200_initial.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"id": "62178519-5e26-4f24-a462-303f0ca4fb8c",
2+
"id": "8b67dbb0-b807-4c8a-9d08-cbcedb4651bf",
33
"prevId": "00000000-0000-0000-0000-000000000000",
44
"version": "7",
55
"dialect": "postgresql",
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import * as migration_20241216_183217_initial from './20241216_183217_initial'
1+
import * as migration_20241217_022200_initial from './20241217_022200_initial'
22

33
export const migrations = [
44
{
5-
up: migration_20241216_183217_initial.up,
6-
down: migration_20241216_183217_initial.down,
7-
name: '20241216_183217_initial',
5+
up: migration_20241217_022200_initial.up,
6+
down: migration_20241217_022200_initial.down,
7+
name: '20241217_022200_initial',
88
},
99
]

templates/with-vercel-website/src/migrations/20241216_183230_initial.json renamed to templates/with-vercel-website/src/migrations/20241217_022214_initial.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"id": "ea96ca46-b715-43f9-8f77-7518afa91ecd",
2+
"id": "89be6945-b93b-4f4e-a970-5a021f6b9652",
33
"prevId": "00000000-0000-0000-0000-000000000000",
44
"version": "7",
55
"dialect": "postgresql",
@@ -8175,11 +8175,6 @@
81758175
}
81768176
},
81778177
"enums": {
8178-
"public.enum_pages_hero_type": {
8179-
"name": "enum_pages_hero_type",
8180-
"schema": "public",
8181-
"values": ["none", "highImpact", "mediumImpact", "lowImpact"]
8182-
},
81838178
"public.enum_pages_hero_links_link_type": {
81848179
"name": "enum_pages_hero_links_link_type",
81858180
"schema": "public",
@@ -8225,16 +8220,16 @@
82258220
"schema": "public",
82268221
"values": ["posts"]
82278222
},
8223+
"public.enum_pages_hero_type": {
8224+
"name": "enum_pages_hero_type",
8225+
"schema": "public",
8226+
"values": ["none", "highImpact", "mediumImpact", "lowImpact"]
8227+
},
82288228
"public.enum_pages_status": {
82298229
"name": "enum_pages_status",
82308230
"schema": "public",
82318231
"values": ["draft", "published"]
82328232
},
8233-
"public.enum__pages_v_version_hero_type": {
8234-
"name": "enum__pages_v_version_hero_type",
8235-
"schema": "public",
8236-
"values": ["none", "highImpact", "mediumImpact", "lowImpact"]
8237-
},
82388233
"public.enum__pages_v_version_hero_links_link_type": {
82398234
"name": "enum__pages_v_version_hero_links_link_type",
82408235
"schema": "public",
@@ -8280,6 +8275,11 @@
82808275
"schema": "public",
82818276
"values": ["posts"]
82828277
},
8278+
"public.enum__pages_v_version_hero_type": {
8279+
"name": "enum__pages_v_version_hero_type",
8280+
"schema": "public",
8281+
"values": ["none", "highImpact", "mediumImpact", "lowImpact"]
8282+
},
82838283
"public.enum__pages_v_version_status": {
82848284
"name": "enum__pages_v_version_status",
82858285
"schema": "public",

templates/with-vercel-website/src/migrations/20241216_183230_initial.ts renamed to templates/with-vercel-website/src/migrations/20241217_022214_initial.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ import { MigrateUpArgs, MigrateDownArgs, sql } from '@payloadcms/db-vercel-postg
22

33
export async function up({ db, payload, req }: MigrateUpArgs): Promise<void> {
44
await db.execute(sql`
5-
CREATE TYPE "public"."enum_pages_hero_type" AS ENUM('none', 'highImpact', 'mediumImpact', 'lowImpact');
6-
CREATE TYPE "public"."enum_pages_hero_links_link_type" AS ENUM('reference', 'custom');
5+
CREATE TYPE "public"."enum_pages_hero_links_link_type" AS ENUM('reference', 'custom');
76
CREATE TYPE "public"."enum_pages_hero_links_link_appearance" AS ENUM('default', 'outline');
87
CREATE TYPE "public"."enum_pages_blocks_cta_links_link_type" AS ENUM('reference', 'custom');
98
CREATE TYPE "public"."enum_pages_blocks_cta_links_link_appearance" AS ENUM('default', 'outline');
@@ -12,8 +11,8 @@ export async function up({ db, payload, req }: MigrateUpArgs): Promise<void> {
1211
CREATE TYPE "public"."enum_pages_blocks_content_columns_link_appearance" AS ENUM('default', 'outline');
1312
CREATE TYPE "public"."enum_pages_blocks_archive_populate_by" AS ENUM('collection', 'selection');
1413
CREATE TYPE "public"."enum_pages_blocks_archive_relation_to" AS ENUM('posts');
14+
CREATE TYPE "public"."enum_pages_hero_type" AS ENUM('none', 'highImpact', 'mediumImpact', 'lowImpact');
1515
CREATE TYPE "public"."enum_pages_status" AS ENUM('draft', 'published');
16-
CREATE TYPE "public"."enum__pages_v_version_hero_type" AS ENUM('none', 'highImpact', 'mediumImpact', 'lowImpact');
1716
CREATE TYPE "public"."enum__pages_v_version_hero_links_link_type" AS ENUM('reference', 'custom');
1817
CREATE TYPE "public"."enum__pages_v_version_hero_links_link_appearance" AS ENUM('default', 'outline');
1918
CREATE TYPE "public"."enum__pages_v_blocks_cta_links_link_type" AS ENUM('reference', 'custom');
@@ -23,6 +22,7 @@ export async function up({ db, payload, req }: MigrateUpArgs): Promise<void> {
2322
CREATE TYPE "public"."enum__pages_v_blocks_content_columns_link_appearance" AS ENUM('default', 'outline');
2423
CREATE TYPE "public"."enum__pages_v_blocks_archive_populate_by" AS ENUM('collection', 'selection');
2524
CREATE TYPE "public"."enum__pages_v_blocks_archive_relation_to" AS ENUM('posts');
25+
CREATE TYPE "public"."enum__pages_v_version_hero_type" AS ENUM('none', 'highImpact', 'mediumImpact', 'lowImpact');
2626
CREATE TYPE "public"."enum__pages_v_version_status" AS ENUM('draft', 'published');
2727
CREATE TYPE "public"."enum_posts_status" AS ENUM('draft', 'published');
2828
CREATE TYPE "public"."enum__posts_v_version_status" AS ENUM('draft', 'published');
@@ -1544,7 +1544,6 @@ export async function down({ db, payload, req }: MigrateDownArgs): Promise<void>
15441544
DROP TABLE "footer_nav_items" CASCADE;
15451545
DROP TABLE "footer" CASCADE;
15461546
DROP TABLE "footer_rels" CASCADE;
1547-
DROP TYPE "public"."enum_pages_hero_type";
15481547
DROP TYPE "public"."enum_pages_hero_links_link_type";
15491548
DROP TYPE "public"."enum_pages_hero_links_link_appearance";
15501549
DROP TYPE "public"."enum_pages_blocks_cta_links_link_type";
@@ -1554,8 +1553,8 @@ export async function down({ db, payload, req }: MigrateDownArgs): Promise<void>
15541553
DROP TYPE "public"."enum_pages_blocks_content_columns_link_appearance";
15551554
DROP TYPE "public"."enum_pages_blocks_archive_populate_by";
15561555
DROP TYPE "public"."enum_pages_blocks_archive_relation_to";
1556+
DROP TYPE "public"."enum_pages_hero_type";
15571557
DROP TYPE "public"."enum_pages_status";
1558-
DROP TYPE "public"."enum__pages_v_version_hero_type";
15591558
DROP TYPE "public"."enum__pages_v_version_hero_links_link_type";
15601559
DROP TYPE "public"."enum__pages_v_version_hero_links_link_appearance";
15611560
DROP TYPE "public"."enum__pages_v_blocks_cta_links_link_type";
@@ -1565,6 +1564,7 @@ export async function down({ db, payload, req }: MigrateDownArgs): Promise<void>
15651564
DROP TYPE "public"."enum__pages_v_blocks_content_columns_link_appearance";
15661565
DROP TYPE "public"."enum__pages_v_blocks_archive_populate_by";
15671566
DROP TYPE "public"."enum__pages_v_blocks_archive_relation_to";
1567+
DROP TYPE "public"."enum__pages_v_version_hero_type";
15681568
DROP TYPE "public"."enum__pages_v_version_status";
15691569
DROP TYPE "public"."enum_posts_status";
15701570
DROP TYPE "public"."enum__posts_v_version_status";
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import * as migration_20241216_183230_initial from './20241216_183230_initial'
1+
import * as migration_20241217_022214_initial from './20241217_022214_initial'
22

33
export const migrations = [
44
{
5-
up: migration_20241216_183230_initial.up,
6-
down: migration_20241216_183230_initial.down,
7-
name: '20241216_183230_initial',
5+
up: migration_20241217_022214_initial.up,
6+
down: migration_20241217_022214_initial.down,
7+
name: '20241217_022214_initial',
88
},
99
]

templates/with-vercel-website/src/payload-types.ts

Lines changed: 89 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -805,80 +805,11 @@ export interface PagesSelect<T extends boolean = true> {
805805
layout?:
806806
| T
807807
| {
808-
cta?:
809-
| T
810-
| {
811-
richText?: T;
812-
links?:
813-
| T
814-
| {
815-
link?:
816-
| T
817-
| {
818-
type?: T;
819-
newTab?: T;
820-
reference?: T;
821-
url?: T;
822-
label?: T;
823-
appearance?: T;
824-
};
825-
id?: T;
826-
};
827-
id?: T;
828-
blockName?: T;
829-
};
830-
content?:
831-
| T
832-
| {
833-
columns?:
834-
| T
835-
| {
836-
size?: T;
837-
richText?: T;
838-
enableLink?: T;
839-
link?:
840-
| T
841-
| {
842-
type?: T;
843-
newTab?: T;
844-
reference?: T;
845-
url?: T;
846-
label?: T;
847-
appearance?: T;
848-
};
849-
id?: T;
850-
};
851-
id?: T;
852-
blockName?: T;
853-
};
854-
mediaBlock?:
855-
| T
856-
| {
857-
media?: T;
858-
id?: T;
859-
blockName?: T;
860-
};
861-
archive?:
862-
| T
863-
| {
864-
introContent?: T;
865-
populateBy?: T;
866-
relationTo?: T;
867-
categories?: T;
868-
limit?: T;
869-
selectedDocs?: T;
870-
id?: T;
871-
blockName?: T;
872-
};
873-
formBlock?:
874-
| T
875-
| {
876-
form?: T;
877-
enableIntro?: T;
878-
introContent?: T;
879-
id?: T;
880-
blockName?: T;
881-
};
808+
cta?: T | CallToActionBlockSelect<T>;
809+
content?: T | ContentBlockSelect<T>;
810+
mediaBlock?: T | MediaBlockSelect<T>;
811+
archive?: T | ArchiveBlockSelect<T>;
812+
formBlock?: T | FormBlockSelect<T>;
882813
};
883814
meta?:
884815
| T
@@ -894,6 +825,90 @@ export interface PagesSelect<T extends boolean = true> {
894825
createdAt?: T;
895826
_status?: T;
896827
}
828+
/**
829+
* This interface was referenced by `Config`'s JSON-Schema
830+
* via the `definition` "CallToActionBlock_select".
831+
*/
832+
export interface CallToActionBlockSelect<T extends boolean = true> {
833+
richText?: T;
834+
links?:
835+
| T
836+
| {
837+
link?:
838+
| T
839+
| {
840+
type?: T;
841+
newTab?: T;
842+
reference?: T;
843+
url?: T;
844+
label?: T;
845+
appearance?: T;
846+
};
847+
id?: T;
848+
};
849+
id?: T;
850+
blockName?: T;
851+
}
852+
/**
853+
* This interface was referenced by `Config`'s JSON-Schema
854+
* via the `definition` "ContentBlock_select".
855+
*/
856+
export interface ContentBlockSelect<T extends boolean = true> {
857+
columns?:
858+
| T
859+
| {
860+
size?: T;
861+
richText?: T;
862+
enableLink?: T;
863+
link?:
864+
| T
865+
| {
866+
type?: T;
867+
newTab?: T;
868+
reference?: T;
869+
url?: T;
870+
label?: T;
871+
appearance?: T;
872+
};
873+
id?: T;
874+
};
875+
id?: T;
876+
blockName?: T;
877+
}
878+
/**
879+
* This interface was referenced by `Config`'s JSON-Schema
880+
* via the `definition` "MediaBlock_select".
881+
*/
882+
export interface MediaBlockSelect<T extends boolean = true> {
883+
media?: T;
884+
id?: T;
885+
blockName?: T;
886+
}
887+
/**
888+
* This interface was referenced by `Config`'s JSON-Schema
889+
* via the `definition` "ArchiveBlock_select".
890+
*/
891+
export interface ArchiveBlockSelect<T extends boolean = true> {
892+
introContent?: T;
893+
populateBy?: T;
894+
relationTo?: T;
895+
categories?: T;
896+
limit?: T;
897+
selectedDocs?: T;
898+
id?: T;
899+
blockName?: T;
900+
}
901+
/**
902+
* This interface was referenced by `Config`'s JSON-Schema
903+
* via the `definition` "FormBlock_select".
904+
*/
905+
export interface FormBlockSelect<T extends boolean = true> {
906+
form?: T;
907+
enableIntro?: T;
908+
introContent?: T;
909+
id?: T;
910+
blockName?: T;
911+
}
897912
/**
898913
* This interface was referenced by `Config`'s JSON-Schema
899914
* via the `definition` "posts_select".

0 commit comments

Comments
 (0)