@codiac.io/codiac-cli 1.2.261 → 1.2.262

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 (59) hide show
  1. package/README.md +1 -1
  2. package/dist/apis/codiac-api/common/api-client-base.js +1 -1
  3. package/dist/apis/codiac-api/common/api-client-base.js.map +1 -1
  4. package/dist/apis/codiac-api/gen/client.d.ts +1477 -1473
  5. package/dist/apis/codiac-api/gen/client.js +5554 -5528
  6. package/dist/apis/codiac-api/gen/client.js.map +1 -1
  7. package/dist/apis/codiac-api/gen/contracts.d.ts +10 -2
  8. package/dist/apis/codiac-api/gen/contracts.js +12 -1
  9. package/dist/apis/codiac-api/gen/contracts.js.map +1 -1
  10. package/dist/commands/asset/probe/delete.d.ts +39 -0
  11. package/dist/commands/asset/probe/delete.js +282 -0
  12. package/dist/commands/asset/probe/delete.js.map +1 -0
  13. package/dist/commands/asset/probe/list.d.ts +48 -0
  14. package/dist/commands/asset/probe/list.js +205 -0
  15. package/dist/commands/asset/probe/list.js.map +1 -0
  16. package/dist/commands/asset/view.d.ts +1 -1
  17. package/dist/commands/environment/cluster/attach.d.ts +43 -0
  18. package/dist/commands/environment/cluster/attach.js +214 -0
  19. package/dist/commands/environment/cluster/attach.js.map +1 -0
  20. package/dist/commands/environment/cluster/detach.d.ts +38 -0
  21. package/dist/commands/environment/cluster/detach.js +193 -0
  22. package/dist/commands/environment/cluster/detach.js.map +1 -0
  23. package/dist/commands/environment/list.js +2 -2
  24. package/dist/commands/environment/list.js.map +1 -1
  25. package/dist/commands/filestore/capture.js +2 -2
  26. package/dist/commands/filestore/capture.js.map +1 -1
  27. package/dist/commands/filestore/forget.d.ts +29 -0
  28. package/dist/commands/filestore/forget.js +137 -0
  29. package/dist/commands/filestore/forget.js.map +1 -0
  30. package/dist/commands/filestore/list.d.ts +41 -0
  31. package/dist/commands/filestore/list.js +169 -0
  32. package/dist/commands/filestore/list.js.map +1 -0
  33. package/dist/commands/host/delete.js +2 -1
  34. package/dist/commands/host/delete.js.map +1 -1
  35. package/dist/commands/host/list.js +5 -1
  36. package/dist/commands/host/list.js.map +1 -1
  37. package/dist/commands/secretStore/list.d.ts +44 -0
  38. package/dist/commands/secretStore/list.js +183 -0
  39. package/dist/commands/secretStore/list.js.map +1 -0
  40. package/dist/commands/tenant/switch.d.ts +1 -1
  41. package/dist/commands/tenant/switch.js +9 -5
  42. package/dist/commands/tenant/switch.js.map +1 -1
  43. package/dist/relay/contracts/index.d.ts +1 -0
  44. package/dist/relay/contracts/index.js +5 -0
  45. package/dist/relay/contracts/index.js.map +1 -0
  46. package/dist/uilogic/cloud-resource-configurators/aws-resource-configurator.d.ts +1 -1
  47. package/dist/uilogic/cloud-resource-configurators/aws-resource-configurator.js +1 -1
  48. package/dist/uilogic/cloud-resource-configurators/aws-resource-configurator.js.map +1 -1
  49. package/dist/uilogic/cloud-resource-configurators/azure-resource-configurator.d.ts +1 -1
  50. package/dist/uilogic/cloud-resource-configurators/azure-resource-configurator.js +1 -1
  51. package/dist/uilogic/cloud-resource-configurators/azure-resource-configurator.js.map +1 -1
  52. package/dist/uilogic/i-secret-store-configurator.d.ts +1 -1
  53. package/dist/uilogic/rootmap-ui-utils.d.ts +35 -1
  54. package/dist/uilogic/rootmap-ui-utils.js +146 -4
  55. package/dist/uilogic/rootmap-ui-utils.js.map +1 -1
  56. package/dist/uilogic/tenant-contextualizer.d.ts +1 -1
  57. package/dist/uilogic/tenant-contextualizer.js.map +1 -1
  58. package/oclif.manifest.json +646 -20
  59. package/package.json +1 -1
@@ -801,6 +801,10 @@ export interface Cluster {
801
801
  created: Date;
802
802
  modified: Date;
803
803
  }
