@contrail/extensions-sdk
Advanced tools
Comparing version 1.0.0-alpha.1 to 1.0.0-alpha.2
@@ -39,2 +39,6 @@ "use strict"; | ||
return yield new sdk_1.Entities().batchUpdate(action.options); | ||
case 'delete': | ||
return yield new sdk_1.Entities().delete(action.options); | ||
case 'batchDelete': | ||
return yield new sdk_1.Entities().batchDelete(action.options); | ||
} | ||
@@ -41,0 +45,0 @@ }); |
@@ -1,2 +0,2 @@ | ||
import { EntitiesClientBatchCreateOptions, EntitiesClientBatchUpdateOptions, EntitiesClientCreateOptions, EntitiesClientGetOptions, API_VERSION } from "@contrail/sdk"; | ||
import { EntitiesClientBatchCreateOptions, EntitiesClientBatchDeleteOptions, EntitiesClientBatchUpdateOptions, EntitiesClientCreateOptions, EntitiesClientDeleteOptions, EntitiesClientGetOptions, API_VERSION } from "@contrail/sdk"; | ||
declare class EntitiesClientUpdateOptions { | ||
@@ -18,4 +18,6 @@ entityName?: string; | ||
batchUpdate(options: EntitiesClientBatchUpdateOptions): Promise<any[]>; | ||
delete(options: EntitiesClientDeleteOptions): Promise<any>; | ||
batchDelete(options: EntitiesClientBatchDeleteOptions): Promise<any[]>; | ||
private validateAndReturnEntityClientResults; | ||
} | ||
export {}; |
@@ -47,2 +47,14 @@ "use strict"; | ||
} | ||
delete(options) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const results = yield (0, actions_1.getExtensionActions)().sendMessageToEntitiesClient({ method: 'delete', options }); | ||
return this.validateAndReturnEntityClientResults(results); | ||
}); | ||
} | ||
batchDelete(options) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const results = yield (0, actions_1.getExtensionActions)().sendMessageToEntitiesClient({ method: 'batchDelete', options }); | ||
return this.validateAndReturnEntityClientResults(results); | ||
}); | ||
} | ||
validateAndReturnEntityClientResults(results) { | ||
@@ -49,0 +61,0 @@ var _a; |
{ | ||
"name": "@contrail/extensions-sdk", | ||
"version": "1.0.0-alpha.1", | ||
"version": "1.0.0-alpha.2", | ||
"description": "Client library for interfacing with VibeIQ's services and apps from an extension.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
26300
503