@thestarware/atlascli-jira 1.2.2 → 1.2.3
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core"),user_command_1=require("./user-command");class UserCreate extends user_command_1.UserCommand{async runWithServerSite(e,r){var
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core"),user_command_1=require("./user-command");class UserCreate extends user_command_1.UserCommand{async runWithServerSite(e,r){var a=(await this.parse(UserCreate))["flags"];if(!a.username)throw new Error("username is required for server!");var s={displayName:a.displayName,emailAddress:a.emailAddress,notification:a.notification,password:a.password,name:a.username,active:a.active,applicationKeys:[]},r=(this.removeFlagsFromBase(s),await r.userManager.createUser(s,!0,!0));this.dislayUser(a,r)}async runWithCloudSite(e,r){var a=(await this.parse(UserCreate))["flags"],s={products:a.products||[],displayName:a.displayName,emailAddress:a.emailAddress,notification:a.notification,password:a.password},r=await r.userManager.createUser(s);this.dislayUser(a,r)}}(exports.default=UserCreate).description="Creates a user.",UserCreate.commonUserUpdateCreateFlags={products:core_1.Flags.string({multiple:!0,description:"Products the new user has access to. Valid products are: jira-core, jira-servicedesk, jira-product-discovery, jira-software. If left empty, the user will get default product access. To create a user without product access, set this field to be an empty array.",options:["jira-core","jira-servicedesk","jira-product-discovery","jira-software"]}),displayName:core_1.Flags.string({required:!0,description:"The display name for the user. "}),emailAddress:core_1.Flags.string({required:!0,description:"The email address for the user. "}),notification:core_1.Flags.boolean({allowNo:!0,default:!1,description:"Sends the user an email confirmation that they have been added to Jira. Default is false. "}),password:core_1.Flags.string({description:"A password for the user. If a password is not set, a random password is generated. "}),username:core_1.Flags.string({description:"The username. Only applicable to server and required."}),active:core_1.Flags.boolean({allowNo:!0,default:!0,description:"Whether the user is active or inactive. Default true. Only applicable to server."})},UserCreate.flags=Object.assign(Object.assign({},UserCreate.commonUserUpdateCreateFlags),atlascli_common_1.CommandWithSite.flags);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core"),user_command_1=require("./user-command");class Create extends user_command_1.UserCommand{async runWithServerSite(e,r){var a=(await this.parse(Create))["flags"];if(!a.username)throw new Error("username is required for server!");var s={displayName:a.displayName,emailAddress:a.emailAddress,notification:a.notification,password:a.password,active:a.active,name:a.username},r=(this.removeFlagsFromBase(s),await r.userManager.updateUser(s,
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core"),user_command_1=require("./user-command");class Create extends user_command_1.UserCommand{async runWithServerSite(e,r){var a=(await this.parse(Create))["flags"];if(!a.username)throw new Error("username is required for server!");var s={displayName:a.displayName,emailAddress:a.emailAddress,notification:a.notification,password:a.password,active:a.active,name:a.username},r=(this.removeFlagsFromBase(s),await r.userManager.updateUser(s,a.username,a.userKey));this.dislayUser(a,r)}async runWithCloudSite(){throw new Error("This command is only applicable to server!")}}(exports.default=Create).description="Updates a user.",Create.flags=Object.assign(Object.assign({displayName:core_1.Flags.string({required:!0,description:"The display name for the user. "}),emailAddress:core_1.Flags.string({required:!0,description:"The email address for the user. "}),notification:core_1.Flags.boolean({allowNo:!0,default:!1,description:"Sends the user an email confirmation that they have been added to Jira. Default is false. "}),password:core_1.Flags.string({description:"A password for the user. If a password is not set, a random password is generated. "}),username:core_1.Flags.string({description:"The username. Only applicable to server and required."}),userKey:core_1.Flags.string({description:"The userKey. Only applicable to server and required."}),active:core_1.Flags.boolean({allowNo:!0,default:!0,description:"Whether the user is active or inactive. Default true. Only applicable to server."})},(0,atlascli_common_1.getApplicationKeyFlag)()),atlascli_common_1.CommandWithSite.flags);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thestarware/atlascli-jira",
|
|
3
3
|
"description": "ATLAS CLI for Jira: Command Line Tool",
|
|
4
|
-
"version": "1.2.
|
|
4
|
+
"version": "1.2.3",
|
|
5
5
|
"buildOrder": 3,
|
|
6
6
|
"author": "deniz@thestarware.com",
|
|
7
7
|
"bin": {
|
|
@@ -354,5 +354,6 @@
|
|
|
354
354
|
"recursive": true,
|
|
355
355
|
"reporter": "spec",
|
|
356
356
|
"timeout": 15000
|
|
357
|
-
}
|
|
357
|
+
},
|
|
358
|
+
"private": false
|
|
358
359
|
}
|