@edifice.io/moderation-node-client 1.1.1 → 1.1.3
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.
- package/dist/index.js +960 -938
- package/dist/index.umd.cjs +13 -13
- package/dist/nats/client.d.ts +9 -1
- package/dist/nats/client.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/nats/client.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RightsOnResourceRequest, RightsOnResourceResponse } from '@edifice.io/moderation-node-api';
|
|
1
|
+
import { DeleteResourceRequest, DeleteResourceResponse, 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;
|
|
@@ -8,10 +8,18 @@ export declare class ModerationNatsServiceClient {
|
|
|
8
8
|
private readonly natsConnection;
|
|
9
9
|
private readonly defaultTimeout;
|
|
10
10
|
constructor(natsConnection: NatsConnection);
|
|
11
|
+
/**
|
|
12
|
+
* Delete a resource
|
|
13
|
+
*/
|
|
14
|
+
deleteResource(request: DeleteResourceRequest, application: string, platformId?: string, options?: RequestOptions): Promise<DeleteResourceResponse>;
|
|
11
15
|
/**
|
|
12
16
|
* Verify the rights for a user to see the resource
|
|
13
17
|
*/
|
|
14
18
|
hasRight(request: RightsOnResourceRequest, application: string, platformId?: string, options?: RequestOptions): Promise<RightsOnResourceResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Retrieve a list of versions from a list of resource
|
|
21
|
+
*/
|
|
22
|
+
resourcesVersions(request: ResourcesVersionsRequest, application: string, platformId?: string, options?: RequestOptions): Promise<ResourcesVersionsResponse>;
|
|
15
23
|
private extractResponse;
|
|
16
24
|
private toNatsOptions;
|
|
17
25
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","s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pG,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,cAAc,CAAC,OAAO,EAAE,qBAAqB,EAAE,WAAW,EAAE,MAAM,EAAE,UAAU,GAAE,MAAW,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAgB7J;;OAEG;IACG,QAAQ,CAAC,OAAO,EAAE,uBAAuB,EAAE,WAAW,EAAE,MAAM,EAAE,UAAU,GAAE,MAAW,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,wBAAwB,CAAC;IAgB3J;;OAEG;IACG,iBAAiB,CAAC,OAAO,EAAE,wBAAwB,EAAE,WAAW,EAAE,MAAM,EAAE,UAAU,GAAE,MAAW,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,yBAAyB,CAAC;IAgBtK,OAAO,CAAC,eAAe;IAKvB,OAAO,CAAC,aAAa;CAmBtB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@edifice.io/moderation-node-client",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.3",
|
|
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.
|
|
31
|
+
"@edifice.io/moderation-node-api": "1.1.3",
|
|
32
32
|
"@nats-io/transport-node": "3.2.0",
|
|
33
33
|
"@nats-io/nats-core": "3.2.0"
|
|
34
34
|
},
|