@revenexx/node 0.1.0 → 0.1.1

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 (342) hide show
  1. package/README.md +3 -0
  2. package/dist/client.d.mts +25 -0
  3. package/dist/client.d.ts +25 -0
  4. package/dist/client.js +39 -18
  5. package/dist/client.js.map +1 -1
  6. package/dist/client.mjs +35 -14
  7. package/dist/client.mjs.map +1 -1
  8. package/dist/enums/approval-rule-approver-type.d.mts +7 -0
  9. package/dist/enums/approval-rule-approver-type.d.ts +7 -0
  10. package/dist/enums/approval-rule-approver-type.js +12 -0
  11. package/dist/enums/approval-rule-approver-type.js.map +1 -0
  12. package/dist/enums/approval-rule-approver-type.mjs +11 -0
  13. package/dist/enums/approval-rule-approver-type.mjs.map +1 -0
  14. package/dist/enums/approval-rule-condition.d.mts +10 -0
  15. package/dist/enums/approval-rule-condition.d.ts +10 -0
  16. package/dist/enums/approval-rule-condition.js +15 -0
  17. package/dist/enums/approval-rule-condition.js.map +1 -0
  18. package/dist/enums/approval-rule-condition.mjs +14 -0
  19. package/dist/enums/approval-rule-condition.mjs.map +1 -0
  20. package/dist/enums/approval-rule-create-request-approver-type.d.mts +7 -0
  21. package/dist/enums/approval-rule-create-request-approver-type.d.ts +7 -0
  22. package/dist/enums/approval-rule-create-request-approver-type.js +12 -0
  23. package/dist/enums/approval-rule-create-request-approver-type.js.map +1 -0
  24. package/dist/enums/approval-rule-create-request-approver-type.mjs +11 -0
  25. package/dist/enums/approval-rule-create-request-approver-type.mjs.map +1 -0
  26. package/dist/enums/approval-rule-create-request-condition.d.mts +10 -0
  27. package/dist/enums/approval-rule-create-request-condition.d.ts +10 -0
  28. package/dist/enums/approval-rule-create-request-condition.js +15 -0
  29. package/dist/enums/approval-rule-create-request-condition.js.map +1 -0
  30. package/dist/enums/approval-rule-create-request-condition.mjs +14 -0
  31. package/dist/enums/approval-rule-create-request-condition.mjs.map +1 -0
  32. package/dist/enums/approval-rule-create-request-effect.d.mts +7 -0
  33. package/dist/enums/approval-rule-create-request-effect.d.ts +7 -0
  34. package/dist/enums/approval-rule-create-request-effect.js +12 -0
  35. package/dist/enums/approval-rule-create-request-effect.js.map +1 -0
  36. package/dist/enums/approval-rule-create-request-effect.mjs +11 -0
  37. package/dist/enums/approval-rule-create-request-effect.mjs.map +1 -0
  38. package/dist/enums/approval-rule-effect.d.mts +7 -0
  39. package/dist/enums/approval-rule-effect.d.ts +7 -0
  40. package/dist/enums/approval-rule-effect.js +12 -0
  41. package/dist/enums/approval-rule-effect.js.map +1 -0
  42. package/dist/enums/approval-rule-effect.mjs +11 -0
  43. package/dist/enums/approval-rule-effect.mjs.map +1 -0
  44. package/dist/enums/approval-rule-update-request-approver-type.d.mts +7 -0
  45. package/dist/enums/approval-rule-update-request-approver-type.d.ts +7 -0
  46. package/dist/enums/approval-rule-update-request-approver-type.js +12 -0
  47. package/dist/enums/approval-rule-update-request-approver-type.js.map +1 -0
  48. package/dist/enums/approval-rule-update-request-approver-type.mjs +11 -0
  49. package/dist/enums/approval-rule-update-request-approver-type.mjs.map +1 -0
  50. package/dist/enums/approval-rule-update-request-condition.d.mts +10 -0
  51. package/dist/enums/approval-rule-update-request-condition.d.ts +10 -0
  52. package/dist/enums/approval-rule-update-request-condition.js +15 -0
  53. package/dist/enums/approval-rule-update-request-condition.js.map +1 -0
  54. package/dist/enums/approval-rule-update-request-condition.mjs +14 -0
  55. package/dist/enums/approval-rule-update-request-condition.mjs.map +1 -0
  56. package/dist/enums/approval-rule-update-request-effect.d.mts +7 -0
  57. package/dist/enums/approval-rule-update-request-effect.d.ts +7 -0
  58. package/dist/enums/approval-rule-update-request-effect.js +12 -0
  59. package/dist/enums/approval-rule-update-request-effect.js.map +1 -0
  60. package/dist/enums/approval-rule-update-request-effect.mjs +11 -0
  61. package/dist/enums/approval-rule-update-request-effect.mjs.map +1 -0
  62. package/dist/enums/approver-type.d.mts +7 -0
  63. package/dist/enums/approver-type.d.ts +7 -0
  64. package/dist/enums/approver-type.js +12 -0
  65. package/dist/enums/approver-type.js.map +1 -0
  66. package/dist/enums/approver-type.mjs +11 -0
  67. package/dist/enums/approver-type.mjs.map +1 -0
  68. package/dist/enums/condition.d.mts +10 -0
  69. package/dist/enums/condition.d.ts +10 -0
  70. package/dist/enums/condition.js +15 -0
  71. package/dist/enums/condition.js.map +1 -0
  72. package/dist/enums/condition.mjs +14 -0
  73. package/dist/enums/condition.mjs.map +1 -0
  74. package/dist/enums/effect.d.mts +7 -0
  75. package/dist/enums/effect.d.ts +7 -0
  76. package/dist/enums/effect.js +12 -0
  77. package/dist/enums/effect.js.map +1 -0
  78. package/dist/enums/effect.mjs +11 -0
  79. package/dist/enums/effect.mjs.map +1 -0
  80. package/dist/enums/pending-approval-approver-type.d.mts +7 -0
  81. package/dist/enums/pending-approval-approver-type.d.ts +7 -0
  82. package/dist/enums/pending-approval-approver-type.js +12 -0
  83. package/dist/enums/pending-approval-approver-type.js.map +1 -0
  84. package/dist/enums/pending-approval-approver-type.mjs +11 -0
  85. package/dist/enums/pending-approval-approver-type.mjs.map +1 -0
  86. package/dist/enums/pending-approval-status.d.mts +7 -0
  87. package/dist/enums/pending-approval-status.d.ts +7 -0
  88. package/dist/enums/pending-approval-status.js +12 -0
  89. package/dist/enums/pending-approval-status.js.map +1 -0
  90. package/dist/enums/pending-approval-status.mjs +11 -0
  91. package/dist/enums/pending-approval-status.mjs.map +1 -0
  92. package/dist/enums/procurement-purchase-request-items-create-type.d.mts +7 -0
  93. package/dist/enums/procurement-purchase-request-items-create-type.d.ts +7 -0
  94. package/dist/enums/procurement-purchase-request-items-create-type.js +12 -0
  95. package/dist/enums/procurement-purchase-request-items-create-type.js.map +1 -0
  96. package/dist/enums/procurement-purchase-request-items-create-type.mjs +11 -0
  97. package/dist/enums/procurement-purchase-request-items-create-type.mjs.map +1 -0
  98. package/dist/enums/purchase-request-event-name.d.mts +12 -0
  99. package/dist/enums/purchase-request-event-name.d.ts +12 -0
  100. package/dist/enums/purchase-request-event-name.js +17 -0
  101. package/dist/enums/purchase-request-event-name.js.map +1 -0
  102. package/dist/enums/purchase-request-event-name.mjs +16 -0
  103. package/dist/enums/purchase-request-event-name.mjs.map +1 -0
  104. package/dist/enums/purchase-request-item-create-request-type.d.mts +7 -0
  105. package/dist/enums/purchase-request-item-create-request-type.d.ts +7 -0
  106. package/dist/enums/purchase-request-item-create-request-type.js +12 -0
  107. package/dist/enums/purchase-request-item-create-request-type.js.map +1 -0
  108. package/dist/enums/purchase-request-item-create-request-type.mjs +11 -0
  109. package/dist/enums/purchase-request-item-create-request-type.mjs.map +1 -0
  110. package/dist/enums/purchase-request-item-type.d.mts +7 -0
  111. package/dist/enums/purchase-request-item-type.d.ts +7 -0
  112. package/dist/enums/purchase-request-item-type.js +12 -0
  113. package/dist/enums/purchase-request-item-type.js.map +1 -0
  114. package/dist/enums/purchase-request-item-type.mjs +11 -0
  115. package/dist/enums/purchase-request-item-type.mjs.map +1 -0
  116. package/dist/enums/purchase-request-item-update-request-type.d.mts +7 -0
  117. package/dist/enums/purchase-request-item-update-request-type.d.ts +7 -0
  118. package/dist/enums/purchase-request-item-update-request-type.js +12 -0
  119. package/dist/enums/purchase-request-item-update-request-type.js.map +1 -0
  120. package/dist/enums/purchase-request-item-update-request-type.mjs +11 -0
  121. package/dist/enums/purchase-request-item-update-request-type.mjs.map +1 -0
  122. package/dist/enums/purchase-request-status.d.mts +9 -0
  123. package/dist/enums/purchase-request-status.d.ts +9 -0
  124. package/dist/enums/purchase-request-status.js +14 -0
  125. package/dist/enums/purchase-request-status.js.map +1 -0
  126. package/dist/enums/purchase-request-status.mjs +13 -0
  127. package/dist/enums/purchase-request-status.mjs.map +1 -0
  128. package/dist/enums/submit-item-type.d.mts +7 -0
  129. package/dist/enums/submit-item-type.d.ts +7 -0
  130. package/dist/enums/submit-item-type.js +12 -0
  131. package/dist/enums/submit-item-type.js.map +1 -0
  132. package/dist/enums/submit-item-type.mjs +11 -0
  133. package/dist/enums/submit-item-type.mjs.map +1 -0
  134. package/dist/enums/submit-result-outcome.d.mts +9 -0
  135. package/dist/enums/submit-result-outcome.d.ts +9 -0
  136. package/dist/enums/submit-result-outcome.js +14 -0
  137. package/dist/enums/submit-result-outcome.js.map +1 -0
  138. package/dist/enums/submit-result-outcome.mjs +13 -0
  139. package/dist/enums/submit-result-outcome.mjs.map +1 -0
  140. package/dist/index.d.mts +23 -0
  141. package/dist/index.d.ts +23 -0
  142. package/dist/index.js +115 -0
  143. package/dist/index.js.map +1 -1
  144. package/dist/index.mjs +23 -0
  145. package/dist/index.mjs.map +1 -1
  146. package/dist/inputFile.js +1 -2
  147. package/dist/inputFile.js.map +1 -1
  148. package/dist/inputFile.mjs +0 -1
  149. package/dist/inputFile.mjs.map +1 -1
  150. package/dist/models.d.mts +1027 -36
  151. package/dist/models.d.ts +1027 -36
  152. package/dist/operator.js +243 -204
  153. package/dist/operator.js.map +1 -1
  154. package/dist/operator.mjs +242 -203
  155. package/dist/operator.mjs.map +1 -1
  156. package/dist/permission.js +58 -48
  157. package/dist/permission.js.map +1 -1
  158. package/dist/permission.mjs +58 -48
  159. package/dist/permission.mjs.map +1 -1
  160. package/dist/query.js +525 -422
  161. package/dist/query.js.map +1 -1
  162. package/dist/query.mjs +524 -421
  163. package/dist/query.mjs.map +1 -1
  164. package/dist/services/apps.d.mts +18 -0
  165. package/dist/services/apps.d.ts +18 -0
  166. package/dist/services/avatars.d.mts +18 -0
  167. package/dist/services/avatars.d.ts +18 -0
  168. package/dist/services/carts-io.d.mts +46 -28
  169. package/dist/services/carts-io.d.ts +46 -28
  170. package/dist/services/carts-io.js.map +1 -1
  171. package/dist/services/carts-io.mjs.map +1 -1
  172. package/dist/services/carts-items.d.mts +42 -24
  173. package/dist/services/carts-items.d.ts +42 -24
  174. package/dist/services/carts-items.js.map +1 -1
  175. package/dist/services/carts-items.mjs.map +1 -1
  176. package/dist/services/carts.d.mts +70 -52
  177. package/dist/services/carts.d.ts +70 -52
  178. package/dist/services/carts.js.map +1 -1
  179. package/dist/services/carts.mjs.map +1 -1
  180. package/dist/services/channels.d.mts +64 -46
  181. package/dist/services/channels.d.ts +64 -46
  182. package/dist/services/channels.js +1 -1
  183. package/dist/services/channels.js.map +1 -1
  184. package/dist/services/channels.mjs +1 -1
  185. package/dist/services/channels.mjs.map +1 -1
  186. package/dist/services/cost-centers.d.mts +18 -0
  187. package/dist/services/cost-centers.d.ts +18 -0
  188. package/dist/services/customers-contacts.d.mts +62 -44
  189. package/dist/services/customers-contacts.d.ts +62 -44
  190. package/dist/services/customers-contacts.js.map +1 -1
  191. package/dist/services/customers-contacts.mjs.map +1 -1
  192. package/dist/services/customers-organizations.d.mts +58 -40
  193. package/dist/services/customers-organizations.d.ts +58 -40
  194. package/dist/services/customers-organizations.js.map +1 -1
  195. package/dist/services/customers-organizations.mjs.map +1 -1
  196. package/dist/services/customers-roles.d.mts +26 -8
  197. package/dist/services/customers-roles.d.ts +26 -8
  198. package/dist/services/customers-roles.js.map +1 -1
  199. package/dist/services/customers-roles.mjs.map +1 -1
  200. package/dist/services/customers-segments.d.mts +62 -44
  201. package/dist/services/customers-segments.d.ts +62 -44
  202. package/dist/services/customers-segments.js.map +1 -1
  203. package/dist/services/customers-segments.mjs.map +1 -1
  204. package/dist/services/customers-value-lists.d.mts +90 -72
  205. package/dist/services/customers-value-lists.d.ts +90 -72
  206. package/dist/services/customers-value-lists.js.map +1 -1
  207. package/dist/services/customers-value-lists.mjs.map +1 -1
  208. package/dist/services/customers.d.mts +78 -60
  209. package/dist/services/customers.d.ts +78 -60
  210. package/dist/services/customers.js.map +1 -1
  211. package/dist/services/customers.mjs.map +1 -1
  212. package/dist/services/events.d.mts +18 -0
  213. package/dist/services/events.d.ts +18 -0
  214. package/dist/services/forms.d.mts +66 -48
  215. package/dist/services/forms.d.ts +66 -48
  216. package/dist/services/forms.js.map +1 -1
  217. package/dist/services/forms.mjs.map +1 -1
  218. package/dist/services/health.d.mts +18 -0
  219. package/dist/services/health.d.ts +18 -0
  220. package/dist/services/inventories-locations.d.mts +38 -20
  221. package/dist/services/inventories-locations.d.ts +38 -20
  222. package/dist/services/inventories-locations.js.map +1 -1
  223. package/dist/services/inventories-locations.mjs.map +1 -1
  224. package/dist/services/inventories-reservations.d.mts +38 -20
  225. package/dist/services/inventories-reservations.d.ts +38 -20
  226. package/dist/services/inventories-reservations.js.map +1 -1
  227. package/dist/services/inventories-reservations.mjs.map +1 -1
  228. package/dist/services/inventories-stock.d.mts +70 -52
  229. package/dist/services/inventories-stock.d.ts +70 -52
  230. package/dist/services/inventories-stock.js.map +1 -1
  231. package/dist/services/inventories-stock.mjs.map +1 -1
  232. package/dist/services/io.d.mts +66 -48
  233. package/dist/services/io.d.ts +66 -48
  234. package/dist/services/io.js +2 -2
  235. package/dist/services/io.js.map +1 -1
  236. package/dist/services/io.mjs +2 -2
  237. package/dist/services/io.mjs.map +1 -1
  238. package/dist/services/locale.d.mts +18 -0
  239. package/dist/services/locale.d.ts +18 -0
  240. package/dist/services/markets.d.mts +122 -104
  241. package/dist/services/markets.d.ts +122 -104
  242. package/dist/services/markets.js.map +1 -1
  243. package/dist/services/markets.mjs.map +1 -1
  244. package/dist/services/messaging.d.mts +194 -176
  245. package/dist/services/messaging.d.ts +194 -176
  246. package/dist/services/messaging.js +3 -3
  247. package/dist/services/messaging.js.map +1 -1
  248. package/dist/services/messaging.mjs +3 -3
  249. package/dist/services/messaging.mjs.map +1 -1
  250. package/dist/services/orderlists.d.mts +96 -78
  251. package/dist/services/orderlists.d.ts +96 -78
  252. package/dist/services/orderlists.js +1 -1
  253. package/dist/services/orderlists.js.map +1 -1
  254. package/dist/services/orderlists.mjs +1 -1
  255. package/dist/services/orderlists.mjs.map +1 -1
  256. package/dist/services/orders.d.mts +114 -96
  257. package/dist/services/orders.d.ts +114 -96
  258. package/dist/services/orders.js.map +1 -1
  259. package/dist/services/orders.mjs.map +1 -1
  260. package/dist/services/pages-collaboration.d.mts +34 -16
  261. package/dist/services/pages-collaboration.d.ts +34 -16
  262. package/dist/services/pages-collaboration.js.map +1 -1
  263. package/dist/services/pages-collaboration.mjs.map +1 -1
  264. package/dist/services/pages-delivery.d.mts +26 -8
  265. package/dist/services/pages-delivery.d.ts +26 -8
  266. package/dist/services/pages-delivery.js.map +1 -1
  267. package/dist/services/pages-delivery.mjs.map +1 -1
  268. package/dist/services/pages-editor.d.mts +34 -16
  269. package/dist/services/pages-editor.d.ts +34 -16
  270. package/dist/services/pages-editor.js.map +1 -1
  271. package/dist/services/pages-editor.mjs.map +1 -1
  272. package/dist/services/pages.d.mts +82 -64
  273. package/dist/services/pages.d.ts +82 -64
  274. package/dist/services/pages.js.map +1 -1
  275. package/dist/services/pages.mjs.map +1 -1
  276. package/dist/services/payments-ledger.d.mts +54 -36
  277. package/dist/services/payments-ledger.d.ts +54 -36
  278. package/dist/services/payments-ledger.js.map +1 -1
  279. package/dist/services/payments-ledger.mjs.map +1 -1
  280. package/dist/services/payments-methods.d.mts +34 -16
  281. package/dist/services/payments-methods.d.ts +34 -16
  282. package/dist/services/payments-methods.js.map +1 -1
  283. package/dist/services/payments-methods.mjs.map +1 -1
  284. package/dist/services/payments-providers.d.mts +38 -20
  285. package/dist/services/payments-providers.d.ts +38 -20
  286. package/dist/services/payments-providers.js.map +1 -1
  287. package/dist/services/payments-providers.mjs.map +1 -1
  288. package/dist/services/prices.d.mts +86 -68
  289. package/dist/services/prices.d.ts +86 -68
  290. package/dist/services/prices.js.map +1 -1
  291. package/dist/services/prices.mjs.map +1 -1
  292. package/dist/services/procurement.d.mts +991 -0
  293. package/dist/services/procurement.d.ts +991 -0
  294. package/dist/services/procurement.js +1185 -0
  295. package/dist/services/procurement.js.map +1 -0
  296. package/dist/services/procurement.mjs +1184 -0
  297. package/dist/services/procurement.mjs.map +1 -0
  298. package/dist/services/products-assets.d.mts +34 -16
  299. package/dist/services/products-assets.d.ts +34 -16
  300. package/dist/services/products-assets.js.map +1 -1
  301. package/dist/services/products-assets.mjs.map +1 -1
  302. package/dist/services/products-categories.d.mts +66 -48
  303. package/dist/services/products-categories.d.ts +66 -48
  304. package/dist/services/products-categories.js.map +1 -1
  305. package/dist/services/products-categories.mjs.map +1 -1
  306. package/dist/services/products-data-model.d.mts +166 -148
  307. package/dist/services/products-data-model.d.ts +166 -148
  308. package/dist/services/products-data-model.js.map +1 -1
  309. package/dist/services/products-data-model.mjs.map +1 -1
  310. package/dist/services/products-references.d.mts +50 -32
  311. package/dist/services/products-references.d.ts +50 -32
  312. package/dist/services/products-references.js.map +1 -1
  313. package/dist/services/products-references.mjs.map +1 -1
  314. package/dist/services/products.d.mts +70 -52
  315. package/dist/services/products.d.ts +70 -52
  316. package/dist/services/products.js.map +1 -1
  317. package/dist/services/products.mjs.map +1 -1
  318. package/dist/services/search.d.mts +40 -22
  319. package/dist/services/search.d.ts +40 -22
  320. package/dist/services/search.js +1 -1
  321. package/dist/services/search.js.map +1 -1
  322. package/dist/services/search.mjs +1 -1
  323. package/dist/services/search.mjs.map +1 -1
  324. package/dist/services/settings.d.mts +18 -0
  325. package/dist/services/settings.d.ts +18 -0
  326. package/dist/services/shipping-carriers.d.mts +42 -24
  327. package/dist/services/shipping-carriers.d.ts +42 -24
  328. package/dist/services/shipping-carriers.js.map +1 -1
  329. package/dist/services/shipping-carriers.mjs.map +1 -1
  330. package/dist/services/shipping-methods.d.mts +70 -52
  331. package/dist/services/shipping-methods.d.ts +70 -52
  332. package/dist/services/shipping-methods.js.map +1 -1
  333. package/dist/services/shipping-methods.mjs.map +1 -1
  334. package/dist/services/shipping-value-lists.d.mts +62 -44
  335. package/dist/services/shipping-value-lists.d.ts +62 -44
  336. package/dist/services/shipping-value-lists.js.map +1 -1
  337. package/dist/services/shipping-value-lists.mjs.map +1 -1
  338. package/dist/services/sites.d.mts +18 -0
  339. package/dist/services/sites.d.ts +18 -0
  340. package/dist/services/storage.d.mts +18 -0
  341. package/dist/services/storage.d.ts +18 -0
  342. package/package.json +6 -3
