target-supabase-sdk 0.2.0 → 0.2.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/README.md +130 -11
- package/dist/browser.d.ts +44 -36
- package/dist/browser.d.ts.map +1 -1
- package/dist/browser.js +6 -45
- package/dist/browser.js.map +1 -1
- package/dist/chunks/create-logger-DyH3mZ8p.js +1028 -0
- package/dist/chunks/create-logger-DyH3mZ8p.js.map +1 -0
- package/dist/chunks/enable-log-persist-BH-tbKEj.js +1481 -0
- package/dist/chunks/enable-log-persist-BH-tbKEj.js.map +1 -0
- package/dist/chunks/word.interface-DLgRobKV.js +1973 -0
- package/dist/chunks/word.interface-DLgRobKV.js.map +1 -0
- package/dist/command/command.api.d.ts +1 -1
- package/dist/command/command.api.d.ts.map +1 -1
- package/dist/command/command.interface.d.ts +1 -1
- package/dist/command/command.interface.d.ts.map +1 -1
- package/dist/core.api.d.ts +10 -6
- package/dist/core.api.d.ts.map +1 -1
- package/dist/core.interface.d.ts +3 -2
- package/dist/core.interface.d.ts.map +1 -1
- package/dist/core.utils.d.ts +1 -1
- package/dist/core.utils.d.ts.map +1 -1
- package/dist/idea/idea.interface.d.ts +1 -1
- package/dist/idea/idea.interface.d.ts.map +1 -1
- package/dist/link/link.api.d.ts +1 -1
- package/dist/link/link.api.d.ts.map +1 -1
- package/dist/link/link.interface.d.ts +2 -2
- package/dist/link/link.interface.d.ts.map +1 -1
- package/dist/list/list.api.d.ts +3 -1
- package/dist/list/list.api.d.ts.map +1 -1
- package/dist/list/list.interface.d.ts +2 -2
- package/dist/list/list.interface.d.ts.map +1 -1
- package/dist/node/env/env-parsers.d.ts +19 -0
- package/dist/node/env/env-parsers.d.ts.map +1 -0
- package/dist/node/env/index.d.ts +11 -0
- package/dist/node/env/index.d.ts.map +1 -0
- package/dist/node/env/init-supabase-from-env.d.ts +17 -0
- package/dist/node/env/init-supabase-from-env.d.ts.map +1 -0
- package/dist/node/env/load-env.d.ts +20 -0
- package/dist/node/env/load-env.d.ts.map +1 -0
- package/dist/node/env/project-root.d.ts +11 -0
- package/dist/node/env/project-root.d.ts.map +1 -0
- package/dist/node/env/public-base-url.d.ts +10 -0
- package/dist/node/env/public-base-url.d.ts.map +1 -0
- package/dist/node/env/require-env.d.ts +3 -0
- package/dist/node/env/require-env.d.ts.map +1 -0
- package/dist/node/fs/json-state-store.d.ts +19 -0
- package/dist/node/fs/json-state-store.d.ts.map +1 -0
- package/dist/node/fs/read-source-file.d.ts +19 -0
- package/dist/node/fs/read-source-file.d.ts.map +1 -0
- package/dist/node/node-liveness.d.ts +30 -0
- package/dist/node/node-liveness.d.ts.map +1 -0
- package/dist/node/node-runtime.base.d.ts +21 -3
- package/dist/node/node-runtime.base.d.ts.map +1 -1
- package/dist/node/node.api.d.ts +1 -1
- package/dist/node/node.api.d.ts.map +1 -1
- package/dist/node/node.interface.d.ts +1 -6
- package/dist/node/node.interface.d.ts.map +1 -1
- package/dist/node/preload/run-service-preload.d.ts +14 -0
- package/dist/node/preload/run-service-preload.d.ts.map +1 -0
- package/dist/node/preload/service-preload.interface.d.ts +15 -0
- package/dist/node/preload/service-preload.interface.d.ts.map +1 -0
- package/dist/node/process/index.d.ts +5 -0
- package/dist/node/process/index.d.ts.map +1 -0
- package/dist/node/process/managed-child-processes.d.ts +37 -0
- package/dist/node/process/managed-child-processes.d.ts.map +1 -0
- package/dist/node/process/process-spawn.d.ts +27 -0
- package/dist/node/process/process-spawn.d.ts.map +1 -0
- package/dist/node/readiness/index.d.ts +9 -0
- package/dist/node/readiness/index.d.ts.map +1 -0
- package/dist/node/readiness/poll-until.d.ts +11 -0
- package/dist/node/readiness/poll-until.d.ts.map +1 -0
- package/dist/node/readiness/readiness-checks.d.ts +22 -0
- package/dist/node/readiness/readiness-checks.d.ts.map +1 -0
- package/dist/node/readiness/readiness.types.d.ts +12 -0
- package/dist/node/readiness/readiness.types.d.ts.map +1 -0
- package/dist/node/readiness/run-readiness-checks.d.ts +4 -0
- package/dist/node/readiness/run-readiness-checks.d.ts.map +1 -0
- package/dist/node/readiness/service-ready-gate.d.ts +26 -0
- package/dist/node/readiness/service-ready-gate.d.ts.map +1 -0
- package/dist/node.d.ts +26 -12
- package/dist/node.d.ts.map +1 -1
- package/dist/node.js +2482 -18
- package/dist/node.js.map +1 -1
- package/dist/parcel/chunk-fetch-registry.d.ts +14 -0
- package/dist/parcel/chunk-fetch-registry.d.ts.map +1 -0
- package/dist/parcel/chunk-url.utils.d.ts +9 -0
- package/dist/parcel/chunk-url.utils.d.ts.map +1 -0
- package/dist/parcel/parcel-manager.d.ts +44 -20
- package/dist/parcel/parcel-manager.d.ts.map +1 -1
- package/dist/parcel/parcel.api.d.ts +306 -0
- package/dist/parcel/parcel.api.d.ts.map +1 -0
- package/dist/parcel/parcel.interface.d.ts +26 -5
- package/dist/parcel/parcel.interface.d.ts.map +1 -1
- package/dist/parcel/parcel.service.d.ts +38 -0
- package/dist/parcel/parcel.service.d.ts.map +1 -0
- package/dist/parcel/storage-provider-registry.d.ts +17 -0
- package/dist/parcel/storage-provider-registry.d.ts.map +1 -0
- package/dist/parcel/storage-provider.types.d.ts +31 -0
- package/dist/parcel/storage-provider.types.d.ts.map +1 -0
- package/dist/preload.d.ts +7 -0
- package/dist/preload.d.ts.map +1 -0
- package/dist/preload.js +47 -0
- package/dist/preload.js.map +1 -0
- package/dist/repo/repo-context.utils.d.ts.map +1 -1
- package/dist/repo/repo-manager.d.ts +1 -1
- package/dist/repo/repo-manager.d.ts.map +1 -1
- package/dist/repo/repo.api.d.ts +1 -1
- package/dist/repo/repo.api.d.ts.map +1 -1
- package/dist/repo/repo.interface.d.ts +1 -1
- package/dist/repo/repo.interface.d.ts.map +1 -1
- package/dist/repo/repo.script-loader.d.ts +3 -3
- package/dist/repo/repo.script-loader.d.ts.map +1 -1
- package/dist/service/base.interface.d.ts +54 -57
- package/dist/service/base.interface.d.ts.map +1 -1
- package/dist/service/index.d.ts +21 -0
- package/dist/service/index.d.ts.map +1 -0
- package/dist/service/service.api.d.ts +503 -0
- package/dist/service/service.api.d.ts.map +1 -0
- package/dist/service/service.interface.d.ts +36 -9
- package/dist/service/service.interface.d.ts.map +1 -1
- package/dist/shared/http/fetch-retry.d.ts +21 -0
- package/dist/shared/http/fetch-retry.d.ts.map +1 -0
- package/dist/shared/log/create-logger.d.ts +27 -0
- package/dist/shared/log/create-logger.d.ts.map +1 -0
- package/dist/shared/log/enable-log-persist.d.ts +28 -0
- package/dist/shared/log/enable-log-persist.d.ts.map +1 -0
- package/dist/shared/log/index.d.ts +6 -6
- package/dist/shared/log/index.d.ts.map +1 -1
- package/dist/shared/log/log-manager.d.ts +25 -27
- package/dist/shared/log/log-manager.d.ts.map +1 -1
- package/dist/shared/log/log-persist-batch-id.d.ts +13 -0
- package/dist/shared/log/log-persist-batch-id.d.ts.map +1 -0
- package/dist/shared/log/log-persist-flush.d.ts +8 -0
- package/dist/shared/log/log-persist-flush.d.ts.map +1 -0
- package/dist/shared/log/log-persist-hook.d.ts +6 -0
- package/dist/shared/log/log-persist-hook.d.ts.map +1 -0
- package/dist/shared/log/log-persist-logger.d.ts +15 -0
- package/dist/shared/log/log-persist-logger.d.ts.map +1 -0
- package/dist/shared/log/log-persist-registry.d.ts +18 -0
- package/dist/shared/log/log-persist-registry.d.ts.map +1 -0
- package/dist/shared/log/log-persist.config.d.ts +10 -0
- package/dist/shared/log/log-persist.config.d.ts.map +1 -0
- package/dist/shared/log/log-persist.d.ts +55 -0
- package/dist/shared/log/log-persist.d.ts.map +1 -0
- package/dist/shared/log/log-persist.interface.d.ts +116 -0
- package/dist/shared/log/log-persist.interface.d.ts.map +1 -0
- package/dist/shared/log/log-scope.d.ts +25 -18
- package/dist/shared/log/log-scope.d.ts.map +1 -1
- package/dist/shared/utils/fetch-url.d.ts +3 -0
- package/dist/shared/utils/fetch-url.d.ts.map +1 -0
- package/dist/shared/utils/network-error.d.ts +14 -0
- package/dist/shared/utils/network-error.d.ts.map +1 -0
- package/dist/shared/utils/safe-file-name.d.ts +14 -0
- package/dist/shared/utils/safe-file-name.d.ts.map +1 -0
- package/dist/shared/utils/sha256.d.ts +3 -0
- package/dist/shared/utils/sha256.d.ts.map +1 -0
- package/dist/supabase.d.ts +7 -2
- package/dist/supabase.d.ts.map +1 -1
- package/dist/task/index.d.ts +8 -7
- package/dist/task/index.d.ts.map +1 -1
- package/dist/task/local-task-registry.d.ts +1 -1
- package/dist/task/local-task-registry.d.ts.map +1 -1
- package/dist/task/task-manager.d.ts +7 -9
- package/dist/task/task-manager.d.ts.map +1 -1
- package/dist/{node → task}/task-node.d.ts +2 -3
- package/dist/task/task-node.d.ts.map +1 -0
- package/dist/task/task-post-validated.api.d.ts +19 -0
- package/dist/task/task-post-validated.api.d.ts.map +1 -0
- package/dist/task/task-post.api.d.ts +10 -5
- package/dist/task/task-post.api.d.ts.map +1 -1
- package/dist/task/task-queue.d.ts +7 -0
- package/dist/task/task-queue.d.ts.map +1 -0
- package/dist/task/task-repo-context.d.ts.map +1 -1
- package/dist/task/task-repo-validation.d.ts +2 -2
- package/dist/task/task-repo-validation.d.ts.map +1 -1
- package/dist/task/task.api.d.ts +13 -13
- package/dist/task/task.api.d.ts.map +1 -1
- package/dist/task/task.constant.d.ts +4 -0
- package/dist/task/task.constant.d.ts.map +1 -0
- package/dist/task/task.interface.d.ts +1 -1
- package/dist/task/task.interface.d.ts.map +1 -1
- package/dist/trigger/trigger-manager.d.ts +25 -0
- package/dist/trigger/trigger-manager.d.ts.map +1 -0
- package/dist/trigger/trigger-node.d.ts +23 -0
- package/dist/trigger/trigger-node.d.ts.map +1 -0
- package/dist/trigger/trigger.api.d.ts +4 -4
- package/dist/trigger/trigger.api.d.ts.map +1 -1
- package/dist/trigger/trigger.constant.d.ts +8 -0
- package/dist/trigger/trigger.constant.d.ts.map +1 -0
- package/dist/trigger/trigger.interface.d.ts +46 -2
- package/dist/trigger/trigger.interface.d.ts.map +1 -1
- package/dist/word/word.api.d.ts +1 -1
- package/dist/word/word.api.d.ts.map +1 -1
- package/dist/word/word.interface.d.ts +2 -2
- package/dist/word/word.interface.d.ts.map +1 -1
- package/package.json +84 -74
- package/src/browser.ts +144 -79
- package/src/command/command.api.ts +19 -17
- package/src/command/command.interface.ts +2 -3
- package/src/core.api.ts +466 -477
- package/src/core.interface.ts +63 -62
- package/src/core.utils.ts +64 -64
- package/src/idea/idea.interface.ts +3 -3
- package/src/link/link.api.ts +28 -30
- package/src/link/link.interface.ts +3 -4
- package/src/list/list.api.ts +50 -29
- package/src/list/list.interface.ts +3 -4
- package/src/node/env/env-parsers.ts +77 -0
- package/src/node/env/index.ts +10 -0
- package/src/node/env/init-supabase-from-env.ts +38 -0
- package/src/node/env/load-env.ts +67 -0
- package/src/node/env/project-root.ts +34 -0
- package/src/node/env/public-base-url.ts +18 -0
- package/src/node/env/require-env.ts +15 -0
- package/src/node/fs/json-state-store.ts +97 -0
- package/src/node/fs/read-source-file.ts +75 -0
- package/src/node/node-liveness.ts +80 -0
- package/src/node/node-runtime.base.ts +135 -104
- package/src/node/node.api.ts +11 -10
- package/src/node/node.interface.ts +1 -8
- package/src/node/node.utils.ts +1 -1
- package/src/node/preload/run-service-preload.ts +48 -0
- package/src/node/preload/service-preload.interface.ts +14 -0
- package/src/node/process/index.ts +8 -0
- package/src/node/process/managed-child-processes.ts +121 -0
- package/src/node/process/process-spawn.ts +61 -0
- package/src/node/readiness/index.ts +20 -0
- package/src/node/readiness/poll-until.ts +27 -0
- package/src/node/readiness/readiness-checks.ts +79 -0
- package/src/node/readiness/readiness.types.ts +13 -0
- package/src/node/readiness/run-readiness-checks.ts +20 -0
- package/src/node/readiness/service-ready-gate.ts +65 -0
- package/src/node.ts +138 -47
- package/src/parcel/chunk-fetch-registry.ts +96 -0
- package/src/parcel/chunk-url.utils.ts +30 -0
- package/src/parcel/parcel-manager.ts +431 -173
- package/src/parcel/parcel.api.ts +103 -0
- package/src/parcel/parcel.interface.ts +44 -23
- package/src/parcel/parcel.service.ts +79 -0
- package/src/parcel/storage-provider-registry.ts +49 -0
- package/src/parcel/storage-provider.types.ts +45 -0
- package/src/preload.ts +7 -0
- package/src/repo/repo-context.utils.ts +3 -4
- package/src/repo/repo-manager.ts +7 -20
- package/src/repo/repo.api.ts +5 -5
- package/src/repo/repo.interface.ts +1 -2
- package/src/repo/repo.script-loader.ts +4 -8
- package/src/service/base.interface.ts +81 -90
- package/src/service/index.ts +173 -0
- package/src/service/service.api.ts +294 -0
- package/src/service/service.interface.ts +49 -17
- package/src/shared/http/fetch-retry.ts +145 -0
- package/src/shared/log/create-logger.ts +51 -0
- package/src/shared/log/enable-log-persist.ts +225 -0
- package/src/shared/log/index.ts +19 -11
- package/src/shared/log/log-manager.ts +65 -69
- package/src/shared/log/log-persist-batch-id.ts +43 -0
- package/src/shared/log/log-persist-flush.ts +128 -0
- package/src/shared/log/log-persist-hook.ts +13 -0
- package/src/shared/log/log-persist-logger.ts +33 -0
- package/src/shared/log/log-persist-registry.ts +252 -0
- package/src/shared/log/log-persist.config.ts +97 -0
- package/src/shared/log/log-persist.interface.ts +132 -0
- package/src/shared/log/log-persist.ts +704 -0
- package/src/shared/log/log-scope.ts +46 -46
- package/src/shared/utils/config-path.utils.ts +1 -1
- package/src/shared/utils/fetch-url.ts +13 -0
- package/src/shared/utils/network-error.ts +152 -0
- package/src/shared/utils/safe-file-name.ts +37 -0
- package/src/shared/utils/sha256.ts +15 -0
- package/src/supabase.ts +125 -119
- package/src/task/index.ts +31 -34
- package/src/task/local-task-registry.ts +9 -17
- package/src/task/task-manager.ts +34 -35
- package/src/{node → task}/task-node.ts +91 -73
- package/src/task/task-post-validated.api.ts +47 -0
- package/src/task/task-post.api.ts +81 -98
- package/src/task/task-queue.ts +18 -0
- package/src/task/task-repo-context.ts +2 -1
- package/src/task/task-repo-validation.ts +6 -8
- package/src/task/task.api.ts +61 -25
- package/src/task/task.constant.ts +4 -0
- package/src/task/task.interface.ts +4 -7
- package/src/trigger/trigger-manager.ts +287 -0
- package/src/trigger/trigger-node.ts +80 -0
- package/src/trigger/trigger.api.ts +11 -11
- package/src/trigger/trigger.constant.ts +10 -0
- package/src/trigger/trigger.interface.ts +52 -2
- package/src/trigger/trigger.utils.ts +1 -1
- package/src/word/word.api.ts +28 -30
- package/src/word/word.interface.ts +3 -4
- package/dist/auth/auth.api.d.ts +0 -28
- package/dist/auth/auth.api.d.ts.map +0 -1
- package/dist/auth/auth.api.js +0 -51
- package/dist/auth/auth.api.js.map +0 -1
- package/dist/command/command.api.js +0 -58
- package/dist/command/command.api.js.map +0 -1
- package/dist/command/command.interface.js +0 -9
- package/dist/command/command.interface.js.map +0 -1
- package/dist/core.api.js +0 -412
- package/dist/core.api.js.map +0 -1
- package/dist/core.interface.js +0 -46
- package/dist/core.interface.js.map +0 -1
- package/dist/core.utils.js +0 -81
- package/dist/core.utils.js.map +0 -1
- package/dist/feed/feed.interface.d.ts +0 -27
- package/dist/feed/feed.interface.d.ts.map +0 -1
- package/dist/feed/feed.interface.js +0 -17
- package/dist/feed/feed.interface.js.map +0 -1
- package/dist/file/file-manager.d.ts +0 -24
- package/dist/file/file-manager.d.ts.map +0 -1
- package/dist/file/file-manager.js +0 -109
- package/dist/file/file-manager.js.map +0 -1
- package/dist/file/file.api.d.ts +0 -15
- package/dist/file/file.api.d.ts.map +0 -1
- package/dist/file/file.api.js +0 -30
- package/dist/file/file.api.js.map +0 -1
- package/dist/file/file.interface.d.ts +0 -25
- package/dist/file/file.interface.d.ts.map +0 -1
- package/dist/file/file.interface.js +0 -9
- package/dist/file/file.interface.js.map +0 -1
- package/dist/file-list/file-list.api.d.ts +0 -15
- package/dist/file-list/file-list.api.d.ts.map +0 -1
- package/dist/file-list/file-list.api.js +0 -54
- package/dist/file-list/file-list.api.js.map +0 -1
- package/dist/file-list/file-list.interface.d.ts +0 -22
- package/dist/file-list/file-list.interface.d.ts.map +0 -1
- package/dist/file-list/file-list.interface.js +0 -5
- package/dist/file-list/file-list.interface.js.map +0 -1
- package/dist/idea/idea.interface.js +0 -15
- package/dist/idea/idea.interface.js.map +0 -1
- package/dist/index.js +0 -3
- package/dist/index.js.map +0 -1
- package/dist/link/link.api.js +0 -30
- package/dist/link/link.api.js.map +0 -1
- package/dist/link/link.interface.js +0 -7
- package/dist/link/link.interface.js.map +0 -1
- package/dist/list/list.api.js +0 -30
- package/dist/list/list.api.js.map +0 -1
- package/dist/list/list.interface.js +0 -6
- package/dist/list/list.interface.js.map +0 -1
- package/dist/node/node-log-scope.d.ts +0 -11
- package/dist/node/node-log-scope.d.ts.map +0 -1
- package/dist/node/node-log-scope.js +0 -7
- package/dist/node/node-log-scope.js.map +0 -1
- package/dist/node/node-runtime.base.js +0 -397
- package/dist/node/node-runtime.base.js.map +0 -1
- package/dist/node/node-task.preset.d.ts +0 -1
- package/dist/node/node-task.preset.d.ts.map +0 -1
- package/dist/node/node-task.preset.js +0 -14
- package/dist/node/node-task.preset.js.map +0 -1
- package/dist/node/node.api.js +0 -100
- package/dist/node/node.api.js.map +0 -1
- package/dist/node/node.interface.js +0 -19
- package/dist/node/node.interface.js.map +0 -1
- package/dist/node/node.utils.js +0 -36
- package/dist/node/node.utils.js.map +0 -1
- package/dist/node/task-node.d.ts.map +0 -1
- package/dist/node/task-node.js +0 -245
- package/dist/node/task-node.js.map +0 -1
- package/dist/node/trigger-node.d.ts +0 -18
- package/dist/node/trigger-node.d.ts.map +0 -1
- package/dist/node/trigger-node.js +0 -150
- package/dist/node/trigger-node.js.map +0 -1
- package/dist/parcel/parcel-manager.js +0 -156
- package/dist/parcel/parcel-manager.js.map +0 -1
- package/dist/parcel/parcel.interface.js +0 -11
- package/dist/parcel/parcel.interface.js.map +0 -1
- package/dist/question-list/question-list.api.d.ts +0 -13
- package/dist/question-list/question-list.api.d.ts.map +0 -1
- package/dist/question-list/question-list.api.js +0 -35
- package/dist/question-list/question-list.api.js.map +0 -1
- package/dist/question-list/question-list.interface.d.ts +0 -18
- package/dist/question-list/question-list.interface.d.ts.map +0 -1
- package/dist/question-list/question-list.interface.js +0 -5
- package/dist/question-list/question-list.interface.js.map +0 -1
- package/dist/repo/repo-context.utils.js +0 -81
- package/dist/repo/repo-context.utils.js.map +0 -1
- package/dist/repo/repo-manager.js +0 -166
- package/dist/repo/repo-manager.js.map +0 -1
- package/dist/repo/repo.api.js +0 -40
- package/dist/repo/repo.api.js.map +0 -1
- package/dist/repo/repo.interface.js +0 -8
- package/dist/repo/repo.interface.js.map +0 -1
- package/dist/repo/repo.script-loader.js +0 -108
- package/dist/repo/repo.script-loader.js.map +0 -1
- package/dist/review/review.api.d.ts +0 -14
- package/dist/review/review.api.d.ts.map +0 -1
- package/dist/review/review.api.js +0 -133
- package/dist/review/review.api.js.map +0 -1
- package/dist/review/review.interface.d.ts +0 -24
- package/dist/review/review.interface.d.ts.map +0 -1
- package/dist/review/review.interface.js +0 -10
- package/dist/review/review.interface.js.map +0 -1
- package/dist/review-v2/apis/post-review-setting.api.d.ts +0 -12
- package/dist/review-v2/apis/post-review-setting.api.d.ts.map +0 -1
- package/dist/review-v2/apis/post-review-setting.api.js +0 -27
- package/dist/review-v2/apis/post-review-setting.api.js.map +0 -1
- package/dist/review-v2/apis/post-review.api.d.ts +0 -13
- package/dist/review-v2/apis/post-review.api.d.ts.map +0 -1
- package/dist/review-v2/apis/post-review.api.js +0 -46
- package/dist/review-v2/apis/post-review.api.js.map +0 -1
- package/dist/review-v2/review-setting.interface.d.ts +0 -23
- package/dist/review-v2/review-setting.interface.d.ts.map +0 -1
- package/dist/review-v2/review-setting.interface.js +0 -5
- package/dist/review-v2/review-setting.interface.js.map +0 -1
- package/dist/review-v2/review.interface.d.ts +0 -20
- package/dist/review-v2/review.interface.d.ts.map +0 -1
- package/dist/review-v2/review.interface.js +0 -5
- package/dist/review-v2/review.interface.js.map +0 -1
- package/dist/service/api.interface.d.ts +0 -35
- package/dist/service/api.interface.d.ts.map +0 -1
- package/dist/service/api.interface.js +0 -12
- package/dist/service/api.interface.js.map +0 -1
- package/dist/service/base.interface.js +0 -7
- package/dist/service/base.interface.js.map +0 -1
- package/dist/service/service.interface.js +0 -11
- package/dist/service/service.interface.js.map +0 -1
- package/dist/shared/log/create-api-logger.d.ts +0 -21
- package/dist/shared/log/create-api-logger.d.ts.map +0 -1
- package/dist/shared/log/create-api-logger.js +0 -19
- package/dist/shared/log/create-api-logger.js.map +0 -1
- package/dist/shared/log/index.js +0 -10
- package/dist/shared/log/index.js.map +0 -1
- package/dist/shared/log/log-manager.js +0 -237
- package/dist/shared/log/log-manager.js.map +0 -1
- package/dist/shared/log/log-scope.js +0 -70
- package/dist/shared/log/log-scope.js.map +0 -1
- package/dist/shared/utils/config-path.utils.js +0 -85
- package/dist/shared/utils/config-path.utils.js.map +0 -1
- package/dist/shared/utils/error.utils.js +0 -15
- package/dist/shared/utils/error.utils.js.map +0 -1
- package/dist/shared/utils/id.utils.js +0 -5
- package/dist/shared/utils/id.utils.js.map +0 -1
- package/dist/supabase.js +0 -100
- package/dist/supabase.js.map +0 -1
- package/dist/task/index.js +0 -14
- package/dist/task/index.js.map +0 -1
- package/dist/task/local-task-registry.js +0 -214
- package/dist/task/local-task-registry.js.map +0 -1
- package/dist/task/task-manager.js +0 -196
- package/dist/task/task-manager.js.map +0 -1
- package/dist/task/task-post.api.js +0 -91
- package/dist/task/task-post.api.js.map +0 -1
- package/dist/task/task-repo-context.js +0 -12
- package/dist/task/task-repo-context.js.map +0 -1
- package/dist/task/task-repo-validation.js +0 -96
- package/dist/task/task-repo-validation.js.map +0 -1
- package/dist/task/task.api.js +0 -303
- package/dist/task/task.api.js.map +0 -1
- package/dist/task/task.interface.js +0 -36
- package/dist/task/task.interface.js.map +0 -1
- package/dist/task/task.utils.js +0 -2
- package/dist/task/task.utils.js.map +0 -1
- package/dist/trigger/trigger.api.js +0 -125
- package/dist/trigger/trigger.api.js.map +0 -1
- package/dist/trigger/trigger.interface.js +0 -11
- package/dist/trigger/trigger.interface.js.map +0 -1
- package/dist/trigger/trigger.utils.js +0 -39
- package/dist/trigger/trigger.utils.js.map +0 -1
- package/dist/word/word.api.js +0 -30
- package/dist/word/word.api.js.map +0 -1
- package/dist/word/word.interface.js +0 -6
- package/dist/word/word.interface.js.map +0 -1
- package/src/auth/auth.api.ts +0 -87
- package/src/feed/feed.interface.ts +0 -33
- package/src/file/file-manager.ts +0 -145
- package/src/file/file.api.ts +0 -43
- package/src/file/file.interface.ts +0 -30
- package/src/file-list/file-list.api.ts +0 -64
- package/src/file-list/file-list.interface.ts +0 -24
- package/src/node/node-log-scope.ts +0 -15
- package/src/node/node-task.preset.ts +0 -13
- package/src/node/trigger-node.ts +0 -180
- package/src/question-list/question-list.api.ts +0 -42
- package/src/question-list/question-list.interface.ts +0 -21
- package/src/review/review.api.ts +0 -145
- package/src/review/review.interface.ts +0 -26
- package/src/review-v2/apis/post-review-setting.api.ts +0 -35
- package/src/review-v2/apis/post-review.api.ts +0 -59
- package/src/review-v2/review-setting.interface.ts +0 -26
- package/src/review-v2/review.interface.ts +0 -23
- package/src/service/api.interface.ts +0 -47
- package/src/shared/log/create-api-logger.ts +0 -36
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Target } from "../core.interface";
|
|
2
|
-
|
|
3
|
-
export interface Question {
|
|
4
|
-
ans: string;
|
|
5
|
-
reminder: string;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export type QuestionListDetails = {
|
|
9
|
-
/** Human readable name, should be same to Target.name */
|
|
10
|
-
name: string;
|
|
11
|
-
list: Question[];
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
export enum CategoryQuestionList {
|
|
15
|
-
QUESTION_LIST = "question-list",
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export interface QuestionList extends Target {
|
|
19
|
-
category: CategoryQuestionList;
|
|
20
|
-
details: QuestionListDetails;
|
|
21
|
-
}
|
package/src/review/review.api.ts
DELETED
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
import { cloneDeep } from "lodash-es";
|
|
2
|
-
import { createTarget, getPossibleTarget, updateTargetDetails } from "../core.api";
|
|
3
|
-
import { generateResponse } from "../core.interface";
|
|
4
|
-
import { BaseValidator } from "../core.utils";
|
|
5
|
-
import { CategoryReview, Review, ReviewDetails } from "./review.interface";
|
|
6
|
-
|
|
7
|
-
class PatchUpsertReviewValidator extends BaseValidator<ReviewDetails> {
|
|
8
|
-
protected requiredFields: (keyof ReviewDetails)[] = ["reviewTargetId", "reviewDomain", "reviewResult"];
|
|
9
|
-
protected optionalFields: (keyof ReviewDetails)[] = [];
|
|
10
|
-
protected ignoredFields: (keyof ReviewDetails)[] = ["reviewCount", "lastUpdated"];
|
|
11
|
-
|
|
12
|
-
constructor() {
|
|
13
|
-
super();
|
|
14
|
-
// Add custom
|
|
15
|
-
this.addCustomValidator((val) => {
|
|
16
|
-
if (val.reviewResult == null || Object.values(val.reviewResult).some((v) => typeof v !== "number")) {
|
|
17
|
-
return "[Check reviewResult] reviewResult invalid";
|
|
18
|
-
}
|
|
19
|
-
return true;
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export const patchUpsertReview = async (payload: ReviewDetails) => {
|
|
25
|
-
const validPayload = new PatchUpsertReviewValidator().validate(payload);
|
|
26
|
-
const { reviewTargetId, reviewDomain } = validPayload;
|
|
27
|
-
|
|
28
|
-
// Check redundancy
|
|
29
|
-
const { data: possibleReview } = await getPossibleTarget({
|
|
30
|
-
filterList: [
|
|
31
|
-
{
|
|
32
|
-
field: "category",
|
|
33
|
-
operator: "eq",
|
|
34
|
-
value: CategoryReview.REVIEW,
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
field: "details->>reviewTargetId",
|
|
38
|
-
operator: "eq",
|
|
39
|
-
value: reviewTargetId,
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
field: "details->>reviewDomain",
|
|
43
|
-
operator: "eq",
|
|
44
|
-
value: reviewDomain,
|
|
45
|
-
},
|
|
46
|
-
],
|
|
47
|
-
});
|
|
48
|
-
|
|
49
|
-
if (possibleReview != null) {
|
|
50
|
-
const existingReview = possibleReview as Review;
|
|
51
|
-
const id = existingReview.id;
|
|
52
|
-
// Update
|
|
53
|
-
const data = await updateTargetDetails<Review, ReviewDetails>({
|
|
54
|
-
id,
|
|
55
|
-
updateFn: (details) => {
|
|
56
|
-
const incrementResult = validPayload.reviewResult;
|
|
57
|
-
if (incrementResult != null) {
|
|
58
|
-
const updatedResult = details.reviewResult != null ? cloneDeep(details.reviewResult) : {};
|
|
59
|
-
Object.entries(incrementResult).forEach(([key, value]) => {
|
|
60
|
-
updatedResult[key] = (updatedResult[key] ?? 0) + value;
|
|
61
|
-
});
|
|
62
|
-
return {
|
|
63
|
-
...details,
|
|
64
|
-
reviewResult: updatedResult,
|
|
65
|
-
reviewCount: (details.reviewCount ?? 0) + 1,
|
|
66
|
-
lastUpdated: Date.now(),
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
return details;
|
|
70
|
-
},
|
|
71
|
-
});
|
|
72
|
-
return generateResponse.success<Review>(data);
|
|
73
|
-
}
|
|
74
|
-
// Create
|
|
75
|
-
const { data: newReview } = await postReview({
|
|
76
|
-
reviewTargetId,
|
|
77
|
-
reviewDomain,
|
|
78
|
-
});
|
|
79
|
-
if (newReview == null) {
|
|
80
|
-
const msg = "[patchUpsertReview] Unable to create Review";
|
|
81
|
-
console.error(msg);
|
|
82
|
-
throw new Error(msg);
|
|
83
|
-
}
|
|
84
|
-
return generateResponse.success<Review>(newReview);
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
export interface PostReviewPayload {
|
|
88
|
-
reviewTargetId: ReviewDetails["reviewTargetId"];
|
|
89
|
-
reviewDomain: ReviewDetails["reviewDomain"];
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
export class PostReviewValidator extends BaseValidator<PostReviewPayload> {
|
|
93
|
-
protected requiredFields: (keyof PostReviewPayload)[] = ["reviewTargetId", "reviewDomain"];
|
|
94
|
-
protected optionalFields: (keyof PostReviewPayload)[] = [];
|
|
95
|
-
|
|
96
|
-
constructor() {
|
|
97
|
-
super();
|
|
98
|
-
// Add custom
|
|
99
|
-
this.addCustomValidator((val) => {
|
|
100
|
-
return true;
|
|
101
|
-
});
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
export const postReview = async (payload: PostReviewPayload) => {
|
|
106
|
-
return createTarget<Review, PostReviewPayload>({
|
|
107
|
-
payload: payload,
|
|
108
|
-
validator: PostReviewValidator,
|
|
109
|
-
checkRedundancyFilterList: [
|
|
110
|
-
{
|
|
111
|
-
field: "category",
|
|
112
|
-
operator: "eq",
|
|
113
|
-
value: CategoryReview.REVIEW,
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
field: "details->>reviewTargetId",
|
|
117
|
-
operator: "eq",
|
|
118
|
-
value: payload.reviewTargetId,
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
field: "details->>reviewDomain",
|
|
122
|
-
operator: "eq",
|
|
123
|
-
value: payload.reviewDomain,
|
|
124
|
-
},
|
|
125
|
-
],
|
|
126
|
-
createFn: (validPayload) => {
|
|
127
|
-
const { reviewTargetId, reviewDomain } = validPayload;
|
|
128
|
-
const details: ReviewDetails = {
|
|
129
|
-
reviewTargetId,
|
|
130
|
-
reviewDomain,
|
|
131
|
-
lastUpdated: Date.now(),
|
|
132
|
-
reviewCount: 0,
|
|
133
|
-
reviewResult: {},
|
|
134
|
-
};
|
|
135
|
-
const reviewStr = `Review ${reviewTargetId} ${reviewDomain}`;
|
|
136
|
-
return {
|
|
137
|
-
name: reviewStr,
|
|
138
|
-
category: CategoryReview.REVIEW,
|
|
139
|
-
value: "",
|
|
140
|
-
tagList: [],
|
|
141
|
-
details,
|
|
142
|
-
};
|
|
143
|
-
},
|
|
144
|
-
});
|
|
145
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { Target } from "../core.interface";
|
|
2
|
-
|
|
3
|
-
export enum ReviewDomain {
|
|
4
|
-
/** the larger the number, the more popular it is */
|
|
5
|
-
LIKES = "likes",
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export type ReviewDetails = {
|
|
9
|
-
reviewTargetId: string;
|
|
10
|
-
lastUpdated: number;
|
|
11
|
-
reviewDomain: ReviewDomain;
|
|
12
|
-
/** Auto increment */
|
|
13
|
-
reviewCount?: number;
|
|
14
|
-
reviewResult?: {
|
|
15
|
-
/** reviewDomain */
|
|
16
|
-
[name: string]: number;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
export enum CategoryReview {
|
|
21
|
-
REVIEW = "review",
|
|
22
|
-
}
|
|
23
|
-
export interface Review extends Target {
|
|
24
|
-
category: CategoryReview;
|
|
25
|
-
details: ReviewDetails;
|
|
26
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { createTarget, validateWith } from "../../core.api";
|
|
2
|
-
import { BaseValidator } from "../../core.utils";
|
|
3
|
-
import { ReviewSettingDetails, ReviewSetting, CategoryReviewSetting } from "../review-setting.interface";
|
|
4
|
-
|
|
5
|
-
export interface PostReviewSettingPayload {
|
|
6
|
-
name: ReviewSettingDetails["name"];
|
|
7
|
-
questionList: ReviewSettingDetails["questionList"];
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export class PostReviewSettingValidator extends BaseValidator<PostReviewSettingPayload> {
|
|
11
|
-
protected requiredFields: (keyof PostReviewSettingPayload)[] = ["name", "questionList"];
|
|
12
|
-
protected optionalFields: (keyof PostReviewSettingPayload)[] = [];
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export const postReviewSetting = validateWith<PostReviewSettingPayload, PostReviewSettingValidator>(
|
|
16
|
-
PostReviewSettingValidator
|
|
17
|
-
)(async (validPayload) => {
|
|
18
|
-
return createTarget<ReviewSetting, PostReviewSettingPayload>({
|
|
19
|
-
payload: validPayload,
|
|
20
|
-
createFn: (validPayload) => {
|
|
21
|
-
const { name, questionList } = validPayload;
|
|
22
|
-
const details: ReviewSettingDetails = {
|
|
23
|
-
name,
|
|
24
|
-
questionList,
|
|
25
|
-
};
|
|
26
|
-
return {
|
|
27
|
-
name,
|
|
28
|
-
category: CategoryReviewSetting.REVIEW_SETTING,
|
|
29
|
-
value: "",
|
|
30
|
-
tagList: [],
|
|
31
|
-
details,
|
|
32
|
-
};
|
|
33
|
-
},
|
|
34
|
-
});
|
|
35
|
-
});
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { createTarget, getTarget, validateWith } from "../../core.api";
|
|
2
|
-
import { BaseValidator } from "../../core.utils";
|
|
3
|
-
import { CategoryReview, ReviewV2 as Review, ReviewV2Details as ReviewDetails } from "../review.interface";
|
|
4
|
-
import { ReviewSetting } from "../review-setting.interface";
|
|
5
|
-
|
|
6
|
-
export interface PostReviewPayload {
|
|
7
|
-
targetId: ReviewDetails["targetId"];
|
|
8
|
-
settingId: ReviewDetails["settingId"];
|
|
9
|
-
resultList: ReviewDetails["resultList"];
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export class PostReviewValidator extends BaseValidator<PostReviewPayload> {
|
|
13
|
-
protected requiredFields: (keyof PostReviewPayload)[] = ["targetId", "targetId", "resultList"];
|
|
14
|
-
protected optionalFields: (keyof PostReviewPayload)[] = [];
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export const postReview = validateWith<PostReviewPayload, PostReviewValidator>(PostReviewValidator)(
|
|
18
|
-
async (validPayload: PostReviewPayload) => {
|
|
19
|
-
const { targetId, settingId, resultList } = validPayload;
|
|
20
|
-
|
|
21
|
-
// Check Target
|
|
22
|
-
if (targetId != null) {
|
|
23
|
-
const { data: possibleTarget } = await getTarget({
|
|
24
|
-
id: targetId,
|
|
25
|
-
});
|
|
26
|
-
// TODO
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
// Check ReviewSetting
|
|
30
|
-
const { data: _reviewSetting } = await getTarget({
|
|
31
|
-
id: settingId,
|
|
32
|
-
});
|
|
33
|
-
if (_reviewSetting == null) {
|
|
34
|
-
console.error("[postReview] ReviewSetting not found");
|
|
35
|
-
throw new Error("[postReview] ReviewSetting not found");
|
|
36
|
-
}
|
|
37
|
-
const reviewSetting = _reviewSetting as ReviewSetting;
|
|
38
|
-
|
|
39
|
-
return createTarget<Review, PostReviewPayload>({
|
|
40
|
-
payload: validPayload,
|
|
41
|
-
createFn: (validPayload) => {
|
|
42
|
-
const { targetId, settingId, resultList } = validPayload;
|
|
43
|
-
const details: ReviewDetails = {
|
|
44
|
-
targetId,
|
|
45
|
-
settingId,
|
|
46
|
-
resultList,
|
|
47
|
-
};
|
|
48
|
-
const name = `Review on ${reviewSetting?.details?.name}`;
|
|
49
|
-
return {
|
|
50
|
-
name,
|
|
51
|
-
category: CategoryReview.REVIEW,
|
|
52
|
-
value: "",
|
|
53
|
-
tagList: [],
|
|
54
|
-
details,
|
|
55
|
-
};
|
|
56
|
-
},
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
);
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { Target } from "../core.interface";
|
|
2
|
-
|
|
3
|
-
export interface ReviewSetting extends Target {
|
|
4
|
-
category: CategoryReviewSetting;
|
|
5
|
-
details: ReviewSettingDetails;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export enum CategoryReviewSetting {
|
|
9
|
-
REVIEW_SETTING = "review-setting",
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export type ReviewSettingDetails = {
|
|
13
|
-
name: string;
|
|
14
|
-
questionList: ReviewQuestion[];
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
export interface ReviewQuestion {
|
|
18
|
-
title: string;
|
|
19
|
-
/** uuid */
|
|
20
|
-
key: string;
|
|
21
|
-
type: "$boolean" | "$text" | "$number" | "$choice" | "$custom";
|
|
22
|
-
/** To provide data when rendering a question */
|
|
23
|
-
refTargetId?: string;
|
|
24
|
-
/** To render a custom question */
|
|
25
|
-
customTargetId?: string;
|
|
26
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Target } from "../core.interface";
|
|
2
|
-
import { ReviewQuestion } from "./review-setting.interface";
|
|
3
|
-
|
|
4
|
-
/** Instance of ReviewSetting */
|
|
5
|
-
export interface ReviewV2 extends Target {
|
|
6
|
-
category: CategoryReview;
|
|
7
|
-
details: ReviewV2Details;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export enum CategoryReview {
|
|
11
|
-
REVIEW = "review",
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export type ReviewV2Details = {
|
|
15
|
-
targetId: string | null;
|
|
16
|
-
/** How to collect reviews from users and how to parse the results */
|
|
17
|
-
settingId: string;
|
|
18
|
-
resultList: ReviewResult[];
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
export interface ReviewResult extends ReviewQuestion {
|
|
22
|
-
answer: unknown;
|
|
23
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { Target } from "../core.interface";
|
|
2
|
-
import { Field, Lifecycle } from "./base.interface";
|
|
3
|
-
|
|
4
|
-
export interface Api extends Target {
|
|
5
|
-
/** "core.post.target.0" 唯一键 领域 + METHOD + content + VERSION */
|
|
6
|
-
value: string;
|
|
7
|
-
category: CategoryApi;
|
|
8
|
-
details: ApiDetails;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export enum CategoryApi {
|
|
12
|
-
API = "api",
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export enum ApiMethod {
|
|
16
|
-
POST = "POST",
|
|
17
|
-
GET = "GET",
|
|
18
|
-
PUT = "PUT",
|
|
19
|
-
DELETE = "DELETE",
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export interface ApiDetails {
|
|
23
|
-
method: ApiMethod;
|
|
24
|
-
/** /v0/core/target */
|
|
25
|
-
path: string;
|
|
26
|
-
request: {
|
|
27
|
-
query: {
|
|
28
|
-
[key: string]: Field;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
response: {
|
|
32
|
-
"200": { [key: string]: Field };
|
|
33
|
-
};
|
|
34
|
-
manifestVersion: number;
|
|
35
|
-
lifecycle: Lifecycle;
|
|
36
|
-
/** TODO "application/octet-stream" */
|
|
37
|
-
// contentType: string;
|
|
38
|
-
/** TODO "application/json" */
|
|
39
|
-
// responseType: string;
|
|
40
|
-
/** TODO 安全模型/ 风控 / 限制 / 可观测性 & 审计 */
|
|
41
|
-
// auth: unknown;
|
|
42
|
-
// rate_limit: {
|
|
43
|
-
// key: "user_id";
|
|
44
|
-
// limit: 60;
|
|
45
|
-
// window: "1m";
|
|
46
|
-
// };
|
|
47
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { logManager, type LoggerWithScope } from "./log-manager";
|
|
2
|
-
import { normalizeScope, type LogScope, type LogScopePatch } from "./log-scope";
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Options for {@link createApiLogger}.
|
|
6
|
-
*
|
|
7
|
-
* - **Trace:** optional `traceId` / `traceParentId` (generated root when traceId omitted)
|
|
8
|
-
* - **Labels:** optional `labels` (e.g. `{ nodeId }`)
|
|
9
|
-
*/
|
|
10
|
-
export type CreateApiLoggerOptions = {
|
|
11
|
-
traceId?: string;
|
|
12
|
-
traceParentId?: string | null;
|
|
13
|
-
labels?: Record<string, string>;
|
|
14
|
-
} & Partial<Omit<LogScope, "module" | "traceId" | "traceParentId" | "labels">>;
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Logger for one SDK API invocation.
|
|
18
|
-
*
|
|
19
|
-
* Binds `module` + normalized {@link LogScope}.
|
|
20
|
-
*/
|
|
21
|
-
export function createApiLogger(module: string, options?: CreateApiLoggerOptions): LoggerWithScope {
|
|
22
|
-
const { traceId, traceParentId, labels, ...rest } = options ?? {};
|
|
23
|
-
const scope = normalizeScope(
|
|
24
|
-
{
|
|
25
|
-
module,
|
|
26
|
-
traceId,
|
|
27
|
-
traceParentId: traceParentId ?? null,
|
|
28
|
-
labels,
|
|
29
|
-
...rest,
|
|
30
|
-
},
|
|
31
|
-
{ generateTraceId: true }
|
|
32
|
-
);
|
|
33
|
-
return logManager.withScope(scope).logger;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export type { LogScopePatch };
|