@cooperco/cooper-component-library 0.1.96 → 0.1.98

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
+ }
@@ -9,8 +9,10 @@ export const getPage = gql `
9
9
  pageModulesCollection(limit: 50) {
10
10
  items {
11
11
  __typename
12
- sys {
13
- id
12
+ ... on Entry {
13
+ sys {
14
+ id
15
+ }
14
16
  }
15
17
  }
16
18
  }
@@ -11,8 +11,10 @@ export const getPage: DocumentNode = gql`
11
11
  pageModulesCollection(limit: 50) {
12
12
  items {
13
13
  __typename
14
- sys {
15
- id
14
+ ... on Entry {
15
+ sys {
16
+ id
17
+ }
16
18
  }
17
19
  }
18
20
  }
@@ -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
+ }
@@ -11,8 +11,10 @@ export const getPage: DocumentNode = gql`
11
11
  pageModulesCollection(limit: 50) {
12
12
  items {
13
13
  __typename
14
- sys {
15
- id
14
+ ... on Entry {
15
+ sys {
16
+ id
17
+ }
16
18
  }
17
19
  }
18
20
  }
@@ -11,8 +11,10 @@ export const getPage: DocumentNode = gql`
11
11
  pageModulesCollection(limit: 50) {
12
12
  items {
13
13
  __typename
14
- sys {
15
- id
14
+ ... on Entry {
15
+ sys {
16
+ id
17
+ }
16
18
  }
17
19
  }
18
20
  }
@@ -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
+ }