@smapiot/piral-cloud-browser 0.17.0 → 0.18.0

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-browser" {
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-browser" {
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-browser" {
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
@@ -449,6 +449,12 @@ var FeedServiceApiClient = class {
449
449
  doQueryDashboard(ac = mac()) {
450
450
  return this.doGet("dashboard", mri(ac));
451
451
  }
452
+ doQueryIssues(ac = mac()) {
453
+ return this.doGet("issue", mri(ac));
454
+ }
455
+ doCreateIssue(details, ac = mac()) {
456
+ return this.doPost("issue", details, mri(ac));
457
+ }
452
458
  };
453
459
 
454
460
  // src/utils.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smapiot/piral-cloud-browser",
3
- "version": "0.17.0",
3
+ "version": "0.18.0",
4
4
  "description": "Piral Cloud: Browser-usable API Client for the Piral Feed Service.",
5
5
  "author": {
6
6
  "name": "smapiot",
@@ -40,7 +40,7 @@
40
40
  "browser"
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
  }