@xyo-network/witness-model 2.94.4 → 2.94.5

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,6 +1,9 @@
1
1
  import { Promisable } from '@xylabs/promise';
2
+ import { AccountInstance } from '@xyo-network/account-model';
3
+ import { ModuleQueryResult } from '@xyo-network/module-model';
2
4
  import { Payload } from '@xyo-network/payload-model';
3
5
  export interface WitnessQueryFunctions<TIn extends Payload = Payload, TOut extends Payload = Payload> {
4
6
  observe: (payloads?: TIn[]) => Promisable<TOut[]>;
7
+ observeQuery: (account: AccountInstance, payloads?: TIn[]) => Promisable<ModuleQueryResult<TOut>>;
5
8
  }
6
9
  //# sourceMappingURL=QueryFunctions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"QueryFunctions.d.ts","sourceRoot":"","sources":["../../src/QueryFunctions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,MAAM,WAAW,qBAAqB,CAAC,GAAG,SAAS,OAAO,GAAG,OAAO,EAAE,IAAI,SAAS,OAAO,GAAG,OAAO;IAClG,OAAO,EAAE,CAAC,QAAQ,CAAC,EAAE,GAAG,EAAE,KAAK,UAAU,CAAC,IAAI,EAAE,CAAC,CAAA;CAClD"}
