@directus/api 34.0.1 → 35.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/dist/__utils__/items-utils.js +32 -0
- package/dist/__utils__/schemas.js +297 -0
- package/dist/__utils__/snapshots.js +899 -0
- package/dist/_virtual/rolldown_runtime.js +38 -0
- package/dist/ai/chat/constants/system-prompt.js +5 -1
- package/dist/ai/chat/controllers/chat.post.js +69 -61
- package/dist/ai/chat/lib/create-ui-stream.js +71 -45
- package/dist/ai/chat/lib/transform-file-parts.js +43 -32
- package/dist/ai/chat/middleware/load-settings.js +42 -41
- package/dist/ai/chat/models/chat-request.js +77 -69
- package/dist/ai/chat/models/providers.js +23 -18
- package/dist/ai/chat/router.js +10 -5
- package/dist/ai/chat/utils/chat-request-tool-to-ai-sdk-tool.js +40 -36
- package/dist/ai/chat/utils/fix-error-tool-calls.js +30 -28
- package/dist/ai/chat/utils/format-context.js +87 -89
- package/dist/ai/chat/utils/parse-json-schema-7.js +84 -73
- package/dist/ai/devtools/index.js +38 -0
- package/dist/ai/files/adapters/anthropic.js +29 -24
- package/dist/ai/files/adapters/google.js +60 -57
- package/dist/ai/files/adapters/index.js +5 -3
- package/dist/ai/files/adapters/openai.js +26 -21
- package/dist/ai/files/controllers/upload.js +101 -95
- package/dist/ai/files/lib/fetch-provider.js +27 -22
- package/dist/ai/files/lib/upload-to-provider.js +32 -25
- package/dist/ai/files/router.js +10 -5
- package/dist/ai/files/types.js +1 -1
- package/dist/ai/mcp/index.js +3 -1
- package/dist/ai/mcp/server.js +293 -301
- package/dist/ai/mcp/transport.js +22 -18
- package/dist/ai/mcp/types.js +1 -1
- package/dist/ai/providers/anthropic-file-support.js +91 -89
- package/dist/ai/providers/anthropic-tool-search.js +33 -0
- package/dist/ai/providers/index.js +5 -3
- package/dist/ai/providers/options.js +27 -24
- package/dist/ai/providers/registry.js +65 -60
- package/dist/ai/providers/types.js +1 -1
- package/dist/ai/telemetry/braintrust.js +27 -0
- package/dist/ai/telemetry/index.js +79 -0
- package/dist/ai/telemetry/langfuse.js +67 -0
- package/dist/ai/tools/assets/index.js +56 -55
- package/dist/ai/tools/collections/index.js +96 -89
- package/dist/ai/tools/define-tool.js +6 -2
- package/dist/ai/tools/fields/index.js +157 -162
- package/dist/ai/tools/files/index.js +109 -104
- package/dist/ai/tools/flows/index.js +99 -87
- package/dist/ai/tools/folders/index.js +103 -98
- package/dist/ai/tools/index.js +32 -28
- package/dist/ai/tools/items/index.js +149 -146
- package/dist/ai/tools/operations/index.js +88 -80
- package/dist/ai/tools/relations/index.js +100 -91
- package/dist/ai/tools/schema/index.js +240 -302
- package/dist/ai/tools/schema.js +198 -205
- package/dist/ai/tools/system/index.js +23 -22
- package/dist/ai/tools/trigger-flow/index.js +62 -49
- package/dist/ai/tools/types.js +1 -1
- package/dist/ai/tools/utils.js +20 -15
- package/dist/app.js +296 -288
- package/dist/auth/auth.js +46 -41
- package/dist/auth/drivers/index.js +7 -5
- package/dist/auth/drivers/ldap.js +314 -342
- package/dist/auth/drivers/local.js +86 -89
- package/dist/auth/drivers/oauth2.js +369 -385
- package/dist/auth/drivers/openid.js +429 -447
- package/dist/auth/drivers/saml.js +172 -172
- package/dist/auth/utils/generate-callback-url.js +38 -35
- package/dist/auth/utils/resolve-login-redirect.js +54 -60
- package/dist/auth.js +66 -60
- package/dist/bus/index.js +3 -1
- package/dist/bus/lib/use-bus.js +29 -19
- package/dist/cache.js +136 -124
- package/dist/cli/commands/bootstrap/index.js +61 -59
- package/dist/cli/commands/cache/clear.js +33 -0
- package/dist/cli/commands/count/index.js +25 -21
- package/dist/cli/commands/database/install.js +20 -16
- package/dist/cli/commands/database/migrate.js +26 -23
- package/dist/cli/commands/init/index.js +116 -100
- package/dist/cli/commands/init/questions.js +86 -48
- package/dist/cli/commands/roles/create.js +51 -37
- package/dist/cli/commands/schema/apply.js +188 -203
- package/dist/cli/commands/schema/snapshot.js +55 -56
- package/dist/cli/commands/security/key.js +9 -4
- package/dist/cli/commands/security/secret.js +8 -4
- package/dist/cli/commands/users/create.js +35 -23
- package/dist/cli/commands/users/passwd.js +37 -35
- package/dist/cli/index.js +53 -90
- package/dist/cli/load-extensions.js +25 -19
- package/dist/cli/run.js +9 -7
- package/dist/cli/utils/create-db-connection.js +56 -54
- package/dist/cli/utils/create-env/index.js +33 -35
- package/dist/cli/utils/drivers.js +16 -13
- package/dist/constants.js +132 -89
- package/dist/controllers/access.js +137 -140
- package/dist/controllers/activity.js +47 -46
- package/dist/controllers/assets.js +200 -241
- package/dist/controllers/auth.js +175 -175
- package/dist/controllers/collections.js +99 -99
- package/dist/controllers/comments.js +136 -138
- package/dist/controllers/dashboards.js +131 -132
- package/dist/controllers/deployment-webhooks.js +92 -93
- package/dist/controllers/deployment.js +330 -350
- package/dist/controllers/extensions.js +205 -199
- package/dist/controllers/fields.js +155 -164
- package/dist/controllers/files.js +250 -269
- package/dist/controllers/flows.js +150 -151
- package/dist/controllers/folders.js +138 -141
- package/dist/controllers/graphql.js +33 -28
- package/dist/controllers/items.js +157 -172
- package/dist/controllers/mcp.js +33 -31
- package/dist/controllers/metrics.js +33 -29
- package/dist/controllers/not-found.js +35 -28
- package/dist/controllers/notifications.js +138 -141
- package/dist/controllers/operations.js +131 -132
- package/dist/controllers/panels.js +131 -132
- package/dist/controllers/permissions.js +162 -166
- package/dist/controllers/policies.js +155 -160
- package/dist/controllers/presets.js +138 -141
- package/dist/controllers/relations.js +96 -102
- package/dist/controllers/revisions.js +40 -32
- package/dist/controllers/roles.js +152 -152
- package/dist/controllers/schema.js +97 -92
- package/dist/controllers/server.js +84 -81
- package/dist/controllers/settings.js +44 -40
- package/dist/controllers/shares.js +180 -213
- package/dist/controllers/translations.js +138 -141
- package/dist/controllers/tus.js +70 -72
- package/dist/controllers/users.js +303 -308
- package/dist/controllers/utils.js +149 -134
- package/dist/controllers/versions.js +178 -176
- package/dist/database/errors/dialects/mssql.js +137 -153
- package/dist/database/errors/dialects/mysql.js +123 -137
- package/dist/database/errors/dialects/oracle.js +24 -20
- package/dist/database/errors/dialects/postgres.js +91 -94
- package/dist/database/errors/dialects/sqlite.js +48 -46
- package/dist/database/errors/dialects/types.js +1 -1
- package/dist/database/errors/translate.js +47 -42
- package/dist/database/get-ast-from-query/get-ast-from-query.js +51 -52
- package/dist/database/get-ast-from-query/lib/convert-wildcards.js +74 -78
- package/dist/database/get-ast-from-query/lib/parse-fields.js +231 -246
- package/dist/database/get-ast-from-query/utils/get-allowed-sort.js +31 -34
- package/dist/database/get-ast-from-query/utils/get-deep-query.js +20 -15
- package/dist/database/get-ast-from-query/utils/get-related-collection.js +16 -12
- package/dist/database/helpers/capabilities/dialects/default.js +7 -3
- package/dist/database/helpers/capabilities/dialects/mysql.js +11 -9
- package/dist/database/helpers/capabilities/dialects/postgres.js +14 -14
- package/dist/database/helpers/capabilities/index.js +18 -7
- package/dist/database/helpers/capabilities/types.js +20 -15
- package/dist/database/helpers/date/dialects/default.js +7 -3
- package/dist/database/helpers/date/dialects/mssql.js +13 -8
- package/dist/database/helpers/date/dialects/mysql.js +17 -12
- package/dist/database/helpers/date/dialects/oracle.js +27 -27
- package/dist/database/helpers/date/dialects/sqlite.js +27 -28
- package/dist/database/helpers/date/index.js +20 -7
- package/dist/database/helpers/date/types.js +25 -22
- package/dist/database/helpers/fn/dialects/mssql.js +64 -63
- package/dist/database/helpers/fn/dialects/mysql.js +70 -67
- package/dist/database/helpers/fn/dialects/oracle.js +64 -63
- package/dist/database/helpers/fn/dialects/postgres.js +87 -84
- package/dist/database/helpers/fn/dialects/sqlite.js +61 -78
- package/dist/database/helpers/fn/index.js +20 -7
- package/dist/database/helpers/fn/json/parse-function.js +60 -61
- package/dist/database/helpers/fn/types.js +48 -56
- package/dist/database/helpers/geometry/dialects/mssql.js +42 -34
- package/dist/database/helpers/geometry/dialects/mysql.js +21 -12
- package/dist/database/helpers/geometry/dialects/oracle.js +49 -37
- package/dist/database/helpers/geometry/dialects/postgres.js +27 -18
- package/dist/database/helpers/geometry/dialects/redshift.js +21 -12
- package/dist/database/helpers/geometry/dialects/sqlite.js +19 -10
- package/dist/database/helpers/geometry/index.js +21 -7
- package/dist/database/helpers/geometry/types.js +59 -51
- package/dist/database/helpers/index.js +26 -21
- package/dist/database/helpers/number/dialects/default.js +7 -3
- package/dist/database/helpers/number/dialects/mssql.js +16 -11
- package/dist/database/helpers/number/dialects/oracle.js +12 -7
- package/dist/database/helpers/number/dialects/postgres.js +18 -15
- package/dist/database/helpers/number/dialects/sqlite.js +12 -7
- package/dist/database/helpers/number/index.js +20 -7
- package/dist/database/helpers/number/types.js +14 -9
- package/dist/database/helpers/number/utils/decimal-limit.js +17 -9
- package/dist/database/helpers/number/utils/maybe-stringify-big-int.js +9 -5
- package/dist/database/helpers/number/utils/number-in-range.js +18 -19
- package/dist/database/helpers/schema/dialects/cockroachdb.js +63 -81
- package/dist/database/helpers/schema/dialects/default.js +7 -3
- package/dist/database/helpers/schema/dialects/mssql.js +64 -84
- package/dist/database/helpers/schema/dialects/mysql.js +61 -103
- package/dist/database/helpers/schema/dialects/oracle.js +96 -116
- package/dist/database/helpers/schema/dialects/postgres.js +41 -52
- package/dist/database/helpers/schema/dialects/sqlite.js +31 -29
- package/dist/database/helpers/schema/index.js +22 -7
- package/dist/database/helpers/schema/types.js +151 -154
- package/dist/database/helpers/schema/utils/prep-query-params.js +38 -34
- package/dist/database/helpers/sequence/dialects/default.js +7 -3
- package/dist/database/helpers/sequence/dialects/postgres.js +23 -13
- package/dist/database/helpers/sequence/index.js +17 -7
- package/dist/database/helpers/sequence/types.js +11 -6
- package/dist/database/helpers/types.js +9 -6
- package/dist/database/index.js +255 -287
- package/dist/database/migrations/20201028A-remove-collection-foreign-keys.js +44 -40
- package/dist/database/migrations/20201029A-remove-system-relations.js +122 -120
- package/dist/database/migrations/20201029B-remove-system-collections.js +96 -91
- package/dist/database/migrations/20201029C-remove-system-fields.js +1527 -1636
- package/dist/database/migrations/20201105A-add-cascade-system-relations.js +114 -126
- package/dist/database/migrations/20201105B-change-webhook-url-type.js +15 -10
- package/dist/database/migrations/20210225A-add-relations-sort-field.js +30 -28
- package/dist/database/migrations/20210304A-remove-locked-fields.js +12 -8
- package/dist/database/migrations/20210312A-webhooks-collections-text.js +15 -10
- package/dist/database/migrations/20210331A-add-refresh-interval.js +12 -8
- package/dist/database/migrations/20210415A-make-filesize-nullable.js +18 -13
- package/dist/database/migrations/20210416A-add-collections-accountability.js +13 -9
- package/dist/database/migrations/20210422A-remove-files-interface.js +7 -5
- package/dist/database/migrations/20210506A-rename-interfaces.js +77 -70
- package/dist/database/migrations/20210510A-restructure-relations.js +26 -25
- package/dist/database/migrations/20210518A-add-foreign-key-constraints.js +83 -106
- package/dist/database/migrations/20210519A-add-system-fk-triggers.js +143 -162
- package/dist/database/migrations/20210521A-add-collections-icon-color.js +12 -8
- package/dist/database/migrations/20210525A-add-insights.js +33 -29
- package/dist/database/migrations/20210608A-add-deep-clone-config.js +12 -8
- package/dist/database/migrations/20210626A-change-filesize-bigint.js +22 -17
- package/dist/database/migrations/20210716A-add-conditions-to-fields.js +12 -8
- package/dist/database/migrations/20210721A-add-default-folder.js +16 -16
- package/dist/database/migrations/20210802A-replace-groups.js +35 -44
- package/dist/database/migrations/20210803A-add-required-to-fields.js +12 -8
- package/dist/database/migrations/20210805A-update-groups.js +26 -27
- package/dist/database/migrations/20210805B-change-image-metadata-structure.js +67 -82
- package/dist/database/migrations/20210811A-add-geometry-config.js +14 -10
- package/dist/database/migrations/20210831A-remove-limit-column.js +12 -8
- package/dist/database/migrations/20210903A-add-auth-provider.js +38 -33
- package/dist/database/migrations/20210907A-webhooks-collections-not-null.js +14 -11
- package/dist/database/migrations/20210910A-move-module-setup.js +18 -14
- package/dist/database/migrations/20210920A-webhooks-url-not-null.js +18 -19
- package/dist/database/migrations/20210924A-add-collection-organization.js +19 -17
- package/dist/database/migrations/20210927A-replace-fields-group.js +48 -48
- package/dist/database/migrations/20210927B-replace-m2m-interface.js +8 -14
- package/dist/database/migrations/20210929A-rename-login-action.js +8 -12
- package/dist/database/migrations/20211007A-update-presets.js +79 -96
- package/dist/database/migrations/20211009A-add-auth-data.js +12 -8
- package/dist/database/migrations/20211016A-add-webhook-headers.js +12 -8
- package/dist/database/migrations/20211103A-set-unique-to-user-token.js +12 -8
- package/dist/database/migrations/20211103B-update-special-geometry.js +8 -18
- package/dist/database/migrations/20211104A-remove-collections-listing.js +12 -8
- package/dist/database/migrations/20211118A-add-notifications.js +28 -23
- package/dist/database/migrations/20211211A-add-shares.js +37 -37
- package/dist/database/migrations/20211230A-add-project-descriptor.js +12 -8
- package/dist/database/migrations/20220303A-remove-default-project-color.js +20 -15
- package/dist/database/migrations/20220308A-add-bookmark-icon-and-color.js +14 -10
- package/dist/database/migrations/20220314A-add-translation-strings.js +12 -8
- package/dist/database/migrations/20220322A-rename-field-typecast-flags.js +59 -70
- package/dist/database/migrations/20220323A-add-field-validation.js +14 -10
- package/dist/database/migrations/20220325A-fix-typecast-flags.js +36 -43
- package/dist/database/migrations/20220325B-add-default-language.js +26 -21
- package/dist/database/migrations/20220402A-remove-default-value-panel-icon.js +20 -15
- package/dist/database/migrations/20220429A-add-flows.js +80 -75
- package/dist/database/migrations/20220429B-add-color-to-insights-icon.js +12 -8
- package/dist/database/migrations/20220429C-drop-non-null-from-ip-of-activity.js +12 -8
- package/dist/database/migrations/20220429D-drop-non-null-from-sender-of-notifications.js +12 -8
- package/dist/database/migrations/20220614A-rename-hook-trigger-to-event.js +8 -4
- package/dist/database/migrations/20220801A-update-notifications-timestamp-column.js +15 -12
- package/dist/database/migrations/20220802A-add-custom-aspect-ratios.js +12 -8
- package/dist/database/migrations/20220826A-add-origin-to-accountability.js +18 -14
- package/dist/database/migrations/20230401A-update-material-icons.js +22 -17
- package/dist/database/migrations/20230525A-add-preview-settings.js +12 -8
- package/dist/database/migrations/20230526A-migrate-translation-strings.js +56 -48
- package/dist/database/migrations/20230721A-require-shares-fields.js +52 -48
- package/dist/database/migrations/20230823A-add-content-versioning.js +34 -36
- package/dist/database/migrations/20230927A-themes.js +51 -47
- package/dist/database/migrations/20231009A-update-csv-fields-to-text.js +42 -38
- package/dist/database/migrations/20231009B-update-panel-options.js +64 -75
- package/dist/database/migrations/20231010A-add-extensions.js +11 -7
- package/dist/database/migrations/20231215A-add-focalpoints.js +14 -10
- package/dist/database/migrations/20240122A-add-report-url-fields.js +16 -12
- package/dist/database/migrations/20240204A-marketplace.js +98 -99
- package/dist/database/migrations/20240305A-change-useragent-type.js +16 -17
- package/dist/database/migrations/20240311A-deprecate-webhooks.js +97 -121
- package/dist/database/migrations/20240422A-public-registration.js +16 -12
- package/dist/database/migrations/20240515A-add-session-window.js +12 -8
- package/dist/database/migrations/20240701A-add-tus-data.js +14 -10
- package/dist/database/migrations/20240716A-update-files-date-fields.js +29 -27
- package/dist/database/migrations/20240806A-permissions-policies.js +202 -262
- package/dist/database/migrations/20240817A-update-icon-fields-length.js +50 -53
- package/dist/database/migrations/20240909A-separate-comments.js +53 -60
- package/dist/database/migrations/20240909B-consolidate-content-versioning.js +12 -8
- package/dist/database/migrations/20240924A-migrate-legacy-comments.js +67 -79
- package/dist/database/migrations/20240924B-populate-versioning-deltas.js +26 -31
- package/dist/database/migrations/20250224A-visual-editor.js +31 -31
- package/dist/database/migrations/20250609A-license-banner.js +17 -12
- package/dist/database/migrations/20250613A-add-project-id.js +22 -24
- package/dist/database/migrations/20250718A-add-direction.js +12 -8
- package/dist/database/migrations/20250813A-add-mcp.js +20 -16
- package/dist/database/migrations/20251012A-add-field-searchable.js +12 -8
- package/dist/database/migrations/20251014A-add-project-owner.js +40 -35
- package/dist/database/migrations/20251028A-add-retention-indexes.js +53 -40
- package/dist/database/migrations/20251103A-add-ai-settings.js +16 -12
- package/dist/database/migrations/20251224A-remove-webhooks.js +21 -17
- package/dist/database/migrations/20260110A-add-ai-provider-settings.js +45 -33
- package/dist/database/migrations/20260113A-add-revisions-index.js +49 -39
- package/dist/database/migrations/20260128A-add-collaborative-editing.js +12 -8
- package/dist/database/migrations/20260204A-add-deployment.js +34 -30
- package/dist/database/migrations/20260211A-add-deployment-webhooks.js +39 -35
- package/dist/database/migrations/run.js +113 -109
- package/dist/database/run-ast/lib/apply-query/add-join.js +81 -85
- package/dist/database/run-ast/lib/apply-query/aggregate.js +34 -23
- package/dist/database/run-ast/lib/apply-query/filter/get-filter-type.js +27 -19
- package/dist/database/run-ast/lib/apply-query/filter/index.js +136 -150
- package/dist/database/run-ast/lib/apply-query/filter/operator.js +174 -182
- package/dist/database/run-ast/lib/apply-query/filter/validate-operator.js +17 -17
- package/dist/database/run-ast/lib/apply-query/get-filter-path.js +17 -12
- package/dist/database/run-ast/lib/apply-query/get-operation.js +26 -17
- package/dist/database/run-ast/lib/apply-query/index.js +88 -88
- package/dist/database/run-ast/lib/apply-query/join-filter-with-cases.js +13 -11
- package/dist/database/run-ast/lib/apply-query/mock.js +9 -4
- package/dist/database/run-ast/lib/apply-query/pagination.js +14 -9
- package/dist/database/run-ast/lib/apply-query/search.js +75 -77
- package/dist/database/run-ast/lib/apply-query/sort.js +90 -86
- package/dist/database/run-ast/lib/get-db-query.js +181 -241
- package/dist/database/run-ast/lib/parse-current-level.js +54 -47
- package/dist/database/run-ast/modules/fetch-permitted-ast-root-fields.js +44 -27
- package/dist/database/run-ast/run-ast.js +131 -129
- package/dist/database/run-ast/types.js +1 -1
- package/dist/database/run-ast/utils/apply-case-when.js +29 -26
- package/dist/database/run-ast/utils/apply-function-to-column-name.js +29 -26
- package/dist/database/run-ast/utils/apply-parent-filters.js +58 -56
- package/dist/database/run-ast/utils/generate-alias.js +48 -52
- package/dist/database/run-ast/utils/get-column-pre-processor.js +66 -66
- package/dist/database/run-ast/utils/get-column.js +64 -64
- package/dist/database/run-ast/utils/get-field-alias.js +9 -5
- package/dist/database/run-ast/utils/get-inner-query-column-pre-processor.js +30 -23
- package/dist/database/run-ast/utils/merge-with-parent-items.js +127 -137
- package/dist/database/run-ast/utils/remove-temporary-fields.js +70 -78
- package/dist/database/run-ast/utils/with-preprocess-bindings.js +17 -14
- package/dist/database/seeds/run.js +77 -78
- package/dist/deployment/deployment.js +34 -29
- package/dist/deployment/drivers/index.js +4 -2
- package/dist/deployment/drivers/netlify.js +372 -358
- package/dist/deployment/drivers/vercel.js +276 -285
- package/dist/deployment/index.js +6 -2
- package/dist/deployment.js +66 -62
- package/dist/emitter.js +101 -89
- package/dist/extensions/index.js +12 -7
- package/dist/extensions/lib/get-extensions-path.js +13 -8
- package/dist/extensions/lib/get-extensions-settings.js +117 -128
- package/dist/extensions/lib/get-extensions.js +20 -11
- package/dist/extensions/lib/get-shared-deps-mapping.js +30 -26
- package/dist/extensions/lib/installation/index.js +12 -7
- package/dist/extensions/lib/installation/manager.js +100 -95
- package/dist/extensions/lib/sandbox/generate-api-extensions-sandbox-entrypoint.js +66 -43
- package/dist/extensions/lib/sandbox/generate-host-function-reference.js +19 -16
- package/dist/extensions/lib/sandbox/register/action.js +23 -17
- package/dist/extensions/lib/sandbox/register/call-reference.js +28 -21
- package/dist/extensions/lib/sandbox/register/filter.js +26 -20
- package/dist/extensions/lib/sandbox/register/index.js +7 -5
- package/dist/extensions/lib/sandbox/register/operation.js +27 -21
- package/dist/extensions/lib/sandbox/register/route.js +52 -43
- package/dist/extensions/lib/sandbox/sdk/generators/index.js +5 -3
- package/dist/extensions/lib/sandbox/sdk/generators/log.js +14 -11
- package/dist/extensions/lib/sandbox/sdk/generators/request.js +56 -48
- package/dist/extensions/lib/sandbox/sdk/generators/sleep.js +13 -10
- package/dist/extensions/lib/sandbox/sdk/index.js +4 -2
- package/dist/extensions/lib/sandbox/sdk/instantiate.js +32 -26
- package/dist/extensions/lib/sandbox/sdk/sdk.js +32 -9
- package/dist/extensions/lib/sandbox/sdk/utils/index.js +3 -1
- package/dist/extensions/lib/sandbox/sdk/utils/wrap.js +50 -47
- package/dist/extensions/lib/sync/status.js +30 -29
- package/dist/extensions/lib/sync/sync.js +83 -89
- package/dist/extensions/lib/sync/tracker.js +68 -71
- package/dist/extensions/lib/sync/utils.js +53 -54
- package/dist/extensions/lib/wrap-embeds.js +9 -6
- package/dist/extensions/manager.js +718 -746
- package/dist/flows.js +574 -427
- package/dist/index.js +3 -1
- package/dist/lock/index.js +3 -1
- package/dist/lock/lib/use-lock.js +28 -18
- package/dist/logger/index.js +186 -179
- package/dist/logger/logs-stream.js +45 -40
- package/dist/logger/redact-query.js +16 -12
- package/dist/mailer.js +61 -60
- package/dist/metrics/index.js +3 -1
- package/dist/metrics/lib/create-metrics.js +250 -233
- package/dist/metrics/lib/use-metrics.js +19 -14
- package/dist/metrics/types/metric.js +1 -1
- package/dist/middleware/authenticate.js +46 -47
- package/dist/middleware/cache.js +61 -57
- package/dist/middleware/collection-exists.js +24 -24
- package/dist/middleware/cors.js +17 -12
- package/dist/middleware/error-handler.js +77 -86
- package/dist/middleware/extract-token.js +37 -43
- package/dist/middleware/graphql.js +70 -68
- package/dist/middleware/rate-limiter-global.js +41 -38
- package/dist/middleware/rate-limiter-ip.js +36 -29
- package/dist/middleware/rate-limiter-registration.js +32 -29
- package/dist/middleware/request-counter.js +28 -0
- package/dist/middleware/respond.js +97 -109
- package/dist/middleware/sanitize-query.js +25 -27
- package/dist/middleware/schema.js +11 -6
- package/dist/middleware/use-collection.js +10 -5
- package/dist/middleware/validate-batch.js +41 -42
- package/dist/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.js +445 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/index.js +176 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/system/policy.js +54 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/any/any.js +13 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/any/index.js +3 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/argument/argument.js +15 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/argument/index.js +3 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/array/array.js +16 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/array/index.js +3 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/async-iterator/async-iterator.js +16 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/async-iterator/index.js +3 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/awaited/awaited.js +37 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/awaited/index.js +3 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/bigint/bigint.js +16 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/bigint/index.js +3 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/boolean/boolean.js +16 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/boolean/index.js +3 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/clone/index.js +4 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/clone/type.js +17 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/clone/value.js +35 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/composite/composite.js +42 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/composite/index.js +3 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/computed/computed.js +16 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/computed/index.js +3 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/const/const.js +52 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/const/index.js +3 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/constructor/constructor.js +17 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/constructor/index.js +3 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/constructor-parameters/constructor-parameters.js +14 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/constructor-parameters/index.js +3 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/create/immutable.js +32 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/create/index.js +3 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/create/type.js +20 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/date/date.js +15 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/date/index.js +3 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/discard/discard.js +12 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/discard/index.js +3 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/enum/enum.js +23 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/enum/index.js +3 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/error/error.js +10 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/error/index.js +3 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/exclude/exclude-from-mapped-result.js +20 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/exclude/exclude-from-template-literal.js +11 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/exclude/exclude.js +25 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/exclude/index.js +5 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/extends/extends-check.js +267 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/extends/extends-from-mapped-key.js +29 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/extends/extends-from-mapped-result.js +21 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/extends/extends-undefined.js +21 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/extends/extends.js +20 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/extends/index.js +7 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/extract/extract-from-mapped-result.js +20 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/extract/extract-from-template-literal.js +11 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/extract/extract.js +25 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/extract/index.js +5 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/function/function.js +17 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/function/index.js +3 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/guard/index.js +5 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/guard/kind.js +204 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/guard/type.js +293 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/guard/value.js +68 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/helpers/helpers.js +8 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/helpers/index.js +3 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/indexed/index.js +6 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed-from-mapped-key.js +27 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed-from-mapped-result.js +24 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed-property-keys.js +24 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed.js +67 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/instance-type/index.js +3 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/instance-type/instance-type.js +13 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/instantiate/index.js +3 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/instantiate/instantiate.js +102 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/integer/index.js +3 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/integer/integer.js +15 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/intersect/index.js +5 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect-create.js +23 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect-evaluated.js +35 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect-type.js +3 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect.js +17 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/intrinsic/capitalize.js +10 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/intrinsic/index.js +8 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/intrinsic/intrinsic-from-mapped-key.js +30 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/intrinsic/intrinsic.js +54 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/intrinsic/lowercase.js +10 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/intrinsic/uncapitalize.js +10 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/intrinsic/uppercase.js +10 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/iterator/index.js +3 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/iterator/iterator.js +16 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/keyof/index.js +6 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof-from-mapped-result.js +21 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof-property-entries.js +17 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof-property-keys.js +52 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof.js +38 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/literal/index.js +3 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/literal/literal.js +16 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/mapped/index.js +5 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/mapped/mapped-key.js +14 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/mapped/mapped-result.js +14 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/mapped/mapped.js +86 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/module/compute.js +144 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/module/index.js +3 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/module/module.js +44 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/never/index.js +3 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/never/never.js +15 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/not/index.js +3 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/not/not.js +15 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/null/index.js +3 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/null/null.js +15 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/number/index.js +3 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/number/number.js +15 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/object/index.js +3 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/object/object.js +33 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/omit/index.js +5 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/omit/omit-from-mapped-key.js +27 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/omit/omit-from-mapped-result.js +21 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/omit/omit.js +65 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/optional/index.js +4 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/optional/optional-from-mapped-result.js +20 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/optional/optional.js +29 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/parameters/index.js +3 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/parameters/parameters.js +14 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/partial/index.js +4 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/partial/partial-from-mapped-result.js +21 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/partial/partial.js +62 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/patterns/index.js +3 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/patterns/patterns.js +12 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/pick/index.js +5 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/pick/pick-from-mapped-key.js +27 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/pick/pick-from-mapped-result.js +21 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/pick/pick.js +63 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/promise/index.js +3 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/promise/promise.js +16 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/readonly/index.js +4 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/readonly/readonly-from-mapped-result.js +20 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/readonly/readonly.js +29 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/readonly-optional/index.js +3 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/readonly-optional/readonly-optional.js +13 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/record/index.js +3 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/record/record.js +92 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/recursive/index.js +3 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/recursive/recursive.js +24 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/ref/index.js +3 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/ref/ref.js +19 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/regexp/index.js +3 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/regexp/regexp.js +19 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/registry/format.js +30 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/registry/index.js +4 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/registry/type.js +30 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/required/index.js +4 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/required/required-from-mapped-result.js +20 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/required/required.js +60 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/rest/index.js +3 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/rest/rest.js +13 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/return-type/index.js +3 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/return-type/return-type.js +13 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/schema/anyschema.js +1 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/schema/index.js +4 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/schema/schema.js +3 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/sets/index.js +3 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/sets/set.js +42 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/static/index.js +3 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/static/static.js +1 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/string/index.js +3 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/string/string.js +15 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/symbol/index.js +3 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/symbol/symbol.js +15 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/symbols/index.js +3 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/symbols/symbols.js +14 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/template-literal/finite.js +28 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/template-literal/generate.js +37 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/template-literal/index.js +9 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/template-literal/parse.js +125 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/template-literal/pattern.js +24 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/template-literal/syntax.js +55 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/template-literal/template-literal.js +20 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/template-literal/union.js +16 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/transform/index.js +3 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/transform/transform.js +51 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/tuple/index.js +3 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/tuple/tuple.js +24 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/type/index.js +10 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/type/javascript.js +123 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/type/json.js +263 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/type/type.js +191 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/uint8array/index.js +3 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/uint8array/uint8array.js +15 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/undefined/index.js +3 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/undefined/undefined.js +15 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/union/index.js +5 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/union/union-create.js +14 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/union/union-evaluated.js +33 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/union/union-type.js +3 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/union/union.js +13 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/unknown/index.js +3 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/unknown/unknown.js +12 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/unsafe/index.js +3 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/unsafe/unsafe.js +12 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/void/index.js +3 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/void/void.js +15 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/value/guard/guard.js +140 -0
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/value/guard/index.js +3 -0
- package/dist/node_modules/.pnpm/@vitest_expect@3.2.4/node_modules/@vitest/expect/dist/index.js +1714 -0
- package/dist/node_modules/.pnpm/@vitest_pretty-format@3.2.4/node_modules/@vitest/pretty-format/dist/index.js +1287 -0
- package/dist/node_modules/.pnpm/@vitest_runner@3.2.4/node_modules/@vitest/runner/dist/chunk-hooks.js +2151 -0
- package/dist/node_modules/.pnpm/@vitest_runner@3.2.4/node_modules/@vitest/runner/dist/index.js +8 -0
- package/dist/node_modules/.pnpm/@vitest_runner@3.2.4/node_modules/@vitest/runner/dist/utils.js +8 -0
- package/dist/node_modules/.pnpm/@vitest_snapshot@3.2.4/node_modules/@vitest/snapshot/dist/index.js +2082 -0
- package/dist/node_modules/.pnpm/@vitest_spy@3.2.4/node_modules/@vitest/spy/dist/index.js +192 -0
- package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js +158 -0
- package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/diff.js +1535 -0
- package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/error.js +155 -0
- package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/helpers.js +244 -0
- package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/index.js +621 -0
- package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/source-map.js +890 -0
- package/dist/node_modules/.pnpm/chai@5.3.3/node_modules/chai/index.js +3558 -0
- package/dist/node_modules/.pnpm/expect-type@1.2.2/node_modules/expect-type/dist/branding.js +13 -0
- package/dist/node_modules/.pnpm/expect-type@1.2.2/node_modules/expect-type/dist/index.js +115 -0
- package/dist/node_modules/.pnpm/expect-type@1.2.2/node_modules/expect-type/dist/messages.js +77 -0
- package/dist/node_modules/.pnpm/expect-type@1.2.2/node_modules/expect-type/dist/overloads.js +13 -0
- package/dist/node_modules/.pnpm/expect-type@1.2.2/node_modules/expect-type/dist/utils.js +30 -0
- package/dist/node_modules/.pnpm/js-tokens@9.0.1/node_modules/js-tokens/index.js +398 -0
- package/dist/node_modules/.pnpm/knex-mock-client@3.0.2_knex@3.1.0_mysql2@3.15.3_pg@8.16.3_sqlite3@5.1.7_tedious@18.6.1_/node_modules/knex-mock-client/dist/MockClient.js +79 -0
- package/dist/node_modules/.pnpm/knex-mock-client@3.0.2_knex@3.1.0_mysql2@3.15.3_pg@8.16.3_sqlite3@5.1.7_tedious@18.6.1_/node_modules/knex-mock-client/dist/MockConnection.js +64 -0
- package/dist/node_modules/.pnpm/knex-mock-client@3.0.2_knex@3.1.0_mysql2@3.15.3_pg@8.16.3_sqlite3@5.1.7_tedious@18.6.1_/node_modules/knex-mock-client/dist/Tracker.js +185 -0
- package/dist/node_modules/.pnpm/knex-mock-client@3.0.2_knex@3.1.0_mysql2@3.15.3_pg@8.16.3_sqlite3@5.1.7_tedious@18.6.1_/node_modules/knex-mock-client/dist/constants.js +30 -0
- package/dist/node_modules/.pnpm/knex-mock-client@3.0.2_knex@3.1.0_mysql2@3.15.3_pg@8.16.3_sqlite3@5.1.7_tedious@18.6.1_/node_modules/knex-mock-client/dist/index.js +37 -0
- package/dist/node_modules/.pnpm/knex-mock-client@3.0.2_knex@3.1.0_mysql2@3.15.3_pg@8.16.3_sqlite3@5.1.7_tedious@18.6.1_/node_modules/knex-mock-client/dist/utils.js +17 -0
- package/dist/node_modules/.pnpm/lodash.clonedeep@4.5.0/node_modules/lodash.clonedeep/index.js +1486 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/arguments.js +11 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/array.js +18 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/bigint.js +11 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/class.js +19 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/date.js +15 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/error.js +39 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/function.js +14 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/helpers.js +141 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/html.js +43 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/index.js +138 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/map.js +25 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/number.js +22 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/object.js +27 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/promise.js +6 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/regexp.js +12 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/set.js +18 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/string.js +27 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/symbol.js +10 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/typedarray.js +36 -0
- package/dist/node_modules/.pnpm/magic-string@0.30.21/node_modules/magic-string/dist/magic-string.es.js +1258 -0
- package/dist/node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/index.js +21 -0
- package/dist/node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.js +478 -0
- package/dist/node_modules/.pnpm/strip-literal@3.1.0/node_modules/strip-literal/dist/index.js +84 -0
- package/dist/node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/chunk-BVHSVHOK.js +85 -0
- package/dist/node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/node.js +15 -0
- package/dist/node_modules/.pnpm/tinyspy@4.0.4/node_modules/tinyspy/dist/index.js +158 -0
- package/dist/node_modules/.pnpm/vitest@3.2.4_@types_node@22.13.14_@vitest_ui@3.2.4_happy-dom@20.0.10_jiti@2.6.1_jsdom@2_4abc0aa80426c2cc5a9175f21e1d4ebb/node_modules/vitest/dist/chunks/_commonjsHelpers.BFTU3MAI.js +8 -0
- package/dist/node_modules/.pnpm/vitest@3.2.4_@types_node@22.13.14_@vitest_ui@3.2.4_happy-dom@20.0.10_jiti@2.6.1_jsdom@2_4abc0aa80426c2cc5a9175f21e1d4ebb/node_modules/vitest/dist/chunks/benchmark.CYdenmiT.js +41 -0
- package/dist/node_modules/.pnpm/vitest@3.2.4_@types_node@22.13.14_@vitest_ui@3.2.4_happy-dom@20.0.10_jiti@2.6.1_jsdom@2_4abc0aa80426c2cc5a9175f21e1d4ebb/node_modules/vitest/dist/chunks/date.Bq6ZW5rf.js +50 -0
- package/dist/node_modules/.pnpm/vitest@3.2.4_@types_node@22.13.14_@vitest_ui@3.2.4_happy-dom@20.0.10_jiti@2.6.1_jsdom@2_4abc0aa80426c2cc5a9175f21e1d4ebb/node_modules/vitest/dist/chunks/index.CdQS2e2Q.js +38 -0
- package/dist/node_modules/.pnpm/vitest@3.2.4_@types_node@22.13.14_@vitest_ui@3.2.4_happy-dom@20.0.10_jiti@2.6.1_jsdom@2_4abc0aa80426c2cc5a9175f21e1d4ebb/node_modules/vitest/dist/chunks/utils.XdZDrNZV.js +66 -0
- package/dist/node_modules/.pnpm/vitest@3.2.4_@types_node@22.13.14_@vitest_ui@3.2.4_happy-dom@20.0.10_jiti@2.6.1_jsdom@2_4abc0aa80426c2cc5a9175f21e1d4ebb/node_modules/vitest/dist/chunks/vi.bdSIJ99Y.js +2986 -0
- package/dist/node_modules/.pnpm/vitest@3.2.4_@types_node@22.13.14_@vitest_ui@3.2.4_happy-dom@20.0.10_jiti@2.6.1_jsdom@2_4abc0aa80426c2cc5a9175f21e1d4ebb/node_modules/vitest/dist/index.js +24 -0
- package/dist/operations/condition/index.js +23 -21
- package/dist/operations/exec/index.js +49 -44
- package/dist/operations/item-create/index.js +49 -36
- package/dist/operations/item-delete/index.js +56 -44
- package/dist/operations/item-read/index.js +56 -44
- package/dist/operations/item-update/index.js +62 -51
- package/dist/operations/json-web-token/index.js +33 -35
- package/dist/operations/log/index.js +14 -9
- package/dist/operations/mail/index.js +39 -25
- package/dist/operations/mail/rate-limiter.js +26 -25
- package/dist/operations/notification/index.js +52 -42
- package/dist/operations/request/index.js +47 -39
- package/dist/operations/sleep/index.js +11 -6
- package/dist/operations/throw-error/index.js +14 -9
- package/dist/operations/transform/index.js +12 -7
- package/dist/operations/trigger/index.js +42 -37
- package/dist/packages/types/dist/index.js +403 -0
- package/dist/permissions/cache.js +28 -25
- package/dist/permissions/lib/fetch-permissions.js +33 -26
- package/dist/permissions/lib/fetch-policies.js +42 -41
- package/dist/permissions/lib/fetch-roles-tree.js +10 -5
- package/dist/permissions/lib/with-app-minimal-permissions.js +14 -9
- package/dist/permissions/modules/fetch-accountability-collection-access/fetch-accountability-collection-access.js +56 -54
- package/dist/permissions/modules/fetch-accountability-policy-globals/fetch-accountability-policy-globals.js +14 -15
- package/dist/permissions/modules/fetch-allowed-collections/fetch-allowed-collections.js +26 -11
- package/dist/permissions/modules/fetch-allowed-field-map/fetch-allowed-field-map.js +40 -25
- package/dist/permissions/modules/fetch-allowed-fields/fetch-allowed-fields.js +34 -19
- package/dist/permissions/modules/fetch-global-access/fetch-global-access.js +33 -26
- package/dist/permissions/modules/fetch-inconsistent-field-map/fetch-inconsistent-field-map.js +38 -25
- package/dist/permissions/modules/fetch-policies-ip-access/fetch-policies-ip-access.js +27 -27
- package/dist/permissions/modules/process-ast/lib/extract-fields-from-children.js +33 -48
- package/dist/permissions/modules/process-ast/lib/extract-fields-from-query.js +55 -55
- package/dist/permissions/modules/process-ast/lib/field-map-from-ast.js +15 -7
- package/dist/permissions/modules/process-ast/lib/get-cases.js +30 -39
- package/dist/permissions/modules/process-ast/lib/inject-cases.js +44 -50
- package/dist/permissions/modules/process-ast/process-ast.js +45 -38
- package/dist/permissions/modules/process-ast/types.js +1 -1
- package/dist/permissions/modules/process-ast/utils/collections-in-field-map.js +10 -6
- package/dist/permissions/modules/process-ast/utils/context-has-dynamic-variables.js +6 -2
- package/dist/permissions/modules/process-ast/utils/dedupe-access.js +32 -28
- package/dist/permissions/modules/process-ast/utils/extract-paths-from-query.js +54 -58
- package/dist/permissions/modules/process-ast/utils/find-related-collection.js +12 -8
- package/dist/permissions/modules/process-ast/utils/flatten-filter.js +30 -33
- package/dist/permissions/modules/process-ast/utils/format-a2o-key.js +6 -2
- package/dist/permissions/modules/process-ast/utils/get-info-for-path.js +13 -6
- package/dist/permissions/modules/process-ast/utils/has-item-permissions.js +6 -2
- package/dist/permissions/modules/process-ast/utils/stringify-query-path.js +6 -2
- package/dist/permissions/modules/process-ast/utils/validate-path/create-error.js +13 -14
- package/dist/permissions/modules/process-ast/utils/validate-path/validate-path-existence.js +16 -11
- package/dist/permissions/modules/process-ast/utils/validate-path/validate-path-permissions.js +28 -27
- package/dist/permissions/modules/process-payload/lib/is-field-nullable.js +13 -10
- package/dist/permissions/modules/process-payload/process-payload.js +77 -82
- package/dist/permissions/modules/validate-access/lib/validate-collection-access.js +19 -9
- package/dist/permissions/modules/validate-access/lib/validate-item-access.js +108 -99
- package/dist/permissions/modules/validate-access/validate-access.js +33 -39
- package/dist/permissions/modules/validate-remaining-admin/validate-remaining-admin-count.js +10 -7
- package/dist/permissions/modules/validate-remaining-admin/validate-remaining-admin-users.js +14 -9
- package/dist/permissions/types.js +1 -1
- package/dist/permissions/utils/create-default-accountability.js +14 -10
- package/dist/permissions/utils/default-permission.js +10 -6
- package/dist/permissions/utils/extract-required-dynamic-variable-context.js +47 -42
- package/dist/permissions/utils/fetch-dynamic-variable-data.js +62 -69
- package/dist/permissions/utils/fetch-raw-permissions.js +33 -37
- package/dist/permissions/utils/fetch-share-info.js +17 -8
- package/dist/permissions/utils/filter-policies-by-ip.js +16 -14
- package/dist/permissions/utils/get-permissions-for-share.js +163 -176
- package/dist/permissions/utils/get-unaliased-field-key.js +21 -23
- package/dist/permissions/utils/merge-fields.js +23 -28
- package/dist/permissions/utils/merge-permissions.js +78 -104
- package/dist/permissions/utils/process-permissions.js +15 -10
- package/dist/permissions/utils/with-cache.js +30 -25
- package/dist/rate-limiter.js +28 -26
- package/dist/redis/index.js +5 -3
- package/dist/redis/lib/create-redis.js +15 -10
- package/dist/redis/lib/use-redis.js +21 -19
- package/dist/redis/utils/redis-config-available.js +14 -9
- package/dist/request/agent-with-ip-validation.js +27 -35
- package/dist/request/index.js +19 -14
- package/dist/request/is-denied-ip.js +41 -39
- package/dist/schedules/metrics.js +45 -42
- package/dist/schedules/project.js +26 -25
- package/dist/schedules/retention.js +105 -106
- package/dist/schedules/telemetry.js +30 -26
- package/dist/schedules/tus.js +24 -21
- package/dist/server.js +155 -151
- package/dist/services/access.js +43 -43
- package/dist/services/activity.js +11 -6
- package/dist/services/assets/name-deduper.js +28 -23
- package/dist/services/assets.js +292 -300
- package/dist/services/authentication.js +410 -444
- package/dist/services/collections.js +592 -646
- package/dist/services/comments.js +143 -132
- package/dist/services/dashboards.js +11 -6
- package/dist/services/deployment-projects.js +135 -138
- package/dist/services/deployment-runs.js +87 -92
- package/dist/services/deployment.js +459 -449
- package/dist/services/extensions.js +211 -227
- package/dist/services/fields/build-collection-and-field-relations.js +53 -53
- package/dist/services/fields/get-collection-meta-updates.js +68 -69
- package/dist/services/fields/get-collection-relation-list.js +26 -26
- package/dist/services/fields.js +732 -810
- package/dist/services/files/lib/extract-metadata.js +34 -31
- package/dist/services/files/lib/get-sharp-instance.js +14 -9
- package/dist/services/files/utils/get-metadata.js +101 -105
- package/dist/services/files/utils/parse-image-metadata.js +70 -64
- package/dist/services/files.js +409 -328
- package/dist/services/flows.js +34 -27
- package/dist/services/folders.js +83 -81
- package/dist/services/graphql/errors/execution.js +7 -2
- package/dist/services/graphql/errors/format.js +16 -11
- package/dist/services/graphql/errors/index.js +4 -2
- package/dist/services/graphql/errors/validation.js +7 -2
- package/dist/services/graphql/index.js +95 -94
- package/dist/services/graphql/resolvers/get-collection-type.js +34 -33
- package/dist/services/graphql/resolvers/get-field-type.js +51 -50
- package/dist/services/graphql/resolvers/get-relation-type.js +41 -38
- package/dist/services/graphql/resolvers/mutation.js +68 -73
- package/dist/services/graphql/resolvers/query.js +68 -68
- package/dist/services/graphql/resolvers/system-admin.js +279 -286
- package/dist/services/graphql/resolvers/system-global.js +414 -432
- package/dist/services/graphql/resolvers/system.js +406 -459
- package/dist/services/graphql/schema/get-types.js +182 -220
- package/dist/services/graphql/schema/index.js +189 -185
- package/dist/services/graphql/schema/parse-args.js +28 -33
- package/dist/services/graphql/schema/parse-query.js +106 -103
- package/dist/services/graphql/schema/read.js +451 -735
- package/dist/services/graphql/schema/write.js +119 -141
- package/dist/services/graphql/schema-cache.js +13 -7
- package/dist/services/graphql/subscription.js +91 -94
- package/dist/services/graphql/types/bigint.js +41 -42
- package/dist/services/graphql/types/date.js +10 -5
- package/dist/services/graphql/types/geojson.js +11 -6
- package/dist/services/graphql/types/hash.js +10 -5
- package/dist/services/graphql/types/string-or-float.js +31 -29
- package/dist/services/graphql/types/void.js +18 -13
- package/dist/services/graphql/utils/add-path-to-validation-error.js +18 -14
- package/dist/services/graphql/utils/aggregate-query.js +33 -37
- package/dist/services/graphql/utils/dedupe-resolvers.js +62 -0
- package/dist/services/graphql/utils/filter-replace-m2a.js +66 -63
- package/dist/services/graphql/utils/process-error.js +40 -41
- package/dist/services/graphql/utils/replace-fragments.js +30 -19
- package/dist/services/graphql/utils/replace-funcs.js +23 -19
- package/dist/services/graphql/utils/sanitize-gql-schema.js +79 -73
- package/dist/services/import-export.js +671 -633
- package/dist/services/index.js +95 -41
- package/dist/services/items.js +854 -945
- package/dist/services/mail/index.js +106 -104
- package/dist/services/mail/rate-limiter.js +26 -25
- package/dist/services/meta.js +71 -63
- package/dist/services/notifications.js +66 -58
- package/dist/services/operations.js +30 -25
- package/dist/services/panels.js +11 -6
- package/dist/services/payload.js +745 -832
- package/dist/services/permissions.js +143 -132
- package/dist/services/policies.js +74 -87
- package/dist/services/presets.js +11 -6
- package/dist/services/relations.js +438 -494
- package/dist/services/revisions.js +50 -44
- package/dist/services/roles.js +81 -87
- package/dist/services/schema.js +50 -52
- package/dist/services/server.js +320 -384
- package/dist/services/settings.js +31 -21
- package/dist/services/shares.js +138 -141
- package/dist/services/specifications.js +396 -526
- package/dist/services/tfa.js +64 -65
- package/dist/services/translations.js +46 -36
- package/dist/services/tus/data-store.js +186 -214
- package/dist/services/tus/index.js +4 -2
- package/dist/services/tus/lockers.js +77 -81
- package/dist/services/tus/server.js +109 -113
- package/dist/services/tus/utils/wait-timeout.js +16 -12
- package/dist/services/users.js +490 -525
- package/dist/services/utils.js +102 -129
- package/dist/services/versions.js +303 -314
- package/dist/services/websocket.js +45 -36
- package/dist/start.js +6 -1
- package/dist/storage/get-storage-driver.js +18 -15
- package/dist/storage/index.js +18 -16
- package/dist/storage/register-drivers.js +20 -17
- package/dist/storage/register-locations.js +28 -17
- package/dist/synchronization.js +106 -103
- package/dist/telemetry/counter/use-buffered-counter.js +138 -0
- package/dist/telemetry/counter/use-counters.js +32 -0
- package/dist/telemetry/index.js +5 -3
- package/dist/telemetry/lib/get-report.js +72 -58
- package/dist/telemetry/lib/send-report.js +24 -23
- package/dist/telemetry/lib/track.js +32 -28
- package/dist/telemetry/types/report.js +1 -1
- package/dist/telemetry/utils/check-user-limits.js +20 -16
- package/dist/telemetry/utils/format-api-request-counts.js +26 -0
- package/dist/telemetry/utils/get-extension-count.js +21 -18
- package/dist/telemetry/utils/get-field-count.js +12 -11
- package/dist/telemetry/utils/get-filesize-sum.js +9 -6
- package/dist/telemetry/utils/get-item-count.js +40 -34
- package/dist/telemetry/utils/get-random-wait-time.js +8 -4
- package/dist/telemetry/utils/get-settings.js +37 -34
- package/dist/telemetry/utils/get-user-item-count.js +24 -18
- package/dist/telemetry/utils/should-check-user-limits.js +14 -11
- package/dist/test-utils/README.md +316 -5
- package/dist/test-utils/cache.js +62 -57
- package/dist/test-utils/controllers.js +94 -93
- package/dist/test-utils/database.js +50 -50
- package/dist/test-utils/emitter.js +36 -36
- package/dist/test-utils/env.js +77 -0
- package/dist/test-utils/knex.js +208 -254
- package/dist/test-utils/schema.js +33 -33
- package/dist/test-utils/services/fields-service.js +36 -35
- package/dist/test-utils/services/files-service.js +33 -32
- package/dist/test-utils/services/folders-service.js +32 -31
- package/dist/test-utils/services/items-service.js +50 -35
- package/dist/test-utils/storage.js +150 -0
- package/dist/types/ast.js +1 -1
- package/dist/types/auth.js +1 -1
- package/dist/types/collection.js +1 -1
- package/dist/types/events.js +1 -1
- package/dist/types/index.js +9 -7
- package/dist/types/meta.js +9 -5
- package/dist/types/migration.js +1 -1
- package/dist/types/revision.js +1 -1
- package/dist/types/rolemap.js +1 -1
- package/dist/utils/apply-diff.js +276 -291
- package/dist/utils/apply-snapshot.js +27 -13
- package/dist/utils/async-handler.js +5 -1
- package/dist/utils/calculate-field-depth.js +70 -69
- package/dist/utils/compress.js +13 -10
- package/dist/utils/construct-flow-tree.js +29 -24
- package/dist/utils/create-admin.js +54 -46
- package/dist/utils/deep-map-response.js +64 -59
- package/dist/utils/delete-from-require-cache.js +15 -11
- package/dist/utils/destroy-piped-stream.js +13 -0
- package/dist/utils/encrypt.js +59 -59
- package/dist/utils/fetch-user-count/fetch-access-lookup.js +22 -22
- package/dist/utils/fetch-user-count/fetch-access-roles.js +31 -35
- package/dist/utils/fetch-user-count/fetch-active-users.js +6 -2
- package/dist/utils/fetch-user-count/fetch-user-count.js +56 -62
- package/dist/utils/fetch-user-count/get-user-count-query.js +19 -16
- package/dist/utils/filter-items.js +27 -30
- package/dist/utils/freeze-schema.js +28 -29
- package/dist/utils/generate-hash.js +11 -8
- package/dist/utils/generate-translations.js +436 -0
- package/dist/utils/get-accountability-for-role.js +35 -30
- package/dist/utils/get-accountability-for-token.js +50 -53
- package/dist/utils/get-address.js +20 -17
- package/dist/utils/get-allowed-log-levels.js +12 -9
- package/dist/utils/get-auth-providers.js +30 -23
- package/dist/utils/get-cache-headers.js +30 -37
- package/dist/utils/get-cache-key.js +29 -26
- package/dist/utils/get-collection-from-alias.js +14 -10
- package/dist/utils/get-column-path.js +62 -61
- package/dist/utils/get-config-from-env.js +43 -45
- package/dist/utils/get-default-index-name.js +23 -20
- package/dist/utils/get-default-value.js +43 -52
- package/dist/utils/get-field-relational-depth.js +24 -20
- package/dist/utils/get-field-system-rows.js +19 -16
- package/dist/utils/get-graphql-query-and-variables.js +9 -4
- package/dist/utils/get-graphql-type.js +32 -38
- package/dist/utils/get-ip-from-req.js +38 -42
- package/dist/utils/get-local-type.js +119 -129
- package/dist/utils/get-milliseconds.js +13 -8
- package/dist/utils/get-module-default.js +9 -5
- package/dist/utils/get-schema.js +160 -165
- package/dist/utils/get-secret.js +18 -13
- package/dist/utils/get-service.js +63 -59
- package/dist/utils/get-snapshot-diff.js +106 -134
- package/dist/utils/get-snapshot.js +70 -55
- package/dist/utils/get-string-byte-size.js +8 -4
- package/dist/utils/get-versioned-hash.js +12 -4
- package/dist/utils/import-file-url.js +10 -5
- package/dist/utils/is-directus-jwt.js +17 -14
- package/dist/utils/is-field-allowed.js +11 -7
- package/dist/utils/is-url-allowed.js +29 -29
- package/dist/utils/is-valid-uuid.js +22 -18
- package/dist/utils/job-queue.js +29 -25
- package/dist/utils/jwt.js +30 -27
- package/dist/utils/md.js +12 -7
- package/dist/utils/parse-filter-key.js +21 -14
- package/dist/utils/parse-numeric-string.js +20 -20
- package/dist/utils/parse-value.js +12 -9
- package/dist/utils/permissions-cacheable.js +45 -37
- package/dist/utils/redact-object.js +120 -125
- package/dist/utils/reduce-schema.js +53 -60
- package/dist/utils/require-text.js +8 -3
- package/dist/utils/require-yaml.js +10 -5
- package/dist/utils/sanitize-query.js +195 -213
- package/dist/utils/sanitize-schema.js +102 -83
- package/dist/utils/schedule.js +28 -24
- package/dist/utils/should-clear-cache.js +23 -18
- package/dist/utils/should-skip-cache.js +39 -40
- package/dist/utils/split-fields.js +33 -30
- package/dist/utils/stall.js +36 -32
- package/dist/utils/store.js +40 -0
- package/dist/utils/transaction.js +82 -81
- package/dist/utils/transformations.js +125 -129
- package/dist/utils/translations-shared.js +56 -0
- package/dist/utils/translations-validation.js +9 -0
- package/dist/utils/url.js +67 -66
- package/dist/utils/user-name.js +18 -14
- package/dist/utils/validate-diff.js +124 -150
- package/dist/utils/validate-env.js +16 -11
- package/dist/utils/validate-keys.js +22 -19
- package/dist/utils/validate-query.js +185 -198
- package/dist/utils/validate-snapshot.js +63 -73
- package/dist/utils/validate-storage.js +37 -35
- package/dist/utils/validate-user-count-integrity.js +28 -20
- package/dist/utils/verify-session-jwt.js +21 -21
- package/dist/utils/versioning/handle-version.js +96 -95
- package/dist/utils/versioning/merge-version-data.js +14 -9
- package/dist/utils/versioning/split-recursive.js +40 -26
- package/dist/websocket/authenticate.js +67 -66
- package/dist/websocket/collab/calculate-cache-metadata.js +99 -118
- package/dist/websocket/collab/collab.js +420 -479
- package/dist/websocket/collab/constants.js +16 -12
- package/dist/websocket/collab/filter-to-fields.js +18 -10
- package/dist/websocket/collab/messenger.js +252 -224
- package/dist/websocket/collab/payload-permissions.js +140 -149
- package/dist/websocket/collab/permissions-cache.js +188 -202
- package/dist/websocket/collab/room.js +569 -588
- package/dist/websocket/collab/store.js +9 -31
- package/dist/websocket/collab/types.js +1 -1
- package/dist/websocket/collab/verify-permissions.js +116 -98
- package/dist/websocket/controllers/base.js +331 -352
- package/dist/websocket/controllers/graphql.js +98 -104
- package/dist/websocket/controllers/hooks.js +117 -118
- package/dist/websocket/controllers/index.js +31 -29
- package/dist/websocket/controllers/logs.js +65 -53
- package/dist/websocket/controllers/rest.js +59 -47
- package/dist/websocket/errors.js +62 -55
- package/dist/websocket/handlers/heartbeat.js +77 -77
- package/dist/websocket/handlers/index.js +36 -35
- package/dist/websocket/handlers/items.js +111 -109
- package/dist/websocket/handlers/logs.js +122 -120
- package/dist/websocket/handlers/subscribe.js +165 -182
- package/dist/websocket/messages.js +90 -93
- package/dist/websocket/types.js +1 -1
- package/dist/websocket/utils/get-expires-at-for-token.js +12 -7
- package/dist/websocket/utils/items.js +123 -123
- package/dist/websocket/utils/message.js +26 -24
- package/dist/websocket/utils/wait-for-message.js +46 -43
- package/package.json +35 -32
- package/dist/ai/chat/constants/system-prompt.d.ts +0 -1
- package/dist/ai/chat/controllers/chat.post.d.ts +0 -2
- package/dist/ai/chat/lib/create-ui-stream.d.ts +0 -16
- package/dist/ai/chat/lib/transform-file-parts.d.ts +0 -12
- package/dist/ai/chat/middleware/load-settings.d.ts +0 -2
- package/dist/ai/chat/models/chat-request.d.ts +0 -167
- package/dist/ai/chat/models/providers.d.ts +0 -23
- package/dist/ai/chat/router.d.ts +0 -1
- package/dist/ai/chat/utils/chat-request-tool-to-ai-sdk-tool.d.ts +0 -9
- package/dist/ai/chat/utils/fix-error-tool-calls.d.ts +0 -12
- package/dist/ai/chat/utils/format-context.d.ts +0 -5
- package/dist/ai/chat/utils/parse-json-schema-7.d.ts +0 -13
- package/dist/ai/files/adapters/anthropic.d.ts +0 -3
- package/dist/ai/files/adapters/google.d.ts +0 -3
- package/dist/ai/files/adapters/index.d.ts +0 -3
- package/dist/ai/files/adapters/openai.d.ts +0 -3
- package/dist/ai/files/controllers/upload.d.ts +0 -2
- package/dist/ai/files/lib/fetch-provider.d.ts +0 -1
- package/dist/ai/files/lib/upload-to-provider.d.ts +0 -4
- package/dist/ai/files/router.d.ts +0 -1
- package/dist/ai/files/types.d.ts +0 -5
- package/dist/ai/mcp/index.d.ts +0 -1
- package/dist/ai/mcp/server.d.ts +0 -126
- package/dist/ai/mcp/transport.d.ts +0 -13
- package/dist/ai/mcp/types.d.ts +0 -15
- package/dist/ai/providers/anthropic-file-support.d.ts +0 -12
- package/dist/ai/providers/index.d.ts +0 -3
- package/dist/ai/providers/options.d.ts +0 -14
- package/dist/ai/providers/registry.d.ts +0 -6
- package/dist/ai/providers/types.d.ts +0 -34
- package/dist/ai/tools/assets/index.d.ts +0 -3
- package/dist/ai/tools/collections/index.d.ts +0 -84
- package/dist/ai/tools/define-tool.d.ts +0 -2
- package/dist/ai/tools/fields/index.d.ts +0 -101
- package/dist/ai/tools/files/index.d.ts +0 -235
- package/dist/ai/tools/flows/index.d.ts +0 -323
- package/dist/ai/tools/folders/index.d.ts +0 -95
- package/dist/ai/tools/index.d.ts +0 -15
- package/dist/ai/tools/items/index.d.ts +0 -87
- package/dist/ai/tools/operations/index.d.ts +0 -217
- package/dist/ai/tools/relations/index.d.ts +0 -73
- package/dist/ai/tools/schema/index.d.ts +0 -54
- package/dist/ai/tools/schema.d.ts +0 -485
- package/dist/ai/tools/system/index.d.ts +0 -3
- package/dist/ai/tools/trigger-flow/index.d.ts +0 -8
- package/dist/ai/tools/types.d.ts +0 -40
- package/dist/ai/tools/utils.d.ts +0 -9
- package/dist/app.d.ts +0 -2
- package/dist/auth/auth.d.ts +0 -47
- package/dist/auth/drivers/index.d.ts +0 -5
- package/dist/auth/drivers/ldap.d.ts +0 -18
- package/dist/auth/drivers/local.d.ts +0 -9
- package/dist/auth/drivers/oauth2.d.ts +0 -18
- package/dist/auth/drivers/openid.d.ts +0 -19
- package/dist/auth/drivers/saml.d.ts +0 -13
- package/dist/auth/utils/generate-callback-url.d.ts +0 -11
- package/dist/auth/utils/resolve-login-redirect.d.ts +0 -11
- package/dist/auth.d.ts +0 -3
- package/dist/bus/index.d.ts +0 -1
- package/dist/bus/lib/use-bus.d.ts +0 -9
- package/dist/cache.d.ts +0 -31
- package/dist/cli/commands/bootstrap/index.d.ts +0 -3
- package/dist/cli/commands/count/index.d.ts +0 -1
- package/dist/cli/commands/database/install.d.ts +0 -1
- package/dist/cli/commands/database/migrate.d.ts +0 -1
- package/dist/cli/commands/init/index.d.ts +0 -1
- package/dist/cli/commands/init/questions.d.ts +0 -21
- package/dist/cli/commands/roles/create.d.ts +0 -5
- package/dist/cli/commands/schema/apply.d.ts +0 -9
- package/dist/cli/commands/schema/snapshot.d.ts +0 -4
- package/dist/cli/commands/security/key.d.ts +0 -1
- package/dist/cli/commands/security/secret.d.ts +0 -1
- package/dist/cli/commands/users/create.d.ts +0 -5
- package/dist/cli/commands/users/passwd.d.ts +0 -4
- package/dist/cli/index.d.ts +0 -2
- package/dist/cli/load-extensions.d.ts +0 -1
- package/dist/cli/run.d.ts +0 -1
- package/dist/cli/utils/create-db-connection.d.ts +0 -13
- package/dist/cli/utils/create-env/index.d.ts +0 -3
- package/dist/cli/utils/drivers.d.ts +0 -3
- package/dist/constants.d.ts +0 -30
- package/dist/controllers/access.d.ts +0 -2
- package/dist/controllers/activity.d.ts +0 -2
- package/dist/controllers/assets.d.ts +0 -2
- package/dist/controllers/auth.d.ts +0 -2
- package/dist/controllers/collections.d.ts +0 -2
- package/dist/controllers/comments.d.ts +0 -2
- package/dist/controllers/dashboards.d.ts +0 -2
- package/dist/controllers/deployment-webhooks.d.ts +0 -2
- package/dist/controllers/deployment.d.ts +0 -2
- package/dist/controllers/extensions.d.ts +0 -2
- package/dist/controllers/fields.d.ts +0 -2
- package/dist/controllers/files.d.ts +0 -4
- package/dist/controllers/flows.d.ts +0 -2
- package/dist/controllers/folders.d.ts +0 -2
- package/dist/controllers/graphql.d.ts +0 -2
- package/dist/controllers/items.d.ts +0 -2
- package/dist/controllers/mcp.d.ts +0 -2
- package/dist/controllers/metrics.d.ts +0 -2
- package/dist/controllers/not-found.d.ts +0 -14
- package/dist/controllers/notifications.d.ts +0 -2
- package/dist/controllers/operations.d.ts +0 -2
- package/dist/controllers/panels.d.ts +0 -2
- package/dist/controllers/permissions.d.ts +0 -2
- package/dist/controllers/policies.d.ts +0 -2
- package/dist/controllers/presets.d.ts +0 -2
- package/dist/controllers/relations.d.ts +0 -2
- package/dist/controllers/revisions.d.ts +0 -2
- package/dist/controllers/roles.d.ts +0 -2
- package/dist/controllers/schema.d.ts +0 -2
- package/dist/controllers/server.d.ts +0 -2
- package/dist/controllers/settings.d.ts +0 -2
- package/dist/controllers/shares.d.ts +0 -2
- package/dist/controllers/translations.d.ts +0 -2
- package/dist/controllers/tus.d.ts +0 -2
- package/dist/controllers/users.d.ts +0 -2
- package/dist/controllers/utils.d.ts +0 -2
- package/dist/controllers/versions.d.ts +0 -2
- package/dist/database/errors/dialects/mssql.d.ts +0 -3
- package/dist/database/errors/dialects/mysql.d.ts +0 -3
- package/dist/database/errors/dialects/oracle.d.ts +0 -2
- package/dist/database/errors/dialects/postgres.d.ts +0 -3
- package/dist/database/errors/dialects/sqlite.d.ts +0 -3
- package/dist/database/errors/dialects/types.d.ts +0 -41
- package/dist/database/errors/translate.d.ts +0 -12
- package/dist/database/get-ast-from-query/get-ast-from-query.d.ts +0 -16
- package/dist/database/get-ast-from-query/lib/convert-wildcards.d.ts +0 -15
- package/dist/database/get-ast-from-query/lib/parse-fields.d.ts +0 -17
- package/dist/database/get-ast-from-query/utils/get-allowed-sort.d.ts +0 -9
- package/dist/database/get-ast-from-query/utils/get-deep-query.d.ts +0 -14
- package/dist/database/get-ast-from-query/utils/get-related-collection.d.ts +0 -2
- package/dist/database/helpers/capabilities/dialects/default.d.ts +0 -3
- package/dist/database/helpers/capabilities/dialects/mysql.d.ts +0 -4
- package/dist/database/helpers/capabilities/dialects/postgres.d.ts +0 -5
- package/dist/database/helpers/capabilities/index.d.ts +0 -7
- package/dist/database/helpers/capabilities/types.d.ts +0 -11
- package/dist/database/helpers/date/dialects/default.d.ts +0 -3
- package/dist/database/helpers/date/dialects/mssql.d.ts +0 -4
- package/dist/database/helpers/date/dialects/mysql.d.ts +0 -5
- package/dist/database/helpers/date/dialects/oracle.d.ts +0 -5
- package/dist/database/helpers/date/dialects/sqlite.d.ts +0 -5
- package/dist/database/helpers/date/index.d.ts +0 -7
- package/dist/database/helpers/date/types.d.ts +0 -7
- package/dist/database/helpers/fn/dialects/mssql.d.ts +0 -15
- package/dist/database/helpers/fn/dialects/mysql.d.ts +0 -16
- package/dist/database/helpers/fn/dialects/oracle.d.ts +0 -15
- package/dist/database/helpers/fn/dialects/postgres.d.ts +0 -28
- package/dist/database/helpers/fn/dialects/sqlite.d.ts +0 -15
- package/dist/database/helpers/fn/index.d.ts +0 -7
- package/dist/database/helpers/fn/json/parse-function.d.ts +0 -19
- package/dist/database/helpers/fn/types.d.ts +0 -34
- package/dist/database/helpers/geometry/dialects/mssql.d.ts +0 -14
- package/dist/database/helpers/geometry/dialects/mysql.d.ts +0 -7
- package/dist/database/helpers/geometry/dialects/oracle.d.ts +0 -15
- package/dist/database/helpers/geometry/dialects/postgres.d.ts +0 -10
- package/dist/database/helpers/geometry/dialects/redshift.d.ts +0 -7
- package/dist/database/helpers/geometry/dialects/sqlite.d.ts +0 -6
- package/dist/database/helpers/geometry/index.d.ts +0 -7
- package/dist/database/helpers/geometry/types.d.ts +0 -20
- package/dist/database/helpers/index.d.ts +0 -19
- package/dist/database/helpers/number/dialects/default.d.ts +0 -3
- package/dist/database/helpers/number/dialects/mssql.d.ts +0 -7
- package/dist/database/helpers/number/dialects/oracle.d.ts +0 -6
- package/dist/database/helpers/number/dialects/postgres.d.ts +0 -5
- package/dist/database/helpers/number/dialects/sqlite.d.ts +0 -6
- package/dist/database/helpers/number/index.d.ts +0 -7
- package/dist/database/helpers/number/types.d.ts +0 -12
- package/dist/database/helpers/number/utils/decimal-limit.d.ts +0 -4
- package/dist/database/helpers/number/utils/maybe-stringify-big-int.d.ts +0 -1
- package/dist/database/helpers/number/utils/number-in-range.d.ts +0 -3
- package/dist/database/helpers/schema/dialects/cockroachdb.d.ts +0 -12
- package/dist/database/helpers/schema/dialects/default.d.ts +0 -3
- package/dist/database/helpers/schema/dialects/mssql.d.ts +0 -14
- package/dist/database/helpers/schema/dialects/mysql.d.ts +0 -10
- package/dist/database/helpers/schema/dialects/oracle.d.ts +0 -24
- package/dist/database/helpers/schema/dialects/postgres.d.ts +0 -8
- package/dist/database/helpers/schema/dialects/sqlite.d.ts +0 -8
- package/dist/database/helpers/schema/index.d.ts +0 -7
- package/dist/database/helpers/schema/types.d.ts +0 -63
- package/dist/database/helpers/schema/utils/prep-query-params.d.ts +0 -12
- package/dist/database/helpers/sequence/dialects/default.d.ts +0 -3
- package/dist/database/helpers/sequence/dialects/postgres.d.ts +0 -12
- package/dist/database/helpers/sequence/index.d.ts +0 -7
- package/dist/database/helpers/sequence/types.d.ts +0 -5
- package/dist/database/helpers/types.d.ts +0 -5
- package/dist/database/index.d.ts +0 -15
- package/dist/database/migrations/20201028A-remove-collection-foreign-keys.d.ts +0 -3
- package/dist/database/migrations/20201029A-remove-system-relations.d.ts +0 -3
- package/dist/database/migrations/20201029B-remove-system-collections.d.ts +0 -3
- package/dist/database/migrations/20201029C-remove-system-fields.d.ts +0 -3
- package/dist/database/migrations/20201105A-add-cascade-system-relations.d.ts +0 -8
- package/dist/database/migrations/20201105B-change-webhook-url-type.d.ts +0 -3
- package/dist/database/migrations/20210225A-add-relations-sort-field.d.ts +0 -3
- package/dist/database/migrations/20210304A-remove-locked-fields.d.ts +0 -3
- package/dist/database/migrations/20210312A-webhooks-collections-text.d.ts +0 -3
- package/dist/database/migrations/20210331A-add-refresh-interval.d.ts +0 -3
- package/dist/database/migrations/20210415A-make-filesize-nullable.d.ts +0 -3
- package/dist/database/migrations/20210416A-add-collections-accountability.d.ts +0 -3
- package/dist/database/migrations/20210422A-remove-files-interface.d.ts +0 -3
- package/dist/database/migrations/20210506A-rename-interfaces.d.ts +0 -3
- package/dist/database/migrations/20210510A-restructure-relations.d.ts +0 -3
- package/dist/database/migrations/20210518A-add-foreign-key-constraints.d.ts +0 -3
- package/dist/database/migrations/20210519A-add-system-fk-triggers.d.ts +0 -3
- package/dist/database/migrations/20210521A-add-collections-icon-color.d.ts +0 -3
- package/dist/database/migrations/20210525A-add-insights.d.ts +0 -3
- package/dist/database/migrations/20210608A-add-deep-clone-config.d.ts +0 -3
- package/dist/database/migrations/20210626A-change-filesize-bigint.d.ts +0 -3
- package/dist/database/migrations/20210716A-add-conditions-to-fields.d.ts +0 -3
- package/dist/database/migrations/20210721A-add-default-folder.d.ts +0 -3
- package/dist/database/migrations/20210802A-replace-groups.d.ts +0 -3
- package/dist/database/migrations/20210803A-add-required-to-fields.d.ts +0 -3
- package/dist/database/migrations/20210805A-update-groups.d.ts +0 -3
- package/dist/database/migrations/20210805B-change-image-metadata-structure.d.ts +0 -3
- package/dist/database/migrations/20210811A-add-geometry-config.d.ts +0 -3
- package/dist/database/migrations/20210831A-remove-limit-column.d.ts +0 -3
- package/dist/database/migrations/20210903A-add-auth-provider.d.ts +0 -3
- package/dist/database/migrations/20210907A-webhooks-collections-not-null.d.ts +0 -3
- package/dist/database/migrations/20210910A-move-module-setup.d.ts +0 -3
- package/dist/database/migrations/20210920A-webhooks-url-not-null.d.ts +0 -3
- package/dist/database/migrations/20210924A-add-collection-organization.d.ts +0 -3
- package/dist/database/migrations/20210927A-replace-fields-group.d.ts +0 -3
- package/dist/database/migrations/20210927B-replace-m2m-interface.d.ts +0 -3
- package/dist/database/migrations/20210929A-rename-login-action.d.ts +0 -3
- package/dist/database/migrations/20211007A-update-presets.d.ts +0 -3
- package/dist/database/migrations/20211009A-add-auth-data.d.ts +0 -3
- package/dist/database/migrations/20211016A-add-webhook-headers.d.ts +0 -3
- package/dist/database/migrations/20211103A-set-unique-to-user-token.d.ts +0 -3
- package/dist/database/migrations/20211103B-update-special-geometry.d.ts +0 -3
- package/dist/database/migrations/20211104A-remove-collections-listing.d.ts +0 -3
- package/dist/database/migrations/20211118A-add-notifications.d.ts +0 -3
- package/dist/database/migrations/20211211A-add-shares.d.ts +0 -3
- package/dist/database/migrations/20211230A-add-project-descriptor.d.ts +0 -3
- package/dist/database/migrations/20220303A-remove-default-project-color.d.ts +0 -3
- package/dist/database/migrations/20220308A-add-bookmark-icon-and-color.d.ts +0 -3
- package/dist/database/migrations/20220314A-add-translation-strings.d.ts +0 -3
- package/dist/database/migrations/20220322A-rename-field-typecast-flags.d.ts +0 -3
- package/dist/database/migrations/20220323A-add-field-validation.d.ts +0 -3
- package/dist/database/migrations/20220325A-fix-typecast-flags.d.ts +0 -3
- package/dist/database/migrations/20220325B-add-default-language.d.ts +0 -3
- package/dist/database/migrations/20220402A-remove-default-value-panel-icon.d.ts +0 -3
- package/dist/database/migrations/20220429A-add-flows.d.ts +0 -3
- package/dist/database/migrations/20220429B-add-color-to-insights-icon.d.ts +0 -3
- package/dist/database/migrations/20220429C-drop-non-null-from-ip-of-activity.d.ts +0 -3
- package/dist/database/migrations/20220429D-drop-non-null-from-sender-of-notifications.d.ts +0 -3
- package/dist/database/migrations/20220614A-rename-hook-trigger-to-event.d.ts +0 -3
- package/dist/database/migrations/20220801A-update-notifications-timestamp-column.d.ts +0 -3
- package/dist/database/migrations/20220802A-add-custom-aspect-ratios.d.ts +0 -3
- package/dist/database/migrations/20220826A-add-origin-to-accountability.d.ts +0 -3
- package/dist/database/migrations/20230401A-update-material-icons.d.ts +0 -3
- package/dist/database/migrations/20230525A-add-preview-settings.d.ts +0 -3
- package/dist/database/migrations/20230526A-migrate-translation-strings.d.ts +0 -3
- package/dist/database/migrations/20230721A-require-shares-fields.d.ts +0 -3
- package/dist/database/migrations/20230823A-add-content-versioning.d.ts +0 -3
- package/dist/database/migrations/20230927A-themes.d.ts +0 -3
- package/dist/database/migrations/20231009A-update-csv-fields-to-text.d.ts +0 -3
- package/dist/database/migrations/20231009B-update-panel-options.d.ts +0 -3
- package/dist/database/migrations/20231010A-add-extensions.d.ts +0 -3
- package/dist/database/migrations/20231215A-add-focalpoints.d.ts +0 -3
- package/dist/database/migrations/20240122A-add-report-url-fields.d.ts +0 -3
- package/dist/database/migrations/20240204A-marketplace.d.ts +0 -3
- package/dist/database/migrations/20240305A-change-useragent-type.d.ts +0 -3
- package/dist/database/migrations/20240311A-deprecate-webhooks.d.ts +0 -28
- package/dist/database/migrations/20240422A-public-registration.d.ts +0 -3
- package/dist/database/migrations/20240515A-add-session-window.d.ts +0 -3
- package/dist/database/migrations/20240701A-add-tus-data.d.ts +0 -3
- package/dist/database/migrations/20240716A-update-files-date-fields.d.ts +0 -3
- package/dist/database/migrations/20240806A-permissions-policies.d.ts +0 -3
- package/dist/database/migrations/20240817A-update-icon-fields-length.d.ts +0 -3
- package/dist/database/migrations/20240909A-separate-comments.d.ts +0 -3
- package/dist/database/migrations/20240909B-consolidate-content-versioning.d.ts +0 -3
- package/dist/database/migrations/20240924A-migrate-legacy-comments.d.ts +0 -3
- package/dist/database/migrations/20240924B-populate-versioning-deltas.d.ts +0 -3
- package/dist/database/migrations/20250224A-visual-editor.d.ts +0 -3
- package/dist/database/migrations/20250609A-license-banner.d.ts +0 -3
- package/dist/database/migrations/20250613A-add-project-id.d.ts +0 -3
- package/dist/database/migrations/20250718A-add-direction.d.ts +0 -3
- package/dist/database/migrations/20250813A-add-mcp.d.ts +0 -3
- package/dist/database/migrations/20251012A-add-field-searchable.d.ts +0 -3
- package/dist/database/migrations/20251014A-add-project-owner.d.ts +0 -3
- package/dist/database/migrations/20251028A-add-retention-indexes.d.ts +0 -3
- package/dist/database/migrations/20251103A-add-ai-settings.d.ts +0 -3
- package/dist/database/migrations/20251224A-remove-webhooks.d.ts +0 -3
- package/dist/database/migrations/20260110A-add-ai-provider-settings.d.ts +0 -3
- package/dist/database/migrations/20260113A-add-revisions-index.d.ts +0 -3
- package/dist/database/migrations/20260128A-add-collaborative-editing.d.ts +0 -3
- package/dist/database/migrations/20260204A-add-deployment.d.ts +0 -3
- package/dist/database/migrations/20260211A-add-deployment-webhooks.d.ts +0 -3
- package/dist/database/migrations/run.d.ts +0 -2
- package/dist/database/run-ast/lib/apply-query/add-join.d.ts +0 -54
- package/dist/database/run-ast/lib/apply-query/aggregate.d.ts +0 -3
- package/dist/database/run-ast/lib/apply-query/filter/get-filter-type.d.ts +0 -8
- package/dist/database/run-ast/lib/apply-query/filter/index.d.ts +0 -8
- package/dist/database/run-ast/lib/apply-query/filter/operator.d.ts +0 -3
- package/dist/database/run-ast/lib/apply-query/filter/validate-operator.d.ts +0 -2
- package/dist/database/run-ast/lib/apply-query/get-filter-path.d.ts +0 -1
- package/dist/database/run-ast/lib/apply-query/get-operation.d.ts +0 -7
- package/dist/database/run-ast/lib/apply-query/index.d.ts +0 -19
- package/dist/database/run-ast/lib/apply-query/join-filter-with-cases.d.ts +0 -2
- package/dist/database/run-ast/lib/apply-query/mock.d.ts +0 -3
- package/dist/database/run-ast/lib/apply-query/pagination.d.ts +0 -3
- package/dist/database/run-ast/lib/apply-query/search.d.ts +0 -4
- package/dist/database/run-ast/lib/apply-query/sort.d.ts +0 -19
- package/dist/database/run-ast/lib/get-db-query.d.ts +0 -14
- package/dist/database/run-ast/lib/parse-current-level.d.ts +0 -7
- package/dist/database/run-ast/modules/fetch-permitted-ast-root-fields.d.ts +0 -15
- package/dist/database/run-ast/run-ast.d.ts +0 -7
- package/dist/database/run-ast/types.d.ts +0 -20
- package/dist/database/run-ast/utils/apply-case-when.d.ts +0 -17
- package/dist/database/run-ast/utils/apply-function-to-column-name.d.ts +0 -12
- package/dist/database/run-ast/utils/apply-parent-filters.d.ts +0 -3
- package/dist/database/run-ast/utils/generate-alias.d.ts +0 -6
- package/dist/database/run-ast/utils/get-column-pre-processor.d.ts +0 -10
- package/dist/database/run-ast/utils/get-column.d.ts +0 -25
- package/dist/database/run-ast/utils/get-field-alias.d.ts +0 -2
- package/dist/database/run-ast/utils/get-inner-query-column-pre-processor.d.ts +0 -5
- package/dist/database/run-ast/utils/merge-with-parent-items.d.ts +0 -3
- package/dist/database/run-ast/utils/remove-temporary-fields.d.ts +0 -3
- package/dist/database/run-ast/utils/with-preprocess-bindings.d.ts +0 -2
- package/dist/database/seeds/run.d.ts +0 -2
- package/dist/deployment/deployment.d.ts +0 -117
- package/dist/deployment/drivers/index.d.ts +0 -2
- package/dist/deployment/drivers/netlify.d.ts +0 -37
- package/dist/deployment/drivers/vercel.d.ts +0 -35
- package/dist/deployment/index.d.ts +0 -2
- package/dist/deployment.d.ts +0 -29
- package/dist/emitter.d.ts +0 -21
- package/dist/extensions/index.d.ts +0 -2
- package/dist/extensions/lib/get-extensions-path.d.ts +0 -1
- package/dist/extensions/lib/get-extensions-settings.d.ts +0 -11
- package/dist/extensions/lib/get-extensions.d.ts +0 -5
- package/dist/extensions/lib/get-shared-deps-mapping.d.ts +0 -1
- package/dist/extensions/lib/installation/index.d.ts +0 -2
- package/dist/extensions/lib/installation/manager.d.ts +0 -5
- package/dist/extensions/lib/sandbox/generate-api-extensions-sandbox-entrypoint.d.ts +0 -28
- package/dist/extensions/lib/sandbox/generate-host-function-reference.d.ts +0 -11
- package/dist/extensions/lib/sandbox/register/action.d.ts +0 -6
- package/dist/extensions/lib/sandbox/register/call-reference.d.ts +0 -5
- package/dist/extensions/lib/sandbox/register/filter.d.ts +0 -6
- package/dist/extensions/lib/sandbox/register/index.d.ts +0 -5
- package/dist/extensions/lib/sandbox/register/operation.d.ts +0 -6
- package/dist/extensions/lib/sandbox/register/route.d.ts +0 -17
- package/dist/extensions/lib/sandbox/sdk/generators/index.d.ts +0 -3
- package/dist/extensions/lib/sandbox/sdk/generators/log.d.ts +0 -3
- package/dist/extensions/lib/sandbox/sdk/generators/request.d.ts +0 -12
- package/dist/extensions/lib/sandbox/sdk/generators/sleep.d.ts +0 -3
- package/dist/extensions/lib/sandbox/sdk/index.d.ts +0 -2
- package/dist/extensions/lib/sandbox/sdk/instantiate.d.ts +0 -11
- package/dist/extensions/lib/sandbox/sdk/sdk.d.ts +0 -20
- package/dist/extensions/lib/sandbox/sdk/utils/index.d.ts +0 -1
- package/dist/extensions/lib/sandbox/sdk/utils/wrap.d.ts +0 -13
- package/dist/extensions/lib/sync/status.d.ts +0 -11
- package/dist/extensions/lib/sync/sync.d.ts +0 -6
- package/dist/extensions/lib/sync/tracker.d.ts +0 -18
- package/dist/extensions/lib/sync/utils.d.ts +0 -24
- package/dist/extensions/lib/wrap-embeds.d.ts +0 -4
- package/dist/extensions/manager.d.ts +0 -164
- package/dist/flows.d.ts +0 -29
- package/dist/index.d.ts +0 -1
- package/dist/lock/index.d.ts +0 -1
- package/dist/lock/lib/use-lock.d.ts +0 -8
- package/dist/logger/index.d.ts +0 -14
- package/dist/logger/logs-stream.d.ts +0 -10
- package/dist/logger/redact-query.d.ts +0 -1
- package/dist/mailer.d.ts +0 -2
- package/dist/metrics/index.d.ts +0 -1
- package/dist/metrics/lib/create-metrics.d.ts +0 -15
- package/dist/metrics/lib/use-metrics.d.ts +0 -17
- package/dist/metrics/types/metric.d.ts +0 -1
- package/dist/middleware/authenticate.d.ts +0 -7
- package/dist/middleware/cache.d.ts +0 -3
- package/dist/middleware/collection-exists.d.ts +0 -6
- package/dist/middleware/cors.d.ts +0 -3
- package/dist/middleware/error-handler.d.ts +0 -2
- package/dist/middleware/extract-token.d.ts +0 -12
- package/dist/middleware/graphql.d.ts +0 -2
- package/dist/middleware/rate-limiter-global.d.ts +0 -5
- package/dist/middleware/rate-limiter-ip.d.ts +0 -5
- package/dist/middleware/rate-limiter-registration.d.ts +0 -5
- package/dist/middleware/respond.d.ts +0 -2
- package/dist/middleware/sanitize-query.d.ts +0 -7
- package/dist/middleware/schema.d.ts +0 -3
- package/dist/middleware/use-collection.d.ts +0 -7
- package/dist/middleware/validate-batch.d.ts +0 -1
- package/dist/operations/condition/index.d.ts +0 -6
- package/dist/operations/exec/index.d.ts +0 -5
- package/dist/operations/item-create/index.d.ts +0 -8
- package/dist/operations/item-delete/index.d.ts +0 -10
- package/dist/operations/item-read/index.d.ts +0 -10
- package/dist/operations/item-update/index.d.ts +0 -11
- package/dist/operations/json-web-token/index.d.ts +0 -10
- package/dist/operations/log/index.d.ts +0 -5
- package/dist/operations/mail/index.d.ts +0 -13
- package/dist/operations/mail/rate-limiter.d.ts +0 -1
- package/dist/operations/notification/index.d.ts +0 -10
- package/dist/operations/request/index.d.ts +0 -11
- package/dist/operations/sleep/index.d.ts +0 -5
- package/dist/operations/throw-error/index.d.ts +0 -7
- package/dist/operations/transform/index.d.ts +0 -5
- package/dist/operations/trigger/index.d.ts +0 -8
- package/dist/permissions/cache.d.ts +0 -2
- package/dist/permissions/lib/fetch-permissions.d.ts +0 -20
- package/dist/permissions/lib/fetch-policies.d.ts +0 -14
- package/dist/permissions/lib/fetch-roles-tree.d.ts +0 -6
- package/dist/permissions/lib/with-app-minimal-permissions.d.ts +0 -2
- package/dist/permissions/modules/fetch-accountability-collection-access/fetch-accountability-collection-access.d.ts +0 -7
- package/dist/permissions/modules/fetch-accountability-policy-globals/fetch-accountability-policy-globals.d.ts +0 -3
- package/dist/permissions/modules/fetch-allowed-collections/fetch-allowed-collections.d.ts +0 -7
- package/dist/permissions/modules/fetch-allowed-field-map/fetch-allowed-field-map.d.ts +0 -8
- package/dist/permissions/modules/fetch-allowed-fields/fetch-allowed-fields.d.ts +0 -15
- package/dist/permissions/modules/fetch-global-access/fetch-global-access.d.ts +0 -12
- package/dist/permissions/modules/fetch-inconsistent-field-map/fetch-inconsistent-field-map.d.ts +0 -11
- package/dist/permissions/modules/fetch-policies-ip-access/fetch-policies-ip-access.d.ts +0 -4
- package/dist/permissions/modules/process-ast/lib/extract-fields-from-children.d.ts +0 -4
- package/dist/permissions/modules/process-ast/lib/extract-fields-from-query.d.ts +0 -3
- package/dist/permissions/modules/process-ast/lib/field-map-from-ast.d.ts +0 -4
- package/dist/permissions/modules/process-ast/lib/get-cases.d.ts +0 -6
- package/dist/permissions/modules/process-ast/lib/inject-cases.d.ts +0 -9
- package/dist/permissions/modules/process-ast/process-ast.d.ts +0 -9
- package/dist/permissions/modules/process-ast/types.d.ts +0 -18
- package/dist/permissions/modules/process-ast/utils/collections-in-field-map.d.ts +0 -2
- package/dist/permissions/modules/process-ast/utils/context-has-dynamic-variables.d.ts +0 -2
- package/dist/permissions/modules/process-ast/utils/dedupe-access.d.ts +0 -12
- package/dist/permissions/modules/process-ast/utils/extract-paths-from-query.d.ts +0 -15
- package/dist/permissions/modules/process-ast/utils/find-related-collection.d.ts +0 -3
- package/dist/permissions/modules/process-ast/utils/flatten-filter.d.ts +0 -3
- package/dist/permissions/modules/process-ast/utils/format-a2o-key.d.ts +0 -1
- package/dist/permissions/modules/process-ast/utils/get-info-for-path.d.ts +0 -5
- package/dist/permissions/modules/process-ast/utils/has-item-permissions.d.ts +0 -2
- package/dist/permissions/modules/process-ast/utils/stringify-query-path.d.ts +0 -2
- package/dist/permissions/modules/process-ast/utils/validate-path/create-error.d.ts +0 -3
- package/dist/permissions/modules/process-ast/utils/validate-path/validate-path-existence.d.ts +0 -2
- package/dist/permissions/modules/process-ast/utils/validate-path/validate-path-permissions.d.ts +0 -2
- package/dist/permissions/modules/process-payload/lib/is-field-nullable.d.ts +0 -5
- package/dist/permissions/modules/process-payload/process-payload.d.ts +0 -14
- package/dist/permissions/modules/validate-access/lib/validate-collection-access.d.ts +0 -12
- package/dist/permissions/modules/validate-access/lib/validate-item-access.d.ts +0 -22
- package/dist/permissions/modules/validate-access/validate-access.d.ts +0 -16
- package/dist/permissions/modules/validate-remaining-admin/validate-remaining-admin-count.d.ts +0 -1
- package/dist/permissions/modules/validate-remaining-admin/validate-remaining-admin-users.d.ts +0 -4
- package/dist/permissions/types.d.ts +0 -7
- package/dist/permissions/utils/create-default-accountability.d.ts +0 -2
- package/dist/permissions/utils/default-permission.d.ts +0 -7
- package/dist/permissions/utils/extract-required-dynamic-variable-context.d.ts +0 -9
- package/dist/permissions/utils/fetch-dynamic-variable-data.d.ts +0 -9
- package/dist/permissions/utils/fetch-raw-permissions.d.ts +0 -11
- package/dist/permissions/utils/fetch-share-info.d.ts +0 -12
- package/dist/permissions/utils/filter-policies-by-ip.d.ts +0 -2
- package/dist/permissions/utils/get-permissions-for-share.d.ts +0 -4
- package/dist/permissions/utils/get-unaliased-field-key.d.ts +0 -5
- package/dist/permissions/utils/merge-fields.d.ts +0 -1
- package/dist/permissions/utils/merge-permissions.d.ts +0 -9
- package/dist/permissions/utils/process-permissions.d.ts +0 -17
- package/dist/permissions/utils/with-cache.d.ts +0 -12
- package/dist/rate-limiter.d.ts +0 -5
- package/dist/redis/index.d.ts +0 -3
- package/dist/redis/lib/create-redis.d.ts +0 -7
- package/dist/redis/lib/use-redis.d.ts +0 -16
- package/dist/redis/utils/redis-config-available.d.ts +0 -4
- package/dist/request/agent-with-ip-validation.d.ts +0 -10
- package/dist/request/index.d.ts +0 -5
- package/dist/request/is-denied-ip.d.ts +0 -1
- package/dist/schedules/metrics.d.ts +0 -7
- package/dist/schedules/project.d.ts +0 -4
- package/dist/schedules/retention.d.ts +0 -14
- package/dist/schedules/telemetry.d.ts +0 -11
- package/dist/schedules/tus.d.ts +0 -6
- package/dist/server.d.ts +0 -4
- package/dist/services/access.d.ts +0 -9
- package/dist/services/activity.d.ts +0 -5
- package/dist/services/assets/name-deduper.d.ts +0 -7
- package/dist/services/assets.d.ts +0 -35
- package/dist/services/authentication.d.ts +0 -26
- package/dist/services/collections.d.ts +0 -57
- package/dist/services/comments.d.ts +0 -12
- package/dist/services/dashboards.d.ts +0 -5
- package/dist/services/deployment-projects.d.ts +0 -49
- package/dist/services/deployment-runs.d.ts +0 -31
- package/dist/services/deployment.d.ts +0 -81
- package/dist/services/extensions.d.ts +0 -34
- package/dist/services/fields/build-collection-and-field-relations.d.ts +0 -21
- package/dist/services/fields/get-collection-meta-updates.d.ts +0 -11
- package/dist/services/fields/get-collection-relation-list.d.ts +0 -5
- package/dist/services/fields.d.ts +0 -49
- package/dist/services/files/lib/extract-metadata.d.ts +0 -3
- package/dist/services/files/lib/get-sharp-instance.d.ts +0 -2
- package/dist/services/files/utils/get-metadata.d.ts +0 -4
- package/dist/services/files/utils/parse-image-metadata.d.ts +0 -2
- package/dist/services/files.d.ts +0 -31
- package/dist/services/flows.d.ts +0 -8
- package/dist/services/folders.d.ts +0 -30
- package/dist/services/graphql/errors/execution.d.ts +0 -6
- package/dist/services/graphql/errors/format.d.ts +0 -6
- package/dist/services/graphql/errors/index.d.ts +0 -2
- package/dist/services/graphql/errors/validation.d.ts +0 -6
- package/dist/services/graphql/index.d.ts +0 -30
- package/dist/services/graphql/resolvers/get-collection-type.d.ts +0 -3
- package/dist/services/graphql/resolvers/get-field-type.d.ts +0 -3
- package/dist/services/graphql/resolvers/get-relation-type.d.ts +0 -3
- package/dist/services/graphql/resolvers/mutation.d.ts +0 -4
- package/dist/services/graphql/resolvers/query.d.ts +0 -8
- package/dist/services/graphql/resolvers/system-admin.d.ts +0 -5
- package/dist/services/graphql/resolvers/system-global.d.ts +0 -7
- package/dist/services/graphql/resolvers/system.d.ts +0 -5
- package/dist/services/graphql/schema/get-types.d.ts +0 -12
- package/dist/services/graphql/schema/index.d.ts +0 -32
- package/dist/services/graphql/schema/parse-args.d.ts +0 -9
- package/dist/services/graphql/schema/parse-query.d.ts +0 -7
- package/dist/services/graphql/schema/read.d.ts +0 -12
- package/dist/services/graphql/schema/write.d.ts +0 -9
- package/dist/services/graphql/schema-cache.d.ts +0 -3
- package/dist/services/graphql/subscription.d.ts +0 -22
- package/dist/services/graphql/types/bigint.d.ts +0 -2
- package/dist/services/graphql/types/date.d.ts +0 -2
- package/dist/services/graphql/types/geojson.d.ts +0 -2
- package/dist/services/graphql/types/hash.d.ts +0 -2
- package/dist/services/graphql/types/string-or-float.d.ts +0 -5
- package/dist/services/graphql/types/void.d.ts +0 -2
- package/dist/services/graphql/utils/add-path-to-validation-error.d.ts +0 -2
- package/dist/services/graphql/utils/aggregate-query.d.ts +0 -6
- package/dist/services/graphql/utils/filter-replace-m2a.d.ts +0 -7
- package/dist/services/graphql/utils/process-error.d.ts +0 -7
- package/dist/services/graphql/utils/replace-fragments.d.ts +0 -6
- package/dist/services/graphql/utils/replace-funcs.d.ts +0 -5
- package/dist/services/graphql/utils/sanitize-gql-schema.d.ts +0 -8
- package/dist/services/import-export.d.ts +0 -44
- package/dist/services/index.d.ts +0 -41
- package/dist/services/items.d.ts +0 -105
- package/dist/services/mail/index.d.ts +0 -32
- package/dist/services/mail/rate-limiter.d.ts +0 -1
- package/dist/services/meta.d.ts +0 -11
- package/dist/services/notifications.d.ts +0 -7
- package/dist/services/operations.d.ts +0 -8
- package/dist/services/panels.d.ts +0 -5
- package/dist/services/payload.d.ts +0 -77
- package/dist/services/permissions.d.ts +0 -14
- package/dist/services/policies.d.ts +0 -11
- package/dist/services/presets.d.ts +0 -5
- package/dist/services/relations.d.ts +0 -55
- package/dist/services/revisions.d.ts +0 -11
- package/dist/services/roles.d.ts +0 -9
- package/dist/services/schema.d.ts +0 -14
- package/dist/services/server.d.ts +0 -13
- package/dist/services/settings.d.ts +0 -6
- package/dist/services/shares.d.ts +0 -19
- package/dist/services/specifications.d.ts +0 -39
- package/dist/services/tfa.d.ts +0 -12
- package/dist/services/translations.d.ts +0 -8
- package/dist/services/tus/data-store.d.ts +0 -33
- package/dist/services/tus/index.d.ts +0 -2
- package/dist/services/tus/lockers.d.ts +0 -36
- package/dist/services/tus/server.d.ts +0 -8
- package/dist/services/tus/utils/wait-timeout.d.ts +0 -1
- package/dist/services/users.d.ts +0 -54
- package/dist/services/utils.d.ts +0 -15
- package/dist/services/versions.d.ts +0 -19
- package/dist/services/websocket.d.ts +0 -12
- package/dist/start.d.ts +0 -1
- package/dist/storage/get-storage-driver.d.ts +0 -3
- package/dist/storage/index.d.ts +0 -5
- package/dist/storage/register-drivers.d.ts +0 -2
- package/dist/storage/register-locations.d.ts +0 -2
- package/dist/synchronization.d.ts +0 -7
- package/dist/telemetry/index.d.ts +0 -3
- package/dist/telemetry/lib/get-report.d.ts +0 -5
- package/dist/telemetry/lib/send-report.d.ts +0 -10
- package/dist/telemetry/lib/track.d.ts +0 -10
- package/dist/telemetry/types/report.d.ts +0 -102
- package/dist/telemetry/utils/check-user-limits.d.ts +0 -5
- package/dist/telemetry/utils/get-extension-count.d.ts +0 -9
- package/dist/telemetry/utils/get-field-count.d.ts +0 -6
- package/dist/telemetry/utils/get-filesize-sum.d.ts +0 -5
- package/dist/telemetry/utils/get-item-count.d.ts +0 -30
- package/dist/telemetry/utils/get-random-wait-time.d.ts +0 -5
- package/dist/telemetry/utils/get-settings.d.ts +0 -26
- package/dist/telemetry/utils/get-user-item-count.d.ts +0 -13
- package/dist/telemetry/utils/should-check-user-limits.d.ts +0 -4
- package/dist/test-utils/cache.d.ts +0 -51
- package/dist/test-utils/controllers.d.ts +0 -65
- package/dist/test-utils/database.d.ts +0 -48
- package/dist/test-utils/emitter.d.ts +0 -35
- package/dist/test-utils/knex.d.ts +0 -164
- package/dist/test-utils/schema.d.ts +0 -26
- package/dist/test-utils/services/fields-service.d.ts +0 -28
- package/dist/test-utils/services/files-service.d.ts +0 -28
- package/dist/test-utils/services/folders-service.d.ts +0 -28
- package/dist/test-utils/services/items-service.d.ts +0 -23
- package/dist/types/ast.d.ts +0 -100
- package/dist/types/auth.d.ts +0 -42
- package/dist/types/collection.d.ts +0 -9
- package/dist/types/events.d.ts +0 -18
- package/dist/types/index.d.ts +0 -7
- package/dist/types/meta.d.ts +0 -4
- package/dist/types/migration.d.ts +0 -5
- package/dist/types/revision.d.ts +0 -7
- package/dist/types/rolemap.d.ts +0 -3
- package/dist/utils/apply-diff.d.ts +0 -8
- package/dist/utils/apply-snapshot.d.ts +0 -8
- package/dist/utils/async-handler.d.ts +0 -3
- package/dist/utils/calculate-field-depth.d.ts +0 -33
- package/dist/utils/compress.d.ts +0 -2
- package/dist/utils/construct-flow-tree.d.ts +0 -2
- package/dist/utils/create-admin.d.ts +0 -11
- package/dist/utils/deep-map-response.d.ts +0 -17
- package/dist/utils/delete-from-require-cache.d.ts +0 -1
- package/dist/utils/encrypt.d.ts +0 -2
- package/dist/utils/fetch-user-count/fetch-access-lookup.d.ts +0 -19
- package/dist/utils/fetch-user-count/fetch-access-roles.d.ts +0 -16
- package/dist/utils/fetch-user-count/fetch-active-users.d.ts +0 -6
- package/dist/utils/fetch-user-count/fetch-user-count.d.ts +0 -11
- package/dist/utils/fetch-user-count/get-user-count-query.d.ts +0 -20
- package/dist/utils/filter-items.d.ts +0 -2
- package/dist/utils/freeze-schema.d.ts +0 -3
- package/dist/utils/generate-hash.d.ts +0 -1
- package/dist/utils/get-accountability-for-role.d.ts +0 -7
- package/dist/utils/get-accountability-for-token.d.ts +0 -2
- package/dist/utils/get-address.d.ts +0 -2
- package/dist/utils/get-allowed-log-levels.d.ts +0 -3
- package/dist/utils/get-auth-providers.d.ts +0 -10
- package/dist/utils/get-cache-headers.d.ts +0 -10
- package/dist/utils/get-cache-key.d.ts +0 -2
- package/dist/utils/get-collection-from-alias.d.ts +0 -6
- package/dist/utils/get-column-path.d.ts +0 -26
- package/dist/utils/get-config-from-env.d.ts +0 -6
- package/dist/utils/get-default-index-name.d.ts +0 -13
- package/dist/utils/get-default-value.d.ts +0 -5
- package/dist/utils/get-field-relational-depth.d.ts +0 -13
- package/dist/utils/get-field-system-rows.d.ts +0 -2
- package/dist/utils/get-graphql-query-and-variables.d.ts +0 -2
- package/dist/utils/get-graphql-type.d.ts +0 -4
- package/dist/utils/get-ip-from-req.d.ts +0 -3
- package/dist/utils/get-local-type.d.ts +0 -9
- package/dist/utils/get-milliseconds.d.ts +0 -4
- package/dist/utils/get-module-default.d.ts +0 -3
- package/dist/utils/get-schema.d.ts +0 -10
- package/dist/utils/get-secret.d.ts +0 -4
- package/dist/utils/get-service.d.ts +0 -7
- package/dist/utils/get-snapshot-diff.d.ts +0 -2
- package/dist/utils/get-snapshot.d.ts +0 -6
- package/dist/utils/get-string-byte-size.d.ts +0 -4
- package/dist/utils/get-versioned-hash.d.ts +0 -1
- package/dist/utils/import-file-url.d.ts +0 -5
- package/dist/utils/is-directus-jwt.d.ts +0 -5
- package/dist/utils/is-field-allowed.d.ts +0 -4
- package/dist/utils/is-url-allowed.d.ts +0 -4
- package/dist/utils/is-valid-uuid.d.ts +0 -3
- package/dist/utils/job-queue.d.ts +0 -9
- package/dist/utils/jwt.d.ts +0 -3
- package/dist/utils/md.d.ts +0 -4
- package/dist/utils/parse-filter-key.d.ts +0 -7
- package/dist/utils/parse-numeric-string.d.ts +0 -2
- package/dist/utils/parse-value.d.ts +0 -4
- package/dist/utils/permissions-cacheable.d.ts +0 -8
- package/dist/utils/redact-object.d.ts +0 -23
- package/dist/utils/reduce-schema.d.ts +0 -7
- package/dist/utils/require-text.d.ts +0 -1
- package/dist/utils/require-yaml.d.ts +0 -1
- package/dist/utils/sanitize-query.d.ts +0 -5
- package/dist/utils/sanitize-schema.d.ts +0 -33
- package/dist/utils/schedule.d.ts +0 -5
- package/dist/utils/should-clear-cache.d.ts +0 -10
- package/dist/utils/should-skip-cache.d.ts +0 -7
- package/dist/utils/split-fields.d.ts +0 -4
- package/dist/utils/stall.d.ts +0 -26
- package/dist/utils/transaction.d.ts +0 -9
- package/dist/utils/transformations.d.ts +0 -6
- package/dist/utils/url.d.ts +0 -18
- package/dist/utils/user-name.d.ts +0 -2
- package/dist/utils/validate-diff.d.ts +0 -7
- package/dist/utils/validate-env.d.ts +0 -1
- package/dist/utils/validate-keys.d.ts +0 -5
- package/dist/utils/validate-query.d.ts +0 -4
- package/dist/utils/validate-snapshot.d.ts +0 -5
- package/dist/utils/validate-storage.d.ts +0 -1
- package/dist/utils/validate-user-count-integrity.d.ts +0 -6
- package/dist/utils/verify-session-jwt.d.ts +0 -7
- package/dist/utils/versioning/handle-version.d.ts +0 -3
- package/dist/utils/versioning/merge-version-data.d.ts +0 -2
- package/dist/utils/versioning/split-recursive.d.ts +0 -4
- package/dist/websocket/authenticate.d.ts +0 -5
- package/dist/websocket/collab/calculate-cache-metadata.d.ts +0 -9
- package/dist/websocket/collab/collab.d.ts +0 -63
- package/dist/websocket/collab/constants.d.ts +0 -1
- package/dist/websocket/collab/filter-to-fields.d.ts +0 -2
- package/dist/websocket/collab/messenger.d.ts +0 -43
- package/dist/websocket/collab/payload-permissions.d.ts +0 -18
- package/dist/websocket/collab/permissions-cache.d.ts +0 -52
- package/dist/websocket/collab/room.d.ts +0 -125
- package/dist/websocket/collab/store.d.ts +0 -7
- package/dist/websocket/collab/types.d.ts +0 -21
- package/dist/websocket/collab/verify-permissions.d.ts +0 -11
- package/dist/websocket/controllers/base.d.ts +0 -35
- package/dist/websocket/controllers/graphql.d.ts +0 -11
- package/dist/websocket/controllers/hooks.d.ts +0 -1
- package/dist/websocket/controllers/index.d.ts +0 -13
- package/dist/websocket/controllers/logs.d.ts +0 -17
- package/dist/websocket/controllers/rest.d.ts +0 -8
- package/dist/websocket/errors.d.ts +0 -16
- package/dist/websocket/handlers/heartbeat.d.ts +0 -11
- package/dist/websocket/handlers/index.d.ts +0 -7
- package/dist/websocket/handlers/items.d.ts +0 -6
- package/dist/websocket/handlers/logs.d.ts +0 -31
- package/dist/websocket/handlers/subscribe.d.ts +0 -38
- package/dist/websocket/messages.d.ts +0 -114
- package/dist/websocket/types.d.ts +0 -38
- package/dist/websocket/utils/get-expires-at-for-token.d.ts +0 -1
- package/dist/websocket/utils/items.d.ts +0 -43
- package/dist/websocket/utils/message.d.ts +0 -4
- package/dist/websocket/utils/wait-for-message.d.ts +0 -4
|
@@ -0,0 +1,1486 @@
|
|
|
1
|
+
import { __commonJS } from "../../../../../_virtual/rolldown_runtime.js";
|
|
2
|
+
|
|
3
|
+
//#region ../node_modules/.pnpm/lodash.clonedeep@4.5.0/node_modules/lodash.clonedeep/index.js
|
|
4
|
+
var require_lodash = /* @__PURE__ */ __commonJS({ "../node_modules/.pnpm/lodash.clonedeep@4.5.0/node_modules/lodash.clonedeep/index.js": ((exports, module) => {
|
|
5
|
+
/**
|
|
6
|
+
* lodash (Custom Build) <https://lodash.com/>
|
|
7
|
+
* Build: `lodash modularize exports="npm" -o ./`
|
|
8
|
+
* Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
|
9
|
+
* Released under MIT license <https://lodash.com/license>
|
|
10
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
11
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
12
|
+
*/
|
|
13
|
+
/** Used as the size to enable large array optimizations. */
|
|
14
|
+
var LARGE_ARRAY_SIZE = 200;
|
|
15
|
+
/** Used to stand-in for `undefined` hash values. */
|
|
16
|
+
var HASH_UNDEFINED = "__lodash_hash_undefined__";
|
|
17
|
+
/** Used as references for various `Number` constants. */
|
|
18
|
+
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
19
|
+
/** `Object#toString` result references. */
|
|
20
|
+
var argsTag = "[object Arguments]", arrayTag = "[object Array]", boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", funcTag = "[object Function]", genTag = "[object GeneratorFunction]", mapTag = "[object Map]", numberTag = "[object Number]", objectTag = "[object Object]", promiseTag = "[object Promise]", regexpTag = "[object RegExp]", setTag = "[object Set]", stringTag = "[object String]", symbolTag = "[object Symbol]", weakMapTag = "[object WeakMap]";
|
|
21
|
+
var arrayBufferTag = "[object ArrayBuffer]", dataViewTag = "[object DataView]", float32Tag = "[object Float32Array]", float64Tag = "[object Float64Array]", int8Tag = "[object Int8Array]", int16Tag = "[object Int16Array]", int32Tag = "[object Int32Array]", uint8Tag = "[object Uint8Array]", uint8ClampedTag = "[object Uint8ClampedArray]", uint16Tag = "[object Uint16Array]", uint32Tag = "[object Uint32Array]";
|
|
22
|
+
/**
|
|
23
|
+
* Used to match `RegExp`
|
|
24
|
+
* [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
|
|
25
|
+
*/
|
|
26
|
+
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
|
27
|
+
/** Used to match `RegExp` flags from their coerced string values. */
|
|
28
|
+
var reFlags = /\w*$/;
|
|
29
|
+
/** Used to detect host constructors (Safari). */
|
|
30
|
+
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
31
|
+
/** Used to detect unsigned integer values. */
|
|
32
|
+
var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
33
|
+
/** Used to identify `toStringTag` values supported by `_.clone`. */
|
|
34
|
+
var cloneableTags = {};
|
|
35
|
+
cloneableTags[argsTag] = cloneableTags[arrayTag] = cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] = cloneableTags[boolTag] = cloneableTags[dateTag] = cloneableTags[float32Tag] = cloneableTags[float64Tag] = cloneableTags[int8Tag] = cloneableTags[int16Tag] = cloneableTags[int32Tag] = cloneableTags[mapTag] = cloneableTags[numberTag] = cloneableTags[objectTag] = cloneableTags[regexpTag] = cloneableTags[setTag] = cloneableTags[stringTag] = cloneableTags[symbolTag] = cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
|
|
36
|
+
cloneableTags[errorTag] = cloneableTags[funcTag] = cloneableTags[weakMapTag] = false;
|
|
37
|
+
/** Detect free variable `global` from Node.js. */
|
|
38
|
+
var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
|
39
|
+
/** Detect free variable `self`. */
|
|
40
|
+
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
41
|
+
/** Used as a reference to the global object. */
|
|
42
|
+
var root = freeGlobal || freeSelf || Function("return this")();
|
|
43
|
+
/** Detect free variable `exports`. */
|
|
44
|
+
var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports;
|
|
45
|
+
/** Detect free variable `module`. */
|
|
46
|
+
var freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module;
|
|
47
|
+
/** Detect the popular CommonJS extension `module.exports`. */
|
|
48
|
+
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
49
|
+
/**
|
|
50
|
+
* Adds the key-value `pair` to `map`.
|
|
51
|
+
*
|
|
52
|
+
* @private
|
|
53
|
+
* @param {Object} map The map to modify.
|
|
54
|
+
* @param {Array} pair The key-value pair to add.
|
|
55
|
+
* @returns {Object} Returns `map`.
|
|
56
|
+
*/
|
|
57
|
+
function addMapEntry(map, pair) {
|
|
58
|
+
map.set(pair[0], pair[1]);
|
|
59
|
+
return map;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Adds `value` to `set`.
|
|
63
|
+
*
|
|
64
|
+
* @private
|
|
65
|
+
* @param {Object} set The set to modify.
|
|
66
|
+
* @param {*} value The value to add.
|
|
67
|
+
* @returns {Object} Returns `set`.
|
|
68
|
+
*/
|
|
69
|
+
function addSetEntry(set, value) {
|
|
70
|
+
set.add(value);
|
|
71
|
+
return set;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* A specialized version of `_.forEach` for arrays without support for
|
|
75
|
+
* iteratee shorthands.
|
|
76
|
+
*
|
|
77
|
+
* @private
|
|
78
|
+
* @param {Array} [array] The array to iterate over.
|
|
79
|
+
* @param {Function} iteratee The function invoked per iteration.
|
|
80
|
+
* @returns {Array} Returns `array`.
|
|
81
|
+
*/
|
|
82
|
+
function arrayEach(array, iteratee) {
|
|
83
|
+
var index = -1, length = array ? array.length : 0;
|
|
84
|
+
while (++index < length) {
|
|
85
|
+
if (iteratee(array[index], index, array) === false) {
|
|
86
|
+
break;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
return array;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Appends the elements of `values` to `array`.
|
|
93
|
+
*
|
|
94
|
+
* @private
|
|
95
|
+
* @param {Array} array The array to modify.
|
|
96
|
+
* @param {Array} values The values to append.
|
|
97
|
+
* @returns {Array} Returns `array`.
|
|
98
|
+
*/
|
|
99
|
+
function arrayPush(array, values) {
|
|
100
|
+
var index = -1, length = values.length, offset = array.length;
|
|
101
|
+
while (++index < length) {
|
|
102
|
+
array[offset + index] = values[index];
|
|
103
|
+
}
|
|
104
|
+
return array;
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* A specialized version of `_.reduce` for arrays without support for
|
|
108
|
+
* iteratee shorthands.
|
|
109
|
+
*
|
|
110
|
+
* @private
|
|
111
|
+
* @param {Array} [array] The array to iterate over.
|
|
112
|
+
* @param {Function} iteratee The function invoked per iteration.
|
|
113
|
+
* @param {*} [accumulator] The initial value.
|
|
114
|
+
* @param {boolean} [initAccum] Specify using the first element of `array` as
|
|
115
|
+
* the initial value.
|
|
116
|
+
* @returns {*} Returns the accumulated value.
|
|
117
|
+
*/
|
|
118
|
+
function arrayReduce(array, iteratee, accumulator, initAccum) {
|
|
119
|
+
var index = -1, length = array ? array.length : 0;
|
|
120
|
+
if (initAccum && length) {
|
|
121
|
+
accumulator = array[++index];
|
|
122
|
+
}
|
|
123
|
+
while (++index < length) {
|
|
124
|
+
accumulator = iteratee(accumulator, array[index], index, array);
|
|
125
|
+
}
|
|
126
|
+
return accumulator;
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* The base implementation of `_.times` without support for iteratee shorthands
|
|
130
|
+
* or max array length checks.
|
|
131
|
+
*
|
|
132
|
+
* @private
|
|
133
|
+
* @param {number} n The number of times to invoke `iteratee`.
|
|
134
|
+
* @param {Function} iteratee The function invoked per iteration.
|
|
135
|
+
* @returns {Array} Returns the array of results.
|
|
136
|
+
*/
|
|
137
|
+
function baseTimes(n, iteratee) {
|
|
138
|
+
var index = -1, result = Array(n);
|
|
139
|
+
while (++index < n) {
|
|
140
|
+
result[index] = iteratee(index);
|
|
141
|
+
}
|
|
142
|
+
return result;
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* Gets the value at `key` of `object`.
|
|
146
|
+
*
|
|
147
|
+
* @private
|
|
148
|
+
* @param {Object} [object] The object to query.
|
|
149
|
+
* @param {string} key The key of the property to get.
|
|
150
|
+
* @returns {*} Returns the property value.
|
|
151
|
+
*/
|
|
152
|
+
function getValue(object, key) {
|
|
153
|
+
return object == null ? undefined : object[key];
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* Checks if `value` is a host object in IE < 9.
|
|
157
|
+
*
|
|
158
|
+
* @private
|
|
159
|
+
* @param {*} value The value to check.
|
|
160
|
+
* @returns {boolean} Returns `true` if `value` is a host object, else `false`.
|
|
161
|
+
*/
|
|
162
|
+
function isHostObject(value) {
|
|
163
|
+
var result = false;
|
|
164
|
+
if (value != null && typeof value.toString != "function") {
|
|
165
|
+
try {
|
|
166
|
+
result = !!(value + "");
|
|
167
|
+
} catch (e) {}
|
|
168
|
+
}
|
|
169
|
+
return result;
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* Converts `map` to its key-value pairs.
|
|
173
|
+
*
|
|
174
|
+
* @private
|
|
175
|
+
* @param {Object} map The map to convert.
|
|
176
|
+
* @returns {Array} Returns the key-value pairs.
|
|
177
|
+
*/
|
|
178
|
+
function mapToArray(map) {
|
|
179
|
+
var index = -1, result = Array(map.size);
|
|
180
|
+
map.forEach(function(value, key) {
|
|
181
|
+
result[++index] = [key, value];
|
|
182
|
+
});
|
|
183
|
+
return result;
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* Creates a unary function that invokes `func` with its argument transformed.
|
|
187
|
+
*
|
|
188
|
+
* @private
|
|
189
|
+
* @param {Function} func The function to wrap.
|
|
190
|
+
* @param {Function} transform The argument transform.
|
|
191
|
+
* @returns {Function} Returns the new function.
|
|
192
|
+
*/
|
|
193
|
+
function overArg(func, transform) {
|
|
194
|
+
return function(arg) {
|
|
195
|
+
return func(transform(arg));
|
|
196
|
+
};
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* Converts `set` to an array of its values.
|
|
200
|
+
*
|
|
201
|
+
* @private
|
|
202
|
+
* @param {Object} set The set to convert.
|
|
203
|
+
* @returns {Array} Returns the values.
|
|
204
|
+
*/
|
|
205
|
+
function setToArray(set) {
|
|
206
|
+
var index = -1, result = Array(set.size);
|
|
207
|
+
set.forEach(function(value) {
|
|
208
|
+
result[++index] = value;
|
|
209
|
+
});
|
|
210
|
+
return result;
|
|
211
|
+
}
|
|
212
|
+
/** Used for built-in method references. */
|
|
213
|
+
var arrayProto = Array.prototype, funcProto = Function.prototype, objectProto = Object.prototype;
|
|
214
|
+
/** Used to detect overreaching core-js shims. */
|
|
215
|
+
var coreJsData = root["__core-js_shared__"];
|
|
216
|
+
/** Used to detect methods masquerading as native. */
|
|
217
|
+
var maskSrcKey = function() {
|
|
218
|
+
var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
|
|
219
|
+
return uid ? "Symbol(src)_1." + uid : "";
|
|
220
|
+
}();
|
|
221
|
+
/** Used to resolve the decompiled source of functions. */
|
|
222
|
+
var funcToString = funcProto.toString;
|
|
223
|
+
/** Used to check objects for own properties. */
|
|
224
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
225
|
+
/**
|
|
226
|
+
* Used to resolve the
|
|
227
|
+
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
228
|
+
* of values.
|
|
229
|
+
*/
|
|
230
|
+
var objectToString = objectProto.toString;
|
|
231
|
+
/** Used to detect if a method is native. */
|
|
232
|
+
var reIsNative = RegExp("^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
|
|
233
|
+
/** Built-in value references. */
|
|
234
|
+
var Buffer = moduleExports ? root.Buffer : undefined, Symbol = root.Symbol, Uint8Array = root.Uint8Array, getPrototype = overArg(Object.getPrototypeOf, Object), objectCreate = Object.create, propertyIsEnumerable = objectProto.propertyIsEnumerable, splice = arrayProto.splice;
|
|
235
|
+
var nativeGetSymbols = Object.getOwnPropertySymbols, nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined, nativeKeys = overArg(Object.keys, Object);
|
|
236
|
+
var DataView = getNative(root, "DataView"), Map = getNative(root, "Map"), Promise$1 = getNative(root, "Promise"), Set = getNative(root, "Set"), WeakMap = getNative(root, "WeakMap"), nativeCreate = getNative(Object, "create");
|
|
237
|
+
/** Used to detect maps, sets, and weakmaps. */
|
|
238
|
+
var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map), promiseCtorString = toSource(Promise$1), setCtorString = toSource(Set), weakMapCtorString = toSource(WeakMap);
|
|
239
|
+
/** Used to convert symbols to primitives and strings. */
|
|
240
|
+
var symbolProto = Symbol ? Symbol.prototype : undefined, symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
|
|
241
|
+
/**
|
|
242
|
+
* Creates a hash object.
|
|
243
|
+
*
|
|
244
|
+
* @private
|
|
245
|
+
* @constructor
|
|
246
|
+
* @param {Array} [entries] The key-value pairs to cache.
|
|
247
|
+
*/
|
|
248
|
+
function Hash(entries) {
|
|
249
|
+
var index = -1, length = entries ? entries.length : 0;
|
|
250
|
+
this.clear();
|
|
251
|
+
while (++index < length) {
|
|
252
|
+
var entry = entries[index];
|
|
253
|
+
this.set(entry[0], entry[1]);
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
/**
|
|
257
|
+
* Removes all key-value entries from the hash.
|
|
258
|
+
*
|
|
259
|
+
* @private
|
|
260
|
+
* @name clear
|
|
261
|
+
* @memberOf Hash
|
|
262
|
+
*/
|
|
263
|
+
function hashClear() {
|
|
264
|
+
this.__data__ = nativeCreate ? nativeCreate(null) : {};
|
|
265
|
+
}
|
|
266
|
+
/**
|
|
267
|
+
* Removes `key` and its value from the hash.
|
|
268
|
+
*
|
|
269
|
+
* @private
|
|
270
|
+
* @name delete
|
|
271
|
+
* @memberOf Hash
|
|
272
|
+
* @param {Object} hash The hash to modify.
|
|
273
|
+
* @param {string} key The key of the value to remove.
|
|
274
|
+
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
275
|
+
*/
|
|
276
|
+
function hashDelete(key) {
|
|
277
|
+
return this.has(key) && delete this.__data__[key];
|
|
278
|
+
}
|
|
279
|
+
/**
|
|
280
|
+
* Gets the hash value for `key`.
|
|
281
|
+
*
|
|
282
|
+
* @private
|
|
283
|
+
* @name get
|
|
284
|
+
* @memberOf Hash
|
|
285
|
+
* @param {string} key The key of the value to get.
|
|
286
|
+
* @returns {*} Returns the entry value.
|
|
287
|
+
*/
|
|
288
|
+
function hashGet(key) {
|
|
289
|
+
var data = this.__data__;
|
|
290
|
+
if (nativeCreate) {
|
|
291
|
+
var result = data[key];
|
|
292
|
+
return result === HASH_UNDEFINED ? undefined : result;
|
|
293
|
+
}
|
|
294
|
+
return hasOwnProperty.call(data, key) ? data[key] : undefined;
|
|
295
|
+
}
|
|
296
|
+
/**
|
|
297
|
+
* Checks if a hash value for `key` exists.
|
|
298
|
+
*
|
|
299
|
+
* @private
|
|
300
|
+
* @name has
|
|
301
|
+
* @memberOf Hash
|
|
302
|
+
* @param {string} key The key of the entry to check.
|
|
303
|
+
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
304
|
+
*/
|
|
305
|
+
function hashHas(key) {
|
|
306
|
+
var data = this.__data__;
|
|
307
|
+
return nativeCreate ? data[key] !== undefined : hasOwnProperty.call(data, key);
|
|
308
|
+
}
|
|
309
|
+
/**
|
|
310
|
+
* Sets the hash `key` to `value`.
|
|
311
|
+
*
|
|
312
|
+
* @private
|
|
313
|
+
* @name set
|
|
314
|
+
* @memberOf Hash
|
|
315
|
+
* @param {string} key The key of the value to set.
|
|
316
|
+
* @param {*} value The value to set.
|
|
317
|
+
* @returns {Object} Returns the hash instance.
|
|
318
|
+
*/
|
|
319
|
+
function hashSet(key, value) {
|
|
320
|
+
var data = this.__data__;
|
|
321
|
+
data[key] = nativeCreate && value === undefined ? HASH_UNDEFINED : value;
|
|
322
|
+
return this;
|
|
323
|
+
}
|
|
324
|
+
Hash.prototype.clear = hashClear;
|
|
325
|
+
Hash.prototype["delete"] = hashDelete;
|
|
326
|
+
Hash.prototype.get = hashGet;
|
|
327
|
+
Hash.prototype.has = hashHas;
|
|
328
|
+
Hash.prototype.set = hashSet;
|
|
329
|
+
/**
|
|
330
|
+
* Creates an list cache object.
|
|
331
|
+
*
|
|
332
|
+
* @private
|
|
333
|
+
* @constructor
|
|
334
|
+
* @param {Array} [entries] The key-value pairs to cache.
|
|
335
|
+
*/
|
|
336
|
+
function ListCache(entries) {
|
|
337
|
+
var index = -1, length = entries ? entries.length : 0;
|
|
338
|
+
this.clear();
|
|
339
|
+
while (++index < length) {
|
|
340
|
+
var entry = entries[index];
|
|
341
|
+
this.set(entry[0], entry[1]);
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
/**
|
|
345
|
+
* Removes all key-value entries from the list cache.
|
|
346
|
+
*
|
|
347
|
+
* @private
|
|
348
|
+
* @name clear
|
|
349
|
+
* @memberOf ListCache
|
|
350
|
+
*/
|
|
351
|
+
function listCacheClear() {
|
|
352
|
+
this.__data__ = [];
|
|
353
|
+
}
|
|
354
|
+
/**
|
|
355
|
+
* Removes `key` and its value from the list cache.
|
|
356
|
+
*
|
|
357
|
+
* @private
|
|
358
|
+
* @name delete
|
|
359
|
+
* @memberOf ListCache
|
|
360
|
+
* @param {string} key The key of the value to remove.
|
|
361
|
+
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
362
|
+
*/
|
|
363
|
+
function listCacheDelete(key) {
|
|
364
|
+
var data = this.__data__, index = assocIndexOf(data, key);
|
|
365
|
+
if (index < 0) {
|
|
366
|
+
return false;
|
|
367
|
+
}
|
|
368
|
+
var lastIndex = data.length - 1;
|
|
369
|
+
if (index == lastIndex) {
|
|
370
|
+
data.pop();
|
|
371
|
+
} else {
|
|
372
|
+
splice.call(data, index, 1);
|
|
373
|
+
}
|
|
374
|
+
return true;
|
|
375
|
+
}
|
|
376
|
+
/**
|
|
377
|
+
* Gets the list cache value for `key`.
|
|
378
|
+
*
|
|
379
|
+
* @private
|
|
380
|
+
* @name get
|
|
381
|
+
* @memberOf ListCache
|
|
382
|
+
* @param {string} key The key of the value to get.
|
|
383
|
+
* @returns {*} Returns the entry value.
|
|
384
|
+
*/
|
|
385
|
+
function listCacheGet(key) {
|
|
386
|
+
var data = this.__data__, index = assocIndexOf(data, key);
|
|
387
|
+
return index < 0 ? undefined : data[index][1];
|
|
388
|
+
}
|
|
389
|
+
/**
|
|
390
|
+
* Checks if a list cache value for `key` exists.
|
|
391
|
+
*
|
|
392
|
+
* @private
|
|
393
|
+
* @name has
|
|
394
|
+
* @memberOf ListCache
|
|
395
|
+
* @param {string} key The key of the entry to check.
|
|
396
|
+
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
397
|
+
*/
|
|
398
|
+
function listCacheHas(key) {
|
|
399
|
+
return assocIndexOf(this.__data__, key) > -1;
|
|
400
|
+
}
|
|
401
|
+
/**
|
|
402
|
+
* Sets the list cache `key` to `value`.
|
|
403
|
+
*
|
|
404
|
+
* @private
|
|
405
|
+
* @name set
|
|
406
|
+
* @memberOf ListCache
|
|
407
|
+
* @param {string} key The key of the value to set.
|
|
408
|
+
* @param {*} value The value to set.
|
|
409
|
+
* @returns {Object} Returns the list cache instance.
|
|
410
|
+
*/
|
|
411
|
+
function listCacheSet(key, value) {
|
|
412
|
+
var data = this.__data__, index = assocIndexOf(data, key);
|
|
413
|
+
if (index < 0) {
|
|
414
|
+
data.push([key, value]);
|
|
415
|
+
} else {
|
|
416
|
+
data[index][1] = value;
|
|
417
|
+
}
|
|
418
|
+
return this;
|
|
419
|
+
}
|
|
420
|
+
ListCache.prototype.clear = listCacheClear;
|
|
421
|
+
ListCache.prototype["delete"] = listCacheDelete;
|
|
422
|
+
ListCache.prototype.get = listCacheGet;
|
|
423
|
+
ListCache.prototype.has = listCacheHas;
|
|
424
|
+
ListCache.prototype.set = listCacheSet;
|
|
425
|
+
/**
|
|
426
|
+
* Creates a map cache object to store key-value pairs.
|
|
427
|
+
*
|
|
428
|
+
* @private
|
|
429
|
+
* @constructor
|
|
430
|
+
* @param {Array} [entries] The key-value pairs to cache.
|
|
431
|
+
*/
|
|
432
|
+
function MapCache(entries) {
|
|
433
|
+
var index = -1, length = entries ? entries.length : 0;
|
|
434
|
+
this.clear();
|
|
435
|
+
while (++index < length) {
|
|
436
|
+
var entry = entries[index];
|
|
437
|
+
this.set(entry[0], entry[1]);
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
/**
|
|
441
|
+
* Removes all key-value entries from the map.
|
|
442
|
+
*
|
|
443
|
+
* @private
|
|
444
|
+
* @name clear
|
|
445
|
+
* @memberOf MapCache
|
|
446
|
+
*/
|
|
447
|
+
function mapCacheClear() {
|
|
448
|
+
this.__data__ = {
|
|
449
|
+
"hash": new Hash(),
|
|
450
|
+
"map": new (Map || ListCache)(),
|
|
451
|
+
"string": new Hash()
|
|
452
|
+
};
|
|
453
|
+
}
|
|
454
|
+
/**
|
|
455
|
+
* Removes `key` and its value from the map.
|
|
456
|
+
*
|
|
457
|
+
* @private
|
|
458
|
+
* @name delete
|
|
459
|
+
* @memberOf MapCache
|
|
460
|
+
* @param {string} key The key of the value to remove.
|
|
461
|
+
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
462
|
+
*/
|
|
463
|
+
function mapCacheDelete(key) {
|
|
464
|
+
return getMapData(this, key)["delete"](key);
|
|
465
|
+
}
|
|
466
|
+
/**
|
|
467
|
+
* Gets the map value for `key`.
|
|
468
|
+
*
|
|
469
|
+
* @private
|
|
470
|
+
* @name get
|
|
471
|
+
* @memberOf MapCache
|
|
472
|
+
* @param {string} key The key of the value to get.
|
|
473
|
+
* @returns {*} Returns the entry value.
|
|
474
|
+
*/
|
|
475
|
+
function mapCacheGet(key) {
|
|
476
|
+
return getMapData(this, key).get(key);
|
|
477
|
+
}
|
|
478
|
+
/**
|
|
479
|
+
* Checks if a map value for `key` exists.
|
|
480
|
+
*
|
|
481
|
+
* @private
|
|
482
|
+
* @name has
|
|
483
|
+
* @memberOf MapCache
|
|
484
|
+
* @param {string} key The key of the entry to check.
|
|
485
|
+
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
486
|
+
*/
|
|
487
|
+
function mapCacheHas(key) {
|
|
488
|
+
return getMapData(this, key).has(key);
|
|
489
|
+
}
|
|
490
|
+
/**
|
|
491
|
+
* Sets the map `key` to `value`.
|
|
492
|
+
*
|
|
493
|
+
* @private
|
|
494
|
+
* @name set
|
|
495
|
+
* @memberOf MapCache
|
|
496
|
+
* @param {string} key The key of the value to set.
|
|
497
|
+
* @param {*} value The value to set.
|
|
498
|
+
* @returns {Object} Returns the map cache instance.
|
|
499
|
+
*/
|
|
500
|
+
function mapCacheSet(key, value) {
|
|
501
|
+
getMapData(this, key).set(key, value);
|
|
502
|
+
return this;
|
|
503
|
+
}
|
|
504
|
+
MapCache.prototype.clear = mapCacheClear;
|
|
505
|
+
MapCache.prototype["delete"] = mapCacheDelete;
|
|
506
|
+
MapCache.prototype.get = mapCacheGet;
|
|
507
|
+
MapCache.prototype.has = mapCacheHas;
|
|
508
|
+
MapCache.prototype.set = mapCacheSet;
|
|
509
|
+
/**
|
|
510
|
+
* Creates a stack cache object to store key-value pairs.
|
|
511
|
+
*
|
|
512
|
+
* @private
|
|
513
|
+
* @constructor
|
|
514
|
+
* @param {Array} [entries] The key-value pairs to cache.
|
|
515
|
+
*/
|
|
516
|
+
function Stack(entries) {
|
|
517
|
+
this.__data__ = new ListCache(entries);
|
|
518
|
+
}
|
|
519
|
+
/**
|
|
520
|
+
* Removes all key-value entries from the stack.
|
|
521
|
+
*
|
|
522
|
+
* @private
|
|
523
|
+
* @name clear
|
|
524
|
+
* @memberOf Stack
|
|
525
|
+
*/
|
|
526
|
+
function stackClear() {
|
|
527
|
+
this.__data__ = new ListCache();
|
|
528
|
+
}
|
|
529
|
+
/**
|
|
530
|
+
* Removes `key` and its value from the stack.
|
|
531
|
+
*
|
|
532
|
+
* @private
|
|
533
|
+
* @name delete
|
|
534
|
+
* @memberOf Stack
|
|
535
|
+
* @param {string} key The key of the value to remove.
|
|
536
|
+
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
537
|
+
*/
|
|
538
|
+
function stackDelete(key) {
|
|
539
|
+
return this.__data__["delete"](key);
|
|
540
|
+
}
|
|
541
|
+
/**
|
|
542
|
+
* Gets the stack value for `key`.
|
|
543
|
+
*
|
|
544
|
+
* @private
|
|
545
|
+
* @name get
|
|
546
|
+
* @memberOf Stack
|
|
547
|
+
* @param {string} key The key of the value to get.
|
|
548
|
+
* @returns {*} Returns the entry value.
|
|
549
|
+
*/
|
|
550
|
+
function stackGet(key) {
|
|
551
|
+
return this.__data__.get(key);
|
|
552
|
+
}
|
|
553
|
+
/**
|
|
554
|
+
* Checks if a stack value for `key` exists.
|
|
555
|
+
*
|
|
556
|
+
* @private
|
|
557
|
+
* @name has
|
|
558
|
+
* @memberOf Stack
|
|
559
|
+
* @param {string} key The key of the entry to check.
|
|
560
|
+
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
561
|
+
*/
|
|
562
|
+
function stackHas(key) {
|
|
563
|
+
return this.__data__.has(key);
|
|
564
|
+
}
|
|
565
|
+
/**
|
|
566
|
+
* Sets the stack `key` to `value`.
|
|
567
|
+
*
|
|
568
|
+
* @private
|
|
569
|
+
* @name set
|
|
570
|
+
* @memberOf Stack
|
|
571
|
+
* @param {string} key The key of the value to set.
|
|
572
|
+
* @param {*} value The value to set.
|
|
573
|
+
* @returns {Object} Returns the stack cache instance.
|
|
574
|
+
*/
|
|
575
|
+
function stackSet(key, value) {
|
|
576
|
+
var cache = this.__data__;
|
|
577
|
+
if (cache instanceof ListCache) {
|
|
578
|
+
var pairs = cache.__data__;
|
|
579
|
+
if (!Map || pairs.length < LARGE_ARRAY_SIZE - 1) {
|
|
580
|
+
pairs.push([key, value]);
|
|
581
|
+
return this;
|
|
582
|
+
}
|
|
583
|
+
cache = this.__data__ = new MapCache(pairs);
|
|
584
|
+
}
|
|
585
|
+
cache.set(key, value);
|
|
586
|
+
return this;
|
|
587
|
+
}
|
|
588
|
+
Stack.prototype.clear = stackClear;
|
|
589
|
+
Stack.prototype["delete"] = stackDelete;
|
|
590
|
+
Stack.prototype.get = stackGet;
|
|
591
|
+
Stack.prototype.has = stackHas;
|
|
592
|
+
Stack.prototype.set = stackSet;
|
|
593
|
+
/**
|
|
594
|
+
* Creates an array of the enumerable property names of the array-like `value`.
|
|
595
|
+
*
|
|
596
|
+
* @private
|
|
597
|
+
* @param {*} value The value to query.
|
|
598
|
+
* @param {boolean} inherited Specify returning inherited property names.
|
|
599
|
+
* @returns {Array} Returns the array of property names.
|
|
600
|
+
*/
|
|
601
|
+
function arrayLikeKeys(value, inherited) {
|
|
602
|
+
var result = isArray(value) || isArguments(value) ? baseTimes(value.length, String) : [];
|
|
603
|
+
var length = result.length, skipIndexes = !!length;
|
|
604
|
+
for (var key in value) {
|
|
605
|
+
if ((inherited || hasOwnProperty.call(value, key)) && !(skipIndexes && (key == "length" || isIndex(key, length)))) {
|
|
606
|
+
result.push(key);
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
return result;
|
|
610
|
+
}
|
|
611
|
+
/**
|
|
612
|
+
* Assigns `value` to `key` of `object` if the existing value is not equivalent
|
|
613
|
+
* using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
614
|
+
* for equality comparisons.
|
|
615
|
+
*
|
|
616
|
+
* @private
|
|
617
|
+
* @param {Object} object The object to modify.
|
|
618
|
+
* @param {string} key The key of the property to assign.
|
|
619
|
+
* @param {*} value The value to assign.
|
|
620
|
+
*/
|
|
621
|
+
function assignValue(object, key, value) {
|
|
622
|
+
var objValue = object[key];
|
|
623
|
+
if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) || value === undefined && !(key in object)) {
|
|
624
|
+
object[key] = value;
|
|
625
|
+
}
|
|
626
|
+
}
|
|
627
|
+
/**
|
|
628
|
+
* Gets the index at which the `key` is found in `array` of key-value pairs.
|
|
629
|
+
*
|
|
630
|
+
* @private
|
|
631
|
+
* @param {Array} array The array to inspect.
|
|
632
|
+
* @param {*} key The key to search for.
|
|
633
|
+
* @returns {number} Returns the index of the matched value, else `-1`.
|
|
634
|
+
*/
|
|
635
|
+
function assocIndexOf(array, key) {
|
|
636
|
+
var length = array.length;
|
|
637
|
+
while (length--) {
|
|
638
|
+
if (eq(array[length][0], key)) {
|
|
639
|
+
return length;
|
|
640
|
+
}
|
|
641
|
+
}
|
|
642
|
+
return -1;
|
|
643
|
+
}
|
|
644
|
+
/**
|
|
645
|
+
* The base implementation of `_.assign` without support for multiple sources
|
|
646
|
+
* or `customizer` functions.
|
|
647
|
+
*
|
|
648
|
+
* @private
|
|
649
|
+
* @param {Object} object The destination object.
|
|
650
|
+
* @param {Object} source The source object.
|
|
651
|
+
* @returns {Object} Returns `object`.
|
|
652
|
+
*/
|
|
653
|
+
function baseAssign(object, source) {
|
|
654
|
+
return object && copyObject(source, keys(source), object);
|
|
655
|
+
}
|
|
656
|
+
/**
|
|
657
|
+
* The base implementation of `_.clone` and `_.cloneDeep` which tracks
|
|
658
|
+
* traversed objects.
|
|
659
|
+
*
|
|
660
|
+
* @private
|
|
661
|
+
* @param {*} value The value to clone.
|
|
662
|
+
* @param {boolean} [isDeep] Specify a deep clone.
|
|
663
|
+
* @param {boolean} [isFull] Specify a clone including symbols.
|
|
664
|
+
* @param {Function} [customizer] The function to customize cloning.
|
|
665
|
+
* @param {string} [key] The key of `value`.
|
|
666
|
+
* @param {Object} [object] The parent object of `value`.
|
|
667
|
+
* @param {Object} [stack] Tracks traversed objects and their clone counterparts.
|
|
668
|
+
* @returns {*} Returns the cloned value.
|
|
669
|
+
*/
|
|
670
|
+
function baseClone(value, isDeep, isFull, customizer, key, object, stack) {
|
|
671
|
+
var result;
|
|
672
|
+
if (customizer) {
|
|
673
|
+
result = object ? customizer(value, key, object, stack) : customizer(value);
|
|
674
|
+
}
|
|
675
|
+
if (result !== undefined) {
|
|
676
|
+
return result;
|
|
677
|
+
}
|
|
678
|
+
if (!isObject(value)) {
|
|
679
|
+
return value;
|
|
680
|
+
}
|
|
681
|
+
var isArr = isArray(value);
|
|
682
|
+
if (isArr) {
|
|
683
|
+
result = initCloneArray(value);
|
|
684
|
+
if (!isDeep) {
|
|
685
|
+
return copyArray(value, result);
|
|
686
|
+
}
|
|
687
|
+
} else {
|
|
688
|
+
var tag = getTag(value), isFunc = tag == funcTag || tag == genTag;
|
|
689
|
+
if (isBuffer(value)) {
|
|
690
|
+
return cloneBuffer(value, isDeep);
|
|
691
|
+
}
|
|
692
|
+
if (tag == objectTag || tag == argsTag || isFunc && !object) {
|
|
693
|
+
if (isHostObject(value)) {
|
|
694
|
+
return object ? value : {};
|
|
695
|
+
}
|
|
696
|
+
result = initCloneObject(isFunc ? {} : value);
|
|
697
|
+
if (!isDeep) {
|
|
698
|
+
return copySymbols(value, baseAssign(result, value));
|
|
699
|
+
}
|
|
700
|
+
} else {
|
|
701
|
+
if (!cloneableTags[tag]) {
|
|
702
|
+
return object ? value : {};
|
|
703
|
+
}
|
|
704
|
+
result = initCloneByTag(value, tag, baseClone, isDeep);
|
|
705
|
+
}
|
|
706
|
+
}
|
|
707
|
+
stack || (stack = new Stack());
|
|
708
|
+
var stacked = stack.get(value);
|
|
709
|
+
if (stacked) {
|
|
710
|
+
return stacked;
|
|
711
|
+
}
|
|
712
|
+
stack.set(value, result);
|
|
713
|
+
if (!isArr) {
|
|
714
|
+
var props = isFull ? getAllKeys(value) : keys(value);
|
|
715
|
+
}
|
|
716
|
+
arrayEach(props || value, function(subValue, key$1) {
|
|
717
|
+
if (props) {
|
|
718
|
+
key$1 = subValue;
|
|
719
|
+
subValue = value[key$1];
|
|
720
|
+
}
|
|
721
|
+
assignValue(result, key$1, baseClone(subValue, isDeep, isFull, customizer, key$1, value, stack));
|
|
722
|
+
});
|
|
723
|
+
return result;
|
|
724
|
+
}
|
|
725
|
+
/**
|
|
726
|
+
* The base implementation of `_.create` without support for assigning
|
|
727
|
+
* properties to the created object.
|
|
728
|
+
*
|
|
729
|
+
* @private
|
|
730
|
+
* @param {Object} prototype The object to inherit from.
|
|
731
|
+
* @returns {Object} Returns the new object.
|
|
732
|
+
*/
|
|
733
|
+
function baseCreate(proto) {
|
|
734
|
+
return isObject(proto) ? objectCreate(proto) : {};
|
|
735
|
+
}
|
|
736
|
+
/**
|
|
737
|
+
* The base implementation of `getAllKeys` and `getAllKeysIn` which uses
|
|
738
|
+
* `keysFunc` and `symbolsFunc` to get the enumerable property names and
|
|
739
|
+
* symbols of `object`.
|
|
740
|
+
*
|
|
741
|
+
* @private
|
|
742
|
+
* @param {Object} object The object to query.
|
|
743
|
+
* @param {Function} keysFunc The function to get the keys of `object`.
|
|
744
|
+
* @param {Function} symbolsFunc The function to get the symbols of `object`.
|
|
745
|
+
* @returns {Array} Returns the array of property names and symbols.
|
|
746
|
+
*/
|
|
747
|
+
function baseGetAllKeys(object, keysFunc, symbolsFunc) {
|
|
748
|
+
var result = keysFunc(object);
|
|
749
|
+
return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
|
|
750
|
+
}
|
|
751
|
+
/**
|
|
752
|
+
* The base implementation of `getTag`.
|
|
753
|
+
*
|
|
754
|
+
* @private
|
|
755
|
+
* @param {*} value The value to query.
|
|
756
|
+
* @returns {string} Returns the `toStringTag`.
|
|
757
|
+
*/
|
|
758
|
+
function baseGetTag(value) {
|
|
759
|
+
return objectToString.call(value);
|
|
760
|
+
}
|
|
761
|
+
/**
|
|
762
|
+
* The base implementation of `_.isNative` without bad shim checks.
|
|
763
|
+
*
|
|
764
|
+
* @private
|
|
765
|
+
* @param {*} value The value to check.
|
|
766
|
+
* @returns {boolean} Returns `true` if `value` is a native function,
|
|
767
|
+
* else `false`.
|
|
768
|
+
*/
|
|
769
|
+
function baseIsNative(value) {
|
|
770
|
+
if (!isObject(value) || isMasked(value)) {
|
|
771
|
+
return false;
|
|
772
|
+
}
|
|
773
|
+
var pattern = isFunction(value) || isHostObject(value) ? reIsNative : reIsHostCtor;
|
|
774
|
+
return pattern.test(toSource(value));
|
|
775
|
+
}
|
|
776
|
+
/**
|
|
777
|
+
* The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
|
|
778
|
+
*
|
|
779
|
+
* @private
|
|
780
|
+
* @param {Object} object The object to query.
|
|
781
|
+
* @returns {Array} Returns the array of property names.
|
|
782
|
+
*/
|
|
783
|
+
function baseKeys(object) {
|
|
784
|
+
if (!isPrototype(object)) {
|
|
785
|
+
return nativeKeys(object);
|
|
786
|
+
}
|
|
787
|
+
var result = [];
|
|
788
|
+
for (var key in Object(object)) {
|
|
789
|
+
if (hasOwnProperty.call(object, key) && key != "constructor") {
|
|
790
|
+
result.push(key);
|
|
791
|
+
}
|
|
792
|
+
}
|
|
793
|
+
return result;
|
|
794
|
+
}
|
|
795
|
+
/**
|
|
796
|
+
* Creates a clone of `buffer`.
|
|
797
|
+
*
|
|
798
|
+
* @private
|
|
799
|
+
* @param {Buffer} buffer The buffer to clone.
|
|
800
|
+
* @param {boolean} [isDeep] Specify a deep clone.
|
|
801
|
+
* @returns {Buffer} Returns the cloned buffer.
|
|
802
|
+
*/
|
|
803
|
+
function cloneBuffer(buffer, isDeep) {
|
|
804
|
+
if (isDeep) {
|
|
805
|
+
return buffer.slice();
|
|
806
|
+
}
|
|
807
|
+
var result = new buffer.constructor(buffer.length);
|
|
808
|
+
buffer.copy(result);
|
|
809
|
+
return result;
|
|
810
|
+
}
|
|
811
|
+
/**
|
|
812
|
+
* Creates a clone of `arrayBuffer`.
|
|
813
|
+
*
|
|
814
|
+
* @private
|
|
815
|
+
* @param {ArrayBuffer} arrayBuffer The array buffer to clone.
|
|
816
|
+
* @returns {ArrayBuffer} Returns the cloned array buffer.
|
|
817
|
+
*/
|
|
818
|
+
function cloneArrayBuffer(arrayBuffer) {
|
|
819
|
+
var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
|
|
820
|
+
new Uint8Array(result).set(new Uint8Array(arrayBuffer));
|
|
821
|
+
return result;
|
|
822
|
+
}
|
|
823
|
+
/**
|
|
824
|
+
* Creates a clone of `dataView`.
|
|
825
|
+
*
|
|
826
|
+
* @private
|
|
827
|
+
* @param {Object} dataView The data view to clone.
|
|
828
|
+
* @param {boolean} [isDeep] Specify a deep clone.
|
|
829
|
+
* @returns {Object} Returns the cloned data view.
|
|
830
|
+
*/
|
|
831
|
+
function cloneDataView(dataView, isDeep) {
|
|
832
|
+
var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;
|
|
833
|
+
return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
|
|
834
|
+
}
|
|
835
|
+
/**
|
|
836
|
+
* Creates a clone of `map`.
|
|
837
|
+
*
|
|
838
|
+
* @private
|
|
839
|
+
* @param {Object} map The map to clone.
|
|
840
|
+
* @param {Function} cloneFunc The function to clone values.
|
|
841
|
+
* @param {boolean} [isDeep] Specify a deep clone.
|
|
842
|
+
* @returns {Object} Returns the cloned map.
|
|
843
|
+
*/
|
|
844
|
+
function cloneMap(map, isDeep, cloneFunc) {
|
|
845
|
+
var array = isDeep ? cloneFunc(mapToArray(map), true) : mapToArray(map);
|
|
846
|
+
return arrayReduce(array, addMapEntry, new map.constructor());
|
|
847
|
+
}
|
|
848
|
+
/**
|
|
849
|
+
* Creates a clone of `regexp`.
|
|
850
|
+
*
|
|
851
|
+
* @private
|
|
852
|
+
* @param {Object} regexp The regexp to clone.
|
|
853
|
+
* @returns {Object} Returns the cloned regexp.
|
|
854
|
+
*/
|
|
855
|
+
function cloneRegExp(regexp) {
|
|
856
|
+
var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
|
|
857
|
+
result.lastIndex = regexp.lastIndex;
|
|
858
|
+
return result;
|
|
859
|
+
}
|
|
860
|
+
/**
|
|
861
|
+
* Creates a clone of `set`.
|
|
862
|
+
*
|
|
863
|
+
* @private
|
|
864
|
+
* @param {Object} set The set to clone.
|
|
865
|
+
* @param {Function} cloneFunc The function to clone values.
|
|
866
|
+
* @param {boolean} [isDeep] Specify a deep clone.
|
|
867
|
+
* @returns {Object} Returns the cloned set.
|
|
868
|
+
*/
|
|
869
|
+
function cloneSet(set, isDeep, cloneFunc) {
|
|
870
|
+
var array = isDeep ? cloneFunc(setToArray(set), true) : setToArray(set);
|
|
871
|
+
return arrayReduce(array, addSetEntry, new set.constructor());
|
|
872
|
+
}
|
|
873
|
+
/**
|
|
874
|
+
* Creates a clone of the `symbol` object.
|
|
875
|
+
*
|
|
876
|
+
* @private
|
|
877
|
+
* @param {Object} symbol The symbol object to clone.
|
|
878
|
+
* @returns {Object} Returns the cloned symbol object.
|
|
879
|
+
*/
|
|
880
|
+
function cloneSymbol(symbol) {
|
|
881
|
+
return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
|
|
882
|
+
}
|
|
883
|
+
/**
|
|
884
|
+
* Creates a clone of `typedArray`.
|
|
885
|
+
*
|
|
886
|
+
* @private
|
|
887
|
+
* @param {Object} typedArray The typed array to clone.
|
|
888
|
+
* @param {boolean} [isDeep] Specify a deep clone.
|
|
889
|
+
* @returns {Object} Returns the cloned typed array.
|
|
890
|
+
*/
|
|
891
|
+
function cloneTypedArray(typedArray, isDeep) {
|
|
892
|
+
var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
|
|
893
|
+
return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
|
|
894
|
+
}
|
|
895
|
+
/**
|
|
896
|
+
* Copies the values of `source` to `array`.
|
|
897
|
+
*
|
|
898
|
+
* @private
|
|
899
|
+
* @param {Array} source The array to copy values from.
|
|
900
|
+
* @param {Array} [array=[]] The array to copy values to.
|
|
901
|
+
* @returns {Array} Returns `array`.
|
|
902
|
+
*/
|
|
903
|
+
function copyArray(source, array) {
|
|
904
|
+
var index = -1, length = source.length;
|
|
905
|
+
array || (array = Array(length));
|
|
906
|
+
while (++index < length) {
|
|
907
|
+
array[index] = source[index];
|
|
908
|
+
}
|
|
909
|
+
return array;
|
|
910
|
+
}
|
|
911
|
+
/**
|
|
912
|
+
* Copies properties of `source` to `object`.
|
|
913
|
+
*
|
|
914
|
+
* @private
|
|
915
|
+
* @param {Object} source The object to copy properties from.
|
|
916
|
+
* @param {Array} props The property identifiers to copy.
|
|
917
|
+
* @param {Object} [object={}] The object to copy properties to.
|
|
918
|
+
* @param {Function} [customizer] The function to customize copied values.
|
|
919
|
+
* @returns {Object} Returns `object`.
|
|
920
|
+
*/
|
|
921
|
+
function copyObject(source, props, object, customizer) {
|
|
922
|
+
object || (object = {});
|
|
923
|
+
var index = -1, length = props.length;
|
|
924
|
+
while (++index < length) {
|
|
925
|
+
var key = props[index];
|
|
926
|
+
var newValue = customizer ? customizer(object[key], source[key], key, object, source) : undefined;
|
|
927
|
+
assignValue(object, key, newValue === undefined ? source[key] : newValue);
|
|
928
|
+
}
|
|
929
|
+
return object;
|
|
930
|
+
}
|
|
931
|
+
/**
|
|
932
|
+
* Copies own symbol properties of `source` to `object`.
|
|
933
|
+
*
|
|
934
|
+
* @private
|
|
935
|
+
* @param {Object} source The object to copy symbols from.
|
|
936
|
+
* @param {Object} [object={}] The object to copy symbols to.
|
|
937
|
+
* @returns {Object} Returns `object`.
|
|
938
|
+
*/
|
|
939
|
+
function copySymbols(source, object) {
|
|
940
|
+
return copyObject(source, getSymbols(source), object);
|
|
941
|
+
}
|
|
942
|
+
/**
|
|
943
|
+
* Creates an array of own enumerable property names and symbols of `object`.
|
|
944
|
+
*
|
|
945
|
+
* @private
|
|
946
|
+
* @param {Object} object The object to query.
|
|
947
|
+
* @returns {Array} Returns the array of property names and symbols.
|
|
948
|
+
*/
|
|
949
|
+
function getAllKeys(object) {
|
|
950
|
+
return baseGetAllKeys(object, keys, getSymbols);
|
|
951
|
+
}
|
|
952
|
+
/**
|
|
953
|
+
* Gets the data for `map`.
|
|
954
|
+
*
|
|
955
|
+
* @private
|
|
956
|
+
* @param {Object} map The map to query.
|
|
957
|
+
* @param {string} key The reference key.
|
|
958
|
+
* @returns {*} Returns the map data.
|
|
959
|
+
*/
|
|
960
|
+
function getMapData(map, key) {
|
|
961
|
+
var data = map.__data__;
|
|
962
|
+
return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
|
|
963
|
+
}
|
|
964
|
+
/**
|
|
965
|
+
* Gets the native function at `key` of `object`.
|
|
966
|
+
*
|
|
967
|
+
* @private
|
|
968
|
+
* @param {Object} object The object to query.
|
|
969
|
+
* @param {string} key The key of the method to get.
|
|
970
|
+
* @returns {*} Returns the function if it's native, else `undefined`.
|
|
971
|
+
*/
|
|
972
|
+
function getNative(object, key) {
|
|
973
|
+
var value = getValue(object, key);
|
|
974
|
+
return baseIsNative(value) ? value : undefined;
|
|
975
|
+
}
|
|
976
|
+
/**
|
|
977
|
+
* Creates an array of the own enumerable symbol properties of `object`.
|
|
978
|
+
*
|
|
979
|
+
* @private
|
|
980
|
+
* @param {Object} object The object to query.
|
|
981
|
+
* @returns {Array} Returns the array of symbols.
|
|
982
|
+
*/
|
|
983
|
+
var getSymbols = nativeGetSymbols ? overArg(nativeGetSymbols, Object) : stubArray;
|
|
984
|
+
/**
|
|
985
|
+
* Gets the `toStringTag` of `value`.
|
|
986
|
+
*
|
|
987
|
+
* @private
|
|
988
|
+
* @param {*} value The value to query.
|
|
989
|
+
* @returns {string} Returns the `toStringTag`.
|
|
990
|
+
*/
|
|
991
|
+
var getTag = baseGetTag;
|
|
992
|
+
if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map && getTag(new Map()) != mapTag || Promise$1 && getTag(Promise$1.resolve()) != promiseTag || Set && getTag(new Set()) != setTag || WeakMap && getTag(new WeakMap()) != weakMapTag) {
|
|
993
|
+
getTag = function(value) {
|
|
994
|
+
var result = objectToString.call(value), Ctor = result == objectTag ? value.constructor : undefined, ctorString = Ctor ? toSource(Ctor) : undefined;
|
|
995
|
+
if (ctorString) {
|
|
996
|
+
switch (ctorString) {
|
|
997
|
+
case dataViewCtorString: return dataViewTag;
|
|
998
|
+
case mapCtorString: return mapTag;
|
|
999
|
+
case promiseCtorString: return promiseTag;
|
|
1000
|
+
case setCtorString: return setTag;
|
|
1001
|
+
case weakMapCtorString: return weakMapTag;
|
|
1002
|
+
}
|
|
1003
|
+
}
|
|
1004
|
+
return result;
|
|
1005
|
+
};
|
|
1006
|
+
}
|
|
1007
|
+
/**
|
|
1008
|
+
* Initializes an array clone.
|
|
1009
|
+
*
|
|
1010
|
+
* @private
|
|
1011
|
+
* @param {Array} array The array to clone.
|
|
1012
|
+
* @returns {Array} Returns the initialized clone.
|
|
1013
|
+
*/
|
|
1014
|
+
function initCloneArray(array) {
|
|
1015
|
+
var length = array.length, result = array.constructor(length);
|
|
1016
|
+
if (length && typeof array[0] == "string" && hasOwnProperty.call(array, "index")) {
|
|
1017
|
+
result.index = array.index;
|
|
1018
|
+
result.input = array.input;
|
|
1019
|
+
}
|
|
1020
|
+
return result;
|
|
1021
|
+
}
|
|
1022
|
+
/**
|
|
1023
|
+
* Initializes an object clone.
|
|
1024
|
+
*
|
|
1025
|
+
* @private
|
|
1026
|
+
* @param {Object} object The object to clone.
|
|
1027
|
+
* @returns {Object} Returns the initialized clone.
|
|
1028
|
+
*/
|
|
1029
|
+
function initCloneObject(object) {
|
|
1030
|
+
return typeof object.constructor == "function" && !isPrototype(object) ? baseCreate(getPrototype(object)) : {};
|
|
1031
|
+
}
|
|
1032
|
+
/**
|
|
1033
|
+
* Initializes an object clone based on its `toStringTag`.
|
|
1034
|
+
*
|
|
1035
|
+
* **Note:** This function only supports cloning values with tags of
|
|
1036
|
+
* `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
|
|
1037
|
+
*
|
|
1038
|
+
* @private
|
|
1039
|
+
* @param {Object} object The object to clone.
|
|
1040
|
+
* @param {string} tag The `toStringTag` of the object to clone.
|
|
1041
|
+
* @param {Function} cloneFunc The function to clone values.
|
|
1042
|
+
* @param {boolean} [isDeep] Specify a deep clone.
|
|
1043
|
+
* @returns {Object} Returns the initialized clone.
|
|
1044
|
+
*/
|
|
1045
|
+
function initCloneByTag(object, tag, cloneFunc, isDeep) {
|
|
1046
|
+
var Ctor = object.constructor;
|
|
1047
|
+
switch (tag) {
|
|
1048
|
+
case arrayBufferTag: return cloneArrayBuffer(object);
|
|
1049
|
+
case boolTag:
|
|
1050
|
+
case dateTag: return new Ctor(+object);
|
|
1051
|
+
case dataViewTag: return cloneDataView(object, isDeep);
|
|
1052
|
+
case float32Tag:
|
|
1053
|
+
case float64Tag:
|
|
1054
|
+
case int8Tag:
|
|
1055
|
+
case int16Tag:
|
|
1056
|
+
case int32Tag:
|
|
1057
|
+
case uint8Tag:
|
|
1058
|
+
case uint8ClampedTag:
|
|
1059
|
+
case uint16Tag:
|
|
1060
|
+
case uint32Tag: return cloneTypedArray(object, isDeep);
|
|
1061
|
+
case mapTag: return cloneMap(object, isDeep, cloneFunc);
|
|
1062
|
+
case numberTag:
|
|
1063
|
+
case stringTag: return new Ctor(object);
|
|
1064
|
+
case regexpTag: return cloneRegExp(object);
|
|
1065
|
+
case setTag: return cloneSet(object, isDeep, cloneFunc);
|
|
1066
|
+
case symbolTag: return cloneSymbol(object);
|
|
1067
|
+
}
|
|
1068
|
+
}
|
|
1069
|
+
/**
|
|
1070
|
+
* Checks if `value` is a valid array-like index.
|
|
1071
|
+
*
|
|
1072
|
+
* @private
|
|
1073
|
+
* @param {*} value The value to check.
|
|
1074
|
+
* @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
|
|
1075
|
+
* @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
|
|
1076
|
+
*/
|
|
1077
|
+
function isIndex(value, length) {
|
|
1078
|
+
length = length == null ? MAX_SAFE_INTEGER : length;
|
|
1079
|
+
return !!length && (typeof value == "number" || reIsUint.test(value)) && value > -1 && value % 1 == 0 && value < length;
|
|
1080
|
+
}
|
|
1081
|
+
/**
|
|
1082
|
+
* Checks if `value` is suitable for use as unique object key.
|
|
1083
|
+
*
|
|
1084
|
+
* @private
|
|
1085
|
+
* @param {*} value The value to check.
|
|
1086
|
+
* @returns {boolean} Returns `true` if `value` is suitable, else `false`.
|
|
1087
|
+
*/
|
|
1088
|
+
function isKeyable(value) {
|
|
1089
|
+
var type = typeof value;
|
|
1090
|
+
return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
|
|
1091
|
+
}
|
|
1092
|
+
/**
|
|
1093
|
+
* Checks if `func` has its source masked.
|
|
1094
|
+
*
|
|
1095
|
+
* @private
|
|
1096
|
+
* @param {Function} func The function to check.
|
|
1097
|
+
* @returns {boolean} Returns `true` if `func` is masked, else `false`.
|
|
1098
|
+
*/
|
|
1099
|
+
function isMasked(func) {
|
|
1100
|
+
return !!maskSrcKey && maskSrcKey in func;
|
|
1101
|
+
}
|
|
1102
|
+
/**
|
|
1103
|
+
* Checks if `value` is likely a prototype object.
|
|
1104
|
+
*
|
|
1105
|
+
* @private
|
|
1106
|
+
* @param {*} value The value to check.
|
|
1107
|
+
* @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
|
|
1108
|
+
*/
|
|
1109
|
+
function isPrototype(value) {
|
|
1110
|
+
var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto;
|
|
1111
|
+
return value === proto;
|
|
1112
|
+
}
|
|
1113
|
+
/**
|
|
1114
|
+
* Converts `func` to its source code.
|
|
1115
|
+
*
|
|
1116
|
+
* @private
|
|
1117
|
+
* @param {Function} func The function to process.
|
|
1118
|
+
* @returns {string} Returns the source code.
|
|
1119
|
+
*/
|
|
1120
|
+
function toSource(func) {
|
|
1121
|
+
if (func != null) {
|
|
1122
|
+
try {
|
|
1123
|
+
return funcToString.call(func);
|
|
1124
|
+
} catch (e) {}
|
|
1125
|
+
try {
|
|
1126
|
+
return func + "";
|
|
1127
|
+
} catch (e) {}
|
|
1128
|
+
}
|
|
1129
|
+
return "";
|
|
1130
|
+
}
|
|
1131
|
+
/**
|
|
1132
|
+
* This method is like `_.clone` except that it recursively clones `value`.
|
|
1133
|
+
*
|
|
1134
|
+
* @static
|
|
1135
|
+
* @memberOf _
|
|
1136
|
+
* @since 1.0.0
|
|
1137
|
+
* @category Lang
|
|
1138
|
+
* @param {*} value The value to recursively clone.
|
|
1139
|
+
* @returns {*} Returns the deep cloned value.
|
|
1140
|
+
* @see _.clone
|
|
1141
|
+
* @example
|
|
1142
|
+
*
|
|
1143
|
+
* var objects = [{ 'a': 1 }, { 'b': 2 }];
|
|
1144
|
+
*
|
|
1145
|
+
* var deep = _.cloneDeep(objects);
|
|
1146
|
+
* console.log(deep[0] === objects[0]);
|
|
1147
|
+
* // => false
|
|
1148
|
+
*/
|
|
1149
|
+
function cloneDeep(value) {
|
|
1150
|
+
return baseClone(value, true, true);
|
|
1151
|
+
}
|
|
1152
|
+
/**
|
|
1153
|
+
* Performs a
|
|
1154
|
+
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
1155
|
+
* comparison between two values to determine if they are equivalent.
|
|
1156
|
+
*
|
|
1157
|
+
* @static
|
|
1158
|
+
* @memberOf _
|
|
1159
|
+
* @since 4.0.0
|
|
1160
|
+
* @category Lang
|
|
1161
|
+
* @param {*} value The value to compare.
|
|
1162
|
+
* @param {*} other The other value to compare.
|
|
1163
|
+
* @returns {boolean} Returns `true` if the values are equivalent, else `false`.
|
|
1164
|
+
* @example
|
|
1165
|
+
*
|
|
1166
|
+
* var object = { 'a': 1 };
|
|
1167
|
+
* var other = { 'a': 1 };
|
|
1168
|
+
*
|
|
1169
|
+
* _.eq(object, object);
|
|
1170
|
+
* // => true
|
|
1171
|
+
*
|
|
1172
|
+
* _.eq(object, other);
|
|
1173
|
+
* // => false
|
|
1174
|
+
*
|
|
1175
|
+
* _.eq('a', 'a');
|
|
1176
|
+
* // => true
|
|
1177
|
+
*
|
|
1178
|
+
* _.eq('a', Object('a'));
|
|
1179
|
+
* // => false
|
|
1180
|
+
*
|
|
1181
|
+
* _.eq(NaN, NaN);
|
|
1182
|
+
* // => true
|
|
1183
|
+
*/
|
|
1184
|
+
function eq(value, other) {
|
|
1185
|
+
return value === other || value !== value && other !== other;
|
|
1186
|
+
}
|
|
1187
|
+
/**
|
|
1188
|
+
* Checks if `value` is likely an `arguments` object.
|
|
1189
|
+
*
|
|
1190
|
+
* @static
|
|
1191
|
+
* @memberOf _
|
|
1192
|
+
* @since 0.1.0
|
|
1193
|
+
* @category Lang
|
|
1194
|
+
* @param {*} value The value to check.
|
|
1195
|
+
* @returns {boolean} Returns `true` if `value` is an `arguments` object,
|
|
1196
|
+
* else `false`.
|
|
1197
|
+
* @example
|
|
1198
|
+
*
|
|
1199
|
+
* _.isArguments(function() { return arguments; }());
|
|
1200
|
+
* // => true
|
|
1201
|
+
*
|
|
1202
|
+
* _.isArguments([1, 2, 3]);
|
|
1203
|
+
* // => false
|
|
1204
|
+
*/
|
|
1205
|
+
function isArguments(value) {
|
|
1206
|
+
return isArrayLikeObject(value) && hasOwnProperty.call(value, "callee") && (!propertyIsEnumerable.call(value, "callee") || objectToString.call(value) == argsTag);
|
|
1207
|
+
}
|
|
1208
|
+
/**
|
|
1209
|
+
* Checks if `value` is classified as an `Array` object.
|
|
1210
|
+
*
|
|
1211
|
+
* @static
|
|
1212
|
+
* @memberOf _
|
|
1213
|
+
* @since 0.1.0
|
|
1214
|
+
* @category Lang
|
|
1215
|
+
* @param {*} value The value to check.
|
|
1216
|
+
* @returns {boolean} Returns `true` if `value` is an array, else `false`.
|
|
1217
|
+
* @example
|
|
1218
|
+
*
|
|
1219
|
+
* _.isArray([1, 2, 3]);
|
|
1220
|
+
* // => true
|
|
1221
|
+
*
|
|
1222
|
+
* _.isArray(document.body.children);
|
|
1223
|
+
* // => false
|
|
1224
|
+
*
|
|
1225
|
+
* _.isArray('abc');
|
|
1226
|
+
* // => false
|
|
1227
|
+
*
|
|
1228
|
+
* _.isArray(_.noop);
|
|
1229
|
+
* // => false
|
|
1230
|
+
*/
|
|
1231
|
+
var isArray = Array.isArray;
|
|
1232
|
+
/**
|
|
1233
|
+
* Checks if `value` is array-like. A value is considered array-like if it's
|
|
1234
|
+
* not a function and has a `value.length` that's an integer greater than or
|
|
1235
|
+
* equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
|
|
1236
|
+
*
|
|
1237
|
+
* @static
|
|
1238
|
+
* @memberOf _
|
|
1239
|
+
* @since 4.0.0
|
|
1240
|
+
* @category Lang
|
|
1241
|
+
* @param {*} value The value to check.
|
|
1242
|
+
* @returns {boolean} Returns `true` if `value` is array-like, else `false`.
|
|
1243
|
+
* @example
|
|
1244
|
+
*
|
|
1245
|
+
* _.isArrayLike([1, 2, 3]);
|
|
1246
|
+
* // => true
|
|
1247
|
+
*
|
|
1248
|
+
* _.isArrayLike(document.body.children);
|
|
1249
|
+
* // => true
|
|
1250
|
+
*
|
|
1251
|
+
* _.isArrayLike('abc');
|
|
1252
|
+
* // => true
|
|
1253
|
+
*
|
|
1254
|
+
* _.isArrayLike(_.noop);
|
|
1255
|
+
* // => false
|
|
1256
|
+
*/
|
|
1257
|
+
function isArrayLike(value) {
|
|
1258
|
+
return value != null && isLength(value.length) && !isFunction(value);
|
|
1259
|
+
}
|
|
1260
|
+
/**
|
|
1261
|
+
* This method is like `_.isArrayLike` except that it also checks if `value`
|
|
1262
|
+
* is an object.
|
|
1263
|
+
*
|
|
1264
|
+
* @static
|
|
1265
|
+
* @memberOf _
|
|
1266
|
+
* @since 4.0.0
|
|
1267
|
+
* @category Lang
|
|
1268
|
+
* @param {*} value The value to check.
|
|
1269
|
+
* @returns {boolean} Returns `true` if `value` is an array-like object,
|
|
1270
|
+
* else `false`.
|
|
1271
|
+
* @example
|
|
1272
|
+
*
|
|
1273
|
+
* _.isArrayLikeObject([1, 2, 3]);
|
|
1274
|
+
* // => true
|
|
1275
|
+
*
|
|
1276
|
+
* _.isArrayLikeObject(document.body.children);
|
|
1277
|
+
* // => true
|
|
1278
|
+
*
|
|
1279
|
+
* _.isArrayLikeObject('abc');
|
|
1280
|
+
* // => false
|
|
1281
|
+
*
|
|
1282
|
+
* _.isArrayLikeObject(_.noop);
|
|
1283
|
+
* // => false
|
|
1284
|
+
*/
|
|
1285
|
+
function isArrayLikeObject(value) {
|
|
1286
|
+
return isObjectLike(value) && isArrayLike(value);
|
|
1287
|
+
}
|
|
1288
|
+
/**
|
|
1289
|
+
* Checks if `value` is a buffer.
|
|
1290
|
+
*
|
|
1291
|
+
* @static
|
|
1292
|
+
* @memberOf _
|
|
1293
|
+
* @since 4.3.0
|
|
1294
|
+
* @category Lang
|
|
1295
|
+
* @param {*} value The value to check.
|
|
1296
|
+
* @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
|
|
1297
|
+
* @example
|
|
1298
|
+
*
|
|
1299
|
+
* _.isBuffer(new Buffer(2));
|
|
1300
|
+
* // => true
|
|
1301
|
+
*
|
|
1302
|
+
* _.isBuffer(new Uint8Array(2));
|
|
1303
|
+
* // => false
|
|
1304
|
+
*/
|
|
1305
|
+
var isBuffer = nativeIsBuffer || stubFalse;
|
|
1306
|
+
/**
|
|
1307
|
+
* Checks if `value` is classified as a `Function` object.
|
|
1308
|
+
*
|
|
1309
|
+
* @static
|
|
1310
|
+
* @memberOf _
|
|
1311
|
+
* @since 0.1.0
|
|
1312
|
+
* @category Lang
|
|
1313
|
+
* @param {*} value The value to check.
|
|
1314
|
+
* @returns {boolean} Returns `true` if `value` is a function, else `false`.
|
|
1315
|
+
* @example
|
|
1316
|
+
*
|
|
1317
|
+
* _.isFunction(_);
|
|
1318
|
+
* // => true
|
|
1319
|
+
*
|
|
1320
|
+
* _.isFunction(/abc/);
|
|
1321
|
+
* // => false
|
|
1322
|
+
*/
|
|
1323
|
+
function isFunction(value) {
|
|
1324
|
+
var tag = isObject(value) ? objectToString.call(value) : "";
|
|
1325
|
+
return tag == funcTag || tag == genTag;
|
|
1326
|
+
}
|
|
1327
|
+
/**
|
|
1328
|
+
* Checks if `value` is a valid array-like length.
|
|
1329
|
+
*
|
|
1330
|
+
* **Note:** This method is loosely based on
|
|
1331
|
+
* [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
|
|
1332
|
+
*
|
|
1333
|
+
* @static
|
|
1334
|
+
* @memberOf _
|
|
1335
|
+
* @since 4.0.0
|
|
1336
|
+
* @category Lang
|
|
1337
|
+
* @param {*} value The value to check.
|
|
1338
|
+
* @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
|
|
1339
|
+
* @example
|
|
1340
|
+
*
|
|
1341
|
+
* _.isLength(3);
|
|
1342
|
+
* // => true
|
|
1343
|
+
*
|
|
1344
|
+
* _.isLength(Number.MIN_VALUE);
|
|
1345
|
+
* // => false
|
|
1346
|
+
*
|
|
1347
|
+
* _.isLength(Infinity);
|
|
1348
|
+
* // => false
|
|
1349
|
+
*
|
|
1350
|
+
* _.isLength('3');
|
|
1351
|
+
* // => false
|
|
1352
|
+
*/
|
|
1353
|
+
function isLength(value) {
|
|
1354
|
+
return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
|
|
1355
|
+
}
|
|
1356
|
+
/**
|
|
1357
|
+
* Checks if `value` is the
|
|
1358
|
+
* [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
|
|
1359
|
+
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
|
1360
|
+
*
|
|
1361
|
+
* @static
|
|
1362
|
+
* @memberOf _
|
|
1363
|
+
* @since 0.1.0
|
|
1364
|
+
* @category Lang
|
|
1365
|
+
* @param {*} value The value to check.
|
|
1366
|
+
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
|
|
1367
|
+
* @example
|
|
1368
|
+
*
|
|
1369
|
+
* _.isObject({});
|
|
1370
|
+
* // => true
|
|
1371
|
+
*
|
|
1372
|
+
* _.isObject([1, 2, 3]);
|
|
1373
|
+
* // => true
|
|
1374
|
+
*
|
|
1375
|
+
* _.isObject(_.noop);
|
|
1376
|
+
* // => true
|
|
1377
|
+
*
|
|
1378
|
+
* _.isObject(null);
|
|
1379
|
+
* // => false
|
|
1380
|
+
*/
|
|
1381
|
+
function isObject(value) {
|
|
1382
|
+
var type = typeof value;
|
|
1383
|
+
return !!value && (type == "object" || type == "function");
|
|
1384
|
+
}
|
|
1385
|
+
/**
|
|
1386
|
+
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
1387
|
+
* and has a `typeof` result of "object".
|
|
1388
|
+
*
|
|
1389
|
+
* @static
|
|
1390
|
+
* @memberOf _
|
|
1391
|
+
* @since 4.0.0
|
|
1392
|
+
* @category Lang
|
|
1393
|
+
* @param {*} value The value to check.
|
|
1394
|
+
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
|
1395
|
+
* @example
|
|
1396
|
+
*
|
|
1397
|
+
* _.isObjectLike({});
|
|
1398
|
+
* // => true
|
|
1399
|
+
*
|
|
1400
|
+
* _.isObjectLike([1, 2, 3]);
|
|
1401
|
+
* // => true
|
|
1402
|
+
*
|
|
1403
|
+
* _.isObjectLike(_.noop);
|
|
1404
|
+
* // => false
|
|
1405
|
+
*
|
|
1406
|
+
* _.isObjectLike(null);
|
|
1407
|
+
* // => false
|
|
1408
|
+
*/
|
|
1409
|
+
function isObjectLike(value) {
|
|
1410
|
+
return !!value && typeof value == "object";
|
|
1411
|
+
}
|
|
1412
|
+
/**
|
|
1413
|
+
* Creates an array of the own enumerable property names of `object`.
|
|
1414
|
+
*
|
|
1415
|
+
* **Note:** Non-object values are coerced to objects. See the
|
|
1416
|
+
* [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
|
|
1417
|
+
* for more details.
|
|
1418
|
+
*
|
|
1419
|
+
* @static
|
|
1420
|
+
* @since 0.1.0
|
|
1421
|
+
* @memberOf _
|
|
1422
|
+
* @category Object
|
|
1423
|
+
* @param {Object} object The object to query.
|
|
1424
|
+
* @returns {Array} Returns the array of property names.
|
|
1425
|
+
* @example
|
|
1426
|
+
*
|
|
1427
|
+
* function Foo() {
|
|
1428
|
+
* this.a = 1;
|
|
1429
|
+
* this.b = 2;
|
|
1430
|
+
* }
|
|
1431
|
+
*
|
|
1432
|
+
* Foo.prototype.c = 3;
|
|
1433
|
+
*
|
|
1434
|
+
* _.keys(new Foo);
|
|
1435
|
+
* // => ['a', 'b'] (iteration order is not guaranteed)
|
|
1436
|
+
*
|
|
1437
|
+
* _.keys('hi');
|
|
1438
|
+
* // => ['0', '1']
|
|
1439
|
+
*/
|
|
1440
|
+
function keys(object) {
|
|
1441
|
+
return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
|
|
1442
|
+
}
|
|
1443
|
+
/**
|
|
1444
|
+
* This method returns a new empty array.
|
|
1445
|
+
*
|
|
1446
|
+
* @static
|
|
1447
|
+
* @memberOf _
|
|
1448
|
+
* @since 4.13.0
|
|
1449
|
+
* @category Util
|
|
1450
|
+
* @returns {Array} Returns the new empty array.
|
|
1451
|
+
* @example
|
|
1452
|
+
*
|
|
1453
|
+
* var arrays = _.times(2, _.stubArray);
|
|
1454
|
+
*
|
|
1455
|
+
* console.log(arrays);
|
|
1456
|
+
* // => [[], []]
|
|
1457
|
+
*
|
|
1458
|
+
* console.log(arrays[0] === arrays[1]);
|
|
1459
|
+
* // => false
|
|
1460
|
+
*/
|
|
1461
|
+
function stubArray() {
|
|
1462
|
+
return [];
|
|
1463
|
+
}
|
|
1464
|
+
/**
|
|
1465
|
+
* This method returns `false`.
|
|
1466
|
+
*
|
|
1467
|
+
* @static
|
|
1468
|
+
* @memberOf _
|
|
1469
|
+
* @since 4.13.0
|
|
1470
|
+
* @category Util
|
|
1471
|
+
* @returns {boolean} Returns `false`.
|
|
1472
|
+
* @example
|
|
1473
|
+
*
|
|
1474
|
+
* _.times(2, _.stubFalse);
|
|
1475
|
+
* // => [false, false]
|
|
1476
|
+
*/
|
|
1477
|
+
function stubFalse() {
|
|
1478
|
+
return false;
|
|
1479
|
+
}
|
|
1480
|
+
module.exports = cloneDeep;
|
|
1481
|
+
}) });
|
|
1482
|
+
|
|
1483
|
+
//#endregion
|
|
1484
|
+
export default require_lodash();
|
|
1485
|
+
|
|
1486
|
+
export { require_lodash };
|