@maioradv/cms-basic-lib 1.7.6 → 1.7.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.
@@ -24,6 +24,10 @@ exports.ConfigsResolvers = {
24
24
  locale
25
25
  value
26
26
  }
27
+ metafields {
28
+ key
29
+ value
30
+ }
27
31
  createdAt
28
32
  updatedAt
29
33
  }
@@ -85,6 +89,10 @@ exports.ConfigsResolvers = {
85
89
  locale
86
90
  value
87
91
  }
92
+ metafields {
93
+ key
94
+ value
95
+ }
88
96
  createdAt
89
97
  updatedAt
90
98
  }
@@ -1,7 +1,7 @@
1
- import { StringClause, WhereClausesDto } from "../core/dto/clauses";
1
+ import { ObjectClause, StringClause, WhereClausesDto } from "../core/dto/clauses";
2
2
  import { Sorting, SortingParamsDto } from "../core/dto/sorting";
3
3
  import { QueryParamsDto } from "../core/utils/queryParams";
4
- import { OmitRequire, Translation } from "../types";
4
+ import { Metafield, OmitRequire, Translation } from "../types";
5
5
  export type Config = {
6
6
  id: number;
7
7
  name: string;
@@ -9,6 +9,7 @@ export type Config = {
9
9
  customValue: string | null;
10
10
  description: string | null;
11
11
  translations: Translation[];
12
+ metafields: Metafield[];
12
13
  createdAt: Date;
13
14
  updatedAt: Date;
14
15
  };
@@ -21,5 +22,7 @@ export type SortingConfigDto = SortingParamsDto<{
21
22
  export type ClausesConfigDto = WhereClausesDto<{
22
23
  name?: StringClause;
23
24
  description?: StringClause;
25
+ metafields?: ObjectClause<Partial<Metafield>>;
26
+ translations?: ObjectClause<Partial<Translation>>;
24
27
  }>;
25
28
  export type QueryConfigDto = QueryParamsDto<SortingConfigDto, ClausesConfigDto>;
@@ -16,7 +16,6 @@ function where(args) {
16
16
  res[key] = args[key] instanceof Array ? args[key].join() : args[key];
17
17
  }
18
18
  });
19
- console.log(res);
20
19
  return res;
21
20
  }
22
21
  function MetafieldStringify(object) {
@@ -24,6 +24,10 @@ exports.SettingsResolvers = {
24
24
  locale
25
25
  value
26
26
  }
27
+ metafields {
28
+ key
29
+ value
30
+ }
27
31
  createdAt
28
32
  updatedAt
29
33
  }
@@ -1,7 +1,7 @@
1
- import { StringClause, WhereClausesDto } from "../core/dto/clauses";
1
+ import { ObjectClause, StringClause, WhereClausesDto } from "../core/dto/clauses";
2
2
  import { Sorting, SortingParamsDto } from "../core/dto/sorting";
3
3
  import { QueryParamsDto } from "../core/utils/queryParams";
4
- import { OmitRequire, Translation } from "../types";
4
+ import { Metafield, OmitRequire, Translation } from "../types";
5
5
  export type Setting = {
6
6
  id: number;
7
7
  namespace: string | null;
@@ -9,6 +9,7 @@ export type Setting = {
9
9
  value: string;
10
10
  description: string | null;
11
11
  translations: Translation[];
12
+ metafields: Metafield[];
12
13
  createdAt: Date;
13
14
  updatedAt: Date;
14
15
  };
@@ -22,5 +23,7 @@ export type ClausesSettingDto = WhereClausesDto<{
22
23
  name?: StringClause;
23
24
  description?: StringClause;
24
25
  namespace?: StringClause | StringClause[];
26
+ metafields?: ObjectClause<Partial<Metafield>>;
27
+ translations?: ObjectClause<Partial<Translation>>;
25
28
  }>;
26
29
  export type QuerySettingDto = QueryParamsDto<SortingSettingDto, ClausesSettingDto>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maioradv/cms-basic-lib",
3
- "version": "1.7.6",
3
+ "version": "1.7.8",
4
4
  "description": "JS lib for Maior CMS Basic Api",
5
5
  "repository": "https://github.com/maioradv/cms-basic-lib.git",
6
6
  "author": "Maior ADV Srl",