@salesforce/plugin-signups 1.2.0 → 1.2.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -17,7 +17,6 @@ export declare class OrgShapeDeleteCommand extends SfdxCommand {
17
17
  static readonly flagsConfig: FlagsConfig;
18
18
  private conn;
19
19
  run(): Promise<OrgShapeDeleteResult>;
20
- protected setExitCode(code: number): void;
21
20
  /**
22
21
  * Delete all ShapeRepresentation records for the shapeOrg.
23
22
  *
@@ -34,7 +34,7 @@ class OrgShapeDeleteCommand extends command_1.SfdxCommand {
34
34
  return;
35
35
  }
36
36
  if (deleteRes.failures.length > 0 && deleteRes.shapeIds.length > 0) {
37
- this.setExitCode(68);
37
+ setExitCode(68);
38
38
  this.ux.styledHeader('Partial Success');
39
39
  this.ux.log(messages.getMessage('humanSuccess', [this.org.getOrgId()]));
40
40
  this.ux.log('');
@@ -46,10 +46,10 @@ class OrgShapeDeleteCommand extends command_1.SfdxCommand {
46
46
  this.ux.table(deleteRes.failures, columns);
47
47
  }
48
48
  else if (deleteRes.failures.length > 0) {
49
- this.setExitCode(1);
49
+ setExitCode(1);
50
50
  }
51
51
  else if (deleteRes.shapeIds.length > 0) {
52
- this.setExitCode(0);
52
+ setExitCode(0);
53
53
  this.ux.log(messages.getMessage('humanSuccess', [this.org.getOrgId()]));
54
54
  }
55
55
  return {
@@ -58,9 +58,6 @@ class OrgShapeDeleteCommand extends command_1.SfdxCommand {
58
58
  failures: deleteRes.failures,
59
59
  };
60
60
  }
61
- setExitCode(code) {
62
- process.exitCode = code;
63
- }
64
61
  /**
65
62
  * Delete all ShapeRepresentation records for the shapeOrg.
66
63
  *
@@ -119,4 +116,7 @@ OrgShapeDeleteCommand.flagsConfig = {
119
116
  description: messages.getMessage('noPrompt'),
120
117
  }),
121
118
  };
119
+ const setExitCode = (code) => {
120
+ process.exitCode = code;
121
+ };
122
122
  //# sourceMappingURL=delete.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete.js","sourceRoot":"","sources":["../../../../../src/commands/force/org/shape/delete.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GAAG,IAAI,CAAC;AACxB,iCAAW,GAAgB;IAChD,QAAQ,EAAE,eAAK,CAAC,OAAO,CAAC;QACtB,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,UAAU,CAAC;KAC7C,CAAC;CACH,CAAC;AA0GJ,MAAM,WAAW,GAAG,CAAC,IAAY,EAAQ,EAAE;IACzC,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC;AAC1B,CAAC,CAAC"}
@@ -18,7 +18,7 @@ const messages = core_1.Messages.loadMessages('@salesforce/plugin-signups', 'sha
18
18
  const orgShapeColumns = {
19
19
  alias: {
20
20
  header: 'ALIAS',
21
- get: (data) => { var _a; return (_a = data.alias) !== null && _a !== void 0 ? _a : ''; },
21
+ get: (data) => data.alias ?? '',
22
22
  },
23
23
  username: { header: 'USERNAME' },
24
24
  orgId: { header: 'ORG ID' },
@@ -37,6 +37,8 @@ class OrgShapeListCommand extends command_1.SfdxCommand {
37
37
  this.ux.table(shapes.map((shape) => (shape.status === 'Active' ? { ...shape, status: chalk.green(shape.status) } : shape)), orgShapeColumns);
38
38
  return shapes;
39
39
  }
40
+ // is public because tests mock it
41
+ // eslint-disable-next-line class-methods-use-this
40
42
  async getAllOrgShapesFromAuthenticatedOrgs() {
41
43
  const orgs = await core_1.AuthInfo.listAllAuthorizations((orgAuth) => !orgAuth.error && !orgAuth.isScratchOrg);
42
44
  if (orgs.length === 0) {
@@ -1 +1 @@
1
- {"version":3,"file":"list.js","sourceRoot":"","sources":["../../../../../src/commands/force/org/shape/list.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,2BAAyB;AACzB,iDAAsE;AACtE,2CAAsD;AACtD,+BAA+B;AAC/B,4EAA+F;AAE/F,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,4BAA4B,EAAE,YAAY,CAAC,CAAC;AAEnF,qCAAqC;AACr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MAAM,KAAK,CAAC,EAAE;YACrB,MAAM,CAAC,GAAG,QAAQ,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC;YAC9C,6DAA6D;YAC7D,2CAA2C;YAC3C,CAAC,CAAC,IAAI,GAAG,aAAa,CAAC;YACvB,MAAM,CAAC,CAAC;SACT;QACD,MAAM,MAAM,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAA,uCAAmB,EAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAC1E,OAAO,MAAM,CAAC,IAAI,EAAE,CAAC;IACvB,CAAC;;AArCH,kDAsCC;AArCwB,+BAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;AACjD,4BAAQ,GAAG,QAAQ,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,QAAG,CAAC,CAAC;AAClD,+BAAW,GAAgB;IAChD,OAAO,EAAE,eAAK,CAAC,OAAO,CAAC;QACrB,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC;KAC5C,CAAC;CACH,CAAC"}
@@ -15,13 +15,12 @@ core_1.Messages.importMessagesDirectory(__dirname);
15
15
  const messages = core_1.Messages.loadMessages('@salesforce/plugin-signups', 'snapshot.create');
16
16
  class SnapshotGet extends command_1.SfdxCommand {
17
17
  async run() {
18
- var _a, _b;
19
18
  // sourceorg might be a username or alias, but we need an orgId
20
19
  let sourceOrgId = this.flags.sourceorg;
21
20
  if (!sourceOrgId.startsWith('00D')) {
22
21
  const stateAggregator = await core_1.StateAggregator.create();
23
- const username = (_a = stateAggregator.aliases.getValue(sourceOrgId)) !== null && _a !== void 0 ? _a : sourceOrgId;
24
- sourceOrgId = (_b = (await stateAggregator.orgs.read(username))) === null || _b === void 0 ? void 0 : _b.orgId;
22
+ const username = stateAggregator.aliases.getValue(sourceOrgId) ?? sourceOrgId;
23
+ sourceOrgId = (await stateAggregator.orgs.read(username))?.orgId;
25
24
  }
26
25
  const createResponse = await this.hubOrg
27
26
  .getConnection()
@@ -1 +1 @@
1
- {"version":3,"file":"create.js","sourceRoot":"","sources":["../../../../../src/commands/force/org/snapshot/create.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,2BAAyB;AACzB,iDAAsE;AACtE,2CAA6D;AAC7D,0DAAmG;AAEnG,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,4BAA4B,EAAE,iBAAiB,CAAC,CAAC;AAExF,MAAa,WAAY,SAAQ,qBAAW;IAyBnC,KAAK,CAAC,GAAG;;QACd,+DAA+D;QAC/D,IAAI,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,SAAmB,CAAC;QAEjD,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE;YAClC,MAAM,eAAe,GAAG,MAAM,sBAAe,CAAC,MAAM,EAAE,CAAC;YACvD,MAAM,QAAQ,GAAG,MAAA,eAAe,CAAC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC,mCAAI,WAAW,CAAC;YAC9E,WAAW,GAAG,MAAA,CAAC,MAAM,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,0CAAE,KAAK,CAAC;SAClE;QAED,MAAM,cAAc,GAAG,MAAM,IAAI,CAAC,MAAM;aACrC,aAAa,EAAE;aACf,OAAO,CAAC,aAAa,CAAC;aACtB,MAAM,CAAC;YACN,SAAS,EAAE,WAAW;YACtB,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,WAAqB;YAC7C,YAAY,EAAE,IAAI,CAAC,KAAK,CAAC,YAAsB;YAC/C,OAAO,EAAE,cAAc;SACxB,CAAC,CAAC;QACL,MAAM,MAAM,GAAG,MAAM,IAAA,0BAAe,EAAC,IAAI,CAAC,MAAM,CAAC,aAAa,EAAE,EAAE,cAAc,CA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AC,gBAAgB,CAAC;QAClD,eAAe,EAAE,QAAQ,CAAC,UAAU,CAAC,oBAAoB,CAAC;QAC1D,QAAQ,EAAE,IAAI;KACf,CAAC;CACH,CAAC"}
@@ -15,20 +15,17 @@ async function getAllShapesFromOrg(orgAuth) {
15
15
  logger.info(`Query org: ${orgAuth.username} for shapes`);
16
16
  try {
17
17
  const shapesFound = await conn.query("SELECT Id, Status, CreatedBy.Username, CreatedDate FROM ShapeRepresentation WHERE Status IN ( 'Active', 'InProgress' )");
18
- return shapesFound.records.map((shape) => {
19
- var _a;
20
- return ({
21
- ...{
22
- orgId: orgAuth.orgId,
23
- username: orgAuth.username,
24
- shapeId: shape.Id,
25
- status: shape.Status,
26
- createdBy: shape.CreatedBy.Username,
27
- createdDate: shape.CreatedDate,
28
- },
29
- ...(((_a = orgAuth.aliases) === null || _a === void 0 ? void 0 : _a.length) > 0 ? { alias: orgAuth.aliases.join(',') } : {}),
30
- });
31
- });
18
+ return shapesFound.records.map((shape) => ({
19
+ ...{
20
+ orgId: orgAuth.orgId,
21
+ username: orgAuth.username,
22
+ shapeId: shape.Id,
23
+ status: shape.Status,
24
+ createdBy: shape.CreatedBy.Username,
25
+ createdDate: shape.CreatedDate,
26
+ },
27
+ ...(orgAuth.aliases?.length > 0 ? { alias: orgAuth.aliases.join(',') } : {}),
28
+ }));
32
29
  }
33
30
  catch (err) {
34
31
  const JsForceErr = err;
@@ -46,10 +43,9 @@ exports.getAllShapesFromOrg = getAllShapesFromOrg;
46
43
  * Check if the ShapeExportPilot preference is enabled.
47
44
  */
48
45
  async function isShapeEnabled(conn) {
49
- var _a, _b;
50
46
  const prefValue = await conn.tooling.query(`SELECT IsShapeExportPrefEnabled FROM ${'DevHubSettings'}`);
51
47
  // no records are returned if ShapeExportPilot perm is disabled
52
- return prefValue.totalSize > 0 && ((_b = (_a = prefValue.records) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.IsShapeExportPrefEnabled);
48
+ return prefValue.totalSize > 0 && prefValue.records?.[0]?.IsShapeExportPrefEnabled;
53
49
  }
54
50
  exports.isShapeEnabled = isShapeEnabled;
55
51
  //# sourceMappingURL=orgShapeListUtils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"orgShapeListUtils.js","sourceRoot":"","sources":["../../src/shared/orgShapeListUtils.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,2CAA6E;AA0BtE,KAAK,UAAU,mBAAmB,CAAC,OAAyB;IACjE,MAAM,GAAG,GAAG,MAAM,UAAG,CAAC,MAAM,CAAC,EAAE,eAAe,EAAE,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC;IACpE,MAAM,IAAI,GAAG,GAAG,CAAC,aAAa,EAAE,CAAC;IACjC,MAAM,MAAM,GAAG,MAAM,aAAM,CAAC,KAAK,CAAC,wBAAwB,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC;IAC9E,MAAM,CAAC,IAAI,CAAC,cAAc,OAAO,CAAC,QAAQ,aAAa,CAAC,CAAC;IACzD,IAAI;QACF,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,KAAK,CAClC,wHAAwH,CACzH,CAAC;QACF,OAAO,WAAW,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE;;YAAC,OAAA,CAAC;gBACzC,GAAG;oBACD,KAAK,EAAE,OAAO,CAAC,KAAK;oBACpB,QAAQ,EAAE,OAAO,CAAC,QAAQ;oBAC1B,OAAO,EAAE,KAAK,CAAC,EAAE;oBACjB,MAAM,EAAE,KAAK,CAAC,MAAM;oBACpB,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,QAAQ;oBACnC,WAAW,EAAE,KAAK,CAAC,WAAW;iBAC/B;gBACD,GAAG,CAAC,CAAA,MAAA,OAAO,CAAC,OAAO,0CAAE,MAAM,IAAG,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,E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
57
57
  get: (row) => rowDateTimeFormatter(row, 'LastClonedDate'),
58
58
  },
59
- LastClonedById: { header: 'Last Cloned By Id', get: (row) => { var _a; return (_a = row.LastClonedById) !== null && _a !== void 0 ? _a : ''; } },
59
+ LastClonedById: { header: 'Last Cloned By Id', get: (row) => row.LastClonedById ?? '' },
60
60
  };
