@reventlessdev/reventless-core 3.0.0-alpha.210 → 3.0.0-alpha.211

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/CHANGELOG.md CHANGED
@@ -3,6 +3,13 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # 3.0.0-alpha.211 (2026-08-04)
7
+
8
+ ### Features
9
+
10
+ * **geocoding:** serve geocoding through the platform GraphQL API (D9 half 2) ([914d3c0](https://github.com/ReventlessDev/reventless-core/commit/914d3c0a99a1b67ffb89e2b8259dd30f67ff9bae))
11
+
12
+
6
13
  # 3.0.0-alpha.210 (2026-08-04)
7
14
 
8
15
  ### Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reventlessdev/reventless-core",
3
- "version": "3.0.0-alpha.210",
3
+ "version": "3.0.0-alpha.211",
4
4
  "description": "Core package for Reventless framework",
5
5
  "license": "Apache-2.0",
6
6
  "jest": {
@@ -28,16 +28,16 @@
28
28
  "dependencies": {
29
29
  "sury": "11.0.0-alpha.4",
30
30
  "uuid": "^13.0.0",
31
+ "@reventlessdev/rescript-fast-csv": "2.0.0-alpha.1",
31
32
  "@reventlessdev/rescript-effect": "0.1.0-alpha.32",
33
+ "@reventlessdev/rescript-jest": "1.0.0-alpha.10",
32
34
  "@reventlessdev/rescript-hash-object": "1.2.0-alpha.14",
33
- "@reventlessdev/rescript-fast-csv": "2.0.0-alpha.1",
34
35
  "@reventlessdev/rescript-node": "2.0.0-alpha.1",
35
- "@reventlessdev/rescript-jest": "1.0.0-alpha.10",
36
36
  "@reventlessdev/rescript-pulumi-pulumi": "2.3.0-alpha.18",
37
- "@reventlessdev/rescript-ssh2": "2.0.0-alpha.1",
38
37
  "@reventlessdev/rescript-uuid": "2.0.0-alpha.0",
38
+ "@reventlessdev/rescript-ssh2": "2.0.0-alpha.1",
39
+ "@reventlessdev/reventless-infra": "3.0.0-alpha.126",
39
40
  "@reventlessdev/reventless-interop": "3.0.0-alpha.30",
40
- "@reventlessdev/reventless-infra": "3.0.0-alpha.125",
41
41
  "@reventlessdev/reventless-spec": "3.0.0-alpha.100"
42
42
  },
43
43
  "devDependencies": {
@@ -100,6 +100,25 @@ let uploadMutationFields = [
100
100
  ` Upload_Release(store: ID!, storageRef: String!): Upload_ReleaseResult`,
101
101
  ]
102
102
 
103
+ // Geocoding service (D9 half 2): turn an address into ranked coordinate candidates
104
+ // through the platform GraphQL API instead of an anonymous Function URL, so
105
+ // AppSync's Cognito authorizer authenticates the caller. Geocoding is a *read*, so
106
+ // a Query field. Like the upload fields these belong on the **domain** base
107
+ // (`domainBaseFragment` in the AWS/local Platform), which takes the default
108
+ // `AllowAuthenticated` auth — not the Admin-gated admin base, and so deliberately
109
+ // NOT part of `baseFragment` below.
110
+ //
111
+ // This is the client door of the geocoding capability; plugin backend code reaches
112
+ // the same place index through an injected port (`Reventless.Capabilities.geocode`,
113
+ // backed by `Geocoder_AwsLocation_Backend`). One capability, two doors — mirroring
114
+ // the object store's `Upload_Presign` / `Offload.resolve` split. `relevance` is
115
+ // nullable because a provider that does not score its results returns none.
116
+ let geocodeTypes = [
117
+ `type GeocodeCandidate {\n label: String!\n lat: Float!\n lng: Float!\n relevance: Float\n}`,
118
+ ]
119
+
120
+ let geocodeQueryFields = [` geocode(text: String!): [GeocodeCandidate!]`]
121
+
103
122
  let baseFragment = (~cloner: bool) => {
104
123
  let base = GraphQL_FragmentGenerator.generate(
105
124
  ~mutationEntries=mutationEntries(~cloner),
@@ -81,6 +81,10 @@ let uploadMutationFields = [
81
81
  ` Upload_Release(store: ID!, storageRef: String!): Upload_ReleaseResult`
82
82
  ];
83
83
 
84
+ let geocodeTypes = [`type GeocodeCandidate {\n label: String!\n lat: Float!\n lng: Float!\n relevance: Float\n}`];
85
+
86
+ let geocodeQueryFields = [` geocode(text: String!): [GeocodeCandidate!]`];
87
+
84
88
  function baseFragment(cloner) {
85
89
  let base = GraphQL_FragmentGenerator$ReventlessCore.generate(mutationEntries(cloner), PluginBaseFragment$ReventlessCore.queryEntries);
86
90
  let parts = GraphQL_Stitcher$ReventlessCore.decode(base);
@@ -120,6 +124,8 @@ export {
120
124
  pluginStatusSubscriptionSource,
121
125
  uploadTypes,
122
126
  uploadMutationFields,
127
+ geocodeTypes,
128
+ geocodeQueryFields,
123
129
  baseFragment,
124
130
  }
125
131
  /* cloneArgsSchema Not a pure module */