flex-plugins-api-toolkit
Advanced tools
Comparing version 0.15.0 to 0.15.1
@@ -5,3 +5,3 @@ import { ConfigurationsClient, ConfiguredPluginsClient, PluginsClient, PluginVersionsClient, ReleaseResource, ReleasesClient } from 'flex-plugins-api-client'; | ||
export interface DescribeConfigurationOption { | ||
version: string; | ||
sid: string; | ||
} | ||
@@ -8,0 +8,0 @@ interface ConfiguredPlugins extends DeployPlugin { |
@@ -64,7 +64,7 @@ "use strict"; | ||
switch (_e.label) { | ||
case 0: return [4, configurationClient.get(option.version)]; | ||
case 0: return [4, configurationClient.get(option.sid)]; | ||
case 1: | ||
configuration = _e.sent(); | ||
isActive = Boolean(release && release.configuration_sid === configuration.sid); | ||
return [4, configuredPluginClient.list(option.version)]; | ||
return [4, configuredPluginClient.list(option.sid)]; | ||
case 2: | ||
@@ -71,0 +71,0 @@ list = (_e.sent()).plugins; |
@@ -52,3 +52,3 @@ "use strict"; | ||
active = _a.sent(); | ||
return [4, describeConfiguration_1.internalDescribeConfiguration(pluginClient, pluginVersionClient, configurationClient, configuredPluginClient)({ version: release.configuration_sid }, release)]; | ||
return [4, describeConfiguration_1.internalDescribeConfiguration(pluginClient, pluginVersionClient, configurationClient, configuredPluginClient)({ sid: release.configuration_sid }, release)]; | ||
case 3: | ||
@@ -55,0 +55,0 @@ configuration = _a.sent(); |
import { ReleasesClient } from 'flex-plugins-api-client'; | ||
import { Script } from '.'; | ||
export interface ReleaseOption { | ||
version: string; | ||
configurationSid: string; | ||
} | ||
@@ -9,3 +9,2 @@ export interface Release { | ||
configurationSid: string; | ||
version: string; | ||
dateCreated: string; | ||
@@ -12,0 +11,0 @@ } |
@@ -47,3 +47,3 @@ "use strict"; | ||
createOption = { | ||
ConfigurationId: option.version, | ||
ConfigurationId: option.configurationSid, | ||
}; | ||
@@ -56,3 +56,2 @@ return [4, releaseClient.create(createOption)]; | ||
configurationSid: releaseResource.configuration_sid, | ||
version: option.version, | ||
dateCreated: releaseResource.date_created, | ||
@@ -59,0 +58,0 @@ }]; |
{ | ||
"name": "flex-plugins-api-toolkit", | ||
"version": "0.15.0", | ||
"version": "0.15.1", | ||
"description": "Flex Plugins API Toolkit", | ||
@@ -53,3 +53,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "830d725aabb89e47bc5cc5e3e0a97ab7e403f478" | ||
"gitHead": "fcfa88914f614800b9bbd6a450a51cfecce3d72a" | ||
} |
@@ -83,3 +83,3 @@ [![Version](https://img.shields.io/npm/v/flex-plugins-api-toolkit.svg?style=square)](https://www.npmjs.com/package/flex-plugins-api-toolkit) | ||
addPlugins: string[]; | ||
version: string; | ||
name: string; | ||
removePlugins?: string[]; | ||
@@ -125,3 +125,3 @@ description?: string; | ||
configurationSid: string; | ||
version: string; | ||
name: string; | ||
description: string; | ||
@@ -152,8 +152,6 @@ dateCreated: string; | ||
interface ReleaseOption { | ||
version: string; | ||
configurationSid: string; | ||
} | ||
``` | ||
where `version` is the identifier of the configuration which can be either the version or its sid. | ||
The command returns a promise of type: | ||
@@ -165,3 +163,2 @@ | ||
configurationSid: string; | ||
version: string; | ||
dateCreated: string; | ||
@@ -257,8 +254,6 @@ } | ||
interface DescribeConfigurationOption { | ||
version: string; | ||
sid: string; | ||
} | ||
``` | ||
where the `version` is either the configuration's version or its sid. | ||
The command returns a promise of type: | ||
@@ -269,3 +264,3 @@ | ||
sid: string; | ||
version: string; | ||
name: string; | ||
description: string; | ||
@@ -313,3 +308,3 @@ isActive: boolean; | ||
sid: string; | ||
version: string; | ||
name: string; | ||
description: string; | ||
@@ -418,3 +413,3 @@ isActive: boolean; | ||
sid: string; | ||
version: string; | ||
name: string; | ||
description: string; | ||
@@ -430,3 +425,3 @@ isActive: boolean; | ||
### .listReleasess(option: ListReleasesOption): Promise\<ListReleasesResource> | ||
### .listReleases(option: ListReleasesOption): Promise\<ListReleasesResource> | ||
@@ -486,2 +481,2 @@ This command returns a list of plugins. | ||
where `next_token` and `previous_token` are extracted `PageToken` query parameter from the `next_page_url` and `previous_page_url` parameter respectively. | ||
where `next_token` and `previous_token` are extracted `PageToken` query parameter from the `next_page_url` and `previous_page_url` parameter respectively. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
114054
1483
473