@plyaz/core 1.22.4 → 1.22.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 +196 -99
- package/dist/entry-backend.cjs.map +1 -1
- package/dist/entry-backend.mjs +97 -1
- package/dist/entry-backend.mjs.map +1 -1
- package/dist/index.cjs +197 -98
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +97 -1
- package/dist/index.mjs.map +1 -1
- package/dist/init/nestjs/CoreModule.d.ts +2 -1
- package/dist/init/nestjs/CoreModule.d.ts.map +1 -1
- package/dist/init/nestjs/index.cjs +13 -10
- package/dist/init/nestjs/index.cjs.map +1 -1
- package/dist/init/nestjs/index.mjs +8 -7
- package/dist/init/nestjs/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/entry-backend.cjs
CHANGED
|
@@ -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 = Global3;
|
|
18889
18889
|
var constants_1 = require_constants();
|
|
18890
|
-
function
|
|
18890
|
+
function Global3() {
|
|
18891
18891
|
return (target) => {
|
|
18892
18892
|
Reflect.defineMetadata(constants_1.GLOBAL_MODULE_METADATA, true, target);
|
|
18893
18893
|
};
|
|
18894
18894
|
}
|
|
18895
|
-
__name(
|
|
18895
|
+
__name(Global3, "Global");
|
|
18896
18896
|
}
|
|
18897
18897
|
});
|
|
18898
18898
|
|
|
@@ -36230,10 +36230,10 @@ init_NotificationsValidator();
|
|
|
36230
36230
|
init_streaming2();
|
|
36231
36231
|
|
|
36232
36232
|
// src/backend/notifications/notifications.module.ts
|
|
36233
|
-
var
|
|
36233
|
+
var import_common18 = __toESM(require_common());
|
|
36234
36234
|
|
|
36235
36235
|
// src/backend/notifications/notifications.controller.ts
|
|
36236
|
-
var
|
|
36236
|
+
var import_common17 = __toESM(require_common());
|
|
36237
36237
|
|
|
36238
36238
|
// src/init/nestjs/index.ts
|
|
36239
36239
|
init_CoreInitializer();
|
|
@@ -36242,6 +36242,7 @@ init_CoreInitializer();
|
|
|
36242
36242
|
init_CoreInitializer();
|
|
36243
36243
|
|
|
36244
36244
|
// src/init/nestjs/CoreModule.ts
|
|
36245
|
+
var import_common16 = __toESM(require_common());
|
|
36245
36246
|
init_CoreInitializer();
|
|
36246
36247
|
init_DbService();
|
|
36247
36248
|
|
|
@@ -36270,6 +36271,102 @@ StreamingController = __decorateClass([
|
|
|
36270
36271
|
|
|
36271
36272
|
// src/init/nestjs/CoreModule.ts
|
|
36272
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);
|
|
36273
36370
|
|
|
36274
36371
|
// src/init/nestjs/StreamingModule.ts
|
|
36275
36372
|
init_streaming3();
|
|
@@ -36396,7 +36493,7 @@ exports.NotificationsController = class NotificationsController {
|
|
|
36396
36493
|
{ context: { shortCode: code } }
|
|
36397
36494
|
);
|
|
36398
36495
|
}
|
|
36399
|
-
res.redirect(
|
|
36496
|
+
res.redirect(import_common17.HttpStatus.FOUND, originalUrl);
|
|
36400
36497
|
}
|
|
36401
36498
|
async getShortUrlAnalytics(code) {
|
|
36402
36499
|
const analytics = await this.notificationsService.getShortUrlAnalytics(code);
|
|
@@ -36440,41 +36537,41 @@ exports.NotificationsController = class NotificationsController {
|
|
|
36440
36537
|
};
|
|
36441
36538
|
__name(exports.NotificationsController, "NotificationsController");
|
|
36442
36539
|
__decorateClass([
|
|
36443
|
-
(0,
|
|
36540
|
+
(0, import_common17.Get)("health")
|
|
36444
36541
|
], exports.NotificationsController.prototype, "health", 1);
|
|
36445
36542
|
__decorateClass([
|
|
36446
|
-
(0,
|
|
36447
|
-
__decorateParam(0, (0,
|
|
36543
|
+
(0, import_common17.Get)(),
|
|
36544
|
+
__decorateParam(0, (0, import_common17.Query)())
|
|
36448
36545
|
], exports.NotificationsController.prototype, "findAll", 1);
|
|
36449
36546
|
__decorateClass([
|
|
36450
|
-
(0,
|
|
36451
|
-
(0,
|
|
36452
|
-
__decorateParam(0, (0,
|
|
36547
|
+
(0, import_common17.Delete)(":id"),
|
|
36548
|
+
(0, import_common17.HttpCode)(import_common17.HttpStatus.OK),
|
|
36549
|
+
__decorateParam(0, (0, import_common17.Param)("id"))
|
|
36453
36550
|
], exports.NotificationsController.prototype, "remove", 1);
|
|
36454
36551
|
__decorateClass([
|
|
36455
|
-
(0,
|
|
36456
|
-
__decorateParam(0, (0,
|
|
36457
|
-
__decorateParam(1, (0,
|
|
36552
|
+
(0, import_common17.Get)("s/:code"),
|
|
36553
|
+
__decorateParam(0, (0, import_common17.Param)("code")),
|
|
36554
|
+
__decorateParam(1, (0, import_common17.Res)())
|
|
36458
36555
|
], exports.NotificationsController.prototype, "redirectShortUrl", 1);
|
|
36459
36556
|
__decorateClass([
|
|
36460
|
-
(0,
|
|
36461
|
-
__decorateParam(0, (0,
|
|
36557
|
+
(0, import_common17.Get)("s/:code/analytics"),
|
|
36558
|
+
__decorateParam(0, (0, import_common17.Param)("code"))
|
|
36462
36559
|
], exports.NotificationsController.prototype, "getShortUrlAnalytics", 1);
|
|
36463
36560
|
__decorateClass([
|
|
36464
|
-
(0,
|
|
36561
|
+
(0, import_common17.Get)("preferences")
|
|
36465
36562
|
], exports.NotificationsController.prototype, "getPreferences", 1);
|
|
36466
36563
|
__decorateClass([
|
|
36467
|
-
(0,
|
|
36468
|
-
__decorateParam(0, (0,
|
|
36564
|
+
(0, import_common17.Patch)("preferences"),
|
|
36565
|
+
__decorateParam(0, (0, import_common17.Body)())
|
|
36469
36566
|
], exports.NotificationsController.prototype, "updatePreferences", 1);
|
|
36470
36567
|
__decorateClass([
|
|
36471
|
-
(0,
|
|
36472
|
-
__decorateParam(0, (0,
|
|
36568
|
+
(0, import_common17.Get)("unsubscribe"),
|
|
36569
|
+
__decorateParam(0, (0, import_common17.Query)("token"))
|
|
36473
36570
|
], exports.NotificationsController.prototype, "unsubscribe", 1);
|
|
36474
36571
|
exports.NotificationsController = __decorateClass([
|
|
36475
|
-
(0,
|
|
36476
|
-
__decorateParam(0, (0,
|
|
36477
|
-
__decorateParam(1, (0,
|
|
36572
|
+
(0, import_common17.Controller)("notifications"),
|
|
36573
|
+
__decorateParam(0, (0, import_common17.Inject)(BACKEND_NOTIFICATIONS_DOMAIN_SERVICE)),
|
|
36574
|
+
__decorateParam(1, (0, import_common17.Inject)(CORE_OPTIONS))
|
|
36478
36575
|
], exports.NotificationsController);
|
|
36479
36576
|
|
|
36480
36577
|
// src/backend/notifications/notifications.module.ts
|
|
@@ -36482,7 +36579,7 @@ exports.NotificationsModule = class NotificationsModule {
|
|
|
36482
36579
|
};
|
|
36483
36580
|
__name(exports.NotificationsModule, "NotificationsModule");
|
|
36484
36581
|
exports.NotificationsModule = __decorateClass([
|
|
36485
|
-
(0,
|
|
36582
|
+
(0, import_common18.Module)({
|
|
36486
36583
|
controllers: [exports.NotificationsController],
|
|
36487
36584
|
providers: [
|
|
36488
36585
|
// Provide BackendNotificationsDomainService via factory using the singleton instance
|
|
@@ -36775,10 +36872,10 @@ var FeatureFlagDomainService = class extends exports.BaseDomainService {
|
|
|
36775
36872
|
};
|
|
36776
36873
|
|
|
36777
36874
|
// src/backend/featureFlags/feature-flag.module.ts
|
|
36778
|
-
var
|
|
36875
|
+
var import_common20 = __toESM(require_common());
|
|
36779
36876
|
|
|
36780
36877
|
// src/backend/featureFlags/feature-flag.controller.ts
|
|
36781
|
-
var
|
|
36878
|
+
var import_common19 = __toESM(require_common());
|
|
36782
36879
|
var FeatureFlagService = class {
|
|
36783
36880
|
constructor(provider, config) {
|
|
36784
36881
|
this.provider = provider;
|
|
@@ -39648,54 +39745,54 @@ exports.FeatureFlagController = class FeatureFlagController {
|
|
|
39648
39745
|
};
|
|
39649
39746
|
__name(exports.FeatureFlagController, "FeatureFlagController");
|
|
39650
39747
|
__decorateClass([
|
|
39651
|
-
(0,
|
|
39652
|
-
__decorateParam(0, (0,
|
|
39653
|
-
__decorateParam(1, (0,
|
|
39748
|
+
(0, import_common19.Post)(":key/evaluate"),
|
|
39749
|
+
__decorateParam(0, (0, import_common19.Param)("key")),
|
|
39750
|
+
__decorateParam(1, (0, import_common19.Body)())
|
|
39654
39751
|
], exports.FeatureFlagController.prototype, "evaluateFlag", 1);
|
|
39655
39752
|
__decorateClass([
|
|
39656
|
-
(0,
|
|
39657
|
-
__decorateParam(0, (0,
|
|
39658
|
-
__decorateParam(1, (0,
|
|
39753
|
+
(0, import_common19.Post)(":key/enabled"),
|
|
39754
|
+
__decorateParam(0, (0, import_common19.Param)("key")),
|
|
39755
|
+
__decorateParam(1, (0, import_common19.Body)())
|
|
39659
39756
|
], exports.FeatureFlagController.prototype, "isEnabled", 1);
|
|
39660
39757
|
__decorateClass([
|
|
39661
|
-
(0,
|
|
39662
|
-
__decorateParam(0, (0,
|
|
39758
|
+
(0, import_common19.Post)("evaluate-all"),
|
|
39759
|
+
__decorateParam(0, (0, import_common19.Body)())
|
|
39663
39760
|
], exports.FeatureFlagController.prototype, "evaluateAllFlags", 1);
|
|
39664
39761
|
__decorateClass([
|
|
39665
|
-
(0,
|
|
39666
|
-
__decorateParam(0, (0,
|
|
39762
|
+
(0, import_common19.Post)(),
|
|
39763
|
+
__decorateParam(0, (0, import_common19.Body)())
|
|
39667
39764
|
], exports.FeatureFlagController.prototype, "createFlag", 1);
|
|
39668
39765
|
__decorateClass([
|
|
39669
|
-
(0,
|
|
39670
|
-
__decorateParam(0, (0,
|
|
39671
|
-
__decorateParam(1, (0,
|
|
39766
|
+
(0, import_common19.Put)(":key"),
|
|
39767
|
+
__decorateParam(0, (0, import_common19.Param)("key")),
|
|
39768
|
+
__decorateParam(1, (0, import_common19.Body)())
|
|
39672
39769
|
], exports.FeatureFlagController.prototype, "updateFlag", 1);
|
|
39673
39770
|
__decorateClass([
|
|
39674
|
-
(0,
|
|
39675
|
-
__decorateParam(0, (0,
|
|
39771
|
+
(0, import_common19.Delete)(":key"),
|
|
39772
|
+
__decorateParam(0, (0, import_common19.Param)("key"))
|
|
39676
39773
|
], exports.FeatureFlagController.prototype, "deleteFlag", 1);
|
|
39677
39774
|
__decorateClass([
|
|
39678
|
-
(0,
|
|
39679
|
-
__decorateParam(0, (0,
|
|
39680
|
-
__decorateParam(1, (0,
|
|
39775
|
+
(0, import_common19.Post)(":key/override"),
|
|
39776
|
+
__decorateParam(0, (0, import_common19.Param)("key")),
|
|
39777
|
+
__decorateParam(1, (0, import_common19.Body)("value"))
|
|
39681
39778
|
], exports.FeatureFlagController.prototype, "setOverride", 1);
|
|
39682
39779
|
__decorateClass([
|
|
39683
|
-
(0,
|
|
39684
|
-
__decorateParam(0, (0,
|
|
39780
|
+
(0, import_common19.Delete)(":key/override"),
|
|
39781
|
+
__decorateParam(0, (0, import_common19.Param)("key"))
|
|
39685
39782
|
], exports.FeatureFlagController.prototype, "removeOverride", 1);
|
|
39686
39783
|
__decorateClass([
|
|
39687
|
-
(0,
|
|
39688
|
-
__decorateParam(0, (0,
|
|
39784
|
+
(0, import_common19.Get)(":key/rules"),
|
|
39785
|
+
__decorateParam(0, (0, import_common19.Param)("key"))
|
|
39689
39786
|
], exports.FeatureFlagController.prototype, "getFlagRules", 1);
|
|
39690
39787
|
__decorateClass([
|
|
39691
|
-
(0,
|
|
39788
|
+
(0, import_common19.Post)("refresh")
|
|
39692
39789
|
], exports.FeatureFlagController.prototype, "refreshCache", 1);
|
|
39693
39790
|
__decorateClass([
|
|
39694
|
-
(0,
|
|
39791
|
+
(0, import_common19.Get)("health")
|
|
39695
39792
|
], exports.FeatureFlagController.prototype, "getHealth", 1);
|
|
39696
39793
|
exports.FeatureFlagController = __decorateClass([
|
|
39697
|
-
(0,
|
|
39698
|
-
__decorateParam(0, (0,
|
|
39794
|
+
(0, import_common19.Controller)("feature-flags"),
|
|
39795
|
+
__decorateParam(0, (0, import_common19.Inject)(FEATURE_FLAG_SERVICE))
|
|
39699
39796
|
], exports.FeatureFlagController);
|
|
39700
39797
|
|
|
39701
39798
|
// src/backend/featureFlags/feature-flag.module.ts
|
|
@@ -39787,16 +39884,16 @@ exports.FeatureFlagModule = class FeatureFlagModule {
|
|
|
39787
39884
|
__name(exports.FeatureFlagModule, "FeatureFlagModule");
|
|
39788
39885
|
exports.FeatureFlagModule.serviceInstance = null;
|
|
39789
39886
|
exports.FeatureFlagModule = __decorateClass([
|
|
39790
|
-
(0,
|
|
39791
|
-
(0,
|
|
39887
|
+
(0, import_common20.Global)(),
|
|
39888
|
+
(0, import_common20.Module)({
|
|
39792
39889
|
controllers: [exports.FeatureFlagController]
|
|
39793
39890
|
})
|
|
39794
39891
|
], exports.FeatureFlagModule);
|
|
39795
39892
|
|
|
39796
39893
|
// src/backend/featureFlags/decorators/feature-flag.decorator.ts
|
|
39797
|
-
var
|
|
39894
|
+
var import_common21 = __toESM(require_common());
|
|
39798
39895
|
function FeatureFlag(key, expected = true) {
|
|
39799
|
-
return (0,
|
|
39896
|
+
return (0, import_common21.SetMetadata)(types.FEATURE_FLAG_METADATA.FLAG_CHECK, { key, expected });
|
|
39800
39897
|
}
|
|
39801
39898
|
__name(FeatureFlag, "FeatureFlag");
|
|
39802
39899
|
|
|
@@ -39813,7 +39910,7 @@ function FeatureEnabled(key) {
|
|
|
39813
39910
|
__name(FeatureEnabled, "FeatureEnabled");
|
|
39814
39911
|
|
|
39815
39912
|
// src/backend/featureFlags/guards/feature-flag.guard.ts
|
|
39816
|
-
var
|
|
39913
|
+
var import_common22 = __toESM(require_common());
|
|
39817
39914
|
exports.FeatureFlagGuard = class FeatureFlagGuard {
|
|
39818
39915
|
constructor(reflector, featureFlagService) {
|
|
39819
39916
|
this.reflector = reflector;
|
|
@@ -39857,12 +39954,12 @@ exports.FeatureFlagGuard = class FeatureFlagGuard {
|
|
|
39857
39954
|
};
|
|
39858
39955
|
__name(exports.FeatureFlagGuard, "FeatureFlagGuard");
|
|
39859
39956
|
exports.FeatureFlagGuard = __decorateClass([
|
|
39860
|
-
(0,
|
|
39861
|
-
__decorateParam(1, (0,
|
|
39957
|
+
(0, import_common22.Injectable)(),
|
|
39958
|
+
__decorateParam(1, (0, import_common22.Inject)(FEATURE_FLAG_SERVICE))
|
|
39862
39959
|
], exports.FeatureFlagGuard);
|
|
39863
39960
|
|
|
39864
39961
|
// src/backend/featureFlags/middleware/feature-flag-middleware.ts
|
|
39865
|
-
var
|
|
39962
|
+
var import_common23 = __toESM(require_common());
|
|
39866
39963
|
function isFeatureFlagKey(value) {
|
|
39867
39964
|
return Object.keys(config.FEATURES).includes(value);
|
|
39868
39965
|
}
|
|
@@ -39940,12 +40037,12 @@ exports.FeatureFlagMiddleware = class FeatureFlagMiddleware {
|
|
|
39940
40037
|
};
|
|
39941
40038
|
__name(exports.FeatureFlagMiddleware, "FeatureFlagMiddleware");
|
|
39942
40039
|
exports.FeatureFlagMiddleware = __decorateClass([
|
|
39943
|
-
(0,
|
|
39944
|
-
__decorateParam(0, (0,
|
|
40040
|
+
(0, import_common23.Injectable)(),
|
|
40041
|
+
__decorateParam(0, (0, import_common23.Inject)(FEATURE_FLAG_SERVICE))
|
|
39945
40042
|
], exports.FeatureFlagMiddleware);
|
|
39946
40043
|
|
|
39947
40044
|
// src/backend/featureFlags/interceptors/feature-flag-logging-interceptor.ts
|
|
39948
|
-
var
|
|
40045
|
+
var import_common24 = __toESM(require_common());
|
|
39949
40046
|
var import_rxjs = __toESM(require_cjs());
|
|
39950
40047
|
exports.FeatureFlagLoggingInterceptor = class FeatureFlagLoggingInterceptor {
|
|
39951
40048
|
constructor() {
|
|
@@ -39978,11 +40075,11 @@ exports.FeatureFlagLoggingInterceptor = class FeatureFlagLoggingInterceptor {
|
|
|
39978
40075
|
};
|
|
39979
40076
|
__name(exports.FeatureFlagLoggingInterceptor, "FeatureFlagLoggingInterceptor");
|
|
39980
40077
|
exports.FeatureFlagLoggingInterceptor = __decorateClass([
|
|
39981
|
-
(0,
|
|
40078
|
+
(0, import_common24.Injectable)()
|
|
39982
40079
|
], exports.FeatureFlagLoggingInterceptor);
|
|
39983
40080
|
|
|
39984
40081
|
// src/backend/featureFlags/interceptors/error-handling-interceptor.ts
|
|
39985
|
-
var
|
|
40082
|
+
var import_common25 = __toESM(require_common());
|
|
39986
40083
|
var import_operators = __toESM(require_operators());
|
|
39987
40084
|
exports.ErrorHandlingInterceptor = class ErrorHandlingInterceptor {
|
|
39988
40085
|
constructor() {
|
|
@@ -40011,7 +40108,7 @@ exports.ErrorHandlingInterceptor = class ErrorHandlingInterceptor {
|
|
|
40011
40108
|
};
|
|
40012
40109
|
__name(exports.ErrorHandlingInterceptor, "ErrorHandlingInterceptor");
|
|
40013
40110
|
exports.ErrorHandlingInterceptor = __decorateClass([
|
|
40014
|
-
(0,
|
|
40111
|
+
(0, import_common25.Injectable)()
|
|
40015
40112
|
], exports.ErrorHandlingInterceptor);
|
|
40016
40113
|
|
|
40017
40114
|
// src/backend/featureFlags/config/validation.ts
|
|
@@ -40364,10 +40461,10 @@ var FeatureFlagConfigFactory = class {
|
|
|
40364
40461
|
};
|
|
40365
40462
|
|
|
40366
40463
|
// src/backend/webhooks/webhooks.module.ts
|
|
40367
|
-
var
|
|
40464
|
+
var import_common27 = __toESM(require_common());
|
|
40368
40465
|
|
|
40369
40466
|
// src/backend/webhooks/webhooks.controller.ts
|
|
40370
|
-
var
|
|
40467
|
+
var import_common26 = __toESM(require_common());
|
|
40371
40468
|
init_CoreInitializer();
|
|
40372
40469
|
var log = new logger$1.PackageLogger({
|
|
40373
40470
|
packageName: "core",
|
|
@@ -40401,7 +40498,7 @@ exports.WebhooksController = class WebhooksController {
|
|
|
40401
40498
|
errors$1.CORE_ERROR_CODES.PROVIDER_NOT_FOUND,
|
|
40402
40499
|
{
|
|
40403
40500
|
context: { provider, service: "storage" },
|
|
40404
|
-
statusCode:
|
|
40501
|
+
statusCode: import_common26.HttpStatus.BAD_REQUEST
|
|
40405
40502
|
}
|
|
40406
40503
|
);
|
|
40407
40504
|
}
|
|
@@ -40413,7 +40510,7 @@ exports.WebhooksController = class WebhooksController {
|
|
|
40413
40510
|
errors$1.CORE_ERROR_CODES.INITIALIZATION_FAILED,
|
|
40414
40511
|
{
|
|
40415
40512
|
context: { provider, service: "storage" },
|
|
40416
|
-
statusCode:
|
|
40513
|
+
statusCode: import_common26.HttpStatus.SERVICE_UNAVAILABLE
|
|
40417
40514
|
}
|
|
40418
40515
|
);
|
|
40419
40516
|
}
|
|
@@ -40452,7 +40549,7 @@ exports.WebhooksController = class WebhooksController {
|
|
|
40452
40549
|
throw new errors.CorePackageError(error.message, errors$1.CORE_ERROR_CODES.OPERATION_FAILED, {
|
|
40453
40550
|
context: { provider, service: "storage", operation: "webhook" },
|
|
40454
40551
|
cause: error,
|
|
40455
|
-
statusCode:
|
|
40552
|
+
statusCode: import_common26.HttpStatus.INTERNAL_SERVER_ERROR
|
|
40456
40553
|
});
|
|
40457
40554
|
}
|
|
40458
40555
|
}
|
|
@@ -40491,7 +40588,7 @@ exports.WebhooksController = class WebhooksController {
|
|
|
40491
40588
|
errors$1.CORE_ERROR_CODES.VALIDATION_FAILED,
|
|
40492
40589
|
{
|
|
40493
40590
|
context: { type, provider: "infobip", service: "notifications" },
|
|
40494
|
-
statusCode:
|
|
40591
|
+
statusCode: import_common26.HttpStatus.BAD_REQUEST
|
|
40495
40592
|
}
|
|
40496
40593
|
);
|
|
40497
40594
|
}
|
|
@@ -40509,7 +40606,7 @@ exports.WebhooksController = class WebhooksController {
|
|
|
40509
40606
|
errors$1.CORE_ERROR_CODES.PROVIDER_NOT_FOUND,
|
|
40510
40607
|
{
|
|
40511
40608
|
context: { provider, service: "notifications" },
|
|
40512
|
-
statusCode:
|
|
40609
|
+
statusCode: import_common26.HttpStatus.BAD_REQUEST
|
|
40513
40610
|
}
|
|
40514
40611
|
);
|
|
40515
40612
|
}
|
|
@@ -40521,7 +40618,7 @@ exports.WebhooksController = class WebhooksController {
|
|
|
40521
40618
|
errors$1.CORE_ERROR_CODES.INITIALIZATION_FAILED,
|
|
40522
40619
|
{
|
|
40523
40620
|
context: { provider, service: "notifications" },
|
|
40524
|
-
statusCode:
|
|
40621
|
+
statusCode: import_common26.HttpStatus.SERVICE_UNAVAILABLE
|
|
40525
40622
|
}
|
|
40526
40623
|
);
|
|
40527
40624
|
}
|
|
@@ -40567,38 +40664,38 @@ exports.WebhooksController = class WebhooksController {
|
|
|
40567
40664
|
throw new errors.CorePackageError(error.message, errors$1.CORE_ERROR_CODES.OPERATION_FAILED, {
|
|
40568
40665
|
context: { provider, service: "notifications", operation: "webhook" },
|
|
40569
40666
|
cause: error,
|
|
40570
|
-
statusCode:
|
|
40667
|
+
statusCode: import_common26.HttpStatus.INTERNAL_SERVER_ERROR
|
|
40571
40668
|
});
|
|
40572
40669
|
}
|
|
40573
40670
|
}
|
|
40574
40671
|
};
|
|
40575
40672
|
__name(exports.WebhooksController, "WebhooksController");
|
|
40576
40673
|
__decorateClass([
|
|
40577
|
-
(0,
|
|
40578
|
-
(0,
|
|
40579
|
-
__decorateParam(0, (0,
|
|
40580
|
-
__decorateParam(1, (0,
|
|
40581
|
-
__decorateParam(2, (0,
|
|
40582
|
-
__decorateParam(3, (0,
|
|
40674
|
+
(0, import_common26.Post)("storage/:provider"),
|
|
40675
|
+
(0, import_common26.HttpCode)(import_common26.HttpStatus.OK),
|
|
40676
|
+
__decorateParam(0, (0, import_common26.Param)("provider")),
|
|
40677
|
+
__decorateParam(1, (0, import_common26.Headers)()),
|
|
40678
|
+
__decorateParam(2, (0, import_common26.Body)()),
|
|
40679
|
+
__decorateParam(3, (0, import_common26.Req)())
|
|
40583
40680
|
], exports.WebhooksController.prototype, "handleStorageWebhook", 1);
|
|
40584
40681
|
__decorateClass([
|
|
40585
|
-
(0,
|
|
40586
|
-
(0,
|
|
40587
|
-
__decorateParam(0, (0,
|
|
40588
|
-
__decorateParam(1, (0,
|
|
40589
|
-
__decorateParam(2, (0,
|
|
40590
|
-
__decorateParam(3, (0,
|
|
40682
|
+
(0, import_common26.Post)("notifications/:provider"),
|
|
40683
|
+
(0, import_common26.HttpCode)(import_common26.HttpStatus.OK),
|
|
40684
|
+
__decorateParam(0, (0, import_common26.Param)("provider")),
|
|
40685
|
+
__decorateParam(1, (0, import_common26.Headers)()),
|
|
40686
|
+
__decorateParam(2, (0, import_common26.Body)()),
|
|
40687
|
+
__decorateParam(3, (0, import_common26.Req)())
|
|
40591
40688
|
], exports.WebhooksController.prototype, "handleNotificationWebhook", 1);
|
|
40592
40689
|
__decorateClass([
|
|
40593
|
-
(0,
|
|
40594
|
-
(0,
|
|
40595
|
-
__decorateParam(0, (0,
|
|
40596
|
-
__decorateParam(1, (0,
|
|
40597
|
-
__decorateParam(2, (0,
|
|
40598
|
-
__decorateParam(3, (0,
|
|
40690
|
+
(0, import_common26.Post)("notifications/infobip/:type"),
|
|
40691
|
+
(0, import_common26.HttpCode)(import_common26.HttpStatus.OK),
|
|
40692
|
+
__decorateParam(0, (0, import_common26.Param)("type")),
|
|
40693
|
+
__decorateParam(1, (0, import_common26.Headers)()),
|
|
40694
|
+
__decorateParam(2, (0, import_common26.Body)()),
|
|
40695
|
+
__decorateParam(3, (0, import_common26.Req)())
|
|
40599
40696
|
], exports.WebhooksController.prototype, "handleInfobipTypedWebhook", 1);
|
|
40600
40697
|
exports.WebhooksController = __decorateClass([
|
|
40601
|
-
(0,
|
|
40698
|
+
(0, import_common26.Controller)("webhooks")
|
|
40602
40699
|
], exports.WebhooksController);
|
|
40603
40700
|
|
|
40604
40701
|
// src/backend/webhooks/webhooks.module.ts
|
|
@@ -40606,13 +40703,13 @@ exports.WebhooksModule = class WebhooksModule {
|
|
|
40606
40703
|
};
|
|
40607
40704
|
__name(exports.WebhooksModule, "WebhooksModule");
|
|
40608
40705
|
exports.WebhooksModule = __decorateClass([
|
|
40609
|
-
(0,
|
|
40706
|
+
(0, import_common27.Module)({
|
|
40610
40707
|
controllers: [exports.WebhooksController]
|
|
40611
40708
|
})
|
|
40612
40709
|
], exports.WebhooksModule);
|
|
40613
40710
|
|
|
40614
40711
|
// src/base/cache/feature/caching.ts
|
|
40615
|
-
var
|
|
40712
|
+
var import_common28 = __toESM(require_common());
|
|
40616
40713
|
var import_rxjs2 = __toESM(require_cjs());
|
|
40617
40714
|
exports.Caching = class Caching {
|
|
40618
40715
|
constructor() {
|
|
@@ -40635,7 +40732,7 @@ exports.Caching = class Caching {
|
|
|
40635
40732
|
};
|
|
40636
40733
|
__name(exports.Caching, "Caching");
|
|
40637
40734
|
exports.Caching = __decorateClass([
|
|
40638
|
-
(0,
|
|
40735
|
+
(0, import_common28.Injectable)()
|
|
40639
40736
|
], exports.Caching);
|
|
40640
40737
|
|
|
40641
40738
|
// src/adapters/nextjs.ts
|