@xyo-network/xml-plugin 4.0.0 → 4.1.0

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 (28) hide show
  1. package/dist/neutral/Diviner/lib/spec/toXml.spec.d.ts +2 -0
  2. package/dist/neutral/Diviner/lib/spec/toXml.spec.d.ts.map +1 -0
  3. package/dist/neutral/Diviner/spec/Diviner.spec.d.ts +2 -0
  4. package/dist/neutral/Diviner/spec/Diviner.spec.d.ts.map +1 -0
  5. package/dist/neutral/index.d.ts +55 -0
  6. package/package.json +14 -14
  7. package/dist/types/index.d.ts +0 -4
  8. /package/dist/{types → neutral}/Diviner/Config.d.ts +0 -0
  9. /package/dist/{types → neutral}/Diviner/Config.d.ts.map +0 -0
  10. /package/dist/{types → neutral}/Diviner/Diviner.d.ts +0 -0
  11. /package/dist/{types → neutral}/Diviner/Diviner.d.ts.map +0 -0
  12. /package/dist/{types → neutral}/Diviner/Params.d.ts +0 -0
  13. /package/dist/{types → neutral}/Diviner/Params.d.ts.map +0 -0
  14. /package/dist/{types → neutral}/Diviner/Schema.d.ts +0 -0
  15. /package/dist/{types → neutral}/Diviner/Schema.d.ts.map +0 -0
  16. /package/dist/{types → neutral}/Diviner/index.d.ts +0 -0
  17. /package/dist/{types → neutral}/Diviner/index.d.ts.map +0 -0
  18. /package/dist/{types → neutral}/Diviner/lib/StringDataField.d.ts +0 -0
  19. /package/dist/{types → neutral}/Diviner/lib/StringDataField.d.ts.map +0 -0
  20. /package/dist/{types → neutral}/Diviner/lib/index.d.ts +0 -0
  21. /package/dist/{types → neutral}/Diviner/lib/index.d.ts.map +0 -0
  22. /package/dist/{types → neutral}/Diviner/lib/toXml.d.ts +0 -0
  23. /package/dist/{types → neutral}/Diviner/lib/toXml.d.ts.map +0 -0
  24. /package/dist/{types → neutral}/Payload.d.ts +0 -0
  25. /package/dist/{types → neutral}/Payload.d.ts.map +0 -0
  26. /package/dist/{types → neutral}/Schema.d.ts +0 -0
  27. /package/dist/{types → neutral}/Schema.d.ts.map +0 -0
  28. /package/dist/{types → neutral}/index.d.ts.map +0 -0
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=toXml.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toXml.spec.d.ts","sourceRoot":"","sources":["../../../../../src/Diviner/lib/spec/toXml.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import '@xylabs/vitest-extended';
2
+ //# sourceMappingURL=Diviner.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Diviner.spec.d.ts","sourceRoot":"","sources":["../../../../src/Diviner/spec/Diviner.spec.ts"],"names":[],"mappings":"AAAA,OAAO,yBAAyB,CAAA"}
@@ -0,0 +1,55 @@
1
+ import { DivinerConfig, DivinerParams, DivinerModuleEventData, DivinerInstance } from '@xyo-network/diviner-model';
2
+ import { AbstractDiviner } from '@xyo-network/diviner-abstract';
3
+ import * as _xyo_network_payload_model from '@xyo-network/payload-model';
4
+ import { Payload, Schema } from '@xyo-network/payload-model';
5
+ import { JsonObject } from '@xylabs/object';
6
+ import { AnyConfigSchema } from '@xyo-network/module-model';
7
+
8
+ declare const XmlParsingDivinerConfigSchema: "network.xyo.diviner.xml.config";
9
+ type XmlParsingDivinerConfigSchema = typeof XmlParsingDivinerConfigSchema;
10
+
11
+ type XmlParsingDivinerConfig = DivinerConfig<{}, XmlParsingDivinerConfigSchema>;
12
+
13
+ declare const XmlSchema = "network.xyo.xml";
14
+ type XmlSchema = typeof XmlSchema;
15
+
16
+ /**
17
+ * The fields of an Xml Payload
18
+ */
19
+ interface XmlFields {
20
+ xml: JsonObject;
21
+ }
22
+ /**
23
+ * An Xml Payload
24
+ */
25
+ type Xml = Payload<XmlFields, XmlSchema>;
26
+ /**
27
+ * Identity function for determine if an object is an Xml Payload
28
+ */
29
+ declare const isXml: (x?: unknown | null) => x is Xml;
30
+ /**
31
+ * Identity function for determine if an object is an Xml Payload with sources
32
+ */
33
+ declare const isXmlWithSources: (x?: unknown | null) => x is _xyo_network_payload_model.WithSources<Xml>;
34
+
35
+ /**
36
+ * Interface representing an object with a string data field
37
+ */
38
+ interface StringDataField {
39
+ /**
40
+ * The string data
41
+ */
42
+ data: string;
43
+ }
44
+
45
+ type XmlParsingDivinerParams<TConfig extends AnyConfigSchema<XmlParsingDivinerConfig> = AnyConfigSchema<XmlParsingDivinerConfig>> = DivinerParams<TConfig>;
46
+
47
+ declare class XmlParsingDiviner<TParams extends XmlParsingDivinerParams = XmlParsingDivinerParams, TIn extends Payload<StringDataField> = Payload<StringDataField>, TOut extends Xml | Payload = Xml | Payload, TEventData extends DivinerModuleEventData<DivinerInstance<TParams, TIn, TOut>, TIn, TOut> = DivinerModuleEventData<DivinerInstance<TParams, TIn, TOut>, TIn, TOut>> extends AbstractDiviner<TParams, TIn, TOut, TEventData> {
48
+ static readonly configSchemas: Schema[];
49
+ static readonly defaultConfigSchema: Schema;
50
+ static readonly targetSchema = "network.xyo.xml";
51
+ protected divineHandler(payloads?: TIn[]): Promise<TOut[]>;
52
+ }
53
+
54
+ export { XmlParsingDiviner, XmlSchema, isXml, isXmlWithSources };
55
+ export type { Xml, XmlFields, XmlParsingDivinerConfig };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/xml-plugin",
3
- "version": "4.0.0",
3
+ "version": "4.1.0",
4
4
  "description": "Typescript/Javascript Plugins for XYO Platform",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -21,29 +21,29 @@
