@xyo-network/diviner-payload-model 5.2.18 → 5.2.20

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,4 +1,4 @@
1
- import type { EmptyObject, WithAdditional } from '@xylabs/object';
1
+ import type { EmptyObject, WithAdditional } from '@xylabs/sdk-js';
2
2
  import type { DivinerConfig } from '@xyo-network/diviner-model';
3
3
  import type { Schema } from '@xyo-network/payload-model';
4
4
  import { PayloadDivinerSchema } from './Schema.ts';
@@ -1,4 +1,4 @@
1
- import type { EmptyObject } from '@xylabs/object';
1
+ import type { EmptyObject } from '@xylabs/sdk-js';
2
2
  import type { Schema, Sequence } from '@xyo-network/payload-model';
3
3
  import type { Order } from './Order.ts';
4
4
  export type PayloadDivinerPredicate<T extends EmptyObject = EmptyObject> = Partial<{
@@ -1,4 +1,4 @@
1
- import type { EmptyObject } from '@xylabs/object';
1
+ import type { EmptyObject } from '@xylabs/sdk-js';
2
2
  import type { Query } from '@xyo-network/payload-model';
3
3
  import type { PayloadDivinerPredicate } from './Predicate.ts';
4
4
  import { PayloadDivinerSchema } from './Schema.ts';
@@ -8,5 +8,5 @@ export type PayloadDivinerQueryPayload<T extends EmptyObject = EmptyObject> = Qu
8
8
  schema: PayloadDivinerQuerySchema;
9
9
  } & PayloadDivinerPredicate<T>>;
10
10
  export declare const isPayloadDivinerQueryPayload: (x?: unknown | null) => x is PayloadDivinerQueryPayload<object>;
11
- export declare const asPayloadDivinerQueryPayload: import("@xylabs/object").AsTypeFunction<PayloadDivinerQueryPayload<object>>;
11
+ export declare const asPayloadDivinerQueryPayload: import("@xylabs/sdk-js").AsTypeFunction<PayloadDivinerQueryPayload<object>>;
12
12
  //# sourceMappingURL=Query.d.ts.map
@@ -5,7 +5,7 @@ var PayloadDivinerSchema = "network.xyo.diviner.payload";
5
5
  var PayloadDivinerConfigSchema = `${PayloadDivinerSchema}.config`;
6
6
 
7
7
  // src/Query.ts
8
- import { AsObjectFactory } from "@xylabs/object";
8
+ import { AsObjectFactory } from "@xylabs/sdk-js";
9
9
  import { isPayloadOfSchemaType } from "@xyo-network/payload-model";
10
10
  var PayloadDivinerQuerySchema = `${PayloadDivinerSchema}.query`;
