r-agency-mesh 1.294.0 → 1.296.0

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.
@@ -12,10 +12,12 @@ post {
12
12
 
13
13
  body:graphql {
14
14
  mutation DbResourceCreate($alias: String!, $records: [JSON!]!) {
15
- DbResourceWrite(alias: $alias, records: $records) {
15
+ DbResourceCreate(alias: $alias, records: $records) {
16
16
  success
17
+ requestId
17
18
  }
18
19
  }
20
+
19
21
  }
20
22
 
21
23
  body:graphql:vars {
@@ -23,22 +25,9 @@ body:graphql:vars {
23
25
  "alias": "test-resource",
24
26
  "records": [
25
27
  {
26
- "devField1": "dev1"
27
- },
28
- {
29
- "devField1": "dev2"
30
- },
31
- {
32
- "devField1": "dev3"
33
- },
34
- {
35
- "devField1": "dev4"
36
- },
37
- {
38
- "devField1": "dev5"
39
- },
40
- {
41
- "devField1": "dev6"
28
+ "devField1": "dev1",
29
+ "devField2": "https://www.npmjs.com/package/zod",
30
+ "publicId": "75267d1c-7c10-48cc-afd1-52478c398ec2"
42
31
  }
43
32
  ]
44
33
  }
@@ -0,0 +1,31 @@
1
+ meta {
2
+ name: DbResourceDelete
3
+ type: graphql
4
+ seq: 5
5
+ }
6
+
7
+ post {
8
+ url: http://localhost:5001/graphql
9
+ body: graphql
10
+ auth: inherit
11
+ }
12
+
13
+ body:graphql {
14
+ mutation DbResourceDelete($alias:String!,$ids:[JSON!]!) {
15
+ DbResourceDelete(alias: $alias, ids: $ids) {
16
+ success
17
+ requestId
18
+ }
19
+ }
20
+ }
21
+
22
+ body:graphql:vars {
23
+ {
24
+ "alias":"test-resource",
25
+ "ids":[]
26
+ }
27
+ }
28
+
29
+ settings {
30
+ encodeUrl: true
31
+ }
@@ -10,23 +10,44 @@ post {
10
10
  auth: inherit
11
11
  }
12
12
 
13
+ headers {
14
+ x-auth-token: U2FsdGVkX19P0OceNBsEoGO4cFRilkuKulHn1IyVmY/xuSfr2JUJg3NiLMZLnOhGoyqwaGALflVQarrzYyirbF6DFR1T893pvcpqs7TZ9trLkhZod67lU4iZBJAvuXilj/hQ1+otq7gZa7MbyKl9PYCLt1F6cqRasQVXBZ2K8FUroxX1bGZeNJhAQliIptFdxpND1s6zgtNZvYYg8O45OGcoFMtIKCiQr56YIKUfRUMumjEMh0bKRs6A6L6eotTKTPaMFUk0ZjRSJT9ZAFjAPXv66mWRI8+MNIIxyNUw7R60p02kKhSZSXNyZnX2rcVA8yb5LLNoSpCxMXMJThyhLPZtPzcNpltqbkz+Jpk5st1MUMGiu6E6NEHJK9WlLTXOOOtPR6+KVJBRDWInVMBvJGq9WIbD1LSaxW9EWH3XiXVHqIz7n9Oivu1BM9tbEOKj0qSUzmwp9BJXH+QZDtldso9hPUsY8oELxXx5orS4/JiDl9LZxriew1XLZGd4NLW97FchIOBJJsQxf7OBeXArl4JxyCbFUcKaHKjdSXnQZNcHZGug0jkC4nxelRw6/mMyDB5aHuH8yz7gUROaFcnnUJ1pJd8L70SqXbkM8nyOnCqMWPtRaK6Zk04UZYM89S1S
15
+ }
16
+
13
17
  body:graphql {
14
- query DbResourceRead($alias:String!) {
15
- DbResourceRead(
16
- alias: "test-resource"
17
- pagination: {
18
- limit: null,
19
- offset: null
20
- }
21
- ) {
22
- success
23
- }
18
+ query DbResourceRead(
19
+ $alias: String!
20
+ $pagination: dbPagination
21
+ $order: JSON
22
+ $where: JSON
23
+ ) {
24
+ DbResourceRead(
25
+ alias: $alias
26
+ pagination: $pagination
27
+ order: $order
28
+ where: $where
29
+ ) {
30
+ success
31
+ records
32
+ total
33
+ count
34
+ requestId
35
+ }
24
36
  }
37
+
25
38
  }
26
39
 
27
40
  body:graphql:vars {
28
41
  {
29
- "alias": "test-resource"
42
+ "alias": "test-resource",
43
+ "order": {
44
+ "devField1": "DESC"
45
+ },
46
+ "where": [],
47
+ "pagination": {
48
+ "limit": 100,
49
+ "offset": 0
50
+ }
30
51
  }
31
52
  }
32
53
 
@@ -10,6 +10,10 @@ post {
10
10
  auth: inherit
11
11
  }
12
12
 
13
+ headers {
14
+ x-auth-token: demo
15
+ }
16
+
13
17
  body:graphql {
14
18
  mutation DbResourceWrite($alias: String!, $records: [JSON!]!) {
15
19
  DbResourceWrite(alias: $alias, records: $records) {
@@ -24,13 +28,8 @@ body:graphql:vars {
24
28
  "alias": "test-resource",
25
29
  "records": [
26
30
  {
27
- "devField1": "demo world"
28
- },
29
- {
30
- "devField1": "demo world"
31
- },
32
- {
33
- "devField1": "demo world"
31
+ "id": "0792a4dc-40a7-49e8-a765-89fae7d3ddde",
32
+ "devField1": "john doe"
34
33
  }
35
34
  ]
36
35
  }
@@ -5,14 +5,18 @@ meta {
5
5
  }
6
6
 
7
7
  post {
8
- url:
8
+ url: http://localhost:5001/graphql
9
9
  body: graphql
10
10
  auth: inherit
11
11
  }
12
12
 
13
+ headers {
14
+ x-device-id: asjdkasjdlkasdjlaskjl
15
+ }
16
+
13
17
  body:graphql {
14
- mutation UserLogin {
15
- userLogin(params: null) {
18
+ mutation UserLogin($params:userLoginParams!) {
19
+ userLogin(params: $params) {
16
20
  success
17
21
  authToken
18
22
  userId
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "r-agency-mesh",
3
- "version": "1.294.0",
3
+ "version": "1.296.0",
4
4
  "scripts": {
5
5
  "build-dev": "npm run compile && npm run gen",
6
6
  "build-prod": "npm run compile && npm run gen-prod",
@@ -66,7 +66,8 @@
66
66
  "typeorm": "^0.3.22",
67
67
  "uuid": "^11.1.0",
68
68
  "ws": "^8.18.1",
69
- "yup": "^1.6.1"
69
+ "yup": "^1.6.1",
70
+ "zod": "^4.1.11"
70
71
  },
71
72
  "devDependencies": {
72
73
  "@types/cors": "^2.8.17",