@heliyos/heliyos-api-core 1.0.21 → 1.0.23

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.
@@ -10,11 +10,11 @@ export declare const authentication: (req: Request, res: Response, next: NextFun
10
10
  export interface IAuthResponseApiKey {
11
11
  id: number;
12
12
  name?: string;
13
- customer_id?: string;
14
- location_ids: string[] | undefined;
13
+ customerId?: string;
14
+ locationIds: string[] | undefined;
15
15
  policy: IAuthResponseApiKeyPolicy[] | undefined;
16
- user_id: string;
17
- organization_id: string;
16
+ userId: string;
17
+ organizationId: string;
18
18
  }
19
19
  interface IAuthResponseApiKeyPolicy {
20
20
  resource: string;
@@ -41,8 +41,8 @@ const authentication = (req, res, next) => __awaiter(void 0, void 0, void 0, fun
41
41
  auth_type: undefined,
42
42
  },
43
43
  output: {
44
- is_basic_auth: false,
45
- is_api_key_auth: false,
44
+ isBasicAuth: false,
45
+ isApiKeyAuth: false,
46
46
  },
47
47
  };
48
48
  // Check for the type of authentication
@@ -51,7 +51,7 @@ const authentication = (req, res, next) => __awaiter(void 0, void 0, void 0, fun
51
51
  // Either of BASIC / COOKIE / BEARER
52
52
  const authenticationResponse = yield authenticate_request(container);
53
53
  if (authenticationResponse) {
54
- container.output.logged_in_user = authenticationResponse;
54
+ container.output.loggedInUser = authenticationResponse;
55
55
  }
56
56
  else {
57
57
  return res.status(401).json({
@@ -173,9 +173,9 @@ const authenticate_request = (container) => __awaiter(void 0, void 0, void 0, fu
173
173
  case "API_KEY":
174
174
  // Call API authorization server with api key
175
175
  result = yield verify_api_key(authentication_header.replace(/Bearer /, ""));
176
- // Set is_api_key_auth if there is a api key id
176
+ // Set isApiKeyAuth if there is a api key id
177
177
  if (result === null || result === void 0 ? void 0 : result.id) {
178
- container.output.is_api_key_auth = true;
178
+ container.output.isApiKeyAuth = true;
179
179
  }
180
180
  break;
181
181
  default:
@@ -203,8 +203,8 @@ const do_basic_auth = (container) => {
203
203
  error.status = "401";
204
204
  throw error;
205
205
  }
206
- // Set is_basic_auth
207
- container.output.is_basic_auth = true;
206
+ // Set isBasicAuth
207
+ container.output.isBasicAuth = true;
208
208
  // An empty object is returned because returning a falsy
209
209
  // object will means unauthorized.
210
210
  return {};
@@ -216,29 +216,29 @@ const do_basic_auth = (container) => {
216
216
  * @returns
217
217
  */
218
218
  const set_logged_in_user = function (container, req) {
219
- // If is_basic_auth, set it and return
220
- const { output: { is_basic_auth, is_api_key_auth }, input: { auth_type }, } = container;
221
- if (is_basic_auth) {
222
- req.is_basic_auth = is_basic_auth;
219
+ // If isBasicAuth, set it and return
220
+ const { output: { isBasicAuth, isApiKeyAuth }, input: { auth_type }, } = container;
221
+ if (isBasicAuth) {
222
+ req.isBasicAuth = isBasicAuth;
223
223
  return undefined;
224
224
  }
225
- // Set is_api_key_auth
226
- if (is_api_key_auth) {
227
- req.is_api_key_auth = is_api_key_auth;
228
- const { output: { logged_in_user }, } = container;
225
+ // Set isApiKeyAuth
226
+ if (isApiKeyAuth) {
227
+ req.isApiKeyAuth = isApiKeyAuth;
228
+ const { output: { loggedInUser }, } = container;
229
229
  // Modify req object with logged in user data
230
- req.logged_in_user = logged_in_user;
230
+ req.loggedInUser = loggedInUser;
231
231
  return undefined;
232
232
  }
233
233
  //
234
234
  // Handle Cookie and Bearer token
235
- const { output: { logged_in_user }, } = container;
236
- const { token, user_id, organization_id } = logged_in_user;
235
+ const { output: { loggedInUser }, } = container;
236
+ const { token, userId, organizationId } = loggedInUser;
237
237
  // Modify req object with logged in user data
238
- req.logged_in_user = {
238
+ req.loggedInUser = {
239
239
  token,
240
- user_id,
241
- organization_id,
240
+ userId,
241
+ organizationId,
242
242
  auth_type,
243
243
  };
244
244
  return undefined;
@@ -256,12 +256,12 @@ const call_auth_api_server = (token) => __awaiter(void 0, void 0, void 0, functi
256
256
  const auth_result = yield _1.axios.auth_server.post("/v1/auth/verify_token_v2", {
257
257
  token: token,
258
258
  });
259
- if ((_b = (_a = auth_result.data) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.is_valid) {
259
+ if ((_b = (_a = auth_result.data) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.isValid) {
260
260
  // Resolve request with received data
261
261
  return {
262
262
  token,
263
- user_id: auth_result.data.data.payload.user_id,
264
- organization_id: auth_result.data.data.payload.organization_id,
263
+ userId: auth_result.data.data.payload.userId,
264
+ organizationId: auth_result.data.data.payload.organizationId,
265
265
  };
266
266
  }
267
267
  else {
@@ -1,11 +1,11 @@
1
1
  /**
2
2
  * Authorize the user with the resource action
3
- * @param organization_id
4
- * @param user_id
5
- * @param resource_action
3
+ * @param organizationId
4
+ * @param userId
5
+ * @param resourceAction
6
6
  * @returns
7
7
  */
8
- export declare const authorize_user: <T = string, U = string>(organization_id: T, user_id: U, resource_action: string) => Promise<{
8
+ export declare const authorize_user: <T = string, U = string>(organizationId: T, userId: U, resourceAction: string) => Promise<{
9
9
  isAllowed: string;
10
10
  userRole: string;
11
11
  }>;
@@ -14,15 +14,15 @@ const customError_1 = require("./@types/globals/customError");
14
14
  const axios_1 = require("./axios");
15
15
  /**
16
16
  * Authorize the user with the resource action
17
- * @param organization_id
18
- * @param user_id
19
- * @param resource_action
17
+ * @param organizationId
18
+ * @param userId
19
+ * @param resourceAction
20
20
  * @returns
21
21
  */
22
22
  // eslint-disable-next-line import/prefer-default-export, @typescript-eslint/naming-convention
23
- const authorize_user = (organization_id, user_id, resource_action) => __awaiter(void 0, void 0, void 0, function* () {
23
+ const authorize_user = (organizationId, userId, resourceAction) => __awaiter(void 0, void 0, void 0, function* () {
24
24
  try {
25
- const authenticationResponse = yield axios_1.core_axios.auth_server.post(`v1/auth/user/${user_id}`, { resource_action: resource_action, organization_uuid: organization_id });
25
+ const authenticationResponse = yield axios_1.core_axios.auth_server.post(`v1/auth/user/${userId}`, { resourceAction, organizationId });
26
26
  return authenticationResponse.data.data;
27
27
  // eslint-disable-next-line @typescript-eslint/no-unsafe-return, @typescript-eslint/no-unsafe-member-access
28
28
  }
@@ -25,12 +25,6 @@ export type ResourcePolicyActionsType = {
25
25
  EDIT_ORGANIZATION: string;
26
26
  DELETE_ORGANIZATION: string;
27
27
  };
28
- ORG_USER: {
29
- ADD_ORG_USER: string;
30
- VIEW_ORG_USER: string;
31
- EDIT_ORG_USER: string;
32
- DELETE_ORG_USER: string;
33
- };
34
28
  API_KEY: {
35
29
  ADD_API_KEY: string;
36
30
  VIEW_API_KEY: string;
@@ -46,11 +40,5 @@ export type ResourcePolicyActionsType = {
46
40
  ROLES: {
47
41
  VIEW_ROLES: string;
48
42
  };
49
- BILLING_PLAN: {
50
- CREATE_BILLING_PLAN: string;
51
- VIEW_BILLING_PLAN: string;
52
- UPDATE_BILLING_PLAN: string;
53
- DELETE_BILLING_PLAN: string;
54
- };
55
43
  };
56
44
  export {};
@@ -17,12 +17,6 @@ exports.auth_policy = {
17
17
  EDIT_ORGANIZATION: "EDIT_ORGANIZATION",
18
18
  DELETE_ORGANIZATION: "DELETE_ORGANIZATION",
19
19
  },
20
- ORG_USER: {
21
- ADD_ORG_USER: "ORG_USER",
22
- VIEW_ORG_USER: "VIEW_ORG_USER",
23
- EDIT_ORG_USER: "EDIT_ORG_USER",
24
- DELETE_ORG_USER: "DELETE_ORG_USER",
25
- },
26
20
  API_KEY: {
27
21
  ADD_API_KEY: "ADD_API_KEY",
28
22
  VIEW_API_KEY: "VIEW_API_KEY",
@@ -38,21 +32,21 @@ exports.auth_policy = {
38
32
  ROLES: {
39
33
  VIEW_ROLES: "VIEW_ROLES",
40
34
  },
41
- BILLING_PLAN: {
42
- CREATE_BILLING_PLAN: "CREATE_BILLING_PLAN",
43
- VIEW_BILLING_PLAN: "VIEW_BILLING_PLAN",
44
- UPDATE_BILLING_PLAN: "UPDATE_BILLING_PLAN",
45
- DELETE_BILLING_PLAN: "DELETE_BILLING_PLAN",
46
- },
47
35
  },
48
36
  ROLES_PERMISSIONS: {
49
37
  TEAM_MEMBER: [
50
38
  "VIEW_USER",
51
39
  "EDIT_USER",
52
- "VIEW_ROLES",
53
40
  "VIEW_ORGANIZATION",
41
+ "EDIT_ORGANIZATION",
42
+ "ADD_API_KEY",
43
+ "VIEW_API_KEY",
44
+ "EDIT_API_KEY",
45
+ "DELETE_API_KEY",
46
+ "VIEW_ROLES",
54
47
  "VIEW_TEAM_MEMBERSHIP",
55
- "VIEW_ORG_USER",
48
+ "EDIT_TEAM_MEMBERSHIP",
49
+ "DELETE_TEAM_MEMBERSHIP",
56
50
  ],
57
51
  OWNER: [
58
52
  "ADD_USER",
@@ -63,41 +57,33 @@ exports.auth_policy = {
63
57
  "VIEW_ORGANIZATION",
64
58
  "EDIT_ORGANIZATION",
65
59
  "DELETE_ORGANIZATION",
66
- "ORG_USER",
67
- "VIEW_ORG_USER",
68
- "EDIT_ORG_USER",
69
- "DELETE_ORG_USER",
70
60
  "VIEW_API_KEY",
61
+ "ADD_API_KEY",
71
62
  "EDIT_API_KEY",
63
+ "DELETE_API_KEY",
72
64
  "VIEW_ROLES",
73
65
  "CREATE_TEAM_MEMBERSHIP",
74
66
  "DELETE_TEAM_MEMBERSHIP",
75
67
  "EDIT_TEAM_MEMBERSHIP",
76
68
  "VIEW_TEAM_MEMBERSHIP",
77
- "CREATE_BILLING_PLAN",
78
- "VIEW_BILLING_PLAN",
79
- "UPDATE_BILLING_PLAN",
80
- "DELETE_BILLING_PLAN",
81
69
  ],
82
70
  ADMIN: [
83
71
  "ADD_USER",
84
72
  "VIEW_USER",
85
73
  "EDIT_USER",
86
74
  "DELETE_USER",
75
+ "ADD_ORGANIZATION",
87
76
  "VIEW_ORGANIZATION",
88
- "VIEW_ORG_USER",
89
- "EDIT_ORG_USER",
77
+ "EDIT_ORGANIZATION",
90
78
  "VIEW_API_KEY",
79
+ "ADD_API_KEY",
91
80
  "EDIT_API_KEY",
81
+ "DELETE_API_KEY",
92
82
  "VIEW_ROLES",
93
83
  "CREATE_TEAM_MEMBERSHIP",
94
84
  "DELETE_TEAM_MEMBERSHIP",
95
85
  "EDIT_TEAM_MEMBERSHIP",
96
86
  "VIEW_TEAM_MEMBERSHIP",
97
- "CREATE_BILLING_PLAN",
98
- "VIEW_BILLING_PLAN",
99
- "UPDATE_BILLING_PLAN",
100
- "DELETE_BILLING_PLAN",
101
87
  ],
102
88
  STAFF: [
103
89
  "ADD_USER",
@@ -108,21 +94,15 @@ exports.auth_policy = {
108
94
  "VIEW_ORGANIZATION",
109
95
  "EDIT_ORGANIZATION",
110
96
  "DELETE_ORGANIZATION",
111
- "ORG_USER",
112
- "VIEW_ORG_USER",
113
- "EDIT_ORG_USER",
114
- "DELETE_ORG_USER",
115
97
  "VIEW_API_KEY",
98
+ "ADD_API_KEY",
116
99
  "EDIT_API_KEY",
100
+ "DELETE_API_KEY",
117
101
  "VIEW_ROLES",
118
102
  "CREATE_TEAM_MEMBERSHIP",
119
103
  "DELETE_TEAM_MEMBERSHIP",
120
104
  "EDIT_TEAM_MEMBERSHIP",
121
105
  "VIEW_TEAM_MEMBERSHIP",
122
- "CREATE_BILLING_PLAN",
123
- "VIEW_BILLING_PLAN",
124
- "UPDATE_BILLING_PLAN",
125
- "DELETE_BILLING_PLAN",
126
106
  ],
127
107
  SUPPORT: [
128
108
  "ADD_USER",
@@ -133,21 +113,15 @@ exports.auth_policy = {
133
113
  "VIEW_ORGANIZATION",
134
114
  "EDIT_ORGANIZATION",
135
115
  "DELETE_ORGANIZATION",
136
- "ORG_USER",
137
- "VIEW_ORG_USER",
138
- "EDIT_ORG_USER",
139
- "DELETE_ORG_USER",
140
116
  "VIEW_API_KEY",
117
+ "ADD_API_KEY",
141
118
  "EDIT_API_KEY",
119
+ "DELETE_API_KEY",
142
120
  "VIEW_ROLES",
143
121
  "CREATE_TEAM_MEMBERSHIP",
144
122
  "DELETE_TEAM_MEMBERSHIP",
145
123
  "EDIT_TEAM_MEMBERSHIP",
146
124
  "VIEW_TEAM_MEMBERSHIP",
147
- "CREATE_BILLING_PLAN",
148
- "VIEW_BILLING_PLAN",
149
- "UPDATE_BILLING_PLAN",
150
- "DELETE_BILLING_PLAN",
151
125
  ],
152
126
  SUPER_ADMIN: [
153
127
  "ADD_USER",
@@ -158,21 +132,15 @@ exports.auth_policy = {
158
132
  "VIEW_ORGANIZATION",
159
133
  "EDIT_ORGANIZATION",
160
134
  "DELETE_ORGANIZATION",
161
- "ORG_USER",
162
- "VIEW_ORG_USER",
163
- "EDIT_ORG_USER",
164
- "DELETE_ORG_USER",
165
135
  "VIEW_API_KEY",
136
+ "ADD_API_KEY",
166
137
  "EDIT_API_KEY",
138
+ "DELETE_API_KEY",
167
139
  "VIEW_ROLES",
168
140
  "CREATE_TEAM_MEMBERSHIP",
169
141
  "DELETE_TEAM_MEMBERSHIP",
170
142
  "EDIT_TEAM_MEMBERSHIP",
171
143
  "VIEW_TEAM_MEMBERSHIP",
172
- "CREATE_BILLING_PLAN",
173
- "VIEW_BILLING_PLAN",
174
- "UPDATE_BILLING_PLAN",
175
- "DELETE_BILLING_PLAN",
176
144
  ],
177
145
  },
178
146
  };
@@ -14,12 +14,6 @@ export const auth_policy: IAuthPolicy = {
14
14
  EDIT_ORGANIZATION: "EDIT_ORGANIZATION",
15
15
  DELETE_ORGANIZATION: "DELETE_ORGANIZATION",
16
16
  },
17
- ORG_USER: {
18
- ADD_ORG_USER: "ORG_USER",
19
- VIEW_ORG_USER: "VIEW_ORG_USER",
20
- EDIT_ORG_USER: "EDIT_ORG_USER",
21
- DELETE_ORG_USER: "DELETE_ORG_USER",
22
- },
23
17
  API_KEY: {
24
18
  ADD_API_KEY: "ADD_API_KEY",
25
19
  VIEW_API_KEY: "VIEW_API_KEY",
@@ -35,68 +29,63 @@ export const auth_policy: IAuthPolicy = {
35
29
  ROLES: {
36
30
  VIEW_ROLES: "VIEW_ROLES",
37
31
  },
38
- BILLING_PLAN: {
39
- CREATE_BILLING_PLAN: "CREATE_BILLING_PLAN",
40
- VIEW_BILLING_PLAN: "VIEW_BILLING_PLAN",
41
- UPDATE_BILLING_PLAN: "UPDATE_BILLING_PLAN",
42
- DELETE_BILLING_PLAN: "DELETE_BILLING_PLAN",
43
- },
44
32
  },
45
33
  ROLES_PERMISSIONS: {
46
34
  TEAM_MEMBER: [
47
35
  "VIEW_USER",
48
36
  "EDIT_USER",
49
- "VIEW_ROLES",
50
37
  "VIEW_ORGANIZATION",
38
+ "EDIT_ORGANIZATION",
39
+ "ADD_API_KEY",
40
+ "VIEW_API_KEY",
41
+ "EDIT_API_KEY",
42
+ "DELETE_API_KEY",
43
+ "VIEW_ROLES",
51
44
  "VIEW_TEAM_MEMBERSHIP",
52
- "VIEW_ORG_USER",
45
+ "EDIT_TEAM_MEMBERSHIP",
46
+ "DELETE_TEAM_MEMBERSHIP",
53
47
  ],
54
48
  OWNER: [
55
49
  "ADD_USER",
56
50
  "VIEW_USER",
57
51
  "EDIT_USER",
58
52
  "DELETE_USER",
53
+
59
54
  "ADD_ORGANIZATION",
60
55
  "VIEW_ORGANIZATION",
61
56
  "EDIT_ORGANIZATION",
62
57
  "DELETE_ORGANIZATION",
63
- "ORG_USER",
64
- "VIEW_ORG_USER",
65
- "EDIT_ORG_USER",
66
- "DELETE_ORG_USER",
58
+
67
59
  "VIEW_API_KEY",
60
+ "ADD_API_KEY",
68
61
  "EDIT_API_KEY",
62
+ "DELETE_API_KEY",
69
63
  "VIEW_ROLES",
70
64
 
71
65
  "CREATE_TEAM_MEMBERSHIP",
72
66
  "DELETE_TEAM_MEMBERSHIP",
73
67
  "EDIT_TEAM_MEMBERSHIP",
74
68
  "VIEW_TEAM_MEMBERSHIP",
75
- "CREATE_BILLING_PLAN",
76
- "VIEW_BILLING_PLAN",
77
- "UPDATE_BILLING_PLAN",
78
- "DELETE_BILLING_PLAN",
79
69
  ],
80
70
  ADMIN: [
81
71
  "ADD_USER",
82
72
  "VIEW_USER",
83
73
  "EDIT_USER",
84
74
  "DELETE_USER",
75
+ "ADD_ORGANIZATION",
85
76
  "VIEW_ORGANIZATION",
86
- "VIEW_ORG_USER",
87
- "EDIT_ORG_USER",
77
+ "EDIT_ORGANIZATION",
78
+
88
79
  "VIEW_API_KEY",
80
+ "ADD_API_KEY",
89
81
  "EDIT_API_KEY",
82
+ "DELETE_API_KEY",
90
83
  "VIEW_ROLES",
91
84
 
92
85
  "CREATE_TEAM_MEMBERSHIP",
93
86
  "DELETE_TEAM_MEMBERSHIP",
94
87
  "EDIT_TEAM_MEMBERSHIP",
95
88
  "VIEW_TEAM_MEMBERSHIP",
96
- "CREATE_BILLING_PLAN",
97
- "VIEW_BILLING_PLAN",
98
- "UPDATE_BILLING_PLAN",
99
- "DELETE_BILLING_PLAN",
100
89
  ],
101
90
  STAFF: [
102
91
  "ADD_USER",
@@ -107,22 +96,17 @@ export const auth_policy: IAuthPolicy = {
107
96
  "VIEW_ORGANIZATION",
108
97
  "EDIT_ORGANIZATION",
109
98
  "DELETE_ORGANIZATION",
110
- "ORG_USER",
111
- "VIEW_ORG_USER",
112
- "EDIT_ORG_USER",
113
- "DELETE_ORG_USER",
99
+
114
100
  "VIEW_API_KEY",
101
+ "ADD_API_KEY",
115
102
  "EDIT_API_KEY",
103
+ "DELETE_API_KEY",
116
104
  "VIEW_ROLES",
117
105
 
118
106
  "CREATE_TEAM_MEMBERSHIP",
119
107
  "DELETE_TEAM_MEMBERSHIP",
120
108
  "EDIT_TEAM_MEMBERSHIP",
121
109
  "VIEW_TEAM_MEMBERSHIP",
122
- "CREATE_BILLING_PLAN",
123
- "VIEW_BILLING_PLAN",
124
- "UPDATE_BILLING_PLAN",
125
- "DELETE_BILLING_PLAN",
126
110
  ],
127
111
  SUPPORT: [
128
112
  "ADD_USER",
@@ -133,22 +117,17 @@ export const auth_policy: IAuthPolicy = {
133
117
  "VIEW_ORGANIZATION",
134
118
  "EDIT_ORGANIZATION",
135
119
  "DELETE_ORGANIZATION",
136
- "ORG_USER",
137
- "VIEW_ORG_USER",
138
- "EDIT_ORG_USER",
139
- "DELETE_ORG_USER",
120
+
140
121
  "VIEW_API_KEY",
122
+ "ADD_API_KEY",
141
123
  "EDIT_API_KEY",
124
+ "DELETE_API_KEY",
142
125
  "VIEW_ROLES",
143
126
 
144
127
  "CREATE_TEAM_MEMBERSHIP",
145
128
  "DELETE_TEAM_MEMBERSHIP",
146
129
  "EDIT_TEAM_MEMBERSHIP",
147
130
  "VIEW_TEAM_MEMBERSHIP",
148
- "CREATE_BILLING_PLAN",
149
- "VIEW_BILLING_PLAN",
150
- "UPDATE_BILLING_PLAN",
151
- "DELETE_BILLING_PLAN",
152
131
  ],
153
132
  SUPER_ADMIN: [
154
133
  "ADD_USER",
@@ -159,22 +138,17 @@ export const auth_policy: IAuthPolicy = {
159
138
  "VIEW_ORGANIZATION",
160
139
  "EDIT_ORGANIZATION",
161
140
  "DELETE_ORGANIZATION",
162
- "ORG_USER",
163
- "VIEW_ORG_USER",
164
- "EDIT_ORG_USER",
165
- "DELETE_ORG_USER",
141
+
166
142
  "VIEW_API_KEY",
143
+ "ADD_API_KEY",
167
144
  "EDIT_API_KEY",
145
+ "DELETE_API_KEY",
168
146
  "VIEW_ROLES",
169
147
 
170
148
  "CREATE_TEAM_MEMBERSHIP",
171
149
  "DELETE_TEAM_MEMBERSHIP",
172
150
  "EDIT_TEAM_MEMBERSHIP",
173
151
  "VIEW_TEAM_MEMBERSHIP",
174
- "CREATE_BILLING_PLAN",
175
- "VIEW_BILLING_PLAN",
176
- "UPDATE_BILLING_PLAN",
177
- "DELETE_BILLING_PLAN",
178
152
  ],
179
153
  },
180
154
  };
@@ -207,12 +181,6 @@ export type ResourcePolicyActionsType = {
207
181
  EDIT_ORGANIZATION: string;
208
182
  DELETE_ORGANIZATION: string;
209
183
  };
210
- ORG_USER: {
211
- ADD_ORG_USER: string;
212
- VIEW_ORG_USER: string;
213
- EDIT_ORG_USER: string;
214
- DELETE_ORG_USER: string;
215
- };
216
184
  API_KEY: {
217
185
  ADD_API_KEY: string;
218
186
  VIEW_API_KEY: string;
@@ -228,10 +196,4 @@ export type ResourcePolicyActionsType = {
228
196
  ROLES: {
229
197
  VIEW_ROLES: string;
230
198
  };
231
- BILLING_PLAN: {
232
- CREATE_BILLING_PLAN: string;
233
- VIEW_BILLING_PLAN: string;
234
- UPDATE_BILLING_PLAN: string;
235
- DELETE_BILLING_PLAN: string;
236
- };
237
199
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@heliyos/heliyos-api-core",
3
- "version": "1.0.21",
3
+ "version": "1.0.23",
4
4
  "description": "Heliyos's core api functions and middlewares. Its a private package hosted on npm.",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {