flex-plugins-api-client
Advanced tools
Comparing version
@@ -7,2 +7,3 @@ import ServiceHttpClient, { Pagination, PaginationMeta } from './serviceHttpClient'; | ||
description: string; | ||
archived: boolean; | ||
date_created: string; | ||
@@ -31,3 +32,4 @@ } | ||
create(object: CreateConfigurationResource): Promise<ConfigurationResource>; | ||
archive(configId: string): Promise<ConfigurationResource>; | ||
} | ||
export {}; |
@@ -38,3 +38,7 @@ "use strict"; | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var url_join_1 = __importDefault(require("url-join")); | ||
var RESPONSE_KEY = 'configurations'; | ||
@@ -85,2 +89,9 @@ var ConfigurationsClient = (function () { | ||
}; | ||
ConfigurationsClient.prototype.archive = function (configId) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
return [2, this.client.post(url_join_1.default(ConfigurationsClient.getUrl(configId), 'Archive'), {})]; | ||
}); | ||
}); | ||
}; | ||
return ConfigurationsClient; | ||
@@ -87,0 +98,0 @@ }()); |
@@ -8,2 +8,3 @@ import ServiceHttpClient, { Pagination, PaginationMeta } from './serviceHttpClient'; | ||
friendly_name: string; | ||
archived: boolean; | ||
date_created: string; | ||
@@ -32,3 +33,4 @@ date_updated: string; | ||
upsert(object: CreatePluginResource): Promise<PluginResource>; | ||
archive(id: string): Promise<PluginResource>; | ||
} | ||
export {}; |
@@ -38,3 +38,7 @@ "use strict"; | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var url_join_1 = __importDefault(require("url-join")); | ||
var flex_plugins_api_utils_1 = require("flex-plugins-api-utils"); | ||
@@ -106,2 +110,9 @@ var RESPONSE_KEY = 'plugins'; | ||
}; | ||
PluginsClient.prototype.archive = function (id) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
return [2, this.client.post(url_join_1.default(PluginsClient.getUrl(id), 'Archive'), {})]; | ||
}); | ||
}); | ||
}; | ||
return PluginsClient; | ||
@@ -108,0 +119,0 @@ }()); |
@@ -10,2 +10,3 @@ import ServiceHttpClient, { Pagination, PaginationMeta } from './serviceHttpClient'; | ||
changelog: string; | ||
archived: boolean; | ||
date_created: string; | ||
@@ -30,2 +31,3 @@ } | ||
create(pluginId: string, object: CreatePluginVersionResource): Promise<PluginVersionResource>; | ||
archive(pluginId: string, id: string): Promise<PluginVersionResource>; | ||
} |
@@ -38,3 +38,7 @@ "use strict"; | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var url_join_1 = __importDefault(require("url-join")); | ||
var RESPONSE_KEY = 'plugin_versions'; | ||
@@ -86,2 +90,9 @@ var PluginVersionsClient = (function () { | ||
}; | ||
PluginVersionsClient.prototype.archive = function (pluginId, id) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
return [2, this.client.post(url_join_1.default(PluginVersionsClient.getUrl(pluginId, id), 'Archive'), {})]; | ||
}); | ||
}); | ||
}; | ||
return PluginVersionsClient; | ||
@@ -88,0 +99,0 @@ }()); |
{ | ||
"name": "flex-plugins-api-client", | ||
"version": "0.21.2", | ||
"version": "0.22.0", | ||
"description": "Flex Plugins API Client", | ||
@@ -46,9 +46,11 @@ "keywords": [ | ||
"dependencies": { | ||
"flex-plugins-api-utils": "^0.21.2", | ||
"lodash.upperfirst": "^4.3.1" | ||
"flex-plugins-api-utils": "^0.22.0", | ||
"lodash.upperfirst": "^4.3.1", | ||
"url-join": "^4.0.1" | ||
}, | ||
"gitHead": "a7815b2dcdf14610cb6126a2c76af5f478ac3554", | ||
"gitHead": "909bdace1ecedf725bc7a3d4321828c62b471c42", | ||
"devDependencies": { | ||
"@types/lodash.upperfirst": "^4.3.6" | ||
"@types/lodash.upperfirst": "^4.3.6", | ||
"@types/url-join": "^4.0.0" | ||
} | ||
} |
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
58835
4.32%850
4.81%3
50%2
100%+ Added
+ Added
+ Added
- Removed