@memberjunction/metadata-sync 2.55.0 → 2.57.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 (67) hide show
  1. package/README.md +92 -51
  2. package/dist/index.d.ts +21 -1
  3. package/dist/index.js +43 -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/provider-utils.d.ts +2 -2
  8. package/dist/lib/provider-utils.js.map +1 -1
  9. package/dist/lib/sql-logger.d.ts +44 -0
  10. package/dist/lib/sql-logger.js +140 -0
  11. package/dist/lib/sql-logger.js.map +1 -0
  12. package/dist/lib/sync-engine.d.ts +25 -0
  13. package/dist/lib/sync-engine.js +72 -2
  14. package/dist/lib/sync-engine.js.map +1 -1
  15. package/dist/lib/transaction-manager.d.ts +35 -0
  16. package/dist/lib/transaction-manager.js +100 -0
  17. package/dist/lib/transaction-manager.js.map +1 -0
  18. package/dist/services/FileResetService.d.ts +30 -0
  19. package/dist/services/FileResetService.js +183 -0
  20. package/dist/services/FileResetService.js.map +1 -0
  21. package/dist/services/InitService.d.ts +17 -0
  22. package/dist/services/InitService.js +118 -0
  23. package/dist/services/InitService.js.map +1 -0
  24. package/dist/services/PullService.d.ts +45 -0
  25. package/dist/services/PullService.js +564 -0
  26. package/dist/services/PullService.js.map +1 -0
  27. package/dist/services/PushService.d.ts +47 -0
  28. package/dist/services/PushService.js +558 -0
  29. package/dist/services/PushService.js.map +1 -0
  30. package/dist/services/StatusService.d.ts +32 -0
  31. package/dist/services/StatusService.js +138 -0
  32. package/dist/services/StatusService.js.map +1 -0
  33. package/dist/services/WatchService.d.ts +34 -0
  34. package/dist/services/WatchService.js +296 -0
  35. package/dist/services/WatchService.js.map +1 -0
  36. package/dist/services/index.d.ts +16 -0
  37. package/dist/services/index.js +28 -0
  38. package/dist/services/index.js.map +1 -0
  39. package/package.json +14 -45
  40. package/bin/debug.js +0 -7
  41. package/bin/run +0 -17
  42. package/bin/run.js +0 -6
  43. package/dist/commands/file-reset/index.d.ts +0 -15
  44. package/dist/commands/file-reset/index.js +0 -221
  45. package/dist/commands/file-reset/index.js.map +0 -1
  46. package/dist/commands/init/index.d.ts +0 -7
  47. package/dist/commands/init/index.js +0 -155
  48. package/dist/commands/init/index.js.map +0 -1
  49. package/dist/commands/pull/index.d.ts +0 -246
  50. package/dist/commands/pull/index.js +0 -1448
  51. package/dist/commands/pull/index.js.map +0 -1
  52. package/dist/commands/push/index.d.ts +0 -41
  53. package/dist/commands/push/index.js +0 -1129
  54. package/dist/commands/push/index.js.map +0 -1
  55. package/dist/commands/status/index.d.ts +0 -10
  56. package/dist/commands/status/index.js +0 -199
  57. package/dist/commands/status/index.js.map +0 -1
  58. package/dist/commands/validate/index.d.ts +0 -15
  59. package/dist/commands/validate/index.js +0 -149
  60. package/dist/commands/validate/index.js.map +0 -1
  61. package/dist/commands/watch/index.d.ts +0 -15
  62. package/dist/commands/watch/index.js +0 -300
  63. package/dist/commands/watch/index.js.map +0 -1
  64. package/dist/hooks/init.d.ts +0 -3
  65. package/dist/hooks/init.js +0 -59
  66. package/dist/hooks/init.js.map +0 -1
  67. 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
- "pull": {
73
- "aliases": [],
74
- "args": {},
75
- "description": "Pull metadata from database to local files",
76
- "examples": [
77
- "<%= config.bin %> <%= command.id %> --entity=\"AI Prompts\"",
78
- "<%= config.bin %> <%= command.id %> --entity=\"AI Prompts\" --filter=\"CategoryID='customer-service-id'\""
79
- ],
80
- "flags": {
81
- "entity": {
82
- "description": "Entity name to pull",
83
- "name": "entity",
84
- "required": true,
85
- "hasDynamicHelp": false,
86
- "multiple": false,
87
- "type": "option"
88
- },
89
- "filter": {
90
- "description": "Additional filter for pulling specific records",
91
- "name": "filter",
92
- "hasDynamicHelp": false,
93
- "multiple": false,
94
- "type": "option"
95
- },
96
- "dry-run": {
97
- "description": "Show what would be pulled without actually pulling",
98
- "name": "dry-run",
99
- "allowNo": false,
100
- "type": "boolean"
101
- },
102
- "multi-file": {
103
- "description": "Create a single file with multiple records (provide filename)",
104
- "name": "multi-file",
105
- "hasDynamicHelp": false,
106
- "multiple": false,
107
- "type": "option"
108
- },
109
- "verbose": {
110
- "char": "v",
111
- "description": "Show detailed output",
112
- "name": "verbose",
113
- "allowNo": false,
114
- "type": "boolean"
115
- },
116
- "no-validate": {
117
- "description": "Skip validation before pull",
118
- "name": "no-validate",
119
- "allowNo": false,
120
- "type": "boolean"
121
- }
122
- },
123
- "hasDynamicHelp": false,
124
- "hiddenAliases": [],
125
- "id": "pull",
126
- "pluginAlias": "@memberjunction/metadata-sync",
127
- "pluginName": "@memberjunction/metadata-sync",
128
- "pluginType": "core",
129
- "strict": true,
130
- "enableJsonFlag": false,
131
- "isESM": false,
132
- "relativePath": [
133
- "dist",
134
- "commands",
135
- "pull",
136
- "index.js"
137
- ]
138
- },
139
- "init": {
140
- "aliases": [],
141
- "args": {},
142
- "description": "Initialize a directory for metadata synchronization",
143
- "examples": [
144
- "<%= config.bin %> <%= command.id %>"
145
- ],
146
- "flags": {},
147
- "hasDynamicHelp": false,
148
- "hiddenAliases": [],
149
- "id": "init",
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
- "init",
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.55.0"
376
- }