medusa-plugin-ordinant 0.1.3 → 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,77 +28,37 @@ 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",
34
+ "muzzle_device",
38
35
  "firearm_part"
39
36
  ],
40
- mag_capacity: [
41
- "magazine",
42
- "handgun",
43
- "long_gun",
44
- "short_barreled_rifle",
45
- "short_barreled_shotgun",
46
- "machine_gun"
47
- ],
37
+ muzzle_type: ["muzzle_device"],
38
+ mag_capacity: ["magazine", "handgun", "long_gun"],
39
+ mag_platform: ["magazine"],
48
40
  caliber: [
49
41
  "handgun",
50
42
  "long_gun",
51
43
  "receiver_frame",
52
44
  "ammunition",
53
- "short_barreled_rifle",
54
- "short_barreled_shotgun",
55
- "machine_gun",
56
- "aow",
57
45
  "suppressor",
58
- "suppressor_part"
59
- ],
60
- action_type: [
61
- "handgun",
62
- "long_gun",
63
- "short_barreled_rifle",
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"
46
+ "suppressor_part",
47
+ "muzzle_device"
90
48
  ],
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"],
91
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"],
92
57
  blade_type: ["knife"],
93
58
  blade_length_in: ["knife"],
94
59
  oc_volume_oz: ["oc_spray"],
95
60
  armor_type: ["body_armor"],
96
- semiauto_centerfire: [
97
- "handgun",
98
- "long_gun",
99
- "receiver_frame",
100
- "short_barreled_rifle"
101
- ]
61
+ semiauto_centerfire: ["handgun", "long_gun", "receiver_frame"]
102
62
  };
103
63
  const appliesTo = (def, category) => {
104
64
  if (def.key === "category") {
@@ -25,77 +25,37 @@ 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",
31
+ "muzzle_device",
35
32
  "firearm_part"
36
33
  ],
37
- mag_capacity: [
38
- "magazine",
39
- "handgun",
40
- "long_gun",
41
- "short_barreled_rifle",
42
- "short_barreled_shotgun",
43
- "machine_gun"
44
- ],
34
+ muzzle_type: ["muzzle_device"],
35
+ mag_capacity: ["magazine", "handgun", "long_gun"],
36
+ mag_platform: ["magazine"],
45
37
  caliber: [
46
38
  "handgun",
47
39
  "long_gun",
48
40
  "receiver_frame",
49
41
  "ammunition",
50
- "short_barreled_rifle",
51
- "short_barreled_shotgun",
52
- "machine_gun",
53
- "aow",
54
42
  "suppressor",
55
- "suppressor_part"
56
- ],
57
- action_type: [
58
- "handgun",
59
- "long_gun",
60
- "short_barreled_rifle",
61
- "short_barreled_shotgun",
62
- "machine_gun",
63
- "aow"
64
- ],
65
- feature_flags: [
66
- "handgun",
67
- "long_gun",
68
- "receiver_frame",
69
- "short_barreled_rifle",
70
- "short_barreled_shotgun"
71
- ],
72
- barrel_length_in: [
73
- "handgun",
74
- "long_gun",
75
- "short_barreled_rifle",
76
- "short_barreled_shotgun",
77
- "machine_gun",
78
- "aow"
79
- ],
80
- oal_in: [
81
- "handgun",
82
- "long_gun",
83
- "short_barreled_rifle",
84
- "short_barreled_shotgun",
85
- "machine_gun",
86
- "aow"
43
+ "suppressor_part",
44
+ "muzzle_device"
87
45
  ],
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"],
88
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"],
89
54
  blade_type: ["knife"],
90
55
  blade_length_in: ["knife"],
91
56
  oc_volume_oz: ["oc_spray"],
92
57
  armor_type: ["body_armor"],
93
- semiauto_centerfire: [
94
- "handgun",
95
- "long_gun",
96
- "receiver_frame",
97
- "short_barreled_rifle"
98
- ]
58
+ semiauto_centerfire: ["handgun", "long_gun", "receiver_frame"]
99
59
  };
100
60
  const appliesTo = (def, category) => {
101
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",
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",