@cooperco/cooper-component-library 0.1.96 → 0.1.97

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,40 @@
1
+ module.exports = {
2
+ /** @type { import('contentful-migration').MigrationFunction } */
3
+ up: function (migration) {
4
+ const page = migration.editContentType('page')
5
+
6
+ page.editField('pageModules').items({
7
+ type: 'Link',
8
+ validations: [
9
+ {
10
+ linkContentType: [
11
+ 'carouselModule',
12
+ 'chartModule',
13
+ 'containerCollectionModule',
14
+ 'containerModule',
15
+ 'contentModule',
16
+ 'logoCollectionModule',
17
+ 'placeholderModule',
18
+ 'productModule',
19
+ 'splitModule',
20
+ 'tabModule',
21
+ 'testimonialModule',
22
+ 'tileCollectionModule',
23
+ ],
24
+ },
25
+ ],
26
+ linkType: 'Entry',
27
+ })
28
+ },
29
+
30
+ /** @type { import('contentful-migration').MigrationFunction } */
31
+ down: function (migration) {
32
+ const page = migration.editContentType('page')
33
+
34
+ page.editField('pageModules').items({
35
+ type: 'Link',
36
+ validations: [],
37
+ linkType: 'Entry',
38
+ })
39
+ },
40
+ }
@@ -0,0 +1,40 @@
1
+ module.exports = {
2
+ /** @type { import('contentful-migration').MigrationFunction } */
3
+ up: function (migration) {
4
+ const page = migration.editContentType('page')
5
+
6
+ page.editField('pageModules').items({
7
+ type: 'Link',
8
+ validations: [
9
+ {
10
+ linkContentType: [
11
+ 'carouselModule',
12
+ 'chartModule',
13
+ 'containerCollectionModule',
14
+ 'containerModule',
15
+ 'contentModule',
16
+ 'logoCollectionModule',
17
+ 'placeholderModule',
18
+ 'productModule',
19
+ 'splitModule',
20
+ 'tabModule',
21
+ 'testimonialModule',
22
+ 'tileCollectionModule',
23
+ ],
24
+ },
25
+ ],
26
+ linkType: 'Entry',
27
+ })
28
+ },
29
+
30
+ /** @type { import('contentful-migration').MigrationFunction } */
31
+ down: function (migration) {
32
+ const page = migration.editContentType('page')
33
+
34
+ page.editField('pageModules').items({
35
+ type: 'Link',
36
+ validations: [],
37
+ linkType: 'Entry',
38
+ })
39
+ },
40
+ }
@@ -0,0 +1,40 @@
1
+ module.exports = {
2
+ /** @type { import('contentful-migration').MigrationFunction } */
3
+ up: function (migration) {
4
+ const page = migration.editContentType('page')
5
+
6
+ page.editField('pageModules').items({
7
+ type: 'Link',
8
+ validations: [
9
+ {
10
+ linkContentType: [
11
+ 'carouselModule',
12
+ 'chartModule',
13
+ 'containerCollectionModule',
14
+ 'containerModule',
15
+ 'contentModule',
16
+ 'logoCollectionModule',
17
+ 'placeholderModule',
18
+ 'productModule',
19
+ 'splitModule',
20
+ 'tabModule',
21
+ 'testimonialModule',
22
+ 'tileCollectionModule',
23
+ ],
24
+ },
25
+ ],
26
+ linkType: 'Entry',
27
+ })
28
+ },
29
+
30
+ /** @type { import('contentful-migration').MigrationFunction } */
31
+ down: function (migration) {
32
+ const page = migration.editContentType('page')
33
+
34
+ page.editField('pageModules').items({
35
+ type: 'Link',
36
+ validations: [],
37
+ linkType: 'Entry',
38
+ })
39
+ },
40
+ }
@@ -0,0 +1,40 @@
1
+ module.exports = {
2
+ /** @type { import('contentful-migration').MigrationFunction } */
3
+ up: function (migration) {
4
+ const page = migration.editContentType('page')
5
+
6
+ page.editField('pageModules').items({
7
+ type: 'Link',
8
+ validations: [
9
+ {
10
+ linkContentType: [
11
+ 'carouselModule',
12
+ 'chartModule',
13
+ 'containerCollectionModule',
14
+ 'containerModule',
15
+ 'contentModule',
16
+ 'logoCollectionModule',
17
+ 'placeholderModule',
18
+ 'productModule',
19
+ 'splitModule',
20
+ 'tabModule',
21
+ 'testimonialModule',
22
+ 'tileCollectionModule',
23
+ ],
24
+ },
25
+ ],
26
+ linkType: 'Entry',
27
+ })
28
+ },
29
+
30
+ /** @type { import('contentful-migration').MigrationFunction } */
31
+ down: function (migration) {
32
+ const page = migration.editContentType('page')
33
+
34
+ page.editField('pageModules').items({
35
+ type: 'Link',
36
+ validations: [],
37
+ linkType: 'Entry',
38
+ })
39
+ },
40
+ }