@salesforce/plugin-bre-to-cml 1.3.13 → 1.3.15

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.
package/oclif.lock CHANGED
@@ -2901,10 +2901,10 @@ csv-parse@^5.5.2:
2901
2901
  resolved "https://registry.yarnpkg.com/csv-parse/-/csv-parse-5.6.0.tgz#219beace2a3e9f28929999d2aa417d3fb3071c7f"
2902
2902
  integrity sha512-l3nz3euub2QMg5ouu5U09Ew9Wf6/wQ8I++ch1loQ0ljmzhmfZYrH9fflS22i/PQEvsPvxCwxgz5q7UB8K1JO4Q==
2903
2903
 
2904
- csv-parse@^7.0.2:
2905
- version "7.0.2"
2906
- resolved "https://registry.yarnpkg.com/csv-parse/-/csv-parse-7.0.2.tgz#76ff913d5b07d56170e071ebc788f51a21e4b17f"
2907
- integrity sha512-uKZghv9UmPkMVLYy//KZ9HFAIJsl7wkhoEdIL0+rhuSY9pZQlhaeGEDPIe+/w7eh81MOql8Q/9+inAGWG6ZHYA==
2904
+ csv-parse@^7.0.2, csv-parse@^7.0.3:
2905
+ version "7.0.3"
2906
+ resolved "https://registry.yarnpkg.com/csv-parse/-/csv-parse-7.0.3.tgz#eece4221023f8f67029518af928a225a1ea3ccad"
2907
+ integrity sha512-YFd3QM/yo17vH91L1IOZuvl09zM0zEEtdfTcOCKWcMdM++MNaQSyp09slXyFCLaPXvHstQFx/xC8myiFHSMUvw==
2908
2908
 
2909
2909
  csv-stringify@^6.6.0:
2910
2910
  version "6.6.0"
@@ -6175,19 +6175,19 @@ picocolors@^1.0.0, picocolors@^1.1.1:
6175
6175
  integrity sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==
6176
6176
 
6177
6177
  picomatch@^2.0.4, picomatch@^2.2.1, picomatch@^2.3.1:
6178
- version "2.3.1"
6179
- resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42"
6180
- integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==
6178
+ version "2.3.2"
6179
+ resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.2.tgz#5a942915e26b372dc0f0e6753149a16e6b1c5601"
6180
+ integrity sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==
6181
6181
 
6182
6182
  picomatch@^3.0.1:
6183
- version "3.0.1"
6184
- resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-3.0.1.tgz#817033161def55ec9638567a2f3bbc876b3e7516"
6185
- integrity sha512-I3EurrIQMlRc9IaAZnqRR044Phh2DXY+55o7uJ0V+hYZAcQYSuFWsc9q5PvyDHUSCe1Qxn/iBz+78s86zWnGag==
6183
+ version "3.0.2"
6184
+ resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-3.0.2.tgz#8f543c114ddc037eab6b10fbd5a66cc8a51a02bc"
6185
+ integrity sha512-cfDHL6LStTEKlNilboNtobT/kEa30PtAf2Q1OgszfrG/rpVl1xaFWT9ktfkS306GmHgmnad1Sw4wabhlvFtsTw==
6186
6186
 
6187
6187
  picomatch@^4.0.4:
6188
- version "4.0.4"
6189
- resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-4.0.4.tgz#fd6f5e00a143086e074dffe4c924b8fb293b0589"
6190
- integrity sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==
6188
+ version "4.0.7"
6189
+ resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-4.0.7.tgz#6313360034ccb36b3dc61ecbdff78121f90fe21f"
6190
+ integrity sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==
6191
6191
 
6192
6192
  pino-abstract-transport@^1.2.0:
6193
6193
  version "1.2.0"
@@ -94,6 +94,98 @@
94
94
  "as-expression-set:import:cml"
95
95
  ]
96
96
  },
