@voxgig/sdkgen-langpack 0.0.1
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/.sdk/model/target/dart.aon +63 -0
- package/.sdk/model/target/haskell.aon +72 -0
- package/.sdk/model/target/lean.aon +91 -0
- package/.sdk/src/cmp/dart/Config_dart.ts +248 -0
- package/.sdk/src/cmp/dart/EntityBase_dart.ts +34 -0
- package/.sdk/src/cmp/dart/EntityOperation_dart.ts +43 -0
- package/.sdk/src/cmp/dart/EntityTypes_dart.ts +207 -0
- package/.sdk/src/cmp/dart/Entity_dart.ts +87 -0
- package/.sdk/src/cmp/dart/Gitignore_dart.ts +34 -0
- package/.sdk/src/cmp/dart/MainEntity_dart.ts +33 -0
- package/.sdk/src/cmp/dart/Main_dart.ts +178 -0
- package/.sdk/src/cmp/dart/Package_dart.ts +82 -0
- package/.sdk/src/cmp/dart/ReadmeEntity_dart.ts +177 -0
- package/.sdk/src/cmp/dart/ReadmeExamplesTest_dart.ts +238 -0
- package/.sdk/src/cmp/dart/ReadmeExplanation_dart.ts +53 -0
- package/.sdk/src/cmp/dart/ReadmeHowto_dart.ts +152 -0
- package/.sdk/src/cmp/dart/ReadmeInstall_dart.ts +59 -0
- package/.sdk/src/cmp/dart/ReadmeIntro_dart.ts +65 -0
- package/.sdk/src/cmp/dart/ReadmeModel_dart.ts +151 -0
- package/.sdk/src/cmp/dart/ReadmeOptions_dart.ts +63 -0
- package/.sdk/src/cmp/dart/ReadmeQuick_dart.ts +225 -0
- package/.sdk/src/cmp/dart/ReadmeRef_dart.ts +397 -0
- package/.sdk/src/cmp/dart/ReadmeTopHowto_dart.ts +24 -0
- package/.sdk/src/cmp/dart/ReadmeTopQuick_dart.ts +106 -0
- package/.sdk/src/cmp/dart/ReadmeTopTest_dart.ts +78 -0
- package/.sdk/src/cmp/dart/SdkError_dart.ts +42 -0
- package/.sdk/src/cmp/dart/TestDirect_dart.ts +516 -0
- package/.sdk/src/cmp/dart/TestEntity_dart.ts +628 -0
- package/.sdk/src/cmp/dart/Test_dart.ts +138 -0
- package/.sdk/src/cmp/dart/fragment/Config.data.fragment.dart +98 -0
- package/.sdk/src/cmp/dart/fragment/Config.fragment.dart +70 -0
- package/.sdk/src/cmp/dart/fragment/Direct.test.fragment.dart +25 -0
- package/.sdk/src/cmp/dart/fragment/Entity.fragment.dart +29 -0
- package/.sdk/src/cmp/dart/fragment/Entity.test.fragment.dart +28 -0
- package/.sdk/src/cmp/dart/fragment/EntityBase.fragment.dart +302 -0
- package/.sdk/src/cmp/dart/fragment/EntityCreateOp.fragment.dart +98 -0
- package/.sdk/src/cmp/dart/fragment/EntityListOp.fragment.dart +90 -0
- package/.sdk/src/cmp/dart/fragment/EntityLoadOp.fragment.dart +102 -0
- package/.sdk/src/cmp/dart/fragment/EntityRemoveOp.fragment.dart +108 -0
- package/.sdk/src/cmp/dart/fragment/EntityUpdateOp.fragment.dart +102 -0
- package/.sdk/src/cmp/dart/fragment/Main.fragment.dart +339 -0
- package/.sdk/src/cmp/dart/fragment/SdkError.fragment.dart +26 -0
- package/.sdk/src/cmp/dart/tsconfig.json +15 -0
- package/.sdk/src/cmp/dart/utility_dart.ts +155 -0
- package/.sdk/src/cmp/haskell/Config_haskell.ts +98 -0
- package/.sdk/src/cmp/haskell/Entity_haskell.ts +13 -0
- package/.sdk/src/cmp/haskell/Gitignore_haskell.ts +27 -0
- package/.sdk/src/cmp/haskell/Main_haskell.ts +123 -0
- package/.sdk/src/cmp/haskell/Package_haskell.ts +60 -0
- package/.sdk/src/cmp/haskell/ReadmeEntity_haskell.ts +186 -0
- package/.sdk/src/cmp/haskell/ReadmeExamplesTest_haskell.ts +135 -0
- package/.sdk/src/cmp/haskell/ReadmeExplanation_haskell.ts +48 -0
- package/.sdk/src/cmp/haskell/ReadmeHowto_haskell.ts +168 -0
- package/.sdk/src/cmp/haskell/ReadmeInstall_haskell.ts +51 -0
- package/.sdk/src/cmp/haskell/ReadmeIntro_haskell.ts +67 -0
- package/.sdk/src/cmp/haskell/ReadmeModel_haskell.ts +162 -0
- package/.sdk/src/cmp/haskell/ReadmeOptions_haskell.ts +74 -0
- package/.sdk/src/cmp/haskell/ReadmeQuick_haskell.ts +241 -0
- package/.sdk/src/cmp/haskell/ReadmeRef_haskell.ts +408 -0
- package/.sdk/src/cmp/haskell/ReadmeTopHowto_haskell.ts +31 -0
- package/.sdk/src/cmp/haskell/ReadmeTopQuick_haskell.ts +104 -0
- package/.sdk/src/cmp/haskell/ReadmeTopTest_haskell.ts +80 -0
- package/.sdk/src/cmp/haskell/Test_haskell.ts +297 -0
- package/.sdk/src/cmp/haskell/tsconfig.json +15 -0
- package/.sdk/src/cmp/haskell/utility_haskell.ts +166 -0
- package/.sdk/src/cmp/lean/Config_lean.ts +93 -0
- package/.sdk/src/cmp/lean/Entity_lean.ts +9 -0
- package/.sdk/src/cmp/lean/Gitignore_lean.ts +18 -0
- package/.sdk/src/cmp/lean/Main_lean.ts +120 -0
- package/.sdk/src/cmp/lean/Package_lean.ts +93 -0
- package/.sdk/src/cmp/lean/ReadmeEntity_lean.ts +29 -0
- package/.sdk/src/cmp/lean/ReadmeExplanation_lean.ts +19 -0
- package/.sdk/src/cmp/lean/ReadmeHowto_lean.ts +25 -0
- package/.sdk/src/cmp/lean/ReadmeInstall_lean.ts +39 -0
- package/.sdk/src/cmp/lean/ReadmeIntro_lean.ts +25 -0
- package/.sdk/src/cmp/lean/ReadmeModel_lean.ts +24 -0
- package/.sdk/src/cmp/lean/ReadmeOptions_lean.ts +22 -0
- package/.sdk/src/cmp/lean/ReadmeQuick_lean.ts +50 -0
- package/.sdk/src/cmp/lean/ReadmeRef_lean.ts +40 -0
- package/.sdk/src/cmp/lean/ReadmeTopHowto_lean.ts +16 -0
- package/.sdk/src/cmp/lean/ReadmeTopQuick_lean.ts +23 -0
- package/.sdk/src/cmp/lean/ReadmeTopTest_lean.ts +19 -0
- package/.sdk/src/cmp/lean/Test_lean.ts +261 -0
- package/.sdk/src/cmp/lean/utility_lean.ts +129 -0
- package/.sdk/tm/dart/LICENSE +22 -0
- package/.sdk/tm/dart/Makefile +50 -0
- package/.sdk/tm/dart/lib/Context.dart +150 -0
- package/.sdk/tm/dart/lib/Control.dart +15 -0
- package/.sdk/tm/dart/lib/Operation.dart +31 -0
- package/.sdk/tm/dart/lib/Point.dart +51 -0
- package/.sdk/tm/dart/lib/Response.dart +32 -0
- package/.sdk/tm/dart/lib/Result.dart +39 -0
- package/.sdk/tm/dart/lib/Spec.dart +49 -0
- package/.sdk/tm/dart/lib/feature/audit/AuditFeature.dart +103 -0
- package/.sdk/tm/dart/lib/feature/base/BaseFeature.dart +76 -0
- package/.sdk/tm/dart/lib/feature/cache/CacheFeature.dart +152 -0
- package/.sdk/tm/dart/lib/feature/clienttrack/ClienttrackFeature.dart +104 -0
- package/.sdk/tm/dart/lib/feature/cost/CostFeature.dart +446 -0
- package/.sdk/tm/dart/lib/feature/debug/DebugFeature.dart +153 -0
- package/.sdk/tm/dart/lib/feature/idempotency/IdempotencyFeature.dart +92 -0
- package/.sdk/tm/dart/lib/feature/log/LogFeature.dart +85 -0
- package/.sdk/tm/dart/lib/feature/metrics/MetricsFeature.dart +103 -0
- package/.sdk/tm/dart/lib/feature/netsim/NetsimFeature.dart +186 -0
- package/.sdk/tm/dart/lib/feature/paging/PagingFeature.dart +240 -0
- package/.sdk/tm/dart/lib/feature/proxy/ProxyFeature.dart +118 -0
- package/.sdk/tm/dart/lib/feature/ratelimit/RatelimitFeature.dart +103 -0
- package/.sdk/tm/dart/lib/feature/rbac/RbacFeature.dart +121 -0
- package/.sdk/tm/dart/lib/feature/retry/RetryFeature.dart +155 -0
- package/.sdk/tm/dart/lib/feature/secrets/SecretsFeature.dart +649 -0
- package/.sdk/tm/dart/lib/feature/secrets/plugin/capability.dart +105 -0
- package/.sdk/tm/dart/lib/feature/secrets/plugin/catalog.dart +46 -0
- package/.sdk/tm/dart/lib/feature/secrets/plugin/config.dart +297 -0
- package/.sdk/tm/dart/lib/feature/secrets/plugin/depend.dart +198 -0
- package/.sdk/tm/dart/lib/feature/secrets/plugin/env.dart +144 -0
- package/.sdk/tm/dart/lib/feature/secrets/plugin/export.dart +58 -0
- package/.sdk/tm/dart/lib/feature/secrets/plugin/graph.dart +160 -0
- package/.sdk/tm/dart/lib/feature/secrets/plugin/host.dart +1067 -0
- package/.sdk/tm/dart/lib/feature/secrets/plugin/order.dart +172 -0
- package/.sdk/tm/dart/lib/feature/secrets/plugin/plugin.dart +23 -0
- package/.sdk/tm/dart/lib/feature/secrets/plugin/point.dart +117 -0
- package/.sdk/tm/dart/lib/feature/secrets/plugin/ref.dart +105 -0
- package/.sdk/tm/dart/lib/feature/secrets/plugin/resolve.dart +58 -0
- package/.sdk/tm/dart/lib/feature/secrets/plugin/types.dart +201 -0
- package/.sdk/tm/dart/lib/feature/secrets/plugin/version.dart +116 -0
- package/.sdk/tm/dart/lib/feature/secrets/sekreto/plugins/aws.dart +285 -0
- package/.sdk/tm/dart/lib/feature/secrets/sekreto/plugins/azuresecrets.dart +178 -0
- package/.sdk/tm/dart/lib/feature/secrets/sekreto/plugins/boru.dart +145 -0
- package/.sdk/tm/dart/lib/feature/secrets/sekreto/plugins/crypto.dart +194 -0
- package/.sdk/tm/dart/lib/feature/secrets/sekreto/plugins/doppler.dart +101 -0
- package/.sdk/tm/dart/lib/feature/secrets/sekreto/plugins/gcpsecrets.dart +143 -0
- package/.sdk/tm/dart/lib/feature/secrets/sekreto/plugins/hashicorp.dart +190 -0
- package/.sdk/tm/dart/lib/feature/secrets/sekreto/plugins/httpjson.dart +363 -0
- package/.sdk/tm/dart/lib/feature/secrets/sekreto/plugins/infisical.dart +149 -0
- package/.sdk/tm/dart/lib/feature/secrets/sekreto/plugins/onepassword.dart +146 -0
- package/.sdk/tm/dart/lib/feature/secrets/sekreto/plugins/secretspec.dart +116 -0
- package/.sdk/tm/dart/lib/feature/secrets/sekreto/plugins/sigv4.dart +237 -0
- package/.sdk/tm/dart/lib/feature/secrets/sekreto/src/addr.dart +138 -0
- package/.sdk/tm/dart/lib/feature/secrets/sekreto/src/json.dart +276 -0
- package/.sdk/tm/dart/lib/feature/secrets/sekreto/src/provider.dart +31 -0
- package/.sdk/tm/dart/lib/feature/secrets/sekreto/src/providers.dart +243 -0
- package/.sdk/tm/dart/lib/feature/secrets/sekreto/src/sekreto.dart +730 -0
- package/.sdk/tm/dart/lib/feature/secrets/sekreto/src/spec.dart +200 -0
- package/.sdk/tm/dart/lib/feature/secrets/sekreto/src/support.dart +217 -0
- package/.sdk/tm/dart/lib/feature/streaming/StreamingFeature.dart +97 -0
- package/.sdk/tm/dart/lib/feature/telemetry/TelemetryFeature.dart +136 -0
- package/.sdk/tm/dart/lib/feature/test/TestFeature.dart +328 -0
- package/.sdk/tm/dart/lib/feature/timeout/TimeoutFeature.dart +104 -0
- package/.sdk/tm/dart/lib/utility/CleanUtility.dart +12 -0
- package/.sdk/tm/dart/lib/utility/DoneUtility.dart +18 -0
- package/.sdk/tm/dart/lib/utility/ErrUtility.dart +46 -0
- package/.sdk/tm/dart/lib/utility/FeatureAddUtility.dart +35 -0
- package/.sdk/tm/dart/lib/utility/FeatureHookUtility.dart +20 -0
- package/.sdk/tm/dart/lib/utility/FeatureInitUtility.dart +9 -0
- package/.sdk/tm/dart/lib/utility/FetcherUtility.dart +104 -0
- package/.sdk/tm/dart/lib/utility/GraphqlUtility.dart +162 -0
- package/.sdk/tm/dart/lib/utility/MakeContextUtility.dart +6 -0
- package/.sdk/tm/dart/lib/utility/MakeErrorUtility.dart +71 -0
- package/.sdk/tm/dart/lib/utility/MakeFetchDefUtility.dart +42 -0
- package/.sdk/tm/dart/lib/utility/MakeOptionsUtility.dart +233 -0
- package/.sdk/tm/dart/lib/utility/MakePointUtility.dart +130 -0
- package/.sdk/tm/dart/lib/utility/MakeRequestUtility.dart +66 -0
- package/.sdk/tm/dart/lib/utility/MakeResponseUtility.dart +59 -0
- package/.sdk/tm/dart/lib/utility/MakeResultUtility.dart +49 -0
- package/.sdk/tm/dart/lib/utility/MakeSpecUtility.dart +77 -0
- package/.sdk/tm/dart/lib/utility/MakeUrlUtility.dart +51 -0
- package/.sdk/tm/dart/lib/utility/ParamUtility.dart +56 -0
- package/.sdk/tm/dart/lib/utility/PrepareAuthUtility.dart +46 -0
- package/.sdk/tm/dart/lib/utility/PrepareBodyUtility.dart +19 -0
- package/.sdk/tm/dart/lib/utility/PrepareHeadersUtility.dart +11 -0
- package/.sdk/tm/dart/lib/utility/PrepareMethodUtility.dart +30 -0
- package/.sdk/tm/dart/lib/utility/PrepareParamsUtility.dart +23 -0
- package/.sdk/tm/dart/lib/utility/PreparePathUtility.dart +9 -0
- package/.sdk/tm/dart/lib/utility/PrepareQueryUtility.dart +18 -0
- package/.sdk/tm/dart/lib/utility/ResultBasicUtility.dart +29 -0
- package/.sdk/tm/dart/lib/utility/ResultBodyUtility.dart +15 -0
- package/.sdk/tm/dart/lib/utility/ResultHeadersUtility.dart +18 -0
- package/.sdk/tm/dart/lib/utility/StructUtility.dart +127 -0
- package/.sdk/tm/dart/lib/utility/TransformRequestUtility.dart +28 -0
- package/.sdk/tm/dart/lib/utility/TransformResponseUtility.dart +44 -0
- package/.sdk/tm/dart/lib/utility/Utility.dart +239 -0
- package/.sdk/tm/dart/lib/utility/voxgig_struct.dart +2462 -0
- package/.sdk/tm/dart/src/feature/README.md +3 -0
- package/.sdk/tm/dart/src/feature/audit/.gitkeep +0 -0
- package/.sdk/tm/dart/src/feature/base/.gitkeep +0 -0
- package/.sdk/tm/dart/src/feature/cache/.gitkeep +0 -0
- package/.sdk/tm/dart/src/feature/clienttrack/.gitkeep +0 -0
- package/.sdk/tm/dart/src/feature/cost/.gitkeep +0 -0
- package/.sdk/tm/dart/src/feature/debug/.gitkeep +0 -0
- package/.sdk/tm/dart/src/feature/idempotency/.gitkeep +0 -0
- package/.sdk/tm/dart/src/feature/log/.gitkeep +0 -0
- package/.sdk/tm/dart/src/feature/metrics/.gitkeep +0 -0
- package/.sdk/tm/dart/src/feature/netsim/.gitkeep +0 -0
- package/.sdk/tm/dart/src/feature/paging/.gitkeep +0 -0
- package/.sdk/tm/dart/src/feature/proxy/.gitkeep +0 -0
- package/.sdk/tm/dart/src/feature/ratelimit/.gitkeep +0 -0
- package/.sdk/tm/dart/src/feature/rbac/.gitkeep +0 -0
- package/.sdk/tm/dart/src/feature/retry/.gitkeep +0 -0
- package/.sdk/tm/dart/src/feature/secrets/.gitkeep +0 -0
- package/.sdk/tm/dart/src/feature/streaming/.gitkeep +0 -0
- package/.sdk/tm/dart/src/feature/telemetry/.gitkeep +0 -0
- package/.sdk/tm/dart/src/feature/test/.gitkeep +0 -0
- package/.sdk/tm/dart/src/feature/timeout/.gitkeep +0 -0
- package/.sdk/tm/dart/test/custom_test.dart +65 -0
- package/.sdk/tm/dart/test/exists_test.dart +12 -0
- package/.sdk/tm/dart/test/feature/harness.dart +347 -0
- package/.sdk/tm/dart/test/feature/secrets/secrets_test.dart +1107 -0
- package/.sdk/tm/dart/test/feature_test.dart +1193 -0
- package/.sdk/tm/dart/test/harness.dart +153 -0
- package/.sdk/tm/dart/test/netsim_test.dart +48 -0
- package/.sdk/tm/dart/test/omni.dart +520 -0
- package/.sdk/tm/dart/test/omni_smoke_test.dart +143 -0
- package/.sdk/tm/dart/test/pipeline_test.dart +608 -0
- package/.sdk/tm/dart/test/primary_test.dart +476 -0
- package/.sdk/tm/dart/test/sdk-test-control.json +19 -0
- package/.sdk/tm/dart/test/struct_test.dart +468 -0
- package/.sdk/tm/dart/test/utility.dart +198 -0
- package/.sdk/tm/dart/test/vendor/omni/omni.dart +7 -0
- package/.sdk/tm/dart/test/vendor/omni/runner.dart +653 -0
- package/.sdk/tm/dart/test/vendor/omni/util.dart +232 -0
- package/.sdk/tm/haskell/LICENSE +21 -0
- package/.sdk/tm/haskell/Makefile +22 -0
- package/.sdk/tm/haskell/VERSION +1 -0
- package/.sdk/tm/haskell/src/SdkFeatures.hs +1440 -0
- package/.sdk/tm/haskell/src/SdkHelpers.hs +337 -0
- package/.sdk/tm/haskell/src/SdkJson.hs +111 -0
- package/.sdk/tm/haskell/src/SdkRuntime.hs +1279 -0
- package/.sdk/tm/haskell/src/SdkTypes.hs +195 -0
- package/.sdk/tm/haskell/src/VoxgigStruct.hs +2299 -0
- package/.sdk/tm/haskell/src/Vregex.hs +237 -0
- package/.sdk/tm/haskell/src/feature/README.md +5 -0
- package/.sdk/tm/haskell/src/feature/audit/.gitkeep +0 -0
- package/.sdk/tm/haskell/src/feature/base/.gitkeep +0 -0
- package/.sdk/tm/haskell/src/feature/cache/.gitkeep +0 -0
- package/.sdk/tm/haskell/src/feature/clienttrack/.gitkeep +0 -0
- package/.sdk/tm/haskell/src/feature/debug/.gitkeep +0 -0
- package/.sdk/tm/haskell/src/feature/idempotency/.gitkeep +0 -0
- package/.sdk/tm/haskell/src/feature/log/.gitkeep +0 -0
- package/.sdk/tm/haskell/src/feature/metrics/.gitkeep +0 -0
- package/.sdk/tm/haskell/src/feature/netsim/.gitkeep +0 -0
- package/.sdk/tm/haskell/src/feature/paging/.gitkeep +0 -0
- package/.sdk/tm/haskell/src/feature/proxy/.gitkeep +0 -0
- package/.sdk/tm/haskell/src/feature/ratelimit/.gitkeep +0 -0
- package/.sdk/tm/haskell/src/feature/rbac/.gitkeep +0 -0
- package/.sdk/tm/haskell/src/feature/retry/.gitkeep +0 -0
- package/.sdk/tm/haskell/src/feature/streaming/.gitkeep +0 -0
- package/.sdk/tm/haskell/src/feature/telemetry/.gitkeep +0 -0
- package/.sdk/tm/haskell/src/feature/test/.gitkeep +0 -0
- package/.sdk/tm/haskell/src/feature/timeout/.gitkeep +0 -0
- package/.sdk/tm/haskell/test/Harness.hs +281 -0
- package/.sdk/tm/haskell/test/OmniResolver.hs +252 -0
- package/.sdk/tm/haskell/test/Runner.hs +49 -0
- package/.sdk/tm/haskell/test/StructCorpus.hs +449 -0
- package/.sdk/tm/haskell/test/TCustomUtility.hs +38 -0
- package/.sdk/tm/haskell/test/TFeature.hs +794 -0
- package/.sdk/tm/haskell/test/TNetsim.hs +50 -0
- package/.sdk/tm/haskell/test/TPipeline.hs +334 -0
- package/.sdk/tm/haskell/test/TPrimaryCorpus.hs +263 -0
- package/.sdk/tm/haskell/test/TPrimaryUtility.hs +386 -0
- package/.sdk/tm/haskell/test/Testutil.hs +59 -0
- package/.sdk/tm/haskell/test/vendor/omni/Omni.hs +1147 -0
- package/.sdk/tm/lean/LICENSE +21 -0
- package/.sdk/tm/lean/Makefile +32 -0
- package/.sdk/tm/lean/VERSION +1 -0
- package/.sdk/tm/lean/src/SdkFeature.lean +171 -0
- package/.sdk/tm/lean/src/SdkFeatures.lean +787 -0
- package/.sdk/tm/lean/src/SdkJson.lean +134 -0
- package/.sdk/tm/lean/src/SdkRuntime.lean +374 -0
- package/.sdk/tm/lean/src/SdkUtility.lean +809 -0
- package/.sdk/tm/lean/src/VoxgigStruct.lean +2880 -0
- package/.sdk/tm/lean/src/Vregex.lean +412 -0
- package/.sdk/tm/lean/src/feature/README.md +5 -0
- package/.sdk/tm/lean/src/feature/audit/.gitkeep +0 -0
- package/.sdk/tm/lean/src/feature/base/.gitkeep +0 -0
- package/.sdk/tm/lean/src/feature/cache/.gitkeep +0 -0
- package/.sdk/tm/lean/src/feature/clienttrack/.gitkeep +0 -0
- package/.sdk/tm/lean/src/feature/cost/.gitkeep +0 -0
- package/.sdk/tm/lean/src/feature/debug/.gitkeep +0 -0
- package/.sdk/tm/lean/src/feature/idempotency/.gitkeep +0 -0
- package/.sdk/tm/lean/src/feature/log/.gitkeep +0 -0
- package/.sdk/tm/lean/src/feature/metrics/.gitkeep +0 -0
- package/.sdk/tm/lean/src/feature/netsim/.gitkeep +0 -0
- package/.sdk/tm/lean/src/feature/paging/.gitkeep +0 -0
- package/.sdk/tm/lean/src/feature/proxy/.gitkeep +0 -0
- package/.sdk/tm/lean/src/feature/ratelimit/.gitkeep +0 -0
- package/.sdk/tm/lean/src/feature/rbac/.gitkeep +0 -0
- package/.sdk/tm/lean/src/feature/retry/.gitkeep +0 -0
- package/.sdk/tm/lean/src/feature/streaming/.gitkeep +0 -0
- package/.sdk/tm/lean/src/feature/telemetry/.gitkeep +0 -0
- package/.sdk/tm/lean/src/feature/test/.gitkeep +0 -0
- package/.sdk/tm/lean/src/feature/timeout/.gitkeep +0 -0
- package/.sdk/tm/lean/test/OmniResolver.lean +358 -0
- package/.sdk/tm/lean/test/OmniSmoke.lean +174 -0
- package/.sdk/tm/lean/test/StructCorpus.lean +368 -0
- package/.sdk/tm/lean/test/TFeature.lean +281 -0
- package/.sdk/tm/lean/test/TPrimaryUtility.lean +227 -0
- package/.sdk/tm/lean/test/vendor/omni/Omni.lean +997 -0
- package/LICENSE +21 -0
- package/README.md +104 -0
- package/package.json +78 -0
- package/sdkgen-package.json +22 -0
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
// Create operation fragment: the eject region is spliced into the entity
|
|
2
|
+
// class by EntityOperation_dart, with the hook markers expanded.
|
|
3
|
+
|
|
4
|
+
// EJECT-START
|
|
5
|
+
|
|
6
|
+
/// Create a EntityName (see EntityNameCreateData in
|
|
7
|
+
/// ProjectNameTypes.dart). Returns the entity data map (EntityName).
|
|
8
|
+
Future<dynamic> create([dynamic reqdata, dynamic ctrl]) async {
|
|
9
|
+
final utility = this.utility;
|
|
10
|
+
|
|
11
|
+
final makeContext = utility.makeContext;
|
|
12
|
+
final done = utility.done;
|
|
13
|
+
final error = utility.makeError;
|
|
14
|
+
final featureHook = utility.featureHook;
|
|
15
|
+
final makePoint = utility.makePoint;
|
|
16
|
+
final makeRequest = utility.makeRequest;
|
|
17
|
+
final makeResponse = utility.makeResponse;
|
|
18
|
+
final makeResult = utility.makeResult;
|
|
19
|
+
final makeSpec = utility.makeSpec;
|
|
20
|
+
|
|
21
|
+
dynamic fres;
|
|
22
|
+
|
|
23
|
+
final ctx = makeContext({
|
|
24
|
+
'opname': 'create',
|
|
25
|
+
'ctrl': ctrl ?? {},
|
|
26
|
+
'match': matchVal,
|
|
27
|
+
'data': dataVal,
|
|
28
|
+
'reqdata': reqdata ?? {},
|
|
29
|
+
}, entctx);
|
|
30
|
+
|
|
31
|
+
try {
|
|
32
|
+
// #PrePoint-Hook
|
|
33
|
+
|
|
34
|
+
ctx.out['point'] = makePoint(ctx);
|
|
35
|
+
if (iserr(ctx.out['point'])) {
|
|
36
|
+
return error(ctx, ctx.out['point']);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// #PreSpec-Hook
|
|
40
|
+
|
|
41
|
+
ctx.out['spec'] = makeSpec(ctx);
|
|
42
|
+
if (iserr(ctx.out['spec'])) {
|
|
43
|
+
return error(ctx, ctx.out['spec']);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
// #PreRequest-Hook
|
|
47
|
+
|
|
48
|
+
ctx.out['request'] = await makeRequest(ctx);
|
|
49
|
+
if (iserr(ctx.out['request'])) {
|
|
50
|
+
return error(ctx, ctx.out['request']);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
// #PreResponse-Hook
|
|
54
|
+
|
|
55
|
+
ctx.out['response'] = await makeResponse(ctx);
|
|
56
|
+
if (iserr(ctx.out['response'])) {
|
|
57
|
+
return error(ctx, ctx.out['response']);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
// #PreResult-Hook
|
|
61
|
+
|
|
62
|
+
ctx.out['result'] = makeResult(ctx);
|
|
63
|
+
if (iserr(ctx.out['result'])) {
|
|
64
|
+
return error(ctx, ctx.out['result']);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
// #PreDone-Hook
|
|
68
|
+
|
|
69
|
+
if (null != ctx.result) {
|
|
70
|
+
if (null != ctx.result.resdata) {
|
|
71
|
+
dataVal = ctx.result.resdata;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
final out = done(ctx);
|
|
76
|
+
|
|
77
|
+
// An operation resolves to the ENTITY, not the raw data — the record
|
|
78
|
+
// has just been absorbed into this instance and is reached through
|
|
79
|
+
// data(). `done` still runs: it completes the pipeline and raises on
|
|
80
|
+
// failure, and when throwing is disabled it hands back the error
|
|
81
|
+
// payload, which passes through unchanged. See AGENTS.md "Entity
|
|
82
|
+
// operations return ENTITIES".
|
|
83
|
+
return (null != ctx.result && true == ctx.result.ok) ? this : out;
|
|
84
|
+
} catch (err) {
|
|
85
|
+
// #PreUnexpected-Hook
|
|
86
|
+
|
|
87
|
+
final uerr = unexpected(ctx, err);
|
|
88
|
+
|
|
89
|
+
if (null != uerr) {
|
|
90
|
+
throw uerr;
|
|
91
|
+
} else {
|
|
92
|
+
// Off-happy-path (throw disabled).
|
|
93
|
+
return null;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
// EJECT-END
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
// List operation fragment: the eject region is spliced into the entity
|
|
2
|
+
// class by EntityOperation_dart, with the hook markers expanded.
|
|
3
|
+
|
|
4
|
+
// EJECT-START
|
|
5
|
+
|
|
6
|
+
/// List EntityName entities by match (see EntityNameListMatch in
|
|
7
|
+
/// ProjectNameTypes.dart). Returns a list of EntityName entity instances.
|
|
8
|
+
Future<dynamic> list([dynamic reqmatch, dynamic ctrl]) async {
|
|
9
|
+
final utility = this.utility;
|
|
10
|
+
|
|
11
|
+
final makeContext = utility.makeContext;
|
|
12
|
+
final done = utility.done;
|
|
13
|
+
final error = utility.makeError;
|
|
14
|
+
final featureHook = utility.featureHook;
|
|
15
|
+
final makePoint = utility.makePoint;
|
|
16
|
+
final makeRequest = utility.makeRequest;
|
|
17
|
+
final makeResponse = utility.makeResponse;
|
|
18
|
+
final makeResult = utility.makeResult;
|
|
19
|
+
final makeSpec = utility.makeSpec;
|
|
20
|
+
|
|
21
|
+
dynamic fres;
|
|
22
|
+
|
|
23
|
+
final ctx = makeContext({
|
|
24
|
+
'opname': 'list',
|
|
25
|
+
'ctrl': ctrl ?? {},
|
|
26
|
+
'match': matchVal,
|
|
27
|
+
'data': dataVal,
|
|
28
|
+
'reqmatch': reqmatch ?? {},
|
|
29
|
+
}, entctx);
|
|
30
|
+
|
|
31
|
+
try {
|
|
32
|
+
// #PrePoint-Hook
|
|
33
|
+
|
|
34
|
+
ctx.out['point'] = makePoint(ctx);
|
|
35
|
+
if (iserr(ctx.out['point'])) {
|
|
36
|
+
return error(ctx, ctx.out['point']);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// #PreSpec-Hook
|
|
40
|
+
|
|
41
|
+
ctx.out['spec'] = makeSpec(ctx);
|
|
42
|
+
if (iserr(ctx.out['spec'])) {
|
|
43
|
+
return error(ctx, ctx.out['spec']);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
// #PreRequest-Hook
|
|
47
|
+
|
|
48
|
+
ctx.out['request'] = await makeRequest(ctx);
|
|
49
|
+
if (iserr(ctx.out['request'])) {
|
|
50
|
+
return error(ctx, ctx.out['request']);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
// #PreResponse-Hook
|
|
54
|
+
|
|
55
|
+
ctx.out['response'] = await makeResponse(ctx);
|
|
56
|
+
if (iserr(ctx.out['response'])) {
|
|
57
|
+
return error(ctx, ctx.out['response']);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
// #PreResult-Hook
|
|
61
|
+
|
|
62
|
+
ctx.out['result'] = makeResult(ctx);
|
|
63
|
+
if (iserr(ctx.out['result'])) {
|
|
64
|
+
return error(ctx, ctx.out['result']);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
// #PreDone-Hook
|
|
68
|
+
|
|
69
|
+
if (null != ctx.result) {
|
|
70
|
+
if (null != ctx.result.resmatch) {
|
|
71
|
+
matchVal = ctx.result.resmatch;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
return done(ctx);
|
|
76
|
+
} catch (err) {
|
|
77
|
+
// #PreUnexpected-Hook
|
|
78
|
+
|
|
79
|
+
final uerr = unexpected(ctx, err);
|
|
80
|
+
|
|
81
|
+
if (null != uerr) {
|
|
82
|
+
throw uerr;
|
|
83
|
+
} else {
|
|
84
|
+
// Off-happy-path (throw disabled).
|
|
85
|
+
return null;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
// EJECT-END
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
// Load operation fragment: the eject region is spliced into the entity
|
|
2
|
+
// class by EntityOperation_dart, with the hook markers expanded.
|
|
3
|
+
|
|
4
|
+
// EJECT-START
|
|
5
|
+
|
|
6
|
+
/// Load a EntityName by match (see EntityNameLoadMatch in
|
|
7
|
+
/// ProjectNameTypes.dart). Returns the entity data map (EntityName).
|
|
8
|
+
Future<dynamic> load([dynamic reqmatch, dynamic ctrl]) async {
|
|
9
|
+
final utility = this.utility;
|
|
10
|
+
|
|
11
|
+
final makeContext = utility.makeContext;
|
|
12
|
+
final done = utility.done;
|
|
13
|
+
final error = utility.makeError;
|
|
14
|
+
final featureHook = utility.featureHook;
|
|
15
|
+
final makePoint = utility.makePoint;
|
|
16
|
+
final makeRequest = utility.makeRequest;
|
|
17
|
+
final makeResponse = utility.makeResponse;
|
|
18
|
+
final makeResult = utility.makeResult;
|
|
19
|
+
final makeSpec = utility.makeSpec;
|
|
20
|
+
|
|
21
|
+
dynamic fres;
|
|
22
|
+
|
|
23
|
+
final ctx = makeContext({
|
|
24
|
+
'opname': 'load',
|
|
25
|
+
'ctrl': ctrl ?? {},
|
|
26
|
+
'match': matchVal,
|
|
27
|
+
'data': dataVal,
|
|
28
|
+
'reqmatch': reqmatch ?? {},
|
|
29
|
+
}, entctx);
|
|
30
|
+
|
|
31
|
+
try {
|
|
32
|
+
// #PrePoint-Hook
|
|
33
|
+
|
|
34
|
+
ctx.out['point'] = makePoint(ctx);
|
|
35
|
+
if (iserr(ctx.out['point'])) {
|
|
36
|
+
return error(ctx, ctx.out['point']);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// #PreSpec-Hook
|
|
40
|
+
|
|
41
|
+
ctx.out['spec'] = makeSpec(ctx);
|
|
42
|
+
if (iserr(ctx.out['spec'])) {
|
|
43
|
+
return error(ctx, ctx.out['spec']);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
// #PreRequest-Hook
|
|
47
|
+
|
|
48
|
+
ctx.out['request'] = await makeRequest(ctx);
|
|
49
|
+
if (iserr(ctx.out['request'])) {
|
|
50
|
+
return error(ctx, ctx.out['request']);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
// #PreResponse-Hook
|
|
54
|
+
|
|
55
|
+
ctx.out['response'] = await makeResponse(ctx);
|
|
56
|
+
if (iserr(ctx.out['response'])) {
|
|
57
|
+
return error(ctx, ctx.out['response']);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
// #PreResult-Hook
|
|
61
|
+
|
|
62
|
+
ctx.out['result'] = makeResult(ctx);
|
|
63
|
+
if (iserr(ctx.out['result'])) {
|
|
64
|
+
return error(ctx, ctx.out['result']);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
// #PreDone-Hook
|
|
68
|
+
|
|
69
|
+
if (null != ctx.result) {
|
|
70
|
+
if (null != ctx.result.resmatch) {
|
|
71
|
+
matchVal = ctx.result.resmatch;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
if (null != ctx.result.resdata) {
|
|
75
|
+
dataVal = ctx.result.resdata;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
final out = done(ctx);
|
|
80
|
+
|
|
81
|
+
// An operation resolves to the ENTITY, not the raw data — the record
|
|
82
|
+
// has just been absorbed into this instance and is reached through
|
|
83
|
+
// data(). `done` still runs: it completes the pipeline and raises on
|
|
84
|
+
// failure, and when throwing is disabled it hands back the error
|
|
85
|
+
// payload, which passes through unchanged. See AGENTS.md "Entity
|
|
86
|
+
// operations return ENTITIES".
|
|
87
|
+
return (null != ctx.result && true == ctx.result.ok) ? this : out;
|
|
88
|
+
} catch (err) {
|
|
89
|
+
// #PreUnexpected-Hook
|
|
90
|
+
|
|
91
|
+
final uerr = unexpected(ctx, err);
|
|
92
|
+
|
|
93
|
+
if (null != uerr) {
|
|
94
|
+
throw uerr;
|
|
95
|
+
} else {
|
|
96
|
+
// Off-happy-path (throw disabled).
|
|
97
|
+
return null;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
// EJECT-END
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
// Remove operation fragment: the eject region is spliced into the entity
|
|
2
|
+
// class by EntityOperation_dart, with the hook markers expanded.
|
|
3
|
+
|
|
4
|
+
// EJECT-START
|
|
5
|
+
|
|
6
|
+
/// Remove a EntityName by match (see EntityNameRemoveMatch in
|
|
7
|
+
/// ProjectNameTypes.dart). Returns the entity data map (EntityName).
|
|
8
|
+
Future<dynamic> remove([dynamic reqmatch, dynamic ctrl]) async {
|
|
9
|
+
final utility = this.utility;
|
|
10
|
+
|
|
11
|
+
final makeContext = utility.makeContext;
|
|
12
|
+
final done = utility.done;
|
|
13
|
+
final error = utility.makeError;
|
|
14
|
+
final featureHook = utility.featureHook;
|
|
15
|
+
final makePoint = utility.makePoint;
|
|
16
|
+
final makeRequest = utility.makeRequest;
|
|
17
|
+
final makeResponse = utility.makeResponse;
|
|
18
|
+
final makeResult = utility.makeResult;
|
|
19
|
+
final makeSpec = utility.makeSpec;
|
|
20
|
+
|
|
21
|
+
dynamic fres;
|
|
22
|
+
|
|
23
|
+
final ctx = makeContext({
|
|
24
|
+
'opname': 'remove',
|
|
25
|
+
'ctrl': ctrl ?? {},
|
|
26
|
+
'match': matchVal,
|
|
27
|
+
'data': dataVal,
|
|
28
|
+
'reqmatch': reqmatch ?? {},
|
|
29
|
+
}, entctx);
|
|
30
|
+
|
|
31
|
+
try {
|
|
32
|
+
// #PrePoint-Hook
|
|
33
|
+
|
|
34
|
+
ctx.out['point'] = makePoint(ctx);
|
|
35
|
+
if (iserr(ctx.out['point'])) {
|
|
36
|
+
return error(ctx, ctx.out['point']);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// #PreSpec-Hook
|
|
40
|
+
|
|
41
|
+
ctx.out['spec'] = makeSpec(ctx);
|
|
42
|
+
if (iserr(ctx.out['spec'])) {
|
|
43
|
+
return error(ctx, ctx.out['spec']);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
// #PreRequest-Hook
|
|
47
|
+
|
|
48
|
+
ctx.out['request'] = await makeRequest(ctx);
|
|
49
|
+
if (iserr(ctx.out['request'])) {
|
|
50
|
+
return error(ctx, ctx.out['request']);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
// #PreResponse-Hook
|
|
54
|
+
|
|
55
|
+
ctx.out['response'] = await makeResponse(ctx);
|
|
56
|
+
if (iserr(ctx.out['response'])) {
|
|
57
|
+
return error(ctx, ctx.out['response']);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
// #PreResult-Hook
|
|
61
|
+
|
|
62
|
+
ctx.out['result'] = makeResult(ctx);
|
|
63
|
+
if (iserr(ctx.out['result'])) {
|
|
64
|
+
return error(ctx, ctx.out['result']);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
// #PreDone-Hook
|
|
68
|
+
|
|
69
|
+
if (null != ctx.result) {
|
|
70
|
+
if (null != ctx.result.resmatch) {
|
|
71
|
+
matchVal = ctx.result.resmatch;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
if (null != ctx.result.resdata) {
|
|
75
|
+
dataVal = ctx.result.resdata;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
final out = done(ctx);
|
|
80
|
+
|
|
81
|
+
// An operation resolves to the ENTITY, not the raw data — the record
|
|
82
|
+
// has just been absorbed into this instance and is reached through
|
|
83
|
+
// data(). `done` still runs: it completes the pipeline and raises on
|
|
84
|
+
// failure, and when throwing is disabled it hands back the error
|
|
85
|
+
// payload, which passes through unchanged. See AGENTS.md "Entity
|
|
86
|
+
// operations return ENTITIES".
|
|
87
|
+
if (null != ctx.result && true == ctx.result.ok) {
|
|
88
|
+
// A removed entity keeps its data but is no longer a live record.
|
|
89
|
+
markDeleted();
|
|
90
|
+
return this;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
return out;
|
|
94
|
+
} catch (err) {
|
|
95
|
+
// #PreUnexpected-Hook
|
|
96
|
+
|
|
97
|
+
final uerr = unexpected(ctx, err);
|
|
98
|
+
|
|
99
|
+
if (null != uerr) {
|
|
100
|
+
throw uerr;
|
|
101
|
+
} else {
|
|
102
|
+
// Off-happy-path (throw disabled).
|
|
103
|
+
return null;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
// EJECT-END
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
// Update operation fragment: the eject region is spliced into the entity
|
|
2
|
+
// class by EntityOperation_dart, with the hook markers expanded.
|
|
3
|
+
|
|
4
|
+
// EJECT-START
|
|
5
|
+
|
|
6
|
+
/// Update a EntityName (see EntityNameUpdateData in
|
|
7
|
+
/// ProjectNameTypes.dart). Returns the entity data map (EntityName).
|
|
8
|
+
Future<dynamic> update([dynamic reqdata, dynamic ctrl]) async {
|
|
9
|
+
final utility = this.utility;
|
|
10
|
+
|
|
11
|
+
final makeContext = utility.makeContext;
|
|
12
|
+
final done = utility.done;
|
|
13
|
+
final error = utility.makeError;
|
|
14
|
+
final featureHook = utility.featureHook;
|
|
15
|
+
final makePoint = utility.makePoint;
|
|
16
|
+
final makeRequest = utility.makeRequest;
|
|
17
|
+
final makeResponse = utility.makeResponse;
|
|
18
|
+
final makeResult = utility.makeResult;
|
|
19
|
+
final makeSpec = utility.makeSpec;
|
|
20
|
+
|
|
21
|
+
dynamic fres;
|
|
22
|
+
|
|
23
|
+
final ctx = makeContext({
|
|
24
|
+
'opname': 'update',
|
|
25
|
+
'ctrl': ctrl ?? {},
|
|
26
|
+
'match': matchVal,
|
|
27
|
+
'data': dataVal,
|
|
28
|
+
'reqdata': reqdata ?? {},
|
|
29
|
+
}, entctx);
|
|
30
|
+
|
|
31
|
+
try {
|
|
32
|
+
// #PrePoint-Hook
|
|
33
|
+
|
|
34
|
+
ctx.out['point'] = makePoint(ctx);
|
|
35
|
+
if (iserr(ctx.out['point'])) {
|
|
36
|
+
return error(ctx, ctx.out['point']);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// #PreSpec-Hook
|
|
40
|
+
|
|
41
|
+
ctx.out['spec'] = makeSpec(ctx);
|
|
42
|
+
if (iserr(ctx.out['spec'])) {
|
|
43
|
+
return error(ctx, ctx.out['spec']);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
// #PreRequest-Hook
|
|
47
|
+
|
|
48
|
+
ctx.out['request'] = await makeRequest(ctx);
|
|
49
|
+
if (iserr(ctx.out['request'])) {
|
|
50
|
+
return error(ctx, ctx.out['request']);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
// #PreResponse-Hook
|
|
54
|
+
|
|
55
|
+
ctx.out['response'] = await makeResponse(ctx);
|
|
56
|
+
if (iserr(ctx.out['response'])) {
|
|
57
|
+
return error(ctx, ctx.out['response']);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
// #PreResult-Hook
|
|
61
|
+
|
|
62
|
+
ctx.out['result'] = makeResult(ctx);
|
|
63
|
+
if (iserr(ctx.out['result'])) {
|
|
64
|
+
return error(ctx, ctx.out['result']);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
// #PreDone-Hook
|
|
68
|
+
|
|
69
|
+
if (null != ctx.result) {
|
|
70
|
+
if (null != ctx.result.resmatch) {
|
|
71
|
+
matchVal = ctx.result.resmatch;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
if (null != ctx.result.resdata) {
|
|
75
|
+
dataVal = ctx.result.resdata;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
final out = done(ctx);
|
|
80
|
+
|
|
81
|
+
// An operation resolves to the ENTITY, not the raw data — the record
|
|
82
|
+
// has just been absorbed into this instance and is reached through
|
|
83
|
+
// data(). `done` still runs: it completes the pipeline and raises on
|
|
84
|
+
// failure, and when throwing is disabled it hands back the error
|
|
85
|
+
// payload, which passes through unchanged. See AGENTS.md "Entity
|
|
86
|
+
// operations return ENTITIES".
|
|
87
|
+
return (null != ctx.result && true == ctx.result.ok) ? this : out;
|
|
88
|
+
} catch (err) {
|
|
89
|
+
// #PreUnexpected-Hook
|
|
90
|
+
|
|
91
|
+
final uerr = unexpected(ctx, err);
|
|
92
|
+
|
|
93
|
+
if (null != uerr) {
|
|
94
|
+
throw uerr;
|
|
95
|
+
} else {
|
|
96
|
+
// Off-happy-path (throw disabled).
|
|
97
|
+
return null;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
// EJECT-END
|