@ibiliaze/global-vars 1.136.0 → 1.137.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.
@@ -3,64 +3,186 @@ export declare const adminRoleDefs: readonly [{
3
3
  readonly path: "/admin";
4
4
  readonly role: "postAdminRegister";
5
5
  readonly name: "Register admin";
6
+ readonly response_201: {
7
+ message: string;
8
+ };
9
+ readonly response_400: {
10
+ message: string;
11
+ };
12
+ readonly response_500: {
13
+ message: string;
14
+ error: string;
15
+ };
6
16
  }, {
7
17
  readonly method: "post";
8
18
  readonly path: "/admin/token";
9
19
  readonly role: "postAdminToken";
10
20
  readonly name: "Login admin";
21
+ readonly response_200: {
22
+ admin: any;
23
+ message: string;
24
+ };
25
+ readonly response_401: {
26
+ message: string;
27
+ error: string;
28
+ };
11
29
  }, {
12
30
  readonly method: "post";
13
31
  readonly path: "/admin/google/backup";
14
32
  readonly role: "postAdminGoogleBackup";
15
33
  readonly name: "Google backup";
34
+ readonly response_200: {
35
+ message: string;
36
+ };
37
+ readonly response_400: {
38
+ message: string;
39
+ };
40
+ readonly response_500: {
41
+ message: string;
42
+ error: string;
43
+ };
16
44
  }, {
17
45
  readonly method: "post";
18
46
  readonly path: "/admin/google/backup/restore";
19
47
  readonly role: "postAdminGoogleBackupRestore";
20
48
  readonly name: "Restore Google backup";
49
+ readonly response_200: {
50
+ message: string;
51
+ };
52
+ readonly response_400: {
53
+ message: string;
54
+ };
55
+ readonly response_500: {
56
+ message: string;
57
+ error: string;
58
+ };
21
59
  }, {
22
60
  readonly method: "post";
23
61
  readonly path: "/admin/logout";
24
62
  readonly role: "postAdminLogout";
25
63
  readonly name: "Logout admin";
64
+ readonly response_200: {
65
+ admin: any;
66
+ message: string;
67
+ };
68
+ readonly response_500: {
69
+ message: string;
70
+ error: string;
71
+ };
26
72
  }, {
27
73
  readonly method: "post";
28
74
  readonly path: "/admin/logout/all";
29
75
  readonly role: "postAdminLogoutAll";
30
76
  readonly name: "Logout all sessions";
77
+ readonly response_200: {
78
+ admin: any;
79
+ message: string;
80
+ };
81
+ readonly response_500: {
82
+ message: string;
83
+ error: string;
84
+ };
31
85
  }, {
32
86
  readonly method: "post";
33
87
  readonly path: "/admin/logout/:id";
34
88
  readonly role: "postAdminLogoutBySessionId";
35
89
  readonly name: "Logout session by ID";
90
+ readonly response_200: {
91
+ admin: any;
92
+ message: string;
93
+ };
94
+ readonly response_500: {
95
+ message: string;
96
+ error: string;
97
+ };
36
98
  }, {
37
99
  readonly method: "get";
38
100
  readonly path: "/admin";
39
101
  readonly role: "getAdmin";
40
102
  readonly name: "Get admin";
103
+ readonly response_200: {
104
+ admin: any;
105
+ };
106
+ readonly response_500: {
107
+ message: string;
108
+ error: string;
109
+ };
41
110
  }, {
42
111
  readonly method: "get";
43
112
  readonly path: "/admin/exists/:email";
44
113
  readonly role: "getAdminExistsByEmail";
45
114
  readonly name: "Check admin exists by email";
115
+ readonly response_200: Record<string, never>;
116
+ readonly response_409: {
117
+ message: string;
118
+ };
119
+ readonly response_500: {
120
+ message: string;
121
+ error: string;
122
+ };
46
123
  }, {
47
124
  readonly method: "get";
48
125
  readonly path: "/admin/public";
49
126
  readonly role: "getAdminPublic";
50
127
  readonly name: "Get public admin";
128
+ readonly response_200: {
129
+ admin: Partial<any>;
130
+ };
131
+ readonly response_400: {
132
+ message: string;
133
+ };
134
+ readonly response_404: {
135
+ message: string;
136
+ };
137
+ readonly response_500: {
138
+ message: string;
139
+ error: string;
140
+ };
51
141
  }, {
52
142
  readonly method: "put";
53
143
  readonly path: "/admin";
54
144
  readonly role: "putAdmin";
55
145
  readonly name: "Update admin";
146
+ readonly response_200: {
147
+ admin: any;
148
+ message: string;
149
+ };
150
+ readonly response_404: {
151
+ admin: any | null;
152
+ message: string;
153
+ };
154
+ readonly response_500: {
155
+ message: string;
156
+ error: string;
157
+ };
56
158
  }, {
57
159
  readonly method: "put";
58
160
  readonly path: "/admin/password";
59
161
  readonly role: "putAdminPassword";
60
162
  readonly name: "Update admin password";
163
+ readonly response_200: {
164
+ admin: any;
165
+ message: string;
166
+ };
167
+ readonly response_404: {
168
+ admin: any | null;
169
+ message: string;
170
+ };
171
+ readonly response_500: {
172
+ message: string;
173
+ error: string;
174
+ };
61
175
  }, {
62
176
  readonly method: "delete";
63
177
  readonly path: "/admin";
64
178
  readonly role: "deleteAdmin";
65
179
  readonly name: "Delete admin";
180
+ readonly response_200: {
181
+ admin: any;
182
+ message: string;
183
+ };
184
+ readonly response_500: {
185
+ message: string;
186
+ error: string;
187
+ };
66
188
  }];
