@memberjunction/metadata-sync 2.54.0 → 2.56.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 (64) hide show
  1. package/README.md +92 -51
  2. package/dist/index.d.ts +21 -1
  3. package/dist/index.js +41 -3
  4. package/dist/index.js.map +1 -1
  5. package/dist/lib/file-backup-manager.js +2 -2
  6. package/dist/lib/file-backup-manager.js.map +1 -1
  7. package/dist/lib/sql-logger.d.ts +44 -0
  8. package/dist/lib/sql-logger.js +140 -0
  9. package/dist/lib/sql-logger.js.map +1 -0
  10. package/dist/lib/sync-engine.js +2 -2
  11. package/dist/lib/sync-engine.js.map +1 -1
  12. package/dist/lib/transaction-manager.d.ts +36 -0
  13. package/dist/lib/transaction-manager.js +117 -0
  14. package/dist/lib/transaction-manager.js.map +1 -0
  15. package/dist/services/FileResetService.d.ts +30 -0
  16. package/dist/services/FileResetService.js +182 -0
  17. package/dist/services/FileResetService.js.map +1 -0
  18. package/dist/services/InitService.d.ts +17 -0
  19. package/dist/services/InitService.js +118 -0
  20. package/dist/services/InitService.js.map +1 -0
  21. package/dist/services/PullService.d.ts +45 -0
  22. package/dist/services/PullService.js +564 -0
  23. package/dist/services/PullService.js.map +1 -0
  24. package/dist/services/PushService.d.ts +45 -0
  25. package/dist/services/PushService.js +394 -0
  26. package/dist/services/PushService.js.map +1 -0
  27. package/dist/services/StatusService.d.ts +32 -0
  28. package/dist/services/StatusService.js +138 -0
  29. package/dist/services/StatusService.js.map +1 -0
  30. package/dist/services/WatchService.d.ts +32 -0
  31. package/dist/services/WatchService.js +242 -0
  32. package/dist/services/WatchService.js.map +1 -0
  33. package/dist/services/index.d.ts +16 -0
  34. package/dist/services/index.js +28 -0
  35. package/dist/services/index.js.map +1 -0
  36. package/package.json +14 -45
  37. package/bin/debug.js +0 -7
  38. package/bin/run +0 -17
  39. package/bin/run.js +0 -6
  40. package/dist/commands/file-reset/index.d.ts +0 -15
  41. package/dist/commands/file-reset/index.js +0 -221
  42. package/dist/commands/file-reset/index.js.map +0 -1
  43. package/dist/commands/init/index.d.ts +0 -7
  44. package/dist/commands/init/index.js +0 -155
  45. package/dist/commands/init/index.js.map +0 -1
  46. package/dist/commands/pull/index.d.ts +0 -246
  47. package/dist/commands/pull/index.js +0 -1448
  48. package/dist/commands/pull/index.js.map +0 -1
  49. package/dist/commands/push/index.d.ts +0 -41
  50. package/dist/commands/push/index.js +0 -1131
  51. package/dist/commands/push/index.js.map +0 -1
  52. package/dist/commands/status/index.d.ts +0 -10
  53. package/dist/commands/status/index.js +0 -199
  54. package/dist/commands/status/index.js.map +0 -1
  55. package/dist/commands/validate/index.d.ts +0 -15
  56. package/dist/commands/validate/index.js +0 -149
  57. package/dist/commands/validate/index.js.map +0 -1
  58. package/dist/commands/watch/index.d.ts +0 -15
  59. package/dist/commands/watch/index.js +0 -300
  60. package/dist/commands/watch/index.js.map +0 -1
  61. package/dist/hooks/init.d.ts +0 -3
  62. package/dist/hooks/init.js +0 -59
  63. package/dist/hooks/init.js.map +0 -1
  64. package/oclif.manifest.json +0 -376
