@raketa-cloud/next 1.0.7 → 1.0.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raketa-cloud/next",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "main": "src/index.js",
5
5
  "scripts": {
6
6
  "check-types": "tsc --noEmit",
@@ -25,7 +25,7 @@ export default class Resources extends DxpModel {
25
25
 
26
26
  async unscopedFind(locale, slug, resourceType, opts = {}) {
27
27
  const response = await this.fetch(
28
- `${resourceType}-${locale}-${slug}`,
28
+ `unscoped-${resourceType}-${locale}-${slug}`,
29
29
  async () =>
30
30
  await this.client.query(
31
31
  UnscopedResourceBySlugDocument,
@@ -41,7 +41,7 @@ export default class Resources extends DxpModel {
41
41
  opts
42
42
  );
43
43
 
44
- return response?.resource;
44
+ return response?.unscopedResource;
45
45
  }
46
46
 
47
47
  async list(locale, input = {}, opts = {}) {
@@ -75,7 +75,7 @@ const ResourceBySlugDocument = gql`
75
75
  `;
76
76
 
77
77
  const UnscopedResourceBySlugDocument = gql`
78
- query ResourceBySlug($input: SlugTypeInput!) {
78
+ query UnscopedResourceBySlug($input: SlugTypeInput!) {
79
79
  unscopedResource(input: $input) {
80
80
  id
81
81
  title