@opra/client 0.14.0 → 0.16.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 (264) hide show
  1. package/cjs/content-disposition-c51e31ba.js +473 -0
  2. package/cjs/cookie-signature-590f02de.js +68 -0
  3. package/cjs/index.min.mjs +10645 -8464
  4. package/cjs/mime-db-c6221216.js +10727 -0
  5. package/cjs/mime-types-1472f038.js +205 -0
  6. package/cjs/safe-buffer-22554edb.js +83 -0
  7. package/esm/content-disposition-da32da5d.js +471 -0
  8. package/esm/cookie-signature-40f74d13.js +66 -0
  9. package/esm/index.min.mjs +10645 -8313
  10. package/esm/mime-db-95975a69.js +10725 -0
  11. package/esm/mime-types-f653a5df.js +203 -0
  12. package/esm/safe-buffer-9b74695b.js +81 -0
  13. package/package.json +13 -8
  14. package/types/common/document/api-document.d.ts +102 -0
  15. package/types/common/document/constants.d.ts +3 -0
  16. package/types/common/document/data-type/api-field.d.ts +41 -0
  17. package/types/common/document/data-type/builtin/any.type.d.ts +2 -0
  18. package/types/common/document/data-type/builtin/base64.type.d.ts +6 -0
  19. package/types/common/document/data-type/builtin/bigint.type.d.ts +6 -0
  20. package/types/common/document/data-type/builtin/boolean.type.d.ts +5 -0
  21. package/types/common/document/data-type/builtin/date.type.d.ts +4 -0
  22. package/types/common/document/data-type/builtin/guid.type.d.ts +7 -0
  23. package/types/common/document/data-type/builtin/index.d.ts +10 -0
  24. package/types/common/document/data-type/builtin/integer.type.d.ts +6 -0
  25. package/types/common/document/data-type/builtin/number.type.d.ts +6 -0
  26. package/types/common/document/data-type/builtin/object.type.d.ts +3 -0
  27. package/types/common/document/data-type/builtin/string.type.d.ts +5 -0
  28. package/types/common/document/data-type/builtin/time.type.d.ts +7 -0
  29. package/types/common/document/data-type/builtin/timestamp.type.d.ts +5 -0
  30. package/types/common/document/data-type/complex-type.d.ts +50 -0
  31. package/types/common/document/data-type/data-type.d.ts +33 -0
  32. package/types/common/document/data-type/enum-type.d.ts +32 -0
  33. package/types/common/document/data-type/mapped-type.d.ts +53 -0
  34. package/types/common/document/data-type/simple-type.d.ts +33 -0
  35. package/types/common/document/data-type/union-type.d.ts +42 -0
  36. package/types/common/document/factory/add-references.d.ts +4 -0
  37. package/types/common/document/factory/create-document.d.ts +12 -0
  38. package/types/common/document/factory/factory.d.ts +61 -0
  39. package/types/common/document/factory/import-resource-class.d.ts +10 -0
  40. package/types/common/document/factory/import-type-class.d.ts +17 -0
  41. package/types/common/document/factory/index.d.ts +1 -0
  42. package/types/common/document/factory/process-resources.d.ts +7 -0
  43. package/types/common/document/factory/process-types.d.ts +6 -0
  44. package/types/common/document/index.d.ts +14 -0
  45. package/types/common/document/resource/collection.d.ts +67 -0
  46. package/types/common/document/resource/resource.d.ts +29 -0
  47. package/types/common/document/resource/singleton.d.ts +49 -0
  48. package/{typings → types}/common/exception/resource-errors/resource-not-found.error.d.ts +4 -0
  49. package/types/common/helpers/function-utils.d.ts +4 -0
  50. package/types/common/helpers/get-stack-filename.d.ts +1 -0
  51. package/types/common/helpers/index.d.ts +8 -0
  52. package/types/common/helpers/is-url.d.ts +1 -0
  53. package/{typings/common/schema/utils/clone-object.util.d.ts → types/common/helpers/object-utils.d.ts} +1 -0
  54. package/types/common/helpers/path-to-object-tree.d.ts +4 -0
  55. package/types/common/helpers/responsive-map.d.ts +34 -0
  56. package/{typings/common/utils → types/common/helpers}/type-guards.d.ts +3 -1
  57. package/types/common/http/codecs/boolean-codec.d.ts +5 -0
  58. package/{typings/common/http/param-codec → types/common/http/codecs}/date-codec.d.ts +2 -2
  59. package/{typings/common/http/param-codec → types/common/http/codecs}/filter-codec.d.ts +2 -2
  60. package/types/common/http/codecs/integer-codec.d.ts +11 -0
  61. package/types/common/http/codecs/number-codec.d.ts +14 -0
  62. package/types/common/http/codecs/string-codec.d.ts +16 -0
  63. package/{typings → types}/common/http/enums/http-headers-codes.enum.d.ts +13 -4
  64. package/types/common/http/enums/http-status-messages.d.ts +65 -0
  65. package/types/common/http/http-headers.d.ts +86 -0
  66. package/types/common/http/http-message.host.d.ts +122 -0
  67. package/{typings → types}/common/http/http-params.d.ts +43 -29
  68. package/types/common/http/http-request-message.d.ts +213 -0
  69. package/types/common/http/http-response-message.d.ts +318 -0
  70. package/types/common/http/index.d.ts +14 -0
  71. package/types/common/http/interfaces/cookie-options.interface.d.ts +4 -0
  72. package/types/common/http/multipart/http-response-content.d.ts +0 -0
  73. package/types/common/http/multipart/index.d.ts +0 -0
  74. package/{typings → types}/common/index.d.ts +6 -5
  75. package/types/common/schema/constants.d.ts +2 -0
  76. package/types/common/schema/data-type/complex-type.interface.d.ts +16 -0
  77. package/types/common/schema/data-type/data-type.interface.d.ts +14 -0
  78. package/types/common/schema/data-type/enum-type.interface.d.ts +15 -0
  79. package/types/common/schema/data-type/field.interface.d.ts +21 -0
  80. package/types/common/schema/data-type/mapped-type.interface.d.ts +11 -0
  81. package/types/common/schema/data-type/simple-type.interface.d.ts +18 -0
  82. package/types/common/schema/data-type/union-type.interface.d.ts +10 -0
  83. package/types/common/schema/document.interface.d.ts +34 -0
  84. package/types/common/schema/index.d.ts +51 -0
  85. package/types/common/schema/resource/collection.interface.d.ts +33 -0
  86. package/types/common/schema/resource/container.interface.d.ts +9 -0
  87. package/types/common/schema/resource/endpoint.interface.d.ts +29 -0
  88. package/types/common/schema/resource/resource.interface.d.ts +12 -0
  89. package/types/common/schema/resource/singleton.interface.d.ts +22 -0
  90. package/types/common/schema/type-guards.d.ts +20 -0
  91. package/{typings/common/schema → types/common}/types.d.ts +0 -3
  92. package/{typings → types}/common/url/index.d.ts +2 -2
  93. package/{typings → types}/common/url/opra-url.d.ts +10 -29
  94. package/types/common/url/utils/decode-path-component.d.ts +5 -0
  95. package/types/common/url/utils/encode-path-component.d.ts +1 -0
  96. package/types/common/utils/path-utils.d.ts +2 -0
  97. package/{typings → types}/constants.d.ts +1 -0
  98. package/types/http/batch-request.d.ts +0 -0
  99. package/types/http/http-client.d.ts +45 -0
  100. package/types/http/http-collection-node.d.ts +116 -0
  101. package/types/http/http-request-observable.d.ts +28 -0
  102. package/{typings/common → types}/http/http-request.d.ts +4 -6
  103. package/{typings/common → types}/http/http-response.d.ts +12 -10
  104. package/types/http/http-service-base.d.ts +5 -0
  105. package/types/http/http-singleton-node.d.ts +65 -0
  106. package/{typings → types}/http/http-types.d.ts +17 -9
  107. package/types/index.d.ts +15 -0
  108. package/typings/common/helpers/index.d.ts +0 -1
  109. package/typings/common/helpers/responsive-map.d.ts +0 -32
  110. package/typings/common/http/http-headers.d.ts +0 -70
  111. package/typings/common/http/http-param-codec.d.ts +0 -4
  112. package/typings/common/http/http-request-node.d.ts +0 -34
  113. package/typings/common/http/index.d.ts +0 -17
  114. package/typings/common/http/multipart/batch-multipart.d.ts +0 -31
  115. package/typings/common/http/multipart/http-request-content.d.ts +0 -8
  116. package/typings/common/http/multipart/http-response-content.d.ts +0 -7
  117. package/typings/common/http/multipart/index.d.ts +0 -1
  118. package/typings/common/http/param-codec/boolean-codec.d.ts +0 -5
  119. package/typings/common/http/param-codec/integer-codec.d.ts +0 -9
  120. package/typings/common/http/param-codec/number-codec.d.ts +0 -12
  121. package/typings/common/http/param-codec/string-codec.d.ts +0 -14
  122. package/typings/common/http/utils/encodeURIParam.d.ts +0 -1
  123. package/typings/common/http/utils/normalize-headers.d.ts +0 -1
  124. package/typings/common/schema/constants.d.ts +0 -8
  125. package/typings/common/schema/decorators/opr-collection-resource.decorator.d.ts +0 -8
  126. package/typings/common/schema/decorators/opr-complex-type.decorator.d.ts +0 -6
  127. package/typings/common/schema/decorators/opr-field.decorator.d.ts +0 -3
  128. package/typings/common/schema/decorators/opr-resolver.decorator.d.ts +0 -8
  129. package/typings/common/schema/decorators/opr-simple-type.decorator.d.ts +0 -6
  130. package/typings/common/schema/decorators/opr-singleton-resource.decorator.d.ts +0 -8
  131. package/typings/common/schema/implementation/data-type/builtin/any.type.d.ts +0 -2
  132. package/typings/common/schema/implementation/data-type/builtin/base64-binary.type.d.ts +0 -2
  133. package/typings/common/schema/implementation/data-type/builtin/bigint.type.d.ts +0 -2
  134. package/typings/common/schema/implementation/data-type/builtin/boolean.type.d.ts +0 -2
  135. package/typings/common/schema/implementation/data-type/builtin/date-string.type.d.ts +0 -2
  136. package/typings/common/schema/implementation/data-type/builtin/date.type.d.ts +0 -2
  137. package/typings/common/schema/implementation/data-type/builtin/guid.type.d.ts +0 -2
  138. package/typings/common/schema/implementation/data-type/builtin/integer.type.d.ts +0 -2
  139. package/typings/common/schema/implementation/data-type/builtin/number.type.d.ts +0 -2
  140. package/typings/common/schema/implementation/data-type/builtin/object.type.d.ts +0 -2
  141. package/typings/common/schema/implementation/data-type/builtin/string.type.d.ts +0 -2
  142. package/typings/common/schema/implementation/data-type/builtin-data-types.d.ts +0 -4
  143. package/typings/common/schema/implementation/data-type/complex-type.d.ts +0 -29
  144. package/typings/common/schema/implementation/data-type/data-type.d.ts +0 -17
  145. package/typings/common/schema/implementation/data-type/simple-type.d.ts +0 -12
  146. package/typings/common/schema/implementation/data-type/union-type.d.ts +0 -16
  147. package/typings/common/schema/implementation/document-builder.d.ts +0 -16
  148. package/typings/common/schema/implementation/opra-document.d.ts +0 -44
  149. package/typings/common/schema/implementation/query/collection-count-query.d.ts +0 -14
  150. package/typings/common/schema/implementation/query/collection-create-query.d.ts +0 -18
  151. package/typings/common/schema/implementation/query/collection-delete-many-query.d.ts +0 -14
  152. package/typings/common/schema/implementation/query/collection-delete-query.d.ts +0 -10
  153. package/typings/common/schema/implementation/query/collection-get-query.d.ts +0 -21
  154. package/typings/common/schema/implementation/query/collection-search-query.d.ts +0 -30
  155. package/typings/common/schema/implementation/query/collection-update-many-query.d.ts +0 -15
  156. package/typings/common/schema/implementation/query/collection-update-query.d.ts +0 -19
  157. package/typings/common/schema/implementation/query/field-get-query.d.ts +0 -30
  158. package/typings/common/schema/implementation/query/index.d.ts +0 -27
  159. package/typings/common/schema/implementation/query/singleton-get-query.d.ts +0 -20
  160. package/typings/common/schema/implementation/resource/collection-resource-info.d.ts +0 -22
  161. package/typings/common/schema/implementation/resource/container-resource-info.d.ts +0 -13
  162. package/typings/common/schema/implementation/resource/resource-info.d.ts +0 -17
  163. package/typings/common/schema/implementation/resource/singleton-resource-info.d.ts +0 -15
  164. package/typings/common/schema/implementation/schema-builder/extract-resource-metadata.util.d.ts +0 -3
  165. package/typings/common/schema/implementation/schema-builder/extract-type-metadata.util.d.ts +0 -4
  166. package/typings/common/schema/index.d.ts +0 -25
  167. package/typings/common/schema/interfaces/child-field-query.interface.d.ts +0 -4
  168. package/typings/common/schema/interfaces/data-type.metadata.d.ts +0 -18
  169. package/typings/common/schema/interfaces/resource-container.interface.d.ts +0 -8
  170. package/typings/common/schema/interfaces/resource.metadata.d.ts +0 -18
  171. package/typings/common/schema/opra-schema.definition.d.ts +0 -178
  172. package/typings/common/schema/type-helpers/extend-type.helper.d.ts +0 -3
  173. package/typings/common/schema/type-helpers/mixin-type.helper.d.ts +0 -2
  174. package/typings/common/schema/utils/class.utils.d.ts +0 -2
  175. package/typings/common/schema/utils/normalize-field-array.util.d.ts +0 -3
  176. package/typings/common/schema/utils/path-to-tree.util.d.ts +0 -4
  177. package/typings/common/url/formats/boolean-format.d.ts +0 -5
  178. package/typings/common/url/formats/date-format.d.ts +0 -16
  179. package/typings/common/url/formats/filter-format.d.ts +0 -6
  180. package/typings/common/url/formats/format.d.ts +0 -4
  181. package/typings/common/url/formats/integer-format.d.ts +0 -9
  182. package/typings/common/url/formats/number-format.d.ts +0 -12
  183. package/typings/common/url/formats/string-format.d.ts +0 -14
  184. package/typings/common/url/opra-url-search-params.d.ts +0 -5
  185. package/typings/common/url/utils/path-utils.d.ts +0 -8
  186. package/typings/common/utils/index.d.ts +0 -3
  187. package/typings/common/utils/is-url.d.ts +0 -1
  188. package/typings/common/utils/path-to-tree.d.ts +0 -4
  189. package/typings/http/http-client.d.ts +0 -43
  190. package/typings/http/http-collection-service.d.ts +0 -76
  191. package/typings/http/http-request-host.d.ts +0 -18
  192. package/typings/http/http-singleton-service.d.ts +0 -28
  193. package/typings/http/requests/collection-create-request.d.ts +0 -7
  194. package/typings/http/requests/collection-delete-many-request.d.ts +0 -7
  195. package/typings/http/requests/collection-delete-request.d.ts +0 -7
  196. package/typings/http/requests/collection-get-request.d.ts +0 -7
  197. package/typings/http/requests/collection-search-request.d.ts +0 -7
  198. package/typings/http/requests/collection-update-many-request.d.ts +0 -7
  199. package/typings/http/requests/collection-update-request.d.ts +0 -7
  200. package/typings/http/requests/singleton-create-request.d.ts +0 -7
  201. package/typings/http/requests/singleton-delete-request.d.ts +0 -7
  202. package/typings/http/requests/singleton-get-request.d.ts +0 -7
  203. package/typings/index.d.ts +0 -21
  204. package/typings/interfaces/http-options.interface.d.ts +0 -17
  205. package/typings/interfaces/http-request-config.interface.d.ts +0 -23
  206. /package/{typings → types}/client-error.d.ts +0 -0
  207. /package/{typings/common/schema → types/common/document}/utils/inspect.util.d.ts +0 -0
  208. /package/{typings/common/schema → types/common/document}/utils/string-compare.util.d.ts +0 -0
  209. /package/{typings → types}/common/exception/enums/issue-severity.enum.d.ts +0 -0
  210. /package/{typings → types}/common/exception/error-issue.d.ts +0 -0
  211. /package/{typings → types}/common/exception/http-errors/bad-request.error.d.ts +0 -0
  212. /package/{typings → types}/common/exception/http-errors/failed-dependency.error.d.ts +0 -0
  213. /package/{typings → types}/common/exception/http-errors/forbidden.error.d.ts +0 -0
  214. /package/{typings → types}/common/exception/http-errors/internal-server.error.d.ts +0 -0
  215. /package/{typings → types}/common/exception/http-errors/method-not-allowed.error.d.ts +0 -0
  216. /package/{typings → types}/common/exception/http-errors/not-acceptable.error.d.ts +0 -0
  217. /package/{typings → types}/common/exception/http-errors/not-found.error.d.ts +0 -0
  218. /package/{typings → types}/common/exception/http-errors/unauthorized.error.d.ts +0 -0
  219. /package/{typings → types}/common/exception/http-errors/unprocessable-entity.error.d.ts +0 -0
  220. /package/{typings → types}/common/exception/index.d.ts +0 -0
  221. /package/{typings → types}/common/exception/opra-exception.d.ts +0 -0
  222. /package/{typings → types}/common/exception/resource-errors/resource-conflict.error.d.ts +0 -0
  223. /package/{typings → types}/common/exception/wrap-exception.d.ts +0 -0
  224. /package/{typings → types}/common/filter/antlr/OpraFilterLexer.d.ts +0 -0
  225. /package/{typings → types}/common/filter/antlr/OpraFilterListener.d.ts +0 -0
  226. /package/{typings → types}/common/filter/antlr/OpraFilterParser.d.ts +0 -0
  227. /package/{typings → types}/common/filter/antlr/OpraFilterVisitor.d.ts +0 -0
  228. /package/{typings → types}/common/filter/ast/abstract/ast.d.ts +0 -0
  229. /package/{typings → types}/common/filter/ast/abstract/expression.d.ts +0 -0
  230. /package/{typings → types}/common/filter/ast/abstract/literal.d.ts +0 -0
  231. /package/{typings → types}/common/filter/ast/abstract/term.d.ts +0 -0
  232. /package/{typings → types}/common/filter/ast/expressions/arithmetic-expression.d.ts +0 -0
  233. /package/{typings → types}/common/filter/ast/expressions/array-expression.d.ts +0 -0
  234. /package/{typings → types}/common/filter/ast/expressions/comparison-expression.d.ts +0 -0
  235. /package/{typings → types}/common/filter/ast/expressions/logical-expression.d.ts +0 -0
  236. /package/{typings → types}/common/filter/ast/expressions/parentheses-expression.d.ts +0 -0
  237. /package/{typings → types}/common/filter/ast/index.d.ts +0 -0
  238. /package/{typings → types}/common/filter/ast/terms/boolean-literal.d.ts +0 -0
  239. /package/{typings → types}/common/filter/ast/terms/date-literal.d.ts +0 -0
  240. /package/{typings → types}/common/filter/ast/terms/external-constant.d.ts +0 -0
  241. /package/{typings → types}/common/filter/ast/terms/null-literal.d.ts +0 -0
  242. /package/{typings → types}/common/filter/ast/terms/number-literal.d.ts +0 -0
  243. /package/{typings → types}/common/filter/ast/terms/qualified-identifier.d.ts +0 -0
  244. /package/{typings → types}/common/filter/ast/terms/string-literal.d.ts +0 -0
  245. /package/{typings → types}/common/filter/ast/terms/time-literal.d.ts +0 -0
  246. /package/{typings → types}/common/filter/build.d.ts +0 -0
  247. /package/{typings → types}/common/filter/errors.d.ts +0 -0
  248. /package/{typings → types}/common/filter/filter-tree-visitor.d.ts +0 -0
  249. /package/{typings → types}/common/filter/index.d.ts +0 -0
  250. /package/{typings → types}/common/filter/opra-error-listener.d.ts +0 -0
  251. /package/{typings → types}/common/filter/parse.d.ts +0 -0
  252. /package/{typings → types}/common/filter/utils.d.ts +0 -0
  253. /package/{typings/common/schema/type-helpers/mixin.utils.d.ts → types/common/helpers/mixin-utils.d.ts} +0 -0
  254. /package/{typings → types}/common/http/enums/http-status-codes.enum.d.ts +0 -0
  255. /package/{typings → types}/common/http/interfaces/client-http-headers.interface.d.ts +0 -0
  256. /package/{typings → types}/common/http/interfaces/server-http-headers.interface.d.ts +0 -0
  257. /package/{typings/common/constants.d.ts → types/common/http/multipart/batch-multipart.d.ts} +0 -0
  258. /package/{typings/http/requests/batch-request.d.ts → types/common/http/multipart/http-request-content.d.ts} +0 -0
  259. /package/{typings → types}/common/i18n/i18n.d.ts +0 -0
  260. /package/{typings → types}/common/i18n/index.d.ts +0 -0
  261. /package/{typings → types}/common/i18n/string-utils.d.ts +0 -0
  262. /package/{typings → types}/common/i18n/translate.d.ts +0 -0
  263. /package/{typings → types}/common/url/opra-url-path-component.d.ts +0 -0
  264. /package/{typings → types}/common/url/opra-url-path.d.ts +0 -0