package/dist/query.mjs CHANGED
@@ -2,7 +2,7 @@ import JSONbigModule from 'json-bigint';
2
2
 
3
3
  // src/query.ts
4
4
  var JSONbig = JSONbigModule({ useNativeBigInt: true });
5
- var _Query = class _Query {
5
+ var Query = class _Query {
6
6
  /**
7
7
  * Constructor for Query class.
8
8
  *
@@ -33,427 +33,530 @@ var _Query = class _Query {
33
33
  values: this.values
34
34
  });
35
35
  }
36
+ static {
37
+ /**
38
+ * Filter resources where attribute is equal to value.
39
+ *
40
+ * @param {string} attribute
41
+ * @param {QueryTypes} value
42
+ * @returns {string}
43
+ */
44
+ this.equal = (attribute, value) => new _Query("equal", attribute, value).toString();
45
+ }
46
+ static {
47
+ /**
48
+ * Filter resources where attribute is not equal to value.
49
+ *
50
+ * @param {string} attribute
51
+ * @param {QueryTypes} value
52
+ * @returns {string}
53
+ */
54
+ this.notEqual = (attribute, value) => new _Query("notEqual", attribute, value).toString();
55
+ }
56
+ static {
57
+ /**
58
+ * Filter resources where attribute matches a regular expression pattern.
59
+ *
60
+ * @param {string} attribute The attribute to filter on.
61
+ * @param {string} pattern The regular expression pattern to match.
62
+ * @returns {string}
63
+ */
64
+ this.regex = (attribute, pattern) => new _Query("regex", attribute, pattern).toString();
65
+ }
66
+ static {
67
+ /**
68
+ * Filter resources where attribute is less than value.
69
+ *
70
+ * @param {string} attribute
71
+ * @param {QueryTypes} value
72
+ * @returns {string}
73
+ */
74
+ this.lessThan = (attribute, value) => new _Query("lessThan", attribute, value).toString();
75
+ }
76
+ static {
77
+ /**
78
+ * Filter resources where attribute is less than or equal to value.
79
+ *
80
+ * @param {string} attribute
81
+ * @param {QueryTypes} value
82
+ * @returns {string}
83
+ */
84
+ this.lessThanEqual = (attribute, value) => new _Query("lessThanEqual", attribute, value).toString();
85
+ }
86
+ static {
87
+ /**
88
+ * Filter resources where attribute is greater than value.
89
+ *
90
+ * @param {string} attribute
91
+ * @param {QueryTypes} value
92
+ * @returns {string}
93
+ */
94
+ this.greaterThan = (attribute, value) => new _Query("greaterThan", attribute, value).toString();
95
+ }
96
+ static {
97
+ /**
98
+ * Filter resources where attribute is greater than or equal to value.
99
+ *
100
+ * @param {string} attribute
101
+ * @param {QueryTypes} value
102
+ * @returns {string}
103
+ */
104
+ this.greaterThanEqual = (attribute, value) => new _Query("greaterThanEqual", attribute, value).toString();
105
+ }
106
+ static {
107
+ /**
108
+ * Filter resources where attribute is null.
109
+ *
110
+ * @param {string} attribute
111
+ * @returns {string}
112
+ */
113
+ this.isNull = (attribute) => new _Query("isNull", attribute).toString();
114
+ }
115
+ static {
116
+ /**
117
+ * Filter resources where attribute is not null.
118
+ *
119
+ * @param {string} attribute
120
+ * @returns {string}
121
+ */
122
+ this.isNotNull = (attribute) => new _Query("isNotNull", attribute).toString();
123
+ }
124
+ static {
125
+ /**
126
+ * Filter resources where the specified attributes exist.
127
+ *
128
+ * @param {string[]} attributes The list of attributes that must exist.
129
+ * @returns {string}
130
+ */
131
+ this.exists = (attributes) => new _Query("exists", void 0, attributes).toString();
132
+ }
133
+ static {
134
+ /**
135
+ * Filter resources where the specified attributes do not exist.
136
+ *
137
+ * @param {string[]} attributes The list of attributes that must not exist.
138
+ * @returns {string}
139
+ */
140
+ this.notExists = (attributes) => new _Query("notExists", void 0, attributes).toString();
141
+ }
142
+ static {
143
+ /**
144
+ * Filter resources where attribute is between start and end (inclusive).
145
+ *
146
+ * @param {string} attribute
147
+ * @param {string | number | bigint} start
148
+ * @param {string | number | bigint} end
149
+ * @returns {string}
150
+ */
151
+ this.between = (attribute, start, end) => new _Query("between", attribute, [start, end]).toString();
152
+ }
153
+ static {
154
+ /**
155
+ * Filter resources where attribute starts with value.
156
+ *
157
+ * @param {string} attribute
158
+ * @param {string} value
159
+ * @returns {string}
160
+ */
161
+ this.startsWith = (attribute, value) => new _Query("startsWith", attribute, value).toString();
162
+ }
163
+ static {
164
+ /**
165
+ * Filter resources where attribute ends with value.
166
+ *
167
+ * @param {string} attribute
168
+ * @param {string} value
169
+ * @returns {string}
170
+ */
171
+ this.endsWith = (attribute, value) => new _Query("endsWith", attribute, value).toString();
172
+ }
173
+ static {
174
+ /**
175
+ * Specify which attributes should be returned by the API call.
176
+ *
177
+ * @param {string[]} attributes
178
+ * @returns {string}
179
+ */
180
+ this.select = (attributes) => new _Query("select", void 0, attributes).toString();
181
+ }
182
+ static {
183
+ /**
184
+ * Filter resources by searching attribute for value.
185
+ * A fulltext index on attribute is required for this query to work.
186
+ *
187
+ * @param {string} attribute
188
+ * @param {string} value
189
+ * @returns {string}
190
+ */
191
+ this.search = (attribute, value) => new _Query("search", attribute, value).toString();
192
+ }
193
+ static {
194
+ /**
195
+ * Sort results by attribute descending.
196
+ *
197
+ * @param {string} attribute
198
+ * @returns {string}
199
+ */
200
+ this.orderDesc = (attribute) => new _Query("orderDesc", attribute).toString();
201
+ }
202
+ static {
203
+ /**
204
+ * Sort results by attribute ascending.
205
+ *
206
+ * @param {string} attribute
207
+ * @returns {string}
208
+ */
209
+ this.orderAsc = (attribute) => new _Query("orderAsc", attribute).toString();
210
+ }
211
+ static {
212
+ /**
213
+ * Sort results randomly.
214
+ *
215
+ * @returns {string}
216
+ */
217
+ this.orderRandom = () => new _Query("orderRandom").toString();
218
+ }
219
+ static {
220
+ /**
221
+ * Return results after documentId.
222
+ *
223
+ * @param {string} documentId
224
+ * @returns {string}
225
+ */
226
+ this.cursorAfter = (documentId) => new _Query("cursorAfter", void 0, documentId).toString();
227
+ }
228
+ static {
229
+ /**
230
+ * Return results before documentId.
231
+ *
232
+ * @param {string} documentId
233
+ * @returns {string}
234
+ */
235
+ this.cursorBefore = (documentId) => new _Query("cursorBefore", void 0, documentId).toString();
236
+ }
237
+ static {
238
+ /**
239
+ * Return only limit results.
240
+ *
241
+ * @param {number} limit
242
+ * @returns {string}
243
+ */
244
+ this.limit = (limit) => new _Query("limit", void 0, limit).toString();
245
+ }
246
+ static {
247
+ /**
248
+ * Filter resources by skipping the first offset results.
249
+ *
250
+ * @param {number} offset
251
+ * @returns {string}
252
+ */
253
+ this.offset = (offset) => new _Query("offset", void 0, offset).toString();
254
+ }
255
+ static {
256
+ /**
257
+ * Filter resources where attribute contains the specified value.
258
+ * For string attributes, checks if the string contains the substring.
259
+ *
260
+ * Note: For array attributes, use {@link containsAny} or {@link containsAll} instead.
261
+ * @param {string} attribute
262
+ * @param {string | string[]} value
263
+ * @returns {string}
264
+ */
265
+ this.contains = (attribute, value) => new _Query("contains", attribute, value).toString();
266
+ }
267
+ static {
268
+ /**
269
+ * Filter resources where attribute contains ANY of the specified values.
270
+ * For array and relationship attributes, matches documents where the attribute
271
+ * contains at least one of the given values.
272
+ *
273
+ * @param {string} attribute
274
+ * @param {any[]} value
275
+ * @returns {string}
276
+ */
277
+ this.containsAny = (attribute, value) => new _Query("containsAny", attribute, value).toString();
278
+ }
279
+ static {
280
+ /**
281
+ * Filter resources where attribute contains ALL of the specified values.
282
+ * For array and relationship attributes, matches documents where the attribute
283
+ * contains every one of the given values.
284
+ *
285
+ * @param {string} attribute
286
+ * @param {any[]} value
287
+ * @returns {string}
288
+ */
289
+ this.containsAll = (attribute, value) => new _Query("containsAll", attribute, value).toString();
290
+ }
291
+ static {
292
+ /**
293
+ * Filter resources where attribute does not contain the specified value.
294
+ *
295
+ * @param {string} attribute
296
+ * @param {string | any[]} value
297
+ * @returns {string}
298
+ */
299
+ this.notContains = (attribute, value) => new _Query("notContains", attribute, value).toString();
300
+ }
301
+ static {
302
+ /**
303
+ * Filter resources by searching attribute for value (inverse of search).
304
+ * A fulltext index on attribute is required for this query to work.
305
+ *
306
+ * @param {string} attribute
307
+ * @param {string} value
308
+ * @returns {string}
309
+ */
310
+ this.notSearch = (attribute, value) => new _Query("notSearch", attribute, value).toString();
311
+ }
312
+ static {
313
+ /**
314
+ * Filter resources where attribute is not between start and end (exclusive).
315
+ *
316
+ * @param {string} attribute
317
+ * @param {string | number | bigint} start
318
+ * @param {string | number | bigint} end
319
+ * @returns {string}
320
+ */
321
+ this.notBetween = (attribute, start, end) => new _Query("notBetween", attribute, [start, end]).toString();
322
+ }
323
+ static {
324
+ /**
325
+ * Filter resources where attribute does not start with value.
326
+ *
327
+ * @param {string} attribute
328
+ * @param {string} value
329
+ * @returns {string}
330
+ */
331
+ this.notStartsWith = (attribute, value) => new _Query("notStartsWith", attribute, value).toString();
332
+ }
333
+ static {
334
+ /**
335
+ * Filter resources where attribute does not end with value.
336
+ *
337
+ * @param {string} attribute
338
+ * @param {string} value
339
+ * @returns {string}
340
+ */
341
+ this.notEndsWith = (attribute, value) => new _Query("notEndsWith", attribute, value).toString();
342
+ }
343
+ static {
344
+ /**
345
+ * Filter resources where document was created before date.
346
+ *
347
+ * @param {string} value
348
+ * @returns {string}
349
+ */
350
+ this.createdBefore = (value) => _Query.lessThan("$createdAt", value);
351
+ }
352
+ static {
353
+ /**
354
+ * Filter resources where document was created after date.
355
+ *
356
+ * @param {string} value
357
+ * @returns {string}
358
+ */
359
+ this.createdAfter = (value) => _Query.greaterThan("$createdAt", value);
360
+ }
361
+ static {
362
+ /**
363
+ * Filter resources where document was created between dates.
364
+ *
365
+ * @param {string} start
366
+ * @param {string} end
367
+ * @returns {string}
368
+ */
369
+ this.createdBetween = (start, end) => _Query.between("$createdAt", start, end);
370
+ }
371
+ static {
372
+ /**
373
+ * Filter resources where document was updated before date.
374
+ *
375
+ * @param {string} value
376
+ * @returns {string}
377
+ */
378
+ this.updatedBefore = (value) => _Query.lessThan("$updatedAt", value);
379
+ }
380
+ static {
381
+ /**
382
+ * Filter resources where document was updated after date.
383
+ *
384
+ * @param {string} value
385
+ * @returns {string}
386
+ */
387
+ this.updatedAfter = (value) => _Query.greaterThan("$updatedAt", value);
388
+ }
389
+ static {
390
+ /**
391
+ * Filter resources where document was updated between dates.
392
+ *
393
+ * @param {string} start
394
+ * @param {string} end
395
+ * @returns {string}
396
+ */
397
+ this.updatedBetween = (start, end) => _Query.between("$updatedAt", start, end);
398
+ }
399
+ static {
400
+ /**
401
+ * Combine multiple queries using logical OR operator.
402
+ *
403
+ * @param {string[]} queries
404
+ * @returns {string}
405
+ */
406
+ this.or = (queries) => new _Query("or", void 0, queries.map((query) => JSONbig.parse(query))).toString();
407
+ }
408
+ static {
409
+ /**
410
+ * Combine multiple queries using logical AND operator.
411
+ *
412
+ * @param {string[]} queries
413
+ * @returns {string}
414
+ */
415
+ this.and = (queries) => new _Query("and", void 0, queries.map((query) => JSONbig.parse(query))).toString();
416
+ }
417
+ static {
418
+ /**
419
+ * Filter array elements where at least one element matches all the specified queries.
420
+ *
421
+ * @param {string} attribute The attribute containing the array to filter on.
422
+ * @param {string[]} queries The list of query strings to match against array elements.
423
+ * @returns {string}
424
+ */
425
+ this.elemMatch = (attribute, queries) => new _Query(
426
+ "elemMatch",
427
+ attribute,
428
+ queries.map((query) => JSONbig.parse(query))
429
+ ).toString();
430
+ }
431
+ static {
432
+ /**
433
+ * Filter resources where attribute is at a specific distance from the given coordinates.
434
+ *
435
+ * @param {string} attribute
436
+ * @param {any[]} values
437
+ * @param {number} distance
438
+ * @param {boolean} meters
439
+ * @returns {string}
440
+ */
441
+ this.distanceEqual = (attribute, values, distance, meters = true) => new _Query("distanceEqual", attribute, [[values, distance, meters]]).toString();
442
+ }
443
+ static {
444
+ /**
445
+ * Filter resources where attribute is not at a specific distance from the given coordinates.
446
+ *
447
+ * @param {string} attribute
448
+ * @param {any[]} values
449
+ * @param {number} distance
450
+ * @param {boolean} meters
451
+ * @returns {string}
452
+ */
453
+ this.distanceNotEqual = (attribute, values, distance, meters = true) => new _Query("distanceNotEqual", attribute, [[values, distance, meters]]).toString();
454
+ }
455
+ static {
456
+ /**
457
+ * Filter resources where attribute is at a distance greater than the specified value from the given coordinates.
458
+ *
459
+ * @param {string} attribute
460
+ * @param {any[]} values
461
+ * @param {number} distance
462
+ * @param {boolean} meters
463
+ * @returns {string}
464
+ */
465
+ this.distanceGreaterThan = (attribute, values, distance, meters = true) => new _Query("distanceGreaterThan", attribute, [[values, distance, meters]]).toString();
466
+ }
467
+ static {
468
+ /**
469
+ * Filter resources where attribute is at a distance less than the specified value from the given coordinates.
470
+ *
471
+ * @param {string} attribute
472
+ * @param {any[]} values
473
+ * @param {number} distance
474
+ * @param {boolean} meters
475
+ * @returns {string}
476
+ */
477
+ this.distanceLessThan = (attribute, values, distance, meters = true) => new _Query("distanceLessThan", attribute, [[values, distance, meters]]).toString();
478
+ }
479
+ static {
480
+ /**
481
+ * Filter resources where attribute intersects with the given geometry.
482
+ *
483
+ * @param {string} attribute
484
+ * @param {any[]} values
485
+ * @returns {string}
486
+ */
487
+ this.intersects = (attribute, values) => new _Query("intersects", attribute, [values]).toString();
488
+ }
489
+ static {
490
+ /**
491
+ * Filter resources where attribute does not intersect with the given geometry.
492
+ *
493
+ * @param {string} attribute
494
+ * @param {any[]} values
495
+ * @returns {string}
496
+ */
497
+ this.notIntersects = (attribute, values) => new _Query("notIntersects", attribute, [values]).toString();
498
+ }
499
+ static {
500
+ /**
501
+ * Filter resources where attribute crosses the given geometry.
502
+ *
503
+ * @param {string} attribute
504
+ * @param {any[]} values
505
+ * @returns {string}
506
+ */
507
+ this.crosses = (attribute, values) => new _Query("crosses", attribute, [values]).toString();
508
+ }
509
+ static {
510
+ /**
511
+ * Filter resources where attribute does not cross the given geometry.
512
+ *
513
+ * @param {string} attribute
514
+ * @param {any[]} values
515
+ * @returns {string}
516
+ */
517
+ this.notCrosses = (attribute, values) => new _Query("notCrosses", attribute, [values]).toString();
518
+ }
519
+ static {
520
+ /**
521
+ * Filter resources where attribute overlaps with the given geometry.
522
+ *
523
+ * @param {string} attribute
524
+ * @param {any[]} values
525
+ * @returns {string}
526
+ */
527
+ this.overlaps = (attribute, values) => new _Query("overlaps", attribute, [values]).toString();
528
+ }
529
+ static {
530
+ /**
531
+ * Filter resources where attribute does not overlap with the given geometry.
532
+ *
533
+ * @param {string} attribute
534
+ * @param {any[]} values
535
+ * @returns {string}
536
+ */
537
+ this.notOverlaps = (attribute, values) => new _Query("notOverlaps", attribute, [values]).toString();
538
+ }
539
+ static {
540
+ /**
541
+ * Filter resources where attribute touches the given geometry.
542
+ *
543
+ * @param {string} attribute
544
+ * @param {any[]} values
545
+ * @returns {string}
546
+ */
547
+ this.touches = (attribute, values) => new _Query("touches", attribute, [values]).toString();
548
+ }
549
+ static {
550
+ /**
551
+ * Filter resources where attribute does not touch the given geometry.
552
+ *
553
+ * @param {string} attribute
554
+ * @param {any[]} values
555
+ * @returns {string}
556
+ */
557
+ this.notTouches = (attribute, values) => new _Query("notTouches", attribute, [values]).toString();
558
+ }
36
559
  };
