@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.
Files changed (166) hide show
  1. package/CHANGELOG.md +62 -3
  2. package/dist/.tsbuildinfo +1 -1
  3. package/dist/client/app/hooks/catalog/useFetchCatalogEntities.js +1 -1
  4. package/dist/client/app/hooks/catalog/useFetchCatalogEntities.js.map +1 -1
  5. package/dist/client/app/hooks/catalog/useFetchCatalogEntitiesRelations.js +1 -1
  6. package/dist/client/app/hooks/catalog/useFetchCatalogEntitiesRelations.js.map +1 -1
  7. package/dist/client/app/utils/loadAndNavigate.js +1 -1
  8. package/dist/client/app/utils/loadAndNavigate.js.map +1 -1
  9. package/dist/client/providers/post-message/PostMessageProvider.js +1 -1
  10. package/dist/client/providers/post-message/PostMessageProvider.js.map +1 -1
  11. package/dist/server/node-bundle-entry.js +1 -1
  12. package/dist/server/node-bundle-entry.js.map +1 -1
  13. package/dist/server/persistence/file-hashes/repositories/file-hashes-local-read-repository.d.ts +2 -2
  14. package/dist/server/persistence/file-hashes/repositories/file-hashes-local-read-repository.d.ts.map +1 -1
  15. package/dist/server/persistence/file-hashes/repositories/file-hashes-local-read-repository.js.map +1 -1
  16. package/dist/server/persistence/file-hashes/repositories/file-hashes-local-repository.d.ts +5 -4
  17. package/dist/server/persistence/file-hashes/repositories/file-hashes-local-repository.d.ts.map +1 -1
  18. package/dist/server/persistence/file-hashes/repositories/file-hashes-local-repository.js.map +1 -1
  19. package/dist/server/plugins/catalog-entities/database/catalog-entities-service.d.ts +14 -1
  20. package/dist/server/plugins/catalog-entities/database/catalog-entities-service.d.ts.map +1 -1
  21. package/dist/server/plugins/catalog-entities/database/catalog-entities-service.js +1 -1
  22. package/dist/server/plugins/catalog-entities/database/catalog-entities-service.js.map +1 -1
  23. package/dist/server/plugins/catalog-entities/database/mappers/create-bff-entity.d.ts +1 -1
  24. package/dist/server/plugins/catalog-entities/database/mappers/create-bff-entity.d.ts.map +1 -1
  25. package/dist/server/plugins/catalog-entities/database/mappers/create-bff-entity.js.map +1 -1
  26. package/dist/server/plugins/catalog-entities/database/mappers/create-bff-related-entities.d.ts +1 -1
  27. package/dist/server/plugins/catalog-entities/database/mappers/create-bff-related-entities.d.ts.map +1 -1
  28. package/dist/server/plugins/catalog-entities/database/mappers/create-bff-related-entity.d.ts +2 -2
  29. package/dist/server/plugins/catalog-entities/database/mappers/create-bff-related-entity.d.ts.map +1 -1
  30. package/dist/server/plugins/catalog-entities/database/mappers/create-entity-db-record.d.ts +1 -1
  31. package/dist/server/plugins/catalog-entities/database/mappers/create-entity-db-record.d.ts.map +1 -1
  32. package/dist/server/plugins/catalog-entities/database/mappers/create-entity-db-record.js.map +1 -1
  33. package/dist/server/plugins/catalog-entities/database/mappers/create-entity-read-model.d.ts +2 -2
  34. package/dist/server/plugins/catalog-entities/database/mappers/create-entity-read-model.d.ts.map +1 -1
  35. package/dist/server/plugins/catalog-entities/database/mappers/create-entity-read-model.js.map +1 -1
  36. package/dist/server/plugins/catalog-entities/database/mappers/create-entity-relation-db-record-from-dto.d.ts +2 -2
  37. package/dist/server/plugins/catalog-entities/database/mappers/create-entity-relation-db-record-from-dto.d.ts.map +1 -1
  38. package/dist/server/plugins/catalog-entities/database/mappers/create-entity-relation-db-record-from-file-schema.d.ts +2 -2
  39. package/dist/server/plugins/catalog-entities/database/mappers/create-entity-relation-db-record-from-file-schema.d.ts.map +1 -1
  40. package/dist/server/plugins/catalog-entities/database/mappers/create-entity-relation-dto-from-file-schema.d.ts +4 -0
  41. package/dist/server/plugins/catalog-entities/database/mappers/create-entity-relation-dto-from-file-schema.d.ts.map +1 -0
  42. package/dist/server/plugins/catalog-entities/database/mappers/create-entity-relation-dto-from-file-schema.js +1 -0
  43. package/dist/server/plugins/catalog-entities/database/mappers/create-entity-relation-dto-from-file-schema.js.map +1 -0
  44. package/dist/server/plugins/catalog-entities/database/mappers/create-entity-relation.d.ts +1 -1
  45. package/dist/server/plugins/catalog-entities/database/mappers/create-entity-relation.d.ts.map +1 -1
  46. package/dist/server/plugins/catalog-entities/database/mappers/create-entity-relation.js.map +1 -1
  47. package/dist/server/plugins/catalog-entities/database/repositories/local/catalog-entities-local-read-repository.d.ts +1 -1
  48. package/dist/server/plugins/catalog-entities/database/repositories/local/catalog-entities-local-read-repository.d.ts.map +1 -1
  49. package/dist/server/plugins/catalog-entities/database/repositories/local/catalog-entities-local-repository.d.ts +9 -7
  50. package/dist/server/plugins/catalog-entities/database/repositories/local/catalog-entities-local-repository.d.ts.map +1 -1
  51. package/dist/server/plugins/catalog-entities/database/repositories/local/catalog-entities-local-repository.js +1 -1
  52. package/dist/server/plugins/catalog-entities/database/repositories/local/catalog-entities-local-repository.js.map +1 -1
  53. package/dist/server/plugins/catalog-entities/database/repositories/local/catalog-entities-local-write-repository.d.ts +2 -2
  54. package/dist/server/plugins/catalog-entities/database/repositories/local/catalog-entities-local-write-repository.d.ts.map +1 -1
  55. package/dist/server/plugins/catalog-entities/database/repositories/local/catalog-entities-local-write-repository.js +1 -1
  56. package/dist/server/plugins/catalog-entities/database/repositories/local/catalog-entities-local-write-repository.js.map +1 -1
  57. package/dist/server/plugins/catalog-entities/database/repositories/remote/catalog-entities-remote-repository.d.ts +5 -2
  58. package/dist/server/plugins/catalog-entities/database/repositories/remote/catalog-entities-remote-repository.d.ts.map +1 -1
  59. package/dist/server/plugins/catalog-entities/database/repositories/remote/catalog-entities-remote-repository.js +1 -1
  60. package/dist/server/plugins/catalog-entities/database/repositories/remote/catalog-entities-remote-repository.js.map +1 -1
  61. package/dist/server/plugins/catalog-entities/entities/extract-entities-content.d.ts +1 -1
  62. package/dist/server/plugins/catalog-entities/entities/extract-entities-content.d.ts.map +1 -1
  63. package/dist/server/plugins/catalog-entities/entities/extract-entities-content.js.map +1 -1
  64. package/dist/server/plugins/catalog-entities/extensions/extractors/api-description/asyncapi-entities-extractor.d.ts +1 -1
  65. package/dist/server/plugins/catalog-entities/extensions/extractors/api-description/asyncapi-entities-extractor.d.ts.map +1 -1
  66. package/dist/server/plugins/catalog-entities/extensions/extractors/api-description/asyncapi-entities-extractor.js +1 -1
  67. package/dist/server/plugins/catalog-entities/extensions/extractors/api-description/asyncapi-entities-extractor.js.map +1 -1
  68. package/dist/server/plugins/catalog-entities/extensions/extractors/api-description/base.d.ts +1 -1
  69. package/dist/server/plugins/catalog-entities/extensions/extractors/api-description/base.d.ts.map +1 -1
  70. package/dist/server/plugins/catalog-entities/extensions/extractors/api-description/base.js +1 -1
  71. package/dist/server/plugins/catalog-entities/extensions/extractors/api-description/base.js.map +1 -1
  72. package/dist/server/plugins/catalog-entities/extensions/extractors/api-description/openapi-entities-extractor.d.ts +3 -3
  73. package/dist/server/plugins/catalog-entities/extensions/extractors/api-description/openapi-entities-extractor.d.ts.map +1 -1
  74. package/dist/server/plugins/catalog-entities/extensions/extractors/api-description/openapi-entities-extractor.js +1 -1
  75. package/dist/server/plugins/catalog-entities/extensions/extractors/api-description/openapi-entities-extractor.js.map +1 -1
  76. package/dist/server/plugins/catalog-entities/extensions/extractors/fs-entities-extractor.d.ts +2 -2
  77. package/dist/server/plugins/catalog-entities/extensions/extractors/fs-entities-extractor.d.ts.map +1 -1
  78. package/dist/server/plugins/catalog-entities/get-server-props.d.ts +3 -5
  79. package/dist/server/plugins/catalog-entities/get-server-props.d.ts.map +1 -1
  80. package/dist/server/plugins/catalog-entities/get-server-props.js +1 -1
  81. package/dist/server/plugins/catalog-entities/get-server-props.js.map +1 -1
  82. package/dist/server/plugins/catalog-entities/plugin.d.ts.map +1 -1
  83. package/dist/server/plugins/catalog-entities/plugin.js +1 -1
  84. package/dist/server/plugins/catalog-entities/plugin.js.map +1 -1
  85. package/dist/server/plugins/catalog-entities/schemas/dto-schemas.d.ts +730 -21
  86. package/dist/server/plugins/catalog-entities/schemas/dto-schemas.d.ts.map +1 -1
  87. package/dist/server/plugins/catalog-entities/schemas/dto-schemas.js +1 -1
  88. package/dist/server/plugins/catalog-entities/schemas/dto-schemas.js.map +1 -1
  89. package/dist/server/plugins/catalog-entities/schemas/file-schemas.d.ts +26 -25
  90. package/dist/server/plugins/catalog-entities/schemas/file-schemas.d.ts.map +1 -1
  91. package/dist/server/plugins/catalog-entities/schemas/file-schemas.js +1 -1
  92. package/dist/server/plugins/catalog-entities/utils/has-options-changed.d.ts +2 -0
  93. package/dist/server/plugins/catalog-entities/utils/has-options-changed.d.ts.map +1 -0
  94. package/dist/server/plugins/catalog-entities/utils/has-options-changed.js +1 -0
  95. package/dist/server/plugins/catalog-entities/utils/has-options-changed.js.map +1 -0
  96. package/dist/server/plugins/config-parser/safe-parse.d.ts.map +1 -1
  97. package/dist/server/plugins/config-parser/safe-parse.js +1 -1
  98. package/dist/server/plugins/config-parser/safe-parse.js.map +1 -1
  99. package/dist/server/plugins/markdown/markdoc/custom-components/openapi/replay-openapi.d.ts.map +1 -1
  100. package/dist/server/plugins/markdown/markdoc/custom-components/openapi/replay-openapi.js +1 -1
  101. package/dist/server/plugins/markdown/markdoc/custom-components/openapi/replay-openapi.js.map +1 -1
  102. package/dist/server/providers/database/client.d.ts +2 -2
  103. package/dist/server/providers/database/client.d.ts.map +1 -1
  104. package/dist/server/providers/database/client.js +1 -1
  105. package/dist/server/providers/database/client.js.map +1 -1
  106. package/dist/server/providers/database/database-connections-manager.d.ts +3 -11
  107. package/dist/server/providers/database/database-connections-manager.d.ts.map +1 -1
  108. package/dist/server/providers/database/database-connections-manager.js +1 -1
  109. package/dist/server/providers/database/database-connections-manager.js.map +1 -1
  110. package/dist/server/providers/database/database-preconnect-service.d.ts.map +1 -1
  111. package/dist/server/providers/database/database-preconnect-service.js +1 -1
  112. package/dist/server/providers/database/database-preconnect-service.js.map +1 -1
  113. package/dist/server/providers/database/pagination/filter.d.ts.map +1 -1
  114. package/dist/server/providers/database/pagination/filter.js +1 -1
  115. package/dist/server/providers/database/pagination/filter.js.map +1 -1
  116. package/dist/server/providers/database/pagination/index.d.ts +0 -4
  117. package/dist/server/providers/database/pagination/index.d.ts.map +1 -1
  118. package/dist/server/providers/database/pagination/index.js +1 -1
  119. package/dist/server/providers/database/pagination/index.js.map +1 -1
  120. package/dist/server/providers/database/pagination/schemas.d.ts.map +1 -1
  121. package/dist/server/providers/database/pagination/schemas.js +1 -1
  122. package/dist/server/providers/database/pagination/schemas.js.map +1 -1
  123. package/dist/server/providers/database/pagination/sort.d.ts.map +1 -1
  124. package/dist/server/providers/database/pagination/sort.js +1 -1
  125. package/dist/server/providers/database/pagination/sort.js.map +1 -1
  126. package/dist/server/providers/database/pagination/utils/field-pattern-matcher.d.ts +4 -0
  127. package/dist/server/providers/database/pagination/utils/field-pattern-matcher.d.ts.map +1 -0
  128. package/dist/server/providers/database/pagination/utils/field-pattern-matcher.js +1 -0
  129. package/dist/server/providers/database/pagination/utils/field-pattern-matcher.js.map +1 -0
  130. package/dist/server/providers/database/utils/retry-async-operation.js +1 -1
  131. package/dist/server/providers/database/utils/retry-async-operation.js.map +1 -1
  132. package/dist/server/web-server/dev-server.d.ts.map +1 -1
  133. package/dist/server/web-server/dev-server.js +1 -1
  134. package/dist/server/web-server/dev-server.js.map +1 -1
  135. package/dist/server/web-server/middleware/catalogAuthMiddleware.js +1 -1
  136. package/dist/server/web-server/middleware/catalogAuthMiddleware.js.map +1 -1
  137. package/dist/server/web-server/routes/catalog/bff-catalog-related-entities.d.ts.map +1 -1
  138. package/dist/server/web-server/routes/catalog/bff-catalog-related-entities.js +1 -1
  139. package/dist/server/web-server/routes/catalog/bff-catalog-related-entities.js.map +1 -1
  140. package/dist/server/web-server/routes/catalog/bff-catalog.d.ts +1 -1
  141. package/dist/server/web-server/routes/catalog/bff-catalog.d.ts.map +1 -1
  142. package/dist/server/web-server/routes/catalog/bff-catalog.js +1 -1
  143. package/dist/server/web-server/routes/catalog/bff-catalog.js.map +1 -1
  144. package/dist/server/web-server/routes/catalog/catalog-relations.d.ts.map +1 -1
  145. package/dist/server/web-server/routes/catalog/catalog-relations.js +1 -1
  146. package/dist/server/web-server/routes/catalog/catalog-relations.js.map +1 -1
  147. package/dist/server/web-server/routes/catalog/catalog.d.ts.map +1 -1
  148. package/dist/server/web-server/routes/catalog/catalog.js +1 -1
  149. package/dist/server/web-server/routes/catalog/catalog.js.map +1 -1
  150. package/dist/server/web-server/utils/prepare-list-response.d.ts +1 -1
  151. package/dist/server/web-server/utils/prepare-list-response.d.ts.map +1 -1
  152. package/dist/server/web-server/utils/prepare-list-response.js +1 -1
  153. package/dist/server/web-server/utils/prepare-list-response.js.map +1 -1
  154. package/package.json +9 -8
  155. package/dist/server/plugins/catalog-entities/database/index.d.ts +0 -4
  156. package/dist/server/plugins/catalog-entities/database/index.d.ts.map +0 -1
  157. package/dist/server/plugins/catalog-entities/database/index.js +0 -1
  158. package/dist/server/plugins/catalog-entities/database/index.js.map +0 -1
  159. package/dist/server/plugins/catalog-entities/entities/index.d.ts +0 -3
  160. package/dist/server/plugins/catalog-entities/entities/index.d.ts.map +0 -1
  161. package/dist/server/plugins/catalog-entities/entities/index.js +0 -1
  162. package/dist/server/plugins/catalog-entities/entities/index.js.map +0 -1
  163. package/dist/server/plugins/catalog-entities/index.d.ts +0 -6
  164. package/dist/server/plugins/catalog-entities/index.d.ts.map +0 -1
  165. package/dist/server/plugins/catalog-entities/index.js +0 -1
  166. 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;AAE5E,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgC1B,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 e}from"@redocly/theme/core/constants";import{entityFileSchema as t}from"./file-schemas.js";const i={type:"object",properties:{type:{type:"string",enum:e},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},o=t;export{o as entityDtoSchema,i as entityRelationDtoSchema};
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,EAAE,gBAAgB,EAAyB,MAAM,mBAAmB,CAAC;AAE5E,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,eAAe,GAAG,gBAAgB,CAAC"}
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: 3;
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: 3;
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: 3;
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: 3;
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: 3;
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: 3;
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: 3;
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: 3;
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: 3;
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: 3;
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: 3;
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: 3;
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: 3;
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: 3;
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: 3;
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: 3;
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: 3;
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: 3;
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: 3;
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: 3;
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: 3;
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: 3;
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: 3;
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: 3;
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: 3;
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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AAG,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,MAAM,sBAAsB;;;;;;;;;;;CAWzB,CAAC;AAEX,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;CAqBzB,CAAC;AAEX,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2B1B,CAAC;AAEX,eA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AAE,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:3,maxLength:150}},required:["name"],additionalProperties:!1},d={type:"object",properties:{channels:{type:"array",items:{type:"object",properties:{name:{type:"string",minLength:3,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:3,maxLength:150}},required:["name"],additionalProperties:!1}}},required:["channels"],additionalProperties:!1}},additionalProperties:!1},o={type:"object",properties:{label:{type:"string",minLength:3,maxLength:150},url:{type:"string"}},required:["label","url"],additionalProperties:!1},s={type:"object",properties:{type:{type:"string",enum:t},key:{type:"string",minLength:3,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:3,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};
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,2 @@
1
+ export declare function hasOptionsChanged<T>(options1: T | undefined, options2: T): boolean;
2
+ //# sourceMappingURL=has-options-changed.d.ts.map
@@ -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;AAE/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
+ {"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 l}from"../../../utils/object/remove-deep-property.js";function v(t,e){const r=JSON.parse(JSON.stringify(e)),a=c(t);return a(r||{})||(a.errors?.map(n=>n.instancePath.slice(1))?.forEach(n=>{const o=n.split("/");l(r,o)}),a(r||{})),r||{}}function c(t){if(!t.$id)return i.compile(t);const e=i.getSchema(t.$id);return e||(i.addSchema(t),i.compile(t))}const i=new s({strictSchema:!1,allowUnionTypes:!0,useDefaults:!0,allErrors:!0,discriminator:!0,strictTypes:!1,verbose:!0});export{i as ajv,v as safeParsePartial};
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;AAI/B,OAAO,EAAE,kBAAkB,EAAE,MAAM,+CAA+C,CAAC;AAEnF,MAAM,UAAU,gBAAgB,CAAI,MAAyB,EAAE,WAAc;IAC3E,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC,CAAC;IACrD,MAAM,QAAQ,GAAG,mBAAmB,CAAC,MAAM,CAAC,CAAC;IAC7C,MAAM,KAAK,GAAG,QAAQ,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC;IAEnC,IAAI,CAAC,KAAK,EAAE,CAAC;QACX,MAAM,aAAa,GAAG,QAAQ,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;QACnF,aAAa,EAAE,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE;YAC/B,MAAM,IAAI,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YAC9B,wBAAwB;YACxB,kBAAkB,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QACjC,CAAC,CAAC,CAAC;QACH,4DAA4D;QAC5D,QAAQ,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC;IACvB,CAAC;IAED,OAAO,IAAI,IAAK,EAAQ,CAAC;AAC3B,CAAC;AAED,SAAS,mBAAmB,CAAI,MAAyB;IACvD,IAAI,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC;QAChB,OAAO,GAAG,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CAAC;QACnF,aAAa,EAAE,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE;YAC/B,MAAM,IAAI,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YAC9B,wBAAwB;YACxB,kBAAkB,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QACjC,CAAC,CAAC,CAAC;QACH,4DAA4D;QAC5D,QAAQ,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC;IACvB,CAAC;IAED,OAAO,IAAI,IAAK,EAAQ,CAAC;AAC3B,CAAC;AAED,SAAS,mBAAmB,CAAI,MAAyB;IACvD,IAAI,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC;QAChB,OAAO,GAAG,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IAC7B,CAAC;IAED,MAAM,sBAAsB,GAAG,GAAG,CAAC,SAAS,CAAC,MAAM,CAAC,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"}
@@ -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,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AM,CAAC,CAAC,CAAC;CACvD;AAED,eAAO,MAAM,aAAa,UAAW,kBAAkB,sBAiGtD,CAAC"}
@@ -1 +1 @@
1
- import o from"react";import{EmbeddedReplay as v,StoreProvider as E}from"@redocly/openapi-docs";import{Admonition as O}from"@redocly/theme/markdoc/components/Admonition/Admonition";import{ErrorMessage as S,OpenApiComponentWrap as b}from"../styled.elements.js";import{useStore as A}from"../../hooks/use-store.js";import{getOperation as I}from"./get-operation/index.js";import{getMockServerDocsConfig as M}from"../../../../openapi-docs/template/mock-server-config.js";const w=f=>{const{descriptionFile:m,operationId:s,pointer:d,exampleKey:l,mimeType:c,requestBody:n,parameters:y,options:i,environment:r,environments:p}=f,{store:e,error:g,baseSlug:u}=A(m),a=o.useMemo(()=>({...e?.options,...i}),[i,e?.options]),t=o.useMemo(()=>{if(e)return I(e,{operationId:s,pointer:d},a,{exampleKey:l,mimeType:c,environments:p,environment:r,requestBody:n})},[l,a,c,s,d,e,p,r,n]);return e?t?o.createElement(b,{"data-testid":"replay-openapi"},o.createElement(E,{options:{...i,disableRouter:!0,routingBasePath:u,mockServer:M(a.mockServer,u)},definition:e.definition,withState:{environments:p,allowedEnvironments:r?[r]:void 0,operation:{pointer:t.pointer,state:{requestValues:{body:n,...y}}}}},o.createElement(v,{activeOperationId:t.operationId||"",fullOpenApi:e.definition,corsProxyUrl:e.options.corsProxyUrl,pointer:t.pointer}))):o.createElement(O,{type:"danger"},"Cannot find OpenAPI operation by operationId or pointer in ",m):o.createElement(S,null,g)};export{w as ReplayOpenApi};
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};
@@ -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,E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E,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
+ {"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,G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;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":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAgB,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAO,MAAM,aAAa,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAI7C,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;IAM1B,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;IAQzF,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
+ {"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{createClient as a}from"@libsql/client";import{sql as e}from"drizzle-orm";import{drizzle as s}from"drizzle-orm/libsql";import{migrate as o}from"drizzle-orm/libsql/migrator";import l from"node:path";import{TransactionsManager as c}from"./transactions-manager.js";class r{dbClient;txManager;constructor(t){this.dbClient=s(a(t)),this.txManager=new c(this.dbClient)}get transactionsManager(){return this.txManager}get client(){return this.txManager.tx??this.dbClient}static async init(t,i){const n=new r(t);return i?.runWithPragmaWalWriteOptimization&&await n.dbClient.run(e.raw("PRAGMA journal_mode = WAL;")),n}async migrate(t,i=""){await o(this.dbClient,{migrationsFolder:l.join(t,"migrations",i)})}async close(){this.dbClient.$client.close()}async sync(){return this.dbClient.$client.sync()}}export{r as DatabaseClient};
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,EAAe,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAiB,GAAG,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AACtD,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAsB,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AASpF,MAAM,OAAO,cAAc;IAChB,QAAQ,CAAgB;IAChB,SAAS,CAAsB;IAEhD,YAAY,MAAc;QACxB,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,C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AC,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?: DatabaseInitializationStrategy;
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 getConnection<TConfig extends DatabaseInitConnectionOptions>({ config, strategy, options, }: GetConnectionParams<TConfig>): Promise<DatabaseInitializationResult | null>;
20
- static preConnect<TConfig extends DatabaseInitConnectionOptions>({ config, strategy, }: PreConnectParams<TConfig>): Promise<void>;
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;AAE9F,OAAO,EAEL,KAAK,8BAA8B,EACpC,MAAM,uCAAuC,CAAC;AAE/C,KAAK,mBAAmB,CAAC,OAAO,SAAS,6BAA6B,IAAI;IACxE,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,8BAA8B,CAAC;IAC1C,OAAO,CAAC,EAAE;QACR,UAAU,CAAC,EAAE,OAAO,CAAC;KACtB,CAAC;CACH,CAAC;AAEF,KAAK,gBAAgB,CAAC,OAAO,SAAS,6BAA6B,IAAI;IACrE,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,8BAA8B,CAAC;CAC3C,CAAC;AAeF,qBAAa,0BAA0B;IACrC,OAAO,CAAC,MAAM,KAAK,WAAW,GAY7B;IAED,OAAO,CAAC,MAAM,KAAK,WAAW,GAE7B;IAED,OAAO,CAAC,MAAM,KAAK,kBAAkB,GAEpC;IAED,OAAO,CAAC,MAAM,KAAK,iBAAiB,GAEnC;WAEY,aAAa,CAAC,OAAO,SAAS,6BAA6B,EAAE,EACxE,MAAM,EACN,QAAQ,EACR,OAAO,GACR,EAAE,mBAAmB,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC,4BAA4B,GAAG,IAAI,CAAC;WAoBjE,UAAU,CAAC,OAAO,SAAS,6BAA6B,EAAE,EACrE,MAAM,EACN,QAAQ,GACT,EAAE,gBAAgB,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;mBAavB,OAAO;mBAkBP,oBAAoB;IAmBzC,OAAO,CAAC,MAAM,CAAC,gBAAgB;CAGhC"}
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{DefaultDatabaseInitializationStrategy as s}from"./database-initialization-strategy.js";const o="_redocly_db_preconnect_cache_";class t{static get globalCache(){const c=globalThis;if(!c[o]){const i={connections:new Map,connectionPromises:new Map,failedConnections:new Set};c[o]=i}return c[o]}static get connections(){return t.globalCache.connections}static get connectionPromises(){return t.globalCache.connectionPromises}static get failedConnections(){return t.globalCache.failedConnections}static async getConnection({config:c,strategy:i,options:e}){const n=t.getConnectionKey(c),l=t.connections.get(n);if(l)return l;if(t.failedConnections.has(n)&&e?.skipFailed)return null;const r=t.connectionPromises.get(n);return r||t.connect({config:c,key:n,strategy:i})}static async preConnect({config:c,strategy:i}){const e=t.getConnectionKey(c);t.connections.has(e)||t.connectionPromises.has(e)||await t.connect({config:c,key:e,strategy:i})}static async connect({config:c,key:i,strategy:e}){const n=t.initializeConnection({config:c,key:i,strategy:e});return t.connectionPromises.set(i,n),n}static async initializeConnection({config:c,key:i,strategy:e=new s}){try{const n=await e.initialize(c);return t.connections.set(i,n),t.connectionPromises.delete(i),n}catch{return t.failedConnections.add(i),t.connectionPromises.delete(i),null}}static getConnectionKey(c){return`${c.baseDbDir}/${c.additionalFolder}/${c.databaseName}`}}export{t as DatabaseConnectionsManager};
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,EACL,qCAAqC,GAEtC,MAAM,uCAAuC,CAAC;AA0B/C,MAAM,SAAS,GAAG,+BAA+B,CAAC;AAElD,MAAM,OAAO,0BAA0B;IAC7B,MAAM,KAAK,WAAW;QAC5B,MAAM,CAAC,GAAG,UAAyD,CAAC;QAEpE,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE,CAAC;YAClB,MAAM,KAAK,GAA4B;gBACrC,WAAW,EAAE,IAAI,GAAG,EAAwC;gBAC5D,kBAAkB,EAAE,IAAI,GAAG,EAAwD;gBACnF,iBAAiB,EAAE,IAAI,GAAG,EAAU;aACrC,CAAC;YACF,CAAC,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC;QACvB,CAAC;QACD,OAAO,CAAC,CAAC,SAAS,CAA4B,CAAC;IACjD,CAAC;IAEO,MAAM,KAAK,WAAW;QAC5B,OAAO,0BAA0B,CAAC,WAAW,CAAC,WAAW,CAAC;IAC5D,CAAC;IAEO,MAAM,KAAK,kBAAkB;QACnC,OAAO,0BAA0B,CAAC,WAAW,CAAC,kBAAkB,CAAC;IACnE,CAAC;IAEO,MAAM,KAAK,iBAAiB;QAClC,OAAO,0BAA0B,CAAC,WAAW,CAAC,iBAAiB,CAAC;IAClE,CAAC;IAED,MAAM,CAAC,KAAK,CAAC,aAAa,CAAgD,EACxE,MAAM,EACN,QAAQ,EACR,OAAO,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0BAA0B,CAAC,kBAAkB,CAAC,GAAG,CAAC,GAAG,EAAE,iBAAiB,CAAC,CAAC;QAC1E,OAAO,iBAAiB,CAAC;IAC3B,CAAC;IAEO,MAAM,CAAC,KAAK,CAAC,oBAAoB,CAAC,EACxC,MAAM,EACN,GAAG,EACH,QAAQ,GAAG,IAAI,qCAAqC,EAAE,GAC3B;QAC3B,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;YAEjD,0BAA0B,CAAC,WAAW,CAAC,GAAG,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;YACxD,0BAA0B,CAAC,kBAAkB,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;YAE1D,OAAO,MAAM,CAAC;QAChB,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,0BAA0B,CAAC,iBAAiB,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;YACtD,0BAA0B,CAAC,kBAAkB,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;YAC1D,OAAO,IAAI,CAAC;QACd,CAAC;IACH,CAAC;IAEO,MAAM,CAAC,gBAAgB,CAAC,MAAqC;QACnE,OAAO,GAAG,MAAM,CAAC,SAAS,IAAI,MAAM,CAAC,gBAAgB,IAAI,MAAM,CAAC,YAAY,EAAE,CAAC;IACjF,CAAC;CACF"}
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,MAAM,SAAS,GAAG,+BAA+B,CAAC;AAElD,MAAM,OAAO,0BAA0B;IAC7B,MAAM,KAAK,WAAW;QAC5B,MAAM,CAAC,GAAG,UAAyD,CAAC;QAEpE,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE,CAAC;YAClB,MAAM,KAAK,GAA4B;gBACrC,WAAW,EAAE,I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C;YAC5E,CAAC;YACD,OAAO,GAAG,0BAA0B,CAAC,oBAAoB,CAAC,MAAM,EAAE,GAAG,EAAE,QAAQ,CAAC,CAAC;YACjF,0BAA0B,CAAC,kBAAkB,CAAC,GAAG,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;QAClE,CAAC;QAED,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,MAAM,OAAO,CAAC;YAC7B,OAAO,MAAM,CAAC;QAChB,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,0BAA0B,CAAC,iBAAiB,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;YACtD,OAAO,IAAI,CAAC;QACd,CAAC;gBAAS,CAAC;YACT,0BAA0B,CAAC,kBAAkB,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QAC5D,CAAC;IACH,CAAC;IAEO,MAAM,CAAC,KAAK,CAAC,oBAAoB,CACvC,MAAqC,EACrC,GAAW,EACX,QAAwC;QAExC,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;QACjD,0BAA0B,CAAC,WAAW,CAAC,GAAG,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;QACxD,0BAA0B,CAAC,iBAAiB,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QACzD,OAAO,MAAM,CAAC;IAChB,CAAC;IAEO,MAAM,CAAC,gBAAgB,CAAC,MAAqC;QACnE,OAAO,GAAG,MAAM,CAAC,SAAS,IAAI,MAAM,CAAC,gBAAgB,IAAI,MAAM,CAAC,YAAY,EAAE,CAAC;IACjF,CAAC;CACF"}
@@ -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;mBAa9B,iCAAiC;CAoBvD"}
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 o}from"../../utils/index.js";import{DatabaseConnectionsManager as s}from"./database-connections-manager.js";import{CATALOG_DATABASE_MIGRATIONS_FOLDER as r,CATALOG_REMOTE_DATABASE_FOLDER as n,CATALOG_REMOTE_DATABASE_NAME as A}from"../../plugins/catalog-entities/database/consts.js";import{RemoteDatabaseInitializationStrategy as E}from"./database-initialization-strategy.js";class a{static isInitialized=!1;static async init(i){if(!a.isInitialized)try{await a.preconnectCatalogEntitiesDatabase(i),a.isInitialized=!0}catch(t){o.error("Failed to preconnect to databases",t)}}static async preconnectCatalogEntitiesDatabase(i){const t=process.env.SQLD_REMOTE_DATABASE_URL,e=process.env.SQLD_REMOTE_DATABASE_AUTH_TOKEN;!t||!e||await s.preConnect({config:{baseDbDir:i,syncUrl:t,authToken:e,databaseName:A,additionalFolder:n,migrationsFolder:r},strategy:new E({skipLogs:!0})})}}export{a as DatabasePreconnectService};
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;YAC7E,yBAAyB,CAAC,aAAa,GAAG,IAAI,CAAC;QACjD,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,CAAC,KAAK,CAAC,mCAAmC,EAAE,KAAK,CAAC,CAAC;QAC3D,CAAC;IACH,CAAC;IAEO,MAAM,CAAC,KAAK,CAAC,iCAAiC,CAAC,SAAiB;QACtE,MAAM,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC;QAC5D,MAAM,oBAAoB,GAAG,OAAO,CAAC,GAAG,CAAC,+BAA+B,CAAC;QAEzE,IAAI,CAAC,cAAc,IAAI,CAAC,oBAAoB,EAAE,CAAC;YAC7C,OAAO;QACT,CAAC;QAED,MAAM,0BAA0B,CAAC,UAAU,CAAC;YAC1C,MAAM,EAAE;gBACN,SAAS;gBACT,OAAO,EAAE,cAAc;gBACvB,SAAS,EAAE,oBAAoB;gBAC/B,YAAY,EAAE,4BAA4B;gBAC1C,gBAAgB,EAAE,8BAA8B;gBAChD,gBAAgB,EAAE,kCAAkC;aACrD;YACD,QAAQ,EAAE,IAAI,oCAAoC,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;SACvE,CAAC,CAAC;IACL,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,kBAAkB,GACtB,OAAO,CAAC,GAAG,CAAC,iBAAiB,KAAK,MAAM,IAAI,OAAO,CAAC,GAAG,CAAC,EAAE,KAAK,MAAM,CAAC;QAExE,IAAI,kBAAkB,EAAE,CAAC;YACvB,OAAO;QACT,CAAC;QAED,IAAI,yBAAyB,CAAC,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@ -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;AAItF,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;AAuED,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
+ {"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 R,between as k,eq as E,inArray as N,isNotNull as O,isNull as b,like as D,ne as S,notBetween as T,notInArray as W,notLike as I,or as P,sql as Q}from"drizzle-orm";import{isFilterCondition as w}from"./types.js";import{transformToSnakeCase as q}from"./utils/transform-to-snake-case.js";import{OPERATORS as u}from"./constants.js";function j(n,e){const t=B(e);return t?{sqlBuilder:n,whereCondition:t}:{sqlBuilder:n,whereCondition:null}}function B(n){if(n)return w(n)?C(n):F(n)}const C=n=>{const{op:e,conditions:t}=n,i=[];for(const f of t){if(w(f)){const r=C(f);r&&i.push(r);continue}const o=F(f);o&&i.push(o)}return e===u.AND?R(...i):P(...i)},F=n=>{const{field:e,operator:t,value:i,modifier:f}=n,o=f==="not",r=Q.identifier(e);switch(t){case"equal":return i===null?o?O(r):b(r):o?S(r,i):E(r,i);case"contains":if(typeof i=="string"){const s=i.startsWith("%")||i.endsWith("%")?i:`%${i}%`;return o?I(r,s):D(r,s)}break;case"in":if(Array.isArray(i))return o?W(r,i):N(r,i);break;case"between":if(Array.isArray(i)&&i.length===2)return o?T(r,i[0],i[1]):k(r,i[0],i[1]);break;default:throw new Error(`Unsupported filter operator: ${t}`)}},A=["'",'"'];function G(n="",e=[],t={}){if(!n||!n.trim())return;const i=m(n);return x(i,e,t)}function h(n){const e=U(n);if(e.operator===":"){const t=$(e.value,",");if(t.length>1)return{operator:"in",field:e.field,parentFields:e.parentFields,value:t.map(a),modifier:e.modifier};const i=$(e.value,"..");return i.length===2?{operator:"between",field:e.field,parentFields:e.parentFields,value:[a(i[0]),a(i[1])],modifier:e.modifier}:{operator:"equal",field:e.field,parentFields:e.parentFields,value:e.value==="null"?null:a(e.value),modifier:e.modifier}}else if(e.operator==="~")return{operator:"contains",field:e.field,parentFields:e.parentFields,value:a(e.value),modifier:e.modifier};throw new Error(`Unsupported filter clause: ${n}`)}function U(n){const e="^(?<modifier>^-?)",t="(?<field>[a-z][\\w.]*)",i="(?<operator>:|~)",f="(?<value>.+)",o=new RegExp(`^${e}${t}${i}${f}$`,"i"),r=n.match(o);if(!r||!r.groups)throw new Error(`Invalid filter clause: ${n}`);const{operator:s,value:l,modifier:p}=r.groups,c=r.groups.field.split(".");return{field:c.pop(),parentFields:c,operator:s,value:l,modifier:p==="-"?"not":void 0}}function $(n,e){const t=[];let i="",f=!1,o=0;for(let r=0;r<n.length;r++){const s=n[r-1],l=n[r];if(o>0){o--;continue}s!=="\\"&&A.includes(l)&&(f=!f),!f&&n.slice(r,r+e.length)===e?(t.push(i),i="",o=e.length-1):i+=l}return i&&t.push(i),t}function a(n){for(const e of A)if(n.startsWith(e)&&n.endsWith(e))return n.slice(1,-1);return n}function m(n){let e="",t=0,i=!1,f="";const o=[];for(let s=0;s<n.length;s++){const l=n[s],p=n[s+1];if(['"',"'"].includes(l)&&(s===0||n[s-1]!=="\\")){if(!i){i=!0,f=l,e+=l;continue}if(l===f){i=!1,f="",e+=l;continue}}if(i){e+=l;continue}if(t===0){const c=p==="A"&&n.slice(s+1,s+5)===`${u.AND} `;if(l===" "&&c){const d=e.trim();d&&(o.push(h(d)),e="");const g=m(n.slice(s+5));return{op:u.AND,conditions:[...o,g]}}const v=p==="O"&&n.slice(s+1,s+4)===`${u.OR} `;if(l===" "&&v){const d=e.trim();d&&(o.push(h(d)),e="");const g=m(n.slice(s+4));return{op:u.OR,conditions:[...o,g]}}}if(l==="("){const c=e.trim();t===0&&c&&(o.push(h(c)),e=""),t++,e+=l;continue}if(l===")"){if(t--,e+=l,t===0){const c=e.slice(1,-1);o.push(m(c)),e=""}continue}e+=l}const r=e.trim();return r&&o.push(h(r)),o.length===1?o[0]:{op:u.AND,conditions:o}}function x(n,e,t){if("field"in n){if(e.length>0&&!e.includes(n.field))throw new Error(`Invalid filter field: ${n.field}`);return{...n,field:t[n.field]||q(n.field)}}else return{...n,conditions:n.conditions.map(i=>x(i,e,t))}}export{j as applyFilter,B as convertFilterToWhereCondition,G as parseFilterQuery};
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};