medusa-plugin-ordinant 0.1.4 → 0.1.5
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.
|
@@ -28,10 +28,6 @@ const CATEGORY_FIELDS = {
|
|
|
28
28
|
"handgun",
|
|
29
29
|
"long_gun",
|
|
30
30
|
"receiver_frame",
|
|
31
|
-
"short_barreled_rifle",
|
|
32
|
-
"short_barreled_shotgun",
|
|
33
|
-
"machine_gun",
|
|
34
|
-
"aow",
|
|
35
31
|
"destructive_device",
|
|
36
32
|
"suppressor",
|
|
37
33
|
"suppressor_part",
|
|
@@ -39,69 +35,30 @@ const CATEGORY_FIELDS = {
|
|
|
39
35
|
"firearm_part"
|
|
40
36
|
],
|
|
41
37
|
muzzle_type: ["muzzle_device"],
|
|
42
|
-
mag_capacity: [
|
|
43
|
-
|
|
44
|
-
"handgun",
|
|
45
|
-
"long_gun",
|
|
46
|
-
"short_barreled_rifle",
|
|
47
|
-
"short_barreled_shotgun",
|
|
48
|
-
"machine_gun"
|
|
49
|
-
],
|
|
38
|
+
mag_capacity: ["magazine", "handgun", "long_gun"],
|
|
39
|
+
mag_platform: ["magazine"],
|
|
50
40
|
caliber: [
|
|
51
41
|
"handgun",
|
|
52
42
|
"long_gun",
|
|
53
43
|
"receiver_frame",
|
|
54
44
|
"ammunition",
|
|
55
|
-
"short_barreled_rifle",
|
|
56
|
-
"short_barreled_shotgun",
|
|
57
|
-
"machine_gun",
|
|
58
|
-
"aow",
|
|
59
45
|
"suppressor",
|
|
60
46
|
"suppressor_part",
|
|
61
47
|
"muzzle_device"
|
|
62
48
|
],
|
|
63
|
-
action_type: [
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
"short_barreled_shotgun",
|
|
68
|
-
"machine_gun",
|
|
69
|
-
"aow"
|
|
70
|
-
],
|
|
71
|
-
feature_flags: [
|
|
72
|
-
"handgun",
|
|
73
|
-
"long_gun",
|
|
74
|
-
"receiver_frame",
|
|
75
|
-
"short_barreled_rifle",
|
|
76
|
-
"short_barreled_shotgun"
|
|
77
|
-
],
|
|
78
|
-
barrel_length_in: [
|
|
79
|
-
"handgun",
|
|
80
|
-
"long_gun",
|
|
81
|
-
"short_barreled_rifle",
|
|
82
|
-
"short_barreled_shotgun",
|
|
83
|
-
"machine_gun",
|
|
84
|
-
"aow"
|
|
85
|
-
],
|
|
86
|
-
oal_in: [
|
|
87
|
-
"handgun",
|
|
88
|
-
"long_gun",
|
|
89
|
-
"short_barreled_rifle",
|
|
90
|
-
"short_barreled_shotgun",
|
|
91
|
-
"machine_gun",
|
|
92
|
-
"aow"
|
|
93
|
-
],
|
|
49
|
+
action_type: ["handgun", "long_gun"],
|
|
50
|
+
feature_flags: ["handgun", "long_gun", "receiver_frame"],
|
|
51
|
+
barrel_length_in: ["handgun", "long_gun"],
|
|
52
|
+
oal_in: ["handgun", "long_gun"],
|
|
94
53
|
ammo_type: ["ammunition"],
|
|
54
|
+
rapid_fire_device: ["firearm_part", "accessory"],
|
|
55
|
+
export_control_status: ["optic", "accessory", "suppressor", "firearm_part"],
|
|
56
|
+
cew_form_factor: ["conducted_electrical_weapon"],
|
|
95
57
|
blade_type: ["knife"],
|
|
96
58
|
blade_length_in: ["knife"],
|
|
97
59
|
oc_volume_oz: ["oc_spray"],
|
|
98
60
|
armor_type: ["body_armor"],
|
|
99
|
-
semiauto_centerfire: [
|
|
100
|
-
"handgun",
|
|
101
|
-
"long_gun",
|
|
102
|
-
"receiver_frame",
|
|
103
|
-
"short_barreled_rifle"
|
|
104
|
-
]
|
|
61
|
+
semiauto_centerfire: ["handgun", "long_gun", "receiver_frame"]
|
|
105
62
|
};
|
|
106
63
|
const appliesTo = (def, category) => {
|
|
107
64
|
if (def.key === "category") {
|
|
@@ -25,10 +25,6 @@ const CATEGORY_FIELDS = {
|
|
|
25
25
|
"handgun",
|
|
26
26
|
"long_gun",
|
|
27
27
|
"receiver_frame",
|
|
28
|
-
"short_barreled_rifle",
|
|
29
|
-
"short_barreled_shotgun",
|
|
30
|
-
"machine_gun",
|
|
31
|
-
"aow",
|
|
32
28
|
"destructive_device",
|
|
33
29
|
"suppressor",
|
|
34
30
|
"suppressor_part",
|
|
@@ -36,69 +32,30 @@ const CATEGORY_FIELDS = {
|
|
|
36
32
|
"firearm_part"
|
|
37
33
|
],
|
|
38
34
|
muzzle_type: ["muzzle_device"],
|
|
39
|
-
mag_capacity: [
|
|
40
|
-
|
|
41
|
-
"handgun",
|
|
42
|
-
"long_gun",
|
|
43
|
-
"short_barreled_rifle",
|
|
44
|
-
"short_barreled_shotgun",
|
|
45
|
-
"machine_gun"
|
|
46
|
-
],
|
|
35
|
+
mag_capacity: ["magazine", "handgun", "long_gun"],
|
|
36
|
+
mag_platform: ["magazine"],
|
|
47
37
|
caliber: [
|
|
48
38
|
"handgun",
|
|
49
39
|
"long_gun",
|
|
50
40
|
"receiver_frame",
|
|
51
41
|
"ammunition",
|
|
52
|
-
"short_barreled_rifle",
|
|
53
|
-
"short_barreled_shotgun",
|
|
54
|
-
"machine_gun",
|
|
55
|
-
"aow",
|
|
56
42
|
"suppressor",
|
|
57
43
|
"suppressor_part",
|
|
58
44
|
"muzzle_device"
|
|
59
45
|
],
|
|
60
|
-
action_type: [
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
"short_barreled_shotgun",
|
|
65
|
-
"machine_gun",
|
|
66
|
-
"aow"
|
|
67
|
-
],
|
|
68
|
-
feature_flags: [
|
|
69
|
-
"handgun",
|
|
70
|
-
"long_gun",
|
|
71
|
-
"receiver_frame",
|
|
72
|
-
"short_barreled_rifle",
|
|
73
|
-
"short_barreled_shotgun"
|
|
74
|
-
],
|
|
75
|
-
barrel_length_in: [
|
|
76
|
-
"handgun",
|
|
77
|
-
"long_gun",
|
|
78
|
-
"short_barreled_rifle",
|
|
79
|
-
"short_barreled_shotgun",
|
|
80
|
-
"machine_gun",
|
|
81
|
-
"aow"
|
|
82
|
-
],
|
|
83
|
-
oal_in: [
|
|
84
|
-
"handgun",
|
|
85
|
-
"long_gun",
|
|
86
|
-
"short_barreled_rifle",
|
|
87
|
-
"short_barreled_shotgun",
|
|
88
|
-
"machine_gun",
|
|
89
|
-
"aow"
|
|
90
|
-
],
|
|
46
|
+
action_type: ["handgun", "long_gun"],
|
|
47
|
+
feature_flags: ["handgun", "long_gun", "receiver_frame"],
|
|
48
|
+
barrel_length_in: ["handgun", "long_gun"],
|
|
49
|
+
oal_in: ["handgun", "long_gun"],
|
|
91
50
|
ammo_type: ["ammunition"],
|
|
51
|
+
rapid_fire_device: ["firearm_part", "accessory"],
|
|
52
|
+
export_control_status: ["optic", "accessory", "suppressor", "firearm_part"],
|
|
53
|
+
cew_form_factor: ["conducted_electrical_weapon"],
|
|
92
54
|
blade_type: ["knife"],
|
|
93
55
|
blade_length_in: ["knife"],
|
|
94
56
|
oc_volume_oz: ["oc_spray"],
|
|
95
57
|
armor_type: ["body_armor"],
|
|
96
|
-
semiauto_centerfire: [
|
|
97
|
-
"handgun",
|
|
98
|
-
"long_gun",
|
|
99
|
-
"receiver_frame",
|
|
100
|
-
"short_barreled_rifle"
|
|
101
|
-
]
|
|
58
|
+
semiauto_centerfire: ["handgun", "long_gun", "receiver_frame"]
|
|
102
59
|
};
|
|
103
60
|
const appliesTo = (def, category) => {
|
|
104
61
|
if (def.key === "category") {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "medusa-plugin-ordinant",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "Ordinant compliance for Medusa v2: catalog classification with merchant attestation and a deterministic, citation-bearing checkout gate. Compliance information and automation - not legal advice.",
|
|
5
5
|
"author": "Ordinant (https://ordinant.com)",
|
|
6
6
|
"license": "MIT",
|