@plyaz/core 1.18.4 → 1.18.6
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/entry-backend.cjs +117 -109
- package/dist/entry-backend.cjs.map +1 -1
- package/dist/entry-backend.mjs +24 -16
- package/dist/entry-backend.mjs.map +1 -1
- package/dist/index.cjs +117 -106
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +24 -13
- package/dist/index.mjs.map +1 -1
- package/dist/models/example/ExampleRepository.d.ts +3 -0
- package/dist/models/example/ExampleRepository.d.ts.map +1 -1
- package/dist/models/featureFlags/FeatureFlagRepository.d.ts.map +1 -1
- package/dist/models/files/FilesRepository.d.ts +1 -1
- package/dist/models/files/FilesRepository.d.ts.map +1 -1
- package/dist/models/files/MediaVariantsRepository.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -47030,10 +47030,9 @@ var FeatureFlagDatabaseRepository = class _FeatureFlagDatabaseRepository extends
|
|
|
47030
47030
|
async logEvaluation(params) {
|
|
47031
47031
|
try {
|
|
47032
47032
|
const evaluationData = {
|
|
47033
|
-
id: generateId(),
|
|
47034
47033
|
flag_key: params.flagKey,
|
|
47035
47034
|
user_id: params.userId,
|
|
47036
|
-
context: params.context
|
|
47035
|
+
context: params.context,
|
|
47037
47036
|
value: params.result,
|
|
47038
47037
|
is_enabled: typeof params.result === "boolean" ? params.result : !!params.result,
|
|
47039
47038
|
reason: core.EVALUATION_REASONS.Default,
|
|
@@ -47057,7 +47056,6 @@ var FeatureFlagDatabaseRepository = class _FeatureFlagDatabaseRepository extends
|
|
|
47057
47056
|
*/
|
|
47058
47057
|
async setOverride(flagKey, userId, value, expiresAt) {
|
|
47059
47058
|
const overrideData = {
|
|
47060
|
-
id: generateId(),
|
|
47061
47059
|
flag_key: flagKey,
|
|
47062
47060
|
user_id: userId,
|
|
47063
47061
|
value,
|
|
@@ -48325,25 +48323,39 @@ var ExampleRepository = class _ExampleRepository extends db.BaseRepository {
|
|
|
48325
48323
|
}
|
|
48326
48324
|
/**
|
|
48327
48325
|
* Create new entity
|
|
48326
|
+
*
|
|
48327
|
+
* Note: `id` is auto-generated by DB (uuid_generate_v4) if not provided.
|
|
48328
|
+
* `owner_id` is required by FK constraint - must be a valid user UUID (or null if DB allows).
|
|
48328
48329
|
*/
|
|
48330
|
+
// eslint-disable-next-line complexity
|
|
48329
48331
|
async create(data, config) {
|
|
48330
48332
|
const now = (/* @__PURE__ */ new Date()).toISOString();
|
|
48331
|
-
|
|
48333
|
+
if (this.useDummyData) {
|
|
48334
|
+
const row2 = {
|
|
48335
|
+
id: data.id ?? generateId(),
|
|
48336
|
+
name: data.name ?? "",
|
|
48337
|
+
description: data.description ?? null,
|
|
48338
|
+
amount: data.amount ?? 0,
|
|
48339
|
+
owner_id: data.owner_id ?? core.SYSTEM_USER_ID,
|
|
48340
|
+
status: data.status ?? "draft",
|
|
48341
|
+
is_visible: data.is_visible ?? true,
|
|
48342
|
+
created_at: now,
|
|
48343
|
+
updated_at: now
|
|
48344
|
+
};
|
|
48345
|
+
this.dummyStore.push(row2);
|
|
48346
|
+
return { success: true, value: row2 };
|
|
48347
|
+
}
|
|
48332
48348
|
const row = {
|
|
48333
|
-
id,
|
|
48349
|
+
...data.id && { id: data.id },
|
|
48334
48350
|
name: data.name ?? "",
|
|
48335
48351
|
description: data.description ?? null,
|
|
48336
48352
|
amount: data.amount ?? 0,
|
|
48337
|
-
owner_id: data.owner_id ??
|
|
48353
|
+
owner_id: data.owner_id ?? core.SYSTEM_USER_ID,
|
|
48338
48354
|
status: data.status ?? "draft",
|
|
48339
48355
|
is_visible: data.is_visible ?? true,
|
|
48340
48356
|
created_at: now,
|
|
48341
48357
|
updated_at: now
|
|
48342
48358
|
};
|
|
48343
|
-
if (this.useDummyData) {
|
|
48344
|
-
this.dummyStore.push(row);
|
|
48345
|
-
return { success: true, value: row };
|
|
48346
|
-
}
|
|
48347
48359
|
return super.create(row, config);
|
|
48348
48360
|
}
|
|
48349
48361
|
/**
|
|
@@ -49750,14 +49762,13 @@ var FilesRepository = class _FilesRepository extends db.BaseRepository {
|
|
|
49750
49762
|
return super.findMany(mergedOptions, config);
|
|
49751
49763
|
}
|
|
49752
49764
|
/**
|
|
49753
|
-
* Create new file record with auto-generated
|
|
49765
|
+
* Create new file record with timestamps (ID auto-generated by DB)
|
|
49754
49766
|
*/
|
|
49755
49767
|
// eslint-disable-next-line complexity
|
|
49756
49768
|
async create(data, config) {
|
|
49757
49769
|
const now = (/* @__PURE__ */ new Date()).toISOString();
|
|
49758
|
-
const id = data.id ?? generateId();
|
|
49759
49770
|
const row = {
|
|
49760
|
-
id,
|
|
49771
|
+
...data.id && { id: data.id },
|
|
49761
49772
|
user_id: data.user_id ?? core.SYSTEM_USER_ID,
|
|
49762
49773
|
type: data.type ?? "DOCUMENT",
|
|
49763
49774
|
filename: data.filename ?? "",
|
|
@@ -51446,10 +51457,10 @@ __export(backend_exports, {
|
|
|
51446
51457
|
});
|
|
51447
51458
|
|
|
51448
51459
|
// src/backend/example/example.module.ts
|
|
51449
|
-
var
|
|
51460
|
+
var import_common11 = __toESM(require_common(), 1);
|
|
51450
51461
|
|
|
51451
51462
|
// src/backend/example/example.controller.ts
|
|
51452
|
-
var
|
|
51463
|
+
var import_common10 = __toESM(require_common(), 1);
|
|
51453
51464
|
var BACKEND_EXAMPLE_DOMAIN_SERVICE = "BACKEND_EXAMPLE_DOMAIN_SERVICE";
|
|
51454
51465
|
var ExampleController = class {
|
|
51455
51466
|
constructor(exampleService) {
|
|
@@ -51494,46 +51505,46 @@ var ExampleController = class {
|
|
|
51494
51505
|
};
|
|
51495
51506
|
__name(ExampleController, "ExampleController");
|
|
51496
51507
|
__decorateClass([
|
|
51497
|
-
(0,
|
|
51508
|
+
(0, import_common10.Get)("health")
|
|
51498
51509
|
], ExampleController.prototype, "health", 1);
|
|
51499
51510
|
__decorateClass([
|
|
51500
|
-
(0,
|
|
51501
|
-
__decorateParam(0, (0,
|
|
51511
|
+
(0, import_common10.Get)("entities/:id"),
|
|
51512
|
+
__decorateParam(0, (0, import_common10.Param)("id"))
|
|
51502
51513
|
], ExampleController.prototype, "getEntity", 1);
|
|
51503
51514
|
__decorateClass([
|
|
51504
|
-
(0,
|
|
51505
|
-
(0,
|
|
51506
|
-
__decorateParam(0, (0,
|
|
51515
|
+
(0, import_common10.Post)("entities"),
|
|
51516
|
+
(0, import_common10.HttpCode)(import_common10.HttpStatus.CREATED),
|
|
51517
|
+
__decorateParam(0, (0, import_common10.Body)())
|
|
51507
51518
|
], ExampleController.prototype, "createEntity", 1);
|
|
51508
51519
|
__decorateClass([
|
|
51509
|
-
(0,
|
|
51510
|
-
__decorateParam(0, (0,
|
|
51511
|
-
__decorateParam(1, (0,
|
|
51520
|
+
(0, import_common10.Patch)("entities/:id"),
|
|
51521
|
+
__decorateParam(0, (0, import_common10.Param)("id")),
|
|
51522
|
+
__decorateParam(1, (0, import_common10.Body)())
|
|
51512
51523
|
], ExampleController.prototype, "updateEntity", 1);
|
|
51513
51524
|
__decorateClass([
|
|
51514
|
-
(0,
|
|
51515
|
-
(0,
|
|
51516
|
-
__decorateParam(0, (0,
|
|
51525
|
+
(0, import_common10.Delete)("entities/:id"),
|
|
51526
|
+
(0, import_common10.HttpCode)(import_common10.HttpStatus.OK),
|
|
51527
|
+
__decorateParam(0, (0, import_common10.Param)("id"))
|
|
51517
51528
|
], ExampleController.prototype, "deleteEntity", 1);
|
|
51518
51529
|
__decorateClass([
|
|
51519
|
-
(0,
|
|
51520
|
-
(0,
|
|
51521
|
-
__decorateParam(0, (0,
|
|
51530
|
+
(0, import_common10.Post)("entities/validated"),
|
|
51531
|
+
(0, import_common10.HttpCode)(import_common10.HttpStatus.CREATED),
|
|
51532
|
+
__decorateParam(0, (0, import_common10.Body)())
|
|
51522
51533
|
], ExampleController.prototype, "createEntityWithValidation", 1);
|
|
51523
51534
|
__decorateClass([
|
|
51524
|
-
(0,
|
|
51535
|
+
(0, import_common10.Get)("errors/single")
|
|
51525
51536
|
], ExampleController.prototype, "demoSingleError", 1);
|
|
51526
51537
|
__decorateClass([
|
|
51527
|
-
(0,
|
|
51538
|
+
(0, import_common10.Get)("errors/array")
|
|
51528
51539
|
], ExampleController.prototype, "demoArrayErrors", 1);
|
|
51529
51540
|
__decorateClass([
|
|
51530
|
-
(0,
|
|
51531
|
-
(0,
|
|
51532
|
-
__decorateParam(0, (0,
|
|
51541
|
+
(0, import_common10.Post)("email"),
|
|
51542
|
+
(0, import_common10.HttpCode)(import_common10.HttpStatus.OK),
|
|
51543
|
+
__decorateParam(0, (0, import_common10.Body)())
|
|
51533
51544
|
], ExampleController.prototype, "sendEmail", 1);
|
|
51534
51545
|
ExampleController = __decorateClass([
|
|
51535
|
-
(0,
|
|
51536
|
-
__decorateParam(0, (0,
|
|
51546
|
+
(0, import_common10.Controller)("example"),
|
|
51547
|
+
__decorateParam(0, (0, import_common10.Inject)(BACKEND_EXAMPLE_DOMAIN_SERVICE))
|
|
51537
51548
|
], ExampleController);
|
|
51538
51549
|
|
|
51539
51550
|
// src/backend/example/example.module.ts
|
|
@@ -51541,7 +51552,7 @@ var ExampleModule = class {
|
|
|
51541
51552
|
};
|
|
51542
51553
|
__name(ExampleModule, "ExampleModule");
|
|
51543
51554
|
ExampleModule = __decorateClass([
|
|
51544
|
-
(0,
|
|
51555
|
+
(0, import_common11.Module)({
|
|
51545
51556
|
controllers: [ExampleController],
|
|
51546
51557
|
providers: [
|
|
51547
51558
|
// Provide BackendExampleDomainService via factory using the singleton instance
|
|
@@ -51556,10 +51567,10 @@ ExampleModule = __decorateClass([
|
|
|
51556
51567
|
], ExampleModule);
|
|
51557
51568
|
|
|
51558
51569
|
// src/backend/files/files.module.ts
|
|
51559
|
-
var
|
|
51570
|
+
var import_common13 = __toESM(require_common(), 1);
|
|
51560
51571
|
|
|
51561
51572
|
// src/backend/files/files.controller.ts
|
|
51562
|
-
var
|
|
51573
|
+
var import_common12 = __toESM(require_common(), 1);
|
|
51563
51574
|
var BACKEND_FILES_DOMAIN_SERVICE = "BACKEND_FILES_DOMAIN_SERVICE";
|
|
51564
51575
|
var FilesController = class {
|
|
51565
51576
|
constructor(filesService) {
|
|
@@ -51605,43 +51616,43 @@ var FilesController = class {
|
|
|
51605
51616
|
};
|
|
51606
51617
|
__name(FilesController, "FilesController");
|
|
51607
51618
|
__decorateClass([
|
|
51608
|
-
(0,
|
|
51619
|
+
(0, import_common12.Get)("health")
|
|
51609
51620
|
], FilesController.prototype, "health", 1);
|
|
51610
51621
|
__decorateClass([
|
|
51611
|
-
(0,
|
|
51612
|
-
(0,
|
|
51613
|
-
__decorateParam(0, (0,
|
|
51622
|
+
(0, import_common12.Post)("upload"),
|
|
51623
|
+
(0, import_common12.HttpCode)(import_common12.HttpStatus.OK),
|
|
51624
|
+
__decorateParam(0, (0, import_common12.Body)())
|
|
51614
51625
|
], FilesController.prototype, "uploadFile", 1);
|
|
51615
51626
|
__decorateClass([
|
|
51616
|
-
(0,
|
|
51617
|
-
(0,
|
|
51618
|
-
__decorateParam(0, (0,
|
|
51627
|
+
(0, import_common12.Post)("upload/bulk"),
|
|
51628
|
+
(0, import_common12.HttpCode)(import_common12.HttpStatus.OK),
|
|
51629
|
+
__decorateParam(0, (0, import_common12.Body)())
|
|
51619
51630
|
], FilesController.prototype, "uploadFiles", 1);
|
|
51620
51631
|
__decorateClass([
|
|
51621
|
-
(0,
|
|
51622
|
-
(0,
|
|
51623
|
-
__decorateParam(0, (0,
|
|
51632
|
+
(0, import_common12.Post)("generate-document"),
|
|
51633
|
+
(0, import_common12.HttpCode)(import_common12.HttpStatus.OK),
|
|
51634
|
+
__decorateParam(0, (0, import_common12.Body)())
|
|
51624
51635
|
], FilesController.prototype, "generateDocument", 1);
|
|
51625
51636
|
__decorateClass([
|
|
51626
|
-
(0,
|
|
51627
|
-
__decorateParam(0, (0,
|
|
51637
|
+
(0, import_common12.Get)(":id"),
|
|
51638
|
+
__decorateParam(0, (0, import_common12.Param)("id"))
|
|
51628
51639
|
], FilesController.prototype, "getFile", 1);
|
|
51629
51640
|
__decorateClass([
|
|
51630
|
-
(0,
|
|
51631
|
-
__decorateParam(0, (0,
|
|
51641
|
+
(0, import_common12.Get)(":id/download"),
|
|
51642
|
+
__decorateParam(0, (0, import_common12.Param)("id"))
|
|
51632
51643
|
], FilesController.prototype, "downloadFile", 1);
|
|
51633
51644
|
__decorateClass([
|
|
51634
|
-
(0,
|
|
51635
|
-
__decorateParam(0, (0,
|
|
51645
|
+
(0, import_common12.Get)(":id/signed-url"),
|
|
51646
|
+
__decorateParam(0, (0, import_common12.Param)("id"))
|
|
51636
51647
|
], FilesController.prototype, "getSignedUrl", 1);
|
|
51637
51648
|
__decorateClass([
|
|
51638
|
-
(0,
|
|
51639
|
-
(0,
|
|
51640
|
-
__decorateParam(0, (0,
|
|
51649
|
+
(0, import_common12.Delete)(":id"),
|
|
51650
|
+
(0, import_common12.HttpCode)(import_common12.HttpStatus.OK),
|
|
51651
|
+
__decorateParam(0, (0, import_common12.Param)("id"))
|
|
51641
51652
|
], FilesController.prototype, "deleteFile", 1);
|
|
51642
51653
|
FilesController = __decorateClass([
|
|
51643
|
-
(0,
|
|
51644
|
-
__decorateParam(0, (0,
|
|
51654
|
+
(0, import_common12.Controller)("files"),
|
|
51655
|
+
__decorateParam(0, (0, import_common12.Inject)(BACKEND_FILES_DOMAIN_SERVICE))
|
|
51645
51656
|
], FilesController);
|
|
51646
51657
|
var logger7 = new logger$1.PackageLogger({ packageName: "core", service: "FrontendFilesDomainService" });
|
|
51647
51658
|
var FrontendFilesDomainService = class _FrontendFilesDomainService extends BaseFrontendDomainService {
|
|
@@ -51973,7 +51984,7 @@ var FilesModule = class {
|
|
|
51973
51984
|
};
|
|
51974
51985
|
__name(FilesModule, "FilesModule");
|
|
51975
51986
|
FilesModule = __decorateClass([
|
|
51976
|
-
(0,
|
|
51987
|
+
(0, import_common13.Module)({
|
|
51977
51988
|
controllers: [FilesController],
|
|
51978
51989
|
providers: [
|
|
51979
51990
|
// Provide BackendFilesDomainService via factory using the singleton instance
|
|
@@ -52264,10 +52275,10 @@ var FeatureFlagDomainService = class extends BaseDomainService {
|
|
|
52264
52275
|
};
|
|
52265
52276
|
|
|
52266
52277
|
// src/backend/featureFlags/feature-flag.module.ts
|
|
52267
|
-
var
|
|
52278
|
+
var import_common15 = __toESM(require_common(), 1);
|
|
52268
52279
|
|
|
52269
52280
|
// src/backend/featureFlags/feature-flag.controller.ts
|
|
52270
|
-
var
|
|
52281
|
+
var import_common14 = __toESM(require_common(), 1);
|
|
52271
52282
|
var FeatureFlagController = class {
|
|
52272
52283
|
constructor(featureFlagService) {
|
|
52273
52284
|
this.featureFlagService = featureFlagService;
|
|
@@ -52396,54 +52407,54 @@ var FeatureFlagController = class {
|
|
|
52396
52407
|
};
|
|
52397
52408
|
__name(FeatureFlagController, "FeatureFlagController");
|
|
52398
52409
|
__decorateClass([
|
|
52399
|
-
(0,
|
|
52400
|
-
__decorateParam(0, (0,
|
|
52401
|
-
__decorateParam(1, (0,
|
|
52410
|
+
(0, import_common14.Post)(":key/evaluate"),
|
|
52411
|
+
__decorateParam(0, (0, import_common14.Param)("key")),
|
|
52412
|
+
__decorateParam(1, (0, import_common14.Body)())
|
|
52402
52413
|
], FeatureFlagController.prototype, "evaluateFlag", 1);
|
|
52403
52414
|
__decorateClass([
|
|
52404
|
-
(0,
|
|
52405
|
-
__decorateParam(0, (0,
|
|
52406
|
-
__decorateParam(1, (0,
|
|
52415
|
+
(0, import_common14.Post)(":key/enabled"),
|
|
52416
|
+
__decorateParam(0, (0, import_common14.Param)("key")),
|
|
52417
|
+
__decorateParam(1, (0, import_common14.Body)())
|
|
52407
52418
|
], FeatureFlagController.prototype, "isEnabled", 1);
|
|
52408
52419
|
__decorateClass([
|
|
52409
|
-
(0,
|
|
52410
|
-
__decorateParam(0, (0,
|
|
52420
|
+
(0, import_common14.Post)("evaluate-all"),
|
|
52421
|
+
__decorateParam(0, (0, import_common14.Body)())
|
|
52411
52422
|
], FeatureFlagController.prototype, "evaluateAllFlags", 1);
|
|
52412
52423
|
__decorateClass([
|
|
52413
|
-
(0,
|
|
52414
|
-
__decorateParam(0, (0,
|
|
52424
|
+
(0, import_common14.Post)(),
|
|
52425
|
+
__decorateParam(0, (0, import_common14.Body)())
|
|
52415
52426
|
], FeatureFlagController.prototype, "createFlag", 1);
|
|
52416
52427
|
__decorateClass([
|
|
52417
|
-
(0,
|
|
52418
|
-
__decorateParam(0, (0,
|
|
52419
|
-
__decorateParam(1, (0,
|
|
52428
|
+
(0, import_common14.Put)(":key"),
|
|
52429
|
+
__decorateParam(0, (0, import_common14.Param)("key")),
|
|
52430
|
+
__decorateParam(1, (0, import_common14.Body)())
|
|
52420
52431
|
], FeatureFlagController.prototype, "updateFlag", 1);
|
|
52421
52432
|
__decorateClass([
|
|
52422
|
-
(0,
|
|
52423
|
-
__decorateParam(0, (0,
|
|
52433
|
+
(0, import_common14.Delete)(":key"),
|
|
52434
|
+
__decorateParam(0, (0, import_common14.Param)("key"))
|
|
52424
52435
|
], FeatureFlagController.prototype, "deleteFlag", 1);
|
|
52425
52436
|
__decorateClass([
|
|
52426
|
-
(0,
|
|
52427
|
-
__decorateParam(0, (0,
|
|
52428
|
-
__decorateParam(1, (0,
|
|
52437
|
+
(0, import_common14.Post)(":key/override"),
|
|
52438
|
+
__decorateParam(0, (0, import_common14.Param)("key")),
|
|
52439
|
+
__decorateParam(1, (0, import_common14.Body)("value"))
|
|
52429
52440
|
], FeatureFlagController.prototype, "setOverride", 1);
|
|
52430
52441
|
__decorateClass([
|
|
52431
|
-
(0,
|
|
52432
|
-
__decorateParam(0, (0,
|
|
52442
|
+
(0, import_common14.Delete)(":key/override"),
|
|
52443
|
+
__decorateParam(0, (0, import_common14.Param)("key"))
|
|
52433
52444
|
], FeatureFlagController.prototype, "removeOverride", 1);
|
|
52434
52445
|
__decorateClass([
|
|
52435
|
-
(0,
|
|
52436
|
-
__decorateParam(0, (0,
|
|
52446
|
+
(0, import_common14.Get)(":key/rules"),
|
|
52447
|
+
__decorateParam(0, (0, import_common14.Param)("key"))
|
|
52437
52448
|
], FeatureFlagController.prototype, "getFlagRules", 1);
|
|
52438
52449
|
__decorateClass([
|
|
52439
|
-
(0,
|
|
52450
|
+
(0, import_common14.Post)("refresh")
|
|
52440
52451
|
], FeatureFlagController.prototype, "refreshCache", 1);
|
|
52441
52452
|
__decorateClass([
|
|
52442
|
-
(0,
|
|
52453
|
+
(0, import_common14.Get)("health")
|
|
52443
52454
|
], FeatureFlagController.prototype, "getHealth", 1);
|
|
52444
52455
|
FeatureFlagController = __decorateClass([
|
|
52445
|
-
(0,
|
|
52446
|
-
__decorateParam(0, (0,
|
|
52456
|
+
(0, import_common14.Controller)("feature-flags"),
|
|
52457
|
+
__decorateParam(0, (0, import_common14.Inject)(FEATURE_FLAG_SERVICE))
|
|
52447
52458
|
], FeatureFlagController);
|
|
52448
52459
|
|
|
52449
52460
|
// src/backend/featureFlags/feature-flag.module.ts
|
|
@@ -52535,16 +52546,16 @@ var FeatureFlagModule = class {
|
|
|
52535
52546
|
__name(FeatureFlagModule, "FeatureFlagModule");
|
|
52536
52547
|
FeatureFlagModule.serviceInstance = null;
|
|
52537
52548
|
FeatureFlagModule = __decorateClass([
|
|
52538
|
-
(0,
|
|
52539
|
-
(0,
|
|
52549
|
+
(0, import_common15.Global)(),
|
|
52550
|
+
(0, import_common15.Module)({
|
|
52540
52551
|
controllers: [FeatureFlagController]
|
|
52541
52552
|
})
|
|
52542
52553
|
], FeatureFlagModule);
|
|
52543
52554
|
|
|
52544
52555
|
// src/backend/featureFlags/decorators/feature-flag.decorator.ts
|
|
52545
|
-
var
|
|
52556
|
+
var import_common16 = __toESM(require_common(), 1);
|
|
52546
52557
|
function FeatureFlag(key, expected = true) {
|
|
52547
|
-
return (0,
|
|
52558
|
+
return (0, import_common16.SetMetadata)(types.FEATURE_FLAG_METADATA.FLAG_CHECK, { key, expected });
|
|
52548
52559
|
}
|
|
52549
52560
|
__name(FeatureFlag, "FeatureFlag");
|
|
52550
52561
|
|
|
@@ -52561,7 +52572,7 @@ function FeatureEnabled(key) {
|
|
|
52561
52572
|
__name(FeatureEnabled, "FeatureEnabled");
|
|
52562
52573
|
|
|
52563
52574
|
// src/backend/featureFlags/guards/feature-flag.guard.ts
|
|
52564
|
-
var
|
|
52575
|
+
var import_common17 = __toESM(require_common(), 1);
|
|
52565
52576
|
var FeatureFlagGuard = class {
|
|
52566
52577
|
constructor(reflector, featureFlagService) {
|
|
52567
52578
|
this.reflector = reflector;
|
|
@@ -52605,12 +52616,12 @@ var FeatureFlagGuard = class {
|
|
|
52605
52616
|
};
|
|
52606
52617
|
__name(FeatureFlagGuard, "FeatureFlagGuard");
|
|
52607
52618
|
FeatureFlagGuard = __decorateClass([
|
|
52608
|
-
(0,
|
|
52609
|
-
__decorateParam(1, (0,
|
|
52619
|
+
(0, import_common17.Injectable)(),
|
|
52620
|
+
__decorateParam(1, (0, import_common17.Inject)(FEATURE_FLAG_SERVICE))
|
|
52610
52621
|
], FeatureFlagGuard);
|
|
52611
52622
|
|
|
52612
52623
|
// src/backend/featureFlags/middleware/feature-flag-middleware.ts
|
|
52613
|
-
var
|
|
52624
|
+
var import_common18 = __toESM(require_common(), 1);
|
|
52614
52625
|
function isFeatureFlagKey(value) {
|
|
52615
52626
|
return Object.keys(config.FEATURES).includes(value);
|
|
52616
52627
|
}
|
|
@@ -52688,12 +52699,12 @@ var FeatureFlagMiddleware = class {
|
|
|
52688
52699
|
};
|
|
52689
52700
|
__name(FeatureFlagMiddleware, "FeatureFlagMiddleware");
|
|
52690
52701
|
FeatureFlagMiddleware = __decorateClass([
|
|
52691
|
-
(0,
|
|
52692
|
-
__decorateParam(0, (0,
|
|
52702
|
+
(0, import_common18.Injectable)(),
|
|
52703
|
+
__decorateParam(0, (0, import_common18.Inject)(FEATURE_FLAG_SERVICE))
|
|
52693
52704
|
], FeatureFlagMiddleware);
|
|
52694
52705
|
|
|
52695
52706
|
// src/backend/featureFlags/interceptors/feature-flag-logging-interceptor.ts
|
|
52696
|
-
var
|
|
52707
|
+
var import_common19 = __toESM(require_common(), 1);
|
|
52697
52708
|
var import_rxjs = __toESM(require_cjs(), 1);
|
|
52698
52709
|
var FeatureFlagLoggingInterceptor = class {
|
|
52699
52710
|
constructor() {
|
|
@@ -52726,11 +52737,11 @@ var FeatureFlagLoggingInterceptor = class {
|
|
|
52726
52737
|
};
|
|
52727
52738
|
__name(FeatureFlagLoggingInterceptor, "FeatureFlagLoggingInterceptor");
|
|
52728
52739
|
FeatureFlagLoggingInterceptor = __decorateClass([
|
|
52729
|
-
(0,
|
|
52740
|
+
(0, import_common19.Injectable)()
|
|
52730
52741
|
], FeatureFlagLoggingInterceptor);
|
|
52731
52742
|
|
|
52732
52743
|
// src/backend/featureFlags/interceptors/error-handling-interceptor.ts
|
|
52733
|
-
var
|
|
52744
|
+
var import_common20 = __toESM(require_common(), 1);
|
|
52734
52745
|
var import_operators = __toESM(require_operators(), 1);
|
|
52735
52746
|
var ErrorHandlingInterceptor = class {
|
|
52736
52747
|
constructor() {
|
|
@@ -52759,7 +52770,7 @@ var ErrorHandlingInterceptor = class {
|
|
|
52759
52770
|
};
|
|
52760
52771
|
__name(ErrorHandlingInterceptor, "ErrorHandlingInterceptor");
|
|
52761
52772
|
ErrorHandlingInterceptor = __decorateClass([
|
|
52762
|
-
(0,
|
|
52773
|
+
(0, import_common20.Injectable)()
|
|
52763
52774
|
], ErrorHandlingInterceptor);
|
|
52764
52775
|
var logger8 = new logger$1.PackageLogger({
|
|
52765
52776
|
packageName: "core",
|
|
@@ -53106,7 +53117,7 @@ var FeatureFlagConfigFactory = class {
|
|
|
53106
53117
|
};
|
|
53107
53118
|
|
|
53108
53119
|
// src/base/cache/feature/caching.ts
|
|
53109
|
-
var
|
|
53120
|
+
var import_common21 = __toESM(require_common(), 1);
|
|
53110
53121
|
var import_rxjs2 = __toESM(require_cjs(), 1);
|
|
53111
53122
|
var Caching = class {
|
|
53112
53123
|
constructor() {
|
|
@@ -53129,7 +53140,7 @@ var Caching = class {
|
|
|
53129
53140
|
};
|
|
53130
53141
|
__name(Caching, "Caching");
|
|
53131
53142
|
Caching = __decorateClass([
|
|
53132
|
-
(0,
|
|
53143
|
+
(0, import_common21.Injectable)()
|
|
53133
53144
|
], Caching);
|
|
53134
53145
|
|
|
53135
53146
|
// src/frontend/index.ts
|