@cooperco/cooper-component-library 0.1.67 → 0.1.69

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.
@@ -0,0 +1,24 @@
1
+ module.exports = {
2
+ // @ts-check
3
+ /** @type { import('contentful-migration').MigrationFunction } */
4
+ up: async function (migration) {
5
+ const testimonialModule = migration.editContentType('testimonialModule')
6
+
7
+ testimonialModule.createField('mediaPosition', {
8
+ name: 'Media Position',
9
+ type: 'Symbol',
10
+ defaultValue: {
11
+ 'en-US': 'Left',
12
+ },
13
+ validations: [
14
+ {
15
+ in: ['Left', 'Right'],
16
+ },
17
+ ],
18
+ })
19
+ },
20
+ down: async function (migration) {
21
+ const testimonialModule = migration.editContentType('testimonialModule')
22
+ testimonialModule.deleteField('mediaPosition')
23
+ },
24
+ }
@@ -0,0 +1,24 @@
1
+ module.exports = {
2
+ // @ts-check
3
+ /** @type { import('contentful-migration').MigrationFunction } */
4
+ up: async function (migration) {
5
+ const testimonialModule = migration.editContentType('testimonialModule')
6
+
7
+ testimonialModule.createField('mediaPosition', {
8
+ name: 'Media Position',
9
+ type: 'Symbol',
10
+ defaultValue: {
11
+ 'en-US': 'Left',
12
+ },
13
+ validations: [
14
+ {
15
+ in: ['Left', 'Right'],
16
+ },
17
+ ],
18
+ })
19
+ },
20
+ down: async function (migration) {
21
+ const testimonialModule = migration.editContentType('testimonialModule')
22
+ testimonialModule.deleteField('mediaPosition')
23
+ },
24
+ }
@@ -18,6 +18,7 @@ export const getTestimonialModule = gql `
18
18
  ...videoFragment
19
19
  }
20
20
  }
21
+ mediaPosition
21
22
  }
22
23
  }
23
24
  `;
@@ -20,6 +20,7 @@ export const getTestimonialModule: DocumentNode = gql`
20
20
  ...videoFragment
21
21
  }
22
22
  }
23
+ mediaPosition
23
24
  }
24
25
  }
25
26
  `
@@ -0,0 +1,24 @@
1
+ module.exports = {
2
+ // @ts-check
3
+ /** @type { import('contentful-migration').MigrationFunction } */
4
+ up: async function (migration) {
5
+ const testimonialModule = migration.editContentType('testimonialModule')
6
+
7
+ testimonialModule.createField('mediaPosition', {
8
+ name: 'Media Position',
9
+ type: 'Symbol',
10
+ defaultValue: {
11
+ 'en-US': 'Left',
12
+ },
13
+ validations: [
14
+ {
15
+ in: ['Left', 'Right'],
16
+ },
17
+ ],
18
+ })
19
+ },
20
+ down: async function (migration) {
21
+ const testimonialModule = migration.editContentType('testimonialModule')
22
+ testimonialModule.deleteField('mediaPosition')
23
+ },
24
+ }
@@ -20,6 +20,7 @@ export const getTestimonialModule: DocumentNode = gql`
20
20
  ...videoFragment
21
21
  }
22
22
  }
23
+ mediaPosition
23
24
  }
24
25
  }
25
26
  `
@@ -0,0 +1,24 @@
1
+ module.exports = {
2
+ // @ts-check
3
+ /** @type { import('contentful-migration').MigrationFunction } */
4
+ up: async function (migration) {
5
+ const testimonialModule = migration.editContentType('testimonialModule')
6
+
7
+ testimonialModule.createField('mediaPosition', {
8
+ name: 'Media Position',
9
+ type: 'Symbol',
10
+ defaultValue: {
11
+ 'en-US': 'Left',
12
+ },
13
+ validations: [
14
+ {
15
+ in: ['Left', 'Right'],
16
+ },
17
+ ],
18
+ })
19
+ },
20
+ down: async function (migration) {
21
+ const testimonialModule = migration.editContentType('testimonialModule')
22
+ testimonialModule.deleteField('mediaPosition')
23
+ },
24
+ }
@@ -20,6 +20,7 @@ export const getTestimonialModule: DocumentNode = gql`
20
20
  ...videoFragment
21
21
  }
22
22
  }
23
+ mediaPosition
23
24
  }
24
25
  }
25
26
  `