11
11
  var isPayloadDivinerQueryPayload = isPayloadOfSchemaType(PayloadDivinerQuerySchema);
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/Schema.ts","../../src/Config.ts","../../src/Query.ts"],"sourcesContent":["export type PayloadDivinerSchema = 'network.xyo.diviner.payload'\nexport const PayloadDivinerSchema: PayloadDivinerSchema = 'network.xyo.diviner.payload'\n","import type { EmptyObject, WithAdditional } from '@xylabs/object'\nimport type { DivinerConfig } from '@xyo-network/diviner-model'\nimport type { Schema } from '@xyo-network/payload-model'\n\nimport { PayloadDivinerSchema } from './Schema.ts'\n\nexport type PayloadDivinerConfigSchema = `${PayloadDivinerSchema}.config`\nexport const PayloadDivinerConfigSchema: PayloadDivinerConfigSchema = `${PayloadDivinerSchema}.config`\n\nexport type PayloadDivinerConfig<TAdditional extends EmptyObject | void = void, TSchema extends Schema | void = void> = DivinerConfig<\n WithAdditional<\n {\n indexBatchSize?: number\n maxIndexSize?: number\n },\n TAdditional\n >,\n TSchema extends void ? Schema : TSchema\n>\n","import type { EmptyObject } from '@xylabs/object'\nimport { AsObjectFactory } from '@xylabs/object'\nimport type { Query } from '@xyo-network/payload-model'\nimport { isPayloadOfSchemaType } from '@xyo-network/payload-model'\n\nimport type { PayloadDivinerPredicate } from './Predicate.ts'\nimport { PayloadDivinerSchema } from './Schema.ts'\n\nexport type PayloadDivinerQuerySchema = `${PayloadDivinerSchema}.query`\nexport const PayloadDivinerQuerySchema: PayloadDivinerQuerySchema = `${PayloadDivinerSchema}.query`\n\nexport type PayloadDivinerQueryPayload<T extends EmptyObject = EmptyObject> = Query<\n { schema: PayloadDivinerQuerySchema } & PayloadDivinerPredicate<T>\n>\n\nexport const isPayloadDivinerQueryPayload = isPayloadOfSchemaType<PayloadDivinerQueryPayload>(PayloadDivinerQuerySchema)\n\nexport const asPayloadDivinerQueryPayload = AsObjectFactory.create(isPayloadDivinerQueryPayload)\n"],"mappings":";AACO,IAAM,uBAA6C;;;ACMnD,IAAM,6BAAyD,GAAG,oBAAoB;;;ACN7F,SAAS,uBAAuB;AAEhC,SAAS,6BAA6B;AAM/B,IAAM,4BAAuD,GAAG,oBAAoB;AAMpF,IAAM,+BAA+B,sBAAkD,yBAAyB;AAEhH,IAAM,+BAA+B,gBAAgB,OAAO,4BAA4B;","names":[]}
1
+ {"version":3,"sources":["../../src/Schema.ts","../../src/Config.ts","../../src/Query.ts"],"sourcesContent":["export type PayloadDivinerSchema = 'network.xyo.diviner.payload'\nexport const PayloadDivinerSchema: PayloadDivinerSchema = 'network.xyo.diviner.payload'\n","import type { EmptyObject, WithAdditional } from '@xylabs/sdk-js'\nimport type { DivinerConfig } from '@xyo-network/diviner-model'\nimport type { Schema } from '@xyo-network/payload-model'\n\nimport { PayloadDivinerSchema } from './Schema.ts'\n\nexport type PayloadDivinerConfigSchema = `${PayloadDivinerSchema}.config`\nexport const PayloadDivinerConfigSchema: PayloadDivinerConfigSchema = `${PayloadDivinerSchema}.config`\n\nexport type PayloadDivinerConfig<TAdditional extends EmptyObject | void = void, TSchema extends Schema | void = void> = DivinerConfig<\n WithAdditional<\n {\n indexBatchSize?: number\n maxIndexSize?: number\n },\n TAdditional\n >,\n TSchema extends void ? Schema : TSchema\n>\n","import type { EmptyObject } from '@xylabs/sdk-js'\nimport { AsObjectFactory } from '@xylabs/sdk-js'\nimport type { Query } from '@xyo-network/payload-model'\nimport { isPayloadOfSchemaType } from '@xyo-network/payload-model'\n\nimport type { PayloadDivinerPredicate } from './Predicate.ts'\nimport { PayloadDivinerSchema } from './Schema.ts'\n\nexport type PayloadDivinerQuerySchema = `${PayloadDivinerSchema}.query`\nexport const PayloadDivinerQuerySchema: PayloadDivinerQuerySchema = `${PayloadDivinerSchema}.query`\n\nexport type PayloadDivinerQueryPayload<T extends EmptyObject = EmptyObject> = Query<\n { schema: PayloadDivinerQuerySchema } & PayloadDivinerPredicate<T>\n>\n\nexport const isPayloadDivinerQueryPayload = isPayloadOfSchemaType<PayloadDivinerQueryPayload>(PayloadDivinerQuerySchema)\n\nexport const asPayloadDivinerQueryPayload = AsObjectFactory.create(isPayloadDivinerQueryPayload)\n"],"mappings":";AACO,IAAM,uBAA6C;;;ACMnD,IAAM,6BAAyD,GAAG,oBAAoB;;;ACN7F,SAAS,uBAAuB;AAEhC,SAAS,6BAA6B;AAM/B,IAAM,4BAAuD,GAAG,oBAAoB;AAMpF,IAAM,+BAA+B,sBAAkD,yBAAyB;AAEhH,IAAM,+BAA+B,gBAAgB,OAAO,4BAA4B;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/diviner-payload-model",
3
- "version": "5.2.18",
3
+ "version": "5.2.20",
4
4
  "description": "Primary SDK for using XYO Protocol 2.0",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -36,17 +36,17 @@
36
36
  "!**/*.test.*"
37
37
  ],
38
38
  "dependencies": {
39
- "@xylabs/object": "~5.0.50",
40
- "@xyo-network/diviner-model": "~5.2.18",
41
- "@xyo-network/module-model": "~5.2.18",
42
- "@xyo-network/payload-model": "~5.2.18"
39
+ "@xylabs/sdk-js": "~5.0.61",
40
+ "@xyo-network/diviner-model": "workspace:~",
41
+ "@xyo-network/module-model": "workspace:~",
42
+ "@xyo-network/payload-model": "workspace:~"
43
43
  },
44
44
  "devDependencies": {
45
- "@xylabs/ts-scripts-yarn3": "~7.2.8",
46
- "@xylabs/tsconfig": "~7.2.8",
45
+ "@xylabs/ts-scripts-yarn3": "~7.2.32",
46
+ "@xylabs/tsconfig": "~7.2.32",
47
47
  "typescript": "~5.9.3"
48
48
  },
49
49
  "publishConfig": {
50
50
  "access": "public"
51
51
  }
52
- }
52
+ }
package/src/Config.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { EmptyObject, WithAdditional } from '@xylabs/object'
1
+ import type { EmptyObject, WithAdditional } from '@xylabs/sdk-js'
2
2
  import type { DivinerConfig } from '@xyo-network/diviner-model'
3
3
  import type { Schema } from '@xyo-network/payload-model'
4
4
 
package/src/Predicate.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { EmptyObject } from '@xylabs/object'
1
+ import type { EmptyObject } from '@xylabs/sdk-js'
2
2
  import type { Schema, Sequence } from '@xyo-network/payload-model'
3
3
 
4
4
  import type { Order } from './Order.ts'
package/src/Query.ts CHANGED
@@ -1,5 +1,5 @@
1
- import type { EmptyObject } from '@xylabs/object'
2
- import { AsObjectFactory } from '@xylabs/object'
1
+ import type { EmptyObject } from '@xylabs/sdk-js'
2
+ import { AsObjectFactory } from '@xylabs/sdk-js'
3
3
  import type { Query } from '@xyo-network/payload-model'
4
4
  import { isPayloadOfSchemaType } from '@xyo-network/payload-model'
5
5