@carlonicora/nextjs-jsonapi 1.0.6 → 1.1.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 (110) hide show
  1. package/dist/{AbstractService-B2n_JdiC.d.mts → AbstractService-BsY6W3Ej.d.mts} +1 -1
  2. package/dist/{AbstractService-DtQTYovo.d.ts → AbstractService-wLid8dB0.d.ts} +1 -1
  3. package/dist/AuthComponent-hxOPs9o8.d.mts +11 -0
  4. package/dist/AuthComponent-hxOPs9o8.d.ts +11 -0
  5. package/dist/{BlockNoteEditor-BLVXQPXV.mjs → BlockNoteEditor-6TBRDBCF.mjs} +7 -7
  6. package/dist/{BlockNoteEditor-ZTDHULFT.js → BlockNoteEditor-BCPDRNLK.js} +17 -17
  7. package/dist/{BlockNoteEditor-ZTDHULFT.js.map → BlockNoteEditor-BCPDRNLK.js.map} +1 -1
  8. package/dist/{chunk-6GKHCVF6.js → chunk-32HM6MDD.js} +1 -1
  9. package/dist/chunk-32HM6MDD.js.map +1 -0
  10. package/dist/{chunk-A5DDIABK.js → chunk-EZK3H6EJ.js} +206 -206
  11. package/dist/{chunk-A5DDIABK.js.map → chunk-EZK3H6EJ.js.map} +1 -1
  12. package/dist/{chunk-WEC4YMOS.js → chunk-FPMPTR7S.js} +778 -590
  13. package/dist/chunk-FPMPTR7S.js.map +1 -0
  14. package/dist/{chunk-RZO2LOW4.js → chunk-FYRFMABS.js} +181 -183
  15. package/dist/chunk-FYRFMABS.js.map +1 -0
  16. package/dist/{chunk-DD3KISNB.mjs → chunk-HAG77QBV.mjs} +1 -1
  17. package/dist/chunk-HAG77QBV.mjs.map +1 -0
  18. package/dist/{chunk-2LM6LCJW.mjs → chunk-JLN6UWII.mjs} +41 -2
  19. package/dist/chunk-JLN6UWII.mjs.map +1 -0
  20. package/dist/{chunk-JC3WJK65.js → chunk-LJRD4SRV.js} +41 -2
  21. package/dist/chunk-LJRD4SRV.js.map +1 -0
  22. package/dist/{chunk-3APORDYP.mjs → chunk-LUHQILAI.mjs} +700 -512
  23. package/dist/chunk-LUHQILAI.mjs.map +1 -0
  24. package/dist/{chunk-7C5RAEBO.mjs → chunk-MA2L2PL2.mjs} +2 -4
  25. package/dist/chunk-MA2L2PL2.mjs.map +1 -0
  26. package/dist/{chunk-PYF2U6WG.mjs → chunk-NPPQNSXN.mjs} +11 -1
  27. package/dist/{chunk-PYF2U6WG.mjs.map → chunk-NPPQNSXN.mjs.map} +1 -1
  28. package/dist/{chunk-HMHGLXWC.js → chunk-WZJDLITG.js} +11 -1
  29. package/dist/chunk-WZJDLITG.js.map +1 -0
  30. package/dist/{chunk-IWFGEPAA.mjs → chunk-X53MF5ZN.mjs} +2 -2
  31. package/dist/client/index.d.mts +8 -4
  32. package/dist/client/index.d.ts +8 -4
  33. package/dist/client/index.js +9 -7
  34. package/dist/client/index.js.map +1 -1
  35. package/dist/client/index.mjs +8 -6
  36. package/dist/components/index.d.mts +20 -3
  37. package/dist/components/index.d.ts +20 -3
  38. package/dist/components/index.js +13 -7
  39. package/dist/components/index.js.map +1 -1
  40. package/dist/components/index.mjs +12 -6
  41. package/dist/{user.fields-CbdObSmS.d.mts → content.fields-cHPdM8GJ.d.mts} +10 -1
  42. package/dist/{user.fields-CbdObSmS.d.ts → content.fields-cHPdM8GJ.d.ts} +10 -1
  43. package/dist/{AuthComponent-m6Qp4Hz6.d.ts → content.interface-C_PGZMuy.d.ts} +1 -11
  44. package/dist/{AuthComponent-CPLvEerw.d.mts → content.interface-D_WS6CrB.d.mts} +1 -11
  45. package/dist/contexts/index.d.mts +2 -1
  46. package/dist/contexts/index.d.ts +2 -1
  47. package/dist/contexts/index.js +7 -7
  48. package/dist/contexts/index.mjs +6 -6
  49. package/dist/core/index.d.mts +6 -3
  50. package/dist/core/index.d.ts +6 -3
  51. package/dist/core/index.js +2 -2
  52. package/dist/core/index.mjs +1 -1
  53. package/dist/features/index.d.mts +7 -17
  54. package/dist/features/index.d.ts +7 -17
  55. package/dist/features/index.js +4 -4
  56. package/dist/features/index.mjs +3 -3
  57. package/dist/hooks/index.d.mts +4 -4
  58. package/dist/hooks/index.d.ts +4 -4
  59. package/dist/hooks/index.js +7 -7
  60. package/dist/hooks/index.mjs +6 -6
  61. package/dist/index.d.mts +4 -3
  62. package/dist/index.d.ts +4 -3
  63. package/dist/index.js +3 -3
  64. package/dist/index.mjs +2 -2
  65. package/dist/permissions/index.d.mts +3 -2
  66. package/dist/permissions/index.d.ts +3 -2
  67. package/dist/permissions/index.js +2 -2
  68. package/dist/permissions/index.mjs +1 -1
  69. package/dist/server/index.d.mts +2 -1
  70. package/dist/server/index.d.ts +2 -1
  71. package/dist/server/index.js +2 -2
  72. package/dist/server/index.mjs +1 -1
  73. package/dist/shadcnui/index.js +5 -3
  74. package/dist/shadcnui/index.js.map +1 -1
  75. package/dist/shadcnui/index.mjs +4 -2
  76. package/dist/{types-BUAlgqqh.d.ts → types-B2QRyqyK.d.ts} +1 -1
  77. package/dist/{types-iVdVY7ba.d.mts → types-CgvNmxTd.d.mts} +1 -1
  78. package/dist/{types-Bl61ob-7.d.mts → types-t2PyXhDu.d.mts} +4 -0
  79. package/dist/{types-Bl61ob-7.d.ts → types-t2PyXhDu.d.ts} +4 -0
  80. package/dist/utils/index.d.mts +27 -3
  81. package/dist/utils/index.d.ts +27 -3
  82. package/dist/utils/index.js +16 -2
  83. package/dist/utils/index.js.map +1 -1
  84. package/dist/utils/index.mjs +15 -1
  85. package/package.json +1 -1
  86. package/src/client/index.ts +3 -1
  87. package/src/components/index.ts +1 -0
  88. package/src/core/registry/ModuleRegistry.ts +16 -1
  89. package/src/features/content/components/index.ts +1 -0
  90. package/src/features/content/components/lists/ContentsList.tsx +67 -0
  91. package/src/features/content/components/lists/ContentsListById.tsx +30 -0
  92. package/src/features/content/components/lists/RelevantContentsList.tsx +30 -0
  93. package/src/features/content/components/lists/index.ts +3 -0
  94. package/src/features/content/data/content.fields.ts +0 -2
  95. package/src/features/content/hooks/index.ts +1 -0
  96. package/src/features/content/hooks/useContentTableStructure.tsx +132 -0
  97. package/src/permissions/types.ts +3 -0
  98. package/src/utils/icons.tsx +40 -0
  99. package/src/utils/index.ts +1 -0
  100. package/dist/chunk-2LM6LCJW.mjs.map +0 -1
  101. package/dist/chunk-3APORDYP.mjs.map +0 -1
  102. package/dist/chunk-6GKHCVF6.js.map +0 -1
  103. package/dist/chunk-7C5RAEBO.mjs.map +0 -1
  104. package/dist/chunk-DD3KISNB.mjs.map +0 -1
  105. package/dist/chunk-HMHGLXWC.js.map +0 -1
  106. package/dist/chunk-JC3WJK65.js.map +0 -1
  107. package/dist/chunk-RZO2LOW4.js.map +0 -1
  108. package/dist/chunk-WEC4YMOS.js.map +0 -1
  109. /package/dist/{BlockNoteEditor-BLVXQPXV.mjs.map → BlockNoteEditor-6TBRDBCF.mjs.map} +0 -0
  110. /package/dist/{chunk-IWFGEPAA.mjs.map → chunk-X53MF5ZN.mjs.map} +0 -0
@@ -13,7 +13,7 @@ var _chunk5ZEADNNPjs = require('./chunk-5ZEADNNP.js');
13
13
 
14
14
 
15
15
 
16
- var _chunkHMHGLXWCjs = require('./chunk-HMHGLXWC.js');
16
+ var _chunkWZJDLITGjs = require('./chunk-WZJDLITG.js');
17
17
 
18
18
 
19
19
  var _chunk7QVYU63Ejs = require('./chunk-7QVYU63E.js');
@@ -26,7 +26,7 @@ var AuthModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factory)
26
26
  }), "AuthModule");
27
27
 
28
28
  // src/features/auth/data/auth.ts
