sfdx-browserforce-plugin 2.6.2 → 2.8.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 (116) hide show
  1. package/lib/{browserforceCommand.d.ts → browserforce-command.d.ts} +4 -4
  2. package/lib/{browserforceCommand.js → browserforce-command.js} +15 -5
  3. package/lib/browserforce-command.js.map +1 -0
  4. package/lib/browserforce.d.ts +17 -9
  5. package/lib/browserforce.js +7 -4
  6. package/lib/browserforce.js.map +1 -1
  7. package/lib/commands/browserforce/apply.d.ts +2 -2
  8. package/lib/commands/browserforce/apply.js +3 -3
  9. package/lib/commands/browserforce/apply.js.map +1 -1
  10. package/lib/commands/browserforce/plan.d.ts +2 -2
  11. package/lib/commands/browserforce/plan.js +3 -3
  12. package/lib/commands/browserforce/plan.js.map +1 -1
  13. package/lib/config-parser.d.ts +15 -2
  14. package/lib/config-parser.js +2 -1
  15. package/lib/config-parser.js.map +1 -1
  16. package/lib/index.d.ts +1 -2
  17. package/lib/index.js +0 -1
  18. package/lib/index.js.map +1 -1
  19. package/lib/jsforce-utils.d.ts +1 -1
  20. package/lib/jsforce-utils.js.map +1 -1
  21. package/lib/plugin.d.ts +4 -4
  22. package/lib/plugin.js.map +1 -1
  23. package/lib/plugins/activity-settings/index.d.ts +7 -5
  24. package/lib/plugins/activity-settings/index.js +2 -1
  25. package/lib/plugins/activity-settings/index.js.map +1 -1
  26. package/lib/plugins/communities/index.d.ts +8 -3
  27. package/lib/plugins/communities/index.js +6 -7
  28. package/lib/plugins/communities/index.js.map +1 -1
  29. package/lib/plugins/customer-portal/available-custom-objects/index.d.ts +14 -0
  30. package/lib/plugins/customer-portal/{availableCustomObjects → available-custom-objects}/index.js +9 -8
  31. package/lib/plugins/customer-portal/available-custom-objects/index.js.map +1 -0
  32. package/lib/plugins/customer-portal/enabled/index.d.ts +5 -4
  33. package/lib/plugins/customer-portal/enabled/index.js +3 -1
  34. package/lib/plugins/customer-portal/enabled/index.js.map +1 -1
  35. package/lib/plugins/customer-portal/index.d.ts +13 -8
  36. package/lib/plugins/customer-portal/index.js +12 -11
  37. package/lib/plugins/customer-portal/index.js.map +1 -1
  38. package/lib/plugins/customer-portal/portals/index.d.ts +23 -4
  39. package/lib/plugins/customer-portal/portals/index.js +29 -27
  40. package/lib/plugins/customer-portal/portals/index.js.map +1 -1
  41. package/lib/plugins/defer-sharing-calculation/index.d.ts +7 -5
  42. package/lib/plugins/defer-sharing-calculation/index.js +3 -1
  43. package/lib/plugins/defer-sharing-calculation/index.js.map +1 -1
  44. package/lib/plugins/density-settings/index.d.ts +15 -7
  45. package/lib/plugins/density-settings/index.js +3 -2
  46. package/lib/plugins/density-settings/index.js.map +1 -1
  47. package/lib/plugins/high-velocity-sales-settings/index.d.ts +9 -6
  48. package/lib/plugins/high-velocity-sales-settings/index.js +3 -2
  49. package/lib/plugins/high-velocity-sales-settings/index.js.map +1 -1
  50. package/lib/plugins/high-velocity-sales-settings/page.d.ts +2 -1
  51. package/lib/plugins/high-velocity-sales-settings/page.js.map +1 -1
  52. package/lib/plugins/home-page-layouts/index.d.ts +12 -6
  53. package/lib/plugins/home-page-layouts/index.js +3 -1
  54. package/lib/plugins/home-page-layouts/index.js.map +1 -1
  55. package/lib/plugins/index.d.ts +15 -14
  56. package/lib/plugins/index.js +29 -27
  57. package/lib/plugins/index.js.map +1 -1
  58. package/lib/plugins/lightning-experience-settings/index.d.ts +15 -7
  59. package/lib/plugins/lightning-experience-settings/index.js +3 -2
  60. package/lib/plugins/lightning-experience-settings/index.js.map +1 -1
  61. package/lib/plugins/picklists/field-dependencies/index.d.ts +9 -3
  62. package/lib/plugins/picklists/field-dependencies/index.js +2 -1
  63. package/lib/plugins/picklists/field-dependencies/index.js.map +1 -1
  64. package/lib/plugins/picklists/field-dependencies/pages.d.ts +4 -3
  65. package/lib/plugins/picklists/field-dependencies/pages.js.map +1 -1
  66. package/lib/plugins/picklists/index.d.ts +21 -7
  67. package/lib/plugins/picklists/index.js +11 -9
  68. package/lib/plugins/picklists/index.js.map +1 -1
  69. package/lib/plugins/picklists/pages.d.ts +13 -12
  70. package/lib/plugins/picklists/pages.js +4 -4
  71. package/lib/plugins/picklists/pages.js.map +1 -1
  72. package/lib/plugins/picklists/standard-value-set.js +1 -0
  73. package/lib/plugins/picklists/standard-value-set.js.map +1 -1
  74. package/lib/plugins/record-types/index.d.ts +11 -5
  75. package/lib/plugins/record-types/index.js +2 -1
  76. package/lib/plugins/record-types/index.js.map +1 -1
  77. package/lib/plugins/record-types/pages.d.ts +4 -3
  78. package/lib/plugins/record-types/pages.js.map +1 -1
  79. package/lib/plugins/relate-contact-to-multiple-accounts/index.d.ts +9 -0
  80. package/lib/plugins/relate-contact-to-multiple-accounts/index.js +40 -0
  81. package/lib/plugins/relate-contact-to-multiple-accounts/index.js.map +1 -0
  82. package/lib/plugins/reports-and-dashboards/folder-sharing/index.d.ts +8 -0
  83. package/lib/plugins/reports-and-dashboards/{folderSharing → folder-sharing}/index.js +3 -1
  84. package/lib/plugins/reports-and-dashboards/folder-sharing/index.js.map +1 -0
  85. package/lib/plugins/reports-and-dashboards/index.d.ts +9 -6
  86. package/lib/plugins/reports-and-dashboards/index.js +7 -8
  87. package/lib/plugins/reports-and-dashboards/index.js.map +1 -1
  88. package/lib/plugins/salesforce-to-salesforce/index.d.ts +7 -3
  89. package/lib/plugins/salesforce-to-salesforce/index.js +7 -8
  90. package/lib/plugins/salesforce-to-salesforce/index.js.map +1 -1
  91. package/lib/plugins/security/certificate-and-key-management/index.d.ts +21 -7
  92. package/lib/plugins/security/certificate-and-key-management/index.js +40 -19
  93. package/lib/plugins/security/certificate-and-key-management/index.js.map +1 -1
  94. package/lib/plugins/security/identity-provider/index.d.ts +8 -6
  95. package/lib/plugins/security/identity-provider/index.js +5 -3
  96. package/lib/plugins/security/identity-provider/index.js.map +1 -1
  97. package/lib/plugins/security/index.d.ts +15 -9
  98. package/lib/plugins/security/index.js +15 -19
  99. package/lib/plugins/security/index.js.map +1 -1
  100. package/lib/plugins/security/login-access-policies/index.d.ts +6 -5
  101. package/lib/plugins/security/login-access-policies/index.js +3 -1
  102. package/lib/plugins/security/login-access-policies/index.js.map +1 -1
  103. package/lib/plugins/security/sharing/index.d.ts +6 -5
  104. package/lib/plugins/security/sharing/index.js +3 -1
  105. package/lib/plugins/security/sharing/index.js.map +1 -1
  106. package/lib/plugins/utils.d.ts +1 -1
  107. package/lib/plugins/utils.js +2 -0
  108. package/lib/plugins/utils.js.map +1 -1
  109. package/oclif.manifest.json +1 -1
  110. package/package.json +8 -8
  111. package/yarn.lock +291 -210
  112. package/lib/browserforceCommand.js.map +0 -1
  113. package/lib/plugins/customer-portal/availableCustomObjects/index.d.ts +0 -6
  114. package/lib/plugins/customer-portal/availableCustomObjects/index.js.map +0 -1
  115. package/lib/plugins/reports-and-dashboards/folderSharing/index.d.ts +0 -7
  116. package/lib/plugins/reports-and-dashboards/folderSharing/index.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/plugins/security/login-access-policies/index.ts"],"names":[],"mappings":";;AAAA,4CAAqD;AAErD,MAAM,KAAK,GAAG;IACZ,IAAI,EAAE,qCAAqC;CAC5C,CAAC;AACF,MAAM,SAAS,GAAG;IAChB,OAAO,EAAE,kCAAkC;IAC3C,eAAe,EAAE,oBAAoB;IACrC,WAAW,EAAE,oBAAoB;CAClC,CAAC;AAEF,MAAqB,mBAAoB,SAAQ,2BAAkB;IAC1D,KAAK,CAAC,QAAQ,CAAC,UAAW;QAC/B,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAC1D,MAAM,IAAI,CAAC,eAAe,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;QAC9C,MAAM,QAAQ,GAAG;YACf,+BAA+B,EAAE,MAAM,IAAI,CAAC,KAAK,CAC/C,SAAS,CAAC,OAAO,EACjB,CAAC,EAAoB,EAAE,EAAE,CAAC,EAAE,CAAC,OAAO,CACrC;SACF,CAAC;QACF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAEM,KAAK,CAAC,KAAK,CAAC,MAAM;QACvB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAC1D,MAAM,IAAI,CAAC,eAAe,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;QAC9C,MAAM,IAAI,CAAC,KAAK,CACd,SAAS,CAAC,OAAO,EACjB,CAAC,CAAmB,EAAE,CAAC,EAAE,EAAE;YACzB,CAAC,CAAC,OAAO,GAAG,CAAC,CAAC;QAChB,CAAC,EACD,MAAM,CAAC,+BAA+B,CACvC,CAAC;QACF,MAAM,OAAO,CAAC,GAAG,CAAC;YAChB,IAAI,CAAC,eAAe,CAAC,SAAS,CAAC,eAAe,CAAC;YAC/C,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC;SAClC,CAAC,CAAC;IACL,CAAC;CACF;AA5BD,sCA4BC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/plugins/security/login-access-policies/index.ts"],"names":[],"mappings":";;;AAAA,4CAAqD;AAErD,MAAM,KAAK,GAAG;IACZ,IAAI,EAAE,qCAAqC;CAC5C,CAAC;AACF,MAAM,SAAS,GAAG;IAChB,OAAO,EAAE,kCAAkC;IAC3C,eAAe,EAAE,oBAAoB;IACrC,WAAW,EAAE,oBAAoB;CAClC,CAAC;AAMF,MAAa,mBAAoB,SAAQ,2BAAkB;IACzD,6DAA6D;IACtD,KAAK,CAAC,QAAQ,CAAC,UAAmB;QACvC,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAC1D,MAAM,IAAI,CAAC,eAAe,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;QAC9C,MAAM,QAAQ,GAAG;YACf,+BAA+B,EAAE,MAAM,IAAI,CAAC,KAAK,CAC/C,SAAS,CAAC,OAAO,EACjB,CAAC,EAAoB,EAAE,EAAE,CAAC,EAAE,CAAC,OAAO,CACrC;SACF,CAAC;QACF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAEM,KAAK,CAAC,KAAK,CAAC,MAAc;QAC/B,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAC1D,MAAM,IAAI,CAAC,eAAe,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;QAC9C,MAAM,IAAI,CAAC,KAAK,CACd,SAAS,CAAC,OAAO,EACjB,CAAC,CAAmB,EAAE,CAAU,EAAE,EAAE;YAClC,CAAC,CAAC,OAAO,GAAG,CAAC,CAAC;QAChB,CAAC,EACD,MAAM,CAAC,+BAA+B,CACvC,CAAC;QACF,MAAM,OAAO,CAAC,GAAG,CAAC;YAChB,IAAI,CAAC,eAAe,CAAC,SAAS,CAAC,eAAe,CAAC;YAC/C,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC;SAClC,CAAC,CAAC;IACL,CAAC;CACF;AA7BD,kDA6BC"}
