@carlonicora/nextjs-jsonapi 1.68.0 → 1.70.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AuthComponent-NwQ_ZXsv.d.mts → AuthComponent-DXe3kPzb.d.mts} +1 -1
- package/dist/{AuthComponent-DL1D3y7f.d.ts → AuthComponent-Di8DsZ2I.d.ts} +1 -1
- package/dist/{BlockNoteEditor-6FDECIS2.mjs → BlockNoteEditor-6XV2IXLY.mjs} +15 -9
- package/dist/BlockNoteEditor-6XV2IXLY.mjs.map +1 -0
- package/dist/{BlockNoteEditor-DXHROT4C.js → BlockNoteEditor-NVPUPZXB.js} +25 -19
- package/dist/BlockNoteEditor-NVPUPZXB.js.map +1 -0
- package/dist/HowToInterface-DtVWAE1s.d.mts +17 -0
- package/dist/HowToInterface-NaqSG9sE.d.ts +17 -0
- package/dist/{auth.interface-BX_1qZZJ.d.ts → auth.interface-BTco8PWs.d.ts} +1 -1
- package/dist/{auth.interface-yeLelxdI.d.mts → auth.interface-C4uJzBec.d.mts} +1 -1
- package/dist/billing/index.js +346 -346
- package/dist/billing/index.mjs +3 -3
- package/dist/{chunk-37KYO2UD.js → chunk-56VU7A4I.js} +172 -18
- package/dist/chunk-56VU7A4I.js.map +1 -0
- package/dist/{chunk-WOJIRXIP.js → chunk-6ROMPIIP.js} +11 -11
- package/dist/{chunk-WOJIRXIP.js.map → chunk-6ROMPIIP.js.map} +1 -1
- package/dist/{chunk-IOMDNRX5.mjs → chunk-GZNHBAZF.mjs} +155 -1
- package/dist/chunk-GZNHBAZF.mjs.map +1 -0
- package/dist/{chunk-H4ZS3R76.mjs → chunk-LQEKQYUJ.mjs} +2569 -1603
- package/dist/chunk-LQEKQYUJ.mjs.map +1 -0
- package/dist/{chunk-WVTBEVAL.mjs → chunk-WJYWWOTG.mjs} +2 -2
- package/dist/{chunk-ELTHSXBI.js → chunk-ZKOLKFAS.js} +1664 -698
- package/dist/chunk-ZKOLKFAS.js.map +1 -0
- package/dist/client/index.d.mts +5 -6
- package/dist/client/index.d.ts +5 -6
- package/dist/client/index.js +4 -4
- package/dist/client/index.mjs +3 -3
- package/dist/components/index.d.mts +83 -10
- package/dist/components/index.d.ts +83 -10
- package/dist/components/index.js +26 -4
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +25 -3
- package/dist/{config-D-mqttuF.d.mts → config-Bmr_0qTn.d.mts} +1 -1
- package/dist/{config-CyCAWW-d.d.ts → config-n0lfSf27.d.ts} +1 -1
- package/dist/contexts/index.d.mts +16 -4
- package/dist/contexts/index.d.ts +16 -4
- package/dist/contexts/index.js +8 -4
- package/dist/contexts/index.js.map +1 -1
- package/dist/contexts/index.mjs +7 -3
- package/dist/core/index.d.mts +61 -11
- package/dist/core/index.d.ts +61 -11
- package/dist/core/index.js +10 -2
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.mjs +9 -1
- package/dist/index.d.mts +9 -10
- package/dist/index.d.ts +9 -10
- package/dist/index.js +11 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -2
- package/dist/{notification.interface-ItBxq2au.d.ts → notification.interface-DYDZENx2.d.ts} +18 -1
- package/dist/{notification.interface-C6UcmJqu.d.mts → notification.interface-DrHu_1MM.d.mts} +18 -1
- package/dist/{s3.service-N1g0piXD.d.ts → s3.service-DK2KKXbR.d.ts} +2 -3
- package/dist/{s3.service-CHOTwfWA.d.mts → s3.service-TsN2unZr.d.mts} +2 -3
- package/dist/server/index.d.mts +3 -4
- package/dist/server/index.d.ts +3 -4
- package/dist/server/index.js +3 -3
- package/dist/server/index.mjs +1 -1
- package/dist/{useRbacState-CUj0hp8t.d.ts → useRbacState-BYaSdA78.d.ts} +1 -1
- package/dist/{useRbacState-Btk1gkQg.d.mts → useRbacState-CQEJ_ysV.d.mts} +1 -1
- package/dist/{useSocket-BSUN9s3p.d.ts → useSocket-Cjt_qvkI.d.ts} +1 -1
- package/dist/{useSocket-DKI92Fbg.d.mts → useSocket-VAGetcT3.d.mts} +1 -1
- package/package.json +1 -1
- package/src/components/editors/BlockNoteEditor.tsx +7 -1
- package/src/components/forms/FormBlockNote.tsx +6 -0
- package/src/components/forms/FormSelect.tsx +3 -0
- package/src/components/index.ts +1 -0
- package/src/contexts/index.ts +1 -0
- package/src/core/index.ts +2 -0
- package/src/core/registry/ModuleRegistry.ts +19 -0
- package/src/features/how-to/HowToModule.ts +18 -0
- package/src/features/how-to/components/containers/HowToCommand.tsx +230 -0
- package/src/features/how-to/components/containers/HowToCommandViewer.tsx +76 -0
- package/src/features/how-to/components/containers/HowToContainer.tsx +27 -0
- package/src/features/how-to/components/containers/HowToListContainer.tsx +17 -0
- package/src/features/how-to/components/details/HowToContent.tsx +16 -0
- package/src/features/how-to/components/details/HowToDetails.tsx +52 -0
- package/src/features/how-to/components/forms/HowToDeleter.tsx +31 -0
- package/src/features/how-to/components/forms/HowToEditor.tsx +270 -0
- package/src/features/how-to/components/forms/HowToMultiSelector.tsx +152 -0
- package/src/features/how-to/components/forms/HowToSelector.tsx +164 -0
- package/src/features/how-to/components/index.ts +11 -0
- package/src/features/how-to/components/lists/HowToList.tsx +39 -0
- package/src/features/how-to/contexts/HowToContext.tsx +101 -0
- package/src/features/how-to/data/HowTo.ts +69 -0
- package/src/features/how-to/data/HowToFields.ts +10 -0
- package/src/features/how-to/data/HowToInterface.ts +11 -0
- package/src/features/how-to/data/HowToService.ts +61 -0
- package/src/features/how-to/data/index.ts +4 -0
- package/src/features/how-to/hooks/useHowToTableStructure.tsx +86 -0
- package/src/features/how-to/index.ts +2 -0
- package/src/features/how-to/utils/blocknote.ts +108 -0
- package/src/features/how-to/utils/index.ts +1 -0
- package/dist/BlockNoteEditor-6FDECIS2.mjs.map +0 -1
- package/dist/BlockNoteEditor-DXHROT4C.js.map +0 -1
- package/dist/breadcrumb.item.data.interface-CgB4_1EE.d.mts +0 -6
- package/dist/breadcrumb.item.data.interface-CgB4_1EE.d.ts +0 -6
- package/dist/chunk-37KYO2UD.js.map +0 -1
- package/dist/chunk-ELTHSXBI.js.map +0 -1
- package/dist/chunk-H4ZS3R76.mjs.map +0 -1
- package/dist/chunk-IOMDNRX5.mjs.map +0 -1
- package/dist/content.interface-8T5-G84c.d.mts +0 -21
- package/dist/content.interface-D-xdYxjt.d.ts +0 -21
- /package/dist/{chunk-WVTBEVAL.mjs.map → chunk-WJYWWOTG.mjs.map} +0 -0
package/dist/billing/index.mjs
CHANGED
|
@@ -47,11 +47,11 @@ import {
|
|
|
47
47
|
TabsList,
|
|
48
48
|
TabsTrigger,
|
|
49
49
|
useCurrentUserContext
|
|
50
|
-
} from "../chunk-
|
|
50
|
+
} from "../chunk-LQEKQYUJ.mjs";
|
|
51
51
|
import {
|
|
52
52
|
getRoleId,
|
|
53
53
|
getStripePublishableKey
|
|
54
|
-
} from "../chunk-
|
|
54
|
+
} from "../chunk-WJYWWOTG.mjs";
|
|
55
55
|
import {
|
|
56
56
|
FeatureService,
|
|
57
57
|
StripeCustomerService,
|
|
@@ -62,7 +62,7 @@ import {
|
|
|
62
62
|
StripeSubscriptionService,
|
|
63
63
|
StripeUsageService,
|
|
64
64
|
cn
|
|
65
|
-
} from "../chunk-
|
|
65
|
+
} from "../chunk-GZNHBAZF.mjs";
|
|
66
66
|
import "../chunk-AUXK7QSA.mjs";
|
|
67
67
|
import "../chunk-C7C7VY4F.mjs";
|
|
68
68
|
import "../chunk-BTKJFMFL.mjs";
|
|
@@ -953,6 +953,22 @@ var ModuleRegistryClass = class {
|
|
|
953
953
|
}
|
|
954
954
|
throw new Error(`Module not found: ${moduleName}`);
|
|
955
955
|
}
|
|
956
|
+
getAllPageUrls() {
|
|
957
|
+
if (this._modules.size === 0) {
|
|
958
|
+
_chunk4MN547K7js.tryBootstrap.call(void 0, );
|
|
959
|
+
}
|
|
960
|
+
const seen = /* @__PURE__ */ new Set();
|
|
961
|
+
const result = [];
|
|
962
|
+
for (const [key, module] of this._modules.entries()) {
|
|
963
|
+
const m = module;
|
|
964
|
+
if (m.pageUrl && !seen.has(m.pageUrl)) {
|
|
965
|
+
seen.add(m.pageUrl);
|
|
966
|
+
result.push({ id: m.pageUrl, text: key });
|
|
967
|
+
result.push({ id: `${m.pageUrl}/:id`, text: `${key} (detail)` });
|
|
968
|
+
}
|
|
969
|
+
}
|
|
970
|
+
return result.sort((a, b) => a.text.localeCompare(b.text));
|
|
971
|
+
}
|
|
956
972
|
findByModelName(modelName) {
|
|
957
973
|
let module = this._modules.get(modelName);
|
|
958
974
|
if (!module) {
|
|
@@ -5200,6 +5216,140 @@ var ContentModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factor
|
|
|
5200
5216
|
}
|
|
5201
5217
|
}), "ContentModule");
|
|
5202
5218
|
|
|
5219
|
+
// src/features/how-to/HowToModule.ts
|
|
5220
|
+
|
|
5221
|
+
|
|
5222
|
+
// src/features/how-to/data/HowTo.ts
|
|
5223
|
+
var HowTo = class extends Content {
|
|
5224
|
+
static {
|
|
5225
|
+
_chunk7QVYU63Ejs.__name.call(void 0, this, "HowTo");
|
|
5226
|
+
}
|
|
5227
|
+
|
|
5228
|
+
|
|
5229
|
+
/**
|
|
5230
|
+
* Parse pages from backend JSON string (handles legacy single string + JSON array)
|
|
5231
|
+
*/
|
|
5232
|
+
static parsePagesFromString(pagesStr) {
|
|
5233
|
+
if (!pagesStr) return [];
|
|
5234
|
+
try {
|
|
5235
|
+
const parsed = JSON.parse(pagesStr);
|
|
5236
|
+
return Array.isArray(parsed) ? parsed : [pagesStr];
|
|
5237
|
+
} catch (e3) {
|
|
5238
|
+
return pagesStr ? [pagesStr] : [];
|
|
5239
|
+
}
|
|
5240
|
+
}
|
|
5241
|
+
/**
|
|
5242
|
+
* Serialize pages array to JSON string for backend
|
|
5243
|
+
*/
|
|
5244
|
+
static serializePagesToString(pages) {
|
|
5245
|
+
const filtered = pages.filter((p) => p.trim());
|
|
5246
|
+
return filtered.length > 0 ? JSON.stringify(filtered) : void 0;
|
|
5247
|
+
}
|
|
5248
|
+
get description() {
|
|
5249
|
+
return this._description;
|
|
5250
|
+
}
|
|
5251
|
+
get pages() {
|
|
5252
|
+
return this._pages;
|
|
5253
|
+
}
|
|
5254
|
+
rehydrate(data) {
|
|
5255
|
+
super.rehydrate(data);
|
|
5256
|
+
this._description = data.jsonApi.attributes.description ? JSON.parse(data.jsonApi.attributes.description) : void 0;
|
|
5257
|
+
this._pages = data.jsonApi.attributes.pages;
|
|
5258
|
+
return this;
|
|
5259
|
+
}
|
|
5260
|
+
createJsonApi(data) {
|
|
5261
|
+
const response = {
|
|
5262
|
+
data: {
|
|
5263
|
+
type: Modules.HowTo.name,
|
|
5264
|
+
id: data.id,
|
|
5265
|
+
attributes: {},
|
|
5266
|
+
meta: {},
|
|
5267
|
+
relationships: {}
|
|
5268
|
+
},
|
|
5269
|
+
included: []
|
|
5270
|
+
};
|
|
5271
|
+
super.addContentInput(response, data);
|
|
5272
|
+
if (data.description !== void 0) response.data.attributes.description = JSON.stringify(data.description);
|
|
5273
|
+
if (data.pages !== void 0) response.data.attributes.pages = data.pages;
|
|
5274
|
+
return response;
|
|
5275
|
+
}
|
|
5276
|
+
};
|
|
5277
|
+
|
|
5278
|
+
// src/features/how-to/HowToModule.ts
|
|
5279
|
+
var HowToModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factory) => factory({
|
|
5280
|
+
moduleId: "6f975207-0df3-4c0d-b541-ed5dc04487b2",
|
|
5281
|
+
pageUrl: "/administration/howtos",
|
|
5282
|
+
name: "howtos",
|
|
5283
|
+
model: HowTo,
|
|
5284
|
+
icon: _lucidereact.LifeBuoyIcon,
|
|
5285
|
+
inclusions: {
|
|
5286
|
+
lists: {
|
|
5287
|
+
fields: [createJsonApiInclusion("howtos", [`name`, `description`, `pages`])]
|
|
5288
|
+
}
|
|
5289
|
+
}
|
|
5290
|
+
}), "HowToModule");
|
|
5291
|
+
|
|
5292
|
+
// src/features/how-to/data/HowToFields.ts
|
|
5293
|
+
var HowToFields = /* @__PURE__ */ ((HowToFields2) => {
|
|
5294
|
+
HowToFields2["howToId"] = "howToId";
|
|
5295
|
+
HowToFields2["name"] = "name";
|
|
5296
|
+
HowToFields2["description"] = "description";
|
|
5297
|
+
HowToFields2["pages"] = "pages";
|
|
5298
|
+
HowToFields2["createdAt"] = "createdAt";
|
|
5299
|
+
HowToFields2["updatedAt"] = "updatedAt";
|
|
5300
|
+
return HowToFields2;
|
|
5301
|
+
})(HowToFields || {});
|
|
5302
|
+
|
|
5303
|
+
// src/features/how-to/data/HowToService.ts
|
|
5304
|
+
var HowToService = class extends AbstractService {
|
|
5305
|
+
static {
|
|
5306
|
+
_chunk7QVYU63Ejs.__name.call(void 0, this, "HowToService");
|
|
5307
|
+
}
|
|
5308
|
+
static async findOne(params) {
|
|
5309
|
+
return this.callApi({
|
|
5310
|
+
type: Modules.HowTo,
|
|
5311
|
+
method: "GET" /* GET */,
|
|
5312
|
+
endpoint: new EndpointCreator({ endpoint: Modules.HowTo, id: params.id }).generate()
|
|
5313
|
+
});
|
|
5314
|
+
}
|
|
5315
|
+
static async findMany(params = {}) {
|
|
5316
|
+
const endpoint = new EndpointCreator({ endpoint: Modules.HowTo });
|
|
5317
|
+
if (params.fetchAll) endpoint.addAdditionalParam("fetchAll", "true");
|
|
5318
|
+
if (params.search) endpoint.addAdditionalParam("search", params.search);
|
|
5319
|
+
if (_optionalChain([Modules, 'access', _128 => _128.HowTo, 'access', _129 => _129.inclusions, 'optionalAccess', _130 => _130.lists, 'optionalAccess', _131 => _131.fields])) endpoint.limitToFields(Modules.HowTo.inclusions.lists.fields);
|
|
5320
|
+
if (_optionalChain([Modules, 'access', _132 => _132.HowTo, 'access', _133 => _133.inclusions, 'optionalAccess', _134 => _134.lists, 'optionalAccess', _135 => _135.types])) endpoint.limitToType(Modules.HowTo.inclusions.lists.types);
|
|
5321
|
+
return this.callApi({
|
|
5322
|
+
type: Modules.HowTo,
|
|
5323
|
+
method: "GET" /* GET */,
|
|
5324
|
+
endpoint: endpoint.generate(),
|
|
5325
|
+
next: params.next
|
|
5326
|
+
});
|
|
5327
|
+
}
|
|
5328
|
+
static async create(params) {
|
|
5329
|
+
return this.callApi({
|
|
5330
|
+
type: Modules.HowTo,
|
|
5331
|
+
method: "POST" /* POST */,
|
|
5332
|
+
endpoint: new EndpointCreator({ endpoint: Modules.HowTo }).generate(),
|
|
5333
|
+
input: params
|
|
5334
|
+
});
|
|
5335
|
+
}
|
|
5336
|
+
static async update(params) {
|
|
5337
|
+
return this.callApi({
|
|
5338
|
+
type: Modules.HowTo,
|
|
5339
|
+
method: "PUT" /* PUT */,
|
|
5340
|
+
endpoint: new EndpointCreator({ endpoint: Modules.HowTo, id: params.id }).generate(),
|
|
5341
|
+
input: params
|
|
5342
|
+
});
|
|
5343
|
+
}
|
|
5344
|
+
static async delete(params) {
|
|
5345
|
+
await this.callApi({
|
|
5346
|
+
type: Modules.HowTo,
|
|
5347
|
+
method: "DELETE" /* DELETE */,
|
|
5348
|
+
endpoint: new EndpointCreator({ endpoint: Modules.HowTo, id: params.howToId }).generate()
|
|
5349
|
+
});
|
|
5350
|
+
}
|
|
5351
|
+
};
|
|
5352
|
+
|
|
5203
5353
|
// src/features/feature/data/feature.ts
|
|
5204
5354
|
var Feature = (_class18 = class extends AbstractApiData {constructor(...args16) { super(...args16); _class18.prototype.__init40.call(this); }
|
|
5205
5355
|
static {
|
|
@@ -5874,8 +6024,8 @@ var UserService = class extends AbstractService {
|
|
|
5874
6024
|
id: params.id,
|
|
5875
6025
|
childEndpoint: "user-relevance"
|
|
5876
6026
|
});
|
|
5877
|
-
if (_optionalChain([Modules, 'access',
|
|
5878
|
-
if (_optionalChain([Modules, 'access',
|
|
6027
|
+
if (_optionalChain([Modules, 'access', _136 => _136.User, 'access', _137 => _137.inclusions, 'optionalAccess', _138 => _138.lists, 'optionalAccess', _139 => _139.fields])) endpoint.limitToFields(Modules.User.inclusions.lists.fields);
|
|
6028
|
+
if (_optionalChain([Modules, 'access', _140 => _140.User, 'access', _141 => _141.inclusions, 'optionalAccess', _142 => _142.lists, 'optionalAccess', _143 => _143.types])) endpoint.limitToType(Modules.User.inclusions.lists.types);
|
|
5879
6029
|
return this.callApi({
|
|
5880
6030
|
type: Modules.User,
|
|
5881
6031
|
method: "GET" /* GET */,
|
|
@@ -6134,7 +6284,7 @@ var OAuthService = class extends AbstractService {
|
|
|
6134
6284
|
type: Modules.OAuth,
|
|
6135
6285
|
method: "GET" /* GET */,
|
|
6136
6286
|
endpoint: new EndpointCreator({ endpoint: "oauth/clients" }).generate(),
|
|
6137
|
-
next: _optionalChain([params, 'optionalAccess',
|
|
6287
|
+
next: _optionalChain([params, 'optionalAccess', _144 => _144.next])
|
|
6138
6288
|
});
|
|
6139
6289
|
}
|
|
6140
6290
|
/**
|
|
@@ -6160,7 +6310,7 @@ var OAuthService = class extends AbstractService {
|
|
|
6160
6310
|
});
|
|
6161
6311
|
return {
|
|
6162
6312
|
client: result.data,
|
|
6163
|
-
clientSecret: _optionalChain([result, 'access',
|
|
6313
|
+
clientSecret: _optionalChain([result, 'access', _145 => _145.meta, 'optionalAccess', _146 => _146.clientSecret])
|
|
6164
6314
|
};
|
|
6165
6315
|
}
|
|
6166
6316
|
/**
|
|
@@ -6199,7 +6349,7 @@ var OAuthService = class extends AbstractService {
|
|
|
6199
6349
|
}).generate()
|
|
6200
6350
|
});
|
|
6201
6351
|
return {
|
|
6202
|
-
clientSecret: _optionalChain([result, 'access',
|
|
6352
|
+
clientSecret: _optionalChain([result, 'access', _147 => _147.meta, 'optionalAccess', _148 => _148.clientSecret])
|
|
6203
6353
|
};
|
|
6204
6354
|
}
|
|
6205
6355
|
// ==========================================
|
|
@@ -6243,7 +6393,7 @@ var OAuthService = class extends AbstractService {
|
|
|
6243
6393
|
overridesJsonApiCreation: true
|
|
6244
6394
|
});
|
|
6245
6395
|
return {
|
|
6246
|
-
redirectUrl: _optionalChain([result, 'access',
|
|
6396
|
+
redirectUrl: _optionalChain([result, 'access', _149 => _149.meta, 'optionalAccess', _150 => _150.redirectUrl])
|
|
6247
6397
|
};
|
|
6248
6398
|
}
|
|
6249
6399
|
/**
|
|
@@ -6263,7 +6413,7 @@ var OAuthService = class extends AbstractService {
|
|
|
6263
6413
|
overridesJsonApiCreation: true
|
|
6264
6414
|
});
|
|
6265
6415
|
return {
|
|
6266
|
-
redirectUrl: _optionalChain([result, 'access',
|
|
6416
|
+
redirectUrl: _optionalChain([result, 'access', _151 => _151.meta, 'optionalAccess', _152 => _152.redirectUrl])
|
|
6267
6417
|
};
|
|
6268
6418
|
}
|
|
6269
6419
|
};
|
|
@@ -6447,15 +6597,15 @@ var WaitlistService = class extends AbstractService {
|
|
|
6447
6597
|
*/
|
|
6448
6598
|
static async findMany(params) {
|
|
6449
6599
|
const endpoint = new EndpointCreator({ endpoint: Modules.Waitlist });
|
|
6450
|
-
if (_optionalChain([params, 'optionalAccess',
|
|
6451
|
-
if (_optionalChain([params, 'optionalAccess',
|
|
6452
|
-
if (_optionalChain([params, 'optionalAccess',
|
|
6600
|
+
if (_optionalChain([params, 'optionalAccess', _153 => _153.status])) endpoint.addAdditionalParam("status", params.status);
|
|
6601
|
+
if (_optionalChain([params, 'optionalAccess', _154 => _154.search])) endpoint.addAdditionalParam("search", params.search);
|
|
6602
|
+
if (_optionalChain([params, 'optionalAccess', _155 => _155.fetchAll])) endpoint.addAdditionalParam("fetchAll", "true");
|
|
6453
6603
|
return this.callApi({
|
|
6454
6604
|
type: Modules.Waitlist,
|
|
6455
6605
|
method: "GET" /* GET */,
|
|
6456
6606
|
endpoint: endpoint.generate(),
|
|
6457
|
-
next: _optionalChain([params, 'optionalAccess',
|
|
6458
|
-
previous: _optionalChain([params, 'optionalAccess',
|
|
6607
|
+
next: _optionalChain([params, 'optionalAccess', _156 => _156.next]),
|
|
6608
|
+
previous: _optionalChain([params, 'optionalAccess', _157 => _157.prev])
|
|
6459
6609
|
});
|
|
6460
6610
|
}
|
|
6461
6611
|
/**
|
|
@@ -6523,10 +6673,10 @@ var WaitlistService = class extends AbstractService {
|
|
|
6523
6673
|
method: "GET" /* GET */,
|
|
6524
6674
|
endpoint: endpoint.generate()
|
|
6525
6675
|
});
|
|
6526
|
-
const attributes = _optionalChain([response, 'access',
|
|
6676
|
+
const attributes = _optionalChain([response, 'access', _158 => _158.data, 'optionalAccess', _159 => _159._jsonApi, 'optionalAccess', _160 => _160.attributes]);
|
|
6527
6677
|
return {
|
|
6528
|
-
email: _optionalChain([attributes, 'optionalAccess',
|
|
6529
|
-
valid: _nullishCoalesce(_optionalChain([attributes, 'optionalAccess',
|
|
6678
|
+
email: _optionalChain([attributes, 'optionalAccess', _161 => _161.email]),
|
|
6679
|
+
valid: _nullishCoalesce(_optionalChain([attributes, 'optionalAccess', _162 => _162.valid]), () => ( false))
|
|
6530
6680
|
};
|
|
6531
6681
|
} catch (_error) {
|
|
6532
6682
|
return null;
|
|
@@ -6612,7 +6762,7 @@ var PermissionMapping = class extends AbstractApiData {
|
|
|
6612
6762
|
super.rehydrate(data);
|
|
6613
6763
|
this._roleId = data.jsonApi.attributes.roleId;
|
|
6614
6764
|
this._moduleId = data.jsonApi.attributes.moduleId;
|
|
6615
|
-
this._permissions = _optionalChain([data, 'access',
|
|
6765
|
+
this._permissions = _optionalChain([data, 'access', _163 => _163.jsonApi, 'access', _164 => _164.meta, 'optionalAccess', _165 => _165.permissions]);
|
|
6616
6766
|
return this;
|
|
6617
6767
|
}
|
|
6618
6768
|
};
|
|
@@ -6987,5 +7137,9 @@ var AuditLogModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (facto
|
|
|
6987
7137
|
|
|
6988
7138
|
|
|
6989
7139
|
|
|
6990
|
-
|
|
6991
|
-
|
|
7140
|
+
|
|
7141
|
+
|
|
7142
|
+
|
|
7143
|
+
|
|
7144
|
+
exports.RehydrationFactory = RehydrationFactory; exports.AbstractApiData = AbstractApiData; exports.HttpMethod = HttpMethod; exports.getLastApiTotal = getLastApiTotal; exports.clearLastApiTotal = clearLastApiTotal; exports.setGlobalErrorHandler = setGlobalErrorHandler; exports.getGlobalErrorHandler = getGlobalErrorHandler; exports.AbstractService = AbstractService; exports.configureClientJsonApi = configureClientJsonApi; exports.getClientApiUrl = getClientApiUrl; exports.getClientAppUrl = getClientAppUrl; exports.getClientTrackablePages = getClientTrackablePages; exports.ClientJsonApiGet = ClientJsonApiGet; exports.ClientJsonApiPost = ClientJsonApiPost; exports.ClientJsonApiPut = ClientJsonApiPut; exports.ClientJsonApiPatch = ClientJsonApiPatch; exports.ClientJsonApiDelete = ClientJsonApiDelete; exports.ClientHttpMethod = ClientHttpMethod; exports.setClientGlobalErrorHandler = setClientGlobalErrorHandler; exports.getClientGlobalErrorHandler = getClientGlobalErrorHandler; exports.ClientAbstractService = ClientAbstractService; exports.ModuleRegistrar = ModuleRegistrar; exports.ModuleRegistry = ModuleRegistry; exports.Modules = Modules; exports.EndpointCreator = EndpointCreator; exports.createJsonApiInclusion = createJsonApiInclusion; exports.rehydrate = rehydrate; exports.rehydrateList = rehydrateList; exports.cn = cn; exports.composeRefs = composeRefs; exports.useComposedRefs = useComposedRefs; exports.useIsMobile = useIsMobile; exports.formatDate = formatDate; exports.exists = exists; exports.TableOptions = TableOptions; exports.getTableOptions = getTableOptions; exports.getTableComponents = getTableComponents; exports.userObjectSchema = userObjectSchema; exports.entityObjectSchema = entityObjectSchema; exports.getInitials = getInitials; exports.BlockNoteDiffUtil = BlockNoteDiffUtil; exports.BlockNoteWordDiffRendererUtil = BlockNoteWordDiffRendererUtil; exports.getIconByModule = getIconByModule; exports.getIcon = getIcon; exports.getIconByModuleName = getIconByModuleName; exports.getLucideIcon = getLucideIcon; exports.getLucideIconByModule = getLucideIconByModule; exports.getLucideIconByModuleName = getLucideIconByModuleName; exports.showToast = showToast; exports.showError = showError; exports.dismissToast = dismissToast; exports.showCustomToast = showCustomToast; exports.Action = Action; exports.checkPermissions = checkPermissions; exports.checkPermissionsFromServer = checkPermissionsFromServer; exports.getValueFromPath = getValueFromPath; exports.TotpAuthenticator = TotpAuthenticator; exports.TotpAuthenticatorModule = TotpAuthenticatorModule; exports.TotpSetup = TotpSetup; exports.TotpSetupModule = TotpSetupModule; exports.TotpVerify = TotpVerify; exports.TotpVerifyModule = TotpVerifyModule; exports.TotpVerifyLogin = TotpVerifyLogin; exports.TotpVerifyLoginModule = TotpVerifyLoginModule; exports.Passkey = Passkey; exports.PasskeyModule = PasskeyModule; exports.PasskeyRegistrationOptions = PasskeyRegistrationOptions; exports.PasskeyRegistrationOptionsModule = PasskeyRegistrationOptionsModule; exports.PasskeyRegistrationVerify = PasskeyRegistrationVerify; exports.PasskeyRegistrationVerifyModule = PasskeyRegistrationVerifyModule; exports.PasskeyRename = PasskeyRename; exports.PasskeyRenameModule = PasskeyRenameModule; exports.PasskeyVerifyLogin = PasskeyVerifyLogin; exports.PasskeyVerifyLoginModule = PasskeyVerifyLoginModule; exports.PasskeyAuthenticationOptions = PasskeyAuthenticationOptions; exports.PasskeyAuthenticationOptionsModule = PasskeyAuthenticationOptionsModule; exports.TwoFactorEnable = TwoFactorEnable; exports.TwoFactorEnableModule = TwoFactorEnableModule; exports.TwoFactorChallenge = TwoFactorChallenge; exports.TwoFactorChallengeModule = TwoFactorChallengeModule; exports.BackupCodeVerify = BackupCodeVerify; exports.BackupCodeVerifyModule = BackupCodeVerifyModule; exports.configureAuth = configureAuth; exports.getTokenHandler = getTokenHandler; exports.Auth = Auth; exports.AuthService = AuthService; exports.TwoFactorStatus = TwoFactorStatus; exports.TwoFactorService = TwoFactorService; exports.AuthComponent = AuthComponent; exports.AuthModule = AuthModule; exports.TwoFactorStatusModule = TwoFactorStatusModule; exports.BillingService = BillingService; exports.Billing = Billing; exports.BillingModule = BillingModule; exports.PaymentMethod = PaymentMethod; exports.StripeCustomer = StripeCustomer; exports.StripeCustomerService = StripeCustomerService; exports.StripeCustomerModule = StripeCustomerModule; exports.StripePaymentMethodModule = StripePaymentMethodModule; exports.StripeInvoice = StripeInvoice; exports.InvoiceStatus = InvoiceStatus; exports.StripeInvoiceService = StripeInvoiceService; exports.StripeInvoiceModule = StripeInvoiceModule; exports.StripePrice = StripePrice; exports.StripePriceService = StripePriceService; exports.StripePriceModule = StripePriceModule; exports.StripeProduct = StripeProduct; exports.StripeProductService = StripeProductService; exports.StripeProductModule = StripeProductModule; exports.StripeSubscription = StripeSubscription; exports.SubscriptionStatus = SubscriptionStatus; exports.StripeSubscriptionService = StripeSubscriptionService; exports.StripeSubscriptionModule = StripeSubscriptionModule; exports.StripeUsage = StripeUsage; exports.StripeUsageService = StripeUsageService; exports.StripeUsageModule = StripeUsageModule; exports.StripePromotionCodeService = StripePromotionCodeService; exports.StripePromotionCode = StripePromotionCode; exports.StripePromotionCodeModule = StripePromotionCodeModule; exports.Company = Company; exports.CompanyFields = CompanyFields; exports.CompanyService = CompanyService; exports.CompanyModule = CompanyModule; exports.Content = Content; exports.ContentFields = ContentFields; exports.ContentService = ContentService; exports.ContentModule = ContentModule; exports.HowTo = HowTo; exports.HowToModule = HowToModule; exports.HowToFields = HowToFields; exports.HowToService = HowToService; exports.Feature = Feature; exports.FeatureService = FeatureService; exports.FeatureModule = FeatureModule; exports.Module = Module; exports.ModuleModule = ModuleModule; exports.Notification = Notification; exports.NotificationFields = NotificationFields; exports.NotificationService = NotificationService; exports.NotificationModule = NotificationModule; exports.Push = Push; exports.PushService = PushService; exports.PushModule = PushModule; exports.Role = Role; exports.RoleFields = RoleFields; exports.RoleService = RoleService; exports.RoleModule = RoleModule; exports.S3 = S3; exports.S3Module = S3Module; exports.S3Service = S3Service; exports.User = User; exports.UserFields = UserFields; exports.UserService = UserService; exports.AuthorModule = AuthorModule; exports.UserModule = UserModule; exports.OAuthClient = OAuthClient; exports.OAuthModule = OAuthModule; exports.OAuthService = OAuthService; exports.OAUTH_SCOPE_DISPLAY = OAUTH_SCOPE_DISPLAY; exports.AVAILABLE_OAUTH_SCOPES = AVAILABLE_OAUTH_SCOPES; exports.DEFAULT_GRANT_TYPES = DEFAULT_GRANT_TYPES; exports.Waitlist = Waitlist; exports.WaitlistService = WaitlistService; exports.WaitlistStats = WaitlistStats; exports.WaitlistModule = WaitlistModule; exports.WaitlistStatsModule = WaitlistStatsModule; exports.PermissionMapping = PermissionMapping; exports.ModulePaths = ModulePaths; exports.PermissionMappingModule = PermissionMappingModule; exports.ModulePathsModule = ModulePathsModule; exports.ReferralStats = ReferralStats; exports.ReferralService = ReferralService; exports.ReferralModule = ReferralModule; exports.ReferralStatsModule = ReferralStatsModule; exports.AuditLog = AuditLog; exports.AuditLogService = AuditLogService; exports.AuditLogModule = AuditLogModule;
|
|
7145
|
+
//# sourceMappingURL=chunk-56VU7A4I.js.map
|