@hexclave/shared 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +7 -0
- package/dist/ai/image-limits.d.ts +24 -0
- package/dist/ai/image-limits.d.ts.map +1 -0
- package/dist/ai/image-limits.js +61 -0
- package/dist/ai/image-limits.js.map +1 -0
- package/dist/ai/unified-prompts/reminders.d.ts +5 -0
- package/dist/ai/unified-prompts/reminders.d.ts.map +1 -0
- package/dist/ai/unified-prompts/reminders.js +33 -0
- package/dist/ai/unified-prompts/reminders.js.map +1 -0
- package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.d.ts +11 -0
- package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.d.ts.map +1 -0
- package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js +851 -0
- package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js.map +1 -0
- package/dist/ai/unified-prompts/skill-site-prompt-parts/brain.d.ts +5 -0
- package/dist/ai/unified-prompts/skill-site-prompt-parts/brain.d.ts.map +1 -0
- package/dist/ai/unified-prompts/skill-site-prompt-parts/brain.js +12 -0
- package/dist/ai/unified-prompts/skill-site-prompt-parts/brain.js.map +1 -0
- package/dist/ai/unified-prompts/skill-site-prompt-parts/cli-help.d.ts +5 -0
- package/dist/ai/unified-prompts/skill-site-prompt-parts/cli-help.d.ts.map +1 -0
- package/dist/ai/unified-prompts/skill-site-prompt-parts/cli-help.js +12 -0
- package/dist/ai/unified-prompts/skill-site-prompt-parts/cli-help.js.map +1 -0
- package/dist/ai/unified-prompts/skill-site-prompt-parts/config-docs.d.ts +5 -0
- package/dist/ai/unified-prompts/skill-site-prompt-parts/config-docs.d.ts.map +1 -0
- package/dist/ai/unified-prompts/skill-site-prompt-parts/config-docs.js +12 -0
- package/dist/ai/unified-prompts/skill-site-prompt-parts/config-docs.js.map +1 -0
- package/dist/ai/unified-prompts/skill-site-prompt-parts/custom-components-instructions.d.ts +5 -0
- package/dist/ai/unified-prompts/skill-site-prompt-parts/custom-components-instructions.d.ts.map +1 -0
- package/dist/ai/unified-prompts/skill-site-prompt-parts/custom-components-instructions.js +12 -0
- package/dist/ai/unified-prompts/skill-site-prompt-parts/custom-components-instructions.js.map +1 -0
- package/dist/ai/unified-prompts/skill-site-prompt-parts/dashboard-instructions.d.ts +5 -0
- package/dist/ai/unified-prompts/skill-site-prompt-parts/dashboard-instructions.d.ts.map +1 -0
- package/dist/ai/unified-prompts/skill-site-prompt-parts/dashboard-instructions.js +12 -0
- package/dist/ai/unified-prompts/skill-site-prompt-parts/dashboard-instructions.js.map +1 -0
- package/dist/ai/unified-prompts/skill-site-prompt-parts/docs-index.d.ts +5 -0
- package/dist/ai/unified-prompts/skill-site-prompt-parts/docs-index.d.ts.map +1 -0
- package/dist/ai/unified-prompts/skill-site-prompt-parts/docs-index.js +64 -0
- package/dist/ai/unified-prompts/skill-site-prompt-parts/docs-index.js.map +1 -0
- package/dist/ai/unified-prompts/skill-site-prompt-parts/openapi-specs.d.ts +5 -0
- package/dist/ai/unified-prompts/skill-site-prompt-parts/openapi-specs.d.ts.map +1 -0
- package/dist/ai/unified-prompts/skill-site-prompt-parts/openapi-specs.js +12 -0
- package/dist/ai/unified-prompts/skill-site-prompt-parts/openapi-specs.js.map +1 -0
- package/dist/ai/unified-prompts/skill-site-prompt-parts/sdk-interface-source.d.ts +5 -0
- package/dist/ai/unified-prompts/skill-site-prompt-parts/sdk-interface-source.d.ts.map +1 -0
- package/dist/ai/unified-prompts/skill-site-prompt-parts/sdk-interface-source.js +12 -0
- package/dist/ai/unified-prompts/skill-site-prompt-parts/sdk-interface-source.js.map +1 -0
- package/dist/ai/unified-prompts/skill-site-prompt.d.ts +5 -0
- package/dist/ai/unified-prompts/skill-site-prompt.d.ts.map +1 -0
- package/dist/ai/unified-prompts/skill-site-prompt.js +75 -0
- package/dist/ai/unified-prompts/skill-site-prompt.js.map +1 -0
- package/dist/apps/apps-config.d.ts +168 -0
- package/dist/apps/apps-config.d.ts.map +1 -0
- package/dist/apps/apps-config.js +157 -0
- package/dist/apps/apps-config.js.map +1 -0
- package/dist/apps/apps-ui.d.ts +45 -0
- package/dist/apps/apps-ui.d.ts.map +1 -0
- package/dist/apps/apps-ui.js +109 -0
- package/dist/apps/apps-ui.js.map +1 -0
- package/dist/chunk-BE-pF4vm.js +34 -0
- package/dist/config/db-sync-mappings.d.ts +193 -0
- package/dist/config/db-sync-mappings.d.ts.map +1 -0
- package/dist/config/db-sync-mappings.js +2255 -0
- package/dist/config/db-sync-mappings.js.map +1 -0
- package/dist/config/format.d.ts +61 -0
- package/dist/config/format.d.ts.map +1 -0
- package/dist/config/format.js +337 -0
- package/dist/config/format.js.map +1 -0
- package/dist/config/migrate-catalogs-to-product-lines.d.ts +14 -0
- package/dist/config/migrate-catalogs-to-product-lines.d.ts.map +1 -0
- package/dist/config/migrate-catalogs-to-product-lines.js +379 -0
- package/dist/config/migrate-catalogs-to-product-lines.js.map +1 -0
- package/dist/config/schema-fuzzer.test.d.ts +1 -0
- package/dist/config/schema-fuzzer.test.js +401 -0
- package/dist/config/schema-fuzzer.test.js.map +1 -0
- package/dist/config/schema.d.ts +2315 -0
- package/dist/config/schema.d.ts.map +1 -0
- package/dist/config/schema.js +1085 -0
- package/dist/config/schema.js.map +1 -0
- package/dist/config-authoring.d.ts +12 -0
- package/dist/config-authoring.d.ts.map +1 -0
- package/dist/config-authoring.js +12 -0
- package/dist/config-authoring.js.map +1 -0
- package/dist/config-authoring.test.d.ts +1 -0
- package/dist/config-authoring.test.js +29 -0
- package/dist/config-authoring.test.js.map +1 -0
- package/dist/config-rendering.d.ts +17 -0
- package/dist/config-rendering.d.ts.map +1 -0
- package/dist/config-rendering.js +114 -0
- package/dist/config-rendering.js.map +1 -0
- package/dist/crud.d.ts +98 -0
- package/dist/crud.d.ts.map +1 -0
- package/dist/crud.js +129 -0
- package/dist/crud.js.map +1 -0
- package/dist/esm/ai/image-limits.d.ts +24 -0
- package/dist/esm/ai/image-limits.d.ts.map +1 -0
- package/dist/esm/ai/image-limits.js +53 -0
- package/dist/esm/ai/image-limits.js.map +1 -0
- package/dist/esm/ai/unified-prompts/reminders.d.ts +5 -0
- package/dist/esm/ai/unified-prompts/reminders.d.ts.map +1 -0
- package/dist/esm/ai/unified-prompts/reminders.js +31 -0
- package/dist/esm/ai/unified-prompts/reminders.js.map +1 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.d.ts +11 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.d.ts.map +1 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js +843 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js.map +1 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/brain.d.ts +5 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/brain.d.ts.map +1 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/brain.js +10 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/brain.js.map +1 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/cli-help.d.ts +5 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/cli-help.d.ts.map +1 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/cli-help.js +10 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/cli-help.js.map +1 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/config-docs.d.ts +5 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/config-docs.d.ts.map +1 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/config-docs.js +10 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/config-docs.js.map +1 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/custom-components-instructions.d.ts +5 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/custom-components-instructions.d.ts.map +1 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/custom-components-instructions.js +10 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/custom-components-instructions.js.map +1 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/dashboard-instructions.d.ts +5 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/dashboard-instructions.d.ts.map +1 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/dashboard-instructions.js +10 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/dashboard-instructions.js.map +1 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/docs-index.d.ts +5 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/docs-index.d.ts.map +1 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/docs-index.js +61 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/docs-index.js.map +1 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/openapi-specs.d.ts +5 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/openapi-specs.d.ts.map +1 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/openapi-specs.js +10 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/openapi-specs.js.map +1 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/sdk-interface-source.d.ts +5 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/sdk-interface-source.d.ts.map +1 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/sdk-interface-source.js +10 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/sdk-interface-source.js.map +1 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt.d.ts +5 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt.d.ts.map +1 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt.js +73 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt.js.map +1 -0
- package/dist/esm/apps/apps-config.d.ts +168 -0
- package/dist/esm/apps/apps-config.d.ts.map +1 -0
- package/dist/esm/apps/apps-config.js +154 -0
- package/dist/esm/apps/apps-config.js.map +1 -0
- package/dist/esm/apps/apps-ui.d.ts +45 -0
- package/dist/esm/apps/apps-ui.d.ts.map +1 -0
- package/dist/esm/apps/apps-ui.js +104 -0
- package/dist/esm/apps/apps-ui.js.map +1 -0
- package/dist/esm/config/db-sync-mappings.d.ts +193 -0
- package/dist/esm/config/db-sync-mappings.d.ts.map +1 -0
- package/dist/esm/config/db-sync-mappings.js +2253 -0
- package/dist/esm/config/db-sync-mappings.js.map +1 -0
- package/dist/esm/config/format.d.ts +61 -0
- package/dist/esm/config/format.d.ts.map +1 -0
- package/dist/esm/config/format.js +327 -0
- package/dist/esm/config/format.js.map +1 -0
- package/dist/esm/config/migrate-catalogs-to-product-lines.d.ts +14 -0
- package/dist/esm/config/migrate-catalogs-to-product-lines.d.ts.map +1 -0
- package/dist/esm/config/migrate-catalogs-to-product-lines.js +377 -0
- package/dist/esm/config/migrate-catalogs-to-product-lines.js.map +1 -0
- package/dist/esm/config/schema-fuzzer.test.d.ts +1 -0
- package/dist/esm/config/schema-fuzzer.test.js +401 -0
- package/dist/esm/config/schema-fuzzer.test.js.map +1 -0
- package/dist/esm/config/schema.d.ts +2315 -0
- package/dist/esm/config/schema.d.ts.map +1 -0
- package/dist/esm/config/schema.js +1065 -0
- package/dist/esm/config/schema.js.map +1 -0
- package/dist/esm/config-authoring.d.ts +12 -0
- package/dist/esm/config-authoring.d.ts.map +1 -0
- package/dist/esm/config-authoring.js +9 -0
- package/dist/esm/config-authoring.js.map +1 -0
- package/dist/esm/config-authoring.test.d.ts +1 -0
- package/dist/esm/config-authoring.test.js +29 -0
- package/dist/esm/config-authoring.test.js.map +1 -0
- package/dist/esm/config-rendering.d.ts +17 -0
- package/dist/esm/config-rendering.d.ts.map +1 -0
- package/dist/esm/config-rendering.js +108 -0
- package/dist/esm/config-rendering.js.map +1 -0
- package/dist/esm/crud.d.ts +98 -0
- package/dist/esm/crud.d.ts.map +1 -0
- package/dist/esm/crud.js +127 -0
- package/dist/esm/crud.js.map +1 -0
- package/dist/esm/global.d.ts +1 -0
- package/dist/esm/helpers/emails.d.ts +69 -0
- package/dist/esm/helpers/emails.d.ts.map +1 -0
- package/dist/esm/helpers/emails.js +243 -0
- package/dist/esm/helpers/emails.js.map +1 -0
- package/dist/esm/helpers/init-prompt.d.ts +5 -0
- package/dist/esm/helpers/init-prompt.d.ts.map +1 -0
- package/dist/esm/helpers/init-prompt.js +40 -0
- package/dist/esm/helpers/init-prompt.js.map +1 -0
- package/dist/esm/helpers/password.d.ts +7 -0
- package/dist/esm/helpers/password.d.ts.map +1 -0
- package/dist/esm/helpers/password.js +13 -0
- package/dist/esm/helpers/password.js.map +1 -0
- package/dist/esm/helpers/production-mode.d.ts +11 -0
- package/dist/esm/helpers/production-mode.d.ts.map +1 -0
- package/dist/esm/helpers/production-mode.js +46 -0
- package/dist/esm/helpers/production-mode.js.map +1 -0
- package/dist/esm/helpers/support-sla.d.ts +48 -0
- package/dist/esm/helpers/support-sla.d.ts.map +1 -0
- package/dist/esm/helpers/support-sla.js +65 -0
- package/dist/esm/helpers/support-sla.js.map +1 -0
- package/dist/esm/helpers/support-sla.test.d.ts +1 -0
- package/dist/esm/helpers/support-sla.test.js +102 -0
- package/dist/esm/helpers/support-sla.test.js.map +1 -0
- package/dist/esm/helpers/vault/client-side.d.ts +16 -0
- package/dist/esm/helpers/vault/client-side.d.ts.map +1 -0
- package/dist/esm/helpers/vault/client-side.js +69 -0
- package/dist/esm/helpers/vault/client-side.js.map +1 -0
- package/dist/esm/helpers/vault/server-side.d.ts +9 -0
- package/dist/esm/helpers/vault/server-side.d.ts.map +1 -0
- package/dist/esm/helpers/vault/server-side.js +123 -0
- package/dist/esm/helpers/vault/server-side.js.map +1 -0
- package/dist/esm/hooks/use-async-callback.d.ts +8 -0
- package/dist/esm/hooks/use-async-callback.d.ts.map +1 -0
- package/dist/esm/hooks/use-async-callback.js +38 -0
- package/dist/esm/hooks/use-async-callback.js.map +1 -0
- package/dist/esm/hooks/use-async-external-store.d.ts +9 -0
- package/dist/esm/hooks/use-async-external-store.d.ts.map +1 -0
- package/dist/esm/hooks/use-async-external-store.js +20 -0
- package/dist/esm/hooks/use-async-external-store.js.map +1 -0
- package/dist/esm/hooks/use-hash.d.ts +5 -0
- package/dist/esm/hooks/use-hash.d.ts.map +1 -0
- package/dist/esm/hooks/use-hash.js +15 -0
- package/dist/esm/hooks/use-hash.js.map +1 -0
- package/dist/esm/hooks/use-hover.d.ts +8 -0
- package/dist/esm/hooks/use-hover.d.ts.map +1 -0
- package/dist/esm/hooks/use-hover.js +59 -0
- package/dist/esm/hooks/use-hover.js.map +1 -0
- package/dist/esm/hooks/use-strict-memo.d.ts +10 -0
- package/dist/esm/hooks/use-strict-memo.d.ts.map +1 -0
- package/dist/esm/hooks/use-strict-memo.js +119 -0
- package/dist/esm/hooks/use-strict-memo.js.map +1 -0
- package/dist/esm/index.d.ts +5 -0
- package/dist/esm/index.js +6 -0
- package/dist/esm/interface/admin-interface.d.ts +308 -0
- package/dist/esm/interface/admin-interface.d.ts.map +1 -0
- package/dist/esm/interface/admin-interface.js +463 -0
- package/dist/esm/interface/admin-interface.js.map +1 -0
- package/dist/esm/interface/admin-metrics.d.ts +597 -0
- package/dist/esm/interface/admin-metrics.d.ts.map +1 -0
- package/dist/esm/interface/admin-metrics.js +134 -0
- package/dist/esm/interface/admin-metrics.js.map +1 -0
- package/dist/esm/interface/client-interface.d.ts +447 -0
- package/dist/esm/interface/client-interface.d.ts.map +1 -0
- package/dist/esm/interface/client-interface.js +1946 -0
- package/dist/esm/interface/client-interface.js.map +1 -0
- package/dist/esm/interface/client-interface.test.d.ts +1 -0
- package/dist/esm/interface/client-interface.test.js +559 -0
- package/dist/esm/interface/client-interface.test.js.map +1 -0
- package/dist/esm/interface/conversations.d.ts +314 -0
- package/dist/esm/interface/conversations.d.ts.map +1 -0
- package/dist/esm/interface/conversations.js +108 -0
- package/dist/esm/interface/conversations.js.map +1 -0
- package/dist/esm/interface/crud/analytics.d.ts +14 -0
- package/dist/esm/interface/crud/analytics.d.ts.map +1 -0
- package/dist/esm/interface/crud/analytics.js +1 -0
- package/dist/esm/interface/crud/connected-accounts.d.ts +69 -0
- package/dist/esm/interface/crud/connected-accounts.d.ts.map +1 -0
- package/dist/esm/interface/crud/connected-accounts.js +35 -0
- package/dist/esm/interface/crud/connected-accounts.js.map +1 -0
- package/dist/esm/interface/crud/contact-channels.d.ts +182 -0
- package/dist/esm/interface/crud/contact-channels.d.ts.map +1 -0
- package/dist/esm/interface/crud/contact-channels.js +68 -0
- package/dist/esm/interface/crud/contact-channels.js.map +1 -0
- package/dist/esm/interface/crud/current-user.d.ts +286 -0
- package/dist/esm/interface/crud/current-user.d.ts.map +1 -0
- package/dist/esm/interface/crud/current-user.js +69 -0
- package/dist/esm/interface/crud/current-user.js.map +1 -0
- package/dist/esm/interface/crud/email-outbox.d.ts +1466 -0
- package/dist/esm/interface/crud/email-outbox.d.ts.map +1 -0
- package/dist/esm/interface/crud/email-outbox.js +190 -0
- package/dist/esm/interface/crud/email-outbox.js.map +1 -0
- package/dist/esm/interface/crud/email-templates.d.ts +86 -0
- package/dist/esm/interface/crud/email-templates.d.ts.map +1 -0
- package/dist/esm/interface/crud/email-templates.js +46 -0
- package/dist/esm/interface/crud/email-templates.js.map +1 -0
- package/dist/esm/interface/crud/emails.d.ts +42 -0
- package/dist/esm/interface/crud/emails.d.ts.map +1 -0
- package/dist/esm/interface/crud/emails.js +19 -0
- package/dist/esm/interface/crud/emails.js.map +1 -0
- package/dist/esm/interface/crud/internal-api-keys.d.ts +141 -0
- package/dist/esm/interface/crud/internal-api-keys.d.ts.map +1 -0
- package/dist/esm/interface/crud/internal-api-keys.js +49 -0
- package/dist/esm/interface/crud/internal-api-keys.js.map +1 -0
- package/dist/esm/interface/crud/invoices.d.ts +43 -0
- package/dist/esm/interface/crud/invoices.d.ts.map +1 -0
- package/dist/esm/interface/crud/invoices.js +25 -0
- package/dist/esm/interface/crud/invoices.js.map +1 -0
- package/dist/esm/interface/crud/items.d.ts +31 -0
- package/dist/esm/interface/crud/items.d.ts.map +1 -0
- package/dist/esm/interface/crud/items.js +23 -0
- package/dist/esm/interface/crud/items.js.map +1 -0
- package/dist/esm/interface/crud/notification-preferences.d.ts +39 -0
- package/dist/esm/interface/crud/notification-preferences.d.ts.map +1 -0
- package/dist/esm/interface/crud/notification-preferences.js +31 -0
- package/dist/esm/interface/crud/notification-preferences.js.map +1 -0
- package/dist/esm/interface/crud/oauth-providers.d.ts +187 -0
- package/dist/esm/interface/crud/oauth-providers.d.ts.map +1 -0
- package/dist/esm/interface/crud/oauth-providers.js +75 -0
- package/dist/esm/interface/crud/oauth-providers.js.map +1 -0
- package/dist/esm/interface/crud/products.d.ts +182 -0
- package/dist/esm/interface/crud/products.d.ts.map +1 -0
- package/dist/esm/interface/crud/products.js +29 -0
- package/dist/esm/interface/crud/products.js.map +1 -0
- package/dist/esm/interface/crud/project-api-keys.d.ts +204 -0
- package/dist/esm/interface/crud/project-api-keys.d.ts.map +1 -0
- package/dist/esm/interface/crud/project-api-keys.js +72 -0
- package/dist/esm/interface/crud/project-api-keys.js.map +1 -0
- package/dist/esm/interface/crud/project-permissions.d.ts +162 -0
- package/dist/esm/interface/crud/project-permissions.d.ts.map +1 -0
- package/dist/esm/interface/crud/project-permissions.js +104 -0
- package/dist/esm/interface/crud/project-permissions.js.map +1 -0
- package/dist/esm/interface/crud/projects.d.ts +852 -0
- package/dist/esm/interface/crud/projects.d.ts.map +1 -0
- package/dist/esm/interface/crud/projects.js +193 -0
- package/dist/esm/interface/crud/projects.js.map +1 -0
- package/dist/esm/interface/crud/session-replays.d.ts +83 -0
- package/dist/esm/interface/crud/session-replays.d.ts.map +1 -0
- package/dist/esm/interface/crud/session-replays.js +1 -0
- package/dist/esm/interface/crud/sessions.d.ts +151 -0
- package/dist/esm/interface/crud/sessions.d.ts.map +1 -0
- package/dist/esm/interface/crud/sessions.js +56 -0
- package/dist/esm/interface/crud/sessions.js.map +1 -0
- package/dist/esm/interface/crud/sign-up-rules.d.ts +15 -0
- package/dist/esm/interface/crud/sign-up-rules.d.ts.map +1 -0
- package/dist/esm/interface/crud/sign-up-rules.js +1 -0
- package/dist/esm/interface/crud/svix-token.d.ts +32 -0
- package/dist/esm/interface/crud/svix-token.d.ts.map +1 -0
- package/dist/esm/interface/crud/svix-token.js +18 -0
- package/dist/esm/interface/crud/svix-token.js.map +1 -0
- package/dist/esm/interface/crud/team-invitation-details.d.ts +32 -0
- package/dist/esm/interface/crud/team-invitation-details.d.ts.map +1 -0
- package/dist/esm/interface/crud/team-invitation-details.js +21 -0
- package/dist/esm/interface/crud/team-invitation-details.js.map +1 -0
- package/dist/esm/interface/crud/team-invitation.d.ts +55 -0
- package/dist/esm/interface/crud/team-invitation.d.ts.map +1 -0
- package/dist/esm/interface/crud/team-invitation.js +37 -0
- package/dist/esm/interface/crud/team-invitation.js.map +1 -0
- package/dist/esm/interface/crud/team-member-profiles.d.ts +287 -0
- package/dist/esm/interface/crud/team-member-profiles.d.ts.map +1 -0
- package/dist/esm/interface/crud/team-member-profiles.js +58 -0
- package/dist/esm/interface/crud/team-member-profiles.js.map +1 -0
- package/dist/esm/interface/crud/team-memberships.d.ts +76 -0
- package/dist/esm/interface/crud/team-memberships.d.ts.map +1 -0
- package/dist/esm/interface/crud/team-memberships.js +54 -0
- package/dist/esm/interface/crud/team-memberships.js.map +1 -0
- package/dist/esm/interface/crud/team-permissions.d.ts +170 -0
- package/dist/esm/interface/crud/team-permissions.d.ts.map +1 -0
- package/dist/esm/interface/crud/team-permissions.js +105 -0
- package/dist/esm/interface/crud/team-permissions.js.map +1 -0
- package/dist/esm/interface/crud/teams.d.ts +300 -0
- package/dist/esm/interface/crud/teams.d.ts.map +1 -0
- package/dist/esm/interface/crud/teams.js +129 -0
- package/dist/esm/interface/crud/teams.js.map +1 -0
- package/dist/esm/interface/crud/transactions.d.ts +183 -0
- package/dist/esm/interface/crud/transactions.d.ts.map +1 -0
- package/dist/esm/interface/crud/transactions.js +85 -0
- package/dist/esm/interface/crud/transactions.js.map +1 -0
- package/dist/esm/interface/crud/users.d.ts +654 -0
- package/dist/esm/interface/crud/users.d.ts.map +1 -0
- package/dist/esm/interface/crud/users.js +181 -0
- package/dist/esm/interface/crud/users.js.map +1 -0
- package/dist/esm/interface/handler-urls.d.ts +51 -0
- package/dist/esm/interface/handler-urls.d.ts.map +1 -0
- package/dist/esm/interface/handler-urls.js +3 -0
- package/dist/esm/interface/page-component-versions.d.ts +25 -0
- package/dist/esm/interface/page-component-versions.d.ts.map +1 -0
- package/dist/esm/interface/page-component-versions.js +1661 -0
- package/dist/esm/interface/page-component-versions.js.map +1 -0
- package/dist/esm/interface/server-interface.d.ts +255 -0
- package/dist/esm/interface/server-interface.d.ts.map +1 -0
- package/dist/esm/interface/server-interface.js +459 -0
- package/dist/esm/interface/server-interface.js.map +1 -0
- package/dist/esm/interface/webhooks.d.ts +326 -0
- package/dist/esm/interface/webhooks.d.ts.map +1 -0
- package/dist/esm/interface/webhooks.js +22 -0
- package/dist/esm/interface/webhooks.js.map +1 -0
- package/dist/esm/known-errors.d.ts +575 -0
- package/dist/esm/known-errors.d.ts.map +1 -0
- package/dist/esm/known-errors.js +791 -0
- package/dist/esm/known-errors.js.map +1 -0
- package/dist/esm/local-emulator.d.ts +6 -0
- package/dist/esm/local-emulator.d.ts.map +1 -0
- package/dist/esm/local-emulator.js +7 -0
- package/dist/esm/local-emulator.js.map +1 -0
- package/dist/esm/payments/payment-methods.d.ts +64 -0
- package/dist/esm/payments/payment-methods.d.ts.map +1 -0
- package/dist/esm/payments/payment-methods.js +205 -0
- package/dist/esm/payments/payment-methods.js.map +1 -0
- package/dist/esm/payments/stripe-limits.d.ts +17 -0
- package/dist/esm/payments/stripe-limits.d.ts.map +1 -0
- package/dist/esm/payments/stripe-limits.js +17 -0
- package/dist/esm/payments/stripe-limits.js.map +1 -0
- package/dist/esm/plans.d.ts +72 -0
- package/dist/esm/plans.d.ts.map +1 -0
- package/dist/esm/plans.js +81 -0
- package/dist/esm/plans.js.map +1 -0
- package/dist/esm/schema-fields.d.ts +472 -0
- package/dist/esm/schema-fields.d.ts.map +1 -0
- package/dist/esm/schema-fields.js +1009 -0
- package/dist/esm/schema-fields.js.map +1 -0
- package/dist/esm/sessions.d.ts +165 -0
- package/dist/esm/sessions.d.ts.map +1 -0
- package/dist/esm/sessions.js +226 -0
- package/dist/esm/sessions.js.map +1 -0
- package/dist/esm/stack-config-file.d.ts +15 -0
- package/dist/esm/stack-config-file.d.ts.map +1 -0
- package/dist/esm/stack-config-file.js +76 -0
- package/dist/esm/stack-config-file.js.map +1 -0
- package/dist/esm/utils/api-keys.d.ts +26 -0
- package/dist/esm/utils/api-keys.d.ts.map +1 -0
- package/dist/esm/utils/api-keys.js +77 -0
- package/dist/esm/utils/api-keys.js.map +1 -0
- package/dist/esm/utils/arrays.d.ts +25 -0
- package/dist/esm/utils/arrays.d.ts.map +1 -0
- package/dist/esm/utils/arrays.js +552 -0
- package/dist/esm/utils/arrays.js.map +1 -0
- package/dist/esm/utils/auth-methods.d.ts +6 -0
- package/dist/esm/utils/auth-methods.d.ts.map +1 -0
- package/dist/esm/utils/auth-methods.js +11 -0
- package/dist/esm/utils/auth-methods.js.map +1 -0
- package/dist/esm/utils/base64.d.ts +6 -0
- package/dist/esm/utils/base64.d.ts.map +1 -0
- package/dist/esm/utils/base64.js +25 -0
- package/dist/esm/utils/base64.js.map +1 -0
- package/dist/esm/utils/booleans.d.ts +8 -0
- package/dist/esm/utils/booleans.d.ts.map +1 -0
- package/dist/esm/utils/booleans.js +35 -0
- package/dist/esm/utils/booleans.js.map +1 -0
- package/dist/esm/utils/browser-compat.d.ts +10 -0
- package/dist/esm/utils/browser-compat.d.ts.map +1 -0
- package/dist/esm/utils/browser-compat.js +21 -0
- package/dist/esm/utils/browser-compat.js.map +1 -0
- package/dist/esm/utils/bytes.d.ts +17 -0
- package/dist/esm/utils/bytes.d.ts.map +1 -0
- package/dist/esm/utils/bytes.js +290 -0
- package/dist/esm/utils/bytes.js.map +1 -0
- package/dist/esm/utils/caches.d.ts +102 -0
- package/dist/esm/utils/caches.d.ts.map +1 -0
- package/dist/esm/utils/caches.js +185 -0
- package/dist/esm/utils/caches.js.map +1 -0
- package/dist/esm/utils/cel-fields.d.ts +23 -0
- package/dist/esm/utils/cel-fields.d.ts.map +1 -0
- package/dist/esm/utils/cel-fields.js +99 -0
- package/dist/esm/utils/cel-fields.js.map +1 -0
- package/dist/esm/utils/compile-time.d.ts +10 -0
- package/dist/esm/utils/compile-time.d.ts.map +1 -0
- package/dist/esm/utils/compile-time.js +14 -0
- package/dist/esm/utils/compile-time.js.map +1 -0
- package/dist/esm/utils/country-codes.d.ts +11 -0
- package/dist/esm/utils/country-codes.d.ts.map +1 -0
- package/dist/esm/utils/country-codes.js +36 -0
- package/dist/esm/utils/country-codes.js.map +1 -0
- package/dist/esm/utils/crypto.d.ts +48 -0
- package/dist/esm/utils/crypto.d.ts.map +1 -0
- package/dist/esm/utils/crypto.js +208 -0
- package/dist/esm/utils/crypto.js.map +1 -0
- package/dist/esm/utils/currencies.d.ts +8 -0
- package/dist/esm/utils/currencies.d.ts.map +1 -0
- package/dist/esm/utils/currencies.js +50 -0
- package/dist/esm/utils/currencies.js.map +1 -0
- package/dist/esm/utils/currency-constants.d.ts +39 -0
- package/dist/esm/utils/currency-constants.d.ts.map +1 -0
- package/dist/esm/utils/currency-constants.js +42 -0
- package/dist/esm/utils/currency-constants.js.map +1 -0
- package/dist/esm/utils/dates.d.ts +23 -0
- package/dist/esm/utils/dates.d.ts.map +1 -0
- package/dist/esm/utils/dates.js +167 -0
- package/dist/esm/utils/dates.js.map +1 -0
- package/dist/esm/utils/dev-env-state-path.d.ts +6 -0
- package/dist/esm/utils/dev-env-state-path.d.ts.map +1 -0
- package/dist/esm/utils/dev-env-state-path.js +15 -0
- package/dist/esm/utils/dev-env-state-path.js.map +1 -0
- package/dist/esm/utils/dom.d.ts +5 -0
- package/dist/esm/utils/dom.d.ts.map +1 -0
- package/dist/esm/utils/dom.js +11 -0
- package/dist/esm/utils/dom.js.map +1 -0
- package/dist/esm/utils/env.d.ts +25 -0
- package/dist/esm/utils/env.d.ts.map +1 -0
- package/dist/esm/utils/env.js +78 -0
- package/dist/esm/utils/env.js.map +1 -0
- package/dist/esm/utils/errors.d.ts +231 -0
- package/dist/esm/utils/errors.d.ts.map +1 -0
- package/dist/esm/utils/errors.js +385 -0
- package/dist/esm/utils/errors.js.map +1 -0
- package/dist/esm/utils/esbuild.d.ts +16 -0
- package/dist/esm/utils/esbuild.d.ts.map +1 -0
- package/dist/esm/utils/esbuild.js +182 -0
- package/dist/esm/utils/esbuild.js.map +1 -0
- package/dist/esm/utils/featurebase.d.ts +30 -0
- package/dist/esm/utils/featurebase.d.ts.map +1 -0
- package/dist/esm/utils/featurebase.js +166 -0
- package/dist/esm/utils/featurebase.js.map +1 -0
- package/dist/esm/utils/fs.d.ts +9 -0
- package/dist/esm/utils/fs.d.ts.map +1 -0
- package/dist/esm/utils/fs.js +25 -0
- package/dist/esm/utils/fs.js.map +1 -0
- package/dist/esm/utils/functions.d.ts +6 -0
- package/dist/esm/utils/functions.d.ts.map +1 -0
- package/dist/esm/utils/functions.js +34 -0
- package/dist/esm/utils/functions.js.map +1 -0
- package/dist/esm/utils/geo.d.ts +24 -0
- package/dist/esm/utils/geo.d.ts.map +1 -0
- package/dist/esm/utils/geo.js +16 -0
- package/dist/esm/utils/geo.js.map +1 -0
- package/dist/esm/utils/globals.d.ts +13 -0
- package/dist/esm/utils/globals.d.ts.map +1 -0
- package/dist/esm/utils/globals.js +34 -0
- package/dist/esm/utils/globals.js.map +1 -0
- package/dist/esm/utils/hashes.d.ts +9 -0
- package/dist/esm/utils/hashes.d.ts.map +1 -0
- package/dist/esm/utils/hashes.js +40 -0
- package/dist/esm/utils/hashes.js.map +1 -0
- package/dist/esm/utils/html.d.ts +7 -0
- package/dist/esm/utils/html.d.ts.map +1 -0
- package/dist/esm/utils/html.js +33 -0
- package/dist/esm/utils/html.js.map +1 -0
- package/dist/esm/utils/http.d.ts +45 -0
- package/dist/esm/utils/http.d.ts.map +1 -0
- package/dist/esm/utils/http.js +75 -0
- package/dist/esm/utils/http.js.map +1 -0
- package/dist/esm/utils/ips.d.ts +8 -0
- package/dist/esm/utils/ips.d.ts.map +1 -0
- package/dist/esm/utils/ips.js +36 -0
- package/dist/esm/utils/ips.js.map +1 -0
- package/dist/esm/utils/json.d.ts +15 -0
- package/dist/esm/utils/json.d.ts.map +1 -0
- package/dist/esm/utils/json.js +178 -0
- package/dist/esm/utils/json.js.map +1 -0
- package/dist/esm/utils/jsx-editable-transpiler.d.ts +68 -0
- package/dist/esm/utils/jsx-editable-transpiler.d.ts.map +1 -0
- package/dist/esm/utils/jsx-editable-transpiler.js +216 -0
- package/dist/esm/utils/jsx-editable-transpiler.js.map +1 -0
- package/dist/esm/utils/jsx-editable-transpiler.test.d.ts +1 -0
- package/dist/esm/utils/jsx-editable-transpiler.test.js +122 -0
- package/dist/esm/utils/jsx-editable-transpiler.test.js.map +1 -0
- package/dist/esm/utils/jwt.d.ts +79 -0
- package/dist/esm/utils/jwt.d.ts.map +1 -0
- package/dist/esm/utils/jwt.js +102 -0
- package/dist/esm/utils/jwt.js.map +1 -0
- package/dist/esm/utils/locks.d.ts +17 -0
- package/dist/esm/utils/locks.d.ts.map +1 -0
- package/dist/esm/utils/locks.js +54 -0
- package/dist/esm/utils/locks.js.map +1 -0
- package/dist/esm/utils/maps.d.ts +61 -0
- package/dist/esm/utils/maps.d.ts.map +1 -0
- package/dist/esm/utils/maps.js +297 -0
- package/dist/esm/utils/maps.js.map +1 -0
- package/dist/esm/utils/math.d.ts +8 -0
- package/dist/esm/utils/math.d.ts.map +1 -0
- package/dist/esm/utils/math.js +21 -0
- package/dist/esm/utils/math.js.map +1 -0
- package/dist/esm/utils/monkey-patch.d.ts +7 -0
- package/dist/esm/utils/monkey-patch.d.ts.map +1 -0
- package/dist/esm/utils/monkey-patch.js +21 -0
- package/dist/esm/utils/monkey-patch.js.map +1 -0
- package/dist/esm/utils/node-http.d.ts +17 -0
- package/dist/esm/utils/node-http.d.ts.map +1 -0
- package/dist/esm/utils/node-http.js +38 -0
- package/dist/esm/utils/node-http.js.map +1 -0
- package/dist/esm/utils/numbers.d.ts +7 -0
- package/dist/esm/utils/numbers.d.ts.map +1 -0
- package/dist/esm/utils/numbers.js +75 -0
- package/dist/esm/utils/numbers.js.map +1 -0
- package/dist/esm/utils/oauth.d.ts +11 -0
- package/dist/esm/utils/oauth.d.ts.map +1 -0
- package/dist/esm/utils/oauth.js +27 -0
- package/dist/esm/utils/oauth.js.map +1 -0
- package/dist/esm/utils/objects.d.ts +59 -0
- package/dist/esm/utils/objects.d.ts.map +1 -0
- package/dist/esm/utils/objects.js +818 -0
- package/dist/esm/utils/objects.js.map +1 -0
- package/dist/esm/utils/paginated-lists.d.ts +442 -0
- package/dist/esm/utils/paginated-lists.d.ts.map +1 -0
- package/dist/esm/utils/paginated-lists.js +411 -0
- package/dist/esm/utils/paginated-lists.js.map +1 -0
- package/dist/esm/utils/paginated-lists.test.d.ts +1 -0
- package/dist/esm/utils/paginated-lists.test.js +1304 -0
- package/dist/esm/utils/paginated-lists.test.js.map +1 -0
- package/dist/esm/utils/passkey.d.ts +2 -0
- package/dist/esm/utils/passkey.js +1 -0
- package/dist/esm/utils/promises.d.ts +80 -0
- package/dist/esm/utils/promises.d.ts.map +1 -0
- package/dist/esm/utils/promises.js +333 -0
- package/dist/esm/utils/promises.js.map +1 -0
- package/dist/esm/utils/proxies.d.ts +13 -0
- package/dist/esm/utils/proxies.d.ts.map +1 -0
- package/dist/esm/utils/proxies.js +197 -0
- package/dist/esm/utils/proxies.js.map +1 -0
- package/dist/esm/utils/react.d.ts +61 -0
- package/dist/esm/utils/react.d.ts.map +1 -0
- package/dist/esm/utils/react.js +229 -0
- package/dist/esm/utils/react.js.map +1 -0
- package/dist/esm/utils/redirect-urls.d.ts +30 -0
- package/dist/esm/utils/redirect-urls.d.ts.map +1 -0
- package/dist/esm/utils/redirect-urls.js +215 -0
- package/dist/esm/utils/redirect-urls.js.map +1 -0
- package/dist/esm/utils/regex.d.ts +5 -0
- package/dist/esm/utils/regex.d.ts.map +1 -0
- package/dist/esm/utils/regex.js +13 -0
- package/dist/esm/utils/regex.js.map +1 -0
- package/dist/esm/utils/results.d.ts +70 -0
- package/dist/esm/utils/results.d.ts.map +1 -0
- package/dist/esm/utils/results.js +339 -0
- package/dist/esm/utils/results.js.map +1 -0
- package/dist/esm/utils/sentry.d.ts +13 -0
- package/dist/esm/utils/sentry.d.ts.map +1 -0
- package/dist/esm/utils/sentry.js +14 -0
- package/dist/esm/utils/sentry.js.map +1 -0
- package/dist/esm/utils/stores.d.ts +104 -0
- package/dist/esm/utils/stores.d.ts.map +1 -0
- package/dist/esm/utils/stores.js +175 -0
- package/dist/esm/utils/stores.js.map +1 -0
- package/dist/esm/utils/strings.d.ts +76 -0
- package/dist/esm/utils/strings.d.ts.map +1 -0
- package/dist/esm/utils/strings.js +530 -0
- package/dist/esm/utils/strings.js.map +1 -0
- package/dist/esm/utils/strings.nicify.test.d.ts +1 -0
- package/dist/esm/utils/strings.nicify.test.js +243 -0
- package/dist/esm/utils/strings.nicify.test.js.map +1 -0
- package/dist/esm/utils/telemetry.d.ts +15 -0
- package/dist/esm/utils/telemetry.d.ts.map +1 -0
- package/dist/esm/utils/telemetry.js +31 -0
- package/dist/esm/utils/telemetry.js.map +1 -0
- package/dist/esm/utils/turnstile-browser.d.ts +32 -0
- package/dist/esm/utils/turnstile-browser.d.ts.map +1 -0
- package/dist/esm/utils/turnstile-browser.js +61 -0
- package/dist/esm/utils/turnstile-browser.js.map +1 -0
- package/dist/esm/utils/turnstile-flow.d.ts +29 -0
- package/dist/esm/utils/turnstile-flow.d.ts.map +1 -0
- package/dist/esm/utils/turnstile-flow.js +219 -0
- package/dist/esm/utils/turnstile-flow.js.map +1 -0
- package/dist/esm/utils/turnstile-flow.test.d.ts +1 -0
- package/dist/esm/utils/turnstile-flow.test.js +75 -0
- package/dist/esm/utils/turnstile-flow.test.js.map +1 -0
- package/dist/esm/utils/turnstile.d.ts +17 -0
- package/dist/esm/utils/turnstile.d.ts.map +1 -0
- package/dist/esm/utils/turnstile.js +25 -0
- package/dist/esm/utils/turnstile.js.map +1 -0
- package/dist/esm/utils/typed-arrays.d.ts +14 -0
- package/dist/esm/utils/typed-arrays.d.ts.map +1 -0
- package/dist/esm/utils/typed-arrays.js +20 -0
- package/dist/esm/utils/typed-arrays.js.map +1 -0
- package/dist/esm/utils/types.d.ts +77 -0
- package/dist/esm/utils/types.d.ts.map +1 -0
- package/dist/esm/utils/types.js +55 -0
- package/dist/esm/utils/types.js.map +1 -0
- package/dist/esm/utils/unicode.d.ts +5 -0
- package/dist/esm/utils/unicode.d.ts.map +1 -0
- package/dist/esm/utils/unicode.js +24 -0
- package/dist/esm/utils/unicode.js.map +1 -0
- package/dist/esm/utils/urls.d.ts +28 -0
- package/dist/esm/utils/urls.d.ts.map +1 -0
- package/dist/esm/utils/urls.js +259 -0
- package/dist/esm/utils/urls.js.map +1 -0
- package/dist/esm/utils/uuids.d.ts +6 -0
- package/dist/esm/utils/uuids.d.ts.map +1 -0
- package/dist/esm/utils/uuids.js +36 -0
- package/dist/esm/utils/uuids.js.map +1 -0
- package/dist/global.d.d.ts +0 -0
- package/dist/global.d.ts +1 -0
- package/dist/helpers/emails.d.ts +69 -0
- package/dist/helpers/emails.d.ts.map +1 -0
- package/dist/helpers/emails.js +252 -0
- package/dist/helpers/emails.js.map +1 -0
- package/dist/helpers/init-prompt.d.ts +5 -0
- package/dist/helpers/init-prompt.d.ts.map +1 -0
- package/dist/helpers/init-prompt.js +42 -0
- package/dist/helpers/init-prompt.js.map +1 -0
- package/dist/helpers/password.d.ts +6 -0
- package/dist/helpers/password.d.ts.map +1 -0
- package/dist/helpers/password.js +15 -0
- package/dist/helpers/password.js.map +1 -0
- package/dist/helpers/production-mode.d.ts +11 -0
- package/dist/helpers/production-mode.d.ts.map +1 -0
- package/dist/helpers/production-mode.js +48 -0
- package/dist/helpers/production-mode.js.map +1 -0
- package/dist/helpers/support-sla.d.ts +48 -0
- package/dist/helpers/support-sla.d.ts.map +1 -0
- package/dist/helpers/support-sla.js +72 -0
- package/dist/helpers/support-sla.js.map +1 -0
- package/dist/helpers/support-sla.test.d.ts +1 -0
- package/dist/helpers/support-sla.test.js +102 -0
- package/dist/helpers/support-sla.test.js.map +1 -0
- package/dist/helpers/vault/client-side.d.ts +16 -0
- package/dist/helpers/vault/client-side.d.ts.map +1 -0
- package/dist/helpers/vault/client-side.js +73 -0
- package/dist/helpers/vault/client-side.js.map +1 -0
- package/dist/helpers/vault/server-side.d.ts +9 -0
- package/dist/helpers/vault/server-side.d.ts.map +1 -0
- package/dist/helpers/vault/server-side.js +126 -0
- package/dist/helpers/vault/server-side.js.map +1 -0
- package/dist/hooks/use-async-callback.d.ts +8 -0
- package/dist/hooks/use-async-callback.d.ts.map +1 -0
- package/dist/hooks/use-async-callback.js +42 -0
- package/dist/hooks/use-async-callback.js.map +1 -0
- package/dist/hooks/use-async-external-store.d.ts +9 -0
- package/dist/hooks/use-async-external-store.d.ts.map +1 -0
- package/dist/hooks/use-async-external-store.js +22 -0
- package/dist/hooks/use-async-external-store.js.map +1 -0
- package/dist/hooks/use-hash.d.ts +5 -0
- package/dist/hooks/use-hash.d.ts.map +1 -0
- package/dist/hooks/use-hash.js +17 -0
- package/dist/hooks/use-hash.js.map +1 -0
- package/dist/hooks/use-hover.d.ts +8 -0
- package/dist/hooks/use-hover.d.ts.map +1 -0
- package/dist/hooks/use-hover.js +61 -0
- package/dist/hooks/use-hover.js.map +1 -0
- package/dist/hooks/use-strict-memo.d.ts +10 -0
- package/dist/hooks/use-strict-memo.d.ts.map +1 -0
- package/dist/hooks/use-strict-memo.js +121 -0
- package/dist/hooks/use-strict-memo.js.map +1 -0
- package/dist/index-D9ysacya.d.ts +153 -0
- package/dist/index-D9ysacya.d.ts.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +37 -0
- package/dist/interface/admin-interface.d.ts +308 -0
- package/dist/interface/admin-interface.d.ts.map +1 -0
- package/dist/interface/admin-interface.js +465 -0
- package/dist/interface/admin-interface.js.map +1 -0
- package/dist/interface/admin-metrics.d.ts +597 -0
- package/dist/interface/admin-metrics.d.ts.map +1 -0
- package/dist/interface/admin-metrics.js +153 -0
- package/dist/interface/admin-metrics.js.map +1 -0
- package/dist/interface/client-interface.d.ts +447 -0
- package/dist/interface/client-interface.d.ts.map +1 -0
- package/dist/interface/client-interface.js +1948 -0
- package/dist/interface/client-interface.js.map +1 -0
- package/dist/interface/client-interface.test.d.ts +1 -0
- package/dist/interface/client-interface.test.js +559 -0
- package/dist/interface/client-interface.test.js.map +1 -0
- package/dist/interface/conversations.d.ts +314 -0
- package/dist/interface/conversations.d.ts.map +1 -0
- package/dist/interface/conversations.js +121 -0
- package/dist/interface/conversations.js.map +1 -0
- package/dist/interface/crud/analytics.d.ts +14 -0
- package/dist/interface/crud/analytics.d.ts.map +1 -0
- package/dist/interface/crud/analytics.js +0 -0
- package/dist/interface/crud/connected-accounts.d.ts +68 -0
- package/dist/interface/crud/connected-accounts.d.ts.map +1 -0
- package/dist/interface/crud/connected-accounts.js +41 -0
- package/dist/interface/crud/connected-accounts.js.map +1 -0
- package/dist/interface/crud/contact-channels.d.ts +181 -0
- package/dist/interface/crud/contact-channels.d.ts.map +1 -0
- package/dist/interface/crud/contact-channels.js +76 -0
- package/dist/interface/crud/contact-channels.js.map +1 -0
- package/dist/interface/crud/current-user.d.ts +285 -0
- package/dist/interface/crud/current-user.d.ts.map +1 -0
- package/dist/interface/crud/current-user.js +71 -0
- package/dist/interface/crud/current-user.js.map +1 -0
- package/dist/interface/crud/email-outbox.d.ts +1465 -0
- package/dist/interface/crud/email-outbox.d.ts.map +1 -0
- package/dist/interface/crud/email-outbox.js +195 -0
- package/dist/interface/crud/email-outbox.js.map +1 -0
- package/dist/interface/crud/email-templates.d.ts +85 -0
- package/dist/interface/crud/email-templates.d.ts.map +1 -0
- package/dist/interface/crud/email-templates.js +53 -0
- package/dist/interface/crud/email-templates.js.map +1 -0
- package/dist/interface/crud/emails.d.ts +41 -0
- package/dist/interface/crud/emails.d.ts.map +1 -0
- package/dist/interface/crud/emails.js +23 -0
- package/dist/interface/crud/emails.js.map +1 -0
- package/dist/interface/crud/internal-api-keys.d.ts +140 -0
- package/dist/interface/crud/internal-api-keys.d.ts.map +1 -0
- package/dist/interface/crud/internal-api-keys.js +56 -0
- package/dist/interface/crud/internal-api-keys.js.map +1 -0
- package/dist/interface/crud/invoices.d.ts +43 -0
- package/dist/interface/crud/invoices.d.ts.map +1 -0
- package/dist/interface/crud/invoices.js +28 -0
- package/dist/interface/crud/invoices.js.map +1 -0
- package/dist/interface/crud/items.d.ts +30 -0
- package/dist/interface/crud/items.d.ts.map +1 -0
- package/dist/interface/crud/items.js +25 -0
- package/dist/interface/crud/items.js.map +1 -0
- package/dist/interface/crud/notification-preferences.d.ts +38 -0
- package/dist/interface/crud/notification-preferences.d.ts.map +1 -0
- package/dist/interface/crud/notification-preferences.js +33 -0
- package/dist/interface/crud/notification-preferences.js.map +1 -0
- package/dist/interface/crud/oauth-providers.d.ts +186 -0
- package/dist/interface/crud/oauth-providers.d.ts.map +1 -0
- package/dist/interface/crud/oauth-providers.js +83 -0
- package/dist/interface/crud/oauth-providers.js.map +1 -0
- package/dist/interface/crud/products.d.ts +182 -0
- package/dist/interface/crud/products.d.ts.map +1 -0
- package/dist/interface/crud/products.js +32 -0
- package/dist/interface/crud/products.js.map +1 -0
- package/dist/interface/crud/project-api-keys.d.ts +203 -0
- package/dist/interface/crud/project-api-keys.d.ts.map +1 -0
- package/dist/interface/crud/project-api-keys.js +79 -0
- package/dist/interface/crud/project-api-keys.js.map +1 -0
- package/dist/interface/crud/project-permissions.d.ts +161 -0
- package/dist/interface/crud/project-permissions.d.ts.map +1 -0
- package/dist/interface/crud/project-permissions.js +116 -0
- package/dist/interface/crud/project-permissions.js.map +1 -0
- package/dist/interface/crud/projects.d.ts +851 -0
- package/dist/interface/crud/projects.d.ts.map +1 -0
- package/dist/interface/crud/projects.js +204 -0
- package/dist/interface/crud/projects.js.map +1 -0
- package/dist/interface/crud/session-replays.d.ts +83 -0
- package/dist/interface/crud/session-replays.d.ts.map +1 -0
- package/dist/interface/crud/session-replays.js +0 -0
- package/dist/interface/crud/sessions.d.ts +150 -0
- package/dist/interface/crud/sessions.d.ts.map +1 -0
- package/dist/interface/crud/sessions.js +62 -0
- package/dist/interface/crud/sessions.js.map +1 -0
- package/dist/interface/crud/sign-up-rules.d.ts +15 -0
- package/dist/interface/crud/sign-up-rules.d.ts.map +1 -0
- package/dist/interface/crud/sign-up-rules.js +0 -0
- package/dist/interface/crud/svix-token.d.ts +31 -0
- package/dist/interface/crud/svix-token.d.ts.map +1 -0
- package/dist/interface/crud/svix-token.js +22 -0
- package/dist/interface/crud/svix-token.js.map +1 -0
- package/dist/interface/crud/team-invitation-details.d.ts +31 -0
- package/dist/interface/crud/team-invitation-details.d.ts.map +1 -0
- package/dist/interface/crud/team-invitation-details.js +24 -0
- package/dist/interface/crud/team-invitation-details.js.map +1 -0
- package/dist/interface/crud/team-invitation.d.ts +54 -0
- package/dist/interface/crud/team-invitation.d.ts.map +1 -0
- package/dist/interface/crud/team-invitation.js +40 -0
- package/dist/interface/crud/team-invitation.js.map +1 -0
- package/dist/interface/crud/team-member-profiles.d.ts +286 -0
- package/dist/interface/crud/team-member-profiles.d.ts.map +1 -0
- package/dist/interface/crud/team-member-profiles.js +63 -0
- package/dist/interface/crud/team-member-profiles.js.map +1 -0
- package/dist/interface/crud/team-memberships.d.ts +75 -0
- package/dist/interface/crud/team-memberships.d.ts.map +1 -0
- package/dist/interface/crud/team-memberships.js +61 -0
- package/dist/interface/crud/team-memberships.js.map +1 -0
- package/dist/interface/crud/team-permissions.d.ts +169 -0
- package/dist/interface/crud/team-permissions.d.ts.map +1 -0
- package/dist/interface/crud/team-permissions.js +117 -0
- package/dist/interface/crud/team-permissions.js.map +1 -0
- package/dist/interface/crud/teams.d.ts +299 -0
- package/dist/interface/crud/teams.d.ts.map +1 -0
- package/dist/interface/crud/teams.js +142 -0
- package/dist/interface/crud/teams.js.map +1 -0
- package/dist/interface/crud/transactions.d.ts +183 -0
- package/dist/interface/crud/transactions.d.ts.map +1 -0
- package/dist/interface/crud/transactions.js +89 -0
- package/dist/interface/crud/transactions.js.map +1 -0
- package/dist/interface/crud/users.d.ts +653 -0
- package/dist/interface/crud/users.d.ts.map +1 -0
- package/dist/interface/crud/users.js +193 -0
- package/dist/interface/crud/users.js.map +1 -0
- package/dist/interface/handler-urls.d.ts +51 -0
- package/dist/interface/handler-urls.d.ts.map +1 -0
- package/dist/interface/handler-urls.js +16 -0
- package/dist/interface/page-component-versions.d.ts +25 -0
- package/dist/interface/page-component-versions.d.ts.map +1 -0
- package/dist/interface/page-component-versions.js +1664 -0
- package/dist/interface/page-component-versions.js.map +1 -0
- package/dist/interface/server-interface.d.ts +255 -0
- package/dist/interface/server-interface.d.ts.map +1 -0
- package/dist/interface/server-interface.js +461 -0
- package/dist/interface/server-interface.js.map +1 -0
- package/dist/interface/webhooks.d.ts +326 -0
- package/dist/interface/webhooks.d.ts.map +1 -0
- package/dist/interface/webhooks.js +24 -0
- package/dist/interface/webhooks.js.map +1 -0
- package/dist/known-errors.d.ts +575 -0
- package/dist/known-errors.d.ts.map +1 -0
- package/dist/known-errors.js +794 -0
- package/dist/known-errors.js.map +1 -0
- package/dist/local-emulator.d.ts +6 -0
- package/dist/local-emulator.d.ts.map +1 -0
- package/dist/local-emulator.js +10 -0
- package/dist/local-emulator.js.map +1 -0
- package/dist/payments/payment-methods.d.ts +64 -0
- package/dist/payments/payment-methods.d.ts.map +1 -0
- package/dist/payments/payment-methods.js +216 -0
- package/dist/payments/payment-methods.js.map +1 -0
- package/dist/payments/stripe-limits.d.ts +17 -0
- package/dist/payments/stripe-limits.d.ts.map +1 -0
- package/dist/payments/stripe-limits.js +20 -0
- package/dist/payments/stripe-limits.js.map +1 -0
- package/dist/plans.d.ts +72 -0
- package/dist/plans.d.ts.map +1 -0
- package/dist/plans.js +88 -0
- package/dist/plans.js.map +1 -0
- package/dist/schema-fields.d.ts +472 -0
- package/dist/schema-fields.d.ts.map +1 -0
- package/dist/schema-fields.js +1188 -0
- package/dist/schema-fields.js.map +1 -0
- package/dist/sessions.d.ts +165 -0
- package/dist/sessions.d.ts.map +1 -0
- package/dist/sessions.js +231 -0
- package/dist/sessions.js.map +1 -0
- package/dist/stack-config-file.d.ts +15 -0
- package/dist/stack-config-file.d.ts.map +1 -0
- package/dist/stack-config-file.js +82 -0
- package/dist/stack-config-file.js.map +1 -0
- package/dist/utils/api-keys.d.ts +26 -0
- package/dist/utils/api-keys.d.ts.map +1 -0
- package/dist/utils/api-keys.js +82 -0
- package/dist/utils/api-keys.js.map +1 -0
- package/dist/utils/arrays.d.ts +25 -0
- package/dist/utils/arrays.d.ts.map +1 -0
- package/dist/utils/arrays.js +569 -0
- package/dist/utils/arrays.js.map +1 -0
- package/dist/utils/auth-methods.d.ts +6 -0
- package/dist/utils/auth-methods.d.ts.map +1 -0
- package/dist/utils/auth-methods.js +13 -0
- package/dist/utils/auth-methods.js.map +1 -0
- package/dist/utils/base64.d.ts +6 -0
- package/dist/utils/base64.d.ts.map +1 -0
- package/dist/utils/base64.js +28 -0
- package/dist/utils/base64.js.map +1 -0
- package/dist/utils/booleans.d.ts +8 -0
- package/dist/utils/booleans.d.ts.map +1 -0
- package/dist/utils/booleans.js +38 -0
- package/dist/utils/booleans.js.map +1 -0
- package/dist/utils/browser-compat.d.ts +10 -0
- package/dist/utils/browser-compat.d.ts.map +1 -0
- package/dist/utils/browser-compat.js +23 -0
- package/dist/utils/browser-compat.js.map +1 -0
- package/dist/utils/bytes.d.ts +17 -0
- package/dist/utils/bytes.d.ts.map +1 -0
- package/dist/utils/bytes.js +304 -0
- package/dist/utils/bytes.js.map +1 -0
- package/dist/utils/caches.d.ts +102 -0
- package/dist/utils/caches.d.ts.map +1 -0
- package/dist/utils/caches.js +188 -0
- package/dist/utils/caches.js.map +1 -0
- package/dist/utils/cel-fields.d.ts +23 -0
- package/dist/utils/cel-fields.d.ts.map +1 -0
- package/dist/utils/cel-fields.js +108 -0
- package/dist/utils/cel-fields.js.map +1 -0
- package/dist/utils/compile-time.d.ts +10 -0
- package/dist/utils/compile-time.d.ts.map +1 -0
- package/dist/utils/compile-time.js +16 -0
- package/dist/utils/compile-time.js.map +1 -0
- package/dist/utils/country-codes.d.ts +11 -0
- package/dist/utils/country-codes.d.ts.map +1 -0
- package/dist/utils/country-codes.js +40 -0
- package/dist/utils/country-codes.js.map +1 -0
- package/dist/utils/crypto.d.ts +48 -0
- package/dist/utils/crypto.d.ts.map +1 -0
- package/dist/utils/crypto.js +215 -0
- package/dist/utils/crypto.js.map +1 -0
- package/dist/utils/currencies.d.ts +8 -0
- package/dist/utils/currencies.d.ts.map +1 -0
- package/dist/utils/currencies.js +52 -0
- package/dist/utils/currencies.js.map +1 -0
- package/dist/utils/currency-constants.d.ts +39 -0
- package/dist/utils/currency-constants.d.ts.map +1 -0
- package/dist/utils/currency-constants.js +44 -0
- package/dist/utils/currency-constants.js.map +1 -0
- package/dist/utils/dates.d.ts +23 -0
- package/dist/utils/dates.d.ts.map +1 -0
- package/dist/utils/dates.js +176 -0
- package/dist/utils/dates.js.map +1 -0
- package/dist/utils/dev-env-state-path.d.ts +6 -0
- package/dist/utils/dev-env-state-path.d.ts.map +1 -0
- package/dist/utils/dev-env-state-path.js +18 -0
- package/dist/utils/dev-env-state-path.js.map +1 -0
- package/dist/utils/dom.d.ts +5 -0
- package/dist/utils/dom.d.ts.map +1 -0
- package/dist/utils/dom.js +13 -0
- package/dist/utils/dom.js.map +1 -0
- package/dist/utils/env.d.ts +25 -0
- package/dist/utils/env.d.ts.map +1 -0
- package/dist/utils/env.js +85 -0
- package/dist/utils/env.js.map +1 -0
- package/dist/utils/errors.d.ts +231 -0
- package/dist/utils/errors.d.ts.map +1 -0
- package/dist/utils/errors.js +393 -0
- package/dist/utils/errors.js.map +1 -0
- package/dist/utils/esbuild.d.ts +16 -0
- package/dist/utils/esbuild.d.ts.map +1 -0
- package/dist/utils/esbuild.js +186 -0
- package/dist/utils/esbuild.js.map +1 -0
- package/dist/utils/featurebase.d.ts +30 -0
- package/dist/utils/featurebase.d.ts.map +1 -0
- package/dist/utils/featurebase.js +168 -0
- package/dist/utils/featurebase.js.map +1 -0
- package/dist/utils/fs.d.ts +9 -0
- package/dist/utils/fs.d.ts.map +1 -0
- package/dist/utils/fs.js +31 -0
- package/dist/utils/fs.js.map +1 -0
- package/dist/utils/functions.d.ts +6 -0
- package/dist/utils/functions.d.ts.map +1 -0
- package/dist/utils/functions.js +37 -0
- package/dist/utils/functions.js.map +1 -0
- package/dist/utils/geo.d.ts +24 -0
- package/dist/utils/geo.d.ts.map +1 -0
- package/dist/utils/geo.js +18 -0
- package/dist/utils/geo.js.map +1 -0
- package/dist/utils/globals.d.ts +13 -0
- package/dist/utils/globals.d.ts.map +1 -0
- package/dist/utils/globals.js +40 -0
- package/dist/utils/globals.js.map +1 -0
- package/dist/utils/hashes.d.ts +9 -0
- package/dist/utils/hashes.d.ts.map +1 -0
- package/dist/utils/hashes.js +47 -0
- package/dist/utils/hashes.js.map +1 -0
- package/dist/utils/html.d.ts +7 -0
- package/dist/utils/html.d.ts.map +1 -0
- package/dist/utils/html.js +37 -0
- package/dist/utils/html.js.map +1 -0
- package/dist/utils/http.d.ts +45 -0
- package/dist/utils/http.d.ts.map +1 -0
- package/dist/utils/http.js +79 -0
- package/dist/utils/http.js.map +1 -0
- package/dist/utils/ips.d.ts +8 -0
- package/dist/utils/ips.d.ts.map +1 -0
- package/dist/utils/ips.js +40 -0
- package/dist/utils/ips.js.map +1 -0
- package/dist/utils/json.d.ts +15 -0
- package/dist/utils/json.d.ts.map +1 -0
- package/dist/utils/json.js +182 -0
- package/dist/utils/json.js.map +1 -0
- package/dist/utils/jsx-editable-transpiler.d.ts +68 -0
- package/dist/utils/jsx-editable-transpiler.d.ts.map +1 -0
- package/dist/utils/jsx-editable-transpiler.js +223 -0
- package/dist/utils/jsx-editable-transpiler.js.map +1 -0
- package/dist/utils/jsx-editable-transpiler.test.d.ts +1 -0
- package/dist/utils/jsx-editable-transpiler.test.js +122 -0
- package/dist/utils/jsx-editable-transpiler.test.js.map +1 -0
- package/dist/utils/jwt.d.ts +79 -0
- package/dist/utils/jwt.d.ts.map +1 -0
- package/dist/utils/jwt.js +112 -0
- package/dist/utils/jwt.js.map +1 -0
- package/dist/utils/locks.d.ts +17 -0
- package/dist/utils/locks.d.ts.map +1 -0
- package/dist/utils/locks.js +56 -0
- package/dist/utils/locks.js.map +1 -0
- package/dist/utils/maps.d.ts +61 -0
- package/dist/utils/maps.d.ts.map +1 -0
- package/dist/utils/maps.js +302 -0
- package/dist/utils/maps.js.map +1 -0
- package/dist/utils/math.d.ts +8 -0
- package/dist/utils/math.d.ts.map +1 -0
- package/dist/utils/math.js +23 -0
- package/dist/utils/math.js.map +1 -0
- package/dist/utils/monkey-patch.d.ts +7 -0
- package/dist/utils/monkey-patch.d.ts.map +1 -0
- package/dist/utils/monkey-patch.js +25 -0
- package/dist/utils/monkey-patch.js.map +1 -0
- package/dist/utils/node-http.d.ts +17 -0
- package/dist/utils/node-http.d.ts.map +1 -0
- package/dist/utils/node-http.js +40 -0
- package/dist/utils/node-http.js.map +1 -0
- package/dist/utils/numbers.d.ts +7 -0
- package/dist/utils/numbers.d.ts.map +1 -0
- package/dist/utils/numbers.js +79 -0
- package/dist/utils/numbers.js.map +1 -0
- package/dist/utils/oauth.d.ts +11 -0
- package/dist/utils/oauth.d.ts.map +1 -0
- package/dist/utils/oauth.js +32 -0
- package/dist/utils/oauth.js.map +1 -0
- package/dist/utils/objects.d.ts +59 -0
- package/dist/utils/objects.d.ts.map +1 -0
- package/dist/utils/objects.js +846 -0
- package/dist/utils/objects.js.map +1 -0
- package/dist/utils/paginated-lists.d.ts +442 -0
- package/dist/utils/paginated-lists.d.ts.map +1 -0
- package/dist/utils/paginated-lists.js +414 -0
- package/dist/utils/paginated-lists.js.map +1 -0
- package/dist/utils/paginated-lists.test.d.ts +1 -0
- package/dist/utils/paginated-lists.test.js +1304 -0
- package/dist/utils/paginated-lists.test.js.map +1 -0
- package/dist/utils/passkey.d.ts +2 -0
- package/dist/utils/passkey.js +0 -0
- package/dist/utils/promises.d.ts +80 -0
- package/dist/utils/promises.d.ts.map +1 -0
- package/dist/utils/promises.js +349 -0
- package/dist/utils/promises.js.map +1 -0
- package/dist/utils/proxies.d.ts +13 -0
- package/dist/utils/proxies.d.ts.map +1 -0
- package/dist/utils/proxies.js +201 -0
- package/dist/utils/proxies.js.map +1 -0
- package/dist/utils/react.d.ts +61 -0
- package/dist/utils/react.d.ts.map +1 -0
- package/dist/utils/react.js +243 -0
- package/dist/utils/react.js.map +1 -0
- package/dist/utils/redirect-urls.d.ts +30 -0
- package/dist/utils/redirect-urls.d.ts.map +1 -0
- package/dist/utils/redirect-urls.js +222 -0
- package/dist/utils/redirect-urls.js.map +1 -0
- package/dist/utils/regex.d.ts +5 -0
- package/dist/utils/regex.d.ts.map +1 -0
- package/dist/utils/regex.js +15 -0
- package/dist/utils/regex.js.map +1 -0
- package/dist/utils/results.d.ts +70 -0
- package/dist/utils/results.d.ts.map +1 -0
- package/dist/utils/results.js +342 -0
- package/dist/utils/results.js.map +1 -0
- package/dist/utils/sentry.d.ts +13 -0
- package/dist/utils/sentry.d.ts.map +1 -0
- package/dist/utils/sentry.js +16 -0
- package/dist/utils/sentry.js.map +1 -0
- package/dist/utils/stores.d.ts +104 -0
- package/dist/utils/stores.d.ts.map +1 -0
- package/dist/utils/stores.js +179 -0
- package/dist/utils/stores.js.map +1 -0
- package/dist/utils/strings.d.ts +76 -0
- package/dist/utils/strings.d.ts.map +1 -0
- package/dist/utils/strings.js +549 -0
- package/dist/utils/strings.js.map +1 -0
- package/dist/utils/strings.nicify.test.d.ts +1 -0
- package/dist/utils/strings.nicify.test.js +243 -0
- package/dist/utils/strings.nicify.test.js.map +1 -0
- package/dist/utils/telemetry.d.ts +15 -0
- package/dist/utils/telemetry.d.ts.map +1 -0
- package/dist/utils/telemetry.js +35 -0
- package/dist/utils/telemetry.js.map +1 -0
- package/dist/utils/turnstile-browser.d.ts +32 -0
- package/dist/utils/turnstile-browser.d.ts.map +1 -0
- package/dist/utils/turnstile-browser.js +65 -0
- package/dist/utils/turnstile-browser.js.map +1 -0
- package/dist/utils/turnstile-flow.d.ts +29 -0
- package/dist/utils/turnstile-flow.d.ts.map +1 -0
- package/dist/utils/turnstile-flow.js +225 -0
- package/dist/utils/turnstile-flow.js.map +1 -0
- package/dist/utils/turnstile-flow.test.d.ts +1 -0
- package/dist/utils/turnstile-flow.test.js +75 -0
- package/dist/utils/turnstile-flow.test.js.map +1 -0
- package/dist/utils/turnstile.d.ts +17 -0
- package/dist/utils/turnstile.d.ts.map +1 -0
- package/dist/utils/turnstile.js +31 -0
- package/dist/utils/turnstile.js.map +1 -0
- package/dist/utils/typed-arrays.d.ts +14 -0
- package/dist/utils/typed-arrays.d.ts.map +1 -0
- package/dist/utils/typed-arrays.js +22 -0
- package/dist/utils/typed-arrays.js.map +1 -0
- package/dist/utils/types.d.ts +77 -0
- package/dist/utils/types.d.ts.map +1 -0
- package/dist/utils/types.js +59 -0
- package/dist/utils/types.js.map +1 -0
- package/dist/utils/unicode.d.ts +5 -0
- package/dist/utils/unicode.d.ts.map +1 -0
- package/dist/utils/unicode.js +26 -0
- package/dist/utils/unicode.js.map +1 -0
- package/dist/utils/urls.d.ts +28 -0
- package/dist/utils/urls.d.ts.map +1 -0
- package/dist/utils/urls.js +274 -0
- package/dist/utils/urls.js.map +1 -0
- package/dist/utils/uuids.d.ts +6 -0
- package/dist/utils/uuids.d.ts.map +1 -0
- package/dist/utils/uuids.js +39 -0
- package/dist/utils/uuids.js.map +1 -0
- package/package.json +99 -0
|
@@ -0,0 +1,818 @@
|
|
|
1
|
+
import { HexclaveAssertionError } from "./errors.js";
|
|
2
|
+
import { stringCompare } from "./strings.js";
|
|
3
|
+
import { identity } from "./functions.js";
|
|
4
|
+
import { typeAssertIs } from "./types.js";
|
|
5
|
+
|
|
6
|
+
//#region src/utils/objects.tsx
|
|
7
|
+
function isNotNull(value) {
|
|
8
|
+
return value !== null && value !== void 0;
|
|
9
|
+
}
|
|
10
|
+
(void 0)?.test("isNotNull", ({ expect }) => {
|
|
11
|
+
expect(isNotNull(null)).toBe(false);
|
|
12
|
+
expect(isNotNull(void 0)).toBe(false);
|
|
13
|
+
expect(isNotNull(0)).toBe(true);
|
|
14
|
+
expect(isNotNull("")).toBe(true);
|
|
15
|
+
expect(isNotNull(false)).toBe(true);
|
|
16
|
+
expect(isNotNull({})).toBe(true);
|
|
17
|
+
expect(isNotNull([])).toBe(true);
|
|
18
|
+
});
|
|
19
|
+
/**
|
|
20
|
+
* Assumes both objects are primitives, arrays, or non-function plain objects, and compares them deeply.
|
|
21
|
+
*
|
|
22
|
+
* Note that since they are assumed to be plain objects, this function does not compare prototypes.
|
|
23
|
+
*/
|
|
24
|
+
function deepPlainEquals(obj1, obj2, options = {}) {
|
|
25
|
+
if (typeof obj1 !== typeof obj2) return false;
|
|
26
|
+
if (obj1 === obj2) return true;
|
|
27
|
+
switch (typeof obj1) {
|
|
28
|
+
case "object": {
|
|
29
|
+
if (!obj1 || !obj2) return false;
|
|
30
|
+
if (Array.isArray(obj1) || Array.isArray(obj2)) {
|
|
31
|
+
if (!Array.isArray(obj1) || !Array.isArray(obj2)) return false;
|
|
32
|
+
if (obj1.length !== obj2.length) return false;
|
|
33
|
+
return obj1.every((v, i) => deepPlainEquals(v, obj2[i], options));
|
|
34
|
+
}
|
|
35
|
+
const entries1 = Object.entries(obj1).filter(([k, v]) => !options.ignoreUndefinedValues || v !== void 0);
|
|
36
|
+
const entries2 = Object.entries(obj2).filter(([k, v]) => !options.ignoreUndefinedValues || v !== void 0);
|
|
37
|
+
if (entries1.length !== entries2.length) return false;
|
|
38
|
+
return entries1.every(([k, v1]) => {
|
|
39
|
+
const e2 = entries2.find(([k2]) => k === k2);
|
|
40
|
+
if (!e2) return false;
|
|
41
|
+
return deepPlainEquals(v1, e2[1], options);
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
case "undefined":
|
|
45
|
+
case "string":
|
|
46
|
+
case "number":
|
|
47
|
+
case "boolean":
|
|
48
|
+
case "bigint":
|
|
49
|
+
case "symbol":
|
|
50
|
+
case "function": return false;
|
|
51
|
+
default: throw new Error("Unexpected typeof " + typeof obj1);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
(void 0)?.test("deepPlainEquals", ({ expect }) => {
|
|
55
|
+
expect(deepPlainEquals(1, 1)).toBe(true);
|
|
56
|
+
expect(deepPlainEquals("test", "test")).toBe(true);
|
|
57
|
+
expect(deepPlainEquals(1, 2)).toBe(false);
|
|
58
|
+
expect(deepPlainEquals("test", "other")).toBe(false);
|
|
59
|
+
expect(deepPlainEquals([
|
|
60
|
+
1,
|
|
61
|
+
2,
|
|
62
|
+
3
|
|
63
|
+
], [
|
|
64
|
+
1,
|
|
65
|
+
2,
|
|
66
|
+
3
|
|
67
|
+
])).toBe(true);
|
|
68
|
+
expect(deepPlainEquals([
|
|
69
|
+
1,
|
|
70
|
+
2,
|
|
71
|
+
3
|
|
72
|
+
], [
|
|
73
|
+
1,
|
|
74
|
+
2,
|
|
75
|
+
4
|
|
76
|
+
])).toBe(false);
|
|
77
|
+
expect(deepPlainEquals([
|
|
78
|
+
1,
|
|
79
|
+
2,
|
|
80
|
+
3
|
|
81
|
+
], [1, 2])).toBe(false);
|
|
82
|
+
expect(deepPlainEquals({
|
|
83
|
+
a: 1,
|
|
84
|
+
b: 2
|
|
85
|
+
}, {
|
|
86
|
+
a: 1,
|
|
87
|
+
b: 2
|
|
88
|
+
})).toBe(true);
|
|
89
|
+
expect(deepPlainEquals({
|
|
90
|
+
a: 1,
|
|
91
|
+
b: 2
|
|
92
|
+
}, {
|
|
93
|
+
a: 1,
|
|
94
|
+
b: 3
|
|
95
|
+
})).toBe(false);
|
|
96
|
+
expect(deepPlainEquals({
|
|
97
|
+
a: 1,
|
|
98
|
+
b: 2
|
|
99
|
+
}, { a: 1 })).toBe(false);
|
|
100
|
+
expect(deepPlainEquals({
|
|
101
|
+
a: 1,
|
|
102
|
+
b: [
|
|
103
|
+
1,
|
|
104
|
+
2,
|
|
105
|
+
{ c: 3 }
|
|
106
|
+
]
|
|
107
|
+
}, {
|
|
108
|
+
a: 1,
|
|
109
|
+
b: [
|
|
110
|
+
1,
|
|
111
|
+
2,
|
|
112
|
+
{ c: 3 }
|
|
113
|
+
]
|
|
114
|
+
})).toBe(true);
|
|
115
|
+
expect(deepPlainEquals({
|
|
116
|
+
a: 1,
|
|
117
|
+
b: [
|
|
118
|
+
1,
|
|
119
|
+
2,
|
|
120
|
+
{ c: 3 }
|
|
121
|
+
]
|
|
122
|
+
}, {
|
|
123
|
+
a: 1,
|
|
124
|
+
b: [
|
|
125
|
+
1,
|
|
126
|
+
2,
|
|
127
|
+
{ c: 4 }
|
|
128
|
+
]
|
|
129
|
+
})).toBe(false);
|
|
130
|
+
expect(deepPlainEquals({
|
|
131
|
+
a: 1,
|
|
132
|
+
b: void 0
|
|
133
|
+
}, { a: 1 }, { ignoreUndefinedValues: true })).toBe(true);
|
|
134
|
+
expect(deepPlainEquals({
|
|
135
|
+
a: 1,
|
|
136
|
+
b: void 0
|
|
137
|
+
}, { a: 1 })).toBe(false);
|
|
138
|
+
});
|
|
139
|
+
function isCloneable(obj) {
|
|
140
|
+
return typeof obj !== "symbol" && typeof obj !== "function";
|
|
141
|
+
}
|
|
142
|
+
function shallowClone(obj) {
|
|
143
|
+
if (!isCloneable(obj)) throw new HexclaveAssertionError("shallowClone does not support symbols or functions", { obj });
|
|
144
|
+
if (Array.isArray(obj)) return obj.map(identity);
|
|
145
|
+
return { ...obj };
|
|
146
|
+
}
|
|
147
|
+
(void 0)?.test("shallowClone", ({ expect }) => {
|
|
148
|
+
expect(shallowClone({
|
|
149
|
+
a: 1,
|
|
150
|
+
b: 2
|
|
151
|
+
})).toEqual({
|
|
152
|
+
a: 1,
|
|
153
|
+
b: 2
|
|
154
|
+
});
|
|
155
|
+
expect(shallowClone([
|
|
156
|
+
1,
|
|
157
|
+
2,
|
|
158
|
+
3
|
|
159
|
+
])).toEqual([
|
|
160
|
+
1,
|
|
161
|
+
2,
|
|
162
|
+
3
|
|
163
|
+
]);
|
|
164
|
+
expect(() => shallowClone(() => {})).toThrow();
|
|
165
|
+
});
|
|
166
|
+
function deepPlainClone(obj) {
|
|
167
|
+
if (typeof obj === "function") throw new HexclaveAssertionError("deepPlainClone does not support functions");
|
|
168
|
+
if (typeof obj === "symbol") throw new HexclaveAssertionError("deepPlainClone does not support symbols");
|
|
169
|
+
if (typeof obj !== "object" || !obj) return obj;
|
|
170
|
+
if (Array.isArray(obj)) return obj.map(deepPlainClone);
|
|
171
|
+
return Object.fromEntries(Object.entries(obj).map(([k, v]) => [k, deepPlainClone(v)]));
|
|
172
|
+
}
|
|
173
|
+
(void 0)?.test("deepPlainClone", ({ expect }) => {
|
|
174
|
+
expect(deepPlainClone(1)).toBe(1);
|
|
175
|
+
expect(deepPlainClone("test")).toBe("test");
|
|
176
|
+
expect(deepPlainClone(null)).toBe(null);
|
|
177
|
+
expect(deepPlainClone(void 0)).toBe(void 0);
|
|
178
|
+
const arr = [
|
|
179
|
+
1,
|
|
180
|
+
2,
|
|
181
|
+
3
|
|
182
|
+
];
|
|
183
|
+
const clonedArr = deepPlainClone(arr);
|
|
184
|
+
expect(clonedArr).toEqual(arr);
|
|
185
|
+
expect(clonedArr).not.toBe(arr);
|
|
186
|
+
const obj = {
|
|
187
|
+
a: 1,
|
|
188
|
+
b: 2
|
|
189
|
+
};
|
|
190
|
+
const clonedObj = deepPlainClone(obj);
|
|
191
|
+
expect(clonedObj).toEqual(obj);
|
|
192
|
+
expect(clonedObj).not.toBe(obj);
|
|
193
|
+
const nested = {
|
|
194
|
+
a: 1,
|
|
195
|
+
b: [
|
|
196
|
+
1,
|
|
197
|
+
2,
|
|
198
|
+
{ c: 3 }
|
|
199
|
+
]
|
|
200
|
+
};
|
|
201
|
+
const clonedNested = deepPlainClone(nested);
|
|
202
|
+
expect(clonedNested).toEqual(nested);
|
|
203
|
+
expect(clonedNested).not.toBe(nested);
|
|
204
|
+
expect(clonedNested.b).not.toBe(nested.b);
|
|
205
|
+
expect(clonedNested.b[2]).not.toBe(nested.b[2]);
|
|
206
|
+
expect(() => deepPlainClone(() => {})).toThrow();
|
|
207
|
+
expect(() => deepPlainClone(Symbol())).toThrow();
|
|
208
|
+
});
|
|
209
|
+
function deepMerge(baseObj, mergeObj) {
|
|
210
|
+
if ([
|
|
211
|
+
baseObj,
|
|
212
|
+
mergeObj,
|
|
213
|
+
...Object.values(baseObj),
|
|
214
|
+
...Object.values(mergeObj)
|
|
215
|
+
].some((o) => !isCloneable(o))) throw new HexclaveAssertionError("deepMerge does not support functions or symbols", {
|
|
216
|
+
baseObj,
|
|
217
|
+
mergeObj
|
|
218
|
+
});
|
|
219
|
+
const res = shallowClone(baseObj);
|
|
220
|
+
for (const [key, mergeValue] of Object.entries(mergeObj)) {
|
|
221
|
+
if (has(res, key)) {
|
|
222
|
+
const baseValue = get(res, key);
|
|
223
|
+
if (isObjectLike(baseValue) && isObjectLike(mergeValue)) {
|
|
224
|
+
set(res, key, deepMerge(baseValue, mergeValue));
|
|
225
|
+
continue;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
set(res, key, mergeValue);
|
|
229
|
+
}
|
|
230
|
+
return res;
|
|
231
|
+
}
|
|
232
|
+
(void 0)?.test("deepMerge", ({ expect }) => {
|
|
233
|
+
expect(deepMerge({ a: 1 }, { b: 2 })).toEqual({
|
|
234
|
+
a: 1,
|
|
235
|
+
b: 2
|
|
236
|
+
});
|
|
237
|
+
expect(deepMerge({ a: 1 }, { a: 2 })).toEqual({ a: 2 });
|
|
238
|
+
expect(deepMerge({
|
|
239
|
+
a: 1,
|
|
240
|
+
b: 2
|
|
241
|
+
}, {
|
|
242
|
+
b: 3,
|
|
243
|
+
c: 4
|
|
244
|
+
})).toEqual({
|
|
245
|
+
a: 1,
|
|
246
|
+
b: 3,
|
|
247
|
+
c: 4
|
|
248
|
+
});
|
|
249
|
+
expect(deepMerge({
|
|
250
|
+
a: {
|
|
251
|
+
x: 1,
|
|
252
|
+
y: 2
|
|
253
|
+
},
|
|
254
|
+
b: 3
|
|
255
|
+
}, {
|
|
256
|
+
a: {
|
|
257
|
+
y: 3,
|
|
258
|
+
z: 4
|
|
259
|
+
},
|
|
260
|
+
c: 5
|
|
261
|
+
})).toEqual({
|
|
262
|
+
a: {
|
|
263
|
+
x: 1,
|
|
264
|
+
y: 3,
|
|
265
|
+
z: 4
|
|
266
|
+
},
|
|
267
|
+
b: 3,
|
|
268
|
+
c: 5
|
|
269
|
+
});
|
|
270
|
+
expect(deepMerge({
|
|
271
|
+
a: [1, 2],
|
|
272
|
+
b: 3
|
|
273
|
+
}, {
|
|
274
|
+
a: [3, 4],
|
|
275
|
+
c: 5
|
|
276
|
+
})).toEqual({
|
|
277
|
+
a: [3, 4],
|
|
278
|
+
b: 3,
|
|
279
|
+
c: 5
|
|
280
|
+
});
|
|
281
|
+
expect(deepMerge({
|
|
282
|
+
a: { x: 1 },
|
|
283
|
+
b: null
|
|
284
|
+
}, {
|
|
285
|
+
a: { y: 2 },
|
|
286
|
+
b: { z: 3 }
|
|
287
|
+
})).toEqual({
|
|
288
|
+
a: {
|
|
289
|
+
x: 1,
|
|
290
|
+
y: 2
|
|
291
|
+
},
|
|
292
|
+
b: { z: 3 }
|
|
293
|
+
});
|
|
294
|
+
expect(deepMerge({
|
|
295
|
+
a: 1,
|
|
296
|
+
b: void 0
|
|
297
|
+
}, {
|
|
298
|
+
b: 2,
|
|
299
|
+
c: 3
|
|
300
|
+
})).toEqual({
|
|
301
|
+
a: 1,
|
|
302
|
+
b: 2,
|
|
303
|
+
c: 3
|
|
304
|
+
});
|
|
305
|
+
expect(deepMerge({
|
|
306
|
+
a: {
|
|
307
|
+
x: { deep: 1 },
|
|
308
|
+
y: [1, 2]
|
|
309
|
+
},
|
|
310
|
+
b: 2
|
|
311
|
+
}, {
|
|
312
|
+
a: {
|
|
313
|
+
x: { deeper: 3 },
|
|
314
|
+
y: [3, 4]
|
|
315
|
+
},
|
|
316
|
+
c: 3
|
|
317
|
+
})).toEqual({
|
|
318
|
+
a: {
|
|
319
|
+
x: {
|
|
320
|
+
deep: 1,
|
|
321
|
+
deeper: 3
|
|
322
|
+
},
|
|
323
|
+
y: [3, 4]
|
|
324
|
+
},
|
|
325
|
+
b: 2,
|
|
326
|
+
c: 3
|
|
327
|
+
});
|
|
328
|
+
expect(deepMerge({}, { a: 1 })).toEqual({ a: 1 });
|
|
329
|
+
expect(deepMerge({ a: 1 }, {})).toEqual({ a: 1 });
|
|
330
|
+
expect(deepMerge({}, {})).toEqual({});
|
|
331
|
+
const base = {
|
|
332
|
+
a: { x: 1 },
|
|
333
|
+
b: 2
|
|
334
|
+
};
|
|
335
|
+
const merge = {
|
|
336
|
+
a: { y: 2 },
|
|
337
|
+
c: 3
|
|
338
|
+
};
|
|
339
|
+
const baseClone = deepPlainClone(base);
|
|
340
|
+
const mergeClone = deepPlainClone(merge);
|
|
341
|
+
const result = deepMerge(base, merge);
|
|
342
|
+
expect(base).toEqual(baseClone);
|
|
343
|
+
expect(merge).toEqual(mergeClone);
|
|
344
|
+
expect(result).toEqual({
|
|
345
|
+
a: {
|
|
346
|
+
x: 1,
|
|
347
|
+
y: 2
|
|
348
|
+
},
|
|
349
|
+
b: 2,
|
|
350
|
+
c: 3
|
|
351
|
+
});
|
|
352
|
+
expect(() => deepMerge({ a: () => {} }, { b: 2 })).toThrow();
|
|
353
|
+
expect(() => deepMerge({ a: 1 }, { b: () => {} })).toThrow();
|
|
354
|
+
expect(() => deepMerge({ a: Symbol() }, { b: 2 })).toThrow();
|
|
355
|
+
expect(() => deepMerge({ a: 1 }, { b: Symbol() })).toThrow();
|
|
356
|
+
});
|
|
357
|
+
function typedEntries(obj) {
|
|
358
|
+
return Object.entries(obj);
|
|
359
|
+
}
|
|
360
|
+
(void 0)?.test("typedEntries", ({ expect }) => {
|
|
361
|
+
expect(typedEntries({})).toEqual([]);
|
|
362
|
+
expect(typedEntries({
|
|
363
|
+
a: 1,
|
|
364
|
+
b: 2
|
|
365
|
+
})).toEqual([["a", 1], ["b", 2]]);
|
|
366
|
+
expect(typedEntries({
|
|
367
|
+
a: "hello",
|
|
368
|
+
b: true,
|
|
369
|
+
c: null
|
|
370
|
+
})).toEqual([
|
|
371
|
+
["a", "hello"],
|
|
372
|
+
["b", true],
|
|
373
|
+
["c", null]
|
|
374
|
+
]);
|
|
375
|
+
const entries = typedEntries({
|
|
376
|
+
a: 1,
|
|
377
|
+
b: () => "test"
|
|
378
|
+
});
|
|
379
|
+
expect(entries.length).toBe(2);
|
|
380
|
+
expect(entries[0][0]).toBe("a");
|
|
381
|
+
expect(entries[0][1]).toBe(1);
|
|
382
|
+
expect(entries[1][0]).toBe("b");
|
|
383
|
+
expect(typeof entries[1][1]).toBe("function");
|
|
384
|
+
});
|
|
385
|
+
function typedFromEntries(entries) {
|
|
386
|
+
return Object.fromEntries(entries);
|
|
387
|
+
}
|
|
388
|
+
(void 0)?.test("typedFromEntries", ({ expect }) => {
|
|
389
|
+
expect(typedFromEntries([])).toEqual({});
|
|
390
|
+
expect(typedFromEntries([["a", 1], ["b", 2]])).toEqual({
|
|
391
|
+
a: 1,
|
|
392
|
+
b: 2
|
|
393
|
+
});
|
|
394
|
+
expect(typedFromEntries([
|
|
395
|
+
["a", "hello"],
|
|
396
|
+
["b", true],
|
|
397
|
+
["c", null]
|
|
398
|
+
])).toEqual({
|
|
399
|
+
a: "hello",
|
|
400
|
+
b: true,
|
|
401
|
+
c: null
|
|
402
|
+
});
|
|
403
|
+
const fn = () => "test";
|
|
404
|
+
const obj = typedFromEntries([["a", 1], ["b", fn]]);
|
|
405
|
+
expect(obj.a).toBe(1);
|
|
406
|
+
expect(typeof obj.b).toBe("function");
|
|
407
|
+
expect(obj.b()).toBe("test");
|
|
408
|
+
});
|
|
409
|
+
function typedKeys(obj) {
|
|
410
|
+
return Object.keys(obj);
|
|
411
|
+
}
|
|
412
|
+
(void 0)?.test("typedKeys", ({ expect }) => {
|
|
413
|
+
expect(typedKeys({})).toEqual([]);
|
|
414
|
+
expect(typedKeys({
|
|
415
|
+
a: 1,
|
|
416
|
+
b: 2
|
|
417
|
+
})).toEqual(["a", "b"]);
|
|
418
|
+
expect(typedKeys({
|
|
419
|
+
a: "hello",
|
|
420
|
+
b: true,
|
|
421
|
+
c: null
|
|
422
|
+
})).toEqual([
|
|
423
|
+
"a",
|
|
424
|
+
"b",
|
|
425
|
+
"c"
|
|
426
|
+
]);
|
|
427
|
+
expect(typedKeys({
|
|
428
|
+
a: 1,
|
|
429
|
+
b: () => "test"
|
|
430
|
+
})).toEqual(["a", "b"]);
|
|
431
|
+
});
|
|
432
|
+
function typedValues(obj) {
|
|
433
|
+
return Object.values(obj);
|
|
434
|
+
}
|
|
435
|
+
(void 0)?.test("typedValues", ({ expect }) => {
|
|
436
|
+
expect(typedValues({})).toEqual([]);
|
|
437
|
+
expect(typedValues({
|
|
438
|
+
a: 1,
|
|
439
|
+
b: 2
|
|
440
|
+
})).toEqual([1, 2]);
|
|
441
|
+
expect(typedValues({
|
|
442
|
+
a: "hello",
|
|
443
|
+
b: true,
|
|
444
|
+
c: null
|
|
445
|
+
})).toEqual([
|
|
446
|
+
"hello",
|
|
447
|
+
true,
|
|
448
|
+
null
|
|
449
|
+
]);
|
|
450
|
+
const fn = () => "test";
|
|
451
|
+
const values = typedValues({
|
|
452
|
+
a: 1,
|
|
453
|
+
b: fn
|
|
454
|
+
});
|
|
455
|
+
expect(values.length).toBe(2);
|
|
456
|
+
expect(values[0]).toBe(1);
|
|
457
|
+
expect(typeof values[1]).toBe("function");
|
|
458
|
+
const fnValue = values[1];
|
|
459
|
+
expect(fnValue()).toBe("test");
|
|
460
|
+
});
|
|
461
|
+
function typedAssign(target, source) {
|
|
462
|
+
return Object.assign(target, source);
|
|
463
|
+
}
|
|
464
|
+
(void 0)?.test("typedAssign", ({ expect }) => {
|
|
465
|
+
const emptyTarget = {};
|
|
466
|
+
const emptyResult = typedAssign(emptyTarget, { a: 1 });
|
|
467
|
+
expect(emptyResult).toEqual({ a: 1 });
|
|
468
|
+
expect(emptyResult).toBe(emptyTarget);
|
|
469
|
+
const target = {
|
|
470
|
+
a: 1,
|
|
471
|
+
b: 2
|
|
472
|
+
};
|
|
473
|
+
const result = typedAssign(target, {
|
|
474
|
+
c: 3,
|
|
475
|
+
d: 4
|
|
476
|
+
});
|
|
477
|
+
expect(result).toEqual({
|
|
478
|
+
a: 1,
|
|
479
|
+
b: 2,
|
|
480
|
+
c: 3,
|
|
481
|
+
d: 4
|
|
482
|
+
});
|
|
483
|
+
expect(result).toBe(target);
|
|
484
|
+
const targetWithOverlap = {
|
|
485
|
+
a: 1,
|
|
486
|
+
b: 2
|
|
487
|
+
};
|
|
488
|
+
const resultWithOverlap = typedAssign(targetWithOverlap, {
|
|
489
|
+
b: 3,
|
|
490
|
+
c: 4
|
|
491
|
+
});
|
|
492
|
+
expect(resultWithOverlap).toEqual({
|
|
493
|
+
a: 1,
|
|
494
|
+
b: 3,
|
|
495
|
+
c: 4
|
|
496
|
+
});
|
|
497
|
+
expect(resultWithOverlap).toBe(targetWithOverlap);
|
|
498
|
+
});
|
|
499
|
+
/**
|
|
500
|
+
* Returns a new object with all undefined values removed. Useful when spreading optional parameters on an object, as
|
|
501
|
+
* TypeScript's `Partial<XYZ>` type allows `undefined` values.
|
|
502
|
+
*/
|
|
503
|
+
function filterUndefined(obj) {
|
|
504
|
+
return Object.fromEntries(Object.entries(obj).filter(([, v]) => v !== void 0));
|
|
505
|
+
}
|
|
506
|
+
(void 0)?.test("filterUndefined", ({ expect }) => {
|
|
507
|
+
expect(filterUndefined({})).toEqual({});
|
|
508
|
+
expect(filterUndefined({
|
|
509
|
+
a: 1,
|
|
510
|
+
b: 2
|
|
511
|
+
})).toEqual({
|
|
512
|
+
a: 1,
|
|
513
|
+
b: 2
|
|
514
|
+
});
|
|
515
|
+
expect(filterUndefined({
|
|
516
|
+
a: 1,
|
|
517
|
+
b: void 0
|
|
518
|
+
})).toEqual({ a: 1 });
|
|
519
|
+
expect(filterUndefined({
|
|
520
|
+
a: void 0,
|
|
521
|
+
b: void 0
|
|
522
|
+
})).toEqual({});
|
|
523
|
+
expect(filterUndefined({
|
|
524
|
+
a: null,
|
|
525
|
+
b: void 0
|
|
526
|
+
})).toEqual({ a: null });
|
|
527
|
+
expect(filterUndefined({
|
|
528
|
+
a: 0,
|
|
529
|
+
b: "",
|
|
530
|
+
c: false,
|
|
531
|
+
d: void 0
|
|
532
|
+
})).toEqual({
|
|
533
|
+
a: 0,
|
|
534
|
+
b: "",
|
|
535
|
+
c: false
|
|
536
|
+
});
|
|
537
|
+
});
|
|
538
|
+
/**
|
|
539
|
+
* Returns a new object with all undefined and null values removed. Useful when spreading optional parameters on an object, as
|
|
540
|
+
* TypeScript's `Partial<XYZ>` type allows `undefined` values.
|
|
541
|
+
*/
|
|
542
|
+
function filterUndefinedOrNull(obj) {
|
|
543
|
+
return Object.fromEntries(Object.entries(obj).filter(([, v]) => v !== void 0 && v !== null));
|
|
544
|
+
}
|
|
545
|
+
(void 0)?.test("filterUndefinedOrNull", ({ expect }) => {
|
|
546
|
+
expect(filterUndefinedOrNull({})).toEqual({});
|
|
547
|
+
expect(filterUndefinedOrNull({
|
|
548
|
+
a: 1,
|
|
549
|
+
b: 2
|
|
550
|
+
})).toEqual({
|
|
551
|
+
a: 1,
|
|
552
|
+
b: 2
|
|
553
|
+
});
|
|
554
|
+
});
|
|
555
|
+
typeAssertIs()();
|
|
556
|
+
function deepFilterUndefined(obj) {
|
|
557
|
+
return Object.fromEntries(Object.entries(obj).filter(([, v]) => v !== void 0).map(([k, v]) => [k, isObjectLike(v) ? deepFilterUndefined(v) : v]));
|
|
558
|
+
}
|
|
559
|
+
(void 0)?.test("deepFilterUndefined", ({ expect }) => {
|
|
560
|
+
expect(deepFilterUndefined({
|
|
561
|
+
a: 1,
|
|
562
|
+
b: void 0
|
|
563
|
+
})).toEqual({ a: 1 });
|
|
564
|
+
});
|
|
565
|
+
function pick(obj, keys) {
|
|
566
|
+
return Object.fromEntries(Object.entries(obj).filter(([k]) => keys.includes(k)));
|
|
567
|
+
}
|
|
568
|
+
(void 0)?.test("pick", ({ expect }) => {
|
|
569
|
+
const obj = {
|
|
570
|
+
a: 1,
|
|
571
|
+
b: 2,
|
|
572
|
+
c: 3,
|
|
573
|
+
d: 4
|
|
574
|
+
};
|
|
575
|
+
expect(pick(obj, ["a", "c"])).toEqual({
|
|
576
|
+
a: 1,
|
|
577
|
+
c: 3
|
|
578
|
+
});
|
|
579
|
+
expect(pick(obj, [])).toEqual({});
|
|
580
|
+
expect(pick(obj, ["a", "e"])).toEqual({ a: 1 });
|
|
581
|
+
expect(pick({}, ["a"])).toEqual({});
|
|
582
|
+
});
|
|
583
|
+
function omit(obj, keys) {
|
|
584
|
+
if (!Array.isArray(keys)) throw new HexclaveAssertionError("omit: keys must be an array", {
|
|
585
|
+
obj,
|
|
586
|
+
keys
|
|
587
|
+
});
|
|
588
|
+
return Object.fromEntries(Object.entries(obj).filter(([k]) => !keys.includes(k)));
|
|
589
|
+
}
|
|
590
|
+
(void 0)?.test("omit", ({ expect }) => {
|
|
591
|
+
const obj = {
|
|
592
|
+
a: 1,
|
|
593
|
+
b: 2,
|
|
594
|
+
c: 3,
|
|
595
|
+
d: 4
|
|
596
|
+
};
|
|
597
|
+
expect(omit(obj, ["a", "c"])).toEqual({
|
|
598
|
+
b: 2,
|
|
599
|
+
d: 4
|
|
600
|
+
});
|
|
601
|
+
expect(omit(obj, [])).toEqual(obj);
|
|
602
|
+
expect(omit(obj, ["a", "e"])).toEqual({
|
|
603
|
+
b: 2,
|
|
604
|
+
c: 3,
|
|
605
|
+
d: 4
|
|
606
|
+
});
|
|
607
|
+
expect(omit({}, ["a"])).toEqual({});
|
|
608
|
+
});
|
|
609
|
+
function split(obj, keys) {
|
|
610
|
+
return [pick(obj, keys), omit(obj, keys)];
|
|
611
|
+
}
|
|
612
|
+
(void 0)?.test("split", ({ expect }) => {
|
|
613
|
+
const obj = {
|
|
614
|
+
a: 1,
|
|
615
|
+
b: 2,
|
|
616
|
+
c: 3,
|
|
617
|
+
d: 4
|
|
618
|
+
};
|
|
619
|
+
expect(split(obj, ["a", "c"])).toEqual([{
|
|
620
|
+
a: 1,
|
|
621
|
+
c: 3
|
|
622
|
+
}, {
|
|
623
|
+
b: 2,
|
|
624
|
+
d: 4
|
|
625
|
+
}]);
|
|
626
|
+
expect(split(obj, [])).toEqual([{}, obj]);
|
|
627
|
+
expect(split(obj, ["a", "e"])).toEqual([{ a: 1 }, {
|
|
628
|
+
b: 2,
|
|
629
|
+
c: 3,
|
|
630
|
+
d: 4
|
|
631
|
+
}]);
|
|
632
|
+
expect(split({}, ["a"])).toEqual([{}, {}]);
|
|
633
|
+
});
|
|
634
|
+
function mapValues(obj, fn) {
|
|
635
|
+
if (Array.isArray(obj)) return obj.map((v, i) => fn(v, i));
|
|
636
|
+
return Object.fromEntries(Object.entries(obj).map(([k, v]) => [k, fn(v, k)]));
|
|
637
|
+
}
|
|
638
|
+
(void 0)?.test("mapValues", ({ expect }) => {
|
|
639
|
+
expect(mapValues({
|
|
640
|
+
a: 1,
|
|
641
|
+
b: 2
|
|
642
|
+
}, (v) => v * 2)).toEqual({
|
|
643
|
+
a: 2,
|
|
644
|
+
b: 4
|
|
645
|
+
});
|
|
646
|
+
expect(mapValues([
|
|
647
|
+
1,
|
|
648
|
+
2,
|
|
649
|
+
3
|
|
650
|
+
], (v) => v * 2)).toEqual([
|
|
651
|
+
2,
|
|
652
|
+
4,
|
|
653
|
+
6
|
|
654
|
+
]);
|
|
655
|
+
});
|
|
656
|
+
function sortKeys(obj) {
|
|
657
|
+
if (Array.isArray(obj)) return [...obj];
|
|
658
|
+
return Object.fromEntries(Object.entries(obj).sort(([a], [b]) => stringCompare(a, b)));
|
|
659
|
+
}
|
|
660
|
+
(void 0)?.test("sortKeys", ({ expect }) => {
|
|
661
|
+
expect(Object.entries(sortKeys({
|
|
662
|
+
"1": 0,
|
|
663
|
+
"10": 1,
|
|
664
|
+
b: 2,
|
|
665
|
+
"2": 3,
|
|
666
|
+
a: 4,
|
|
667
|
+
"-3.33": 5,
|
|
668
|
+
"-4": 6,
|
|
669
|
+
"-3": 7,
|
|
670
|
+
abc: 8,
|
|
671
|
+
"a-b": 9,
|
|
672
|
+
ab: 10,
|
|
673
|
+
ac: 11,
|
|
674
|
+
aa: 12,
|
|
675
|
+
aab: 13
|
|
676
|
+
}))).toEqual([
|
|
677
|
+
["1", 0],
|
|
678
|
+
["2", 3],
|
|
679
|
+
["10", 1],
|
|
680
|
+
["-3", 7],
|
|
681
|
+
["-3.33", 5],
|
|
682
|
+
["-4", 6],
|
|
683
|
+
["a", 4],
|
|
684
|
+
["a-b", 9],
|
|
685
|
+
["aa", 12],
|
|
686
|
+
["aab", 13],
|
|
687
|
+
["ab", 10],
|
|
688
|
+
["abc", 8],
|
|
689
|
+
["ac", 11],
|
|
690
|
+
["b", 2]
|
|
691
|
+
]);
|
|
692
|
+
});
|
|
693
|
+
function deepSortKeys(obj) {
|
|
694
|
+
return sortKeys(mapValues(obj, (v) => isObjectLike(v) ? deepSortKeys(v) : v));
|
|
695
|
+
}
|
|
696
|
+
(void 0)?.test("deepSortKeys", ({ expect }) => {
|
|
697
|
+
const sorted = deepSortKeys({
|
|
698
|
+
h: {
|
|
699
|
+
i: {
|
|
700
|
+
k: 9,
|
|
701
|
+
j: 8
|
|
702
|
+
},
|
|
703
|
+
l: 10
|
|
704
|
+
},
|
|
705
|
+
b: {
|
|
706
|
+
d: 3,
|
|
707
|
+
c: 2
|
|
708
|
+
},
|
|
709
|
+
a: 1,
|
|
710
|
+
e: [
|
|
711
|
+
4,
|
|
712
|
+
5,
|
|
713
|
+
{
|
|
714
|
+
g: 7,
|
|
715
|
+
f: 6
|
|
716
|
+
}
|
|
717
|
+
]
|
|
718
|
+
});
|
|
719
|
+
expect(Object.entries(sorted)).toEqual([
|
|
720
|
+
["a", 1],
|
|
721
|
+
["b", {
|
|
722
|
+
c: 2,
|
|
723
|
+
d: 3
|
|
724
|
+
}],
|
|
725
|
+
["e", [
|
|
726
|
+
4,
|
|
727
|
+
5,
|
|
728
|
+
{
|
|
729
|
+
f: 6,
|
|
730
|
+
g: 7
|
|
731
|
+
}
|
|
732
|
+
]],
|
|
733
|
+
["h", {
|
|
734
|
+
i: {
|
|
735
|
+
j: 8,
|
|
736
|
+
k: 9
|
|
737
|
+
},
|
|
738
|
+
l: 10
|
|
739
|
+
}]
|
|
740
|
+
]);
|
|
741
|
+
expect(Object.entries(sorted.b)).toEqual([["c", 2], ["d", 3]]);
|
|
742
|
+
expect(Object.entries(sorted.e[2])).toEqual([["f", 6], ["g", 7]]);
|
|
743
|
+
expect(Object.entries(sorted.h)).toEqual([["i", {
|
|
744
|
+
j: 8,
|
|
745
|
+
k: 9
|
|
746
|
+
}], ["l", 10]]);
|
|
747
|
+
expect(Object.entries(sorted.h.i)).toEqual([["j", 8], ["k", 9]]);
|
|
748
|
+
});
|
|
749
|
+
function set(obj, key, value) {
|
|
750
|
+
if (!isObjectLike(obj)) throw new HexclaveAssertionError(`set: obj is not an object (found: ${obj === null ? "null" : typeof obj})`, {
|
|
751
|
+
obj,
|
|
752
|
+
key,
|
|
753
|
+
value
|
|
754
|
+
});
|
|
755
|
+
Object.defineProperty(obj, key, {
|
|
756
|
+
value,
|
|
757
|
+
writable: true,
|
|
758
|
+
configurable: true,
|
|
759
|
+
enumerable: true
|
|
760
|
+
});
|
|
761
|
+
}
|
|
762
|
+
function get(obj, key) {
|
|
763
|
+
if (obj == null) throw new HexclaveAssertionError("get: obj is null or undefined", {
|
|
764
|
+
obj,
|
|
765
|
+
key
|
|
766
|
+
});
|
|
767
|
+
const descriptor = Object.getOwnPropertyDescriptor(obj, key);
|
|
768
|
+
if (!descriptor) throw new HexclaveAssertionError(`get: key ${String(key)} does not exist`, {
|
|
769
|
+
obj,
|
|
770
|
+
key
|
|
771
|
+
});
|
|
772
|
+
return descriptor.value;
|
|
773
|
+
}
|
|
774
|
+
function getOrUndefined(obj, key) {
|
|
775
|
+
if (obj == null) throw new HexclaveAssertionError("getOrUndefined: obj is null or undefined", {
|
|
776
|
+
obj,
|
|
777
|
+
key
|
|
778
|
+
});
|
|
779
|
+
return has(obj, key) ? get(obj, key) : void 0;
|
|
780
|
+
}
|
|
781
|
+
function has(obj, key) {
|
|
782
|
+
if (obj == null) throw new HexclaveAssertionError("has: obj is null or undefined", {
|
|
783
|
+
obj,
|
|
784
|
+
key
|
|
785
|
+
});
|
|
786
|
+
return Object.prototype.hasOwnProperty.call(obj, key);
|
|
787
|
+
}
|
|
788
|
+
(void 0)?.test("has", ({ expect }) => {
|
|
789
|
+
const obj = {
|
|
790
|
+
a: 1,
|
|
791
|
+
b: void 0,
|
|
792
|
+
c: null
|
|
793
|
+
};
|
|
794
|
+
expect(has(obj, "a")).toBe(true);
|
|
795
|
+
expect(has(obj, "b")).toBe(true);
|
|
796
|
+
expect(has(obj, "c")).toBe(true);
|
|
797
|
+
expect(has(obj, "d")).toBe(false);
|
|
798
|
+
});
|
|
799
|
+
function hasAndNotUndefined(obj, key) {
|
|
800
|
+
return has(obj, key) && get(obj, key) !== void 0;
|
|
801
|
+
}
|
|
802
|
+
function deleteKey(obj, key) {
|
|
803
|
+
if (has(obj, key)) Reflect.deleteProperty(obj, key);
|
|
804
|
+
else throw new HexclaveAssertionError(`deleteKey: key ${String(key)} does not exist`, {
|
|
805
|
+
obj,
|
|
806
|
+
key
|
|
807
|
+
});
|
|
808
|
+
}
|
|
809
|
+
/**
|
|
810
|
+
* Returns true iff the value is an object or a function, but not null.
|
|
811
|
+
*/
|
|
812
|
+
function isObjectLike(value) {
|
|
813
|
+
return (typeof value === "object" || typeof value === "function") && value !== null;
|
|
814
|
+
}
|
|
815
|
+
|
|
816
|
+
//#endregion
|
|
817
|
+
export { deepFilterUndefined, deepMerge, deepPlainClone, deepPlainEquals, deepSortKeys, deleteKey, filterUndefined, filterUndefinedOrNull, get, getOrUndefined, has, hasAndNotUndefined, isCloneable, isNotNull, isObjectLike, mapValues, omit, pick, set, shallowClone, sortKeys, split, typedAssign, typedEntries, typedFromEntries, typedKeys, typedValues };
|
|
818
|
+
//# sourceMappingURL=objects.js.map
|