@xyo-network/module-model 2.47.5 → 2.47.6

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,7 +1,14 @@
1
- export interface ModuleFilter {
2
- address?: string[];
3
- config?: string[];
4
- name?: string[];
5
- query?: string[][];
1
+ import { EmptyObject } from '@xyo-network/core';
2
+ export interface AddressModuleFilter {
3
+ address: string[];
6
4
  }
5
+ export interface NameModuleFilter {
6
+ name: string[];
7
+ }
8
+ export interface QueryModuleFilter {
9
+ query: string[][];
10
+ }
11
+ export type AllModuleFilter = EmptyObject;
12
+ export type AnyModuleFilter = Partial<AddressModuleFilter> & Partial<NameModuleFilter> & Partial<QueryModuleFilter>;
13
+ export type ModuleFilter = AddressModuleFilter | NameModuleFilter | QueryModuleFilter | AllModuleFilter;
7
14
  //# sourceMappingURL=ModuleFilter.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ModuleFilter.d.ts","sourceRoot":"","sources":["../../src/ModuleFilter.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B,OAAO,CAAC,EAAE,MAAM,EAAE,CAAA;IAClB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;IACjB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,EAAE,EAAE,CAAA;CACnB"}
1
+ {"version":3,"file":"ModuleFilter.d.ts","sourceRoot":"","sources":["../../src/ModuleFilter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAE/C,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,MAAM,EAAE,CAAA;CAClB;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,EAAE,CAAA;CACf;AAED,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,EAAE,EAAE,CAAA;CAClB;AAED,MAAM,MAAM,eAAe,GAAG,WAAW,CAAA;AAEzC,MAAM,MAAM,eAAe,GAAG,OAAO,CAAC,mBAAmB,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAA;AACnH,MAAM,MAAM,YAAY,GAAG,mBAAmB,GAAG,gBAAgB,GAAG,iBAAiB,GAAG,eAAe,CAAA"}
@@ -1,9 +1,8 @@
1
1
  import { Module, ModuleResolver } from './Module';
2
2
  export interface ModuleRepository<TModule extends Module = Module> extends ModuleResolver<TModule> {
3
- add(module: Module, name?: string): this;
4
- add(module: Module[], name?: string[]): this;
5
- add(module: Module | Module[], name?: string | string[]): this;
6
- remove(name: string | string[]): this;
3
+ add(module: Module): this;
4
+ add(module: Module[]): this;
5
+ add(module: Module | Module[]): this;
7
6
  remove(address: string | string[]): this;
8
7
  }
9
8
  //# sourceMappingURL=ModuleRepository.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ModuleRepository.d.ts","sourceRoot":"","sources":["../../../src/model/ModuleRepository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAEjD,MAAM,WAAW,gBAAgB,CAAC,OAAO,SAAS,MAAM,GAAG,MAAM,CAAE,SAAQ,cAAc,CAAC,OAAO,CAAC;IAChG,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACxC,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,IAAI,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAA;IAC5C,GAAG,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,IAAI,CAAA;IAE9D,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,IAAI,CAAA;IACrC,MAAM,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,IAAI,CAAA;CACzC"}
1
+ {"version":3,"file":"ModuleRepository.d.ts","sourceRoot":"","sources":["../../../src/model/ModuleRepository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAEjD,MAAM,WAAW,gBAAgB,CAAC,OAAO,SAAS,MAAM,GAAG,MAAM,CAAE,SAAQ,cAAc,CAAC,OAAO,CAAC;IAChG,GAAG,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,CAAA;IAC3B,GAAG,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,IAAI,CAAA;IAEpC,MAAM,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,IAAI,CAAA;CACzC"}
package/package.json CHANGED
@@ -10,14 +10,14 @@
10
10
  "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/issues"
11
11
  },
12
12
  "dependencies": {
13
- "@xyo-network/boundwitness-model": "^2.47.5",
14
- "@xyo-network/core": "^2.47.5",
15
- "@xyo-network/payload-model": "^2.47.5",
16
- "@xyo-network/promise": "^2.47.5"
13
+ "@xyo-network/boundwitness-model": "^2.47.6",
14
+ "@xyo-network/core": "^2.47.6",
15
+ "@xyo-network/payload-model": "^2.47.6",
16
+ "@xyo-network/promise": "^2.47.6"
17
17
  },
18
18
  "devDependencies": {
19
- "@xylabs/ts-scripts-yarn3": "^2.14.15",
20
- "@xylabs/tsconfig": "^2.14.15",
19
+ "@xylabs/ts-scripts-yarn3": "^2.14.16",
20
+ "@xylabs/tsconfig": "^2.14.16",
21
21
  "typescript": "^4.9.5"
22
22
  },
23
23
  "description": "Primary SDK for using XYO Protocol 2.0",
@@ -53,5 +53,5 @@
53
53
  },
54
54
  "sideEffects": false,
55
55
  "types": "dist/types/index.d.ts",
56
- "version": "2.47.5"
56
+ "version": "2.47.6"
57
57
  }
@@ -1,6 +1,18 @@
1
- export interface ModuleFilter {
2
- address?: string[]
3
- config?: string[]
4
- name?: string[]
5
- query?: string[][]
1
+ import { EmptyObject } from '@xyo-network/core'
2
+
3
+ export interface AddressModuleFilter {
4
+ address: string[]
6
5
  }
6
+
7
+ export interface NameModuleFilter {
8
+ name: string[]
9
+ }
10
+
11
+ export interface QueryModuleFilter {
12
+ query: string[][]
13
+ }
14
+
15
+ export type AllModuleFilter = EmptyObject
16
+
17
+ export type AnyModuleFilter = Partial<AddressModuleFilter> & Partial<NameModuleFilter> & Partial<QueryModuleFilter>
18
+ export type ModuleFilter = AddressModuleFilter | NameModuleFilter | QueryModuleFilter | AllModuleFilter
@@ -1,10 +1,9 @@
1
1
  import { Module, ModuleResolver } from './Module'
2
2
 
3
3
  export interface ModuleRepository<TModule extends Module = Module> extends ModuleResolver<TModule> {
4
- add(module: Module, name?: string): this
5
- add(module: Module[], name?: string[]): this
6
- add(module: Module | Module[], name?: string | string[]): this
4
+ add(module: Module): this
5
+ add(module: Module[]): this
6
+ add(module: Module | Module[]): this
7
7
 
8
- remove(name: string | string[]): this
9
8
  remove(address: string | string[]): this
10
9
  }