37
- /**
38
- * Filter resources where attribute is equal to value.
39
- *
40
- * @param {string} attribute
41
- * @param {QueryTypes} value
42
- * @returns {string}
43
- */
44
- _Query.equal = (attribute, value) => new _Query("equal", attribute, value).toString();
45
- /**
46
- * Filter resources where attribute is not equal to value.
47
- *
48
- * @param {string} attribute
49
- * @param {QueryTypes} value
50
- * @returns {string}
51
- */
52
- _Query.notEqual = (attribute, value) => new _Query("notEqual", attribute, value).toString();
53
- /**
54
- * Filter resources where attribute matches a regular expression pattern.
55
- *
56
- * @param {string} attribute The attribute to filter on.
57
- * @param {string} pattern The regular expression pattern to match.
58
- * @returns {string}
59
- */
60
- _Query.regex = (attribute, pattern) => new _Query("regex", attribute, pattern).toString();
61
- /**
62
- * Filter resources where attribute is less than value.
63
- *
64
- * @param {string} attribute
65
- * @param {QueryTypes} value
66
- * @returns {string}
67
- */
68
- _Query.lessThan = (attribute, value) => new _Query("lessThan", attribute, value).toString();
69
- /**
70
- * Filter resources where attribute is less than or equal to value.
71
- *
72
- * @param {string} attribute
73
- * @param {QueryTypes} value
74
- * @returns {string}
75
- */
76
- _Query.lessThanEqual = (attribute, value) => new _Query("lessThanEqual", attribute, value).toString();
77
- /**
78
- * Filter resources where attribute is greater than value.
79
- *
80
- * @param {string} attribute
81
- * @param {QueryTypes} value
82
- * @returns {string}
83
- */
84
- _Query.greaterThan = (attribute, value) => new _Query("greaterThan", attribute, value).toString();
85
- /**
86
- * Filter resources where attribute is greater than or equal to value.
87
- *
88
- * @param {string} attribute
89
- * @param {QueryTypes} value
90
- * @returns {string}
91
- */
92
- _Query.greaterThanEqual = (attribute, value) => new _Query("greaterThanEqual", attribute, value).toString();
93
- /**
94
- * Filter resources where attribute is null.
95
- *
96
- * @param {string} attribute
97
- * @returns {string}
98
- */
99
- _Query.isNull = (attribute) => new _Query("isNull", attribute).toString();
100
- /**
101
- * Filter resources where attribute is not null.
102
- *
103
- * @param {string} attribute
104
- * @returns {string}
105
- */
106
- _Query.isNotNull = (attribute) => new _Query("isNotNull", attribute).toString();
107
- /**
108
- * Filter resources where the specified attributes exist.
109
- *
110
- * @param {string[]} attributes The list of attributes that must exist.
111
- * @returns {string}
112
- */
113
- _Query.exists = (attributes) => new _Query("exists", void 0, attributes).toString();
114
- /**
115
- * Filter resources where the specified attributes do not exist.
116
- *
117
- * @param {string[]} attributes The list of attributes that must not exist.
118
- * @returns {string}
119
- */
120
- _Query.notExists = (attributes) => new _Query("notExists", void 0, attributes).toString();
121
- /**
122
- * Filter resources where attribute is between start and end (inclusive).
123
- *
124
- * @param {string} attribute
125
- * @param {string | number | bigint} start
126
- * @param {string | number | bigint} end
127
- * @returns {string}
128
- */
129
- _Query.between = (attribute, start, end) => new _Query("between", attribute, [start, end]).toString();
130
- /**
131
- * Filter resources where attribute starts with value.
132
- *
133
- * @param {string} attribute
134
- * @param {string} value
135
- * @returns {string}
136
- */
137
- _Query.startsWith = (attribute, value) => new _Query("startsWith", attribute, value).toString();
138
- /**
139
- * Filter resources where attribute ends with value.
140
- *
141
- * @param {string} attribute
142
- * @param {string} value
143
- * @returns {string}
144
- */
145
- _Query.endsWith = (attribute, value) => new _Query("endsWith", attribute, value).toString();
146
- /**
147
- * Specify which attributes should be returned by the API call.
148
- *
149
- * @param {string[]} attributes
150
- * @returns {string}
151
- */
152
- _Query.select = (attributes) => new _Query("select", void 0, attributes).toString();
153
- /**
154
- * Filter resources by searching attribute for value.
155
- * A fulltext index on attribute is required for this query to work.
156
- *
157
- * @param {string} attribute
158
- * @param {string} value
159
- * @returns {string}
160
- */
161
- _Query.search = (attribute, value) => new _Query("search", attribute, value).toString();
162
- /**
163
- * Sort results by attribute descending.
164
- *
165
- * @param {string} attribute
166
- * @returns {string}
167
- */
168
- _Query.orderDesc = (attribute) => new _Query("orderDesc", attribute).toString();
169
- /**
170
- * Sort results by attribute ascending.
171
- *
172
- * @param {string} attribute
173
- * @returns {string}
174
- */
175
- _Query.orderAsc = (attribute) => new _Query("orderAsc", attribute).toString();
176
- /**
177
- * Sort results randomly.
178
- *
179
- * @returns {string}
180
- */
181
- _Query.orderRandom = () => new _Query("orderRandom").toString();
182
- /**
183
- * Return results after documentId.
184
- *
185
- * @param {string} documentId
186
- * @returns {string}
187
- */
188
- _Query.cursorAfter = (documentId) => new _Query("cursorAfter", void 0, documentId).toString();
189
- /**
190
- * Return results before documentId.
191
- *
192
- * @param {string} documentId
193
- * @returns {string}
194
- */
195
- _Query.cursorBefore = (documentId) => new _Query("cursorBefore", void 0, documentId).toString();
196
- /**
197
- * Return only limit results.
198
- *
199
- * @param {number} limit
200
- * @returns {string}
201
- */
202
- _Query.limit = (limit) => new _Query("limit", void 0, limit).toString();
203
- /**
204
- * Filter resources by skipping the first offset results.
205
- *
206
- * @param {number} offset
207
- * @returns {string}
208
- */
209
- _Query.offset = (offset) => new _Query("offset", void 0, offset).toString();
210
- /**
211
- * Filter resources where attribute contains the specified value.
212
- * For string attributes, checks if the string contains the substring.
213
- *
214
- * Note: For array attributes, use {@link containsAny} or {@link containsAll} instead.
215
- * @param {string} attribute
216
- * @param {string | string[]} value
217
- * @returns {string}
218
- */
219
- _Query.contains = (attribute, value) => new _Query("contains", attribute, value).toString();
220
- /**
221
- * Filter resources where attribute contains ANY of the specified values.
222
- * For array and relationship attributes, matches documents where the attribute
223
- * contains at least one of the given values.
224
- *
225
- * @param {string} attribute
226
- * @param {any[]} value
227
- * @returns {string}
228
- */
229
- _Query.containsAny = (attribute, value) => new _Query("containsAny", attribute, value).toString();
230
- /**
231
- * Filter resources where attribute contains ALL of the specified values.
232
- * For array and relationship attributes, matches documents where the attribute
233
- * contains every one of the given values.
234
- *
235
- * @param {string} attribute
236
- * @param {any[]} value
237
- * @returns {string}
238
- */
239
- _Query.containsAll = (attribute, value) => new _Query("containsAll", attribute, value).toString();
240
- /**
241
- * Filter resources where attribute does not contain the specified value.
242
- *
243
- * @param {string} attribute
244
- * @param {string | any[]} value
245
- * @returns {string}
246
- */
247
- _Query.notContains = (attribute, value) => new _Query("notContains", attribute, value).toString();
248
- /**
249
- * Filter resources by searching attribute for value (inverse of search).
250
- * A fulltext index on attribute is required for this query to work.
251
- *
252
- * @param {string} attribute
253
- * @param {string} value
254
- * @returns {string}
255
- */
256
- _Query.notSearch = (attribute, value) => new _Query("notSearch", attribute, value).toString();
257
- /**
258
- * Filter resources where attribute is not between start and end (exclusive).
259
- *
260
- * @param {string} attribute
261
- * @param {string | number | bigint} start
262
- * @param {string | number | bigint} end
263
- * @returns {string}
264
- */
265
- _Query.notBetween = (attribute, start, end) => new _Query("notBetween", attribute, [start, end]).toString();
266
- /**
267
- * Filter resources where attribute does not start with value.
268
- *
269
- * @param {string} attribute
270
- * @param {string} value
271
- * @returns {string}
272
- */
273
- _Query.notStartsWith = (attribute, value) => new _Query("notStartsWith", attribute, value).toString();
274
- /**
275
- * Filter resources where attribute does not end with value.
276
- *
277
- * @param {string} attribute
278
- * @param {string} value
279
- * @returns {string}
280
- */
281
- _Query.notEndsWith = (attribute, value) => new _Query("notEndsWith", attribute, value).toString();
282
- /**
283
- * Filter resources where document was created before date.
284
- *
285
- * @param {string} value
286
- * @returns {string}
287
- */
288
- _Query.createdBefore = (value) => _Query.lessThan("$createdAt", value);
289
- /**
290
- * Filter resources where document was created after date.
291
- *
292
- * @param {string} value
293
- * @returns {string}
294
- */
295
- _Query.createdAfter = (value) => _Query.greaterThan("$createdAt", value);
296
- /**
297
- * Filter resources where document was created between dates.
298
- *
299
- * @param {string} start
300
- * @param {string} end
301
- * @returns {string}
302
- */
303
- _Query.createdBetween = (start, end) => _Query.between("$createdAt", start, end);
304
- /**
305
- * Filter resources where document was updated before date.
306
- *
307
- * @param {string} value
308
- * @returns {string}
309
- */
310
- _Query.updatedBefore = (value) => _Query.lessThan("$updatedAt", value);
311
- /**
312
- * Filter resources where document was updated after date.
313
- *
314
- * @param {string} value
315
- * @returns {string}
316
- */
317
- _Query.updatedAfter = (value) => _Query.greaterThan("$updatedAt", value);
318
- /**
319
- * Filter resources where document was updated between dates.
320
- *
321
- * @param {string} start
322
- * @param {string} end
323
- * @returns {string}
324
- */
325
- _Query.updatedBetween = (start, end) => _Query.between("$updatedAt", start, end);
326
- /**
327
- * Combine multiple queries using logical OR operator.
328
- *
329
- * @param {string[]} queries
330
- * @returns {string}
331
- */
332
- _Query.or = (queries) => new _Query("or", void 0, queries.map((query) => JSONbig.parse(query))).toString();
333
- /**
334
- * Combine multiple queries using logical AND operator.
335
- *
336
- * @param {string[]} queries
337
- * @returns {string}
338
- */
339
- _Query.and = (queries) => new _Query("and", void 0, queries.map((query) => JSONbig.parse(query))).toString();
340
- /**
341
- * Filter array elements where at least one element matches all the specified queries.
342
- *
343
- * @param {string} attribute The attribute containing the array to filter on.
344
- * @param {string[]} queries The list of query strings to match against array elements.
345
- * @returns {string}
346
- */
347
- _Query.elemMatch = (attribute, queries) => new _Query(
348
- "elemMatch",
349
- attribute,
350
- queries.map((query) => JSONbig.parse(query))
351
- ).toString();
352
- /**
353
- * Filter resources where attribute is at a specific distance from the given coordinates.
354
- *
355
- * @param {string} attribute
356
- * @param {any[]} values
357
- * @param {number} distance
358
- * @param {boolean} meters
359
- * @returns {string}
360
- */
361
- _Query.distanceEqual = (attribute, values, distance, meters = true) => new _Query("distanceEqual", attribute, [[values, distance, meters]]).toString();
362
- /**
363
- * Filter resources where attribute is not at a specific distance from the given coordinates.
364
- *
365
- * @param {string} attribute
366
- * @param {any[]} values
367
- * @param {number} distance
368
- * @param {boolean} meters
369
- * @returns {string}
370
- */
371
- _Query.distanceNotEqual = (attribute, values, distance, meters = true) => new _Query("distanceNotEqual", attribute, [[values, distance, meters]]).toString();
372
- /**
373
- * Filter resources where attribute is at a distance greater than the specified value from the given coordinates.
374
- *
375
- * @param {string} attribute
376
- * @param {any[]} values
377
- * @param {number} distance
378
- * @param {boolean} meters
379
- * @returns {string}
380
- */
381
- _Query.distanceGreaterThan = (attribute, values, distance, meters = true) => new _Query("distanceGreaterThan", attribute, [[values, distance, meters]]).toString();
382
- /**
383
- * Filter resources where attribute is at a distance less than the specified value from the given coordinates.
384
- *
385
- * @param {string} attribute
386
- * @param {any[]} values
387
- * @param {number} distance
388
- * @param {boolean} meters
389
- * @returns {string}
390
- */
391
- _Query.distanceLessThan = (attribute, values, distance, meters = true) => new _Query("distanceLessThan", attribute, [[values, distance, meters]]).toString();
392
- /**
393
- * Filter resources where attribute intersects with the given geometry.
394
- *
395
- * @param {string} attribute
396
- * @param {any[]} values
397
- * @returns {string}
398
- */
399
- _Query.intersects = (attribute, values) => new _Query("intersects", attribute, [values]).toString();
400
- /**
401
- * Filter resources where attribute does not intersect with the given geometry.
402
- *
403
- * @param {string} attribute
404
- * @param {any[]} values
405
- * @returns {string}
406
- */
407
- _Query.notIntersects = (attribute, values) => new _Query("notIntersects", attribute, [values]).toString();
408
- /**
409
- * Filter resources where attribute crosses the given geometry.
410
- *
411
- * @param {string} attribute
412
- * @param {any[]} values
413
- * @returns {string}
414
- */
415
- _Query.crosses = (attribute, values) => new _Query("crosses", attribute, [values]).toString();
416
- /**
417
- * Filter resources where attribute does not cross the given geometry.
418
- *
419
- * @param {string} attribute
420
- * @param {any[]} values
421
- * @returns {string}
422
- */
423
- _Query.notCrosses = (attribute, values) => new _Query("notCrosses", attribute, [values]).toString();
424
- /**
425
- * Filter resources where attribute overlaps with the given geometry.
426
- *
427
- * @param {string} attribute
428
- * @param {any[]} values
429
- * @returns {string}
430
- */
431
- _Query.overlaps = (attribute, values) => new _Query("overlaps", attribute, [values]).toString();
432
- /**
433
- * Filter resources where attribute does not overlap with the given geometry.
434
- *
435
- * @param {string} attribute
436
- * @param {any[]} values
437
- * @returns {string}
438
- */
439
- _Query.notOverlaps = (attribute, values) => new _Query("notOverlaps", attribute, [values]).toString();
440
- /**
441
- * Filter resources where attribute touches the given geometry.
442
- *
443
- * @param {string} attribute
444
- * @param {any[]} values
445
- * @returns {string}
446
- */
447
- _Query.touches = (attribute, values) => new _Query("touches", attribute, [values]).toString();
448
- /**
449
- * Filter resources where attribute does not touch the given geometry.
450
- *
451
- * @param {string} attribute
452
- * @param {any[]} values
453
- * @returns {string}
454
- */
455
- _Query.notTouches = (attribute, values) => new _Query("notTouches", attribute, [values]).toString();
456
- var Query = _Query;
457
560
 
458
561
  export { Query };
459
562
  //# sourceMappingURL=out.js.map