61
61
  const invalidTypeErrorHandler = (e) => {
62
62
  if (e instanceof Error && e.name === 'INVALID_TYPE') {
@@ -94,12 +94,11 @@ const printSingleRecordTable = (snapshotRecord) => {
94
94
  .filter(([key]) => key !== 'attributes')
95
95
  // remove empty error field
96
96
  .filter(([key, value]) => key !== 'Error' || value)
97
+ // every field on the type is a string
97
98
  .map(([key, value]) => ({
98
99
  Name: (0, change_case_1.capitalCase)(key),
99
100
  // format the datetime values
100
- Value: ['LastModifiedDate', 'LastClonedDate', 'CreatedDate'].includes(key)
101
- ? dateTimeFormatter(value)
102
- : value,
101
+ Value: ['LastModifiedDate', 'LastClonedDate', 'CreatedDate'].includes(key) ? dateTimeFormatter(value) : value,
103
102
  }))
104
103
  // null/undefined becomes empty string
105
104
  .map((row) => (row.Value ? row : { ...row, Value: '' })), { Name: {}, Value: {} });
@@ -1 +1 @@
1
- {"version":3,"file":"snapshot.js","sourceRoot":"","sources":["../../src/shared/snapshot.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,sCAAoC;AACpC,2CAAiE;AACjE,6CAA0C;AAE1C,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,IAAI,CAAC,4BAA4B,EAAE,UAAU,EAAE,CAAC,oBAAoB,EAAE,aAAa,CAAC,CAAC,CAAC;AAoBnG,QAAA,mBAAmB,GAAG;IACjC,IAAI;IACJ,cAAc;IACd,aAAa;IACb,QAAQ;IACR,WAAW;IACX,aAAa;IACb,kBAAkB;IAClB,gBAAgB;IAChB,gBAAgB;IAChB,gBAAgB;IAChB,OAAO;CACR,CAAC;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AC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,CAAC,CAAC,EACtC,oBAA+C,EAC/C,EAAE,KAAK,EAAE,kBAAkB,eAAe,CAAC,MAAM,GAAG,EAAE,aAAa,EAAE,IAAI,EAAE,CAC5E,CAAC;AACJ,CAAC,CAAC;AAbW,QAAA,gBAAgB,oBAa3B"}
@@ -1 +1 @@
1
- {"version":"1.2.0","commands":{"force:org:shape:create":{"id":"force:org:shape:create","description":"Create a scratch org configuration (shape) based on the specified source org","strict":true,"usage":"<%= command.id %> [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-signups","pluginAlias":"@salesforce/plugin-signups","pluginType":"core","aliases":[],"examples":["$ sfdx force:org:shape:create -u me@my.org","$ sfdx force:org:shape:create -u me@my.org --json --loglevel debug"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","multiple":false,"options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org","multiple":false},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command","multiple":false}},"args":[],"requiresUsername":true},"force:org:shape:delete":{"id":"force:org:shape:delete","description":"Delete all org shapes for a target org","strict":true,"usage":"<%= command.id %> [-p] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-signups","pluginAlias":"@salesforce/plugin-signups","pluginType":"core","aliases":[],"examples":["$ sfdx force:org:shape:delete -u me@my.org","$ sfdx force:org:shape:delete -u MyOrgAlias -p","$ sfdx force:org:shape:delete -u me@my.org --json","$ sfdx force:org:shape:delete -u me@my.org -p --json > tmp/MyOrgShapeDelete.json"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","multiple":false,"options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org","multiple":false},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command","multiple":false},"noprompt":{"name":"noprompt","type":"boolean","char":"p","description":"do not prompt for confirmation","allowNo":false}},"args":[],"requiresUsername":true,"flagsConfig":{"noprompt":{"kind":"boolean","char":"p","description":"do not prompt for confirmation","allowNo":false,"type":"boolean"}}},"force:org:shape:list":{"id":"force:org:shape:list","description":"List all org shapes you’ve created","strict":true,"usage":"<%= command.id %> [--verbose] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-signups","pluginAlias":"@salesforce/plugin-signups","pluginType":"core","aliases":[],"examples":["$ sfdx force:org:shape:list","$ sfdx force:org:shape:list --json","$ sfdx force:org:shape:list --json > tmp/MyOrgShapeList.json"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","multiple":false,"options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"verbose":{"name":"verbose","type":"boolean","description":"list more information about each org shape","allowNo":false}},"args":[],"flagsConfig":{"verbose":{"description":"list more information about each org shape","type":"boolean","kind":"boolean","longDescription":"Emit additional command output to stdout.","allowNo":false}}},"force:org:snapshot:create":{"id":"force:org:snapshot:create","description":"create a snapshot of a scratch org\nA snapshot is a point-in-time copy of a scratch org. The copy is stored in Salesforce and referenced by its unique name in a scratch org definition file.\n\nUse \"sfdx force:org:snapshot:get\" to get details, including status, about a snapshot creation request.\n\nTo create a scratch org from a snapshot, include the \"snapshot\" entry (instead of \"edition\") in the scratch org definition file and set it to the name of the snapshot. Then use \"sfdx force:org:create\" to create the scratch org.","strict":true,"usage":"<%= command.id %> -o <string> -n <string> [-d <string>] [-v <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-signups","pluginAlias":"@salesforce/plugin-signups","pluginType":"core","aliases":[],"examples":["Create a snapshot called \"Dependencies\" using the source scratch org ID:","$ sfdx force:org:snapshot:create --sourceorg 00Dxx0000000000 --snapshotname Dependencies --description 'Contains PackageA v1.1.0'","Create a snapshot called \"NightlyBranch\" using the source scratch org username:","$ sfdx force:org:snapshot:create -o myuser@myorg -n NightlyBranch -d 'Contains PkgA v2.1.0 and PkgB 3.3.0'"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","multiple":false,"options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetdevhubusername":{"name":"targetdevhubusername","type":"option","char":"v","description":"username or alias for the dev hub org; overrides default dev hub org","multiple":false},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command","multiple":false},"sourceorg":{"name":"sourceorg","type":"option","char":"o","description":"ID or locally authenticated username or alias of scratch org to snapshot","required":true,"multiple":false},"snapshotname":{"name":"snapshotname","type":"option","char":"n","description":"unique name of snapshot","required":true,"multiple":false},"description":{"name":"description","type":"option","char":"d","description":"description of snapshot","multiple":false}},"args":[],"requiresDevhubUsername":true,"flagsConfig":{"sourceorg":{"kind":"string","char":"o","description":"ID or locally authenticated username or alias of scratch org to snapshot","longDescription":"The org ID, or a locally authenticated username or alias, of the scratch org to snapshot.","required":true,"input":[],"multiple":false,"type":"option"},"snapshotname":{"kind":"string","char":"n","description":"unique name of snapshot","longDescription":"The unique name of the snapshot. Use this name to create scratch orgs from the snapshot.","required":true,"input":[],"multiple":false,"type":"option"},"description":{"kind":"string","char":"d","description":"description of snapshot","longDescription":"A description of the snapshot. Use this description to document the contents of the snapshot.\nWe suggest that you include a reference point, such as a version control system tag or commit ID.'","input":[],"multiple":false,"type":"option"}}},"force:org:snapshot:delete":{"id":"force:org:snapshot:delete","description":"delete a scratch org snapshot\nDev Hub admins can delete any snapshot, while users can delete only theirs unless a Dev Hub admin gives the user Modify All permissions.","strict":true,"usage":"<%= command.id %> -s <string> [-v <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-signups","pluginAlias":"@salesforce/plugin-signups","pluginType":"core","aliases":[],"examples":["Delete a snapshot from the default Dev Hub using the snapshot ID:","$ sfdx force:org:snapshot:delete --snapshot 0Oo...","Delete a snapshot from the specified Dev Hub using the snapshot name:","$ sfdx force:org:snapshot:delete -s BaseSnapshot -v SnapshotDevHub"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","multiple":false,"options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetdevhubusername":{"name":"targetdevhubusername","type":"option","char":"v","description":"username or alias for the dev hub org; overrides default dev hub org","multiple":false},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command","multiple":false},"snapshot":{"name":"snapshot","type":"option","char":"s","description":"name or ID of snapshot to delete","required":true,"multiple":false}},"args":[],"requiresDevhubUsername":true,"flagsConfig":{"snapshot":{"kind":"string","char":"s","description":"name or ID of snapshot to delete","longDescription":"The name or ID (starts with 0Oo) of the snapshot to delete.","required":true,"input":[],"multiple":false,"type":"option"}}},"force:org:snapshot:get":{"id":"force:org:snapshot:get","description":"get details about a scratch org snapshot\nSnapshot creation can take a while. Use this command with the snapshot name or ID to check its creation status. Once the status changes to Active, you can use the snapshot to create scratch orgs. \n\nTo create a snapshot, use the \"sfdx force:org:snapshot:create\" command. To retrieve a list of all snapshots, use \"sfdx force:org:snapshot:list\".","strict":true,"usage":"<%= command.id %> -s <string> [-v <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-signups","pluginAlias":"@salesforce/plugin-signups","pluginType":"core","aliases":[],"examples":["Get snapshot details using its ID:","$ sfdx force:org:snapshot:get --snapshot 0Oo...","Get snapshot details using its name:","$ sfdx force:org:snapshot:get -s Dependencies"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","multiple":false,"options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetdevhubusername":{"name":"targetdevhubusername","type":"option","char":"v","description":"username or alias for the dev hub org; overrides default dev hub org","multiple":false},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command","multiple":false},"snapshot":{"name":"snapshot","type":"option","char":"s","description":"name or ID of snapshot to retrieve","required":true,"multiple":false}},"args":[],"requiresDevhubUsername":true,"flagsConfig":{"snapshot":{"kind":"string","char":"s","description":"name or ID of snapshot to retrieve","longDescription":"The name or ID (starts with 0Oo) of the snapshot to retrieve.","required":true,"input":[],"multiple":false,"type":"option"}}},"force:org:snapshot:list":{"id":"force:org:snapshot:list","description":"list scratch org snapshots\nYou can view all the snapshots in a Dev Hub that you have access to. If you’re an admin, you can see all snapshots associated with the Dev Hub org. If you’re a user, you can see only your snapshots unless a Dev Hub admin gives you View All permissions.\n\nTo create a snapshot, use the \"sfdx force:org:snapshot:create\" command. To get details about a snapshot request, use \"sfdx force:org:snapshot:get\".","strict":true,"usage":"<%= command.id %> [-v <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-signups","pluginAlias":"@salesforce/plugin-signups","pluginType":"core","aliases":[],"examples":["List snapshots in the default Dev Hub:","$ sfdx force:org:snapshot:list","List snapshots in the Dev Hub with the specified username:","$ sfdx force:org:snapshot:list -v OtherDevHub@example.com"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","multiple":false,"options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetdevhubusername":{"name":"targetdevhubusername","type":"option","char":"v","description":"username or alias for the dev hub org; overrides default dev hub org","multiple":false},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command","multiple":false}},"args":[],"requiresDevhubUsername":true}}}
1
+ {"version":"1.2.2","commands":{"force:org:shape:create":{"id":"force:org:shape:create","description":"Create a scratch org configuration (shape) based on the specified source org","strict":true,"usage":"<%= command.id %> [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-signups","pluginAlias":"@salesforce/plugin-signups","pluginType":"core","aliases":[],"examples":["$ sfdx force:org:shape:create -u me@my.org","$ sfdx force:org:shape:create -u me@my.org --json --loglevel debug"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","multiple":false,"options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org","multiple":false},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command","multiple":false}},"args":[],"requiresUsername":true},"force:org:shape:delete":{"id":"force:org:shape:delete","description":"Delete all org shapes for a target org","strict":true,"usage":"<%= command.id %> [-p] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-signups","pluginAlias":"@salesforce/plugin-signups","pluginType":"core","aliases":[],"examples":["$ sfdx force:org:shape:delete -u me@my.org","$ sfdx force:org:shape:delete -u MyOrgAlias -p","$ sfdx force:org:shape:delete -u me@my.org --json","$ sfdx force:org:shape:delete -u me@my.org -p --json > tmp/MyOrgShapeDelete.json"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","multiple":false,"options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org","multiple":false},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command","multiple":false},"noprompt":{"name":"noprompt","type":"boolean","char":"p","description":"do not prompt for confirmation","allowNo":false}},"args":[],"requiresUsername":true,"flagsConfig":{"noprompt":{"kind":"boolean","char":"p","description":"do not prompt for confirmation","allowNo":false,"type":"boolean"}}},"force:org:shape:list":{"id":"force:org:shape:list","description":"List all org shapes you’ve created","strict":true,"usage":"<%= command.id %> [--verbose] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-signups","pluginAlias":"@salesforce/plugin-signups","pluginType":"core","aliases":[],"examples":["$ sfdx force:org:shape:list","$ sfdx force:org:shape:list --json","$ sfdx force:org:shape:list --json > tmp/MyOrgShapeList.json"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","multiple":false,"options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"verbose":{"name":"verbose","type":"boolean","description":"list more information about each org shape","allowNo":false}},"args":[],"flagsConfig":{"verbose":{"description":"list more information about each org shape","type":"boolean","kind":"boolean","longDescription":"Emit additional command output to stdout.","allowNo":false}}},"force:org:snapshot:create":{"id":"force:org:snapshot:create","description":"create a snapshot of a scratch org\nA snapshot is a point-in-time copy of a scratch org. The copy is stored in Salesforce and referenced by its unique name in a scratch org definition file.\n\nUse \"sfdx force:org:snapshot:get\" to get details, including status, about a snapshot creation request.\n\nTo create a scratch org from a snapshot, include the \"snapshot\" entry (instead of \"edition\") in the scratch org definition file and set it to the name of the snapshot. Then use \"sfdx force:org:create\" to create the scratch org.","strict":true,"usage":"<%= command.id %> -o <string> -n <string> [-d <string>] [-v <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-signups","pluginAlias":"@salesforce/plugin-signups","pluginType":"core","aliases":[],"examples":["Create a snapshot called \"Dependencies\" using the source scratch org ID:","$ sfdx force:org:snapshot:create --sourceorg 00Dxx0000000000 --snapshotname Dependencies --description 'Contains PackageA v1.1.0'","Create a snapshot called \"NightlyBranch\" using the source scratch org username:","$ sfdx force:org:snapshot:create -o myuser@myorg -n NightlyBranch -d 'Contains PkgA v2.1.0 and PkgB 3.3.0'"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","multiple":false,"options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetdevhubusername":{"name":"targetdevhubusername","type":"option","char":"v","description":"username or alias for the dev hub org; overrides default dev hub org","multiple":false},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command","multiple":false},"sourceorg":{"name":"sourceorg","type":"option","char":"o","description":"ID or locally authenticated username or alias of scratch org to snapshot","required":true,"multiple":false},"snapshotname":{"name":"snapshotname","type":"option","char":"n","description":"unique name of snapshot","required":true,"multiple":false},"description":{"name":"description","type":"option","char":"d","description":"description of snapshot","multiple":false}},"args":[],"requiresDevhubUsername":true,"flagsConfig":{"sourceorg":{"kind":"string","char":"o","description":"ID or locally authenticated username or alias of scratch org to snapshot","longDescription":"The org ID, or a locally authenticated username or alias, of the scratch org to snapshot.","required":true,"input":[],"multiple":false,"type":"option"},"snapshotname":{"kind":"string","char":"n","description":"unique name of snapshot","longDescription":"The unique name of the snapshot. Use this name to create scratch orgs from the snapshot.","required":true,"input":[],"multiple":false,"type":"option"},"description":{"kind":"string","char":"d","description":"description of snapshot","longDescription":"A description of the snapshot. Use this description to document the contents of the snapshot.\nWe suggest that you include a reference point, such as a version control system tag or commit ID.'","input":[],"multiple":false,"type":"option"}}},"force:org:snapshot:delete":{"id":"force:org:snapshot:delete","description":"delete a scratch org snapshot\nDev Hub admins can delete any snapshot, while users can delete only theirs unless a Dev Hub admin gives the user Modify All permissions.","strict":true,"usage":"<%= command.id %> -s <string> [-v <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-signups","pluginAlias":"@salesforce/plugin-signups","pluginType":"core","aliases":[],"examples":["Delete a snapshot from the default Dev Hub using the snapshot ID:","$ sfdx force:org:snapshot:delete --snapshot 0Oo...","Delete a snapshot from the specified Dev Hub using the snapshot name:","$ sfdx force:org:snapshot:delete -s BaseSnapshot -v SnapshotDevHub"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","multiple":false,"options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetdevhubusername":{"name":"targetdevhubusername","type":"option","char":"v","description":"username or alias for the dev hub org; overrides default dev hub org","multiple":false},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command","multiple":false},"snapshot":{"name":"snapshot","type":"option","char":"s","description":"name or ID of snapshot to delete","required":true,"multiple":false}},"args":[],"requiresDevhubUsername":true,"flagsConfig":{"snapshot":{"kind":"string","char":"s","description":"name or ID of snapshot to delete","longDescription":"The name or ID (starts with 0Oo) of the snapshot to delete.","required":true,"input":[],"multiple":false,"type":"option"}}},"force:org:snapshot:get":{"id":"force:org:snapshot:get","description":"get details about a scratch org snapshot\nSnapshot creation can take a while. Use this command with the snapshot name or ID to check its creation status. Once the status changes to Active, you can use the snapshot to create scratch orgs. \n\nTo create a snapshot, use the \"sfdx force:org:snapshot:create\" command. To retrieve a list of all snapshots, use \"sfdx force:org:snapshot:list\".","strict":true,"usage":"<%= command.id %> -s <string> [-v <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-signups","pluginAlias":"@salesforce/plugin-signups","pluginType":"core","aliases":[],"examples":["Get snapshot details using its ID:","$ sfdx force:org:snapshot:get --snapshot 0Oo...","Get snapshot details using its name:","$ sfdx force:org:snapshot:get -s Dependencies"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","multiple":false,"options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetdevhubusername":{"name":"targetdevhubusername","type":"option","char":"v","description":"username or alias for the dev hub org; overrides default dev hub org","multiple":false},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command","multiple":false},"snapshot":{"name":"snapshot","type":"option","char":"s","description":"name or ID of snapshot to retrieve","required":true,"multiple":false}},"args":[],"requiresDevhubUsername":true,"flagsConfig":{"snapshot":{"kind":"string","char":"s","description":"name or ID of snapshot to retrieve","longDescription":"The name or ID (starts with 0Oo) of the snapshot to retrieve.","required":true,"input":[],"multiple":false,"type":"option"}}},"force:org:snapshot:list":{"id":"force:org:snapshot:list","description":"list scratch org snapshots\nYou can view all the snapshots in a Dev Hub that you have access to. If you’re an admin, you can see all snapshots associated with the Dev Hub org. If you’re a user, you can see only your snapshots unless a Dev Hub admin gives you View All permissions.\n\nTo create a snapshot, use the \"sfdx force:org:snapshot:create\" command. To get details about a snapshot request, use \"sfdx force:org:snapshot:get\".","strict":true,"usage":"<%= command.id %> [-v <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-signups","pluginAlias":"@salesforce/plugin-signups","pluginType":"core","aliases":[],"examples":["List snapshots in the default Dev Hub:","$ sfdx force:org:snapshot:list","List snapshots in the Dev Hub with the specified username:","$ sfdx force:org:snapshot:list -v OtherDevHub@example.com"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","multiple":false,"options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetdevhubusername":{"name":"targetdevhubusername","type":"option","char":"v","description":"username or alias for the dev hub org; overrides default dev hub org","multiple":false},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command","multiple":false}},"args":[],"requiresDevhubUsername":true}}}
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@salesforce/plugin-signups",
3
3
  "description": "Commands to interact with org shapes",
