@plyaz/core 1.22.6 → 1.22.7
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/backend/notifications/notifications.controller.d.ts +2 -3
- package/dist/backend/notifications/notifications.controller.d.ts.map +1 -1
- package/dist/entry-backend.cjs +116 -347
- package/dist/entry-backend.cjs.map +1 -1
- package/dist/entry-backend.mjs +14 -239
- package/dist/entry-backend.mjs.map +1 -1
- package/dist/index.cjs +105 -326
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +4 -219
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/entry-backend.cjs
CHANGED
|
@@ -18502,10 +18502,10 @@ var require_shared_utils = __commonJS({
|
|
|
18502
18502
|
var require_controller_decorator = __commonJS({
|
|
18503
18503
|
"node_modules/.pnpm/@nestjs+common@11.1.11_class-transformer@0.5.1_class-validator@0.14.3_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/decorators/core/controller.decorator.js"(exports$1) {
|
|
18504
18504
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
18505
|
-
exports$1.Controller =
|
|
18505
|
+
exports$1.Controller = Controller6;
|
|
18506
18506
|
var constants_1 = require_constants();
|
|
18507
18507
|
var shared_utils_1 = require_shared_utils();
|
|
18508
|
-
function
|
|
18508
|
+
function Controller6(prefixOrOptions) {
|
|
18509
18509
|
const defaultPath = "/";
|
|
18510
18510
|
const [path2, host, scopeOptions, versionOptions] = (0, shared_utils_1.isUndefined)(prefixOrOptions) ? [defaultPath, void 0, void 0, void 0] : (0, shared_utils_1.isString)(prefixOrOptions) || Array.isArray(prefixOrOptions) ? [prefixOrOptions, void 0, void 0, void 0] : [
|
|
18511
18511
|
prefixOrOptions.path || defaultPath,
|
|
@@ -18521,7 +18521,7 @@ var require_controller_decorator = __commonJS({
|
|
|
18521
18521
|
Reflect.defineMetadata(constants_1.VERSION_METADATA, versionOptions, target);
|
|
18522
18522
|
};
|
|
18523
18523
|
}
|
|
18524
|
-
__name(
|
|
18524
|
+
__name(Controller6, "Controller");
|
|
18525
18525
|
}
|
|
18526
18526
|
});
|
|
18527
18527
|
|
|
@@ -18627,10 +18627,10 @@ var require_exception_filters_decorator = __commonJS({
|
|
|
18627
18627
|
var require_inject_decorator = __commonJS({
|
|
18628
18628
|
"node_modules/.pnpm/@nestjs+common@11.1.11_class-transformer@0.5.1_class-validator@0.14.3_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/decorators/core/inject.decorator.js"(exports$1) {
|
|
18629
18629
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
18630
|
-
exports$1.Inject =
|
|
18630
|
+
exports$1.Inject = Inject7;
|
|
18631
18631
|
var constants_1 = require_constants();
|
|
18632
18632
|
var shared_utils_1 = require_shared_utils();
|
|
18633
|
-
function
|
|
18633
|
+
function Inject7(token) {
|
|
18634
18634
|
const injectCallHasArguments = arguments.length > 0;
|
|
18635
18635
|
return (target, key, index) => {
|
|
18636
18636
|
let type = token || Reflect.getMetadata("design:type", target, key);
|
|
@@ -18648,7 +18648,7 @@ var require_inject_decorator = __commonJS({
|
|
|
18648
18648
|
Reflect.defineMetadata(constants_1.PROPERTY_DEPS_METADATA, properties, target.constructor);
|
|
18649
18649
|
};
|
|
18650
18650
|
}
|
|
18651
|
-
__name(
|
|
18651
|
+
__name(Inject7, "Inject");
|
|
18652
18652
|
}
|
|
18653
18653
|
});
|
|
18654
18654
|
|
|
@@ -18885,14 +18885,14 @@ var require_core = __commonJS({
|
|
|
18885
18885
|
var require_global_decorator = __commonJS({
|
|
18886
18886
|
"node_modules/.pnpm/@nestjs+common@11.1.11_class-transformer@0.5.1_class-validator@0.14.3_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/decorators/modules/global.decorator.js"(exports$1) {
|
|
18887
18887
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
18888
|
-
exports$1.Global =
|
|
18888
|
+
exports$1.Global = Global2;
|
|
18889
18889
|
var constants_1 = require_constants();
|
|
18890
|
-
function
|
|
18890
|
+
function Global2() {
|
|
18891
18891
|
return (target) => {
|
|
18892
18892
|
Reflect.defineMetadata(constants_1.GLOBAL_MODULE_METADATA, true, target);
|
|
18893
18893
|
};
|
|
18894
18894
|
}
|
|
18895
|
-
__name(
|
|
18895
|
+
__name(Global2, "Global");
|
|
18896
18896
|
}
|
|
18897
18897
|
});
|
|
18898
18898
|
|
|
@@ -36230,245 +36230,15 @@ init_NotificationsValidator();
|
|
|
36230
36230
|
init_streaming2();
|
|
36231
36231
|
|
|
36232
36232
|
// src/backend/notifications/notifications.module.ts
|
|
36233
|
-
var import_common18 = __toESM(require_common());
|
|
36234
|
-
|
|
36235
|
-
// src/backend/notifications/notifications.controller.ts
|
|
36236
|
-
var import_common17 = __toESM(require_common());
|
|
36237
|
-
|
|
36238
|
-
// src/init/nestjs/index.ts
|
|
36239
|
-
init_CoreInitializer();
|
|
36240
|
-
|
|
36241
|
-
// src/init/nestjs/configureNestApp.ts
|
|
36242
|
-
init_CoreInitializer();
|
|
36243
|
-
|
|
36244
|
-
// src/init/nestjs/CoreModule.ts
|
|
36245
36233
|
var import_common16 = __toESM(require_common());
|
|
36246
|
-
init_CoreInitializer();
|
|
36247
|
-
init_DbService();
|
|
36248
|
-
|
|
36249
|
-
// src/init/nestjs/StreamingController.ts
|
|
36250
|
-
var import_common15 = __toESM(require_common());
|
|
36251
|
-
var STREAM_SERVER = Symbol("STREAM_SERVER");
|
|
36252
|
-
var StreamingController = class {
|
|
36253
|
-
constructor(streamServer) {
|
|
36254
|
-
this.streamServer = streamServer;
|
|
36255
|
-
}
|
|
36256
|
-
async stream(req, res) {
|
|
36257
|
-
const handler = this.streamServer.getHandler("nestjs");
|
|
36258
|
-
await handler(req, res);
|
|
36259
|
-
}
|
|
36260
|
-
};
|
|
36261
|
-
__name(StreamingController, "StreamingController");
|
|
36262
|
-
__decorateClass([
|
|
36263
|
-
(0, import_common15.Get)("stream"),
|
|
36264
|
-
__decorateParam(0, (0, import_common15.Req)()),
|
|
36265
|
-
__decorateParam(1, (0, import_common15.Res)())
|
|
36266
|
-
], StreamingController.prototype, "stream", 1);
|
|
36267
|
-
StreamingController = __decorateClass([
|
|
36268
|
-
(0, import_common15.Controller)("events"),
|
|
36269
|
-
__decorateParam(0, (0, import_common15.Inject)(STREAM_SERVER))
|
|
36270
|
-
], StreamingController);
|
|
36271
|
-
|
|
36272
|
-
// src/init/nestjs/CoreModule.ts
|
|
36273
|
-
var CORE_OPTIONS = Symbol("CORE_OPTIONS");
|
|
36274
|
-
var DB_SERVICE = Symbol("DB_SERVICE");
|
|
36275
|
-
var CoreModule = class {
|
|
36276
|
-
/**
|
|
36277
|
-
* Register CoreModule with static configuration
|
|
36278
|
-
*/
|
|
36279
|
-
static forRoot(options = {}) {
|
|
36280
|
-
const streamingEnabled = options.streaming?.enabled === true;
|
|
36281
|
-
const controllers = streamingEnabled ? [StreamingController] : [];
|
|
36282
|
-
const moduleExports = [DB_SERVICE, CORE_OPTIONS];
|
|
36283
|
-
const providers = [
|
|
36284
|
-
{
|
|
36285
|
-
provide: CORE_OPTIONS,
|
|
36286
|
-
useValue: options
|
|
36287
|
-
},
|
|
36288
|
-
{
|
|
36289
|
-
provide: exports.DbService,
|
|
36290
|
-
useFactory: /* @__PURE__ */ __name(async () => {
|
|
36291
|
-
await exports.Core.initialize(options);
|
|
36292
|
-
return exports.Core.db;
|
|
36293
|
-
}, "useFactory")
|
|
36294
|
-
},
|
|
36295
|
-
{
|
|
36296
|
-
provide: DB_SERVICE,
|
|
36297
|
-
useFactory: /* @__PURE__ */ __name(async () => {
|
|
36298
|
-
await exports.Core.initialize(options);
|
|
36299
|
-
return exports.Core.db;
|
|
36300
|
-
}, "useFactory")
|
|
36301
|
-
}
|
|
36302
|
-
];
|
|
36303
|
-
if (streamingEnabled) {
|
|
36304
|
-
providers.push({
|
|
36305
|
-
provide: STREAM_SERVER,
|
|
36306
|
-
useFactory: /* @__PURE__ */ __name(async () => {
|
|
36307
|
-
await exports.Core.initialize(options);
|
|
36308
|
-
return exports.Core.streamServer;
|
|
36309
|
-
}, "useFactory")
|
|
36310
|
-
});
|
|
36311
|
-
moduleExports.push(STREAM_SERVER);
|
|
36312
|
-
}
|
|
36313
|
-
return {
|
|
36314
|
-
module: CoreModule,
|
|
36315
|
-
global: true,
|
|
36316
|
-
controllers,
|
|
36317
|
-
providers,
|
|
36318
|
-
exports: moduleExports
|
|
36319
|
-
};
|
|
36320
|
-
}
|
|
36321
|
-
/**
|
|
36322
|
-
* Register CoreModule with async configuration
|
|
36323
|
-
*/
|
|
36324
|
-
static forRootAsync(options) {
|
|
36325
|
-
const providers = [
|
|
36326
|
-
{
|
|
36327
|
-
provide: CORE_OPTIONS,
|
|
36328
|
-
useFactory: options.useFactory,
|
|
36329
|
-
inject: options.inject ?? []
|
|
36330
|
-
},
|
|
36331
|
-
{
|
|
36332
|
-
provide: exports.DbService,
|
|
36333
|
-
useFactory: /* @__PURE__ */ __name(async (coreOptions) => {
|
|
36334
|
-
await exports.Core.initialize(coreOptions);
|
|
36335
|
-
return exports.Core.db;
|
|
36336
|
-
}, "useFactory"),
|
|
36337
|
-
inject: [CORE_OPTIONS]
|
|
36338
|
-
},
|
|
36339
|
-
{
|
|
36340
|
-
provide: DB_SERVICE,
|
|
36341
|
-
useFactory: /* @__PURE__ */ __name(async (coreOptions) => {
|
|
36342
|
-
await exports.Core.initialize(coreOptions);
|
|
36343
|
-
return exports.Core.db;
|
|
36344
|
-
}, "useFactory"),
|
|
36345
|
-
inject: [CORE_OPTIONS]
|
|
36346
|
-
},
|
|
36347
|
-
// Add streaming provider for async (will be null if not configured)
|
|
36348
|
-
{
|
|
36349
|
-
provide: STREAM_SERVER,
|
|
36350
|
-
useFactory: /* @__PURE__ */ __name(async (coreOptions) => {
|
|
36351
|
-
await exports.Core.initialize(coreOptions);
|
|
36352
|
-
return exports.Core.streamServer;
|
|
36353
|
-
}, "useFactory"),
|
|
36354
|
-
inject: [CORE_OPTIONS]
|
|
36355
|
-
}
|
|
36356
|
-
];
|
|
36357
|
-
return {
|
|
36358
|
-
module: CoreModule,
|
|
36359
|
-
global: true,
|
|
36360
|
-
imports: options.imports ?? [],
|
|
36361
|
-
providers,
|
|
36362
|
-
exports: [DB_SERVICE, CORE_OPTIONS, STREAM_SERVER]
|
|
36363
|
-
};
|
|
36364
|
-
}
|
|
36365
|
-
};
|
|
36366
|
-
__name(CoreModule, "CoreModule");
|
|
36367
|
-
CoreModule = __decorateClass([
|
|
36368
|
-
(0, import_common16.Global)()
|
|
36369
|
-
], CoreModule);
|
|
36370
|
-
|
|
36371
|
-
// src/init/nestjs/StreamingModule.ts
|
|
36372
|
-
init_streaming3();
|
|
36373
|
-
(class _StreamingModule {
|
|
36374
|
-
static {
|
|
36375
|
-
__name(this, "StreamingModule");
|
|
36376
|
-
}
|
|
36377
|
-
static {
|
|
36378
|
-
this.streamServer = null;
|
|
36379
|
-
}
|
|
36380
|
-
async onModuleDestroy() {
|
|
36381
|
-
if (_StreamingModule.streamServer) {
|
|
36382
|
-
_StreamingModule.streamServer.dispose();
|
|
36383
|
-
_StreamingModule.streamServer = null;
|
|
36384
|
-
}
|
|
36385
|
-
exports.StreamRegistry.dispose();
|
|
36386
|
-
}
|
|
36387
|
-
/**
|
|
36388
|
-
* Register StreamingModule with static configuration
|
|
36389
|
-
*/
|
|
36390
|
-
static forRoot(config = {}) {
|
|
36391
|
-
const includeController = config.includeController !== false;
|
|
36392
|
-
const providers = [
|
|
36393
|
-
{
|
|
36394
|
-
provide: STREAM_SERVER,
|
|
36395
|
-
useFactory: /* @__PURE__ */ __name(async () => {
|
|
36396
|
-
return _StreamingModule.initializeStreamServer(config);
|
|
36397
|
-
}, "useFactory")
|
|
36398
|
-
}
|
|
36399
|
-
];
|
|
36400
|
-
return {
|
|
36401
|
-
module: _StreamingModule,
|
|
36402
|
-
global: config.isGlobal !== false,
|
|
36403
|
-
controllers: includeController ? [StreamingController] : [],
|
|
36404
|
-
providers,
|
|
36405
|
-
exports: [STREAM_SERVER]
|
|
36406
|
-
};
|
|
36407
|
-
}
|
|
36408
|
-
/**
|
|
36409
|
-
* Register StreamingModule with async configuration
|
|
36410
|
-
*/
|
|
36411
|
-
static forRootAsync(options) {
|
|
36412
|
-
const includeController = options.includeController !== false;
|
|
36413
|
-
const configProvider = {
|
|
36414
|
-
provide: "STREAMING_MODULE_CONFIG",
|
|
36415
|
-
useFactory: options.useFactory,
|
|
36416
|
-
inject: options.inject ?? []
|
|
36417
|
-
};
|
|
36418
|
-
const streamServerProvider = {
|
|
36419
|
-
provide: STREAM_SERVER,
|
|
36420
|
-
useFactory: /* @__PURE__ */ __name(async (config) => {
|
|
36421
|
-
return _StreamingModule.initializeStreamServer(config);
|
|
36422
|
-
}, "useFactory"),
|
|
36423
|
-
inject: ["STREAMING_MODULE_CONFIG"]
|
|
36424
|
-
};
|
|
36425
|
-
return {
|
|
36426
|
-
module: _StreamingModule,
|
|
36427
|
-
global: options.isGlobal !== false,
|
|
36428
|
-
imports: options.imports ?? [],
|
|
36429
|
-
controllers: includeController ? [StreamingController] : [],
|
|
36430
|
-
providers: [configProvider, streamServerProvider],
|
|
36431
|
-
exports: [STREAM_SERVER]
|
|
36432
|
-
};
|
|
36433
|
-
}
|
|
36434
|
-
/**
|
|
36435
|
-
* Initialize StreamServer with configuration
|
|
36436
|
-
*/
|
|
36437
|
-
// eslint-disable-next-line complexity
|
|
36438
|
-
static async initializeStreamServer(config) {
|
|
36439
|
-
if (_StreamingModule.streamServer) {
|
|
36440
|
-
_StreamingModule.streamServer.dispose();
|
|
36441
|
-
}
|
|
36442
|
-
const builder = exports.StreamServer.create().withSSE({
|
|
36443
|
-
heartbeatInterval: config.server?.broadcaster?.heartbeatInterval ?? streaming.STREAMING_DEFAULTS.HEARTBEAT_INTERVAL_MS
|
|
36444
|
-
});
|
|
36445
|
-
const defaultChannels = config.server?.defaultChannels ?? streaming.STREAMING_DEFAULTS.DEFAULT_CHANNELS;
|
|
36446
|
-
builder.withDefaultChannels(defaultChannels);
|
|
36447
|
-
const streamServer = builder.build();
|
|
36448
|
-
streamServer.initialize();
|
|
36449
|
-
_StreamingModule.streamServer = streamServer;
|
|
36450
|
-
if (config.endpoints?.length) {
|
|
36451
|
-
await exports.StreamRegistry.initialize({
|
|
36452
|
-
broadcaster: streamServer.getBroadcaster(),
|
|
36453
|
-
endpoints: config.endpoints
|
|
36454
|
-
});
|
|
36455
|
-
}
|
|
36456
|
-
return streamServer;
|
|
36457
|
-
}
|
|
36458
|
-
/**
|
|
36459
|
-
* Get the current StreamServer instance (for testing/debugging)
|
|
36460
|
-
*/
|
|
36461
|
-
static getStreamServer() {
|
|
36462
|
-
return _StreamingModule.streamServer;
|
|
36463
|
-
}
|
|
36464
|
-
});
|
|
36465
36234
|
|
|
36466
36235
|
// src/backend/notifications/notifications.controller.ts
|
|
36236
|
+
var import_common15 = __toESM(require_common());
|
|
36237
|
+
init_CoreInitializer();
|
|
36467
36238
|
var BACKEND_NOTIFICATIONS_DOMAIN_SERVICE = "BACKEND_NOTIFICATIONS_DOMAIN_SERVICE";
|
|
36468
36239
|
exports.NotificationsController = class NotificationsController {
|
|
36469
|
-
constructor(notificationsService
|
|
36240
|
+
constructor(notificationsService) {
|
|
36470
36241
|
this.notificationsService = notificationsService;
|
|
36471
|
-
this.coreOptions = coreOptions;
|
|
36472
36242
|
}
|
|
36473
36243
|
health() {
|
|
36474
36244
|
return errors.SuccessResponseStandard("Service is healthy", {
|
|
@@ -36493,7 +36263,7 @@ exports.NotificationsController = class NotificationsController {
|
|
|
36493
36263
|
{ context: { shortCode: code } }
|
|
36494
36264
|
);
|
|
36495
36265
|
}
|
|
36496
|
-
res.redirect(
|
|
36266
|
+
res.redirect(import_common15.HttpStatus.FOUND, originalUrl);
|
|
36497
36267
|
}
|
|
36498
36268
|
async getShortUrlAnalytics(code) {
|
|
36499
36269
|
const analytics = await this.notificationsService.getShortUrlAnalytics(code);
|
|
@@ -36520,7 +36290,7 @@ exports.NotificationsController = class NotificationsController {
|
|
|
36520
36290
|
context: { field: "token" }
|
|
36521
36291
|
});
|
|
36522
36292
|
}
|
|
36523
|
-
const encryptionKey =
|
|
36293
|
+
const encryptionKey = exports.Core.initOptions.env?.ENCRYPTION_KEY;
|
|
36524
36294
|
if (!encryptionKey) {
|
|
36525
36295
|
throw new errors.CorePackageError(
|
|
36526
36296
|
"Unsubscribe feature not configured",
|
|
@@ -36537,41 +36307,40 @@ exports.NotificationsController = class NotificationsController {
|
|
|
36537
36307
|
};
|
|
36538
36308
|
__name(exports.NotificationsController, "NotificationsController");
|
|
36539
36309
|
__decorateClass([
|
|
36540
|
-
(0,
|
|
36310
|
+
(0, import_common15.Get)("health")
|
|
36541
36311
|
], exports.NotificationsController.prototype, "health", 1);
|
|
36542
36312
|
__decorateClass([
|
|
36543
|
-
(0,
|
|
36544
|
-
__decorateParam(0, (0,
|
|
36313
|
+
(0, import_common15.Get)(),
|
|
36314
|
+
__decorateParam(0, (0, import_common15.Query)())
|
|
36545
36315
|
], exports.NotificationsController.prototype, "findAll", 1);
|
|
36546
36316
|
__decorateClass([
|
|
36547
|
-
(0,
|
|
36548
|
-
(0,
|
|
36549
|
-
__decorateParam(0, (0,
|
|
36317
|
+
(0, import_common15.Delete)(":id"),
|
|
36318
|
+
(0, import_common15.HttpCode)(import_common15.HttpStatus.OK),
|
|
36319
|
+
__decorateParam(0, (0, import_common15.Param)("id"))
|
|
36550
36320
|
], exports.NotificationsController.prototype, "remove", 1);
|
|
36551
36321
|
__decorateClass([
|
|
36552
|
-
(0,
|
|
36553
|
-
__decorateParam(0, (0,
|
|
36554
|
-
__decorateParam(1, (0,
|
|
36322
|
+
(0, import_common15.Get)("s/:code"),
|
|
36323
|
+
__decorateParam(0, (0, import_common15.Param)("code")),
|
|
36324
|
+
__decorateParam(1, (0, import_common15.Res)())
|
|
36555
36325
|
], exports.NotificationsController.prototype, "redirectShortUrl", 1);
|
|
36556
36326
|
__decorateClass([
|
|
36557
|
-
(0,
|
|
36558
|
-
__decorateParam(0, (0,
|
|
36327
|
+
(0, import_common15.Get)("s/:code/analytics"),
|
|
36328
|
+
__decorateParam(0, (0, import_common15.Param)("code"))
|
|
36559
36329
|
], exports.NotificationsController.prototype, "getShortUrlAnalytics", 1);
|
|
36560
36330
|
__decorateClass([
|
|
36561
|
-
(0,
|
|
36331
|
+
(0, import_common15.Get)("preferences")
|
|
36562
36332
|
], exports.NotificationsController.prototype, "getPreferences", 1);
|
|
36563
36333
|
__decorateClass([
|
|
36564
|
-
(0,
|
|
36565
|
-
__decorateParam(0, (0,
|
|
36334
|
+
(0, import_common15.Patch)("preferences"),
|
|
36335
|
+
__decorateParam(0, (0, import_common15.Body)())
|
|
36566
36336
|
], exports.NotificationsController.prototype, "updatePreferences", 1);
|
|
36567
36337
|
__decorateClass([
|
|
36568
|
-
(0,
|
|
36569
|
-
__decorateParam(0, (0,
|
|
36338
|
+
(0, import_common15.Get)("unsubscribe"),
|
|
36339
|
+
__decorateParam(0, (0, import_common15.Query)("token"))
|
|
36570
36340
|
], exports.NotificationsController.prototype, "unsubscribe", 1);
|
|
36571
36341
|
exports.NotificationsController = __decorateClass([
|
|
36572
|
-
(0,
|
|
36573
|
-
__decorateParam(0, (0,
|
|
36574
|
-
__decorateParam(1, (0, import_common17.Inject)(CORE_OPTIONS))
|
|
36342
|
+
(0, import_common15.Controller)("notifications"),
|
|
36343
|
+
__decorateParam(0, (0, import_common15.Inject)(BACKEND_NOTIFICATIONS_DOMAIN_SERVICE))
|
|
36575
36344
|
], exports.NotificationsController);
|
|
36576
36345
|
|
|
36577
36346
|
// src/backend/notifications/notifications.module.ts
|
|
@@ -36579,7 +36348,7 @@ exports.NotificationsModule = class NotificationsModule {
|
|
|
36579
36348
|
};
|
|
36580
36349
|
__name(exports.NotificationsModule, "NotificationsModule");
|
|
36581
36350
|
exports.NotificationsModule = __decorateClass([
|
|
36582
|
-
(0,
|
|
36351
|
+
(0, import_common16.Module)({
|
|
36583
36352
|
controllers: [exports.NotificationsController],
|
|
36584
36353
|
providers: [
|
|
36585
36354
|
// Provide BackendNotificationsDomainService via factory using the singleton instance
|
|
@@ -36872,10 +36641,10 @@ var FeatureFlagDomainService = class extends exports.BaseDomainService {
|
|
|
36872
36641
|
};
|
|
36873
36642
|
|
|
36874
36643
|
// src/backend/featureFlags/feature-flag.module.ts
|
|
36875
|
-
var
|
|
36644
|
+
var import_common18 = __toESM(require_common());
|
|
36876
36645
|
|
|
36877
36646
|
// src/backend/featureFlags/feature-flag.controller.ts
|
|
36878
|
-
var
|
|
36647
|
+
var import_common17 = __toESM(require_common());
|
|
36879
36648
|
var FeatureFlagService = class {
|
|
36880
36649
|
constructor(provider, config) {
|
|
36881
36650
|
this.provider = provider;
|
|
@@ -39745,54 +39514,54 @@ exports.FeatureFlagController = class FeatureFlagController {
|
|
|
39745
39514
|
};
|
|
39746
39515
|
__name(exports.FeatureFlagController, "FeatureFlagController");
|
|
39747
39516
|
__decorateClass([
|
|
39748
|
-
(0,
|
|
39749
|
-
__decorateParam(0, (0,
|
|
39750
|
-
__decorateParam(1, (0,
|
|
39517
|
+
(0, import_common17.Post)(":key/evaluate"),
|
|
39518
|
+
__decorateParam(0, (0, import_common17.Param)("key")),
|
|
39519
|
+
__decorateParam(1, (0, import_common17.Body)())
|
|
39751
39520
|
], exports.FeatureFlagController.prototype, "evaluateFlag", 1);
|
|
39752
39521
|
__decorateClass([
|
|
39753
|
-
(0,
|
|
39754
|
-
__decorateParam(0, (0,
|
|
39755
|
-
__decorateParam(1, (0,
|
|
39522
|
+
(0, import_common17.Post)(":key/enabled"),
|
|
39523
|
+
__decorateParam(0, (0, import_common17.Param)("key")),
|
|
39524
|
+
__decorateParam(1, (0, import_common17.Body)())
|
|
39756
39525
|
], exports.FeatureFlagController.prototype, "isEnabled", 1);
|
|
39757
39526
|
__decorateClass([
|
|
39758
|
-
(0,
|
|
39759
|
-
__decorateParam(0, (0,
|
|
39527
|
+
(0, import_common17.Post)("evaluate-all"),
|
|
39528
|
+
__decorateParam(0, (0, import_common17.Body)())
|
|
39760
39529
|
], exports.FeatureFlagController.prototype, "evaluateAllFlags", 1);
|
|
39761
39530
|
__decorateClass([
|
|
39762
|
-
(0,
|
|
39763
|
-
__decorateParam(0, (0,
|
|
39531
|
+
(0, import_common17.Post)(),
|
|
39532
|
+
__decorateParam(0, (0, import_common17.Body)())
|
|
39764
39533
|
], exports.FeatureFlagController.prototype, "createFlag", 1);
|
|
39765
39534
|
__decorateClass([
|
|
39766
|
-
(0,
|
|
39767
|
-
__decorateParam(0, (0,
|
|
39768
|
-
__decorateParam(1, (0,
|
|
39535
|
+
(0, import_common17.Put)(":key"),
|
|
39536
|
+
__decorateParam(0, (0, import_common17.Param)("key")),
|
|
39537
|
+
__decorateParam(1, (0, import_common17.Body)())
|
|
39769
39538
|
], exports.FeatureFlagController.prototype, "updateFlag", 1);
|
|
39770
39539
|
__decorateClass([
|
|
39771
|
-
(0,
|
|
39772
|
-
__decorateParam(0, (0,
|
|
39540
|
+
(0, import_common17.Delete)(":key"),
|
|
39541
|
+
__decorateParam(0, (0, import_common17.Param)("key"))
|
|
39773
39542
|
], exports.FeatureFlagController.prototype, "deleteFlag", 1);
|
|
39774
39543
|
__decorateClass([
|
|
39775
|
-
(0,
|
|
39776
|
-
__decorateParam(0, (0,
|
|
39777
|
-
__decorateParam(1, (0,
|
|
39544
|
+
(0, import_common17.Post)(":key/override"),
|
|
39545
|
+
__decorateParam(0, (0, import_common17.Param)("key")),
|
|
39546
|
+
__decorateParam(1, (0, import_common17.Body)("value"))
|
|
39778
39547
|
], exports.FeatureFlagController.prototype, "setOverride", 1);
|
|
39779
39548
|
__decorateClass([
|
|
39780
|
-
(0,
|
|
39781
|
-
__decorateParam(0, (0,
|
|
39549
|
+
(0, import_common17.Delete)(":key/override"),
|
|
39550
|
+
__decorateParam(0, (0, import_common17.Param)("key"))
|
|
39782
39551
|
], exports.FeatureFlagController.prototype, "removeOverride", 1);
|
|
39783
39552
|
__decorateClass([
|
|
39784
|
-
(0,
|
|
39785
|
-
__decorateParam(0, (0,
|
|
39553
|
+
(0, import_common17.Get)(":key/rules"),
|
|
39554
|
+
__decorateParam(0, (0, import_common17.Param)("key"))
|
|
39786
39555
|
], exports.FeatureFlagController.prototype, "getFlagRules", 1);
|
|
39787
39556
|
__decorateClass([
|
|
39788
|
-
(0,
|
|
39557
|
+
(0, import_common17.Post)("refresh")
|
|
39789
39558
|
], exports.FeatureFlagController.prototype, "refreshCache", 1);
|
|
39790
39559
|
__decorateClass([
|
|
39791
|
-
(0,
|
|
39560
|
+
(0, import_common17.Get)("health")
|
|
39792
39561
|
], exports.FeatureFlagController.prototype, "getHealth", 1);
|
|
39793
39562
|
exports.FeatureFlagController = __decorateClass([
|
|
39794
|
-
(0,
|
|
39795
|
-
__decorateParam(0, (0,
|
|
39563
|
+
(0, import_common17.Controller)("feature-flags"),
|
|
39564
|
+
__decorateParam(0, (0, import_common17.Inject)(FEATURE_FLAG_SERVICE))
|
|
39796
39565
|
], exports.FeatureFlagController);
|
|
39797
39566
|
|
|
39798
39567
|
// src/backend/featureFlags/feature-flag.module.ts
|
|
@@ -39884,16 +39653,16 @@ exports.FeatureFlagModule = class FeatureFlagModule {
|
|
|
39884
39653
|
__name(exports.FeatureFlagModule, "FeatureFlagModule");
|
|
39885
39654
|
exports.FeatureFlagModule.serviceInstance = null;
|
|
39886
39655
|
exports.FeatureFlagModule = __decorateClass([
|
|
39887
|
-
(0,
|
|
39888
|
-
(0,
|
|
39656
|
+
(0, import_common18.Global)(),
|
|
39657
|
+
(0, import_common18.Module)({
|
|
39889
39658
|
controllers: [exports.FeatureFlagController]
|
|
39890
39659
|
})
|
|
39891
39660
|
], exports.FeatureFlagModule);
|
|
39892
39661
|
|
|
39893
39662
|
// src/backend/featureFlags/decorators/feature-flag.decorator.ts
|
|
39894
|
-
var
|
|
39663
|
+
var import_common19 = __toESM(require_common());
|
|
39895
39664
|
function FeatureFlag(key, expected = true) {
|
|
39896
|
-
return (0,
|
|
39665
|
+
return (0, import_common19.SetMetadata)(types.FEATURE_FLAG_METADATA.FLAG_CHECK, { key, expected });
|
|
39897
39666
|
}
|
|
39898
39667
|
__name(FeatureFlag, "FeatureFlag");
|
|
39899
39668
|
|
|
@@ -39910,7 +39679,7 @@ function FeatureEnabled(key) {
|
|
|
39910
39679
|
__name(FeatureEnabled, "FeatureEnabled");
|
|
39911
39680
|
|
|
39912
39681
|
// src/backend/featureFlags/guards/feature-flag.guard.ts
|
|
39913
|
-
var
|
|
39682
|
+
var import_common20 = __toESM(require_common());
|
|
39914
39683
|
exports.FeatureFlagGuard = class FeatureFlagGuard {
|
|
39915
39684
|
constructor(reflector, featureFlagService) {
|
|
39916
39685
|
this.reflector = reflector;
|
|
@@ -39954,12 +39723,12 @@ exports.FeatureFlagGuard = class FeatureFlagGuard {
|
|
|
39954
39723
|
};
|
|
39955
39724
|
__name(exports.FeatureFlagGuard, "FeatureFlagGuard");
|
|
39956
39725
|
exports.FeatureFlagGuard = __decorateClass([
|
|
39957
|
-
(0,
|
|
39958
|
-
__decorateParam(1, (0,
|
|
39726
|
+
(0, import_common20.Injectable)(),
|
|
39727
|
+
__decorateParam(1, (0, import_common20.Inject)(FEATURE_FLAG_SERVICE))
|
|
39959
39728
|
], exports.FeatureFlagGuard);
|
|
39960
39729
|
|
|
39961
39730
|
// src/backend/featureFlags/middleware/feature-flag-middleware.ts
|
|
39962
|
-
var
|
|
39731
|
+
var import_common21 = __toESM(require_common());
|
|
39963
39732
|
function isFeatureFlagKey(value) {
|
|
39964
39733
|
return Object.keys(config.FEATURES).includes(value);
|
|
39965
39734
|
}
|
|
@@ -40037,12 +39806,12 @@ exports.FeatureFlagMiddleware = class FeatureFlagMiddleware {
|
|
|
40037
39806
|
};
|
|
40038
39807
|
__name(exports.FeatureFlagMiddleware, "FeatureFlagMiddleware");
|
|
40039
39808
|
exports.FeatureFlagMiddleware = __decorateClass([
|
|
40040
|
-
(0,
|
|
40041
|
-
__decorateParam(0, (0,
|
|
39809
|
+
(0, import_common21.Injectable)(),
|
|
39810
|
+
__decorateParam(0, (0, import_common21.Inject)(FEATURE_FLAG_SERVICE))
|
|
40042
39811
|
], exports.FeatureFlagMiddleware);
|
|
40043
39812
|
|
|
40044
39813
|
// src/backend/featureFlags/interceptors/feature-flag-logging-interceptor.ts
|
|
40045
|
-
var
|
|
39814
|
+
var import_common22 = __toESM(require_common());
|
|
40046
39815
|
var import_rxjs = __toESM(require_cjs());
|
|
40047
39816
|
exports.FeatureFlagLoggingInterceptor = class FeatureFlagLoggingInterceptor {
|
|
40048
39817
|
constructor() {
|
|
@@ -40075,11 +39844,11 @@ exports.FeatureFlagLoggingInterceptor = class FeatureFlagLoggingInterceptor {
|
|
|
40075
39844
|
};
|
|
40076
39845
|
__name(exports.FeatureFlagLoggingInterceptor, "FeatureFlagLoggingInterceptor");
|
|
40077
39846
|
exports.FeatureFlagLoggingInterceptor = __decorateClass([
|
|
40078
|
-
(0,
|
|
39847
|
+
(0, import_common22.Injectable)()
|
|
40079
39848
|
], exports.FeatureFlagLoggingInterceptor);
|
|
40080
39849
|
|
|
40081
39850
|
// src/backend/featureFlags/interceptors/error-handling-interceptor.ts
|
|
40082
|
-
var
|
|
39851
|
+
var import_common23 = __toESM(require_common());
|
|
40083
39852
|
var import_operators = __toESM(require_operators());
|
|
40084
39853
|
exports.ErrorHandlingInterceptor = class ErrorHandlingInterceptor {
|
|
40085
39854
|
constructor() {
|
|
@@ -40108,7 +39877,7 @@ exports.ErrorHandlingInterceptor = class ErrorHandlingInterceptor {
|
|
|
40108
39877
|
};
|
|
40109
39878
|
__name(exports.ErrorHandlingInterceptor, "ErrorHandlingInterceptor");
|
|
40110
39879
|
exports.ErrorHandlingInterceptor = __decorateClass([
|
|
40111
|
-
(0,
|
|
39880
|
+
(0, import_common23.Injectable)()
|
|
40112
39881
|
], exports.ErrorHandlingInterceptor);
|
|
40113
39882
|
|
|
40114
39883
|
// src/backend/featureFlags/config/validation.ts
|
|
@@ -40461,10 +40230,10 @@ var FeatureFlagConfigFactory = class {
|
|
|
40461
40230
|
};
|
|
40462
40231
|
|
|
40463
40232
|
// src/backend/webhooks/webhooks.module.ts
|
|
40464
|
-
var
|
|
40233
|
+
var import_common25 = __toESM(require_common());
|
|
40465
40234
|
|
|
40466
40235
|
// src/backend/webhooks/webhooks.controller.ts
|
|
40467
|
-
var
|
|
40236
|
+
var import_common24 = __toESM(require_common());
|
|
40468
40237
|
init_CoreInitializer();
|
|
40469
40238
|
var log = new logger$1.PackageLogger({
|
|
40470
40239
|
packageName: "core",
|
|
@@ -40498,7 +40267,7 @@ exports.WebhooksController = class WebhooksController {
|
|
|
40498
40267
|
errors$1.CORE_ERROR_CODES.PROVIDER_NOT_FOUND,
|
|
40499
40268
|
{
|
|
40500
40269
|
context: { provider, service: "storage" },
|
|
40501
|
-
statusCode:
|
|
40270
|
+
statusCode: import_common24.HttpStatus.BAD_REQUEST
|
|
40502
40271
|
}
|
|
40503
40272
|
);
|
|
40504
40273
|
}
|
|
@@ -40510,7 +40279,7 @@ exports.WebhooksController = class WebhooksController {
|
|
|
40510
40279
|
errors$1.CORE_ERROR_CODES.INITIALIZATION_FAILED,
|
|
40511
40280
|
{
|
|
40512
40281
|
context: { provider, service: "storage" },
|
|
40513
|
-
statusCode:
|
|
40282
|
+
statusCode: import_common24.HttpStatus.SERVICE_UNAVAILABLE
|
|
40514
40283
|
}
|
|
40515
40284
|
);
|
|
40516
40285
|
}
|
|
@@ -40549,7 +40318,7 @@ exports.WebhooksController = class WebhooksController {
|
|
|
40549
40318
|
throw new errors.CorePackageError(error.message, errors$1.CORE_ERROR_CODES.OPERATION_FAILED, {
|
|
40550
40319
|
context: { provider, service: "storage", operation: "webhook" },
|
|
40551
40320
|
cause: error,
|
|
40552
|
-
statusCode:
|
|
40321
|
+
statusCode: import_common24.HttpStatus.INTERNAL_SERVER_ERROR
|
|
40553
40322
|
});
|
|
40554
40323
|
}
|
|
40555
40324
|
}
|
|
@@ -40588,7 +40357,7 @@ exports.WebhooksController = class WebhooksController {
|
|
|
40588
40357
|
errors$1.CORE_ERROR_CODES.VALIDATION_FAILED,
|
|
40589
40358
|
{
|
|
40590
40359
|
context: { type, provider: "infobip", service: "notifications" },
|
|
40591
|
-
statusCode:
|
|
40360
|
+
statusCode: import_common24.HttpStatus.BAD_REQUEST
|
|
40592
40361
|
}
|
|
40593
40362
|
);
|
|
40594
40363
|
}
|
|
@@ -40606,7 +40375,7 @@ exports.WebhooksController = class WebhooksController {
|
|
|
40606
40375
|
errors$1.CORE_ERROR_CODES.PROVIDER_NOT_FOUND,
|
|
40607
40376
|
{
|
|
40608
40377
|
context: { provider, service: "notifications" },
|
|
40609
|
-
statusCode:
|
|
40378
|
+
statusCode: import_common24.HttpStatus.BAD_REQUEST
|
|
40610
40379
|
}
|
|
40611
40380
|
);
|
|
40612
40381
|
}
|
|
@@ -40618,7 +40387,7 @@ exports.WebhooksController = class WebhooksController {
|
|
|
40618
40387
|
errors$1.CORE_ERROR_CODES.INITIALIZATION_FAILED,
|
|
40619
40388
|
{
|
|
40620
40389
|
context: { provider, service: "notifications" },
|
|
40621
|
-
statusCode:
|
|
40390
|
+
statusCode: import_common24.HttpStatus.SERVICE_UNAVAILABLE
|
|
40622
40391
|
}
|
|
40623
40392
|
);
|
|
40624
40393
|
}
|
|
@@ -40664,38 +40433,38 @@ exports.WebhooksController = class WebhooksController {
|
|
|
40664
40433
|
throw new errors.CorePackageError(error.message, errors$1.CORE_ERROR_CODES.OPERATION_FAILED, {
|
|
40665
40434
|
context: { provider, service: "notifications", operation: "webhook" },
|
|
40666
40435
|
cause: error,
|
|
40667
|
-
statusCode:
|
|
40436
|
+
statusCode: import_common24.HttpStatus.INTERNAL_SERVER_ERROR
|
|
40668
40437
|
});
|
|
40669
40438
|
}
|
|
40670
40439
|
}
|
|
40671
40440
|
};
|
|
40672
40441
|
__name(exports.WebhooksController, "WebhooksController");
|
|
40673
40442
|
__decorateClass([
|
|
40674
|
-
(0,
|
|
40675
|
-
(0,
|
|
40676
|
-
__decorateParam(0, (0,
|
|
40677
|
-
__decorateParam(1, (0,
|
|
40678
|
-
__decorateParam(2, (0,
|
|
40679
|
-
__decorateParam(3, (0,
|
|
40443
|
+
(0, import_common24.Post)("storage/:provider"),
|
|
40444
|
+
(0, import_common24.HttpCode)(import_common24.HttpStatus.OK),
|
|
40445
|
+
__decorateParam(0, (0, import_common24.Param)("provider")),
|
|
40446
|
+
__decorateParam(1, (0, import_common24.Headers)()),
|
|
40447
|
+
__decorateParam(2, (0, import_common24.Body)()),
|
|
40448
|
+
__decorateParam(3, (0, import_common24.Req)())
|
|
40680
40449
|
], exports.WebhooksController.prototype, "handleStorageWebhook", 1);
|
|
40681
40450
|
__decorateClass([
|
|
40682
|
-
(0,
|
|
40683
|
-
(0,
|
|
40684
|
-
__decorateParam(0, (0,
|
|
40685
|
-
__decorateParam(1, (0,
|
|
40686
|
-
__decorateParam(2, (0,
|
|
40687
|
-
__decorateParam(3, (0,
|
|
40451
|
+
(0, import_common24.Post)("notifications/:provider"),
|
|
40452
|
+
(0, import_common24.HttpCode)(import_common24.HttpStatus.OK),
|
|
40453
|
+
__decorateParam(0, (0, import_common24.Param)("provider")),
|
|
40454
|
+
__decorateParam(1, (0, import_common24.Headers)()),
|
|
40455
|
+
__decorateParam(2, (0, import_common24.Body)()),
|
|
40456
|
+
__decorateParam(3, (0, import_common24.Req)())
|
|
40688
40457
|
], exports.WebhooksController.prototype, "handleNotificationWebhook", 1);
|
|
40689
40458
|
__decorateClass([
|
|
40690
|
-
(0,
|
|
40691
|
-
(0,
|
|
40692
|
-
__decorateParam(0, (0,
|
|
40693
|
-
__decorateParam(1, (0,
|
|
40694
|
-
__decorateParam(2, (0,
|
|
40695
|
-
__decorateParam(3, (0,
|
|
40459
|
+
(0, import_common24.Post)("notifications/infobip/:type"),
|
|
40460
|
+
(0, import_common24.HttpCode)(import_common24.HttpStatus.OK),
|
|
40461
|
+
__decorateParam(0, (0, import_common24.Param)("type")),
|
|
40462
|
+
__decorateParam(1, (0, import_common24.Headers)()),
|
|
40463
|
+
__decorateParam(2, (0, import_common24.Body)()),
|
|
40464
|
+
__decorateParam(3, (0, import_common24.Req)())
|
|
40696
40465
|
], exports.WebhooksController.prototype, "handleInfobipTypedWebhook", 1);
|
|
40697
40466
|
exports.WebhooksController = __decorateClass([
|
|
40698
|
-
(0,
|
|
40467
|
+
(0, import_common24.Controller)("webhooks")
|
|
40699
40468
|
], exports.WebhooksController);
|
|
40700
40469
|
|
|
40701
40470
|
// src/backend/webhooks/webhooks.module.ts
|
|
@@ -40703,13 +40472,13 @@ exports.WebhooksModule = class WebhooksModule {
|
|
|
40703
40472
|
};
|
|
40704
40473
|
__name(exports.WebhooksModule, "WebhooksModule");
|
|
40705
40474
|
exports.WebhooksModule = __decorateClass([
|
|
40706
|
-
(0,
|
|
40475
|
+
(0, import_common25.Module)({
|
|
40707
40476
|
controllers: [exports.WebhooksController]
|
|
40708
40477
|
})
|
|
40709
40478
|
], exports.WebhooksModule);
|
|
40710
40479
|
|
|
40711
40480
|
// src/base/cache/feature/caching.ts
|
|
40712
|
-
var
|
|
40481
|
+
var import_common26 = __toESM(require_common());
|
|
40713
40482
|
var import_rxjs2 = __toESM(require_cjs());
|
|
40714
40483
|
exports.Caching = class Caching {
|
|
40715
40484
|
constructor() {
|
|
@@ -40732,7 +40501,7 @@ exports.Caching = class Caching {
|
|
|
40732
40501
|
};
|
|
40733
40502
|
__name(exports.Caching, "Caching");
|
|
40734
40503
|
exports.Caching = __decorateClass([
|
|
40735
|
-
(0,
|
|
40504
|
+
(0, import_common26.Injectable)()
|
|
40736
40505
|
], exports.Caching);
|
|
40737
40506
|
|
|
40738
40507
|
// src/adapters/nextjs.ts
|
|
@@ -40822,8 +40591,8 @@ __name(createHandler, "createHandler");
|
|
|
40822
40591
|
init_DbService();
|
|
40823
40592
|
var CORE_DB_SERVICE = "CORE_DB_SERVICE";
|
|
40824
40593
|
var CORE_ENV = "CORE_ENV";
|
|
40825
|
-
var
|
|
40826
|
-
var
|
|
40594
|
+
var CORE_OPTIONS = "CORE_OPTIONS";
|
|
40595
|
+
var CoreModule = {
|
|
40827
40596
|
/**
|
|
40828
40597
|
* Register CoreModule with static configuration
|
|
40829
40598
|
*/
|
|
@@ -40834,7 +40603,7 @@ var CoreModule2 = {
|
|
|
40834
40603
|
global: isGlobal,
|
|
40835
40604
|
providers: [
|
|
40836
40605
|
{
|
|
40837
|
-
provide:
|
|
40606
|
+
provide: CORE_OPTIONS,
|
|
40838
40607
|
useValue: options
|
|
40839
40608
|
},
|
|
40840
40609
|
{
|
|
@@ -40860,7 +40629,7 @@ var CoreModule2 = {
|
|
|
40860
40629
|
useFactory: /* @__PURE__ */ __name(() => exports.DbService.getInstance(), "useFactory")
|
|
40861
40630
|
}
|
|
40862
40631
|
],
|
|
40863
|
-
exports: [CORE_DB_SERVICE, CORE_ENV,
|
|
40632
|
+
exports: [CORE_DB_SERVICE, CORE_ENV, CORE_OPTIONS, exports.DbService]
|
|
40864
40633
|
};
|
|
40865
40634
|
},
|
|
40866
40635
|
/**
|
|
@@ -40874,13 +40643,13 @@ var CoreModule2 = {
|
|
|
40874
40643
|
imports: options.imports ?? [],
|
|
40875
40644
|
providers: [
|
|
40876
40645
|
{
|
|
40877
|
-
provide:
|
|
40646
|
+
provide: CORE_OPTIONS,
|
|
40878
40647
|
inject: options.inject ?? [],
|
|
40879
40648
|
useFactory: options.useFactory
|
|
40880
40649
|
},
|
|
40881
40650
|
{
|
|
40882
40651
|
provide: CORE_ENV,
|
|
40883
|
-
inject: [
|
|
40652
|
+
inject: [CORE_OPTIONS],
|
|
40884
40653
|
useFactory: /* @__PURE__ */ __name((coreOptions) => {
|
|
40885
40654
|
if (coreOptions.envPath) {
|
|
40886
40655
|
dotenv.config({ path: coreOptions.envPath });
|
|
@@ -40890,7 +40659,7 @@ var CoreModule2 = {
|
|
|
40890
40659
|
},
|
|
40891
40660
|
{
|
|
40892
40661
|
provide: CORE_DB_SERVICE,
|
|
40893
|
-
inject: [
|
|
40662
|
+
inject: [CORE_OPTIONS],
|
|
40894
40663
|
useFactory: /* @__PURE__ */ __name(async (coreOptions) => {
|
|
40895
40664
|
if (coreOptions.db) {
|
|
40896
40665
|
return exports.DbService.initialize(coreOptions.db);
|
|
@@ -40903,7 +40672,7 @@ var CoreModule2 = {
|
|
|
40903
40672
|
useFactory: /* @__PURE__ */ __name(() => exports.DbService.getInstance(), "useFactory")
|
|
40904
40673
|
}
|
|
40905
40674
|
],
|
|
40906
|
-
exports: [CORE_DB_SERVICE, CORE_ENV,
|
|
40675
|
+
exports: [CORE_DB_SERVICE, CORE_ENV, CORE_OPTIONS, exports.DbService]
|
|
40907
40676
|
};
|
|
40908
40677
|
}
|
|
40909
40678
|
};
|
|
@@ -40967,11 +40736,11 @@ exports.BACKEND_FILES_DOMAIN_SERVICE = BACKEND_FILES_DOMAIN_SERVICE;
|
|
|
40967
40736
|
exports.BACKEND_NOTIFICATIONS_DOMAIN_SERVICE = BACKEND_NOTIFICATIONS_DOMAIN_SERVICE;
|
|
40968
40737
|
exports.CORE_DB_SERVICE = CORE_DB_SERVICE;
|
|
40969
40738
|
exports.CORE_ENV = CORE_ENV;
|
|
40970
|
-
exports.CORE_OPTIONS =
|
|
40739
|
+
exports.CORE_OPTIONS = CORE_OPTIONS;
|
|
40971
40740
|
exports.CacheService = CacheService;
|
|
40972
40741
|
exports.ConditionUtils = ConditionUtils;
|
|
40973
40742
|
exports.ContextUtils = ContextUtils;
|
|
40974
|
-
exports.CoreModule =
|
|
40743
|
+
exports.CoreModule = CoreModule;
|
|
40975
40744
|
exports.FeatureDisabled = FeatureDisabled;
|
|
40976
40745
|
exports.FeatureEnabled = FeatureEnabled;
|
|
40977
40746
|
exports.FeatureFlagConfigFactory = FeatureFlagConfigFactory;
|