@maioradv/cms-basic-lib 1.6.9 → 1.7.1

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.
@@ -5,89 +5,89 @@ exports.ConfigsResolvers = {
5
5
  query: {
6
6
  configs: {
7
7
  name: 'configs',
8
- query: `query ConfigList($limit: Int, $after: Int, $before: Int, $sorting: String){
9
- configs(limit: $limit, after: $after, before: $before, sorting: $sorting){
10
- edges {
11
- node {
12
- id
13
- }
14
- cursor
15
- }
16
- nodes {
17
- id
18
- name
19
- value
20
- customValue
21
- description
22
- translations {
23
- key
24
- locale
25
- value
26
- }
27
- createdAt
28
- updatedAt
29
- }
30
- meta {
31
- startCursor
32
- endCursor
33
- hasNextPage
34
- hasPreviousPage
35
- }
36
- }
8
+ query: `query ConfigList($limit: Int, $after: Int, $before: Int, $sorting: String){
9
+ configs(limit: $limit, after: $after, before: $before, sorting: $sorting){
10
+ edges {
11
+ node {
12
+ id
13
+ }
14
+ cursor
15
+ }
16
+ nodes {
17
+ id
18
+ name
19
+ value
20
+ customValue
21
+ description
22
+ translations {
23
+ key
24
+ locale
25
+ value
26
+ }
27
+ createdAt
28
+ updatedAt
29
+ }
30
+ meta {
31
+ startCursor
32
+ endCursor
33
+ hasNextPage
34
+ hasPreviousPage
35
+ }
36
+ }
37
37
  }`,
38
38
  },
39
39
  TiDelizioConfig: {
40
40
  name: 'TiDelizioConfig',
41
- query: `query {
42
- TiDelizioConfig {
43
- allowGoogleAnalytics
44
- allowMetaPixel
45
- allowGoogleTagManager
46
- allowAdvancedMenu
47
- allowDiscounts
48
- allowBundles
49
- allowLocalization
50
- allowPopup
51
- allowProductVideo
52
- allowCustomProductModal
53
- allowCustomTheme
54
- allowLinks
55
- allowReservations
56
- maxMenuCollectionNumber
57
- maxProductImageNumber
58
- maxProductsCollectionNumber
59
- maxAdditionalLanguages
60
- plan
61
- }
41
+ query: `query {
42
+ TiDelizioConfig {
43
+ allowGoogleAnalytics
44
+ allowMetaPixel
45
+ allowGoogleTagManager
46
+ allowAdvancedMenu
47
+ allowDiscounts
48
+ allowBundles
49
+ allowLocalization
50
+ allowPopup
51
+ allowProductVideo
52
+ allowCustomProductModal
53
+ allowCustomTheme
54
+ allowLinks
55
+ allowReservations
56
+ maxMenuCollectionNumber
57
+ maxProductImageNumber
58
+ maxProductsCollectionNumber
59
+ maxAdditionalLanguages
60
+ plan
61
+ }
62
62
  }`
63
63
  }
64
64
  },
65
65
  mutation: {
66
66
  removeConfigs: {
67
67
  name: 'removeConfigs',
68
- query: `mutation ConfigDelete($id: [Int!]!){
69
- removeConfigs(id: $id) {
70
- count
71
- }
68
+ query: `mutation ConfigDelete($id: [Int!]!){
69
+ removeConfigs(id: $id) {
70
+ count
71
+ }
72
72
  }`,
73
73
  },
74
74
  initTiDelizioConfig: {
75
75
  name: 'initTiDelizioConfig',
76
- query: `mutation ConfigInitTiDelizio($plan: TiDelizioPlan!, $config: TiDelizioConfigDto){
77
- initTiDelizioConfig(plan: $plan, config: $config) {
78
- id
79
- name
80
- value
81
- customValue
82
- description
83
- translations {
84
- key
85
- locale
86
- value
87
- }
88
- createdAt
89
- updatedAt
90
- }
76
+ query: `mutation ConfigInitTiDelizio($plan: TiDelizioPlan!, $config: TiDelizioConfigDto){
77
+ initTiDelizioConfig(plan: $plan, config: $config) {
78
+ id
79
+ name
80
+ value
81
+ customValue
82
+ description
83
+ translations {
84
+ key
85
+ locale
86
+ value
87
+ }
88
+ createdAt
89
+ updatedAt
90
+ }
91
91
  }`,
92
92
  },
93
93
  }
@@ -5,32 +5,32 @@ exports.ImagesResolvers = {
5
5
  query: {
6
6
  images: {
7
7
  name: 'images',
8
- query: `query ImageList($limit: Int, $after: Int, $before: Int, $sorting: String){
9
- images(limit: $limit, after: $after, before: $before, sorting: $sorting){
10
- edges {
11
- node {
12
- id
13
- }
14
- cursor
15
- }
16
- nodes {
17
- id
18
- checksum
19
- mimeType
20
- size
21
- height
22
- width
23
- src
24
- createdAt
25
- updatedAt
26
- }
27
- meta {
28
- startCursor
29
- endCursor
30
- hasNextPage
31
- hasPreviousPage
32
- }
33
- }
8
+ query: `query ImageList($limit: Int, $after: Int, $before: Int, $sorting: String){
9
+ images(limit: $limit, after: $after, before: $before, sorting: $sorting){
10
+ edges {
11
+ node {
12
+ id
13
+ }
14
+ cursor
15
+ }
16
+ nodes {
17
+ id
18
+ checksum
19
+ mimeType
20
+ size
21
+ height
22
+ width
23
+ src
24
+ createdAt
25
+ updatedAt
26
+ }
27
+ meta {
28
+ startCursor
29
+ endCursor
30
+ hasNextPage
31
+ hasPreviousPage
32
+ }
33
+ }
34
34
  }`,
35
35
  },
36
36
  },
package/dist/index.d.ts CHANGED
@@ -18,6 +18,7 @@ export * from './roles/types';
18
18
  export * from './settings/types';
19
19
  export * from './bundles/types';
20
20
  export * from './linkCollections/types';
21
+ export * from './reservations/types';
21
22
  export * from './gid';
22
23
  export * from './core/dto/pagination';
23
24
  export { TiDelizioPlan, TiDelizioConfig } from './configs/services/tidelizio.config';
package/dist/index.js CHANGED
@@ -34,6 +34,7 @@ __exportStar(require("./roles/types"), exports);
34
34
  __exportStar(require("./settings/types"), exports);
35
35
  __exportStar(require("./bundles/types"), exports);
36
36
  __exportStar(require("./linkCollections/types"), exports);
37
+ __exportStar(require("./reservations/types"), exports);
37
38
  __exportStar(require("./gid"), exports);
38
39
  __exportStar(require("./core/dto/pagination"), exports);
39
40
  var tidelizio_config_1 = require("./configs/services/tidelizio.config");
@@ -5,47 +5,47 @@ exports.LanguagesResolvers = {
5
5
  query: {
6
6
  languages: {
7
7
  name: 'languages',
8
- query: `query LanguageList($limit: Int, $after: Int, $before: Int, $sorting: String){
9
- languages(limit: $limit, after: $after, before: $before, sorting: $sorting){
10
- edges {
11
- node {
12
- id
13
- }
14
- cursor
15
- }
16
- nodes {
17
- id
18
- name
19
- active
20
- iso
21
- locale
22
- published
23
- default
24
- translations {
25
- key
26
- locale
27
- value
28
- }
29
- createdAt
30
- updatedAt
31
- }
32
- meta {
33
- startCursor
34
- endCursor
35
- hasNextPage
36
- hasPreviousPage
37
- }
38
- }
8
+ query: `query LanguageList($limit: Int, $after: Int, $before: Int, $sorting: String){
9
+ languages(limit: $limit, after: $after, before: $before, sorting: $sorting){
10
+ edges {
11
+ node {
12
+ id
13
+ }
14
+ cursor
15
+ }
16
+ nodes {
17
+ id
18
+ name
19
+ active
20
+ iso
21
+ locale
22
+ published
23
+ default
24
+ translations {
25
+ key
26
+ locale
27
+ value
28
+ }
29
+ createdAt
30
+ updatedAt
31
+ }
32
+ meta {
33
+ startCursor
34
+ endCursor
35
+ hasNextPage
36
+ hasPreviousPage
37
+ }
38
+ }
39
39
  }`,
40
40
  },
41
41
  },
42
42
  mutation: {
43
43
  removeLanguages: {
44
44
  name: 'removeLanguages',
45
- query: `mutation LanguageDelete($id: [Int!]!){
46
- removeLanguages(id: $id) {
47
- count
48
- }
45
+ query: `mutation LanguageDelete($id: [Int!]!){
46
+ removeLanguages(id: $id) {
47
+ count
48
+ }
49
49
  }`,
50
50
  },
51
51
  }
@@ -5,49 +5,49 @@ exports.PopupsResolvers = {
5
5
  query: {
6
6
  popups: {
7
7
  name: 'popups',
8
- query: `query PopupList($limit: Int, $after: Int, $before: Int, $sorting: String){
9
- popups(limit: $limit, after: $after, before: $before, sorting: $sorting){
10
- edges {
11
- node {
12
- id
13
- }
14
- cursor
15
- }
16
- nodes {
17
- id
18
- name
19
- modal
20
- target
21
- published
22
- translations {
23
- key
24
- locale
25
- value
26
- }
27
- metafields {
28
- key
29
- value
30
- }
31
- createdAt
32
- updatedAt
33
- }
34
- meta {
35
- startCursor
36
- endCursor
37
- hasNextPage
38
- hasPreviousPage
39
- }
40
- }
8
+ query: `query PopupList($limit: Int, $after: Int, $before: Int, $sorting: String){
9
+ popups(limit: $limit, after: $after, before: $before, sorting: $sorting){
10
+ edges {
11
+ node {
12
+ id
13
+ }
14
+ cursor
15
+ }
16
+ nodes {
17
+ id
18
+ name
19
+ modal
20
+ target
21
+ published
22
+ translations {
23
+ key
24
+ locale
25
+ value
26
+ }
27
+ metafields {
28
+ key
29
+ value
30
+ }
31
+ createdAt
32
+ updatedAt
33
+ }
34
+ meta {
35
+ startCursor
36
+ endCursor
37
+ hasNextPage
38
+ hasPreviousPage
39
+ }
40
+ }
41
41
  }`,
42
42
  },
43
43
  },
44
44
  mutation: {
45
45
  removePopups: {
46
46
  name: 'removePopups',
47
- query: `mutation PopupDelete($id: [Int!]!){
48
- removePopups(id: $id) {
49
- count
50
- }
47
+ query: `mutation PopupDelete($id: [Int!]!){
48
+ removePopups(id: $id) {
49
+ count
50
+ }
51
51
  }`,
52
52
  },
53
53
  }
@@ -5,48 +5,48 @@ exports.ProductAttributesResolvers = {
5
5
  query: {
6
6
  productAttributes: {
7
7
  name: 'productAttributes',
8
- query: `query ProductAttributeList($limit: Int, $after: Int, $before: Int, $sorting: String){
9
- productAttributes(limit: $limit, after: $after, before: $before, sorting: $sorting){
10
- edges {
11
- node {
12
- id
13
- }
14
- cursor
15
- }
16
- nodes {
17
- id
18
- name
19
- slug
20
- translations {
21
- key
22
- locale
23
- value
24
- }
25
- metafields {
26
- key
27
- value
28
- }
29
- published
30
- createdAt
31
- updatedAt
32
- }
33
- meta {
34
- startCursor
35
- endCursor
36
- hasNextPage
37
- hasPreviousPage
38
- }
39
- }
8
+ query: `query ProductAttributeList($limit: Int, $after: Int, $before: Int, $sorting: String){
9
+ productAttributes(limit: $limit, after: $after, before: $before, sorting: $sorting){
10
+ edges {
11
+ node {
12
+ id
13
+ }
14
+ cursor
15
+ }
16
+ nodes {
17
+ id
18
+ name
19
+ slug
20
+ translations {
21
+ key
22
+ locale
23
+ value
24
+ }
25
+ metafields {
26
+ key
27
+ value
28
+ }
29
+ published
30
+ createdAt
31
+ updatedAt
32
+ }
33
+ meta {
34
+ startCursor
35
+ endCursor
36
+ hasNextPage
37
+ hasPreviousPage
38
+ }
39
+ }
40
40
  }`,
41
41
  },
42
42
  },
43
43
  mutation: {
44
44
  removeProductAttributes: {
45
45
  name: 'removeProductAttributes',
46
- query: `mutation ProductAttributeDelete($id: [Int!]!){
47
- removeProductAttributes(id: $id) {
48
- count
49
- }
46
+ query: `mutation ProductAttributeDelete($id: [Int!]!){
47
+ removeProductAttributes(id: $id) {
48
+ count
49
+ }
50
50
  }`,
51
51
  },
52
52
  }
@@ -55,48 +55,48 @@ exports.ProductAttributeValuesResolvers = {
55
55
  query: {
56
56
  productAttributeValues: {
57
57
  name: 'productAttributeValues',
58
- query: `query ProductAttributeValueList($limit: Int, $after: Int, $before: Int, $attributeSlug: String, $published: Boolean $sorting: String){
59
- productAttributeValues(limit: $limit, after: $after, before: $before, attributeSlug: $attributeSlug, published: $published, sorting: $sorting){
60
- edges {
61
- node {
62
- id
63
- }
64
- cursor
65
- }
66
- nodes {
67
- id
68
- name
69
- productAttributeId
70
- translations {
71
- key
72
- locale
73
- value
74
- }
75
- metafields {
76
- key
77
- value
78
- }
79
- published
80
- createdAt
81
- updatedAt
82
- }
83
- meta {
84
- startCursor
85
- endCursor
86
- hasNextPage
87
- hasPreviousPage
88
- }
89
- }
58
+ query: `query ProductAttributeValueList($limit: Int, $after: Int, $before: Int, $attributeSlug: String, $published: Boolean $sorting: String){
59
+ productAttributeValues(limit: $limit, after: $after, before: $before, attributeSlug: $attributeSlug, published: $published, sorting: $sorting){
60
+ edges {
61
+ node {
62
+ id
63
+ }
64
+ cursor
65
+ }
66
+ nodes {
67
+ id
68
+ name
69
+ productAttributeId
70
+ translations {
71
+ key
72
+ locale
73
+ value
74
+ }
75
+ metafields {
76
+ key
77
+ value
78
+ }
79
+ published
80
+ createdAt
81
+ updatedAt
82
+ }
83
+ meta {
84
+ startCursor
85
+ endCursor
86
+ hasNextPage
87
+ hasPreviousPage
88
+ }
89
+ }
90
90
  }`,
91
91
  },
92
92
  },
93
93
  mutation: {
94
94
  removeProductAttributeValues: {
95
95
  name: 'removeProductAttributeValues',
96
- query: `mutation ProductAttributeValueDelete($id: [Int!]!){
97
- removeProductAttributeValues(id: $id) {
98
- count
99
- }
96
+ query: `mutation ProductAttributeValueDelete($id: [Int!]!){
97
+ removeProductAttributeValues(id: $id) {
98
+ count
99
+ }
100
100
  }`,
101
101
  },
102
102
  }