@@ -1,7 +1,8 @@
1
1
  import { BrowserforcePlugin } from '../../../plugin';
2
- export default class Sharing extends BrowserforcePlugin {
3
- retrieve(definition?: any): Promise<{
4
- enableExternalSharingModel: boolean;
5
- }>;
6
- apply(config: any): Promise<void>;
2
+ export declare type Config = {
3
+ enableExternalSharingModel: boolean;
4
+ };
5
+ export declare class Sharing extends BrowserforcePlugin {
6
+ retrieve(definition?: Config): Promise<Config>;
7
+ apply(config: Config): Promise<void>;
7
8
  }
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Sharing = void 0;
3
4
  const plugin_1 = require("../../../plugin");
4
5
  const PATHS = {
5
6
  BASE: 'p/own/OrgSharingDetail'
@@ -11,6 +12,7 @@ const SELECTORS = {
11
12
  MODAL_DIALOG: 'Modal.confirm'
12
13
  };
13
14
  class Sharing extends plugin_1.BrowserforcePlugin {
15
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
14
16
  async retrieve(definition) {
15
17
  const page = await this.browserforce.openPage(PATHS.BASE);
16
18
  await page.waitForSelector(SELECTORS.EXTERNAL_SHARING_MODEL_BUTTON);
@@ -39,5 +41,5 @@ class Sharing extends plugin_1.BrowserforcePlugin {
39
41
  }
40
42
  }
41
43
  }
42
- exports.default = Sharing;
44
+ exports.Sharing = Sharing;
43
45
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/plugins/security/sharing/index.ts"],"names":[],"mappings":";;AAAA,4CAAqD;AAErD,MAAM,KAAK,GAAG;IACZ,IAAI,EAAE,wBAAwB;CAC/B,CAAC;AACF,MAAM,SAAS,GAAG;IAChB,6BAA6B,EAAE,6BAA6B;IAC5D,aAAa,EACX,kEAAkE;IACpE,cAAc,EAAE,4DAA4D;IAC5E,YAAY,EAAE,eAAe;CAC9B,CAAC;AAEF,MAAqB,OAAQ,SAAQ,2BAAkB;IAC9C,KAAK,CAAC,QAAQ,CAAC,UAAW;QAC/B,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAC1D,MAAM,IAAI,CAAC,eAAe,CAAC,SAAS,CAAC,6BAA6B,CAAC,CAAC;QACpE,MAAM,aAAa,GAAG,MAAM,IAAI,CAAC,KAAK,CACpC,SAAS,CAAC,6BAA6B,EACvC,CAAC,EAAoB,EAAE,EAAE,CAAC,EAAE,CAAC,OAAO,CAAC,QAAQ,EAAE,CAChD,CAAC;QACF,OAAO;YACL,0BAA0B,EACxB,aAAa,CAAC,OAAO,CAAC,SAAS,CAAC,YAAY,CAAC,IAAI,CAAC;SACrD,CAAC;IACJ,CAAC;IA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AAI,CAAC,CAAC;QAC1D,MAAM,IAAI,CAAC,eAAe,CAAC,SAAS,CAAC,6BAA6B,CAAC,CAAC;QACpE,MAAM,aAAa,GAAG,MAAM,IAAI,CAAC,KAAK,CACpC,SAAS,CAAC,6BAA6B,EACvC,CAAC,EAAoB,EAAE,EAAE,CAAC,EAAE,CAAC,OAAO,CAAC,QAAQ,EAAE,CAChD,CAAC;QACF,OAAO;YACL,0BAA0B,EACxB,aAAa,CAAC,OAAO,CAAC,SAAS,CAAC,YAAY,CAAC,IAAI,CAAC;SACrD,CAAC;IACJ,CAAC;IAEM,KAAK,CAAC,KAAK,CAAC,MAAc;QAC/B,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAC1D,MAAM,IAAI,CAAC,eAAe,CAAC,SAAS,CAAC,6BAA6B,CAAC,CAAC;QACpE,IAAI,CAAC,EAAE,CAAC,QAAQ,EAAE,KAAK,EAAC,MAAM,EAAC,EAAE;YAC/B,MAAM,MAAM,CAAC,MAAM,EAAE,CAAC;QACxB,CAAC,CAAC,CAAC;QACH,IAAI,MAAM,CAAC,0BAA0B,EAAE;YACrC,MAAM,OAAO,CAAC,GAAG,CAAC;gBAChB,IAAI,CAAC,eAAe,CAAC,SAAS,CAAC,cAAc,CAAC;gBAC9C,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,aAAa,CAAC;aACpC,CAAC,CAAC;SACJ;aAAM;YACL,MAAM,OAAO,CAAC,GAAG,CAAC;gBAChB,IAAI,CAAC,eAAe,CAAC,SAAS,CAAC,aAAa,CAAC;gBAC7C,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC;aACrC,CAAC,CAAC;SACJ;IACH,CAAC;CACF;AAjCD,0BAiCC"}
@@ -1,3 +1,3 @@
1
- export declare function removeEmptyValues(obj: any): {};
1
+ export declare function removeEmptyValues(obj: any): any;
2
2
  export declare function removeNullValues(obj: any): any;
3
3
  export declare function semanticallyCleanObject(obj: any, id?: string): any;
@@ -1,4 +1,6 @@
1
1
  "use strict";
2
+ /* eslint-disable @typescript-eslint/explicit-module-boundary-types */
3
+ /* eslint-disable @typescript-eslint/no-explicit-any */
2
4
  Object.defineProperty(exports, "__esModule", { value: true });
3
5
  exports.semanticallyCleanObject = exports.removeNullValues = exports.removeEmptyValues = void 0;
4
6
  function removeEmptyValues(obj) {
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/plugins/utils.ts"],"names":[],"mappings":";;;AAAA,SAAgB,iBAAiB,CAAC,GAAG;IACnC,IAAI,CAAC,GAAG,EAAE;QACR,GAAG,GAAG,EAAE,CAAC;KACV;IACD,OAAO,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE;QACtD,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;YACxB,IAAI,KAAK,CAAC,MAAM,EAAE;gBAChB,GAAG,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;aAClB;SACF;aAAM,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;YACpC,IAAI,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,EAAE;gBAC7B,GAAG,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;aAClB;SACF;aAAM,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI,EAAE;YAChD,GAAG,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;SAClB;QACD,OAAO,GAAG,CAAC;IACb,CAAC,EAAE,EAAE,CAAC,CAAC;AACT,CAAC;AAlBD,8CAkBC;AAED,SAAgB,gBAAgB,CAAC,GAAG;IAClC,IAAI,CAAC,GAAG,EAAE;QACR,GAAG,GAAG,EAAE,CAAC;KACV;IACD,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,C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CAAC,KAAK,CAAC,CAAC,MAAM,EAAE;gBAC7B,GAAG,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;aAClB;SACF;aAAM,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI,EAAE;YAChD,GAAG,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;SAClB;QACD,OAAO,GAAG,CAAC;IACb,CAAC,EAAE,EAAE,CAAC,CAAC;AACT,CAAC;AAlBD,8CAkBC;AAED,SAAgB,gBAAgB,CAAC,GAAQ;IACvC,IAAI,CAAC,GAAG,EAAE;QACR,GAAG,GAAG,EAAE,CAAC;KACV;IACD,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,OAAO,CACzB,CAAC,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,EAAE,CACb,CAAC,GAAG,IAAI,OAAO,GAAG,KAAK,QAAQ,IAAI,gBAAgB,CAAC,GAAG,CAAC,CAAC;QACzD,CAAC,CAAC,GAAG,KAAK,IAAI,IAAI,GAAG,KAAK,SAAS,CAAC,IAAI,OAAO,GAAG,CAAC,GAAG,CAAC,CAAC,CAC3D,CAAC;IACF,OAAO,GAAG,CAAC;AACb,CAAC;AAVD,4CAUC;AAED,wDAAwD;AACxD,SAAgB,uBAAuB,CAAC,GAAQ,EAAE,EAAE,GAAG,IAAI;IACzD,IAAI,CAAC,GAAG,EAAE;QACR,GAAG,GAAG,EAAE,CAAC;KACV;IACD,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,MAAM,KAAK,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,EAAE,EAAE;QAC/D,OAAO,IAAI,CAAC;KACb;IACD,OAAO,GAAG,CAAC;AACb,CAAC;AARD,0DAQC"}
@@ -1 +1 @@
1
- {"version":"2.6.2","commands":{"browserforce:apply":{"id":"browserforce:apply","description":"apply a plan from a definition file","usage":"<%= command.id %> [-f <string>] [-p <string>] [-s <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"sfdx-browserforce-plugin","pluginType":"core","aliases":[],"examples":["$ sfdx browserforce:apply -f ./config/setup-admin-login-as-any.json --targetusername myOrg@example.com\n logging in... done\n Applying definition file ./config/setup-admin-login-as-any.json to org myOrg@example.com\n [Security] retrieving state... done\n [Security] changing 'loginAccessPolicies' to '{\"administratorsCanLogInAsAnyUser\":true}'... done\n logging out... done\n "],"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)","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"},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"definitionfile":{"name":"definitionfile","type":"option","char":"f","description":"path to a browserforce definition file\nThe schema is similar to the scratch org definition file.\nSee https://github.com/amtrack/sfdx-browserforce-plugin#supported-org-preferences for supported values."},"planfile":{"name":"planfile","type":"option","char":"p","description":"path to a browserforce plan file"},"statefile":{"name":"statefile","type":"option","char":"s","description":"path to a browserforce state file"}},"args":[]},"browserforce:plan":{"id":"browserforce:plan","description":"retrieve state and generate plan file","usage":"<%= command.id %> [-f <string>] [-p <string>] [-s <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"sfdx-browserforce-plugin","pluginType":"core","aliases":[],"examples":["$ sfdx browserforce:plan -f ./config/setup-admin-login-as-any.json --targetusername myOrg@example.com\n logging in... done\n Generating plan with definition file ./config/setup-admin-login-as-any.json from org myOrg@example.com\n [Security] retrieving state... done\n [Security] generating plan... done\n logging out... done\n "],"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)","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"},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"definitionfile":{"name":"definitionfile","type":"option","char":"f","description":"path to a browserforce definition file\nThe schema is similar to the scratch org definition file.\nSee https://github.com/amtrack/sfdx-browserforce-plugin#supported-org-preferences for supported values."},"planfile":{"name":"planfile","type":"option","char":"p","description":"path to a browserforce plan file"},"statefile":{"name":"statefile","type":"option","char":"s","description":"path to a browserforce state file"}},"args":[]}}}
1
+ {"version":"2.8.0","commands":{"browserforce:apply":{"id":"browserforce:apply","description":"apply a plan from a definition file","usage":"<%= command.id %> [-f <string>] [-p <string>] [-s <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"sfdx-browserforce-plugin","pluginType":"core","aliases":[],"examples":["$ sfdx browserforce:apply -f ./config/setup-admin-login-as-any.json --targetusername myOrg@example.com\n logging in... done\n Applying definition file ./config/setup-admin-login-as-any.json to org myOrg@example.com\n [Security] retrieving state... done\n [Security] changing 'loginAccessPolicies' to '{\"administratorsCanLogInAsAnyUser\":true}'... done\n logging out... done\n "],"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)","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"},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"definitionfile":{"name":"definitionfile","type":"option","char":"f","description":"path to a browserforce definition file\nThe schema is similar to the scratch org definition file.\nSee https://github.com/amtrack/sfdx-browserforce-plugin#supported-org-preferences for supported values."},"planfile":{"name":"planfile","type":"option","char":"p","description":"path to a browserforce plan file"},"statefile":{"name":"statefile","type":"option","char":"s","description":"path to a browserforce state file"}},"args":[]},"browserforce:plan":{"id":"browserforce:plan","description":"retrieve state and generate plan file","usage":"<%= command.id %> [-f <string>] [-p <string>] [-s <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"sfdx-browserforce-plugin","pluginType":"core","aliases":[],"examples":["$ sfdx browserforce:plan -f ./config/setup-admin-login-as-any.json --targetusername myOrg@example.com\n logging in... done\n Generating plan with definition file ./config/setup-admin-login-as-any.json from org myOrg@example.com\n [Security] retrieving state... done\n [Security] generating plan... done\n logging out... done\n "],"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)","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"},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"definitionfile":{"name":"definitionfile","type":"option","char":"f","description":"path to a browserforce definition file\nThe schema is similar to the scratch org definition file.\nSee https://github.com/amtrack/sfdx-browserforce-plugin#supported-org-preferences for supported values."},"planfile":{"name":"planfile","type":"option","char":"p","description":"path to a browserforce plan file"},"statefile":{"name":"statefile","type":"option","char":"s","description":"path to a browserforce state file"}},"args":[]}}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sfdx-browserforce-plugin",
3
- "version": "2.6.2",
3
+ "version": "2.8.0",
4
4
  "description": "sfdx plugin for browser automation",
5
5
  "author": "Matthias Rolke <mr.amtrack@gmail.com>",
6
6
  "bin": {
@@ -14,20 +14,20 @@
14
14
  "@salesforce/command": "3.1.0",
15
15
  "json-merge-patch": "1.0.1",
16
16
  "p-retry": "4.5.0",
17
- "puppeteer": "9.0.0",
17
+ "puppeteer": "10.4.0",
18
18
  "tslib": "2.2.0"
19
19
  },
20
20
  "devDependencies": {
21
21
  "@oclif/dev-cli": "1.26.0",
22
22
  "@oclif/plugin-help": "3.2.2",
23
23
  "@salesforce/dev-config": "2.1.0",
24
- "@types/mocha": "8.2.2",
24
+ "@types/mocha": "9.0.0",
25
25
  "@types/node": "10.17.60",
26
- "@typescript-eslint/eslint-plugin": "4.22.0",
27
- "@typescript-eslint/parser": "4.22.0",
28
- "eslint": "7.26.0",
29
- "eslint-config-prettier": "8.2.0",
30
- "mocha": "8.3.2",
26
+ "@typescript-eslint/eslint-plugin": "4.26.1",
27
+ "@typescript-eslint/parser": "4.26.1",
28
+ "eslint": "7.28.0",
29
+ "eslint-config-prettier": "8.3.0",
30
+ "mocha": "9.1.3",
31
31
  "nyc": "15.1.0",
32
32
  "sfdx-cli": "7.105.0",
33
33
  "tmp": "0.2.1",