@carlonicora/nextjs-jsonapi 1.6.0 → 1.7.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.
Files changed (96) hide show
  1. package/dist/{ApiResponseInterface-CfcC7pPC.d.mts → ApiResponseInterface-DMwITHYP.d.mts} +1 -1
  2. package/dist/{ApiResponseInterface-DTBJaV5R.d.ts → ApiResponseInterface-DWgIAXI-.d.ts} +1 -1
  3. package/dist/{BlockNoteEditor-7FM7B737.js → BlockNoteEditor-IJASTIUZ.js} +14 -18
  4. package/dist/BlockNoteEditor-IJASTIUZ.js.map +1 -0
  5. package/dist/{BlockNoteEditor-RVL76ZAS.mjs → BlockNoteEditor-M6TUP3NT.mjs} +5 -9
  6. package/dist/{BlockNoteEditor-RVL76ZAS.mjs.map → BlockNoteEditor-M6TUP3NT.mjs.map} +1 -1
  7. package/dist/JsonApiRequest-2OM5NDAW.js +24 -0
  8. package/dist/JsonApiRequest-2OM5NDAW.js.map +1 -0
  9. package/dist/{JsonApiRequest-VCCRO732.mjs → JsonApiRequest-SYZ6FGCA.mjs} +2 -3
  10. package/dist/{chunk-SVX7E6RR.js → chunk-4L7OWJ2P.js} +360 -364
  11. package/dist/chunk-4L7OWJ2P.js.map +1 -0
  12. package/dist/{chunk-KFL5ZFM4.mjs → chunk-4U5CJA44.mjs} +732 -20
  13. package/dist/chunk-4U5CJA44.mjs.map +1 -0
  14. package/dist/{chunk-ZUEEIQHW.js → chunk-CKS6SVUK.js} +158 -22
  15. package/dist/chunk-CKS6SVUK.js.map +1 -0
  16. package/dist/{chunk-F4Y3GZG4.mjs → chunk-SAL7XW2G.mjs} +141 -5
  17. package/dist/chunk-SAL7XW2G.mjs.map +1 -0
  18. package/dist/{chunk-ZQTFZKLJ.mjs → chunk-TW4QRJ7D.mjs} +10 -14
  19. package/dist/{chunk-ZQTFZKLJ.mjs.map → chunk-TW4QRJ7D.mjs.map} +1 -1
  20. package/dist/{chunk-2Z56AS2S.js → chunk-U4NADAHN.js} +744 -32
  21. package/dist/chunk-U4NADAHN.js.map +1 -0
  22. package/dist/client/index.d.mts +5 -5
  23. package/dist/client/index.d.ts +5 -5
  24. package/dist/client/index.js +4 -7
  25. package/dist/client/index.js.map +1 -1
  26. package/dist/client/index.mjs +3 -6
  27. package/dist/components/index.d.mts +2 -2
  28. package/dist/components/index.d.ts +2 -2
  29. package/dist/components/index.js +4 -7
  30. package/dist/components/index.js.map +1 -1
  31. package/dist/components/index.mjs +3 -6
  32. package/dist/{config-B43zxEvn.d.mts → config-BdCV25CE.d.mts} +1 -1
  33. package/dist/{config-D2OUrI_G.d.ts → config-C9dt1QiR.d.ts} +1 -1
  34. package/dist/{content.interface-Bs8a7uW6.d.mts → content.interface-B6qP_ABq.d.mts} +1 -1
  35. package/dist/{content.interface-UtsJ-mzs.d.ts → content.interface-DHAFLasV.d.ts} +1 -1
  36. package/dist/contexts/index.d.mts +2 -2
  37. package/dist/contexts/index.d.ts +2 -2
  38. package/dist/contexts/index.js +4 -7
  39. package/dist/contexts/index.js.map +1 -1
  40. package/dist/contexts/index.mjs +3 -6
  41. package/dist/core/index.d.mts +43 -7
  42. package/dist/core/index.d.ts +43 -7
  43. package/dist/core/index.js +29 -3
  44. package/dist/core/index.js.map +1 -1
  45. package/dist/core/index.mjs +28 -2
  46. package/dist/index.d.mts +7 -44
  47. package/dist/index.d.ts +7 -44
  48. package/dist/index.js +20 -4
  49. package/dist/index.js.map +1 -1
  50. package/dist/index.mjs +24 -8
  51. package/dist/{notification.interface-BdcwkuQE.d.mts → notification.interface-agcMYCkg.d.mts} +1 -1
  52. package/dist/{notification.interface-BdcwkuQE.d.ts → notification.interface-agcMYCkg.d.ts} +1 -1
  53. package/dist/s3.service-DYnmymEd.d.mts +350 -0
  54. package/dist/s3.service-DyXjKTqr.d.ts +350 -0
  55. package/dist/server/index.d.mts +5 -235
  56. package/dist/server/index.d.ts +5 -235
  57. package/dist/server/index.js +12 -16
  58. package/dist/server/index.js.map +1 -1
  59. package/dist/server/index.mjs +3 -7
  60. package/dist/server/index.mjs.map +1 -1
  61. package/dist/{useSocket-BWJUXuOl.d.mts → useSocket-91s8M4Xd.d.mts} +1 -1
  62. package/dist/{useSocket-8vwK_R_c.d.ts → useSocket-DSR7vaXj.d.ts} +1 -1
  63. package/package.json +1 -1
  64. package/src/core/index.ts +3 -0
  65. package/src/features/auth/data/index.ts +1 -0
  66. package/src/features/company/data/index.ts +1 -0
  67. package/src/features/content/data/index.ts +1 -0
  68. package/src/features/feature/data/index.ts +1 -0
  69. package/src/features/notification/data/index.ts +1 -0
  70. package/src/features/push/data/index.ts +1 -0
  71. package/src/features/role/data/index.ts +1 -0
  72. package/src/features/s3/data/index.ts +1 -0
  73. package/src/features/user/data/index.ts +1 -0
  74. package/dist/BlockNoteEditor-7FM7B737.js.map +0 -1
  75. package/dist/JsonApiRequest-KOKGVPBI.js +0 -25
  76. package/dist/JsonApiRequest-KOKGVPBI.js.map +0 -1
  77. package/dist/chunk-2Z56AS2S.js.map +0 -1
  78. package/dist/chunk-37NJZ2VD.mjs +0 -637
  79. package/dist/chunk-37NJZ2VD.mjs.map +0 -1
  80. package/dist/chunk-AGAJMJ4T.js +0 -147
  81. package/dist/chunk-AGAJMJ4T.js.map +0 -1
  82. package/dist/chunk-CSM6AIAP.js +0 -98
  83. package/dist/chunk-CSM6AIAP.js.map +0 -1
  84. package/dist/chunk-F4Y3GZG4.mjs.map +0 -1
  85. package/dist/chunk-K4W5QXL5.mjs +0 -98
  86. package/dist/chunk-K4W5QXL5.mjs.map +0 -1
  87. package/dist/chunk-KFL5ZFM4.mjs.map +0 -1
  88. package/dist/chunk-LOSPCUCF.js +0 -637
  89. package/dist/chunk-LOSPCUCF.js.map +0 -1
  90. package/dist/chunk-RBIVEH2K.mjs +0 -147
  91. package/dist/chunk-RBIVEH2K.mjs.map +0 -1
  92. package/dist/chunk-SVX7E6RR.js.map +0 -1
  93. package/dist/chunk-ZUEEIQHW.js.map +0 -1
  94. package/dist/s3.interface-D7ttGatc.d.ts +0 -119
  95. package/dist/s3.interface-DlaMDRTn.d.mts +0 -119
  96. /package/dist/{JsonApiRequest-VCCRO732.mjs.map → JsonApiRequest-SYZ6FGCA.mjs.map} +0 -0
