@smapiot/piral-cloud-node 0.15.0-pre.20230326.1 → 0.15.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 +6 -1
- package/lib/index.js +3 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -24,6 +24,7 @@ declare module "@smapiot/piral-cloud-node" {
|
|
|
24
24
|
doQueryFeeds(ac?: AbortController): Promise<FeedsDTO>;
|
|
25
25
|
doQueryFeed(feed: string, ac?: AbortController): Promise<FeedDTO>;
|
|
26
26
|
doQueryPages(feed: string, tag?: string, ac?: AbortController): Promise<PagesDTO>;
|
|
27
|
+
doUpdatePage(feed: string, version: string, content: PageUpdateDetails, tag?: string, ac?: AbortController): Promise<unknown>;
|
|
27
28
|
doPublishPage(feed: string, content: PagePublishDetails, ac?: AbortController): Promise<unknown>;
|
|
28
29
|
doQueryAllPilets(feed: string, tag?: string, view?: "all" | "selected", ac?: AbortController): Promise<SelectedPiletsDTO>;
|
|
29
30
|
doQueryUploadedPilets(feed: string, name: string, offset?: string, count?: string, ac?: AbortController): Promise<UploadedPiletsDTO>;
|
|
@@ -210,6 +211,10 @@ declare module "@smapiot/piral-cloud-node" {
|
|
|
210
211
|
tags: Array<string>;
|
|
211
212
|
}
|
|
212
213
|
|
|
214
|
+
export interface PageUpdateDetails {
|
|
215
|
+
active: boolean;
|
|
216
|
+
}
|
|
217
|
+
|
|
213
218
|
export interface PagePublishDetails {
|
|
214
219
|
version: string;
|
|
215
220
|
type: "custom" | "none" | "docs" | "siteless";
|
|
@@ -744,7 +749,7 @@ declare module "@smapiot/piral-cloud-node" {
|
|
|
744
749
|
continuation: string;
|
|
745
750
|
}
|
|
746
751
|
|
|
747
|
-
export type PiletType = "v0" | "v1" | "v2" | "oc" | "sspa" | "wmf" | "nf";
|
|
752
|
+
export type PiletType = "v0" | "v1" | "v2" | "oc" | "sspa" | "wmf" | "nf" | "esm" | "json" | "yaml";
|
|
748
753
|
|
|
749
754
|
export interface ApiKeyDTO {
|
|
750
755
|
id: string;
|
package/lib/index.js
CHANGED
|
@@ -4503,6 +4503,9 @@ var FeedServiceApiClient = class {
|
|
|
4503
4503
|
doQueryPages(feed, tag = "latest", ac = mac()) {
|
|
4504
4504
|
return this.doGet(`feed/${feed}/page?tag=${tag}`, mri(ac));
|
|
4505
4505
|
}
|
|
4506
|
+
doUpdatePage(feed, version, content, tag = "latest", ac = mac()) {
|
|
4507
|
+
return this.doPut(`feed/${feed}/page/${version}?tag=${tag}`, content, mri(ac));
|
|
4508
|
+
}
|
|
4506
4509
|
doPublishPage(feed, content, ac = mac()) {
|
|
4507
4510
|
const { FormData: FormData2 } = this.http;
|
|
4508
4511
|
const form = new FormData2();
|