@smapiot/piral-cloud-node 0.17.0 → 0.18.0-pre.20231011.1

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/lib/index.d.ts CHANGED
@@ -124,6 +124,8 @@ declare module "@smapiot/piral-cloud-node" {
124
124
  doQueryGeneratorDetails(generatorId: string, ac?: AbortController): Promise<GeneratorDetails>;
125
125
  doDeleteGenerator(generatorId: string, ac?: AbortController): Promise<GeneratorResponse>;
126
126
  doQueryDashboard(ac?: AbortController): Promise<DashboardResponse>;
127
+ doQueryIssues(ac?: AbortController): Promise<IssueDTO>;
128
+ doCreateIssue(details: CreateIssueDetails, ac?: AbortController): Promise<CreateIssueResponse>;
127
129
  }
128
130
 
129
131
  /**
@@ -773,6 +775,18 @@ declare module "@smapiot/piral-cloud-node" {
773
775
 
774
776
  export interface DashboardResponse extends ApiData<RecentChange> {}
775
777
 
778
+ export interface IssueDTO extends ApiData<NotificationItem> {}
779
+
780
+ export interface CreateIssueDetails {
781
+ topic: string;
782
+ content: string;
783
+ }
784
+
785
+ export interface CreateIssueResponse {
786
+ id: string;
787
+ success: boolean;
788
+ }
789
+
776
790
  /**
777
791
  * The simple API key options for creating a new service client.
778
792
  */
@@ -973,6 +987,8 @@ declare module "@smapiot/piral-cloud-node" {
973
987
  value: any;
974
988
  }
975
989
 
990
+ export interface NotificationItem {}
991
+
976
992
  export interface BaseFeedDTO {
977
993
  id: string;
978
994
  name: string;
package/lib/index.js CHANGED
@@ -4857,6 +4857,12 @@ var FeedServiceApiClient = class {
4857
4857
  doQueryDashboard(ac = mac()) {
4858
4858
  return this.doGet("dashboard", mri(ac));
4859
4859
  }
4860
+ doQueryIssues(ac = mac()) {
4861
+ return this.doGet("issue", mri(ac));
4862
+ }
4863
+ doCreateIssue(details, ac = mac()) {
4864
+ return this.doPost("issue", details, mri(ac));
4865
+ }
4860
4866
  };
4861
4867
 
4862
4868
  // node_modules/node-fetch/src/index.js
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smapiot/piral-cloud-node",
3
- "version": "0.17.0",
3
+ "version": "0.18.0-pre.20231011.1",
4
4
  "description": "Piral Cloud: Node-usable API Client for the Piral Feed Service.",
5
5
  "author": {
6
6
  "name": "smapiot",
@@ -40,7 +40,7 @@
40
40
  "node"
41
41
  ],
42
42
  "devDependencies": {
43
- "@piral/feed-client": "^0.17.0",
43
+ "@piral/feed-client": "^0.18.0",
44
44
  "dets": "^0.13.0",
45
45
  "esbuild": "^0.14.51",
46
46
  "node-fetch": "^3.2.10"