29
- var Auth = class extends _chunkHMHGLXWCjs.AbstractApiData {
29
+ var Auth = class extends _chunkWZJDLITGjs.AbstractApiData {
30
30
  static {
31
31
  _chunk7QVYU63Ejs.__name.call(void 0, this, "Auth");
32
32
  }
@@ -49,13 +49,13 @@ var Auth = class extends _chunkHMHGLXWCjs.AbstractApiData {
49
49
  super.rehydrate(data);
50
50
  this._token = _nullishCoalesce(data.jsonApi.attributes.token, () => ( void 0));
51
51
  this._refreshToken = _nullishCoalesce(data.jsonApi.attributes.refreshToken, () => ( void 0));
52
- this._user = this._readIncluded(data, "user", _chunkHMHGLXWCjs.Modules.User);
52
+ this._user = this._readIncluded(data, "user", _chunkWZJDLITGjs.Modules.User);
53
53
  return this;
54
54
  }
55
55
  createJsonApi(data) {
56
56
  const response = {
57
57
  data: {
58
- type: _chunkHMHGLXWCjs.Modules.Auth.name,
58
+ type: _chunkWZJDLITGjs.Modules.Auth.name,
59
59
  attributes: {}
60
60
  }
61
61
  };
@@ -71,15 +71,15 @@ var Auth = class extends _chunkHMHGLXWCjs.AbstractApiData {
71
71
  };
72
72
 
73
73
  // src/features/auth/data/auth.service.ts
74
- var AuthService = class extends _chunkHMHGLXWCjs.AbstractService {
74
+ var AuthService = class extends _chunkWZJDLITGjs.AbstractService {
75
75
  static {
76
76
  _chunk7QVYU63Ejs.__name.call(void 0, this, "AuthService");
77
77
  }
78
78
  static async login(params) {
79
79
  const language = params.language || "en-US";
80
80
  const apiResponse = await _chunk5ZEADNNPjs.JsonApiPost.call(void 0, {
81
- classKey: _chunkHMHGLXWCjs.Modules.Auth,
82
- endpoint: new (0, _chunkHMHGLXWCjs.EndpointCreator)({ endpoint: _chunkHMHGLXWCjs.Modules.Auth, id: "login" }).generate(),
81
+ classKey: _chunkWZJDLITGjs.Modules.Auth,
82
+ endpoint: new (0, _chunkWZJDLITGjs.EndpointCreator)({ endpoint: _chunkWZJDLITGjs.Modules.Auth, id: "login" }).generate(),
83
83
  body: { email: params.email, password: params.password },
84
84
  language
85
85
  });
@@ -106,8 +106,8 @@ var AuthService = class extends _chunkHMHGLXWCjs.AbstractService {
106
106
  static async logout(params) {
107
107
  const language = _optionalChain([params, 'optionalAccess', _12 => _12.language]) || "en-US";
108
108
  await _chunk5ZEADNNPjs.JsonApiDelete.call(void 0, {
109
- classKey: _chunkHMHGLXWCjs.Modules.Auth,
110
- endpoint: new (0, _chunkHMHGLXWCjs.EndpointCreator)({ endpoint: _chunkHMHGLXWCjs.Modules.Auth }).generate(),
109
+ classKey: _chunkWZJDLITGjs.Modules.Auth,
110
+ endpoint: new (0, _chunkWZJDLITGjs.EndpointCreator)({ endpoint: _chunkWZJDLITGjs.Modules.Auth }).generate(),
111
111
  language
112
112
  });
113
113
  const handler = _chunkAYHKQWHHjs.getTokenHandler.call(void 0, );
@@ -118,8 +118,8 @@ var AuthService = class extends _chunkHMHGLXWCjs.AbstractService {
118
118
  static async initialiseForgotPassword(params) {
119
119
  const language = params.language || "en-US";
120
120
  const response = await _chunk5ZEADNNPjs.JsonApiPost.call(void 0, {
121
- classKey: _chunkHMHGLXWCjs.Modules.Auth,
122
- endpoint: new (0, _chunkHMHGLXWCjs.EndpointCreator)({ endpoint: _chunkHMHGLXWCjs.Modules.Auth, id: "forgot" }).generate(),
121
+ classKey: _chunkWZJDLITGjs.Modules.Auth,
122
+ endpoint: new (0, _chunkWZJDLITGjs.EndpointCreator)({ endpoint: _chunkWZJDLITGjs.Modules.Auth, id: "forgot" }).generate(),
123
123
  body: { email: params.email },
124
124
  language
125
125
  });
@@ -128,50 +128,50 @@ var AuthService = class extends _chunkHMHGLXWCjs.AbstractService {
128
128
  }
129
129
  }
130
130
  static async register(params) {
131
- const endpoint = new (0, _chunkHMHGLXWCjs.EndpointCreator)({ endpoint: _chunkHMHGLXWCjs.Modules.Auth, id: "register" });
131
+ const endpoint = new (0, _chunkWZJDLITGjs.EndpointCreator)({ endpoint: _chunkWZJDLITGjs.Modules.Auth, id: "register" });
132
132
  await this.callApi({
133
- type: _chunkHMHGLXWCjs.Modules.Auth,
133
+ type: _chunkWZJDLITGjs.Modules.Auth,
134
134
  method: "POST" /* POST */,
135
135
  endpoint: endpoint.generate(),
136
136
  input: params
137
137
  });
138
138
  }
139
139
  static async activate(params) {
140
- const endpoint = new (0, _chunkHMHGLXWCjs.EndpointCreator)({
141
- endpoint: _chunkHMHGLXWCjs.Modules.Auth,
140
+ const endpoint = new (0, _chunkWZJDLITGjs.EndpointCreator)({
141
+ endpoint: _chunkWZJDLITGjs.Modules.Auth,
142
142
  id: "activate",
143
143
  childEndpoint: params.activationCode
144
144
  });
145
- await this.callApi({ type: _chunkHMHGLXWCjs.Modules.Auth, method: "POST" /* POST */, endpoint: endpoint.generate() });
145
+ await this.callApi({ type: _chunkWZJDLITGjs.Modules.Auth, method: "POST" /* POST */, endpoint: endpoint.generate() });
146
146
  }
147
147
  static async validateCode(params) {
148
148
  const language = params.language || "en-US";
149
149
  const apiResponse = await _chunk5ZEADNNPjs.JsonApiGet.call(void 0, {
150
- classKey: _chunkHMHGLXWCjs.Modules.Auth,
151
- endpoint: new (0, _chunkHMHGLXWCjs.EndpointCreator)({ endpoint: _chunkHMHGLXWCjs.Modules.Auth, id: "validate", childEndpoint: params.code }).generate(),
150
+ classKey: _chunkWZJDLITGjs.Modules.Auth,
151
+ endpoint: new (0, _chunkWZJDLITGjs.EndpointCreator)({ endpoint: _chunkWZJDLITGjs.Modules.Auth, id: "validate", childEndpoint: params.code }).generate(),
152
152
  language
153
153
  });
154
154
  if (!apiResponse.ok) throw new Error(apiResponse.error);
155
155
  }
156
156
  static async resetPassword(params) {
157
- const endpoint = new (0, _chunkHMHGLXWCjs.EndpointCreator)({ endpoint: _chunkHMHGLXWCjs.Modules.Auth, id: "reset", childEndpoint: params.code });
157
+ const endpoint = new (0, _chunkWZJDLITGjs.EndpointCreator)({ endpoint: _chunkWZJDLITGjs.Modules.Auth, id: "reset", childEndpoint: params.code });
158
158
  const input = { password: params.password };
159
- await this.callApi({ type: _chunkHMHGLXWCjs.Modules.Auth, method: "POST" /* POST */, endpoint: endpoint.generate(), input });
159
+ await this.callApi({ type: _chunkWZJDLITGjs.Modules.Auth, method: "POST" /* POST */, endpoint: endpoint.generate(), input });
160
160
  }
161
161
  static async acceptInvitation(params) {
162
- const endpoint = new (0, _chunkHMHGLXWCjs.EndpointCreator)({ endpoint: _chunkHMHGLXWCjs.Modules.Auth, id: "invitation", childEndpoint: params.code });
162
+ const endpoint = new (0, _chunkWZJDLITGjs.EndpointCreator)({ endpoint: _chunkWZJDLITGjs.Modules.Auth, id: "invitation", childEndpoint: params.code });
163
163
  const input = { password: params.password };
164
- await this.callApi({ type: _chunkHMHGLXWCjs.Modules.Auth, method: "POST" /* POST */, endpoint: endpoint.generate(), input });
164
+ await this.callApi({ type: _chunkWZJDLITGjs.Modules.Auth, method: "POST" /* POST */, endpoint: endpoint.generate(), input });
165
165
  }
166
166
  static async findToken(params) {
167
167
  return await this.callApi({
168
- type: _chunkHMHGLXWCjs.Modules.Auth,
168
+ type: _chunkWZJDLITGjs.Modules.Auth,
169
169
  method: "POST" /* POST */,
170
- endpoint: new (0, _chunkHMHGLXWCjs.EndpointCreator)({ endpoint: _chunkHMHGLXWCjs.Modules.Auth }).addAdditionalParam("code", params.tokenCode).generate()
170
+ endpoint: new (0, _chunkWZJDLITGjs.EndpointCreator)({ endpoint: _chunkWZJDLITGjs.Modules.Auth }).addAdditionalParam("code", params.tokenCode).generate()
171
171
  });
172
172
  }
173
173
  static async saveToken(params) {
174
- const auth = _chunkHMHGLXWCjs.rehydrate.call(void 0, _chunkHMHGLXWCjs.Modules.Auth, params.dehydratedAuth);
174
+ const auth = _chunkWZJDLITGjs.rehydrate.call(void 0, _chunkWZJDLITGjs.Modules.Auth, params.dehydratedAuth);
175
175
  const handler = _chunkAYHKQWHHjs.getTokenHandler.call(void 0, );
176
176
  if (handler) {
177
177
  await handler.updateToken({
@@ -212,7 +212,7 @@ var CompanyModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factor
212
212
  }), "CompanyModule");
213
213
 
214
214
  // src/features/company/data/company.ts
215
- var Company = class extends _chunkHMHGLXWCjs.AbstractApiData {
215
+ var Company = class extends _chunkWZJDLITGjs.AbstractApiData {
216
216
  static {
217
217
  _chunk7QVYU63Ejs.__name.call(void 0, this, "Company");
218
218
  }
@@ -252,14 +252,14 @@ var Company = class extends _chunkHMHGLXWCjs.AbstractApiData {
252
252
  this._logo = data.jsonApi.attributes.logo;
253
253
  this._logoUrl = data.jsonApi.attributes.logoUrl;
254
254
  this._licenseExpirationDate = data.jsonApi.attributes.licenseExpirationDate ? new Date(data.jsonApi.attributes.licenseExpirationDate) : void 0;
255
- this._features = this._readIncluded(data, "features", _chunkHMHGLXWCjs.Modules.Feature);
256
- this._modules = this._readIncluded(data, "modules", _chunkHMHGLXWCjs.Modules.Module);
255
+ this._features = this._readIncluded(data, "features", _chunkWZJDLITGjs.Modules.Feature);
256
+ this._modules = this._readIncluded(data, "modules", _chunkWZJDLITGjs.Modules.Module);
257
257
  return this;
258
258
  }
259
259
  createJsonApi(data) {
260
260
  const response = {
261
261
  data: {
262
- type: _chunkHMHGLXWCjs.Modules.Company.name,
262
+ type: _chunkWZJDLITGjs.Modules.Company.name,
263
263
  id: data.id,
264
264
  attributes: {},
265
265
  meta: {},
@@ -275,7 +275,7 @@ var Company = class extends _chunkHMHGLXWCjs.AbstractApiData {
275
275
  if (data.featureIds && data.featureIds.length > 0) {
276
276
  response.data.relationships.features = {
277
277
  data: data.featureIds.map((featureId) => ({
278
- type: _chunkHMHGLXWCjs.Modules.Feature.name,
278
+ type: _chunkWZJDLITGjs.Modules.Feature.name,
279
279
  id: featureId
280
280
  }))
281
281
  };
@@ -283,7 +283,7 @@ var Company = class extends _chunkHMHGLXWCjs.AbstractApiData {
283
283
  if (data.moduleIds && data.moduleIds.length > 0) {
284
284
  response.data.relationships.modules = {
285
285
  data: data.moduleIds.map((moduleId) => ({
286
- type: _chunkHMHGLXWCjs.Modules.Module.name,
286
+ type: _chunkWZJDLITGjs.Modules.Module.name,
287
287
  id: moduleId
288
288
  }))
289
289
  };
@@ -302,22 +302,22 @@ var CompanyFields = /* @__PURE__ */ ((CompanyFields2) => {
302
302
  })(CompanyFields || {});
303
303
 
304
304
  // src/features/company/data/company.service.ts
305
- var CompanyService = class extends _chunkHMHGLXWCjs.AbstractService {
305
+ var CompanyService = class extends _chunkWZJDLITGjs.AbstractService {
306
306
  static {
307
307
  _chunk7QVYU63Ejs.__name.call(void 0, this, "CompanyService");
308
308
  }
309
309
  static async findOne(params) {
310
310
  return this.callApi({
311
- type: _chunkHMHGLXWCjs.Modules.Company,
311
+ type: _chunkWZJDLITGjs.Modules.Company,
312
312
  method: "GET" /* GET */,
313
- endpoint: new (0, _chunkHMHGLXWCjs.EndpointCreator)({ endpoint: _chunkHMHGLXWCjs.Modules.Company, id: params.companyId }).generate()
313
+ endpoint: new (0, _chunkWZJDLITGjs.EndpointCreator)({ endpoint: _chunkWZJDLITGjs.Modules.Company, id: params.companyId }).generate()
314
314
  });
315
315
  }
316
316
  static async findMany(params) {
317
- const endpoint = new (0, _chunkHMHGLXWCjs.EndpointCreator)({ endpoint: _chunkHMHGLXWCjs.Modules.Company });
317
+ const endpoint = new (0, _chunkWZJDLITGjs.EndpointCreator)({ endpoint: _chunkWZJDLITGjs.Modules.Company });
318
318
  if (params.search) endpoint.addAdditionalParam("search", params.search);
319
319
  return this.callApi({
320
- type: _chunkHMHGLXWCjs.Modules.Company,
320
+ type: _chunkWZJDLITGjs.Modules.Company,
321
321
  method: "GET" /* GET */,
322
322
  endpoint: endpoint.generate(),
323
323
  next: params.next
@@ -325,33 +325,33 @@ var CompanyService = class extends _chunkHMHGLXWCjs.AbstractService {
325
325
  }
326
326
  static async delete(params) {
327
327
  await this.callApi({
328
- type: _chunkHMHGLXWCjs.Modules.Company,
328
+ type: _chunkWZJDLITGjs.Modules.Company,
329
329
  method: "DELETE" /* DELETE */,
330
- endpoint: new (0, _chunkHMHGLXWCjs.EndpointCreator)({ endpoint: _chunkHMHGLXWCjs.Modules.Company, id: params.companyId }).generate()
330
+ endpoint: new (0, _chunkWZJDLITGjs.EndpointCreator)({ endpoint: _chunkWZJDLITGjs.Modules.Company, id: params.companyId }).generate()
331
331
  });
332
332
  }
333
333
  static async create(params) {
334
334
  return this.callApi({
335
- type: _chunkHMHGLXWCjs.Modules.Company,
335
+ type: _chunkWZJDLITGjs.Modules.Company,
336
336
  method: "POST" /* POST */,
337
- endpoint: new (0, _chunkHMHGLXWCjs.EndpointCreator)({ endpoint: _chunkHMHGLXWCjs.Modules.Company }).generate(),
337
+ endpoint: new (0, _chunkWZJDLITGjs.EndpointCreator)({ endpoint: _chunkWZJDLITGjs.Modules.Company }).generate(),
338
338
  input: params
339
339
  });
340
340
  }
341
341
  static async update(params) {
342
342
  return this.callApi({
343
- type: _chunkHMHGLXWCjs.Modules.Company,
343
+ type: _chunkWZJDLITGjs.Modules.Company,
344
344
  method: "PUT" /* PUT */,
345
- endpoint: new (0, _chunkHMHGLXWCjs.EndpointCreator)({ endpoint: _chunkHMHGLXWCjs.Modules.Company, id: params.id }).generate(),
345
+ endpoint: new (0, _chunkWZJDLITGjs.EndpointCreator)({ endpoint: _chunkWZJDLITGjs.Modules.Company, id: params.id }).generate(),
346
346
  input: params
347
347
  });
348
348
  }
349
349
  static async updateConfigurations(params) {
350
350
  return this.callApi({
351
- type: _chunkHMHGLXWCjs.Modules.Company,
351
+ type: _chunkWZJDLITGjs.Modules.Company,
352
352
  method: "PUT" /* PUT */,
353
- endpoint: new (0, _chunkHMHGLXWCjs.EndpointCreator)({
354
- endpoint: _chunkHMHGLXWCjs.Modules.Company,
353
+ endpoint: new (0, _chunkWZJDLITGjs.EndpointCreator)({
354
+ endpoint: _chunkWZJDLITGjs.Modules.Company,
355
355
  id: params.id,
356
356
  childEndpoint: "configurations"
357
357
  }).generate(),
@@ -360,9 +360,9 @@ var CompanyService = class extends _chunkHMHGLXWCjs.AbstractService {
360
360
  }
361
361
  static async activateLicense(params) {
362
362
  return this.callApi({
363
- type: _chunkHMHGLXWCjs.Modules.Company,
363
+ type: _chunkWZJDLITGjs.Modules.Company,
364
364
  method: "PUT" /* PUT */,
365
- endpoint: new (0, _chunkHMHGLXWCjs.EndpointCreator)({ endpoint: _chunkHMHGLXWCjs.Modules.Company, id: params.id, childEndpoint: "license" }).generate(),
365
+ endpoint: new (0, _chunkWZJDLITGjs.EndpointCreator)({ endpoint: _chunkWZJDLITGjs.Modules.Company, id: params.id, childEndpoint: "license" }).generate(),
366
366
  input: params
367
367
  });
368
368
  }
@@ -376,17 +376,17 @@ var ContentModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factor
376
376
  inclusions: {
377
377
  lists: {
378
378
  fields: [
379
- _chunkHMHGLXWCjs.createJsonApiInclusion.call(void 0, "content", [`name`, `tldr`, `abstract`, `aiStatus`, `relevance`]),
380
- _chunkHMHGLXWCjs.createJsonApiInclusion.call(void 0, "users", [`name`, `avatar`]),
381
- _chunkHMHGLXWCjs.createJsonApiInclusion.call(void 0, "topics", [`name`]),
382
- _chunkHMHGLXWCjs.createJsonApiInclusion.call(void 0, "expertises", [`name`])
379
+ _chunkWZJDLITGjs.createJsonApiInclusion.call(void 0, "content", [`name`, `tldr`, `abstract`, `aiStatus`, `relevance`]),
380
+ _chunkWZJDLITGjs.createJsonApiInclusion.call(void 0, "users", [`name`, `avatar`]),
381
+ _chunkWZJDLITGjs.createJsonApiInclusion.call(void 0, "topics", [`name`]),
382
+ _chunkWZJDLITGjs.createJsonApiInclusion.call(void 0, "expertises", [`name`])
383
383
  ]
384
384
  }
385
385
  }
386
386
  }), "ContentModule");
387
387
 
388
388
  // src/features/content/data/content.ts
389
- var Content = class extends _chunkHMHGLXWCjs.AbstractApiData {
389
+ var Content = class extends _chunkWZJDLITGjs.AbstractApiData {
390
390
  static {
391
391
  _chunk7QVYU63Ejs.__name.call(void 0, this, "Content");
392
392
  }
@@ -435,8 +435,8 @@ var Content = class extends _chunkHMHGLXWCjs.AbstractApiData {
435
435
  this._tldr = data.jsonApi.attributes.tldr;
436
436
  this._aiStatus = data.jsonApi.meta.aiStatus;
437
437
  this._relevance = data.jsonApi.meta.relevance;
438
- this._author = this._readIncluded(data, "author", _chunkHMHGLXWCjs.Modules.User);
439
- this._editors = this._readIncluded(data, "editors", _chunkHMHGLXWCjs.Modules.User);
438
+ this._author = this._readIncluded(data, "author", _chunkWZJDLITGjs.Modules.User);
439
+ this._editors = this._readIncluded(data, "editors", _chunkWZJDLITGjs.Modules.User);
440
440
  return this;
441
441
  }
442
442
  addContentInput(response, data) {
@@ -444,7 +444,7 @@ var Content = class extends _chunkHMHGLXWCjs.AbstractApiData {
444
444
  if (data.authorId) {
445
445
  response.data.relationships.author = {
446
446
  data: {
447
- type: _chunkHMHGLXWCjs.Modules.User.name,
447
+ type: _chunkWZJDLITGjs.Modules.User.name,
448
448
  id: data.authorId
449
449
  }
450
450
  };
@@ -458,20 +458,18 @@ var ContentFields = /* @__PURE__ */ ((ContentFields2) => {
458
458
  ContentFields2["name"] = "name";
459
459
  ContentFields2["relevance"] = "relevance";
460
460
  ContentFields2["authors"] = "authors";
461
- ContentFields2["topic"] = "topic";
462
- ContentFields2["expertise"] = "expertise";
463
461
  ContentFields2["createdAt"] = "createdAt";
464
462
  ContentFields2["updatedAt"] = "updatedAt";
465
463
  return ContentFields2;
466
464
  })(ContentFields || {});
467
465
 
468
466
  // src/features/content/data/content.service.ts
469
- var ContentService = class extends _chunkHMHGLXWCjs.AbstractService {
467
+ var ContentService = class extends _chunkWZJDLITGjs.AbstractService {
470
468
  static {
471
469
  _chunk7QVYU63Ejs.__name.call(void 0, this, "ContentService");
472
470
  }
473
471
  static async findMany(params) {
474
- const endpoint = new (0, _chunkHMHGLXWCjs.EndpointCreator)({ endpoint: _chunkHMHGLXWCjs.Modules.Content });
472
+ const endpoint = new (0, _chunkWZJDLITGjs.EndpointCreator)({ endpoint: _chunkWZJDLITGjs.Modules.Content });
475
473
  if (params.contentIds) {
476
474
  endpoint.addAdditionalParam("contentIds", params.contentIds.join(","));
477
475
  endpoint.addAdditionalParam("fetchAll", "true");
@@ -479,42 +477,42 @@ var ContentService = class extends _chunkHMHGLXWCjs.AbstractService {
479
477
  if (params.fetchAll) endpoint.addAdditionalParam("fetchAll", "true");
480
478
  if (params.search) endpoint.addAdditionalParam("search", params.search);
481
479
  }
482
- if (_optionalChain([_chunkHMHGLXWCjs.Modules, 'access', _24 => _24.Content, 'access', _25 => _25.inclusions, 'optionalAccess', _26 => _26.lists, 'optionalAccess', _27 => _27.fields])) endpoint.limitToFields(_chunkHMHGLXWCjs.Modules.Content.inclusions.lists.fields);
483
- if (_optionalChain([_chunkHMHGLXWCjs.Modules, 'access', _28 => _28.Content, 'access', _29 => _29.inclusions, 'optionalAccess', _30 => _30.lists, 'optionalAccess', _31 => _31.types])) endpoint.limitToType(_chunkHMHGLXWCjs.Modules.Content.inclusions.lists.types);
480
+ if (_optionalChain([_chunkWZJDLITGjs.Modules, 'access', _24 => _24.Content, 'access', _25 => _25.inclusions, 'optionalAccess', _26 => _26.lists, 'optionalAccess', _27 => _27.fields])) endpoint.limitToFields(_chunkWZJDLITGjs.Modules.Content.inclusions.lists.fields);
481
+ if (_optionalChain([_chunkWZJDLITGjs.Modules, 'access', _28 => _28.Content, 'access', _29 => _29.inclusions, 'optionalAccess', _30 => _30.lists, 'optionalAccess', _31 => _31.types])) endpoint.limitToType(_chunkWZJDLITGjs.Modules.Content.inclusions.lists.types);
484
482
  return this.callApi({
485
- type: _chunkHMHGLXWCjs.Modules.Content,
483
+ type: _chunkWZJDLITGjs.Modules.Content,
486
484
  method: "GET" /* GET */,
487
485
  endpoint: endpoint.generate(),
488
486
  next: params.next
489
487
  });
490
488
  }
491
489
  static async findRelevant(params) {
492
- const endpoint = new (0, _chunkHMHGLXWCjs.EndpointCreator)({
493
- endpoint: _chunkHMHGLXWCjs.Modules.Content,
490
+ const endpoint = new (0, _chunkWZJDLITGjs.EndpointCreator)({
491
+ endpoint: _chunkWZJDLITGjs.Modules.Content,
494
492
  id: params.id,
495
493
  childEndpoint: "relevance"
496
494
  });
497
- if (_optionalChain([_chunkHMHGLXWCjs.Modules, 'access', _32 => _32.Content, 'access', _33 => _33.inclusions, 'optionalAccess', _34 => _34.lists, 'optionalAccess', _35 => _35.fields])) endpoint.limitToFields(_chunkHMHGLXWCjs.Modules.Content.inclusions.lists.fields);
498
- if (_optionalChain([_chunkHMHGLXWCjs.Modules, 'access', _36 => _36.Content, 'access', _37 => _37.inclusions, 'optionalAccess', _38 => _38.lists, 'optionalAccess', _39 => _39.types])) endpoint.limitToType(_chunkHMHGLXWCjs.Modules.Content.inclusions.lists.types);
495
+ if (_optionalChain([_chunkWZJDLITGjs.Modules, 'access', _32 => _32.Content, 'access', _33 => _33.inclusions, 'optionalAccess', _34 => _34.lists, 'optionalAccess', _35 => _35.fields])) endpoint.limitToFields(_chunkWZJDLITGjs.Modules.Content.inclusions.lists.fields);
496
+ if (_optionalChain([_chunkWZJDLITGjs.Modules, 'access', _36 => _36.Content, 'access', _37 => _37.inclusions, 'optionalAccess', _38 => _38.lists, 'optionalAccess', _39 => _39.types])) endpoint.limitToType(_chunkWZJDLITGjs.Modules.Content.inclusions.lists.types);
499
497
  return this.callApi({
500
- type: _chunkHMHGLXWCjs.Modules.Content,
498
+ type: _chunkWZJDLITGjs.Modules.Content,
501
499
  method: "GET" /* GET */,
502
500
  endpoint: endpoint.generate(),
503
501
  next: params.next
504
502
  });
505
503
  }
506
504
  static async findManyByAuthor(params) {
507
- const endpoint = new (0, _chunkHMHGLXWCjs.EndpointCreator)({
508
- endpoint: _chunkHMHGLXWCjs.Modules.Author,
505
+ const endpoint = new (0, _chunkWZJDLITGjs.EndpointCreator)({
506
+ endpoint: _chunkWZJDLITGjs.Modules.Author,
509
507
  id: params.userId,
510
- childEndpoint: _chunkHMHGLXWCjs.Modules.Content
508
+ childEndpoint: _chunkWZJDLITGjs.Modules.Content
511
509
  });
512
510
  if (params.fetchAll) endpoint.addAdditionalParam("fetchAll", "true");
513
511
  if (params.search) endpoint.addAdditionalParam("search", params.search);
514
- if (_optionalChain([_chunkHMHGLXWCjs.Modules, 'access', _40 => _40.Content, 'access', _41 => _41.inclusions, 'optionalAccess', _42 => _42.lists, 'optionalAccess', _43 => _43.fields])) endpoint.limitToFields(_chunkHMHGLXWCjs.Modules.Content.inclusions.lists.fields);
515
- if (_optionalChain([_chunkHMHGLXWCjs.Modules, 'access', _44 => _44.Content, 'access', _45 => _45.inclusions, 'optionalAccess', _46 => _46.lists, 'optionalAccess', _47 => _47.types])) endpoint.limitToType(_chunkHMHGLXWCjs.Modules.Content.inclusions.lists.types);
512
+ if (_optionalChain([_chunkWZJDLITGjs.Modules, 'access', _40 => _40.Content, 'access', _41 => _41.inclusions, 'optionalAccess', _42 => _42.lists, 'optionalAccess', _43 => _43.fields])) endpoint.limitToFields(_chunkWZJDLITGjs.Modules.Content.inclusions.lists.fields);
513
+ if (_optionalChain([_chunkWZJDLITGjs.Modules, 'access', _44 => _44.Content, 'access', _45 => _45.inclusions, 'optionalAccess', _46 => _46.lists, 'optionalAccess', _47 => _47.types])) endpoint.limitToType(_chunkWZJDLITGjs.Modules.Content.inclusions.lists.types);
516
514
  return this.callApi({
517
- type: _chunkHMHGLXWCjs.Modules.Content,
515
+ type: _chunkWZJDLITGjs.Modules.Content,
518
516
  method: "GET" /* GET */,
519
517
  endpoint: endpoint.generate(),
520
518
  next: params.next
@@ -523,7 +521,7 @@ var ContentService = class extends _chunkHMHGLXWCjs.AbstractService {
523
521
  };
524
522
 
525
523
  // src/features/feature/data/feature.ts
526
- var Feature = (_class = class extends _chunkHMHGLXWCjs.AbstractApiData {constructor(...args) { super(...args); _class.prototype.__init.call(this); }
524
+ var Feature = (_class = class extends _chunkWZJDLITGjs.AbstractApiData {constructor(...args) { super(...args); _class.prototype.__init.call(this); }
527
525
  static {
528
526
  _chunk7QVYU63Ejs.__name.call(void 0, this, "Feature");
529
527
  }
@@ -543,7 +541,7 @@ var Feature = (_class = class extends _chunkHMHGLXWCjs.AbstractApiData {construc
543
541
  super.rehydrate(data);
544
542
  this._name = data.jsonApi.attributes.name;
545
543
  this._isProduction = _nullishCoalesce(data.jsonApi.attributes.isProduction, () => ( false));
546
- this._modules = this._readIncluded(data, `modules`, _chunkHMHGLXWCjs.Modules.Module);
544
+ this._modules = this._readIncluded(data, `modules`, _chunkWZJDLITGjs.Modules.Module);
547
545
  return this;
548
546
  }
549
547
  }, _class);
@@ -557,16 +555,16 @@ var FeatureModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factor
557
555
  }), "FeatureModule");
558
556
 
559
557
  // src/features/feature/data/feature.service.ts
560
- var FeatureService = class extends _chunkHMHGLXWCjs.AbstractService {
558
+ var FeatureService = class extends _chunkWZJDLITGjs.AbstractService {
561
559
  static {
562
560
  _chunk7QVYU63Ejs.__name.call(void 0, this, "FeatureService");
563
561
  }
564
562
  static async findMany(params) {
565
- const endpoint = new (0, _chunkHMHGLXWCjs.EndpointCreator)({ endpoint: _chunkHMHGLXWCjs.Modules.Feature });
566
- if (params.companyId) endpoint.endpoint(_chunkHMHGLXWCjs.Modules.Company).id(params.companyId).childEndpoint(_chunkHMHGLXWCjs.Modules.Feature);
563
+ const endpoint = new (0, _chunkWZJDLITGjs.EndpointCreator)({ endpoint: _chunkWZJDLITGjs.Modules.Feature });
564
+ if (params.companyId) endpoint.endpoint(_chunkWZJDLITGjs.Modules.Company).id(params.companyId).childEndpoint(_chunkWZJDLITGjs.Modules.Feature);
567
565
  if (params.search) endpoint.addAdditionalParam("search", params.search);
568
566
  return this.callApi({
569
- type: _chunkHMHGLXWCjs.Modules.Feature,
567
+ type: _chunkWZJDLITGjs.Modules.Feature,
570
568
  method: "GET" /* GET */,
571
569
  endpoint: endpoint.generate(),
572
570
  next: params.next
@@ -575,7 +573,7 @@ var FeatureService = class extends _chunkHMHGLXWCjs.AbstractService {
575
573
  };
576
574
 
577
575
  // src/features/module/data/module.ts
578
- var Module = class extends _chunkHMHGLXWCjs.AbstractApiData {
576
+ var Module = class extends _chunkWZJDLITGjs.AbstractApiData {
579
577
  static {
580
578
  _chunk7QVYU63Ejs.__name.call(void 0, this, "Module");
581
579
  }
@@ -611,7 +609,7 @@ var ModuleModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factory
611
609
  }), "ModuleModule");
612
610
 
613
611
  // src/features/notification/data/notification.ts
614
- var Notification = class extends _chunkHMHGLXWCjs.AbstractApiData {
612
+ var Notification = class extends _chunkWZJDLITGjs.AbstractApiData {
615
613
  static {
616
614
  _chunk7QVYU63Ejs.__name.call(void 0, this, "Notification");
617
615
  }
@@ -632,13 +630,13 @@ var Notification = class extends _chunkHMHGLXWCjs.AbstractApiData {
632
630
  super.rehydrate(data);
633
631
  this._notificationType = data.jsonApi.attributes.notificationType;
634
632
  this._isRead = data.jsonApi.attributes.isRead;
635
- this._actor = this._readIncluded(data, "actor", _chunkHMHGLXWCjs.Modules.User);
633
+ this._actor = this._readIncluded(data, "actor", _chunkWZJDLITGjs.Modules.User);
636
634
  return this;
637
635
  }
638
636
  createJsonApi(data) {
639
637
  const response = {
640
638
  data: {
641
- type: _chunkHMHGLXWCjs.Modules.Notification.name,
639
+ type: _chunkWZJDLITGjs.Modules.Notification.name,
642
640
  id: data.id,
643
641
  attributes: {
644
642
  isRead: data.isRead
@@ -670,24 +668,24 @@ var NotificationFields = /* @__PURE__ */ ((NotificationFields2) => {
670
668
  })(NotificationFields || {});
671
669
 
672
670
  // src/features/notification/data/notification.service.ts
673
- var NotificationService = class extends _chunkHMHGLXWCjs.AbstractService {
671
+ var NotificationService = class extends _chunkWZJDLITGjs.AbstractService {
674
672
  static {
675
673
  _chunk7QVYU63Ejs.__name.call(void 0, this, "NotificationService");
676
674
  }
677
675
  static async findMany(params) {
678
- const endpoint = new (0, _chunkHMHGLXWCjs.EndpointCreator)({ endpoint: _chunkHMHGLXWCjs.Modules.Notification });
676
+ const endpoint = new (0, _chunkWZJDLITGjs.EndpointCreator)({ endpoint: _chunkWZJDLITGjs.Modules.Notification });
679
677
  if (params.isArchived) endpoint.addAdditionalParam("isArchived", "true");
680
678
  return this.callApi({
681
- type: _chunkHMHGLXWCjs.Modules.Notification,
679
+ type: _chunkWZJDLITGjs.Modules.Notification,
682
680
  method: "GET" /* GET */,
683
681
  endpoint: endpoint.generate(),
684
682
  next: params.next
685
683
  });
686
684
  }
687
685
  static async markAsRead(params) {
688
- const endpoint = new (0, _chunkHMHGLXWCjs.EndpointCreator)({ endpoint: _chunkHMHGLXWCjs.Modules.Notification });
686
+ const endpoint = new (0, _chunkWZJDLITGjs.EndpointCreator)({ endpoint: _chunkWZJDLITGjs.Modules.Notification });
689
687
  await this.callApi({
690
- type: _chunkHMHGLXWCjs.Modules.Notification,
688
+ type: _chunkWZJDLITGjs.Modules.Notification,
691
689
  method: "PATCH" /* PATCH */,
692
690
  endpoint: endpoint.generate(),
693
691
  input: params.data,
@@ -695,20 +693,20 @@ var NotificationService = class extends _chunkHMHGLXWCjs.AbstractService {
695
693
  });
696
694
  }
697
695
  static async archive(params) {
698
- const endpoint = new (0, _chunkHMHGLXWCjs.EndpointCreator)({ endpoint: _chunkHMHGLXWCjs.Modules.Notification, id: params.id, childEndpoint: "archive" });
699
- await this.callApi({ type: _chunkHMHGLXWCjs.Modules.Notification, method: "POST" /* POST */, endpoint: endpoint.generate() });
696
+ const endpoint = new (0, _chunkWZJDLITGjs.EndpointCreator)({ endpoint: _chunkWZJDLITGjs.Modules.Notification, id: params.id, childEndpoint: "archive" });
697
+ await this.callApi({ type: _chunkWZJDLITGjs.Modules.Notification, method: "POST" /* POST */, endpoint: endpoint.generate() });
700
698
  }
701
699
  };
702
700
 
703
701
  // src/features/push/data/push.ts
704
- var Push = class extends _chunkHMHGLXWCjs.AbstractApiData {
702
+ var Push = class extends _chunkWZJDLITGjs.AbstractApiData {
705
703
  static {
706
704
  _chunk7QVYU63Ejs.__name.call(void 0, this, "Push");
707
705
  }
708
706
  createJsonApi(data) {
709
707
  const response = {
710
708
  data: {
711
- type: _chunkHMHGLXWCjs.Modules.Push.name,
709
+ type: _chunkWZJDLITGjs.Modules.Push.name,
712
710
  attributes: {
713
711
  key: data.key
714
712
  }
@@ -728,14 +726,14 @@ var PushModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factory)
728
726
  }), "PushModule");
729
727
 
730
728
  // src/features/push/data/push.service.ts
731
- var PushService = class extends _chunkHMHGLXWCjs.AbstractService {
729
+ var PushService = class extends _chunkWZJDLITGjs.AbstractService {
732
730
  static {
733
731
  _chunk7QVYU63Ejs.__name.call(void 0, this, "PushService");
734
732
  }
735
733
  static async register(params) {
736
- const endpoint = new (0, _chunkHMHGLXWCjs.EndpointCreator)({ endpoint: _chunkHMHGLXWCjs.Modules.Push });
734
+ const endpoint = new (0, _chunkWZJDLITGjs.EndpointCreator)({ endpoint: _chunkWZJDLITGjs.Modules.Push });
737
735
  await this.callApi({
738
- type: _chunkHMHGLXWCjs.Modules.Push,
736
+ type: _chunkWZJDLITGjs.Modules.Push,
739
737
  method: "POST" /* POST */,
740
738
  endpoint: endpoint.generate(),
741
739
  input: params.data,
@@ -745,7 +743,7 @@ var PushService = class extends _chunkHMHGLXWCjs.AbstractService {
745
743
  };
746
744
 
747
745
  // src/features/role/data/role.ts
748
- var Role = class extends _chunkHMHGLXWCjs.AbstractApiData {
746
+ var Role = class extends _chunkWZJDLITGjs.AbstractApiData {
749
747
  static {
750
748
  _chunk7QVYU63Ejs.__name.call(void 0, this, "Role");
751
749
  }
@@ -774,14 +772,14 @@ var Role = class extends _chunkHMHGLXWCjs.AbstractApiData {
774
772
  this._requiredFeature = this._readIncluded(
775
773
  data,
776
774
  "requiredFeature",
777
- _chunkHMHGLXWCjs.Modules.Feature
775
+ _chunkWZJDLITGjs.Modules.Feature
778
776
  );
779
777
  return this;
780
778
  }
781
779
  createJsonApi(data) {
782
780
  const response = {
783
781
  data: {
784
- type: _chunkHMHGLXWCjs.Modules.Role.name,
782
+ type: _chunkWZJDLITGjs.Modules.Role.name,
785
783
  id: data.id,
786
784
  attributes: {
787
785
  name: data.name
@@ -806,46 +804,46 @@ var RoleFields = /* @__PURE__ */ ((RoleFields2) => {
806
804
  })(RoleFields || {});
807
805
 
808
806
  // src/features/role/data/role.service.ts
809
- var RoleService = class extends _chunkHMHGLXWCjs.AbstractService {
807
+ var RoleService = class extends _chunkWZJDLITGjs.AbstractService {
810
808
  static {
811
809
  _chunk7QVYU63Ejs.__name.call(void 0, this, "RoleService");
812
810
  }
813
811
  static async findById(params) {
814
812
  return this.callApi({
815
- type: _chunkHMHGLXWCjs.Modules.Role,
813
+ type: _chunkWZJDLITGjs.Modules.Role,
816
814
  method: "GET" /* GET */,
817
- endpoint: new (0, _chunkHMHGLXWCjs.EndpointCreator)({ endpoint: _chunkHMHGLXWCjs.Modules.Role, id: params.roleId }).generate()
815
+ endpoint: new (0, _chunkWZJDLITGjs.EndpointCreator)({ endpoint: _chunkWZJDLITGjs.Modules.Role, id: params.roleId }).generate()
818
816
  });
819
817
  }
820
818
  static async findAllRoles(params) {
821
- const endpoint = new (0, _chunkHMHGLXWCjs.EndpointCreator)({ endpoint: _chunkHMHGLXWCjs.Modules.Role });
819
+ const endpoint = new (0, _chunkWZJDLITGjs.EndpointCreator)({ endpoint: _chunkWZJDLITGjs.Modules.Role });
822
820
  if (params.search) endpoint.addAdditionalParam("search", params.search);
823
821
  return this.callApi({
824
- type: _chunkHMHGLXWCjs.Modules.Role,
822
+ type: _chunkWZJDLITGjs.Modules.Role,
825
823
  method: "GET" /* GET */,
826
824
  endpoint: endpoint.generate(),
827
825
  next: params.next
828
826
  });
829
827
  }
830
828
  static async findAllRolesByUser(params) {
831
- const endpoint = new (0, _chunkHMHGLXWCjs.EndpointCreator)({ endpoint: _chunkHMHGLXWCjs.Modules.User, id: params.userId, childEndpoint: _chunkHMHGLXWCjs.Modules.Role });
829
+ const endpoint = new (0, _chunkWZJDLITGjs.EndpointCreator)({ endpoint: _chunkWZJDLITGjs.Modules.User, id: params.userId, childEndpoint: _chunkWZJDLITGjs.Modules.Role });
832
830
  if (params.search) endpoint.addAdditionalParam("search", params.search);
833
831
  return this.callApi({
834
- type: _chunkHMHGLXWCjs.Modules.Role,
832
+ type: _chunkWZJDLITGjs.Modules.Role,
835
833
  method: "GET" /* GET */,
836
834
  endpoint: endpoint.generate(),
837
835
  next: params.next
838
836
  });
839
837
  }
840
838
  static async findAllRolesUserNotIn(params) {
841
- const endpoint = new (0, _chunkHMHGLXWCjs.EndpointCreator)({
842
- endpoint: _chunkHMHGLXWCjs.Modules.User,
839
+ const endpoint = new (0, _chunkWZJDLITGjs.EndpointCreator)({
840
+ endpoint: _chunkWZJDLITGjs.Modules.User,
843
841
  id: params.userId,
844
- childEndpoint: _chunkHMHGLXWCjs.Modules.Role
842
+ childEndpoint: _chunkWZJDLITGjs.Modules.Role
845
843
  }).addAdditionalParam("userNotIn", "true");
846
844
  if (params.search) endpoint.addAdditionalParam("search", params.search);
847
845
  return this.callApi({
848
- type: _chunkHMHGLXWCjs.Modules.Role,
846
+ type: _chunkWZJDLITGjs.Modules.Role,
849
847
  method: "GET" /* GET */,
850
848
  endpoint: endpoint.generate(),
851
849
  next: params.next
@@ -853,49 +851,49 @@ var RoleService = class extends _chunkHMHGLXWCjs.AbstractService {
853
851
  }
854
852
  static async addUserToRole(params) {
855
853
  this.callApi({
856
- type: _chunkHMHGLXWCjs.Modules.Role,
854
+ type: _chunkWZJDLITGjs.Modules.Role,
857
855
  method: "POST" /* POST */,
858
- endpoint: new (0, _chunkHMHGLXWCjs.EndpointCreator)({
859
- endpoint: _chunkHMHGLXWCjs.Modules.Role,
856
+ endpoint: new (0, _chunkWZJDLITGjs.EndpointCreator)({
857
+ endpoint: _chunkWZJDLITGjs.Modules.Role,
860
858
  id: params.roleId,
861
- childEndpoint: _chunkHMHGLXWCjs.Modules.User,
859
+ childEndpoint: _chunkWZJDLITGjs.Modules.User,
862
860
  childId: params.userId
863
861
  }).generate()
864
862
  });
865
863
  }
866
864
  static async removeUserFromRole(params) {
867
865
  this.callApi({
868
- type: _chunkHMHGLXWCjs.Modules.Role,
866
+ type: _chunkWZJDLITGjs.Modules.Role,
869
867
  method: "DELETE" /* DELETE */,
870
- endpoint: new (0, _chunkHMHGLXWCjs.EndpointCreator)({
871
- endpoint: _chunkHMHGLXWCjs.Modules.Role,
868
+ endpoint: new (0, _chunkWZJDLITGjs.EndpointCreator)({
869
+ endpoint: _chunkWZJDLITGjs.Modules.Role,
872
870
  id: params.roleId,
873
- childEndpoint: _chunkHMHGLXWCjs.Modules.User,
871
+ childEndpoint: _chunkWZJDLITGjs.Modules.User,
874
872
  childId: params.userId
875
873
  }).generate()
876
874
  });
877
875
  }
878
876
  static async create(params) {
879
877
  return this.callApi({
880
- type: _chunkHMHGLXWCjs.Modules.Role,
878
+ type: _chunkWZJDLITGjs.Modules.Role,
881
879
  method: "POST" /* POST */,
882
- endpoint: new (0, _chunkHMHGLXWCjs.EndpointCreator)({ endpoint: _chunkHMHGLXWCjs.Modules.Role }).generate(),
880
+ endpoint: new (0, _chunkWZJDLITGjs.EndpointCreator)({ endpoint: _chunkWZJDLITGjs.Modules.Role }).generate(),
883
881
  input: { id: params.roleId, name: params.name, description: params.description }
884
882
  });
885
883
  }
886
884
  static async update(params) {
887
885
  return this.callApi({
888
- type: _chunkHMHGLXWCjs.Modules.Role,
886
+ type: _chunkWZJDLITGjs.Modules.Role,
889
887
  method: "PUT" /* PUT */,
890
- endpoint: new (0, _chunkHMHGLXWCjs.EndpointCreator)({ endpoint: _chunkHMHGLXWCjs.Modules.Role, id: params.roleId }).generate(),
888
+ endpoint: new (0, _chunkWZJDLITGjs.EndpointCreator)({ endpoint: _chunkWZJDLITGjs.Modules.Role, id: params.roleId }).generate(),
891
889
  input: { id: params.roleId, name: params.name, description: params.description }
892
890
  });
893
891
  }
894
892
  static async delete(params) {
895
893
  return this.callApi({
896
- type: _chunkHMHGLXWCjs.Modules.Role,
894
+ type: _chunkWZJDLITGjs.Modules.Role,
897
895
  method: "DELETE" /* DELETE */,
898
- endpoint: new (0, _chunkHMHGLXWCjs.EndpointCreator)({ endpoint: _chunkHMHGLXWCjs.Modules.Role, id: params.roleId }).generate()
896
+ endpoint: new (0, _chunkWZJDLITGjs.EndpointCreator)({ endpoint: _chunkWZJDLITGjs.Modules.Role, id: params.roleId }).generate()
899
897
  });
900
898
  }
901
899
  };
@@ -909,7 +907,7 @@ var RoleModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factory)
909
907
  }), "RoleModule");
910
908
 
911
909
  // src/features/s3/data/s3.ts
912
- var S3 = class extends _chunkHMHGLXWCjs.AbstractApiData {
910
+ var S3 = class extends _chunkWZJDLITGjs.AbstractApiData {
913
911
  static {
914
912
  _chunk7QVYU63Ejs.__name.call(void 0, this, "S3");
915
913
  }
@@ -947,7 +945,7 @@ var S3 = class extends _chunkHMHGLXWCjs.AbstractApiData {
947
945
  createJsonApi(data) {
948
946
  const response = {
949
947
  data: {
950
- type: _chunkHMHGLXWCjs.Modules.S3.name,
948
+ type: _chunkWZJDLITGjs.Modules.S3.name,
951
949
  attributes: {
952
950
  key: data.key
953
951
  }
@@ -968,31 +966,31 @@ var S3Module = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factory) =>
968
966
  }), "S3Module");
969
967
 
970
968
  // src/features/s3/data/s3.service.ts
971
- var S3Service = class extends _chunkHMHGLXWCjs.AbstractService {
969
+ var S3Service = class extends _chunkWZJDLITGjs.AbstractService {
972
970
  static {
973
971
  _chunk7QVYU63Ejs.__name.call(void 0, this, "S3Service");
974
972
  }
975
973
  static async getPreSignedUrl(params) {
976
- const endpoint = new (0, _chunkHMHGLXWCjs.EndpointCreator)({ endpoint: _chunkHMHGLXWCjs.Modules.S3 }).addAdditionalParam("key", params.key).addAdditionalParam("contentType", params.contentType);
974
+ const endpoint = new (0, _chunkWZJDLITGjs.EndpointCreator)({ endpoint: _chunkWZJDLITGjs.Modules.S3 }).addAdditionalParam("key", params.key).addAdditionalParam("contentType", params.contentType);
977
975
  if (params.isPublic) endpoint.addAdditionalParam("isPublic", "true");
978
- return this.callApi({ type: _chunkHMHGLXWCjs.Modules.S3, method: "GET" /* GET */, endpoint: endpoint.generate() });
976
+ return this.callApi({ type: _chunkWZJDLITGjs.Modules.S3, method: "GET" /* GET */, endpoint: endpoint.generate() });
979
977
  }
980
978
  static async getSignedUrl(params) {
981
- const endpoint = new (0, _chunkHMHGLXWCjs.EndpointCreator)({ endpoint: _chunkHMHGLXWCjs.Modules.S3, id: "sign" }).addAdditionalParam("key", params.key);
979
+ const endpoint = new (0, _chunkWZJDLITGjs.EndpointCreator)({ endpoint: _chunkWZJDLITGjs.Modules.S3, id: "sign" }).addAdditionalParam("key", params.key);
982
980
  if (params.isPublic) endpoint.addAdditionalParam("isPublic", "true");
983
- return this.callApi({ type: _chunkHMHGLXWCjs.Modules.S3, method: "GET" /* GET */, endpoint: endpoint.generate() });
981
+ return this.callApi({ type: _chunkWZJDLITGjs.Modules.S3, method: "GET" /* GET */, endpoint: endpoint.generate() });
984
982
  }
985
983
  static async deleteFile(params) {
986
984
  this.callApi({
987
- type: _chunkHMHGLXWCjs.Modules.S3,
985
+ type: _chunkWZJDLITGjs.Modules.S3,
988
986
  method: "DELETE" /* DELETE */,
989
- endpoint: new (0, _chunkHMHGLXWCjs.EndpointCreator)({ endpoint: _chunkHMHGLXWCjs.Modules.S3 }).addAdditionalParam("key", params.key).generate()
987
+ endpoint: new (0, _chunkWZJDLITGjs.EndpointCreator)({ endpoint: _chunkWZJDLITGjs.Modules.S3 }).addAdditionalParam("key", params.key).generate()
990
988
  });
991
989
  }
992
990
  };
993
991
 
994
992
  // src/features/user/data/user.ts
995
- var User = (_class2 = class extends _chunkHMHGLXWCjs.AbstractApiData {constructor(...args2) { super(...args2); _class2.prototype.__init2.call(this);_class2.prototype.__init3.call(this); }
993
+ var User = (_class2 = class extends _chunkWZJDLITGjs.AbstractApiData {constructor(...args2) { super(...args2); _class2.prototype.__init2.call(this);_class2.prototype.__init3.call(this); }
996
994
  static {
997
995
  _chunk7QVYU63Ejs.__name.call(void 0, this, "User");
998
996
  }
@@ -1073,15 +1071,15 @@ var User = (_class2 = class extends _chunkHMHGLXWCjs.AbstractApiData {constructo
1073
1071
  this._isDeleted = data.jsonApi.meta.isDeleted;
1074
1072
  this._lastLogin = data.jsonApi.meta.lastLogin ? new Date(data.jsonApi.meta.lastLogin) : void 0;
1075
1073
  this._relevance = data.jsonApi.meta.relevance;
1076
- this._roles = this._readIncluded(data, "roles", _chunkHMHGLXWCjs.Modules.Role);
1077
- this._company = this._readIncluded(data, "company", _chunkHMHGLXWCjs.Modules.Company);
1078
- this._modules = this._readIncluded(data, "modules", _chunkHMHGLXWCjs.Modules.Module);
1074
+ this._roles = this._readIncluded(data, "roles", _chunkWZJDLITGjs.Modules.Role);
1075
+ this._company = this._readIncluded(data, "company", _chunkWZJDLITGjs.Modules.Company);
1076
+ this._modules = this._readIncluded(data, "modules", _chunkWZJDLITGjs.Modules.Module);
1079
1077
  return this;
1080
1078
  }
1081
1079
  createJsonApi(data) {
1082
1080
  const response = {
1083
1081
  data: {
1084
- type: _chunkHMHGLXWCjs.Modules.User.name,
1082
+ type: _chunkWZJDLITGjs.Modules.User.name,
1085
1083
  id: data.id,
1086
1084
  attributes: {
1087
1085
  name: data.name
@@ -1103,7 +1101,7 @@ var User = (_class2 = class extends _chunkHMHGLXWCjs.AbstractApiData {constructo
1103
1101
  if (data.roleIds) {
1104
1102
  response.data.relationships.roles = {
1105
1103
  data: data.roleIds.map((roleId) => ({
1106
- type: _chunkHMHGLXWCjs.Modules.Role.name,
1104
+ type: _chunkWZJDLITGjs.Modules.Role.name,
1107
1105
  id: roleId
1108
1106
  }))
1109
1107
  };
@@ -1111,7 +1109,7 @@ var User = (_class2 = class extends _chunkHMHGLXWCjs.AbstractApiData {constructo
1111
1109
  if (data.companyId) {
1112
1110
  response.data.relationships.company = {
1113
1111
  data: {
1114
- type: _chunkHMHGLXWCjs.Modules.Company.name,
1112
+ type: _chunkWZJDLITGjs.Modules.Company.name,
1115
1113
  id: data.companyId
1116
1114
  }
1117
1115
  };
@@ -1132,65 +1130,65 @@ var UserFields = /* @__PURE__ */ ((UserFields2) => {
1132
1130
  })(UserFields || {});
1133
1131
 
1134
1132
  // src/features/user/data/user.service.ts
1135
- var UserService = class extends _chunkHMHGLXWCjs.AbstractService {
1133
+ var UserService = class extends _chunkWZJDLITGjs.AbstractService {
1136
1134
  static {
1137
1135
  _chunk7QVYU63Ejs.__name.call(void 0, this, "UserService");
1138
1136
  }
1139
1137
  static async findFullUser() {
1140
- const endpoint = new (0, _chunkHMHGLXWCjs.EndpointCreator)({ endpoint: _chunkHMHGLXWCjs.Modules.User, id: "me", childEndpoint: "full" });
1138
+ const endpoint = new (0, _chunkWZJDLITGjs.EndpointCreator)({ endpoint: _chunkWZJDLITGjs.Modules.User, id: "me", childEndpoint: "full" });
1141
1139
  return this.callApi({
1142
- type: _chunkHMHGLXWCjs.Modules.User,
1140
+ type: _chunkWZJDLITGjs.Modules.User,
1143
1141
  method: "GET" /* GET */,
1144
1142
  endpoint: endpoint.generate()
1145
1143
  });
1146
1144
  }
1147
1145
  static async findById(params) {
1148
1146
  return this.callApi({
1149
- type: _chunkHMHGLXWCjs.Modules.User,
1147
+ type: _chunkWZJDLITGjs.Modules.User,
1150
1148
  method: "GET" /* GET */,
1151
- endpoint: new (0, _chunkHMHGLXWCjs.EndpointCreator)({ endpoint: _chunkHMHGLXWCjs.Modules.User, id: params.userId }).generate()
1149
+ endpoint: new (0, _chunkWZJDLITGjs.EndpointCreator)({ endpoint: _chunkWZJDLITGjs.Modules.User, id: params.userId }).generate()
1152
1150
  });
1153
1151
  }
1154
1152
  static async findByEmail(params) {
1155
- const endpoint = new (0, _chunkHMHGLXWCjs.EndpointCreator)({ endpoint: _chunkHMHGLXWCjs.Modules.User, id: "email", childEndpoint: params.email });
1156
- return this.callApi({ type: _chunkHMHGLXWCjs.Modules.User, method: "GET" /* GET */, endpoint: endpoint.generate() });
1153
+ const endpoint = new (0, _chunkWZJDLITGjs.EndpointCreator)({ endpoint: _chunkWZJDLITGjs.Modules.User, id: "email", childEndpoint: params.email });
1154
+ return this.callApi({ type: _chunkWZJDLITGjs.Modules.User, method: "GET" /* GET */, endpoint: endpoint.generate() });
1157
1155
  }
1158
1156
  static async findMany(params) {
1159
- const endpoint = new (0, _chunkHMHGLXWCjs.EndpointCreator)({ endpoint: _chunkHMHGLXWCjs.Modules.User });
1157
+ const endpoint = new (0, _chunkWZJDLITGjs.EndpointCreator)({ endpoint: _chunkWZJDLITGjs.Modules.User });
1160
1158
  if (params.roleId) endpoint.addAdditionalParam("roleId", params.roleId);
1161
1159
  if (params.includeDeleted) endpoint.addAdditionalParam("includeDeleted", "true");
1162
1160
  if (params.fetchAll) endpoint.addAdditionalParam("fetchAll", "true");
1163
1161
  if (params.search) endpoint.addAdditionalParam("search", params.search);
1164
1162
  return this.callApi({
1165
- type: _chunkHMHGLXWCjs.Modules.User,
1163
+ type: _chunkWZJDLITGjs.Modules.User,
1166
1164
  method: "GET" /* GET */,
1167
1165
  endpoint: endpoint.generate(),
1168
1166
  next: params.next
1169
1167
  });
1170
1168
  }
1171
1169
  static async findManyByContentIds(params) {
1172
- const endpoint = new (0, _chunkHMHGLXWCjs.EndpointCreator)({ endpoint: _chunkHMHGLXWCjs.Modules.User });
1170
+ const endpoint = new (0, _chunkWZJDLITGjs.EndpointCreator)({ endpoint: _chunkWZJDLITGjs.Modules.User });
1173
1171
  endpoint.addAdditionalParam("contentIds", params.contentIds.map((id) => id).join(","));
1174
1172
  endpoint.addAdditionalParam("includeDeleted", "true");
1175
1173
  endpoint.addAdditionalParam("fetchAll", "true");
1176
1174
  if (params.search) endpoint.addAdditionalParam("search", params.search);
1177
1175
  return this.callApi({
1178
- type: _chunkHMHGLXWCjs.Modules.User,
1176
+ type: _chunkWZJDLITGjs.Modules.User,
1179
1177
  method: "GET" /* GET */,
1180
1178
  endpoint: endpoint.generate(),
1181
1179
  next: params.next
1182
1180
  });
1183
1181
  }
1184
1182
  static async findRelevant(params) {
1185
- const endpoint = new (0, _chunkHMHGLXWCjs.EndpointCreator)({
1186
- endpoint: _chunkHMHGLXWCjs.Modules.Content,
1183
+ const endpoint = new (0, _chunkWZJDLITGjs.EndpointCreator)({
1184
+ endpoint: _chunkWZJDLITGjs.Modules.Content,
1187
1185
  id: params.id,
1188
1186
  childEndpoint: "user-relevance"
1189
1187
  });
1190
- if (_optionalChain([_chunkHMHGLXWCjs.Modules, 'access', _48 => _48.User, 'access', _49 => _49.inclusions, 'optionalAccess', _50 => _50.lists, 'optionalAccess', _51 => _51.fields])) endpoint.limitToFields(_chunkHMHGLXWCjs.Modules.User.inclusions.lists.fields);
1191
- if (_optionalChain([_chunkHMHGLXWCjs.Modules, 'access', _52 => _52.User, 'access', _53 => _53.inclusions, 'optionalAccess', _54 => _54.lists, 'optionalAccess', _55 => _55.types])) endpoint.limitToType(_chunkHMHGLXWCjs.Modules.User.inclusions.lists.types);
1188
+ if (_optionalChain([_chunkWZJDLITGjs.Modules, 'access', _48 => _48.User, 'access', _49 => _49.inclusions, 'optionalAccess', _50 => _50.lists, 'optionalAccess', _51 => _51.fields])) endpoint.limitToFields(_chunkWZJDLITGjs.Modules.User.inclusions.lists.fields);
1189
+ if (_optionalChain([_chunkWZJDLITGjs.Modules, 'access', _52 => _52.User, 'access', _53 => _53.inclusions, 'optionalAccess', _54 => _54.lists, 'optionalAccess', _55 => _55.types])) endpoint.limitToType(_chunkWZJDLITGjs.Modules.User.inclusions.lists.types);
1192
1190
  return this.callApi({
1193
- type: _chunkHMHGLXWCjs.Modules.User,
1191
+ type: _chunkWZJDLITGjs.Modules.User,
1194
1192
  method: "GET" /* GET */,
1195
1193
  endpoint: endpoint.generate(),
1196
1194
  next: params.next
@@ -1198,14 +1196,14 @@ var UserService = class extends _chunkHMHGLXWCjs.AbstractService {
1198
1196
  }
1199
1197
  static async findManyForAmin(params) {
1200
1198
  if (!params.companyId) return [];
1201
- const endpoint = new (0, _chunkHMHGLXWCjs.EndpointCreator)({
1202
- endpoint: _chunkHMHGLXWCjs.Modules.Company,
1199
+ const endpoint = new (0, _chunkWZJDLITGjs.EndpointCreator)({
1200
+ endpoint: _chunkWZJDLITGjs.Modules.Company,
1203
1201
  id: params.companyId,
1204
- childEndpoint: _chunkHMHGLXWCjs.Modules.User
1202
+ childEndpoint: _chunkWZJDLITGjs.Modules.User
1205
1203
  });
1206
1204
  if (params.search) endpoint.addAdditionalParam("search", params.search);
1207
1205
  return this.callApi({
1208
- type: _chunkHMHGLXWCjs.Modules.User,
1206
+ type: _chunkWZJDLITGjs.Modules.User,
1209
1207
  method: "GET" /* GET */,
1210
1208
  endpoint: endpoint.generate(),
1211
1209
  next: params.next,
@@ -1213,41 +1211,41 @@ var UserService = class extends _chunkHMHGLXWCjs.AbstractService {
1213
1211
  });
1214
1212
  }
1215
1213
  static async findAllUsers(params) {
1216
- const endpoint = new (0, _chunkHMHGLXWCjs.EndpointCreator)({
1217
- endpoint: _chunkHMHGLXWCjs.Modules.Company,
1214
+ const endpoint = new (0, _chunkWZJDLITGjs.EndpointCreator)({
1215
+ endpoint: _chunkWZJDLITGjs.Modules.Company,
1218
1216
  id: params.companyId,
1219
- childEndpoint: _chunkHMHGLXWCjs.Modules.User
1217
+ childEndpoint: _chunkWZJDLITGjs.Modules.User
1220
1218
  });
1221
1219
  if (params.search) endpoint.addAdditionalParam("search", params.search);
1222
1220
  if (params.isDeleted) endpoint.addAdditionalParam("isDeleted", "true");
1223
1221
  if (params.limitToRoles && params.limitToRoles.length > 0)
1224
1222
  endpoint.addAdditionalParam("limitToRoles", params.limitToRoles.join(","));
1225
1223
  return this.callApi({
1226
- type: _chunkHMHGLXWCjs.Modules.User,
1224
+ type: _chunkWZJDLITGjs.Modules.User,
1227
1225
  method: "GET" /* GET */,
1228
1226
  endpoint: endpoint.generate(),
1229
1227
  next: params.next
1230
1228
  });
1231
1229
  }
1232
1230
  static async findAllUsersByRole(params) {
1233
- const endpoint = new (0, _chunkHMHGLXWCjs.EndpointCreator)({ endpoint: _chunkHMHGLXWCjs.Modules.Role, id: params.roleId, childEndpoint: _chunkHMHGLXWCjs.Modules.User });
1231
+ const endpoint = new (0, _chunkWZJDLITGjs.EndpointCreator)({ endpoint: _chunkWZJDLITGjs.Modules.Role, id: params.roleId, childEndpoint: _chunkWZJDLITGjs.Modules.User });
1234
1232
  if (params.search) endpoint.addAdditionalParam("search", params.search);
1235
1233
  return this.callApi({
1236
- type: _chunkHMHGLXWCjs.Modules.User,
1234
+ type: _chunkWZJDLITGjs.Modules.User,
1237
1235
  method: "GET" /* GET */,
1238
1236
  endpoint: endpoint.generate(),
1239
1237
  next: params.next
1240
1238
  });
1241
1239
  }
1242
1240
  static async findAllUsersNotInRole(params) {
1243
- const endpoint = new (0, _chunkHMHGLXWCjs.EndpointCreator)({
1244
- endpoint: _chunkHMHGLXWCjs.Modules.Role,
1241
+ const endpoint = new (0, _chunkWZJDLITGjs.EndpointCreator)({
1242
+ endpoint: _chunkWZJDLITGjs.Modules.Role,
1245
1243
  id: params.roleId,
1246
- childEndpoint: _chunkHMHGLXWCjs.Modules.User
1244
+ childEndpoint: _chunkWZJDLITGjs.Modules.User
1247
1245
  }).addAdditionalParam("notInRole", "true");
1248
1246
  if (params.search) endpoint.addAdditionalParam("search", params.search);
1249
1247
  return this.callApi({
1250
- type: _chunkHMHGLXWCjs.Modules.User,
1248
+ type: _chunkWZJDLITGjs.Modules.User,
1251
1249
  method: "GET" /* GET */,
1252
1250
  endpoint: endpoint.generate(),
1253
1251
  next: params.next
@@ -1255,56 +1253,56 @@ var UserService = class extends _chunkHMHGLXWCjs.AbstractService {
1255
1253
  }
1256
1254
  static async create(params) {
1257
1255
  return this.callApi({
1258
- type: _chunkHMHGLXWCjs.Modules.User,
1256
+ type: _chunkWZJDLITGjs.Modules.User,
1259
1257
  method: "POST" /* POST */,
1260
- endpoint: new (0, _chunkHMHGLXWCjs.EndpointCreator)({ endpoint: _chunkHMHGLXWCjs.Modules.User }).generate(),
1258
+ endpoint: new (0, _chunkWZJDLITGjs.EndpointCreator)({ endpoint: _chunkWZJDLITGjs.Modules.User }).generate(),
1261
1259
  companyId: params.companyId,
1262
1260
  input: params
1263
1261
  });
1264
1262
  }
1265
1263
  static async reactivate(params) {
1266
1264
  return this.callApi({
1267
- type: _chunkHMHGLXWCjs.Modules.User,
1265
+ type: _chunkWZJDLITGjs.Modules.User,
1268
1266
  method: "PATCH" /* PATCH */,
1269
- endpoint: new (0, _chunkHMHGLXWCjs.EndpointCreator)({ endpoint: _chunkHMHGLXWCjs.Modules.User, id: params.userId }).generate()
1267
+ endpoint: new (0, _chunkWZJDLITGjs.EndpointCreator)({ endpoint: _chunkWZJDLITGjs.Modules.User, id: params.userId }).generate()
1270
1268
  });
1271
1269
  }
1272
1270
  static async sendInvitation(params) {
1273
- const endpoint = new (0, _chunkHMHGLXWCjs.EndpointCreator)({
1274
- endpoint: _chunkHMHGLXWCjs.Modules.User,
1271
+ const endpoint = new (0, _chunkWZJDLITGjs.EndpointCreator)({
1272
+ endpoint: _chunkWZJDLITGjs.Modules.User,
1275
1273
  id: params.userId,
1276
1274
  childEndpoint: "send-invitation-email"
1277
1275
  });
1278
1276
  if (params.companyId) endpoint.addAdditionalParam("companyId", params.companyId);
1279
1277
  this.callApi({
1280
- type: _chunkHMHGLXWCjs.Modules.User,
1278
+ type: _chunkWZJDLITGjs.Modules.User,
1281
1279
  method: "POST" /* POST */,
1282
1280
  endpoint: endpoint.generate()
1283
1281
  });
1284
1282
  }
1285
1283
  static async update(params) {
1286
1284
  return this.callApi({
1287
- type: _chunkHMHGLXWCjs.Modules.User,
1285
+ type: _chunkWZJDLITGjs.Modules.User,
1288
1286
  method: "PUT" /* PUT */,
1289
- endpoint: new (0, _chunkHMHGLXWCjs.EndpointCreator)({ endpoint: _chunkHMHGLXWCjs.Modules.User, id: params.id }).generate(),
1287
+ endpoint: new (0, _chunkWZJDLITGjs.EndpointCreator)({ endpoint: _chunkWZJDLITGjs.Modules.User, id: params.id }).generate(),
1290
1288
  companyId: params.companyId,
1291
1289
  input: params
1292
1290
  });
1293
1291
  }
1294
1292
  static async patchRate(params) {
1295
1293
  return this.callApi({
1296
- type: _chunkHMHGLXWCjs.Modules.User,
1294
+ type: _chunkWZJDLITGjs.Modules.User,
1297
1295
  method: "PATCH" /* PATCH */,
1298
- endpoint: new (0, _chunkHMHGLXWCjs.EndpointCreator)({ endpoint: _chunkHMHGLXWCjs.Modules.User, id: params.id, childEndpoint: "rates" }).generate(),
1296
+ endpoint: new (0, _chunkWZJDLITGjs.EndpointCreator)({ endpoint: _chunkWZJDLITGjs.Modules.User, id: params.id, childEndpoint: "rates" }).generate(),
1299
1297
  companyId: params.companyId,
1300
1298
  input: params
1301
1299
  });
1302
1300
  }
1303
1301
  static async delete(params) {
1304
1302
  await this.callApi({
1305
- type: _chunkHMHGLXWCjs.Modules.User,
1303
+ type: _chunkWZJDLITGjs.Modules.User,
1306
1304
  method: "DELETE" /* DELETE */,
1307
- endpoint: new (0, _chunkHMHGLXWCjs.EndpointCreator)({ endpoint: _chunkHMHGLXWCjs.Modules.User, id: params.userId }).generate(),
1305
+ endpoint: new (0, _chunkWZJDLITGjs.EndpointCreator)({ endpoint: _chunkWZJDLITGjs.Modules.User, id: params.userId }).generate(),
1308
1306
  companyId: params.companyId
1309
1307
  });
1310
1308
  }
@@ -1355,4 +1353,4 @@ var AuthorModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factory
1355
1353
 
1356
1354
 
1357
1355
  exports.Role = Role; exports.RoleFields = RoleFields; exports.RoleService = RoleService; exports.RoleModule = RoleModule; exports.User = User; exports.UserFields = UserFields; exports.UserService = UserService; exports.S3 = S3; exports.S3Module = S3Module; exports.S3Service = S3Service; exports.AuthorModule = AuthorModule; exports.Company = Company; exports.CompanyFields = CompanyFields; exports.CompanyService = CompanyService; exports.Feature = Feature; exports.FeatureModule = FeatureModule; exports.FeatureService = FeatureService; exports.Notification = Notification; exports.NotificationFields = NotificationFields; exports.NotificationService = NotificationService; exports.AuthModule = AuthModule; exports.Auth = Auth; exports.AuthService = AuthService; exports.AuthComponent = AuthComponent; exports.CompanyModule = CompanyModule; exports.ContentModule = ContentModule; exports.Content = Content; exports.ContentFields = ContentFields; exports.ContentService = ContentService; exports.Module = Module; exports.ModuleModule = ModuleModule; exports.NotificationModule = NotificationModule; exports.Push = Push; exports.PushModule = PushModule; exports.PushService = PushService;
1358
- //# sourceMappingURL=chunk-RZO2LOW4.js.map
1356
+ //# sourceMappingURL=chunk-FYRFMABS.js.map