@@ -1,8 +1,8 @@
1
- import { A as ApiData, a as ApiResponseInterface } from '../ApiResponseInterface-CfcC7pPC.mjs';
2
- import { M as ModuleWithPermissions, b as Action, a as ApiRequestDataTypeInterface, U as UserInterface, J as JsonApiHydratedDataInterface, j as UserInput, e as CompanyInterface, C as CompanyInput, i as RoleInterface, N as NotificationInterface, f as FeatureInterface } from '../notification.interface-BdcwkuQE.mjs';
3
- import { A as AbstractService, a as AuthInput, c as AuthInterface, N as NextRef, P as PreviousRef, e as S3Interface } from '../s3.interface-DlaMDRTn.mjs';
4
- import { a as ContentInterface } from '../content.interface-Bs8a7uW6.mjs';
1
+ import { A as ApiData, a as ApiResponseInterface } from '../ApiResponseInterface-DMwITHYP.mjs';
2
+ import { M as ModuleWithPermissions, b as Action, a as ApiRequestDataTypeInterface } from '../notification.interface-agcMYCkg.mjs';
3
+ export { d as ServerAuthService, C as ServerCompanyService, e as ServerContentService, F as ServerFeatureService, f as ServerNotificationService, h as ServerPushService, R as ServerRoleService, k as ServerS3Service, U as ServerUserService } from '../s3.service-DYnmymEd.mjs';
5
4
  import 'lucide-react';
5
+ import '../content.interface-B6qP_ABq.mjs';
6
6
 
7
7
  type CacheProfile = "seconds" | "minutes" | "hours" | "days" | "weeks" | "max" | "default";
