@maioradv/cms-basic-lib 1.7.0 → 1.7.2

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,64 +5,64 @@ exports.RolesResolvers = {
5
5
  query: {
6
6
  roles: {
7
7
  name: 'roles',
8
- query: `query RoleList($limit: Int, $after: Int, $before: Int, $sorting: String){
9
- roles(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
- description
20
- permissions
21
- readonly
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 RoleList($limit: Int, $after: Int, $before: Int, $sorting: String){
9
+ roles(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
+ description
20
+ permissions
21
+ readonly
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
  },
40
40
  mutation: {
41
41
  removeRoles: {
42
42
  name: 'removeRoles',
43
- query: `mutation RoleDelete($id: [Int!]!){
44
- removeRoles(id: $id) {
45
- count
46
- }
43
+ query: `mutation RoleDelete($id: [Int!]!){
44
+ removeRoles(id: $id) {
45
+ count
46
+ }
47
47
  }`,
48
48
  },
49
49
  syncPermissionsRoles: {
50
50
  name: 'syncPermissionsRoles',
51
- query: `mutation RoleSyncPermissions {
52
- syncPermissionsRoles {
53
- id
54
- name
55
- description
56
- permissions
57
- readOnly
58
- translations {
59
- key
60
- locale
61
- value
62
- }
63
- createdAt
64
- updatedAt
65
- }
51
+ query: `mutation RoleSyncPermissions {
52
+ syncPermissionsRoles {
53
+ id
54
+ name
55
+ description
56
+ permissions
57
+ readOnly
58
+ translations {
59
+ key
60
+ locale
61
+ value
62
+ }
63
+ createdAt
64
+ updatedAt
65
+ }
66
66
  }`,
67
67
  },
68
68
  }
@@ -5,45 +5,45 @@ exports.SettingsResolvers = {
5
5
  query: {
6
6
  settings: {
7
7
  name: 'settings',
8
- query: `query SettingList($limit: Int, $after: Int, $before: Int, $sorting: String){
9
- settings(limit: $limit, after: $after, before: $before, sorting: $sorting){
10
- edges {
11
- node {
12
- id
13
- }
14
- cursor
15
- }
16
- nodes {
17
- id
18
- namespace
19
- name
20
- value
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 SettingList($limit: Int, $after: Int, $before: Int, $sorting: String){
9
+ settings(limit: $limit, after: $after, before: $before, sorting: $sorting){
10
+ edges {
11
+ node {
12
+ id
13
+ }
14
+ cursor
15
+ }
16
+ nodes {
17
+ id
18
+ namespace
19
+ name
20
+ value
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
  },
40
40
  mutation: {
41
41
  removeSettings: {
42
42
  name: 'removeSettings',
43
- query: `mutation SettingDelete($id: [Int!]!){
44
- removeSettings(id: $id) {
45
- count
46
- }
43
+ query: `mutation SettingDelete($id: [Int!]!){
44
+ removeSettings(id: $id) {
45
+ count
46
+ }
47
47
  }`,
48
48
  },
49
49
  }
package/package.json CHANGED
@@ -1,30 +1,30 @@
1
- {
2
- "name": "@maioradv/cms-basic-lib",
3
- "version": "1.7.0",
4
- "description": "JS lib for Maior CMS Basic Api",
5
- "repository": "https://github.com/maioradv/cms-basic-lib.git",
6
- "author": "Maior ADV Srl",
7
- "license": "MIT",
8
- "private": false,
9
- "main": "dist/index.js",
10
- "types": "dist/index.d.ts",
11
- "files": [
12
- "/dist"
13
- ],
14
- "scripts": {
15
- "example": "ts-node example/test.ts",
16
- "build": "tsc"
17
- },
18
- "dependencies": {
19
- "axios": "^1.10.0"
20
- },
21
- "devDependencies": {
22
- "@types/node": "^20.14.9",
23
- "ts-node": "^10.9.2",
24
- "typescript": "^5.8.3"
25
- },
26
- "keywords": [
27
- "typescript",
28
- "maior"
29
- ]
30
- }
1
+ {
2
+ "name": "@maioradv/cms-basic-lib",
3
+ "version": "1.7.2",
4
+ "description": "JS lib for Maior CMS Basic Api",
5
+ "repository": "https://github.com/maioradv/cms-basic-lib.git",
6
+ "author": "Maior ADV Srl",
7
+ "license": "MIT",
8
+ "private": false,
9
+ "main": "dist/index.js",
10
+ "types": "dist/index.d.ts",
11
+ "files": [
12
+ "/dist"
13
+ ],
14
+ "scripts": {
15
+ "example": "ts-node example/test.ts",
16
+ "build": "tsc"
17
+ },
18
+ "dependencies": {
19
+ "axios": "^1.10.0"
20
+ },
21
+ "devDependencies": {
22
+ "@types/node": "^20.14.9",
23
+ "ts-node": "^10.9.2",
24
+ "typescript": "^5.8.3"
25
+ },
26
+ "keywords": [
27
+ "typescript",
28
+ "maior"
29
+ ]
30
+ }
@@ -1,25 +0,0 @@
1
- import { ServiceConfig } from "../model";
2
- export declare enum TiDelizioPlan {
3
- standard = "standard",
4
- plus = "plus",
5
- premium = "premium"
6
- }
7
- export interface TiDelizioConfig extends ServiceConfig {
8
- allowGoogleAnalytics?: boolean;
9
- allowMetaPixel?: boolean;
10
- allowGoogleTagManager?: boolean;
11
- allowAdvancedMenu?: boolean;
12
- allowDiscounts?: boolean;
13
- allowBundles?: boolean;
14
- allowCustomProductModal?: boolean;
15
- allowLocalization?: boolean;
16
- allowProductVideo?: boolean;
17
- allowPopup?: boolean;
18
- allowCustomTheme?: boolean;
19
- plan?: TiDelizioPlan;
20
- qrLinkRedirect?: string;
21
- maxMenuCollectionNumber?: number;
22
- maxProductsCollectionNumber?: number;
23
- maxProductImageNumber?: number;
24
- maxAdditionalLanguages?: number;
25
- }
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TiDelizioPlan = void 0;
4
- var TiDelizioPlan;
5
- (function (TiDelizioPlan) {
6
- TiDelizioPlan["standard"] = "standard";
7
- TiDelizioPlan["plus"] = "plus";
8
- TiDelizioPlan["premium"] = "premium";
9
- })(TiDelizioPlan || (exports.TiDelizioPlan = TiDelizioPlan = {}));