21
21
  "type": "module",
22
22
  "exports": {
23
23
  ".": {
24
- "types": "./dist/types/index.d.ts",
24
+ "types": "./dist/neutral/index.d.ts",
25
25
  "default": "./dist/neutral/index.mjs"
26
26
  },
27
27
  "./package.json": "./package.json"
28
28
  },
29
29
  "module": "dist/neutral/index.mjs",
30
- "types": "dist/types/index.d.ts",
30
+ "types": "dist/neutral/index.d.ts",
31
31
  "dependencies": {
32
- "@xylabs/object": "^4.12.31",
33
- "@xyo-network/diviner-abstract": "^4.0.1",
34
- "@xyo-network/diviner-model": "^4.0.1",
35
- "@xyo-network/module-model": "^4.0.1",
36
- "@xyo-network/payload-model": "^4.0.1",
32
+ "@xylabs/object": "^4.13.15",
33
+ "@xyo-network/diviner-abstract": "^4.1.1",
34
+ "@xyo-network/diviner-model": "^4.1.1",
35
+ "@xyo-network/module-model": "^4.1.1",
36
+ "@xyo-network/payload-model": "^4.1.1",
37
37
  "xml2js": "^0.6.2"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@types/xml2js": "^0.4.14",
41
- "@xylabs/assert": "^4.12.31",
42
- "@xylabs/ts-scripts-yarn3": "^6.5.12",
43
- "@xylabs/tsconfig": "^6.5.12",
44
- "@xylabs/vitest-extended": "^4.12.31",
45
- "@xylabs/vitest-matchers": "^4.12.31",
46
- "@xyo-network/api-call-witness": "^4.0.0",
41
+ "@xylabs/assert": "^4.13.15",
42
+ "@xylabs/ts-scripts-yarn3": "^7.0.0-rc.24",
43
+ "@xylabs/tsconfig": "^7.0.0-rc.24",
44
+ "@xylabs/vitest-extended": "^4.13.15",
45
+ "@xylabs/vitest-matchers": "^4.13.15",
46
+ "@xyo-network/api-call-witness": "^4.1.0",
47
47
  "knip": "^5.61.3",
48
48
  "typescript": "^5.8.3",
49
49
  "vitest": "^3.2.4"
@@ -1,4 +0,0 @@
1
- export * from './Diviner/index.ts';
2
- export * from './Payload.ts';
3
- export * from './Schema.ts';
4
- //# sourceMappingURL=index.d.ts.map
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes