@vandenberghinc/volt 1.2.5 → 1.2.6
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/frontend/assets/admin/admin.png +0 -0
- package/frontend/assets/admin/password.webp +0 -0
- package/frontend/assets/icons/arrow.v1.webp +0 -0
- package/frontend/assets/icons/copy.webp +0 -0
- package/frontend/assets/payments/arrow.long.webp +0 -0
- package/frontend/assets/payments/arrow.long2.webp +0 -0
- package/frontend/assets/payments/cancelled.webp +0 -0
- package/frontend/assets/payments/check.sign.webp +0 -0
- package/frontend/assets/payments/check.webp +0 -0
- package/frontend/assets/payments/close.webp +0 -0
- package/frontend/assets/payments/error.webp +0 -0
- package/frontend/assets/payments/exclamation.webp +0 -0
- package/frontend/assets/payments/minus.webp +0 -0
- package/frontend/assets/payments/party.webp +0 -0
- package/frontend/assets/payments/plus.webp +0 -0
- package/frontend/assets/payments/shopping_cart.webp +0 -0
- package/frontend/assets/payments/trash.webp +0 -0
- package/package.json +5 -1
- package/.libris/config.json +0 -82
- package/backend/dist/cjs/backend/src/blacklist.d.ts +0 -12
- package/backend/dist/cjs/backend/src/blacklist.js +0 -78
- package/backend/dist/cjs/backend/src/cli.d.ts +0 -2
- package/backend/dist/cjs/backend/src/cli.js +0 -198
- package/backend/dist/cjs/backend/src/database/collection.d.ts +0 -1765
- package/backend/dist/cjs/backend/src/database/collection.js +0 -3301
- package/backend/dist/cjs/backend/src/database/database.d.ts +0 -92
- package/backend/dist/cjs/backend/src/database/database.js +0 -170
- package/backend/dist/cjs/backend/src/database/document.d.ts +0 -1
- package/backend/dist/cjs/backend/src/database/document.js +0 -15
- package/backend/dist/cjs/backend/src/database/filters/filters.d.ts +0 -6
- package/backend/dist/cjs/backend/src/database/filters/filters.js +0 -15
- package/backend/dist/cjs/backend/src/database/filters/strict_filter.d.ts +0 -223
- package/backend/dist/cjs/backend/src/database/filters/strict_filter.js +0 -15
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_test.d.ts +0 -1
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_test.js +0 -443
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_test_v0.d.ts +0 -1
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_test_v0.js +0 -15
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_v0.d.ts +0 -50
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_v0.js +0 -15
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_v1.d.ts +0 -76
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_v1.js +0 -15
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_v2.d.ts +0 -75
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_v2.js +0 -15
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_v3.d.ts +0 -219
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_v3.js +0 -15
- package/backend/dist/cjs/backend/src/database/filters/strict_update_filter.d.ts +0 -165
- package/backend/dist/cjs/backend/src/database/filters/strict_update_filter.js +0 -15
- package/backend/dist/cjs/backend/src/database/filters/strict_update_filter_test.d.ts +0 -5
- package/backend/dist/cjs/backend/src/database/filters/strict_update_filter_test.js +0 -355
- package/backend/dist/cjs/backend/src/database/flatten.d.ts +0 -78
- package/backend/dist/cjs/backend/src/database/flatten.js +0 -53
- package/backend/dist/cjs/backend/src/database/flatten_test.d.ts +0 -1
- package/backend/dist/cjs/backend/src/database/flatten_test.js +0 -175
- package/backend/dist/cjs/backend/src/database/quota/quoata_v2.d.ts +0 -533
- package/backend/dist/cjs/backend/src/database/quota/quoata_v2.js +0 -1046
- package/backend/dist/cjs/backend/src/database/quota/quota.d.ts +0 -551
- package/backend/dist/cjs/backend/src/database/quota/quota.js +0 -1108
- package/backend/dist/cjs/backend/src/database/quota/quota_v1.d.ts +0 -534
- package/backend/dist/cjs/backend/src/database/quota/quota_v1.js +0 -1087
- package/backend/dist/cjs/backend/src/database/quota/safe_int.d.ts +0 -412
- package/backend/dist/cjs/backend/src/database/quota/safe_int.js +0 -745
- package/backend/dist/cjs/backend/src/endpoint.d.ts +0 -346
- package/backend/dist/cjs/backend/src/endpoint.js +0 -468
- package/backend/dist/cjs/backend/src/errors/index.d.ts +0 -7
- package/backend/dist/cjs/backend/src/errors/index.js +0 -25
- package/backend/dist/cjs/backend/src/errors/internal_external.d.ts +0 -52
- package/backend/dist/cjs/backend/src/errors/internal_external.js +0 -95
- package/backend/dist/cjs/backend/src/errors/invalid_usage_error.d.ts +0 -41
- package/backend/dist/cjs/backend/src/errors/invalid_usage_error.js +0 -47
- package/backend/dist/cjs/backend/src/errors/system_error.d.ts +0 -261
- package/backend/dist/cjs/backend/src/errors/system_error.js +0 -436
- package/backend/dist/cjs/backend/src/events.d.ts +0 -97
- package/backend/dist/cjs/backend/src/events.js +0 -15
- package/backend/dist/cjs/backend/src/frontend.d.ts +0 -11
- package/backend/dist/cjs/backend/src/frontend.js +0 -37
- package/backend/dist/cjs/backend/src/image_endpoint.d.ts +0 -44
- package/backend/dist/cjs/backend/src/image_endpoint.js +0 -185
- package/backend/dist/cjs/backend/src/index.d.ts +0 -23
- package/backend/dist/cjs/backend/src/index.js +0 -70
- package/backend/dist/cjs/backend/src/logger.d.ts +0 -5
- package/backend/dist/cjs/backend/src/logger.js +0 -15
- package/backend/dist/cjs/backend/src/meta.d.ts +0 -112
- package/backend/dist/cjs/backend/src/meta.js +0 -181
- package/backend/dist/cjs/backend/src/payments/paddle.d.ts +0 -329
- package/backend/dist/cjs/backend/src/payments/paddle.js +0 -1996
- package/backend/dist/cjs/backend/src/payments/stripe/checkout.d.ts +0 -113
- package/backend/dist/cjs/backend/src/payments/stripe/checkout.js +0 -295
- package/backend/dist/cjs/backend/src/payments/stripe/customers.d.ts +0 -17
- package/backend/dist/cjs/backend/src/payments/stripe/customers.js +0 -164
- package/backend/dist/cjs/backend/src/payments/stripe/error.d.ts +0 -74
- package/backend/dist/cjs/backend/src/payments/stripe/error.js +0 -64
- package/backend/dist/cjs/backend/src/payments/stripe/events.d.ts +0 -155
- package/backend/dist/cjs/backend/src/payments/stripe/events.js +0 -15
- package/backend/dist/cjs/backend/src/payments/stripe/meters.d.ts +0 -105
- package/backend/dist/cjs/backend/src/payments/stripe/meters.js +0 -230
- package/backend/dist/cjs/backend/src/payments/stripe/payment_methods.d.ts +0 -58
- package/backend/dist/cjs/backend/src/payments/stripe/payment_methods.js +0 -109
- package/backend/dist/cjs/backend/src/payments/stripe/products.d.ts +0 -519
- package/backend/dist/cjs/backend/src/payments/stripe/products.js +0 -650
- package/backend/dist/cjs/backend/src/payments/stripe/stripe.d.ts +0 -215
- package/backend/dist/cjs/backend/src/payments/stripe/stripe.js +0 -468
- package/backend/dist/cjs/backend/src/payments/stripe/subscriptions.d.ts +0 -172
- package/backend/dist/cjs/backend/src/payments/stripe/subscriptions.js +0 -557
- package/backend/dist/cjs/backend/src/payments/stripe/utils.d.ts +0 -63
- package/backend/dist/cjs/backend/src/payments/stripe/utils.js +0 -118
- package/backend/dist/cjs/backend/src/payments/stripe/webhooks.d.ts +0 -105
- package/backend/dist/cjs/backend/src/payments/stripe/webhooks.js +0 -627
- package/backend/dist/cjs/backend/src/plugins/browser.d.ts +0 -1
- package/backend/dist/cjs/backend/src/plugins/browser.js +0 -15
- package/backend/dist/cjs/backend/src/plugins/communication.d.ts +0 -70
- package/backend/dist/cjs/backend/src/plugins/communication.js +0 -196
- package/backend/dist/cjs/backend/src/plugins/mail/mail.d.ts +0 -255
- package/backend/dist/cjs/backend/src/plugins/mail/mail.js +0 -381
- package/backend/dist/cjs/backend/src/plugins/mail/ui.d.ts +0 -297
- package/backend/dist/cjs/backend/src/plugins/mail/ui.js +0 -1370
- package/backend/dist/cjs/backend/src/plugins/pdf.d.ts +0 -1
- package/backend/dist/cjs/backend/src/plugins/pdf.js +0 -1456
- package/backend/dist/cjs/backend/src/plugins/thread_monitor.d.ts +0 -18
- package/backend/dist/cjs/backend/src/plugins/thread_monitor.js +0 -116
- package/backend/dist/cjs/backend/src/rate_limit.d.ts +0 -148
- package/backend/dist/cjs/backend/src/rate_limit.js +0 -543
- package/backend/dist/cjs/backend/src/route.d.ts +0 -39
- package/backend/dist/cjs/backend/src/route.js +0 -172
- package/backend/dist/cjs/backend/src/server.d.ts +0 -502
- package/backend/dist/cjs/backend/src/server.js +0 -1713
- package/backend/dist/cjs/backend/src/server.old.d.ts +0 -594
- package/backend/dist/cjs/backend/src/server.old.js +0 -2058
- package/backend/dist/cjs/backend/src/splash_screen.d.ts +0 -93
- package/backend/dist/cjs/backend/src/splash_screen.js +0 -119
- package/backend/dist/cjs/backend/src/status.d.ts +0 -89
- package/backend/dist/cjs/backend/src/status.js +0 -211
- package/backend/dist/cjs/backend/src/stream.d.ts +0 -494
- package/backend/dist/cjs/backend/src/stream.js +0 -1370
- package/backend/dist/cjs/backend/src/users.d.ts +0 -926
- package/backend/dist/cjs/backend/src/users.js +0 -2223
- package/backend/dist/cjs/backend/src/utils.d.ts +0 -22
- package/backend/dist/cjs/backend/src/utils.js +0 -626
- package/backend/dist/cjs/backend/src/view.d.ts +0 -115
- package/backend/dist/cjs/backend/src/view.js +0 -519
- package/backend/dist/cjs/backend/src/vinc.d.ts +0 -6
- package/backend/dist/cjs/backend/src/vinc.js +0 -40
- package/backend/dist/cjs/backend/src/volt.d.ts +0 -24
- package/backend/dist/cjs/backend/src/volt.js +0 -72
- package/backend/dist/cjs/frontend/src/modules/request.d.ts +0 -70
- package/backend/dist/cjs/frontend/src/modules/request.js +0 -99
- package/backend/dist/cjs/package.json +0 -1
- package/backend/dist/esm/backend/src/blacklist.d.ts +0 -12
- package/backend/dist/esm/backend/src/blacklist.js +0 -52
- package/backend/dist/esm/backend/src/cli.d.ts +0 -2
- package/backend/dist/esm/backend/src/cli.js +0 -211
- package/backend/dist/esm/backend/src/database/collection.d.ts +0 -1765
- package/backend/dist/esm/backend/src/database/collection.js +0 -3779
- package/backend/dist/esm/backend/src/database/database.d.ts +0 -92
- package/backend/dist/esm/backend/src/database/database.js +0 -214
- package/backend/dist/esm/backend/src/database/document.d.ts +0 -1
- package/backend/dist/esm/backend/src/database/document.js +0 -558
- package/backend/dist/esm/backend/src/database/filters/filters.d.ts +0 -6
- package/backend/dist/esm/backend/src/database/filters/filters.js +0 -1
- package/backend/dist/esm/backend/src/database/filters/strict_filter.d.ts +0 -223
- package/backend/dist/esm/backend/src/database/filters/strict_filter.js +0 -3
- package/backend/dist/esm/backend/src/database/filters/strict_filter_test.d.ts +0 -1
- package/backend/dist/esm/backend/src/database/filters/strict_filter_test.js +0 -505
- package/backend/dist/esm/backend/src/database/filters/strict_filter_test_v0.d.ts +0 -1
- package/backend/dist/esm/backend/src/database/filters/strict_filter_test_v0.js +0 -712
- package/backend/dist/esm/backend/src/database/filters/strict_filter_v0.d.ts +0 -50
- package/backend/dist/esm/backend/src/database/filters/strict_filter_v0.js +0 -5
- package/backend/dist/esm/backend/src/database/filters/strict_filter_v1.d.ts +0 -76
- package/backend/dist/esm/backend/src/database/filters/strict_filter_v1.js +0 -44
- package/backend/dist/esm/backend/src/database/filters/strict_filter_v2.d.ts +0 -75
- package/backend/dist/esm/backend/src/database/filters/strict_filter_v2.js +0 -5
- package/backend/dist/esm/backend/src/database/filters/strict_filter_v3.d.ts +0 -219
- package/backend/dist/esm/backend/src/database/filters/strict_filter_v3.js +0 -1
- package/backend/dist/esm/backend/src/database/filters/strict_update_filter.d.ts +0 -165
- package/backend/dist/esm/backend/src/database/filters/strict_update_filter.js +0 -5
- package/backend/dist/esm/backend/src/database/filters/strict_update_filter_test.d.ts +0 -5
- package/backend/dist/esm/backend/src/database/filters/strict_update_filter_test.js +0 -415
- package/backend/dist/esm/backend/src/database/flatten.d.ts +0 -78
- package/backend/dist/esm/backend/src/database/flatten.js +0 -22
- package/backend/dist/esm/backend/src/database/flatten_test.d.ts +0 -1
- package/backend/dist/esm/backend/src/database/flatten_test.js +0 -174
- package/backend/dist/esm/backend/src/database/quota/quoata_v2.d.ts +0 -533
- package/backend/dist/esm/backend/src/database/quota/quoata_v2.js +0 -1155
- package/backend/dist/esm/backend/src/database/quota/quota.d.ts +0 -551
- package/backend/dist/esm/backend/src/database/quota/quota.js +0 -1219
- package/backend/dist/esm/backend/src/database/quota/quota_v1.d.ts +0 -534
- package/backend/dist/esm/backend/src/database/quota/quota_v1.js +0 -1242
- package/backend/dist/esm/backend/src/database/quota/safe_int.d.ts +0 -412
- package/backend/dist/esm/backend/src/database/quota/safe_int.js +0 -810
- package/backend/dist/esm/backend/src/endpoint.d.ts +0 -346
- package/backend/dist/esm/backend/src/endpoint.js +0 -479
- package/backend/dist/esm/backend/src/errors/index.d.ts +0 -7
- package/backend/dist/esm/backend/src/errors/index.js +0 -7
- package/backend/dist/esm/backend/src/errors/internal_external.d.ts +0 -52
- package/backend/dist/esm/backend/src/errors/internal_external.js +0 -86
- package/backend/dist/esm/backend/src/errors/invalid_usage_error.d.ts +0 -41
- package/backend/dist/esm/backend/src/errors/invalid_usage_error.js +0 -33
- package/backend/dist/esm/backend/src/errors/system_error.d.ts +0 -261
- package/backend/dist/esm/backend/src/errors/system_error.js +0 -444
- package/backend/dist/esm/backend/src/events.d.ts +0 -97
- package/backend/dist/esm/backend/src/events.js +0 -5
- package/backend/dist/esm/backend/src/frontend.d.ts +0 -11
- package/backend/dist/esm/backend/src/frontend.js +0 -12
- package/backend/dist/esm/backend/src/image_endpoint.d.ts +0 -44
- package/backend/dist/esm/backend/src/image_endpoint.js +0 -196
- package/backend/dist/esm/backend/src/index.d.ts +0 -23
- package/backend/dist/esm/backend/src/index.js +0 -26
- package/backend/dist/esm/backend/src/logger.d.ts +0 -5
- package/backend/dist/esm/backend/src/logger.js +0 -8
- package/backend/dist/esm/backend/src/meta.d.ts +0 -112
- package/backend/dist/esm/backend/src/meta.js +0 -152
- package/backend/dist/esm/backend/src/payments/paddle.d.ts +0 -329
- package/backend/dist/esm/backend/src/payments/paddle.js +0 -2276
- package/backend/dist/esm/backend/src/payments/stripe/checkout.d.ts +0 -113
- package/backend/dist/esm/backend/src/payments/stripe/checkout.js +0 -356
- package/backend/dist/esm/backend/src/payments/stripe/customers.d.ts +0 -17
- package/backend/dist/esm/backend/src/payments/stripe/customers.js +0 -193
- package/backend/dist/esm/backend/src/payments/stripe/error.d.ts +0 -74
- package/backend/dist/esm/backend/src/payments/stripe/error.js +0 -51
- package/backend/dist/esm/backend/src/payments/stripe/events.d.ts +0 -155
- package/backend/dist/esm/backend/src/payments/stripe/events.js +0 -5
- package/backend/dist/esm/backend/src/payments/stripe/meters.d.ts +0 -105
- package/backend/dist/esm/backend/src/payments/stripe/meters.js +0 -318
- package/backend/dist/esm/backend/src/payments/stripe/payment_methods.d.ts +0 -58
- package/backend/dist/esm/backend/src/payments/stripe/payment_methods.js +0 -135
- package/backend/dist/esm/backend/src/payments/stripe/products.d.ts +0 -519
- package/backend/dist/esm/backend/src/payments/stripe/products.js +0 -896
- package/backend/dist/esm/backend/src/payments/stripe/stripe.d.ts +0 -215
- package/backend/dist/esm/backend/src/payments/stripe/stripe.js +0 -464
- package/backend/dist/esm/backend/src/payments/stripe/subscriptions.d.ts +0 -172
- package/backend/dist/esm/backend/src/payments/stripe/subscriptions.js +0 -754
- package/backend/dist/esm/backend/src/payments/stripe/utils.d.ts +0 -63
- package/backend/dist/esm/backend/src/payments/stripe/utils.js +0 -131
- package/backend/dist/esm/backend/src/payments/stripe/webhooks.d.ts +0 -105
- package/backend/dist/esm/backend/src/payments/stripe/webhooks.js +0 -752
- package/backend/dist/esm/backend/src/plugins/browser.d.ts +0 -1
- package/backend/dist/esm/backend/src/plugins/browser.js +0 -170
- package/backend/dist/esm/backend/src/plugins/communication.d.ts +0 -70
- package/backend/dist/esm/backend/src/plugins/communication.js +0 -169
- package/backend/dist/esm/backend/src/plugins/mail/mail.d.ts +0 -255
- package/backend/dist/esm/backend/src/plugins/mail/mail.js +0 -396
- package/backend/dist/esm/backend/src/plugins/mail/ui.d.ts +0 -297
- package/backend/dist/esm/backend/src/plugins/mail/ui.js +0 -1400
- package/backend/dist/esm/backend/src/plugins/pdf.d.ts +0 -1
- package/backend/dist/esm/backend/src/plugins/pdf.js +0 -1694
- package/backend/dist/esm/backend/src/plugins/thread_monitor.d.ts +0 -18
- package/backend/dist/esm/backend/src/plugins/thread_monitor.js +0 -120
- package/backend/dist/esm/backend/src/rate_limit.d.ts +0 -148
- package/backend/dist/esm/backend/src/rate_limit.js +0 -667
- package/backend/dist/esm/backend/src/route.d.ts +0 -39
- package/backend/dist/esm/backend/src/route.js +0 -222
- package/backend/dist/esm/backend/src/server.d.ts +0 -502
- package/backend/dist/esm/backend/src/server.js +0 -2034
- package/backend/dist/esm/backend/src/server.old.d.ts +0 -594
- package/backend/dist/esm/backend/src/server.old.js +0 -2630
- package/backend/dist/esm/backend/src/splash_screen.d.ts +0 -93
- package/backend/dist/esm/backend/src/splash_screen.js +0 -156
- package/backend/dist/esm/backend/src/status.d.ts +0 -89
- package/backend/dist/esm/backend/src/status.js +0 -213
- package/backend/dist/esm/backend/src/stream.d.ts +0 -494
- package/backend/dist/esm/backend/src/stream.js +0 -1611
- package/backend/dist/esm/backend/src/users.d.ts +0 -926
- package/backend/dist/esm/backend/src/users.js +0 -2423
- package/backend/dist/esm/backend/src/utils.d.ts +0 -22
- package/backend/dist/esm/backend/src/utils.js +0 -463
- package/backend/dist/esm/backend/src/view.d.ts +0 -115
- package/backend/dist/esm/backend/src/view.js +0 -584
- package/backend/dist/esm/backend/src/vinc.d.ts +0 -6
- package/backend/dist/esm/backend/src/vinc.js +0 -6
- package/backend/dist/esm/backend/src/volt.d.ts +0 -24
- package/backend/dist/esm/backend/src/volt.js +0 -27
- package/backend/dist/esm/frontend/src/modules/request.d.ts +0 -70
- package/backend/dist/esm/frontend/src/modules/request.js +0 -117
- package/backend/old/file_watcher.ts +0 -359
- package/backend/old/request.deprc.js +0 -626
- package/backend/old/response.deprc.js +0 -354
- package/frontend/dist/backend/src/database/collection.d.ts +0 -1765
- package/frontend/dist/backend/src/database/collection.js +0 -3779
- package/frontend/dist/backend/src/database/database.d.ts +0 -92
- package/frontend/dist/backend/src/database/database.js +0 -214
- package/frontend/dist/backend/src/database/filters/filters.d.ts +0 -6
- package/frontend/dist/backend/src/database/filters/filters.js +0 -1
- package/frontend/dist/backend/src/database/filters/strict_filter.d.ts +0 -223
- package/frontend/dist/backend/src/database/filters/strict_filter.js +0 -3
- package/frontend/dist/backend/src/database/filters/strict_update_filter.d.ts +0 -165
- package/frontend/dist/backend/src/database/filters/strict_update_filter.js +0 -5
- package/frontend/dist/backend/src/database/flatten.d.ts +0 -78
- package/frontend/dist/backend/src/database/flatten.js +0 -22
- package/frontend/dist/backend/src/endpoint.d.ts +0 -346
- package/frontend/dist/backend/src/endpoint.js +0 -479
- package/frontend/dist/backend/src/errors/index.d.ts +0 -7
- package/frontend/dist/backend/src/errors/index.js +0 -7
- package/frontend/dist/backend/src/errors/internal_external.d.ts +0 -52
- package/frontend/dist/backend/src/errors/internal_external.js +0 -86
- package/frontend/dist/backend/src/errors/invalid_usage_error.d.ts +0 -41
- package/frontend/dist/backend/src/errors/invalid_usage_error.js +0 -33
- package/frontend/dist/backend/src/errors/system_error.d.ts +0 -261
- package/frontend/dist/backend/src/errors/system_error.js +0 -444
- package/frontend/dist/backend/src/events.d.ts +0 -97
- package/frontend/dist/backend/src/events.js +0 -5
- package/frontend/dist/backend/src/frontend.d.ts +0 -11
- package/frontend/dist/backend/src/frontend.js +0 -12
- package/frontend/dist/backend/src/image_endpoint.d.ts +0 -44
- package/frontend/dist/backend/src/image_endpoint.js +0 -196
- package/frontend/dist/backend/src/meta.d.ts +0 -112
- package/frontend/dist/backend/src/meta.js +0 -152
- package/frontend/dist/backend/src/payments/paddle.d.ts +0 -329
- package/frontend/dist/backend/src/payments/paddle.js +0 -2276
- package/frontend/dist/backend/src/payments/stripe/checkout.d.ts +0 -113
- package/frontend/dist/backend/src/payments/stripe/checkout.js +0 -356
- package/frontend/dist/backend/src/payments/stripe/customers.d.ts +0 -17
- package/frontend/dist/backend/src/payments/stripe/customers.js +0 -193
- package/frontend/dist/backend/src/payments/stripe/error.d.ts +0 -74
- package/frontend/dist/backend/src/payments/stripe/error.js +0 -51
- package/frontend/dist/backend/src/payments/stripe/events.d.ts +0 -155
- package/frontend/dist/backend/src/payments/stripe/events.js +0 -5
- package/frontend/dist/backend/src/payments/stripe/meters.d.ts +0 -105
- package/frontend/dist/backend/src/payments/stripe/meters.js +0 -318
- package/frontend/dist/backend/src/payments/stripe/payment_methods.d.ts +0 -58
- package/frontend/dist/backend/src/payments/stripe/payment_methods.js +0 -135
- package/frontend/dist/backend/src/payments/stripe/products.d.ts +0 -519
- package/frontend/dist/backend/src/payments/stripe/products.js +0 -896
- package/frontend/dist/backend/src/payments/stripe/stripe.d.ts +0 -215
- package/frontend/dist/backend/src/payments/stripe/stripe.js +0 -464
- package/frontend/dist/backend/src/payments/stripe/subscriptions.d.ts +0 -172
- package/frontend/dist/backend/src/payments/stripe/subscriptions.js +0 -754
- package/frontend/dist/backend/src/payments/stripe/utils.d.ts +0 -63
- package/frontend/dist/backend/src/payments/stripe/utils.js +0 -131
- package/frontend/dist/backend/src/payments/stripe/webhooks.d.ts +0 -105
- package/frontend/dist/backend/src/payments/stripe/webhooks.js +0 -752
- package/frontend/dist/backend/src/plugins/mail/mail.d.ts +0 -255
- package/frontend/dist/backend/src/plugins/mail/mail.js +0 -396
- package/frontend/dist/backend/src/plugins/mail/ui.d.ts +0 -297
- package/frontend/dist/backend/src/plugins/mail/ui.js +0 -1400
- package/frontend/dist/backend/src/rate_limit.d.ts +0 -148
- package/frontend/dist/backend/src/rate_limit.js +0 -667
- package/frontend/dist/backend/src/route.d.ts +0 -39
- package/frontend/dist/backend/src/route.js +0 -222
- package/frontend/dist/backend/src/server.d.ts +0 -502
- package/frontend/dist/backend/src/server.js +0 -2034
- package/frontend/dist/backend/src/splash_screen.d.ts +0 -93
- package/frontend/dist/backend/src/splash_screen.js +0 -156
- package/frontend/dist/backend/src/status.d.ts +0 -89
- package/frontend/dist/backend/src/status.js +0 -213
- package/frontend/dist/backend/src/stream.d.ts +0 -494
- package/frontend/dist/backend/src/stream.js +0 -1611
- package/frontend/dist/backend/src/users.d.ts +0 -926
- package/frontend/dist/backend/src/users.js +0 -2423
- package/frontend/dist/backend/src/utils.d.ts +0 -22
- package/frontend/dist/backend/src/utils.js +0 -463
- package/frontend/dist/backend/src/view.d.ts +0 -115
- package/frontend/dist/backend/src/view.js +0 -584
- package/frontend/dist/frontend/src/elements/base.d.ts +0 -3743
- package/frontend/dist/frontend/src/elements/base.js +0 -12151
- package/frontend/dist/frontend/src/elements/module.d.ts +0 -95
- package/frontend/dist/frontend/src/elements/module.js +0 -216
- package/frontend/dist/frontend/src/elements/register_element.d.ts +0 -3
- package/frontend/dist/frontend/src/elements/register_element.js +0 -22
- package/frontend/dist/frontend/src/elements/resize_query_manager.d.ts +0 -0
- package/frontend/dist/frontend/src/elements/resize_query_manager.js +0 -150
- package/frontend/dist/frontend/src/elements/types.d.ts +0 -52
- package/frontend/dist/frontend/src/elements/types.js +0 -5
- package/frontend/dist/frontend/src/index.d.ts +0 -21
- package/frontend/dist/frontend/src/index.js +0 -29
- package/frontend/dist/frontend/src/modules/attachment.d.ts +0 -126
- package/frontend/dist/frontend/src/modules/attachment.js +0 -306
- package/frontend/dist/frontend/src/modules/auth.d.ts +0 -44
- package/frontend/dist/frontend/src/modules/auth.js +0 -80
- package/frontend/dist/frontend/src/modules/color.d.ts +0 -160
- package/frontend/dist/frontend/src/modules/color.js +0 -316
- package/frontend/dist/frontend/src/modules/compression.d.ts +0 -39
- package/frontend/dist/frontend/src/modules/compression.js +0 -102
- package/frontend/dist/frontend/src/modules/cookies.d.ts +0 -44
- package/frontend/dist/frontend/src/modules/cookies.js +0 -143
- package/frontend/dist/frontend/src/modules/events.d.ts +0 -31
- package/frontend/dist/frontend/src/modules/events.js +0 -79
- package/frontend/dist/frontend/src/modules/google.d.ts +0 -23
- package/frontend/dist/frontend/src/modules/google.js +0 -52
- package/frontend/dist/frontend/src/modules/meta.d.ts +0 -14
- package/frontend/dist/frontend/src/modules/meta.js +0 -48
- package/frontend/dist/frontend/src/modules/paddle.d.ts +0 -1207
- package/frontend/dist/frontend/src/modules/paddle.js +0 -2594
- package/frontend/dist/frontend/src/modules/request.d.ts +0 -70
- package/frontend/dist/frontend/src/modules/request.js +0 -117
- package/frontend/dist/frontend/src/modules/settings.d.ts +0 -3
- package/frontend/dist/frontend/src/modules/settings.js +0 -5
- package/frontend/dist/frontend/src/modules/statics.d.ts +0 -21
- package/frontend/dist/frontend/src/modules/statics.js +0 -43
- package/frontend/dist/frontend/src/modules/stripe/cart.d.ts +0 -112
- package/frontend/dist/frontend/src/modules/stripe/cart.js +0 -321
- package/frontend/dist/frontend/src/modules/stripe/checkout.d.ts +0 -7
- package/frontend/dist/frontend/src/modules/stripe/checkout.js +0 -37
- package/frontend/dist/frontend/src/modules/stripe/index.m.d.ts +0 -6
- package/frontend/dist/frontend/src/modules/stripe/index.m.js +0 -6
- package/frontend/dist/frontend/src/modules/stripe/payments.d.ts +0 -58
- package/frontend/dist/frontend/src/modules/stripe/payments.js +0 -92
- package/frontend/dist/frontend/src/modules/support.d.ts +0 -30
- package/frontend/dist/frontend/src/modules/support.js +0 -53
- package/frontend/dist/frontend/src/modules/theme.d.ts +0 -133
- package/frontend/dist/frontend/src/modules/theme.js +0 -406
- package/frontend/dist/frontend/src/modules/themes.d.ts +0 -12
- package/frontend/dist/frontend/src/modules/themes.js +0 -22
- package/frontend/dist/frontend/src/modules/user.d.ts +0 -164
- package/frontend/dist/frontend/src/modules/user.js +0 -270
- package/frontend/dist/frontend/src/modules/utils.d.ts +0 -176
- package/frontend/dist/frontend/src/modules/utils.js +0 -569
- package/frontend/dist/frontend/src/types/gradient.d.ts +0 -29
- package/frontend/dist/frontend/src/types/gradient.js +0 -79
- package/frontend/dist/frontend/src/ui/border_button.d.ts +0 -94
- package/frontend/dist/frontend/src/ui/border_button.js +0 -228
- package/frontend/dist/frontend/src/ui/button.d.ts +0 -241
- package/frontend/dist/frontend/src/ui/button.js +0 -682
- package/frontend/dist/frontend/src/ui/canvas.d.ts +0 -138
- package/frontend/dist/frontend/src/ui/canvas.js +0 -444
- package/frontend/dist/frontend/src/ui/checkbox.d.ts +0 -74
- package/frontend/dist/frontend/src/ui/checkbox.js +0 -321
- package/frontend/dist/frontend/src/ui/code.d.ts +0 -235
- package/frontend/dist/frontend/src/ui/code.js +0 -1007
- package/frontend/dist/frontend/src/ui/context_menu.d.ts +0 -36
- package/frontend/dist/frontend/src/ui/context_menu.js +0 -205
- package/frontend/dist/frontend/src/ui/css.d.ts +0 -16
- package/frontend/dist/frontend/src/ui/css.js +0 -48
- package/frontend/dist/frontend/src/ui/divider.d.ts +0 -15
- package/frontend/dist/frontend/src/ui/divider.js +0 -78
- package/frontend/dist/frontend/src/ui/dropdown.d.ts +0 -176
- package/frontend/dist/frontend/src/ui/dropdown.js +0 -481
- package/frontend/dist/frontend/src/ui/for_each.d.ts +0 -37
- package/frontend/dist/frontend/src/ui/for_each.js +0 -92
- package/frontend/dist/frontend/src/ui/form.d.ts +0 -34
- package/frontend/dist/frontend/src/ui/form.js +0 -233
- package/frontend/dist/frontend/src/ui/frame_modes.d.ts +0 -37
- package/frontend/dist/frontend/src/ui/frame_modes.js +0 -108
- package/frontend/dist/frontend/src/ui/google_map.d.ts +0 -24
- package/frontend/dist/frontend/src/ui/google_map.js +0 -106
- package/frontend/dist/frontend/src/ui/gradient.d.ts +0 -25
- package/frontend/dist/frontend/src/ui/gradient.js +0 -131
- package/frontend/dist/frontend/src/ui/image.d.ts +0 -111
- package/frontend/dist/frontend/src/ui/image.js +0 -576
- package/frontend/dist/frontend/src/ui/input.d.ts +0 -392
- package/frontend/dist/frontend/src/ui/input.js +0 -1201
- package/frontend/dist/frontend/src/ui/link.d.ts +0 -25
- package/frontend/dist/frontend/src/ui/link.js +0 -140
- package/frontend/dist/frontend/src/ui/list.d.ts +0 -37
- package/frontend/dist/frontend/src/ui/list.js +0 -170
- package/frontend/dist/frontend/src/ui/loader_button.d.ts +0 -80
- package/frontend/dist/frontend/src/ui/loader_button.js +0 -193
- package/frontend/dist/frontend/src/ui/loaders.d.ts +0 -57
- package/frontend/dist/frontend/src/ui/loaders.js +0 -157
- package/frontend/dist/frontend/src/ui/popup.d.ts +0 -94
- package/frontend/dist/frontend/src/ui/popup.js +0 -510
- package/frontend/dist/frontend/src/ui/pseudo.d.ts +0 -44
- package/frontend/dist/frontend/src/ui/pseudo.js +0 -154
- package/frontend/dist/frontend/src/ui/scroller.d.ts +0 -105
- package/frontend/dist/frontend/src/ui/scroller.js +0 -1253
- package/frontend/dist/frontend/src/ui/slider.d.ts +0 -45
- package/frontend/dist/frontend/src/ui/slider.js +0 -217
- package/frontend/dist/frontend/src/ui/spacer.d.ts +0 -15
- package/frontend/dist/frontend/src/ui/spacer.js +0 -78
- package/frontend/dist/frontend/src/ui/span.d.ts +0 -15
- package/frontend/dist/frontend/src/ui/span.js +0 -73
- package/frontend/dist/frontend/src/ui/stack.d.ts +0 -66
- package/frontend/dist/frontend/src/ui/stack.js +0 -335
- package/frontend/dist/frontend/src/ui/steps.d.ts +0 -131
- package/frontend/dist/frontend/src/ui/steps.js +0 -308
- package/frontend/dist/frontend/src/ui/style.d.ts +0 -17
- package/frontend/dist/frontend/src/ui/style.js +0 -73
- package/frontend/dist/frontend/src/ui/switch.d.ts +0 -69
- package/frontend/dist/frontend/src/ui/switch.js +0 -357
- package/frontend/dist/frontend/src/ui/table.d.ts +0 -100
- package/frontend/dist/frontend/src/ui/table.js +0 -405
- package/frontend/dist/frontend/src/ui/tabs.d.ts +0 -111
- package/frontend/dist/frontend/src/ui/tabs.js +0 -424
- package/frontend/dist/frontend/src/ui/text.d.ts +0 -15
- package/frontend/dist/frontend/src/ui/text.js +0 -83
- package/frontend/dist/frontend/src/ui/title.d.ts +0 -91
- package/frontend/dist/frontend/src/ui/title.js +0 -272
- package/frontend/dist/frontend/src/ui/ui.d.ts +0 -35
- package/frontend/dist/frontend/src/ui/ui.js +0 -38
- package/frontend/dist/frontend/src/ui/view.d.ts +0 -15
- package/frontend/dist/frontend/src/ui/view.js +0 -88
- package/frontend/dist/frontend/src/volt.d.ts +0 -20
- package/frontend/dist/frontend/src/volt.js +0 -27
- package/frontend/examples/theme/theme.ts +0 -58
- package/frontend/tools/bundle_d_ts.js +0 -71
- package/frontend/tools/convert_to_jsdoc_input.txt +0 -9452
- package/frontend/tools/convert_to_jsdoc_output.txt +0 -7626
- package/frontend/tools/convert_to_jsdoc_tmp.js +0 -345
- package/frontend/tools/scan_mixed_imports.js +0 -69
- /package/frontend/{dist/frontend/src/css → css}/adyen.css +0 -0
- /package/frontend/{dist/frontend/src/css → css}/volt.css +0 -0
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author Daan van den Bergh
|
|
3
|
-
* @copyright © 2022 - 2025 Daan van den Bergh. All rights reserved
|
|
4
|
-
*/
|
|
5
|
-
import type { User as UserBackend, Users as UsersBackend } from "../../../backend/src/users.js";
|
|
6
|
-
import { Request } from "./request.js";
|
|
7
|
-
export declare namespace User {
|
|
8
|
-
/**
|
|
9
|
-
* Frontend user object as exposed by the backend.
|
|
10
|
-
*/
|
|
11
|
-
type UserObject = UserBackend.Frontend;
|
|
12
|
-
/**
|
|
13
|
-
* Get the user ID of the authenticated user.
|
|
14
|
-
* @nav Frontend/User
|
|
15
|
-
* @type undefined, string
|
|
16
|
-
* @return Returns the user ID when the user is authenticated and `undefined` when the user is not authenticated.
|
|
17
|
-
* @docs
|
|
18
|
-
*/
|
|
19
|
-
function uid(): string | undefined;
|
|
20
|
-
/**
|
|
21
|
-
* Get the username of the authenticated user.
|
|
22
|
-
* @nav Frontend/User
|
|
23
|
-
* @type undefined, string
|
|
24
|
-
* @return Returns the user's username when the user is authenticated and `undefined` when the user is not authenticated.
|
|
25
|
-
* @docs
|
|
26
|
-
*/
|
|
27
|
-
function username(): string | undefined;
|
|
28
|
-
/**
|
|
29
|
-
* Get the email of the authenticated user.
|
|
30
|
-
* @nav Frontend/User
|
|
31
|
-
* @type undefined, string
|
|
32
|
-
* @return Returns the user's email when the user is authenticated and `undefined` when the user is not authenticated.
|
|
33
|
-
* @docs
|
|
34
|
-
*/
|
|
35
|
-
function email(): string | undefined;
|
|
36
|
-
/**
|
|
37
|
-
* Get the first name of the authenticated user.
|
|
38
|
-
* @nav Frontend/User
|
|
39
|
-
* @type undefined, string
|
|
40
|
-
* @return Returns the user's first name when the user is authenticated and `undefined` when the user is not authenticated.
|
|
41
|
-
* @docs
|
|
42
|
-
*/
|
|
43
|
-
function first_name(): string | undefined;
|
|
44
|
-
/**
|
|
45
|
-
* Get the last name of the authenticated user.
|
|
46
|
-
* @nav Frontend/User
|
|
47
|
-
* @type undefined, string
|
|
48
|
-
* @return Returns the user's last name when the user is authenticated and `undefined` when the user is not authenticated.
|
|
49
|
-
* @docs
|
|
50
|
-
*/
|
|
51
|
-
function last_name(): string | undefined;
|
|
52
|
-
/**
|
|
53
|
-
* Check if the current user is authenticated.
|
|
54
|
-
* @nav Frontend/User
|
|
55
|
-
* @type boolean
|
|
56
|
-
* @return Returns a boolean indicating whether the current user is authenticated.
|
|
57
|
-
* @docs
|
|
58
|
-
*/
|
|
59
|
-
function is_authenticated(): boolean;
|
|
60
|
-
/**
|
|
61
|
-
* Check if the current user is activated.
|
|
62
|
-
* @nav Frontend/User
|
|
63
|
-
* @type boolean
|
|
64
|
-
* @return Returns a boolean indicating whether the current user is activated.
|
|
65
|
-
* @docs
|
|
66
|
-
*/
|
|
67
|
-
function is_activated(): boolean;
|
|
68
|
-
/**
|
|
69
|
-
* Get the authenticated user object.
|
|
70
|
-
* @nav Frontend/User
|
|
71
|
-
* @type Promise
|
|
72
|
-
* @return Returns a promise with the authenticated user's object or a request error on a failed request.
|
|
73
|
-
* @docs
|
|
74
|
-
*/
|
|
75
|
-
function get(): Request.ResultPromiseFromInfo<UsersBackend.Endpoints.GetUser>;
|
|
76
|
-
/**
|
|
77
|
-
* Update the authenticated user object.
|
|
78
|
-
* @nav Frontend/User
|
|
79
|
-
* @type Promise
|
|
80
|
-
* @return Returns a promise with a successful update response or a request error on a failed request.
|
|
81
|
-
* @docs
|
|
82
|
-
*/
|
|
83
|
-
function update(payload: UsersBackend.Endpoints.UpdateUser["payload"]): Request.ResultPromiseFromInfo<UsersBackend.Endpoints.UpdateUser>;
|
|
84
|
-
/**
|
|
85
|
-
* Activate the authenticated user.
|
|
86
|
-
* @nav Frontend/User
|
|
87
|
-
* @type Promise
|
|
88
|
-
* @return Returns a promise with a successful update response or a request error on a failed request.
|
|
89
|
-
* @docs
|
|
90
|
-
*/
|
|
91
|
-
function activate(payload: UsersBackend.Endpoints.ActivateUser["payload"]): Request.ResultPromiseFromInfo<UsersBackend.Endpoints.ActivateUser>;
|
|
92
|
-
/**
|
|
93
|
-
* Change the password of the authenticated user.
|
|
94
|
-
* @nav Frontend/User
|
|
95
|
-
* @type Promise
|
|
96
|
-
* @return Returns a promise with a successful update response or a request error on a failed request.
|
|
97
|
-
* @docs
|
|
98
|
-
*/
|
|
99
|
-
function change_password(payload: UsersBackend.Endpoints.ChangePassword["payload"]): Request.ResultPromiseFromInfo<UsersBackend.Endpoints.ChangePassword>;
|
|
100
|
-
/**
|
|
101
|
-
* Delete the user account.
|
|
102
|
-
* @nav Frontend/User
|
|
103
|
-
* @type Promise
|
|
104
|
-
* @return Returns a promise with a successful update response or a request error on a failed request.
|
|
105
|
-
* @docs
|
|
106
|
-
*/
|
|
107
|
-
function delete_account(): Request.ResultPromiseFromInfo<UsersBackend.Endpoints.DeleteUser>;
|
|
108
|
-
/**
|
|
109
|
-
* Generate a new API key for the authenticated user.
|
|
110
|
-
* @nav Frontend/User
|
|
111
|
-
* @type Promise
|
|
112
|
-
* @return Returns a promise with a successful update response with the newly generated API key as an attribute or a request error on a failed request.
|
|
113
|
-
* @docs
|
|
114
|
-
*/
|
|
115
|
-
function generate_api_key(): Request.ResultPromiseFromInfo<UsersBackend.Endpoints.GenerateAPIKey>;
|
|
116
|
-
/**
|
|
117
|
-
* Generate a new API key for the authenticated user.
|
|
118
|
-
* @nav Frontend/User
|
|
119
|
-
* @docs
|
|
120
|
-
*/
|
|
121
|
-
function has_api_key(): Request.ResultPromiseFromInfo<UsersBackend.Endpoints.HasAPIKey>;
|
|
122
|
-
/**
|
|
123
|
-
* Revoke the API key of the authenticated user.
|
|
124
|
-
* @nav Frontend/User
|
|
125
|
-
* @type Promise
|
|
126
|
-
* @return Returns a promise with a successful update response or a request error on a failed request.
|
|
127
|
-
* @docs
|
|
128
|
-
*/
|
|
129
|
-
function revoke_api_key(): Request.ResultPromiseFromInfo<UsersBackend.Endpoints.RevokeAPIKey>;
|
|
130
|
-
/**
|
|
131
|
-
* Load data from the authenticated user's database.
|
|
132
|
-
* @nav Frontend/User
|
|
133
|
-
* @type Promise
|
|
134
|
-
* @return Returns a promise with the loaded user's data or a request error on a failed request.
|
|
135
|
-
* When the document is not found, an error response with status `404` and type `document_not_found` will be returned,
|
|
136
|
-
* unless a `default` value is provided in the request payload. In that case, the default value will be inserted
|
|
137
|
-
* @docs
|
|
138
|
-
*/
|
|
139
|
-
function load_data(payload: UsersBackend.Endpoints.LoadUserData["payload"]): Request.ResultPromiseFromInfo<UsersBackend.Endpoints.LoadUserData>;
|
|
140
|
-
/**
|
|
141
|
-
* Set data to the authenticated user's database, only updating the supplied fields.
|
|
142
|
-
* @nav Frontend/User
|
|
143
|
-
* @type Promise
|
|
144
|
-
* @return Returns a promise with a successful update response or a request error on a failed request.
|
|
145
|
-
* @docs
|
|
146
|
-
*/
|
|
147
|
-
function set_data(payload: UsersBackend.Endpoints.SetUserData["payload"]): Request.ResultPromiseFromInfo<UsersBackend.Endpoints.SetUserData>;
|
|
148
|
-
/**
|
|
149
|
-
* Delete public user data.
|
|
150
|
-
* @nav Frontend/User
|
|
151
|
-
*/
|
|
152
|
-
function delete_data(payload: UsersBackend.Endpoints.DeleteUserData["payload"]): Request.ResultPromiseFromInfo<UsersBackend.Endpoints.DeleteUserData>;
|
|
153
|
-
/**
|
|
154
|
-
* Load protected data from the authenticated user's database.
|
|
155
|
-
* @nav Frontend/User
|
|
156
|
-
* @type Promise
|
|
157
|
-
* @return Returns a promise with the loaded user's data or a request error on a failed request.
|
|
158
|
-
* When the document is not found, an error response with status `404` and type `document_not_found` will be returned,
|
|
159
|
-
* unless a `default` value is provided in the request payload. In that case, the default value will be inserted
|
|
160
|
-
* @docs
|
|
161
|
-
*/
|
|
162
|
-
function load_protected_data(payload: UsersBackend.Endpoints.LoadProtectedUserData["payload"]): Request.ResultPromiseFromInfo<UsersBackend.Endpoints.LoadProtectedUserData>;
|
|
163
|
-
}
|
|
164
|
-
export { User as user };
|
|
@@ -1,270 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author Daan van den Bergh
|
|
3
|
-
* @copyright © 2022 - 2025 Daan van den Bergh. All rights reserved
|
|
4
|
-
*/
|
|
5
|
-
// Imports.
|
|
6
|
-
import { Cookies } from "./cookies";
|
|
7
|
-
import { request } from "./request.js";
|
|
8
|
-
// User module.
|
|
9
|
-
export var User;
|
|
10
|
-
(function (User) {
|
|
11
|
-
/**
|
|
12
|
-
* Get the user ID of the authenticated user.
|
|
13
|
-
* @nav Frontend/User
|
|
14
|
-
* @type undefined, string
|
|
15
|
-
* @return Returns the user ID when the user is authenticated and `undefined` when the user is not authenticated.
|
|
16
|
-
* @docs
|
|
17
|
-
*/
|
|
18
|
-
function uid() {
|
|
19
|
-
const uid = Cookies.get("UserID");
|
|
20
|
-
return typeof uid !== "string" || uid == "-1" || uid === "" ? undefined : uid;
|
|
21
|
-
}
|
|
22
|
-
User.uid = uid;
|
|
23
|
-
/**
|
|
24
|
-
* Get the username of the authenticated user.
|
|
25
|
-
* @nav Frontend/User
|
|
26
|
-
* @type undefined, string
|
|
27
|
-
* @return Returns the user's username when the user is authenticated and `undefined` when the user is not authenticated.
|
|
28
|
-
* @docs
|
|
29
|
-
*/
|
|
30
|
-
function username() {
|
|
31
|
-
const username = Cookies.get("UserName");
|
|
32
|
-
return typeof username !== "string" || username === "" ? undefined : username;
|
|
33
|
-
}
|
|
34
|
-
User.username = username;
|
|
35
|
-
/**
|
|
36
|
-
* Get the email of the authenticated user.
|
|
37
|
-
* @nav Frontend/User
|
|
38
|
-
* @type undefined, string
|
|
39
|
-
* @return Returns the user's email when the user is authenticated and `undefined` when the user is not authenticated.
|
|
40
|
-
* @docs
|
|
41
|
-
*/
|
|
42
|
-
function email() {
|
|
43
|
-
const email = Cookies.get("UserEmail");
|
|
44
|
-
return typeof email !== "string" || email === "" ? undefined : email;
|
|
45
|
-
}
|
|
46
|
-
User.email = email;
|
|
47
|
-
/**
|
|
48
|
-
* Get the first name of the authenticated user.
|
|
49
|
-
* @nav Frontend/User
|
|
50
|
-
* @type undefined, string
|
|
51
|
-
* @return Returns the user's first name when the user is authenticated and `undefined` when the user is not authenticated.
|
|
52
|
-
* @docs
|
|
53
|
-
*/
|
|
54
|
-
function first_name() {
|
|
55
|
-
const first_name = Cookies.get("UserFirstName");
|
|
56
|
-
return typeof first_name !== "string" || first_name === "" ? undefined : first_name;
|
|
57
|
-
}
|
|
58
|
-
User.first_name = first_name;
|
|
59
|
-
/**
|
|
60
|
-
* Get the last name of the authenticated user.
|
|
61
|
-
* @nav Frontend/User
|
|
62
|
-
* @type undefined, string
|
|
63
|
-
* @return Returns the user's last name when the user is authenticated and `undefined` when the user is not authenticated.
|
|
64
|
-
* @docs
|
|
65
|
-
*/
|
|
66
|
-
function last_name() {
|
|
67
|
-
const last_name = Cookies.get("UserLastName");
|
|
68
|
-
return typeof last_name !== "string" || last_name === "" ? undefined : last_name;
|
|
69
|
-
}
|
|
70
|
-
User.last_name = last_name;
|
|
71
|
-
/**
|
|
72
|
-
* Check if the current user is authenticated.
|
|
73
|
-
* @nav Frontend/User
|
|
74
|
-
* @type boolean
|
|
75
|
-
* @return Returns a boolean indicating whether the current user is authenticated.
|
|
76
|
-
* @docs
|
|
77
|
-
*/
|
|
78
|
-
function is_authenticated() {
|
|
79
|
-
return User.uid() != undefined;
|
|
80
|
-
}
|
|
81
|
-
User.is_authenticated = is_authenticated;
|
|
82
|
-
/**
|
|
83
|
-
* Check if the current user is activated.
|
|
84
|
-
* @nav Frontend/User
|
|
85
|
-
* @type boolean
|
|
86
|
-
* @return Returns a boolean indicating whether the current user is activated.
|
|
87
|
-
* @docs
|
|
88
|
-
*/
|
|
89
|
-
function is_activated() {
|
|
90
|
-
const activated = Cookies.get("UserActivated");
|
|
91
|
-
return activated === "true" || activated === "1";
|
|
92
|
-
}
|
|
93
|
-
User.is_activated = is_activated;
|
|
94
|
-
/**
|
|
95
|
-
* Get the authenticated user object.
|
|
96
|
-
* @nav Frontend/User
|
|
97
|
-
* @type Promise
|
|
98
|
-
* @return Returns a promise with the authenticated user's object or a request error on a failed request.
|
|
99
|
-
* @docs
|
|
100
|
-
*/
|
|
101
|
-
async function get() {
|
|
102
|
-
return request({
|
|
103
|
-
method: "GET",
|
|
104
|
-
url: "/volt/api/v1/user",
|
|
105
|
-
});
|
|
106
|
-
}
|
|
107
|
-
User.get = get;
|
|
108
|
-
/**
|
|
109
|
-
* Update the authenticated user object.
|
|
110
|
-
* @nav Frontend/User
|
|
111
|
-
* @type Promise
|
|
112
|
-
* @return Returns a promise with a successful update response or a request error on a failed request.
|
|
113
|
-
* @docs
|
|
114
|
-
*/
|
|
115
|
-
async function update(payload) {
|
|
116
|
-
return request({
|
|
117
|
-
method: "POST",
|
|
118
|
-
url: "/volt/api/v1/user",
|
|
119
|
-
data: payload,
|
|
120
|
-
});
|
|
121
|
-
}
|
|
122
|
-
User.update = update;
|
|
123
|
-
/**
|
|
124
|
-
* Activate the authenticated user.
|
|
125
|
-
* @nav Frontend/User
|
|
126
|
-
* @type Promise
|
|
127
|
-
* @return Returns a promise with a successful update response or a request error on a failed request.
|
|
128
|
-
* @docs
|
|
129
|
-
*/
|
|
130
|
-
async function activate(payload) {
|
|
131
|
-
return request({
|
|
132
|
-
method: "POST",
|
|
133
|
-
url: "/volt/api/v1/auth/activate",
|
|
134
|
-
data: payload,
|
|
135
|
-
});
|
|
136
|
-
}
|
|
137
|
-
User.activate = activate;
|
|
138
|
-
/**
|
|
139
|
-
* Change the password of the authenticated user.
|
|
140
|
-
* @nav Frontend/User
|
|
141
|
-
* @type Promise
|
|
142
|
-
* @return Returns a promise with a successful update response or a request error on a failed request.
|
|
143
|
-
* @docs
|
|
144
|
-
*/
|
|
145
|
-
async function change_password(payload) {
|
|
146
|
-
return request({
|
|
147
|
-
method: "POST",
|
|
148
|
-
url: "/volt/api/v1/user/change_password",
|
|
149
|
-
data: payload,
|
|
150
|
-
});
|
|
151
|
-
}
|
|
152
|
-
User.change_password = change_password;
|
|
153
|
-
/**
|
|
154
|
-
* Delete the user account.
|
|
155
|
-
* @nav Frontend/User
|
|
156
|
-
* @type Promise
|
|
157
|
-
* @return Returns a promise with a successful update response or a request error on a failed request.
|
|
158
|
-
* @docs
|
|
159
|
-
*/
|
|
160
|
-
async function delete_account() {
|
|
161
|
-
return request({
|
|
162
|
-
method: "DELETE",
|
|
163
|
-
url: "/volt/api/v1/user",
|
|
164
|
-
});
|
|
165
|
-
}
|
|
166
|
-
User.delete_account = delete_account;
|
|
167
|
-
/**
|
|
168
|
-
* Generate a new API key for the authenticated user.
|
|
169
|
-
* @nav Frontend/User
|
|
170
|
-
* @type Promise
|
|
171
|
-
* @return Returns a promise with a successful update response with the newly generated API key as an attribute or a request error on a failed request.
|
|
172
|
-
* @docs
|
|
173
|
-
*/
|
|
174
|
-
async function generate_api_key() {
|
|
175
|
-
return request({
|
|
176
|
-
method: "POST",
|
|
177
|
-
url: "/volt/api/v1/user/api_key",
|
|
178
|
-
});
|
|
179
|
-
}
|
|
180
|
-
User.generate_api_key = generate_api_key;
|
|
181
|
-
/**
|
|
182
|
-
* Generate a new API key for the authenticated user.
|
|
183
|
-
* @nav Frontend/User
|
|
184
|
-
* @docs
|
|
185
|
-
*/
|
|
186
|
-
async function has_api_key() {
|
|
187
|
-
return request({
|
|
188
|
-
method: "GET",
|
|
189
|
-
url: "/volt/api/v1/user/has_api_key",
|
|
190
|
-
});
|
|
191
|
-
}
|
|
192
|
-
User.has_api_key = has_api_key;
|
|
193
|
-
/**
|
|
194
|
-
* Revoke the API key of the authenticated user.
|
|
195
|
-
* @nav Frontend/User
|
|
196
|
-
* @type Promise
|
|
197
|
-
* @return Returns a promise with a successful update response or a request error on a failed request.
|
|
198
|
-
* @docs
|
|
199
|
-
*/
|
|
200
|
-
async function revoke_api_key() {
|
|
201
|
-
return request({
|
|
202
|
-
method: "DELETE",
|
|
203
|
-
url: "/volt/api/v1/user/api_key",
|
|
204
|
-
});
|
|
205
|
-
}
|
|
206
|
-
User.revoke_api_key = revoke_api_key;
|
|
207
|
-
/**
|
|
208
|
-
* Load data from the authenticated user's database.
|
|
209
|
-
* @nav Frontend/User
|
|
210
|
-
* @type Promise
|
|
211
|
-
* @return Returns a promise with the loaded user's data or a request error on a failed request.
|
|
212
|
-
* When the document is not found, an error response with status `404` and type `document_not_found` will be returned,
|
|
213
|
-
* unless a `default` value is provided in the request payload. In that case, the default value will be inserted
|
|
214
|
-
* @docs
|
|
215
|
-
*/
|
|
216
|
-
async function load_data(payload) {
|
|
217
|
-
return request({
|
|
218
|
-
method: "GET",
|
|
219
|
-
url: "/volt/api/v1/user/data",
|
|
220
|
-
data: payload,
|
|
221
|
-
});
|
|
222
|
-
}
|
|
223
|
-
User.load_data = load_data;
|
|
224
|
-
/**
|
|
225
|
-
* Set data to the authenticated user's database, only updating the supplied fields.
|
|
226
|
-
* @nav Frontend/User
|
|
227
|
-
* @type Promise
|
|
228
|
-
* @return Returns a promise with a successful update response or a request error on a failed request.
|
|
229
|
-
* @docs
|
|
230
|
-
*/
|
|
231
|
-
async function set_data(payload) {
|
|
232
|
-
return request({
|
|
233
|
-
method: "POST",
|
|
234
|
-
url: "/volt/api/v1/user/data",
|
|
235
|
-
data: payload,
|
|
236
|
-
});
|
|
237
|
-
}
|
|
238
|
-
User.set_data = set_data;
|
|
239
|
-
/**
|
|
240
|
-
* Delete public user data.
|
|
241
|
-
* @nav Frontend/User
|
|
242
|
-
*/
|
|
243
|
-
async function delete_data(payload) {
|
|
244
|
-
return request({
|
|
245
|
-
method: "DELETE",
|
|
246
|
-
url: "/volt/api/v1/user/data",
|
|
247
|
-
data: payload,
|
|
248
|
-
});
|
|
249
|
-
}
|
|
250
|
-
User.delete_data = delete_data;
|
|
251
|
-
/**
|
|
252
|
-
* Load protected data from the authenticated user's database.
|
|
253
|
-
* @nav Frontend/User
|
|
254
|
-
* @type Promise
|
|
255
|
-
* @return Returns a promise with the loaded user's data or a request error on a failed request.
|
|
256
|
-
* When the document is not found, an error response with status `404` and type `document_not_found` will be returned,
|
|
257
|
-
* unless a `default` value is provided in the request payload. In that case, the default value will be inserted
|
|
258
|
-
* @docs
|
|
259
|
-
*/
|
|
260
|
-
async function load_protected_data(payload) {
|
|
261
|
-
return request({
|
|
262
|
-
method: "GET",
|
|
263
|
-
url: "/volt/api/v1/user/data/protected",
|
|
264
|
-
data: payload,
|
|
265
|
-
});
|
|
266
|
-
}
|
|
267
|
-
User.load_protected_data = load_protected_data;
|
|
268
|
-
})(User || (User = {}));
|
|
269
|
-
;
|
|
270
|
-
export { User as user }; // also export as lowercase for compatibility.
|
|
@@ -1,176 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author Daan van den Bergh
|
|
3
|
-
* @copyright © 2022 - 2025 Daan van den Bergh. All rights reserved
|
|
4
|
-
*/
|
|
5
|
-
import { AnyElement } from "../ui/any_element.js";
|
|
6
|
-
/** Utils module. */
|
|
7
|
-
export declare namespace Utils {
|
|
8
|
-
/** True if the current browser's vendor string indicates Apple (e.g., Safari on iOS/macOS). */
|
|
9
|
-
const is_apple: boolean;
|
|
10
|
-
/** True if the current browser is identified via vendor as Safari/Apple (same check as {@link is_apple}). */
|
|
11
|
-
const is_safari: boolean;
|
|
12
|
-
/**
|
|
13
|
-
* Determine whether the provided value is a string.
|
|
14
|
-
* @param value The value to check.
|
|
15
|
-
* @returns Returns true if the value is a string, otherwise false.
|
|
16
|
-
* @docs
|
|
17
|
-
*/
|
|
18
|
-
function is_string(value: any): value is string;
|
|
19
|
-
/**
|
|
20
|
-
* Determine whether the provided value is a finite number.
|
|
21
|
-
* @param value The value to check.
|
|
22
|
-
* @returns Returns true if the value is a finite number, otherwise false.
|
|
23
|
-
* @docs
|
|
24
|
-
*/
|
|
25
|
-
function is_numeric(value: any): value is number;
|
|
26
|
-
/**
|
|
27
|
-
* Determine whether the provided value is an integer.
|
|
28
|
-
* @param value The value to check.
|
|
29
|
-
* @returns Returns true if the value is an integer, otherwise false.
|
|
30
|
-
* @docs
|
|
31
|
-
*/
|
|
32
|
-
function is_int(value: any): value is number;
|
|
33
|
-
/**
|
|
34
|
-
* Determine whether the provided value is a floating-point number.
|
|
35
|
-
* @param value The value to check.
|
|
36
|
-
* @returns Returns true if the value is a float, otherwise false.
|
|
37
|
-
* @docs
|
|
38
|
-
*/
|
|
39
|
-
function is_float(value: any): value is number;
|
|
40
|
-
/**
|
|
41
|
-
* Determine whether the provided value is a function.
|
|
42
|
-
* @param value The value to check.
|
|
43
|
-
* @returns Returns true if the value is a function, otherwise false.
|
|
44
|
-
* @docs
|
|
45
|
-
*/
|
|
46
|
-
function is_func(value: any): value is Function;
|
|
47
|
-
/**
|
|
48
|
-
* Determine whether the provided value is an array.
|
|
49
|
-
* @param value The value to check.
|
|
50
|
-
* @returns Returns true if the value is an array, otherwise false.
|
|
51
|
-
* @docs
|
|
52
|
-
*/
|
|
53
|
-
function is_array(value: any): value is Array<any>;
|
|
54
|
-
/**
|
|
55
|
-
* Determine whether the provided value is a non-array object.
|
|
56
|
-
* @param value The value to check.
|
|
57
|
-
* @returns Returns true if the value is an object and not an array, otherwise false.
|
|
58
|
-
* @docs
|
|
59
|
-
*/
|
|
60
|
-
function is_obj(value: any): value is object;
|
|
61
|
-
/**
|
|
62
|
-
* Determine whether the provided number is even.
|
|
63
|
-
* @param number The number to check.
|
|
64
|
-
* @returns Returns true if the number is even, otherwise false.
|
|
65
|
-
* @docs
|
|
66
|
-
*/
|
|
67
|
-
function is_even(number: number): boolean;
|
|
68
|
-
/**
|
|
69
|
-
* Check if the user agent is a mobile device.
|
|
70
|
-
* @returns Returns true when a mobile user agent is detected.
|
|
71
|
-
* @docs
|
|
72
|
-
*/
|
|
73
|
-
function is_mobile(): boolean;
|
|
74
|
-
/**
|
|
75
|
-
* Make all objects of an array or object immutable. All nested objects will also be made immutable recursively.
|
|
76
|
-
* @param object The array or object to freeze.
|
|
77
|
-
* @docs
|
|
78
|
-
*/
|
|
79
|
-
function make_immutable(object: any): any;
|
|
80
|
-
/**
|
|
81
|
-
* Check if an element is a direct child of an element or the parent element itself.
|
|
82
|
-
* @param parent The parent element to test.
|
|
83
|
-
* @param target The target element to test.
|
|
84
|
-
* @docs
|
|
85
|
-
*/
|
|
86
|
-
function is_child(parent: any, target: any): boolean;
|
|
87
|
-
/**
|
|
88
|
-
* Check if an element is a recursively nested child of an element or the parent element itself.
|
|
89
|
-
* @param parent The parent element to test.
|
|
90
|
-
* @param target The target element to test.
|
|
91
|
-
* @param stop_node A node at which to stop checking if target is a parent of the current element.
|
|
92
|
-
* @docs
|
|
93
|
-
*/
|
|
94
|
-
function is_nested_child(parent: any, target: any, stop_node?: any): boolean;
|
|
95
|
-
/**
|
|
96
|
-
* Round a number to a specified number of decimal places.
|
|
97
|
-
* @param value The number to round.
|
|
98
|
-
* @param decimals The number of decimal places.
|
|
99
|
-
* @returns The rounded number.
|
|
100
|
-
* @docs
|
|
101
|
-
*/
|
|
102
|
-
function round(value: number, decimals: number): number;
|
|
103
|
-
/**
|
|
104
|
-
* Get the width of the device's viewport.
|
|
105
|
-
* @returns The width of the device's viewport.
|
|
106
|
-
* @docs
|
|
107
|
-
*/
|
|
108
|
-
function device_width(): number;
|
|
109
|
-
/**
|
|
110
|
-
* Get the height of the device's viewport.
|
|
111
|
-
* @returns The height of the device's viewport.
|
|
112
|
-
* @docs
|
|
113
|
-
*/
|
|
114
|
-
function device_height(): number;
|
|
115
|
-
/**
|
|
116
|
-
* Get the endpoint sub URL of a full domain URL. When parameter "url" is undefined, it uses the current URL.
|
|
117
|
-
* @param url The full domain URL.
|
|
118
|
-
* @returns The endpoint sub URL.
|
|
119
|
-
* @docs
|
|
120
|
-
*/
|
|
121
|
-
function endpoint(url?: string | null): string;
|
|
122
|
-
/**
|
|
123
|
-
* Execute a function when the content is loaded, optionally handling a splash screen.
|
|
124
|
-
* @param func The function to execute when the content is loaded.
|
|
125
|
-
* @returns void
|
|
126
|
-
* @docs
|
|
127
|
-
*/
|
|
128
|
-
function on_load(func: () => HTMLElement | AnyElement | Promise<HTMLElement | AnyElement> | null | undefined): Promise<void>;
|
|
129
|
-
/**
|
|
130
|
-
* Redirect to a specified URL, optionally forcing the redirect even if the endpoint is the same.
|
|
131
|
-
* @param url The URL to redirect to.
|
|
132
|
-
* @param forced Whether to force the redirect even if the current endpoint is the same as the target URL.
|
|
133
|
-
* @docs
|
|
134
|
-
*/
|
|
135
|
-
function redirect(url: string, forced?: boolean): void;
|
|
136
|
-
/**
|
|
137
|
-
* Get a URL parameter by name, with an optional default value.
|
|
138
|
-
* @param name The name of the URL parameter.
|
|
139
|
-
* @param def The default value to return if the parameter is not found.
|
|
140
|
-
* @returns The value of the URL parameter or the default value.
|
|
141
|
-
* @docs
|
|
142
|
-
*/
|
|
143
|
-
function url_param(name: string, def?: any): any | null;
|
|
144
|
-
/**
|
|
145
|
-
* Encode an object into a URL-encoded query string.
|
|
146
|
-
* @param params The parameters to encode.
|
|
147
|
-
* @returns The URL-encoded query string.
|
|
148
|
-
* @docs
|
|
149
|
-
*/
|
|
150
|
-
function url_encode(params: Record<string, any>): string;
|
|
151
|
-
/**
|
|
152
|
-
* Copy text to the clipboard.
|
|
153
|
-
* @param text The text to copy.
|
|
154
|
-
* @returns A Promise that resolves when the text is copied.
|
|
155
|
-
* @docs
|
|
156
|
-
*/
|
|
157
|
-
function copy_to_clipboard(text: string): Promise<void>;
|
|
158
|
-
/**
|
|
159
|
-
* Create a debounced version of a function that delays invoking it until after a specified delay.
|
|
160
|
-
* @param delay The number of milliseconds to delay.
|
|
161
|
-
* @param func The function to debounce.
|
|
162
|
-
* @returns The debounced function.
|
|
163
|
-
* @docs
|
|
164
|
-
*/
|
|
165
|
-
function debounce(delay: number, func: (...args: any[]) => void): (...args: any[]) => void;
|
|
166
|
-
/**
|
|
167
|
-
* @deprecated Use vlib.VDate instead.
|
|
168
|
-
* Convert a Unix timestamp in seconds or milliseconds to the user's date format.
|
|
169
|
-
* @param unix The Unix timestamp.
|
|
170
|
-
* @param mseconds Optional. Whether the Unix timestamp is in milliseconds.
|
|
171
|
-
* @returns The formatted date string.
|
|
172
|
-
* @docs
|
|
173
|
-
*/
|
|
174
|
-
function unix_to_date(unix: number, mseconds?: boolean | null): string;
|
|
175
|
-
}
|
|
176
|
-
export { Utils as utils };
|