@xyo-network/diviner-transform-model 5.3.22 → 5.3.24
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/package.json +12 -16
- package/src/Config/Config.ts +0 -10
- package/src/Config/TransformSettings.ts +0 -3
- package/src/Config/TransformerSettings.ts +0 -3
- package/src/Config/index.ts +0 -3
- package/src/Payload/Transform.ts +0 -15
- package/src/Payload/index.ts +0 -1
- package/src/PayloadValueTransformer.ts +0 -6
- package/src/Query.ts +0 -12
- package/src/Schema.ts +0 -4
- package/src/index.ts +0 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/diviner-transform-model",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.24",
|
|
4
4
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -30,33 +30,29 @@
|
|
|
30
30
|
"types": "dist/neutral/index.d.ts",
|
|
31
31
|
"files": [
|
|
32
32
|
"dist",
|
|
33
|
-
"src",
|
|
34
33
|
"!**/*.bench.*",
|
|
35
34
|
"!**/*.spec.*",
|
|
36
35
|
"!**/*.test.*",
|
|
37
36
|
"README.md"
|
|
38
37
|
],
|
|
39
38
|
"dependencies": {
|
|
40
|
-
"@xyo-network/diviner-model": "~5.3.
|
|
41
|
-
"@xyo-network/payload-model": "~5.3.
|
|
39
|
+
"@xyo-network/diviner-model": "~5.3.24",
|
|
40
|
+
"@xyo-network/payload-model": "~5.3.24"
|
|
42
41
|
},
|
|
43
42
|
"devDependencies": {
|
|
44
43
|
"@opentelemetry/api": "^1.9.1",
|
|
45
44
|
"@types/node": "^25.5.0",
|
|
46
|
-
"@xylabs/sdk-js": "^5.0.
|
|
47
|
-
"@xylabs/ts-scripts-common": "~7.6.
|
|
48
|
-
"@xylabs/ts-scripts-
|
|
49
|
-
"@xylabs/tsconfig": "~7.6.
|
|
50
|
-
"@xyo-network/diviner-model": "~5.3.22",
|
|
51
|
-
"@xyo-network/payload-model": "~5.3.22",
|
|
45
|
+
"@xylabs/sdk-js": "^5.0.93",
|
|
46
|
+
"@xylabs/ts-scripts-common": "~7.6.16",
|
|
47
|
+
"@xylabs/ts-scripts-pnpm": "~7.6.16",
|
|
48
|
+
"@xylabs/tsconfig": "~7.6.16",
|
|
52
49
|
"acorn": "^8.16.0",
|
|
53
50
|
"axios": "^1.14.0",
|
|
54
|
-
"
|
|
55
|
-
"esbuild": "^0.27.4",
|
|
56
|
-
"eslint": "^10.1.0",
|
|
57
|
-
"rollup": "^4.60.1",
|
|
51
|
+
"esbuild": "^0.28.0",
|
|
58
52
|
"typescript": "~5.9.3",
|
|
59
|
-
"zod": "^4.3.6"
|
|
53
|
+
"zod": "^4.3.6",
|
|
54
|
+
"@xyo-network/diviner-model": "~5.3.24",
|
|
55
|
+
"@xyo-network/payload-model": "~5.3.24"
|
|
60
56
|
},
|
|
61
57
|
"peerDependencies": {
|
|
62
58
|
"@xylabs/sdk-js": "^5",
|
|
@@ -65,4 +61,4 @@
|
|
|
65
61
|
"publishConfig": {
|
|
66
62
|
"access": "public"
|
|
67
63
|
}
|
|
68
|
-
}
|
|
64
|
+
}
|
package/src/Config/Config.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { DivinerConfig } from '@xyo-network/diviner-model'
|
|
2
|
-
import { asSchema } from '@xyo-network/payload-model'
|
|
3
|
-
|
|
4
|
-
import type { TransformDictionary } from '../Payload/index.ts'
|
|
5
|
-
import { TransformDivinerSchema } from '../Schema.ts'
|
|
6
|
-
|
|
7
|
-
export const TransformDivinerConfigSchema = asSchema(`${TransformDivinerSchema}.config`, true)
|
|
8
|
-
export type TransformDivinerConfigSchema = typeof TransformDivinerConfigSchema
|
|
9
|
-
|
|
10
|
-
export type TransformDivinerConfig = DivinerConfig<{ transform?: TransformDictionary } & { schema: TransformDivinerConfigSchema }>
|
package/src/Config/index.ts
DELETED
package/src/Payload/Transform.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { Payload } from '@xyo-network/payload-model'
|
|
2
|
-
|
|
3
|
-
import type { TransformDivinerSchema } from '../Schema.ts'
|
|
4
|
-
|
|
5
|
-
export type TransformDictionary = { [key: string]: string }
|
|
6
|
-
|
|
7
|
-
export type Transform = Payload<
|
|
8
|
-
{
|
|
9
|
-
// TODO: Allow dest schema?
|
|
10
|
-
// destinationSchema: string
|
|
11
|
-
// TODO: Make Plural?
|
|
12
|
-
transform: TransformDictionary
|
|
13
|
-
},
|
|
14
|
-
TransformDivinerSchema
|
|
15
|
-
>
|
package/src/Payload/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Transform.ts'
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { JsonValue } from '@xylabs/sdk-js'
|
|
2
|
-
import type { Payload } from '@xyo-network/payload-model'
|
|
3
|
-
|
|
4
|
-
export type PayloadValueTransformer<TSource extends Payload = Payload> = (payload: TSource) => JsonValue
|
|
5
|
-
|
|
6
|
-
export type PayloadTransformer<TSource extends Payload = Payload, TDestination extends Payload = Payload> = (payload: TSource) => TDestination
|
package/src/Query.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
asSchema, type Payload, type Query,
|
|
3
|
-
} from '@xyo-network/payload-model'
|
|
4
|
-
|
|
5
|
-
import type { TransformSettings } from './Config/index.ts'
|
|
6
|
-
import { TransformDivinerSchema } from './Schema.ts'
|
|
7
|
-
|
|
8
|
-
export const TransformDivinerQuerySchema = asSchema(`${TransformDivinerSchema}.query`, true)
|
|
9
|
-
export type TransformDivinerQuerySchema = typeof TransformDivinerQuerySchema
|
|
10
|
-
|
|
11
|
-
export type TransformDivinerQueryPayload = Query<{ schema: TransformDivinerQuerySchema } & Partial<TransformSettings>>
|
|
12
|
-
export const isTransformDivinerQueryPayload = (x?: Payload | null): x is TransformDivinerQueryPayload => x?.schema === TransformDivinerQuerySchema
|
package/src/Schema.ts
DELETED