@xyo-network/payload 2.21.13 → 2.21.16

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,5 +1,5 @@
1
1
  import { XyoPayload } from '../models';
2
- export interface XyoQueryPayload extends XyoPayload {
2
+ export declare type XyoQueryPayload<T extends object = object> = XyoPayload<{
3
3
  /** @field The preferred schema to use for the answer */
4
4
  targetSchema?: string;
5
5
  /** @field The maximum XYO that can be spent executing the query */
@@ -8,4 +8,4 @@ export interface XyoQueryPayload extends XyoPayload {
8
8
  maxFrequency?: 'once' | 'second' | 'minute' | 'hour' | 'day' | 'week' | 'month' | 'year';
9
9
  /** @field The starting point for the bidding on the query */
10
10
  minBid?: number;
11
- }
11
+ }> & T;
@@ -1,5 +1,5 @@
1
1
  import { XyoPayload } from '../models';
2
- export interface XyoQueryPayload extends XyoPayload {
2
+ export declare type XyoQueryPayload<T extends object = object> = XyoPayload<{
3
3
  /** @field The preferred schema to use for the answer */
4
4
  targetSchema?: string;
5
5
  /** @field The maximum XYO that can be spent executing the query */
@@ -8,4 +8,4 @@ export interface XyoQueryPayload extends XyoPayload {
8
8
  maxFrequency?: 'once' | 'second' | 'minute' | 'hour' | 'day' | 'week' | 'month' | 'year';
9
9
  /** @field The starting point for the bidding on the query */
10
10
  minBid?: number;
11
- }
11
+ }> & T;
package/jest.config.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  const generateJestConfig = ({ esModules }) => {
2
- const esModuleslist = Array.isArray(esModules) ? esModules.join('|') : esModules
2
+ const esModulesList = Array.isArray(esModules) ? esModules.join('|') : esModules
3
3
  return {
4
4
  globals: {
5
5
  'ts-jest': {
@@ -11,15 +11,16 @@ const generateJestConfig = ({ esModules }) => {
11
11
  },
12
12
  preset: 'ts-jest/presets/default-esm',
13
13
  setupFiles: ['dotenv/config'],
14
- setupFilesAfterEnv: ['jest-sorted'],
14
+ setupFilesAfterEnv: ['jest-sorted', 'jest-extended/all'],
15
15
  testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.tsx?$',
16
16
  testTimeout: 20000,
17
17
  transform: {
18
- [`(${esModuleslist}).+\\.js$`]: 'babel-jest',
18
+ [`(${esModulesList}).+\\.js$`]: 'babel-jest',
19
19
  '^.+\\.tsx?$': 'ts-jest/legacy',
20
20
  },
21
- transformIgnorePatterns: [`./node_modules/(?!${esModuleslist})`],
21
+ transformIgnorePatterns: [`./node_modules/(?!${esModulesList})`],
22
22
  }
23
23
  }
24
24
 
25
+ // eslint-disable-next-line no-undef
25
26
  module.exports = generateJestConfig({ esModules: ['is-ip', 'ip-regex', 'lodash-es', 'uuid'] })
package/package.json CHANGED
@@ -11,8 +11,8 @@
11
11
  },
12
12
  "dependencies": {
13
13
  "@xylabs/sdk-js": "^2.5.9",
14
- "@xyo-network/account": "^2.21.13",
15
- "@xyo-network/core": "^2.21.13",
14
+ "@xyo-network/account": "^2.21.16",
15
+ "@xyo-network/core": "^2.21.16",
16
16
  "axios": "^0.27.2"
17
17
  },
18
18
  "description": "Primary SDK for using XYO Protocol 2.0",
@@ -51,6 +51,6 @@
51
51
  },
52
52
  "sideEffects": true,
53
53
  "types": "dist/esm/index.d.ts",
54
- "version": "2.21.13",
54
+ "version": "2.21.16",
55
55
  "packageManager": "yarn@3.1.1"
56
56
  }
@@ -1,6 +1,6 @@
1
1
  import { XyoPayload } from '../models'
2
2
 
3
- export interface XyoQueryPayload extends XyoPayload {
3
+ export type XyoQueryPayload<T extends object = object> = XyoPayload<{
4
4
  /** @field The preferred schema to use for the answer */
5
5
  targetSchema?: string
6
6
 
@@ -12,4 +12,5 @@ export interface XyoQueryPayload extends XyoPayload {
12
12
 
13
13
  /** @field The starting point for the bidding on the query */
14
14
  minBid?: number
15
- }
15
+ }> &
16
+ T