@revisium/endpoint 1.1.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (96) hide show
  1. package/dist/app.module.js +1 -1
  2. package/dist/app.module.js.map +1 -1
  3. package/dist/endpoint-microservice/app-options.module.d.ts +5 -0
  4. package/dist/endpoint-microservice/app-options.module.js +27 -0
  5. package/dist/endpoint-microservice/app-options.module.js.map +1 -0
  6. package/dist/endpoint-microservice/core-api/generated/api.d.ts +26 -23
  7. package/dist/endpoint-microservice/core-api/generated/api.js +5 -4
  8. package/dist/endpoint-microservice/core-api/generated/api.js.map +1 -1
  9. package/dist/endpoint-microservice/core-api/internal-core-api.service.d.ts +3 -1
  10. package/dist/endpoint-microservice/core-api/internal-core-api.service.js +12 -6
  11. package/dist/endpoint-microservice/core-api/internal-core-api.service.js.map +1 -1
  12. package/dist/endpoint-microservice/core-api/utils/transformFromPrismaToRowModel.d.ts +2 -2
  13. package/dist/endpoint-microservice/endpoint-microservice.module.d.ts +3 -1
  14. package/dist/endpoint-microservice/endpoint-microservice.module.js +24 -16
  15. package/dist/endpoint-microservice/endpoint-microservice.module.js.map +1 -1
  16. package/dist/endpoint-microservice/{endpoint-listener.controller.d.ts → events/endpoint-event.handler.d.ts} +4 -4
  17. package/dist/endpoint-microservice/events/endpoint-event.handler.js +35 -0
  18. package/dist/endpoint-microservice/events/endpoint-event.handler.js.map +1 -0
  19. package/dist/endpoint-microservice/events/endpoint-events.module.d.ts +2 -0
  20. package/dist/endpoint-microservice/events/endpoint-events.module.js +25 -0
  21. package/dist/endpoint-microservice/events/endpoint-events.module.js.map +1 -0
  22. package/dist/endpoint-microservice/events/endpoint-listener.controller.d.ts +12 -0
  23. package/dist/endpoint-microservice/{endpoint-listener.controller.js → events/endpoint-listener.controller.js} +17 -18
  24. package/dist/endpoint-microservice/events/endpoint-listener.controller.js.map +1 -0
  25. package/dist/endpoint-microservice/events/in-process-endpoint.listener.d.ts +12 -0
  26. package/dist/endpoint-microservice/events/in-process-endpoint.listener.js +53 -0
  27. package/dist/endpoint-microservice/events/in-process-endpoint.listener.js.map +1 -0
  28. package/dist/endpoint-microservice/graphql/graphql-endpoint.controller.d.ts +4 -2
  29. package/dist/endpoint-microservice/graphql/graphql-endpoint.controller.js +44 -12
  30. package/dist/endpoint-microservice/graphql/graphql-endpoint.controller.js.map +1 -1
  31. package/dist/endpoint-microservice/graphql/graphql-endpoint.service.d.ts +23 -7
  32. package/dist/endpoint-microservice/graphql/graphql-endpoint.service.js +61 -59
  33. package/dist/endpoint-microservice/graphql/graphql-endpoint.service.js.map +1 -1
  34. package/dist/endpoint-microservice/graphql/graphql-schema-converter/graphql-schema.converter.d.ts +23 -7
  35. package/dist/endpoint-microservice/graphql/graphql-schema-converter/graphql-schema.converter.js +128 -66
  36. package/dist/endpoint-microservice/graphql/graphql-schema-converter/graphql-schema.converter.js.map +1 -1
  37. package/dist/endpoint-microservice/graphql/graphql-schema-converter/types.d.ts +7 -1
  38. package/dist/endpoint-microservice/graphql/graphql-schema-converter/types.js +19 -1
  39. package/dist/endpoint-microservice/graphql/graphql-schema-converter/types.js.map +1 -1
  40. package/dist/endpoint-microservice/graphql/queries/handlers/get-graphql-schema.handler.js +6 -4
  41. package/dist/endpoint-microservice/graphql/queries/handlers/get-graphql-schema.handler.js.map +1 -1
  42. package/dist/endpoint-microservice/health/database-check.service.d.ts +1 -1
  43. package/dist/endpoint-microservice/health/notification.check.d.ts +1 -1
  44. package/dist/endpoint-microservice/metrics/utils.js +1 -2
  45. package/dist/endpoint-microservice/metrics/utils.js.map +1 -1
  46. package/dist/endpoint-microservice/restapi/queries/handlers/get-open-api-schema.handler.d.ts +1 -0
  47. package/dist/endpoint-microservice/restapi/queries/handlers/get-open-api-schema.handler.js +28 -324
  48. package/dist/endpoint-microservice/restapi/queries/handlers/get-open-api-schema.handler.js.map +1 -1
  49. package/dist/endpoint-microservice/restapi/queries/handlers/open-api-shema.utils.d.ts +7 -0
  50. package/dist/endpoint-microservice/restapi/queries/handlers/open-api-shema.utils.js +141 -0
  51. package/dist/endpoint-microservice/restapi/queries/handlers/open-api-shema.utils.js.map +1 -0
  52. package/dist/endpoint-microservice/restapi/restapi-endpoint.service.js +1 -3
  53. package/dist/endpoint-microservice/restapi/restapi-endpoint.service.js.map +1 -1
  54. package/dist/endpoint-microservice/shared/app-mode.d.ts +4 -0
  55. package/dist/endpoint-microservice/shared/app-mode.js +5 -0
  56. package/dist/endpoint-microservice/shared/app-mode.js.map +1 -0
  57. package/dist/endpoint-microservice/shared/schema/lib/resolveRefs.js +8 -0
  58. package/dist/endpoint-microservice/shared/schema/lib/resolveRefs.js.map +1 -1
  59. package/dist/endpoint-microservice/shared/schema/model/schema/json-boolean.store.d.ts +0 -1
  60. package/dist/endpoint-microservice/shared/schema/model/schema/json-number.store.d.ts +0 -1
  61. package/dist/endpoint-microservice/shared/schema/model/schema/json-string.store.d.ts +0 -1
  62. package/dist/endpoint-microservice/shared/schema/plugins/index.d.ts +7 -0
  63. package/dist/endpoint-microservice/shared/schema/plugins/index.js +7 -0
  64. package/dist/endpoint-microservice/shared/schema/plugins/index.js.map +1 -1
  65. package/dist/endpoint-microservice/shared/schema/plugins/row-created-at.schema.d.ts +4 -0
  66. package/dist/endpoint-microservice/shared/schema/plugins/row-created-at.schema.js +15 -0
  67. package/dist/endpoint-microservice/shared/schema/plugins/row-created-at.schema.js.map +1 -0
  68. package/dist/endpoint-microservice/shared/schema/plugins/row-created-id.schema.d.ts +4 -0
  69. package/dist/endpoint-microservice/shared/schema/plugins/row-created-id.schema.js +15 -0
  70. package/dist/endpoint-microservice/shared/schema/plugins/row-created-id.schema.js.map +1 -0
  71. package/dist/endpoint-microservice/shared/schema/plugins/row-hash.schema.d.ts +4 -0
  72. package/dist/endpoint-microservice/shared/schema/plugins/row-hash.schema.js +15 -0
  73. package/dist/endpoint-microservice/shared/schema/plugins/row-hash.schema.js.map +1 -0
  74. package/dist/endpoint-microservice/shared/schema/plugins/row-id.schema.d.ts +4 -0
  75. package/dist/endpoint-microservice/shared/schema/plugins/row-id.schema.js +15 -0
  76. package/dist/endpoint-microservice/shared/schema/plugins/row-id.schema.js.map +1 -0
  77. package/dist/endpoint-microservice/shared/schema/plugins/row-schema-hash.schema.d.ts +4 -0
  78. package/dist/endpoint-microservice/shared/schema/plugins/row-schema-hash.schema.js +15 -0
  79. package/dist/endpoint-microservice/shared/schema/plugins/row-schema-hash.schema.js.map +1 -0
  80. package/dist/endpoint-microservice/shared/schema/plugins/row-updated-at.schema.d.ts +4 -0
  81. package/dist/endpoint-microservice/shared/schema/plugins/row-updated-at.schema.js +15 -0
  82. package/dist/endpoint-microservice/shared/schema/plugins/row-updated-at.schema.js.map +1 -0
  83. package/dist/endpoint-microservice/shared/schema/plugins/row-version-id.schema.d.ts +4 -0
  84. package/dist/endpoint-microservice/shared/schema/plugins/row-version-id.schema.js +15 -0
  85. package/dist/endpoint-microservice/shared/schema/plugins/row-version-id.schema.js.map +1 -0
  86. package/dist/endpoint-microservice/shared/schema-ids.consts.d.ts +7 -0
  87. package/dist/endpoint-microservice/shared/schema-ids.consts.js +7 -0
  88. package/dist/endpoint-microservice/shared/schema-ids.consts.js.map +1 -1
  89. package/dist/endpoint-microservice/shared/utils/getOffsetPagination.js +1 -2
  90. package/dist/endpoint-microservice/shared/utils/getOffsetPagination.js.map +1 -1
  91. package/dist/endpoint-microservice/shared/utils/parseHeaders.d.ts +0 -1
  92. package/dist/main.js +8 -1
  93. package/dist/main.js.map +1 -1
  94. package/dist/tsconfig.build.tsbuildinfo +1 -1
  95. package/package.json +50 -42
  96. package/dist/endpoint-microservice/endpoint-listener.controller.js.map +0 -1
