@xyo-network/tzero-stock-market-plugin 3.4.1 → 3.4.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.
Files changed (23) hide show
  1. package/dist/neutral/Diviner/ApiCallJsonResultToSnapshot/Config.d.ts +6 -0
  2. package/dist/neutral/Diviner/ApiCallJsonResultToSnapshot/Config.d.ts.map +1 -0
  3. package/dist/neutral/Diviner/ApiCallJsonResultToSnapshot/Diviner.d.ts +14 -0
  4. package/dist/neutral/Diviner/ApiCallJsonResultToSnapshot/Diviner.d.ts.map +1 -0
  5. package/dist/neutral/Diviner/ApiCallJsonResultToSnapshot/Schema.d.ts +3 -0
  6. package/dist/neutral/Diviner/ApiCallJsonResultToSnapshot/Schema.d.ts.map +1 -0
  7. package/dist/neutral/Diviner/ApiCallJsonResultToSnapshot/index.d.ts +4 -0
  8. package/dist/neutral/Diviner/ApiCallJsonResultToSnapshot/index.d.ts.map +1 -0
  9. package/dist/neutral/Diviner/ApiCallJsonResultToSnapshot/lib/index.d.ts +2 -0
  10. package/dist/neutral/Diviner/ApiCallJsonResultToSnapshot/lib/index.d.ts.map +1 -0
  11. package/dist/neutral/Diviner/ApiCallJsonResultToSnapshot/lib/tryMapToSnapshot.d.ts +3 -0
  12. package/dist/neutral/Diviner/ApiCallJsonResultToSnapshot/lib/tryMapToSnapshot.d.ts.map +1 -0
  13. package/dist/neutral/Diviner/index.d.ts +2 -0
  14. package/dist/neutral/Diviner/index.d.ts.map +1 -0
  15. package/dist/neutral/index.d.ts +2 -22
  16. package/dist/neutral/index.d.ts.map +1 -0
  17. package/dist/neutral/index.mjs +3 -1
  18. package/dist/neutral/index.mjs.map +1 -1
  19. package/package.json +16 -16
  20. package/src/Diviner/ApiCallJsonResultToSnapshot/Config.ts +2 -2
  21. package/src/Diviner/ApiCallJsonResultToSnapshot/Diviner.ts +7 -9
  22. package/src/Diviner/ApiCallJsonResultToSnapshot/lib/tryMapToSnapshot.ts +4 -3
  23. package/xy.config.ts +1 -1
