@revisium/endpoint 1.2.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.
- package/dist/app.module.js +1 -1
- package/dist/app.module.js.map +1 -1
- package/dist/endpoint-microservice/app-options.module.d.ts +5 -0
- package/dist/endpoint-microservice/app-options.module.js +27 -0
- package/dist/endpoint-microservice/app-options.module.js.map +1 -0
- package/dist/endpoint-microservice/core-api/generated/api.d.ts +26 -23
- package/dist/endpoint-microservice/core-api/generated/api.js +5 -4
- package/dist/endpoint-microservice/core-api/generated/api.js.map +1 -1
- package/dist/endpoint-microservice/core-api/internal-core-api.service.d.ts +3 -1
- package/dist/endpoint-microservice/core-api/internal-core-api.service.js +12 -6
- package/dist/endpoint-microservice/core-api/internal-core-api.service.js.map +1 -1
- package/dist/endpoint-microservice/core-api/utils/transformFromPrismaToRowModel.d.ts +2 -2
- package/dist/endpoint-microservice/endpoint-microservice.module.d.ts +3 -1
- package/dist/endpoint-microservice/endpoint-microservice.module.js +24 -16
- package/dist/endpoint-microservice/endpoint-microservice.module.js.map +1 -1
- package/dist/endpoint-microservice/{endpoint-listener.controller.d.ts → events/endpoint-event.handler.d.ts} +4 -4
- package/dist/endpoint-microservice/events/endpoint-event.handler.js +35 -0
- package/dist/endpoint-microservice/events/endpoint-event.handler.js.map +1 -0
- package/dist/endpoint-microservice/events/endpoint-events.module.d.ts +2 -0
- package/dist/endpoint-microservice/events/endpoint-events.module.js +25 -0
- package/dist/endpoint-microservice/events/endpoint-events.module.js.map +1 -0
- package/dist/endpoint-microservice/events/endpoint-listener.controller.d.ts +12 -0
- package/dist/endpoint-microservice/{endpoint-listener.controller.js → events/endpoint-listener.controller.js} +17 -18
- package/dist/endpoint-microservice/events/endpoint-listener.controller.js.map +1 -0
- package/dist/endpoint-microservice/events/in-process-endpoint.listener.d.ts +12 -0
- package/dist/endpoint-microservice/events/in-process-endpoint.listener.js +53 -0
- package/dist/endpoint-microservice/events/in-process-endpoint.listener.js.map +1 -0
- package/dist/endpoint-microservice/graphql/graphql-endpoint.controller.d.ts +4 -2
- package/dist/endpoint-microservice/graphql/graphql-endpoint.controller.js +44 -12
- package/dist/endpoint-microservice/graphql/graphql-endpoint.controller.js.map +1 -1
- package/dist/endpoint-microservice/graphql/graphql-endpoint.service.d.ts +23 -7
- package/dist/endpoint-microservice/graphql/graphql-endpoint.service.js +61 -59
- package/dist/endpoint-microservice/graphql/graphql-endpoint.service.js.map +1 -1
- package/dist/endpoint-microservice/graphql/graphql-schema-converter/graphql-schema.converter.d.ts +3 -2
- package/dist/endpoint-microservice/graphql/graphql-schema-converter/graphql-schema.converter.js +26 -5
- package/dist/endpoint-microservice/graphql/graphql-schema-converter/graphql-schema.converter.js.map +1 -1
- package/dist/endpoint-microservice/graphql/graphql-schema-converter/types.d.ts +6 -1
- package/dist/endpoint-microservice/graphql/graphql-schema-converter/types.js +16 -1
- package/dist/endpoint-microservice/graphql/graphql-schema-converter/types.js.map +1 -1
- package/dist/endpoint-microservice/graphql/queries/handlers/get-graphql-schema.handler.js +6 -4
- package/dist/endpoint-microservice/graphql/queries/handlers/get-graphql-schema.handler.js.map +1 -1
- package/dist/endpoint-microservice/health/database-check.service.d.ts +1 -1
- package/dist/endpoint-microservice/health/notification.check.d.ts +1 -1
- package/dist/endpoint-microservice/metrics/utils.js +1 -2
- package/dist/endpoint-microservice/metrics/utils.js.map +1 -1
- package/dist/endpoint-microservice/restapi/queries/handlers/get-open-api-schema.handler.d.ts +1 -0
- package/dist/endpoint-microservice/restapi/queries/handlers/get-open-api-schema.handler.js +28 -324
- package/dist/endpoint-microservice/restapi/queries/handlers/get-open-api-schema.handler.js.map +1 -1
- package/dist/endpoint-microservice/restapi/queries/handlers/open-api-shema.utils.d.ts +7 -0
- package/dist/endpoint-microservice/restapi/queries/handlers/open-api-shema.utils.js +141 -0
- package/dist/endpoint-microservice/restapi/queries/handlers/open-api-shema.utils.js.map +1 -0
- package/dist/endpoint-microservice/restapi/restapi-endpoint.service.js +1 -3
- package/dist/endpoint-microservice/restapi/restapi-endpoint.service.js.map +1 -1
- package/dist/endpoint-microservice/shared/app-mode.d.ts +4 -0
- package/dist/endpoint-microservice/shared/app-mode.js +5 -0
- package/dist/endpoint-microservice/shared/app-mode.js.map +1 -0
- package/dist/endpoint-microservice/shared/schema/lib/resolveRefs.js +8 -0
- package/dist/endpoint-microservice/shared/schema/lib/resolveRefs.js.map +1 -1
- package/dist/endpoint-microservice/shared/schema/model/schema/json-boolean.store.d.ts +0 -1
- package/dist/endpoint-microservice/shared/schema/model/schema/json-number.store.d.ts +0 -1
- package/dist/endpoint-microservice/shared/schema/model/schema/json-string.store.d.ts +0 -1
- package/dist/endpoint-microservice/shared/schema/plugins/index.d.ts +7 -0
- package/dist/endpoint-microservice/shared/schema/plugins/index.js +7 -0
- package/dist/endpoint-microservice/shared/schema/plugins/index.js.map +1 -1
- package/dist/endpoint-microservice/shared/schema/plugins/row-created-at.schema.d.ts +4 -0
- package/dist/endpoint-microservice/shared/schema/plugins/row-created-at.schema.js +15 -0
- package/dist/endpoint-microservice/shared/schema/plugins/row-created-at.schema.js.map +1 -0
- package/dist/endpoint-microservice/shared/schema/plugins/row-created-id.schema.d.ts +4 -0
- package/dist/endpoint-microservice/shared/schema/plugins/row-created-id.schema.js +15 -0
- package/dist/endpoint-microservice/shared/schema/plugins/row-created-id.schema.js.map +1 -0
- package/dist/endpoint-microservice/shared/schema/plugins/row-hash.schema.d.ts +4 -0
- package/dist/endpoint-microservice/shared/schema/plugins/row-hash.schema.js +15 -0
- package/dist/endpoint-microservice/shared/schema/plugins/row-hash.schema.js.map +1 -0
- package/dist/endpoint-microservice/shared/schema/plugins/row-id.schema.d.ts +4 -0
- package/dist/endpoint-microservice/shared/schema/plugins/row-id.schema.js +15 -0
- package/dist/endpoint-microservice/shared/schema/plugins/row-id.schema.js.map +1 -0
- package/dist/endpoint-microservice/shared/schema/plugins/row-schema-hash.schema.d.ts +4 -0
- package/dist/endpoint-microservice/shared/schema/plugins/row-schema-hash.schema.js +15 -0
- package/dist/endpoint-microservice/shared/schema/plugins/row-schema-hash.schema.js.map +1 -0
- package/dist/endpoint-microservice/shared/schema/plugins/row-updated-at.schema.d.ts +4 -0
- package/dist/endpoint-microservice/shared/schema/plugins/row-updated-at.schema.js +15 -0
- package/dist/endpoint-microservice/shared/schema/plugins/row-updated-at.schema.js.map +1 -0
- package/dist/endpoint-microservice/shared/schema/plugins/row-version-id.schema.d.ts +4 -0
- package/dist/endpoint-microservice/shared/schema/plugins/row-version-id.schema.js +15 -0
- package/dist/endpoint-microservice/shared/schema/plugins/row-version-id.schema.js.map +1 -0
- package/dist/endpoint-microservice/shared/schema-ids.consts.d.ts +7 -0
- package/dist/endpoint-microservice/shared/schema-ids.consts.js +7 -0
- package/dist/endpoint-microservice/shared/schema-ids.consts.js.map +1 -1
- package/dist/endpoint-microservice/shared/utils/getOffsetPagination.js +1 -2
- package/dist/endpoint-microservice/shared/utils/getOffsetPagination.js.map +1 -1
- package/dist/endpoint-microservice/shared/utils/parseHeaders.d.ts +0 -1
- package/dist/main.js +8 -1
- package/dist/main.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +50 -42
- package/dist/endpoint-microservice/endpoint-listener.controller.js.map +0 -1
@@ -0,0 +1,141 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.createCRUDPaths = exports.createGetByIdPath = exports.createGetListPath = exports.getPaginatedResponseSchema = exports.getPaginationParams = exports.getIdPathParam = void 0;
|
4
|
+
const getIdPathParam = () => ({
|
5
|
+
name: 'id',
|
6
|
+
in: 'path',
|
7
|
+
required: true,
|
8
|
+
schema: { type: 'string' },
|
9
|
+
});
|
10
|
+
exports.getIdPathParam = getIdPathParam;
|
11
|
+
const getPaginationParams = () => [
|
12
|
+
{
|
13
|
+
name: 'first',
|
14
|
+
in: 'query',
|
15
|
+
required: true,
|
16
|
+
schema: { type: 'integer', minimum: 1, default: 100 },
|
17
|
+
},
|
18
|
+
{
|
19
|
+
name: 'after',
|
20
|
+
in: 'query',
|
21
|
+
required: false,
|
22
|
+
schema: { type: 'string' },
|
23
|
+
},
|
24
|
+
];
|
25
|
+
exports.getPaginationParams = getPaginationParams;
|
26
|
+
const getPaginatedResponseSchema = () => ({
|
27
|
+
type: 'object',
|
28
|
+
required: ['edges', 'pageInfo', 'totalCount'],
|
29
|
+
properties: {
|
30
|
+
edges: {
|
31
|
+
type: 'array',
|
32
|
+
items: {
|
33
|
+
type: 'object',
|
34
|
+
required: ['cursor', 'node'],
|
35
|
+
properties: {
|
36
|
+
cursor: { type: 'string' },
|
37
|
+
node: {
|
38
|
+
type: 'object',
|
39
|
+
required: ['id', 'versionId', 'createdAt', 'readonly'],
|
40
|
+
properties: {
|
41
|
+
id: { type: 'string' },
|
42
|
+
versionId: { type: 'string' },
|
43
|
+
createdAt: { type: 'string' },
|
44
|
+
readonly: { type: 'boolean' },
|
45
|
+
},
|
46
|
+
},
|
47
|
+
},
|
48
|
+
},
|
49
|
+
},
|
50
|
+
pageInfo: {
|
51
|
+
type: 'object',
|
52
|
+
required: ['startCursor', 'endCursor', 'hasNextPage', 'hasPreviousPage'],
|
53
|
+
properties: {
|
54
|
+
startCursor: { type: 'string' },
|
55
|
+
endCursor: { type: 'string' },
|
56
|
+
hasNextPage: { type: 'boolean' },
|
57
|
+
hasPreviousPage: { type: 'boolean' },
|
58
|
+
},
|
59
|
+
},
|
60
|
+
totalCount: { type: 'number', minimum: 0 },
|
61
|
+
},
|
62
|
+
});
|
63
|
+
exports.getPaginatedResponseSchema = getPaginatedResponseSchema;
|
64
|
+
const createGetListPath = (schemaId) => ({
|
65
|
+
get: {
|
66
|
+
security: [{ 'access-token': [] }],
|
67
|
+
tags: [schemaId],
|
68
|
+
parameters: (0, exports.getPaginationParams)(),
|
69
|
+
responses: {
|
70
|
+
'200': {
|
71
|
+
content: {
|
72
|
+
'application/json': {
|
73
|
+
schema: (0, exports.getPaginatedResponseSchema)(),
|
74
|
+
},
|
75
|
+
},
|
76
|
+
},
|
77
|
+
},
|
78
|
+
},
|
79
|
+
});
|
80
|
+
exports.createGetListPath = createGetListPath;
|
81
|
+
const createGetByIdPath = (schemaId) => ({
|
82
|
+
get: {
|
83
|
+
security: [{ 'access-token': [] }],
|
84
|
+
tags: [schemaId],
|
85
|
+
parameters: [(0, exports.getIdPathParam)()],
|
86
|
+
responses: {
|
87
|
+
'200': {
|
88
|
+
content: {
|
89
|
+
'application/json': {
|
90
|
+
schema: { $ref: `#/components/schemas/${schemaId}` },
|
91
|
+
},
|
92
|
+
},
|
93
|
+
},
|
94
|
+
},
|
95
|
+
},
|
96
|
+
});
|
97
|
+
exports.createGetByIdPath = createGetByIdPath;
|
98
|
+
const createCRUDPaths = (schemaId) => {
|
99
|
+
const common = {
|
100
|
+
security: [{ 'access-token': [] }],
|
101
|
+
tags: [schemaId],
|
102
|
+
parameters: [(0, exports.getIdPathParam)()],
|
103
|
+
requestBody: {
|
104
|
+
required: true,
|
105
|
+
content: {
|
106
|
+
'application/json': {
|
107
|
+
schema: { $ref: `#/components/schemas/${schemaId}` },
|
108
|
+
},
|
109
|
+
},
|
110
|
+
},
|
111
|
+
responses: {
|
112
|
+
'200': {
|
113
|
+
content: {
|
114
|
+
'application/json': {
|
115
|
+
schema: { $ref: `#/components/schemas/${schemaId}` },
|
116
|
+
},
|
117
|
+
},
|
118
|
+
},
|
119
|
+
},
|
120
|
+
};
|
121
|
+
return {
|
122
|
+
post: common,
|
123
|
+
put: common,
|
124
|
+
delete: {
|
125
|
+
security: [{ 'access-token': [] }],
|
126
|
+
tags: [schemaId],
|
127
|
+
parameters: [(0, exports.getIdPathParam)()],
|
128
|
+
responses: {
|
129
|
+
'200': {
|
130
|
+
content: {
|
131
|
+
'application/json': {
|
132
|
+
schema: { type: 'boolean' },
|
133
|
+
},
|
134
|
+
},
|
135
|
+
},
|
136
|
+
},
|
137
|
+
},
|
138
|
+
};
|
139
|
+
};
|
140
|
+
exports.createCRUDPaths = createCRUDPaths;
|
141
|
+
//# sourceMappingURL=open-api-shema.utils.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"open-api-shema.utils.js","sourceRoot":"","sources":["../../../../../src/endpoint-microservice/restapi/queries/handlers/open-api-shema.utils.ts"],"names":[],"mappings":";;;AAEO,MAAM,cAAc,GAAG,GAA0B,EAAE,CAAC,CAAC;IAC1D,IAAI,EAAE,IAAI;IACV,EAAE,EAAE,MAAM;IACV,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;CAC3B,CAAC,CAAC;AALU,QAAA,cAAc,kBAKxB;AAEI,MAAM,mBAAmB,GAAG,GAA4B,EAAE,CAAC;IAChE;QACE,IAAI,EAAE,OAAO;QACb,EAAE,EAAE,OAAO;QACX,QAAQ,EAAE,IAAI;QACd,MAAM,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE;KACtD;IACD;QACE,IAAI,EAAE,OAAO;QACb,EAAE,EAAE,OAAO;QACX,QAAQ,EAAE,KAAK;QACf,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;KAC3B;CACF,CAAC;AAbW,QAAA,mBAAmB,uBAa9B;AAEK,MAAM,0BAA0B,GAAG,GAAuB,EAAE,CAAC,CAAC;IACnE,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,CAAC,OAAO,EAAE,UAAU,EAAE,YAAY,CAAC;IAC7C,UAAU,EAAE;QACV,KAAK,EAAE;YACL,IAAI,EAAE,OAAO;YACb,KAAK,EAAE;gBACL,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,CAAC;gBAC5B,UAAU,EAAE;oBACV,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;oBAC1B,IAAI,EAAE;wBACJ,IAAI,EAA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K,EAAE;oBACL,OAAO,EAAE;wBACP,kBAAkB,EAAE;4BAClB,MAAM,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;yBAC5B;qBACF;iBACF;aACF;SACF;KACF,CAAC;AACJ,CAAC,CAAC;AA5CW,QAAA,eAAe,mBA4C1B"}
|
@@ -101,9 +101,7 @@ let RestapiEndpointService = RestapiEndpointService_1 = class RestapiEndpointSer
|
|
101
101
|
return responseData.row.data;
|
102
102
|
},
|
103
103
|
getRows: async (headers, tableId, first, after) => {
|
104
|
-
const { data, error } = await this.proxyCoreApi.api.rows({
|
105
|
-
revisionId: revision.id,
|
106
|
-
tableId,
|
104
|
+
const { data, error } = await this.proxyCoreApi.api.rows(revision.id, tableId, {
|
107
105
|
first,
|
108
106
|
after,
|
109
107
|
}, { headers: headers });
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"restapi-endpoint.service.js","sourceRoot":"","sources":["../../../src/endpoint-microservice/restapi/restapi-endpoint.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,2CAAmE;AACnE,uCAAwC;AACxC,qFAAsG;AACtG,+EAAgG;AAChG,mGAA0H;AAC1H,+DAAkF;AAElF,yCAAuF;AAIhF,IAAM,sBAAsB,8BAA5B,MAAM,sBAAsB;IAcjC,YACmB,QAAkB,EAClB,MAAqB,EACrB,eAAuC,EACvC,YAAiC;QAHjC,aAAQ,GAAR,QAAQ,CAAU;QAClB,WAAM,GAAN,MAAM,CAAe;QACrB,oBAAe,GAAf,eAAe,CAAwB;QACvC,iBAAY,GAAZ,YAAY,CAAqB;QAjBnC,WAAM,GAAG,IAAI,eAAM,CAAC,wBAAsB,CAAC,IAAI,CAAC,CAAC;QAEjD,QAAG,GAAG,IAAI,GAAG,EAQ3B,CAAC;QACI,uBAAkB,GAAa,EAAE,CAAC;IAOvC,CAAC;IAEG,qBAAqB,CAC1B,cAAsB,EACtB,WAAmB,EACnB,UAAkB,EAClB,OAAe;QAEf,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CACjB,IAAI,CAAC,MAAM,CAAC,cAAc,EAAE,WAAW,EAAE,UAAU,EAAE,OAAO,CAAC,CAC9D,CAAC;IACJ,CAAC;IAEM,aAAa,CAAC,UAAkB;QACrC,OAAO,IAAI,CAAC,kBAAkB,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;IACtD,CAAC;IAEM,KAAK,CAAC,YAAY,CAAC,UAAkB;QAC1C,IAAI,CAAC,IAAI,CAAC,kBAAkB,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC;YAClD,MAAM,IAAI,KAAK,CAAC,GAAG,UAAU,iBAAiB,CAAC,CAAC;QAClD,CAAC;QAED,MAAM,CAAC,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC,IAAI,
|
1
|
+
{"version":3,"file":"restapi-endpoint.service.js","sourceRoot":"","sources":["../../../src/endpoint-microservice/restapi/restapi-endpoint.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,2CAAmE;AACnE,uCAAwC;AACxC,qFAAsG;AACtG,+EAAgG;AAChG,mGAA0H;AAC1H,+DAAkF;AAElF,yCAAuF;AAIhF,IAAM,sBAAsB,8BAA5B,MAAM,sBAAsB;IAcjC,YACmB,QAAkB,EAClB,MAAqB,EACrB,eAAuC,EACvC,YAAiC;QAHjC,aAAQ,GAAR,QAAQ,CAAU;QAClB,WAAM,GAAN,MAAM,CAAe;QACrB,oBAAe,GAAf,eAAe,CAAwB;QACvC,iBAAY,GAAZ,YAAY,CAAqB;QAjBnC,WAAM,GAAG,IAAI,eAAM,CAAC,wBAAsB,CAAC,IAAI,CAAC,CAAC;QAEjD,QAAG,GAAG,IAAI,GAAG,EAQ3B,CAAC;QACI,uBAAkB,GAAa,EAAE,CAAC;IAOvC,CAAC;IAEG,qBAAqB,CAC1B,cAAsB,EACtB,WAAmB,EACnB,UAAkB,EAClB,OAAe;QAEf,OAAO,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,4BAAqB,CAAC,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC;QAE7C,WAAW,CAAC,IAAI,CAAC,KAAK,GAAG,6BAA6B,cAAc,gBAAgB,WAAW,eAAe,UAAU,IAAI,OAAO,GAAG,CAAC;QACvI,MAAM,GAAG,GAAG,qBAAqB,cAAc,IAAI,WAAW,IAAI,UAAU,IAAI,OAAO,EAAE,CAAC;QAC1F,WAAW,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC;QAElC,OAAO,WAAW,CAAC;IACrB,CAAC;CACF,CAAA;AAxRY,wDAAsB;iCAAtB,sBAAsB;IADlC,IAAA,mBAAU,GAAE;qCAgBkB,eAAQ;QACV,8BAAa;QACJ,kDAAsB;QACzB,4CAAmB;GAlBzC,sBAAsB,CAwRlC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"app-mode.js","sourceRoot":"","sources":["../../../src/endpoint-microservice/shared/app-mode.ts"],"names":[],"mappings":";;;AAAa,QAAA,iBAAiB,GAAG,mBAAmB,CAAC"}
|
@@ -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,
|
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,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,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,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,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,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,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,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,
|
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 =
|
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":[],"mappings":"
|
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"}
|
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;
|
1
|
+
{"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":";;AAAA,2CAA+C;AAC/C,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,EAAE;QAC9C,MAAM,EAAE,IAAI,sBAAa,CAAC;YACxB,IAAI,EAAE,IAAI;YACV,MAAM,EAAE,IAAI;SACb,CAAC;KACH,CAAC,CAAC;IAEH,GAAG,CAAC,UAAU,EAAE,CAAC;IAEjB,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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