@@ -1,70 +0,0 @@
1
- import { ResponsiveMap } from '../helpers/responsive-map.js';
2
- declare const nodeInspectCustom: unique symbol;
3
- declare const kEntries: unique symbol;
4
- declare const kSize: unique symbol;
5
- declare const kOptions: unique symbol;
6
- type HeaderValueType = string | number | boolean;
7
- export type HttpHeadersInit = string | Headers | HttpHeaders | Map<string, any> | Record<string, string | string[]>;
8
- export interface HttpHeadersOptions {
9
- onChange?: () => void;
10
- }
11
- export declare class HttpHeaders {
12
- protected static kEntries: symbol;
13
- protected static kSize: symbol;
14
- protected static kOptions: symbol;
15
- protected [kEntries]: ResponsiveMap<string, string[]>;
16
- protected [kSize]: number;
17
- protected [kOptions]: HttpHeadersOptions;
18
- constructor(init?: HttpHeadersInit, options?: HttpHeadersOptions);
19
- get size(): number;
20
- /**
21
- * Appends a new value to the existing set of values for a header
22
- * and returns this instance
23
- */
24
- append(name: string, value: HeaderValueType | HeaderValueType[]): this;
25
- /**
26
- * Appends multiple values to the existing set of values for a header
27
- * and returns this instance
28
- */
29
- appendAll(headers: HttpHeadersInit): this;
30
- changed(): void;
31
- clear(): void;
32
- /**
33
- * Deletes values for a given header
34
- */
35
- delete(name: string, value?: HeaderValueType | HeaderValueType[]): this;
36
- /**
37
- * Returns an iterable of key, value pairs for every entry in the map.
38
- */
39
- entries(): IterableIterator<[string, string]>;
40
- forEach(callbackFn: (value: string, key: string, parent: HttpHeaders) => void, thisArg?: any): void;
41
- /**
42
- * Retrieves value of a given header at given index
43
- */
44
- get(name: string, index?: number): string | null;
45
- /**
46
- * Retrieves an array of values for a given header.
47
- */
48
- getAll(name: string): string[] | null;
49
- /**
50
- * Retrieves the names of the headers.
51
- */
52
- keys(): IterableIterator<string>;
53
- /**
54
- * Checks for existence of a given header.
55
- */
56
- has(name: string): boolean;
57
- /**
58
- * Sets or modifies a value for a given header.
59
- * If the header already exists, its value is replaced with the given value
60
- */
61
- set(name: string, value: HeaderValueType | HeaderValueType[]): this;
62
- sort(compareFn?: (a: string, b: string) => number): this;
63
- protected _append(name: string, value: HeaderValueType | HeaderValueType[]): void;
64
- protected _delete(name: string, value?: HeaderValueType | HeaderValueType[]): boolean;
65
- protected _set(name: string, value: string | string[]): void;
66
- [nodeInspectCustom](): ResponsiveMap<string, string[]>;
67
- [Symbol.iterator](): IterableIterator<[string, string]>;
68
- get [Symbol.toStringTag](): string;
69
- }
70
- export {};
@@ -1,4 +0,0 @@
1
- export declare abstract class HttpParamCodec {
2
- abstract decode(value: string): any;
3
- abstract encode(value: any): string;
4
- }
@@ -1,34 +0,0 @@
1
- /// <reference types="node" />
2
- /// <reference types="node" />
3
- import { Readable } from 'stream';
4
- declare const kHeaders: unique symbol;
5
- declare const kHeadersCount: unique symbol;
6
- declare const kTrailers: unique symbol;
7
- declare const kTrailersCount: unique symbol;
8
- export declare class HttpRequestNode extends Readable {
9
- httpVersionMajor: number;
10
- httpVersionMinor: number;
11
- httpVersion: string;
12
- complete: boolean;
13
- rawHeaders: string[];
14
- rawTrailers: string[];
15
- aborted: boolean;
16
- upgrade: boolean;
17
- url: string;
18
- originalUrl: string;
19
- method: string;
20
- shouldKeepAlive: boolean;
21
- data?: Buffer;
22
- body?: any;
23
- [kHeaders]: Record<string, string | string[]>;
24
- [kHeadersCount]: number;
25
- [kTrailers]: Record<string, string | string[]>;
26
- [kTrailersCount]: number;
27
- get headers(): Record<string, string | string[]>;
28
- get headersCount(): number;
29
- get trailers(): Record<string, string | string[]>;
30
- get trailersCount(): number;
31
- _read(): void;
32
- static parse(input: Buffer): HttpRequestNode;
33
- }
34
- export {};
@@ -1,17 +0,0 @@
1
- export * from './http-request-node.js';
2
- export * from './http-headers.js';
3
- export * from './http-request.js';
4
- export * from './http-response.js';
5
- export * from './http-params.js';
6
- export * from './http-param-codec.js';
7
- export * from './enums/http-headers-codes.enum.js';
8
- export * from './enums/http-status-codes.enum.js';
9
- export * from './interfaces/client-http-headers.interface.js';
10
- export * from './interfaces/server-http-headers.interface.js';
11
- export * from './param-codec/date-codec.js';
12
- export * from './param-codec/boolean-codec.js';
13
- export * from './param-codec/filter-codec.js';
14
- export * from './param-codec/integer-codec.js';
15
- export * from './param-codec/number-codec.js';
16
- export * from './param-codec/string-codec.js';
17
- export * from './utils/normalize-headers.js';
@@ -1,31 +0,0 @@
1
- /// <reference types="node" />
2
- /// <reference types="node" />
3
- /// <reference types="node" />
4
- import { Readable } from 'stream';
5
- import { HttpRequestContent, IHttpRequestContent } from './http-request-content.js';
6
- import { HttpResponseContent, IHttpResponseContent } from './http-response-content.js';
7
- type Part = {
8
- headers: Record<string, string | string[]>;
9
- contentId?: string;
10
- content: HttpRequestContent | HttpResponseContent | BatchMultipart;
11
- };
12
- export declare class BatchMultipart {
13
- protected _parts: Part[];
14
- readonly boundary: string;
15
- constructor();
16
- addRequestPart(content: IHttpRequestContent, part?: {
17
- contentId?: string;
18
- headers?: Record<string, string | string[]>;
19
- }): this;
20
- addHttpResponse(content: IHttpResponseContent, part?: {
21
- contentId?: string;
22
- headers?: Record<string, string | string[]>;
23
- }): this;
24
- addBatch(batch: BatchMultipart, part?: {
25
- contentId?: string;
26
- headers?: Record<string, string | string[]>;
27
- }): this;
28
- stream(): NodeJS.ReadableStream;
29
- protected _build(target: (Buffer | Readable)[]): void;
30
- }
31
- export {};
@@ -1,8 +0,0 @@
1
- export type IHttpRequestContent = Pick<HttpRequestContent, 'method' | 'url' | 'headers' | 'data'>;
2
- export declare class HttpRequestContent {
3
- method: string;
4
- url: string;
5
- headers?: Record<string, string | string[]>;
6
- data?: any;
7
- constructor(init: IHttpRequestContent);
8
- }
@@ -1,7 +0,0 @@
1
- export type IHttpResponseContent = Pick<HttpResponseContent, 'status' | 'headers' | 'data'>;
2
- export declare class HttpResponseContent {
3
- status: number;
4
- headers?: Record<string, string | string[]>;
5
- data?: any;
6
- constructor(init: IHttpResponseContent);
7
- }
@@ -1 +0,0 @@
1
- export * from './batch-multipart.js';
@@ -1,5 +0,0 @@
1
- import { HttpParamCodec } from '../http-param-codec.js';
2
- export declare class BooleanCodec extends HttpParamCodec {
3
- decode(value: string): boolean;
4
- encode(value: any): string;
5
- }
@@ -1,9 +0,0 @@
1
- import { NumberCodec, NumberFormatOptions } from './number-codec.js';
2
- export interface IntegerFormatOptions extends NumberFormatOptions {
3
- enum?: number[];
4
- }
5
- export declare class IntegerCodec extends NumberCodec {
6
- enum?: number[];
7
- constructor(options?: IntegerFormatOptions);
8
- decode(value: string): number;
9
- }
@@ -1,12 +0,0 @@
1
- import { HttpParamCodec } from '../http-param-codec.js';
2
- export interface NumberFormatOptions {
3
- max?: number;
4
- min?: number;
5
- }
6
- export declare class NumberCodec extends HttpParamCodec {
7
- max?: number;
8
- min?: number;
9
- constructor(options?: NumberFormatOptions);
10
- decode(value: string): number;
11
- encode(value: any): string;
12
- }
@@ -1,14 +0,0 @@
1
- import { HttpParamCodec } from '../http-param-codec.js';
2
- export interface StringFormatOptions {
3
- maxLength?: number;
4
- minLength?: number;
5
- enum?: string[];
6
- }
7
- export declare class StringCodec extends HttpParamCodec {
8
- maxLength?: number;
9
- minLength?: number;
10
- enum?: string[];
11
- constructor(options?: StringFormatOptions);
12
- decode(value: string): string;
13
- encode(value: any): string;
14
- }
@@ -1 +0,0 @@
1
- export declare function encodeURIParam(v: string): string;
@@ -1 +0,0 @@
1
- export declare function normalizeHeaders(headers: any, normalCase?: boolean): Record<string, string | string[]>;
@@ -1,8 +0,0 @@
1
- export declare const DATATYPE_METADATA = "opra:data_type.metadata";
2
- export declare const COMPLEXTYPE_FIELDS = "opra:complex_type.fields";
3
- export declare const RESOURCE_METADATA = "opra:resource.metadata";
4
- export declare const RESOLVER_METADATA = "opra:resolver.metadata";
5
- export declare const IGNORE_RESOLVER_METHOD = "opra:ignore_resolver-method";
6
- export declare const MAPPED_TYPE_METADATA = "opra:mapped_type.metadata";
7
- export declare const singletonMethods: string[];
8
- export declare const collectionMethods: string[];
@@ -1,8 +0,0 @@
1
- import "reflect-metadata";
2
- import { PartialSome, StrictOmit } from 'ts-gems';
3
- import { CollectionResourceMetadata } from '../interfaces/resource.metadata.js';
4
- import { TypeThunkAsync } from '../types.js';
5
- export type CollectionResourceOptions = PartialSome<StrictOmit<CollectionResourceMetadata, 'name' | 'kind' | 'type' | 'instance' | 'create' | 'count' | 'get' | 'update' | 'updateMany' | 'delete' | 'deleteMany' | 'search'>, 'keyFields'> & {
6
- name?: string;
7
- };
8
- export declare function OprCollectionResource(entityFunc: TypeThunkAsync, options?: CollectionResourceOptions): (target: Function) => void;
@@ -1,6 +0,0 @@
1
- import { StrictOmit } from 'ts-gems';
2
- import { ComplexTypeMetadata } from '../interfaces/data-type.metadata.js';
3
- export type ComplexTypeDecoratorOptions = Partial<StrictOmit<ComplexTypeMetadata, 'name' | 'kind' | 'ctor' | 'fields' | 'extends'>> & {
4
- name?: string;
5
- };
6
- export declare function OprComplexType(options?: ComplexTypeDecoratorOptions): ClassDecorator;
@@ -1,3 +0,0 @@
1
- import { StrictOmit } from 'ts-gems';
2
- import { FieldMetadata } from '../interfaces/data-type.metadata.js';
3
- export declare function OprField(args?: Partial<StrictOmit<FieldMetadata, 'isArray'>>): PropertyDecorator;
@@ -1,8 +0,0 @@
1
- import { ICreateResolverMetadata, IDeleteManyResolverMetadata, IDeleteResolverMetadata, IGetResolverMetadata, ISearchResolverMetadata, IUpdateManyResolverMetadata, IUpdateResolverMetadata } from '../interfaces/resource.metadata.js';
2
- export declare function OprCreateResolver(options?: ICreateResolverMetadata): (target: Object, propertyKey: 'create') => void;
3
- export declare function OprDeleteResolver(options?: IDeleteResolverMetadata): (target: Object, propertyKey: 'delete') => void;
4
- export declare function OprDeleteManyResolver(options?: IDeleteManyResolverMetadata): (target: Object, propertyKey: 'deleteMany') => void;
5
- export declare function OprUpdateResolver(options?: IUpdateResolverMetadata): (target: Object, propertyKey: 'update') => void;
6
- export declare function OprUpdateManyResolver(options?: IUpdateManyResolverMetadata): (target: Object, propertyKey: 'updateMany') => void;
7
- export declare function OprGetResolver(options?: IGetResolverMetadata): (target: Object, propertyKey: 'get') => void;
8
- export declare function OprSearchResolver(options?: ISearchResolverMetadata): (target: Object, propertyKey: 'search') => void;
@@ -1,6 +0,0 @@
1
- import { StrictOmit } from 'ts-gems';
2
- import { SimpleTypeMetadata } from '../interfaces/data-type.metadata.js';
3
- export type SimpleTypeDecoratorOptions = Partial<StrictOmit<SimpleTypeMetadata, 'name' | 'kind'>> & {
4
- name?: string;
5
- };
6
- export declare function OprSimpleType(options?: SimpleTypeDecoratorOptions): ClassDecorator;
@@ -1,8 +0,0 @@
1
- import "reflect-metadata";
2
- import { StrictOmit } from 'ts-gems';
3
- import { SingletonResourceMetadata } from '../interfaces/resource.metadata.js';
4
- import { TypeThunkAsync } from '../types.js';
5
- export type SingletonResourceOptions = StrictOmit<SingletonResourceMetadata, 'name' | 'kind' | 'type' | 'instance' | 'create' | 'get' | 'update' | 'delete'> & {
6
- name?: string;
7
- };
8
- export declare function OprSingletonResource(type: TypeThunkAsync | string, options?: SingletonResourceOptions): (target: Function) => void;
@@ -1,2 +0,0 @@
1
- import { OpraSchema } from '../../../opra-schema.definition.js';
2
- export declare const AnyType: OpraSchema.UnionType;
@@ -1,2 +0,0 @@
1
- import { OpraSchema } from '../../../opra-schema.definition.js';
2
- export declare const Base64BinaryType: OpraSchema.SimpleType;
@@ -1,2 +0,0 @@
1
- import { OpraSchema } from '../../../opra-schema.definition.js';
2
- export declare const BigIntType: OpraSchema.SimpleType;
@@ -1,2 +0,0 @@
1
- import { OpraSchema } from '../../../opra-schema.definition.js';
2
- export declare const BooleanType: OpraSchema.SimpleType;
@@ -1,2 +0,0 @@
1
- import { OpraSchema } from '../../../opra-schema.definition.js';
2
- export declare const DateStringType: OpraSchema.SimpleType;
@@ -1,2 +0,0 @@
1
- import { OpraSchema } from '../../../opra-schema.definition.js';
2
- export declare const DateType: OpraSchema.SimpleType;
@@ -1,2 +0,0 @@
1
- import { OpraSchema } from '../../../opra-schema.definition.js';
2
- export declare const GuidType: OpraSchema.SimpleType;
@@ -1,2 +0,0 @@
1
- import { OpraSchema } from '../../../opra-schema.definition.js';
2
- export declare const IntegerType: OpraSchema.SimpleType;
@@ -1,2 +0,0 @@
1
- import { OpraSchema } from '../../../opra-schema.definition.js';
2
- export declare const NumberType: OpraSchema.SimpleType;
@@ -1,2 +0,0 @@
1
- import { OpraSchema } from '../../../opra-schema.definition.js';
2
- export declare const ObjectType: OpraSchema.ComplexType;
@@ -1,2 +0,0 @@
1
- import { OpraSchema } from '../../../opra-schema.definition.js';
2
- export declare const StringType: OpraSchema.SimpleType;
@@ -1,4 +0,0 @@
1
- import { ResponsiveMap } from '../../../helpers/responsive-map.js';
2
- import { OpraSchema } from '../../opra-schema.definition.js';
3
- export declare const builtInTypes: ResponsiveMap<string, OpraSchema.DataType>;
4
- export declare const primitiveClasses: Map<Function, string>;
@@ -1,29 +0,0 @@
1
- import { StrictOmit } from 'ts-gems';
2
- import { ResponsiveMap } from '../../../helpers/responsive-map.js';
3
- import { OpraSchema } from '../../opra-schema.definition.js';
4
- import { nodeInspectCustom } from '../../utils/inspect.util.js';
5
- import type { OpraDocument } from '../opra-document';
6
- import { DataType } from './data-type.js';
7
- export type ComplexTypeArgs = StrictOmit<OpraSchema.ComplexType, 'kind'>;
8
- export declare class ComplexType extends DataType {
9
- protected _initialized: boolean;
10
- protected _metadata: OpraSchema.ComplexType;
11
- private _mixinAdditionalFields;
12
- readonly ownFields: ResponsiveMap<string, Field>;
13
- readonly fields: ResponsiveMap<string, Field>;
14
- constructor(owner: OpraDocument, name: any, args: ComplexTypeArgs);
15
- get abstract(): boolean;
16
- get additionalFields(): string | boolean | Pick<OpraSchema.Field, "type" | "format" | "isArray" | "enum">;
17
- get extends(): OpraSchema.ComplexTypeExtendingInfo[] | undefined;
18
- getField(fieldName: string): Field;
19
- getFieldType(fieldName: string): DataType;
20
- getOwnField(name: string): Field;
21
- getSchema(): OpraSchema.ComplexType;
22
- toString(): string;
23
- [nodeInspectCustom](): string;
24
- init(): void;
25
- }
26
- export interface Field extends OpraSchema.Field {
27
- name: string;
28
- parent: ComplexType;
29
- }
@@ -1,17 +0,0 @@
1
- import { Type } from 'ts-gems';
2
- import { OpraSchema } from '../../opra-schema.definition.js';
3
- import type { OpraDocument } from '../opra-document';
4
- export declare abstract class DataType {
5
- protected _document: OpraDocument;
6
- protected _metadata: OpraSchema.BaseDataType;
7
- protected _name: string;
8
- protected constructor(document: OpraDocument, name: any, metadata: OpraSchema.DataType);
9
- get document(): OpraDocument;
10
- get kind(): OpraSchema.DataTypeKind;
11
- get name(): string;
12
- get description(): string | undefined;
13
- get ctor(): Type | undefined;
14
- get isBuiltin(): boolean;
15
- parse<T>(value: any): T;
16
- getSchema(jsonOnly?: boolean): any;
17
- }
@@ -1,12 +0,0 @@
1
- import { StrictOmit } from 'ts-gems';
2
- import { OpraSchema } from '../../opra-schema.definition.js';
3
- import { nodeInspectCustom } from '../../utils/inspect.util.js';
4
- import type { OpraDocument } from '../opra-document';
5
- import { DataType } from './data-type.js';
6
- export declare class SimpleType extends DataType {
7
- protected readonly _metadata: OpraSchema.SimpleType;
8
- readonly base?: SimpleType;
9
- constructor(owner: OpraDocument, name: string, args: StrictOmit<OpraSchema.SimpleType, 'kind'>);
10
- toString(): string;
11
- [nodeInspectCustom](): string;
12
- }
@@ -1,16 +0,0 @@
1
- import { StrictOmit } from 'ts-gems';
2
- import { OpraSchema } from '../../opra-schema.definition.js';
3
- import { nodeInspectCustom } from '../../utils/inspect.util.js';
4
- import type { OpraDocument } from '../opra-document';
5
- import { DataType } from './data-type.js';
6
- export type UnionTypeArgs = StrictOmit<OpraSchema.UnionType, 'kind'> & {
7
- types: DataType[];
8
- };
9
- export declare class UnionType extends DataType {
10
- protected readonly _metadata: StrictOmit<OpraSchema.UnionType, 'types'>;
11
- readonly types: DataType[];
12
- readonly hasAdditionalFields: boolean;
13
- constructor(owner: OpraDocument, name: string, args: UnionTypeArgs);
14
- toString(): string;
15
- [nodeInspectCustom](): string;
16
- }
@@ -1,16 +0,0 @@
1
- import { Type } from 'ts-gems';
2
- import { ResponsiveMap } from '../../helpers/responsive-map.js';
3
- import { OpraSchema } from '../opra-schema.definition.js';
4
- import { ThunkAsync } from '../types.js';
5
- export type DocumentBuilderArgs = Pick<OpraSchema.Document, 'info' | 'servers'>;
6
- export declare class DocumentBuilder {
7
- protected _args: DocumentBuilderArgs;
8
- protected _dataTypes: ResponsiveMap<string, OpraSchema.DataType>;
9
- protected _resources: ResponsiveMap<string, OpraSchema.Resource>;
10
- constructor(args: DocumentBuilderArgs);
11
- buildSchema(): OpraSchema.Document;
12
- addDataTypeSchema(name: string, schema: OpraSchema.DataType): Promise<void>;
13
- addDataTypeClass(thunk: ThunkAsync<Type | Function>): Promise<string>;
14
- addResourceSchema(name: string, schema: OpraSchema.Resource): Promise<void>;
15
- addResourceInstance(thunk: ThunkAsync<any>): Promise<string>;
16
- }
@@ -1,44 +0,0 @@
1
- import { Type } from 'ts-gems';
2
- import { ResponsiveMap } from '../../helpers/responsive-map.js';
3
- import { IResourceContainer } from '../interfaces/resource-container.interface.js';
4
- import { OpraSchema } from '../opra-schema.definition.js';
5
- import { ThunkAsync } from '../types.js';
6
- import { ComplexType } from './data-type/complex-type.js';
7
- import { DataType } from './data-type/data-type.js';
8
- import { SimpleType } from './data-type/simple-type.js';
9
- import { UnionType } from './data-type/union-type.js';
10
- import { DocumentBuilderArgs } from './document-builder.js';
11
- import { CollectionResourceInfo } from './resource/collection-resource-info.js';
12
- import { ResourceInfo } from './resource/resource-info.js';
13
- import { SingletonResourceInfo } from './resource/singleton-resource-info.js';
14
- export type OpraDocumentArgs = DocumentBuilderArgs & {
15
- types?: ThunkAsync<Type>[] | Record<string, OpraSchema.DataType>;
16
- resources?: ThunkAsync<any>[] | Record<string, OpraSchema.Resource>;
17
- };
18
- type OpraDocumentMeta = Pick<OpraSchema.Document, 'info' | 'servers'>;
19
- export declare namespace OpraDocument {
20
- }
21
- export declare class OpraDocument implements IResourceContainer {
22
- protected readonly _meta: OpraDocumentMeta;
23
- protected _ownTypes: ResponsiveMap<string, DataType>;
24
- protected _types: ResponsiveMap<string, DataType>;
25
- protected _resources: ResponsiveMap<string, ResourceInfo>;
26
- constructor(schema: OpraSchema.Document);
27
- get info(): OpraSchema.DocumentInfo;
28
- get types(): Map<string, DataType>;
29
- getDataType(name: string): DataType;
30
- getComplexDataType(name: string): ComplexType;
31
- getSimpleDataType(name: string): SimpleType;
32
- getUnionDataType(name: string): UnionType;
33
- get resources(): Map<string, ResourceInfo>;
34
- get servers(): OpraSchema.ServerInfo[] | undefined;
35
- getResource<T extends ResourceInfo>(name: string): T;
36
- getCollectionResource(name: string): CollectionResourceInfo;
37
- getSingletonResource(name: string): SingletonResourceInfo;
38
- getMetadata(jsonOnly?: boolean): OpraSchema.Document;
39
- protected _addDataType(name: string, schema: OpraSchema.DataType, isOwn: boolean): DataType;
40
- protected _addResource(name: string, schema: OpraSchema.Resource): void;
41
- protected _initTypes(): void;
42
- static create(args: OpraDocumentArgs): Promise<OpraDocument>;
43
- }
44
- export {};
@@ -1,14 +0,0 @@
1
- import { Expression } from '../../../filter/index.js';
2
- import { CollectionResourceInfo } from '../resource/collection-resource-info.js';
3
- export type CollectionCountQueryOptions = {
4
- filter?: string | Expression;
5
- };
6
- export declare class CollectionCountQuery {
7
- readonly resource: CollectionResourceInfo;
8
- readonly kind = "CollectionCountQuery";
9
- readonly method = "count";
10
- readonly operation = "read";
11
- filter?: Expression;
12
- constructor(resource: CollectionResourceInfo, options?: CollectionCountQueryOptions);
13
- get dataType(): import("../data-type/complex-type.js").ComplexType;
14
- }
@@ -1,18 +0,0 @@
1
- import { CollectionResourceInfo } from '../resource/collection-resource-info.js';
2
- export type CollectionCreateQueryOptions = {
3
- pick?: string[];
4
- omit?: string[];
5
- include?: string[];
6
- };
7
- export declare class CollectionCreateQuery {
8
- readonly resource: CollectionResourceInfo;
9
- data: {};
10
- readonly kind = "CollectionCreateQuery";
11
- readonly method = "create";
12
- readonly operation = "create";
13
- pick?: string[];
14
- omit?: string[];
15
- include?: string[];
16
- constructor(resource: CollectionResourceInfo, data: {}, options?: CollectionCreateQueryOptions);
17
- get dataType(): import("../data-type/complex-type.js").ComplexType;
18
- }
@@ -1,14 +0,0 @@
1
- import { Expression } from '../../../filter/index.js';
2
- import { CollectionResourceInfo } from '../resource/collection-resource-info.js';
3
- export type CollectionDeleteManyQueryOptions = {
4
- filter?: string | Expression;
5
- };
6
- export declare class CollectionDeleteManyQuery {
7
- readonly resource: CollectionResourceInfo;
8
- readonly kind = "CollectionDeleteManyQuery";
9
- readonly method = "deleteMany";
10
- readonly operation = "delete";
11
- filter?: Expression;
12
- constructor(resource: CollectionResourceInfo, options?: CollectionDeleteManyQueryOptions);
13
- get dataType(): import("../data-type/complex-type.js").ComplexType;
14
- }
@@ -1,10 +0,0 @@
1
- import { CollectionResourceInfo } from '../resource/collection-resource-info.js';
2
- export declare class CollectionDeleteQuery {
3
- readonly resource: CollectionResourceInfo;
4
- readonly kind = "CollectionDeleteQuery";
5
- readonly method = "delete";
6
- readonly operation = "delete";
7
- keyValue: any;
8
- constructor(resource: CollectionResourceInfo, keyValue: any);
9
- get dataType(): import("../data-type/complex-type.js").ComplexType;
10
- }
@@ -1,21 +0,0 @@
1
- import type { IChildFieldQuery } from '../../interfaces/child-field-query.interface.js';
2
- import type { CollectionResourceInfo } from '../resource/collection-resource-info.js';
3
- import type { FieldGetQuery } from './field-get-query.js';
4
- export type CollectionGetQueryOptions = {
5
- pick?: string[];
6
- omit?: string[];
7
- include?: string[];
8
- };
9
- export declare class CollectionGetQuery implements IChildFieldQuery {
10
- readonly resource: CollectionResourceInfo;
11
- readonly kind = "CollectionGetQuery";
12
- readonly method = "get";
13
- readonly operation = "read";
14
- keyValue: any;
15
- pick?: string[];
16
- omit?: string[];
17
- include?: string[];
18
- child?: FieldGetQuery;
19
- constructor(resource: CollectionResourceInfo, keyValue: any, options?: CollectionGetQueryOptions);
20
- get dataType(): import("../data-type/complex-type.js").ComplexType;
21
- }
@@ -1,30 +0,0 @@
1
- import { Expression } from '../../../filter/index.js';
2
- import { CollectionResourceInfo } from '../resource/collection-resource-info.js';
3
- export type CollectionSearchQueryOptions = {
4
- pick?: string[];
5
- omit?: string[];
6
- include?: string[];
7
- filter?: string | Expression;
8
- limit?: number;
9
- skip?: number;
10
- distinct?: boolean;
11
- count?: boolean;
12
- sort?: string[];
13
- };
14
- export declare class CollectionSearchQuery {
15
- readonly resource: CollectionResourceInfo;
16
- readonly kind = "CollectionSearchQuery";
17
- readonly method = "search";
18
- readonly operation = "read";
19
- pick?: string[];
20
- omit?: string[];
21
- include?: string[];
22
- filter?: Expression;
23
- limit?: number;
24
- skip?: number;
25
- distinct?: boolean;
26
- count?: boolean;
27
- sort?: string[];
28
- constructor(resource: CollectionResourceInfo, options?: CollectionSearchQueryOptions);
29
- get dataType(): import("../data-type/complex-type.js").ComplexType;
30
- }
@@ -1,15 +0,0 @@
1
- import { Expression } from '../../../filter/index.js';
2
- import { CollectionResourceInfo } from '../resource/collection-resource-info.js';
3
- export type CollectionUpdateManyQueryOptions = {
4
- filter?: string | Expression;
5
- };
6
- export declare class CollectionUpdateManyQuery {
7
- readonly resource: CollectionResourceInfo;
8
- data: {};
9
- readonly kind = "CollectionUpdateManyQuery";
10
- readonly method = "updateMany";
11
- readonly operation = "update";
12
- filter?: Expression;
13
- constructor(resource: CollectionResourceInfo, data: {}, options?: CollectionUpdateManyQueryOptions);
14
- get dataType(): import("../data-type/complex-type.js").ComplexType;
15
- }