804
+ export interface ClusterAttachRequest {
805
+ environmentId: string;
806
+ cluster: string;
807
+ }
804
808
  export interface ClusterCriteria {
805
809
  name?: StringFilter | undefined;
806
810
  location?: string | undefined;
@@ -916,6 +920,10 @@ export interface ClusterDefCriteria {
916
920
  /** Declares that the data be returned in the opposite order than what is specified by the `sort` property. */
917
921
  reverse?: number | boolean | undefined;
918
922
  }
923
+ export interface ClusterDetachRequest {
924
+ environmentId: string;
925
+ cluster: string;
926
+ }
919
927
  /** Similar to an ACL for a cluster: declares an access level for a user on a cluster. */
920
928
  export interface ClusterGrant {
921
929
  clusterName: string;
@@ -1353,7 +1361,7 @@ export interface CspTenantProfile {
1353
1361
  }
1354
1362
  export interface CspTenantProfileCriteria {
1355
1363
  /** Identifier for a supported cloud service provider, for use in selecting infrastructure clients, provisioners, and credentials. */
1356
- provider?: "aws" | "azure" | "dockerHub" | "other" | undefined;
1364
+ provider?: "artifactHub" | "aws" | "azure" | "dockerHub" | "other" | undefined;
1357
1365
  cspTenantId?: string | undefined;
1358
1366
  ids?: string[] | undefined;
1359
1367
  all?: boolean | undefined;
@@ -2417,7 +2425,7 @@ export interface KvpStoreDef {
2417
2425
  export interface KvpStoreDefCriteria {
2418
2426
  name?: string | undefined;
2419
2427
  /** Identifier for a supported cloud service provider, for use in selecting infrastructure clients, provisioners, and credentials. */
2420
- provider?: "aws" | "azure" | "dockerHub" | "other" | undefined;
2428
+ provider?: "artifactHub" | "aws" | "azure" | "dockerHub" | "other" | undefined;
2421
2429
  /** List of codenames for supported KeyValue stores.
2422
2430
  * eg: Clients for these types of stores are registered under these values. */
2423
2431
  type?: "awsKeyVault" | "azBlob" | "azKeyVault" | "etcd" | "mongoCollection" | "mongoDocument" | undefined;
@@ -199,6 +199,11 @@ var SubscriptionStatus;
199
199
  SubscriptionStatus["suspended"] = "suspended";
200
200
  SubscriptionStatus["trial"] = "trial";
201
201
  })(SubscriptionStatus = exports.SubscriptionStatus || (exports.SubscriptionStatus = {}));
202
+ // ============================================================================================
203
+ //
204
+ // PARAMETER CONTRACTS
205
+ //
206
+ // ============================================================================================
202
207
  /*
203
208
  AccessProfile
204
209
  ActivityBase
@@ -246,9 +251,11 @@ CabinetScopesCriteria
246
251
  ChangePasswordRequest
247
252
  CloudProviderEnum
248
253
  Cluster
254
+ ClusterAttachRequest
249
255
  ClusterCriteria
250
256
  ClusterDef
251
257
  ClusterDefCriteria
258
+ ClusterDetachRequest
252
259
  ClusterGrant
253
260
  ClusterGrantCriteria
254
261
  ClusterWithIngress
@@ -427,7 +434,11 @@ WorkFlowStrategyCriteria
427
434
  ZombiePeriod
428
435
  ZombiePeriodCriteria
429
436
  */
437
+ // ============================================================================================
438
+ //
430
439
  // GENERICS
440
+ //
441
+ // ============================================================================================
431
442
  // [Partial<Asset>]
432
443
  // [PartialWithId<ActivityBase>]
433
444
  // [PartialWithId<Asset>]
@@ -480,5 +491,5 @@ ZombiePeriodCriteria
480
491
  // [TEntity]
481
492
  //
482
493
  // UpdatePartialWhereRequest
483
- // Total contract count: 278
494
+ // Total contract count: 293
484
495
  //# sourceMappingURL=contracts.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"contracts.js","sourceRoot":"","sources":["../../../../src/apis/codiac-api/gen/contracts.ts"],"names":[],"mappings":";;;AA4DA,IAAY,gBAQX;AARD,WAAY,gBAAgB;IAC1B,mDAA+B,CAAA;IAC/B,mDAA+B,CAAA;IAC/B,6CAAyB,CAAA;IACzB,iDAA6B,CAAA;IAC7B,6CAAyB,CAAA;IACzB,6CAAyB,CAAA;IACzB,mDAA+B,CAAA;AACjC,CAAC,EARW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAQ3B;AAmCD,IAAY,iBAMX;AAND,WAAY,iBAAiB;IAC3B,oDAA+B,CAAA;IAC/B,gEAA2C,CAAA;IAC3C,kDAA6B,CAAA;IAC7B,oCAAe,CAAA;IACf,8CAAyB,CAAA;AAC3B,CAAC,EANW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAM5B;AAuKD;6FAC6F;AAC7F,IAAY,cAIX;AAJD,WAAY,cAAc;IACxB,+BAAa,CAAA;IACb,6BAAW,CAAA;IACX,qCAAmB,CAAA;AACrB,CAAC,EAJW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAIzB;AA4kBD,qIAAqI;AAC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AAQ;AACR,cAAc;AACd,EAAE;AACF,4BAA4B;AAChC,4BAA4B"}
1
+ {"version":3,"file":"contracts.js","sourceRoot":"","sources":["../../../../src/apis/codiac-api/gen/contracts.ts"],"names":[],"mappings":";;;AA4DA,IAAY,gBAQX;AARD,WAAY,gBAAgB;IAC1B,mDAA+B,CAAA;IAC/B,mDAA+B,CAAA;IAC/B,6CAAyB,CAAA;IACzB,iDAA6B,CAAA;IAC7B,6CAAyB,CAAA;IACzB,6CAAyB,CAAA;IACzB,mDAA+B,CAAA;AACjC,CAAC,EARW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAQ3B;AAmCD,IAAY,iBAMX;AAND,WAAY,iBAAiB;IAC3B,oDAA+B,CAAA;IAC/B,gEAA2C,CAAA;IAC3C,kDAA6B,CAAA;IAC7B,oCAAe,CAAA;IACf,8CAAyB,CAAA;AAC3B,CAAC,EANW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAM5B;AAuKD;6FAC6F;AAC7F,IAAY,cAIX;AAJD,WAAY,cAAc;IACxB,+BAAa,CAAA;IACb,6BAAW,CAAA;IACX,qCAAmB,CAAA;AACrB,CAAC,EAJW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAIzB;AA4kBD,qIAAqI;AACrI,IAAY,iBAMX;AAND,WAAY,iBAAiB;IAC3B,gDAA2B,CAAA;IAC3B,gCAAW,CAAA;IACX,oCAAe,CAAA;IACf,4CAAuB,CAAA;IACvB,oCAAe,CAAA;AACjB,CAAC,EANW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAM5B;AAoaD,+DAA+D;AAC/D,IAAY,kBAoBX;AApBD,WAAY,kBAAkB;IAC5B,mEAAmE;IACnE,mCAAe,CAAA;IACf,iCAAa,CAAA;IACb,iEAAiE;IACjE,6CAAyB,CAAA;IACzB,8DAA8D;IAC9D,6CAAyB,CAAA;IACzB,qCAAqC;IACrC,mCAAe,CAAA;IACf;;uEAEmE;IACnE,qCAAi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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqOE;AAEF,+FAA+F;AAC/F,EAAE;AACF,WAAW;AACX,EAAE;AACF,+FAA+F;AAC3F,qBAAqB;AACrB,kCAAkC;AAClC,2BAA2B;AAC3B,wCAAwC;AACxC,8BAA8B;AAC9B,2BAA2B;AAC3B,mCAAmC;AACnC,6BAA6B;AAC7B,2CAA2C;AAC3C,6BAA6B;AAC7B,gCAAgC;AAChC,kCAAkC;AAClC,kCAAkC;AAClC,6BAA6B;AAC7B,kCAAkC;AAClC,8CAA8C;AAC9C,wCAAwC;AACxC,sCAAsC;AACtC,mCAAmC;AACnC,gCAAgC;AAChC,wCAAwC;AACxC,oCAAoC;AACpC,gCAAgC;AAChC,wCAAwC;AACxC,6CAA6C;AAC7C,+BAA+B;AAC/B,iCAAiC;AACjC,kCAAkC;AAClC,2BAA2B;AAC3B,mCAAmC;AACnC,yBAAyB;AACzB,iCAAiC;AACjC,2BAA2B;AAC3B,iCAAiC;AACjC,2BAA2B;AAC3B,6BAA6B;AAC7B,0CAA0C;AAC1C,0CAA0C;AAC1C,mCAAmC;AACnC,kCAAkC;AAClC,8BAA8B;AAC9B,gCAAgC;AAChC,kCAAkC;AAClC,yBAAyB;AACzB,mCAAmC;AACnC,2CAA2C;AAC3C,sCAAsC;AACtC,kCAAkC;AAClC,QAAQ;AACR,cAAc;AACd,EAAE;AACF,4BAA4B;AAChC,4BAA4B"}
@@ -0,0 +1,39 @@
1
+ import { AtLeast } from '@codiac.io/codiac-common/contracts';
2
+ import { ProbeUsageTypesEnum, RootMap } from '../../../apis/codiac-api/contracts';
3
+ import { CommandBaseExec } from '../../../command-base-exec';
4
+ import { InteractionModes } from "../../../uilogic/config-ui-utils";
5
+ /** Fully declares one and only one ScopedHostNameConfig via a unique index */
6
+ export type IProbeSpecifier = {
7
+ enterprise: string;
8
+ descriptor?: {
9
+ asset?: string;
10
+ usage?: ProbeUsageTypesEnum;
11
+ versionRange?: string | undefined;
12
+ } | undefined;
13
+ ids?: string[] | undefined;
14
+ };
15
+ export default class AssetProbeDelete extends CommandBaseExec<IProbeSpecifier> {
16
+ /** Value to specify for version range to delete probes for all version ranges. */
17
+ static readonly VERSION_RANGE_WILDCARD = "*";
18
+ static description: string;
19
+ static examples: string[];
20
+ static flags: {
21
+ enterprise: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
22
+ asset: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
23
+ usage: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
24
+ "version-range": import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
25
+ id: import("@oclif/core/lib/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
26
+ silent: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
27
+ echo: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
28
+ "to-script": import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
29
+ "take-defaults": import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
30
+ };
31
+ static args: {};
32
+ captureArgs(enterpriseCode: string): Promise<[AtLeast<IProbeSpecifier, "enterprise">, (InteractionModes | undefined), boolean]>;
33
+ buildCandidate_silently(partial: AtLeast<IProbeSpecifier, "enterprise">, rootMap: RootMap): Promise<IProbeSpecifier | undefined>;
34
+ buildCandidate_interactively(partial: AtLeast<IProbeSpecifier, "enterprise">, rootMap: RootMap, takeDefaults: boolean): Promise<IProbeSpecifier | undefined>;
35
+ buildCommandString(candidate: IProbeSpecifier, cmd: string[]): string[];
36
+ executeTask(candidate: IProbeSpecifier): Promise<void>;
37
+ /** TEMP!! until we verify that deleteWhere properly fulfills embeds. */
38
+ private batchDelete;
39
+ }
@@ -0,0 +1,282 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ const core_1 = require("@oclif/core");
5
+ const _ = require("lodash");
6
+ const contracts_1 = require("@codiac.io/codiac-common/contracts");
7
+ const contracts_2 = require("../../../apis/codiac-api/contracts");
8
+ const command_base_exec_1 = require("../../../command-base-exec");
9
+ const config_ui_utils_1 = require("../../../uilogic/config-ui-utils");
10
+ const list_1 = require("./list");
11
+ class AssetProbeDelete extends command_base_exec_1.CommandBaseExec {
12
+ captureArgs(enterpriseCode) {
13
+ var _a, _b, _c;
14
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
15
+ const { args, flags } = yield this.parse(AssetProbeDelete);
16
+ let partial = {
17
+ enterprise: (_a = flags.enterprise) !== null && _a !== void 0 ? _a : enterpriseCode
18
+ };
19
+ if (flags.id) {
20
+ partial.ids = [];
21
+ for (let idspec of flags.id)
22
+ partial.ids.push(...idspec.split(","));
23
+ }
24
+ else {
25
+ partial.descriptor = {};
26
+ if (flags.asset)
27
+ partial.descriptor.asset = flags.asset;
28
+ if (flags.usage)
29
+ partial.descriptor.usage = contracts_2.ProbeUsageTypesEnum[flags.usage]; // <--- the flags def's options constraint guarantees valid entry here.
30
+ if (flags["version-range"])
31
+ partial.descriptor.versionRange = flags["version-range"];
32
+ }
33
+ // ---------------------------------------------------------------
34
+ // TODO: move everything from here down into the base class
35
+ // ---------------------------------------------------------------
36
+ const interactionMode = (this.pipedInput) ? config_ui_utils_1.InteractionModes.silent : (_c = (_b = undefined !== null && undefined !== void 0 ? undefined : (flags.echo ? config_ui_utils_1.InteractionModes.echo : undefined)) !== null && _b !== void 0 ? _b : (flags["to-script"] ? config_ui_utils_1.InteractionModes.toscript : undefined)) !== null && _c !== void 0 ? _c : (flags.silent ? config_ui_utils_1.InteractionModes.silent : undefined);
37
+ const takeDefaults = flags['take-defaults'];
38
+ return [partial, interactionMode, takeDefaults];
39
+ });
40
+ }
41
+ buildCandidate_silently(partial, rootMap) {
42
+ var _a, _b;
43
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
44
+ let candidate;
45
+ if (partial.ids != undefined) {
46
+ candidate = { enterprise: partial.enterprise, ids: partial.ids };
47
+ }
48
+ else {
49
+ // 1) Check for missing input
50
+ if (((_a = partial.descriptor) === null || _a === void 0 ? void 0 : _a.asset) == undefined)
51
+ throw new Error("Missing asset (please set the --asset flag).");
52
+ if (((_b = partial.descriptor) === null || _b === void 0 ? void 0 : _b.usage) == undefined)
53
+ throw new Error("Missing usage type (please set the --usage flag).");
54
+ // 2) validate before we fetch (Check for existence)
55
+ const ent = rootMap.enterprises.find(e => e.name == candidate.enterprise);
56
+ if (!ent)
57
+ throw new Error("Invalid enterprise: not found.");
58
+ const asset = ent.assets.find(a => { var _a; return a.name == ((_a = partial.descriptor) === null || _a === void 0 ? void 0 : _a.asset); });
59
+ if (!asset)
60
+ throw new Error("Invalid asset: not found.");
61
+ // 3) Fetch the id
62
+ let req = {
63
+ enterprise: partial.enterprise,
64
+ asset: partial.descriptor.asset,
65
+ // usage: partial.descriptor.usage // <-- not in the criteria yet
66
+ // versionRange: partial.descriptor.versionRange // <-- not in the criteria yet
67
+ };
68
+ let list = yield this._codiacApi.Probe.readMany(req);
69
+ // Build local query (due to weak criteria obj)...
70
+ let filters = [];
71
+ /** User explicitly instructed us to force the delete over all version ranges. */
72
+ const forAllVersions = Boolean(partial.descriptor.versionRange != AssetProbeDelete.VERSION_RANGE_WILDCARD);
73
+ if (partial.descriptor.usage) {
74
+ filters.push(x => { var _a; return x.type == ((_a = partial.descriptor) === null || _a === void 0 ? void 0 : _a.usage); });
75
+ }
76
+ if (partial.descriptor.versionRange && !forAllVersions) {
77
+ filters.push(x => { var _a; return x.versionRange == ((_a = partial.descriptor) === null || _a === void 0 ? void 0 : _a.versionRange); });
78
+ }
79
+ list = list.filter(x => list_1.AssetProbeUiLogic.checkAll(x, filters));
80
+ if (list.length > 0) {
81
+ let found;
82
+ if (list.length > 1 /* && !forAllVersions */) {
83
+ // throw new Error("More than one probe definition was found for various version ranges. You will need to specify a specific version range or a wildcard * to delete.");
84
+ throw new Error("More than one probe definition was found for various version ranges. You will need to specify a specific version range to delete.");
85
+ }
86
+ else {
87
+ found = list[0];
88
+ }
89
+ candidate = {
90
+ enterprise: found.enterprise,
91
+ descriptor: {
92
+ asset: found.asset,
93
+ usage: found.type,
94
+ versionRange: (list.length > 1 && forAllVersions) ? AssetProbeDelete.VERSION_RANGE_WILDCARD : found.versionRange
95
+ },
96
+ ids: list.map(x => x.id)
97
+ };
98
+ }
99
+ else {
100
+ throw new Error("Probe not found (Please check the Probe list with: cod asset probe list).");
101
+ }
102
+ }
103
+ return candidate;
104
+ });
105
+ }
106
+ buildCandidate_interactively(partial, rootMap, takeDefaults) {
107
+ var _a;
108
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
109
+ // let list = await this._codiacApi.Probe.readMany({ all: true, enterprise: partial.enterprise });
110
+ // MarkStarthere("get these from the rootmap instead...")
111
+ let ent = rootMap.enterprises.find(e => e.name == partial.enterprise);
112
+ if (!ent)
113
+ throw new Error("Enterprise not found."); // this will never happen, but it stiffens our ent object.
114
+ let list = [];
115
+ _.orderBy(ent.assets, a => a.name).forEach(a => { var _a; return list.push(...((_a = a.probes) !== null && _a !== void 0 ? _a : [])); });
116
+ if (list.length == 0) {
117
+ this._ui.userMessage("There are no probes in the enterprise ".concat(partial.enterprise, ". No work to do."));
118
+ this.exit(0);
119
+ return undefined; // this line wont get hit - it's here for ts consistency
120
+ }
121
+ // 1) Force focus onto a single asset
122
+ let assetName;
123
+ let assetChanged;
124
+ let assetType;
125
+ [assetName, assetChanged, assetType] = yield this.rootMapUtils.promptForAsset(ent.assets.filter(a => { var _a, _b; return ((_b = (_a = a.probes) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0) > 0; }), (_a = partial.descriptor) === null || _a === void 0 ? void 0 : _a.asset, true);
126
+ if (!partial.descriptor)
127
+ partial.descriptor = {};
128
+ partial.descriptor.asset = assetName;
129
+ // 2) Select the probe
130
+ let selected;
131
+ let found = list.filter(obj => {
132
+ var _a, _b, _c;
133
+ if (partial.ids) {
134
+ return obj.id && partial.ids.includes(obj.id);
135
+ }
136
+ else {
137
+ let include = true;
138
+ if ((_a = partial.descriptor) === null || _a === void 0 ? void 0 : _a.asset)
139
+ include = include && (obj.asset == partial.descriptor.asset);
140
+ if ((_b = partial.descriptor) === null || _b === void 0 ? void 0 : _b.usage)
141
+ include = include && (obj.type == partial.descriptor.usage);
142
+ if ((_c = partial.descriptor) === null || _c === void 0 ? void 0 : _c.versionRange)
143
+ include = include && (obj.versionRange == partial.descriptor.versionRange);
144
+ return include;
145
+ }
146
+ });
147
+ if (found.length == 0) {
148
+ this._ui.userMessage("No Probes found. No work was done.");
149
+ this.exit(0);
150
+ return undefined; // this line wont get hit - it's here for ts consistency
151
+ }
152
+ else if (found.length == 1) {
153
+ selected = found[0];
154
+ }
155
+ let keep = false; // takeDefaults
156
+ if (selected) {
157
+ keep = yield this._ui.promptConfirm("confirmEntity", "Delete: ".concat(list_1.AssetProbeUiLogic.displayNameFor(selected, this._styler)), false);
158
+ }
159
+ if (selected && !keep && list.length == 1) {
160
+ this._ui.userMessage("There are no other Probes. No work was done.");
161
+ this.exit(0);
162
+ return undefined; // this line wont get hit - it's here for ts consistency
163
+ }
164
+ if (!selected || !keep) {
165
+ let choices = list.map(obj => ({ name: list_1.AssetProbeUiLogic.displayNameFor(obj, this._styler, false), value: obj.id }));
166
+ let selectedId = yield this._ui.promptSelect("selectEntity", "Delete: ", choices, false, false);
167
+ selected = list.find(x => x.id == selectedId); // assertion ok - the choices came from this list
168
+ }
169
+ // 3) Assemble the final request
170
+ let candidate = {
171
+ enterprise: selected.enterprise,
172
+ id: selected.id
173
+ };
174
+ // Only populate the descriptor if the user enter them originally as command params.
175
+ // (For use in building the command string; this is how we determine
176
+ // if they came in with an id or with descriptor args).
177
+ if (!partial.ids) {
178
+ candidate.descriptor = {
179
+ asset: selected.asset,
180
+ usage: selected.type,
181
+ versionRange: selected.versionRange
182
+ };
183
+ }
184
+ return candidate;
185
+ });
186
+ }
187
+ buildCommandString(candidate, cmd) {
188
+ cmd.push("--enterprise", candidate.enterprise);
189
+ if (candidate.descriptor) {
190
+ // DEVNOTE: Assertions ok here bc we already guaranteed that descriptor is all or nothing.
191
+ cmd.push("--asset", candidate.descriptor.asset);
192
+ cmd.push("--usage", candidate.descriptor.usage.toString());
193
+ if (candidate.descriptor.versionRange)
194
+ cmd.push("--version-range", candidate.descriptor.versionRange);
195
+ }
196
+ else {
197
+ if (candidate.ids)
198
+ cmd.push("--id", candidate.ids.join(",")); // this if stmt will always be true.
199
+ }
200
+ cmd.push("--silent");
201
+ return cmd;
202
+ }
203
+ executeTask(candidate) {
204
+ var _a, _b;
205
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
206
+ let delRes = new contracts_1.BatchResult(false);
207
+ if (candidate.ids) {
208
+ this._ui.startSpinner("Removing Probe definition");
209
+ // TODO: Verify that embedding is fulfilled on DeleteWhere, so we can use this instead...
210
+ // delRes = await this._codiacApi.Probe.tryDeleteWhere({ ids: candidate.ids });
211
+ delRes = yield this.batchDelete(candidate.ids);
212
+ this._ui.stopSpinner(delRes.success ? "Completed" : "Failed");
213
+ if (delRes.error)
214
+ throw delRes.error;
215
+ if (delRes.success) {
216
+ if (delRes.successes && (delRes.successes.length > 0)) {
217
+ this._ui.userMessage(this._styler.colorGood("Success!").concat(" Deleted ", delRes.successes.length.toString(), " probes."));
218
+ }
219
+ else {
220
+ this._ui.userMessage("No probes found to delete. No work was done.");
221
+ }
222
+ }
223
+ else if (delRes.failures && (delRes.failures.length > 0)) {
224
+ let msg = [];
225
+ msg.push("Deleted ", ((_b = (_a = delRes.successes) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0).toString());
226
+ msg.push("failed deleting ", delRes.failures.length.toString());
227
+ this._ui.userMessage(msg.join(" and ").concat(" probes."));
228
+ delRes.failures
229
+ .filter(fail => fail.message != undefined)
230
+ .forEach(fail => { var _a; return this._ui.userMessage((_a = fail.message) !== null && _a !== void 0 ? _a : ""); });
231
+ }
232
+ else {
233
+ // Ensures all cases are rendered (regardless of whether batch returns success or fail on no work done)
234
+ this._ui.userMessage("No work to do.");
235
+ }
236
+ }
237
+ });
238
+ }
239
+ /** TEMP!! until we verify that deleteWhere properly fulfills embeds. */
240
+ batchDelete(ids) {
241
+ var _a, _b, _c, _d;
242
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
243
+ let delRes = new contracts_1.BatchResult(false);
244
+ for (let idToDelete of ids) {
245
+ const resEach = yield this._codiacApi.Probe.tryDelete({ id: idToDelete });
246
+ if (resEach.success && resEach.output) {
247
+ if (delRes.successes == undefined)
248
+ delRes.successes = [];
249
+ delRes.successes.push(resEach.output);
250
+ }
251
+ else {
252
+ if (delRes.failures == undefined)
253
+ delRes.failures = [];
254
+ delRes.failures.push(resEach);
255
+ }
256
+ }
257
+ delRes.success = Boolean(((_b = (_a = delRes.failures) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0) == 0) && Boolean(((_d = (_c = delRes.successes) === null || _c === void 0 ? void 0 : _c.length) !== null && _d !== void 0 ? _d : 0) > 0);
258
+ return delRes;
259
+ });
260
+ }
261
+ }
262
+ exports.default = AssetProbeDelete;
263
+ /** Value to specify for version range to delete probes for all version ranges. */
264
+ AssetProbeDelete.VERSION_RANGE_WILDCARD = "*";
265
+ AssetProbeDelete.description = 'Removes an asset probe definition. DOES NOT running assets; assets will need to be redeployed for this change to affect their runtime instances.';
266
+ AssetProbeDelete.examples = [
267
+ '<%= config.bin %> <%= command.id %>',
268
+ ];
269
+ AssetProbeDelete.flags = {
270
+ enterprise: core_1.Flags.string({ char: 'e', description: 'The name of the enterprise on which to apply this naming strategy. NOTE: You can leave this blank if there is only one.' }),
271
+ asset: core_1.Flags.string({ char: 'a', exclusive: ["id"], required: false, description: 'The asset that owns the probe.' }),
272
+ usage: core_1.Flags.string({ char: 'u', description: 'The diagnostic purpose the probe serves.', options: [contracts_2.ProbeUsageTypesEnum.readiness, contracts_2.ProbeUsageTypesEnum.liveness, contracts_2.ProbeUsageTypesEnum.startup] }),
273
+ "version-range": core_1.Flags.string({ char: 'v', required: false, description: "The semantic version range of the asset in which the probe definition applies. You can use the wildcard * to force delete probes for all version ranges. (Note: if specifying, best to select this one interactively if applicable, because you cannot just make one up, it must match the exact range on the the probe record." }),
274
+ id: core_1.Flags.string({ multiple: true, exclusive: ["enterprise", "asset"], description: "The system id of the probe itself. Specify multiple ids by separating with commands and/or adding this flag multiple times. You can enter this parameter instead of the other probe descriptors." }),
275
+ // TODO: Move these into the base class
276
+ silent: core_1.Flags.boolean({ exclusive: ["echo", "to-script"], description: 'Non-Interactive mode; executes without any user interaction and fails on any missing or invalid arguments.' }),
277
+ echo: core_1.Flags.boolean({ exclusive: ["to-script", "silent"], description: 'Echo interaction mode; renders the equivalent non-interactive cli command for future use before final execution.' }),
278
+ "to-script": core_1.Flags.boolean({ exclusive: ["echo", "silent"], description: 'Toscript interaction mode; renders the equivalent non-interactive cli command WITHOUT any execution.' }),
279
+ "take-defaults": core_1.Flags.boolean({ exclusive: ["silent"], description: "Setting this to true prevents prompting for confirmation on parameters that were passed in or were automatically set to default values (Irrelevant in --silent mode). This behavior does NOT apply to scenarios that the command needs to override invalid user input; such cases will always prompt for confirmation. eg: when no argument was provided for file or type, and only one exists, the system will render the autoselected file unless this flag is set." })
280
+ };
281
+ AssetProbeDelete.args = {};
282
+ //# sourceMappingURL=delete.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete.js","sourceRoot":"","sources":["../../../../src/commands/asset/probe/delete.ts"],"names":[],"mappings":";;;AAAA,sCAAyC;AAEzC,4BAA6B;AAC7B,kEAAqF;AACrF,kEAA2K;AAC3K,k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gC,EAAE,CAAC;IACrH,KAAK,EAAE,YAAK,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,WAAW,EAAE,0CAA0C,EAAE,OAAO,EAAE,CAAC,+BAAmB,CAAC,SAAS,EAAE,+BAAmB,CAAC,QAAQ,EAAE,+BAAmB,CAAC,OAAO,CAAC,EAAE,CAAC;IAChM,eAAe,EAAE,YAAK,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,WAAW,EAAE,iUAAiU,EAAE,CAAC;IAC7Y,EAAE,EAAE,YAAK,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,YAAY,EAAE,OAAO,CAAC,EAAE,WAAW,EAAE,mMAAmM,EAAE,CAAC;IAE1R,uCAAuC;IACvC,MAAM,EAAE,YAAK,CAAC,OAAO,CAAC,EAAE,SAAS,EAAE,CAAC,MAAM,EAAE,WAAW,CAAC,EAAE,WAAW,EAAE,4GAA4G,EAAE,CAAC;IACtL,IAAI,EAAE,YAAK,CAAC,OAAO,CAAC,EAAE,SAAS,EAAE,CAAC,WAAW,EAAE,QAAQ,CAAC,EAAE,WAAW,EAAE,kHAAkH,EAAE,CAAC;IAC5L,WAAW,EAAE,YAAK,CAAC,OAAO,CAAC,EAAE,SAAS,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC,EAAE,WAAW,EAAE,sGAAsG,EAAE,CAAC;IAClL,eAAe,EAAE,YAAK,CAAC,OAAO,CAAC,EAAE,SAAS,EAAE,CAAC,QAAQ,CAAC,EAAE,WAAW,EAAE,ycAAyc,EAAE,CAAC;CAClhB,CAAA;AAEM,qBAAI,GAAG,EACb,CAAA"}
@@ -0,0 +1,48 @@
1
+ import { AtLeast } from '@codiac.io/codiac-common/contracts';
2
+ import { Probe, ProbeActionTypesEnum, ProbeCriteria, RootMap } from '../../../apis/codiac-api/contracts';
3
+ import { CommandBaseExec } from '../../../command-base-exec';
4
+ import { InteractionModes } from "../../../uilogic/config-ui-utils";
5
+ import { OutputFormatEnum } from '../../../cli-entities/output-format-enum';
6
+ import { IOutputStyler } from '../../../ops';
7
+ import { KvpStoreTypesEnum } from '../../../relay/contracts';
8
+ export type IProbeQuery = ProbeCriteria & {
9
+ enterprise: string;
10
+ outputFormat: OutputFormatEnum;
11
+ };
12
+ export declare class AssetProbeUiLogic {
13
+ /** Determines an overall true/false result for the given input
14
+ * over the given collection of individual boolean checks. */
15
+ static checkAll<T>(input: T, filters: ((x: T) => boolean)[]): boolean;
16
+ /** COnverts to the name of the kvp store technology WITHOUT the cloud provider prefix.
17
+ * eg: `azKeyVault` converts to `"Key Vault"`
18
+ */
19
+ static friendlyNameFor(type: KvpStoreTypesEnum): string;
20
+ static actionTypeFor(entity: Probe): ProbeActionTypesEnum;
21
+ static actionAbbrvFor(entity: Probe): string;
22
+ static displayNameFor(entity: Probe, styler: IOutputStyler, hilite?: boolean): string;
23
+ }
24
+ export default class AssetProbeList extends CommandBaseExec<IProbeQuery> {
25
+ static description: string;
26
+ static examples: string[];
27
+ /** The values that this command supports for the "type" flag. */
28
+ private static readonly STORE_TYPE_OPTIONS;
29
+ static flags: {
30
+ enterprise: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
31
+ asset: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
32
+ type: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
33
+ action: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
34
+ output: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
35
+ silent: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
36
+ echo: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
37
+ "to-script": import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
38
+ "take-defaults": import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
39
+ };
40
+ static args: {};
41
+ captureArgs(enterpriseCode: string): Promise<[AtLeast<IProbeQuery, "enterprise">, (InteractionModes | undefined), boolean]>;
42
+ buildCandidate_silently(partial: AtLeast<IProbeQuery, "enterprise">, rootMap: RootMap): Promise<IProbeQuery | undefined>;
43
+ buildCandidate_interactively(partial: AtLeast<IProbeQuery, "enterprise">, rootMap: RootMap, takeDefaults: boolean): Promise<IProbeQuery | undefined>;
44
+ buildCommandString(candidate: IProbeQuery, cmd: string[]): string[];
45
+ executeTask(candidate: IProbeQuery): Promise<void>;
46
+ /** TODO: This method is generic. Promote it to a shared utility lib. */
47
+ private renderAs;
48
+ }