@vandenberghinc/volt 1.1.26 → 1.1.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/backend/dist/cjs/{blacklist.d.ts → backend/src/blacklist.d.ts} +5 -3
- package/backend/dist/cjs/{blacklist.js → backend/src/blacklist.js} +8 -5
- package/backend/dist/cjs/{cli.js → backend/src/cli.js} +29 -47
- package/backend/dist/cjs/backend/src/database/collection.d.ts +1543 -0
- package/backend/dist/cjs/backend/src/database/collection.js +3042 -0
- package/backend/dist/cjs/backend/src/database/database.d.ts +66 -0
- package/backend/dist/cjs/{database → backend/src/database}/database.js +48 -43
- package/backend/dist/cjs/backend/src/database/filters/filters.d.ts +6 -0
- package/backend/dist/cjs/backend/src/database/filters/filters.js +15 -0
- package/backend/dist/cjs/backend/src/database/filters/strict_filter.d.ts +223 -0
- package/backend/dist/cjs/backend/src/database/filters/strict_filter.js +15 -0
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_test.js +443 -0
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_test_v0.js +15 -0
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_v0.d.ts +50 -0
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_v0.js +15 -0
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_v1.d.ts +76 -0
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_v1.js +15 -0
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_v2.d.ts +75 -0
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_v2.js +15 -0
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_v3.d.ts +219 -0
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_v3.js +15 -0
- package/backend/dist/cjs/backend/src/database/filters/strict_update_filter.d.ts +165 -0
- package/backend/dist/cjs/backend/src/database/filters/strict_update_filter.js +15 -0
- package/backend/dist/cjs/backend/src/database/filters/strict_update_filter_test.d.ts +5 -0
- package/backend/dist/cjs/backend/src/database/filters/strict_update_filter_test.js +355 -0
- package/backend/dist/cjs/backend/src/database/flatten.d.ts +75 -0
- package/backend/dist/cjs/{logger.js → backend/src/database/flatten.js} +18 -7
- package/backend/dist/cjs/backend/src/database/flatten_test.js +175 -0
- package/backend/dist/cjs/backend/src/database/quota/quota.d.ts +461 -0
- package/backend/dist/cjs/backend/src/database/quota/quota.js +1014 -0
- package/backend/dist/cjs/backend/src/database/quota/quota_v1.d.ts +534 -0
- package/backend/dist/cjs/backend/src/database/quota/quota_v1.js +1087 -0
- package/backend/dist/cjs/backend/src/database/quota/safe_int.d.ts +293 -0
- package/backend/dist/cjs/backend/src/database/quota/safe_int.js +573 -0
- package/backend/dist/{esm → cjs/backend/src}/endpoint.d.ts +69 -46
- package/backend/dist/cjs/{endpoint.js → backend/src/endpoint.js} +87 -101
- package/backend/dist/cjs/backend/src/errors/index.d.ts +7 -0
- package/backend/dist/cjs/backend/src/errors/index.js +25 -0
- package/backend/dist/{esm/utils.d.ts → cjs/backend/src/errors/internal_external.d.ts} +14 -22
- package/backend/dist/cjs/backend/src/errors/internal_external.js +85 -0
- package/backend/dist/cjs/backend/src/errors/invalid_usage_error.d.ts +38 -0
- package/backend/dist/cjs/{mutex.js → backend/src/errors/invalid_usage_error.js} +20 -37
- package/backend/dist/cjs/backend/src/errors/system_error.d.ts +230 -0
- package/backend/dist/cjs/backend/src/errors/system_error.js +393 -0
- package/backend/dist/cjs/backend/src/events.d.ts +54 -0
- package/backend/dist/cjs/backend/src/events.js +15 -0
- package/backend/dist/cjs/{frontend.js → backend/src/frontend.js} +1 -1
- package/backend/dist/cjs/{image_endpoint.d.ts → backend/src/image_endpoint.d.ts} +16 -1
- package/backend/dist/cjs/{image_endpoint.js → backend/src/image_endpoint.js} +3 -5
- package/backend/dist/cjs/backend/src/logger.d.ts +5 -0
- package/backend/dist/cjs/backend/src/logger.js +15 -0
- package/backend/dist/cjs/backend/src/meta.d.ts +64 -0
- package/backend/dist/cjs/{meta.js → backend/src/meta.js} +9 -12
- package/backend/dist/cjs/backend/src/payments/paddle.d.ts +326 -0
- package/backend/dist/cjs/{payments → backend/src/payments}/paddle.js +377 -327
- package/backend/dist/cjs/backend/src/plugins/browser.d.ts +1 -0
- package/backend/dist/cjs/backend/src/plugins/browser.js +15 -0
- package/backend/dist/cjs/backend/src/plugins/mail/mail.d.ts +248 -0
- package/backend/dist/cjs/backend/src/plugins/mail/mail.js +379 -0
- package/backend/dist/{esm → cjs/backend/src}/plugins/mail/ui.d.ts +23 -0
- package/backend/dist/cjs/backend/src/plugins/pdf.d.ts +1 -0
- package/backend/dist/cjs/backend/src/rate_limit.d.ts +145 -0
- package/backend/dist/cjs/backend/src/rate_limit.js +549 -0
- package/backend/dist/cjs/{route.d.ts → backend/src/route.d.ts} +3 -10
- package/backend/dist/cjs/{route.js → backend/src/route.js} +23 -21
- package/backend/dist/cjs/backend/src/server.d.ts +485 -0
- package/backend/dist/cjs/{server.js → backend/src/server.js} +688 -873
- package/backend/dist/cjs/backend/src/splash_screen.d.ts +80 -0
- package/backend/dist/cjs/{splash_screen.js → backend/src/splash_screen.js} +24 -3
- package/backend/dist/cjs/backend/src/status.d.ts +74 -0
- package/backend/dist/cjs/{status.js → backend/src/status.js} +64 -64
- package/backend/dist/cjs/backend/src/stream.d.ts +376 -0
- package/backend/dist/cjs/{stream.js → backend/src/stream.js} +299 -276
- package/backend/dist/cjs/backend/src/users.d.ts +807 -0
- package/backend/dist/cjs/backend/src/users.js +1971 -0
- package/backend/dist/cjs/backend/src/utils.d.ts +16 -0
- package/backend/dist/cjs/{utils.js → backend/src/utils.js} +14 -77
- package/backend/dist/{esm → cjs/backend/src}/view.d.ts +33 -11
- package/backend/dist/cjs/backend/src/view.js +508 -0
- package/backend/dist/{esm → cjs/backend/src}/volt.d.ts +10 -1
- package/backend/dist/cjs/{volt.js → backend/src/volt.js} +8 -5
- package/backend/dist/cjs/frontend/src/modules/request.d.ts +70 -0
- package/backend/dist/cjs/frontend/src/modules/request.js +99 -0
- package/backend/dist/esm/{blacklist.d.ts → backend/src/blacklist.d.ts} +5 -3
- package/backend/dist/esm/{blacklist.js → backend/src/blacklist.js} +9 -6
- package/backend/dist/esm/{cli.js → backend/src/cli.js} +43 -60
- package/backend/dist/esm/backend/src/database/collection.d.ts +1543 -0
- package/backend/dist/esm/backend/src/database/collection.js +3510 -0
- package/backend/dist/esm/backend/src/database/database.d.ts +66 -0
- package/backend/dist/esm/{database → backend/src/database}/database.js +62 -103
- package/backend/dist/esm/backend/src/database/document.d.ts +1 -0
- package/backend/dist/esm/backend/src/database/document.js +558 -0
- package/backend/dist/esm/backend/src/database/filters/filters.d.ts +6 -0
- package/backend/dist/esm/backend/src/database/filters/filters.js +1 -0
- package/backend/dist/esm/backend/src/database/filters/strict_filter.d.ts +223 -0
- package/backend/dist/esm/backend/src/database/filters/strict_filter.js +3 -0
- package/backend/dist/esm/backend/src/database/filters/strict_filter_test.d.ts +1 -0
- package/backend/dist/esm/backend/src/database/filters/strict_filter_test.js +505 -0
- package/backend/dist/esm/backend/src/database/filters/strict_filter_test_v0.d.ts +1 -0
- package/backend/dist/esm/backend/src/database/filters/strict_filter_test_v0.js +712 -0
- package/backend/dist/esm/backend/src/database/filters/strict_filter_v0.d.ts +50 -0
- package/backend/dist/esm/backend/src/database/filters/strict_filter_v0.js +5 -0
- package/backend/dist/esm/backend/src/database/filters/strict_filter_v1.d.ts +76 -0
- package/backend/dist/esm/backend/src/database/filters/strict_filter_v1.js +44 -0
- package/backend/dist/esm/backend/src/database/filters/strict_filter_v2.d.ts +75 -0
- package/backend/dist/esm/backend/src/database/filters/strict_filter_v2.js +5 -0
- package/backend/dist/esm/backend/src/database/filters/strict_filter_v3.d.ts +219 -0
- package/backend/dist/esm/backend/src/database/filters/strict_filter_v3.js +1 -0
- package/backend/dist/esm/backend/src/database/filters/strict_update_filter.d.ts +165 -0
- package/backend/dist/esm/backend/src/database/filters/strict_update_filter.js +5 -0
- package/backend/dist/esm/backend/src/database/filters/strict_update_filter_test.d.ts +5 -0
- package/backend/dist/esm/backend/src/database/filters/strict_update_filter_test.js +405 -0
- package/backend/dist/esm/backend/src/database/flatten.d.ts +75 -0
- package/backend/dist/esm/backend/src/database/flatten.js +22 -0
- package/backend/dist/esm/backend/src/database/flatten_test.d.ts +1 -0
- package/backend/dist/esm/backend/src/database/flatten_test.js +174 -0
- package/backend/dist/esm/backend/src/database/quota/quota.d.ts +461 -0
- package/backend/dist/esm/backend/src/database/quota/quota.js +1118 -0
- package/backend/dist/esm/backend/src/database/quota/quota_v1.d.ts +534 -0
- package/backend/dist/esm/backend/src/database/quota/quota_v1.js +1242 -0
- package/backend/dist/esm/backend/src/database/quota/safe_int.d.ts +293 -0
- package/backend/dist/esm/backend/src/database/quota/safe_int.js +602 -0
- package/backend/dist/{cjs → esm/backend/src}/endpoint.d.ts +69 -46
- package/backend/dist/esm/{endpoint.js → backend/src/endpoint.js} +136 -127
- package/backend/dist/esm/backend/src/errors/index.d.ts +7 -0
- package/backend/dist/esm/backend/src/errors/index.js +7 -0
- package/backend/dist/{cjs/utils.d.ts → esm/backend/src/errors/internal_external.d.ts} +14 -22
- package/backend/dist/esm/backend/src/errors/internal_external.js +70 -0
- package/backend/dist/esm/backend/src/errors/invalid_usage_error.d.ts +38 -0
- package/backend/dist/esm/backend/src/errors/invalid_usage_error.js +30 -0
- package/backend/dist/esm/backend/src/errors/system_error.d.ts +230 -0
- package/backend/dist/esm/backend/src/errors/system_error.js +402 -0
- package/backend/dist/esm/backend/src/events.d.ts +54 -0
- package/backend/dist/esm/backend/src/events.js +5 -0
- package/backend/dist/esm/{frontend.js → backend/src/frontend.js} +1 -1
- package/backend/dist/esm/{image_endpoint.d.ts → backend/src/image_endpoint.d.ts} +16 -1
- package/backend/dist/esm/{image_endpoint.js → backend/src/image_endpoint.js} +16 -20
- package/backend/dist/esm/backend/src/logger.d.ts +5 -0
- package/backend/dist/esm/backend/src/logger.js +8 -0
- package/backend/dist/esm/backend/src/meta.d.ts +64 -0
- package/backend/dist/esm/{meta.js → backend/src/meta.js} +15 -54
- package/backend/dist/esm/backend/src/payments/paddle.d.ts +326 -0
- package/backend/dist/esm/{payments → backend/src/payments}/paddle.js +417 -452
- package/backend/dist/esm/backend/src/plugins/browser.d.ts +1 -0
- package/backend/dist/esm/backend/src/plugins/browser.js +170 -0
- package/backend/dist/esm/backend/src/plugins/mail/mail.d.ts +248 -0
- package/backend/dist/esm/backend/src/plugins/mail/mail.js +389 -0
- package/backend/dist/{cjs → esm/backend/src}/plugins/mail/ui.d.ts +23 -0
- package/backend/dist/esm/{plugins → backend/src/plugins}/mail/ui.js +3 -6
- package/backend/dist/esm/backend/src/plugins/pdf.d.ts +1 -0
- package/backend/dist/esm/{plugins → backend/src/plugins}/pdf.js +3 -3
- package/backend/dist/esm/backend/src/rate_limit.d.ts +145 -0
- package/backend/dist/esm/backend/src/rate_limit.js +667 -0
- package/backend/dist/esm/{route.d.ts → backend/src/route.d.ts} +3 -10
- package/backend/dist/esm/{route.js → backend/src/route.js} +26 -21
- package/backend/dist/esm/backend/src/server.d.ts +485 -0
- package/backend/dist/esm/{server.js → backend/src/server.js} +891 -1441
- package/backend/dist/esm/backend/src/splash_screen.d.ts +80 -0
- package/backend/dist/esm/{splash_screen.js → backend/src/splash_screen.js} +42 -55
- package/backend/dist/esm/backend/src/status.d.ts +74 -0
- package/backend/dist/esm/backend/src/status.js +199 -0
- package/backend/dist/esm/backend/src/stream.d.ts +376 -0
- package/backend/dist/esm/{stream.js → backend/src/stream.js} +327 -292
- package/backend/dist/esm/backend/src/users.d.ts +809 -0
- package/backend/dist/esm/backend/src/users.js +2140 -0
- package/backend/dist/esm/backend/src/utils.d.ts +16 -0
- package/backend/dist/esm/{utils.js → backend/src/utils.js} +20 -81
- package/backend/dist/{cjs → esm/backend/src}/view.d.ts +33 -11
- package/backend/dist/esm/{view.js → backend/src/view.js} +266 -86
- package/backend/dist/{cjs → esm/backend/src}/volt.d.ts +10 -1
- package/backend/dist/esm/{volt.js → backend/src/volt.js} +7 -4
- package/backend/dist/esm/frontend/src/modules/request.d.ts +70 -0
- package/backend/dist/esm/frontend/src/modules/request.js +117 -0
- package/frontend/dist/backend/src/database/collection.d.ts +1543 -0
- package/frontend/dist/backend/src/database/collection.js +3510 -0
- package/frontend/dist/backend/src/database/database.d.ts +66 -0
- package/frontend/dist/backend/src/database/database.js +196 -0
- package/frontend/dist/backend/src/database/filters/filters.d.ts +6 -0
- package/frontend/dist/backend/src/database/filters/filters.js +1 -0
- package/frontend/dist/backend/src/database/filters/strict_filter.d.ts +223 -0
- package/frontend/dist/backend/src/database/filters/strict_filter.js +3 -0
- package/frontend/dist/backend/src/database/filters/strict_update_filter.d.ts +165 -0
- package/frontend/dist/backend/src/database/filters/strict_update_filter.js +5 -0
- package/frontend/dist/backend/src/database/flatten.d.ts +75 -0
- package/frontend/dist/backend/src/database/flatten.js +22 -0
- package/frontend/dist/backend/src/endpoint.d.ts +204 -0
- package/frontend/dist/backend/src/endpoint.js +570 -0
- package/frontend/dist/backend/src/errors/index.d.ts +7 -0
- package/frontend/dist/backend/src/errors/index.js +7 -0
- package/frontend/dist/backend/src/errors/internal_external.d.ts +38 -0
- package/frontend/dist/backend/src/errors/internal_external.js +70 -0
- package/frontend/dist/backend/src/errors/invalid_usage_error.d.ts +38 -0
- package/frontend/dist/backend/src/errors/invalid_usage_error.js +30 -0
- package/frontend/dist/backend/src/errors/system_error.d.ts +230 -0
- package/frontend/dist/backend/src/errors/system_error.js +402 -0
- package/frontend/dist/backend/src/events.d.ts +54 -0
- package/frontend/dist/backend/src/events.js +5 -0
- package/frontend/dist/backend/src/frontend.d.ts +11 -0
- package/frontend/dist/backend/src/frontend.js +12 -0
- package/frontend/dist/backend/src/image_endpoint.d.ts +39 -0
- package/frontend/dist/backend/src/image_endpoint.js +202 -0
- package/frontend/dist/backend/src/meta.d.ts +64 -0
- package/frontend/dist/backend/src/meta.js +110 -0
- package/frontend/dist/backend/src/payments/paddle.d.ts +326 -0
- package/frontend/dist/backend/src/payments/paddle.js +2256 -0
- package/frontend/dist/backend/src/plugins/mail/mail.d.ts +248 -0
- package/frontend/dist/backend/src/plugins/mail/mail.js +389 -0
- package/{backend/dist/esm/plugins/mail.d.ts → frontend/dist/backend/src/plugins/mail/ui.d.ts} +23 -0
- package/{backend/dist/esm/plugins/mail.js → frontend/dist/backend/src/plugins/mail/ui.js} +3 -6
- package/frontend/dist/backend/src/rate_limit.d.ts +145 -0
- package/frontend/dist/backend/src/rate_limit.js +673 -0
- package/frontend/dist/backend/src/route.d.ts +35 -0
- package/frontend/dist/backend/src/route.js +212 -0
- package/frontend/dist/backend/src/server.d.ts +485 -0
- package/frontend/dist/backend/src/server.js +2670 -0
- package/frontend/dist/backend/src/splash_screen.d.ts +80 -0
- package/frontend/dist/backend/src/splash_screen.js +135 -0
- package/frontend/dist/backend/src/status.d.ts +74 -0
- package/frontend/dist/backend/src/status.js +199 -0
- package/frontend/dist/backend/src/stream.d.ts +376 -0
- package/frontend/dist/backend/src/stream.js +1007 -0
- package/frontend/dist/backend/src/users.d.ts +807 -0
- package/frontend/dist/backend/src/users.js +2118 -0
- package/frontend/dist/backend/src/utils.d.ts +16 -0
- package/frontend/dist/backend/src/utils.js +241 -0
- package/frontend/dist/backend/src/view.d.ts +162 -0
- package/frontend/dist/backend/src/view.js +720 -0
- package/frontend/dist/frontend/src/elements/base.d.ts +4414 -0
- package/frontend/dist/{elements → frontend/src/elements}/base.js +3624 -260
- package/frontend/dist/frontend/src/elements/module.d.ts +95 -0
- package/frontend/dist/{elements → frontend/src/elements}/module.js +53 -52
- package/frontend/dist/frontend/src/elements/types.d.ts +52 -0
- package/frontend/dist/frontend/src/elements/types.js +5 -0
- package/frontend/dist/frontend/src/modules/attachment.d.ts +126 -0
- package/frontend/dist/frontend/src/modules/attachment.js +306 -0
- package/frontend/dist/frontend/src/modules/auth.d.ts +44 -0
- package/frontend/dist/frontend/src/modules/auth.js +80 -0
- package/frontend/dist/{modules → frontend/src/modules}/color.js +2 -2
- package/frontend/dist/frontend/src/modules/compression.d.ts +39 -0
- package/frontend/dist/frontend/src/modules/compression.js +102 -0
- package/frontend/dist/frontend/src/modules/cookies.d.ts +44 -0
- package/frontend/dist/frontend/src/modules/cookies.js +143 -0
- package/frontend/dist/frontend/src/modules/events.d.ts +31 -0
- package/frontend/dist/frontend/src/modules/events.js +74 -0
- package/frontend/dist/frontend/src/modules/google.d.ts +23 -0
- package/frontend/dist/frontend/src/modules/google.js +52 -0
- package/frontend/dist/frontend/src/modules/meta.d.ts +14 -0
- package/frontend/dist/{modules → frontend/src/modules}/meta.js +9 -7
- package/frontend/dist/{modules → frontend/src/modules}/paddle.d.ts +37 -134
- package/frontend/dist/{modules → frontend/src/modules}/paddle.js +620 -568
- package/frontend/dist/frontend/src/modules/request.d.ts +70 -0
- package/frontend/dist/frontend/src/modules/request.js +117 -0
- package/frontend/dist/frontend/src/modules/settings.d.ts +3 -0
- package/frontend/dist/frontend/src/modules/settings.js +5 -0
- package/frontend/dist/frontend/src/modules/statics.d.ts +21 -0
- package/frontend/dist/{modules → frontend/src/modules}/statics.js +15 -18
- package/frontend/dist/frontend/src/modules/support.d.ts +30 -0
- package/frontend/dist/frontend/src/modules/support.js +53 -0
- package/frontend/dist/{modules → frontend/src/modules}/theme.d.ts +67 -0
- package/frontend/dist/{modules → frontend/src/modules}/theme.js +68 -38
- package/frontend/dist/frontend/src/modules/themes.d.ts +12 -0
- package/frontend/dist/frontend/src/modules/themes.js +22 -0
- package/frontend/dist/frontend/src/modules/user.d.ts +164 -0
- package/frontend/dist/frontend/src/modules/user.js +268 -0
- package/frontend/dist/frontend/src/modules/utils.d.ts +176 -0
- package/frontend/dist/frontend/src/modules/utils.js +569 -0
- package/frontend/dist/frontend/src/types/gradient.d.ts +29 -0
- package/frontend/dist/{types → frontend/src/types}/gradient.js +14 -18
- package/frontend/dist/frontend/src/ui/border_button.d.ts +94 -0
- package/frontend/dist/{ui → frontend/src/ui}/border_button.js +7 -13
- package/frontend/dist/frontend/src/ui/button.d.ts +28 -0
- package/frontend/dist/{ui → frontend/src/ui}/button.js +21 -12
- package/frontend/dist/frontend/src/ui/canvas.d.ts +138 -0
- package/frontend/dist/{ui → frontend/src/ui}/canvas.js +88 -55
- package/frontend/dist/frontend/src/ui/checkbox.d.ts +74 -0
- package/frontend/dist/{ui → frontend/src/ui}/checkbox.js +80 -41
- package/frontend/dist/{ui → frontend/src/ui}/code.d.ts +73 -6
- package/frontend/dist/{ui → frontend/src/ui}/code.js +55 -52
- package/frontend/dist/{ui → frontend/src/ui}/context_menu.d.ts +4 -0
- package/frontend/dist/{ui → frontend/src/ui}/context_menu.js +12 -17
- package/frontend/dist/{ui → frontend/src/ui}/css.d.ts +4 -0
- package/frontend/dist/{ui → frontend/src/ui}/css.js +3 -3
- package/frontend/dist/{ui → frontend/src/ui}/divider.d.ts +4 -0
- package/frontend/dist/{ui → frontend/src/ui}/divider.js +3 -3
- package/frontend/dist/{ui → frontend/src/ui}/dropdown.d.ts +57 -2
- package/frontend/dist/{ui → frontend/src/ui}/dropdown.js +87 -94
- package/frontend/dist/{ui → frontend/src/ui}/for_each.d.ts +4 -0
- package/frontend/dist/{ui → frontend/src/ui}/for_each.js +3 -3
- package/frontend/dist/{ui → frontend/src/ui}/form.d.ts +6 -2
- package/frontend/dist/{ui → frontend/src/ui}/form.js +10 -7
- package/frontend/dist/frontend/src/ui/frame_modes.d.ts +37 -0
- package/frontend/dist/{ui → frontend/src/ui}/frame_modes.js +16 -22
- package/frontend/dist/{ui → frontend/src/ui}/google_map.d.ts +4 -0
- package/frontend/dist/{ui → frontend/src/ui}/google_map.js +4 -4
- package/frontend/dist/{ui → frontend/src/ui}/gradient.d.ts +4 -0
- package/frontend/dist/{ui → frontend/src/ui}/gradient.js +3 -3
- package/frontend/dist/{ui → frontend/src/ui}/image.d.ts +4 -0
- package/frontend/dist/{ui → frontend/src/ui}/image.js +5 -5
- package/frontend/dist/frontend/src/ui/input.d.ts +392 -0
- package/frontend/dist/{ui → frontend/src/ui}/input.js +346 -360
- package/frontend/dist/{ui → frontend/src/ui}/link.d.ts +4 -0
- package/frontend/dist/{ui → frontend/src/ui}/link.js +3 -3
- package/frontend/dist/{ui → frontend/src/ui}/list.d.ts +4 -0
- package/frontend/dist/{ui → frontend/src/ui}/list.js +12 -6
- package/frontend/dist/frontend/src/ui/loader_button.d.ts +80 -0
- package/frontend/dist/{ui → frontend/src/ui}/loader_button.js +35 -47
- package/frontend/dist/frontend/src/ui/loaders.d.ts +57 -0
- package/frontend/dist/{ui → frontend/src/ui}/loaders.js +11 -11
- package/frontend/dist/{ui → frontend/src/ui}/popup.d.ts +11 -6
- package/frontend/dist/{ui → frontend/src/ui}/popup.js +32 -18
- package/frontend/dist/frontend/src/ui/pseudo.d.ts +44 -0
- package/frontend/dist/{ui → frontend/src/ui}/pseudo.js +84 -8
- package/frontend/dist/{ui → frontend/src/ui}/scroller.d.ts +14 -2
- package/frontend/dist/{ui → frontend/src/ui}/scroller.js +37 -43
- package/frontend/dist/{ui → frontend/src/ui}/slider.d.ts +5 -1
- package/frontend/dist/{ui → frontend/src/ui}/slider.js +4 -4
- package/frontend/dist/{ui → frontend/src/ui}/spacer.d.ts +4 -0
- package/frontend/dist/{ui → frontend/src/ui}/spacer.js +3 -3
- package/frontend/dist/{ui → frontend/src/ui}/span.d.ts +4 -0
- package/frontend/dist/{ui → frontend/src/ui}/span.js +3 -3
- package/frontend/dist/{ui → frontend/src/ui}/stack.d.ts +4 -0
- package/frontend/dist/{ui → frontend/src/ui}/stack.js +3 -9
- package/frontend/dist/frontend/src/ui/steps.d.ts +131 -0
- package/frontend/dist/{ui → frontend/src/ui}/steps.js +30 -45
- package/frontend/dist/{ui → frontend/src/ui}/style.d.ts +4 -0
- package/frontend/dist/{ui → frontend/src/ui}/style.js +3 -3
- package/frontend/dist/{ui → frontend/src/ui}/switch.d.ts +5 -1
- package/frontend/dist/{ui → frontend/src/ui}/switch.js +4 -4
- package/frontend/dist/{ui → frontend/src/ui}/table.d.ts +4 -0
- package/frontend/dist/{ui → frontend/src/ui}/table.js +6 -6
- package/frontend/dist/{ui → frontend/src/ui}/tabs.d.ts +45 -3
- package/frontend/dist/{ui → frontend/src/ui}/tabs.js +65 -40
- package/frontend/dist/{ui → frontend/src/ui}/text.d.ts +4 -0
- package/frontend/dist/{ui → frontend/src/ui}/text.js +3 -3
- package/frontend/dist/frontend/src/ui/title.d.ts +91 -0
- package/frontend/dist/frontend/src/ui/title.js +272 -0
- package/frontend/dist/{ui → frontend/src/ui}/view.d.ts +4 -0
- package/frontend/dist/{ui → frontend/src/ui}/view.js +3 -3
- package/frontend/dist/{volt.d.ts → frontend/src/volt.d.ts} +3 -0
- package/frontend/dist/{volt.js → frontend/src/volt.js} +4 -0
- package/frontend/tools/bundle_d_ts.js +71 -0
- package/frontend/tools/convert_to_jsdoc_input.txt +9452 -0
- package/frontend/tools/convert_to_jsdoc_output.txt +7626 -0
- package/frontend/tools/convert_to_jsdoc_tmp.js +345 -0
- package/package.json +11 -12
- package/backend/dist/cjs/database/collection.d.ts +0 -160
- package/backend/dist/cjs/database/collection.js +0 -842
- package/backend/dist/cjs/database/database.d.ts +0 -121
- package/backend/dist/cjs/database/document.d.ts +0 -131
- package/backend/dist/cjs/database/document.js +0 -224
- package/backend/dist/cjs/database.d.ts +0 -502
- package/backend/dist/cjs/database.js +0 -2248
- package/backend/dist/cjs/logger.d.ts +0 -3
- package/backend/dist/cjs/meta.d.ts +0 -50
- package/backend/dist/cjs/mutex.d.ts +0 -24
- package/backend/dist/cjs/payments/paddle.d.ts +0 -160
- package/backend/dist/cjs/plugins/browser.d.ts +0 -36
- package/backend/dist/cjs/plugins/browser.js +0 -198
- package/backend/dist/cjs/plugins/css.d.ts +0 -11
- package/backend/dist/cjs/plugins/css.js +0 -80
- package/backend/dist/cjs/plugins/mail.d.ts +0 -277
- package/backend/dist/cjs/plugins/mail.js +0 -1370
- package/backend/dist/cjs/plugins/ts/compiler.d.ts +0 -139
- package/backend/dist/cjs/plugins/ts/compiler.js +0 -750
- package/backend/dist/cjs/plugins/ts/preprocessing.d.ts +0 -14
- package/backend/dist/cjs/plugins/ts/preprocessing.js +0 -440
- package/backend/dist/cjs/rate_limit.d.ts +0 -63
- package/backend/dist/cjs/rate_limit.js +0 -348
- package/backend/dist/cjs/request.deprc.d.ts +0 -48
- package/backend/dist/cjs/request.deprc.js +0 -572
- package/backend/dist/cjs/response.deprc.d.ts +0 -55
- package/backend/dist/cjs/response.deprc.js +0 -275
- package/backend/dist/cjs/server.d.ts +0 -342
- package/backend/dist/cjs/splash_screen.d.ts +0 -35
- package/backend/dist/cjs/status.d.ts +0 -61
- package/backend/dist/cjs/stream.d.ts +0 -79
- package/backend/dist/cjs/users.d.ts +0 -111
- package/backend/dist/cjs/users.js +0 -1817
- package/backend/dist/cjs/view.js +0 -352
- package/backend/dist/cjs/vinc.dev.d.ts +0 -3
- package/backend/dist/cjs/vinc.dev.js +0 -7
- package/backend/dist/css/adyen.css +0 -92
- package/backend/dist/css/volt.css +0 -70
- package/backend/dist/esm/database/collection.d.ts +0 -160
- package/backend/dist/esm/database/collection.js +0 -1328
- package/backend/dist/esm/database/database.d.ts +0 -121
- package/backend/dist/esm/database/document.d.ts +0 -131
- package/backend/dist/esm/database/document.js +0 -247
- package/backend/dist/esm/database.d.ts +0 -502
- package/backend/dist/esm/database.js +0 -2423
- package/backend/dist/esm/file_watcher.js +0 -329
- package/backend/dist/esm/logger.d.ts +0 -3
- package/backend/dist/esm/logger.js +0 -11
- package/backend/dist/esm/meta.d.ts +0 -50
- package/backend/dist/esm/mutex.d.ts +0 -24
- package/backend/dist/esm/mutex.js +0 -48
- package/backend/dist/esm/payments/paddle.d.ts +0 -160
- package/backend/dist/esm/plugins/browser.d.ts +0 -36
- package/backend/dist/esm/plugins/browser.js +0 -176
- package/backend/dist/esm/plugins/css.d.ts +0 -11
- package/backend/dist/esm/plugins/css.js +0 -90
- package/backend/dist/esm/plugins/ts/compiler.d.ts +0 -139
- package/backend/dist/esm/plugins/ts/compiler.js +0 -1194
- package/backend/dist/esm/plugins/ts/preprocessing.d.ts +0 -14
- package/backend/dist/esm/plugins/ts/preprocessing.js +0 -726
- package/backend/dist/esm/rate_limit.d.ts +0 -63
- package/backend/dist/esm/rate_limit.js +0 -417
- package/backend/dist/esm/request.deprc.d.ts +0 -48
- package/backend/dist/esm/request.deprc.js +0 -572
- package/backend/dist/esm/response.deprc.d.ts +0 -55
- package/backend/dist/esm/response.deprc.js +0 -275
- package/backend/dist/esm/server.d.ts +0 -342
- package/backend/dist/esm/splash_screen.d.ts +0 -35
- package/backend/dist/esm/status.d.ts +0 -61
- package/backend/dist/esm/status.js +0 -197
- package/backend/dist/esm/stream.d.ts +0 -79
- package/backend/dist/esm/users.d.ts +0 -111
- package/backend/dist/esm/users.js +0 -1935
- package/backend/dist/esm/vinc.dev.d.ts +0 -3
- package/backend/dist/esm/vinc.dev.js +0 -7
- package/frontend/dist/elements/base.d.ts +0 -9889
- package/frontend/dist/elements/module.d.ts +0 -30
- package/frontend/dist/modules/array.d.ts +0 -94
- package/frontend/dist/modules/array.js +0 -634
- package/frontend/dist/modules/auth.d.ts +0 -46
- package/frontend/dist/modules/auth.js +0 -139
- package/frontend/dist/modules/colors.d.ts +0 -1
- package/frontend/dist/modules/colors.js +0 -417
- package/frontend/dist/modules/compression.d.ts +0 -6
- package/frontend/dist/modules/compression.js +0 -999
- package/frontend/dist/modules/cookies.d.ts +0 -18
- package/frontend/dist/modules/cookies.js +0 -167
- package/frontend/dist/modules/date.d.ts +0 -142
- package/frontend/dist/modules/date.js +0 -493
- package/frontend/dist/modules/events.d.ts +0 -8
- package/frontend/dist/modules/events.js +0 -91
- package/frontend/dist/modules/google.d.ts +0 -11
- package/frontend/dist/modules/google.js +0 -54
- package/frontend/dist/modules/meta.d.ts +0 -10
- package/frontend/dist/modules/mutex.d.ts +0 -7
- package/frontend/dist/modules/mutex.js +0 -51
- package/frontend/dist/modules/number.d.ts +0 -16
- package/frontend/dist/modules/number.js +0 -23
- package/frontend/dist/modules/object.d.ts +0 -52
- package/frontend/dist/modules/object.js +0 -383
- package/frontend/dist/modules/scheme.d.ts +0 -227
- package/frontend/dist/modules/scheme.js +0 -531
- package/frontend/dist/modules/settings.d.ts +0 -3
- package/frontend/dist/modules/settings.js +0 -4
- package/frontend/dist/modules/statics.d.ts +0 -5
- package/frontend/dist/modules/string.d.ts +0 -124
- package/frontend/dist/modules/string.js +0 -745
- package/frontend/dist/modules/support.d.ts +0 -19
- package/frontend/dist/modules/support.js +0 -103
- package/frontend/dist/modules/themes.d.ts +0 -8
- package/frontend/dist/modules/themes.js +0 -18
- package/frontend/dist/modules/user.d.ts +0 -59
- package/frontend/dist/modules/user.js +0 -280
- package/frontend/dist/modules/utils.d.ts +0 -87
- package/frontend/dist/modules/utils.js +0 -923
- package/frontend/dist/types/gradient.d.ts +0 -12
- package/frontend/dist/ui/border_button.d.ts +0 -152
- package/frontend/dist/ui/button.d.ts +0 -21
- package/frontend/dist/ui/canvas.d.ts +0 -56
- package/frontend/dist/ui/checkbox.d.ts +0 -52
- package/frontend/dist/ui/frame_modes.d.ts +0 -25
- package/frontend/dist/ui/input.d.ts +0 -241
- package/frontend/dist/ui/loader_button.d.ts +0 -93
- package/frontend/dist/ui/loaders.d.ts +0 -57
- package/frontend/dist/ui/pseudo.d.ts +0 -16
- package/frontend/dist/ui/steps.d.ts +0 -59
- package/frontend/dist/ui/title.d.ts +0 -21
- package/frontend/dist/ui/title.js +0 -121
- package/frontend/examples/dashboard/dashboard.ts +0 -776
- /package/backend/dist/cjs/{cli.d.ts → backend/src/cli.d.ts} +0 -0
- /package/backend/dist/cjs/{file_watcher.d.ts → backend/src/database/document.d.ts} +0 -0
- /package/backend/dist/cjs/{file_watcher.js → backend/src/database/document.js} +0 -0
- /package/backend/dist/cjs/{plugins/pdf.d.ts → backend/src/database/filters/strict_filter_test.d.ts} +0 -0
- /package/backend/dist/{esm/file_watcher.d.ts → cjs/backend/src/database/filters/strict_filter_test_v0.d.ts} +0 -0
- /package/backend/dist/{esm/plugins/pdf.d.ts → cjs/backend/src/database/flatten_test.d.ts} +0 -0
- /package/backend/dist/cjs/{frontend.d.ts → backend/src/frontend.d.ts} +0 -0
- /package/backend/dist/cjs/{plugins → backend/src/plugins}/communication.d.ts +0 -0
- /package/backend/dist/cjs/{plugins → backend/src/plugins}/communication.js +0 -0
- /package/backend/dist/cjs/{plugins → backend/src/plugins}/mail/ui.js +0 -0
- /package/backend/dist/cjs/{plugins → backend/src/plugins}/pdf.js +0 -0
- /package/backend/dist/cjs/{plugins → backend/src/plugins}/thread_monitor.d.ts +0 -0
- /package/backend/dist/cjs/{plugins → backend/src/plugins}/thread_monitor.js +0 -0
- /package/backend/dist/cjs/{vinc.d.ts → backend/src/vinc.d.ts} +0 -0
- /package/backend/dist/cjs/{vinc.js → backend/src/vinc.js} +0 -0
- /package/backend/dist/esm/{cli.d.ts → backend/src/cli.d.ts} +0 -0
- /package/backend/dist/esm/{frontend.d.ts → backend/src/frontend.d.ts} +0 -0
- /package/backend/dist/esm/{plugins → backend/src/plugins}/communication.d.ts +0 -0
- /package/backend/dist/esm/{plugins → backend/src/plugins}/communication.js +0 -0
- /package/backend/dist/esm/{plugins → backend/src/plugins}/thread_monitor.d.ts +0 -0
- /package/backend/dist/esm/{plugins → backend/src/plugins}/thread_monitor.js +0 -0
- /package/backend/dist/esm/{vinc.d.ts → backend/src/vinc.d.ts} +0 -0
- /package/backend/dist/esm/{vinc.js → backend/src/vinc.js} +0 -0
- /package/frontend/dist/{elements → frontend/src/elements}/register_element.d.ts +0 -0
- /package/frontend/dist/{elements → frontend/src/elements}/register_element.js +0 -0
- /package/frontend/dist/{modules → frontend/src/modules}/color.d.ts +0 -0
- /package/frontend/dist/{ui → frontend/src/ui}/ui.d.ts +0 -0
- /package/frontend/dist/{ui → frontend/src/ui}/ui.js +0 -0
|
@@ -1,502 +0,0 @@
|
|
|
1
|
-
import { ChildProcess } from "child_process";
|
|
2
|
-
import { MongoClient, Collection as MongoCollection } from 'mongodb';
|
|
3
|
-
import { vlib } from "./vinc.js";
|
|
4
|
-
import { ExternalError, InternalError } from "./utils.js";
|
|
5
|
-
interface BaseOptions {
|
|
6
|
-
options?: Record<string, any>;
|
|
7
|
-
commit_quorum?: any;
|
|
8
|
-
forced?: boolean;
|
|
9
|
-
}
|
|
10
|
-
type IndexOptions = (BaseOptions & {
|
|
11
|
-
key: string;
|
|
12
|
-
keys?: never;
|
|
13
|
-
}) | (BaseOptions & {
|
|
14
|
-
key?: never;
|
|
15
|
-
keys: string[];
|
|
16
|
-
});
|
|
17
|
-
export declare class Collection {
|
|
18
|
-
static chunk_size: number;
|
|
19
|
-
static constructor_scheme: {
|
|
20
|
-
name: string;
|
|
21
|
-
uid_based: string;
|
|
22
|
-
ttl: {
|
|
23
|
-
type: string;
|
|
24
|
-
default: null;
|
|
25
|
-
};
|
|
26
|
-
indexes: {
|
|
27
|
-
type: string;
|
|
28
|
-
default: never[];
|
|
29
|
-
value_scheme: {
|
|
30
|
-
type: string[];
|
|
31
|
-
scheme: {
|
|
32
|
-
key: {
|
|
33
|
-
type: string;
|
|
34
|
-
required: (data: any) => boolean;
|
|
35
|
-
};
|
|
36
|
-
keys: {
|
|
37
|
-
type: string[];
|
|
38
|
-
required: (data: any) => boolean;
|
|
39
|
-
value_scheme: string;
|
|
40
|
-
postprocess: (keys: any) => any;
|
|
41
|
-
};
|
|
42
|
-
options: {
|
|
43
|
-
type: string;
|
|
44
|
-
required: boolean;
|
|
45
|
-
};
|
|
46
|
-
commit_quorom: {
|
|
47
|
-
type: string;
|
|
48
|
-
required: boolean;
|
|
49
|
-
};
|
|
50
|
-
forced: {
|
|
51
|
-
type: string;
|
|
52
|
-
default: boolean;
|
|
53
|
-
};
|
|
54
|
-
};
|
|
55
|
-
postprocess: (info: any) => any;
|
|
56
|
-
};
|
|
57
|
-
};
|
|
58
|
-
};
|
|
59
|
-
col: MongoCollection;
|
|
60
|
-
name: string;
|
|
61
|
-
uid_based: boolean;
|
|
62
|
-
ttl: number | null;
|
|
63
|
-
ttl_enabled: boolean;
|
|
64
|
-
constructor(name: string, collection: MongoCollection, ttl?: number | null, // ttl in msec
|
|
65
|
-
indexes?: IndexOptions[], uid_based?: boolean);
|
|
66
|
-
private _process_doc;
|
|
67
|
-
private _load_chunked;
|
|
68
|
-
private _save_chunked;
|
|
69
|
-
create_index({ key, keys, // following the IndexOptions "key" or "keys" must be defined in typescript but not in raw js.
|
|
70
|
-
options, commit_quorum, forced }: IndexOptions): Promise<string>;
|
|
71
|
-
find(query: Record<string, any>): Promise<any>;
|
|
72
|
-
exists(path: string | Record<string, any>): Promise<boolean>;
|
|
73
|
-
load(path: string | Record<string, any>, opts?: {
|
|
74
|
-
default?: any;
|
|
75
|
-
chunked?: boolean;
|
|
76
|
-
attributes?: string[];
|
|
77
|
-
projection?: Record<string, any>;
|
|
78
|
-
} | null): Promise<any>;
|
|
79
|
-
save(path: string | Record<string, any>, content: any, opts?: {
|
|
80
|
-
chunked?: boolean;
|
|
81
|
-
bulk?: boolean;
|
|
82
|
-
set?: boolean;
|
|
83
|
-
} | null): Promise<any>;
|
|
84
|
-
/** Update many. */
|
|
85
|
-
update_many(...args: Parameters<typeof this.col.updateMany>): Promise<any>;
|
|
86
|
-
list(path: string | Record<string, any>, options?: {
|
|
87
|
-
process?: boolean;
|
|
88
|
-
projection?: Record<string, any>;
|
|
89
|
-
}): Promise<any[]>;
|
|
90
|
-
list_query(query?: Record<string, any>, options?: {
|
|
91
|
-
process?: boolean;
|
|
92
|
-
projection?: Record<string, any>;
|
|
93
|
-
}): Promise<any[]>;
|
|
94
|
-
list_all(query?: Record<string, any>, options?: {
|
|
95
|
-
process?: boolean;
|
|
96
|
-
projection?: Record<string, any>;
|
|
97
|
-
}): Promise<any[]>;
|
|
98
|
-
delete(path: string | Record<string, any>, opts?: {
|
|
99
|
-
chunked?: boolean;
|
|
100
|
-
bulk?: boolean;
|
|
101
|
-
}): Promise<any>;
|
|
102
|
-
delete_query(query?: Record<string, any>): Promise<any>;
|
|
103
|
-
delete_all(path: string | Record<string, any>): Promise<void>;
|
|
104
|
-
delete_many(query: Record<string, any>): Promise<void>;
|
|
105
|
-
delete_collection(): Promise<void>;
|
|
106
|
-
clean<T>(doc: T): T | null;
|
|
107
|
-
/** Write bulk operations. */
|
|
108
|
-
bulk_operations(operations?: any[]): Promise<any>;
|
|
109
|
-
}
|
|
110
|
-
export declare class UIDCollection {
|
|
111
|
-
private _col;
|
|
112
|
-
col: MongoCollection;
|
|
113
|
-
constructor(name: string, collection: MongoCollection, indexes?: IndexOptions[], ttl?: number | null);
|
|
114
|
-
create_index(args: IndexOptions): Promise<string>;
|
|
115
|
-
find(uid?: string | null, query?: Record<string, any>): Promise<any>;
|
|
116
|
-
exists(uid: string, path: string | Record<string, any>): Promise<boolean>;
|
|
117
|
-
load(uid: string, path: string | Record<string, any>, opts?: {
|
|
118
|
-
default?: any;
|
|
119
|
-
chunked?: boolean;
|
|
120
|
-
attributes?: string[];
|
|
121
|
-
projection?: Record<string, any>;
|
|
122
|
-
} | null): Promise<any>;
|
|
123
|
-
save(uid: string, path: string | Record<string, any>, content: any, opts?: {
|
|
124
|
-
chunked?: boolean;
|
|
125
|
-
bulk?: boolean;
|
|
126
|
-
set?: boolean;
|
|
127
|
-
} | null): Promise<any>;
|
|
128
|
-
/** Update many. */
|
|
129
|
-
update_many(...args: Parameters<typeof this.col.updateMany>): Promise<any>;
|
|
130
|
-
list(uid: string, path: string | Record<string, any>, options?: {
|
|
131
|
-
process?: boolean;
|
|
132
|
-
projection?: Record<string, any>;
|
|
133
|
-
}): Promise<any[]>;
|
|
134
|
-
list_query(query?: Record<string, any>, options?: {
|
|
135
|
-
process?: boolean;
|
|
136
|
-
projection?: Record<string, any>;
|
|
137
|
-
}): Promise<any[]>;
|
|
138
|
-
list_all(uid?: string | null, options?: {
|
|
139
|
-
process?: boolean;
|
|
140
|
-
projection?: Record<string, any>;
|
|
141
|
-
}): Promise<any[]>;
|
|
142
|
-
delete(uid: string, path: string | Record<string, any>, opts?: {
|
|
143
|
-
chunked?: boolean;
|
|
144
|
-
bulk?: boolean;
|
|
145
|
-
}): Promise<any>;
|
|
146
|
-
delete_query(query: Record<string, any>): Promise<any>;
|
|
147
|
-
delete_all(uid: string, path?: string | Record<string, any> | null): Promise<void>;
|
|
148
|
-
delete_many(query: Record<string, any>): Promise<void>;
|
|
149
|
-
delete_collection(): Promise<void>;
|
|
150
|
-
clean<T>(doc: T): T | null;
|
|
151
|
-
/** Write bulk operations. */
|
|
152
|
-
bulk_operations(operations?: any[]): Promise<any>;
|
|
153
|
-
}
|
|
154
|
-
export declare class Database {
|
|
155
|
-
static constructor_scheme: {
|
|
156
|
-
uri: {
|
|
157
|
-
type: string;
|
|
158
|
-
default: null;
|
|
159
|
-
};
|
|
160
|
-
source: {
|
|
161
|
-
type: string;
|
|
162
|
-
default: null;
|
|
163
|
-
};
|
|
164
|
-
config: {
|
|
165
|
-
type: string;
|
|
166
|
-
default: {};
|
|
167
|
-
};
|
|
168
|
-
start_args: {
|
|
169
|
-
type: string;
|
|
170
|
-
default: never[];
|
|
171
|
-
};
|
|
172
|
-
client: {
|
|
173
|
-
type: string;
|
|
174
|
-
default: {};
|
|
175
|
-
};
|
|
176
|
-
collections: {
|
|
177
|
-
type: string;
|
|
178
|
-
default: never[];
|
|
179
|
-
value_scheme: {
|
|
180
|
-
type: string[];
|
|
181
|
-
preprocess: (info: string | Record<string, any>) => Record<string, any>;
|
|
182
|
-
scheme: {
|
|
183
|
-
name: string;
|
|
184
|
-
ttl: {
|
|
185
|
-
type: string;
|
|
186
|
-
default: null;
|
|
187
|
-
};
|
|
188
|
-
indexes: {
|
|
189
|
-
type: string;
|
|
190
|
-
default: never[];
|
|
191
|
-
value_scheme: {
|
|
192
|
-
type: string[];
|
|
193
|
-
scheme: {
|
|
194
|
-
key: {
|
|
195
|
-
type: string;
|
|
196
|
-
required: (data: any) => boolean;
|
|
197
|
-
};
|
|
198
|
-
keys: {
|
|
199
|
-
type: string[];
|
|
200
|
-
required: (data: any) => boolean;
|
|
201
|
-
value_scheme: string;
|
|
202
|
-
postprocess: (keys: any) => any;
|
|
203
|
-
};
|
|
204
|
-
options: {
|
|
205
|
-
type: string;
|
|
206
|
-
required: boolean;
|
|
207
|
-
};
|
|
208
|
-
commit_quorom: {
|
|
209
|
-
type: string;
|
|
210
|
-
required: boolean;
|
|
211
|
-
};
|
|
212
|
-
forced: {
|
|
213
|
-
type: string;
|
|
214
|
-
default: boolean;
|
|
215
|
-
};
|
|
216
|
-
};
|
|
217
|
-
postprocess: (info: any) => any;
|
|
218
|
-
};
|
|
219
|
-
};
|
|
220
|
-
};
|
|
221
|
-
};
|
|
222
|
-
};
|
|
223
|
-
uid_collections: {
|
|
224
|
-
type: string;
|
|
225
|
-
default: never[];
|
|
226
|
-
value_scheme: {
|
|
227
|
-
type: string[];
|
|
228
|
-
preprocess: (info: string | Record<string, any>) => Record<string, any>;
|
|
229
|
-
scheme: {
|
|
230
|
-
name: string;
|
|
231
|
-
ttl: {
|
|
232
|
-
type: string;
|
|
233
|
-
default: null;
|
|
234
|
-
};
|
|
235
|
-
indexes: {
|
|
236
|
-
type: string;
|
|
237
|
-
default: never[];
|
|
238
|
-
value_scheme: {
|
|
239
|
-
type: string[];
|
|
240
|
-
scheme: {
|
|
241
|
-
key: {
|
|
242
|
-
type: string;
|
|
243
|
-
required: (data: any) => boolean;
|
|
244
|
-
};
|
|
245
|
-
keys: {
|
|
246
|
-
type: string[];
|
|
247
|
-
required: (data: any) => boolean;
|
|
248
|
-
value_scheme: string;
|
|
249
|
-
postprocess: (keys: any) => any;
|
|
250
|
-
};
|
|
251
|
-
options: {
|
|
252
|
-
type: string;
|
|
253
|
-
required: boolean;
|
|
254
|
-
};
|
|
255
|
-
commit_quorom: {
|
|
256
|
-
type: string;
|
|
257
|
-
required: boolean;
|
|
258
|
-
};
|
|
259
|
-
forced: {
|
|
260
|
-
type: string;
|
|
261
|
-
default: boolean;
|
|
262
|
-
};
|
|
263
|
-
};
|
|
264
|
-
postprocess: (info: any) => any;
|
|
265
|
-
};
|
|
266
|
-
};
|
|
267
|
-
};
|
|
268
|
-
};
|
|
269
|
-
};
|
|
270
|
-
preview: {
|
|
271
|
-
type: string;
|
|
272
|
-
default: boolean;
|
|
273
|
-
};
|
|
274
|
-
preview_ip_whitelist: {
|
|
275
|
-
type: string;
|
|
276
|
-
default: never[];
|
|
277
|
-
};
|
|
278
|
-
daemon: {
|
|
279
|
-
type: string[];
|
|
280
|
-
default: {};
|
|
281
|
-
};
|
|
282
|
-
_server: {
|
|
283
|
-
type: string[];
|
|
284
|
-
};
|
|
285
|
-
};
|
|
286
|
-
uri: string | null;
|
|
287
|
-
client_opts: Record<string, any> | null;
|
|
288
|
-
config: Record<string, any>;
|
|
289
|
-
source: vlib.Path | undefined;
|
|
290
|
-
start_args: string[];
|
|
291
|
-
_collections: {
|
|
292
|
-
name: string;
|
|
293
|
-
ttl?: number | null;
|
|
294
|
-
indexes?: string[] | IndexOptions[];
|
|
295
|
-
}[];
|
|
296
|
-
_uid_collections: {
|
|
297
|
-
name: string;
|
|
298
|
-
ttl?: number | null;
|
|
299
|
-
indexes?: string[] | IndexOptions[];
|
|
300
|
-
}[];
|
|
301
|
-
server: any;
|
|
302
|
-
client: MongoClient | null;
|
|
303
|
-
collections: Record<string, Collection | UIDCollection>;
|
|
304
|
-
proc?: ChildProcess;
|
|
305
|
-
daemon?: any;
|
|
306
|
-
db?: any;
|
|
307
|
-
_listed_cols: any;
|
|
308
|
-
constructor({ uri, source, config, start_args, client, collections, uid_collections, daemon, _server, }: {
|
|
309
|
-
uri?: string | null;
|
|
310
|
-
source?: string | null;
|
|
311
|
-
config?: Record<string, any> | null;
|
|
312
|
-
start_args?: string[];
|
|
313
|
-
client?: Record<string, any> | null;
|
|
314
|
-
collections?: {
|
|
315
|
-
name: string;
|
|
316
|
-
ttl?: number | null;
|
|
317
|
-
indexes?: string[] | IndexOptions[];
|
|
318
|
-
}[];
|
|
319
|
-
uid_collections?: {
|
|
320
|
-
name: string;
|
|
321
|
-
ttl?: number | null;
|
|
322
|
-
indexes?: string[] | IndexOptions[];
|
|
323
|
-
}[];
|
|
324
|
-
preview?: boolean;
|
|
325
|
-
preview_ip_whitelist?: string[];
|
|
326
|
-
daemon?: Record<string, any> | boolean;
|
|
327
|
-
_server: any;
|
|
328
|
-
});
|
|
329
|
-
connect(): Promise<void>;
|
|
330
|
-
initialize(): Promise<void>;
|
|
331
|
-
close(): Promise<void>;
|
|
332
|
-
create_collection(info: {
|
|
333
|
-
name: string;
|
|
334
|
-
indexes?: IndexOptions[];
|
|
335
|
-
ttl?: number | null;
|
|
336
|
-
} | string): Promise<Collection>;
|
|
337
|
-
create_uid_collection(info: {
|
|
338
|
-
name: string;
|
|
339
|
-
indexes?: IndexOptions[];
|
|
340
|
-
ttl?: number | null;
|
|
341
|
-
} | string): Promise<UIDCollection>;
|
|
342
|
-
get_collections(): Promise<string[]>;
|
|
343
|
-
}
|
|
344
|
-
type DocumentOptionsBase = Record<string, any> | any[];
|
|
345
|
-
/** A loaded uid document type. */
|
|
346
|
-
export type LoadedUIDDocument<DocumentOptions extends DocumentOptionsBase, DerivedDocument extends UIDDocument<DocumentOptions> = UIDDocument<DocumentOptions>> = Omit<DerivedDocument, "data"> & {
|
|
347
|
-
data: DocumentOptions;
|
|
348
|
-
};
|
|
349
|
-
/** Objective document class.
|
|
350
|
-
* @deprecated Use `Reference` instead.
|
|
351
|
-
*/
|
|
352
|
-
export declare class UIDDocument<DocumentOptions extends DocumentOptionsBase> {
|
|
353
|
-
col: UIDCollection;
|
|
354
|
-
data?: DocumentOptions;
|
|
355
|
-
def?: DocumentOptions | (() => DocumentOptions);
|
|
356
|
-
uid: string;
|
|
357
|
-
path: string | Record<string, any>;
|
|
358
|
-
chunked: boolean;
|
|
359
|
-
error_type: typeof InternalError | typeof ExternalError;
|
|
360
|
-
/** Constructor
|
|
361
|
-
* @param def The default value, when the default value is an object then the attributes will be checked / inserted as well.
|
|
362
|
-
*/
|
|
363
|
-
constructor({ col, uid, path, data, def, chunked, external_errors }: {
|
|
364
|
-
col: UIDCollection;
|
|
365
|
-
uid: string;
|
|
366
|
-
path: string | Record<string, any>;
|
|
367
|
-
data?: DocumentOptions;
|
|
368
|
-
def?: DocumentOptions | (() => DocumentOptions);
|
|
369
|
-
chunked?: boolean;
|
|
370
|
-
external_errors?: boolean;
|
|
371
|
-
});
|
|
372
|
-
/** As database document. */
|
|
373
|
-
document(): undefined | DocumentOptions;
|
|
374
|
-
/** Create error options. */
|
|
375
|
-
not_found_error(): {
|
|
376
|
-
type: string;
|
|
377
|
-
message: string;
|
|
378
|
-
status: number;
|
|
379
|
-
};
|
|
380
|
-
not_loaded_error(): {
|
|
381
|
-
type: string;
|
|
382
|
-
message: string;
|
|
383
|
-
status: number;
|
|
384
|
-
};
|
|
385
|
-
/** Set defaults from constructor param `def`. */
|
|
386
|
-
set_defaults(): void;
|
|
387
|
-
/** On load callback.
|
|
388
|
-
* @note this is not called when default data is used for an empty document.
|
|
389
|
-
* @warning the user MUST always call this function after manually loading the document.
|
|
390
|
-
*/
|
|
391
|
-
on_load(): any;
|
|
392
|
-
/** Assert load. */
|
|
393
|
-
assert_load(): Promise<void>;
|
|
394
|
-
/** Assert load */
|
|
395
|
-
assert_loaded(): asserts this is {
|
|
396
|
-
data: DocumentOptions;
|
|
397
|
-
};
|
|
398
|
-
/** Check if a project exists.
|
|
399
|
-
* @note this does not load the full document.
|
|
400
|
-
*/
|
|
401
|
-
exists(): Promise<boolean>;
|
|
402
|
-
/**
|
|
403
|
-
* Load a project from the database
|
|
404
|
-
* @param def the default value, when the default value is an object then the attributes will be checked / inserted as well.
|
|
405
|
-
*/
|
|
406
|
-
load(): Promise<DocumentOptions>;
|
|
407
|
-
try_load(): Promise<undefined | DocumentOptions>;
|
|
408
|
-
/** Load partial by projection.
|
|
409
|
-
* @note This automatically inserts the new values when the document is loaded in this specific scenario it also calls the on load callback.
|
|
410
|
-
* @param fields The fields to load, nested fields should be separated by a dot (e.g. "a.b.c").
|
|
411
|
-
*/
|
|
412
|
-
load_partial(...fields: string[]): Promise<Partial<DocumentOptions>>;
|
|
413
|
-
try_load_partial(...fields: string[]): Promise<undefined | Partial<DocumentOptions>>;
|
|
414
|
-
/** Save the project to the database */
|
|
415
|
-
save(): Promise<void>;
|
|
416
|
-
/** Save partial to the database
|
|
417
|
-
* @note automatically inserts the new values when the document is loaded.
|
|
418
|
-
*/
|
|
419
|
-
save_partial(partial_data: Partial<DocumentOptions>): Promise<void>;
|
|
420
|
-
/** Delete database record. */
|
|
421
|
-
delete(opts?: {
|
|
422
|
-
bulk?: boolean;
|
|
423
|
-
}): Promise<any>;
|
|
424
|
-
/** Wrapper function to insert an obj into another
|
|
425
|
-
* @note this is not a deep copy.
|
|
426
|
-
*/
|
|
427
|
-
private static __insert_obj;
|
|
428
|
-
}
|
|
429
|
-
/**
|
|
430
|
-
* Document reference object. Its objectively an document without holding its data.
|
|
431
|
-
* Its more efficient to store that separately and use this to perform operations on it.
|
|
432
|
-
*/
|
|
433
|
-
export declare class DocumentRef<Document extends Record<string, any> | any[]> {
|
|
434
|
-
col: UIDCollection | Collection;
|
|
435
|
-
uid?: string;
|
|
436
|
-
path: string | Record<string, any>;
|
|
437
|
-
def?: Document | (() => Document);
|
|
438
|
-
chunked: boolean;
|
|
439
|
-
record_version?: number;
|
|
440
|
-
error_type: typeof InternalError | typeof ExternalError;
|
|
441
|
-
transform_version?: (version: number, document: any) => Document;
|
|
442
|
-
_on_load?: (data: Document) => Document;
|
|
443
|
-
/** Constructor
|
|
444
|
-
* @param col The collection created by the server.
|
|
445
|
-
* @param uid The uid of the document, this is only required when the collection is a UIDCollection.
|
|
446
|
-
* @param path The path of the document, this can be a string or an object query.
|
|
447
|
-
* @param def The default value, when the default value is an object then the attributes will be checked / inserted as well.
|
|
448
|
-
* @param chunked If true then the document is stored in chunks.
|
|
449
|
-
* @param external_errors If true then the errors are thrown as external errors, instead of internal errors.
|
|
450
|
-
* @param record_version The record type version for the database.
|
|
451
|
-
* This can be used in combination with parameter `transform_version` to ...
|
|
452
|
-
* Transform older record versions to the current version.
|
|
453
|
-
* @param transform_version The function to transform an older document version to the current version.
|
|
454
|
-
* @param on_load The function to call when the document is loaded.
|
|
455
|
-
*/
|
|
456
|
-
constructor({ col, uid, path, def, chunked, external_errors, record_version, transform_version, on_load, }: {
|
|
457
|
-
col: UIDCollection | Collection;
|
|
458
|
-
uid?: string;
|
|
459
|
-
path: string | Record<string, any>;
|
|
460
|
-
data?: Document;
|
|
461
|
-
def?: Document | (() => Document);
|
|
462
|
-
chunked?: boolean;
|
|
463
|
-
external_errors?: boolean;
|
|
464
|
-
record_version?: number;
|
|
465
|
-
transform_version?: (version: number, document: any) => Document;
|
|
466
|
-
on_load?: (data: Document) => Document;
|
|
467
|
-
});
|
|
468
|
-
/** Set defaults from constructor param `def`. */
|
|
469
|
-
set_defaults(data: Document): void;
|
|
470
|
-
/** Get the computed default value, when defined. */
|
|
471
|
-
as_default(): Document | undefined;
|
|
472
|
-
/**
|
|
473
|
-
* On load callback.
|
|
474
|
-
* @note this is not called when default data is used for an empty document.
|
|
475
|
-
*/
|
|
476
|
-
private on_load;
|
|
477
|
-
/** Check if a project exists.
|
|
478
|
-
* @note this does not load the full document.
|
|
479
|
-
*/
|
|
480
|
-
exists(): Promise<boolean>;
|
|
481
|
-
/**
|
|
482
|
-
* Load a project from the database
|
|
483
|
-
* @param def the default value, when the default value is an object then the attributes will be checked / inserted as well.
|
|
484
|
-
*/
|
|
485
|
-
load(): Promise<undefined | Document>;
|
|
486
|
-
/**
|
|
487
|
-
* Load partial by projection.
|
|
488
|
-
* @param fields The fields to load, nested fields should be separated by a dot (e.g. "a.b.c").
|
|
489
|
-
*/
|
|
490
|
-
load_partial(...fields: string[]): Promise<undefined | Partial<Document>>;
|
|
491
|
-
/** Save the project to the database */
|
|
492
|
-
save(data: Document): Promise<any>;
|
|
493
|
-
/** Save partial to the database
|
|
494
|
-
* @note automatically inserts the new values when the document is loaded.
|
|
495
|
-
*/
|
|
496
|
-
save_partial(partial_data: Record<string, any>): Promise<any>;
|
|
497
|
-
/** Delete database record. */
|
|
498
|
-
delete(opts?: {
|
|
499
|
-
bulk?: boolean;
|
|
500
|
-
}): Promise<any>;
|
|
501
|
-
}
|
|
502
|
-
export {};
|