@broadcom/idms-for-zowe-cli 1.0.1 → 1.1.0

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 (79) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +10 -10
  3. package/lib/api/Datasources.d.ts +7 -0
  4. package/lib/api/Datasources.js +60 -0
  5. package/lib/api/Datasources.js.map +1 -0
  6. package/lib/api/Dcmt.js +1 -1
  7. package/lib/api/Dcuf.js +1 -1
  8. package/lib/api/IDMSSession.d.ts +1 -1
  9. package/lib/api/IDMSSession.js +30 -19
  10. package/lib/api/IDMSSession.js.map +1 -1
  11. package/lib/api/Log.js +1 -1
  12. package/lib/api/Systems.js +1 -1
  13. package/lib/api/TransactionDetails.js +1 -1
  14. package/lib/api/UserTasks.js +1 -1
  15. package/lib/api/doc/IDatasource.d.ts +5 -0
  16. package/lib/api/doc/IDatasource.js +25 -0
  17. package/lib/api/doc/IDatasource.js.map +1 -0
  18. package/lib/api/doc/ILogRecord.js +1 -1
  19. package/lib/api/doc/ILogReport.js +1 -1
  20. package/lib/api/doc/ISystem.js +1 -1
  21. package/lib/api/doc/ITaskCommand.js +1 -1
  22. package/lib/api/doc/ITransactionDetail.js +1 -1
  23. package/lib/api/doc/IUserTask.js +1 -1
  24. package/lib/cli/-strings-/en.d.ts +6 -0
  25. package/lib/cli/-strings-/en.js +10 -2
  26. package/lib/cli/-strings-/en.js.map +1 -1
  27. package/lib/cli/IDMSBaseHandler.js +2 -2
  28. package/lib/cli/IDMSBaseHandler.js.map +1 -1
  29. package/lib/cli/issue/Issue.definition.js +2 -2
  30. package/lib/cli/issue/Issue.definition.js.map +1 -1
  31. package/lib/cli/issue/dcmt-display/DcmtDisplay.definition.js +2 -2
  32. package/lib/cli/issue/dcmt-display/DcmtDisplay.handler.js +2 -2
  33. package/lib/cli/issue/dcmt-display/DcmtDisplay.handler.js.map +1 -1
  34. package/lib/cli/issue/dcmt-help/DcmtHelp.definition.js +2 -2
  35. package/lib/cli/issue/dcmt-help/DcmtHelp.handler.js +1 -1
  36. package/lib/cli/issue/dcmt-quiesce/DcmtQuiesce.definition.js +2 -2
  37. package/lib/cli/issue/dcmt-quiesce/DcmtQuiesce.handler.js +1 -1
  38. package/lib/cli/issue/dcmt-shutdown/DcmtShutdown.definition.js +2 -2
  39. package/lib/cli/issue/dcmt-shutdown/DcmtShutdown.handler.js +1 -1
  40. package/lib/cli/issue/dcmt-statistics/DcmtStatistics.definition.js +2 -2
  41. package/lib/cli/issue/dcmt-statistics/DcmtStatistics.handler.js +1 -1
  42. package/lib/cli/issue/dcmt-test/DcmtTest.definition.js +3 -3
  43. package/lib/cli/issue/dcmt-test/DcmtTest.definition.js.map +1 -1
  44. package/lib/cli/issue/dcmt-test/DcmtTest.handler.js +1 -1
  45. package/lib/cli/issue/dcmt-vary/DcmtVary.definition.js +2 -2
  46. package/lib/cli/issue/dcmt-vary/DcmtVary.handler.js +1 -1
  47. package/lib/cli/issue/dcuf-help/DcufHelp.definition.js +2 -2
  48. package/lib/cli/issue/dcuf-help/DcufHelp.handler.js +1 -1
  49. package/lib/cli/issue/dcuf-show/DcufShow.definition.js +2 -2
  50. package/lib/cli/issue/dcuf-show/DcufShow.handler.js +1 -1
  51. package/lib/cli/list/List.definition.js +17 -5
  52. package/lib/cli/list/List.definition.js.map +1 -1
  53. package/lib/cli/list/datasources/Datasources.definition.d.ts +2 -0
  54. package/lib/cli/list/datasources/Datasources.definition.js +67 -0
  55. package/lib/cli/list/datasources/Datasources.definition.js.map +1 -0
  56. package/lib/cli/list/datasources/Datasources.handler.d.ts +23 -0
  57. package/lib/cli/list/datasources/Datasources.handler.js +78 -0
  58. package/lib/cli/list/datasources/Datasources.handler.js.map +1 -0
  59. package/lib/cli/list/log/Log.definition.js +3 -3
  60. package/lib/cli/list/log/Log.definition.js.map +1 -1
  61. package/lib/cli/list/log/Log.handler.js +1 -1
  62. package/lib/cli/list/systems/Systems.definition.js +2 -2
  63. package/lib/cli/list/systems/Systems.handler.js +1 -1
  64. package/lib/cli/list/transactions/TransactionDetails.definition.js +2 -2
  65. package/lib/cli/list/transactions/TransactionDetails.handler.js +1 -1
  66. package/lib/cli/list/user-tasks/UserTasks.definition.js +2 -2
  67. package/lib/cli/list/user-tasks/UserTasks.handler.js +1 -1
  68. package/lib/healthCheck.Handler.js +1 -1
  69. package/lib/imperative.js +29 -7
  70. package/lib/imperative.js.map +1 -1
  71. package/lib/index.js +7 -3
  72. package/lib/index.js.map +1 -1
  73. package/lib/overrides/CredentialManager.override.d.ts +0 -17
  74. package/lib/overrides/CredentialManager.override.js +55 -41
  75. package/lib/overrides/CredentialManager.override.js.map +1 -1
  76. package/lib/util/IdmsRestClient.js +2 -2
  77. package/lib/util/IdmsRestClient.js.map +1 -1
  78. package/package.json +117 -113
  79. package/CHANGELOG.md +0 -16
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /*
3
- * Copyright (c) 2019 Broadcom. All Rights Reserved. The term
3
+ * Copyright (c) 2022 Broadcom. All Rights Reserved. The term
4
4
  * "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
5
5
  *
6
6
  * This software and all information contained therein is
@@ -48,7 +48,7 @@ exports.DcmtStatisticsDefinition = {
48
48
  }
49
49
  ],
50
50
  profile: {
51
- required: ["idms"],
51
+ optional: ["idms"],
52
52
  },
53
53
  outputFormatOptions: true,
54
54
  examples: [
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /*
3
- * Copyright (c) 2019 Broadcom. All Rights Reserved. The term
3
+ * Copyright (c) 2022 Broadcom. All Rights Reserved. The term
4
4
  * "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
5
5
  *
6
6
  * This software and all information contained therein is
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /*
3
- * Copyright (c) 2019 Broadcom. All Rights Reserved. The term
3
+ * Copyright (c) 2022 Broadcom. All Rights Reserved. The term
4
4
  * "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
5
5
  *
6
6
  * This software and all information contained therein is
@@ -30,7 +30,7 @@ exports.DcmtTestDefinition = {
30
30
  name: "dcmt-test",
31
31
  aliases: ["dt"],
32
32
  summary: "DCMT TEST commands",
33
- description: "Execute a DCMT TEST command. Obtains diagnostic information for Broadcom technical support personnel.\n\n The DCMT TEST command is used for debugging and diagnostic purposes only. Use it only when told to do so by CA IDMS technical support personnel. It is enabled only if certain CSA test flags are turned on",
33
+ description: "Execute a DCMT TEST command. Obtains diagnostic information for Broadcom technical support personnel.\n\n The DCMT TEST command is used for debugging and diagnostic purposes only. Use it only when told to do so by IDMS technical support personnel. It is enabled only if certain CSA test flags are turned on",
34
34
  type: "command",
35
35
  handler: __dirname + "/DcmtTest.handler",
36
36
  options: [
@@ -49,7 +49,7 @@ exports.DcmtTestDefinition = {
49
49
  }
50
50
  ],
51
51
  profile: {
52
- required: ["idms"],
52
+ optional: ["idms"],
53
53
  },
54
54
  outputFormatOptions: true,
55
55
  examples: [
@@ -1 +1 @@
1
- {"version":3,"file":"DcmtTest.definition.js","sourceRoot":"","sources":["../../../../src/cli/issue/dcmt-test/DcmtTest.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;EAqBE;;;AAGF,0DAAuD;AAGvD,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,KAAK,CAAC,QAAQ,CAAC;AAEhF,QAAA,kBAAkB,GAAuB;IAClD,IAAI,EAAE,WAAW;IACjB,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,OAAO,EAAE,oBAAoB;IAC7B,WAAW,EAAE,uTAAuT;IACpU,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,mBAAmB;IACxC,OAAO,EAAE;QACL,GAAG,yBAAW,CAAC,uBAAuB;QACtC;YACI,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,uEAAuE;YACpF,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,WAAW;YACjB,OAAO,EAAE,CAAC,GAAG,CAAC;YACd,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,yEAAyE;SACzF;KACJ;IACD,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,MAAM,CAAC;KACrB;IACD,mBAAmB,EAAE,IAAI;IACzB,QAAQ,EAAE;QACA;YACK,eAAe;YACf,OAAO,EAAE,wBAAwB;YACjC,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;SACpC;KACH;CACZ,CAAC"}
1
+ {"version":3,"file":"DcmtTest.definition.js","sourceRoot":"","sources":["../../../../src/cli/issue/dcmt-test/DcmtTest.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;EAqBE;;;AAGF,0DAAuD;AAGvD,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,KAAK,CAAC,QAAQ,CAAC;AAEhF,QAAA,kBAAkB,GAAuB;IAClD,IAAI,EAAE,WAAW;IACjB,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,OAAO,EAAE,oBAAoB;IAC7B,WAAW,EAAE,oTAAoT;IACjU,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,mBAAmB;IACxC,OAAO,EAAE;QACL,GAAG,yBAAW,CAAC,uBAAuB;QACtC;YACI,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,uEAAuE;YACpF,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,WAAW;YACjB,OAAO,EAAE,CAAC,GAAG,CAAC;YACd,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,yEAAyE;SACzF;KACJ;IACD,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,MAAM,CAAC;KACrB;IACD,mBAAmB,EAAE,IAAI;IACzB,QAAQ,EAAE;QACA;YACK,eAAe;YACf,OAAO,EAAE,wBAAwB;YACjC,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;SACpC;KACH;CACZ,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /*
3
- * Copyright (c) 2019 Broadcom. All Rights Reserved. The term
3
+ * Copyright (c) 2022 Broadcom. All Rights Reserved. The term
4
4
  * "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
5
5
  *
6
6
  * This software and all information contained therein is
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /*
3
- * Copyright (c) 2019 Broadcom. All Rights Reserved. The term
3
+ * Copyright (c) 2022 Broadcom. All Rights Reserved. The term
4
4
  * "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
5
5
  *
6
6
  * This software and all information contained therein is
@@ -49,7 +49,7 @@ exports.DcmtVaryDefinition = {
49
49
  }
50
50
  ],
51
51
  profile: {
52
- required: ["idms"],
52
+ optional: ["idms"],
53
53
  },
54
54
  outputFormatOptions: true,
55
55
  examples: [
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /*
3
- * Copyright (c) 2019 Broadcom. All Rights Reserved. The term
3
+ * Copyright (c) 2022 Broadcom. All Rights Reserved. The term
4
4
  * "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
5
5
  *
6
6
  * This software and all information contained therein is
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /*
3
- * Copyright (c) 2019 Broadcom. All Rights Reserved. The term
3
+ * Copyright (c) 2022 Broadcom. All Rights Reserved. The term
4
4
  * "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
5
5
  *
6
6
  * This software and all information contained therein is
@@ -37,7 +37,7 @@ exports.DcufHelpDefinition = {
37
37
  ...IDMSSession_1.IDMSSession.IDMS_CONNECTION_OPTIONS
38
38
  ],
39
39
  profile: {
40
- required: ["idms"],
40
+ optional: ["idms"],
41
41
  },
42
42
  outputFormatOptions: true,
43
43
  examples: [
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /*
3
- * Copyright (c) 2019 Broadcom. All Rights Reserved. The term
3
+ * Copyright (c) 2022 Broadcom. All Rights Reserved. The term
4
4
  * "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
5
5
  *
6
6
  * This software and all information contained therein is
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /*
3
- * Copyright (c) 2019 Broadcom. All Rights Reserved. The term
3
+ * Copyright (c) 2022 Broadcom. All Rights Reserved. The term
4
4
  * "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
5
5
  *
6
6
  * This software and all information contained therein is
@@ -49,7 +49,7 @@ exports.DcufShowDefinition = {
49
49
  }
50
50
  ],
51
51
  profile: {
52
- required: ["idms"],
52
+ optional: ["idms"],
53
53
  },
54
54
  outputFormatOptions: true,
55
55
  examples: [
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /*
3
- * Copyright (c) 2019 Broadcom. All Rights Reserved. The term
3
+ * Copyright (c) 2022 Broadcom. All Rights Reserved. The term
4
4
  * "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
5
5
  *
6
6
  * This software and all information contained therein is
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /*
3
- * Copyright (c) 2019 Broadcom. All Rights Reserved. The term
3
+ * Copyright (c) 2022 Broadcom. All Rights Reserved. The term
4
4
  * "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
5
5
  *
6
6
  * This software and all information contained therein is
@@ -25,13 +25,14 @@ const Systems_definition_1 = require("./systems/Systems.definition");
25
25
  const TransactionDetails_definition_1 = require("./transactions/TransactionDetails.definition");
26
26
  const UserTasks_definition_1 = require("./user-tasks/UserTasks.definition");
27
27
  const Log_definition_1 = require("./log/Log.definition");
28
+ const Datasources_definition_1 = require("./datasources/Datasources.definition");
28
29
  const ListDefinition = {
29
30
  name: "list",
30
31
  aliases: ["ls"],
31
- summary: "List active IDMS systems, log messages, user tasks, and transaction details",
32
- description: "Lists real-time monitor statistics information, log messages, active user tasks, and transaction details",
32
+ summary: "List available datasources, active IDMS systems, log messages, user tasks, and transaction details",
33
+ description: "Lists available datasources, real-time monitor statistics information, log messages, active user tasks, and transaction details",
33
34
  type: "group",
34
- children: [Systems_definition_1.SystemsDefinition, Log_definition_1.LogDefinition, TransactionDetails_definition_1.TransactionDetailsDefinition, UserTasks_definition_1.UserTasksDefinition],
35
+ children: [Datasources_definition_1.DatasourcesDefinition, Systems_definition_1.SystemsDefinition, Log_definition_1.LogDefinition, TransactionDetails_definition_1.TransactionDetailsDefinition, UserTasks_definition_1.UserTasksDefinition],
35
36
  passOn: [
36
37
  {
37
38
  property: "options",
@@ -41,12 +42,23 @@ const ListDefinition = {
41
42
  description: "The job name of the active IDMS system",
42
43
  type: "string",
43
44
  required: true
44
- }],
45
+ },
46
+ {
47
+ name: "datasourcename",
48
+ aliases: ["dsn"],
49
+ description: "The data source name of the specified IDMS system",
50
+ type: "string",
51
+ required: true
52
+ }
53
+ ],
45
54
  merge: true,
46
55
  ignoreNodes: [
47
56
  {
48
57
  type: "group"
49
58
  },
59
+ {
60
+ name: "datasources"
61
+ },
50
62
  {
51
63
  name: "systems"
52
64
  },
@@ -1 +1 @@
1
- {"version":3,"file":"List.definition.js","sourceRoot":"","sources":["../../../src/cli/list/List.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;EAqBE;AAGF,qEAAiE;AACjE,gGAA4F;AAC5F,4EAAwE;AACxE,yDAAqD;AAGrD,MAAM,cAAc,GAAuB;IACvC,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,OAAO,EAAE,6EAA6E;IACtF,WAAW,EAAE,0GAA0G;IACvH,IAAI,EAAE,OAAO;IACb,QAAQ,EAAE,CAAC,sCAAiB,EAAE,8BAAa,EAAE,4DAA4B,EAAE,0CAAmB,CAAC;IAC/F,MAAM,EAAE;QACJ;YACI,QAAQ,EAAE,SAAS;YACnB,KAAK,EAAE,CAAC;oBACJ,IAAI,EAAE,SAAS;oBACf,OAAO,EAAE,CAAC,GAAG,CAAC;oBACd,WAAW,EAAE,wCAAwC;oBACrD,IAAI,EAAE,QAAQ;oBACd,QAAQ,EAAE,IAAI;iBACjB,CAAC;YACF,KAAK,EAAE,IAAI;YACX,WAAW,EAAE;gBACT;oBACI,IAAI,EAAE,OAAO;iBAChB;gBACD;oBACI,IAAI,EAAE,SAAS;iBAClB;gBACD;oBACI,IAAI,EAAE,KAAK;iBACd;aACJ;SACJ;KACJ;CACJ,CAAC;AAEF,iBAAS,cAAc,CAAC"}
1
+ {"version":3,"file":"List.definition.js","sourceRoot":"","sources":["../../../src/cli/list/List.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;EAqBE;AAGF,qEAAiE;AACjE,gGAA4F;AAC5F,4EAAwE;AACxE,yDAAqD;AAErD,iFAA6E;AAE7E,MAAM,cAAc,GAAuB;IACvC,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,OAAO,EAAE,oGAAoG;IAC7G,WAAW,EAAE,iIAAiI;IAC9I,IAAI,EAAE,OAAO;IACb,QAAQ,EAAE,CAAC,8CAAqB,EAAE,sCAAiB,EAAE,8BAAa,EAAE,4DAA4B,EAAE,0CAAmB,CAAC;IACtH,MAAM,EAAE;QACJ;YACI,QAAQ,EAAE,SAAS;YACnB,KAAK,EAAE,CAAC;oBACJ,IAAI,EAAE,SAAS;oBACf,OAAO,EAAE,CAAC,GAAG,CAAC;oBACd,WAAW,EAAE,wCAAwC;oBACrD,IAAI,EAAE,QAAQ;oBACd,QAAQ,EAAE,IAAI;iBACjB;gBACD;oBACI,IAAI,EAAE,gBAAgB;oBACtB,OAAO,EAAE,CAAC,KAAK,CAAC;oBAChB,WAAW,EAAE,mDAAmD;oBAChE,IAAI,EAAE,QAAQ;oBACd,QAAQ,EAAE,IAAI;iBACjB;aACJ;YACG,KAAK,EAAE,IAAI;YACX,WAAW,EAAE;gBACT;oBACI,IAAI,EAAE,OAAO;iBAChB;gBACD;oBACI,IAAI,EAAE,aAAa;iBACtB;gBACD;oBACI,IAAI,EAAE,SAAS;iBAClB;gBACD;oBACI,IAAI,EAAE,KAAK;iBACd;aACJ;SACJ;KACJ;CACJ,CAAC;AAEF,iBAAS,cAAc,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { ICommandDefinition } from "@zowe/imperative";
2
+ export declare const DatasourcesDefinition: ICommandDefinition;
@@ -0,0 +1,67 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) 2022 Broadcom. All Rights Reserved. The term
4
+ * "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
5
+ *
6
+ * This software and all information contained therein is
7
+ * confidential and proprietary and shall not be duplicated,
8
+ * used, disclosed, or disseminated in any way except as
9
+ * authorized by the applicable license agreement, without the
10
+ * express written permission of Broadcom. All authorized
11
+ * reproductions must be marked with this language.
12
+ *
13
+ * EXCEPT AS SET FORTH IN THE APPLICABLE LICENSE AGREEMENT, TO
14
+ * THE EXTENT PERMITTED BY APPLICABLE LAW, BROADCOM PROVIDES THIS
15
+ * SOFTWARE WITHOUT WARRANTY OF ANY KIND, INCLUDING WITHOUT
16
+ * LIMITATION, ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR
17
+ * FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT WILL BROADCOM
18
+ * BE LIABLE TO THE END USER OR ANY THIRD PARTY FOR ANY LOSS OR
19
+ * DAMAGE, DIRECT OR INDIRECT, FROM THE USE OF THIS SOFTWARE,
20
+ * INCLUDING WITHOUT LIMITATION, LOST PROFITS, BUSINESS
21
+ * INTERRUPTION, GOODWILL, OR LOST DATA, EVEN IF BROADCOM IS
22
+ * EXPRESSLY ADVISED OF SUCH LOSS OR DAMAGE.
23
+ */
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.DatasourcesDefinition = void 0;
26
+ const IDMSSession_1 = require("../../../api/IDMSSession");
27
+ // Does not use the import in anticipation of some internationalization work to be done later.
28
+ const strings = require("../../-strings-/en").default.LIST.DATASOURCES;
29
+ exports.DatasourcesDefinition = {
30
+ name: "datasources",
31
+ aliases: ["ds"],
32
+ summary: "Lists defined data sources",
33
+ description: "Lists data sources defined to the IDMS REST API",
34
+ type: "command",
35
+ handler: __dirname + "/Datasources.handler",
36
+ options: [
37
+ ...IDMSSession_1.IDMSSession.IDMS_CONNECTION_OPTIONS,
38
+ {
39
+ name: "datasourcename",
40
+ aliases: ["dsn"],
41
+ description: "Specifies a specific datasource to view the definition of",
42
+ type: "string"
43
+ },
44
+ {
45
+ name: "all",
46
+ aliases: ["a"],
47
+ description: "Lists each datasource defined to the IDMS REST API",
48
+ type: "boolean",
49
+ defaultValue: null
50
+ }
51
+ ],
52
+ profile: {
53
+ optional: ["idms"],
54
+ },
55
+ outputFormatOptions: true,
56
+ examples: [
57
+ {
58
+ options: "--all",
59
+ description: strings.EXAMPLES.EX1
60
+ },
61
+ {
62
+ options: "--dsn SYSDEMO",
63
+ description: strings.EXAMPLES.EX2
64
+ }
65
+ ]
66
+ };
67
+ //# sourceMappingURL=Datasources.definition.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Datasources.definition.js","sourceRoot":"","sources":["../../../../src/cli/list/datasources/Datasources.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;EAqBE;;;AAGF,0DAAuD;AAIvD,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,IAAI,CAAC,WAAW,CAAC;AAElF,QAAA,qBAAqB,GAAuB;IACrD,IAAI,EAAE,aAAa;IACnB,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,OAAO,EAAE,4BAA4B;IACrC,WAAW,EAAE,iDAAiD;IAC9D,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,sBAAsB;IAC3C,OAAO,EAAE;QACL,GAAG,yBAAW,CAAC,uBAAuB;QACtC;YACI,IAAI,EAAE,gBAAgB;YACtB,OAAO,EAAE,CAAC,KAAK,CAAC;YAChB,WAAW,EAAE,2DAA2D;YACxE,IAAI,EAAE,QAAQ;SACjB;QACD;YACI,IAAI,EAAE,KAAK;YACX,OAAO,EAAE,CAAC,GAAG,CAAC;YACd,WAAW,EAAE,oDAAoD;YACjE,IAAI,EAAE,SAAS;YACf,YAAY,EAAE,IAAI;SACrB;KACJ;IACD,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,MAAM,CAAC;KACrB;IACD,mBAAmB,EAAE,IAAI;IACzB,QAAQ,EAAE;QACN;YACI,OAAO,EAAE,OAAO;YAChB,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;SACpC;QACD;YACI,OAAO,EAAE,eAAe;YACxB,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;SACpC;KACJ;CACJ,CAAC"}
@@ -0,0 +1,23 @@
1
+ import { IHandlerParameters } from "@zowe/imperative";
2
+ import { IDMSBaseHandler } from "../../IDMSBaseHandler";
3
+ /**
4
+ * Command handler for listing directory contents
5
+ * @export
6
+ * @class DirectoryContentsHandler
7
+ * @implements {ICommandHandler}
8
+ */
9
+ export default class DatasourcesHandler extends IDMSBaseHandler {
10
+ /**
11
+ * Max table width
12
+ * @static
13
+ * @memberof DirectoryContentsHandler
14
+ */
15
+ static readonly MAX_WIDTH = 9999;
16
+ /**
17
+ * Process the list directory contents command.
18
+ * @param {IHandlerParameters} params
19
+ * @returns {Promise<void>}
20
+ * @memberof DirectoryContentsHandler
21
+ */
22
+ processCmd(params: IHandlerParameters): Promise<void>;
23
+ }
@@ -0,0 +1,78 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) 2022 Broadcom. All Rights Reserved. The term
4
+ * "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
5
+ *
6
+ * This software and all information contained therein is
7
+ * confidential and proprietary and shall not be duplicated,
8
+ * used, disclosed, or disseminated in any way except as
9
+ * authorized by the applicable license agreement, without the
10
+ * express written permission of Broadcom. All authorized
11
+ * reproductions must be marked with this language.
12
+ *
13
+ * EXCEPT AS SET FORTH IN THE APPLICABLE LICENSE AGREEMENT, TO
14
+ * THE EXTENT PERMITTED BY APPLICABLE LAW, BROADCOM PROVIDES THIS
15
+ * SOFTWARE WITHOUT WARRANTY OF ANY KIND, INCLUDING WITHOUT
16
+ * LIMITATION, ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR
17
+ * FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT WILL BROADCOM
18
+ * BE LIABLE TO THE END USER OR ANY THIRD PARTY FOR ANY LOSS OR
19
+ * DAMAGE, DIRECT OR INDIRECT, FROM THE USE OF THIS SOFTWARE,
20
+ * INCLUDING WITHOUT LIMITATION, LOST PROFITS, BUSINESS
21
+ * INTERRUPTION, GOODWILL, OR LOST DATA, EVEN IF BROADCOM IS
22
+ * EXPRESSLY ADVISED OF SUCH LOSS OR DAMAGE.
23
+ */
24
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
25
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
26
+ return new (P || (P = Promise))(function (resolve, reject) {
27
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
28
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
29
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
30
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
31
+ });
32
+ };
33
+ Object.defineProperty(exports, "__esModule", { value: true });
34
+ const IDMSBaseHandler_1 = require("../../IDMSBaseHandler");
35
+ const Datasources_1 = require("../../../api/Datasources");
36
+ /**
37
+ * Command handler for listing directory contents
38
+ * @export
39
+ * @class DirectoryContentsHandler
40
+ * @implements {ICommandHandler}
41
+ */
42
+ class DatasourcesHandler extends IDMSBaseHandler_1.IDMSBaseHandler {
43
+ /**
44
+ * Process the list directory contents command.
45
+ * @param {IHandlerParameters} params
46
+ * @returns {Promise<void>}
47
+ * @memberof DirectoryContentsHandler
48
+ */
49
+ processCmd(params) {
50
+ return __awaiter(this, void 0, void 0, function* () {
51
+ // params.response.console.log("hey");
52
+ const datasources = yield Datasources_1.Datasources.list(this.mSession, params.arguments.datasourcename, params.arguments.all);
53
+ params.response.data.setObj(datasources);
54
+ params.response.data.setMessage(`List of datasources returned, or details of a specific datasource`);
55
+ if (params.arguments.all || !params.arguments.datasourcename) {
56
+ params.response.format.output({
57
+ fields: ["datasourceName", "description", "databaseName"],
58
+ output: datasources,
59
+ format: "table",
60
+ });
61
+ }
62
+ else {
63
+ params.response.format.output({
64
+ output: datasources,
65
+ format: "object"
66
+ });
67
+ }
68
+ });
69
+ }
70
+ }
71
+ exports.default = DatasourcesHandler;
72
+ /**
73
+ * Max table width
74
+ * @static
75
+ * @memberof DirectoryContentsHandler
76
+ */
77
+ DatasourcesHandler.MAX_WIDTH = 9999;
78
+ //# sourceMappingURL=Datasources.handler.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Datasources.handler.js","sourceRoot":"","sources":["../../../../src/cli/list/datasources/Datasources.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;EAqBE;;;;;;;;;;;AAGF,2DAAwD;AACxD,0DAAuD;AAGvD;;;;;GAKG;AACH,MAAqB,kBAAmB,SAAQ,iCAAe;IAQ3D;;;;;OAKG;IACU,UAAU,CAAC,MAA0B;;YAE9C,sCAAsC;YAEtC,MAAM,WAAW,GAAkB,MAAM,yBAAW,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,MAAM,CAAC,SAAS,CAAC,cAAc,EAAE,MAAM,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;YAChI,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;YACzC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,UAAU,CAAC,mEAAmE,CAAC,CAAC;YAErG,IAAI,MAAM,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,cAAc,EAAE;gBAC1D,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;oBAC1B,MAAM,EAAE,CAAC,gBAAgB,EAAE,aAAa,EAAE,cAAc,CAAC;oBACzD,MAAM,EAAE,WAAW;oBACnB,MAAM,EAAE,OAAO;iBAClB,CAAC,CAAC;aACN;iBACI;gBACD,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;oBAC1B,MAAM,EAAE,WAAW;oBACnB,MAAM,EAAE,QAAQ;iBACnB,CAAC,CAAC;aACN;QAEL,CAAC;KAAA;;AApCL,qCAqCC;AApCG;;;;GAIG;AACoB,4BAAS,GAAG,IAAI,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /*
3
- * Copyright (c) 2019 Broadcom. All Rights Reserved. The term
3
+ * Copyright (c) 2022 Broadcom. All Rights Reserved. The term
4
4
  * "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
