@budibase/backend-core 2.9.39-alpha.0 → 2.9.39-alpha.2
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/package.json +5 -5
- package/dist/src/accounts/accounts.js +100 -0
- package/dist/src/accounts/accounts.js.map +7 -0
- package/dist/src/accounts/api.js +78 -0
- package/dist/src/accounts/api.js.map +7 -0
- package/dist/src/accounts/index.js +23 -0
- package/dist/src/accounts/index.js.map +7 -0
- package/dist/src/auth/auth.js +208 -0
- package/dist/src/auth/auth.js.map +7 -0
- package/dist/src/auth/index.js +23 -0
- package/dist/src/auth/index.js.map +7 -0
- package/dist/src/auth/tests/auth.spec.js +37 -0
- package/dist/src/auth/tests/auth.spec.js.map +7 -0
- package/dist/src/blacklist/blacklist.js +88 -0
- package/dist/src/blacklist/blacklist.js.map +7 -0
- package/dist/src/blacklist/index.js +23 -0
- package/dist/src/blacklist/index.js.map +7 -0
- package/dist/src/blacklist/tests/blacklist.spec.js +61 -0
- package/dist/src/blacklist/tests/blacklist.spec.js.map +7 -0
- package/dist/src/cache/appMetadata.js +86 -0
- package/dist/src/cache/appMetadata.js.map +7 -0
- package/dist/src/cache/base/index.js +102 -0
- package/dist/src/cache/base/index.js.map +7 -0
- package/dist/src/cache/generic.js +69 -0
- package/dist/src/cache/generic.js.map +7 -0
- package/dist/src/cache/index.js +51 -0
- package/dist/src/cache/index.js.map +7 -0
- package/dist/src/cache/tests/writethrough.spec.js +132 -0
- package/dist/src/cache/tests/writethrough.spec.js.map +7 -0
- package/dist/src/cache/user.js +99 -0
- package/dist/src/cache/user.js.map +7 -0
- package/dist/src/cache/writethrough.js +144 -0
- package/dist/src/cache/writethrough.js.map +7 -0
- package/dist/src/configs/configs.js +228 -0
- package/dist/src/configs/configs.js.map +7 -0
- package/dist/src/configs/index.js +23 -0
- package/dist/src/configs/index.js.map +7 -0
- package/dist/src/configs/tests/configs.spec.js +182 -0
- package/dist/src/configs/tests/configs.spec.js.map +7 -0
- package/dist/src/constants/db.js +107 -0
- package/dist/src/constants/db.js.map +7 -0
- package/dist/src/constants/index.js +25 -0
- package/dist/src/constants/index.js.map +7 -0
- package/dist/src/constants/misc.js +92 -0
- package/dist/src/constants/misc.js.map +7 -0
- package/dist/src/context/Context.js +36 -0
- package/dist/src/context/Context.js.map +7 -0
- package/dist/src/context/identity.js +87 -0
- package/dist/src/context/identity.js.map +7 -0
- package/dist/src/context/index.js +45 -0
- package/dist/src/context/index.js.map +7 -0
- package/dist/src/context/mainContext.js +320 -0
- package/dist/src/context/mainContext.js.map +7 -0
- package/dist/src/context/tests/index.spec.js +147 -0
- package/dist/src/context/tests/index.spec.js.map +7 -0
- package/dist/src/context/types.js +17 -0
- package/dist/src/context/types.js.map +7 -0
- package/dist/src/db/Replication.js +89 -0
- package/dist/src/db/Replication.js.map +7 -0
- package/dist/src/db/constants.js +39 -0
- package/dist/src/db/constants.js.map +7 -0
- package/dist/src/db/couch/DatabaseImpl.js +224 -0
- package/dist/src/db/couch/DatabaseImpl.js.map +7 -0
- package/dist/src/db/couch/connections.js +103 -0
- package/dist/src/db/couch/connections.js.map +7 -0
- package/dist/src/db/couch/index.js +44 -0
- package/dist/src/db/couch/index.js.map +7 -0
- package/dist/src/db/couch/pouchDB.js +118 -0
- package/dist/src/db/couch/pouchDB.js.map +7 -0
- package/dist/src/db/couch/pouchDump.js +2 -0
- package/dist/src/db/couch/pouchDump.js.map +7 -0
- package/dist/src/db/couch/utils.js +76 -0
- package/dist/src/db/couch/utils.js.map +7 -0
- package/dist/src/db/db.js +73 -0
- package/dist/src/db/db.js.map +7 -0
- package/dist/src/db/errors.js +43 -0
- package/dist/src/db/errors.js.map +7 -0
- package/dist/src/db/index.js +64 -0
- package/dist/src/db/index.js.map +7 -0
- package/dist/src/db/lucene.js +595 -0
- package/dist/src/db/lucene.js.map +7 -0
- package/dist/src/db/searchIndexes/index.js +23 -0
- package/dist/src/db/searchIndexes/index.js.map +7 -0
- package/dist/src/db/searchIndexes/searchIndexes.js +82 -0
- package/dist/src/db/searchIndexes/searchIndexes.js.map +7 -0
- package/dist/src/db/tests/index.spec.js +24 -0
- package/dist/src/db/tests/index.spec.js.map +7 -0
- package/dist/src/db/tests/lucene.spec.js +312 -0
- package/dist/src/db/tests/lucene.spec.js.map +7 -0
- package/dist/src/db/tests/pouch.spec.js +63 -0
- package/dist/src/db/tests/pouch.spec.js.map +7 -0
- package/dist/src/db/tests/utils.spec.js +50 -0
- package/dist/src/db/tests/utils.spec.js.map +7 -0
- package/dist/src/db/utils.js +198 -0
- package/dist/src/db/utils.js.map +7 -0
- package/dist/src/db/views.js +223 -0
- package/dist/src/db/views.js.map +7 -0
- package/dist/src/docIds/conversions.js +83 -0
- package/dist/src/docIds/conversions.js.map +7 -0
- package/dist/src/docIds/ids.js +101 -0
- package/dist/src/docIds/ids.js.map +7 -0
- package/dist/src/docIds/index.js +25 -0
- package/dist/src/docIds/index.js.map +7 -0
- package/dist/src/docIds/newid.js +32 -0
- package/dist/src/docIds/newid.js.map +7 -0
- package/dist/src/docIds/params.js +136 -0
- package/dist/src/docIds/params.js.map +7 -0
- package/dist/src/docUpdates/index.js +61 -0
- package/dist/src/docUpdates/index.js.map +7 -0
- package/dist/src/environment.js +181 -0
- package/dist/src/environment.js.map +7 -0
- package/dist/src/errors/errors.js +126 -0
- package/dist/src/errors/errors.js.map +7 -0
- package/dist/src/errors/index.js +23 -0
- package/dist/src/errors/index.js.map +7 -0
- package/dist/src/events/analytics.js +42 -0
- package/dist/src/events/analytics.js.map +7 -0
- package/dist/src/events/asyncEvents/index.js +25 -0
- package/dist/src/events/asyncEvents/index.js.map +7 -0
- package/dist/src/events/asyncEvents/publisher.js +39 -0
- package/dist/src/events/asyncEvents/publisher.js.map +7 -0
- package/dist/src/events/asyncEvents/queue.js +42 -0
- package/dist/src/events/asyncEvents/queue.js.map +7 -0
- package/dist/src/events/backfill.js +172 -0
- package/dist/src/events/backfill.js.map +7 -0
- package/dist/src/events/documentId.js +51 -0
- package/dist/src/events/documentId.js.map +7 -0
- package/dist/src/events/events.js +63 -0
- package/dist/src/events/events.js.map +7 -0
- package/dist/src/events/identification.js +275 -0
- package/dist/src/events/identification.js.map +7 -0
- package/dist/src/events/index.js +62 -0
- package/dist/src/events/index.js.map +7 -0
- package/dist/src/events/processors/AnalyticsProcessor.js +76 -0
- package/dist/src/events/processors/AnalyticsProcessor.js.map +7 -0
- package/dist/src/events/processors/AuditLogsProcessor.js +97 -0
- package/dist/src/events/processors/AuditLogsProcessor.js.map +7 -0
- package/dist/src/events/processors/LoggingProcessor.js +58 -0
- package/dist/src/events/processors/LoggingProcessor.js.map +7 -0
- package/dist/src/events/processors/Processors.js +57 -0
- package/dist/src/events/processors/Processors.js.map +7 -0
- package/dist/src/events/processors/async/DocumentUpdateProcessor.js +53 -0
- package/dist/src/events/processors/async/DocumentUpdateProcessor.js.map +7 -0
- package/dist/src/events/processors/index.js +57 -0
- package/dist/src/events/processors/index.js.map +7 -0
- package/dist/src/events/processors/posthog/PosthogProcessor.js +126 -0
- package/dist/src/events/processors/posthog/PosthogProcessor.js.map +7 -0
- package/dist/src/events/processors/posthog/index.js +36 -0
- package/dist/src/events/processors/posthog/index.js.map +7 -0
- package/dist/src/events/processors/posthog/rateLimiting.js +105 -0
- package/dist/src/events/processors/posthog/rateLimiting.js.map +7 -0
- package/dist/src/events/processors/posthog/tests/PosthogProcessor.spec.js +154 -0
- package/dist/src/events/processors/posthog/tests/PosthogProcessor.spec.js.map +7 -0
- package/dist/src/events/processors/types.js +29 -0
- package/dist/src/events/processors/types.js.map +7 -0
- package/dist/src/events/publishers/account.js +49 -0
- package/dist/src/events/publishers/account.js.map +7 -0
- package/dist/src/events/publishers/app.js +145 -0
- package/dist/src/events/publishers/app.js.map +7 -0
- package/dist/src/events/publishers/auditLog.js +42 -0
- package/dist/src/events/publishers/auditLog.js.map +7 -0
- package/dist/src/events/publishers/auth.js +80 -0
- package/dist/src/events/publishers/auth.js.map +7 -0
- package/dist/src/events/publishers/automation.js +111 -0
- package/dist/src/events/publishers/automation.js.map +7 -0
- package/dist/src/events/publishers/backfill.js +92 -0
- package/dist/src/events/publishers/backfill.js.map +7 -0
- package/dist/src/events/publishers/backup.js +49 -0
- package/dist/src/events/publishers/backup.js.map +7 -0
- package/dist/src/events/publishers/datasource.js +59 -0
- package/dist/src/events/publishers/datasource.js.map +7 -0
- package/dist/src/events/publishers/email.js +38 -0
- package/dist/src/events/publishers/email.js.map +7 -0
- package/dist/src/events/publishers/environmentVariable.js +53 -0
- package/dist/src/events/publishers/environmentVariable.js.map +7 -0
- package/dist/src/events/publishers/group.js +105 -0
- package/dist/src/events/publishers/group.js.map +7 -0
- package/dist/src/events/publishers/index.js +108 -0
- package/dist/src/events/publishers/index.js.map +7 -0
- package/dist/src/events/publishers/installation.js +56 -0
- package/dist/src/events/publishers/installation.js.map +7 -0
- package/dist/src/events/publishers/layout.js +42 -0
- package/dist/src/events/publishers/layout.js.map +7 -0
- package/dist/src/events/publishers/license.js +78 -0
- package/dist/src/events/publishers/license.js.map +7 -0
- package/dist/src/events/publishers/org.js +53 -0
- package/dist/src/events/publishers/org.js.map +7 -0
- package/dist/src/events/publishers/plugin.js +61 -0
- package/dist/src/events/publishers/plugin.js.map +7 -0
- package/dist/src/events/publishers/query.js +85 -0
- package/dist/src/events/publishers/query.js.map +7 -0
- package/dist/src/events/publishers/role.js +71 -0
- package/dist/src/events/publishers/role.js.map +7 -0
- package/dist/src/events/publishers/rows.js +43 -0
- package/dist/src/events/publishers/rows.js.map +7 -0
- package/dist/src/events/publishers/screen.js +52 -0
- package/dist/src/events/publishers/screen.js.map +7 -0
- package/dist/src/events/publishers/serve.js +53 -0
- package/dist/src/events/publishers/serve.js.map +7 -0
- package/dist/src/events/publishers/table.js +79 -0
- package/dist/src/events/publishers/table.js.map +7 -0
- package/dist/src/events/publishers/user.js +191 -0
- package/dist/src/events/publishers/user.js.map +7 -0
- package/dist/src/events/publishers/view.js +102 -0
- package/dist/src/events/publishers/view.js.map +7 -0
- package/dist/src/features/index.js +105 -0
- package/dist/src/features/index.js.map +7 -0
- package/dist/src/features/installation.js +42 -0
- package/dist/src/features/installation.js.map +7 -0
- package/dist/src/features/tests/featureFlags.spec.js +86 -0
- package/dist/src/features/tests/featureFlags.spec.js.map +7 -0
- package/dist/src/helpers.js +31 -0
- package/dist/src/helpers.js.map +7 -0
- package/dist/src/index.js +154 -0
- package/dist/src/index.js.map +7 -0
- package/dist/src/installation.js +139 -0
- package/dist/src/installation.js.map +7 -0
- package/dist/src/logging/alerts.js +49 -0
- package/dist/src/logging/alerts.js.map +7 -0
- package/dist/src/logging/correlation/correlation.js +41 -0
- package/dist/src/logging/correlation/correlation.js.map +7 -0
- package/dist/src/logging/correlation/index.js +23 -0
- package/dist/src/logging/correlation/index.js.map +7 -0
- package/dist/src/logging/correlation/middleware.js +37 -0
- package/dist/src/logging/correlation/middleware.js.map +7 -0
- package/dist/src/logging/index.js +48 -0
- package/dist/src/logging/index.js.map +7 -0
- package/dist/src/logging/pino/logger.js +197 -0
- package/dist/src/logging/pino/logger.js.map +7 -0
- package/dist/src/logging/pino/middleware.js +77 -0
- package/dist/src/logging/pino/middleware.js.map +7 -0
- package/dist/src/logging/system.js +110 -0
- package/dist/src/logging/system.js.map +7 -0
- package/dist/src/logging/tests/system.spec.js +59 -0
- package/dist/src/logging/tests/system.spec.js.map +7 -0
- package/dist/src/middleware/adminOnly.js +31 -0
- package/dist/src/middleware/adminOnly.js.map +7 -0
- package/dist/src/middleware/auditLog.js +27 -0
- package/dist/src/middleware/auditLog.js.map +7 -0
- package/dist/src/middleware/authenticated.js +178 -0
- package/dist/src/middleware/authenticated.js.map +7 -0
- package/dist/src/middleware/builderOnly.js +48 -0
- package/dist/src/middleware/builderOnly.js.map +7 -0
- package/dist/src/middleware/builderOrAdmin.js +48 -0
- package/dist/src/middleware/builderOrAdmin.js.map +7 -0
- package/dist/src/middleware/csrf.js +60 -0
- package/dist/src/middleware/csrf.js.map +7 -0
- package/dist/src/middleware/errorHandling.js +62 -0
- package/dist/src/middleware/errorHandling.js.map +7 -0
- package/dist/src/middleware/index.js +95 -0
- package/dist/src/middleware/index.js.map +7 -0
- package/dist/src/middleware/internalApi.js +39 -0
- package/dist/src/middleware/internalApi.js.map +7 -0
- package/dist/src/middleware/joi-validator.js +73 -0
- package/dist/src/middleware/joi-validator.js.map +7 -0
- package/dist/src/middleware/matchers.js +62 -0
- package/dist/src/middleware/matchers.js.map +7 -0
- package/dist/src/middleware/passport/datasource/google.js +103 -0
- package/dist/src/middleware/passport/datasource/google.js.map +7 -0
- package/dist/src/middleware/passport/local.js +73 -0
- package/dist/src/middleware/passport/local.js.map +7 -0
- package/dist/src/middleware/passport/sso/google.js +93 -0
- package/dist/src/middleware/passport/sso/google.js.map +7 -0
- package/dist/src/middleware/passport/sso/oidc.js +135 -0
- package/dist/src/middleware/passport/sso/oidc.js.map +7 -0
- package/dist/src/middleware/passport/sso/sso.js +149 -0
- package/dist/src/middleware/passport/sso/sso.js.map +7 -0
- package/dist/src/middleware/passport/sso/tests/google.spec.js +77 -0
- package/dist/src/middleware/passport/sso/tests/google.spec.js.map +7 -0
- package/dist/src/middleware/passport/sso/tests/oidc.spec.js +143 -0
- package/dist/src/middleware/passport/sso/tests/oidc.spec.js.map +7 -0
- package/dist/src/middleware/passport/sso/tests/sso.spec.js +167 -0
- package/dist/src/middleware/passport/sso/tests/sso.spec.js.map +7 -0
- package/dist/src/middleware/passport/utils.js +62 -0
- package/dist/src/middleware/passport/utils.js.map +7 -0
- package/dist/src/middleware/querystringToBody.js +45 -0
- package/dist/src/middleware/querystringToBody.js.map +7 -0
- package/dist/src/middleware/tenancy.js +46 -0
- package/dist/src/middleware/tenancy.js.map +7 -0
- package/dist/src/middleware/tests/builder.spec.js +169 -0
- package/dist/src/middleware/tests/builder.spec.js.map +7 -0
- package/dist/src/middleware/tests/matchers.spec.js +120 -0
- package/dist/src/middleware/tests/matchers.spec.js.map +7 -0
- package/dist/src/migrations/definitions.js +63 -0
- package/dist/src/migrations/definitions.js.map +7 -0
- package/dist/src/migrations/index.js +25 -0
- package/dist/src/migrations/index.js.map +7 -0
- package/dist/src/migrations/migrations.js +178 -0
- package/dist/src/migrations/migrations.js.map +7 -0
- package/dist/src/migrations/tests/migrations.spec.js +78 -0
- package/dist/src/migrations/tests/migrations.spec.js.map +7 -0
- package/dist/src/objectStore/buckets/app.js +65 -0
- package/dist/src/objectStore/buckets/app.js.map +7 -0
- package/dist/src/objectStore/buckets/global.js +63 -0
- package/dist/src/objectStore/buckets/global.js.map +7 -0
- package/dist/src/objectStore/buckets/index.js +27 -0
- package/dist/src/objectStore/buckets/index.js.map +7 -0
- package/dist/src/objectStore/buckets/plugins.js +101 -0
- package/dist/src/objectStore/buckets/plugins.js.map +7 -0
- package/dist/src/objectStore/buckets/tests/app.spec.js +171 -0
- package/dist/src/objectStore/buckets/tests/app.spec.js.map +7 -0
- package/dist/src/objectStore/buckets/tests/global.spec.js +87 -0
- package/dist/src/objectStore/buckets/tests/global.spec.js.map +7 -0
- package/dist/src/objectStore/buckets/tests/plugins.spec.js +123 -0
- package/dist/src/objectStore/buckets/tests/plugins.spec.js.map +7 -0
- package/dist/src/objectStore/cloudfront.js +74 -0
- package/dist/src/objectStore/cloudfront.js.map +7 -0
- package/dist/src/objectStore/index.js +27 -0
- package/dist/src/objectStore/index.js.map +7 -0
- package/dist/src/objectStore/objectStore.js +372 -0
- package/dist/src/objectStore/objectStore.js.map +7 -0
- package/dist/src/objectStore/utils.js +58 -0
- package/dist/src/objectStore/utils.js.map +7 -0
- package/dist/src/platform/index.js +45 -0
- package/dist/src/platform/index.js.map +7 -0
- package/dist/src/platform/platformDb.js +33 -0
- package/dist/src/platform/platformDb.js.map +7 -0
- package/dist/src/platform/tenants.js +123 -0
- package/dist/src/platform/tenants.js.map +7 -0
- package/dist/src/platform/tests/tenants.spec.js +46 -0
- package/dist/src/platform/tests/tenants.spec.js.map +7 -0
- package/dist/src/platform/users.js +104 -0
- package/dist/src/platform/users.js.map +7 -0
- package/dist/src/plugin/index.js +23 -0
- package/dist/src/plugin/index.js.map +7 -0
- package/dist/src/plugin/tests/validation.spec.js +97 -0
- package/dist/src/plugin/tests/validation.spec.js.map +7 -0
- package/dist/src/plugin/utils.js +153 -0
- package/dist/src/plugin/utils.js.map +7 -0
- package/dist/src/queue/constants.js +35 -0
- package/dist/src/queue/constants.js.map +7 -0
- package/dist/src/queue/inMemoryQueue.js +139 -0
- package/dist/src/queue/inMemoryQueue.js.map +7 -0
- package/dist/src/queue/index.js +25 -0
- package/dist/src/queue/index.js.map +7 -0
- package/dist/src/queue/listeners.js +177 -0
- package/dist/src/queue/listeners.js.map +7 -0
- package/dist/src/queue/queue.js +85 -0
- package/dist/src/queue/queue.js.map +7 -0
- package/dist/src/redis/index.js +48 -0
- package/dist/src/redis/index.js.map +7 -0
- package/dist/src/redis/init.js +128 -0
- package/dist/src/redis/init.js.map +7 -0
- package/dist/src/redis/redis.js +277 -0
- package/dist/src/redis/redis.js.map +7 -0
- package/dist/src/redis/redlockImpl.js +145 -0
- package/dist/src/redis/redlockImpl.js.map +7 -0
- package/dist/src/redis/utils.js +136 -0
- package/dist/src/redis/utils.js.map +7 -0
- package/dist/src/security/encryption.js +184 -0
- package/dist/src/security/encryption.js.map +7 -0
- package/dist/src/security/permissions.js +188 -0
- package/dist/src/security/permissions.js.map +7 -0
- package/dist/src/security/roles.js +337 -0
- package/dist/src/security/roles.js.map +7 -0
- package/dist/src/security/sessions.js +135 -0
- package/dist/src/security/sessions.js.map +7 -0
- package/dist/src/security/tests/encryption.spec.js +51 -0
- package/dist/src/security/tests/encryption.spec.js.map +7 -0
- package/dist/src/security/tests/permissions.spec.js +154 -0
- package/dist/src/security/tests/permissions.spec.js.map +7 -0
- package/dist/src/security/tests/sessions.spec.js +33 -0
- package/dist/src/security/tests/sessions.spec.js.map +7 -0
- package/dist/src/tenancy/db.js +33 -0
- package/dist/src/tenancy/db.js.map +7 -0
- package/dist/src/tenancy/index.js +25 -0
- package/dist/src/tenancy/index.js.map +7 -0
- package/dist/src/tenancy/tenancy.js +129 -0
- package/dist/src/tenancy/tenancy.js.map +7 -0
- package/dist/src/tenancy/tests/tenancy.spec.js +154 -0
- package/dist/src/tenancy/tests/tenancy.spec.js.map +7 -0
- package/dist/src/timers/index.js +23 -0
- package/dist/src/timers/index.js.map +7 -0
- package/dist/src/timers/timers.js +51 -0
- package/dist/src/timers/timers.js.map +7 -0
- package/dist/src/users/db.js +381 -0
- package/dist/src/users/db.js.map +7 -0
- package/dist/src/users/events.js +152 -0
- package/dist/src/users/events.js.map +7 -0
- package/dist/src/users/index.js +36 -0
- package/dist/src/users/index.js.map +7 -0
- package/dist/src/users/lookup.js +110 -0
- package/dist/src/users/lookup.js.map +7 -0
- package/dist/src/users/users.js +257 -0
- package/dist/src/users/users.js.map +7 -0
- package/dist/src/users/utils.js +95 -0
- package/dist/src/users/utils.js.map +7 -0
- package/dist/src/utils/hashing.js +53 -0
- package/dist/src/utils/hashing.js.map +7 -0
- package/dist/src/utils/index.js +27 -0
- package/dist/src/utils/index.js.map +7 -0
- package/dist/src/utils/stringUtils.js +33 -0
- package/dist/src/utils/stringUtils.js.map +7 -0
- package/dist/src/utils/tests/utils.spec.js +165 -0
- package/dist/src/utils/tests/utils.spec.js.map +7 -0
- package/dist/src/utils/utils.js +207 -0
- package/dist/src/utils/utils.js.map +7 -0
- package/dist/tests/core/logging.js +57 -0
- package/dist/tests/core/logging.js.map +7 -0
- package/dist/tests/core/utilities/index.js +54 -0
- package/dist/tests/core/utilities/index.js.map +7 -0
- package/dist/tests/core/utilities/jestUtils.js +50 -0
- package/dist/tests/core/utilities/jestUtils.js.map +7 -0
- package/dist/tests/core/utilities/mocks/alerts.js +41 -0
- package/dist/tests/core/utilities/mocks/alerts.js.map +7 -0
- package/dist/tests/core/utilities/mocks/date.js +32 -0
- package/dist/tests/core/utilities/mocks/date.js.map +7 -0
- package/dist/tests/core/utilities/mocks/events.js +133 -0
- package/dist/tests/core/utilities/mocks/events.js.map +7 -0
- package/dist/tests/core/utilities/mocks/fetch.js +39 -0
- package/dist/tests/core/utilities/mocks/fetch.js.map +7 -0
- package/dist/tests/core/utilities/mocks/index.js +55 -0
- package/dist/tests/core/utilities/mocks/index.js.map +7 -0
- package/dist/tests/core/utilities/mocks/licenses.js +145 -0
- package/dist/tests/core/utilities/mocks/licenses.js.map +7 -0
- package/dist/tests/core/utilities/mocks/posthog.js +9 -0
- package/dist/tests/core/utilities/mocks/posthog.js.map +7 -0
- package/dist/tests/core/utilities/structures/Chance.js +48 -0
- package/dist/tests/core/utilities/structures/Chance.js.map +7 -0
- package/dist/tests/core/utilities/structures/accounts.js +148 -0
- package/dist/tests/core/utilities/structures/accounts.js.map +7 -0
- package/dist/tests/core/utilities/structures/apps.js +47 -0
- package/dist/tests/core/utilities/structures/apps.js.map +7 -0
- package/dist/tests/core/utilities/structures/common.js +35 -0
- package/dist/tests/core/utilities/structures/common.js.map +7 -0
- package/dist/tests/core/utilities/structures/db.js +40 -0
- package/dist/tests/core/utilities/structures/db.js.map +7 -0
- package/dist/tests/core/utilities/structures/documents/index.js +23 -0
- package/dist/tests/core/utilities/structures/documents/index.js.map +7 -0
- package/dist/tests/core/utilities/structures/documents/platform/index.js +39 -0
- package/dist/tests/core/utilities/structures/documents/platform/index.js.map +7 -0
- package/dist/tests/core/utilities/structures/documents/platform/installation.js +48 -0
- package/dist/tests/core/utilities/structures/documents/platform/installation.js.map +7 -0
- package/dist/tests/core/utilities/structures/generator.js +40 -0
- package/dist/tests/core/utilities/structures/generator.js.map +7 -0
- package/dist/tests/core/utilities/structures/index.js +81 -0
- package/dist/tests/core/utilities/structures/index.js.map +7 -0
- package/dist/tests/core/utilities/structures/koa.js +42 -0
- package/dist/tests/core/utilities/structures/koa.js.map +7 -0
- package/dist/tests/core/utilities/structures/licenses.js +175 -0
- package/dist/tests/core/utilities/structures/licenses.js.map +7 -0
- package/dist/tests/core/utilities/structures/plugins.js +46 -0
- package/dist/tests/core/utilities/structures/plugins.js.map +7 -0
- package/dist/tests/core/utilities/structures/quotas.js +94 -0
- package/dist/tests/core/utilities/structures/quotas.js.map +7 -0
- package/dist/tests/core/utilities/structures/scim.js +90 -0
- package/dist/tests/core/utilities/structures/scim.js.map +7 -0
- package/dist/tests/core/utilities/structures/shared.js +46 -0
- package/dist/tests/core/utilities/structures/shared.js.map +7 -0
- package/dist/tests/core/utilities/structures/sso.js +144 -0
- package/dist/tests/core/utilities/structures/sso.js.map +7 -0
- package/dist/tests/core/utilities/structures/tenants.js +32 -0
- package/dist/tests/core/utilities/structures/tenants.js.map +7 -0
- package/dist/tests/core/utilities/structures/userGroups.js +36 -0
- package/dist/tests/core/utilities/structures/userGroups.js.map +7 -0
- package/dist/tests/core/utilities/structures/users.js +96 -0
- package/dist/tests/core/utilities/structures/users.js.map +7 -0
- package/dist/tests/core/utilities/testContainerUtils.js +100 -0
- package/dist/tests/core/utilities/testContainerUtils.js.map +7 -0
- package/dist/tests/core/utilities/utils/index.js +39 -0
- package/dist/tests/core/utilities/utils/index.js.map +7 -0
- package/dist/tests/core/utilities/utils/time.js +31 -0
- package/dist/tests/core/utilities/utils/time.js.map +7 -0
- package/dist/tests/extra/DBTestConfiguration.js +61 -0
- package/dist/tests/extra/DBTestConfiguration.js.map +7 -0
- package/dist/tests/extra/index.js +42 -0
- package/dist/tests/extra/index.js.map +7 -0
- package/dist/tests/extra/testEnv.js +106 -0
- package/dist/tests/extra/testEnv.js.map +7 -0
- package/dist/tests/index.js +23 -0
- package/dist/tests/index.js.map +7 -0
- package/dist/tests/jestEnv.js +8 -0
- package/dist/tests/jestEnv.js.map +7 -0
- package/dist/tests/jestSetup.js +41 -0
- package/dist/tests/jestSetup.js.map +7 -0
- package/package.json +5 -5
- package/dist/tests.js +0 -8467
- package/dist/tests.js.map +0 -7
- package/dist/tests.js.meta.json +0 -1
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../tests/core/utilities/mocks/events.ts"],
|
|
4
|
+
"sourcesContent": ["beforeAll(async () => {\n const processors = await import(\"../../../../src/events/processors\")\n const events = await import(\"../../../../src/events\")\n jest.spyOn(processors.analyticsProcessor, \"processEvent\")\n\n jest.spyOn(events.identification, \"identifyTenantGroup\")\n jest.spyOn(events.identification, \"identifyUser\")\n\n jest.spyOn(events.backfill, \"appSucceeded\")\n jest.spyOn(events.backfill, \"tenantSucceeded\")\n\n jest.spyOn(events.account, \"created\")\n jest.spyOn(events.account, \"deleted\")\n jest.spyOn(events.account, \"verified\")\n\n jest.spyOn(events.app, \"created\")\n jest.spyOn(events.app, \"updated\")\n jest.spyOn(events.app, \"deleted\")\n jest.spyOn(events.app, \"published\")\n jest.spyOn(events.app, \"unpublished\")\n jest.spyOn(events.app, \"templateImported\")\n jest.spyOn(events.app, \"fileImported\")\n jest.spyOn(events.app, \"versionUpdated\")\n jest.spyOn(events.app, \"versionReverted\")\n jest.spyOn(events.app, \"reverted\")\n jest.spyOn(events.app, \"exported\")\n\n jest.spyOn(events.auth, \"login\")\n jest.spyOn(events.auth, \"logout\")\n jest.spyOn(events.auth, \"SSOCreated\")\n jest.spyOn(events.auth, \"SSOUpdated\")\n jest.spyOn(events.auth, \"SSOActivated\")\n jest.spyOn(events.auth, \"SSODeactivated\")\n\n jest.spyOn(events.automation, \"created\")\n jest.spyOn(events.automation, \"deleted\")\n jest.spyOn(events.automation, \"tested\")\n jest.spyOn(events.automation, \"stepCreated\")\n jest.spyOn(events.automation, \"stepDeleted\")\n jest.spyOn(events.automation, \"triggerUpdated\")\n\n jest.spyOn(events.datasource, \"created\")\n jest.spyOn(events.datasource, \"updated\")\n jest.spyOn(events.datasource, \"deleted\")\n\n jest.spyOn(events.email, \"SMTPCreated\")\n jest.spyOn(events.email, \"SMTPUpdated\")\n\n jest.spyOn(events.layout, \"created\")\n jest.spyOn(events.layout, \"deleted\")\n\n jest.spyOn(events.org, \"nameUpdated\")\n jest.spyOn(events.org, \"logoUpdated\")\n jest.spyOn(events.org, \"platformURLUpdated\")\n jest.spyOn(events.org, \"analyticsOptOut\")\n\n jest.spyOn(events.installation, \"versionChecked\")\n\n jest.spyOn(events.query, \"created\")\n jest.spyOn(events.query, \"updated\")\n jest.spyOn(events.query, \"deleted\")\n jest.spyOn(events.query, \"imported\")\n jest.spyOn(events.query, \"previewed\")\n\n jest.spyOn(events.role, \"created\")\n jest.spyOn(events.role, \"updated\")\n jest.spyOn(events.role, \"deleted\")\n jest.spyOn(events.role, \"assigned\")\n jest.spyOn(events.role, \"unassigned\")\n\n jest.spyOn(events.rows, \"imported\")\n jest.spyOn(events.rows, \"created\")\n\n jest.spyOn(events.screen, \"created\")\n jest.spyOn(events.screen, \"deleted\")\n\n jest.spyOn(events.user, \"created\")\n jest.spyOn(events.user, \"updated\")\n jest.spyOn(events.user, \"deleted\")\n jest.spyOn(events.user, \"permissionAdminAssigned\")\n jest.spyOn(events.user, \"permissionAdminRemoved\")\n jest.spyOn(events.user, \"permissionBuilderAssigned\")\n jest.spyOn(events.user, \"permissionBuilderRemoved\")\n jest.spyOn(events.user, \"invited\")\n jest.spyOn(events.user, \"inviteAccepted\")\n jest.spyOn(events.user, \"passwordForceReset\")\n jest.spyOn(events.user, \"passwordUpdated\")\n jest.spyOn(events.user, \"passwordResetRequested\")\n jest.spyOn(events.user, \"passwordReset\")\n\n jest.spyOn(events.group, \"created\")\n jest.spyOn(events.group, \"updated\")\n jest.spyOn(events.group, \"deleted\")\n jest.spyOn(events.group, \"usersAdded\")\n jest.spyOn(events.group, \"usersDeleted\")\n jest.spyOn(events.group, \"createdOnboarding\")\n jest.spyOn(events.group, \"permissionsEdited\")\n\n jest.spyOn(events.serve, \"servedBuilder\")\n jest.spyOn(events.serve, \"servedApp\")\n jest.spyOn(events.serve, \"servedAppPreview\")\n\n jest.spyOn(events.table, \"created\")\n jest.spyOn(events.table, \"updated\")\n jest.spyOn(events.table, \"deleted\")\n jest.spyOn(events.table, \"exported\")\n jest.spyOn(events.table, \"imported\")\n\n jest.spyOn(events.view, \"created\")\n jest.spyOn(events.view, \"updated\")\n jest.spyOn(events.view, \"deleted\")\n jest.spyOn(events.view, \"exported\")\n jest.spyOn(events.view, \"filterCreated\")\n jest.spyOn(events.view, \"filterUpdated\")\n jest.spyOn(events.view, \"filterDeleted\")\n jest.spyOn(events.view, \"calculationCreated\")\n jest.spyOn(events.view, \"calculationUpdated\")\n jest.spyOn(events.view, \"calculationDeleted\")\n\n jest.spyOn(events.plugin, \"init\")\n jest.spyOn(events.plugin, \"imported\")\n jest.spyOn(events.plugin, \"deleted\")\n\n jest.spyOn(events.license, \"planChanged\")\n jest.spyOn(events.license, \"activated\")\n jest.spyOn(events.license, \"checkoutOpened\")\n jest.spyOn(events.license, \"checkoutSuccess\")\n jest.spyOn(events.license, \"portalOpened\")\n jest.spyOn(events.license, \"paymentFailed\")\n jest.spyOn(events.license, \"paymentRecovered\")\n})\n"],
|
|
5
|
+
"mappings": "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",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var fetch_exports = {};
|
|
20
|
+
__export(fetch_exports, {
|
|
21
|
+
default: () => fetch_default
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(fetch_exports);
|
|
24
|
+
const mockFetch = jest.fn((url, opts) => {
|
|
25
|
+
const fetch = jest.requireActual("node-fetch");
|
|
26
|
+
const env = jest.requireActual("../../../../src/environment").default;
|
|
27
|
+
if (url.includes(env.COUCH_DB_URL) || url.includes("raw.github")) {
|
|
28
|
+
return fetch(url, opts);
|
|
29
|
+
}
|
|
30
|
+
return void 0;
|
|
31
|
+
});
|
|
32
|
+
const enable = () => {
|
|
33
|
+
jest.mock("node-fetch", () => mockFetch);
|
|
34
|
+
};
|
|
35
|
+
var fetch_default = {
|
|
36
|
+
...mockFetch,
|
|
37
|
+
enable
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=fetch.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../tests/core/utilities/mocks/fetch.ts"],
|
|
4
|
+
"sourcesContent": ["const mockFetch = jest.fn((url: any, opts: any) => {\n const fetch = jest.requireActual(\"node-fetch\")\n const env = jest.requireActual(\"../../../../src/environment\").default\n if (url.includes(env.COUCH_DB_URL) || url.includes(\"raw.github\")) {\n return fetch(url, opts)\n }\n return undefined\n})\n\nconst enable = () => {\n jest.mock(\"node-fetch\", () => mockFetch)\n}\n\nexport default {\n ...mockFetch,\n enable,\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,MAAM,YAAY,KAAK,GAAG,CAAC,KAAU,SAAc;AACjD,QAAM,QAAQ,KAAK,cAAc,YAAY;AAC7C,QAAM,MAAM,KAAK,cAAc,6BAA6B,EAAE;AAC9D,MAAI,IAAI,SAAS,IAAI,YAAY,KAAK,IAAI,SAAS,YAAY,GAAG;AAChE,WAAO,MAAM,KAAK,IAAI;AAAA,EACxB;AACA,SAAO;AACT,CAAC;AAED,MAAM,SAAS,MAAM;AACnB,OAAK,KAAK,cAAc,MAAM,SAAS;AACzC;AAEA,IAAO,gBAAQ;AAAA,EACb,GAAG;AAAA,EACH;AACF;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
21
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
24
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
25
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
26
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
27
|
+
mod
|
|
28
|
+
));
|
|
29
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
30
|
+
var mocks_exports = {};
|
|
31
|
+
__export(mocks_exports, {
|
|
32
|
+
accounts: () => accounts,
|
|
33
|
+
date: () => date,
|
|
34
|
+
fetch: () => import_fetch.default,
|
|
35
|
+
licenses: () => licenses
|
|
36
|
+
});
|
|
37
|
+
module.exports = __toCommonJS(mocks_exports);
|
|
38
|
+
var _accounts = __toESM(require("../../../../src/accounts"));
|
|
39
|
+
var date = __toESM(require("./date"));
|
|
40
|
+
var licenses = __toESM(require("./licenses"));
|
|
41
|
+
var import_fetch = __toESM(require("./fetch"));
|
|
42
|
+
__reExport(mocks_exports, require("./alerts"), module.exports);
|
|
43
|
+
var import_events = require("./events");
|
|
44
|
+
var import_posthog = require("./posthog");
|
|
45
|
+
jest.mock("../../../../src/accounts");
|
|
46
|
+
const accounts = jest.mocked(_accounts);
|
|
47
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
48
|
+
0 && (module.exports = {
|
|
49
|
+
accounts,
|
|
50
|
+
date,
|
|
51
|
+
fetch,
|
|
52
|
+
licenses,
|
|
53
|
+
...require("./alerts")
|
|
54
|
+
});
|
|
55
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../tests/core/utilities/mocks/index.ts"],
|
|
4
|
+
"sourcesContent": ["jest.mock(\"../../../../src/accounts\")\nimport * as _accounts from \"../../../../src/accounts\"\nexport const accounts = jest.mocked(_accounts)\n\nexport * as date from \"./date\"\nexport * as licenses from \"./licenses\"\nexport { default as fetch } from \"./fetch\"\nexport * from \"./alerts\"\nimport \"./events\"\nimport \"./posthog\"\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,gBAA2B;AAG3B,WAAsB;AACtB,eAA0B;AAC1B,mBAAiC;AACjC,0BAAc,qBAPd;AAQA,oBAAO;AACP,qBAAO;AATP,KAAK,KAAK,0BAA0B;AAE7B,MAAM,WAAW,KAAK,OAAO,SAAS;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var licenses_exports = {};
|
|
30
|
+
__export(licenses_exports, {
|
|
31
|
+
init: () => init,
|
|
32
|
+
initInternal: () => initInternal,
|
|
33
|
+
setAutomationLogsQuota: () => setAutomationLogsQuota,
|
|
34
|
+
useAppBuilders: () => useAppBuilders,
|
|
35
|
+
useAuditLogs: () => useAuditLogs,
|
|
36
|
+
useBackups: () => useBackups,
|
|
37
|
+
useCloudFree: () => useCloudFree,
|
|
38
|
+
useEnforceableSSO: () => useEnforceableSSO,
|
|
39
|
+
useEnvironmentVariables: () => useEnvironmentVariables,
|
|
40
|
+
useGroups: () => useGroups,
|
|
41
|
+
useLicense: () => useLicense,
|
|
42
|
+
usePublicApiUserRoles: () => usePublicApiUserRoles,
|
|
43
|
+
useScimIntegration: () => useScimIntegration,
|
|
44
|
+
useSyncAutomations: () => useSyncAutomations,
|
|
45
|
+
useUnlimited: () => useUnlimited,
|
|
46
|
+
useViewPermissions: () => useViewPermissions
|
|
47
|
+
});
|
|
48
|
+
module.exports = __toCommonJS(licenses_exports);
|
|
49
|
+
var import_types = require("@budibase/types");
|
|
50
|
+
var import_cloneDeep = __toESM(require("lodash/cloneDeep"));
|
|
51
|
+
let CLOUD_FREE_LICENSE;
|
|
52
|
+
let UNLIMITED_LICENSE;
|
|
53
|
+
let getCachedLicense;
|
|
54
|
+
function init(proPkg) {
|
|
55
|
+
initInternal({
|
|
56
|
+
CLOUD_FREE_LICENSE: proPkg.constants.licenses.CLOUD_FREE_LICENSE,
|
|
57
|
+
UNLIMITED_LICENSE: proPkg.constants.licenses.UNLIMITED_LICENSE,
|
|
58
|
+
getCachedLicense: proPkg.licensing.cache.getCachedLicense
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
function initInternal(opts) {
|
|
62
|
+
CLOUD_FREE_LICENSE = opts.CLOUD_FREE_LICENSE;
|
|
63
|
+
UNLIMITED_LICENSE = opts.UNLIMITED_LICENSE;
|
|
64
|
+
getCachedLicense = opts.getCachedLicense;
|
|
65
|
+
}
|
|
66
|
+
const useLicense = (license, opts) => {
|
|
67
|
+
if (opts) {
|
|
68
|
+
if (opts.features) {
|
|
69
|
+
license.features.push(...opts.features);
|
|
70
|
+
}
|
|
71
|
+
if (opts.quotas) {
|
|
72
|
+
license.quotas = opts.quotas;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
getCachedLicense.mockReturnValue(license);
|
|
76
|
+
return license;
|
|
77
|
+
};
|
|
78
|
+
const useUnlimited = (opts) => {
|
|
79
|
+
return useLicense(UNLIMITED_LICENSE, opts);
|
|
80
|
+
};
|
|
81
|
+
const useCloudFree = () => {
|
|
82
|
+
return useLicense(CLOUD_FREE_LICENSE);
|
|
83
|
+
};
|
|
84
|
+
const useFeature = (feature) => {
|
|
85
|
+
const license = (0, import_cloneDeep.default)(UNLIMITED_LICENSE);
|
|
86
|
+
const opts = {
|
|
87
|
+
features: [feature]
|
|
88
|
+
};
|
|
89
|
+
return useLicense(license, opts);
|
|
90
|
+
};
|
|
91
|
+
const useBackups = () => {
|
|
92
|
+
return useFeature(import_types.Feature.APP_BACKUPS);
|
|
93
|
+
};
|
|
94
|
+
const useEnforceableSSO = () => {
|
|
95
|
+
return useFeature(import_types.Feature.ENFORCEABLE_SSO);
|
|
96
|
+
};
|
|
97
|
+
const useGroups = () => {
|
|
98
|
+
return useFeature(import_types.Feature.USER_GROUPS);
|
|
99
|
+
};
|
|
100
|
+
const useEnvironmentVariables = () => {
|
|
101
|
+
return useFeature(import_types.Feature.ENVIRONMENT_VARIABLES);
|
|
102
|
+
};
|
|
103
|
+
const useAuditLogs = () => {
|
|
104
|
+
return useFeature(import_types.Feature.AUDIT_LOGS);
|
|
105
|
+
};
|
|
106
|
+
const usePublicApiUserRoles = () => {
|
|
107
|
+
return useFeature(import_types.Feature.USER_ROLE_PUBLIC_API);
|
|
108
|
+
};
|
|
109
|
+
const useScimIntegration = () => {
|
|
110
|
+
return useFeature(import_types.Feature.SCIM);
|
|
111
|
+
};
|
|
112
|
+
const useSyncAutomations = () => {
|
|
113
|
+
return useFeature(import_types.Feature.SYNC_AUTOMATIONS);
|
|
114
|
+
};
|
|
115
|
+
const useAppBuilders = () => {
|
|
116
|
+
return useFeature(import_types.Feature.APP_BUILDERS);
|
|
117
|
+
};
|
|
118
|
+
const useViewPermissions = () => {
|
|
119
|
+
return useFeature(import_types.Feature.VIEW_PERMISSIONS);
|
|
120
|
+
};
|
|
121
|
+
const setAutomationLogsQuota = (value) => {
|
|
122
|
+
const license = (0, import_cloneDeep.default)(UNLIMITED_LICENSE);
|
|
123
|
+
license.quotas.constant.automationLogRetentionDays.value = value;
|
|
124
|
+
return useLicense(license);
|
|
125
|
+
};
|
|
126
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
127
|
+
0 && (module.exports = {
|
|
128
|
+
init,
|
|
129
|
+
initInternal,
|
|
130
|
+
setAutomationLogsQuota,
|
|
131
|
+
useAppBuilders,
|
|
132
|
+
useAuditLogs,
|
|
133
|
+
useBackups,
|
|
134
|
+
useCloudFree,
|
|
135
|
+
useEnforceableSSO,
|
|
136
|
+
useEnvironmentVariables,
|
|
137
|
+
useGroups,
|
|
138
|
+
useLicense,
|
|
139
|
+
usePublicApiUserRoles,
|
|
140
|
+
useScimIntegration,
|
|
141
|
+
useSyncAutomations,
|
|
142
|
+
useUnlimited,
|
|
143
|
+
useViewPermissions
|
|
144
|
+
});
|
|
145
|
+
//# sourceMappingURL=licenses.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../tests/core/utilities/mocks/licenses.ts"],
|
|
4
|
+
"sourcesContent": ["import { Feature, License, Quotas } from \"@budibase/types\"\nimport cloneDeep from \"lodash/cloneDeep\"\n\nlet CLOUD_FREE_LICENSE: License\nlet UNLIMITED_LICENSE: License\nlet getCachedLicense: any\n\n// init for the packages other than pro\nexport function init(proPkg: any) {\n initInternal({\n CLOUD_FREE_LICENSE: proPkg.constants.licenses.CLOUD_FREE_LICENSE,\n UNLIMITED_LICENSE: proPkg.constants.licenses.UNLIMITED_LICENSE,\n getCachedLicense: proPkg.licensing.cache.getCachedLicense,\n })\n}\n\n// init for the pro package\nexport function initInternal(opts: {\n CLOUD_FREE_LICENSE: License\n UNLIMITED_LICENSE: License\n getCachedLicense: any\n}) {\n CLOUD_FREE_LICENSE = opts.CLOUD_FREE_LICENSE\n UNLIMITED_LICENSE = opts.UNLIMITED_LICENSE\n getCachedLicense = opts.getCachedLicense\n}\n\nexport interface UseLicenseOpts {\n features?: Feature[]\n quotas?: Quotas\n}\n\n// LICENSES\n\nexport const useLicense = (license: License, opts?: UseLicenseOpts) => {\n if (opts) {\n if (opts.features) {\n license.features.push(...opts.features)\n }\n if (opts.quotas) {\n license.quotas = opts.quotas\n }\n }\n\n getCachedLicense.mockReturnValue(license)\n\n return license\n}\n\nexport const useUnlimited = (opts?: UseLicenseOpts) => {\n return useLicense(UNLIMITED_LICENSE, opts)\n}\n\nexport const useCloudFree = () => {\n return useLicense(CLOUD_FREE_LICENSE)\n}\n\n// FEATURES\n\nconst useFeature = (feature: Feature) => {\n const license = cloneDeep(UNLIMITED_LICENSE)\n const opts: UseLicenseOpts = {\n features: [feature],\n }\n\n return useLicense(license, opts)\n}\n\nexport const useBackups = () => {\n return useFeature(Feature.APP_BACKUPS)\n}\n\nexport const useEnforceableSSO = () => {\n return useFeature(Feature.ENFORCEABLE_SSO)\n}\n\nexport const useGroups = () => {\n return useFeature(Feature.USER_GROUPS)\n}\n\nexport const useEnvironmentVariables = () => {\n return useFeature(Feature.ENVIRONMENT_VARIABLES)\n}\n\nexport const useAuditLogs = () => {\n return useFeature(Feature.AUDIT_LOGS)\n}\n\nexport const usePublicApiUserRoles = () => {\n return useFeature(Feature.USER_ROLE_PUBLIC_API)\n}\n\nexport const useScimIntegration = () => {\n return useFeature(Feature.SCIM)\n}\n\nexport const useSyncAutomations = () => {\n return useFeature(Feature.SYNC_AUTOMATIONS)\n}\n\nexport const useAppBuilders = () => {\n return useFeature(Feature.APP_BUILDERS)\n}\n\nexport const useViewPermissions = () => {\n return useFeature(Feature.VIEW_PERMISSIONS)\n}\n\n// QUOTAS\n\nexport const setAutomationLogsQuota = (value: number) => {\n const license = cloneDeep(UNLIMITED_LICENSE)\n license.quotas.constant.automationLogRetentionDays.value = value\n return useLicense(license)\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAyC;AACzC,uBAAsB;AAEtB,IAAI;AACJ,IAAI;AACJ,IAAI;AAGG,SAAS,KAAK,QAAa;AAChC,eAAa;AAAA,IACX,oBAAoB,OAAO,UAAU,SAAS;AAAA,IAC9C,mBAAmB,OAAO,UAAU,SAAS;AAAA,IAC7C,kBAAkB,OAAO,UAAU,MAAM;AAAA,EAC3C,CAAC;AACH;AAGO,SAAS,aAAa,MAI1B;AACD,uBAAqB,KAAK;AAC1B,sBAAoB,KAAK;AACzB,qBAAmB,KAAK;AAC1B;AASO,MAAM,aAAa,CAAC,SAAkB,SAA0B;AACrE,MAAI,MAAM;AACR,QAAI,KAAK,UAAU;AACjB,cAAQ,SAAS,KAAK,GAAG,KAAK,QAAQ;AAAA,IACxC;AACA,QAAI,KAAK,QAAQ;AACf,cAAQ,SAAS,KAAK;AAAA,IACxB;AAAA,EACF;AAEA,mBAAiB,gBAAgB,OAAO;AAExC,SAAO;AACT;AAEO,MAAM,eAAe,CAAC,SAA0B;AACrD,SAAO,WAAW,mBAAmB,IAAI;AAC3C;AAEO,MAAM,eAAe,MAAM;AAChC,SAAO,WAAW,kBAAkB;AACtC;AAIA,MAAM,aAAa,CAAC,YAAqB;AACvC,QAAM,cAAU,iBAAAA,SAAU,iBAAiB;AAC3C,QAAM,OAAuB;AAAA,IAC3B,UAAU,CAAC,OAAO;AAAA,EACpB;AAEA,SAAO,WAAW,SAAS,IAAI;AACjC;AAEO,MAAM,aAAa,MAAM;AAC9B,SAAO,WAAW,qBAAQ,WAAW;AACvC;AAEO,MAAM,oBAAoB,MAAM;AACrC,SAAO,WAAW,qBAAQ,eAAe;AAC3C;AAEO,MAAM,YAAY,MAAM;AAC7B,SAAO,WAAW,qBAAQ,WAAW;AACvC;AAEO,MAAM,0BAA0B,MAAM;AAC3C,SAAO,WAAW,qBAAQ,qBAAqB;AACjD;AAEO,MAAM,eAAe,MAAM;AAChC,SAAO,WAAW,qBAAQ,UAAU;AACtC;AAEO,MAAM,wBAAwB,MAAM;AACzC,SAAO,WAAW,qBAAQ,oBAAoB;AAChD;AAEO,MAAM,qBAAqB,MAAM;AACtC,SAAO,WAAW,qBAAQ,IAAI;AAChC;AAEO,MAAM,qBAAqB,MAAM;AACtC,SAAO,WAAW,qBAAQ,gBAAgB;AAC5C;AAEO,MAAM,iBAAiB,MAAM;AAClC,SAAO,WAAW,qBAAQ,YAAY;AACxC;AAEO,MAAM,qBAAqB,MAAM;AACtC,SAAO,WAAW,qBAAQ,gBAAgB;AAC5C;AAIO,MAAM,yBAAyB,CAAC,UAAkB;AACvD,QAAM,cAAU,iBAAAA,SAAU,iBAAiB;AAC3C,UAAQ,OAAO,SAAS,2BAA2B,QAAQ;AAC3D,SAAO,WAAW,OAAO;AAC3B;",
|
|
6
|
+
"names": ["cloneDeep"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../tests/core/utilities/mocks/posthog.ts"],
|
|
4
|
+
"sourcesContent": ["jest.mock(\"posthog-node\", () => {\n return jest.fn().mockImplementation(() => {\n return {\n capture: jest.fn(),\n }\n })\n})\n"],
|
|
5
|
+
"mappings": ";AAAA,KAAK,KAAK,gBAAgB,MAAM;AAC9B,SAAO,KAAK,GAAG,EAAE,mBAAmB,MAAM;AACxC,WAAO;AAAA,MACL,SAAS,KAAK,GAAG;AAAA,IACnB;AAAA,EACF,CAAC;AACH,CAAC;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var Chance_exports = {};
|
|
30
|
+
__export(Chance_exports, {
|
|
31
|
+
default: () => CustomChance
|
|
32
|
+
});
|
|
33
|
+
module.exports = __toCommonJS(Chance_exports);
|
|
34
|
+
var import_chance = __toESM(require("chance"));
|
|
35
|
+
class CustomChance extends import_chance.default {
|
|
36
|
+
arrayOf(generateFn, opts = {}) {
|
|
37
|
+
const itemCount = this.integer({
|
|
38
|
+
min: opts.min != null ? opts.min : 1,
|
|
39
|
+
max: opts.max != null ? opts.max : 50
|
|
40
|
+
});
|
|
41
|
+
const items = [];
|
|
42
|
+
for (let i = 0; i < itemCount; i++) {
|
|
43
|
+
items.push(generateFn());
|
|
44
|
+
}
|
|
45
|
+
return items;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=Chance.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../tests/core/utilities/structures/Chance.ts"],
|
|
4
|
+
"sourcesContent": ["import Chance from \"chance\"\n\nexport default class CustomChance extends Chance {\n arrayOf<T>(\n generateFn: () => T,\n opts: { min?: number; max?: number } = {}\n ): T[] {\n const itemCount = this.integer({\n min: opts.min != null ? opts.min : 1,\n max: opts.max != null ? opts.max : 50,\n })\n\n const items = []\n for (let i = 0; i < itemCount; i++) {\n items.push(generateFn())\n }\n\n return items\n }\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAAmB;AAEnB,MAAO,qBAAmC,cAAAA,QAAO;AAAA,EAC/C,QACE,YACA,OAAuC,CAAC,GACnC;AACL,UAAM,YAAY,KAAK,QAAQ;AAAA,MAC7B,KAAK,KAAK,OAAO,OAAO,KAAK,MAAM;AAAA,MACnC,KAAK,KAAK,OAAO,OAAO,KAAK,MAAM;AAAA,IACrC,CAAC;AAED,UAAM,QAAQ,CAAC;AACf,aAAS,IAAI,GAAG,IAAI,WAAW,KAAK;AAClC,YAAM,KAAK,WAAW,CAAC;AAAA,IACzB;AAEA,WAAO;AAAA,EACT;AACF;",
|
|
6
|
+
"names": ["Chance"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var accounts_exports = {};
|
|
30
|
+
__export(accounts_exports, {
|
|
31
|
+
account: () => account,
|
|
32
|
+
cloudAccount: () => cloudAccount,
|
|
33
|
+
cloudCreateAccount: () => cloudCreateAccount,
|
|
34
|
+
cloudSSOCreateAccount: () => cloudSSOCreateAccount,
|
|
35
|
+
selfCreateAccount: () => selfCreateAccount,
|
|
36
|
+
selfHostAccount: () => selfHostAccount,
|
|
37
|
+
selfSSOCreateAccount: () => selfSSOCreateAccount,
|
|
38
|
+
ssoAccount: () => ssoAccount
|
|
39
|
+
});
|
|
40
|
+
module.exports = __toCommonJS(accounts_exports);
|
|
41
|
+
var import__ = require(".");
|
|
42
|
+
var import_docIds = require("../../../../src/docIds");
|
|
43
|
+
var import_types = require("@budibase/types");
|
|
44
|
+
var import_sample = __toESM(require("lodash/sample"));
|
|
45
|
+
const account = (partial = {}) => {
|
|
46
|
+
return {
|
|
47
|
+
accountId: (0, import__.uuid)(),
|
|
48
|
+
tenantId: import__.generator.word(),
|
|
49
|
+
email: import__.generator.email(),
|
|
50
|
+
tenantName: import__.generator.word(),
|
|
51
|
+
hosting: import_types.Hosting.SELF,
|
|
52
|
+
createdAt: Date.now(),
|
|
53
|
+
verified: true,
|
|
54
|
+
verificationSent: true,
|
|
55
|
+
tier: "FREE",
|
|
56
|
+
// DEPRECATED
|
|
57
|
+
authType: import_types.AuthType.PASSWORD,
|
|
58
|
+
name: import__.generator.name(),
|
|
59
|
+
size: "10+",
|
|
60
|
+
profession: "Software Engineer",
|
|
61
|
+
quotaUsage: import__.quotas.usage(),
|
|
62
|
+
...partial
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
function selfHostAccount() {
|
|
66
|
+
return account();
|
|
67
|
+
}
|
|
68
|
+
const cloudAccount = () => {
|
|
69
|
+
return {
|
|
70
|
+
...account(),
|
|
71
|
+
hosting: import_types.Hosting.CLOUD,
|
|
72
|
+
budibaseUserId: (0, import_docIds.generateGlobalUserID)()
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
function providerType() {
|
|
76
|
+
return (0, import_sample.default)(Object.values(import_types.AccountSSOProviderType));
|
|
77
|
+
}
|
|
78
|
+
function provider() {
|
|
79
|
+
return (0, import_sample.default)(Object.values(import_types.AccountSSOProvider));
|
|
80
|
+
}
|
|
81
|
+
function ssoAccount(account2 = cloudAccount()) {
|
|
82
|
+
return {
|
|
83
|
+
...account2,
|
|
84
|
+
authType: import_types.AuthType.SSO,
|
|
85
|
+
oauth2: {
|
|
86
|
+
accessToken: import__.generator.string(),
|
|
87
|
+
refreshToken: import__.generator.string()
|
|
88
|
+
},
|
|
89
|
+
pictureUrl: import__.generator.url(),
|
|
90
|
+
provider: provider(),
|
|
91
|
+
providerType: providerType(),
|
|
92
|
+
thirdPartyProfile: {}
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
const cloudCreateAccount = {
|
|
96
|
+
email: "cloud@budibase.com",
|
|
97
|
+
tenantId: "cloud",
|
|
98
|
+
hosting: import_types.Hosting.CLOUD,
|
|
99
|
+
authType: import_types.AuthType.PASSWORD,
|
|
100
|
+
password: "Password123!",
|
|
101
|
+
tenantName: "cloud",
|
|
102
|
+
name: "Budi Armstrong",
|
|
103
|
+
size: "10+",
|
|
104
|
+
profession: "Software Engineer"
|
|
105
|
+
};
|
|
106
|
+
const cloudSSOCreateAccount = {
|
|
107
|
+
email: "cloud-sso@budibase.com",
|
|
108
|
+
tenantId: "cloud-sso",
|
|
109
|
+
hosting: import_types.Hosting.CLOUD,
|
|
110
|
+
authType: import_types.AuthType.SSO,
|
|
111
|
+
tenantName: "cloudsso",
|
|
112
|
+
name: "Budi Armstrong",
|
|
113
|
+
size: "10+",
|
|
114
|
+
profession: "Software Engineer"
|
|
115
|
+
};
|
|
116
|
+
const selfCreateAccount = {
|
|
117
|
+
email: "self@budibase.com",
|
|
118
|
+
tenantId: "self",
|
|
119
|
+
hosting: import_types.Hosting.SELF,
|
|
120
|
+
authType: import_types.AuthType.PASSWORD,
|
|
121
|
+
password: "Password123!",
|
|
122
|
+
tenantName: "self",
|
|
123
|
+
name: "Budi Armstrong",
|
|
124
|
+
size: "10+",
|
|
125
|
+
profession: "Software Engineer"
|
|
126
|
+
};
|
|
127
|
+
const selfSSOCreateAccount = {
|
|
128
|
+
email: "self-sso@budibase.com",
|
|
129
|
+
tenantId: "self-sso",
|
|
130
|
+
hosting: import_types.Hosting.SELF,
|
|
131
|
+
authType: import_types.AuthType.SSO,
|
|
132
|
+
tenantName: "selfsso",
|
|
133
|
+
name: "Budi Armstrong",
|
|
134
|
+
size: "10+",
|
|
135
|
+
profession: "Software Engineer"
|
|
136
|
+
};
|
|
137
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
138
|
+
0 && (module.exports = {
|
|
139
|
+
account,
|
|
140
|
+
cloudAccount,
|
|
141
|
+
cloudCreateAccount,
|
|
142
|
+
cloudSSOCreateAccount,
|
|
143
|
+
selfCreateAccount,
|
|
144
|
+
selfHostAccount,
|
|
145
|
+
selfSSOCreateAccount,
|
|
146
|
+
ssoAccount
|
|
147
|
+
});
|
|
148
|
+
//# sourceMappingURL=accounts.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../tests/core/utilities/structures/accounts.ts"],
|
|
4
|
+
"sourcesContent": ["import { generator, uuid, quotas } from \".\"\nimport { generateGlobalUserID } from \"../../../../src/docIds\"\nimport {\n Account,\n AccountSSOProvider,\n AccountSSOProviderType,\n AuthType,\n CloudAccount,\n Hosting,\n SSOAccount,\n CreateAccount,\n CreatePassswordAccount,\n} from \"@budibase/types\"\nimport sample from \"lodash/sample\"\n\nexport const account = (partial: Partial<Account> = {}): Account => {\n return {\n accountId: uuid(),\n tenantId: generator.word(),\n email: generator.email(),\n tenantName: generator.word(),\n hosting: Hosting.SELF,\n createdAt: Date.now(),\n verified: true,\n verificationSent: true,\n tier: \"FREE\", // DEPRECATED\n authType: AuthType.PASSWORD,\n name: generator.name(),\n size: \"10+\",\n profession: \"Software Engineer\",\n quotaUsage: quotas.usage(),\n ...partial,\n }\n}\n\nexport function selfHostAccount() {\n return account()\n}\n\nexport const cloudAccount = (): CloudAccount => {\n return {\n ...account(),\n hosting: Hosting.CLOUD,\n budibaseUserId: generateGlobalUserID(),\n }\n}\n\nfunction providerType(): AccountSSOProviderType {\n return sample(Object.values(AccountSSOProviderType)) as AccountSSOProviderType\n}\n\nfunction provider(): AccountSSOProvider {\n return sample(Object.values(AccountSSOProvider)) as AccountSSOProvider\n}\n\nexport function ssoAccount(account: Account = cloudAccount()): SSOAccount {\n return {\n ...account,\n authType: AuthType.SSO,\n oauth2: {\n accessToken: generator.string(),\n refreshToken: generator.string(),\n },\n pictureUrl: generator.url(),\n provider: provider(),\n providerType: providerType(),\n thirdPartyProfile: {},\n }\n}\n\nexport const cloudCreateAccount: CreatePassswordAccount = {\n email: \"cloud@budibase.com\",\n tenantId: \"cloud\",\n hosting: Hosting.CLOUD,\n authType: AuthType.PASSWORD,\n password: \"Password123!\",\n tenantName: \"cloud\",\n name: \"Budi Armstrong\",\n size: \"10+\",\n profession: \"Software Engineer\",\n}\n\nexport const cloudSSOCreateAccount: CreateAccount = {\n email: \"cloud-sso@budibase.com\",\n tenantId: \"cloud-sso\",\n hosting: Hosting.CLOUD,\n authType: AuthType.SSO,\n tenantName: \"cloudsso\",\n name: \"Budi Armstrong\",\n size: \"10+\",\n profession: \"Software Engineer\",\n}\n\nexport const selfCreateAccount: CreatePassswordAccount = {\n email: \"self@budibase.com\",\n tenantId: \"self\",\n hosting: Hosting.SELF,\n authType: AuthType.PASSWORD,\n password: \"Password123!\",\n tenantName: \"self\",\n name: \"Budi Armstrong\",\n size: \"10+\",\n profession: \"Software Engineer\",\n}\n\nexport const selfSSOCreateAccount: CreateAccount = {\n email: \"self-sso@budibase.com\",\n tenantId: \"self-sso\",\n hosting: Hosting.SELF,\n authType: AuthType.SSO,\n tenantName: \"selfsso\",\n name: \"Budi Armstrong\",\n size: \"10+\",\n profession: \"Software Engineer\",\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,eAAwC;AACxC,oBAAqC;AACrC,mBAUO;AACP,oBAAmB;AAEZ,MAAM,UAAU,CAAC,UAA4B,CAAC,MAAe;AAClE,SAAO;AAAA,IACL,eAAW,eAAK;AAAA,IAChB,UAAU,mBAAU,KAAK;AAAA,IACzB,OAAO,mBAAU,MAAM;AAAA,IACvB,YAAY,mBAAU,KAAK;AAAA,IAC3B,SAAS,qBAAQ;AAAA,IACjB,WAAW,KAAK,IAAI;AAAA,IACpB,UAAU;AAAA,IACV,kBAAkB;AAAA,IAClB,MAAM;AAAA;AAAA,IACN,UAAU,sBAAS;AAAA,IACnB,MAAM,mBAAU,KAAK;AAAA,IACrB,MAAM;AAAA,IACN,YAAY;AAAA,IACZ,YAAY,gBAAO,MAAM;AAAA,IACzB,GAAG;AAAA,EACL;AACF;AAEO,SAAS,kBAAkB;AAChC,SAAO,QAAQ;AACjB;AAEO,MAAM,eAAe,MAAoB;AAC9C,SAAO;AAAA,IACL,GAAG,QAAQ;AAAA,IACX,SAAS,qBAAQ;AAAA,IACjB,oBAAgB,oCAAqB;AAAA,EACvC;AACF;AAEA,SAAS,eAAuC;AAC9C,aAAO,cAAAA,SAAO,OAAO,OAAO,mCAAsB,CAAC;AACrD;AAEA,SAAS,WAA+B;AACtC,aAAO,cAAAA,SAAO,OAAO,OAAO,+BAAkB,CAAC;AACjD;AAEO,SAAS,WAAWC,WAAmB,aAAa,GAAe;AACxE,SAAO;AAAA,IACL,GAAGA;AAAA,IACH,UAAU,sBAAS;AAAA,IACnB,QAAQ;AAAA,MACN,aAAa,mBAAU,OAAO;AAAA,MAC9B,cAAc,mBAAU,OAAO;AAAA,IACjC;AAAA,IACA,YAAY,mBAAU,IAAI;AAAA,IAC1B,UAAU,SAAS;AAAA,IACnB,cAAc,aAAa;AAAA,IAC3B,mBAAmB,CAAC;AAAA,EACtB;AACF;AAEO,MAAM,qBAA6C;AAAA,EACxD,OAAO;AAAA,EACP,UAAU;AAAA,EACV,SAAS,qBAAQ;AAAA,EACjB,UAAU,sBAAS;AAAA,EACnB,UAAU;AAAA,EACV,YAAY;AAAA,EACZ,MAAM;AAAA,EACN,MAAM;AAAA,EACN,YAAY;AACd;AAEO,MAAM,wBAAuC;AAAA,EAClD,OAAO;AAAA,EACP,UAAU;AAAA,EACV,SAAS,qBAAQ;AAAA,EACjB,UAAU,sBAAS;AAAA,EACnB,YAAY;AAAA,EACZ,MAAM;AAAA,EACN,MAAM;AAAA,EACN,YAAY;AACd;AAEO,MAAM,oBAA4C;AAAA,EACvD,OAAO;AAAA,EACP,UAAU;AAAA,EACV,SAAS,qBAAQ;AAAA,EACjB,UAAU,sBAAS;AAAA,EACnB,UAAU;AAAA,EACV,YAAY;AAAA,EACZ,MAAM;AAAA,EACN,MAAM;AAAA,EACN,YAAY;AACd;AAEO,MAAM,uBAAsC;AAAA,EACjD,OAAO;AAAA,EACP,UAAU;AAAA,EACV,SAAS,qBAAQ;AAAA,EACjB,UAAU,sBAAS;AAAA,EACnB,YAAY;AAAA,EACZ,MAAM;AAAA,EACN,MAAM;AAAA,EACN,YAAY;AACd;",
|
|
6
|
+
"names": ["sample", "account"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var apps_exports = {};
|
|
20
|
+
__export(apps_exports, {
|
|
21
|
+
app: () => app
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(apps_exports);
|
|
24
|
+
var import__ = require(".");
|
|
25
|
+
var import_constants = require("../../../../src/constants");
|
|
26
|
+
function app(id) {
|
|
27
|
+
return {
|
|
28
|
+
_id: import_constants.DocumentType.APP_METADATA,
|
|
29
|
+
appId: id,
|
|
30
|
+
type: "",
|
|
31
|
+
version: "0.0.1",
|
|
32
|
+
componentLibraries: [],
|
|
33
|
+
name: import__.generator.name(),
|
|
34
|
+
url: `/custom-url`,
|
|
35
|
+
instance: {
|
|
36
|
+
_id: id
|
|
37
|
+
},
|
|
38
|
+
tenantId: import_constants.DEFAULT_TENANT_ID,
|
|
39
|
+
status: "",
|
|
40
|
+
template: void 0
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
44
|
+
0 && (module.exports = {
|
|
45
|
+
app
|
|
46
|
+
});
|
|
47
|
+
//# sourceMappingURL=apps.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../tests/core/utilities/structures/apps.ts"],
|
|
4
|
+
"sourcesContent": ["import { generator } from \".\"\nimport { App } from \"@budibase/types\"\nimport { DEFAULT_TENANT_ID, DocumentType } from \"../../../../src/constants\"\n\nexport function app(id: string): App {\n return {\n _id: DocumentType.APP_METADATA,\n appId: id,\n type: \"\",\n version: \"0.0.1\",\n componentLibraries: [],\n name: generator.name(),\n url: `/custom-url`,\n instance: {\n _id: id,\n },\n tenantId: DEFAULT_TENANT_ID,\n status: \"\",\n template: undefined,\n }\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,eAA0B;AAE1B,uBAAgD;AAEzC,SAAS,IAAI,IAAiB;AACnC,SAAO;AAAA,IACL,KAAK,8BAAa;AAAA,IAClB,OAAO;AAAA,IACP,MAAM;AAAA,IACN,SAAS;AAAA,IACT,oBAAoB,CAAC;AAAA,IACrB,MAAM,mBAAU,KAAK;AAAA,IACrB,KAAK;AAAA,IACL,UAAU;AAAA,MACR,KAAK;AAAA,IACP;AAAA,IACA,UAAU;AAAA,IACV,QAAQ;AAAA,IACR,UAAU;AAAA,EACZ;AACF;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var common_exports = {};
|
|
20
|
+
__export(common_exports, {
|
|
21
|
+
email: () => email,
|
|
22
|
+
uuid: () => import_uuid2.v4
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(common_exports);
|
|
25
|
+
var import_uuid = require("uuid");
|
|
26
|
+
var import_uuid2 = require("uuid");
|
|
27
|
+
const email = () => {
|
|
28
|
+
return `${(0, import_uuid.v4)()}@test.com`;
|
|
29
|
+
};
|
|
30
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
31
|
+
0 && (module.exports = {
|
|
32
|
+
email,
|
|
33
|
+
uuid
|
|
34
|
+
});
|
|
35
|
+
//# sourceMappingURL=common.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../tests/core/utilities/structures/common.ts"],
|
|
4
|
+
"sourcesContent": ["import { v4 as uuid } from \"uuid\"\n\nexport { v4 as uuid } from \"uuid\"\n\nexport const email = () => {\n return `${uuid()}@test.com`\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAA2B;AAE3B,IAAAA,eAA2B;AAEpB,MAAM,QAAQ,MAAM;AACzB,SAAO,OAAG,YAAAC,IAAK,CAAC;AAClB;",
|
|
6
|
+
"names": ["import_uuid", "uuid"]
|
|
7
|
+
}
|