4
- "version": "1.2.0",
4
+ "version": "1.2.2",
5
5
  "author": "Salesforce",
6
6
  "main": "lib/index.js",
7
7
  "bugs": "https://github.com/forcedotcom/cli/issues",
8
8
  "dependencies": {
9
- "@oclif/core": "^1.6.3",
10
- "@salesforce/command": "^5.0.1",
9
+ "@oclif/core": "^1.16.3",
10
+ "@salesforce/command": "^5.2.8",
11
11
  "@salesforce/core": "^3.19.3",
12
12
  "chalk": "^4.1.2",
13
13
  "change-case": "^4.1.2",
@@ -17,39 +17,39 @@
17
17
  "@oclif/plugin-command-snapshot": "^3.1.3",
18
18
  "@salesforce/cli-plugins-testkit": "^1.5.3",
19
19
  "@salesforce/dev-config": "^3.0.1",
20
- "@salesforce/dev-scripts": "^2.0.1",
20
+ "@salesforce/dev-scripts": "^3.0.0",
21
21
  "@salesforce/plugin-command-reference": "^1.3.18",
22
22
  "@salesforce/prettier-config": "^0.0.2",
23
23
  "@salesforce/ts-sinon": "1.3.21",
24
- "@salesforce/ts-types": "^1.5.20",
24
+ "@salesforce/ts-types": "^1.5.21",
25
+ "@types/chai-as-promised": "^7.1.5",
25
26
  "@types/chai-string": "^1.4.2",
26
27
  "@types/shelljs": "^0.8.11",
27
- "@typescript-eslint/eslint-plugin": "^4.33.0",
28
- "@typescript-eslint/parser": "^4.32.0",
28
+ "@typescript-eslint/eslint-plugin": "^5.33.0",
29
+ "@typescript-eslint/parser": "^5.33.0",
29
30
  "chai": "^4.3.4",
30
31
  "chai-as-promised": "7.1.1",
31
32
  "chai-string": "^1.5.0",
32
33
  "cz-conventional-changelog": "^3.3.0",
33
- "eslint": "^7.32.0",
34
- "eslint-config-prettier": "^8.3.0",
35
- "eslint-config-salesforce": "^0.1.6",
34
+ "eslint": "^8.23.1",
35
+ "eslint-config-prettier": "^8.5.0",
36
+ "eslint-config-salesforce": "^1.1.0",
36
37
  "eslint-config-salesforce-license": "^0.1.6",
37
- "eslint-config-salesforce-typescript": "^0.2.8",
38
+ "eslint-config-salesforce-typescript": "^1.1.1",
38
39
  "eslint-plugin-header": "^3.1.1",
39
- "eslint-plugin-import": "^2.24.2",
40
- "eslint-plugin-jsdoc": "^35.5.1",
41
- "eslint-plugin-prettier": "^3.4.1",
40
+ "eslint-plugin-import": "^2.26.0",
41
+ "eslint-plugin-jsdoc": "^39.3.6",
42
42
  "husky": "^7.0.4",
43
43
  "lint-staged": "^11.2.0",
44
44
  "mocha": "^9.1.3",
45
45
  "nyc": "^15.1.0",
46
46
  "oclif": "^2.6.1",
47
- "prettier": "^2.4.1",
47
+ "prettier": "^2.7.1",
48
48
  "pretty-quick": "^3.1.0",
49
49
  "shx": "0.3.4",
50
50
  "sinon": "^11.1.1",
51
51
  "ts-node": "^10.2.1",
52
- "typescript": "^4.6.4"
52
+ "typescript": "^4.8.3"
53
53
  },