@@ -2,27 +2,129 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.adminRoleDefs = void 0;
4
4
  exports.adminRoleDefs = [
5
- { method: 'post', path: '/admin', role: 'postAdminRegister', name: 'Register admin' },
6
- { method: 'post', path: '/admin/token', role: 'postAdminToken', name: 'Login admin' },
7
- { method: 'post', path: '/admin/google/backup', role: 'postAdminGoogleBackup', name: 'Google backup' },
5
+ // POST /admin register
6
+ {
7
+ method: 'post',
8
+ path: '/admin',
9
+ role: 'postAdminRegister',
10
+ name: 'Register admin',
11
+ response_201: {},
12
+ response_400: {}, // "Account is already registered"
13
+ response_500: {},
14
+ },
15
+ // POST /admin/token – login
16
+ {
17
+ method: 'post',
18
+ path: '/admin/token',
19
+ role: 'postAdminToken',
20
+ name: 'Login admin',
21
+ response_200: {},
22
+ response_401: {},
23
+ },
24
+ // POST /admin/google/backup
25
+ {
26
+ method: 'post',
27
+ path: '/admin/google/backup',
28
+ role: 'postAdminGoogleBackup',
29
+ name: 'Google backup',
30
+ response_200: {},
31
+ response_400: {}, // error from backup()
32
+ response_500: {},
33
+ },
34
+ // POST /admin/google/backup/restore
8
35
  {
9
36
  method: 'post',
10
37
  path: '/admin/google/backup/restore',
11
38
  role: 'postAdminGoogleBackupRestore',
12
39
  name: 'Restore Google backup',
40
+ response_200: {},
41
+ response_400: {},
42
+ response_500: {},
43
+ },
44
+ // POST /admin/logout
45
+ {
46
+ method: 'post',
47
+ path: '/admin/logout',
48
+ role: 'postAdminLogout',
49
+ name: 'Logout admin',
50
+ response_200: {},
51
+ response_500: {},
52
+ },
53
+ // POST /admin/logout/all
54
+ {
55
+ method: 'post',
56
+ path: '/admin/logout/all',
57
+ role: 'postAdminLogoutAll',
58
+ name: 'Logout all sessions',
59
+ response_200: {},
60
+ response_500: {},
13
61
  },
14
- { method: 'post', path: '/admin/logout', role: 'postAdminLogout', name: 'Logout admin' },
15
- { method: 'post', path: '/admin/logout/all', role: 'postAdminLogoutAll', name: 'Logout all sessions' },
16
- { method: 'post', path: '/admin/logout/:id', role: 'postAdminLogoutBySessionId', name: 'Logout session by ID' },
17
- { method: 'get', path: '/admin', role: 'getAdmin', name: 'Get admin' },
62
+ // POST /admin/logout/:id
63
+ {
64
+ method: 'post',
65
+ path: '/admin/logout/:id',
66
+ role: 'postAdminLogoutBySessionId',
67
+ name: 'Logout session by ID',
68
+ response_200: {},
69
+ response_500: {},
70
+ },
71
+ // GET /admin – get current admin
72
+ {
73
+ method: 'get',
74
+ path: '/admin',
75
+ role: 'getAdmin',
76
+ name: 'Get admin',
77
+ response_200: {},
78
+ response_500: {},
79
+ },
80
+ // GET /admin/exists/:email
18
81
  {
19
82
  method: 'get',
20
83
  path: '/admin/exists/:email',
21
84
  role: 'getAdminExistsByEmail',
22
85
  name: 'Check admin exists by email',
86
+ response_200: {}, // empty body on 200
87
+ response_409: {},
88
+ response_500: {},
89
+ },
90
+ // GET /admin/public
91
+ {
92
+ method: 'get',
93
+ path: '/admin/public',
94
+ role: 'getAdminPublic',
95
+ name: 'Get public admin',
96
+ response_200: {},
97
+ response_400: {}, // "Invalid select"
98
+ response_404: {}, // "No account found"
99
+ response_500: {},
100
+ },
101
+ // PUT /admin – update admin
102
+ {
103
+ method: 'put',
104
+ path: '/admin',
105
+ role: 'putAdmin',
106
+ name: 'Update admin',
107
+ response_200: {},
108
+ response_404: {},
109
+ response_500: {},
110
+ },
111
+ // PUT /admin/password – update password
112
+ {
113
+ method: 'put',
114
+ path: '/admin/password',
115
+ role: 'putAdminPassword',
116
+ name: 'Update admin password',
117
+ response_200: {},
118
+ response_404: {},
119
+ response_500: {},
120
+ },
121
+ // DELETE /admin – delete account
122
+ {
123
+ method: 'delete',
124
+ path: '/admin',
125
+ role: 'deleteAdmin',
126
+ name: 'Delete admin',
127
+ response_200: {},
128
+ response_500: {},
23
129
  },
24
- { method: 'get', path: '/admin/public', role: 'getAdminPublic', name: 'Get public admin' },
25
- { method: 'put', path: '/admin', role: 'putAdmin', name: 'Update admin' },
26
- { method: 'put', path: '/admin/password', role: 'putAdminPassword', name: 'Update admin password' },
27
- { method: 'delete', path: '/admin', role: 'deleteAdmin', name: 'Delete admin' },
28
130
  ];