97
+ "insurance:import:record-updates": {
98
+ "aliases": [],
99
+ "args": {},
100
+ "description": "Reads a `<cmlApi>_SurchargeUpdate.json` or `<cmlApi>_UnderwritingUpdate.json` file — the reviewable record-update plan emitted by `sf cml convert surcharge-rules` / `sf cml convert underwriting-rules` — and applies its changes to the org. Convert is file-only and never writes to the org; this command is the apply step.\n\nThe file is treated as untrusted input: it is structurally validated, every record is re-read from the org before anything is written, and each record's Name (plus the rule apiName for underwriting rule updates) is cross-checked against the file so an edited id cannot retarget a different record. Records whose org values already match are skipped, which makes re-running the command safe and idempotent.\n\nBefore applying, the command prints every planned field-level change and asks for confirmation. Use --dry-run to review the plan without writing, and --no-prompt to apply without confirmation in automation. Changes are applied in order and are not rolled back, so a mid-apply failure can leave the org partially migrated; re-running is safe because already-applied records are skipped.\n\nImport the merged CML with `sf cml import as-expression-set` BEFORE applying a surcharge record-update file. The platform regenerates ProductSurcharge.RuleKey when RuleEngineType flips, and this command verifies that regenerated key against the key the CML rule was emitted under. That regeneration also requires the parent Surcharge.Code to be non-null — a surcharge whose parent Surcharge has a null Code cannot be flipped to ConstraintEngine and the org raises a save-hook error.",
101
+ "examples": [
102
+ "Review the planned changes without writing anything:\n<%= config.bin %> <%= command.id %> --file data/SURCHARGE_CML_SurchargeUpdate.json --target-org myOrg --dry-run",
103
+ "Apply the changes, confirming the preview interactively:\n<%= config.bin %> <%= command.id %> --file data/SURCHARGE_CML_SurchargeUpdate.json --target-org myOrg",
104
+ "Apply the changes without a confirmation prompt, for automation:\n<%= config.bin %> <%= command.id %> --file data/UW_CML_UnderwritingUpdate.json --target-org myOrg --no-prompt"
105
+ ],
106
+ "flags": {
107
+ "json": {
108
+ "description": "Format output as json.",
109
+ "helpGroup": "GLOBAL",
110
+ "name": "json",
111
+ "allowNo": false,
112
+ "type": "boolean"
113
+ },
114
+ "flags-dir": {
115
+ "helpGroup": "GLOBAL",
116
+ "name": "flags-dir",
117
+ "summary": "Import flag values from a directory.",
118
+ "hasDynamicHelp": false,
119
+ "multiple": false,
120
+ "type": "option"
121
+ },
122
+ "target-org": {
123
+ "char": "o",
124
+ "name": "target-org",
125
+ "noCacheDefault": true,
126
+ "required": true,
127
+ "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
128
+ "hasDynamicHelp": true,
129
+ "multiple": false,
130
+ "type": "option"
131
+ },
132
+ "api-version": {
133
+ "description": "Override the api version used for api requests made by this command",
134
+ "name": "api-version",
135
+ "hasDynamicHelp": false,
136
+ "multiple": false,
137
+ "type": "option"
138
+ },
139
+ "file": {
140
+ "char": "f",
141
+ "name": "file",
142
+ "required": true,
143
+ "summary": "Path to the record-update JSON file emitted by a cml convert command.",
144
+ "hasDynamicHelp": false,
145
+ "multiple": false,
146
+ "type": "option"
147
+ },
148
+ "no-prompt": {
149
+ "char": "p",
150
+ "name": "no-prompt",
151
+ "summary": "Don't prompt for confirmation before applying the changes.",
152
+ "allowNo": false,
153
+ "type": "boolean"
154
+ },
155
+ "dry-run": {
156
+ "name": "dry-run",
157
+ "summary": "Show the planned changes and exit without writing anything to the org.",
158
+ "allowNo": false,
159
+ "type": "boolean"
160
+ }
161
+ },
162
+ "hasDynamicHelp": true,
163
+ "hiddenAliases": [],
164
+ "id": "insurance:import:record-updates",
165
+ "pluginAlias": "@salesforce/plugin-bre-to-cml",
166
+ "pluginName": "@salesforce/plugin-bre-to-cml",
167
+ "pluginType": "core",
168
+ "strict": true,
169
+ "summary": "Applies a record-update file emitted by a cml convert command to the target org.",
170
+ "enableJsonFlag": true,
171
+ "isESM": true,
172
+ "relativePath": [
173
+ "lib",
174
+ "commands",
175
+ "insurance",
176
+ "import",
177
+ "record-updates.js"
178
+ ],
179
+ "aliasPermutations": [],
180
+ "permutations": [
181
+ "insurance:import:record-updates",
182
+ "import:insurance:record-updates",
183
+ "import:record-updates:insurance",
184
+ "insurance:record-updates:import",
185
+ "record-updates:insurance:import",
186
+ "record-updates:import:insurance"
187
+ ]
188
+ },
97
189
  "cml:convert:prod-cfg-rules": {
98
190
  "aliases": [],
99
191
  "args": {},
@@ -401,99 +493,7 @@
401
493
  "underwriting-rules:cml:convert",
402
494
  "underwriting-rules:convert:cml"
403
495
  ]