@@ -4,7 +4,15 @@ exports.resolveRefs = exports.pluginRefs = void 0;
4
4
  const schema_ids_consts_1 = require("../../schema-ids.consts");
5
5
  const createJsonSchemaStore_1 = require("./createJsonSchemaStore");
6
6
  const plugins_1 = require("../plugins");
7
+ const row_id_schema_1 = require("../plugins/row-id.schema");
7
8
  exports.pluginRefs = {
9
+ [schema_ids_consts_1.SystemSchemaIds.RowId]: row_id_schema_1.rowIdSchema,
10
+ [schema_ids_consts_1.SystemSchemaIds.RowVersionId]: plugins_1.rowVersionIdSchema,
11
+ [schema_ids_consts_1.SystemSchemaIds.RowCreatedId]: plugins_1.rowCreatedIdSchema,
12
+ [schema_ids_consts_1.SystemSchemaIds.RowCreatedAt]: plugins_1.rowCreatedAtSchema,
13
+ [schema_ids_consts_1.SystemSchemaIds.RowUpdatedAt]: plugins_1.rowUpdatedAtSchema,
14
+ [schema_ids_consts_1.SystemSchemaIds.RowHash]: plugins_1.rowHashSchema,
15
+ [schema_ids_consts_1.SystemSchemaIds.RowSchemaHash]: plugins_1.rowSchemaHashSchema,
8
16
  [schema_ids_consts_1.SystemSchemaIds.File]: plugins_1.fileSchema,
9
17
  };