8
8
  /**
@@ -127,234 +127,4 @@ declare function ServerJsonApiDelete(params: {
127
127
  responseType?: ApiRequestDataTypeInterface;
128
128
  }): Promise<ApiResponseInterface>;
129
129
 
130
- declare class AuthService extends AbstractService {
131
- static login(params: {
132
- email: string;
133
- password: string;
134
- language?: string;
135
- }): Promise<UserInterface>;
136
- static logout(params?: {
137
- language?: string;
138
- }): Promise<void>;
139
- static initialiseForgotPassword(params: {
140
- email: string;
141
- language?: string;
142
- }): Promise<void>;
143
- static register(params: AuthInput): Promise<void>;
144
- static activate(params: {
145
- activationCode: string;
146
- }): Promise<void>;
147
- static validateCode(params: {
148
- code: string;
149
- language?: string;
150
- }): Promise<void>;
151
- static resetPassword(params: {
152
- code: string;
153
- password: string;
154
- }): Promise<void>;
155
- static acceptInvitation(params: {
156
- code: string;
157
- password: string;
158
- }): Promise<void>;
159
- static findToken(params: {
160
- tokenCode: string;
161
- }): Promise<AuthInterface>;
162
- static saveToken(params: {
163
- dehydratedAuth: JsonApiHydratedDataInterface;
164
- }): Promise<void>;
165
- }
166
-
167
- declare class UserService extends AbstractService {
168
- static findFullUser(): Promise<UserInterface>;
169
- static findById(params: {
170
- userId: string;
171
- }): Promise<UserInterface>;
172
- static findByEmail(params: {
173
- email: string;
174
- }): Promise<UserInterface>;
175
- static findMany(params: {
176
- roleId?: string;
177
- search?: string;
178
- fetchAll?: boolean;
179
- includeDeleted?: boolean;
180
- next?: NextRef;
181
- prev?: PreviousRef;
182
- }): Promise<UserInterface[]>;
183
- static findManyByContentIds(params: {
184
- contentIds: string[];
185
- search?: string;
186
- next?: NextRef;
187
- prev?: PreviousRef;
188
- }): Promise<UserInterface[]>;
189
- static findRelevant(params: {
190
- id: string;
191
- next?: NextRef;
192
- prev?: PreviousRef;
193
- }): Promise<UserInterface[]>;
194
- static findManyForAmin(params: {
195
- companyId?: string;
196
- search?: string;
197
- next?: NextRef;
198
- prev?: PreviousRef;
199
- }): Promise<UserInterface[]>;
200
- static findAllUsers(params: {
201
- companyId: string;
202
- search?: string;
203
- limitToRoles?: string[];
204
- isDeleted?: boolean;
205
- next?: NextRef;
206
- prev?: PreviousRef;
207
- }): Promise<UserInterface[]>;
208
- static findAllUsersByRole(params: {
209
- roleId: string;
210
- search?: string;
211
- next?: NextRef;
212
- prev?: PreviousRef;
213
- }): Promise<UserInterface[]>;
214
- static findAllUsersNotInRole(params: {
215
- roleId: string;
216
- search?: string;
217
- next?: NextRef;
218
- prev?: PreviousRef;
219
- }): Promise<UserInterface[]>;
220
- static create(params: UserInput): Promise<UserInterface>;
221
- static reactivate(params: {
222
- userId: string;
223
- }): Promise<UserInterface>;
224
- static sendInvitation(params: {
225
- userId: string;
226
- companyId?: string;
227
- }): Promise<void>;
228
- static update(params: UserInput): Promise<UserInterface>;
229
- static patchRate(params: UserInput): Promise<UserInterface>;
230
- static delete(params: {
231
- userId: string;
232
- companyId: string;
233
- }): Promise<void>;
234
- }
235
-
236
- declare class CompanyService extends AbstractService {
237
- static findOne(params: {
238
- companyId: string;
239
- }): Promise<CompanyInterface>;
240
- static findMany(params: {
241
- search?: string;
242
- next?: NextRef;
243
- }): Promise<CompanyInterface[]>;
244
- static delete(params: {
245
- companyId: string;
246
- }): Promise<void>;
247
- static create(params: CompanyInput): Promise<CompanyInterface>;
248
- static update(params: CompanyInput): Promise<CompanyInterface>;
249
- static updateConfigurations(params: CompanyInput): Promise<CompanyInterface>;
250
- static activateLicense(params: CompanyInput): Promise<CompanyInterface>;
251
- }
252
-
253
- declare class RoleService extends AbstractService {
254
- static findById(params: {
255
- roleId: string;
256
- }): Promise<RoleInterface>;
257
- static findAllRoles(params: {
258
- search?: string;
259
- next?: NextRef;
260
- }): Promise<RoleInterface[]>;
261
- static findAllRolesByUser(params: {
262
- userId: string;
263
- search?: string;
264
- next?: NextRef;
265
- prev?: PreviousRef;
266
- }): Promise<RoleInterface[]>;
267
- static findAllRolesUserNotIn(params: {
268
- userId: string;
269
- search?: string;
270
- next?: NextRef;
271
- prev?: PreviousRef;
272
- }): Promise<RoleInterface[]>;
273
- static addUserToRole(params: {
274
- userId: string;
275
- roleId: string;
276
- }): Promise<void>;
277
- static removeUserFromRole(params: {
278
- userId: string;
279
- roleId: string;
280
- }): Promise<void>;
281
- static create(params: {
282
- roleId: string;
283
- name: string;
284
- description?: string;
285
- }): Promise<RoleInterface>;
286
- static update(params: {
287
- roleId: string;
288
- name: string;
289
- description?: string;
290
- }): Promise<RoleInterface>;
291
- static delete(params: {
292
- roleId: string;
293
- }): Promise<RoleInterface>;
294
- }
295
-
296
- declare class ContentService extends AbstractService {
297
- static findMany(params: {
298
- contentIds?: string[];
299
- search?: string;
300
- fetchAll?: boolean;
301
- next?: NextRef;
302
- prev?: PreviousRef;
303
- }): Promise<ContentInterface[]>;
304
- static findRelevant(params: {
305
- id: string;
306
- next?: NextRef;
307
- prev?: PreviousRef;
308
- }): Promise<ContentInterface[]>;
309
- static findManyByAuthor(params: {
310
- userId: string;
311
- search?: string;
312
- fetchAll?: boolean;
313
- next?: NextRef;
314
- prev?: PreviousRef;
315
- }): Promise<ContentInterface[]>;
316
- }
317
-
318
- declare class NotificationService extends AbstractService {
319
- static findMany(params: {
320
- isArchived?: boolean;
321
- next?: NextRef;
322
- }): Promise<NotificationInterface[]>;
323
- static markAsRead(params: {
324
- data: any;
325
- }): Promise<void>;
326
- static archive(params: {
327
- id: string;
328
- }): Promise<void>;
329
- }
330
-
331
- declare class FeatureService extends AbstractService {
332
- static findMany(params: {
333
- companyId?: string;
334
- search?: string;
335
- next?: NextRef;
336
- }): Promise<FeatureInterface[]>;
337
- }
338
-
339
- declare class PushService extends AbstractService {
340
- static register(params: {
341
- data: any;
342
- }): Promise<void>;
343
- }
344
-
345
- declare class S3Service extends AbstractService {
346
- static getPreSignedUrl(params: {
347
- key: string;
348
- contentType: string;
349
- isPublic?: boolean;
350
- }): Promise<S3Interface>;
351
- static getSignedUrl(params: {
352
- key: string;
353
- isPublic?: boolean;
354
- }): Promise<S3Interface>;
355
- static deleteFile(params: {
356
- key: string;
357
- }): Promise<void>;
358
- }
359
-
360
- export { type CacheProfile, AuthService as ServerAuthService, CompanyService as ServerCompanyService, ContentService as ServerContentService, FeatureService as ServerFeatureService, ServerJsonApiDelete, ServerJsonApiGet, ServerJsonApiPatch, ServerJsonApiPost, ServerJsonApiPut, NotificationService as ServerNotificationService, PushService as ServerPushService, type ServerRequestParams, RoleService as ServerRoleService, S3Service as ServerS3Service, ServerSession, UserService as ServerUserService, configureServerJsonApi, getServerApiUrl, getServerAppUrl, getServerToken, getServerTrackablePages, invalidateCacheTag, invalidateCacheTags, serverRequest };
130
+ export { type CacheProfile, ServerJsonApiDelete, ServerJsonApiGet, ServerJsonApiPatch, ServerJsonApiPost, ServerJsonApiPut, type ServerRequestParams, ServerSession, configureServerJsonApi, getServerApiUrl, getServerAppUrl, getServerToken, getServerTrackablePages, invalidateCacheTag, invalidateCacheTags, serverRequest };
@@ -1,8 +1,8 @@
1
- import { A as ApiData, a as ApiResponseInterface } from '../ApiResponseInterface-DTBJaV5R.js';
2
- import { M as ModuleWithPermissions, b as Action, a as ApiRequestDataTypeInterface, U as UserInterface, J as JsonApiHydratedDataInterface, j as UserInput, e as CompanyInterface, C as CompanyInput, i as RoleInterface, N as NotificationInterface, f as FeatureInterface } from '../notification.interface-BdcwkuQE.js';
3
- import { A as AbstractService, a as AuthInput, c as AuthInterface, N as NextRef, P as PreviousRef, e as S3Interface } from '../s3.interface-D7ttGatc.js';
4
- import { a as ContentInterface } from '../content.interface-UtsJ-mzs.js';
1
+ import { A as ApiData, a as ApiResponseInterface } from '../ApiResponseInterface-DWgIAXI-.js';
2
+ import { M as ModuleWithPermissions, b as Action, a as ApiRequestDataTypeInterface } from '../notification.interface-agcMYCkg.js';
3
+ export { d as ServerAuthService, C as ServerCompanyService, e as ServerContentService, F as ServerFeatureService, f as ServerNotificationService, h as ServerPushService, R as ServerRoleService, k as ServerS3Service, U as ServerUserService } from '../s3.service-DyXjKTqr.js';
5
4
  import 'lucide-react';
5
+ import '../content.interface-DHAFLasV.js';
6
6
 
7
7
  type CacheProfile = "seconds" | "minutes" | "hours" | "days" | "weeks" | "max" | "default";
8
8
  /**
@@ -127,234 +127,4 @@ declare function ServerJsonApiDelete(params: {
127
127
  responseType?: ApiRequestDataTypeInterface;
128
128
  }): Promise<ApiResponseInterface>;
129
129
 
130
- declare class AuthService extends AbstractService {
131
- static login(params: {
132
- email: string;
133
- password: string;
134
- language?: string;
135
- }): Promise<UserInterface>;
136
- static logout(params?: {
137
- language?: string;
138
- }): Promise<void>;
139
- static initialiseForgotPassword(params: {
140
- email: string;
141
- language?: string;
142
- }): Promise<void>;
143
- static register(params: AuthInput): Promise<void>;
144
- static activate(params: {
145
- activationCode: string;
146
- }): Promise<void>;
147
- static validateCode(params: {
148
- code: string;
149
- language?: string;
150
- }): Promise<void>;
151
- static resetPassword(params: {
152
- code: string;
153
- password: string;
154
- }): Promise<void>;
155
- static acceptInvitation(params: {
156
- code: string;
157
- password: string;
158
- }): Promise<void>;
159
- static findToken(params: {
160
- tokenCode: string;
161
- }): Promise<AuthInterface>;
162
- static saveToken(params: {
163
- dehydratedAuth: JsonApiHydratedDataInterface;
164
- }): Promise<void>;
165
- }
166
-
167
- declare class UserService extends AbstractService {
168
- static findFullUser(): Promise<UserInterface>;
169
- static findById(params: {
170
- userId: string;
171
- }): Promise<UserInterface>;
172
- static findByEmail(params: {
173
- email: string;
174
- }): Promise<UserInterface>;
175
- static findMany(params: {
176
- roleId?: string;
177
- search?: string;
178
- fetchAll?: boolean;
179
- includeDeleted?: boolean;
180
- next?: NextRef;
181
- prev?: PreviousRef;
182
- }): Promise<UserInterface[]>;
183
- static findManyByContentIds(params: {
184
- contentIds: string[];
185
- search?: string;
186
- next?: NextRef;
187
- prev?: PreviousRef;
188
- }): Promise<UserInterface[]>;
189
- static findRelevant(params: {
190
- id: string;
191
- next?: NextRef;
192
- prev?: PreviousRef;
193
- }): Promise<UserInterface[]>;
194
- static findManyForAmin(params: {
195
- companyId?: string;
196
- search?: string;
197
- next?: NextRef;
198
- prev?: PreviousRef;
199
- }): Promise<UserInterface[]>;
200
- static findAllUsers(params: {
201
- companyId: string;
202
- search?: string;
203
- limitToRoles?: string[];
204
- isDeleted?: boolean;
205
- next?: NextRef;
206
- prev?: PreviousRef;
207
- }): Promise<UserInterface[]>;
208
- static findAllUsersByRole(params: {
209
- roleId: string;
210
- search?: string;
211
- next?: NextRef;
212
- prev?: PreviousRef;
213
- }): Promise<UserInterface[]>;
214
- static findAllUsersNotInRole(params: {
215
- roleId: string;
216
- search?: string;
217
- next?: NextRef;
218
- prev?: PreviousRef;
219
- }): Promise<UserInterface[]>;
220
- static create(params: UserInput): Promise<UserInterface>;
221
- static reactivate(params: {
222
- userId: string;
223
- }): Promise<UserInterface>;
224
- static sendInvitation(params: {
225
- userId: string;
226
- companyId?: string;
227
- }): Promise<void>;
228
- static update(params: UserInput): Promise<UserInterface>;
229
- static patchRate(params: UserInput): Promise<UserInterface>;
230
- static delete(params: {
231
- userId: string;
232
- companyId: string;
233
- }): Promise<void>;
234
- }
235
-
236
- declare class CompanyService extends AbstractService {
237
- static findOne(params: {
238
- companyId: string;
239
- }): Promise<CompanyInterface>;
240
- static findMany(params: {
241
- search?: string;
242
- next?: NextRef;
243
- }): Promise<CompanyInterface[]>;
244
- static delete(params: {
245
- companyId: string;
246
- }): Promise<void>;
247
- static create(params: CompanyInput): Promise<CompanyInterface>;
248
- static update(params: CompanyInput): Promise<CompanyInterface>;
249
- static updateConfigurations(params: CompanyInput): Promise<CompanyInterface>;
250
- static activateLicense(params: CompanyInput): Promise<CompanyInterface>;
251
- }
252
-
253
- declare class RoleService extends AbstractService {
254
- static findById(params: {
255
- roleId: string;
256
- }): Promise<RoleInterface>;
257
- static findAllRoles(params: {
258
- search?: string;
259
- next?: NextRef;
260
- }): Promise<RoleInterface[]>;
261
- static findAllRolesByUser(params: {
262
- userId: string;
263
- search?: string;
264
- next?: NextRef;
265
- prev?: PreviousRef;
266
- }): Promise<RoleInterface[]>;
267
- static findAllRolesUserNotIn(params: {
268
- userId: string;
269
- search?: string;
270
- next?: NextRef;
271
- prev?: PreviousRef;
272
- }): Promise<RoleInterface[]>;
273
- static addUserToRole(params: {
274
- userId: string;
275
- roleId: string;
276
- }): Promise<void>;
277
- static removeUserFromRole(params: {
278
- userId: string;
279
- roleId: string;
280
- }): Promise<void>;
281
- static create(params: {
282
- roleId: string;
283
- name: string;
284
- description?: string;
285
- }): Promise<RoleInterface>;
286
- static update(params: {
287
- roleId: string;
288
- name: string;
289
- description?: string;
290
- }): Promise<RoleInterface>;
291
- static delete(params: {
292
- roleId: string;
293
- }): Promise<RoleInterface>;
294
- }
295
-
296
- declare class ContentService extends AbstractService {
297
- static findMany(params: {
298
- contentIds?: string[];
299
- search?: string;
300
- fetchAll?: boolean;
301
- next?: NextRef;
302
- prev?: PreviousRef;
303
- }): Promise<ContentInterface[]>;
304
- static findRelevant(params: {
305
- id: string;
306
- next?: NextRef;
307
- prev?: PreviousRef;
308
- }): Promise<ContentInterface[]>;
309
- static findManyByAuthor(params: {
310
- userId: string;
311
- search?: string;
312
- fetchAll?: boolean;
313
- next?: NextRef;
314
- prev?: PreviousRef;
315
- }): Promise<ContentInterface[]>;
316
- }
317
-
318
- declare class NotificationService extends AbstractService {
319
- static findMany(params: {
320
- isArchived?: boolean;
321
- next?: NextRef;
322
- }): Promise<NotificationInterface[]>;
323
- static markAsRead(params: {
324
- data: any;
325
- }): Promise<void>;
326
- static archive(params: {
327
- id: string;
328
- }): Promise<void>;
329
- }
330
-
331
- declare class FeatureService extends AbstractService {
332
- static findMany(params: {
333
- companyId?: string;
334
- search?: string;
335
- next?: NextRef;
336
- }): Promise<FeatureInterface[]>;
337
- }
338
-
339
- declare class PushService extends AbstractService {
340
- static register(params: {
341
- data: any;
342
- }): Promise<void>;
343
- }
344
-
345
- declare class S3Service extends AbstractService {
346
- static getPreSignedUrl(params: {
347
- key: string;
348
- contentType: string;
349
- isPublic?: boolean;
350
- }): Promise<S3Interface>;
351
- static getSignedUrl(params: {
352
- key: string;
353
- isPublic?: boolean;
354
- }): Promise<S3Interface>;
355
- static deleteFile(params: {
356
- key: string;
357
- }): Promise<void>;
358
- }
359
-
360
- export { type CacheProfile, AuthService as ServerAuthService, CompanyService as ServerCompanyService, ContentService as ServerContentService, FeatureService as ServerFeatureService, ServerJsonApiDelete, ServerJsonApiGet, ServerJsonApiPatch, ServerJsonApiPost, ServerJsonApiPut, NotificationService as ServerNotificationService, PushService as ServerPushService, type ServerRequestParams, RoleService as ServerRoleService, S3Service as ServerS3Service, ServerSession, UserService as ServerUserService, configureServerJsonApi, getServerApiUrl, getServerAppUrl, getServerToken, getServerTrackablePages, invalidateCacheTag, invalidateCacheTags, serverRequest };
130
+ export { type CacheProfile, ServerJsonApiDelete, ServerJsonApiGet, ServerJsonApiPatch, ServerJsonApiPost, ServerJsonApiPut, type ServerRequestParams, ServerSession, configureServerJsonApi, getServerApiUrl, getServerAppUrl, getServerToken, getServerTrackablePages, invalidateCacheTag, invalidateCacheTags, serverRequest };
@@ -11,17 +11,13 @@ var _chunk3ZPK4QOBjs = require('../chunk-3ZPK4QOB.js');
11
11
 
12
12
 
13
13
 
14
- var _chunkLOSPCUCFjs = require('../chunk-LOSPCUCF.js');
15
- require('../chunk-ZUEEIQHW.js');
16
14
 
17
-
18
- var _chunkCSM6AIAPjs = require('../chunk-CSM6AIAP.js');
19
- require('../chunk-2Z56AS2S.js');
15
+ var _chunkU4NADAHNjs = require('../chunk-U4NADAHN.js');
20
16
  require('../chunk-IBS6NI7D.js');
21
17
 
22
18
 
23
19
 
24
- var _chunkAGAJMJ4Tjs = require('../chunk-AGAJMJ4T.js');
20
+ var _chunkCKS6SVUKjs = require('../chunk-CKS6SVUK.js');
25
21
 
26
22
 
27
23
  var _chunkYUO55Q5Ajs = require('../chunk-YUO55Q5A.js');
@@ -97,7 +93,7 @@ var ServerSession = class {
97
93
  if (!rawModules) return false;
98
94
  const modules = JSON.parse(_zlib2.default.gunzipSync(Buffer.from(rawModules, "base64")).toString());
99
95
  const selectedModule = modules.find((module) => module.id === params.module.moduleId);
100
- return _chunkCSM6AIAPjs.checkPermissionsFromServer.call(void 0, {
96
+ return _chunkU4NADAHNjs.checkPermissionsFromServer.call(void 0, {
101
97
  module: params.module,
102
98
  action: params.action,
103
99
  data: params.data,
@@ -165,7 +161,7 @@ async function ServerJsonApiGet(params) {
165
161
  language: params.language,
166
162
  additionalHeaders: _optionalChain([_serverConfig, 'optionalAccess', _26 => _26.additionalHeaders])
167
163
  });
168
- return _chunkAGAJMJ4Tjs.translateResponse.call(void 0, {
164
+ return _chunkCKS6SVUKjs.translateResponse.call(void 0, {
169
165
  classKey: params.classKey,
170
166
  apiResponse,
171
167
  companyId: params.companyId,
@@ -186,7 +182,7 @@ async function ServerJsonApiPost(params) {
186
182
  if (!body) {
187
183
  body = {};
188
184
  } else if (params.overridesJsonApiCreation !== true) {
189
- body = _chunkAGAJMJ4Tjs.JsonApiDataFactory.create(params.classKey, body);
185
+ body = _chunkCKS6SVUKjs.JsonApiDataFactory.create(params.classKey, body);
190
186
  }
191
187
  const apiResponse = await _chunk3ZPK4QOBjs.serverRequest.call(void 0, {
192
188
  method: "POST",
@@ -198,7 +194,7 @@ async function ServerJsonApiPost(params) {
198
194
  language: params.language,
199
195
  additionalHeaders: _optionalChain([_serverConfig, 'optionalAccess', _27 => _27.additionalHeaders])
200
196
  });
201
- return _chunkAGAJMJ4Tjs.translateResponse.call(void 0, {
197
+ return _chunkCKS6SVUKjs.translateResponse.call(void 0, {
202
198
  classKey: _nullishCoalesce(params.responseType, () => ( params.classKey)),
203
199
  apiResponse,
204
200
  companyId: params.companyId,
@@ -213,7 +209,7 @@ async function ServerJsonApiPut(params) {
213
209
  if (!body) {
214
210
  body = {};
215
211
  } else {
216
- body = _chunkAGAJMJ4Tjs.JsonApiDataFactory.create(params.classKey, body);
212
+ body = _chunkCKS6SVUKjs.JsonApiDataFactory.create(params.classKey, body);
217
213
  }
218
214
  const apiResponse = await _chunk3ZPK4QOBjs.serverRequest.call(void 0, {
219
215
  method: "PUT",
@@ -225,7 +221,7 @@ async function ServerJsonApiPut(params) {
225
221
  language: params.language,
226
222
  additionalHeaders: _optionalChain([_serverConfig, 'optionalAccess', _28 => _28.additionalHeaders])
227
223
  });
228
- return _chunkAGAJMJ4Tjs.translateResponse.call(void 0, {
224
+ return _chunkCKS6SVUKjs.translateResponse.call(void 0, {
229
225
  classKey: _nullishCoalesce(params.responseType, () => ( params.classKey)),
230
226
  apiResponse,
231
227
  companyId: params.companyId,
@@ -240,7 +236,7 @@ async function ServerJsonApiPatch(params) {
240
236
  if (!body) {
241
237
  body = {};
242
238
  } else if (params.overridesJsonApiCreation !== true) {
243
- body = _chunkAGAJMJ4Tjs.JsonApiDataFactory.create(params.classKey, body);
239
+ body = _chunkCKS6SVUKjs.JsonApiDataFactory.create(params.classKey, body);
244
240
  }
245
241
  const apiResponse = await _chunk3ZPK4QOBjs.serverRequest.call(void 0, {
246
242
  method: "PATCH",
@@ -252,7 +248,7 @@ async function ServerJsonApiPatch(params) {
252
248
  language: params.language,
253
249
  additionalHeaders: _optionalChain([_serverConfig, 'optionalAccess', _29 => _29.additionalHeaders])
254
250
  });
255
- return _chunkAGAJMJ4Tjs.translateResponse.call(void 0, {
251
+ return _chunkCKS6SVUKjs.translateResponse.call(void 0, {
256
252
  classKey: _nullishCoalesce(params.responseType, () => ( params.classKey)),
257
253
  apiResponse,
258
254
  companyId: params.companyId,
@@ -271,7 +267,7 @@ async function ServerJsonApiDelete(params) {
271
267
  language: params.language,
272
268
  additionalHeaders: _optionalChain([_serverConfig, 'optionalAccess', _30 => _30.additionalHeaders])
273
269
  });
274
- return _chunkAGAJMJ4Tjs.translateResponse.call(void 0, {
270
+ return _chunkCKS6SVUKjs.translateResponse.call(void 0, {
275
271
  classKey: _nullishCoalesce(params.responseType, () => ( params.classKey)),
276
272
  apiResponse,
277
273
  companyId: params.companyId,
@@ -303,5 +299,5 @@ _chunk7QVYU63Ejs.__name.call(void 0, ServerJsonApiDelete, "ServerJsonApiDelete")
303
299
 
304
300
 
305
301
 
306
- exports.ServerAuthService = _chunkLOSPCUCFjs.AuthService; exports.ServerCompanyService = _chunkLOSPCUCFjs.CompanyService; exports.ServerContentService = _chunkLOSPCUCFjs.ContentService; exports.ServerFeatureService = _chunkLOSPCUCFjs.FeatureService; exports.ServerJsonApiDelete = ServerJsonApiDelete; exports.ServerJsonApiGet = ServerJsonApiGet; exports.ServerJsonApiPatch = ServerJsonApiPatch; exports.ServerJsonApiPost = ServerJsonApiPost; exports.ServerJsonApiPut = ServerJsonApiPut; exports.ServerNotificationService = _chunkLOSPCUCFjs.NotificationService; exports.ServerPushService = _chunkLOSPCUCFjs.PushService; exports.ServerRoleService = _chunkLOSPCUCFjs.RoleService; exports.ServerS3Service = _chunkLOSPCUCFjs.S3Service; exports.ServerSession = ServerSession; exports.ServerUserService = _chunkLOSPCUCFjs.UserService; exports.configureServerJsonApi = configureServerJsonApi; exports.getServerApiUrl = getServerApiUrl; exports.getServerAppUrl = getServerAppUrl; exports.getServerToken = _chunkYUO55Q5Ajs.getServerToken; exports.getServerTrackablePages = getServerTrackablePages; exports.invalidateCacheTag = invalidateCacheTag; exports.invalidateCacheTags = invalidateCacheTags; exports.serverRequest = _chunk3ZPK4QOBjs.serverRequest;
302
+ exports.ServerAuthService = _chunkU4NADAHNjs.AuthService; exports.ServerCompanyService = _chunkU4NADAHNjs.CompanyService; exports.ServerContentService = _chunkU4NADAHNjs.ContentService; exports.ServerFeatureService = _chunkU4NADAHNjs.FeatureService; exports.ServerJsonApiDelete = ServerJsonApiDelete; exports.ServerJsonApiGet = ServerJsonApiGet; exports.ServerJsonApiPatch = ServerJsonApiPatch; exports.ServerJsonApiPost = ServerJsonApiPost; exports.ServerJsonApiPut = ServerJsonApiPut; exports.ServerNotificationService = _chunkU4NADAHNjs.NotificationService; exports.ServerPushService = _chunkU4NADAHNjs.PushService; exports.ServerRoleService = _chunkU4NADAHNjs.RoleService; exports.ServerS3Service = _chunkU4NADAHNjs.S3Service; exports.ServerSession = ServerSession; exports.ServerUserService = _chunkU4NADAHNjs.UserService; exports.configureServerJsonApi = configureServerJsonApi; exports.getServerApiUrl = getServerApiUrl; exports.getServerAppUrl = getServerAppUrl; exports.getServerToken = _chunkYUO55Q5Ajs.getServerToken; exports.getServerTrackablePages = getServerTrackablePages; exports.invalidateCacheTag = invalidateCacheTag; exports.invalidateCacheTags = invalidateCacheTags; exports.serverRequest = _chunk3ZPK4QOBjs.serverRequest;
307
303
  //# sourceMappingURL=index.js.map