54
54
  "config": {
55
55
  "commitizen": {
@@ -133,7 +133,7 @@
133
133
  "access": "public"
134
134
  },
135
135
  "sfdx": {
136
- "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-signups/1.2.0.crt",
137
- "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-signups/1.2.0.sig"
136
+ "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-signups/1.2.2.crt",
137
+ "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-signups/1.2.2.sig"
138
138
  }
139
139
  }
package/CHANGELOG.md DELETED
@@ -1,40 +0,0 @@
1
- # Changelog
2
-
3
- All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
-
5
- ## [1.2.0](https://github.com/salesforcecli/plugin-signups/compare/v1.1.2...v1.2.0) (2022-06-22)
6
-
7
- ### Features
8
-
9
- - use StateAggregator ([e6e3d78](https://github.com/salesforcecli/plugin-signups/commit/e6e3d78e0fc47208260f3dcc9574c6766b853b6c))
10
-
11
- ### [1.1.2](https://github.com/salesforcecli/plugin-signups/compare/v1.1.1...v1.1.2) (2022-05-20)
12
-
13
- ### Bug Fixes
14
-
15
- - add prompt to examples ([dece28b](https://github.com/salesforcecli/plugin-signups/commit/dece28bd8db12ca48331df15b2b2b3e5e73905c3))
16
- - add prompt to examples ([475f621](https://github.com/salesforcecli/plugin-signups/commit/475f621f641e9947010ba1f9f355be4262f1e3fe))
17
- - add prompt to examples ([288e20a](https://github.com/salesforcecli/plugin-signups/commit/288e20a6247f1c1e6a0fd34e0b2ee2468c0198c9))
18
-
19
- ### [1.1.1](https://github.com/salesforcecli/plugin-signups/compare/v1.1.0...v1.1.1) (2022-05-17)
20
-
21
- ### Bug Fixes
22
-
23
- - remove "beta" state from Org Shape ([#35](https://github.com/salesforcecli/plugin-signups/issues/35)) ([ba96632](https://github.com/salesforcecli/plugin-signups/commit/ba966325e58d48aa3ccdfa9e2d3a7ead1a32e775))
24
-
25
- ## 1.1.0 (2022-05-11)
26
-
27
- ### Features
28
-
29
- - get and list ([5e53f0e](https://github.com/salesforcecli/plugin-signups/commit/5e53f0ec74060ceea0e98cbc4cf0b898c458b37c))
30
- - multiple aliases, omit property if none ([2fc3781](https://github.com/salesforcecli/plugin-signups/commit/2fc3781aedbd886e21ba1221c9e0d38a80e5c4c5))
31
- - snapshots with nuts ([316131c](https://github.com/salesforcecli/plugin-signups/commit/316131cf617c40e7ba0b5c83ec3d5ffc653b6795))
32
-
33
- ### Bug Fixes
34
-
35
- - aliases might not exist ([aa18406](https://github.com/salesforcecli/plugin-signups/commit/aa18406fac59d8b317b5ca74cac83873d0257219))
36
- - exit delete command when no shapes are found ([274fb80](https://github.com/salesforcecli/plugin-signups/commit/274fb80a8288196e93b4888b53746ea7864519b8))
37
- - forgot to import msg dir ([123ee51](https://github.com/salesforcecli/plugin-signups/commit/123ee517ddbaded43f1bb363cd2a8ad5b7ee7ee7))
38
- - lastclonedby might be null ([b0009e2](https://github.com/salesforcecli/plugin-signups/commit/b0009e25aab781d50f1ff7d71c121ad2e26ef991))
39
- - look in all non-scratch orgs for ShapeRep ([36c804d](https://github.com/salesforcecli/plugin-signups/commit/36c804db25c49cf6bcf01ee50af60b28389a35a4))
40
- - null handling ([b95ba88](https://github.com/salesforcecli/plugin-signups/commit/b95ba88876603b99c6741cfe51807653a065d491))