@xyo-network/diviner-jsonpath-aggregate-model 5.3.25 → 5.3.26

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.
Files changed (2) hide show
  1. package/README.md +248 -10
  2. package/package.json +13 -13
package/README.md CHANGED
@@ -1,23 +1,261 @@
1
+ [![logo][]](https://xyo.network)
2
+
1
3
  # @xyo-network/diviner-jsonpath-aggregate-model
2
4
 
3
- [![logo][]](https://xyo.network)
5
+ [![npm][npm-badge]][npm-link]
6
+ [![license][license-badge]][license-link]
7
+
8
+ > Primary SDK for using XYO Protocol 2.0
9
+
10
+ ## Install
11
+
12
+ Using npm:
13
+
14
+ ```sh
15
+ npm install {{name}}
16
+ ```
4
17
 
5
- Version: 5.0.2
18
+ Using yarn:
6
19
 
7
- Primary SDK for using XYO Protocol 2.0
20
+ ```sh
21
+ yarn add {{name}}
22
+ ```
8
23
 
9
- ## Documentation
24
+ Using pnpm:
10
25
 
11
- [TypeDoc Generated Documentation](https://gitbook.xyo.network/xyo-data-lab/xyo-reference/package-documentation/xyo-network__diviner-jsonpath-aggregate-model)
26
+ ```sh
27
+ pnpm add {{name}}
28
+ ```
29
+
30
+ Using bun:
31
+
32
+ ```sh
33
+ bun add {{name}}
34
+ ```
12
35
 
13
- Part of [sdk-xyo-client-js](https://www.npmjs.com/package/@xyo-network/sdk-xyo-client-js)
14
36
 
15
37
  ## License
16
38
 
17
- > See the [LICENSE](LICENSE) file for license details
39
+ See the [LICENSE](LICENSE) file for license rights and limitations (LGPL-3.0-only).
40
+
41
+ ## Reference
42
+
43
+ ### packages
44
+
45
+ ### modules
46
+
47
+ ### packages
48
+
49
+ ### diviner
50
+
51
+ ### packages
52
+
53
+ ### jsonpath
54
+
55
+ ### packages
56
+
57
+ ### aggregate
58
+
59
+ ### packages
60
+
61
+ ### model
62
+
63
+ ### .temp-typedoc
64
+
65
+ ### interfaces
66
+
67
+ ### <a id="JsonPathTransformExpression"></a>JsonPathTransformExpression
68
+
69
+ [**@xyo-network/diviner-jsonpath-aggregate-model**](#../README)
70
+
71
+ ***
72
+
73
+ Describes the JSON-path transformation to retrieve a field on a source object
74
+ and the target field to store the value to on a destination object
75
+
76
+ ## Properties
77
+
78
+ ### defaultValue?
79
+
80
+ ```ts
81
+ optional defaultValue?: unknown;
82
+ ```
83
+
84
+ The default value to use if the source field does not exist
85
+
86
+ ***
87
+
88
+ ### destinationField
89
+
90
+ ```ts
91
+ destinationField: string;
92
+ ```
93
+
94
+ The target field to store the source field into on the destination object
95
+
96
+ ***
97
+
98
+ ### sourcePathExpression
99
+
100
+ ```ts
101
+ sourcePathExpression: string;
102
+ ```
103
+
104
+ The JSON path expressions for the source field on the source object
105
+
106
+ ### type-aliases
107
+
108
+ ### <a id="JsonPathAggregateDivinerConfig"></a>JsonPathAggregateDivinerConfig
109
+
110
+ [**@xyo-network/diviner-jsonpath-aggregate-model**](#../README)
111
+
112
+ ***
113
+
114
+ ```ts
115
+ type JsonPathAggregateDivinerConfig = DivinerConfig<object & object>;
116
+ ```
117
+
118
+ The configuration for the JSON Path diviner
119
+
120
+ ### <a id="JsonPathAggregateDivinerConfigSchema"></a>JsonPathAggregateDivinerConfigSchema
121
+
122
+ [**@xyo-network/diviner-jsonpath-aggregate-model**](#../README)
123
+
124
+ ***
125
+
126
+ ```ts
127
+ type JsonPathAggregateDivinerConfigSchema = typeof JsonPathAggregateDivinerConfigSchema;
128
+ ```
129
+
130
+ The config schema type for the JSON Path diviner
131
+
132
+ ### <a id="JsonPathAggregateDivinerParams"></a>JsonPathAggregateDivinerParams
133
+
134
+ [**@xyo-network/diviner-jsonpath-aggregate-model**](#../README)
135
+
136
+ ***
137
+
138
+ ```ts
139
+ type JsonPathAggregateDivinerParams = DivinerParams<AnyConfigSchema<JsonPathAggregateDivinerConfig>>;
140
+ ```
141
+
142
+ The params type the JSON Path diviner
143
+
144
+ ### <a id="JsonPathAggregateDivinerSchema"></a>JsonPathAggregateDivinerSchema
145
+
146
+ [**@xyo-network/diviner-jsonpath-aggregate-model**](#../README)
147
+
148
+ ***
149
+
150
+ ```ts
151
+ type JsonPathAggregateDivinerSchema = typeof JsonPathAggregateDivinerSchema;
152
+ ```
153
+
154
+ The schema type used for the JSONPath Diviner.
155
+
156
+ ### <a id="PayloadTransformer"></a>PayloadTransformer
157
+
158
+ [**@xyo-network/diviner-jsonpath-aggregate-model**](#../README)
159
+
160
+ ***
161
+
162
+ ```ts
163
+ type PayloadTransformer = (x) => Partial<Payload>;
164
+ ```
165
+
166
+ ## Parameters
167
+
168
+ ### x
169
+
170
+ `Payload`
171
+
172
+ ## Returns
173
+
174
+ `Partial`\<`Payload`\>
175
+
176
+ ### <a id="SchemaToJsonPathTransformExpressionsDictionary"></a>SchemaToJsonPathTransformExpressionsDictionary
177
+
178
+ [**@xyo-network/diviner-jsonpath-aggregate-model**](#../README)
179
+
180
+ ***
181
+
182
+ ```ts
183
+ type SchemaToJsonPathTransformExpressionsDictionary<T> = { [key in keyof T]: JsonPathTransformExpression[] };
184
+ ```
185
+
186
+ A dictionary of schema to JSON Path transform expressions.
187
+
188
+ ## Type Parameters
189
+
190
+ ### T
191
+
192
+ `T` *extends* `object` = \{
193
+ \[`schema`: `string`\]: `unknown`;
194
+ \}
195
+
196
+ ### <a id="SchemaToPayloadTransformersDictionary"></a>SchemaToPayloadTransformersDictionary
197
+
198
+ [**@xyo-network/diviner-jsonpath-aggregate-model**](#../README)
199
+
200
+ ***
201
+
202
+ ```ts
203
+ type SchemaToPayloadTransformersDictionary = object;
204
+ ```
205
+
206
+ A dictionary of schema to payload transformers
207
+
208
+ ## Index Signature
209
+
210
+ ```ts
211
+ [schema: string]: PayloadTransformer[]
212
+ ```
213
+
214
+ ### variables
215
+
216
+ ### <a id="JsonPathAggregateDivinerConfigSchema"></a>JsonPathAggregateDivinerConfigSchema
217
+
218
+ [**@xyo-network/diviner-jsonpath-aggregate-model**](#../README)
219
+
220
+ ***
221
+
222
+ ```ts
223
+ const JsonPathAggregateDivinerConfigSchema: string & object;
224
+ ```
225
+
226
+ The config schema for the JSON Path diviner
227
+
228
+ ## Type Declaration
229
+
230
+ ### \_\_schema
231
+
232
+ ```ts
233
+ readonly __schema: true;
234
+ ```
235
+
236
+ ### <a id="JsonPathAggregateDivinerSchema"></a>JsonPathAggregateDivinerSchema
237
+
238
+ [**@xyo-network/diviner-jsonpath-aggregate-model**](#../README)
239
+
240
+ ***
241
+
242
+ ```ts
243
+ const JsonPathAggregateDivinerSchema: "network.xyo.diviner.jsonpath.aggregate" & object;
244
+ ```
245
+
246
+ The schema used for the JSONPath Diviner.
247
+
248
+ ## Type Declaration
249
+
250
+ ### \_\_schema
18
251
 
19
- ## Credits
252
+ ```ts
253
+ readonly __schema: true;
254
+ ```
20
255
 
21
- [Made with 🔥 and ❄️ by XYO](https://xyo.network)
22
256
 
23
- [logo]: https://cdn.xy.company/img/brand/XYO_full_colored.png
257
+ [logo]: https://cdn.xy.company/img/brand/XYO_full_colored.png
258
+ [npm-badge]: https://img.shields.io/npm/v/@xyo-network/diviner-jsonpath-aggregate-model.svg
259
+ [npm-link]: https://www.npmjs.com/package/@xyo-network/diviner-jsonpath-aggregate-model
260
+ [license-badge]: https://img.shields.io/npm/l/@xyo-network/diviner-jsonpath-aggregate-model.svg
261
+ [license-link]: https://github.com/xylabs/sdk-js/blob/main/LICENSE
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/diviner-jsonpath-aggregate-model",
3
- "version": "5.3.25",
3
+ "version": "5.3.26",
4
4
  "description": "Primary SDK for using XYO Protocol 2.0",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -22,11 +22,11 @@
22
22
  "exports": {
23
23
  ".": {
24
24
  "types": "./dist/neutral/index.d.ts",
25
+ "import": "./dist/neutral/index.mjs",
25
26
  "default": "./dist/neutral/index.mjs"
26
27
  },
27
28
  "./package.json": "./package.json"
28
29
  },
29
- "module": "dist/neutral/index.mjs",
30
30
  "types": "dist/neutral/index.d.ts",
31
31
  "files": [
32
32
  "dist",
@@ -36,25 +36,25 @@
36
36
  "README.md"
37
37
  ],
38
38
  "dependencies": {
39
- "@xyo-network/diviner-model": "~5.3.25",
40
- "@xyo-network/module-model": "~5.3.25",
41
- "@xyo-network/payload-model": "~5.3.25"
39
+ "@xyo-network/diviner-model": "~5.3.26",
40
+ "@xyo-network/module-model": "~5.3.26",
41
+ "@xyo-network/payload-model": "~5.3.26"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@opentelemetry/api": "^1.9.1",
45
- "@types/node": "^25.5.0",
46
- "@xylabs/sdk-js": "^5.0.93",
47
- "@xylabs/ts-scripts-common": "~7.6.16",
48
- "@xylabs/ts-scripts-pnpm": "~7.6.16",
49
- "@xylabs/tsconfig": "~7.6.16",
45
+ "@types/node": "^25.5.2",
46
+ "@xylabs/sdk-js": "^5.0.94",
47
+ "@xylabs/ts-scripts-common": "~7.7.5",
48
+ "@xylabs/ts-scripts-pnpm": "~7.7.5",
49
+ "@xylabs/tsconfig": "~7.7.5",
50
50
  "acorn": "^8.16.0",
51
51
  "axios": "^1.14.0",
52
52
  "esbuild": "^0.28.0",
53
53
  "typescript": "~5.9.3",
54
54
  "zod": "^4.3.6",
55
- "@xyo-network/diviner-model": "~5.3.25",
56
- "@xyo-network/module-model": "~5.3.25",
57
- "@xyo-network/payload-model": "~5.3.25"
55
+ "@xyo-network/module-model": "~5.3.26",
56
+ "@xyo-network/payload-model": "~5.3.26",
57
+ "@xyo-network/diviner-model": "~5.3.26"
58
58
  },
59
59
  "peerDependencies": {
60
60
  "@xylabs/sdk-js": "^5",