Electrical Code…
Interior and exterior wiring, including power, lighting, control, and signal circuit wiring together with all their associated hardware, fittings, and wiring devices, both permanently and temporarily installed. This includes (a) wiring from the service point or power source to the outlets or (b) wiring from and including the power source to the outlets where there is no service point.
Such wiring does not include wiring internal to appliances, luminaires, motors, controllers, motor control centers, and similar equipment.
Informational Note: Power sources include, but are not limited to, interconnected or stand-alone batteries, solar photovoltaic systems, other distributed generation systems, or generators.
(National Electrical Code® 100-1)