@edifice.io/moderation-node-client 1.1.1 → 1.1.2

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 { RightsOnResourceRequest, RightsOnResourceResponse } from '@edifice.io/moderation-node-api';
1
+ import { ResourcesVersionsRequest, ResourcesVersionsResponse, RightsOnResourceRequest, RightsOnResourceResponse } from '@edifice.io/moderation-node-api';
2
2
  import { NatsConnection } from '@nats-io/nats-core';
3
3
  export interface RequestOptions {
4
4
  timeout?: number;
@@ -12,6 +12,10 @@ export declare class ModerationNatsServiceClient {
12
12
  * Verify the rights for a user to see the resource
13
13
  */
14
14
  hasRight(request: RightsOnResourceRequest, application: string, platformId?: string, options?: RequestOptions): Promise<RightsOnResourceResponse>;
15
+ /**
16
+ * Retrieve a list of versions from a list of resource
17
+ */
18
+ resourcesVersions(request: ResourcesVersionsRequest, application: string, platformId?: string, options?: RequestOptions): Promise<ResourcesVersionsResponse>;
15
19
  private extractResponse;
16
20
  private toNatsOptions;
17
21
  }
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/nats/client.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAE/E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAGhF,OAAO,KAAK,EAAE,cAAc,EAA6C,MAAM,oBAAoB,CAAC;AAGpG,MAAM,WAAW,cAAc;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC,CAAA;CAC9C;AAED,qBAAa,2BAA2B;IAI1B,OAAO,CAAC,QAAQ,CAAC,cAAc;IAF3C,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAS;gBAEX,cAAc,EAAE,cAAc;IAM3D;;OAEG;IACG,Q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,aAAa;CAmBtB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edifice.io/moderation-node-client",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "Clients to interact with moderation-nats-service",
5
5
  "private": false,
6
6
  "publishConfig": {
@@ -28,7 +28,7 @@
28
28
  "dist"
29
29
  ],
30
30
  "dependencies": {
31
- "@edifice.io/moderation-node-api": "1.1.1",
31
+ "@edifice.io/moderation-node-api": "1.1.2",
32
32
  "@nats-io/transport-node": "3.2.0",
33
33
  "@nats-io/nats-core": "3.2.0"
34
34
  },