@memberjunction/metadata-sync 2.47.0 → 2.49.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.
- package/README.md +814 -15
- package/dist/commands/init/index.js +25 -0
- package/dist/commands/init/index.js.map +1 -1
- package/dist/commands/pull/index.d.ts +97 -5
- package/dist/commands/pull/index.js +1009 -115
- package/dist/commands/pull/index.js.map +1 -1
- package/dist/commands/push/index.js +181 -12
- package/dist/commands/push/index.js.map +1 -1
- package/dist/commands/status/index.js +49 -7
- package/dist/commands/status/index.js.map +1 -1
- package/dist/commands/watch/index.js +59 -7
- package/dist/commands/watch/index.js.map +1 -1
- package/dist/config.d.ts +96 -0
- package/dist/config.js +2 -13
- package/dist/config.js.map +1 -1
- package/dist/hooks/init.js +3 -0
- package/dist/hooks/init.js.map +1 -1
- package/dist/lib/config-manager.d.ts +56 -0
- package/dist/lib/config-manager.js +104 -0
- package/dist/lib/config-manager.js.map +1 -0
- package/dist/lib/provider-utils.d.ts +26 -5
- package/dist/lib/provider-utils.js +127 -43
- package/dist/lib/provider-utils.js.map +1 -1
- package/dist/lib/singleton-manager.d.ts +34 -0
- package/dist/lib/singleton-manager.js +62 -0
- package/dist/lib/singleton-manager.js.map +1 -0
- package/dist/lib/sync-engine.js +16 -1
- package/dist/lib/sync-engine.js.map +1 -1
- package/oclif.manifest.json +50 -43
- package/package.json +8 -7
package/oclif.manifest.json
CHANGED
|
@@ -24,47 +24,47 @@
|
|
|
24
24
|
"index.js"
|
|
25
25
|
]
|
|
26
26
|
},
|
|
27
|
-
"
|
|
27
|
+
"push": {
|
|
28
28
|
"aliases": [],
|
|
29
29
|
"args": {},
|
|
30
|
-
"description": "
|
|
30
|
+
"description": "Push local file changes to the database",
|
|
31
31
|
"examples": [
|
|
32
|
-
"<%= config.bin %> <%= command.id %>
|
|
33
|
-
"<%= config.bin %> <%= command.id %> --
|
|
32
|
+
"<%= config.bin %> <%= command.id %>",
|
|
33
|
+
"<%= config.bin %> <%= command.id %> --dry-run",
|
|
34
|
+
"<%= config.bin %> <%= command.id %> --dir=\"ai-prompts\"",
|
|
35
|
+
"<%= config.bin %> <%= command.id %> --ci"
|
|
34
36
|
],
|
|
35
37
|
"flags": {
|
|
36
|
-
"
|
|
37
|
-
"description": "
|
|
38
|
-
"name": "
|
|
39
|
-
"required": true,
|
|
40
|
-
"hasDynamicHelp": false,
|
|
41
|
-
"multiple": false,
|
|
42
|
-
"type": "option"
|
|
43
|
-
},
|
|
44
|
-
"filter": {
|
|
45
|
-
"description": "Additional filter for pulling specific records",
|
|
46
|
-
"name": "filter",
|
|
38
|
+
"dir": {
|
|
39
|
+
"description": "Specific entity directory to push",
|
|
40
|
+
"name": "dir",
|
|
47
41
|
"hasDynamicHelp": false,
|
|
48
42
|
"multiple": false,
|
|
49
43
|
"type": "option"
|
|
50
44
|
},
|
|
51
45
|
"dry-run": {
|
|
52
|
-
"description": "Show what would be
|
|
46
|
+
"description": "Show what would be pushed without actually pushing",
|
|
53
47
|
"name": "dry-run",
|
|
54
48
|
"allowNo": false,
|
|
55
49
|
"type": "boolean"
|
|
56
50
|
},
|
|
57
|
-
"
|
|
58
|
-
"description": "
|
|
59
|
-
"name": "
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
|
|
51
|
+
"ci": {
|
|
52
|
+
"description": "CI mode - no prompts, fail on issues",
|
|
53
|
+
"name": "ci",
|
|
54
|
+
"allowNo": false,
|
|
55
|
+
"type": "boolean"
|
|
56
|
+
},
|
|
57
|
+
"verbose": {
|
|
58
|
+
"char": "v",
|
|
59
|
+
"description": "Show detailed field-level output",
|
|
60
|
+
"name": "verbose",
|
|
61
|
+
"allowNo": false,
|
|
62
|
+
"type": "boolean"
|
|
63
63
|
}
|
|
64
64
|
},
|
|
65
65
|
"hasDynamicHelp": false,
|
|
66
66
|
"hiddenAliases": [],
|
|
67
|
-
"id": "
|
|
67
|
+
"id": "push",
|
|
68
68
|
"pluginAlias": "@memberjunction/metadata-sync",
|
|
69
69
|
"pluginName": "@memberjunction/metadata-sync",
|
|
70
70
|
"pluginType": "core",
|
|
@@ -74,43 +74,50 @@
|
|
|
74
74
|
"relativePath": [
|
|
75
75
|
"dist",
|
|
76
76
|
"commands",
|
|
77
|
-
"
|
|
77
|
+
"push",
|
|
78
78
|
"index.js"
|
|
79
79
|
]
|
|
80
80
|
},
|
|
81
|
-
"
|
|
81
|
+
"pull": {
|
|
82
82
|
"aliases": [],
|
|
83
83
|
"args": {},
|
|
84
|
-
"description": "
|
|
84
|
+
"description": "Pull metadata from database to local files",
|
|
85
85
|
"examples": [
|
|
86
|
-
"<%= config.bin %> <%= command.id %>",
|
|
87
|
-
"<%= config.bin %> <%= command.id %> --
|
|
88
|
-
"<%= config.bin %> <%= command.id %> --dir=\"ai-prompts\"",
|
|
89
|
-
"<%= config.bin %> <%= command.id %> --ci"
|
|
86
|
+
"<%= config.bin %> <%= command.id %> --entity=\"AI Prompts\"",
|
|
87
|
+
"<%= config.bin %> <%= command.id %> --entity=\"AI Prompts\" --filter=\"CategoryID='customer-service-id'\""
|
|
90
88
|
],
|
|
91
89
|
"flags": {
|
|
92
|
-
"
|
|
93
|
-
"description": "
|
|
94
|
-
"name": "
|
|
90
|
+
"entity": {
|
|
91
|
+
"description": "Entity name to pull",
|
|
92
|
+
"name": "entity",
|
|
93
|
+
"required": true,
|
|
94
|
+
"hasDynamicHelp": false,
|
|
95
|
+
"multiple": false,
|
|
96
|
+
"type": "option"
|
|
97
|
+
},
|
|
98
|
+
"filter": {
|
|
99
|
+
"description": "Additional filter for pulling specific records",
|
|
100
|
+
"name": "filter",
|
|
95
101
|
"hasDynamicHelp": false,
|
|
96
102
|
"multiple": false,
|
|
97
103
|
"type": "option"
|
|
98
104
|
},
|
|
99
105
|
"dry-run": {
|
|
100
|
-
"description": "Show what would be
|
|
106
|
+
"description": "Show what would be pulled without actually pulling",
|
|
101
107
|
"name": "dry-run",
|
|
102
108
|
"allowNo": false,
|
|
103
109
|
"type": "boolean"
|
|
104
110
|
},
|
|
105
|
-
"
|
|
106
|
-
"description": "
|
|
107
|
-
"name": "
|
|
108
|
-
"
|
|
109
|
-
"
|
|
111
|
+
"multi-file": {
|
|
112
|
+
"description": "Create a single file with multiple records (provide filename)",
|
|
113
|
+
"name": "multi-file",
|
|
114
|
+
"hasDynamicHelp": false,
|
|
115
|
+
"multiple": false,
|
|
116
|
+
"type": "option"
|
|
110
117
|
},
|
|
111
118
|
"verbose": {
|
|
112
119
|
"char": "v",
|
|
113
|
-
"description": "Show detailed
|
|
120
|
+
"description": "Show detailed output",
|
|
114
121
|
"name": "verbose",
|
|
115
122
|
"allowNo": false,
|
|
116
123
|
"type": "boolean"
|
|
@@ -118,7 +125,7 @@
|
|
|
118
125
|
},
|
|
119
126
|
"hasDynamicHelp": false,
|
|
120
127
|
"hiddenAliases": [],
|
|
121
|
-
"id": "
|
|
128
|
+
"id": "pull",
|
|
122
129
|
"pluginAlias": "@memberjunction/metadata-sync",
|
|
123
130
|
"pluginName": "@memberjunction/metadata-sync",
|
|
124
131
|
"pluginType": "core",
|
|
@@ -128,7 +135,7 @@
|
|
|
128
135
|
"relativePath": [
|
|
129
136
|
"dist",
|
|
130
137
|
"commands",
|
|
131
|
-
"
|
|
138
|
+
"pull",
|
|
132
139
|
"index.js"
|
|
133
140
|
]
|
|
134
141
|
},
|
|
@@ -199,5 +206,5 @@
|
|
|
199
206
|
]
|
|
200
207
|
}
|
|
201
208
|
},
|
|
202
|
-
"version": "2.
|
|
209
|
+
"version": "2.49.0"
|
|
203
210
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memberjunction/metadata-sync",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.49.0",
|
|
4
4
|
"description": "MemberJunction metadata synchronization CLI tool",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"oclif",
|
|
@@ -51,11 +51,12 @@
|
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"@inquirer/prompts": "^5.0.1",
|
|
54
|
-
"@memberjunction/core": "2.
|
|
55
|
-
"@memberjunction/core-entities": "2.
|
|
56
|
-
"@memberjunction/core-entities-server": "2.
|
|
57
|
-
"@memberjunction/
|
|
58
|
-
"@memberjunction/
|
|
54
|
+
"@memberjunction/core": "2.49.0",
|
|
55
|
+
"@memberjunction/core-entities": "2.49.0",
|
|
56
|
+
"@memberjunction/core-entities-server": "2.49.0",
|
|
57
|
+
"@memberjunction/global": "2.49.0",
|
|
58
|
+
"@memberjunction/sqlserver-dataprovider": "2.49.0",
|
|
59
|
+
"@memberjunction/graphql-dataprovider": "2.49.0",
|
|
59
60
|
"@oclif/core": "^3",
|
|
60
61
|
"@oclif/plugin-help": "^6",
|
|
61
62
|
"@oclif/plugin-version": "^2.0.17",
|
|
@@ -69,7 +70,7 @@
|
|
|
69
70
|
"zod": "^3.23.4",
|
|
70
71
|
"crypto": "^1.0.1",
|
|
71
72
|
"axios": "^1.6.8",
|
|
72
|
-
"
|
|
73
|
+
"mssql": "^11.0.1"
|
|
73
74
|
},
|
|
74
75
|
"devDependencies": {
|
|
75
76
|
"@oclif/prettier-config": "^0.2.1",
|