forked from petrbroz/vscode-forge-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
779 lines (779 loc) · 21.2 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
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
{
"name": "vscode-forge-tools",
"displayName": "Autodesk Forge Tools",
"publisher": "petrbroz",
"icon": "resources/marketplace-logo.png",
"description": "Visual Studio Code extension for accessing Autodesk Forge services and content.",
"author": "Petr Broz <[email protected]>",
"license": "MIT",
"version": "2.3.0",
"homepage": "https://marketplace.visualstudio.com/items?itemName=petrbroz.vscode-forge-tools",
"repository": {
"type": "git",
"url": "https://github.com/petrbroz/vscode-forge-tools"
},
"bugs": {
"url": "https://github.com/petrbroz/vscode-forge-tools/issues",
"email": "[email protected]"
},
"keywords": [
"autodesk",
"forge",
"vscode",
"extension"
],
"engines": {
"vscode": "^1.45.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onView:forgeDataManagementView",
"onView:forgeDesignAutomationView",
"onView:forgeHubsView",
"onView:forgeWebhooksView"
],
"main": "./dist/extension.js",
"contributes": {
"configuration": {
"title": "Forge",
"properties": {
"autodesk.forge.environments": {
"scope": "resource",
"type": "array",
"description": "List of Forge environments to switch between",
"items": {
"type": "object",
"title": "Forge environments",
"properties": {
"title": {
"type": "string",
"description": "Environment title"
},
"clientId": {
"type": "string",
"description": "Forge client ID"
},
"clientSecret": {
"type": "string",
"description": "Forge client secret"
},
"host": {
"type": "string",
"description": "Forge API host",
"default": "https://developer.api.autodesk.com"
},
"region": {
"type": "string",
"description": "Forge availability region",
"enum": [
"US",
"EMEA"
],
"default": "US"
},
"designAutomationRegion": {
"type": "string",
"description": "Forge Design Automation availability region",
"enum": [
"us-west",
"us-east"
],
"default": "us-east"
}
}
}
},
"autodesk.forge.viewer.extensions": {
"scope": "resource",
"type": "array",
"description": "Viewer extensions to be used when previewing derivatives.",
"items": {
"type": "string"
}
},
"autodesk.forge.viewer.env": {
"scope": "resource",
"type": "string",
"description": "Custom Model Derivative environment used by the Forge Viewer. By default, the viewer will determine the appropriate environment based on the viewable output format (SVF vs SVF2)."
},
"autodesk.forge.viewer.api": {
"scope": "resource",
"type": "string",
"description": "Custom Model Derivative API used by the Forge Viewer. By default, the viewer will determine the appropriate API based on the viewable output format (SVF vs SVF2)."
},
"autodesk.forge.authentication.port": {
"scope": "resource",
"type": "number",
"default": 8123,
"description": "Server port to use during 3-legged authentication workflows"
},
"autodesk.forge.data.defaultContentType": {
"scope": "resource",
"type": "string",
"default": "application/octet-stream",
"description": "When defined, all uploaded files and empty objects created in OSS will use this content type."
},
"autodesk.forge.data.uploadChunkSize": {
"scope": "resource",
"type": "number",
"default": 2097152,
"description": "Size of individual chunks (in bytes) when uploading files to OSS with the resumable functionality."
}
}
},
"viewsContainers": {
"activitybar": [
{
"id": "forgeViewContainer",
"title": "Forge",
"icon": "resources/sidebar-logo.svg"
}
]
},
"views": {
"forgeViewContainer": [
{
"id": "forgeDataManagementView",
"name": "Buckets & Derivatives"
},
{
"id": "forgeHubsView",
"name": "Hubs & Derivatives"
},
{
"id": "forgeWebhooksView",
"name": "Webhooks"
},
{
"id": "forgeDesignAutomationView",
"name": "Design Automation"
}
]
},
"commands": [
{
"command": "forge.switchEnvironment",
"title": "Switch Environment"
},
{
"command": "forge.refreshBuckets",
"title": "Refresh Buckets",
"icon": {
"light": "resources/icons/dark/refresh.svg",
"dark": "resources/icons/light/refresh.svg"
}
},
{
"command": "forge.createBucket",
"title": "Create Bucket",
"icon": {
"light": "resources/icons/dark/add.svg",
"dark": "resources/icons/light/add.svg"
}
},
{
"command": "forge.viewBucketDetails",
"title": "View Bucket Details",
"category": "Forge Data Management"
},
{
"command": "forge.viewObjectDetails",
"title": "View Object Details",
"category": "Forge Data Management"
},
{
"command": "forge.uploadObject",
"title": "Upload Object",
"category": "Forge Data Management"
},
{
"command": "forge.createEmptyObject",
"title": "Create Empty Object",
"category": "Forge Data Management"
},
{
"command": "forge.deleteBucketObjects",
"title": "Delete All Objects",
"category": "Forge Data Management"
},
{
"command": "forge.downloadObject",
"title": "Download Object",
"category": "Forge Data Management"
},
{
"command": "forge.renameObject",
"title": "Rename Object",
"category": "Forge Data Management"
},
{
"command": "forge.copyObject",
"title": "Copy Object",
"category": "Forge Data Management"
},
{
"command": "forge.deleteObject",
"title": "Delete Object",
"category": "Forge Data Management"
},
{
"command": "forge.generateSignedUrl",
"title": "Generate Signed URL",
"category": "Forge Data Management"
},
{
"command": "forge.deleteBucket",
"title": "Delete Bucket",
"category": "Forge Data Management"
},
{
"command": "forge.translateObject",
"title": "Translate Object",
"category": "Forge Model Derivative"
},
{
"command": "forge.translateObjectCustom",
"title": "Translate Object (Custom)",
"category": "Forge Model Derivative"
},
{
"command": "forge.previewDerivative",
"title": "Preview Derivative",
"category": "Forge Model Derivative"
},
{
"command": "forge.viewDerivativeTree",
"title": "View Derivative Tree JSON",
"category": "Forge Model Derivative"
},
{
"command": "forge.viewDerivativeProps",
"title": "View Derivative Properties JSON",
"category": "Forge Model Derivative"
},
{
"command": "forge.viewObjectManifest",
"title": "View Object Manifest JSON",
"category": "Forge Model Derivative"
},
{
"command": "forge.copyObjectUrn",
"title": "Copy Object URN to Clipboard",
"category": "Forge Model Derivative"
},
{
"command": "forge.deleteObjectManifest",
"title": "Delete Derivatives",
"category": "Forge Model Derivative"
},
{
"command": "forge.viewObjectThumbnail",
"title": "View Object Thumbnails",
"category": "Forge Model Derivative"
},
{
"command": "forge.downloadDerivativeSvf",
"title": "Download Object Derivatives as SVF",
"category": "Forge Model Derivative"
},
{
"command": "forge.downloadDerivativeF2d",
"title": "Download Object Derivatives as F2D",
"category": "Forge Model Derivative"
},
{
"command": "forge.downloadDerivativeOtg",
"title": "Download Object Derivatives as OTG",
"category": "Forge Model Derivative"
},
{
"command": "forge.downloadDerivativeGltf",
"title": "Download Object Derivatives as glTF",
"category": "Forge Model Derivative"
},
{
"command": "forge.refreshDesignAutomationTree",
"title": "Refresh Design Automation Tree",
"category": "Forge Design Automation",
"icon": {
"light": "resources/icons/dark/refresh.svg",
"dark": "resources/icons/light/refresh.svg"
}
},
{
"command": "forge.createAppBundle",
"title": "Create App Bundle",
"category": "Forge Design Automation"
},
{
"command": "forge.updateAppBundle",
"title": "Update App Bundle",
"category": "Forge Design Automation"
},
{
"command": "forge.viewAppBundleDetails",
"title": "View App Bundle Details",
"category": "Forge Design Automation"
},
{
"command": "forge.viewAppBundleVersionDetails",
"title": "View App Bundle Details",
"category": "Forge Design Automation"
},
{
"command": "forge.deleteAppBundle",
"title": "Delete App Bundle",
"category": "Forge Design Automation"
},
{
"command": "forge.deleteAppBundleAlias",
"title": "Delete App Bundle Alias",
"category": "Forge Design Automation"
},
{
"command": "forge.createAppBundleAlias",
"title": "Create App Bundle Alias",
"category": "Forge Design Automation"
},
{
"command": "forge.updateAppBundleAlias",
"title": "Update App Bundle Alias",
"category": "Forge Design Automation"
},
{
"command": "forge.deleteAppBundleVersion",
"title": "Delete App Bundle Version",
"category": "Forge Design Automation"
},
{
"command": "forge.viewActivityDetails",
"title": "View Activity Details",
"category": "Forge Design Automation"
},
{
"command": "forge.viewActivityVersionDetails",
"title": "View Activity Details",
"category": "Forge Design Automation"
},
{
"command": "forge.createActivity",
"title": "Create Activity",
"category": "Forge Design Automation"
},
{
"command": "forge.updateActivity",
"title": "Update Activity",
"category": "Forge Design Automation"
},
{
"command": "forge.deleteActivity",
"title": "Delete Activity",
"category": "Forge Design Automation"
},
{
"command": "forge.deleteActivityAlias",
"title": "Delete Activity Alias",
"category": "Forge Design Automation"
},
{
"command": "forge.createActivityAlias",
"title": "Create Activity Alias",
"category": "Forge Design Automation"
},
{
"command": "forge.updateActivityAlias",
"title": "Update Activity Alias",
"category": "Forge Design Automation"
},
{
"command": "forge.deleteActivityVersion",
"title": "Delete Activity Version",
"category": "Forge Design Automation"
},
{
"command": "forge.createWorkitem",
"title": "Create Workitem",
"category": "Forge Design Automation"
},
{
"command": "forge.refreshWebhooks",
"title": "Refresh Webhooks",
"category": "Forge Webhooks",
"icon": {
"light": "resources/icons/dark/refresh.svg",
"dark": "resources/icons/light/refresh.svg"
}
},
{
"command": "forge.viewWebhookDetails",
"title": "View Webhook Details",
"category": "Forge Webhooks"
},
{
"command": "forge.createWebhook",
"title": "Create Webhook",
"category": "Forge Webhooks"
},
{
"command": "forge.updateWebhook",
"title": "Update Webhook",
"category": "Forge Webhooks"
},
{
"command": "forge.deleteWebhook",
"title": "Delete Webhook",
"category": "Forge Webhooks"
},
{
"command": "forge.login",
"title": "Login",
"category": "Forge Authentication"
},
{
"command": "forge.logout",
"title": "Logout",
"category": "Forge Authentication"
},
{
"command": "forge.getAccessToken",
"title": "Generate Access Token",
"category": "Forge Authentication"
}
],
"menus": {
"view/title": [
{
"command": "forge.refreshBuckets",
"when": "view == forgeDataManagementView",
"group": "navigation"
},
{
"command": "forge.createBucket",
"when": "view == forgeDataManagementView",
"group": "navigation"
},
{
"command": "forge.refreshDesignAutomationTree",
"when": "view == forgeDesignAutomationView",
"group": "navigation"
},
{
"command": "forge.refreshWebhooks",
"when": "view == forgeWebhooksView",
"group": "navigation"
}
],
"view/item/context": [
{
"command": "forge.viewBucketDetails",
"when": "view == forgeDataManagementView && viewItem == bucket",
"group": "0_view"
},
{
"command": "forge.uploadObject",
"when": "view == forgeDataManagementView && viewItem == bucket",
"group": "1_action@1"
},
{
"command": "forge.createEmptyObject",
"when": "view == forgeDataManagementView && viewItem == bucket",
"group": "1_action@2"
},
{
"command": "forge.deleteBucketObjects",
"when": "view == forgeDataManagementView && viewItem == bucket",
"group": "3_remove@1"
},
{
"command": "forge.deleteBucket",
"when": "view == forgeDataManagementView && viewItem == bucket",
"group": "3_remove@2"
},
{
"command": "forge.viewObjectDetails",
"when": "view == forgeDataManagementView && viewItem == object",
"group": "0_view@1"
},
{
"command": "forge.viewObjectManifest",
"when": "view == forgeDataManagementView && viewItem == object",
"group": "0_view@2"
},
{
"command": "forge.viewObjectManifest",
"when": "view == forgeHubsView && viewItem == version",
"group": "0_view@2"
},
{
"command": "forge.viewObjectThumbnail",
"when": "view == forgeDataManagementView && viewItem == object",
"group": "0_view@3"
},
{
"command": "forge.viewObjectThumbnail",
"when": "view == forgeHubsView && viewItem == version",
"group": "0_view@3"
},
{
"command": "forge.downloadObject",
"when": "view == forgeDataManagementView && viewItem == object",
"group": "1_action_dm@1"
},
{
"command": "forge.renameObject",
"when": "view == forgeDataManagementView && viewItem == object",
"group": "1_action_dm@2"
},
{
"command": "forge.copyObject",
"when": "view == forgeDataManagementView && viewItem == object",
"group": "1_action_dm@3"
},
{
"command": "forge.generateSignedUrl",
"when": "view == forgeDataManagementView && viewItem == object",
"group": "1_action_dm@4"
},
{
"command": "forge.copyObjectUrn",
"when": "view == forgeDataManagementView && viewItem == object",
"group": "1_action_md@1"
},
{
"command": "forge.copyObjectUrn",
"when": "view == forgeHubsView && viewItem == version",
"group": "1_action_md@1"
},
{
"command": "forge.translateObject",
"when": "view == forgeDataManagementView && viewItem == object",
"group": "1_action_md@2"
},
{
"command": "forge.translateObject",
"when": "view == forgeHubsView && viewItem == version",
"group": "1_action_md@2"
},
{
"command": "forge.translateObjectCustom",
"when": "view == forgeDataManagementView && viewItem == object",
"group": "1_action_md@3"
},
{
"command": "forge.translateObjectCustom",
"when": "view == forgeHubsView && viewItem == version",
"group": "1_action_md@3"
},
{
"command": "forge.downloadDerivativeSvf",
"when": "view == forgeDataManagementView && viewItem == object",
"group": "1_action_md@4"
},
{
"command": "forge.downloadDerivativeF2d",
"when": "view == forgeDataManagementView && viewItem == object",
"group": "1_action_md@5"
},
{
"command": "forge.downloadDerivativeOtg",
"when": "view == forgeDataManagementView && viewItem == object",
"group": "1_action_md@6"
},
{
"command": "forge.downloadDerivativeGltf",
"when": "view == forgeDataManagementView && viewItem == object",
"group": "1_action_md@7"
},
{
"command": "forge.deleteObject",
"when": "view == forgeDataManagementView && viewItem == object",
"group": "3_remove@1"
},
{
"command": "forge.deleteObjectManifest",
"when": "view == forgeDataManagementView && viewItem == object",
"group": "3_remove@2"
},
{
"command": "forge.previewDerivative",
"when": "viewItem == derivative",
"group": "0_view@1"
},
{
"command": "forge.viewDerivativeTree",
"when": "viewItem == derivative",
"group": "0_view@2"
},
{
"command": "forge.viewDerivativeProps",
"when": "viewItem == derivative",
"group": "0_view@3"
},
{
"command": "forge.createAppBundle",
"when": "view == forgeDesignAutomationView && viewItem == owned-appbundles",
"group": "2_modify"
},
{
"command": "forge.updateAppBundle",
"when": "view == forgeDesignAutomationView && viewItem == owned-appbundle",
"group": "2_modify"
},
{
"command": "forge.deleteAppBundle",
"when": "view == forgeDesignAutomationView && viewItem == owned-appbundle",
"group": "3_remove"
},
{
"command": "forge.viewAppBundleDetails",
"when": "view == forgeDesignAutomationView && viewItem == appbundle-alias",
"group": "0_view"
},
{
"command": "forge.viewAppBundleDetails",
"when": "view == forgeDesignAutomationView && viewItem == shared-appbundle",
"group": "0_view"
},
{
"command": "forge.deleteAppBundleAlias",
"when": "view == forgeDesignAutomationView && viewItem == appbundle-alias",
"group": "3_remove"
},
{
"command": "forge.createAppBundleAlias",
"when": "view == forgeDesignAutomationView && viewItem == appbundle-aliases",
"group": "2_modify"
},
{
"command": "forge.updateAppBundleAlias",
"when": "view == forgeDesignAutomationView && viewItem == appbundle-alias",
"group": "2_modify"
},
{
"command": "forge.viewAppBundleVersionDetails",
"when": "view == forgeDesignAutomationView && viewItem == appbundle-version",
"group": "0_view"
},
{
"command": "forge.deleteAppBundleVersion",
"when": "view == forgeDesignAutomationView && viewItem == appbundle-version",
"group": "3_remove"
},
{
"command": "forge.createActivity",
"when": "view == forgeDesignAutomationView && viewItem == owned-activities",
"group": "2_modify"
},
{
"command": "forge.deleteActivity",
"when": "view == forgeDesignAutomationView && viewItem == owned-activity",
"group": "3_remove"
},
{
"command": "forge.viewActivityDetails",
"when": "view == forgeDesignAutomationView && viewItem == activity-alias",
"group": "0_view"
},
{
"command": "forge.updateActivity",
"when": "view == forgeDesignAutomationView && viewItem == activity-alias",
"group": "2_modify"
},
{
"command": "forge.createWorkitem",
"when": "view == forgeDesignAutomationView && viewItem == activity-alias",
"group": "2_modify"
},
{
"command": "forge.viewActivityDetails",
"when": "view == forgeDesignAutomationView && viewItem == shared-activity",
"group": "0_view"
},
{
"command": "forge.createWorkitem",
"when": "view == forgeDesignAutomationView && viewItem == shared-activity",
"group": "2_modify"
},
{
"command": "forge.deleteActivityAlias",
"when": "view == forgeDesignAutomationView && viewItem == activity-alias",
"group": "3_remove"
},
{
"command": "forge.createActivityAlias",
"when": "view == forgeDesignAutomationView && viewItem == activity-aliases",
"group": "2_modify"
},
{
"command": "forge.updateActivityAlias",
"when": "view == forgeDesignAutomationView && viewItem == activity-alias",
"group": "2_modify"
},
{
"command": "forge.viewActivityVersionDetails",
"when": "view == forgeDesignAutomationView && viewItem == activity-version",
"group": "0_view"
},
{
"command": "forge.updateActivity",
"when": "view == forgeDesignAutomationView && viewItem == activity-version",
"group": "2_modify"
},
{
"command": "forge.deleteActivityVersion",
"when": "view == forgeDesignAutomationView && viewItem == activity-version",
"group": "3_remove"
},
{
"command": "forge.viewWebhookDetails",
"when": "view == forgeWebhooksView && viewItem == hook",
"group": "0_view"
},
{
"command": "forge.updateWebhook",
"when": "view == forgeWebhooksView && viewItem == hook",
"group": "2_modify"
},
{
"command": "forge.deleteWebhook",
"when": "view == forgeWebhooksView && viewItem == hook",
"group": "3_remove"
},
{
"command": "forge.createWebhook",
"when": "view == forgeWebhooksView && viewItem == event",
"group": "2_modify"
}
]
}
},
"scripts": {
"vscode:prepublish": "webpack --mode production",
"webpack": "webpack --mode development",
"webpack-dev": "webpack --mode development --watch",
"test-compile": "tsc -p ./",
"lint": "tslint --project ."
},
"devDependencies": {
"@types/mocha": "^2.2.42",
"@types/node": "^12.0.0",
"@types/vscode": "1.45",
"pug": "^3.0.0",
"pug-loader": "^2.4.0",
"ts-loader": "^7.0.5",
"tslint": "^5.12.1",
"typescript": "^3.7.2",
"vscode-test": "^1.3.0",
"webpack": "^4.43.0",
"webpack-cli": "^3.3.11"
},
"dependencies": {
"@types/fs-extra": "^9.0.0",
"axios": "^0.21.1",
"forge-convert-utils": "^3.5.0",
"forge-server-utils": "^8.2.0",
"fs-extra": "^9.0.0"
}
}