@revisium/core 1.0.2 → 1.2.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/package.json +65 -57
- package/dist/prisma/seed/generateSeedApi.js +1 -1
- package/dist/prisma/seed/generateSeedApi.js.map +1 -1
- package/dist/src/__tests__/utils/prepareProject.js +4 -4
- package/dist/src/__tests__/utils/prepareProject.js.map +1 -1
- package/dist/src/__tests__/utils/schema/schema.mocks.d.ts +1 -4
- package/dist/src/__tests__/utils/schema/schema.mocks.js +4 -7
- package/dist/src/__tests__/utils/schema/schema.mocks.js.map +1 -1
- package/dist/src/api/rest-api/revision/dto/create-table.dto.js +1 -1
- package/dist/src/api/rest-api/revision/dto/create-table.dto.js.map +1 -1
- package/dist/src/api/rest-api/row/dto/update-row.dto.js +1 -1
- package/dist/src/api/rest-api/row/dto/update-row.dto.js.map +1 -1
- package/dist/src/api/rest-api/row/model/row.model.js +1 -1
- package/dist/src/api/rest-api/row/model/row.model.js.map +1 -1
- package/dist/src/api/rest-api/share/model/order-by.model.d.ts +13 -0
- package/dist/src/api/rest-api/share/model/order-by.model.js +39 -0
- package/dist/src/api/rest-api/share/model/order-by.model.js.map +1 -0
- package/dist/src/api/rest-api/share/utils/mapToPrismaOrderBy.d.ts +3 -0
- package/dist/src/api/rest-api/share/utils/mapToPrismaOrderBy.js +12 -0
- package/dist/src/api/rest-api/share/utils/mapToPrismaOrderBy.js.map +1 -0
- package/dist/src/api/rest-api/share/validators/is-unique-order-by-fields.validator.d.ts +2 -0
- package/dist/src/api/rest-api/share/validators/is-unique-order-by-fields.validator.js +28 -0
- package/dist/src/api/rest-api/share/validators/is-unique-order-by-fields.validator.js.map +1 -0
- package/dist/src/api/rest-api/table/dto/create-row.dto.js +1 -1
- package/dist/src/api/rest-api/table/dto/create-row.dto.js.map +1 -1
- package/dist/src/api/rest-api/table/dto/get-table-rows.dto.d.ts +2 -0
- package/dist/src/api/rest-api/table/dto/get-table-rows.dto.js +28 -1
- package/dist/src/api/rest-api/table/dto/get-table-rows.dto.js.map +1 -1
- package/dist/src/api/rest-api/table/table-by-id.controller.d.ts +1 -1
- package/dist/src/api/rest-api/table/table-by-id.controller.js +8 -4
- package/dist/src/api/rest-api/table/table-by-id.controller.js.map +1 -1
- package/dist/src/app-mode.d.ts +4 -0
- package/dist/src/app-mode.js +5 -0
- package/dist/src/app-mode.js.map +1 -0
- package/dist/src/app.module.js +1 -1
- package/dist/src/app.module.js.map +1 -1
- package/dist/src/core/app-options.module.d.ts +5 -0
- package/dist/src/core/app-options.module.js +27 -0
- package/dist/src/core/app-options.module.js.map +1 -0
- package/dist/src/core/core.module.d.ts +3 -0
- package/dist/src/core/core.module.js +40 -33
- package/dist/src/core/core.module.js.map +1 -1
- package/dist/src/features/auth/strategy/jwt.strategy.d.ts +3 -1
- package/dist/src/features/draft/commands/handlers/__tests__/utils.js +10 -20
- package/dist/src/features/draft/commands/handlers/__tests__/utils.js.map +1 -1
- package/dist/src/features/draft/commands/handlers/transactional/get-or-create-draft-rows.handler.d.ts +1 -3
- package/dist/src/features/draft/commands/handlers/transactional/get-or-create-draft-rows.handler.js +4 -4
- package/dist/src/features/draft/commands/handlers/transactional/get-or-create-draft-rows.handler.js.map +1 -1
- package/dist/src/features/draft/draft.handler.d.ts +1 -2
- package/dist/src/features/draft/draft.handler.js.map +1 -1
- package/dist/src/features/plugin/index.d.ts +9 -0
- package/dist/src/features/plugin/index.js +22 -0
- package/dist/src/features/plugin/index.js.map +1 -0
- package/dist/src/features/plugin/plugin.list.service.d.ts +8 -1
- package/dist/src/features/plugin/plugin.list.service.js +23 -2
- package/dist/src/features/plugin/plugin.list.service.js.map +1 -1
- package/dist/src/features/plugin/plugin.module.js +3 -3
- package/dist/src/features/plugin/plugin.module.js.map +1 -1
- package/dist/src/features/plugin/row-created-at/row-created-at.plugin.d.ts +11 -0
- package/dist/src/features/plugin/row-created-at/row-created-at.plugin.js +61 -0
- package/dist/src/features/plugin/row-created-at/row-created-at.plugin.js.map +1 -0
- package/dist/src/features/plugin/row-created-id/row-created-id.plugin.d.ts +11 -0
- package/dist/src/features/plugin/row-created-id/row-created-id.plugin.js +61 -0
- package/dist/src/features/plugin/row-created-id/row-created-id.plugin.js.map +1 -0
- package/dist/src/features/plugin/row-hash/row-hash.plugin.d.ts +11 -0
- package/dist/src/features/plugin/row-hash/row-hash.plugin.js +61 -0
- package/dist/src/features/plugin/row-hash/row-hash.plugin.js.map +1 -0
- package/dist/src/features/plugin/row-id/row-id.plugin.d.ts +11 -0
- package/dist/src/features/plugin/row-id/row-id.plugin.js +61 -0
- package/dist/src/features/plugin/row-id/row-id.plugin.js.map +1 -0
- package/dist/src/features/plugin/row-schema-hash/row-schema-hash.plugin.d.ts +11 -0
- package/dist/src/features/plugin/row-schema-hash/row-schema-hash.plugin.js +61 -0
- package/dist/src/features/plugin/row-schema-hash/row-schema-hash.plugin.js.map +1 -0
- package/dist/src/features/plugin/row-updated-at/row-updated-at.plugin.d.ts +11 -0
- package/dist/src/features/plugin/row-updated-at/row-updated-at.plugin.js +61 -0
- package/dist/src/features/plugin/row-updated-at/row-updated-at.plugin.js.map +1 -0
- package/dist/src/features/plugin/row-version-id/row-version-id.plugin.d.ts +11 -0
- package/dist/src/features/plugin/row-version-id/row-version-id.plugin.js +61 -0
- package/dist/src/features/plugin/row-version-id/row-version-id.plugin.js.map +1 -0
- package/dist/src/features/plugin/types.d.ts +4 -4
- package/dist/src/features/project/commands/handlers/__tests__/utils.js +9 -8
- package/dist/src/features/project/commands/handlers/__tests__/utils.js.map +1 -1
- package/dist/src/features/share/json-schema-store.service.js +9 -2
- package/dist/src/features/share/json-schema-store.service.js.map +1 -1
- package/dist/src/features/share/json-schema-validator.service.d.ts +1 -0
- package/dist/src/features/share/json-schema-validator.service.js +24 -2
- package/dist/src/features/share/json-schema-validator.service.js.map +1 -1
- package/dist/src/features/share/schema/meta-schema.d.ts +1 -0
- package/dist/src/features/share/schema/meta-schema.js +45 -19
- package/dist/src/features/share/schema/meta-schema.js.map +1 -1
- package/dist/src/features/share/schema/plugins/index.d.ts +8 -0
- package/dist/src/features/share/schema/plugins/index.js +25 -0
- package/dist/src/features/share/schema/plugins/index.js.map +1 -0
- package/dist/src/features/share/schema/plugins/row-created-at.schema.d.ts +4 -0
- package/dist/src/features/share/schema/plugins/row-created-at.schema.js +15 -0
- package/dist/src/features/share/schema/plugins/row-created-at.schema.js.map +1 -0
- package/dist/src/features/share/schema/plugins/row-created-id.schema.d.ts +4 -0
- package/dist/src/features/share/schema/plugins/row-created-id.schema.js +15 -0
- package/dist/src/features/share/schema/plugins/row-created-id.schema.js.map +1 -0
- package/dist/src/features/share/schema/plugins/row-hash.schema.d.ts +4 -0
- package/dist/src/features/share/schema/plugins/row-hash.schema.js +15 -0
- package/dist/src/features/share/schema/plugins/row-hash.schema.js.map +1 -0
- package/dist/src/features/share/schema/plugins/row-id.schema.d.ts +4 -0
- package/dist/src/features/share/schema/plugins/row-id.schema.js +15 -0
- package/dist/src/features/share/schema/plugins/row-id.schema.js.map +1 -0
- package/dist/src/features/share/schema/plugins/row-schema-hash.schema.d.ts +4 -0
- package/dist/src/features/share/schema/plugins/row-schema-hash.schema.js +15 -0
- package/dist/src/features/share/schema/plugins/row-schema-hash.schema.js.map +1 -0
- package/dist/src/features/share/schema/plugins/row-updated-at.schema.d.ts +4 -0
- package/dist/src/features/share/schema/plugins/row-updated-at.schema.js +15 -0
- package/dist/src/features/share/schema/plugins/row-updated-at.schema.js.map +1 -0
- package/dist/src/features/share/schema/plugins/row-version-id.schema.d.ts +4 -0
- package/dist/src/features/share/schema/plugins/row-version-id.schema.js +15 -0
- package/dist/src/features/share/schema/plugins/row-version-id.schema.js.map +1 -0
- package/dist/src/features/share/schema/shared-fields.d.ts +11 -0
- package/dist/src/features/share/schema/shared-fields.js +15 -0
- package/dist/src/features/share/schema/shared-fields.js.map +1 -0
- package/dist/src/features/share/schema-ids.consts.d.ts +7 -0
- package/dist/src/features/share/schema-ids.consts.js +7 -0
- package/dist/src/features/share/schema-ids.consts.js.map +1 -1
- package/dist/src/features/share/utils/schema/lib/createJsonSchemaStore.d.ts +2 -1
- package/dist/src/features/share/utils/schema/lib/createJsonSchemaStore.js +22 -4
- package/dist/src/features/share/utils/schema/lib/createJsonSchemaStore.js.map +1 -1
- package/dist/src/features/share/utils/schema/model/schema/json-array.store.d.ts +3 -0
- package/dist/src/features/share/utils/schema/model/schema/json-array.store.js +3 -0
- package/dist/src/features/share/utils/schema/model/schema/json-array.store.js.map +1 -1
- package/dist/src/features/share/utils/schema/model/schema/json-boolean.store.d.ts +4 -0
- package/dist/src/features/share/utils/schema/model/schema/json-boolean.store.js +4 -0
- package/dist/src/features/share/utils/schema/model/schema/json-boolean.store.js.map +1 -1
- package/dist/src/features/share/utils/schema/model/schema/json-number.store.d.ts +4 -0
- package/dist/src/features/share/utils/schema/model/schema/json-number.store.js +4 -0
- package/dist/src/features/share/utils/schema/model/schema/json-number.store.js.map +1 -1
- package/dist/src/features/share/utils/schema/model/schema/json-object.store.d.ts +3 -0
- package/dist/src/features/share/utils/schema/model/schema/json-object.store.js +3 -0
- package/dist/src/features/share/utils/schema/model/schema/json-object.store.js.map +1 -1
- package/dist/src/features/share/utils/schema/model/schema/json-string.store.d.ts +8 -0
- package/dist/src/features/share/utils/schema/model/schema/json-string.store.js +12 -5
- package/dist/src/features/share/utils/schema/model/schema/json-string.store.js.map +1 -1
- package/dist/src/features/share/utils/schema/types/schema.types.d.ts +20 -0
- package/dist/src/features/table/queries/handlers/get-rows-by-table.handler.js +8 -9
- package/dist/src/features/table/queries/handlers/get-rows-by-table.handler.js.map +1 -1
- package/dist/src/features/table/queries/impl/get-rows-by-table.query.d.ts +3 -0
- package/dist/src/features/table/queries/impl/get-rows-by-table.query.js.map +1 -1
- package/dist/src/index.d.ts +0 -1
- package/dist/src/index.js +1 -3
- package/dist/src/index.js.map +1 -1
- package/dist/src/infrastructure/health/database.check.d.ts +1 -1
- package/dist/src/infrastructure/health/notification.check.d.ts +1 -1
- package/dist/src/infrastructure/notification/endpoint-notification.service.d.ts +2 -2
- package/dist/src/infrastructure/notification/endpoint-notification.service.js +1 -2
- package/dist/src/infrastructure/notification/endpoint-notification.service.js.map +1 -1
- package/dist/src/infrastructure/notification/in-memory-notification-client.d.ts +7 -0
- package/dist/src/infrastructure/notification/in-memory-notification-client.js +13 -0
- package/dist/src/infrastructure/notification/in-memory-notification-client.js.map +1 -0
- package/dist/src/infrastructure/notification/notification-client.interface.d.ts +3 -0
- package/dist/src/infrastructure/notification/notification-client.interface.js +3 -0
- package/dist/src/infrastructure/notification/notification-client.interface.js.map +1 -0
- package/dist/src/infrastructure/notification/notification.module.js +13 -20
- package/dist/src/infrastructure/notification/notification.module.js.map +1 -1
- package/dist/src/infrastructure/notification/redis-notification-client.d.ts +7 -0
- package/dist/src/infrastructure/notification/redis-notification-client.js +13 -0
- package/dist/src/infrastructure/notification/redis-notification-client.js.map +1 -0
- package/dist/src/main.js +7 -1
- package/dist/src/main.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +65 -57
- package/dist/src/infrastructure/notification/in-memory-client.d.ts +0 -10
- package/dist/src/infrastructure/notification/in-memory-client.js +0 -24
- package/dist/src/infrastructure/notification/in-memory-client.js.map +0 -1
- package/dist/src/infrastructure/notification/in-memory-server.d.ts +0 -6
- package/dist/src/infrastructure/notification/in-memory-server.js +0 -19
- package/dist/src/infrastructure/notification/in-memory-server.js.map +0 -1
- package/dist/src/infrastructure/notification/notification-event-emitter.d.ts +0 -2
- package/dist/src/infrastructure/notification/notification-event-emitter.js +0 -6
- package/dist/src/infrastructure/notification/notification-event-emitter.js.map +0 -1
|
@@ -12,13 +12,20 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.JsonSchemaStoreService = void 0;
|
|
13
13
|
const common_1 = require("@nestjs/common");
|
|
14
14
|
const schema_ids_consts_1 = require("./schema-ids.consts");
|
|
15
|
-
const
|
|
15
|
+
const plugins_1 = require("./schema/plugins");
|
|
16
16
|
const createJsonSchemaStore_1 = require("./utils/schema/lib/createJsonSchemaStore");
|
|
17
17
|
const getInvalidFieldNamesInSchema_1 = require("./utils/schema/lib/getInvalidFieldNamesInSchema");
|
|
18
18
|
let JsonSchemaStoreService = class JsonSchemaStoreService {
|
|
19
19
|
constructor() {
|
|
20
20
|
this.refs = {
|
|
21
|
-
[schema_ids_consts_1.SystemSchemaIds.
|
|
21
|
+
[schema_ids_consts_1.SystemSchemaIds.RowId]: plugins_1.rowIdSchema,
|
|
22
|
+
[schema_ids_consts_1.SystemSchemaIds.RowCreatedId]: plugins_1.rowCreatedIdSchema,
|
|
23
|
+
[schema_ids_consts_1.SystemSchemaIds.RowVersionId]: plugins_1.rowVersionIdSchema,
|
|
24
|
+
[schema_ids_consts_1.SystemSchemaIds.RowCreatedAt]: plugins_1.rowCreatedAtSchema,
|
|
25
|
+
[schema_ids_consts_1.SystemSchemaIds.RowUpdatedAt]: plugins_1.rowUpdatedAtSchema,
|
|
26
|
+
[schema_ids_consts_1.SystemSchemaIds.RowHash]: plugins_1.rowHashSchema,
|
|
27
|
+
[schema_ids_consts_1.SystemSchemaIds.RowSchemaHash]: plugins_1.rowSchemaHashSchema,
|
|
28
|
+
[schema_ids_consts_1.SystemSchemaIds.File]: plugins_1.fileSchema,
|
|
22
29
|
};
|
|
23
30
|
}
|
|
24
31
|
create(schema) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"json-schema-store.service.js","sourceRoot":"","sources":["../../../../src/features/share/json-schema-store.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,2DAAuE;AACvE,
|
|
1
|
+
{"version":3,"file":"json-schema-store.service.js","sourceRoot":"","sources":["../../../../src/features/share/json-schema-store.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,2DAAuE;AACvE,8CAS2C;AAC3C,oFAAkG;AAClG,kGAAgH;AAIzG,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;IAYjC;QAXgB,SAAI,GAAyC;YAC3D,CAAC,mCAAe,CAAC,KAAK,CAAC,EAAE,qBAAW;YACpC,CAAC,mCAAe,CAAC,YAAY,CAAC,EAAE,4BAAkB;YAClD,CAAC,mCAAe,CAAC,YAAY,CAAC,EAAE,4BAAkB;YAClD,CAAC,mCAAe,CAAC,YAAY,CAAC,EAAE,4BAAkB;YAClD,CAAC,mCAAe,CAAC,YAAY,CAAC,EAAE,4BAAkB;YAClD,CAAC,mCAAe,CAAC,OAAO,CAAC,EAAE,uBAAa;YACxC,CAAC,mCAAe,CAAC,aAAa,CAAC,EAAE,6BAAmB;YACpD,CAAC,mCAAe,CAAC,IAAI,CAAC,EAAE,oBAAU;SACnC,CAAC;IAEa,CAAC;IAET,MAAM,CAAC,MAAkB;QAC9B,OAAO,IAAA,6CAAqB,EAAC,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;IAClD,CAAC;IAEM,4BAA4B,CAAC,MAAkB;QACpD,OAAO,IAAA,2DAA4B,EAAC,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;IACzD,CAAC;CACF,CAAA;AArBY,wDAAsB;iCAAtB,sBAAsB;IADlC,IAAA,mBAAU,GAAE;;GACA,sBAAsB,CAqBlC"}
|
|
@@ -27,4 +27,5 @@ export declare class JsonSchemaValidatorService {
|
|
|
27
27
|
}>;
|
|
28
28
|
getSchemaHash(schema: Schema | Prisma.InputJsonValue): string;
|
|
29
29
|
getOrAddValidateFunction(schema: Schema | Prisma.InputJsonValue, schemaHash: string): Promise<ValidateFunction>;
|
|
30
|
+
private compilePluginSchemas;
|
|
30
31
|
}
|
|
@@ -21,7 +21,7 @@ const consts_1 = require("./schema/consts");
|
|
|
21
21
|
const history_patches_schema_1 = require("./schema/history-patches-schema");
|
|
22
22
|
const json_patch_schema_1 = require("./schema/json-patch-schema");
|
|
23
23
|
const meta_schema_1 = require("./schema/meta-schema");
|
|
24
|
-
const
|
|
24
|
+
const plugins_1 = require("./schema/plugins");
|
|
25
25
|
const DEFAULT_TIME_EXPIRATION = 24 * 60 * 60 * 1000;
|
|
26
26
|
let JsonSchemaValidatorService = class JsonSchemaValidatorService {
|
|
27
27
|
constructor(cacheManager) {
|
|
@@ -31,7 +31,19 @@ let JsonSchemaValidatorService = class JsonSchemaValidatorService {
|
|
|
31
31
|
keyword: consts_1.CustomSchemeKeywords.ForeignKey,
|
|
32
32
|
type: 'string',
|
|
33
33
|
});
|
|
34
|
-
this.ajv.
|
|
34
|
+
this.ajv.addFormat('regex', {
|
|
35
|
+
type: 'string',
|
|
36
|
+
validate: (str) => {
|
|
37
|
+
try {
|
|
38
|
+
new RegExp(str);
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
catch {
|
|
42
|
+
return false;
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
});
|
|
46
|
+
this.compilePluginSchemas();
|
|
35
47
|
this.metaSchemaValidateFunction = this.ajv.compile(meta_schema_1.metaSchema);
|
|
36
48
|
this.jsonPatchSchemaValidateFunction = this.ajv.compile(json_patch_schema_1.jsonPatchSchema);
|
|
37
49
|
this.historyPatchesSchemaValidate = this.ajv.compile(history_patches_schema_1.historyPatchesSchema);
|
|
@@ -78,6 +90,16 @@ let JsonSchemaValidatorService = class JsonSchemaValidatorService {
|
|
|
78
90
|
}
|
|
79
91
|
return cachedValidateFunction;
|
|
80
92
|
}
|
|
93
|
+
compilePluginSchemas() {
|
|
94
|
+
this.ajv.compile(plugins_1.ajvRowIdSchema);
|
|
95
|
+
this.ajv.compile(plugins_1.ajvRowCreatedIdSchema);
|
|
96
|
+
this.ajv.compile(plugins_1.ajvRowVersionIdSchema);
|
|
97
|
+
this.ajv.compile(plugins_1.ajvRowCreatedAtSchema);
|
|
98
|
+
this.ajv.compile(plugins_1.ajvRowUpdatedAtSchema);
|
|
99
|
+
this.ajv.compile(plugins_1.ajvRowHashSchema);
|
|
100
|
+
this.ajv.compile(plugins_1.ajvRowSchemaHashSchema);
|
|
101
|
+
this.ajv.compile(plugins_1.ajvFileSchema);
|
|
102
|
+
}
|
|
81
103
|
};
|
|
82
104
|
exports.JsonSchemaValidatorService = JsonSchemaValidatorService;
|
|
83
105
|
exports.JsonSchemaValidatorService = JsonSchemaValidatorService = __decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"json-schema-validator.service.js","sourceRoot":"","sources":["../../../../src/features/share/json-schema-validator.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,yDAA6D;AAC7D,2CAAoD;AAEpD,yCAA2E;AAC3E,oCAAoC;AACpC,4CAAwE;AACxE,4EAAwF;AACxF,kEAA8E;AAC9E,sDAAmE;AACnE,
|
|
1
|
+
{"version":3,"file":"json-schema-validator.service.js","sourceRoot":"","sources":["../../../../src/features/share/json-schema-validator.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,yDAA6D;AAC7D,2CAAoD;AAEpD,yCAA2E;AAC3E,oCAAoC;AACpC,4CAAwE;AACxE,4EAAwF;AACxF,kEAA8E;AAC9E,sDAAmE;AACnE,8CAS2C;AAE3C,MAAM,uBAAuB,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;AAG7C,IAAM,0BAA0B,GAAhC,MAAM,0BAA0B;IASrC,YAAmC,YAAoC;QAAnB,iBAAY,GAAZ,YAAY,CAAO;QANtD,QAAG,GAAG,IAAI,eAAG,EAAE,CAAC;QAO/B,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC;YAClB,OAAO,EAAE,6BAAoB,CAAC,UAAU;YACxC,IAAI,EAAE,QAAQ;SACf,CAAC,CAAC;QACH,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,OAAO,EAAE;YAC1B,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,CAAC,GAAW,EAAE,EAAE;gBACxB,IAAI,CAAC;oBACH,IAAI,MAAM,CAAC,GAAG,CAAC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0BAA0B;IADtC,IAAA,mBAAU,GAAE;IAUE,WAAA,IAAA,eAAM,EAAC,6BAAa,CAAC,CAAA;qCAAgC,qBAAK;GAT5D,0BAA0B,CA6GtC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Schema } from 'ajv/dist/2020';
|
|
2
2
|
export declare const refMetaSchema: Schema;
|
|
3
|
+
export declare const baseStringFields: Schema;
|
|
3
4
|
export declare const stringMetaSchema: Schema;
|
|
4
5
|
export declare const noForeignKeyStringMetaSchema: Schema;
|
|
5
6
|
export declare const numberMetaSchema: Schema;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.notForeignKeyMetaSchema = exports.metaSchema = exports.arrayMetaSchema = exports.objectMetaSchema = exports.booleanMetaSchema = exports.numberMetaSchema = exports.noForeignKeyStringMetaSchema = exports.stringMetaSchema = exports.refMetaSchema = void 0;
|
|
3
|
+
exports.notForeignKeyMetaSchema = exports.metaSchema = exports.arrayMetaSchema = exports.objectMetaSchema = exports.booleanMetaSchema = exports.numberMetaSchema = exports.noForeignKeyStringMetaSchema = exports.stringMetaSchema = exports.baseStringFields = exports.refMetaSchema = void 0;
|
|
4
|
+
const shared_fields_1 = require("./shared-fields");
|
|
4
5
|
exports.refMetaSchema = {
|
|
5
6
|
type: 'object',
|
|
6
7
|
properties: {
|
|
@@ -11,21 +12,50 @@ exports.refMetaSchema = {
|
|
|
11
12
|
additionalProperties: false,
|
|
12
13
|
required: ['$ref'],
|
|
13
14
|
};
|
|
15
|
+
exports.baseStringFields = {
|
|
16
|
+
type: {
|
|
17
|
+
const: 'string',
|
|
18
|
+
},
|
|
19
|
+
default: {
|
|
20
|
+
type: 'string',
|
|
21
|
+
},
|
|
22
|
+
readOnly: {
|
|
23
|
+
type: 'boolean',
|
|
24
|
+
},
|
|
25
|
+
pattern: {
|
|
26
|
+
type: 'string',
|
|
27
|
+
format: 'regex',
|
|
28
|
+
},
|
|
29
|
+
enum: {
|
|
30
|
+
type: 'array',
|
|
31
|
+
items: { type: 'string' },
|
|
32
|
+
minItems: 1,
|
|
33
|
+
uniqueItems: true,
|
|
34
|
+
},
|
|
35
|
+
format: {
|
|
36
|
+
type: 'string',
|
|
37
|
+
enum: ['date-time', 'date', 'time', 'email', 'regex'],
|
|
38
|
+
},
|
|
39
|
+
contentMediaType: {
|
|
40
|
+
type: 'string',
|
|
41
|
+
enum: [
|
|
42
|
+
'text/plain',
|
|
43
|
+
'text/markdown',
|
|
44
|
+
'text/html',
|
|
45
|
+
'application/json',
|
|
46
|
+
'application/schema+json',
|
|
47
|
+
'application/yaml',
|
|
48
|
+
],
|
|
49
|
+
},
|
|
50
|
+
...shared_fields_1.sharedFields,
|
|
51
|
+
};
|
|
14
52
|
exports.stringMetaSchema = {
|
|
15
53
|
type: 'object',
|
|
16
54
|
properties: {
|
|
17
|
-
|
|
18
|
-
const: 'string',
|
|
19
|
-
},
|
|
20
|
-
default: {
|
|
21
|
-
type: 'string',
|
|
22
|
-
},
|
|
55
|
+
...exports.baseStringFields,
|
|
23
56
|
foreignKey: {
|
|
24
57
|
type: 'string',
|
|
25
58
|
},
|
|
26
|
-
readOnly: {
|
|
27
|
-
type: 'boolean',
|
|
28
|
-
},
|
|
29
59
|
},
|
|
30
60
|
additionalProperties: false,
|
|
31
61
|
required: ['type', 'default'],
|
|
@@ -33,15 +63,7 @@ exports.stringMetaSchema = {
|
|
|
33
63
|
exports.noForeignKeyStringMetaSchema = {
|
|
34
64
|
type: 'object',
|
|
35
65
|
properties: {
|
|
36
|
-
|
|
37
|
-
const: 'string',
|
|
38
|
-
},
|
|
39
|
-
default: {
|
|
40
|
-
type: 'string',
|
|
41
|
-
},
|
|
42
|
-
readOnly: {
|
|
43
|
-
type: 'boolean',
|
|
44
|
-
},
|
|
66
|
+
...exports.baseStringFields,
|
|
45
67
|
},
|
|
46
68
|
additionalProperties: false,
|
|
47
69
|
required: ['type', 'default'],
|
|
@@ -58,6 +80,7 @@ exports.numberMetaSchema = {
|
|
|
58
80
|
readOnly: {
|
|
59
81
|
type: 'boolean',
|
|
60
82
|
},
|
|
83
|
+
...shared_fields_1.sharedFields,
|
|
61
84
|
},
|
|
62
85
|
additionalProperties: false,
|
|
63
86
|
required: ['type', 'default'],
|
|
@@ -74,6 +97,7 @@ exports.booleanMetaSchema = {
|
|
|
74
97
|
readOnly: {
|
|
75
98
|
type: 'boolean',
|
|
76
99
|
},
|
|
100
|
+
...shared_fields_1.sharedFields,
|
|
77
101
|
},
|
|
78
102
|
additionalProperties: false,
|
|
79
103
|
required: ['type', 'default'],
|
|
@@ -84,6 +108,7 @@ exports.objectMetaSchema = {
|
|
|
84
108
|
type: {
|
|
85
109
|
const: 'object',
|
|
86
110
|
},
|
|
111
|
+
...shared_fields_1.sharedFields,
|
|
87
112
|
properties: {
|
|
88
113
|
type: 'object',
|
|
89
114
|
additionalProperties: { $dynamicRef: '#meta' },
|
|
@@ -101,6 +126,7 @@ exports.arrayMetaSchema = {
|
|
|
101
126
|
type: {
|
|
102
127
|
const: 'array',
|
|
103
128
|
},
|
|
129
|
+
...shared_fields_1.sharedFields,
|
|
104
130
|
items: {
|
|
105
131
|
oneOf: [
|
|
106
132
|
{ $ref: '#/$defs/refSchema' },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta-schema.js","sourceRoot":"","sources":["../../../../../src/features/share/schema/meta-schema.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"meta-schema.js","sourceRoot":"","sources":["../../../../../src/features/share/schema/meta-schema.ts"],"names":[],"mappings":";;;AACA,mDAAuE;AAI1D,QAAA,aAAa,GAAW;IACnC,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;IACD,oBAAoB,EAAE,KAAK;IAC3B,QAAQ,EAAE,CAAC,MAAM,CAAC;CACnB,CAAC;AAEW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sB,EAAE;QAChC,EAAE,IAAI,EAAE,uBAAuB,EAAE;KAClC;IACD,KAAK,EAAE;QACL,WAAW,EAAE;YACX,IAAI,EAAE,OAAO;YACb,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YACzB,WAAW,EAAE,IAAI;YACjB,OAAO,EAAE,EAAE;SACZ;QACD,SAAS,EAAE,qBAAa;QACxB,YAAY,EAAE,wBAAgB;QAC9B,YAAY,EAAE,oCAA4B;QAC1C,YAAY,EAAE,wBAAgB;QAC9B,aAAa,EAAE,yBAAiB;QAChC,WAAW,EAAE,uBAAe;KAC7B;CACF,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
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';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
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);
|
|
25
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/features/share/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("../../utils/schema/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/features/share/schema/plugins/row-created-at.schema.ts"],"names":[],"mappings":";;;AACA,+DAAuE;AACvE,wEAG4D;AAE/C,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("../../utils/schema/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/features/share/schema/plugins/row-created-id.schema.ts"],"names":[],"mappings":";;;AACA,+DAAuE;AACvE,wEAG4D;AAE/C,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("../../utils/schema/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/features/share/schema/plugins/row-hash.schema.ts"],"names":[],"mappings":";;;AACA,+DAAuE;AACvE,wEAG4D;AAE/C,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("../../utils/schema/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/features/share/schema/plugins/row-id.schema.ts"],"names":[],"mappings":";;;AACA,+DAAuE;AACvE,wEAG4D;AAE/C,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("../../utils/schema/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/features/share/schema/plugins/row-schema-hash.schema.ts"],"names":[],"mappings":";;;AACA,+DAAuE;AACvE,wEAG4D;AAE/C,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("../../utils/schema/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/features/share/schema/plugins/row-updated-at.schema.ts"],"names":[],"mappings":";;;AACA,+DAAuE;AACvE,wEAG4D;AAE/C,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("../../utils/schema/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/features/share/schema/plugins/row-version-id.schema.ts"],"names":[],"mappings":";;;AACA,+DAAuE;AACvE,wEAG4D;AAE/C,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.sharedFields = void 0;
|
|
4
|
+
exports.sharedFields = {
|
|
5
|
+
deprecated: {
|
|
6
|
+
type: 'boolean',
|
|
7
|
+
},
|
|
8
|
+
title: {
|
|
9
|
+
type: 'string',
|
|
10
|
+
},
|
|
11
|
+
description: {
|
|
12
|
+
type: 'string',
|
|
13
|
+
},
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=shared-fields.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shared-fields.js","sourceRoot":"","sources":["../../../../../src/features/share/schema/shared-fields.ts"],"names":[],"mappings":";;;AAAa,QAAA,YAAY,GAAG;IAC1B,UAAU,EAAE;QACV,IAAI,EAAE,SAAS;KAChB;IACD,KAAK,EAAE;QACL,IAAI,EAAE,QAAQ;KACf;IACD,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;KACf;CACF,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/features/share/schema-ids.consts.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
|
1
|
+
{"version":3,"file":"schema-ids.consts.js","sourceRoot":"","sources":["../../../../src/features/share/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,7 +1,8 @@
|
|
|
1
1
|
import { JsonObjectStore } from '../../../../../features/share/utils/schema/model/schema/json-object.store';
|
|
2
2
|
import { JsonSchemaStore, JsonSchemaStorePrimitives } from '../../../../../features/share/utils/schema/model/schema/json-schema.store';
|
|
3
|
-
import { JsonObjectSchema, JsonSchema, JsonSchemaPrimitives } from '../../../../../features/share/utils/schema/types/schema.types';
|
|
3
|
+
import { JsonObjectSchema, JsonSchema, JsonSchemaPrimitives, JsonSchemaWithoutRef } from '../../../../../features/share/utils/schema/types/schema.types';
|
|
4
4
|
export type RefsType = Record<string, JsonSchema>;
|
|
5
5
|
export declare const createJsonSchemaStore: (schema: JsonSchema, refs?: RefsType) => JsonSchemaStore;
|
|
6
6
|
export declare const createJsonObjectSchemaStore: (value: JsonObjectSchema, refs: RefsType) => JsonObjectStore;
|
|
7
7
|
export declare const createPrimitiveStoreBySchema: (schema: JsonSchemaPrimitives) => JsonSchemaStorePrimitives;
|
|
8
|
+
export declare const saveSharedFields: (store: JsonSchemaStore, schema: JsonSchemaWithoutRef) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createPrimitiveStoreBySchema = exports.createJsonObjectSchemaStore = exports.createJsonSchemaStore = void 0;
|
|
3
|
+
exports.saveSharedFields = exports.createPrimitiveStoreBySchema = exports.createJsonObjectSchemaStore = exports.createJsonSchemaStore = void 0;
|
|
4
4
|
const json_array_store_1 = require("../model/schema/json-array.store");
|
|
5
5
|
const json_boolean_store_1 = require("../model/schema/json-boolean.store");
|
|
6
6
|
const json_number_store_1 = require("../model/schema/json-number.store");
|
|
@@ -18,13 +18,21 @@ const createJsonSchemaStore = (schema, refs = {}) => {
|
|
|
18
18
|
return refStore;
|
|
19
19
|
}
|
|
20
20
|
else if (schema.type === schema_types_1.JsonSchemaTypeName.Object) {
|
|
21
|
-
|
|
21
|
+
const objectStore = (0, exports.createJsonObjectSchemaStore)(schema, refs);
|
|
22
|
+
(0, exports.saveSharedFields)(objectStore, schema);
|
|
23
|
+
return objectStore;
|
|
22
24
|
}
|
|
23
25
|
else if (schema.type === schema_types_1.JsonSchemaTypeName.Array) {
|
|
24
|
-
|
|
26
|
+
const itemsStore = (0, exports.createJsonSchemaStore)(schema.items, refs);
|
|
27
|
+
const arrayStore = new json_array_store_1.JsonArrayStore(itemsStore);
|
|
28
|
+
(0, exports.saveSharedFields)(arrayStore, schema);
|
|
29
|
+
return arrayStore;
|
|
25
30
|
}
|
|
26
31
|
else {
|
|
27
|
-
|
|
32
|
+
const primitivesStore = (0, exports.createPrimitiveStoreBySchema)(schema);
|
|
33
|
+
(0, exports.saveSharedFields)(primitivesStore, schema);
|
|
34
|
+
primitivesStore.readOnly = schema.readOnly;
|
|
35
|
+
return primitivesStore;
|
|
28
36
|
}
|
|
29
37
|
};
|
|
30
38
|
exports.createJsonSchemaStore = createJsonSchemaStore;
|
|
@@ -45,6 +53,10 @@ const createPrimitiveStoreBySchema = (schema) => {
|
|
|
45
53
|
if (schema.type === schema_types_1.JsonSchemaTypeName.String) {
|
|
46
54
|
const stringStore = new json_string_store_1.JsonStringStore();
|
|
47
55
|
stringStore.foreignKey = schema.foreignKey;
|
|
56
|
+
stringStore.format = schema.format;
|
|
57
|
+
stringStore.enum = schema.enum;
|
|
58
|
+
stringStore.contentMediaType = schema.contentMediaType;
|
|
59
|
+
stringStore.pattern = schema.pattern;
|
|
48
60
|
return stringStore;
|
|
49
61
|
}
|
|
50
62
|
else if (schema.type === schema_types_1.JsonSchemaTypeName.Number) {
|
|
@@ -58,4 +70,10 @@ const createPrimitiveStoreBySchema = (schema) => {
|
|
|
58
70
|
}
|
|
59
71
|
};
|
|
60
72
|
exports.createPrimitiveStoreBySchema = createPrimitiveStoreBySchema;
|
|
73
|
+
const saveSharedFields = (store, schema) => {
|
|
74
|
+
store.title = schema.title;
|
|
75
|
+
store.description = schema.description;
|
|
76
|
+
store.deprecated = schema.deprecated;
|
|
77
|
+
};
|
|
78
|
+
exports.saveSharedFields = saveSharedFields;
|
|
61
79
|
//# sourceMappingURL=createJsonSchemaStore.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createJsonSchemaStore.js","sourceRoot":"","sources":["../../../../../../../src/features/share/utils/schema/lib/createJsonSchemaStore.ts"],"names":[],"mappings":";;;AAAA,uEAA+F;AAC/F,2EAAmG;AACnG,yEAAiG;AACjG,yEAAiG;AAKjG,yEAAiG;AACjG,
|
|
1
|
+
{"version":3,"file":"createJsonSchemaStore.js","sourceRoot":"","sources":["../../../../../../../src/features/share/utils/schema/lib/createJsonSchemaStore.ts"],"names":[],"mappings":";;;AAAA,uEAA+F;AAC/F,2EAAmG;AACnG,yEAAiG;AACjG,yEAAiG;AAKjG,yEAAiG;AACjG,wDAM4D;AAIrD,MAAM,qBAAqB,GAAG,CACnC,MAAkB,EAClB,OAAiB,EAAE,EACF,EAAE;IACnB,IAAI,MAAM,IAAI,MAAM,EAAE,CAAC;QACrB,MAAM,SAAS,GAA2B,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QAE5D,IAAI,CAAC,SAAS,EAAE,CAAC;YACf,MAAM,IAAI,KAAK,CAAC,8BAA8B,MAAM,CAAC,IAAI,GAAG,CAAC,CAAC;QAChE,CAAC;QAED,MAAM,QAAQ,GAAG,IAAA,6BAAqB,EAAC,SAAS,EAAE,IAAI,CAAC,CAAC;QACxD,QAAQ,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;QAC5B,OAAO,QAAQ,CAAC;IAClB,CAAC;SAAM,IAAI,MAAM,CAAC,IAAI,KAAK,iCAAkB,CAAC,MAAM,EAAE,CAAC;QACrD,MAAM,WAAW,GAAG,IAAA,mCAA2B,EAAC,MAAM,EAAE,IAAI,CAAC,CAAC;QAC9D,IAAA,wBAAgB,EAAC,WAAW,EAAE,MAAM,CAAC,CAAC;QAEtC,OAAO,WAAW,CAAC;IACrB,CAAC;SAAM,IAAI,MAAM,CAAC,IAAI,KAAK,iCAAkB,CAAC,KAAK,EAAE,CAAC;QACpD,MAAM,UAAU,GAAG,IAAA,6BAAqB,EAAC,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;QAC7D,MAAM,UAAU,GAAG,IAAI,iCAAc,CAAC,UAAU,CAAC,CAAC;QAClD,IAAA,wBAAgB,EAAC,UAAU,EAAE,MAAM,CAAC,CAAC;QAErC,OAAO,UAAU,CAAC;IACpB,CAAC;SAAM,CAAC;QACN,MAAM,eAAe,GA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