@smapiot/piral-cloud-browser 1.16.2-pre.20250427.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 +39 -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,7 @@ declare module "@smapiot/piral-cloud-browser" {
|
|
|
420
433
|
hosts?: Array<string>;
|
|
421
434
|
npmRegistry?: boolean;
|
|
422
435
|
integrity?: boolean;
|
|
436
|
+
scanned?: boolean;
|
|
423
437
|
cleanup?: number;
|
|
424
438
|
}
|
|
425
439
|
|
|
@@ -988,25 +1002,26 @@ declare module "@smapiot/piral-cloud-browser" {
|
|
|
988
1002
|
items: Array<T>;
|
|
989
1003
|
}
|
|
990
1004
|
|
|
991
|
-
export
|
|
992
|
-
contributors: undefined;
|
|
993
|
-
targetFeeds: undefined;
|
|
994
|
-
sources: undefined;
|
|
995
|
-
}
|
|
1005
|
+
export type FeedDTO = ShortFeedDTO | FullFeedDTO;
|
|
996
1006
|
|
|
997
|
-
export interface
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
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;
|
|
1010
1025
|
}
|
|
1011
1026
|
|
|
1012
1027
|
export type EnvironmentTriggerType = "immediate" | "periodically" | "delayed" | "manual";
|
|
@@ -1237,23 +1252,10 @@ declare module "@smapiot/piral-cloud-browser" {
|
|
|
1237
1252
|
|
|
1238
1253
|
export interface NotificationItem {}
|
|
1239
1254
|
|
|
1240
|
-
export interface BaseFeedDTO {
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
description: string;
|
|
1245
|
-
active: boolean;
|
|
1246
|
-
deleted: boolean;
|
|
1247
|
-
integrity: boolean;
|
|
1248
|
-
npmRegistry: boolean;
|
|
1249
|
-
scanned: boolean;
|
|
1250
|
-
hook: string;
|
|
1251
|
-
hosts: Array<string>;
|
|
1252
|
-
owner: boolean;
|
|
1253
|
-
canEdit: boolean;
|
|
1254
|
-
canAddUser: boolean;
|
|
1255
|
-
canDelete: boolean;
|
|
1256
|
-
plan: string;
|
|
1255
|
+
export interface ShortFeedDTO extends BaseFeedDTO {
|
|
1256
|
+
contributors: undefined;
|
|
1257
|
+
targetFeeds: undefined;
|
|
1258
|
+
sources: undefined;
|
|
1257
1259
|
}
|
|
1258
1260
|
|
|
1259
1261
|
export type PiletType = "v0" | "v1" | "v2" | "oc" | "sspa" | "wmf" | "nf" | "esm" | "json" | "yaml";
|
package/package.json
CHANGED