-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpackage.json
263 lines (263 loc) · 9.28 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
{
"name": "sfcc-metadata-explorer",
"displayName": "SFCC Metadata Explorer",
"description": "View, add, delete, and update SFCC sandbox metadata right from your vscode editor.",
"version": "2.4.6",
"publisher": "ghgofort",
"repository": {
"type": "git",
"url": "https://github.com/ghgofort/sfcc-metadata-explorer"
},
"license": "MIT",
"icon": "resources/meta_explorer_logo.png",
"engines": {
"vscode": "^1.57.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onCommand:extension.sfccexplorer.getobjects",
"onView:systemObjectDefinitionsView"
],
"main": "./dist/extension",
"contributes": {
"configuration": {
"title": "sfcc-metadata-explorer",
"properties": {
"extension.sfccmetadata.explorer.systemobjects": {
"type": "boolean",
"default": true,
"description": "Enable the system objects tree",
"scope": "window"
},
"extension.sfccmetadata.explorer.customobjects": {
"type": "boolean",
"default": true,
"description": "Enable the display of custom objects in the meta-explorer tree view",
"scope": "window"
},
"extension.sfccmetadata.explorer.sitepreferences": {
"type": "boolean",
"default": true,
"description": "Enable the display of Site Preferences in the meta-explorer tree view",
"scope": "window"
},
"extension.sfccmetadata.explorer.jobs": {
"type": "boolean",
"default": false,
"description": "Enable display of SFCC Job configurations in the meta-explorer tree view",
"scope": "window"
},
"extension.sfccmetadata.ocapi.version": {
"type": "string",
"default": "20.4",
"description": "Configure the OCAPI version for API calls - default: 20.4",
"scope": "window"
},
"extension.sfccmetadata.ocapi.clientid": {
"type": "string",
"default": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"description": "Configure the OCAPI client ID used for API calls - default: 30 letter 'a' characters",
"scope": "window"
},
"extension.sfccmetadata.ocapi.clientpassword": {
"type": "string",
"default": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"description": "Configure the OCAPI client password used for API calls - default: 30 letter 'a' characters",
"scope": "window"
},
"extension.sfccmetadata.sfcc.username": {
"type": "string",
"default": "",
"description": "SFCC username for auth token. (Business Manager username)",
"scope": "window"
},
"extension.sfccmetadata.sfcc.userpass": {
"type": "string",
"default": "",
"description": "SFCC user password for auth token (Business Manager password).",
"scope": "window"
},
"extension.sfccmetadata.sfcc.hostname": {
"type": "string",
"default": "",
"description": "Configure the OCAPI client password used for API calls - default: 30 letter 'a' characters",
"scope": "window"
}
}
},
"commands": [
{
"command": "extension.sfccexplorer.getobjects",
"title": "Populate SFCC System Object Definitions",
"description": "Get system object definitions from sandbox."
},
{
"command": "extension.sfccexplorer.systemobject.addattribute",
"title": "Add new attribute...",
"description": "Add a new custom attribute to the system object.",
"icon": {
"dark": "resources/dark/add.svg",
"light": "resources/light/add.svg"
}
},
{
"command": "extension.sfccexplorer.systemobjectattribute.setdefault",
"title": "Set Default Value of System Object Attribute",
"description": "Sets the default value of a custom attribute of the SitePreferences system object."
},
{
"command": "extension.sfccexplorer.systemobjectattribute.addtogroup",
"title": "Assign attribute to attribute group",
"description": "Adds a system object attribute definition to a system object attribute group."
},
{
"command": "extension.sfccexplorer.systemobject.deleteattribute",
"title": "Delete attribute from system object",
"description": "Deletes a system object attribute definition."
},
{
"command": "extension.sfccexplorer.refresh",
"title": "Refresh",
"icon": {
"dark": "resources/dark/refresh.svg",
"light": "resources/light/refresh.svg"
}
},
{
"command": "extension.sfccexplorer.objectattributegroup.addgroup",
"title": "Add new attribute group...",
"description": "Add a new attribute group to the system object."
},
{
"command": "extension.sfccexplorer.objectattributegroup.deletegroup",
"title": "Delete attribute group",
"description": "Deletes the attribute group and all asignments to the group."
},
{
"command": "extension.sfccexplorer.systemobjectattribute.getxml",
"title": "Get attribute XML",
"description": "Get XML for the attribute to import & export via SFCC."
},
{
"command": "extension.sfccexplorer.objectattributegroup.getxml",
"title": "Get attribute group XML",
"description": "Gets XML for the attribute group to use in a import / export file for SFCC."
},
{
"command": "extension.sfccexplorer.systemobjectattribute.removefromgroup",
"title": "Remove attribute from attribute group",
"description": "Removes the selected attribute from the attribute group."
},
{
"command": "extension.sfccexplorer.sitepreference.setvalue",
"title": "Set preference value...",
"description": "Sets the selected site-value of the preference."
},
{
"command": "extension.sfccexplorer.systemobjects.getxml",
"title": "Get full XML",
"description": "Gets the full system-objecttype-extensions.xml export file."
}
],
"menus": {
"view/title": [
{
"command": "extension.sfccexplorer.refresh",
"when": "view == systemObjectDefinitionsView",
"group": "navigation"
}
],
"view/item/context": [
{
"command": "extension.sfccexplorer.systemobject.addattribute",
"when": "view == systemObjectDefinitionsView && viewItem == definition"
},
{
"command": "extension.sfccexplorer.systemobject.deleteattribute",
"when": "view == systemObjectDefinitionsView && viewItem == attribute"
},
{
"command": "extension.sfccexplorer.systemobjectattribute.addtogroup",
"when": "view == systemObjectDefinitionsView && viewItem == attribute"
},
{
"command": "extension.sfccexplorer.objectattributegroup.addgroup",
"when": "view == systemObjectDefinitionsView && viewItem == definition"
},
{
"command": "extension.sfccexplorer.systemobjectattribute.getxml",
"when": "view == systemObjectDefinitionsView && viewItem == attribute"
},
{
"command": "extension.sfccexplorer.objectattributegroup.getxml",
"when": "view == systemObjectDefinitionsView && viewItem == group"
},
{
"command": "extension.sfccexplorer.objectattributegroup.deletegroup",
"when": "view == systemObjectDefinitionsView && viewItem == group"
},
{
"command": "extension.sfccexplorer.systemobjectattribute.removefromgroup",
"when": "view == systemObjectDefinitionsView && viewItem == groupAttribute"
},
{
"command": "extension.sfccexplorer.sitepreference.setvalue",
"when": "view == systemObjectDefinitionsView && viewItem == preferenceValue"
},
{
"command": "extension.sfccexplorer.systemobjects.getxml",
"when": "view == systemObjectDefinitionsView && viewItem == baseNodeName"
}
]
},
"viewsContainers": {
"activitybar": [
{
"id": "metadata-explorer",
"title": "SFCC Metadata Explorer",
"icon": "resources/dark/sfcc_meta_explorer.svg"
}
]
},
"views": {
"metadata-explorer": [
{
"id": "systemObjectDefinitionsView",
"name": "System Object Definitions"
}
]
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"test-compile": "tsc -p ./",
"pretest": "npm run compile",
"test": "node ./dist/test/runTest.js"
},
"devDependencies": {
"@types/glob": "^7.1.3",
"@types/mocha": "5.2.7",
"@types/node": "^7.10.14",
"@types/vscode": "^1.57.0",
"ajv": "6.12.3",
"ansi-regex": ">=5.0.1",
"glob": "^7.1.4",
"mocha": "^9.1.3",
"ts-loader": "^9.4.2",
"typescript": "^4.0.2",
"vscode-test": "^1.3.0"
},
"dependencies": {
"adm-zip": "^0.4.14",
"minimist": "^1.2.6",
"node-fetch": "^2.6.7",
"original-fs": "^1.1.0",
"vsce": "^2.10.0",
"vscode-uri": "^1.0.6",
"xmlbuilder": "^11.0.0"
}
}