@remkoj/optimizely-graph-client 5.1.4 → 5.1.5

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.
package/LICENSE CHANGED
@@ -1,13 +1,13 @@
1
- Copyright 2024 Remko Jantzen
2
-
3
- Licensed under the Apache License, Version 2.0 (the "License");
4
- you may not use this file except in compliance with the License.
5
- You may obtain a copy of the License at
6
-
7
- http://www.apache.org/licenses/LICENSE-2.0
8
-
9
- Unless required by applicable law or agreed to in writing, software
10
- distributed under the License is distributed on an "AS IS" BASIS,
11
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- See the License for the specific language governing permissions and
1
+ Copyright 2024 Remko Jantzen
2
+
3
+ Licensed under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License.
5
+ You may obtain a copy of the License at
6
+
7
+ http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ Unless required by applicable law or agreed to in writing, software
10
+ distributed under the License is distributed on an "AS IS" BASIS,
11
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ See the License for the specific language governing permissions and
13
13
  limitations under the License.
@@ -1,93 +1,93 @@
1
1
  import { gql } from 'graphql-request';
2
- export const getAll = gql `query GetAllChannels {
3
- GetAllChannels:SiteDefinition {
4
- channels: items {
5
- id: Id
6
- name: Name,
7
- domains: Hosts {
8
- name: Name
9
- type: Type
10
- forLocale: Language {
11
- code: Name
12
- }
13
- }
14
- locales:Languages {
15
- code:Name
16
- slug:UrlSegment
17
- isDefault:IsMasterLanguage
18
- }
19
- content: ContentRoots {
20
- startPage: StartPage {
21
- id:Id,
22
- guidValue:GuidValue
23
- }
24
- }
25
- }
26
- }
2
+ export const getAll = gql `query GetAllChannels {
3
+ GetAllChannels:SiteDefinition {
4
+ channels: items {
5
+ id: Id
6
+ name: Name,
7
+ domains: Hosts {
8
+ name: Name
9
+ type: Type
10
+ forLocale: Language {
11
+ code: Name
12
+ }
13
+ }
14
+ locales:Languages {
15
+ code:Name
16
+ slug:UrlSegment
17
+ isDefault:IsMasterLanguage
18
+ }
19
+ content: ContentRoots {
20
+ startPage: StartPage {
21
+ id:Id,
22
+ guidValue:GuidValue
23
+ }
24
+ }
25
+ }
26
+ }
27
27
  }`;
28
- export const getById = gql `query GetChannelById($id: String!) {
29
- GetChannelById:SiteDefinition (
30
- where: {
31
- Id: { eq: $id }
32
- }
33
- limit: 1
34
- ) {
35
- channels: items {
36
- id: Id
37
- name: Name,
38
- domains: Hosts {
39
- name: Name
40
- type: Type
41
- forLocale: Language {
42
- code: Name
43
- }
44
- }
45
- locales:Languages {
46
- code:Name
47
- slug:UrlSegment
48
- isDefault:IsMasterLanguage
49
- }
50
- content: ContentRoots {
51
- startPage: StartPage {
52
- id:Id,
53
- guidValue:GuidValue
54
- }
55
- }
56
- }
57
- }
28
+ export const getById = gql `query GetChannelById($id: String!) {
29
+ GetChannelById:SiteDefinition (
30
+ where: {
31
+ Id: { eq: $id }
32
+ }
33
+ limit: 1
34
+ ) {
35
+ channels: items {
36
+ id: Id
37
+ name: Name,
38
+ domains: Hosts {
39
+ name: Name
40
+ type: Type
41
+ forLocale: Language {
42
+ code: Name
43
+ }
44
+ }
45
+ locales:Languages {
46
+ code:Name
47
+ slug:UrlSegment
48
+ isDefault:IsMasterLanguage
49
+ }
50
+ content: ContentRoots {
51
+ startPage: StartPage {
52
+ id:Id,
53
+ guidValue:GuidValue
54
+ }
55
+ }
56
+ }
57
+ }
58
58
  }`;
59
- export const getByDomain = gql `query GetChannelByDomain($domain: String!, $fallback: String! = "___") {
60
- GetChannelByDomain:SiteDefinition (
61
- where: {
62
- _or: [
63
- {Hosts: { Name: { eq: $domain }}},
64
- {Hosts: { Name: { eq: $fallback }}}
65
- ]
66
- }
67
- limit: 1
68
- ) {
69
- channels: items {
70
- id: Id
71
- name: Name,
72
- domains: Hosts {
73
- name: Name
74
- type: Type
75
- forLocale: Language {
76
- code: Name
77
- }
78
- }
79
- locales:Languages {
80
- code:Name
81
- slug:UrlSegment
82
- isDefault:IsMasterLanguage
83
- }
84
- content: ContentRoots {
85
- startPage: StartPage {
86
- id:Id,
87
- guidValue:GuidValue
88
- }
89
- }
90
- }
91
- }
59
+ export const getByDomain = gql `query GetChannelByDomain($domain: String!, $fallback: String! = "___") {
60
+ GetChannelByDomain:SiteDefinition (
61
+ where: {
62
+ _or: [
63
+ {Hosts: { Name: { eq: $domain }}},
64
+ {Hosts: { Name: { eq: $fallback }}}
65
+ ]
66
+ }
67
+ limit: 1
68
+ ) {
69
+ channels: items {
70
+ id: Id
71
+ name: Name,
72
+ domains: Hosts {
73
+ name: Name
74
+ type: Type
75
+ forLocale: Language {
76
+ code: Name
77
+ }
78
+ }
79
+ locales:Languages {
80
+ code:Name
81
+ slug:UrlSegment
82
+ isDefault:IsMasterLanguage
83
+ }
84
+ content: ContentRoots {
85
+ startPage: StartPage {
86
+ id:Id,
87
+ guidValue:GuidValue
88
+ }
89
+ }
90
+ }
91
+ }
92
92
  }`;
93
93
  //# sourceMappingURL=queries.js.map
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@remkoj/optimizely-graph-client",
3
3
  "license": "Apache-2.0",
4
- "version": "5.1.4",
4
+ "version": "5.1.5",
5
5
  "repository": "https://github.com/remkoj/optimizely-dxp-clients.git",
6
6
  "author": "Remko Jantzen <693172+remkoj@users.noreply.github.com>",
7
7
  "homepage": "https://github.com/remkoj/optimizely-dxp-clients",