1
+ {"version":3,"file":"QueryFunctions.d.ts","sourceRoot":"","sources":["../../src/QueryFunctions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,MAAM,WAAW,qBAAqB,CAAC,GAAG,SAAS,OAAO,GAAG,OAAO,EAAE,IAAI,SAAS,OAAO,GAAG,OAAO;IAClG,OAAO,EAAE,CAAC,QAAQ,CAAC,EAAE,GAAG,EAAE,KAAK,UAAU,CAAC,IAAI,EAAE,CAAC,CAAA;IACjD,YAAY,EAAE,CAAC,OAAO,EAAE,eAAe,EAAE,QAAQ,CAAC,EAAE,GAAG,EAAE,KAAK,UAAU,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,CAAA;CAClG"}
@@ -1,6 +1,9 @@
1
1
  import { Promisable } from '@xylabs/promise';
2
+ import { AccountInstance } from '@xyo-network/account-model';
3
+ import { ModuleQueryResult } from '@xyo-network/module-model';
2
4
  import { Payload } from '@xyo-network/payload-model';
3
5
  export interface WitnessQueryFunctions<TIn extends Payload = Payload, TOut extends Payload = Payload> {
4
6
  observe: (payloads?: TIn[]) => Promisable<TOut[]>;
7
+ observeQuery: (account: AccountInstance, payloads?: TIn[]) => Promisable<ModuleQueryResult<TOut>>;
5
8
  }
6
9
  //# sourceMappingURL=QueryFunctions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"QueryFunctions.d.ts","sourceRoot":"","sources":["../../src/QueryFunctions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,MAAM,WAAW,qBAAqB,CAAC,GAAG,SAAS,OAAO,GAAG,OAAO,EAAE,IAAI,SAAS,OAAO,GAAG,OAAO;IAClG,OAAO,EAAE,CAAC,QAAQ,CAAC,EAAE,GAAG,EAAE,KAAK,UAAU,CAAC,IAAI,EAAE,CAAC,CAAA;CAClD"}
1
+ {"version":3,"file":"QueryFunctions.d.ts","sourceRoot":"","sources":["../../src/QueryFunctions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,MAAM,WAAW,qBAAqB,CAAC,GAAG,SAAS,OAAO,GAAG,OAAO,EAAE,IAAI,SAAS,OAAO,GAAG,OAAO;IAClG,OAAO,EAAE,CAAC,QAAQ,CAAC,EAAE,GAAG,EAAE,KAAK,UAAU,CAAC,IAAI,EAAE,CAAC,CAAA;IACjD,YAAY,EAAE,CAAC,OAAO,EAAE,eAAe,EAAE,QAAQ,CAAC,EAAE,GAAG,EAAE,KAAK,UAAU,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,CAAA;CAClG"}
@@ -1,6 +1,9 @@
1
1
  import { Promisable } from '@xylabs/promise';
2
+ import { AccountInstance } from '@xyo-network/account-model';
3
+ import { ModuleQueryResult } from '@xyo-network/module-model';
2
4
  import { Payload } from '@xyo-network/payload-model';
3
5
  export interface WitnessQueryFunctions<TIn extends Payload = Payload, TOut extends Payload = Payload> {
4
6
  observe: (payloads?: TIn[]) => Promisable<TOut[]>;
7
+ observeQuery: (account: AccountInstance, payloads?: TIn[]) => Promisable<ModuleQueryResult<TOut>>;
5
8
  }
6
9
  //# sourceMappingURL=QueryFunctions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"QueryFunctions.d.ts","sourceRoot":"","sources":["../../src/QueryFunctions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,MAAM,WAAW,qBAAqB,CAAC,GAAG,SAAS,OAAO,GAAG,OAAO,EAAE,IAAI,SAAS,OAAO,GAAG,OAAO;IAClG,OAAO,EAAE,CAAC,QAAQ,CAAC,EAAE,GAAG,EAAE,KAAK,UAAU,CAAC,IAAI,EAAE,CAAC,CAAA;CAClD"}
1
+ {"version":3,"file":"QueryFunctions.d.ts","sourceRoot":"","sources":["../../src/QueryFunctions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,MAAM,WAAW,qBAAqB,CAAC,GAAG,SAAS,OAAO,GAAG,OAAO,EAAE,IAAI,SAAS,OAAO,GAAG,OAAO;IAClG,OAAO,EAAE,CAAC,QAAQ,CAAC,EAAE,GAAG,EAAE,KAAK,UAAU,CAAC,IAAI,EAAE,CAAC,CAAA;IACjD,YAAY,EAAE,CAAC,OAAO,EAAE,eAAe,EAAE,QAAQ,CAAC,EAAE,GAAG,EAAE,KAAK,UAAU,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,CAAA;CAClG"}
@@ -1,6 +1,9 @@
1
1
  import { Promisable } from '@xylabs/promise';
2
+ import { AccountInstance } from '@xyo-network/account-model';
3
+ import { ModuleQueryResult } from '@xyo-network/module-model';
2
4
  import { Payload } from '@xyo-network/payload-model';
3
5
  export interface WitnessQueryFunctions<TIn extends Payload = Payload, TOut extends Payload = Payload> {
4
6
  observe: (payloads?: TIn[]) => Promisable<TOut[]>;
7
+ observeQuery: (account: AccountInstance, payloads?: TIn[]) => Promisable<ModuleQueryResult<TOut>>;
5
8
  }
6
9
  //# sourceMappingURL=QueryFunctions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"QueryFunctions.d.ts","sourceRoot":"","sources":["../../src/QueryFunctions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,MAAM,WAAW,qBAAqB,CAAC,GAAG,SAAS,OAAO,GAAG,OAAO,EAAE,IAAI,SAAS,OAAO,GAAG,OAAO;IAClG,OAAO,EAAE,CAAC,QAAQ,CAAC,EAAE,GAAG,EAAE,KAAK,UAAU,CAAC,IAAI,EAAE,CAAC,CAAA;CAClD"}
1
+ {"version":3,"file":"QueryFunctions.d.ts","sourceRoot":"","sources":["../../src/QueryFunctions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,MAAM,WAAW,qBAAqB,CAAC,GAAG,SAAS,OAAO,GAAG,OAAO,EAAE,IAAI,SAAS,OAAO,GAAG,OAAO;IAClG,OAAO,EAAE,CAAC,QAAQ,CAAC,EAAE,GAAG,EAAE,KAAK,UAAU,CAAC,IAAI,EAAE,CAAC,CAAA;IACjD,YAAY,EAAE,CAAC,OAAO,EAAE,eAAe,EAAE,QAAQ,CAAC,EAAE,GAAG,EAAE,KAAK,UAAU,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,CAAA;CAClG"}
@@ -1,6 +1,9 @@
1
1
  import { Promisable } from '@xylabs/promise';
2
+ import { AccountInstance } from '@xyo-network/account-model';
3
+ import { ModuleQueryResult } from '@xyo-network/module-model';
2
4
  import { Payload } from '@xyo-network/payload-model';
3
5
  export interface WitnessQueryFunctions<TIn extends Payload = Payload, TOut extends Payload = Payload> {
4
6
  observe: (payloads?: TIn[]) => Promisable<TOut[]>;
7
+ observeQuery: (account: AccountInstance, payloads?: TIn[]) => Promisable<ModuleQueryResult<TOut>>;
5
8
  }
6
9
  //# sourceMappingURL=QueryFunctions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"QueryFunctions.d.ts","sourceRoot":"","sources":["../../src/QueryFunctions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,MAAM,WAAW,qBAAqB,CAAC,GAAG,SAAS,OAAO,GAAG,OAAO,EAAE,IAAI,SAAS,OAAO,GAAG,OAAO;IAClG,OAAO,EAAE,CAAC,QAAQ,CAAC,EAAE,GAAG,EAAE,KAAK,UAAU,CAAC,IAAI,EAAE,CAAC,CAAA;CAClD"}
1
+ {"version":3,"file":"QueryFunctions.d.ts","sourceRoot":"","sources":["../../src/QueryFunctions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,MAAM,WAAW,qBAAqB,CAAC,GAAG,SAAS,OAAO,GAAG,OAAO,EAAE,IAAI,SAAS,OAAO,GAAG,OAAO;IAClG,OAAO,EAAE,CAAC,QAAQ,CAAC,EAAE,GAAG,EAAE,KAAK,UAAU,CAAC,IAAI,EAAE,CAAC,CAAA;IACjD,YAAY,EAAE,CAAC,OAAO,EAAE,eAAe,EAAE,QAAQ,CAAC,EAAE,GAAG,EAAE,KAAK,UAAU,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,CAAA;CAClG"}
@@ -1,6 +1,9 @@
1
1
  import { Promisable } from '@xylabs/promise';
2
+ import { AccountInstance } from '@xyo-network/account-model';
3
+ import { ModuleQueryResult } from '@xyo-network/module-model';
2
4
  import { Payload } from '@xyo-network/payload-model';
3
5
  export interface WitnessQueryFunctions<TIn extends Payload = Payload, TOut extends Payload = Payload> {
4
6
  observe: (payloads?: TIn[]) => Promisable<TOut[]>;
7
+ observeQuery: (account: AccountInstance, payloads?: TIn[]) => Promisable<ModuleQueryResult<TOut>>;
5
8
  }
6
9
  //# sourceMappingURL=QueryFunctions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"QueryFunctions.d.ts","sourceRoot":"","sources":["../../src/QueryFunctions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,MAAM,WAAW,qBAAqB,CAAC,GAAG,SAAS,OAAO,GAAG,OAAO,EAAE,IAAI,SAAS,OAAO,GAAG,OAAO;IAClG,OAAO,EAAE,CAAC,QAAQ,CAAC,EAAE,GAAG,EAAE,KAAK,UAAU,CAAC,IAAI,EAAE,CAAC,CAAA;CAClD"}
1
+ {"version":3,"file":"QueryFunctions.d.ts","sourceRoot":"","sources":["../../src/QueryFunctions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,MAAM,WAAW,qBAAqB,CAAC,GAAG,SAAS,OAAO,GAAG,OAAO,EAAE,IAAI,SAAS,OAAO,GAAG,OAAO;IAClG,OAAO,EAAE,CAAC,QAAQ,CAAC,EAAE,GAAG,EAAE,KAAK,UAAU,CAAC,IAAI,EAAE,CAAC,CAAA;IACjD,YAAY,EAAE,CAAC,OAAO,EAAE,eAAe,EAAE,QAAQ,CAAC,EAAE,GAAG,EAAE,KAAK,UAAU,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,CAAA;CAClG"}
package/package.json CHANGED
@@ -12,9 +12,10 @@
12
12
  "dependencies": {
13
13
  "@xylabs/object": "^3.0.25",
14
14
  "@xylabs/promise": "^3.0.25",
15
- "@xyo-network/module-events": "~2.94.4",
16
- "@xyo-network/module-model": "~2.94.4",
17
- "@xyo-network/payload-model": "~2.94.4"
15
+ "@xyo-network/account-model": "~2.94.5",
16
+ "@xyo-network/module-events": "~2.94.5",
17
+ "@xyo-network/module-model": "~2.94.5",
18
+ "@xyo-network/payload-model": "~2.94.5"
18
19
  },
19
20
  "devDependencies": {
20
21
  "@xylabs/ts-scripts-yarn3": "^3.5.2",
@@ -60,6 +61,6 @@
60
61
  "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js.git"
61
62
  },
62
63
  "sideEffects": false,
63
- "version": "2.94.4",
64
+ "version": "2.94.5",
64
65
  "type": "module"
65
66
  }
@@ -1,6 +1,9 @@
1
1
  import { Promisable } from '@xylabs/promise'
2
+ import { AccountInstance } from '@xyo-network/account-model'
3
+ import { ModuleQueryResult } from '@xyo-network/module-model'
2
4
  import { Payload } from '@xyo-network/payload-model'
3
5
 
4
6
  export interface WitnessQueryFunctions<TIn extends Payload = Payload, TOut extends Payload = Payload> {
5
7
  observe: (payloads?: TIn[]) => Promisable<TOut[]>
8
+ observeQuery: (account: AccountInstance, payloads?: TIn[]) => Promisable<ModuleQueryResult<TOut>>
6
9
  }