@@ -0,0 +1,6 @@
1
+ import { DivinerConfig } from '@xyo-network/diviner-model';
2
+ import { TZeroApiCallJsonResultToSnapshotDivinerConfigSchema } from './Schema.ts';
3
+ export type TZeroStockMarketDivinerConfig = DivinerConfig<{
4
+ schema: TZeroApiCallJsonResultToSnapshotDivinerConfigSchema;
5
+ }>;
6
+ //# sourceMappingURL=Config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../../../src/Diviner/ApiCallJsonResultToSnapshot/Config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAE1D,OAAO,EAAE,mDAAmD,EAAE,MAAM,aAAa,CAAA;AAEjF,MAAM,MAAM,6BAA6B,GAAG,aAAa,CAAC;IACxD,MAAM,EAAE,mDAAmD,CAAA;CAC5D,CAAC,CAAA"}
@@ -0,0 +1,14 @@
1
+ import { Promisable } from '@xylabs/promise';
2
+ import { AbstractDiviner } from '@xyo-network/diviner-abstract';
3
+ import { DivinerParams } from '@xyo-network/diviner-model';
4
+ import { AnyConfigSchema } from '@xyo-network/module-model';
5
+ import { Payload, Schema } from '@xyo-network/payload-model';
6
+ import { Snapshot } from '@xyo-network/tzero-stock-market-payload-plugin';
7
+ import { TZeroStockMarketDivinerConfig } from './Config.ts';
8
+ export type TZeroApiCallJsonResultToSnapshotDivinerParams = DivinerParams<AnyConfigSchema<TZeroStockMarketDivinerConfig>>;
9
+ export declare class TZeroApiCallJsonResultToSnapshotDiviner<TParams extends TZeroApiCallJsonResultToSnapshotDivinerParams = TZeroApiCallJsonResultToSnapshotDivinerParams> extends AbstractDiviner<TParams> {
10
+ static readonly configSchemas: Schema[];
11
+ static readonly defaultConfigSchema: Schema;
12
+ protected divineHandler(payloads?: Payload[]): Promisable<Payload<Snapshot>[]>;
13
+ }
14
+ //# sourceMappingURL=Diviner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Diviner.d.ts","sourceRoot":"","sources":["../../../../src/Diviner/ApiCallJsonResultToSnapshot/Diviner.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAC/D,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAC3D,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,gDAAgD,CAAA;AAEzE,OAAO,EAAE,6BAA6B,EAAE,MAAM,aAAa,CAAA;AAI3D,MAAM,MAAM,6CAA6C,GAAG,aAAa,CAAC,eAAe,CAAC,6BAA6B,CAAC,CAAC,CAAA;AAEzH,qBAAa,uCAAuC,CAClD,OAAO,SAAS,6CAA6C,GAAG,6CAA6C,CAC7G,SAAQ,eAAe,CAAC,OAAO,CAAC;IAChC,gBAAyB,aAAa,EAAE,MAAM,EAAE,CAAgF;IAChI,gBAAyB,mBAAmB,EAAE,MAAM,CAAsD;cAEvF,aAAa,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,GAAG,UAAU,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC;CAKxF"}
@@ -0,0 +1,3 @@
1
+ export type TZeroApiCallJsonResultToSnapshotDivinerConfigSchema = 'network.xyo.stock.market.tzero.api.snapshot.diviner.config';
2
+ export declare const TZeroApiCallJsonResultToSnapshotDivinerConfigSchema: TZeroApiCallJsonResultToSnapshotDivinerConfigSchema;
3
+ //# sourceMappingURL=Schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../../src/Diviner/ApiCallJsonResultToSnapshot/Schema.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,mDAAmD,GAAG,4DAA4D,CAAA;AAC9H,eAAO,MAAM,mDAAmD,EAAE,mDACF,CAAA"}
@@ -0,0 +1,4 @@
1
+ export * from './Config.ts';
2
+ export * from './Diviner.ts';
3
+ export * from './Schema.ts';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Diviner/ApiCallJsonResultToSnapshot/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from './tryMapToSnapshot.ts';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/Diviner/ApiCallJsonResultToSnapshot/lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { Snapshot } from '@xyo-network/tzero-stock-market-payload-plugin';
2
+ export declare const tryMapToSnapshot: (response?: unknown) => Snapshot | undefined;
3
+ //# sourceMappingURL=tryMapToSnapshot.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tryMapToSnapshot.d.ts","sourceRoot":"","sources":["../../../../../src/Diviner/ApiCallJsonResultToSnapshot/lib/tryMapToSnapshot.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,QAAQ,EACT,MAAM,gDAAgD,CAAA;AAQvD,eAAO,MAAM,gBAAgB,GAAI,WAAW,OAAO,KAAG,QAAQ,GAAG,SA4BhE,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from './ApiCallJsonResultToSnapshot/index.ts';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Diviner/index.ts"],"names":[],"mappings":"AAAA,cAAc,wCAAwC,CAAA"}
@@ -1,22 +1,2 @@
1
- import { DivinerConfig, DivinerParams } from '@xyo-network/diviner-model';
2
- import { Promisable } from '@xylabs/promise';
3
- import { AbstractDiviner } from '@xyo-network/diviner-abstract';
4
- import { AnyConfigSchema } from '@xyo-network/module-model';
5
- import { Schema, Payload, WithOptionalSources } from '@xyo-network/payload-model';
6
- import { Snapshot } from '@xyo-network/tzero-stock-market-payload-plugin';
7
-
8
- type TZeroApiCallJsonResultToSnapshotDivinerConfigSchema = 'network.xyo.stock.market.tzero.api.snapshot.diviner.config';
9
- declare const TZeroApiCallJsonResultToSnapshotDivinerConfigSchema: TZeroApiCallJsonResultToSnapshotDivinerConfigSchema;
10
-
11
- type TZeroStockMarketDivinerConfig = DivinerConfig<{
12
- schema: TZeroApiCallJsonResultToSnapshotDivinerConfigSchema;
13
- }>;
14
-
15
- type TZeroApiCallJsonResultToSnapshotDivinerParams = DivinerParams<AnyConfigSchema<TZeroStockMarketDivinerConfig>>;
16
- declare class TZeroApiCallJsonResultToSnapshotDiviner<TParams extends TZeroApiCallJsonResultToSnapshotDivinerParams = TZeroApiCallJsonResultToSnapshotDivinerParams> extends AbstractDiviner<TParams> {
17
- static readonly configSchemas: Schema[];
18
- static readonly defaultConfigSchema: Schema;
19
- protected divineHandler(payloads?: Payload[]): Promisable<WithOptionalSources<Snapshot>[]>;
20
- }
21
-
22
- export { TZeroApiCallJsonResultToSnapshotDiviner, TZeroApiCallJsonResultToSnapshotDivinerConfigSchema, type TZeroApiCallJsonResultToSnapshotDivinerParams, type TZeroStockMarketDivinerConfig };
1
+ export * from './Diviner/index.ts';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA"}
@@ -4,7 +4,9 @@ import { AbstractDiviner } from "@xyo-network/diviner-abstract";
4
4
 