@@ -1,376 +0,0 @@
1
- {
2
- "commands": {
3
- "file-reset": {
4
- "aliases": [],
5
- "args": {},
6
- "description": "Remove primaryKey and sync sections from metadata JSON files",
7
- "examples": [
8
- "<%= config.bin %> <%= command.id %>",
9
- "<%= config.bin %> <%= command.id %> --sections=primaryKey",
10
- "<%= config.bin %> <%= command.id %> --sections=sync",
11
- "<%= config.bin %> <%= command.id %> --dry-run",
12
- "<%= config.bin %> <%= command.id %> --no-backup",
13
- "<%= config.bin %> <%= command.id %> --yes"
14
- ],
15
- "flags": {
16
- "sections": {
17
- "description": "Which sections to remove",
18
- "name": "sections",
19
- "default": "both",
20
- "hasDynamicHelp": false,
21
- "multiple": false,
22
- "options": [
23
- "both",
24
- "primaryKey",
25
- "sync"
26
- ],
27
- "type": "option"
28
- },
29
- "dry-run": {
30
- "description": "Show what would be removed without actually removing",
31
- "name": "dry-run",
32
- "allowNo": false,
33
- "type": "boolean"
34
- },
35
- "no-backup": {
36
- "description": "Skip creating backup files",
37
- "name": "no-backup",
38
- "allowNo": false,
39
- "type": "boolean"
40
- },
41
- "yes": {
42
- "char": "y",
43
- "description": "Skip confirmation prompt",
44
- "name": "yes",
45
- "allowNo": false,
46
- "type": "boolean"
47
- },
48
- "verbose": {
49
- "char": "v",
50
- "description": "Show detailed output",
51
- "name": "verbose",
52
- "allowNo": false,
53
- "type": "boolean"
54
- }
55
- },
56
- "hasDynamicHelp": false,
57
- "hiddenAliases": [],
58
- "id": "file-reset",
59
- "pluginAlias": "@memberjunction/metadata-sync",
60
- "pluginName": "@memberjunction/metadata-sync",
61
- "pluginType": "core",
62
- "strict": true,
63
- "enableJsonFlag": false,
64
- "isESM": false,
65
- "relativePath": [
66
- "dist",
67
- "commands",
68
- "file-reset",
69
- "index.js"
70
- ]
71
- },
72
- "init": {
73
- "aliases": [],
74
- "args": {},
75
- "description": "Initialize a directory for metadata synchronization",
76
- "examples": [
77
- "<%= config.bin %> <%= command.id %>"
78
- ],
79
- "flags": {},
80
- "hasDynamicHelp": false,
81
- "hiddenAliases": [],
82
- "id": "init",
83
- "pluginAlias": "@memberjunction/metadata-sync",
84
- "pluginName": "@memberjunction/metadata-sync",
85
- "pluginType": "core",
86
- "strict": true,
87
- "enableJsonFlag": false,
88
- "isESM": false,
89
- "relativePath": [
90
- "dist",
91
- "commands",
92
- "init",
93
- "index.js"
94
- ]
95
- },
96
- "pull": {
97
- "aliases": [],
98
- "args": {},
99
- "description": "Pull metadata from database to local files",
100
- "examples": [
101
- "<%= config.bin %> <%= command.id %> --entity=\"AI Prompts\"",
102
- "<%= config.bin %> <%= command.id %> --entity=\"AI Prompts\" --filter=\"CategoryID='customer-service-id'\""
103
- ],
104
- "flags": {
105
- "entity": {
106
- "description": "Entity name to pull",
107
- "name": "entity",
108
- "required": true,
109
- "hasDynamicHelp": false,
110
- "multiple": false,
111
- "type": "option"
112
- },
113
- "filter": {
114
- "description": "Additional filter for pulling specific records",
115
- "name": "filter",
116
- "hasDynamicHelp": false,
117
- "multiple": false,
118
- "type": "option"
119
- },
120
- "dry-run": {
121
- "description": "Show what would be pulled without actually pulling",
122
- "name": "dry-run",
123
- "allowNo": false,
124
- "type": "boolean"
125
- },
126
- "multi-file": {
127
- "description": "Create a single file with multiple records (provide filename)",
128
- "name": "multi-file",
129
- "hasDynamicHelp": false,
130
- "multiple": false,
131
- "type": "option"
132
- },
133
- "verbose": {
134
- "char": "v",
135
- "description": "Show detailed output",
136
- "name": "verbose",
137
- "allowNo": false,
138
- "type": "boolean"
139
- },
140
- "no-validate": {
141
- "description": "Skip validation before pull",
142
- "name": "no-validate",
143
- "allowNo": false,
144
- "type": "boolean"
145
- }
146
- },
147
- "hasDynamicHelp": false,
148
- "hiddenAliases": [],
149
- "id": "pull",
150
- "pluginAlias": "@memberjunction/metadata-sync",
151
- "pluginName": "@memberjunction/metadata-sync",
152
- "pluginType": "core",
153
- "strict": true,
154
- "enableJsonFlag": false,
155
- "isESM": false,
156
- "relativePath": [
157
- "dist",
158
- "commands",
159
- "pull",
160
- "index.js"
161
- ]
162
- },
163
- "push": {
164
- "aliases": [],
165
- "args": {},
166
- "description": "Push local file changes to the database",
167
- "examples": [
168
- "<%= config.bin %> <%= command.id %>",
169
- "<%= config.bin %> <%= command.id %> --dry-run",
170
- "<%= config.bin %> <%= command.id %> --dir=\"ai-prompts\"",
171
- "<%= config.bin %> <%= command.id %> --ci"
172
- ],
173
- "flags": {
174
- "dir": {
175
- "description": "Specific entity directory to push",
176
- "name": "dir",
177
- "hasDynamicHelp": false,
178
- "multiple": false,
179
- "type": "option"
180
- },
181
- "dry-run": {
182
- "description": "Show what would be pushed without actually pushing",
183
- "name": "dry-run",
184
- "allowNo": false,
185
- "type": "boolean"
186
- },
187
- "ci": {
188
- "description": "CI mode - no prompts, fail on issues",
189
- "name": "ci",
190
- "allowNo": false,
191
- "type": "boolean"
192
- },
193
- "verbose": {
194
- "char": "v",
195
- "description": "Show detailed field-level output",
196
- "name": "verbose",
197
- "allowNo": false,
198
- "type": "boolean"
199
- },
200
- "no-validate": {
201
- "description": "Skip validation before push",
202
- "name": "no-validate",
203
- "allowNo": false,
204
- "type": "boolean"
205
- }
206
- },
207
- "hasDynamicHelp": false,
208
- "hiddenAliases": [],
209
- "id": "push",
210
- "pluginAlias": "@memberjunction/metadata-sync",
211
- "pluginName": "@memberjunction/metadata-sync",
212
- "pluginType": "core",
213
- "strict": true,
214
- "enableJsonFlag": false,
215
- "isESM": false,
216
- "relativePath": [
217
- "dist",
218
- "commands",
219
- "push",
220
- "index.js"
221
- ]
222
- },
223
- "status": {
224
- "aliases": [],
225
- "args": {},
226
- "description": "Show status of local files vs database",
227
- "examples": [
228
- "<%= config.bin %> <%= command.id %>",
229
- "<%= config.bin %> <%= command.id %> --dir=\"ai-prompts\""
230
- ],
231
- "flags": {
232
- "dir": {
233
- "description": "Specific entity directory to check status",
234
- "name": "dir",
235
- "hasDynamicHelp": false,
236
- "multiple": false,
237
- "type": "option"
238
- }
239
- },
240
- "hasDynamicHelp": false,
241
- "hiddenAliases": [],
242
- "id": "status",
243
- "pluginAlias": "@memberjunction/metadata-sync",
244
- "pluginName": "@memberjunction/metadata-sync",
245
- "pluginType": "core",
246
- "strict": true,
247
- "enableJsonFlag": false,
248
- "isESM": false,
249
- "relativePath": [
250
- "dist",
251
- "commands",
252
- "status",
253
- "index.js"
254
- ]
255
- },
256
- "validate": {
257
- "aliases": [],
258
- "args": {},
259
- "description": "Validate metadata files for correctness and dependencies",
260
- "examples": [
261
- "<%= config.bin %> <%= command.id %>",
262
- "<%= config.bin %> <%= command.id %> --verbose",
263
- "<%= config.bin %> <%= command.id %> --format=json",
264
- "<%= config.bin %> <%= command.id %> --dir=./metadata",
265
- "<%= config.bin %> <%= command.id %> --no-report",
266
- "<%= config.bin %> <%= command.id %> -o validation-results.md"
267
- ],
268
- "flags": {
269
- "dir": {
270
- "description": "Directory to validate (defaults to current directory)",
271
- "name": "dir",
272
- "default": "/home/runner/work/MJ/MJ/packages/MetadataSync",
273
- "hasDynamicHelp": false,
274
- "multiple": false,
275
- "type": "option"
276
- },
277
- "verbose": {
278
- "char": "v",
279
- "description": "Show detailed validation output",
280
- "name": "verbose",
281
- "allowNo": false,
282
- "type": "boolean"
283
- },
284
- "format": {
285
- "description": "Output format",
286
- "name": "format",
287
- "default": "human",
288
- "hasDynamicHelp": false,
289
- "multiple": false,
290
- "options": [
291
- "human",
292
- "json"
293
- ],
294
- "type": "option"
295
- },
296
- "max-depth": {
297
- "description": "Maximum nesting depth before warning",
298
- "name": "max-depth",
299
- "default": 10,
300
- "hasDynamicHelp": false,
301
- "multiple": false,
302
- "type": "option"
303
- },
304
- "no-best-practices": {
305
- "description": "Skip best practice checks",
306
- "name": "no-best-practices",
307
- "allowNo": false,
308
- "type": "boolean"
309
- },
310
- "no-report": {
311
- "description": "Skip saving validation report to markdown file",
312
- "name": "no-report",
313
- "allowNo": false,
314
- "type": "boolean"
315
- },
316
- "output-file": {
317
- "char": "o",
318
- "description": "Custom output filename for report",
319
- "name": "output-file",
320
- "hasDynamicHelp": false,
321
- "multiple": false,
322
- "type": "option"
323
- }
324
- },
325
- "hasDynamicHelp": false,
326
- "hiddenAliases": [],
327
- "id": "validate",
328
- "pluginAlias": "@memberjunction/metadata-sync",
329
- "pluginName": "@memberjunction/metadata-sync",
330
- "pluginType": "core",
331
- "strict": true,
332
- "enableJsonFlag": false,
333
- "isESM": false,
334
- "relativePath": [
335
- "dist",
336
- "commands",
337
- "validate",
338
- "index.js"
339
- ]
340
- },
341
- "watch": {
342
- "aliases": [],
343
- "args": {},
344
- "description": "Watch for file changes and automatically push to database",
345
- "examples": [
346
- "<%= config.bin %> <%= command.id %>",
347
- "<%= config.bin %> <%= command.id %> --dir=\"ai-prompts\""
348
- ],
349
- "flags": {
350
- "dir": {
351
- "description": "Specific entity directory to watch",
352
- "name": "dir",
353
- "hasDynamicHelp": false,
354
- "multiple": false,
355
- "type": "option"
356
- }
357
- },
358
- "hasDynamicHelp": false,
359
- "hiddenAliases": [],
360
- "id": "watch",
361
- "pluginAlias": "@memberjunction/metadata-sync",
362
- "pluginName": "@memberjunction/metadata-sync",
363
- "pluginType": "core",
364
- "strict": true,
365
- "enableJsonFlag": false,
366
- "isESM": false,
367
- "relativePath": [
368
- "dist",
369
- "commands",
370
- "watch",
371
- "index.js"
372
- ]
373
- }
374
- },
375
- "version": "2.54.0"
376
- }