@smapiot/piral-cloud-node 1.18.0-pre.20251119.1 → 1.18.0-pre.20251202.1
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.cjs.js +22 -0
- package/lib/index.d.ts +29 -0
- package/lib/index.esm.js +22 -0
- package/package.json +1 -1
package/lib/index.cjs.js
CHANGED
|
@@ -5683,6 +5683,28 @@ var FeedServiceApiClient = class {
|
|
|
5683
5683
|
doCreateIssue(details, ac = mac()) {
|
|
5684
5684
|
return this.doPost("issue", details, mri(ac));
|
|
5685
5685
|
}
|
|
5686
|
+
doQueryInstalledPlugins(q, offset, count, ac = mac()) {
|
|
5687
|
+
const queryString = makeQueryString({
|
|
5688
|
+
q,
|
|
5689
|
+
offset,
|
|
5690
|
+
count
|
|
5691
|
+
});
|
|
5692
|
+
return this.doGet(`plugins/installed?${queryString}`, mri(ac));
|
|
5693
|
+
}
|
|
5694
|
+
doQueryMarketplacePlugins(q, offset, count, ac = mac()) {
|
|
5695
|
+
const queryString = makeQueryString({
|
|
5696
|
+
q,
|
|
5697
|
+
offset,
|
|
5698
|
+
count
|
|
5699
|
+
});
|
|
5700
|
+
return this.doGet(`plugins/marketplace?${queryString}`, mri(ac));
|
|
5701
|
+
}
|
|
5702
|
+
doQueryInstalledPluginDetails(id, ac = mac()) {
|
|
5703
|
+
return this.doGet(`plugins/installed/${id}`, mri(ac));
|
|
5704
|
+
}
|
|
5705
|
+
doInstallPlugin(details, ac = mac()) {
|
|
5706
|
+
return this.doPost("plugins/installed", details, mri(ac));
|
|
5707
|
+
}
|
|
5686
5708
|
};
|
|
5687
5709
|
|
|
5688
5710
|
// node_modules/node-fetch/src/index.js
|
package/lib/index.d.ts
CHANGED
|
@@ -152,6 +152,10 @@ declare module "@smapiot/piral-cloud-node" {
|
|
|
152
152
|
doSendNotification(details: SendNotificationDetails, ac?: AbortController): Promise<unknown>;
|
|
153
153
|
doQueryIssues(ac?: AbortController): Promise<IssueDTO>;
|
|
154
154
|
doCreateIssue(details: CreateIssueDetails, ac?: AbortController): Promise<CreateIssueResponse>;
|
|
155
|
+
doQueryInstalledPlugins(q: string, offset?: number, count?: number, ac?: AbortController): Promise<ServicePluginDTO>;
|
|
156
|
+
doQueryMarketplacePlugins(q: string, offset?: number, count?: number, ac?: AbortController): Promise<ServicePluginDTO>;
|
|
157
|
+
doQueryInstalledPluginDetails(id: string, ac?: AbortController): Promise<ServicePluginItem>;
|
|
158
|
+
doInstallPlugin(details: InstallServicePluginDetails, ac?: AbortController): Promise<CreateIssueResponse>;
|
|
155
159
|
}
|
|
156
160
|
|
|
157
161
|
/**
|
|
@@ -309,6 +313,7 @@ declare module "@smapiot/piral-cloud-node" {
|
|
|
309
313
|
description: string;
|
|
310
314
|
source: string;
|
|
311
315
|
trigger: EnvironmentTriggerType;
|
|
316
|
+
prefill?: boolean;
|
|
312
317
|
time: number;
|
|
313
318
|
rules: EnvironmentApprovalRules;
|
|
314
319
|
format?: string;
|
|
@@ -978,6 +983,18 @@ declare module "@smapiot/piral-cloud-node" {
|
|
|
978
983
|
success: boolean;
|
|
979
984
|
}
|
|
980
985
|
|
|
986
|
+
export interface ServicePluginDTO extends ApiData<ServicePluginItem> {}
|
|
987
|
+
|
|
988
|
+
export interface ServicePluginItem {
|
|
989
|
+
id: string;
|
|
990
|
+
name: string;
|
|
991
|
+
version: string;
|
|
992
|
+
description: string;
|
|
993
|
+
author: string;
|
|
994
|
+
}
|
|
995
|
+
|
|
996
|
+
export type InstallServicePluginDetails = InstallServicePluginDirectlyDetails | InstallServicePluginFromMarketplaceDetails;
|
|
997
|
+
|
|
981
998
|
/**
|
|
982
999
|
* The simple API key options for creating a new service client.
|
|
983
1000
|
*/
|
|
@@ -1264,6 +1281,17 @@ declare module "@smapiot/piral-cloud-node" {
|
|
|
1264
1281
|
|
|
1265
1282
|
export interface NotificationItem {}
|
|
1266
1283
|
|
|
1284
|
+
export interface InstallServicePluginDirectlyDetails {
|
|
1285
|
+
source: "upload";
|
|
1286
|
+
file: string;
|
|
1287
|
+
content: string;
|
|
1288
|
+
}
|
|
1289
|
+
|
|
1290
|
+
export interface InstallServicePluginFromMarketplaceDetails {
|
|
1291
|
+
source: "marketplace";
|
|
1292
|
+
reference: string;
|
|
1293
|
+
}
|
|
1294
|
+
|
|
1267
1295
|
export interface ShortFeedDTO extends BaseFeedDTO {
|
|
1268
1296
|
contributors: undefined;
|
|
1269
1297
|
targetFeeds: undefined;
|
|
@@ -1288,6 +1316,7 @@ declare module "@smapiot/piral-cloud-node" {
|
|
|
1288
1316
|
environment: boolean;
|
|
1289
1317
|
mapping: Record<string, string>;
|
|
1290
1318
|
fallback: string;
|
|
1319
|
+
noFallback?: boolean;
|
|
1291
1320
|
};
|
|
1292
1321
|
}
|
|
1293
1322
|
|
package/lib/index.esm.js
CHANGED
|
@@ -5681,6 +5681,28 @@ var FeedServiceApiClient = class {
|
|
|
5681
5681
|
doCreateIssue(details, ac = mac()) {
|
|
5682
5682
|
return this.doPost("issue", details, mri(ac));
|
|
5683
5683
|
}
|
|
5684
|
+
doQueryInstalledPlugins(q, offset, count, ac = mac()) {
|
|
5685
|
+
const queryString = makeQueryString({
|
|
5686
|
+
q,
|
|
5687
|
+
offset,
|
|
5688
|
+
count
|
|
5689
|
+
});
|
|
5690
|
+
return this.doGet(`plugins/installed?${queryString}`, mri(ac));
|
|
5691
|
+
}
|
|
5692
|
+
doQueryMarketplacePlugins(q, offset, count, ac = mac()) {
|
|
5693
|
+
const queryString = makeQueryString({
|
|
5694
|
+
q,
|
|
5695
|
+
offset,
|
|
5696
|
+
count
|
|
5697
|
+
});
|
|
5698
|
+
return this.doGet(`plugins/marketplace?${queryString}`, mri(ac));
|
|
5699
|
+
}
|
|
5700
|
+
doQueryInstalledPluginDetails(id, ac = mac()) {
|
|
5701
|
+
return this.doGet(`plugins/installed/${id}`, mri(ac));
|
|
5702
|
+
}
|
|
5703
|
+
doInstallPlugin(details, ac = mac()) {
|
|
5704
|
+
return this.doPost("plugins/installed", details, mri(ac));
|
|
5705
|
+
}
|
|
5684
5706
|
};
|
|
5685
5707
|
|
|
5686
5708
|
// node_modules/node-fetch/src/index.js
|