@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.
Files changed (2) hide show
  1. package/lib/index.d.ts +39 -37
  2. 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<FeedDTO>;
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 type FeedDTO = ShortFeedDTO | FullFeedDTO;
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 interface ShortFeedDTO extends BaseFeedDTO {
992
- contributors: undefined;
993
- targetFeeds: undefined;
994
- sources: undefined;
995
- }
1005
+ export type FeedDTO = ShortFeedDTO | FullFeedDTO;
996
1006
 
997
- export interface FullFeedDTO extends BaseFeedDTO {
998
- _details: "all";
999
- contributors: Array<string>;
1000
- targetFeeds: Array<string>;
1001
- links: Record<string, string>;
1002
- sources: Array<{
1003
- type: string;
1004
- source: string;
1005
- }>;
1006
- domains: Array<string>;
1007
- retentionPolicies: Array<string>;
1008
- invalidDomains: Array<string>;
1009
- newDomains: Array<string>;
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
- id: string;
1242
- name: string;
1243
- account: string;
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smapiot/piral-cloud-browser",
3
- "version": "1.16.2-pre.20250427.1",
3
+ "version": "1.16.2-pre.20250427.2",
4
4
  "description": "Piral Cloud: Browser-usable API Client for the Piral Feed Service.",
5
5
  "author": {
6
6
  "name": "smapiot",