5
5
  *
6
6
  * This software and all information contained therein is
@@ -37,7 +37,7 @@ exports.LogDefinition = {
37
37
  {
38
38
  name: "datasource",
39
39
  aliases: ["d"],
40
- description: "Identifies the CA IDMS system where the API request will be sent" +
40
+ description: "Identifies the IDMS system where the API request will be sent" +
41
41
  " and is defined in the data sources definition file for the IDMS REST API",
42
42
  type: "string",
43
43
  group: IDMSSession_1.IDMSSession.IDMS_CONNECTION_OPTION_GROUP,
@@ -87,7 +87,7 @@ exports.LogDefinition = {
87
87
  }
88
88
  ],
89
89
  profile: {
90
- required: ["idms"],
90
+ optional: ["idms"],
91
91
  },
92
92
  outputFormatOptions: true,
93
93
  examples: [
@@ -1 +1 @@
1
- {"version":3,"file":"Log.definition.js","sourceRoot":"","sources":["../../../../src/cli/list/log/Log.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;EAqBE;;;AAGF,0DAAuD;A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ACnB,OAAO,EAAE,CAAC,OAAO,CAAC;YAClB,WAAW,EAAE,oCAAoC;gBACjD,kEAAkE;YAClE,IAAI,EAAE,QAAQ;SACjB;KACJ;IACD,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,MAAM,CAAC;KACrB;IACD,mBAAmB,EAAE,IAAI;IACzB,QAAQ,EAAE;QACN;YACI,OAAO,EAAE,yEAAyE;YAClF,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;SACpC;QACD;YACI,OAAO,EAAE,0EAA0E;gBAC/E,wCAAwC;YAC5C,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;SACpC;QACD;YACI,OAAO,EAAE,oFAAoF;gBACpF,8BAA8B;YACvC,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;SACpC;KACJ;CACJ,CAAC"}
1
+ {"version":3,"file":"Log.definition.js","sourceRoot":"","sources":["../../../../src/cli/list/log/Log.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;EAqBE;;;AAGF,0DAAuD;AAIvD,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,IAAI,CAAC,GAAG,CAAC;AAE1E,QAAA,aAAa,GAAuB;IAC7C,IAAI,EAAE,KAAK;IACX,OAAO,EAAE,oBAAoB;IAC7B,WAAW,EAAE,yDAAyD;IACtE,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,cAAc;IACnC,OAAO,EAAE;QACL,GAAG,yBAAW,CAAC,uBAAuB;QACtC;YACI,IAAI,EAAE,YAAY;YAClB,OAAO,EAAE,CAAC,GAAG,CAAC;YACd,WAAW,EAAE,+DAA+D;gBAC5E,2EAA2E;YAC3E,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,yBAAW,CAAC,4BAA4B;YAC/C,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,YAAY;YAClB,OAA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  /*
3
- * Copyright (c) 2019 Broadcom. All Rights Reserved. The term
3
+ * Copyright (c) 2022 Broadcom. All Rights Reserved. The term
4
4
  * "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
5
5
  *
6
6
  * This software and all information contained therein is
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /*
3
- * Copyright (c) 2019 Broadcom. All Rights Reserved. The term
3
+ * Copyright (c) 2022 Broadcom. All Rights Reserved. The term
4
4
  * "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
5
5
  *
6
6
  * This software and all information contained therein is
@@ -50,7 +50,7 @@ exports.SystemsDefinition = {
50
50
  }
51
51
  ],
52
52
  profile: {
53
- required: ["idms"],
53
+ optional: ["idms"],
54
54
  },
55
55
  outputFormatOptions: true,
56
56
  examples: [
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /*
3
- * Copyright (c) 2019 Broadcom. All Rights Reserved. The term
3
+ * Copyright (c) 2022 Broadcom. All Rights Reserved. The term
4
4
  * "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
5
5
  *
6
6
  * This software and all information contained therein is
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /*
3
- * Copyright (c) 2019 Broadcom. All Rights Reserved. The term
3
+ * Copyright (c) 2022 Broadcom. All Rights Reserved. The term
4
4
  * "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
5
5
  *
6
6
  * This software and all information contained therein is
@@ -37,7 +37,7 @@ exports.TransactionDetailsDefinition = {
37
37
  ...IDMSSession_1.IDMSSession.IDMS_CONNECTION_OPTIONS,
38
38
  ],
39
39
  profile: {
40
- required: ["idms"],
40
+ optional: ["idms"],
41
41
  },
42
42
  outputFormatOptions: true,
43
43
  examples: [
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /*
3
- * Copyright (c) 2019 Broadcom. All Rights Reserved. The term
3
+ * Copyright (c) 2022 Broadcom. All Rights Reserved. The term
4
4
  * "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
5
5
  *
6
6
  * This software and all information contained therein is
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /*
3
- * Copyright (c) 2019 Broadcom. All Rights Reserved. The term
3
+ * Copyright (c) 2022 Broadcom. All Rights Reserved. The term
4
4
  * "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
5
5
  *
6
6
  * This software and all information contained therein is
@@ -37,7 +37,7 @@ exports.UserTasksDefinition = {
37
37
  ...IDMSSession_1.IDMSSession.IDMS_CONNECTION_OPTIONS,
38
38
  ],
39
39
  profile: {
40
- required: ["idms"],
40
+ optional: ["idms"],
41
41
  },
42
42
  outputFormatOptions: true,
43
43
  examples: [
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /*
3
- * Copyright (c) 2019 Broadcom. All Rights Reserved. The term
3
+ * Copyright (c) 2022 Broadcom. All Rights Reserved. The term
4
4
  * "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
5
5
  *
6
6
  * This software and all information contained therein is
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /*
3
- * Copyright (c) 2019 Broadcom. All Rights Reserved. The term
3
+ * Copyright (c) 2022 Broadcom. All Rights Reserved. The term
4
4
  * "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
5
5
  *
6
6
  * This software and all information contained therein is
package/lib/imperative.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /*
3
- * Copyright (c) 2019 Broadcom. All Rights Reserved. The term
3
+ * Copyright (c) 2022 Broadcom. All Rights Reserved. The term
4
4
  * "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
5
5
  *
6
6
  * This software and all information contained therein is
@@ -25,16 +25,28 @@ const IDMSSession_1 = require("./api/IDMSSession");
25
25
  const config = {
26
26
  commandModuleGlobs: ["**/cli/*/*.definition!(.d).*s"],
27
27
  pluginHealthCheck: __dirname + "/healthCheck.Handler",
28
- pluginSummary: "Interact with CA IDMS",
29
- rootCommandDescription: "CA IDMS plug-in for listing real-time monitor statistics and information, viewing DC log messages, and issuing DCMT and DCUF commands",
30
- productDisplayName: "CA IDMS Zowe CLI Plug-in",
28
+ pluginSummary: "Interact with IDMS",
29
+ rootCommandDescription: "IDMS plug-in for listing real-time monitor statistics and information, viewing DC log messages, and issuing DCMT and DCUF commands",
30
+ productDisplayName: "IDMS Zowe CLI Plug-in",
31
31
  name: "idms",
32
+ apimlConnLookup: [
33
+ {
34
+ apiId: "bcm.idms",
35
+ gatewayUrl: "api/v1",
36
+ connProfType: "idms"
37
+ },
38
+ {
39
+ apiId: "idms.rest.service.api",
40
+ gatewayUrl: "api/v1",
41
+ connProfType: "idms"
42
+ }
43
+ ],
32
44
  profiles: [
33
45
  {
34
46
  type: "idms",
35
47
  schema: {
36
48
  type: "object",
37
- title: "CA IDMS Profile",
49
+ title: "IDMS Profile",
38
50
  description: "An IDMS profile is required to issue IDMS CLI commands. The IDMS " +
39
51
  "profile contains your host and port information",
40
52
  properties: {
@@ -58,7 +70,8 @@ const config = {
58
70
  },
59
71
  datasource: {
60
72
  type: "string",
61
- optionDefinition: IDMSSession_1.IDMSSession.IDMS_OPTION_DATASOURCE
73
+ optionDefinition: IDMSSession_1.IDMSSession.IDMS_OPTION_DATASOURCE,
74
+ includeInTemplate: true
62
75
  },
63
76
  basePath: {
64
77
  type: "string",
@@ -68,8 +81,17 @@ const config = {
68
81
  type: "boolean",
69
82
  optionDefinition: IDMSSession_1.IDMSSession.IDMS_OPTION_REJECT_UNAUTHORIZED
70
83
  },
84
+ /*tokenType: {
85
+ type: "string",
86
+ optionDefinition: IDMSSession.IDMS_OPTION_TOKEN_TYPE
87
+ },
88
+ tokenValue: {
89
+ type: "string",
90
+ optionDefinition: IDMSSession.IDMS_OPTION_TOKEN_VALUE,
91
+ secure: true
92
+ }*/
71
93
  },
72
- required: ["host"],
94
+ required: [],
73
95
  },
74
96
  createProfileExamples: [
75
97
  {
@@ -1 +1 @@
1
- {"version":3,"file":"imperative.js","sourceRoot":"","sources":["../src/imperative.ts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ACD,IAAI,EAAE;wBACF,IAAI,EAAE,QAAQ;wBACd,MAAM,EAAE,IAAI;wBACZ,gBAAgB,EAAE,yBAAW,CAAC,gBAAgB;qBACjD;oBACD,QAAQ,EAAE;wBACN,IAAI,EAAE,QAAQ;wBACd,MAAM,EAAE,IAAI;wBACZ,gBAAgB,EAAE,yBAAW,CAAC,oBAAoB;qBACrD;oBACD,UAAU,EAAE;wBACR,IAAI,EAAE,QAAQ;wBACd,gBAAgB,EAAE,yBAAW,CAAC,sBAAsB;wBACpD,iBAAiB,EAAE,IAAI;qBAC1B;oBACD,QAAQ,EAAE;wBACN,IAAI,EAAE,QAAQ;wBACd,gBAAgB,EAAE,yBAAW,CAAC,qBAAqB;qBACtD;oBACD,kBAAkB,EAAE;wBAChB,IAAI,EAAE,SAAS;wBACf,gBAAgB,EAAE,yBAAW,CAAC,+BAA+B;qBAChE;oBACL;;;;;;;;uBAQG;iBACF;gBACD,QAAQ,EAAE,EAAE;aACf;YACD,qBAAqB,EAAE;gBACnB;oBACI,OAAO,EAAE,wHAAwH;oBACjI,WAAW,EAAE,uGAAuG;wBACpH,iEAAiE;iBACpE;gBACD;oBACI,OAAO,EAAE,kHAAkH;oBAC3H,WAAW,EAAE,uGAAuG;wBACpH,wHAAwH;iBAC3H;aACJ;YACD,qBAAqB,EAAE;gBACnB;oBACI,OAAO,EAAE,4BAA4B;oBACrC,WAAW,EAAE,8EAA8E;iBAC9F;aACJ;SACJ;KACJ;CACJ,CAAC;AAEF,iBAAS,MAAM,CAAC"}
package/lib/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /*
3
- * Copyright (c) 2019 Broadcom. All Rights Reserved. The term
3
+ * Copyright (c) 2022 Broadcom. All Rights Reserved. The term
4
4
  * "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
5
5
  *
6
6
  * This software and all information contained therein is
@@ -23,13 +23,17 @@
23
23
  */
24
24
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
25
25
  if (k2 === undefined) k2 = k;
26
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
26
+ var desc = Object.getOwnPropertyDescriptor(m, k);
27
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
28
+ desc = { enumerable: true, get: function() { return m[k]; } };
29
+ }
30
+ Object.defineProperty(o, k2, desc);
27
31
  }) : (function(o, m, k, k2) {
28
32
  if (k2 === undefined) k2 = k;
29
33
  o[k2] = m[k];
30
34
  }));
31
35
  var __exportStar = (this && this.__exportStar) || function(m, exports) {
32
- for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
36
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
33
37
  };
34
38
  Object.defineProperty(exports, "__esModule", { value: true });
35
39
  /**
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;EAqBE;;;;;;;;;;;;AAEF;;;;;;;;GAQG;AACH,6CAA2B;AAC3B,6CAA2B;AAC3B,gDAA8B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;EAqBE;;;;;;;;;;;;;;;;AAEF;;;;;;;;GAQG;AACH,6CAA2B;AAC3B,6CAA2B;AAC3B,gDAA8B"}