@redocly/revel-reef 0.125.0-next.9 → 0.126.0-next.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/CHANGELOG.md +62 -3
- package/dist/.tsbuildinfo +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/catalog/useFetchCatalogEntitiesRelations.js +1 -1
- package/dist/client/app/hooks/catalog/useFetchCatalogEntitiesRelations.js.map +1 -1
- package/dist/client/app/utils/loadAndNavigate.js +1 -1
- package/dist/client/app/utils/loadAndNavigate.js.map +1 -1
- package/dist/client/providers/post-message/PostMessageProvider.js +1 -1
- package/dist/client/providers/post-message/PostMessageProvider.js.map +1 -1
- package/dist/server/node-bundle-entry.js +1 -1
- package/dist/server/node-bundle-entry.js.map +1 -1
- package/dist/server/persistence/file-hashes/repositories/file-hashes-local-read-repository.d.ts +2 -2
- package/dist/server/persistence/file-hashes/repositories/file-hashes-local-read-repository.d.ts.map +1 -1
- package/dist/server/persistence/file-hashes/repositories/file-hashes-local-read-repository.js.map +1 -1
- package/dist/server/persistence/file-hashes/repositories/file-hashes-local-repository.d.ts +5 -4
- package/dist/server/persistence/file-hashes/repositories/file-hashes-local-repository.d.ts.map +1 -1
- package/dist/server/persistence/file-hashes/repositories/file-hashes-local-repository.js.map +1 -1
- package/dist/server/plugins/catalog-entities/database/catalog-entities-service.d.ts +14 -1
- package/dist/server/plugins/catalog-entities/database/catalog-entities-service.d.ts.map +1 -1
- package/dist/server/plugins/catalog-entities/database/catalog-entities-service.js +1 -1
- package/dist/server/plugins/catalog-entities/database/catalog-entities-service.js.map +1 -1
- package/dist/server/plugins/catalog-entities/database/mappers/create-bff-entity.d.ts +1 -1
- package/dist/server/plugins/catalog-entities/database/mappers/create-bff-entity.d.ts.map +1 -1
- package/dist/server/plugins/catalog-entities/database/mappers/create-bff-entity.js.map +1 -1
- package/dist/server/plugins/catalog-entities/database/mappers/create-bff-related-entities.d.ts +1 -1
- package/dist/server/plugins/catalog-entities/database/mappers/create-bff-related-entities.d.ts.map +1 -1
- package/dist/server/plugins/catalog-entities/database/mappers/create-bff-related-entity.d.ts +2 -2
- package/dist/server/plugins/catalog-entities/database/mappers/create-bff-related-entity.d.ts.map +1 -1
- package/dist/server/plugins/catalog-entities/database/mappers/create-entity-db-record.d.ts +1 -1
- package/dist/server/plugins/catalog-entities/database/mappers/create-entity-db-record.d.ts.map +1 -1
- package/dist/server/plugins/catalog-entities/database/mappers/create-entity-db-record.js.map +1 -1
- package/dist/server/plugins/catalog-entities/database/mappers/create-entity-read-model.d.ts +2 -2
- package/dist/server/plugins/catalog-entities/database/mappers/create-entity-read-model.d.ts.map +1 -1
- package/dist/server/plugins/catalog-entities/database/mappers/create-entity-read-model.js.map +1 -1
- package/dist/server/plugins/catalog-entities/database/mappers/create-entity-relation-db-record-from-dto.d.ts +2 -2
- package/dist/server/plugins/catalog-entities/database/mappers/create-entity-relation-db-record-from-dto.d.ts.map +1 -1
- package/dist/server/plugins/catalog-entities/database/mappers/create-entity-relation-db-record-from-file-schema.d.ts +2 -2
- package/dist/server/plugins/catalog-entities/database/mappers/create-entity-relation-db-record-from-file-schema.d.ts.map +1 -1
- package/dist/server/plugins/catalog-entities/database/mappers/create-entity-relation-dto-from-file-schema.d.ts +4 -0
- package/dist/server/plugins/catalog-entities/database/mappers/create-entity-relation-dto-from-file-schema.d.ts.map +1 -0
- package/dist/server/plugins/catalog-entities/database/mappers/create-entity-relation-dto-from-file-schema.js +1 -0
- package/dist/server/plugins/catalog-entities/database/mappers/create-entity-relation-dto-from-file-schema.js.map +1 -0
- package/dist/server/plugins/catalog-entities/database/mappers/create-entity-relation.d.ts +1 -1
- package/dist/server/plugins/catalog-entities/database/mappers/create-entity-relation.d.ts.map +1 -1
- package/dist/server/plugins/catalog-entities/database/mappers/create-entity-relation.js.map +1 -1
- package/dist/server/plugins/catalog-entities/database/repositories/local/catalog-entities-local-read-repository.d.ts +1 -1
- package/dist/server/plugins/catalog-entities/database/repositories/local/catalog-entities-local-read-repository.d.ts.map +1 -1
- package/dist/server/plugins/catalog-entities/database/repositories/local/catalog-entities-local-repository.d.ts +9 -7
- package/dist/server/plugins/catalog-entities/database/repositories/local/catalog-entities-local-repository.d.ts.map +1 -1
- package/dist/server/plugins/catalog-entities/database/repositories/local/catalog-entities-local-repository.js +1 -1
- package/dist/server/plugins/catalog-entities/database/repositories/local/catalog-entities-local-repository.js.map +1 -1
- package/dist/server/plugins/catalog-entities/database/repositories/local/catalog-entities-local-write-repository.d.ts +2 -2
- package/dist/server/plugins/catalog-entities/database/repositories/local/catalog-entities-local-write-repository.d.ts.map +1 -1
- package/dist/server/plugins/catalog-entities/database/repositories/local/catalog-entities-local-write-repository.js +1 -1
- package/dist/server/plugins/catalog-entities/database/repositories/local/catalog-entities-local-write-repository.js.map +1 -1
- package/dist/server/plugins/catalog-entities/database/repositories/remote/catalog-entities-remote-repository.d.ts +5 -2
- package/dist/server/plugins/catalog-entities/database/repositories/remote/catalog-entities-remote-repository.d.ts.map +1 -1
- package/dist/server/plugins/catalog-entities/database/repositories/remote/catalog-entities-remote-repository.js +1 -1
- package/dist/server/plugins/catalog-entities/database/repositories/remote/catalog-entities-remote-repository.js.map +1 -1
- package/dist/server/plugins/catalog-entities/entities/extract-entities-content.d.ts +1 -1
- package/dist/server/plugins/catalog-entities/entities/extract-entities-content.d.ts.map +1 -1
- package/dist/server/plugins/catalog-entities/entities/extract-entities-content.js.map +1 -1
- package/dist/server/plugins/catalog-entities/extensions/extractors/api-description/asyncapi-entities-extractor.d.ts +1 -1
- package/dist/server/plugins/catalog-entities/extensions/extractors/api-description/asyncapi-entities-extractor.d.ts.map +1 -1
- package/dist/server/plugins/catalog-entities/extensions/extractors/api-description/asyncapi-entities-extractor.js +1 -1
- package/dist/server/plugins/catalog-entities/extensions/extractors/api-description/asyncapi-entities-extractor.js.map +1 -1
- package/dist/server/plugins/catalog-entities/extensions/extractors/api-description/base.d.ts +1 -1
- package/dist/server/plugins/catalog-entities/extensions/extractors/api-description/base.d.ts.map +1 -1
- package/dist/server/plugins/catalog-entities/extensions/extractors/api-description/base.js +1 -1
- package/dist/server/plugins/catalog-entities/extensions/extractors/api-description/base.js.map +1 -1
- package/dist/server/plugins/catalog-entities/extensions/extractors/api-description/openapi-entities-extractor.d.ts +3 -3
- package/dist/server/plugins/catalog-entities/extensions/extractors/api-description/openapi-entities-extractor.d.ts.map +1 -1
- package/dist/server/plugins/catalog-entities/extensions/extractors/api-description/openapi-entities-extractor.js +1 -1
- package/dist/server/plugins/catalog-entities/extensions/extractors/api-description/openapi-entities-extractor.js.map +1 -1
- package/dist/server/plugins/catalog-entities/extensions/extractors/fs-entities-extractor.d.ts +2 -2
- package/dist/server/plugins/catalog-entities/extensions/extractors/fs-entities-extractor.d.ts.map +1 -1
- package/dist/server/plugins/catalog-entities/get-server-props.d.ts +3 -5
- 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/plugin.d.ts.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/dto-schemas.d.ts +730 -21
- package/dist/server/plugins/catalog-entities/schemas/dto-schemas.d.ts.map +1 -1
- package/dist/server/plugins/catalog-entities/schemas/dto-schemas.js +1 -1
- package/dist/server/plugins/catalog-entities/schemas/dto-schemas.js.map +1 -1
- package/dist/server/plugins/catalog-entities/schemas/file-schemas.d.ts +26 -25
- package/dist/server/plugins/catalog-entities/schemas/file-schemas.d.ts.map +1 -1
- package/dist/server/plugins/catalog-entities/schemas/file-schemas.js +1 -1
- package/dist/server/plugins/catalog-entities/utils/has-options-changed.d.ts +2 -0
- package/dist/server/plugins/catalog-entities/utils/has-options-changed.d.ts.map +1 -0
- package/dist/server/plugins/catalog-entities/utils/has-options-changed.js +1 -0
- package/dist/server/plugins/catalog-entities/utils/has-options-changed.js.map +1 -0
- package/dist/server/plugins/config-parser/safe-parse.d.ts.map +1 -1
- package/dist/server/plugins/config-parser/safe-parse.js +1 -1
- package/dist/server/plugins/config-parser/safe-parse.js.map +1 -1
- package/dist/server/plugins/markdown/markdoc/custom-components/openapi/replay-openapi.d.ts.map +1 -1
- package/dist/server/plugins/markdown/markdoc/custom-components/openapi/replay-openapi.js +1 -1
- package/dist/server/plugins/markdown/markdoc/custom-components/openapi/replay-openapi.js.map +1 -1
- package/dist/server/providers/database/client.d.ts +2 -2
- package/dist/server/providers/database/client.d.ts.map +1 -1
- package/dist/server/providers/database/client.js +1 -1
- package/dist/server/providers/database/client.js.map +1 -1
- package/dist/server/providers/database/database-connections-manager.d.ts +3 -11
- package/dist/server/providers/database/database-connections-manager.d.ts.map +1 -1
- package/dist/server/providers/database/database-connections-manager.js +1 -1
- package/dist/server/providers/database/database-connections-manager.js.map +1 -1
- package/dist/server/providers/database/database-preconnect-service.d.ts.map +1 -1
- package/dist/server/providers/database/database-preconnect-service.js +1 -1
- package/dist/server/providers/database/database-preconnect-service.js.map +1 -1
- package/dist/server/providers/database/pagination/filter.d.ts.map +1 -1
- package/dist/server/providers/database/pagination/filter.js +1 -1
- package/dist/server/providers/database/pagination/filter.js.map +1 -1
- package/dist/server/providers/database/pagination/index.d.ts +0 -4
- package/dist/server/providers/database/pagination/index.d.ts.map +1 -1
- package/dist/server/providers/database/pagination/index.js +1 -1
- package/dist/server/providers/database/pagination/index.js.map +1 -1
- package/dist/server/providers/database/pagination/schemas.d.ts.map +1 -1
- package/dist/server/providers/database/pagination/schemas.js +1 -1
- package/dist/server/providers/database/pagination/schemas.js.map +1 -1
- package/dist/server/providers/database/pagination/sort.d.ts.map +1 -1
- package/dist/server/providers/database/pagination/sort.js +1 -1
- package/dist/server/providers/database/pagination/sort.js.map +1 -1
- package/dist/server/providers/database/pagination/utils/field-pattern-matcher.d.ts +4 -0
- package/dist/server/providers/database/pagination/utils/field-pattern-matcher.d.ts.map +1 -0
- package/dist/server/providers/database/pagination/utils/field-pattern-matcher.js +1 -0
- package/dist/server/providers/database/pagination/utils/field-pattern-matcher.js.map +1 -0
- package/dist/server/providers/database/utils/retry-async-operation.js +1 -1
- package/dist/server/providers/database/utils/retry-async-operation.js.map +1 -1
- package/dist/server/web-server/dev-server.d.ts.map +1 -1
- package/dist/server/web-server/dev-server.js +1 -1
- package/dist/server/web-server/dev-server.js.map +1 -1
- package/dist/server/web-server/middleware/catalogAuthMiddleware.js +1 -1
- package/dist/server/web-server/middleware/catalogAuthMiddleware.js.map +1 -1
- package/dist/server/web-server/routes/catalog/bff-catalog-related-entities.d.ts.map +1 -1
- package/dist/server/web-server/routes/catalog/bff-catalog-related-entities.js +1 -1
- package/dist/server/web-server/routes/catalog/bff-catalog-related-entities.js.map +1 -1
- package/dist/server/web-server/routes/catalog/bff-catalog.d.ts +1 -1
- package/dist/server/web-server/routes/catalog/bff-catalog.d.ts.map +1 -1
- package/dist/server/web-server/routes/catalog/bff-catalog.js +1 -1
- package/dist/server/web-server/routes/catalog/bff-catalog.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/routes/catalog/catalog.d.ts.map +1 -1
- package/dist/server/web-server/routes/catalog/catalog.js +1 -1
- package/dist/server/web-server/routes/catalog/catalog.js.map +1 -1
- package/dist/server/web-server/utils/prepare-list-response.d.ts +1 -1
- package/dist/server/web-server/utils/prepare-list-response.d.ts.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/package.json +9 -8
- package/dist/server/plugins/catalog-entities/database/index.d.ts +0 -4
- package/dist/server/plugins/catalog-entities/database/index.d.ts.map +0 -1
- package/dist/server/plugins/catalog-entities/database/index.js +0 -1
- package/dist/server/plugins/catalog-entities/database/index.js.map +0 -1
- package/dist/server/plugins/catalog-entities/entities/index.d.ts +0 -3
- package/dist/server/plugins/catalog-entities/entities/index.d.ts.map +0 -1
- package/dist/server/plugins/catalog-entities/entities/index.js +0 -1
- package/dist/server/plugins/catalog-entities/entities/index.js.map +0 -1
- package/dist/server/plugins/catalog-entities/index.d.ts +0 -6
- package/dist/server/plugins/catalog-entities/index.d.ts.map +0 -1
- package/dist/server/plugins/catalog-entities/index.js +0 -1
- package/dist/server/plugins/catalog-entities/index.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dto-schemas.d.ts","sourceRoot":"","sources":["../../../../../../../src/server/plugins/catalog-entities/schemas/dto-schemas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAIpD,OAAO,EAAoB,KAAK,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"dto-schemas.d.ts","sourceRoot":"","sources":["../../../../../../../src/server/plugins/catalog-entities/schemas/dto-schemas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAIpD,OAAO,EAAE,kBAAkB,EAAoB,KAAK,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAEhG,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgC1B,CAAC;AAEX,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAG7B,CAAC;AAEX,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGpB,CAAC;AAEX,MAAM,MAAM,uBAAuB,GAAG,UAAU,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACjF,MAAM,MAAM,0BAA0B,GAAG,UAAU,CAAC,OAAO,0BAA0B,CAAC,CAAC;AACvF,MAAM,MAAM,eAAe,GAAG,gBAAgB,CAAC;AAC/C,MAAM,MAAM,iBAAiB,GAAG,kBAAkB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ENTITY_RELATION_TYPES as
|
|
1
|
+
import{ENTITY_RELATION_TYPES as t}from"@redocly/theme/core/constants";import{entityFileSchema as e}from"./file-schemas.js";const r={type:"object",properties:{type:{type:"string",enum:t},sourceKey:{type:"string",minLength:2,maxLength:150},targetKey:{type:"string",minLength:2,maxLength:150},sourceId:{type:["string","null"]},targetId:{type:["string","null"]},sourceFile:{type:["string","null"]},fileHash:{type:["string","null"]}},required:["type","sourceKey","targetKey"],additionalProperties:!1},s={type:"array",items:r},i=e,p={type:"array",items:i};export{p as entitiesDtoSchema,s as entitiesRelationsDtoSchema,i as entityDtoSchema,r as entityRelationDtoSchema};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dto-schemas.js","sourceRoot":"","sources":["../../../../../../../src/server/plugins/catalog-entities/schemas/dto-schemas.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAEtE,OAAO,
|
|
1
|
+
{"version":3,"file":"dto-schemas.js","sourceRoot":"","sources":["../../../../../../../src/server/plugins/catalog-entities/schemas/dto-schemas.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAEtE,OAAO,EAAsB,gBAAgB,EAAyB,MAAM,mBAAmB,CAAC;AAEhG,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,qBAAqB;SAC5B;QACD,SAAS,EAAE;YACT,IAAI,EAAE,QAAQ;YACd,SAAS,EAAE,CAAC;YACZ,SAAS,EAAE,GAAG;SACf;QACD,SAAS,EAAE;YACT,IAAI,EAAE,QAAQ;YACd,SAAS,EAAE,CAAC;YACZ,SAAS,EAAE,GAAG;SACf;QACD,QAAQ,EAAE;YACR,IAAI,EAAE,CAAC,QAAQ,EAAE,MAAM,CAAC;SACzB;QACD,QAAQ,EAAE;YACR,IAAI,EAAE,CAAC,QAAQ,EAAE,MAAM,CAAC;SACzB;QACD,UAAU,EAAE;YACV,IAAI,EAAE,CAAC,QAAQ,EAAE,MAAM,CAAC;SACzB;QACD,QAAQ,EAAE;YACR,IAAI,EAAE,CAAC,QAAQ,EAAE,MAAM,CAAC;SACzB;KACF;IACD,QAAQ,EAAE,CAAC,MAAM,EAAE,WAAW,EAAE,WAAW,CAAC;IAC5C,oBAAoB,EAAE,KAAK;CACnB,CAAC;AAEX,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACxC,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,uBAAuB;CACtB,CAAC;AAEX,MAAM,CAAC,MAAM,eAAe,GAAG,gBAAgB,CAAC;AAEhD,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,eAAe;CACd,CAAC"}
|
|
@@ -5,7 +5,7 @@ export declare const slackChannelFileSchema: {
|
|
|
5
5
|
readonly properties: {
|
|
6
6
|
readonly name: {
|
|
7
7
|
readonly type: "string";
|
|
8
|
-
readonly minLength:
|
|
8
|
+
readonly minLength: 2;
|
|
9
9
|
readonly maxLength: 150;
|
|
10
10
|
};
|
|
11
11
|
};
|
|
@@ -22,7 +22,7 @@ export declare const slackContactFileSchema: {
|
|
|
22
22
|
readonly properties: {
|
|
23
23
|
readonly name: {
|
|
24
24
|
readonly type: "string";
|
|
25
|
-
readonly minLength:
|
|
25
|
+
readonly minLength: 2;
|
|
26
26
|
readonly maxLength: 150;
|
|
27
27
|
};
|
|
28
28
|
};
|
|
@@ -47,7 +47,7 @@ export declare const entityContactFileSchema: {
|
|
|
47
47
|
readonly properties: {
|
|
48
48
|
readonly name: {
|
|
49
49
|
readonly type: "string";
|
|
50
|
-
readonly minLength:
|
|
50
|
+
readonly minLength: 2;
|
|
51
51
|
readonly maxLength: 150;
|
|
52
52
|
};
|
|
53
53
|
};
|
|
@@ -67,7 +67,7 @@ export declare const entityLinkFileSchema: {
|
|
|
67
67
|
readonly properties: {
|
|
68
68
|
readonly label: {
|
|
69
69
|
readonly type: "string";
|
|
70
|
-
readonly minLength:
|
|
70
|
+
readonly minLength: 2;
|
|
71
71
|
readonly maxLength: 150;
|
|
72
72
|
};
|
|
73
73
|
readonly url: {
|
|
@@ -86,7 +86,7 @@ export declare const entityRelationFileSchema: {
|
|
|
86
86
|
};
|
|
87
87
|
readonly key: {
|
|
88
88
|
readonly type: "string";
|
|
89
|
-
readonly minLength:
|
|
89
|
+
readonly minLength: 2;
|
|
90
90
|
readonly maxLength: 100;
|
|
91
91
|
};
|
|
92
92
|
};
|
|
@@ -123,7 +123,7 @@ export declare const entityFileSchema: {
|
|
|
123
123
|
};
|
|
124
124
|
readonly title: {
|
|
125
125
|
readonly type: "string";
|
|
126
|
-
readonly minLength:
|
|
126
|
+
readonly minLength: 2;
|
|
127
127
|
readonly maxLength: 200;
|
|
128
128
|
};
|
|
129
129
|
readonly summary: {
|
|
@@ -161,7 +161,7 @@ export declare const entityFileSchema: {
|
|
|
161
161
|
readonly properties: {
|
|
162
162
|
readonly name: {
|
|
163
163
|
readonly type: "string";
|
|
164
|
-
readonly minLength:
|
|
164
|
+
readonly minLength: 2;
|
|
165
165
|
readonly maxLength: 150;
|
|
166
166
|
};
|
|
167
167
|
};
|
|
@@ -187,7 +187,7 @@ export declare const entityFileSchema: {
|
|
|
187
187
|
readonly properties: {
|
|
188
188
|
readonly label: {
|
|
189
189
|
readonly type: "string";
|
|
190
|
-
readonly minLength:
|
|
190
|
+
readonly minLength: 2;
|
|
191
191
|
readonly maxLength: 150;
|
|
192
192
|
};
|
|
193
193
|
readonly url: {
|
|
@@ -213,7 +213,7 @@ export declare const entityFileSchema: {
|
|
|
213
213
|
};
|
|
214
214
|
readonly key: {
|
|
215
215
|
readonly type: "string";
|
|
216
|
-
readonly minLength:
|
|
216
|
+
readonly minLength: 2;
|
|
217
217
|
readonly maxLength: 100;
|
|
218
218
|
};
|
|
219
219
|
};
|
|
@@ -269,7 +269,7 @@ export declare const entityFileSchema: {
|
|
|
269
269
|
};
|
|
270
270
|
readonly title: {
|
|
271
271
|
readonly type: "string";
|
|
272
|
-
readonly minLength:
|
|
272
|
+
readonly minLength: 2;
|
|
273
273
|
readonly maxLength: 200;
|
|
274
274
|
};
|
|
275
275
|
readonly summary: {
|
|
@@ -307,7 +307,7 @@ export declare const entityFileSchema: {
|
|
|
307
307
|
readonly properties: {
|
|
308
308
|
readonly name: {
|
|
309
309
|
readonly type: "string";
|
|
310
|
-
readonly minLength:
|
|
310
|
+
readonly minLength: 2;
|
|
311
311
|
readonly maxLength: 150;
|
|
312
312
|
};
|
|
313
313
|
};
|
|
@@ -333,7 +333,7 @@ export declare const entityFileSchema: {
|
|
|
333
333
|
readonly properties: {
|
|
334
334
|
readonly label: {
|
|
335
335
|
readonly type: "string";
|
|
336
|
-
readonly minLength:
|
|
336
|
+
readonly minLength: 2;
|
|
337
337
|
readonly maxLength: 150;
|
|
338
338
|
};
|
|
339
339
|
readonly url: {
|
|
@@ -359,7 +359,7 @@ export declare const entityFileSchema: {
|
|
|
359
359
|
};
|
|
360
360
|
readonly key: {
|
|
361
361
|
readonly type: "string";
|
|
362
|
-
readonly minLength:
|
|
362
|
+
readonly minLength: 2;
|
|
363
363
|
readonly maxLength: 100;
|
|
364
364
|
};
|
|
365
365
|
};
|
|
@@ -401,7 +401,7 @@ export declare const entityFileSchema: {
|
|
|
401
401
|
};
|
|
402
402
|
readonly title: {
|
|
403
403
|
readonly type: "string";
|
|
404
|
-
readonly minLength:
|
|
404
|
+
readonly minLength: 2;
|
|
405
405
|
readonly maxLength: 200;
|
|
406
406
|
};
|
|
407
407
|
readonly summary: {
|
|
@@ -439,7 +439,7 @@ export declare const entityFileSchema: {
|
|
|
439
439
|
readonly properties: {
|
|
440
440
|
readonly name: {
|
|
441
441
|
readonly type: "string";
|
|
442
|
-
readonly minLength:
|
|
442
|
+
readonly minLength: 2;
|
|
443
443
|
readonly maxLength: 150;
|
|
444
444
|
};
|
|
445
445
|
};
|
|
@@ -465,7 +465,7 @@ export declare const entityFileSchema: {
|
|
|
465
465
|
readonly properties: {
|
|
466
466
|
readonly label: {
|
|
467
467
|
readonly type: "string";
|
|
468
|
-
readonly minLength:
|
|
468
|
+
readonly minLength: 2;
|
|
469
469
|
readonly maxLength: 150;
|
|
470
470
|
};
|
|
471
471
|
readonly url: {
|
|
@@ -491,7 +491,7 @@ export declare const entityFileSchema: {
|
|
|
491
491
|
};
|
|
492
492
|
readonly key: {
|
|
493
493
|
readonly type: "string";
|
|
494
|
-
readonly minLength:
|
|
494
|
+
readonly minLength: 2;
|
|
495
495
|
readonly maxLength: 100;
|
|
496
496
|
};
|
|
497
497
|
};
|
|
@@ -537,7 +537,7 @@ export declare const entityFileSchema: {
|
|
|
537
537
|
};
|
|
538
538
|
readonly title: {
|
|
539
539
|
readonly type: "string";
|
|
540
|
-
readonly minLength:
|
|
540
|
+
readonly minLength: 2;
|
|
541
541
|
readonly maxLength: 200;
|
|
542
542
|
};
|
|
543
543
|
readonly summary: {
|
|
@@ -575,7 +575,7 @@ export declare const entityFileSchema: {
|
|
|
575
575
|
readonly properties: {
|
|
576
576
|
readonly name: {
|
|
577
577
|
readonly type: "string";
|
|
578
|
-
readonly minLength:
|
|
578
|
+
readonly minLength: 2;
|
|
579
579
|
readonly maxLength: 150;
|
|
580
580
|
};
|
|
581
581
|
};
|
|
@@ -601,7 +601,7 @@ export declare const entityFileSchema: {
|
|
|
601
601
|
readonly properties: {
|
|
602
602
|
readonly label: {
|
|
603
603
|
readonly type: "string";
|
|
604
|
-
readonly minLength:
|
|
604
|
+
readonly minLength: 2;
|
|
605
605
|
readonly maxLength: 150;
|
|
606
606
|
};
|
|
607
607
|
readonly url: {
|
|
@@ -627,7 +627,7 @@ export declare const entityFileSchema: {
|
|
|
627
627
|
};
|
|
628
628
|
readonly key: {
|
|
629
629
|
readonly type: "string";
|
|
630
|
-
readonly minLength:
|
|
630
|
+
readonly minLength: 2;
|
|
631
631
|
readonly maxLength: 100;
|
|
632
632
|
};
|
|
633
633
|
};
|
|
@@ -657,7 +657,7 @@ export declare const entityFileSchema: {
|
|
|
657
657
|
};
|
|
658
658
|
readonly title: {
|
|
659
659
|
readonly type: "string";
|
|
660
|
-
readonly minLength:
|
|
660
|
+
readonly minLength: 2;
|
|
661
661
|
readonly maxLength: 200;
|
|
662
662
|
};
|
|
663
663
|
readonly summary: {
|
|
@@ -695,7 +695,7 @@ export declare const entityFileSchema: {
|
|
|
695
695
|
readonly properties: {
|
|
696
696
|
readonly name: {
|
|
697
697
|
readonly type: "string";
|
|
698
|
-
readonly minLength:
|
|
698
|
+
readonly minLength: 2;
|
|
699
699
|
readonly maxLength: 150;
|
|
700
700
|
};
|
|
701
701
|
};
|
|
@@ -721,7 +721,7 @@ export declare const entityFileSchema: {
|
|
|
721
721
|
readonly properties: {
|
|
722
722
|
readonly label: {
|
|
723
723
|
readonly type: "string";
|
|
724
|
-
readonly minLength:
|
|
724
|
+
readonly minLength: 2;
|
|
725
725
|
readonly maxLength: 150;
|
|
726
726
|
};
|
|
727
727
|
readonly url: {
|
|
@@ -747,7 +747,7 @@ export declare const entityFileSchema: {
|
|
|
747
747
|
};
|
|
748
748
|
readonly key: {
|
|
749
749
|
readonly type: "string";
|
|
750
|
-
readonly minLength:
|
|
750
|
+
readonly minLength: 2;
|
|
751
751
|
readonly maxLength: 100;
|
|
752
752
|
};
|
|
753
753
|
};
|
|
@@ -822,4 +822,5 @@ export type EntityFileSchema = {
|
|
|
822
822
|
type: 'service' | 'domain' | 'team';
|
|
823
823
|
metadata?: DefaultMetadataSchema | null;
|
|
824
824
|
};
|
|
825
|
+
export type EntitiesFileSchema = EntityFileSchema[];
|
|
825
826
|
//# sourceMappingURL=file-schemas.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-schemas.d.ts","sourceRoot":"","sources":["../../../../../../../src/server/plugins/catalog-entities/schemas/file-schemas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,KAAK,EACV,kBAAkB,EAClB,4BAA4B,EAC5B,qBAAqB,EACrB,0BAA0B,EAC1B,wBAAwB,EACzB,MAAM,4BAA4B,CAAC;AAWpC,eAAO,MAAM,sBAAsB;;;;;;;;;;;CAWzB,CAAC;AAEX,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;CAqBzB,CAAC;AAEX,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2B1B,CAAC;AAEX,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;CAcvB,CAAC;AAEX,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;CAe3B,CAAC;AAyDX,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,IAAI,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IACvB,GAAG,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IACtB,OAAO,CAAC,EAAE,uBAAuB,GAAG,IAAI,CAAC;IACzC,KAAK,CAAC,EAAE,oBAAoB,EAAE,GAAG,IAAI,CAAC;IACtC,SAAS,CAAC,EAAE,wBAAwB,EAAE,GAAG,IAAI,CAAC;IAC9C,IAAI,EAAE,aAAa,CAAC;IACpB,QAAQ,EAAE,wBAAwB,CAAC;CACpC,GACD;IACE,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,IAAI,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IACvB,GAAG,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IACtB,OAAO,CAAC,EAAE,uBAAuB,GAAG,IAAI,CAAC;IACzC,KAAK,CAAC,EAAE,oBAAoB,EAAE,GAAG,IAAI,CAAC;IACtC,SAAS,CAAC,EAAE,wBAAwB,EAAE,GAAG,IAAI,CAAC;IAC9C,IAAI,EAAE,SAAS,GAAG,QAAQ,GAAG,MAAM,CAAC;IACpC,QAAQ,CAAC,EAAE,qBAAqB,GAAG,IAAI,CAAC;CACzC,CAAC"}
|
|
1
|
+
{"version":3,"file":"file-schemas.d.ts","sourceRoot":"","sources":["../../../../../../../src/server/plugins/catalog-entities/schemas/file-schemas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,KAAK,EACV,kBAAkB,EAClB,4BAA4B,EAC5B,qBAAqB,EACrB,0BAA0B,EAC1B,wBAAwB,EACzB,MAAM,4BAA4B,CAAC;AAWpC,eAAO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EAAE,GAAG,IAAI,CAAC;IAC9C,IAAI,EAAE,SAAS,GAAG,QAAQ,GAAG,MAAM,CAAC;IACpC,QAAQ,CAAC,EAAE,qBAAqB,GAAG,IAAI,CAAC;CACzC,CAAC;AAEN,MAAM,MAAM,kBAAkB,GAAG,gBAAgB,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ENTITY_RELATION_TYPES as t}from"@redocly/theme/core/constants";import{apiDescriptionMetadataSchema as a,apiOperationMetadataSchema as i,dataSchemaMetadataSchema as r,userMetadataSchema as n}from"./metadata-file-schemas.js";const m={type:"object",properties:{name:{type:"string",minLength:
|
|
1
|
+
import{ENTITY_RELATION_TYPES as t}from"@redocly/theme/core/constants";import{apiDescriptionMetadataSchema as a,apiOperationMetadataSchema as i,dataSchemaMetadataSchema as r,userMetadataSchema as n}from"./metadata-file-schemas.js";const m={type:"object",properties:{name:{type:"string",minLength:2,maxLength:150}},required:["name"],additionalProperties:!1},d={type:"object",properties:{channels:{type:"array",items:{type:"object",properties:{name:{type:"string",minLength:2,maxLength:150}},required:["name"],additionalProperties:!1}}},required:["channels"],additionalProperties:!1},p={type:"object",properties:{slack:{type:"object",properties:{channels:{type:"array",items:{type:"object",properties:{name:{type:"string",minLength:2,maxLength:150}},required:["name"],additionalProperties:!1}}},required:["channels"],additionalProperties:!1}},additionalProperties:!1},o={type:"object",properties:{label:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["label","url"],additionalProperties:!1},s={type:"object",properties:{type:{type:"string",enum:t},key:{type:"string",minLength:2,maxLength:100}},required:["type","key"],additionalProperties:!1},e={key:{type:"string",pattern:"^[a-z0-9]+(?:-[a-z0-9]+)*$",minLength:2,maxLength:150},title:{type:"string",minLength:2,maxLength:200},summary:{type:["string","null"],minLength:1,maxLength:500},tags:{type:["array","null"],items:{type:"string",minLength:1,maxLength:50}},git:{type:["array","null"],items:{type:"string"}},contact:{anyOf:[{type:"null"},p]},links:{anyOf:[{type:"null"},{type:"array",items:o}]},relations:{anyOf:[{type:"null"},{type:"array",items:s}]}},c={type:"object",discriminator:{propertyName:"type"},oneOf:[{type:"object",properties:{...e,type:{const:"user"},metadata:n},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",properties:{...e,type:{const:"api-operation"},metadata:i},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",properties:{...e,type:{const:"data-schema"},metadata:r},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",properties:{...e,type:{const:"api-description"},metadata:a},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",properties:{...e,type:{enum:["service","domain","team"]},metadata:{type:["object","null"],additionalProperties:!0}},required:["key","title","type"],additionalProperties:!1}]};export{p as entityContactFileSchema,c as entityFileSchema,o as entityLinkFileSchema,s as entityRelationFileSchema,m as slackChannelFileSchema,d as slackContactFileSchema};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"has-options-changed.d.ts","sourceRoot":"","sources":["../../../../../../../src/server/plugins/catalog-entities/utils/has-options-changed.ts"],"names":[],"mappings":"AAEA,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,GAAG,SAAS,EAAE,QAAQ,EAAE,CAAC,GAAG,OAAO,CASlF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{deepStrictEqual as e}from"node:assert";function n(r,t){if(!r)return!1;try{return e(r,t),!1}catch{return!0}}export{n as hasOptionsChanged};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"has-options-changed.js","sourceRoot":"","sources":["../../../../../../../src/server/plugins/catalog-entities/utils/has-options-changed.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE9C,MAAM,UAAU,iBAAiB,CAAI,QAAuB,EAAE,QAAW;IACvE,IAAI,CAAC,QAAQ;QAAE,OAAO,KAAK,CAAC;IAE5B,IAAI,CAAC;QACH,eAAe,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;QACpC,OAAO,KAAK,CAAC;IACf,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"safe-parse.d.ts","sourceRoot":"","sources":["../../../../../../src/server/plugins/config-parser/safe-parse.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"safe-parse.d.ts","sourceRoot":"","sources":["../../../../../../src/server/plugins/config-parser/safe-parse.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,cAAc,CAAC;AAG/B,OAAO,KAAK,EAAE,cAAc,EAAoB,MAAM,cAAc,CAAC;AAIrE,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,MAAM,EAAE,cAAc,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC,GAAG,CAAC,CAiBhF;AAiBD,eAAO,MAAM,GAAG,KAQd,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import s from"@redocly/ajv";import{removeDeepProperty as
|
|
1
|
+
import s from"@redocly/ajv";import l from"ajv-formats";import{removeDeepProperty as c}from"../../../utils/object/remove-deep-property.js";function F(t,e){const i=JSON.parse(JSON.stringify(e)),a=d(t);return a(i||{})||(a.errors?.map(o=>o.instancePath.slice(1))?.forEach(o=>{const n=o.split("/");c(i,n)}),a(i||{})),i||{}}function d(t){if(!t.$id)return r.compile(t);const e=r.getSchema(t.$id);return e||(r.addSchema(t),r.compile(t))}const r=new s({strictSchema:!1,allowUnionTypes:!0,useDefaults:!0,allErrors:!0,discriminator:!0,strictTypes:!1,verbose:!0});l(r);export{r as ajv,F as safeParsePartial};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"safe-parse.js","sourceRoot":"","sources":["../../../../../../src/server/plugins/config-parser/safe-parse.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,cAAc,CAAC;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AAC,GAAG,CAAC,CAAC;IAEzD,IAAI,sBAAsB,EAAE,CAAC;QAC3B,OAAO,sBAA0C,CAAC;IACpD,CAAC;IAED,GAAG,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;IACtB,OAAO,GAAG,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;AAC7B,CAAC;AAED,MAAM,CAAC,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC;IACzB,YAAY,EAAE,KAAK;IACnB,eAAe,EAAE,IAAI;IACrB,WAAW,EAAE,IAAI;IACjB,SAAS,EAAE,IAAI;IACf,aAAa,EAAE,IAAI;IACnB,WAAW,EAAE,KAAK;IAClB,OAAO,EAAE,IAAI;CACd,CAAC,CAAC;AACH,UAAU,CAAC,GAAU,CAAC,CAAC"}
|
package/dist/server/plugins/markdown/markdoc/custom-components/openapi/replay-openapi.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"replay-openapi.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/server/plugins/markdown/markdoc/custom-components/openapi/replay-openapi.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAStE,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,EAAE,CAAA;CAAE,CAAC;AAC/E,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAC;AAClE,MAAM,MAAM,sBAAsB,GAAG;IACnC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAClC,CAAC;AACF,MAAM,MAAM,mBAAmB,GAAG,OAAO,CAAC,MAAM,CAAC,wBAAwB,EAAE,MAAM,CAAC,CAAC,CAAC;AAEpF,MAAM,WAAW,mBAAmB;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,kBAAmB,SAAQ,mBAAmB;IAC7D,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE;QACV,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;IAEF,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,UAAU,CAAC,EAAE,MAAM,CAAC,wBAAwB,EAAE,MAAM,CAAC,CAAC;IACtD,WAAW,CAAC,EAAE,GAAG,CAAC;IAClB,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;CACvD;AAED,eAAO,MAAM,aAAa,UAAW,kBAAkB,
|
|
1
|
+
{"version":3,"file":"replay-openapi.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/server/plugins/markdown/markdoc/custom-components/openapi/replay-openapi.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAStE,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,EAAE,CAAA;CAAE,CAAC;AAC/E,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAC;AAClE,MAAM,MAAM,sBAAsB,GAAG;IACnC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAClC,CAAC;AACF,MAAM,MAAM,mBAAmB,GAAG,OAAO,CAAC,MAAM,CAAC,wBAAwB,EAAE,MAAM,CAAC,CAAC,CAAC;AAEpF,MAAM,WAAW,mBAAmB;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,kBAAmB,SAAQ,mBAAmB;IAC7D,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE;QACV,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;IAEF,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,UAAU,CAAC,EAAE,MAAM,CAAC,wBAAwB,EAAE,MAAM,CAAC,CAAC;IACtD,WAAW,CAAC,EAAE,GAAG,CAAC;IAClB,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;CACvD;AAED,eAAO,MAAM,aAAa,UAAW,kBAAkB,sBAiGtD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import o from"react";import{EmbeddedReplay as
|
|
1
|
+
import o from"react";import{EmbeddedReplay as E,StoreProvider as S}from"@redocly/openapi-docs";import{Admonition as M}from"@redocly/theme/markdoc/components/Admonition/Admonition";import{ErrorMessage as b,OpenApiComponentWrap as A}from"../styled.elements.js";import{useStore as I}from"../../hooks/use-store.js";import{getOperation as P}from"./get-operation/index.js";import{getMockServerDocsConfig as k}from"../../../../openapi-docs/template/mock-server-config.js";const D=y=>{const{descriptionFile:s,operationId:m,pointer:d,exampleKey:c,mimeType:l,requestBody:n,parameters:v,options:i,environment:r,environments:p}=y,{store:e,error:O,baseSlug:u}=I(s),a=o.useMemo(()=>({...e?.options,...i}),[i,e?.options]),f=o.useMemo(()=>{const{mockServer:x,...g}=a;return g},[a]),t=o.useMemo(()=>{if(e)return P(e,{operationId:m,pointer:d},f,{exampleKey:c,mimeType:l,environments:p,environment:r,requestBody:n})},[c,f,l,m,d,e,p,r,n]);return e?t?o.createElement(A,{"data-testid":"replay-openapi"},o.createElement(S,{options:{...i,disableRouter:!0,routingBasePath:u,mockServer:k(a.mockServer,u)},definition:e.definition,withState:{environments:p,allowedEnvironments:r?[r]:void 0,operation:{pointer:t.pointer,state:{requestValues:{body:n,...v}}}}},o.createElement(E,{activeOperationId:t.operationId||"",fullOpenApi:e.definition,corsProxyUrl:e.options.corsProxyUrl,pointer:t.pointer}))):o.createElement(M,{type:"danger"},"Cannot find OpenAPI operation by operationId or pointer in ",s):o.createElement(b,null,O)};export{D as ReplayOpenApi};
|
package/dist/server/plugins/markdown/markdoc/custom-components/openapi/replay-openapi.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"replay-openapi.js","sourceRoot":"","sources":["../../../../../../../../../src/server/plugins/markdown/markdoc/custom-components/openapi/replay-openapi.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAItE,OAAO,EAAE,UAAU,EAAE,MAAM,yDAAyD,CAAC;AAErF,OAAO,EAAE,YAAY,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAC3E,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,uBAAuB,EAAE,MAAM,yDAAyD,CAAC;AAiClG,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,KAAyB,EAAE,EAAE;IACzD,MAAM,EACJ,eAAe,EACf,WAAW,EACX,OAAO,EACP,UAAU,EACV,QAAQ,EACR,WAAW,EACX,UAAU,EACV,OAAO,EACP,WAAW,EACX,YAAY,GACb,GAAG,KAAK,CAAC;IAEV,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,QAAQ,CAAC,eAAe,CAAC,CAAC;IAE7D,MAAM,aAAa,GAAG,KAAK,CAAC,OAAO,CACjC,GAAG,EAAE,CAAC,CAAC;QACL,GAAG,KAAK,EAAE,OAAO;QACjB,GAAG,OAAO;KACX,CAAC,EACF,CAAC,OAAO,EAAE,KAAK,EAAE,OAAO,CAAC,CAC1B,CAAC;IAEF,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE;QACxC,IAAI,CAAC,KAAK;YAAE,OAAO;QACnB,OAAO,YAAY,CACjB,KAAK,EACL;YACE,WAAW;YACX,OAAO;SACR,EACD,
|
|
1
|
+
{"version":3,"file":"replay-openapi.js","sourceRoot":"","sources":["../../../../../../../../../src/server/plugins/markdown/markdoc/custom-components/openapi/replay-openapi.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAItE,OAAO,EAAE,UAAU,EAAE,MAAM,yDAAyD,CAAC;AAErF,OAAO,EAAE,YAAY,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAC3E,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,uBAAuB,EAAE,MAAM,yDAAyD,CAAC;AAiClG,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,KAAyB,EAAE,EAAE;IACzD,MAAM,EACJ,eAAe,EACf,WAAW,EACX,OAAO,EACP,UAAU,EACV,QAAQ,EACR,WAAW,EACX,UAAU,EACV,OAAO,EACP,WAAW,EACX,YA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AAG,OAAO;gBACV,aAAa,EAAE,IAAI;gBACnB,eAAe,EAAE,QAAQ;gBACzB,UAAU,EAAE,uBAAuB,CAAC,aAAa,CAAC,UAAU,EAAE,QAAQ,CAAC;aACxE,EACD,UAAU,EAAE,KAAK,CAAC,UAAU,EAC5B,SAAS,EAAE;gBACT,YAAY;gBACZ,mBAAmB,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,SAAS;gBAC5D,SAAS,EAAE;oBACT,OAAO,EAAE,cAAc,CAAC,OAAO;oBAC/B,KAAK,EAAE;wBACL,aAAa,EAAE;4BACb,IAAI,EAAE,WAAW;4BACjB,GAAG,UAAU;yBACd;qBACF;iBACF;aACF;YAED,oBAAC,cAAc,IACb,iBAAiB,EAAE,cAAc,CAAC,WAAW,IAAI,EAAE,EACnD,WAAW,EAAE,KAAK,CAAC,UAAU,EAC7B,YAAY,EAAE,KAAK,CAAC,OAAO,CAAC,YAAY,EACxC,OAAO,EAAE,cAAc,CAAC,OAAO,GAC/B,CACY,CACK,CACxB,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type Config } from '@libsql/client';
|
|
2
1
|
import { DrizzleConfig } from 'drizzle-orm';
|
|
3
2
|
import { drizzle } from 'drizzle-orm/libsql';
|
|
3
|
+
import type { Client, Config } from '@libsql/client';
|
|
4
4
|
import { DrizzleTransaction, TransactionsManager } from './transactions-manager.js';
|
|
5
5
|
export type DrizzleClient = ReturnType<typeof drizzle>;
|
|
6
6
|
type DatabaseClientInitOptions = {
|
|
@@ -10,7 +10,7 @@ type DatabaseClientInitOptions = {
|
|
|
10
10
|
export declare class DatabaseClient {
|
|
11
11
|
readonly dbClient: DrizzleClient;
|
|
12
12
|
private readonly txManager;
|
|
13
|
-
constructor(config: Config);
|
|
13
|
+
constructor(config: Config, createClient: (c: Config) => Client);
|
|
14
14
|
get transactionsManager(): TransactionsManager;
|
|
15
15
|
get client(): DrizzleClient | DrizzleTransaction;
|
|
16
16
|
static init(config: Config, options?: DatabaseClientInitOptions): Promise<DatabaseClient>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../src/server/providers/database/client.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../src/server/providers/database/client.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAO,MAAM,aAAa,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAG7C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAErD,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAEpF,MAAM,MAAM,aAAa,GAAG,UAAU,CAAC,OAAO,OAAO,CAAC,CAAC;AAEvD,KAAK,yBAAyB,GAAG;IAC/B,iCAAiC,CAAC,EAAE,OAAO,CAAC;IAC5C,aAAa,CAAC,EAAE,aAAa,CAAC;CAC/B,CAAC;AAEF,qBAAa,cAAc;IACzB,QAAQ,CAAC,QAAQ,EAAE,aAAa,CAAC;IACjC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAsB;gBAEpC,MAAM,EAAE,MAAM,EAAE,YAAY,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,MAAM;IAM/D,IAAI,mBAAmB,IAAI,mBAAmB,CAE7C;IAED,IAAI,MAAM,IAAI,aAAa,GAAG,kBAAkB,CAE/C;WAEY,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,yBAAyB,GAAG,OAAO,CAAC,cAAc,CAAC;IASzF,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,GAAE,MAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IAI3D,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAItB,IAAI;CAGX"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from"node:path";import{sql as s}from"drizzle-orm";import{drizzle as o}from"drizzle-orm/libsql";import{migrate as c}from"drizzle-orm/libsql/migrator";import{TransactionsManager as l}from"./transactions-manager.js";class r{dbClient;txManager;constructor(t,i){this.dbClient=o(i(t)),this.txManager=new l(this.dbClient)}get transactionsManager(){return this.txManager}get client(){return this.txManager.tx??this.dbClient}static async init(t,i){const{createClient:a}=await import("@libsql/client"),n=new r(t,a);return i?.runWithPragmaWalWriteOptimization&&await n.dbClient.run(s.raw("PRAGMA journal_mode = WAL;")),n}async migrate(t,i=""){await c(this.dbClient,{migrationsFolder:e.join(t,"migrations",i)})}async close(){this.dbClient.$client.close()}async sync(){return this.dbClient.$client.sync()}}export{r as DatabaseClient};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../../../../../src/server/providers/database/client.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../../../../../src/server/providers/database/client.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAiB,GAAG,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAItD,OAAO,EAAsB,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AASpF,MAAM,OAAO,cAAc;IAChB,QAAQ,CAAgB;IAChB,SAAS,CAAsB;IAEhD,YAAY,MAAc,EAAE,YAAmC;QAC7D,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC;QAE9C,IAAI,CAAC,SAAS,GAAG,IAAI,mBAAmB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC1D,CAAC;IAED,IAAI,mBAAmB;QACrB,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;IAED,IAAI,MAAM;QACR,OAAO,IAAI,CAAC,SAAS,CAAC,EAAE,IAAI,IAAI,CAAC,QAAQ,CAAC;IAC5C,CAAC;IAED,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,MAAc,EAAE,OAAmC;QACnE,MAAM,EAAE,YAAY,EAAE,GAAG,MAAM,MAAM,CAAC,gBAAgB,CAAC,CAAC;QACxD,MAAM,EAAE,GAAG,IAAI,cAAc,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;QACpD,IAAI,OAAO,EAAE,iCAAiC,EAAE,CAAC;YAC/C,MAAM,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,4BAA4B,CAAC,CAAC,CAAC;QAC/D,CAAC;QACD,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,MAAc,EAAE,SAAiB,EAAE;QAC/C,MAAM,OAAO,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,gBAAgB,EAAE,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,YAAY,EAAE,MAAM,CAAC,EAAE,CAAC,CAAC;IAC9F,CAAC;IAED,KAAK,CAAC,KAAK;QACT,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;IAChC,CAAC;IAED,KAAK,CAAC,IAAI;QACR,OAAO,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;IACtC,CAAC;CACF"}
|
|
@@ -2,22 +2,14 @@ import type { DatabaseInitConnectionOptions, DatabaseInitializationResult } from
|
|
|
2
2
|
import { type DatabaseInitializationStrategy } from './database-initialization-strategy.js';
|
|
3
3
|
type GetConnectionParams<TConfig extends DatabaseInitConnectionOptions> = {
|
|
4
4
|
config: TConfig;
|
|
5
|
-
strategy
|
|
6
|
-
options?: {
|
|
7
|
-
skipFailed?: boolean;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
type PreConnectParams<TConfig extends DatabaseInitConnectionOptions> = {
|
|
11
|
-
config: TConfig;
|
|
12
|
-
strategy?: DatabaseInitializationStrategy;
|
|
5
|
+
strategy: DatabaseInitializationStrategy;
|
|
13
6
|
};
|
|
14
7
|
export declare class DatabaseConnectionsManager {
|
|
15
8
|
private static get globalCache();
|
|
16
9
|
private static get connections();
|
|
17
|
-
private static get connectionPromises();
|
|
18
10
|
private static get failedConnections();
|
|
19
|
-
static
|
|
20
|
-
static
|
|
11
|
+
private static get pendingConnections();
|
|
12
|
+
static getConnection<TConfig extends DatabaseInitConnectionOptions>({ config, strategy, }: GetConnectionParams<TConfig>): Promise<DatabaseInitializationResult | null>;
|
|
21
13
|
private static connect;
|
|
22
14
|
private static initializeConnection;
|
|
23
15
|
private static getConnectionKey;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"database-connections-manager.d.ts","sourceRoot":"","sources":["../../../../../../src/server/providers/database/database-connections-manager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,6BAA6B,EAAE,4BAA4B,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"database-connections-manager.d.ts","sourceRoot":"","sources":["../../../../../../src/server/providers/database/database-connections-manager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,6BAA6B,EAAE,4BAA4B,EAAE,MAAM,YAAY,CAAC;AAI9F,OAAO,EAAE,KAAK,8BAA8B,EAAE,MAAM,uCAAuC,CAAC;AAE5F,KAAK,mBAAmB,CAAC,OAAO,SAAS,6BAA6B,IAAI;IACxE,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,8BAA8B,CAAC;CAC1C,CAAC;AASF,qBAAa,0BAA0B;IACrC,OAAO,CAAC,MAAM,KAAK,WAAW,GAY7B;IAED,OAAO,CAAC,MAAM,KAAK,WAAW,GAE7B;IAED,OAAO,CAAC,MAAM,KAAK,iBAAiB,GAEnC;IACD,OAAO,CAAC,MAAM,KAAK,kBAAkB,GAEpC;WAEY,aAAa,CAAC,OAAO,SAAS,6BAA6B,EAAE,EACxE,MAAM,EACN,QAAQ,GACT,EAAE,mBAAmB,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC,4BAA4B,GAAG,IAAI,CAAC;mBAWzD,OAAO;mBA8BP,oBAAoB;IAWzC,OAAO,CAAC,MAAM,CAAC,gBAAgB;CAGhC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{logger as r}from"../../utils/index.js";const o="_redocly_db_preconnect_cache_";class n{static get globalCache(){const t=globalThis;if(!t[o]){const e={connections:new Map,pendingConnections:new Map,failedConnections:new Set};t[o]=e}return t[o]}static get connections(){return n.globalCache.connections}static get failedConnections(){return n.globalCache.failedConnections}static get pendingConnections(){return n.globalCache.pendingConnections}static async getConnection({config:t,strategy:e}){const c=n.getConnectionKey(t),i=n.connections.get(c);return i||n.connect({config:t,key:c,strategy:e})}static async connect({config:t,key:e,strategy:c}){let i=n.pendingConnections.get(e);i||(n.failedConnections.has(e)&&r.warn("There was an error connecting to the database, retrying..."),i=n.initializeConnection(t,e,c),n.pendingConnections.set(e,i));try{return await i}catch{return n.failedConnections.add(e),null}finally{n.pendingConnections.delete(e)}}static async initializeConnection(t,e,c){const i=await c.initialize(t);return n.connections.set(e,i),n.failedConnections.delete(e),i}static getConnectionKey(t){return`${t.baseDbDir}/${t.additionalFolder}/${t.databaseName}`}}export{n as DatabaseConnectionsManager};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"database-connections-manager.js","sourceRoot":"","sources":["../../../../../../src/server/providers/database/database-connections-manager.ts"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"database-connections-manager.js","sourceRoot":"","sources":["../../../../../../src/server/providers/database/database-connections-manager.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAcjD,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 -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"database-preconnect-service.d.ts","sourceRoot":"","sources":["../../../../../../src/server/providers/database/database-preconnect-service.ts"],"names":[],"mappings":"AAUA,qBAAa,yBAAyB;IACpC,OAAO,CAAC,MAAM,CAAC,aAAa,CAAS;WAExB,IAAI,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"database-preconnect-service.d.ts","sourceRoot":"","sources":["../../../../../../src/server/providers/database/database-preconnect-service.ts"],"names":[],"mappings":"AAUA,qBAAa,yBAAyB;IACpC,OAAO,CAAC,MAAM,CAAC,aAAa,CAAS;WAExB,IAAI,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;mBAsB9B,iCAAiC;CA+BvD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{logger as
|
|
1
|
+
import{logger as e}from"../../utils/index.js";import{DatabaseConnectionsManager as n}from"./database-connections-manager.js";import{CATALOG_DATABASE_MIGRATIONS_FOLDER as o,CATALOG_REMOTE_DATABASE_FOLDER as r,CATALOG_REMOTE_DATABASE_NAME as E}from"../../plugins/catalog-entities/database/consts.js";import{RemoteDatabaseInitializationStrategy as A}from"./database-initialization-strategy.js";class a{static isInitialized=!1;static async init(s){if(!(process.env.REDOCLY_LOCAL_DEV==="true"||process.env.CI==="true")&&!a.isInitialized)try{await a.preconnectCatalogEntitiesDatabase(s)==="PRECONNECTED"&&(a.isInitialized=!0)}catch(t){e.error("Failed to preconnect to databases",t)}}static async preconnectCatalogEntitiesDatabase(s){const i=process.env.SQLD_REMOTE_DATABASE_URL,t=process.env.SQLD_REMOTE_DATABASE_AUTH_TOKEN;return!i||!t?(e.warn("SQLD_REMOTE_DATABASE_URL or SQLD_REMOTE_DATABASE_AUTH_TOKEN is not set yet"),"NOT_PRECONNECTED"):await n.getConnection({config:{baseDbDir:s,syncUrl:i,authToken:t,databaseName:E,additionalFolder:r,migrationsFolder:o},strategy:new A({skipLogs:!1})})?(e.info("Catalog entities database preconnected"),"PRECONNECTED"):(e.warn("Catalog entities database preconnect failed"),"NOT_PRECONNECTED")}}export{a as DatabasePreconnectService};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"database-preconnect-service.js","sourceRoot":"","sources":["../../../../../../src/server/providers/database/database-preconnect-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAEjD,OAAO,EAAE,0BAA0B,EAAE,MAAM,mCAAmC,CAAC;AAC/E,OAAO,EACL,kCAAkC,EAClC,8BAA8B,EAC9B,4BAA4B,GAC7B,MAAM,mDAAmD,CAAC;AAC3D,OAAO,EAAE,oCAAoC,EAAE,MAAM,uCAAuC,CAAC;AAE7F,MAAM,OAAO,yBAAyB;IAC5B,MAAM,CAAC,aAAa,GAAG,KAAK,CAAC;IAErC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,SAAiB;QACjC,IAAI,yBAAyB,CAAC,aAAa,EAAE,CAAC;YAC5C,OAAO;QACT,CAAC;QAED,IAAI,CAAC;YACH,MAAM,yBAAyB,CAAC,iCAAiC,CAAC,SAAS,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"database-preconnect-service.js","sourceRoot":"","sources":["../../../../../../src/server/providers/database/database-preconnect-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAEjD,OAAO,EAAE,0BAA0B,EAAE,MAAM,mCAAmC,CAAC;AAC/E,OAAO,EACL,kCAAkC,EAClC,8BAA8B,EAC9B,4BAA4B,GAC7B,MAAM,mDAAmD,CAAC;AAC3D,OAAO,EAAE,oCAAoC,EAAE,MAAM,uCAAuC,CAAC;AAE7F,MAAM,OAAO,yBAAyB;IAC5B,MAAM,CAAC,aAAa,GAAG,KAAK,CAAC;IAErC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,SAAiB;QACjC,MAAM,kBA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AAE,CAAC;YACX,MAAM,CAAC,IAAI,CAAC,wCAAwC,CAAC,CAAC;YACtD,OAAO,cAAc,CAAC;QACxB,CAAC;QAED,MAAM,CAAC,IAAI,CAAC,6CAA6C,CAAC,CAAC;QAC3D,OAAO,kBAAkB,CAAC;IAC5B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter.d.ts","sourceRoot":"","sources":["../../../../../../../src/server/providers/database/pagination/filter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,EAcL,GAAG,EACJ,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,MAAM,EAAoD,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"filter.d.ts","sourceRoot":"","sources":["../../../../../../../src/server/providers/database/pagination/filter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,EAcL,GAAG,EACJ,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,MAAM,EAAoD,MAAM,YAAY,CAAC;AAKtF,wBAAgB,WAAW,CAAC,CAAC,SAAS,YAAY,GAAG,YAAY,EAC/D,UAAU,EAAE,CAAC,EACb,MAAM,CAAC,EAAE,MAAM,GACd;IAAE,UAAU,EAAE,CAAC,CAAC;IAAC,cAAc,EAAE,GAAG,GAAG,IAAI,CAAA;CAAE,CAQ/C;AAED,wBAAgB,6BAA6B,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,GAAG,GAAG,SAAS,CAU9E;AA8KD,wBAAgB,gBAAgB,CAC9B,KAAK,GAAE,MAAW,EAClB,eAAe,GAAE,MAAM,EAAO,EAC9B,qBAAqB,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM,GACjD,MAAM,GAAG,SAAS,CAQpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{and as
|
|
1
|
+
import{and as k,between as O,eq as R,inArray as S,isNotNull as b,isNull as T,like as _,ne as v,notBetween as I,notInArray as q,notLike as y,or as F,sql as a}from"drizzle-orm";import{isFilterCondition as N}from"./types.js";import{transformToSnakeCase as U}from"./utils/transform-to-snake-case.js";import{isFieldAllowed as W}from"./utils/field-pattern-matcher.js";import{OPERATORS as u}from"./constants.js";function H(n,e){const o=P(e);return o?{sqlBuilder:n,whereCondition:o}:{sqlBuilder:n,whereCondition:null}}function P(n){if(n)return N(n)?x(n):C(n)}const x=n=>{const{op:e,conditions:o}=n,t=[];for(const l of o){if(N(l)){const i=x(l);i&&t.push(i);continue}const r=C(l);r&&t.push(r)}return e===u.AND?k(...t):F(...t)},D=(n,e)=>e.length>1?`$.${e.slice(1).join(".")}.${n}`:`$.${n}`,p=({operator:n,value:e,field:o,parentFields:t,negation:l})=>{const r=a.identifier(t[0]),i=D(o,t);switch(n){case"equal":return l?a`(json_extract(${r}, ${i}) != ${e} OR json_extract(${r}, ${i}) IS NULL)`:a`json_extract(${r}, ${i}) == ${e}`;case"equalNull":return l?a`json_extract(${r}, ${i}) IS NOT NULL`:a`json_extract(${r}, ${i}) IS NULL`;case"contains":return l?a`(json_extract(${r}, ${i}) NOT LIKE ${e} OR json_extract(${r}, ${i}) IS NULL)`:a`json_extract(${r}, ${i}) LIKE ${e}`;case"in":if(Array.isArray(e)){const s=e.map(c=>a`json_extract(${r}, ${i}) == ${c}`);return l?a`(NOT (${F(...s)}) OR json_extract(${r}, ${i}) IS NULL)`:F(...s)}break;case"between":if(Array.isArray(e)&&e.length===2)return l?a`(NOT (json_extract(${r}, ${i}) BETWEEN ${e[0]} AND ${e[1]}) OR json_extract(${r}, ${i}) IS NULL)`:a`json_extract(${r}, ${i}) BETWEEN ${e[0]} AND ${e[1]}`;break;default:throw new Error(`Unsupported operator: ${n} for json path`)}},B=n=>{const{field:e,operator:o,value:t,modifier:l,parentFields:r}=n,i=l==="not";if(!r||r.length<1)throw new Error("convertNestedFilterClauseToSql called without parentFields");switch(o){case"equal":return p(t===null?{operator:"equalNull",value:t,field:e,parentFields:r,negation:i}:{operator:o,value:t,field:e,parentFields:r,negation:i});case"contains":if(typeof t=="string"){const s=t.startsWith("%")||t.endsWith("%")?t:`%${t}%`;return p({operator:o,value:s,field:e,parentFields:r,negation:i})}break;case"in":if(Array.isArray(t))return p({operator:o,value:t,field:e,parentFields:r,negation:i});break;case"between":if(Array.isArray(t)&&t.length===2)return p({operator:o,value:t,field:e,parentFields:r,negation:i});break;default:throw new Error(`Unsupported filter operator: ${o}`)}},C=n=>{const{field:e,operator:o,value:t,modifier:l,parentFields:r}=n;if(r&&r.length>=1)return B(n);const i=l==="not",s=a.identifier(e);switch(o){case"equal":return t===null?i?b(s):T(s):i?v(s,t):R(s,t);case"contains":if(typeof t=="string"){const c=t.startsWith("%")||t.endsWith("%")?t:`%${t}%`;return i?y(s,c):_(s,c)}break;case"in":if(Array.isArray(t))return i?q(s,t):S(s,t);break;case"between":if(Array.isArray(t)&&t.length===2)return i?I(s,t[0],t[1]):O(s,t[0],t[1]);break;default:throw new Error(`Unsupported filter operator: ${o}`)}},E=["'",'"'];function M(n="",e=[],o={}){if(!n||!n.trim())return;const t=g(n);return L(t,e,o)}function m(n){const e=Q(n);if(e.operator===":"){const o=j(e.value,",");if(o.length>1)return{operator:"in",field:e.field,parentFields:e.parentFields,value:o.map(h),modifier:e.modifier};const t=j(e.value,"..");return t.length===2?{operator:"between",field:e.field,parentFields:e.parentFields,value:[h(t[0]),h(t[1])],modifier:e.modifier}:{operator:"equal",field:e.field,parentFields:e.parentFields,value:e.value==="null"?null:h(e.value),modifier:e.modifier}}else if(e.operator==="~")return{operator:"contains",field:e.field,parentFields:e.parentFields,value:h(e.value),modifier:e.modifier};throw new Error(`Unsupported filter clause: ${n}`)}function Q(n){const e="^(?<modifier>^-?)",o="(?<field>[a-z][\\w.]*)",t="(?<operator>:|~)",l="(?<value>.+)",r=new RegExp(`^${e}${o}${t}${l}$`,"i"),i=n.match(r);if(!i||!i.groups)throw new Error(`Invalid filter clause: ${n}`);const{operator:s,value:c,modifier:$}=i.groups,f=i.groups.field.split(".");return{field:f.pop(),parentFields:f,operator:s,value:c,modifier:$==="-"?"not":void 0}}function j(n,e){const o=[];let t="",l=!1,r=0;for(let i=0;i<n.length;i++){const s=n[i-1],c=n[i];if(r>0){r--;continue}s!=="\\"&&E.includes(c)&&(l=!l),!l&&n.slice(i,i+e.length)===e?(o.push(t),t="",r=e.length-1):t+=c}return t&&o.push(t),o}function h(n){for(const e of E)if(n.startsWith(e)&&n.endsWith(e))return n.slice(1,-1);return n}function g(n){let e="",o=0,t=!1,l="";const r=[];for(let s=0;s<n.length;s++){const c=n[s],$=n[s+1];if(['"',"'"].includes(c)&&(s===0||n[s-1]!=="\\")){if(!t){t=!0,l=c,e+=c;continue}if(c===l){t=!1,l="",e+=c;continue}}if(t){e+=c;continue}if(o===0){const f=$==="A"&&n.slice(s+1,s+5)===`${u.AND} `;if(c===" "&&f){const d=e.trim();d&&(r.push(m(d)),e="");const w=g(n.slice(s+5));return{op:u.AND,conditions:[...r,w]}}const A=$==="O"&&n.slice(s+1,s+4)===`${u.OR} `;if(c===" "&&A){const d=e.trim();d&&(r.push(m(d)),e="");const w=g(n.slice(s+4));return{op:u.OR,conditions:[...r,w]}}}if(c==="("){const f=e.trim();o===0&&f&&(r.push(m(f)),e=""),o++,e+=c;continue}if(c===")"){if(o--,e+=c,o===0){const f=e.slice(1,-1);r.push(g(f)),e=""}continue}e+=c}const i=e.trim();return i&&r.push(m(i)),r.length===1?r[0]:{op:u.AND,conditions:r}}function L(n,e,o){if("field"in n){const t=n.parentFields?.length?`${n.parentFields.join(".")}.${n.field}`:n.field;if(!W(t,e))throw new Error(`Invalid filter field: ${t}`);const l=n.parentFields?.length?n.field:o[n.field]||U(n.field);return{...n,field:l}}else return{...n,conditions:n.conditions.map(t=>L(t,e,o))}}export{H as applyFilter,P as convertFilterToWhereCondition,M as parseFilterQuery};
|