@simplysf/simply-flow 0.4.11 → 0.4.13

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 (2) hide show
  1. package/oclif.manifest.json +202 -0
  2. package/package.json +5 -3
@@ -0,0 +1,202 @@
1
+ {
2
+ "commands": {
3
+ "simply:flow:delete": {
4
+ "aliases": [],
5
+ "args": {},
6
+ "description": "Deactivates every active version of each named Flow (so it no longer counts as \"active\" against Salesforce's restriction on deleting a Flow that still has one), then hard-deletes every version of it via the Tooling API. This is the pre-step a destructive metadata deploy needs before it can remove a Flow.\n\nFlows can be named either via `--manifest`, pointing at a `destructiveChanges.xml`/`package.xml`-shaped file whose `Flow` type members are the flows to delete, or via one or more `--flow-name` flags for scripted or one-off use. Exactly one of the two must be given.\n\nA failure deactivating or deleting one flow doesn't stop the others from being attempted — every failure is collected and reported, and the command exits non-zero if any occurred.",
7
+ "examples": [
8
+ "<%= config.bin %> <%= command.id %> --manifest destructive/pre/destructiveChanges.xml --target-org myOrg",
9
+ "<%= config.bin %> <%= command.id %> --flow-name My_Flow --flow-name Another_Flow --target-org myOrg",
10
+ "<%= config.bin %> <%= command.id %> --manifest destructive/pre/destructiveChanges.xml --target-org myOrg --json"
11
+ ],
12
+ "flags": {
13
+ "json": {
14
+ "description": "Format output as json.",
15
+ "helpGroup": "GLOBAL",
16
+ "name": "json",
17
+ "allowNo": false,
18
+ "type": "boolean"
19
+ },
20
+ "flags-dir": {
21
+ "helpGroup": "GLOBAL",
22
+ "name": "flags-dir",
23
+ "summary": "Import flag values from a directory.",
24
+ "hasDynamicHelp": false,
25
+ "multiple": false,
26
+ "type": "option"
27
+ },
28
+ "api-version": {
29
+ "description": "Override the api version used for api requests made by this command",
30
+ "name": "api-version",
31
+ "hasDynamicHelp": false,
32
+ "multiple": false,
33
+ "type": "option"
34
+ },
35
+ "target-org": {
36
+ "char": "o",
37
+ "name": "target-org",
38
+ "noCacheDefault": true,
39
+ "required": true,
40
+ "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
41
+ "hasDynamicHelp": true,
42
+ "multiple": false,
43
+ "type": "option"
44
+ },
45
+ "manifest": {
46
+ "char": "x",
47
+ "name": "manifest",
48
+ "summary": "Path to a destructiveChanges.xml/package.xml-shaped file",
49
+ "hasDynamicHelp": false,
50
+ "multiple": false,
51
+ "type": "option"
52
+ },
53
+ "flow-name": {
54
+ "char": "n",
55
+ "name": "flow-name",
56
+ "summary": "Flow DeveloperName(s) to delete",
57
+ "hasDynamicHelp": false,
58
+ "multiple": true,
59
+ "type": "option"
60
+ }
61
+ },
62
+ "hasDynamicHelp": true,
63
+ "hiddenAliases": [],
64
+ "id": "simply:flow:delete",
65
+ "pluginAlias": "@simplysf/simply-flow",
66
+ "pluginName": "@simplysf/simply-flow",
67
+ "pluginType": "core",
68
+ "strict": true,
69
+ "summary": "Deactivate and delete every version of one or more Flows.",
70
+ "enableJsonFlag": true,
71
+ "isESM": true,
72
+ "relativePath": [
73
+ "lib",
74
+ "commands",
75
+ "simply",
76
+ "flow",
77
+ "delete.js"
78
+ ],
79
+ "aliasPermutations": [],
80
+ "permutations": [
81
+ "simply:flow:delete",
82
+ "flow:simply:delete",
83
+ "flow:delete:simply",
84
+ "simply:delete:flow",
85
+ "delete:simply:flow",
86
+ "delete:flow:simply"
87
+ ]
88
+ },
89
+ "simply:flow:version:prune": {
90
+ "aliases": [],
91
+ "args": {},
92
+ "description": "Flows can be named either via one or more `--source-dir` directories, scanned for `*.flow-meta.xml` files, or via one or more `--flow-name` flags for scripted or one-off use. Exactly one of the two must be given. The command then deletes any Tooling API Flow version already `Status = 'Obsolete'` for those flows — keeping an org's Flow version history from accumulating indefinitely. Unlike `simply flow delete`, this never touches an active Flow; it only removes versions the org itself already marked obsolete.\n\nUse `--dry-run` to see what would be deleted without deleting anything.",
93
+ "examples": [
94
+ "<%= config.bin %> <%= command.id %> --target-org myOrg --source-dir sfdx-source/core",
95
+ "<%= config.bin %> <%= command.id %> --target-org myOrg --source-dir sfdx-source/core --dry-run",
96
+ "<%= config.bin %> <%= command.id %> --target-org myOrg --flow-name My_Flow --flow-name Another_Flow"
97
+ ],
98
+ "flags": {
99
+ "json": {
100
+ "description": "Format output as json.",
101
+ "helpGroup": "GLOBAL",
102
+ "name": "json",
103
+ "allowNo": false,
104
+ "type": "boolean"
105
+ },
106
+ "flags-dir": {
107
+ "helpGroup": "GLOBAL",
108
+ "name": "flags-dir",
109
+ "summary": "Import flag values from a directory.",
110
+ "hasDynamicHelp": false,
111
+ "multiple": false,
112
+ "type": "option"
113
+ },
114
+ "api-version": {
115
+ "description": "Override the api version used for api requests made by this command",
116
+ "name": "api-version",
117
+ "hasDynamicHelp": false,
118
+ "multiple": false,
119
+ "type": "option"
120
+ },
121
+ "target-org": {
122
+ "char": "o",
123
+ "name": "target-org",
124
+ "noCacheDefault": true,
125
+ "required": true,
126
+ "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
127
+ "hasDynamicHelp": true,
128
+ "multiple": false,
129
+ "type": "option"
130
+ },
131
+ "source-dir": {
132
+ "char": "d",
133
+ "name": "source-dir",
134
+ "summary": "Directories to scan for *.flow-meta.xml files",
135
+ "hasDynamicHelp": false,
136
+ "multiple": true,
137
+ "type": "option"
138
+ },
139
+ "flow-name": {
140
+ "char": "n",
141
+ "name": "flow-name",
142
+ "summary": "Flow DeveloperName(s) to prune obsolete versions for",
143
+ "hasDynamicHelp": false,
144
+ "multiple": true,
145
+ "type": "option"
146
+ },
147
+ "dry-run": {
148
+ "name": "dry-run",
149
+ "summary": "List obsolete versions without deleting them",
150
+ "allowNo": false,
151
+ "type": "boolean"
152
+ }
153
+ },
154
+ "hasDynamicHelp": true,
155
+ "hiddenAliases": [],
156
+ "id": "simply:flow:version:prune",
157
+ "pluginAlias": "@simplysf/simply-flow",
158
+ "pluginName": "@simplysf/simply-flow",
159
+ "pluginType": "core",
160
+ "strict": true,
161
+ "summary": "Delete obsolete versions of Flows found in local source.",
162
+ "enableJsonFlag": true,
163
+ "isESM": true,
164
+ "relativePath": [
165
+ "lib",
166
+ "commands",
167
+ "simply",
168
+ "flow",
169
+ "version",
170
+ "prune.js"
171
+ ],
172
+ "aliasPermutations": [],
173
+ "permutations": [
174
+ "simply:flow:version:prune",
175
+ "flow:simply:version:prune",
176
+ "flow:version:simply:prune",
177
+ "flow:version:prune:simply",
178
+ "simply:version:flow:prune",
179
+ "version:simply:flow:prune",
180
+ "version:flow:simply:prune",
181
+ "version:flow:prune:simply",
182
+ "simply:version:prune:flow",
183
+ "version:simply:prune:flow",
184
+ "version:prune:simply:flow",
185
+ "version:prune:flow:simply",
186
+ "simply:flow:prune:version",
187
+ "flow:simply:prune:version",
188
+ "flow:prune:simply:version",
189
+ "flow:prune:version:simply",
190
+ "simply:prune:flow:version",
191
+ "prune:simply:flow:version",
192
+ "prune:flow:simply:version",
193
+ "prune:flow:version:simply",
194
+ "simply:prune:version:flow",
195
+ "prune:simply:version:flow",
196
+ "prune:version:simply:flow",
197
+ "prune:version:flow:simply"
198
+ ]
199
+ }
200
+ },
201
+ "version": "0.4.13"
202
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@simplysf/simply-flow",
3
3
  "description": "Utilities for working with Flows",
4
- "version": "0.4.11",
4
+ "version": "0.4.13",
5
5
  "author": "@ClayChipps",
6
6
  "homepage": "https://github.com/SimplySF/simply-plugins",
7
7
  "bugs": "https://github.com/SimplySF/simply-plugins/issues",
@@ -65,7 +65,7 @@
65
65
  },
66
66
  "devDependencies": {
67
67
  "@oclif/plugin-command-snapshot": "^5.4.0",
68
- "@salesforce/plugin-command-reference": "^3.1.133",
68
+ "@salesforce/plugin-command-reference": "^3.1.134",
69
69
  "@vitest/coverage-v8": "^4.1.10",
70
70
  "vitest": "^4.1.10"
71
71
  },
@@ -78,6 +78,8 @@
78
78
  "fix-license": "eslint src test --fix --rule \"header/header: [2]\"",
79
79
  "format": "wireit",
80
80
  "lint": "wireit",
81
+ "postpack": "node -e \"require('node:fs').rmSync('oclif.manifest.json', { force: true })\"",
82
+ "prepack": "oclif manifest .",
81
83
  "readme": "oclif readme --no-aliases",
82
84
  "test": "wireit",
83
85
  "test:coverage": "vitest run --coverage --project simply-flow",
@@ -186,5 +188,5 @@
186
188
  "output": []
187
189
  }
188
190
  },
189
- "gitHead": "117fedfbd99f9c2d4c9e59f547efe619321b983c"
191
+ "gitHead": "a5aac006f9776347e6d0f845d270660d2db81a28"
190
192
  }