10
18
  const resolveRefs = (schema) => {
@@ -1 +1 @@
1
- {"version":3,"file":"resolveRefs.js","sourceRoot":"","sources":["../../../../../src/endpoint-microservice/shared/schema/lib/resolveRefs.ts"],"names":[],"mappings":";;;AAAA,+DAAqF;AACrF,mEAA0G;AAC1G,wCAA6E;AAGhE,QAAA,UAAU,GAAyC;IAC9D,CAAC,mCAAe,CAAC,IAAI,CAAC,EAAE,oBAAU;CACnC,CAAC;AAEK,MAAM,WAAW,GAAG,CAAC,MAAkB,EAAE,EAAE;IAChD,MAAM,KAAK,GAAG,IAAA,6CAAqB,EAAC,MAAM,EAAE,kBAAU,CAAC,CAAC;IACxD,OAAO,KAAK,CAAC,cAAc,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;AAClD,CAAC,CAAC;AAHW,QAAA,WAAW,eAGtB"}
1
+ {"version":3,"file":"resolveRefs.js","sourceRoot":"","sources":["../../../../../src/endpoint-microservice/shared/schema/lib/resolveRefs.ts"],"names":[],"mappings":";;;AAAA,+DAAqF;AACrF,mEAA0G;AAC1G,wCAQyD;AACzD,4DAA4F;AAG/E,QAAA,UAAU,GAAyC;IAC9D,CAAC,mCAAe,CAAC,KAAK,CAAC,EAAE,2BAAW;IACpC,CAAC,mCAAe,CAAC,YAAY,CAAC,EAAE,4BAAkB;IAClD,CAAC,mCAAe,CAAC,YAAY,CAAC,EAAE,4BAAkB;IAClD,CAAC,mCAAe,CAAC,YAAY,CAAC,EAAE,4BAAkB;IAClD,CAAC,mCAAe,CAAC,YAAY,CAAC,EAAE,4BAAkB;IAClD,CAAC,mCAAe,CAAC,OAAO,CAAC,EAAE,uBAAa;IACxC,CAAC,mCAAe,CAAC,aAAa,CAAC,EAAE,6BAAmB;IACpD,CAAC,mCAAe,CAAC,IAAI,CAAC,EAAE,oBAAU;CACnC,CAAC;AAEK,MAAM,WAAW,GAAG,CAAC,MAAkB,EAAE,EAAE;IAChD,MAAM,KAAK,GAAG,IAAA,6CAAqB,EAAC,MAAM,EAAE,kBAAU,CAAC,CAAC;IACxD,OAAO,KAAK,CAAC,cAAc,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;AAClD,CAAC,CAAC;AAHW,QAAA,WAAW,eAGtB"}
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import { EventEmitter } from 'node:events';
3
2
  import { JsonSchemaStore, JsonBooleanValueStore, JsonRefSchema, JsonSchemaTypeName, JsonBooleanSchema } from '../../../../../endpoint-microservice/shared/schema';
4
3
  export declare class JsonBooleanStore extends EventEmitter implements JsonBooleanSchema {
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import { EventEmitter } from 'node:events';
3
2
  import { JsonSchemaStore, JsonNumberValueStore, JsonNumberSchema, JsonRefSchema, JsonSchemaTypeName } from '../../../../../endpoint-microservice/shared/schema';
4
3
  export declare class JsonNumberStore extends EventEmitter implements JsonNumberSchema {
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import { EventEmitter } from 'node:events';
3
2
  import { JsonSchemaStore, JsonStringValueStore, JsonRefSchema, JsonSchemaTypeName, JsonStringSchema } from '../../../../../endpoint-microservice/shared/schema';
4
3
  export declare class JsonStringStore extends EventEmitter implements JsonStringSchema {
@@ -1 +1,8 @@
1
1
  export * from './file-schema';
2
+ export * from './row-id.schema';
3
+ export * from './row-created-id.schema';
4
+ export * from './row-version-id.schema';
5
+ export * from './row-created-at.schema';
6
+ export * from './row-updated-at.schema';
7
+ export * from './row-hash.schema';
8
+ export * from './row-schema-hash.schema';
@@ -15,4 +15,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./file-schema"), exports);
18
+ __exportStar(require("./row-id.schema"), exports);
19
+ __exportStar(require("./row-created-id.schema"), exports);
20
+ __exportStar(require("./row-version-id.schema"), exports);
21
+ __exportStar(require("./row-created-at.schema"), exports);
22
+ __exportStar(require("./row-updated-at.schema"), exports);
23
+ __exportStar(require("./row-hash.schema"), exports);
24
+ __exportStar(require("./row-schema-hash.schema"), exports);
18
25
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/endpoint-microservice/shared/schema/plugins/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/endpoint-microservice/shared/schema/plugins/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,kDAAgC;AAChC,0DAAwC;AACxC,0DAAwC;AACxC,0DAAwC;AACxC,0DAAwC;AACxC,oDAAkC;AAClC,2DAAyC"}
@@ -0,0 +1,4 @@
1
+ import { Schema } from 'ajv/dist/2020';
2
+ import { JsonStringSchema } from '../../../../endpoint-microservice/shared/schema';
3
+ export declare const rowCreatedAtSchema: JsonStringSchema;
4
+ export declare const ajvRowCreatedAtSchema: Schema;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ajvRowCreatedAtSchema = exports.rowCreatedAtSchema = void 0;
4
+ const schema_ids_consts_1 = require("../../schema-ids.consts");
5
+ const schema_types_1 = require("../types/schema.types");
6
+ exports.rowCreatedAtSchema = {
7
+ type: schema_types_1.JsonSchemaTypeName.String,
8
+ default: '',
9
+ readOnly: true,
10
+ };
11
+ exports.ajvRowCreatedAtSchema = {
12
+ $id: schema_ids_consts_1.SystemSchemaIds.RowCreatedAt,
13
+ ...exports.rowCreatedAtSchema,
14
+ };
15
+ //# sourceMappingURL=row-created-at.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"row-created-at.schema.js","sourceRoot":"","sources":["../../../../../src/endpoint-microservice/shared/schema/plugins/row-created-at.schema.ts"],"names":[],"mappings":";;;AACA,+DAAqF;AAGrF,wDAAgG;AAEnF,QAAA,kBAAkB,GAAqB;IAClD,IAAI,EAAE,iCAAkB,CAAC,MAAM;IAC/B,OAAO,EAAE,EAAE;IACX,QAAQ,EAAE,IAAI;CACf,CAAC;AAEW,QAAA,qBAAqB,GAAW;IAC3C,GAAG,EAAE,mCAAe,CAAC,YAAY;IACjC,GAAG,0BAAkB;CACtB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { Schema } from 'ajv/dist/2020';
2
+ import { JsonStringSchema } from '../../../../endpoint-microservice/shared/schema';
3
+ export declare const rowCreatedIdSchema: JsonStringSchema;
4
+ export declare const ajvRowCreatedIdSchema: Schema;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ajvRowCreatedIdSchema = exports.rowCreatedIdSchema = void 0;
4
+ const schema_ids_consts_1 = require("../../schema-ids.consts");
5
+ const schema_types_1 = require("../types/schema.types");
6
+ exports.rowCreatedIdSchema = {
7
+ type: schema_types_1.JsonSchemaTypeName.String,
8
+ default: '',
9
+ readOnly: true,
10
+ };
11
+ exports.ajvRowCreatedIdSchema = {
12
+ $id: schema_ids_consts_1.SystemSchemaIds.RowCreatedId,
13
+ ...exports.rowCreatedIdSchema,
14
+ };
15
+ //# sourceMappingURL=row-created-id.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"row-created-id.schema.js","sourceRoot":"","sources":["../../../../../src/endpoint-microservice/shared/schema/plugins/row-created-id.schema.ts"],"names":[],"mappings":";;;AACA,+DAAqF;AAGrF,wDAAgG;AAEnF,QAAA,kBAAkB,GAAqB;IAClD,IAAI,EAAE,iCAAkB,CAAC,MAAM;IAC/B,OAAO,EAAE,EAAE;IACX,QAAQ,EAAE,IAAI;CACf,CAAC;AAEW,QAAA,qBAAqB,GAAW;IAC3C,GAAG,EAAE,mCAAe,CAAC,YAAY;IACjC,GAAG,0BAAkB;CACtB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { Schema } from 'ajv/dist/2020';
2
+ import { JsonStringSchema } from '../../../../endpoint-microservice/shared/schema';
3
+ export declare const rowHashSchema: JsonStringSchema;
4
+ export declare const ajvRowHashSchema: Schema;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ajvRowHashSchema = exports.rowHashSchema = void 0;
4
+ const schema_ids_consts_1 = require("../../schema-ids.consts");
5
+ const schema_types_1 = require("../types/schema.types");
6
+ exports.rowHashSchema = {
7
+ type: schema_types_1.JsonSchemaTypeName.String,
8
+ default: '',
9
+ readOnly: true,
10
+ };
11
+ exports.ajvRowHashSchema = {
12
+ $id: schema_ids_consts_1.SystemSchemaIds.RowHash,
13
+ ...exports.rowHashSchema,
14
+ };
15
+ //# sourceMappingURL=row-hash.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"row-hash.schema.js","sourceRoot":"","sources":["../../../../../src/endpoint-microservice/shared/schema/plugins/row-hash.schema.ts"],"names":[],"mappings":";;;AACA,+DAAqF;AAGrF,wDAAgG;AAEnF,QAAA,aAAa,GAAqB;IAC7C,IAAI,EAAE,iCAAkB,CAAC,MAAM;IAC/B,OAAO,EAAE,EAAE;IACX,QAAQ,EAAE,IAAI;CACf,CAAC;AAEW,QAAA,gBAAgB,GAAW;IACtC,GAAG,EAAE,mCAAe,CAAC,OAAO;IAC5B,GAAG,qBAAa;CACjB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { Schema } from 'ajv/dist/2020';
2
+ import { JsonStringSchema } from '../../../../endpoint-microservice/shared/schema';
3
+ export declare const rowIdSchema: JsonStringSchema;
4
+ export declare const ajvRowIdSchema: Schema;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ajvRowIdSchema = exports.rowIdSchema = void 0;
4
+ const schema_ids_consts_1 = require("../../schema-ids.consts");
5
+ const schema_types_1 = require("../types/schema.types");
6
+ exports.rowIdSchema = {
7
+ type: schema_types_1.JsonSchemaTypeName.String,
8
+ default: '',
9
+ readOnly: true,
10
+ };
11
+ exports.ajvRowIdSchema = {
12
+ $id: schema_ids_consts_1.SystemSchemaIds.RowId,
13
+ ...exports.rowIdSchema,
14
+ };
15
+ //# sourceMappingURL=row-id.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"row-id.schema.js","sourceRoot":"","sources":["../../../../../src/endpoint-microservice/shared/schema/plugins/row-id.schema.ts"],"names":[],"mappings":";;;AACA,+DAAqF;AAGrF,wDAAgG;AAEnF,QAAA,WAAW,GAAqB;IAC3C,IAAI,EAAE,iCAAkB,CAAC,MAAM;IAC/B,OAAO,EAAE,EAAE;IACX,QAAQ,EAAE,IAAI;CACf,CAAC;AAEW,QAAA,cAAc,GAAW;IACpC,GAAG,EAAE,mCAAe,CAAC,KAAK;IAC1B,GAAG,mBAAW;CACf,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { Schema } from 'ajv/dist/2020';
2
+ import { JsonStringSchema } from '../../../../endpoint-microservice/shared/schema';
3
+ export declare const rowSchemaHashSchema: JsonStringSchema;
4
+ export declare const ajvRowSchemaHashSchema: Schema;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ajvRowSchemaHashSchema = exports.rowSchemaHashSchema = void 0;
4
+ const schema_ids_consts_1 = require("../../schema-ids.consts");
5
+ const schema_types_1 = require("../types/schema.types");
6
+ exports.rowSchemaHashSchema = {
7
+ type: schema_types_1.JsonSchemaTypeName.String,
8
+ default: '',
9
+ readOnly: true,
10
+ };
11
+ exports.ajvRowSchemaHashSchema = {
12
+ $id: schema_ids_consts_1.SystemSchemaIds.RowSchemaHash,
13
+ ...exports.rowSchemaHashSchema,
14
+ };
15
+ //# sourceMappingURL=row-schema-hash.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"row-schema-hash.schema.js","sourceRoot":"","sources":["../../../../../src/endpoint-microservice/shared/schema/plugins/row-schema-hash.schema.ts"],"names":[],"mappings":";;;AACA,+DAAqF;AAGrF,wDAAgG;AAEnF,QAAA,mBAAmB,GAAqB;IACnD,IAAI,EAAE,iCAAkB,CAAC,MAAM;IAC/B,OAAO,EAAE,EAAE;IACX,QAAQ,EAAE,IAAI;CACf,CAAC;AAEW,QAAA,sBAAsB,GAAW;IAC5C,GAAG,EAAE,mCAAe,CAAC,aAAa;IAClC,GAAG,2BAAmB;CACvB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { Schema } from 'ajv/dist/2020';
2
+ import { JsonStringSchema } from '../../../../endpoint-microservice/shared/schema';
3
+ export declare const rowUpdatedAtSchema: JsonStringSchema;
4
+ export declare const ajvRowUpdatedAtSchema: Schema;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ajvRowUpdatedAtSchema = exports.rowUpdatedAtSchema = void 0;
4
+ const schema_ids_consts_1 = require("../../schema-ids.consts");
5
+ const schema_types_1 = require("../types/schema.types");
6
+ exports.rowUpdatedAtSchema = {
7
+ type: schema_types_1.JsonSchemaTypeName.String,
8
+ default: '',
9
+ readOnly: true,
10
+ };
11
+ exports.ajvRowUpdatedAtSchema = {
12
+ $id: schema_ids_consts_1.SystemSchemaIds.RowUpdatedAt,
13
+ ...exports.rowUpdatedAtSchema,
14
+ };
15
+ //# sourceMappingURL=row-updated-at.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"row-updated-at.schema.js","sourceRoot":"","sources":["../../../../../src/endpoint-microservice/shared/schema/plugins/row-updated-at.schema.ts"],"names":[],"mappings":";;;AACA,+DAAqF;AAGrF,wDAAgG;AAEnF,QAAA,kBAAkB,GAAqB;IAClD,IAAI,EAAE,iCAAkB,CAAC,MAAM;IAC/B,OAAO,EAAE,EAAE;IACX,QAAQ,EAAE,IAAI;CACf,CAAC;AAEW,QAAA,qBAAqB,GAAW;IAC3C,GAAG,EAAE,mCAAe,CAAC,YAAY;IACjC,GAAG,0BAAkB;CACtB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { Schema } from 'ajv/dist/2020';
2
+ import { JsonStringSchema } from '../../../../endpoint-microservice/shared/schema';
3
+ export declare const rowVersionIdSchema: JsonStringSchema;
4
+ export declare const ajvRowVersionIdSchema: Schema;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ajvRowVersionIdSchema = exports.rowVersionIdSchema = void 0;
4
+ const schema_ids_consts_1 = require("../../schema-ids.consts");
5
+ const schema_types_1 = require("../types/schema.types");
6
+ exports.rowVersionIdSchema = {
7
+ type: schema_types_1.JsonSchemaTypeName.String,
8
+ default: '',
9
+ readOnly: true,
10
+ };
11
+ exports.ajvRowVersionIdSchema = {
12
+ $id: schema_ids_consts_1.SystemSchemaIds.RowVersionId,
13
+ ...exports.rowVersionIdSchema,
14
+ };
15
+ //# sourceMappingURL=row-version-id.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"row-version-id.schema.js","sourceRoot":"","sources":["../../../../../src/endpoint-microservice/shared/schema/plugins/row-version-id.schema.ts"],"names":[],"mappings":";;;AACA,+DAAqF;AAGrF,wDAAgG;AAEnF,QAAA,kBAAkB,GAAqB;IAClD,IAAI,EAAE,iCAAkB,CAAC,MAAM;IAC/B,OAAO,EAAE,EAAE;IACX,QAAQ,EAAE,IAAI;CACf,CAAC;AAEW,QAAA,qBAAqB,GAAW;IAC3C,GAAG,EAAE,mCAAe,CAAC,YAAY;IACjC,GAAG,0BAAkB;CACtB,CAAC"}
@@ -1,3 +1,10 @@
1
1
  export declare enum SystemSchemaIds {
2
+ RowId = "urn:jsonschema:io:revisium:row-id-schema:1.0.0",
3
+ RowCreatedId = "urn:jsonschema:io:revisium:row-created-id-schema:1.0.0",
4
+ RowVersionId = "urn:jsonschema:io:revisium:row-version-id-schema:1.0.0",
5
+ RowCreatedAt = "urn:jsonschema:io:revisium:row-created-at-schema:1.0.0",
6
+ RowUpdatedAt = "urn:jsonschema:io:revisium:row-updated-at-schema:1.0.0",
7
+ RowHash = "urn:jsonschema:io:revisium:row-hash-schema:1.0.0",
8
+ RowSchemaHash = "urn:jsonschema:io:revisium:row-schema-hash-schema:1.0.0",
2
9
  File = "urn:jsonschema:io:revisium:file-schema:1.0.0"
3
10
  }
@@ -3,6 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SystemSchemaIds = void 0;
4
4
  var SystemSchemaIds;
5
5
  (function (SystemSchemaIds) {
6
+ SystemSchemaIds["RowId"] = "urn:jsonschema:io:revisium:row-id-schema:1.0.0";
7
+ SystemSchemaIds["RowCreatedId"] = "urn:jsonschema:io:revisium:row-created-id-schema:1.0.0";
8
+ SystemSchemaIds["RowVersionId"] = "urn:jsonschema:io:revisium:row-version-id-schema:1.0.0";
9
+ SystemSchemaIds["RowCreatedAt"] = "urn:jsonschema:io:revisium:row-created-at-schema:1.0.0";
10
+ SystemSchemaIds["RowUpdatedAt"] = "urn:jsonschema:io:revisium:row-updated-at-schema:1.0.0";
11
+ SystemSchemaIds["RowHash"] = "urn:jsonschema:io:revisium:row-hash-schema:1.0.0";
12
+ SystemSchemaIds["RowSchemaHash"] = "urn:jsonschema:io:revisium:row-schema-hash-schema:1.0.0";
6
13
  SystemSchemaIds["File"] = "urn:jsonschema:io:revisium:file-schema:1.0.0";
7
14
  })(SystemSchemaIds || (exports.SystemSchemaIds = SystemSchemaIds = {}));
8
15
  //# sourceMappingURL=schema-ids.consts.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"schema-ids.consts.js","sourceRoot":"","sources":["../../../src/endpoint-microservice/shared/schema-ids.consts.ts"],"names":[],"mappings":";;;AAAA,IAAY,eAEX;AAFD,WAAY,eAAe;IACzB,wEAAqD,CAAA;AACvD,CAAC,EAFW,eAAe,+BAAf,eAAe,QAE1B"}
1
+ {"version":3,"file":"schema-ids.consts.js","sourceRoot":"","sources":["../../../src/endpoint-microservice/shared/schema-ids.consts.ts"],"names":[],"mappings":";;;AAAA,IAAY,eASX;AATD,WAAY,eAAe;IACzB,2EAAwD,CAAA;IACxD,0FAAuE,CAAA;IACvE,0FAAuE,CAAA;IACvE,0FAAuE,CAAA;IACvE,0FAAuE,CAAA;IACvE,+EAA4D,CAAA;IAC5D,4FAAyE,CAAA;IACzE,wEAAqD,CAAA;AACvD,CAAC,EATW,eAAe,+BAAf,eAAe,QAS1B"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getOffsetPagination = void 0;
3
+ exports.getOffsetPagination = getOffsetPagination;
4
4
  async function getOffsetPagination({ pageData, findMany, count, }) {
5
5
  if ((pageData.after && !Number.isInteger(Number(pageData.after))) ||
6
6
  Number(pageData.after) < 1) {
@@ -41,5 +41,4 @@ async function getOffsetPagination({ pageData, findMany, count, }) {
41
41
  totalCount,
42
42
  };
43
43
  }
44
- exports.getOffsetPagination = getOffsetPagination;
45
44
  //# sourceMappingURL=getOffsetPagination.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getOffsetPagination.js","sourceRoot":"","sources":["../../../../src/endpoint-microservice/shared/utils/getOffsetPagination.ts"],"names":[],"m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,IAAI,WAAW,GAAG,CAAC,CAAC,CAAC;IAEhE,MAAM,UAAU,GAAG,MAAM,KAAK,EAAE,CAAC;IAEjC,OAAO;QACL,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC;YACjC,MAAM,EAAE,CAAC,CAAC,WAAW,IAAI,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,QAAQ,EAAE;YAC/C,IAAI,EAAE,IAAI;SACX,CAAC,CAAC;QACH,QAAQ,EAAE;YACR,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAE;YACpC,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE;YAChC,WAAW;YACX,eAAe;SAChB;QACD,UAAU;KACX,CAAC;AACJ,CAAC;AApDD,kDAoDC"}
1
+ {"version":3,"file":"getOffsetPagination.js","sourceRoot":"","sources":["../../../../src/endpoint-microservice/shared/utils/getOffsetPagination.ts"],"names":[],"mappings":";;AAqBA,kDAoDC;AApDM,KAAK,UAAU,mBAAmB,CAAI,EAC3C,QAAQ,EACR,QAAQ,EACR,KAAK,GACoB;IACzB,IACE,CAAC,QAAQ,CAAC,KAAK,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC;QAC7D,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,EAC1B,CAAC;QACD,MAAM,IAAI,KAAK,CAAC,eAAe,CAAC,CAAC;IACnC,CAAC;IAED,IAAI,QAAQ,CAAC,KAAK,GAAG,CAAC,EAAE,CAAC;QACvB,MAAM,IAAI,KAAK,CAAC,eAAe,CAAC,CAAC;IACnC,CAAC;IAED,MAAM,IAAI,GAAG,QAAQ,CAAC,KAAK,CAAC;IAC5B,MAAM,IAAI,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAEzD,MAAM,KAAK,GAAG,MAAM,QAAQ,CAAC;QAC3B,IAAI;QACJ,IAAI;KACL,CAAC,CAAC;IAEH,MAAM,SAAS,GAAuB,KAAK,CAAC,MAAM;QAChD,CAAC,CAAC,IAAI,GAAG,KAAK,CAAC,MAAM;QACrB,CAAC,CAAC,SAAS,CAAC;IACd,MAAM,WAAW,GAAuB,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IAE5E,MAAM,WAAW,GAAG,SAAS;QAC3B,CAAC,CAAC,MAAM,QAAQ,CAAC;YACb,IAAI,EAAE,CAAC;YACP,IAAI,EAAE,SAAS;SAChB,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QAC7C,CAAC,CAAC,KAAK,CAAC;IACV,MAAM,eAAe,GAAG,OAAO,CAAC,WAAW,IAAI,WAAW,GAAG,CAAC,CAAC,CAAC;IAEhE,MAAM,UAAU,GAAG,MAAM,KAAK,EAAE,CAAC;IAEjC,OAAO;QACL,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC;YACjC,MAAM,EAAE,CAAC,CAAC,WAAW,IAAI,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,QAAQ,EAAE;YAC/C,IAAI,EAAE,IAAI;SACX,CAAC,CAAC;QACH,QAAQ,EAAE;YACR,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAE;YACpC,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE;YAChC,WAAW;YACX,eAAe;SAChB;QACD,UAAU;KACX,CAAC;AACJ,CAAC"}
@@ -1,3 +1,2 @@
1
- /// <reference types="node" />
2
1
  import { IncomingHttpHeaders } from 'http';
3
2
  export declare const parseHeaders: (incomeHeaders: IncomingHttpHeaders) => Record<string, string>;
package/dist/main.js CHANGED
@@ -1,12 +1,19 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ const common_1 = require("@nestjs/common");
3
4
  const config_1 = require("@nestjs/config");
4
5
  const core_1 = require("@nestjs/core");
5
6
  const microservices_1 = require("@nestjs/microservices");
6
7
  const app_module_1 = require("./app.module");
7
8
  const default_port_1 = require("./endpoint-microservice/shared/default-port");
8
9
  async function bootstrap() {
9
- const app = await core_1.NestFactory.create(app_module_1.AppModule);
10
+ const app = await core_1.NestFactory.create(app_module_1.AppModule, {
11
+ logger: new common_1.ConsoleLogger({
12
+ json: true,
13
+ colors: true,
14
+ }),
15
+ });
16
+ app.enableCors();
10
17
  const config = app.get(config_1.ConfigService);
11
18
  const portPath = 'ENDPOINT_PORT';
12
19
  const hostPath = 'ENDPOINT_HOST';
package/dist/main.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":";;AAAA,2CAA+C;AAC/C,uCAA2C;AAC3C,yDAAuE;AACvE,6CAA2C;AAC3C,8EAA6E;AAE7E,KAAK,UAAU,SAAS;IACtB,MAAM,GAAG,GAAG,MAAM,kBAAW,CAAC,MAAM,CAAC,sBAAS,CAAC,CAAC;IAEhD,MAAM,MAAM,GAAG,GAAG,CAAC,GAAG,CAAC,sBAAa,CAAC,CAAC;IAEtC,MAAM,QAAQ,GAAG,eAAe,CAAC;IACjC,MAAM,QAAQ,GAAG,eAAe,CAAC;IAEjC,MAAM,YAAY,GAAG,QAAQ,CAAC,MAAM,CAAC,GAAG,CAAS,QAAQ,CAAC,CAAC,CAAC;IAC5D,MAAM,YAAY,GAAG,MAAM,CAAC,GAAG,CAAS,QAAQ,CAAC,CAAC;IAElD,IAAI,CAAC,YAAY,EAAE,CAAC;QAClB,MAAM,IAAI,KAAK,CAAC,mCAAmC,QAAQ,EAAE,CAAC,CAAC;IACjE,CAAC;IAED,IAAI,CAAC,YAAY,EAAE,CA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