@knowledge-stack/ksapi 1.18.2 → 1.19.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.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @knowledge-stack/ksapi@1.18.2
1
+ ## @knowledge-stack/ksapi@1.19.0
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @knowledge-stack/ksapi@1.18.2 --save
39
+ npm install @knowledge-stack/ksapi@1.19.0 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -33,7 +33,7 @@ export interface CreatePermissionRequest {
33
33
  * @type {string}
34
34
  * @memberof CreatePermissionRequest
35
35
  */
36
- path: string;
36
+ pathPartId: string;
37
37
  /**
38
38
  *
39
39
  * @type {PermissionCapability}
@@ -20,7 +20,7 @@ export function instanceOfCreatePermissionRequest(value) {
20
20
  return false;
21
21
  if (!('userId' in value) || value['userId'] === undefined)
22
22
  return false;
23
- if (!('path' in value) || value['path'] === undefined)
23
+ if (!('pathPartId' in value) || value['pathPartId'] === undefined)
24
24
  return false;
25
25
  if (!('capability' in value) || value['capability'] === undefined)
26
26
  return false;
@@ -36,7 +36,7 @@ export function CreatePermissionRequestFromJSONTyped(json, ignoreDiscriminator)
36
36
  return {
37
37
  'tenantId': json['tenant_id'],
38
38
  'userId': json['user_id'],
39
- 'path': json['path'],
39
+ 'pathPartId': json['path_part_id'],
40
40
  'capability': PermissionCapabilityFromJSON(json['capability']),
41
41
  };
42
42
  }
@@ -50,7 +50,7 @@ export function CreatePermissionRequestToJSONTyped(value, ignoreDiscriminator =
50
50
  return {
51
51
  'tenant_id': value['tenantId'],
52
52
  'user_id': value['userId'],
53
- 'path': value['path'],
53
+ 'path_part_id': value['pathPartId'],
54
54
  'capability': PermissionCapabilityToJSON(value['capability']),
55
55
  };
56
56
  }
@@ -39,7 +39,13 @@ export interface PermissionResponse {
39
39
  * @type {string}
40
40
  * @memberof PermissionResponse
41
41
  */
42
- path: string;
42
+ pathPartId: string;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof PermissionResponse
47
+ */
48
+ materializedPath: string;
43
49
  /**
44
50
  *
45
51
  * @type {PermissionCapability}
@@ -22,7 +22,9 @@ export function instanceOfPermissionResponse(value) {
22
22
  return false;
23
23
  if (!('userId' in value) || value['userId'] === undefined)
24
24
  return false;
25
- if (!('path' in value) || value['path'] === undefined)
25
+ if (!('pathPartId' in value) || value['pathPartId'] === undefined)
26
+ return false;
27
+ if (!('materializedPath' in value) || value['materializedPath'] === undefined)
26
28
  return false;
27
29
  if (!('capability' in value) || value['capability'] === undefined)
28
30
  return false;
@@ -43,7 +45,8 @@ export function PermissionResponseFromJSONTyped(json, ignoreDiscriminator) {
43
45
  'id': json['id'],
44
46
  'tenantId': json['tenant_id'],
45
47
  'userId': json['user_id'],
46
- 'path': json['path'],
48
+ 'pathPartId': json['path_part_id'],
49
+ 'materializedPath': json['materialized_path'],
47
50
  'capability': PermissionCapabilityFromJSON(json['capability']),
48
51
  'createdAt': (new Date(json['created_at'])),
49
52
  'updatedAt': (new Date(json['updated_at'])),
@@ -60,7 +63,8 @@ export function PermissionResponseToJSONTyped(value, ignoreDiscriminator = false
60
63
  'id': value['id'],
61
64
  'tenant_id': value['tenantId'],
62
65
  'user_id': value['userId'],
63
- 'path': value['path'],
66
+ 'path_part_id': value['pathPartId'],
67
+ 'materialized_path': value['materializedPath'],
64
68
  'capability': PermissionCapabilityToJSON(value['capability']),
65
69
  'created_at': value['createdAt'].toISOString(),
66
70
  'updated_at': value['updatedAt'].toISOString(),
@@ -21,7 +21,7 @@ export interface UpdatePermissionRequest {
21
21
  * @type {string}
22
22
  * @memberof UpdatePermissionRequest
23
23
  */
24
- path?: string;
24
+ pathPartId?: string;
25
25
  /**
26
26
  *
27
27
  * @type {PermissionCapability}
@@ -26,7 +26,7 @@ export function UpdatePermissionRequestFromJSONTyped(json, ignoreDiscriminator)
26
26
  return json;
27
27
  }
28
28
  return {
29
- 'path': json['path'] == null ? undefined : json['path'],
29
+ 'pathPartId': json['path_part_id'] == null ? undefined : json['path_part_id'],
30
30
  'capability': json['capability'] == null ? undefined : PermissionCapabilityFromJSON(json['capability']),
31
31
  };
32
32
  }
@@ -38,7 +38,7 @@ export function UpdatePermissionRequestToJSONTyped(value, ignoreDiscriminator =
38
38
  return value;
39
39
  }
40
40
  return {
41
- 'path': value['path'],
41
+ 'path_part_id': value['pathPartId'],
42
42
  'capability': PermissionCapabilityToJSON(value['capability']),
43
43
  };
44
44
  }
@@ -33,7 +33,7 @@ export interface CreatePermissionRequest {
33
33
  * @type {string}
34
34
  * @memberof CreatePermissionRequest
35
35
  */
36
- path: string;
36
+ pathPartId: string;
37
37
  /**
38
38
  *
39
39
  * @type {PermissionCapability}
@@ -28,7 +28,7 @@ function instanceOfCreatePermissionRequest(value) {
28
28
  return false;
29
29
  if (!('userId' in value) || value['userId'] === undefined)
30
30
  return false;
31
- if (!('path' in value) || value['path'] === undefined)
31
+ if (!('pathPartId' in value) || value['pathPartId'] === undefined)
32
32
  return false;
33
33
  if (!('capability' in value) || value['capability'] === undefined)
34
34
  return false;
@@ -44,7 +44,7 @@ function CreatePermissionRequestFromJSONTyped(json, ignoreDiscriminator) {
44
44
  return {
45
45
  'tenantId': json['tenant_id'],
46
46
  'userId': json['user_id'],
47
- 'path': json['path'],
47
+ 'pathPartId': json['path_part_id'],
48
48
  'capability': (0, PermissionCapability_1.PermissionCapabilityFromJSON)(json['capability']),
49
49
  };
50
50
  }
@@ -58,7 +58,7 @@ function CreatePermissionRequestToJSONTyped(value, ignoreDiscriminator = false)
58
58
  return {
59
59
  'tenant_id': value['tenantId'],
60
60
  'user_id': value['userId'],
61
- 'path': value['path'],
61
+ 'path_part_id': value['pathPartId'],
62
62
  'capability': (0, PermissionCapability_1.PermissionCapabilityToJSON)(value['capability']),
63
63
  };
64
64
  }
@@ -39,7 +39,13 @@ export interface PermissionResponse {
39
39
  * @type {string}
40
40
  * @memberof PermissionResponse
41
41
  */
42
- path: string;
42
+ pathPartId: string;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof PermissionResponse
47
+ */
48
+ materializedPath: string;
43
49
  /**
44
50
  *
45
51
  * @type {PermissionCapability}
@@ -30,7 +30,9 @@ function instanceOfPermissionResponse(value) {
30
30
  return false;
31
31
  if (!('userId' in value) || value['userId'] === undefined)
32
32
  return false;
33
- if (!('path' in value) || value['path'] === undefined)
33
+ if (!('pathPartId' in value) || value['pathPartId'] === undefined)
34
+ return false;
35
+ if (!('materializedPath' in value) || value['materializedPath'] === undefined)
34
36
  return false;
35
37
  if (!('capability' in value) || value['capability'] === undefined)
36
38
  return false;
@@ -51,7 +53,8 @@ function PermissionResponseFromJSONTyped(json, ignoreDiscriminator) {
51
53
  'id': json['id'],
52
54
  'tenantId': json['tenant_id'],
53
55
  'userId': json['user_id'],
54
- 'path': json['path'],
56
+ 'pathPartId': json['path_part_id'],
57
+ 'materializedPath': json['materialized_path'],
55
58
  'capability': (0, PermissionCapability_1.PermissionCapabilityFromJSON)(json['capability']),
56
59
  'createdAt': (new Date(json['created_at'])),
57
60
  'updatedAt': (new Date(json['updated_at'])),
@@ -68,7 +71,8 @@ function PermissionResponseToJSONTyped(value, ignoreDiscriminator = false) {
68
71
  'id': value['id'],
69
72
  'tenant_id': value['tenantId'],
70
73
  'user_id': value['userId'],
71
- 'path': value['path'],
74
+ 'path_part_id': value['pathPartId'],
75
+ 'materialized_path': value['materializedPath'],
72
76
  'capability': (0, PermissionCapability_1.PermissionCapabilityToJSON)(value['capability']),
73
77
  'created_at': value['createdAt'].toISOString(),
74
78
  'updated_at': value['updatedAt'].toISOString(),
@@ -21,7 +21,7 @@ export interface UpdatePermissionRequest {
21
21
  * @type {string}
22
22
  * @memberof UpdatePermissionRequest
23
23
  */
24
- path?: string;
24
+ pathPartId?: string;
25
25
  /**
26
26
  *
27
27
  * @type {PermissionCapability}
@@ -34,7 +34,7 @@ function UpdatePermissionRequestFromJSONTyped(json, ignoreDiscriminator) {
34
34
  return json;
35
35
  }
36
36
  return {
37
- 'path': json['path'] == null ? undefined : json['path'],
37
+ 'pathPartId': json['path_part_id'] == null ? undefined : json['path_part_id'],
38
38
  'capability': json['capability'] == null ? undefined : (0, PermissionCapability_1.PermissionCapabilityFromJSON)(json['capability']),
39
39
  };
40
40
  }
@@ -46,7 +46,7 @@ function UpdatePermissionRequestToJSONTyped(value, ignoreDiscriminator = false)
46
46
  return value;
47
47
  }
48
48
  return {
49
- 'path': value['path'],
49
+ 'path_part_id': value['pathPartId'],
50
50
  'capability': (0, PermissionCapability_1.PermissionCapabilityToJSON)(value['capability']),
51
51
  };
52
52
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knowledge-stack/ksapi",
3
- "version": "1.18.2",
3
+ "version": "1.19.0",
4
4
  "description": "OpenAPI client for @knowledge-stack/ksapi",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -44,7 +44,7 @@ export interface CreatePermissionRequest {
44
44
  * @type {string}
45
45
  * @memberof CreatePermissionRequest
46
46
  */
47
- path: string;
47
+ pathPartId: string;
48
48
  /**
49
49
  *
50
50
  * @type {PermissionCapability}
@@ -61,7 +61,7 @@ export interface CreatePermissionRequest {
61
61
  export function instanceOfCreatePermissionRequest(value: object): value is CreatePermissionRequest {
62
62
  if (!('tenantId' in value) || value['tenantId'] === undefined) return false;
63
63
  if (!('userId' in value) || value['userId'] === undefined) return false;
64
- if (!('path' in value) || value['path'] === undefined) return false;
64
+ if (!('pathPartId' in value) || value['pathPartId'] === undefined) return false;
65
65
  if (!('capability' in value) || value['capability'] === undefined) return false;
66
66
  return true;
67
67
  }
@@ -78,7 +78,7 @@ export function CreatePermissionRequestFromJSONTyped(json: any, ignoreDiscrimina
78
78
 
79
79
  'tenantId': json['tenant_id'],
80
80
  'userId': json['user_id'],
81
- 'path': json['path'],
81
+ 'pathPartId': json['path_part_id'],
82
82
  'capability': PermissionCapabilityFromJSON(json['capability']),
83
83
  };
84
84
  }
@@ -96,7 +96,7 @@ export function CreatePermissionRequestToJSONTyped(value?: CreatePermissionReque
96
96
 
97
97
  'tenant_id': value['tenantId'],
98
98
  'user_id': value['userId'],
99
- 'path': value['path'],
99
+ 'path_part_id': value['pathPartId'],
100
100
  'capability': PermissionCapabilityToJSON(value['capability']),
101
101
  };
102
102
  }
@@ -50,7 +50,13 @@ export interface PermissionResponse {
50
50
  * @type {string}
51
51
  * @memberof PermissionResponse
52
52
  */
53
- path: string;
53
+ pathPartId: string;
54
+ /**
55
+ *
56
+ * @type {string}
57
+ * @memberof PermissionResponse
58
+ */
59
+ materializedPath: string;
54
60
  /**
55
61
  *
56
62
  * @type {PermissionCapability}
@@ -80,7 +86,8 @@ export function instanceOfPermissionResponse(value: object): value is Permission
80
86
  if (!('id' in value) || value['id'] === undefined) return false;
81
87
  if (!('tenantId' in value) || value['tenantId'] === undefined) return false;
82
88
  if (!('userId' in value) || value['userId'] === undefined) return false;
83
- if (!('path' in value) || value['path'] === undefined) return false;
89
+ if (!('pathPartId' in value) || value['pathPartId'] === undefined) return false;
90
+ if (!('materializedPath' in value) || value['materializedPath'] === undefined) return false;
84
91
  if (!('capability' in value) || value['capability'] === undefined) return false;
85
92
  if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
86
93
  if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
@@ -100,7 +107,8 @@ export function PermissionResponseFromJSONTyped(json: any, ignoreDiscriminator:
100
107
  'id': json['id'],
101
108
  'tenantId': json['tenant_id'],
102
109
  'userId': json['user_id'],
103
- 'path': json['path'],
110
+ 'pathPartId': json['path_part_id'],
111
+ 'materializedPath': json['materialized_path'],
104
112
  'capability': PermissionCapabilityFromJSON(json['capability']),
105
113
  'createdAt': (new Date(json['created_at'])),
106
114
  'updatedAt': (new Date(json['updated_at'])),
@@ -121,7 +129,8 @@ export function PermissionResponseToJSONTyped(value?: PermissionResponse | null,
121
129
  'id': value['id'],
122
130
  'tenant_id': value['tenantId'],
123
131
  'user_id': value['userId'],
124
- 'path': value['path'],
132
+ 'path_part_id': value['pathPartId'],
133
+ 'materialized_path': value['materializedPath'],
125
134
  'capability': PermissionCapabilityToJSON(value['capability']),
126
135
  'created_at': value['createdAt'].toISOString(),
127
136
  'updated_at': value['updatedAt'].toISOString(),
@@ -32,7 +32,7 @@ export interface UpdatePermissionRequest {
32
32
  * @type {string}
33
33
  * @memberof UpdatePermissionRequest
34
34
  */
35
- path?: string;
35
+ pathPartId?: string;
36
36
  /**
37
37
  *
38
38
  * @type {PermissionCapability}
@@ -60,7 +60,7 @@ export function UpdatePermissionRequestFromJSONTyped(json: any, ignoreDiscrimina
60
60
  }
61
61
  return {
62
62
 
63
- 'path': json['path'] == null ? undefined : json['path'],
63
+ 'pathPartId': json['path_part_id'] == null ? undefined : json['path_part_id'],
64
64
  'capability': json['capability'] == null ? undefined : PermissionCapabilityFromJSON(json['capability']),
65
65
  };
66
66
  }
@@ -76,7 +76,7 @@ export function UpdatePermissionRequestToJSONTyped(value?: UpdatePermissionReque
76
76
 
77
77
  return {
78
78
 
79
- 'path': value['path'],
79
+ 'path_part_id': value['pathPartId'],
80
80
  'capability': PermissionCapabilityToJSON(value['capability']),
81
81
  };
82
82
  }