@remkoj/optimizely-graph-functions 3.1.0 → 3.2.0

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.
@@ -21,11 +21,11 @@ exports.default = [
21
21
  }
22
22
  }
23
23
  }`,
24
- `query getContentByPath($path: String!, $locale: [Locales], $siteId: String) {
24
+ `query getContentByPath($path: [String!]!, $locale: [Locales], $siteId: String) {
25
25
  content: Content(
26
26
  where: {
27
27
  RelativePath: {
28
- eq: $path
28
+ in: $path
29
29
  }
30
30
  SiteId: {
31
31
  eq: $siteId
@@ -34,6 +34,7 @@ exports.default = [
34
34
  locale: $locale
35
35
  ) {
36
36
  items {
37
+ ...IContentData
37
38
  ...PageData
38
39
  }
39
40
  }
@@ -1 +1 @@
1
- {"version":3,"file":"queries.cms12.js","sourceRoot":"","sources":["../../src/documents/queries.cms12.ts"],"names":[],"mappings":";;AAAA,kBAAe;IACX;;;;;;;;;;;;;;;;;;;MAmBE;IACF;;;;;;;;;;;;;;;;MAgBE;IACF;;;;;;;;;;;;;;;;;;;;;;;MAuBE;CACL,CAAA"}
1
+ {"version":3,"file":"queries.cms12.js","sourceRoot":"","sources":["../../src/documents/queries.cms12.ts"],"names":[],"mappings":";;AAAA,kBAAe;IACX;;;;;;;;;;;;;;;;;;;MAmBE;IACF;;;;;;;;;;;;;;;;;MAiBE;IACF;;;;;;;;;;;;;;;;;;;;;;;MAuBE;CACL,CAAA"}
@@ -18,15 +18,16 @@ exports.default = [
18
18
  }
19
19
  }
20
20
  }`,
21
- `query getContentByPath($path: String!, $version: String, $locale: [Locales!], $domain: String) {
21
+ `query getContentByPath($path: [String!]!, $locale: [Locales!], $siteId: String) {
22
22
  content: _Content(
23
23
  where: {
24
- _metadata: { url: { default: { eq: $path }, base: { eq: $domain } }, version: { eq: $version }}
24
+ _metadata: { url: { default: { in: $path }, base: { eq: $siteId } }}
25
25
  }
26
26
  locale: $locale
27
27
  ) {
28
28
  total
29
29
  items {
30
+ ...IContentData
30
31
  ...PageData
31
32
  }
32
33
  }
@@ -1 +1 @@
1
- {"version":3,"file":"queries.cms13.js","sourceRoot":"","sources":["../../src/documents/queries.cms13.ts"],"names":[],"mappings":";;AAAA,kBAAe;IACX;;;;;;;;;;;;;;;;MAgBE;IACF;;;;;;;;;;;;MAYE;IACF;;;;;;;;;;;;;;;;;MAiBE;CACL,CAAA"}
1
+ {"version":3,"file":"queries.cms13.js","sourceRoot":"","sources":["../../src/documents/queries.cms13.ts"],"names":[],"mappings":";;AAAA,kBAAe;IACX;;;;;;;;;;;;;;;;MAgBE;IACF;;;;;;;;;;;;;MAaE;IACF;;;;;;;;;;;;;;;;;MAiBE;CACL,CAAA"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@remkoj/optimizely-graph-functions",
3
3
  "license": "Apache-2.0",
4
- "version": "3.1.0",
4
+ "version": "3.2.0",
5
5
  "packageManager": "yarn@4.1.1",
6
6
  "repository": "https://github.com/remkoj/optimizely-dxp-clients.git",
7
7
  "author": "Remko Jantzen <693172+remkoj@users.noreply.github.com>",
@@ -62,7 +62,7 @@
62
62
  },
63
63
  "peerDependencies": {
64
64
  "@graphql-typed-document-node/core": "*",
65
- "@remkoj/optimizely-graph-client": "3.1.0",
65
+ "@remkoj/optimizely-graph-client": "3.2.0",
66
66
  "graphql": "*",
67
67
  "graphql-request": "^6.1.0",
68
68
  "graphql-tag": "*"