@redocly/revel-reef 0.124.0-next.16 → 0.124.0-next.18
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/CHANGELOG.md +38 -0
- package/dist/.tsbuildinfo +1 -1
- package/dist/cli/develop.d.ts.map +1 -1
- package/dist/cli/develop.js +1 -1
- package/dist/cli/develop.js.map +1 -1
- package/dist/cli/prepare/copy-migrations.d.ts +6 -0
- package/dist/cli/prepare/copy-migrations.d.ts.map +1 -0
- package/dist/cli/prepare/copy-migrations.js +1 -0
- package/dist/cli/prepare/copy-migrations.js.map +1 -0
- package/dist/cli/prepare/index.d.ts.map +1 -1
- package/dist/cli/prepare/index.js +1 -1
- package/dist/cli/prepare/index.js.map +1 -1
- package/dist/cli/translations/update-translations.d.ts.map +1 -1
- package/dist/cli/translations/update-translations.js +1 -1
- package/dist/cli/translations/update-translations.js.map +1 -1
- package/dist/client/app/hooks/catalog/useCatalogFilter.d.ts.map +1 -1
- package/dist/client/app/hooks/catalog/useCatalogFilter.js +1 -1
- package/dist/client/app/hooks/catalog/useCatalogFilter.js.map +1 -1
- package/dist/client/app/hooks/catalog/useFetchCatalogEntities.d.ts.map +1 -1
- package/dist/client/app/hooks/catalog/useFetchCatalogEntities.js +1 -1
- package/dist/client/app/hooks/catalog/useFetchCatalogEntities.js.map +1 -1
- package/dist/client/app/hooks/codeHighlight/map-lang.d.ts.map +1 -1
- package/dist/client/app/hooks/codeHighlight/map-lang.js +1 -1
- package/dist/client/app/hooks/codeHighlight/map-lang.js.map +1 -1
- package/dist/client/app/hooks/codeHighlight/ruby.d.ts +3 -0
- package/dist/client/app/hooks/codeHighlight/ruby.d.ts.map +1 -0
- package/dist/client/app/hooks/codeHighlight/ruby.js +1 -0
- package/dist/client/app/hooks/codeHighlight/ruby.js.map +1 -0
- package/dist/client/app/hooks/codeHighlight/useCodeHighlight.d.ts.map +1 -1
- package/dist/client/app/hooks/codeHighlight/useCodeHighlight.js +1 -1
- package/dist/client/app/hooks/codeHighlight/useCodeHighlight.js.map +1 -1
- package/dist/client/app/l10n/index.d.ts +1 -1
- package/dist/client/app/l10n/index.d.ts.map +1 -1
- package/dist/client/app/l10n/index.js +1 -1
- package/dist/client/app/l10n/index.js.map +1 -1
- package/dist/client/utils/catalog/format-filter-query.d.ts.map +1 -1
- package/dist/client/utils/catalog/format-filter-query.js +1 -1
- package/dist/client/utils/catalog/format-filter-query.js.map +1 -1
- package/dist/server/constants/plugins/catalog-entities.d.ts.map +1 -1
- package/dist/server/constants/plugins/catalog-entities.js +1 -1
- package/dist/server/constants/plugins/catalog-entities.js.map +1 -1
- package/dist/server/plugins/api-functions/api-functions-handler-runner.d.ts.map +1 -1
- package/dist/server/plugins/api-functions/api-functions-handler-runner.js +1 -1
- package/dist/server/plugins/api-functions/api-functions-handler-runner.js.map +1 -1
- package/dist/server/plugins/catalog-entities/databases/catalog-entities-service.d.ts +16 -13
- package/dist/server/plugins/catalog-entities/databases/catalog-entities-service.d.ts.map +1 -1
- package/dist/server/plugins/catalog-entities/databases/catalog-entities-service.js +1 -1
- package/dist/server/plugins/catalog-entities/databases/catalog-entities-service.js.map +1 -1
- package/dist/server/plugins/catalog-entities/databases/database/client.d.ts +4 -11
- package/dist/server/plugins/catalog-entities/databases/database/client.d.ts.map +1 -1
- package/dist/server/plugins/catalog-entities/databases/database/client.js +1 -1
- package/dist/server/plugins/catalog-entities/databases/database/client.js.map +1 -1
- package/dist/server/plugins/catalog-entities/databases/database/migrations/0000_initilize-entities-catalog.sql +43 -0
- package/dist/server/plugins/catalog-entities/databases/database/migrations/meta/0000_snapshot.json +286 -0
- package/dist/server/plugins/catalog-entities/databases/database/migrations/meta/_journal.json +13 -0
- package/dist/server/plugins/catalog-entities/databases/database-path-generator.d.ts +49 -0
- package/dist/server/plugins/catalog-entities/databases/database-path-generator.d.ts.map +1 -0
- package/dist/server/plugins/catalog-entities/databases/database-path-generator.js +1 -0
- package/dist/server/plugins/catalog-entities/databases/database-path-generator.js.map +1 -0
- package/dist/server/plugins/catalog-entities/databases/mappers/create-bff-entity.d.ts.map +1 -1
- package/dist/server/plugins/catalog-entities/databases/mappers/create-bff-entity.js +1 -1
- package/dist/server/plugins/catalog-entities/databases/mappers/create-bff-entity.js.map +1 -1
- package/dist/server/plugins/catalog-entities/databases/mappers/create-bff-related-entity.d.ts.map +1 -1
- package/dist/server/plugins/catalog-entities/databases/mappers/create-bff-related-entity.js +1 -1
- package/dist/server/plugins/catalog-entities/databases/mappers/create-bff-related-entity.js.map +1 -1
- package/dist/server/plugins/catalog-entities/databases/mappers/create-entity-db-record.d.ts +2 -2
- package/dist/server/plugins/catalog-entities/databases/mappers/create-entity-db-record.d.ts.map +1 -1
- package/dist/server/plugins/catalog-entities/databases/mappers/create-entity-db-record.js +1 -1
- package/dist/server/plugins/catalog-entities/databases/mappers/create-entity-db-record.js.map +1 -1
- package/dist/server/plugins/catalog-entities/databases/mappers/create-entity-read-model.d.ts +2 -1
- package/dist/server/plugins/catalog-entities/databases/mappers/create-entity-read-model.d.ts.map +1 -1
- package/dist/server/plugins/catalog-entities/databases/mappers/create-entity-read-model.js +1 -1
- package/dist/server/plugins/catalog-entities/databases/mappers/create-entity-read-model.js.map +1 -1
- package/dist/server/plugins/catalog-entities/databases/mappers/create-entity-relation-db-record-from-dto.d.ts +2 -2
- package/dist/server/plugins/catalog-entities/databases/mappers/create-entity-relation-db-record-from-dto.d.ts.map +1 -1
- package/dist/server/plugins/catalog-entities/databases/mappers/create-entity-relation-db-record-from-dto.js +1 -1
- package/dist/server/plugins/catalog-entities/databases/mappers/create-entity-relation-db-record-from-dto.js.map +1 -1
- package/dist/server/plugins/catalog-entities/databases/mappers/create-entity-relation-db-record-from-file-schema.d.ts +2 -2
- package/dist/server/plugins/catalog-entities/databases/mappers/create-entity-relation-db-record-from-file-schema.d.ts.map +1 -1
- package/dist/server/plugins/catalog-entities/databases/mappers/create-entity-relation-db-record-from-file-schema.js +1 -1
- package/dist/server/plugins/catalog-entities/databases/mappers/create-entity-relation-db-record-from-file-schema.js.map +1 -1
- package/dist/server/plugins/catalog-entities/databases/mappers/create-entity-relation.d.ts +2 -1
- package/dist/server/plugins/catalog-entities/databases/mappers/create-entity-relation.d.ts.map +1 -1
- package/dist/server/plugins/catalog-entities/databases/mappers/create-entity-relation.js.map +1 -1
- package/dist/server/plugins/catalog-entities/databases/pagination/after-and-before.d.ts +6 -2
- package/dist/server/plugins/catalog-entities/databases/pagination/after-and-before.d.ts.map +1 -1
- package/dist/server/plugins/catalog-entities/databases/pagination/after-and-before.js +1 -1
- package/dist/server/plugins/catalog-entities/databases/pagination/after-and-before.js.map +1 -1
- package/dist/server/plugins/catalog-entities/databases/pagination/combined-filters.d.ts +4 -0
- package/dist/server/plugins/catalog-entities/databases/pagination/combined-filters.d.ts.map +1 -0
- package/dist/server/plugins/catalog-entities/databases/pagination/combined-filters.js +1 -0
- package/dist/server/plugins/catalog-entities/databases/pagination/combined-filters.js.map +1 -0
- package/dist/server/plugins/catalog-entities/databases/pagination/filter.d.ts +6 -2
- package/dist/server/plugins/catalog-entities/databases/pagination/filter.d.ts.map +1 -1
- package/dist/server/plugins/catalog-entities/databases/pagination/filter.js +1 -1
- package/dist/server/plugins/catalog-entities/databases/pagination/filter.js.map +1 -1
- package/dist/server/plugins/catalog-entities/databases/pagination/index.d.ts +2 -2
- package/dist/server/plugins/catalog-entities/databases/pagination/index.d.ts.map +1 -1
- package/dist/server/plugins/catalog-entities/databases/pagination/index.js +1 -1
- package/dist/server/plugins/catalog-entities/databases/pagination/index.js.map +1 -1
- package/dist/server/plugins/catalog-entities/databases/pagination/limit.d.ts +3 -2
- package/dist/server/plugins/catalog-entities/databases/pagination/limit.d.ts.map +1 -1
- package/dist/server/plugins/catalog-entities/databases/pagination/limit.js +1 -1
- package/dist/server/plugins/catalog-entities/databases/pagination/limit.js.map +1 -1
- package/dist/server/plugins/catalog-entities/databases/pagination/search.d.ts +6 -2
- package/dist/server/plugins/catalog-entities/databases/pagination/search.d.ts.map +1 -1
- package/dist/server/plugins/catalog-entities/databases/pagination/search.js +1 -1
- package/dist/server/plugins/catalog-entities/databases/pagination/search.js.map +1 -1
- package/dist/server/plugins/catalog-entities/databases/pagination/skip.d.ts +2 -2
- package/dist/server/plugins/catalog-entities/databases/pagination/skip.d.ts.map +1 -1
- package/dist/server/plugins/catalog-entities/databases/pagination/skip.js +1 -1
- package/dist/server/plugins/catalog-entities/databases/pagination/skip.js.map +1 -1
- package/dist/server/plugins/catalog-entities/databases/pagination/sort.d.ts +2 -2
- package/dist/server/plugins/catalog-entities/databases/pagination/sort.d.ts.map +1 -1
- package/dist/server/plugins/catalog-entities/databases/pagination/sort.js +1 -1
- package/dist/server/plugins/catalog-entities/databases/pagination/sort.js.map +1 -1
- package/dist/server/plugins/catalog-entities/databases/repositories/local/catalog-entities-local-read-repository.d.ts +4 -21
- package/dist/server/plugins/catalog-entities/databases/repositories/local/catalog-entities-local-read-repository.d.ts.map +1 -1
- package/dist/server/plugins/catalog-entities/databases/repositories/local/catalog-entities-local-read-repository.js +13 -321
- package/dist/server/plugins/catalog-entities/databases/repositories/local/catalog-entities-local-read-repository.js.map +1 -1
- package/dist/server/plugins/catalog-entities/databases/repositories/local/catalog-entities-local-repository.d.ts +9 -24
- package/dist/server/plugins/catalog-entities/databases/repositories/local/catalog-entities-local-repository.d.ts.map +1 -1
- package/dist/server/plugins/catalog-entities/databases/repositories/local/catalog-entities-local-repository.js +1 -1
- package/dist/server/plugins/catalog-entities/databases/repositories/local/catalog-entities-local-repository.js.map +1 -1
- package/dist/server/plugins/catalog-entities/databases/repositories/local/catalog-entities-local-write-repository.d.ts +4 -4
- package/dist/server/plugins/catalog-entities/databases/repositories/local/catalog-entities-local-write-repository.d.ts.map +1 -1
- package/dist/server/plugins/catalog-entities/databases/repositories/local/catalog-entities-local-write-repository.js +1 -13
- package/dist/server/plugins/catalog-entities/databases/repositories/local/catalog-entities-local-write-repository.js.map +1 -1
- package/dist/server/plugins/catalog-entities/databases/repositories/remote/catalog-entities-remote-repository.d.ts +4 -3
- package/dist/server/plugins/catalog-entities/databases/repositories/remote/catalog-entities-remote-repository.d.ts.map +1 -1
- package/dist/server/plugins/catalog-entities/databases/repositories/remote/catalog-entities-remote-repository.js +1 -13
- package/dist/server/plugins/catalog-entities/databases/repositories/remote/catalog-entities-remote-repository.js.map +1 -1
- package/dist/server/plugins/catalog-entities/databases/repositories/utils.d.ts +67 -0
- package/dist/server/plugins/catalog-entities/databases/repositories/utils.d.ts.map +1 -0
- package/dist/server/plugins/catalog-entities/databases/repositories/utils.js +1 -0
- package/dist/server/plugins/catalog-entities/databases/repositories/utils.js.map +1 -0
- package/dist/server/plugins/catalog-entities/databases/schemas/entities-relations-table.d.ts +236 -0
- package/dist/server/plugins/catalog-entities/databases/schemas/entities-relations-table.d.ts.map +1 -0
- package/dist/server/plugins/catalog-entities/databases/schemas/entities-relations-table.js +1 -0
- package/dist/server/plugins/catalog-entities/databases/schemas/entities-relations-table.js.map +1 -0
- package/dist/server/plugins/catalog-entities/databases/schemas/entities-table.d.ts +331 -0
- package/dist/server/plugins/catalog-entities/databases/schemas/entities-table.d.ts.map +1 -0
- package/dist/server/plugins/catalog-entities/databases/schemas/entities-table.js +1 -0
- package/dist/server/plugins/catalog-entities/databases/schemas/entities-table.js.map +1 -0
- package/dist/server/plugins/catalog-entities/databases/schemas/index.d.ts +3 -0
- package/dist/server/plugins/catalog-entities/databases/schemas/index.d.ts.map +1 -0
- package/dist/server/plugins/catalog-entities/databases/schemas/index.js +1 -0
- package/dist/server/plugins/catalog-entities/databases/schemas/index.js.map +1 -0
- package/dist/server/plugins/catalog-entities/extensions/api-description/extractors/base.js +1 -1
- package/dist/server/plugins/catalog-entities/extensions/api-description/extractors/base.js.map +1 -1
- package/dist/server/plugins/catalog-entities/get-server-props.d.ts +0 -2
- package/dist/server/plugins/catalog-entities/get-server-props.d.ts.map +1 -1
- package/dist/server/plugins/catalog-entities/get-server-props.js +1 -1
- package/dist/server/plugins/catalog-entities/get-server-props.js.map +1 -1
- package/dist/server/plugins/catalog-entities/merge-catalog-config.d.ts +52 -0
- package/dist/server/plugins/catalog-entities/merge-catalog-config.d.ts.map +1 -1
- package/dist/server/plugins/catalog-entities/merge-catalog-config.js +1 -1
- package/dist/server/plugins/catalog-entities/merge-catalog-config.js.map +1 -1
- package/dist/server/plugins/catalog-entities/plugin.js +1 -1
- package/dist/server/plugins/catalog-entities/plugin.js.map +1 -1
- package/dist/server/plugins/catalog-entities/schemas/database-schemas.d.ts +3 -3
- package/dist/server/plugins/catalog-entities/schemas/database-schemas.js +1 -1
- package/dist/server/plugins/catalog-entities/schemas/database-schemas.js.map +1 -1
- package/dist/server/plugins/catalog-entities/template/index.d.ts.map +1 -1
- package/dist/server/plugins/catalog-entities/template/index.js +1 -1
- package/dist/server/plugins/catalog-entities/template/index.js.map +1 -1
- package/dist/server/plugins/markdown/attribute-resolvers/code-walkthrough/map-file-extension-to-language.js +1 -1
- package/dist/server/plugins/markdown/attribute-resolvers/code-walkthrough/map-file-extension-to-language.js.map +1 -1
- package/dist/server/web-server/routes/catalog/catalog-relations.d.ts.map +1 -1
- package/dist/server/web-server/routes/catalog/catalog-relations.js +1 -1
- package/dist/server/web-server/routes/catalog/catalog-relations.js.map +1 -1
- package/dist/server/web-server/utils/prepare-list-response.js +1 -1
- package/dist/server/web-server/utils/prepare-list-response.js.map +1 -1
- package/dist/shared/l10n/default-translations.d.ts +3 -1
- package/dist/shared/l10n/default-translations.d.ts.map +1 -1
- package/dist/shared/l10n/default-translations.js +1 -1
- package/dist/shared/l10n/default-translations.js.map +1 -1
- package/dist/shared/l10n/initL10n.d.ts +1 -1
- package/dist/shared/l10n/initL10n.d.ts.map +1 -1
- package/dist/shared/l10n/initL10n.js +1 -1
- package/dist/shared/l10n/initL10n.js.map +1 -1
- package/dist/shared/l10n/langs/ar.d.ts.map +1 -1
- package/dist/shared/l10n/langs/ar.js +1 -1
- package/dist/shared/l10n/langs/ar.js.map +1 -1
- package/dist/shared/l10n/langs/de.d.ts.map +1 -1
- package/dist/shared/l10n/langs/de.js +1 -1
- package/dist/shared/l10n/langs/de.js.map +1 -1
- package/dist/shared/l10n/langs/en.d.ts.map +1 -1
- package/dist/shared/l10n/langs/en.js +1 -1
- package/dist/shared/l10n/langs/en.js.map +1 -1
- package/dist/shared/l10n/langs/es.d.ts.map +1 -1
- package/dist/shared/l10n/langs/es.js +1 -1
- package/dist/shared/l10n/langs/es.js.map +1 -1
- package/dist/shared/l10n/langs/fr.d.ts.map +1 -1
- package/dist/shared/l10n/langs/fr.js +1 -1
- package/dist/shared/l10n/langs/fr.js.map +1 -1
- package/dist/shared/l10n/langs/hi.d.ts.map +1 -1
- package/dist/shared/l10n/langs/hi.js +1 -1
- package/dist/shared/l10n/langs/hi.js.map +1 -1
- package/dist/shared/l10n/langs/it.d.ts.map +1 -1
- package/dist/shared/l10n/langs/it.js +1 -1
- package/dist/shared/l10n/langs/it.js.map +1 -1
- package/dist/shared/l10n/langs/ja.d.ts.map +1 -1
- package/dist/shared/l10n/langs/ja.js +1 -1
- package/dist/shared/l10n/langs/ja.js.map +1 -1
- package/dist/shared/l10n/langs/ko.d.ts.map +1 -1
- package/dist/shared/l10n/langs/ko.js +1 -1
- package/dist/shared/l10n/langs/ko.js.map +1 -1
- package/dist/shared/l10n/langs/pl.d.ts.map +1 -1
- package/dist/shared/l10n/langs/pl.js +1 -1
- package/dist/shared/l10n/langs/pl.js.map +1 -1
- package/dist/shared/l10n/langs/pt-BR.d.ts.map +1 -1
- package/dist/shared/l10n/langs/pt-BR.js +1 -1
- package/dist/shared/l10n/langs/pt-BR.js.map +1 -1
- package/dist/shared/l10n/langs/pt.d.ts.map +1 -1
- package/dist/shared/l10n/langs/pt.js +1 -1
- package/dist/shared/l10n/langs/pt.js.map +1 -1
- package/dist/shared/l10n/langs/ru.d.ts.map +1 -1
- package/dist/shared/l10n/langs/ru.js +1 -1
- package/dist/shared/l10n/langs/ru.js.map +1 -1
- package/dist/shared/l10n/langs/uk.d.ts.map +1 -1
- package/dist/shared/l10n/langs/uk.js +1 -1
- package/dist/shared/l10n/langs/uk.js.map +1 -1
- package/dist/shared/l10n/langs/zh.d.ts.map +1 -1
- package/dist/shared/l10n/langs/zh.js +1 -1
- package/dist/shared/l10n/langs/zh.js.map +1 -1
- package/package.json +11 -10
- package/dist/server/plugins/catalog-entities/databases/database/sql-builder.d.ts +0 -36
- package/dist/server/plugins/catalog-entities/databases/database/sql-builder.d.ts.map +0 -1
- package/dist/server/plugins/catalog-entities/databases/database/sql-builder.js +0 -1
- package/dist/server/plugins/catalog-entities/databases/database/sql-builder.js.map +0 -1
- package/dist/server/plugins/catalog-entities/databases/initialize-catalog-scripts.d.ts +0 -4
- package/dist/server/plugins/catalog-entities/databases/initialize-catalog-scripts.d.ts.map +0 -1
- package/dist/server/plugins/catalog-entities/databases/initialize-catalog-scripts.js +0 -34
- package/dist/server/plugins/catalog-entities/databases/initialize-catalog-scripts.js.map +0 -1
- package/dist/server/plugins/catalog-entities/databases/prepare-database-path.d.ts +0 -10
- package/dist/server/plugins/catalog-entities/databases/prepare-database-path.d.ts.map +0 -1
- package/dist/server/plugins/catalog-entities/databases/prepare-database-path.js +0 -1
- package/dist/server/plugins/catalog-entities/databases/prepare-database-path.js.map +0 -1
|
@@ -0,0 +1,331 @@
|
|
|
1
|
+
export declare const entitiesTable: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
|
|
2
|
+
name: "entities";
|
|
3
|
+
schema: undefined;
|
|
4
|
+
columns: {
|
|
5
|
+
id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
6
|
+
name: "id";
|
|
7
|
+
tableName: "entities";
|
|
8
|
+
dataType: "string";
|
|
9
|
+
columnType: "SQLiteText";
|
|
10
|
+
data: string;
|
|
11
|
+
driverParam: string;
|
|
12
|
+
notNull: true;
|
|
13
|
+
hasDefault: false;
|
|
14
|
+
isPrimaryKey: true;
|
|
15
|
+
isAutoincrement: false;
|
|
16
|
+
hasRuntimeDefault: false;
|
|
17
|
+
enumValues: [string, ...string[]];
|
|
18
|
+
baseColumn: never;
|
|
19
|
+
identity: undefined;
|
|
20
|
+
generated: undefined;
|
|
21
|
+
}, {}, {
|
|
22
|
+
length: number | undefined;
|
|
23
|
+
}>;
|
|
24
|
+
organizationId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
25
|
+
name: "organization_id";
|
|
26
|
+
tableName: "entities";
|
|
27
|
+
dataType: "string";
|
|
28
|
+
columnType: "SQLiteText";
|
|
29
|
+
data: string;
|
|
30
|
+
driverParam: string;
|
|
31
|
+
notNull: true;
|
|
32
|
+
hasDefault: false;
|
|
33
|
+
isPrimaryKey: false;
|
|
34
|
+
isAutoincrement: false;
|
|
35
|
+
hasRuntimeDefault: false;
|
|
36
|
+
enumValues: [string, ...string[]];
|
|
37
|
+
baseColumn: never;
|
|
38
|
+
identity: undefined;
|
|
39
|
+
generated: undefined;
|
|
40
|
+
}, {}, {
|
|
41
|
+
length: number | undefined;
|
|
42
|
+
}>;
|
|
43
|
+
projectId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
44
|
+
name: "project_id";
|
|
45
|
+
tableName: "entities";
|
|
46
|
+
dataType: "string";
|
|
47
|
+
columnType: "SQLiteText";
|
|
48
|
+
data: string;
|
|
49
|
+
driverParam: string;
|
|
50
|
+
notNull: true;
|
|
51
|
+
hasDefault: false;
|
|
52
|
+
isPrimaryKey: false;
|
|
53
|
+
isAutoincrement: false;
|
|
54
|
+
hasRuntimeDefault: false;
|
|
55
|
+
enumValues: [string, ...string[]];
|
|
56
|
+
baseColumn: never;
|
|
57
|
+
identity: undefined;
|
|
58
|
+
generated: undefined;
|
|
59
|
+
}, {}, {
|
|
60
|
+
length: number | undefined;
|
|
61
|
+
}>;
|
|
62
|
+
key: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
63
|
+
name: "key";
|
|
64
|
+
tableName: "entities";
|
|
65
|
+
dataType: "string";
|
|
66
|
+
columnType: "SQLiteText";
|
|
67
|
+
data: string;
|
|
68
|
+
driverParam: string;
|
|
69
|
+
notNull: true;
|
|
70
|
+
hasDefault: false;
|
|
71
|
+
isPrimaryKey: false;
|
|
72
|
+
isAutoincrement: false;
|
|
73
|
+
hasRuntimeDefault: false;
|
|
74
|
+
enumValues: [string, ...string[]];
|
|
75
|
+
baseColumn: never;
|
|
76
|
+
identity: undefined;
|
|
77
|
+
generated: undefined;
|
|
78
|
+
}, {}, {
|
|
79
|
+
length: number | undefined;
|
|
80
|
+
}>;
|
|
81
|
+
type: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
82
|
+
name: "type";
|
|
83
|
+
tableName: "entities";
|
|
84
|
+
dataType: "string";
|
|
85
|
+
columnType: "SQLiteText";
|
|
86
|
+
data: string;
|
|
87
|
+
driverParam: string;
|
|
88
|
+
notNull: true;
|
|
89
|
+
hasDefault: false;
|
|
90
|
+
isPrimaryKey: false;
|
|
91
|
+
isAutoincrement: false;
|
|
92
|
+
hasRuntimeDefault: false;
|
|
93
|
+
enumValues: [string, ...string[]];
|
|
94
|
+
baseColumn: never;
|
|
95
|
+
identity: undefined;
|
|
96
|
+
generated: undefined;
|
|
97
|
+
}, {}, {
|
|
98
|
+
length: number | undefined;
|
|
99
|
+
}>;
|
|
100
|
+
title: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
101
|
+
name: "title";
|
|
102
|
+
tableName: "entities";
|
|
103
|
+
dataType: "string";
|
|
104
|
+
columnType: "SQLiteText";
|
|
105
|
+
data: string;
|
|
106
|
+
driverParam: string;
|
|
107
|
+
notNull: true;
|
|
108
|
+
hasDefault: false;
|
|
109
|
+
isPrimaryKey: false;
|
|
110
|
+
isAutoincrement: false;
|
|
111
|
+
hasRuntimeDefault: false;
|
|
112
|
+
enumValues: [string, ...string[]];
|
|
113
|
+
baseColumn: never;
|
|
114
|
+
identity: undefined;
|
|
115
|
+
generated: undefined;
|
|
116
|
+
}, {}, {
|
|
117
|
+
length: number | undefined;
|
|
118
|
+
}>;
|
|
119
|
+
summary: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
120
|
+
name: "summary";
|
|
121
|
+
tableName: "entities";
|
|
122
|
+
dataType: "string";
|
|
123
|
+
columnType: "SQLiteText";
|
|
124
|
+
data: string;
|
|
125
|
+
driverParam: string;
|
|
126
|
+
notNull: false;
|
|
127
|
+
hasDefault: false;
|
|
128
|
+
isPrimaryKey: false;
|
|
129
|
+
isAutoincrement: false;
|
|
130
|
+
hasRuntimeDefault: false;
|
|
131
|
+
enumValues: [string, ...string[]];
|
|
132
|
+
baseColumn: never;
|
|
133
|
+
identity: undefined;
|
|
134
|
+
generated: undefined;
|
|
135
|
+
}, {}, {
|
|
136
|
+
length: number | undefined;
|
|
137
|
+
}>;
|
|
138
|
+
tags: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
139
|
+
name: "tags";
|
|
140
|
+
tableName: "entities";
|
|
141
|
+
dataType: "string";
|
|
142
|
+
columnType: "SQLiteText";
|
|
143
|
+
data: string;
|
|
144
|
+
driverParam: string;
|
|
145
|
+
notNull: false;
|
|
146
|
+
hasDefault: false;
|
|
147
|
+
isPrimaryKey: false;
|
|
148
|
+
isAutoincrement: false;
|
|
149
|
+
hasRuntimeDefault: false;
|
|
150
|
+
enumValues: [string, ...string[]];
|
|
151
|
+
baseColumn: never;
|
|
152
|
+
identity: undefined;
|
|
153
|
+
generated: undefined;
|
|
154
|
+
}, {}, {
|
|
155
|
+
length: number | undefined;
|
|
156
|
+
}>;
|
|
157
|
+
metadata: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
158
|
+
name: "metadata";
|
|
159
|
+
tableName: "entities";
|
|
160
|
+
dataType: "string";
|
|
161
|
+
columnType: "SQLiteText";
|
|
162
|
+
data: string;
|
|
163
|
+
driverParam: string;
|
|
164
|
+
notNull: false;
|
|
165
|
+
hasDefault: false;
|
|
166
|
+
isPrimaryKey: false;
|
|
167
|
+
isAutoincrement: false;
|
|
168
|
+
hasRuntimeDefault: false;
|
|
169
|
+
enumValues: [string, ...string[]];
|
|
170
|
+
baseColumn: never;
|
|
171
|
+
identity: undefined;
|
|
172
|
+
generated: undefined;
|
|
173
|
+
}, {}, {
|
|
174
|
+
length: number | undefined;
|
|
175
|
+
}>;
|
|
176
|
+
git: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
177
|
+
name: "git";
|
|
178
|
+
tableName: "entities";
|
|
179
|
+
dataType: "string";
|
|
180
|
+
columnType: "SQLiteText";
|
|
181
|
+
data: string;
|
|
182
|
+
driverParam: string;
|
|
183
|
+
notNull: false;
|
|
184
|
+
hasDefault: false;
|
|
185
|
+
isPrimaryKey: false;
|
|
186
|
+
isAutoincrement: false;
|
|
187
|
+
hasRuntimeDefault: false;
|
|
188
|
+
enumValues: [string, ...string[]];
|
|
189
|
+
baseColumn: never;
|
|
190
|
+
identity: undefined;
|
|
191
|
+
generated: undefined;
|
|
192
|
+
}, {}, {
|
|
193
|
+
length: number | undefined;
|
|
194
|
+
}>;
|
|
195
|
+
contact: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
196
|
+
name: "contact";
|
|
197
|
+
tableName: "entities";
|
|
198
|
+
dataType: "string";
|
|
199
|
+
columnType: "SQLiteText";
|
|
200
|
+
data: string;
|
|
201
|
+
driverParam: string;
|
|
202
|
+
notNull: false;
|
|
203
|
+
hasDefault: false;
|
|
204
|
+
isPrimaryKey: false;
|
|
205
|
+
isAutoincrement: false;
|
|
206
|
+
hasRuntimeDefault: false;
|
|
207
|
+
enumValues: [string, ...string[]];
|
|
208
|
+
baseColumn: never;
|
|
209
|
+
identity: undefined;
|
|
210
|
+
generated: undefined;
|
|
211
|
+
}, {}, {
|
|
212
|
+
length: number | undefined;
|
|
213
|
+
}>;
|
|
214
|
+
links: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
215
|
+
name: "links";
|
|
216
|
+
tableName: "entities";
|
|
217
|
+
dataType: "string";
|
|
218
|
+
columnType: "SQLiteText";
|
|
219
|
+
data: string;
|
|
220
|
+
driverParam: string;
|
|
221
|
+
notNull: false;
|
|
222
|
+
hasDefault: false;
|
|
223
|
+
isPrimaryKey: false;
|
|
224
|
+
isAutoincrement: false;
|
|
225
|
+
hasRuntimeDefault: false;
|
|
226
|
+
enumValues: [string, ...string[]];
|
|
227
|
+
baseColumn: never;
|
|
228
|
+
identity: undefined;
|
|
229
|
+
generated: undefined;
|
|
230
|
+
}, {}, {
|
|
231
|
+
length: number | undefined;
|
|
232
|
+
}>;
|
|
233
|
+
createdAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
234
|
+
name: "created_at";
|
|
235
|
+
tableName: "entities";
|
|
236
|
+
dataType: "string";
|
|
237
|
+
columnType: "SQLiteText";
|
|
238
|
+
data: string;
|
|
239
|
+
driverParam: string;
|
|
240
|
+
notNull: true;
|
|
241
|
+
hasDefault: false;
|
|
242
|
+
isPrimaryKey: false;
|
|
243
|
+
isAutoincrement: false;
|
|
244
|
+
hasRuntimeDefault: false;
|
|
245
|
+
enumValues: [string, ...string[]];
|
|
246
|
+
baseColumn: never;
|
|
247
|
+
identity: undefined;
|
|
248
|
+
generated: undefined;
|
|
249
|
+
}, {}, {
|
|
250
|
+
length: number | undefined;
|
|
251
|
+
}>;
|
|
252
|
+
updatedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
253
|
+
name: "updated_at";
|
|
254
|
+
tableName: "entities";
|
|
255
|
+
dataType: "string";
|
|
256
|
+
columnType: "SQLiteText";
|
|
257
|
+
data: string;
|
|
258
|
+
driverParam: string;
|
|
259
|
+
notNull: true;
|
|
260
|
+
hasDefault: false;
|
|
261
|
+
isPrimaryKey: false;
|
|
262
|
+
isAutoincrement: false;
|
|
263
|
+
hasRuntimeDefault: false;
|
|
264
|
+
enumValues: [string, ...string[]];
|
|
265
|
+
baseColumn: never;
|
|
266
|
+
identity: undefined;
|
|
267
|
+
generated: undefined;
|
|
268
|
+
}, {}, {
|
|
269
|
+
length: number | undefined;
|
|
270
|
+
}>;
|
|
271
|
+
source: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
272
|
+
name: "source";
|
|
273
|
+
tableName: "entities";
|
|
274
|
+
dataType: "string";
|
|
275
|
+
columnType: "SQLiteText";
|
|
276
|
+
data: string;
|
|
277
|
+
driverParam: string;
|
|
278
|
+
notNull: false;
|
|
279
|
+
hasDefault: true;
|
|
280
|
+
isPrimaryKey: false;
|
|
281
|
+
isAutoincrement: false;
|
|
282
|
+
hasRuntimeDefault: false;
|
|
283
|
+
enumValues: [string, ...string[]];
|
|
284
|
+
baseColumn: never;
|
|
285
|
+
identity: undefined;
|
|
286
|
+
generated: undefined;
|
|
287
|
+
}, {}, {
|
|
288
|
+
length: number | undefined;
|
|
289
|
+
}>;
|
|
290
|
+
sourceFile: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
291
|
+
name: "source_file";
|
|
292
|
+
tableName: "entities";
|
|
293
|
+
dataType: "string";
|
|
294
|
+
columnType: "SQLiteText";
|
|
295
|
+
data: string;
|
|
296
|
+
driverParam: string;
|
|
297
|
+
notNull: false;
|
|
298
|
+
hasDefault: false;
|
|
299
|
+
isPrimaryKey: false;
|
|
300
|
+
isAutoincrement: false;
|
|
301
|
+
hasRuntimeDefault: false;
|
|
302
|
+
enumValues: [string, ...string[]];
|
|
303
|
+
baseColumn: never;
|
|
304
|
+
identity: undefined;
|
|
305
|
+
generated: undefined;
|
|
306
|
+
}, {}, {
|
|
307
|
+
length: number | undefined;
|
|
308
|
+
}>;
|
|
309
|
+
schemaVersion: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
310
|
+
name: "schema_version";
|
|
311
|
+
tableName: "entities";
|
|
312
|
+
dataType: "number";
|
|
313
|
+
columnType: "SQLiteInteger";
|
|
314
|
+
data: number;
|
|
315
|
+
driverParam: number;
|
|
316
|
+
notNull: true;
|
|
317
|
+
hasDefault: true;
|
|
318
|
+
isPrimaryKey: false;
|
|
319
|
+
isAutoincrement: false;
|
|
320
|
+
hasRuntimeDefault: false;
|
|
321
|
+
enumValues: undefined;
|
|
322
|
+
baseColumn: never;
|
|
323
|
+
identity: undefined;
|
|
324
|
+
generated: undefined;
|
|
325
|
+
}, {}, {}>;
|
|
326
|
+
};
|
|
327
|
+
dialect: "sqlite";
|
|
328
|
+
}>;
|
|
329
|
+
export type DatabaseEntity = typeof entitiesTable.$inferSelect;
|
|
330
|
+
export type DatabaseEntityDto = typeof entitiesTable.$inferInsert;
|
|
331
|
+
//# sourceMappingURL=entities-table.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entities-table.d.ts","sourceRoot":"","sources":["../../../../../../../../src/server/plugins/catalog-entities/databases/schemas/entities-table.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyBzB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,OAAO,aAAa,CAAC,YAAY,CAAC;AAC/D,MAAM,MAAM,iBAAiB,GAAG,OAAO,aAAa,CAAC,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{sqliteTable as i,text as t,integer as n,index as o,uniqueIndex as a}from"drizzle-orm/sqlite-core";const u=i("entities",{id:t("id").primaryKey(),organizationId:t("organization_id").notNull(),projectId:t("project_id").notNull(),key:t("key").notNull().unique(),type:t("type").notNull(),title:t("title").notNull(),summary:t("summary"),tags:t("tags"),metadata:t("metadata"),git:t("git"),contact:t("contact"),links:t("links"),createdAt:t("created_at").notNull(),updatedAt:t("updated_at").notNull(),source:t("source").default("file"),sourceFile:t("source_file"),schemaVersion:n("schema_version").notNull().default(1)},e=>[o("idx_entities_type").on(e.type),a("idx_entities_key_source").on(e.key,e.source)]);export{u as entitiesTable};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entities-table.js","sourceRoot":"","sources":["../../../../../../../../src/server/plugins/catalog-entities/databases/schemas/entities-table.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEzF,wBAAwB;AACxB,MAAM,CAAC,MAAM,aAAa,GAAG,WAAW,CACtC,UAAU,EACV;IACE,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE;IAC3B,cAAc,EAAE,IAAI,CAAC,iBAAiB,CAAC,CAAC,OAAO,EAAE;IACjD,SAAS,EAAE,IAAI,CAAC,YAAY,CAAC,CAAC,OAAO,EAAE;IACvC,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,OAAO,EAAE,CAAC,MAAM,EAAE;IACnC,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,OAAO,EAAE;IAC5B,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE;IAC9B,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC;IACxB,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC;IAClB,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC;IAC1B,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC;IAChB,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC;IACxB,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC;IACpB,SAAS,EAAE,IAAI,CAAC,YAAY,CAAC,CAAC,OAAO,EAAE;IACvC,SAAS,EAAE,IAAI,CAAC,YAAY,CAAC,CAAC,OAAO,EAAE;IACvC,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC;IACtC,UAAU,EAAE,IAAI,CAAC,aAAa,CAAC;IAC/B,aAAa,EAAE,OAAO,CAAC,gBAAgB,CAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;CAC9D,EACD,CAAC,KAAK,EAAE,EAAE,CAAC;IACT,KAAK,CAAC,mBAAmB,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC;IACzC,WAAW,CAAC,yBAAyB,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,GAAG,EAAE,KAAK,CAAC,MAAM,CAAC;CACnE,CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/server/plugins/catalog-entities/databases/schemas/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,+BAA+B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./entities-table.js";export*from"./entities-relations-table.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/server/plugins/catalog-entities/databases/schemas/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,+BAA+B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{promiseMapLimit as
|
|
1
|
+
import{promiseMapLimit as n}from"../../../../../utils/async.js";import{UniqueKeyResolver as o}from"../../../../../utils/conflict-resolvers.js";const c=15;class h{type="api-description";specType;actions;context;catalogEntitiesService;uniqueKeyResolver=new o;constructor(t,e){this.specType=t,this.actions=e.actions,this.context=e.context,this.catalogEntitiesService=e.catalogEntitiesService}async extract(){const{logger:t}=this.context,e=await this.loadApiDefinitions(),a=t.startTiming();let r=0;await n(e,c,async s=>{try{if(s.isVirtual)return;const i=this.mapApiDefinitionToEntity(s);i.key=this.uniqueKeyResolver.resolve(i.key),await this.extractEntitiesFromApiDefinition(s,i.key),await this.catalogEntitiesService.createEntityInLocalDatabase(i,s.realRelativePath),r++}catch(i){t.warn(`Error extracting entities from ${this.specType} description: ${s.realRelativePath}`),t.warn(i)}}),t.infoTime(a,`Created ${r} entities from ${e.length} ${this.specType} descriptions.`)}}export{h as BaseApiEntitiesExtractor};
|
package/dist/server/plugins/catalog-entities/extensions/api-description/extractors/base.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.js","sourceRoot":"","sources":["../../../../../../../../../src/server/plugins/catalog-entities/extensions/api-description/extractors/base.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,4CAA4C,CAAC;AAE/E,MAAM,iBAAiB,GAAG,EAAE,CAAC;AAQ7B,MAAM,OAAgB,wBAAwB;IAGlC,IAAI,GAAG,iBAA0B,CAAC;IAClC,QAAQ,CAA2C;IACnD,OAAO,CAAwB;IAC/B,OAAO,CAAmB;IAC1B,sBAAsB,CAAyB;IACjD,iBAAiB,GAAG,IAAI,iBAAiB,EAAE,CAAC;IAEpD,YACE,QAAkD,EAClD,MAAsC;QAEtC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC;QAC9B,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC;QAC9B,IAAI,CAAC,sBAAsB,GAAG,MAAM,CAAC,sBAAsB,CAAC;IAC9D,CAAC;IAED,KAAK,CAAC,OAAO;QACX,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC,OAAO,CAAC;QAEhC,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,kBAAkB,EAAE,CAAC;QAEpD,MAAM,eAAe,GAAG,MAAM,CAAC,WAAW,EAAE,CAAC;QAC7C,IAAI,eAAe,GAAG,CAAC,CAAC;QAExB,MAAM,eAAe,CAAC,WAAW,EAAE,iBAAiB,EAAE,KAAK,EAAE,UAAU,EAAE,EAAE;YACzE,IAAI,CAAC;gBACH,IAAI,UAAU,CAAC,SAAS;oBAAE,OAAO;gBAEjC,MAAM,MAAM,GAAG,IAAI,CAAC,wBAAwB,CAAC,UAAU,CAAC,CAAC;gBACzD,MAAM,CAAC,GAAG,GAAG,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;gBAExD,MAAM,IAAI,CAAC,gCAAgC,CAAC,UAAU,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC;gBAEpE,MAAM,IAAI,CAAC,sBAAsB,CAAC,2BAA2B,CAC3D,MAAM,EACN,UAAU,CAAC,gBAAgB,CAC5B,CAAC;gBACF,eAAe,EAAE,CAAC;YACpB,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"base.js","sourceRoot":"","sources":["../../../../../../../../../src/server/plugins/catalog-entities/extensions/api-description/extractors/base.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,4CAA4C,CAAC;AAE/E,MAAM,iBAAiB,GAAG,EAAE,CAAC;AAQ7B,MAAM,OAAgB,wBAAwB;IAGlC,IAAI,GAAG,iBAA0B,CAAC;IAClC,QAAQ,CAA2C;IACnD,OAAO,CAAwB;IAC/B,OAAO,CAAmB;IAC1B,sBAAsB,CAAyB;IACjD,iBAAiB,GAAG,IAAI,iBAAiB,EAAE,CAAC;IAEpD,YACE,QAAkD,EAClD,MAAsC;QAEtC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAA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C,MAAM,IAAI,IAAI,CAAC,QAAQ,gBAAgB,CAChG,CAAC;IACJ,CAAC;CAQF"}
|
|
@@ -13,8 +13,6 @@ export type ServerSideProps = {
|
|
|
13
13
|
relations: BffCatalogRelatedEntityList;
|
|
14
14
|
entitiesCatalogConfig: EntitiesCatalogConfig;
|
|
15
15
|
catalogConfig: CatalogEntityConfig;
|
|
16
|
-
mainCatalogLabelTranslationKey?: string;
|
|
17
|
-
mainCatalogSlug?: string;
|
|
18
16
|
} | {
|
|
19
17
|
status: 'notFound';
|
|
20
18
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-server-props.d.ts","sourceRoot":"","sources":["../../../../../../src/server/plugins/catalog-entities/get-server-props.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,SAAS,EACT,cAAc,EACd,mBAAmB,EACpB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,gBAAgB,EAChB,oBAAoB,EACpB,2BAA2B,EAC3B,mBAAmB,EACpB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"get-server-props.d.ts","sourceRoot":"","sources":["../../../../../../src/server/plugins/catalog-entities/get-server-props.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,SAAS,EACT,cAAc,EACd,mBAAmB,EACpB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,gBAAgB,EAChB,oBAAoB,EACpB,2BAA2B,EAC3B,mBAAmB,EACpB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AA8BhE,MAAM,MAAM,eAAe,GACvB;IACE,MAAM,EAAE,SAAS,CAAC;IAClB,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,QAAQ,EAAE,oBAAoB,CAAC;IAC/B,aAAa,EAAE,mBAAmB,CAAC;IACnC,oBAAoB,EAAE,mBAAmB,EAAE,CAAC;CAC7C,GACD;IACE,MAAM,EAAE,SAAS,CAAC;IAClB,MAAM,EAAE,gBAAgB,CAAC;IACzB,SAAS,EAAE,2BAA2B,CAAC;IACvC,qBAAqB,EAAE,qBAAqB,CAAC;IAC7C,aAAa,EAAE,mBAAmB,CAAC;CACpC,GACD;IACE,MAAM,EAAE,UAAU,CAAC;CACpB,CAAC;AA0EN,wBAA8B,cAAc,CAC1C,KAAK,EAAE,gBAAgB,EACvB,EAAE,KAAK,EAAE,EAAE,cAAc,EACzB,CAAC,EAAE,SAAS,EACZ,YAAY,EAAE,MAAM,GACnB,OAAO,CAAC,eAAe,CAAC,CA4D1B;AAuED,eAAO,MAAM,oBAAoB,cAAe,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,2CAErE,CAAC;AAEF,eAAO,MAAM,0BAA0B,cAAe,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,2CAG3E,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{CatalogEntitiesService as
|
|
1
|
+
import{CatalogEntitiesService as f}from"./databases";import{createPaginationParamsValidator as d}from"./databases/pagination/schemas";import{parseSearch as m}from"./databases/pagination/search";const P={all:"all",domains:"domain",services:"service",teams:"team",users:"user","api-descriptions":"api-description"},y={team:[[{field:"type",operator:"equal",value:"user"}]]},S=async({entitiesTypes:t,serverOutDir:s,catalogConfig:e,queries:i={}})=>{const n=await f.getInstance({baseDbDir:s}),o=p.concat("domains","owners"),r=d(o).parse(i),c=e.excludes?.map(l=>l.key)??[],a=t.filter(l=>l!=="all"),u=E(a,c);return r.filter?r.filter.map(l=>l.push(...u)):r.filter=[u],await n.getEntitiesWithRelations({sort:[{field:"title",order:"ASC"}],limit:10,...r})},C=async(t,s,e,i)=>{const n=await f.getInstance({baseDbDir:e}),o=await n.getEntityWithRelationsByKey(t);if(!o)return null;const r=await n.getRelatedEntities(t,{limit:10,sort:[{field:"title",order:"ASC"}],filter:s.map(c=>{const a=y[c];return a?a.flat():[]}),search:m(i?.search,["key","type","title","summary"])});return{status:"success",entity:o,relations:r}};async function b(t,{props:s},e,i){const n=s?.catalogConfig||{};if(!t.params||!s?.catalogConfig)return{status:"notFound"};const[o,r,c]=t.params;if(!o)return{status:"notFound"};const a=h(n,o),u=a?.includes?.map(l=>l.type)??[];if(!a)return{status:"notFound"};if(!c&&r!=="entities")return a.hide?{status:"notFound"}:{status:"success",catalogSwitcherItems:w(n,a),entitiesTypes:u,entities:await S({entitiesTypes:u,serverOutDir:i,catalogConfig:a,queries:t.queries}),catalogConfig:a};const g=await C(c,u,i,t.queries);return g?{status:"success",entity:g.entity,relations:g.relations,entitiesCatalogConfig:n,catalogConfig:a}:{status:"notFound"}}const h=(t,s)=>Object.values(t.catalogs??{}).find(e=>e&&typeof e=="object"&&"slug"in e&&e.slug===s),w=(t,s)=>Object.values(t.catalogs??{}).filter(e=>!e.hide).map(e=>({labelTranslationKey:e.catalogSwitcherLabelTranslationKey??"",slug:e.slug??"",selected:e.slug===s.slug})).sort((e,i)=>e.slug.localeCompare(i.slug)),E=(t,s)=>[...t.length?[{field:"type",operator:"in",value:t}]:[],...s.length?[{field:"key",operator:"in",value:s,modifier:"not"}]:[]],p=["type","key","title","summary","tags","metadata","git","contact","links","id","source","sourceFile","createdAt","updatedAt"],T=t=>d(p).parse(t),R=t=>{const s=p.concat("domains","owners");return d(s).parse(t)};export{b as default,R as getCatalogEntityListParams,T as getCatalogListParams};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-server-props.js","sourceRoot":"","sources":["../../../../../../src/server/plugins/catalog-entities/get-server-props.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAErD,OAAO,EAAE,+BAA+B,EAAE,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"get-server-props.js","sourceRoot":"","sources":["../../../../../../src/server/plugins/catalog-entities/get-server-props.ts"],"names":[],"mappings":"AAeA,O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AM,cAAc,GAAG,6BAA6B,CAAC,MAAM,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;IACjF,OAAO,+BAA+B,CAAC,cAAc,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;AAC1E,CAAC,CAAC"}
|
|
@@ -157,6 +157,58 @@ export declare function mergeCatalogConfig(defaultConfig: EntitiesCatalogConfig,
|
|
|
157
157
|
}[] | undefined;
|
|
158
158
|
catalogSwitcherLabelTranslationKey?: string | undefined;
|
|
159
159
|
} | undefined;
|
|
160
|
+
dataSchemas?: {
|
|
161
|
+
hide?: boolean | undefined;
|
|
162
|
+
filters?: {
|
|
163
|
+
type?: "select" | "checkboxes" | "date-range" | undefined;
|
|
164
|
+
hide?: boolean | undefined;
|
|
165
|
+
label?: string | undefined;
|
|
166
|
+
options?: string[] | undefined;
|
|
167
|
+
titleTranslationKey?: string | undefined;
|
|
168
|
+
parentFilter?: string | undefined;
|
|
169
|
+
valuesMapping?: {
|
|
170
|
+
[x: string]: string;
|
|
171
|
+
} | undefined;
|
|
172
|
+
title: string;
|
|
173
|
+
property: string;
|
|
174
|
+
}[] | undefined;
|
|
175
|
+
slug?: string | undefined;
|
|
176
|
+
titleTranslationKey?: string | undefined;
|
|
177
|
+
descriptionTranslationKey?: string | undefined;
|
|
178
|
+
includes?: {
|
|
179
|
+
type: string;
|
|
180
|
+
}[] | undefined;
|
|
181
|
+
excludes?: {
|
|
182
|
+
key: string;
|
|
183
|
+
}[] | undefined;
|
|
184
|
+
catalogSwitcherLabelTranslationKey?: string | undefined;
|
|
185
|
+
} | undefined;
|
|
186
|
+
apiOperations?: {
|
|
187
|
+
hide?: boolean | undefined;
|
|
188
|
+
filters?: {
|
|
189
|
+
type?: "select" | "checkboxes" | "date-range" | undefined;
|
|
190
|
+
hide?: boolean | undefined;
|
|
191
|
+
label?: string | undefined;
|
|
192
|
+
options?: string[] | undefined;
|
|
193
|
+
titleTranslationKey?: string | undefined;
|
|
194
|
+
parentFilter?: string | undefined;
|
|
195
|
+
valuesMapping?: {
|
|
196
|
+
[x: string]: string;
|
|
197
|
+
} | undefined;
|
|
198
|
+
title: string;
|
|
199
|
+
property: string;
|
|
200
|
+
}[] | undefined;
|
|
201
|
+
slug?: string | undefined;
|
|
202
|
+
titleTranslationKey?: string | undefined;
|
|
203
|
+
descriptionTranslationKey?: string | undefined;
|
|
204
|
+
includes?: {
|
|
205
|
+
type: string;
|
|
206
|
+
}[] | undefined;
|
|
207
|
+
excludes?: {
|
|
208
|
+
key: string;
|
|
209
|
+
}[] | undefined;
|
|
210
|
+
catalogSwitcherLabelTranslationKey?: string | undefined;
|
|
211
|
+
} | undefined;
|
|
160
212
|
} | undefined;
|
|
161
213
|
};
|
|
162
214
|
//# sourceMappingURL=merge-catalog-config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"merge-catalog-config.d.ts","sourceRoot":"","sources":["../../../../../../src/server/plugins/catalog-entities/merge-catalog-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAExD,wBAAgB,kBAAkB,CAChC,aAAa,EAAE,qBAAqB,EACpC,MAAM,CAAC,EAAE,qBAAqB
|
|
1
|
+
{"version":3,"file":"merge-catalog-config.d.ts","sourceRoot":"","sources":["../../../../../../src/server/plugins/catalog-entities/merge-catalog-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAExD,wBAAgB,kBAAkB,CAChC,aAAa,EAAE,qBAAqB,EACpC,MAAM,CAAC,EAAE,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4C/B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function t(s
|
|
1
|
+
function t(a,s){return s?{...a,catalogs:{...s.catalogs,all:{...a.catalogs?.all,...s.catalogs?.all},services:{...a.catalogs?.services,...s.catalogs?.services},domains:{...a.catalogs?.domains,...s.catalogs?.domains},teams:{...a.catalogs?.teams,...s.catalogs?.teams},users:{...a.catalogs?.users,...s.catalogs?.users},apiDescriptions:{...a.catalogs?.apiDescriptions,...s.catalogs?.apiDescriptions},dataSchemas:{...a.catalogs?.dataSchemas,...s.catalogs?.dataSchemas},apiOperations:{...a.catalogs?.apiOperations,...s.catalogs?.apiOperations}}}:a}export{t as mergeCatalogConfig};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"merge-catalog-config.js","sourceRoot":"","sources":["../../../../../../src/server/plugins/catalog-entities/merge-catalog-config.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,kBAAkB,CAChC,aAAoC,EACpC,MAA8B;IAE9B,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,OAAO,aAAa,CAAC;IACvB,CAAC;IAED,OAAO;QACL,GAAG,aAAa;QAChB,QAAQ,EAAE;YACR,GAAG,MAAM,CAAC,QAAQ;YAClB,GAAG,EAAE;gBACH,GAAG,aAAa,CAAC,QAAQ,EAAE,GAAG;gBAC9B,GAAG,MAAM,CAAC,QAAQ,EAAE,GAAG;aACxB;YACD,QAAQ,EAAE;gBACR,GAAG,aAAa,CAAC,QAAQ,EAAE,QAAQ;gBACnC,GAAG,MAAM,CAAC,QAAQ,EAAE,QAAQ;aAC7B;YACD,OAAO,EAAE;gBACP,GAAG,aAAa,CAAC,QAAQ,EAAE,OAAO;gBAClC,GAAG,MAAM,CAAC,QAAQ,EAAE,OAAO;aAC5B;YACD,KAAK,EAAE;gBACL,GAAG,aAAa,CAAC,QAAQ,EAAE,KAAK;gBAChC,GAAG,MAAM,CAAC,QAAQ,EAAE,KAAK;aAC1B;YACD,KAAK,EAAE;gBACL,GAAG,aAAa,CAAC,QAAQ,EAAE,KAAK;gBAChC,GAAG,MAAM,CAAC,QAAQ,EAAE,KAAK;aAC1B;YACD,eAAe,EAAE;gBACf,GAAG,aAAa,CAAC,QAAQ,EAAE,eAAe;gBAC1C,GAAG,MAAM,CAAC,QAAQ,EAAE,eAAe;aACpC;SACF;KACF,CAAC;AACJ,CAAC"}
|
|
1
|
+
{"version":3,"file":"merge-catalog-config.js","sourceRoot":"","sources":["../../../../../../src/server/plugins/catalog-entities/merge-catalog-config.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,kBAAkB,CAChC,aAAoC,EACpC,MAA8B;IAE9B,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,OAAO,aAAa,CAAC;IACvB,CAAC;IAED,OAAO;QACL,GAAG,aAAa;QAChB,QAAQ,EAAE;YACR,GAAG,MAAM,CAAC,QAAQ;YAClB,GAAG,EAAE;gBACH,GAAG,aAAa,CAAC,QAAQ,EAAE,GAAG;gBAC9B,GAAG,MAAM,CAAC,QAAQ,EAAE,GAAG;aACxB;YACD,QAAQ,EAAE;gBACR,GAAG,aAAa,CAAC,QAAQ,EAAE,QAAQ;gBACnC,GAAG,MAAM,CAAC,QAAQ,EAAE,QAAQ;aAC7B;YACD,OAAO,EAAE;gBACP,GAAG,aAAa,CAAC,QAAQ,EAAE,OAAO;gBAClC,GAAG,MAAM,CAAC,QAAQ,EAAE,OAAO;aAC5B;YACD,KAAK,EAAE;gBACL,GAAG,aAAa,CAAC,QAAQ,EAAE,KAAK;gBAChC,GAAG,MAAM,CAAC,QAAQ,EAAE,KAAK;aAC1B;YACD,KAAK,EAAE;gBACL,GAAG,aAAa,CAAC,QAAQ,EAAE,KAAK;gBAChC,GAAG,MAAM,CAAC,QAAQ,EAAE,KAAK;aAC1B;YACD,eAAe,EAAE;gBACf,GAAG,aAAa,CAAC,QAAQ,EAAE,eAAe;gBAC1C,GAAG,MAAM,CAAC,QAAQ,EAAE,eAAe;aACpC;YACD,WAAW,EAAE;gBACX,GAAG,aAAa,CAAC,QAAQ,EAAE,WAAW;gBACtC,GAAG,MAAM,CAAC,QAAQ,EAAE,WAAW;aAChC;YACD,aAAa,EAAE;gBACb,GAAG,aAAa,CAAC,QAAQ,EAAE,aAAa;gBACxC,GAAG,MAAM,CAAC,QAAQ,EAAE,aAAa;aAClC;SACF;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{CATALOG_ENTITIES_DEFAULT_CONFIG as d,ENTITY_SCHEMA_EXCLUDED_FOLDERS as A}from"../../constants/plugins/catalog-entities.js";import{promiseMapLimit as l}from"../../utils/async.js";import{validateEntity as I}from"./entities/validate-entity.js";import{extractEntityContent as _}from"./entities/extract-entities-content.js";import{CatalogEntitiesService as L}from"./databases/index.js";import{getTemplatePath as m}from"./utils/get-template-path.js";import{AsyncApiEntitiesExtractor as D}from"./extensions/api-description/extractors/asyncapi-entities-extractor.js";import{OpenApiEntitiesExtractor as O}from"./extensions/api-description/extractors/openapi-entities-extractor.js";import{mergeCatalogConfig as
|
|
1
|
+
import{CATALOG_ENTITIES_DEFAULT_CONFIG as d,ENTITY_SCHEMA_EXCLUDED_FOLDERS as A}from"../../constants/plugins/catalog-entities.js";import{promiseMapLimit as l}from"../../utils/async.js";import{validateEntity as I}from"./entities/validate-entity.js";import{extractEntityContent as _}from"./entities/extract-entities-content.js";import{CatalogEntitiesService as L}from"./databases/index.js";import{getTemplatePath as m}from"./utils/get-template-path.js";import{AsyncApiEntitiesExtractor as D}from"./extensions/api-description/extractors/asyncapi-entities-extractor.js";import{OpenApiEntitiesExtractor as O}from"./extensions/api-description/extractors/openapi-entities-extractor.js";import{mergeCatalogConfig as w}from"./merge-catalog-config.js";const g=15,N="catalog-entity-template",R="catalog-entity";async function Y(){return{id:"CatalogEntities",requiredEntitlements:["catalog"],async processContent(t,e){if(process.env.NEW_CATALOG_ENABLED!=="true")return;const{logger:a}=e,o=await L.getInstance({baseDbDir:t.serverOutDir,removeExisting:!0,runOnlyLocalDatabase:!0}),p=[new O({actions:t,context:e,catalogEntitiesService:o}),new D({actions:t,context:e,catalogEntitiesService:o})],E=a.startTiming();let s=0,c=0;const f=/\.(entity|entities)\.(yaml|yml)$/,u=await e.fs.scan(f);await l(u,g,async({relativePath:r})=>{try{if(A.some(n=>r.includes(n)))return;const i=await _(r,e);if(!i)return;I(i);for(const n of i.entities)o.createEntityInLocalDatabase(n,r);s+=i.entities.length,c++}catch(i){a.warn(`Error extracting entities from ${r}: ${i.message}`)}}),a.infoTime(E,`Found ${s} entities in ${c} files`);const C=t.registerServerPropsGetter(R,m("../get-server-props.js")),T=t.createTemplate(N,m("../template/index.js")),y=await e.getConfig();t.addRoute({duplicateInAllLocales:!0,slug:"/catalogs",fsPath:"",templateId:T,excludeFromSidebar:!0,hasClientRoutes:!0,serverPropsGetterIds:[C],getNavText:()=>Promise.resolve("Catalog"),getStaticData:async()=>({props:{catalogConfig:w(d,y.entitiesCatalog)}})}),await l(p,g,async r=>await r.extract()),a.info("Catalog Entities plugin processed")}}}export{Y as catalogEntitiesPlugin};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.js","sourceRoot":"","sources":["../../../../../../src/server/plugins/catalog-entities/plugin.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,+BAA+B,EAC/B,8BAA8B,GAC/B,MAAM,+CAA+C,CAAC;AAEvD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,yBAAyB,EAAE,MAAM,wEAAwE,CAAC;AACnH,OAAO,EAAE,wBAAwB,EAAE,MAAM,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AE,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC;gBAC5C,aAAa,EAAE,KAAK,IAAI,EAAE;oBACxB,OAAO;wBACL,KAAK,EAAE;4BACL,aAAa,EAAE,kBAAkB,CAC/B,+BAA+B,EAC/B,MAAM,CAAC,eAAe,CACvB;yBACF;qBACF,CAAC;gBACJ,CAAC;aACF,CAAC,CAAC;YAEH,MAAM,eAAe,CACnB,wBAAwB,EACxB,iBAAiB,EACjB,KAAK,EAAE,SAAS,EAAE,EAAE,CAAC,MAAM,SAAS,CAAC,OAAO,EAAE,CAC/C,CAAC;YAEF,MAAM,CAAC,IAAI,CAAC,mCAAmC,CAAC,CAAC;QACnD,CAAC;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -122,10 +122,10 @@ export declare const relatedEntityDatabaseSchema: {
|
|
|
122
122
|
readonly type: "string";
|
|
123
123
|
};
|
|
124
124
|
readonly relation_role: {
|
|
125
|
-
readonly type: "string";
|
|
125
|
+
readonly type: readonly ["string", "null"];
|
|
126
126
|
};
|
|
127
127
|
readonly relation_type: {
|
|
128
|
-
readonly type: "string";
|
|
128
|
+
readonly type: readonly ["string", "null"];
|
|
129
129
|
readonly enum: readonly ["partOf", "hasParts", "creates", "createdBy", "owns", "ownedBy", "implements", "implementedBy", "dependsOn", "dependencyOf", "uses", "usedBy", "produces", "consumes", "linksTo", "supersedes", "supersededBy", "compatibleWith", "extends", "extendedBy", "relatesTo", "hasMember", "memberOf", "triggers", "triggeredBy"];
|
|
130
130
|
};
|
|
131
131
|
readonly source_file: {
|
|
@@ -141,7 +141,7 @@ export declare const relatedEntityDatabaseSchema: {
|
|
|
141
141
|
readonly type: readonly ["string", "null"];
|
|
142
142
|
};
|
|
143
143
|
};
|
|
144
|
-
readonly required: readonly ["id", "key", "title", "type", "source"
|
|
144
|
+
readonly required: readonly ["id", "key", "title", "type", "source"];
|
|
145
145
|
readonly additionalProperties: false;
|
|
146
146
|
};
|
|
147
147
|
export type EntityRelationDto = FromSchema<typeof entityRelationDatabaseSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ENTITY_RELATION_TYPES as t}from"@redocly/theme/core/constants";const r={type:"object",properties:{id:{type:"string"},organization_id:{type:"string"},project_id:{type:"string"},source_key:{type:"string"},source_id:{type:["string","null"]},source_to_target_relation:{type:"string"},target_key:{type:"string"},target_id:{type:["string","null"]},target_to_source_relation:{type:"string"},created_at:{type:"string"},updated_at:{type:"string"},schema_version:{type:"number"}},required:["id","organization_id","project_id","source_key","source_to_target_relation","target_key","target_to_source_relation","created_at","updated_at","schema_version"],additionalProperties:!1},i={type:"object",properties:{id:{type:"string"},organization_id:{type:"string"},project_id:{type:"string"},key:{type:"string"},type:{type:"string"},title:{type:"string"},summary:{type:["string","null"]},tags:{type:["string","null"]},metadata:{type:["string","null"]},git:{type:["string","null"]},contact:{type:["string","null"]},links:{type:["string","null"]},created_at:{type:"string"},updated_at:{type:"string"},source:{type:"string"},source_file:{type:["string","null"]},schema_version:{type:"number"}},required:["id","organization_id","project_id","key","type","title","created_at","updated_at","source","schema_version"],additionalProperties:!1},n={type:"object",properties:{id:{type:"string"},key:{type:"string"},title:{type:"string"},type:{type:"string"},summary:{type:["string","null"]},source:{type:"string"},relation_role:{type:"string"},relation_type:{type:"string",enum:t},source_file:{type:["string","null"]},created_at:{type:["string","null"]},updated_at:{type:["string","null"]},metadata:{type:["string","null"]}},required:["id","key","title","type","source"
|
|
1
|
+
import{ENTITY_RELATION_TYPES as t}from"@redocly/theme/core/constants";const r={type:"object",properties:{id:{type:"string"},organization_id:{type:"string"},project_id:{type:"string"},source_key:{type:"string"},source_id:{type:["string","null"]},source_to_target_relation:{type:"string"},target_key:{type:"string"},target_id:{type:["string","null"]},target_to_source_relation:{type:"string"},created_at:{type:"string"},updated_at:{type:"string"},schema_version:{type:"number"}},required:["id","organization_id","project_id","source_key","source_to_target_relation","target_key","target_to_source_relation","created_at","updated_at","schema_version"],additionalProperties:!1},i={type:"object",properties:{id:{type:"string"},organization_id:{type:"string"},project_id:{type:"string"},key:{type:"string"},type:{type:"string"},title:{type:"string"},summary:{type:["string","null"]},tags:{type:["string","null"]},metadata:{type:["string","null"]},git:{type:["string","null"]},contact:{type:["string","null"]},links:{type:["string","null"]},created_at:{type:"string"},updated_at:{type:"string"},source:{type:"string"},source_file:{type:["string","null"]},schema_version:{type:"number"}},required:["id","organization_id","project_id","key","type","title","created_at","updated_at","source","schema_version"],additionalProperties:!1},n={type:"object",properties:{id:{type:"string"},key:{type:"string"},title:{type:"string"},type:{type:"string"},summary:{type:["string","null"]},source:{type:"string"},relation_role:{type:["string","null"]},relation_type:{type:["string","null"],enum:t},source_file:{type:["string","null"]},created_at:{type:["string","null"]},updated_at:{type:["string","null"]},metadata:{type:["string","null"]}},required:["id","key","title","type","source"],additionalProperties:!1};export{i as entityDatabaseSchema,r as entityRelationDatabaseSchema,n as relatedEntityDatabaseSchema};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"database-schemas.js","sourceRoot":"","sources":["../../../../../../../src/server/plugins/catalog-entities/schemas/database-schemas.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAEtE,MAAM,CAAC,MAAM,4BAA4B,GAAG;IAC1C,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACtB,eAAe,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACnC,UAAU,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC9B,UAAU,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC9B,SAAS,EAAE,EAAE,IAAI,EAAE,CAAC,QAAQ,EAAE,MAAM,CAAC,EAAE;QACvC,yBAAyB,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC7C,UAAU,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC9B,SAAS,EAAE,E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AAE,CAAC,QAAQ,EAAE,MAAM,CAAC,EAAE;QACnC,UAAU,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC9B,UAAU,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC9B,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC1B,WAAW,EAAE,EAAE,IAAI,EAAE,CAAC,QAAQ,EAAE,MAAM,CAAC,EAAE;QACzC,cAAc,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;KACnC;IACD,QAAQ,EAAE;QACR,IAAI;QACJ,iBAAiB;QACjB,YAAY;QACZ,KAAK;QACL,MAAM;QACN,OAAO;QACP,YAAY;QACZ,YAAY;QACZ,QAAQ;QACR,gBAAgB;KACjB;IACD,oBAAoB,EAAE,KAAK;CACnB,CAAC;AAEX,MAAM,CAAC,MAAM,2BAA2B,GAAG;IACzC,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACtB,GAAG,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACvB,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACzB,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACxB,OAAO,EAAE,EAAE,IAAI,EAAE,CAAC,QAAQ,EAAE,MAAM,CAAC,EAAE;QACrC,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC1B,aAAa,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;
|
|
1
|
+
{"version":3,"file":"database-schemas.js","sourceRoot":"","sources":["../../../../../../../src/server/plugins/catalog-entities/schemas/database-schemas.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAEtE,MAAM,CAAC,MAAM,4BAA4B,GAAG;IAC1C,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,EAAE,EAAE,EAAE,IAAI,EAAE,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EAAE,IAAI,EAAE,QAAQ,EAAE;QAC1B,aAAa,EAAE,EAAE,IAAI,EAAE,CAAC,QAAQ,EAAE,MAAM,CAAC,EAAE;QAC3C,aAAa,EAAE,EAAE,IAAI,EAAE,CAAC,QAAQ,EAAE,MAAM,CAAC,EAAE,IAAI,EAAE,qBAAqB,EAAE;QACxE,WAAW,EAAE,EAAE,IAAI,EAAE,CAAC,QAAQ,EAAE,MAAM,CAAC,EAAE;QACzC,UAAU,EAAE,EAAE,IAAI,EAAE,CAAC,QAAQ,EAAE,MAAM,CAAC,EAAE;QACxC,UAAU,EAAE,EAAE,IAAI,EAAE,CAAC,QAAQ,EAAE,MAAM,CAAC,EAAE;QACxC,QAAQ,EAAE,EAAE,IAAI,EAAE,CAAC,QAAQ,EAAE,MAAM,CAAC,EAAE;KACvC;IACD,QAAQ,EAAE,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,CAAC;IAClD,oBAAoB,EAAE,KAAK;CACnB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/server/plugins/catalog-entities/template/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAUtD,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,EAAE,SAAS,EAAE,EAAE;IAAE,SAAS,EAAE,eAAe,CAAA;CAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/server/plugins/catalog-entities/template/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAUtD,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,EAAE,SAAS,EAAE,EAAE;IAAE,SAAS,EAAE,eAAe,CAAA;CAAE,qBA2B3E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"react";import{QueryClientProvider as i,QueryClient as n}from"@tanstack/react-query";import{Catalog as
|
|
1
|
+
import*as e from"react";import{QueryClientProvider as i,QueryClient as n}from"@tanstack/react-query";import{Catalog as o}from"@redocly/theme/components/Catalog/Catalog";import{CatalogEntity as l}from"@redocly/theme/components/Catalog/CatalogEntity/CatalogEntity";import{NotFound as a}from"@redocly/theme/layouts/NotFound";const r=new n({defaultOptions:{queries:{refetchOnWindowFocus:!1}}});function c({pageProps:t}){return t.status==="notFound"?e.createElement(a,null):e.createElement(i,{client:r},"entities"in t&&e.createElement(o,{entitiesTypes:t.entitiesTypes,catalogConfig:t.catalogConfig,initialEntitiesList:t.entities,catalogSwitcherItems:t.catalogSwitcherItems}),"entity"in t&&e.createElement(e.Fragment,null,e.createElement(l,{entity:t.entity,initialRelations:t.relations,catalogConfig:t.catalogConfig,entitiesCatalogConfig:t.entitiesCatalogConfig})))}export{c as default};
|