404
- },
405
- "insurance:import:record-updates": {
406
- "aliases": [],
407
- "args": {},
408
- "description": "Reads a `<cmlApi>_SurchargeUpdate.json` or `<cmlApi>_UnderwritingUpdate.json` file — the reviewable record-update plan emitted by `sf cml convert surcharge-rules` / `sf cml convert underwriting-rules` — and applies its changes to the org. Convert is file-only and never writes to the org; this command is the apply step.\n\nThe file is treated as untrusted input: it is structurally validated, every record is re-read from the org before anything is written, and each record's Name (plus the rule apiName for underwriting rule updates) is cross-checked against the file so an edited id cannot retarget a different record. Records whose org values already match are skipped, which makes re-running the command safe and idempotent.\n\nBefore applying, the command prints every planned field-level change and asks for confirmation. Use --dry-run to review the plan without writing, and --no-prompt to apply without confirmation in automation. Changes are applied in order and are not rolled back, so a mid-apply failure can leave the org partially migrated; re-running is safe because already-applied records are skipped.\n\nImport the merged CML with `sf cml import as-expression-set` BEFORE applying a surcharge record-update file. The platform regenerates ProductSurcharge.RuleKey when RuleEngineType flips, and this command verifies that regenerated key against the key the CML rule was emitted under. That regeneration also requires the parent Surcharge.Code to be non-null — a surcharge whose parent Surcharge has a null Code cannot be flipped to ConstraintEngine and the org raises a save-hook error.",
409
- "examples": [
410
- "Review the planned changes without writing anything:\n<%= config.bin %> <%= command.id %> --file data/SURCHARGE_CML_SurchargeUpdate.json --target-org myOrg --dry-run",
411
- "Apply the changes, confirming the preview interactively:\n<%= config.bin %> <%= command.id %> --file data/SURCHARGE_CML_SurchargeUpdate.json --target-org myOrg",
412
- "Apply the changes without a confirmation prompt, for automation:\n<%= config.bin %> <%= command.id %> --file data/UW_CML_UnderwritingUpdate.json --target-org myOrg --no-prompt"
413
- ],
414
- "flags": {
415
- "json": {
416
- "description": "Format output as json.",
417
- "helpGroup": "GLOBAL",
418
- "name": "json",
419
- "allowNo": false,
420
- "type": "boolean"
421
- },
422
- "flags-dir": {
423
- "helpGroup": "GLOBAL",
424
- "name": "flags-dir",
425
- "summary": "Import flag values from a directory.",
426
- "hasDynamicHelp": false,
427
- "multiple": false,
428
- "type": "option"
429
- },
430
- "target-org": {
431
- "char": "o",
432
- "name": "target-org",
433
- "noCacheDefault": true,
434
- "required": true,
435
- "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
436
- "hasDynamicHelp": true,
437
- "multiple": false,
438
- "type": "option"
439
- },
440
- "api-version": {
441
- "description": "Override the api version used for api requests made by this command",
442
- "name": "api-version",
443
- "hasDynamicHelp": false,
444
- "multiple": false,
445
- "type": "option"
446
- },
447
- "file": {
448
- "char": "f",
449
- "name": "file",
450
- "required": true,
451
- "summary": "Path to the record-update JSON file emitted by a cml convert command.",
452
- "hasDynamicHelp": false,
453
- "multiple": false,
454
- "type": "option"
455
- },
456
- "no-prompt": {
457
- "char": "p",
458
- "name": "no-prompt",
459
- "summary": "Don't prompt for confirmation before applying the changes.",
460
- "allowNo": false,
461
- "type": "boolean"
462
- },
463
- "dry-run": {
464
- "name": "dry-run",
465
- "summary": "Show the planned changes and exit without writing anything to the org.",
466
- "allowNo": false,
467
- "type": "boolean"
468
- }
469
- },
470
- "hasDynamicHelp": true,
471
- "hiddenAliases": [],
472
- "id": "insurance:import:record-updates",
473
- "pluginAlias": "@salesforce/plugin-bre-to-cml",
474
- "pluginName": "@salesforce/plugin-bre-to-cml",
475
- "pluginType": "core",
476
- "strict": true,
477
- "summary": "Applies a record-update file emitted by a cml convert command to the target org.",
478
- "enableJsonFlag": true,
479
- "isESM": true,
480
- "relativePath": [
481
- "lib",
482
- "commands",
483
- "insurance",
484
- "import",
485
- "record-updates.js"
486
- ],
487
- "aliasPermutations": [],
488
- "permutations": [
489
- "insurance:import:record-updates",
490
- "import:insurance:record-updates",
491
- "import:record-updates:insurance",
492
- "insurance:record-updates:import",
493
- "record-updates:insurance:import",
494
- "record-updates:import:insurance"
495
- ]
496
496
  }
497
497
  },
498
- "version": "1.3.13"
498
+ "version": "1.3.15"
499
499
  }
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@salesforce/plugin-bre-to-cml",
3
3
  "description": "Plugin for migrating BRE based configurator rules to CML.",
4
- "version": "1.3.13",
4
+ "version": "1.3.15",
5
5
  "salesforceRelease": "256.11",
6
6
  "dependencies": {
7
7
  "@oclif/core": "^4",
8
8
  "@salesforce/core": "^8.32.6",
9
9
  "@salesforce/sf-plugins-core": "^12",
10
- "csv-parse": "^7.0.2",
10
+ "csv-parse": "^7.0.3",
11
11
  "got": "12"
12
12
  },
13
13
  "devDependencies": {
@@ -229,7 +229,7 @@
229
229
  "type": "module",
230
230
  "author": "George Kibilov",
231
231
  "sfdx": {
232
- "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-bre-to-cml/1.3.13.crt",
233
- "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-bre-to-cml/1.3.13.sig"
232
+ "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-bre-to-cml/1.3.15.crt",
233
+ "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-bre-to-cml/1.3.15.sig"
234
234
  }
235
235
  }