@plyaz/core 1.9.5 → 1.9.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/backend/index.d.ts +1 -0
- package/dist/backend/index.d.ts.map +1 -1
- package/dist/entry-backend.js +234 -120
- package/dist/entry-backend.js.map +1 -1
- package/dist/entry-backend.mjs +109 -2
- package/dist/entry-backend.mjs.map +1 -1
- package/dist/index.js +394 -277
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +269 -158
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/backend/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/backend/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,cAAc,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/backend/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,cAAc,WAAW,CAAC;AAE1B,cAAc,SAAS,CAAC;AAGxB,cAAc,gBAAgB,CAAC;AAG/B,cAAc,+BAA+B,CAAC"}
|
package/dist/entry-backend.js
CHANGED
|
@@ -12964,10 +12964,10 @@ var require_shared_utils = __commonJS({
|
|
|
12964
12964
|
var require_controller_decorator = __commonJS({
|
|
12965
12965
|
"node_modules/.pnpm/@nestjs+common@11.1.10_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) {
|
|
12966
12966
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
12967
|
-
exports$1.Controller =
|
|
12967
|
+
exports$1.Controller = Controller4;
|
|
12968
12968
|
var constants_1 = require_constants();
|
|
12969
12969
|
var shared_utils_1 = require_shared_utils();
|
|
12970
|
-
function
|
|
12970
|
+
function Controller4(prefixOrOptions) {
|
|
12971
12971
|
const defaultPath = "/";
|
|
12972
12972
|
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] : [
|
|
12973
12973
|
prefixOrOptions.path || defaultPath,
|
|
@@ -12983,7 +12983,7 @@ var require_controller_decorator = __commonJS({
|
|
|
12983
12983
|
Reflect.defineMetadata(constants_1.VERSION_METADATA, versionOptions, target);
|
|
12984
12984
|
};
|
|
12985
12985
|
}
|
|
12986
|
-
__name(
|
|
12986
|
+
__name(Controller4, "Controller");
|
|
12987
12987
|
}
|
|
12988
12988
|
});
|
|
12989
12989
|
|
|
@@ -13089,10 +13089,10 @@ var require_exception_filters_decorator = __commonJS({
|
|
|
13089
13089
|
var require_inject_decorator = __commonJS({
|
|
13090
13090
|
"node_modules/.pnpm/@nestjs+common@11.1.10_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) {
|
|
13091
13091
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
13092
|
-
exports$1.Inject =
|
|
13092
|
+
exports$1.Inject = Inject6;
|
|
13093
13093
|
var constants_1 = require_constants();
|
|
13094
13094
|
var shared_utils_1 = require_shared_utils();
|
|
13095
|
-
function
|
|
13095
|
+
function Inject6(token) {
|
|
13096
13096
|
const injectCallHasArguments = arguments.length > 0;
|
|
13097
13097
|
return (target, key, index) => {
|
|
13098
13098
|
let type = token || Reflect.getMetadata("design:type", target, key);
|
|
@@ -13110,7 +13110,7 @@ var require_inject_decorator = __commonJS({
|
|
|
13110
13110
|
Reflect.defineMetadata(constants_1.PROPERTY_DEPS_METADATA, properties, target.constructor);
|
|
13111
13111
|
};
|
|
13112
13112
|
}
|
|
13113
|
-
__name(
|
|
13113
|
+
__name(Inject6, "Inject");
|
|
13114
13114
|
}
|
|
13115
13115
|
});
|
|
13116
13116
|
|
|
@@ -13390,9 +13390,9 @@ var require_validate_module_keys_util = __commonJS({
|
|
|
13390
13390
|
var require_module_decorator = __commonJS({
|
|
13391
13391
|
"node_modules/.pnpm/@nestjs+common@11.1.10_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/module.decorator.js"(exports$1) {
|
|
13392
13392
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
13393
|
-
exports$1.Module =
|
|
13393
|
+
exports$1.Module = Module4;
|
|
13394
13394
|
var validate_module_keys_util_1 = require_validate_module_keys_util();
|
|
13395
|
-
function
|
|
13395
|
+
function Module4(metadata) {
|
|
13396
13396
|
const propsKeys = Object.keys(metadata);
|
|
13397
13397
|
(0, validate_module_keys_util_1.validateModuleKeys)(propsKeys);
|
|
13398
13398
|
return (target) => {
|
|
@@ -13403,7 +13403,7 @@ var require_module_decorator = __commonJS({
|
|
|
13403
13403
|
}
|
|
13404
13404
|
};
|
|
13405
13405
|
}
|
|
13406
|
-
__name(
|
|
13406
|
+
__name(Module4, "Module");
|
|
13407
13407
|
}
|
|
13408
13408
|
});
|
|
13409
13409
|
|
|
@@ -13525,9 +13525,9 @@ var require_route_params_decorator = __commonJS({
|
|
|
13525
13525
|
exports$1.UploadedFile = UploadedFile;
|
|
13526
13526
|
exports$1.UploadedFiles = UploadedFiles;
|
|
13527
13527
|
exports$1.Query = Query;
|
|
13528
|
-
exports$1.Body =
|
|
13528
|
+
exports$1.Body = Body4;
|
|
13529
13529
|
exports$1.RawBody = RawBody;
|
|
13530
|
-
exports$1.Param =
|
|
13530
|
+
exports$1.Param = Param4;
|
|
13531
13531
|
exports$1.HostParam = HostParam;
|
|
13532
13532
|
var constants_1 = require_constants();
|
|
13533
13533
|
var route_paramtypes_enum_1 = require_route_paramtypes_enum();
|
|
@@ -13581,18 +13581,18 @@ var require_route_params_decorator = __commonJS({
|
|
|
13581
13581
|
return createPipesRouteParamDecorator(route_paramtypes_enum_1.RouteParamtypes.QUERY)(property, ...pipes);
|
|
13582
13582
|
}
|
|
13583
13583
|
__name(Query, "Query");
|
|
13584
|
-
function
|
|
13584
|
+
function Body4(property, ...pipes) {
|
|
13585
13585
|
return createPipesRouteParamDecorator(route_paramtypes_enum_1.RouteParamtypes.BODY)(property, ...pipes);
|
|
13586
13586
|
}
|
|
13587
|
-
__name(
|
|
13587
|
+
__name(Body4, "Body");
|
|
13588
13588
|
function RawBody(...pipes) {
|
|
13589
13589
|
return createPipesRouteParamDecorator(route_paramtypes_enum_1.RouteParamtypes.RAW_BODY)(void 0, ...pipes);
|
|
13590
13590
|
}
|
|
13591
13591
|
__name(RawBody, "RawBody");
|
|
13592
|
-
function
|
|
13592
|
+
function Param4(property, ...pipes) {
|
|
13593
13593
|
return createPipesRouteParamDecorator(route_paramtypes_enum_1.RouteParamtypes.PARAM)(property, ...pipes);
|
|
13594
13594
|
}
|
|
13595
|
-
__name(
|
|
13595
|
+
__name(Param4, "Param");
|
|
13596
13596
|
function HostParam(property) {
|
|
13597
13597
|
return createRouteParamDecorator(route_paramtypes_enum_1.RouteParamtypes.HOST)(property);
|
|
13598
13598
|
}
|
|
@@ -13606,15 +13606,15 @@ var require_route_params_decorator = __commonJS({
|
|
|
13606
13606
|
var require_http_code_decorator = __commonJS({
|
|
13607
13607
|
"node_modules/.pnpm/@nestjs+common@11.1.10_class-transformer@0.5.1_class-validator@0.14.3_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/decorators/http/http-code.decorator.js"(exports$1) {
|
|
13608
13608
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
13609
|
-
exports$1.HttpCode =
|
|
13609
|
+
exports$1.HttpCode = HttpCode3;
|
|
13610
13610
|
var constants_1 = require_constants();
|
|
13611
|
-
function
|
|
13611
|
+
function HttpCode3(statusCode) {
|
|
13612
13612
|
return (target, key, descriptor) => {
|
|
13613
13613
|
Reflect.defineMetadata(constants_1.HTTP_CODE_METADATA, statusCode, descriptor.value);
|
|
13614
13614
|
return descriptor;
|
|
13615
13615
|
};
|
|
13616
13616
|
}
|
|
13617
|
-
__name(
|
|
13617
|
+
__name(HttpCode3, "HttpCode");
|
|
13618
13618
|
}
|
|
13619
13619
|
});
|
|
13620
13620
|
|
|
@@ -13767,64 +13767,64 @@ var require_http_status_enum = __commonJS({
|
|
|
13767
13767
|
"node_modules/.pnpm/@nestjs+common@11.1.10_class-transformer@0.5.1_class-validator@0.14.3_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/enums/http-status.enum.js"(exports$1) {
|
|
13768
13768
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
13769
13769
|
exports$1.HttpStatus = void 0;
|
|
13770
|
-
var
|
|
13771
|
-
(function(
|
|
13772
|
-
|
|
13773
|
-
|
|
13774
|
-
|
|
13775
|
-
|
|
13776
|
-
|
|
13777
|
-
|
|
13778
|
-
|
|
13779
|
-
|
|
13780
|
-
|
|
13781
|
-
|
|
13782
|
-
|
|
13783
|
-
|
|
13784
|
-
|
|
13785
|
-
|
|
13786
|
-
|
|
13787
|
-
|
|
13788
|
-
|
|
13789
|
-
|
|
13790
|
-
|
|
13791
|
-
|
|
13792
|
-
|
|
13793
|
-
|
|
13794
|
-
|
|
13795
|
-
|
|
13796
|
-
|
|
13797
|
-
|
|
13798
|
-
|
|
13799
|
-
|
|
13800
|
-
|
|
13801
|
-
|
|
13802
|
-
|
|
13803
|
-
|
|
13804
|
-
|
|
13805
|
-
|
|
13806
|
-
|
|
13807
|
-
|
|
13808
|
-
|
|
13809
|
-
|
|
13810
|
-
|
|
13811
|
-
|
|
13812
|
-
|
|
13813
|
-
|
|
13814
|
-
|
|
13815
|
-
|
|
13816
|
-
|
|
13817
|
-
|
|
13818
|
-
|
|
13819
|
-
|
|
13820
|
-
|
|
13821
|
-
|
|
13822
|
-
|
|
13823
|
-
|
|
13824
|
-
|
|
13825
|
-
|
|
13826
|
-
|
|
13827
|
-
})(
|
|
13770
|
+
var HttpStatus3;
|
|
13771
|
+
(function(HttpStatus4) {
|
|
13772
|
+
HttpStatus4[HttpStatus4["CONTINUE"] = 100] = "CONTINUE";
|
|
13773
|
+
HttpStatus4[HttpStatus4["SWITCHING_PROTOCOLS"] = 101] = "SWITCHING_PROTOCOLS";
|
|
13774
|
+
HttpStatus4[HttpStatus4["PROCESSING"] = 102] = "PROCESSING";
|
|
13775
|
+
HttpStatus4[HttpStatus4["EARLYHINTS"] = 103] = "EARLYHINTS";
|
|
13776
|
+
HttpStatus4[HttpStatus4["OK"] = 200] = "OK";
|
|
13777
|
+
HttpStatus4[HttpStatus4["CREATED"] = 201] = "CREATED";
|
|
13778
|
+
HttpStatus4[HttpStatus4["ACCEPTED"] = 202] = "ACCEPTED";
|
|
13779
|
+
HttpStatus4[HttpStatus4["NON_AUTHORITATIVE_INFORMATION"] = 203] = "NON_AUTHORITATIVE_INFORMATION";
|
|
13780
|
+
HttpStatus4[HttpStatus4["NO_CONTENT"] = 204] = "NO_CONTENT";
|
|
13781
|
+
HttpStatus4[HttpStatus4["RESET_CONTENT"] = 205] = "RESET_CONTENT";
|
|
13782
|
+
HttpStatus4[HttpStatus4["PARTIAL_CONTENT"] = 206] = "PARTIAL_CONTENT";
|
|
13783
|
+
HttpStatus4[HttpStatus4["MULTI_STATUS"] = 207] = "MULTI_STATUS";
|
|
13784
|
+
HttpStatus4[HttpStatus4["ALREADY_REPORTED"] = 208] = "ALREADY_REPORTED";
|
|
13785
|
+
HttpStatus4[HttpStatus4["CONTENT_DIFFERENT"] = 210] = "CONTENT_DIFFERENT";
|
|
13786
|
+
HttpStatus4[HttpStatus4["AMBIGUOUS"] = 300] = "AMBIGUOUS";
|
|
13787
|
+
HttpStatus4[HttpStatus4["MOVED_PERMANENTLY"] = 301] = "MOVED_PERMANENTLY";
|
|
13788
|
+
HttpStatus4[HttpStatus4["FOUND"] = 302] = "FOUND";
|
|
13789
|
+
HttpStatus4[HttpStatus4["SEE_OTHER"] = 303] = "SEE_OTHER";
|
|
13790
|
+
HttpStatus4[HttpStatus4["NOT_MODIFIED"] = 304] = "NOT_MODIFIED";
|
|
13791
|
+
HttpStatus4[HttpStatus4["TEMPORARY_REDIRECT"] = 307] = "TEMPORARY_REDIRECT";
|
|
13792
|
+
HttpStatus4[HttpStatus4["PERMANENT_REDIRECT"] = 308] = "PERMANENT_REDIRECT";
|
|
13793
|
+
HttpStatus4[HttpStatus4["BAD_REQUEST"] = 400] = "BAD_REQUEST";
|
|
13794
|
+
HttpStatus4[HttpStatus4["UNAUTHORIZED"] = 401] = "UNAUTHORIZED";
|
|
13795
|
+
HttpStatus4[HttpStatus4["PAYMENT_REQUIRED"] = 402] = "PAYMENT_REQUIRED";
|
|
13796
|
+
HttpStatus4[HttpStatus4["FORBIDDEN"] = 403] = "FORBIDDEN";
|
|
13797
|
+
HttpStatus4[HttpStatus4["NOT_FOUND"] = 404] = "NOT_FOUND";
|
|
13798
|
+
HttpStatus4[HttpStatus4["METHOD_NOT_ALLOWED"] = 405] = "METHOD_NOT_ALLOWED";
|
|
13799
|
+
HttpStatus4[HttpStatus4["NOT_ACCEPTABLE"] = 406] = "NOT_ACCEPTABLE";
|
|
13800
|
+
HttpStatus4[HttpStatus4["PROXY_AUTHENTICATION_REQUIRED"] = 407] = "PROXY_AUTHENTICATION_REQUIRED";
|
|
13801
|
+
HttpStatus4[HttpStatus4["REQUEST_TIMEOUT"] = 408] = "REQUEST_TIMEOUT";
|
|
13802
|
+
HttpStatus4[HttpStatus4["CONFLICT"] = 409] = "CONFLICT";
|
|
13803
|
+
HttpStatus4[HttpStatus4["GONE"] = 410] = "GONE";
|
|
13804
|
+
HttpStatus4[HttpStatus4["LENGTH_REQUIRED"] = 411] = "LENGTH_REQUIRED";
|
|
13805
|
+
HttpStatus4[HttpStatus4["PRECONDITION_FAILED"] = 412] = "PRECONDITION_FAILED";
|
|
13806
|
+
HttpStatus4[HttpStatus4["PAYLOAD_TOO_LARGE"] = 413] = "PAYLOAD_TOO_LARGE";
|
|
13807
|
+
HttpStatus4[HttpStatus4["URI_TOO_LONG"] = 414] = "URI_TOO_LONG";
|
|
13808
|
+
HttpStatus4[HttpStatus4["UNSUPPORTED_MEDIA_TYPE"] = 415] = "UNSUPPORTED_MEDIA_TYPE";
|
|
13809
|
+
HttpStatus4[HttpStatus4["REQUESTED_RANGE_NOT_SATISFIABLE"] = 416] = "REQUESTED_RANGE_NOT_SATISFIABLE";
|
|
13810
|
+
HttpStatus4[HttpStatus4["EXPECTATION_FAILED"] = 417] = "EXPECTATION_FAILED";
|
|
13811
|
+
HttpStatus4[HttpStatus4["I_AM_A_TEAPOT"] = 418] = "I_AM_A_TEAPOT";
|
|
13812
|
+
HttpStatus4[HttpStatus4["MISDIRECTED"] = 421] = "MISDIRECTED";
|
|
13813
|
+
HttpStatus4[HttpStatus4["UNPROCESSABLE_ENTITY"] = 422] = "UNPROCESSABLE_ENTITY";
|
|
13814
|
+
HttpStatus4[HttpStatus4["LOCKED"] = 423] = "LOCKED";
|
|
13815
|
+
HttpStatus4[HttpStatus4["FAILED_DEPENDENCY"] = 424] = "FAILED_DEPENDENCY";
|
|
13816
|
+
HttpStatus4[HttpStatus4["PRECONDITION_REQUIRED"] = 428] = "PRECONDITION_REQUIRED";
|
|
13817
|
+
HttpStatus4[HttpStatus4["TOO_MANY_REQUESTS"] = 429] = "TOO_MANY_REQUESTS";
|
|
13818
|
+
HttpStatus4[HttpStatus4["UNRECOVERABLE_ERROR"] = 456] = "UNRECOVERABLE_ERROR";
|
|
13819
|
+
HttpStatus4[HttpStatus4["INTERNAL_SERVER_ERROR"] = 500] = "INTERNAL_SERVER_ERROR";
|
|
13820
|
+
HttpStatus4[HttpStatus4["NOT_IMPLEMENTED"] = 501] = "NOT_IMPLEMENTED";
|
|
13821
|
+
HttpStatus4[HttpStatus4["BAD_GATEWAY"] = 502] = "BAD_GATEWAY";
|
|
13822
|
+
HttpStatus4[HttpStatus4["SERVICE_UNAVAILABLE"] = 503] = "SERVICE_UNAVAILABLE";
|
|
13823
|
+
HttpStatus4[HttpStatus4["GATEWAY_TIMEOUT"] = 504] = "GATEWAY_TIMEOUT";
|
|
13824
|
+
HttpStatus4[HttpStatus4["HTTP_VERSION_NOT_SUPPORTED"] = 505] = "HTTP_VERSION_NOT_SUPPORTED";
|
|
13825
|
+
HttpStatus4[HttpStatus4["INSUFFICIENT_STORAGE"] = 507] = "INSUFFICIENT_STORAGE";
|
|
13826
|
+
HttpStatus4[HttpStatus4["LOOP_DETECTED"] = 508] = "LOOP_DETECTED";
|
|
13827
|
+
})(HttpStatus3 || (exports$1.HttpStatus = HttpStatus3 = {}));
|
|
13828
13828
|
}
|
|
13829
13829
|
});
|
|
13830
13830
|
|
|
@@ -45194,6 +45194,119 @@ exports.ExampleModule = __decorateClass([
|
|
|
45194
45194
|
})
|
|
45195
45195
|
], exports.ExampleModule);
|
|
45196
45196
|
|
|
45197
|
+
// src/backend/files/files.module.ts
|
|
45198
|
+
var import_common16 = __toESM(require_common(), 1);
|
|
45199
|
+
|
|
45200
|
+
// src/backend/files/files.controller.ts
|
|
45201
|
+
var import_common15 = __toESM(require_common(), 1);
|
|
45202
|
+
var BACKEND_FILES_DOMAIN_SERVICE = "BACKEND_FILES_DOMAIN_SERVICE";
|
|
45203
|
+
exports.FilesController = class FilesController {
|
|
45204
|
+
constructor(filesService) {
|
|
45205
|
+
this.filesService = filesService;
|
|
45206
|
+
}
|
|
45207
|
+
health() {
|
|
45208
|
+
return errors.SuccessResponseStandard("Files service is healthy", {
|
|
45209
|
+
service: this.filesService.isAvailable(),
|
|
45210
|
+
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
45211
|
+
});
|
|
45212
|
+
}
|
|
45213
|
+
async uploadFile(dto) {
|
|
45214
|
+
const result2 = await this.filesService.uploadFile(dto);
|
|
45215
|
+
return errors.SuccessResponseStandard("File uploaded successfully", result2);
|
|
45216
|
+
}
|
|
45217
|
+
async uploadFiles(dto) {
|
|
45218
|
+
const results = await this.filesService.uploadFiles(dto.files);
|
|
45219
|
+
return errors.SuccessResponseStandard("Files uploaded successfully", results);
|
|
45220
|
+
}
|
|
45221
|
+
async generateDocument(dto) {
|
|
45222
|
+
const buffer = await this.filesService.generateFile(dto);
|
|
45223
|
+
return errors.SuccessResponseStandard("Document generated successfully", {
|
|
45224
|
+
buffer: buffer.toString("base64"),
|
|
45225
|
+
size: buffer.length
|
|
45226
|
+
});
|
|
45227
|
+
}
|
|
45228
|
+
async getFile(id) {
|
|
45229
|
+
const entity = await this.filesService.getById(id);
|
|
45230
|
+
return errors.SuccessResponseStandard("File retrieved", entity);
|
|
45231
|
+
}
|
|
45232
|
+
async downloadFile(id) {
|
|
45233
|
+
const result2 = await this.filesService.downloadFile({ fileId: id });
|
|
45234
|
+
return errors.SuccessResponseStandard("File downloaded", result2);
|
|
45235
|
+
}
|
|
45236
|
+
async getSignedUrl(id) {
|
|
45237
|
+
const result2 = await this.filesService.getSignedUrl({ fileId: id });
|
|
45238
|
+
return errors.SuccessResponseStandard("Signed URL generated", result2);
|
|
45239
|
+
}
|
|
45240
|
+
async deleteFile(id) {
|
|
45241
|
+
await this.filesService.delete(id);
|
|
45242
|
+
return errors.SuccessResponseStandard("File deleted", null);
|
|
45243
|
+
}
|
|
45244
|
+
};
|
|
45245
|
+
__name(exports.FilesController, "FilesController");
|
|
45246
|
+
__decorateClass([
|
|
45247
|
+
(0, import_common15.Get)("health")
|
|
45248
|
+
], exports.FilesController.prototype, "health", 1);
|
|
45249
|
+
__decorateClass([
|
|
45250
|
+
(0, import_common15.Post)("upload"),
|
|
45251
|
+
(0, import_common15.HttpCode)(import_common15.HttpStatus.OK),
|
|
45252
|
+
__decorateParam(0, (0, import_common15.Body)())
|
|
45253
|
+
], exports.FilesController.prototype, "uploadFile", 1);
|
|
45254
|
+
__decorateClass([
|
|
45255
|
+
(0, import_common15.Post)("upload/bulk"),
|
|
45256
|
+
(0, import_common15.HttpCode)(import_common15.HttpStatus.OK),
|
|
45257
|
+
__decorateParam(0, (0, import_common15.Body)())
|
|
45258
|
+
], exports.FilesController.prototype, "uploadFiles", 1);
|
|
45259
|
+
__decorateClass([
|
|
45260
|
+
(0, import_common15.Post)("generate-document"),
|
|
45261
|
+
(0, import_common15.HttpCode)(import_common15.HttpStatus.OK),
|
|
45262
|
+
__decorateParam(0, (0, import_common15.Body)())
|
|
45263
|
+
], exports.FilesController.prototype, "generateDocument", 1);
|
|
45264
|
+
__decorateClass([
|
|
45265
|
+
(0, import_common15.Get)(":id"),
|
|
45266
|
+
__decorateParam(0, (0, import_common15.Param)("id"))
|
|
45267
|
+
], exports.FilesController.prototype, "getFile", 1);
|
|
45268
|
+
__decorateClass([
|
|
45269
|
+
(0, import_common15.Get)(":id/download"),
|
|
45270
|
+
__decorateParam(0, (0, import_common15.Param)("id"))
|
|
45271
|
+
], exports.FilesController.prototype, "downloadFile", 1);
|
|
45272
|
+
__decorateClass([
|
|
45273
|
+
(0, import_common15.Get)(":id/signed-url"),
|
|
45274
|
+
__decorateParam(0, (0, import_common15.Param)("id"))
|
|
45275
|
+
], exports.FilesController.prototype, "getSignedUrl", 1);
|
|
45276
|
+
__decorateClass([
|
|
45277
|
+
(0, import_common15.Delete)(":id"),
|
|
45278
|
+
(0, import_common15.HttpCode)(import_common15.HttpStatus.OK),
|
|
45279
|
+
__decorateParam(0, (0, import_common15.Param)("id"))
|
|
45280
|
+
], exports.FilesController.prototype, "deleteFile", 1);
|
|
45281
|
+
exports.FilesController = __decorateClass([
|
|
45282
|
+
(0, import_common15.Controller)("files"),
|
|
45283
|
+
__decorateParam(0, (0, import_common15.Inject)(BACKEND_FILES_DOMAIN_SERVICE))
|
|
45284
|
+
], exports.FilesController);
|
|
45285
|
+
|
|
45286
|
+
// src/domain/files/index.ts
|
|
45287
|
+
init_BackendFilesDomainService();
|
|
45288
|
+
init_FrontendFilesDomainService();
|
|
45289
|
+
init_FilesMapper();
|
|
45290
|
+
init_FilesValidator();
|
|
45291
|
+
|
|
45292
|
+
// src/backend/files/files.module.ts
|
|
45293
|
+
exports.FilesModule = class FilesModule {
|
|
45294
|
+
};
|
|
45295
|
+
__name(exports.FilesModule, "FilesModule");
|
|
45296
|
+
exports.FilesModule = __decorateClass([
|
|
45297
|
+
(0, import_common16.Module)({
|
|
45298
|
+
controllers: [exports.FilesController],
|
|
45299
|
+
providers: [
|
|
45300
|
+
// Provide BackendFilesDomainService via factory using the singleton instance
|
|
45301
|
+
{
|
|
45302
|
+
provide: BACKEND_FILES_DOMAIN_SERVICE,
|
|
45303
|
+
useFactory: /* @__PURE__ */ __name(() => backendFilesDomainService, "useFactory")
|
|
45304
|
+
}
|
|
45305
|
+
],
|
|
45306
|
+
exports: [BACKEND_FILES_DOMAIN_SERVICE]
|
|
45307
|
+
})
|
|
45308
|
+
], exports.FilesModule);
|
|
45309
|
+
|
|
45197
45310
|
// src/backend/featureFlags/FeatureFlagDomainService.ts
|
|
45198
45311
|
init_base();
|
|
45199
45312
|
init_CoreEventManager();
|
|
@@ -45474,10 +45587,10 @@ var FeatureFlagDomainService = class extends exports.BaseDomainService {
|
|
|
45474
45587
|
};
|
|
45475
45588
|
|
|
45476
45589
|
// src/backend/featureFlags/feature-flag.module.ts
|
|
45477
|
-
var
|
|
45590
|
+
var import_common19 = __toESM(require_common(), 1);
|
|
45478
45591
|
|
|
45479
45592
|
// src/backend/featureFlags/feature-flag.controller.ts
|
|
45480
|
-
var
|
|
45593
|
+
var import_common18 = __toESM(require_common(), 1);
|
|
45481
45594
|
var FeatureFlagService = class {
|
|
45482
45595
|
constructor(provider, config) {
|
|
45483
45596
|
this.provider = provider;
|
|
@@ -48738,54 +48851,54 @@ exports.FeatureFlagController = class FeatureFlagController {
|
|
|
48738
48851
|
};
|
|
48739
48852
|
__name(exports.FeatureFlagController, "FeatureFlagController");
|
|
48740
48853
|
__decorateClass([
|
|
48741
|
-
(0,
|
|
48742
|
-
__decorateParam(0, (0,
|
|
48743
|
-
__decorateParam(1, (0,
|
|
48854
|
+
(0, import_common18.Post)(":key/evaluate"),
|
|
48855
|
+
__decorateParam(0, (0, import_common18.Param)("key")),
|
|
48856
|
+
__decorateParam(1, (0, import_common18.Body)())
|
|
48744
48857
|
], exports.FeatureFlagController.prototype, "evaluateFlag", 1);
|
|
48745
48858
|
__decorateClass([
|
|
48746
|
-
(0,
|
|
48747
|
-
__decorateParam(0, (0,
|
|
48748
|
-
__decorateParam(1, (0,
|
|
48859
|
+
(0, import_common18.Post)(":key/enabled"),
|
|
48860
|
+
__decorateParam(0, (0, import_common18.Param)("key")),
|
|
48861
|
+
__decorateParam(1, (0, import_common18.Body)())
|
|
48749
48862
|
], exports.FeatureFlagController.prototype, "isEnabled", 1);
|
|
48750
48863
|
__decorateClass([
|
|
48751
|
-
(0,
|
|
48752
|
-
__decorateParam(0, (0,
|
|
48864
|
+
(0, import_common18.Post)("evaluate-all"),
|
|
48865
|
+
__decorateParam(0, (0, import_common18.Body)())
|
|
48753
48866
|
], exports.FeatureFlagController.prototype, "evaluateAllFlags", 1);
|
|
48754
48867
|
__decorateClass([
|
|
48755
|
-
(0,
|
|
48756
|
-
__decorateParam(0, (0,
|
|
48868
|
+
(0, import_common18.Post)(),
|
|
48869
|
+
__decorateParam(0, (0, import_common18.Body)())
|
|
48757
48870
|
], exports.FeatureFlagController.prototype, "createFlag", 1);
|
|
48758
48871
|
__decorateClass([
|
|
48759
|
-
(0,
|
|
48760
|
-
__decorateParam(0, (0,
|
|
48761
|
-
__decorateParam(1, (0,
|
|
48872
|
+
(0, import_common18.Put)(":key"),
|
|
48873
|
+
__decorateParam(0, (0, import_common18.Param)("key")),
|
|
48874
|
+
__decorateParam(1, (0, import_common18.Body)())
|
|
48762
48875
|
], exports.FeatureFlagController.prototype, "updateFlag", 1);
|
|
48763
48876
|
__decorateClass([
|
|
48764
|
-
(0,
|
|
48765
|
-
__decorateParam(0, (0,
|
|
48877
|
+
(0, import_common18.Delete)(":key"),
|
|
48878
|
+
__decorateParam(0, (0, import_common18.Param)("key"))
|
|
48766
48879
|
], exports.FeatureFlagController.prototype, "deleteFlag", 1);
|
|
48767
48880
|
__decorateClass([
|
|
48768
|
-
(0,
|
|
48769
|
-
__decorateParam(0, (0,
|
|
48770
|
-
__decorateParam(1, (0,
|
|
48881
|
+
(0, import_common18.Post)(":key/override"),
|
|
48882
|
+
__decorateParam(0, (0, import_common18.Param)("key")),
|
|
48883
|
+
__decorateParam(1, (0, import_common18.Body)("value"))
|
|
48771
48884
|
], exports.FeatureFlagController.prototype, "setOverride", 1);
|
|
48772
48885
|
__decorateClass([
|
|
48773
|
-
(0,
|
|
48774
|
-
__decorateParam(0, (0,
|
|
48886
|
+
(0, import_common18.Delete)(":key/override"),
|
|
48887
|
+
__decorateParam(0, (0, import_common18.Param)("key"))
|
|
48775
48888
|
], exports.FeatureFlagController.prototype, "removeOverride", 1);
|
|
48776
48889
|
__decorateClass([
|
|
48777
|
-
(0,
|
|
48778
|
-
__decorateParam(0, (0,
|
|
48890
|
+
(0, import_common18.Get)(":key/rules"),
|
|
48891
|
+
__decorateParam(0, (0, import_common18.Param)("key"))
|
|
48779
48892
|
], exports.FeatureFlagController.prototype, "getFlagRules", 1);
|
|
48780
48893
|
__decorateClass([
|
|
48781
|
-
(0,
|
|
48894
|
+
(0, import_common18.Post)("refresh")
|
|
48782
48895
|
], exports.FeatureFlagController.prototype, "refreshCache", 1);
|
|
48783
48896
|
__decorateClass([
|
|
48784
|
-
(0,
|
|
48897
|
+
(0, import_common18.Get)("health")
|
|
48785
48898
|
], exports.FeatureFlagController.prototype, "getHealth", 1);
|
|
48786
48899
|
exports.FeatureFlagController = __decorateClass([
|
|
48787
|
-
(0,
|
|
48788
|
-
__decorateParam(0, (0,
|
|
48900
|
+
(0, import_common18.Controller)("feature-flags"),
|
|
48901
|
+
__decorateParam(0, (0, import_common18.Inject)(FEATURE_FLAG_SERVICE))
|
|
48789
48902
|
], exports.FeatureFlagController);
|
|
48790
48903
|
|
|
48791
48904
|
// src/backend/featureFlags/feature-flag.module.ts
|
|
@@ -48877,16 +48990,16 @@ exports.FeatureFlagModule = class FeatureFlagModule {
|
|
|
48877
48990
|
__name(exports.FeatureFlagModule, "FeatureFlagModule");
|
|
48878
48991
|
exports.FeatureFlagModule.serviceInstance = null;
|
|
48879
48992
|
exports.FeatureFlagModule = __decorateClass([
|
|
48880
|
-
(0,
|
|
48881
|
-
(0,
|
|
48993
|
+
(0, import_common19.Global)(),
|
|
48994
|
+
(0, import_common19.Module)({
|
|
48882
48995
|
controllers: [exports.FeatureFlagController]
|
|
48883
48996
|
})
|
|
48884
48997
|
], exports.FeatureFlagModule);
|
|
48885
48998
|
|
|
48886
48999
|
// src/backend/featureFlags/decorators/feature-flag.decorator.ts
|
|
48887
|
-
var
|
|
49000
|
+
var import_common20 = __toESM(require_common(), 1);
|
|
48888
49001
|
function FeatureFlag(key, expected = true) {
|
|
48889
|
-
return (0,
|
|
49002
|
+
return (0, import_common20.SetMetadata)(types.FEATURE_FLAG_METADATA.FLAG_CHECK, { key, expected });
|
|
48890
49003
|
}
|
|
48891
49004
|
__name(FeatureFlag, "FeatureFlag");
|
|
48892
49005
|
|
|
@@ -48903,7 +49016,7 @@ function FeatureEnabled(key) {
|
|
|
48903
49016
|
__name(FeatureEnabled, "FeatureEnabled");
|
|
48904
49017
|
|
|
48905
49018
|
// src/backend/featureFlags/guards/feature-flag.guard.ts
|
|
48906
|
-
var
|
|
49019
|
+
var import_common21 = __toESM(require_common(), 1);
|
|
48907
49020
|
exports.FeatureFlagGuard = class FeatureFlagGuard {
|
|
48908
49021
|
constructor(reflector, featureFlagService) {
|
|
48909
49022
|
this.reflector = reflector;
|
|
@@ -48947,12 +49060,12 @@ exports.FeatureFlagGuard = class FeatureFlagGuard {
|
|
|
48947
49060
|
};
|
|
48948
49061
|
__name(exports.FeatureFlagGuard, "FeatureFlagGuard");
|
|
48949
49062
|
exports.FeatureFlagGuard = __decorateClass([
|
|
48950
|
-
(0,
|
|
48951
|
-
__decorateParam(1, (0,
|
|
49063
|
+
(0, import_common21.Injectable)(),
|
|
49064
|
+
__decorateParam(1, (0, import_common21.Inject)(FEATURE_FLAG_SERVICE))
|
|
48952
49065
|
], exports.FeatureFlagGuard);
|
|
48953
49066
|
|
|
48954
49067
|
// src/backend/featureFlags/middleware/feature-flag-middleware.ts
|
|
48955
|
-
var
|
|
49068
|
+
var import_common22 = __toESM(require_common(), 1);
|
|
48956
49069
|
function isFeatureFlagKey(value) {
|
|
48957
49070
|
return Object.keys(config.FEATURES).includes(value);
|
|
48958
49071
|
}
|
|
@@ -49030,12 +49143,12 @@ exports.FeatureFlagMiddleware = class FeatureFlagMiddleware {
|
|
|
49030
49143
|
};
|
|
49031
49144
|
__name(exports.FeatureFlagMiddleware, "FeatureFlagMiddleware");
|
|
49032
49145
|
exports.FeatureFlagMiddleware = __decorateClass([
|
|
49033
|
-
(0,
|
|
49034
|
-
__decorateParam(0, (0,
|
|
49146
|
+
(0, import_common22.Injectable)(),
|
|
49147
|
+
__decorateParam(0, (0, import_common22.Inject)(FEATURE_FLAG_SERVICE))
|
|
49035
49148
|
], exports.FeatureFlagMiddleware);
|
|
49036
49149
|
|
|
49037
49150
|
// src/backend/featureFlags/interceptors/feature-flag-logging-interceptor.ts
|
|
49038
|
-
var
|
|
49151
|
+
var import_common23 = __toESM(require_common(), 1);
|
|
49039
49152
|
var import_rxjs = __toESM(require_cjs(), 1);
|
|
49040
49153
|
exports.FeatureFlagLoggingInterceptor = class FeatureFlagLoggingInterceptor {
|
|
49041
49154
|
constructor() {
|
|
@@ -49068,11 +49181,11 @@ exports.FeatureFlagLoggingInterceptor = class FeatureFlagLoggingInterceptor {
|
|
|
49068
49181
|
};
|
|
49069
49182
|
__name(exports.FeatureFlagLoggingInterceptor, "FeatureFlagLoggingInterceptor");
|
|
49070
49183
|
exports.FeatureFlagLoggingInterceptor = __decorateClass([
|
|
49071
|
-
(0,
|
|
49184
|
+
(0, import_common23.Injectable)()
|
|
49072
49185
|
], exports.FeatureFlagLoggingInterceptor);
|
|
49073
49186
|
|
|
49074
49187
|
// src/backend/featureFlags/interceptors/error-handling-interceptor.ts
|
|
49075
|
-
var
|
|
49188
|
+
var import_common24 = __toESM(require_common(), 1);
|
|
49076
49189
|
var import_operators = __toESM(require_operators(), 1);
|
|
49077
49190
|
exports.ErrorHandlingInterceptor = class ErrorHandlingInterceptor {
|
|
49078
49191
|
constructor() {
|
|
@@ -49101,7 +49214,7 @@ exports.ErrorHandlingInterceptor = class ErrorHandlingInterceptor {
|
|
|
49101
49214
|
};
|
|
49102
49215
|
__name(exports.ErrorHandlingInterceptor, "ErrorHandlingInterceptor");
|
|
49103
49216
|
exports.ErrorHandlingInterceptor = __decorateClass([
|
|
49104
|
-
(0,
|
|
49217
|
+
(0, import_common24.Injectable)()
|
|
49105
49218
|
], exports.ErrorHandlingInterceptor);
|
|
49106
49219
|
|
|
49107
49220
|
// src/backend/featureFlags/config/validation.ts
|
|
@@ -49454,7 +49567,7 @@ var FeatureFlagConfigFactory = class {
|
|
|
49454
49567
|
};
|
|
49455
49568
|
|
|
49456
49569
|
// src/base/cache/feature/caching.ts
|
|
49457
|
-
var
|
|
49570
|
+
var import_common25 = __toESM(require_common(), 1);
|
|
49458
49571
|
var import_rxjs2 = __toESM(require_cjs(), 1);
|
|
49459
49572
|
exports.Caching = class Caching {
|
|
49460
49573
|
constructor() {
|
|
@@ -49477,7 +49590,7 @@ exports.Caching = class Caching {
|
|
|
49477
49590
|
};
|
|
49478
49591
|
__name(exports.Caching, "Caching");
|
|
49479
49592
|
exports.Caching = __decorateClass([
|
|
49480
|
-
(0,
|
|
49593
|
+
(0, import_common25.Injectable)()
|
|
49481
49594
|
], exports.Caching);
|
|
49482
49595
|
|
|
49483
49596
|
// src/adapters/nextjs.ts
|
|
@@ -49687,6 +49800,7 @@ reflect-metadata/Reflect.js:
|
|
|
49687
49800
|
*/
|
|
49688
49801
|
|
|
49689
49802
|
exports.BACKEND_EXAMPLE_DOMAIN_SERVICE = BACKEND_EXAMPLE_DOMAIN_SERVICE;
|
|
49803
|
+
exports.BACKEND_FILES_DOMAIN_SERVICE = BACKEND_FILES_DOMAIN_SERVICE;
|
|
49690
49804
|
exports.CORE_DB_SERVICE = CORE_DB_SERVICE;
|
|
49691
49805
|
exports.CORE_ENV = CORE_ENV;
|
|
49692
49806
|
exports.CORE_OPTIONS = CORE_OPTIONS;
|