5
5
  // src/Diviner/ApiCallJsonResultToSnapshot/lib/tryMapToSnapshot.ts
6
6
  import { isApiCallJsonResult } from "@xyo-network/api-call-witness";
7
- import { SnapshotSchema } from "@xyo-network/tzero-stock-market-payload-plugin";
7
+ import {
8
+ SnapshotSchema
9
+ } from "@xyo-network/tzero-stock-market-payload-plugin";
8
10
  var isSnapshotApiCallJsonResult = isApiCallJsonResult;
9
11
  var numberOrNull = (value) => typeof value === "number" ? value : null;
10
12
  var tryMapToSnapshot = (response) => {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/Diviner/ApiCallJsonResultToSnapshot/Diviner.ts","../../src/Diviner/ApiCallJsonResultToSnapshot/lib/tryMapToSnapshot.ts","../../src/Diviner/ApiCallJsonResultToSnapshot/Schema.ts"],"sourcesContent":["import { exists } from '@xylabs/exists'\nimport type { Promisable } from '@xylabs/promise'\nimport { AbstractDiviner } from '@xyo-network/diviner-abstract'\nimport type { DivinerParams } from '@xyo-network/diviner-model'\nimport type { AnyConfigSchema } from '@xyo-network/module-model'\nimport type {\n Payload, Schema, WithOptionalSources,\n} from '@xyo-network/payload-model'\nimport type { Snapshot } from '@xyo-network/tzero-stock-market-payload-plugin'\n\nimport type { TZeroStockMarketDivinerConfig } from './Config.ts'\nimport { tryMapToSnapshot } from './lib/index.ts'\nimport { TZeroApiCallJsonResultToSnapshotDivinerConfigSchema } from './Schema.ts'\n\nexport type TZeroApiCallJsonResultToSnapshotDivinerParams = DivinerParams<AnyConfigSchema<TZeroStockMarketDivinerConfig>>\n\nexport class TZeroApiCallJsonResultToSnapshotDiviner<\n TParams extends TZeroApiCallJsonResultToSnapshotDivinerParams = TZeroApiCallJsonResultToSnapshotDivinerParams,\n> extends AbstractDiviner<TParams> {\n static override readonly configSchemas: Schema[] = [...super.configSchemas, TZeroApiCallJsonResultToSnapshotDivinerConfigSchema]\n static override readonly defaultConfigSchema: Schema = TZeroApiCallJsonResultToSnapshotDivinerConfigSchema\n\n protected override divineHandler(payloads?: Payload[]): Promisable<WithOptionalSources<Snapshot>[]> {\n if (!payloads) return []\n if (payloads.length === 0) return []\n return payloads.map(tryMapToSnapshot).filter(exists)\n }\n}\n","import type { JsonObject } from '@xylabs/object'\nimport { isApiCallJsonResult } from '@xyo-network/api-call-witness'\nimport type { Snapshot, SnapshotFields } from '@xyo-network/tzero-stock-market-payload-plugin'\nimport { SnapshotSchema } from '@xyo-network/tzero-stock-market-payload-plugin'\n\ninterface SnapshotJson extends JsonObject, SnapshotFields {}\n\nconst isSnapshotApiCallJsonResult = isApiCallJsonResult<SnapshotJson>\n\nconst numberOrNull = (value: unknown): number | null => (typeof value === 'number' ? value : null)\n\nexport const tryMapToSnapshot = (response?: unknown): Snapshot | undefined => {\n if (isSnapshotApiCallJsonResult(response)) {\n const data: Partial<SnapshotFields> = response.data\n const {\n symbol, timestamp, volume,\n } = data\n if (symbol === undefined || timestamp === undefined || volume === undefined) return undefined\n const fields = {\n askPrice: numberOrNull(data.askPrice),\n askPriceRate: numberOrNull(data.askPriceRate),\n askQtyBookTotal: numberOrNull(data.askQtyBookTotal),\n askQuantity: numberOrNull(data.askQuantity),\n bidPrice: numberOrNull(data.bidPrice),\n bidPriceRate: numberOrNull(data.bidPriceRate),\n bidQtyBookTotal: numberOrNull(data.bidQtyBookTotal),\n bidQuantity: numberOrNull(data.bidQuantity),\n high: numberOrNull(data.high),\n lastPrice: numberOrNull(data.lastPrice),\n lastQuantity: numberOrNull(data.lastQuantity),\n low: numberOrNull(data.low),\n open: numberOrNull(data.open),\n prevClosePx: numberOrNull(data.prevClosePx),\n symbol,\n timestamp,\n volume,\n }\n return { ...fields, schema: SnapshotSchema }\n }\n}\n","export type TZeroApiCallJsonResultToSnapshotDivinerConfigSchema = 'network.xyo.stock.market.tzero.api.snapshot.diviner.config'\nexport const TZeroApiCallJsonResultToSnapshotDivinerConfigSchema: TZeroApiCallJsonResultToSnapshotDivinerConfigSchema\n = 'network.xyo.stock.market.tzero.api.snapshot.diviner.config'\n"],"mappings":";AAAA,SAAS,cAAc;AAEvB,SAAS,uBAAuB;;;ACDhC,SAAS,2BAA2B;AAEpC,SAAS,sBAAsB;AAI/B,IAAM,8BAA8B;AAEpC,IAAM,eAAe,CAAC,UAAmC,OAAO,UAAU,WAAW,QAAQ;AAEtF,IAAM,mBAAmB,CAAC,aAA6C;AAC5E,MAAI,4BAA4B,QAAQ,GAAG;AACzC,UAAM,OAAgC,SAAS;AAC/C,UAAM;AAAA,MACJ;AAAA,MAAQ;AAAA,MAAW;AAAA,IACrB,IAAI;AACJ,QAAI,WAAW,UAAa,cAAc,UAAa,WAAW,OAAW,QAAO;AACpF,UAAM,SAAS;AAAA,MACb,UAAU,aAAa,KAAK,QAAQ;AAAA,MACpC,cAAc,aAAa,KAAK,YAAY;AAAA,MAC5C,iBAAiB,aAAa,KAAK,eAAe;AAAA,MAClD,aAAa,aAAa,KAAK,WAAW;AAAA,MAC1C,UAAU,aAAa,KAAK,QAAQ;AAAA,MACpC,cAAc,aAAa,KAAK,YAAY;AAAA,MAC5C,iBAAiB,aAAa,KAAK,eAAe;AAAA,MAClD,aAAa,aAAa,KAAK,WAAW;AAAA,MAC1C,MAAM,aAAa,KAAK,IAAI;AAAA,MAC5B,WAAW,aAAa,KAAK,SAAS;AAAA,MACtC,cAAc,aAAa,KAAK,YAAY;AAAA,MAC5C,KAAK,aAAa,KAAK,GAAG;AAAA,MAC1B,MAAM,aAAa,KAAK,IAAI;AAAA,MAC5B,aAAa,aAAa,KAAK,WAAW;AAAA,MAC1C;AAAA,MACA;AAAA,MACA;AAAA,IACF;AACA,WAAO,EAAE,GAAG,QAAQ,QAAQ,eAAe;AAAA,EAC7C;AACF;;;ACtCO,IAAM,sDACT;;;AFcG,IAAM,0CAAN,cAEG,gBAAyB;AAAA,EACjC,OAAyB,gBAA0B,CAAC,GAAG,MAAM,eAAe,mDAAmD;AAAA,EAC/H,OAAyB,sBAA8B;AAAA,EAEpC,cAAc,UAAmE;AAClG,QAAI,CAAC,SAAU,QAAO,CAAC;AACvB,QAAI,SAAS,WAAW,EAAG,QAAO,CAAC;AACnC,WAAO,SAAS,IAAI,gBAAgB,EAAE,OAAO,MAAM;AAAA,EACrD;AACF;","names":[]}
1
+ {"version":3,"sources":["../../src/Diviner/ApiCallJsonResultToSnapshot/Diviner.ts","../../src/Diviner/ApiCallJsonResultToSnapshot/lib/tryMapToSnapshot.ts","../../src/Diviner/ApiCallJsonResultToSnapshot/Schema.ts"],"sourcesContent":["import { exists } from '@xylabs/exists'\nimport { Promisable } from '@xylabs/promise'\nimport { AbstractDiviner } from '@xyo-network/diviner-abstract'\nimport { DivinerParams } from '@xyo-network/diviner-model'\nimport { AnyConfigSchema } from '@xyo-network/module-model'\nimport { Payload, Schema } from '@xyo-network/payload-model'\nimport { Snapshot } from '@xyo-network/tzero-stock-market-payload-plugin'\n\nimport { TZeroStockMarketDivinerConfig } from './Config.ts'\nimport { tryMapToSnapshot } from './lib/index.ts'\nimport { TZeroApiCallJsonResultToSnapshotDivinerConfigSchema } from './Schema.ts'\n\nexport type TZeroApiCallJsonResultToSnapshotDivinerParams = DivinerParams<AnyConfigSchema<TZeroStockMarketDivinerConfig>>\n\nexport class TZeroApiCallJsonResultToSnapshotDiviner<\n TParams extends TZeroApiCallJsonResultToSnapshotDivinerParams = TZeroApiCallJsonResultToSnapshotDivinerParams,\n> extends AbstractDiviner<TParams> {\n static override readonly configSchemas: Schema[] = [...super.configSchemas, TZeroApiCallJsonResultToSnapshotDivinerConfigSchema]\n static override readonly defaultConfigSchema: Schema = TZeroApiCallJsonResultToSnapshotDivinerConfigSchema\n\n protected override divineHandler(payloads?: Payload[]): Promisable<Payload<Snapshot>[]> {\n if (!payloads) return []\n if (payloads.length === 0) return []\n return payloads.map(tryMapToSnapshot).filter(exists)\n }\n}\n","import { JsonObject } from '@xylabs/object'\nimport { isApiCallJsonResult } from '@xyo-network/api-call-witness'\nimport {\n Snapshot, SnapshotFields, SnapshotSchema,\n} from '@xyo-network/tzero-stock-market-payload-plugin'\n\ninterface SnapshotJson extends JsonObject, SnapshotFields {}\n\nconst isSnapshotApiCallJsonResult = isApiCallJsonResult<SnapshotJson>\n\nconst numberOrNull = (value: unknown): number | null => (typeof value === 'number' ? value : null)\n\nexport const tryMapToSnapshot = (response?: unknown): Snapshot | undefined => {\n if (isSnapshotApiCallJsonResult(response)) {\n const data: Partial<SnapshotFields> = response.data\n const {\n symbol, timestamp, volume,\n } = data\n if (symbol === undefined || timestamp === undefined || volume === undefined) return undefined\n const fields = {\n askPrice: numberOrNull(data.askPrice),\n askPriceRate: numberOrNull(data.askPriceRate),\n askQtyBookTotal: numberOrNull(data.askQtyBookTotal),\n askQuantity: numberOrNull(data.askQuantity),\n bidPrice: numberOrNull(data.bidPrice),\n bidPriceRate: numberOrNull(data.bidPriceRate),\n bidQtyBookTotal: numberOrNull(data.bidQtyBookTotal),\n bidQuantity: numberOrNull(data.bidQuantity),\n high: numberOrNull(data.high),\n lastPrice: numberOrNull(data.lastPrice),\n lastQuantity: numberOrNull(data.lastQuantity),\n low: numberOrNull(data.low),\n open: numberOrNull(data.open),\n prevClosePx: numberOrNull(data.prevClosePx),\n symbol,\n timestamp,\n volume,\n }\n return { ...fields, schema: SnapshotSchema }\n }\n}\n","export type TZeroApiCallJsonResultToSnapshotDivinerConfigSchema = 'network.xyo.stock.market.tzero.api.snapshot.diviner.config'\nexport const TZeroApiCallJsonResultToSnapshotDivinerConfigSchema: TZeroApiCallJsonResultToSnapshotDivinerConfigSchema\n = 'network.xyo.stock.market.tzero.api.snapshot.diviner.config'\n"],"mappings":";AAAA,SAAS,cAAc;AAEvB,SAAS,uBAAuB;;;ACDhC,SAAS,2BAA2B;AACpC;AAAA,EAC4B;AAAA,OACrB;AAIP,IAAM,8BAA8B;AAEpC,IAAM,eAAe,CAAC,UAAmC,OAAO,UAAU,WAAW,QAAQ;AAEtF,IAAM,mBAAmB,CAAC,aAA6C;AAC5E,MAAI,4BAA4B,QAAQ,GAAG;AACzC,UAAM,OAAgC,SAAS;AAC/C,UAAM;AAAA,MACJ;AAAA,MAAQ;AAAA,MAAW;AAAA,IACrB,IAAI;AACJ,QAAI,WAAW,UAAa,cAAc,UAAa,WAAW,OAAW,QAAO;AACpF,UAAM,SAAS;AAAA,MACb,UAAU,aAAa,KAAK,QAAQ;AAAA,MACpC,cAAc,aAAa,KAAK,YAAY;AAAA,MAC5C,iBAAiB,aAAa,KAAK,eAAe;AAAA,MAClD,aAAa,aAAa,KAAK,WAAW;AAAA,MAC1C,UAAU,aAAa,KAAK,QAAQ;AAAA,MACpC,cAAc,aAAa,KAAK,YAAY;AAAA,MAC5C,iBAAiB,aAAa,KAAK,eAAe;AAAA,MAClD,aAAa,aAAa,KAAK,WAAW;AAAA,MAC1C,MAAM,aAAa,KAAK,IAAI;AAAA,MAC5B,WAAW,aAAa,KAAK,SAAS;AAAA,MACtC,cAAc,aAAa,KAAK,YAAY;AAAA,MAC5C,KAAK,aAAa,KAAK,GAAG;AAAA,MAC1B,MAAM,aAAa,KAAK,IAAI;AAAA,MAC5B,aAAa,aAAa,KAAK,WAAW;AAAA,MAC1C;AAAA,MACA;AAAA,MACA;AAAA,IACF;AACA,WAAO,EAAE,GAAG,QAAQ,QAAQ,eAAe;AAAA,EAC7C;AACF;;;ACvCO,IAAM,sDACT;;;AFYG,IAAM,0CAAN,cAEG,gBAAyB;AAAA,EACjC,OAAyB,gBAA0B,CAAC,GAAG,MAAM,eAAe,mDAAmD;AAAA,EAC/H,OAAyB,sBAA8B;AAAA,EAEpC,cAAc,UAAuD;AACtF,QAAI,CAAC,SAAU,QAAO,CAAC;AACvB,QAAI,SAAS,WAAW,EAAG,QAAO,CAAC;AACnC,WAAO,SAAS,IAAI,gBAAgB,EAAE,OAAO,MAAM;AAAA,EACrD;AACF;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/tzero-stock-market-plugin",
3
- "version": "3.4.1",
3
+ "version": "3.4.3",
4
4
  "description": "Typescript/Javascript Plugins for XYO Platform",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -32,25 +32,25 @@
32
32
  "@xylabs/exists": "^4.5.1",
33
33
  "@xylabs/object": "^4.5.1",
34
34
  "@xylabs/promise": "^4.5.1",
35
- "@xyo-network/api-call-witness": "^3.4.1",
36
- "@xyo-network/diviner-abstract": "^3.8.5",
37
- "@xyo-network/diviner-model": "^3.8.5",
38
- "@xyo-network/module-model": "^3.8.5",
39
- "@xyo-network/payload-model": "^3.8.5",
40
- "@xyo-network/tzero-stock-market-payload-plugin": "^3.4.1"
35
+ "@xyo-network/api-call-witness": "^3.4.3",
36
+ "@xyo-network/diviner-abstract": "^3.9.23",
37
+ "@xyo-network/diviner-model": "^3.9.23",
38
+ "@xyo-network/module-model": "^3.9.23",
39
+ "@xyo-network/payload-model": "^3.9.23",
40
+ "@xyo-network/tzero-stock-market-payload-plugin": "^3.4.3"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@xylabs/assert": "^4.5.1",
44
- "@xylabs/ts-scripts-yarn3": "^5.0.22",
45
- "@xylabs/tsconfig": "^5.0.22",
44
+ "@xylabs/ts-scripts-yarn3": "^5.0.39",
45
+ "@xylabs/tsconfig": "^5.0.39",
46
46
  "@xylabs/vitest-extended": "^4.5.1",
47
- "@xyo-network/account": "^3.8.5",
48
- "@xyo-network/manifest": "^3.8.5",
49
- "@xyo-network/module-factory-locator": "^3.8.5",
50
- "@xyo-network/sentinel-model": "^3.8.5",
51
- "@xyo-network/witness-model": "^3.8.5",
52
- "typescript": "^5.7.3",
53
- "vitest": "^3.0.5"
47
+ "@xyo-network/account": "^3.9.23",
48
+ "@xyo-network/manifest": "^3.9.23",
49
+ "@xyo-network/module-factory-locator": "^3.9.23",
50
+ "@xyo-network/sentinel-model": "^3.9.23",
51
+ "@xyo-network/witness-model": "^3.9.23",
52
+ "typescript": "^5.8.2",
53
+ "vitest": "^3.0.7"
54
54
  },
55
55
  "publishConfig": {
56
56
  "access": "public"
@@ -1,6 +1,6 @@
1
- import type { DivinerConfig } from '@xyo-network/diviner-model'
1
+ import { DivinerConfig } from '@xyo-network/diviner-model'
2
2
 
3
- import type { TZeroApiCallJsonResultToSnapshotDivinerConfigSchema } from './Schema.ts'
3
+ import { TZeroApiCallJsonResultToSnapshotDivinerConfigSchema } from './Schema.ts'
4
4
 
5
5
  export type TZeroStockMarketDivinerConfig = DivinerConfig<{
6
6
  schema: TZeroApiCallJsonResultToSnapshotDivinerConfigSchema
@@ -1,14 +1,12 @@
1
1
  import { exists } from '@xylabs/exists'
2
- import type { Promisable } from '@xylabs/promise'
2
+ import { Promisable } from '@xylabs/promise'
3
3
  import { AbstractDiviner } from '@xyo-network/diviner-abstract'
4
- import type { DivinerParams } from '@xyo-network/diviner-model'
5
- import type { AnyConfigSchema } from '@xyo-network/module-model'
6
- import type {
7
- Payload, Schema, WithOptionalSources,
8
- } from '@xyo-network/payload-model'
9
- import type { Snapshot } from '@xyo-network/tzero-stock-market-payload-plugin'
4
+ import { DivinerParams } from '@xyo-network/diviner-model'
5
+ import { AnyConfigSchema } from '@xyo-network/module-model'
6
+ import { Payload, Schema } from '@xyo-network/payload-model'
7
+ import { Snapshot } from '@xyo-network/tzero-stock-market-payload-plugin'
10
8
 
11
- import type { TZeroStockMarketDivinerConfig } from './Config.ts'
9
+ import { TZeroStockMarketDivinerConfig } from './Config.ts'
12
10
  import { tryMapToSnapshot } from './lib/index.ts'
13
11
  import { TZeroApiCallJsonResultToSnapshotDivinerConfigSchema } from './Schema.ts'
14
12
 
@@ -20,7 +18,7 @@ export class TZeroApiCallJsonResultToSnapshotDiviner<
20
18
  static override readonly configSchemas: Schema[] = [...super.configSchemas, TZeroApiCallJsonResultToSnapshotDivinerConfigSchema]
21
19
  static override readonly defaultConfigSchema: Schema = TZeroApiCallJsonResultToSnapshotDivinerConfigSchema
22
20
 
23
- protected override divineHandler(payloads?: Payload[]): Promisable<WithOptionalSources<Snapshot>[]> {
21
+ protected override divineHandler(payloads?: Payload[]): Promisable<Payload<Snapshot>[]> {
24
22
  if (!payloads) return []
25
23
  if (payloads.length === 0) return []
26
24
  return payloads.map(tryMapToSnapshot).filter(exists)
@@ -1,7 +1,8 @@
1
- import type { JsonObject } from '@xylabs/object'
1
+ import { JsonObject } from '@xylabs/object'
2
2
  import { isApiCallJsonResult } from '@xyo-network/api-call-witness'
3
- import type { Snapshot, SnapshotFields } from '@xyo-network/tzero-stock-market-payload-plugin'
4
- import { SnapshotSchema } from '@xyo-network/tzero-stock-market-payload-plugin'
3
+ import {
4
+ Snapshot, SnapshotFields, SnapshotSchema,
5
+ } from '@xyo-network/tzero-stock-market-payload-plugin'
5
6
 
6
7
  interface SnapshotJson extends JsonObject, SnapshotFields {}
7
8
 
package/xy.config.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { XyTsupConfig } from '@xylabs/ts-scripts-yarn3'
1
+ import { XyTsupConfig } from '@xylabs/ts-scripts-yarn3'
2
2
  const config: XyTsupConfig = {
3
3
  compile: {
4
4
  browser: {},