@arrowsphere/api-client 3.36.1-rc.fdi.1 → 3.36.1-rc.fdi.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,7 +1,6 @@
|
|
|
1
1
|
import { AbstractRestfulClient, Parameters, ParametersWithPaginationType, Payload } from '../abstractRestfulClient';
|
|
2
2
|
import { GetResult } from '../getResult';
|
|
3
3
|
import { Notifications } from './entities/notifications';
|
|
4
|
-
import { Notification } from './entities/notification';
|
|
5
4
|
import { Total } from './entities/total';
|
|
6
5
|
export declare enum ListParametersFields {
|
|
7
6
|
COLUMN_CREATED = "created",
|
|
@@ -30,7 +29,7 @@ export declare class NotificationsClient extends AbstractRestfulClient {
|
|
|
30
29
|
protected basePath: string;
|
|
31
30
|
list(parameters?: ListParametersType): Promise<GetResult<Notifications>>;
|
|
32
31
|
deleteAll(parameters?: Parameters): Promise<void>;
|
|
33
|
-
getOne(notificationId: string, parameters?: Parameters): Promise<GetResult<
|
|
32
|
+
getOne(notificationId: string, parameters?: Parameters): Promise<GetResult<Notifications>>;
|
|
34
33
|
deleteOne(notificationId: string, parameters?: Parameters): Promise<void>;
|
|
35
34
|
readAll(payload?: Payload, parameters?: Parameters): Promise<void>;
|
|
36
35
|
readOne(notificationId: string, payload?: Payload, parameters?: Parameters): Promise<void>;
|
|
@@ -4,7 +4,6 @@ exports.NotificationsClient = exports.CreatePayloadFields = exports.ListParamete
|
|
|
4
4
|
const abstractRestfulClient_1 = require("../abstractRestfulClient");
|
|
5
5
|
const getResult_1 = require("../getResult");
|
|
6
6
|
const notifications_1 = require("./entities/notifications");
|
|
7
|
-
const notification_1 = require("./entities/notification");
|
|
8
7
|
const total_1 = require("./entities/total");
|
|
9
8
|
var ListParametersFields;
|
|
10
9
|
(function (ListParametersFields) {
|
|
@@ -34,7 +33,7 @@ class NotificationsClient extends abstractRestfulClient_1.AbstractRestfulClient
|
|
|
34
33
|
}
|
|
35
34
|
async getOne(notificationId, parameters = {}) {
|
|
36
35
|
this.path = `/${notificationId}`;
|
|
37
|
-
return new getResult_1.GetResult(
|
|
36
|
+
return new getResult_1.GetResult(notifications_1.Notifications, await this.get(parameters));
|
|
38
37
|
}
|
|
39
38
|
async deleteOne(notificationId, parameters = {}) {
|
|
40
39
|
this.path = `/${notificationId}`;
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"type": "git",
|
|
5
5
|
"url": "https://github.com/ArrowSphere/nodejs-api-client.git"
|
|
6
6
|
},
|
|
7
|
-
"version": "3.36.1-rc.fdi.
|
|
7
|
+
"version": "3.36.1-rc.fdi.2",
|
|
8
8
|
"description": "Node.js client for ArrowSphere's public API",
|
|
9
9
|
"main": "build/index.js",
|
|
10
10
|
"types": "build/index.d.ts",
|