@xyo-network/diviner-transform-model 5.3.20 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/diviner-transform-model",
3
- "version": "5.3.20",
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,22 +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
- "!**/*.test.*"
35
+ "!**/*.test.*",
36
+ "README.md"
37
37
  ],
38
38
  "dependencies": {
39
- "@xyo-network/diviner-model": "~5.3.20",
40
- "@xyo-network/payload-model": "~5.3.20"
39
+ "@xyo-network/diviner-model": "~5.3.24",
40
+ "@xyo-network/payload-model": "~5.3.24"
41
41
  },
42
42
  "devDependencies": {
43
- "@xylabs/sdk-js": "^5.0.90",
44
- "@xylabs/ts-scripts-common": "~7.5.6",
45
- "@xylabs/ts-scripts-yarn3": "~7.5.6",
46
- "@xylabs/tsconfig": "~7.5.6",
43
+ "@opentelemetry/api": "^1.9.1",
44
+ "@types/node": "^25.5.0",
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",
49
+ "acorn": "^8.16.0",
50
+ "axios": "^1.14.0",
51
+ "esbuild": "^0.28.0",
47
52
  "typescript": "~5.9.3",
48
- "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"
49
56
  },
50
57
  "peerDependencies": {
51
58
  "@xylabs/sdk-js": "^5",
@@ -54,4 +61,4 @@
54
61
  "publishConfig": {
55
62
  "access": "public"
56
63
  }
57
- }
64
+ }
@@ -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 }>
@@ -1,3 +0,0 @@
1
- export interface TransformSettings {
2
- transformMethod?: string
3
- }
@@ -1,3 +0,0 @@
1
- export interface TransformerSettings {
2
- jsonPathExpression?: string
3
- }
@@ -1,3 +0,0 @@
1
- export * from './Config.ts'
2
- export * from './TransformerSettings.ts'
3
- export * from './TransformSettings.ts'
@@ -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
- >
@@ -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
@@ -1,4 +0,0 @@
1
- import { asSchema } from '@xyo-network/payload-model'
2
-
3
- export const TransformDivinerSchema = asSchema('network.xyo.diviner.transform', true)
4
- export type TransformDivinerSchema = typeof TransformDivinerSchema
package/src/index.ts DELETED
@@ -1,5 +0,0 @@
1
- export * from './Config/index.ts'
2
- export * from './Payload/index.ts'
3
- export * from './PayloadValueTransformer.ts'
4
- export * from './Query.ts'
5
- export * from './Schema.ts'