@xyo-network/diviner-transform-model 4.1.2 → 4.1.3

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.
@@ -1,42 +1,6 @@
1
- import { DivinerConfig } from '@xyo-network/diviner-model';
2
- import { Payload, Query } from '@xyo-network/payload-model';
3
- import { JsonValue } from '@xylabs/object';
4
-
5
- declare const TransformDivinerSchema: "network.xyo.diviner.transform";
6
- type TransformDivinerSchema = typeof TransformDivinerSchema;
7
-
8
- type TransformDictionary = {
9
- [key: string]: string;
10
- };
11
- type Transform = Payload<{
12
- transform: TransformDictionary;
13
- }, TransformDivinerSchema>;
14
-
15
- type TransformDivinerConfigSchema = `${TransformDivinerSchema}.config`;
16
- declare const TransformDivinerConfigSchema: TransformDivinerConfigSchema;
17
- type TransformDivinerConfig = DivinerConfig<{
18
- transform?: TransformDictionary;
19
- } & {
20
- schema: TransformDivinerConfigSchema;
21
- }>;
22
-
23
- interface TransformerSettings {
24
- jsonPathExpression?: string;
25
- }
26
-
27
- interface TransformSettings {
28
- transformMethod?: string;
29
- }
30
-
31
- type PayloadValueTransformer<TSource extends Payload = Payload> = (payload: TSource) => JsonValue;
32
- type PayloadTransformer<TSource extends Payload = Payload, TDestination extends Payload = Payload> = (payload: TSource) => TDestination;
33
-
34
- type TransformDivinerQuerySchema = `${TransformDivinerSchema}.query`;
35
- declare const TransformDivinerQuerySchema: TransformDivinerQuerySchema;
36
- type TransformDivinerQueryPayload = Query<{
37
- schema: TransformDivinerQuerySchema;
38
- } & Partial<TransformSettings>>;
39
- declare const isTransformDivinerQueryPayload: (x?: Payload | null) => x is TransformDivinerQueryPayload;
40
-
41
- export { TransformDivinerConfigSchema, TransformDivinerQuerySchema, TransformDivinerSchema, isTransformDivinerQueryPayload };
42
- export type { PayloadTransformer, PayloadValueTransformer, Transform, TransformDictionary, TransformDivinerConfig, TransformDivinerQueryPayload, TransformSettings, TransformerSettings };
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';
6
+ //# sourceMappingURL=index.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/diviner-transform-model",
3
- "version": "4.1.2",
3
+ "version": "4.1.3",
4
4
  "description": "Primary SDK for using XYO Protocol 2.0",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -29,13 +29,13 @@
29
29
  "module": "dist/neutral/index.mjs",
30
30
  "types": "dist/neutral/index.d.ts",
31
31
  "dependencies": {
32
- "@xylabs/object": "^4.13.15",
33
- "@xyo-network/diviner-model": "^4.1.2",
34
- "@xyo-network/payload-model": "^4.1.2"
32
+ "@xylabs/object": "^4.13.16",
33
+ "@xyo-network/diviner-model": "^4.1.3",
34
+ "@xyo-network/payload-model": "^4.1.3"
35
35
  },
36
36
  "devDependencies": {
37
- "@xylabs/ts-scripts-yarn3": "^7.0.0-rc.23",
38
- "@xylabs/tsconfig": "^7.0.0-rc.23",
37
+ "@xylabs/ts-scripts-yarn3": "^7.0.0-rc.27",
38
+ "@xylabs/tsconfig": "^7.0.0-rc.27",
39
39
  "typescript": "^5.8.3"
40
40
  },
41
41
  "publishConfig": {