@@ -1,5 +1,5 @@
1
1
  type MethodKey = 'get' | 'post' | 'put' | 'delete';
2
- export type ApiRoute<R200 = unknown, R201 = unknown, R302 = unknown, R400 = unknown, R401 = unknown, R403 = unknown, R404 = unknown, R500 = unknown> = {
2
+ export type ApiRoute<R200 = unknown, R201 = unknown, R302 = unknown, R400 = unknown, R401 = unknown, R403 = unknown, R404 = unknown, R409 = unknown, R500 = unknown> = {
3
3
  method: MethodKey;
4
4
  path: string;
5
5
  role: string;
@@ -11,6 +11,7 @@ export type ApiRoute<R200 = unknown, R201 = unknown, R302 = unknown, R400 = unkn
11
11
  response_401?: R401;
12
12
  response_403?: R403;
13
13
  response_404?: R404;
14
+ response_409?: R409;
14
15
  response_500?: R500;
15
16
  };
16
17
  type ApiGroups = Record<string, ApiRoute[]>;
@@ -125,66 +126,188 @@ export declare const apis: <TId, TDate>() => readonly [{
125
126
  readonly path: "/admin";
126
127
  readonly role: "postAdminRegister";
127
128
  readonly name: "Register admin";
129
+ readonly response_201: {
130
+ message: string;
131
+ };
132
+ readonly response_400: {
133
+ message: string;
134
+ };
135
+ readonly response_500: {
136
+ message: string;
137
+ error: string;
138
+ };
128
139
  }, {
129
140
  readonly method: "post";
130
141
  readonly path: "/admin/token";
131
142
  readonly role: "postAdminToken";
132
143
  readonly name: "Login admin";
144
+ readonly response_200: {
145
+ admin: any;
146
+ message: string;
147
+ };
148
+ readonly response_401: {
149
+ message: string;
150
+ error: string;
151
+ };
133
152
  }, {
134
153
  readonly method: "post";
135
154
  readonly path: "/admin/google/backup";
136
155
  readonly role: "postAdminGoogleBackup";
137
156
  readonly name: "Google backup";
157
+ readonly response_200: {
158
+ message: string;
159
+ };
160
+ readonly response_400: {
161
+ message: string;
162
+ };
163
+ readonly response_500: {
164
+ message: string;
165
+ error: string;
166
+ };
138
167
  }, {
139
168
  readonly method: "post";
140
169
  readonly path: "/admin/google/backup/restore";
141
170
  readonly role: "postAdminGoogleBackupRestore";
142
171
  readonly name: "Restore Google backup";
172
+ readonly response_200: {
173
+ message: string;
174
+ };
175
+ readonly response_400: {
176
+ message: string;
177
+ };
178
+ readonly response_500: {
179
+ message: string;
180
+ error: string;
181
+ };
143
182
  }, {
144
183
  readonly method: "post";
145
184
  readonly path: "/admin/logout";
146
185
  readonly role: "postAdminLogout";
147
186
  readonly name: "Logout admin";
187
+ readonly response_200: {
188
+ admin: any;
189
+ message: string;
190
+ };
191
+ readonly response_500: {
192
+ message: string;
193
+ error: string;
194
+ };
148
195
  }, {
149
196
  readonly method: "post";
150
197
  readonly path: "/admin/logout/all";
151
198
  readonly role: "postAdminLogoutAll";
152
199
  readonly name: "Logout all sessions";
200
+ readonly response_200: {
201
+ admin: any;
202
+ message: string;
203
+ };
204
+ readonly response_500: {
205
+ message: string;
206
+ error: string;
207
+ };
153
208
  }, {
154
209
  readonly method: "post";
155
210
  readonly path: "/admin/logout/:id";
156
211
  readonly role: "postAdminLogoutBySessionId";
157
212
  readonly name: "Logout session by ID";
213
+ readonly response_200: {
214
+ admin: any;
215
+ message: string;
216
+ };
217
+ readonly response_500: {
218
+ message: string;
219
+ error: string;
220
+ };
158
221
  }, {
159
222
  readonly method: "get";
160
223
  readonly path: "/admin";
161
224
  readonly role: "getAdmin";
162
225
  readonly name: "Get admin";
226
+ readonly response_200: {
227
+ admin: any;
228
+ };
229
+ readonly response_500: {
230
+ message: string;
231
+ error: string;
232
+ };
163
233
  }, {
164
234
  readonly method: "get";
165
235
  readonly path: "/admin/exists/:email";
166
236
  readonly role: "getAdminExistsByEmail";
167
237
  readonly name: "Check admin exists by email";
238
+ readonly response_200: Record<string, never>;
239
+ readonly response_409: {
240
+ message: string;
241
+ };
242
+ readonly response_500: {
243
+ message: string;
244
+ error: string;
245
+ };
168
246
  }, {
169
247
  readonly method: "get";
170
248
  readonly path: "/admin/public";
171
249
  readonly role: "getAdminPublic";
172
250
  readonly name: "Get public admin";
251
+ readonly response_200: {
252
+ admin: Partial<any>;
253
+ };
254
+ readonly response_400: {
255
+ message: string;
256
+ };
257
+ readonly response_404: {
258
+ message: string;
259
+ };
260
+ readonly response_500: {
261
+ message: string;
262
+ error: string;
263
+ };
173
264
  }, {
174
265
  readonly method: "put";
175
266
  readonly path: "/admin";
176
267
  readonly role: "putAdmin";
177
268
  readonly name: "Update admin";
269
+ readonly response_200: {
270
+ admin: any;
271
+ message: string;
272
+ };
273
+ readonly response_404: {
274
+ admin: any | null;
275
+ message: string;
276
+ };
277
+ readonly response_500: {
278
+ message: string;
279
+ error: string;
280
+ };
178
281
  }, {
179
282
  readonly method: "put";
180
283
  readonly path: "/admin/password";
181
284
  readonly role: "putAdminPassword";
182
285
  readonly name: "Update admin password";
286
+ readonly response_200: {
287
+ admin: any;
288
+ message: string;
289
+ };
290
+ readonly response_404: {
291
+ admin: any | null;
292
+ message: string;
293
+ };
294
+ readonly response_500: {
295
+ message: string;
296
+ error: string;
297
+ };
183
298
  }, {
184
299
  readonly method: "delete";
185
300
  readonly path: "/admin";
186
301
  readonly role: "deleteAdmin";
187
302
  readonly name: "Delete admin";
303
+ readonly response_200: {
304
+ admin: any;
305
+ message: string;
306
+ };
307
+ readonly response_500: {
308
+ message: string;
309
+ error: string;
310
+ };
188
311
  }, {
189
312
  readonly method: "post";
190
313
  readonly path: "/blog";
@@ -980,11 +1103,6 @@ export declare const apis: <TId, TDate>() => readonly [{
980
1103
  readonly path: "/user/:id";
981
1104
  readonly role: "deleteUserById";
982
1105
  readonly name: "Delete user by ID";
983
- }, {
984
- readonly method: "post";
985
- readonly path: "/util/ai-generate";
986
- readonly role: "postUtilAiGenerate";
987
- readonly name: "Generate with AI";
988
1106
  }, {
989
1107
  readonly method: "post";
990
1108
  readonly path: "/checkout/create-session";
@@ -1133,66 +1251,188 @@ declare const allApis: readonly [{
1133
1251
  readonly path: "/admin";
1134
1252
  readonly role: "postAdminRegister";
1135
1253
  readonly name: "Register admin";
1254
+ readonly response_201: {
1255
+ message: string;
1256
+ };
1257
+ readonly response_400: {
1258
+ message: string;
1259
+ };
1260
+ readonly response_500: {
1261
+ message: string;
1262
+ error: string;
1263
+ };
1136
1264
  }, {
1137
1265
  readonly method: "post";
1138
1266
  readonly path: "/admin/token";
1139
1267
  readonly role: "postAdminToken";
1140
1268
  readonly name: "Login admin";
1269
+ readonly response_200: {
1270
+ admin: any;
1271
+ message: string;
1272
+ };
1273
+ readonly response_401: {
1274
+ message: string;
1275
+ error: string;
1276
+ };
1141
1277
  }, {
1142
1278
  readonly method: "post";
1143
1279
  readonly path: "/admin/google/backup";
1144
1280
  readonly role: "postAdminGoogleBackup";
1145
1281
  readonly name: "Google backup";
1282
+ readonly response_200: {
1283
+ message: string;
1284
+ };
1285
+ readonly response_400: {
1286
+ message: string;
1287
+ };
1288
+ readonly response_500: {
1289
+ message: string;
1290
+ error: string;
1291
+ };
1146
1292
  }, {
1147
1293
  readonly method: "post";
1148
1294
  readonly path: "/admin/google/backup/restore";
1149
1295
  readonly role: "postAdminGoogleBackupRestore";
1150
1296
  readonly name: "Restore Google backup";
1297
+ readonly response_200: {
1298
+ message: string;
1299
+ };
1300
+ readonly response_400: {
1301
+ message: string;
1302
+ };
1303
+ readonly response_500: {
1304
+ message: string;
1305
+ error: string;
1306
+ };
1151
1307
  }, {
1152
1308
  readonly method: "post";
1153
1309
  readonly path: "/admin/logout";
1154
1310
  readonly role: "postAdminLogout";
1155
1311
  readonly name: "Logout admin";
1312
+ readonly response_200: {
1313
+ admin: any;
1314
+ message: string;
1315
+ };
1316
+ readonly response_500: {
1317
+ message: string;
1318
+ error: string;
1319
+ };
1156
1320
  }, {
1157
1321
  readonly method: "post";
1158
1322
  readonly path: "/admin/logout/all";
1159
1323
  readonly role: "postAdminLogoutAll";
1160
1324
  readonly name: "Logout all sessions";
1325
+ readonly response_200: {
1326
+ admin: any;
1327
+ message: string;
1328
+ };
1329
+ readonly response_500: {
1330
+ message: string;
1331
+ error: string;
1332
+ };
1161
1333
  }, {
1162
1334
  readonly method: "post";
1163
1335
  readonly path: "/admin/logout/:id";
1164
1336
  readonly role: "postAdminLogoutBySessionId";
1165
1337
  readonly name: "Logout session by ID";
1338
+ readonly response_200: {
1339
+ admin: any;
1340
+ message: string;
1341
+ };
1342
+ readonly response_500: {
1343
+ message: string;
1344
+ error: string;
1345
+ };
1166
1346
  }, {
1167
1347
  readonly method: "get";
1168
1348
  readonly path: "/admin";
1169
1349
  readonly role: "getAdmin";
1170
1350
  readonly name: "Get admin";
1351
+ readonly response_200: {
1352
+ admin: any;
1353
+ };
1354
+ readonly response_500: {
1355
+ message: string;
1356
+ error: string;
1357
+ };
1171
1358
  }, {
1172
1359
  readonly method: "get";
1173
1360
  readonly path: "/admin/exists/:email";
1174
1361
  readonly role: "getAdminExistsByEmail";
1175
1362
  readonly name: "Check admin exists by email";
1363
+ readonly response_200: Record<string, never>;
1364
+ readonly response_409: {
1365
+ message: string;
1366
+ };
1367
+ readonly response_500: {
1368
+ message: string;
1369
+ error: string;
1370
+ };
1176
1371
  }, {
1177
1372
  readonly method: "get";
1178
1373
  readonly path: "/admin/public";
1179
1374
  readonly role: "getAdminPublic";
1180
1375
  readonly name: "Get public admin";
1376
+ readonly response_200: {
1377
+ admin: Partial<any>;
1378
+ };
1379
+ readonly response_400: {
1380
+ message: string;
1381
+ };
1382
+ readonly response_404: {
1383
+ message: string;
1384
+ };
1385
+ readonly response_500: {
1386
+ message: string;
1387
+ error: string;
1388
+ };
1181
1389
  }, {
1182
1390
  readonly method: "put";
1183
1391
  readonly path: "/admin";
1184
1392
  readonly role: "putAdmin";
1185
1393
  readonly name: "Update admin";
1394
+ readonly response_200: {
1395
+ admin: any;
1396
+ message: string;
1397
+ };
1398
+ readonly response_404: {
1399
+ admin: any | null;
1400
+ message: string;
1401
+ };
1402
+ readonly response_500: {
1403
+ message: string;
1404
+ error: string;
1405
+ };
1186
1406
  }, {
1187
1407
  readonly method: "put";
1188
1408
  readonly path: "/admin/password";
1189
1409
  readonly role: "putAdminPassword";
1190
1410
  readonly name: "Update admin password";
1411
+ readonly response_200: {
1412
+ admin: any;
1413
+ message: string;
1414
+ };
1415
+ readonly response_404: {
1416
+ admin: any | null;
1417
+ message: string;
1418
+ };
1419
+ readonly response_500: {
1420
+ message: string;
1421
+ error: string;
1422
+ };
1191
1423
  }, {
1192
1424
  readonly method: "delete";
1193
1425
  readonly path: "/admin";
1194
1426
  readonly role: "deleteAdmin";
1195
1427
  readonly name: "Delete admin";
1428
+ readonly response_200: {
1429
+ admin: any;
1430
+ message: string;
1431
+ };
1432
+ readonly response_500: {
1433
+ message: string;
1434
+ error: string;
1435
+ };
1196
1436
  }, {
1197
1437
  readonly method: "post";
1198
1438
  readonly path: "/blog";
@@ -1988,11 +2228,6 @@ declare const allApis: readonly [{
1988
2228
  readonly path: "/user/:id";
1989
2229
  readonly role: "deleteUserById";
1990
2230
  readonly name: "Delete user by ID";
1991
- }, {
1992
- readonly method: "post";
1993
- readonly path: "/util/ai-generate";
1994
- readonly role: "postUtilAiGenerate";
1995
- readonly name: "Generate with AI";
1996
2231
  }, {
1997
2232
  readonly method: "post";
1998
2233
  readonly path: "/checkout/create-session";
@@ -26,7 +26,6 @@ const seat_1 = require("./roles/seat");
26
26
  const section_1 = require("./roles/section");
27
27
  const staff_1 = require("./roles/staff");
28
28
  const user_1 = require("./roles/user");
29
- const ai_1 = require("./roles/ai");
30
29
  const checkout_1 = require("./roles/checkout");
31
30
  const file_1 = require("./roles/file");
32
31
  const google_1 = require("./roles/google");
@@ -72,7 +71,6 @@ const apis = () => [
72
71
  ...staff_1.staffRoleDefs,
73
72
  ...user_1.userRoleDefs,
74
73
  // Util routes
75
- ...ai_1.aiRoleDefs,
76
74
  ...checkout_1.checkoutRoleDefs,
77
75
  ...file_1.fileRoleDefs,
78
76
  ...google_1.googleRoleDefs,
@@ -113,7 +111,6 @@ const allApis = [
113
111
  ...section_1.sectionRoleDefs,
114
112
  ...staff_1.staffRoleDefs,
115
113
  ...user_1.userRoleDefs,
116
- ...ai_1.aiRoleDefs,
117
114
  ...checkout_1.checkoutRoleDefs,
118
115
  ...file_1.fileRoleDefs,
119
116
  ...google_1.googleRoleDefs,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ibiliaze/global-vars",
3
- "version": "1.136.0",
3
+ "version": "1.137.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "sideEffects": false,
@@ -22,7 +22,7 @@
22
22
  "scripts": {
23
23
  "build": "tsc",
24
24
  "pub": "npm publish --access public",
25
- "git": "git add .; git commit -m 'changes'; git tag -a v1.136.0 -m 'v1.136.0'; git push origin v1.136.0; git push",
25
+ "git": "git add .; git commit -m 'changes'; git tag -a v1.137.0 -m 'v1.137.0'; git push origin v1.137.0; git push",
26
26
  "push": "npm run build; npm run git; npm run pub"
27
27
  },
28
28
  "author": "Ibi Hasanli",