@smapiot/piral-cloud-browser 1.16.2-pre.20250423.1 → 1.16.2-pre.20250427.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.
- package/lib/index.d.ts +40 -37
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -27,7 +27,7 @@ declare module "@smapiot/piral-cloud-browser" {
|
|
|
27
27
|
doDelete<T>(path: string, init?: RequestInit): Promise<T>;
|
|
28
28
|
getPilets(ac?: AbortController): Promise<Array<PiletMetadataDTO>>;
|
|
29
29
|
doQueryFeeds(ac?: AbortController): Promise<FeedsDTO>;
|
|
30
|
-
doQueryFeed(feed: string, ac?: AbortController): Promise<
|
|
30
|
+
doQueryFeed(feed: string, ac?: AbortController): Promise<FullFeedDTO>;
|
|
31
31
|
doQueryValidEnvSourceTags(feed: string, eid?: string, offset?: number, count?: number, ac?: AbortController): Promise<ValidSourceTags>;
|
|
32
32
|
doQueryEnvironments(feed: string, ac?: AbortController): Promise<EnvironmentsDTO>;
|
|
33
33
|
doQueryEnvironment(feed: string, eid: string, ac?: AbortController): Promise<EnvironmentDTO>;
|
|
@@ -272,7 +272,20 @@ declare module "@smapiot/piral-cloud-browser" {
|
|
|
272
272
|
maximum: number;
|
|
273
273
|
}
|
|
274
274
|
|
|
275
|
-
export
|
|
275
|
+
export interface FullFeedDTO extends BaseFeedDTO {
|
|
276
|
+
_details: "all";
|
|
277
|
+
contributors: Array<string>;
|
|
278
|
+
targetFeeds: Array<string>;
|
|
279
|
+
links: Record<string, string>;
|
|
280
|
+
sources: Array<{
|
|
281
|
+
type: string;
|
|
282
|
+
source: string;
|
|
283
|
+
}>;
|
|
284
|
+
domains: Array<string>;
|
|
285
|
+
retentionPolicies: Array<string>;
|
|
286
|
+
invalidDomains: Array<string>;
|
|
287
|
+
newDomains: Array<string>;
|
|
288
|
+
}
|
|
276
289
|
|
|
277
290
|
export interface ValidSourceTags extends ApiData<string> {}
|
|
278
291
|
|
|
@@ -420,6 +433,8 @@ declare module "@smapiot/piral-cloud-browser" {
|
|
|
420
433
|
hosts?: Array<string>;
|
|
421
434
|
npmRegistry?: boolean;
|
|
422
435
|
integrity?: boolean;
|
|
436
|
+
scanned?: boolean;
|
|
437
|
+
cleanup?: number;
|
|
423
438
|
}
|
|
424
439
|
|
|
425
440
|
export interface CreatedFeedDTO {
|
|
@@ -987,25 +1002,26 @@ declare module "@smapiot/piral-cloud-browser" {
|
|
|
987
1002
|
items: Array<T>;
|
|
988
1003
|
}
|
|
989
1004
|
|
|
990
|
-
export
|
|
991
|
-
contributors: undefined;
|
|
992
|
-
targetFeeds: undefined;
|
|
993
|
-
sources: undefined;
|
|
994
|
-
}
|
|
1005
|
+
export type FeedDTO = ShortFeedDTO | FullFeedDTO;
|
|
995
1006
|
|
|
996
|
-
export interface
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1007
|
+
export interface BaseFeedDTO {
|
|
1008
|
+
id: string;
|
|
1009
|
+
name: string;
|
|
1010
|
+
account: string;
|
|
1011
|
+
description: string;
|
|
1012
|
+
active: boolean;
|
|
1013
|
+
deleted: boolean;
|
|
1014
|
+
integrity: boolean;
|
|
1015
|
+
npmRegistry: boolean;
|
|
1016
|
+
scanned: boolean;
|
|
1017
|
+
hook: string;
|
|
1018
|
+
hosts: Array<string>;
|
|
1019
|
+
owner: boolean;
|
|
1020
|
+
canEdit: boolean;
|
|
1021
|
+
canAddUser: boolean;
|
|
1022
|
+
canDelete: boolean;
|
|
1023
|
+
plan: string;
|
|
1024
|
+
cleanup?: number;
|
|
1009
1025
|
}
|
|
1010
1026
|
|
|
1011
1027
|
export type EnvironmentTriggerType = "immediate" | "periodically" | "delayed" | "manual";
|
|
@@ -1236,23 +1252,10 @@ declare module "@smapiot/piral-cloud-browser" {
|
|
|
1236
1252
|
|
|
1237
1253
|
export interface NotificationItem {}
|
|
1238
1254
|
|
|
1239
|
-
export interface BaseFeedDTO {
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
description: string;
|
|
1244
|
-
active: boolean;
|
|
1245
|
-
deleted: boolean;
|
|
1246
|
-
integrity: boolean;
|
|
1247
|
-
npmRegistry: boolean;
|
|
1248
|
-
scanned: boolean;
|
|
1249
|
-
hook: string;
|
|
1250
|
-
hosts: Array<string>;
|
|
1251
|
-
owner: boolean;
|
|
1252
|
-
canEdit: boolean;
|
|
1253
|
-
canAddUser: boolean;
|
|
1254
|
-
canDelete: boolean;
|
|
1255
|
-
plan: string;
|
|
1255
|
+
export interface ShortFeedDTO extends BaseFeedDTO {
|
|
1256
|
+
contributors: undefined;
|
|
1257
|
+
targetFeeds: undefined;
|
|
1258
|
+
sources: undefined;
|
|
1256
1259
|
}
|
|
1257
1260
|
|
|
1258
1261
|
export type PiletType = "v0" | "v1" | "v2" | "oc" | "sspa" | "wmf" | "nf" | "esm" | "json" | "yaml";
|
package/package.json
CHANGED